orbitchat 3.11.0 → 3.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/assets/{ChartRenderer-6ita77oC.js → ChartRenderer-OBjJRngd.js} +3 -3
  2. package/dist/assets/{MermaidRenderer-B_R73JsW.js → MermaidRenderer-CPPq3mmd.js} +6 -6
  3. package/dist/assets/{MusicRenderer-CPyadT-W.js → MusicRenderer-ZqWcBGEP.js} +4 -4
  4. package/dist/assets/SVGRenderer-C23bZ16J.js +6 -0
  5. package/dist/assets/architectureDiagram-3BPJPVTR-1DcnIrTf.js +36 -0
  6. package/dist/assets/{blockDiagram-GPEHLZMM-CHYDm_Lr.js → blockDiagram-GPEHLZMM-C3O1Y3wQ.js} +2 -2
  7. package/dist/assets/{c4Diagram-AAUBKEIU-B_6S0PMo.js → c4Diagram-AAUBKEIU-7ulfaeio.js} +2 -2
  8. package/dist/assets/channel-DIz7au4Z.js +1 -0
  9. package/dist/assets/{chunk-2J33WTMH-BV3EfJJt.js → chunk-2J33WTMH-CtTVan3g.js} +1 -1
  10. package/dist/assets/{chunk-4BX2VUAB-BcKFg9ac.js → chunk-4BX2VUAB-D9LhpL0M.js} +1 -1
  11. package/dist/assets/{chunk-55IACEB6-CxpA0yYo.js → chunk-55IACEB6-o4c6_uWz.js} +1 -1
  12. package/dist/assets/{chunk-727SXJPM-C6ztUlOi.js → chunk-727SXJPM-qMeBxfHH.js} +1 -1
  13. package/dist/assets/{chunk-AQP2D5EJ-D0QacfL_.js → chunk-AQP2D5EJ-Bwo9IL4J.js} +1 -1
  14. package/dist/assets/{chunk-FMBD7UC4-BpZP0Y5U.js → chunk-FMBD7UC4-BhdowZ3g.js} +1 -1
  15. package/dist/assets/{chunk-ND2GUHAM-CIMv0vkh.js → chunk-ND2GUHAM-DHj38vtV.js} +1 -1
  16. package/dist/assets/{chunk-QZHKN3VN-BLoQ7vNo.js → chunk-QZHKN3VN-BQlh1k-T.js} +1 -1
  17. package/dist/assets/classDiagram-4FO5ZUOK-B_41sQFe.js +1 -0
  18. package/dist/assets/classDiagram-v2-Q7XG4LA2-B_41sQFe.js +1 -0
  19. package/dist/assets/cose-bilkent-S5V4N54A-DIlweU0c.js +1 -0
  20. package/dist/assets/{cynefin-VYW2F7L2-CPNTSJVR.js → cynefin-VYW2F7L2-COfqkbsu.js} +1 -1
  21. package/dist/assets/dagre-BM42HDAG-Dg1vRQoJ.js +4 -0
  22. package/dist/assets/diagram-2AECGRRQ-5qMJzPlj.js +43 -0
  23. package/dist/assets/diagram-5GNKFQAL-BtLOXreJ.js +10 -0
  24. package/dist/assets/{diagram-KO2AKTUF-CqwtJ8Ej.js → diagram-KO2AKTUF-CItPbbPJ.js} +2 -2
  25. package/dist/assets/diagram-LMA3HP47-C-rMj79O.js +24 -0
  26. package/dist/assets/diagram-OG6HWLK6-CsH38nnV.js +24 -0
  27. package/dist/assets/{docx-preview-CMb3nQfR.js → docx-preview-DehBmhog.js} +1 -1
  28. package/dist/assets/{erDiagram-TEJ5UH35-qNkhON0R.js → erDiagram-TEJ5UH35-D4EO2CJ1.js} +2 -2
  29. package/dist/assets/{flowDiagram-I6XJVG4X-BwQGcinJ.js → flowDiagram-I6XJVG4X-DgOIMYGk.js} +2 -2
  30. package/dist/assets/{ganttDiagram-6RSMTGT7-B-WPdey_.js → ganttDiagram-6RSMTGT7-B1I1ERYN.js} +2 -2
  31. package/dist/assets/gitGraphDiagram-PVQCEYII-BbxU9vdc.js +106 -0
  32. package/dist/assets/index-BNiRF5ts.js +355 -0
  33. package/dist/assets/{index-C0slAIYD.js → index-Bm2RXT20.js} +1 -1
  34. package/dist/assets/index-Dn6drGB8.css +1 -0
  35. package/dist/assets/infoDiagram-5YYISTIA-BSCHNtfq.js +2 -0
  36. package/dist/assets/{ishikawaDiagram-YF4QCWOH-Btfoip0T.js → ishikawaDiagram-YF4QCWOH-D3EauiiJ.js} +2 -2
  37. package/dist/assets/{journeyDiagram-JHISSGLW-MVzNSI30.js → journeyDiagram-JHISSGLW-BS1VWAga.js} +2 -2
  38. package/dist/assets/{kanban-definition-UN3LZRKU-BnLLL1jo.js → kanban-definition-UN3LZRKU-ClAYLC3L.js} +5 -5
  39. package/dist/assets/locales-4Dy5QB82.js +1 -0
  40. package/dist/assets/{mindmap-definition-RKZ34NQL-tn7nCqb-.js → mindmap-definition-RKZ34NQL-BkDMrGTA.js} +2 -2
  41. package/dist/assets/{papaparse.min-BWA-Odol.js → papaparse.min-D13ujVVP.js} +1 -1
  42. package/dist/assets/{pieDiagram-4H26LBE5-CHgnNebB.js → pieDiagram-4H26LBE5-BOj8AQSK.js} +2 -2
  43. package/dist/assets/{quadrantDiagram-W4KKPZXB-Bm7UohUT.js → quadrantDiagram-W4KKPZXB-BM7sUdWh.js} +2 -2
  44. package/dist/assets/{requirementDiagram-4Y6WPE33-BP-byfJK.js → requirementDiagram-4Y6WPE33-D2pnnYZP.js} +2 -2
  45. package/dist/assets/{sankeyDiagram-5OEKKPKP-CxvcmFYi.js → sankeyDiagram-5OEKKPKP-D3Z4Gd94.js} +2 -2
  46. package/dist/assets/{sequenceDiagram-3UESZ5HK-BFEVEsXC.js → sequenceDiagram-3UESZ5HK-DE73ZFHe.js} +2 -2
  47. package/dist/assets/stateDiagram-AJRCARHV-C7CGkF3t.js +1 -0
  48. package/dist/assets/stateDiagram-v2-BHNVJYJU-DHQUbGB3.js +1 -0
  49. package/dist/assets/{timeline-definition-PNZ67QCA-IXjMR4fY.js → timeline-definition-PNZ67QCA-xIsXJSbZ.js} +2 -2
  50. package/dist/assets/{vendor-auth-BWxE55Ta.js → vendor-auth-aD_bwYde.js} +1 -1
  51. package/dist/assets/vendor-markdown-Cy_-N5ZX.js +291 -0
  52. package/dist/assets/vendor-markdown-dRWncRqa.css +1 -0
  53. package/dist/assets/vendor-react-BbEy7z12.js +49 -0
  54. package/dist/assets/{vendor-syntax-DG6Vo7Ci.js → vendor-syntax-INF7-xC_.js} +9 -9
  55. package/dist/assets/{vennDiagram-CIIHVFJN-DznHQ1BW.js → vennDiagram-CIIHVFJN-a62PVgzJ.js} +2 -2
  56. package/dist/assets/{wardleyDiagram-YWT4CUSO-BV1onbUZ.js → wardleyDiagram-YWT4CUSO-DDy1YaOr.js} +2 -2
  57. package/dist/assets/{xychartDiagram-2RQKCTM6-45qjdQfn.js → xychartDiagram-2RQKCTM6-6XfTk_6y.js} +2 -2
  58. package/dist/index.html +8 -6
  59. package/package.json +1 -1
  60. package/dist/assets/SVGRenderer-Cchy5MKU.js +0 -6
  61. package/dist/assets/architectureDiagram-3BPJPVTR-Bz1EN93N.js +0 -36
  62. package/dist/assets/channel-CWHSY5eE.js +0 -1
  63. package/dist/assets/classDiagram-4FO5ZUOK-BwRqrNXe.js +0 -1
  64. package/dist/assets/classDiagram-v2-Q7XG4LA2-BwRqrNXe.js +0 -1
  65. package/dist/assets/cose-bilkent-S5V4N54A-mbAzpJrA.js +0 -1
  66. package/dist/assets/dagre-BM42HDAG-BQ7-MHMw.js +0 -4
  67. package/dist/assets/diagram-2AECGRRQ-C0ZixFtN.js +0 -43
  68. package/dist/assets/diagram-5GNKFQAL-DBgq4hcl.js +0 -10
  69. package/dist/assets/diagram-LMA3HP47-D6J87aBh.js +0 -24
  70. package/dist/assets/diagram-OG6HWLK6-Bf54QS67.js +0 -24
  71. package/dist/assets/gitGraphDiagram-PVQCEYII-DFG0aAjb.js +0 -106
  72. package/dist/assets/index-DWeVNozJ.js +0 -379
  73. package/dist/assets/index-UF7Fwxkp.css +0 -1
  74. package/dist/assets/infoDiagram-5YYISTIA-C02VmOAb.js +0 -2
  75. package/dist/assets/stateDiagram-AJRCARHV-DEYpacKC.js +0 -1
  76. package/dist/assets/stateDiagram-v2-BHNVJYJU-BBm-kMbL.js +0 -1
  77. package/dist/assets/vendor-markdown-BRX1CUPf.js +0 -307
  78. package/dist/assets/vendor-react-BAJBiXxk.js +0 -9
@@ -1,4 +1,4 @@
1
- var N0=Object.defineProperty;var _0=(e,t,r)=>t in e?N0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Si=(e,t,r)=>_0(e,typeof t!="symbol"?t+"":t,r);import{r as f,a as qp,g as B0,f as z0,j}from"./vendor-markdown-BRX1CUPf.js";import{c as K0,e as W0}from"./graphExportUtils-DrqBjeAI.js";import{r as F0,a as ss,u as V0}from"./index-DWeVNozJ.js";import{w as Xp,b as De,al as cs,aq as H0,ar as G0,Q as Yp,l as Zp,t as Fo,d as Mt,p as hu,s as Xi,a as Jp,a5 as Rn,n as xd,as as U0,a6 as q0,a8 as X0,ac as Vo,a9 as Y0,ad as Z0,a7 as J0,q as Q0,a4 as eA,at as tA,ab as rA,ae as nA,af as aA,ag as iA,ah as oA,ai as lA,aj as uA,ak as sA,am as cA,an as dA,c as fA,ao as vA,ap as mA}from"./isPrototype-DezZrpQP.js";import{b as pA,p as hA}from"./band-CquvqAHh.js";import{d as Yi,n as yA,e as gA,i as ds,f as yu,g as pn,h as fs,a as vs,j as Ad,k as cr,c as bA,m as Ho,o as Qp,l as xA,p as AA}from"./linear-BGneeY6s.js";import{i as Cr,a as pr}from"./init-Dmth1JHB.js";import{m as wd,a as Pd,p as wA,q as PA,u as OA,s as SA,r as EA,v as IA,w as kA,x as jA,y as CA,z as TA,A as DA,B as $A,t as LA}from"./time-DJ0lCX4i.js";import{f as RA,b as MA}from"./defaultLocale-DX6XiGOO.js";import{i as NA,o as _A}from"./ordinal-DILIJJjt.js";import"./vendor-react-BAJBiXxk.js";import"./vendor-syntax-DG6Vo7Ci.js";import"./vendor-auth-BWxE55Ta.js";function BA(e=Yi){if(e===Yi)return eh;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 eh(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}function th(e,t,r=0,n=1/0,a){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(a=a===void 0?eh:BA(a);n>r;){if(n-r>600){const u=n-r+1,s=t-r+1,c=Math.log(u),d=.5*Math.exp(2*c/3),v=.5*Math.sqrt(c*d*(u-d)/u)*(s-u/2<0?-1:1),m=Math.max(r,Math.floor(t-s*d/u+v)),h=Math.min(n,Math.floor(t+(u-s)*d/u+v));th(e,t,m,h,a)}const i=e[t];let o=r,l=n;for(ga(e,r,t),a(e[n],i)>0&&ga(e,r,n);o<l;){for(ga(e,o,l),++o,--l;a(e[o],i)<0;)++o;for(;a(e[l],i)>0;)--l}a(e[r],i)===0?ga(e,r,l):(++l,ga(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function ga(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function zA(e,t,r){if(e=Float64Array.from(yA(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return wd(e);if(t>=1)return Pd(e);var n,a=(n-1)*t,i=Math.floor(a),o=Pd(th(e,i).subarray(0,i+1)),l=wd(e.subarray(i+1));return o+(l-o)*(a-i)}}function KA(e,t,r=gA){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,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),l=+r(e[i+1],i+1,e);return o+(l-o)*(a-i)}}function WA(e,t){t===void 0&&(t=e,e=ds);for(var r=0,n=t.length-1,a=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(a,a=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return i[l](o-l)}}function rh(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,yu),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return rh(e).unknown(t)},e=arguments.length?Array.from(e,yu):[0,1],pn(r)}function Od(e){return Math.log(e)}function Sd(e){return Math.exp(e)}function FA(e){return-Math.log(-e)}function VA(e){return-Math.exp(-e)}function HA(e){return isFinite(e)?+("1e"+e):e<0?0:e}function GA(e){return e===10?HA:e===Math.E?Math.exp:t=>Math.pow(e,t)}function UA(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 Ed(e){return(t,r)=>-e(-t,r)}function ms(e){const t=e(Od,Sd),r=t.domain;let n=10,a,i;function o(){return a=UA(n),i=GA(n),r()[0]<0?(a=Ed(a),i=Ed(i),e(FA,VA)):e(Od,Sd),t}return t.base=function(l){return arguments.length?(n=+l,o()):n},t.domain=function(l){return arguments.length?(r(l),o()):r()},t.ticks=l=>{const u=r();let s=u[0],c=u[u.length-1];const d=c<s;d&&([s,c]=[c,s]);let v=a(s),m=a(c),h,p;const y=l==null?10:+l;let g=[];if(!(n%1)&&m-v<y){if(v=Math.floor(v),m=Math.ceil(m),s>0){for(;v<=m;++v)for(h=1;h<n;++h)if(p=v<0?h/i(-v):h*i(v),!(p<s)){if(p>c)break;g.push(p)}}else for(;v<=m;++v)for(h=n-1;h>=1;--h)if(p=v>0?h/i(-v):h*i(v),!(p<s)){if(p>c)break;g.push(p)}g.length*2<y&&(g=Ad(s,c,y))}else g=Ad(v,m,Math.min(m-v,y)).map(i);return d?g.reverse():g},t.tickFormat=(l,u)=>{if(l==null&&(l=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=RA(u)).precision==null&&(u.trim=!0),u=MA(u)),l===1/0)return u;const s=Math.max(1,n*l/t.ticks().length);return c=>{let d=c/i(Math.round(a(c)));return d*n<n-.5&&(d*=n),d<=s?u(c):""}},t.nice=()=>r(wA(r(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),t}function nh(){const e=ms(fs()).domain([1,10]);return e.copy=()=>vs(e,nh()).base(e.base()),Cr.apply(e,arguments),e}function Id(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function kd(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ps(e){var t=1,r=e(Id(t),kd(t));return r.constant=function(n){return arguments.length?e(Id(t=+n),kd(t)):t},pn(r)}function ah(){var e=ps(fs());return e.copy=function(){return vs(e,ah()).constant(e.constant())},Cr.apply(e,arguments)}function jd(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function qA(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function XA(e){return e<0?-e*e:e*e}function hs(e){var t=e(cr,cr),r=1;function n(){return r===1?e(cr,cr):r===.5?e(qA,XA):e(jd(r),jd(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},pn(t)}function ys(){var e=hs(fs());return e.copy=function(){return vs(e,ys()).exponent(e.exponent())},Cr.apply(e,arguments),e}function YA(){return ys.apply(null,arguments).exponent(.5)}function Cd(e){return Math.sign(e)*e*e}function ZA(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function ih(){var e=bA(),t=[0,1],r=!1,n;function a(i){var o=ZA(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(Cd(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,yu)).map(Cd)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return ih(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Cr.apply(a,arguments),pn(a)}function oh(){var e=[],t=[],r=[],n;function a(){var o=0,l=Math.max(1,t.length);for(r=new Array(l-1);++o<l;)r[o-1]=KA(e,o/l);return i}function i(o){return o==null||isNaN(o=+o)?n:t[Ho(r,o)]}return i.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?r[l-1]:e[0],l<r.length?r[l]:e[e.length-1]]},i.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(Yi),a()},i.range=function(o){return arguments.length?(t=Array.from(o),a()):t.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.quantiles=function(){return r.slice()},i.copy=function(){return oh().domain(e).range(t).unknown(n)},Cr.apply(i,arguments)}function lh(){var e=0,t=1,r=1,n=[.5],a=[0,1],i;function o(u){return u!=null&&u<=u?a[Ho(n,u,0,r)]:i}function l(){var u=-1;for(n=new Array(r);++u<r;)n[u]=((u+1)*t-(u-r)*e)/(r+1);return o}return o.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,l()):[e,t]},o.range=function(u){return arguments.length?(r=(a=Array.from(u)).length-1,l()):a.slice()},o.invertExtent=function(u){var s=a.indexOf(u);return s<0?[NaN,NaN]:s<1?[e,n[0]]:s>=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(u){return arguments.length&&(i=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return lh().domain([e,t]).range(a).unknown(i)},Cr.apply(pn(o),arguments)}function uh(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[Ho(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return uh().domain(e).range(t).unknown(r)},Cr.apply(a,arguments)}function JA(){return Cr.apply(PA($A,DA,TA,CA,jA,kA,IA,EA,SA,OA).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Go(){var e=0,t=1,r,n,a,i,o=cr,l=!1,u;function s(d){return d==null||isNaN(d=+d)?u:o(a===0?.5:(d=(i(d)-r)*a,l?Math.max(0,Math.min(1,d)):d))}s.domain=function(d){return arguments.length?([e,t]=d,r=i(e=+e),n=i(t=+t),a=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(d){return arguments.length?(l=!!d,s):l},s.interpolator=function(d){return arguments.length?(o=d,s):o};function c(d){return function(v){var m,h;return arguments.length?([m,h]=v,o=d(m,h),s):[o(0),o(1)]}}return s.range=c(ds),s.rangeRound=c(Qp),s.unknown=function(d){return arguments.length?(u=d,s):u},function(d){return i=d,r=d(e),n=d(t),a=r===n?0:1/(n-r),s}}function Tr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function sh(){var e=pn(Go()(cr));return e.copy=function(){return Tr(e,sh())},pr.apply(e,arguments)}function ch(){var e=ms(Go()).domain([1,10]);return e.copy=function(){return Tr(e,ch()).base(e.base())},pr.apply(e,arguments)}function dh(){var e=ps(Go());return e.copy=function(){return Tr(e,dh()).constant(e.constant())},pr.apply(e,arguments)}function gs(){var e=hs(Go());return e.copy=function(){return Tr(e,gs()).exponent(e.exponent())},pr.apply(e,arguments)}function QA(){return gs.apply(null,arguments).exponent(.5)}function fh(){var e=[],t=cr;function r(n){if(n!=null&&!isNaN(n=+n))return t((Ho(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let a of n)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(Yi),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,a)=>t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>zA(e,i/n))},r.copy=function(){return fh(t).domain(e)},pr.apply(r,arguments)}function Uo(){var e=0,t=.5,r=1,n=1,a,i,o,l,u,s=cr,c,d=!1,v;function m(p){return isNaN(p=+p)?v:(p=.5+((p=+c(p))-i)*(n*p<n*i?l:u),s(d?Math.max(0,Math.min(1,p)):p))}m.domain=function(p){return arguments.length?([e,t,r]=p,a=c(e=+e),i=c(t=+t),o=c(r=+r),l=a===i?0:.5/(i-a),u=i===o?0:.5/(o-i),n=i<a?-1:1,m):[e,t,r]},m.clamp=function(p){return arguments.length?(d=!!p,m):d},m.interpolator=function(p){return arguments.length?(s=p,m):s};function h(p){return function(y){var g,b,w;return arguments.length?([g,b,w]=y,s=WA(p,[g,b,w]),m):[s(0),s(.5),s(1)]}}return m.range=h(ds),m.rangeRound=h(Qp),m.unknown=function(p){return arguments.length?(v=p,m):v},function(p){return c=p,a=p(e),i=p(t),o=p(r),l=a===i?0:.5/(i-a),u=i===o?0:.5/(o-i),n=i<a?-1:1,m}}function vh(){var e=pn(Uo()(cr));return e.copy=function(){return Tr(e,vh())},pr.apply(e,arguments)}function mh(){var e=ms(Uo()).domain([.1,1,10]);return e.copy=function(){return Tr(e,mh()).base(e.base())},pr.apply(e,arguments)}function ph(){var e=ps(Uo());return e.copy=function(){return Tr(e,ph()).constant(e.constant())},pr.apply(e,arguments)}function bs(){var e=hs(Uo());return e.copy=function(){return Tr(e,bs()).exponent(e.exponent())},pr.apply(e,arguments)}function ew(){return bs.apply(null,arguments).exponent(.5)}function Ei(e,t,r){var n=null,a=De(!0),i=null,o=cs,l=null,u=Xp(s);e=typeof e=="function"?e:e===void 0?H0:De(+e),t=typeof t=="function"?t:t===void 0?De(0):De(+t),r=typeof r=="function"?r:r===void 0?G0:De(+r);function s(d){var v,m,h,p=(d=Yp(d)).length,y,g=!1,b,w=new Array(p),x=new Array(p);for(i==null&&(l=o(b=u())),v=0;v<=p;++v){if(!(v<p&&a(y=d[v],v,d))===g)if(g=!g)m=v,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),h=v-1;h>=m;--h)l.point(w[h],x[h]);l.lineEnd(),l.areaEnd()}g&&(w[v]=+e(y,v,d),x[v]=+t(y,v,d),l.point(n?+n(y,v,d):w[v],r?+r(y,v,d):x[v]))}if(b)return l=null,b+""||null}function c(){return Zp().defined(a).curve(o).context(i)}return s.x=function(d){return arguments.length?(e=typeof d=="function"?d:De(+d),n=null,s):e},s.x0=function(d){return arguments.length?(e=typeof d=="function"?d:De(+d),s):e},s.x1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:De(+d),s):n},s.y=function(d){return arguments.length?(t=typeof d=="function"?d:De(+d),r=null,s):t},s.y0=function(d){return arguments.length?(t=typeof d=="function"?d:De(+d),s):t},s.y1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:De(+d),s):r},s.lineX0=s.lineY0=function(){return c().x(e).y(t)},s.lineY1=function(){return c().x(e).y(r)},s.lineX1=function(){return c().x(n).y(t)},s.defined=function(d){return arguments.length?(a=typeof d=="function"?d:De(!!d),s):a},s.curve=function(d){return arguments.length?(o=d,i!=null&&(l=o(i)),s):o},s.context=function(d){return arguments.length?(d==null?i=l=null:l=o(i=d),s):i},s}const xs={draw(e,t){const r=Mt(t/hu);e.moveTo(r,0),e.arc(0,0,r,0,Fo)}},tw={draw(e,t){const r=Mt(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()}},hh=Mt(1/3),rw=hh*2,nw={draw(e,t){const r=Mt(t/rw),n=r*hh;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},aw={draw(e,t){const r=Mt(t),n=-r/2;e.rect(n,n,r,r)}},iw=.8908130915292852,yh=Xi(hu/10)/Xi(7*hu/10),ow=Xi(Fo/10)*yh,lw=-Jp(Fo/10)*yh,uw={draw(e,t){const r=Mt(t*iw),n=ow*r,a=lw*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const o=Fo*i/5,l=Jp(o),u=Xi(o);e.lineTo(u*r,-l*r),e.lineTo(l*n-u*a,u*n+l*a)}e.closePath()}},Vl=Mt(3),sw={draw(e,t){const r=-Mt(t/(Vl*3));e.moveTo(0,r*2),e.lineTo(-Vl*r,-r),e.lineTo(Vl*r,-r),e.closePath()}},ft=-.5,vt=Mt(3)/2,gu=1/Mt(12),cw=(gu/2+1)*3,dw={draw(e,t){const r=Mt(t/cw),n=r/2,a=r*gu,i=n,o=r*gu+r,l=-i,u=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(l,u),e.lineTo(ft*n-vt*a,vt*n+ft*a),e.lineTo(ft*i-vt*o,vt*i+ft*o),e.lineTo(ft*l-vt*u,vt*l+ft*u),e.lineTo(ft*n+vt*a,ft*a-vt*n),e.lineTo(ft*i+vt*o,ft*o-vt*i),e.lineTo(ft*l+vt*u,ft*u-vt*l),e.closePath()}};function fw(e,t){let r=null,n=Xp(a);e=typeof e=="function"?e:De(e||xs),t=typeof t=="function"?t:De(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:De(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:De(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function on(e,t){if((o=e.length)>1)for(var r=1,n,a,i=e[t[0]],o,l=i.length;r<o;++r)for(a=i,i=e[t[r]],n=0;n<l;++n)i[n][1]+=i[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function bu(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function vw(e,t){return e[t]}function mw(e){const t=[];return t.key=e,t}function pw(){var e=De([]),t=bu,r=on,n=vw;function a(i){var o=Array.from(e.apply(this,arguments),mw),l,u=o.length,s=-1,c;for(const d of i)for(l=0,++s;l<u;++l)(o[l][s]=[0,+n(d,o[l].key,s,i)]).data=d;for(l=0,c=Yp(t(o));l<u;++l)o[c[l]].index=l;return r(o,c),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:De(Array.from(i)),a):e},a.value=function(i){return arguments.length?(n=typeof i=="function"?i:De(+i),a):n},a.order=function(i){return arguments.length?(t=i==null?bu:typeof i=="function"?i:De(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(r=i??on,a):r},a}function hw(e,t){if((n=e.length)>0){for(var r,n,a=0,i=e[0].length,o;a<i;++a){for(o=r=0;r<n;++r)o+=e[r][a][1]||0;if(o)for(r=0;r<n;++r)e[r][a][1]/=o}on(e,t)}}function yw(e,t){if((a=e.length)>0){for(var r=0,n=e[t[0]],a,i=n.length;r<i;++r){for(var o=0,l=0;o<a;++o)l+=e[o][r][1]||0;n[r][1]+=n[r][0]=-l/2}on(e,t)}}function gw(e,t){if(!(!((o=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,o;n<i;++n){for(var l=0,u=0,s=0;l<o;++l){for(var c=e[t[l]],d=c[n][1]||0,v=c[n-1][1]||0,m=(d-v)/2,h=0;h<l;++h){var p=e[t[h]],y=p[n][1]||0,g=p[n-1][1]||0;m+=y-g}u+=d,s+=m*d}a[n-1][1]+=a[n-1][0]=r,u&&(r-=s/u)}a[n-1][1]+=a[n-1][0]=r,on(e,t)}}function Wi(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function bw(e){return Array.isArray(e)?e:Array.from(e)}function xw(e,t=1){const r=[],n=Math.floor(t),a=(i,o)=>{for(let l=0;l<i.length;l++){const u=i[l];Array.isArray(u)&&o<n?a(u,o+1):r.push(u)}};return a(e,0),r}function gh(e){if(e==null)return"";if(typeof e=="string")return e;if(Array.isArray(e))return e.map(gh).join(",");const t=String(e);return t==="0"&&Object.is(Number(e),-0)?"-0":t}function qo(e){var t;return typeof e=="string"||typeof e=="symbol"?e:Object.is((t=e==null?void 0:e.valueOf)==null?void 0:t.call(e),-0)?"-0":String(e)}function Xo(e){if(Array.isArray(e))return e.map(qo);if(typeof e=="symbol")return[e];e=gh(e);const t=[],r=e.length;if(r===0)return t;let n=0,a="",i="",o=!1;for(e.charCodeAt(0)===46&&t.push("");n<r;){const l=e[n];if(i)l==="\\"&&n+1<r?(n++,a+=e[n]):l===i?i="":a+=l;else if(o)l==='"'||l==="'"?i=l:l==="]"?(o=!1,t.push(a),a=""):a+=l;else if(l==="[")o=!0,a&&(t.push(a),a="");else if(l==="."){a&&(t.push(a),a="");const u=e[n+1];(u===void 0||u===".")&&t.push("")}else a+=l;n++}return a&&t.push(a),t}function Yo(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}function Tt(e,t,r){if(e==null)return r;switch(typeof t){case"string":{if(Rn(t))return r;const n=e[t];return n===void 0?Yo(t)&&!Object.hasOwn(e,t)?Tt(e,Xo(t),r):r:n}case"number":case"symbol":{typeof t=="number"&&(t=qo(t));const n=e[t];return n===void 0?r:n}default:{if(Array.isArray(t))return Aw(e,t,r);if(Object.is(t==null?void 0:t.valueOf(),-0)?t="-0":t=String(t),Rn(t))return r;const n=e[t];return n===void 0?r:n}}}function Aw(e,t,r){if(t.length===0)return r;let n=e;for(let a=0;a<t.length;a++){if(n==null||Rn(t[a]))return r;n=n[t[a]]}return n===void 0?r:n}function ww(e){return function(t){return Tt(t,e)}}function bh(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function xh(e,t,r){return typeof r!="function"?xh(e,t,()=>{}):xu(e,t,function n(a,i,o,l,u,s){const c=r(a,i,o,l,u,s);return c!==void 0?!!c:xu(a,i,n,s,!1)},new Map,!0)}function xu(e,t,r,n,a=!1){if(t===e)return!0;switch(typeof t){case"object":return Pw(e,t,r,n);case"function":return Object.keys(t).length>0?xu(e,{...t},r,n,a):Wi(e,t);default:return bh(e)&&a?typeof t=="string"?t==="":!0:Wi(e,t)}}function Pw(e,t,r,n){if(t==null)return!0;if(Array.isArray(t))return Ah(e,t,r,n);if(t instanceof Map)return Ow(e,t,r,n);if(t instanceof Set)return Sw(e,t,r,n);const a=Object.keys(t);if(e==null||xd(e))return a.length===0;if(a.length===0)return!0;if(n!=null&&n.has(t))return n.get(t)===e;n==null||n.set(t,e);try{for(let i=0;i<a.length;i++){const o=a[i];if(!xd(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!r(e[o],t[o],o,e,t,n))return!1}return!0}finally{n==null||n.delete(t)}}function Ow(e,t,r,n){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(const[a,i]of t.entries())if(r(e.get(a),i,a,e,t,n)===!1)return!1;return!0}function Ah(e,t,r,n){if(t.length===0)return!0;if(!Array.isArray(e))return!1;const a=new Set;for(let i=0;i<t.length;i++){const o=t[i];let l=!1;for(let u=0;u<e.length;u++){if(a.has(u))continue;const s=e[u];let c=!1;if(r(s,o,i,e,t,n)&&(c=!0),c){a.add(u),l=!0;break}}if(!l)return!1}return!0}function Sw(e,t,r,n){return t.size===0?!0:e instanceof Set?Ah([...e],[...t],r,n):!1}function wh(e,t){return xh(e,t,()=>{})}function Ew(e){return U0(e,void 0,e,new Map,void 0)}function Iw(e){return e=Ew(e),t=>wh(t,e)}const kw=/^(?:0|[1-9]\d*)$/;function Ph(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return kw.test(e)}}function jw(e,t){let r;if(Array.isArray(t)?r=t:typeof t=="string"&&Yo(t)&&(e==null?void 0:e[t])==null?r=Xo(t):r=[t],r.length===0)return!1;let n=e;for(let a=0;a<r.length;a++){const i=r[a];if((n==null||!Object.hasOwn(n,i))&&!((Array.isArray(n)||q0(n))&&Ph(i)&&i<n.length))return!1;n=n[i]}return!0}function Cw(e,t){switch(typeof e){case"object":Object.is(e==null?void 0:e.valueOf(),-0)&&(e="-0");break;case"number":e=qo(e);break}return t=X0(t),function(r){const n=Tt(r,e);return n===void 0?jw(r,e):t===void 0?n===void 0:wh(n,t)}}function Zo(e){return e}function As(e){if(e==null)return Zo;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&e.length===2?Cw(e[0],e[1]):Iw(e);case"string":case"symbol":case"number":return ww(e)}}function Tw(e){return e[e.length-1]}function Dw(e){if(Vo(e))return Tw(bw(e))}function Oh(e){return typeof e=="symbol"||e instanceof Symbol}function $w(e){return Oh(e)?NaN:Number(e)}function Fi(e){return e?(e=$w(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function Lw(e){const t=Fi(e),r=t%1;return r?t-r:t}function Au(e,t,r){return bh(r)&&(typeof t=="number"&&Vo(r)&&Ph(t)&&t<r.length||typeof t=="string"&&t in r)?Wi(r[t],e):!1}function Rw(e,t=1){const r=[],n=Math.floor(t);if(!Vo(e))return r;const a=(i,o)=>{for(let l=0;l<i.length;l++){const u=i[l];o<n&&(Array.isArray(u)||u!=null&&u[Symbol.isConcatSpreadable]||u!==null&&typeof u=="object"&&Object.prototype.toString.call(u)==="[object Arguments]")?Array.isArray(u)?a(u,o+1):a(Array.from(u),o+1):r.push(u)}};return a(Array.from(e),0),r}function Td(e){return typeof e=="symbol"?1:e===null?2:e===void 0?3:e!==e?4:0}const Mw=(e,t,r)=>{if(e!==t){const n=Td(e),a=Td(t);if(n===a&&n===0){if(e<t)return r==="desc"?1:-1;if(e>t)return r==="desc"?-1:1}return r==="desc"?a-n:n-a}return 0},Nw=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_w=/^\w*$/;function Bw(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||Oh(e)?!0:typeof e=="string"&&(_w.test(e)||!Nw.test(e))||t!=null}function zw(e,t,r,n){if(e==null)return[];r=r,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(l=>String(l));const a=(l,u)=>{let s=l;for(let c=0;c<u.length&&s!=null;++c)s=s[u[c]];return s},i=(l,u)=>u==null||l==null?u:typeof l=="object"&&"key"in l?Object.hasOwn(u,l.key)?u[l.key]:a(u,l.path):typeof l=="function"?l(u):Array.isArray(l)?a(u,l):typeof u=="object"?u[l]:u,o=t.map(l=>(Array.isArray(l)&&l.length===1&&(l=l[0]),l==null||typeof l=="function"||Array.isArray(l)||Bw(l)?l:{key:l,path:Xo(l)}));return e.map(l=>({original:l,criteria:o.map(u=>i(u,l))})).slice().sort((l,u)=>{for(let s=0;s<o.length;s++){const c=Mw(l.criteria[s],u.criteria[s],r[s]);if(c!==0)return c}return 0}).map(l=>l.original)}function Dd(e,t){if(e==null)return!0;switch(typeof t){case"symbol":case"number":case"object":if(Array.isArray(t))return $d(e,t);if(typeof t=="number"?t=qo(t):typeof t=="object"&&(Object.is(t==null?void 0:t.valueOf(),-0)?t="-0":t=String(t)),Rn(t))return!1;if((e==null?void 0:e[t])===void 0)return!0;try{return delete e[t],!0}catch{return!1}case"string":if((e==null?void 0:e[t])===void 0&&Yo(t))return $d(e,Xo(t));if(Rn(t))return!1;try{return delete e[t],!0}catch{return!1}}}function $d(e,t){const r=t.length===1?e:Tt(e,t.slice(0,-1)),n=t[t.length-1];if((r==null?void 0:r[n])===void 0)return!0;if(Rn(n))return!1;try{return delete r[n],!0}catch{return!1}}function Jo(e,...t){const r=t.length;return r>1&&Au(e,t[0],t[1])?t=[]:r>2&&Au(t[0],t[1],t[2])&&(t=[t[0]]),zw(e,xw(t),["asc"])}function Kw(e,t){const r=new Map;for(let n=0;n<e.length;n++){const a=e[n],i=t(a,n,e);r.has(i)||r.set(i,a)}return Array.from(r.values())}function Ww(e,t){return function(...r){return e.apply(this,r.slice(0,t))}}function Ld(e,t=Zo){return Y0(e)?Kw(Array.from(e),Ww(As(t),1)):[]}function Fw(e,t,{signal:r,edges:n}={}){let a,i=null;const o=n!=null&&n.includes("leading"),l=n==null||n.includes("trailing"),u=()=>{i!==null&&(e.apply(a,i),a=void 0,i=null)},s=()=>{l&&u(),m()};let c=null;const d=()=>{c!=null&&clearTimeout(c),c=setTimeout(()=>{c=null,s()},t)},v=()=>{c!==null&&(clearTimeout(c),c=null)},m=()=>{v(),a=void 0,i=null},h=()=>{u()},p=function(...y){if(r!=null&&r.aborted)return;a=this,i=y;const g=c==null;d(),o&&g&&u()};return p.schedule=d,p.cancel=m,p.flush=h,r==null||r.addEventListener("abort",m,{once:!0}),p}function Vw(e,t=0,r={}){typeof r!="object"&&(r={});const{leading:n=!1,trailing:a=!0,maxWait:i}=r,o=Array(2);n&&(o[0]="leading"),a&&(o[1]="trailing");let l,u=null;const s=Fw(function(...v){l=e.apply(this,v),u=null},t,{edges:o}),c=function(...v){return i!=null&&(u===null&&(u=Date.now()),Date.now()-u>=i)?(l=e.apply(this,v),u=Date.now(),s.cancel(),s.schedule(),l):(s.apply(this,v),l)},d=()=>(s.flush(),l);return c.cancel=s.cancel,c.flush=d,c}function Hw(e,t=0,r={}){const{leading:n=!0,trailing:a=!0}=r;return Vw(e,t,{leading:n,maxWait:t,trailing:a})}function Gw(e,t){if(e.length===0)return;let r=e[0],n=-1/0;for(let a=0;a<e.length;a++){const i=e[a],o=t(i,a,e);if(Number.isNaN(o))return i;o>n&&(n=o,r=i)}return r}function Uw(e,t){if(e!=null)return Gw(Array.from(e),As(t??Zo))}function qw(e,t){if(e.length===0)return;let r=e[0],n=1/0;for(let a=0;a<e.length;a++){const i=e[a],o=t(i,a,e);if(Number.isNaN(o))return i;o<n&&(n=o,r=i)}return r}function Xw(e,t){if(e!=null)return qw(Array.from(e),As(t??Zo))}function Sh(e,t,r){r&&typeof r!="number"&&Au(e,t,r)&&(t=r=void 0),e=Fi(e),t===void 0?(t=e,e=0):t=Fi(t),r=r===void 0?e<t?1:-1:Fi(r);const n=Math.max(Math.ceil((t-e)/(r||1)),0),a=new Array(n);for(let i=0;i<n;i++)a[i]=e,e+=r;return a}function Yw(e,t){if(e=Lw(e),e<1||!Number.isSafeInteger(e))return[];const r=new Array(e);for(let n=0;n<e;n++)r[n]=typeof t=="function"?t(n):n;return r}function Eh(e){if(e==null)return[];switch(typeof e){case"object":case"function":return Vo(e)?Jw(e):Z0(e)?Zw(e):Zi(e);default:return Zi(Object(e))}}function Zi(e){const t=[];for(const r in e)t.push(r);return t}function Zw(e){return Zi(e).filter(t=>t!=="constructor")}function Jw(e){const t=Yw(e.length,a=>`${a}`),r=new Set(t);J0(e)&&(r.add("offset"),r.add("parent")),Q0(e)&&(r.add("buffer"),r.add("byteLength"),r.add("byteOffset"));const n=Zi(e).filter(a=>!r.has(a));return Array.isArray(e)?[...t,...n]:[...t.filter(a=>Object.hasOwn(e,a)),...n]}function Ih(e){const t=[];for(;e;)t.push(...eA(e)),e=Object.getPrototypeOf(e);return t}function Qw(e,...t){if(e==null)return{};t=Rw(t);const r=eP(e,t);for(let n=0;n<t.length;n++){let a=t[n];switch(typeof a){case"object":Array.isArray(a)||(a=Array.from(a));for(let i=0;i<a.length;i++){const o=a[i];Dd(r,o)}break;case"string":case"symbol":case"number":Dd(r,a);break}}return r}function eP(e,t){return t.some(r=>Array.isArray(r)||Yo(r))?rP(e):tP(e)}function tP(e){const t={},r=[...Eh(e),...Ih(e)];for(let n=0;n<r.length;n++){const a=r[n];t[a]=e[a]}return t}function rP(e){const t={},r=[...Eh(e),...Ih(e)];for(let n=0;n<r.length;n++){const a=r[n];t[a]=tA(e[a],i=>{if(!rA(i))return i})}return t}function kh(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=kh(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function F(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=kh(e))&&(n&&(n+=" "),n+=t);return n}var nP=["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"];function ws(e){if(typeof e!="string")return!1;var t=nP;return t.includes(e)}var aP=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],iP=new Set(aP);function jh(e){return typeof e!="string"?!1:iP.has(e)}function Ch(e){return typeof e=="string"&&e.startsWith("data-")}function ce(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(jh(r)||Ch(r))&&(t[r]=e[r]);return t}function Dt(e){if(e==null)return null;if(f.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return ce(t)}return typeof e=="object"&&!Array.isArray(e)?ce(e):null}function je(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(jh(r)||Ch(r)||ws(r))&&(t[r]=e[r]);return t}function oP(e){return e==null?null:f.isValidElement(e)?je(e.props):typeof e=="object"&&!Array.isArray(e)?je(e):null}var lP=["children","width","height","viewBox","className","style","title","desc"];function wu(){return wu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wu.apply(null,arguments)}function uP(e,t){if(e==null)return{};var r,n,a=sP(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function sP(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Ps=f.forwardRef((e,t)=>{var r=e.children,n=e.width,a=e.height,i=e.viewBox,o=e.className,l=e.style,u=e.title,s=e.desc,c=uP(e,lP),d=i||{width:n,height:a,x:0,y:0},v=F("recharts-surface",o);return f.createElement("svg",wu({},je(c),{className:v,width:n,height:a,style:l,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),f.createElement("title",null,u),f.createElement("desc",null,s),r)}),cP=["children","className"];function Pu(){return Pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pu.apply(null,arguments)}function dP(e,t){if(e==null)return{};var r,n,a=fP(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function fP(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var X=f.forwardRef((e,t)=>{var r=e.children,n=e.className,a=dP(e,cP),i=F("recharts-layer",n);return f.createElement("g",Pu({className:i},je(a),{ref:t}),r)}),Th=f.createContext(null),vP=()=>f.useContext(Th),mP=4;function dr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mP,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function Oe(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((a,i,o)=>{var l=r[o-1];return typeof l=="string"?a+l+i:l!==void 0?a+dr(l)+i:a+i},"")}var $e=e=>e===0?0:e>0?1:-1,$t=e=>typeof e=="number"&&e!=+e,ln=e=>typeof e=="string"&&e.length>1&&e.indexOf("%")===e.length-1,L=e=>(typeof e=="number"||e instanceof Number)&&!$t(e),gt=e=>L(e)||typeof e=="string",pP=0,_a=e=>{var t=++pP;return"".concat(e||"").concat(t)},He=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!L(t)&&typeof t!="string")return n;var i;if(ln(t)){if(r==null)return n;var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return $t(i)&&(i=n),a&&r!=null&&i>r&&(i=r),i},Dh=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function B(e,t,r){return L(e)&&L(t)?dr(e+r*(t-e)):t}function $h(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Tt(n,t))===r)}var hP=e=>{for(var t=e.length,r=0,n=0,a=0,i=0,o=1/0,l=-1/0,u=0,s=0,c=0;c<t;c++){var d,v;u=((d=e[c])===null||d===void 0?void 0:d.cx)||0,s=((v=e[c])===null||v===void 0?void 0:v.cy)||0,r+=u,n+=s,a+=u*s,i+=u*u,o=Math.min(o,u),l=Math.max(l,u)}var m=t*i!==r*r?(t*a-r*n)/(t*i-r*r):0;return{xmin:o,xmax:l,a:m,b:(n-m*r)/t}},ee=e=>e===null||typeof e>"u",Xa=e=>ee(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function tt(e){return e!=null}function wt(){}var yP=["type","size","sizeType"];function Ou(){return Ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ou.apply(null,arguments)}function Rd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Md(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rd(Object(r),!0).forEach(function(n){gP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gP(e,t,r){return(t=bP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bP(e){var t=xP(e,"string");return typeof t=="symbol"?t:t+""}function xP(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AP(e,t){if(e==null)return{};var r,n,a=wP(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function wP(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Lh={symbolCircle:xs,symbolCross:tw,symbolDiamond:nw,symbolSquare:aw,symbolStar:uw,symbolTriangle:sw,symbolWye:dw},PP=Math.PI/180,OP=e=>{var t="symbol".concat(Xa(e));return Lh[t]||xs},SP=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*PP;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},EP=(e,t)=>{Lh["symbol".concat(Xa(e))]=t},Qo=e=>{var t=e.type,r=t===void 0?"circle":t,n=e.size,a=n===void 0?64:n,i=e.sizeType,o=i===void 0?"area":i,l=AP(e,yP),u=Md(Md({},l),{},{type:r,size:a,sizeType:o}),s="circle";typeof r=="string"&&(s=r);var c=()=>{var p=OP(s),y=fw().type(p).size(SP(a,o,s)),g=y();if(g!==null)return g},d=u.className,v=u.cx,m=u.cy,h=je(u);return L(v)&&L(m)&&L(a)?f.createElement("path",Ou({},h,{className:F("recharts-symbols",d),transform:"translate(".concat(v,", ").concat(m,")"),d:c()})):null};Qo.registerSymbol=EP;var Rh=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Os=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(f.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(a=>{ws(a)&&typeof r[a]=="function"&&(n[a]=(i=>r[a](r,i)))}),n},IP=(e,t,r)=>n=>(e(t,r,n),null),Nt=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(a=>{var i=e[a];ws(a)&&typeof i=="function"&&(n||(n={}),n[a]=IP(i,t,r))}),n},kP=e=>Array.isArray(e)&&e.length>0;function Nd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function jP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nd(Object(r),!0).forEach(function(n){CP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CP(e,t,r){return(t=TP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TP(e){var t=DP(e,"string");return typeof t=="symbol"?t:t+""}function DP(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ne(e,t){var r=jP({},e),n=t,a=Object.keys(t),i=a.reduce((o,l)=>(o[l]===void 0&&n[l]!==void 0&&(o[l]=n[l]),o),r);return i}function Ji(){return Ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ji.apply(null,arguments)}function _d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Mh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_d(Object(r),!0).forEach(function(n){$P(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_d(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $P(e,t,r){return(t=LP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LP(e){var t=RP(e,"string");return typeof t=="symbol"?t:t+""}function RP(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pt=32,MP={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle",labelStyle:{}};function NP(e){if(typeof e=="object"&&e!==null&&"strokeDasharray"in e)return String(e.strokeDasharray)}function _P(e){var t=e.data,r=e.iconType,n=e.inactiveColor,a=pt/2,i=pt/6,o=pt/3,l=t.inactive?n:t.color,u=r??t.type;if(u==="none")return null;if(u==="plainline")return f.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:NP(t.payload),x1:0,y1:a,x2:pt,y2:a,className:"recharts-legend-icon"});if(u==="line")return f.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(o,`
1
+ var N0=Object.defineProperty;var _0=(e,t,r)=>t in e?N0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Si=(e,t,r)=>_0(e,typeof t!="symbol"?t+"":t,r);import{r as f,a as qp,b as ss,g as B0,e as z0,j}from"./vendor-react-BbEy7z12.js";import{c as K0,e as W0}from"./graphExportUtils-DrqBjeAI.js";import{r as F0,u as V0}from"./index-BNiRF5ts.js";import{w as Xp,b as De,al as cs,aq as H0,ar as G0,Q as Yp,l as Zp,t as Fo,d as Mt,p as hu,s as Xi,a as Jp,a5 as Rn,n as xd,as as U0,a6 as q0,a8 as X0,ac as Vo,a9 as Y0,ad as Z0,a7 as J0,q as Q0,a4 as eA,at as tA,ab as rA,ae as nA,af as aA,ag as iA,ah as oA,ai as lA,aj as uA,ak as sA,am as cA,an as dA,c as fA,ao as vA,ap as mA}from"./isPrototype-DezZrpQP.js";import{b as pA,p as hA}from"./band-CquvqAHh.js";import{d as Yi,n as yA,e as gA,i as ds,f as yu,g as pn,h as fs,a as vs,j as Ad,k as cr,c as bA,m as Ho,o as Qp,l as xA,p as AA}from"./linear-BGneeY6s.js";import{i as Cr,a as pr}from"./init-Dmth1JHB.js";import{m as wd,a as Pd,p as wA,q as PA,u as OA,s as SA,r as EA,v as IA,w as kA,x as jA,y as CA,z as TA,A as DA,B as $A,t as LA}from"./time-DJ0lCX4i.js";import{f as RA,b as MA}from"./defaultLocale-DX6XiGOO.js";import{i as NA,o as _A}from"./ordinal-DILIJJjt.js";import"./locales-4Dy5QB82.js";import"./vendor-markdown-Cy_-N5ZX.js";import"./vendor-syntax-INF7-xC_.js";import"./vendor-auth-aD_bwYde.js";function BA(e=Yi){if(e===Yi)return eh;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 eh(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}function th(e,t,r=0,n=1/0,a){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(a=a===void 0?eh:BA(a);n>r;){if(n-r>600){const u=n-r+1,s=t-r+1,c=Math.log(u),d=.5*Math.exp(2*c/3),v=.5*Math.sqrt(c*d*(u-d)/u)*(s-u/2<0?-1:1),m=Math.max(r,Math.floor(t-s*d/u+v)),h=Math.min(n,Math.floor(t+(u-s)*d/u+v));th(e,t,m,h,a)}const i=e[t];let o=r,l=n;for(ga(e,r,t),a(e[n],i)>0&&ga(e,r,n);o<l;){for(ga(e,o,l),++o,--l;a(e[o],i)<0;)++o;for(;a(e[l],i)>0;)--l}a(e[r],i)===0?ga(e,r,l):(++l,ga(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function ga(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function zA(e,t,r){if(e=Float64Array.from(yA(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return wd(e);if(t>=1)return Pd(e);var n,a=(n-1)*t,i=Math.floor(a),o=Pd(th(e,i).subarray(0,i+1)),l=wd(e.subarray(i+1));return o+(l-o)*(a-i)}}function KA(e,t,r=gA){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,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),l=+r(e[i+1],i+1,e);return o+(l-o)*(a-i)}}function WA(e,t){t===void 0&&(t=e,e=ds);for(var r=0,n=t.length-1,a=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(a,a=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return i[l](o-l)}}function rh(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,yu),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return rh(e).unknown(t)},e=arguments.length?Array.from(e,yu):[0,1],pn(r)}function Od(e){return Math.log(e)}function Sd(e){return Math.exp(e)}function FA(e){return-Math.log(-e)}function VA(e){return-Math.exp(-e)}function HA(e){return isFinite(e)?+("1e"+e):e<0?0:e}function GA(e){return e===10?HA:e===Math.E?Math.exp:t=>Math.pow(e,t)}function UA(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 Ed(e){return(t,r)=>-e(-t,r)}function ms(e){const t=e(Od,Sd),r=t.domain;let n=10,a,i;function o(){return a=UA(n),i=GA(n),r()[0]<0?(a=Ed(a),i=Ed(i),e(FA,VA)):e(Od,Sd),t}return t.base=function(l){return arguments.length?(n=+l,o()):n},t.domain=function(l){return arguments.length?(r(l),o()):r()},t.ticks=l=>{const u=r();let s=u[0],c=u[u.length-1];const d=c<s;d&&([s,c]=[c,s]);let v=a(s),m=a(c),h,p;const y=l==null?10:+l;let g=[];if(!(n%1)&&m-v<y){if(v=Math.floor(v),m=Math.ceil(m),s>0){for(;v<=m;++v)for(h=1;h<n;++h)if(p=v<0?h/i(-v):h*i(v),!(p<s)){if(p>c)break;g.push(p)}}else for(;v<=m;++v)for(h=n-1;h>=1;--h)if(p=v>0?h/i(-v):h*i(v),!(p<s)){if(p>c)break;g.push(p)}g.length*2<y&&(g=Ad(s,c,y))}else g=Ad(v,m,Math.min(m-v,y)).map(i);return d?g.reverse():g},t.tickFormat=(l,u)=>{if(l==null&&(l=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=RA(u)).precision==null&&(u.trim=!0),u=MA(u)),l===1/0)return u;const s=Math.max(1,n*l/t.ticks().length);return c=>{let d=c/i(Math.round(a(c)));return d*n<n-.5&&(d*=n),d<=s?u(c):""}},t.nice=()=>r(wA(r(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),t}function nh(){const e=ms(fs()).domain([1,10]);return e.copy=()=>vs(e,nh()).base(e.base()),Cr.apply(e,arguments),e}function Id(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function kd(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ps(e){var t=1,r=e(Id(t),kd(t));return r.constant=function(n){return arguments.length?e(Id(t=+n),kd(t)):t},pn(r)}function ah(){var e=ps(fs());return e.copy=function(){return vs(e,ah()).constant(e.constant())},Cr.apply(e,arguments)}function jd(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function qA(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function XA(e){return e<0?-e*e:e*e}function hs(e){var t=e(cr,cr),r=1;function n(){return r===1?e(cr,cr):r===.5?e(qA,XA):e(jd(r),jd(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},pn(t)}function ys(){var e=hs(fs());return e.copy=function(){return vs(e,ys()).exponent(e.exponent())},Cr.apply(e,arguments),e}function YA(){return ys.apply(null,arguments).exponent(.5)}function Cd(e){return Math.sign(e)*e*e}function ZA(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function ih(){var e=bA(),t=[0,1],r=!1,n;function a(i){var o=ZA(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(Cd(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,yu)).map(Cd)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return ih(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Cr.apply(a,arguments),pn(a)}function oh(){var e=[],t=[],r=[],n;function a(){var o=0,l=Math.max(1,t.length);for(r=new Array(l-1);++o<l;)r[o-1]=KA(e,o/l);return i}function i(o){return o==null||isNaN(o=+o)?n:t[Ho(r,o)]}return i.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?r[l-1]:e[0],l<r.length?r[l]:e[e.length-1]]},i.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(Yi),a()},i.range=function(o){return arguments.length?(t=Array.from(o),a()):t.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.quantiles=function(){return r.slice()},i.copy=function(){return oh().domain(e).range(t).unknown(n)},Cr.apply(i,arguments)}function lh(){var e=0,t=1,r=1,n=[.5],a=[0,1],i;function o(u){return u!=null&&u<=u?a[Ho(n,u,0,r)]:i}function l(){var u=-1;for(n=new Array(r);++u<r;)n[u]=((u+1)*t-(u-r)*e)/(r+1);return o}return o.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,l()):[e,t]},o.range=function(u){return arguments.length?(r=(a=Array.from(u)).length-1,l()):a.slice()},o.invertExtent=function(u){var s=a.indexOf(u);return s<0?[NaN,NaN]:s<1?[e,n[0]]:s>=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(u){return arguments.length&&(i=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return lh().domain([e,t]).range(a).unknown(i)},Cr.apply(pn(o),arguments)}function uh(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[Ho(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return uh().domain(e).range(t).unknown(r)},Cr.apply(a,arguments)}function JA(){return Cr.apply(PA($A,DA,TA,CA,jA,kA,IA,EA,SA,OA).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Go(){var e=0,t=1,r,n,a,i,o=cr,l=!1,u;function s(d){return d==null||isNaN(d=+d)?u:o(a===0?.5:(d=(i(d)-r)*a,l?Math.max(0,Math.min(1,d)):d))}s.domain=function(d){return arguments.length?([e,t]=d,r=i(e=+e),n=i(t=+t),a=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(d){return arguments.length?(l=!!d,s):l},s.interpolator=function(d){return arguments.length?(o=d,s):o};function c(d){return function(v){var m,h;return arguments.length?([m,h]=v,o=d(m,h),s):[o(0),o(1)]}}return s.range=c(ds),s.rangeRound=c(Qp),s.unknown=function(d){return arguments.length?(u=d,s):u},function(d){return i=d,r=d(e),n=d(t),a=r===n?0:1/(n-r),s}}function Tr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function sh(){var e=pn(Go()(cr));return e.copy=function(){return Tr(e,sh())},pr.apply(e,arguments)}function ch(){var e=ms(Go()).domain([1,10]);return e.copy=function(){return Tr(e,ch()).base(e.base())},pr.apply(e,arguments)}function dh(){var e=ps(Go());return e.copy=function(){return Tr(e,dh()).constant(e.constant())},pr.apply(e,arguments)}function gs(){var e=hs(Go());return e.copy=function(){return Tr(e,gs()).exponent(e.exponent())},pr.apply(e,arguments)}function QA(){return gs.apply(null,arguments).exponent(.5)}function fh(){var e=[],t=cr;function r(n){if(n!=null&&!isNaN(n=+n))return t((Ho(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let a of n)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(Yi),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,a)=>t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>zA(e,i/n))},r.copy=function(){return fh(t).domain(e)},pr.apply(r,arguments)}function Uo(){var e=0,t=.5,r=1,n=1,a,i,o,l,u,s=cr,c,d=!1,v;function m(p){return isNaN(p=+p)?v:(p=.5+((p=+c(p))-i)*(n*p<n*i?l:u),s(d?Math.max(0,Math.min(1,p)):p))}m.domain=function(p){return arguments.length?([e,t,r]=p,a=c(e=+e),i=c(t=+t),o=c(r=+r),l=a===i?0:.5/(i-a),u=i===o?0:.5/(o-i),n=i<a?-1:1,m):[e,t,r]},m.clamp=function(p){return arguments.length?(d=!!p,m):d},m.interpolator=function(p){return arguments.length?(s=p,m):s};function h(p){return function(y){var g,b,w;return arguments.length?([g,b,w]=y,s=WA(p,[g,b,w]),m):[s(0),s(.5),s(1)]}}return m.range=h(ds),m.rangeRound=h(Qp),m.unknown=function(p){return arguments.length?(v=p,m):v},function(p){return c=p,a=p(e),i=p(t),o=p(r),l=a===i?0:.5/(i-a),u=i===o?0:.5/(o-i),n=i<a?-1:1,m}}function vh(){var e=pn(Uo()(cr));return e.copy=function(){return Tr(e,vh())},pr.apply(e,arguments)}function mh(){var e=ms(Uo()).domain([.1,1,10]);return e.copy=function(){return Tr(e,mh()).base(e.base())},pr.apply(e,arguments)}function ph(){var e=ps(Uo());return e.copy=function(){return Tr(e,ph()).constant(e.constant())},pr.apply(e,arguments)}function bs(){var e=hs(Uo());return e.copy=function(){return Tr(e,bs()).exponent(e.exponent())},pr.apply(e,arguments)}function ew(){return bs.apply(null,arguments).exponent(.5)}function Ei(e,t,r){var n=null,a=De(!0),i=null,o=cs,l=null,u=Xp(s);e=typeof e=="function"?e:e===void 0?H0:De(+e),t=typeof t=="function"?t:t===void 0?De(0):De(+t),r=typeof r=="function"?r:r===void 0?G0:De(+r);function s(d){var v,m,h,p=(d=Yp(d)).length,y,g=!1,b,w=new Array(p),x=new Array(p);for(i==null&&(l=o(b=u())),v=0;v<=p;++v){if(!(v<p&&a(y=d[v],v,d))===g)if(g=!g)m=v,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),h=v-1;h>=m;--h)l.point(w[h],x[h]);l.lineEnd(),l.areaEnd()}g&&(w[v]=+e(y,v,d),x[v]=+t(y,v,d),l.point(n?+n(y,v,d):w[v],r?+r(y,v,d):x[v]))}if(b)return l=null,b+""||null}function c(){return Zp().defined(a).curve(o).context(i)}return s.x=function(d){return arguments.length?(e=typeof d=="function"?d:De(+d),n=null,s):e},s.x0=function(d){return arguments.length?(e=typeof d=="function"?d:De(+d),s):e},s.x1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:De(+d),s):n},s.y=function(d){return arguments.length?(t=typeof d=="function"?d:De(+d),r=null,s):t},s.y0=function(d){return arguments.length?(t=typeof d=="function"?d:De(+d),s):t},s.y1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:De(+d),s):r},s.lineX0=s.lineY0=function(){return c().x(e).y(t)},s.lineY1=function(){return c().x(e).y(r)},s.lineX1=function(){return c().x(n).y(t)},s.defined=function(d){return arguments.length?(a=typeof d=="function"?d:De(!!d),s):a},s.curve=function(d){return arguments.length?(o=d,i!=null&&(l=o(i)),s):o},s.context=function(d){return arguments.length?(d==null?i=l=null:l=o(i=d),s):i},s}const xs={draw(e,t){const r=Mt(t/hu);e.moveTo(r,0),e.arc(0,0,r,0,Fo)}},tw={draw(e,t){const r=Mt(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()}},hh=Mt(1/3),rw=hh*2,nw={draw(e,t){const r=Mt(t/rw),n=r*hh;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},aw={draw(e,t){const r=Mt(t),n=-r/2;e.rect(n,n,r,r)}},iw=.8908130915292852,yh=Xi(hu/10)/Xi(7*hu/10),ow=Xi(Fo/10)*yh,lw=-Jp(Fo/10)*yh,uw={draw(e,t){const r=Mt(t*iw),n=ow*r,a=lw*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const o=Fo*i/5,l=Jp(o),u=Xi(o);e.lineTo(u*r,-l*r),e.lineTo(l*n-u*a,u*n+l*a)}e.closePath()}},Vl=Mt(3),sw={draw(e,t){const r=-Mt(t/(Vl*3));e.moveTo(0,r*2),e.lineTo(-Vl*r,-r),e.lineTo(Vl*r,-r),e.closePath()}},ft=-.5,vt=Mt(3)/2,gu=1/Mt(12),cw=(gu/2+1)*3,dw={draw(e,t){const r=Mt(t/cw),n=r/2,a=r*gu,i=n,o=r*gu+r,l=-i,u=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(l,u),e.lineTo(ft*n-vt*a,vt*n+ft*a),e.lineTo(ft*i-vt*o,vt*i+ft*o),e.lineTo(ft*l-vt*u,vt*l+ft*u),e.lineTo(ft*n+vt*a,ft*a-vt*n),e.lineTo(ft*i+vt*o,ft*o-vt*i),e.lineTo(ft*l+vt*u,ft*u-vt*l),e.closePath()}};function fw(e,t){let r=null,n=Xp(a);e=typeof e=="function"?e:De(e||xs),t=typeof t=="function"?t:De(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:De(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:De(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function on(e,t){if((o=e.length)>1)for(var r=1,n,a,i=e[t[0]],o,l=i.length;r<o;++r)for(a=i,i=e[t[r]],n=0;n<l;++n)i[n][1]+=i[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function bu(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function vw(e,t){return e[t]}function mw(e){const t=[];return t.key=e,t}function pw(){var e=De([]),t=bu,r=on,n=vw;function a(i){var o=Array.from(e.apply(this,arguments),mw),l,u=o.length,s=-1,c;for(const d of i)for(l=0,++s;l<u;++l)(o[l][s]=[0,+n(d,o[l].key,s,i)]).data=d;for(l=0,c=Yp(t(o));l<u;++l)o[c[l]].index=l;return r(o,c),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:De(Array.from(i)),a):e},a.value=function(i){return arguments.length?(n=typeof i=="function"?i:De(+i),a):n},a.order=function(i){return arguments.length?(t=i==null?bu:typeof i=="function"?i:De(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(r=i??on,a):r},a}function hw(e,t){if((n=e.length)>0){for(var r,n,a=0,i=e[0].length,o;a<i;++a){for(o=r=0;r<n;++r)o+=e[r][a][1]||0;if(o)for(r=0;r<n;++r)e[r][a][1]/=o}on(e,t)}}function yw(e,t){if((a=e.length)>0){for(var r=0,n=e[t[0]],a,i=n.length;r<i;++r){for(var o=0,l=0;o<a;++o)l+=e[o][r][1]||0;n[r][1]+=n[r][0]=-l/2}on(e,t)}}function gw(e,t){if(!(!((o=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,o;n<i;++n){for(var l=0,u=0,s=0;l<o;++l){for(var c=e[t[l]],d=c[n][1]||0,v=c[n-1][1]||0,m=(d-v)/2,h=0;h<l;++h){var p=e[t[h]],y=p[n][1]||0,g=p[n-1][1]||0;m+=y-g}u+=d,s+=m*d}a[n-1][1]+=a[n-1][0]=r,u&&(r-=s/u)}a[n-1][1]+=a[n-1][0]=r,on(e,t)}}function Wi(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function bw(e){return Array.isArray(e)?e:Array.from(e)}function xw(e,t=1){const r=[],n=Math.floor(t),a=(i,o)=>{for(let l=0;l<i.length;l++){const u=i[l];Array.isArray(u)&&o<n?a(u,o+1):r.push(u)}};return a(e,0),r}function gh(e){if(e==null)return"";if(typeof e=="string")return e;if(Array.isArray(e))return e.map(gh).join(",");const t=String(e);return t==="0"&&Object.is(Number(e),-0)?"-0":t}function qo(e){var t;return typeof e=="string"||typeof e=="symbol"?e:Object.is((t=e==null?void 0:e.valueOf)==null?void 0:t.call(e),-0)?"-0":String(e)}function Xo(e){if(Array.isArray(e))return e.map(qo);if(typeof e=="symbol")return[e];e=gh(e);const t=[],r=e.length;if(r===0)return t;let n=0,a="",i="",o=!1;for(e.charCodeAt(0)===46&&t.push("");n<r;){const l=e[n];if(i)l==="\\"&&n+1<r?(n++,a+=e[n]):l===i?i="":a+=l;else if(o)l==='"'||l==="'"?i=l:l==="]"?(o=!1,t.push(a),a=""):a+=l;else if(l==="[")o=!0,a&&(t.push(a),a="");else if(l==="."){a&&(t.push(a),a="");const u=e[n+1];(u===void 0||u===".")&&t.push("")}else a+=l;n++}return a&&t.push(a),t}function Yo(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}function Tt(e,t,r){if(e==null)return r;switch(typeof t){case"string":{if(Rn(t))return r;const n=e[t];return n===void 0?Yo(t)&&!Object.hasOwn(e,t)?Tt(e,Xo(t),r):r:n}case"number":case"symbol":{typeof t=="number"&&(t=qo(t));const n=e[t];return n===void 0?r:n}default:{if(Array.isArray(t))return Aw(e,t,r);if(Object.is(t==null?void 0:t.valueOf(),-0)?t="-0":t=String(t),Rn(t))return r;const n=e[t];return n===void 0?r:n}}}function Aw(e,t,r){if(t.length===0)return r;let n=e;for(let a=0;a<t.length;a++){if(n==null||Rn(t[a]))return r;n=n[t[a]]}return n===void 0?r:n}function ww(e){return function(t){return Tt(t,e)}}function bh(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function xh(e,t,r){return typeof r!="function"?xh(e,t,()=>{}):xu(e,t,function n(a,i,o,l,u,s){const c=r(a,i,o,l,u,s);return c!==void 0?!!c:xu(a,i,n,s,!1)},new Map,!0)}function xu(e,t,r,n,a=!1){if(t===e)return!0;switch(typeof t){case"object":return Pw(e,t,r,n);case"function":return Object.keys(t).length>0?xu(e,{...t},r,n,a):Wi(e,t);default:return bh(e)&&a?typeof t=="string"?t==="":!0:Wi(e,t)}}function Pw(e,t,r,n){if(t==null)return!0;if(Array.isArray(t))return Ah(e,t,r,n);if(t instanceof Map)return Ow(e,t,r,n);if(t instanceof Set)return Sw(e,t,r,n);const a=Object.keys(t);if(e==null||xd(e))return a.length===0;if(a.length===0)return!0;if(n!=null&&n.has(t))return n.get(t)===e;n==null||n.set(t,e);try{for(let i=0;i<a.length;i++){const o=a[i];if(!xd(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!r(e[o],t[o],o,e,t,n))return!1}return!0}finally{n==null||n.delete(t)}}function Ow(e,t,r,n){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(const[a,i]of t.entries())if(r(e.get(a),i,a,e,t,n)===!1)return!1;return!0}function Ah(e,t,r,n){if(t.length===0)return!0;if(!Array.isArray(e))return!1;const a=new Set;for(let i=0;i<t.length;i++){const o=t[i];let l=!1;for(let u=0;u<e.length;u++){if(a.has(u))continue;const s=e[u];let c=!1;if(r(s,o,i,e,t,n)&&(c=!0),c){a.add(u),l=!0;break}}if(!l)return!1}return!0}function Sw(e,t,r,n){return t.size===0?!0:e instanceof Set?Ah([...e],[...t],r,n):!1}function wh(e,t){return xh(e,t,()=>{})}function Ew(e){return U0(e,void 0,e,new Map,void 0)}function Iw(e){return e=Ew(e),t=>wh(t,e)}const kw=/^(?:0|[1-9]\d*)$/;function Ph(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return kw.test(e)}}function jw(e,t){let r;if(Array.isArray(t)?r=t:typeof t=="string"&&Yo(t)&&(e==null?void 0:e[t])==null?r=Xo(t):r=[t],r.length===0)return!1;let n=e;for(let a=0;a<r.length;a++){const i=r[a];if((n==null||!Object.hasOwn(n,i))&&!((Array.isArray(n)||q0(n))&&Ph(i)&&i<n.length))return!1;n=n[i]}return!0}function Cw(e,t){switch(typeof e){case"object":Object.is(e==null?void 0:e.valueOf(),-0)&&(e="-0");break;case"number":e=qo(e);break}return t=X0(t),function(r){const n=Tt(r,e);return n===void 0?jw(r,e):t===void 0?n===void 0:wh(n,t)}}function Zo(e){return e}function As(e){if(e==null)return Zo;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&e.length===2?Cw(e[0],e[1]):Iw(e);case"string":case"symbol":case"number":return ww(e)}}function Tw(e){return e[e.length-1]}function Dw(e){if(Vo(e))return Tw(bw(e))}function Oh(e){return typeof e=="symbol"||e instanceof Symbol}function $w(e){return Oh(e)?NaN:Number(e)}function Fi(e){return e?(e=$w(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function Lw(e){const t=Fi(e),r=t%1;return r?t-r:t}function Au(e,t,r){return bh(r)&&(typeof t=="number"&&Vo(r)&&Ph(t)&&t<r.length||typeof t=="string"&&t in r)?Wi(r[t],e):!1}function Rw(e,t=1){const r=[],n=Math.floor(t);if(!Vo(e))return r;const a=(i,o)=>{for(let l=0;l<i.length;l++){const u=i[l];o<n&&(Array.isArray(u)||u!=null&&u[Symbol.isConcatSpreadable]||u!==null&&typeof u=="object"&&Object.prototype.toString.call(u)==="[object Arguments]")?Array.isArray(u)?a(u,o+1):a(Array.from(u),o+1):r.push(u)}};return a(Array.from(e),0),r}function Td(e){return typeof e=="symbol"?1:e===null?2:e===void 0?3:e!==e?4:0}const Mw=(e,t,r)=>{if(e!==t){const n=Td(e),a=Td(t);if(n===a&&n===0){if(e<t)return r==="desc"?1:-1;if(e>t)return r==="desc"?-1:1}return r==="desc"?a-n:n-a}return 0},Nw=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_w=/^\w*$/;function Bw(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||Oh(e)?!0:typeof e=="string"&&(_w.test(e)||!Nw.test(e))||t!=null}function zw(e,t,r,n){if(e==null)return[];r=r,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(l=>String(l));const a=(l,u)=>{let s=l;for(let c=0;c<u.length&&s!=null;++c)s=s[u[c]];return s},i=(l,u)=>u==null||l==null?u:typeof l=="object"&&"key"in l?Object.hasOwn(u,l.key)?u[l.key]:a(u,l.path):typeof l=="function"?l(u):Array.isArray(l)?a(u,l):typeof u=="object"?u[l]:u,o=t.map(l=>(Array.isArray(l)&&l.length===1&&(l=l[0]),l==null||typeof l=="function"||Array.isArray(l)||Bw(l)?l:{key:l,path:Xo(l)}));return e.map(l=>({original:l,criteria:o.map(u=>i(u,l))})).slice().sort((l,u)=>{for(let s=0;s<o.length;s++){const c=Mw(l.criteria[s],u.criteria[s],r[s]);if(c!==0)return c}return 0}).map(l=>l.original)}function Dd(e,t){if(e==null)return!0;switch(typeof t){case"symbol":case"number":case"object":if(Array.isArray(t))return $d(e,t);if(typeof t=="number"?t=qo(t):typeof t=="object"&&(Object.is(t==null?void 0:t.valueOf(),-0)?t="-0":t=String(t)),Rn(t))return!1;if((e==null?void 0:e[t])===void 0)return!0;try{return delete e[t],!0}catch{return!1}case"string":if((e==null?void 0:e[t])===void 0&&Yo(t))return $d(e,Xo(t));if(Rn(t))return!1;try{return delete e[t],!0}catch{return!1}}}function $d(e,t){const r=t.length===1?e:Tt(e,t.slice(0,-1)),n=t[t.length-1];if((r==null?void 0:r[n])===void 0)return!0;if(Rn(n))return!1;try{return delete r[n],!0}catch{return!1}}function Jo(e,...t){const r=t.length;return r>1&&Au(e,t[0],t[1])?t=[]:r>2&&Au(t[0],t[1],t[2])&&(t=[t[0]]),zw(e,xw(t),["asc"])}function Kw(e,t){const r=new Map;for(let n=0;n<e.length;n++){const a=e[n],i=t(a,n,e);r.has(i)||r.set(i,a)}return Array.from(r.values())}function Ww(e,t){return function(...r){return e.apply(this,r.slice(0,t))}}function Ld(e,t=Zo){return Y0(e)?Kw(Array.from(e),Ww(As(t),1)):[]}function Fw(e,t,{signal:r,edges:n}={}){let a,i=null;const o=n!=null&&n.includes("leading"),l=n==null||n.includes("trailing"),u=()=>{i!==null&&(e.apply(a,i),a=void 0,i=null)},s=()=>{l&&u(),m()};let c=null;const d=()=>{c!=null&&clearTimeout(c),c=setTimeout(()=>{c=null,s()},t)},v=()=>{c!==null&&(clearTimeout(c),c=null)},m=()=>{v(),a=void 0,i=null},h=()=>{u()},p=function(...y){if(r!=null&&r.aborted)return;a=this,i=y;const g=c==null;d(),o&&g&&u()};return p.schedule=d,p.cancel=m,p.flush=h,r==null||r.addEventListener("abort",m,{once:!0}),p}function Vw(e,t=0,r={}){typeof r!="object"&&(r={});const{leading:n=!1,trailing:a=!0,maxWait:i}=r,o=Array(2);n&&(o[0]="leading"),a&&(o[1]="trailing");let l,u=null;const s=Fw(function(...v){l=e.apply(this,v),u=null},t,{edges:o}),c=function(...v){return i!=null&&(u===null&&(u=Date.now()),Date.now()-u>=i)?(l=e.apply(this,v),u=Date.now(),s.cancel(),s.schedule(),l):(s.apply(this,v),l)},d=()=>(s.flush(),l);return c.cancel=s.cancel,c.flush=d,c}function Hw(e,t=0,r={}){const{leading:n=!0,trailing:a=!0}=r;return Vw(e,t,{leading:n,maxWait:t,trailing:a})}function Gw(e,t){if(e.length===0)return;let r=e[0],n=-1/0;for(let a=0;a<e.length;a++){const i=e[a],o=t(i,a,e);if(Number.isNaN(o))return i;o>n&&(n=o,r=i)}return r}function Uw(e,t){if(e!=null)return Gw(Array.from(e),As(t??Zo))}function qw(e,t){if(e.length===0)return;let r=e[0],n=1/0;for(let a=0;a<e.length;a++){const i=e[a],o=t(i,a,e);if(Number.isNaN(o))return i;o<n&&(n=o,r=i)}return r}function Xw(e,t){if(e!=null)return qw(Array.from(e),As(t??Zo))}function Sh(e,t,r){r&&typeof r!="number"&&Au(e,t,r)&&(t=r=void 0),e=Fi(e),t===void 0?(t=e,e=0):t=Fi(t),r=r===void 0?e<t?1:-1:Fi(r);const n=Math.max(Math.ceil((t-e)/(r||1)),0),a=new Array(n);for(let i=0;i<n;i++)a[i]=e,e+=r;return a}function Yw(e,t){if(e=Lw(e),e<1||!Number.isSafeInteger(e))return[];const r=new Array(e);for(let n=0;n<e;n++)r[n]=typeof t=="function"?t(n):n;return r}function Eh(e){if(e==null)return[];switch(typeof e){case"object":case"function":return Vo(e)?Jw(e):Z0(e)?Zw(e):Zi(e);default:return Zi(Object(e))}}function Zi(e){const t=[];for(const r in e)t.push(r);return t}function Zw(e){return Zi(e).filter(t=>t!=="constructor")}function Jw(e){const t=Yw(e.length,a=>`${a}`),r=new Set(t);J0(e)&&(r.add("offset"),r.add("parent")),Q0(e)&&(r.add("buffer"),r.add("byteLength"),r.add("byteOffset"));const n=Zi(e).filter(a=>!r.has(a));return Array.isArray(e)?[...t,...n]:[...t.filter(a=>Object.hasOwn(e,a)),...n]}function Ih(e){const t=[];for(;e;)t.push(...eA(e)),e=Object.getPrototypeOf(e);return t}function Qw(e,...t){if(e==null)return{};t=Rw(t);const r=eP(e,t);for(let n=0;n<t.length;n++){let a=t[n];switch(typeof a){case"object":Array.isArray(a)||(a=Array.from(a));for(let i=0;i<a.length;i++){const o=a[i];Dd(r,o)}break;case"string":case"symbol":case"number":Dd(r,a);break}}return r}function eP(e,t){return t.some(r=>Array.isArray(r)||Yo(r))?rP(e):tP(e)}function tP(e){const t={},r=[...Eh(e),...Ih(e)];for(let n=0;n<r.length;n++){const a=r[n];t[a]=e[a]}return t}function rP(e){const t={},r=[...Eh(e),...Ih(e)];for(let n=0;n<r.length;n++){const a=r[n];t[a]=tA(e[a],i=>{if(!rA(i))return i})}return t}function kh(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=kh(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function F(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=kh(e))&&(n&&(n+=" "),n+=t);return n}var nP=["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"];function ws(e){if(typeof e!="string")return!1;var t=nP;return t.includes(e)}var aP=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],iP=new Set(aP);function jh(e){return typeof e!="string"?!1:iP.has(e)}function Ch(e){return typeof e=="string"&&e.startsWith("data-")}function ce(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(jh(r)||Ch(r))&&(t[r]=e[r]);return t}function Dt(e){if(e==null)return null;if(f.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return ce(t)}return typeof e=="object"&&!Array.isArray(e)?ce(e):null}function je(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(jh(r)||Ch(r)||ws(r))&&(t[r]=e[r]);return t}function oP(e){return e==null?null:f.isValidElement(e)?je(e.props):typeof e=="object"&&!Array.isArray(e)?je(e):null}var lP=["children","width","height","viewBox","className","style","title","desc"];function wu(){return wu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wu.apply(null,arguments)}function uP(e,t){if(e==null)return{};var r,n,a=sP(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function sP(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Ps=f.forwardRef((e,t)=>{var r=e.children,n=e.width,a=e.height,i=e.viewBox,o=e.className,l=e.style,u=e.title,s=e.desc,c=uP(e,lP),d=i||{width:n,height:a,x:0,y:0},v=F("recharts-surface",o);return f.createElement("svg",wu({},je(c),{className:v,width:n,height:a,style:l,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),f.createElement("title",null,u),f.createElement("desc",null,s),r)}),cP=["children","className"];function Pu(){return Pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pu.apply(null,arguments)}function dP(e,t){if(e==null)return{};var r,n,a=fP(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function fP(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var X=f.forwardRef((e,t)=>{var r=e.children,n=e.className,a=dP(e,cP),i=F("recharts-layer",n);return f.createElement("g",Pu({className:i},je(a),{ref:t}),r)}),Th=f.createContext(null),vP=()=>f.useContext(Th),mP=4;function dr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mP,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function Oe(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((a,i,o)=>{var l=r[o-1];return typeof l=="string"?a+l+i:l!==void 0?a+dr(l)+i:a+i},"")}var $e=e=>e===0?0:e>0?1:-1,$t=e=>typeof e=="number"&&e!=+e,ln=e=>typeof e=="string"&&e.length>1&&e.indexOf("%")===e.length-1,L=e=>(typeof e=="number"||e instanceof Number)&&!$t(e),gt=e=>L(e)||typeof e=="string",pP=0,_a=e=>{var t=++pP;return"".concat(e||"").concat(t)},He=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!L(t)&&typeof t!="string")return n;var i;if(ln(t)){if(r==null)return n;var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return $t(i)&&(i=n),a&&r!=null&&i>r&&(i=r),i},Dh=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function B(e,t,r){return L(e)&&L(t)?dr(e+r*(t-e)):t}function $h(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Tt(n,t))===r)}var hP=e=>{for(var t=e.length,r=0,n=0,a=0,i=0,o=1/0,l=-1/0,u=0,s=0,c=0;c<t;c++){var d,v;u=((d=e[c])===null||d===void 0?void 0:d.cx)||0,s=((v=e[c])===null||v===void 0?void 0:v.cy)||0,r+=u,n+=s,a+=u*s,i+=u*u,o=Math.min(o,u),l=Math.max(l,u)}var m=t*i!==r*r?(t*a-r*n)/(t*i-r*r):0;return{xmin:o,xmax:l,a:m,b:(n-m*r)/t}},ee=e=>e===null||typeof e>"u",Xa=e=>ee(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function tt(e){return e!=null}function wt(){}var yP=["type","size","sizeType"];function Ou(){return Ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ou.apply(null,arguments)}function Rd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Md(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rd(Object(r),!0).forEach(function(n){gP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gP(e,t,r){return(t=bP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bP(e){var t=xP(e,"string");return typeof t=="symbol"?t:t+""}function xP(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AP(e,t){if(e==null)return{};var r,n,a=wP(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function wP(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Lh={symbolCircle:xs,symbolCross:tw,symbolDiamond:nw,symbolSquare:aw,symbolStar:uw,symbolTriangle:sw,symbolWye:dw},PP=Math.PI/180,OP=e=>{var t="symbol".concat(Xa(e));return Lh[t]||xs},SP=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*PP;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},EP=(e,t)=>{Lh["symbol".concat(Xa(e))]=t},Qo=e=>{var t=e.type,r=t===void 0?"circle":t,n=e.size,a=n===void 0?64:n,i=e.sizeType,o=i===void 0?"area":i,l=AP(e,yP),u=Md(Md({},l),{},{type:r,size:a,sizeType:o}),s="circle";typeof r=="string"&&(s=r);var c=()=>{var p=OP(s),y=fw().type(p).size(SP(a,o,s)),g=y();if(g!==null)return g},d=u.className,v=u.cx,m=u.cy,h=je(u);return L(v)&&L(m)&&L(a)?f.createElement("path",Ou({},h,{className:F("recharts-symbols",d),transform:"translate(".concat(v,", ").concat(m,")"),d:c()})):null};Qo.registerSymbol=EP;var Rh=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Os=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(f.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(a=>{ws(a)&&typeof r[a]=="function"&&(n[a]=(i=>r[a](r,i)))}),n},IP=(e,t,r)=>n=>(e(t,r,n),null),Nt=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(a=>{var i=e[a];ws(a)&&typeof i=="function"&&(n||(n={}),n[a]=IP(i,t,r))}),n},kP=e=>Array.isArray(e)&&e.length>0;function Nd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function jP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nd(Object(r),!0).forEach(function(n){CP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CP(e,t,r){return(t=TP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TP(e){var t=DP(e,"string");return typeof t=="symbol"?t:t+""}function DP(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ne(e,t){var r=jP({},e),n=t,a=Object.keys(t),i=a.reduce((o,l)=>(o[l]===void 0&&n[l]!==void 0&&(o[l]=n[l]),o),r);return i}function Ji(){return Ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ji.apply(null,arguments)}function _d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Mh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_d(Object(r),!0).forEach(function(n){$P(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_d(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $P(e,t,r){return(t=LP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LP(e){var t=RP(e,"string");return typeof t=="symbol"?t:t+""}function RP(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pt=32,MP={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle",labelStyle:{}};function NP(e){if(typeof e=="object"&&e!==null&&"strokeDasharray"in e)return String(e.strokeDasharray)}function _P(e){var t=e.data,r=e.iconType,n=e.inactiveColor,a=pt/2,i=pt/6,o=pt/3,l=t.inactive?n:t.color,u=r??t.type;if(u==="none")return null;if(u==="plainline")return f.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:NP(t.payload),x1:0,y1:a,x2:pt,y2:a,className:"recharts-legend-icon"});if(u==="line")return f.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(o,`
2
2
  A`).concat(i,",").concat(i,",0,1,1,").concat(2*o,",").concat(a,`
3
3
  H`).concat(pt,"M").concat(2*o,",").concat(a,`
4
4
  A`).concat(i,",").concat(i,",0,1,1,").concat(o,",").concat(a),className:"recharts-legend-icon"});if(u==="rect")return f.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(pt/8,"h").concat(pt,"v").concat(pt*3/4,"h").concat(-pt,"z"),className:"recharts-legend-icon"});if(f.isValidElement(t.legendIcon)){var s=Mh({},t);return delete s.legendIcon,f.cloneElement(t.legendIcon,s)}return f.createElement(Qo,{fill:l,cx:a,cy:a,size:pt,sizeType:"diameter",type:u})}function BP(e){var t=e.payload,r=e.iconSize,n=e.layout,a=e.formatter,i=e.inactiveColor,o=e.iconType,l=e.labelStyle,u={x:0,y:0,width:pt,height:pt},s={display:n==="horizontal"?"inline-block":"block",marginRight:10},c={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((d,v)=>{var m=d.formatter||a,h=F({"recharts-legend-item":!0,["legend-item-".concat(v)]:!0,inactive:d.inactive});if(d.type==="none")return null;var p=typeof l=="object"?Mh({},l):{};p.color=d.inactive?i:p.color||d.color;var y=m?m(d.value,d,v):d.value;return f.createElement("li",Ji({className:h,style:s,key:"legend-item-".concat(v)},Nt(e,d,v)),f.createElement(Ps,{width:r,height:r,viewBox:u,style:c,"aria-label":d.value==null?"legend icon":"".concat(d.value," legend icon")},f.createElement(_P,{data:d,iconType:o,inactiveColor:i})),f.createElement("span",{className:"recharts-legend-item-text",style:p},y))})}var zP=e=>{var t=ne(e,MP),r=t.payload,n=t.layout,a=t.align;if(!r||!r.length)return null;var i={padding:0,margin:0,textAlign:n==="horizontal"?a:"left"};return f.createElement("ul",{className:"recharts-default-legend",style:i},f.createElement(BP,Ji({},t,{payload:r})))};function Nh(e,t,r){return t===!0?Ld(e,r):typeof t=="function"?Ld(e,t):e}var Hl={exports:{}},Gl={};/**
@@ -86,7 +86,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
86
86
  `).map(n=>n.trim()).filter(Boolean).map(n=>n.replace(/^-\s*/,"").trim()).filter(Boolean);if(!t.length)return null;const r=t.map(n=>{const a=an(n);return a!==null?a:UF(n)});return r.every(n=>n!==null)?r:null},zi=(e,t,r)=>{const n=t.trim();if(!n)return;const a=r.trim();if(!a.length)return;const i=n.toLowerCase(),o=a.toLowerCase(),l=()=>(e.formatter||(e.formatter={}),e.formatter);switch(i){case"type":e.type=a;return;case"title":e.title=a;return;case"description":e.description=a;return;case"xaxislabel":e.xAxisLabel=a;return;case"yaxislabel":e.yAxisLabel=a;return;case"yaxisrightlabel":e.yAxisRightLabel=a;return;case"stacked":e.stacked=o==="true";return;case"showlegend":e.showLegend=o==="true";return;case"showgrid":e.showGrid=o==="true";return;case"height":{const u=Ia(a);typeof u=="number"&&(e.height=u);return}case"width":{const u=Ia(a);typeof u=="number"&&(e.width=u);return}case"xkey":e.xKey=a;return;case"xaxistype":e.xAxisType=a==="number"?"number":"category";return;case"valueformat":{const u=l();u.format=a;return}case"valueprefix":{const u=l();u.prefix=a;return}case"valuesuffix":{const u=l();u.suffix=a;return}case"valuecurrency":{const u=l();u.currency=a;return}case"valuedecimals":{const u=Ia(a);if(typeof u=="number"){const s=l();s.decimals=u}return}case"formatter":{const u=qF(a);u&&(e.formatter={...e.formatter,...u});return}case"colors":e.colors=vu(a);return;case"labels":e.labels=vu(a);return;case"datakeys":e.dataKeys=vu(a);return;case"data":{const u=an(a);if(u){e.data=u;return}const s=mu(a);s&&(e.data=s);return}case"series":{const u=an(a);if(u){e.series=u;return}const s=mu(a);s&&(e.series=s);return}case"referencelines":{const u=an(a);if(u){e.referenceLines=u;return}const s=mu(a);s&&(e.referenceLines=s);return}case"layout":e.layout=a;return;case"innerradius":{const u=Ia(a);e.innerRadius=typeof u=="number"?u:a;return}case"outerradius":{const u=Ia(a);e.outerRadius=typeof u=="number"?u:a;return}default:return}},XF=e=>/^\s*[\w.-]+\s*:\s/.test(e),m0=e=>e.filter(t=>{const r=t.trim();return r.startsWith("|")&&r.includes("|")&&!XF(t)}),Na=e=>{const t=e.trim();if(!t.includes("|"))return!1;const r=t.replace(/[|\s]/g,""),n=(r.match(/[-–—―]/g)||[]).length;return n>0&&n>=r.length*.5},p0=e=>{const t=(e.match(/\{/g)||[]).length,r=(e.match(/\}/g)||[]).length,n=(e.match(/\[/g)||[]).length,a=(e.match(/\]/g)||[]).length;if(t!==r||n!==a)return!0;const i=e.split(`
87
87
  `),o=m0(i);if(o.length>0){const u=o.filter(Na),s=o.filter(d=>!Na(d));if(s.length>0&&u.length===0||u.length>0&&s.length<=1)return!0;const c=o[o.length-1].trim();if(c&&!Na(c)){const d=s[0];if(d){const v=d.split("|").filter(h=>h.trim()).length,m=c.split("|").filter(h=>h.trim()).length;if(m>0&&m<v)return!0}}}const l=i.filter(u=>u.trim()).pop()||"";if(l.match(/^\w+:\s*$/)&&!l.includes("|"))return!0;if(l.endsWith("|")&&o.length>0){const u=(l.match(/\|/g)||[]).length,s=o[0]?(o[0].match(/\|/g)||[]).length:0;if(u>0&&u<s)return!0}return!1},Fp=e=>/^\s*-\s+/.test(e),Vp=e=>{var t;return((t=e.match(/^\s*/))==null?void 0:t[0].length)??0},Hp=(e,t,r=!1)=>{let n=null,a="";const i=()=>{n&&(zi(t,n,a),n=null,a="")};for(let o=0;o<e.length;o+=1){const l=e[o],u=l.trim();if(r&&u.startsWith("|")){i();break}if(n){a+=l.trim();const p=(a.match(/[{[]/g)||[]).length,y=(a.match(/[}\]]/g)||[]).length;p>0&&p<=y&&i();continue}const s=l.indexOf(":");if(s===-1)continue;const c=l.substring(0,s);if(!c.trim())continue;const d=l.substring(s+1),v=d.trim();if(!v.length){const p=Vp(l),y=[];for(let g=o+1;g<e.length;g+=1){const b=e[g],w=b.trim();if(!w){y.length>0&&y.push(b);continue}if(r&&w.startsWith("|")||Vp(b)<=p&&!Fp(b)||!Fp(b)&&y.length===0)break;y.push(b),o=g}y.length>0?zi(t,c,y.join(`
88
88
  `)):zi(t,c,d);continue}const m=(v.match(/[{[]/g)||[]).length,h=(v.match(/[}\]]/g)||[]).length;if(m>0&&m>h){n=c,a=v;continue}zi(t,c,d)}i()},pu=(e,t)=>{try{if(t==="chart-json"){let o;try{o=JSON.parse(e)}catch(l){if(p0(e))return null;const u=l instanceof Error?l.message:String(l);return console.warn("[ChartRenderer] chart-json is not valid JSON (fix the fence body or use `chart` / `chart-table`).",u),null}return typeof o.formatter=="string"&&(o.formatter={format:o.formatter}),o}const r=e.trim().split(`
89
- `),n={colors:Jr},a=m0(r);if(a.length>0){const o=a.findIndex(Na);if(o===-1){if(a.length>0){const l=a[0].split("|").map(u=>u.trim()).filter(Boolean);l.length>0&&(n.xKey=l[0],n.dataKeys=l.slice(1))}n.data=[]}else{const l=a[0].split("|").map(s=>s.trim()).filter(Boolean),u=a.slice(o+1);n.data=u.map(s=>{if(Na(s))return null;const c=s.split("|").map(v=>v.trim()).filter(Boolean);if(!c.length)return null;const d={};return l.forEach((v,m)=>{const h=c[m];typeof h>"u"||(d[v]=h!==""&&!Number.isNaN(Number(h))?Number(h):h)}),d}).filter(Boolean),n.xKey=l[0],n.dataKeys=l.slice(1)}Hp(r,n,!0)}else if(Hp(r,n),Array.isArray(n.data)&&typeof n.data[0]=="number"){const o=n.data,l=n.labels||o.map((u,s)=>`Item ${s+1}`);n.data=o.map((u,s)=>({name:l[s],value:u})),n.xKey="name",n.dataKeys=["value"]}if(n.data=n.data??[],(!n.colors||n.colors.length===0)&&(n.colors=Jr),n.xKey&&Array.isArray(n.data)&&n.data.length>0){const o=n.data[0];if(o&&typeof o=="object"&&!(n.xKey in o)){const l=n.xKey.toLowerCase(),u=Object.keys(o).find(s=>s.toLowerCase()===l);u&&(n.xKey=u)}}return(!n.dataKeys||n.dataKeys.length===0)&&n.series&&n.series.length>0&&(n.dataKeys=n.series.map(o=>{const l=o;return l.key||l.dataKey}).filter(Boolean)),n}catch(r){return console.error("Failed to parse chart config:",r),null}},YF=(e,t)=>{if(!Array.isArray(e)||!e.length)return"category";const r=t||"name",n=e.map(i=>i&&typeof i=="object"?i[r]:void 0).filter(i=>typeof i<"u");return n.length&&n.every(i=>typeof i=="number"&&!Number.isNaN(i))?"number":"category"},ZF=1800,JF=2300,QF=e=>Number.isFinite(e)&&Number.isInteger(e)&&e>=ZF&&e<=JF,Gp=(e,t)=>typeof e!="number"||Number.isNaN(e)?String(e??""):QF(e)?new Intl.NumberFormat(void 0,{useGrouping:!1,maximumFractionDigits:0}).format(e):String(h0(e,t)),h0=(e,t)=>{if(typeof e!="number"||Number.isNaN(e))return e??"";if(!t)return new Intl.NumberFormat().format(e);const{format:r="number",currency:n="USD",decimals:a,minimumFractionDigits:i,maximumFractionDigits:o,prefix:l="",suffix:u=""}=t,s={};typeof a=="number"&&!Number.isNaN(a)?(s.minimumFractionDigits=a,s.maximumFractionDigits=a):(typeof i=="number"&&(s.minimumFractionDigits=i),typeof o=="number"&&(s.maximumFractionDigits=o)),r==="currency"?(s.style="currency",s.currency=n||"USD"):r==="percent"?s.style="percent":r==="compact"?s.notation="compact":s.maximumFractionDigits||(s.maximumFractionDigits=2);const c=new Intl.NumberFormat(void 0,s).format(e);return`${l}${c}${u}`},eV=(e,t)=>{const r=e.dataKeys&&e.dataKeys.length?e.dataKeys.map(l=>({key:l})):[{key:"value"}],a=(e.series&&e.series.length?e.series:r).map(l=>{const u=l;return!l.key&&u.dataKey?{...l,key:u.dataKey}:l}).filter(l=>!!l.key),o={line:"line",area:"area",scatter:"scatter",radar:"radar",funnel:"funnel"}[e.type]??"bar";return a.map((l,u)=>{const s=e.type==="composed"&&l.type||o;return{...l,type:s,key:l.key,name:l.name??l.key,color:l.color??t[u%t.length],yAxisId:l.yAxisId??"left",stackId:typeof l.stackId<"u"?l.stackId:e.stacked?"stack":void 0,strokeWidth:l.strokeWidth??(s==="line"?2:1),dot:typeof l.dot=="boolean"?l.dot:!0,opacity:l.opacity??(s==="area"?.55:1)}})},tV=e=>e!=null&&e.length?e.filter(t=>typeof t.y<"u"||typeof t.x<"u").map((t,r)=>{const n=a=>a==="start"?"insideStart":a==="middle"?"middle":"end";return j.jsx(wx,{y:t.y,x:t.x,stroke:t.color||"#9ca3af",strokeDasharray:t.strokeDasharray||"4 4",label:t.label?{value:t.label,position:n(t.position),fill:t.color||"#4b5563"}:void 0},`reference-${r}`)}):null,Up=(e,t)=>{const r=e.filter(i=>i.yAxisId===t);if(!r.length)return;const n=r.map(i=>i.name||i.key).filter(i=>!!i);return n.length?Array.from(new Set(n)).join(" / "):void 0},or=(e,t)=>{if(!e)return null;const r=t==="right"?20:-20,n=t==="right"?"insideRight":"insideLeft";return j.jsx(ur,{value:e,angle:t==="right"?90:-90,position:n,style:{textAnchor:"middle",fill:Ta.axis,fontSize:12,fontWeight:500},offset:r})},rV=({active:e,payload:t,label:r,formatter:n,labelFormatter:a})=>{if(!e||!(t!=null&&t.length))return null;const i=a?a(r):r;return j.jsxs("div",{role:"tooltip",style:{background:"var(--md-chart-tooltip-bg, #ffffff)",border:"1px solid var(--md-chart-tooltip-border, #e5e7eb)",borderRadius:"8px",padding:"10px 14px",boxShadow:"0 4px 14px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04)",color:"var(--md-chart-tooltip-text, #1f2937)",fontSize:"13px",lineHeight:1.5,maxWidth:"300px",pointerEvents:"none"},children:[i!=null&&i!==""&&j.jsx("div",{style:{fontWeight:600,marginBottom:"6px",borderBottom:"1px solid var(--md-chart-grid, #e5e7eb)",paddingBottom:"5px"},children:String(i)}),t.map((o,l)=>j.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"16px",padding:"2px 0"},children:[j.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"6px",minWidth:0},children:[j.jsx("span",{style:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:o.color??"#6366f1",flexShrink:0,boxShadow:`0 0 0 2px ${o.color??"#6366f1"}33`}}),j.jsx("span",{style:{opacity:.75,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o.name!=null?String(o.name):""})]}),j.jsx("span",{style:{fontWeight:600,fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap"},children:String(h0(o.value,n))})]},l))]})},Ki=({cx:e,cy:t,fill:r,stroke:n})=>typeof e!="number"||typeof t!="number"?null:j.jsxs("g",{children:[j.jsx("circle",{cx:e,cy:t,r:7,fill:r||n||"#6366f1",fillOpacity:.15,stroke:"none"}),j.jsx("circle",{cx:e,cy:t,r:4,fill:"#fff",stroke:n||r||"#6366f1",strokeWidth:2})]}),nV=e=>{const t=e.filter(r=>r.type==="area");return t.length?j.jsx("defs",{children:t.map(r=>j.jsxs("linearGradient",{id:`gradient-${r.key}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[j.jsx("stop",{offset:"0%",stopColor:r.color,stopOpacity:.45}),j.jsx("stop",{offset:"95%",stopColor:r.color,stopOpacity:.03})]},`grad-${r.key}`))}):null},aV=(e,t)=>{const r=[];return r.push(`${e.type} chart`),e.title&&r.push(`titled "${e.title}"`),r.push(`with ${e.data.length} data point${e.data.length!==1?"s":""}`),t.length>1&&r.push(`and ${t.length} series: ${t.map(n=>n.name).join(", ")}`),r.join(" ")},OV=({code:e,language:t})=>{var od,ld,ud,sd,cd;const{t:r}=V0(),[n,a]=f.useState(null),[i,o]=f.useState(null),[l,u]=f.useState(!1),[s,c]=f.useState(!1),[d,v]=f.useState(0),[m,h]=f.useState(new Set),[p,y]=f.useState(!1),[g,b]=f.useState(!1),w=f.useRef(null),x=f.useRef(""),A=f.useRef(0),P=f.useRef(null),S=f.useRef(null);if(f.useEffect(()=>{const C=Date.now(),W=C-A.current,ie=e!==x.current;x.current=e,A.current=C;const Te=p0(e),pe=ie&&W<500&&W>0,Ie=Te||pe,et=pu(e,t),ha=(ze,dt)=>{Ie?(kn(()=>{c(!0),u(!0),a(null),o(null)}),P.current&&clearTimeout(P.current),P.current=setTimeout(()=>{dt(pu(x.current,t))&&(a(ze),u(!1),c(!1))},5e3)):kn(()=>{o(null),a(ze),u(!1),c(!1)})};if(!et){ha("Failed to parse chart configuration",ze=>!ze);return}if(!Array.isArray(et.data)||et.data.length===0){ha("Chart data is empty",ze=>!ze||!Array.isArray(ze.data)||ze.data.length===0);return}if(!et.type){ha("Chart type is required (bar, line, pie, area, scatter, composed)",ze=>!(ze!=null&&ze.type));return}return kn(()=>{c(!1)}),P.current&&(clearTimeout(P.current),P.current=null),Ie?(kn(()=>{u(!0)}),w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{u(!1);const ze=x.current,dt=pu(ze,t);dt&&Array.isArray(dt.data)&&dt.data.length>0&&(a(null),o(dt))},400),kn(()=>{a(null),o(et)})):kn(()=>{u(!1),a(null),o(et)}),()=>{w.current&&clearTimeout(w.current),P.current&&clearTimeout(P.current)}},[e,t]),f.useEffect(()=>{const C=S.current;if(!C||typeof window>"u"||typeof window.ResizeObserver>"u")return;const W=new window.ResizeObserver(ie=>{var pe,Ie;const Te=((Ie=(pe=ie[0])==null?void 0:pe.contentRect)==null?void 0:Ie.width)??0;Te>0&&v(Te)});return W.observe(C),()=>W.disconnect()},[]),n)return j.jsxs("div",{className:"graph-error",role:"alert",children:[j.jsxs("div",{className:"graph-error-header",children:[j.jsx("div",{className:"graph-error-icon","aria-hidden":"true",children:j.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:j.jsx("path",{d:"M10 6v4m0 4h.01M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),j.jsxs("div",{className:"graph-error-content",children:[j.jsx("div",{className:"graph-error-title",children:r("markdown.chart.errorTitle")}),j.jsx("div",{className:"graph-error-message",children:n})]})]}),j.jsxs("details",{style:{marginTop:"4px"},children:[j.jsx("summary",{className:"graph-error-toggle",style:{cursor:"pointer",listStyle:"none",userSelect:"none"},children:r("markdown.chart.showRawSource")}),j.jsx("div",{className:"graph-error-details",children:j.jsx("pre",{children:j.jsx("code",{children:e})})})]})]});if(!i)return j.jsxs("div",{className:"graph-container chart-container",role:"status","aria-label":r("markdown.chart.loadingAriaLabel"),children:[j.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch",width:"100%",padding:"16px 20px",minHeight:"220px",gap:"12px"},children:[j.jsx("div",{style:{height:"16px",width:"40%",borderRadius:"6px",background:"var(--md-chart-grid, #e5e7eb)",opacity:.5,animation:"chartPulse 1.5s ease-in-out infinite"}}),j.jsx("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:"8px",padding:"16px 0 8px",minHeight:"140px"},children:[.45,.7,.55,.85,.6,.4,.75].map((C,W)=>j.jsx("div",{style:{flex:1,height:`${C*100}%`,borderRadius:"4px 4px 0 0",background:"var(--md-chart-grid, #e5e7eb)",opacity:.35,animation:`chartPulse 1.5s ease-in-out ${W*.1}s infinite`}},W))}),j.jsx("div",{style:{height:"1px",background:"var(--md-chart-grid, #e5e7eb)",opacity:.4}}),j.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",color:"var(--md-text-secondary, #6b7280)",fontSize:"13px"},children:[j.jsx("svg",{style:{animation:"chartSpin 1s linear infinite",width:"14px",height:"14px",color:s?"#6366f1":"currentColor"},viewBox:"0 0 24 24",fill:"none",children:j.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"32",strokeLinecap:"round"})}),j.jsx("span",{style:{fontWeight:500},children:s?"Receiving chart data…":"Loading chart…"})]})]}),j.jsx("style",{children:`
89
+ `),n={colors:Jr},a=m0(r);if(a.length>0){const o=a.findIndex(Na);if(o===-1){if(a.length>0){const l=a[0].split("|").map(u=>u.trim()).filter(Boolean);l.length>0&&(n.xKey=l[0],n.dataKeys=l.slice(1))}n.data=[]}else{const l=a[0].split("|").map(s=>s.trim()).filter(Boolean),u=a.slice(o+1);n.data=u.map(s=>{if(Na(s))return null;const c=s.split("|").map(v=>v.trim()).filter(Boolean);if(!c.length)return null;const d={};return l.forEach((v,m)=>{const h=c[m];typeof h>"u"||(d[v]=h!==""&&!Number.isNaN(Number(h))?Number(h):h)}),d}).filter(Boolean),n.xKey=l[0],n.dataKeys=l.slice(1)}Hp(r,n,!0)}else if(Hp(r,n),Array.isArray(n.data)&&typeof n.data[0]=="number"){const o=n.data,l=n.labels||o.map((u,s)=>`Item ${s+1}`);n.data=o.map((u,s)=>({name:l[s],value:u})),n.xKey="name",n.dataKeys=["value"]}if(n.data=n.data??[],(!n.colors||n.colors.length===0)&&(n.colors=Jr),n.xKey&&Array.isArray(n.data)&&n.data.length>0){const o=n.data[0];if(o&&typeof o=="object"&&!(n.xKey in o)){const l=n.xKey.toLowerCase(),u=Object.keys(o).find(s=>s.toLowerCase()===l);u&&(n.xKey=u)}}return(!n.dataKeys||n.dataKeys.length===0)&&n.series&&n.series.length>0&&(n.dataKeys=n.series.map(o=>{const l=o;return l.key||l.dataKey}).filter(Boolean)),n}catch(r){return console.error("Failed to parse chart config:",r),null}},YF=(e,t)=>{if(!Array.isArray(e)||!e.length)return"category";const r=t||"name",n=e.map(i=>i&&typeof i=="object"?i[r]:void 0).filter(i=>typeof i<"u");return n.length&&n.every(i=>typeof i=="number"&&!Number.isNaN(i))?"number":"category"},ZF=1800,JF=2300,QF=e=>Number.isFinite(e)&&Number.isInteger(e)&&e>=ZF&&e<=JF,Gp=(e,t)=>typeof e!="number"||Number.isNaN(e)?String(e??""):QF(e)?new Intl.NumberFormat(void 0,{useGrouping:!1,maximumFractionDigits:0}).format(e):String(h0(e,t)),h0=(e,t)=>{if(typeof e!="number"||Number.isNaN(e))return e??"";if(!t)return new Intl.NumberFormat().format(e);const{format:r="number",currency:n="USD",decimals:a,minimumFractionDigits:i,maximumFractionDigits:o,prefix:l="",suffix:u=""}=t,s={};typeof a=="number"&&!Number.isNaN(a)?(s.minimumFractionDigits=a,s.maximumFractionDigits=a):(typeof i=="number"&&(s.minimumFractionDigits=i),typeof o=="number"&&(s.maximumFractionDigits=o)),r==="currency"?(s.style="currency",s.currency=n||"USD"):r==="percent"?s.style="percent":r==="compact"?s.notation="compact":s.maximumFractionDigits||(s.maximumFractionDigits=2);const c=new Intl.NumberFormat(void 0,s).format(e);return`${l}${c}${u}`},eV=(e,t)=>{const r=e.dataKeys&&e.dataKeys.length?e.dataKeys.map(l=>({key:l})):[{key:"value"}],a=(e.series&&e.series.length?e.series:r).map(l=>{const u=l;return!l.key&&u.dataKey?{...l,key:u.dataKey}:l}).filter(l=>!!l.key),o={line:"line",area:"area",scatter:"scatter",radar:"radar",funnel:"funnel"}[e.type]??"bar";return a.map((l,u)=>{const s=e.type==="composed"&&l.type||o;return{...l,type:s,key:l.key,name:l.name??l.key,color:l.color??t[u%t.length],yAxisId:l.yAxisId??"left",stackId:typeof l.stackId<"u"?l.stackId:e.stacked?"stack":void 0,strokeWidth:l.strokeWidth??(s==="line"?2:1),dot:typeof l.dot=="boolean"?l.dot:!0,opacity:l.opacity??(s==="area"?.55:1)}})},tV=e=>e!=null&&e.length?e.filter(t=>typeof t.y<"u"||typeof t.x<"u").map((t,r)=>{const n=a=>a==="start"?"insideStart":a==="middle"?"middle":"end";return j.jsx(wx,{y:t.y,x:t.x,stroke:t.color||"#9ca3af",strokeDasharray:t.strokeDasharray||"4 4",label:t.label?{value:t.label,position:n(t.position),fill:t.color||"#4b5563"}:void 0},`reference-${r}`)}):null,Up=(e,t)=>{const r=e.filter(i=>i.yAxisId===t);if(!r.length)return;const n=r.map(i=>i.name||i.key).filter(i=>!!i);return n.length?Array.from(new Set(n)).join(" / "):void 0},or=(e,t)=>{if(!e)return null;const r=t==="right"?20:-20,n=t==="right"?"insideRight":"insideLeft";return j.jsx(ur,{value:e,angle:t==="right"?90:-90,position:n,style:{textAnchor:"middle",fill:Ta.axis,fontSize:12,fontWeight:500},offset:r})},rV=({active:e,payload:t,label:r,formatter:n,labelFormatter:a})=>{if(!e||!(t!=null&&t.length))return null;const i=a?a(r):r;return j.jsxs("div",{role:"tooltip",style:{background:"var(--md-chart-tooltip-bg, #ffffff)",border:"1px solid var(--md-chart-tooltip-border, #e5e7eb)",borderRadius:"8px",padding:"10px 14px",boxShadow:"0 4px 14px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04)",color:"var(--md-chart-tooltip-text, #1f2937)",fontSize:"13px",lineHeight:1.5,maxWidth:"300px",pointerEvents:"none"},children:[i!=null&&i!==""&&j.jsx("div",{style:{fontWeight:600,marginBottom:"6px",borderBottom:"1px solid var(--md-chart-grid, #e5e7eb)",paddingBottom:"5px"},children:String(i)}),t.map((o,l)=>j.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"16px",padding:"2px 0"},children:[j.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"6px",minWidth:0},children:[j.jsx("span",{style:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:o.color??"#6366f1",flexShrink:0,boxShadow:`0 0 0 2px ${o.color??"#6366f1"}33`}}),j.jsx("span",{style:{opacity:.75,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o.name!=null?String(o.name):""})]}),j.jsx("span",{style:{fontWeight:600,fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap"},children:String(h0(o.value,n))})]},l))]})},Ki=({cx:e,cy:t,fill:r,stroke:n})=>typeof e!="number"||typeof t!="number"?null:j.jsxs("g",{children:[j.jsx("circle",{cx:e,cy:t,r:7,fill:r||n||"#6366f1",fillOpacity:.15,stroke:"none"}),j.jsx("circle",{cx:e,cy:t,r:4,fill:"#fff",stroke:n||r||"#6366f1",strokeWidth:2})]}),nV=e=>{const t=e.filter(r=>r.type==="area");return t.length?j.jsx("defs",{children:t.map(r=>j.jsxs("linearGradient",{id:`gradient-${r.key}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[j.jsx("stop",{offset:"0%",stopColor:r.color,stopOpacity:.45}),j.jsx("stop",{offset:"95%",stopColor:r.color,stopOpacity:.03})]},`grad-${r.key}`))}):null},aV=(e,t)=>{const r=[];return r.push(`${e.type} chart`),e.title&&r.push(`titled "${e.title}"`),r.push(`with ${e.data.length} data point${e.data.length!==1?"s":""}`),t.length>1&&r.push(`and ${t.length} series: ${t.map(n=>n.name).join(", ")}`),r.join(" ")},SV=({code:e,language:t})=>{var od,ld,ud,sd,cd;const{t:r}=V0(),[n,a]=f.useState(null),[i,o]=f.useState(null),[l,u]=f.useState(!1),[s,c]=f.useState(!1),[d,v]=f.useState(0),[m,h]=f.useState(new Set),[p,y]=f.useState(!1),[g,b]=f.useState(!1),w=f.useRef(null),x=f.useRef(""),A=f.useRef(0),P=f.useRef(null),S=f.useRef(null);if(f.useEffect(()=>{const C=Date.now(),W=C-A.current,ie=e!==x.current;x.current=e,A.current=C;const Te=p0(e),pe=ie&&W<500&&W>0,Ie=Te||pe,et=pu(e,t),ha=(ze,dt)=>{Ie?(kn(()=>{c(!0),u(!0),a(null),o(null)}),P.current&&clearTimeout(P.current),P.current=setTimeout(()=>{dt(pu(x.current,t))&&(a(ze),u(!1),c(!1))},5e3)):kn(()=>{o(null),a(ze),u(!1),c(!1)})};if(!et){ha("Failed to parse chart configuration",ze=>!ze);return}if(!Array.isArray(et.data)||et.data.length===0){ha("Chart data is empty",ze=>!ze||!Array.isArray(ze.data)||ze.data.length===0);return}if(!et.type){ha("Chart type is required (bar, line, pie, area, scatter, composed)",ze=>!(ze!=null&&ze.type));return}return kn(()=>{c(!1)}),P.current&&(clearTimeout(P.current),P.current=null),Ie?(kn(()=>{u(!0)}),w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{u(!1);const ze=x.current,dt=pu(ze,t);dt&&Array.isArray(dt.data)&&dt.data.length>0&&(a(null),o(dt))},400),kn(()=>{a(null),o(et)})):kn(()=>{u(!1),a(null),o(et)}),()=>{w.current&&clearTimeout(w.current),P.current&&clearTimeout(P.current)}},[e,t]),f.useEffect(()=>{const C=S.current;if(!C||typeof window>"u"||typeof window.ResizeObserver>"u")return;const W=new window.ResizeObserver(ie=>{var pe,Ie;const Te=((Ie=(pe=ie[0])==null?void 0:pe.contentRect)==null?void 0:Ie.width)??0;Te>0&&v(Te)});return W.observe(C),()=>W.disconnect()},[]),n)return j.jsxs("div",{className:"graph-error",role:"alert",children:[j.jsxs("div",{className:"graph-error-header",children:[j.jsx("div",{className:"graph-error-icon","aria-hidden":"true",children:j.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:j.jsx("path",{d:"M10 6v4m0 4h.01M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),j.jsxs("div",{className:"graph-error-content",children:[j.jsx("div",{className:"graph-error-title",children:r("markdown.chart.errorTitle")}),j.jsx("div",{className:"graph-error-message",children:n})]})]}),j.jsxs("details",{style:{marginTop:"4px"},children:[j.jsx("summary",{className:"graph-error-toggle",style:{cursor:"pointer",listStyle:"none",userSelect:"none"},children:r("markdown.chart.showRawSource")}),j.jsx("div",{className:"graph-error-details",children:j.jsx("pre",{children:j.jsx("code",{children:e})})})]})]});if(!i)return j.jsxs("div",{className:"graph-container chart-container",role:"status","aria-label":r("markdown.chart.loadingAriaLabel"),children:[j.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch",width:"100%",padding:"16px 20px",minHeight:"220px",gap:"12px"},children:[j.jsx("div",{style:{height:"16px",width:"40%",borderRadius:"6px",background:"var(--md-chart-grid, #e5e7eb)",opacity:.5,animation:"chartPulse 1.5s ease-in-out infinite"}}),j.jsx("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:"8px",padding:"16px 0 8px",minHeight:"140px"},children:[.45,.7,.55,.85,.6,.4,.75].map((C,W)=>j.jsx("div",{style:{flex:1,height:`${C*100}%`,borderRadius:"4px 4px 0 0",background:"var(--md-chart-grid, #e5e7eb)",opacity:.35,animation:`chartPulse 1.5s ease-in-out ${W*.1}s infinite`}},W))}),j.jsx("div",{style:{height:"1px",background:"var(--md-chart-grid, #e5e7eb)",opacity:.4}}),j.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",color:"var(--md-text-secondary, #6b7280)",fontSize:"13px"},children:[j.jsx("svg",{style:{animation:"chartSpin 1s linear infinite",width:"14px",height:"14px",color:s?"#6366f1":"currentColor"},viewBox:"0 0 24 24",fill:"none",children:j.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"32",strokeLinecap:"round"})}),j.jsx("span",{style:{fontWeight:500},children:s?"Receiving chart data…":"Loading chart…"})]})]}),j.jsx("style",{children:`
90
90
  @keyframes chartSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
91
91
  @keyframes chartPulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.45; } }
92
92
  `})]});const E=i.colors&&i.colors.length?i.colors:Jr,k=eV(i,E),I=k.filter(C=>!m.has(C.key)),T=I.some(C=>C.yAxisId==="right"),D=i.showLegend??(i.type==="pie"||i.type==="funnel"||i.type==="radialbar"||I.length>1),N=i.showGrid??!0,M=tV(i.referenceLines),K=nV(I),_=aV(i,I),U=C=>{h(W=>{const ie=new Set(W);return ie.has(C)?ie.delete(C):ie.size<k.length-1&&ie.add(C),ie})},z=Up(I,"left"),Y=Up(I,"right"),V=i.yAxisLabel??z??"Value",te=T?i.yAxisRightLabel??Y??"Value":void 0,de=Ta.axis,Z=Ta.grid,Ce=Ta.text,Qe=Ta.secondaryText,me={tick:{fill:de},axisLine:{stroke:de},tickLine:{stroke:de}},Ze=(i.xAxisType??(i.type==="scatter"?"number":YF(i.data,i.xKey)))==="category",ae=d>0&&d<640,Kr=i.height||(ae?380:320),Pe=((od=i.data)==null?void 0:od.length)||0,gi=ae?520:720,Bl=i.type==="bar"||i.type==="composed"?ae?92:72:i.type==="line"||i.type==="area"?ae?84:64:ae?64:56,bi=i.width??(Ze?Math.max(gi,Pe*Bl):gi),Wr=(()=>{if(!Ze||!i.data||Pe===0)return{maxLength:0,avgLength:0};const C=i.xKey||"name",W=i.data.map(pe=>{const Ie=pe&&typeof pe=="object"?pe[C]:void 0;return Ie?String(Ie).length:0}).filter(pe=>pe>0);if(W.length===0)return{maxLength:0,avgLength:0};const ie=Math.max(...W),Te=W.reduce((pe,Ie)=>pe+Ie,0)/W.length;return{maxLength:ie,avgLength:Te}})(),An=Ze&&Pe>0?Math.max((bi-48)/Pe,0):0,y0=Ze&&(An<84||An<108&&Wr.maxLength>12),g0=Wr.maxLength*7,Bt=Ze&&(Pe>6||Wr.maxLength>8&&g0>An*.8),zl=Ze&&(y0||Pe>4&&Wr.avgLength>15),b0=An>0?Math.max(Math.floor(An/7),8):1/0,x0=zl?Math.min(Pe>10?12:20,b0):1/0,nd=zl?Pe>10?12:20:Wr.maxLength||0,A0=Ze?((C,W,ie)=>W>0&&(W<68||W<84&&ie>14)?1:W>0&&W<56?2:C<=12?0:C<=16?1:C<=24?Math.floor(C/12):Math.floor(C/15))(Pe,An,Wr.maxLength):0,fa=(()=>{if(!Ze||Pe===0)return 24;const C=24;if(!Bt){const Ie=Math.max(nd-12,0)*1.5;return Math.min(C+Ie,48)}const W=6.5,ie=45*Math.PI/180,Te=nd*W,pe=Math.sin(ie)*Te;return Math.min(Math.max(C,pe+12),140)})(),w0=Bt?Math.min(Math.max(fa+(ae?12:16),ae?64:80),ae?140:160):Math.max(fa+12,ae?32:36),va=Ze?{type:"category",interval:A0,allowDuplicatedCategory:!1,padding:{left:16,right:16},minTickGap:Bt?4:12,angle:Bt?-45:0,textAnchor:Bt?"end":"middle",height:w0}:{type:"number",domain:["dataMin","dataMax"],allowDuplicatedCategory:!0},xi={fill:Z,fillOpacity:.2,strokeWidth:0},zt=C=>j.jsx(rV,{active:C.active,payload:C.payload,label:C.label,formatter:i.formatter,labelFormatter:O0}),Kt=C=>Gp(C,i.formatter),ad=C=>{if(typeof C!="string")return String(C??"");const W=C.trim().toLowerCase(),ie=GF[W];return ie||C},P0=(C,W)=>{if(!C||typeof C!="string")return String(C??"");if(C.length<=W)return C;const ie=C.substring(0,W-3),Te=ie.lastIndexOf(" ");return Te>W*.6?ie.substring(0,Te)+"...":ie+"..."},ma=C=>{if(!Ze)return Gp(C,i.formatter);const W=ad(C);return zl?P0(W,x0):W},O0=C=>Ze?ad(C):String(C??""),Ai=!!i.xAxisLabel,S0=16,E0=Ai?28:10,I0=D?26:6,k0=Bt?Math.min(Math.max(fa-48,0),28):0,j0=Bt&&Ai?16:0,C0=S0+E0+I0+k0+j0,Ar={left:V?ae?68:80:10,right:te?ae?68:80:10,top:10,bottom:C0},id=Bt?Math.min(Math.max(fa-60,0),36):0,pa=Ai?{value:i.xAxisLabel,position:"bottom",offset:id}:void 0,Kl=Bt&&Wr.avgLength>20,T0={color:Ce,marginTop:Ai?(ae?12:16)+id:ae?8:12,paddingTop:Bt?Math.min(Math.max(fa-50,8),ae?22:30):8,display:"flex",justifyContent:"center",flexWrap:"wrap",gap:Kl?"6px":ae?"8px":"14px",flexDirection:Kl?"column":"row",alignItems:Kl?"center":void 0},Wt=C=>C.payload?j.jsx("div",{style:T0,role:"list","aria-label":r("markdown.chart.legendAriaLabel"),children:C.payload.map((W,ie)=>{const Te=String(W.dataKey??W.value??ie),pe=m.has(Te);return j.jsxs("button",{type:"button",role:"listitem",onClick:()=>U(Te),"aria-pressed":!pe,"aria-label":`${pe?"Show":"Hide"} ${W.value??""}`,style:{display:"inline-flex",alignItems:"center",gap:"6px",cursor:"pointer",background:"none",border:"none",padding:"3px 6px",borderRadius:"4px",fontSize:"12px",color:Ce,opacity:pe?.35:1,textDecoration:pe?"line-through":"none",transition:"opacity 0.2s, background 0.15s"},onMouseEnter:Ie=>{Ie.currentTarget.style.background="var(--md-chart-grid, #f3f4f6)"},onMouseLeave:Ie=>{Ie.currentTarget.style.background="none"},children:[j.jsx("span",{style:{width:"10px",height:"10px",borderRadius:"2px",backgroundColor:W.color??"#6366f1",flexShrink:0,opacity:pe?.3:1,transition:"opacity 0.2s"}}),W.value]},ie)})}):null,D0=async()=>{var md;const C=(md=S.current)==null?void 0:md.querySelector("svg");if(!C)return;b(!0);const W="http://www.w3.org/2000/svg",ie='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif',Te=C.getBoundingClientRect(),pe=parseFloat(C.getAttribute("width")||"0")||Math.max(Te.width,400),Ie=parseFloat(C.getAttribute("height")||"0")||Math.max(Te.height,200),et=i.title?32:0,ha=i.description?20:0,ze=et+ha,dt=D?i.type==="pie"||i.type==="radialbar"||i.type==="funnel"?i.data.map((oe,Oi)=>({name:String(oe[i.xKey||"name"]??`Item ${Oi+1}`),color:E[Oi%E.length]})):I.map(oe=>({name:oe.name,color:oe.color})):[],Wl=130,dd=22,fd=10,ya=Math.max(1,Math.floor(pe/Wl)),vd=dt.length>0?Math.ceil(dt.length/ya):0,$0=vd>0?vd*dd+fd:0,Fr=pe,wi=ze+Ie+$0,wr=oe=>document.createElementNS(W,oe),Ft=wr("svg");Ft.setAttribute("xmlns",W),Ft.setAttribute("width",String(Fr)),Ft.setAttribute("height",String(wi)),Ft.setAttribute("viewBox",`0 0 ${Fr} ${wi}`);const Pi=wr("rect");if(Pi.setAttribute("width",String(Fr)),Pi.setAttribute("height",String(wi)),Pi.setAttribute("fill","#ffffff"),Ft.appendChild(Pi),i.title){const oe=wr("text");oe.setAttribute("x",String(Fr/2)),oe.setAttribute("y","22"),oe.setAttribute("text-anchor","middle"),oe.setAttribute("font-family",ie),oe.setAttribute("font-size","16"),oe.setAttribute("font-weight","600"),oe.setAttribute("fill","#111827"),oe.textContent=i.title,Ft.appendChild(oe)}if(i.description){const oe=wr("text");oe.setAttribute("x",String(Fr/2)),oe.setAttribute("y",String(et+15)),oe.setAttribute("text-anchor","middle"),oe.setAttribute("font-family",ie),oe.setAttribute("font-size","12"),oe.setAttribute("fill","#6b7280"),oe.textContent=i.description,Ft.appendChild(oe)}const Fl=wr("g");if(Fl.setAttribute("transform",`translate(0, ${ze})`),Array.from(C.childNodes).forEach(oe=>Fl.appendChild(oe.cloneNode(!0))),Ft.appendChild(Fl),dt.length>0){const oe=wr("g"),Oi=ze+Ie+fd;dt.forEach((pd,hd)=>{const yd=Math.floor(hd/ya),R0=hd%ya,M0=Math.min(ya,dt.length-yd*ya),gd=(Fr-M0*Wl)/2+R0*Wl,bd=Oi+yd*dd,Vr=wr("rect");Vr.setAttribute("x",String(gd)),Vr.setAttribute("y",String(bd)),Vr.setAttribute("width","10"),Vr.setAttribute("height","10"),Vr.setAttribute("rx","2"),Vr.setAttribute("fill",pd.color),oe.appendChild(Vr);const Hr=wr("text");Hr.setAttribute("x",String(gd+14)),Hr.setAttribute("y",String(bd+9)),Hr.setAttribute("font-family",ie),Hr.setAttribute("font-size","12"),Hr.setAttribute("fill","#374151"),Hr.textContent=pd.name,oe.appendChild(Hr)}),Ft.appendChild(oe)}const L0=`${(i.title||"chart").replace(/\s+/g,"-").toLowerCase()}.png`;await W0(Ft,L0,{w:Fr,h:wi}),b(!1)};return j.jsx(j.Fragment,{children:j.jsxs("div",{className:"graph-container chart-container",role:"figure","aria-label":_,tabIndex:0,style:{flexDirection:"column",alignItems:"stretch",position:"relative"},children:[j.jsxs("div",{className:"graph-action-bar",children:[j.jsxs("button",{className:"graph-action-button",type:"button",onClick:()=>K0(e,y),title:r(p?"markdown.codeBlock.copied":"markdown.codeBlock.copyTitle"),"aria-label":r("markdown.chart.copyCodeAriaLabel"),children:[p?j.jsx("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",children:j.jsx("path",{d:"M13.5 4.5L6 12L2.5 8.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):j.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",children:[j.jsx("path",{d:"M5.5 4.5H3.5C2.94772 4.5 2.5 4.94772 2.5 5.5V12.5C2.5 13.0523 2.94772 13.5 3.5 13.5H10.5C11.0523 13.5 11.5 13.0523 11.5 12.5V10.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),j.jsx("path",{d:"M13.5 9.5V3.5C13.5 2.94772 13.0523 2.5 12.5 2.5H6.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),j.jsx("span",{children:r(p?"markdown.codeBlock.copied":"markdown.codeBlock.copyLabel")})]}),j.jsxs("button",{className:"graph-action-button",type:"button",onClick:D0,title:r("markdown.chart.exportPngTitle"),"aria-label":r("markdown.chart.exportPngAriaLabel"),disabled:g,children:[j.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",children:[j.jsx("path",{d:"M8 2v8M5 7l3 3 3-3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),j.jsx("path",{d:"M3 11v2a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),j.jsx("span",{children:g?"Exporting…":"PNG"})]})]}),l&&j.jsx("div",{className:"md-expandable-actions","aria-live":"polite",children:j.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"4px 10px",backgroundColor:"rgba(99, 102, 241, 0.08)",borderRadius:"6px",fontSize:"12px",color:"#6366f1",fontWeight:500},children:[j.jsx("svg",{style:{animation:"chartSpin 1s linear infinite",marginRight:"6px",width:"12px",height:"12px"},viewBox:"0 0 24 24",fill:"none",children:j.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"32",strokeLinecap:"round"})}),"Updating\\u2026",j.jsx("style",{children:`
@@ -94,4 +94,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
94
94
  from { transform: rotate(0deg); }
95
95
  to { transform: rotate(360deg); }
96
96
  }
97
- `})]})}),i.title&&j.jsx("h4",{style:{textAlign:"center",marginBottom:i.description?"4px":"12px",marginTop:0,color:Ce,fontWeight:600,background:"transparent"},children:i.title}),i.description&&j.jsx("p",{style:{textAlign:"center",marginTop:0,marginBottom:"12px",color:Qe,fontSize:"0.9rem"},children:i.description}),j.jsx("div",{ref:S,style:{width:"100%",overflowX:"auto",overflowY:"hidden"},children:j.jsx("div",{style:{minWidth:"100%"},children:j.jsxs(tE,{width:bi,height:Kr,children:[i.type==="bar"&&i.layout!=="horizontal"&&j.jsxs(Ap,{data:i.data,margin:Ar,barCategoryGap:"20%",children:[N&&j.jsx(Yr,{strokeDasharray:"3 3",stroke:Z,vertical:!1}),j.jsx(Zr,{dataKey:i.xKey||"name",label:pa,...me,...va,tickFormatter:ma}),j.jsx(It,{yAxisId:"left",width:ae?68:80,tickFormatter:Kt,...me,children:or(V,"left")}),T&&j.jsx(It,{yAxisId:"right",orientation:"right",width:ae?68:80,tickFormatter:Kt,...me,children:or(te,"right")}),j.jsx(Ht,{content:zt,cursor:xi}),D&&j.jsx(St,{content:Wt}),I.map(C=>j.jsx(qi,{name:C.name,dataKey:C.key,fill:C.color,stackId:C.stackId,yAxisId:C.yAxisId,radius:[4,4,0,0],animationDuration:he.duration,animationEasing:he.easing},C.key)),M]}),i.type==="bar"&&i.layout==="horizontal"&&j.jsxs(Ap,{data:i.data,layout:"vertical",margin:{...Ar,left:ae?100:120},barCategoryGap:"20%",children:[N&&j.jsx(Yr,{strokeDasharray:"3 3",stroke:Z,horizontal:!1}),j.jsx(Zr,{type:"number",tickFormatter:Kt,...me}),j.jsx(It,{type:"category",dataKey:i.xKey||"name",width:ae?100:120,...me,tick:{fill:de,fontSize:ae?11:12}}),j.jsx(Ht,{content:zt,cursor:xi}),D&&j.jsx(St,{content:Wt}),I.map(C=>j.jsx(qi,{name:C.name,dataKey:C.key,fill:C.color,stackId:C.stackId,radius:[0,4,4,0],animationDuration:he.duration,animationEasing:he.easing},C.key)),M]}),i.type==="line"&&j.jsxs(AW,{data:i.data,margin:Ar,children:[N&&j.jsx(Yr,{strokeDasharray:"3 3",stroke:Z,vertical:!1}),j.jsx(Zr,{dataKey:i.xKey||"name",label:pa,...me,...va,tickFormatter:ma}),j.jsx(It,{yAxisId:"left",width:ae?68:80,tickFormatter:Kt,...me,children:or(V,"left")}),T&&j.jsx(It,{yAxisId:"right",orientation:"right",width:ae?68:80,tickFormatter:Kt,...me,children:or(te,"right")}),j.jsx(Ht,{content:zt,cursor:{stroke:Z,strokeDasharray:"4 4"}}),D&&j.jsx(St,{content:Wt}),I.map(C=>j.jsx(Yu,{name:C.name,type:"monotone",dataKey:C.key,stroke:C.color,yAxisId:C.yAxisId,strokeWidth:C.strokeWidth,dot:C.dot?{r:3,strokeWidth:2,fill:"#fff"}:!1,activeDot:j.jsx(Ki,{stroke:C.color}),animationDuration:he.duration,animationEasing:he.easing},C.key)),M]}),i.type==="area"&&j.jsxs(UW,{data:i.data,margin:Ar,children:[K,N&&j.jsx(Yr,{strokeDasharray:"3 3",stroke:Z,vertical:!1}),j.jsx(Zr,{dataKey:i.xKey||"name",label:pa,...me,...va,tickFormatter:ma}),j.jsx(It,{yAxisId:"left",width:ae?68:80,tickFormatter:Kt,...me,children:or(V,"left")}),T&&j.jsx(It,{yAxisId:"right",orientation:"right",width:ae?68:80,tickFormatter:Kt,...me,children:or(te,"right")}),j.jsx(Ht,{content:zt,cursor:{stroke:Z,strokeDasharray:"4 4"}}),D&&j.jsx(St,{content:Wt}),I.map(C=>j.jsx(Zu,{name:C.name,type:"monotone",dataKey:C.key,stroke:C.color,strokeWidth:2,yAxisId:C.yAxisId,fill:`url(#gradient-${C.key})`,fillOpacity:1,stackId:C.stackId,activeDot:j.jsx(Ki,{stroke:C.color}),animationDuration:he.duration,animationEasing:he.easing},C.key)),M]}),i.type==="composed"&&j.jsxs(tF,{data:i.data,margin:Ar,children:[K,N&&j.jsx(Yr,{strokeDasharray:"3 3",stroke:Z,vertical:!1}),j.jsx(Zr,{dataKey:i.xKey||"name",label:pa,...me,...va,tickFormatter:ma}),j.jsx(It,{yAxisId:"left",width:ae?68:80,tickFormatter:Kt,...me,children:or(V,"left")}),T&&j.jsx(It,{yAxisId:"right",orientation:"right",width:ae?68:80,tickFormatter:Kt,...me,children:or(te,"right")}),j.jsx(Ht,{content:zt,cursor:xi}),D&&j.jsx(St,{content:Wt}),I.map(C=>{switch(C.type){case"line":return j.jsx(Yu,{name:C.name,type:"monotone",dataKey:C.key,stroke:C.color,yAxisId:C.yAxisId,strokeWidth:C.strokeWidth,dot:C.dot?{r:3,strokeWidth:2,fill:"#fff"}:!1,activeDot:j.jsx(Ki,{stroke:C.color}),animationDuration:he.duration,animationEasing:he.easing},C.key);case"area":return j.jsx(Zu,{name:C.name,type:"monotone",dataKey:C.key,stroke:C.color,strokeWidth:2,yAxisId:C.yAxisId,fill:`url(#gradient-${C.key})`,fillOpacity:1,stackId:C.stackId,activeDot:j.jsx(Ki,{stroke:C.color}),animationDuration:he.duration,animationEasing:he.easing},C.key);case"scatter":return j.jsx(ts,{name:C.name,dataKey:C.key,fill:C.color,yAxisId:C.yAxisId,animationDuration:he.duration,animationEasing:he.easing},C.key);default:return j.jsx(qi,{name:C.name,dataKey:C.key,fill:C.color,stackId:C.stackId,yAxisId:C.yAxisId,radius:[4,4,0,0],animationDuration:he.duration,animationEasing:he.easing},C.key)}}),M]}),i.type==="pie"&&(()=>{var Te,pe;const C=i.data.length>5,W=i.outerRadius??Kr/3,ie=i.innerRadius??Kr/6;return j.jsxs(NW,{children:[j.jsx(Jb,{data:i.data,dataKey:((Te=I[0])==null?void 0:Te.key)||((pe=i.dataKeys)==null?void 0:pe[0])||"value",nameKey:i.xKey||"name",cx:"50%",cy:"50%",outerRadius:W,innerRadius:ie,paddingAngle:2,strokeWidth:0,label:C?!1:({name:Ie,percent:et})=>`${Ie??""} ${((et??0)*100).toFixed(1)}%`,labelLine:C?!1:{stroke:de,strokeWidth:1},animationDuration:he.duration,animationEasing:he.easing,children:i.data.map((Ie,et)=>j.jsx(Lr,{fill:E[et%E.length]},`cell-${et}`))}),j.jsx(Ht,{content:zt}),j.jsx(St,{content:Wt})]})})(),i.type==="scatter"&&j.jsxs(HW,{margin:Ar,children:[N&&j.jsx(Yr,{strokeDasharray:"3 3",stroke:Z}),j.jsx(Zr,{dataKey:i.xKey||"x",label:pa,...me,...va,tickFormatter:ma}),j.jsx(It,{dataKey:((ld=I[0])==null?void 0:ld.key)||((ud=i.dataKeys)==null?void 0:ud[0])||"y",width:ae?68:80,tickFormatter:Kt,...me,children:or(V,"left")}),j.jsx(Ht,{content:zt,cursor:xi}),D&&j.jsx(St,{content:Wt}),I.map(C=>j.jsx(ts,{name:C.name,data:i.data,fill:C.color,animationDuration:he.duration,animationEasing:he.easing},C.key)),M]}),i.type==="radar"&&j.jsxs(FW,{cx:"50%",cy:"50%",outerRadius:"72%",data:i.data,children:[j.jsx(Hu,{stroke:Z}),j.jsx(Gu,{dataKey:i.xKey||"name",tick:{fill:de,fontSize:12}}),j.jsx(Vb,{axisLine:!1,tick:{fill:Qe,fontSize:10}}),I.map(C=>j.jsx(ax,{name:C.name,dataKey:C.key,stroke:C.color,fill:C.color,fillOpacity:.25,strokeWidth:2,animationDuration:he.duration,animationEasing:he.easing},C.key)),j.jsx(Ht,{content:zt}),D&&j.jsx(St,{content:Wt})]}),i.type==="funnel"&&j.jsxs(HF,{margin:Ar,children:[j.jsx(v0,{dataKey:((sd=I[0])==null?void 0:sd.key)||"value",data:i.data.map((C,W)=>({...C,fill:(i.colors??Jr)[W%(i.colors??Jr).length]})),isAnimationActive:!0,animationDuration:he.duration,animationEasing:he.easing,children:j.jsx(La,{dataKey:i.xKey||"name",position:"center",style:{fill:"#fff",fontWeight:600,fontSize:13}})}),j.jsx(Ht,{content:zt}),D&&j.jsx(St,{content:Wt})]}),i.type==="radialbar"&&j.jsxs(QW,{cx:"50%",cy:"50%",innerRadius:"20%",outerRadius:"90%",data:i.data.map((C,W)=>({...C,fill:(i.colors??Jr)[W%(i.colors??Jr).length]})),margin:Ar,children:[j.jsx(Hu,{stroke:Z,gridType:"circle"}),j.jsx(Gu,{type:"number",tick:!1}),j.jsx(yx,{dataKey:((cd=I[0])==null?void 0:cd.key)||"value",background:{fill:Z},cornerRadius:4,label:{position:"insideStart",fill:"#fff",fontWeight:600,fontSize:12},animationDuration:he.duration,animationEasing:he.easing}),j.jsx(Ht,{content:zt}),D&&j.jsx(St,{content:Wt})]})]})})})]})})};export{OV as ChartRenderer};
97
+ `})]})}),i.title&&j.jsx("h4",{style:{textAlign:"center",marginBottom:i.description?"4px":"12px",marginTop:0,color:Ce,fontWeight:600,background:"transparent"},children:i.title}),i.description&&j.jsx("p",{style:{textAlign:"center",marginTop:0,marginBottom:"12px",color:Qe,fontSize:"0.9rem"},children:i.description}),j.jsx("div",{ref:S,style:{width:"100%",overflowX:"auto",overflowY:"hidden"},children:j.jsx("div",{style:{minWidth:"100%"},children:j.jsxs(tE,{width:bi,height:Kr,children:[i.type==="bar"&&i.layout!=="horizontal"&&j.jsxs(Ap,{data:i.data,margin:Ar,barCategoryGap:"20%",children:[N&&j.jsx(Yr,{strokeDasharray:"3 3",stroke:Z,vertical:!1}),j.jsx(Zr,{dataKey:i.xKey||"name",label:pa,...me,...va,tickFormatter:ma}),j.jsx(It,{yAxisId:"left",width:ae?68:80,tickFormatter:Kt,...me,children:or(V,"left")}),T&&j.jsx(It,{yAxisId:"right",orientation:"right",width:ae?68:80,tickFormatter:Kt,...me,children:or(te,"right")}),j.jsx(Ht,{content:zt,cursor:xi}),D&&j.jsx(St,{content:Wt}),I.map(C=>j.jsx(qi,{name:C.name,dataKey:C.key,fill:C.color,stackId:C.stackId,yAxisId:C.yAxisId,radius:[4,4,0,0],animationDuration:he.duration,animationEasing:he.easing},C.key)),M]}),i.type==="bar"&&i.layout==="horizontal"&&j.jsxs(Ap,{data:i.data,layout:"vertical",margin:{...Ar,left:ae?100:120},barCategoryGap:"20%",children:[N&&j.jsx(Yr,{strokeDasharray:"3 3",stroke:Z,horizontal:!1}),j.jsx(Zr,{type:"number",tickFormatter:Kt,...me}),j.jsx(It,{type:"category",dataKey:i.xKey||"name",width:ae?100:120,...me,tick:{fill:de,fontSize:ae?11:12}}),j.jsx(Ht,{content:zt,cursor:xi}),D&&j.jsx(St,{content:Wt}),I.map(C=>j.jsx(qi,{name:C.name,dataKey:C.key,fill:C.color,stackId:C.stackId,radius:[0,4,4,0],animationDuration:he.duration,animationEasing:he.easing},C.key)),M]}),i.type==="line"&&j.jsxs(AW,{data:i.data,margin:Ar,children:[N&&j.jsx(Yr,{strokeDasharray:"3 3",stroke:Z,vertical:!1}),j.jsx(Zr,{dataKey:i.xKey||"name",label:pa,...me,...va,tickFormatter:ma}),j.jsx(It,{yAxisId:"left",width:ae?68:80,tickFormatter:Kt,...me,children:or(V,"left")}),T&&j.jsx(It,{yAxisId:"right",orientation:"right",width:ae?68:80,tickFormatter:Kt,...me,children:or(te,"right")}),j.jsx(Ht,{content:zt,cursor:{stroke:Z,strokeDasharray:"4 4"}}),D&&j.jsx(St,{content:Wt}),I.map(C=>j.jsx(Yu,{name:C.name,type:"monotone",dataKey:C.key,stroke:C.color,yAxisId:C.yAxisId,strokeWidth:C.strokeWidth,dot:C.dot?{r:3,strokeWidth:2,fill:"#fff"}:!1,activeDot:j.jsx(Ki,{stroke:C.color}),animationDuration:he.duration,animationEasing:he.easing},C.key)),M]}),i.type==="area"&&j.jsxs(UW,{data:i.data,margin:Ar,children:[K,N&&j.jsx(Yr,{strokeDasharray:"3 3",stroke:Z,vertical:!1}),j.jsx(Zr,{dataKey:i.xKey||"name",label:pa,...me,...va,tickFormatter:ma}),j.jsx(It,{yAxisId:"left",width:ae?68:80,tickFormatter:Kt,...me,children:or(V,"left")}),T&&j.jsx(It,{yAxisId:"right",orientation:"right",width:ae?68:80,tickFormatter:Kt,...me,children:or(te,"right")}),j.jsx(Ht,{content:zt,cursor:{stroke:Z,strokeDasharray:"4 4"}}),D&&j.jsx(St,{content:Wt}),I.map(C=>j.jsx(Zu,{name:C.name,type:"monotone",dataKey:C.key,stroke:C.color,strokeWidth:2,yAxisId:C.yAxisId,fill:`url(#gradient-${C.key})`,fillOpacity:1,stackId:C.stackId,activeDot:j.jsx(Ki,{stroke:C.color}),animationDuration:he.duration,animationEasing:he.easing},C.key)),M]}),i.type==="composed"&&j.jsxs(tF,{data:i.data,margin:Ar,children:[K,N&&j.jsx(Yr,{strokeDasharray:"3 3",stroke:Z,vertical:!1}),j.jsx(Zr,{dataKey:i.xKey||"name",label:pa,...me,...va,tickFormatter:ma}),j.jsx(It,{yAxisId:"left",width:ae?68:80,tickFormatter:Kt,...me,children:or(V,"left")}),T&&j.jsx(It,{yAxisId:"right",orientation:"right",width:ae?68:80,tickFormatter:Kt,...me,children:or(te,"right")}),j.jsx(Ht,{content:zt,cursor:xi}),D&&j.jsx(St,{content:Wt}),I.map(C=>{switch(C.type){case"line":return j.jsx(Yu,{name:C.name,type:"monotone",dataKey:C.key,stroke:C.color,yAxisId:C.yAxisId,strokeWidth:C.strokeWidth,dot:C.dot?{r:3,strokeWidth:2,fill:"#fff"}:!1,activeDot:j.jsx(Ki,{stroke:C.color}),animationDuration:he.duration,animationEasing:he.easing},C.key);case"area":return j.jsx(Zu,{name:C.name,type:"monotone",dataKey:C.key,stroke:C.color,strokeWidth:2,yAxisId:C.yAxisId,fill:`url(#gradient-${C.key})`,fillOpacity:1,stackId:C.stackId,activeDot:j.jsx(Ki,{stroke:C.color}),animationDuration:he.duration,animationEasing:he.easing},C.key);case"scatter":return j.jsx(ts,{name:C.name,dataKey:C.key,fill:C.color,yAxisId:C.yAxisId,animationDuration:he.duration,animationEasing:he.easing},C.key);default:return j.jsx(qi,{name:C.name,dataKey:C.key,fill:C.color,stackId:C.stackId,yAxisId:C.yAxisId,radius:[4,4,0,0],animationDuration:he.duration,animationEasing:he.easing},C.key)}}),M]}),i.type==="pie"&&(()=>{var Te,pe;const C=i.data.length>5,W=i.outerRadius??Kr/3,ie=i.innerRadius??Kr/6;return j.jsxs(NW,{children:[j.jsx(Jb,{data:i.data,dataKey:((Te=I[0])==null?void 0:Te.key)||((pe=i.dataKeys)==null?void 0:pe[0])||"value",nameKey:i.xKey||"name",cx:"50%",cy:"50%",outerRadius:W,innerRadius:ie,paddingAngle:2,strokeWidth:0,label:C?!1:({name:Ie,percent:et})=>`${Ie??""} ${((et??0)*100).toFixed(1)}%`,labelLine:C?!1:{stroke:de,strokeWidth:1},animationDuration:he.duration,animationEasing:he.easing,children:i.data.map((Ie,et)=>j.jsx(Lr,{fill:E[et%E.length]},`cell-${et}`))}),j.jsx(Ht,{content:zt}),j.jsx(St,{content:Wt})]})})(),i.type==="scatter"&&j.jsxs(HW,{margin:Ar,children:[N&&j.jsx(Yr,{strokeDasharray:"3 3",stroke:Z}),j.jsx(Zr,{dataKey:i.xKey||"x",label:pa,...me,...va,tickFormatter:ma}),j.jsx(It,{dataKey:((ld=I[0])==null?void 0:ld.key)||((ud=i.dataKeys)==null?void 0:ud[0])||"y",width:ae?68:80,tickFormatter:Kt,...me,children:or(V,"left")}),j.jsx(Ht,{content:zt,cursor:xi}),D&&j.jsx(St,{content:Wt}),I.map(C=>j.jsx(ts,{name:C.name,data:i.data,fill:C.color,animationDuration:he.duration,animationEasing:he.easing},C.key)),M]}),i.type==="radar"&&j.jsxs(FW,{cx:"50%",cy:"50%",outerRadius:"72%",data:i.data,children:[j.jsx(Hu,{stroke:Z}),j.jsx(Gu,{dataKey:i.xKey||"name",tick:{fill:de,fontSize:12}}),j.jsx(Vb,{axisLine:!1,tick:{fill:Qe,fontSize:10}}),I.map(C=>j.jsx(ax,{name:C.name,dataKey:C.key,stroke:C.color,fill:C.color,fillOpacity:.25,strokeWidth:2,animationDuration:he.duration,animationEasing:he.easing},C.key)),j.jsx(Ht,{content:zt}),D&&j.jsx(St,{content:Wt})]}),i.type==="funnel"&&j.jsxs(HF,{margin:Ar,children:[j.jsx(v0,{dataKey:((sd=I[0])==null?void 0:sd.key)||"value",data:i.data.map((C,W)=>({...C,fill:(i.colors??Jr)[W%(i.colors??Jr).length]})),isAnimationActive:!0,animationDuration:he.duration,animationEasing:he.easing,children:j.jsx(La,{dataKey:i.xKey||"name",position:"center",style:{fill:"#fff",fontWeight:600,fontSize:13}})}),j.jsx(Ht,{content:zt}),D&&j.jsx(St,{content:Wt})]}),i.type==="radialbar"&&j.jsxs(QW,{cx:"50%",cy:"50%",innerRadius:"20%",outerRadius:"90%",data:i.data.map((C,W)=>({...C,fill:(i.colors??Jr)[W%(i.colors??Jr).length]})),margin:Ar,children:[j.jsx(Hu,{stroke:Z,gridType:"circle"}),j.jsx(Gu,{type:"number",tick:!1}),j.jsx(yx,{dataKey:((cd=I[0])==null?void 0:cd.key)||"value",background:{fill:Z},cornerRadius:4,label:{position:"insideStart",fill:"#fff",fontWeight:600,fontSize:12},animationDuration:he.duration,animationEasing:he.easing}),j.jsx(Ht,{content:zt}),D&&j.jsx(St,{content:Wt})]})]})})})]})})};export{SV as ChartRenderer};