efficient-shell 13.2.0 → 13.3.0

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 (68) hide show
  1. package/README.md +24 -0
  2. package/dist/{Browser-4EHTMBVV.js → Browser-6AMU7CO6.js} +13 -13
  3. package/dist/{Files-YBSAMV7M.js → Files-A2CMMC3V.js} +129 -129
  4. package/dist/{Notepad-ALH25S46.js → Notepad-OSNFXAAX.js} +9 -9
  5. package/dist/{Preview-NITJ3PW4.js → Preview-HJ5ALIUV.js} +10 -10
  6. package/dist/ai/index.d.ts +1 -1
  7. package/dist/ai/index.js +30 -30
  8. package/dist/apps/index.js +1 -1
  9. package/dist/bin/browser-check.js +1 -1
  10. package/dist/bin/media-host-check.js +1 -1
  11. package/dist/bin/ui-check.js +1 -1
  12. package/dist/brand-icon-names-hvdry30t.d.ts +16 -0
  13. package/dist/brand-name-mark-C6QfxDHR.d.ts +8 -0
  14. package/dist/charts/PieChart.js +1 -1
  15. package/dist/charts/RadarChart.js +1 -1
  16. package/dist/charts/RadialBarChart.js +1 -1
  17. package/dist/charts/SpecChart.js +1 -1
  18. package/dist/charts/TimeSeriesChart.js +1 -1
  19. package/dist/chunk-3JSU5YOC.js +2 -0
  20. package/dist/chunk-6GDVURG7.js +1 -0
  21. package/dist/{chunk-JTMR3EH3.js → chunk-767USLF5.js} +4 -4
  22. package/dist/{chunk-DYOFTZOC.js → chunk-CUJA3HBZ.js} +2 -2
  23. package/dist/{chunk-VHY2Y456.js → chunk-LVKNDMRU.js} +1 -1
  24. package/dist/{chunk-DGFFDZCY.js → chunk-OZV5P5A7.js} +5 -5
  25. package/dist/{chunk-S7CWKKNP.js → chunk-PKRXSIRG.js} +1 -1
  26. package/dist/{chunk-L2OPI4MY.js → chunk-PLD54WSR.js} +1 -1
  27. package/dist/chunk-RQGLDRRF.js +1 -0
  28. package/dist/chunk-RQVP7CBW.js +1 -0
  29. package/dist/chunk-SKMXSDRJ.js +1 -0
  30. package/dist/chunk-SMV73U67.js +1 -0
  31. package/dist/{chunk-KZQRUVII.js → chunk-TZBNN6HD.js} +5 -5
  32. package/dist/{chunk-EEFUXXYJ.js → chunk-UF76AFFY.js} +13 -13
  33. package/dist/{chunk-LPAOHDUE.js → chunk-WAKWESOR.js} +1 -1
  34. package/dist/{chunk-E4PDXAYG.js → chunk-Y7ZYBVGD.js} +1 -1
  35. package/dist/{chunk-APGIPXR7.js → chunk-YHABPVWU.js} +2 -2
  36. package/dist/chunk-ZOVCLEDH.js +1 -0
  37. package/dist/forms/MediaLibrary.js +1 -1
  38. package/dist/forms/Select.d.ts +1 -1
  39. package/dist/forms/TextToolbar.d.ts +1 -1
  40. package/dist/forms/textAlign.d.ts +1 -1
  41. package/dist/icons/brands.d.ts +10 -0
  42. package/dist/icons/brands.js +1 -0
  43. package/dist/icons/brands.node.d.ts +10 -0
  44. package/dist/icons/brands.node.js +1 -0
  45. package/dist/icons/efficient-glyphs.js +1 -1
  46. package/dist/icons/efficient-looks.js +1 -1
  47. package/dist/icons/efficient-meanings.d.ts +1 -1
  48. package/dist/icons/efficient-meanings.js +1 -1
  49. package/dist/icons/efficient.js +1 -1
  50. package/dist/icons/index.d.ts +3 -2
  51. package/dist/icons/index.js +1 -1
  52. package/dist/icons/looks/map.js +1 -1
  53. package/dist/icons/payment.d.ts +16 -2
  54. package/dist/icons/payment.js +4 -4
  55. package/dist/icons/sets.js +1 -1
  56. package/dist/index.d.ts +2 -1
  57. package/dist/index.js +77 -77
  58. package/dist/{names-F-LVocCZ.d.ts → names-DWEZVpDv.d.ts} +1 -11
  59. package/dist/shell/LanguageSelect.js +1 -1
  60. package/dist/shell/Markdown.d.ts +1 -1
  61. package/dist/telemetry/index.js +1 -1
  62. package/dist/templates/DashboardTemplate.js +1 -1
  63. package/dist/ui/index.d.ts +2 -1
  64. package/dist/ui/index.js +1 -1
  65. package/dist/version.js +1 -1
  66. package/package.json +7 -1
  67. package/dist/chunk-RHI37D5L.js +0 -1
  68. package/dist/chunk-YIYIYFE4.js +0 -1
@@ -1,8 +1,8 @@
1
- import{arcPath as e}from"./chunk-VFC6QUEN.js";import{MOTION as t,stagger as l}from"./chunk-465RRWBY.js";import{useHighlight as a}from"./chunk-CNYAHYE6.js";import{usePlotWidth as r}from"./chunk-MAFUXCPZ.js";import{angleScale as n}from"./chunk-2JWPNR2U.js";import{ChartTooltip as o}from"./chunk-WDQI3FV6.js";import{CHART_INK as s,resolveSeriesColor as i}from"./chunk-TZFACUMR.js";import{useShellStrings as h,useShellLocale as c}from"./chunk-DEJIH3ZQ.js";import{formatPercent as m,formatPlain as u}from"./chunk-C3QOHMR6.js";import{useId as d,useState as f,useRef as y}from"react";import{jsx as p,jsxs as g}from"react/jsx-runtime";function x({segments:x,variant:v="pie",size:k=280,innerRadius:M,padAngle:b=.012,maxSegments:N=6,otherLabel:I,formatValue:$,centerLabel:j,animate:F=!0,labels:w="none",labelMinShare:P=.04,className:S,emptyLabel:A}){const C=h().charts,W=c(),E=$??(e=>u(e,W)),R=I??C.other,z=A??C.nothingToBreakDown,T=d(),[V,_]=f(null),{highlighted:L}=a(),Q=y(null),U=r(Q,Number.POSITIVE_INFINITY),Y=x.map((e,t)=>({...e,slot:t})).filter(e=>e.value>0);if(0===Y.length)/* @__PURE__ */return p("p",{className:`text-sm text-gray-500 ${S??""}`,children:z});const B=[...Y].sort((e,t)=>t.value-e.value),D=B.slice(0,N),H=B.slice(N),O=H.length>0?[...D,{key:"__other__",label:R,value:H.reduce((e,t)=>e+t.value,0),slot:-1,color:s.muted}]:D,Z=e=>i(e.slot,e.color,e.tone),J=O.reduce((e,t)=>e+t.value,0),q=Math.ceil(.62*Math.max(...O.map(e=>String(e.label).length),4)*11)+24,X="outside"===w&&U>=120+2*q,G=X?q:0,K=X?Math.max(120,Math.min(k,U-2*G)):k,ee=K+2*G,te=G+K/2,le=K/2,ae=K/2-12,re=M??("ring"===v?.58*ae:0),ne=n(O.length,b),oe=Math.max(...O.map(e=>e.value)),se=e=>re+(ae-re)*Math.sqrt(Math.max(0,e)/oe);let ie=-Math.PI/2;const he=(()=>{if(!X)return[];let e=-Math.PI/2;const t=O.map((t,l)=>{const a="rose"===v?n(O.length,b).step:t.value/J*Math.PI*2,r="rose"===v?n(O.length,b).center(l):e+a/2;e+=a;const o="rose"===v?se(t.value):ae;return{key:t.key,label:t.label,share:t.value/J,right:Math.cos(r)>=0,anchor:[te+o*Math.cos(r),le+o*Math.sin(r)],y:le+(o+14)*Math.sin(r),index:l}}).filter(e=>e.share>=P),l=Math.max(1,Math.floor((K-11-13)/26)+1),a=/* @__PURE__ */new Set;for(const e of[!0,!1]){const r=t.filter(t=>t.right===e).sort((e,t)=>t.share-e.share).slice(0,l).sort((e,t)=>e.y-t.y);for(let e=1;e<r.length;e+=1)r[e].y-r[e-1].y<26&&(r[e].y=r[e-1].y+26);for(let e=r.length-1;e>=0;e-=1){const t=e===r.length-1?K-13:r[e+1].y-26;r[e].y=Math.min(r[e].y,t)}r.forEach((e,t)=>{e.y=Math.max(e.y,0===t?11:r[t-1].y+26),a.add(e.key)})}return t.filter(e=>a.has(e.key))})(),ce=(e,t)=>null!==V?V!==e:null!==L&&L!==t,me=null!==V?O[V]:void 0;/* @__PURE__ */
1
+ import{MOTION as e,stagger as t}from"./chunk-465RRWBY.js";import{arcPath as l}from"./chunk-VFC6QUEN.js";import{useHighlight as a}from"./chunk-CNYAHYE6.js";import{usePlotWidth as r}from"./chunk-MAFUXCPZ.js";import{angleScale as n}from"./chunk-2JWPNR2U.js";import{ChartTooltip as o}from"./chunk-WDQI3FV6.js";import{CHART_INK as s,resolveSeriesColor as i}from"./chunk-TZFACUMR.js";import{useShellStrings as h,useShellLocale as c}from"./chunk-DEJIH3ZQ.js";import{formatPercent as m,formatPlain as u}from"./chunk-C3QOHMR6.js";import{useId as d,useState as f,useRef as y}from"react";import{jsx as p,jsxs as g}from"react/jsx-runtime";function x({segments:x,variant:v="pie",size:k=280,innerRadius:M,padAngle:b=.012,maxSegments:N=6,otherLabel:I,formatValue:$,centerLabel:j,animate:F=!0,labels:w="none",labelMinShare:P=.04,className:S,emptyLabel:A}){const C=h().charts,W=c(),E=$??(e=>u(e,W)),R=I??C.other,z=A??C.nothingToBreakDown,T=d(),[V,_]=f(null),{highlighted:L}=a(),Q=y(null),U=r(Q,Number.POSITIVE_INFINITY),Y=x.map((e,t)=>({...e,slot:t})).filter(e=>e.value>0);if(0===Y.length)/* @__PURE__ */return p("p",{className:`text-sm text-gray-500 ${S??""}`,children:z});const B=[...Y].sort((e,t)=>t.value-e.value),D=B.slice(0,N),H=B.slice(N),O=H.length>0?[...D,{key:"__other__",label:R,value:H.reduce((e,t)=>e+t.value,0),slot:-1,color:s.muted}]:D,Z=e=>i(e.slot,e.color,e.tone),J=O.reduce((e,t)=>e+t.value,0),q=Math.ceil(.62*Math.max(...O.map(e=>String(e.label).length),4)*11)+24,X="outside"===w&&U>=120+2*q,G=X?q:0,K=X?Math.max(120,Math.min(k,U-2*G)):k,ee=K+2*G,te=G+K/2,le=K/2,ae=K/2-12,re=M??("ring"===v?.58*ae:0),ne=n(O.length,b),oe=Math.max(...O.map(e=>e.value)),se=e=>re+(ae-re)*Math.sqrt(Math.max(0,e)/oe);let ie=-Math.PI/2;const he=(()=>{if(!X)return[];let e=-Math.PI/2;const t=O.map((t,l)=>{const a="rose"===v?n(O.length,b).step:t.value/J*Math.PI*2,r="rose"===v?n(O.length,b).center(l):e+a/2;e+=a;const o="rose"===v?se(t.value):ae;return{key:t.key,label:t.label,share:t.value/J,right:Math.cos(r)>=0,anchor:[te+o*Math.cos(r),le+o*Math.sin(r)],y:le+(o+14)*Math.sin(r),index:l}}).filter(e=>e.share>=P),l=Math.max(1,Math.floor((K-11-13)/26)+1),a=/* @__PURE__ */new Set;for(const e of[!0,!1]){const r=t.filter(t=>t.right===e).sort((e,t)=>t.share-e.share).slice(0,l).sort((e,t)=>e.y-t.y);for(let e=1;e<r.length;e+=1)r[e].y-r[e-1].y<26&&(r[e].y=r[e-1].y+26);for(let e=r.length-1;e>=0;e-=1){const t=e===r.length-1?K-13:r[e+1].y-26;r[e].y=Math.min(r[e].y,t)}r.forEach((e,t)=>{e.y=Math.max(e.y,0===t?11:r[t-1].y+26),a.add(e.key)})}return t.filter(e=>a.has(e.key))})(),ce=(e,t)=>null!==V?V!==e:null!==L&&L!==t,me=null!==V?O[V]:void 0;/* @__PURE__ */
2
2
  return g("div",{className:`relative ${S??""}`,ref:Q,children:[
3
3
  /* @__PURE__ */g("svg",{width:"100%",height:K,viewBox:`0 0 ${ee} ${K}`,role:"img","aria-labelledby":T,onMouseLeave:()=>_(null),children:[
4
4
  /* @__PURE__ */p("title",{id:T,children:C.breakdown(E(J),O.length)}),O.map((a,r)=>{const n=Z(a),o="rose"===v?ne(r):ie,i="rose"===v?ne.step:a.value/J*Math.PI*2-b;"rose"!==v&&(ie+=a.value/J*Math.PI*2);const h=o+Math.max(.001,i),c="rose"===v?se(a.value):ae;/* @__PURE__ */
5
- return p("path",{d:e(te,le,re,c,o,h),fill:n,fillOpacity:ce(r,a.key)?.4:1,stroke:s.surface,strokeWidth:1,className:F?t.sweep:void 0,style:F?l(r,55):void 0,onMouseEnter:()=>_(r)},a.key)}),he.map(e=>{const t=e.right?ee-6:6,l=e.right?te+ae+14:te-ae-14;/* @__PURE__ */
5
+ return p("path",{d:l(te,le,re,c,o,h),fill:n,fillOpacity:ce(r,a.key)?.4:1,stroke:s.surface,strokeWidth:1,className:F?e.sweep:void 0,style:F?t(r,55):void 0,onMouseEnter:()=>_(r)},a.key)}),he.map(e=>{const t=e.right?ee-6:6,l=e.right?te+ae+14:te-ae-14;/* @__PURE__ */
6
6
  return g("g",{children:[
7
7
  /* @__PURE__ */p("polyline",{points:`${e.anchor[0].toFixed(1)},${e.anchor[1].toFixed(1)} ${l},${e.y.toFixed(1)} ${t},${e.y.toFixed(1)}`,fill:"none",stroke:s.grid,strokeWidth:1}),
8
8
  /* @__PURE__ */p("text",{x:t,y:e.y-2,fontSize:11,fill:s.label,textAnchor:e.right?"end":"start",children:e.label}),
@@ -1,4 +1,4 @@
1
- import{useWindowMenuItem as e,Modal as t}from"./chunk-PDOPU3KN.js";import{navIcons as r}from"./chunk-4LXCCZDM.js";import{VERSION as n}from"./chunk-YIYIYFE4.js";import{Icon as s}from"./chunk-ISVODSRP.js";import{DEFAULT_SHELL_STRINGS as i,useShellStrings as o,splitAround as a}from"./chunk-DEJIH3ZQ.js";import{useState as l,useCallback as m,isValidElement as c,cloneElement as p}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";var h=i.aboutApp,x={notepad:{name:"Notepad",version:"1.1.0",route:"/notepad",description:h.notepad},preview:{name:"Preview",version:"1.5.0",route:"/preview",description:h.preview},files:{name:"Files",version:"2.0.0",route:"/files",description:h.files},browser:{name:"Browser",version:"1.0.3",route:"/browser",description:h.browser}},u=/* @__PURE__ */d(s,{name:"info",className:"h-4 w-4",strokeWidth:1.5}),w=/* @__PURE__ */d(s,{name:"window",className:"h-9 w-9",strokeWidth:1.5});function v({app:s}){const i=x[s],[h,v]=l(!1),N=m(()=>v(!0),[]),b=o().aboutApp,k=b.title(i.name);if(e(k,N,u),!h)return null;const g=r[i.route],y=c(g)?p(g,{className:"h-9 w-9"}):w,[j,D]=a(b.partOf);/* @__PURE__ */
1
+ import{useWindowMenuItem as e,Modal as t}from"./chunk-PDOPU3KN.js";import{navIcons as r}from"./chunk-4LXCCZDM.js";import{VERSION as n}from"./chunk-ZOVCLEDH.js";import{Icon as s}from"./chunk-ISVODSRP.js";import{DEFAULT_SHELL_STRINGS as i,useShellStrings as o,splitAround as a}from"./chunk-DEJIH3ZQ.js";import{useState as l,useCallback as m,isValidElement as c,cloneElement as p}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";var h=i.aboutApp,x={notepad:{name:"Notepad",version:"1.1.0",route:"/notepad",description:h.notepad},preview:{name:"Preview",version:"1.5.0",route:"/preview",description:h.preview},files:{name:"Files",version:"2.0.0",route:"/files",description:h.files},browser:{name:"Browser",version:"1.0.3",route:"/browser",description:h.browser}},u=/* @__PURE__ */d(s,{name:"info",className:"h-4 w-4",strokeWidth:1.5}),w=/* @__PURE__ */d(s,{name:"window",className:"h-9 w-9",strokeWidth:1.5});function v({app:s}){const i=x[s],[h,v]=l(!1),N=m(()=>v(!0),[]),b=o().aboutApp,k=b.title(i.name);if(e(k,N,u),!h)return null;const g=r[i.route],y=c(g)?p(g,{className:"h-9 w-9"}):w,[j,D]=a(b.partOf);/* @__PURE__ */
2
2
  return d(t,{open:!0,onClose:()=>v(!1),title:k,size:"sm",compact:!0,bodyScroll:!1,autoHeight:!0,dimensions:[320,320],children:/* @__PURE__ */f("div",{className:"flex flex-col items-center text-center px-5 pt-5 pb-4",children:[
3
3
  /* @__PURE__ */d("div",{className:"flex h-16 w-16 items-center justify-center rounded-2xl bg-gray-100 text-gray-600 shrink-0",children:y}),
4
4
  /* @__PURE__ */d("h2",{className:"mt-3 text-lg font-bold text-gray-900",children:i.name}),
@@ -1,14 +1,14 @@
1
- import{AccessibleTable as e}from"./chunk-HY6CBG4M.js";import{polygonPoints as t}from"./chunk-VFC6QUEN.js";import{ChartDefs as r,maskId as l}from"./chunk-465RRWBY.js";import{useHighlight as a}from"./chunk-CNYAHYE6.js";import{angleScale as o}from"./chunk-2JWPNR2U.js";import{ChartTooltip as n}from"./chunk-WDQI3FV6.js";import{CHART_INK as i,resolveSeriesColorWithin as s}from"./chunk-TZFACUMR.js";import{useShellStrings as m,useShellLocale as c}from"./chunk-DEJIH3ZQ.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{useId as p,useState as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";var k=3,g=e=>`${e.map(([e,t],r)=>`${0===r?"M":"L"}${e.toFixed(2)},${t.toFixed(2)}`).join(" ")} Z`;function x({axes:k,series:x,size:y=300,mode:b="area",grid:v="polygon",rings:M=4,formatValue:N,animate:j=!0,className:$,emptyLabel:C}){const W=m().charts,F=c(),w=N??(e=>h(e,F)),R=C??W.nothingToCompare,A=p(),[E,H]=u(null),{highlighted:L}=a(),Q=x;if(k.length<3||0===Q.length)/* @__PURE__ */
1
+ import{AccessibleTable as e}from"./chunk-HY6CBG4M.js";import{ChartDefs as t,maskId as r}from"./chunk-465RRWBY.js";import{polygonPoints as l}from"./chunk-VFC6QUEN.js";import{useHighlight as a}from"./chunk-CNYAHYE6.js";import{angleScale as o}from"./chunk-2JWPNR2U.js";import{ChartTooltip as n}from"./chunk-WDQI3FV6.js";import{CHART_INK as i,resolveSeriesColorWithin as s}from"./chunk-TZFACUMR.js";import{useShellStrings as m,useShellLocale as c}from"./chunk-DEJIH3ZQ.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{useId as p,useState as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";var k=3,g=e=>`${e.map(([e,t],r)=>`${0===r?"M":"L"}${e.toFixed(2)},${t.toFixed(2)}`).join(" ")} Z`;function x({axes:k,series:x,size:y=300,mode:b="area",grid:v="polygon",rings:M=4,formatValue:N,animate:j=!0,className:$,emptyLabel:C}){const W=m().charts,F=c(),w=N??(e=>h(e,F)),R=C??W.nothingToCompare,A=p(),[E,H]=u(null),{highlighted:L}=a(),Q=x;if(k.length<3||0===Q.length)/* @__PURE__ */
2
2
  return d("p",{className:`text-sm text-gray-500 ${$??""}`,children:R});const Y=y/2,z=y/2,B=y/2-46,T=o(k.length),U=k.map((e,t)=>null!=e.max&&Number.isFinite(e.max)&&e.max>0?e.max:Math.max(1,...Q.map(e=>e.values[t]??0).filter(Number.isFinite))),V=(e,t)=>{const r=Math.max(0,Math.min(1,t/U[e])),l=T.center(e)-T.step/2;return[Y+B*r*Math.cos(l),z+B*r*Math.sin(l)]},Z=(e,t)=>null!==E?E!==e:null!==L&&L!==t,D=null!==E?Q[E]:void 0;/* @__PURE__ */
3
3
  return f("div",{className:`relative ${$??""}`,children:[
4
4
  /* @__PURE__ */f("svg",{width:"100%",height:y,viewBox:`0 0 ${y} ${y}`,role:"img","aria-labelledby":A,onMouseLeave:()=>H(null),children:[
5
- /* @__PURE__ */d("title",{id:A,children:W.acrossMeasures(Q.map(e=>e.label),k.length)}),Array.from({length:M},(e,r)=>{const l=B*(r+1)/M;return"circle"===v?/* @__PURE__ */d("circle",{cx:Y,cy:z,r:l,fill:"none",stroke:i.grid,strokeWidth:1},r):/* @__PURE__ */d("path",{d:g(t(Y,z,l,k.length)),fill:"none",stroke:i.grid,strokeWidth:1},r)}),k.map((e,t)=>{const[r,l]=V(t,U[t]);/* @__PURE__ */
5
+ /* @__PURE__ */d("title",{id:A,children:W.acrossMeasures(Q.map(e=>e.label),k.length)}),Array.from({length:M},(e,t)=>{const r=B*(t+1)/M;return"circle"===v?/* @__PURE__ */d("circle",{cx:Y,cy:z,r:r,fill:"none",stroke:i.grid,strokeWidth:1},t):/* @__PURE__ */d("path",{d:g(l(Y,z,r,k.length)),fill:"none",stroke:i.grid,strokeWidth:1},t)}),k.map((e,t)=>{const[r,l]=V(t,U[t]);/* @__PURE__ */
6
6
  return f("g",{children:[
7
7
  /* @__PURE__ */d("line",{x1:Y,y1:z,x2:r,y2:l,stroke:i.grid,strokeWidth:1}),
8
8
  /* @__PURE__ */d("text",{x:Y+(B+18)*Math.cos(T.center(t)-T.step/2),y:z+(B+18)*Math.sin(T.center(t)-T.step/2)+4,textAnchor:"middle",fontSize:11,fill:i.label,children:e.label})]},e.key)}),
9
- /* @__PURE__ */d(r,{id:A,reveal:!!j&&"center-out"}),Q.map((e,t)=>{const r=s(t,3,e.color,e.tone),a=k.map((t,r)=>V(r,e.values[r]??0));/* @__PURE__ */
10
- return f("g",{opacity:Z(t,e.key)?.3:1,onMouseEnter:()=>H(t),mask:j?`url(#${l(A)})`:void 0,children:["area"===b&&/* @__PURE__ */d("path",{d:g(a),fill:r,fillOpacity:.18,stroke:"none"}),
11
- /* @__PURE__ */d("path",{d:g(a),fill:"none",stroke:r,strokeWidth:2,strokeLinejoin:"round"}),a.map(([e,t],l)=>/* @__PURE__ */d("circle",{cx:e,cy:t,r:3.5,fill:r,stroke:i.surface,strokeWidth:1.5},l))]},e.key)})]}),D&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:D.label,rows:k.map((e,t)=>({key:e.key,label:e.label,color:s(E,3,D.color,D.tone),value:w(D.values[t]??0)}))})}),
9
+ /* @__PURE__ */d(t,{id:A,reveal:!!j&&"center-out"}),Q.map((e,t)=>{const l=s(t,3,e.color,e.tone),a=k.map((t,r)=>V(r,e.values[r]??0));/* @__PURE__ */
10
+ return f("g",{opacity:Z(t,e.key)?.3:1,onMouseEnter:()=>H(t),mask:j?`url(#${r(A)})`:void 0,children:["area"===b&&/* @__PURE__ */d("path",{d:g(a),fill:l,fillOpacity:.18,stroke:"none"}),
11
+ /* @__PURE__ */d("path",{d:g(a),fill:"none",stroke:l,strokeWidth:2,strokeLinejoin:"round"}),a.map(([e,t],r)=>/* @__PURE__ */d("circle",{cx:e,cy:t,r:3.5,fill:l,stroke:i.surface,strokeWidth:1.5},r))]},e.key)})]}),D&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:D.label,rows:k.map((e,t)=>({key:e.key,label:e.label,color:s(E,3,D.color,D.tone),value:w(D.values[t]??0)}))})}),
12
12
  /* @__PURE__ */d("ul",{className:"m-0 mt-3 grid gap-1 p-0",style:{gridTemplateColumns:"repeat(auto-fit,minmax(140px,1fr))"},children:Q.map((e,t)=>/* @__PURE__ */f("li",{className:"flex list-none items-center gap-2 text-xs text-gray-600",children:[
13
13
  /* @__PURE__ */d("span",{className:"h-2.5 w-2.5 shrink-0 rounded-sm",style:{backgroundColor:s(t,3,e.color,e.tone)}}),
14
14
  /* @__PURE__ */d("span",{className:"flex-1 truncate",children:e.label})]},e.key))}),