semiotic 3.10.1 → 3.10.2
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 +67 -62
- package/ai/artifact-surface-inventory.json +4 -1
- package/ai/dist/mcp-server.js +25 -24
- package/ai/examples.md +28 -0
- package/ai/reference.md +6 -1
- package/ai/schema.json +121 -5
- package/ai/surface-manifest.json +3 -2
- package/ai/task-packets/compare-category-totals.json +7 -53
- package/ai/task-packets/compare-category-totals.md +4 -4
- package/ai/task-packets/correct-published-chart.json +7 -53
- package/ai/task-packets/correct-published-chart.md +4 -4
- package/ai/task-packets/index.json +9 -9
- package/ai/task-packets/update-live-chart.json +8 -54
- package/ai/task-packets/update-live-chart.md +4 -4
- package/dist/c-27DCB5T6.min.js +18 -0
- package/dist/c-2MONF2P6.min.js +1 -0
- package/dist/c-2TW5H5PD.min.js +1 -0
- package/dist/c-3AGX252H.min.js +1 -0
- package/dist/c-3B6JZEZT.min.js +1 -0
- package/dist/c-3BYZXCX3.min.js +4 -0
- package/dist/c-3DIPZJDO.min.js +1 -0
- package/dist/c-3FOUMWLR.min.js +1 -0
- package/dist/c-3NA6I656.min.js +2 -0
- package/dist/c-3OFVBWQY.min.js +1 -0
- package/dist/{c-QA3HMQJP.min.js → c-3PFVJFBK.min.js} +1 -1
- package/dist/c-3PPO7ZJF.min.js +4 -0
- package/dist/c-3YEW2PK6.min.js +1 -0
- package/dist/c-4JKDJUYD.min.js +1 -0
- package/dist/c-4LKK5YWB.min.js +1 -0
- package/dist/c-4MD53L2J.min.js +33 -0
- package/dist/c-4V3CD337.min.js +1 -0
- package/dist/c-4XLHPQTP.min.js +1 -0
- package/dist/c-5NYONM6V.min.js +5 -0
- package/dist/c-6IVBV5NO.min.js +1 -0
- package/dist/c-6ZU3QVLB.min.js +100 -0
- package/dist/c-72CBVNYX.min.js +209 -0
- package/dist/c-7APWCEPL.min.js +1 -0
- package/dist/c-7ASK4WBF.min.js +1 -0
- package/dist/{c-ORLEBW72.min.js → c-7FKPPCGN.min.js} +1 -1
- package/dist/c-7LY46QUI.min.js +41 -0
- package/dist/c-ABMGCCLT.min.js +1 -0
- package/dist/c-AINGQGUN.min.js +1 -0
- package/dist/c-AKLBQMQF.min.js +391 -0
- package/dist/c-AXJ2QI3F.min.js +1 -0
- package/dist/c-BQYD7T4E.min.js +1 -0
- package/dist/{c-V4XMSLC3.min.js → c-BYJJ7EMG.min.js} +1 -1
- package/dist/{c-J6DVC236.min.js → c-C4KIXUWU.min.js} +1 -1
- package/dist/c-C4SXYFXL.min.js +1 -0
- package/dist/c-CLDCKFBE.min.js +1 -0
- package/dist/c-CLJCJSFU.min.js +1 -0
- package/dist/c-CLLCX3PT.min.js +2 -0
- package/dist/c-ECHBKW7U.min.js +1 -0
- package/dist/c-EPJWM2UT.min.js +1 -0
- package/dist/c-F2GGJB2S.min.js +31 -0
- package/dist/c-FD2BXSRG.min.js +1 -0
- package/dist/c-FDUQDCBC.min.js +51 -0
- package/dist/c-FOTTQHOO.min.js +1 -0
- package/dist/c-FU7A5KSY.min.js +1 -0
- package/dist/c-G53AVC42.min.js +113 -0
- package/dist/c-GHN6IR4Y.min.js +1 -0
- package/dist/c-GSCO3FWL.min.js +1 -0
- package/dist/c-GYLOSK7M.min.js +1 -0
- package/dist/c-HK4OSLZA.min.js +1 -0
- package/dist/c-HLGTD5SJ.min.js +1 -0
- package/dist/c-HQ27AHMC.min.js +1 -0
- package/dist/{c-D6HAAPTX.min.js → c-IBRLFKWA.min.js} +1 -1
- package/dist/c-IHWZ2C6D.min.js +26 -0
- package/dist/c-IIV73MUW.min.js +1 -0
- package/dist/c-IPYGNVN6.min.js +116 -0
- package/dist/c-JJKRER47.min.js +1 -0
- package/dist/c-JO6AYCU4.min.js +1 -0
- package/dist/c-JWHPG6S2.min.js +1 -0
- package/dist/c-JXVYIXTV.min.js +1 -0
- package/dist/c-K2ZIYDI3.min.js +1 -0
- package/dist/c-K37JAIWA.min.js +4 -0
- package/dist/c-KGROWFT2.min.js +9 -0
- package/dist/c-MOP2NGLH.min.js +1 -0
- package/dist/c-MTX2AO5S.min.js +1 -0
- package/dist/c-N5WT7TXG.min.js +1 -0
- package/dist/c-NATWERHZ.min.js +1 -0
- package/dist/{c-42PLDTX7.min.js → c-O53GOO7H.min.js} +1 -1
- package/dist/c-OVQB75PE.min.js +1 -0
- package/dist/c-P3SKRNZN.min.js +1 -0
- package/dist/c-P5NXQWIM.min.js +1 -0
- package/dist/c-P7BQMVQQ.min.js +1 -0
- package/dist/{c-GNTXRXRN.min.js → c-PDQHLOKU.min.js} +1 -1
- package/dist/c-PKY4JFY5.min.js +1 -0
- package/dist/c-PQOZPM4G.min.js +1 -0
- package/dist/c-PZ3NEGNG.min.js +1 -0
- package/dist/c-QXLDCATV.min.js +1 -0
- package/dist/c-R2HUSWKB.min.js +1 -0
- package/dist/{c-HYW2XA4Q.min.js → c-RHDOOQ4X.min.js} +1 -1
- package/dist/c-RZPP5ERV.min.js +1 -0
- package/dist/c-SG2Y7EBY.min.js +46 -0
- package/dist/{c-WUWXGQYA.min.js → c-SJIB5RNI.min.js} +1 -1
- package/dist/c-SQNEVNWT.min.js +1 -0
- package/dist/c-STHZWF3D.min.js +1 -0
- package/dist/c-TIDKVMMZ.min.js +1 -0
- package/dist/c-TIMGODBG.min.js +1 -0
- package/dist/c-TR7OHUAO.min.js +2 -0
- package/dist/c-TTKWXGAI.min.js +61 -0
- package/dist/c-TVKZC4BY.min.js +1 -0
- package/dist/c-U5XVLSHN.min.js +1 -0
- package/dist/c-U6NLVFN4.min.js +1 -0
- package/dist/{c-VJTDST2R.min.js → c-UBHICVSC.min.js} +1 -1
- package/dist/c-UOPPO26M.min.js +1 -0
- package/dist/c-UUDAON4Z.min.js +1 -0
- package/dist/c-V32TPPY2.min.js +1 -0
- package/dist/c-V5KFJWQQ.min.js +1 -0
- package/dist/{c-P65V6HLO.min.js → c-VN557BQE.min.js} +1 -1
- package/dist/c-VXIYF7V2.min.js +1 -0
- package/dist/c-Y342FJ6K.min.js +1 -0
- package/dist/c-YM6CT4LJ.min.js +1 -0
- package/dist/{c-MVR3RWF3.min.js → c-YMFUIO54.min.js} +1 -1
- package/dist/c-YQVOKPKR.min.js +1 -0
- package/dist/c-YRJ3BJQZ.min.js +1 -0
- package/dist/c-YT5KPVNP.min.js +1 -0
- package/dist/components/ai/audienceProfile.d.ts +18 -1
- package/dist/components/ai/describeChart.d.ts +5 -1
- package/dist/components/ai/intentManifest.d.ts +16 -0
- package/dist/components/ai/intentRegistry.d.ts +12 -0
- package/dist/components/ai/intents.d.ts +6 -6
- package/dist/components/ai/streamSchema.d.ts +19 -0
- package/dist/components/ai/streamingTypes.d.ts +57 -11
- package/dist/components/ai/suggestCharts.d.ts +1 -1
- package/dist/components/ai/suggestStreamCharts.d.ts +43 -8
- package/dist/components/ai/suggestStreamDashboard.d.ts +35 -0
- package/dist/components/ai/variantDiscovery.d.ts +1 -1
- package/dist/components/charts/ordinal/BarChart.streamCapability.d.ts +2 -0
- package/dist/components/charts/ordinal/DonutChart.streamCapability.d.ts +2 -0
- package/dist/components/charts/ordinal/GroupedBarChart.streamCapability.d.ts +2 -0
- package/dist/components/charts/ordinal/PieChart.streamCapability.d.ts +2 -0
- package/dist/components/charts/ordinal/StackedBarChart.streamCapability.d.ts +2 -0
- package/dist/components/charts/realtime/RealtimeAccumulator.d.ts +14 -0
- package/dist/components/charts/realtime/RealtimeHeatmap.d.ts +6 -5
- package/dist/components/charts/realtime/RealtimeHistogram.d.ts +5 -1
- package/dist/components/charts/realtime/RealtimeLineChart.d.ts +2 -161
- package/dist/components/charts/realtime/RealtimeLineChart.types.d.ts +175 -0
- package/dist/components/charts/realtime/RealtimeSwarmChart.d.ts +6 -5
- package/dist/components/charts/realtime/RealtimeWaterfallChart.d.ts +6 -5
- package/dist/components/charts/realtime/aggregate.d.ts +11 -1
- package/dist/components/charts/realtime/resolveWindowSize.d.ts +1 -1
- package/dist/components/charts/shared/DirectLabelLayer.d.ts +25 -0
- package/dist/components/charts/shared/directLabels.d.ts +12 -0
- package/dist/components/charts/shared/knownChartComponents.d.ts +4 -1
- package/dist/components/charts/shared/lineSeriesSsr.d.ts +0 -12
- package/dist/components/charts/shared/useChartSetup.d.ts +2 -0
- package/dist/components/charts/value/BigNumber.streamCapability.d.ts +2 -0
- package/dist/components/charts/value/GaugeChart.streamCapability.d.ts +2 -0
- package/dist/components/charts/xy/BubbleChart.d.ts +4 -1
- package/dist/components/charts/xy/ConnectedScatterplot.d.ts +4 -1
- package/dist/components/charts/xy/LineChart.d.ts +4 -1
- package/dist/components/charts/xy/Scatterplot.d.ts +7 -0
- package/dist/components/realtime/HyperLogLog.d.ts +19 -0
- package/dist/components/realtime/ReorderBuffer.d.ts +2 -2
- package/dist/components/realtime/TDigest.d.ts +22 -0
- package/dist/components/realtime/WindowAccumulator.d.ts +22 -5
- package/dist/components/realtime/applyChangelog.d.ts +38 -0
- package/dist/components/realtime/minHeap.d.ts +3 -0
- package/dist/components/recipes/atlas/flowCircuitChartProps.d.ts +1 -1
- package/dist/components/recipes/layout1d.d.ts +2 -20
- package/dist/components/recipes/minGapPlacement.d.ts +20 -0
- package/dist/components/semiotic-ai-core.d.ts +8 -3
- package/dist/components/semiotic-ai-stream.d.ts +10 -0
- package/dist/components/semiotic-ai.d.ts +4 -6
- package/dist/components/semiotic-realtime-core.d.ts +6 -2
- package/dist/components/semiotic-stream-types.d.ts +14 -0
- package/dist/components/semiotic-xy.d.ts +1 -0
- package/dist/components/semiotic.d.ts +3 -11
- package/dist/components/server/encodeSvgFramesToGif.d.ts +2 -0
- package/dist/components/server/rasterizeSVG.d.ts +2 -0
- package/dist/components/server/registerServerXYPlugins.d.ts +2 -0
- package/dist/components/server/renderEvidence.d.ts +4 -0
- package/dist/components/server/serverChartConfigs.d.ts +5 -0
- package/dist/components/server/serverChartConfigsRealtime.d.ts +6 -0
- package/dist/components/server/serverRealtimeCategoryColors.d.ts +3 -0
- package/dist/components/server/staticAnnotations.d.ts +9 -0
- package/dist/components/stream/SceneGraph.d.ts +3 -3
- package/dist/components/stream/StalenessBadge.d.ts +5 -2
- package/dist/components/stream/pipelinePathJoin.d.ts +27 -0
- package/dist/components/stream/pipelineTransitionTypes.d.ts +43 -0
- package/dist/components/stream/pipelineTransitions.d.ts +5 -35
- package/dist/components/stream/seriesGeometry.d.ts +2 -1
- package/dist/components/stream/streamEncodingTypes.d.ts +9 -0
- package/dist/components/stream/types.d.ts +25 -2
- package/dist/components/text/axisLabelAssessment.d.ts +15 -0
- package/dist/components/text/browserAxisLabelAssessment.d.ts +1 -0
- package/dist/components/text/browserLabelMeasurement.d.ts +3 -0
- package/dist/components/text/labelMeasurement.d.ts +19 -0
- package/dist/components/text/labelPlacement.d.ts +71 -0
- package/dist/components/text/useAxisLabelAssessment.d.ts +6 -0
- package/dist/components/text/useLabelMeasurer.d.ts +3 -0
- package/dist/controls.module.min.js +71 -1
- package/dist/geo.min.js +231 -1
- package/dist/geo.module.min.js +31 -1
- package/dist/network.module.min.js +1 -1
- package/dist/ordinal.module.min.js +1 -1
- package/dist/physics-matter.module.min.js +1 -1
- package/dist/physics-rapier.module.min.js +1 -1
- package/dist/physics.module.min.js +1 -1
- package/dist/rough.min.js +2 -1
- package/dist/rough.module.min.js +2 -1
- package/dist/semiotic-access.module.min.js +1 -1
- package/dist/semiotic-ai-artifact-policy-constants.module.min.js +1 -1
- package/dist/semiotic-ai-core.d.ts +8 -3
- package/dist/semiotic-ai-core.min.js +4 -1
- package/dist/semiotic-ai-core.module.min.js +4 -1
- package/dist/semiotic-ai-hash-primitives.module.min.js +1 -1
- package/dist/semiotic-ai.d.ts +4 -6
- package/dist/semiotic-ai.module.min.js +14 -1
- package/dist/semiotic-artifact-react.min.js +269 -1
- package/dist/semiotic-artifact-react.module.min.js +137 -1
- package/dist/semiotic-artifact.min.js +3 -1
- package/dist/semiotic-artifact.module.min.js +3 -1
- package/dist/semiotic-atlas-core.min.js +2 -1
- package/dist/semiotic-atlas-core.module.min.js +1 -1
- package/dist/semiotic-atlas-selection.module.min.js +1 -1
- package/dist/semiotic-atlas.module.min.js +11 -1
- package/dist/semiotic-client-cjs-shared.min.js +1529 -1
- package/dist/semiotic-client-glyph.module.min.js +3 -1
- package/dist/semiotic-client-responsive.module.min.js +1 -1
- package/dist/semiotic-client-shared.module.min.js +1 -1
- package/dist/semiotic-custom-layout-selection-cjs-shared.min.js +2 -1
- package/dist/semiotic-data.min.js +1 -1
- package/dist/semiotic-data.module.min.js +1 -1
- package/dist/semiotic-evidence.min.js +3 -1
- package/dist/semiotic-evidence.module.min.js +3 -1
- package/dist/semiotic-experimental-auxiliary.module.min.js +8 -1
- package/dist/semiotic-experimental-node-auxiliary.module.min.js +8 -1
- package/dist/semiotic-experimental-react-shared.module.min.js +1 -1
- package/dist/semiotic-experimental-vacp.min.js +1 -1
- package/dist/semiotic-experimental-vacp.module.min.js +1 -1
- package/dist/semiotic-line.module.min.js +1 -1
- package/dist/semiotic-realtime-core.d.ts +6 -2
- package/dist/semiotic-realtime-core.module.min.js +1 -1
- package/dist/semiotic-realtime-react.module.min.js +1 -1
- package/dist/semiotic-recipes-core-cjs-base.min.js +160 -1
- package/dist/semiotic-recipes-core.module.min.js +72 -1
- package/dist/semiotic-recipes-geo-cjs.min.js +1 -1
- package/dist/semiotic-recipes-react.min.js +3 -1
- package/dist/semiotic-server-edge-node.module.min.js +391 -1
- package/dist/semiotic-server-edge.min.js +651 -1
- package/dist/semiotic-server-edge.module.min.js +372 -1
- package/dist/semiotic-server-node.min.js +651 -1
- package/dist/semiotic-server-node.module.min.js +1 -1
- package/dist/semiotic-text.min.js +1 -1
- package/dist/semiotic-text.module.min.js +1 -1
- package/dist/semiotic-themes-core.min.js +1 -1
- package/dist/semiotic-themes-core.module.min.js +1 -1
- package/dist/semiotic-themes.min.js +1 -1
- package/dist/semiotic-themes.module.min.js +1 -1
- package/dist/semiotic-utils-core.min.js +11 -1
- package/dist/semiotic-utils-core.module.min.js +8 -1
- package/dist/semiotic-value.module.min.js +15 -1
- package/dist/semiotic-xy.d.ts +1 -0
- package/dist/semiotic.d.ts +3 -11
- package/dist/semiotic.module.min.js +10 -1
- package/dist/server.min.js +651 -1
- package/dist/server.module.min.js +1 -1
- package/dist/xy.module.min.js +1 -1
- package/package.json +4 -3
- package/dist/c-2N7IU2NY.min.js +0 -1
- package/dist/c-2RL2QPZJ.min.js +0 -1
- package/dist/c-2WK7YJLL.min.js +0 -1
- package/dist/c-45CQWZZ6.min.js +0 -1
- package/dist/c-4BRHKVKV.min.js +0 -1
- package/dist/c-7242NXSG.min.js +0 -1
- package/dist/c-7DVPSB5C.min.js +0 -1
- package/dist/c-7EGHJU2F.min.js +0 -1
- package/dist/c-A7OGOFSL.min.js +0 -1
- package/dist/c-AFBSWT77.min.js +0 -1
- package/dist/c-AH5HWZWS.min.js +0 -1
- package/dist/c-AJ7EC32V.min.js +0 -1
- package/dist/c-AQADQNY7.min.js +0 -1
- package/dist/c-ATM475SA.min.js +0 -1
- package/dist/c-AVO3Q7T7.min.js +0 -1
- package/dist/c-B7GW7IHJ.min.js +0 -1
- package/dist/c-BNFJMDHN.min.js +0 -1
- package/dist/c-BOHCQILI.min.js +0 -1
- package/dist/c-C3TZLTZK.min.js +0 -1
- package/dist/c-CGQAQWBV.min.js +0 -1
- package/dist/c-CPV4N35K.min.js +0 -1
- package/dist/c-DIPEYUOW.min.js +0 -1
- package/dist/c-E4JDJH4I.min.js +0 -1
- package/dist/c-E72OTUZU.min.js +0 -1
- package/dist/c-E7I2L7CU.min.js +0 -1
- package/dist/c-ELDWAO2V.min.js +0 -1
- package/dist/c-EUBTECGM.min.js +0 -1
- package/dist/c-EUMPMDCS.min.js +0 -1
- package/dist/c-EZZT2WAE.min.js +0 -1
- package/dist/c-FHBVFCQB.min.js +0 -1
- package/dist/c-G4HCO2IQ.min.js +0 -1
- package/dist/c-G5VIJEOK.min.js +0 -1
- package/dist/c-GHVOXAYH.min.js +0 -1
- package/dist/c-GXV3C3MO.min.js +0 -1
- package/dist/c-HHTK2R75.min.js +0 -1
- package/dist/c-HLLFJYTY.min.js +0 -1
- package/dist/c-HP4ZFM47.min.js +0 -1
- package/dist/c-HPOYKCCG.min.js +0 -1
- package/dist/c-HYDTS5OP.min.js +0 -1
- package/dist/c-I4QJ6YLM.min.js +0 -1
- package/dist/c-IK33LNZ6.min.js +0 -1
- package/dist/c-IK3PZHRY.min.js +0 -1
- package/dist/c-JIMJF6F6.min.js +0 -1
- package/dist/c-JUKIWTBJ.min.js +0 -1
- package/dist/c-KKPMHAZC.min.js +0 -1
- package/dist/c-L6WNDBHV.min.js +0 -1
- package/dist/c-LDEX5OFW.min.js +0 -1
- package/dist/c-LESEUVC5.min.js +0 -1
- package/dist/c-LYQMZMZQ.min.js +0 -1
- package/dist/c-MB6CV5NC.min.js +0 -1
- package/dist/c-MOKJOIPE.min.js +0 -1
- package/dist/c-N3FXLRNT.min.js +0 -1
- package/dist/c-N5NPTJVJ.min.js +0 -1
- package/dist/c-NHBL4J67.min.js +0 -1
- package/dist/c-ODG6TFSY.min.js +0 -1
- package/dist/c-PRIKOLTE.min.js +0 -1
- package/dist/c-PSKKFZNP.min.js +0 -1
- package/dist/c-PSNI6KAZ.min.js +0 -1
- package/dist/c-QAVFOEUY.min.js +0 -1
- package/dist/c-R2P4RR7Q.min.js +0 -1
- package/dist/c-RFC7UAG7.min.js +0 -1
- package/dist/c-S3AZX5PP.min.js +0 -1
- package/dist/c-SGAURYHG.min.js +0 -1
- package/dist/c-SJMWU6UX.min.js +0 -1
- package/dist/c-STIIGQOD.min.js +0 -1
- package/dist/c-T2ASIJVZ.min.js +0 -1
- package/dist/c-T2V7O2LO.min.js +0 -1
- package/dist/c-TKG2NP7G.min.js +0 -1
- package/dist/c-TX3THUTO.min.js +0 -1
- package/dist/c-TX7XJM3Z.min.js +0 -1
- package/dist/c-UC7SIU2W.min.js +0 -1
- package/dist/c-UMXSJIOV.min.js +0 -1
- package/dist/c-VRSXMLYF.min.js +0 -1
- package/dist/c-VSLWSAN2.min.js +0 -1
- package/dist/c-VXLOLYTO.min.js +0 -1
- package/dist/c-W4ZUKSEQ.min.js +0 -1
- package/dist/c-WCBRPILW.min.js +0 -1
- package/dist/c-WGHT7OCY.min.js +0 -1
- package/dist/c-WWCW3APR.min.js +0 -1
- package/dist/c-XSB27XPS.min.js +0 -1
- package/dist/c-Y6PYUMFU.min.js +0 -1
- package/dist/c-YDECTEUW.min.js +0 -1
- package/dist/c-YF3YKVQI.min.js +0 -1
- package/dist/c-YLZIV3VS.min.js +0 -1
- package/dist/c-ZIVPFTOC.min.js +0 -1
package/dist/c-AH5HWZWS.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e){let{accessor:t,data:o,isPushMode:i}=e,a=xt(null),[r,n]=vt(0),l=gt(e=>{if(!i||!t)return;let o=!1;for(let i of e){let e="function"==typeof t?t(i):i[t];if(null==e)continue;let r="number"==typeof e?e:Number(e);Number.isFinite(r)&&(a.current?(a.current[0]>r&&(a.current[0]=r,o=!0),r>a.current[1]&&(a.current[1]=r,o=!0)):(a.current=[r,r],o=!0))}o&&n(e=>e+1)},[i,t]),s=gt(()=>{i&&(a.current=null,n(e=>e+1))},[i]);return{domain:bt(()=>{if(i)return a.current??void 0;if(!t||0===o.length)return;let e="function"==typeof t?t:e=>e[t],r=1/0,n=-1/0;for(let t of o){let o=e(t);if(null==o)continue;let i="number"==typeof o?o:Number(o);Number.isFinite(i)&&(r>i&&(r=i),i>n&&(n=i))}return Number.isFinite(r)&&Number.isFinite(n)?[r,n]:void 0},[o,t,i,r]),trackPushed:l,reset:s}}function t(e,t){return rt(1===t?.5:e/(t-1))}function o(e){return e instanceof Date?"date:"+e.getTime():`${typeof e}:${e+""}`}function i(e,t,o){return"function"==typeof e?e(t,o):t[e]}function a(e,t={}){let a=t.xAccessor??"x",r=t.yAccessor??"y",n=t.lineBy??"series",l=t.rankDirection??"descending",s=[],c=new Map,h=new Map,m=[],d=new Map,u=1/0,p=-1/0;e.forEach((e,t)=>{let l=i(a,e,t),y=o(l),f=c.get(y);null==f&&(f=s.length,c.set(y,f),s.push(l),h.set(f,[]));let g=i(n,e,t)+"";d.has(g)||(d.set(g,m.length),m.push(g));let b=Number(i(r,e,t));Number.isFinite(b)&&(u=Math.min(u,b),p=Math.max(p,b),h.get(f)?.push({datum:e,inputIndex:t,series:g,value:b}))});let y=[],f=new Map,g=new Map;for(let e=0;s.length>e;e++){let t=h.get(e)??[];t.sort((e,t)=>("descending"===l?t.value-e.value:e.value-t.value)||(d.get(e.series)??0)-(d.get(t.series)??0)),t.forEach((t,o)=>{let i=o+1;y.push({datum:t.datum,xIndex:e,xValue:s[e],series:t.series,value:t.value,rank:i}),f.set(t.series,(f.get(t.series)??0)+i),g.set(t.series,(g.get(t.series)??0)+1)})}let b=m.length+1,x=[...m].sort((e,t)=>{let o=g.get(e)??0,i=g.get(t)??0;return((f.get(e)??0)+(s.length-o)*b)/Math.max(1,s.length)-((f.get(t)??0)+(s.length-i)*b)/Math.max(1,s.length)||(d.get(e)??0)-(d.get(t)??0)}),v=new Set(x.slice(0,null==t.highlightTop?x.length:Math.max(0,Math.floor(t.highlightTop))));return{data:y.map(e=>{let t=v.has(e.series);return{...e.datum,x:e.xIndex,y:e.rank,__bumpRaw:e.datum,__bumpSeries:e.series,__bumpColorGroup:t?e.series:"Other",__bumpValue:e.value,__bumpRank:e.rank,__bumpXValue:e.xValue,__bumpHighlighted:t}}),xValues:s,seriesOrder:m,overallOrder:x,valueExtent:u===1/0?[0,0]:[u,p]}}function r(e,t,o,i,a){let r=1-a;return r*r*r*e+3*r*r*a*t+3*r*a*a*o+a*a*a*i}function n(e,t,o,i,a){let r=1-a;return 3*r*r*(t-e)+6*r*a*(o-t)+3*a*a*(i-o)}function l(e,t,o,i,a){let l=[],s=(e.x+t.x)/2;for(let c=0;a>=c;c++){let h,m,d,u,p=c/a;"linear"===i?(h=e.x+(t.x-e.x)*p,m=e.y+(t.y-e.y)*p,d=t.x-e.x,u=t.y-e.y):(h=r(e.x,s,s,t.x,p),m=r(e.y,e.y,t.y,t.y,p),d=n(e.x,s,s,t.x,p),u=n(e.y,e.y,t.y,t.y,p)),l.push({x:h,y:m,dx:d,dy:u,radius:e.radius+(t.radius-e.radius)*p,datumIndex:.5>p?o:o+1})}return l}function s(e,t={}){let o=[],i=[],a=[];if(2>e.length)return{topPath:o,bottomPath:i,datumIndices:a};let r=t.curve??"smooth",n=Math.max(2,Math.floor(t.samplesPerSegment??12));for(let t=0;e.length-1>t;t++){let s=l(e[t],e[t+1],t,r,n);for(let e=0===t?0:1;s.length>e;e++){let t=s[e],r=Math.hypot(t.dx,t.dy)||1,n=-t.dy/r,l=t.dx/r,c=Math.max(0,t.radius);o.push([t.x+n*c,t.y+l*c]),i.push([t.x-n*c,t.y-l*c]),a.push(t.datumIndex)}}return{topPath:o,bottomPath:i,datumIndices:a}}function c({datum:e,x:t,y:o,side:i,color:a,highlighted:r,labelStyle:n}){let l=pe(),s=l.isActive&&!l.predicate(e),c="function"==typeof n?n(e.__bumpRaw):n;return Ot("text",{className:"semiotic-bump-label",x:t+("end"===i?8:-8),y:o,dy:"0.35em",textAnchor:"end"===i?"start":"end",fill:a,fillOpacity:s?.16:1,fontWeight:r?650:450,fontSize:12,style:{pointerEvents:"none",fontFamily:"var(--semiotic-font-family, sans-serif)",fontSize:"var(--semiotic-axis-label-font-size, 12px)",...c},children:e.__bumpSeries})}function h(e,t,o){let[i,a]=t,[r,n]=o;return a===i?(r+n)/2:r+(n-r)*Math.max(0,Math.min(1,(e-i)/(a-i)))}function m(e){let t=e.__bumpXValue instanceof Date?e.__bumpXValue.getTime():Number(e.__bumpXValue);return{value:e.__bumpValue,x:Number.isFinite(t)?t:void 0,y:e.__bumpValue,category:e.__bumpSeries}}function d(e){let t=e.config,o=new Map;for(let t of e.data){let e=o.get(t.__bumpSeries)??[];e.push(t),o.set(t.__bumpSeries,e)}let i=t.seriesOrder.filter(e=>o.has(e)).sort((e,i)=>(o.get(e)?.[0]?.__bumpHighlighted?1:0)-(o.get(i)?.[0]?.__bumpHighlighted?1:0)||t.seriesOrder.indexOf(e)-t.seriesOrder.indexOf(i)),a=[],r=[],n=[];for(let r of i){let i=(o.get(r)??[]).sort((e,t)=>e.x-t.x);if(2>i.length)continue;let l=i[0].__bumpHighlighted,c=(t.colorMap&<(t.colorMap,r))??e.resolveColor(i[0].__bumpSeries,i[0]),d=t.color??(l?c:t.neutralColor??e.theme.semantic.textSecondary??e.theme.semantic.border??c),u=i.map(o=>({x:e.scales.x(o.x),y:e.scales.y(o.y),radius:t.ribbon?h(o.__bumpValue,t.valueExtent,t.ribbonSizeRange)/2:Math.max(.5,t.lineWidth/2)})),p=s(u,{curve:t.curve,samplesPerSegment:t.samplesPerSegment}),y={fill:d,fillOpacity:1,opacity:l?t.ribbon?t.ribbonOpacity:t.lineOpacity:Math.min(t.ribbon?t.ribbonOpacity:t.lineOpacity,.58)};t.styleRules?.length&&Object.assign(y,je(i[0].__bumpRaw,t.styleRules,m(i[0]))),t.areaStyle&&Object.assign(y,t.areaStyle(i[0].__bumpRaw)??{}),void 0!==t.stroke&&(y.stroke=t.stroke),void 0!==t.strokeWidth&&(y.strokeWidth=t.strokeWidth),void 0!==t.opacity&&(y.opacity=t.opacity),a.push({type:"area",topPath:p.topPath,bottomPath:p.bottomPath,style:y,datum:p.datumIndices.map(e=>i[e]),accessibleDatum:i.map(e=>e.__bumpRaw),accessibility:{label:r+" ranking trajectory",tableFields:i.map(e=>e.__bumpRaw)},group:r,interactive:!0}),t.showPoints&&i.forEach((e,o)=>{let i={fill:d,stroke:"none",opacity:l?1:.75};t.styleRules?.length&&Object.assign(i,je(e.__bumpRaw,t.styleRules,m(e))),t.pointStyle&&Object.assign(i,t.pointStyle(e.__bumpRaw)??{}),void 0!==t.stroke&&(i.stroke=t.stroke),void 0!==t.strokeWidth&&(i.strokeWidth=t.strokeWidth),void 0!==t.opacity&&(i.opacity=t.opacity),a.push({type:"point",x:u[o].x,y:u[o].y,r:i.r??t.pointRadius,style:i,datum:e,accessibleDatum:e.__bumpRaw,accessibility:{label:`${r}, rank ${e.__bumpRank}, value ${e.__bumpValue}`},pointId:`${r}:${e.x}`})});let f=!0===t.showLabels?"end":t.showLabels,g=(e,o,i)=>{let a=null==t.labelPriorityAccessor?void 0:"function"==typeof t.labelPriorityAccessor?t.labelPriorityAccessor(e.__bumpRaw):Number(e.__bumpRaw[t.labelPriorityAccessor]);n.push({id:`${r}\0${i}`,datum:e,x:u[o].x,y:u[o].y,side:i,rank:e.__bumpRank,highlighted:l,priority:Number.isFinite(a)?a:void 0,color:"string"==typeof y.fill?y.fill:d})};("start"===f||"both"===f)&&g(i[0],0,"start"),("end"===f||"both"===f||"auto"===f)&&g(i.at(-1),i.length-1,"end")}let l=function(e,t,o,i){let a=Math.max(1,Math.floor(t/18)),r="auto"===o?Number.isFinite(i)&&(i??0)>=0?Math.min(a,Math.floor(i)):a:1/0,n=e.map((e,t)=>({candidate:e,index:t})).sort((e,t)=>(t.candidate.priority??0)-(e.candidate.priority??0)||Number(t.candidate.highlighted)-Number(e.candidate.highlighted)||e.candidate.rank-t.candidate.rank||e.index-t.index),l=[];for(let{candidate:e}of n){if(l.length>=r)break;l.some(t=>t.side===e.side&&14>Math.abs(t.y-e.y))||l.push(e)}return new Set(l.map(e=>e.id))}(n,e.dimensions.plot.height,"auto"!==(!0===t.showLabels?"end":t.showLabels)||"auto",t.maxLabels);for(let e of n)l.has(e.id)&&r.push(Ot(c,{datum:e.datum,x:e.x,y:e.y,side:e.side,color:e.color,highlighted:e.highlighted,labelStyle:t.labelStyle},e.id));return{nodes:a,overlays:r.length?Ot("g",{className:"semiotic-bump-labels",children:r}):void 0,restyle:(e,t)=>{let o=function(e){let t=Array.isArray(e.datum)?e.datum[0]:e.datum;return t&&"object"==typeof t&&"__bumpSeries"in t?t:void 0}(e);if(t?.isActive&&o&&!t.predicate(o))return{opacity:.14}}}}function u(e){let{safeData:t,data:o,areaBy:i,lineDataAccessor:a,colorBy:r,colorScale:n,color:l,stroke:s,strokeWidth:c,opacity:h,effectiveSelectionHook:m,resolvedSelection:d,areaOpacity:u,showLine:p,lineWidth:y,showPoints:f,pointRadius:g,xAccessor:b,yAccessor:x,xLabel:v,yLabel:A,xFormat:w,yFormat:S,groupField:k,styleRules:C,ruleContext:R}=e,L=Xt(()=>function({data:e,safeData:t,areaBy:o,lineDataAccessor:i}){if(null==e)return[];let a,r=void 0!==t[0]?.[i];if(!r&&!o)return t;if(r)a=t;else{let e=t.reduce((e,t)=>{let a="function"==typeof o?o(t):t[o],r=a+"";if(!e[r]){let t={[i]:[]};"string"==typeof o&&(t[o]=a),e[r]=t}return e[r][i].push(t),e},{});a=Object.values(e)}return a.flatMap(e=>{let t=Array.isArray(e[i])?e[i]:[];return"string"==typeof o?t.map(t=>({...t,[o]:t[o]??e[o]})):t})}({data:o,safeData:t,areaBy:i,lineDataAccessor:a}),[o,t,i,a]),_=Xt(()=>e=>{let t={};if(r){if(n){let o=ot(e,r,n);t.fill=o,p?(t.stroke=o,t.strokeWidth=y):t.stroke="none"}}else{let e=l||et;t.fill=e,p?(t.stroke=e,t.strokeWidth=y):t.stroke="none"}return t.fillOpacity=u,C&&C.length>0&&Object.assign(t,je(e,C,R?R(e):{value:void 0})),t},[r,n,l,u,p,y,C,R]),H=Xt(()=>ue(_,{stroke:s,strokeWidth:c,opacity:h}),[_,s,c,h]);return{flattenedData:L,lineStyle:Xt(()=>Ze(H,m??null,d),[H,m,d]),pointStyle:Xt(()=>{if(f)return e=>{let t={r:g,fillOpacity:1};return r?n&&(t.fill=ot(e.parentLine||e,r,n)):t.fill=l||et,t}},[f,g,r,n,l]),defaultTooltipContent:Xt(()=>me([{label:v||le(b),accessor:b,role:"x",format:w},{label:A||le(x),accessor:x,role:"y",format:S},...k?[{label:le(k),accessor:k,role:"group"}]:[],...se(e.band,S)]),[b,x,v,A,k,w,S,e.band])}}function p(e){if("A"===e.__diffWinner||"B"===e.__diffWinner)return e.__diffWinner;let t=(e.__diffSegment??"")+"";return"line-A"===t||t.endsWith("-A")?"A":"B"}function y(e,t){return Le(e,t,e=>{let t=Number(e.__x),o=Number(e.__y);return{value:Number.isFinite(o)?o:void 0,x:Number.isFinite(t)?t:void 0,y:Number.isFinite(o)?o:void 0,category:p(e)}},e=>e.__sourceDatum?{...e.__sourceDatum,...e}:e)}function f(e){if(null==e)return NaN;if("number"==typeof e)return e;if(e instanceof Date)return e.getTime();if("string"==typeof e){if(""===e.trim())return NaN;let t=+e;return Number.isFinite(t)?t:NaN}return NaN}function g(e){let[t,o]=_o.useState(()=>Io);return _o.useEffect(()=>{if(t)return;let e=!1;return(Io?Promise.resolve(Io):(Po||(Po=import("./c-AQADQNY7.min.js").then(e=>Io=e.ScatterplotMatrixBrushOverlay).catch(e=>{throw Po=null,e})),Po)).then(t=>{e||o(()=>t)}).catch(()=>{}),()=>{e=!0}},[t]),t?Ho(t,{...e}):null}function b({data:e,xField:t,yField:o,fieldLabels:i,cellSize:a,pointRadius:r,pointOpacity:n,styleRules:l,colorBy:s,colorScale:c,brushSelectionName:h,hoverSelectionName:m,unselectedOpacity:d,maxDevicePixelRatio:u,mobileInteraction:p,mode:y,onPointHover:f,onPointClick:b}){let x=Lo(null),v=Je({name:h,clientId:`splom-${t}-${o}`,fields:[t,o]}),A=ze({name:h,xField:t,yField:o}),w=Je({name:m,clientId:"splom-hover-source",fields:[Do]}),S=w.selectPoints,k=Ro(e=>{e?A.brushInteraction.during(e):A.brushInteraction.end(null)},[A.brushInteraction]),C=Ro(e=>{if(!e)return void f?.(null);let t=e.data,o=t?.[Do];void 0!==o&&(S({[Do]:[o]}),f?.(t,e.x+No.left,e.y+No.top))},[S,f]),R=Ro(e=>{if(!e)return void b?.(null);let t=e.data;t&&b?.(t,e.x+No.left,e.y+No.top)},[b]),L=Co(()=>De(t,o),[t,o]),_=Co(()=>Le(e=>({opacity:n,r:r,fill:s?ot(e,s,c):et}),l,L),[n,r,s,c,l,L]),H=Ro(e=>{let t={..._(e)};return"hover"===y?w.isActive&&w.predicate(e)?(t.opacity=1,t.r=2.5*r,t.stroke="#333",t.strokeWidth=1.5):w.isActive&&(t.opacity=.6*("number"==typeof t.opacity?t.opacity:n)):v.isActive&&!v.predicate(e)&&(t.opacity=d),t},[_,y,w,v,d,r,n]);return Fo("div",{style:{position:"relative",width:a,height:a},children:[Bo(J,{ref:x,chartType:"scatter",data:e,size:[a,a],xAccessor:t,yAccessor:o,pointStyle:H,margin:No,showAxes:!1,maxDevicePixelRatio:u,enableHover:"hover"===y,accessibleTable:!1,description:`${lt(i,t)??t} versus ${lt(i,o)??o} scatterplot`,...he({forceHoverBehavior:"hover"===y,forceClickBehavior:!!b,mobileInteraction:p,customHoverBehavior:C,customClickBehavior:R}),tooltipContent:"hover"===y?()=>null:void 0}),"brush"===y&&Bo(g,{frameRef:x,cellSize:a,onBrush:k})]})}function x({data:e,field:t,label:o,cellSize:i,bins:a,colorBy:r,colorScale:n,brushSelectionName:l,hoverSelectionName:s,mode:c}){let h=Je({name:l,clientId:"splom-diag-"+t,fields:[t]}),m=Je({name:s,clientId:`splom-diag-${t}-hover`,fields:[Do]}),d="hover"===c?m:h,u=d.isActive,p=d.predicate,y=Co(()=>{let o="string"==typeof r?r:null,n=[],l=new Set;for(let i of e){let e=i[t];if(null!=e&&!isNaN(e)&&n.push(Number(e)),o){let e=i[o];null!=e&&l.add(e+"")}}if(0===n.length)return{bars:[],selectedBars:[],categoryBars:[],selectedCategoryBars:[],max:0,categories:[]};let[s,c]=mt(n),h=(c-s)/a||1,m=Array.from(l),d=new Map(m.map((e,t)=>[e,t])),y=Array(a).fill(0),f=Array(a).fill(0),g=Array.from({length:a},()=>Array(m.length).fill(0)),b=Array.from({length:a},()=>Array(m.length).fill(0));for(let i of e){let e=i[t];if(null==e||isNaN(e))continue;let r=Math.min(Math.floor((e-s)/h),a-1);if(y[r]++,(!u||p(i))&&f[r]++,o){let e=d.get(i[o]+"");void 0!==e&&(g[r][e]++,(!u||p(i))&&b[r][e]++)}}let x=ht(y,1),v=g.map((e,t)=>{let o=0;return e.map((e,r)=>{let n=e/x*(i-24),l={x:t/a*i,w:i/a-1,h:n,y0:o,category:m[r]};return o+=n,l})}),A=b.map((e,t)=>{let o=0;return e.map((e,r)=>{let n=e/x*(i-24),l={x:t/a*i,w:i/a-1,h:n,y0:o,category:m[r]};return o+=n,l})});return{bars:y.map((e,t)=>({x:t/a*i,w:i/a-1,h:e/x*(i-24),count:e})),selectedBars:f.map((e,t)=>({x:t/a*i,w:i/a-1,h:e/x*(i-24),count:e})),categoryBars:v,selectedCategoryBars:A,max:x,categories:m}},[e,t,a,i,u,p,r]);return Fo("svg",{width:i,height:i,style:{overflow:"hidden"},children:[Bo("text",{x:i/2,y:14,textAnchor:"middle",fontSize:11,fontWeight:"bold",fill:"var(--semiotic-text, #333)",fontFamily:"var(--semiotic-font-family, sans-serif)",children:o}),y.categories.length>0?y.categoryBars.map((e,t)=>e.map((e,o)=>Bo("rect",{x:e.x,y:i-e.y0-e.h,width:Math.max(e.w,1),height:e.h,fill:n?n(e.category):et,opacity:u?.3:.6},`bg-${t}-${o}`))):y.bars.map((e,t)=>Bo("rect",{x:e.x,y:i-e.h,width:Math.max(e.w,1),height:e.h,fill:et,opacity:u?.3:.6},"bg-"+t)),u&&(y.categories.length>0?y.selectedCategoryBars.map((e,t)=>e.map((e,o)=>Bo("rect",{x:e.x,y:i-e.y0-e.h,width:Math.max(e.w,1),height:e.h,fill:n?n(e.category):et,opacity:.7},`sel-${t}-${o}`))):y.selectedBars.map((e,t)=>Bo("rect",{x:e.x,y:i-e.h,width:Math.max(e.w,1),height:e.h,fill:et,opacity:.7},"sel-"+t)))]})}function v({label:e,cellSize:t}){return Bo("svg",{width:t,height:t,children:Bo("text",{x:t/2,y:t/2,textAnchor:"middle",dominantBaseline:"middle",fontSize:12,fontWeight:"bold",fill:"var(--semiotic-text, #333)",fontFamily:"var(--semiotic-font-family, sans-serif)",children:e})})}function A(e){let{data:t,fields:o,fieldLabels:i={},colorBy:a,colorScheme:r,cellSize:n=150,cellGap:l=4,pointRadius:s=2,pointOpacity:c=.5,diagonal:h="histogram",histogramBins:m=20,brushMode:d="crossfilter",hoverMode:u=!0,unselectedOpacity:p=.1,showGrid:y=!1,maxDevicePixelRatio:f,tooltip:g,showLegend:A,idAccessor:w,styleRules:S,width:k,className:C,title:R,description:L,summary:_,accessibleTable:H=!0,onObservation:I,onClick:P,chartId:B}=e,F="splom",D="splom-hover",N=Oe(e.mobileInteraction,{mode:e.mode,width:k??o.length*n,mobileSemantics:e.mobileSemantics}),M=u?"hover":d?"brush":"hover",W=st(e=>e.clearSelection),[T,O]=ko(null),E=So(()=>{W(D),O(null)},[W,D]),j=wo(()=>(t||[]).map((e,t)=>void 0!==e[Do]?e:{...e,[Do]:t}),[t]),G=Qe(j,a,r),z=Ao.useId().replace(/:/g,"")+"-data-table",V=wo(()=>(t||[]).map(e=>({type:"point",datum:e})),[t]),X=wo(()=>Ne(g),[g]),$=40,Q=So((e,t,o,i)=>[$+l+e*(n+l)+(o??0),t*(n+l)+(i??0)],[$,n,l]),Y=void 0!==A?A:!!a,J=wo(()=>{if(!Y||!a)return null;let e="string"==typeof a?a:null;return e?Array.from(new Set(j.map(t=>t[e]).filter(e=>null!=e))).map(e=>({label:e+"",color:G?G(e+""):et})):null},[Y,a,j,G]),q=wo(()=>({display:"grid",gridTemplateColumns:"40px "+o.map(()=>n+"px").join(" "),gridTemplateRows:o.map(()=>n+"px").join(" ")+" 40px",gap:l+"px",width:"fit-content"}),[o,n,l,$]);return Wo("div",{className:C,style:{position:"relative",color:"var(--semiotic-text, #333)",fontFamily:"var(--semiotic-font-family, sans-serif)"},role:"group","aria-label":L||R||`Scatterplot matrix comparing ${o.length} fields`,children:[R&&Mo("div",{className:"semiotic-chart-title",style:{fontWeight:600,marginBottom:8},children:R}),H&&Mo(fe,{accessibleTable:H,children:Mo(ke,{tableId:z})}),Mo(Se,{summary:_}),J&&Mo("div",{style:{display:"flex",gap:12,marginBottom:8,flexWrap:"wrap"},children:J.map(e=>Wo("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Mo("span",{style:{display:"inline-block",width:10,height:10,borderRadius:"50%",backgroundColor:e.color}}),Mo("span",{style:{fontSize:11},children:e.label})]},e.label))}),Wo("div",{style:{position:"relative",width:"fit-content"},children:[Wo("div",{style:q,onMouseLeave:"hover"===M?E:void 0,children:[o.map((e,t)=>Wo(Ao.Fragment,{children:[Mo("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",writingMode:"vertical-rl",transform:"rotate(180deg)",fontSize:11,fontWeight:"bold",color:"var(--semiotic-text, #333)"},children:lt(i,e)??e}),o.map((o,r)=>t===r?"label"===h?Mo(v,{label:lt(i,e)??e,cellSize:n},"diag-"+e):Mo(x,{data:j,field:e,label:lt(i,e)??e,cellSize:n,bins:m,colorBy:a,colorScale:G,brushSelectionName:F,hoverSelectionName:D,unselectedOpacity:p,mode:M},"diag-"+e):Mo(b,{data:j,xField:o,yField:e,fieldLabels:i,cellSize:n,pointRadius:s,pointOpacity:c,styleRules:S,colorBy:a,colorScale:G,brushSelectionName:F,hoverSelectionName:D,unselectedOpacity:p,showGrid:y,maxDevicePixelRatio:f,mobileInteraction:N,mode:M,onPointHover:"hover"===M?(i,a,n)=>{if(i){if(O({datum:i,xField:o,yField:e,colIndex:r,rowIndex:t,px:a??0,py:n??0}),I){let[e,o]=Q(r,t,a,n);I({type:"hover",datum:i,x:e,y:o,timestamp:Date.now(),chartType:"ScatterplotMatrix",chartId:B})}}else O(null),I&&I({type:"hover-end",timestamp:Date.now(),chartType:"ScatterplotMatrix",chartId:B})}:void 0,onPointClick:P||I?(e,o,i)=>{if(!e)return;let[a,n]=Q(r,t,o,i);P&&P(e,{x:a,y:n}),I&&I({type:"click",datum:e,x:a,y:n,timestamp:Date.now(),chartType:"ScatterplotMatrix",chartId:B})}:void 0},`cell-${e}-${o}`))]},"row-"+e)),Mo("div",{})," ",o.map(e=>Mo("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:11,fontWeight:"bold",color:"#333"},children:lt(i,e)??e},"col-label-"+e))]}),T&&"hover"===M&&!1!==g&&(()=>{let e=T.datum,t=lt(i,T.xField)??T.xField,r=lt(i,T.yField)??T.yField,s=a?"function"==typeof a?a(e):e[a]:null,c=w?"function"==typeof w?w(e):e[w]:"Row "+e[Do],h=$+l+T.colIndex*(n+l)+T.px,m=T.rowIndex*(n+l)+T.py,d={...e};delete d[Do];let u="function"==typeof X,p=u?X(d):null,y=Wo(Ce,{style:{color:"var(--semiotic-tooltip-text, #333)",background:"var(--semiotic-tooltip-bg, rgba(255,255,255,0.95))",border:"1px solid var(--semiotic-border, #ddd)",borderRadius:3,padding:"4px 8px",fontSize:11,lineHeight:1.4,whiteSpace:"nowrap",boxShadow:"none"},children:[Mo("div",{style:{fontWeight:"bold",marginBottom:2},children:c+""}),Wo("div",{children:[t,": ",null!=e[T.xField]?Number(e[T.xField]).toFixed(1):"–"]}),Wo("div",{children:[r,": ",null!=e[T.yField]?Number(e[T.yField]).toFixed(1):"–"]}),null!=s&&Wo("div",{style:{opacity:.8},children:["string"==typeof a?a:"group",": ",s+""]})]}),f=u?p:y;return f?Mo(xe,{x:h,y:m,containerWidth:$+o.length*n+o.length*l,containerHeight:o.length*n+$+o.length*l,margin:{top:0,right:0,bottom:0,left:0},className:"scatterplot-matrix-tooltip",zIndex:10,children:f}):null})()]}),H&&Mo(fe,{accessibleTable:H,children:Mo(ye,{scene:V,chartType:"scatterplot matrix",tableId:z,chartTitle:R})})]})}function w(e){let{brushMode:t="crossfilter",hoverMode:o=!0}=e,i={};return!o&&t&&(i.splom={resolution:t}),o&&(i["splom-hover"]={resolution:"union"}),Mo(ve,{selections:i,children:Mo(A,{...e})})}function S(e){let[t,o]=zo.useState(()=>Xo);return zo.useEffect(()=>{if(t)return;let e=!1;return(Xo?Promise.resolve(Xo):($o||($o=import("./c-HPOYKCCG.min.js").then(e=>Xo=e.MinimapBrushOverlay).catch(e=>{throw $o=null,e})),$o)).then(t=>{e||o(()=>t)}).catch(()=>{}),()=>{e=!0}},[t]),t?Vo(t,{...e}):null}function k(e){let{data:t,width:o=600,height:i=400,margin:a,className:r,title:n,description:l,summary:s,xLabel:c,yLabel:h,xFormat:m,yFormat:d,xAccessor:u="x",yAccessor:p="y",lineBy:y,lineDataAccessor:f="coordinates",colorBy:g,colorScheme:b,curve:x="linear",lineWidth:v=2,styleRules:A,fillArea:w=!1,areaOpacity:k=.3,showPoints:C=!1,pointRadius:R=3,enableHover:L=!0,showGrid:_=!1,showLegend:H,legendPosition:I,tooltip:B,minimap:F={},renderBefore:D=!1,onBrush:N,brushExtent:W,yExtent:T,frameProps:O={},loading:E,loadingContent:j,emptyContent:G}=e,z=We(E,o,i,j),V=z?null:Me(t,o,i,G),X=jo(()=>He(t),[t]),[$,Q]=To(null),Y=W??$,q=Go(e=>{W||Q(e),N?.(e)},[W,N]),U=Oo(null),[K,Z]=To(null);Eo(()=>{let e=0,t=!1,o=()=>{if(t)return;let i=U.current?.getScales?.();i?Z(i):e=requestAnimationFrame(o)};return e=requestAnimationFrame(o),()=>{t=!0,e&&cancelAnimationFrame(e)}},[t]);let ee=void 0!==X[0]?.[f],te=jo(()=>{if(ee)return X;if(y){let e=X.reduce((e,t)=>{let o="function"==typeof y?y(t):t[y];if(!e[o]){let t={[f]:[]};"string"==typeof y&&(t[y]=o),e[o]=t}return e[o][f].push(t),e},{});return Object.values(e)}return[{[f]:X}]},[X,y,f,ee]),oe=jo(()=>ee||y?te.flatMap(e=>{let t=e[f]||[];return y&&"string"==typeof y?t.map(t=>({...t,[y]:e[y]})):t}):X,[te,f,ee,y,X]),ie=Qe(X,g,b),ae=jo(()=>De(u,p),[u,p]),re=P({lineWidth:v,colorBy:g,colorScale:ie,fillArea:w,areaOpacity:k,styleRules:A,ruleContext:ae}),ne=jo(()=>{if(F.lineStyle)return F.lineStyle},[F.lineStyle]),se=P({lineWidth:1,colorBy:g,colorScale:ie,styleRules:A,ruleContext:ae}),ce=ne??se,he=jo(()=>C?Le(e=>{let t={r:R,fillOpacity:1};return t.fill=g?ot(e.parentLine||e,g,ie):et,t},A,ae,e=>e.parentLine||e):void 0,[C,R,g,ie,A,ae]),{legend:de,margin:ue,legendPosition:pe,legendMarginReserved:ye}=Ve({data:te,colorBy:g,colorScale:ie,showLegend:H,legendPosition:I,userMargin:a,chartWidth:o,chartHeight:i,frameLegend:O,hasTitle:!!n,axisChrome:Ge(O,{showAxes:!0,xLabel:c,yLabel:h})}),fe=F.height||60,be=jo(()=>({top:F.margin?.top??0,bottom:F.margin?.bottom??20,left:F.margin?.left??ue.left,right:F.margin?.right??ue.right}),[F.margin,ue]),xe=F.brushDirection||"x",ve=jo(()=>me([{label:c||le(u),accessor:u,role:"x",format:m},{label:h||le(p),accessor:p,role:"y",format:d}]),[u,p,c,h,m,d]),Ae=M({componentName:"MinimapChart",data:t,accessors:{xAccessor:u,yAccessor:p}});if(Ae)return Qo(ge,{componentName:"MinimapChart",message:Ae,width:o,height:i});let Se=w?"area":"line",ke={chartType:Se,data:oe,xAccessor:u,yAccessor:p,groupAccessor:y||void 0,curve:x,lineStyle:re,...C&&{pointStyle:he},size:[o,i],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,...void 0!==e.maxDevicePixelRatio&&{maxDevicePixelRatio:e.maxDevicePixelRatio},margin:ue,showAxes:!0,xLabel:c,yLabel:h,xFormat:m,yFormat:d,enableHover:L,showGrid:_,...de&&{legend:de,legendPosition:pe},...ye&&{__legendMarginReservedFor:de},...n&&{title:n},...l&&{description:l},...s&&{summary:s},...void 0!==e.accessibleTable&&{accessibleTable:e.accessibleTable},...void 0!==e.animate&&{animate:e.animate},...void 0!==e.hoverRadius&&{hoverRadius:e.hoverRadius},...Ee({tooltip:B,defaultTooltipContent:ve}),...Y&&{xExtent:Y},...T&&{yExtent:T},...void 0!==e.axisExtent&&{axisExtent:e.axisExtent},...void 0!==e.autoPlaceAnnotations&&{autoPlaceAnnotations:e.autoPlaceAnnotations},...O},Ce={chartType:Se,data:oe,xAccessor:u,yAccessor:p,groupAccessor:y||void 0,curve:x,lineStyle:ce,...void 0!==e.maxDevicePixelRatio&&{maxDevicePixelRatio:e.maxDevicePixelRatio},size:[o,fe+be.top+be.bottom],margin:be,showAxes:F.showAxes??!1,background:F.background,enableHover:!1,accessibleTable:!1,description:(l||n||"Chart")+" overview minimap",animate:!1,...T&&{yExtent:T}},Re=Yo("div",{style:{position:"relative",width:o,overflow:"hidden"},children:[Qo(J,{ref:U,...Ce}),Qo(S,{width:o-be.left-be.right,height:fe,margin:be,scales:K,brushDirection:xe,extent:Y,onBrush:q})]},"minimap"),_e=Qo("div",{style:{overflow:"hidden"},children:Qo(J,{...ke})},"main");return z||V||Qo(we,{componentName:"MinimapChart",width:o,height:i,children:Yo("div",{className:"minimap-chart"+(r?" "+r:""),role:"group","aria-label":l||n||"Chart with overview minimap",children:[D?Re:_e,D?_e:Re]})})}function C(e,t){return{label:t?.label??e.label,color:t?.color??e.color,opacity:t?.opacity??e.opacity}}function R(e,t){let o=t[1]-t[0];return 0===o?.5:(e-t[0])/o}function L(e,t){return t[0]+e*(t[1]-t[0])}import{MarginalGraphics as _}from"./c-VXLOLYTO.min.js";import{registerLineFamilyXYPlugins as H,useSeriesFeatures as I,useXYLineStyle as P,useXYPointStyle as B}from"./c-B7GW7IHJ.min.js";import{buildRegressionAnnotation as F}from"./c-GNTXRXRN.min.js";import{normalizePartialMargin as D,useCustomChartSetup as N}from"./c-TX7XJM3Z.min.js";import{validateArrayData as M}from"./c-D6HAAPTX.min.js";import{useChartSetup as W,useFrameImperativeHandle as T,useResolvedSelection as O}from"./c-RFC7UAG7.min.js";import{makeHeatmapRuleContext as E}from"./c-J6DVC236.min.js";import{bubbleXYPlugin as j,candlestickXYPlugin as G,heatmapXYPlugin as z,scatterXYPlugin as V,stackedAreaXYPlugin as X,waterfallXYPlugin as $}from"./c-WCBRPILW.min.js";import{customXYPlugin as Q}from"./c-E72OTUZU.min.js";import{DefaultTooltip as Y,StreamXYFrame_default as J,provideMarginalGraphics as q,useXYBrush as U}from"./c-JIMJF6F6.min.js";import{areaXYPlugin as K,lineXYPlugin as Z,mixedXYPlugin as ee,registerXYPlugin as te}from"./c-G5VIJEOK.min.js";import{normalizeColorGradient as oe,normalizeGradient as ie,normalizeSemanticGradient as ae,reverseGradient as re,semanticLineStopsForGradient as ne}from"./c-AVO3Q7T7.min.js";import{accessorName as le,bandTooltipFields as se,buildBaseMetadataProps as ce,buildCustomBehaviorProps as he,buildDefaultTooltip as me,buildTooltipProps as de,mergeShapeStyle as ue}from"./c-SGAURYHG.min.js";import{useCustomLayoutSelection as pe}from"./c-YDECTEUW.min.js";import{AccessibleDataTable as ye,AccessibleTablePortal as fe,ChartError as ge,DEFAULT_SELECTION_OPACITY as be,FlippingTooltip as xe,LinkedCharts as ve,MultiPointTooltip as Ae,SafeRender as we,ScreenReaderSummary as Se,SkipToTableLink as ke,TooltipRoot as Ce,composeLegendConfigs as Re,composeStyleRules as Le,defaultTooltipStyle as _e,filterSparseArray as He,getCrosshairProps as Ie,isMultiTooltip as Pe,isMultiTooltipConfig as Be,makeRuleValueResolver as Fe,makeXYRuleContext as De,normalizeTooltip as Ne,renderEmptyState as Me,renderLoadingState as We,resolveDefaultFill as Te,resolveMobileInteraction as Oe,resolveMultiCapableTooltip as Ee,resolveStyleRules as je,resolveXYFramePropsAxisChrome as Ge,useBrushSelection as ze,useChartLegendAndMargin as Ve,useChartMode as Xe,useChartSelection as $e,useColorScale as Qe,useLegendInteraction as Ye,useSelection as Je,useThemeCategorical as qe,useThemeSequential as Ue,warnMissingField as Ke,wrapStyleWithSelection as Ze}from"./c-ODG6TFSY.min.js";import{DEFAULT_COLOR as et,DEFAULT_COLORS as tt,getColor as ot,getSequentialInterpolator as it,getSize as at,interpolateViridis as rt,resolveCategoricalPalette as nt,resolveExplicitColor as lt}from"./c-CPV4N35K.min.js";import{useSelectionSelector as st,useTheme as ct}from"./c-JUKIWTBJ.min.js";import{getMax as ht,getMinMax as mt}from"./c-QA3HMQJP.min.js";import{resolveCSSColor as dt}from"./c-MB6CV5NC.min.js";import{useMemo as ut,useCallback as pt,forwardRef as yt,useRef as ft}from"react";import{useCallback as gt,useMemo as bt,useRef as xt,useState as vt}from"react";import{jsx as At}from"react/jsx-runtime";q(_),te(V);var wt=yt(function(t,o){let i=ft(null),a=Xe(t.mode,{width:t.width,height:t.height,showGrid:t.showGrid,enableHover:t.enableHover,showLegend:t.showLegend,title:t.title,xLabel:t.xLabel,yLabel:t.yLabel,mobileInteraction:t.mobileInteraction,mobileSemantics:t.mobileSemantics,responsiveRules:t.responsiveRules}),{data:r,margin:n,className:l,xFormat:s,yFormat:c,xAccessor:h="x",yAccessor:m="y",xScaleType:d,yScaleType:u,colorBy:p,colorScheme:y,styleRules:f,sizeBy:g,sizeRange:b=[3,15],symbolBy:x,symbolMap:v,pointRadius:A=5,pointOpacity:w=.8,tooltip:S,marginalGraphics:k,pointIdAccessor:C,annotations:R,regression:L,forecast:_,anomaly:H,xExtent:P,yExtent:D,frameProps:N={},selection:O,linkedHover:E,linkedBrush:j,brush:G,onBrush:z,onObservation:V,onClick:X,hoverHighlight:$,chartId:Q,loading:Y,loadingContent:q,emptyContent:K,legendInteraction:Z,legendPosition:ee,color:te,stroke:oe,strokeWidth:ie,opacity:ae}=t,{width:re,height:ne,enableHover:se,showGrid:ue,showLegend:pe,title:ye,description:fe,summary:be,accessibleTable:xe,xLabel:ve,yLabel:Ae}=a,Se=ut(()=>He(r),[r]),ke=void 0===r,{domain:Ce,trackPushed:Re,reset:Le}=e({accessor:g,data:Se,isPushMode:ke}),_e=pt(e=>{Re([e]),i.current?.push(e)},[Re]),Ie=pt(e=>{Re(e),i.current?.pushMany(e)},[Re]);T(o,{variant:"xy",frameRef:i,overrides:{push:_e,pushMany:Ie,clear:()=>{Le(),i.current?.clear()}}});let Pe=W({data:Se,rawData:r,colorBy:p,colorScheme:y,legendInteraction:Z,legendPosition:ee,frameLegend:N,selection:O,linkedHover:E,fallbackFields:p?["string"==typeof p?p:""]:[],unwrapData:!1,onObservation:V,onClick:X,hoverHighlight:$,mobileInteraction:a.mobileInteraction,mobileSemantics:a.mobileSemantics,chartType:"Scatterplot",chartId:Q,showLegend:pe,userMargin:n,marginDefaults:a.marginDefaults,loading:Y,loadingContent:q,emptyContent:K,width:re,height:ne,hasTitle:!!ye,axisChrome:Ge(N,{showAxes:a.showAxes,xLabel:ve,yLabel:Ae})}),{brushStreamProps:Be}=U({brush:G,onBrush:z,linkedBrush:j,xAccessor:h,yAccessor:m,defaultDimension:"xy"});Ke("Scatterplot",Se,"xAccessor",h),Ke("Scatterplot",Se,"yAccessor",m);let Fe=ut(()=>g?Ce??[0,1]:void 0,[g,Ce]),Ne=ut(()=>g?e=>at(e,g,b,Fe):void 0,[g,b,Fe]),Me=ut(()=>De(h,m),[h,m]),We=B({colorBy:p,colorScale:Pe.colorScale,color:te,pointRadius:A,fillOpacity:w,radiusFn:Ne,stroke:oe,strokeWidth:ie,opacity:ae,styleRules:f,ruleContext:Me,effectiveSelectionHook:Pe.effectiveSelectionHook,resolvedSelection:Pe.resolvedSelection}),Te=ut(()=>me([{label:ve||le(h),accessor:h,role:"x",format:s},{label:Ae||le(m),accessor:m,role:"y",format:c},...p?[{label:le(p),accessor:p,role:"color"}]:[],...g?[{label:le(g),accessor:g,role:"size"}]:[]]),[h,m,ve,Ae,p,g,s,c]),{effectiveData:Oe,statisticalAnnotations:Ee}=I({data:Se,xAccessor:h,yAccessor:m,forecast:_,anomaly:H}),je=ut(()=>{let e=F(L);return e||0!==Ee.length?[...e?[e]:[],...R||[],...Ee]:R},[L,R,Ee]);if(Pe.earlyReturn)return Pe.earlyReturn;let ze=M({componentName:"Scatterplot",data:r,accessors:{xAccessor:h,yAccessor:m}});if(ze)return At(ge,{componentName:"Scatterplot",message:ze,width:re,height:ne});let Ve={chartType:"scatter",...null!=r&&{data:Oe},xAccessor:h,yAccessor:m,xScaleType:d,yScaleType:u,colorAccessor:p||void 0,sizeAccessor:g||void 0,...x&&{symbolAccessor:x},...v&&{symbolMap:v},sizeRange:b,pointStyle:We,colorScheme:y,size:[re,ne],responsiveWidth:t.responsiveWidth,responsiveHeight:t.responsiveHeight,margin:Pe.margin,showAxes:a.showAxes,xLabel:ve,yLabel:Ae,xFormat:s,yFormat:c,enableHover:se,showGrid:ue,...Pe.legendBehaviorProps,...ce({title:ye,description:fe,summary:be,accessibleTable:xe,className:l,animate:t.animate,maxDevicePixelRatio:t.maxDevicePixelRatio,axisExtent:t.axisExtent,autoPlaceAnnotations:t.autoPlaceAnnotations}),...de({tooltip:S,defaultTooltipContent:Te}),...he({linkedHover:E,selection:O,onObservation:V,onClick:X,hoverHighlight:$,hoverRadius:t.hoverRadius,mobileInteraction:Pe.mobileInteraction,customHoverBehavior:Pe.customHoverBehavior,customClickBehavior:Pe.customClickBehavior}),...k&&{marginalGraphics:k},...C&&{pointIdAccessor:C},...je&&je.length>0&&{annotations:je},...P&&{xExtent:P},...D&&{yExtent:D},...Be,...Pe.crosshairProps,...N};return At(we,{componentName:"Scatterplot",width:re,height:ne,children:At(J,{ref:i,...Ve})})});wt.displayName="Scatterplot";import{useMemo as St,forwardRef as kt,useRef as Ct}from"react";import{Fragment as Rt,jsx as Lt}from"react/jsx-runtime";te(V);var _t=kt(function(e,o){let i=Ct(null);T(o,{variant:"xy",frameRef:i});let a=Xe(e.mode,{width:e.width,height:e.height,showGrid:e.showGrid,enableHover:e.enableHover,title:e.title,xLabel:e.xLabel,yLabel:e.yLabel,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,responsiveRules:e.responsiveRules}),{data:r,margin:n,className:l,xFormat:s,yFormat:c,xAccessor:h="x",yAccessor:m="y",orderAccessor:d,orderLabel:u,styleRules:p,pointRadius:y=4,tooltip:f,pointIdAccessor:g,annotations:b,regression:x,forecast:v,anomaly:A,xExtent:w,yExtent:S,frameProps:k={},selection:C,linkedHover:R,onObservation:L,onClick:_,hoverHighlight:H,chartId:P,loading:D,loadingContent:N,emptyContent:O,legendInteraction:E,stroke:j,strokeWidth:G,opacity:z}=e,{width:V,height:X,enableHover:$,showGrid:Q,title:Y,description:q,summary:U,accessibleTable:K,xLabel:Z,yLabel:ee}=a,{safeData:te,orderMap:oe}=St(()=>{let e=r||[],t="function"==typeof h?h:e=>e[h],o="function"==typeof m?m:e=>e[m],i=e;if(d&&e.length>0){let t="function"==typeof d?d:e=>e[d];i=[...e].sort((e,o)=>{let i=t(e),a=t(o);return(i instanceof Date?i.getTime():+i)-(a instanceof Date?a.getTime():+a)})}let a=new WeakMap,n=0;for(let e of i){let i=t(e),a=o(e);null!=i&&null!=a&&isFinite(i)&&isFinite(a)&&n++}let l=0;for(let e of i){let i=t(e),r=o(e);null!=i&&null!=r&&isFinite(i)&&isFinite(r)&&a.set(e,{idx:l++,total:n})}return{safeData:i,orderMap:a}},[r,d,h,m]);Ke("ConnectedScatterplot",te,"xAccessor",h),Ke("ConnectedScatterplot",te,"yAccessor",m);let ie=W({data:te,rawData:r,colorBy:void 0,colorScheme:void 0,legendInteraction:E,selection:C,linkedHover:R,fallbackFields:[],unwrapData:!1,onObservation:L,onClick:_,hoverHighlight:H,mobileInteraction:a.mobileInteraction,mobileSemantics:a.mobileSemantics,chartType:"ConnectedScatterplot",chartId:P,showLegend:void 0,userMargin:n,marginDefaults:a.marginDefaults,loading:D,loadingContent:N,emptyContent:O,width:V,height:X,hasTitle:!!Y,axisChrome:Ge(k,{showAxes:a.showAxes,xLabel:Z,yLabel:ee})}),ae=ie.resolvedSelection?.unselectedOpacity??be,re=St(()=>(e,o)=>{let i=o.filter(e=>"point"===e.type);if(2>i.length)return;let a=ie.effectiveSelectionHook?.isActive,r=ie.effectiveSelectionHook?.predicate,n=100>i.length,l=i.length;e.lineCap="round";for(let o=0;l-1>o;o++){let s=i[o],c=i[o+1],h=t(o,l),m=!a||!r||r(s.datum??s)||r(c.datum??c),d=a?m?1:ae:1;n&&(e.beginPath(),e.moveTo(s.x,s.y),e.lineTo(c.x,c.y),e.strokeStyle="white",e.lineWidth=y+2,e.globalAlpha=.5*d,e.stroke()),e.beginPath(),e.moveTo(s.x,s.y),e.lineTo(c.x,c.y),e.strokeStyle=h,e.lineWidth=y,e.globalAlpha=d,e.stroke()}e.globalAlpha=1},[y,ie.effectiveSelectionHook,ae]),ne=St(()=>[re],[re]),se=St(()=>(e,o,i)=>{let a=e.filter(e=>"point"===e.type);if(2>a.length)return null;let r=a.length,n=100>r,l=[];for(let e=0;r-1>e;e++){let o=a[e],i=a[e+1],s=t(e,r),c=Math.min("number"==typeof o.style?.opacity?o.style.opacity:1,"number"==typeof i.style?.opacity?i.style.opacity:1);n&&l.push(Lt("line",{x1:o.x,y1:o.y,x2:i.x,y2:i.y,stroke:"white",strokeWidth:y+2,strokeLinecap:"round",opacity:.5*c},"halo-"+e)),l.push(Lt("line",{x1:o.x,y1:o.y,x2:i.x,y2:i.y,stroke:s,strokeWidth:y,strokeLinecap:"round",opacity:c},"seg-"+e))}return Lt(Rt,{children:l})},[y]),ue=St(()=>[se],[se]),pe=St(()=>e=>{let o=oe.get(e),i=o?.idx??0,a=o?.total??1;return{fill:a>0?t(i,a):"#6366f1",stroke:"white",strokeWidth:1,r:y,fillOpacity:1}},[y,oe]),ye=St(()=>De(h,m),[h,m]),fe=B({colorScale:void 0,baseStyleExtras:pe,stroke:j,strokeWidth:G,opacity:z,styleRules:p,ruleContext:ye,effectiveSelectionHook:ie.effectiveSelectionHook,resolvedSelection:ie.resolvedSelection}),xe=u||("string"==typeof d?d:"Order"),ve=St(()=>me([{label:Z||le(h),accessor:h,role:"x",format:s},{label:ee||le(m),accessor:m,role:"y",format:c},...d?[{label:xe,accessor:d,role:"group"}]:[]]),[h,m,Z,ee,d,xe,s,c]),Ae=M({componentName:"ConnectedScatterplot",data:r,accessors:{xAccessor:h,yAccessor:m}}),{effectiveData:Se,statisticalAnnotations:ke}=I({data:te,xAccessor:h,yAccessor:m,forecast:v,anomaly:A});if(ie.earlyReturn)return ie.earlyReturn;let Ce=F(x),Re=Ce||ke.length>0?[...Ce?[Ce]:[],...b||[],...ke]:b,Le={chartType:"scatter",...null!=r&&{data:Se},xAccessor:h,yAccessor:m,pointStyle:fe,size:[V,X],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,margin:ie.margin,showAxes:a.showAxes,xLabel:Z,yLabel:ee,xFormat:s,yFormat:c,enableHover:$,showGrid:Q,...ce({title:Y,description:q,summary:U,accessibleTable:K,className:l,animate:e.animate,maxDevicePixelRatio:e.maxDevicePixelRatio,axisExtent:e.axisExtent,autoPlaceAnnotations:e.autoPlaceAnnotations}),...de({tooltip:f,defaultTooltipContent:ve}),...he({linkedHover:R,selection:C,onObservation:L,onClick:_,hoverHighlight:H,hoverRadius:e.hoverRadius,mobileInteraction:ie.mobileInteraction,customHoverBehavior:ie.customHoverBehavior,customClickBehavior:ie.customClickBehavior}),...g&&{pointIdAccessor:g},canvasPreRenderers:ne,svgPreRenderers:ue,...Re&&Re.length>0&&{annotations:Re},...w&&{xExtent:w},...S&&{yExtent:S},...ie.crosshairProps,...k};return Ae?Lt(ge,{componentName:"ConnectedScatterplot",message:Ae,width:V,height:X}):Lt(we,{componentName:"ConnectedScatterplot",width:V,height:X,children:Lt(J,{ref:i,...Le})})});_t.displayName="ConnectedScatterplot";import{forwardRef as Ht,useMemo as It}from"react";import{jsx as Pt}from"react/jsx-runtime";te(Q);var Bt=Ht(function(e,t){let{data:o,layout:i,layoutConfig:a,onLayoutError:r,xExtent:n,yExtent:l,showAxes:s=!1,margin:c,className:h,annotations:m,onObservation:d,onClick:u,selection:p,linkedHover:y,hoverHighlight:f,chartId:g,loading:b,loadingContent:x,emptyContent:v,colorBy:A,colorScheme:w,legend:S,legendInteraction:k,legendPosition:C,frameProps:R={}}=e,{legend:L,..._}=R,H=It(()=>Re(L,S),[L,S]),{frameRef:I,resolved:P,safeData:B,setup:F,earlyReturn:D}=N({imperativeRef:t,imperativeVariant:"xy",chartTypeLabel:"XYCustomChart",unwrapData:!1,data:o,colorBy:A,colorScheme:w,legend:H,legendInteraction:k,legendPosition:C,frameLegend:_,selection:p,linkedHover:y,hoverHighlight:f,onObservation:d,onClick:u,chartId:g,loading:b,loadingContent:x,emptyContent:v,margin:c,width:e.width,height:e.height,showGrid:e.showGrid,enableHover:e.enableHover,showLegend:e.showLegend,title:e.title,description:e.description,summary:e.summary,accessibleTable:e.accessibleTable,mode:e.mode,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,responsiveRules:e.responsiveRules,xLabel:e.xLabel,yLabel:e.yLabel}),M=F.effectiveSelectionHook,W=It(()=>M?.isActive?{isActive:!0,predicate:M.predicate}:null,[M?.isActive,M?.predicate]),T=It(()=>Ee({tooltip:e.tooltip,defaultTooltipContent:e=>Pt(Y,{hover:e})}),[e.tooltip]);if(D)return D;let{width:O,height:E,enableHover:j,showGrid:G,title:z,description:V,summary:X,accessibleTable:$,xLabel:Q,yLabel:q}=P,U={chartType:"custom",...null!=o&&{data:B},customLayout:i,layoutConfig:a,onLayoutError:r,...W&&{layoutSelection:W},xExtent:n,yExtent:l,colorAccessor:A,colorScheme:w,size:[O,E],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,margin:F.margin,showAxes:s,xLabel:Q,yLabel:q,enableHover:j,showGrid:G,...F.legendBehaviorProps,...ce({title:z,description:V,summary:X,accessibleTable:$,className:h,animate:e.animate,maxDevicePixelRatio:e.maxDevicePixelRatio,axisExtent:e.axisExtent,autoPlaceAnnotations:e.autoPlaceAnnotations}),...T,...he({linkedHover:y,selection:p,onObservation:d,onClick:u,hoverRadius:e.hoverRadius,hoverHighlight:f,mobileInteraction:F.mobileInteraction,customHoverBehavior:F.customHoverBehavior,customClickBehavior:F.customClickBehavior}),...m&&m.length>0&&{annotations:m},...F.crosshairProps,..._};return Pt(we,{componentName:"XYCustomChart",width:O,height:E,children:Pt(J,{ref:I,...U})})});Bt.displayName="XYCustomChart";import{forwardRef as Ft,useMemo as Dt}from"react";import{useCallback as Nt,useMemo as Mt}from"react";import{jsx as Wt,jsxs as Tt}from"react/jsx-runtime";import{jsx as Ot}from"react/jsx-runtime";import{jsx as Et}from"react/jsx-runtime";var jt=Ft(function(e,t){let i=qe(),r=ct(),{data:n,xAccessor:l,yAccessor:s,lineBy:c,rankDirection:h="descending",ribbon:m=!1,curve:u="smooth",ribbonSizeRange:p=[4,28],samplesPerSegment:y=12,lineWidth:f=3,highlightTop:g,neutralColor:b,styleRules:x,labelStyle:v,colorScheme:A,ribbonOpacity:w=.82,lineOpacity:S=.9,showPoints:k=!1,pointRadius:C=3,showLabels:R=!0,labelPriorityAccessor:L,maxLabels:_,showAxes:H=!0,showGrid:I=!0,showLegend:P=!1,enableHover:B=!0,hoverHighlight:F=!0,tooltip:D,frameProps:N={},xFormat:M,yFormat:W,onClick:T}=e,O=Dt(()=>a(n,{xAccessor:l,yAccessor:s,lineBy:c,rankDirection:h,highlightTop:g}),[n,l,s,c,h,g]),{axes:E,areaStyle:j,pointStyle:G,...z}=N,V=Dt(()=>function(e){let{seriesOrder:t,overallOrder:o,highlightTop:i,color:a,colorScheme:r,neutralColor:n,themeCategorical:l,themeNeutral:s}=e;if(null==i&&null==a)return r;let c=new Set(o.slice(0,null==i?o.length:Math.max(0,Math.floor(i)))),h=new Map,m={};for(let e of t)Object.defineProperty(m,e,{configurable:!0,enumerable:!0,writable:!0,value:a??(c.has(e)?Te(void 0,l,r,e,h):n??s??"#b8bec8")});return m}({seriesOrder:O.seriesOrder,overallOrder:O.overallOrder,highlightTop:g,color:e.color,colorScheme:A,neutralColor:b,themeCategorical:i,themeNeutral:r.colors.textSecondary}),[O.seriesOrder,O.overallOrder,g,e.color,A,b,i,r.colors.textSecondary]),X=Dt(()=>({ribbon:m,curve:u,samplesPerSegment:y,ribbonSizeRange:p,valueExtent:O.valueExtent,seriesOrder:O.seriesOrder,lineWidth:f,ribbonOpacity:w,lineOpacity:S,neutralColor:b,color:e.color,colorMap:V&&"object"==typeof V&&!Array.isArray(V)?V:void 0,stroke:e.stroke,strokeWidth:e.strokeWidth,opacity:e.opacity,styleRules:x,areaStyle:j,pointStyle:G,labelStyle:v,showPoints:k,pointRadius:C,showLabels:R,labelPriorityAccessor:L,maxLabels:_}),[m,u,y,p,O.valueExtent,O.seriesOrder,f,w,S,b,V,e.color,e.stroke,e.strokeWidth,e.opacity,x,j,G,v,k,C,R,L,_]),{tooltip:$,formatX:Q}=function({tooltip:e,xValues:t,xFormat:o,yFormat:i}){let a=Nt((e,i)=>{if(0===t.length)return"";let a=t[Math.max(0,Math.min(t.length-1,Math.round(Number(e))))];return o?o(a,i):(a instanceof Date?a.toLocaleDateString():a)+""},[o,t]),r=Nt(e=>i?i(e):e.toLocaleString(),[i]),n=Pe(e),l=Mt(()=>n?void 0:Ne(e),[n,e]),s=Nt(t=>{let o=t?.data??t;return o&&!1!==e?l?l({...t,data:o.__bumpRaw,__semioticHoverData:!0}):Tt(Ce,{children:[Wt("div",{style:{fontWeight:700},children:o.__bumpSeries}),Tt("div",{children:[a(o.x)," · Rank ",o.__bumpRank]}),Tt("div",{children:["Value: ",r(o.__bumpValue)]})]}):null},[r,a,l,e]),c=Nt(t=>{let o=(Array.isArray(t.allSeries)?t.allSeries:[]).map(e=>{let t=e.datum;return{...e,value:t?.__bumpValue??e.value,rank:t?.__bumpRank,datum:t?.__bumpRaw??e.datum}}),i=t?.data??t,n={...i?.__bumpRaw??{},xValue:i?.__bumpXValue??t.xValue,allSeries:o};if(Be(e)&&"function"==typeof e.content)return e.content(n);let l=t.xValue??i?.x;return Tt(Ce,{children:[null!=l&&Wt("div",{style:{fontWeight:700,marginBottom:4},children:a(l)}),o.map((e,t)=>Tt("div",{style:{display:"flex",alignItems:"center",gap:6},children:[Wt("span",{style:{width:8,height:8,borderRadius:"50%",background:e.color,flexShrink:0}}),Wt("span",{style:{flex:1},children:e.group}),Tt("span",{children:[null!=e.rank?`Rank ${e.rank} · `:"",r(e.value)]})]},`${e.group}-${t}`))]})},[r,a,e]);return{tooltip:Mt(()=>!1!==e&&(n?{mode:"multi",content:c}:s),[n,c,s,e]),formatX:a}}({tooltip:D,xValues:O.xValues,xFormat:M,yFormat:W}),Y=Dt(()=>{if(T)return(e,t)=>{T(e.__bumpRaw??e,t)}},[T]),J=Math.max(1,O.seriesOrder.length),q=O.xValues.map((e,t)=>t),U=Array.from({length:J},(e,t)=>t+1),K=E??[{orient:"left",tickValues:U,tickFormat:e=>e+"",label:e.yLabel??"Rank",baseline:!1},{orient:"bottom",tickValues:q,tickFormat:Q,label:e.xLabel,tickAnchor:"edges"}],Z=Dt(()=>function(e,t){if(!e?.length)return;let i=new Map(t.map((e,t)=>[o(e),t]));return e.map(e=>{let t={...e},a=a=>{if(!(a in e))return;let r=i.get(o(e[a]));void 0!==r&&(t[a]=r)};return a("x"),a("x0"),a("x1"),"string"==typeof e.type&&("x-threshold"===e.type||"x"===e.type)&&a("value"),t})}(e.annotations,O.xValues),[e.annotations,O.xValues]);return Et(Bt,{ref:t,data:O.data,layout:d,layoutConfig:X,xExtent:[0,Math.max(1,O.xValues.length-1)],yExtent:[J+.5,.5],showAxes:H,showGrid:I,showLegend:P,enableHover:B,hoverHighlight:F,colorBy:"__bumpSeries",colorScheme:V,tooltip:$,onClick:Y,hoverRadius:e.hoverRadius,width:e.width,height:e.height,responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,maxDevicePixelRatio:e.maxDevicePixelRatio,responsiveRules:e.responsiveRules,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,mode:e.mode,margin:e.margin??{top:20,right:R?110:24,bottom:48,left:48},className:e.className,title:e.title,description:e.description,summary:e.summary,accessibleTable:e.accessibleTable,selection:e.selection,linkedHover:e.linkedHover,legend:e.legend,legendInteraction:e.legendInteraction,legendPosition:e.legendPosition,onObservation:e.onObservation,chartId:e.chartId,loading:e.loading,loadingContent:e.loadingContent,emptyContent:e.emptyContent,animate:e.animate,autoPlaceAnnotations:e.autoPlaceAnnotations,annotations:Z,xLabel:e.xLabel,yLabel:e.yLabel??"Rank",frameProps:{axes:K,axisExtent:"exact",...z}})});jt.displayName="BumpChart";import{useMemo as Gt,forwardRef as zt,useRef as Vt}from"react";import{useMemo as Xt}from"react";import{jsx as $t}from"react/jsx-runtime";te(K);var Qt=zt(function(e,t){let o=Vt(null);T(t,{variant:"xy",frameRef:o});let i=Xe(e.mode,{width:e.width,height:e.height,showGrid:e.showGrid,enableHover:e.enableHover,showLegend:e.showLegend,title:e.title,xLabel:e.xLabel,yLabel:e.yLabel,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,responsiveRules:e.responsiveRules}),{data:a,margin:r,className:n,xFormat:l,yFormat:s,xAccessor:c="x",yAccessor:h="y",areaBy:m,y0Accessor:d,gradientFill:p=!1,semanticGradient:y,semanticLine:f=!0,lineDataAccessor:g="coordinates",colorBy:b,colorScheme:x,styleRules:v,curve:A="monotoneX",areaOpacity:w=.7,lineGradient:S,showLine:k=!0,lineWidth:C=2,showPoints:R=!1,pointRadius:L=3,tooltip:_,annotations:H,forecast:P,anomaly:B,band:F,xExtent:D,yExtent:N,frameProps:O={},selection:E,linkedHover:j,onObservation:G,onClick:z,hoverHighlight:V,chartId:X,loading:$,loadingContent:Q,emptyContent:Y,legendInteraction:q,legendPosition:U,color:K,stroke:Z,strokeWidth:ee,opacity:te}=e,{width:le,height:se,enableHover:me,showGrid:de,showLegend:ue,title:pe,description:ye,summary:fe,accessibleTable:be,xLabel:xe,yLabel:ve}=i,Se=Gt(()=>He(a),[a]),ke=b||m,Ce=Gt(()=>ae(y),[y]),Re=Gt(()=>Ce?.stops.length?re(Ce):ie(p),[Ce,p]),Le=Gt(()=>oe(S),[S]),_e=Gt(()=>f?ne(Ce):void 0,[Ce,f]);Ke("AreaChart",Se,"xAccessor",c),Ke("AreaChart",Se,"yAccessor",h);let Ie=W({data:Se,rawData:a,colorBy:ke,colorScheme:x,legendInteraction:q,legendPosition:U,frameLegend:O,selection:E,linkedHover:j,fallbackFields:ke?["string"==typeof ke?ke:""]:[],unwrapData:!1,onObservation:G,onClick:z,hoverHighlight:V,mobileInteraction:i.mobileInteraction,mobileSemantics:i.mobileSemantics,chartType:"AreaChart",chartId:X,showLegend:ue,userMargin:r,marginDefaults:i.marginDefaults,loading:$,loadingContent:Q,emptyContent:Y,width:le,height:se,hasTitle:!!pe,axisChrome:Ge(O,{showAxes:i.showAxes,xLabel:xe,yLabel:ve})}),{effectiveData:Pe,statisticalAnnotations:Be}=I({data:Se,xAccessor:c,yAccessor:h,forecast:P,anomaly:B,groupBy:m}),Fe=Gt(()=>De(c,h),[c,h]),{flattenedData:Ne,lineStyle:Me,pointStyle:We,defaultTooltipContent:Te}=u({safeData:Pe,data:a,areaBy:m,lineDataAccessor:g,colorBy:ke,colorScale:Ie.colorScale,color:K,stroke:Z,strokeWidth:ee,opacity:te,effectiveSelectionHook:Ie.effectiveSelectionHook,resolvedSelection:Ie.resolvedSelection,areaOpacity:w,showLine:k,lineWidth:C,showPoints:R,pointRadius:L,xAccessor:c,yAccessor:h,xLabel:xe,yLabel:ve,xFormat:l,yFormat:s,groupField:m||b,band:F,styleRules:v,ruleContext:Fe}),Oe=M({componentName:"AreaChart",data:a,accessors:{xAccessor:c,yAccessor:h}}),je={chartType:"area",...null!=a&&{data:Ne},xAccessor:c,yAccessor:h,groupAccessor:m||void 0,...d&&{y0Accessor:d},...F&&{band:F},...Re&&{gradientFill:Re},...Le&&{lineGradient:Le},..._e&&{semanticLineStops:_e},curve:A,lineStyle:Me,...R&&We&&{pointStyle:We},size:[le,se],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,margin:Ie.margin,showAxes:i.showAxes,xLabel:xe,yLabel:ve,xFormat:l,yFormat:s,enableHover:me,...e.pointIdAccessor&&{pointIdAccessor:e.pointIdAccessor},showGrid:de,...Ie.legendBehaviorProps,...ce({title:pe,description:ye,summary:fe,accessibleTable:be,className:n,animate:e.animate,maxDevicePixelRatio:e.maxDevicePixelRatio,axisExtent:e.axisExtent,autoPlaceAnnotations:e.autoPlaceAnnotations}),...Ee({tooltip:_,defaultTooltipContent:Te,multiDefaultContent:Ae()}),...he({linkedHover:j,selection:E,onObservation:G,onClick:z,hoverHighlight:V,hoverRadius:e.hoverRadius,mobileInteraction:Ie.mobileInteraction,customHoverBehavior:Ie.customHoverBehavior,customClickBehavior:Ie.customClickBehavior}),...(H&&H.length>0||Be.length>0)&&{annotations:[...H||[],...Be]},...D&&{xExtent:D},...N&&{yExtent:N},...Ie.crosshairProps,...O};return Ie.earlyReturn?Ie.earlyReturn:Oe?$t(ge,{componentName:"AreaChart",message:Oe,width:le,height:se}):$t(we,{componentName:"AreaChart",width:le,height:se,children:$t(J,{ref:o,...je})})});Qt.displayName="AreaChart";import{useMemo as Yt,forwardRef as Jt,useRef as qt,useState as Ut,useImperativeHandle as Kt,useCallback as Zt}from"react";import{jsx as eo,jsxs as to}from"react/jsx-runtime";te(ee);var oo=Jt(function(e,t){let o=qt(null),i=Xe(e.mode,{width:e.width,height:e.height,showGrid:e.showGrid,enableHover:e.enableHover,showLegend:e.showLegend,title:e.title,xLabel:e.xLabel,yLabel:e.yLabel,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,responsiveRules:e.responsiveRules}),{data:a,margin:r,className:n,xFormat:l,yFormat:s,xAccessor:c="x",seriesAAccessor:h="a",seriesBAccessor:m="b",seriesALabel:d="A",seriesBLabel:u="B",seriesAColor:g="var(--semiotic-danger, #dc2626)",seriesBColor:b="var(--semiotic-info, #2563eb)",showLines:x=!0,lineWidth:v=1.5,showPoints:A=!1,pointRadius:w=3,curve:S="linear",areaOpacity:k=.6,gradientFill:C,styleRules:R,tooltip:L,annotations:_,xExtent:H,yExtent:I,frameProps:P={},selection:B,linkedHover:F,onObservation:D,onClick:N,hoverHighlight:M,chartId:T,loading:O,loadingContent:E,emptyContent:j,legendInteraction:G,legendPosition:z,pointIdAccessor:V,windowSize:X}=e,{width:$,height:Q,enableHover:Y,showGrid:q,showLegend:U,title:K,description:Z,summary:ee,accessibleTable:te,xLabel:oe,yLabel:ae}=i,re=Yt(()=>"function"==typeof c?e=>f(c(e)):e=>f(e[c]),[c]),ne=Yt(()=>"function"==typeof h?e=>f(h(e)):e=>f(e[h]),[h]),le=Yt(()=>"function"==typeof m?e=>f(m(e)):e=>f(e[m]),[m]),[se,me]=Ut([]),de=qt([]),ue=null==a,pe=Yt(()=>He(ue?se:a),[ue,se,a]),ye=Yt(()=>function(e,t,o,i){if(!e.length)return[];let a=e.filter(e=>Number.isFinite(t(e))).sort((e,o)=>t(e)-t(o)),r=[],n=0,l=null,s=null,c=[],h=(e,t)=>e>t?"A":t>e?"B":null,m=e=>`seg-${n}-${e}`,d=e=>r.push(e),u=(e,t)=>{d({__x:e.x,__y:e.y,__y0:e.y,__diffSegment:m(t),__diffWinner:t,__valA:e.y,__valB:e.y,__sourceDatum:e.datum})};for(let e=0;a.length>e;e++){let r=a[e],p=t(r),y=o(r),f=i(r);if(!Number.isFinite(p)||!Number.isFinite(y)||!Number.isFinite(f))continue;let g=h(y,f);if(null!==g){if(null==l){l=g;for(let e of c)u(e,l);c=[],d({__x:p,__y:f>y?f:y,__y0:f>y?y:f,__diffSegment:m(l),__diffWinner:l,__valA:y,__valB:f,__sourceDatum:r}),s={x:p,a:y,b:f,w:g};continue}if(s&&s.w!==g){let e,t;if(c.length>0)e=c[0].x,t=c[0].y;else{let o=y-s.a-(f-s.b);if(0!==o){let i=Math.max(0,Math.min(1,(s.b-s.a)/o));e=s.x+i*(p-s.x),t=s.a+i*(y-s.a)}else e=s.x,t=s.a}d({__x:e,__y:t,__y0:t,__diffSegment:m(l),__diffWinner:l,__valA:t,__valB:t}),n++,l=g,d({__x:e,__y:t,__y0:t,__diffSegment:m(l),__diffWinner:l,__valA:t,__valB:t});for(let e=1;c.length>e;e++)u(c[e],l)}else for(let e of c)u(e,l);c=[],d({__x:p,__y:f>y?f:y,__y0:f>y?y:f,__diffSegment:m(l),__diffWinner:l,__valA:y,__valB:f,__sourceDatum:r}),s={x:p,a:y,b:f,w:g}}else c.push({x:p,y:y,datum:r})}for(let e of c)u(e,l??"A");return r}(pe,re,ne,le),[pe,re,ne,le]),fe=Yt(()=>x?function(e,t,o,i){if(!e.length)return[];let a=e.filter(e=>Number.isFinite(t(e))).sort((e,o)=>t(e)-t(o)),r=[];for(let e of a){let a=t(e),n=o(e),l=i(e);Number.isFinite(n)&&r.push({__x:a,__y:n,__diffSegment:"line-A",__diffWinner:"A",__sourceDatum:e}),Number.isFinite(l)&&r.push({__x:a,__y:l,__diffSegment:"line-B",__diffWinner:"B",__sourceDatum:e})}return r}(pe,re,ne,le):[],[x,pe,re,ne,le]),ge=Yt(()=>[...ye,...fe],[ye,fe]),be=Yt(()=>{let e=new Set;for(let t of ye)e.add(t.__diffSegment);return Array.from(e)},[ye]);Kt(t,()=>{let e=e=>{let t=X&&e.length>X?e.slice(e.length-X):e;de.current=t,me(t)},t=V?"function"==typeof V?V:e=>e[V]:null;return{push:t=>e([...de.current,t]),pushMany:t=>e([...de.current,...t]),remove:o=>{if(!t)return[];let i=Array.isArray(o)?o:[o],a=[],r=[];for(let e of de.current)i.includes(t(e))?a.push(e):r.push(e);return e(r),a},update:(o,i)=>{if(!t)return[];let a=Array.isArray(o)?o:[o],r=[],n=de.current.map(e=>{if(a.includes(t(e))){let t=i(e);return r.push(t),t}return e});return e(n),r},clear:()=>e([]),getData:()=>ue?de.current:pe,getScales:()=>o.current?.getScales()??null}},[ue,pe,V,X]);let xe=Yt(()=>!1===U?void 0:{legendGroups:[{label:"",type:"fill",styleFn:e=>({fill:e.color||"currentColor"}),items:[{label:d,color:g},{label:u,color:b}]}]},[U,d,u,g,b]),ve=Object.hasOwn(P,"legend")?P:{...P,legend:xe},Ae=W({data:pe,rawData:a,colorBy:"__diffWinner",colorScheme:[g,b],legendInteraction:G,legendPosition:z,frameLegend:ve,selection:B,linkedHover:F,fallbackFields:["__diffWinner"],unwrapData:!1,onObservation:D,onClick:N,hoverHighlight:M,mobileInteraction:i.mobileInteraction,mobileSemantics:i.mobileSemantics,chartType:"DifferenceChart",chartId:T,showLegend:U,userMargin:r,marginDefaults:i.marginDefaults,loading:O,loadingContent:E,emptyContent:j,width:$,height:Q,hasTitle:!!K,axisChrome:Ge(P,{showAxes:i.showAxes,xLabel:oe,yLabel:ae})}),Se=Yt(()=>function(e){let{seriesAColor:t,seriesBColor:o,areaOpacity:i,styleRules:a}=e;return y(e=>({fill:"A"===p(e)?t:o,stroke:"none",fillOpacity:i}),a)}({seriesAColor:g,seriesBColor:b,areaOpacity:k,styleRules:R}),[g,b,k,R]),ke=Yt(()=>function(e){let{seriesAColor:t,seriesBColor:o,lineWidth:i,styleRules:a}=e;return y(e=>({stroke:"A"===p(e)?t:o,strokeWidth:i,fill:"none"}),a)}({seriesAColor:g,seriesBColor:b,lineWidth:v,styleRules:R}),[g,b,v,R]),Ce=Yt(()=>function(e){let{seriesAColor:t,seriesBColor:o,pointRadius:i,styleRules:a}=e;return y(e=>({fill:"A"===p(e)?t:o,r:i}),a)}({seriesAColor:g,seriesBColor:b,pointRadius:w,styleRules:R}),[g,b,w,R]),[Re,Le,Ie]=Yt(()=>[Se,ke,Ce].map(e=>Ze(e,Ae.effectiveSelectionHook,Ae.resolvedSelection)),[Se,ke,Ce,Ae.effectiveSelectionHook,Ae.resolvedSelection]),Pe=Zt(e=>{let t=e.data,o=e.allSeries,i=e.xValue??t?.__x,a=t?.__valA,r=t?.__valB;if(o&&o.length>0){let e=o.find(e=>"line-A"===e.group),t=o.find(e=>"line-B"===e.group);null!=e?.value&&Number.isFinite(e.value)&&(a=e.value),null!=t?.value&&Number.isFinite(t.value)&&(r=t.value)}if(null!=i&&(null==a||null==r)){let e=pe.find(e=>re(e)===i);e&&(null==a&&(a=ne(e)),null==r&&(r=le(e)))}let n=e=>null!=e&&Number.isFinite(e)?""+Math.round(100*e)/100:"—",s=l&&null!=i?l(i):null!=i?i+"":"";return to("div",{className:"semiotic-tooltip",style:_e,children:[s&&eo("div",{style:{fontWeight:600,marginBottom:4},children:s}),to("div",{style:{display:"flex",alignItems:"center",gap:6},children:[eo("span",{style:{width:10,height:10,background:g,display:"inline-block",borderRadius:2}}),to("span",{children:[d,": ",n(a)]})]}),to("div",{style:{display:"flex",alignItems:"center",gap:6},children:[eo("span",{style:{width:10,height:10,background:b,display:"inline-block",borderRadius:2}}),to("span",{children:[u,": ",n(r)]})]}),null!=a&&null!=r&&Number.isFinite(a)&&Number.isFinite(r)&&to("div",{style:{marginTop:4,opacity:.7},children:["Δ = ",n(a-r)]})]})},[pe,re,ne,le,l,g,b,d,u]),{tooltipContent:Be,tooltipMode:Fe}=Yt(()=>Ee({tooltip:L,defaultTooltipContent:Pe,multiDefaultContent:Pe}),[L,Pe]),De=Yt(()=>ie(C,{stops:[{offset:0,opacity:.85},{offset:1,opacity:.15}]}),[C]);if(Ae.earlyReturn)return Ae.earlyReturn;let Ne={chartType:"mixed",data:ge,xAccessor:"__x",yAccessor:"__y",y0Accessor:"__y0",groupAccessor:"__diffSegment",areaGroups:be,curve:S,areaStyle:Re,lineStyle:Le,...A&&{pointStyle:Ie},size:[$,Q],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,margin:Ae.margin,showAxes:i.showAxes,xLabel:oe,yLabel:ae,xFormat:l,yFormat:s,enableHover:Y,showGrid:q,...De&&{gradientFill:De},...Ae.legendBehaviorProps,...ce({title:K,description:Z,summary:ee,accessibleTable:te,className:n,animate:e.animate,maxDevicePixelRatio:e.maxDevicePixelRatio,axisExtent:e.axisExtent,autoPlaceAnnotations:e.autoPlaceAnnotations}),tooltipContent:Be,..."multi"===Fe&&{tooltipMode:"multi"},...he({linkedHover:F,selection:B,onObservation:D,onClick:N,hoverHighlight:M,hoverRadius:e.hoverRadius,mobileInteraction:Ae.mobileInteraction,customHoverBehavior:Ae.customHoverBehavior,customClickBehavior:Ae.customClickBehavior}),..._&&_.length>0&&{annotations:_},...H&&{xExtent:H},...I&&{yExtent:I},...Ae.crosshairProps,...P};return eo(we,{componentName:"DifferenceChart",width:$,height:Q,children:eo(J,{ref:o,...Ne})})});"function"==typeof oo&&(oo.displayName="DifferenceChart");import{useMemo as io,forwardRef as ao,useRef as ro}from"react";import{jsx as no}from"react/jsx-runtime";te(X);var lo=ao(function(e,t){let o=ro(null),i=Xe(e.mode,{width:e.width,height:e.height,showGrid:e.showGrid,enableHover:e.enableHover,showLegend:e.showLegend,title:e.title,xLabel:e.xLabel,yLabel:e.yLabel,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,responsiveRules:e.responsiveRules}),{data:a,margin:r,className:n,xFormat:l,yFormat:s,xAccessor:c="x",yAccessor:h="y",areaBy:m,lineDataAccessor:d="coordinates",colorBy:p,colorScheme:y,styleRules:f,curve:g="monotoneX",areaOpacity:b=.7,showLine:x=!0,lineWidth:v=2,showPoints:A=!1,pointRadius:w=3,normalize:S=!1,baseline:k="zero",stackOrder:C,tooltip:R,annotations:L,xExtent:_,yExtent:H,frameProps:I={},selection:P,linkedHover:B,onObservation:F,onClick:D,hoverHighlight:N,chartId:O,loading:E,loadingContent:j,emptyContent:G,legendInteraction:z,legendPosition:V,color:X,stroke:$,strokeWidth:Q,opacity:Y}=e,{width:q,height:U,enableHover:K,showGrid:Z,showLegend:ee,title:te,description:oe,summary:ie,accessibleTable:ae,xLabel:re,yLabel:ne}=i,le=io(()=>He(a),[a]),se=p||m;T(t,{variant:"xy",frameRef:o});let me=W({data:le,rawData:a,colorBy:se,colorScheme:y,legendInteraction:z,legendPosition:V,frameLegend:I,selection:P,linkedHover:B,fallbackFields:se?["string"==typeof se?se:""]:[],unwrapData:!1,onObservation:F,onClick:D,hoverHighlight:N,mobileInteraction:i.mobileInteraction,mobileSemantics:i.mobileSemantics,chartType:"StackedAreaChart",chartId:O,showLegend:ee,userMargin:r,marginDefaults:i.marginDefaults,loading:E,loadingContent:j,emptyContent:G,width:q,height:U,hasTitle:!!te,axisChrome:Ge(I,{showAxes:i.showAxes,xLabel:re,yLabel:ne})}),de=io(()=>De(c,h),[c,h]),{flattenedData:ue,lineStyle:pe,pointStyle:ye,defaultTooltipContent:fe}=u({safeData:le,data:a,areaBy:m,lineDataAccessor:d,colorBy:se,colorScale:me.colorScale,color:X,stroke:$,strokeWidth:Q,opacity:Y,effectiveSelectionHook:me.effectiveSelectionHook,resolvedSelection:me.resolvedSelection,areaOpacity:b,showLine:x,lineWidth:v,showPoints:A,pointRadius:w,xAccessor:c,yAccessor:h,xLabel:re,yLabel:ne,xFormat:l,yFormat:s,groupField:m||p,styleRules:f,ruleContext:de}),be=M({componentName:"StackedAreaChart",data:a,accessors:{xAccessor:c,yAccessor:h}}),xe={chartType:"stackedarea",...null!=a&&{data:ue},xAccessor:c,yAccessor:h,groupAccessor:m||void 0,curve:g,normalize:S,baseline:S?"zero":k,stackOrder:C,lineStyle:pe,...A&&ye&&{pointStyle:ye},size:[q,U],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,margin:me.margin,showAxes:i.showAxes,xLabel:re,yLabel:ne,xFormat:l,yFormat:s,enableHover:K,...e.pointIdAccessor&&{pointIdAccessor:e.pointIdAccessor},showGrid:Z,...me.legendBehaviorProps,...ce({title:te,description:oe,summary:ie,accessibleTable:ae,className:n,animate:e.animate,maxDevicePixelRatio:e.maxDevicePixelRatio,axisExtent:e.axisExtent,autoPlaceAnnotations:e.autoPlaceAnnotations}),...Ee({tooltip:R,defaultTooltipContent:fe,multiDefaultContent:Ae()}),...he({linkedHover:B,selection:P,onObservation:F,onClick:D,hoverHighlight:N,hoverRadius:e.hoverRadius,mobileInteraction:me.mobileInteraction,customHoverBehavior:me.customHoverBehavior,customClickBehavior:me.customClickBehavior}),...L&&L.length>0&&{annotations:L},..._&&{xExtent:_},...H&&{yExtent:H},...me.crosshairProps,...I};return me.earlyReturn?me.earlyReturn:be?no(ge,{componentName:"StackedAreaChart",message:be,width:q,height:U}):no(we,{componentName:"StackedAreaChart",width:q,height:U,children:no(J,{ref:o,...xe})})});lo.displayName="StackedAreaChart";import{useMemo as so,forwardRef as co,useRef as ho}from"react";import{scaleSequential as mo}from"d3-scale";import{jsx as uo}from"react/jsx-runtime";te(z);var po=co(function(e,t){let o=ho(null);T(t,{variant:"xy",frameRef:o});let i=Xe(e.mode,{width:e.width,height:e.height,showGrid:void 0,enableHover:e.enableHover,showLegend:void 0,title:e.title,xLabel:e.xLabel,yLabel:e.yLabel,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,responsiveRules:e.responsiveRules}),{data:a,margin:r,className:n,xAccessor:l="x",yAccessor:s="y",valueAccessor:c="value",xFormat:h,yFormat:m,colorScheme:d,customColorScale:u,showValues:p=!1,valueFormat:y,cellBorderColor:f="#fff",cellBorderWidth:g=1,tooltip:b,annotations:x,heatmapAggregation:v,heatmapXBins:A,heatmapYBins:w,styleRules:S,xExtent:k,yExtent:C,frameProps:R={},selection:L,linkedHover:_,onObservation:H,onClick:I,hoverHighlight:P,chartId:B,loading:F,loadingContent:D,emptyContent:N,showLegend:W,legendPosition:j,legend:G,legendInteraction:z}=e,{width:V,height:X,enableHover:$,title:Q,description:Y,summary:q,accessibleTable:U,xLabel:K,yLabel:Z}=i,ee=We(F,V,X,D),te=ee?null:Me(a,V,X,N),oe=so(()=>He(a),[a]),ie=Ue(),ae=("string"==typeof R.colorScheme?R.colorScheme:void 0)??d??ie??"blues",re="function"==typeof R.heatmapColorScale?R.heatmapColorScale:"custom"===ae&&"function"==typeof u?u:void 0,ne=W??!1,se=j??"right",{activeSelectionHook:ue,customHoverBehavior:pe,customClickBehavior:ye,crosshairSourceId:fe}=$e({selection:L,linkedHover:_,fallbackFields:[],onObservation:H,onClick:I,chartType:"Heatmap",chartId:B,hoverHighlight:P,colorByField:void 0,mobileInteraction:i.mobileInteraction}),be=O(L),xe=Ie(_,fe);Ye(z,void 0,[]);let ve=so(()=>"function"==typeof c?e=>c(e):e=>e[c],[c]),Ae=so(()=>{let e=oe.map(ve);return mt(e)},[oe,ve]),Se=so(()=>{if(re)return re;let e=it(ae);return mo(e).domain(Ae)},[ae,re,Ae]),ke=so(()=>{let e=Number.isFinite(g)?Math.max(0,g):1;return()=>({stroke:f,strokeWidth:e})},[f,g]),Ce=so(()=>E(l,s,c),[l,s,c]),Re=so(()=>Le(ke,S,Ce),[ke,S,Ce]),_e=so(()=>Ze(Re,ue,be),[ue,Re,be]),Pe=so(()=>me([{label:K||le(l),accessor:l,role:"x",format:h},{label:Z||le(s),accessor:s,role:"y",format:m},{label:le(c),accessor:c,role:"value",format:y}]),[l,s,K,Z,c,h,m,y]),Be=M({componentName:"Heatmap",data:a,accessors:{xAccessor:l,yAccessor:s,valueAccessor:c}}),Fe=so(()=>ne?{gradient:{colorFn:e=>Se(e),domain:Ae,label:"string"==typeof c?c:"value",format:y},legendDistance:G?.legendDistance}:void 0,[ne,Se,Ae,c,y,G?.legendDistance]),{margin:De,legend:Ne,legendPosition:Te,legendMarginReserved:Oe}=Ve({data:[],colorBy:void 0,colorScale:void 0,showLegend:!1,legendPosition:se,userMargin:r,defaults:i.marginDefaults,additionalLegend:Fe,chartWidth:V,chartHeight:X,legendLayout:R.legendLayout,frameLegend:R,hasTitle:!!Q,axisChrome:Ge(R,{showAxes:i.showAxes,xLabel:K,yLabel:Z})}),Ee={chartType:"heatmap",...null!=a&&{data:oe},xAccessor:l,yAccessor:s,valueAccessor:c,colorScheme:"custom"!==ae?ae:void 0,...re&&{heatmapColorScale:re},areaStyle:_e,showValues:p,heatmapValueFormat:y,size:[V,X],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,margin:De,showAxes:i.showAxes,xLabel:K,yLabel:Z,xFormat:h,yFormat:m,enableHover:$,...e.pointIdAccessor&&{pointIdAccessor:e.pointIdAccessor},...Ne&&{legend:Ne,legendPosition:Te},...Oe&&{__legendMarginReservedFor:Ne},...ce({title:Q,description:Y,summary:q,accessibleTable:U,className:n,animate:e.animate,maxDevicePixelRatio:e.maxDevicePixelRatio,axisExtent:e.axisExtent,autoPlaceAnnotations:e.autoPlaceAnnotations}),...de({tooltip:b,defaultTooltipContent:Pe}),...he({linkedHover:_,selection:L,onObservation:H,onClick:I,hoverHighlight:P,hoverRadius:e.hoverRadius,mobileInteraction:i.mobileInteraction,customHoverBehavior:pe,customClickBehavior:ye}),...x&&x.length>0&&{annotations:x},...v&&{heatmapAggregation:v},...null!=A&&{heatmapXBins:A},...null!=w&&{heatmapYBins:w},...k&&{xExtent:k},...C&&{yExtent:C},...xe,...R};return ee||te||(Be?uo(ge,{componentName:"Heatmap",message:Be,width:V,height:X}):uo(we,{componentName:"Heatmap",width:V,height:X,children:uo(J,{ref:o,...Ee})}))});po.displayName="Heatmap";import{useMemo as yo,useCallback as fo,forwardRef as go,useRef as bo}from"react";import{jsx as xo}from"react/jsx-runtime";q(_),te(j);var vo=go(function(t,o){let i=bo(null),a=Xe(t.mode,{width:t.width,height:t.height,showGrid:t.showGrid,enableHover:t.enableHover,showLegend:t.showLegend,title:t.title,xLabel:t.xLabel,yLabel:t.yLabel,mobileInteraction:t.mobileInteraction,mobileSemantics:t.mobileSemantics,responsiveRules:t.responsiveRules}),{data:r,margin:n,className:l,xFormat:s,yFormat:c,xAccessor:h="x",yAccessor:m="y",sizeBy:d,sizeRange:u=[5,40],colorBy:p,colorScheme:y,styleRules:f,bubbleOpacity:g=.6,bubbleStrokeWidth:b=1,bubbleStrokeColor:x="white",tooltip:v,marginalGraphics:A,pointIdAccessor:w,annotations:S,regression:k,xExtent:C,yExtent:R,frameProps:L={},selection:_,linkedHover:H,linkedBrush:I,brush:P,onBrush:D,onObservation:N,onClick:O,hoverHighlight:E,chartId:j,loading:G,loadingContent:z,emptyContent:V,legendInteraction:X,legendPosition:$,color:Q,stroke:Y,strokeWidth:q,opacity:K}=t,{width:Z,height:ee,enableHover:te,showGrid:oe,showLegend:ie,title:ae,description:re,summary:ne,accessibleTable:se,xLabel:ue,yLabel:pe}=a,ye=yo(()=>He(r),[r]),fe=void 0===r,be=W({data:ye,rawData:r,colorBy:p,colorScheme:y,legendInteraction:X,legendPosition:$,frameLegend:L,selection:_,linkedHover:H,fallbackFields:p?["string"==typeof p?p:""]:[],unwrapData:!1,onObservation:N,onClick:O,hoverHighlight:E,mobileInteraction:a.mobileInteraction,mobileSemantics:a.mobileSemantics,chartType:"BubbleChart",chartId:j,showLegend:ie,userMargin:n,marginDefaults:a.marginDefaults,loading:G,loadingContent:z,emptyContent:V,width:Z,height:ee,hasTitle:!!ae,axisChrome:Ge(L,{showAxes:a.showAxes,xLabel:ue,yLabel:pe})}),{domain:xe,trackPushed:ve,reset:Ae}=e({accessor:d,data:ye,isPushMode:fe}),Se=fo(e=>{ve([e]),i.current?.push(e)},[ve]),ke=fo(e=>{ve(e),i.current?.pushMany(e)},[ve]);T(o,{variant:"xy",frameRef:i,overrides:{push:Se,pushMany:ke,clear:()=>{Ae(),i.current?.clear()}}});let{brushStreamProps:Ce}=U({brush:P,onBrush:D,linkedBrush:I,xAccessor:h,yAccessor:m,defaultDimension:"xy"}),Re=yo(()=>({stroke:x,strokeWidth:b}),[x,b]),Le=yo(()=>xe??[0,1],[xe]),_e=fo(e=>at(e,d,u,Le),[d,u,Le]),Ie=yo(()=>De(h,m),[h,m]),Pe=B({colorBy:p,colorScale:be.colorScale,color:Q,fillOpacity:g,radiusFn:_e,baseStyleExtras:Re,stroke:Y,strokeWidth:q,opacity:K,styleRules:f,ruleContext:Ie,effectiveSelectionHook:be.effectiveSelectionHook,resolvedSelection:be.resolvedSelection}),Be=yo(()=>me([{label:ue||le(h),accessor:h,role:"x",format:s},{label:pe||le(m),accessor:m,role:"y",format:c},{label:le(d),accessor:d,role:"size"},...p?[{label:le(p),accessor:p,role:"color"}]:[]]),[h,m,ue,pe,d,p,s,c]);if(be.earlyReturn)return be.earlyReturn;let Fe=M({componentName:"BubbleChart",data:r,accessors:{xAccessor:h,yAccessor:m},requiredProps:{sizeBy:d}});if(Fe)return xo(ge,{componentName:"BubbleChart",message:Fe,width:Z,height:ee});let Ne=F(k),Me=Ne?[Ne,...S||[]]:S,We={chartType:"bubble",...null!=r&&{data:ye},xAccessor:h,yAccessor:m,colorAccessor:p||void 0,sizeAccessor:d,sizeRange:u,pointStyle:Pe,colorScheme:y,size:[Z,ee],responsiveWidth:t.responsiveWidth,responsiveHeight:t.responsiveHeight,margin:be.margin,showAxes:a.showAxes,xLabel:ue,yLabel:pe,xFormat:s,yFormat:c,enableHover:te,showGrid:oe,...be.legendBehaviorProps,...ce({title:ae,description:re,summary:ne,accessibleTable:se,className:l,animate:t.animate,maxDevicePixelRatio:t.maxDevicePixelRatio,axisExtent:t.axisExtent,autoPlaceAnnotations:t.autoPlaceAnnotations}),...de({tooltip:v,defaultTooltipContent:Be}),...he({linkedHover:H,selection:_,onObservation:N,onClick:O,hoverHighlight:E,hoverRadius:t.hoverRadius,mobileInteraction:be.mobileInteraction,customHoverBehavior:be.customHoverBehavior,customClickBehavior:be.customClickBehavior}),...A&&{marginalGraphics:A},...w&&{pointIdAccessor:w},...Me&&Me.length>0&&{annotations:Me},...C&&{xExtent:C},...R&&{yExtent:R},...be.crosshairProps,...Ce,...L};return xo(we,{componentName:"BubbleChart",width:Z,height:ee,children:xo(J,{ref:i,...We})})});vo.displayName="BubbleChart";import*as Ao from"react";import{useMemo as wo,useCallback as So,useState as ko}from"react";import{useMemo as Co,useCallback as Ro,useRef as Lo}from"react";import*as _o from"react";import{jsx as Ho}from"react/jsx-runtime";var Io=null,Po=null;import{jsx as Bo,jsxs as Fo}from"react/jsx-runtime";te(V);var Do="__splomIdx",No={top:4,bottom:4,left:4,right:4};import{jsx as Mo,jsxs as Wo}from"react/jsx-runtime";w.displayName="ScatterplotMatrix";import{useState as To,useRef as Oo,useEffect as Eo,useMemo as jo,useCallback as Go}from"react";import*as zo from"react";import{jsx as Vo}from"react/jsx-runtime";var Xo=null,$o=null;import{jsx as Qo,jsxs as Yo}from"react/jsx-runtime";H(),k.displayName="MinimapChart";import{useMemo as Jo,forwardRef as qo,useRef as Uo}from"react";var Ko={topLeft:{label:"Low / High",color:"#E9C46A",opacity:.08},topRight:{label:"High / High",color:"#2A9D8F",opacity:.08},bottomLeft:{label:"Low / Low",color:"#E76F51",opacity:.08},bottomRight:{label:"High / Low",color:"#86BBD8",opacity:.08}};import{Fragment as Zo,jsx as ei,jsxs as ti}from"react/jsx-runtime";te(V);var oi=qo(function(e,t){let o=Uo(null);T(t,{variant:"xy",frameRef:o});let i=Xe(e.mode,{width:e.width,height:e.height,showGrid:e.showGrid,enableHover:e.enableHover,showLegend:e.showLegend,title:e.title,xLabel:e.xLabel,yLabel:e.yLabel,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,responsiveRules:e.responsiveRules}),{data:a,margin:r,className:n,xFormat:l,yFormat:s,xAccessor:c="x",yAccessor:h="y",xCenter:m,yCenter:d,quadrants:u,centerlineStyle:p={},showQuadrantLabels:y=!0,quadrantLabelSize:f=12,colorBy:g,colorScheme:b,styleRules:x,sizeBy:v,sizeRange:A=[3,15],pointRadius:w=5,pointOpacity:S=.8,tooltip:k,pointIdAccessor:R,annotations:L,frameProps:_={},selection:H,linkedHover:I,onObservation:P,onClick:F,hoverHighlight:D,chartId:N,loading:O,loadingContent:E,emptyContent:j,legendInteraction:G,legendPosition:z,color:V,stroke:X,strokeWidth:$,opacity:Q}=e,{width:Y,height:q,enableHover:U,showGrid:K,showLegend:Z,title:ee,description:te,summary:oe,accessibleTable:ie,xLabel:ae,yLabel:re}=i,ne=Jo(()=>({topLeft:C(Ko.topLeft,u?.topLeft),topRight:C(Ko.topRight,u?.topRight),bottomLeft:C(Ko.bottomLeft,u?.bottomLeft),bottomRight:C(Ko.bottomRight,u?.bottomRight)}),[u]),se=Jo(()=>He(a),[a]),ce=W({data:se,rawData:a,colorBy:g,colorScheme:b,legendInteraction:G,legendPosition:z,frameLegend:_,selection:H,linkedHover:I,fallbackFields:"string"==typeof g?[g]:[],unwrapData:!1,onObservation:P,onClick:F,hoverHighlight:D,mobileInteraction:i.mobileInteraction,mobileSemantics:i.mobileSemantics,chartType:"QuadrantChart",chartId:N,showLegend:Z,userMargin:r,marginDefaults:i.marginDefaults,loading:O,loadingContent:E,emptyContent:j,width:Y,height:q,hasTitle:!!ee,axisChrome:Ge(_,{showAxes:i.showAxes,xLabel:ae,yLabel:re})});Ke("QuadrantChart",se,"xAccessor",c),Ke("QuadrantChart",se,"yAccessor",h);let de=Jo(()=>{if(!se.length)return;let e="function"==typeof c?c:e=>+e[c],t="function"==typeof h?h:e=>+e[h],o=1/0,i=-1/0,a=1/0,r=-1/0;for(let n of se){let l=e(n),s=t(n);isFinite(l)&&(o>l&&(o=l),l>i&&(i=l)),isFinite(s)&&(a>s&&(a=s),s>r&&(r=s))}if(null!=m&&isFinite(m)&&(o>m&&(o=m),m>i&&(i=m)),null!=d&&isFinite(d)&&(a>d&&(a=d),d>r&&(r=d)),o===1/0)return;let n=.1*(i-o)||1,l=.1*(r-a)||1;return{xExtent:[o-n,i+n],yExtent:[a-l,r+l]}},[se,c,h,m,d]),ue=Jo(()=>{if(!v||0===se.length)return;let e=se.map(e=>"function"==typeof v?v(e):e[v]).filter(e=>"number"==typeof e&&Number.isFinite(e));return 0!==e.length?mt(e):void 0},[se,v]),pe=Jo(()=>"function"==typeof c?c:e=>+e[c],[c]),ye=Jo(()=>"function"==typeof h?h:e=>+e[h],[h]),fe=Jo(()=>e=>{let t=pe(e),o=ye(e),i=null!=m?t>=m:void 0,a=null!=d?o>=d:void 0;return void 0===a||void 0===i?V||et:a&&i?ne.topRight.color:a&&!i?ne.topLeft.color:!a&&i?ne.bottomRight.color:ne.bottomLeft.color},[pe,ye,m,d,ne,V]),be=Jo(()=>v?e=>at(e,v,A,ue):void 0,[v,A,ue]),xe=Jo(()=>De(c,h),[c,h]),ve=B({colorBy:g,colorScale:ce.colorScale,color:V,pointRadius:w,fillOpacity:S,radiusFn:be,fallbackFill:fe,stroke:X,strokeWidth:$,opacity:Q,styleRules:x,ruleContext:xe,effectiveSelectionHook:ce.effectiveSelectionHook,resolvedSelection:ce.resolvedSelection}),Ae=Jo(()=>{if(!se.length)return;let e=new Set;"string"==typeof c&&e.add(c),"string"==typeof h&&e.add(h),"string"==typeof g&&e.add(g),"string"==typeof v&&e.add(v);let t=se[0];for(let o of Object.keys(t))if(!o.startsWith("_")&&!e.has(o)&&"string"==typeof t[o])return o},[se,c,h,g,v]),Se=Jo(()=>me([...Ae?[{label:Ae,accessor:Ae,role:"title"}]:[],{label:ae||le(c),accessor:c,role:"x",format:l},{label:re||le(h),accessor:h,role:"y",format:s},...g?[{label:le(g),accessor:g,role:"color"}]:[],...v?[{label:le(v),accessor:v,role:"size"}]:[]]),[Ae,c,h,ae,re,g,v,l,s]),ke=M({componentName:"QuadrantChart",data:a,accessors:{xAccessor:c,yAccessor:h}}),Ce=Jo(()=>{let e={stroke:p.stroke||"#999",strokeWidth:p.strokeWidth??1,dashArray:p.strokeDasharray||[]};return[(t,o,i,a)=>{if(!i?.x||!i?.y)return;let r=a.width,n=a.height,l=null!=m?i.x(m):r/2,s=null!=d?i.y(d):n/2;if(null!=m&&!isFinite(l)||null!=d&&!isFinite(s))return;let c=Math.max(0,Math.min(r,l)),h=Math.max(0,Math.min(n,s)),u=[{config:ne.topLeft,x:0,y:0,w:c,h:h},{config:ne.topRight,x:c,y:0,w:r-c,h:h},{config:ne.bottomLeft,x:0,y:h,w:c,h:n-h},{config:ne.bottomRight,x:c,y:h,w:r-c,h:n-h}];for(let e of u)0>=e.w||0>=e.h||(t.fillStyle=e.config.color,t.globalAlpha=e.config.opacity??.08,t.fillRect(e.x,e.y,e.w,e.h));t.globalAlpha=1,t.strokeStyle=e.stroke,t.lineWidth=e.strokeWidth,e.dashArray.length>0&&t.setLineDash(e.dashArray),t.beginPath(),t.moveTo(c,0),t.lineTo(c,n),t.stroke(),t.beginPath(),t.moveTo(0,h),t.lineTo(r,h),t.stroke(),t.setLineDash([])}]},[m,d,ne,p]),Re=Jo(()=>y?[...Ce,(e,t,o,i)=>{if(!o?.x||!o?.y)return;let a=i.width,r=i.height,n=null!=m?o.x(m):a/2,l=null!=d?o.y(d):r/2;if(null!=m&&!isFinite(n)||null!=d&&!isFinite(l))return;let s=dt(e,"var(--semiotic-font-family, sans-serif)")||"sans-serif";e.font=`600 ${f}px ${s}`,e.globalAlpha=.5,e.fillStyle=ne.topLeft.color,e.textAlign="left",e.textBaseline="top",e.fillText(ne.topLeft.label,8,8),e.fillStyle=ne.topRight.color,e.textAlign="right",e.textBaseline="top",e.fillText(ne.topRight.label,a-8,8),e.fillStyle=ne.bottomLeft.color,e.textAlign="left",e.textBaseline="bottom",e.fillText(ne.bottomLeft.label,8,r-8),e.fillStyle=ne.bottomRight.color,e.textAlign="right",e.textBaseline="bottom",e.fillText(ne.bottomRight.label,a-8,r-8),e.globalAlpha=1}]:Ce,[Ce,y,f,ne,m,d]),Le=Jo(()=>{let e=_.canvasPreRenderers||[];return[...Re,...e]},[Re,_.canvasPreRenderers]),_e=Jo(()=>{let e={stroke:p.stroke||"#999",strokeWidth:p.strokeWidth??1,dashArray:p.strokeDasharray?Array.isArray(p.strokeDasharray)?p.strokeDasharray.join(","):p.strokeDasharray:void 0};return[(t,o,i)=>{if(!o?.x||!o?.y)return null;let a=i.width,r=i.height,n=null!=m?o.x(m):a/2,l=null!=d?o.y(d):r/2;if(null!=m&&!isFinite(n)||null!=d&&!isFinite(l))return null;let s=Math.max(0,Math.min(a,n)),c=Math.max(0,Math.min(r,l));return ti(Zo,{children:[[{config:ne.topLeft,x:0,y:0,w:s,h:c},{config:ne.topRight,x:s,y:0,w:a-s,h:c},{config:ne.bottomLeft,x:0,y:c,w:s,h:r-c},{config:ne.bottomRight,x:s,y:c,w:a-s,h:r-c}].map((e,t)=>e.w>0&&e.h>0?ei("rect",{x:e.x,y:e.y,width:e.w,height:e.h,fill:e.config.color,opacity:e.config.opacity??.08},"qf-"+t):null),ei("line",{x1:s,y1:0,x2:s,y2:r,stroke:e.stroke,strokeWidth:e.strokeWidth,strokeDasharray:e.dashArray}),ei("line",{x1:0,y1:c,x2:a,y2:c,stroke:e.stroke,strokeWidth:e.strokeWidth,strokeDasharray:e.dashArray}),y&&ti(Zo,{children:[ei("text",{x:8,y:8+f,fill:ne.topLeft.color,fontWeight:600,fontSize:f,opacity:.5,children:ne.topLeft.label}),ei("text",{x:a-8,y:8+f,fill:ne.topRight.color,fontWeight:600,fontSize:f,opacity:.5,textAnchor:"end",children:ne.topRight.label}),ei("text",{x:8,y:r-8,fill:ne.bottomLeft.color,fontWeight:600,fontSize:f,opacity:.5,children:ne.bottomLeft.label}),ei("text",{x:a-8,y:r-8,fill:ne.bottomRight.color,fontWeight:600,fontSize:f,opacity:.5,textAnchor:"end",children:ne.bottomRight.label})]})]})}]},[m,d,ne,p,y,f]);if(ce.earlyReturn)return ce.earlyReturn;let Ie={chartType:"scatter",...null!=a&&{data:se},xAccessor:c,yAccessor:h,colorAccessor:g||void 0,sizeAccessor:v||void 0,sizeRange:A,pointStyle:ve,colorScheme:b,size:[Y,q],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,...void 0!==e.maxDevicePixelRatio&&{maxDevicePixelRatio:e.maxDevicePixelRatio},margin:ce.margin,showAxes:i.showAxes,xLabel:ae,yLabel:re,xFormat:l,yFormat:s,enableHover:U,showGrid:K,...de&&{xExtent:de.xExtent,yExtent:de.yExtent},...ce.legendBehaviorProps,...ee&&{title:ee},...te&&{description:te},...oe&&{summary:oe},...void 0!==ie&&{accessibleTable:ie},...n&&{className:n},...null!=e.animate&&{animate:e.animate},...void 0!==e.axisExtent&&{axisExtent:e.axisExtent},...void 0!==e.autoPlaceAnnotations&&{autoPlaceAnnotations:e.autoPlaceAnnotations},tooltipContent:!1===k?()=>null:!0===k||void 0===k?Se:Ne(k)||Se,...he({linkedHover:I,selection:H,onObservation:P,onClick:F,hoverHighlight:D,hoverRadius:e.hoverRadius,mobileInteraction:ce.mobileInteraction,customHoverBehavior:ce.customHoverBehavior,customClickBehavior:ce.customClickBehavior}),...R&&{pointIdAccessor:R},...L&&L.length>0&&{annotations:L},canvasPreRenderers:Le,...ce.crosshairProps,..._,...Le.length>0&&{canvasPreRenderers:Le},svgPreRenderers:_e};return ke?ei(ge,{componentName:"QuadrantChart",message:ke,width:Y,height:q}):ei(we,{componentName:"QuadrantChart",width:Y,height:q,children:ei(J,{ref:o,...Ie})})});oi.displayName="QuadrantChart";import*as ii from"react";import{useMemo as ai,useCallback as ri,forwardRef as ni,useRef as li,useImperativeHandle as si}from"react";var ci="__ma_unitized",hi="__ma_series";import{jsx as mi}from"react/jsx-runtime";te(Z);var di=ni(function(e,t){let o=li(null),i=li([]),a=li(e.series);a.current=e.series,si(t,()=>{let e=()=>(a.current??[]).filter(e=>null!=e&&"object"==typeof e);return{push:t=>{if(!o.current)return;let a=e(),r=t;for(let e=0;a.length>e&&2>e;e++){let t=a[e],n=t.extent||i.current[e];if(!n)continue;let l=("function"==typeof t.yAccessor?t.yAccessor:e=>e[t.yAccessor])(r);null==l||!isFinite(l)||o.current.push({...r,[ci]:R(l,n),[hi]:t.label||"Series "+(e+1)})}},pushMany:t=>{if(!o.current)return;let a=e(),r=[];for(let e of t)for(let t=0;a.length>t&&2>t;t++){let o=a[t],n=o.extent||i.current[t];if(!n)continue;let l=("function"==typeof o.yAccessor?o.yAccessor:e=>e[o.yAccessor])(e);null==l||!isFinite(l)||r.push({...e,[ci]:R(l,n),[hi]:o.label||"Series "+(t+1)})}o.current.pushMany(r)},remove:e=>o.current?.remove(e)??[],update:(e,t)=>o.current?.update(e,t)??[],clear:()=>o.current?.clear(),getData:()=>o.current?.getData()??[],getScales:()=>o.current?.getScales()??null}},[]);let r=Xe(e.mode,{width:e.width,height:e.height,showGrid:e.showGrid,enableHover:e.enableHover,showLegend:e.showLegend,title:e.title,xLabel:e.xLabel,accessibleTable:e.accessibleTable,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,responsiveRules:e.responsiveRules},{width:800,height:400}),{data:n,margin:l,className:s,xFormat:c,xAccessor:h="x",series:m,colorScheme:d,curve:u="monotoneX",lineWidth:p=2,styleRules:y,tooltip:f,annotations:g,frameProps:b={},selection:x,linkedHover:v,onObservation:A,onClick:w,hoverHighlight:S,chartId:k,loading:C,loadingContent:_,emptyContent:H,legendInteraction:I,legendPosition:B,stroke:F,strokeWidth:D,opacity:N}=e,{width:T,height:O,enableHover:E,showGrid:j,showLegend:G=!0,title:z,description:V,summary:X,accessibleTable:$,xLabel:Q}=r,Y=ai(()=>He(n),[n]),q=ai(()=>He(m),[m]),U=q,K=2===q.length,Z=ai(()=>K?{...b.legendLayout,sideGutter:b.legendLayout?.sideGutter??70}:b.legendLayout,[b.legendLayout,K]);"u">typeof process&&"production"!==process.env?.NODE_ENV&&!K&&console.warn(`[MultiAxisLineChart] Expected exactly 2 series for dual-axis mode, got ${q.length}. Rendering as a standard multi-line chart.`);let ee=We(C,T,O,_),te=ee?null:Me(n,T,O,H),oe=qe(),ie=ai(()=>function(e,t,o){let i=nt(t,o,tt),a=t&&"object"==typeof t&&!Array.isArray(t)?t:null;return e.map((e,t)=>{if("string"==typeof e.color&&e.color.length>0)return e.color;let o=e.label||"Series "+(t+1),r=a?.[o];return"string"==typeof r&&r.length>0?r:i[t%i.length]})}(U,d,oe),[U,d,oe]),ae=ai(()=>q.map((e,t)=>e.label||"Series "+(t+1)),[q]),{unitizedData:re,extents:ne}=ai(()=>{if(0===Y.length){let e=q.map(e=>e.extent||null).filter(Boolean);return e.length===q.length&&(i.current=e),{unitizedData:[],extents:e.length===q.length?e:[]}}let e=q.map(e=>e.extent||function(e,t){let o=1/0,i=-1/0,a="function"==typeof t?t:e=>e[t];for(let t of e){let e=a(t);null!=e&&isFinite(e)&&(o>e&&(o=e),e>i&&(i=e))}if(!isFinite(o)||!isFinite(i))return[0,1];if(o===i){let e=0===o?1:.1*Math.abs(o);return[o-e,i+e]}return[o,i]}(Y,e.yAccessor));if(i.current=e,!K){let t=[];for(let e of Y)for(let o=0;q.length>o;o++){let i=q[o],a=("function"==typeof i.yAccessor?i.yAccessor:e=>e[i.yAccessor])(e);null!=a&&t.push({...e,[ci]:a,[hi]:ae[o]})}return{unitizedData:t,extents:e}}let t=[];for(let o of Y)for(let i=0;2>i;i++){let a=q[i],r=("function"==typeof a.yAccessor?a.yAccessor:e=>e[a.yAccessor])(o);null!=r&&t.push({...o,[ci]:R(r,e[i]),[hi]:ae[i]})}return{unitizedData:t,extents:e}},[Y,q,K,ae]),le=ai(()=>{if(!K||2>ne.length)return;let e=e=>t=>{let o=L(t,ne[e]),i=q[e]?.format;return"function"==typeof i?i(o):Number.isInteger(o)?o+"":o.toFixed(1)},t=e(0),o=e(1);return[{orient:"left",label:ae[0],tickFormat:t},{orient:"right",label:ae[1],tickFormat:o},{orient:"bottom"}]},[K,ne,q,ae]),se=ai(()=>re.length>0?re:ae.map(e=>({[hi]:e})),[re,ae]),ce=W({data:se,rawData:n,colorBy:hi,colorScheme:ie,legendInteraction:I,legendPosition:B,frameLegend:{...b,legendLayout:Z},selection:x,linkedHover:v,fallbackFields:[hi],unwrapData:!1,onObservation:A,onClick:w,hoverHighlight:S,mobileInteraction:r.mobileInteraction,mobileSemantics:r.mobileSemantics,chartType:"MultiAxisLineChart",chartId:k,showLegend:G,legendLayout:Z,userMargin:l,marginDefaults:K?{...r.marginDefaults,left:70,right:70}:r.marginDefaults,loading:C,loadingContent:_,emptyContent:H,width:T,height:O,hasTitle:!!z,axisChrome:Ge(b,{showAxes:r.showAxes,xLabel:Q,yLabel:ae[0],yLabelRight:ae[1],axes:le})}),me=ai(()=>{let e=new Map;return ae.forEach((t,o)=>e.set(t,ie[o])),e},[ae,ie]),de=ri(e=>me.get(e[hi])||ie[0],[me,ie]),ue=ai(()=>function(e,t){let o=Fe(e),i=t.map((e,t)=>({label:e.label||"Series "+(t+1),readY:Fe(e.yAccessor)}));return(e,t)=>{let a=(e[hi]??t??"")+"",r=(i.find(e=>e.label===a)??i[0])?.readY(e);return{value:r,x:o(e),y:r,category:a||void 0}}}(h,q),[h,q]),pe=P({lineWidth:p,resolveStroke:de,stroke:F,strokeWidth:D,opacity:N,effectiveSelectionHook:ce.effectiveSelectionHook,resolvedSelection:ce.resolvedSelection,styleRules:y,ruleContext:ue}),ye=ai(()=>e=>{let t=e.data||e,o=t[hi],i=ae.indexOf(o),a=t[ci],r=K&&i>=0&&ne[i]?L(a,ne[i]):a,n=i>=0&&q[i]?.format?q[i].format:e=>Number.isInteger(e)?e+"":e.toFixed(2),l="function"==typeof h?h(t):t[h];return ii.createElement("div",{style:{padding:"6px 10px",fontFamily:"var(--semiotic-font-family, sans-serif)",fontSize:"var(--semiotic-tooltip-font-size, 13px)"}},ii.createElement("div",{style:{fontWeight:600,marginBottom:4,color:ie[i]||"inherit"}},o),ii.createElement("div",null,`${"string"==typeof h?h:"x"}: ${l}`),ii.createElement("div",null,`${o}: ${n(r)}`))},[ae,ie,ne,K,q,h]),fe=ri(e=>{let t=(Array.isArray(e.allSeries)?e.allSeries:[]).map(e=>{let t=ae.indexOf(e.group),o=K&&t>=0&&ne[t]?L(e.value,ne[t]):e.value,i=e.datum;return i&&(i={...i},delete i[ci],delete i[hi]),{...e,value:o,datum:i}}),o=e.data&&"object"==typeof e.data&&!Array.isArray(e.data)?{...e.data}:e.data;o&&"object"==typeof o&&!Array.isArray(o)&&(delete o[ci],delete o[hi]);let i={...e,data:o,allSeries:t};return delete i[ci],delete i[hi],i},[ne,K,ae]),be=ai(()=>Ae(),[]),xe=ri(e=>be(fe(e)),[be,fe]),ve=ai(()=>Be(f)&&"function"==typeof f.content?{mode:"multi",content:e=>f.content(fe(e))}:f,[fe,f]),Se=ai(()=>Ee({tooltip:ve,defaultTooltipContent:ye,multiDefaultContent:xe}),[ye,xe,ve]);if(ce.earlyReturn)return ce.earlyReturn;let ke=M({componentName:"MultiAxisLineChart",data:n,accessors:{xAccessor:h}}),Ce=K?[0,1]:void 0,Re={chartType:"line",...null!=n&&{data:re},xAccessor:h,yAccessor:ci,groupAccessor:hi,lineStyle:pe,colorScheme:ie,size:[T,O],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,...void 0!==e.maxDevicePixelRatio&&{maxDevicePixelRatio:e.maxDevicePixelRatio},margin:ce.margin,showAxes:r.showAxes,...le&&{axes:le},xLabel:Q,...K?{}:{yLabel:ae[0]},xFormat:c,...K&&Ce&&{yExtent:Ce},enableHover:E,...e.pointIdAccessor&&{pointIdAccessor:e.pointIdAccessor},showGrid:j,curve:u,...ce.legendBehaviorProps,...z&&{title:z},...V&&{description:V},...X&&{summary:X},...void 0!==$&&{accessibleTable:$},...s&&{className:s},...null!=e.animate&&{animate:e.animate},...void 0!==e.axisExtent&&{axisExtent:e.axisExtent},...void 0!==e.autoPlaceAnnotations&&{autoPlaceAnnotations:e.autoPlaceAnnotations},...Se,...g&&{annotations:g},...he({linkedHover:v,selection:x,onObservation:A,onClick:w,hoverHighlight:S,hoverRadius:e.hoverRadius,mobileInteraction:ce.mobileInteraction,customHoverBehavior:ce.customHoverBehavior,customClickBehavior:ce.customClickBehavior}),...ce.crosshairProps,...b,...Z&&{legendLayout:Z}};return ee||te||(ke?mi(ge,{componentName:"MultiAxisLineChart",message:ke,width:T,height:O}):mi(we,{componentName:"MultiAxisLineChart",width:T,height:O,children:mi(J,{ref:o,...Re})}))});di.displayName="MultiAxisLineChart";import{useMemo as ui,forwardRef as pi,useRef as yi}from"react";import{jsx as fi}from"react/jsx-runtime";te(G);var gi=pi(function(e,t){let o=yi(null);T(t,{variant:"xy",frameRef:o});let i=Xe(e.mode,{width:e.width,height:e.height,showGrid:e.showGrid,enableHover:e.enableHover,title:e.title,xLabel:e.xLabel,yLabel:e.yLabel,description:e.description,summary:e.summary,accessibleTable:e.accessibleTable,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,responsiveRules:e.responsiveRules}),{data:a,margin:r,className:n,xFormat:l,yFormat:s,xAccessor:c="x",highAccessor:h="high",lowAccessor:m="low",openAccessor:d,closeAccessor:u,candlestickStyle:p,styleRules:y,tooltip:f,annotations:g,xExtent:b,yExtent:x,frameProps:v={},selection:A,linkedHover:w,onObservation:S,onClick:k,chartId:C,loading:R,loadingContent:L,emptyContent:_}=e,{width:H,height:I,enableHover:P,showGrid:B,title:F,description:N,summary:W,accessibleTable:E,xLabel:j,yLabel:G}=i,z=We(R,H,I,L),V=z?null:Me(a,H,I,_),X=ui(()=>He(a),[a]),$=null==d||null==u;Ke("CandlestickChart",X,"xAccessor",c),Ke("CandlestickChart",X,"highAccessor",h),Ke("CandlestickChart",X,"lowAccessor",m),$||(Ke("CandlestickChart",X,"openAccessor",d),Ke("CandlestickChart",X,"closeAccessor",u));let{activeSelectionHook:Q,customHoverBehavior:Y,customClickBehavior:q,crosshairSourceId:U}=$e({selection:A,linkedHover:w,onObservation:S,onClick:k,chartType:"CandlestickChart",chartId:C,mobileInteraction:i.mobileInteraction}),K=O(A),Z=ui(()=>De(c,$?h:u),[c,h,u,$]),ee=ui(()=>Ze(Le(void 0,y,Z),Q,K),[y,Z,Q,K]),te=Ie(w,U),oe=ui(()=>{let e=i.marginDefaults,t="sparkline"===i.mode?{...e,top:0,bottom:0}:e;return null==r?t:{...t,...D(r)}},[r,i.marginDefaults,i.mode]),ie=ui(()=>{let e=[{label:j||le(c),accessor:c,role:"x",format:l}];return $?(e.push({label:"High",accessor:h,role:"y",format:s}),e.push({label:"Low",accessor:m,format:s})):(e.push({label:"Open",accessor:d,format:s}),e.push({label:"High",accessor:h,format:s}),e.push({label:"Low",accessor:m,format:s}),e.push({label:"Close",accessor:u,format:s})),me(e)},[c,j,l,s,h,m,d,u,$]),ae=M({componentName:"CandlestickChart",data:a,accessors:{xAccessor:c,highAccessor:h,lowAccessor:m,...!$&&{openAccessor:d,closeAccessor:u}}}),re=Math.max(2,Math.min(12,Math.round(H/40))),ne=H>200?.1:.02,se={chartType:"candlestick",...null!=a&&{data:X},xAccessor:c,yAccessor:h,highAccessor:h,lowAccessor:m,...!$&&{openAccessor:d,closeAccessor:u},...p&&{candlestickStyle:p},...(Q||y?.length)&&{pointStyle:ee},scalePadding:re,extentPadding:ne,size:[H,I],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,margin:oe,showAxes:i.showAxes,xLabel:j,yLabel:G,xFormat:l,yFormat:s,enableHover:P,showGrid:B,...e.pointIdAccessor&&{pointIdAccessor:e.pointIdAccessor},...ce({title:F,description:N,summary:W,accessibleTable:E,className:n,animate:e.animate,maxDevicePixelRatio:e.maxDevicePixelRatio,axisExtent:e.axisExtent,autoPlaceAnnotations:e.autoPlaceAnnotations}),...de({tooltip:f,defaultTooltipContent:ie}),...he({linkedHover:w,selection:A,onObservation:S,onClick:k,hoverRadius:e.hoverRadius,mobileInteraction:i.mobileInteraction,customHoverBehavior:Y,customClickBehavior:q}),...g&&g.length>0&&{annotations:g},...b&&{xExtent:b},...x&&{yExtent:x},...te,...v};return z||V||(ae?fi(ge,{componentName:"CandlestickChart",message:ae,width:H,height:I}):fi(we,{componentName:"CandlestickChart",width:H,height:I,children:fi(J,{ref:o,...se})}))});gi.displayName="CandlestickChart";import{useMemo as bi,forwardRef as xi,useRef as vi}from"react";import{jsx as Ai}from"react/jsx-runtime";te($);var wi=xi(function(e,t){let o=vi(null);T(t,{variant:"xy",frameRef:o});let i=Xe(e.mode,{width:e.width,height:e.height,showGrid:e.showGrid,enableHover:e.enableHover,showLegend:e.showLegend,title:e.title,xLabel:e.xLabel,yLabel:e.yLabel,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,responsiveRules:e.responsiveRules}),{data:a,margin:r,className:n,xFormat:l,yFormat:s,xAccessor:c="x",yAccessor:h="y",pointIdAccessor:m,xScaleType:d,positiveColor:u,negativeColor:p,connectorStroke:y,connectorWidth:f,gap:g,styleRules:b,tooltip:x,annotations:v,xExtent:A,yExtent:w,frameProps:S={},selection:k,linkedHover:C,onObservation:R,onClick:L,hoverHighlight:_,chartId:H,loading:I,loadingContent:P,emptyContent:B,legendInteraction:F,legendPosition:D}=e,{areaStyle:N,...O}=S,{width:E,height:j,enableHover:G,showGrid:z,showLegend:V,title:X,description:$,summary:Q,accessibleTable:Y,xLabel:q,yLabel:U}=i,K=bi(()=>He(a),[a]),Z=vi({next:0,indexOf:new WeakMap,idOf:new Map,labels:new Map}),{plotData:ee,plotXAccessor:te,plotXFormat:oe,usesIndex:ie}=bi(()=>{let e="function"==typeof c?c:e=>e[c],t=m?"function"==typeof m?m:e=>e[m]:void 0,o=e=>"number"==typeof e&&Number.isFinite(e)||e instanceof Date,i=(e,t)=>{let o=e??t;return l?l(o):o+""};if(null!=a&&!K.some((t,i)=>!o(e(t,i))))return{plotData:K,plotXAccessor:c,plotXFormat:l,usesIndex:!1};if(null!=a){let t=K.map((t,o)=>e(t,o));return{plotData:K.map((e,t)=>({...e,__waterfallX:t})),plotXAccessor:"__waterfallX",plotXFormat:e=>i(t[Number(e)],e),usesIndex:!0}}let r=Z.current,n=(e,t,o,i)=>{e&&"object"==typeof e&&(r.indexOf.set(e,t),!Object.isFrozen(e)&&!Object.isSealed(e)&&(e.__waterfallX=t)),o&&r.idOf.set(o,t),r.labels.set(t,i)};return{plotData:K,plotXAccessor:(i,a)=>{let l=e(i,a);if(o(l))return l;let s=t?(t(i,a)??"")+"":"",c=i&&"object"==typeof i?i.__waterfallX:void 0,h="number"==typeof c&&Number.isFinite(c)?c:(i&&"object"==typeof i?r.indexOf.get(i):void 0)??(s?r.idOf.get(s):void 0);if("number"==typeof h)return n(i,h,s,l),h;let m="number"==typeof a?a:r.next;return r.next=Math.max(r.next,m+1),n(i,m,s,l),m},plotXFormat:e=>i(r.labels.get(Number(e)),e),usesIndex:!0}},[a,K,c,l,m]),ae=bi(()=>{if(ie&&null!=a)return[{orient:"bottom",tickValues:ee.map((e,t)=>t)}]},[a,ee,ie]),re=W({data:ee,rawData:a,colorBy:void 0,colorScheme:void 0,legendInteraction:F,legendPosition:D,frameLegend:S,selection:k,linkedHover:C,fallbackFields:["string"==typeof c?c:"x"],unwrapData:!1,onObservation:R,onClick:L,hoverHighlight:_,mobileInteraction:i.mobileInteraction,mobileSemantics:i.mobileSemantics,chartType:"WaterfallChart",chartId:H,showLegend:V,userMargin:r,marginDefaults:i.marginDefaults,loading:I,loadingContent:P,emptyContent:B,width:E,height:j,hasTitle:!!X,axisChrome:Ge(S,{showAxes:i.showAxes,xLabel:q,yLabel:U,axes:S.axes??ae})}),ne=bi(()=>({positiveColor:u,negativeColor:p,connectorStroke:y,connectorWidth:f,gap:g,stroke:e.stroke,strokeWidth:e.strokeWidth,opacity:e.opacity}),[u,p,y,f,g,e.stroke,e.strokeWidth,e.opacity]),se=bi(()=>De(c,h),[c,h]),ue=bi(()=>Le(void 0,b,se),[b,se]),pe=bi(()=>Ze(e=>{let t=ue(e);if(!N)return t;let o="function"==typeof N?N(e):N;return o?{...t,...o}:t},re.effectiveSelectionHook,re.resolvedSelection),[ue,N,re.effectiveSelectionHook,re.resolvedSelection]),ye=bi(()=>me([{label:q||le(c),accessor:c,role:"x",format:l},{label:U||"Change",accessor:h,role:"y",format:s}]),[c,h,q,U,l,s]);if(re.earlyReturn)return re.earlyReturn;let fe=M({componentName:"WaterfallChart",data:a,accessors:{xAccessor:c,yAccessor:h}});if(fe)return Ai(ge,{componentName:"WaterfallChart",message:fe,width:E,height:j});let be={chartType:"waterfall",...null!=a&&{data:ee},xAccessor:te,yAccessor:h,xScaleType:null!=a&&ie?"linear":d,waterfallStyle:ne,areaStyle:pe,size:[E,j],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,margin:re.margin,showAxes:i.showAxes,xLabel:q,yLabel:U,xFormat:oe,yFormat:s,enableHover:G,showGrid:z,...ae&&{axes:ae},...re.legendBehaviorProps,...ce({title:X,description:$,summary:Q,accessibleTable:Y,className:n,animate:e.animate,maxDevicePixelRatio:e.maxDevicePixelRatio,axisExtent:e.axisExtent,autoPlaceAnnotations:e.autoPlaceAnnotations}),...de({tooltip:x,defaultTooltipContent:ye}),...he({linkedHover:C,selection:k,onObservation:R,onClick:L,hoverHighlight:_,hoverRadius:e.hoverRadius,mobileInteraction:re.mobileInteraction,customHoverBehavior:re.customHoverBehavior,customClickBehavior:re.customClickBehavior}),...m&&{pointIdAccessor:m},...v&&v.length>0&&{annotations:v},...A&&{xExtent:A},...w&&{yExtent:w},...O};return Ai(we,{componentName:"WaterfallChart",width:E,height:j,children:Ai(J,{ref:o,...be})})});wi.displayName="WaterfallChart";export{wt as Scatterplot,_t as ConnectedScatterplot,Bt as XYCustomChart,o as bumpXIdentity,a as rankBumpData,jt as BumpChart,Qt as AreaChart,oo as DifferenceChart,lo as StackedAreaChart,po as Heatmap,vo as BubbleChart,w as ScatterplotMatrix,k as MinimapChart,Ko as DEFAULT_QUADRANTS,oi as QuadrantChart,di as MultiAxisLineChart,gi as CandlestickChart,wi as WaterfallChart};
|
package/dist/c-AJ7EC32V.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function r(r,o){if(!o||!r?.component||!r.props)return[];let n="object"==typeof o?o:{};try{let o=t(r.component,r.props,void 0,{checkOutliers:n.checkOutliers});return e(o,{max:n.max,errorsOnly:n.errorsOnly})}catch{return[]}}import{auditData as t,toDataAuditNotifications as e}from"./c-PSNI6KAZ.min.js";import"./c-P65V6HLO.min.js";export{r as buildChartDataAuditNotifications};
|
package/dist/c-AQADQNY7.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e({frameRef:e,cellSize:c,onBrush:f}){let h=t(null),m=c-u-a,b=c-i-o;return r(()=>{if(!h.current)return;let t=n(h.current).select(".brush-g"),r=l().extent([[0,0],[m,b]]).on("brush end",t=>{let r=e.current?.getScales();if(!r)return;if(!(l=t.selection)||!Array.isArray(l[0]))return void f(null);var l;let[[n,s],[i,o]]=t.selection,u=[[r.x.invert(n),r.y.invert(s)],[r.x.invert(i),r.y.invert(o)]];f(u)});return t.call(r),t.select(".selection").attr("fill","steelblue").attr("fill-opacity",.15).attr("stroke","steelblue").attr("stroke-width",1),()=>{r.on("brush end",null)}},[m,b,e,f]),s("svg",{ref:h,width:c,height:c,style:{position:"absolute",top:0,left:0},children:s("g",{className:"brush-g",transform:`translate(${u},${i})`})})}import{useRef as t,useEffect as r}from"react";import{brush as l}from"d3-brush";import{select as n}from"d3-selection";import{jsx as s}from"react/jsx-runtime";var i=4,o=4,u=4,a=4;export{e as ScatterplotMatrixBrushOverlay};
|
package/dist/c-ATM475SA.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function t(t,r=.5){let a=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(t);if(!a)return t;let n=Math.round(parseInt(a[1],16)*(1-r)),e=Math.round(parseInt(a[2],16)*(1-r)),p=Math.round(parseInt(a[3],16)*(1-r));return`#${n.toString(16).padStart(2,"0")}${e.toString(16).padStart(2,"0")}${p.toString(16).padStart(2,"0")}`}function r(t,r=.5){let a=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(t);if(!a)return t;let n=Math.round(parseInt(a[1],16)+(255-parseInt(a[1],16))*r),e=Math.round(parseInt(a[2],16)+(255-parseInt(a[2],16))*r),p=Math.round(parseInt(a[3],16)+(255-parseInt(a[3],16))*r);return`#${n.toString(16).padStart(2,"0")}${e.toString(16).padStart(2,"0")}${p.toString(16).padStart(2,"0")}`}export{t as darkenColor,r as lightenColor};
|
package/dist/c-AVO3Q7T7.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function t(t,e=h){if(t)return!0===t?e:"stops"in t?Array.isArray(t.stops)?t:void 0:"colorStops"in t?Array.isArray(t.colorStops)?{stops:t.colorStops.map(({offset:t,color:e})=>({offset:t,color:e}))}:void 0:{stops:[{offset:0,opacity:t.topOpacity??e.stops[0]?.opacity??.8},{offset:1,opacity:t.bottomOpacity??e.stops.at(-1)?.opacity??.05}]}}function e(e){return e?t(e):void 0}function o(t){if(t)return Array.isArray(t)?{stops:t.map(({at:t,color:e,opacity:o})=>({offset:t/100,color:e,...null!=o&&{opacity:o}}))}:Array.isArray(t.stops)?t:void 0}function r(t){let e=t?.stops.filter(t=>"string"==typeof t.color&&Number.isFinite(t.offset)).map(({offset:t,color:e,opacity:o})=>({offset:Math.max(0,Math.min(1,t)),color:e,...Number.isFinite(o)&&{opacity:Math.max(0,Math.min(1,o))}})).sort((t,e)=>t.offset-e.offset);if(!e?.length)return;let o=e[0];return o.offset>0?[{...o,offset:0},...e]:e}function s(t){return{stops:t.stops.map(t=>({...t,offset:1-t.offset})).sort((t,e)=>t.offset-e.offset)}}function i(t,e,o,r,s,i){let{topPath:l,rawValues:a,datum:f}=c(t,e,o,r);return{type:"line",path:l,rawValues:a,style:s,datum:f,group:i}}function l(t,e,o,r,s,i,l,a){return{type:"area",...c(t,e,o,r,a??(()=>s)),style:i,group:l}}function a(t,e,o,r){let s=new Map;if("silhouette"===r)for(let r of t){let t=0;for(let s of e)t+=o(s,r)||0;s.set(r,-t/2)}else if("wiggle"===r){t.length>0&&s.set(t[0],0);for(let r=1;t.length>r;r++){let i=t[r-1],l=t[r],a=0,f=0,n=0;for(let t of e){let e=o(t,l)||0;a+=(2*n+e)*(e-(o(t,i)||0)),f+=e,n+=e}let u=s.get(i)??0;s.set(l,u-(f>0?a/(2*f):0))}if(t.length>0){let r=0;for(let i of t){let t=0;for(let r of e)t+=o(r,i)||0;r+=(s.get(i)??0)+t/2}let i=r/t.length;for(let e of t)s.set(e,(s.get(e)??0)-i)}}else for(let e of t)s.set(e,0);return s}function f(t,e,o){let r=0,s=0;for(let i of t){let t=0,l=0;for(let r of e){let e=o(r,i)||0;0>e?l+=e:t+=e}r>l&&(r=l),t>s&&(s=t)}return[r,s]}function n(t,e,o,r,s,i,l,f="zero"){let n=new Set,u=new Map;for(let e of t){let t=new Map;for(let s of e.data){let e=o(s),i=r(s);if(!Number.isFinite(e)||(n.add(e),!Number.isFinite(i)))continue;let l=t.get(e);l?(l.value+=i,l.sources?l.sources.push(s):l.sources=[l.datum,s]):t.set(e,{value:i,datum:s})}u.set(e.key,t)}let p,y=Array.from(n).sort((t,e)=>t-e);if(i){p=new Map;for(let e of y){let o=0;for(let r of t)o+=u.get(r.key)?.get(e)?.value||0;p.set(e,o||1)}}let m=a(y,t.map(t=>t.key),(t,e)=>u.get(t)?.get(e)?.value||0,f),c="diverging"===f&&!i,h=[],d=new Map,v=new Map,w=new Map,b=new Map;for(let t of y)v.set(t,m.get(t)??0),w.set(t,0),b.set(t,0);for(let o of t){let t=u.get(o.key),r=new Map,a=[],f=[],n=[],m=[],F=[],M=!1,N=()=>{if(0!==a.length){if(a.length>=2){let t=M?a.map((t,e)=>e).sort((t,e)=>a[t][0]-a[e][0]):void 0,e={type:"area",topPath:t?t.map(t=>a[t]):a,bottomPath:t?t.map(t=>f[t]):f,rawValues:t?t.map(t=>n[t]):n,style:s(o.key,g(o.data)),datum:t?t.map(t=>m[t]):m,accessibleDatum:t?t.map(t=>F[t]):F,group:o.key};l&&(e.curve=l),h.push(e)}a=[],f=[],n=[],m=[],F=[],M=!1}};for(let s of y){let l,u,y=t.get(s),g=void 0!==y,h=y?.value??0;if(i&&g&&(h/=p.get(s)),!g||!Number.isFinite(h)||0===h){N();continue}c?h>0?(l=w.get(s),u=l+h,w.set(s,u)):(l=b.get(s),u=l+h,b.set(s,u)):(l=v.get(s),u=l+h,v.set(s,u));let d=e.x(s),x=e.y(l),k=e.y(u);if(!Number.isFinite(d)||!Number.isFinite(x)||!Number.isFinite(k)){N();continue}let A=y.sources,V=y.value,_=A?{...A[0],__aggregateValue:V,__aggregateCount:A.length,__aggregateRows:A}:y.datum;a.length>0&&a[a.length-1][0]>d&&(M=!0),a.push([d,k]),f.push([d,x]),m.push(_),n.push(V),F.push(A?{x:s,value:V,group:o.key,observations:A.length}:_),r.set(s,u)}N(),d.set(o.key,r)}return{nodes:h,stackedTops:d}}function u(t,e,o,r,s,i,l){let a=o(t),f=r(t);if(!Number.isFinite(a)||!Number.isFinite(f))return null;let n={type:"point",x:e.x(a),y:e.y(f),r:s,style:i,datum:t};return void 0!==l&&(n.pointId=l),n}function p(t,e,o,r,s,i,l,a){let f=o(t),n=r(t);if(!Number.isFinite(f)||!Number.isFinite(n))return null;let u={type:"symbol",x:e.x(f),y:e.y(n),size:s,symbolType:i,style:l,datum:t};return void 0!==a&&(u.pointId=a),u}function y(t,e,o,r,s,i,l){return{type:"rect",x:t,y:e,w:o,h:r,style:s,datum:i,group:l}}function m(t,e,o,r,s,i,l){let a={type:"heatcell",x:t,y:e,w:o,h:r,fill:s,datum:i};return void 0!==l?.value&&(a.value=l.value),l?.showValues&&(a.showValues=!0,l.valueFormat&&(a.valueFormat=l.valueFormat)),a}import{buildSeriesGeometry as c}from"./c-TKG2NP7G.min.js";import{seriesSelectionDatum as g}from"./c-T2V7O2LO.min.js";var h={stops:[{offset:0,opacity:.8},{offset:1,opacity:.05}]};export{i as buildLineNode,l as buildAreaNode,a as computeStackOffsets,f as computeDivergingStackExtent,n as buildStackedAreaNodes,u as buildPointNode,p as buildSymbolNode,y as buildRectNode,m as buildHeatcellNode,t as normalizeGradient,e as normalizeColorGradient,o as normalizeSemanticGradient,r as semanticLineStopsForGradient,s as reverseGradient};
|
package/dist/c-B7GW7IHJ.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(){y(f),y(u),y(p)}function t(e){let{colorBy:t,colorScale:o,color:r,pointRadius:n=5,radiusFn:i,fillOpacity:l=1,fallbackFill:a,baseStyleExtras:s,stroke:c,strokeWidth:u,opacity:f,effectiveSelectionHook:p,resolvedSelection:y,colorDatumAccessor:m,selectionDatumAccessor:d,styleRules:h,ruleContext:g}=e,v=M(()=>e=>{let c="function"==typeof s?s(e):s,u=c?{...c}:{};if(void 0===u.fillOpacity&&(u.fillOpacity=l),void 0===u.fill)if(t){if(o){let r=m?m(e):e;u.fill=P(r,t,o)}}else u.fill=a?a(e):r||_;return void 0===u.r&&(u.r=i?i(e):n),h&&h.length>0&&Object.assign(u,C(e,h,g?g(e):{value:void 0})),u},[t,o,r,n,i,l,a,s,m,h,g]),x=M(()=>b(v,{stroke:c,strokeWidth:u,opacity:f}),[v,c,u,f]);return M(()=>O(x,p??null,y,d),[x,p,y,d])}function o(e){let{lineWidth:t=2,colorBy:o,colorScale:r,color:n,resolveStroke:i,fillArea:l,areaOpacity:a=.3,stroke:s,strokeWidth:c,opacity:u,effectiveSelectionHook:f,resolvedSelection:p,styleRules:y,ruleContext:m}=e,d=E(()=>function(e){let{lineWidth:t=2,colorBy:o,colorScale:r,color:n,resolveStroke:i,fillArea:l,areaOpacity:a=.3,styleRules:s,ruleContext:c}=e;return(e,u)=>{let f,p={strokeWidth:t},y=!0===l||Array.isArray(l)&&null!=u&&l.includes(u);return i?f=i(e,u):o?r&&(f=P(e,o,r)):f=n||_,void 0!==f&&(p.stroke=f,y&&(p.fill=f,p.fillOpacity=a)),s?.length&&Object.assign(p,C(e,s,c?c(e,u):{value:void 0,category:u})),p}}({lineWidth:t,colorBy:o,colorScale:r,color:n,resolveStroke:i,fillArea:l,areaOpacity:a,styleRules:y,ruleContext:m}),[t,o,r,n,i,l,a,y,m]),h=E(()=>b(d,{stroke:s,strokeWidth:c,opacity:u}),[d,s,c,u]);return E(()=>O(h,f??null,p),[h,f,p])}async function r(){return J||(J=await(import("./c-BNFJMDHN.min.js"))),J}function n(e){let{data:t,xAccessor:o,yAccessor:n,forecast:i,anomaly:l,groupBy:a}=e,s="string"==typeof o?o:U,c="string"==typeof n?n:X,u=V(()=>{if(!i&&!l)return t;let e="function"==typeof o,r="function"==typeof n;return e||r?t.map(t=>{let i={...t};return e&&(i[U]=o(t)),r&&(i[X]=n(t)),i}):t},[t,i,l,o,n]),[f,p]=Y(null),[y,m]=Y([]),d=$(i),h=$(l);return K(()=>{if(!i&&!l)return void((d.current||h.current)&&(p(null),m([]),d.current=i,h.current=l));let e=!1,t=i!==d.current||l!==h.current;if(d.current=i,h.current=l,t&&(p(null),m([])),i){let t=a&&"string"==typeof a&&"object"==typeof i?{...i,_groupBy:a}:i;(async function(...e){return(await r()).buildForecast(...e)})(u,s,c,t,l).then(t=>{e||(p(t),m(t.annotations))}).catch(()=>{e||(p(null),m([]))})}else l&&async function(...e){return(await r()).buildAnomalyAnnotations(...e)}(l).then(t=>{e||(p(null),m(t))}).catch(()=>{e||m([])});return()=>{e=!0}},[u,i,l,s,c,a]),{effectiveData:f?f.processedData:t,statisticalAnnotations:y,hasForecast:!!f,xAccessorKey:s,yAccessorKey:c}}import{validateArrayData as i}from"./c-D6HAAPTX.min.js";import{useChartSetup as l,useFrameImperativeHandle as a}from"./c-RFC7UAG7.min.js";import{StreamXYFrame_default as s,useXYBrush as c}from"./c-JIMJF6F6.min.js";import{areaXYPlugin as u,lineXYPlugin as f,mixedXYPlugin as p,registerXYPlugin as y}from"./c-G5VIJEOK.min.js";import{normalizeColorGradient as m}from"./c-AVO3Q7T7.min.js";import{accessorName as d,bandTooltipFields as h,buildCustomBehaviorProps as g,buildDefaultTooltip as v,mergeShapeStyle as b}from"./c-SGAURYHG.min.js";import{ChartError as x,MultiPointTooltip as A,SafeRender as S,composeLegendConfigs as k,filterSparseArray as L,makeXYRuleContext as w,resolveMultiCapableTooltip as D,resolveStyleRules as C,resolveXYFramePropsAxisChrome as B,useChartMode as H,warnMissingField as R,wrapStyleWithSelection as O}from"./c-ODG6TFSY.min.js";import{DEFAULT_COLOR as _,getColor as P}from"./c-CPV4N35K.min.js";import{selectionDatumWithParent as F}from"./c-T2V7O2LO.min.js";import{useMemo as G,useCallback as j,useState as T,useEffect as N,forwardRef as I,useRef as W}from"react";import{useMemo as M}from"react";import{useMemo as E}from"react";var z="__forecastSegment",J=null;import{useEffect as K,useMemo as V,useRef as $,useState as Y}from"react";var U="__semiotic_resolvedX",X="__semiotic_resolvedY";import{jsx as Q}from"react/jsx-runtime";e();var q="__lineObjectSeries",Z=e=>e.parentLine||e,ee=I(function(e,u){let f=W(null);a(u,{variant:"xy",frameRef:f});let p=H(e.mode,{width:e.width,height:e.height,showGrid:e.showGrid,enableHover:e.enableHover,showLegend:e.showLegend,title:e.title,description:e.description,summary:e.summary,accessibleTable:e.accessibleTable,xLabel:e.xLabel,yLabel:e.yLabel,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,responsiveRules:e.responsiveRules}),{data:y,margin:b,className:C,xFormat:O,yFormat:P,axisExtent:I,xAccessor:M="x",yAccessor:E="y",lineBy:J,lineDataAccessor:K="coordinates",colorBy:V,colorScheme:$,styleRules:Y,curve:U="linear",showPoints:X=!1,pointRadius:ee=3,fillArea:te=!1,areaOpacity:oe=.3,lineWidth:re=2,lineGradient:ne,tooltip:ie,pointIdAccessor:le,annotations:ae,directLabel:se,gapStrategy:ce="break",anomaly:ue,forecast:fe,band:pe,xExtent:ye,yExtent:me,frameProps:de={},selection:he,linkedHover:ge,linkedBrush:ve,brush:be,onBrush:xe,onObservation:Ae,onClick:Se,hoverHighlight:ke,hoverRadius:Le,chartId:we,loading:De,loadingContent:Ce,emptyContent:Be,legendInteraction:He,legendPosition:Re,legend:Oe,xScaleType:_e,yScaleType:Pe,color:Fe,stroke:Ge,strokeWidth:je,opacity:Te}=e,{legend:Ne,...Ie}=de,We=G(()=>k(Ne,Oe),[Ne,Oe]),{width:Me,height:Ee,enableHover:ze,showGrid:Je,showLegend:Ke,title:Ve,description:$e,summary:Ye,accessibleTable:Ue,xLabel:Xe,yLabel:Qe}=p,qe=G(()=>L(y),[y]),Ze=Array.isArray(qe[0]?.[K])?qe[0][K]:qe;R("LineChart",Ze,"xAccessor",M),R("LineChart",Ze,"yAccessor",E);let{effectiveData:et,statisticalAnnotations:tt}=n({data:qe,xAccessor:M,yAccessor:E,forecast:fe,anomaly:ue,groupBy:J}),ot="__compoundGroup",rt=!(!fe||!J),nt=rt?ot:fe?z:J,it=G(()=>{if(!rt)return et;let e="function"==typeof J?J:e=>e[J];return et.map(t=>{let o={...t};return o[ot]=`${e(t)}__${t[z]||"observed"}`,o})},[et,rt,J]),lt=rt?it:et,at=V||J,st=G(()=>{if(!fe)return;let e=fe.upperBounds,t=fe.lowerBounds;if(!e&&!t)return;let o="function"==typeof e?e:"string"==typeof e?t=>t[e]:null,r="function"==typeof t?t:"string"==typeof t?e=>e[t]:null,n=1/0,i=-1/0,l=et;for(let e of l){let t="function"==typeof E?E(e):+e[E];if(isFinite(t)&&(n>t&&(n=t),t>i&&(i=t)),o){let t=o(e);null!=t&&isFinite(t)&&(t>i&&(i=t),n>t&&(n=t))}if(r){let t=r(e);null!=t&&isFinite(t)&&(n>t&&(n=t),t>i&&(i=t))}}return isFinite(n)&&isFinite(i)?[n,i]:void 0},[fe,et,E]),ct=j(e=>{let t="function"==typeof M?M(e):e[M],o="function"==typeof E?E(e):e[E];return null==t||null==o||Number.isNaN(t)||Number.isNaN(o)},[M,E]),ut=void 0!==lt[0]?.[K],ft=ut?q:nt,pt=G(()=>{if(ut)return lt.map((e,t)=>{let o="function"==typeof J?J(e):"string"==typeof J?e[J]:void 0,r=null==o?"line-"+t:o+"",n=Array.isArray(e[K])?e[K]:[];return{...e,[q]:r,[K]:n.map(t=>({...t,[q]:r,parentLine:e,..."string"==typeof J&&void 0!==e[J]?{[J]:e[J]}:{}}))}});if(nt){let e=lt.reduce((e,t)=>{let o="function"==typeof nt?nt(t):t[nt];if(!e[o]){let r={[K]:[]};"string"==typeof nt&&(r[nt]=o),rt&&(r[z]=t[z],"string"==typeof J&&(r[J]=t[J])),e[o]=r}return e[o][K].push(t),e},{});return Object.values(e)}return[{[K]:lt}]},[ut,nt,K,lt,J,rt]),{gapProcessedLineData:yt,hasGaps:mt}=G(()=>{if("interpolate"===ce){let e=!1,t=[];for(let o of pt){let r=(o[K]||[]).filter(t=>!ct(t)||(e=!0,!1));r.length>0&&t.push({...o,[K]:r})}return{gapProcessedLineData:t,hasGaps:e}}if("break"===ce){let e=!1,t=[];for(let o of pt){let r=o[K]||[],n=[],i=0,l=ft&&"string"==typeof ft?o[ft]:void 0;for(let a of r)if(ct(a))e=!0,n.length>0&&(t.push({...o,[K]:n}),n=[],i++);else{let e=null!=l?`${l}__seg${i}`:"__seg"+i;n.push({...a,_gapSegment:e})}n.length>0&&t.push({...o,[K]:n})}return{gapProcessedLineData:t,hasGaps:e}}if("zero"===ce){let e=!1,t="string"==typeof E?E:"y",o=[];for(let r of pt){let n=r[K]||[],i=[];for(let o of n)ct(o)?(e=!0,i.push({...o,[t]:0})):i.push(o);o.push({...r,[K]:i})}return{gapProcessedLineData:o,hasGaps:e}}return{gapProcessedLineData:pt,hasGaps:!1}},[pt,ce,K,ct,ft,E]),dt="object"==typeof se?se:{},ht=dt.position||"end",gt=dt.fontSize||11,vt=G(()=>{if(!se||!at)return[];let e="function"==typeof at?at:e=>e[at],t=new Set;for(let o of yt){let r=o[K]||[];if(0===r.length)continue;let n=e("end"===ht?r[r.length-1]:r[0])??e(o);if(null==n)continue;let i=n+"";""!==i&&t.add(i)}return Array.from(t)},[se,at,yt,K,ht]),bt=G(()=>{if(!se)return p.marginDefaults;let e=vt.reduce((e,t)=>Math.max(e,t.length*(.6*gt)),0)+10,t="end"===ht?"right":"left";return{...p.marginDefaults,[t]:Math.max(p.marginDefaults[t]||0,e)}},[se,vt,gt,ht,p.marginDefaults]),xt=l({data:et,rawData:y,colorBy:at,colorScheme:$,legendInteraction:He,legendPosition:Re,frameLegend:Ie,selection:he,linkedHover:ge,fallbackFields:at?["string"==typeof at?at:""]:[],unwrapData:!1,onObservation:Ae,onClick:Se,hoverHighlight:ke,mobileInteraction:p.mobileInteraction,mobileSemantics:p.mobileSemantics,chartType:"LineChart",chartId:we,showLegend:(!se||void 0!==Ke)&&Ke,legend:We,userMargin:b,marginDefaults:bt,loading:De,loadingContent:Ce,emptyContent:Be,width:Me,height:Ee,hasTitle:!!Ve,axisChrome:B(de,{showAxes:p.showAxes,xLabel:Xe,yLabel:Qe})}),At=xt.colorScale,St=xt.effectiveSelectionHook,kt=xt.resolvedSelection,Lt=xt.customHoverBehavior,wt=xt.customClickBehavior,Dt=xt.crosshairProps,Ct=G(()=>{if(at)return ut?e=>{let t=e.parentLine||e;return"function"==typeof at?at(t):t[at]}:at},[at,ut]),Bt=G(()=>w(M,E),[M,E]),Ht=o({lineWidth:re,colorBy:Ct,colorScale:At,color:Fe,fillArea:te,areaOpacity:oe,stroke:Ge,strokeWidth:je,opacity:Te,effectiveSelectionHook:St,resolvedSelection:kt,styleRules:Y,ruleContext:Bt}),[Rt,Ot]=T(null);N(()=>{if(!fe)return void Ot(null);let e=!1;return async function(...e){return(await r()).createSegmentLineStyle(...e)}(Ht,fe).then(t=>{e||Ot(()=>t)}).catch(()=>{e||Ot(null)}),()=>{e=!0}},[Ht,fe]);let _t=Rt||Ht,Pt=t({colorBy:at,colorScale:At,color:Fe,pointRadius:ee,colorDatumAccessor:Z,selectionDatumAccessor:F,effectiveSelectionHook:St,resolvedSelection:kt}),Ft=Array.isArray(te)?"mixed":te?"area":"line",Gt=G(()=>{if(!se||!at)return[];let e="function"==typeof M?M:e=>e[M],t="function"==typeof E?E:e=>e[E],o="function"==typeof at?at:e=>e[at],r=new Map;for(let e of yt){let t=e[K]||[];if(0===t.length)continue;let n="end"===ht?t[t.length-1]:t[0],i=o(n)??o(e);if(null==i)continue;let l=i+"";""!==l&&!r.has(l)&&r.set(l,n)}let n=Array.from(r.entries()).map(([o,r])=>({type:"text",label:o,["string"==typeof M?M:"x"]:e(r),["string"==typeof E?E:"y"]:t(r),dx:"end"===ht?6:-6,dy:0,color:At?At(o):_,fontSize:gt}));n.sort((e,t)=>{let o="string"==typeof E?E:"y";return e[o]-t[o]});for(let e=1;n.length>e;e++){let t="string"==typeof E?E:"y",o=n[e-1],r=n[e];gt+2>Math.abs(r[t]+r.dy-(o[t]+o.dy))&&(r.dy+=gt+2)}return n},[se,at,At,yt,K,M,E,ht,gt]),jt=xt.margin,Tt=J||V,Nt=G(()=>v([{label:Xe||d(M),accessor:M,role:"x",format:O},{label:Qe||d(E),accessor:E,role:"y",format:P},...Tt?[{label:d(Tt),accessor:Tt,role:"group"}]:[],...h(pe,P)]),[M,E,Xe,Qe,Tt,O,P,pe]),It=i({componentName:"LineChart",data:ut?et[0]?.[K]||[]:y,accessors:{xAccessor:M,yAccessor:E}}),{brushStreamProps:Wt}=c({brush:be,onBrush:xe,linkedBrush:ve,xAccessor:M,yAccessor:E,defaultDimension:"x"}),Mt=G(()=>ut||ft||mt?yt.flatMap(e=>{let t=e[K]||[];return ft&&"string"==typeof ft?t.map(t=>({...t,[ft]:t[ft]??e[ft]})):t}):lt,[yt,K,ut,ft,lt,mt]),Et=m(ne),zt={chartType:Ft,...Array.isArray(te)&&{areaGroups:te},...Et&&{lineGradient:Et},...null!=y&&{data:Mt},xAccessor:M,yAccessor:E,xScaleType:_e,yScaleType:Pe,...ye&&{xExtent:ye},...!me||null==me[0]&&null==me[1]?st?{yExtent:st}:{}:{yExtent:me},groupAccessor:"break"===ce&&mt?"_gapSegment":ft||void 0,...pe&&{band:pe},curve:U,lineStyle:_t,...X&&{pointStyle:Pt},size:[Me,Ee],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,...void 0!==e.maxDevicePixelRatio&&{maxDevicePixelRatio:e.maxDevicePixelRatio},margin:jt,showAxes:p.showAxes,xLabel:Xe,yLabel:Qe,xFormat:O,yFormat:P,...void 0!==I&&{axisExtent:I},...void 0!==e.autoPlaceAnnotations&&{autoPlaceAnnotations:e.autoPlaceAnnotations},enableHover:ze,showGrid:Je,...xt.legendBehaviorProps,...Ve&&{title:Ve},...$e&&{description:$e},...Ye&&{summary:Ye},...void 0!==Ue&&{accessibleTable:Ue},...C&&{className:C},...null!=e.animate&&{animate:e.animate},...D({tooltip:ie,defaultTooltipContent:Nt,multiDefaultContent:A()}),...g({linkedHover:ge,selection:he,onObservation:Ae,onClick:Se,hoverRadius:Le,hoverHighlight:ke,mobileInteraction:xt.mobileInteraction,customHoverBehavior:Lt,customClickBehavior:wt}),...le&&{pointIdAccessor:le},...(ae?.length||tt.length||Gt.length)&&{annotations:[...ae||[],...tt,...Gt]},...Dt,...Wt,...Ie};return xt.earlyReturn?xt.earlyReturn:It?Q(x,{componentName:"LineChart",message:It,width:Me,height:Ee}):Q(S,{componentName:"LineChart",width:Me,height:Ee,children:Q(s,{ref:f,...zt})})});ee.displayName="LineChart";export{t as useXYPointStyle,n as useSeriesFeatures,e as registerLineFamilyXYPlugins,o as useXYLineStyle,ee as LineChart};
|
package/dist/c-BNFJMDHN.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e,t,r,o){let n=t.uncertaintyOpacity,l=t.confidenceAccessor;if(!n&&!l)return;let a="object"==typeof n?n:{},i=a.min??.15,s=a.max??1;if(l){let t="function"==typeof l?l:e=>e[l];for(let r of e){let e=t(r);null!=e&&Number.isFinite(e)&&(r[h]=i+Math.max(0,Math.min(1,e))*(s-i))}return}let f=e.map(e=>{let t=r(e),n=o(e);return null!=t&&null!=n&&Number.isFinite(t)&&Number.isFinite(n)?Math.abs(t-n):NaN}),p=f.filter(e=>Number.isFinite(e));if(0===p.length)return;let[c,y]=u(p),d=y-c;e.forEach((e,t)=>{let r=f[t];Number.isFinite(r)&&(e[h]=s-(d>0?(r-c)/d:0)*(s-i))})}function t(e,t){return"function"==typeof t?t(e):!!e[t]}function r(e){return[{type:"anomaly-band",threshold:e.threshold??2,showBand:!1!==e.showBand,fill:e.bandColor||"#6366f1",fillOpacity:e.bandOpacity??.1,anomalyColor:e.anomalyColor||"#ef4444",anomalyRadius:e.anomalyRadius??6,label:e.label}]}function o(r,o,n,l,a){return(u=l).isTraining||u.isForecast||u.isAnomaly||u.upperBounds||u.lowerBounds?function(r,o,n,l,a){let{isTraining:i,isForecast:s,isAnomaly:f,upperBounds:p,lowerBounds:u,color:h="#6366f1",bandOpacity:y=.15,anomalyColor:d="#ef4444",anomalyRadius:m=6,label:b}=l,g=r.map(e=>{let r="observed";return s&&t(e,s)?r="forecast":i&&t(e,i)&&(r="training"),{...e,[c]:r}}),_=l._groupBy,k=[];if(_){let e=new Map;for(let t of g){let r=t[_]??"__default";e.has(r)||e.set(r,[]),e.get(r).push(t)}let t=[];for(let[,r]of e)for(let e=0;r.length-1>e;e++)r[e][c]!==r[e+1][c]&&(t.push({...r[e+1],[c]:r[e][c]}),t.push({...r[e],[c]:r[e+1][c]}));k.push(...g,...t)}else for(let e=0;g.length>e;e++)k.push(g[e]),g.length-1>e&&g[e][c]!==g[e+1][c]&&(k.push({...g[e+1],[c]:g[e][c]}),k.push({...g[e],[c]:g[e+1][c]}));if(l.trainUnderline){let e=[];for(let t of k)"training"===t[c]&&e.push({...t,[c]:"training-base"});k.unshift(...e)}let O=[];if(p&&u){let e="string"==typeof p?p:"__envUpper",t="string"==typeof u?u:"__envLower";if("function"==typeof p||"function"==typeof u)for(let r of k)"function"==typeof p&&(r[e]=p(r)),"function"==typeof u&&(r[t]=u(r));O.push({type:"envelope",upperAccessor:e,lowerAccessor:t,fill:h,fillOpacity:y,label:b})}if(l.uncertaintyOpacity||l.confidenceAccessor){let t=p?"function"==typeof p?p:e=>e[p]:()=>{},r=u?"function"==typeof u?u:e=>e[u]:()=>{};e(k.filter(e=>"forecast"===e[c]),l,t,r)}if(f){let e=l.anomalyStyle,r={type:"highlight",filter:e=>t(e,f)};e?(r.style=e,r.r=m):"function"==typeof d?(r.style=e=>{let t=d(e);return{stroke:t,strokeWidth:1.5,fill:t,fillOpacity:.7}},r.r=m):(r.color=d,r.r=m,r.style={stroke:d,strokeWidth:1.5,fill:d,fillOpacity:.7}),O.push(r)}return a&&O.push({type:"anomaly-band",threshold:a.threshold??2,showBand:!1!==a.showBand,fill:a.bandColor||"#6366f1",fillOpacity:a.bandOpacity??.1,anomalyColor:a.anomalyColor||"#ef4444",anomalyRadius:a.anomalyRadius??6,label:a.label}),{processedData:k,annotations:O}}(r,0,0,l,a):function(t,r,o,n,l){let{trainEnd:a,steps:u=10,confidence:h=.95,color:y="#6366f1",bandOpacity:d=.15,label:m}=n;if(null==a)return{processedData:t,annotations:[]};let b=[],g=[];for(let e of t)e[r]>a?g.push({...e,[c]:"observed"}):b.push({...e,[c]:"training"});let _=b.map(e=>[e[r],e[o]]).filter(e=>null!=e[0]&&null!=e[1]&&isFinite(e[0])&&isFinite(e[1])).sort((e,t)=>e[0]-t[0]),k=[],O=[];if(_.length>=3){let l=_.length,a=s(_);if(a){let{se:s,meanX:b,ssX:g}=f(_,a),w=i(h),A=t.map(e=>e[r]).filter(e=>null!=e&&isFinite(e)),B=p(A),F=_.length>1?(_[l-1][0]-_[0][0])/(l-1):1;for(let e=1;u>=e;e++){let t=B+e*F,n=a(t),i=s*Math.sqrt(1+1/l+(g>0?(t-b)**2/g:0))*w;O.push({[r]:t,[o]:n,[c]:"forecast",__forecastUpper:n+i,__forecastLower:n-i})}e(O,n,e=>e.__forecastUpper,e=>e.__forecastLower),k.push({type:"envelope",upperAccessor:"__forecastUpper",lowerAccessor:"__forecastLower",fill:y,fillOpacity:d,label:m})}}k.push({type:"x-threshold",x:a,color:"#94a3b8",strokeWidth:1,strokeDasharray:"4,2",label:"Train / Forecast"}),l&&k.push({type:"anomaly-band",threshold:l.threshold??2,showBand:!1!==l.showBand,fill:l.bandColor||"#6366f1",fillOpacity:l.bandOpacity??.1,anomalyColor:l.anomalyColor||"#ef4444",anomalyRadius:l.anomalyRadius??6,label:l.label});let w=[];if(w.push(...b),b.length>0&&g.length>0&&w.push({...b[b.length-1],[c]:"observed"}),w.push(...g),O.length>0){let e=g.length>0?g[g.length-1]:b[b.length-1];e&&w.push({...e,[c]:"forecast"}),w.push(...O)}return{processedData:w,annotations:k}}(r,o,n,l,a);var u}function n(e,t){let r=t.trainDasharray??"8,4",o=t.forecastDasharray??"4,4",n=t.color||"#6366f1",i=t.trainOpacity,s=t.forecastOpacity,f=t.trainStroke,p=t.trainLinecap,u=t.trainUnderline;return t=>{let y=e(t),d=t[c];if("training"===d){let e=y.stroke;return"darken"===f?e=l(y.stroke||"#666",.5):f&&(e=f),{...y,stroke:e,strokeDasharray:r,...p&&{strokeLinecap:p},...null!=i&&{strokeOpacity:i}}}if("training-base"===d){let e=y.stroke||"#666";return"lighten"===u&&(e=a(e,.4)),{...y,stroke:e,strokeDasharray:void 0}}if("forecast"===d){let e=t[h]??s;return{...y,stroke:n,strokeDasharray:o,...null!=e&&{strokeOpacity:e}}}return y}}import{darkenColor as l,lightenColor as a}from"./c-ATM475SA.min.js";import{confidenceZScore as i,fitLinearForForecast as s,forecastIntervalStats as f}from"./c-ELDWAO2V.min.js";import{getMax as p,getMinMax as u}from"./c-QA3HMQJP.min.js";var c="__forecastSegment",h="__forecastOpacity";export{h as FORECAST_OPACITY_FIELD,c as SEGMENT_FIELD,r as buildAnomalyAnnotations,o as buildForecast,n as createSegmentLineStyle,l as darkenColor,a as lightenColor,e as stampForecastOpacity};
|
package/dist/c-BOHCQILI.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e){for(let o of Object.values(e))Object.freeze(o.suppliedBy),Object.freeze(o);return Object.freeze(e)}var o=e({"artifact.id":{suppliedBy:["author","system","import"],derivable:!0,modelMayPropose:!1,humanReview:"never"},"artifact.createdAt":{suppliedBy:["author","system","import"],derivable:!1,modelMayPropose:!1,humanReview:"never"},"artifact.configFingerprint":{suppliedBy:["system"],derivable:!0,modelMayPropose:!1,humanReview:"never"},"artifact.dataFingerprint":{suppliedBy:["system"],derivable:!0,modelMayPropose:!1,humanReview:"never"},"purpose.intents":{suppliedBy:["author","system","model-proposal","import"],derivable:!0,modelMayPropose:!0,humanReview:"policy-dependent"},"purpose.communicativeAct":{suppliedBy:["author","system","model-proposal","import"],derivable:!0,modelMayPropose:!0,humanReview:"policy-dependent"},"purpose.stakes":{suppliedBy:["author","import"],derivable:!1,modelMayPropose:!0,humanReview:"required"},claims:{suppliedBy:["author","system","model-proposal","import"],derivable:!0,modelMayPropose:!0,humanReview:"policy-dependent"},"claims.status":{suppliedBy:["author","system","import"],derivable:!0,modelMayPropose:!1,humanReview:"policy-dependent"},evidence:{suppliedBy:["author","system","import"],derivable:!0,modelMayPropose:!1,humanReview:"policy-dependent"},"evidence.source":{suppliedBy:["author","system","import"],derivable:!0,modelMayPropose:!1,humanReview:"policy-dependent"},"evidence.fingerprint":{suppliedBy:["system"],derivable:!0,modelMayPropose:!1,humanReview:"never"},time:{suppliedBy:["author","system","import"],derivable:!0,modelMayPropose:!1,humanReview:"policy-dependent"},"time.completeness":{suppliedBy:["author","system","import"],derivable:!0,modelMayPropose:!1,humanReview:"policy-dependent"},reception:{suppliedBy:["author","system","model-proposal","import"],derivable:!0,modelMayPropose:!0,humanReview:"policy-dependent"},form:{suppliedBy:["author","system","model-proposal","import"],derivable:!0,modelMayPropose:!0,humanReview:"policy-dependent"},contestability:{suppliedBy:["author","system","import"],derivable:!1,modelMayPropose:!1,humanReview:"required"},accountability:{suppliedBy:["author","system","import"],derivable:!1,modelMayPropose:!1,humanReview:"policy-dependent"},inheritance:{suppliedBy:["author","system","import"],derivable:!0,modelMayPropose:!1,humanReview:"policy-dependent"}});export{o as ARTIFACT_FIELD_POLICIES};
|
package/dist/c-C3TZLTZK.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function t(t){return t===1/0?1/0:Number.isFinite(t)?Math.max(0,Math.floor(t)):5e3}function e(t){return t===1/0?1/0:Number.isFinite(t)?Math.max(1,Math.floor(t)):5e3}function i(t,e,i,r){return"string"==typeof t?{key:t,fn:null}:"function"==typeof t?{key:i,fn:t}:"string"==typeof e?{key:e,fn:null}:"function"==typeof e?{key:r,fn:e}:{key:void 0,fn:null}}function r(t,e,i){return r=>{if(!r||!i||!t.fn&&!e.fn)return r;let n=!1,a=r.map(i=>{let r=t.fn&&t.key&&!(t.key in i),a=e.fn&&e.key&&!(e.key in i);if(!r&&!a)return i;n=!0;let h={...i};return r&&(h[t.key]=t.fn(i)),a&&(h[e.key]=e.fn(i)),h});return n?a:r}}function n(t,e){return t.__legendMarginReservedFor===e}function a(t,e){return{legendLayout:t.legendLayout,axisChrome:c({showAxes:t.showAxes,xLabel:t.xLabel,yLabel:t.yLabel,yLabelRight:t.yLabelRight,axes:t.axes}),legendMarginReserved:n(t,e)}}function h(t,e){return{legendLayout:t.legendLayout,axisChrome:g({showAxes:t.showAxes,projection:t.projection,hasCategoryLabel:!!(t.categoryLabel??t.oLabel),hasValueLabel:!!(t.valueLabel??t.rLabel)}),legendMarginReserved:n(t,e)}}function s(t){return new Set(Array.isArray(t)?t:[t])}function l(t){for(let e of t){if(void 0!==e._targetOpacity){let t=e._targetOpacity;e.style={...e.style||{},opacity:0===t?0:t},e._targetOpacity=void 0}if("point"===e.type)void 0!==e._targetX&&(e.x=e._targetX,e.y=e._targetY,void 0!==e._targetR&&(e.r=e._targetR),e._targetX=void 0,e._targetY=void 0,e._targetR=void 0);else if("glyph"===e.type)void 0!==e._targetX&&(e.x=e._targetX,e.y=e._targetY,void 0!==e._targetR&&(e.size=e._targetR),e._targetX=void 0,e._targetY=void 0,e._targetR=void 0);else if("rect"===e.type||"heatcell"===e.type)void 0!==e._targetX&&(e.x=e._targetX,e.y=e._targetY,e.w=e._targetW,e.h=e._targetH,e._targetX=void 0,e._targetY=void 0,e._targetW=void 0,e._targetH=void 0);else if("candlestick"===e.type)void 0!==e._targetX&&(e.x=e._targetX,void 0!==e._targetOpenY&&(e.openY=e._targetOpenY),void 0!==e._targetCloseY&&(e.closeY=e._targetCloseY),void 0!==e._targetHighY&&(e.highY=e._targetHighY),void 0!==e._targetLowY&&(e.lowY=e._targetLowY),e._targetX=void 0,e._targetOpenY=void 0,e._targetCloseY=void 0,e._targetHighY=void 0,e._targetLowY=void 0);else if("line"===e.type||"area"===e.type){if(e._introClipFraction=void 0,"line"===e.type&&e._targetPath){for(let t=0;e.path.length>t;t++)e.path[t]=e._targetPath[t];e._prevPath=void 0,e._targetPath=void 0}if("area"===e.type){if(e._targetTopPath)for(let t=0;e.topPath.length>t;t++)e.topPath[t]=e._targetTopPath[t];if(e._targetBottomPath)for(let t=0;e.bottomPath.length>t;t++)e.bottomPath[t]=e._targetBottomPath[t];e._prevTopPath=void 0,e._prevBottomPath=void 0,e._targetTopPath=void 0,e._targetBottomPath=void 0}}}}function u(t){for(let e of t){if(void 0!==e._targetOpacity){let t=e._targetOpacity;e.style={...e.style||{},opacity:0===t?0:t},e._targetOpacity=void 0}"point"===e.type?void 0!==e._targetX?(e.x=e._targetX,e.y=e._targetY,void 0!==e._targetR&&(e.r=e._targetR),e._targetX=void 0,e._targetY=void 0,e._targetR=void 0):void 0!==e._targetR&&(e.r=e._targetR,e._targetR=void 0):"rect"===e.type?void 0!==e._targetX&&(e.x=e._targetX,e.y=e._targetY,e.w=e._targetW,e.h=e._targetH,e._targetX=void 0,e._targetY=void 0,e._targetW=void 0,e._targetH=void 0):"wedge"===e.type&&void 0!==e._targetStartAngle&&(e.startAngle=e._targetStartAngle,e.endAngle=e._targetEndAngle,e._targetStartAngle=void 0,e._targetEndAngle=void 0)}}function o(t,e,i){return"exact"===i?function(t,e){let i=t.domain(),r=i[0],n=i[i.length-1],a=r instanceof Date,h=r instanceof Date?r.getTime():r,s=n instanceof Date?n.getTime():n;if(2>e||h===s)return a?[new Date(h),new Date(s)]:[h,s];let l=(s-h)/(e-1),u=Array(e);for(let t=0;e>t;t++){let i=t===e-1?s:h+t*l;u[t]=a?new Date(i):i}return u}(t,e):t.ticks(e)}import{filterSparseArray as d,resolveOrdinalAxisChrome as g,resolveXYAxisChrome as c}from"./c-ODG6TFSY.min.js";var _=class{constructor(){this._min=1/0,this._max=-1/0,this._dirty=!1}push(t){Number.isFinite(t)&&(this._min>t&&(this._min=t),t>this._max&&(this._max=t))}evict(t){(t===this._min||t===this._max)&&(this._dirty=!0)}recalculate(t,e){this._min=1/0,this._max=-1/0;for(let i of t){let t=e?e(i):i;Number.isFinite(t)&&(this._min>t&&(this._min=t),t>this._max&&(this._max=t))}this._dirty=!1}clear(){this._min=1/0,this._max=-1/0,this._dirty=!1}get extent(){return[this._min,this._max]}get min(){return this._min}get max(){return this._max}get dirty(){return this._dirty}},f=class{constructor(i,r){this.lastBoundedData=null,this.chunkTimer=null,this.pushBuffer=[],this.flushScheduled=!1,this.callback=i,this.chunkThreshold=t(r?.chunkThreshold),this.chunkSize=e(r?.chunkSize)}updateChunkOptions(i){this.chunkThreshold=t(i.chunkThreshold),this.chunkSize=e(i.chunkSize)}clearLastData(){this.lastBoundedData=null,this.pushBuffer=[],this.flushScheduled=!1,null!==this.chunkTimer&&(cancelAnimationFrame(this.chunkTimer),this.chunkTimer=null)}setBoundedData(t){if(t=d(t),this.lastBoundedData===t)return;if(this.lastBoundedData=t,null!==this.chunkTimer&&(cancelAnimationFrame(this.chunkTimer),this.chunkTimer=null),this.chunkThreshold>=t.length)return void this.callback({inserts:t,bounded:!0});this.callback({inserts:t.slice(0,this.chunkSize),bounded:!0,totalSize:t.length});let e=this.chunkSize,i=()=>{if(e>=t.length)return void(this.chunkTimer=null);if(t!==this.lastBoundedData)return void(this.chunkTimer=null);let r=Math.min(e+this.chunkSize,t.length);this.callback({inserts:t.slice(e,r),bounded:!1}),e=r,this.chunkTimer=t.length>e?requestAnimationFrame(i):null};this.chunkTimer=t.length>e?requestAnimationFrame(i):null}setReplacementData(t){if(t=d(t),this.lastBoundedData=t,null!==this.chunkTimer&&(cancelAnimationFrame(this.chunkTimer),this.chunkTimer=null),this.pushBuffer=[],this.flushScheduled=!1,this.chunkThreshold>=t.length)return void this.callback({inserts:t,bounded:!0,preserveCategoryOrder:!0});this.callback({inserts:t.slice(0,this.chunkSize),bounded:!0,preserveCategoryOrder:!0,totalSize:t.length});let e=this.chunkSize,i=()=>{if(e>=t.length)return void(this.chunkTimer=null);if(t!==this.lastBoundedData)return void(this.chunkTimer=null);let r=Math.min(e+this.chunkSize,t.length);this.callback({inserts:t.slice(e,r),bounded:!1}),e=r,this.chunkTimer=t.length>e?requestAnimationFrame(i):null};this.chunkTimer=t.length>e?requestAnimationFrame(i):null}flushPushBuffer(){if(this.flushScheduled=!1,0===this.pushBuffer.length)return;let t=this.pushBuffer;this.pushBuffer=[],this.callback({inserts:t,bounded:!1})}scheduleFlush(){this.flushScheduled||(this.flushScheduled=!0,queueMicrotask(()=>this.flushPushBuffer()))}push(t){null==t||"object"!=typeof t||(this.pushBuffer.push(t),this.scheduleFlush())}pushMany(t){if(0===t.length)return;let e=0;for(let i=0;t.length>i;i++){let r=t[i];null==r||"object"!=typeof r||(this.pushBuffer.push(r),e++)}0!==e&&this.scheduleFlush()}flush(){this.flushPushBuffer()}clear(){null!==this.chunkTimer&&(cancelAnimationFrame(this.chunkTimer),this.chunkTimer=null),this.lastBoundedData=null,this.pushBuffer=[],this.flushScheduled=!1}};export{f as DataSourceAdapter,_ as IncrementalExtent,s as toIdSet,l as snapXYIntroTargets,u as snapOrdinalIntroTargets,o as ticksForMode,i as resolveAnnotationAccessor,r as buildEnrichAnnotationData,a as xyFrameLegendOptions,h as ordinalFrameLegendOptions};
|
package/dist/c-CGQAQWBV.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0})}function t(){return Object.create(null)}function n(e,t){return e.slice(0,t+1).map(e=>e.replaceAll("%","%25").replaceAll(">","%3E")).join(">")}function r(e,t,n){return t.has(e)?"node":(function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(r=n.nodeIdsBySection,o=e)?r[o]:void 0)?"section":"global";var r,o}function o(n,o,i){let s=[],u=new Set(o.nodes.map(e=>e.id)),a=new Set;for(let e of o.measureValues){let t=n.measures[e.measureId];if(!t)continue;let o=r(e.subjectId,u,i);s.push({measureId:e.measureId,subjectId:e.subjectId,subjectKind:o,value:e.value,status:e.status,unitKind:t.unitKind,countUnit:t.countUnit,timeDenominator:t.timeDenominator}),"section"===o&&a.add(`${e.measureId}\0${e.subjectId}`)}let c=t();for(let t of o.nodes)e(c,t.id,t);let d=t(),l=t();for(let e of s){if("node"!==e.subjectKind)continue;let t=c[e.subjectId];if(!t?.sectionId)continue;let n=`${e.measureId}\0${t.sectionId}`;a.has(n)||(d[n]=(d[n]??0)+e.value,"exact"!==e.status?l[n]=e.status:l[n]||(l[n]="exact"))}for(let[e,t]of Object.entries(d)){let r=e.split("\0"),o=r[0],i=n.measures[o];i&&s.push({measureId:o,subjectId:r[1],subjectKind:"section",value:t,status:l[e]??"exact",unitKind:i.unitKind,countUnit:i.countUnit,timeDenominator:i.timeDenominator})}return{entries:s}}function i(e,t,n){return e.entries.find(e=>e.measureId===t&&e.subjectId===n)}function s(e,t=[],n){let r=void 0===n?void 0:new Set("string"==typeof n?[n]:n),o=t.filter(e=>!e.missingPrehistory&&void 0!==e.partition&&r?.has(e.partition)),i=new Set(o.map(e=>e.id)),s=new Set(o.map(e=>e.entityId)),u=new Map,a=0;for(let t of e){if(void 0!==n&&"string"==typeof t.roles.occurrence&&!i.has(t.roles.occurrence))continue;let e=Object.entries(t.entityWeights);0===e.length&&void 0===n&&(a+=t.entityCount);for(let[t,r]of e)(void 0===n||s.has(t))&&u.set(t,r)}return[...u.values()].reduce((e,t)=>e+t,a)}function u(e){let t=e.spec.comparison;if(!t)return;let n=t.partitions.map(n=>{let r=i(e.ledger,t.denominatorMeasureId,n)?.value??0,o={};return o["repeated-state-episode"]=s(e.motifs.matches.filter(e=>"repeated-state-episode"===e.template),e.source.occurrences,n),{partition:n,assigned:r,motifUsers:o,outcomes:{purchases:i(e.ledger,"purchases",n)?.value??0}}});return{partitions:[...t.partitions],denominatorMeasureId:t.denominatorMeasureId,referencePartition:t.referencePartition,rows:n}}function a(e,t){let n=e.spec.comparison?.denominatorMeasureId??e.spec.motifs.denominatorRef??"assigned";return i(e.ledger,n,t)?.value}function c(e,t,n){return 0===n||1e4*e%n!=0?Math.round((t-e)/Math.max(n,1)*1e4):1e4*(t-e)/n}function d(e,t){return t.length>0&&e.some((n,r)=>t.every((t,n)=>e[r+n]===t))}function l(e){let t=[];for(let n of e.occurrences??[]){if(n.missingPrehistory)continue;let e=n.nodePath;for(let r=0;e.length-1>r;r++)t.push({from:e[r],to:e[r+1],via:r>0?e[r-1]:void 0,occurrenceIds:[n.id]})}return{hops:t,graphAdjacency:e.edges.map(e=>({source:e.source,target:e.target,edgeId:e.id}))}}export{s as countMotifEntities,e as setOwnValue,t as idDictionary,n as prefixIdFor,o as buildLedger,u as buildComparison,a as assignedDenominator,c as signedDifferenceBps,d as containsRoute,l as buildRouteSupportIndex};
|
package/dist/c-CPV4N35K.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e){return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16)]}function a(e,a,r){let f=e=>e.toString(16).padStart(2,"0");return`#${f(e)}${f(a)}${f(r)}`}function r(r){let f=r.map(e),t=f.length-1;return e=>{if(Number.isNaN(e)&&(e=0),0>=e){let[e,r,t]=f[0];return a(e,r,t)}if(e>=1){let[e,r,d]=f[t];return a(e,r,d)}let r=e*t,d=Math.floor(r),n=r-d,[l,b,i]=f[d],[o,c,u]=f[d+1];return a(Math.round(l+(o-l)*n),Math.round(b+(c-b)*n),Math.round(i+(u-i)*n))}}function f(e){return e&&Object.prototype.hasOwnProperty.call(A,e)?A[e]:o}function t(e,a,r=$){if(e&&"object"==typeof e&&!Array.isArray(e)){let a=Object.values(e).filter(e=>"string"==typeof e&&e.length>0);if(a.length>0)return a}if(Array.isArray(e)&&e.length>0)return e;if("string"==typeof e){let a=Object.prototype.hasOwnProperty.call(W,e)?W[e]:void 0;if(Array.isArray(a)&&a.length>0)return a}return a&&a.length>0?a:r}function d(e,a,r){if("function"==typeof a){let f=a(e);return r&&f&&"string"==typeof f&&!function(e){let a=e.toLowerCase();return a.startsWith("#")||a.startsWith("rgb")||a.startsWith("hsl")||L.has(a)}(f)?r(f):f}let f=e?.[a]+"";return r?r(f):$[Math.abs(function(e){let a=0;for(let r=0;e.length>r;r++)a=(a<<5)-a+e.charCodeAt(r),a&=a;return Math.abs(a)}(f))%$.length]}function n(e,a){if(null==a||!Object.prototype.hasOwnProperty.call(e,a))return;let r=e[a];return"string"==typeof r&&r.length>0?r:void 0}function l(e,a,r="category10"){if(r&&"object"==typeof r&&!Array.isArray(r)){let e=r;return a=>n(e,a)??"#999"}let f=Array.from(new Set(e.map(e=>e?.[a]).filter(e=>null!=e).map(e=>e+""))),t=f.every(e=>!isNaN(Number(e)));if(Array.isArray(r))return I().domain(f).range(r).unknown("#999");let d=Object.prototype.hasOwnProperty.call(W,r)?W[r]:W.category10;if(t&&"function"==typeof d){let e=-1/0;for(let a of f){let r=Number(a);r>e&&(e=r)}return a=>d(0===e?0:Number(a)/e)}{let e=Array.isArray(d)?d:$;return I().domain(f).range(e).unknown("#999")}}function b(e,a,r=[3,20],f){let t;if(t="function"==typeof a?a(e):e?.[a],!f)return t;let[d,n]=f,[l,b]=r;if(n===d)return(l+b)/2;let i=(t-d)/(n-d);return 0>i?i=0:i>1&&(i=1),l+i*(b-l)}var i=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],o=r(["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"]),c=r(["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"]),u=r(["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"]),s=r(["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"]),g=r(["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"]),y=r(["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"]),h=r(["#440154","#482878","#3e4989","#31688e","#26828e","#1f9e89","#35b779","#6ece58","#b5de2b","#fde725"]),p=r(["#0d0887","#41049d","#6a00a8","#8f0da4","#b12a90","#cb4679","#e16462","#f1844b","#fca636","#fcce25","#f0f921"]),m=r(["#000004","#160b39","#420a68","#6a176e","#932667","#bc3754","#dd513a","#f3771a","#fca50a","#f6d746","#fcffa4"]),k=r(["#000004","#140e36","#3b0f70","#641a80","#8c2981","#b73779","#de4968","#f7705c","#fe9f6d","#fecf92","#fcfdbf"]),w=r(["#00224e","#123570","#3b496c","#575d6d","#707173","#8a8678","#a59c74","#c3b369","#e1cc55","#fee838","#ffea46"]),v=r(["#23171b","#4a58dd","#3f9ee9","#46c7af","#7eed5a","#cdf134","#fbb91f","#f56918","#c52f06","#7a0403"]),A={blues:o,reds:c,greens:u,viridis:h,oranges:s,purples:g,greys:y,plasma:p,inferno:m,magma:k,cividis:w,turbo:v},q=r(["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"]),O=r(["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"]),j=r(["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"]),N=r(["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"]),M=r(["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"]),P=r(["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"]),S=r(["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]);import{scaleOrdinal as I}from"d3-scale";var W={category10:i,tableau10:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],...A},$=i,C="#007bff",x=["#4e79a7","#f28e2b","#e15759","#76b7b2","#59a14f","#edc948","#b07aa1","#ff9da7","#9c755f","#bab0ac"],z=["#f0f0f0","#b5d4ea","#f4c2a1","#b8dab2","#d4b5e0","#f9e0a2","#a8d8d8"],L=new Set(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","transparent","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"]);export{i as schemeCategory10,h as interpolateViridis,A as SEQUENTIAL_INTERPOLATORS,f as getSequentialInterpolator,q as interpolateRdBu,O as interpolatePiYG,j as interpolatePRGn,N as interpolateBrBG,M as interpolateRdYlBu,P as interpolateRdYlGn,S as interpolateSpectral,W as COLOR_SCHEMES,$ as DEFAULT_COLORS,C as DEFAULT_COLOR,t as resolveCategoricalPalette,x as STREAMING_PALETTE,z as DEPTH_PALETTE_COLORS,d as getColor,n as resolveExplicitColor,l as createColorScale,b as getSize};
|
package/dist/c-DIPEYUOW.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e){let t=new Map(e.nodes.map(e=>[e.id,[]])),o=new Map(e.nodes.map(e=>[e.id,[]]));for(let n of e.edges)t.get(n.source).push(n),o.get(n.target).push(n);return{outgoing:t,incoming:o}}function t(e,t){let o=new Set,n=[];for(let i of t){if(o.has(i))continue;o.add(i);let t=[{node:i,next:0}];for(;t.length;){let i=t[t.length-1],r=e[i.node][i.next++];void 0===r?(n.push(i.node),t.pop()):o.has(r)||(o.add(r),t.push({node:r,next:0}))}}return n}function o(e){let o=e.nodes.map(e=>e.id).sort(),n=new Map(o.map((e,t)=>[e,t])),i=o.map(()=>[]),r=o.map(()=>[]);for(let t of e.edges){let e=n.get(t.source),o=n.get(t.target);i[e].push(o),r[o].push(e)}let s=new Set,d=[];for(let e of t(i,o.map((e,t)=>t)).reverse()){if(s.has(e))continue;let t=[],n=[e];for(s.add(e);n.length;){let e=n.pop();t.push(o[e]);for(let t of r[e])s.has(t)||(s.add(t),n.push(t))}d.push(t.sort())}return d.sort((e,t)=>e[0].localeCompare(t[0]))}function n(t,o,n="rooted-traversal:id-asc"){let{outgoing:i}=e(t),r=n.endsWith("id-desc")?-1:1;for(let e of i.values())e.sort((e,t)=>r*e.id.localeCompare(t.id));let s=new Set(o),d=[],a=[...new Set(o)],c=e=>{let t=[{node:e,next:0}];for(;t.length;){let e=t[t.length-1],o=i.get(e.node)?.[e.next++];o?s.has(o.target)||(s.add(o.target),d.push([o.target,o.id]),t.push({node:o.target,next:0})):t.pop()}};for(let e of a)c(e);for(let e of t.nodes.map(e=>e.id).sort())s.has(e)||(a.push(e),s.add(e),c(e));let l=d.map(([,e])=>e),u=new Set(l);return{forest:{kind:"rooted-backbone",roots:a,rankingPolicyId:n,backboneEdgeIds:l,primaryParentEdgeIdByNode:Object.fromEntries(d)},residual:{originalEdgeIds:t.edges.map(e=>e.id),residualEdgeIds:t.edges.filter(e=>!u.has(e.id)).map(e=>e.id)}}}function i(e,t,o){if("ordinal"!==t.coordinate.kind)return!0;let n=e.nodes.find(e=>e.id===o);return!(!n?.sectionId||!t.coordinate.sectionIds.includes(n.sectionId))}function r(e,t){return[...e].sort((e,o)=>"id-asc"===t?e.id.localeCompare(o.id):o.id.localeCompare(e.id))}function s(e,t){let o=new Set(e.originalEdgeIds),n=new Set(t.backboneEdgeIds),i=new Set(e.residualEdgeIds);if(n.size!==t.backboneEdgeIds.length)throw Error("duplicate backbone edge id");if(i.size!==e.residualEdgeIds.length)throw Error("duplicate residual edge id");for(let e of n){if(i.has(e))throw Error(`edge ${e} is both backbone and residual`);if(!o.has(e))throw Error(`backbone edge ${e} is not original`)}for(let e of i)if(!o.has(e))throw Error(`residual edge ${e} is not original`);if(n.size+i.size!==o.size)throw Error("original edge IDs != backbone ⊎ residual")}function d(e,t){return e.sectionByNode.get(t)}function a(e,t){let o=new Set,n=[];for(let i of t){let t=d(e,i);!t||o.has(t)||(o.add(t),n.push(t))}return n}function c(e,t,o){return e.pairs.get(t)?.get(o)??[]}function l(e){return e.entityCount??1}function u(e,t){let o=[],n=0;for(let i of e)!i.nodePath.includes(t)||i.missingPrehistory||(o.push(i.entityId),n+=l(i));return{entityIds:o,entityCount:n}}function f(e,t,o,n,i,r){if(2>o.length)return;let{kept:s,truncation:d}=function(e,t){return null!=t&&e.length>t?{kept:e.slice(0,t),truncation:{disclosed:!0,omitted:e.length-t,fullCount:e.length}}:{kept:e}}(o,r),l=[t,...s],f=[];for(let o of s){let n="fan-out"===e?c(i,t,o):c(i,o,t);f.push(...n)}let p=a(i,[t,...o]),g=u(n.occurrences??[],t);return{id:`${e}:${t}`,template:e,roles:"fan-out"===e?{source:t,destinations:s}:{destination:t,sources:s},nodePath:l,edgeIds:f,startSectionId:p[0],completionSectionId:p[p.length-1],intersectSectionIds:p,entityIds:g.entityIds,entityWeights:S(),entityCount:g.entityCount,flags:{occurrence:g.entityIds.length>0,temporal:!1,trajectorySupported:g.entityIds.length>0,enriched:!1},truncation:d}}function p(e,t,o){return 1===t.length&&1===o.length}function g(e){return e.entityCount??1}function m(e,t,o){let n=t??"";e.partitionCounts.set(n,(e.partitionCounts.get(n)??0)+o)}function h(e,o){let n=e.nodes.map(e=>e.id).sort(),i=new Map(n.map((e,t)=>[e,t])),r=n.length,s=Array.from({length:n.length+1},()=>[]),d=s.map(()=>[]),a=(e,t)=>{s[e].push(t),d[t].push(e)};for(let t of e.edges)a(i.get(t.source),i.get(t.target));for(let e of o.roots)a(r,i.get(e));let c=t(s,[r]).reverse(),l=new Map(c.map((e,t)=>[e,t])),u=new Map([[r,r]]),f=(e,t)=>{for(;e!==t;)l.get(e)>l.get(t)?e=u.get(e):t=u.get(t);return e},p=!0;for(;p;){p=!1;for(let e of c.slice(1)){let t=d[e].filter(e=>u.has(e)).reduce(f);u.get(e)!==t&&(u.set(e,t),p=!0)}}return{...o,roots:[...new Set(o.roots)].sort(),status:e.nodes.some(e=>e.completeness&&"known"!==e.completeness)?"incomplete":"exact",immediateDominatorByNode:Object.fromEntries(n.flatMap((e,t)=>u.has(t)?[[e,u.get(t)===r?null:n[u.get(t)]]]:[])),reachableNodeIds:n.filter((e,t)=>u.has(t)),unreachableNodeIds:n.filter((e,t)=>!u.has(t))}}function y(e,t,o,n){e.push({kind:t,severity:"fatal",message:o,id:n})}function I(e,t){let o=[];"0.2"!==e.schemaVersion&&y(o,"schema-version","expected schemaVersion 0.2"),(!e.relations.directed||!0!==e.relations.edgeIdRequired)&&y(o,"relations","Phase 1 requires directed edges with ids"),"rooted-backbone"!==e.forest.display.kind&&"observed-prefix"!==e.forest.display.kind&&y(o,"forest","supported display kinds: rooted-backbone, observed-prefix"),"ordinal"!==e.coordinate.kind&&y(o,"coordinate","Phase 1 kernel uses ordinal sections");let n=S();for(let i of t.nodes)i.id?(n[i.id]&&y(o,"duplicate-node","duplicate node id",i.id),E(n,i.id,!0),"ordinal"===e.coordinate.kind&&i.sectionId&&!e.coordinate.sectionIds.includes(i.sectionId)&&y(o,"section-membership",`node section ${i.sectionId} is not in the coordinate`,i.id)):y(o,"node-id","node is missing id");let i=S();for(let e of t.edges)e.id?(i[e.id]&&y(o,"duplicate-edge","duplicate edge id",e.id),E(i,e.id,!0),n[e.source]||y(o,"dangling-source","edge source is not a node",e.id),n[e.target]||y(o,"dangling-target","edge target is not a node",e.id)):y(o,"edge-id","edge is missing id");for(let t of e.forest.display.roots??[])n[t]||y(o,"missing-root","display root is not a node",t);let r=e.forest.requiredPaths;if(r)if("directed-admitted"!==r.relationScopeId&&y(o,"required-path-scope","required paths use the full directed-admitted relation scope"),Array.isArray(r.roots)&&0!==r.roots.length)for(let e of r.roots)n[e]||y(o,"required-path-roots","required-path root is not a node",e);else y(o,"required-path-roots","required paths need declared roots");if("rooted-backbone"===e.forest.display.kind&&0===e.forest.display.roots.length&&y(o,"missing-root","rooted-backbone requires at least one root"),e.comparison&&(2>e.comparison.partitions.length&&y(o,"comparison","comparison requires at least two partitions"),e.measures[e.comparison.denominatorMeasureId]||y(o,"comparison-denominator","comparison denominatorMeasureId is not a declared measure")),null===(s=e.measures)||"object"!=typeof s||Array.isArray(s))y(o,"measures","measures must be an object");else for(let[t,n]of Object.entries(e.measures))"rate"===n.unitKind&&!n.timeDenominator&&y(o,"rate-denominator","rate measures require a timeDenominator",t);var s;for(let n of t.measureValues)e.measures[n.measureId]?Number.isFinite(n.value)||y(o,"non-finite-measure","measure value is not finite",n.measureId):y(o,"unknown-measure","measureValue refers to an undeclared measure",n.measureId);for(let e of t.occurrences??[])if(e.id&&e.entityId){void 0!==e.stepEntityCounts&&(!Array.isArray(e.stepEntityCounts)||e.stepEntityCounts.length!==e.nodePath.length||Array.from(e.stepEntityCounts).some(e=>!Number.isFinite(e)||0>e))&&y(o,"occurrence-step-counts","stepEntityCounts must contain one finite, nonnegative count per nodePath step",e.id);for(let t of e.nodePath)n[t]||y(o,"occurrence-node","occurrence path references a missing node",e.id)}else y(o,"occurrence","occurrence needs id and entityId");return{ok:o.every(e=>"fatal"!==e.severity),issues:o}}function k(e,t,o){let n=o.measures[e],i=o.measures[t];if(!n||!i)return{ok:!1,reason:"unknown-measure"};if(n.countUnit!==i.countUnit)return{ok:!1,reason:"count-unit-mismatch"};if("rate"===n.unitKind||"rate"===i.unitKind){if(n.unitKind!==i.unitKind)return{ok:!1,reason:"stock-or-capacity-cannot-compare-to-rate"};if(n.timeDenominator!==i.timeDenominator)return{ok:!1,reason:"rate-time-denominator-mismatch"}}return{ok:!0}}function b(e,t,o={}){let y=I(e,t);if(!y.ok)return{ok:!1,issues:y.issues};let k=o.generation??1,b=function(e,t){if("ordinal"!==e.coordinate.kind)return{kind:"ordinal",sectionIds:[],nodeIdsBySection:S()};let o=S();for(let t of e.coordinate.sectionIds)E(o,t,[]);for(let e of t.nodes){if(!e.sectionId)continue;let t=o[e.sectionId];t&&t.push(e.id)}return{kind:"ordinal",sectionIds:[...e.coordinate.sectionIds],nodeIdsBySection:o}}(e,t),M=function(e,t){let o=e.motifs.matchBudget,n=function(e){let t=new Map(e.nodes.map(e=>[e.id,new Set])),o=new Map(e.nodes.map(e=>[e.id,new Set])),n=new Map;for(let i of e.edges){t.get(i.target)?.add(i.source),o.get(i.source)?.add(i.target);let e=n.get(i.source);e||n.set(i.source,e=new Map);let r=e.get(i.target);r?r.push(i.id):e.set(i.target,[i.id])}return{incoming:new Map([...t].map(([e,t])=>[e,[...t]])),outgoing:new Map([...o].map(([e,t])=>[e,[...t]])),sectionByNode:new Map(e.nodes.map(e=>[e.id,e.sectionId])),pairs:n}}(t),i=[];for(let e of t.nodes){let r=f("fan-out",e.id,n.outgoing.get(e.id)??[],t,n,o);r&&i.push(r);let s=f("fan-in",e.id,n.incoming.get(e.id)??[],t,n,o);s&&i.push(s)}i.push(...function(e,t){let o=t.incoming,n=t.outgoing,i=[];for(let r of e.nodes){let s=o.get(r.id)??[],d=n.get(r.id)??[];if(1!==d.length)continue;let l=1===s.length&&p(0,o.get(s[0])??[],n.get(s[0])??[]);if(p(0,s,d)&&l)continue;let f=[r.id],g=r.id,m=new Set([g]);for(;;){let e=(n.get(g)??[])[0];if(!e||m.has(e)||(f.push(e),m.add(e),!p(0,o.get(e)??[],n.get(e)??[])))break;g=e}if(2>f.length)continue;let h=[];for(let e=0;f.length-1>e;e++)h.push(...c(t,f[e],f[e+1]));let y=a(t,f),I=u(e.occurrences??[],f[0]);i.push({id:"serial-chain:"+f.join(">"),template:"serial-chain",roles:{nodes:f,start:f[0],end:f[f.length-1]},nodePath:f,edgeIds:h,startSectionId:y[0],completionSectionId:y[y.length-1],intersectSectionIds:y,entityIds:I.entityIds,entityWeights:S(),entityCount:I.entityCount,flags:{occurrence:I.entityIds.length>0,temporal:!1,trajectorySupported:I.entityIds.length>0,enriched:!1}})}return i}(t,n)),i.push(...function(e,t){let o=[];for(let n of e.occurrences??[]){if(n.missingPrehistory)continue;let e=new Map,i=new Set;for(let[r,s]of n.nodePath.entries()){let c=e.get(s);if(null==c){e.set(s,r);continue}if(i.has(s))continue;i.add(s);let u=n.nodePath.slice(c,r+1),f=a(t,u),p=S();E(p,n.entityId,l(n)),o.push({id:`repeated-state-episode:${n.id}:${s}`,template:"repeated-state-episode",roles:{state:s,occurrence:n.id},nodePath:u,edgeIds:[],startSectionId:d(t,u[0]),completionSectionId:d(t,u[u.length-1]),intersectSectionIds:f,entityIds:[n.entityId],entityWeights:p,entityCount:l(n),flags:{occurrence:!0,temporal:!1,trajectorySupported:!0,enriched:!1}})}}return o}(t,n)),function(e,t){let o=t.occurrences??[];if(0!==o.length)for(let t of e){if("repeated-state-episode"===t.template)continue;let e=t.nodePath,n=S();for(let t of o)t.missingPrehistory||!e.some(e=>t.nodePath.includes(e))||E(n,t.entityId,l(t));let i=Object.keys(n);t.entityIds=i,t.entityWeights=n,t.entityCount=i.reduce((e,t)=>e+(n[t]??0),0),t.flags={...t.flags,occurrence:i.length>0,trajectorySupported:i.length>0}}}(i,t);let r=[];for(let e of t.occurrences??[])e.missingPrehistory&&(r.push({template:"serial-chain",occurrenceId:e.id,reason:"missing-prehistory"}),r.push({template:"repeated-state-episode",occurrenceId:e.id,reason:"missing-prehistory"}));let s=x.filter(e=>!q.includes(e));return{catalogId:e.motifs.catalogId,catalogVersion:e.motifs.catalogVersion,matches:i,incompleteCandidates:r,unsupportedTemplates:s}}(e,t),j=function(e,t){if(e.forest.display.rankingPolicyId?.startsWith("rooted-traversal"))return n(t,e.forest.display.roots??[],e.forest.display.rankingPolicyId);let o=t.edges.map(e=>e.id),s=e.forest.display.rankingPolicyId??"main-transport",{mode:d,order:a}=function(e){let[t,o]=e.split(":");return{mode:"tree-only"===t?"tree-only":"main-transport",order:"id-desc"===o?"id-desc":"id-asc"}}(s),c=o=>i(t,e,o.source)&&i(t,e,o.target),l=new Map;for(let e of t.nodes)l.set(e.id,[]);for(let e of t.edges)l.has(e.target)||l.set(e.target,[]),l.get(e.target).push(e);let u,f=S(),p=e.forest.display.roots&&e.forest.display.roots.length>0?e.forest.display.roots:t.nodes[0]?[t.nodes[0].id]:[],g=new Set(p);for(let e of t.nodes){if(g.has(e.id))continue;let t=r(l.get(e.id)??[],a),o=t.find(e=>c(e))??t[0];o&&E(f,e.id,o.id)}u="tree-only"===d?Object.values(f):t.edges.filter(e=>c(e)).map(e=>e.id);let m=new Set(u),h=o.filter(e=>!m.has(e));return{forest:{kind:"rooted-backbone",roots:[...p],rankingPolicyId:s,backboneEdgeIds:u,primaryParentEdgeIdByNode:f},residual:{residualEdgeIds:h,originalEdgeIds:o}}}(e,t);s(j.residual,j.forest);let A=P(e,t,b),B=function(e,t){let o=S();for(let t of e.nodes)E(o,t.id,t.completeness??"known");let n=S();for(let e of t.unsupportedTemplates)E(n,e,"unsupported-template");if(t.incompleteCandidates.length>0){let e=new Set(t.incompleteCandidates.map(e=>e.template));for(let t of e)E(n,t,"incomplete")}let i=t.matches.find(e=>e.truncation),r={nodes:o,motifs:n,traces:e.occurrences?.some(e=>e.missingPrehistory||!1===e.complete)?"incomplete":e.nodes.some(e=>"unknown"===e.completeness)?"unknown":"known"};return i?.truncation&&(r.truncation={disclosed:!0,template:i.template,omitted:i.truncation.omitted}),r}(t,M),N=C(t),V=function(e,t,o){return JSON.stringify([o,t.graphRef,t.revision,e],(e,t)=>t&&"object"==typeof t&&!Array.isArray(t)?Object.fromEntries(Object.keys(t).sort().map(e=>[e,t[e]])):t)}(e,t,k),O="observed-prefix"===e.forest.display.kind||(t.occurrences?.length??0)>0?function(e,t={}){function o(e){let t=[...e.children.keys()];return t.sort((t,o)=>{let n=e.children.get(t),i=e.children.get(o),r=s?n.partitionCounts.get(s)??0:1;return r>0!=(s?i.partitionCounts.get(s)??0:1)>0?r>0?-1:1:t.localeCompare(o)}),t}let n={id:"",stateId:"",prefix:[],children:new Map,occurrenceIds:[],entityCount:0,partitionCounts:new Map};for(let t of e){if(t.missingPrehistory)continue;let e=g(t),o=n;o.occurrenceIds.push(t.id),o.entityCount+=e,m(o,t.partition,e);for(let n of t.nodePath){let i=[...o.prefix,n],r=v(i,i.length-1),s=o.children.get(n);s||(s={id:r,stateId:n,prefix:i,children:new Map,occurrenceIds:[],entityCount:0,partitionCounts:new Map},o.children.set(n,s)),s.occurrenceIds.push(t.id),s.entityCount+=e,m(s,t.partition,e),o=s}}let i=[],r=[],s=t.referencePartition;return function e(t,n){if(t.id){let e=S();for(let[o,n]of t.partitionCounts)E(e,o,n);i.push({id:t.id,stateId:t.stateId,prefix:t.prefix,parentId:n,childIds:o(t).map(e=>t.children.get(e).id),entityCount:t.entityCount,occurrenceIds:[...t.occurrenceIds],partitionCounts:e}),r.push(t.id)}for(let n of o(t))e(t.children.get(n),t.id||null)}(n,null),{kind:"observed-prefix",rootIds:o(n).map(e=>n.children.get(e).id),nodes:i,order:r,referencePartition:s}}(t.occurrences??[],{referencePartition:"observed-prefix"===e.forest.display.kind?e.forest.display.referencePartition??e.comparison?.referencePartition:e.comparison?.referencePartition}):void 0,R={sourceGraphRef:t.graphRef,analysisRevision:V,spec:e,source:t,sections:b,motifs:M,forest:j.forest,residualEdges:j.residual,ports:N,ledger:A,completeness:B,provenance:{sourceRevision:t.revision,analysisRevision:V,generation:k,relationScope:"directed-admitted",motifCatalogVersion:e.motifs.catalogVersion,coordinatePolicy:"ordinal"===e.coordinate.kind?"ordinal:"+e.coordinate.sectionIds.join(","):"numeric:"+e.coordinate.field,forestRoots:[...e.forest.display.roots??j.forest.roots],rankingPolicyId:j.forest.rankingPolicyId,population:e.motifs.countUnit,temporalHorizon:e.temporal.kind,evidencePolicyId:e.evidencePolicyId},prefixForest:O,...e.forest.requiredPaths&&{requiredPaths:h(t,e.forest.requiredPaths)}};return R.comparison=w(R),{ok:!0,atlas:R,issues:y.issues}}import{buildComparison as w,buildLedger as P,buildRouteSupportIndex as C,idDictionary as S,prefixIdFor as v,setOwnValue as E}from"./c-FHBVFCQB.min.js";var M="0.2",x=["serial-chain","repeated-state-episode","fan-out","fan-in","split-rejoin-diamond","shared-upstream-source","connector-bypass"],j=["serial-chain","fan-out","fan-in"],q=[...j,"repeated-state-episode"];export{M as NETWORK_ATLAS_SCHEMA_VERSION,x as MOTIF_CATALOG_TEMPLATES,j as PHASE1_MOTIF_MATCHERS,q as PHASE2_MOTIF_MATCHERS,e as graphAdjacency,o as stronglyConnectedComponents,n as buildRootedForest,s as assertEdgeCoverage,I as validateAtlas,k as measuresAreComparable,b as prepareNetworkAtlas};
|
package/dist/c-E4JDJH4I.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e({target:e,children:a}){let[s,l]=t.useState({requestedTarget:e,resolved:!1,target:null});return t.useEffect(()=>{let t=function(e){return"string"==typeof e?document.getElementById(e):"function"==typeof e?e():e}(e);"production"!==process.env.NODE_ENV&&null==t&&"string"==typeof e&&console.warn(`[Semiotic] accessibleTable portal target "${e}" was not found. Rendering the data-summary controls inline instead.`),l({requestedTarget:e,resolved:!0,target:t})},[e]),s.requestedTarget===e&&s.resolved?s.target?r(a,s.target):o(n,{children:a}):null}import*as t from"react";import{createPortal as r}from"react-dom";import{Fragment as n,jsx as o}from"react/jsx-runtime";export{e as default};
|
package/dist/c-E72OTUZU.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function t(t,e){let[l,i,o]=f(t,e);return.299*l+.587*i+.114*o>128?"#000":"#fff"}function e(t){return Number.isInteger(t)?t+"":100>Math.abs(t)?1>Math.abs(t)?t.toPrecision(3):t.toFixed(1):t.toFixed(0)}import{areaCanvasRenderer as l}from"./c-LESEUVC5.min.js";import{lineCanvasRenderer as i}from"./c-R2P4RR7Q.min.js";import{barCanvasRenderer as o}from"./c-SJMWU6UX.min.js";import{pointCanvasRenderer as r}from"./c-MOKJOIPE.min.js";import{symbolCanvasRenderer as a}from"./c-PSKKFZNP.min.js";import{glyphCanvasRenderer as n}from"./c-KKPMHAZC.min.js";import{renderRectPulse as s}from"./c-W4ZUKSEQ.min.js";import{isHatchFill as h,parseCanvasColor as f,resolveCSSColor as c,resolveCanvasPaint as m}from"./c-MB6CV5NC.min.js";var y=(l,i,o,r)=>{let a=i.filter(t=>"heatcell"===t.type);l.save();try{let i=c(l,"var(--semiotic-font-family, sans-serif)")||"sans-serif";for(let o of a){let r=o.style;null!=r?.opacity&&(l.globalAlpha=r.opacity);let a=m(l,o.fill,"#4e79a7");l.fillStyle=a,l.fillRect(o.x,o.y,o.w,o.h);let n=Math.max(0,r?.strokeWidth??1);if(n>0&&(l.strokeStyle=c(l,r?.stroke??"var(--semiotic-surface, #fff)"),l.lineWidth=n,l.strokeRect(o.x,o.y,o.w,o.h)),s(l,o),l.globalAlpha=1,o.showValues&&null!=o.value){if(20>o.w||20>o.h)continue;let r=o.valueFormat?o.valueFormat(o.value):e(o.value),n=Math.max(10,Math.min(16,.3*Math.min(o.w,o.h))),s=o.x+o.w/2,h=o.y+o.h/2;l.fillStyle=t(l,"string"==typeof a?a:"#4e79a7"),l.font=`${n}px ${i}`,l.textAlign="center",l.textBaseline="middle",l.fillText(r,s,h)}}}finally{l.restore()}},d=(t,e,l,i)=>{for(let l of e){if("candlestick"!==l.type)continue;let e=l;t.save();let o=(e._decayOpacity??1)*(e.style?.opacity??1);1!==o&&(t.globalAlpha=o);let r=c(t,e.wickColor)||e.wickColor,a=60>i.height,n=a?Math.max(e.wickWidth,2):e.wickWidth,s=()=>{t.beginPath(),t.moveTo(e.x,e.highY),t.lineTo(e.x,e.lowY),t.strokeStyle=r,t.lineWidth=n,t.stroke()};if(a||s(),e.isRange){let l=e.dotRadius??Math.max(2,Math.min(e.bodyWidth/2,.12*i.height)),o=m(t,h(e.style?.fill)?e.style.fill:e.wickColor,e.wickColor);t.fillStyle=o,t.beginPath(),t.arc(e.x,e.highY,l,0,2*Math.PI),t.fill(),t.beginPath(),t.arc(e.x,e.lowY,l,0,2*Math.PI),t.fill()}else if(e.bodyWidth>0){let l=Math.min(e.openY,e.closeY),i=Math.abs(e.openY-e.closeY),o=e.isUp?e.upColor:e.downColor,r=m(t,h(e.style?.fill)?e.style.fill:o,o),a="string"==typeof r?r:c(t,e.wickColor)||e.wickColor;t.fillStyle=r,t.fillRect(e.x-e.bodyWidth/2,l,e.bodyWidth,Math.max(i,1)),t.strokeStyle=a,t.lineWidth=1,t.strokeRect(e.x-e.bodyWidth/2,l,e.bodyWidth,Math.max(i,1))}a&&s(),t.restore()}},u=r,p=(t,e,l,i)=>{o(t,e,l,i);let r=e.filter(t=>"rect"===t.type);if(2>r.length)return;let a=r[0].datum,n=a?._connectorStroke;if(n){t.save(),t.strokeStyle=c(t,n)||n,t.lineWidth=a?._connectorWidth??1,t.setLineDash([]);for(let e=0;r.length-1>e;e++){let i=r[e],o=r[e+1],a=i.datum,n=o.datum;if(null==a?.cumEnd||null==n?.baseline)continue;let s=l.y(a.cumEnd),h=i.x+i.w,f=o.x;t.beginPath(),t.moveTo(h,s),t.lineTo(f,s),t.stroke()}t.restore()}},x={chartType:"custom",buildScene:()=>[],canvasRenderers:[l,o,y,i,r,a,n,d,u,p]};export{y as heatmapCanvasRenderer,d as candlestickCanvasRenderer,u as swarmCanvasRenderer,p as waterfallCanvasRenderer,x as customXYPlugin};
|
package/dist/c-E7I2L7CU.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function n(n,t){return new e(n,t)}async function t(t){try{return await(import(t.packageName))}catch(e){throw n(t,e)}}var e=class extends Error{constructor(n,t){super(`${n.engine} is an optional Semiotic physics engine. Install ${n.packageName} to use ${n.importPath}: ${n.installCommand}`),this.name="PhysicsOptionalEngineDependencyError",this.details=n,t&&(this.cause=t)}};export{e as PhysicsOptionalEngineDependencyError,n as optionalEngineDependencyError,t as loadOptionalPhysicsPeer};
|
package/dist/c-ELDWAO2V.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function t(t){return Math.round(100*t)/100}function e(e){let l=[0,0,0,0],r=0;for(let[t,n]of e)null!==n&&(r++,l[0]+=t,l[1]+=n,l[2]+=t*t,l[3]+=t*n);let n=r*l[2]-l[0]*l[0],o=0===n?0:t((r*l[3]-l[0]*l[1])/n),u=t(l[1]/r-o*l[0]/r);return{points:e.map(([e])=>[t(e),t(o*e+u)]),equation:[o,u]}}function l(e,l=2){let r=[],n=[],o=l+1;for(let t=0;o>t;t++){let l=0;for(let[r,n]of e)null!==n&&(l+=r**t*n);r.push(l);let u=[];for(let l=0;o>l;l++){let r=0;for(let[n,o]of e)null!==o&&(r+=n**(t+l));u.push(r)}n.push(u)}n.push(r);let u=function(t,e){let l=t,r=t.length-1,n=[e];for(let t=0;r>t;t++){let e=t;for(let n=t+1;r>n;n++)Math.abs(l[t][n])>Math.abs(l[t][e])&&(e=n);for(let n=t;r+1>n;n++){let r=l[n][t];l[n][t]=l[n][e],l[n][e]=r}for(let e=t+1;r>e;e++)for(let n=r;n>=t;n--)l[n][e]-=l[n][t]*l[t][e]/l[t][t]}for(let t=r-1;t>=0;t--){let e=0;for(let o=t+1;r>o;o++)e+=l[o][t]*n[o];n[t]=(l[r][t]-e)/l[t][t]}return n}(n,o).map(t);return{points:e.map(([e])=>[t(e),t(u.reduce((t,l,r)=>t+l*e**r,0))]),equation:[...u].reverse()}}function r(t){let e=t.length,l=0,r=0,n=0,o=0;for(let[e,u]of t)l+=e,r+=u,n+=e*e,o+=e*u;let u=e*n-l*l;if(1e-12>Math.abs(u))return null;let f=(e*o-l*r)/u,a=(r-f*l)/e;return t=>a+f*t}function n(t,e){let l=t.length,r=t.map(([t,l])=>l-e(t)).reduce((t,e)=>t+e*e,0),n=Math.sqrt(r/Math.max(l-2,1)),o=t.reduce((t,e)=>t+e[0],0)/l,u=t.reduce((t,e)=>t+(e[0]-o)**2,0);return{se:n,meanX:o,ssX:u}}function o(t){return.99>t?.95>t?.9>t?1:1.645:1.96:2.576}export{e as linearRegression,l as polynomialRegression,r as fitLinearForForecast,n as forecastIntervalStats,o as confidenceZScore};
|
package/dist/c-EUBTECGM.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function t(t,e,n){return r(t,e,n)}function e(t,e){let r=e&&"object"==typeof e&&!Array.isArray(e)?e:void 0;return 0===t.length?t=>r&&n(r,t)||"#4e79a7":e=>{if(r){let t=n(r,e);if(t)return t}let o=0;for(let t=0;e.length>t;t++)o=31*o+e.charCodeAt(t)|0;return t[Math.abs(o)%t.length]??"#4e79a7"}}import{resolveCategoricalPalette as r,resolveExplicitColor as n}from"./c-CPV4N35K.min.js";export{t as resolveCustomLayoutPalette,e as buildResolveColor};
|