semiotic 3.12.0 → 3.12.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.
- package/README.md +50 -46
- package/ai/artifact-surface-inventory.json +1 -1
- package/ai/behaviorContracts.cjs +1 -1
- package/ai/dist/diagnose-operation.js +3 -3
- package/ai/dist/mcp-server.js +1 -1
- package/ai/reference.md +15 -3
- package/ai/schema.json +908 -96
- package/ai/surface-manifest.json +1 -1
- package/ai/task-packets/compare-category-totals.json +5 -5
- package/ai/task-packets/compare-category-totals.md +2 -2
- package/ai/task-packets/correct-published-chart.json +5 -5
- package/ai/task-packets/correct-published-chart.md +2 -2
- package/ai/task-packets/index.json +6 -6
- package/ai/task-packets/update-live-chart.json +5 -5
- package/ai/task-packets/update-live-chart.md +2 -2
- package/dist/c-27DCB5T6.min.js +7 -7
- package/dist/c-2CKIGFD2.min.js +1 -1
- package/dist/c-3FATLOH4.min.js +1 -0
- package/dist/{c-STVM6CBI.min.js → c-4SCJKAWZ.min.js} +200 -200
- package/dist/c-5FUOKMH6.min.js +7 -0
- package/dist/c-AAIPWVQ5.min.js +6 -6
- package/dist/{c-2RG4WOVX.min.js → c-ALLF3Y77.min.js} +1 -1
- package/dist/{c-QMKQVCCZ.min.js → c-C5GXUHUO.min.js} +6 -6
- package/dist/c-C67QDKTU.min.js +34 -0
- package/dist/c-F76M77YC.min.js +1 -0
- package/dist/c-FEVXPKQH.min.js +1 -1
- package/dist/c-G42WVQO2.min.js +1 -0
- package/dist/c-G5A3YWTN.min.js +66 -0
- package/dist/c-H4HVKBU3.min.js +1 -0
- package/dist/c-HU3ASFKT.min.js +1 -0
- package/dist/c-I4FYCVJB.min.js +391 -0
- package/dist/{c-5L7JGWQW.min.js → c-IATPZOL7.min.js} +28 -28
- package/dist/c-IE5EBBP6.min.js +110 -0
- package/dist/c-IGONIKZL.min.js +1 -0
- package/dist/c-IKPM53JH.min.js +1 -0
- package/dist/c-IU4QZ7Y5.min.js +1 -1
- package/dist/{c-2ACLVPKF.min.js → c-K5VE57OI.min.js} +1 -1
- package/dist/c-KWJIBJ4R.min.js +1 -0
- package/dist/c-LIMFU6RD.min.js +1 -0
- package/dist/c-M4T43G76.min.js +1 -0
- package/dist/c-M7QUZZCE.min.js +1 -1
- package/dist/c-NVSINXE5.min.js +1 -0
- package/dist/{c-FAF6EV4E.min.js → c-NWRYV6ZF.min.js} +1 -1
- package/dist/c-O5GU2R5W.min.js +1 -0
- package/dist/c-OC7GNXGZ.min.js +1 -0
- package/dist/c-OV5F3DQP.min.js +1 -0
- package/dist/{c-5TAXHW7I.min.js → c-PJ5CAYAW.min.js} +1 -1
- package/dist/c-Q5LZRQGD.min.js +1 -0
- package/dist/c-QP3PXK3N.min.js +1 -0
- package/dist/c-SGZ7ZD2I.min.js +51 -0
- package/dist/c-SSKV5JPW.min.js +1 -1
- package/dist/c-THWTHWXU.min.js +37 -0
- package/dist/c-TRMNDRC4.min.js +41 -0
- package/dist/c-UP656CST.min.js +1 -1
- package/dist/c-USYOK5OX.min.js +1 -0
- package/dist/c-VI753KBO.min.js +1 -0
- package/dist/{c-TT4CTEBR.min.js → c-VLAAAFST.min.js} +1 -1
- package/dist/c-VSOQPII4.min.js +5 -5
- package/dist/c-WGDM4ZRP.min.js +26 -0
- package/dist/c-XCV7VUU3.min.js +87 -0
- package/dist/c-XGDZPYBI.min.js +1 -0
- package/dist/c-XI6CLZII.min.js +1 -0
- package/dist/{c-L4Q2YMXO.min.js → c-XLC7PKM7.min.js} +1 -1
- package/dist/{c-3YAGKCPU.min.js → c-YEB6Z35F.min.js} +1 -1
- package/dist/c-YWZBFG63.min.js +1 -0
- package/dist/c-ZMYO3NZU.min.js +2 -0
- package/dist/c-ZO36H5VH.min.js +48 -0
- package/dist/components/LinkedCharts.d.ts +6 -1
- package/dist/components/Tooltip/Tooltip.d.ts +11 -1
- package/dist/components/Tooltip/tooltipChrome.d.ts +8 -2
- package/dist/components/bundling/semioticVite.d.ts +24 -0
- package/dist/components/charts/physics/cruciblePhysics.d.ts +2 -2
- package/dist/components/charts/physics/gauntletPhysics.d.ts +2 -6
- package/dist/components/charts/physics/physicsHocUtils.d.ts +8 -1
- package/dist/components/charts/realtime/RealtimeHistogram.d.ts +2 -0
- package/dist/components/charts/shared/chartSize.d.ts +58 -0
- package/dist/components/charts/shared/chartSizeDefaults.d.ts +189 -0
- package/dist/components/charts/shared/chartSizeDefaultsAtlas.d.ts +9 -0
- package/dist/components/charts/shared/chartSizeDefaultsNetwork.d.ts +29 -0
- package/dist/components/charts/shared/chartSizeDefaultsOrdinal.d.ts +13 -0
- package/dist/components/charts/shared/chartSizeDefaultsPhysics.d.ts +41 -0
- package/dist/components/charts/shared/chartSizeDefaultsValue.d.ts +19 -0
- package/dist/components/charts/shared/chartSizeDefaultsXY.d.ts +10 -0
- package/dist/components/charts/shared/networkPerspectiveWireSchema.d.ts +3 -0
- package/dist/components/charts/shared/useChartSetup.d.ts +3 -0
- package/dist/components/charts/shared/useCustomChartSetup.d.ts +4 -0
- package/dist/components/charts/shared/useNetworkChartSetup.d.ts +2 -0
- package/dist/components/charts/shared/withChartWrapper.d.ts +6 -2
- package/dist/components/charts/value/BigNumber.d.ts +0 -8
- package/dist/components/charts/xy/minimapLayout.d.ts +10 -0
- package/dist/components/realtime/BinAccumulator.d.ts +5 -2
- package/dist/components/recipes/atlas/dependencyForestChartProps.d.ts +4 -4
- package/dist/components/recipes/atlas/flowCircuitChartProps.d.ts +177 -1
- package/dist/components/recipes/atlas/flowCircuitLayout.d.ts +3 -0
- package/dist/components/recipes/atlas/motifBraidChartProps.d.ts +2 -0
- package/dist/components/recipes/atlas/resolution/BoundaryLoomChart.d.ts +3 -0
- package/dist/components/recipes/atlas/resolution/ComponentCutaway.d.ts +16 -0
- package/dist/components/recipes/atlas/resolution/ResolutionAtlasChart.d.ts +3 -0
- package/dist/components/recipes/atlas/resolution/ResolutionGlyphs.d.ts +15 -0
- package/dist/components/recipes/atlas/resolution/ResolutionReader.d.ts +5 -0
- package/dist/components/recipes/atlas/resolution/appearance.d.ts +58 -0
- package/dist/components/recipes/atlas/resolution/boundaryLoomLayout.d.ts +4 -0
- package/dist/components/recipes/atlas/resolution/chartProps.d.ts +75 -0
- package/dist/components/recipes/atlas/resolution/componentCutawayLayout.d.ts +12 -0
- package/dist/components/recipes/atlas/resolution/cutawayContext.d.ts +23 -0
- package/dist/components/recipes/atlas/resolution/cutawayGraph.d.ts +4 -0
- package/dist/components/recipes/atlas/resolution/cycles.d.ts +7 -0
- package/dist/components/recipes/atlas/resolution/evidence.d.ts +43 -0
- package/dist/components/recipes/atlas/resolution/glyphs.d.ts +40 -0
- package/dist/components/recipes/atlas/resolution/identity.d.ts +4 -0
- package/dist/components/recipes/atlas/resolution/indexGraph.d.ts +32 -0
- package/dist/components/recipes/atlas/resolution/ownership.d.ts +25 -0
- package/dist/components/recipes/atlas/resolution/plan.d.ts +12 -0
- package/dist/components/recipes/atlas/resolution/ports.d.ts +44 -0
- package/dist/components/recipes/atlas/resolution/prepare.d.ts +4 -0
- package/dist/components/recipes/atlas/resolution/project.d.ts +70 -0
- package/dist/components/recipes/atlas/resolution/queries.d.ts +23 -0
- package/dist/components/recipes/atlas/resolution/resolutionAtlasLayout.d.ts +9 -0
- package/dist/components/recipes/atlas/resolution/rules.d.ts +14 -0
- package/dist/components/recipes/atlas/resolution/scene.d.ts +52 -0
- package/dist/components/recipes/atlas/resolution/selection.d.ts +3 -0
- package/dist/components/recipes/atlas/resolution/sets.d.ts +10 -0
- package/dist/components/recipes/atlas/resolution/types.d.ts +401 -0
- package/dist/components/recipes/atlas/resolution/validate.d.ts +4 -0
- package/dist/components/recipes/atlas/resolution/witnesses.d.ts +18 -0
- package/dist/components/recipes/atlas/resolution/worker.d.ts +34 -0
- package/dist/components/recipes/lineageDag.d.ts +4 -0
- package/dist/components/recipes/recipeUtils.d.ts +2 -0
- package/dist/components/recipes/transitDiagram.d.ts +2 -61
- package/dist/components/recipes/transitDiagramTypes.d.ts +65 -0
- package/dist/components/semiotic-ai.d.ts +2 -0
- package/dist/components/semiotic-experimental-network-resolution-react.d.ts +12 -0
- package/dist/components/semiotic-experimental-network-resolution.d.ts +13 -0
- package/dist/components/semiotic-geo.d.ts +1 -1
- package/dist/components/semiotic-network-perspective-core.d.ts +6 -0
- package/dist/components/semiotic-network.d.ts +1 -1
- package/dist/components/semiotic-ordinal.d.ts +1 -1
- package/dist/components/semiotic-physics.d.ts +1 -1
- package/dist/components/semiotic-realtime-core.d.ts +1 -1
- package/dist/components/semiotic-realtime-react.d.ts +2 -0
- package/dist/components/semiotic-utils-core.d.ts +3 -1
- package/dist/components/semiotic-vite.d.ts +2 -0
- package/dist/components/semiotic-xy.d.ts +3 -1
- package/dist/components/semiotic.d.ts +3 -1
- package/dist/components/server/renderToStaticSVG.d.ts +2 -1
- package/dist/components/server/serverChartConfigShared.d.ts +2 -0
- package/dist/components/store/LinkedCrosshairStore.d.ts +43 -11
- package/dist/components/store/themeCore.d.ts +2 -0
- package/dist/components/stream/frameKeyboardNavigation.d.ts +3 -1
- package/dist/components/stream/hoverUtils.d.ts +5 -0
- package/dist/components/stream/networkCustomLayout.d.ts +3 -0
- package/dist/components/stream/networkPerspective.d.ts +2 -0
- package/dist/components/stream/networkPerspectiveFit.d.ts +12 -1
- package/dist/components/stream/networkPerspectiveSolid.d.ts +1 -1
- package/dist/components/stream/networkSceneTypes.d.ts +4 -0
- package/dist/components/stream/networkTypes.d.ts +2 -0
- package/dist/components/stream/pipelineConfig.d.ts +2 -0
- package/dist/components/stream/pipelineDomainResolution.d.ts +4 -1
- package/dist/components/stream/types.d.ts +2 -0
- package/dist/components/stream/useFrame.d.ts +2 -0
- package/dist/components/stream/xySceneBuilders/types.d.ts +2 -0
- package/dist/controls.module.min.js +31 -31
- package/dist/geo.min.js +150 -150
- package/dist/geo.module.min.js +31 -31
- package/dist/network.module.min.js +1 -1
- package/dist/ordinal.module.min.js +1 -1
- package/dist/physics.module.min.js +1 -1
- package/dist/rough.module.min.js +1 -1
- package/dist/semiotic-ai-core.min.js +1 -1
- package/dist/semiotic-ai-core.module.min.js +1 -1
- package/dist/semiotic-ai.d.ts +2 -0
- package/dist/semiotic-ai.module.min.js +13 -13
- package/dist/semiotic-artifact-react.module.min.js +4 -4
- package/dist/semiotic-artifact.min.js +1 -1
- package/dist/semiotic-artifact.module.min.js +1 -1
- package/dist/semiotic-atlas-selection.module.min.js +1 -1
- package/dist/semiotic-atlas.module.min.js +10 -12
- package/dist/semiotic-client-cjs-shared.min.js +1078 -925
- package/dist/semiotic-client-glyph.module.min.js +2 -2
- package/dist/semiotic-client-shared.module.min.js +1 -1
- package/dist/semiotic-experimental-auxiliary.module.min.js +8 -9
- package/dist/semiotic-experimental-network-resolution-react.d.ts +12 -0
- package/dist/semiotic-experimental-network-resolution-react.min.js +2 -0
- package/dist/semiotic-experimental-network-resolution-react.module.min.js +89 -0
- package/dist/semiotic-experimental-network-resolution.d.ts +13 -0
- package/dist/semiotic-experimental-network-resolution.min.js +2 -0
- package/dist/semiotic-experimental-network-resolution.module.min.js +2 -0
- package/dist/semiotic-experimental-node-auxiliary.module.min.js +9 -10
- package/dist/semiotic-geo.d.ts +1 -1
- package/dist/semiotic-line.module.min.js +1 -1
- package/dist/semiotic-network-perspective-core.d.ts +6 -0
- package/dist/semiotic-network-perspective-core.min.js +1 -0
- package/dist/semiotic-network-perspective-core.module.min.js +1 -0
- package/dist/semiotic-network-perspective.module.min.js +1 -1
- package/dist/semiotic-network-placement.min.js +4 -0
- package/dist/semiotic-network-placement.module.min.js +4 -0
- package/dist/semiotic-network-zoom.module.min.js +1 -1
- package/dist/semiotic-network.d.ts +1 -1
- package/dist/semiotic-ordinal.d.ts +1 -1
- package/dist/semiotic-physics.d.ts +1 -1
- package/dist/semiotic-realtime-core.d.ts +1 -1
- package/dist/semiotic-realtime-core.module.min.js +1 -1
- package/dist/semiotic-realtime-react.d.ts +2 -0
- package/dist/semiotic-realtime-react.module.min.js +1 -1
- package/dist/semiotic-recipes-core-cjs-base.min.js +101 -106
- package/dist/semiotic-recipes-core.module.min.js +75 -76
- package/dist/semiotic-server-edge-node.module.min.js +391 -392
- package/dist/semiotic-server-edge.min.js +387 -388
- package/dist/semiotic-server-edge.module.min.js +371 -371
- package/dist/semiotic-server-node.min.js +387 -388
- package/dist/semiotic-server-node.module.min.js +1 -1
- package/dist/semiotic-utils-core.d.ts +3 -1
- package/dist/semiotic-utils-core.min.js +12 -11
- package/dist/semiotic-utils-core.module.min.js +12 -11
- package/dist/semiotic-value.module.min.js +4 -4
- package/dist/semiotic-vite.d.ts +2 -0
- package/dist/semiotic-vite.min.js +1 -0
- package/dist/semiotic-vite.module.min.js +1 -0
- package/dist/semiotic-xy.d.ts +3 -1
- package/dist/semiotic.d.ts +3 -1
- package/dist/semiotic.module.min.js +12 -12
- package/dist/server.min.js +387 -388
- package/dist/server.module.min.js +1 -1
- package/dist/xy.module.min.js +1 -1
- package/package.json +42 -13
- package/dist/c-2AB65V3L.min.js +0 -1
- package/dist/c-2U5JMOPN.min.js +0 -88
- package/dist/c-3DCTIRW4.min.js +0 -1
- package/dist/c-3OKFRTYM.min.js +0 -1
- package/dist/c-3VZHOPFW.min.js +0 -1
- package/dist/c-4ZSQIBC7.min.js +0 -1
- package/dist/c-5M4RUS7V.min.js +0 -34
- package/dist/c-6O5WWP7F.min.js +0 -1
- package/dist/c-73TOIYIW.min.js +0 -48
- package/dist/c-AE4M7BWH.min.js +0 -1
- package/dist/c-AEIK2NFW.min.js +0 -30
- package/dist/c-AFQSEIZ4.min.js +0 -4
- package/dist/c-BBX7DVVB.min.js +0 -51
- package/dist/c-CNYFCSG4.min.js +0 -5
- package/dist/c-E6QH2WYE.min.js +0 -1
- package/dist/c-GOMQWQJR.min.js +0 -1
- package/dist/c-GTYG4PDT.min.js +0 -1
- package/dist/c-H23GIKTK.min.js +0 -1
- package/dist/c-HQLUUSRJ.min.js +0 -1
- package/dist/c-HXUOFDSD.min.js +0 -64
- package/dist/c-L3LKYOLK.min.js +0 -1
- package/dist/c-MIKDFGKH.min.js +0 -1
- package/dist/c-OYSPTIAG.min.js +0 -1
- package/dist/c-PWPJNYQP.min.js +0 -1
- package/dist/c-QZ5SWKHC.min.js +0 -392
- package/dist/c-RXJH4IRX.min.js +0 -41
- package/dist/c-SN2D6QMH.min.js +0 -1
- package/dist/c-U5YGK6HL.min.js +0 -1
- package/dist/c-VIN5ASK2.min.js +0 -37
- package/dist/c-XZ3GASUJ.min.js +0 -1
- package/dist/c-ZLZZTH4I.min.js +0 -118
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
function e({componentName:e,message:t,diagnosticHint:i,width:r,height:n}){/*
|
|
2
|
+
function e({componentName:e,message:t,diagnosticHint:i,width:r,height:n}){/* */
|
|
3
3
|
return T("div",{role:"alert",style:{width:r,height:Math.max(n,120),display:"flex",alignItems:"center",justifyContent:"center",border:"1px dashed rgba(128, 128, 128, 0.4)",borderRadius:8,background:"rgba(128, 128, 128, 0.04)",padding:24,boxSizing:"border-box"},children:/* @__PURE__ */E("div",{style:{textAlign:"center",maxWidth:400},children:[
|
|
4
4
|
/* @__PURE__ */T("div",{style:{fontSize:13,fontWeight:600,color:"rgba(128, 128, 128, 0.7)",marginBottom:6,fontFamily:"monospace"},children:e}),
|
|
5
|
-
/* @__PURE__ */T("div",{style:{fontSize:14,color:"rgba(128, 128, 128, 0.9)",lineHeight:1.5},children:t}),i&&/* @__PURE__ */T("div",{"data-testid":"semiotic-diagnostic-hint",style:{marginTop:10,padding:"8px 12px",background:"rgba(128, 128, 128, 0.06)",borderRadius:4,fontSize:12,color:"rgba(128, 128, 128, 0.8)",fontFamily:"monospace",textAlign:"left",whiteSpace:"pre-wrap",lineHeight:1.6},children:i})]})})}function t({componentName:t,width:i,height:r,children:n}){/*
|
|
6
|
-
return R(H,{fallback:n=>/* @__PURE__ */R(e,{componentName:t,message:n.message,width:i,height:r}),children:n})}function i(e,t){return"function"==typeof e?.addEventListener?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):(e?.addListener?.(t),()=>e?.removeListener?.(t))}function r(e){return!(typeof window>"u"||!window.matchMedia)&&window.matchMedia(e).matches}function n(){let[e,t]=W(()=>r("(prefers-reduced-motion: reduce)"));return V(()=>{if(typeof window>"u"||!window.matchMedia)return;let e=window.matchMedia("(prefers-reduced-motion: reduce)");return t(e.matches),i(e,e=>t(e.matches))},[]),e}function a(){let e=q(O,X,Y);return U(e).current}function l(e,t={}){if("function"==typeof e)return e;let i=t.locale??"en-US",r=t.currency??"USD";if("currency"===e){let e=t.precision??2,n=new Intl.NumberFormat(i,{style:"currency",currency:r,maximumFractionDigits:e,minimumFractionDigits:e});return e=>n.format(e)}if("percent"===e){let e=t.precision??1,r=new Intl.NumberFormat(i,{style:"percent",maximumFractionDigits:e,minimumFractionDigits:0});return e=>r.format(e)}if("compact"===e){let e=t.precision??1,r=new Intl.NumberFormat(i,{notation:"compact",maximumFractionDigits:e,minimumFractionDigits:0});return e=>r.format(e)}if("duration"===e)return e=>o(e);let n=t.precision??0,a=new Intl.NumberFormat(i,{notation:t.notation??"standard",maximumFractionDigits:n,minimumFractionDigits:0});return e=>a.format(e)}function o(e){if(!Number.isFinite(e))return String(e);let t=e<0?"-":"",i=Math.abs(e),r=Math.round(i);if(r<1e3)return`${t}${r}ms`;let n=Math.round(i/10)/100;if(n<60)return`${t}${u(n)}s`;let a=Math.round(i/1e3);if(a<3600)return`${t}${s(Math.floor(a/60),"m",a%60,"s")}`;let l=Math.round(i/6e4);if(l<1440)return`${t}${s(Math.floor(l/60),"h",l%60,"m")}`;let o=Math.round(i/36e5);return`${t}${s(Math.floor(o/24),"d",o%24,"h")}`}function s(e,t,i,r){return 0===i?`${e}${t}`:`${e}${t} ${i}${r}`}function u(e){return String(Math.round(100*e)/100)}function c(e,t,i){return`${t??""}${e}${i??""}`}function m(e,t){return 0===e||t(Math.abs(e))===t(0)}function d(e,t){return Number.isFinite(e)?m(e,t)?t(0):`${e>0?"+":"−"}${t(Math.abs(e))}`:""}function h(e,t,i="en-US",r=1){if(!Number.isFinite(e)||!Number.isFinite(t)||0===e)return null;let n=(t-e)/Math.abs(e);return new Intl.NumberFormat(i,{style:"percent",maximumFractionDigits:r,minimumFractionDigits:0,signDisplay:"exceptZero"}).format(n)}function b({target:e,value:t,format:i,locale:r,currency:n,precision:a}){let o=G(()=>new Intl.NumberFormat(r??"en-US",{style:"percent",maximumFractionDigits:0}),[r]),s=G(()=>l(e?.format??i??"number",{locale:r,currency:n,precision:a}),[e?.format,i,r,n,a]);return G(()=>{if(!e||!Number.isFinite(e.value))return null;let i="number"==typeof t&&Number.isFinite(t)&&0!==e.value?o.format(t/e.value):null,r=s(e.value),n=i?e.label?`${i} of ${e.label} (${r})`:`${i} of ${r}`:e.label?`target ${e.label} (${r})`:`target ${r}`;return{label:e.label,percent:i,formattedValue:r,text:n}},[e,t,s,o])}function f(e,t){if(!t||0===t.length||!Number.isFinite(e))return null;let i=t.filter(e=>Number.isFinite(e.at)||e.at===-1/0).slice().sort((e,t)=>e.at-t.at),r=null;for(let t of i){if(!(e>=t.at))break;r=t}return r}function p(e,t){return t||("neutral"===e?"var(--semiotic-text, currentColor)":`var(--semiotic-${e}, currentColor)`)}function g(e,t){let i=t.padding??1;if(0===e.length)return{line:"",area:"",points:[]};if(1===e.length){let e=t.width/2,i=t.height/2;return{line:`M${e},${i}`,area:"",points:[{x:e,y:i}]}}let r=t.yMin??e.reduce((e,t)=>Number.isFinite(t)&&t<e?t:e,1/0),n=(t.yMax??e.reduce((e,t)=>Number.isFinite(t)&&t>e?t:e,-1/0))-r||1,a=Math.max(0,t.width-2*i),l=Math.max(0,t.height-2*i),o=a/(e.length-1),s=[],u="";for(let t=0;t<e.length;t++){let a=e[t];if(!Number.isFinite(a))continue;let c=i+t*o,m=i+l-(a-r)/n*l;u+=`${0===s.length?"M":"L"}${c.toFixed(2)},${m.toFixed(2)}`,s.push({x:c,y:m})}if(0===s.length)return{line:"",area:"",points:[]};let c=s[0],m=i+l;return{line:u,area:`${u} L${s[s.length-1].x.toFixed(2)},${m.toFixed(2)} L${c.x.toFixed(2)},${m.toFixed(2)} Z`,points:s}}function y(e,t){return e.displayName=t,e}function v(e,t,i){return void 0===e?i:"function"==typeof e?e(t):e}function x(e,t,i,r=e){let[n,a]=k(()=>r),l=j(r),o=j(null),s=j(e),u=j(0),c=!!t,m="object"==typeof t?t.duration:void 0,d="number"==typeof m&&Number.isFinite(m)?Math.max(0,m):300,h="object"==typeof t&&"linear"===t.easing?"linear":"ease-out",b=j(e);return M(()=>{let t=e=>{l.current=e,a(e)};if(!Number.isFinite(e))return void t(e);if(!c||i)return void t(e);if(0===d)return void t(e);s.current=l.current,b.current=e,u.current=typeof performance<"u"?performance.now():Date.now();let r="linear"===h?e=>e:e=>1-Math.pow(1-e,3),n=e=>{let i=Math.min(1,(e-u.current)/d),a=r(i),l=s.current+(b.current-s.current)*a;t(l),i<1?o.current=requestAnimationFrame(n):(o.current=null,t(b.current))};return o.current=requestAnimationFrame(n),()=>{null!=o.current&&cancelAnimationFrame(o.current),o.current=null}},[c,d,h,i,e]),n}function w(e,t){let[i,r]=k(!1);return M(()=>{if(!t||null==e)return void r(!1);let i=()=>{let i=Date.now()-e;r(i>=t)};i();let n=setInterval(i,Math.max(250,Math.floor(t/4)));return()=>clearInterval(n)},[e,t]),i}function N(e,t,i){if(i&&"auto"!==i)return i;if(null==e||0===e||!Number.isFinite(e))return"neutral";let r=t??"higher-is-better";return"neutral"===r?"neutral":("higher-is-better"===r?e>0:e<0)?"positive":"negative"}function S(e){return"positive"===e?"var(--semiotic-success, currentColor)":"negative"===e?"var(--semiotic-danger, currentColor)":"var(--semiotic-text-secondary, currentColor)"}function F(e){return"positive"===e?"▲":"negative"===e?"▼":"■"}function $(e){let t=[];if(e.label&&t.push(`${e.label}:`),t.push(e.unit?`${e.formattedValue} ${e.unit}`:e.formattedValue),e.deltaFormatted){let i=e.delta,r=null!=i&&Number.isFinite(i)&&0!==i?i>0?"up":"down":"change",n=e.deltaPercent?` (${e.deltaPercent})`:"",a=e.comparisonLabel?` from ${e.comparisonLabel}`:"";t.push(`${r} ${e.deltaFormatted}${n}${a}`)}return e.targetText&&t.push(e.targetText),e.thresholdLabel&&t.push(e.thresholdLabel),e.stale&&t.push(e.staleLabel??"stale"),t.join(", ")}function _(e){let t=Math.floor(.45*e.width),i=Math.floor(.6*e.width),r=(e,t)=>/* @__PURE__ */K("div",{style:{width:e,height:t,background:"var(--semiotic-border, #e0e0e0)",borderRadius:4,opacity:.55}});/*
|
|
7
|
-
return Q("div",{style:{display:"flex",flexDirection:"column",gap:10,justifyContent:"center",width:"100%",height:"100%"},children:["thumbnail"!==e.mode&&"inline"!==e.mode?r(t,10):null,r(i,"presentation"===e.mode?48:28),"tile"===e.mode||"presentation"===e.mode?r(Math.floor(.35*e.width),8):null]})}import{forwardRef as z,useCallback as D,useEffect as M,useImperativeHandle as C,useMemo as I,useRef as j,useState as k}from"react";import{Component as L}from"react";import{jsx as T,jsxs as E}from"react/jsx-runtime";import{jsx as B}from"react/jsx-runtime";var H=class extends L{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onError?.(e,t)}render(){if(this.state.error){let{fallback:t}=this.props,i=this.state.error;return"function"==typeof t?t(i):void 0!==t?t:/* @__PURE__ */B(e,{componentName:"ChartErrorBoundary",message:i.message||"An unexpected error occurred while rendering this chart.",width:600,height:400})}return this.props.children}};import{jsx as R}from"react/jsx-runtime";import{useState as W,useEffect as V}from"react";import{useEffect as A,useLayoutEffect as P,useRef as U,useState as Z,useSyncExternalStore as q}from"react";var O=()=>()=>{},X=()=>!1,Y=()=>!0;import{useMemo as G}from"react";import{Fragment as J,jsx as K,jsxs as Q}from"react/jsx-runtime";var ee={tile:{width:280,height:184,align:"start",labelSize:13,captionSize:11,valueSize:40,deltaSize:13,padding:{top:14,right:16,bottom:14,left:16},background:"var(--semiotic-surface, transparent)",border:!0,showHeader:!0,showDelta:!0,showTrend:!0,showChart:!0,chartSize:44},presentation:{width:540,height:320,align:"center",labelSize:18,captionSize:14,valueSize:96,deltaSize:18,padding:{top:32,right:32,bottom:32,left:32},background:"var(--semiotic-surface, transparent)",border:!0,showHeader:!0,showDelta:!0,showTrend:!0,showChart:!0,chartSize:80},inline:{width:void 0,height:void 0,align:"inherit",labelSize:0,captionSize:0,valueSize:0,deltaSize:0,padding:{top:0,right:0,bottom:0,left:0},background:"transparent",border:!1,showHeader:!1,showDelta:!0,showTrend:!1,showChart:!1,chartSize:0},thumbnail:{width:96,height:56,align:"center",labelSize:0,captionSize:0,valueSize:22,deltaSize:0,padding:{top:4,right:6,bottom:4,left:6},background:"transparent",border:!1,showHeader:!1,showDelta:!1,showTrend:!1,showChart:!1,chartSize:0}},te=/* @__PURE__ */y(/* @__PURE__ */z((e,i)=>{let{value:r,label:o,caption:s,format:u,locale:h,currency:g,precision:y,prefix:z,suffix:L,unit:T,comparison:E,target:B,delta:H,deltaFormat:R,showDeltaPercent:W,direction:V,sentiment:A,thresholds:P,windowSize:U=60,mode:Z="tile",align:q,width:O,height:X,padding:Y,emphasis:G,color:te,background:ie,borderColor:re,borderRadius:ne,className:ae,style:le,animate:oe,stalenessThreshold:se,staleLabel:ue,headerSlot:ce,valueSlot:me,deltaSlot:de,trendSlot:he,chartSlot:be,chartSize:fe,footerSlot:pe,onClick:ge,onObservation:ye,chartId:ve,description:xe,summary:we,loading:Ne,loadingContent:Se,emptyContent:Fe}=e,$e=ee[Z]??ee.tile,_e=q??$e.align,ze=O??$e.width,De=X??$e.height,Me=n(),Ce=a(),[Ie,je]=k([]),[ke,Le]=k(null),[Te,Ee]=k(null),[Be,He]=k(null),Re=j([]),We=j(null),Ve=j(r);M(()=>{Ve.current=r},[r]);let Ae=j(U);M(()=>{Ae.current=U},[U]);let Pe=D(e=>{let t="number"==typeof e?{value:e,time:Date.now()}:{time:Date.now(),...e},i="number"==typeof t.time?t.time:t.time instanceof Date?t.time.getTime():Date.now();return{...t,time:i}},[]),Ue=D(e=>{if(0===e.length)return;let t=Ae.current,i=e.map(Pe),r=Re.current.concat(i);r.length>t&&(r=r.slice(r.length-t)),Re.current=r;let n=i[i.length-1];We.current=n.value,je(r),Le(n.value);for(let e=i.length-1;e>=0;e--){let t=i[e].comparison;if(null!=t){Ee(t);break}}He(n.time)},[Pe]),Ze=D(e=>Ue([e]),[Ue]);C(i,()=>({push:e=>Ze(e),pushMany:e=>Ue(e),clear:()=>{Re.current=[],We.current=null,je([]),Le(null),Ee(null),He(null)},getValue:()=>We.current??(Number.isFinite(Ve.current)?Ve.current:null),getData:()=>Re.current.slice()}),[Ze,Ue]);let qe=ke??r,Oe=null==qe||"number"!=typeof qe||!Number.isFinite(qe),Xe=I(()=>l(u??"number",{locale:h,currency:g,precision:y}),[u,h,g,y]),Ye=I(()=>l(R??u??"number",{locale:h,currency:g,precision:null==R&&null==u?0:y}),[R,u,h,g,y]),Ge=oe??!1,Je=("object"!=typeof Ge||!1!==Ge.intro)&&!!Ge,Ke=Number.isFinite(qe)?qe:0,Qe=x(Ke,Ge,Me,j(!Je||Me||Ce?Ke:0).current),et=Ge?Qe:Number.isFinite(qe)?qe:0,tt=I(()=>f(Number.isFinite(qe)?qe:NaN,P),[qe,P]),it=tt?tt.level:"neutral",rt=te??p(it,tt?.color),nt=Te??E?.value??null,at=H??(null!=nt&&Number.isFinite(qe)?qe-nt:null),lt=null!=at&&Number.isFinite(at)&&m(at,Ye)?0:at,ot=N(lt,E?.direction??B?.direction??V,A),st=null!=at&&Number.isFinite(at)?d(at,Ye):null,ut=I(()=>new Intl.NumberFormat(h??"en-US",{style:"percent",maximumFractionDigits:1,minimumFractionDigits:0,signDisplay:"exceptZero"}),[h]),ct=null!=nt&&Number.isFinite(qe)&&(W??!0)&&0!==nt?ut.format((qe-nt)/Math.abs(nt)):null,mt=b({target:B,value:qe,format:u,locale:h,currency:g,precision:y}),dt=mt?.percent??null,ht=mt?.text??null,bt=w(Be,se),ft=Number.isFinite(et)?c(Xe(et),z,L):"",pt={value:Oe?null:qe,formattedValue:ft,level:it,color:rt,delta:at,deltaFormatted:st,deltaPercent:ct,sentiment:ot,isStale:bt,pushBuffer:Ie},gt=xe??$({label:o,formattedValue:Number.isFinite(qe)?c(Xe(qe),z,L):"",unit:T,comparisonLabel:E?.label,delta:lt,deltaFormatted:st,deltaPercent:ct,targetText:ht,thresholdLabel:tt?.label,stale:bt,staleLabel:ue}),yt="number"==typeof Y?{top:Y,right:Y,bottom:Y,left:Y}:{...$e.padding,...Y??{}},vt="end"===_e?"flex-end":"center"===_e?"center":"start"===_e?"flex-start":"inherit",xt={position:"relative",boxSizing:"border-box",width:ze,height:De,padding:`${yt.top}px ${yt.right}px ${yt.bottom}px ${yt.left}px`,background:ie??$e.background,border:$e.border?`1px solid ${re??"var(--semiotic-border, #e2e2e2)"}`:void 0,borderRadius:"number"==typeof ne?`${ne}px`:ne??"var(--semiotic-border-radius, 8px)",display:"inline"===Z?"inline-flex":"flex",flexDirection:"column",alignItems:"inherit"===vt?void 0:vt,textAlign:_e,fontFamily:"var(--semiotic-font-family, system-ui, sans-serif)",color:"var(--semiotic-text, #111)",opacity:bt?.55:1,transition:"opacity 240ms ease-out",gridColumn:"primary"===G?"span 2":void 0,cursor:ge?"pointer":void 0,...le},wt=D(e=>{let t=e.currentTarget.getBoundingClientRect(),i=e.clientX-t.left,r=e.clientY-t.top,n={value:Oe?Number.NaN:qe,level:it,delta:at};ge&&ge(n,{x:i,y:r}),ye&&ye({type:"click",datum:n,x:i,y:r,chartType:"BigNumber",chartId:ve,timestamp:Date.now()})},[ge,ye,ve,Oe,qe,it,at]),Nt="inline"===Z?"span":"div",St=["semiotic-bignumber",`semiotic-bignumber--mode-${Z}`,`semiotic-bignumber--level-${it}`,`semiotic-bignumber--sentiment-${ot}`,bt?"semiotic-bignumber--stale":null,ae].filter(Boolean).join(" "),Ft="positive"===ot?"up":"negative"===ot?"down":"flat";if(Ne){let e="number"==typeof ze?ze:280,t="number"==typeof De?De:160;/*
|
|
5
|
+
/* @__PURE__ */T("div",{style:{fontSize:14,color:"rgba(128, 128, 128, 0.9)",lineHeight:1.5},children:t}),i&&/* @__PURE__ */T("div",{"data-testid":"semiotic-diagnostic-hint",style:{marginTop:10,padding:"8px 12px",background:"rgba(128, 128, 128, 0.06)",borderRadius:4,fontSize:12,color:"rgba(128, 128, 128, 0.8)",fontFamily:"monospace",textAlign:"left",whiteSpace:"pre-wrap",lineHeight:1.6},children:i})]})})}function t({componentName:t,width:i,height:r,children:n}){/* */
|
|
6
|
+
return R(H,{fallback:n=>/* @__PURE__ */R(e,{componentName:t,message:n.message,width:i,height:r}),children:n})}function i(e,t){return"function"==typeof e?.addEventListener?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):(e?.addListener?.(t),()=>e?.removeListener?.(t))}function r(e){return!(typeof window>"u"||!window.matchMedia)&&window.matchMedia(e).matches}function n(){let[e,t]=W(()=>r("(prefers-reduced-motion: reduce)"));return V(()=>{if(typeof window>"u"||!window.matchMedia)return;let e=window.matchMedia("(prefers-reduced-motion: reduce)");return t(e.matches),i(e,e=>t(e.matches))},[]),e}function a(){let e=q(O,X,Y);return U(e).current}function l(e,t={}){if("function"==typeof e)return e;let i=t.locale??"en-US",r=t.currency??"USD";if("currency"===e){let e=t.precision??2,n=new Intl.NumberFormat(i,{style:"currency",currency:r,maximumFractionDigits:e,minimumFractionDigits:e});return e=>n.format(e)}if("percent"===e){let e=t.precision??1,r=new Intl.NumberFormat(i,{style:"percent",maximumFractionDigits:e,minimumFractionDigits:0});return e=>r.format(e)}if("compact"===e){let e=t.precision??1,r=new Intl.NumberFormat(i,{notation:"compact",maximumFractionDigits:e,minimumFractionDigits:0});return e=>r.format(e)}if("duration"===e)return e=>o(e);let n=t.precision??0,a=new Intl.NumberFormat(i,{notation:t.notation??"standard",maximumFractionDigits:n,minimumFractionDigits:0});return e=>a.format(e)}function o(e){if(!Number.isFinite(e))return String(e);let t=e<0?"-":"",i=Math.abs(e),r=Math.round(i);if(r<1e3)return`${t}${r}ms`;let n=Math.round(i/10)/100;if(n<60)return`${t}${u(n)}s`;let a=Math.round(i/1e3);if(a<3600)return`${t}${s(Math.floor(a/60),"m",a%60,"s")}`;let l=Math.round(i/6e4);if(l<1440)return`${t}${s(Math.floor(l/60),"h",l%60,"m")}`;let o=Math.round(i/36e5);return`${t}${s(Math.floor(o/24),"d",o%24,"h")}`}function s(e,t,i,r){return 0===i?`${e}${t}`:`${e}${t} ${i}${r}`}function u(e){return String(Math.round(100*e)/100)}function c(e,t,i){return`${t??""}${e}${i??""}`}function m(e,t){return 0===e||t(Math.abs(e))===t(0)}function d(e,t){return Number.isFinite(e)?m(e,t)?t(0):`${e>0?"+":"−"}${t(Math.abs(e))}`:""}function h(e,t,i="en-US",r=1){if(!Number.isFinite(e)||!Number.isFinite(t)||0===e)return null;let n=(t-e)/Math.abs(e);return new Intl.NumberFormat(i,{style:"percent",maximumFractionDigits:r,minimumFractionDigits:0,signDisplay:"exceptZero"}).format(n)}function b({target:e,value:t,format:i,locale:r,currency:n,precision:a}){let o=G(()=>new Intl.NumberFormat(r??"en-US",{style:"percent",maximumFractionDigits:0}),[r]),s=G(()=>l(e?.format??i??"number",{locale:r,currency:n,precision:a}),[e?.format,i,r,n,a]);return G(()=>{if(!e||!Number.isFinite(e.value))return null;let i="number"==typeof t&&Number.isFinite(t)&&0!==e.value?o.format(t/e.value):null,r=s(e.value),n=i?e.label?`${i} of ${e.label} (${r})`:`${i} of ${r}`:e.label?`target ${e.label} (${r})`:`target ${r}`;return{label:e.label,percent:i,formattedValue:r,text:n}},[e,t,s,o])}function f(e,t){if(!t||0===t.length||!Number.isFinite(e))return null;let i=t.filter(e=>Number.isFinite(e.at)||e.at===-1/0).slice().sort((e,t)=>e.at-t.at),r=null;for(let t of i){if(!(e>=t.at))break;r=t}return r}function p(e,t){return t||("neutral"===e?"var(--semiotic-text, currentColor)":`var(--semiotic-${e}, currentColor)`)}function g(e,t){let i=t.padding??1;if(0===e.length)return{line:"",area:"",points:[]};if(1===e.length){let e=t.width/2,i=t.height/2;return{line:`M${e},${i}`,area:"",points:[{x:e,y:i}]}}let r=t.yMin??e.reduce((e,t)=>Number.isFinite(t)&&t<e?t:e,1/0),n=(t.yMax??e.reduce((e,t)=>Number.isFinite(t)&&t>e?t:e,-1/0))-r||1,a=Math.max(0,t.width-2*i),l=Math.max(0,t.height-2*i),o=a/(e.length-1),s=[],u="";for(let t=0;t<e.length;t++){let a=e[t];if(!Number.isFinite(a))continue;let c=i+t*o,m=i+l-(a-r)/n*l;u+=`${0===s.length?"M":"L"}${c.toFixed(2)},${m.toFixed(2)}`,s.push({x:c,y:m})}if(0===s.length)return{line:"",area:"",points:[]};let c=s[0],m=i+l;return{line:u,area:`${u} L${s[s.length-1].x.toFixed(2)},${m.toFixed(2)} L${c.x.toFixed(2)},${m.toFixed(2)} Z`,points:s}}function y(e,t){return e.displayName=t,e}function v(e,t,i){return void 0===e?i:"function"==typeof e?e(t):e}function x(e,t,i,r=e){let[n,a]=k(()=>r),l=j(r),o=j(null),s=j(e),u=j(0),c=!!t,m="object"==typeof t?t.duration:void 0,d="number"==typeof m&&Number.isFinite(m)?Math.max(0,m):300,h="object"==typeof t&&"linear"===t.easing?"linear":"ease-out",b=j(e);return M(()=>{let t=e=>{l.current=e,a(e)};if(!Number.isFinite(e))return void t(e);if(!c||i)return void t(e);if(0===d)return void t(e);s.current=l.current,b.current=e,u.current=typeof performance<"u"?performance.now():Date.now();let r="linear"===h?e=>e:e=>1-Math.pow(1-e,3),n=e=>{let i=Math.min(1,(e-u.current)/d),a=r(i),l=s.current+(b.current-s.current)*a;t(l),i<1?o.current=requestAnimationFrame(n):(o.current=null,t(b.current))};return o.current=requestAnimationFrame(n),()=>{null!=o.current&&cancelAnimationFrame(o.current),o.current=null}},[c,d,h,i,e]),n}function w(e,t){let[i,r]=k(!1);return M(()=>{if(!t||null==e)return void r(!1);let i=()=>{let i=Date.now()-e;r(i>=t)};i();let n=setInterval(i,Math.max(250,Math.floor(t/4)));return()=>clearInterval(n)},[e,t]),i}function N(e,t,i){if(i&&"auto"!==i)return i;if(null==e||0===e||!Number.isFinite(e))return"neutral";let r=t??"higher-is-better";return"neutral"===r?"neutral":("higher-is-better"===r?e>0:e<0)?"positive":"negative"}function S(e){return"positive"===e?"var(--semiotic-success, currentColor)":"negative"===e?"var(--semiotic-danger, currentColor)":"var(--semiotic-text-secondary, currentColor)"}function F(e){return"positive"===e?"▲":"negative"===e?"▼":"■"}function $(e){let t=[];if(e.label&&t.push(`${e.label}:`),t.push(e.unit?`${e.formattedValue} ${e.unit}`:e.formattedValue),e.deltaFormatted){let i=e.delta,r=null!=i&&Number.isFinite(i)&&0!==i?i>0?"up":"down":"change",n=e.deltaPercent?` (${e.deltaPercent})`:"",a=e.comparisonLabel?` from ${e.comparisonLabel}`:"";t.push(`${r} ${e.deltaFormatted}${n}${a}`)}return e.targetText&&t.push(e.targetText),e.thresholdLabel&&t.push(e.thresholdLabel),e.stale&&t.push(e.staleLabel??"stale"),t.join(", ")}function _(e){let t=Math.floor(.45*e.width),i=Math.floor(.6*e.width),r=(e,t)=>/* @__PURE__ */K("div",{style:{width:e,height:t,background:"var(--semiotic-border, #e0e0e0)",borderRadius:4,opacity:.55}});/* */
|
|
7
|
+
return Q("div",{style:{display:"flex",flexDirection:"column",gap:10,justifyContent:"center",width:"100%",height:"100%"},children:["thumbnail"!==e.mode&&"inline"!==e.mode?r(t,10):null,r(i,"presentation"===e.mode?48:28),"tile"===e.mode||"presentation"===e.mode?r(Math.floor(.35*e.width),8):null]})}import{forwardRef as z,useCallback as D,useEffect as M,useImperativeHandle as C,useMemo as I,useRef as j,useState as k}from"react";import{Component as L}from"react";import{jsx as T,jsxs as E}from"react/jsx-runtime";import{jsx as B}from"react/jsx-runtime";var H=class extends L{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onError?.(e,t)}render(){if(this.state.error){let{fallback:t}=this.props,i=this.state.error;return"function"==typeof t?t(i):void 0!==t?t:/* @__PURE__ */B(e,{componentName:"ChartErrorBoundary",message:i.message||"An unexpected error occurred while rendering this chart.",width:600,height:400})}return this.props.children}};import{jsx as R}from"react/jsx-runtime";import{useState as W,useEffect as V}from"react";import{useEffect as A,useLayoutEffect as P,useRef as U,useState as Z,useSyncExternalStore as q}from"react";var O=()=>()=>{},X=()=>!1,Y=()=>!0;import{useMemo as G}from"react";import{Fragment as J,jsx as K,jsxs as Q}from"react/jsx-runtime";var ee={tile:{width:280,height:184,align:"start",labelSize:13,captionSize:11,valueSize:40,deltaSize:13,padding:{top:14,right:16,bottom:14,left:16},background:"var(--semiotic-surface, transparent)",border:!0,showHeader:!0,showDelta:!0,showTrend:!0,showChart:!0,chartSize:44},presentation:{width:540,height:320,align:"center",labelSize:18,captionSize:14,valueSize:96,deltaSize:18,padding:{top:32,right:32,bottom:32,left:32},background:"var(--semiotic-surface, transparent)",border:!0,showHeader:!0,showDelta:!0,showTrend:!0,showChart:!0,chartSize:80},inline:{width:void 0,height:void 0,align:"inherit",labelSize:0,captionSize:0,valueSize:0,deltaSize:0,padding:{top:0,right:0,bottom:0,left:0},background:"transparent",border:!1,showHeader:!1,showDelta:!0,showTrend:!1,showChart:!1,chartSize:0},thumbnail:{width:96,height:56,align:"center",labelSize:0,captionSize:0,valueSize:22,deltaSize:0,padding:{top:4,right:6,bottom:4,left:6},background:"transparent",border:!1,showHeader:!1,showDelta:!1,showTrend:!1,showChart:!1,chartSize:0}},te=/* @__PURE__ */y(/* @__PURE__ */z((e,i)=>{let{value:r,label:o,caption:s,format:u,locale:h,currency:g,precision:y,prefix:z,suffix:L,unit:T,comparison:E,target:B,delta:H,deltaFormat:R,showDeltaPercent:W,direction:V,sentiment:A,thresholds:P,windowSize:U=60,mode:Z="tile",align:q,width:O,height:X,padding:Y,emphasis:G,color:te,background:ie,borderColor:re,borderRadius:ne,className:ae,style:le,animate:oe,stalenessThreshold:se,staleLabel:ue,headerSlot:ce,valueSlot:me,deltaSlot:de,trendSlot:he,chartSlot:be,chartSize:fe,footerSlot:pe,onClick:ge,onObservation:ye,chartId:ve,description:xe,summary:we,loading:Ne,loadingContent:Se,emptyContent:Fe}=e,$e=ee[Z]??ee.tile,_e=q??$e.align,ze=O??$e.width,De=X??$e.height,Me=n(),Ce=a(),[Ie,je]=k([]),[ke,Le]=k(null),[Te,Ee]=k(null),[Be,He]=k(null),Re=j([]),We=j(null),Ve=j(r);M(()=>{Ve.current=r},[r]);let Ae=j(U);M(()=>{Ae.current=U},[U]);let Pe=D(e=>{let t="number"==typeof e?{value:e,time:Date.now()}:{time:Date.now(),...e},i="number"==typeof t.time?t.time:t.time instanceof Date?t.time.getTime():Date.now();return{...t,time:i}},[]),Ue=D(e=>{if(0===e.length)return;let t=Ae.current,i=e.map(Pe),r=Re.current.concat(i);r.length>t&&(r=r.slice(r.length-t)),Re.current=r;let n=i[i.length-1];We.current=n.value,je(r),Le(n.value);for(let e=i.length-1;e>=0;e--){let t=i[e].comparison;if(null!=t){Ee(t);break}}He(n.time)},[Pe]),Ze=D(e=>Ue([e]),[Ue]);C(i,()=>({push:e=>Ze(e),pushMany:e=>Ue(e),clear:()=>{Re.current=[],We.current=null,je([]),Le(null),Ee(null),He(null)},getValue:()=>We.current??(Number.isFinite(Ve.current)?Ve.current:null),getData:()=>Re.current.slice()}),[Ze,Ue]);let qe=ke??r,Oe=null==qe||"number"!=typeof qe||!Number.isFinite(qe),Xe=I(()=>l(u??"number",{locale:h,currency:g,precision:y}),[u,h,g,y]),Ye=I(()=>l(R??u??"number",{locale:h,currency:g,precision:null==R&&null==u?0:y}),[R,u,h,g,y]),Ge=oe??!1,Je=("object"!=typeof Ge||!1!==Ge.intro)&&!!Ge,Ke=Number.isFinite(qe)?qe:0,Qe=x(Ke,Ge,Me,j(!Je||Me||Ce?Ke:0).current),et=Ge?Qe:Number.isFinite(qe)?qe:0,tt=I(()=>f(Number.isFinite(qe)?qe:NaN,P),[qe,P]),it=tt?tt.level:"neutral",rt=te??p(it,tt?.color),nt=Te??E?.value??null,at=H??(null!=nt&&Number.isFinite(qe)?qe-nt:null),lt=null!=at&&Number.isFinite(at)&&m(at,Ye)?0:at,ot=N(lt,E?.direction??B?.direction??V,A),st=null!=at&&Number.isFinite(at)?d(at,Ye):null,ut=I(()=>new Intl.NumberFormat(h??"en-US",{style:"percent",maximumFractionDigits:1,minimumFractionDigits:0,signDisplay:"exceptZero"}),[h]),ct=null!=nt&&Number.isFinite(qe)&&(W??!0)&&0!==nt?ut.format((qe-nt)/Math.abs(nt)):null,mt=b({target:B,value:qe,format:u,locale:h,currency:g,precision:y}),dt=mt?.percent??null,ht=mt?.text??null,bt=w(Be,se),ft=Number.isFinite(et)?c(Xe(et),z,L):"",pt={value:Oe?null:qe,formattedValue:ft,level:it,color:rt,delta:at,deltaFormatted:st,deltaPercent:ct,sentiment:ot,isStale:bt,pushBuffer:Ie},gt=xe??$({label:o,formattedValue:Number.isFinite(qe)?c(Xe(qe),z,L):"",unit:T,comparisonLabel:E?.label,delta:lt,deltaFormatted:st,deltaPercent:ct,targetText:ht,thresholdLabel:tt?.label,stale:bt,staleLabel:ue}),yt="number"==typeof Y?{top:Y,right:Y,bottom:Y,left:Y}:{...$e.padding,...Y??{}},vt="end"===_e?"flex-end":"center"===_e?"center":"start"===_e?"flex-start":"inherit",xt={position:"relative",boxSizing:"border-box",width:ze,height:De,padding:`${yt.top}px ${yt.right}px ${yt.bottom}px ${yt.left}px`,background:ie??$e.background,border:$e.border?`1px solid ${re??"var(--semiotic-border, #e2e2e2)"}`:void 0,borderRadius:"number"==typeof ne?`${ne}px`:ne??"var(--semiotic-border-radius, 8px)",display:"inline"===Z?"inline-flex":"flex",flexDirection:"column",alignItems:"inherit"===vt?void 0:vt,textAlign:_e,fontFamily:"var(--semiotic-font-family, system-ui, sans-serif)",color:"var(--semiotic-text, #111)",opacity:bt?.55:1,transition:"opacity 240ms ease-out",gridColumn:"primary"===G?"span 2":void 0,cursor:ge?"pointer":void 0,...le},wt=D(e=>{let t=e.currentTarget.getBoundingClientRect(),i=e.clientX-t.left,r=e.clientY-t.top,n={value:Oe?Number.NaN:qe,level:it,delta:at};ge&&ge(n,{x:i,y:r}),ye&&ye({type:"click",datum:n,x:i,y:r,chartType:"BigNumber",chartId:ve,timestamp:Date.now()})},[ge,ye,ve,Oe,qe,it,at]),Nt="inline"===Z?"span":"div",St=["semiotic-bignumber",`semiotic-bignumber--mode-${Z}`,`semiotic-bignumber--level-${it}`,`semiotic-bignumber--sentiment-${ot}`,bt?"semiotic-bignumber--stale":null,ae].filter(Boolean).join(" "),Ft="positive"===ot?"up":"negative"===ot?"down":"flat";if(Ne){let e="number"==typeof ze?ze:280,t="number"==typeof De?De:160;/* */
|
|
8
8
|
return K(Nt,{role:"status","aria-live":"polite","aria-busy":"true",className:`${St} semiotic-bignumber--loading`,style:{...xt,opacity:1},children:Se??/* @__PURE__ */K(_,{width:e,height:t,mode:Z})})}return Oe?!1===Fe?null:/* @__PURE__ */K(Nt,{role:"status","aria-label":o?`${o}: no value`:"no value",className:`${St} semiotic-bignumber--empty`,style:{...xt,color:"var(--semiotic-text-secondary, #666)",fontSize:13,alignItems:"center",justifyContent:"center"},children:Fe??"—"}):/* @__PURE__ */K(t,{componentName:"BigNumber",width:"number"==typeof ze?ze:280,height:"number"==typeof De?De:160,children:/* @__PURE__ */Q(Nt,{role:"group","aria-label":gt,"data-chart":"BigNumber","data-mode":Z,"data-level":it,"data-stale":bt?"true":void 0,"data-sentiment":ot,className:St,style:xt,onClick:ge||ye?wt:void 0,children:[$e.showHeader&&(o||s||ce)?/* @__PURE__ */K("div",{className:"semiotic-bignumber__header",style:{display:"flex",flexDirection:"column",gap:2,marginBottom:6,paddingRight:$e.showChart&&null!=be?(fe??$e.chartSize)+8:0},children:v(ce,pt,
|
|
9
9
|
/* @__PURE__ */Q(J,{children:[o?/* @__PURE__ */K("span",{className:"semiotic-bignumber__label",style:{fontSize:$e.labelSize,color:"var(--semiotic-text-secondary, #6b7280)",fontWeight:500,letterSpacing:.2},children:o}):null,s?/* @__PURE__ */K("span",{className:"semiotic-bignumber__caption",style:{fontSize:$e.captionSize,color:"var(--semiotic-text-secondary, #9ca3af)"},children:s}):null]}))}):null,v(me,pt,
|
|
10
10
|
/* @__PURE__ */Q(Nt,{className:`semiotic-bignumber__value semiotic-bignumber__value--${it}`,style:{display:"inline"===Z?"inline-flex":"flex",alignItems:"baseline",gap:6,fontVariantNumeric:"tabular-nums",fontWeight:600,color:rt,fontSize:$e.valueSize||void 0,lineHeight:1.05},children:[
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function e(){return{name:"semiotic-unused-worker-assets",apply:"build",enforce:"post",generateBundle:{order:"post",handler(e,t){const o=new Map(Object.entries(t).filter(([,e])=>"asset"===e.type&&i.test(e.fileName)));if(!o.size)return;const r=Object.entries(t).filter(([e,t])=>!o.has(e)&&!t.fileName.endsWith(".map")).map(([,e])=>"chunk"===e.type?e.code:"string"==typeof e.source?e.source:(new TextDecoder).decode(e.source)),s=/* @__PURE__ */new Set;for(let e=0;e<r.length;e++)for(const[t,n]of o){if(s.has(t))continue;const o=n.fileName.slice(n.fileName.lastIndexOf("/")+1);(r[e].includes(o)||r[e].includes(encodeURIComponent(o)))&&(s.add(t),"asset"===n.type&&r.push("string"==typeof n.source?n.source:(new TextDecoder).decode(n.source)))}for(const[e,r]of o)if(!s.has(e)){delete t[e];for(const[e,o]of Object.entries(t))"asset"===o.type&&o.fileName===`${r.fileName}.map`&&delete t[e]}}}}}var t,o=Object.defineProperty,r=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,c={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(c,{semioticVite:()=>e}),module.exports=(t=c,((e,t,c,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let c of s(t))n.call(e,c)||void 0===c||o(e,c,{get:()=>t[c],enumerable:!(i=r(t,c))||i.enumerable});return e})(o({},"__esModule",{value:!0}),t));var i=/(?:^|\/)(?:forceLayoutWorker|processSankeyLayoutWorker|physicsWorker)(?:-[\w-]+)?\.js$/;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(){return{name:"semiotic-unused-worker-assets",apply:"build",enforce:"post",generateBundle:{order:"post",handler(e,s){let o=new Map(Object.entries(s).filter(([,e])=>"asset"===e.type&&t.test(e.fileName)));if(!o.size)return;let r=Object.entries(s).filter(([e,t])=>!o.has(e)&&!t.fileName.endsWith(".map")).map(([,e])=>"chunk"===e.type?e.code:"string"==typeof e.source?e.source:(new TextDecoder).decode(e.source)),n=/* @__PURE__ */new Set;for(let e=0;e<r.length;e++)for(let[t,s]of o){if(n.has(t))continue;let o=s.fileName.slice(s.fileName.lastIndexOf("/")+1);!r[e].includes(o)&&!r[e].includes(encodeURIComponent(o))||(n.add(t),"asset"===s.type&&r.push("string"==typeof s.source?s.source:(new TextDecoder).decode(s.source)))}for(let[e,t]of o)if(!n.has(e)){delete s[e];for(let[e,o]of Object.entries(s))"asset"===o.type&&o.fileName===`${t.fileName}.map`&&delete s[e]}}}}}var t=/(?:^|\/)(?:forceLayoutWorker|processSankeyLayoutWorker|physicsWorker)(?:-[\w-]+)?\.js$/;export{e as semioticVite};
|
package/dist/semiotic-xy.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import StreamXYFrame from "./components/stream/StreamXYFrame";
|
|
|
6
6
|
export { StreamXYFrame };
|
|
7
7
|
export { registerBuiltInXYPlugins } from "./components/stream/xyPlugins/registerBuiltIn";
|
|
8
8
|
export { Tooltip, TooltipRoot, MultiLineTooltip, MultiPointTooltip, hasOwnTooltipChrome, hasTooltipContent, markTooltipChrome, } from "./components/Tooltip/Tooltip";
|
|
9
|
-
export type { TooltipProp, TooltipConfig, TooltipField, MultiLineTooltipConfig, MultiTooltipConfig, TooltipRootProps, TooltipChromeMode, } from "./components/Tooltip/Tooltip";
|
|
9
|
+
export type { TooltipProp, TooltipConfig, TooltipField, MultiLineTooltipConfig, MultiTooltipConfig, CustomTooltipConfig, TooltipRootProps, TooltipChromeMode, } from "./components/Tooltip/Tooltip";
|
|
10
10
|
export { LineChart } from "./components/charts/xy/LineChart";
|
|
11
11
|
export { BumpChart, rankBumpData } from "./components/charts/xy/BumpChart";
|
|
12
12
|
export { AreaChart } from "./components/charts/xy/AreaChart";
|
|
@@ -57,3 +57,5 @@ export { resolveStyleRules, matchesThreshold, ruleMatches, makeRuleValueResolver
|
|
|
57
57
|
export type { StyleRule, StyleRuleStyle, StyleRuleThreshold, StyleRuleContext, StyleRulePredicate } from "./components/charts/shared/styleRules";
|
|
58
58
|
export { isHatchFill, hatchPatternDef, resolveSvgFill, hatchFillId } from "./components/charts/shared/hatchFill";
|
|
59
59
|
export type { HatchFill } from "./components/charts/shared/hatchFill";
|
|
60
|
+
export { useLinkedCrosshair, useCrosshairPosition } from "./components/store/LinkedCrosshairStore";
|
|
61
|
+
export type { CrosshairPosition, CrosshairPositionInput, LinkedCrosshairConfig, UseLinkedCrosshairResult } from "./components/store/LinkedCrosshairStore";
|
package/dist/semiotic.d.ts
CHANGED
|
@@ -152,7 +152,7 @@ export type { AnnotationLabelBackground, AnnotationLabelBackgroundConfig, Annota
|
|
|
152
152
|
export { smartTickFormat, adaptiveTimeTicks } from "./components/charts/shared/formatUtils";
|
|
153
153
|
export type { AdaptiveTimeTickOptions, TimeGranularity } from "./components/charts/shared/formatUtils";
|
|
154
154
|
export { darkenColor, lightenColor } from "./components/charts/shared/colorManipulation";
|
|
155
|
-
export type { TooltipProp, TooltipConfig, TooltipField, MultiLineTooltipConfig, MultiTooltipConfig, TooltipRootProps, TooltipChromeMode } from "./components/Tooltip/Tooltip";
|
|
155
|
+
export type { TooltipProp, TooltipConfig, TooltipField, MultiLineTooltipConfig, MultiTooltipConfig, CustomTooltipConfig, TooltipRootProps, TooltipChromeMode } from "./components/Tooltip/Tooltip";
|
|
156
156
|
export { smartTooltipEntries } from "./components/charts/shared/tooltipUtils";
|
|
157
157
|
export type { SmartTooltipEntry, SmartTooltipResult } from "./components/charts/shared/tooltipUtils";
|
|
158
158
|
export * from "./components/semiotic-stream-types";
|
|
@@ -161,3 +161,5 @@ export { MobileAnnotationCalloutList } from "./components/MobileAnnotationCallou
|
|
|
161
161
|
export type { MobileAnnotationCalloutListProps } from "./components/MobileAnnotationCalloutList";
|
|
162
162
|
export { compileMotionEncoding, resolveMotionAccessor, resolveMotionAge, opacityFromAge, resolveMotionVector, deriveMotionVector } from "./components/charts/shared/motionEncoding";
|
|
163
163
|
export type { MotionEncodingConstant, MotionEncodingAccessor, MotionTimeBasis, MotionTimeUnit, MotionCoordinateSpace, MotionTimeEncoding, MotionPlacementEncoding, MotionKinematicsEncoding, MotionProcessEncoding, MotionAccessibleEncoding, MotionEncoding, ResolvedMotionEncodingRow, MotionEncodingCompilation, CompileMotionEncodingOptions, ResolveMotionAgeOptions, ResolvedMotionAge, MotionAgeOpacityType, MotionAgeOpacityOptions, MotionPoint, ResolvedMotionVector } from "./components/charts/shared/motionEncoding";
|
|
164
|
+
export { useLinkedCrosshair, useCrosshairPosition } from "./components/store/LinkedCrosshairStore";
|
|
165
|
+
export type { CrosshairPosition, CrosshairPositionInput, LinkedCrosshairConfig, UseLinkedCrosshairResult } from "./components/store/LinkedCrosshairStore";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
function e(e,t,a){let r=a?.center?.x??0,o=a?.center?.y??0;return{x:r+Math.sin(e)*t,y:o-Math.cos(e)*t}}function t(e,t,a){let r=a?.center?.x??0,o=a?.center?.y??0;return(Math.atan2(e-r,-(t-o))+
|
|
3
|
-
return
|
|
4
|
-
/* @__PURE__ */
|
|
5
|
-
return
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
return Ha("g",{className:B,role:"slider",tabIndex:j?-1:0,"aria-disabled":j||void 0,"aria-label":y,"aria-valuemin":o,"aria-valuemax":n,"aria-valuenow":e,"aria-valuetext":$??`${y}: ${e}`,"aria-roledescription":f,"data-viz-control":d,"data-viz-control-id":h,"data-viz-control-state":"controlled",pointerEvents:"all",onPointerDown:e=>{j||(e.preventDefault(),e.stopPropagation(),e.currentTarget.setPointerCapture?.(e.pointerId),A.current=e.pointerId,k?.(
|
|
2
|
+
function e(e,t,a){let r=a?.center?.x??0,o=a?.center?.y??0;return{x:r+Math.sin(e)*t,y:o-Math.cos(e)*t}}function t(e,t,a){let r=a?.center?.x??0,o=a?.center?.y??0;return(Math.atan2(e-r,-(t-o))+Oa)%Oa}function a(e,t){let[a,r]=e,o=r-a||1,n=t?.startAngle??0,s=t?.endAngle??Oa;return e=>n+(e-a)/o*(s-n)}function r(t,a,r,n,s){let i=s?.center,l=(t,a)=>{let{x:r,y:n}=e(t,a,{center:i});return`${o(r)},${o(n)}`},c=Math.max(0,r),u=Math.max(c,n),m=Math.abs(a-t),p=a>=t?1:0;if(m>=Oa-1e-6){let e=i?.x??0,t=i?.y??0,a=`${o(e)},${o(t-u)}`,r=`${o(e)},${o(t+u)}`,n=`M${a} A${o(u)},${o(u)} 0 1 1 ${r} A${o(u)},${o(u)} 0 1 1 ${a} Z`;if(c>0){let a=`${o(e)},${o(t-c)}`,r=`${o(e)},${o(t+c)}`;n+=` M${a} A${o(c)},${o(c)} 0 1 0 ${r} A${o(c)},${o(c)} 0 1 0 ${a} Z`}return n}let d=m>Math.PI?1:0,h=l(t,u),y=l(a,u);if(c<=0){let e=i?.x??0,t=i?.y??0;return`M${o(e)},${o(t)} L${h} A${o(u)},${o(u)} 0 ${d} ${p} ${y} Z`}let f=l(a,c),$=l(t,c);return`M${h} A${o(u)},${o(u)} 0 ${d} ${p} ${y} L${f} A${o(c)},${o(c)} 0 ${d} ${1===p?0:1} ${$} Z`}function o(e){return Math.round(1e3*e)/1e3}function n(e,t,a=0){return t<=0?e:((e-a)%t+t)%t+a}function s(e,t,a){if(a<=0)return t-e;let r=(t-e)%a;return r>a/2?r-=a:r<=-a/2&&(r+=a),r}function i(e){return Number(e.toPrecision(12))}function l(e){try{return e.matches(":focus-visible")}catch{return!0}}function c({value:o,onChange:c,period:u=365,radius:m=180,innerRadius:p=14,width:d,height:h,step:y,largeStep:f,label:$="Range",formatValue:g,arcFill:v="var(--semiotic-primary, #4e79a7)",stroke:b="var(--semiotic-bg, #ffffff)",onObservation:C,controlType:x="range-boundary",controlId:T,chartId:S,chartType:P="CircularBrush",className:M,style:j}){let k=d??2*m+40,I=h??2*m+40,D=k/2,w=I/2,R=a([0,u]),A=Number.isInteger(u)&&u>=2,N=null!=y&&y>0?y:A?1:u/100,F=null!=f&&f>0?f:A?7:10*N,O=i(Math.max(0,Math.ceil(u/N-1e-9)-1)*N),L=Fa(null),E=Fa(o);E.current=o;let[B,V]=Na.useState(null),K=Fa(!1),U=Na.useMemo(()=>pe({controlType:x,controlId:T,chartId:S,chartType:P,onObservation:C}),[x,T,S,P,C]),H=e=>{let t=i(n(e,u));return t>=u?0:t},W=e=>H(i(Math.round(e/N)*N)),Z=(e,t,a)=>{let r=e(E.current);E.current=r;let o=[r.start,r.end];a.start&&U("control-start",o,t),c(e),U("control-change",o,t),a.end&&U("control-end",o,t)},G=e=>{let a=e.currentTarget.ownerSVGElement??e.currentTarget,r=a.getBoundingClientRect(),o=a.viewBox?.baseVal,n=o?.width||k,s=o?.height||I,i=(e.clientX-r.left)*(n/(r.width||1))-D,l=(e.clientY-r.top)*(s/(r.height||1))-w;return W(t(i,l)/Oa*u)},z=(e,t)=>{e.preventDefault(),e.stopPropagation();let a=e.currentTarget;a.ownerDocument?.activeElement!==a&&(K.current=!0,a.focus?.({preventScroll:!0}),K.current=!1),a.ownerSVGElement?.setPointerCapture?.(e.pointerId),L.current={mode:t,lastValue:G(e),changed:!1}},Y=e=>{let t=e.currentTarget.ownerSVGElement??e.currentTarget;t?.hasPointerCapture?.(e.pointerId)&&t.releasePointerCapture(e.pointerId);let a=L.current;if(L.current=null,a?.changed){let e=E.current;U("control-end",[e.start,e.end],"pointer")}},X=e=>Z(e,"keyboard",{start:!0,end:!0}),_=(e,t)=>{X("range"===e?e=>({start:H(e.start+t),end:H(e.end+t)}):a=>({...a,[e]:H(a[e]+t)}))},J=(e,t)=>{X("range"===e?e=>({start:t,end:H(e.end+t-e.start)}):a=>({...a,[e]:t}))},Q=e=>t=>{let a=t.shiftKey?F:N,r={ArrowRight:()=>_(e,a),ArrowUp:()=>_(e,a),ArrowLeft:()=>_(e,-a),ArrowDown:()=>_(e,-a),PageUp:()=>_(e,F),PageDown:()=>_(e,-F),Home:()=>J(e,0),End:()=>J(e,O)}[t.key];r&&(t.preventDefault(),r())},q=e=>({onFocus:t=>V({mode:e,visible:!K.current&&l(t.currentTarget)}),onBlur:()=>V(null)}),ee=e=>B?.mode===e&&B.visible,te=o.start<=o.end?[[o.start,o.end]]:[[o.start,u],[0,o.end]],ae=e=>g?g(e):String(e),re=t=>e(R(t),m+8),oe=t=>e(R(t),p);/* */
|
|
3
|
+
return La("svg",{viewBox:`0 0 ${k} ${I}`,width:k,height:I,className:M,onPointerMove:e=>{let t=L.current;if(!t)return;let a=G(e),r=!t.changed;if("range"===t.mode){let e=s(t.lastValue,a,u);if(0===e)return;return t.lastValue=a,t.changed=!0,void Z(t=>({start:H(t.start+e),end:H(t.end+e)}),"pointer",{start:r,end:!1})}let o=t.mode;E.current[o]!==a&&(t.changed=!0,Z(e=>({...e,[o]:a}),"pointer",{start:r,end:!1}))},onPointerUp:Y,onPointerCancel:Y,onLostPointerCapture:Y,style:{touchAction:"none",...j},"aria-label":`${$} brush`,"data-viz-control-id":T,children:/* @__PURE__ */Ea("g",{transform:`translate(${D},${w})`,children:[
|
|
4
|
+
/* @__PURE__ */La("g",{role:"slider",tabIndex:0,"aria-label":`${$} (move both ends)`,"aria-valuemin":0,"aria-valuemax":O,"aria-valuenow":o.start,"aria-valuetext":`${ae(o.start)} to ${ae(o.end)}`,onPointerDown:e=>z(e,"range"),onKeyDown:Q("range"),...q("range"),style:{cursor:"grab",outline:"none"},children:te.map(([e,t],a)=>/* @__PURE__ */La("path",{d:r(R(e),R(t),p,m),fill:v,fillOpacity:.35,stroke:ee("range")?Ba:b,strokeWidth:ee("range")?3:1},a))}),["start","end"].map(e=>{let t=o[e],a=oe(t),r=re(t);/* */
|
|
5
|
+
return Ea("g",{role:"slider",tabIndex:0,"aria-label":`${$} ${e}`,"aria-valuemin":0,"aria-valuemax":O,"aria-valuenow":t,"aria-valuetext":ae(t),onPointerDown:t=>z(t,e),onKeyDown:Q(e),...q(e),style:{cursor:"grab",outline:"none"},children:[
|
|
6
|
+
/* @__PURE__ */La("line",{x1:a.x,y1:a.y,x2:r.x,y2:r.y,stroke:"transparent",strokeWidth:20}),
|
|
7
|
+
/* @__PURE__ */La("line",{x1:a.x,y1:a.y,x2:r.x,y2:r.y,stroke:b,strokeWidth:1.5}),
|
|
8
|
+
/* @__PURE__ */La("circle",{cx:r.x,cy:r.y,r:4.5,fill:b,stroke:v,strokeWidth:1}),ee(e)&&/* @__PURE__ */La("circle",{cx:r.x,cy:r.y,r:8,fill:"none",stroke:Ba,strokeWidth:2})]},e)})]})})}function u(e,t,a,r,o){let n=Math.min(a,Math.max(t,e));if(!(r>0))return n;let s=o+Math.round((n-o)/r)*r;return Math.min(a,Math.max(t,Number(s.toFixed(12))))}function m(e,t,a,{min:r,max:o,step:n,largeStep:s}){let i=t?s:n;switch(e){case"ArrowLeft":case"ArrowDown":return a-i;case"ArrowRight":case"ArrowUp":return a+i;case"PageDown":return a-s;case"PageUp":return a+s;case"Home":return r;case"End":return o;default:return null}}function p({value:e,onChange:t,pointToValue:a,pointerToValue:r,min:o,max:n,step:s=1,stepOrigin:i=o,largeStep:l=5*s,x:c,y:p,controlType:d="value",controlId:h,label:y,ariaRoleDescription:f,valueText:$,radius:g=12,fill:v="var(--semiotic-bg, #ffffff)",stroke:b="var(--semiotic-primary, #4e79a7)",strokeWidth:C=4,labelText:x,labelDx:T=16,labelDy:S=-16,labelClassName:P,className:M,disabled:j=!1,onChangeStart:k,onChangeEnd:I,onObservation:D,chartId:w,chartType:R}){let A=Ka(null),N=Ka(e);N.current=e;let F=Va.useMemo(()=>pe({controlType:d,controlId:h,chartId:w,chartType:R,onObservation:D}),[w,R,h,d,D]),O=e=>{if(a){let t=gt(e);return t?a(t):null}return r?.(e)},L=e=>{if(j)return;let a=O(e);if(null==a||!Number.isFinite(a))return;let r=u(a,o,n,s,i);N.current=r,t(r),F("control-change",r,"pointer")},E=e=>{e.stopPropagation(),A.current===e.pointerId&&(e.currentTarget.hasPointerCapture?.(e.pointerId)&&e.currentTarget.releasePointerCapture?.(e.pointerId),A.current=null,I?.(N.current),F("control-end",N.current,"pointer"))},B=["semiotic-direct-manipulation-control",M].filter(Boolean).join(" ");/* */
|
|
9
|
+
return Ha("g",{className:B,role:"slider",tabIndex:j?-1:0,"aria-disabled":j||void 0,"aria-label":y,"aria-valuemin":o,"aria-valuemax":n,"aria-valuenow":e,"aria-valuetext":$??`${y}: ${e}`,"aria-roledescription":f,"data-viz-control":d,"data-viz-control-id":h,"data-viz-control-state":"controlled",pointerEvents:"all",onPointerDown:e=>{j||(e.preventDefault(),e.stopPropagation(),e.currentTarget.setPointerCapture?.(e.pointerId),A.current=e.pointerId,k?.(N.current),F("control-start",N.current,"pointer"),L(e))},onPointerMove:e=>{e.stopPropagation(),A.current===e.pointerId&&L(e)},onPointerUp:E,onPointerCancel:E,onLostPointerCapture:E,onKeyDown:e=>{if(j)return;let a=N.current,r=m(e.key,e.shiftKey,a,{min:o,max:n,step:s,largeStep:l});if(null===r)return;e.preventDefault();let c=u(r,o,n,s,i);c!==a&&(k?.(a),F("control-start",a,"keyboard"),N.current=c,t(c),F("control-change",c,"keyboard"),I?.(c),F("control-end",c,"keyboard"))},style:{cursor:j?"default":"grab",touchAction:"none"},children:[
|
|
10
10
|
/* @__PURE__ */Ua("circle",{className:"semiotic-direct-manipulation-control__hit",cx:c,cy:p,r:g+10,fill:"transparent"}),
|
|
11
|
-
/* @__PURE__ */Ua("circle",{className:"semiotic-direct-manipulation-control__handle",cx:c,cy:p,r:g,fill:
|
|
12
|
-
return Ga("g",{className:["semiotic-direct-manipulation-markers",S].filter(Boolean).join(" "),role:"group","aria-label":d,children:e.map((t,o)=>{let n=a[o]??{label:`Marker ${o+1}`},s=r(t,o),{lo:i,hi:l}=
|
|
13
|
-
return
|
|
11
|
+
/* @__PURE__ */Ua("circle",{className:"semiotic-direct-manipulation-control__handle",cx:c,cy:p,r:g,fill:v,stroke:b,strokeWidth:C}),x?/* @__PURE__ */Ua("text",{className:P,x:c+T,y:p+S,fill:b,children:x}):null]})}function d({values:e,onChange:t,markers:a,valueToPoint:r,pointToValue:o,min:n,max:s,step:i=1,stepOrigin:l=n,largeStep:c=5*i,ordered:p=!0,label:d,ariaRoleDescription:h,controlType:y="value",controlId:f="markers",radius:$=12,fill:g="var(--semiotic-bg, #ffffff)",stroke:v="var(--semiotic-primary, #4e79a7)",strokeWidth:b=4,labelDx:C=16,labelDy:x=-16,labelClassName:T,className:S,disabled:P=!1,onChangeStart:M,onChangeEnd:j,onObservation:k,chartId:I,chartType:D}){let w=Za([...e]);w.current=[...e];let R=Za(null),A=Wa.useMemo(()=>a.map((e,t)=>pe({controlType:y,controlId:e.controlId??`${f}-${t}`,chartId:I,chartType:D,onObservation:k})),[I,D,f,y,a,k]),N=(e,t)=>p?{lo:e>0?Math.max(n,t[e-1]):n,hi:e<t.length-1?Math.min(s,t[e+1]):s}:{lo:n,hi:s},F=(e,a,r)=>{let{lo:o,hi:n}=N(e,w.current),s=u(a,o,n,i,l);if(s===w.current[e])return!1;let c=[...w.current];return c[e]=s,w.current=c,t(c,{index:e,source:r}),A[e]?.("control-change",s,r),!0},O=(e,t)=>{let a=gt(e),r=a?o(a,t):null;return null!=r&&Number.isFinite(r)?r:null},L=e=>t=>{if(P)return;t.preventDefault(),t.stopPropagation(),t.currentTarget.setPointerCapture?.(t.pointerId);let a=w.current[e],r=p?w.current.flatMap((e,t)=>e===a?[t]:[]):[e];R.current={pointerId:t.pointerId,pressedIndex:e,startValue:a,coincident:r,active:r.length>1?null:e};let o={index:e,source:"pointer"};if(M?.([...w.current],o),A[e]?.("control-start",a,"pointer"),1===r.length){let a=O(t,e);null!=a&&F(e,a,"pointer")}},E=e=>{e.stopPropagation();let t=R.current;if(!t||t.pointerId!==e.pointerId)return;let a=O(e,t.active??t.pressedIndex);if(null!=a){if(null===t.active){if(a===t.startValue)return;t.active=a<t.startValue?Math.min(...t.coincident):Math.max(...t.coincident)}F(t.active,a,"pointer")}},B=e=>{e.stopPropagation();let t=R.current;if(!t||t.pointerId!==e.pointerId)return;e.currentTarget.hasPointerCapture?.(e.pointerId)&&e.currentTarget.releasePointerCapture?.(e.pointerId),R.current=null;let a=t.active??t.pressedIndex;j?.([...w.current],{index:a,source:"pointer"}),A[a]?.("control-end",w.current[a],"pointer")},V=e=>t=>{if(P)return;let{lo:a,hi:r}=N(e,w.current),o=w.current[e],n=m(t.key,t.shiftKey,o,{min:a,max:r,step:i,largeStep:c});if(null===n)return;t.preventDefault();let s={index:e,source:"keyboard"},p=[...w.current];u(n,a,r,i,l)!==o&&(M?.(p,s),A[e]?.("control-start",o,"keyboard"),F(e,n,"keyboard"),j?.([...w.current],s),A[e]?.("control-end",w.current[e],"keyboard"))};/* */
|
|
12
|
+
return Ga("g",{className:["semiotic-direct-manipulation-markers",S].filter(Boolean).join(" "),role:"group","aria-label":d,children:e.map((t,o)=>{let n=a[o]??{label:`Marker ${o+1}`},s=r(t,o),{lo:i,hi:l}=N(o,e),c=n.stroke??v,u=n.radius??$;/* */
|
|
13
|
+
return za("g",{className:["semiotic-direct-manipulation-control",n.className].filter(Boolean).join(" "),role:"slider",tabIndex:P?-1:0,"aria-disabled":P||void 0,"aria-label":n.label,"aria-valuemin":i,"aria-valuemax":l,"aria-valuenow":t,"aria-valuetext":n.valueText?.(t)??`${n.label}: ${t}`,"aria-roledescription":h,"data-viz-control":y,"data-viz-control-id":n.controlId??`${f}-${o}`,"data-viz-control-state":"controlled",pointerEvents:"all",onPointerDown:L(o),onPointerMove:E,onPointerUp:B,onPointerCancel:B,onLostPointerCapture:B,onKeyDown:V(o),style:{cursor:P?"default":"grab",touchAction:"none"},children:[
|
|
14
14
|
/* @__PURE__ */Ga("circle",{className:"semiotic-direct-manipulation-control__hit",cx:s.x,cy:s.y,r:u+10,fill:"transparent"}),
|
|
15
|
-
/* @__PURE__ */Ga("circle",{className:"semiotic-direct-manipulation-control__handle",cx:s.x,cy:s.y,r:u,fill:n.fill??g,stroke:c,strokeWidth:v}),n.labelText?/* @__PURE__ */Ga("text",{className:x,x:s.x+C,y:s.y+T,fill:c,children:n.labelText}):null]},n.controlId??o)})})}function h(e,t=":root"){return`${t} {\n${Object.entries(Ra(e)).map(([e,t])=>` ${e}: ${t};`).join("\n")}\n}`}function y(e){return{semiotic:{bg:{$value:e.colors.background,$type:"color"},text:{$value:e.colors.text,$type:"color"},"text-secondary":{$value:e.colors.textSecondary,$type:"color"},grid:{$value:e.colors.grid,$type:"color"},border:{$value:e.colors.border,$type:"color"},primary:{$value:e.colors.primary,$type:"color"},focus:{$value:e.colors.focus||e.colors.primary,$type:"color"},"font-family":{$value:e.typography.fontFamily,$type:"fontFamily"},"border-radius":{$value:e.borderRadius||"8px",$type:"dimension"},tooltip:{bg:{$value:e.tooltip?.background||e.colors.background,$type:"color"},text:{$value:e.tooltip?.text||e.colors.text,$type:"color"},radius:{$value:e.tooltip?.borderRadius||"6px",$type:"dimension"},"font-size":{$value:e.tooltip?.fontSize||"14px",$type:"dimension"},shadow:{$value:e.tooltip?.shadow||"0 2px 8px rgba(0,0,0,0.15)",$type:"shadow"}},selection:{color:{$value:e.colors.selection||e.colors.primary,$type:"color"},opacity:{$value:e.colors.selectionOpacity??.2,$type:"number"}},categorical:{$value:e.colors.categorical,$type:"color",$description:"Categorical color palette"},sequential:{$value:e.colors.sequential,$type:"string",$description:"d3-scale-chromatic sequential scheme name"},...e.aesthetics?{aesthetics:{...e.aesthetics.name?{profile:{$value:e.aesthetics.name,$type:"string"}}:{},...null!=e.aesthetics.minimumScore?{"minimum-score":{$value:e.aesthetics.minimumScore,$type:"number"}}:{},weights:Object.fromEntries(Object.entries(e.aesthetics.weights??{}).map(([e,t])=>[e,{$value:t,$type:"number"}])),thresholds:Object.fromEntries(Object.entries(e.aesthetics.thresholds??{}).map(([e,t])=>[e,{$value:t,$type:"number"}])),rationales:Object.fromEntries(Object.entries(e.aesthetics.rationales??{}).map(([e,t])=>[e,{$value:t,$type:"string"}]))}}:{},...e.colors.diverging?{diverging:{$value:e.colors.diverging,$type:"string",$description:"d3-scale-chromatic diverging scheme name"}}:{},...e.colors.annotation?{"annotation-color":{$value:e.colors.annotation,$type:"color"}}:{},...null!=e.typography.legendSize?{"legend-font-size":{$value:`${e.typography.legendSize}px`,$type:"dimension"}}:{},...null!=e.typography.legendFontFamily?{"legend-font-family":{$value:e.typography.legendFontFamily,$type:"fontFamily"}}:{},...null!=e.typography.legendFontWeight?{"legend-font-weight":{$value:e.typography.legendFontWeight,$type:"fontWeight"}}:{},"title-font-size":{$value:`${e.typography.titleFontSize??e.typography.titleSize}px`,$type:"dimension"},...null!=e.typography.titleFontFamily?{"title-font-family":{$value:e.typography.titleFontFamily,$type:"fontFamily"}}:{},...null!=e.typography.titleFontWeight?{"title-font-weight":{$value:e.typography.titleFontWeight,$type:"fontWeight"}}:{},...null!=e.typography.tickFontFamily?{"tick-font-family":{$value:e.typography.tickFontFamily,$type:"fontFamily"}}:{},...null!=e.typography.tickSize?{"tick-font-size":{$value:`${e.typography.tickSize}px`,$type:"dimension"}}:{},...null!=e.typography.labelSize?{"axis-label-font-size":{$value:`${e.typography.labelSize}px`,$type:"dimension"}}:{},secondary:{$value:e.colors.secondary||e.colors.primary,$type:"color"},surface:{$value:e.colors.surface||e.colors.background,$type:"color"},...e.colors.success?{success:{$value:e.colors.success,$type:"color"}}:{},...e.colors.danger?{danger:{$value:e.colors.danger,$type:"color"}}:{},...e.colors.warning?{warning:{$value:e.colors.warning,$type:"color"}}:{},...e.colors.error?{error:{$value:e.colors.error,$type:"color"}}:{},...e.colors.info?{info:{$value:e.colors.info,$type:"color"}}:{}}}}function f(e){if(e.length<2)return"days";let t=[];for(let a=1;a<e.length;a++)t.push(e[a]-e[a-1]);t.sort((e,t)=>e-t);let a=t[Math.floor(t.length/2)];return a<12e4?"seconds":a<72e5?"minutes":a<1728e5?"hours":a<5184e6?"days":a<3456e7?"months":"years"}function $(e){return e<10?`0${e}`:String(e)}function g(e={}){let t=e.timeZone;return"UTC"===t?{kind:"utc"}:"local"===t?{kind:"local"}:"string"==typeof t&&t.length>0?{kind:"iana",id:t}:!1===e.utc?{kind:"local"}:{kind:"utc"}}function b(e,t){return t?{month:e.getUTCMonth(),day:e.getUTCDate(),year:e.getUTCFullYear(),hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds()}:{month:e.getMonth(),day:e.getDate(),year:e.getFullYear(),hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()}}function v(e){let t;try{t=new Intl.DateTimeFormat("en-US",{timeZone:e,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hourCycle:"h23"})}catch{return e=>b(e,!0)}return e=>{let a={};for(let r of t.formatToParts(e))"literal"!==r.type&&(a[r.type]=r.value);return{month:Math.max(0,(Number(a.month)||1)-1),day:Number(a.day)||1,year:Number(a.year)||1970,hours:Number(a.hour)||0,minutes:Number(a.minute)||0,seconds:Number(a.second)||0}}}function C(e){return"utc"===e.kind?e=>b(e,!0):"local"===e.kind?e=>b(e,!1):v(e.id)}function T(e,t,a,r=_a){let{month:o,day:n,year:s,hours:i,minutes:l,seconds:c}=a(e),u=Qa[o],m=$(i),p=$(l),d=$(c),h=r.year?`${u} ${n}, ${s} `:`${u} ${n} `;switch(t){case"seconds":return`${r.date?h:""}${m}:${p}:${d}`;case"minutes":case"hours":return`${r.date?h:""}${m}:${p}`;case"days":return r.year?`${u} ${n}, ${s}`:`${u} ${n}`;case"months":return r.year?`${u} ${s}`:`${u}`;case"years":return`${s}`}}function x(e,t,a,r,o=_a,n=!1){let s=r(e),i=r(t),l=s.year!==i.year,c=l||s.month!==i.month,u=c||s.day!==i.day,m=u||s.hours!==i.hours,p=m||s.minutes!==i.minutes,d=o.date,h=l&&o.year,y=Qa[s.month],{day:f,year:g}=s,b=$(s.hours),v=$(s.minutes),C=$(s.seconds);switch(a){case"seconds":return h&&d?`${y} ${f}, ${g} ${b}:${v}:${C}`:u&&d?`${y} ${f} ${b}:${v}:${C}`:m||n?`${b}:${v}:${C}`:p?`${v}:${C}`:`:${C}`;case"minutes":return h&&d?`${y} ${f}, ${g} ${b}:${v}`:u&&d?`${y} ${f} ${b}:${v}`:m||n?`${b}:${v}`:`:${v}`;case"hours":return h&&d?`${y} ${f}, ${g} ${b}:${v}`:u&&d?`${y} ${f} ${b}:${v}`:`${b}:${v}`;case"days":return h?`${y} ${f}, ${g}`:c||n?`${y} ${f}`:`${f}`;case"months":return h?`${y} ${g}`:`${y}`;case"years":return`${g}`}}function S(e,t={}){let a,r,o=e,n=C(g(t)),{includeYear:s="always",includeDate:i="always"}=t,l="clock"===t.deltaStyle,c="auto"===s?n(new Date(t.referenceTime??Date.now())).year:void 0,u={referenceYear:!1,oneDay:!1},m=e=>{if(e!==r){r=e;let t=e.map(e=>n(new Date(e))),[a]=t;u={referenceYear:t.every(e=>e.year===c),oneDay:t.every(e=>e.year===a.year&&e.month===a.month&&e.day===a.day)}}return u};return(t,r,c)=>{let p=t instanceof Date?t:new Date(t);!e&&c&&c.length>=2&&c!==a&&(a=c,o=f(c));let d=o||"days";if(null==r||!c||0===c.length)return T(p,d,n);let h="seconds"===d||"minutes"===d||"hours"===d,y="always"===s&&"always"===i?_a:{year:"years"===d||"never"!==s,date:!h||"never"!==i};if(0===r){if(y===_a)return T(p,d,n);let{referenceYear:e,oneDay:t}="auto"===s||"auto"===i?m(c):u,a=y.date&&!(h&&"auto"===i&&t),r=a&&y.year&&!("years"!==d&&"auto"===s&&e);return T(p,d,n,{year:r||"years"===d,date:a})}return x(p,new Date(c[r-1]),d,n,y,l)}}function M(e){if(null==e)return"";if("number"!=typeof e||!isFinite(e))return String(e);if(0===e)return"0";let t=parseFloat(e.toPrecision(12)),a=Math.abs(t);if(a>=1e4)for(let e=Ja.length-1;e>=0;e--){let[r,o]=Ja[e];if(a<r)continue;let n=parseFloat((t/r).toPrecision(3));if(Math.abs(n)>=1e3&&e<Ja.length-1){let[a,r]=Ja[e+1];return`${parseFloat((t/a).toPrecision(3))}${r}`}return`${n}${o}`}return Number.isInteger(t)?String(t):String(parseFloat(t.toPrecision(6)))}function P(e){return null==e?null:"function"==typeof e?(t,a)=>{let r=e(t,a);return String(null==r?a:r)}:(t,a)=>{let r=t[e];return String(null==r?a:r)}}function j(e,t,a,r){let o=/* @__PURE__ */new Map;a.forEach((e,t)=>{o.set(r?r(e,t):String(t),e)});let n=[];t.forEach((e,t)=>{o.has(t)||n.push(t)}),n.length>0&&e.remove?.(n);let s=[];if(o.forEach((a,r)=>{let o=t.get(r);void 0===o?s.push(a):o!==a&&(e.update?e.update(r,()=>a):(e.remove?.(r),s.push(a)))}),s.length>0)if(e.pushMany)e.pushMany(s);else if(e.push)for(let t of s)e.push(t);return o}function k(e,t,a={}){let{id:r,resetKey:o}=a,n=qa(()=>P(r),[r]),s=er({map:/* @__PURE__ */new Map,handle:null,resetKey:void 0});Xa(()=>{let a=e.current;if(!a)return;let r=s.current;(r.handle!==a||r.resetKey!==o)&&(a.clear?.(),r.map=/* @__PURE__ */new Map,r.handle=a,r.resetKey=o),r.map=j(a,r.map,t,n)},[e,t,n,o])}import{a as D,b as I}from"./c-YRJ3BJQZ.min.js";import{a as R,b as w,c as A}from"./c-AFQSEIZ4.min.js";import{a as F}from"./c-GTYG4PDT.min.js";import{$a as O,Aa as N,L as E,M as L,N as B,O as W,P as V,Q as U,R as H,S as K,T as z,U as G,Ya as Y,Za as Z,_a as Q,a as _,ab as J,bb as X,e as q,eb as ee,fb as te,ha as ae,nb as re,ob as oe,pb as ne,qb as se,rb as ie,sb as le,wa as ce,xa as ue,ya as me,za as pe}from"./c-5L7JGWQW.min.js";import{a as de,b as he}from"./c-VPQQ7A4D.min.js";import{a as ye,b as fe,c as $e,e as ge,f as be,g as ve,h as Ce,i as Te,j as xe,k as Se,l as Me,m as Pe,o as je,p as ke,q as De,r as Ie}from"./c-BBX7DVVB.min.js";import{e as Re}from"./c-3VZHOPFW.min.js";import{a as we,b as Ae,c as Fe,d as Oe,e as Ne,f as Ee,g as Le,h as Be,i as We,j as Ve,k as Ue,l as He,m as Ke,n as ze,o as Ge,p as Ye,q as Ze,r as Qe}from"./c-ZLZZTH4I.min.js";import{a as _e,b as Je,c as Xe,d as qe,e as et,f as tt,g as at,h as rt,i as ot,j as nt,k as st,l as it,m as lt,n as ct,o as ut,p as mt}from"./c-RXJH4IRX.min.js";import{i as pt,k as dt,l as ht,m as yt,n as ft,o as $t,p as gt}from"./c-VIN5ASK2.min.js";import{f as bt}from"./c-HXUOFDSD.min.js";import{a as vt,d as Ct}from"./c-FAF6EV4E.min.js";import{a as Tt}from"./c-GOMQWQJR.min.js";import{a as xt,b as St}from"./c-73TOIYIW.min.js";import{f as Mt}from"./c-3YAGKCPU.min.js";import{b as Pt}from"./c-IU4QZ7Y5.min.js";import{B as jt,Ba as kt,C as Dt,Ca as It,D as Rt,Da as wt,Lb as At,Mb as Ft,Nb as Ot,Oa as Nt,Ob as Et,Pa as Lt,Pb as Bt,Qa as Wt,Qb as Vt,Ra as Ut,Rb as Ht,Sb as Kt,Ta as zt,Tb as Gt,Ua as Yt,Ub as Zt,Va as Qt,Vb as _t,Wa as Jt,bb as Xt,e as qt,f as ea,g as ta,h as aa,hb as ra,i as oa,ib as na,j as sa,jb as ia,kb as la,lb as ca,mb as ua,nb as ma,ob as pa,pb as da,tb as ha,ub as ya,xb as fa,za as $a}from"./c-2U5JMOPN.min.js";import{h as ga,i as ba,j as va,k as Ca,l as Ta}from"./c-SSKV5JPW.min.js";import{a as xa,b as Sa,c as Ma,d as Pa,q as ja,r as ka,s as Da,t as Ia,u as Ra,v as wa,w as Aa}from"./c-CNYFCSG4.min.js";import*as Fa from"react";import{useRef as Oa}from"react";var Na=2*Math.PI;import{jsx as Ea,jsxs as La}from"react/jsx-runtime";var Ba="var(--semiotic-focus, #005fcc)";import*as Wa from"react";import{useRef as Va}from"react";import{jsx as Ua,jsxs as Ha}from"react/jsx-runtime";import*as Ka from"react";import{useRef as za}from"react";import{jsx as Ga,jsxs as Ya}from"react/jsx-runtime";import*as Za from"react";var Qa=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],_a={year:!0,date:!0},Ja=[[1e3,"K"],[1e6,"M"],[1e9,"B"]];import{useEffect as Xa,useMemo as qa,useRef as er}from"react";export{ce as AccessibleNavTree,Dt as AnnotationLabel,ve as AreaChart,Ae as BarChart,Ee as BoxPlot,Se as BubbleChart,be as BumpChart,ka as CARBON_ALERT,ja as CARBON_CATEGORICAL_14,xa as COLOR_BLIND_SAFE_CATEGORICAL,De as CandlestickChart,ra as CategoryColorProvider,Y as ChartContainer,Xt as ChartErrorBoundary,O as ChartGrid,Je as ChordDiagram,ct as CirclePack,c as CircularBrush,fe as ConnectedScatterplot,J as ContextLayout,Ma as DARK_THEME,X as DetailsPanel,Ce as DifferenceChart,p as DirectManipulationControl,d as DirectManipulationMarkers,He as DonutChart,Ve as DotPlot,_e as ForceDirectedGraph,Ge as FunnelChart,Ke as GaugeChart,ze as GroupedBarChart,Pa as HIGH_CONTRAST_THEME,xe as Heatmap,Le as Histogram,Ct as IncrementalExtent,se as IntentMark,Sa as LIGHT_THEME,Oe as LikertChart,Re as LineChart,fa as LinkedCharts,Pe as MinimapChart,le as MobileAnnotationCalloutList,Z as MobileChartContainer,N as MobileStandardControls,ke as MultiAxisLineChart,Wt as MultiLineTooltip,Qt as MultiPointTooltip,mt as NetworkCustomChart,w as NetworkPerspectiveBillboard,R as NetworkPerspectiveGround,ee as ObservationReadout,ut as OrbitDiagram,Qe as OrdinalCustomChart,Ue as PieChart,st as ProcessSankey,je as QuadrantChart,Ye as RadarChart,gt as RealtimeHeatmap,dt as RealtimeHistogram,pt as RealtimeLineChart,ft as RealtimeSwarmChart,yt as RealtimeTemporalHistogram,$t as RealtimeWaterfallChart,We as RidgelinePlot,Tt as RingBuffer,Xe as SankeyDiagram,ye as Scatterplot,Me as ScatterplotMatrix,Q as SmallMultipleChart,Te as StackedAreaChart,Fe as StackedBarChart,St as StreamNetworkFrame,we as StreamOrdinalFrame,bt as StreamXYFrame,Ne as SwarmPlot,Ze as SwimlaneChart,Da as THEME_PRESETS,ht as TemporalHistogram,wa as ThemeProvider,Lt as Tooltip,kt as TooltipRoot,it as TreeDiagram,lt as Treemap,de as VISUALIZATION_CONTROL_TYPES,Be as ViolinPlot,Ie as WaterfallChart,$e as XYCustomChart,S as adaptiveTimeTicks,Rt as annotationStableId,q as auditVisualizationControls,ae as buildNavigationTree,ue as clampMobileRange,ea as compileMotionEncoding,Ht as composeStyleRules,U as configToJSX,H as configToJSXWithReport,V as copyConfig,he as createControlObservationAdapter,ga as createHatchPattern,D as darkenColor,re as dashboardIntentManifest,sa as deriveMotionVector,z as deserializeSelections,tt as diagnoseProcessSankeyLayout,rt as diagnoseProcessSankeyProps,jt as estimateLabelWidth,at as explainProcessSankeyLayout,_ as exportChart,et as formatProcessSankeyIssue,L as fromConfig,W as fromURL,G as fromVegaLite,wt as hasOwnTooltipChrome,$a as hasTooltipContent,va as hatchFillId,Ca as hatchPatternDef,ne as intentManifestFromRecipe,ot as inventoryAtTime,ba as isHatchFill,Ut as isMultiTooltip,I as lightenColor,Ot as makeNodeRuleContext,At as makeRuleValueResolver,Kt as makeStyleRuleStyleFn,Ft as makeXYRuleContext,It as markTooltipChrome,Et as matchesThreshold,Jt as normalizeTooltip,te as observedDatum,aa as opacityFromAge,vt as pointerToLocalPoint,Mt as preloadNetworkPerspectiveExtras,ge as rankBumpData,F as registerBuiltInXYPlugins,qt as resolveMotionAccessor,ta as resolveMotionAge,oa as resolveMotionVector,zt as resolveMultiCapableTooltip,da as resolveResponsiveRules,Vt as resolveStyleRules,Ta as resolveSvgFill,Ia as resolveThemePreset,Yt as resolveTooltipContent,pa as responsiveRuleMatches,Bt as ruleMatches,K as serializeSelections,M as smartTickFormat,Nt as smartTooltipEntries,Gt as styleRulesToNodeStyle,_t as styleRulesToPieceStyle,Zt as styleRulesToXYStyle,oe as summarizeIntentManifest,j as syncPushBuffer,h as themeToCSS,Ra as themeToCSSVariables,y as themeToTokens,E as toConfig,nt as toProcessSankeyTime,B as toURL,ua as useBrushSelection,na as useCategoryColors,ha as useChartObserver,Pt as useCustomLayoutSelection,ma as useFilteredData,A as useForceLayout,ya as useLinkedChartsActive,ca as useLinkedHover,pe as useMobileRangeControls,ie as useNavigationSync,xt as useNetworkPerspective,ia as useSelection,la as useSelectionActions,k as useSyncedPushData,Aa as useTheme,qe as validateProcessSankey,me as zoomMobileRange};
|
|
15
|
+
/* @__PURE__ */Ga("circle",{className:"semiotic-direct-manipulation-control__handle",cx:s.x,cy:s.y,r:u,fill:n.fill??g,stroke:c,strokeWidth:b}),n.labelText?/* @__PURE__ */Ga("text",{className:T,x:s.x+C,y:s.y+x,fill:c,children:n.labelText}):null]},n.controlId??o)})})}function h(e,t=":root"){return`${t} {\n${Object.entries(ba(e)).map(([e,t])=>` ${e}: ${t};`).join("\n")}\n}`}function y(e){return{semiotic:{bg:{$value:e.colors.background,$type:"color"},text:{$value:e.colors.text,$type:"color"},"text-secondary":{$value:e.colors.textSecondary,$type:"color"},grid:{$value:e.colors.grid,$type:"color"},border:{$value:e.colors.border,$type:"color"},primary:{$value:e.colors.primary,$type:"color"},focus:{$value:e.colors.focus||e.colors.primary,$type:"color"},"font-family":{$value:e.typography.fontFamily,$type:"fontFamily"},"border-radius":{$value:e.borderRadius||"8px",$type:"dimension"},tooltip:{bg:{$value:e.tooltip?.background||e.colors.background,$type:"color"},text:{$value:e.tooltip?.text||e.colors.text,$type:"color"},radius:{$value:e.tooltip?.borderRadius||"6px",$type:"dimension"},"font-size":{$value:e.tooltip?.fontSize||"14px",$type:"dimension"},shadow:{$value:e.tooltip?.shadow||"0 2px 8px rgba(0,0,0,0.15)",$type:"shadow"}},selection:{color:{$value:e.colors.selection||e.colors.primary,$type:"color"},opacity:{$value:e.colors.selectionOpacity??.2,$type:"number"}},categorical:{$value:e.colors.categorical,$type:"color",$description:"Categorical color palette"},sequential:{$value:e.colors.sequential,$type:"string",$description:"d3-scale-chromatic sequential scheme name"},...e.aesthetics?{aesthetics:{...e.aesthetics.name?{profile:{$value:e.aesthetics.name,$type:"string"}}:{},...null!=e.aesthetics.minimumScore?{"minimum-score":{$value:e.aesthetics.minimumScore,$type:"number"}}:{},weights:Object.fromEntries(Object.entries(e.aesthetics.weights??{}).map(([e,t])=>[e,{$value:t,$type:"number"}])),thresholds:Object.fromEntries(Object.entries(e.aesthetics.thresholds??{}).map(([e,t])=>[e,{$value:t,$type:"number"}])),rationales:Object.fromEntries(Object.entries(e.aesthetics.rationales??{}).map(([e,t])=>[e,{$value:t,$type:"string"}]))}}:{},...e.colors.diverging?{diverging:{$value:e.colors.diverging,$type:"string",$description:"d3-scale-chromatic diverging scheme name"}}:{},...e.colors.annotation?{"annotation-color":{$value:e.colors.annotation,$type:"color"}}:{},...null!=e.typography.legendSize?{"legend-font-size":{$value:`${e.typography.legendSize}px`,$type:"dimension"}}:{},...null!=e.typography.legendFontFamily?{"legend-font-family":{$value:e.typography.legendFontFamily,$type:"fontFamily"}}:{},...null!=e.typography.legendFontWeight?{"legend-font-weight":{$value:e.typography.legendFontWeight,$type:"fontWeight"}}:{},"title-font-size":{$value:`${e.typography.titleFontSize??e.typography.titleSize}px`,$type:"dimension"},...null!=e.typography.titleFontFamily?{"title-font-family":{$value:e.typography.titleFontFamily,$type:"fontFamily"}}:{},...null!=e.typography.titleFontWeight?{"title-font-weight":{$value:e.typography.titleFontWeight,$type:"fontWeight"}}:{},...null!=e.typography.tickFontFamily?{"tick-font-family":{$value:e.typography.tickFontFamily,$type:"fontFamily"}}:{},...null!=e.typography.tickSize?{"tick-font-size":{$value:`${e.typography.tickSize}px`,$type:"dimension"}}:{},...null!=e.typography.labelSize?{"axis-label-font-size":{$value:`${e.typography.labelSize}px`,$type:"dimension"}}:{},secondary:{$value:e.colors.secondary||e.colors.primary,$type:"color"},surface:{$value:e.colors.surface||e.colors.background,$type:"color"},...e.colors.success?{success:{$value:e.colors.success,$type:"color"}}:{},...e.colors.danger?{danger:{$value:e.colors.danger,$type:"color"}}:{},...e.colors.warning?{warning:{$value:e.colors.warning,$type:"color"}}:{},...e.colors.error?{error:{$value:e.colors.error,$type:"color"}}:{},...e.colors.info?{info:{$value:e.colors.info,$type:"color"}}:{}}}}function f(e){if(e.length<2)return"days";let t=[];for(let a=1;a<e.length;a++)t.push(e[a]-e[a-1]);t.sort((e,t)=>e-t);let a=t[Math.floor(t.length/2)];return a<12e4?"seconds":a<72e5?"minutes":a<1728e5?"hours":a<5184e6?"days":a<3456e7?"months":"years"}function $(e){return e<10?`0${e}`:String(e)}function g(e={}){let t=e.timeZone;return"UTC"===t?{kind:"utc"}:"local"===t?{kind:"local"}:"string"==typeof t&&t.length>0?{kind:"iana",id:t}:!1===e.utc?{kind:"local"}:{kind:"utc"}}function v(e,t){return t?{month:e.getUTCMonth(),day:e.getUTCDate(),year:e.getUTCFullYear(),hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds()}:{month:e.getMonth(),day:e.getDate(),year:e.getFullYear(),hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()}}function b(e){let t;try{t=new Intl.DateTimeFormat("en-US",{timeZone:e,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hourCycle:"h23"})}catch{return e=>v(e,!0)}return e=>{let a={};for(let r of t.formatToParts(e))"literal"!==r.type&&(a[r.type]=r.value);return{month:Math.max(0,(Number(a.month)||1)-1),day:Number(a.day)||1,year:Number(a.year)||1970,hours:Number(a.hour)||0,minutes:Number(a.minute)||0,seconds:Number(a.second)||0}}}function C(e){return"utc"===e.kind?e=>v(e,!0):"local"===e.kind?e=>v(e,!1):b(e.id)}function x(e,t,a,r=Qa){let{month:o,day:n,year:s,hours:i,minutes:l,seconds:c}=a(e),u=Ja[o],m=$(i),p=$(l),d=$(c),h=r.year?`${u} ${n}, ${s} `:`${u} ${n} `;switch(t){case"seconds":return`${r.date?h:""}${m}:${p}:${d}`;case"minutes":case"hours":return`${r.date?h:""}${m}:${p}`;case"days":return r.year?`${u} ${n}, ${s}`:`${u} ${n}`;case"months":return r.year?`${u} ${s}`:`${u}`;case"years":return`${s}`}}function T(e,t,a,r,o=Qa,n=!1){let s=r(e),i=r(t),l=s.year!==i.year,c=l||s.month!==i.month,u=c||s.day!==i.day,m=u||s.hours!==i.hours,p=m||s.minutes!==i.minutes,d=o.date,h=l&&o.year,y=Ja[s.month],{day:f,year:g}=s,v=$(s.hours),b=$(s.minutes),C=$(s.seconds);switch(a){case"seconds":return h&&d?`${y} ${f}, ${g} ${v}:${b}:${C}`:u&&d?`${y} ${f} ${v}:${b}:${C}`:m||n?`${v}:${b}:${C}`:p?`${b}:${C}`:`:${C}`;case"minutes":return h&&d?`${y} ${f}, ${g} ${v}:${b}`:u&&d?`${y} ${f} ${v}:${b}`:m||n?`${v}:${b}`:`:${b}`;case"hours":return h&&d?`${y} ${f}, ${g} ${v}:${b}`:u&&d?`${y} ${f} ${v}:${b}`:`${v}:${b}`;case"days":return h?`${y} ${f}, ${g}`:c||n?`${y} ${f}`:`${f}`;case"months":return h?`${y} ${g}`:`${y}`;case"years":return`${g}`}}function S(e,t={}){let a,r,o=e,n=C(g(t)),{includeYear:s="always",includeDate:i="always"}=t,l="clock"===t.deltaStyle,c="auto"===s?n(new Date(t.referenceTime??Date.now())).year:void 0,u={referenceYear:!1,oneDay:!1},m=e=>{if(e!==r){r=e;let t=e.map(e=>n(new Date(e))),[a]=t;u={referenceYear:t.every(e=>e.year===c),oneDay:t.every(e=>e.year===a.year&&e.month===a.month&&e.day===a.day)}}return u};return(t,r,c)=>{let p=t instanceof Date?t:new Date(t);!e&&c&&c.length>=2&&c!==a&&(a=c,o=f(c));let d=o||"days";if(null==r||!c||0===c.length)return x(p,d,n);let h="seconds"===d||"minutes"===d||"hours"===d,y="always"===s&&"always"===i?Qa:{year:"years"===d||"never"!==s,date:!h||"never"!==i};if(0===r){if(y===Qa)return x(p,d,n);let{referenceYear:e,oneDay:t}="auto"===s||"auto"===i?m(c):u,a=y.date&&!(h&&"auto"===i&&t),r=a&&y.year&&!("years"!==d&&"auto"===s&&e);return x(p,d,n,{year:r||"years"===d,date:a})}return T(p,new Date(c[r-1]),d,n,y,l)}}function P(e){if(null==e)return"";if("number"!=typeof e||!isFinite(e))return String(e);if(0===e)return"0";let t=parseFloat(e.toPrecision(12)),a=Math.abs(t);if(a>=1e4)for(let e=qa.length-1;e>=0;e--){let[r,o]=qa[e];if(a<r)continue;let n=parseFloat((t/r).toPrecision(3));if(Math.abs(n)>=1e3&&e<qa.length-1){let[a,r]=qa[e+1];return`${parseFloat((t/a).toPrecision(3))}${r}`}return`${n}${o}`}return Number.isInteger(t)?String(t):String(parseFloat(t.toPrecision(6)))}function M(e){return null==e?null:"function"==typeof e?(t,a)=>{let r=e(t,a);return String(null==r?a:r)}:(t,a)=>{let r=t[e];return String(null==r?a:r)}}function j(e,t,a,r){let o=/* @__PURE__ */new Map;a.forEach((e,t)=>{o.set(r?r(e,t):String(t),e)});let n=[];t.forEach((e,t)=>{o.has(t)||n.push(t)}),n.length>0&&e.remove?.(n);let s=[];if(o.forEach((a,r)=>{let o=t.get(r);void 0===o?s.push(a):o!==a&&(e.update?e.update(r,()=>a):(e.remove?.(r),s.push(a)))}),s.length>0)if(e.pushMany)e.pushMany(s);else if(e.push)for(let t of s)e.push(t);return o}function k(e,t,a={}){let{id:r,resetKey:o}=a,n=tr(()=>M(r),[r]),s=ar({map:/* @__PURE__ */new Map,handle:null,resetKey:void 0});er(()=>{let a=e.current;if(!a)return;let r=s.current;(r.handle!==a||r.resetKey!==o)&&(a.clear?.(),r.map=/* @__PURE__ */new Map,r.handle=a,r.resetKey=o),r.map=j(a,r.map,t,n)},[e,t,n,o])}import{a as I,b as D}from"./c-YRJ3BJQZ.min.js";import{a as w}from"./c-OC7GNXGZ.min.js";import{a as R}from"./c-IGONIKZL.min.js";import{$a as A,Aa as N,L as F,M as O,N as L,O as E,P as B,Q as V,R as K,S as U,T as H,U as W,Ya as Z,Za as G,_a as z,a as Y,ab as X,bb as _,e as J,eb as Q,fb as q,ha as ee,nb as te,ob as ae,pb as re,qb as oe,rb as ne,sb as se,wa as ie,xa as le,ya as ce,za as ue}from"./c-IATPZOL7.min.js";import{a as me,b as pe}from"./c-VPQQ7A4D.min.js";import{a as de,b as he,c as ye,e as fe,f as $e,g as ge,h as ve,i as be,j as Ce,k as xe,l as Te,m as Se,o as Pe,p as Me,q as je,r as ke}from"./c-SGZ7ZD2I.min.js";import{e as Ie}from"./c-IKPM53JH.min.js";import{a as De,b as we,c as Re,d as Ae,e as Ne,f as Fe,g as Oe,h as Le,i as Ee,j as Be,k as Ve,l as Ke,m as Ue,n as He,o as We,p as Ze,q as Ge,r as ze}from"./c-IE5EBBP6.min.js";import{a as Ye,b as Xe,c as _e,d as Je,e as Qe,f as qe,g as et,h as tt,i as at,j as rt,k as ot,l as nt,m as st,n as it,o as lt,p as ct}from"./c-TRMNDRC4.min.js";import{i as ut,k as mt,l as pt,m as dt,n as ht,o as yt,p as ft}from"./c-THWTHWXU.min.js";import{f as $t}from"./c-G5A3YWTN.min.js";import{a as gt,d as vt}from"./c-NWRYV6ZF.min.js";import{a as bt}from"./c-VI753KBO.min.js";import{a as Ct,b as xt}from"./c-ZO36H5VH.min.js";import{f as Tt}from"./c-YEB6Z35F.min.js";import{b as St}from"./c-IU4QZ7Y5.min.js";import{B as Pt,C as Mt,D as jt,Ib as kt,Jb as It,Ka as Dt,Kb as wt,La as Rt,Lb as At,Ma as Nt,Mb as Ft,Na as Ot,Nb as Lt,Ob as Et,Pa as Bt,Pb as Vt,Qa as Kt,Qb as Ut,Ra as Ht,Rb as Wt,S as Zt,Sa as Gt,Sb as zt,T as Yt,Za as Xt,db as _t,e as Jt,eb as Qt,f as qt,fb as ea,g as ta,gb as aa,h as ra,hb as oa,i as na,ib as sa,j as ia,jb as la,kb as ca,lb as ua,qb as ma,rb as pa,ub as da}from"./c-XCV7VUU3.min.js";import{h as ha,i as ya,j as fa,k as $a,l as ga}from"./c-SSKV5JPW.min.js";import{A as va,B as ba,C as Ca,D as xa,a as Ta,b as Sa,c as Pa,d as Ma,k as ja,o as ka,p as Ia,q as Da,x as wa,y as Ra,z as Aa}from"./c-5FUOKMH6.min.js";import*as Na from"react";import{useRef as Fa}from"react";var Oa=2*Math.PI;import{jsx as La,jsxs as Ea}from"react/jsx-runtime";var Ba="var(--semiotic-focus, #005fcc)";import*as Va from"react";import{useRef as Ka}from"react";import{jsx as Ua,jsxs as Ha}from"react/jsx-runtime";import*as Wa from"react";import{useRef as Za}from"react";import{jsx as Ga,jsxs as za}from"react/jsx-runtime";import{NetworkPerspectiveBillboard as Ya,NetworkPerspectiveGround as Xa}from"./semiotic-network-placement.module.min.js";import*as _a from"react";var Ja=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Qa={year:!0,date:!0},qa=[[1e3,"K"],[1e6,"M"],[1e9,"B"]];import{useEffect as er,useMemo as tr,useRef as ar}from"react";export{ie as AccessibleNavTree,Mt as AnnotationLabel,ge as AreaChart,we as BarChart,Fe as BoxPlot,xe as BubbleChart,$e as BumpChart,Ra as CARBON_ALERT,wa as CARBON_CATEGORICAL_14,Ta as COLOR_BLIND_SAFE_CATEGORICAL,je as CandlestickChart,_t as CategoryColorProvider,Z as ChartContainer,Xt as ChartErrorBoundary,A as ChartGrid,Xe as ChordDiagram,it as CirclePack,c as CircularBrush,he as ConnectedScatterplot,X as ContextLayout,Pa as DARK_THEME,_ as DetailsPanel,ve as DifferenceChart,p as DirectManipulationControl,d as DirectManipulationMarkers,Ke as DonutChart,Be as DotPlot,Ye as ForceDirectedGraph,We as FunnelChart,Ue as GaugeChart,He as GroupedBarChart,Ma as HIGH_CONTRAST_THEME,Ce as Heatmap,Oe as Histogram,vt as IncrementalExtent,oe as IntentMark,Sa as LIGHT_THEME,Ae as LikertChart,Ie as LineChart,da as LinkedCharts,Se as MinimapChart,se as MobileAnnotationCalloutList,G as MobileChartContainer,N as MobileStandardControls,Me as MultiAxisLineChart,Nt as MultiLineTooltip,Ht as MultiPointTooltip,ct as NetworkCustomChart,Ya as NetworkPerspectiveBillboard,Xa as NetworkPerspectiveGround,Q as ObservationReadout,lt as OrbitDiagram,ze as OrdinalCustomChart,Ve as PieChart,ot as ProcessSankey,Pe as QuadrantChart,Ze as RadarChart,ft as RealtimeHeatmap,mt as RealtimeHistogram,ut as RealtimeLineChart,ht as RealtimeSwarmChart,dt as RealtimeTemporalHistogram,yt as RealtimeWaterfallChart,Ee as RidgelinePlot,bt as RingBuffer,_e as SankeyDiagram,de as Scatterplot,Te as ScatterplotMatrix,z as SmallMultipleChart,be as StackedAreaChart,Re as StackedBarChart,xt as StreamNetworkFrame,De as StreamOrdinalFrame,$t as StreamXYFrame,Ne as SwarmPlot,Ge as SwimlaneChart,Aa as THEME_PRESETS,pt as TemporalHistogram,Ca as ThemeProvider,Rt as Tooltip,ka as TooltipRoot,nt as TreeDiagram,st as Treemap,me as VISUALIZATION_CONTROL_TYPES,Le as ViolinPlot,ke as WaterfallChart,ye as XYCustomChart,S as adaptiveTimeTicks,jt as annotationStableId,J as auditVisualizationControls,ee as buildNavigationTree,le as clampMobileRange,qt as compileMotionEncoding,Et as composeStyleRules,V as configToJSX,K as configToJSXWithReport,B as copyConfig,pe as createControlObservationAdapter,ha as createHatchPattern,I as darkenColor,te as dashboardIntentManifest,ia as deriveMotionVector,H as deserializeSelections,qe as diagnoseProcessSankeyLayout,tt as diagnoseProcessSankeyProps,Pt as estimateLabelWidth,et as explainProcessSankeyLayout,Y as exportChart,Qe as formatProcessSankeyIssue,O as fromConfig,E as fromURL,W as fromVegaLite,Da as hasOwnTooltipChrome,ja as hasTooltipContent,fa as hatchFillId,$a as hatchPatternDef,re as intentManifestFromRecipe,at as inventoryAtTime,ya as isHatchFill,Ot as isMultiTooltip,D as lightenColor,wt as makeNodeRuleContext,kt as makeRuleValueResolver,Vt as makeStyleRuleStyleFn,It as makeXYRuleContext,Ia as markTooltipChrome,At as matchesThreshold,Gt as normalizeTooltip,q as observedDatum,ra as opacityFromAge,gt as pointerToLocalPoint,Tt as preloadNetworkPerspectiveExtras,fe as rankBumpData,R as registerBuiltInXYPlugins,Jt as resolveMotionAccessor,ta as resolveMotionAge,na as resolveMotionVector,Bt as resolveMultiCapableTooltip,ua as resolveResponsiveRules,Lt as resolveStyleRules,ga as resolveSvgFill,va as resolveThemePreset,Kt as resolveTooltipContent,ca as responsiveRuleMatches,Ft as ruleMatches,U as serializeSelections,P as smartTickFormat,Dt as smartTooltipEntries,Ut as styleRulesToNodeStyle,zt as styleRulesToPieceStyle,Wt as styleRulesToXYStyle,ae as summarizeIntentManifest,j as syncPushBuffer,h as themeToCSS,ba as themeToCSSVariables,y as themeToTokens,F as toConfig,rt as toProcessSankeyTime,L as toURL,sa as useBrushSelection,Qt as useCategoryColors,ma as useChartObserver,Zt as useCrosshairPosition,St as useCustomLayoutSelection,la as useFilteredData,w as useForceLayout,pa as useLinkedChartsActive,Yt as useLinkedCrosshair,oa as useLinkedHover,ue as useMobileRangeControls,ne as useNavigationSync,Ct as useNetworkPerspective,ea as useSelection,aa as useSelectionActions,k as useSyncedPushData,xa as useTheme,Je as validateProcessSankey,ce as zoomMobileRange};
|