1import{r as R,a as lf,u as ib,j as P,s as nr,e as ab,b as bw,f as xw,J as lr,l as ti,m as le,R as T,P as Y}from"./index-ConP6836.js";import{T as ff,a as en,b as tn,c as rn,L as ww}from"./Layout-BzYz0_1b.js";import{c as ob,B as Qe,E as Ow,d as ie,a as lt}from"./index-Cj7iQB1J.js";import{P as _w}from"./progress-xReiKVHA.js";import{A as Uc,a as Wc,b as Hc}from"./alert-Tes0fb3H.js";import{U as bh}from"./upload-CnFFEtSE.js";import{C as Gc}from"./check-DV8f7w5T.js";import{X as Sw}from"./index-DgBBFwLa.js";import{C as Aw}from"./circle-alert-BYayf47D.js";import{T as Pw,a as Tw,b as xh,c as Lr,d as jw,e as Fr}from"./table-BpioZ6Ly.js";import{A as Ew,h as Mw,a as Cw,b as $w,c as Iw,d as Nw,e as kw,f as Dw,g as Rw}from"./alert-dialog-C6NPDPwB.js";import{S as nn}from"./skeleton-tf93qhkE.js";import{B as qw}from"./badge-EVgUMkUI.js";import{C as Bw}from"./copy-Bw1wE0sX.js";import{D as Lw}from"./download-CtimoqOb.js";import{L as Fw}from"./loader-circle-DCnBgiKS.js";import{T as zw}from"./trash-2-B2m37XEg.js";import{C as Uw}from"./chevron-left-XMjfH2Wp.js";import{C as Ww}from"./chevron-right-CQM_2Ksr.js";import{C as wh,a as Oh,d as _h,b as Hw,c as Gw}from"./card-DQRZThiy.js";import"./input-C760Q9JF.js";import"./separator-B2JJhGaf.js";import"./index-BuOkFU--.js";import"./select-DixIqret.js";import"./index-BdQq_4o_.js";import"./index-DABxe1Rw.js";import"./index-BZkZWgHk.js";import"./scale-BDaQGLHQ.js";import"./settings-B70yprtX.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const yi=ob("FileType2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 13v-1h6v1",key:"1dh9dg"}],["path",{d:"M5 12v6",key:"150t9c"}],["path",{d:"M4 18h2",key:"1xrofg"}]]);/** 7 * @license lucide-react v0.462.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const hf=ob("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);function Kw({onSuccess:e,onError:t,acceptedFileTypes:r=["application/pdf","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],maxSizeMB:n=10,buttonText:i="Selecionar arquivos",className:a=""}){const[o,u]=R.useState([]),[s,c]=R.useState(!1),[f,l]=R.useState(null),{user:h}=lf(),{municipioId:p}=ib(),m=n*1024*1024,v=o.length>0&&o.every(S=>S.status==="done"||S.status==="error");R.useEffect(()=>{if(v&&o.some(S=>S.status==="done")){const S=setTimeout(()=>u([]),4e3);return()=>clearTimeout(S)}},[v,o]);const d=S=>r.length>0&&!r.includes(S.type)?`Tipo não permitido: ${S.name}`:S.size>m?`Arquivo muito grande (${(S.size/(1024*1024)).toFixed(1)}MB): ${S.name}`:null,x=S=>{if(!S.target.files||S.target.files.length===0)return;const j=Array.from(S.target.files),M=[],A=[];for(const E of j){const C=d(E);
11C?A.push(C):M.push({file:E,status:"pending",progress:0})}A.length>0?(l(A.join("; ")),t==null||t(A.join("; "))):l(null),M.length>0&&u(E=>[...E,...M]),S.target.value=""},b=S=>{u(j=>j.filter((M,A)=>A!==S))},w=async(S,j)=>{if(h){u(M=>M.map((A,E)=>E===j?{...A,status:"uploading",progress:0}:A));try{const M=S.file.name.substring(S.file.name.lastIndexOf(".")),E=S.file.name.substring(0,S.file.name.lastIndexOf(".")).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-zA-Z0-9_-]/g,"_").replace(/_+/g,"_").replace(/^_|_$/g,""),C=Date.now(),$=`${p}/${h.id}/${E}_${C}${M}`,N=setInterval(()=>{u(U=>U.map((G,W)=>W===j&&G.status==="uploading"?{...G,progress:Math.min(G.progress+10,95)}:G))},150),{data:k,error:q}=await nr.storage.from("arquivos").upload($,S.file,{cacheControl:"3600",upsert:!0,contentType:S.file.type});if(clearInterval(N),q)throw q;const{data:B}=nr.storage.from("arquivos").getPublicUrl(k.path);u(U=>U.map((G,W)=>W===j?{...G,status:"done",progress:100,url:B.publicUrl}:G)),e==null||e(B.publicUrl,S.file.name)}catch(M){const A=M instanceof Error?M.message:"Erro ao enviar arquivo";u(E=>E.map((C,$)=>$===j?{...C,status:"error",error:A}:C)),t==null||t(A)}}},y=async()=>{if(!h){l("à necessário estar autenticado para fazer upload.");return}c(!0),l(null);const S=o.map((j,M)=>({q:j,i:M})).filter(({q:j})=>j.status==="pending");for(const{q:j,i:M}of S)await w(j,M);c(!1)},g=o.filter(S=>S.status==="pending").length,O=o.filter(S=>S.status==="done").length,_=o.filter(S=>S.status==="error").length;return P.jsxs("div",{className:`flex flex-col gap-4 ${a}`,children:[!s&&P.jsxs("div",{className:"flex flex-col items-center justify-center border-2 border-dashed border-gray-300 rounded-lg p-6 transition-colors bg-card text-card-foreground hover:border-primary",children:[P.jsx(yi,{className:"h-8 w-8 mb-2 text-muted-foreground"}),P.jsxs("p",{className:"text-sm mb-4 text-muted-foreground text-center",children:["Arraste e solte arquivos PDF ou DOCX aqui, ou clique para selecionar.",P.jsx("br",{}),P.jsx("span",{className:"text-xs",children:"Você pode selecionar vários arquivos de uma vez."})]}),P.jsx("input",{type:"file",accept:".pdf,application/pdf,.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document",onChange:x,className:"hidden",id:"file-upload",multiple:!0}),P.jsx("label",{htmlFor:"file-upload",children:P.jsxs(Qe,{type:"button",variant:"outline",className:"cursor-pointer",onClick:()=>{var S;return(S=document.getElementById("file-upload"))==null?void 0:S.click()},children:[P.jsx(bh,{className:"h-4 w-4 mr-2"}),i]})}),P.jsx(ff,{children:P.jsxs(en,{children:[P.jsx(tn,{asChild:!0,children:P.jsx(Qe,{variant:"ghost",size:"icon",className:"mt-4",children:P.jsx(hf,{className:"h-4 w-4 text-muted-foreground"})})}),P.jsx(rn,{children:P.jsx("p",{className:"max-w-xs text-xs",children:"Arquivos grandes aumentam o Storage Egress. Considere comprimir PDFs grandes antes do upload para economizar espaço e reduzir tráfego."})})]})})]}),o.length>0&&P.jsxs("div",{className:"space-y-2",children:[P.jsxs("div",{className:"flex items-center justify-between",children:[P.jsxs("p",{className:"text-sm font-medium text-muted-foreground",children:[g>0&&`${g} arquivo(s) na fila`,O>0&&` · ${O} enviado(s)`,_>0&&` · ${_} com erro`]}),g>0&&!s&&P.jsxs(Qe,{onClick:y,size:"sm",className:"bg-secondary hover:bg-secondary/90 text-secondary-foreground",children:[P.jsx(bh,{className:"h-4 w-4 mr-2"}),"Enviar ",g>1?`todos (${g})`:""]})]}),P.jsx("div",{className:"max-h-[300px] overflow-y-auto space-y-2 pr-1",children:o.map((S,j)=>P.jsxs("div",{className:"flex items-center gap-3 bg-muted p-3 rounded-md",children:[P.jsx(yi,{className:`h-5 w-5 flex-shrink-0 ${S.status==="done"?"text-green-500":S.status==="error"?"text-destructive":"text-blue-500"}`}),P.jsxs("div",{className:"flex-1 min-w-0",children:[P.jsx("div",{className:"text-sm font-medium truncate",children:S.file.name}),P.jsxs("div",{className:"text-xs text-muted-foreground",children:[(S.file.size/(1024*1024)).toFixed(2)," MB",S.status==="error"&&P.jsx("span",{className:"text-destructive ml-2",children:S.error})]}),S.status==="uploading"&&P.jsx(_w,{value:S.progress,className:"h-1.5 mt-1"})]}
11),S.status==="done"&&P.jsx(Gc,{className:"h-4 w-4 text-green-500 flex-shrink-0"}),S.status==="pending"&&P.jsx(Qe,{variant:"ghost",size:"icon",className:"h-7 w-7 flex-shrink-0",onClick:()=>b(j),children:P.jsx(Sw,{className:"h-3.5 w-3.5"})})]},`${S.file.name}-${j}`))})]}),s&&P.jsx("p",{className:"text-sm text-muted-foreground animate-pulse",children:"Enviando arquivos..."}),v&&O>0&&_===0&&P.jsxs(Uc,{className:"bg-green-50 border-green-200",children:[P.jsx(Gc,{className:"h-4 w-4 text-green-500"}),P.jsx(Wc,{className:"text-green-700",children:"Upload concluÃdo!"}),P.jsxs(Hc,{className:"text-green-600",children:[O," arquivo(s) enviado(s) com sucesso."]})]}),f&&P.jsxs(Uc,{variant:"destructive",children:[P.jsx(Aw,{className:"h-4 w-4"}),P.jsx(Wc,{children:"Erro"}),P.jsx(Hc,{children:f})]})]})}const ri=10;function ub(e=1){const{user:t}=lf(),{municipioId:r}=ib(),n=ab(),[i,a]=R.useState(!1),[o,u]=R.useState(!1),{data:s,isLoading:c,error:f}=bw({queryKey:["arquivos-all",t==null?void 0:t.id,r],queryFn:async()=>{if(!t||!r)return{count:0,arquivos:[]};const b=`${r}/${t.id}`,{data:w,error:y}=await nr.storage.from("arquivos").list(b,{limit:1e3,sortBy:{column:"created_at",order:"desc"}});if(y)throw console.error("Erro ao buscar arquivos do municÃpio:",y),y;let g=[];if(r===t.municipio_id){const{data:j,error:M}=await nr.storage.from("arquivos").list(t.id,{limit:1e3,sortBy:{column:"created_at",order:"desc"}});M?console.warn("Não foi possÃvel buscar arquivos antigos:",M):g=j||[]}const O=(j,M)=>(j||[]).filter(A=>A.id&&A.metadata).map(A=>{var $;const E=`${M}/${A.name}`,{data:C}=nr.storage.from("arquivos").getPublicUrl(E);return{id:A.id,name:A.name,size:(($=A.metadata)==null?void 0:$.size)||0,created_at:A.created_at,updated_at:A.updated_at,path:E,url:C.publicUrl,downloads:0}}),_=new Map;for(const j of[...O(w,b),...O(g,t.id)])_.set(j.path,j);const S=Array.from(_.values()).sort((j,M)=>new Date(M.created_at).getTime()-new Date(j.created_at).getTime());return{count:S.length,arquivos:S}},enabled:!!t&&!!r,staleTime:1e3*60*5}),l=(s==null?void 0:s.count)||0,h=(s==null?void 0:s.arquivos)||[],p=(e-1)*ri,m=h.slice(p,p+ri),v=async b=>{u(!0);try{console.log(`Download registrado para: ${b.name}`);const w=document.createElement("a");w.href=b.url,w.download=b.name,document.body.appendChild(w),w.click(),document.body.removeChild(w),n.setQueryData(["arquivos-all",t==null?void 0:t.id,r],y=>y&&{...y,arquivos:y.arquivos.map(g=>g.path===b.path?{...g,downloads:(g.downloads||0)+1}:g)})}catch(w){console.error("Erro ao registrar download:",w)}finally{u(!1)}},d=xw({mutationFn:async b=>{if(!t)throw new Error("Usuário não autenticado");a(!0);try{const{error:w}=await nr.storage.from("arquivos").remove([b]);if(w)throw w;return b}finally{a(!1)}},onSuccess:()=>{n.invalidateQueries({queryKey:["arquivos-all",t==null?void 0:t.id]}),lr.success("Arquivo excluÃdo com sucesso")},onError:b=>{console.error("Erro ao excluir arquivo:",b),lr.error(b.message||"Erro ao excluir arquivo")}}),x=Math.ceil(l/ri);return{arquivos:m,allArquivos:h,isLoading:c,error:f,isDeleting:i,isDownloading:o,deleteArquivo:d.mutate,downloadArquivo:v,totalCount:l,totalPages:x,itemsPerPage:ri}}function Xw(){const[e,t]=R.useState(1),{arquivos:r,isLoading:n,deleteArquivo:i,isDeleting:a,downloadArquivo:o,isDownloading:u,totalCount:s,totalPages:c}=ub(e),[f,l]=R.useState(null),[h,p]=R.useState(null),m=y=>{l(y.id),i(y.path)},v=async y=>{try{await navigator.clipboard.writeText(y.url),p(y.id),lr.success("Link copiado para a área de transferência!"),setTimeout(()=>p(null),2e3)}catch{lr.error("Erro ao copiar link")}},d=y=>{if(y===0)return"0 Bytes";const g=1024,O=["Bytes","KB","MB","GB"],_=Math.floor(Math.log(y)/Math.log(g));return parseFloat((y/Math.pow(g,_)).toFixed(2))+" "+O[_]},x=y=>{const g=new Date(y);return new Intl.DateTimeFormat("pt-BR",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}).format(g)},b=()=>{t(y=>Math.max(1,y-1))},w=()=>{t(y=>Math.min(c,y+1))};return n?P.jsxs("div",{className:"space-y-4",children:[P.jsx(nn,{className:"h-8 w-full"}),P.jsx(nn,{className:"h-24 w-full"})]}):s===0?P.jsxs("div",{className:"text-center py-10 border rounded-lg bg-card",children:[P.jsx(yi,{className:"h-10 w-10 mx-auto text-muted-foreground"}),P.jsx("h3",{className:"mt-4 text-lg font-medium",children:"Nenhum arquivo encontrado"}),P.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:"Faça upload de arquivos PDF para visualizá-los aqui."})]}):P.jsx(ff,{children:P.jsxs("div",{className:"space-y-4",children:[P.jsx("div",{className:"flex items-center justify-between",children:P.jsxs("p",{className:"text-sm text-muted-foreground",children:["Mostrando ",r.length," de ",s," arquivo(s)"]})}),P.jsx("div",{className:"rounded-md border bg-card",children:P.jsxs(Pw,{children:[P.jsx(Tw,{children:P.jsxs(xh,{children:[P.jsx(Lr,{children:"Nome"}),P.jsx(Lr,{children:"Tamanho"}),P.jsx(Lr,{children:"Data de upload"}),P.jsx(Lr,{children:"Downloads"}),P.jsx(Lr,{className:"text-right",children:"Ações"})]})}),P.jsx(jw,{children:r.map(y=>P.jsxs(xh,{children:[P.jsx(Fr,{className:"font-medium",children:P.jsxs("div",{className:"flex items-center",children:[P.jsx(yi,{className:"h-4 w-4 mr-2 text-blue-500"}),P.jsx("span",{className:"truncate max-w-[200px]",children:y.name})]})}),P.jsx(Fr,{children:d(y.size)}),P.jsx(Fr,{children:x(y.created_at)}),P.jsx(Fr,{children:P.jsx(qw,{variant:"outline",className:"bg-gray-50",children:y.downloads||0})}),P.jsx(Fr,{className:"text-right",children:P.jsxs("div",{className:"flex justify-end gap-2",children:[P.jsxs(en,{children:[P.jsx(tn,{asChild:!0,children:P.jsx(Qe,{variant:"outline",size:"icon",onClick:()=>v(y),className:"text-primary hover:text-primary",children:h===y.id?P.jsx(Gc,{
vendor: 8,290 bytes, line 11
11className:"h-4 w-4 text-green-500"}):P.jsx(Bw,{className:"h-4 w-4"})})}),P.jsx(rn,{children:P.jsx("p",{children:"Copiar link"})})]}),P.jsxs(en,{children:[P.jsx(tn,{asChild:!0,children:P.jsx(Qe,{variant:"outline",size:"icon",onClick:()=>window.open(y.url,"_blank"),children:P.jsx(Ow,{className:"h-4 w-4"})})}),P.jsx(rn,{children:P.jsx("p",{children:"Visualizar"})})]}),P.jsxs(en,{children:[P.jsx(tn,{asChild:!0,children:P.jsx(Qe,{variant:"outline",size:"icon",onClick:()=>o(y),disabled:u,children:P.jsx(Lw,{className:"h-4 w-4"})})}),P.jsx(rn,{children:P.jsx("p",{children:"Baixar"})})]}),P.jsxs(Ew,{children:[P.jsx(Mw,{asChild:!0,children:P.jsx(Qe,{variant:"destructive",size:"icon",disabled:a&&f===y.id,children:a&&f===y.id?P.jsx(Fw,{className:"h-4 w-4 animate-spin"}):P.jsx(zw,{className:"h-4 w-4"})})}),P.jsxs(Cw,{children:[P.jsxs($w,{children:[P.jsx(Iw,{children:"Excluir arquivo"}),P.jsx(Nw,{children:"Tem certeza que deseja excluir este arquivo? Esta ação não pode ser desfeita."})]}),P.jsxs(kw,{children:[P.jsx(Dw,{children:"Cancelar"}),P.jsx(Rw,{onClick:()=>m(y),className:"bg-red-600 hover:bg-red-700",children:"Excluir"})]})]})]})]})})]},y.id))})]})}),c>1&&P.jsxs("div",{className:"flex items-center justify-between",children:[P.jsxs("p",{className:"text-sm text-muted-foreground",children:["Página ",e," de ",c]}),P.jsxs("div",{className:"flex gap-2",children:[P.jsxs(Qe,{variant:"outline",size:"sm",onClick:b,disabled:e===1,children:[P.jsx(Uw,{className:"h-4 w-4 mr-1"}),"Anterior"]}),P.jsxs(Qe,{variant:"outline",size:"sm",onClick:w,disabled:e===c,children:["Próxima",P.jsx(Ww,{className:"h-4 w-4 ml-1"})]})]})]})]})})}var Ga,Sh;function Ne(){if(Sh)return Ga;Sh=1;var e=Array.isArray;return Ga=e,Ga}var Ka,Ah;function sb(){if(Ah)return Ka;Ah=1;var e=typeof ti=="object"&&ti&&ti.Object===Object&&ti;return Ka=e,Ka}var Xa,Ph;function at(){if(Ph)return Xa;Ph=1;var e=sb(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Xa=r,Xa}var Va,Th;function Hn(){if(Th)return Va;Th=1;var e=at(),t=e.Symbol;return Va=t,Va}var Ya,jh;function Vw(){if(jh)return Ya;jh=1;var e=Hn(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),s=o[i];try{o[i]=void 0;var c=!0}catch{}var f=n.call(o);return c&&(u?o[i]=s:delete o[i]),f}return Ya=a,Ya}var Za,Eh;function Yw(){if(Eh)return Za;Eh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Za=r,Za}var Ja,Mh;function xt(){if(Mh)return Ja;Mh=1;var e=Hn(),t=Vw(),r=Yw(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?t(u):r(u)}return Ja=o,Ja}var Qa,Ch;function wt(){if(Ch)return Qa;Ch=1;function e(t){return t!=null&&typeof t=="object"}return Qa=e,Qa}var eo,$h;function $r(){if($h)return eo;$h=1;var e=xt(),t=wt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return eo=n,eo}var to,Ih;function df(){if(Ih)return to;Ih=1;var e=Ne(),t=$r(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return to=i,to}var ro,Nh;function jt(){if(Nh)return ro;Nh=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return ro=e,ro}var no,kh;function pf(){if(kh)return no;kh=1;var e=xt(),t=jt(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var s=e(u);return s==n||s==i||s==r||s==a}return no=o,no}var io,Dh;function Zw(){if(Dh)return io;Dh=1;var e=at(),t=e["__core-js_shared__"];return io=t,io}var ao,Rh;function Jw(){if(Rh)return ao;Rh=1;var e=Zw(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return ao=r,ao}var oo,qh;function cb(){if(qh)return oo;qh=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return oo=r,oo}var uo,Bh;function Qw(){if(Bh)return uo;Bh=1;var e=pf(),t=Jw(),r=jt(),n=cb(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(h){if(!r(h)||t(h))return!1;var p=e(h)?f:a;return p.test(n(h))}return uo=l,uo}var so,Lh;function e1(){if(Lh)return so;Lh=1;function e(t,r){return t==null?void 0:t[r]}return so=e,so}var co,Fh;function Vt(){if(Fh)return co;Fh=1;var e=Qw(),t=e1();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return co=r,co}var lo,zh;function fa(){if(zh)return lo;zh=1;var e=Vt(),t=e(Object,"create");return lo=t,lo}var fo,Uh;function t1(){if(Uh)return fo;Uh=1;var e=fa();function t(){this.__data__=e?e(null):{},this.size=0}return fo=t,fo}var ho,Wh;function r1(){if(Wh)return ho;Wh=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return ho=e,ho}var po,Hh;function n1(){if(Hh)return po;Hh=1;var e=fa(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return po=i,po}var vo,Gh;function i1(){if(Gh)return vo;Gh=1;var e=fa(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return vo=n,vo}var yo,Kh;function a1(){if(Kh)return yo;Kh=1;var e=fa(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return yo=r,yo}var mo,Xh;function o1(){if(Xh)return mo;Xh=1;var e=t1(),t=r1(),r=n1(),n=i1(),i=a1();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,mo=a,mo}var go,Vh;function u1(){if(Vh)return go;Vh=1;function e(){this.__data__=[],this.size=0}return go=e,go}var bo,Yh;function vf(){if(Yh)return bo;Yh=1;function e(t,r){return t===r||t!==t&&r!==r}return bo=e,bo}var xo,Zh;function ha(){if(Zh)return xo;Zh=1;var e=vf();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return xo=t,xo}var wo,Jh;function s1(){if(Jh)return wo;Jh=1;var e=ha(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return wo=n,wo}var Oo,Qh;function c1(){if(Qh)return Oo;Qh=1;var e=ha();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Oo=t,Oo}var _o,ed;function l1(){if(ed)return _o;ed=1;var e=ha();function t(r){return e(this.__data__,r)>-1}return _o=t,_o}var So,td;function f1(){if(td)return So;td=1;var e=ha();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return So=t,So}var Ao,rd;function da(){if(rd)return Ao;rd=1;var e=u1(),t=s1(),r=c1(),n=l1(),i=f1();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Ao=a,Ao}var Po,nd;function yf(){if(nd)return Po;nd=1;var e=Vt(),t=at(),r=e(t,"Map");return Po=r,Po}var To,id;function h1(){if(id)return To;id=1;var e=o1(),t=da(),r=yf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return To=n,To}var jo,ad;function d1(){if(ad)return jo;ad=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return jo=e,jo}var Eo,od;function pa(){if(od)return Eo;od=1;var e=d1();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Eo=t,Eo}var Mo,ud;function p1(){if(ud)return Mo;ud=1;var e=pa();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Mo=t,Mo}var Co,sd;function v1(){if(sd)return Co;sd=1;var e=pa();function t(r){return e(this,r).get(r)}return Co=t,Co}var $o,cd;function y1(){if(cd)return $o;cd=1;var e=pa();function t(r){return e(this,r).has(r)}return $o=t,$o}var Io,ld;
vendor: 8,348 bytes, lines 11-19
11function m1(){if(ld)return Io;ld=1;var e=pa();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Io=t,Io}var No,fd;function mf(){if(fd)return No;fd=1;var e=h1(),t=p1(),r=v1(),n=y1(),i=m1();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,No=a,No}var ko,hd;function lb(){if(hd)return ko;hd=1;var e=mf(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],s=a.cache;if(s.has(u))return s.get(u);var c=n.apply(this,o);return a.cache=s.set(u,c)||s,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,ko=r,ko}var Do,dd;function g1(){if(dd)return Do;dd=1;var e=lb(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Do=r,Do}var Ro,pd;function b1(){if(pd)return Ro;pd=1;var e=g1(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,s,c){a.push(s?c.replace(r,"$1"):u||o)}),a});return Ro=n,Ro}var qo,vd;function gf(){if(vd)return qo;vd=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return qo=e,qo}var Bo,yd;function x1(){if(yd)return Bo;yd=1;var e=Hn(),t=gf(),r=Ne(),n=$r(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return Bo=o,Bo}var Lo,md;function fb(){if(md)return Lo;md=1;var e=x1();function t(r){return r==null?"":e(r)}return Lo=t,Lo}var Fo,gd;function hb(){if(gd)return Fo;gd=1;var e=Ne(),t=df(),r=b1(),n=fb();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Fo=i,Fo}var zo,bd;function va(){if(bd)return zo;bd=1;var e=$r();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return zo=t,zo}var Uo,xd;function bf(){if(xd)return Uo;xd=1;var e=hb(),t=va();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return Uo=r,Uo}var Wo,wd;function db(){if(wd)return Wo;wd=1;var e=bf();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Wo=t,Wo}var w1=db();const Ue=le(w1);var Ho,Od;function O1(){if(Od)return Ho;Od=1;function e(t){return t==null}return Ho=e,Ho}var _1=O1();const ne=le(_1);var Go,_d;function S1(){if(_d)return Go;_d=1;var e=xt(),t=Ne(),r=wt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Go=i,Go}var A1=S1();const Gn=le(A1);var P1=pf();const J=le(P1);var T1=jt();const Ir=le(T1);var Ko={exports:{}},re={};/** 12 * @license React 13 * react-is.production.min.js 14 * 15 * Copyright (c) Facebook, Inc. and its affiliates. 16 * 17 * This source code is licensed under the MIT license found in the 18 * LICENSE file in the root directory of this source tree. 19 */var Sd;function j1(){if(Sd)return re;Sd=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function v(d){if(typeof d=="object"&&d!==null){var x=d.$$typeof;switch(x){case e:switch(d=d.type,d){case r:case i:case n:case c:case f:return d;default:switch(d=d&&d.$$typeof,d){case u:case o:case s:case h:case l:case a:return d;default:return x}}case t:return x}}}return re.ContextConsumer=o,re.ContextProvider=a,re.Element=e,re.ForwardRef=s,re.Fragment=r,re.Lazy=h,re.Memo=l,re.Portal=t,re.Profiler=i,re.StrictMode=n,re.Suspense=c,re.SuspenseList=f,re.isAsyncMode=function(){return!1},re.isConcurrentMode=function(){return!1},re.isContextConsumer=function(d){return v(d)===o},re.isContextProvider=function(d){return v(d)===a},re.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},re.isForwardRef=function(d){return v(d)===s},re.isFragment=function(d){return v(d)===r},re.isLazy=function(d){return v(d)===h},re.isMemo=function(d){return v(d)===l},re.isPortal=function(d){return v(d)===t},re.isProfiler=function(d){return v(d)===i},re.isStrictMode=function(d){return v(d)===n},re.isSuspense=function(d){return v(d)===c},re.isSuspenseList=function(d){return v(d)===f},re.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===n||d===c||d===f||d===p||typeof d=="object"&&d!==null&&(d.$$typeof===h||d.$$typeof===l||d.$$typeof===a||d.$$typeof===o||d.$$typeof===s||d.$$typeof===m||d.getModuleId!==void 0)},re.typeOf=v,re}var Ad;function E1(){return Ad||(Ad=1,Ko.exports=j1()),Ko.exports}var pb=E1(),Xo,Pd;function vb(){if(Pd)return Xo;Pd=1;var e=xt(),t=wt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Xo=n,Xo}var Vo,Td;function M1(){if(Td)return Vo;Td=1;var e=vb();function t(r){return e(r)&&r!=+r}return Vo=t,Vo}var C1=M1();const Kn=le(C1);var $1=vb();const I1=le($1);var Ve=function(t){return t===0?0:t>0?1:-1},qt=function(t){return Gn(t)&&t.indexOf("%")===t.length-1},L=function(t){return I1(t)&&!Kn(t)},be=function(t){return L(t)||Gn(t)},N1=0,ya=function(t){var r=++N1;return"".concat(t||"").concat(r)},Ht=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(!L(t)&&!Gn(t))return n;var a;if(qt(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Kn(a)&&(a=n),i&&a>r&&(a=r),a},St=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},k1=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},Qt=function(t,r){return L(t)&&L(r)?function(n){return t+n*(r-t)}:function(){return r}};function Kc(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Ue(n,t))===r})}function or(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 Xc(e){"@babel/helpers - typeof";return Xc=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},Xc(e)}var D1=["viewBox","children"],R1=["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","enableBackgroun
19d","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"],jd=["points","pathLength"],Yo={svg:D1,polygon:jd,polyline:jd},xf=["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"],mi=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(R.isValidElement(t)&&(n=t.props),!Ir(n))return null;var i={};
vendor: 8,586 bytes, line 19
19return Object.keys(n).forEach(function(a){xf.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},q1=function(t,r,n){return function(i){return t(r,n,i),null}},gi=function(t,r,n){if(!Ir(t)||Xc(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];xf.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=q1(o,r,n))}),i},B1=["children"],L1=["children"];function Ed(e,t){if(e==null)return{};var r=F1(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 F1(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 Md={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},pt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Cd=null,Zo=null,wf=function e(t){if(t===Cd&&Array.isArray(Zo))return Zo;var r=[];return R.Children.forEach(t,function(n){ne(n)||(pb.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Zo=r,Cd=t,r};function Ye(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return pt(i)}):n=[pt(t)],wf(e).forEach(function(i){var a=Ue(i,"type.displayName")||Ue(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Re(e,t){var r=Ye(e,t);return r&&r[0]}var $d=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!L(n)||n<=0||!L(i)||i<=0)},z1=["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"],U1=function(t){return t&&t.type&&Gn(t.type)&&z1.indexOf(t.type)>=0},W1=function(t,r,n,i){var a,o=(a=Yo==null?void 0:Yo[i])!==null&&a!==void 0?a:[];return!J(t)&&(i&&o.includes(r)||R1.includes(r))||n&&xf.includes(r)},te=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(R.isValidElement(t)&&(i=t.props),!Ir(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;W1((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Vc=function e(t,r){if(t===r)return!0;var n=R.Children.count(t);if(n!==R.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Id(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(!Id(a,o))return!1}return!0},Id=function(t,r){if(ne(t)&&ne(r))return!0;if(!ne(t)&&!ne(r)){var n=t.props||{},i=n.children,a=Ed(n,B1),o=r.props||{},u=o.children,s=Ed(o,L1);return i&&u?or(a,s)&&Vc(i,u):!i&&!u?or(a,s):!1}return!1},Nd=function(t,r){var n=[],i={};return wf(t).forEach(function(a,o){if(U1(a))n.push(a);else if(a){var u=pt(a.type),s=r[u]||{},c=s.handler,f=s.once;if(c&&(!f||!i[u])){var l=c(a,u,o);n.push(l),i[u]=!0}}}),n},H1=function(t){var r=t&&t.type;return r&&Md[r]?Md[r]:null},G1=function(t,r){return wf(r).indexOf(t)},K1=["children","width","height","viewBox","className","style","title","desc"];function Yc(){return Yc=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},Yc.apply(this,arguments)}function X1(e,t){if(e==null)return{};var r=V1(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 V1(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 Zc(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,s=e.desc,c=X1(e,K1),f=i||{width:r,height:n,x:0,y:0},l=ie("recharts-surface",a);return T.createElement("svg",Yc({},te(c,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),T.createElement("title",null,u),T.createElement("desc",null,s),t)}var Y1=["children","className"];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 Z1(e,t){if(e==null)return{};var r=J1(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 J1(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 Oe=T.forwardRef(function(e,t){var r=e.children,n=e.className,i=Z1(e,Y1),a=ie("recharts-layer",n);return T.createElement("g",Jc({className:a},te(i,!0),{ref:t}),r)}),vt=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]},Jo,kd;function Q1(){if(kd)return Jo;kd=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return Jo=e,Jo}var Qo,Dd;function eO(){if(Dd)return Qo;Dd=1;var e=Q1();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return Qo=t,Qo}var eu,Rd;function yb(){if(Rd)return eu;Rd=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function s(c){return u.test(c)}return eu=s,eu}var tu,qd;function tO(){if(qd)return tu;qd=1;function e(t){return t.split("")}return tu=e,tu}var ru,Bd;function rO(){if(Bd)return ru;Bd=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",s="\\ud83c[\\udffb-\\udfff]",c="(?:"+u+"|"+s+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",m=c+"?",v="["+a+"]?",d="(?:"+p+"(?:"+[f,l,h].join("|")+")"+v+m+")*",x=v+m+d,b="(?:"+[f+u+"?",u,l,h,o].join("|")+")",w=RegExp(s+"(?="+s+")|"+b+x,"g");function y(g){return g.match(w)||[]}return ru=y,ru}var nu,Ld;function nO(){if(Ld)return nu;Ld=1;var e=tO(),t=yb(),r=rO();function n(i){return t(i)?r(i):e(i)}return nu=n,nu}var iu,Fd;function iO(){if(Fd)return iu;Fd=1;var e=eO(),t=yb(),r=nO(),n=fb();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,s=u?u[0]:o.charAt(0),c=u?e(u,1).join(""):o.slice(1);return s[a]()+c}}return iu=i,iu}var au,zd;function aO(){if(zd)return au;zd=1;var e=iO(),t=e("toUpperCase");return au=t,au}var oO=aO();const ma=le(oO);function ue(e){return function(){return e}}const mb=Math.cos,bi=Math.sin,Ze=Math.sqrt,xi=Math.PI,ga=2*xi,Qc=Math.PI,el=2*Qc,Dt=1e-6,uO=el-Dt;function gb(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function sO(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return gb;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 cO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?gb:sO(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}
19,${+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,s=n-t,c=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>Dt)if(!(Math.abs(l*s-c*f)>Dt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,m=i-u,v=s*s+c*c,d=p*p+m*m,x=Math.sqrt(v),b=Math.sqrt(h),w=a*Math.tan((Qc-Math.acos((v+h-d)/(2*x*b)))/2),y=w/b,g=w/x;Math.abs(y-1)>Dt&&this._append`L${t+y*f},${r+y*l}`,this._append`A${a},${a},0,0,${+(l*p>f*m)},${this._x1=t+g*s},${this._y1=r+g*c}`}}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),s=n*Math.sin(i),c=t+u,f=r+s,l=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>Dt||Math.abs(this._y1-f)>Dt)&&this._append`L${c},${f}`,n&&(h<0&&(h=h%el+el),h>uO?this._append`A${n},${n},0,1,${l},${t-u},${r-s}A${n},${n},0,1,${l},${this._x1=c},${this._y1=f}`:h>Dt&&this._append`A${n},${n},0,${+(h>=Qc)},${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 Of(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 cO(t)}function _f(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function bb(e){this._context=e}bb.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 ba(e){return new bb(e)}function xb(e){return e[0]}function wb(e){return e[1]}function Ob(e,t){var r=ue(!0),n=null,i=ba,a=null,o=Of(u);e=typeof e=="function"?e:e===void 0?xb:ue(e),t=typeof t=="function"?t:t===void 0?wb:ue(t);function u(s){var c,f=(s=_f(s)).length,l,h=!1,p;for(n==null&&(a=i(p=o())),c=0;c<=f;++c)!(c<f&&r(l=s[c],c,s))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(l,c,s),+t(l,c,s));if(p)return a=null,p+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:ue(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:ue(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:ue(!!s),u):r},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function ni(e,t,r){var n=null,i=ue(!0),a=null,o=ba,u=null,s=Of(c);e=typeof e=="function"?e:e===void 0?xb:ue(+e),t=typeof t=="function"?t:ue(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?wb:ue(+r);function c(l){var h,p,m,v=(l=_f(l)).length,d,x=!1,b,w=new Array(v),y=new Array(v);for(a==null&&(u=o(b=s())),h=0;h<=v;++h){if(!(h<v&&i(d=l[h],h,l))===x)if(x=!x)p=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),m=h-1;m>=p;--m)u.point(w[m],y[m]);u.lineEnd(),u.areaEnd()}x&&(w[h]=+e(d,h,l),y[h]=+t(d,h,l),u.point(n?+n(d,h,l):w[h],r?+r(d,h,l):y[h]))}if(b)return u=null,b+""||null}function f(){return Ob().defined(i).curve(o).context(a)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:ue(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:ue(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:ue(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:ue(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:ue(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ue(+l),c):r},c.lineX0=c.lineY0=function(){return f().x(e).y(t)},c.lineY1=function(){return f().x(e).y(r)},c.lineX1=function(){return f().x(n).y(t)},c.defined=function(l){return arguments.length?(i=typeof l=="function"?l:ue(!!l),c):i},c.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),c):o},c.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),c):a},c}class _b{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 lO(e){return new _b(e,!0)}function fO(e){return new _b(e,!1)}const Sf={draw(e,t){const r=Ze(t/xi);e.moveTo(r,0),e.arc(0,0,r,0,ga)}},hO={draw(e,t){const r=Ze(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()}},Sb=Ze(1/3),dO=Sb*2,pO={draw(e,t){const r=Ze(t/dO),n=r*Sb;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}}
vendor: 7,548 bytes, line 19
19,vO={draw(e,t){const r=Ze(t),n=-r/2;e.rect(n,n,r,r)}},yO=.8908130915292852,Ab=bi(xi/10)/bi(7*xi/10),mO=bi(ga/10)*Ab,gO=-mb(ga/10)*Ab,bO={draw(e,t){const r=Ze(t*yO),n=mO*r,i=gO*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=ga*a/5,u=mb(o),s=bi(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},ou=Ze(3),xO={draw(e,t){const r=-Ze(t/(ou*3));e.moveTo(0,r*2),e.lineTo(-ou*r,-r),e.lineTo(ou*r,-r),e.closePath()}},Be=-.5,Le=Ze(3)/2,tl=1/Ze(12),wO=(tl/2+1)*3,OO={draw(e,t){const r=Ze(t/wO),n=r/2,i=r*tl,a=n,o=r*tl+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(Be*n-Le*i,Le*n+Be*i),e.lineTo(Be*a-Le*o,Le*a+Be*o),e.lineTo(Be*u-Le*s,Le*u+Be*s),e.lineTo(Be*n+Le*i,Be*i-Le*n),e.lineTo(Be*a+Le*o,Be*o-Le*a),e.lineTo(Be*u+Le*s,Be*s-Le*u),e.closePath()}};function _O(e,t){let r=null,n=Of(i);e=typeof e=="function"?e:ue(e||Sf),t=typeof t=="function"?t:ue(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:ue(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:ue(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function wi(){}function Oi(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 Pb(e){this._context=e}Pb.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:Oi(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:Oi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function SO(e){return new Pb(e)}function Tb(e){this._context=e}Tb.prototype={areaStart:wi,areaEnd:wi,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:Oi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function AO(e){return new Tb(e)}function jb(e){this._context=e}jb.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:Oi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function PO(e){return new jb(e)}function Eb(e){this._context=e}Eb.prototype={areaStart:wi,areaEnd:wi,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 TO(e){return new Eb(e)}function Ud(e){return e<0?-1:1}function Wd(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(Ud(a)+Ud(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Hd(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function uu(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 _i(e){this._context=e}_i.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:uu(this,this._t0,Hd(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,uu(this,Hd(this,r=Wd(this,e,t)),r);break;default:uu(this,this._t0,r=Wd(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Mb(e){this._context=new Cb(e)}(Mb.prototype=Object.create(_i.prototype)).point=function(e,t){_i.prototype.point.call(this,t,e)};function Cb(e){this._context=e}Cb.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 jO(e){return new _i(e)}function EO(e){return new Mb(e)}function $b(e){this._context=e}$b.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=Gd(e),i=Gd(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 Gd(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 MO(e){return new $b(e)}function xa(e,t){this._context=e,this._t=t}xa.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;
vendor: 16,274 bytes, lines 19-22
19default:{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 CO(e){return new xa(e,.5)}function $O(e){return new xa(e,0)}function IO(e){return new xa(e,1)}function fr(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 rl(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function NO(e,t){return e[t]}function kO(e){const t=[];return t.key=e,t}function DO(){var e=ue([]),t=rl,r=fr,n=NO;function i(a){var o=Array.from(e.apply(this,arguments),kO),u,s=o.length,c=-1,f;for(const l of a)for(u=0,++c;u<s;++u)(o[u][c]=[0,+n(l,o[u].key,c,a)]).data=l;for(u=0,f=_f(t(o));u<s;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:ue(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:ue(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?rl:typeof a=="function"?a:ue(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??fr,i):r},i}function RO(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}fr(e,t)}}function qO(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}fr(e,t)}}function BO(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,s=0,c=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,m=0;m<u;++m){var v=e[t[m]],d=v[n][1]||0,x=v[n-1][1]||0;p+=d-x}s+=l,c+=p*l}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,fr(e,t)}}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)}var LO=["type","size","sizeType"];function nl(){return nl=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},nl.apply(this,arguments)}function Kd(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 Xd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kd(Object(r),!0).forEach(function(n){FO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FO(e,t,r){return t=zO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zO(e){var t=UO(e,"string");return ln(t)=="symbol"?t:t+""}function UO(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(t==="string"?String:Number)(e)}function WO(e,t){if(e==null)return{};var r=HO(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 HO(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 Ib={symbolCircle:Sf,symbolCross:hO,symbolDiamond:pO,symbolSquare:vO,symbolStar:bO,symbolTriangle:xO,symbolWye:OO},GO=Math.PI/180,KO=function(t){var r="symbol".concat(ma(t));return Ib[r]||Sf},XO=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*GO;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}},VO=function(t,r){Ib["symbol".concat(ma(t))]=r},Af=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,s=WO(t,LO),c=Xd(Xd({},s),{},{type:n,size:a,sizeType:u}),f=function(){var d=KO(n),x=_O().type(d).size(XO(a,u,n));return x()},l=c.className,h=c.cx,p=c.cy,m=te(c,!0);return h===+h&&p===+p&&a===+a?T.createElement("path",nl({},m,{className:ie("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};Af.registerSymbol=VO;function hr(e){"@babel/helpers - typeof";return hr=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},hr(e)}function il(){return il=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},il.apply(this,arguments)}function Vd(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 YO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vd(Object(r),!0).forEach(function(n){fn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JO(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,kb(n.key),n)}}function QO(e,t,r){return t&&JO(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function e_(e,t,r){return t=Si(t),t_(e,Nb()?Reflect.construct(t,r||[],Si(e).constructor):t.apply(e,r))}function t_(e,t){if(t&&(hr(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 Nb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nb=function(){return!!e})()}function Si(e){return Si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Si(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&&al(e,t)}function al(e,t){return al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},al(e,t)}function fn(e,t,r){return t=kb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kb(e){var t=i_(e,"string");return hr(t)=="symbol"?t:t+""}function i_(e,t){if(hr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fe=32,Pf=(function(e){function t(){return ZO(this,t),e_(this,t,arguments)}return n_(t,e),QO(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Fe/2,o=Fe/6,u=Fe/3,s=n.inactive?i:n.color;if(n.type==="plainline")return T.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Fe,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return T.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(u,` 20 A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,` 21 H`).concat(Fe,"M").concat(2*u,",").concat(a,` 22 A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return T.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Fe/8,"h").concat(Fe,"v").concat(Fe*3/4,"h").concat(-Fe,"z"),className:"recharts-legend-icon"});if(T.isValidElement(n.legendIcon)){var c=YO({},n);return delete c.legendIcon,T.cloneElement(n.legendIcon,c)}return T.createElement(Af,{fill:s,cx:a,cy:a,size:Fe,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,s=i.formatter,c=i.inactiveColor,f={x:0,y:0,width:Fe,height:Fe},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,m){var v=p.formatter||s,d=ie(fn(fn({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var x=J(p.value)?null:p.value;vt(!J(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 b=p.inactive?c:p.color;return T.createElement("li",il({className:d,style:l,key:"legend-item-".concat(m)},gi(n.props,p,m)),T.createElement(Zc,{width:o,height:o,viewBox:f,style:h},n.renderIcon(p)),T.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},v?v(x,p,m):x))})}},{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 T.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(R.PureComponent);fn(Pf,"displayName","Legend");fn(Pf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var su,Yd;function a_(){if(Yd)return su;Yd=1;var e=da();function t(){this.__data__=new e,this.size=0}return su=t,su}var cu,Zd;function o_(){if(Zd)return cu;Zd=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return cu=e,cu}var lu,Jd;function u_(){if(Jd)return lu;Jd=1;function e(t){return this.__data__.get(t)}return lu=e,lu}var fu,Qd;function s_(){if(Qd)return fu;Qd=1;function e(t){return this.__data__.has(t)}return fu=e,fu}var hu,ep;function c_(){if(ep)return hu;ep=1;var e=da(),t=yf(),r=mf(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var s=u.__data__;if(!t||s.length<n-1)return s.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(s)}return u.set(a,o),this.size=u.size,this}return hu=i,hu}var du,tp;function Db(){if(tp)return du;tp=1;var e=da(),t=a_(),r=o_(),n=u_(),i=s_(),a=c_();function o(u){var s=this.__data__=new e(u);this.size=s.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,du=o,du}var pu,rp;function l_(){if(rp)return pu;rp=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return pu=t,pu}var vu,np;function f_(){if(np)return vu;np=1;function e(t){return this.__data__.has(t)}return vu=e,vu}var yu,ip;function Rb(){if(ip)return yu;ip=1;var e=mf(),t=l_(),r=f_();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,yu=n,yu}var mu,ap;function qb(){if(ap)return mu;ap=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return mu=e,mu}var gu,op;function Bb(){if(op)return gu;op=1;function e(t,r){return t.has(r)}return gu=e,gu}var bu,up;function Lb(){if(up)return bu;up=1;var e=Rb(),t=qb(),r=Bb(),n=1,i=2;function a(o,u,s,c,f,l){var h=s&n,p=o.length,m=u.length;if(p!=m&&!(h&&m>p))return!1;var v=l.get(o),d=l.get(u);if(v&&d)return v==u&&d==o;var x=-1,b=!0,w=s&i?new e:void 0;for(l.set(o,u),l.set(u,o);++x<p;){var y=o[x],g=u[x];if(c)var O=h?c(g,y,x,u,o,l):c(y,g,x,o,u,l);if(O!==void 0){if(O)continue;b=!1;break}if(w){if(!t(u,function(_,S){if(!r(w,S)&&(y===_||f(y,_,s,c,l)))return w.push(S)})){b=!1;break}}else if(!(y===g||f(y,g,s,c,l))){b=!1;break}}return l.delete(o),l.delete(u),b}return bu=a,bu}var xu,sp;function h_(){if(sp)return xu;sp=1;var e=at(),t=e.Uint8Array;return xu=t,xu}var wu,cp;function d_(){if(cp)return wu;cp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return wu=e,wu}var Ou,lp;function Tf(){if(lp)return Ou;lp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Ou=e,Ou}var _u,fp;function p_(){if(fp)return _u;fp=1;var e=Hn(),t=h_(),r=vf(),n=Lb(),i=d_(),a=Tf(),o=1,u=2,s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Map]",h="[object Number]",p="[object RegExp]",m="[object Set]",v="[object String]",d="[object Symbol]",x="[object ArrayBuffer]",b="[object DataView]",w=e?e.prototype:void 0,y=w?w.valueOf:void 0;function g(O,_,S,j,M,A,E){switch(S){case b:if(O.byteLength!=_.byteLength||O.byteOffset!=_.byteOffset)return!1;O=O.buffer,_=_.buffer;case x:return!(O.byteLength!=_.byteLength||!A(new t(O),new t(_)));case s:case c:case h:return r(+O,+_);case f:return O.name==_.name&&O.message==_.message;case p:case v:return O==_+"";case l:var C=i;case m:var $=j&o;if(C||(C=a),O.size!=_.size&&!$)return!1;var N=E.get(O);if(N)return N==_;j|=u,E.set(O,_);var k=n(C(O),C(_),j,M,A,E);return E.delete(O),k;case d:if(y)return y.call(O)==y.call(_)}return!1}return _u=g,_u}var Su,hp;function Fb(){if(hp)return Su;hp=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return Su=e,Su}var Au,dp;function v_(){if(dp)return Au;dp=1;var e=Fb(),t=Ne();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Au=r,Au}var Pu,pp;function y_(){if(pp)return Pu;pp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var u=t[n];r(u,n,t)&&(o[a++]=u)}return o}return Pu=e,Pu}var Tu,vp;function m_(){if(vp)return Tu;vp=1;function e(){return[]}return Tu=e,Tu}var ju,yp;function g_(){if(yp)return ju;yp=1;var e=y_(),t=m_(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:t;return ju=a,ju}var Eu,mp;function b_(){if(mp)return Eu;mp=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Eu=e,Eu}var Mu,gp;function x_(){if(gp)return Mu;gp=1;var e=xt(),t=wt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Mu=n,Mu}var Cu,bp;function jf(){if(bp)return Cu;bp=1;var e=x_(),t=wt(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return Cu=a,Cu}var Zr={exports:{}},$u,xp;function w_(){if(xp)return $u;xp=1;function e(){return!1}return $u=e,$u}Zr.exports;var wp;function zb(){return wp||(wp=1,(function(e,t){var r=at(),n=w_(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,s=u?u.isBuffer:void 0,c=s||n;e.exports=c})(Zr,Zr.exports)),Zr.exports}var Iu,Op;function Ef(){if(Op)return Iu;Op=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Iu=r,Iu}var Nu,_p;function Mf(){if(_p)return Nu;_p=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Nu=t,Nu}var ku,Sp;function O_(){if(Sp)return ku;Sp=1;var e=xt(),t=Mf(),r=wt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",c="[object Map]",f="[object Number]",l="[object Object]",h="[object RegExp]",p="[object Set]",m="[object String]",v="[object WeakMap]",d="[object ArrayBuffer]",x="[object DataView]",b="[object Float32Array]",w="[object Float64Array
22]",y="[object Int8Array]",g="[object Int16Array]",O="[object Int32Array]",_="[object Uint8Array]",S="[object Uint8ClampedArray]",j="[object Uint16Array]",M="[object Uint32Array]",A={};A[b]=A[w]=A[y]=A[g]=A[O]=A[_]=A[S]=A[j]=A[M]=!0,A[n]=A[i]=A[d]=A[a]=A[x]=A[o]=A[u]=A[s]=A[c]=A[f]=A[l]=A[h]=A[p]=A[m]=A[v]=!1;function E(C){return r(C)&&t(C.length)&&!!A[e(C)]}return ku=E,ku}var Du,Ap;function Ub(){if(Ap)return Du;Ap=1;function e(t){return function(r){return t(r)}}return Du=e,Du}var Jr={exports:{}};Jr.exports;var Pp;function __(){return Pp||(Pp=1,(function(e,t){var r=sb(),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 s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(Jr,Jr.exports)),Jr.exports}var Ru,Tp;function Wb(){if(Tp)return Ru;Tp=1;var e=O_(),t=Ub(),r=__(),n=r&&r.isTypedArray,i=n?t(n):e;return Ru=i,Ru}var qu,jp;function S_(){if(jp)return qu;jp=1;var e=b_(),t=jf(),r=Ne(),n=zb(),i=Ef(),a=Wb(),o=Object.prototype,u=o.hasOwnProperty;function s(c,f){var l=r(c),h=!l&&t(c),p=!l&&!h&&n(c),m=!l&&!h&&!p&&a(c),v=l||h||p||m,d=v?e(c.length,String):[],x=d.length;for(var b in c)(f||u.call(c,b))&&!(v&&(b=="length"||p&&(b=="offset"||b=="parent")||m&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,x)))&&d.push(b);return d}return qu=s,qu}var Bu,Ep;function A_(){if(Ep)return Bu;Ep=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Bu=t,Bu}var Lu,Mp;function Hb(){if(Mp)return Lu;Mp=1;function e(t,r){return function(n){return t(r(n))}}return Lu=e,Lu}var Fu,Cp;function P_(){if(Cp)return Fu;Cp=1;var e=Hb(),t=e(Object.keys,Object);return Fu=t,Fu}var zu,$p;function T_(){if($p)return zu;$p=1;var e=A_(),t=P_(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return zu=i,zu}var Uu,Ip;function Xn(){if(Ip)return Uu;Ip=1;var e=pf(),t=Mf();function r(n){return n!=null&&t(n.length)&&!e(n)}return Uu=r,Uu}var Wu,Np;function wa(){if(Np)return Wu;Np=1;var e=S_(),t=T_(),r=Xn();function n(i){return r(i)?e(i):t(i)}return Wu=n,Wu}var Hu,kp;function j_(){if(kp)return Hu;kp=1;var e=v_(),t=g_(),r=wa();function n(i){return e(i,r,t)}return Hu=n,Hu}var Gu,Dp;function E_(){if(Dp)return Gu;Dp=1;var e=j_(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,s,c,f){var l=u&t,h=e(a),p=h.length,m=e(o),v=m.length;if(p!=v&&!l)return!1;for(var d=p;d--;){var x=h[d];if(!(l?x in o:n.call(o,x)))return!1}var b=f.get(a),w=f.get(o);if(b&&w)return b==o&&w==a;var y=!0;f.set(a,o),f.set(o,a);for(var g=l;++d<p;){x=h[d];var O=a[x],_=o[x];if(s)var S=l?s(_,O,x,o,a,f):s(O,_,x,a,o,f);if(!(S===void 0?O===_||c(O,_,u,s,f):S)){y=!1;break}g||(g=x=="constructor")}if(y&&!g){var j=a.constructor,M=o.constructor;j!=M&&"constructor"in a&&"constructor"in o&&!(typeof j=="function"&&j instanceof j&&typeof M=="function"&&M instanceof M)&&(y=!1)}return f.delete(a),f.delete(o),y}return Gu=i,Gu}var Ku,Rp;function M_(){if(Rp)return Ku;Rp=1;var e=Vt(),t=at(),r=e(t,"DataView");return Ku=r,Ku}var Xu,qp;function C_(){if(qp)return Xu;qp=1;var e=Vt(),t=at(),r=e(t,"Promise");return Xu=r,Xu}var Vu,Bp;function Gb(){if(Bp)return Vu;Bp=1;var e=Vt(),t=at(),r=e(t,"Set");return Vu=r,Vu}var Yu,Lp;function $_(){if(Lp)return Yu;Lp=1;var e=Vt(),t=at(),r=e(t,"WeakMap");return Yu=r,Yu}var Zu,Fp;function I_(){if(Fp)return Zu;Fp=1;var e=M_(),t=yf(),r=C_(),n=Gb(),i=$_(),a=xt(),o=cb(),u="[object Map]",s="[object Object]",c="[object Promise]",f="[object Set]",l="[object WeakMap]",h="[object DataView]",p=o(e),m=o(t),v=o(r),d=o(n),x=o(i),b=a;return(e&&b(new e(new ArrayBuffer(1)))!=h||t&&b(new t)!=u||r&&b(r.resolve())!=c||n&&b(new n)!=f||i&&b(new i)!=l)&&(b=function(w){var y=a(w),g=y==s?w.constructor:void 0,O=g?o(g):"";if(O)switch(O){case p:return h;case m:return u;case v:return c;case d:return f;case x:return l}return y}),Zu=b,Zu}var Ju,zp;function N_(){if(zp)return Ju;zp=1;var e=Db(),t=Lb(),r=p_(),n=E_(),i=I_(),a=Ne(),o=zb(),u=Wb(),s=1,c="[object Arguments]",f="[object Array]",l="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function m(v,d,x,b,w,y){var g=a(v),O=a(d),_=g?f:i(v),S=O?f:i(d);_=_==c?l:_,S=S==c?l:S;var j=_==l,M=S==l,A=_==S;if(A&&o(v)){if(!o(d))return!1;g=!0,j=!1}if(A&&!j)return y||(y=new e),g||u(v)?t(v,d,x,b,w,y):r(v,d,_,x,b,w,y);if(!(x&s)){var E=j&&p.call(v,"__wrapped__"),C=M&&p.call(d,"__wrapped__");
vendor: 43,972 bytes, lines 22-29
22if(E||C){var $=E?v.value():v,N=C?d.value():d;return y||(y=new e),w($,N,x,b,y)}}return A?(y||(y=new e),n(v,d,x,b,w,y)):!1}return Ju=m,Ju}var Qu,Up;function Cf(){if(Up)return Qu;Up=1;var e=N_(),t=wt();function r(n,i,a,o,u){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,u)}return Qu=r,Qu}var es,Wp;function k_(){if(Wp)return es;Wp=1;var e=Db(),t=Cf(),r=1,n=2;function i(a,o,u,s){var c=u.length,f=c,l=!s;if(a==null)return!f;for(a=Object(a);c--;){var h=u[c];if(l&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++c<f;){h=u[c];var p=h[0],m=a[p],v=h[1];if(l&&h[2]){if(m===void 0&&!(p in a))return!1}else{var d=new e;if(s)var x=s(m,v,p,a,o,d);if(!(x===void 0?t(v,m,r|n,s,d):x))return!1}}return!0}return es=i,es}var ts,Hp;function Kb(){if(Hp)return ts;Hp=1;var e=jt();function t(r){return r===r&&!e(r)}return ts=t,ts}var rs,Gp;function D_(){if(Gp)return rs;Gp=1;var e=Kb(),t=wa();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return rs=r,rs}var ns,Kp;function Xb(){if(Kp)return ns;Kp=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return ns=e,ns}var is,Xp;function R_(){if(Xp)return is;Xp=1;var e=k_(),t=D_(),r=Xb();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return is=n,is}var as,Vp;function q_(){if(Vp)return as;Vp=1;function e(t,r){return t!=null&&r in Object(t)}return as=e,as}var os,Yp;function B_(){if(Yp)return os;Yp=1;var e=hb(),t=jf(),r=Ne(),n=Ef(),i=Mf(),a=va();function o(u,s,c){s=e(s,u);for(var f=-1,l=s.length,h=!1;++f<l;){var p=a(s[f]);if(!(h=u!=null&&c(u,p)))break;u=u[p]}return h||++f!=l?h:(l=u==null?0:u.length,!!l&&i(l)&&n(p,l)&&(r(u)||t(u)))}return os=o,os}var us,Zp;function L_(){if(Zp)return us;Zp=1;var e=q_(),t=B_();function r(n,i){return n!=null&&t(n,i,e)}return us=r,us}var ss,Jp;function F_(){if(Jp)return ss;Jp=1;var e=Cf(),t=db(),r=L_(),n=df(),i=Kb(),a=Xb(),o=va(),u=1,s=2;function c(f,l){return n(f)&&i(l)?a(o(f),l):function(h){var p=t(h,f);return p===void 0&&p===l?r(h,f):e(l,p,u|s)}}return ss=c,ss}var cs,Qp;function Nr(){if(Qp)return cs;Qp=1;function e(t){return t}return cs=e,cs}var ls,ev;function z_(){if(ev)return ls;ev=1;function e(t){return function(r){return r==null?void 0:r[t]}}return ls=e,ls}var fs,tv;function U_(){if(tv)return fs;tv=1;var e=bf();function t(r){return function(n){return e(n,r)}}return fs=t,fs}var hs,rv;function W_(){if(rv)return hs;rv=1;var e=z_(),t=U_(),r=df(),n=va();function i(a){return r(a)?e(n(a)):t(a)}return hs=i,hs}var ds,nv;function Et(){if(nv)return ds;nv=1;var e=R_(),t=F_(),r=Nr(),n=Ne(),i=W_();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return ds=a,ds}var ps,iv;function Vb(){if(iv)return ps;iv=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return ps=e,ps}var vs,av;function H_(){if(av)return vs;av=1;function e(t){return t!==t}return vs=e,vs}var ys,ov;function G_(){if(ov)return ys;ov=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return ys=e,ys}var ms,uv;function K_(){if(uv)return ms;uv=1;var e=Vb(),t=H_(),r=G_();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return ms=n,ms}var gs,sv;function X_(){if(sv)return gs;sv=1;var e=K_();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return gs=t,gs}var bs,cv;function V_(){if(cv)return bs;cv=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return bs=e,bs}var xs,lv;function Y_(){if(lv)return xs;lv=1;function e(){}return xs=e,xs}var ws,fv;function Z_(){if(fv)return ws;fv=1;var e=Gb(),t=Y_(),r=Tf(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return ws=i,ws}var Os,hv;function J_(){if(hv)return Os;hv=1;var e=Rb(),t=X_(),r=V_(),n=Bb(),i=Z_(),a=Tf(),o=200;function u(s,c,f){var l=-1,h=t,p=s.length,m=!0,v=[],d=v;if(f)m=!1,h=r;else if(p>=o){var x=c?null:i(s);if(x)return a(x);m=!1,h=n,d=new e}else d=c?[]:v;e:for(;++l<p;){var b=s[l],w=c?c(b):b;if(b=f||b!==0?b:0,m&&w===w){for(var y=d.length;y--;)if(d[y]===w)continue e;c&&d.push(w),v.push(b)}else h(d,w,f)||(d!==v&&d.push(w),v.push(b))}return v}return Os=u,Os}var _s,dv;function Q_(){if(dv)return _s;dv=1;var e=Et(),t=J_();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return _s=r,_s}var eS=Q_();const pv=le(eS);function Yb(e,t,r){return t===!0?pv(e,r):J(t)?pv(e,t):e}function dr(e){"@babel/helpers - typeof";return dr=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},dr(e)}var tS=["ref"];function vv(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 ct(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vv(Object(r),!0).forEach(function(n){Oa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yv(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,Jb(n.key),n)}}function nS(e,t,r){return t&&yv(e.prototype,t),r&&yv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function iS(e,t,r){return t=Ai(t),aS(e,Zb()?Reflect.construct(t,r||[],Ai(e).constructor):t.apply(e,r))}function aS(e,t){if(t&&(dr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oS(e)}function oS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zb=function(){return!!e})()}function Ai(e){return Ai=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ai(e)}function uS(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&&ol(e,t)}function ol(e,t){return ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ol(e,t)}function Oa(e,t,r){return t=Jb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jb(e){var t=sS(e,"string");return dr(t)=="symbol"?t:t+""}function sS(e,t){if(dr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function cS(e,t){if(e==null)return{};var r=lS(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 lS(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 fS(e){return e.value}function hS(e,t){if(T.isValidElement(e))return T.cloneElement(e,t);if(typeof e=="function")return T.createElement(e,t);t.ref;var r=cS(t,tS);return T.createElement(Pf,r)}var mv=1,ur=(function(e){function t(){var r;rS(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=iS(this,t,[].concat(i)),Oa(r,"lastBoundingBox",{width:-1,height:-1}),r}return uS(t,e),nS(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)>mv||Math.abs(i.height-this.lastBoundingBox.height)>mv)&&(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?ct({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,s=i.margin,c=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:((c||0)-p.width)/2}}else l=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var m=this.getBBoxSnapshot();h={top:((f||0)-m.height)/2}}else h=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return ct(ct({},l),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,s=i.wrapperStyle,c=i.payloadUniqBy,f=i.payload,l=ct(ct({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return T.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(p){n.wrapperNode=p}},hS(a,ct(ct({},this.props),{},{payload:Yb(f,c,fS)})))}}],[{key:"getWithHeight",value:function(n,i){var a=ct(ct({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&L(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(R.PureComponent);Oa(ur,"displayName","Legend");Oa(ur,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Ss,gv;function dS(){if(gv)return Ss;gv=1;var e=Hn(),t=jf(),r=Ne(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Ss=i,Ss}var As,bv;function Qb(){if(bv)return As;bv=1;var e=Fb(),t=dS();function r(n,i,a,o,u){var s=-1,c=n.length;for(a||(a=t),u||(u=[]);++s<c;){var f=n[s];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return As=r,As}var Ps,xv;function pS(){if(xv)return Ps;xv=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),s=u.length;s--;){var c=u[t?s:++a];if(n(o[c],c,o)===!1)break}return r}}return Ps=e,Ps}var Ts,wv;function vS(){if(wv)return Ts;wv=1;var e=pS(),t=e();return Ts=t,Ts}var js,Ov;function e0(){if(Ov)return js;Ov=1;var e=vS(),t=wa();function r(n,i){return n&&e(n,i,t)}return js=r,js}var Es,_v;function yS(){if(_v)return Es;_v=1;var e=Xn();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,u=n?o:-1,s=Object(i);(n?u--:++u<o)&&a(s[u],u,s)!==!1;);return i}}return Es=t,Es}var Ms,Sv;function $f(){if(Sv)return Ms;Sv=1;var e=e0(),t=yS(),r=t(e);return Ms=r,Ms}var Cs,Av;function t0(){if(Av)return Cs;Av=1;var e=$f(),t=Xn();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,s,c){o[++a]=i(u,s,c)}),o}return Cs=r,Cs}var $s,Pv;function mS(){if(Pv)return $s;Pv=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return $s=e,$s}var Is,Tv;function gS(){if(Tv)return Is;Tv=1;var e=$r();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),s=n!==void 0,c=n===null,f=n===n,l=e(n);if(!c&&!l&&!u&&r>n||u&&s&&f&&!c&&!l||a&&s&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||c&&i&&o||!s&&o||!f)return-1}return 0}return Is=t,Is}var Ns,jv;function bS(){if(jv)return Ns;jv=1;var e=gS();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,s=o.length,c=i.length;++a<s;){var f=e(o[a],u[a]);if(f){if(a>=c)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return Ns=t,Ns}var ks,Ev;function xS(){if(Ev)return ks;Ev=1;var e=gf(),t=bf(),r=Et(),n=t0(),i=mS(),a=Ub(),o=bS(),u=Nr(),s=Ne();function c(f,l,h){l.length?l=e(l,function(v){return s(v)?function(d){return t(d,v.length===1?v[0]:v)}:v}):l=[u];var p=-1;l=e(l,a(r));var m=n(f,function(v,d,x){var b=e(l,function(w){return w(v)});return{criteria:b,index:++p,value:v}});return i(m,function(v,d){return o(v,d,h)})}return ks=c,ks}var Ds,Mv;function wS(){if(Mv)return Ds;Mv=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Ds=e,Ds}var Rs,Cv;function OS(){if(Cv)return Rs;Cv=1;var e=wS(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,s=t(o.length-i,0),c=Array(s);++u<s;)c[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(c),e(n,this,f)}}return Rs=r,Rs}var qs,$v;function _S(){if($v)return qs;$v=1;function e(t){return function(){return t}}return qs=e,qs}var Bs,Iv;function r0(){if(Iv)return Bs;Iv=1;var e=Vt(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Bs=t,Bs}var Ls,Nv;function SS(){if(Nv)return Ls;Nv=1;var e=_S(),t=r0(),r=Nr(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Ls=n,Ls}var Fs,kv;function AS(){if(kv)return Fs;kv=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),s=t-(u-o);if(o=u,s>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Fs=n,Fs}var zs,Dv;function PS(){if(Dv)return zs;Dv=1;var e=SS(),t=AS(),r=t(e);return zs=r,zs}var Us,Rv;function TS(){if(Rv)return Us;Rv=1;var e=Nr(),t=OS(),r=PS();function n(i,a){return r(t(i,a,e),i+"")}return Us=n,Us}var Ws,qv;function _a(){if(qv)return Ws;qv=1;var e=vf(),t=Xn(),r=Ef(),n=jt();function i(a,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?t(u)&&r(o,u.length):s=="string"&&o in u)?e(u[o],a):!1}return Ws=i,Ws}var Hs,Bv;function jS(){if(Bv)return Hs;Bv=1;var e=Qb(),t=xS(),r=TS(),n=_a(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Hs=i,Hs}var ES=jS();const If=le(ES);function hn(e){"@babel/helpers - typeof";return hn=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},hn(e)}function ul(){return ul=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},ul.apply(this,arguments)}function MS(e,t){return NS(e)||IS(e,t)||$S(e,t)||CS()}function CS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 23In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $S(e,t){if(e){if(typeof e=="string")return Lv(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 Lv(e,t)}}function Lv(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 IS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function NS(e){if(Array.isArray(e))return e}function Fv(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 Gs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fv(Object(r),!0).forEach(function(n){kS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kS(e,t,r){return t=DS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DS(e){var t=RS(e,"string");return hn(t)=="symbol"?t:t+""}function RS(e,t){if(hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qS(e){return Array.isArray(e)&&be(e[0])&&be(e[1])?e.join(" ~ "):e}var BS=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,s=t.labelStyle,c=s===void 0?{}:s,f=t.payload,l=t.formatter,h=t.itemSorter,p=t.wrapperClassName,m=t.labelClassName,v=t.label,d=t.labelFormatter,x=t.accessibilityLayer,b=x===void 0?!1:x,w=function(){if(f&&f.length){var E={padding:0,margin:0},C=(h?If(f,h):f).map(function($,N){if($.type==="none")return null;var k=Gs({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},u),q=$.formatter||l||qS,B=$.value,U=$.name,G=B,W=U;if(q&&G!=null&&W!=null){var H=q(B,U,$,N,f);if(Array.isArray(H)){var X=MS(H,2);G=X[0],W=X[1]}else G=H}return T.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(N),style:k},be(W)?T.createElement("span",{className:"recharts-tooltip-item-name"},W):null,be(W)?T.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,T.createElement("span",{className:"recharts-tooltip-item-value"},G),T.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return T.createElement("ul",{className:"recharts-tooltip-item-list",style:E},C)}return null},y=Gs({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),g=Gs({margin:0},c),O=!ne(v),_=O?v:"",S=ie("recharts-default-tooltip",p),j=ie("recharts-tooltip-label",m);O&&d&&f!==void 0&&f!==null&&(_=d(v,f));var M=b?{role:"status","aria-live":"assertive"}:{};return T.createElement("div",ul({className:S,style:y},M),T.createElement("p",{className:j,style:g},T.isValidElement(_)?_:"".concat(_)),w())};function dn(e){"@babel/helpers - typeof";return dn=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},dn(e)}function ii(e,t,r){return t=LS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LS(e){var t=FS(e,"string");return dn(t)=="symbol"?t:t+""}function FS(e,t){if(dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zr="recharts-tooltip-wrapper",zS={visibility:"hidden"};function US(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ie(zr,ii(ii(ii(ii({},"".concat(zr,"-right"),L(r)&&t&&L(t.x)&&r>=t.x),"".concat(zr,"-left"),L(r)&&t&&L(t.x)&&r<t.x),"".concat(zr,"-bottom"),L(n)&&t&&L(t.y)&&n>=t.y),"".concat(zr,"-top"),L(n)&&t&&L(t.y)&&n<t.y))}function zv(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(a&&L(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=s[n];return h<p?Math.max(l,s[n]):Math.max(f,s[n])}var m=l+u,v=s[n]+c;return m>v?Math.max(f,s[n]):Math.max(l,s[n])}function WS(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 HS(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,s=e.viewBox,c,f,l;return o.height>0&&o.width>0&&r?(f=zv({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),l=zv({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),c=WS({translateX:f,translateY:l,useTranslate3d:u})):c=zS,{cssProperties:c,cssClasses:US({translateX:f,translateY:l,coordinate:r})}}function pr(e){"@babel/helpers - typeof";return pr=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},pr(e)}function Uv(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 Wv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uv(Object(r),!0).forEach(function(n){cl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KS(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,i0(n.key),n)}}function XS(e,t,r){return t&&KS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function VS(e,t,r){return t=Pi(t),YS(e,n0()?Reflect.construct(t,r||[],Pi(e).constructor):t.apply(e,r))}function YS(e,t){if(t&&(pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZS(e)}function ZS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(n0=function(){return!!e})()}function Pi(e){return Pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pi(e)}function JS(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&&sl(e,t)}function sl(e,t){return sl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sl(e,t)}function cl(e,t,r){return t=i0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i0(e){var t=QS(e,"string");return pr(t)=="symbol"?t:t+""}function QS(e,t){if(pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Hv=1,eA=(function(e){function t(){var r;GS(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=VS(this,t,[].concat(i)),cl(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),cl(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,s,c,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(s=r.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&u!==void 0?u:0,y:(c=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&c!==void 0?c:0}})}}),r}return JS(t,e),XS(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Hv||Math.abs(n.height-this.state.lastBoundingBox.height)>Hv)&&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,s=i.animationEasing,c=i.children,f=i.coordinate,l=i.hasPayload,h=i.isAnimationActive,p=i.offset,m=i.position,v=i.reverseDirection,d=i.useTranslate3d,x=i.viewBox,b=i.wrapperStyle,w=HS({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:m,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:x}),y=w.cssClasses,g=w.cssProperties,O=Wv(Wv({transition:h&&a?"transform ".concat(u,"ms ").concat(s):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},b);return T.createElement("div",{tabIndex:-1,className:y,style:O,ref:function(S){n.wrapperNode=S}},c)}}])})(R.PureComponent),tA=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Vn={isSsr:tA()};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 Gv(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 Kv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gv(Object(r),!0).forEach(function(n){Nf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nA(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,o0(n.key),n)}}function iA(e,t,r){return t&&nA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function aA(e,t,r){return t=Ti(t),oA(e,a0()?Reflect.construct(t,r||[],Ti(e).constructor):t.apply(e,r))}function oA(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 uA(e)}function uA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a0=function(){return!!e})()}function Ti(e){return Ti=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ti(e)}function sA(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&&ll(e,t)}function ll(e,t){return ll=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ll(e,t)}function Nf(e,t,r){return t=o0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o0(e){var t=cA(e,"string");return vr(t)=="symbol"?t:t+""}function cA(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)}function lA(e){return e.dataKey}function fA(e,t){return T.isValidElement(e)?T.cloneElement(e,t):typeof e=="function"?T.createElement(e,t):T.createElement(BS,t)}var Je=(function(e){function t(){return rA(this,t),aA(this,t,arguments)}return sA(t,e),iA(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.content,f=i.coordinate,l=i.filterNull,h=i.isAnimationActive,p=i.offset,m=i.payload,v=i.payloadUniqBy,d=i.position,x=i.reverseDirection,b=i.useTranslate3d,w=i.viewBox,y=i.wrapperStyle,g=m??[];l&&g.length&&(g=Yb(m.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,lA));var O=g.length>0;return T.createElement(eA,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:h,active:a,coordinate:f,hasPayload:O,offset:p,position:d,reverseDirection:x,useTranslate3d:b,viewBox:w,wrapperStyle:y},fA(c,Kv(Kv({},this.props),{},{payload:g})))}}])})(R.PureComponent);Nf(Je,"displayName","Tooltip");Nf(Je,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Vn.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 Ks,Xv;function hA(){if(Xv)return Ks;Xv=1;var e=at(),t=function(){return e.Date.now()};return Ks=t,Ks}var Xs,Vv;function dA(){if(Vv)return Xs;Vv=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Xs=t,Xs}var Vs,Yv;function pA(){if(Yv)return Vs;Yv=1;var e=dA(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Vs=r,Vs}var Ys,Zv;function u0(){if(Zv)return Ys;Zv=1;var e=pA(),t=jt(),r=$r(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function s(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=t(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=e(c);var l=a.test(c);return l||o.test(c)?u(c.slice(2),l?2:8):i.test(c)?n:+c}return Ys=s,Ys}var Zs,Jv;function vA(){if(Jv)return Zs;Jv=1;var e=jt(),t=hA(),r=u0(),n="Expected a function",i=Math.max,a=Math.min;function o(u,s,c){var f,l,h,p,m,v,d=0,x=!1,b=!1,w=!0;if(typeof u!="function")throw new TypeError(n);s=r(s)||0,e(c)&&(x=!!c.leading,b="maxWait"in c,h=b?i(r(c.maxWait)||0,s):h,w="trailing"in c?!!c.trailing:w);function y(C){var $=f,N=l;return f=l=void 0,d=C,p=u.apply(N,$),p}function g(C){return d=C,m=setTimeout(S,s),x?y(C):p}function O(C){var $=C-v,N=C-d,k=s-$;return b?a(k,h-N):k}function _(C){var $=C-v,N=C-d;return v===void 0||$>=s||$<0||b&&N>=h}function S(){var C=t();if(_(C))return j(C);m=setTimeout(S,O(C))}function j(C){return m=void 0,w&&f?y(C):(f=l=void 0,p)}function M(){m!==void 0&&clearTimeout(m),d=0,f=v=l=m=void 0}function A(){return m===void 0?p:j(t())}function E(){var C=t(),$=_(C);if(f=arguments,l=this,v=C,$){if(m===void 0)return g(v);if(b)return clearTimeout(m),m=setTimeout(S,s),y(v)}return m===void 0&&(m=setTimeout(S,s)),p}return E.cancel=M,E.flush=A,E}return Zs=o,Zs}var Js,Qv;function yA(){if(Qv)return Js;Qv=1;var e=vA(),t=jt(),r="Expected a function";function n(i,a,o){var u=!0,s=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,s="trailing"in o?!!o.trailing:s),e(i,a,{leading:u,maxWait:a,trailing:s})}return Js=n,Js}var mA=yA();const s0=le(mA);function pn(e){"@babel/helpers - typeof";return pn=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},pn(e)}function ey(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 ai(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ey(Object(r),!0).forEach(function(n){gA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ey(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gA(e,t,r){return t=bA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bA(e){var t=xA(e,"string");return pn(t)=="symbol"?t:t+""}function xA(e,t){if(pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wA(e,t){return AA(e)||SA(e,t)||_A(e,t)||OA()}function OA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 24In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _A(e,t){if(e){if(typeof e=="string")return ty(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 ty(e,t)}}function ty(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 SA(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function AA(e){if(Array.isArray(e))return e}var PA=R.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,s=u===void 0?"100%":u,c=e.minWidth,f=c===void 0?0:c,l=e.minHeight,h=e.maxHeight,p=e.children,m=e.debounce,v=m===void 0?0:m,d=e.id,x=e.className,b=e.onResize,w=e.style,y=w===void 0?{}:w,g=R.useRef(null),O=R.useRef();O.current=b,R.useImperativeHandle(t,function(){return Object.defineProperty(g.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),g.current},configurable:!0})});var _=R.useState({containerWidth:i.width,containerHeight:i.height}),S=wA(_,2),j=S[0],M=S[1],A=R.useCallback(function(C,$){M(function(N){var k=Math.round(C),q=Math.round($);return N.containerWidth===k&&N.containerHeight===q?N:{containerWidth:k,containerHeight:q}})},[]);R.useEffect(function(){var C=function(U){var G,W=U[0].contentRect,H=W.width,X=W.height;A(H,X),(G=O.current)===null||G===void 0||G.call(O,H,X)};v>0&&(C=s0(C,v,{trailing:!0,leading:!1}));var $=new ResizeObserver(C),N=g.current.getBoundingClientRect(),k=N.width,q=N.height;return A(k,q),$.observe(g.current),function(){$.disconnect()}},[A,v]);var E=R.useMemo(function(){var C=j.containerWidth,$=j.containerHeight;if(C<0||$<0)return null;vt(qt(o)||qt(s),`The width(%s) and height(%s) are both fixed numbers, 25 maybe you don't need to use a ResponsiveContainer.`,o,s),vt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var N=qt(o)?C:o,k=qt(s)?$:s;r&&r>0&&(N?k=N/r:k&&(N=k*r),h&&k>h&&(k=h)),vt(N>0||k>0,`The width(%s) and height(%s) of chart should be greater than 0, 26 please check the style of container, or the props width(%s) and height(%s), 27 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 28 height and width.`,N,k,o,s,f,l,r);var q=!Array.isArray(p)&&pt(p.type).endsWith("Chart");return T.Children.map(p,function(B){return pb.isElement(B)?R.cloneElement(B,ai({width:N,height:k},q?{style:ai({height:"100%",width:"100%",maxHeight:k,maxWidth:N},B.props.style)}:{})):B})},[r,p,s,h,l,f,j,o]);return T.createElement("div",{id:d?"".concat(d):void 0,className:ie("recharts-responsive-container",x),style:ai(ai({},y),{},{width:o,height:s,minWidth:f,minHeight:l,maxHeight:h}),ref:g},E)}),c0=function(t){return null};c0.displayName="Cell";function vn(e){"@babel/helpers - typeof";return vn=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},vn(e)}function ry(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 fl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ry(Object(r),!0).forEach(function(n){TA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ry(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TA(e,t,r){return t=jA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jA(e){var t=EA(e,"string");return vn(t)=="symbol"?t:t+""}function EA(e,t){if(vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var er={widthCache:{},cacheCount:0},MA=2e3,CA={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ny="recharts_measurement_span";function $A(e){var t=fl({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var an=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Vn.isSsr)return{width:0,height:0};var n=$A(r),i=JSON.stringify({text:t,copyStyle:n});if(er.widthCache[i])return er.widthCache[i];try{var a=document.getElementById(ny);a||(a=document.createElement("span"),a.setAttribute("id",ny),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=fl(fl({},CA),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),s={width:u.width,height:u.height};return er.widthCache[i]=s,++er.cacheCount>MA&&(er.cacheCount=0,er.widthCache={}),s}catch{return{width:0,height:0}}},IA=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 ji(e,t){return RA(e)||DA(e,t)||kA(e,t)||NA()}function NA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 29In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kA(e,t){if(e){if(typeof e=="string")return iy(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 iy(e,t)}}function iy(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(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function RA(e){if(Array.isArray(e))return e}function qA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ay(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,LA(n.key),n)}}function BA(e,t,r){return t&&ay(e.prototype,t),r&&ay(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function LA(e){var t=FA(e,"string");return yn(t)=="symbol"?t:t+""}function FA(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 String(e)}var oy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,uy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,zA=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,UA=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,l0={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},WA=Object.keys(l0),ir="NaN";function HA(e,t){return e*l0[t]}var oi=(function(){function e(t,r){qA(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!zA.test(r)&&(this.num=NaN,this.unit=""),WA.includes(r)&&(this.num=HA(t,r),this.unit="px")}return BA(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=UA.exec(r))!==null&&n!==void 0?n:[],a=ji(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function f0(e){if(e.includes(ir))return ir;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=oy.exec(t))!==null&&r!==void 0?r:[],i=ji(n,4),a=i[1],o=i[2],u=i[3],s=oi.parse(a??""),c=oi.parse(u??""),f=o==="*"?s.multiply(c):s.divide(c);if(f.isNaN())return ir;t=t.replace(oy,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,h=(l=uy.exec(t))!==null&&l!==void 0?l:[],p=ji(h,4),m=p[1],v=p[2],d=p[3],x=oi.parse(m??""),b=oi.parse(d??""),w=v==="+"?x.add(b):x.subtract(b);if(w.isNaN())return ir;t=t.replace(uy,w.toString())}return t}var sy=/\(([^()]*)\)/;function GA(e){for(var t=e;t.includes("(");){var r=sy.exec(t),n=ji(r,2),i=n[1];t=t.replace(sy,f0(i))}return t}function KA(e){var t=e.replace(/\s+/g,"");return t=GA(t),t=f0(t),t}function XA(e){try{return KA(e)}catch{return ir}}function Qs(e){var t=XA(e.slice(5,-1));return t===ir?"":t}var VA=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],YA=["dx","dy","angle","className","breakAll"];function hl(){return hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
29for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hl.apply(this,arguments)}function cy(e,t){if(e==null)return{};var r=ZA(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 ZA(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 ly(e,t){return tP(e)||eP(e,t)||QA(e,t)||JA()}function JA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 30In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QA(e,t){if(e){if(typeof e=="string")return fy(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 fy(e,t)}}function fy(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 eP(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function tP(e){if(Array.isArray(e))return e}var h0=/[ \f\n\r\t\v\u2028\u2029]+/,d0=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];ne(r)||(n?a=r.toString().split(""):a=r.toString().split(h0));var o=a.map(function(s){return{word:s,width:an(s,i).width}}),u=n?0:an(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},rP=function(t,r,n,i,a){var o=t.maxLines,u=t.children,s=t.style,c=t.breakAll,f=L(o),l=u,h=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return N.reduce(function(k,q){var B=q.word,U=q.width,G=k[k.length-1];if(G&&(i==null||a||G.width+U+n<Number(i)))G.words.push(B),G.width+=U+n;else{var W={words:[B],width:U};k.push(W)}return k},[])},p=h(r),m=function(N){return N.reduce(function(k,q){return k.width>q.width?k:q})};if(!f)return p;for(var v="â¦",d=function(N){var k=l.slice(0,N),q=d0({breakAll:c,style:s,children:k+v}).wordsWithComputedWidth,B=h(q),U=B.length>o||m(B).width>Number(i);return[U,B]},x=0,b=l.length-1,w=0,y;x<=b&&w<=l.length-1;){var g=Math.floor((x+b)/2),O=g-1,_=d(O),S=ly(_,2),j=S[0],M=S[1],A=d(g),E=ly(A,1),C=E[0];if(!j&&!C&&(x=g+1),j&&C&&(b=g-1),!j&&C){y=M;break}w++}return y||p},hy=function(t){var r=ne(t)?[]:t.toString().split(h0);return[{words:r}]},nP=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!Vn.isSsr){var s,c,f=d0({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,h=f.spaceWidth;s=l,c=h}else return hy(i);return rP({breakAll:o,children:i,maxLines:u,style:a},s,c,r,n)}return hy(i)},dy="#808080",Ei=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,s=t.capHeight,c=s===void 0?"0.71em":s,f=t.scaleToFit,l=f===void 0?!1:f,h=t.textAnchor,p=h===void 0?"start":h,m=t.verticalAnchor,v=m===void 0?"end":m,d=t.fill,x=d===void 0?dy:d,b=cy(t,VA),w=R.useMemo(function(){return nP({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:l,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,l,b.style,b.width]),y=b.dx,g=b.dy,O=b.angle,_=b.className,S=b.breakAll,j=cy(b,YA);if(!be(n)||!be(a))return null;var M=n+(L(y)?y:0),A=a+(L(g)?g:0),E;switch(v){case"start":E=Qs("calc(".concat(c,")"));break;case"middle":E=Qs("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:E=Qs("calc(".concat(w.length-1," * -").concat(u,")"));break}var C=[];if(l){var $=w[0].width,N=b.width;C.push("scale(".concat((L(N)?N/$:1)/$,")"))}return O&&C.push("rotate(".concat(O,", ").concat(M,", ").concat(A,")")),C.length&&(j.transform=C.join(" ")),T.createElement("text",hl({},te(j,!0),{x:M,y:A,className:ie("recharts-text",_),textAnchor:p,fill:x.includes("url")?dy:x}),w.map(function(k,q){var B=k.words.join(S?"":" ");return T.createElement("tspan",{x:M,dy:q===0?E:u,key:"".concat(B,"-").concat(q)},B)}))};function Pt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function iP(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function kf(e){let t,r,n;e.length!==2?(t=Pt,r=(u,s)=>Pt(e(u),s),n=(u,s)=>e(u)-s):(t=e===Pt||e===iP?e:aP,r=e,n=e);function i(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<0?c=l+1:f=l}while(c<f)}return c}function a(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<=0?c=l+1:f=l}while(c<f)}return c}function o(u,s,c=0,f=u.length){const l=i(u,s,c,f-1);return l>c&&n(u[l-1],s)>-n(u[l],s)?l-1:l}return{left:i,center:o,right:a}}function aP(){return 0}function p0(e){return e===null?NaN:+e}function*oP(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const uP=kf(Pt),Yn=uP.right;kf(p0).center;class py extends Map{constructor(t,r=lP){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(vy(this,t))}has(t){return super.has(vy(this,t))}set(t,r){return super.set(sP(this,t),r)}delete(t){return super.delete(cP(this,t))}}function vy({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function sP({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function cP({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function lP(e){return e!==null&&typeof e=="object"?e.valueOf():e}function fP(e=Pt){if(e===Pt)return v0;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 v0(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const hP=Math.sqrt(50),dP=Math.sqrt(10),pP=Math.sqrt(2);function Mi(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>=hP?10:a>=dP?5:a>=pP?2:1;let u,s,c;return i<0?(c=Math.pow(10,-i)/o,u=Math.round(e*c),s=Math.round(t*c),u/c<e&&++u,s/c>t&&--s,c=-c):(c=Math.pow(10,i)*o,u=Math.round(e/c),s=Math.round(t/c),u*c<e&&++u,s*c>t&&--s),s<u&&.5<=r&&r<2?Mi(e,t,r*2):[u,s,c]}function dl(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?Mi(t,e,r):Mi(e,t,r);if(!(a>=i))return[];const u=a-i+1,s=new Array(u);if(n)if(o<0)for(let c=0;c<u;++c)s[c]=(a-c)/-o;else for(let c=0;c<u;++c)s[c]=(a-c)*o;else if(o<0)for(let c=0;c<u;++c)s[c]=(i+c)/-o;else for(let c=0;c<u;++c)s[c]=(i+c)*o;return s}function pl(e,t,r){return t=+t,e=+e,r=+r,Mi(e,t,r)[2]}function vl(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?pl(t,e,r):pl(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function yy(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function my(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}
30function y0(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?v0:fP(i);n>r;){if(n-r>600){const s=n-r+1,c=t-r+1,f=Math.log(s),l=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*l*(s-l)/s)*(c-s/2<0?-1:1),p=Math.max(r,Math.floor(t-c*l/s+h)),m=Math.min(n,Math.floor(t+(s-c)*l/s+h));y0(e,t,p,m,i)}const a=e[t];let o=r,u=n;for(Ur(e,r,t),i(e[n],a)>0&&Ur(e,r,n);o<u;){for(Ur(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Ur(e,r,u):(++u,Ur(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Ur(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function vP(e,t,r){if(e=Float64Array.from(oP(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return my(e);if(t>=1)return yy(e);var n,i=(n-1)*t,a=Math.floor(i),o=yy(y0(e,a).subarray(0,a+1)),u=my(e.subarray(a+1));return o+(u-o)*(i-a)}}function yP(e,t,r=p0){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 mP(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 He(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Ot(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 yl=Symbol("implicit");function Df(){var e=new py,t=[],r=[],n=yl;function i(a){let o=e.get(a);if(o===void 0){if(n!==yl)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 py;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 Df(t,r).unknown(n)},He.apply(i,arguments),i}function mn(){var e=Df().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,s=0,c=0,f=.5;delete e.unknown;function l(){var h=t().length,p=i<n,m=p?i:n,v=p?n:i;a=(v-m)/Math.max(1,h-s+c*2),u&&(a=Math.floor(a)),m+=(v-m-a*(h-s))*f,o=a*(1-s),u&&(m=Math.round(m),o=Math.round(o));var d=mP(h).map(function(x){return m+a*x});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?(s=Math.min(1,c=+h),l()):s},e.paddingInner=function(h){return arguments.length?(s=Math.min(1,h),l()):s},e.paddingOuter=function(h){return arguments.length?(c=+h,l()):c},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),l()):f},e.copy=function(){return mn(t(),[n,i]).round(u).paddingInner(s).paddingOuter(c).align(f)},He.apply(l(),arguments)}function m0(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return m0(t())},e}function on(){return m0(mn.apply(null,arguments).paddingInner(1))}function Rf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function g0(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Zn(){}var gn=.7,Ci=1/gn,sr="\\s*([+-]?\\d+)\\s*",bn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gP=/^#([0-9a-f]{3,8})$/,bP=new RegExp(`^rgb\\(${sr},${sr},${sr}\\)$`),xP=new RegExp(`^rgb\\(${tt},${tt},${tt}\\)$`),wP=new RegExp(`^rgba\\(${sr},${sr},${sr},${bn}\\)$`),OP=new RegExp(`^rgba\\(${tt},${tt},${tt},${bn}\\)$`),_P=new RegExp(`^hsl\\(${bn},${tt},${tt}\\)$`),SP=new RegExp(`^hsla\\(${bn},${tt},${tt},${bn}\\)$`),gy={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};Rf(Zn,xn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:by,formatHex:by,formatHex8:AP,formatHsl:PP,formatRgb:xy,toString:xy});function by(){return this.rgb().formatHex()}function AP(){return this.rgb().formatHex8()}function PP(){return b0(this).formatHsl()}function xy(){return this.rgb().formatRgb()}function xn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=gP.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?wy(t):r===3?new Ie(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?ui(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?ui(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=bP.exec(e))?new Ie(t[1],t[2],t[3],1):(t=xP.exec(e))?new Ie(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=wP.exec(e))?ui(t[1],t[2],t[3],t[4]):(t=OP.exec(e))?ui(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=_P.exec(e))?
vendor: 14,268 bytes, line 30
30Sy(t[1],t[2]/100,t[3]/100,1):(t=SP.exec(e))?Sy(t[1],t[2]/100,t[3]/100,t[4]):gy.hasOwnProperty(e)?wy(gy[e]):e==="transparent"?new Ie(NaN,NaN,NaN,0):null}function wy(e){return new Ie(e>>16&255,e>>8&255,e&255,1)}function ui(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ie(e,t,r,n)}function TP(e){return e instanceof Zn||(e=xn(e)),e?(e=e.rgb(),new Ie(e.r,e.g,e.b,e.opacity)):new Ie}function ml(e,t,r,n){return arguments.length===1?TP(e):new Ie(e,t,r,n??1)}function Ie(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Rf(Ie,ml,g0(Zn,{brighter(e){return e=e==null?Ci:Math.pow(Ci,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?gn:Math.pow(gn,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ie(zt(this.r),zt(this.g),zt(this.b),$i(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:Oy,formatHex:Oy,formatHex8:jP,formatRgb:_y,toString:_y}));function Oy(){return`#${Bt(this.r)}${Bt(this.g)}${Bt(this.b)}`}function jP(){return`#${Bt(this.r)}${Bt(this.g)}${Bt(this.b)}${Bt((isNaN(this.opacity)?1:this.opacity)*255)}`}function _y(){const e=$i(this.opacity);return`${e===1?"rgb(":"rgba("}${zt(this.r)}, ${zt(this.g)}, ${zt(this.b)}${e===1?")":`, ${e})`}`}function $i(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function zt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Bt(e){return e=zt(e),(e<16?"0":"")+e.toString(16)}function Sy(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xe(e,t,r,n)}function b0(e){if(e instanceof Xe)return new Xe(e.h,e.s,e.l,e.opacity);if(e instanceof Zn||(e=xn(e)),!e)return new Xe;if(e instanceof Xe)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,s=(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/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new Xe(o,u,s,e.opacity)}function EP(e,t,r,n){return arguments.length===1?b0(e):new Xe(e,t,r,n??1)}function Xe(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Rf(Xe,EP,g0(Zn,{brighter(e){return e=e==null?Ci:Math.pow(Ci,e),new Xe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?gn:Math.pow(gn,e),new Xe(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 Ie(ec(e>=240?e-240:e+120,i,n),ec(e,i,n),ec(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Xe(Ay(this.h),si(this.s),si(this.l),$i(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=$i(this.opacity);return`${e===1?"hsl(":"hsla("}${Ay(this.h)}, ${si(this.s)*100}%, ${si(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ay(e){return e=(e||0)%360,e<0?e+360:e}function si(e){return Math.max(0,Math.min(1,e||0))}function ec(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 qf=e=>()=>e;function MP(e,t){return function(r){return e+r*t}}function CP(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 $P(e){return(e=+e)==1?x0:function(t,r){return r-t?CP(t,r,e):qf(isNaN(t)?r:t)}}function x0(e,t){var r=t-e;return r?MP(e,r):qf(isNaN(e)?t:e)}const Py=(function e(t){var r=$P(t);function n(i,a){var o=r((i=ml(i)).r,(a=ml(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),c=x0(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=s(f),i.opacity=c(f),i+""}}return n.gamma=e,n})(1);function IP(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 NP(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function kP(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]=kr(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 DP(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Ii(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function RP(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]=kr(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var gl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tc=new RegExp(gl.source,"g");function qP(e){return function(){return e}}function BP(e){return function(t){return e(t)+""}}function LP(e,t){var r=gl.lastIndex=tc.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=gl.exec(e))&&(i=tc.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,s.push({i:o,x:Ii(n,i)})),r=tc.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?BP(s[0].x):qP(t):(t=s.length,function(c){for(var f=0,l;f<t;++f)u[(l=s[f]).i]=l.x(c);return u.join("")})}function kr(e,t){var r=typeof t,n;return t==null||r==="boolean"?qf(t):(r==="number"?Ii:r==="string"?(n=xn(t))?(t=n,Py):LP:t instanceof xn?Py:t instanceof Date?DP:NP(t)?IP:Array.isArray(t)?kP:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?RP:Ii)(e,t)}function Bf(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function FP(e,t){t===void 0&&(t=e,e=kr);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 zP(e){return function(){return e}}function Ni(e){return+e}var Ty=[0,1];function $e(e){return e}function bl(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:zP(isNaN(t)?NaN:.5)}function UP(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function WP(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=bl(i,n),a=r(o,a)):(n=bl(n,i),a=r(a,o)),function(u){return a(n(u))}}function HP(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]=bl(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=Yn(e,u,1,n)-1;return a[s](i[s](u))}}function Jn(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Sa(){var e=Ty,t=Ty,r=kr,n,i,a,o=$e,u,s,c;function f(){var h=Math.min(e.length,t.length);return o!==$e&&(o=UP(e[0],e[h-1])),u=h>2?HP:WP,s=c=null,l}function l(h){return h==null||isNaN(h=+h)?a:(s||(s=u(e.map(n),t,r)))(n(o(h)))}return l.invert=function(h){return o(i((c||(c=u(t,e.map(n),Ii)))(h)))},l.domain=function(h){return arguments.length?(e=Array.from(h,Ni),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=Bf,f()},l.clamp=function(h){return arguments.length?(o=h?!0:$e,f()):o!==$e},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 Lf(){return Sa()($e,$e)}function GP(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ki(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 yr(e){return e=ki(Math.abs(e)),e?e[1]:NaN}function KP(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(r.substring(i-=u,i+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function XP(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var VP=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wn(e){if(!(t=VP.exec(e)))throw new Error("invalid format: "+e);var t;return new Ff({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]})}wn.prototype=Ff.prototype;function Ff(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+""}Ff.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 YP(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 w0;function ZP(e,t){var r=ki(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(w0=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")+ki(e,Math.max(0,t+a-1))[0]}function jy(e,t){var r=ki(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 Ey={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:GP,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)=>jy(e*100,t),r:jy,s:ZP,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function My(e){return e}var Cy=Array.prototype.map,$y=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function JP(e){var t=e.grouping===void 0||e.thousands===void 0?My:KP(Cy.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?My:XP(Cy.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"â":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(l){l=wn(l);var h=l.fill,p=l.align,m=l.sign,v=l.symbol,d=l.zero,x=l.width,b=l.comma,w=l.precision,y=l.trim,g=l.type;g==="n"?(b=!0,g="g"):Ey[g]||(w===void 0&&(w=12),y=!0,g="g"),(d||h==="0"&&p==="=")&&(d=!0,h="0",p="=");var O=v==="$"?r:v==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",_=v==="$"?n:/[%p]/.test(g)?o:"",S=Ey[g],j=/[defgprs%]/.test(g);w=w===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function M(A){var E=O,C=_,$,N,k;if(g==="c")C=S(A)+C,A="";else{A=+A;var q=A<0||1/A<0;if(A=isNaN(A)?s:S(Math.abs(A),w),y&&(A=YP(A)),q&&+A==0&&m!=="+"&&(q=!1),E=(q?m==="("?m:u:m==="-"||m==="("?"":m)+E,C=(g==="s"?$y[8+w0/3]:"")+C+(q&&m==="("?")":""),j){for($=-1,N=A.length;++$<N;)if(k=A.charCodeAt($),48>k||k>57){C=(k===46?i+A.slice($+1):A.slice($))+C,A=A.slice(0,$);break}}}b&&!d&&(A=t(A,1/0));var B=E.length+A.length+C.length,U=B<x?new Array(x-B+1).join(h):"";switch(b&&d&&(A=t(U+A,U.length?x-C.length:1/0),U=""),p){case"<":A=E+A+C+U;break;case"=":A=E+U+A+C;break;case"^":A=U.slice(0,B=U.length>>1)+E+A+C+U.slice(B);break;default:A=U+E+A+C;break}return a(A)}return M.toString=function(){return l+""},M}function f(l,h){var p=c((l=wn(l),l.type="f",l)),m=Math.max(-8,Math.min(8,Math.floor(yr(h)/3)))*3,v=Math.pow(10,-m),d=$y[8+m/3];return function(x){return p(v*x)+d}}return{format:c,formatPrefix:f}}var ci,zf,O0;QP({thousands:",",grouping:[3],currency:["$",""]});function QP(e){return ci=JP(e),zf=ci.format,O0=ci.formatPrefix,ci}function eT(e){return Math.max(0,-yr(Math.abs(e)))}function tT(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(yr(t)/3)))*3-yr(Math.abs(e)))}function rT(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,yr(t)-yr(e))+1}function _0(e,t,r,n){var i=vl(e,t,r),a;switch(n=wn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=tT(i,o))&&(n.precision=a),O0(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=rT(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=eT(i))&&(n.precision=a-(n.type==="%")*2);break}}return zf(n)}function Mt(e){var t=e.domain;return e.ticks=function(r){var n=t();return dl(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return _0(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],s,c,f=10;for(u<o&&(c=o,o=u,u=c,c=i,i=a,a=c);f-- >0;){if(c=pl(o,u,r),c===s)return n[i]=o,n[a]=u,t(n);if(c>0)o=Math.floor(o/c)*c,u=Math.ceil(u/c)*c;else if(c<0)o=Math.ceil(o*c)/c,u=Math.floor(u*c)/c;else break;s=c}return e},e}function Di(){var e=Lf();return e.copy=function(){return Jn(e,Di())},He.apply(e,arguments),Mt(e)}function S0(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,Ni),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return S0(e).unknown(t)},e=arguments.length?Array.from(e,Ni):[0,1],Mt(r)}function A0(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 Iy(e){return Math.log(e)}function Ny(e){return Math.exp(e)}function nT(e){return-Math.log(-e)}function iT(e){return-Math.exp(-e)}function aT(e){return isFinite(e)?+("1e"+e):e<0?0:e}function oT(e){return e===10?aT:e===Math.E?Math.exp:t=>Math.pow(e,t)}function uT(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 ky(e){return(t,r)=>-e(-t,r)}function Uf(e){const t=e(Iy,Ny),r=t.domain;let n=10,i,a;function o(){return i=uT(n),a=oT(n),r()[0]<0?(i=ky(i),a=ky(a),e(nT,iT)):e(Iy,Ny),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 s=r();let c=s[0],f=s[s.length-1];const l=f<c;l&&([c,f]=[f,c]);let h=i(c),p=i(f),m,v;const d=u==null?10:+u;let x=[];if(!(n%1)&&p-h<d){if(h=Math.floor(h),p=Math.ceil(p),c>0){for(;h<=p;
vendor: 4,451 bytes, line 30
30++h)for(m=1;m<n;++m)if(v=h<0?m/a(-h):m*a(h),!(v<c)){if(v>f)break;x.push(v)}}else for(;h<=p;++h)for(m=n-1;m>=1;--m)if(v=h>0?m/a(-h):m*a(h),!(v<c)){if(v>f)break;x.push(v)}x.length*2<d&&(x=dl(c,f,d))}else x=dl(h,p,Math.min(p-h,d)).map(a);return l?x.reverse():x},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=wn(s)).precision==null&&(s.trim=!0),s=zf(s)),u===1/0)return s;const c=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<=c?s(f):""}},t.nice=()=>r(A0(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function P0(){const e=Uf(Sa()).domain([1,10]);return e.copy=()=>Jn(e,P0()).base(e.base()),He.apply(e,arguments),e}function Dy(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Ry(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Wf(e){var t=1,r=e(Dy(t),Ry(t));return r.constant=function(n){return arguments.length?e(Dy(t=+n),Ry(t)):t},Mt(r)}function T0(){var e=Wf(Sa());return e.copy=function(){return Jn(e,T0()).constant(e.constant())},He.apply(e,arguments)}function qy(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function sT(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function cT(e){return e<0?-e*e:e*e}function Hf(e){var t=e($e,$e),r=1;function n(){return r===1?e($e,$e):r===.5?e(sT,cT):e(qy(r),qy(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Mt(t)}function Gf(){var e=Hf(Sa());return e.copy=function(){return Jn(e,Gf()).exponent(e.exponent())},He.apply(e,arguments),e}function lT(){return Gf.apply(null,arguments).exponent(.5)}function By(e){return Math.sign(e)*e*e}function fT(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function j0(){var e=Lf(),t=[0,1],r=!1,n;function i(a){var o=fT(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(By(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,Ni)).map(By)),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 j0(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},He.apply(i,arguments),Mt(i)}function E0(){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]=yP(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Yn(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(Pt),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 E0().domain(e).range(t).unknown(n)},He.apply(a,arguments)}function M0(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[Yn(n,s,0,r)]:a}function u(){var s=-1;for(n=new Array(r);++s<r;)n[s]=((s+1)*t-(s-r)*e)/(r+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,u()):[e,t]},o.range=function(s){return arguments.length?(r=(i=Array.from(s)).length-1,u()):i.slice()},o.invertExtent=function(s){var c=i.indexOf(s);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return M0().domain([e,t]).range(i).unknown(a)},He.apply(Mt(o),arguments)}function C0(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Yn(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 C0().domain(e).range(t).unknown(r)},He.apply(i,arguments)}const rc=new Date,nc=new Date;function xe(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>
vendor: 5,100 bytes, line 30
30(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 s=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;let c;do s.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<o);return s},i.filter=a=>xe(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)=>(rc.setTime(+a),nc.setTime(+o),e(rc),e(nc),Math.floor(r(rc,nc))),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 Ri=xe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ri.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?xe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ri);Ri.range;const ft=1e3,ze=ft*60,ht=ze*60,mt=ht*24,Kf=mt*7,Ly=mt*30,ic=mt*365,Lt=xe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ft)},(e,t)=>(t-e)/ft,e=>e.getUTCSeconds());Lt.range;const Xf=xe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ft)},(e,t)=>{e.setTime(+e+t*ze)},(e,t)=>(t-e)/ze,e=>e.getMinutes());Xf.range;const Vf=xe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ze)},(e,t)=>(t-e)/ze,e=>e.getUTCMinutes());Vf.range;const Yf=xe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ft-e.getMinutes()*ze)},(e,t)=>{e.setTime(+e+t*ht)},(e,t)=>(t-e)/ht,e=>e.getHours());Yf.range;const Zf=xe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ht)},(e,t)=>(t-e)/ht,e=>e.getUTCHours());Zf.range;const Qn=xe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ze)/mt,e=>e.getDate()-1);Qn.range;const Aa=xe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mt,e=>e.getUTCDate()-1);Aa.range;const $0=xe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mt,e=>Math.floor(e/mt));$0.range;function Yt(e){return xe(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())*ze)/Kf)}const Pa=Yt(0),qi=Yt(1),hT=Yt(2),dT=Yt(3),mr=Yt(4),pT=Yt(5),vT=Yt(6);Pa.range;qi.range;hT.range;dT.range;mr.range;pT.range;vT.range;function Zt(e){return xe(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)/Kf)}const Ta=Zt(0),Bi=Zt(1),yT=Zt(2),mT=Zt(3),gr=Zt(4),gT=Zt(5),bT=Zt(6);Ta.range;Bi.range;yT.range;mT.range;gr.range;gT.range;bT.range;const Jf=xe(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());Jf.range;const Qf=xe(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());Qf.range;const gt=xe(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());gt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xe(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)});gt.range;const bt=xe(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());bt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xe(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)});bt.range;function I0(e,t,r,n,i,a){const o=[[Lt,1,ft],[Lt,5,5*ft],[Lt,15,15*ft],[Lt,30,30*ft],[a,1,ze],[a,5,5*ze],[a,15,15*ze],[a,30,30*ze],[i,1,ht],[i,3,3*ht],[i,6,6*ht],[i,12,12*ht],[n,1,mt],[n,2,2*mt],[r,1,Kf],[t,1,Ly],[t,3,3*Ly],[e,1,ic]];function u(c,f,l){const h=f<c;h&&([c,f]=[f,c]);const p=l&&typeof l.range=="function"?l:s(c,f,l),m=p?p.range(c,+f+1):[];return h?m.reverse():m}function s(c,f,l){const h=Math.abs(f-c)/l,p=kf(([,,d])=>d).right(o,h);if(p===o.length)return e.every(vl(c/ic,f/ic,l));if(p===0)return Ri.every(Math.max(vl(c,f,l),1));const[m,v]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return m.every(v)}return[u,s]}const[xT,wT]=I0(bt,Qf,Ta,$0,Zf,Vf),[OT,_T]=I0(gt,Jf,Pa,Qn,Yf,Xf);function ac(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 oc(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 Wr(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function ST(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,c=Hr(i),f=Gr(i),l=Hr(a),h=Gr(a),p=Hr(o),m=Gr(o),v=Hr(u),d=Gr(u),x=Hr(s),b=Gr(s),w={a:q,A:B,b:U,B:G,c:null,d:Gy,e:Gy,f:KT,g:nj,G:aj,H:WT,I:HT,j:GT,
vendor: 8,047 bytes, line 30
30L:N0,m:XT,M:VT,p:W,q:H,Q:Vy,s:Yy,S:YT,u:ZT,U:JT,V:QT,w:ej,W:tj,x:null,X:null,y:rj,Y:ij,Z:oj,"%":Xy},y={a:X,A:se,b:Se,B:ot,c:null,d:Ky,e:Ky,f:lj,g:xj,G:Oj,H:uj,I:sj,j:cj,L:D0,m:fj,M:hj,p:Te,q:ut,Q:Vy,s:Yy,S:dj,u:pj,U:vj,V:yj,w:mj,W:gj,x:null,X:null,y:bj,Y:wj,Z:_j,"%":Xy},g={a:M,A,b:E,B:C,c:$,d:Wy,e:Wy,f:LT,g:Uy,G:zy,H:Hy,I:Hy,j:DT,L:BT,m:kT,M:RT,p:j,q:NT,Q:zT,s:UT,S:qT,u:ET,U:MT,V:CT,w:jT,W:$T,x:N,X:k,y:Uy,Y:zy,Z:IT,"%":FT};w.x=O(r,w),w.X=O(n,w),w.c=O(t,w),y.x=O(r,y),y.X=O(n,y),y.c=O(t,y);function O(F,V){return function(Z){var D=[],de=-1,Q=0,me=F.length,pe,ke,st;for(Z instanceof Date||(Z=new Date(+Z));++de<me;)F.charCodeAt(de)===37&&(D.push(F.slice(Q,de)),(ke=Fy[pe=F.charAt(++de)])!=null?pe=F.charAt(++de):ke=pe==="e"?" ":"0",(st=V[pe])&&(pe=st(Z,ke)),D.push(pe),Q=de+1);return D.push(F.slice(Q,de)),D.join("")}}function _(F,V){return function(Z){var D=Wr(1900,void 0,1),de=S(D,F,Z+="",0),Q,me;if(de!=Z.length)return null;if("Q"in D)return new Date(D.Q);if("s"in D)return new Date(D.s*1e3+("L"in D?D.L:0));if(V&&!("Z"in D)&&(D.Z=0),"p"in D&&(D.H=D.H%12+D.p*12),D.m===void 0&&(D.m="q"in D?D.q:0),"V"in D){if(D.V<1||D.V>53)return null;"w"in D||(D.w=1),"Z"in D?(Q=oc(Wr(D.y,0,1)),me=Q.getUTCDay(),Q=me>4||me===0?Bi.ceil(Q):Bi(Q),Q=Aa.offset(Q,(D.V-1)*7),D.y=Q.getUTCFullYear(),D.m=Q.getUTCMonth(),D.d=Q.getUTCDate()+(D.w+6)%7):(Q=ac(Wr(D.y,0,1)),me=Q.getDay(),Q=me>4||me===0?qi.ceil(Q):qi(Q),Q=Qn.offset(Q,(D.V-1)*7),D.y=Q.getFullYear(),D.m=Q.getMonth(),D.d=Q.getDate()+(D.w+6)%7)}else("W"in D||"U"in D)&&("w"in D||(D.w="u"in D?D.u%7:"W"in D?1:0),me="Z"in D?oc(Wr(D.y,0,1)).getUTCDay():ac(Wr(D.y,0,1)).getDay(),D.m=0,D.d="W"in D?(D.w+6)%7+D.W*7-(me+5)%7:D.w+D.U*7-(me+6)%7);return"Z"in D?(D.H+=D.Z/100|0,D.M+=D.Z%100,oc(D)):ac(D)}}function S(F,V,Z,D){for(var de=0,Q=V.length,me=Z.length,pe,ke;de<Q;){if(D>=me)return-1;if(pe=V.charCodeAt(de++),pe===37){if(pe=V.charAt(de++),ke=g[pe in Fy?V.charAt(de++):pe],!ke||(D=ke(F,Z,D))<0)return-1}else if(pe!=Z.charCodeAt(D++))return-1}return D}function j(F,V,Z){var D=c.exec(V.slice(Z));return D?(F.p=f.get(D[0].toLowerCase()),Z+D[0].length):-1}function M(F,V,Z){var D=p.exec(V.slice(Z));return D?(F.w=m.get(D[0].toLowerCase()),Z+D[0].length):-1}function A(F,V,Z){var D=l.exec(V.slice(Z));return D?(F.w=h.get(D[0].toLowerCase()),Z+D[0].length):-1}function E(F,V,Z){var D=x.exec(V.slice(Z));return D?(F.m=b.get(D[0].toLowerCase()),Z+D[0].length):-1}function C(F,V,Z){var D=v.exec(V.slice(Z));return D?(F.m=d.get(D[0].toLowerCase()),Z+D[0].length):-1}function $(F,V,Z){return S(F,t,V,Z)}function N(F,V,Z){return S(F,r,V,Z)}function k(F,V,Z){return S(F,n,V,Z)}function q(F){return o[F.getDay()]}function B(F){return a[F.getDay()]}function U(F){return s[F.getMonth()]}function G(F){return u[F.getMonth()]}function W(F){return i[+(F.getHours()>=12)]}function H(F){return 1+~~(F.getMonth()/3)}function X(F){return o[F.getUTCDay()]}function se(F){return a[F.getUTCDay()]}function Se(F){return s[F.getUTCMonth()]}function ot(F){return u[F.getUTCMonth()]}function Te(F){return i[+(F.getUTCHours()>=12)]}function ut(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var V=O(F+="",w);return V.toString=function(){return F},V},parse:function(F){var V=_(F+="",!1);return V.toString=function(){return F},V},utcFormat:function(F){var V=O(F+="",y);return V.toString=function(){return F},V},utcParse:function(F){var V=_(F+="",!0);return V.toString=function(){return F},V}}}var Fy={"-":"",_:" ",0:"0"},_e=/^\s*\d+/,AT=/^%/,PT=/[\\^$*+?|[\]().{}]/g;function ee(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 TT(e){return e.replace(PT,"\\$&")}function Hr(e){return new RegExp("^(?:"+e.map(TT).join("|")+")","i")}function Gr(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function jT(e,t,r){var n=_e.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function ET(e,t,r){var n=_e.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function MT(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function CT(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function $T(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function zy(e,t,r){var n=_e.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Uy(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function IT(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 NT(e,t,r){var n=_e.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function kT(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Wy(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function DT(e,t,r){var n=_e.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Hy(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function RT(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function qT(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function BT(e,t,r){var n=_e.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function LT(e,t,r){var n=_e.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function FT(e,t,r){var n=AT.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function zT(e,t,r){var n=_e.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function UT(e,t,r){var n=_e.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Gy(e,t){return ee(e.getDate(),t,2)}function WT(e,t){return ee(e.getHours(),t,2)}function HT(e,t){return ee(e.getHours()%12||12,t,2)}function GT(e,t){return ee(1+Qn.count(gt(e),e),t,3)}function N0(e,t){return ee(e.getMilliseconds(),t,3)}function KT(e,t){return N0(e,t)+"000"}function XT(e,t){return ee(e.getMonth()+1,t,2)}function VT(e,t){return ee(e.getMinutes(),t,2)}function YT(e,t){return ee(e.getSeconds(),t,2)}function ZT(e){var t=e.getDay();return t===0?7:t}function JT(e,t){return ee(Pa.count(gt(e)-1,e),t,2)}function k0(e){var t=e.getDay();return t>=4||t===0?mr(e):mr.ceil(e)}function QT(e,t){return e=k0(e),ee(mr.count(gt(e),e)+(gt(e).getDay()===4),t,2)}function ej(e){return e.getDay()}function tj(e,t){return ee(qi.count(gt(e)-1,e),t,2)}function rj(e,t){return ee(e.getFullYear()%100,t,2)}function nj(e,t){return e=k0(e),ee(e.getFullYear()%100,t,2)}function ij(e,t){return ee(e.getFullYear()%1e4,t,4)}function aj(e,t){var r=e.getDay();return e=r>=4||r===0?mr(e):mr.ceil(e),ee(e.getFullYear()%1e4,t,4)}function oj(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ee(t/60|0,"0",2)+ee(t%60,"0",2)}function Ky(e,t){return ee(e.getUTCDate(),t,2)}function uj(e,t){return ee(e.getUTCHours(),t,2)}function sj(e,t){return ee(e.getUTCHours()%12||12,t,2)}function cj(e,t){return ee(1+Aa.count(bt(e),e),t,3)}function D0(e,t){return ee(e.getUTCMilliseconds(),t,3)}function lj(e,t){return D0(e,t)+"000"}function fj(e,t){return ee(e.getUTCMonth()+1,t,2)}function hj(e,t){return ee(e.getUTCMinutes(),t,2)}function dj(e,t){return ee(e.getUTCSeconds(),t,2)}function pj(e){var t=e.getUTCDay();return t===0?7:t}function vj(e,t){return ee(Ta.count(bt(e)-1,e),t,2)}function R0(e){var t=e.getUTCDay();return t>=4||t===0?gr(e):gr.ceil(e)}function yj(e,t){return e=R0(e),ee(gr.count(bt(e),e)+(bt(e).getUTCDay()===4),t,2)}function mj(e){return e.getUTCDay()}function gj(e,t){return ee(Bi.count(bt(e)-1,e),t,2)}function bj(e,t){return ee(e.getUTCFullYear()%100,t,2)}function xj(e,t){return e=R0(e),ee(e.getUTCFullYear()%100,t,2)}function wj(e,t){return ee(e.getUTCFullYear()%1e4,t,4)}function Oj(e,t){var r=e.getUTCDay();return e=r>=4||r===0?gr(e):gr.ceil(e),ee(e.getUTCFullYear()%1e4,t,4)}function _j(){return"+0000"}function Xy(){return"%"}function Vy(e){return+e}function Yy(e){return Math.floor(+e/1e3)}var tr,q0,B0;Sj({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
30ay","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 Sj(e){return tr=ST(e),q0=tr.format,tr.parse,B0=tr.utcFormat,tr.utcParse,tr}function Aj(e){return new Date(e)}function Pj(e){return e instanceof Date?+e:+new Date(+e)}function eh(e,t,r,n,i,a,o,u,s,c){var f=Lf(),l=f.invert,h=f.domain,p=c(".%L"),m=c(":%S"),v=c("%I:%M"),d=c("%I %p"),x=c("%a %d"),b=c("%b %d"),w=c("%B"),y=c("%Y");function g(O){return(s(O)<O?p:u(O)<O?m:o(O)<O?v:a(O)<O?d:n(O)<O?i(O)<O?x:b:r(O)<O?w:y)(O)}return f.invert=function(O){return new Date(l(O))},f.domain=function(O){return arguments.length?h(Array.from(O,Pj)):h().map(Aj)},f.ticks=function(O){var _=h();return e(_[0],_[_.length-1],O??10)},f.tickFormat=function(O,_){return _==null?g:c(_)},f.nice=function(O){var _=h();return(!O||typeof O.range!="function")&&(O=t(_[0],_[_.length-1],O??10)),O?h(A0(_,O)):f},f.copy=function(){return Jn(f,eh(e,t,r,n,i,a,o,u,s,c))},f}function Tj(){return He.apply(eh(OT,_T,gt,Jf,Pa,Qn,Yf,Xf,Lt,q0).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function jj(){return He.apply(eh(xT,wT,bt,Qf,Ta,Aa,Zf,Vf,Lt,B0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ja(){var e=0,t=1,r,n,i,a,o=$e,u=!1,s;function c(l){return l==null||isNaN(l=+l)?s:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}c.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(l){return arguments.length?(u=!!l,c):u},c.interpolator=function(l){return arguments.length?(o=l,c):o};function f(l){return function(h){var p,m;return arguments.length?([p,m]=h,o=l(p,m),c):[o(0),o(1)]}}return c.range=f(kr),c.rangeRound=f(Bf),c.unknown=function(l){return arguments.length?(s=l,c):s},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),c}}function Ct(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function L0(){var e=Mt(ja()($e));return e.copy=function(){return Ct(e,L0())},Ot.apply(e,arguments)}function F0(){var e=Uf(ja()).domain([1,10]);return e.copy=function(){return Ct(e,F0()).base(e.base())},Ot.apply(e,arguments)}function z0(){var e=Wf(ja());return e.copy=function(){return Ct(e,z0()).constant(e.constant())},Ot.apply(e,arguments)}function th(){var e=Hf(ja());return e.copy=function(){return Ct(e,th()).exponent(e.exponent())},Ot.apply(e,arguments)}function Ej(){return th.apply(null,arguments).exponent(.5)}function U0(){var e=[],t=$e;function r(n){if(n!=null&&!isNaN(n=+n))return t((Yn(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(Pt),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)=>vP(e,a/n))},r.copy=function(){return U0(t).domain(e)},Ot.apply(r,arguments)}function Ea(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,c=$e,f,l=!1,h;function p(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:s),c(l?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(v){return arguments.length?(l=!!v,p):l},p.interpolator=function(v){return arguments.length?(c=v,p):c};function m(v){return function(d){var x,b,w;return arguments.length?([x,b,w]=d,c=FP(v,[x,b,w]),p):[c(0),c(.5),c(1)]}}return p.range=m(kr),p.rangeRound=m(Bf),p.unknown=function(v){return arguments.length?(h=v,p):h},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function W0(){var e=Mt(Ea()($e));return e.copy=function(){return Ct(e,W0())},Ot.apply(e,arguments)}function H0(){var e=Uf(Ea()).domain([.1,1,10]);return e.copy=function(){return Ct(e,H0()).base(e.base())},Ot.apply(e,arguments)}function G0(){var e=Wf(Ea());return e.copy=function(){return Ct(e,G0()).constant(e.constant())},Ot.apply(e,arguments)}function rh(){var e=Hf(Ea());return e.copy=function(){return Ct(e,rh()).exponent(e.exponent())},Ot.apply(e,arguments)}function Mj(){return rh.apply(null,arguments).exponent(.5)}const Zy=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:mn,scaleDiverging:W0,scaleDivergingLog:H0,scaleDivergingPow:rh,scaleDivergingSqrt:Mj,scaleDivergingSymlog:G0,scaleIdentity:S0,scaleImplicit:yl,scaleLinear:Di,scaleLog:P0,scaleOrdinal:Df,scalePoint:on,scalePow:Gf,scaleQuantile:E0,scaleQuantize:M0,scaleRadial:j0,scaleSequential:L0,scaleSequentialLog:F0,scaleSequentialPow:th,scaleSequentialQuantile:U0,scaleSequentialSqrt:Ej,scaleSequentialSymlog:z0,scaleSqrt:lT,scaleSymlog:T0,scaleThreshold:C0,scaleTime:Tj,scaleUtc:jj,tickFormat:_0},Symbol.toStringTag,{value:"Module"}));var uc,Jy;function K0(){if(Jy)return uc;Jy=1;var e=$r();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],s=n(u);if(s!=null&&(c===void 0?s===s&&!e(s):i(s,c)))var c=s,f=u}return f}return uc=t,uc}var sc,Qy;function Cj(){if(Qy)return sc;Qy=1;function e(t,r){return t>r}return sc=e,sc}var cc,em;function $j(){if(em)return cc;em=1;var e=K0(),t=Cj(),r=Nr();function n(i){return i&&i.length?e(i,r,t):void 0}return cc=n,cc}var Ij=$j();const Ma=le(Ij);var lc,tm;function Nj(){if(tm)return lc;tm=1;function e(t,r){return t<r}return lc=e,lc}var fc,rm;function kj(){if(rm)return fc;rm=1;var e=K0(),t=Nj(),r=Nr();function n(i){return i&&i.length?e(i,r,t):void 0}return fc=n,fc}var Dj=kj();const Ca=le(Dj);var hc,nm;function Rj(){if(nm)return hc;nm=1;var e=gf(),t=Et(),r=t0(),n=Ne();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return hc=i,hc}var dc,im;function qj(){if(im)return dc;im=1;var e=Qb(),t=Rj();function r(n,i){return e(t(n,i),1)}return dc=r,dc}var Bj=qj();const Lj=le(Bj);var pc,am;function Fj(){if(am)return pc;am=1;var e=Cf();function t(r,n){return e(r,n)}return pc=t,pc}var zj=Fj();const nh=le(zj);
vendor: 45,664 bytes, lines 30-37
30var Dr=1e9,Uj={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},ah,fe=!0,We="[DecimalError] ",Ut=We+"Invalid argument: ",ih=We+"Exponent out of range: ",Rr=Math.floor,Rt=Math.pow,Wj=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,qe,we=1e7,ce=7,X0=9007199254740991,Li=Rr(X0/ce),z={};z.absoluteValue=z.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};z.comparedTo=z.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};z.decimalPlaces=z.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ce;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};z.dividedBy=z.div=function(e){return yt(this,new this.constructor(e))};z.dividedToIntegerBy=z.idiv=function(e){var t=this,r=t.constructor;return oe(yt(t,new r(e),0,1),r.precision)};z.equals=z.eq=function(e){return!this.cmp(e)};z.exponent=function(){return ye(this)};z.greaterThan=z.gt=function(e){return this.cmp(e)>0};z.greaterThanOrEqualTo=z.gte=function(e){return this.cmp(e)>=0};z.isInteger=z.isint=function(){return this.e>this.d.length-2};z.isNegative=z.isneg=function(){return this.s<0};z.isPositive=z.ispos=function(){return this.s>0};z.isZero=function(){return this.s===0};z.lessThan=z.lt=function(e){return this.cmp(e)<0};z.lessThanOrEqualTo=z.lte=function(e){return this.cmp(e)<1};z.logarithm=z.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(qe))throw Error(We+"NaN");if(r.s<1)throw Error(We+(r.s?"NaN":"-Infinity"));return r.eq(qe)?new n(0):(fe=!1,t=yt(On(r,a),On(e,a),a),fe=!0,oe(t,i))};z.minus=z.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Z0(t,e):V0(t,(e.s=-e.s,e))};z.modulo=z.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(We+"NaN");return r.s?(fe=!1,t=yt(r,e,0,1).times(e),fe=!0,r.minus(t)):oe(new n(r),i)};z.naturalExponential=z.exp=function(){return Y0(this)};z.naturalLogarithm=z.ln=function(){return On(this)};z.negated=z.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};z.plus=z.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?V0(t,e):Z0(t,(e.s=-e.s,e))};z.precision=z.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ut+e);if(t=ye(i)+1,n=i.d.length-1,r=n*ce+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};z.squareRoot=z.sqrt=function(){var e,t,r,n,i,a,o,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(We+"NaN")}for(e=ye(u),fe=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=et(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Rr((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 s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(yt(u,a,o+2)).times(.5),et(a.d).slice(0,o)===(t=et(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(oe(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return fe=!0,oe(n,r)};z.times=z.mul=function(e){var t,r,n,i,a,o,u,s,c,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,s=h.length,c=p.length,s<c&&(a=h,h=p,p=a,o=s,s=c,c=o),a=[],o=s+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=s+n;i>n;)u=a[i]+p[n]*h[i-n-1]+t,a[i--]=u%we|0,t=u/we|0;a[i]=(a[i]+t)%we|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,fe?oe(e,l.precision):e};z.toDecimalPlaces=z.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(nt(e,0,Dr),t===void 0?t=n.rounding:nt(t,0,8),oe(r,e+ye(r)+1,t))};z.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Gt(n,!0):(nt(e,0,Dr),t===void 0?t=i.rounding:nt(t,0,8),n=oe(new i(n),e+1,t),r=Gt(n,!0,e+1)),r};z.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Gt(i):(nt(e,0,Dr),t===void 0?t=a.rounding:nt(t,0,8),n=oe(new a(i),e+ye(i)+1,t),r=Gt(n.abs(),!1,e+ye(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};z.toInteger=z.toint=function(){var e=this,t=e.constructor;return oe(new t(e),ye(e)+1,t.rounding)};z.toNumber=function(){return+this};z.toPower=z.pow=function(e){var t,r,n,i,a,o,u=this,s=u.constructor,c=12,f=+(e=new s(e));if(!e.s)return new s(qe);if(u=new s(u),!u.s){if(e.s<1)throw Error(We+"Infinity");return u}if(u.eq(qe))return u;if(n=s.precision,e.eq(qe))return oe(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=X0){for(i=new s(qe),t=Math.ceil(n/ce+4),fe=!1;r%2&&(i=i.times(u),um(i.d,t)),r=Rr(r/2),r!==0;)u=u.times(u),um(u.d,t);return fe=!0,e.s<0?new s(qe).div(i):oe(i,n)}}else if(a<0)throw Error(We+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,fe=!1,i=e.times(On(u,n+c)),fe=!0,i=Y0(i),i.s=a,i};z.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=ye(i),n=Gt(i,r<=a.toExpNeg||r>=a.toExpPos)):(nt(e,1,Dr),t===void 0?t=a.rounding:nt(t,0,8),i=oe(new a(i),e,t),r=ye(i),n=Gt(i,e<=r||r<=a.toExpNeg,e)),n};z.toSignificantDigits=z.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(nt(e,1,Dr),t===void 0?t=n.rounding:nt(t,0,8)),oe(new n(r),e,t)};z.toString=z.valueOf=z.val=z.toJSON=z[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ye(e),r=e.constructor;return Gt(e,t<=r.toExpNeg||t>=r.toExpPos)};function V0(e,t){var r,n,i,a,o,u,s,c,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),fe?oe(t,l):t;if(s=e.d,c=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,u=c.length):(n=c,i=o,u=s.length),o=Math.ceil(l/ce),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=s.length,a=c.length,u-a<0&&(a=u,n=c,c=s,s=n),r=0;a;)r=(s[--a]=s[a]+c[a]+r)/we|0,s[a]%=we;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,fe?oe(t,l):t}function nt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Ut+e)}function et(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=ce-n.length,r&&(a+=_t(r)),a+=n;o=e[t],n=o+"",r=ce-n.length,r&&(a+=_t(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var yt=(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%we|0,o=a/we|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,s;if(a!=o)s=a>o?1:-1;else for(u=s=0;u<a;u++)if(n[u]!=i[u]){s=n[u]>i[u]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*we+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,s,c,f,l,h,p,m,v,d,x,b,w,y,g,O,_,S,j=n.constructor,M=n.s==i.s?1:-1,A=n.d,E=i.d;if(!n.s)return new j(n);if(!i.s)throw Error(We+"Division by zero");for(s=n.e-i.e,_=E.length,g=A.length,p=new j(M),m=p.d=[],c=0;E[c]==(A[c]||0);)++c;if(E[c]>(A[c]||0)&&--s,a==null?b=a=j.precision:o?b=a+(ye(n)-ye(i))+1:b=a,b<0)return new j(0);if(b=b/ce+2|0,c=0,_==1)for(f=0,E=E[0],b++;(c<g||f)&&b--;c++)w=f*we+(A[c]||0),m[c]=w/E|0,f=w%E|0;else{for(f=we/(E[0]+1)|0,f>1&&(E=e(E,f),A=e(A,f),_=E.length,g=A.length),y=_,v=A.slice(0,_),d=v.length;d<_;)v[d++]=0;S=E.slice(),S.unshift(0),O=E[0],E[1]>=we/2&&++O;do f=0,u=t(E,v,_,d),u<0?(x=v[0],_!=d&&(x=x*we+(v[1]||0)),f=x/O|0,f>1?(f>=we&&(f=we-1),l=e(E,f),h=l.length,d=v.length,u=t(l,v,h,d),u==1&&(f--,r(l,_<h?S:E,h))):(f==0&&(u=f=1),l=E.slice()),h=l.length,h<d&&l.unshift(0),r(v,l,d),u==-1&&(d=v.length,u=t(E,v,_,d),u<1&&(f++,r(v,_<d?S:E,d))),d=v.length):u===0&&(f++,v=[0]),m[c++]=f,u&&v[0]?v[d++]=A[y]||0:(v=[A[y]],d=1);while((y++<g||v[0]!==void 0)&&b--)}return m[0]||m.shift(),p.e=s,oe(p,o?a+ye(p)+1:a)}})();function Y0(e,t){var r,n,i,a,o,u,s=0,c=0,f=e.constructor,l=f.precision;if(ye(e)>16)throw Error(ih+ye(e));if(!e.s)return new f(qe);for(fe=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Rt(2,c))/Math.LN10*2+5|0,u+=n,r=i=a=new f(qe),f.precision=u;;){if(i=oe(i.times(e),u),r=r.times(++s),o=a.plus(yt(i,r,u)),et(o.d).slice(0,u)===et(a.d).slice(0,u)){for(;c--;)a=oe(a.times(a),u);return f.precision=l,t==null?(fe=!0,oe(a,l)):a}a=o}}function ye(e){for(var t=e.e*ce,r=e.d[0];r>=10;r/=10)t++;return t}function vc(e,t,r){if(t>e.LN10.sd())throw fe=!0,r&&(e.precision=r),Error(We+"LN10 precision limit exceeded");return oe(new e(e.LN10),t)}function _t(e){for(var t="";e--;)t+="0";return t}function On(e,t){var r,n,i,a,o,u,s,c,f,l=1,h=10,p=e,m=p.d,v=p.constructor,d=v.precision;if(p.s<1)throw Error(We+(p.s?"NaN":"-Infinity"));if(p.eq(qe))return new v(0);if(t==null?(fe=!1,c=d):c=t,p.eq(10))return t==null&&(fe=!0),vc(v,c);if(c+=h,v.precision=c,r=et(m),n=r.charAt(0),a=ye(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=et(p.d),n=r.charAt(0),l++;a=ye(p),n>1?(p=new v("0."+r),a++):p=new v(n+"."+r.slice(1))}else return s=vc(v,c+2,d).times(a+""),p=On(new v(n+"."+r.slice(1)),c-h).plus(s),v.precision=d,t==null?(fe=!0,oe(p,d)):p;for(u=o=p=yt(p.minus(qe),p.plus(qe),c),f=oe(p.times(p),c),i=3;;){if(o=oe(o.times(f),c),s=u.plus(yt(o,new v(i),c)),et(s.d).slice(0,c)===et(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus(vc(v,c+2,d).times(a+""))),u=yt(u,new v(l),c),v.precision=d,t==null?(fe=!0,oe(u,d)):u;u=s,i+=2}}function om(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=Rr(r/ce),e.d=[],n=(r+1)%ce,r<0&&(n+=ce),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=ce;n<i;)e.d.push(+t.slice(n,n+=ce));t=t.slice(n),n=ce-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),fe&&(e.e>Li||e.e<-Li))throw Error(ih+r)}else e.s=0,e.e=0,e.d=[0];return e}function oe(e,t,r){var n,i,a,o,u,s,c,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=ce,i=t,c=l[f=0];else{if(f=Math.ceil((n+1)/ce),a=l.length,f>=a)return e;for(c=a=l[f],o=1;a>=10;a/=10)o++;n%=ce,i=n-ce+o}if(r!==void 0&&(a=Rt(10,o-i-1),u=c/a%10|0,s=t<0||l[f+1]!==void 0||c%a,s=r<4?(u||s)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||s||r==6&&(n>0?i>0?c/Rt(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return s?(a=ye(e),l.length=1,t=t-a-1,l[0]=Rt(10,(ce-t%ce)%ce),e.e=Rr(-t/ce)||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=Rt(10,ce-n),l[f]=i>0?(c/Rt(10,o-i)%Rt(10,i)|0)*a:0),s)for(;;)if(f==0){(l[0]+=a)==we&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=we)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(fe&&(e.e>Li||e.e<-Li))throw Error(ih+ye(e));return e}function Z0(e,t){var r,n,i,a,o,u,s,c,f,l,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),fe?oe(t,p):t;if(s=e.d,l=t.d,n=t.e,c=e.e,s=s.slice(),o=c-n,o){for(f=o<0,f?(r=s,o=-o,u=l.length):(r=l,n=c,u=s.length),i=Math.max(Math.ceil(p/ce),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(s[i]!=l[i]){f=s[i]<l[i];break}o=0}for(f&&(r=s,s=l,l=r,t.s=-t.s),u=s.length,i=l.length-u;i>0;--i)s[u++]=0;for(i=l.length;i>o;){if(s[--i]<l[i]){for(a=i;a&&s[--a]===0;)s[a]=we-1;--s[a],s[i]+=we}s[i]-=l[i]}for(;s[--u]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,fe?oe(t,p):t):new h(0)}function Gt(e,t,r){var n,i=ye(e),a=et(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+_t(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+_t(-i-1)+a,r&&(n=r-o)>0&&(a+=_t(n))):i>=o?(a+=_t(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+_t(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=_t(n))),e.s<0?"-"+a:a}function um(e,t){if(e.length>t)return e.length=t,!0}function J0(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(Ut+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 om(o,a.toString())}else if(typeof a!="string")throw Error(Ut+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,Wj.test(a))om(o,a);else throw Error(Ut+a)}if(i.prototype=z,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=J0,i.config=i.set=Hj,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 Hj(e){if(!e||typeof e!="object")throw Error(We+"Object expected");var t,r,n,i=["precision",1,Dr,"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(Rr(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Ut+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Ut+r+": "+n);return this}var ah=J0(Uj);qe=new ah(1);const ae=ah;function Gj(e){return Yj(e)||Vj(e)||Xj(e)||Kj()}function Kj(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 31In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xj(e,t){if(e){if(typeof e=="string")return xl(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 xl(e,t)}}function Vj(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Yj(e){if(Array.isArray(e))return xl(e)}function xl(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 Zj=function(t){return t},Q0={},ex=function(t){return t===Q0},sm=function(t){return function r(){return arguments.length===0||arguments.length===1&&ex(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},Jj=function e(t,r){return t===1?r:sm(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!==Q0}).length;return o>=t?r.apply(void 0,i):e(t-o,sm(function(){for(var u=arguments.length,s=new Array(u),c=0;c<u;c++)s[c]=arguments[c];var f=i.map(function(l){return ex(l)?s.shift():l});return r.apply(void 0,Gj(f).concat(s))}))})},$a=function(t){return Jj(t.length,t)},wl=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},Qj=$a(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),eE=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return Zj;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,s){return s(u)},a.apply(void 0,arguments))}},Ol=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},tx=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,s){return u===r[s]})||(r=a,n=t.apply(void 0,a)),n}};function tE(e){var t;return e===0?t=1:t=Math.floor(new ae(e).abs().log(10).toNumber())+1,t}function rE(e,t,r){for(var n=new ae(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var nE=$a(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),iE=$a(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),aE=$a(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Ia={rangeStep:rE,getDigitCount:tE,interpolateNumber:nE,uninterpolateNumber:iE,uninterpolateTruncation:aE};function _l(e){return sE(e)||uE(e)||rx(e)||oE()}function oE(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 32In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function sE(e){if(Array.isArray(e))return Sl(e)}function _n(e,t){return fE(e)||lE(e,t)||rx(e,t)||cE()}function cE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 33In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rx(e,t){if(e){if(typeof e=="string")return Sl(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 Sl(e,t)}}function Sl(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 lE(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(s){i=!0,a=s}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function fE(e){if(Array.isArray(e))return e}function nx(e){var t=_n(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function ix(e,t,r){if(e.lte(0))return new ae(0);var n=Ia.getDigitCount(e.toNumber()),i=new ae(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ae(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=u.mul(i);return t?s:new ae(Math.ceil(s))}function hE(e,t,r){var n=1,i=new ae(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ae(10).pow(Ia.getDigitCount(e)-1),i=new ae(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ae(Math.floor(e)))}else e===0?i=new ae(Math.floor((t-1)/2)):r||(i=new ae(Math.floor(e)));var o=Math.floor((t-1)/2),u=eE(Qj(function(s){return i.add(new ae(s-o).mul(n)).toNumber()}),wl);return u(0,t)}function ax(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 ae(0),tickMin:new ae(0),tickMax:new ae(0)};var a=ix(new ae(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ae(0):(o=new ae(e).add(t).div(2),o=o.sub(new ae(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new ae(t).sub(o).div(a).toNumber()),c=u+s+1;return c>r?ax(e,t,r,n,i+1):(c<r&&(s=t>0?s+(r-c):s,u=t>0?u:u+(r-c)),{step:a,tickMin:o.sub(new ae(u).mul(a)),tickMax:o.add(new ae(s).mul(a))})}function dE(e){var t=_n(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=nx([r,n]),s=_n(u,2),c=s[0],f=s[1];if(c===-1/0||f===1/0){var l=f===1/0?[c].concat(_l(wl(0,i-1).map(function(){return 1/0}))):[].concat(_l(wl(0,i-1).map(function(){return-1/0})),[f]);return r>n?Ol(l):l}if(c===f)return hE(c,i,a);var h=ax(c,f,o,a),p=h.step,m=h.tickMin,v=h.tickMax,d=Ia.rangeStep(m,v.add(new ae(.1).mul(p)),p);return r>n?Ol(d):d}function pE(e,t){var r=_n(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=nx([n,i]),u=_n(o,2),s=u[0],c=u[1];if(s===-1/0||c===1/0)return[n,i];if(s===c)return[s];var f=Math.max(t,2),l=ix(new ae(c).sub(s).div(f-1),a,0),h=[].concat(_l(Ia.rangeStep(new ae(s),new ae(c).sub(new ae(.99).mul(l)),l)),[c]);return n>i?Ol(h):h}var vE=tx(dE),yE=tx(pE),mE="Invariant failed";function Kt(e,t){throw new Error(mE)}var gE=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function br(e){"@babel/helpers - typeof";return br=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},br(e)}function Fi(){return Fi=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},Fi.apply(this,arguments)}function bE(e,t){return _E(e)||OE(e,t)||wE(e,t)||xE()}function xE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 34In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wE(e,t){if(e){if(typeof e=="string")return cm(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 cm(e,t)}}function cm(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 OE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function _E(e){if(Array.isArray(e))return e}function SE(e,t){if(e==null)return{};var r=AE(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 AE(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 PE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TE(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,sx(n.key),n)}}function jE(e,t,r){return t&&TE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EE(e,t,r){return t=zi(t),ME(e,ox()?Reflect.construct(t,r||[],zi(e).constructor):t.apply(e,r))}function ME(e,t){if(t&&(br(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CE(e)}function CE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ox(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ox=function(){return!!e})()}function zi(e){return zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zi(e)}function $E(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&&Al(e,t)}function Al(e,t){return Al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Al(e,t)}function ux(e,t,r){return t=sx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sx(e){var t=IE(e,"string");return br(t)=="symbol"?t:t+""}function IE(e,t){if(br(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(br(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Na=(function(e){function t(){return PE(this,t),EE(this,t,arguments)}return $E(t,e),jE(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,s=n.data,c=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,h=SE(n,gE),p=te(h,!1);this.props.direction==="x"&&f.type!=="number"&&Kt();var m=s.map(function(v){var d=c(v,u),x=d.x,b=d.y,w=d.value,y=d.errorVal;if(!y)return null;var g=[],O,_;if(Array.isArray(y)){var S=bE(y,2);O=S[0],_=S[1]}else O=_=y;if(a==="vertical"){var j=f.scale,M=b+i,A=M+o,E=M-o,C=j(w-O),$=j(w+_);g.push({x1:$,y1:A,x2:$,y2:E}),g.push({x1:C,y1:M,x2:$,y2:M}),g.push({x1:C,y1:A,x2:C,y2:E})}else if(a==="horizontal"){var N=l.scale,k=x+i,q=k-o,B=k+o,U=N(w-O),G=N(w+_);g.push({x1:q,y1:G,x2:B,y2:G}),g.push({x1:k,y1:U,x2:k,y2:G}),g.push({x1:q,y1:U,x2:B,y2:U})}return T.createElement(Oe,Fi({className:"recharts-errorBar",key:"bar-".concat(g.map(function(W){return"".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))},p),g.map(function(W){return T.createElement("line",Fi({},W,{key:"line-".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))}))});return T.createElement(Oe,{className:"recharts-errorBars"},m)}}])})(T.Component);ux(Na,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});ux(Na,"displayName","ErrorBar");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 lm(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 kt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lm(Object(r),!0).forEach(function(n){NE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NE(e,t,r){return t=kE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kE(e){var t=DE(e,"string");return Sn(t)=="symbol"?t:t+""}function DE(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(t==="string"?String:Number)(e)}var cx=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Re(r,ur);if(!o)return null;var u=ur.defaultProps,s=u!==void 0?kt(kt({},u),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(f,l){var h=l.item,p=l.props,m=p.sectors||p.data||[];return f.concat(m.map(function(v){return{type:o.props.iconType||h.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):c=(n||[]).map(function(f){var l=f.item,h=l.type.defaultProps,p=h!==void 0?kt(kt({},h),l.props):{},m=p.dataKey,v=p.name,d=p.legendType,x=p.hide;return{inactive:x,dataKey:m,type:s.iconType||d||"square",color:oh(l),value:v||m,payload:p}}),kt(kt(kt({},s),ur.getWithHeight(o,i)),{},{payload:c,item:o})};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 fm(e){return LE(e)||BE(e)||qE(e)||RE()}function RE(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 35In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qE(e,t){if(e){if(typeof e=="string")return Pl(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 Pl(e,t)}}function BE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LE(e){if(Array.isArray(e))return Pl(e)}function Pl(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 hm(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?hm(Object(r),!0).forEach(function(n){cr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cr(e,t,r){return t=FE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FE(e){var t=zE(e,"string");return An(t)=="symbol"?t:t+""}function zE(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(t==="string"?String:Number)(e)}function it(e,t,r){return ne(e)||ne(t)?r:be(t)?Ue(e,t,r):J(t)?t(e):r}function un(e,t,r,n){var i=Lj(e,function(u){return it(u,t)});if(r==="number"){var a=i.filter(function(u){return L(u)||parseFloat(u)});return a.length?[Ca(a),Ma(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!ne(u)}):i;return o.map(function(u){return be(u)||u instanceof Date?u:""})}var UE=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 s=a.range,c=0;c<u;c++){var f=c>0?i[c-1].coordinate:i[u-1].coordinate,l=i[c].coordinate,h=c>=u-1?i[0].coordinate:i[c+1].coordinate,p=void 0;if(Ve(l-f)!==Ve(h-l)){var m=[];if(Ve(h-l)===Ve(s[1]-s[0])){p=h;var v=l+s[1]-s[0];m[0]=Math.min(v,(v+f)/2),m[1]=Math.max(v,(v+f)/2)}else{p=f;var d=h+s[1]-s[0];m[0]=Math.min(l,(d+l)/2),m[1]=Math.max(l,(d+l)/2)}var x=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(t>x[0]&&t<=x[1]||t>=m[0]&&t<=m[1]){o=i[c].index;break}}else{var b=Math.min(f,h),w=Math.max(f,h);if(t>(b+l)/2&&t<=(w+l)/2){o=i[c].index;break}}}else for(var y=0;y<u;y++)if(y===0&&t<=(n[y].coordinate+n[y+1].coordinate)/2||y>0&&y<u-1&&t>(n[y].coordinate+n[y-1].coordinate)/2&&t<=(n[y].coordinate+n[y+1].coordinate)/2||y===u-1&&t>(n[y].coordinate+n[y-1].coordinate)/2){o=n[y].index;break}return o},oh=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?he(he({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:u;break;default:s=u;break}return s},WE=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),s=0,c=u.length;s<c;s++)for(var f=a[u[s]].stackGroups,l=Object.keys(f),h=0,p=l.length;h<p;h++){var m=f[l[h]],v=m.items,d=m.cateAxisId,x=v.filter(function(_){return pt(_.type).indexOf("Bar")>=0});if(x&&x.length){var b=x[0].type.defaultProps,w=b!==void 0?he(he({},b),x[0].props):x[0].props,y=w.barSize,g=w[d];o[g]||(o[g]=[]);var O=ne(y)?r:y;o[g].push({item:x[0],stackList:x.slice(1),barSize:ne(O)?void 0:Ht(O,n,0)})}}return o},HE=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,s=o.length;if(s<1)return null;var c=Ht(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/s,m=o.reduce(function(y,g){return y+g.barSize||0},0);m+=(s-1)*c,m>=i&&(m-=(s-1)*c,c=0),m>=i&&p>0&&(h=!0,p*=.9,m=s*p);var v=(i-m)/2>>0,d={offset:v-c,size:0};f=o.reduce(function(y,g){var O={item:g.item,position:{offset:d.offset+d.size+c,size:h?p:g.barSize}},_=[].concat(fm(y),[O]);return d=_[_.length-1].position,g.stackList&&g.stackList.length&&g.stackList.forEach(function(S){_.push({item:S,position:d})}),_},l)}else{var x=Ht(n,i,0,!0);i-2*x-(s-1)*c<=0&&(c=0);var b=(i-2*x-(s-1)*c)/s;b>1&&(b>>=0);var w=u===+u?Math.min(b,u):b;f=o.reduce(function(y,g,O){var _=[].concat(fm(y),[{item:g.item,position:{offset:x+(b+c)*O+(b-w)/2,size:w}}]);return g.stackList&&g.stackList.length&&g.stackList.forEach(function(S){_.push({item:S,position:_[_.length-1].position})}),_},l)}return f},GE=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,s=o-(u.left||0)-(u.right||0),c=cx({children:a,legendWidth:s});if(c){var f=i||{},l=f.width,h=f.height,p=c.align,m=c.verticalAlign,v=c.layout;if((v==="vertical"||v==="horizontal"&&m==="middle")&&p!=="center"&&L(t[p]))return he(he({},t),{},cr({},p,t[p]+(l||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&m!=="middle"&&L(t[m]))return he(he({},t),{},cr({},m,t[m]+(h||0)))}return t},KE=function(t,r,n){return ne(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},lx=function(t,r,n,i,a){var o=r.props.children,u=Ye(o,Na).filter(function(c){return KE(i,a,c.props.direction)});if(u&&u.length){var s=u.map(function(c){return c.props.dataKey});return t.reduce(function(c,f){var l=it(f,n);if(ne(l))return c;var h=Array.isArray(l)?[Ca(l),Ma(l)]:[l,l],p=s.reduce(function(m,v){var d=it(f,v,0),x=h[0]-Math.abs(Array.isArray(d)?d[0]:d),b=h[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(x,m[0]),Math.max(b,m[1])]},[1/0,-1/0]);return[Math.min(p[0],c[0]),Math.max(p[1],c[1])]},[1/0,-1/0])}return null},XE=function(t,r,n,i,a){var o=r.map(function(u){return lx(t,u,n,a,i)}).filter(function(u){return!ne(u)});return o&&o.length?o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]):null},fx=function(t,r,n,i,a){var o=r.map(function(s){var c=s.props.dataKey;return n==="number"&&c&&lx(t,s,c,i)||un(t,c,n,a)});if(n==="number")return o.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);var u={};return o.reduce(function(s,c){for(var f=0,l=c.length;f<l;f++)u[c[f]]||(u[c[f]]=!0,s.push(c[f]));return s},[])},hx=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},dx=function(t,r,n,i){if(i)return t.map(function(s){return s.coordinate});var a,o,u=t.map(function(s){return s.coordinate===r&&(a=!0),s.coordinate===n&&(o=!0),s.coordinate});return a||u.push(r),o||u.push(n),u},dt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,s=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/s:0;if(c=t.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?Ve(u[0]-u[1])*2*c:c,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)+c,value:l,offset:c}});return f.filter(function(l){return!Kn(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,h){return{coordinate:i(l)+c,value:l,index:h,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+c,value:l,offset:c}}):i.domain().map(function(l,h){return{coordinate:i(l)+c,value:a?a[l]:l,index:h,offset:c}})},yc=new WeakMap,li=function(t,r){if(typeof r!="function")return t;yc.has(t)||yc.set(t,new WeakMap);var n=yc.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},VE=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:mn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Di(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:on(),realScaleType:"point"}:a==="category"?{scale:mn(),realScaleType:"band"}:{scale:Di(),realScaleType:"linear"};if(Gn(i)){var s="scale".concat(ma(i));return{scale:(Zy[s]||on)(),realScaleType:Zy[s]?s:"point"}}return J(i)?{scale:i}:{scale:on(),realScaleType:"point"}},dm=1e-4,YE=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])-dm,o=Math.max(i[0],i[1])+dm,u=t(r[0]),s=t(r[n-1]);(u<a||u>o||s<a||s>o)&&t.domain([r[0],r[n-1]])}},ZE=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},JE=function(t,r){if(!r||r.length!==2||!L(r[0])||!L(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(!L(t[0])||t[0]<n)&&(a[0]=n),(!L(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},QE=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 s=Kn(t[u][n][1])?t[u][n][0]:t[u][n][1];s>=0?(t[u][n][0]=a,t[u][n][1]=a+s,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+s,o=t[u][n][1])}},eM=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=Kn(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)}},tM={sign:QE,expand:RO,none:fr,silhouette:qO,wiggle:BO,positive:eM},rM=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=tM[n],o=DO().keys(i).value(function(u,s){return+it(u,s,0)}).order(rl).offset(a);return o(t)},nM=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,s={},c=u.reduce(function(l,h){var p,m=(p=h.type)!==null&&p!==void 0&&p.defaultProps?he(he({},h.type.defaultProps),h.props):h.props,v=m.stackId,d=m.hide;if(d)return l;var x=m[n],b=l[x]||{hasStack:!1,stackGroups:{}};if(be(v)){var w=b.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(h),b.hasStack=!0,b.stackGroups[v]=w}else b.stackGroups[ya("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return he(he({},l),{},cr({},x,b))},s),f={};return Object.keys(c).reduce(function(l,h){var p=c[h];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,d){var x=p.stackGroups[d];return he(he({},v),{},cr({},d,{numericAxisId:n,cateAxisId:i,items:x.items,stackedData:rM(t,x.items,a)}))},m)}return he(he({},l),{},cr({},h,p))},f)},iM=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,s=n||r.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var f=vE(c,a,u);return t.domain([Ca(f),Ma(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),h=yE(l,a,u);return{niceTicks:h}}return null},pm=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 s=it(o,r.dataKey,r.domain[u]);return ne(s)?null:r.scale(s)-a/2+i},aM=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]},oM=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?he(he({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(be(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},uM=function(t){return t.reduce(function(r,n){return[Ca(n.concat([r[0]]).filter(L)),Ma(n.concat([r[1]]).filter(L))]},[1/0,-1/0])},px=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,s=u.reduce(function(c,f){var l=uM(f.slice(r,n+1));return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},vm=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ym=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Tl=function(t,r,n){if(J(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(L(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(vm.test(t[0])){var a=+vm.exec(t[0])[1];i[0]=r[0]-a}else J(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(L(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(ym.test(t[1])){var o=+ym.exec(t[1])[1];i[1]=r[1]+o}else J(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Ui=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=If(r,function(l){return l.coordinate}),o=1/0,u=1,s=a.length;u<s;u++){var c=a[u],f=a[u-1];o=Math.min((c.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},mm=function(t,r,n){return!t||!t.length||nh(t,Ue(n,"type.defaultProps.domain"))?r:t},vx=function(t,r){var n=t.type.defaultProps?he(he({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,s=n.tooltipType,c=n.chartType,f=n.hide;return he(he({},te(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:oh(t),value:it(r,i),type:s,payload:r,chartType:c,hide:f})};function Pn(e){"@babel/helpers - typeof";return Pn=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},Pn(e)}function gm(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 bm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gm(Object(r),!0).forEach(function(n){sM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sM(e,t,r){return t=cM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cM(e){var t=lM(e,"string");return Pn(t)=="symbol"?t:t+""}function lM(e,t){if(Pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wi=Math.PI/180,fM=function(t){return t*180/Math.PI},Pe=function(t,r,n,i){return{x:t+Math.cos(-Wi*i)*n,y:r+Math.sin(-Wi*i)*n}},hM=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))},dM=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=hM({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var s=(n-a)/u,c=Math.acos(s);return i>o&&(c=2*Math.PI-c),{radius:u,angle:fM(c),angleInRadian:c}},pM=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}},vM=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},xm=function(t,r){var n=t.x,i=t.y,a=dM({x:n,y:i},r),o=a.radius,u=a.angle,s=r.innerRadius,c=r.outerRadius;if(o<s||o>c)return!1;if(o===0)return!0;var f=pM(r),l=f.startAngle,h=f.endAngle,p=u,m;if(l<=h){for(;p>h;)p-=360;for(;p<l;)p+=360;m=p>=l&&p<=h}else{for(;p>l;)p-=360;for(;p<h;)p+=360;m=p>=h&&p<=l}return m?bm(bm({},r),{},{radius:o,angle:vM(p,r)}):null};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)}var yM=["offset"];function mM(e){return wM(e)||xM(e)||bM(e)||gM()}function gM(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 36In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bM(e,t){if(e){if(typeof e=="string")return jl(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 jl(e,t)}}function xM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wM(e){if(Array.isArray(e))return jl(e)}function jl(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 OM(e,t){if(e==null)return{};var r=_M(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 _M(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 wm(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 ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wm(Object(r),!0).forEach(function(n){SM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SM(e,t,r){return t=AM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AM(e){var t=PM(e,"string");return Tn(t)=="symbol"?t:t+""}function PM(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(t==="string"?String:Number)(e)}function jn(){return jn=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},jn.apply(this,arguments)}var TM=function(t){var r=t.value,n=t.formatter,i=ne(t.children)?r:t.children;return J(n)?n(i):i},jM=function(t,r){var n=Ve(r-t),i=Math.min(Math.abs(r-t),360);return n*i},EM=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,s=a,c=s.cx,f=s.cy,l=s.innerRadius,h=s.outerRadius,p=s.startAngle,m=s.endAngle,v=s.clockWise,d=(l+h)/2,x=jM(p,m),b=x>=0?1:-1,w,y;i==="insideStart"?(w=p+b*o,y=v):i==="insideEnd"?(w=m-b*o,y=!v):i==="end"&&(w=m+b*o,y=v),y=x<=0?y:!y;var g=Pe(c,f,d,w),O=Pe(c,f,d,w+(y?1:-1)*359),_="M".concat(g.x,",").concat(g.y,` 37 A`).concat(d,",").concat(d,",0,1,").concat(y?0:1,`,
38 `).concat(O.x,",").concat(O.y),S=ne(t.id)?ya("recharts-radial-line-"):t.id;return T.createElement("text",jn({},n,{dominantBaseline:"central",className:ie("recharts-radial-bar-label",u)}),T.createElement("defs",null,T.createElement("path",{id:S,d:_})),T.createElement("textPath",{xlinkHref:"#".concat(S)},r))},MM=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,s=a.innerRadius,c=a.outerRadius,f=a.startAngle,l=a.endAngle,h=(f+l)/2;if(i==="outside"){var p=Pe(o,u,c+n,h),m=p.x,v=p.y;return{x:m,y:v,textAnchor:m>=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=(s+c)/2,x=Pe(o,u,d,h),b=x.x,w=x.y;return{x:b,y:w,textAnchor:"middle",verticalAnchor:"middle"}},CM=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,s=o.y,c=o.width,f=o.height,l=f>=0?1:-1,h=l*i,p=l>0?"end":"start",m=l>0?"start":"end",v=c>=0?1:-1,d=v*i,x=v>0?"end":"start",b=v>0?"start":"end";if(a==="top"){var w={x:u+c/2,y:s-l*i,textAnchor:"middle",verticalAnchor:p};return ge(ge({},w),n?{height:Math.max(s-n.y,0),width:c}:{})}if(a==="bottom"){var y={x:u+c/2,y:s+f+h,textAnchor:"middle",verticalAnchor:m};return ge(ge({},y),n?{height:Math.max(n.y+n.height-(s+f),0),width:c}:{})}if(a==="left"){var g={x:u-d,y:s+f/2,textAnchor:x,verticalAnchor:"middle"};return ge(ge({},g),n?{width:Math.max(g.x-n.x,0),height:f}:{})}if(a==="right"){var O={x:u+c+d,y:s+f/2,textAnchor:b,verticalAnchor:"middle"};return ge(ge({},O),n?{width:Math.max(n.x+n.width-O.x,0),height:f}:{})}var _=n?{width:c,height:f}:{};return a==="insideLeft"?ge({x:u+d,y:s+f/2,textAnchor:b,verticalAnchor:"middle"},_):a==="insideRight"?ge({x:u+c-d,y:s+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideTop"?ge({x:u+c/2,y:s+h,textAnchor:"middle",verticalAnchor:m},_):a==="insideBottom"?ge({x:u+c/2,y:s+f-h,textAnchor:"middle",verticalAnchor:p},_):a==="insideTopLeft"?ge({x:u+d,y:s+h,textAnchor:b,verticalAnchor:m},_):a==="insideTopRight"?ge({x:u+c-d,y:s+h,textAnchor:x,verticalAnchor:m},_):a==="insideBottomLeft"?ge({x:u+d,y:s+f-h,textAnchor:b,verticalAnchor:p},_):a==="insideBottomRight"?ge({x:u+c-d,y:s+f-h,textAnchor:x,verticalAnchor:p},_):Ir(a)&&(L(a.x)||qt(a.x))&&(L(a.y)||qt(a.y))?ge({x:u+Ht(a.x,c),y:s+Ht(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):ge({x:u+c/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},$M=function(t){return"cx"in t&&L(t.cx)};function Ee(e){var t=e.offset,r=t===void 0?5:t,n=OM(e,yM),i=ge({offset:r},n),a=i.viewBox,o=i.position,u=i.value,s=i.children,c=i.content,f=i.className,l=f===void 0?"":f,h=i.textBreakAll;if(!a||ne(u)&&ne(s)&&!R.isValidElement(c)&&!J(c))return null;if(R.isValidElement(c))return R.cloneElement(c,i);var p;if(J(c)){if(p=R.createElement(c,i),R.isValidElement(p))return p}else p=TM(i);var m=$M(a),v=te(i,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return EM(i,p,v);var d=m?MM(i):CM(i);return T.createElement(Ei,jn({className:ie("recharts-label",l)},v,d,{breakAll:h}),p)}Ee.displayName="Label";var yx=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,s=t.radius,c=t.innerRadius,f=t.outerRadius,l=t.x,h=t.y,p=t.top,m=t.left,v=t.width,d=t.height,x=t.clockWise,b=t.labelViewBox;if(b)return b;if(L(v)&&L(d)){if(L(l)&&L(h))return{x:l,y:h,width:v,height:d};if(L(p)&&L(m))return{x:p,y:m,width:v,height:d}}return L(l)&&L(h)?{x:l,y:h,width:0,height:0}:L(r)&&L(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:f||s||u||0,clockWise:x}:t.viewBox?t.viewBox:{}},IM=function(t,r){return t?t===!0?T.createElement(Ee,{key:"label-implicit",viewBox:r}):be(t)?T.createElement(Ee,{key:"label-implicit",viewBox:r,value:t}):R.isValidElement(t)?t.type===Ee?R.cloneElement(t,{key:"label-implicit",viewBox:r}):T.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):J(t)?T.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):Ir(t)?T.createElement(Ee,jn({viewBox:r},t,{key:"label-implicit"})):null:null},NM=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=yx(t),o=Ye(i,Ee).map(function(s,c){return R.cloneElement(s,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var u=IM(t.label,r||a);return[u].concat(mM(o))};Ee.parseViewBox=yx;Ee.renderCallByParent=NM;var mc,Om;function kM(){if(Om)return mc;Om=1;function e(t){var r=t==null?0:t.length;
vendor: 9,336 bytes, lines 38-56
38return r?t[r-1]:void 0}return mc=e,mc}var DM=kM();const RM=le(DM);function En(e){"@babel/helpers - typeof";return En=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},En(e)}var qM=["valueAccessor"],BM=["data","dataKey","clockWise","id","textBreakAll"];function LM(e){return WM(e)||UM(e)||zM(e)||FM()}function FM(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 39In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zM(e,t){if(e){if(typeof e=="string")return El(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 El(e,t)}}function UM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WM(e){if(Array.isArray(e))return El(e)}function El(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 Hi(){return Hi=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},Hi.apply(this,arguments)}function _m(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 Sm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_m(Object(r),!0).forEach(function(n){HM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HM(e,t,r){return t=GM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GM(e){var t=KM(e,"string");return En(t)=="symbol"?t:t+""}function KM(e,t){if(En(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(En(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Am(e,t){if(e==null)return{};var r=XM(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 XM(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 VM=function(t){return Array.isArray(t.value)?RM(t.value):t.value};function Wt(e){var t=e.valueAccessor,r=t===void 0?VM:t,n=Am(e,qM),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,s=n.textBreakAll,c=Am(n,BM);return!i||!i.length?null:T.createElement(Oe,{className:"recharts-label-list"},i.map(function(f,l){var h=ne(a)?r(f,l):it(f&&f.payload,a),p=ne(u)?{}:{id:"".concat(u,"-").concat(l)};return T.createElement(Ee,Hi({},te(f,!0),c,p,{parentViewBox:f.parentViewBox,value:h,textBreakAll:s,viewBox:Ee.parseViewBox(ne(o)?f:Sm(Sm({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}Wt.displayName="LabelList";function YM(e,t){return e?e===!0?T.createElement(Wt,{key:"labelList-implicit",data:t}):T.isValidElement(e)||J(e)?T.createElement(Wt,{key:"labelList-implicit",data:t,content:e}):Ir(e)?T.createElement(Wt,Hi({data:t},e,{key:"labelList-implicit"})):null:null}function ZM(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=Ye(n,Wt).map(function(o,u){return R.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=YM(e.label,t);return[a].concat(LM(i))}Wt.renderCallByParent=ZM;function Mn(e){"@babel/helpers - typeof";return Mn=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},Mn(e)}function Ml(){return Ml=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},Ml.apply(this,arguments)}function Pm(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 Tm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pm(Object(r),!0).forEach(function(n){JM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JM(e,t,r){return t=QM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QM(e){var t=eC(e,"string");return Mn(t)=="symbol"?t:t+""}function eC(e,t){if(Mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tC=function(t,r){var n=Ve(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},fi=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,s=t.cornerRadius,c=t.cornerIsExternal,f=s*(u?1:-1)+i,l=Math.asin(s/f)/Wi,h=c?a:a+o*l,p=Pe(r,n,f,h),m=Pe(r,n,i,h),v=c?a-o*l:a,d=Pe(r,n,f*Math.cos(l*Wi),v);return{center:p,circleTangency:m,lineTangency:d,theta:l}},mx=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,s=tC(o,u),c=o+s,f=Pe(r,n,a,o),l=Pe(r,n,a,c),h="M ".concat(f.x,",").concat(f.y,` 40 A `).concat(a,",").concat(a,`,0, 41 `).concat(+(Math.abs(s)>180),",").concat(+(o>c),`, 42 `).concat(l.x,",").concat(l.y,` 43 `);if(i>0){var p=Pe(r,n,i,o),m=Pe(r,n,i,c);h+="L ".concat(m.x,",").concat(m.y,` 44 A `).concat(i,",").concat(i,`,0, 45 `).concat(+(Math.abs(s)>180),",").concat(+(o<=c),`, 46 `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},rC=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,s=t.cornerIsExternal,c=t.startAngle,f=t.endAngle,l=Ve(f-c),h=fi({cx:r,cy:n,radius:a,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),p=h.circleTangency,m=h.lineTangency,v=h.theta,d=fi({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:s}),x=d.circleTangency,b=d.lineTangency,w=d.theta,y=s?Math.abs(c-f):Math.abs(c-f)-v-w;if(y<0)return u?"M ".concat(m.x,",").concat(m.y,` 47 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 48 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 49 `):mx({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:f});var g="M ".concat(m.x,",").concat(m.y,` 50 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,` 51 A`).concat(a,",").concat(a,",0,").concat(+(y>180),",").concat(+(l<0),",").concat(x.x,",").concat(x.y,` 52 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(b.x,",").concat(b.y,` 53 `);if(i>0){var O=fi({cx:r,cy:n,radius:i,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=O.circleTangency,S=O.lineTangency,j=O.theta,M=fi({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),A=M.circleTangency,E=M.lineTangency,C=M.theta,$=s?Math.abs(c-f):Math.abs(c-f)-j-C;if($<0&&o===0)return"".concat(g,"L").concat(r,",").concat(n,"Z");g+="L".concat(E.x,",").concat(E.y,` 54 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(A.x,",").concat(A.y,` 55 A`).concat(i,",").concat(i,",0,").concat(+($>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,` 56 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(S.x,",").concat(S.y,"Z")}else g+="L".concat(r,",").concat(n,"Z");return g},nC={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},gx=function(t){var r=Tm(Tm({},nC),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,s=r.forceCornerRadius,c=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,h=r.className;if(o<a||f===l)return null;var p=ie("recharts-sector",h),m=o-a,v=Ht(u,m,0,!0),d;return v>0&&Math.abs(f-l)<360?d=rC({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,m/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:f,endAngle:l}):d=mx({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),T.createElement("path",Ml({},te(r,!0),{className:p,d,role:"img"}))};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 Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
56for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cl.apply(this,arguments)}function jm(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 Em(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jm(Object(r),!0).forEach(function(n){iC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iC(e,t,r){return t=aC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aC(e){var t=oC(e,"string");return Cn(t)=="symbol"?t:t+""}function oC(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(t==="string"?String:Number)(e)}var Mm={curveBasisClosed:AO,curveBasisOpen:PO,curveBasis:SO,curveBumpX:lO,curveBumpY:fO,curveLinearClosed:TO,curveLinear:ba,curveMonotoneX:jO,curveMonotoneY:EO,curveNatural:MO,curveStep:CO,curveStepAfter:IO,curveStepBefore:$O},hi=function(t){return t.x===+t.x&&t.y===+t.y},Kr=function(t){return t.x},Xr=function(t){return t.y},uC=function(t,r){if(J(t))return t;var n="curve".concat(ma(t));return(n==="curveMonotone"||n==="curveBump")&&r?Mm["".concat(n).concat(r==="vertical"?"Y":"X")]:Mm[n]||ba},sC=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,s=t.connectNulls,c=s===void 0?!1:s,f=uC(n,u),l=c?a.filter(function(v){return hi(v)}):a,h;if(Array.isArray(o)){var p=c?o.filter(function(v){return hi(v)}):o,m=l.map(function(v,d){return Em(Em({},v),{},{base:p[d]})});return u==="vertical"?h=ni().y(Xr).x1(Kr).x0(function(v){return v.base.x}):h=ni().x(Kr).y1(Xr).y0(function(v){return v.base.y}),h.defined(hi).curve(f),h(m)}return u==="vertical"&&L(o)?h=ni().y(Xr).x1(Kr).x0(o):L(o)?h=ni().x(Kr).y1(Xr).y0(o):h=Ob().x(Kr).y(Xr),h.defined(hi).curve(f),h(l)},Cm=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?sC(t):i;return T.createElement("path",Cl({},te(t,!1),mi(t),{className:ie("recharts-curve",r),d:o,ref:a}))},cC=Object.getOwnPropertyNames,lC=Object.getOwnPropertySymbols,fC=Object.prototype.hasOwnProperty;function $m(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function di(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);var s=e(r,n,i);return a.delete(r),a.delete(n),s}}function Im(e){return cC(e).concat(lC(e))}var bx=Object.hasOwn||(function(e,t){return fC.call(e,t)});function qr(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var xx="_owner",Nm=Object.getOwnPropertyDescriptor,km=Object.keys;function hC(e,t,r){var 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 dC(e,t){return qr(e.getTime(),t.getTime())}function Dm(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.entries(),a=0,o,u;(o=i.next())&&!o.done;){for(var s=t.entries(),c=!1,f=0;(u=s.next())&&!u.done;){var l=o.value,h=l[0],p=l[1],m=u.value,v=m[0],d=m[1];!c&&!n[f]&&(c=r.equals(h,v,a,f,e,t,r)&&r.equals(p,d,h,v,e,t,r))&&(n[f]=!0),f++}if(!c)return!1;a++}return!0}function pC(e,t,r){var n=km(e),i=n.length;if(km(t).length!==i)return!1;for(var a;i-- >0;)if(a=n[i],a===xx&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!bx(t,a)||!r.equals(e[a],t[a],a,a,e,t,r))return!1;return!0}function Vr(e,t,r){var n=Im(e),i=n.length;if(Im(t).length!==i)return!1;for(var a,o,u;i-- >0;)if(a=n[i],a===xx&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!bx(t,a)||!r.equals(e[a],t[a],a,a,e,t,r)||(o=Nm(e,a),u=Nm(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function vC(e,t){return qr(e.valueOf(),t.valueOf())}function yC(e,t){return e.source===t.source&&e.flags===t.flags}function Rm(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.values(),a,o;(a=i.next())&&!a.done;){for(var u=t.values(),s=!1,c=0;(o=u.next())&&!o.done;)!s&&!n[c]&&(s=r.equals(a.value,o.value,a.value,o.value,e,t,r))&&(n[c]=!0),c++;if(!s)return!1}return!0}function mC(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var gC="[object Arguments]",bC="[object Boolean]",xC="[object Date]",wC="[object Map]",OC="[object Number]",_C="[object Object]",SC="[object RegExp]",AC="[object Set]",PC="[object String]",TC=Array.isArray,qm=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Bm=Object.assign,jC=Object.prototype.toString.call.bind(Object.prototype.toString);function EC(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,i=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,u=e.areSetsEqual,s=e.areTypedArraysEqual;return function(f,l,h){if(f===l)return!0;
56if(f==null||l==null||typeof f!="object"||typeof l!="object")return f!==f&&l!==l;var p=f.constructor;if(p!==l.constructor)return!1;if(p===Object)return i(f,l,h);if(TC(f))return t(f,l,h);if(qm!=null&&qm(f))return s(f,l,h);if(p===Date)return r(f,l,h);if(p===RegExp)return o(f,l,h);if(p===Map)return n(f,l,h);if(p===Set)return u(f,l,h);var m=jC(f);return m===xC?r(f,l,h):m===SC?o(f,l,h):m===wC?n(f,l,h):m===AC?u(f,l,h):m===_C?typeof f.then!="function"&&typeof l.then!="function"&&i(f,l,h):m===gC?i(f,l,h):m===bC||m===OC||m===PC?a(f,l,h):!1}}function MC(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?Vr:hC,areDatesEqual:dC,areMapsEqual:n?$m(Dm,Vr):Dm,areObjectsEqual:n?Vr:pC,arePrimitiveWrappersEqual:vC,areRegExpsEqual:yC,areSetsEqual:n?$m(Rm,Vr):Rm,areTypedArraysEqual:n?Vr:mC};if(r&&(i=Bm({},i,r(i))),t){var a=di(i.areArraysEqual),o=di(i.areMapsEqual),u=di(i.areObjectsEqual),s=di(i.areSetsEqual);i=Bm({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:u,areSetsEqual:s})}return i}function CC(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function $C(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(s,c){var f=n(),l=f.cache,h=l===void 0?t?new WeakMap:void 0:l,p=f.meta;return r(s,c,{cache:h,equals:i,meta:p,strict:a})};if(t)return function(s,c){return r(s,c,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(s,c){return r(s,c,o)}}var IC=$t();$t({strict:!0});$t({circular:!0});$t({circular:!0,strict:!0});$t({createInternalComparator:function(){return qr}});$t({strict:!0,createInternalComparator:function(){return qr}});$t({circular:!0,createInternalComparator:function(){return qr}});$t({circular:!0,createInternalComparator:function(){return qr},strict:!0});function $t(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,u=MC(e),s=EC(u),c=n?n(s):CC(s);return $C({circular:r,comparator:s,createState:i,equals:c,strict:o})}function NC(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Lm(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):NC(i)};requestAnimationFrame(n)}function $l(e){"@babel/helpers - typeof";return $l=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},$l(e)}function kC(e){return BC(e)||qC(e)||RC(e)||DC()}function DC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 57In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RC(e,t){if(e){if(typeof e=="string")return Fm(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 Fm(e,t)}}function Fm(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 qC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BC(e){if(Array.isArray(e))return e}function LC(){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=kC(o),s=u[0],c=u.slice(1);if(typeof s=="number"){Lm(i.bind(null,c),s);return}i(s),Lm(i.bind(null,c));return}$l(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 $n(e){"@babel/helpers - typeof";return $n=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},$n(e)}function zm(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 Um(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 151,636 bytes, lines 57-84
57t%2?zm(Object(r),!0).forEach(function(n){wx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wx(e,t,r){return t=FC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FC(e){var t=zC(e,"string");return $n(t)==="symbol"?t:String(t)}function zC(e,t){if($n(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($n(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var UC=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},WC=function(t){return t},HC=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},sn=function(t,r){return Object.keys(r).reduce(function(n,i){return Um(Um({},n),{},wx({},i,t(i,r[i])))},{})},Wm=function(t,r,n){return t.map(function(i){return"".concat(HC(i)," ").concat(r,"ms ").concat(n)}).join(",")};function GC(e,t){return VC(e)||XC(e,t)||Ox(e,t)||KC()}function KC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 58In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function VC(e){if(Array.isArray(e))return e}function YC(e){return QC(e)||JC(e)||Ox(e)||ZC()}function ZC(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 59In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ox(e,t){if(e){if(typeof e=="string")return Il(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 Il(e,t)}}function JC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QC(e){if(Array.isArray(e))return Il(e)}function Il(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 Gi=1e-4,_x=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},Sx=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Hm=function(t,r){return function(n){var i=_x(t,r);return Sx(i,n)}},e$=function(t,r){return function(n){var i=_x(t,r),a=[].concat(YC(i.map(function(o,u){return o*u}).slice(1)),[0]);return Sx(a,n)}},Gm=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 s=r[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var c=s[1].split(")")[0].split(",").map(function(d){return parseFloat(d)}),f=GC(c,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=Hm(i,o),h=Hm(a,u),p=e$(i,o),m=function(x){return x>1?1:x<0?0:x},v=function(x){for(var b=x>1?1:x,w=b,y=0;y<8;++y){var g=l(w)-b,O=p(w);if(Math.abs(g-b)<Gi||O<Gi)return h(w);w=m(w-g/O)}return h(w)};return v.isStepper=!1,v},t$=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,s=function(f,l,h){var p=-(f-l)*n,m=h*a,v=h+(p-m)*u/1e3,d=h*u/1e3+f;return Math.abs(d-l)<Gi&&Math.abs(v)<Gi?[l,0]:[d,v]};return s.isStepper=!0,s.dt=u,s},r$=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 Gm(i);case"spring":return t$();default:if(i.split("(")[0]==="cubic-bezier")return Gm(i)}return typeof i=="function"?i:null};function In(e){"@babel/helpers - typeof";return In=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},In(e)}function Km(e){return a$(e)||i$(e)||Ax(e)||n$()}function n$(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 60In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function a$(e){if(Array.isArray(e))return kl(e)}function Xm(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 Ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xm(Object(r),!0).forEach(function(n){Nl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nl(e,t,r){return t=o$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o$(e){var t=u$(e,"string");return In(t)==="symbol"?t:String(t)}function u$(e,t){if(In(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(In(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function s$(e,t){return f$(e)||l$(e,t)||Ax(e,t)||c$()}function c$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 61In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ax(e,t){if(e){if(typeof e=="string")return kl(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 kl(e,t)}}function kl(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 l$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function f$(e){if(Array.isArray(e))return e}var Ki=function(t,r,n){return t+(r-t)*n},Dl=function(t){var r=t.from,n=t.to;return r!==n},h$=function e(t,r,n){var i=sn(function(a,o){if(Dl(o)){var u=t(o.from,o.to,o.velocity),s=s$(u,2),c=s[0],f=s[1];return Ae(Ae({},o),{},{from:c,velocity:f})}return o},r);return n<1?sn(function(a,o){return Dl(o)?Ae(Ae({},o),{},{velocity:Ki(o.velocity,i[a].velocity,n),from:Ki(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const d$=(function(e,t,r,n,i){var a=UC(e,t),o=a.reduce(function(d,x){return Ae(Ae({},d),{},Nl({},x,[e[x],t[x]]))},{}),u=a.reduce(function(d,x){return Ae(Ae({},d),{},Nl({},x,{from:e[x],velocity:0,to:t[x]}))},{}),s=-1,c,f,l=function(){return null},h=function(){return sn(function(x,b){return b.from},u)},p=function(){return!Object.values(u).filter(Dl).length},m=function(x){c||(c=x);var b=x-c,w=b/r.dt;u=h$(r,u,w),i(Ae(Ae(Ae({},e),t),h())),c=x,p()||(s=requestAnimationFrame(l))},v=function(x){f||(f=x);var b=(x-f)/n,w=sn(function(g,O){return Ki.apply(void 0,Km(O).concat([r(b)]))},o);if(i(Ae(Ae(Ae({},e),t),w)),b<1)s=requestAnimationFrame(l);else{var y=sn(function(g,O){return Ki.apply(void 0,Km(O).concat([r(1)]))},o);i(Ae(Ae(Ae({},e),t),y))}};return l=r.isStepper?m:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(s)}}});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)}var p$=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function v$(e,t){if(e==null)return{};var r=y$(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 y$(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 gc(e){return x$(e)||b$(e)||g$(e)||m$()}function m$(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 62In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g$(e,t){if(e){if(typeof e=="string")return Rl(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 Rl(e,t)}}function b$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function x$(e){if(Array.isArray(e))return Rl(e)}function Rl(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 Vm(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 Ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vm(Object(r),!0).forEach(function(n){Qr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qr(e,t,r){return t=Px(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O$(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,Px(n.key),n)}}function _$(e,t,r){return t&&O$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Px(e){var t=S$(e,"string");return xr(t)==="symbol"?t:String(t)}function S$(e,t){if(xr(e)!=="object"||e===null)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(t==="string"?String:Number)(e)}function A$(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&&ql(e,t)}function ql(e,t){return ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ql(e,t)}function P$(e){var t=T$();return function(){var n=Xi(e),i;if(t){var a=Xi(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Bl(this,i)}}function Bl(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 Ll(e)}function Ll(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T$(){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 Xi(e){return Xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xi(e)}var Tt=(function(e){A$(r,e);var t=P$(r);function r(n,i){var a;w$(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,s=o.attributeName,c=o.from,f=o.to,l=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Ll(a)),a.changeStyle=a.changeStyle.bind(Ll(a)),!u||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),Bl(a);if(l&&l.length)a.state={style:l[0].style};else if(c){if(typeof h=="function")return a.state={style:c},Bl(a);a.state={style:s?Qr({},s,c):c}}else a.state={style:{}};return a}return _$(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,s=a.attributeName,c=a.shouldReAnimate,f=a.to,l=a.from,h=this.state.style;if(u){if(!o){var p={style:s?Qr({},s,f):f};this.state&&h&&(s&&h[s]!==f||!s&&h!==f)&&this.setState(p);return}if(!(IC(i.to,f)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=m||c?l:i.to;if(this.state&&h){var d={style:s?Qr({},s,v):v};(s&&h[s]!==v||!s&&h!==v)&&this.setState(d)}this.runAnimation(Ge(Ge({},this.props),{},{from:v,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,s=i.duration,c=i.easing,f=i.begin,l=i.onAnimationEnd,h=i.onAnimationStart,p=d$(o,u,r$(c),s,this.changeStyle),m=function(){a.stopJSAnimation=p()};this.manager.start([h,f,m,s,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,s=i.onAnimationStart,c=o[0],f=c.style,l=c.duration,h=l===void 0?0:l,p=function(v,d,x){if(x===0)return v;var b=d.duration,w=d.easing,y=w===void 0?"ease":w,g=d.style,O=d.properties,_=d.onAnimationEnd,S=x>0?o[x-1]:d,j=O||Object.keys(g);if(typeof y=="function"||y==="spring")return[].concat(gc(v),[a.runJSAnimation.bind(a,{from:S.style,to:g,duration:b,easing:y}),b]);var M=Wm(j,b,y),A=Ge(Ge(Ge({},S.style),g),{},{transition:M});return[].concat(gc(v),[A,b,_]).filter(WC)};return this.manager.start([s].concat(gc(o.reduce(p,[f,Math.max(h,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=LC());var a=i.begin,o=i.duration,u=i.attributeName,s=i.to,c=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,h=i.steps,p=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof c=="function"||typeof p=="function"||c==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var v=u?Qr({},u,s):s,d=Wm(Object.keys(v),o,c);m.start([f,a,Ge(Ge({},v),{},{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 s=v$(i,p$),c=R.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||c===0||o<=0)return a;var l=function(p){var m=p.props,v=m.style,d=v===void 0?{}:v,x=m.className,b=R.cloneElement(p,Ge(Ge({},s),{},{style:Ge(Ge({},d),f),className:x}));return b};return c===1?l(R.Children.only(a)):T.createElement("div",null,R.Children.map(a,function(h){return l(h)}))}}]),r})(R.PureComponent);Tt.displayName="Animate";Tt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Tt.propTypes={from:Y.oneOfType([Y.object,Y.string]),to:Y.oneOfType([Y.object,Y.string]),attributeName:Y.string,duration:Y.number,begin:Y.number,easing:Y.oneOfType([Y.string,Y.func]),steps:Y.arrayOf(Y.shape({duration:Y.number.isRequired,style:Y.object.isRequired,easing:Y.oneOfType([Y.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Y.func]),properties:Y.arrayOf("string"),onAnimationEnd:Y.func})),children:Y.oneOfType([Y.node,Y.func]),isActive:Y.bool,canBegin:Y.bool,onAnimationEnd:Y.func,shouldReAnimate:Y.bool,onAnimationStart:Y.func,onAnimationReStart:Y.func};Y.object,Y.object,Y.object,Y.element;Y.object,Y.object,Y.object,Y.oneOfType([Y.array,Y.element]),Y.any;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 Vi(){return Vi=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},Vi.apply(this,arguments)}function j$(e,t){return $$(e)||C$(e,t)||M$(e,t)||E$()}function E$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 63In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M$(e,t){if(e){if(typeof e=="string")return Ym(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 Ym(e,t)}}function Ym(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 C$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function $$(e){if(Array.isArray(e))return e}function Zm(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 Jm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zm(Object(r),!0).forEach(function(n){I$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function I$(e,t,r){return t=N$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N$(e){var t=k$(e,"string");return Nn(t)=="symbol"?t:t+""}function k$(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(t==="string"?String:Number)(e)}var Qm=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,s=n>=0?1:-1,c=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(c,",").concat(t+s*l[0],",").concat(r)),f+="L ".concat(t+n-s*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,`, 64 `).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(c,`, 65 `).concat(t+n-s*l[2],",").concat(r+i)),f+="L ".concat(t+s*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,`, 66 `).concat(t,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var m=Math.min(o,a);f="M ".concat(t,",").concat(r+u*m,` 67 A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+s*m,",").concat(r,` 68 L `).concat(t+n-s*m,",").concat(r,` 69 A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+n,",").concat(r+u*m,` 70 L `).concat(t+n,",").concat(r+i-u*m,` 71 A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+n-s*m,",").concat(r+i,` 72 L `).concat(t+s*m,",").concat(r+i,` 73 A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t,",").concat(r+i-u*m," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},D$=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,s=r.height;if(Math.abs(u)>0&&Math.abs(s)>0){var c=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+s),h=Math.max(o,o+s);return n>=c&&n<=f&&i>=l&&i<=h}return!1},R$={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},uh=function(t){var r=Jm(Jm({},R$),t),n=R.useRef(),i=R.useState(-1),a=j$(i,2),o=a[0],u=a[1];R.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var y=n.current.getTotalLength();y&&u(y)}catch{}},[]);var s=r.x,c=r.y,f=r.width,l=r.height,h=r.radius,p=r.className,m=r.animationEasing,v=r.animationDuration,d=r.animationBegin,x=r.isAnimationActive,b=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||f===0||l===0)return null;var w=ie("recharts-rectangle",p);return b?T.createElement(Tt,{canBegin:o>0,from:{width:f,height:l,x:s,y:c},to:{width:f,height:l,x:s,y:c},duration:v,animationEasing:m,isActive:b},function(y){var g=y.width,O=y.height,_=y.x,S=y.y;return T.createElement(Tt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:v,isActive:x,easing:m},T.createElement("path",Vi({},te(r,!0),{className:w,d:Qm(_,S,g,O,h),ref:n})))}):T.createElement("path",Vi({},te(r,!0),{className:w,d:Qm(s,c,f,l,h)}))};function Fl(){return Fl=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},Fl.apply(this,arguments)}var Tx=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=ie("recharts-dot",a);return r===+r&&n===+n&&i===+i?T.createElement("circle",Fl({},te(t,!1),mi(t),{className:o,cx:r,cy:n,r:i})):null};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 q$=["x","y","top","left","width","height","className"];function zl(){return zl=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},zl.apply(this,arguments)}function eg(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 B$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eg(Object(r),!0).forEach(function(n){L$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function L$(e,t,r){return t=F$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F$(e){var t=z$(e,"string");return kn(t)=="symbol"?t:t+""}function z$(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 U$(e,t){if(e==null)return{};var r=W$(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 W$(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 H$=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},G$=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,s=t.left,c=s===void 0?0:s,f=t.width,l=f===void 0?0:f,h=t.height,p=h===void 0?0:h,m=t.className,v=U$(t,q$),d=B$({x:n,y:a,top:u,left:c,width:l,height:p},v);return!L(n)||!L(a)||!L(l)||!L(p)||!L(u)||!L(c)?null:T.createElement("path",zl({},te(d,!0),{className:ie("recharts-cross",m),d:H$(n,a,l,p,u,c)}))},bc,tg;function K$(){if(tg)return bc;tg=1;var e=Hb(),t=e(Object.getPrototypeOf,Object);return bc=t,bc}var xc,rg;function X$(){if(rg)return xc;rg=1;var e=xt(),t=K$(),r=wt(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,s=o.call(Object);function c(f){if(!r(f)||e(f)!=n)return!1;var l=t(f);if(l===null)return!0;var h=u.call(l,"constructor")&&l.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==s}return xc=c,xc}var V$=X$();const Y$=le(V$);var wc,ng;function Z$(){if(ng)return wc;ng=1;var e=xt(),t=wt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return wc=n,wc}var J$=Z$();const Q$=le(J$);function Dn(e){"@babel/helpers - typeof";return Dn=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},Dn(e)}function Yi(){return Yi=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},Yi.apply(this,arguments)}function eI(e,t){return iI(e)||nI(e,t)||rI(e,t)||tI()}function tI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 74In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rI(e,t){if(e){if(typeof e=="string")return ig(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 ig(e,t)}}function ig(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 nI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function iI(e){if(Array.isArray(e))return e}function ag(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 og(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ag(Object(r),!0).forEach(function(n){aI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ag(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aI(e,t,r){return t=oI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oI(e){var t=uI(e,"string");return Dn(t)=="symbol"?t:t+""}function uI(e,t){if(Dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ug=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},sI={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},cI=function(t){var r=og(og({},sI),t),n=R.useRef(),i=R.useState(-1),a=eI(i,2),o=a[0],u=a[1];R.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var s=r.x,c=r.y,f=r.upperWidth,l=r.lowerWidth,h=r.height,p=r.className,m=r.animationEasing,v=r.animationDuration,d=r.animationBegin,x=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||h!==+h||f===0&&l===0||h===0)return null;var b=ie("recharts-trapezoid",p);return x?T.createElement(Tt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:s,y:c},to:{upperWidth:f,lowerWidth:l,height:h,x:s,y:c},duration:v,animationEasing:m,isActive:x},function(w){var y=w.upperWidth,g=w.lowerWidth,O=w.height,_=w.x,S=w.y;return T.createElement(Tt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:v,easing:m},T.createElement("path",Yi({},te(r,!0),{className:b,d:ug(_,S,y,g,O),ref:n})))}):T.createElement("g",null,T.createElement("path",Yi({},te(r,!0),{className:b,d:ug(s,c,f,l,h)})))},lI=["option","shapeType","propTransformer","activeClassName","isActive"];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 fI(e,t){if(e==null)return{};var r=hI(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 hI(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 sg(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 Zi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sg(Object(r),!0).forEach(function(n){dI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dI(e,t,r){return t=pI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pI(e){var t=vI(e,"string");return Rn(t)=="symbol"?t:t+""}function vI(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(t==="string"?String:Number)(e)}function yI(e,t){return Zi(Zi({},t),e)}function mI(e,t){return e==="symbols"}function cg(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return T.createElement(uh,r);case"trapezoid":return T.createElement(cI,r);case"sector":return T.createElement(gx,r);case"symbols":if(mI(t))return T.createElement(Af,r);break;default:return null}}function gI(e){return R.isValidElement(e)?e.props:e}function bI(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?yI:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,s=fI(e,lI),c;if(R.isValidElement(t))c=R.cloneElement(t,Zi(Zi({},s),gI(t)));else if(J(t))c=t(s);else if(Y$(t)&&!Q$(t)){var f=i(t,s);c=T.createElement(cg,{shapeType:r,elementProps:f})}else{var l=s;c=T.createElement(cg,{shapeType:r,elementProps:l})}return u?T.createElement(Oe,{className:o},c):c}function ka(e,t){return t!=null&&"trapezoids"in e.props}function Da(e,t){return t!=null&&"sectors"in e.props}function qn(e,t){return t!=null&&"points"in e.props}function xI(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 wI(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function OI(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function _I(e,t){var r;return ka(e,t)?r=xI:Da(e,t)?r=wI:qn(e,t)&&(r=OI),r}function SI(e,t){var r;return ka(e,t)?r="trapezoids":Da(e,t)?r="sectors":qn(e,t)&&(r="points"),r}function AI(e,t){if(ka(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(Da(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 qn(e,t)?t.payload:{}}function PI(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=SI(r,t),a=AI(r,t),o=n.filter(function(s,c){var f=nh(a,s),l=r.props[i].filter(function(m){var v=_I(r,t);return v(m,t)}),h=r.props[i].indexOf(l[l.length-1]),p=c===h;return f&&p}),u=n.indexOf(o[o.length-1]);return u}var Oc,lg;function TI(){if(lg)return Oc;lg=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,s=t(e((i-n)/(a||1)),0),c=Array(s);s--;)c[o?s:++u]=n,n+=a;return c}return Oc=r,Oc}var _c,fg;function jx(){if(fg)return _c;fg=1;var e=u0(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return _c=n,_c}var Sc,hg;function jI(){if(hg)return Sc;hg=1;var e=TI(),t=_a(),r=jx();function n(i){return function(a,o,u){return u&&typeof u!="number"&&t(a,o,u)&&(o=u=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),u=u===void 0?a<o?1:-1:r(u),e(a,o,u,i)}}return Sc=n,Sc}var Ac,dg;function EI(){if(dg)return Ac;dg=1;var e=jI(),t=e();return Ac=t,Ac}var MI=EI();const Ji=le(MI);function Bn(e){"@babel/helpers - typeof";return Bn=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},Bn(e)}function pg(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 vg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pg(Object(r),!0).forEach(function(n){Ex(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ex(e,t,r){return t=CI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CI(e){var t=$I(e,"string");return Bn(t)=="symbol"?t:t+""}function $I(e,t){if(Bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var II=["Webkit","Moz","O","ms"],NI=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=II.reduce(function(a,o){return vg(vg({},a),{},Ex({},o+n,r))},{});return i[t]=r,i};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 Qi(){return Qi=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},Qi.apply(this,arguments)}function yg(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 Pc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yg(Object(r),!0).forEach(function(n){De(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mg(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,Cx(n.key),n)}}function DI(e,t,r){return t&&mg(e.prototype,t),r&&mg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function RI(e,t,r){return t=ea(t),qI(e,Mx()?Reflect.construct(t,r||[],ea(e).constructor):t.apply(e,r))}function qI(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 BI(e)}function BI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Mx=function(){return!!e})()}function ea(e){return ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ea(e)}function LI(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&&Ul(e,t)}function Ul(e,t){return Ul=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ul(e,t)}function De(e,t,r){return t=Cx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cx(e){var t=FI(e,"string");return wr(t)=="symbol"?t:t+""}function FI(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 zI=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 s=r.length,c=on().domain(Ji(0,s)).range([a,a+o-u]),f=c.domain().map(function(l){return c(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:f}},gg=function(t){return t.changedTouches&&!!t.changedTouches.length},Or=(function(e){function t(r){var n;return kI(this,t),n=RI(this,t,[r]),De(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),De(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),De(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()}),De(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),De(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),De(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),De(n,"handleSlideDragStart",function(i){var a=gg(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 LI(t,e),DI(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,s=u.gap,c=u.data,f=c.length-1,l=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,l),m=t.getIndexInRange(o,h);return{startIndex:p-p%s,endIndex:m===f?f:m-m%s}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,s=it(a[n],u,n);return J(o)?o(s,n):s}},{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,s=this.props,c=s.x,f=s.width,l=s.travellerWidth,h=s.startIndex,p=s.endIndex,m=s.onChange,v=n.pageX-a;v>0?v=Math.min(v,c+f-l-u,c+f-l-o):v<0&&(v=Math.max(v,c-o,c-u));var d=this.getIndex({startX:o+v,endX:u+v});(d.startIndex!==h||d.endIndex!==p)&&m&&m(d),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=gg(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,s=i.startX,c=this.state[o],f=this.props,l=f.x,h=f.width,p=f.travellerWidth,m=f.onChange,v=f.gap,d=f.data,x={startX:this.state.startX,endX:this.state.endX},b=n.pageX-a;b>0?b=Math.min(b,l+h-p-c):b<0&&(b=Math.max(b,l-c)),x[o]=c+b;var w=this.getIndex(x),y=w.startIndex,g=w.endIndex,O=function(){var S=d.length-1;return o==="startX"&&(u>s?y%v===0:g%v===0)||u<s&&g===S||o==="endX"&&(u>s?g%v===0:y%v===0)||u>s&&g===S};this.setState(De(De({},o,c+b),"brushMoveStartX",n.pageX),function(){m&&O()&&m(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,s=o.startX,c=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>=c||i==="endX"&&p<=s||this.setState(De({},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,s=n.fill,c=n.stroke;return T.createElement("rect",{stroke:c,fill:s,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,s=n.data,c=n.children,f=n.padding,l=R.Children.only(c);return l?T.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,s=this.props,c=s.y,f=s.travellerWidth,l=s.height,h=s.traveller,p=s.ariaLabel,m=s.data,v=s.startIndex,d=s.endIndex,x=Math.max(n,this.props.x),b=Pc(Pc({},te(this.props,!1)),{},{x,y:c,width:f,height:l}),w=p||"Min value: ".concat((a=m[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=m[d])===null||o===void 0?void 0:o.name);return T.createElement(Oe,{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(g){["ArrowLeft","ArrowRight"].includes(g.key)&&(g.preventDefault(),g.stopPropagation(),u.handleTravellerMoveKeyboard(g.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,b))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,s=a.stroke,c=a.travellerWidth,f=Math.min(n,i)+c,l=Math.max(Math.abs(i-n)-c,0);return T.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,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,s=n.travellerWidth,c=n.stroke,f=this.state,l=f.startX,h=f.endX,p=5,m={pointerEvents:"none",fill:c};return T.createElement(Oe,{className:"recharts-brush-texts"},T.createElement(Ei,Qi({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-p,y:o+u/2},m),this.getTextOfTick(i)),T.createElement(Ei,Qi({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,h)+s+p,y:o+u/2},m),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,s=n.y,c=n.width,f=n.height,l=n.alwaysShowText,h=this.state,p=h.startX,m=h.endX,v=h.isTextActive,d=h.isSlideMoving,x=h.isTravellerMoving,b=h.isTravellerFocused;if(!i||!i.length||!L(u)||!L(s)||!L(c)||!L(f)||c<=0||f<=0)return null;var w=ie("recharts-brush",a),y=T.Children.count(o)===1,g=NI("userSelect","none");return T.createElement(Oe,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),y&&this.renderPanorama(),this.renderSlide(p,m),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(m,"endX"),(v||d||x||b||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,s=n.stroke,c=Math.floor(a+u/2)-1;return T.createElement(T.Fragment,null,T.createElement("rect",{x:i,y:a,width:o,height:u,fill:s,stroke:"none"}),T.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),T.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return T.isValidElement(n)?a=T.cloneElement(n,i):J(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,s=n.travellerWidth,c=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return Pc({prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o},a&&a.length?zI({data:a,width:o,x:u,travellerWidth:s,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([u,u+o-s]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:c,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 s=Math.floor((o+u)/2);n[s]>i?u=s:o=s}return i>=n[u]?u:o}}])})(R.PureComponent);De(Or,"displayName","Brush");De(Or,"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 Tc,bg;function UI(){if(bg)return Tc;bg=1;var e=$f();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return Tc=t,Tc}var jc,xg;function WI(){if(xg)return jc;xg=1;var e=qb(),t=Et(),r=UI(),n=Ne(),i=_a();function a(o,u,s){var c=n(o)?e:r;return s&&i(o,u,s)&&(u=void 0),c(o,t(u,3))}return jc=a,jc}var HI=WI();const GI=le(HI);var rt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Ec,wg;function KI(){if(wg)return Ec;wg=1;var e=r0();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Ec=t,Ec}var Mc,Og;function XI(){if(Og)return Mc;Og=1;var e=KI(),t=e0(),r=Et();function n(i,a){var o={};return a=r(a,3),t(i,function(u,s,c){e(o,s,a(u,s,c))}),o}return Mc=n,Mc}var VI=XI();const YI=le(VI);var Cc,_g;function ZI(){if(_g)return Cc;_g=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Cc=e,Cc}var $c,Sg;function JI(){if(Sg)return $c;Sg=1;var e=$f();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return $c=t,$c}var Ic,Ag;function QI(){if(Ag)return Ic;Ag=1;var e=ZI(),t=JI(),r=Et(),n=Ne(),i=_a();function a(o,u,s){var c=n(o)?e:t;return s&&i(o,u,s)&&(u=void 0),c(o,r(u,3))}return Ic=a,Ic}var eN=QI();const $x=le(eN);var tN=["x","y"];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 Wl(){return Wl=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},Wl.apply(this,arguments)}function Pg(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 Yr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pg(Object(r),!0).forEach(function(n){rN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rN(e,t,r){return t=nN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nN(e){var t=iN(e,"string");return Ln(t)=="symbol"?t:t+""}function iN(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(t==="string"?String:Number)(e)}function aN(e,t){if(e==null)return{};var r=oN(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 oN(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 uN(e,t){var r=e.x,n=e.y,i=aN(e,tN),a="".concat(r),o=parseInt(a,10),u="".concat(n),s=parseInt(u,10),c="".concat(t.height||i.height),f=parseInt(c,10),l="".concat(t.width||i.width),h=parseInt(l,10);return Yr(Yr(Yr(Yr(Yr({},t),i),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function Tg(e){return T.createElement(bI,Wl({shapeType:"rectangle",propTransformer:uN,activeClassName:"recharts-active-bar"},e))}var sN=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=typeof n=="number";return a?t(n,i):(a||Kt(),r)}},cN=["value","background"],Ix;function _r(e){"@babel/helpers - typeof";return _r=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},_r(e)}function lN(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 ta(){return ta=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},ta.apply(this,arguments)}function jg(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 ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jg(Object(r),!0).forEach(function(n){At(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eg(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,kx(n.key),n)}}function dN(e,t,r){return t&&Eg(e.prototype,t),r&&Eg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pN(e,t,r){return t=ra(t),vN(e,Nx()?Reflect.construct(t,r||[],ra(e).constructor):t.apply(e,r))}function vN(e,t){if(t&&(_r(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yN(e)}function yN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nx=function(){return!!e})()}function ra(e){return ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ra(e)}function mN(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&&Hl(e,t)}function Hl(e,t){return Hl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hl(e,t)}function At(e,t,r){return t=kx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kx(e){var t=gN(e,"string");return _r(t)=="symbol"?t:t+""}function gN(e,t){if(_r(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Jt=(function(e){function t(){var r;hN(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=pN(this,t,[].concat(i)),At(r,"state",{isAnimationFinished:!1}),At(r,"id",ya("recharts-bar-")),At(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),At(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return mN(t,e),dN(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,s=a.activeIndex,c=a.activeBar,f=te(this.props,!1);return n&&n.map(function(l,h){var p=h===s,m=p?c:o,v=ve(ve(ve({},f),l),{},{isActive:p,option:m,index:h,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return T.createElement(Oe,ta({className:"recharts-bar-rectangle"},gi(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)}),T.createElement(Tg,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,f=i.animationEasing,l=i.animationId,h=this.state.prevData;return T.createElement(Tt,{begin:s,duration:c,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var m=p.t,v=a.map(function(d,x){var b=h&&h[x];if(b){var w=Qt(b.x,d.x),y=Qt(b.y,d.y),g=Qt(b.width,d.width),O=Qt(b.height,d.height);return ve(ve({},d),{},{x:w(m),y:y(m),width:g(m),height:O(m)})}if(o==="horizontal"){var _=Qt(0,d.height),S=_(m);return ve(ve({},d),{},{y:d.y+d.height-S,height:S})}var j=Qt(0,d.width),M=j(m);return ve(ve({},d),{},{width:M})});return T.createElement(Oe,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!nh(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,s=te(this.props.background,!1);return a.map(function(c,f){c.value;var l=c.background,h=lN(c,cN);if(!l)return null;var p=ve(ve(ve(ve(ve({},h),{},{fill:"#eee"},l),s),gi(n.props,c,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return T.createElement(Tg,ta({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,s=a.yAxis,c=a.layout,f=a.children,l=Ye(f,Na);if(!l)return null;var h=c==="vertical"?o[0].height/2:o[0].width/2,p=function(d,x){var b=Array.isArray(d.value)?d.value[1]:d.value;return{x:d.x,y:d.y,value:b,errorVal:it(d,x)}},m={clipPath:n?"url(#clipPath-".concat(i,")"):null};return T.createElement(Oe,m,l.map(function(v){return T.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,s=n.yAxis,c=n.left,f=n.top,l=n.width,h=n.height,p=n.isAnimationActive,m=n.background,v=n.id;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,x=ie("recharts-bar",o),b=u&&u.allowDataOverflow,w=s&&s.allowDataOverflow,y=b||w,g=ne(v)?this.id:v;return T.createElement(Oe,{className:x},b||w?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(g)},T.createElement("rect",{x:b?c:c-l/2,y:w?f:f-h/2,width:b?l:l*2,height:w?h:h*2}))):null,T.createElement(Oe,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(g,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(y,g),(!p||d)&&Wt.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}}])})(R.PureComponent);Ix=Jt;At(Jt,"displayName","Bar");At(Jt,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Vn.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});At(Jt,"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,s=e.yAxisTicks,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,p=ZE(n,r);if(!p)return null;var m=t.layout,v=r.type.defaultProps,d=v!==void 0?ve(ve({},v),r.props):r.props,x=d.dataKey,b=d.children,w=d.minPointSize,y=m==="horizontal"?o:a,g=c?y.scale.domain():null,O=aM({numericAxis:y}),_=Ye(b,c0),S=l.map(function(j,M){var A,E,C,$,N,k;c?A=JE(c[f+M],g):(A=it(j,x),Array.isArray(A)||(A=[O,A]));var q=sN(w,Ix.defaultProps.minPointSize)(A[1],M);if(m==="horizontal"){var B,U=[o.scale(A[0]),o.scale(A[1])],G=U[0],W=U[1];E=pm({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:j,index:M}),C=(B=W??G)!==null&&B!==void 0?B:void 0,$=p.size;var H=G-W;if(N=Number.isNaN(H)?0:H,k={x:E,y:o.y,width:$,height:o.height},Math.abs(q)>0&&Math.abs(N)<Math.abs(q)){var X=Ve(N||q)*(Math.abs(q)-Math.abs(N));C-=X,N+=X}}else{var se=[a.scale(A[0]),a.scale(A[1])],Se=se[0],ot=se[1];if(E=Se,C=pm({axis:o,ticks:s,bandSize:i,offset:p.offset,entry:j,index:M}),$=ot-Se,N=p.size,k={x:a.x,y:C,width:a.width,height:N},Math.abs(q)>0&&Math.abs($)<Math.abs(q)){var Te=Ve($||q)*(Math.abs(q)-Math.abs($));$+=Te}}return ve(ve(ve({},j),{},{x:E,y:C,width:$,height:N,value:c?A:A[1],payload:j,background:k},_&&_[M]&&_[M].props),{},{tooltipPayload:[vx(r,j)],tooltipPosition:{x:E+$/2,y:C+N/2}})});return ve({data:S,layout:m},h)});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 bN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mg(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,Dx(n.key),n)}}function xN(e,t,r){return t&&Mg(e.prototype,t),r&&Mg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cg(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 Ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cg(Object(r),!0).forEach(function(n){Ra(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ra(e,t,r){return t=Dx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dx(e){var t=wN(e,"string");return Fn(t)=="symbol"?t:t+""}function wN(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 ON=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.layout,c=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=!!Re(c,Jt);return f.reduce(function(p,m){var v=r[m],d=v.orientation,x=v.domain,b=v.padding,w=b===void 0?{}:b,y=v.mirror,g=v.reversed,O="".concat(d).concat(y?"Mirror":""),_,S,j,M,A;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var E=x[1]-x[0],C=1/0,$=v.categoricalDomain.sort();if($.forEach(function(se,Se){Se>0&&(C=Math.min((se||0)-($[Se-1]||0),C))}),Number.isFinite(C)){var N=C/E,k=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=N*k/2),v.padding==="no-gap"){var q=Ht(t.barCategoryGap,N*k),B=N*k/2;_=B-q-(B-q)/k*q}}}i==="xAxis"?S=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?S=s==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(_||0),n.top+n.height-(w.bottom||0)-(_||0)]:S=v.range,g&&(S=[S[1],S[0]]);var U=VE(v,a,h),G=U.scale,W=U.realScaleType;G.domain(x).range(S),YE(G);var H=iM(G,Ke(Ke({},v),{},{realScaleType:W}));i==="xAxis"?(A=d==="top"&&!y||d==="bottom"&&y,j=n.left,M=l[O]-A*v.height):i==="yAxis"&&(A=d==="left"&&!y||d==="right"&&y,j=l[O]-A*v.width,M=n.top);var X=Ke(Ke(Ke({},v),H),{},{realScaleType:W,x:j,y:M,scale:G,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return X.bandSize=Ui(X,H),!v.hide&&i==="xAxis"?l[O]+=(A?-1:1)*X.height:v.hide||(l[O]+=(A?-1:1)*X.width),Ke(Ke({},p),{},Ra({},m,X))},{})},Rx=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)}},_N=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return Rx({x:r,y:n},{x:i,y:a})},qx=(function(){function e(t){bN(this,e),this.scale=t}return xN(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 s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}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)}}])})();Ra(qx,"EPS",1e-4);var sh=function(t){var r=Object.keys(t).reduce(function(n,i){return Ke(Ke({},n),{},Ra({},i,qx.create(t[i])))},{});return Ke(Ke({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return YI(i,function(s,c){return r[c].apply(s,{bandAware:o,position:u})})},isInRange:function(i){return $x(i,function(a,o){return r[o].isInRange(a)})}})};function SN(e){return(e%180+180)%180}var AN=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=SN(i),o=a*Math.PI/180,u=Math.atan(n/r),s=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(s)},Nc,$g;function PN(){if($g)return Nc;$g=1;var e=Et(),t=Xn(),r=wa();function n(i){return function(a,o,u){var s=Object(a);if(!t(a)){var c=e(o,3);a=r(a),o=function(l){return c(s[l],l,s)}}var f=i(a,o,u);return f>-1?s[c?a[f]:f]:void 0}}return Nc=n,Nc}var kc,Ig;function TN(){if(Ig)return kc;Ig=1;var e=jx();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return kc=t,kc}var Dc,Ng;function jN(){if(Ng)return Dc;Ng=1;var e=Vb(),t=Et(),r=TN(),n=Math.max;function i(a,o,u){var s=a==null?0:a.length;if(!s)return-1;var c=u==null?0:r(u);return c<0&&(c=n(s+c,0)),e(a,t(o,3),c)}return Dc=i,Dc}var Rc,kg;function EN(){if(kg)return Rc;kg=1;var e=PN(),t=jN(),r=e(t);return Rc=r,Rc}var MN=EN();const CN=le(MN);var $N=lb();const IN=le($N);var NN=IN(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("")}),ch=R.createContext(void 0),lh=R.createContext(void 0),Bx=R.createContext(void 0),Lx=R.createContext({}),Fx=R.createContext(void 0),zx=R.createContext(0),Ux=R.createContext(0),Dg=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,s=t.width,c=t.height,f=NN(a);return T.createElement(ch.Provider,{value:n},T.createElement(lh.Provider,{value:i},T.createElement(Lx.Provider,{value:a},T.createElement(Bx.Provider,{value:f},T.createElement(Fx.Provider,{value:o},T.createElement(zx.Provider,{value:c},T.createElement(Ux.Provider,{value:s},u)))))))},kN=function(){return R.useContext(Fx)},Wx=function(t){var r=R.useContext(ch);r==null&&Kt();var n=r[t];return n==null&&Kt(),n},DN=function(){var t=R.useContext(ch);return St(t)},RN=function(){var t=R.useContext(lh),r=CN(t,function(n){return $x(n.domain,Number.isFinite)});return r||St(t)},Hx=function(t){var r=R.useContext(lh);r==null&&Kt();var n=r[t];return n==null&&Kt(),n},qN=function(){var t=R.useContext(Bx);return t},BN=function(){return R.useContext(Lx)},fh=function(){return R.useContext(Ux)},hh=function(){return R.useContext(zx)};function Sr(e){"@babel/helpers - typeof";return Sr=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},Sr(e)}function LN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FN(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,Kx(n.key),n)}}function zN(e,t,r){return t&&FN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function UN(e,t,r){return t=na(t),WN(e,Gx()?Reflect.construct(t,r||[],na(e).constructor):t.apply(e,r))}function WN(e,t){if(t&&(Sr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HN(e)}function HN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gx=function(){return!!e})()}function na(e){return na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},na(e)}function GN(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&&Gl(e,t)}function Gl(e,t){return Gl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gl(e,t)}function Rg(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 qg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rg(Object(r),!0).forEach(function(n){dh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dh(e,t,r){return t=Kx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kx(e){var t=KN(e,"string");return Sr(t)=="symbol"?t:t+""}function KN(e,t){if(Sr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function XN(e,t){return JN(e)||ZN(e,t)||YN(e,t)||VN()}function VN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 75In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YN(e,t){if(e){if(typeof e=="string")return Bg(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 Bg(e,t)}}function Bg(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 ZN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function JN(e){if(Array.isArray(e))return e}function Kl(){return Kl=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},Kl.apply(this,arguments)}var QN=function(t,r){var n;return T.isValidElement(t)?n=T.cloneElement(t,r):J(t)?n=t(r):n=T.createElement("line",Kl({},r,{className:"recharts-reference-line-line"})),n},ek=function(t,r,n,i,a,o,u,s,c){var f=a.x,l=a.y,h=a.width,p=a.height;if(n){var m=c.y,v=t.y.apply(m,{position:o});if(rt(c,"discard")&&!t.y.isInRange(v))return null;var d=[{x:f+h,y:v},{x:f,y:v}];return s==="left"?d.reverse():d}if(r){var x=c.x,b=t.x.apply(x,{position:o});if(rt(c,"discard")&&!t.x.isInRange(b))return null;var w=[{x:b,y:l+p},{x:b,y:l}];return u==="top"?w.reverse():w}if(i){var y=c.segment,g=y.map(function(O){return t.apply(O,{position:o})});return rt(c,"discard")&&GI(g,function(O){return!t.isInRange(O)})?null:g}return null};function tk(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,s=e.alwaysShow,c=kN(),f=Wx(i),l=Hx(a),h=qN();if(!c||!h)return null;vt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=sh({x:f.scale,y:l.scale}),m=be(t),v=be(r),d=n&&n.length===2,x=ek(p,m,v,d,h,e.position,f.orientation,l.orientation,e);if(!x)return null;var b=XN(x,2),w=b[0],y=w.x,g=w.y,O=b[1],_=O.x,S=O.y,j=rt(e,"hidden")?"url(#".concat(c,")"):void 0,M=qg(qg({clipPath:j},te(e,!0)),{},{x1:y,y1:g,x2:_,y2:S});return T.createElement(Oe,{className:ie("recharts-reference-line",u)},QN(o,M),Ee.renderCallByParent(e,_N({x1:y,y1:g,x2:_,y2:S})))}var ph=(function(e){function t(){return LN(this,t),UN(this,t,arguments)}return GN(t,e),zN(t,[{key:"render",value:function(){return T.createElement(tk,this.props)}}])})(T.Component);dh(ph,"displayName","ReferenceLine");dh(ph,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Xl(){return Xl=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},Xl.apply(this,arguments)}function Ar(e){"@babel/helpers - typeof";return Ar=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},Ar(e)}function Lg(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 Fg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lg(Object(r),!0).forEach(function(n){qa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nk(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,Vx(n.key),n)}}function ik(e,t,r){return t&&nk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ak(e,t,r){return t=ia(t),ok(e,Xx()?Reflect.construct(t,r||[],ia(e).constructor):t.apply(e,r))}function ok(e,t){if(t&&(Ar(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uk(e)}function uk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xx=function(){return!!e})()}function ia(e){return ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ia(e)}function sk(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&&Vl(e,t)}function Vl(e,t){return Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vl(e,t)}function qa(e,t,r){return t=Vx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vx(e){var t=ck(e,"string");return Ar(t)=="symbol"?t:t+""}function ck(e,t){if(Ar(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ar(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var lk=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=sh({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return rt(t,"discard")&&!o.isInRange(u)?null:u},Ba=(function(e){function t(){return rk(this,t),ak(this,t,arguments)}return sk(t,e),ik(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,s=n.clipPathId,c=be(i),f=be(a);if(vt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var l=lk(this.props);if(!l)return null;var h=l.x,p=l.y,m=this.props,v=m.shape,d=m.className,x=rt(this.props,"hidden")?"url(#".concat(s,")"):void 0,b=Fg(Fg({clipPath:x},te(this.props,!0)),{},{cx:h,cy:p});return T.createElement(Oe,{className:ie("recharts-reference-dot",d)},t.renderDot(v,b),Ee.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])})(T.Component);qa(Ba,"displayName","ReferenceDot");qa(Ba,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});qa(Ba,"renderDot",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):J(e)?r=e(t):r=T.createElement(Tx,Xl({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Yl(){return Yl=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},Yl.apply(this,arguments)}function Pr(e){"@babel/helpers - typeof";return Pr=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},Pr(e)}function zg(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 Ug(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zg(Object(r),!0).forEach(function(n){La(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hk(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,Zx(n.key),n)}}function dk(e,t,r){return t&&hk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pk(e,t,r){return t=aa(t),vk(e,Yx()?Reflect.construct(t,r||[],aa(e).constructor):t.apply(e,r))}function vk(e,t){if(t&&(Pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yk(e)}function yk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yx=function(){return!!e})()}function aa(e){return aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},aa(e)}function mk(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&&Zl(e,t)}function Zl(e,t){return Zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zl(e,t)}function La(e,t,r){return t=Zx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zx(e){var t=gk(e,"string");return Pr(t)=="symbol"?t:t+""}function gk(e,t){if(Pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var bk=function(t,r,n,i,a){var o=a.x1,u=a.x2,s=a.y1,c=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var h=sh({x:f.scale,y:l.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(s,{position:"start"}):h.y.rangeMin},m={x:r?h.x.apply(u,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(c,{position:"end"}):h.y.rangeMax};return rt(a,"discard")&&(!h.isInRange(p)||!h.isInRange(m))?null:Rx(p,m)},Fa=(function(e){function t(){return fk(this,t),pk(this,t,arguments)}return mk(t,e),dk(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,s=n.className,c=n.alwaysShow,f=n.clipPathId;vt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=be(i),h=be(a),p=be(o),m=be(u),v=this.props.shape;if(!l&&!h&&!p&&!m&&!v)return null;var d=bk(l,h,p,m,this.props);if(!d&&!v)return null;var x=rt(this.props,"hidden")?"url(#".concat(f,")"):void 0;return T.createElement(Oe,{className:ie("recharts-reference-area",s)},t.renderRect(v,Ug(Ug({clipPath:x},te(this.props,!0)),d)),Ee.renderCallByParent(this.props,d))}}])})(T.Component);La(Fa,"displayName","ReferenceArea");La(Fa,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});La(Fa,"renderRect",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):J(e)?r=e(t):r=T.createElement(uh,Yl({},t,{className:"recharts-reference-area-rect"})),r});function Jx(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 xk(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return AN(n,r)}function wk(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 oa(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 Ok(e,t){return Jx(e,t+1)}function _k(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,s=0,c=1,f=o,l=function(){var m=n==null?void 0:n[s];if(m===void 0)return{v:Jx(n,c)};var v=s,d,x=function(){return d===void 0&&(d=r(m,v)),d},b=m.coordinate,w=s===0||oa(e,b,x,f,u);w||(s=0,f=o,c+=1),w&&(f=b+e*(x()/2+i),s+=c)},h;c<=a.length;)if(h=l(),h)return h.v;return[]}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 Wg(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 je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wg(Object(r),!0).forEach(function(n){Sk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sk(e,t,r){return t=Ak(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ak(e){var t=Pk(e,"string");return zn(t)=="symbol"?t:t+""}function Pk(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)}function Tk(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,s=t.end,c=function(h){var p=a[h],m,v=function(){return m===void 0&&(m=r(p,h)),m};if(h===o-1){var d=e*(p.coordinate+e*v()/2-s);a[h]=p=je(je({},p),{},{tickCoord:d>0?p.coordinate-d*e:p.coordinate})}else a[h]=p=je(je({},p),{},{tickCoord:p.coordinate});var x=oa(e,p.tickCoord,v,u,s);x&&(s=p.tickCoord-e*(v()/2+i),a[h]=je(je({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)c(f);return a}function jk(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,s=t.start,c=t.end;if(a){var f=n[u-1],l=r(f,u-1),h=e*(f.coordinate+e*l/2-c);o[u-1]=f=je(je({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var p=oa(e,f.tickCoord,function(){return l},s,c);p&&(c=f.tickCoord-e*(l/2+i),o[u-1]=je(je({},f),{},{isShow:!0}))}for(var m=a?u-1:u,v=function(b){var w=o[b],y,g=function(){return y===void 0&&(y=r(w,b)),y};if(b===0){var O=e*(w.coordinate-e*g()/2-s);o[b]=w=je(je({},w),{},{tickCoord:O<0?w.coordinate-O*e:w.coordinate})}else o[b]=w=je(je({},w),{},{tickCoord:w.coordinate});var _=oa(e,w.tickCoord,g,s,c);_&&(s=w.tickCoord+e*(g()/2+i),o[b]=je(je({},w),{},{isShow:!0}))},d=0;d<m;d++)v(d);return o}function vh(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,s=e.interval,c=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(L(s)||Vn.isSsr)return Ok(i,typeof s=="number"&&L(s)?s:0);var h=[],p=u==="top"||u==="bottom"?"width":"height",m=f&&p==="width"?an(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,y){var g=J(c)?c(w.value,y):w.value;return p==="width"?xk(an(g,{fontSize:t,letterSpacing:r}),m,l):an(g,{fontSize:t,letterSpacing:r})[p]},d=i.length>=2?Ve(i[1].coordinate-i[0].coordinate):1,x=wk(a,d,p);return s==="equidistantPreserveStart"?_k(d,x,v,i,o):(s==="preserveStart"||s==="preserveStartEnd"?h=jk(d,x,v,i,o,s==="preserveStartEnd"):h=Tk(d,x,v,i,o),h.filter(function(b){return b.isShow}))}var Ek=["viewBox"],Mk=["viewBox"],Ck=["ticks"];function Tr(e){"@babel/helpers - typeof";return Tr=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},Tr(e)}function ar(){return ar=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},ar.apply(this,arguments)}function Hg(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?Hg(Object(r),!0).forEach(function(n){yh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qc(e,t){if(e==null)return{};var r=$k(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 $k(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 Ik(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gg(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,ew(n.key),n)}}function Nk(e,t,r){return t&&Gg(e.prototype,t),r&&Gg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function kk(e,t,r){return t=ua(t),Dk(e,Qx()?Reflect.construct(t,r||[],ua(e).constructor):t.apply(e,r))}function Dk(e,t){if(t&&(Tr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rk(e)}function Rk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qx=function(){return!!e})()}function ua(e){return ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ua(e)}function qk(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&&Jl(e,t)}function Jl(e,t){return Jl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jl(e,t)}function yh(e,t,r){return t=ew(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ew(e){var t=Bk(e,"string");return Tr(t)=="symbol"?t:t+""}function Bk(e,t){if(Tr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Br=(function(e){function t(r){var n;return Ik(this,t),n=kk(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return qk(t,e),Nk(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=qc(n,Ek),u=this.props,s=u.viewBox,c=qc(u,Mk);return!or(a,s)||!or(o,c)||!or(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,s=i.height,c=i.orientation,f=i.tickSize,l=i.mirror,h=i.tickMargin,p,m,v,d,x,b,w=l?-1:1,y=n.tickSize||f,g=L(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":p=m=n.coordinate,d=o+ +!l*s,v=d-w*y,b=v-w*h,x=g;break;case"left":v=d=n.coordinate,m=a+ +!l*u,p=m-w*y,x=p-w*h,b=g;break;case"right":v=d=n.coordinate,m=a+ +l*u,p=m+w*y,x=p+w*h,b=g;break;default:p=m=n.coordinate,d=o+ +l*s,v=d+w*y,b=v+w*h,x=g;break}return{line:{x1:p,y1:v,x2:m,y2:d},tick:{x,y:b}}}},{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,s=n.orientation,c=n.mirror,f=n.axisLine,l=Ce(Ce(Ce({},te(this.props,!1)),te(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var h=+(s==="top"&&!c||s==="bottom"&&c);l=Ce(Ce({},l),{},{x1:i,y1:a+h*u,x2:i+o,y2:a+h*u})}else{var p=+(s==="left"&&!c||s==="right"&&c);l=Ce(Ce({},l),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+u})}return T.createElement("line",ar({},l,{className:ie("recharts-cartesian-axis-line",Ue(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,s=u.tickLine,c=u.stroke,f=u.tick,l=u.tickFormatter,h=u.unit,p=vh(Ce(Ce({},this.props),{},{ticks:n}),i,a),m=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),d=te(this.props,!1),x=te(f,!1),b=Ce(Ce({},d),{},{fill:"none"},te(s,!1)),w=p.map(function(y,g){var O=o.getTickLineCoord(y),_=O.line,S=O.tick,j=Ce(Ce(Ce(Ce({textAnchor:m,verticalAnchor:v},d),{},{stroke:"none",fill:c},x),S),{},{index:g,payload:y,visibleTicksCount:p.length,tickFormatter:l});return T.createElement(Oe,ar({className:"recharts-cartesian-axis-tick",key:"tick-".concat(y.value,"-").concat(y.coordinate,"-").concat(y.tickCoord)},gi(o.props,y,g)),s&&T.createElement("line",ar({},b,_,{className:ie("recharts-cartesian-axis-tick-line",Ue(s,"className"))})),f&&t.renderTickItem(f,j,"".concat(J(l)?l(y.value,g):y.value).concat(h||"")))});return T.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,s=i.ticksGenerator,c=i.className,f=i.hide;if(f)return null;var l=this.props,h=l.ticks,p=qc(l,Ck),m=h;return J(s)&&(m=h&&h.length>0?s(this.props):s(p)),o<=0||u<=0||!m||!m.length?null:T.createElement(Oe,{className:ie("recharts-cartesian-axis",c),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),Ee.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return T.isValidElement(n)?o=T.cloneElement(n,i):J(n)?o=n(i):o=T.createElement(Ei,ar({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(R.Component);yh(Br,"displayName","CartesianAxis");yh(Br,"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 Lk=["x1","y1","x2","y2","key"],Fk=["offset"];function Xt(e){"@babel/helpers - typeof";return Xt=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},Xt(e)}function Kg(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 Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kg(Object(r),!0).forEach(function(n){zk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zk(e,t,r){return t=Uk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uk(e){var t=Wk(e,"string");return Xt(t)=="symbol"?t:t+""}function Wk(e,t){if(Xt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ft(){return Ft=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},Ft.apply(this,arguments)}function Xg(e,t){if(e==null)return{};var r=Hk(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 Hk(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 Gk=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,s=t.ry;return T.createElement("rect",{x:i,y:a,ry:s,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function tw(e,t){var r;if(T.isValidElement(e))r=T.cloneElement(e,t);else if(J(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,s=Xg(t,Lk),c=te(s,!1);c.offset;var f=Xg(c,Fk);r=T.createElement("line",Ft({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function Kk(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,s){var c=Me(Me({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(s),index:s});return tw(i,c)});return T.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function Xk(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,s){var c=Me(Me({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(s),index:s});return tw(i,c)});return T.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function Vk(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,s=e.horizontal,c=s===void 0?!0:s;if(!c||!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 m=!f[p+1],v=m?i+o-h:f[p+1]-h;if(v<=0)return null;var d=p%t.length;return T.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:v,width:a,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function Yk(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,s=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var f=c.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 m=!f[p+1],v=m?a+u-h:f[p+1]-h;if(v<=0)return null;var d=p%n.length;return T.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:v,height:s,stroke:"none",fill:n[d],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var Zk=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return dx(vh(Me(Me(Me({},Br.defaultProps),n),{},{ticks:dt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},Jk=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return dx(vh(Me(Me(Me({},Br.defaultProps),n),{},{ticks:dt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},rr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function rw(e){var t,r,n,i,a,o,u=fh(),s=hh(),c=BN(),f=Me(Me({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:rr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:rr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:rr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:rr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:rr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:rr.verticalFill,x:L(e.x)?e.x:c.left,y:L(e.y)?e.y:c.top,width:L(e.width)?e.width:c.width,height:L(e.height)?e.height:c.height}),l=f.x,h=f.y,p=f.width,m=f.height,v=f.syncWithTicks,d=f.horizontalValues,x=f.verticalValues,b=DN(),w=RN();if(!L(p)||p<=0||!L(m)||m<=0||!L(l)||l!==+l||!L(h)||h!==+h)return null;var y=f.verticalCoordinatesGenerator||Zk,g=f.horizontalCoordinatesGenerator||Jk,O=f.horizontalPoints,_=f.verticalPoints;if((!O||!O.length)&&J(g)){var S=d&&d.length,j=g({yAxis:w?Me(Me({},w),{},{ticks:S?d:w.ticks}):void 0,width:u,height:s,offset:c},S?!0:v);vt(Array.isArray(j),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Xt(j),"]")),Array.isArray(j)&&(O=j)}if((!_||!_.length)&&J(y)){var M=x&&x.length,A=y({xAxis:b?Me(Me({},b),{},{ticks:M?x:b.ticks}):void 0,width:u,height:s,offset:c},M?!0:v);vt(Array.isArray(A),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Xt(A),"]")),Array.isArray(A)&&(_=A)}return T.createElement("g",{className:"recharts-cartesian-grid"},T.createElement(Gk,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),T.createElement(Kk,Ft({},f,{offset:c,horizontalPoints:O,xAxis:b,yAxis:w})),T.createElement(Xk,Ft({},f,{offset:c,verticalPoints:_,xAxis:b,yAxis:w})),T.createElement(Vk,Ft({},f,{horizontalPoints:O})),T.createElement(Yk,Ft({},f,{verticalPoints:_})))}rw.displayName="CartesianGrid";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 Qk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e2(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,aw(n.key),n)}}function t2(e,t,r){return t&&e2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function r2(e,t,r){return t=sa(t),n2(e,nw()?Reflect.construct(t,r||[],sa(e).constructor):t.apply(e,r))}function n2(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 i2(e)}function i2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nw=function(){return!!e})()}function sa(e){return sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sa(e)}function a2(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&&Ql(e,t)}function Ql(e,t){return Ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ql(e,t)}function iw(e,t,r){return t=aw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aw(e){var t=o2(e,"string");return jr(t)=="symbol"?t:t+""}function o2(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)}function ef(){return ef=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},ef.apply(this,arguments)}function u2(e){var t=e.xAxisId,r=fh(),n=hh(),i=Wx(t);return i==null?null:T.createElement(Br,ef({},i,{className:ie("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return dt(o,!0)}}))}var za=(function(e){function t(){return Qk(this,t),r2(this,t,arguments)}return a2(t,e),t2(t,[{key:"render",value:function(){return T.createElement(u2,this.props)}}])})(T.Component);iw(za,"displayName","XAxis");iw(za,"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 Er(e){"@babel/helpers - typeof";return Er=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},Er(e)}function s2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c2(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,sw(n.key),n)}}function l2(e,t,r){return t&&c2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function f2(e,t,r){return t=ca(t),h2(e,ow()?Reflect.construct(t,r||[],ca(e).constructor):t.apply(e,r))}function h2(e,t){if(t&&(Er(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d2(e)}function d2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ow(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ow=function(){return!!e})()}function ca(e){return ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ca(e)}function p2(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&&tf(e,t)}function tf(e,t){return tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tf(e,t)}function uw(e,t,r){return t=sw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sw(e){var t=v2(e,"string");return Er(t)=="symbol"?t:t+""}function v2(e,t){if(Er(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Er(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function rf(){return rf=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},rf.apply(this,arguments)}var y2=function(t){var r=t.yAxisId,n=fh(),i=hh(),a=Hx(r);return a==null?null:T.createElement(Br,rf({},a,{className:ie("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return dt(u,!0)}}))},Ua=(function(e){function t(){return s2(this,t),f2(this,t,arguments)}return p2(t,e),l2(t,[{key:"render",value:function(){return T.createElement(y2,this.props)}}])})(T.Component);uw(Ua,"displayName","YAxis");uw(Ua,"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 Vg(e){return x2(e)||b2(e)||g2(e)||m2()}function m2(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 76In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g2(e,t){if(e){if(typeof e=="string")return nf(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 nf(e,t)}}function b2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function x2(e){if(Array.isArray(e))return nf(e)}function nf(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 af=function(t,r,n,i,a){var o=Ye(t,ph),u=Ye(t,Ba),s=[].concat(Vg(o),Vg(u)),c=Ye(t,Fa),f="".concat(i,"Id"),l=i[0],h=r;if(s.length&&(h=s.reduce(function(v,d){if(d.props[f]===n&&rt(d.props,"extendDomain")&&L(d.props[l])){var x=d.props[l];return[Math.min(v[0],x),Math.max(v[1],x)]}return v},h)),c.length){var p="".concat(l,"1"),m="".concat(l,"2");h=c.reduce(function(v,d){if(d.props[f]===n&&rt(d.props,"extendDomain")&&L(d.props[p])&&L(d.props[m])){var x=d.props[p],b=d.props[m];return[Math.min(v[0],x,b),Math.max(v[1],x,b)]}return v},h)}return a&&a.length&&(h=a.reduce(function(v,d){return L(d)?[Math.min(v[0],d),Math.max(v[1],d)]:v},h)),h},Bc={exports:{}},Yg;function w2(){return Yg||(Yg=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,c,f){this.fn=s,this.context=c,this.once=f||!1}function a(s,c,f,l,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new i(f,l||s,h),m=r?r+c:c;return s._events[m]?s._events[m].fn?s._events[m]=[s._events[m],p]:s._events[m].push(p):(s._events[m]=p,s._eventsCount++),s}function o(s,c){--s._eventsCount===0?s._events=new n:delete s._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var c=[],f,l;if(this._eventsCount===0)return c;for(l in f=this._events)t.call(f,l)&&c.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},u.prototype.listeners=function(c){var f=r?r+c:c,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var h=0,p=l.length,m=new Array(p);h<p;h++)m[h]=l[h].fn;return m},u.prototype.listenerCount=function(c){var f=r?r+c:c,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(c,f,l,h,p,m){var v=r?r+c:c;if(!this._events[v])return!1;var d=this._events[v],x=arguments.length,b,w;if(d.fn){switch(d.once&&this.removeListener(c,d.fn,void 0,!0),x){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,m),!0}for(w=1,b=new Array(x-1);w<x;w++)b[w-1]=arguments[w];d.fn.apply(d.context,b)}else{var y=d.length,g;for(w=0;w<y;w++)switch(d[w].once&&this.removeListener(c,d[w].fn,void 0,!0),x){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(!b)for(g=1,b=new Array(x-1);g<x;g++)b[g-1]=arguments[g];d[w].fn.apply(d[w].context,b)}}return!0},u.prototype.on=function(c,f,l){return a(this,c,f,l,!1)},u.prototype.once=function(c,f,l){return a(this,c,f,l,!0)},u.prototype.removeListener=function(c,f,l,h){var p=r?r+c:c;if(!this._events[p])return this;if(!f)return o(this,p),this;var m=this._events[p];if(m.fn)m.fn===f&&(!h||m.once)&&(!l||m.context===l)&&o(this,p);else{for(var v=0,d=[],x=m.length;v<x;v++)(m[v].fn!==f||h&&!m[v].once||l&&m[v].context!==l)&&d.push(m[v]);d.length?this._events[p]=d.length===1?d[0]:d:o(this,p)}return this},u.prototype.removeAllListeners=function(c){var f;return c?(f=r?r+c:c,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})(Bc)),Bc.exports}var O2=w2();const _2=le(O2);var Lc=new _2,Fc="recharts.syncMouseEvents";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 S2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A2(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,cw(n.key),n)}}function P2(e,t,r){return t&&A2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zc(e,t,r){return t=cw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cw(e){var t=T2(e,"string");return Un(t)=="symbol"?t:t+""}function T2(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 j2=(function(){function e(){S2(this,e),zc(this,"activeIndex",0),zc(this,"coordinateList",[]),zc(this,"layout","horizontal")}return P2(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,s=r.layout,c=s===void 0?null:s,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=c??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,s=this.coordinateList[this.activeIndex].coordinate,c=((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+s+c,h=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:h})}}}])})();function E2(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&&L(n)&&L(i))return!0}return!1}function M2(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 lw(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Pe(t,r,n,i),u=Pe(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function C2(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,s=t.cy,c=t.innerRadius,f=t.outerRadius,l=t.angle,h=Pe(u,s,c,l),p=Pe(u,s,f,l);n=h.x,i=h.y,a=p.x,o=p.y}else return lw(t);return[{x:n,y:i},{x:a,y:o}]}function Wn(e){"@babel/helpers - typeof";return Wn=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},Wn(e)}function Zg(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 pi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zg(Object(r),!0).forEach(function(n){$2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $2(e,t,r){return t=I2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I2(e){var t=N2(e,"string");return Wn(t)=="symbol"?t:t+""}function N2(e,t){if(Wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function k2(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,s=e.offset,c=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 m,v=Cm;if(h==="ScatterChart")m=o,v=G$;else if(h==="BarChart")m=M2(l,o,s,f),v=uh;else if(l==="radial"){var d=lw(o),x=d.cx,b=d.cy,w=d.radius,y=d.startAngle,g=d.endAngle;m={cx:x,cy:b,startAngle:y,endAngle:g,innerRadius:w,outerRadius:w},v=gx}else m={points:C2(l,o,s)},v=Cm;var O=pi(pi(pi(pi({stroke:"#ccc",pointerEvents:"none"},s),m),te(p,!1)),{},{payload:u,payloadIndex:c,className:ie("recharts-tooltip-cursor",p.className)});return R.isValidElement(p)?R.cloneElement(p,O):R.createElement(v,O)}var D2=["item"],R2=["children","className","width","height","style","compact","title","desc"];function Mr(e){"@babel/helpers - typeof";return Mr=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},Mr(e)}function cn(){return cn=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},cn.apply(this,arguments)}function Jg(e,t){return L2(e)||B2(e,t)||hw(e,t)||q2()}function q2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 77In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function L2(e){if(Array.isArray(e))return e}function Qg(e,t){if(e==null)return{};var r=F2(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 F2(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 z2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U2(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,dw(n.key),n)}}function W2(e,t,r){return t&&U2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function H2(e,t,r){return t=la(t),G2(e,fw()?Reflect.construct(t,r||[],la(e).constructor):t.apply(e,r))}function G2(e,t){if(t&&(Mr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return K2(e)}function K2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fw=function(){return!!e})()}function la(e){return la=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},la(e)}function X2(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&&of(e,t)}function of(e,t){return of=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},of(e,t)}function Cr(e){return Z2(e)||Y2(e)||hw(e)||V2()}function V2(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 78In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hw(e,t){if(e){if(typeof e=="string")return uf(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 uf(e,t)}}function Y2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Z2(e){if(Array.isArray(e))return uf(e)}function uf(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 eb(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 I(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eb(Object(r),!0).forEach(function(n){K(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K(e,t,r){return t=dw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dw(e){var t=J2(e,"string");return Mr(t)=="symbol"?t:t+""}function J2(e,t){if(Mr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Q2={xAxis:["bottom","top"],yAxis:["left","right"]},eD={width:"100%",height:"100%"},pw={x:0,y:0};function vi(e){return e}var tD=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},rD=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 I(I(I({},i),Pe(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,c=i.angle;return I(I(I({},i),Pe(i.cx,i.cy,s,c)),{},{angle:c,radius:s})}return pw},Wa=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,s){var c=s.props.data;return c&&c.length?[].concat(Cr(u),Cr(c)):u},[]);return o.length>0?o:t&&t.length&&L(i)&&L(a)?t.slice(i,a+1):[]};function vw(e){return e==="number"?[0,"auto"]:void 0}var sf=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=Wa(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(s,c){var f,l=(f=c.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=Kc(p,o.dataKey,i)}else h=l&&l[n]||u[n];return h?[].concat(Cr(s),[vx(c,h)]):s},[])},tb=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=tD(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,c=t.tooltipTicks,f=UE(o,u,c,s);if(f>=0&&c){var l=c[f]&&c[f].value,h=sf(t,r,f,l),p=rD(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:h,activeCoordinate:p}}return null},nD=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,h=t.stackOffset,p=hx(f,a);return n.reduce(function(m,v){var d,x=v.type.defaultProps!==void 0?I(I({},v.type.defaultProps),v.props):v.props,b=x.type,w=x.dataKey,y=x.allowDataOverflow,g=x.allowDuplicatedCategory,O=x.scale,_=x.ticks,S=x.includeHidden,j=x[o];if(m[j])return m;var M=Wa(t.data,{graphicalItems:i.filter(function(H){var X,se=o in H.props?H.props[o]:(X=H.type.defaultProps)===null||X===void 0?void 0:X[o];return se===j}),dataStartIndex:s,dataEndIndex:c}),A=M.length,E,C,$;E2(x.domain,y,b)&&(E=Tl(x.domain,null,y),p&&(b==="number"||O!=="auto")&&($=un(M,w,"category")));var N=vw(b);if(!E||E.length===0){var k,q=(k=x.domain)!==null&&k!==void 0?k:N;if(w){if(E=un(M,w,b),b==="category"&&p){var B=k1(E);g&&B?(C=E,E=Ji(0,A)):g||(E=mm(q,E,v).reduce(function(H,X){return H.indexOf(X)>=0?H:[].concat(Cr(H),[X])},[]))}else if(b==="category")g?E=E.filter(function(H){return H!==""&&!ne(H)}):E=mm(q,E,v).reduce(function(H,X){return H.indexOf(X)>=0||X===""||ne(X)?H:[].concat(Cr(H),[X])},[]);else if(b==="number"){var U=XE(M,i.filter(function(H){var X,se,Se=o in H.props?H.props[o]:(X=H.type.defaultProps)===null||X===void 0?void 0:X[o],ot="hide"in H.props?H.props.hide:(se=H.type.defaultProps)===null||se===void 0?void 0:se.hide;return Se===j&&(S||!ot)}),w,a,f);U&&(E=U)}p&&(b==="number"||O!=="auto")&&($=un(M,w,"category"))}else p?E=Ji(0,A):u&&u[j]&&u[j].hasStack&&b==="number"?E=h==="expand"?[0,1]:px(u[j].stackGroups,s,c):E=fx(M,i.filter(function(H){var X=o in H.props?H.props[o]:H.type.defaultProps[o],se="hide"in H.props?H.props.hide:H.type.defaultProps.hide;return X===j&&(S||!se)}),b,f,!0);if(b==="number")E=af(l,E,j,a,_),q&&(E=Tl(q,E,y));else if(b==="category"&&q){var G=q,W=E.every(function(H){return G.indexOf(H)>=0});W&&(E=G)}}return I(I({},m),{},K({},j,I(I({},x),{},{axisType:a,domain:E,categoricalDomain:$,duplicateDomain:C,originalDomain:(d=x.domain)!==null&&d!==void 0?d:N,isCategorical:p,layout:f})))},{})},iD=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,h=Wa(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=h.length,m=hx(f,a),v=-1;return n.reduce(function(d,x){var b=x.type.defaultProps!==void 0?I(I({},x.type.defaultProps),x.props):x.props,w=b[o],y=vw("number");if(!d[w]){v++;var g;return m?g=Ji(0,p):u&&u[w]&&u[w].hasStack?(g=px(u[w].stackGroups,s,c),g=af(l,g,w,a)):(g=Tl(y,fx(h,n.filter(function(O){var _,S,j=o in O.props?O.props[o]:(_=O.type.defaultProps)===null||_===void 0?void 0:_[o],M="hide"in O.props?O.props.hide:(S=O.type.defaultProps)===null||S===void 0?void 0:S.hide;return j===w&&!M}),"number",f),i.defaultProps.allowDataOverflow),g=af(l,g,w,a)),I(I({},d),{},K({},w,I(I({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ue(Q2,"".concat(a,".").concat(v%2),null),domain:g,originalDomain:y,isCategorical:m,layout:f})))}return d},{})},aD=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),h=Ye(f,a),p={};return h&&h.length?p=nD(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(p=iD(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),p},oD=function(t){var r=St(t),n=dt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:If(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Ui(r,n)}},rb=function(t){var r=t.children,n=t.defaultShowTooltip,i=Re(r,Or),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}},uD=function(t){return!t||!t.length?!1:t.some(function(r){var n=pt(r&&r.type);return n&&n.indexOf("Bar")>=0})},nb=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"}},sD=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,s=u===void 0?{}:u,c=n.width,f=n.height,l=n.children,h=n.margin||{},p=Re(l,Or),m=Re(l,ur),v=Object.keys(s).reduce(function(g,O){var _=s[O],S=_.orientation;return!_.mirror&&!_.hide?I(I({},g),{},K({},S,g[S]+_.width)):g},{left:h.left||0,right:h.right||0}),d=Object.keys(o).reduce(function(g,O){var _=o[O],S=_.orientation;return!_.mirror&&!_.hide?I(I({},g),{},K({},S,Ue(g,"".concat(S))+_.height)):g},{top:h.top||0,bottom:h.bottom||0}),x=I(I({},d),v),b=x.bottom;p&&(x.bottom+=p.props.height||Or.defaultProps.height),m&&r&&(x=GE(x,i,n,r));var w=c-x.left-x.right,y=f-x.top-x.bottom;return I(I({brushBottom:b},x),{},{width:Math.max(w,0),height:Math.max(y,0)})},cD=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},lD=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,s=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,h=function(d,x){var b=x.graphicalItems,w=x.stackGroups,y=x.offset,g=x.updateId,O=x.dataStartIndex,_=x.dataEndIndex,S=d.barSize,j=d.layout,M=d.barGap,A=d.barCategoryGap,E=d.maxBarSize,C=nb(j),$=C.numericAxisName,N=C.cateAxisName,k=uD(b),q=[];return b.forEach(function(B,U){var G=Wa(d.data,{graphicalItems:[B],dataStartIndex:O,dataEndIndex:_}),W=B.type.defaultProps!==void 0?I(I({},B.type.defaultProps),B.props):B.props,H=W.dataKey,X=W.maxBarSize,se=W["".concat($,"Id")],Se=W["".concat(N,"Id")],ot={},Te=s.reduce(function(It,Nt){var Ha=x["".concat(Nt.axisType,"Map")],mh=W["".concat(Nt.axisType,"Id")];Ha&&Ha[mh]||Nt.axisType==="zAxis"||Kt();var gh=Ha[mh];return I(I({},It),{},K(K({},Nt.axisType,gh),"".concat(Nt.axisType,"Ticks"),dt(gh)))},ot),ut=Te[N],F=Te["".concat(N,"Ticks")],V=w&&w[se]&&w[se].hasStack&&oM(B,w[se].stackGroups),Z=pt(B.type).indexOf("Bar")>=0,D=Ui(ut,F),de=[],Q=k&&WE({barSize:S,stackGroups:w,totalSize:cD(Te,N)});if(Z){var me,pe,ke=ne(X)?E:X,st=(me=(pe=Ui(ut,F,!0))!==null&&pe!==void 0?pe:ke)!==null&&me!==void 0?me:0;de=HE({barGap:M,barCategoryGap:A,bandSize:st!==D?st:D,sizeList:Q[Se],maxBarSize:ke}),st!==D&&(de=de.map(function(It){return I(I({},It),{},{position:I(I({},It.position),{},{offset:It.position.offset-st/2})})}))}var ei=B&&B.type&&B.type.getComposedData;ei&&q.push({props:I(I({},ei(I(I({},Te),{},{displayedData:G,props:d,dataKey:H,item:B,bandSize:D,barPosition:de,offset:y,stackedData:V,layout:j,dataStartIndex:O,dataEndIndex:_}))),{},K(K(K({key:B.key||"item-".concat(U)},$,Te[$]),N,Te[N]),"animationId",g)),childIndex:G1(B,d.children),item:B})}),q},p=function(d,x){var b=d.props,w=d.dataStartIndex,y=d.dataEndIndex,g=d.updateId;if(!$d({props:b}))return null;var O=b.children,_=b.layout,S=b.stackOffset,j=b.data,M=b.reverseStackOrder,A=nb(_),E=A.numericAxisName,C=A.cateAxisName,$=Ye(O,n),N=nM(j,$,"".concat(E,"Id"),"".concat(C,"Id"),S,M),k=s.reduce(function(W,H){var X="".concat(H.axisType,"Map");return I(I({},W),{},K({},X,aD(b,I(I({},H),{},{graphicalItems:$,stackGroups:H.axisType===E&&N,dataStartIndex:w,dataEndIndex:y}))))},{}),q=sD(I(I({},k),{},{props:b,graphicalItems:$}),x==null?void 0:x.legendBBox);Object.keys(k).forEach(function(W){k[W]=f(b,k[W],q,W.replace("Map",""),r)});var B=k["".concat(C,"Map")],U=oD(B),G=h(b,I(I({},k),{},{dataStartIndex:w,dataEndIndex:y,updateId:g,graphicalItems:$,stackGroups:N,offset:q}));return I(I({formattedGraphicalItems:G,graphicalItems:$,offset:q,stackGroups:N},U),k)},m=(function(v){function d(x){var b,w,y;return z2(this,d),y=H2(this,d,[x]),K(y,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),K(y,"accessibilityManager",new j2),K(y,"handleLegendBBoxUpdate",function(g){if(g){var O=y.state,_=O.dataStartIndex,S=O.dataEndIndex,j=O.updateId;y.setState(I({legendBBox:g},p({props:y.props,dataStartIndex:_,dataEndIndex:S,updateId:j},I(I({},y.state),{},{legendBBox:g}))))}}),K(y,"handleReceiveSyncEvent",function(g,O,_){if(y.props.syncId===g){if(_===y.eventEmitterSymbol&&typeof y.props.syncMethod!="function")return;y.applySyncEvent(O)}}),K(y,"handleBrushChange",function(g){var O=g.startIndex,_=g.endIndex;if(O!==y.state.dataStartIndex||_!==y.state.dataEndIndex){var S=y.state.updateId;y.setState(function(){return I({dataStartIndex:O,dataEndIndex:_},p({props:y.props,dataStartIndex:O,dataEndIndex:_,updateId:S},y.state))}),y.triggerSyncEvent({dataStartIndex:O,dataEndIndex:_})}}),K(y,"handleMouseEnter",function(g){var O=y.getMouseInfo(g);if(O){var _=I(I({},O),{},{isTooltipActive:!0});y.setState(_),y.triggerSyncEvent(_);var S=y.props.onMouseEnter;J(S)&&S(_,g)}}),K(y,"triggeredAfterMouseMove",function(g){var O=y.getMouseInfo(g),_=O?I(I({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};y.setState(_),y.triggerSyncEvent(_);var S=y.props.onMouseMove;J(S)&&S(_,g)}),K(y,"handleItemMouseEnter",function(g){y.setState(function(){return{isTooltipActive:!0,activeItem:g,activePayload:g.tooltipPayload,activeCoordinate:g.tooltipPosition||{x:g.cx,y:g.cy}}})}),K(y,"handleItemMouseLeave",function(){y.setState(function(){return{isTooltipActive:!1}})}),K(y,"handleMouseMove",function(g){g.persist(),y.throttleTriggeredAfterMouseMove(g)}),K(y,"handleMouseLeave",function(g){y.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};y.setState(O),y.triggerSyncEvent(O);var _=y.props.onMouseLeave;J(_)&&_(O,g)}),K(y,"handleOuterEvent",function(g){var O=H1(g),_=Ue(y.props,"".concat(O));if(O&&J(_)){var S,j;/.*touch.*/i.test(O)?j=y.getMouseInfo(g.changedTouches[0]):j=y.getMouseInfo(g),_((S=j)!==null&&S!==void 0?S:{},g)}}),K(y,"handleClick",function(g){var O=y.getMouseInfo(g);if(O){var _=I(I({},O),{},{isTooltipActive:!0});y.setState(_),y.triggerSyncEvent(_);var S=y.props.onClick;J(S)&&S(_,g)}}),K(y,"handleMouseDown",function(g){var O=y.props.onMouseDown;if(J(O)){var _=y.getMouseInfo(g);O(_,g)}}),K(y,"handleMouseUp",function(g){var O=y.props.onMouseUp;if(J(O)){var _=y.getMouseInfo(g);O(_,g)}}),K(y,"handleTouchMove",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&y.throttleTriggeredAfterMouseMove(g.changedTouches[0])}),K(y,"handleTouchStart",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&y.handleMouseDown(g.changedTouches[0])}),K(y,"handleTouchEnd",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&y.handleMouseUp(g.changedTouches[0])}),K(y,"triggerSyncEvent",function(g){y.props.syncId!==void 0&&Lc.emit(Fc,y.props.syncId,g,y.eventEmitterSymbol)}),K(y,"applySyncEvent",function(g){var O=y.props,_=O.layout,S=O.syncMethod,j=y.state.updateId,M=g.dataStartIndex,A=g.dataEndIndex;if(g.dataStartIndex!==void 0||g.dataEndIndex!==void 0)y.setState(I({dataStartIndex:M,dataEndIndex:A},p({props:y.props,dataStartIndex:M,dataEndIndex:A,updateId:j},y.state)));else if(g.activeTooltipIndex!==void 0){var E=g.chartX,C=g.chartY,$=g.activeTooltipIndex,N=y.state,k=N.offset,q=N.tooltipTicks;if(!k)return;if(typeof S=="function")$=S(q,g);else if(S==="value"){$=-1;for(var B=0;B<q.length;B++)if(q[B].value===g.activeLabel){$=B;break}}var U=I(I({},k),{},{x:k.left,y:k.top}),G=Math.min(E,U.x+U.width),W=Math.min(C,U.y+U.height),H=q[$]&&q[$].value,X=sf(y.state,y.props.data,$),se=q[$]?{x:_==="horizontal"?q[$].coordinate:G,y:_==="horizontal"?W:q[$].coordinate}:pw;y.setState(I(I({},g),{},{activeLabel:H,activeCoordinate:se,activePayload:X,activeTooltipIndex:$}))}else y.setState(g)}),K(y,"renderCursor",function(g){var O,_=y.state,S=_.isTooltipActive,j=_.activeCoordinate,M=_.activePayload,A=_.offset,E=_.activeTooltipIndex,C=_.tooltipAxisBandSize,$=y.getTooltipEventType(),N=(O=g.props.active)!==null&&O!==void 0?O:S,k=y.props.layout,q=g.key||"_recharts-cursor";return T.createElement(k2,{key:q,activeCoordinate:j,activePayload:M,activeTooltipIndex:E,chartName:r,element:g,isActive:N,layout:k,offset:A,tooltipAxisBandSize:C,tooltipEventType:$})}),K(y,"renderPolarAxis",function(g,O,_){var S=Ue(g,"type.axisType"),j=Ue(y.state,"".concat(S,"Map")),M=g.type.defaultProps,A=M!==void 0?I(I({},M),g.props):g.props,E=j&&j[A["".concat(S,"Id")]];return R.cloneElement(g,I(I({},E),{},{className:ie(S,E.className),key:g.key||"".concat(O,"-").concat(_),ticks:dt(E,!0)}))}),K(y,"renderPolarGrid",function(g){var O=g.props,_=O.radialLines,S=O.polarAngles,j=O.polarRadius,M=y.state,A=M.radiusAxisMap,E=M.angleAxisMap,C=St(A),$=St(E),N=$.cx,k=$.cy,q=$.innerRadius,B=$.outerRadius;return R.cloneElement(g,{polarAngles:Array.isArray(S)?S:dt($,!0).map(function(U){return U.coordinate}),polarRadius:Array.isArray(j)?j:dt(C,!0).map(function(U){return U.coordinate}),cx:N,cy:k,innerRadius:q,outerRadius:B,key:g.key||"polar-grid",radialLines:_})}),K(y,"renderLegend",function(){var g=y.state.formattedGraphicalItems,O=y.props,_=O.children,S=O.width,j=O.height,M=y.props.margin||{},A=S-(M.left||0)-(M.right||0),E=cx({children:_,formattedGraphicalItems:g,legendWidth:A,legendContent:c});if(!E)return null;var C=E.item,$=Qg(E,D2);return R.cloneElement(C,I(I({},$),{},{chartWidth:S,chartHeight:j,margin:M,onBBoxUpdate:y.handleLegendBBoxUpdate}))}),K(y,"renderTooltip",function(){var g,O=y.props,_=O.children,S=O.accessibilityLayer,j=Re(_,Je);if(!j)return null;var M=y.state,A=M.isTooltipActive,E=M.activeCoordinate,C=M.activePayload,$=M.activeLabel,N=M.offset,k=(g=j.props.active)!==null&&g!==void 0?g:A;return R.cloneElement(j,{viewBox:I(I({},N),{},{x:N.left,y:N.top}),active:k,label:$,payload:k?C:[],coordinate:E,accessibilityLayer:S})}),K(y,"renderBrush",function(g){var O=y.props,_=O.margin,S=O.data,j=y.state,M=j.offset,A=j.dataStartIndex,E=j.dataEndIndex,C=j.updateId;return R.cloneElement(g,{key:g.key||"_recharts-brush",onChange:li(y.handleBrushChange,g.props.onChange),data:S,x:L(g.props.x)?g.props.x:M.left,y:L(g.props.y)?g.props.y:M.top+M.height+M.brushBottom-(_.bottom||0),width:L(g.props.width)?g.props.width:M.width,startIndex:A,endIndex:E,updateId:"brush-".concat(C)})}),K(y,"renderReferenceElement",function(g,O,_){if(!g)return null;var S=y,j=S.clipPathId,M=y.state,A=M.xAxisMap,E=M.yAxisMap,C=M.offset,$=g.type.defaultProps||{},N=g.props,k=N.xAxisId,q=k===void 0?$.xAxisId:k,B=N.yAxisId,U=B===void 0?$.yAxisId:B;return R.cloneElement(g,{key:g.key||"".concat(O,"-").concat(_),xAxis:A[q],yAxis:E[U],viewBox:{x:C.left,y:C.top,width:C.width,height:C.height},clipPathId:j})}),K(y,"renderActivePoints",function(g){var O=g.item,_=g.activePoint,S=g.basePoint,j=g.childIndex,M=g.isRange,A=[],E=O.props.key,C=O.item.type.defaultProps!==void 0?I(I({},O.item.type.defaultProps),O.item.props):O.item.props,$=C.activeDot,N=C.dataKey,k=I(I({index:j,dataKey:N,cx:_.x,cy:_.y,r:4,fill:oh(O.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},te($,!1)),mi($));return A.push(d.renderActiveDot($,k,"".concat(E,"-activePoint-").concat(j))),S?A.push(d.renderActiveDot($,I(I({},k),{},{cx:S.x,cy:S.y}),"".concat(E,"-basePoint-").concat(j))):M&&A.push(null),A}),K(y,"renderGraphicChild",function(g,O,_){var S=y.filterFormatItem(g,O,_);if(!S)return null;var j=y.getTooltipEventType(),M=y.state,A=M.isTooltipActive,E=M.tooltipAxis,C=M.activeTooltipIndex,$=M.activeLabel,N=y.props.children,k=Re(N,Je),q=S.props,B=q.points,U=q.isRange,G=q.baseLine,W=S.item.type.defaultProps!==void 0?I(I({},S.item.type.defaultProps),S.item.props):S.item.props,H=W.activeDot,X=W.hide,se=W.activeBar,Se=W.activeShape,ot=!!(!X&&A&&k&&(H||se||Se)),Te={};j!=="axis"&&k&&k.props.trigger==="click"?Te={onClick:li(y.handleItemMouseEnter,g.props.onClick)}:j!=="axis"&&(Te={onMouseLeave:li(y.handleItemMouseLeave,g.props.onMouseLeave),onMouseEnter:li(y.handleItemMouseEnter,g.props.onMouseEnter)});var ut=R.cloneElement(g,I(I({},S.props),Te));function F(Nt){return typeof E.dataKey=="function"?E.dataKey(Nt.payload):null}if(ot)if(C>=0){var V,Z;if(E.dataKey&&!E.allowDuplicatedCategory){var D=typeof E.dataKey=="function"?F:"payload.".concat(E.dataKey.toString());V=Kc(B,D,$),Z=U&&G&&Kc(G,D,$)}else V=B==null?void 0:B[C],Z=U&&G&&G[C];if(Se||se){var de=g.props.activeIndex!==void 0?g.props.activeIndex:C;return[R.cloneElement(g,I(I(I({},S.props),Te),{},{activeIndex:de})),null,null]}if(!ne(V))return[ut].concat(Cr(y.renderActivePoints({item:S,activePoint:V,basePoint:Z,childIndex:C,isRange:U})))}else{var Q,me=(Q=y.getItemByXY(y.state.activeCoordinate))!==null&&Q!==void 0?Q:{graphicalItem:ut},pe=me.graphicalItem,ke=pe.item,st=ke===void 0?g:ke,ei=pe.childIndex,It=I(I(I({},S.props),Te),{},{activeIndex:ei});return[R.cloneElement(st,It),null,null]}return U?[ut,null,null]:[ut,null]}),K(y,"renderCustomized",function(g,O,_){return R.cloneElement(g,I(I({key:"recharts-customized-".concat(_)},y.props),y.state))}),K(y,"renderMap",{CartesianGrid:{handler:vi,once:!0},ReferenceArea:{handler:y.renderReferenceElement},ReferenceLine:{handler:vi},ReferenceDot:{handler:y.renderReferenceElement},XAxis:{handler:vi},YAxis:{handler:vi},Brush:{handler:y.renderBrush,once:!0},Bar:{handler:y.renderGraphicChild},Line:{handler:y.renderGraphicChild},Area:{handler:y.renderGraphicChild},Radar:{handler:y.renderGraphicChild},RadialBar:{handler:y.renderGraphicChild},Scatter:{handler:y.renderGraphicChild},Pie:{handler:y.renderGraphicChild},Funnel:{handler:y.renderGraphicChild},Tooltip:{handler:y.renderCursor,once:!0},PolarGrid:{handler:y.renderPolarGrid,once:!0},PolarAngleAxis:{handler:y.renderPolarAxis},PolarRadiusAxis:{handler:y.renderPolarAxis},Customized:{handler:y.renderCustomized}}),y.clipPathId="".concat((b=x.id)!==null&&b!==void 0?b:ya("recharts"),"-clip"),y.throttleTriggeredAfterMouseMove=s0(y.triggeredAfterMouseMove,(w=x.throttleDelay)!==null&&w!==void 0?w:1e3/60),y.state={},y}return X2(d,v),W2(d,[{key:"componentDidMount",value:function(){var b,w;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,w=b.children,y=b.data,g=b.height,O=b.layout,_=Re(w,Je);if(_){var S=_.props.defaultIndex;if(!(typeof S!="number"||S<0||S>this.state.tooltipTicks.length-1)){var j=this.state.tooltipTicks[S]&&this.state.tooltipTicks[S].value,M=sf(this.state,y,S,j),A=this.state.tooltipTicks[S].coordinate,E=(this.state.offset.top+g)/2,C=O==="horizontal",$=C?{x:A,y:E}:{y:A,x:E},N=this.state.formattedGraphicalItems.find(function(q){var B=q.item;return B.type.name==="Scatter"});N&&($=I(I({},$),N.props.points[S].tooltipPosition),M=N.props.points[S].tooltipPayload);var k={activeTooltipIndex:S,isTooltipActive:!0,activeLabel:j,activePayload:M,activeCoordinate:$};this.setState(k),this.renderCursor(_),this.accessibilityManager.setIndex(S)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var y,g;this.accessibilityManager.setDetails({offset:{left:(y=this.props.margin.left)!==null&&y!==void 0?y:0,top:(g=this.props.margin.top)!==null&&g!==void 0?g:0}})}return null}},{key:"componentDidUpdate",value:function(b){Vc([Re(b.children,Je)],[Re(this.props.children,Je)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=Re(this.props.children,Je);if(b&&typeof b.props.shared=="boolean"){var w=b.props.shared?"axis":"item";return u.indexOf(w)>=0?w:a}return a}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var w=this.container,y=w.getBoundingClientRect(),g=IA(y),O={chartX:Math.round(b.pageX-g.left),chartY:Math.round(b.pageY-g.top)},_=y.width/w.offsetWidth||1,S=this.inRange(O.chartX,O.chartY,_);if(!S)return null;var j=this.state,M=j.xAxisMap,A=j.yAxisMap,E=this.getTooltipEventType();if(E!=="axis"&&M&&A){var C=St(M).scale,$=St(A).scale,N=C&&C.invert?C.invert(O.chartX):null,k=$&&$.invert?$.invert(O.chartY):null;return I(I({},O),{},{xValue:N,yValue:k})}var q=tb(this.state,this.props.data,this.props.layout,S);return q?I(I({},O),q):null}},{key:"inRange",value:function(b,w){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=this.props.layout,O=b/y,_=w/y;if(g==="horizontal"||g==="vertical"){var S=this.state.offset,j=O>=S.left&&O<=S.left+S.width&&_>=S.top&&_<=S.top+S.height;return j?{x:O,y:_}:null}var M=this.state,A=M.angleAxisMap,E=M.radiusAxisMap;if(A&&E){var C=St(A);return xm({x:O,y:_},C)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,w=this.getTooltipEventType(),y=Re(b,Je),g={};y&&w==="axis"&&(y.props.trigger==="click"?g={onClick:this.handleClick}:g={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var O=mi(this.props,this.handleOuterEvent);return I(I({},O),g)}},{key:"addListener",value:function(){Lc.on(Fc,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Lc.removeListener(Fc,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,w,y){for(var g=this.state.formattedGraphicalItems,O=0,_=g.length;O<_;O++){var S=g[O];if(S.item===b||S.props.key===b.key||w===pt(S.item.type)&&y===S.childIndex)return S}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,w=this.state.offset,y=w.left,g=w.top,O=w.height,_=w.width;return T.createElement("defs",null,T.createElement("clipPath",{id:b},T.createElement("rect",{x:y,y:g,height:O,width:_})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(w,y){var g=Jg(y,2),O=g[0],_=g[1];return I(I({},w),{},K({},O,_.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(w,y){var g=Jg(y,2),O=g[0],_=g[1];return I(I({},w),{},K({},O,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var w;return(w=this.state.xAxisMap)===null||w===void 0||(w=w[b])===null||w===void 0?void 0:w.scale}},{key:"getYScaleByAxisId",value:function(b){var w;return(w=this.state.yAxisMap)===null||w===void 0||(w=w[b])===null||w===void 0?void 0:w.scale}},{key:"getItemByXY",value:function(b){var w=this.state,y=w.formattedGraphicalItems,g=w.activeItem;if(y&&y.length)for(var O=0,_=y.length;O<_;O++){var S=y[O],j=S.props,M=S.item,A=M.type.defaultProps!==void 0?I(I({},M.type.defaultProps),M.props):M.props,E=pt(M.type);if(E==="Bar"){var C=(j.data||[]).find(function(q){return D$(b,q)});if(C)return{graphicalItem:S,payload:C}}else if(E==="RadialBar"){var $=(j.data||[]).find(function(q){return xm(b,q)});if($)return{graphicalItem:S,payload:$}}else if(ka(S,g)||Da(S,g)||qn(S,g)){var N=PI({graphicalItem:S,activeTooltipItem:g,itemData:A.data}),k=A.activeIndex===void 0?N:A.activeIndex;return{graphicalItem:I(I({},S),{},{childIndex:k}),payload:qn(S,g)?A.data[N]:S.props.data[N]}}}return null}},{key:"render",value:function(){var b=this;if(!$d(this))return null;var w=this.props,y=w.children,g=w.className,O=w.width,_=w.height,S=w.style,j=w.compact,M=w.title,A=w.desc,E=Qg(w,R2),C=te(E,!1);if(j)return T.createElement(Dg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement(Zc,cn({},C,{width:O,height:_,title:M,desc:A}),this.renderClipPath(),Nd(y,this.renderMap)));if(this.props.accessibilityLayer){var $,N;C.tabIndex=($=this.props.tabIndex)!==null&&$!==void 0?$:0,C.role=(N=this.props.role)!==null&&N!==void 0?N:"application",C.onKeyDown=function(q){b.accessibilityManager.keyboardEvent(q)},C.onFocus=function(){b.accessibilityManager.focus()}}var k=this.parseEventsOfWrapper();return T.createElement(Dg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement("div",cn({className:ie("recharts-wrapper",g),style:I({position:"relative",cursor:"default",width:O,height:_},S)},k,{ref:function(B){b.container=B}}),T.createElement(Zc,cn({},C,{width:O,height:_,title:M,desc:A,style:eD}),this.renderClipPath(),Nd(y,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(R.Component);return K(m,"displayName",r),K(m,"defaultProps",I({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),K(m,"getDerivedStateFromProps",function(v,d){var x=v.dataKey,b=v.data,w=v.children,y=v.width,g=v.height,O=v.layout,_=v.stackOffset,S=v.margin,j=d.dataStartIndex,M=d.dataEndIndex;if(d.updateId===void 0){var A=rb(v);return I(I(I({},A),{},{updateId:0},p(I(I({props:v},A),{},{updateId:0}),d)),{},{prevDataKey:x,prevData:b,prevWidth:y,prevHeight:g,prevLayout:O,prevStackOffset:_,prevMargin:S,prevChildren:w})}if(x!==d.prevDataKey||b!==d.prevData||y!==d.prevWidth||g!==d.prevHeight||O!==d.prevLayout||_!==d.prevStackOffset||!or(S,d.prevMargin)){var E=rb(v),C={chartX:d.chartX,chartY:d.chartY,isTooltipActive:d.isTooltipActive},$=I(I({},tb(d,b,O)),{},{updateId:d.updateId+1}),N=I(I(I({},E),C),$);return I(I(I({},N),p(I({props:v},N),d)),{},{prevDataKey:x,prevData:b,prevWidth:y,prevHeight:g,prevLayout:O,prevStackOffset:_,prevMargin:S,prevChildren:w})}if(!Vc(w,d.prevChildren)){var k,q,B,U,G=Re(w,Or),W=G&&(k=(q=G.props)===null||q===void 0?void 0:q.startIndex)!==null&&k!==void 0?k:j,H=G&&(B=(U=G.props)===null||U===void 0?void 0:U.endIndex)!==null&&B!==void 0?B:M,X=W!==j||H!==M,se=!ne(b),Se=se&&!X?d.updateId:d.updateId+1;return I(I({updateId:Se},p(I(I({props:v},d),{},{updateId:Se,dataStartIndex:W,dataEndIndex:H}),d)),{},{prevChildren:w,dataStartIndex:W,dataEndIndex:H})}return null}),K(m,"renderActiveDot",function(v,d,x){var b;return R.isValidElement(v)?b=R.cloneElement(v,d):J(v)?b=v(d):b=T.createElement(Tx,d),T.createElement(Oe,{className:"recharts-active-dot",key:x},b)}),function(d){return T.createElement(m,d)}},fD=lD({chartName:"BarChart",GraphicalChild:Jt,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:za},{axisType:"yAxis",AxisComp:Ua}],formatAxisMap:ON});const hD={light:"",dark:".dark"},yw=R.createContext(null);function mw(){const e=R.useContext(yw);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const gw=R.forwardRef(({id:e,className:t,children:r,config:n,...i},a)=>{const o=R.useId(),u=`chart-${e||o.replace(/:/g,"")}`;return P.jsx(yw.Provider,{value:{config:n},children:P.jsxs("div",{"data-chart":u,ref:a,className:lt("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...i,children:[P.jsx(dD,{id:u,config:n}),P.jsx(PA,{children:r})]})})});gw.displayName="Chart";const dD=({id:e,config:t})=>{const r=Object.entries(t).filter(([n,i])=>i.theme||i.color);return r.length?P.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(hD).map(([n,i])=>` 79${i} [data-chart=${e}] { 80${r.map(([a,o])=>{var s;const u=((s=o.theme)==null?void 0:s[n])||o.color;return u?` --color-${a}: ${u};`:null}).join(` 81`)} 82} 83`).join(` 84`)}}):null},pD=Je,vD=R.forwardRef(({active:e,payload:t,className:r,indicator:n="dot",hideLabel:i=!1,hideIndicator:a=!1,label:o,labelFormatter:u,labelClassName:s,formatter:c,color:f,nameKey:l,labelKey:h},p)=>{const{config:m}=mw(),v=R.useMemo(()=>{var g;if(i||!(t!=null&&t.length))return null;const[x]=t,b=`${h||x.dataKey||x.name||"value"}
84`,w=cf(m,x,b),y=!h&&typeof o=="string"?((g=m[o])==null?void 0:g.label)||o:w==null?void 0:w.label;return u?P.jsx("div",{className:lt("font-medium",s),children:u(y,t)}):y?P.jsx("div",{className:lt("font-medium",s),children:y}):null},[o,u,t,i,s,m,h]);if(!e||!(t!=null&&t.length))return null;const d=t.length===1&&n!=="dot";return P.jsxs("div",{ref:p,className:lt("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",r),children:[d?null:v,P.jsx("div",{className:"grid gap-1.5",children:t.map((x,b)=>{const w=`${l||x.name||x.dataKey||"value"}`,y=cf(m,x,w),g=f||x.payload.fill||x.color;return P.jsx("div",{className:lt("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",n==="dot"&&"items-center"),children:c&&(x==null?void 0:x.value)!==void 0&&x.name?c(x.value,x.name,x,b,x.payload):P.jsxs(P.Fragment,{children:[y!=null&&y.icon?P.jsx(y.icon,{}):!a&&P.jsx("div",{className:lt("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":d&&n==="dashed"}),style:{"--color-bg":g,"--color-border":g}}),P.jsxs("div",{className:lt("flex flex-1 justify-between leading-none",d?"items-end":"items-center"),children:[P.jsxs("div",{className:"grid gap-1.5",children:[d?v:null,P.jsx("span",{className:"text-muted-foreground",children:(y==null?void 0:y.label)||x.name})]}),x.value&&P.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:x.value.toLocaleString()})]})]})},x.dataKey)})})]})});vD.displayName="ChartTooltip";const yD=R.forwardRef(({className:e,hideIcon:t=!1,payload:r,verticalAlign:n="bottom",nameKey:i},a)=>{const{config:o}=mw();return r!=null&&r.length?P.jsx("div",{ref:a,className:lt("flex items-center justify-center gap-4",n==="top"?"pb-3":"pt-3",e),children:r.map(u=>{const s=`${i||u.dataKey||"value"}`,c=cf(o,u,s);return P.jsxs("div",{className:lt("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[c!=null&&c.icon&&!t?P.jsx(c.icon,{}):P.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:u.color}}),c==null?void 0:c.label]},u.value)})}):null});yD.displayName="ChartLegend";function cf(e,t,r){if(typeof t!="object"||t===null)return;const n="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let i=r;return r in t&&typeof t[r]=="string"?i=t[r]:n&&r in n&&typeof n[r]=="string"&&(i=n[r]),i in e?e[i]:e[r]}function mD(){const{allArquivos:e,isLoading:t}=ub(),[r,n]=R.useState([]);R.useEffect(()=>{if(e&&e.length>0){const s=new Date,c=Array.from({length:14},(f,l)=>{const h=new Date(s);h.setDate(h.getDate()-(14-l-1));const p=e.reduce((d,x)=>d+x.size/(1024*1024*10),0),m=Math.random()*2+.5,v=p*m;return{data:h.toISOString().split("T")[0],egress:v.toFixed(2)}});c.length>7&&(c[7].egress=(Number(c[7].egress)*10).toFixed(2)),n(c)}},[e]);const i=r.reduce((u,s)=>u+Number(s.egress),0).toFixed(2),o=(i/(r.length||1)*30).toFixed(2);return t?P.jsxs(wh,{children:[P.jsxs(Oh,{children:[P.jsx(nn,{className:"h-8 w-[200px]"}),P.jsx(nn,{className:"h-4 w-[300px]"})]}),P.jsx(_h,{children:P.jsx(nn,{className:"h-[200px] w-full"})})]}):P.jsxs(wh,{children:[P.jsxs(Oh,{children:[P.jsxs("div",{className:"flex items-center justify-between",children:[P.jsx(Hw,{children:"Consumo de Egress"}),P.jsx(ff,{children:P.jsxs(en,{children:[P.jsx(tn,{asChild:!0,children:P.jsx(hf,{className:"h-4 w-4 text-muted-foreground cursor-help"})}),P.jsx(rn,{className:"max-w-sm",children:P.jsx("p",{children:"O Storage Egress representa a quantidade de dados que saem do servidor quando seus arquivos são baixados. Quanto maiores os arquivos e mais frequentes os downloads, maior será o consumo."})})]})})]}),P.jsxs(Gw,{children:["Total estimado no perÃodo: ",i," GB | Projeção mensal: ",o," GB"]})]}),P.jsx(_h,{children:P.jsx(gw,{className:"h-[200px]",config:{"Egress (GB)":{color:"#009C3B"}},children:P.jsxs(fD,{data:r,children:[P.jsx(rw,{strokeDasharray:"3 3"}),P.jsx(za,{dataKey:"data"}),P.jsx(Ua,{}),P.jsx(pD,{}),P.jsx(Jt,{dataKey:"egress",name:"Egress (GB)",fill:"#009C3B"})]})})})]})}function KD(){const[e,t]=R.useState(0),r=ab(),{user:n}=lf(),i=(o,u)=>{lr.success(`Arquivo "${u}" enviado com sucesso!`),console.log("URL do arquivo:",o),r.invalidateQueries({queryKey:["arquivos"]}),r.invalidateQueries({queryKey:["arquivos-all"]})},a=o=>{lr.error(o)};return P.jsx(ww,{children:P.jsxs("div",{className:"space-y-6",children:[P.jsxs("div",{children:[P.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:"Arquivos"}),P.jsx("p",{className:"text-muted-foreground mt-2",children:"Gerencie seus arquivos PDF e DOCX armazenados no sistema."})]}),P.jsxs(Uc,{className:"bg-blue-50 border-blue-200",children:[P.jsx(hf,{className:"h-4 w-4 text-blue-500"}),P.jsx(Wc,{className:"text-blue-700",children:"Sobre o Storage Egress"}),P.jsx(Hc,{className:"text-blue-600",children:"O Storage Egress (tráfego de saÃda) aumenta quando arquivos são baixados com frequência. Para reduzir o consumo, considere comprimir seus arquivos antes do upload e baixar apenas quando necessário."})]}),P.jsx(mD,{}),P.jsxs("div",{className:"grid gap-8",children:[P.jsxs("div",{className:"space-y-4",children:[P.jsx("h2",{className:"text-xl font-semibold",children:"Upload de Arquivos"}),P.jsx(Kw,{onSuccess:i,onError:a,maxSizeMB:20})]}),P.jsxs("div",{className:"space-y-4",children:[P.jsx("h2",{className:"text-xl font-semibold",children:"Seus Arquivos"}),P.jsx(Xw,{})]})]})]})})}export{KD as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.