zframes 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1901 -215
- package/package.json +4 -4
- package/runtime/assets/bar-chart-DmyKFv_O.js +1 -0
- package/runtime/assets/{bitcoin-dominance-CweHlZx7.js → bitcoin-dominance-Y-pfXAWg.js} +1 -1
- package/runtime/assets/{breakeven-CG9rKwgE.js → breakeven-D5o1aZeG.js} +1 -1
- package/runtime/assets/{breathing-cDundHq6.js → breathing-C3xWrMh-.js} +1 -1
- package/runtime/assets/btc-block-size-bars-Dm4d1uP6.js +1 -0
- package/runtime/assets/{btc-blocks-Do_nySHd.js → btc-blocks-Dh75DtBl.js} +1 -1
- package/runtime/assets/{btc-difficulty-vNbz5uRo.js → btc-difficulty-DT6GcCi7.js} +1 -1
- package/runtime/assets/btc-difficulty-chart-D6G_nIaV.js +1 -0
- package/runtime/assets/{btc-fees-BmADLsmK.js → btc-fees-CAwJQaIo.js} +1 -1
- package/runtime/assets/btc-hashrate-CWvKwoGY.js +1 -0
- package/runtime/assets/{btc-mempool-CTwbkMUR.js → btc-mempool-C_PwdChj.js} +1 -1
- package/runtime/assets/{btc-shared-DeqDaCze.js → btc-shared-yOWoU9Im.js} +1 -1
- package/runtime/assets/bubbles-shared-DY914nhm.js +1 -0
- package/runtime/assets/{calculator-mvv6XpQC.js → calculator-DmCi3Diy.js} +1 -1
- package/runtime/assets/capital-structure-bars-CCL6FBZT.js +1 -0
- package/runtime/assets/chain-activity-DmVXPTCW.js +1 -0
- package/runtime/assets/chain-activity-bars-C2_6k9uI.js +1 -0
- package/runtime/assets/chain-activity-scatter-KDstJ2gQ.js +1 -0
- package/runtime/assets/chain-price-movers-C7cM87Np.js +1 -0
- package/runtime/assets/chart-utils-DGogNvJT.js +1 -0
- package/runtime/assets/checklist-aIHO99Oy.js +1 -0
- package/runtime/assets/{clock-Cjnwi03W.js → clock-RTIdbX_o.js} +1 -1
- package/runtime/assets/coin-momentum-heatmap-BqpZC5MD.js +1 -0
- package/runtime/assets/coin-momentum-scatter-BLQuQ5y9.js +1 -0
- package/runtime/assets/{coin-movers-Bcx1XR0F.js → coin-movers-BcLGwl1y.js} +1 -1
- package/runtime/assets/{countdown-Cdi5gSSu.js → countdown-DiZVeLK1.js} +1 -1
- package/runtime/assets/custom-data-BgQF-y2R.js +1 -0
- package/runtime/assets/{cycle-shared-BOGcJDzT.js → cycle-shared-XoGVsOjC.js} +1 -1
- package/runtime/assets/{cycle-signals-CS629ZDc.js → cycle-signals-1fCJGzfH.js} +1 -1
- package/runtime/assets/cycle-valuation-composite-BBA7wxL2.js +1 -0
- package/runtime/assets/d3-ibrLIlQc.js +1 -0
- package/runtime/assets/{daily-analysis-DX8bVq85.js → daily-analysis-w96yBGxi.js} +1 -1
- package/runtime/assets/{day-meter-DDfTuhms.js → day-meter-D7SyWAWO.js} +1 -1
- package/runtime/assets/{defi-revenue-CpeAGwhb.js → defi-revenue-DC7iVw-b.js} +1 -1
- package/runtime/assets/dex-hot-pools-CbBeDh7R.js +1 -0
- package/runtime/assets/dex-pool-bubbles-DsS26KRy.js +1 -0
- package/runtime/assets/dex-pool-liquidity-scatter-Cam1cxZL.js +1 -0
- package/runtime/assets/dex-pool-treemap-CuU6G6rY.js +1 -0
- package/runtime/assets/dex-volume-bubbles-DZvYb1Gu.js +1 -0
- package/runtime/assets/dex-volume-chart-BmJMKgts.js +1 -0
- package/runtime/assets/dex-volume-share-area-B16TypiP.js +1 -0
- package/runtime/assets/{dex-volume-treemap-rSTrzz7O.js → dex-volume-treemap-Kl3BycC8.js} +1 -1
- package/runtime/assets/{dice-BrFORdjN.js → dice-BBWeIZ4c.js} +1 -1
- package/runtime/assets/dino-game-CacSVnNs.js +1 -0
- package/runtime/assets/divider-BDbJkoKt.js +1 -0
- package/runtime/assets/dominance-bars-D7mHdU5j.js +1 -0
- package/runtime/assets/dominance-gauge-D4Dizu40.js +1 -0
- package/runtime/assets/{drawdy-BIb36JN9.js → drawdy-C4Xes6ll.js} +1 -1
- package/runtime/assets/{dxy-CRifEdp_.js → dxy-CQqmlBOH.js} +1 -1
- package/runtime/assets/dxy-chart-COvjjHiK.js +1 -0
- package/runtime/assets/editor-C9dj6xX0.css +1 -0
- package/runtime/assets/editor-CFgkD4LH.js +68 -0
- package/runtime/assets/etf-flow-bars-DQmhSdlG.js +1 -0
- package/runtime/assets/etf-flow-calendar-BtU4tAJx.js +1 -0
- package/runtime/assets/{etf-flows-BV10E2R-.js → etf-flows-B5HTl_O2.js} +1 -1
- package/runtime/assets/{etf-flows-chart-DHu8mkXm.js → etf-flows-chart-CrJq5l_U.js} +1 -1
- package/runtime/assets/etf-issuer-bars-C8CS42V9.js +1 -0
- package/runtime/assets/etf-issuer-treemap-B8V6wOUz.js +1 -0
- package/runtime/assets/eth-issuance-impact-DBfYkAhQ.js +1 -0
- package/runtime/assets/{eth-staking-BqWeJq6F.js → eth-staking-CS-soUKT.js} +1 -1
- package/runtime/assets/{eth-supply-CF-MgHjn.js → eth-supply-5f4GEmei.js} +1 -1
- package/runtime/assets/{fear-greed-DuDR56h2.js → fear-greed-D20BQ0ai.js} +1 -1
- package/runtime/assets/fear-greed-chart-CzqxRAt0.js +1 -0
- package/runtime/assets/{filings-feed-BpfO2yF6.js → filings-feed-C-uvwTLC.js} +1 -1
- package/runtime/assets/filings-mix-OIhf0PEq.js +1 -0
- package/runtime/assets/{financial-stress-BfYJdlry.js → financial-stress-B29D-qDA.js} +1 -1
- package/runtime/assets/{flappy-bird-Dbb2UQBv.js → flappy-bird-DGYf5Ewk.js} +1 -1
- package/runtime/assets/format-DxkEZcwQ.js +1 -0
- package/runtime/assets/fundamentals-CcvmrNcz.js +1 -0
- package/runtime/assets/funding-bars-D7M6sJZL.js +1 -0
- package/runtime/assets/funding-carry-area-Dq7ytVeR.js +1 -0
- package/runtime/assets/funding-comparison-Ci4xJZk2.js +1 -0
- package/runtime/assets/funding-crowding-scatter-nUiUaNV4.js +1 -0
- package/runtime/assets/funding-heatmap-B5zG3T9U.js +1 -0
- package/runtime/assets/funding-leaderboard-bars-cf5-s8-T.js +1 -0
- package/runtime/assets/{funding-rate-chart-C-tpwid_.js → funding-rate-chart-Dp06ipCG.js} +1 -1
- package/runtime/assets/funding-spread-bars-CZdgC9ni.js +1 -0
- package/runtime/assets/funding-venue-heatmap-C-Kh1qHo.js +1 -0
- package/runtime/assets/{fx-board-YAy44m5d.js → fx-board-C4yCDDGZ.js} +1 -1
- package/runtime/assets/fx-cross-heatmap-DHP7jzo6.js +1 -0
- package/runtime/assets/fx-movers-bars-8q6fFcdY.js +1 -0
- package/runtime/assets/fx-trend-chart-DEtRTau8.js +1 -0
- package/runtime/assets/{game-ui-Dy_QYsPr.js → game-ui-BiMS2KJf.js} +1 -1
- package/runtime/assets/heading-B6HiIuvX.js +1 -0
- package/runtime/assets/hero-number-DUjENGj6.js +1 -0
- package/runtime/assets/{holiday-calendar-DCj83hi2.js → holiday-calendar-qi7M9l4n.js} +1 -1
- package/runtime/assets/image-D5ZO4DFB.js +1 -0
- package/runtime/assets/image-gallery-Dpr218ld.js +1 -0
- package/runtime/assets/index-5ezz63At.css +1 -0
- package/runtime/assets/{index-XGtH5pVY.css → index-BXLwJuoo.css} +1 -1
- package/runtime/assets/index-BpPIfN5S.js +1 -0
- package/runtime/assets/index-CiYWppnQ.js +1108 -0
- package/runtime/assets/index-D051JGM1.js +1 -0
- package/runtime/assets/index-DuNO-RcB.js +1 -0
- package/runtime/assets/indicators-Cw7CVPn4.js +1 -0
- package/runtime/assets/inflation-pulse-cleNvOgk.js +1 -0
- package/runtime/assets/{journal-log-Bgjia8cQ.js → journal-log-BYS6KBP0.js} +1 -1
- package/runtime/assets/{journal-open-Bm5gwWXz.js → journal-open-Dd-2HpWe.js} +1 -1
- package/runtime/assets/{journal-results-cEWe2pbe.js → journal-results-Bo95cRBC.js} +1 -1
- package/runtime/assets/{journal-score-vmfF-9bK.js → journal-score-CQ5jNovg.js} +1 -1
- package/runtime/assets/{journal-store-KCRoPnI_.js → journal-store-DVDSxNMj.js} +1 -1
- package/runtime/assets/{journal-ui-ApBNIq5_.js → journal-ui-P_aNAgF1.js} +1 -1
- package/runtime/assets/labor-force-flow-0vecYFin.js +1 -0
- package/runtime/assets/labor-market-BSxSRnKx.js +1 -0
- package/runtime/assets/{lightning-stats-nkyh2dOX.js → lightning-stats-CBj576A7.js} +1 -1
- package/runtime/assets/{link-grid-BEo4b54T.js → link-grid-MCfSDZZw.js} +1 -1
- package/runtime/assets/liquidity-basis-bars-CPGTcxkm.js +1 -0
- package/runtime/assets/{ma-multiplier-BllDQMF5.js → ma-multiplier-g4p5Pi3k.js} +1 -1
- package/runtime/assets/{macro-calendar-Ck0dJk4p.js → macro-calendar-d2JHausW.js} +1 -1
- package/runtime/assets/market-bubbles-CDCGDkEQ.js +1 -0
- package/runtime/assets/{market-cap-treemap-AxE2EYPO.js → market-cap-treemap-BSElYaQa.js} +1 -1
- package/runtime/assets/market-hours-BH2Focsr.js +1 -0
- package/runtime/assets/market-scatter-CdXDxlvI.js +1 -0
- package/runtime/assets/{marquee-1Zr5qDJP.js → marquee-DAz20C7s.js} +1 -1
- package/runtime/assets/mayer-multiple-mJbiBIAH.js +1 -0
- package/runtime/assets/mempool-fee-curve-DC21aRj_.js +1 -0
- package/runtime/assets/{mini-line-chart-CHM5UBjJ.js → mini-line-chart-DyG55cVW.js} +1 -1
- package/runtime/assets/{mining-pools-B-jxdTot.js → mining-pools-DDrcI0JC.js} +1 -1
- package/runtime/assets/mining-pools-share-BTghpuPh.js +1 -0
- package/runtime/assets/misery-index-BFKKI3-y.js +1 -0
- package/runtime/assets/mover-row-9TS6-Vx5.js +1 -0
- package/runtime/assets/movers-bars-BGRZiztL.js +1 -0
- package/runtime/assets/movers-bubbles-DKwj1mvp.js +1 -0
- package/runtime/assets/{mvrv-Dx_S0TwE.js → mvrv-bAGE8y8s.js} +1 -1
- package/runtime/assets/mvrv-zscore-chart-BBQG73VU.js +1 -0
- package/runtime/assets/{national-debt-BKVBHaqm.js → national-debt-DKFxcreA.js} +1 -1
- package/runtime/assets/news-feed-BdERDNLF.js +1 -0
- package/runtime/assets/nft-activity-bars-DDM29Mlf.js +1 -0
- package/runtime/assets/nft-bubbles-piuKr-F-.js +1 -0
- package/runtime/assets/nft-collections-BRT3lGEI.js +1 -0
- package/runtime/assets/nft-scatter-v2AlapcL.js +1 -0
- package/runtime/assets/nft-treemap-DOoBuiAe.js +1 -0
- package/runtime/assets/note-Cge-Twe7.js +3 -0
- package/runtime/assets/{nupl-aIjkc57m.js → nupl-DyKmiugr.js} +1 -1
- package/runtime/assets/nupl-cycle-chart-CjPXwU_H.js +1 -0
- package/runtime/assets/nyfed-fed-funds-band-gauge-CgtBzt19.js +1 -0
- package/runtime/assets/nyfed-reference-rate-bars-XM22e3m1.js +1 -0
- package/runtime/assets/nyfed-sofr-term-averages-bars-BX8DdQdy.js +1 -0
- package/runtime/assets/ofr-stress-category-area-DJ9A1Jek.js +1 -0
- package/runtime/assets/ohlcv-volume-bars-DjbIATbf.js +1 -0
- package/runtime/assets/oi-treemap-DN3lHhIw.js +1 -0
- package/runtime/assets/onchain-oscillator-overlay-BhHhVrFw.js +1 -0
- package/runtime/assets/{open-interest-C0ulogv6.js → open-interest-CQz_hue7.js} +1 -1
- package/runtime/assets/options-flow-skew-BnNt577O.js +1 -0
- package/runtime/assets/{options-iv-CdUder3x.js → options-iv-DRlcGyOA.js} +1 -1
- package/runtime/assets/options-max-pain-DttmKvGL.js +1 -0
- package/runtime/assets/options-max-pain-multi-BWvVp8w0.js +1 -0
- package/runtime/assets/options-oi-ladder-heatmap-D-GtQnYR.js +1 -0
- package/runtime/assets/options-oi-skew-C7zh_o7-.js +1 -0
- package/runtime/assets/{options-oi-strike-CvCZnMCR.js → options-oi-strike-CRd6fuzZ.js} +1 -1
- package/runtime/assets/{options-put-call-FuaDHJ-S.js → options-put-call-DaSJMaWB.js} +1 -1
- package/runtime/assets/options-vol-smile-DLg5yS2Q.js +1 -0
- package/runtime/assets/options-vol-spread-DzhDF8S2.js +1 -0
- package/runtime/assets/payrolls-bars-DUfM2bRV.js +1 -0
- package/runtime/assets/{pi-cycle-BuCnLnIJ.js → pi-cycle-Dnep9J9d.js} +1 -1
- package/runtime/assets/pie-chart-BIxKuHm-.js +1 -0
- package/runtime/assets/{pomodoro-DDBVVcSR.js → pomodoro-462F-K_R.js} +1 -1
- package/runtime/assets/portfolio-allocation-BmnvEhEW.js +1 -0
- package/runtime/assets/portfolio-common-DPg-LM-S.js +1 -0
- package/runtime/assets/{portfolio-holdings-MyAinCzt.js → portfolio-holdings-pJ3PcDtA.js} +1 -1
- package/runtime/assets/portfolio-movers-88ySthIZ.js +1 -0
- package/runtime/assets/{portfolio-value-BPURwKf8.js → portfolio-value-BIrDQqeD.js} +1 -1
- package/runtime/assets/portfolio-value-bars-B5PlVsS-.js +1 -0
- package/runtime/assets/prediction-market-bars-CjhLqjKZ.js +1 -0
- package/runtime/assets/prediction-market-scatter-PFzl9aUV.js +1 -0
- package/runtime/assets/{prediction-markets-Bzy51qnV.js → prediction-markets-COBBk6vK.js} +1 -1
- package/runtime/assets/prediction-markets-bubble-OHW4Fyta.js +1 -0
- package/runtime/assets/{price-chart-BOCD8ka3.js → price-chart-CttRCaIA.js} +1 -1
- package/runtime/assets/{price-compare-DZlF-qhZ.js → price-compare-DNhtDisn.js} +1 -1
- package/runtime/assets/{price-liveline-Bl7qCd5-.js → price-liveline-DR_topxQ.js} +1 -1
- package/runtime/assets/price-ticker-DgbqT8Ft.js +1 -0
- package/runtime/assets/protocol-fees-bubbles-DJKiIQLP.js +1 -0
- package/runtime/assets/{protocol-fees-treemap-DiIt4bfo.js → protocol-fees-treemap-YkaWU0jI.js} +1 -1
- package/runtime/assets/protocol-fees-vs-tvl-scatter-BdbfLYV5.js +1 -0
- package/runtime/assets/protocol-tvl-bubbles-BC38d6kb.js +1 -0
- package/runtime/assets/protocol-tvl-by-category-D6xbGiRH.js +1 -0
- package/runtime/assets/{protocol-tvl-chart-CmzANiR7.js → protocol-tvl-chart-MRYKJKC8.js} +1 -1
- package/runtime/assets/protocol-tvl-share-area-BaLjcOpi.js +1 -0
- package/runtime/assets/{protocol-tvl-treemap-BjNPrrtL.js → protocol-tvl-treemap-DdIxlR7K.js} +1 -1
- package/runtime/assets/{puell-multiple-BGrJX43r.js → puell-multiple-C-5BP2qr.js} +1 -1
- package/runtime/assets/put-call-gauge-CIL56SWp.js +1 -0
- package/runtime/assets/{quote-CRM3bfI7.js → quote-BCahDrH2.js} +1 -1
- package/runtime/assets/radial-gauge-0BzRQ6fO.js +1 -0
- package/runtime/assets/{rates-board-Cb9rV0_-.js → rates-board-JeVYxfxX.js} +1 -1
- package/runtime/assets/real-wages-CxYcPexL.js +1 -0
- package/runtime/assets/realized-price-DfKM0AQB.js +1 -0
- package/runtime/assets/{reserve-risk-Be98XUsD.js → reserve-risk-CZ8W5vox.js} +1 -1
- package/runtime/assets/{returns-projector-D67a_yvC.js → returns-projector-D8UX1710.js} +1 -1
- package/runtime/assets/{risk-reward-C7WMz2od.js → risk-reward-DgkqN_mw.js} +1 -1
- package/runtime/assets/{rsi-momentum-IglnulkJ.js → rsi-momentum-DLc5Fw80.js} +1 -1
- package/runtime/assets/{rules-card-DJs3fDVN.js → rules-card-B5gZWhLc.js} +1 -1
- package/runtime/assets/scatter-chart-B28DJ7P-.js +1 -0
- package/runtime/assets/sector-bars-CahrlX_u.js +1 -0
- package/runtime/assets/sector-bubbles-DdfZ6e5Q.js +1 -0
- package/runtime/assets/{sector-performance-DVMaleLY.js → sector-performance-BdYXFE7z.js} +1 -1
- package/runtime/assets/{sector-treemap-B681nSi6.js → sector-treemap-DBA5ilb3.js} +1 -1
- package/runtime/assets/sentiment-gauge-BD6U6U9e.js +1 -0
- package/runtime/assets/{session-progress-CZO3LqUi.js → session-progress-1UWc9VqZ.js} +1 -1
- package/runtime/assets/{short-volume-l8_9Yoh3.js → short-volume-BR5Bd4dE.js} +1 -1
- package/runtime/assets/short-volume-bars-qHwd3DwT.js +1 -0
- package/runtime/assets/{snake-CifbTGlZ.js → snake-VPnsi0wu.js} +1 -1
- package/runtime/assets/{sopr-Dw_oz-mC.js → sopr-pPCw72oY.js} +1 -1
- package/runtime/assets/{spotify-embed-BA0m1IRb.js → spotify-embed-BAYLjQ13.js} +1 -1
- package/runtime/assets/{stablecoin-chains-Dd2LqqqY.js → stablecoin-chains-gXvliWf0.js} +1 -1
- package/runtime/assets/{stablecoin-supply-DM4ogL4V.js → stablecoin-supply-cKbLU-qq.js} +1 -1
- package/runtime/assets/stopwatch-USjNEK2T.js +1 -0
- package/runtime/assets/{top-movers-CLmC2TNu.js → top-movers-m16-LIpD.js} +1 -1
- package/runtime/assets/treasury-auction-demand-scatter-qtbp6UWp.js +1 -0
- package/runtime/assets/treasury-auction-size-bars-BN1UAVmo.js +1 -0
- package/runtime/assets/{treasury-auctions-Dl9fiRgf.js → treasury-auctions-BiOh-3vx.js} +1 -1
- package/runtime/assets/treasury-avg-rate-bars-CJ1IViWy.js +1 -0
- package/runtime/assets/treasury-debt-composition-area-BPy8-h89.js +1 -0
- package/runtime/assets/{treemap-leaf-Dn31k9S9.js → treemap-leaf-QG-L-SIG.js} +1 -1
- package/runtime/assets/trending-bars-D_8IduL8.js +1 -0
- package/runtime/assets/trending-bubbles-DYxWvz2k.js +1 -0
- package/runtime/assets/{trending-coins-Cpx9T6cG.js → trending-coins-DqSuuuF9.js} +1 -1
- package/runtime/assets/tvl-bars-inXG_MRY.js +1 -0
- package/runtime/assets/tvl-bubbles-C5-rCI8e.js +1 -0
- package/runtime/assets/tvl-treemap-KR6k_75O.js +1 -0
- package/runtime/assets/{utils-DaT-yT0k.js → utils-DxneYyA_.js} +1 -1
- package/runtime/assets/{video-CeKjM-cE.js → video-DcFqrZ43.js} +1 -1
- package/runtime/assets/volume-movers-scatter-C4nPVYp-.js +1 -0
- package/runtime/assets/{volume-profile-CiMFsIBu.js → volume-profile-BYg0s84c.js} +1 -1
- package/runtime/assets/volume-share-donut-DCtz5g5J.js +1 -0
- package/runtime/assets/yield-composition-scatter-Djup_wzz.js +1 -0
- package/runtime/assets/{yield-curve-DkB0u2_Q.js → yield-curve-BM9IJJt6.js} +1 -1
- package/runtime/assets/yield-momentum-bars-gE1357zR.js +1 -0
- package/runtime/assets/yield-risk-pie-qhN37WPr.js +1 -0
- package/runtime/assets/yield-scanner-CbcLN2kK.js +1 -0
- package/runtime/assets/yield-scatter-B6ic-t9n.js +1 -0
- package/runtime/index.html +2 -2
- package/runtime/widget-icons/custom-data.png +0 -0
- package/runtime/assets/btc-hashrate-Wx2RAG-5.js +0 -1
- package/runtime/assets/chart-utils-BYIZMM9J.js +0 -1
- package/runtime/assets/checklist-CuEw3GpE.js +0 -1
- package/runtime/assets/d3-xK4fOkBU.js +0 -1
- package/runtime/assets/dex-volume-chart-sHIuJACJ.js +0 -1
- package/runtime/assets/dino-game-BOV8mV1d.js +0 -1
- package/runtime/assets/divider-C33tH1RU.js +0 -1
- package/runtime/assets/editor-CZoWRTJC.css +0 -1
- package/runtime/assets/editor-Dnp1eXvY.js +0 -68
- package/runtime/assets/format-CfAcS4D8.js +0 -1
- package/runtime/assets/fundamentals-CUnqjF--.js +0 -1
- package/runtime/assets/funding-comparison-CMKxW1n-.js +0 -1
- package/runtime/assets/funding-heatmap-CZWnYF8Y.js +0 -1
- package/runtime/assets/heading-uIVBEE7K.js +0 -1
- package/runtime/assets/image-CITPAmp0.js +0 -1
- package/runtime/assets/index-Bx7RmzY8.js +0 -1
- package/runtime/assets/index-CrmTiZaB.css +0 -1
- package/runtime/assets/index-DyvZokhk.js +0 -1097
- package/runtime/assets/indicators-CogwjDn9.js +0 -1
- package/runtime/assets/inflation-pulse-Bqa3-cuC.js +0 -1
- package/runtime/assets/labor-market-azDXD-dR.js +0 -1
- package/runtime/assets/market-hours-BSwXtU8c.js +0 -1
- package/runtime/assets/mayer-multiple-DpBJNd4d.js +0 -1
- package/runtime/assets/mover-row-Dg96EIqq.js +0 -1
- package/runtime/assets/news-feed-C9itZmyp.js +0 -1
- package/runtime/assets/note-BtCnmuMo.js +0 -1
- package/runtime/assets/portfolio-allocation-DAnQk_h_.js +0 -1
- package/runtime/assets/portfolio-common-Bi16i0aA.js +0 -1
- package/runtime/assets/price-ticker-D2W4T02y.js +0 -1
- package/runtime/assets/realized-price-CYlrFa0m.js +0 -1
- package/runtime/assets/stopwatch-Co72v-7u.js +0 -1
- package/runtime/assets/tvl-treemap-e610jE8k.js +0 -1
- package/runtime/assets/yield-scanner-BP90untT.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{R as U,r as i,j as h}from"./react-qoZPGuNy.js";import{c as X}from"./utils-DxneYyA_.js";const Y="4px",q=6,W=80,B=24;function F({data:f,className:b,CellComponent:j,getColorValue:x,gap:p=q,showLabels:m=!1,rowLabelWidth:g=W,columnLabelHeight:v=B}){const I=i.useRef(null),[,A]=i.useTransition(),[w,C]=i.useState({width:0,height:0});i.useEffect(()=>{const t=I.current;if(t){const e=new ResizeObserver(()=>{A(()=>{C({width:t.offsetWidth,height:t.offsetHeight})})});return e.observe(t),()=>{e.disconnect()}}},[]);const{uniqueRows:_,uniqueColumns:R,rowToIndex:E,columnToIndex:T}=i.useMemo(()=>{const t=new Set,e=new Set,n=[],r=[];for(const s of f)t.has(s.row)||(t.add(s.row),n.push(s.row)),e.has(s.column)||(e.add(s.column),r.push(s.column));const c=new Map(n.map((s,l)=>[s,l])),a=new Map(r.map((s,l)=>[s,l]));return{uniqueRows:n,uniqueColumns:r,rowToIndex:c,columnToIndex:a}},[f]),u=i.useMemo(()=>{const t=m?g:0,e=m?v:0;return{x:t,y:e,width:Math.max(0,w.width-t),height:Math.max(0,w.height-e)}},[w,m,g,v]),d=i.useMemo(()=>{const t=R.length,e=_.length,n=t>0?Math.max(0,(u.width-p*(t-1))/t):0,r=e>0?Math.max(0,(u.height-p*(e-1))/e):0;return{cellWidth:n,cellHeight:r,columnX:s=>s*(n+p),rowY:s=>s*(r+p)}},[_.length,R.length,u,p]),y=i.useMemo(()=>{const t=f.map(o=>x?x(o):o.value),e=t.filter(o=>o>=0),n=t.filter(o=>o<0),r=e.length>0?Math.min(...e):0,c=e.length>0?Math.max(...e):0,a=n.length>0?Math.min(...n):0,s=n.length>0?Math.max(...n):0,l=o=>o<0?s===a?1:(o-s)/(a-s):c===r?1:(o-r)/(c-r);return f.map(o=>{const M=x?x(o):o.value,S=l(M),$=M>=0;return{cell:o,colorValue:M,intensity:S,isPositive:$}})},[f,x]),N=(t,e)=>{if(e){const c=Math.round(34+t*16);return`hsl(152 ${Math.round(42+t*20)}% ${c}%)`}const n=Math.round(36+t*15);return`hsl(350 ${Math.round(48+t*22)}% ${n}%)`},D=i.useMemo(()=>{const{cellWidth:t,cellHeight:e,columnX:n,rowY:r}=d;return t<=0||e<=0?null:y.map(({cell:c,intensity:a,isPositive:s})=>{const l=E.get(c.row),o=T.get(c.column);if(l===void 0||o===void 0)return null;const M=N(a,s);return h.jsx("div",{className:"group absolute cursor-pointer border border-transparent hover:bg-[radial-gradient(146.13%_118.42%_at_50%_-15.5%,rgba(255,255,255,0.1)_0%,rgba(255,255,255,0)_99.59%)] hover:bg-gradient-to-t",style:{left:u.x+n(o),top:u.y+r(l),width:t,height:e,borderRadius:Y,backgroundColor:M},children:h.jsx(j,{width:t,height:e,data:c,rowIndex:l,columnIndex:o,colorIntensity:a,isPositive:s})},c.id)})},[y,d,u,E,T,j]),H=i.useMemo(()=>{if(!m)return null;const{cellHeight:t,rowY:e}=d;return _.map((n,r)=>h.jsx("div",{className:"absolute flex items-center justify-end pr-2 text-xs text-white/60",style:{left:0,top:u.y+e(r),width:g,height:t},children:h.jsx("span",{className:"truncate",children:n})},`row-${n}`))},[m,_,d,u,g]),O=i.useMemo(()=>{if(!m)return null;const{cellWidth:t,columnX:e}=d;return R.map((n,r)=>h.jsx("div",{className:"absolute flex items-end justify-center pb-1 text-xs text-white/60",style:{left:u.x+e(r),top:0,width:t,height:v},children:h.jsx("span",{className:"truncate",children:n})},`col-${n}`))},[m,R,d,u,v]);return h.jsx("div",{className:X("h-full w-full",b),ref:I,children:h.jsxs("div",{className:"relative overflow-hidden",style:{height:w.height,width:w.width},children:[H,O,D]})})}const k=U.memo(F);export{k as H};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as u,R as tt,j as d}from"./react-qoZPGuNy.js";import{a as et,I as nt,J as at,K as it,L as st,M as rt,N as ot,O as ct,P as lt,Q as dt,i as ut,R as ft,S as mt,T as ht,U as pt,f as xt,c as yt,e as gt,l as kt,j as H,k as vt,V as bt,g as St,s as wt}from"./d3-ibrLIlQc.js";import{c as $}from"./utils-DxneYyA_.js";import{C as Mt}from"./chart-utils-DGogNvJT.js";const R={top:20,right:20,bottom:40,left:50},U={height:400},z={ticks:6,opacity:.05,color:"#FFFFFF"},h={xTicks:5,yTicks:5,tickSize:6,tickColor:"#404146",domainColor:"#FFFFFF",domainOpacity:.05,textOpacity:.5,fontSize:12},F={opacity:.8,hoverOpacity:1,dimmedOpacity:.3,strokeWidth:1,strokeOpacity:.5};function K(t){const e=new Set;return t.forEach(n=>{n.data.forEach(i=>{const s=i.date instanceof Date?i.date:new Date(i.date);e.add(s.getTime())})}),Array.from(e).sort((n,i)=>n-i).map(n=>new Date(n))}function jt(t,e){const n=t.map(i=>{const s=new Map;return i.data.forEach(a=>{const c=a.date instanceof Date?a.date:new Date(a.date);s.set(c.getTime(),a.value)}),s});return e.map(i=>{const s={date:i};return t.forEach((a,c)=>{s[a.id]=n[c].get(i.getTime())??0}),s})}function V(t,e){const n=t.map(i=>{const s=new Map;return i.data.forEach(a=>{const c=a.date instanceof Date?a.date:new Date(a.date);s.set(c.getTime(),a.value)}),s});return e.map(i=>{const s={};let a=0;return t.forEach((c,l)=>{const r=n[l].get(i.getTime())??0;s[c.id]=r,a+=r}),{date:i,values:s,total:a}})}function Tt(t,e="none"){if(e==="expand")return[0,1];const n=K(t),i=V(t,n);return[0,(et(i,a=>a.total)??0)*1.1]}function Ct(t){switch(t){case"ascending":return rt;case"descending":return st;case"insideOut":return it;case"reverse":return at;case"none":default:return nt}}function Ft(t){switch(t){case"expand":return dt;case"wiggle":return lt;case"silhouette":return ct;case"none":default:return ot}}function Ot(t){switch(t){case"monotoneX":return xt;case"step":return pt;case"natural":return ht;case"basis":return mt;case"linear":default:return ft}}function Rt(t,e,n){if(n.length===0)return null;const i=ut(r=>r).left,s=e.invert(t),a=i(n,s,1),c=n[a-1],l=n[a];return c?l?s.getTime()-c.getTime()>l.getTime()-s.getTime()?{date:l,index:a}:{date:c,index:a-1}:{date:c,index:a-1}:{date:l,index:a}}function Nt(t){const e=Math.abs(t),n=t<0?"-":"";return e>=1e9?`${n}${(e/1e9).toFixed(1)}B`:e>=1e6?`${n}${(e/1e6).toFixed(1)}M`:e>=1e3?`${n}${(e/1e3).toFixed(1)}K`:`${n}${e.toFixed(0)}`}function At({height:t=U.height,margin:e,containerRef:n}){const[i,s]=u.useState(0),a=(e==null?void 0:e.top)??R.top,c=(e==null?void 0:e.right)??R.right,l=(e==null?void 0:e.bottom)??R.bottom,r=(e==null?void 0:e.left)??R.left;u.useLayoutEffect(()=>{const y=()=>{if(n.current){const v=n.current.getBoundingClientRect();s(v.width)}};y();const S=new ResizeObserver(y);return n.current&&S.observe(n.current),()=>{S.disconnect()}},[n]);const b=Math.max(0,i-r-c),j=Math.max(0,t-a-l);return{width:i,height:t,innerWidth:b,innerHeight:j,marginTop:a,marginRight:c,marginBottom:l,marginLeft:r}}function Et({dates:t,combinedData:e,xScale:n,innerWidth:i,innerHeight:s,marginLeft:a,marginTop:c,onDateHover:l}){const[r,b]=u.useState({visible:!1,x:0,date:null,data:null}),j=u.useRef(null),y=u.useRef(null),S=u.useCallback(w=>{if(!n||t.length===0)return;const O=w.currentTarget.getBoundingClientRect(),N=w.clientX-O.left,M=Rt(N,n,t);if(M){const T=n(M.date),C=e[M.index]||null;b({visible:!0,x:T+a,date:M.date,data:C}),l==null||l(M.date,C)}},[n,t,e,a,l]),v=u.useCallback(()=>{b({visible:!1,x:0,date:null,data:null}),l==null||l(null,null)},[l]);return u.useEffect(()=>{y.current&&(r.visible?(y.current.setAttribute("transform",`translate(${r.x-a}, 0)`),y.current.setAttribute("opacity","1")):y.current.setAttribute("opacity","0"))},[r.visible,r.x,a]),{tooltipState:r,containerRef:j,verticalLineRef:y,handleMouseMove:S,handleMouseLeave:v,innerWidth:i,innerHeight:s,marginLeft:a,marginTop:c}}function Lt(t,e,n,i){const s=yt().domain(gt(t)).range([0,n]),a=kt().domain(e).range([i,0]);return{xScale:s,yScale:a}}function Wt(t,e,n){t.append("g").attr("class","grid").call(H(e).ticks(z.ticks).tickSize(-n).tickFormat(()=>"")).call(i=>{i.select(".domain").remove(),i.selectAll(".tick line").attr("stroke",z.color).attr("stroke-opacity",z.opacity)})}function $t(t,e,n,i,s,a){const c=vt(e).ticks(h.xTicks).tickSize(h.tickSize);s&&c.tickFormat(r=>s(r)),t.append("g").attr("class","x-axis").attr("transform",`translate(0,${i})`).call(c).call(r=>{r.select(".domain").attr("stroke",h.domainColor).attr("stroke-opacity",h.domainOpacity),r.selectAll(".tick line").attr("stroke",h.tickColor).attr("stroke-opacity",h.textOpacity),r.selectAll(".tick text").attr("fill",h.domainColor).attr("fill-opacity",h.textOpacity).attr("font-size",h.fontSize).attr("font-weight","500")});const l=H(n).ticks(h.yTicks).tickSize(h.tickSize);a&&l.tickFormat(r=>a(r)),t.append("g").attr("class","y-axis").call(l).call(r=>{r.select(".domain").attr("stroke",h.domainColor).attr("stroke-opacity",h.domainOpacity),r.selectAll(".tick line").attr("stroke",h.tickColor).attr("stroke-opacity",h.textOpacity),r.selectAll(".tick text").attr("fill",h.domainColor).attr("fill-opacity",h.textOpacity).attr("font-size",h.fontSize).attr("font-weight","500")})}function zt({pathD:t,color:e,isHovered:n,hasHover:i}){const s=i?n?F.hoverOpacity:F.dimmedOpacity:F.opacity;return d.jsx("path",{d:t,fill:e,fillOpacity:s,stroke:e,strokeWidth:F.strokeWidth,strokeOpacity:F.strokeOpacity,style:{transition:"fill-opacity 200ms ease-out"}})}function Dt({series:t,AreaComponent:e=zt,className:n,height:i=U.height,margin:s,colors:a=Mt,getSeriesColor:c,formatXAxis:l,formatYAxis:r,formatValue:b=Nt,stackOrder:j="none",stackOffset:y="none",showGrid:S=!0,showXAxis:v=!0,showYAxis:w=!0,curveType:O="monotoneX",isLoading:N=!1,onDateHover:M}){var P,_;const T=u.useRef(null),C=u.useRef(null),[D,I]=u.useState(null),o=At({height:i,margin:s,containerRef:T}),A=u.useMemo(()=>{const f={};return t.forEach((m,p)=>{c?f[m.id]=c(m,p):m.color?f[m.id]=m.color:f[m.id]=a[p%a.length]}),f},[t,a,c]),g=u.useMemo(()=>K(t),[t]),B=u.useMemo(()=>jt(t,g),[t,g]),J=u.useMemo(()=>V(t,g),[t,g]),G=u.useMemo(()=>Tt(t,y),[t,y]),E=u.useMemo(()=>t.length===0||g.length===0?[]:bt().keys(t.map(m=>m.id)).order(Ct(j)).offset(Ft(y))(B),[t,g,B,j,y]),x=u.useMemo(()=>o.innerWidth<=0||o.innerHeight<=0||g.length===0?null:Lt(g,G,o.innerWidth,o.innerHeight),[g,G,o.innerWidth,o.innerHeight]),{tooltipState:k,handleMouseMove:Q,handleMouseLeave:X}=Et({dates:g,combinedData:J,xScale:(x==null?void 0:x.xScale)??null,innerWidth:o.innerWidth,innerHeight:o.innerHeight,marginLeft:o.marginLeft,marginTop:o.marginTop,onDateHover:M}),q=u.useMemo(()=>{if(!x||E.length===0)return[];const f=Ot(O),m=St().x(p=>x.xScale(p.data.date)).y0(p=>x.yScale(p[0])).y1(p=>x.yScale(p[1])).curve(f);return E.map((p,L)=>({seriesId:p.key,pathD:m(p)||"",color:A[p.key]||"#888888",index:L,series:t.find(W=>W.id===p.key)}))},[x,E,O,A,t]);u.useEffect(()=>{if(!C.current||!x||t.length===0||o.width===0)return;const f=wt(C.current);f.selectAll(".chart-content").remove();const m=f.append("g").attr("class","chart-content").attr("transform",`translate(${o.marginLeft},${o.marginTop})`);S&&Wt(m,x.yScale,o.innerWidth),(v||w)&&($t(m,x.xScale,x.yScale,o.innerHeight,v?l:void 0,w?r:void 0),v||m.select(".x-axis").remove(),w||m.select(".y-axis").remove())},[x,t.length,o,S,v,w,l,r]);const Z=u.useCallback(f=>{I(f)},[]),Y=u.useCallback(()=>{I(null)},[]);return N?d.jsx("div",{ref:T,className:$("relative w-full",n),style:{height:i},children:d.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:d.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-white/20 border-t-white/80 motion-reduce:animate-none"})})}):t.length===0?d.jsx("div",{ref:T,className:$("relative w-full",n),style:{height:i},children:d.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-sm text-white/50",children:"No data available"})}):d.jsxs("div",{ref:T,className:$("relative w-full",n),style:{height:i},children:[o.width>0&&x&&d.jsx("svg",{ref:C,width:o.width,height:o.height,className:"overflow-visible",children:d.jsxs("g",{transform:`translate(${o.marginLeft},${o.marginTop})`,children:[q.map(({seriesId:f,pathD:m,color:p,index:L,series:W})=>d.jsx("g",{onMouseEnter:()=>Z(f),onMouseLeave:Y,style:{cursor:"pointer"},children:d.jsx(e,{series:W,pathD:m,color:p,index:L,isHovered:D===f,hasHover:D!==null})},f)),k.visible&&d.jsx("line",{x1:k.x-o.marginLeft,y1:0,x2:k.x-o.marginLeft,y2:o.innerHeight,stroke:"#FFFFFF",strokeWidth:1,strokeOpacity:.3,strokeDasharray:"4,4"}),d.jsx("rect",{x:0,y:0,width:o.innerWidth,height:o.innerHeight,fill:"transparent",style:{cursor:"crosshair"},onMouseMove:Q,onMouseLeave:X})]})}),k.visible&&k.data&&d.jsxs("div",{className:"pointer-events-none absolute z-50 rounded-lg border border-white/10 bg-zinc-900 px-3 py-2 shadow-xl",style:{left:Math.min(k.x+10,o.width-180),top:o.marginTop+10,minWidth:150},children:[d.jsx("div",{className:"mb-2 text-xs text-white/60",children:(P=k.date)==null?void 0:P.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}),d.jsxs("div",{className:"space-y-1",children:[t.map(f=>{var m;return d.jsxs("div",{className:"flex items-center justify-between gap-4",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:A[f.id]}}),d.jsx("span",{className:"text-xs text-white/80",children:f.name})]}),d.jsx("span",{className:"text-xs font-medium text-white",children:b(((m=k.data)==null?void 0:m.values[f.id])??0)})]},f.id)}),d.jsxs("div",{className:"mt-2 flex items-center justify-between border-t border-white/10 pt-2",children:[d.jsx("span",{className:"text-xs font-medium text-white/60",children:"Total"}),d.jsx("span",{className:"text-xs font-semibold text-white",children:b(((_=k.data)==null?void 0:_.total)??0)})]})]})]})]})}const _t=tt.memo(Dt);export{_t as S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function o(t,n){const r=new Array(t.length).fill(null);if(n<=0)return r;let l=0;for(let e=0;e<t.length;e++)l+=t[e],e>=n&&(l-=t[e-n]),e>=n-1&&(r[e]=l/n);return r}function g(t,n){const r=[];if(t.length===0)return r;const l=2/(n+1);let e=t[0];for(let a=0;a<t.length;a++)e=a===0?t[0]:t[a]*l+e*(1-l),r.push(e);return r}function h(t,n=14){const r=new Array(t.length).fill(null);if(t.length<=n)return r;let l=0,e=0;for(let u=1;u<=n;u++){const i=t[u]-t[u-1];i>=0?l+=i:e-=i}let a=l/n,c=e/n;r[n]=c===0?100:100-100/(1+a/c);for(let u=n+1;u<t.length;u++){const i=t[u]-t[u-1],f=i>0?i:0,m=i<0?-i:0;a=(a*(n-1)+f)/n,c=(c*(n-1)+m)/n,r[u]=c===0?100:100-100/(1+a/c)}return r}function s(t){switch(t){case"90D":return 90;case"180D":return 180;case"1Y":return 365;case"2Y":return 730;case"4Y":return 1460;default:return 1/0}}function w(t,n){return!Number.isFinite(n)||n>=t.length?t:t.slice(t.length-n)}function x(t){return t.map(n=>({date:new Date(n.time).toISOString(),value:n.value}))}function y(t){if(t.length===0)return[];const n=t.map(a=>a.value),r=Math.min(...n),e=Math.max(...n)-r;return e===0?t.map(a=>({time:a.time,value:.5})):t.map(a=>({time:a.time,value:(a.value-r)/e}))}export{x as a,g as e,y as n,h as r,o as s,w as t,s as w};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as f,j as t}from"./react-qoZPGuNy.js";import{a as p,c as j}from"./format-DxkEZcwQ.js";import{f as w,a3 as y,S}from"./index-CiYWppnQ.js";import{F as v}from"./ui-Bq3RQsdJ.js";import{M as P}from"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";y.schema;const F="CUUR0000SA0";function g(n,o){return!o||o<=0?null:(n/o-1)*100}function I({config:n}){const x=new Date().getUTCFullYear(),C=x-2,{series:e,isLoading:N}=S(F,C,x),a=f.useMemo(()=>((e==null?void 0:e.points)??[]).slice(-n.months),[n.months,e==null?void 0:e.points]),s=a.at(-1),r=a.at(-2),c=s?a.find(i=>{const h=new Date(i.time),u=new Date(s.time);return h.getUTCFullYear()===u.getUTCFullYear()-1&&h.getUTCMonth()===u.getUTCMonth()}):void 0,b=f.useMemo(()=>a.map(i=>({date:new Date(i.time).toISOString(),value:i.value})),[a]);if(N)return t.jsx(v,{loading:!0,children:"loading CPI…"});if(!e||!s)return t.jsx(v,{children:"no CPI data yet"});const l=g(s.value,r==null?void 0:r.value),d=g(s.value,c==null?void 0:c.value),m=j(d??l??0);return t.jsxs("div",{className:"flex h-full flex-col justify-center gap-3",children:[t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{children:[t.jsx("div",{className:"caption text-soft uppercase",children:"BLS CPI-U"}),t.jsx("div",{className:"body-sm text-normal",children:s.date})]}),t.jsx("div",{className:"caption text-soft text-right",children:"monthly"})]}),t.jsxs("div",{className:"flex items-end justify-between gap-3",children:[t.jsxs("div",{children:[t.jsx("div",{className:"metric-xl leading-none",style:{color:m,textShadow:`0 0 24px ${m}44`},children:d!==null?p(d):"--"}),t.jsx("div",{className:"caption text-soft mt-1",children:"year over year"})]}),t.jsxs("div",{className:"text-right",children:[t.jsx("div",{className:"caption text-soft",children:"index"}),t.jsx("div",{className:"body-md text-strong font-bold tabular-nums",children:s.value.toFixed(3)}),t.jsx("div",{className:"caption text-soft mt-2",children:"month over month"}),t.jsx("div",{className:"body-md font-bold tabular-nums",style:{color:j(l??0)},children:l!==null?p(l):"--"})]})]}),t.jsx(P,{data:b,width:210,height:46,color:m}),t.jsxs("div",{className:"caption text-soft",children:[e.label," · ",a.length," monthly observations"]})]})}const _=w({...y,component:I});export{_ as inflationPulseFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,j as s}from"./react-qoZPGuNy.js";import{f as G,
|
|
1
|
+
import{r as a,j as s}from"./react-qoZPGuNy.js";import{f as G,x as U,y as P,z as H,h as c,A as _}from"./index-CiYWppnQ.js";import{i as $}from"./content-shared-BZ1XzrJx.js";import{e as M,a as J,c as K,U as q,D as X}from"./format-DxkEZcwQ.js";import{C as Y,d as F,a as V,l as Z}from"./journal-store-DVDSxNMj.js";import{s as ee}from"./ui-Bq3RQsdJ.js";const se=["xyz:*"],I=v=>Object.entries(v).filter(([,t])=>t.markPx>0).map(([t])=>t).sort((t,m)=>c(t).localeCompare(c(m)));U.schema;const T=[{label:"funding reset",cls:"mean-reversion"},{label:"oversold bounce",cls:"mean-reversion"},{label:"range reclaim",cls:"mean-reversion"},{label:"breakout",cls:"breakout"},{label:"momentum / trend",cls:"breakout"},{label:"positioning flush",cls:"positioning"},{label:"catalyst / earnings",cls:"macro"}];function te(v){var R;const[t,m]=a.useState("xyz:TSLA"),[j,Q]=a.useState("long"),[N,C]=a.useState(!1),[p,k]=a.useState(""),[x,S]=a.useState(null),[b,w]=a.useState(""),[h,W]=a.useState(65),[L,O]=a.useState(!1),i=P(se,6e4),u=P(void 0,6e4),z=a.useMemo(()=>({...u,...i}),[u,i]),d=a.useMemo(()=>[...I(i),...I(u)],[i,u]),B=H([t]),f=e=>{var l;return B[e]??((l=z[e])==null?void 0:l.markPx)},g=f(t),y=(R=z[t])==null?void 0:R.changePct,o=x!=null?T[x]:null,n=o?Y[o.cls]:null,A=n?n.hits/n.n>=.55:!0,D=a.useMemo(()=>{const e=p.trim().toLowerCase();return(e?d.filter(r=>c(r).toLowerCase().includes(e)):d).slice(0,80)},[p,d]);function E(){if(!o)return;const e=b.trim()?`${o.label} — ${b.trim()}`:o.label;Z({sym:t,dir:j,confidence:h,claim:e,cls:o.cls,entry:g}),S(null),w(""),O(!0),window.setTimeout(()=>O(!1),1100)}return s.jsxs("div",{className:"flex h-full flex-col gap-2.5",children:[s.jsxs("div",{className:"relative",children:[s.jsxs("button",{type:"button",onClick:()=>C(e=>!e),className:`flex w-full items-center gap-2 px-2.5 py-2 ${$}`,children:[s.jsx(_,{symbol:t,size:20}),s.jsx("span",{className:"body-md text-strong font-semibold",children:c(t)}),s.jsxs("span",{className:"ml-auto flex items-baseline gap-2 tabular-nums",children:[s.jsx("span",{className:"body-sm text-strong",children:g!=null?M(g):"…"}),y!=null&&s.jsx("span",{className:"caption",style:{color:K(y)},children:J(y)})]}),s.jsx("span",{className:"caption text-disabled ml-1",children:N?"▲":"▼"})]}),N&&s.jsxs("div",{className:"absolute left-0 right-0 top-full z-50 mt-1 flex flex-col gap-1 rounded-md p-1.5 shadow-xl",style:{background:"hsl(248 32% 9%)",border:"1px solid var(--color-accent-line)"},children:[s.jsx("input",{autoFocus:!0,value:p,onChange:e=>k(e.target.value),placeholder:"search ticker…",className:"body-sm w-full rounded bg-white/[0.05] px-2 py-1.5 text-strong outline-none placeholder:text-disabled"}),s.jsxs("div",{className:`flex max-h-44 flex-col ${ee}`,children:[D.map(e=>s.jsxs("button",{type:"button",onClick:()=>{m(e),C(!1),k("")},className:"flex items-center gap-2 rounded px-2 py-1.5 transition-colors hover:bg-white/[0.06]",children:[s.jsx(_,{symbol:e,size:16}),s.jsx("span",{className:"body-sm text-normal",children:c(e)}),s.jsx("span",{className:"caption text-soft ml-auto tabular-nums",children:f(e)!=null?M(f(e)):"—"})]},e)),D.length===0&&s.jsx("span",{className:"caption text-disabled px-2 py-2",children:d.length===0?"loading universe…":"no Hyperliquid market for that"})]})]})]}),s.jsx("div",{className:"flex items-center gap-2",children:["long","short"].map(e=>{const l=j===e;return s.jsx("button",{type:"button",onClick:()=>Q(e),className:"body-sm flex-1 rounded-md py-1.5 font-bold uppercase tracking-wide transition-colors",style:{color:l?F(e):"var(--color-soft)",background:l?"var(--color-surface)":"rgba(255,255,255,0.03)",border:`1px solid ${l?F(e)+"55":"transparent"}`},children:e},e)})}),s.jsx("div",{className:"flex flex-wrap gap-1.5",children:T.map((e,l)=>{const r=x===l;return s.jsx("button",{type:"button",onClick:()=>S(r?null:l),className:"caption rounded-full px-2.5 py-1 transition-colors",style:{color:r?"var(--color-strong)":"var(--color-soft)",background:r?"hsl(var(--zf-accent-hue, 242) 80% 60% / 0.3)":"rgba(255,255,255,0.04)",border:`1px solid ${r?"var(--color-accent-line)":"transparent"}`},children:e.label},e.label)})}),s.jsx("input",{value:b,onChange:e=>w(e.target.value),onKeyDown:e=>e.key==="Enter"&&E(),placeholder:"add a note (optional)",className:`body-sm w-full rounded-md px-2.5 py-1.5 text-strong outline-none placeholder:text-disabled ${$}`}),n&&s.jsxs("span",{className:"caption",style:{color:A?q:X},children:["your last ",n.n," ",V[o.cls]," calls: ",n.hits,"/",n.n,A?" · your edge":" · a leak — size down"]}),s.jsxs("div",{className:"mt-auto flex items-center gap-2.5",children:[s.jsx("span",{className:"caption text-disabled",children:"how sure"}),s.jsx("input",{type:"range",min:50,max:95,step:1,value:h,onChange:e=>W(Number(e.target.value)),className:"h-1 flex-1 cursor-pointer",style:{accentColor:"hsl(var(--zf-accent-hue, 242) 85% 68%)"}}),s.jsxs("span",{className:"body-sm text-strong w-9 tabular-nums",children:[h,"%"]}),s.jsx("button",{type:"button",onClick:E,disabled:!o,className:"caption rounded px-3 py-1.5 font-bold uppercase tracking-wide transition-opacity disabled:opacity-40",style:{color:"var(--color-strong)",background:L?q+"55":"hsl(var(--zf-accent-hue, 242) 80% 60% / 0.35)"},children:L?"logged ✓":"log"})]})]})}const ie=G({...U,component:te});export{ie as journalLogFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,j as t}from"./react-qoZPGuNy.js";import{u,r as l}from"./journal-store-
|
|
1
|
+
import{r as a,j as t}from"./react-qoZPGuNy.js";import{u,r as l}from"./journal-store-DVDSxNMj.js";import{J as f,O as d}from"./journal-ui-P_aNAgF1.js";import{f as x,C as i,z as w}from"./index-CiYWppnQ.js";import{s as j}from"./ui-Bq3RQsdJ.js";import"./format-DxkEZcwQ.js";import"./content-shared-BZ1XzrJx.js";i.schema;function v({config:m}){const{open:s}=u(),[n,c]=a.useState(()=>Date.now()),r=w(s.map(o=>o.symbol));if(a.useEffect(()=>{const o=window.setInterval(()=>c(Date.now()),1e3);return()=>window.clearInterval(o)},[]),a.useEffect(()=>{for(const o of s){const e=r[o.symbol];n>=o.resolveAt&&e!=null&&l(o.id,e)}},[n,s,r]),s.length===0)return t.jsx(f,{children:"no open calls — log a read in Journal · Log"});const p=s.slice(0,m.max);return t.jsx("div",{className:`flex flex-col gap-2 ${j}`,children:p.map(o=>{const e=r[o.symbol];return t.jsx(d,{call:o,now:n,mid:e,onClose:e!=null?()=>l(o.id,e):void 0},o.id)})})}const b=x({...i,component:v});export{b as journalOpenFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as r}from"./react-qoZPGuNy.js";import{u as t}from"./journal-store-
|
|
1
|
+
import{j as r}from"./react-qoZPGuNy.js";import{u as t}from"./journal-store-DVDSxNMj.js";import{J as n,R as m}from"./journal-ui-P_aNAgF1.js";import{f as i,D as o}from"./index-CiYWppnQ.js";import{s as u}from"./ui-Bq3RQsdJ.js";import"./format-DxkEZcwQ.js";import"./content-shared-BZ1XzrJx.js";o.schema;function c({config:a}){const{resolved:s}=t();if(s.length===0)return r.jsx(n,{children:"nothing graded yet — your calls resolve here"});const l=s.slice(0,a.max);return r.jsx("div",{className:`flex flex-col gap-2 ${u}`,children:l.map(e=>r.jsx(m,{call:e},e.id))})}const g=i({...o,component:c});export{g as journalResultsFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as o}from"./react-qoZPGuNy.js";import{U as h,D as x}from"./format-
|
|
1
|
+
import{j as o}from"./react-qoZPGuNy.js";import{U as h,D as x}from"./format-DxkEZcwQ.js";import{u as g,a as c,C as n}from"./journal-store-DVDSxNMj.js";import{S as d}from"./journal-ui-P_aNAgF1.js";import{f as b,E as p}from"./index-CiYWppnQ.js";import"./content-shared-BZ1XzrJx.js";p.schema;function j(){const r=Object.keys(n).map(e=>({cls:e,rate:n[e].hits/n[e].n}));return r.sort((e,s)=>s.rate-e.rate),{edge:r[0],leak:r[r.length-1]}}function v(r){const{resolved:e}=g(),{edge:s,leak:t}=j(),a=e.length,u=a?Math.round(e.reduce((i,f)=>i+f.confidence,0)/a):0,m=a?Math.round(e.filter(i=>i.verdict==="hit").length/a*100):0,l=u-m;return o.jsxs("div",{className:"flex h-full flex-col gap-2",children:[o.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[o.jsx(d,{label:"your edge",value:`${Math.round(s.rate*100)}%`,sub:c[s.cls],color:h}),o.jsx(d,{label:"your leak",value:`${Math.round(t.rate*100)}%`,sub:`${c[t.cls]} — size down`,color:x}),o.jsx(d,{label:"calibration",value:a?`${u}→${m}`:"—",sub:a?l>4?`overconfident +${l}`:l<-4?`underconfident ${l}`:"well-calibrated":"no calls yet",color:Math.abs(l)>4?"#f4a259":h})]}),o.jsx("div",{className:"rounded-md px-3 py-2",style:{background:"hsl(var(--zf-accent-hue, 242) 80% 60% / 0.1)",border:"1px solid var(--color-accent-line)"},children:o.jsxs("p",{className:"body-sm text-normal leading-snug",children:[o.jsx("span",{className:"font-semibold text-highlight",children:"zAI ·"})," Sharpest on ",c[s.cls],". You leak on ",c[t.cls]," —"," ",n[t.cls].hits,"/",n[t.cls].n,", and your kill rule tripped on most of them. Size those down."]})})]})}const L=b({...p,component:v});export{L as journalScoreFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as h}from"./react-qoZPGuNy.js";import{U as u,D as m}from"./format-
|
|
1
|
+
import{r as h}from"./react-qoZPGuNy.js";import{U as u,D as m}from"./format-DxkEZcwQ.js";const A={"mean-reversion":"mean-reversion",breakout:"breakout",positioning:"positioning",macro:"macro"},y={BTC:67250,ETH:3540,SOL:146,HYPE:28.4,"xyz:NVDA":128.4,"xyz:TSLA":251,"xyz:AAPL":195,"xyz:MSFT":415,"xyz:AMZN":184},i=36e5;function L(e){return e==="long"?u:m}function b(e,r){return(r-e.entry)/e.entry*100*(e.dir==="long"?1:-1)}function E(e,r){return e.target===e.entry?0:Math.min(1,Math.max(0,(r-e.entry)/(e.target-e.entry)))}function O(e){const r=Math.max(0,Math.round(e/1e3));return r<3600?`${Math.max(1,Math.round(r/60))}m left`:r<86400?`${Math.round(r/3600)}h left`:`${Math.round(r/86400)}d left`}function v(e){const r=e.toLowerCase();return/(funding|squeeze|oversold|overbought|revert|bounce|reclaim range)/.test(r)?"mean-reversion":/(breakout|break out|reclaim|continuation|new high|momentum|runs)/.test(r)?"breakout":/(cpi|fomc|rate|macro|jobs|earnings|fed)/.test(r)?"macro":"positioning"}const M={"mean-reversion":{n:14,hits:9},breakout:{n:9,hits:3},positioning:{n:11,hits:6},macro:{n:6,hits:3}},p={"mean-reversion":72*i,breakout:168*i,positioning:48*i,macro:168*i};function P(e){return e.verdict==="hit"&&e.signalsFired?{label:"thesis played out · skill",color:u,glyph:"✓"}:e.verdict==="hit"&&!e.signalsFired?{label:"signals never fired · luck, not skill",color:"#f4a259",glyph:"⚠"}:e.verdict==="miss"&&e.signalsFired?{label:"mechanism real, got swamped · near-miss",color:"#f4a259",glyph:"↺"}:{label:"thesis was wrong · clean miss",color:m,glyph:"✗"}}const C=[{id:"r1",symbol:"ETH",dir:"long",confidence:60,claim:"Basis reset + spot bid stepping in under 3.4k.",cls:"mean-reversion",verdict:"hit",returnPct:4.2,signalsFired:!0},{id:"r2",symbol:"xyz:TSLA",dir:"long",confidence:75,claim:"Breakout over 250 holds and extends.",cls:"breakout",verdict:"miss",returnPct:-3.1,signalsFired:!1},{id:"r3",symbol:"BTC",dir:"short",confidence:58,claim:"Crowded longs flush on the funding reset.",cls:"positioning",verdict:"miss",returnPct:-2.4,signalsFired:!0},{id:"r4",symbol:"xyz:AAPL",dir:"long",confidence:65,claim:"Gap fill into the print.",cls:"breakout",verdict:"hit",returnPct:1.8,signalsFired:!1}];let t=[],s=C,f={open:t,resolved:s};const c=new Set;function g(){f={open:t,resolved:s};for(const e of c)e()}function w(e){const r=Date.now(),n=e.cls??v(e.claim),o=e.entry??y[e.sym]??100,a=o*(e.dir==="long"?1.03:.97);t=[{id:`u${r}`,symbol:e.sym,dir:e.dir,confidence:e.confidence,claim:e.claim,cls:n,entry:o,target:a,resolveAt:r+p[n]},...t],g()}function F(e,r){const n=t.find(l=>l.id===e);if(!n)return;const o=b(n,r),a={id:n.id,symbol:n.symbol,dir:n.dir,confidence:n.confidence,claim:n.claim,cls:n.cls,verdict:o>=0?"hit":"miss",returnPct:o};t=t.filter(l=>l.id!==e),s=[a,...s],g()}function S(e){return c.add(e),()=>{c.delete(e)}}function d(){return f}function R(){return h.useSyncExternalStore(S,d,d)}export{M as C,A as a,O as b,b as c,L as d,P as e,w as l,F as r,E as t,R as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s}from"./react-qoZPGuNy.js";import{A as b,h}from"./index-
|
|
1
|
+
import{j as s}from"./react-qoZPGuNy.js";import{A as b,h}from"./index-CiYWppnQ.js";import{i as j}from"./content-shared-BZ1XzrJx.js";import{U as c,D as d,a as p,e as l}from"./format-DxkEZcwQ.js";import{d as x,c as g,t as y,a as N,b as v,e as w}from"./journal-store-DVDSxNMj.js";function m({dir:e}){return s.jsx("span",{className:"caption rounded px-1.5 py-0.5 font-bold uppercase tracking-wide",style:{color:x(e),background:"var(--color-surface)"},children:e})}function u({symbol:e}){return s.jsxs("span",{className:"flex items-center gap-1.5",children:[s.jsx(b,{symbol:e,size:16}),s.jsx("span",{className:"body-sm text-strong font-semibold",children:h(e)})]})}function S({label:e,value:a,sub:t,color:n}){return s.jsxs("div",{className:`flex flex-col gap-0.5 px-2.5 py-2 ${j}`,children:[s.jsx("span",{className:"caption text-soft uppercase tracking-wide",children:e}),s.jsx("span",{className:"metric-sm font-bold leading-none tabular-nums",style:{color:n??"var(--color-strong)"},children:a}),t&&s.jsx("span",{className:"caption text-disabled",children:t})]})}function A({call:e,now:a,mid:t,onClose:n}){const o=x(e.dir),r=t!=null?g(e,t):null,i=t!=null?y(e,t):0,f=r==null?"var(--color-soft)":r>=0?c:d;return s.jsxs("div",{className:"flex flex-col gap-2 rounded-md border border-white/[0.06] bg-white/[0.02] px-3 py-2.5",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(m,{dir:e.dir}),s.jsx(u,{symbol:e.symbol}),s.jsx("span",{className:"caption text-disabled",children:"·"}),s.jsxs("span",{className:"caption text-soft tabular-nums",children:[e.confidence,"%"]}),s.jsx("span",{className:"body-sm ml-auto font-bold tabular-nums",style:{color:f},children:r==null?"…":p(r)})]}),s.jsx("p",{className:"body-sm text-normal leading-snug",children:e.claim}),s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsxs("div",{className:"relative h-1.5 rounded-full bg-white/[0.06]",children:[s.jsx("div",{className:"absolute inset-y-0 left-0 rounded-full opacity-40",style:{width:`${i*100}%`,background:o}}),s.jsx("span",{className:"absolute top-1/2 h-2.5 w-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full ring-2 ring-black/30",style:{left:`${i*100}%`,background:o}})]}),s.jsxs("div",{className:"caption text-disabled flex items-center justify-between tabular-nums",children:[s.jsxs("span",{children:["entry ",l(e.entry)]}),s.jsxs("span",{className:"text-soft",children:["now ",t!=null?l(t):"…"]}),s.jsxs("span",{children:["target ",l(e.target)]})]})]}),s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsx("span",{className:"caption text-disabled uppercase tracking-wide",children:N[e.cls]}),s.jsxs("span",{className:"caption text-soft flex items-center gap-2 tabular-nums",children:[v(e.resolveAt-a),n&&s.jsx("button",{type:"button",onClick:n,disabled:t==null,className:"caption rounded px-1.5 py-0.5 uppercase tracking-wide transition-opacity hover:text-strong disabled:opacity-40",style:{background:"var(--color-surface)"},children:"close"})]})]})]})}function P({call:e}){const a=e.verdict==="hit"?c:d,t=e.signalsFired===void 0?null:w(e);return s.jsxs("div",{className:"flex flex-col gap-1.5 rounded-md border border-white/[0.04] px-3 py-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(m,{dir:e.dir}),s.jsx(u,{symbol:e.symbol}),s.jsxs("span",{className:"caption text-soft tabular-nums",children:[e.confidence,"%"]}),s.jsx("span",{className:"body-sm ml-auto font-bold tabular-nums",style:{color:a},children:p(e.returnPct)})]}),s.jsx("p",{className:"body-sm text-soft leading-snug",children:e.claim}),t?s.jsxs("span",{className:"caption font-medium",style:{color:t.color},children:[t.glyph," ",t.label]}):s.jsxs("span",{className:"caption text-disabled uppercase tracking-wide",children:[e.verdict," · graded by return"]})]})}function D({children:e}){return s.jsx("div",{className:"body-sm text-soft flex h-full min-h-0 items-center justify-center text-center",children:e})}export{D as J,A as O,P as R,S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as S,j as a}from"./react-qoZPGuNy.js";import{b as L}from"./format-DxkEZcwQ.js";import{f as x,dj as f,S as c}from"./index-CiYWppnQ.js";import{F as l}from"./ui-Bq3RQsdJ.js";import{C as d,a as g}from"./chart-utils-DGogNvJT.js";import{M as F}from"./index-BpPIfN5S.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";f.schema;const E="LNS14000000",I="LNS11300000";function p(t,s){return(t??[]).slice(-s).map(e=>({date:new Date(e.time).toISOString(),value:e.value}))}function b({config:t}){const e=new Date().getUTCFullYear(),m=e-2,{series:r,isLoading:u}=c(E,m,e),{series:n,isLoading:h}=c(I,m,e),i=S.useMemo(()=>[{id:"unemployment",name:"Unemployment rate",color:d[3],data:p(r==null?void 0:r.points,t.months)},{id:"participation",name:"Labor-force participation",color:d[0],data:p(n==null?void 0:n.points,t.months)}],[r,n,t.months]);return(u||h)&&i.every(o=>o.data.length===0)?a.jsx(l,{loading:!0,children:"loading labor-force data…"}):i.every(o=>o.data.length===0)?a.jsx(l,{children:"no labor-force data yet"}):a.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-1",children:[a.jsx(F,{series:i,timeframe:g.YTD,height:250,formatValue:o=>L(o,1)}),a.jsx("div",{className:"caption text-soft text-center",children:"unemployment vs labor-force participation · monthly, BLS"})]})}const _=x({...f,component:b});export{_ as laborForceFlowFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as x,j as t}from"./react-qoZPGuNy.js";import{b,d as h,c as N,g as L}from"./format-DxkEZcwQ.js";import{f as S,R as f,S as p}from"./index-CiYWppnQ.js";import{F as u}from"./ui-Bq3RQsdJ.js";import{M}from"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";f.schema;const y="LNS14000000",E="CES0000000001";function w({config:l}){const i=new Date().getUTCFullYear(),c=i-2,{series:s,isLoading:j}=p(y,c,i),{series:e,isLoading:v}=p(E,c,i),a=x.useMemo(()=>((s==null?void 0:s.points)??[]).slice(-l.months),[l.months,s==null?void 0:s.points]),g=x.useMemo(()=>a.map(d=>({date:new Date(d.time).toISOString(),value:d.value})),[a]);if(j&&v)return t.jsx(u,{loading:!0,children:"loading labor data…"});const r=a.at(-1);if(!s||!r)return t.jsx(u,{children:"no labor data yet"});const o=e==null?void 0:e.points.at(-1),m=e==null?void 0:e.points.at(-2),n=o&&m?o.value-m.value:null;return t.jsxs("div",{className:"flex h-full min-h-0 flex-col justify-center gap-3",children:[t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{children:[t.jsx("div",{className:"caption text-soft uppercase",children:"unemployment rate"}),t.jsx("div",{className:"body-sm text-normal",children:r.date})]}),t.jsx("div",{className:"caption text-soft text-right",children:"monthly"})]}),t.jsxs("div",{className:"flex items-end justify-between gap-3",children:[t.jsxs("div",{children:[t.jsx("div",{className:"metric-xl text-strong leading-none",children:b(r.value,1)}),t.jsxs("div",{className:"caption text-soft mt-1",children:[s.source," · U-3"]})]}),n!==null&&o&&t.jsxs("div",{className:"text-right",children:[t.jsx("div",{className:"caption text-soft",children:"nonfarm payrolls"}),t.jsxs("div",{className:"body-md font-bold tabular-nums",style:{color:N(n)},children:[n>=0?"+":"",h(n*1e3)]}),t.jsxs("div",{className:"caption text-soft mt-1 tabular-nums",children:[h(o.value*1e3)," jobs"]})]})]}),t.jsx(M,{data:g,width:210,height:44,color:L}),t.jsxs("div",{className:"caption text-soft",children:[s.label," · ",a.length," monthly observations"]})]})}const Y=S({...f,component:w});export{Y as laborMarketFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./react-qoZPGuNy.js";import{j as r,a as c,c as d}from"./format-
|
|
1
|
+
import{j as e}from"./react-qoZPGuNy.js";import{j as r,a as c,c as d}from"./format-DxkEZcwQ.js";import{f as m,b8 as i,b9 as u}from"./index-CiYWppnQ.js";import{F as o}from"./ui-Bq3RQsdJ.js";i.schema;function s(n,t){return t==null||t===0?null:(n-t)/t*100}function l({label:n,value:t,delta:a}){return e.jsxs("div",{className:"flex flex-col items-center justify-center rounded-md bg-white/[0.04] px-2 py-2 text-center",children:[e.jsx("span",{className:"metric-sm text-strong leading-none",children:t}),e.jsx("span",{className:"caption text-soft mt-1",children:n}),a!==null&&e.jsx("span",{className:"caption mt-0.5 font-bold tabular-nums",style:{color:d(a)},children:c(a)})]})}function g({config:n}){const{stats:t,isLoading:a}=u();return a?e.jsx(o,{loading:!0,children:"loading lightning…"}):t?e.jsxs("div",{className:"flex h-full min-h-0 flex-col justify-center gap-2",children:[e.jsxs("div",{className:"grid grid-cols-3 gap-1.5",children:[e.jsx(l,{label:"nodes",value:t.nodeCount.toLocaleString("en-US"),delta:s(t.nodeCount,t.prevNodeCount)}),e.jsx(l,{label:"channels",value:t.channelCount.toLocaleString("en-US"),delta:s(t.channelCount,t.prevChannelCount)}),e.jsx(l,{label:"capacity",value:r(t.totalCapacity),delta:s(t.totalCapacity,t.prevTotalCapacity)})]}),n.showSplit&&e.jsxs("div",{className:"caption text-soft text-center",children:[t.clearnetNodes.toLocaleString("en-US")," clearnet ·"," ",t.torNodes.toLocaleString("en-US")," tor"]})]}):e.jsx(o,{children:"no lightning data yet"})}const j=m({...i,component:g});export{j as lightningStatsFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t,r as m}from"./react-qoZPGuNy.js";import{i as d}from"./content-shared-BZ1XzrJx.js";import{f as u,
|
|
1
|
+
import{j as t,r as m}from"./react-qoZPGuNy.js";import{i as d}from"./content-shared-BZ1XzrJx.js";import{f as u,aP as i}from"./index-CiYWppnQ.js";import{s as f}from"./ui-Bq3RQsdJ.js";i.schema;const p=e=>/^https?:\/\//i.test(e);function h(e){for(const r of[e,`https://${e}`])try{const n=new URL(r).hostname;if(n)return n}catch{}return null}function x(e){const r=h(e);return r?`https://www.google.com/s2/favicons?sz=64&domain=${encodeURIComponent(r)}`:null}function g({link:e}){const[r,n]=m.useState(!1),s=e.icon.trim(),a=s&&p(s)?s:null,o=s&&!a?s:null,l=a??(o?null:x(e.url)),c=l!=null&&!r;return t.jsxs("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",title:e.url,className:`group flex items-center gap-2 px-2.5 py-2 ${d}`,children:[t.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center overflow-hidden rounded-md bg-white/[0.06] text-base leading-none","aria-hidden":!0,children:o?t.jsx("span",{children:o}):c?t.jsx("img",{src:l,alt:"",className:"h-full w-full object-contain",loading:"lazy",referrerPolicy:"no-referrer",onError:()=>n(!0)}):t.jsx("span",{className:"text-soft font-dmsans font-bold uppercase",children:e.label.charAt(0)})}),t.jsx("span",{className:"body-sm text-normal min-w-0 flex-1 truncate font-medium group-hover:text-strong",children:e.label})]})}function j({config:e}){return t.jsx("div",{className:f,children:t.jsx("div",{className:"grid gap-2",style:{gridTemplateColumns:`repeat(${e.columns}, minmax(0, 1fr))`},children:e.links.map((r,n)=>t.jsx(g,{link:r},`${r.url}-${n}`))})})}const N=u({...i,component:j});export{N as linkGridFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as f,j as r}from"./react-qoZPGuNy.js";import{f as h,cE as p,aj as x,h as c}from"./index-CiYWppnQ.js";import{D as v,U as b,b as j}from"./format-DxkEZcwQ.js";import{F as u}from"./ui-Bq3RQsdJ.js";import{B}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";p.schema;function y(a){return`${a>=0?"+":""}${a.toFixed(1)}bps`}function g({config:a}){const{stats:m,isLoading:d}=x(),i=a.metric,o=f.useMemo(()=>{const e=[];for(const[s,t]of Object.entries(m))if(i==="spread"){const[n,l]=t.impactPxs??[];if(n===void 0||l===void 0||t.markPx<=0)continue;e.push({label:c(s),value:(l-n)/t.markPx*100})}else{if(t.premium===void 0)continue;e.push({label:c(s),value:t.premium*1e4})}return e.sort((s,t)=>Math.abs(t.value)-Math.abs(s.value)).slice(0,a.limit).sort((s,t)=>t.value-s.value)},[m,i,a.limit]);return d?r.jsx(u,{loading:!0,children:"loading markets…"}):o.length===0?r.jsx(u,{children:"no liquidity data yet"}):r.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[r.jsx(B,{data:o,orientation:"horizontal",color:b,negativeColor:v,height:Math.max(o.length*24,96),formatValue:i==="spread"?e=>j(e,2):y}),r.jsxs("div",{className:"caption text-soft text-center",children:[i==="spread"?"impact-price spread, % of mark":"mark-vs-oracle basis"," ","· top ",o.length]})]})}const L=h({...p,component:g});export{L as liquidityBasisBarsFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as
|
|
1
|
+
import{r as x,j as s}from"./react-qoZPGuNy.js";import{M as O,z as c,Z as p,a as f}from"./cycle-shared-XoGVsOjC.js";import{D as d,U as h}from"./format-DxkEZcwQ.js";import{s as g,t as N,w as T}from"./indicators-Cw7CVPn4.js";import{f as F,bq as b,bo as j}from"./index-CiYWppnQ.js";import{F as z}from"./ui-Bq3RQsdJ.js";import"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";b.schema;function w(r,o){return r==="4"?c(o,[{upTo:1,zone:{label:"Bottom",color:h}},{upTo:2,zone:{label:"Normal",color:p}},{upTo:3.5,zone:{label:"Hot",color:f}}],{label:"Peak",color:d}):c(o,[{upTo:.667,zone:{label:"Buy zone",color:h}},{upTo:2,zone:{label:"Normal",color:p}},{upTo:3,zone:{label:"Sell ×2–3",color:f}}],{label:"Sell zone",color:d})}function C({config:r}){const{history:o,isLoading:y}=j("btc"),n=(r.years==="4"?4:2)*365,t=x.useMemo(()=>{const m=o.map(e=>e.value),M=g(m,n),u=[];for(let e=0;e<o.length;e++){const a=M[e];a!==null&&a>0&&u.push({time:o[e].time,value:m[e]/a})}return u},[o,n]);if(y)return s.jsx(z,{loading:!0,children:"loading MA multiplier…"});if(t.length===0)return s.jsx(z,{children:"not enough price history yet"});const i=t[t.length-1].value,l=w(r.years,i);return s.jsx(O,{caption:`Price / ${r.years}Y moving average`,headline:`${i.toFixed(2)}×`,headlineColor:l.color,zone:l,sparkline:N(t,T(r.window)),sparkColor:l.color})}const S=F({...b,component:C});export{S as maMultiplierFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,j as r}from"./react-qoZPGuNy.js";import{M as l}from"./metric-row-BVVhjsjK.js";import{f as i,
|
|
1
|
+
import{r as n,j as r}from"./react-qoZPGuNy.js";import{M as l}from"./metric-row-BVVhjsjK.js";import{f as i,bP as o}from"./index-CiYWppnQ.js";import{F as c,s as d}from"./ui-Bq3RQsdJ.js";o.schema;function p({config:t}){const s=n.useMemo(()=>{const e=Date.now();return t.events.map(a=>({...a,t:Date.parse(`${a.date}T12:00:00Z`)})).filter(a=>Number.isFinite(a.t)&&a.t>=e-864e5).sort((a,m)=>a.t-m.t).slice(0,t.limit).map(a=>({...a,days:Math.max(0,Math.ceil((a.t-e)/864e5))}))},[t.events,t.limit]);return s.length===0?r.jsx(c,{children:"no upcoming events"}):r.jsx("div",{className:`${d} flex flex-col`,children:s.map((e,a)=>r.jsx(l,{label:e.label,meta:new Date(e.t).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),value:e.days===0?"today":`${e.days}d`},a))})}const M=i({...o,component:p});export{M as macroCalendarFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as n,j as i}from"./react-qoZPGuNy.js";import{f as l,cf as m,aH as h,af as p}from"./index-CiYWppnQ.js";import{B as b}from"./bubbles-shared-DY914nhm.js";import{c as s,f as d,a as g}from"./format-DxkEZcwQ.js";import"./ui-Bq3RQsdJ.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";m.schema;function k({config:t}){const{entries:r,isLoading:c}=h(),o=n.useMemo(()=>r.filter(a=>a.changePct24h!==void 0&&a.marketCapUsd>0).slice(0,t.limit).map(a=>({id:a.symbol,label:a.symbol,value:t.sizeBy==="change"?Math.max(Math.abs(a.changePct24h),.05):a.marketCapUsd,imageUrl:p(a.symbol),color:s(a.changePct24h),borderColor:s(a.changePct24h),marketCapUsd:a.marketCapUsd,changePct24h:a.changePct24h})),[r,t.limit,t.sizeBy]);return i.jsx(b,{nodes:o,isLoading:c,loadingText:"loading markets…",emptyText:"no market data yet",caption:`area by ${t.sizeBy==="change"?"24h move":"market cap"} · ring by 24h change · top ${o.length}`,formatTitle:a=>{const e=a;return`${e.label} · ${d(e.marketCapUsd)} mcap · ${g(e.changePct24h)}`}})}const U=l({...m,component:k});export{U as marketBubblesFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as p,j as m}from"./react-qoZPGuNy.js";import{f as i,a as c}from"./format-
|
|
1
|
+
import{r as p,j as m}from"./react-qoZPGuNy.js";import{f as i,a as c}from"./format-DxkEZcwQ.js";import{f,aG as n,aH as d}from"./index-CiYWppnQ.js";import{T as h,a as l}from"./treemap-leaf-QG-L-SIG.js";import{F as s}from"./ui-Bq3RQsdJ.js";import"./utils-DxneYyA_.js";import"./d3-ibrLIlQc.js";n.schema;function u({width:r,height:o,data:a}){const t=i(a.marketCapUsd);return m.jsx(l,{width:r,height:o,label:a.id,secondary:t,title:`${a.id} · ${t} mcap · ${c(a.changePct24h)}`})}function C({config:r}){const{entries:o,isLoading:a}=d(),t=p.useMemo(()=>o.slice(0,r.topN).map(e=>({id:e.symbol,value:e.marketCapUsd,marketCapUsd:e.marketCapUsd,changePct24h:e.changePct24h??0})),[o,r.topN]);return a?m.jsx(s,{loading:!0,children:"loading market caps…"}):t.length===0?m.jsx(s,{children:"no market data"}):m.jsx(h,{data:t,LeafComponent:u,getColorValue:e=>e.changePct24h})}const U=f({...n,component:C});export{U as marketCapTreemapFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e,r as d}from"./react-qoZPGuNy.js";import{D as x,E as m,e as g,s as f,f as b}from"./market-data-CvmpLFSo.js";import{U as l}from"./format-DxkEZcwQ.js";import{f as w,a4 as h}from"./index-CiYWppnQ.js";import{F as j}from"./ui-Bq3RQsdJ.js";h.schema;const u={open:{color:l,chipBg:"rgba(63, 208, 143, 0.13)",label:"Open",verb:"closes",rail:l,railOpacity:1,wash:"linear-gradient(90deg, rgba(63, 208, 143, 0.08), transparent 40%)"},closed:{color:"#8b92a1",chipBg:"rgba(255, 255, 255, 0.045)",label:"Closed",verb:"opens",rail:"rgba(255, 255, 255, 0.22)",railOpacity:.55,wash:"none"},holiday:{color:"#f2b066",chipBg:"rgba(242, 176, 102, 0.13)",label:"Holiday",verb:"opens",rail:"#f2b066",railOpacity:1,wash:"linear-gradient(90deg, rgba(242, 176, 102, 0.07), transparent 40%)"}};function k(){return e.jsxs("svg",{"aria-hidden":"true",className:"shrink-0",fill:"none",height:"15",viewBox:"0 0 20 20",width:"15",children:[e.jsx("circle",{cx:"10",cy:"10",r:"7.25",stroke:"currentColor",strokeOpacity:"0.75",strokeWidth:"1.5"}),e.jsx("path",{d:"M2.75 10h14.5M10 2.75c2 2 3 4.42 3 7.25s-1 5.25-3 7.25M10 2.75c-2 2-3 4.42-3 7.25s1 5.25 3 7.25",stroke:"currentColor",strokeLinecap:"round",strokeOpacity:"0.55",strokeWidth:"1.2"}),e.jsx("path",{d:"m5.25 12.75 2.6-2.3 2.1 1.55 3.95-4.8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6"})]})}function v(s,r){try{return new Intl.DateTimeFormat("en-US",{timeZone:r,hour:"2-digit",minute:"2-digit",hour12:!1,timeZoneName:"short"}).format(s)}catch{return r}}function y(s){return/^[A-Z]{2}$/i.test(s)?[...s.toUpperCase()].map(r=>String.fromCodePoint(127462+r.charCodeAt(0)-65)).join(""):s}function N(){return e.jsxs("svg",{"aria-hidden":"true",className:"opacity-50 transition group-hover:translate-x-0.5 group-hover:-translate-y-0.5 group-hover:opacity-95",fill:"none",height:"12",viewBox:"0 0 16 16",width:"12",children:[e.jsx("path",{d:"M6 4.5H4.5a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2V10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5"}),e.jsx("path",{d:"M9 2.5h4.5V7M8.25 7.75l5-5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]})}function C({state:s}){return e.jsx("span",{"aria-hidden":"true",className:"grid h-[30px] w-[30px] shrink-0 place-items-center overflow-hidden rounded-[9px] border border-white/10 shadow-[inset_0_1px_0_rgba(255,255,255,0.12),0_4px_10px_-7px_rgba(0,0,0,0.8)]",style:{background:"linear-gradient(150deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02) 48%, rgba(0,0,0,0.22))"},children:e.jsx("span",{className:"text-[1.15rem] leading-none drop-shadow-[0_1px_3px_rgba(0,0,0,0.5)]",children:y(s.country)})})}function _({state:s}){const r=u[s.status],n=s.status==="closed";return e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border px-2 py-[3px] font-dmsans text-[0.5rem] font-bold uppercase leading-none tracking-[0.09em]",style:{borderColor:n?"rgba(255,255,255,0.1)":`${r.color}33`,background:r.chipBg,color:n?"rgba(255,255,255,0.62)":r.color},children:[e.jsx("span",{className:"h-1.5 w-1.5 rounded-full",style:{background:n?"rgba(255,255,255,0.45)":r.color,boxShadow:s.status==="open"?`0 0 6px ${r.color}`:void 0}}),r.label]})}function S({now:s,state:r}){const n=u[r.status],o=b(r.nextChangeMin),c=v(s,r.tz);return e.jsxs("a",{"aria-label":`${r.name} website`,className:"group text-normal relative grid min-h-[42px] grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-3 overflow-hidden rounded-xl border border-white/[0.06] bg-white/[0.022] py-1.5 pr-2.5 pl-3 transition duration-200 hover:-translate-y-px hover:border-white/[0.14] hover:bg-white/[0.05] hover:text-strong focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white/50",href:r.website,rel:"noreferrer",style:{backgroundImage:n.wash},target:"_blank",title:`${r.name} · ${r.city} · ${r.open}-${r.close}`,children:[e.jsx("span",{"aria-hidden":"true",className:"absolute inset-y-[5px] left-0 w-[3px] rounded-r-full",style:{background:n.rail,opacity:n.railOpacity}}),e.jsx(C,{state:r}),e.jsxs("span",{className:"relative min-w-0 pl-0.5",children:[e.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[e.jsx("span",{className:"body-sm text-strong truncate font-bold",children:r.name}),e.jsx(N,{})]}),e.jsxs("span",{className:"caption text-soft flex min-w-0 items-center gap-1.5 tabular-nums",children:[e.jsx("span",{className:"truncate",children:r.city}),e.jsx("span",{className:"h-[3px] w-[3px] shrink-0 rounded-full bg-white/25"}),e.jsx("span",{className:"shrink-0",children:c})]})]}),e.jsxs("span",{className:"relative flex min-w-[84px] flex-col items-end gap-1",children:[e.jsx(_,{state:r}),e.jsxs("span",{className:"caption whitespace-nowrap text-right tabular-nums",style:{color:r.status==="closed"?"rgba(255,255,255,0.55)":n.color},children:[n.verb," ",o]})]})]})}function E({config:s}){const[r,n]=d.useState(()=>new Date);d.useEffect(()=>{const a=window.setInterval(()=>n(new Date),3e4);return()=>window.clearInterval(a)},[]);const o=s.exchanges.length?s.exchanges:x,c=o.join(","),i=d.useMemo(()=>{const a=o.map(t=>m[t.toUpperCase()]).filter(t=>!!t).map(t=>g(t,r));return f(a,s.sort)},[c,r,s.sort]);if(i.length===0)return e.jsx(j,{children:"no known exchanges — check the codes"});const p=i.filter(a=>a.status==="open").length;return e.jsxs("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:[e.jsxs("div",{className:"caption text-soft mb-2 flex items-center justify-between gap-3 uppercase tracking-wide",children:[e.jsx("span",{className:"truncate",children:"exchange sessions"}),e.jsxs("span",{className:"inline-flex shrink-0 items-center gap-1.5 rounded-full border border-white/[0.08] bg-white/[0.045] px-2 py-0.5 tabular-nums",children:[p>0&&e.jsx("span",{className:"h-1.5 w-1.5 rounded-full",style:{background:l,boxShadow:`0 0 6px ${l}`}}),e.jsx("span",{className:"text-strong font-bold",children:p}),e.jsxs("span",{className:"text-soft",children:["/ ",i.length," open"]})]})]}),e.jsx("div",{className:"flex min-h-0 flex-1 flex-col gap-1 overflow-auto pr-0.5",children:i.map(a=>e.jsx(S,{now:r,state:a},a.code))})]})}const I=w({...h,component:E,titleIcon:k});export{I as marketHoursFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,j as a}from"./react-qoZPGuNy.js";import{c as n,f as l,a as h}from"./format-DxkEZcwQ.js";import{f,ce as m,aH as p}from"./index-CiYWppnQ.js";import{F as s}from"./ui-Bq3RQsdJ.js";import{S as d}from"./scatter-chart-B28DJ7P-.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";m.schema;function x({config:r}){const{entries:o,isLoading:c}=p(),e=i.useMemo(()=>o.filter(t=>t.changePct24h!==void 0&&t.marketCapUsd>0).slice(0,r.limit).map(t=>({id:t.symbol,label:t.symbol,x:t.changePct24h,y:t.marketCapUsd,weight:t.marketCapUsd,color:n(t.changePct24h)})),[o,r.limit]);return c?a.jsx(s,{loading:!0,children:"loading markets…"}):e.length===0?a.jsx(s,{children:"no market data yet"}):a.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[a.jsx(d,{data:e,yScale:"log",height:210,zeroXLine:!0,formatX:h,formatY:l,maxLabels:10}),a.jsxs("div",{className:"caption text-soft text-center",children:["24h change (x) vs market cap (y, log) · top ",e.length]})]})}const b=f({...m,component:x});export{b as marketScatterFrame};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./react-qoZPGuNy.js";import{f as i,
|
|
1
|
+
import{j as e}from"./react-qoZPGuNy.js";import{f as i,aT as r}from"./index-CiYWppnQ.js";r.schema;const s={slow:24,normal:14,fast:8},m=`
|
|
2
2
|
.zf-marquee {
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as M,j as l}from"./react-qoZPGuNy.js";import{z as d,Z as m,M as y}from"./cycle-shared-XoGVsOjC.js";import{D as g,U as x}from"./format-DxkEZcwQ.js";import{s as O,t as b,w as z}from"./indicators-Cw7CVPn4.js";import{f as j,bn as c,bo as w}from"./index-CiYWppnQ.js";import{F as u}from"./ui-Bq3RQsdJ.js";import"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";c.schema;function C({config:p}){const{history:e,isLoading:f}=w("btc"),t=M.useMemo(()=>{const i=e.map(o=>o.value),h=O(i,200),n=[];for(let o=0;o<e.length;o++){const a=h[o];a!==null&&a>0&&n.push({time:e[o].time,value:i[o]/a})}return n},[e]);if(f)return l.jsx(u,{loading:!0,children:"loading Mayer Multiple…"});if(t.length===0)return l.jsx(u,{children:"not enough price history yet"});const s=t[t.length-1].value,r=d(s,[{upTo:.8,zone:{label:"Value",color:x}},{upTo:1,zone:{label:"Accumulation",color:m}},{upTo:2.4,zone:{label:"Neutral",color:m}}],{label:"Overheated",color:g});return l.jsx(y,{caption:"Mayer Multiple · price / 200DMA",headline:s.toFixed(2),headlineColor:r.color,zone:r,sparkline:b(t,z(p.window)),sparkColor:r.color})}const U=j({...c,component:C});export{U as mayerMultipleFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,j as e}from"./react-qoZPGuNy.js";import{f as c}from"./btc-shared-yOWoU9Im.js";import{f as p,cX as n,a$ as d}from"./index-CiYWppnQ.js";import{F as m}from"./ui-Bq3RQsdJ.js";import{B as f}from"./bar-chart-DmyKFv_O.js";import"./format-DxkEZcwQ.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";n.schema;function u({config:r}){const{state:o,isLoading:l}=d(),t=i.useMemo(()=>((o==null?void 0:o.projected)??[]).slice(0,r.projectedBlocks).map((a,s)=>({label:s===0?"next":`+${s}`,value:Math.round(a.medianFee),color:c(a.medianFee)})),[o,r.projectedBlocks]);return l?e.jsx(m,{loading:!0,children:"loading fee curve…"}):t.length===0?e.jsx(m,{children:"no mempool data yet"}):e.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[e.jsx(f,{data:t,height:180}),e.jsxs("div",{className:"caption text-soft text-center",children:["median fee (sat/vB) · next ",t.length," projected blocks"]})]})}const M=p({...n,component:u});export{M as mempoolFeeCurveFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as p,j as $}from"./react-qoZPGuNy.js";import{s as w,c as B,e as j,l as G,d as H,f as V,g as N}from"./d3-
|
|
1
|
+
import{r as p,j as $}from"./react-qoZPGuNy.js";import{s as w,c as B,e as j,l as G,d as H,f as V,g as N}from"./d3-ibrLIlQc.js";import{c as X}from"./utils-DxneYyA_.js";const q=({data:n,width:l=120,height:d=40,color:m,className:R,variant:b="default"})=>{const h=p.useRef(null),x=`mini-chart-gradient-${p.useId().replace(/:/g,"")}`,{strokeColor:C,isPositive:y,variantType:f,customColor:v}=p.useMemo(()=>{var r,s;if(m)return{strokeColor:m,isPositive:!0,variantType:"custom",customColor:m};if(b==="auto"&&n.length>0){const g=((r=n[0])==null?void 0:r.value)??0,o=(((s=n[n.length-1])==null?void 0:s.value)??0)>=g;return{strokeColor:o?"var(--color-green-500)":"var(--color-red-500)",isPositive:o,variantType:o?"green":"red",customColor:void 0}}switch(b){case"green":return{strokeColor:"var(--color-green-500)",isPositive:!0,variantType:"green",customColor:void 0};case"red":return{strokeColor:"var(--color-red-500)",isPositive:!1,variantType:"red",customColor:void 0};case"blue":return{strokeColor:"#75A3FF",isPositive:!0,variantType:"blue",customColor:void 0};default:return{strokeColor:"var(--color-blue-600)",isPositive:!0,variantType:"blue",customColor:void 0}}},[m,b,n]),u=p.useMemo(()=>{if(!n||n.length===0)return[];const r=n.map(o=>({...o,date:new Date(o.date)})),s=Math.max(30,Math.floor(l/4));if(r.length<=s)return r;const g=Math.floor(r.length/s),a=[];for(let o=0;o<r.length;o+=g)a.push(r[o]);return a[a.length-1]!==r[r.length-1]&&a.push(r[r.length-1]),a},[n,l]);return p.useEffect(()=>{if(!h.current||!u.length)return;const r=w(h.current),s={top:2,right:0,bottom:2,left:0},g=l-s.left-s.right,a=d-s.top-s.bottom;r.selectAll("*").remove();const o=B().domain(j(u,t=>t.date)).range([0,g]),[k,I]=j(u,t=>t.value),W=(I-k)*.4,P=G().domain([k-W,I]).range([a,0]),E=H().x(t=>o(t.date)).y(t=>P(t.value)).curve(V),M=r.append("g").attr("transform",`translate(${s.left},${s.top})`),F=N().x(t=>o(t.date)).y0(a).y1(t=>P(t.value)).curve(V),i=r.append("defs").append("linearGradient").attr("id",x).attr("x1","0%").attr("y1","0%").attr("x2","0%").attr("y2","100%"),T=(t,c)=>{if(t.startsWith("var("))return t.includes("blue")?`rgba(59, 130, 246, ${c})`:t.includes("green")?`rgba(37, 255, 205, ${c})`:t.includes("red")?`rgba(239, 68, 68, ${c})`:`rgba(59, 130, 246, ${c})`;if(t.startsWith("#")){const e=t.slice(1),A=e.length===3?parseInt(e[0]+e[0],16):parseInt(e.slice(0,2),16),D=e.length===3?parseInt(e[1]+e[1],16):parseInt(e.slice(2,4),16),L=e.length===3?parseInt(e[2]+e[2],16):parseInt(e.slice(4,6),16);return`rgba(${A}, ${D}, ${L}, ${c})`}if(t.startsWith("rgb")){const e=t.match(/\d+/g);if(e&&e.length>=3)return`rgba(${e[0]}, ${e[1]}, ${e[2]}, ${c})`}return`rgba(59, 130, 246, ${c})`};f==="custom"&&v?(i.append("stop").attr("offset","45.9%").attr("stop-color",T(v,.16)),i.append("stop").attr("offset","96.67%").attr("stop-color",T(v,0))):f==="blue"?(i.append("stop").attr("offset","45.9%").attr("stop-color","rgba(7, 77, 215, 0.3)"),i.append("stop").attr("offset","96.67%").attr("stop-color","rgba(7, 77, 215, 0.3)")):f==="green"||y&&f!=="red"?(i.append("stop").attr("offset","45.9%").attr("stop-color","rgba(63, 194, 167, 0.1)"),i.append("stop").attr("offset","96.67%").attr("stop-color","rgba(63, 194, 167, 0)")):(i.append("stop").attr("offset","0%").attr("stop-color","rgba(255, 93, 127, 0.1)"),i.append("stop").attr("offset","91.8%").attr("stop-color","rgba(255, 63, 105, 0)")),M.append("path").datum(u).attr("fill",`url(#${x})`).attr("d",F),M.append("path").datum(u).attr("fill","none").attr("stroke",C).attr("stroke-width",1).attr("stroke-linecap","round").attr("stroke-linejoin","round").attr("d",E)},[u,l,d,C,y,f,v]),!n||n.length===0?$.jsx($.Fragment,{}):$.jsx("svg",{ref:h,width:l,height:d,viewBox:`0 0 ${l} ${d}`,className:X("h-auto max-w-full",R),style:{width:l,height:"auto"}})},U=p.memo(q);export{U as M};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as f,j as a}from"./react-qoZPGuNy.js";import{b as h}from"./format-
|
|
1
|
+
import{r as f,j as a}from"./react-qoZPGuNy.js";import{b as h}from"./format-DxkEZcwQ.js";import{f as P,b6 as u,b7 as b}from"./index-CiYWppnQ.js";import{T as g,a as x}from"./treemap-leaf-QG-L-SIG.js";import{F as p}from"./ui-Bq3RQsdJ.js";import"./utils-DxneYyA_.js";import"./d3-ibrLIlQc.js";u.schema;function j({width:o,height:t,data:r}){const s=h(r.sharePct,1);return a.jsx(x,{width:o,height:t,label:r.id,secondary:s,title:`${r.id} · ${s} of blocks`})}function C({config:o}){const{pools:t,isLoading:r}=b(o.window),s=f.useMemo(()=>{const n=(t==null?void 0:t.pools)??[],l=n.slice(0,o.topN).map(e=>({id:e.name,value:e.blockCount,sharePct:e.sharePct})),i=n.slice(o.topN);if(i.length>0){const e=i.reduce((c,m)=>c+m.blockCount,0),d=i.reduce((c,m)=>c+m.sharePct,0);e>0&&l.push({id:"Other",value:e,sharePct:d})}return l},[t,o.topN]);return r?a.jsx(p,{loading:!0,children:"loading pools…"}):s.length===0?a.jsx(p,{children:"no mining data yet"}):a.jsx(g,{data:s,LeafComponent:j,getColorValue:n=>n.sharePct})}const y=P({...u,component:C});export{y as miningPoolsFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as d,j as s}from"./react-qoZPGuNy.js";import{b as h}from"./format-DxkEZcwQ.js";import{f as j,cY as x,b7 as P}from"./index-CiYWppnQ.js";import{F as p}from"./ui-Bq3RQsdJ.js";import{C as u}from"./chart-utils-DGogNvJT.js";import{P as N}from"./pie-chart-BIxKuHm-.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";x.schema;function b({config:n}){const{pools:l,isLoading:f}=P(n.window),a=d.useMemo(()=>{const e=(l==null?void 0:l.pools)??[],r=e.slice(0,n.topN),c=e.slice(n.topN),i=r.map(t=>({name:t.name,value:t.blockCount,sharePct:t.sharePct})),m=c.reduce((t,o)=>t+o.blockCount,0);return m>0&&i.push({name:"Other",value:m,sharePct:c.reduce((t,o)=>t+o.sharePct,0)}),i.map((t,o)=>({...t,color:u[o%u.length]}))},[l,n.topN]),g=d.useMemo(()=>[...a].filter(e=>e.name!=="Other").sort((e,r)=>r.sharePct-e.sharePct).slice(0,3).reduce((e,r)=>e+r.sharePct,0),[a]);return f?s.jsx(p,{loading:!0,children:"loading pools…"}):a.length===0?s.jsx(p,{children:"no mining data yet"}):s.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-4",children:[s.jsx(N,{data:a,width:188,height:188,innerRadius:54,outerRadius:86,colors:a.map(e=>e.color),children:s.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[s.jsx("span",{className:"caption text-soft uppercase",children:"top 3"}),s.jsx("span",{className:"metric-lg text-strong leading-none",children:h(g,0)})]})}),s.jsx("div",{className:"flex w-full max-w-xs flex-wrap justify-center gap-x-4 gap-y-1.5",children:a.map(e=>s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("span",{className:"h-2 w-2 flex-shrink-0 rounded-full",style:{background:e.color}}),s.jsx("span",{className:"body-sm text-soft",children:e.name}),s.jsx("span",{className:"body-sm text-normal font-bold tabular-nums",children:h(e.sharePct,1)})]},e.name))})]})}const E=j({...x,component:b});export{E as miningPoolsShareFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as j,j as e}from"./react-qoZPGuNy.js";import{b as d}from"./format-DxkEZcwQ.js";import{f as I,dh as f,S as x}from"./index-CiYWppnQ.js";import{F as h}from"./ui-Bq3RQsdJ.js";import{C as y}from"./chart-utils-DGogNvJT.js";import{S as C}from"./index-DuNO-RcB.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";f.schema;const M="CUUR0000SA0",Y="LNS14000000";function L(i){const p=new Map(i.map(n=>[n.time,n.value]));return i.flatMap(n=>{const a=new Date(n.time),r=Date.UTC(a.getUTCFullYear()-1,a.getUTCMonth(),1),m=p.get(r);return m===void 0||m<=0?[]:[{...n,value:(n.value/m-1)*100}]})}function U(i){return i.toLocaleDateString("en-US",{month:"short",year:"2-digit",timeZone:"UTC"})}function N({config:i}){const n=new Date().getUTCFullYear(),a=n-3,{series:r,isLoading:m}=x(M,a,n),{series:c,isLoading:g}=x(Y,a,n),s=j.useMemo(()=>{if(!r||!c)return[];const t=new Map(L(r.points).map(o=>[o.time,o.value]));return c.points.flatMap(o=>{const u=t.get(o.time);return u===void 0?[]:[{time:o.time,date:o.date,cpiYoy:u,unemploymentRate:o.value}]}).slice(-i.months)},[r,c,i.months]);if((m||g)&&s.length===0)return e.jsx(h,{loading:!0,children:"loading misery index…"});if(s.length===0)return e.jsx(h,{children:"no misery-index data yet"});const l=s.at(-1),S=l.cpiYoy+l.unemploymentRate,v=[{id:"unemployment",name:"Unemployment",color:y[0],data:s.map(t=>({date:new Date(t.time).toISOString(),value:t.unemploymentRate}))},{id:"cpi",name:"CPI YoY",color:y[2],data:s.map(t=>({date:new Date(t.time).toISOString(),value:t.cpiYoy}))}];return e.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-2",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("div",{className:"caption text-soft uppercase",children:"misery index"}),e.jsx("div",{className:"body-sm text-normal",children:l.date})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("div",{className:"metric-lg text-strong leading-none",children:d(S,1)}),e.jsx("div",{className:"caption text-soft mt-1",children:"CPI YoY + unemployment"})]})]}),e.jsx(C,{series:v,height:200,formatXAxis:U,formatYAxis:t=>d(t,0),formatValue:t=>d(t,1)}),e.jsxs("div",{className:"caption text-soft text-center",children:["BLS CPI-U + unemployment · ",s.length," monthly observations"]})]})}const A=I({...f,component:N});export{A as miseryIndexFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as t}from"./react-qoZPGuNy.js";import{A as n}from"./index-CiYWppnQ.js";import{e as r,a as d,c as l}from"./format-DxkEZcwQ.js";function c({symbol:i,label:a,price:s,changePct:o,logoSize:e=16,gap:m="gap-2"}){return t.jsxs("div",{className:`grid grid-cols-[auto_minmax(0,1fr)_auto_auto] items-center ${m}`,title:s!==void 0?`${a} · ${r(s)}`:a,children:[t.jsx(n,{symbol:i,size:e}),t.jsx("span",{className:"body-sm truncate font-bold text-strong",children:a}),t.jsx("span",{className:"caption text-soft text-right tabular-nums",children:s!==void 0?r(s):"—"}),t.jsx("span",{className:`caption text-right font-bold tabular-nums${o===void 0?" text-disabled":""}`,style:o!==void 0?{color:l(o)}:void 0,children:o!==void 0?d(o):"…"})]})}export{c as M};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as d,j as r}from"./react-qoZPGuNy.js";import{a as p,D as f,U as u}from"./format-DxkEZcwQ.js";import{f as x,cp as l,bg as g}from"./index-CiYWppnQ.js";import{F as c}from"./ui-Bq3RQsdJ.js";import{B as v}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";l.schema;function j({config:a}){const{entries:i,isLoading:h}=g(),e=a.window,n=d.useMemo(()=>{const o=i.filter(t=>{var s;return Number.isFinite((s=t.changePct)==null?void 0:s[e])&&t.volume24hUsd>0}).sort((t,s)=>s.changePct[e]-t.changePct[e]),m=Math.floor(a.limit/2);return(o.length<=a.limit?o:[...o.slice(0,m),...o.slice(-m)]).map(t=>({label:t.symbol,value:t.changePct[e]}))},[i,e,a.limit]);return h?r.jsx(c,{loading:!0,children:"loading movers…"}):n.length===0?r.jsx(c,{children:"no mover data yet"}):r.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[r.jsx(v,{data:n,orientation:"horizontal",color:u,negativeColor:f,height:Math.max(n.length*22,96),formatValue:p}),r.jsxs("div",{className:"caption text-soft text-center",children:["top movers · ",e," change"]})]})}const N=x({...l,component:j});export{N as moversBarsFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as b,j as h}from"./react-qoZPGuNy.js";import{f as g,cn as m,bg as d,af as p}from"./index-CiYWppnQ.js";import{B as u}from"./bubbles-shared-DY914nhm.js";import{c,a as f}from"./format-DxkEZcwQ.js";import"./ui-Bq3RQsdJ.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";m.schema;function P({config:a}){const{entries:s,isLoading:i}=d(),o=a.window,l=b.useMemo(()=>{const t=s.filter(e=>{var r;return Number.isFinite((r=e.changePct)==null?void 0:r[o])&&e.volume24hUsd>0}).sort((e,r)=>r.changePct[o]-e.changePct[o]),n=Math.floor(a.limit/2);return(t.length<=a.limit?t:[...t.slice(0,n),...t.slice(-n)]).map(e=>({id:e.symbol,label:e.symbol,value:Math.max(Math.abs(e.changePct[o]),.05),imageUrl:p(e.symbol),color:c(e.changePct[o]),borderColor:c(e.changePct[o]),changePct:e.changePct[o]}))},[s,o,a.limit]);return h.jsx(u,{nodes:l,isLoading:i,loadingText:"loading movers…",emptyText:"no mover data yet",caption:`area by ${o} move · green gainers / red losers`,formatTitle:t=>`${t.label} · ${f(t.changePct)} ${o}`})}const j=g({...m,component:P});export{j as moversBubblesFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as a}from"./react-qoZPGuNy.js";import{z as l,M as s,Z as m,a as c}from"./cycle-shared-
|
|
1
|
+
import{j as a}from"./react-qoZPGuNy.js";import{z as l,M as s,Z as m,a as c}from"./cycle-shared-XoGVsOjC.js";import{e as v,D as d,U as p}from"./format-DxkEZcwQ.js";import{t as u,w as f}from"./indicators-Cw7CVPn4.js";import{f as O,bh as i,bi as h}from"./index-CiYWppnQ.js";import{F as e}from"./ui-Bq3RQsdJ.js";import"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";i.schema;function R({config:t}){const{valuation:o,isLoading:n}=h();if(n)return a.jsx(e,{loading:!0,children:"loading MVRV…"});if(!o)return a.jsx(e,{children:"no on-chain data yet"});const r=l(o.mvrv,[{upTo:1,zone:{label:"Undervalued",color:p}},{upTo:2,zone:{label:"Fair value",color:m}},{upTo:3,zone:{label:"Elevated",color:c}}],{label:"Overvalued",color:d});return a.jsx(s,{caption:"MVRV Ratio",headline:o.mvrv.toFixed(2),headlineColor:r.color,zone:r,sub:`Z ${o.mvrvZScore.toFixed(2)} · RP ${v(o.realizedPrice)}`,sparkline:u(o.history.mvrv,f(t.window)),sparkColor:r.color})}const V=O({...i,component:R});export{V as mvrvFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as m,j as t}from"./react-qoZPGuNy.js";import{w as c,a as d,t as u}from"./indicators-Cw7CVPn4.js";import{f,d4 as s,bi as h}from"./index-CiYWppnQ.js";import{F as i}from"./ui-Bq3RQsdJ.js";import{C as p,a as l}from"./chart-utils-DGogNvJT.js";import{M as v}from"./index-BpPIfN5S.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";s.schema;function S({config:e}){const{valuation:a,isLoading:n}=h(),o=m.useMemo(()=>{if(!a)return[];const r=c(e.window);return[{id:"mvrv-zscore",name:"MVRV Z-Score",color:p[0],data:d(u(a.history.mvrvZScore,r))}]},[a,e.window]);return n?t.jsx(i,{loading:!0,children:"loading MVRV Z-Score…"}):!a||o.every(r=>r.data.length===0)?t.jsx(i,{children:"no on-chain data yet"}):t.jsx(v,{series:o,timeframe:l.YTD,height:220,formatValue:r=>r.toFixed(2)})}const F=f({...s,component:S});export{F as mvrvZscoreChartFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as m,j as t}from"./react-qoZPGuNy.js";import{f as a}from"./format-
|
|
1
|
+
import{r as m,j as t}from"./react-qoZPGuNy.js";import{f as a}from"./format-DxkEZcwQ.js";import{f as x,U as o,V as h}from"./index-CiYWppnQ.js";import{F as l}from"./ui-Bq3RQsdJ.js";import{M as p}from"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";o.schema;function u({config:n}){const{debt:e,isLoading:d}=h(n.trendDays),c=m.useMemo(()=>((e==null?void 0:e.trend)??[]).map(r=>({date:new Date(r.time).toISOString(),value:r.total})),[e==null?void 0:e.trend]);if(d)return t.jsx(l,{loading:!0,children:"loading national debt…"});if(!e)return t.jsx(l,{children:"no debt data yet"});const s=e.trend[0],i=s?e.total-s.total:null;return t.jsxs("div",{className:"flex h-full min-h-0 flex-col justify-center gap-3",children:[t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{children:[t.jsx("div",{className:"caption text-soft uppercase",children:"total public debt"}),t.jsxs("div",{className:"body-sm text-normal",children:["as of ",e.date]})]}),t.jsx("div",{className:"caption text-soft text-right",children:"daily"})]}),t.jsxs("div",{className:"flex items-end justify-between gap-3",children:[t.jsx("div",{className:"metric-xl text-strong leading-none",children:a(e.total)}),i!==null&&s&&t.jsxs("div",{className:"text-right",children:[t.jsxs("div",{className:"body-md text-normal font-bold tabular-nums",children:[i>=0?"+":"",a(i)]}),t.jsxs("div",{className:"caption text-soft",children:["since ",s.date]})]})]}),t.jsx(p,{data:c,width:210,height:42,color:"hsl(var(--zf-accent-hue, 242) 85% 72%)"}),n.showSplit&&t.jsxs("div",{className:"grid grid-cols-2 gap-1.5 border-t border-white/[0.08] pt-2",children:[t.jsxs("div",{className:"rounded bg-white/[0.04] px-2 py-1.5",children:[t.jsx("div",{className:"caption text-soft truncate",children:"Held by public"}),t.jsx("div",{className:"body-sm text-strong font-bold tabular-nums",children:a(e.heldByPublic)})]}),t.jsxs("div",{className:"rounded bg-white/[0.04] px-2 py-1.5",children:[t.jsx("div",{className:"caption text-soft truncate",children:"Intragovernmental"}),t.jsx("div",{className:"body-sm text-strong font-bold tabular-nums",children:a(e.intragovernmental)})]})]})]})}const w=x({...o,component:u});export{w as nationalDebtFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as s,r as h}from"./react-qoZPGuNy.js";import{F as f}from"./feed-row-mVg1d5Zj.js";import{t as p}from"./format-DxkEZcwQ.js";import{f as x,a5 as i,a6 as b}from"./index-CiYWppnQ.js";import{F as t,s as j}from"./ui-Bq3RQsdJ.js";i.schema;const g={coindesk:"CoinDesk",cointelegraph:"Cointelegraph",decrypt:"Decrypt",cnbc:"CNBC Markets",nasdaq:"Nasdaq",stocks:"Google News"};function y({src:e}){const[r,a]=h.useState(!1);return r?null:s.jsx("img",{src:e,alt:"",loading:"lazy",decoding:"async",referrerPolicy:"no-referrer",onError:()=>a(!0),className:"size-12 shrink-0 rounded-md bg-white/[0.04] object-cover ring-1 ring-white/10"})}function w({item:e}){return s.jsx(f,{href:e.url,leading:e.imageUrl?s.jsx(y,{src:e.imageUrl}):void 0,title:e.title,subtitle:e.summary||void 0,meta:e.publishedAt!==void 0?p(e.publishedAt):void 0})}function N({config:e}){var n;const r=e.source==="stocks",a=r&&e.symbols.length===0,c=a?"":e.source,{items:o,isLoading:d}=b(c,r?e.symbols:void 0,e.count);if(a)return s.jsx(t,{children:"add stock symbols to show company headlines"});if(d)return s.jsx(t,{loading:!0,children:"loading headlines…"});const m=((n=o[0])==null?void 0:n.source)??g[e.source]??"news";return s.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-2",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[s.jsx("span",{className:"caption text-soft truncate",children:m}),s.jsx("span",{className:"caption text-soft shrink-0",children:"headlines"})]}),s.jsx("div",{className:j,children:o.length>0?o.map((l,u)=>s.jsx(w,{item:l},`${l.url}-${u}`)):s.jsxs(t,{children:["no headlines ",r?"for these symbols":"available"," — the runtime proxy may be offline"]})})]})}const A=x({...i,component:N});export{A as newsFeedFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as m,j as t}from"./react-qoZPGuNy.js";import{d as c}from"./format-DxkEZcwQ.js";import{f,cI as o,c3 as h}from"./index-CiYWppnQ.js";import{F as i}from"./ui-Bq3RQsdJ.js";import{B as p}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";o.schema;function x({config:s}){const{collections:r,isLoading:n}=h(),e=m.useMemo(()=>[...r].sort((a,l)=>l.sales24h-a.sales24h).slice(0,s.limit).map(a=>({label:a.name,value:a.sales24h})),[r,s.limit]);return n?t.jsx(i,{loading:!0,children:"loading NFT activity…"}):e.length===0?t.jsx(i,{children:"no NFT data yet"}):t.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[t.jsx(p,{data:e,orientation:"horizontal",height:Math.max(e.length*26,96),formatValue:c}),t.jsx("div",{className:"caption text-soft text-center",children:"NFT sales · last 24h"})]})}const y=f({...o,component:x});export{y as nftActivityBarsFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as m,j as f}from"./react-qoZPGuNy.js";import{B as i}from"./bubbles-shared-DY914nhm.js";import{c as l,e as c,a as p}from"./format-DxkEZcwQ.js";import{f as h,cl as s,c3 as d}from"./index-CiYWppnQ.js";import"./ui-Bq3RQsdJ.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";s.schema;function b({config:e}){const{collections:r,isLoading:n}=d(),a=m.useMemo(()=>r.filter(o=>o.marketCapUsd>0).slice(0,e.topN).map(o=>({id:o.name,label:o.name,value:o.marketCapUsd,color:l(o.floorChangePct24h),borderColor:l(o.floorChangePct24h),floorUsd:o.floorUsd,floorChangePct24h:o.floorChangePct24h})),[r,e.topN]);return f.jsx(i,{nodes:a,isLoading:n,loadingText:"loading NFT floors…",emptyText:"no NFT data",caption:`area by mcap · ring by 24h floor change · top ${a.length}`,formatTitle:o=>{const t=o;return`${t.label} · ${c(t.floorUsd)} floor · ${p(t.floorChangePct24h)}`}})}const T=h({...s,component:b});export{T as nftBubblesFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as s}from"./react-qoZPGuNy.js";import{e as l,f as i,a as m,c}from"./format-DxkEZcwQ.js";import{M as f}from"./metric-row-BVVhjsjK.js";import{f as d,c2 as r,c3 as h}from"./index-CiYWppnQ.js";import{F as e,s as p}from"./ui-Bq3RQsdJ.js";r.schema;function u({config:t}){const{collections:a,isLoading:n}=h();return n?s.jsx(e,{loading:!0,children:"loading NFT floors…"}):a.length===0?s.jsx(e,{children:"no NFT data"}):s.jsx("div",{className:p,children:a.slice(0,t.topN).map(o=>s.jsx(f,{label:o.name,meta:s.jsxs("span",{children:[i(o.volume24hUsd)," vol"," · ",s.jsx("span",{style:{color:c(o.floorChangePct24h)},children:m(o.floorChangePct24h)})]}),value:l(o.floorUsd)},o.id))})}const N=d({...r,component:u});export{N as nftCollectionsFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as n,j as r}from"./react-qoZPGuNy.js";import{c,f,a as h}from"./format-DxkEZcwQ.js";import{f as d,cs as i,c3 as p}from"./index-CiYWppnQ.js";import{F as s}from"./ui-Bq3RQsdJ.js";import{S as u}from"./scatter-chart-B28DJ7P-.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";i.schema;function x(e){return e.length>12?`${e.slice(0,11)}…`:e}function g({config:e}){const{collections:a,isLoading:l}=p(),o=n.useMemo(()=>a.filter(t=>Number.isFinite(t.floorChangePct24h)&&t.volume24hUsd>0).sort((t,m)=>m.marketCapUsd-t.marketCapUsd).slice(0,e.limit).map(t=>({id:t.id,label:x(t.name),x:t.floorChangePct24h,y:t.volume24hUsd,weight:t.marketCapUsd,color:c(t.floorChangePct24h)})),[a,e.limit]);return l?r.jsx(s,{loading:!0,children:"loading NFTs…"}):o.length===0?r.jsx(s,{children:"no NFT data yet"}):r.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[r.jsx(u,{data:o,yScale:"log",height:210,zeroXLine:!0,formatX:h,formatY:f,maxLabels:10}),r.jsx("div",{className:"caption text-soft text-center",children:"24h floor change (x) vs 24h volume (y, log)"})]})}const y=d({...i,component:g});export{y as nftScatterFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as f,j as s}from"./react-qoZPGuNy.js";import{e as i,a as l}from"./format-DxkEZcwQ.js";import{f as p,c8 as m,c3 as c}from"./index-CiYWppnQ.js";import{T as d,a as h}from"./treemap-leaf-QG-L-SIG.js";import{F as n}from"./ui-Bq3RQsdJ.js";import"./utils-DxneYyA_.js";import"./d3-ibrLIlQc.js";m.schema;function u({width:t,height:a,data:e}){const r=i(e.floorUsd);return s.jsx(h,{width:t,height:a,label:e.id,secondary:r,title:`${e.id} · ${r} floor · ${l(e.floorChangePct24h)}`})}function C({config:t}){const{collections:a,isLoading:e}=c(),r=f.useMemo(()=>a.filter(o=>o.marketCapUsd>0).slice(0,t.topN).map(o=>({id:o.name,value:o.marketCapUsd,floorUsd:o.floorUsd,floorChangePct24h:o.floorChangePct24h})),[a,t.topN]);return e?s.jsx(n,{loading:!0,children:"loading NFT floors…"}):r.length===0?s.jsx(n,{children:"no NFT data"}):s.jsx(d,{data:r,LeafComponent:u,getColorValue:o=>o.floorChangePct24h})}const U=p({...m,component:C});export{U as nftTreemapFrame};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{j as c,r as d}from"./react-qoZPGuNy.js";import{f as y,a7 as k,a8 as N}from"./index-CiYWppnQ.js";import{s as w}from"./ui-Bq3RQsdJ.js";const u={code:"rounded px-1 py-px font-mono text-[0.85em] text-strong",link:"text-highlight underline underline-offset-2 hover:opacity-80",strong:"text-strong font-bold",em:"italic",h1:"body-lg text-strong font-bold",h2:"body-md text-strong font-bold",h3:"body-sm text-strong font-semibold uppercase tracking-wide",list:"space-y-0.5 pl-5"};function E(s){return/^https?:\/\//i.test(s.trim())}function f(s){const e=[];let r="",o=0;const n=()=>{r&&(e.push(r),r="")};let t=0;for(;t<s.length;){const a=s[t],h=s.slice(t);if(a==="`"){const l=s.indexOf("`",t+1);if(l>t){n(),e.push(c.jsx("code",{className:u.code,style:{background:"hsl(0 0% var(--zf-ink-l, 100%) / 0.1)"},children:s.slice(t+1,l)},o++)),t=l+1;continue}}if(a==="["){const l=/^\[([^\]]+)\]\(([^)\s]+)\)/.exec(h);if(l){const[i,m,x]=l;n(),E(x)?e.push(c.jsx("a",{href:x,target:"_blank",rel:"noopener noreferrer",className:u.link,onClick:p=>p.stopPropagation(),children:f(m)},o++)):e.push(c.jsx(d.Fragment,{children:f(m)},o++)),t+=i.length;continue}}if(a==="*"&&s[t+1]==="*"){const l=s.indexOf("**",t+2);if(l>t+1){n(),e.push(c.jsx("strong",{className:u.strong,children:f(s.slice(t+2,l))},o++)),t=l+2;continue}}if(a==="*"){const l=s.indexOf("*",t+1);if(l>t+1){n(),e.push(c.jsx("em",{className:u.em,children:f(s.slice(t+1,l))},o++)),t=l+1;continue}}r+=a,t++}return n(),e}function $(s,e){return c.jsx("p",{className:"leading-snug",children:s.map((r,o)=>c.jsxs(d.Fragment,{children:[o>0&&c.jsx("br",{}),f(r)]},o))},e)}const j=/^(#{1,3})\s+(.*)$/,g=/^\s*[-*]\s+(.*)$/,b=/^\s*\d+\.\s+(.*)$/;function v(s){const e=s.replace(/\r\n?/g,`
|
|
2
|
+
`).split(`
|
|
3
|
+
`),r=[];let o=0,n=0;for(;n<e.length;){const t=e[n];if(t.trim()===""){n++;continue}const a=j.exec(t);if(a){const l=a[1].length,i=l===1?u.h1:l===2?u.h2:u.h3;r.push(c.jsx("div",{className:i,children:f(a[2].trim())},o++)),n++;continue}if(g.test(t)||b.test(t)){const l=!g.test(t),i=l?b:g,m=[];for(;n<e.length&&i.test(e[n]);){const p=i.exec(e[n]);m.push(c.jsx("li",{children:f(p?p[1]:"")},m.length)),n++}const x=l?"ol":"ul";r.push(c.jsx(x,{className:`${u.list} ${l?"list-decimal":"list-disc"}`,children:m},o++));continue}const h=[];for(;n<e.length&&e[n].trim()!==""&&!j.test(e[n])&&!g.test(e[n])&&!b.test(e[n]);)h.push(e[n]),n++;r.push($(h,o++))}return r}k.schema;function C({config:s}){const e=N(),[r,o]=d.useState(!1),[n,t]=d.useState(s.text),a=d.useRef(null);d.useEffect(()=>{t(s.text)},[s.text]),d.useEffect(()=>{var i;r&&((i=a.current)==null||i.focus())},[r]);const h=d.useCallback(()=>{n!==s.text&&(e==null||e({text:n})),o(!1)},[e,n,s.text]),l=s.align==="center";return r?c.jsx("textarea",{ref:a,className:`body-sm text-normal h-full w-full resize-none bg-transparent outline-none placeholder:text-disabled ${l?"text-center":""}`,value:n,onChange:i=>t(i.target.value),onBlur:h,onKeyDown:i=>{i.key==="Escape"&&(t(s.text),o(!1))},placeholder:"Write a note… (Markdown supported)"}):c.jsx("div",{className:`body-sm text-normal ${w} ${l?"flex items-center justify-center text-center":""} ${e?"cursor-text":""}`,onClick:()=>e&&o(!0),title:e?"Click to edit":void 0,children:s.text?c.jsx("div",{className:`flex flex-col gap-2 break-words ${l?"items-center text-center":""}`,children:v(s.text)}):c.jsx("span",{className:"text-soft italic",children:e?"Click to add a note…":"New note"})})}const _=y({...k,component:C});export{_ as noteFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./react-qoZPGuNy.js";import{z as s,Z as r,a as p,M as m}from"./cycle-shared-
|
|
1
|
+
import{j as e}from"./react-qoZPGuNy.js";import{z as s,Z as r,a as p,M as m}from"./cycle-shared-XoGVsOjC.js";import{D as u,U as c}from"./format-DxkEZcwQ.js";import{t as d,w as f}from"./indicators-Cw7CVPn4.js";import{f as O,bj as i,bi as h}from"./index-CiYWppnQ.js";import{F as n}from"./ui-Bq3RQsdJ.js";import"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";i.schema;function z({config:l}){const{valuation:o,isLoading:t}=h();if(t)return e.jsx(n,{loading:!0,children:"loading NUPL…"});if(!o)return e.jsx(n,{children:"no on-chain data yet"});const a=s(o.nupl,[{upTo:0,zone:{label:"Capitulation",color:c}},{upTo:.25,zone:{label:"Hope / Fear",color:r}},{upTo:.5,zone:{label:"Optimism",color:r}},{upTo:.75,zone:{label:"Belief",color:p}}],{label:"Euphoria / Greed",color:u});return e.jsx(m,{caption:"Net Unrealized P/L",headline:`${(o.nupl*100).toFixed(1)}%`,headlineColor:a.color,zone:a,sparkline:d(o.history.nupl,f(l.window)),sparkColor:a.color})}const R=O({...i,component:z});export{R as nuplFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as u,j as r}from"./react-qoZPGuNy.js";import{b as l}from"./format-DxkEZcwQ.js";import{w as p,t as c}from"./indicators-Cw7CVPn4.js";import{f,d5 as m,bi as d}from"./index-CiYWppnQ.js";import{F as n}from"./ui-Bq3RQsdJ.js";import{C as h,a as C}from"./chart-utils-DGogNvJT.js";import{M as w}from"./index-BpPIfN5S.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";m.schema;function x({config:e}){const{valuation:a,isLoading:s}=d(),o=u.useMemo(()=>{if(!a)return[];const t=p(e.window);return[{id:"nupl",name:"NUPL",color:h[0],data:c(a.history.nupl,t).map(i=>({date:new Date(i.time).toISOString(),value:i.value*100}))}]},[a,e.window]);return s?r.jsx(n,{loading:!0,children:"loading NUPL…"}):!a||o.every(t=>t.data.length===0)?r.jsx(n,{children:"no on-chain data yet"}):r.jsx(w,{series:o,timeframe:C.YTD,height:220,formatValue:t=>l(t,1)})}const O=f({...m,component:x});export{O as nuplCycleChartFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as t}from"./react-qoZPGuNy.js";import{b as a}from"./format-DxkEZcwQ.js";import{f,de as o,al as m}from"./index-CiYWppnQ.js";import{F as n}from"./ui-Bq3RQsdJ.js";import{R as l}from"./radial-gauge-0BzRQ6fO.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";o.schema;const r=(s=1)=>`hsl(var(--zf-accent-hue, 242) 85% 72% / ${s})`;function u(s){const{rates:d,isLoading:i}=m(),e=d.find(c=>c.code==="EFFR");return i?t.jsx(n,{loading:!0,children:"loading fed funds rate…"}):!e||e.targetRateFrom===void 0||e.targetRateTo===void 0?t.jsx(n,{children:"no fed-funds target data yet"}):t.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-1",children:[t.jsxs(l,{value:e.rate,min:e.targetRateFrom,max:e.targetRateTo,color:r(),size:170,children:[t.jsx("div",{className:"metric-xl leading-none",style:{color:r(),textShadow:`0 0 28px ${r(.35)}`},children:a(e.rate)}),t.jsx("div",{className:"caption text-soft mt-1 uppercase tracking-wide",children:"effective fed funds"})]}),t.jsxs("div",{className:"caption text-soft",children:["target ",a(e.targetRateFrom),"–",a(e.targetRateTo)]})]})}const v=f({...o,component:u});export{v as nyfedFedFundsBandGaugeFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,j as r}from"./react-qoZPGuNy.js";import{f,b as c}from"./format-DxkEZcwQ.js";import{f as u,dc as n,al as d}from"./index-CiYWppnQ.js";import{F as s}from"./ui-Bq3RQsdJ.js";import{B as p}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";n.schema;function h({config:t}){const{rates:o,isLoading:m}=d(),a=i.useMemo(()=>{const l=o.slice(0,t.limit);return t.metric==="volume"?l.filter(e=>e.volumeInBillions!==void 0).map(e=>({label:e.label,value:e.volumeInBillions*1e9})):l.map(e=>({label:e.label,value:e.rate}))},[o,t.limit,t.metric]);return m?r.jsx(s,{loading:!0,children:"loading reference rates…"}):a.length===0?r.jsx(s,{children:"no reference-rate data yet"}):r.jsx("div",{className:"flex h-full flex-col justify-center text-normal",children:r.jsx(p,{data:a,orientation:"horizontal",height:Math.max(a.length*26,96),formatValue:t.metric==="volume"?f:c})})}const F=u({...n,component:h});export{F as nyfedReferenceRateBarsFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as m,j as a}from"./react-qoZPGuNy.js";import{b as f}from"./format-DxkEZcwQ.js";import{f as l,dd as o,al as c}from"./index-CiYWppnQ.js";import{F as s}from"./ui-Bq3RQsdJ.js";import{B as d}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";o.schema;function u(p){const{rates:n,isLoading:i}=c(),e=n.find(r=>r.code==="SOFRAI"),t=m.useMemo(()=>e?[{label:"30D",value:e.average30Day},{label:"90D",value:e.average90Day},{label:"180D",value:e.average180Day}].filter(r=>r.value!==void 0):[],[e]);return i?a.jsx(s,{loading:!0,children:"loading SOFR averages…"}):t.length===0?a.jsx(s,{children:"no SOFR term-average data yet"}):a.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[a.jsx(d,{data:t,height:160,formatValue:f}),a.jsx("div",{className:"caption text-soft text-center",children:"SOFR compounded averages"})]})}const S=l({...o,component:u});export{S as nyfedSofrTermAveragesBarsFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as x,j as t}from"./react-qoZPGuNy.js";import{f as g,dg as c,Q as p}from"./index-CiYWppnQ.js";import{F as o}from"./ui-Bq3RQsdJ.js";import{C as l}from"./chart-utils-DGogNvJT.js";import{S as h}from"./index-DuNO-RcB.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";c.schema;const y=[["credit","Credit"],["equityValuation","Equity valuation"],["safeAssets","Safe assets"],["funding","Funding"],["volatility","Volatility"]];function j(e){return`${e.getMonth()+1}/${e.getDate()}`}function d(e){return e>0?`+${e.toFixed(1)}`:e.toFixed(1)}function S({series:e}){return t.jsx("div",{className:"flex flex-wrap items-center justify-center gap-x-3 gap-y-1",children:e.map(s=>t.jsxs("span",{className:"caption text-soft flex items-center gap-1",children:[t.jsx("span",{className:"h-1.5 w-1.5 shrink-0 rounded-full",style:{background:s.color}}),s.name]},s.id))})}function v({config:e}){const{stress:s,isLoading:m}=p(),r=x.useMemo(()=>{const i=((s==null?void 0:s.trend)??[]).slice(-e.trendDays).filter(a=>a.credit!==void 0&&a.equityValuation!==void 0&&a.safeAssets!==void 0&&a.funding!==void 0&&a.volatility!==void 0);return i.length<2?[]:y.map(([a,f],u)=>({id:a,name:f,color:l[u%l.length],data:i.map(n=>({date:new Date(n.time),value:n[a]}))}))},[s,e.trendDays]);return m?t.jsx(o,{loading:!0,children:"loading stress categories…"}):r.length===0?t.jsx(o,{children:"no stress-category data yet"}):t.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-2",children:[t.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[t.jsx("div",{className:"caption text-soft uppercase",children:"OFR FSI by category"}),t.jsx("div",{className:"caption text-soft text-right",children:s?s.date:""})]}),t.jsx(h,{series:r,height:210,formatXAxis:j,formatYAxis:d,formatValue:d}),t.jsx(S,{series:r})]})}const b=g({...c,component:v});export{b as ofrStressCategoryAreaFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as m,j as r}from"./react-qoZPGuNy.js";import{f as h,cw as c,ac as d,h as f}from"./index-CiYWppnQ.js";import{U as p,D as x,d as v}from"./format-DxkEZcwQ.js";import{F as i}from"./ui-Bq3RQsdJ.js";import{B as g}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";const n={"1m":6e4,"5m":5*6e4,"15m":15*6e4,"1h":60*6e4,"4h":240*6e4,"1d":1440*6e4},L=48;c.schema;function j(t,e){const a=new Date(t);return e>=n["1d"]?a.toLocaleDateString("en-US",{month:"short",day:"numeric"}):e>=n["1h"]?`${a.getMonth()+1}/${a.getDate()} ${String(a.getHours()).padStart(2,"0")}h`:a.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"})}function O({config:t}){const e=n[t.interval],a=m.useMemo(()=>Date.now()-e*L,[e]),{candles:s,isLoading:u}=d(t.symbol,t.interval,a,Math.min(e,6e4)),l=m.useMemo(()=>s.map(o=>({label:j(o.time,e),value:o.volume??0,color:o.close>=o.open?p:x})),[s,e]);return u&&s.length===0?r.jsx(i,{loading:!0,children:"loading volume…"}):l.length===0?r.jsx(i,{children:"no candle data yet"}):r.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[r.jsx(g,{data:l,height:200,formatValue:v,showValues:!1,maxTickLabels:6}),r.jsxs("div",{className:"caption text-soft text-center",children:[f(t.symbol)," volume · ",t.interval," candles"]})]})}const V=h({...c,component:O});export{V as ohlcvVolumeBarsFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as l,j as i}from"./react-qoZPGuNy.js";import{f as u,cv as c,aJ as f,h as U}from"./index-CiYWppnQ.js";import{f as h}from"./format-DxkEZcwQ.js";import{T as x,a as I}from"./treemap-leaf-QG-L-SIG.js";import{F as d}from"./ui-Bq3RQsdJ.js";import"./utils-DxneYyA_.js";import"./d3-ibrLIlQc.js";c.schema;function j({width:t,height:o,data:s}){const r=h(s.oiUsd);return i.jsx(I,{width:t,height:o,label:s.id,secondary:r,title:`${s.id} · ${r} open interest`})}function T({config:t}){const{entries:o,isLoading:s}=f(),r=l.useMemo(()=>{const n=[...o].filter(e=>e.openInterestUsd>0).sort((e,m)=>m.openInterestUsd-e.openInterestUsd),p=n.slice(0,t.limit).map(e=>({id:U(e.symbol),value:e.openInterestUsd,oiUsd:e.openInterestUsd})),a=n.slice(t.limit).reduce((e,m)=>e+m.openInterestUsd,0);return a>0&&p.push({id:"Other",value:a,oiUsd:a}),p},[o,t.limit]);return s?i.jsx(d,{loading:!0,children:"loading open interest…"}):r.length===0?i.jsx(d,{children:"no open-interest data"}):i.jsx(x,{data:r,LeafComponent:j,getColorValue:n=>n.oiUsd})}const E=u({...c,component:T});export{E as oiTreemapFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as p,j as o}from"./react-qoZPGuNy.js";import{b as d}from"./format-DxkEZcwQ.js";import{w as h,a as u,n as f,t as O}from"./indicators-Cw7CVPn4.js";import{f as x,d7 as l,bl as y}from"./index-CiYWppnQ.js";import{F as n}from"./ui-Bq3RQsdJ.js";import{C as i,a as R}from"./chart-utils-DGogNvJT.js";import{M as v}from"./index-BpPIfN5S.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";l.schema;function w({config:s}){const{extras:r,isLoading:m}=y(),e=p.useMemo(()=>{if(!r)return[];const a=h(s.window),t=c=>u(f(O(c,a)));return[{id:"sopr",name:"SOPR",color:i[0],data:t(r.history.sopr)},{id:"puell",name:"Puell Multiple",color:i[1],data:t(r.history.puell)},{id:"reserve-risk",name:"Reserve Risk",color:i[2],data:t(r.history.reserveRisk)}]},[r,s.window]);return m&&e.length===0?o.jsx(n,{loading:!0,children:"loading on-chain oscillators…"}):e.every(a=>a.data.length===0)?o.jsx(n,{children:"no on-chain data yet"}):o.jsx(v,{series:e,timeframe:R.YTD,height:260,formatValue:a=>d(a*100,0)})}const T=x({...l,component:w});export{T as onchainOscillatorOverlayFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,j as e}from"./react-qoZPGuNy.js";import{f as p,
|
|
1
|
+
import{r as n,j as e}from"./react-qoZPGuNy.js";import{f as p,aI as l,aJ as f,A as u,h as x}from"./index-CiYWppnQ.js";import{f as r}from"./format-DxkEZcwQ.js";import{F as i,s as h}from"./ui-Bq3RQsdJ.js";l.schema;const b=25;function g({config:m}){const{entries:a,isLoading:c}=f(m.symbols),t=n.useMemo(()=>a.slice(0,b),[a]),o=n.useMemo(()=>t.reduce((s,d)=>Math.max(s,d.openInterestUsd),0),[t]);return c?e.jsx(i,{loading:!0,children:"loading open interest…"}):t.length===0?e.jsx(i,{children:"no open-interest data"}):e.jsx("div",{className:`flex flex-col gap-1.5 ${h}`,children:t.map(s=>e.jsxs("div",{className:"grid grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-2",title:`${s.symbol} · ${r(s.openInterestUsd)} open interest`,children:[e.jsx(u,{symbol:s.symbol,size:16}),e.jsxs("div",{className:"relative h-4 w-full overflow-hidden rounded-sm bg-white/[0.06]",children:[e.jsx("div",{className:"absolute inset-y-0 left-0 rounded-sm",style:{width:`${o>0?s.openInterestUsd/o*100:0}%`,background:"hsl(var(--zf-accent-hue, 242) 85% 72% / 0.5)"}}),e.jsx("span",{className:"absolute inset-y-0 left-1.5 flex items-center",children:e.jsx("span",{className:"body-sm truncate font-bold text-strong",children:x(s.symbol)})})]}),e.jsx("span",{className:"caption text-soft text-right tabular-nums",children:r(s.openInterestUsd)})]},s.symbol))})}const w=p({...l,component:g});export{w as openInterestFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as m,j as e}from"./react-qoZPGuNy.js";import{a as u,D as a,U as n}from"./format-DxkEZcwQ.js";import{f as p,d0 as c,bb as f}from"./index-CiYWppnQ.js";import{F as l}from"./ui-Bq3RQsdJ.js";import{B as d}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";c.schema;function i(o,t){const r=o+t;return r>0?(o-t)/r*100:0}function x({config:o}){const{summary:t,isLoading:r}=f(o.currency),s=m.useMemo(()=>t?[{label:"OI",value:i(t.callOi,t.putOi)},{label:"Volume",value:i(t.callVolume,t.putVolume)}]:[],[t]);return r?e.jsx(l,{loading:!0,children:"loading options…"}):t?e.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[e.jsx(d,{data:s,orientation:"horizontal",color:n,negativeColor:a,height:Math.max(s.length*28,84),formatValue:u}),e.jsxs("div",{className:"caption text-soft flex justify-between",children:[e.jsx("span",{style:{color:n},children:"call-skewed"}),e.jsxs("span",{children:[o.currency," positioning vs flow"]}),e.jsx("span",{style:{color:a},children:"put-skewed"})]})]}):e.jsx(l,{children:"no options data yet"})}const k=p({...c,component:x});export{k as optionsFlowSkewFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,j as e}from"./react-qoZPGuNy.js";import{c as x}from"./format-
|
|
1
|
+
import{r as l,j as e}from"./react-qoZPGuNy.js";import{c as x}from"./format-DxkEZcwQ.js";import{f as p,bc as m,bd as v}from"./index-CiYWppnQ.js";import{F as c}from"./ui-Bq3RQsdJ.js";import{M as f}from"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";m.schema;const j={"7D":{ms:7*864e5,res:3600},"1M":{ms:30*864e5,res:43200},"3M":{ms:90*864e5,res:86400}};function g({config:a}){const{ms:i,res:o}=j[a.lookback],d=l.useMemo(()=>{const t=o*1e3;return Math.floor((Date.now()-i)/t)*t},[i,o]),{points:s,isLoading:h}=v(a.currency,d,o),u=l.useMemo(()=>s.map(t=>({date:new Date(t.time).toISOString(),value:t.value})),[s]);if(h)return e.jsx(c,{loading:!0,children:"loading volatility…"});if(s.length===0)return e.jsx(c,{children:"no volatility data yet"});const n=s[s.length-1].value,r=n-s[0].value;return e.jsxs("div",{className:"flex h-full min-h-0 flex-col justify-center gap-3",children:[e.jsxs("div",{className:"flex items-end justify-between gap-3",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"caption text-soft uppercase",children:[a.currency," DVOL · implied vol"]}),e.jsx("div",{className:"metric-lg text-strong leading-none",children:n.toFixed(1)})]}),e.jsxs("div",{className:"text-right",children:[e.jsxs("div",{className:"body-md font-bold tabular-nums",style:{color:x(r)},children:[r>=0?"+":"",r.toFixed(1)]}),e.jsxs("div",{className:"caption text-soft",children:["past ",a.lookback]})]})]}),e.jsx(f,{data:u,width:320,height:54,color:"hsl(var(--zf-accent-hue, 242) 85% 72%)"})]})}const O=p({...m,component:g});export{O as optionsIvFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as d,j as t}from"./react-qoZPGuNy.js";import{d as h,e as m,f as j}from"./format-DxkEZcwQ.js";import{f as k,cZ as c,bb as y}from"./index-CiYWppnQ.js";import{F as p}from"./ui-Bq3RQsdJ.js";import{B as g}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";c.schema;function b({config:f}){const{summary:i,isLoading:x}=y(f.currency),a=d.useMemo(()=>{if(!i)return null;const n=i.nearestExpiry.strikes;if(n.length===0)return null;let o=n[0].strike,l=1/0;const u=n.map(r=>{let s=0;for(const e of n)r.strike>e.strike?s+=e.callOi*(r.strike-e.strike):r.strike<e.strike&&(s+=e.putOi*(e.strike-r.strike));return s<l&&(l=s,o=r.strike),s});return{bars:n.map((r,s)=>({label:h(r.strike),value:u[s],color:r.strike===o?"var(--color-highlight)":void 0})),maxPainStrike:o,spot:i.underlyingPrice,expiry:i.nearestExpiry.expiry}},[i]);return x?t.jsx(p,{loading:!0,children:"loading options…"}):a?t.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-1 text-normal",children:[t.jsxs("div",{className:"caption text-soft flex justify-between",children:[t.jsxs("span",{children:["max pain · ",a.expiry]}),t.jsxs("span",{children:[t.jsx("span",{className:"text-strong font-bold",children:m(a.maxPainStrike)})," ",t.jsxs("span",{className:"text-soft",children:["vs spot ",m(a.spot)]})]})]}),t.jsx(g,{data:a.bars,color:"var(--color-disabled)",height:200,formatValue:j})]}):t.jsx(p,{children:"no options data yet"})}const C=k({...c,component:b});export{C as optionsMaxPainFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as u,j as o}from"./react-qoZPGuNy.js";import{a as f,D as x,U as m}from"./format-DxkEZcwQ.js";import{f as d,d3 as c,bb as h}from"./index-CiYWppnQ.js";import{F as p}from"./ui-Bq3RQsdJ.js";import{B as k}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";c.schema;function M(e){if(e.length===0)return null;let t=e[0].strike,a=1/0;for(const r of e){let s=0;for(const i of e)r.strike>i.strike?s+=i.callOi*(r.strike-i.strike):r.strike<i.strike&&(s+=i.putOi*(i.strike-r.strike));s<a&&(a=s,t=r.strike)}return t}function O({config:e}){const{summary:t,isLoading:a}=h(e.currency),r=u.useMemo(()=>{const s=t==null?void 0:t.allExpiries,i=t==null?void 0:t.underlyingPrice;return!s||s.length===0||!i?[]:[...s].sort((n,l)=>n.expiryMs-l.expiryMs).slice(0,e.expiries).map(n=>{const l=M(n.strikes);return l===null?null:{label:n.expiry,value:(l/i-1)*100}}).filter(n=>n!==null)},[t,e.expiries]);return a?o.jsx(p,{loading:!0,children:"loading options…"}):r.length===0?o.jsx(p,{children:"no options data yet"}):o.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[o.jsx(k,{data:r,color:m,negativeColor:x,height:200,formatValue:f}),o.jsxs("div",{className:"caption text-soft text-center",children:["max pain vs spot, by expiry · ",e.currency]})]})}const F=d({...c,component:O});export{F as optionsMaxPainMultiFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as j,j as n}from"./react-qoZPGuNy.js";import{d as x}from"./format-DxkEZcwQ.js";import{f as y,d2 as h,bb as L}from"./index-CiYWppnQ.js";import{F as d}from"./ui-Bq3RQsdJ.js";import{H}from"./index-D051JGM1.js";import"./utils-DxneYyA_.js";h.schema;function w({data:r,width:a}){return a<44?null:n.jsx("div",{className:"flex h-full w-full items-center justify-center",children:n.jsx("span",{className:"caption text-normal tabular-nums",children:x(r.oi)})})}function C({config:r}){const{summary:a,isLoading:b}=L(r.currency),c=j.useMemo(()=>{const i=a==null?void 0:a.allExpiries;if(!i||i.length===0)return[];const p=[...i].sort((t,s)=>t.expiryMs-s.expiryMs).slice(0,r.expiries),l=p.flatMap(t=>t.strikes.map(s=>s.strike));if(l.length===0)return[];const m=Math.min(...l),M=Math.max(...l),u=Math.max(M-m,1e-6),o=r.buckets,k=t=>Math.min(o-1,Math.floor((t-m)/u*o)),O=t=>x(m+(t+.5)/o*u),f=[];for(const t of p){const s=new Array(o).fill(0);for(const e of t.strikes)s[k(e.strike)]+=e.callOi+e.putOi;for(let e=0;e<o;e++)f.push({id:`${t.expiry}-${e}`,row:t.expiry,column:O(e),value:s[e],oi:s[e]})}return f},[a,r.expiries,r.buckets]);return b?n.jsx(d,{loading:!0,children:"loading OI ladder…"}):c.length===0?n.jsx(d,{children:"no options data yet"}):n.jsx(H,{data:c,CellComponent:w,gap:3,showLabels:!0,rowLabelWidth:64,columnLabelHeight:20})}const $=y({...h,component:C});export{$ as optionsOiLadderHeatmapFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as d,j as t}from"./react-qoZPGuNy.js";import{d as l,D as p,U as c}from"./format-DxkEZcwQ.js";import{f,c_ as u,bb as h}from"./index-CiYWppnQ.js";import{F as m}from"./ui-Bq3RQsdJ.js";import{B as y}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";u.schema;function O({config:s}){const{summary:r,isLoading:x}=h(s.currency),a=d.useMemo(()=>{if(!r)return null;const o=r.underlyingPrice,n=r.nearestExpiry.strikes;return n.length===0?null:{data:[...n].sort((e,i)=>Math.abs(e.strike-o)-Math.abs(i.strike-o)).slice(0,s.strikes).sort((e,i)=>e.strike-i.strike).map(e=>({label:l(e.strike),value:e.callOi-e.putOi})),expiry:r.nearestExpiry.expiry}},[r,s.strikes]);return x?t.jsx(m,{loading:!0,children:"loading options…"}):a?t.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[t.jsx(y,{data:a.data,color:c,negativeColor:p,height:200,formatValue:l}),t.jsxs("div",{className:"caption text-soft flex justify-between",children:[t.jsx("span",{style:{color:c},children:"call-heavy"}),t.jsxs("span",{children:["net OI by strike · ",a.expiry]}),t.jsx("span",{style:{color:p},children:"put-heavy"})]})]}):t.jsx(m,{children:"no options data yet"})}const E=f({...u,component:O});export{E as optionsOiSkewFrame};
|