zframes 0.7.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 +1773 -214
- package/package.json +5 -5
- package/runtime/assets/bar-chart-DmyKFv_O.js +1 -0
- package/runtime/assets/{bitcoin-dominance-rskkp4h2.js → bitcoin-dominance-Y-pfXAWg.js} +1 -1
- package/runtime/assets/{breakeven-DyCA3ya5.js → breakeven-D5o1aZeG.js} +1 -1
- package/runtime/assets/{breathing-C8Y-Izs8.js → breathing-C3xWrMh-.js} +1 -1
- package/runtime/assets/btc-block-size-bars-Dm4d1uP6.js +1 -0
- package/runtime/assets/{btc-blocks-BxS4aEAB.js → btc-blocks-Dh75DtBl.js} +1 -1
- package/runtime/assets/{btc-difficulty-CNFxEiPh.js → btc-difficulty-DT6GcCi7.js} +1 -1
- package/runtime/assets/btc-difficulty-chart-D6G_nIaV.js +1 -0
- package/runtime/assets/{btc-fees-Db-5JKh9.js → btc-fees-CAwJQaIo.js} +1 -1
- package/runtime/assets/btc-hashrate-CWvKwoGY.js +1 -0
- package/runtime/assets/{btc-mempool-DFgUVk8y.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-v01_FkZv.js → calculator-DmCi3Diy.js} +1 -1
- package/runtime/assets/capital-structure-bars-CCL6FBZT.js +1 -0
- package/runtime/assets/{chain-activity-CuA1eiPY.js → chain-activity-DmVXPTCW.js} +1 -1
- 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-BWFux5om.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-BcXfoFc6.js → coin-movers-BcLGwl1y.js} +1 -1
- package/runtime/assets/{countdown-CXSOeUWD.js → countdown-DiZVeLK1.js} +1 -1
- package/runtime/assets/custom-data-BgQF-y2R.js +1 -0
- package/runtime/assets/{cycle-shared-pyXzkgt1.js → cycle-shared-XoGVsOjC.js} +1 -1
- package/runtime/assets/{cycle-signals-BrKJX2c6.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-CWluVygw.js → daily-analysis-w96yBGxi.js} +1 -1
- package/runtime/assets/{day-meter-Bi5OZCC4.js → day-meter-D7SyWAWO.js} +1 -1
- package/runtime/assets/{defi-revenue-CFNSNfG7.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-DqvlN1Jo.js → dex-pool-treemap-CuU6G6rY.js} +1 -1
- 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-qyEBx4ll.js → dex-volume-treemap-Kl3BycC8.js} +1 -1
- package/runtime/assets/{dice-CuzcQipj.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-Bxr7eJ-7.js → drawdy-C4Xes6ll.js} +1 -1
- package/runtime/assets/{dxy-CVbZmRsT.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-Cl1WliDl.js → etf-flows-B5HTl_O2.js} +1 -1
- package/runtime/assets/{etf-flows-chart-B4Im9TVy.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-_q2b8DEx.js → eth-staking-CS-soUKT.js} +1 -1
- package/runtime/assets/{eth-supply-55OpYYBL.js → eth-supply-5f4GEmei.js} +1 -1
- package/runtime/assets/{fear-greed-CywOCckQ.js → fear-greed-D20BQ0ai.js} +1 -1
- package/runtime/assets/fear-greed-chart-CzqxRAt0.js +1 -0
- package/runtime/assets/{filings-feed-CosEi4NL.js → filings-feed-C-uvwTLC.js} +1 -1
- package/runtime/assets/filings-mix-OIhf0PEq.js +1 -0
- package/runtime/assets/{financial-stress-DBCae4TA.js → financial-stress-B29D-qDA.js} +1 -1
- package/runtime/assets/{flappy-bird-CBVgwfgX.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-Da9WMKyJ.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-CxhwDBHO.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-C77t3m6c.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-DKixdHYB.js → index-BpPIfN5S.js} +1 -1
- 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-BDu39CBE.js → journal-log-BYS6KBP0.js} +1 -1
- package/runtime/assets/{journal-open-FejLOzlA.js → journal-open-Dd-2HpWe.js} +1 -1
- package/runtime/assets/{journal-results-CtKy6MZM.js → journal-results-Bo95cRBC.js} +1 -1
- package/runtime/assets/{journal-score-Bd7IDYl4.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-C_htu3aM.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-botYMCIX.js → lightning-stats-CBj576A7.js} +1 -1
- package/runtime/assets/{link-grid-DFuD6XVK.js → link-grid-MCfSDZZw.js} +1 -1
- package/runtime/assets/liquidity-basis-bars-CPGTcxkm.js +1 -0
- package/runtime/assets/{ma-multiplier-s6ix-kL8.js → ma-multiplier-g4p5Pi3k.js} +1 -1
- package/runtime/assets/{macro-calendar-Dhnx2n5Q.js → macro-calendar-d2JHausW.js} +1 -1
- package/runtime/assets/market-bubbles-CDCGDkEQ.js +1 -0
- package/runtime/assets/{market-cap-treemap-BWtivvac.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-NHBiLJUk.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-QWeuTPfP.js → mini-line-chart-DyG55cVW.js} +1 -1
- package/runtime/assets/{mining-pools-BxipfJmv.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-BIwCiyRN.js → mvrv-bAGE8y8s.js} +1 -1
- package/runtime/assets/mvrv-zscore-chart-BBQG73VU.js +1 -0
- package/runtime/assets/{national-debt-DwC5azy3.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-sD-yDfKU.js → nft-collections-BRT3lGEI.js} +1 -1
- package/runtime/assets/nft-scatter-v2AlapcL.js +1 -0
- package/runtime/assets/{nft-treemap-Bqhk41Of.js → nft-treemap-DOoBuiAe.js} +1 -1
- package/runtime/assets/note-Cge-Twe7.js +3 -0
- package/runtime/assets/{nupl-U-WHVDJ0.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-C0_M6MkH.js → open-interest-CQz_hue7.js} +1 -1
- package/runtime/assets/options-flow-skew-BnNt577O.js +1 -0
- package/runtime/assets/{options-iv-CIHzBULM.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-Db8lP27S.js → options-oi-strike-CRd6fuzZ.js} +1 -1
- package/runtime/assets/{options-put-call-5ex7Ablt.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-eACZGQhd.js → pi-cycle-Dnep9J9d.js} +1 -1
- package/runtime/assets/pie-chart-BIxKuHm-.js +1 -0
- package/runtime/assets/{pomodoro-CaS6y-eQ.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-D-SG9B5X.js → portfolio-holdings-pJ3PcDtA.js} +1 -1
- package/runtime/assets/portfolio-movers-88ySthIZ.js +1 -0
- package/runtime/assets/{portfolio-value-DPKyirHc.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-Cnf0KZba.js → prediction-markets-COBBk6vK.js} +1 -1
- package/runtime/assets/prediction-markets-bubble-OHW4Fyta.js +1 -0
- package/runtime/assets/{price-chart-BEnpZLyb.js → price-chart-CttRCaIA.js} +1 -1
- package/runtime/assets/{price-compare-8LvkF-xq.js → price-compare-DNhtDisn.js} +1 -1
- package/runtime/assets/{price-liveline-DkTeXuC2.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-fvVOfUFt.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-BfrszRqq.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-v5kaQdP4.js → protocol-tvl-treemap-DdIxlR7K.js} +1 -1
- package/runtime/assets/{puell-multiple-BdOLF9Wh.js → puell-multiple-C-5BP2qr.js} +1 -1
- package/runtime/assets/put-call-gauge-CIL56SWp.js +1 -0
- package/runtime/assets/{quote-slpulzHo.js → quote-BCahDrH2.js} +1 -1
- package/runtime/assets/radial-gauge-0BzRQ6fO.js +1 -0
- package/runtime/assets/{rates-board-B6hHyiDM.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-_07r_h5w.js → reserve-risk-CZ8W5vox.js} +1 -1
- package/runtime/assets/{returns-projector-NBs7iGAV.js → returns-projector-D8UX1710.js} +1 -1
- package/runtime/assets/{risk-reward-Baq_TRho.js → risk-reward-DgkqN_mw.js} +1 -1
- package/runtime/assets/{rsi-momentum-B6oTu5W6.js → rsi-momentum-DLc5Fw80.js} +1 -1
- package/runtime/assets/{rules-card-D98hKEwY.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-DlnYIM-L.js → sector-performance-BdYXFE7z.js} +1 -1
- package/runtime/assets/{sector-treemap-C3sX3Q9o.js → sector-treemap-DBA5ilb3.js} +1 -1
- package/runtime/assets/sentiment-gauge-BD6U6U9e.js +1 -0
- package/runtime/assets/{session-progress-BYwNuuP-.js → session-progress-1UWc9VqZ.js} +1 -1
- package/runtime/assets/{short-volume-CxBDSjP6.js → short-volume-BR5Bd4dE.js} +1 -1
- package/runtime/assets/short-volume-bars-qHwd3DwT.js +1 -0
- package/runtime/assets/{snake-CGV0Kg4z.js → snake-VPnsi0wu.js} +1 -1
- package/runtime/assets/{sopr-DAn99w9D.js → sopr-pPCw72oY.js} +1 -1
- package/runtime/assets/{spotify-embed-BBfim9vk.js → spotify-embed-BAYLjQ13.js} +1 -1
- package/runtime/assets/{stablecoin-chains-D4EKi_YR.js → stablecoin-chains-gXvliWf0.js} +1 -1
- package/runtime/assets/{stablecoin-supply-1m6FGR7-.js → stablecoin-supply-cKbLU-qq.js} +1 -1
- package/runtime/assets/stopwatch-USjNEK2T.js +1 -0
- package/runtime/assets/{top-movers-CAqBZOUL.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-Bl19yaM_.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-A45Ge4-e.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-Dm9R9zGQ.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/{video-CkvIGlHg.js → video-DcFqrZ43.js} +1 -1
- package/runtime/assets/volume-movers-scatter-C4nPVYp-.js +1 -0
- package/runtime/assets/{volume-profile-UJPTgNwV.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-DlXQg4sl.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-Dy2c30Gb.js +0 -1
- package/runtime/assets/chart-utils-Ct7WziT9.js +0 -1
- package/runtime/assets/checklist-Be_y1aTE.js +0 -1
- package/runtime/assets/d3-Dr3MHXm3.js +0 -1
- package/runtime/assets/dex-hot-pools-C4TrRB17.js +0 -1
- package/runtime/assets/dex-volume-chart-BLR-L_B0.js +0 -1
- package/runtime/assets/dino-game-CiGWzsag.js +0 -1
- package/runtime/assets/divider-DvK5oM9v.js +0 -1
- package/runtime/assets/editor-CQM8mtD8.css +0 -1
- package/runtime/assets/editor-EOEtB4_n.js +0 -68
- package/runtime/assets/format-CfAcS4D8.js +0 -1
- package/runtime/assets/fundamentals-zRwGUcmb.js +0 -1
- package/runtime/assets/funding-comparison-wCNoCb1H.js +0 -1
- package/runtime/assets/funding-heatmap-a4zdnKi9.js +0 -1
- package/runtime/assets/heading-b5H33lig.js +0 -1
- package/runtime/assets/image-C8ZSUHEx.js +0 -1
- package/runtime/assets/index-C-VdMqKb.css +0 -1
- package/runtime/assets/index-kB-TyxKi.js +0 -1073
- package/runtime/assets/indicators-CogwjDn9.js +0 -1
- package/runtime/assets/inflation-pulse-CoXcuabd.js +0 -1
- package/runtime/assets/labor-market-DR0j05Gy.js +0 -1
- package/runtime/assets/market-hours-wSrW5Elv.js +0 -1
- package/runtime/assets/mayer-multiple-CZC5q6ra.js +0 -1
- package/runtime/assets/mover-row-CUd1i2yt.js +0 -1
- package/runtime/assets/news-feed-BhAsJ6gt.js +0 -1
- package/runtime/assets/note-C1-RPOvR.js +0 -1
- package/runtime/assets/portfolio-allocation-NR-4wbGL.js +0 -1
- package/runtime/assets/portfolio-common-Cfpnudvk.js +0 -1
- package/runtime/assets/price-ticker-DgDJ3k4b.js +0 -1
- package/runtime/assets/realized-price-dn6bApj-.js +0 -1
- package/runtime/assets/stopwatch-CCqsSaII.js +0 -1
- package/runtime/assets/tvl-treemap-CSM9ioUr.js +0 -1
- package/runtime/assets/yield-scanner-Qm88hZuv.js +0 -1
|
@@ -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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as L,j as t}from"./react-qoZPGuNy.js";import{U as S,D as E,
|
|
1
|
+
import{r as L,j as t}from"./react-qoZPGuNy.js";import{U as S,D as E,d as v,e as F}from"./format-DxkEZcwQ.js";import{f as P,be as N,bb as R}from"./index-CiYWppnQ.js";import{F as g}from"./ui-Bq3RQsdJ.js";N.schema;const w=S,M=E;function B({config:h}){const{summary:p,isLoading:W}=R(h.currency),j=L.useMemo(()=>{if(!p)return null;const s=p.underlyingPrice,x=p.nearestExpiry.strikes;if(x.length===0)return null;const n=[...x].sort((r,y)=>Math.abs(r.strike-s)-Math.abs(y.strike-s)).slice(0,h.strikes).sort((r,y)=>r.strike-y.strike),d=Math.max(1,...n.map(r=>Math.max(r.callOi,r.putOi)));return{near:n,maxOi:d,spot:s,expiry:p.nearestExpiry.expiry}},[p,h.strikes]);if(W)return t.jsx(g,{loading:!0,children:"loading strikes…"});if(!j)return t.jsx(g,{children:"no options data yet"});const{near:e,maxOi:C,spot:a,expiry:H}=j,f=600,O=200,i=6,o=O-i-4,m=e.length,u=f/m,k=Math.max(2,u*.34),l=s=>s*u+u/2,b=s=>s/C*o;let c=null;if(a<=e[0].strike)c=l(0);else if(a>=e[m-1].strike)c=l(m-1);else for(let s=0;s<m-1;s++)if(a>=e[s].strike&&a<=e[s+1].strike){const x=e[s+1].strike-e[s].strike||1,n=(a-e[s].strike)/x;c=l(s)+n*(l(s+1)-l(s));break}return t.jsxs("div",{className:"flex h-full min-h-0 flex-col",children:[t.jsxs("div",{className:"caption text-soft mb-1 flex justify-between",children:[t.jsxs("span",{children:["OI by strike · ",H]}),t.jsxs("span",{children:[t.jsx("span",{style:{color:w},children:"calls"})," ·"," ",t.jsx("span",{style:{color:M},children:"puts"})]})]}),t.jsxs("svg",{viewBox:`0 0 ${f} ${O}`,preserveAspectRatio:"none",className:"min-h-0 w-full flex-1",children:[t.jsx("line",{x1:0,y1:i+o,x2:f,y2:i+o,style:{stroke:"var(--color-disabled)"},strokeWidth:1}),e.map((s,x)=>{const n=l(x),d=b(s.callOi),r=b(s.putOi);return t.jsxs("g",{children:[t.jsx("rect",{x:n-k-1,y:i+o-d,width:k,height:d,fill:w}),t.jsx("rect",{x:n+1,y:i+o-r,width:k,height:r,fill:M})]},s.strike)}),c!==null&&t.jsx("line",{x1:c,y1:i,x2:c,y2:i+o,style:{stroke:"var(--color-soft)"},strokeWidth:1,strokeDasharray:"4 3"})]}),t.jsxs("div",{className:"caption text-soft mt-1 flex justify-between tabular-nums",children:[t.jsx("span",{children:v(e[0].strike)}),t.jsxs("span",{className:"text-normal",children:["spot ",F(a)]}),t.jsx("span",{children:v(e[m-1].strike)})]})]})}const $=P({...N,component:B});export{$ as optionsOiStrikeFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s}from"./react-qoZPGuNy.js";import{U as h,D as f,b as e}from"./format-
|
|
1
|
+
import{j as s}from"./react-qoZPGuNy.js";import{U as h,D as f,b as e}from"./format-DxkEZcwQ.js";import{f as j,ba as u,bb as v}from"./index-CiYWppnQ.js";import{F as d}from"./ui-Bq3RQsdJ.js";u.schema;const i=h,o=f;function b(t){return t>1?o:i}function y({config:t}){const{summary:l,isLoading:m}=v(t.currency);if(m)return s.jsx(d,{loading:!0,children:"loading options…"});if(!l)return s.jsx(d,{children:"no options data yet"});const n=t.basis==="oi"?l.putCallRatioOi:l.putCallRatioVolume,x=t.basis==="oi"?l.putCallRatioVolume:l.putCallRatioOi,r=l.callOi+l.putOi,a=r>0?l.callOi/r*100:50,c=100-a,p=b(n);return s.jsxs("div",{className:"flex h-full min-h-0 flex-col justify-center gap-3",children:[s.jsxs("div",{className:"flex items-end justify-between gap-3",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"caption text-soft uppercase",children:[t.currency," put/call · ",t.basis==="oi"?"OI":"vol"]}),s.jsx("div",{className:"metric-xl leading-none",style:{color:p},children:n.toFixed(2)})]}),s.jsxs("div",{className:"text-right",children:[s.jsx("div",{className:"body-md text-normal font-bold tabular-nums",children:x.toFixed(2)}),s.jsxs("div",{className:"caption text-soft",children:["by ",t.basis==="oi"?"volume":"OI"]})]})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex h-3 w-full gap-1 overflow-hidden rounded-full",children:[s.jsx("div",{className:"h-full rounded-l-full",style:{width:`${a}%`,background:i}}),s.jsx("div",{className:"h-full rounded-r-full",style:{width:`${c}%`,background:o}})]}),s.jsxs("div",{className:"caption text-soft mt-1 flex justify-between tabular-nums",children:[s.jsxs("span",{children:[s.jsx("span",{style:{color:i},children:"calls"})," ",e(a,0)]}),s.jsxs("span",{children:[e(c,0)," ",s.jsx("span",{style:{color:o},children:"puts"})]})]})]}),s.jsxs("div",{className:"caption text-soft",children:["avg implied vol ",e(l.avgIv,1)]})]})}const g=j({...u,component:y});export{g as optionsPutCallFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as L,j as s}from"./react-qoZPGuNy.js";import{b as v,U as R,D as W,d as h,e as A}from"./format-DxkEZcwQ.js";import{f as C,d1 as I,bb as E}from"./index-CiYWppnQ.js";import{F as j}from"./ui-Bq3RQsdJ.js";I.schema;const y=R,k=W;function F({config:g}){const{summary:i,isLoading:b}=E(g.currency),m=L.useMemo(()=>{if(!i)return null;const t=[...i.nearestExpiry.strikes].filter(e=>e.callIv!==void 0||e.putIv!==void 0).sort((e,w)=>e.strike-w.strike);if(t.length<2)return null;const n=t.flatMap(e=>[e.callIv,e.putIv]).filter(e=>e!==void 0);return n.length===0?null:{strikes:t,minIv:Math.min(...n),maxIv:Math.max(...n),spot:i.underlyingPrice,expiry:i.nearestExpiry.expiry}},[i]);if(b)return s.jsx(j,{loading:!0,children:"loading vol smile…"});if(!m)return s.jsx(j,{children:"no options data yet"});const{strikes:o,minIv:a,maxIv:x,spot:O,expiry:M}=m,c=600,d=200,r=6,l=d-r-4,p=o[0].strike,f=o[o.length-1].strike,N=f-p||1,P=t=>(t-p)/N*c,S=Math.max(x-a,1e-6),V=t=>r+l-(t-a)/S*l,u=t=>o.filter(n=>n[t]!==void 0).map(n=>`${P(n.strike)},${V(n[t])}`).join(" "),$=`${v(a,0)}–${v(x,0)}`;return s.jsxs("div",{className:"flex h-full min-h-0 flex-col",children:[s.jsxs("div",{className:"caption text-soft mb-1 flex justify-between",children:[s.jsxs("span",{children:["vol smile · ",M]}),s.jsxs("span",{children:[s.jsx("span",{style:{color:y},children:"call IV"})," ·"," ",s.jsx("span",{style:{color:k},children:"put IV"})]})]}),s.jsxs("svg",{viewBox:`0 0 ${c} ${d}`,preserveAspectRatio:"none",className:"min-h-0 w-full flex-1",children:[s.jsx("line",{x1:0,y1:r+l,x2:c,y2:r+l,style:{stroke:"var(--color-disabled)"},strokeWidth:1}),s.jsx("polyline",{points:u("callIv"),fill:"none",stroke:y,strokeWidth:1.5}),s.jsx("polyline",{points:u("putIv"),fill:"none",stroke:k,strokeWidth:1.5})]}),s.jsxs("div",{className:"caption text-soft mt-1 flex justify-between tabular-nums",children:[s.jsx("span",{children:h(p)}),s.jsxs("span",{className:"text-normal",children:["spot ",A(O)," · ",$," IV"]}),s.jsx("span",{children:h(f)})]})]})}const _=C({...I,component:F});export{_ as optionsVolSmileFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as d,j as i}from"./react-qoZPGuNy.js";import{f as g,c$ as u,bd as l}from"./index-CiYWppnQ.js";import{F as c}from"./ui-Bq3RQsdJ.js";import{a as s,C as f}from"./chart-utils-DGogNvJT.js";import{M as L}from"./index-BpPIfN5S.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";u.schema;const x={"7D":{ms:7*864e5,res:3600,timeframe:s["7D"]},"1M":{ms:30*864e5,res:43200,timeframe:s["1M"]},"3M":{ms:90*864e5,res:86400,timeframe:s["3M"]}};function C({config:M}){const{ms:r,res:e,timeframe:h}=x[M.lookback],n=d.useMemo(()=>{const t=e*1e3;return Math.floor((Date.now()-r)/t)*t},[r,e]),o=l("BTC",n,e),a=l("ETH",n,e),m=d.useMemo(()=>[{id:"BTC",name:"BTC DVOL",points:o.points},{id:"ETH",name:"ETH DVOL",points:a.points}].map((t,S)=>({id:t.id,name:t.name,color:f[S%f.length],data:t.points.map(p=>({date:new Date(p.time).toISOString(),value:p.value}))})),[o.points,a.points]);return o.isLoading||a.isLoading?i.jsx(c,{loading:!0,children:"loading volatility…"}):m.every(t=>t.data.length===0)?i.jsx(c,{children:"no volatility data yet"}):i.jsx(L,{series:m,timeframe:h,height:250,formatValue:t=>t.toFixed(1)})}const F=g({...u,component:C});export{F as optionsVolSpreadFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as d,j as a}from"./react-qoZPGuNy.js";import{D as h,U as x,d as m}from"./format-DxkEZcwQ.js";import{f as y,dk as i,S as g}from"./index-CiYWppnQ.js";import{F as c}from"./ui-Bq3RQsdJ.js";import{B as j}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";i.schema;const v="CES0000000001";function C({config:o}){const r=new Date().getUTCFullYear(),p=r-3,{series:t,isLoading:u}=g(v,p,r),s=d.useMemo(()=>{const e=(t==null?void 0:t.points)??[];return e.slice(1).map((n,f)=>({label:n.date,value:n.value-e[f].value})).slice(-o.months)},[t,o.months]);if(u)return a.jsx(c,{loading:!0,children:"loading payrolls…"});if(s.length===0)return a.jsx(c,{children:"no payrolls data yet"});const l=s.at(-1);return a.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[a.jsx(j,{data:s,color:x,negativeColor:h,height:200,formatValue:e=>m(e*1e3),showValues:!1,maxTickLabels:6}),a.jsxs("div",{className:"caption text-soft text-center",children:["nonfarm payrolls · monthly net change · latest"," ",l.value>=0?"+":"",m(l.value*1e3)]})]})}const D=y({...i,component:C});export{D as payrollsBarsFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as g,j as a}from"./react-qoZPGuNy.js";import{z as C,Z as b,a as x,M as N}from"./cycle-shared-
|
|
1
|
+
import{r as g,j as a}from"./react-qoZPGuNy.js";import{z as C,Z as b,a as x,M as N}from"./cycle-shared-XoGVsOjC.js";import{D as O}from"./format-DxkEZcwQ.js";import{s as m,t as A,w as D}from"./indicators-Cw7CVPn4.js";import{f as M,bp as u,bo as j}from"./index-CiYWppnQ.js";import{F as p}from"./ui-Bq3RQsdJ.js";import"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";u.schema;function w({config:f}){const{history:e,isLoading:h}=j("btc"),t=g.useMemo(()=>{const n=e.map(o=>o.value),y=m(n,111),d=m(n,350),l=[];for(let o=0;o<e.length;o++){const c=y[o],r=d[o];c!==null&&r!==null&&r>0&&l.push({time:e[o].time,value:c/(2*r)})}return l},[e]);if(h)return a.jsx(p,{loading:!0,children:"loading Pi Cycle…"});if(t.length===0)return a.jsx(p,{children:"not enough price history yet"});const i=t[t.length-1].value,s=C(i,[{upTo:.85,zone:{label:"Normal",color:b}},{upTo:1,zone:{label:"Approaching top",color:x}}],{label:"TOP SIGNAL",color:O});return a.jsx(N,{caption:"Pi Cycle · 111DMA ÷ 2×350DMA",headline:i.toFixed(2),headlineColor:s.color,zone:s,sub:"crosses 1 at cycle tops",sparkline:A(t,D(f.window)),sparkColor:s.color})}const _=M({...u,component:w});export{_ as piCycleFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as u,j as r}from"./react-qoZPGuNy.js";import{s as o,p as M,b as v,o as N}from"./d3-ibrLIlQc.js";import{p as y}from"./utils-DxneYyA_.js";const R=["#FF1F5F","#81FE90"],G=({data:a,width:l=270,height:i=270,innerRadius:c=90,outerRadius:d=100,colors:g=R,children:x})=>{const s=u.useRef(null);return u.useEffect(()=>{if(!s.current||!a.length)return;o(s.current).selectAll("*").remove();const f=o(s.current),b=l/2,k=i/2,n=f.append("defs");n.append("filter").attr("id","glow").append("feGaussianBlur").attr("stdDeviation","3").attr("result","coloredBlur"),n.select("#glow").append("feMerge").selectAll("feMergeNode").data(["coloredBlur","SourceGraphic"]).enter().append("feMergeNode").attr("in",e=>e),n.append("filter").attr("id","glow-layer").append("feGaussianBlur").attr("stdDeviation","6").attr("result","glowBlur"),n.select("#glow-layer").append("feColorMatrix").attr("type","matrix").attr("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.5 0").attr("result","glowColor");const j=M().value(e=>e.value).padAngle(.02),w=v().innerRadius(c).outerRadius(d).cornerRadius(100),C=v().innerRadius(c).outerRadius(d).cornerRadius(100),m=N().domain(a.map((e,t)=>t.toString())).range(g),p=f.append("g").attr("transform",`translate(${b}, ${k})`).selectAll("g").data(j(a)).enter().append("g");p.append("path").attr("class","glow-layer").attr("d",C).attr("fill",(e,t)=>m(t.toString())).attr("filter","url(#glow-layer)").style("opacity",0).style("pointer-events","none"),p.append("path").attr("class","main-slice").attr("d",w).attr("fill",(e,t)=>m(t.toString())).attr("stroke","none"),p.on("mouseenter",function(){o(this).select(".glow-layer").transition().duration(y()?0:300).style("opacity",1)}).on("mouseleave",function(){o(this).select(".glow-layer").transition().duration(y()?0:300).style("opacity",0)})},[a,l,i,c,d,g]),r.jsxs("div",{className:"relative flex flex-col items-center justify-center rounded-full",style:{background:"linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%)"},children:[r.jsx("svg",{ref:s,width:l,height:i,className:"relative z-10"}),r.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:x}),r.jsx("div",{className:"pointer-events-none absolute inset-0 rounded-full",style:{background:"linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%)",maskImage:"radial-gradient(farthest-side, transparent calc(100% - 1px),#fff 0)",WebkitMaskComposite:"destination-out",maskComposite:"exclude"}}),r.jsx("div",{className:"pointer-events-none absolute inset-[10%] rounded-full",style:{background:"linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%)",maskImage:"radial-gradient(farthest-side, transparent calc(100% - 1px),#fff 0)",WebkitMaskComposite:"destination-out",maskComposite:"exclude"}})]})},F=u.memo(G);export{F as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,j as s}from"./react-qoZPGuNy.js";import{i as k}from"./content-shared-BZ1XzrJx.js";import{f as w,
|
|
1
|
+
import{r,j as s}from"./react-qoZPGuNy.js";import{i as k}from"./content-shared-BZ1XzrJx.js";import{f as w,b_ as y}from"./index-CiYWppnQ.js";y.schema;function M(e){const t=Math.floor(e/60),n=e%60;return`${t}:${String(n).padStart(2,"0")}`}function R({config:e}){const t=Math.max(1,Math.round(e.workMin*60)),n=Math.max(1,Math.round(e.breakMin*60)),[a,c]=r.useState("work"),[b,o]=r.useState(t),[l,i]=r.useState(!1),[u,m]=r.useState(1);r.useEffect(()=>{c("work"),o(t),i(!1),m(1)},[t,n]);const p=r.useRef(a);p.current=a;const x=r.useRef(u);x.current=u,r.useEffect(()=>{if(!l)return;const f=setInterval(()=>{o(h=>h>1?h-1:p.current==="work"?(c("break"),n):(c("work"),m(S=>x.current>=e.cycles?1:S+1),t))},1e3);return()=>clearInterval(f)},[l,t,n,e.cycles]);const j=()=>{i(!1),c("work"),o(t),m(1)},d=e.label.trim(),v=a==="work"?"var(--color-highlight)":void 0;return s.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1",children:[d&&s.jsx("div",{className:"caption text-soft uppercase tracking-[0.12em]",children:d}),s.jsxs("div",{className:"caption text-soft uppercase tracking-[0.18em]",children:[a," · ",u,"/",e.cycles]}),s.jsx("div",{className:"metric-xl text-strong",style:{color:v},children:M(b)}),s.jsxs("div",{className:"mt-1 flex gap-1",children:[s.jsx("button",{type:"button",onClick:()=>i(f=>!f),className:`caption text-normal px-3 py-1 ${k}`,children:l?"Pause":"Start"}),s.jsx("button",{type:"button",onClick:j,className:`caption text-soft px-3 py-1 ${k}`,children:"Reset"})]})]})}const $=w({...y,component:R});export{$ as pomodoroFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e,r as f}from"./react-qoZPGuNy.js";import{f as u,g as m,h as x}from"./index-CiYWppnQ.js";import{f as i,b as d}from"./format-DxkEZcwQ.js";import{P as p,u as h,a as j}from"./portfolio-common-DPg-LM-S.js";import{F as g}from"./ui-Bq3RQsdJ.js";import{C as c}from"./chart-utils-DGogNvJT.js";import{P as v}from"./pie-chart-BIxKuHm-.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";m.schema;function b({portfolio:s,config:l}){const{priced:r}=h(s.holdings),t=f.useMemo(()=>r.map((a,o)=>({name:x(a.symbol),value:a.value??0,color:c[o%c.length]})).filter(a=>a.value>0).sort((a,o)=>o.value-a.value),[r]),n=t.reduce((a,o)=>a+o.value,0);return t.length===0?e.jsx(g,{children:"no live prices yet"}):e.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-4",children:[e.jsx(v,{data:t,width:200,height:200,innerRadius:58,outerRadius:92,colors:t.map(a=>a.color),children:e.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[e.jsx(j,{portfolio:s,config:l,className:"caption text-soft"}),e.jsx("span",{className:"metric-lg text-strong",children:i(n)})]})}),e.jsx("div",{className:"flex w-full max-w-xs flex-wrap justify-center gap-x-5 gap-y-1.5",children:t.map(a=>e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"h-2 w-2 flex-shrink-0 rounded-full",style:{background:a.color}}),e.jsx("span",{className:"body-sm text-soft",children:a.name}),e.jsx("span",{className:"body-sm text-normal font-bold tabular-nums",children:d(a.value/n*100,1)}),e.jsx("span",{className:"caption text-soft tabular-nums",children:i(a.value)})]},a.name))})]})}function N({config:s}){return e.jsx(p,{config:s,loadingLabel:"loading allocation…",children:l=>e.jsx(b,{portfolio:l,config:s})})}const S=u({...m,component:N});export{S as portfolioAllocationFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as s,r as d}from"./react-qoZPGuNy.js";import{a9 as k,z as w,aa as g,A as y,a8 as j}from"./index-CiYWppnQ.js";import{F as h}from"./ui-Bq3RQsdJ.js";function P(n){if(n.source==="wallet"){const o=(n.address??"").trim();return o?{kind:"wallet",address:o}:null}return{kind:"binance"}}const C={WETH:"ETH",WBTC:"BTC"};function x(n){return C[n.toUpperCase()]??n}function D(n){const o=n??[],r=o.map(e=>x(e.symbol)),l=w(r);return d.useMemo(()=>{const e=o.map(a=>{const u=l[x(a.symbol)],c=u!==void 0?a.amount*u:a.valueUsd;return{...a,value:c}}),i=e.reduce((a,u)=>a+(u.value??0),0);return{priced:e,total:i}},[n,l])}function _({portfolio:n,config:o,className:r=""}){var i;const l=n.label??(o.source==="wallet"?"wallet":"portfolio"),e=(i=o.address)==null?void 0:i.trim();return o.source==="wallet"&&e?s.jsx("a",{href:`https://etherscan.io/address/${encodeURIComponent(e)}`,target:"_blank",rel:"noopener noreferrer",title:"View on Etherscan",className:`hover:text-white hover:underline ${r}`,onClick:a=>a.stopPropagation(),onPointerDown:a=>a.stopPropagation(),children:l}):s.jsx("span",{className:r,children:l})}function v(n,o){const r=(n==null?void 0:n.kind)==="binance",[l,e]=d.useState({loading:r,connected:!1,keyMasked:null});return d.useEffect(()=>{if(!r||!n){e({loading:!1,connected:!1,keyMasked:null});return}let i=!1;return e(a=>({...a,loading:!0})),fetch(`${g}?source=${n.kind}`,{headers:{accept:"application/json"}}).then(a=>a.ok?a.json():{connected:!1,keyMasked:null}).then(a=>{i||e({loading:!1,connected:!!a.connected,keyMasked:a.keyMasked??null})}).catch(()=>{i||e({loading:!1,connected:!1,keyMasked:null})}),()=>{i=!0}},[r,n==null?void 0:n.kind,o]),l}function N(n){const[o,r]=d.useState(0),l=d.useCallback(()=>r(p=>p+1),[]),e=P(n),i=v(e,o),a=(e==null?void 0:e.kind)==="binance",u=!!e&&(!a||i.connected),{portfolio:c,isLoading:f}=k(u?e:null);let t;return e?a&&i.loading?t={state:"checking"}:a&&!i.connected?t={state:"needs-connect",source:e}:f&&!c?t={state:"loading"}:c?c.holdings.length===0?t={state:"empty",portfolio:c}:t={state:"live",portfolio:c}:t={state:"error"}:t={state:"needs-address"},{view:t,refresh:l}}const m="w-full rounded-md border border-white/10 bg-white/[0.04] px-2 py-1.5 text-xs text-white/90 outline-none focus:border-white/25 placeholder:text-white/30",b="rounded-md bg-[hsl(var(--zf-accent-hue,242)_90%_60%)] px-3 py-1.5 text-xs font-semibold text-white disabled:opacity-50";function S({onConnected:n}){const[o,r]=d.useState(""),[l,e]=d.useState(""),[i,a]=d.useState(!1),[u,c]=d.useState(null),f=async()=>{a(!0),c(null);try{const t=await fetch(g,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({source:"binance",key:o.trim(),secret:l.trim()})}),p=await t.json().catch(()=>({}));if(!t.ok||!p.ok)throw new Error(p.error??`HTTP ${t.status}`);r(""),e(""),n()}catch(t){c(t instanceof Error?t.message:String(t))}finally{a(!1)}};return s.jsxs("div",{className:"flex h-full w-full flex-col justify-center gap-2 px-1",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(y,{symbol:"BNB",size:18}),s.jsx("span",{className:"text-strong text-sm font-bold",children:"Connect Binance"})]}),s.jsxs("p",{className:"caption text-soft",children:["Use a ",s.jsx("strong",{children:"read-only"})," key + secret — create them in Binance"," ",s.jsx("a",{href:"https://www.binance.com/en/my/settings/api-management",target:"_blank",rel:"noopener noreferrer",className:"text-[hsl(var(--zf-accent-hue,242)_90%_72%)] underline underline-offset-2 hover:text-white",onClick:t=>t.stopPropagation(),onPointerDown:t=>t.stopPropagation(),children:"API Management"})," ","(enable Reading only). Both stay on your machine, never shared."]}),s.jsx("input",{className:m,placeholder:"API key",value:o,autoComplete:"off",onChange:t=>r(t.target.value),onPointerDown:t=>t.stopPropagation()}),s.jsx("input",{className:m,placeholder:"API secret",type:"password",value:l,autoComplete:"off",onChange:t=>e(t.target.value),onPointerDown:t=>t.stopPropagation()}),u?s.jsx("p",{className:"caption text-[#ff6b81]",children:u}):null,s.jsx("button",{type:"button",className:b,disabled:i||!o.trim()||!l.trim(),onClick:t=>{t.stopPropagation(),f()},onPointerDown:t=>t.stopPropagation(),children:i?"Verifying…":"Connect"})]})}function E({current:n}){const o=j(),[r,l]=d.useState(n??"");return s.jsxs("div",{className:"flex h-full w-full flex-col justify-center gap-2 px-1",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(y,{symbol:"ETH",size:18}),s.jsx("span",{className:"text-strong text-sm font-bold",children:"Track a wallet"})]}),s.jsx("p",{className:"caption text-soft",children:"Enter a public Ethereum address or ENS name. No keys — it’s public on-chain data. Sharing this dashboard reveals the holdings."}),s.jsx("input",{className:m,placeholder:"0x… or name.eth",value:r,autoComplete:"off",onChange:e=>l(e.target.value),onPointerDown:e=>e.stopPropagation()}),o?s.jsx("button",{type:"button",className:b,disabled:!r.trim(),onClick:e=>{e.stopPropagation(),o({address:r.trim()})},onPointerDown:e=>e.stopPropagation(),children:"Track"}):s.jsx("p",{className:"caption text-soft",children:"Set the address in the frame’s config to start tracking."})]})}function I({config:n,loadingLabel:o="loading portfolio…",children:r}){const{view:l,refresh:e}=N(n);switch(l.state){case"needs-address":case"needs-connect":return s.jsx(T,{view:l,config:n,onConnected:e});case"checking":case"loading":return s.jsx(h,{loading:!0,children:o});case"error":return s.jsx(h,{children:"couldn’t load — check the address or try again"});case"empty":return s.jsx(h,{children:"no holdings to show"});case"live":return s.jsx(s.Fragment,{children:r(l.portfolio)})}}function T({view:n,config:o,onConnected:r}){return n.state==="needs-connect"&&n.source.kind==="binance"?s.jsx(S,{onConnected:r}):s.jsx(E,{current:o.address})}export{I as P,_ as a,D as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s,r as m}from"./react-qoZPGuNy.js";import{f as d,i as n,A as x,h as f}from"./index-
|
|
1
|
+
import{j as s,r as m}from"./react-qoZPGuNy.js";import{f as d,i as n,A as x,h as f}from"./index-CiYWppnQ.js";import{f as i,b as h,a as p,c as u}from"./format-DxkEZcwQ.js";import{P as b,u as g,a as j}from"./portfolio-common-DPg-LM-S.js";import{s as N}from"./ui-Bq3RQsdJ.js";n.schema;function y(t){return t>=1e3?t.toLocaleString("en-US",{maximumFractionDigits:2}):t>=1?t.toFixed(4).replace(/\.?0+$/,""):t.toPrecision(4)}function v({portfolio:t,config:a}){const{priced:l,total:r}=g(t.holdings),c=m.useMemo(()=>[...l].sort((e,o)=>(o.value??0)-(e.value??0)),[l]);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 border-b border-white/[0.06] pb-1.5",children:[s.jsx(j,{portfolio:t,config:a,className:"caption text-soft"}),s.jsx("span",{className:"metric-sm text-strong",children:i(r)})]}),s.jsx("div",{className:N,children:s.jsx("table",{className:"w-full text-xs",children:s.jsx("tbody",{children:c.map(e=>{const o=r>0?(e.value??0)/r*100:0;return s.jsxs("tr",{className:"border-b border-white/[0.04]",children:[s.jsx("td",{className:"py-1.5",children:s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(x,{symbol:e.symbol,size:16}),s.jsx("span",{className:"text-normal font-semibold",children:f(e.symbol)})]})}),s.jsx("td",{className:"text-soft py-1.5 text-right tabular-nums",children:y(e.amount)}),s.jsx("td",{className:"text-normal py-1.5 text-right font-semibold tabular-nums",children:e.value!==void 0?i(e.value):"—"}),s.jsx("td",{className:"text-soft py-1.5 text-right tabular-nums",children:h(o,1)}),s.jsx("td",{className:"py-1.5 text-right tabular-nums",children:e.changePct24h!==void 0?s.jsx("span",{style:{color:u(e.changePct24h)},children:p(e.changePct24h)}):s.jsx("span",{className:"text-soft",children:"·"})})]},e.symbol)})})})})]})}function P({config:t}){return s.jsx(b,{config:t,loadingLabel:"loading holdings…",children:a=>s.jsx(v,{portfolio:a,config:t})})}const L=d({...n,component:P});export{L as portfolioHoldingsFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e,r as n}from"./react-qoZPGuNy.js";import{f as l,dy as i,h}from"./index-CiYWppnQ.js";import{a as m,D as c,U as f}from"./format-DxkEZcwQ.js";import{P as g,a as p}from"./portfolio-common-DPg-LM-S.js";import{F as x}from"./ui-Bq3RQsdJ.js";import{B as d}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";i.schema;function u({portfolio:a,config:o}){const r=n.useMemo(()=>[...a.holdings].filter(t=>Number.isFinite(t.changePct24h)).sort((t,s)=>Math.abs(s.changePct24h)-Math.abs(t.changePct24h)).slice(0,o.limit).sort((t,s)=>s.changePct24h-t.changePct24h).map(t=>({label:h(t.symbol),value:t.changePct24h})),[a.holdings,o.limit]);return r.length===0?e.jsx(x,{children:"no 24h change reported for these holdings"}):e.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[e.jsx(p,{portfolio:a,config:o,className:"caption text-soft"}),e.jsx(d,{data:r,orientation:"horizontal",color:f,negativeColor:c,height:Math.max(r.length*22,96),formatValue:m})]})}function P({config:a}){return e.jsx(g,{config:a,loadingLabel:"loading holdings…",children:o=>e.jsx(u,{portfolio:o,config:a})})}const N=l({...i,component:P});export{N as portfolioMoversFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,r as o}from"./react-qoZPGuNy.js";import{L as V}from"./liveline-bcaEuskN.js";import{f as N,a as L,c as D}from"./format-
|
|
1
|
+
import{j as e,r as o}from"./react-qoZPGuNy.js";import{L as V}from"./liveline-bcaEuskN.js";import{f as N,a as L,c as D}from"./format-DxkEZcwQ.js";import{u as I,o as F}from"./live-tick-9Q3ubPF9.js";import{P as H,u as W,a as _}from"./portfolio-common-DPg-LM-S.js";import{f as k,p as y}from"./index-CiYWppnQ.js";import"./ui-Bq3RQsdJ.js";const w=720,d=3,q={top:12,right:66,bottom:28,left:8};y.schema;function A(){return typeof document>"u"?"hsl(242 90% 66%)":`hsl(${getComputedStyle(document.documentElement).getPropertyValue("--zf-accent-hue").trim()||"242"} 90% 66%)`}function G({portfolio:a,config:c,windowSec:h}){var v;const{total:t}=W(a.holdings),p=o.useMemo(()=>A(),[]),{ref:P,visibleRef:x}=I(),u=o.useRef(!1),[s,M]=o.useState([]),b=o.useRef(t);o.useEffect(()=>{b.current=t},[t]);const i=o.useCallback(()=>{if(!x.current){u.current=!0;return}const n=b.current;if(!Number.isFinite(n)||n<=0)return;const l=Date.now()/1e3,S=u.current;u.current=!1,M(C=>{const r=S?[]:C,f=r[r.length-1];if(f&&Math.abs(l-f.time)<.5&&f.value===n)return r;const m=r.length===0?[{time:l-d,value:n},{time:l,value:n}]:[...r,{time:l,value:n}];return m.length>w?m.slice(-w):m})},[x]);o.useEffect(()=>{i()},[i,t]),o.useEffect(()=>F(i),[i]);const g=(v=s[0])==null?void 0:v.value,j=g&&t?(t/g-1)*100:0,E=o.useMemo(()=>s.length===0?[]:[{id:"equity",label:"Portfolio",color:p,data:s,value:t}],[s,t,p]),R=o.useMemo(()=>{if(s.length===0)return d;const n=s[s.length-1].time-s[0].time;return Math.min(h,Math.max(d,Math.ceil(n)))},[s,h]);return e.jsxs("div",{ref:P,className:"flex h-full min-h-0 flex-col",children:[e.jsxs("div",{className:"flex flex-none items-baseline justify-between border-b border-white/[0.06] pb-2",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(_,{portfolio:a,config:c,className:"caption text-soft"}),e.jsx("span",{className:"metric-md text-strong",children:N(t)})]}),e.jsxs("span",{className:"body-sm font-semibold tabular-nums",style:{color:D(j)},children:[L(j)," ",e.jsx("span",{className:"caption text-soft",children:"session"})]})]}),e.jsx("div",{className:"min-h-0 flex-1 [&>div[style*='align-items']]:!hidden",children:e.jsx(V,{data:[],value:t,series:E,theme:"dark",window:R,grid:!0,loading:s.length<=1,scrub:!1,badge:!1,formatValue:N,padding:q,style:{width:"100%",height:"100%"}})})]})}function O({config:a}){return e.jsx(H,{config:a,loadingLabel:"loading portfolio…",children:c=>e.jsx(G,{portfolio:c,config:a,windowSec:a.windowSec})})}const K=k({...y,component:O});export{K as portfolioValueFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e,r as c}from"./react-qoZPGuNy.js";import{f,dz as i,h as u}from"./index-CiYWppnQ.js";import{f as l}from"./format-DxkEZcwQ.js";import{P as p,u as x,a as d}from"./portfolio-common-DPg-LM-S.js";import{F as h}from"./ui-Bq3RQsdJ.js";import{B as j}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";i.schema;function v({portfolio:t,config:s}){const{priced:o,total:m}=x(t.holdings),r=c.useMemo(()=>o.filter(a=>(a.value??0)>0).sort((a,n)=>(n.value??0)-(a.value??0)).slice(0,s.limit).map(a=>({label:u(a.symbol),value:a.value??0})),[o,s.limit]);return r.length===0?e.jsx(h,{children:"no live prices yet"}):e.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[e.jsxs("div",{className:"flex items-baseline justify-between px-0.5",children:[e.jsx(d,{portfolio:t,config:s,className:"caption text-soft"}),e.jsx("span",{className:"metric-sm text-strong",children:l(m)})]}),e.jsx(j,{data:r,orientation:"horizontal",height:Math.max(r.length*24,96),formatValue:l})]})}function g({config:t}){return e.jsx(p,{config:t,loadingLabel:"loading holdings…",children:s=>e.jsx(v,{portfolio:s,config:t})})}const z=f({...i,component:g});export{z as portfolioValueBarsFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as m,j as r}from"./react-qoZPGuNy.js";import{f as l}from"./format-DxkEZcwQ.js";import{f as c,dt as s,bI as f}from"./index-CiYWppnQ.js";import{F as i}from"./ui-Bq3RQsdJ.js";import{B as u}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";s.schema;function d(t,e=28){return t.length>e?`${t.slice(0,e-1)}…`:t}function p({config:t}){const{markets:e,isLoading:n}=f(t.limit),a=m.useMemo(()=>e.map(o=>({label:d(o.question),value:o.volume24h})),[e]);return n?r.jsx(i,{loading:!0,children:"loading markets…"}):a.length===0?r.jsx(i,{children:"no markets yet"}):r.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[r.jsx(u,{data:a,orientation:"horizontal",height:Math.max(a.length*26,96),formatValue:l}),r.jsx("div",{className:"caption text-soft text-center",children:"prediction markets · 24h volume"})]})}const B=c({...s,component:p});export{B as predictionMarketBarsFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as p,j as o}from"./react-qoZPGuNy.js";import{f as u,b as f}from"./format-DxkEZcwQ.js";import{f as d,dw as i,bI as h}from"./index-CiYWppnQ.js";import{F as s}from"./ui-Bq3RQsdJ.js";import{S as x}from"./scatter-chart-B28DJ7P-.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";i.schema;function g(e,r=20){return e.length>r?`${e.slice(0,r-1)}…`:e}const b=e=>f(e,0);function j({config:e}){const{markets:r,isLoading:n}=h(e.limit),a=p.useMemo(()=>r.filter(t=>t.outcomes.length>0&&t.volume24h>0).map(t=>{const c=[...t.outcomes].sort((m,l)=>l.prob-m.prob)[0];return{id:t.question,label:g(t.question),x:c.prob*100,y:t.volume24h,weight:t.volume24h}}),[r]);return n?o.jsx(s,{loading:!0,children:"loading markets…"}):a.length===0?o.jsx(s,{children:"no markets yet"}):o.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[o.jsx(x,{data:a,yScale:"log",height:210,formatX:b,formatY:u,maxLabels:10}),o.jsxs("div",{className:"caption text-soft text-center",children:["top-outcome probability (x) vs 24h volume (y, log) · top ",a.length]})]})}const L=d({...i,component:j});export{L as predictionMarketScatterFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as r}from"./react-qoZPGuNy.js";import{U as p,b as f,f as d}from"./format-
|
|
1
|
+
import{j as r}from"./react-qoZPGuNy.js";import{U as p,b as f,f as d}from"./format-DxkEZcwQ.js";import{M as u}from"./metric-row-BVVhjsjK.js";import{f as x,bH as a,bI as b}from"./index-CiYWppnQ.js";import{F as s,s as h}from"./ui-Bq3RQsdJ.js";a.schema;function j({config:i}){const{markets:t,isLoading:n}=b(i.limit);return n?r.jsx(s,{loading:!0,children:"loading markets…"}):t.length===0?r.jsx(s,{children:"no markets yet"}):r.jsx("div",{className:`${h} flex flex-col`,children:t.map((e,m)=>{const o=[...e.outcomes].sort((l,c)=>c.prob-l.prob)[0];return r.jsx(u,{label:e.question,meta:`${o.label} · vol ${d(e.volume24h)}`,value:r.jsx("span",{style:{color:p},children:f(o.prob*100,0)})},m)})})}const P=x({...a,component:j});export{P as predictionMarketsFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as m,j as p}from"./react-qoZPGuNy.js";import{B as b}from"./bubbles-shared-DY914nhm.js";import{b as d,f}from"./format-DxkEZcwQ.js";import{f as h,dB as l,bI as M}from"./index-CiYWppnQ.js";import"./ui-Bq3RQsdJ.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";l.schema;function $(s,o=18){const e=s.trim();if(e.length<=o)return e;const r=e.slice(0,o),t=r.lastIndexOf(" ");return`${t>o*.5?r.slice(0,t):r}…`}function v(s){const o=Math.max(0,Math.min(1,(s-.5)/.5)),e=Math.round(64-o*22);return`hsl(152 ${Math.round(30+o*50)}% ${e}%)`}function g({config:s}){const{markets:o,isLoading:e}=M(s.limit),r=m.useMemo(()=>o.filter(t=>t.volume24h>0).map((t,n)=>{const a=[...t.outcomes].sort((c,u)=>u.prob-c.prob)[0],i=v(a.prob);return{id:`${n}-${t.question}`,label:$(t.question),value:t.volume24h,color:i,borderColor:i,question:t.question,topLabel:a.label,topProb:a.prob,volume24h:t.volume24h}}),[o]);return p.jsx(b,{nodes:r,isLoading:e,loadingText:"loading markets…",emptyText:"no markets yet",caption:`area by 24h volume · tint by leading-outcome confidence · top ${r.length}`,formatTitle:t=>{const n=t;return`${n.question} — ${n.topLabel} ${d(n.topProb*100,0)} · vol ${f(n.volume24h)}`}})}const L=h({...l,component:g});export{L as predictionMarketsBubbleFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as i,r as o}from"./react-qoZPGuNy.js";import{L as T}from"./liveline-bcaEuskN.js";import{f as j,
|
|
1
|
+
import{j as i,r as o}from"./react-qoZPGuNy.js";import{L as T}from"./liveline-bcaEuskN.js";import{f as j,ab as v,A as E,z as y,h as P,ac as A}from"./index-CiYWppnQ.js";import{e as x}from"./format-DxkEZcwQ.js";import{u as N}from"./live-tick-9Q3ubPF9.js";import{F as k}from"./ui-Bq3RQsdJ.js";const f={"1m":6e4,"5m":5*6e4,"15m":15*6e4,"1h":60*6e4,"4h":240*6e4,"1d":1440*6e4},w=60,F={top:12,right:56,bottom:28,left:12};v.schema;function I({config:t}){const s=f[t.interval],c=o.useMemo(()=>Date.now()-s*w,[s]),{candles:n,isLoading:p}=A(t.symbol,t.interval,c,Math.min(s,6e4)),a=y([t.symbol])[t.symbol],{ref:M,visibleRef:b}=N(),h=o.useRef(!1),[u,g]=o.useState([]);o.useEffect(()=>{if(a===void 0)return;if(!b.current){h.current=!0;return}const e=h.current;h.current=!1,g(m=>{const d=[...e?[]:m,{time:Date.now()/1e3,value:a}];return d.length>900?d.slice(-600):d})},[a,b]),o.useEffect(()=>g([]),[t.symbol]);const S=o.useMemo(()=>n.slice(0,-1).map(e=>({time:e.time/1e3,open:e.open,high:e.high,low:e.low,close:e.close})),[n]),r=n[n.length-1],C=o.useMemo(()=>{if(!r)return;const e=a??r.close;return{time:r.time/1e3,open:r.open,high:Math.max(r.high,e),low:Math.min(r.low,e),close:e}},[r,a]),D=a??(r==null?void 0:r.close)??0,L=o.useMemo(()=>s>=f["1d"]?e=>new Date(e*1e3).toLocaleDateString("en-US",{month:"short",day:"numeric"}):s>=f["1h"]?e=>{const m=new Date(e*1e3);return`${m.toLocaleDateString("en-US",{month:"short",day:"numeric"})} ${String(m.getHours()).padStart(2,"0")}h`}:e=>new Date(e*1e3).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"}),[s]),R=o.useMemo(()=>{const e=n.map(l=>({time:l.time/1e3,value:l.close}));if(u.length===0)return e;const m=u[0].time;return[...e.filter(l=>l.time<m),...u]},[n,u]);return p&&n.length===0?i.jsx(k,{loading:!0,children:"loading chart…"}):i.jsx("div",{ref:M,className:"h-full min-h-0",children:i.jsx(T,{mode:t.mode,data:R,value:D,candles:S,candleWidth:s/1e3,liveCandle:C,window:s/1e3*w,color:t.color,theme:"dark",loading:p,formatValue:x,formatTime:L,padding:F,showValue:!0,fill:!0,pulse:!0})})}function V({config:t}){const s=t.mode==="candle",c=y(s?[t.symbol]:[])[t.symbol];return i.jsxs(i.Fragment,{children:[P(t.symbol),s&&c!==void 0&&i.jsx("span",{style:{marginInlineStart:"0.5em",color:"rgba(255, 255, 255, 0.82)",fontVariantNumeric:"tabular-nums"},children:x(c)})]})}const W=j({...v,component:I,titleIcon:({config:t})=>i.jsx(E,{symbol:t.symbol,size:14}),titleContent:V});export{W as priceChartFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t,r as p}from"./react-qoZPGuNy.js";import{f as v,
|
|
1
|
+
import{j as t,r as p}from"./react-qoZPGuNy.js";import{f as v,ad as h,h as d,ae as L,af as O}from"./index-CiYWppnQ.js";import{a as g,e as F}from"./format-DxkEZcwQ.js";import{F as u}from"./ui-Bq3RQsdJ.js";import{a as s,C as f}from"./chart-utils-DGogNvJT.js";import{M as T}from"./index-BpPIfN5S.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";const D={"24h":{ms:1440*60*1e3,interval:"15m",timeframe:s["24h"]},"7D":{ms:10080*60*1e3,interval:"1h",timeframe:s["7D"]},"1M":{ms:720*60*60*1e3,interval:"4h",timeframe:s["1M"]}};h.schema;function E({config:e}){const{ms:m,interval:C,timeframe:M}=D[e.lookback],x=p.useMemo(()=>Date.now()-m,[m]),{candles:o,isLoading:S}=L(e.symbols,C,x),i=p.useMemo(()=>e.symbols.map((r,j)=>{var c;const n=o[r]??[],l=(c=n[0])==null?void 0:c.close;return{id:r,name:d(r),iconImageUrl:O(r),color:f[j%f.length],data:n.map(a=>({date:new Date(a.time).toISOString(),value:e.normalize&&l?(a.close/l-1)*100:a.close}))}}),[e.symbols,e.normalize,o]);return S?t.jsx(u,{loading:!0,children:"loading prices…"}):i.every(r=>r.data.length===0)?t.jsx(u,{children:"no price data yet"}):t.jsx(T,{series:i,timeframe:M,height:250,formatValue:e.normalize?g:F})}function I({config:e}){return t.jsx(t.Fragment,{children:e.symbols.map(d).join(" vs ")})}const w=v({...h,component:E,titleContent:I});export{w as priceCompareFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,j as u}from"./react-qoZPGuNy.js";import{L as T}from"./liveline-bcaEuskN.js";import{f as V,
|
|
1
|
+
import{r as o,j as u}from"./react-qoZPGuNy.js";import{L as T}from"./liveline-bcaEuskN.js";import{f as V,ag as L,z as W,y as $,h as N,A as B}from"./index-CiYWppnQ.js";import{e as z,a as E,c as G}from"./format-DxkEZcwQ.js";import{u as K,o as U}from"./live-tick-9Q3ubPF9.js";import{C as j}from"./chart-utils-DGogNvJT.js";import"./d3-ibrLIlQc.js";const _=720,D=3,X={top:12,right:58,bottom:28,left:8};L.schema;function O(i){return i!==void 0&&Number.isFinite(i)}function q(i,s,S,m){let x=!1;const b={...i};for(const p of s){const d=S[p];if(!O(d))continue;const l=b[p]??[],g=l[l.length-1];if(g&&Math.abs(m-g.time)<.5&&g.value===d)continue;const h=l.length===0?[{time:m-D,value:d},{time:m,value:d}]:[...l,{time:m,value:d}];b[p]=h.length>_?h.slice(-_):h,x=!0}return x?b:i}function k(i,s){return s===0?0:(i/s-1)*100}function J({config:i}){const s=i.symbols,S=s.join("|"),m=W(s),x=$(s),{ref:b,visibleRef:p}=K(),d=o.useRef(!1),[l,g]=o.useState({}),[h,C]=o.useState(()=>new Set),v=o.useMemo(()=>{var n;const e={};for(const t of s){const a=m[t]??((n=x[t])==null?void 0:n.markPx);O(a)&&(e[t]=a)}return e},[m,x,s]),P=o.useRef(v);o.useEffect(()=>{P.current=v},[v]),o.useEffect(()=>{const e=new Set(s);g(n=>{let t=!1;const a={};for(const[r,f]of Object.entries(n)){if(!e.has(r)){t=!0;continue}a[r]=f}return t?a:n}),C(n=>{const t=new Set([...n].filter(a=>e.has(a)));return t.size===n.size?n:t})},[S,s]);const F=o.useCallback(e=>{C(n=>{const t=new Set(n);return t.has(e)?(t.delete(e),t):s.length-t.size<=1?n:(t.add(e),t)})},[s]),y=o.useCallback(()=>{if(!p.current){d.current=!0;return}const e=P.current;if(Object.keys(e).length===0)return;const n=Date.now()/1e3,t=d.current;d.current=!1,g(a=>q(t?{}:a,s,e,n))},[S,s,p]);o.useEffect(()=>{y()},[y,v]),o.useEffect(()=>U(y),[y]);const R=o.useMemo(()=>s.flatMap((e,n)=>{var f,c;if(h.has(e))return[];const t=l[e]??[],a=(f=t[0])==null?void 0:f.value;if(!a||t.length===0)return[];const r=i.normalize?t.map(w=>({time:w.time,value:k(w.value,a)})):t;return[{id:e,label:N(e),color:j[n%j.length],data:r,value:((c=r[r.length-1])==null?void 0:c.value)??0}]}),[l,h,s,i.normalize]),H=o.useMemo(()=>{var a,r;let e=1/0,n=-1/0;for(const f of s){const c=l[f]??[];c.length!==0&&(e=Math.min(e,((a=c[0])==null?void 0:a.time)??1/0),n=Math.max(n,((r=c[c.length-1])==null?void 0:r.time)??-1/0))}const t=Number.isFinite(e)&&Number.isFinite(n)?n-e:0;return Math.min(i.windowSec,Math.max(D,Math.ceil(t)))},[l,s,i.windowSec]),A=R.some(e=>e.data.length>1);return u.jsxs("div",{ref:b,className:"flex h-full min-h-0 flex-col",children:[u.jsx("div",{className:"grid flex-none grid-cols-1 gap-x-3 gap-y-1.5 border-b border-white/[0.06] pb-2 sm:grid-cols-2",children:s.map((e,n)=>{var w,I;const t=v[e],a=(I=(w=l[e])==null?void 0:w[0])==null?void 0:I.value,r=t!==void 0&&a?k(t,a):void 0,f=j[n%j.length],c=h.has(e);return u.jsxs("button",{type:"button","aria-pressed":!c,title:`${c?"Show":"Hide"} ${N(e)}`,className:`caption grid min-w-0 grid-cols-[auto_auto_minmax(0,1fr)_auto] items-center gap-1.5 rounded-md px-1.5 py-0.5 text-left transition ${c?"opacity-40 hover:opacity-70":"bg-white/[0.035] opacity-100 hover:bg-white/[0.06]"}`,onClick:M=>{M.stopPropagation(),F(e)},onPointerDown:M=>M.stopPropagation(),children:[u.jsx("span",{className:"h-1.5 w-1.5 rounded-full",style:{backgroundColor:f}}),u.jsx(B,{symbol:e,size:14}),u.jsx("span",{className:"truncate font-bold text-strong",children:N(e)}),u.jsxs("span",{className:"text-normal tabular-nums",children:[t!==void 0?z(t):"…",r!==void 0?u.jsx("span",{className:"ml-1 tabular-nums",style:{color:G(r)},children:E(r)}):null]})]},e)})}),u.jsx("div",{className:"min-h-0 flex-1 [&>div[style*='align-items']]:!hidden",children:u.jsx(T,{data:[],value:0,series:R,theme:"dark",window:H,grid:!0,loading:!A,scrub:!1,badge:!1,formatValue:i.normalize?E:z,padding:X,seriesToggleCompact:s.length>4,style:{width:"100%",height:"100%"}})})]})}const ae=V({...L,component:J});export{ae as priceLivelineFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as i}from"./react-qoZPGuNy.js";import{f as d,ah as c,ai as l,aj as x,h as g}from"./index-CiYWppnQ.js";import{M as f}from"./mover-row-9TS6-Vx5.js";import{F as h,s as u}from"./ui-Bq3RQsdJ.js";import"./format-DxkEZcwQ.js";c.schema;function j({config:e}){const{mids:t,isLoading:m}=l(e.symbols),{stats:r,isLoading:n}=x(e.symbols),p=e.symbols.some(a=>{var s;return t[a]!==void 0||((s=r[a])==null?void 0:s.markPx)!==void 0});return(m||n)&&!p?i.jsx(h,{loading:!0,children:"loading prices…"}):i.jsx("div",{className:`flex flex-col gap-1.5 ${u}`,children:e.symbols.map(a=>{var s,o;return i.jsx(f,{symbol:a,label:g(a),price:t[a]??((s=r[a])==null?void 0:s.markPx),changePct:(o=r[a])==null?void 0:o.changePct,logoSize:18,gap:"gap-3"},a)})})}const L=d({...c,component:j});export{L as priceTickerFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as l,j as n}from"./react-qoZPGuNy.js";import{B as m}from"./bubbles-shared-DY914nhm.js";import{c as r,f as p,a as i}from"./format-DxkEZcwQ.js";import{f,cj as s,aF as b}from"./index-CiYWppnQ.js";import"./ui-Bq3RQsdJ.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";s.schema;function h({config:o}){const{entries:t,isLoading:c}=b(),a=l.useMemo(()=>t.filter(e=>e.fees24h>0).slice(0,o.topN).map(e=>({id:e.name,label:e.name,value:e.fees24h,color:r(e.changePct??0),borderColor:r(e.changePct??0),changePct:e.changePct??0})),[t,o.topN]);return n.jsx(m,{nodes:a,isLoading:c,loadingText:"loading protocol fees…",emptyText:"no protocol fee data",caption:`area by 24h fees · ring by 1d change · top ${a.length}`,formatTitle:e=>`${e.label} · ${p(e.value)} fees · ${i(e.changePct)}`})}const C=f({...s,component:h});export{C as protocolFeesBubblesFrame};
|
package/runtime/assets/{protocol-fees-treemap-fvVOfUFt.js → protocol-fees-treemap-YkaWU0jI.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as s}from"./react-qoZPGuNy.js";import{f as i}from"./format-
|
|
1
|
+
import{r as c,j as s}from"./react-qoZPGuNy.js";import{f as i}from"./format-DxkEZcwQ.js";import{f as p,aE as n,aF as f}from"./index-CiYWppnQ.js";import{T as l,a as u}from"./treemap-leaf-QG-L-SIG.js";import{F as m}from"./ui-Bq3RQsdJ.js";import"./utils-DxneYyA_.js";import"./d3-ibrLIlQc.js";n.schema;function h({width:t,height:a,data:o}){const r=i(o.fees24h);return s.jsx(u,{width:t,height:a,label:o.id,secondary:r,title:`${o.id} · ${r} 24h fees`})}function d({config:t}){const{entries:a,isLoading:o}=f(),r=c.useMemo(()=>a.slice(0,t.topN).map(e=>({id:e.name,value:e.fees24h,fees24h:e.fees24h,changePct:e.changePct??0})),[a,t.topN]);return o?s.jsx(m,{loading:!0,children:"loading protocol fees…"}):r.length===0?s.jsx(m,{children:"no protocol fee data"}):s.jsx(l,{data:r,LeafComponent:h,getColorValue:e=>e.changePct})}const L=p({...n,component:d});export{L as protocolFeesTreemapFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as p,j as o}from"./react-qoZPGuNy.js";import{f as i}from"./format-DxkEZcwQ.js";import{f as g,cN as c,aB as x,aF as d}from"./index-CiYWppnQ.js";import{F as m}from"./ui-Bq3RQsdJ.js";import{S as u}from"./scatter-chart-B28DJ7P-.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";c.schema;function v({config:r}){const{entries:n,isLoading:f}=x(),{entries:l,isLoading:h}=d(),a=p.useMemo(()=>{const s=new Map;for(const e of n)s.set(e.name,e.tvl);return l.flatMap(e=>{const t=s.get(e.name);return t&&t>0&&e.fees24h>0?[{name:e.name,tvl:t,fees24h:e.fees24h}]:[]}).sort((e,t)=>t.fees24h-e.fees24h).slice(0,r.limit).map(e=>({id:e.name,label:e.name,x:Math.log10(e.tvl),y:e.fees24h,weight:e.fees24h}))},[n,l,r.limit]);return f||h?o.jsx(m,{loading:!0,children:"loading protocols…"}):a.length===0?o.jsx(m,{children:"no matching protocol data yet"}):o.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[o.jsx(u,{data:a,yScale:"log",height:210,formatX:s=>i(10**s),formatY:i,maxLabels:10}),o.jsxs("div",{className:"caption text-soft text-center",children:["TVL (x, log) vs 24h fees (y, log) · top ",a.length," by fees"]})]})}const N=g({...c,component:v});export{N as protocolFeesVsTvlScatterFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,j as n}from"./react-qoZPGuNy.js";import{B as m}from"./bubbles-shared-DY914nhm.js";import{c as r,f as p,a as i}from"./format-DxkEZcwQ.js";import{f as b,ch as l,aB as g}from"./index-CiYWppnQ.js";import"./ui-Bq3RQsdJ.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";l.schema;function u({config:t}){const{entries:a,isLoading:c}=g(),e=s.useMemo(()=>a.filter(o=>o.tvl>0).slice(0,t.topN).map(o=>({id:o.name,label:o.name,value:o.tvl,color:r(o.changePct??0),borderColor:r(o.changePct??0),changePct:o.changePct??0})),[a,t.topN]);return n.jsx(m,{nodes:e,isLoading:c,loadingText:"loading protocol TVL…",emptyText:"no protocol TVL data",caption:`area by TVL · ring by 1d change · top ${e.length}`,formatTitle:o=>`${o.label} · ${p(o.value)} TVL · ${i(o.changePct)}`})}const B=b({...l,component:u});export{B as protocolTvlBubblesFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as m,j as e}from"./react-qoZPGuNy.js";import{f as p}from"./format-DxkEZcwQ.js";import{f,cP as l,aB as u}from"./index-CiYWppnQ.js";import{F as n}from"./ui-Bq3RQsdJ.js";import{B as x}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";l.schema;function h({config:s}){const{entries:i,isLoading:c}=u(),r=m.useMemo(()=>{const a=new Map;for(const t of i){const o=t.category??"Other";a.set(o,(a.get(o)??0)+t.tvl)}return[...a.entries()].map(([t,o])=>({label:t,value:o})).sort((t,o)=>o.value-t.value).slice(0,s.limit)},[i,s.limit]);return c?e.jsx(n,{loading:!0,children:"loading protocol TVL…"}):r.length===0?e.jsx(n,{children:"no protocol TVL data yet"}):e.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[e.jsx(x,{data:r,orientation:"horizontal",height:Math.max(r.length*26,96),formatValue:p}),e.jsx("div",{className:"caption text-soft text-center",children:"DeFi TVL · by category"})]})}const C=f({...l,component:h});export{C as protocolTvlByCategoryFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,j as e}from"./react-qoZPGuNy.js";import{p as C,f as M}from"./format-
|
|
1
|
+
import{r as n,j as e}from"./react-qoZPGuNy.js";import{p as C,f as M}from"./format-DxkEZcwQ.js";import{f as S,aC as f,aD as T}from"./index-CiYWppnQ.js";import{F as p}from"./ui-Bq3RQsdJ.js";import{a,C as c}from"./chart-utils-DGogNvJT.js";import{M as v}from"./index-BpPIfN5S.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";const x={"7D":{ms:10080*60*1e3,timeframe:a["7D"]},"1M":{ms:720*60*60*1e3,timeframe:a["1M"]},"3M":{ms:2160*60*60*1e3,timeframe:a["3M"]}};f.schema;function L({config:o}){const{ms:m,timeframe:u}=x[o.lookback],s=n.useMemo(()=>Date.now()-m,[m]),{history:i,isLoading:h}=T(o.protocols),l=n.useMemo(()=>o.protocols.map((t,d)=>({id:t,name:C(t),color:c[d%c.length],data:(i[t]??[]).filter(r=>r.time>=s).map(r=>({date:new Date(r.time).toISOString(),value:r.value}))})),[o.protocols,i,s]);return h?e.jsx(p,{loading:!0,children:"loading protocol TVL…"}):l.every(t=>t.data.length===0)?e.jsx(p,{children:"no protocol TVL data yet"}):e.jsx(v,{series:l,timeframe:u,height:250,formatValue:M})}const I=S({...f,component:L});export{I as protocolTvlChartFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as n,j as e}from"./react-qoZPGuNy.js";import{p as h,f as i}from"./format-DxkEZcwQ.js";import{f as d,cQ as p,aD as S}from"./index-CiYWppnQ.js";import{F as c}from"./ui-Bq3RQsdJ.js";import{C as l}from"./chart-utils-DGogNvJT.js";import{S as x}from"./index-DuNO-RcB.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";const A={"7D":10080*60*1e3,"1M":720*60*60*1e3,"3M":2160*60*60*1e3};p.schema;function M(o){return o.toLocaleDateString("en-US",{month:"short",day:"numeric"})}function T({config:o}){const a=n.useMemo(()=>Date.now()-A[o.lookback],[o.lookback]),{history:m,isLoading:f}=S(o.protocols),s=n.useMemo(()=>o.protocols.map((t,u)=>({id:t,name:h(t),color:l[u%l.length],data:(m[t]??[]).filter(r=>r.time>=a).map(r=>({date:new Date(r.time),value:r.value}))})),[o.protocols,m,a]);return f?e.jsx(c,{loading:!0,children:"loading protocol TVL…"}):s.every(t=>t.data.length===0)?e.jsx(c,{children:"no protocol TVL data yet"}):e.jsx(x,{series:s,height:240,formatXAxis:M,formatYAxis:i,formatValue:i})}const F=d({...p,component:T});export{F as protocolTvlShareAreaFrame};
|
package/runtime/assets/{protocol-tvl-treemap-v5kaQdP4.js → protocol-tvl-treemap-DdIxlR7K.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,j as m}from"./react-qoZPGuNy.js";import{f as c}from"./format-
|
|
1
|
+
import{r as n,j as m}from"./react-qoZPGuNy.js";import{f as c}from"./format-DxkEZcwQ.js";import{f as i,aA as l,aB as p}from"./index-CiYWppnQ.js";import{T as f,a as u}from"./treemap-leaf-QG-L-SIG.js";import{F as s}from"./ui-Bq3RQsdJ.js";import"./utils-DxneYyA_.js";import"./d3-ibrLIlQc.js";l.schema;function T({width:r,height:a,data:e}){const t=c(e.tvl);return m.jsx(u,{width:r,height:a,label:e.id,secondary:t,title:`${e.id} · ${t} TVL`})}function d({config:r}){const{entries:a,isLoading:e}=p(),t=n.useMemo(()=>a.slice(0,r.topN).map(o=>({id:o.name,value:o.tvl,tvl:o.tvl,changePct:o.changePct??0})),[a,r.topN]);return e?m.jsx(s,{loading:!0,children:"loading protocol TVL…"}):t.length===0?m.jsx(s,{children:"no protocol TVL data"}):m.jsx(f,{data:t,LeafComponent:T,getColorValue:o=>o.changePct})}const C=i({...l,component:d});export{C as protocolTvlTreemapFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./react-qoZPGuNy.js";import{z as n,Z as p,a as s,M as u}from"./cycle-shared-
|
|
1
|
+
import{j as e}from"./react-qoZPGuNy.js";import{z as n,Z as p,a as s,M as u}from"./cycle-shared-XoGVsOjC.js";import{D as m,U as c}from"./format-DxkEZcwQ.js";import{t as d,w as f}from"./indicators-Cw7CVPn4.js";import{f as x,bm as r,bl as M}from"./index-CiYWppnQ.js";import{F as a}from"./ui-Bq3RQsdJ.js";import"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";r.schema;function O({config:t}){const{extras:l,isLoading:i}=M();if(i)return e.jsx(a,{loading:!0,children:"loading Puell…"});if(!l||l.puell===null)return e.jsx(a,{children:"Puell Multiple unavailable"});const o=n(l.puell,[{upTo:.5,zone:{label:"Miner capitulation",color:c}},{upTo:2,zone:{label:"Normal",color:p}},{upTo:4,zone:{label:"Elevated",color:s}}],{label:"Cycle-top zone",color:m});return e.jsx(u,{caption:"Puell Multiple",headline:l.puell.toFixed(2),headlineColor:o.color,zone:o,sparkline:d(l.history.puell,f(t.window)),sparkColor:o.color})}const P=x({...r,component:O});export{P as puellMultipleFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e}from"./react-qoZPGuNy.js";import{D as n,U as m}from"./format-DxkEZcwQ.js";import{f as c,cu as o,bb as u}from"./index-CiYWppnQ.js";import{F as r}from"./ui-Bq3RQsdJ.js";import{R as p}from"./radial-gauge-0BzRQ6fO.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";o.schema;function d({config:t}){const{summary:a,isLoading:l}=u(t.currency);if(l)return e.jsx(r,{loading:!0,children:"loading options…"});if(!a)return e.jsx(r,{children:"no options data yet"});const s=t.basis==="oi"?a.putCallRatioOi:a.putCallRatioVolume,i=s>1?n:m;return e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-1",children:[e.jsxs(p,{value:s,min:0,max:2,color:i,size:170,children:[e.jsx("div",{className:"metric-xl leading-none",style:{color:i},children:s.toFixed(2)}),e.jsx("div",{className:"caption text-soft mt-1 uppercase tracking-wide",children:"put / call"})]}),e.jsxs("div",{className:"caption text-soft",children:[t.currency," · by ",t.basis==="oi"?"open interest":"volume"]})]})}const O=c({...o,component:d});export{O as putCallGaugeFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,j as t}from"./react-qoZPGuNy.js";import{f as u,
|
|
1
|
+
import{r as s,j as t}from"./react-qoZPGuNy.js";import{f as u,aR as i}from"./index-CiYWppnQ.js";i.schema;const c="var(--color-highlight)";function d({config:a}){const e=a.quotes,[r,l]=s.useState(0);s.useEffect(()=>l(0),[a.quotes]),s.useEffect(()=>{if(a.intervalSec<=0||e.length<=1)return;const o=window.setInterval(()=>l(n=>(n+1)%e.length),a.intervalSec*1e3);return()=>window.clearInterval(o)},[a.intervalSec,e.length]);const m=e[Math.min(r,e.length-1)]??"";return t.jsx("div",{className:"flex h-full w-full items-center justify-center [container-type:size]",children:t.jsxs("figure",{className:"relative max-h-full overflow-auto px-3 text-center",children:[t.jsx("span",{"aria-hidden":!0,className:"block font-dmsans font-black leading-none",style:{fontSize:"clamp(1.5rem, 14cqmin, 3rem)",color:c},children:"“"}),t.jsx("blockquote",{className:"body-md text-normal -mt-[0.3em] whitespace-pre-wrap italic leading-snug",style:{fontSize:"clamp(0.85rem, 8cqmin, 1.25rem)"},children:m}),e.length>1&&t.jsx("figcaption",{className:"mt-2 flex justify-center gap-1.5","aria-hidden":!0,children:e.map((o,n)=>t.jsx("span",{className:"h-1 w-1 rounded-full transition-colors",style:{background:n===Math.min(r,e.length-1)?c:"var(--color-disabled)"}},n))})]})})}const x=u({...i,component:d});export{x as quoteFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as g,j as p}from"./react-qoZPGuNy.js";import{s as v,b as x,H as G}from"./d3-ibrLIlQc.js";import{p as T}from"./utils-DxneYyA_.js";const r=-3*Math.PI/4,E=3*Math.PI/4,$=({value:h,min:a=0,max:o=100,color:l="var(--color-highlight, #8b8bff)",trackColor:c,size:t=180,thickness:e=12,children:M})=>{const R=g.useRef(null);return g.useEffect(()=>{const i=R.current;if(!i)return;v(i).selectAll("*").remove();const j=v(i),n=t/2-2,d=n-e,N=o>a?Math.min(Math.max((h-a)/(o-a),0),1):0,s=r+N*(E-r),u=j.append("g").attr("transform",`translate(${t/2},${t/2})`),b=x().innerRadius(d).outerRadius(n).cornerRadius(e).startAngle(r).endAngle(E);u.append("path").attr("d",b).attr("fill",c??"currentColor").attr("fill-opacity",c?1:.12);const f=x().innerRadius(d).outerRadius(n).cornerRadius(e).startAngle(r),A=u.append("path").attr("fill",l).attr("d",f({endAngle:r})??"");T()?A.attr("d",f({endAngle:s})??""):A.transition().duration(600).attrTween("d",()=>{const w=G(r,s);return y=>f({endAngle:w(y)})??""});const m=(d+n)/2;u.append("circle").attr("cx",Math.sin(s)*m).attr("cy",-Math.cos(s)*m).attr("r",e/2+2).attr("fill",l).attr("stroke","var(--color-card, #101014)").attr("stroke-width",2)},[h,a,o,l,c,t,e]),p.jsxs("div",{className:"relative",style:{width:t,height:t},children:[p.jsx("svg",{ref:R,width:t,height:t}),p.jsx("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:M})]})},_=g.memo($);export{_ as R};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./react-qoZPGuNy.js";import{b as a,f as g}from"./format-
|
|
1
|
+
import{j as e}from"./react-qoZPGuNy.js";import{b as a,f as g}from"./format-DxkEZcwQ.js";import{M as v}from"./metric-row-BVVhjsjK.js";import{f as j,ak as f,al as R,am as y}from"./index-CiYWppnQ.js";import{F as m}from"./ui-Bq3RQsdJ.js";f.schema;function b({config:t}){var c,d;const{rates:i,isLoading:x}=R(),{rates:o,isLoading:u}=y();if(x&&u)return e.jsx(m,{loading:!0,children:"loading official rates…"});if(!i.length&&!o.length)return e.jsx(m,{children:"no rates data yet"});const n=i.slice(0,t.maxReferenceRates),r=o.slice(0,t.maxTreasuryRates),l=(c=n[0])==null?void 0:c.date,h=(d=r[0])==null?void 0:d.date;return e.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-3",children:[e.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("div",{className:"caption text-soft uppercase",children:"official rates"}),e.jsx("div",{className:"body-sm text-normal",children:l?`as of ${l}`:"reference rates"})]}),e.jsx("div",{className:"caption text-soft text-right",children:"daily"})]}),e.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:n.map(s=>{const p=s.targetRateFrom!==void 0&&s.targetRateTo!==void 0?`target ${a(s.targetRateFrom)}-${a(s.targetRateTo)}`:s.volumeInBillions!==void 0?`${g(s.volumeInBillions*1e9)} volume`:s.source;return e.jsx(v,{label:s.label,value:a(s.rate),meta:p},s.code)})}),t.showTreasuryAverageRates&&r.length>0&&e.jsxs("div",{className:"border-t border-white/[0.08] pt-2",children:[e.jsxs("div",{className:"caption text-soft mb-1 flex justify-between",children:[e.jsx("span",{children:"Treasury average rates"}),e.jsx("span",{children:h})]}),e.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:r.map(s=>e.jsxs("div",{className:"rounded bg-white/[0.04] px-2 py-1.5",children:[e.jsx("div",{className:"caption text-soft truncate",children:s.security}),e.jsx("div",{className:"body-sm text-strong font-bold tabular-nums",children:a(s.rate)})]},`${s.date}-${s.security}`))})]})]})}const B=j({...f,component:b});export{B as ratesBoardFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as I,j as l}from"./react-qoZPGuNy.js";import{a as M,b as T}from"./format-DxkEZcwQ.js";import{f as w,di as x,S as h}from"./index-CiYWppnQ.js";import{F as S}from"./ui-Bq3RQsdJ.js";import{C as v,a as L}from"./chart-utils-DGogNvJT.js";import{M as R}from"./index-BpPIfN5S.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";x.schema;const D="CUUR0000SA0",U="CES0500000003";function C(a){const u=new Map(a.map(e=>[e.time,e.value]));return a.flatMap(e=>{const t=new Date(e.time),n=Date.UTC(t.getUTCFullYear()-1,t.getUTCMonth(),1),r=u.get(n);return r===void 0||r<=0?[]:[{...e,value:(e.value/r-1)*100}]})}function j({config:a}){var p,f;const e=new Date().getUTCFullYear(),t=e-3,{series:n,isLoading:r}=h(D,t,e),{series:m,isLoading:y}=h(U,t,e),s=I.useMemo(()=>{if(!n||!m)return[];const i=C(m.points).slice(-a.months),E=C(n.points).slice(-a.months);return[{id:"earnings",name:"Avg hourly earnings",color:v[1],data:i.map(o=>({date:new Date(o.time).toISOString(),value:o.value}))},{id:"cpi",name:"CPI-U",color:v[3],data:E.map(o=>({date:new Date(o.time).toISOString(),value:o.value}))}]},[n,m,a.months]);if((r||y)&&s.every(i=>i.data.length===0))return l.jsx(S,{loading:!0,children:"loading real wages…"});if(s.every(i=>i.data.length===0))return l.jsx(S,{children:"no wage data yet"});const d=(p=s[0].data.at(-1))==null?void 0:p.value,g=(f=s[1].data.at(-1))==null?void 0:f.value,c=d!==void 0&&g!==void 0?d-g:null;return l.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-2",children:[l.jsx(R,{series:s,timeframe:L.YTD,height:250,formatValue:M}),c!==null&&l.jsxs("div",{className:"caption text-soft text-center",children:["pay ",c>=0?"outrunning":"trailing"," inflation by"," ",T(Math.abs(c),2)]})]})}const G=w({...x,component:j});export{G as realWagesFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as l,j as i}from"./react-qoZPGuNy.js";import{f}from"./format-DxkEZcwQ.js";import{w as p,t as o}from"./indicators-Cw7CVPn4.js";import{f as u,bT as c,bi as h}from"./index-CiYWppnQ.js";import{F as n}from"./ui-Bq3RQsdJ.js";import{C as s,a as w}from"./chart-utils-DGogNvJT.js";import{M as x}from"./index-BpPIfN5S.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";c.schema;const m=r=>r.map(e=>({date:new Date(e.time).toISOString(),value:e.value}));function z({config:r}){const{valuation:e,isLoading:d}=h(),t=l.useMemo(()=>{if(!e)return[];const a=p(r.window);return[{id:"price",name:"Market Price",color:s[0],data:m(o(e.history.price,a))},{id:"realized",name:"Realized Price",color:s[1],data:m(o(e.history.realizedPrice,a))}]},[e,r.window]);return d?i.jsx(n,{loading:!0,children:"loading realized price…"}):!e||t.every(a=>a.data.length===0)?i.jsx(n,{children:"no on-chain data yet"}):i.jsx(x,{series:t,timeframe:w.YTD,height:220,formatValue:f})}const v=u({...c,component:z});export{v as realizedPriceFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as o}from"./react-qoZPGuNy.js";import{z as n,Z as l,M as m}from"./cycle-shared-
|
|
1
|
+
import{j as o}from"./react-qoZPGuNy.js";import{z as n,Z as l,M as m}from"./cycle-shared-XoGVsOjC.js";import{D as c,U as p}from"./format-DxkEZcwQ.js";import{t as R,w as u}from"./indicators-Cw7CVPn4.js";import{f as v,bU as i,bl as f}from"./index-CiYWppnQ.js";import{F as s}from"./ui-Bq3RQsdJ.js";import"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";i.schema;function k({config:a}){const{extras:e,isLoading:t}=f();if(t)return o.jsx(s,{loading:!0,children:"loading reserve risk…"});if(!e||e.reserveRisk===null)return o.jsx(s,{children:"Reserve Risk unavailable"});const r=n(e.reserveRisk,[{upTo:.0015,zone:{label:"Attractive",color:p}},{upTo:.008,zone:{label:"Neutral",color:l}}],{label:"Elevated",color:c});return o.jsx(m,{caption:"Reserve Risk",headline:e.reserveRisk.toPrecision(2),headlineColor:r.color,zone:r,sparkline:R(e.history.reserveRisk,u(a.window)),sparkColor:r.color})}const g=v({...i,component:k});export{g as reserveRiskFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,j as e}from"./react-qoZPGuNy.js";import{i as y}from"./content-shared-BZ1XzrJx.js";import{f as g,a as k,c as w}from"./format-
|
|
1
|
+
import{r as n,j as e}from"./react-qoZPGuNy.js";import{i as y}from"./content-shared-BZ1XzrJx.js";import{f as g,a as k,c as w}from"./format-DxkEZcwQ.js";import{f as F,bX as b}from"./index-CiYWppnQ.js";import{M as R}from"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";b.schema;function o({label:s,value:t,onChange:l}){return e.jsxs("label",{className:`flex flex-col gap-0.5 px-2 py-1 ${y}`,children:[e.jsx("span",{className:"caption text-soft truncate",children:s}),e.jsx("input",{type:"number",value:Number.isFinite(t)?t:0,onChange:a=>l(Number(a.target.value)),className:"body-sm text-strong w-full bg-transparent outline-none"})]})}function E({config:s}){const[t,l]=n.useState(s.principal),[a,j]=n.useState(s.ratePct),[c,v]=n.useState(s.periods),[i,N]=n.useState(s.contribution),{series:C,ending:P,contributed:p,gain:d}=n.useMemo(()=>{const M=a/100,S=Math.max(0,Math.min(600,Math.floor(c))),f=[{date:"0",value:t}];let r=t,m=t;for(let u=1;u<=S;u++)r=r*(1+M)+i,m+=i,f.push({date:String(u),value:r});return{series:f,ending:r,contributed:m,gain:r-m}},[t,a,c,i]),x=p>0?d/p*100:0,h=s.label.trim();return e.jsxs("div",{className:"flex h-full w-full flex-col gap-2",children:[h&&e.jsx("div",{className:"caption text-soft shrink-0 uppercase tracking-[0.12em]",children:h}),e.jsxs("div",{className:"shrink-0",children:[e.jsx("div",{className:"caption text-soft",children:"projected value"}),e.jsx("div",{className:"metric-lg text-strong",children:g(P)}),e.jsxs("div",{className:"body-sm",style:{color:w(x)},children:[k(x)," · ",g(d)," gain"]})]}),e.jsx("div",{className:"min-h-0 flex-1",children:e.jsx(R,{data:C,width:260,height:48,variant:"green",className:"w-full"})}),e.jsxs("div",{className:"grid shrink-0 grid-cols-2 gap-1.5",children:[e.jsx(o,{label:"principal",value:t,onChange:l}),e.jsx(o,{label:"rate %/period",value:a,onChange:j}),e.jsx(o,{label:"periods",value:c,onChange:v}),e.jsx(o,{label:"contribution",value:i,onChange:N})]})]})}const B=F({...b,component:E});export{B as returnsProjectorFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,j as e}from"./react-qoZPGuNy.js";import{i as S}from"./content-shared-BZ1XzrJx.js";import{D as h,U as f,a as y,
|
|
1
|
+
import{r as l,j as e}from"./react-qoZPGuNy.js";import{i as S}from"./content-shared-BZ1XzrJx.js";import{D as h,U as f,a as y,e as v}from"./format-DxkEZcwQ.js";import{f as M,aV as R}from"./index-CiYWppnQ.js";import{s as O}from"./ui-Bq3RQsdJ.js";R.schema;const P="var(--color-highlight)";function b(s){const a=Number(s);return Number.isFinite(a)?a:0}function g({label:s,value:a,onChange:n}){return e.jsxs("label",{className:"flex min-w-0 flex-col gap-1",children:[e.jsx("span",{className:"caption text-soft uppercase tracking-[0.12em]",children:s}),e.jsxs("span",{className:`flex items-center px-2 py-1.5 ${S}`,children:[e.jsx("span",{className:"body-sm text-soft",children:"$"}),e.jsx("input",{type:"number",inputMode:"decimal",value:a,onChange:c=>n(c.target.value),className:"body-sm text-normal min-w-0 flex-1 bg-transparent text-right tabular-nums outline-none [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"})]})]})}function L({value:s,onChange:a}){return e.jsx("div",{className:`flex gap-1 p-1 ${S}`,children:["long","short"].map(n=>{const c=n===s;return e.jsx("button",{type:"button",onClick:()=>a(n),className:`caption flex-1 rounded px-2 py-1 text-center uppercase tracking-[0.12em] transition-colors ${c?"bg-white/[0.06] font-semibold":"text-soft"}`,style:c?{color:P}:void 0,children:n},n)})})}function T({config:s}){const[a,n]=l.useState(String(s.entry)),[c,j]=l.useState(String(s.stop)),[m,N]=l.useState(String(s.target)),[o,k]=l.useState(s.direction);l.useEffect(()=>n(String(s.entry)),[s.entry]),l.useEffect(()=>j(String(s.stop)),[s.stop]),l.useEffect(()=>N(String(s.target)),[s.target]),l.useEffect(()=>k(s.direction),[s.direction]);const t=l.useMemo(()=>{const r=b(a),p=b(c),x=b(m),i=Math.abs(r-p),d=Math.abs(x-r),D=i>0?d/i:0,E=r!==0?i/r*100:0,$=r!==0?d/r*100:0,u=i+d,U=u>0?i/u*100:50,F=o==="long"?p<r&&r<x:x<r&&r<p;return{riskPerUnit:i,rewardPerUnit:d,rr:D,riskPct:E,rewardPct:$,riskShare:U,hasRisk:i>0,hasData:u>0,valid:F}},[a,c,m,o]),C=t.hasData?t.hasRisk?`1 : ${t.rr.toFixed(t.rr>=10?0:1)}`:"∞":"—",w=s.label.trim();return e.jsxs("div",{className:`${O} flex flex-col gap-3`,children:[w&&e.jsx("span",{className:"caption text-soft uppercase tracking-[0.12em]",children:w}),e.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[e.jsx(g,{label:"Entry",value:a,onChange:n}),e.jsx(g,{label:"Stop",value:c,onChange:j}),e.jsx(g,{label:"Target",value:m,onChange:N})]}),e.jsx(L,{value:o,onChange:k}),e.jsxs("div",{className:"flex flex-col gap-2.5 rounded-lg border border-white/[0.07] bg-white/[0.03] p-3",children:[e.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[e.jsx("span",{className:"caption text-soft uppercase tracking-[0.12em]",children:"Risk : Reward"}),e.jsx("span",{className:"metric-md",style:{color:t.hasData?P:void 0},children:C})]}),e.jsxs("div",{className:"flex h-2.5 w-full overflow-hidden rounded-full bg-white/[0.06]",children:[e.jsx("span",{className:"h-full",style:{width:`${t.riskShare}%`,background:h}}),e.jsx("span",{className:"h-full",style:{width:`${100-t.riskShare}%`,background:f}})]}),e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsxs("div",{className:"flex min-w-0 flex-col",children:[e.jsx("span",{className:"caption uppercase tracking-[0.12em]",style:{color:h},children:"Risk"}),e.jsx("span",{className:"body-sm tabular-nums",style:{color:h},children:y(-t.riskPct)}),e.jsxs("span",{className:"caption text-soft tabular-nums",children:[v(t.riskPerUnit)," / unit"]})]}),e.jsxs("div",{className:"flex min-w-0 flex-col items-end text-right",children:[e.jsx("span",{className:"caption uppercase tracking-[0.12em]",style:{color:f},children:"Reward"}),e.jsx("span",{className:"body-sm tabular-nums",style:{color:f},children:y(t.rewardPct)}),e.jsxs("span",{className:"caption text-soft tabular-nums",children:[v(t.rewardPerUnit)," / unit"]})]})]}),t.hasData&&!t.valid&&e.jsxs("span",{className:"caption text-soft",children:["⚠ Prices don't bracket entry for a ",o," setup."]})]})]})}const z=M({...R,component:T});export{z as riskRewardFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as b,j as a}from"./react-qoZPGuNy.js";import{z as O,Z as R,M as x}from"./cycle-shared-
|
|
1
|
+
import{r as b,j as a}from"./react-qoZPGuNy.js";import{z as O,Z as R,M as x}from"./cycle-shared-XoGVsOjC.js";import{D as m,U as u}from"./format-DxkEZcwQ.js";import{r as v,t as y,w as z}from"./indicators-Cw7CVPn4.js";import{f as M,br as c,bo as g}from"./index-CiYWppnQ.js";import{F as p}from"./ui-Bq3RQsdJ.js";import"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";c.schema;function j({config:e}){const{history:r,isLoading:d}=g("btc"),t=b.useMemo(()=>{const f=r.map(o=>o.value),h=v(f,e.period),l=[];for(let o=0;o<r.length;o++){const n=h[o];n!==null&&l.push({time:r[o].time,value:n})}return l},[r,e.period]);if(d)return a.jsx(p,{loading:!0,children:"loading RSI…"});if(t.length===0)return a.jsx(p,{children:"not enough price history yet"});const i=t[t.length-1].value,s=O(i,[{upTo:30,zone:{label:"Oversold",color:u}},{upTo:45,zone:{label:"Risk-off",color:m}},{upTo:55,zone:{label:"Neutral",color:R}},{upTo:80,zone:{label:"Risk-on",color:u}}],{label:"Overbought",color:m});return a.jsx(x,{caption:`RSI ${e.period} · daily`,headline:i.toFixed(0),headlineColor:s.color,zone:s,sparkline:y(t,z(e.window)),sparkColor:s.color})}const S=M({...c,component:j});export{S as rsiMomentumFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s}from"./react-qoZPGuNy.js";import{f as m,
|
|
1
|
+
import{j as s}from"./react-qoZPGuNy.js";import{f as m,b$ as n}from"./index-CiYWppnQ.js";import{F as i,s as o}from"./ui-Bq3RQsdJ.js";n.schema;function c({config:l}){const r=l.rules.filter(e=>e.trim()),a=l.title.trim();return r.length===0?s.jsx(i,{children:"no rules yet"}):s.jsxs("div",{className:"flex h-full w-full flex-col",children:[a&&s.jsx("div",{className:"body-sm text-strong mb-1 shrink-0 font-semibold",children:a}),s.jsx("ol",{className:`min-h-0 flex-1 ${o}`,children:r.map((e,t)=>s.jsxs("li",{className:"flex gap-2 py-1",children:[s.jsx("span",{className:"caption text-highlight shrink-0 tabular-nums",children:t+1}),s.jsx("span",{className:"body-sm text-normal",children:e})]},t))})]})}const u=m({...n,component:c});export{u as rulesCardFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as f,j}from"./react-qoZPGuNy.js";import{s as D,e as F,l as I,z as H,A as P}from"./d3-ibrLIlQc.js";import{p as U}from"./utils-DxneYyA_.js";const R="10px 'DM Sans', sans-serif",V="var(--color-highlight, #8b8bff)",_=({data:n,height:p=220,yScale:g="linear",color:m=V,formatX:k=l=>String(l),formatY:M=l=>String(l),zeroXLine:d=!1,radiusRange:w=[3,14],maxLabels:E=12})=>{const l=f.useRef(null),v=f.useRef(null),[a,N]=f.useState(null);return f.useEffect(()=>{const s=l.current;if(!s)return;const y=()=>{const o=s.getBoundingClientRect().width;N(r=>r!==null&&Math.abs(r-o)<.5?r:o)};y();const e=typeof ResizeObserver<"u"?new ResizeObserver(y):null;return e==null||e.observe(s),()=>e==null?void 0:e.disconnect()},[]),f.useEffect(()=>{const s=v.current;if(!s||!a||a<=0||!n.length)return;D(s).selectAll("*").remove();const y=D(s),e={top:10,right:16,bottom:22,left:46},o=Math.max(a-e.left-e.right,10),r=Math.max(p-e.top-e.bottom,10),h=F(n,t=>t.x),T=(h[1]-h[0]||1)*.08,c=I().domain([Math.min(h[0]-T,d?0:1/0),Math.max(h[1]+T,d?0:-1/0)]).range([0,o]).nice(),b=n.map(t=>t.y),i=g==="log"?H().domain([Math.min(...b)*.7,Math.max(...b)*1.4]).range([r,0]):I().domain(F(b)).range([r,0]).nice(),W=P().domain([0,Math.max(...n.map(t=>t.weight??1),1e-9)]).range([w[0],w[1]]),x=y.append("g").attr("transform",`translate(${e.left},${e.top})`),q=c.ticks(Math.max(2,Math.floor(o/90))),$=i.ticks(4),O=$.filter(t=>{const u=Math.log10(t);return Math.abs(u-Math.round(u))<1e-9}),S=g==="log"&&O.length>=2?O:$;x.selectAll("line.grid-y").data(S).enter().append("line").attr("x1",0).attr("x2",o).attr("y1",t=>i(t)).attr("y2",t=>i(t)).attr("stroke","currentColor").attr("stroke-opacity",.08),x.selectAll("text.tick-y").data(S).enter().append("text").attr("x",-8).attr("y",t=>i(t)).attr("text-anchor","end").attr("dominant-baseline","central").attr("fill","currentColor").attr("fill-opacity",.5).style("font",R).text(t=>M(t)),x.selectAll("text.tick-x").data(q).enter().append("text").attr("x",t=>c(t)).attr("y",r+15).attr("text-anchor","middle").attr("fill","currentColor").attr("fill-opacity",.5).style("font",R).text(t=>k(t)),d&&x.append("line").attr("x1",c(0)).attr("x2",c(0)).attr("y1",0).attr("y2",r).attr("stroke","currentColor").attr("stroke-opacity",.22).attr("stroke-dasharray","3,3");const C=x.selectAll("circle.dot").data(n).enter().append("circle").attr("cx",t=>c(t.x)).attr("cy",t=>i(t.y)).attr("fill",t=>t.color??m).attr("fill-opacity",.55).attr("stroke",t=>t.color??m).attr("stroke-opacity",.9).attr("r",0),A=t=>W(t.weight??1);U()?C.attr("r",A):C.transition().duration(400).attr("r",A),C.append("title").text(t=>`${t.label} · x ${k(t.x)} · y ${M(t.y)}`);const B=[...n].sort((t,u)=>(u.weight??1)-(t.weight??1)).slice(0,E);x.selectAll("text.dot-label").data(B).enter().append("text").attr("x",t=>c(t.x)).attr("y",t=>i(t.y)-A(t)-3).attr("text-anchor","middle").attr("fill","currentColor").attr("fill-opacity",.75).style("font",R).style("font-weight","600").style("pointer-events","none").text(t=>t.label)},[n,a,p,g,m,k,M,d,w,E]),j.jsx("div",{ref:l,className:"w-full",style:{height:p},children:a!==null&&a>0&&j.jsx("svg",{ref:v,width:a,height:p})})},K=f.memo(_);export{K as S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as m,j as a}from"./react-qoZPGuNy.js";import{a as h,D as l,U as f}from"./format-DxkEZcwQ.js";import{f as u,ca as n,bO as g}from"./index-CiYWppnQ.js";import{F as c}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 x({config:o}){const{sectors:s,isLoading:i}=g(),e=m.useMemo(()=>[...s].sort((t,r)=>Math.abs(r.changePct24h)-Math.abs(t.changePct24h)).slice(0,o.limit).sort((t,r)=>r.changePct24h-t.changePct24h).map(t=>({label:t.name,value:t.changePct24h})),[s,o.limit]);return i?a.jsx(c,{loading:!0,children:"loading sectors…"}):e.length===0?a.jsx(c,{children:"no sector data yet"}):a.jsx("div",{className:"flex h-full flex-col justify-center text-normal",children:a.jsx(p,{data:e,orientation:"horizontal",color:f,negativeColor:l,height:Math.max(e.length*24,96),formatValue:h})})}const b=u({...n,component:x});export{b as sectorBarsFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,j as n}from"./react-qoZPGuNy.js";import{B as i}from"./bubbles-shared-DY914nhm.js";import{c as r,f as l,a as p}from"./format-DxkEZcwQ.js";import{f as h,ck as c,bO as b}from"./index-CiYWppnQ.js";import"./ui-Bq3RQsdJ.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";c.schema;function f({config:t}){const{sectors:a,isLoading:m}=b(),o=s.useMemo(()=>a.filter(e=>e.marketCap>0).slice(0,t.limit).map(e=>({id:e.name,label:e.name,value:e.marketCap,color:r(e.changePct24h),borderColor:r(e.changePct24h),changePct24h:e.changePct24h})),[a,t.limit]);return n.jsx(i,{nodes:o,isLoading:m,loadingText:"loading sectors…",emptyText:"no sector data yet",caption:`area by sector mcap · ring by 24h change · top ${o.length}`,formatTitle:e=>`${e.label} · ${l(e.value)} mcap · ${p(e.changePct24h)}`})}const y=h({...c,component:f});export{y as sectorBubblesFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./react-qoZPGuNy.js";import{a as i,c as l,f}from"./format-
|
|
1
|
+
import{j as e}from"./react-qoZPGuNy.js";import{a as i,c as l,f}from"./format-DxkEZcwQ.js";import{M as h}from"./metric-row-BVVhjsjK.js";import{f as p,bN as t,bO as d}from"./index-CiYWppnQ.js";import{F as o,s as x}from"./ui-Bq3RQsdJ.js";t.schema;function u({config:s}){const{sectors:c,isLoading:n}=d(),a=c.slice(0,s.limit);return n?e.jsx(o,{loading:!0,children:"loading sectors…"}):a.length===0?e.jsx(o,{children:"no sector data yet"}):e.jsx("div",{className:`${x} flex flex-col`,children:a.map((r,m)=>e.jsx(h,{label:r.name,meta:f(r.marketCap),value:e.jsx("span",{style:{color:l(r.changePct24h)},children:i(r.changePct24h)})},m))})}const b=p({...t,component:u});export{b as sectorPerformanceFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,j as o}from"./react-qoZPGuNy.js";import{f as p,a as n}from"./format-
|
|
1
|
+
import{r as i,j as o}from"./react-qoZPGuNy.js";import{f as p,a as n}from"./format-DxkEZcwQ.js";import{f,bR as c,bO as h}from"./index-CiYWppnQ.js";import{T as l,a as u}from"./treemap-leaf-QG-L-SIG.js";import{F as s}from"./ui-Bq3RQsdJ.js";import"./utils-DxneYyA_.js";import"./d3-ibrLIlQc.js";c.schema;function g({width:t,height:a,data:e}){return o.jsx(u,{width:t,height:a,label:e.id,secondary:n(e.changePct24h),title:`${e.id} · ${p(e.marketCap)} · ${n(e.changePct24h)}`})}function d({config:t}){const{sectors:a,isLoading:e}=h(),m=i.useMemo(()=>a.slice(0,t.limit).map(r=>({id:r.name,value:r.marketCap,marketCap:r.marketCap,changePct24h:r.changePct24h})),[a,t.limit]);return e?o.jsx(s,{loading:!0,children:"loading sectors…"}):m.length===0?o.jsx(s,{children:"no sector data yet"}):o.jsx(l,{data:m,LeafComponent:g,getColorValue:r=>r.changePct24h})}const L=f({...c,component:d});export{L as sectorTreemapFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e}from"./react-qoZPGuNy.js";import{f as c,co as s,I as l}from"./index-CiYWppnQ.js";import{F as n}from"./ui-Bq3RQsdJ.js";import{R as m}from"./radial-gauge-0BzRQ6fO.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";s.schema;function d(t){return t<=25?"#F21553":t<=45?"#F97316":t<=55?"#F59E0B":t<=75?"#84CC16":"#25A78D"}function f(t){const{points:a,isLoading:o}=l(1),r=a[0];if(o)return e.jsx(n,{loading:!0,children:"loading index…"});if(!r)return e.jsx(n,{children:"no sentiment data yet"});const i=d(r.value);return e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-1",children:[e.jsxs(m,{value:r.value,color:i,size:170,children:[e.jsx("div",{className:"metric-xl leading-none",style:{color:i,textShadow:`0 0 28px ${i}55`},children:r.value}),e.jsx("div",{className:"caption text-soft mt-1 uppercase tracking-wide",children:r.classification})]}),e.jsx("div",{className:"caption text-soft",children:"crypto fear & greed"})]})}const F=c({...s,component:f});export{F as sentimentGaugeFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as d,j as e}from"./react-qoZPGuNy.js";import{E as u,e as w,f as h}from"./market-data-CvmpLFSo.js";import{f as N,
|
|
1
|
+
import{r as d,j as e}from"./react-qoZPGuNy.js";import{E as u,e as w,f as h}from"./market-data-CvmpLFSo.js";import{f as N,aX as f}from"./index-CiYWppnQ.js";import{F as v}from"./ui-Bq3RQsdJ.js";f.schema;function x(s){const[o,r]=s.split(":").map(Number);return o*60+r}function b(s){return Math.min(1,Math.max(0,s))}function M({config:s}){const[o,r]=d.useState(()=>new Date);d.useEffect(()=>{const j=setInterval(()=>r(new Date),3e4);return()=>clearInterval(j)},[]);const n=u[s.exchange]??u.NYSE;if(!n)return e.jsx(v,{children:"unknown exchange"});const t=w(n,o),a=t.status==="open",c=s.label.trim(),l=x(t.close)-x(t.open),i=a&&l>0?b((l-t.nextChangeMin)/l):0,p=Math.round(i*100),g=t.status==="holiday"?"Holiday":a?`${p}%`:"Closed",m=a?`closes in ${h(t.nextChangeMin)}`:s.showCountdown?`opens in ${h(t.nextChangeMin)}`:null;return e.jsxs("div",{className:"flex h-full w-full flex-col justify-center gap-2",children:[e.jsxs("div",{className:"caption text-soft flex items-center gap-1.5 uppercase tracking-[0.14em]",children:[e.jsx("span",{className:"text-normal font-semibold",children:n.mark}),e.jsx("span",{children:n.code}),c&&e.jsxs("span",{className:"text-disabled truncate tracking-normal normal-case",children:["· ",c]})]}),e.jsx("div",{className:`metric-md leading-none ${a?"text-strong":"text-soft"}`,children:g}),e.jsx("div",{className:"bg-surface h-2 w-full overflow-hidden rounded-full",children:e.jsx("div",{className:"h-full rounded-full transition-[width] duration-500",style:{width:`${i*100}%`,background:"var(--color-highlight)"}})}),m&&e.jsx("div",{className:"caption text-soft",children:m})]})}const $=N({...f,component:M});export{$ as sessionProgressFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as u,j as s}from"./react-qoZPGuNy.js";import{f as x,
|
|
1
|
+
import{r as u,j as s}from"./react-qoZPGuNy.js";import{f as x,ap as h,aq as p,A as f}from"./index-CiYWppnQ.js";import{b,d as i}from"./format-DxkEZcwQ.js";import{F as c,s as j}from"./ui-Bq3RQsdJ.js";h.schema;const d=(e=1)=>`hsl(var(--zf-accent-hue, 242) 85% 72% / ${e})`;function y({symbol:e,entry:o}){const l=e.includes(":")?e:`xyz:${o.symbol}`,r=Math.max(0,Math.min(100,o.shortPct));return s.jsxs("div",{className:"flex min-w-0 items-center gap-3 border-b border-white/[0.06] py-2 last:border-b-0",children:[s.jsx(f,{symbol:l,size:20}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[s.jsx("span",{className:"body-sm text-strong truncate font-semibold",children:o.symbol}),s.jsx("span",{className:"body-md text-strong font-bold tabular-nums",children:b(r,1)})]}),s.jsx("div",{className:"mt-1 h-1.5 w-full overflow-hidden rounded-full bg-white/[0.07]",children:s.jsx("div",{className:"h-full rounded-full",style:{width:`${r}%`,background:d(.85),boxShadow:`0 0 8px ${d(.5)}`}})}),s.jsxs("div",{className:"caption text-soft mt-1 tabular-nums",children:["short ",i(o.shortVolume)," /"," ",i(o.totalVolume)]})]})]})}function v({config:e}){const{data:o,isLoading:l}=p(e.symbols),r=u.useMemo(()=>{const a=e.symbols.map(t=>({symbol:t,entry:o[t]})).filter(t=>!!t.entry);return a.sort((t,n)=>e.sort==="symbol"?t.entry.symbol.localeCompare(n.entry.symbol):e.sort==="volume"?n.entry.totalVolume-t.entry.totalVolume:n.entry.shortPct-t.entry.shortPct),a},[o,e.symbols,e.sort]);if(l)return s.jsx(c,{loading:!0,children:"loading short volume…"});if(r.length===0)return s.jsx(c,{children:"no FINRA short-volume data yet"});const m=r[0].entry.date;return s.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-3",children:[s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{children:[s.jsx("div",{className:"caption text-soft uppercase",children:"short volume"}),s.jsx("div",{className:"body-sm text-normal",children:m?`FINRA · ${m}`:"FINRA"})]}),s.jsxs("div",{className:"caption text-soft text-right",children:["reported volume",s.jsx("br",{}),"not short interest"]})]}),s.jsx("div",{className:j,children:r.map(({symbol:a,entry:t})=>s.jsx(y,{symbol:a,entry:t},a))})]})}const F=x({...h,component:v});export{F as shortVolumeFrame};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as h,j as o}from"./react-qoZPGuNy.js";import{b as u}from"./format-DxkEZcwQ.js";import{f as c,dl as l,aq as f}from"./index-CiYWppnQ.js";import{F as m}from"./ui-Bq3RQsdJ.js";import{B as p}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";l.schema;function d({config:e}){const{data:a,isLoading:n}=f(e.symbols),s=h.useMemo(()=>{const r=e.symbols.map(t=>a[t]).filter(t=>!!t);return r.sort((t,i)=>i.shortPct-t.shortPct),r.map(t=>({label:t.symbol,value:t.shortPct}))},[a,e.symbols]);return n?o.jsx(m,{loading:!0,children:"loading short volume…"}):s.length===0?o.jsx(m,{children:"no FINRA short-volume data yet"}):o.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[o.jsx(p,{data:s,orientation:"horizontal",height:Math.max(s.length*24,96),formatValue:r=>u(r,1)}),o.jsx("div",{className:"caption text-soft text-center",children:"% of reported volume sold short · FINRA, not short interest"})]})}const y=c({...l,component:d});export{y as shortVolumeBarsFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,j as L}from"./react-qoZPGuNy.js";import{a as H,G as M,d as
|
|
1
|
+
import{r as a,j as L}from"./react-qoZPGuNy.js";import{a as H,G as M,d as X}from"./game-ui-BiMS2KJf.js";import{f as j,aK as z}from"./index-CiYWppnQ.js";import"./format-DxkEZcwQ.js";const g=18,P=14,W=0,K={snakeHead:"rgba(255, 255, 255, 0.95)",food:"hsla(347, 100%, 62%, 1)"};function N(s,r,l,u,f){s.fillStyle=u,s.fillRect(r.originX+l.x*g+f,r.originY+l.y*g+f,g-f*2,g-f*2)}function q(s,r,l,u,f,y){r.clearRect(0,0,s.width,s.height),N(r,l,l.food,K.food,3),l.snake.forEach((d,C)=>N(r,l,d,C===0?K.snakeHead:y,2)),X(s,r,u,f,y)}function O(s,r,l,u,f,y){r.clearRect(0,0,s.width,s.height),r.textAlign="center",l==="idle"?(r.fillStyle=M.text,r.font='bold 14px "DM Sans", sans-serif',r.fillText("Arrow keys or swipe to start",s.width/2,s.height/2)):(r.fillStyle=M.gameOver,r.font='bold 20px "DM Sans", sans-serif',r.fillText("GAME OVER",s.width/2,s.height/2-30),r.fillStyle=M.text,r.font='bold 14px "DM Sans", sans-serif',r.fillText(`Score: ${u}`,s.width/2,s.height/2),r.fillStyle=M.textSoft,r.fillText("Press an arrow or tap to play again",s.width/2,s.height/2+28)),r.textAlign="left",X(s,r,u,f,y)}function v(){const s=a.useRef(null),r=a.useRef(null),[l,u]=a.useState("idle"),[f,y]=a.useState(0),[d,C]=a.useState(()=>{if(typeof window<"u"){const e=localStorage.getItem("zframes-snake-high-score");return e?parseInt(e,10):0}return 0}),[,I]=a.useState(!1),h=a.useRef(0),S=a.useRef(d),x=a.useRef(l),A=a.useRef(null),b=a.useRef(H(null));a.useEffect(()=>{S.current=d,d>0&&localStorage.setItem("zframes-snake-high-score",String(d))},[d]),a.useEffect(()=>{x.current=l},[l]);const w=a.useRef({snake:[],dir:{x:1,y:0},pendingDir:{x:1,y:0},food:{x:0,y:0},cols:0,rows:0,originX:0,originY:0,stepCounter:0}),D=a.useCallback(()=>{const e=w.current;if(e.cols<=0||e.rows<=0)return;let t,o=0;do t={x:Math.floor(Math.random()*e.cols),y:Math.floor(Math.random()*e.rows)},o++;while(e.snake.some(i=>i.x===t.x&&i.y===t.y)&&o<400);e.food=t},[]),T=a.useCallback(()=>{const e=w.current,t=Math.floor(e.cols/2),o=Math.floor(e.rows/2);e.snake=[{x:t,y:o},{x:t-1,y:o},{x:t-2,y:o}],e.dir={x:1,y:0},e.pendingDir={x:1,y:0},e.stepCounter=0,D(),h.current=0,y(0)},[D]),p=a.useCallback(()=>{w.current.cols<=0||(T(),u("playing"))},[T]),m=a.useCallback((e,t)=>{const o=w.current;o.dir.x===-e&&o.dir.y===-t||(o.pendingDir={x:e,y:t})},[]);a.useEffect(()=>{const e=o=>{const i=o.target;if(i.tagName==="INPUT"||i.tagName==="TEXTAREA"||i.isContentEditable)return;const c=x.current==="playing";let n=!0;switch(o.code){case"ArrowUp":case"KeyW":c?m(0,-1):p();break;case"ArrowDown":case"KeyS":c?m(0,1):p();break;case"ArrowLeft":case"KeyA":c?m(-1,0):p();break;case"ArrowRight":case"KeyD":c?m(1,0):p();break;case"Space":c||p();break;default:n=!1}n&&o.preventDefault()},t=r.current;if(t)return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[m,p]),a.useLayoutEffect(()=>{const e=s.current;if(!e)return;const t=()=>{const i=e.parentElement;if(i&&i.clientWidth>0&&i.clientHeight>0){e.width=i.clientWidth,e.height=i.clientHeight-W,b.current=H(e);const c=w.current;c.cols=Math.max(5,Math.floor(e.width/g)),c.rows=Math.max(5,Math.floor(e.height/g)),c.originX=Math.floor((e.width-c.cols*g)/2),c.originY=Math.floor((e.height-c.rows*g)/2);const n=e.getContext("2d");n&&x.current!=="playing"&&O(e,n,x.current,h.current,S.current,b.current),I(E=>!E)}};t();const o=new ResizeObserver(t);return o.observe(e.parentElement),()=>o.disconnect()},[]),a.useEffect(()=>{if(l!=="playing")return;const e=s.current,t=e==null?void 0:e.getContext("2d");if(!e||!t)return;let o;const i=()=>{h.current>S.current&&(S.current=h.current,C(h.current)),u("gameover")},c=()=>{const n=w.current;if(n.stepCounter++,n.stepCounter>=P){n.stepCounter=0,n.dir=n.pendingDir;const E=n.snake[0],k=E.x+n.dir.x,R=E.y+n.dir.y;if(k<0||R<0||k>=n.cols||R>=n.rows){i();return}const G=k===n.food.x&&R===n.food.y;if((G?n.snake:n.snake.slice(0,-1)).some(F=>F.x===k&&F.y===R)){i();return}n.snake.unshift({x:k,y:R}),G?(h.current+=1,y(h.current),D()):n.snake.pop()}q(e,t,n,h.current,S.current,b.current),o=requestAnimationFrame(c)};return o=requestAnimationFrame(c),()=>cancelAnimationFrame(o)},[l]),a.useEffect(()=>{if(l==="playing")return;const e=s.current,t=e==null?void 0:e.getContext("2d");!e||!t||O(e,t,l,f,d,b.current)},[l,f,d]);const U=e=>{const t=e.touches[0];t&&(A.current={x:t.clientX,y:t.clientY})},Y=e=>{var n;const t=A.current;A.current=null;const o=e.changedTouches[0];if((n=r.current)==null||n.focus(),x.current!=="playing"){p();return}if(!t||!o)return;const i=o.clientX-t.x,c=o.clientY-t.y;Math.abs(i)<12&&Math.abs(c)<12||(Math.abs(i)>Math.abs(c)?m(i>0?1:-1,0):m(0,c>0?1:-1))};return L.jsx("div",{ref:r,tabIndex:0,className:"relative h-full w-full cursor-pointer select-none overflow-hidden outline-none",onTouchStart:U,onTouchEnd:Y,onClick:()=>{var e;return(e=r.current)==null?void 0:e.focus()},role:"application","aria-label":"Snake game. Use the arrow keys or swipe to steer.",children:L.jsx("canvas",{ref:s,className:"h-full w-full"})})}const Q=j({...z,component:v});export{Q as snakeFrame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./react-qoZPGuNy.js";import{z as n,a as l,Z as p,M as m}from"./cycle-shared-
|
|
1
|
+
import{j as e}from"./react-qoZPGuNy.js";import{z as n,a as l,Z as p,M as m}from"./cycle-shared-XoGVsOjC.js";import{U as u}from"./format-DxkEZcwQ.js";import{t as c,w as f}from"./indicators-Cw7CVPn4.js";import{f as d,bk as a,bl as R}from"./index-CiYWppnQ.js";import{F as s}from"./ui-Bq3RQsdJ.js";import"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";a.schema;function x({config:i}){const{extras:o,isLoading:t}=R();if(t)return e.jsx(s,{loading:!0,children:"loading SOPR…"});if(!o||o.sopr===null)return e.jsx(s,{children:"SOPR unavailable"});const r=n(o.sopr,[{upTo:.99,zone:{label:"Loss / capitulation",color:u}},{upTo:1.01,zone:{label:"Neutral",color:p}}],{label:"Profit-taking",color:l});return e.jsx(m,{caption:"Spent Output Profit Ratio",headline:o.sopr.toFixed(3),headlineColor:r.color,zone:r,sub:o.reserveRisk!==null?`Reserve Risk ${o.reserveRisk.toPrecision(2)}`:void 0,sparkline:c(o.history.sopr,f(i.window)),sparkColor:r.color})}const z=d({...a,component:x});export{z as soprFrame};
|