zframes 0.8.1 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (519) hide show
  1. package/dist/index.js +525 -8
  2. package/package.json +10 -10
  3. package/runtime/assets/bar-chart-CMWrEpFm.js +1 -0
  4. package/runtime/assets/bitcoin-dominance-CDZbSLQ9.js +1 -0
  5. package/runtime/assets/breakeven-N9JfaLs2.js +1 -0
  6. package/runtime/assets/breathing-CSiaHH2d.js +1 -0
  7. package/runtime/assets/btc-block-size-bars-BwGQm2NA.js +1 -0
  8. package/runtime/assets/btc-blocks-CFz6DrIF.js +1 -0
  9. package/runtime/assets/btc-difficulty-bSLdWqGX.js +1 -0
  10. package/runtime/assets/btc-difficulty-chart-D6il3x9b.js +1 -0
  11. package/runtime/assets/btc-fees-CwRPq2S2.js +1 -0
  12. package/runtime/assets/btc-hashrate-_PbwOOj4.js +1 -0
  13. package/runtime/assets/btc-in-gold-JNXTU7sM.js +1 -0
  14. package/runtime/assets/btc-mempool-DivYz6mX.js +1 -0
  15. package/runtime/assets/btc-shared-BC2IjkCh.js +1 -0
  16. package/runtime/assets/bubbles-shared-BgKUWrak.js +1 -0
  17. package/runtime/assets/calculator-F474oCeb.js +1 -0
  18. package/runtime/assets/capital-structure-bars-BHtcggyu.js +1 -0
  19. package/runtime/assets/chain-activity-Db-zx6eG.js +1 -0
  20. package/runtime/assets/chain-activity-bars-CPhHE6lU.js +1 -0
  21. package/runtime/assets/chain-activity-scatter-CU7D3Nx9.js +1 -0
  22. package/runtime/assets/chain-price-movers-Vym50Lcy.js +1 -0
  23. package/runtime/assets/chart-utils-Ba8AFSZR.js +1 -0
  24. package/runtime/assets/checklist-BSCOZLJ-.js +1 -0
  25. package/runtime/assets/clock-C5hPRu82.js +1 -0
  26. package/runtime/assets/coin-momentum-heatmap-DbHsWjP2.js +1 -0
  27. package/runtime/assets/coin-momentum-scatter-5wS64urM.js +1 -0
  28. package/runtime/assets/coin-movers-BPifHhH2.js +1 -0
  29. package/runtime/assets/content-shared-CrVCFeOp.js +1 -0
  30. package/runtime/assets/countdown-9cgAKml3.js +1 -0
  31. package/runtime/assets/custom-data-A7UR4hIt.js +1 -0
  32. package/runtime/assets/cycle-shared-D8LQcBSw.js +1 -0
  33. package/runtime/assets/cycle-signals-CmEenZJE.js +1 -0
  34. package/runtime/assets/cycle-valuation-composite-olTWmWgj.js +1 -0
  35. package/runtime/assets/d3-BDRmnSFu.js +1 -0
  36. package/runtime/assets/daily-analysis-DmNxxfsL.js +1 -0
  37. package/runtime/assets/day-meter-DYYqZgFQ.js +1 -0
  38. package/runtime/assets/defi-revenue-BwnWnaOl.js +1 -0
  39. package/runtime/assets/dex-hot-pools-5sl00AOK.js +1 -0
  40. package/runtime/assets/dex-pool-bubbles-KyBmXb-u.js +1 -0
  41. package/runtime/assets/dex-pool-liquidity-scatter-Cczoa7F0.js +1 -0
  42. package/runtime/assets/dex-pool-treemap-DmoYWG3V.js +1 -0
  43. package/runtime/assets/dex-volume-bubbles-lLAheaQp.js +1 -0
  44. package/runtime/assets/dex-volume-chart-CGCkffrp.js +1 -0
  45. package/runtime/assets/dex-volume-share-area-figZ1USz.js +1 -0
  46. package/runtime/assets/dex-volume-treemap-CXXZ330C.js +1 -0
  47. package/runtime/assets/dice-BRHGwsSK.js +1 -0
  48. package/runtime/assets/dino-game-DkbgStXN.js +1 -0
  49. package/runtime/assets/divider-B_ScYYo5.js +1 -0
  50. package/runtime/assets/dominance-bars-CwFTP6Sh.js +1 -0
  51. package/runtime/assets/dominance-gauge-DL_JjphD.js +1 -0
  52. package/runtime/assets/drawdy-Bqx6Qs9j.js +1 -0
  53. package/runtime/assets/dxy-EDEcDqHS.js +1 -0
  54. package/runtime/assets/dxy-chart-DZ9Q_k9j.js +1 -0
  55. package/runtime/assets/editor-DNWRDAc5.css +1 -0
  56. package/runtime/assets/editor-DchM45os.js +2 -0
  57. package/runtime/assets/etf-flow-bars-BdLldRsx.js +1 -0
  58. package/runtime/assets/etf-flow-calendar-QeCVgCXm.js +1 -0
  59. package/runtime/assets/etf-flows-BokfCz94.js +1 -0
  60. package/runtime/assets/etf-flows-chart-B7vXhlo1.js +1 -0
  61. package/runtime/assets/etf-issuer-bars-ZWR-71DZ.js +1 -0
  62. package/runtime/assets/etf-issuer-treemap-zM5ZN913.js +1 -0
  63. package/runtime/assets/eth-issuance-impact-C0dbmsYs.js +1 -0
  64. package/runtime/assets/eth-staking-DhS4t_di.js +1 -0
  65. package/runtime/assets/eth-supply-BDXv32cs.js +1 -0
  66. package/runtime/assets/fear-greed-Db3YYSrb.js +1 -0
  67. package/runtime/assets/fear-greed-chart-BUaJVaqb.js +1 -0
  68. package/runtime/assets/feed-row-qDN72CXa.js +1 -0
  69. package/runtime/assets/filings-feed-CNEQhc4S.js +1 -0
  70. package/runtime/assets/filings-mix-BycrOiTn.js +1 -0
  71. package/runtime/assets/financial-stress-CtL4d_BQ.js +1 -0
  72. package/runtime/assets/flappy-bird-OADt73RX.js +1 -0
  73. package/runtime/assets/format-DWMrfgke.js +1 -0
  74. package/runtime/assets/fundamentals-DeZ9OQCp.js +1 -0
  75. package/runtime/assets/funding-bars-CZicqsRm.js +1 -0
  76. package/runtime/assets/funding-carry-area-B9WKPWmT.js +1 -0
  77. package/runtime/assets/funding-comparison-TSJiamEF.js +1 -0
  78. package/runtime/assets/funding-crowding-scatter-DfPN294N.js +1 -0
  79. package/runtime/assets/funding-heatmap-BiW7ZLwp.js +1 -0
  80. package/runtime/assets/funding-leaderboard-bars-C6PF11ps.js +1 -0
  81. package/runtime/assets/funding-rate-chart-MWU01Uib.js +1 -0
  82. package/runtime/assets/funding-spread-bars-Br7XsS11.js +1 -0
  83. package/runtime/assets/funding-venue-heatmap-sPFQ1fzo.js +1 -0
  84. package/runtime/assets/fx-board-CXrfSPfH.js +1 -0
  85. package/runtime/assets/fx-cross-heatmap-CHJIg4cN.js +1 -0
  86. package/runtime/assets/fx-movers-bars-DpD5YR28.js +1 -0
  87. package/runtime/assets/fx-trend-chart-DXS0-OTV.js +1 -0
  88. package/runtime/assets/game-ui-DRuW9syP.js +1 -0
  89. package/runtime/assets/gold-silver-ratio-C1AEhktf.js +1 -0
  90. package/runtime/assets/gridstack-BJOLV-iY.js +3 -0
  91. package/runtime/assets/gridstack-Chv4ms9g.css +1 -0
  92. package/runtime/assets/heading-DMvjA_mI.js +1 -0
  93. package/runtime/assets/heatmap-chart-CXN9d41C.js +1 -0
  94. package/runtime/assets/hero-number-BFIUUm5q.js +1 -0
  95. package/runtime/assets/holiday-calendar-s6CQYrht.js +1 -0
  96. package/runtime/assets/hooks-CLLchjg6.js +1 -0
  97. package/runtime/assets/image-Dx6lzZxo.js +1 -0
  98. package/runtime/assets/image-gallery-DlvoKVqh.js +1 -0
  99. package/runtime/assets/index-9oCCAb1t.js +1106 -0
  100. package/runtime/assets/index-tGx-fhSL.css +1 -0
  101. package/runtime/assets/indicators-YksbfYtF.js +1 -0
  102. package/runtime/assets/inflation-pulse-DFjPkATF.js +1 -0
  103. package/runtime/assets/journal-log-DllO3-3Q.js +1 -0
  104. package/runtime/assets/journal-open-49eapsYs.js +1 -0
  105. package/runtime/assets/journal-results-CYsmiD33.js +1 -0
  106. package/runtime/assets/journal-score-BvJ7YMEp.js +1 -0
  107. package/runtime/assets/journal-store-DcqepoPT.js +1 -0
  108. package/runtime/assets/journal-ui-CR7uxhyO.js +1 -0
  109. package/runtime/assets/labor-force-flow-BIAQjzra.js +1 -0
  110. package/runtime/assets/labor-market-D_4TsgBi.js +1 -0
  111. package/runtime/assets/lightning-stats-DqM9rjwr.js +1 -0
  112. package/runtime/assets/link-grid-DUGgdBCS.js +1 -0
  113. package/runtime/assets/liquidity-basis-bars-BBthK657.js +1 -0
  114. package/runtime/assets/live-tick-S-lWTthW.js +1 -0
  115. package/runtime/assets/liveline-BV-xqAVq.js +1 -0
  116. package/runtime/assets/ma-multiplier-0NdXDf5j.js +1 -0
  117. package/runtime/assets/macro-calendar-BtFBeUX9.js +1 -0
  118. package/runtime/assets/market-bubbles-B4CW9pwK.js +1 -0
  119. package/runtime/assets/market-cap-treemap-ydmUhoNY.js +1 -0
  120. package/runtime/assets/market-data-BeuX48f-.js +1 -0
  121. package/runtime/assets/market-hours-B_bTdanw.js +1 -0
  122. package/runtime/assets/market-scatter-FTzDpslF.js +1 -0
  123. package/runtime/assets/marquee-sW0gA0u_.js +28 -0
  124. package/runtime/assets/mayer-multiple-D6T_kVDR.js +1 -0
  125. package/runtime/assets/mempool-fee-curve-DUsgJQRe.js +1 -0
  126. package/runtime/assets/metal-annual-returns-CsZDcJs4.js +1 -0
  127. package/runtime/assets/metal-ath-ChqiN4O-.js +1 -0
  128. package/runtime/assets/metal-compare-chart-CiOT1Su2.js +1 -0
  129. package/runtime/assets/metal-cot-breakdown-B83N5bkN.js +1 -0
  130. package/runtime/assets/metal-cot-gauge-DK-PBRRk.js +1 -0
  131. package/runtime/assets/metal-cot-net-B5BW2stR.js +1 -0
  132. package/runtime/assets/metal-drawdown-DZ7uOHIc.js +1 -0
  133. package/runtime/assets/metal-fix-table-ChbUOgVu.js +1 -0
  134. package/runtime/assets/metal-milestones-BpfRvE7K.js +1 -0
  135. package/runtime/assets/metal-open-interest-BFYrS2KP.js +1 -0
  136. package/runtime/assets/metal-performance-CBD6oX6f.js +1 -0
  137. package/runtime/assets/metal-positioning-vs-price-BPxrZcR9.js +1 -0
  138. package/runtime/assets/metal-price-CIZRcE2_.js +1 -0
  139. package/runtime/assets/metal-price-chart-BX5tGnIt.js +1 -0
  140. package/runtime/assets/metal-ratio-chart-D99QH7nv.js +1 -0
  141. package/runtime/assets/metal-return-distribution-B0AAXxe0.js +1 -0
  142. package/runtime/assets/metal-seasonality-BuQKG4Gi.js +1 -0
  143. package/runtime/assets/metal-value-CTPzpBvh.js +1 -0
  144. package/runtime/assets/metal-volatility-g94-b7hn.js +1 -0
  145. package/runtime/assets/metals-board-DPfkH3Vj.js +1 -0
  146. package/runtime/assets/metals-correlation-BjZHMzKY.js +1 -0
  147. package/runtime/assets/metals-shared-CN6-LtS3.js +1 -0
  148. package/runtime/assets/metric-row-CqsjSvCI.js +1 -0
  149. package/runtime/assets/mini-line-chart-B0Ixv2kC.js +1 -0
  150. package/runtime/assets/mining-pools-BpaMCs0f.js +1 -0
  151. package/runtime/assets/mining-pools-share-CrfTxNKr.js +1 -0
  152. package/runtime/assets/misery-index-BU2requD.js +1 -0
  153. package/runtime/assets/money-BHiVNo0u.js +1 -0
  154. package/runtime/assets/mover-row-DmmszLhN.js +1 -0
  155. package/runtime/assets/movers-bars-Bp8o2qzk.js +1 -0
  156. package/runtime/assets/movers-bubbles-BidtAeZE.js +1 -0
  157. package/runtime/assets/multi-series-line-chart-DyOsZlI2.css +1 -0
  158. package/runtime/assets/multi-series-line-chart-XRttVKf5.js +1 -0
  159. package/runtime/assets/mvrv-CrYk75Yb.js +1 -0
  160. package/runtime/assets/mvrv-zscore-chart-0m51ohsV.js +1 -0
  161. package/runtime/assets/national-debt-BExrnkxj.js +1 -0
  162. package/runtime/assets/news-feed-BHQ8VVq_.js +1 -0
  163. package/runtime/assets/nft-activity-bars-BjGU2vJF.js +1 -0
  164. package/runtime/assets/nft-bubbles-BU8EpLxc.js +1 -0
  165. package/runtime/assets/nft-collections-BED52ibd.js +1 -0
  166. package/runtime/assets/nft-scatter-CGhED2cB.js +1 -0
  167. package/runtime/assets/nft-treemap-PO55tL6W.js +1 -0
  168. package/runtime/assets/note-Dgl6DLv8.js +3 -0
  169. package/runtime/assets/nupl-DglP-qbC.js +1 -0
  170. package/runtime/assets/nupl-cycle-chart-S9yflXUB.js +1 -0
  171. package/runtime/assets/nyfed-fed-funds-band-gauge-CFMKcqEc.js +1 -0
  172. package/runtime/assets/nyfed-reference-rate-bars-C_3KkqpO.js +1 -0
  173. package/runtime/assets/nyfed-sofr-term-averages-bars-Dqaa52Pl.js +1 -0
  174. package/runtime/assets/ofr-stress-category-area-DnEjZbRo.js +1 -0
  175. package/runtime/assets/ohlcv-volume-bars-Bi83GPWW.js +1 -0
  176. package/runtime/assets/oi-treemap-BbPekPJp.js +1 -0
  177. package/runtime/assets/onchain-oscillator-overlay-Ck_7aTc_.js +1 -0
  178. package/runtime/assets/open-interest-B5119LVQ.js +1 -0
  179. package/runtime/assets/options-flow-skew-Cj0v65sh.js +1 -0
  180. package/runtime/assets/options-iv-Bbopuw_Z.js +1 -0
  181. package/runtime/assets/options-max-pain-DkUoBRmq.js +1 -0
  182. package/runtime/assets/options-max-pain-multi-BZq8vuHy.js +1 -0
  183. package/runtime/assets/options-oi-ladder-heatmap-BMFAQkEI.js +1 -0
  184. package/runtime/assets/options-oi-skew-B3eQqfLD.js +1 -0
  185. package/runtime/assets/options-oi-strike-D1ZtVHSn.js +1 -0
  186. package/runtime/assets/options-put-call-lwGRvlsC.js +1 -0
  187. package/runtime/assets/options-vol-smile-zdzBnvMN.js +1 -0
  188. package/runtime/assets/options-vol-spread-CnZEubR3.js +1 -0
  189. package/runtime/assets/order-book-depth-CeFNsjv3.js +1 -0
  190. package/runtime/assets/payrolls-bars-T0e6cyjh.js +1 -0
  191. package/runtime/assets/pi-cycle-CqX0lAu1.js +1 -0
  192. package/runtime/assets/pie-chart-cmDhECET.js +1 -0
  193. package/runtime/assets/pomodoro-BstwVCqa.js +1 -0
  194. package/runtime/assets/portfolio-allocation-DzjS0F9u.js +1 -0
  195. package/runtime/assets/portfolio-common-CcbzaPrv.js +1 -0
  196. package/runtime/assets/portfolio-holdings-1d7jT_Dv.js +1 -0
  197. package/runtime/assets/portfolio-movers-vdVKKjAL.js +1 -0
  198. package/runtime/assets/portfolio-value-C2hCsXwG.js +1 -0
  199. package/runtime/assets/portfolio-value-bars-Bkh18oxT.js +1 -0
  200. package/runtime/assets/prediction-market-bars-WOea9YlB.js +1 -0
  201. package/runtime/assets/prediction-market-scatter-Bg8Hp9YU.js +1 -0
  202. package/runtime/assets/prediction-markets-bubble-DUFbL6ZL.js +1 -0
  203. package/runtime/assets/prediction-markets-vrOoZGTG.js +1 -0
  204. package/runtime/assets/price-chart-NGnXyEwF.js +1 -0
  205. package/runtime/assets/price-compare-D0cu78Tg.js +1 -0
  206. package/runtime/assets/price-liveline-B_6-t2eO.js +1 -0
  207. package/runtime/assets/price-ticker-DpNG6jQF.js +1 -0
  208. package/runtime/assets/protocol-fees-bubbles-CfMsdfGV.js +1 -0
  209. package/runtime/assets/protocol-fees-treemap-b4z8_0dU.js +1 -0
  210. package/runtime/assets/protocol-fees-vs-tvl-scatter-D-REm65e.js +1 -0
  211. package/runtime/assets/protocol-tvl-bubbles-BDAUSzkE.js +1 -0
  212. package/runtime/assets/protocol-tvl-by-category-fw6ADU1F.js +1 -0
  213. package/runtime/assets/protocol-tvl-chart-Q1hGvfby.js +1 -0
  214. package/runtime/assets/protocol-tvl-share-area-DXQzexAL.js +1 -0
  215. package/runtime/assets/protocol-tvl-treemap-DC_qfwIF.js +1 -0
  216. package/runtime/assets/puell-multiple-uc0NZXdh.js +1 -0
  217. package/runtime/assets/put-call-gauge-DtlDFtDZ.js +1 -0
  218. package/runtime/assets/quote-CuEE1U0a.js +1 -0
  219. package/runtime/assets/radial-gauge-DUhIBGcM.js +1 -0
  220. package/runtime/assets/rates-board-Byz3erIf.js +1 -0
  221. package/runtime/assets/react-DdM8gsnR.js +9 -0
  222. package/runtime/assets/real-wages-BU2XSTAC.js +1 -0
  223. package/runtime/assets/realized-price-D91T6q7P.js +1 -0
  224. package/runtime/assets/reserve-risk-CuRuMPUz.js +1 -0
  225. package/runtime/assets/returns-projector-DvVTUgZa.js +1 -0
  226. package/runtime/assets/risk-reward-Brde1Qql.js +1 -0
  227. package/runtime/assets/rolldown-runtime-Bh1tDfsg.js +1 -0
  228. package/runtime/assets/rsi-momentum-DFARJhwN.js +1 -0
  229. package/runtime/assets/rules-card-CDgHHXtE.js +1 -0
  230. package/runtime/assets/scatter-chart-tjlc1NWO.js +1 -0
  231. package/runtime/assets/scene-DgXljRUS.js +1 -0
  232. package/runtime/assets/sector-bars-D0A6Sj3C.js +1 -0
  233. package/runtime/assets/sector-bubbles-C5lQoTi9.js +1 -0
  234. package/runtime/assets/sector-performance-CVVJ-VGu.js +1 -0
  235. package/runtime/assets/sector-treemap-lyftrGDF.js +1 -0
  236. package/runtime/assets/sentiment-gauge-CdnbFwyn.js +1 -0
  237. package/runtime/assets/session-progress-BfuN5Ilt.js +1 -0
  238. package/runtime/assets/short-volume-B2TiqLCD.js +1 -0
  239. package/runtime/assets/short-volume-bars-Cm-TnzY-.js +1 -0
  240. package/runtime/assets/snake-D0Secq9I.js +1 -0
  241. package/runtime/assets/sopr-j5kMKG03.js +1 -0
  242. package/runtime/assets/spotify-embed-BJIW3cBK.js +1 -0
  243. package/runtime/assets/stablecoin-chains-jLxaRE9T.js +1 -0
  244. package/runtime/assets/stablecoin-supply-6Q2kIHWN.js +1 -0
  245. package/runtime/assets/stacked-area-chart-B3ayMBfx.js +1 -0
  246. package/runtime/assets/stopwatch-DKtBGcQd.js +1 -0
  247. package/runtime/assets/timeframe-DUDLPk23.js +1 -0
  248. package/runtime/assets/tokenized-gold-B6KMvUVf.js +1 -0
  249. package/runtime/assets/top-movers-Bzz7lloh.js +1 -0
  250. package/runtime/assets/treasury-auction-demand-scatter-CUoIYkrP.js +1 -0
  251. package/runtime/assets/treasury-auction-size-bars-DXMJ0a9C.js +1 -0
  252. package/runtime/assets/treasury-auctions-ChsX0OUJ.js +1 -0
  253. package/runtime/assets/treasury-avg-rate-bars-DQ_HgQ0U.js +1 -0
  254. package/runtime/assets/treasury-debt-composition-area-C3sBaNNX.js +1 -0
  255. package/runtime/assets/treemap-leaf-f-vE1hUM.js +1 -0
  256. package/runtime/assets/trending-bars-DtgWzD_x.js +1 -0
  257. package/runtime/assets/trending-bubbles-DRJqfQqK.js +1 -0
  258. package/runtime/assets/trending-coins-n7mmU4mL.js +1 -0
  259. package/runtime/assets/tvl-bars-5IQ6zz2M.js +1 -0
  260. package/runtime/assets/tvl-bubbles-DU2M5Zl1.js +1 -0
  261. package/runtime/assets/tvl-treemap-qsmpeeAB.js +1 -0
  262. package/runtime/assets/ui-CYz5SGgR.js +1 -0
  263. package/runtime/assets/us-gold-reserve-8L2oYWV_.js +1 -0
  264. package/runtime/assets/us-gold-vaults-TuTFtr2T.js +1 -0
  265. package/runtime/assets/use-countdown-DSLbwkPl.js +1 -0
  266. package/runtime/assets/utils-BsB3-B7h.js +1 -0
  267. package/runtime/assets/video-CYH3El1X.js +1 -0
  268. package/runtime/assets/volume-movers-scatter-B8dYI1EZ.js +1 -0
  269. package/runtime/assets/volume-profile-W44vUguI.js +1 -0
  270. package/runtime/assets/volume-share-donut-CLbp38ek.js +1 -0
  271. package/runtime/assets/yield-composition-scatter-BinG9C4D.js +1 -0
  272. package/runtime/assets/yield-curve-DHeqDdBV.js +1 -0
  273. package/runtime/assets/yield-momentum-bars-D4ToH0Fp.js +1 -0
  274. package/runtime/assets/yield-risk-pie-C73G7WqW.js +1 -0
  275. package/runtime/assets/yield-scanner-uR4S_OrU.js +1 -0
  276. package/runtime/assets/yield-scatter-CnZQ7naG.js +1 -0
  277. package/runtime/index.html +7 -3
  278. package/runtime/assets/bar-chart-DCMbxUJx.js +0 -1
  279. package/runtime/assets/bitcoin-dominance-BqoH90r5.js +0 -1
  280. package/runtime/assets/breakeven-1Kr-v9pE.js +0 -1
  281. package/runtime/assets/breathing-NOTeAM6N.js +0 -1
  282. package/runtime/assets/btc-block-size-bars-BgwX4eu_.js +0 -1
  283. package/runtime/assets/btc-blocks-D6TscPNp.js +0 -1
  284. package/runtime/assets/btc-difficulty-BhSve3vk.js +0 -1
  285. package/runtime/assets/btc-difficulty-chart-Yqxof0b6.js +0 -1
  286. package/runtime/assets/btc-fees-C-Za_OxK.js +0 -1
  287. package/runtime/assets/btc-hashrate-5xnTYpft.js +0 -1
  288. package/runtime/assets/btc-mempool-0WFrtuQR.js +0 -1
  289. package/runtime/assets/btc-shared-yOWoU9Im.js +0 -1
  290. package/runtime/assets/bubbles-shared-DlmjtiIA.js +0 -1
  291. package/runtime/assets/calculator-CcLe2vqJ.js +0 -1
  292. package/runtime/assets/capital-structure-bars-SEyFIReK.js +0 -1
  293. package/runtime/assets/chain-activity-CCO3t0hA.js +0 -1
  294. package/runtime/assets/chain-activity-bars-DHYCDKWT.js +0 -1
  295. package/runtime/assets/chain-activity-scatter-DeusbLku.js +0 -1
  296. package/runtime/assets/chain-price-movers-SeTwhqsM.js +0 -1
  297. package/runtime/assets/chart-utils-DGogNvJT.js +0 -1
  298. package/runtime/assets/checklist-orMUS_qt.js +0 -1
  299. package/runtime/assets/clock-9PqJvMgi.js +0 -1
  300. package/runtime/assets/coin-momentum-heatmap-DvfWWzSD.js +0 -1
  301. package/runtime/assets/coin-momentum-scatter-Cf4Y29lp.js +0 -1
  302. package/runtime/assets/coin-movers-D3cmI-tT.js +0 -1
  303. package/runtime/assets/content-shared-BZ1XzrJx.js +0 -1
  304. package/runtime/assets/countdown-tMz3FsXT.js +0 -1
  305. package/runtime/assets/custom-data-DPPNQ2QQ.js +0 -1
  306. package/runtime/assets/cycle-shared-XoGVsOjC.js +0 -1
  307. package/runtime/assets/cycle-signals-DJYUIjas.js +0 -1
  308. package/runtime/assets/cycle-valuation-composite-DO_Pda0n.js +0 -1
  309. package/runtime/assets/d3-ibrLIlQc.js +0 -1
  310. package/runtime/assets/daily-analysis-BVEvATPa.js +0 -1
  311. package/runtime/assets/day-meter-DmbSq9YK.js +0 -1
  312. package/runtime/assets/defi-revenue-DPazGCl4.js +0 -1
  313. package/runtime/assets/dex-hot-pools-BeuuV2Cj.js +0 -1
  314. package/runtime/assets/dex-pool-bubbles-BLUbqZ4v.js +0 -1
  315. package/runtime/assets/dex-pool-liquidity-scatter-Civ63yej.js +0 -1
  316. package/runtime/assets/dex-pool-treemap-ecoWHB8O.js +0 -1
  317. package/runtime/assets/dex-volume-bubbles-CX9SfXmZ.js +0 -1
  318. package/runtime/assets/dex-volume-chart-Bgdepem0.js +0 -1
  319. package/runtime/assets/dex-volume-share-area-uDfe8wQZ.js +0 -1
  320. package/runtime/assets/dex-volume-treemap-BlrxYmk-.js +0 -1
  321. package/runtime/assets/dice-BOUHMLs6.js +0 -1
  322. package/runtime/assets/dino-game-BBIAIplk.js +0 -1
  323. package/runtime/assets/divider-B-nMbdhH.js +0 -1
  324. package/runtime/assets/dominance-bars-BjKMZR8V.js +0 -1
  325. package/runtime/assets/dominance-gauge-DVITO-Eg.js +0 -1
  326. package/runtime/assets/drawdy-gpdcuxey.js +0 -1
  327. package/runtime/assets/dxy-DfHaYZsj.js +0 -1
  328. package/runtime/assets/dxy-chart-CidtFThk.js +0 -1
  329. package/runtime/assets/editor-C9dj6xX0.css +0 -1
  330. package/runtime/assets/editor-yifYG0tI.js +0 -68
  331. package/runtime/assets/etf-flow-bars-NYq3d_-U.js +0 -1
  332. package/runtime/assets/etf-flow-calendar-BI18BrWM.js +0 -1
  333. package/runtime/assets/etf-flows-chart-BzKKqHh4.js +0 -1
  334. package/runtime/assets/etf-flows-cufmZrd_.js +0 -1
  335. package/runtime/assets/etf-issuer-bars-Dl9H_CZC.js +0 -1
  336. package/runtime/assets/etf-issuer-treemap-IhYjIP-y.js +0 -1
  337. package/runtime/assets/eth-issuance-impact-BLHuDvGQ.js +0 -1
  338. package/runtime/assets/eth-staking-CzidwFMK.js +0 -1
  339. package/runtime/assets/eth-supply-C7KDK-97.js +0 -1
  340. package/runtime/assets/fear-greed-DTLHRhif.js +0 -1
  341. package/runtime/assets/fear-greed-chart-N1vM_QJ7.js +0 -1
  342. package/runtime/assets/feed-row-mVg1d5Zj.js +0 -1
  343. package/runtime/assets/filings-feed-Dpz6nWMU.js +0 -1
  344. package/runtime/assets/filings-mix-7ykY8NsE.js +0 -1
  345. package/runtime/assets/financial-stress-BcnDhPO4.js +0 -1
  346. package/runtime/assets/flappy-bird-Vp7j7ceN.js +0 -1
  347. package/runtime/assets/format-DxkEZcwQ.js +0 -1
  348. package/runtime/assets/fundamentals-BIesVoJt.js +0 -1
  349. package/runtime/assets/funding-bars-BNVCUVqC.js +0 -1
  350. package/runtime/assets/funding-carry-area-BqCrQOi5.js +0 -1
  351. package/runtime/assets/funding-comparison-BynnnDDf.js +0 -1
  352. package/runtime/assets/funding-crowding-scatter-BTzQUtFn.js +0 -1
  353. package/runtime/assets/funding-heatmap-DUOcDAeX.js +0 -1
  354. package/runtime/assets/funding-leaderboard-bars-CpYvO_Cs.js +0 -1
  355. package/runtime/assets/funding-rate-chart-CANXPS3a.js +0 -1
  356. package/runtime/assets/funding-spread-bars-BgA-vSh-.js +0 -1
  357. package/runtime/assets/funding-venue-heatmap-jKiQGgLb.js +0 -1
  358. package/runtime/assets/fx-board-CTnlbWGJ.js +0 -1
  359. package/runtime/assets/fx-cross-heatmap-CDORG9Cx.js +0 -1
  360. package/runtime/assets/fx-movers-bars-WKvSm3Ry.js +0 -1
  361. package/runtime/assets/fx-trend-chart-uITTwyv8.js +0 -1
  362. package/runtime/assets/game-ui-BiMS2KJf.js +0 -1
  363. package/runtime/assets/gridstack-BxxvPIFU.js +0 -9
  364. package/runtime/assets/gridstack-FIb_WQSt.css +0 -1
  365. package/runtime/assets/heading-Cidi7R-_.js +0 -1
  366. package/runtime/assets/hero-number-p8eaQmkA.js +0 -1
  367. package/runtime/assets/holiday-calendar-ErapPWhY.js +0 -1
  368. package/runtime/assets/image-BQQ0gSaW.js +0 -1
  369. package/runtime/assets/image-gallery-CNa-8BAA.js +0 -1
  370. package/runtime/assets/index-BHlJHScr.js +0 -1108
  371. package/runtime/assets/index-BXLwJuoo.css +0 -1
  372. package/runtime/assets/index-BpPIfN5S.js +0 -1
  373. package/runtime/assets/index-Bw1aFtyx.js +0 -1
  374. package/runtime/assets/index-DuNO-RcB.js +0 -1
  375. package/runtime/assets/index-yv-SCb9g.css +0 -1
  376. package/runtime/assets/indicators-Cw7CVPn4.js +0 -1
  377. package/runtime/assets/inflation-pulse-B54HwpAO.js +0 -1
  378. package/runtime/assets/journal-log-0CruSC_H.js +0 -1
  379. package/runtime/assets/journal-open-DIwxMMCH.js +0 -1
  380. package/runtime/assets/journal-results-BM_i_JJ3.js +0 -1
  381. package/runtime/assets/journal-score-He6DdYtU.js +0 -1
  382. package/runtime/assets/journal-store-DVDSxNMj.js +0 -1
  383. package/runtime/assets/journal-ui-CP9YblNJ.js +0 -1
  384. package/runtime/assets/labor-force-flow-8HLQsbKV.js +0 -1
  385. package/runtime/assets/labor-market-If23zBQK.js +0 -1
  386. package/runtime/assets/lightning-stats-DhrfBtX6.js +0 -1
  387. package/runtime/assets/link-grid-CsnxpE4z.js +0 -1
  388. package/runtime/assets/liquidity-basis-bars-CaU5YtBA.js +0 -1
  389. package/runtime/assets/live-tick-9Q3ubPF9.js +0 -1
  390. package/runtime/assets/liveline-bcaEuskN.js +0 -1
  391. package/runtime/assets/ma-multiplier-BBN7qsdV.js +0 -1
  392. package/runtime/assets/macro-calendar-cKBRneX9.js +0 -1
  393. package/runtime/assets/market-bubbles-BKNkvOTg.js +0 -1
  394. package/runtime/assets/market-cap-treemap-BSBU8mjq.js +0 -1
  395. package/runtime/assets/market-data-CvmpLFSo.js +0 -1
  396. package/runtime/assets/market-hours-B10lWec_.js +0 -1
  397. package/runtime/assets/market-scatter-CVUa4ZQ_.js +0 -1
  398. package/runtime/assets/marquee-BS_quB4S.js +0 -28
  399. package/runtime/assets/mayer-multiple-iiKonfXX.js +0 -1
  400. package/runtime/assets/mempool-fee-curve-CQ4nzab8.js +0 -1
  401. package/runtime/assets/metric-row-BVVhjsjK.js +0 -1
  402. package/runtime/assets/mini-line-chart-DyG55cVW.js +0 -1
  403. package/runtime/assets/mining-pools-DROnvkZS.js +0 -1
  404. package/runtime/assets/mining-pools-share-BhHh0hUJ.js +0 -1
  405. package/runtime/assets/misery-index-DpG7yLgX.js +0 -1
  406. package/runtime/assets/mover-row-Bz-YpFL3.js +0 -1
  407. package/runtime/assets/movers-bars-CEFjsHnv.js +0 -1
  408. package/runtime/assets/movers-bubbles-C-SriZvR.js +0 -1
  409. package/runtime/assets/mvrv-Cg0t6U5X.js +0 -1
  410. package/runtime/assets/mvrv-zscore-chart-qyOkheJb.js +0 -1
  411. package/runtime/assets/national-debt-BRX09_U_.js +0 -1
  412. package/runtime/assets/news-feed-DQHSPzk5.js +0 -1
  413. package/runtime/assets/nft-activity-bars-BmNs4RMC.js +0 -1
  414. package/runtime/assets/nft-bubbles-0f9wAld0.js +0 -1
  415. package/runtime/assets/nft-collections-Czp0t7ZU.js +0 -1
  416. package/runtime/assets/nft-scatter-BHULn6_-.js +0 -1
  417. package/runtime/assets/nft-treemap-D2Kj3AuL.js +0 -1
  418. package/runtime/assets/note-BdVtsqXo.js +0 -3
  419. package/runtime/assets/nupl-BrK2rcgi.js +0 -1
  420. package/runtime/assets/nupl-cycle-chart-BlXOLj4A.js +0 -1
  421. package/runtime/assets/nyfed-fed-funds-band-gauge-DnzVhh9I.js +0 -1
  422. package/runtime/assets/nyfed-reference-rate-bars-CxLwUFUY.js +0 -1
  423. package/runtime/assets/nyfed-sofr-term-averages-bars-DxzLVO9o.js +0 -1
  424. package/runtime/assets/ofr-stress-category-area-TXpXiMP-.js +0 -1
  425. package/runtime/assets/ohlcv-volume-bars-BQZiJJ3u.js +0 -1
  426. package/runtime/assets/oi-treemap-BEusAMZU.js +0 -1
  427. package/runtime/assets/onchain-oscillator-overlay-BPa_jULR.js +0 -1
  428. package/runtime/assets/open-interest-BqO1-ZYo.js +0 -1
  429. package/runtime/assets/options-flow-skew-Cy0SUhs0.js +0 -1
  430. package/runtime/assets/options-iv-RsCKjmmC.js +0 -1
  431. package/runtime/assets/options-max-pain-B2pA7KJP.js +0 -1
  432. package/runtime/assets/options-max-pain-multi-BLfX8Qe6.js +0 -1
  433. package/runtime/assets/options-oi-ladder-heatmap-Do8eYI3h.js +0 -1
  434. package/runtime/assets/options-oi-skew-D869gcp7.js +0 -1
  435. package/runtime/assets/options-oi-strike-CKWXk22Q.js +0 -1
  436. package/runtime/assets/options-put-call-DcSwyIIX.js +0 -1
  437. package/runtime/assets/options-vol-smile-CqP0-CSw.js +0 -1
  438. package/runtime/assets/options-vol-spread-DMXdphxM.js +0 -1
  439. package/runtime/assets/payrolls-bars-15U_DxmS.js +0 -1
  440. package/runtime/assets/pi-cycle-tqHUEYSe.js +0 -1
  441. package/runtime/assets/pie-chart-BIxKuHm-.js +0 -1
  442. package/runtime/assets/pomodoro-DSswMPuv.js +0 -1
  443. package/runtime/assets/portfolio-allocation-DHN6r6fl.js +0 -1
  444. package/runtime/assets/portfolio-common-e3o9U7qd.js +0 -1
  445. package/runtime/assets/portfolio-holdings-Bf6vOm0e.js +0 -1
  446. package/runtime/assets/portfolio-movers-DmaGwFtS.js +0 -1
  447. package/runtime/assets/portfolio-value-DLQHtwCl.js +0 -1
  448. package/runtime/assets/portfolio-value-bars-B8XP7r22.js +0 -1
  449. package/runtime/assets/prediction-market-bars-Du1RxZc_.js +0 -1
  450. package/runtime/assets/prediction-market-scatter-bdlr6r_V.js +0 -1
  451. package/runtime/assets/prediction-markets-DNDg43g9.js +0 -1
  452. package/runtime/assets/prediction-markets-bubble-ccP01yj3.js +0 -1
  453. package/runtime/assets/price-chart-Cw8OXmKH.js +0 -1
  454. package/runtime/assets/price-compare-txGWDCHD.js +0 -1
  455. package/runtime/assets/price-liveline-F7uJKuTS.js +0 -1
  456. package/runtime/assets/price-ticker-DQFyiHmW.js +0 -1
  457. package/runtime/assets/protocol-fees-bubbles-oV66t8AJ.js +0 -1
  458. package/runtime/assets/protocol-fees-treemap-CsZhFjxB.js +0 -1
  459. package/runtime/assets/protocol-fees-vs-tvl-scatter-CtLKoDeh.js +0 -1
  460. package/runtime/assets/protocol-tvl-bubbles-CuULi2KY.js +0 -1
  461. package/runtime/assets/protocol-tvl-by-category-BV2yIdZ_.js +0 -1
  462. package/runtime/assets/protocol-tvl-chart-BRPlR_kj.js +0 -1
  463. package/runtime/assets/protocol-tvl-share-area-BeWSgocA.js +0 -1
  464. package/runtime/assets/protocol-tvl-treemap-BYECslhG.js +0 -1
  465. package/runtime/assets/puell-multiple-akyTNZyp.js +0 -1
  466. package/runtime/assets/put-call-gauge-CwrHYfdq.js +0 -1
  467. package/runtime/assets/quote-6JmbHxfg.js +0 -1
  468. package/runtime/assets/radial-gauge-0BzRQ6fO.js +0 -1
  469. package/runtime/assets/rates-board-CiY6mWMz.js +0 -1
  470. package/runtime/assets/react-qoZPGuNy.js +0 -49
  471. package/runtime/assets/real-wages-BTBOxvjP.js +0 -1
  472. package/runtime/assets/realized-price-CbjZ3Sqj.js +0 -1
  473. package/runtime/assets/reserve-risk-UlEv8oS1.js +0 -1
  474. package/runtime/assets/returns-projector-qPZeZ-n9.js +0 -1
  475. package/runtime/assets/risk-reward-DWcu9j4_.js +0 -1
  476. package/runtime/assets/rsi-momentum-BuasFcVH.js +0 -1
  477. package/runtime/assets/rules-card-DkjHPbht.js +0 -1
  478. package/runtime/assets/scatter-chart-B78EA7lD.js +0 -1
  479. package/runtime/assets/scene-uwfOGek1.js +0 -1
  480. package/runtime/assets/sector-bars-JKmedArM.js +0 -1
  481. package/runtime/assets/sector-bubbles-DLXckuua.js +0 -1
  482. package/runtime/assets/sector-performance-C_2-xbIq.js +0 -1
  483. package/runtime/assets/sector-treemap-DquBCyc3.js +0 -1
  484. package/runtime/assets/sentiment-gauge-CuNvuk1q.js +0 -1
  485. package/runtime/assets/session-progress-BDhJHQEn.js +0 -1
  486. package/runtime/assets/short-volume-Deb7fra_.js +0 -1
  487. package/runtime/assets/short-volume-bars-DRjpg7RS.js +0 -1
  488. package/runtime/assets/snake-B9EEDroM.js +0 -1
  489. package/runtime/assets/sopr-DM_gpDem.js +0 -1
  490. package/runtime/assets/spotify-embed-Dxt1RnUX.js +0 -1
  491. package/runtime/assets/stablecoin-chains-LzYMilQE.js +0 -1
  492. package/runtime/assets/stablecoin-supply-69kqOBoU.js +0 -1
  493. package/runtime/assets/stopwatch-ClPrrveo.js +0 -1
  494. package/runtime/assets/top-movers-BRiiYOPQ.js +0 -1
  495. package/runtime/assets/treasury-auction-demand-scatter-yYNPz1VC.js +0 -1
  496. package/runtime/assets/treasury-auction-size-bars-CGD6MeAz.js +0 -1
  497. package/runtime/assets/treasury-auctions-Z_4MtXmL.js +0 -1
  498. package/runtime/assets/treasury-avg-rate-bars-FXGz1a7e.js +0 -1
  499. package/runtime/assets/treasury-debt-composition-area-5yRh0K6a.js +0 -1
  500. package/runtime/assets/treemap-leaf-QG-L-SIG.js +0 -1
  501. package/runtime/assets/trending-bars-z_cjmEXN.js +0 -1
  502. package/runtime/assets/trending-bubbles-nwoxKQEW.js +0 -1
  503. package/runtime/assets/trending-coins-9vrbEbBm.js +0 -1
  504. package/runtime/assets/tvl-bars-BkJcttcu.js +0 -1
  505. package/runtime/assets/tvl-bubbles-D4tahOC6.js +0 -1
  506. package/runtime/assets/tvl-treemap-B7kWI7o0.js +0 -1
  507. package/runtime/assets/ui-Bq3RQsdJ.js +0 -1
  508. package/runtime/assets/use-countdown-BmcF-qdL.js +0 -1
  509. package/runtime/assets/utils-DxneYyA_.js +0 -1
  510. package/runtime/assets/video-Dsc13Zja.js +0 -1
  511. package/runtime/assets/volume-movers-scatter-BA8Wmoil.js +0 -1
  512. package/runtime/assets/volume-profile-DcSNvDqP.js +0 -1
  513. package/runtime/assets/volume-share-donut-3MenMO-V.js +0 -1
  514. package/runtime/assets/yield-composition-scatter-rfxC16n2.js +0 -1
  515. package/runtime/assets/yield-curve-DXsfXy4P.js +0 -1
  516. package/runtime/assets/yield-momentum-bars-B9nKuItO.js +0 -1
  517. package/runtime/assets/yield-risk-pie-DUxkXYIQ.js +0 -1
  518. package/runtime/assets/yield-scanner-sCBXpQTV.js +0 -1
  519. package/runtime/assets/yield-scatter-BZHOhFcm.js +0 -1
@@ -1,1108 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/scene-uwfOGek1.js","assets/react-qoZPGuNy.js","assets/portfolio-value-DLQHtwCl.js","assets/liveline-bcaEuskN.js","assets/format-DxkEZcwQ.js","assets/live-tick-9Q3ubPF9.js","assets/portfolio-common-e3o9U7qd.js","assets/ui-Bq3RQsdJ.js","assets/portfolio-allocation-DHN6r6fl.js","assets/chart-utils-DGogNvJT.js","assets/d3-ibrLIlQc.js","assets/pie-chart-BIxKuHm-.js","assets/utils-DxneYyA_.js","assets/portfolio-holdings-Bf6vOm0e.js","assets/bitcoin-dominance-BqoH90r5.js","assets/clock-9PqJvMgi.js","assets/use-countdown-BmcF-qdL.js","assets/custom-data-DPPNQ2QQ.js","assets/metric-row-BVVhjsjK.js","assets/mini-line-chart-DyG55cVW.js","assets/bar-chart-DCMbxUJx.js","assets/daily-analysis-BVEvATPa.js","assets/journal-log-0CruSC_H.js","assets/content-shared-BZ1XzrJx.js","assets/journal-store-DVDSxNMj.js","assets/journal-open-DIwxMMCH.js","assets/journal-ui-CP9YblNJ.js","assets/journal-results-BM_i_JJ3.js","assets/journal-score-He6DdYtU.js","assets/dino-game-BBIAIplk.js","assets/game-ui-BiMS2KJf.js","assets/fear-greed-DTLHRhif.js","assets/filings-feed-Dpz6nWMU.js","assets/feed-row-mVg1d5Zj.js","assets/fundamentals-BIesVoJt.js","assets/financial-stress-BcnDhPO4.js","assets/labor-market-If23zBQK.js","assets/national-debt-BRX09_U_.js","assets/treasury-auctions-Z_4MtXmL.js","assets/funding-heatmap-DUOcDAeX.js","assets/index-Bw1aFtyx.js","assets/funding-rate-chart-CANXPS3a.js","assets/index-BpPIfN5S.js","assets/index-BXLwJuoo.css","assets/heading-Cidi7R-_.js","assets/hero-number-p8eaQmkA.js","assets/image-BQQ0gSaW.js","assets/image-gallery-CNa-8BAA.js","assets/inflation-pulse-B54HwpAO.js","assets/market-hours-B10lWec_.js","assets/market-data-CvmpLFSo.js","assets/news-feed-DQHSPzk5.js","assets/note-BdVtsqXo.js","assets/price-chart-Cw8OXmKH.js","assets/price-compare-txGWDCHD.js","assets/price-liveline-F7uJKuTS.js","assets/price-ticker-DQFyiHmW.js","assets/mover-row-Bz-YpFL3.js","assets/rates-board-CiY6mWMz.js","assets/fx-board-CTnlbWGJ.js","assets/short-volume-Deb7fra_.js","assets/top-movers-BRiiYOPQ.js","assets/tvl-treemap-B7kWI7o0.js","assets/treemap-leaf-QG-L-SIG.js","assets/yield-curve-DXsfXy4P.js","assets/dex-volume-treemap-BlrxYmk-.js","assets/dex-volume-chart-Bgdepem0.js","assets/protocol-tvl-treemap-BYECslhG.js","assets/protocol-tvl-chart-BRPlR_kj.js","assets/protocol-fees-treemap-CsZhFjxB.js","assets/market-cap-treemap-BSBU8mjq.js","assets/open-interest-BqO1-ZYo.js","assets/snake-B9EEDroM.js","assets/flappy-bird-Vp7j7ceN.js","assets/video-Dsc13Zja.js","assets/drawdy-gpdcuxey.js","assets/countdown-tMz3FsXT.js","assets/link-grid-CsnxpE4z.js","assets/calculator-CcLe2vqJ.js","assets/quote-6JmbHxfg.js","assets/divider-B-nMbdhH.js","assets/marquee-BS_quB4S.js","assets/dice-BOUHMLs6.js","assets/risk-reward-DWcu9j4_.js","assets/stopwatch-ClPrrveo.js","assets/session-progress-BDhJHQEn.js","assets/btc-fees-C-Za_OxK.js","assets/btc-shared-yOWoU9Im.js","assets/btc-mempool-0WFrtuQR.js","assets/btc-blocks-D6TscPNp.js","assets/btc-hashrate-5xnTYpft.js","assets/btc-difficulty-BhSve3vk.js","assets/mining-pools-DROnvkZS.js","assets/lightning-stats-DhrfBtX6.js","assets/options-put-call-DcSwyIIX.js","assets/options-iv-RsCKjmmC.js","assets/options-oi-strike-CKWXk22Q.js","assets/coin-movers-D3cmI-tT.js","assets/mvrv-Cg0t6U5X.js","assets/cycle-shared-XoGVsOjC.js","assets/indicators-Cw7CVPn4.js","assets/nupl-BrK2rcgi.js","assets/sopr-DM_gpDem.js","assets/puell-multiple-akyTNZyp.js","assets/mayer-multiple-iiKonfXX.js","assets/pi-cycle-tqHUEYSe.js","assets/ma-multiplier-BBN7qsdV.js","assets/rsi-momentum-BuasFcVH.js","assets/volume-profile-DcSNvDqP.js","assets/dxy-DfHaYZsj.js","assets/cycle-signals-DJYUIjas.js","assets/stablecoin-supply-69kqOBoU.js","assets/yield-scanner-sCBXpQTV.js","assets/defi-revenue-DPazGCl4.js","assets/funding-comparison-BynnnDDf.js","assets/eth-supply-C7KDK-97.js","assets/eth-staking-CzidwFMK.js","assets/prediction-markets-DNDg43g9.js","assets/etf-flows-cufmZrd_.js","assets/trending-coins-9vrbEbBm.js","assets/sector-performance-C_2-xbIq.js","assets/macro-calendar-cKBRneX9.js","assets/stablecoin-chains-LzYMilQE.js","assets/sector-treemap-DquBCyc3.js","assets/etf-flows-chart-BzKKqHh4.js","assets/realized-price-CbjZ3Sqj.js","assets/reserve-risk-UlEv8oS1.js","assets/holiday-calendar-ErapPWhY.js","assets/day-meter-DmbSq9YK.js","assets/returns-projector-qPZeZ-n9.js","assets/breakeven-1Kr-v9pE.js","assets/checklist-orMUS_qt.js","assets/pomodoro-DSswMPuv.js","assets/rules-card-DkjHPbht.js","assets/breathing-NOTeAM6N.js","assets/spotify-embed-Dxt1RnUX.js","assets/nft-collections-Czp0t7ZU.js","assets/dex-hot-pools-BeuuV2Cj.js","assets/chain-activity-CCO3t0hA.js","assets/nft-treemap-D2Kj3AuL.js","assets/dex-pool-treemap-ecoWHB8O.js","assets/sector-bars-JKmedArM.js","assets/funding-bars-BNVCUVqC.js","assets/etf-flow-bars-NYq3d_-U.js","assets/chain-activity-bars-DHYCDKWT.js","assets/market-scatter-CVUa4ZQ_.js","assets/scatter-chart-B78EA7lD.js","assets/market-bubbles-BKNkvOTg.js","assets/bubbles-shared-DlmjtiIA.js","assets/tvl-bubbles-D4tahOC6.js","assets/protocol-tvl-bubbles-CuULi2KY.js","assets/dex-volume-bubbles-CX9SfXmZ.js","assets/protocol-fees-bubbles-oV66t8AJ.js","assets/sector-bubbles-DLXckuua.js","assets/nft-bubbles-0f9wAld0.js","assets/dex-pool-bubbles-BLUbqZ4v.js","assets/movers-bubbles-C-SriZvR.js","assets/sentiment-gauge-CuNvuk1q.js","assets/radial-gauge-0BzRQ6fO.js","assets/movers-bars-CEFjsHnv.js","assets/tvl-bars-BkJcttcu.js","assets/yield-scatter-BZHOhFcm.js","assets/nft-scatter-BHULn6_-.js","assets/dominance-gauge-DVITO-Eg.js","assets/put-call-gauge-CwrHYfdq.js","assets/oi-treemap-BEusAMZU.js","assets/ohlcv-volume-bars-BQZiJJ3u.js","assets/funding-spread-bars-BgA-vSh-.js","assets/funding-venue-heatmap-jKiQGgLb.js","assets/funding-carry-area-BqCrQOi5.js","assets/index-DuNO-RcB.js","assets/volume-share-donut-3MenMO-V.js","assets/volume-movers-scatter-BA8Wmoil.js","assets/funding-leaderboard-bars-CpYvO_Cs.js","assets/funding-crowding-scatter-BTzQUtFn.js","assets/liquidity-basis-bars-CaU5YtBA.js","assets/coin-momentum-heatmap-DvfWWzSD.js","assets/coin-momentum-scatter-Cf4Y29lp.js","assets/trending-bars-z_cjmEXN.js","assets/nft-activity-bars-BmNs4RMC.js","assets/dominance-bars-BjKMZR8V.js","assets/trending-bubbles-nwoxKQEW.js","assets/yield-risk-pie-DUxkXYIQ.js","assets/dex-pool-liquidity-scatter-Civ63yej.js","assets/protocol-fees-vs-tvl-scatter-CtLKoDeh.js","assets/yield-composition-scatter-rfxC16n2.js","assets/protocol-tvl-by-category-BV2yIdZ_.js","assets/protocol-tvl-share-area-BeWSgocA.js","assets/dex-volume-share-area-uDfe8wQZ.js","assets/yield-momentum-bars-B9nKuItO.js","assets/btc-difficulty-chart-Yqxof0b6.js","assets/btc-block-size-bars-BgwX4eu_.js","assets/chain-price-movers-SeTwhqsM.js","assets/chain-activity-scatter-DeusbLku.js","assets/mempool-fee-curve-CQ4nzab8.js","assets/mining-pools-share-BhHh0hUJ.js","assets/options-max-pain-B2pA7KJP.js","assets/options-oi-skew-D869gcp7.js","assets/options-vol-spread-DMXdphxM.js","assets/options-flow-skew-Cy0SUhs0.js","assets/options-vol-smile-CqP0-CSw.js","assets/options-oi-ladder-heatmap-Do8eYI3h.js","assets/options-max-pain-multi-BLfX8Qe6.js","assets/mvrv-zscore-chart-qyOkheJb.js","assets/nupl-cycle-chart-BlXOLj4A.js","assets/cycle-valuation-composite-DO_Pda0n.js","assets/onchain-oscillator-overlay-BPa_jULR.js","assets/eth-issuance-impact-BLHuDvGQ.js","assets/treasury-avg-rate-bars-FXGz1a7e.js","assets/treasury-auction-demand-scatter-yYNPz1VC.js","assets/treasury-auction-size-bars-CGD6MeAz.js","assets/nyfed-reference-rate-bars-CxLwUFUY.js","assets/nyfed-sofr-term-averages-bars-DxzLVO9o.js","assets/nyfed-fed-funds-band-gauge-DnzVhh9I.js","assets/treasury-debt-composition-area-5yRh0K6a.js","assets/ofr-stress-category-area-TXpXiMP-.js","assets/misery-index-DpG7yLgX.js","assets/real-wages-BTBOxvjP.js","assets/labor-force-flow-8HLQsbKV.js","assets/payrolls-bars-15U_DxmS.js","assets/short-volume-bars-DRjpg7RS.js","assets/capital-structure-bars-SEyFIReK.js","assets/filings-mix-7ykY8NsE.js","assets/fx-cross-heatmap-CDORG9Cx.js","assets/etf-issuer-treemap-IhYjIP-y.js","assets/fx-trend-chart-uITTwyv8.js","assets/fear-greed-chart-N1vM_QJ7.js","assets/prediction-market-bars-Du1RxZc_.js","assets/dxy-chart-CidtFThk.js","assets/fx-movers-bars-WKvSm3Ry.js","assets/prediction-market-scatter-bdlr6r_V.js","assets/etf-issuer-bars-Dl9H_CZC.js","assets/portfolio-movers-DmaGwFtS.js","assets/portfolio-value-bars-B8XP7r22.js","assets/etf-flow-calendar-BI18BrWM.js","assets/prediction-markets-bubble-ccP01yj3.js","assets/editor-yifYG0tI.js","assets/gridstack-BxxvPIFU.js","assets/gridstack-FIb_WQSt.css","assets/editor-C9dj6xX0.css"])))=>i.map(i=>d[i]);
2
- var Oc=Object.defineProperty;var Lc=(e,t,r)=>t in e?Oc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var q=(e,t,r)=>Lc(e,typeof t!="symbol"?t+"":t,r);import{r as z,j as A,a as Fc,c as Ic}from"./react-qoZPGuNy.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const n of o)if(n.type==="childList")for(const i of n.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const n={};return o.integrity&&(n.integrity=o.integrity),o.referrerPolicy&&(n.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?n.credentials="include":o.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function a(o){if(o.ep)return;o.ep=!0;const n=r(o);fetch(o.href,n)}})();const Nc="modulepreload",Hc=function(e){return"/"+e},gn={},v=function(t,r,a){let o=Promise.resolve();if(r&&r.length>0){let i=function(l){return Promise.all(l.map(u=>Promise.resolve(u).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),c=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=i(r.map(l=>{if(l=Hc(l),l in gn)return;gn[l]=!0;const u=l.endsWith(".css"),h=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${h}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":Nc,u||(f.as="script"),f.crossOrigin="",f.href=l,c&&f.setAttribute("nonce",c),document.head.appendChild(f),u)return new Promise((d,p)=>{f.addEventListener("load",d),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function n(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return o.then(i=>{for(const s of i||[])s.status==="rejected"&&n(s.reason);return t().catch(n)})},fk=[{key:"markets",label:"Prices & Markets",description:"Live price charts, tickers, and market movers across stocks and crypto."},{key:"crypto",label:"Crypto & On-chain",description:"Crypto market structure and DeFi/on-chain activity — dominance, market caps, TVL, DEX volume, and fees."},{key:"bitcoin",label:"Bitcoin Network",description:"Bitcoin chain health — fees, mempool, blocks, hashrate, difficulty, mining pools, and Lightning."},{key:"onchain",label:"On-chain & Cycle",description:"Bitcoin valuation ratios and cycle timing — MVRV, NUPL, SOPR, Puell, Mayer Multiple, Pi Cycle, moving-average multipliers, RSI momentum, and cycle top/bottom signal checklists."},{key:"derivatives",label:"Derivatives & Options",description:"Perp funding, open interest, and options positioning and volatility."},{key:"macro",label:"Macro & Rates",description:"Official macro data — rates, the yield curve, inflation, jobs, debt, Treasury auctions, and financial stress."},{key:"equities",label:"Equities & Filings",description:"Single-company fundamentals, SEC filings, and short-sale volume."},{key:"sentiment",label:"Sentiment & News",description:"Market-mood gauges and news headline feeds."},{key:"portfolio",label:"Portfolio",description:"Your own holdings and their live allocation."},{key:"journal",label:"Decision Journal",description:"Your decision journal — log market calls, watch them play out, see them graded, and track how calibrated your judgment is over time."},{key:"tools",label:"Tools & Utility",description:"Clocks, countdowns, calculators, link grids, and the daily brief."},{key:"layout",label:"Layout & Media",description:"Structural and decorative frames — headings, dividers, notes, images, video, and quotes."},{key:"games",label:"Games",description:"Idle canvas games for when the market is quiet."}];function mk(e){return e}var bn;function E(e,t,r){function a(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:i,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);const l=i.prototype,u=Object.keys(l);for(let h=0;h<u.length;h++){const f=u[h];f in s||(s[f]=l[f].bind(s))}}const o=(r==null?void 0:r.Parent)??Object;class n extends o{}Object.defineProperty(n,"name",{value:e});function i(s){var c;const l=r!=null&&r.Parent?new n:this;a(l,s),(c=l._zod).deferred??(c.deferred=[]);for(const u of l._zod.deferred)u();return l}return Object.defineProperty(i,"init",{value:a}),Object.defineProperty(i,Symbol.hasInstance,{value:s=>{var c,l;return r!=null&&r.Parent&&s instanceof r.Parent?!0:(l=(c=s==null?void 0:s._zod)==null?void 0:c.traits)==null?void 0:l.has(e)}}),Object.defineProperty(i,"name",{value:e}),i}class Ur extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Vi extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(bn=globalThis).__zod_globalConfig??(bn.__zod_globalConfig={});const Bo=globalThis.__zod_globalConfig;function $t(e){return Bo}function Wi(e){const t=Object.values(e).filter(a=>typeof a=="number");return Object.entries(e).filter(([a,o])=>t.indexOf(+a)===-1).map(([a,o])=>o)}function wo(e,t){return typeof t=="bigint"?t.toString():t}function jo(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Vo(e){return e==null}function Wo(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Uc(e,t){const r=e/t,a=Math.round(r),o=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-a)<o?0:r-a}const yn=Symbol("evaluating");function Fe(e,t,r){let a;Object.defineProperty(e,t,{get(){if(a!==yn)return a===void 0&&(a=yn,a=r()),a},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Sr(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function dr(...e){const t={};for(const r of e){const a=Object.getOwnPropertyDescriptors(r);Object.assign(t,a)}return Object.defineProperties({},t)}function vn(e){return JSON.stringify(e)}function Bc(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Gi="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ta(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const jc=jo(()=>{var e;if(Bo.jitless||typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Wr(e){if(Ta(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(Ta(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Ki(e){return Wr(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Vc=new Set(["string","number","symbol"]);function Ba(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function hr(e,t,r){const a=new e._zod.constr(t??e._zod.def);return(!t||r!=null&&r.parent)&&(a._zod.parent=e),a}function Z(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Wc(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Gc={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Kc(e,t){const r=e._zod.def,a=r.checks;if(a&&a.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const n=dr(e._zod.def,{get shape(){const i={};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(i[s]=r.shape[s])}return Sr(this,"shape",i),i},checks:[]});return hr(e,n)}function qc(e,t){const r=e._zod.def,a=r.checks;if(a&&a.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const n=dr(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete i[s]}return Sr(this,"shape",i),i},checks:[]});return hr(e,n)}function Yc(e,t){if(!Wr(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const n=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(n,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=dr(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return Sr(this,"shape",n),n}});return hr(e,o)}function Jc(e,t){if(!Wr(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r=dr(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return Sr(this,"shape",a),a}});return hr(e,r)}function Xc(e,t){var a;if((a=e._zod.def.checks)!=null&&a.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const r=dr(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t._zod.def.shape};return Sr(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return hr(e,r)}function Zc(e,t,r){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const i=dr(t._zod.def,{get shape(){const s=t._zod.def.shape,c={...s};if(r)for(const l in r){if(!(l in s))throw new Error(`Unrecognized key: "${l}"`);r[l]&&(c[l]=e?new e({type:"optional",innerType:s[l]}):s[l])}else for(const l in s)c[l]=e?new e({type:"optional",innerType:s[l]}):s[l];return Sr(this,"shape",c),c},checks:[]});return hr(t,i)}function $c(e,t,r){const a=dr(t._zod.def,{get shape(){const o=t._zod.def.shape,n={...o};if(r)for(const i in r){if(!(i in n))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(n[i]=new e({type:"nonoptional",innerType:o[i]}))}else for(const i in o)n[i]=new e({type:"nonoptional",innerType:o[i]});return Sr(this,"shape",n),n}});return hr(t,a)}function Or(e,t=0){var r;if(e.aborted===!0)return!0;for(let a=t;a<e.issues.length;a++)if(((r=e.issues[a])==null?void 0:r.continue)!==!0)return!0;return!1}function Qc(e,t=0){var r;if(e.aborted===!0)return!0;for(let a=t;a<e.issues.length;a++)if(((r=e.issues[a])==null?void 0:r.continue)===!1)return!0;return!1}function Lr(e,t){return t.map(r=>{var a;return(a=r).path??(a.path=[]),r.path.unshift(e),r})}function ga(e){return typeof e=="string"?e:e==null?void 0:e.message}function Qt(e,t,r){var c,l,u,h,f,d;const a=e.message?e.message:ga((u=(l=(c=e.inst)==null?void 0:c._zod.def)==null?void 0:l.error)==null?void 0:u.call(l,e))??ga((h=t==null?void 0:t.error)==null?void 0:h.call(t,e))??ga((f=r.customError)==null?void 0:f.call(r,e))??ga((d=r.localeError)==null?void 0:d.call(r,e))??"Invalid input",{inst:o,continue:n,input:i,...s}=e;return s.path??(s.path=[]),s.message=a,t!=null&&t.reportInput&&(s.input=i),s}function Go(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ra(...e){const[t,r,a]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:a}:{...t}}const qi=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,wo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Yi=E("$ZodError",qi),Ji=E("$ZodError",qi,{Parent:Error});function el(e,t=r=>r.message){const r={},a=[];for(const o of e.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):a.push(t(o));return{formErrors:a,fieldErrors:r}}function tl(e,t=r=>r.message){const r={_errors:[]},a=(o,n=[])=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>a({issues:s},[...n,...i.path]));else if(i.code==="invalid_key")a({issues:i.issues},[...n,...i.path]);else if(i.code==="invalid_element")a({issues:i.issues},[...n,...i.path]);else{const s=[...n,...i.path];if(s.length===0)r._errors.push(t(i));else{let c=r,l=0;for(;l<s.length;){const u=s[l];l===s.length-1?(c[u]=c[u]||{_errors:[]},c[u]._errors.push(t(i))):c[u]=c[u]||{_errors:[]},c=c[u],l++}}}};return a(e),r}const Ko=e=>(t,r,a,o)=>{const n=a?{...a,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new Ur;if(i.issues.length){const s=new((o==null?void 0:o.Err)??e)(i.issues.map(c=>Qt(c,n,$t())));throw Gi(s,o==null?void 0:o.callee),s}return i.value},qo=e=>async(t,r,a,o)=>{const n=a?{...a,async:!0}:{async:!0};let i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise&&(i=await i),i.issues.length){const s=new((o==null?void 0:o.Err)??e)(i.issues.map(c=>Qt(c,n,$t())));throw Gi(s,o==null?void 0:o.callee),s}return i.value},ja=e=>(t,r,a)=>{const o=a?{...a,async:!1}:{async:!1},n=t._zod.run({value:r,issues:[]},o);if(n instanceof Promise)throw new Ur;return n.issues.length?{success:!1,error:new(e??Yi)(n.issues.map(i=>Qt(i,o,$t())))}:{success:!0,data:n.value}},rl=ja(Ji),Va=e=>async(t,r,a)=>{const o=a?{...a,async:!0}:{async:!0};let n=t._zod.run({value:r,issues:[]},o);return n instanceof Promise&&(n=await n),n.issues.length?{success:!1,error:new e(n.issues.map(i=>Qt(i,o,$t())))}:{success:!0,data:n.value}},al=Va(Ji),ol=e=>(t,r,a)=>{const o=a?{...a,direction:"backward"}:{direction:"backward"};return Ko(e)(t,r,o)},nl=e=>(t,r,a)=>Ko(e)(t,r,a),il=e=>async(t,r,a)=>{const o=a?{...a,direction:"backward"}:{direction:"backward"};return qo(e)(t,r,o)},sl=e=>async(t,r,a)=>qo(e)(t,r,a),cl=e=>(t,r,a)=>{const o=a?{...a,direction:"backward"}:{direction:"backward"};return ja(e)(t,r,o)},ll=e=>(t,r,a)=>ja(e)(t,r,a),ul=e=>async(t,r,a)=>{const o=a?{...a,direction:"backward"}:{direction:"backward"};return Va(e)(t,r,o)},dl=e=>async(t,r,a)=>Va(e)(t,r,a),hl=/^[cC][0-9a-z]{6,}$/,fl=/^[0-9a-z]+$/,ml=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,pl=/^[0-9a-vA-V]{20}$/,gl=/^[A-Za-z0-9]{27}$/,bl=/^[a-zA-Z0-9_-]{21}$/,yl=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,vl=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,wn=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,wl=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,kl="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function _l(){return new RegExp(kl,"u")}const xl=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Cl=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Al=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Sl=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Tl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Xi=/^[A-Za-z0-9_-]*$/,El=/^https?$/,zl=/^\+[1-9]\d{6,14}$/,Zi="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Pl=new RegExp(`^${Zi}$`);function $i(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Dl(e){return new RegExp(`^${$i(e)}$`)}function Ml(e){const t=$i({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const a=`${t}(?:${r.join("|")})`;return new RegExp(`^${Zi}T(?:${a})$`)}const Rl=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Ol=/^-?\d+$/,Qi=/^-?\d+(?:\.\d+)?$/,Ll=/^(?:true|false)$/i,Fl=/^[^A-Z]*$/,Il=/^[^a-z]*$/,St=E("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),es={number:"number",bigint:"bigint",object:"date"},ts=E("$ZodCheckLessThan",(e,t)=>{St.init(e,t);const r=es[typeof t.value];e._zod.onattach.push(a=>{const o=a._zod.bag,n=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<n&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value<=t.value:a.value<t.value)||a.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),rs=E("$ZodCheckGreaterThan",(e,t)=>{St.init(e,t);const r=es[typeof t.value];e._zod.onattach.push(a=>{const o=a._zod.bag,n=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>n&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value>=t.value:a.value>t.value)||a.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Nl=E("$ZodCheckMultipleOf",(e,t)=>{St.init(e,t),e._zod.onattach.push(r=>{var a;(a=r._zod.bag).multipleOf??(a.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):Uc(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Hl=E("$ZodCheckNumberFormat",(e,t)=>{var i;St.init(e,t),t.format=t.format||"float64";const r=(i=t.format)==null?void 0:i.includes("int"),a=r?"int":"number",[o,n]=Gc[t.format];e._zod.onattach.push(s=>{const c=s._zod.bag;c.format=t.format,c.minimum=o,c.maximum=n,r&&(c.pattern=Ol)}),e._zod.check=s=>{const c=s.value;if(r){if(!Number.isInteger(c)){s.issues.push({expected:a,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?s.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort}):s.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort});return}}c<o&&s.issues.push({origin:"number",input:c,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),c>n&&s.issues.push({origin:"number",input:c,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!t.abort})}}),Ul=E("$ZodCheckMaxLength",(e,t)=>{var r;St.init(e,t),(r=e._zod.def).when??(r.when=a=>{const o=a.value;return!Vo(o)&&o.length!==void 0}),e._zod.onattach.push(a=>{const o=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(a._zod.bag.maximum=t.maximum)}),e._zod.check=a=>{const o=a.value;if(o.length<=t.maximum)return;const i=Go(o);a.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Bl=E("$ZodCheckMinLength",(e,t)=>{var r;St.init(e,t),(r=e._zod.def).when??(r.when=a=>{const o=a.value;return!Vo(o)&&o.length!==void 0}),e._zod.onattach.push(a=>{const o=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{const o=a.value;if(o.length>=t.minimum)return;const i=Go(o);a.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),jl=E("$ZodCheckLengthEquals",(e,t)=>{var r;St.init(e,t),(r=e._zod.def).when??(r.when=a=>{const o=a.value;return!Vo(o)&&o.length!==void 0}),e._zod.onattach.push(a=>{const o=a._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=a=>{const o=a.value,n=o.length;if(n===t.length)return;const i=Go(o),s=n>t.length;a.issues.push({origin:i,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),Wa=E("$ZodCheckStringFormat",(e,t)=>{var r,a;St.init(e,t),e._zod.onattach.push(o=>{const n=o._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(a=e._zod).check??(a.check=()=>{})}),Vl=E("$ZodCheckRegex",(e,t)=>{Wa.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Wl=E("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Fl),Wa.init(e,t)}),Gl=E("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Il),Wa.init(e,t)}),Kl=E("$ZodCheckIncludes",(e,t)=>{St.init(e,t);const r=Ba(t.includes),a=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=a,e._zod.onattach.push(o=>{const n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(a)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),ql=E("$ZodCheckStartsWith",(e,t)=>{St.init(e,t);const r=new RegExp(`^${Ba(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(a=>{const o=a._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=a=>{a.value.startsWith(t.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:a.value,inst:e,continue:!t.abort})}}),Yl=E("$ZodCheckEndsWith",(e,t)=>{St.init(e,t);const r=new RegExp(`.*${Ba(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(a=>{const o=a._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=a=>{a.value.endsWith(t.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:a.value,inst:e,continue:!t.abort})}}),Jl=E("$ZodCheckOverwrite",(e,t)=>{St.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class Xl{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const a=t.split(`
3
- `).filter(i=>i),o=Math.min(...a.map(i=>i.length-i.trimStart().length)),n=a.map(i=>i.slice(o)).map(i=>" ".repeat(this.indent*2)+i);for(const i of n)this.content.push(i)}compile(){const t=Function,r=this==null?void 0:this.args,o=[...((this==null?void 0:this.content)??[""]).map(n=>` ${n}`)];return new t(...r,o.join(`
4
- `))}}const Zl={major:4,minor:4,patch:3},et=E("$ZodType",(e,t)=>{var o;var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Zl;const a=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&a.unshift(e);for(const n of a)for(const i of n._zod.onattach)i(e);if(a.length===0)(r=e._zod).deferred??(r.deferred=[]),(o=e._zod.deferred)==null||o.push(()=>{e._zod.run=e._zod.parse});else{const n=(s,c,l)=>{let u=Or(s),h;for(const f of c){if(f._zod.def.when){if(Qc(s)||!f._zod.def.when(s))continue}else if(u)continue;const d=s.issues.length,p=f._zod.check(s);if(p instanceof Promise&&(l==null?void 0:l.async)===!1)throw new Ur;if(h||p instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await p,s.issues.length!==d&&(u||(u=Or(s,d)))});else{if(s.issues.length===d)continue;u||(u=Or(s,d))}}return h?h.then(()=>s):s},i=(s,c,l)=>{if(Or(s))return s.aborted=!0,s;const u=n(c,a,l);if(u instanceof Promise){if(l.async===!1)throw new Ur;return u.then(h=>e._zod.parse(h,l))}return e._zod.parse(u,l)};e._zod.run=(s,c)=>{if(c.skipChecks)return e._zod.parse(s,c);if(c.direction==="backward"){const u=e._zod.parse({value:s.value,issues:[]},{...c,skipChecks:!0});return u instanceof Promise?u.then(h=>i(h,s,c)):i(u,s,c)}const l=e._zod.parse(s,c);if(l instanceof Promise){if(c.async===!1)throw new Ur;return l.then(u=>n(u,a,c))}return n(l,a,c)}}Fe(e,"~standard",()=>({validate:n=>{var i;try{const s=rl(e,n);return s.success?{value:s.data}:{issues:(i=s.error)==null?void 0:i.issues}}catch{return al(e,n).then(c=>{var l;return c.success?{value:c.data}:{issues:(l=c.error)==null?void 0:l.issues}})}},vendor:"zod",version:1}))}),Yo=E("$ZodString",(e,t)=>{var r;et.init(e,t),e._zod.pattern=[...((r=e==null?void 0:e._zod.bag)==null?void 0:r.patterns)??[]].pop()??Rl(e._zod.bag),e._zod.parse=(a,o)=>{if(t.coerce)try{a.value=String(a.value)}catch{}return typeof a.value=="string"||a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:e}),a}}),Ke=E("$ZodStringFormat",(e,t)=>{Wa.init(e,t),Yo.init(e,t)}),$l=E("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=vl),Ke.init(e,t)}),Ql=E("$ZodUUID",(e,t)=>{if(t.version){const a={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(a===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=wn(a))}else t.pattern??(t.pattern=wn());Ke.init(e,t)}),eu=E("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=wl),Ke.init(e,t)}),tu=E("$ZodURL",(e,t)=>{Ke.init(e,t),e._zod.check=r=>{var a;try{const o=r.value.trim();if(!t.normalize&&((a=t.protocol)==null?void 0:a.source)===El.source&&!/^https?:\/\//i.test(o)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}const n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),ru=E("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=_l()),Ke.init(e,t)}),au=E("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=bl),Ke.init(e,t)}),ou=E("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=hl),Ke.init(e,t)}),nu=E("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=fl),Ke.init(e,t)}),iu=E("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ml),Ke.init(e,t)}),su=E("$ZodXID",(e,t)=>{t.pattern??(t.pattern=pl),Ke.init(e,t)}),cu=E("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=gl),Ke.init(e,t)}),lu=E("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Ml(t)),Ke.init(e,t)}),uu=E("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Pl),Ke.init(e,t)}),du=E("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Dl(t)),Ke.init(e,t)}),hu=E("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=yl),Ke.init(e,t)}),fu=E("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=xl),Ke.init(e,t),e._zod.bag.format="ipv4"}),mu=E("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Cl),Ke.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),pu=E("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Al),Ke.init(e,t)}),gu=E("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Sl),Ke.init(e,t),e._zod.check=r=>{const a=r.value.split("/");try{if(a.length!==2)throw new Error;const[o,n]=a;if(!n)throw new Error;const i=Number(n);if(`${i}`!==n)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${o}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function as(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const bu=E("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Tl),Ke.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{as(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function yu(e){if(!Xi.test(e))return!1;const t=e.replace(/[-_]/g,a=>a==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return as(r)}const vu=E("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Xi),Ke.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{yu(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),wu=E("$ZodE164",(e,t)=>{t.pattern??(t.pattern=zl),Ke.init(e,t)});function ku(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[a]=r;if(!a)return!1;const o=JSON.parse(atob(a));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const _u=E("$ZodJWT",(e,t)=>{Ke.init(e,t),e._zod.check=r=>{ku(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),os=E("$ZodNumber",(e,t)=>{et.init(e,t),e._zod.pattern=e._zod.bag.pattern??Qi,e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}const o=r.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return r;const n=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...n?{received:n}:{}}),r}}),xu=E("$ZodNumberFormat",(e,t)=>{Hl.init(e,t),os.init(e,t)}),Cu=E("$ZodBoolean",(e,t)=>{et.init(e,t),e._zod.pattern=Ll,e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=!!r.value}catch{}const o=r.value;return typeof o=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),r}}),Au=E("$ZodUnknown",(e,t)=>{et.init(e,t),e._zod.parse=r=>r}),Su=E("$ZodNever",(e,t)=>{et.init(e,t),e._zod.parse=(r,a)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function kn(e,t,r){e.issues.length&&t.issues.push(...Lr(r,e.issues)),t.value[r]=e.value}const Tu=E("$ZodArray",(e,t)=>{et.init(e,t),e._zod.parse=(r,a)=>{const o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);const n=[];for(let i=0;i<o.length;i++){const s=o[i],c=t.element._zod.run({value:s,issues:[]},a);c instanceof Promise?n.push(c.then(l=>kn(l,r,i))):kn(c,r,i)}return n.length?Promise.all(n).then(()=>r):r}});function Ea(e,t,r,a,o,n){const i=r in a;if(e.issues.length){if(o&&n&&!i)return;t.issues.push(...Lr(r,e.issues))}if(!i&&!o){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?i&&(t.value[r]=void 0):t.value[r]=e.value}function ns(e){var a,o,n,i;const t=Object.keys(e.shape);for(const s of t)if(!((i=(n=(o=(a=e.shape)==null?void 0:a[s])==null?void 0:o._zod)==null?void 0:n.traits)!=null&&i.has("$ZodType")))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const r=Wc(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function is(e,t,r,a,o,n){const i=[],s=o.keySet,c=o.catchall._zod,l=c.def.type,u=c.optin==="optional",h=c.optout==="optional";for(const f in t){if(f==="__proto__"||s.has(f))continue;if(l==="never"){i.push(f);continue}const d=c.run({value:t[f],issues:[]},a);d instanceof Promise?e.push(d.then(p=>Ea(p,r,f,t,u,h))):Ea(d,r,f,t,u,h)}return i.length&&r.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:n}),e.length?Promise.all(e).then(()=>r):r}const Eu=E("$ZodObject",(e,t)=>{et.init(e,t);const r=Object.getOwnPropertyDescriptor(t,"shape");if(!(r!=null&&r.get)){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const c={...s};return Object.defineProperty(t,"shape",{value:c}),c}})}const a=jo(()=>ns(t));Fe(e._zod,"propValues",()=>{const s=t.shape,c={};for(const l in s){const u=s[l]._zod;if(u.values){c[l]??(c[l]=new Set);for(const h of u.values)c[l].add(h)}}return c});const o=Ta,n=t.catchall;let i;e._zod.parse=(s,c)=>{i??(i=a.value);const l=s.value;if(!o(l))return s.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),s;s.value={};const u=[],h=i.shape;for(const f of i.keys){const d=h[f],p=d._zod.optin==="optional",m=d._zod.optout==="optional",g=d._zod.run({value:l[f],issues:[]},c);g instanceof Promise?u.push(g.then(y=>Ea(y,s,f,l,p,m))):Ea(g,s,f,l,p,m)}return n?is(u,l,s,c,a.value,e):u.length?Promise.all(u).then(()=>s):s}}),zu=E("$ZodObjectJIT",(e,t)=>{Eu.init(e,t);const r=e._zod.parse,a=jo(()=>ns(t)),o=f=>{var S,D;const d=new Xl(["shape","payload","ctx"]),p=a.value,m=T=>{const x=vn(T);return`shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`};d.write("const input = payload.value;");const g=Object.create(null);let y=0;for(const T of p.keys)g[T]=`key_${y++}`;d.write("const newResult = {};");for(const T of p.keys){const x=g[T],O=vn(T),R=f[T],N=((S=R==null?void 0:R._zod)==null?void 0:S.optin)==="optional",P=((D=R==null?void 0:R._zod)==null?void 0:D.optout)==="optional";d.write(`const ${x} = ${m(T)};`),N&&P?d.write(`
5
- if (${x}.issues.length) {
6
- if (${O} in input) {
7
- payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
8
- ...iss,
9
- path: iss.path ? [${O}, ...iss.path] : [${O}]
10
- })));
11
- }
12
- }
13
-
14
- if (${x}.value === undefined) {
15
- if (${O} in input) {
16
- newResult[${O}] = undefined;
17
- }
18
- } else {
19
- newResult[${O}] = ${x}.value;
20
- }
21
-
22
- `):N?d.write(`
23
- if (${x}.issues.length) {
24
- payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
25
- ...iss,
26
- path: iss.path ? [${O}, ...iss.path] : [${O}]
27
- })));
28
- }
29
-
30
- if (${x}.value === undefined) {
31
- if (${O} in input) {
32
- newResult[${O}] = undefined;
33
- }
34
- } else {
35
- newResult[${O}] = ${x}.value;
36
- }
37
-
38
- `):d.write(`
39
- const ${x}_present = ${O} in input;
40
- if (${x}.issues.length) {
41
- payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
42
- ...iss,
43
- path: iss.path ? [${O}, ...iss.path] : [${O}]
44
- })));
45
- }
46
- if (!${x}_present && !${x}.issues.length) {
47
- payload.issues.push({
48
- code: "invalid_type",
49
- expected: "nonoptional",
50
- input: undefined,
51
- path: [${O}]
52
- });
53
- }
54
-
55
- if (${x}_present) {
56
- if (${x}.value === undefined) {
57
- newResult[${O}] = undefined;
58
- } else {
59
- newResult[${O}] = ${x}.value;
60
- }
61
- }
62
-
63
- `)}d.write("payload.value = newResult;"),d.write("return payload;");const k=d.compile();return(T,x)=>k(f,T,x)};let n;const i=Ta,s=!Bo.jitless,l=s&&jc.value,u=t.catchall;let h;e._zod.parse=(f,d)=>{h??(h=a.value);const p=f.value;return i(p)?s&&l&&(d==null?void 0:d.async)===!1&&d.jitless!==!0?(n||(n=o(t.shape)),f=n(f,d),u?is([],p,f,d,h,e):f):r(f,d):(f.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),f)}});function _n(e,t,r,a){for(const n of e)if(n.issues.length===0)return t.value=n.value,t;const o=e.filter(n=>!Or(n));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(n=>n.issues.map(i=>Qt(i,a,$t())))}),t)}const Pu=E("$ZodUnion",(e,t)=>{et.init(e,t),Fe(e._zod,"optin",()=>t.options.some(a=>a._zod.optin==="optional")?"optional":void 0),Fe(e._zod,"optout",()=>t.options.some(a=>a._zod.optout==="optional")?"optional":void 0),Fe(e._zod,"values",()=>{if(t.options.every(a=>a._zod.values))return new Set(t.options.flatMap(a=>Array.from(a._zod.values)))}),Fe(e._zod,"pattern",()=>{if(t.options.every(a=>a._zod.pattern)){const a=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${a.map(o=>Wo(o.source)).join("|")})$`)}});const r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(a,o)=>{if(r)return r(a,o);let n=!1;const i=[];for(const s of t.options){const c=s._zod.run({value:a.value,issues:[]},o);if(c instanceof Promise)i.push(c),n=!0;else{if(c.issues.length===0)return c;i.push(c)}}return n?Promise.all(i).then(s=>_n(s,a,e,o)):_n(i,a,e,o)}}),Du=E("$ZodIntersection",(e,t)=>{et.init(e,t),e._zod.parse=(r,a)=>{const o=r.value,n=t.left._zod.run({value:o,issues:[]},a),i=t.right._zod.run({value:o,issues:[]},a);return n instanceof Promise||i instanceof Promise?Promise.all([n,i]).then(([c,l])=>xn(r,c,l)):xn(r,n,i)}});function ko(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Wr(e)&&Wr(t)){const r=Object.keys(t),a=Object.keys(e).filter(n=>r.indexOf(n)!==-1),o={...e,...t};for(const n of a){const i=ko(e[n],t[n]);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};o[n]=i.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let a=0;a<e.length;a++){const o=e[a],n=t[a],i=ko(o,n);if(!i.valid)return{valid:!1,mergeErrorPath:[a,...i.mergeErrorPath]};r.push(i.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function xn(e,t,r){const a=new Map;let o;for(const s of t.issues)if(s.code==="unrecognized_keys"){o??(o=s);for(const c of s.keys)a.has(c)||a.set(c,{}),a.get(c).l=!0}else e.issues.push(s);for(const s of r.issues)if(s.code==="unrecognized_keys")for(const c of s.keys)a.has(c)||a.set(c,{}),a.get(c).r=!0;else e.issues.push(s);const n=[...a].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(n.length&&o&&e.issues.push({...o,keys:n}),Or(e))return e;const i=ko(t.value,r.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const Mu=E("$ZodRecord",(e,t)=>{et.init(e,t),e._zod.parse=(r,a)=>{const o=r.value;if(!Wr(o))return r.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),r;const n=[],i=t.keyType._zod.values;if(i){r.value={};const s=new Set;for(const l of i)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){s.add(typeof l=="number"?l.toString():l);const u=t.keyType._zod.run({value:l,issues:[]},a);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(d=>Qt(d,a,$t())),input:l,path:[l],inst:e});continue}const h=u.value,f=t.valueType._zod.run({value:o[l],issues:[]},a);f instanceof Promise?n.push(f.then(d=>{d.issues.length&&r.issues.push(...Lr(l,d.issues)),r.value[h]=d.value})):(f.issues.length&&r.issues.push(...Lr(l,f.issues)),r.value[h]=f.value)}let c;for(const l in o)s.has(l)||(c=c??[],c.push(l));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:c})}else{r.value={};for(const s of Reflect.ownKeys(o)){if(s==="__proto__"||!Object.prototype.propertyIsEnumerable.call(o,s))continue;let c=t.keyType._zod.run({value:s,issues:[]},a);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&Qi.test(s)&&c.issues.length){const h=t.keyType._zod.run({value:Number(s),issues:[]},a);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(c=h)}if(c.issues.length){t.mode==="loose"?r.value[s]=o[s]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(h=>Qt(h,a,$t())),input:s,path:[s],inst:e});continue}const u=t.valueType._zod.run({value:o[s],issues:[]},a);u instanceof Promise?n.push(u.then(h=>{h.issues.length&&r.issues.push(...Lr(s,h.issues)),r.value[c.value]=h.value})):(u.issues.length&&r.issues.push(...Lr(s,u.issues)),r.value[c.value]=u.value)}}return n.length?Promise.all(n).then(()=>r):r}}),Ru=E("$ZodEnum",(e,t)=>{et.init(e,t);const r=Wi(t.entries),a=new Set(r);e._zod.values=a,e._zod.pattern=new RegExp(`^(${r.filter(o=>Vc.has(typeof o)).map(o=>typeof o=="string"?Ba(o):o.toString()).join("|")})$`),e._zod.parse=(o,n)=>{const i=o.value;return a.has(i)||o.issues.push({code:"invalid_value",values:r,input:i,inst:e}),o}}),Ou=E("$ZodTransform",(e,t)=>{et.init(e,t),e._zod.optin="optional",e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new Vi(e.constructor.name);const o=t.transform(r.value,r);if(a.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(r.value=i,r.fallback=!0,r));if(o instanceof Promise)throw new Ur;return r.value=o,r.fallback=!0,r}});function Cn(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const ss=E("$ZodOptional",(e,t)=>{et.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Fe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Fe(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Wo(r.source)})?$`):void 0}),e._zod.parse=(r,a)=>{if(t.innerType._zod.optin==="optional"){const o=r.value,n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(i=>Cn(i,o)):Cn(n,o)}return r.value===void 0?r:t.innerType._zod.run(r,a)}}),Lu=E("$ZodExactOptional",(e,t)=>{ss.init(e,t),Fe(e._zod,"values",()=>t.innerType._zod.values),Fe(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,a)=>t.innerType._zod.run(r,a)}),Fu=E("$ZodNullable",(e,t)=>{et.init(e,t),Fe(e._zod,"optin",()=>t.innerType._zod.optin),Fe(e._zod,"optout",()=>t.innerType._zod.optout),Fe(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Wo(r.source)}|null)$`):void 0}),Fe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,a)=>r.value===null?r:t.innerType._zod.run(r,a)}),Iu=E("$ZodDefault",(e,t)=>{et.init(e,t),e._zod.optin="optional",Fe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);if(r.value===void 0)return r.value=t.defaultValue,r;const o=t.innerType._zod.run(r,a);return o instanceof Promise?o.then(n=>An(n,t)):An(o,t)}});function An(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Nu=E("$ZodPrefault",(e,t)=>{et.init(e,t),e._zod.optin="optional",Fe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>(a.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,a))}),Hu=E("$ZodNonOptional",(e,t)=>{et.init(e,t),Fe(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(a=>a!==void 0)):void 0}),e._zod.parse=(r,a)=>{const o=t.innerType._zod.run(r,a);return o instanceof Promise?o.then(n=>Sn(n,e)):Sn(o,e)}});function Sn(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Uu=E("$ZodCatch",(e,t)=>{et.init(e,t),e._zod.optin="optional",Fe(e._zod,"optout",()=>t.innerType._zod.optout),Fe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);const o=t.innerType._zod.run(r,a);return o instanceof Promise?o.then(n=>(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>Qt(i,a,$t()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(n=>Qt(n,a,$t()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),cs=E("$ZodPipe",(e,t)=>{et.init(e,t),Fe(e._zod,"values",()=>t.in._zod.values),Fe(e._zod,"optin",()=>t.in._zod.optin),Fe(e._zod,"optout",()=>t.out._zod.optout),Fe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,a)=>{if(a.direction==="backward"){const n=t.out._zod.run(r,a);return n instanceof Promise?n.then(i=>ba(i,t.in,a)):ba(n,t.in,a)}const o=t.in._zod.run(r,a);return o instanceof Promise?o.then(n=>ba(n,t.out,a)):ba(o,t.out,a)}});function ba(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}const Bu=E("$ZodPreprocess",(e,t)=>{cs.init(e,t)}),ju=E("$ZodReadonly",(e,t)=>{et.init(e,t),Fe(e._zod,"propValues",()=>t.innerType._zod.propValues),Fe(e._zod,"values",()=>t.innerType._zod.values),Fe(e._zod,"optin",()=>{var r,a;return(a=(r=t.innerType)==null?void 0:r._zod)==null?void 0:a.optin}),Fe(e._zod,"optout",()=>{var r,a;return(a=(r=t.innerType)==null?void 0:r._zod)==null?void 0:a.optout}),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);const o=t.innerType._zod.run(r,a);return o instanceof Promise?o.then(Tn):Tn(o)}});function Tn(e){return e.value=Object.freeze(e.value),e}const Vu=E("$ZodCustom",(e,t)=>{St.init(e,t),et.init(e,t),e._zod.parse=(r,a)=>r,e._zod.check=r=>{const a=r.value,o=t.fn(a);if(o instanceof Promise)return o.then(n=>En(n,r,a,e));En(o,r,a,e)}});function En(e,t,r,a){if(!e){const o={code:"custom",input:r,inst:a,path:[...a._zod.def.path??[]],continue:!a._zod.def.abort};a._zod.def.params&&(o.params=a._zod.def.params),t.issues.push(ra(o))}}var zn;class Wu{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const a=r[0];return this._map.set(t,a),a&&typeof a=="object"&&"id"in a&&this._idmap.set(a.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const a={...this.get(r)??{}};delete a.id;const o={...a,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Gu(){return new Wu}(zn=globalThis).__zod_globalRegistry??(zn.__zod_globalRegistry=Gu());const ea=globalThis.__zod_globalRegistry;function Ku(e,t){return new e({type:"string",...Z(t)})}function qu(e,t){return new e({type:"string",coerce:!0,...Z(t)})}function Yu(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Z(t)})}function Pn(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Z(t)})}function Ju(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Z(t)})}function Xu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Z(t)})}function Zu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Z(t)})}function $u(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Z(t)})}function Qu(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Z(t)})}function ed(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Z(t)})}function td(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Z(t)})}function rd(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Z(t)})}function ad(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Z(t)})}function od(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Z(t)})}function nd(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Z(t)})}function id(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Z(t)})}function sd(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Z(t)})}function cd(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Z(t)})}function ld(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Z(t)})}function ud(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Z(t)})}function dd(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Z(t)})}function hd(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Z(t)})}function fd(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Z(t)})}function md(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Z(t)})}function pd(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Z(t)})}function gd(e,t){return new e({type:"string",format:"date",check:"string_format",...Z(t)})}function bd(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Z(t)})}function yd(e,t){return new e({type:"string",format:"duration",check:"string_format",...Z(t)})}function vd(e,t){return new e({type:"number",checks:[],...Z(t)})}function wd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Z(t)})}function kd(e,t){return new e({type:"boolean",...Z(t)})}function _d(e){return new e({type:"unknown"})}function xd(e,t){return new e({type:"never",...Z(t)})}function Dn(e,t){return new ts({check:"less_than",...Z(t),value:e,inclusive:!1})}function no(e,t){return new ts({check:"less_than",...Z(t),value:e,inclusive:!0})}function Mn(e,t){return new rs({check:"greater_than",...Z(t),value:e,inclusive:!1})}function io(e,t){return new rs({check:"greater_than",...Z(t),value:e,inclusive:!0})}function Rn(e,t){return new Nl({check:"multiple_of",...Z(t),value:e})}function ls(e,t){return new Ul({check:"max_length",...Z(t),maximum:e})}function za(e,t){return new Bl({check:"min_length",...Z(t),minimum:e})}function us(e,t){return new jl({check:"length_equals",...Z(t),length:e})}function Cd(e,t){return new Vl({check:"string_format",format:"regex",...Z(t),pattern:e})}function Ad(e){return new Wl({check:"string_format",format:"lowercase",...Z(e)})}function Sd(e){return new Gl({check:"string_format",format:"uppercase",...Z(e)})}function Td(e,t){return new Kl({check:"string_format",format:"includes",...Z(t),includes:e})}function Ed(e,t){return new ql({check:"string_format",format:"starts_with",...Z(t),prefix:e})}function zd(e,t){return new Yl({check:"string_format",format:"ends_with",...Z(t),suffix:e})}function Kr(e){return new Jl({check:"overwrite",tx:e})}function Pd(e){return Kr(t=>t.normalize(e))}function Dd(){return Kr(e=>e.trim())}function Md(){return Kr(e=>e.toLowerCase())}function Rd(){return Kr(e=>e.toUpperCase())}function Od(){return Kr(e=>Bc(e))}function Ld(e,t,r){return new e({type:"array",element:t,...Z(r)})}function Fd(e,t,r){return new e({type:"custom",check:"custom",fn:t,...Z(r)})}function Id(e,t){const r=Nd(a=>(a.addIssue=o=>{if(typeof o=="string")a.issues.push(ra(o,a.value,r._zod.def));else{const n=o;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=a.value),n.inst??(n.inst=r),n.continue??(n.continue=!r._zod.def.abort),a.issues.push(ra(n))}},e(a.value,a)),t);return r}function Nd(e,t){const r=new St({check:"custom",...Z(t)});return r._zod.check=e,r}function Pa(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??ea,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function He(e,t,r={path:[],schemaPath:[]}){var u,h;var a;const o=e._zod.def,n=t.seen.get(e);if(n)return n.count++,r.schemaPath.includes(e)&&(n.cycle=r.path),n.schema;const i={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,i);const s=(h=(u=e._zod).toJSONSchema)==null?void 0:h.call(u);if(s)i.schema=s;else{const f={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,f);else{const p=i.schema,m=t.processors[o.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);m(e,t,p,f)}const d=e._zod.parent;d&&(i.ref||(i.ref=d),He(d,t,f),t.seen.get(d).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Object.assign(i.schema,c),t.io==="input"&&vt(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&"_prefault"in i.schema&&((a=i.schema).default??(a.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function Da(e,t){var i,s,c,l;const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=new Map;for(const u of e.seen.entries()){const h=(i=e.metadataRegistry.get(u[0]))==null?void 0:i.id;if(h){const f=a.get(h);if(f&&f!==u[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);a.set(h,u[0])}}const o=u=>{var m;const h=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const g=(m=e.external.registry.get(u[0]))==null?void 0:m.id,y=e.external.uri??(S=>S);if(g)return{ref:y(g)};const k=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=k,{defId:k,ref:`${y("__shared")}#/${h}/${k}`}}if(u[1]===r)return{ref:"#"};const d=`#/${h}/`,p=u[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:d+p}},n=u=>{if(u[1].schema.$ref)return;const h=u[1],{ref:f,defId:d}=o(u);h.def={...h.schema},d&&(h.defId=d);const p=h.schema;for(const m in p)delete p[m];p.$ref=f};if(e.cycles==="throw")for(const u of e.seen.entries()){const h=u[1];if(h.cycle)throw new Error(`Cycle detected: #/${(s=h.cycle)==null?void 0:s.join("/")}/<root>
64
-
65
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const h=u[1];if(t===u[0]){n(u);continue}if(e.external){const d=(c=e.external.registry.get(u[0]))==null?void 0:c.id;if(t!==u[0]&&d){n(u);continue}}if((l=e.metadataRegistry.get(u[0]))==null?void 0:l.id){n(u);continue}if(h.cycle){n(u);continue}if(h.count>1&&e.reused==="ref"){n(u);continue}}}function Ma(e,t){var s,c,l,u;const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=h=>{const f=e.seen.get(h);if(f.ref===null)return;const d=f.def??f.schema,p={...d},m=f.ref;if(f.ref=null,m){a(m);const y=e.seen.get(m),k=y.schema;if(k.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(k)):Object.assign(d,k),Object.assign(d,p),h._zod.parent===m)for(const D in d)D==="$ref"||D==="allOf"||D in p||delete d[D];if(k.$ref&&y.def)for(const D in d)D==="$ref"||D==="allOf"||D in y.def&&JSON.stringify(d[D])===JSON.stringify(y.def[D])&&delete d[D]}const g=h._zod.parent;if(g&&g!==m){a(g);const y=e.seen.get(g);if(y!=null&&y.schema.$ref&&(d.$ref=y.schema.$ref,y.def))for(const k in d)k==="$ref"||k==="allOf"||k in y.def&&JSON.stringify(d[k])===JSON.stringify(y.def[k])&&delete d[k]}e.override({zodSchema:h,jsonSchema:d,path:f.path??[]})};for(const h of[...e.seen.entries()].reverse())a(h[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,(s=e.external)!=null&&s.uri){const h=(c=e.external.registry.get(t))==null?void 0:c.id;if(!h)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(h)}Object.assign(o,r.def??r.schema);const n=(l=e.metadataRegistry.get(t))==null?void 0:l.id;n!==void 0&&o.id===n&&delete o.id;const i=((u=e.external)==null?void 0:u.defs)??{};for(const h of e.seen.entries()){const f=h[1];f.def&&f.defId&&(f.def.id===f.defId&&delete f.def.id,i[f.defId]=f.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{const h=JSON.parse(JSON.stringify(o));return Object.defineProperty(h,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ra(t,"input",e.processors),output:Ra(t,"output",e.processors)}},enumerable:!1,writable:!1}),h}catch{throw new Error("Error converting schema to JSON.")}}function vt(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const a=e._zod.def;if(a.type==="transform")return!0;if(a.type==="array")return vt(a.element,r);if(a.type==="set")return vt(a.valueType,r);if(a.type==="lazy")return vt(a.getter(),r);if(a.type==="promise"||a.type==="optional"||a.type==="nonoptional"||a.type==="nullable"||a.type==="readonly"||a.type==="default"||a.type==="prefault")return vt(a.innerType,r);if(a.type==="intersection")return vt(a.left,r)||vt(a.right,r);if(a.type==="record"||a.type==="map")return vt(a.keyType,r)||vt(a.valueType,r);if(a.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:vt(a.in,r)||vt(a.out,r);if(a.type==="object"){for(const o in a.shape)if(vt(a.shape[o],r))return!0;return!1}if(a.type==="union"){for(const o of a.options)if(vt(o,r))return!0;return!1}if(a.type==="tuple"){for(const o of a.items)if(vt(o,r))return!0;return!!(a.rest&&vt(a.rest,r))}return!1}const Hd=(e,t={})=>r=>{const a=Pa({...r,processors:t});return He(e,a),Da(a,e),Ma(a,e)},Ra=(e,t,r={})=>a=>{const{libraryOptions:o,target:n}=a??{},i=Pa({...o??{},target:n,io:t,processors:r});return He(e,i),Da(i,e),Ma(i,e)},Ud={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},ds=(e,t,r,a)=>{const o=r;o.type="string";const{minimum:n,maximum:i,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof n=="number"&&(o.minLength=n),typeof i=="number"&&(o.maxLength=i),s&&(o.format=Ud[s]??s,o.format===""&&delete o.format,s==="time"&&delete o.format),l&&(o.contentEncoding=l),c&&c.size>0){const u=[...c];u.length===1?o.pattern=u[0].source:u.length>1&&(o.allOf=[...u.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},hs=(e,t,r,a)=>{const o=r,{minimum:n,maximum:i,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s=="string"&&s.includes("int")?o.type="integer":o.type="number";const h=typeof u=="number"&&u>=(n??Number.NEGATIVE_INFINITY),f=typeof l=="number"&&l<=(i??Number.POSITIVE_INFINITY),d=t.target==="draft-04"||t.target==="openapi-3.0";h?d?(o.minimum=u,o.exclusiveMinimum=!0):o.exclusiveMinimum=u:typeof n=="number"&&(o.minimum=n),f?d?(o.maximum=l,o.exclusiveMaximum=!0):o.exclusiveMaximum=l:typeof i=="number"&&(o.maximum=i),typeof c=="number"&&(o.multipleOf=c)},fs=(e,t,r,a)=>{r.type="boolean"},Bd=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},jd=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Vd=(e,t,r,a)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Wd=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Gd=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},ms=(e,t,r,a)=>{r.not={}},Kd=(e,t,r,a)=>{},ps=(e,t,r,a)=>{},qd=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},gs=(e,t,r,a)=>{const o=e._zod.def,n=Wi(o.entries);n.every(i=>typeof i=="number")&&(r.type="number"),n.every(i=>typeof i=="string")&&(r.type="string"),r.enum=n},Yd=(e,t,r,a)=>{const o=e._zod.def,n=[];for(const i of o.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");n.push(Number(i))}else n.push(i);if(n.length!==0)if(n.length===1){const i=n[0];r.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[i]:r.const=i}else n.every(i=>typeof i=="number")&&(r.type="number"),n.every(i=>typeof i=="string")&&(r.type="string"),n.every(i=>typeof i=="boolean")&&(r.type="boolean"),n.every(i=>i===null)&&(r.type="null"),r.enum=n},Jd=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Xd=(e,t,r,a)=>{const o=r,n=e._zod.pattern;if(!n)throw new Error("Pattern not found in template literal");o.type="string",o.pattern=n.source},Zd=(e,t,r,a)=>{const o=r,n={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:s,mime:c}=e._zod.bag;i!==void 0&&(n.minLength=i),s!==void 0&&(n.maxLength=s),c?c.length===1?(n.contentMediaType=c[0],Object.assign(o,n)):(Object.assign(o,n),o.anyOf=c.map(l=>({contentMediaType:l}))):Object.assign(o,n)},$d=(e,t,r,a)=>{r.type="boolean"},bs=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Qd=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},ys=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},eh=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},th=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},vs=(e,t,r,a)=>{const o=r,n=e._zod.def,{minimum:i,maximum:s}=e._zod.bag;typeof i=="number"&&(o.minItems=i),typeof s=="number"&&(o.maxItems=s),o.type="array",o.items=He(n.element,t,{...a,path:[...a.path,"items"]})},ws=(e,t,r,a)=>{var l;const o=r,n=e._zod.def;o.type="object",o.properties={};const i=n.shape;for(const u in i)o.properties[u]=He(i[u],t,{...a,path:[...a.path,"properties",u]});const s=new Set(Object.keys(i)),c=new Set([...s].filter(u=>{const h=n.shape[u]._zod;return t.io==="input"?h.optin===void 0:h.optout===void 0}));c.size>0&&(o.required=Array.from(c)),((l=n.catchall)==null?void 0:l._zod.def.type)==="never"?o.additionalProperties=!1:n.catchall?n.catchall&&(o.additionalProperties=He(n.catchall,t,{...a,path:[...a.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},ks=(e,t,r,a)=>{const o=e._zod.def,n=o.inclusive===!1,i=o.options.map((s,c)=>He(s,t,{...a,path:[...a.path,n?"oneOf":"anyOf",c]}));n?r.oneOf=i:r.anyOf=i},_s=(e,t,r,a)=>{const o=e._zod.def,n=He(o.left,t,{...a,path:[...a.path,"allOf",0]}),i=He(o.right,t,{...a,path:[...a.path,"allOf",1]}),s=l=>"allOf"in l&&Object.keys(l).length===1,c=[...s(n)?n.allOf:[n],...s(i)?i.allOf:[i]];r.allOf=c},rh=(e,t,r,a)=>{const o=r,n=e._zod.def;o.type="array";const i=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=n.items.map((f,d)=>He(f,t,{...a,path:[...a.path,i,d]})),l=n.rest?He(n.rest,t,{...a,path:[...a.path,s,...t.target==="openapi-3.0"?[n.items.length]:[]]}):null;t.target==="draft-2020-12"?(o.prefixItems=c,l&&(o.items=l)):t.target==="openapi-3.0"?(o.items={anyOf:c},l&&o.items.anyOf.push(l),o.minItems=c.length,l||(o.maxItems=c.length)):(o.items=c,l&&(o.additionalItems=l));const{minimum:u,maximum:h}=e._zod.bag;typeof u=="number"&&(o.minItems=u),typeof h=="number"&&(o.maxItems=h)},xs=(e,t,r,a)=>{const o=r,n=e._zod.def;o.type="object";const i=n.keyType,s=i._zod.bag,c=s==null?void 0:s.patterns;if(n.mode==="loose"&&c&&c.size>0){const u=He(n.valueType,t,{...a,path:[...a.path,"patternProperties","*"]});o.patternProperties={};for(const h of c)o.patternProperties[h.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(o.propertyNames=He(n.keyType,t,{...a,path:[...a.path,"propertyNames"]})),o.additionalProperties=He(n.valueType,t,{...a,path:[...a.path,"additionalProperties"]});const l=i._zod.values;if(l){const u=[...l].filter(h=>typeof h=="string"||typeof h=="number");u.length>0&&(o.required=u)}},Cs=(e,t,r,a)=>{const o=e._zod.def,n=He(o.innerType,t,a),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=o.innerType,r.nullable=!0):r.anyOf=[n,{type:"null"}]},As=(e,t,r,a)=>{const o=e._zod.def;He(o.innerType,t,a);const n=t.seen.get(e);n.ref=o.innerType},Ss=(e,t,r,a)=>{const o=e._zod.def;He(o.innerType,t,a);const n=t.seen.get(e);n.ref=o.innerType,r.default=JSON.parse(JSON.stringify(o.defaultValue))},Ts=(e,t,r,a)=>{const o=e._zod.def;He(o.innerType,t,a);const n=t.seen.get(e);n.ref=o.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},Es=(e,t,r,a)=>{const o=e._zod.def;He(o.innerType,t,a);const n=t.seen.get(e);n.ref=o.innerType;let i;try{i=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=i},zs=(e,t,r,a)=>{const o=e._zod.def,n=o.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?n?o.out:o.in:o.out;He(i,t,a);const s=t.seen.get(e);s.ref=i},Ps=(e,t,r,a)=>{const o=e._zod.def;He(o.innerType,t,a);const n=t.seen.get(e);n.ref=o.innerType,r.readOnly=!0},ah=(e,t,r,a)=>{const o=e._zod.def;He(o.innerType,t,a);const n=t.seen.get(e);n.ref=o.innerType},Jo=(e,t,r,a)=>{const o=e._zod.def;He(o.innerType,t,a);const n=t.seen.get(e);n.ref=o.innerType},oh=(e,t,r,a)=>{const o=e._zod.innerType;He(o,t,a);const n=t.seen.get(e);n.ref=o},On={string:ds,number:hs,boolean:fs,bigint:Bd,symbol:jd,null:Vd,undefined:Wd,void:Gd,never:ms,any:Kd,unknown:ps,date:qd,enum:gs,literal:Yd,nan:Jd,template_literal:Xd,file:Zd,success:$d,custom:bs,function:Qd,transform:ys,map:eh,set:th,array:vs,object:ws,union:ks,intersection:_s,tuple:rh,record:xs,nullable:Cs,nonoptional:As,default:Ss,prefault:Ts,catch:Es,pipe:zs,readonly:Ps,promise:ah,optional:Jo,lazy:oh};function pk(e,t){if("_idmap"in e){const a=e,o=Pa({...t,processors:On}),n={};for(const c of a._idmap.entries()){const[l,u]=c;He(u,o)}const i={},s={registry:a,uri:t==null?void 0:t.uri,defs:n};o.external=s;for(const c of a._idmap.entries()){const[l,u]=c;Da(o,u),i[l]=Ma(o,u)}if(Object.keys(n).length>0){const c=o.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[c]:n}}return{schemas:i}}const r=Pa({...t,processors:On});return He(e,r),Da(r,e),Ma(r,e)}const nh=E("ZodISODateTime",(e,t)=>{lu.init(e,t),Xe.init(e,t)});function ih(e){return pd(nh,e)}const sh=E("ZodISODate",(e,t)=>{uu.init(e,t),Xe.init(e,t)});function ch(e){return gd(sh,e)}const lh=E("ZodISOTime",(e,t)=>{du.init(e,t),Xe.init(e,t)});function uh(e){return bd(lh,e)}const dh=E("ZodISODuration",(e,t)=>{hu.init(e,t),Xe.init(e,t)});function hh(e){return yd(dh,e)}const fh=(e,t)=>{Yi.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>tl(e,r)},flatten:{value:r=>el(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,wo,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,wo,2)}},isEmpty:{get(){return e.issues.length===0}}})},Ft=E("ZodError",fh,{Parent:Error}),mh=Ko(Ft),ph=qo(Ft),gh=ja(Ft),bh=Va(Ft),yh=ol(Ft),vh=nl(Ft),wh=il(Ft),kh=sl(Ft),_h=cl(Ft),xh=ll(Ft),Ch=ul(Ft),Ah=dl(Ft),Ln=new WeakMap;function ia(e,t,r){const a=Object.getPrototypeOf(e);let o=Ln.get(a);if(o||(o=new Set,Ln.set(a,o)),!o.has(t)){o.add(t);for(const n in r){const i=r[n];Object.defineProperty(a,n,{configurable:!0,enumerable:!1,get(){const s=i.bind(this);return Object.defineProperty(this,n,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,n,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}const tt=E("ZodType",(e,t)=>(et.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ra(e,"input"),output:Ra(e,"output")}}),e.toJSONSchema=Hd(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(r,a)=>mh(e,r,a,{callee:e.parse}),e.safeParse=(r,a)=>gh(e,r,a),e.parseAsync=async(r,a)=>ph(e,r,a,{callee:e.parseAsync}),e.safeParseAsync=async(r,a)=>bh(e,r,a),e.spa=e.safeParseAsync,e.encode=(r,a)=>yh(e,r,a),e.decode=(r,a)=>vh(e,r,a),e.encodeAsync=async(r,a)=>wh(e,r,a),e.decodeAsync=async(r,a)=>kh(e,r,a),e.safeEncode=(r,a)=>_h(e,r,a),e.safeDecode=(r,a)=>xh(e,r,a),e.safeEncodeAsync=async(r,a)=>Ch(e,r,a),e.safeDecodeAsync=async(r,a)=>Ah(e,r,a),ia(e,"ZodType",{check(...r){const a=this.def;return this.clone(dr(a,{checks:[...a.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,a){return hr(this,r,a)},brand(){return this},register(r,a){return r.add(this,a),this},refine(r,a){return this.check(gf(r,a))},superRefine(r,a){return this.check(bf(r,a))},overwrite(r){return this.check(Kr(r))},optional(){return Un(this)},exactOptional(){return rf(this)},nullable(){return Bn(this)},nullish(){return Un(Bn(this))},nonoptional(r){return lf(this,r)},array(){return Ee(this)},or(r){return Zh([this,r])},and(r){return Qh(this,r)},transform(r){return jn(this,Os(r))},default(r){return nf(this,r)},prefault(r){return cf(this,r)},catch(r){return df(this,r)},pipe(r){return jn(this,r)},readonly(){return mf(this)},describe(r){const a=this.clone();return ea.add(a,{description:r}),a},meta(...r){if(r.length===0)return ea.get(this);const a=this.clone();return ea.add(a,r[0]),a},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){var r;return(r=ea.get(e))==null?void 0:r.description},configurable:!0}),e)),Ds=E("_ZodString",(e,t)=>{Yo.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(a,o,n)=>ds(e,a,o);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,ia(e,"_ZodString",{regex(...a){return this.check(Cd(...a))},includes(...a){return this.check(Td(...a))},startsWith(...a){return this.check(Ed(...a))},endsWith(...a){return this.check(zd(...a))},min(...a){return this.check(za(...a))},max(...a){return this.check(ls(...a))},length(...a){return this.check(us(...a))},nonempty(...a){return this.check(za(1,...a))},lowercase(a){return this.check(Ad(a))},uppercase(a){return this.check(Sd(a))},trim(){return this.check(Dd())},normalize(...a){return this.check(Pd(...a))},toLowerCase(){return this.check(Md())},toUpperCase(){return this.check(Rd())},slugify(){return this.check(Od())}})}),Ms=E("ZodString",(e,t)=>{Yo.init(e,t),Ds.init(e,t),e.email=r=>e.check(Yu(Sh,r)),e.url=r=>e.check(Qu(Th,r)),e.jwt=r=>e.check(md(jh,r)),e.emoji=r=>e.check(ed(Eh,r)),e.guid=r=>e.check(Pn(Fn,r)),e.uuid=r=>e.check(Ju(ya,r)),e.uuidv4=r=>e.check(Xu(ya,r)),e.uuidv6=r=>e.check(Zu(ya,r)),e.uuidv7=r=>e.check($u(ya,r)),e.nanoid=r=>e.check(td(zh,r)),e.guid=r=>e.check(Pn(Fn,r)),e.cuid=r=>e.check(rd(Ph,r)),e.cuid2=r=>e.check(ad(Dh,r)),e.ulid=r=>e.check(od(Mh,r)),e.base64=r=>e.check(dd(Hh,r)),e.base64url=r=>e.check(hd(Uh,r)),e.xid=r=>e.check(nd(Rh,r)),e.ksuid=r=>e.check(id(Oh,r)),e.ipv4=r=>e.check(sd(Lh,r)),e.ipv6=r=>e.check(cd(Fh,r)),e.cidrv4=r=>e.check(ld(Ih,r)),e.cidrv6=r=>e.check(ud(Nh,r)),e.e164=r=>e.check(fd(Bh,r)),e.datetime=r=>e.check(ih(r)),e.date=r=>e.check(ch(r)),e.time=r=>e.check(uh(r)),e.duration=r=>e.check(hh(r))});function L(e){return Ku(Ms,e)}const Xe=E("ZodStringFormat",(e,t)=>{Ke.init(e,t),Ds.init(e,t)}),Sh=E("ZodEmail",(e,t)=>{eu.init(e,t),Xe.init(e,t)}),Fn=E("ZodGUID",(e,t)=>{$l.init(e,t),Xe.init(e,t)}),ya=E("ZodUUID",(e,t)=>{Ql.init(e,t),Xe.init(e,t)}),Th=E("ZodURL",(e,t)=>{tu.init(e,t),Xe.init(e,t)}),Eh=E("ZodEmoji",(e,t)=>{ru.init(e,t),Xe.init(e,t)}),zh=E("ZodNanoID",(e,t)=>{au.init(e,t),Xe.init(e,t)}),Ph=E("ZodCUID",(e,t)=>{ou.init(e,t),Xe.init(e,t)}),Dh=E("ZodCUID2",(e,t)=>{nu.init(e,t),Xe.init(e,t)}),Mh=E("ZodULID",(e,t)=>{iu.init(e,t),Xe.init(e,t)}),Rh=E("ZodXID",(e,t)=>{su.init(e,t),Xe.init(e,t)}),Oh=E("ZodKSUID",(e,t)=>{cu.init(e,t),Xe.init(e,t)}),Lh=E("ZodIPv4",(e,t)=>{fu.init(e,t),Xe.init(e,t)}),Fh=E("ZodIPv6",(e,t)=>{mu.init(e,t),Xe.init(e,t)}),Ih=E("ZodCIDRv4",(e,t)=>{pu.init(e,t),Xe.init(e,t)}),Nh=E("ZodCIDRv6",(e,t)=>{gu.init(e,t),Xe.init(e,t)}),Hh=E("ZodBase64",(e,t)=>{bu.init(e,t),Xe.init(e,t)}),Uh=E("ZodBase64URL",(e,t)=>{vu.init(e,t),Xe.init(e,t)}),Bh=E("ZodE164",(e,t)=>{wu.init(e,t),Xe.init(e,t)}),jh=E("ZodJWT",(e,t)=>{_u.init(e,t),Xe.init(e,t)}),Rs=E("ZodNumber",(e,t)=>{os.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(a,o,n)=>hs(e,a,o),ia(e,"ZodNumber",{gt(a,o){return this.check(Mn(a,o))},gte(a,o){return this.check(io(a,o))},min(a,o){return this.check(io(a,o))},lt(a,o){return this.check(Dn(a,o))},lte(a,o){return this.check(no(a,o))},max(a,o){return this.check(no(a,o))},int(a){return this.check(In(a))},safe(a){return this.check(In(a))},positive(a){return this.check(Mn(0,a))},nonnegative(a){return this.check(io(0,a))},negative(a){return this.check(Dn(0,a))},nonpositive(a){return this.check(no(0,a))},multipleOf(a,o){return this.check(Rn(a,o))},step(a,o){return this.check(Rn(a,o))},finite(){return this}});const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function _(e){return vd(Rs,e)}const Vh=E("ZodNumberFormat",(e,t)=>{xu.init(e,t),Rs.init(e,t)});function In(e){return wd(Vh,e)}const Wh=E("ZodBoolean",(e,t)=>{Cu.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,a,o)=>fs(e,r,a)});function Ye(e){return kd(Wh,e)}const Gh=E("ZodUnknown",(e,t)=>{Au.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,a,o)=>ps()});function _o(){return _d(Gh)}const Kh=E("ZodNever",(e,t)=>{Su.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,a,o)=>ms(e,r,a)});function qh(e){return xd(Kh,e)}const Yh=E("ZodArray",(e,t)=>{Tu.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,a,o)=>vs(e,r,a,o),e.element=t.element,ia(e,"ZodArray",{min(r,a){return this.check(za(r,a))},nonempty(r){return this.check(za(1,r))},max(r,a){return this.check(ls(r,a))},length(r,a){return this.check(us(r,a))},unwrap(){return this.element}})});function Ee(e,t){return Ld(Yh,e,t)}const Jh=E("ZodObject",(e,t)=>{zu.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,a,o)=>ws(e,r,a,o),Fe(e,"shape",()=>t.shape),ia(e,"ZodObject",{keyof(){return I(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:_o()})},loose(){return this.clone({...this._zod.def,catchall:_o()})},strict(){return this.clone({...this._zod.def,catchall:qh()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return Yc(this,r)},safeExtend(r){return Jc(this,r)},merge(r){return Xc(this,r)},pick(r){return Kc(this,r)},omit(r){return qc(this,r)},partial(...r){return Zc(Ls,this,r[0])},required(...r){return $c(Fs,this,r[0])}})});function b(e,t){const r={type:"object",shape:e??{},...Z(t)};return new Jh(r)}const Xh=E("ZodUnion",(e,t)=>{Pu.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,a,o)=>ks(e,r,a,o),e.options=t.options});function Zh(e,t){return new Xh({type:"union",options:e,...Z(t)})}const $h=E("ZodIntersection",(e,t)=>{Du.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,a,o)=>_s(e,r,a,o)});function Qh(e,t){return new $h({type:"intersection",left:e,right:t})}const Nn=E("ZodRecord",(e,t)=>{Mu.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,a,o)=>xs(e,r,a,o),e.keyType=t.keyType,e.valueType=t.valueType});function Hn(e,t,r){return!t||!t._zod?new Nn({type:"record",keyType:L(),valueType:e,...Z(t)}):new Nn({type:"record",keyType:e,valueType:t,...Z(r)})}const xo=E("ZodEnum",(e,t)=>{Ru.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(a,o,n)=>gs(e,a,o),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(a,o)=>{const n={};for(const i of a)if(r.has(i))n[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new xo({...t,checks:[],...Z(o),entries:n})},e.exclude=(a,o)=>{const n={...t.entries};for(const i of a)if(r.has(i))delete n[i];else throw new Error(`Key ${i} not found in enum`);return new xo({...t,checks:[],...Z(o),entries:n})}});function I(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(a=>[a,a])):e;return new xo({type:"enum",entries:r,...Z(t)})}const ef=E("ZodTransform",(e,t)=>{Ou.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,a,o)=>ys(e,r),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new Vi(e.constructor.name);r.addIssue=n=>{if(typeof n=="string")r.issues.push(ra(n,r.value,t));else{const i=n;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=e),r.issues.push(ra(i))}};const o=t.transform(r.value,r);return o instanceof Promise?o.then(n=>(r.value=n,r.fallback=!0,r)):(r.value=o,r.fallback=!0,r)}});function Os(e){return new ef({type:"transform",transform:e})}const Ls=E("ZodOptional",(e,t)=>{ss.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,a,o)=>Jo(e,r,a,o),e.unwrap=()=>e._zod.def.innerType});function Un(e){return new Ls({type:"optional",innerType:e})}const tf=E("ZodExactOptional",(e,t)=>{Lu.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,a,o)=>Jo(e,r,a,o),e.unwrap=()=>e._zod.def.innerType});function rf(e){return new tf({type:"optional",innerType:e})}const af=E("ZodNullable",(e,t)=>{Fu.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,a,o)=>Cs(e,r,a,o),e.unwrap=()=>e._zod.def.innerType});function Bn(e){return new af({type:"nullable",innerType:e})}const of=E("ZodDefault",(e,t)=>{Iu.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,a,o)=>Ss(e,r,a,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function nf(e,t){return new of({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Ki(t)}})}const sf=E("ZodPrefault",(e,t)=>{Nu.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,a,o)=>Ts(e,r,a,o),e.unwrap=()=>e._zod.def.innerType});function cf(e,t){return new sf({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Ki(t)}})}const Fs=E("ZodNonOptional",(e,t)=>{Hu.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,a,o)=>As(e,r,a,o),e.unwrap=()=>e._zod.def.innerType});function lf(e,t){return new Fs({type:"nonoptional",innerType:e,...Z(t)})}const uf=E("ZodCatch",(e,t)=>{Uu.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,a,o)=>Es(e,r,a,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function df(e,t){return new uf({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Is=E("ZodPipe",(e,t)=>{cs.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,a,o)=>zs(e,r,a,o),e.in=t.in,e.out=t.out});function jn(e,t){return new Is({type:"pipe",in:e,out:t})}const hf=E("ZodPreprocess",(e,t)=>{Is.init(e,t),Bu.init(e,t)}),ff=E("ZodReadonly",(e,t)=>{ju.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,a,o)=>Ps(e,r,a,o),e.unwrap=()=>e._zod.def.innerType});function mf(e){return new ff({type:"readonly",innerType:e})}const pf=E("ZodCustom",(e,t)=>{Vu.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,a,o)=>bs(e,r)});function gf(e,t={}){return Fd(pf,e,t)}function bf(e,t){return Id(e,t)}function yf(e,t){return new hf({type:"pipe",in:Os(e),out:t})}function vf(e){return qu(Ms,e)}const Vn=b({x:_().int().min(0).describe("Column offset, 0-based"),y:_().int().min(0).describe("Row offset, 0-based"),w:_().int().min(1).describe("Width in grid columns"),h:_().int().min(1).describe("Height in grid rows")}),wf=b({accentHue:_().int().min(0).max(360).optional().describe("Override this card's accent hue (0–360) — its rim, title dot, and highlights. Inherits theme.accentHue if unset."),accentSat:_().min(0).max(100).optional().describe("Override this card's accent saturation (0–100)."),baseHue:_().int().min(0).max(360).optional().describe("Override this card's dark surface tint hue (0–360) — warm or cool just this one card. Inherits theme.baseHue if unset."),baseSat:_().min(0).max(100).optional().describe("Override this card's surface tint saturation (0–100)."),surfaceOpacity:_().min(.3).max(1).optional().describe("Override this card's surface opacity (0.3–1) — drop it toward 0.5 for a single frosted/glassy card over the background."),radius:_().min(0).optional().describe("Override this card's corner radius in px (0 = square)."),borderStrength:_().min(0).max(1).optional().describe("Override this card's rim opacity (0–1); 0 = borderless flat card."),density:_().min(.6).max(1.4).optional().describe("Override this card's padding scale (0.6–1.4)."),elevation:_().min(0).max(2).optional().describe("Override this card's shadow depth (0–2); raise it to float a hero card, 0 to flatten one.")}).describe("Per-frame cosmetic overrides — accent, surface tint, glass, corners, border, padding, shadow — for THIS card only. Every field optional; omit to inherit the dashboard `theme`/`appearance`."),kf=b({id:L().describe("Unique instance id within the dashboard"),frame:L().describe("Name of a registered frame"),style:wf.optional().describe("Optional per-frame cosmetic overrides (accent, glass, corners, …) for this card only. Omit to inherit the dashboard theme/appearance."),title:L().optional().describe('Optional custom card title. Omit it to use the frame\'s own polished default label (its catalogue `label`, e.g. "OI by Strike") — that is the norm. Only set this for a genuinely instance-specific label the default can\'t know, e.g. the ticker on a price-chart ("TSLA") or which outlet a news-feed shows. Never abbreviate. Ignored by chrome-less frames like heading.'),position:Vn,layouts:Hn(L(),Vn).optional().describe('Per-mode layout overrides keyed by grid.mode (e.g. "flow-horizontal"). `position` is the canonical flow-vertical layout; this holds the other modes\' placements so each layout mode keeps its own independent arrangement. Editor-managed — agents only need to set `position`.'),config:Hn(L(),_o()).default({}).describe("Frame config; validated against the frame's own schema at render time")}),_f=b({type:I(["none","color","gradient","unicorn","image"]).default("none").describe("Background style: 'none' (the signature dark indigo glow — the default), 'color' (a solid colour), 'gradient' (a custom two-colour linear gradient), 'unicorn' (an animated Unicorn Studio scene), or 'image' (a full-bleed photo/illustration behind the dashboard, with a legibility scrim)."),color:L().default("#0a0a12").describe("Solid background colour (any CSS colour). Used when type is 'color'."),gradientFrom:L().default("#1b1e4d").describe("Gradient start colour. Used when type is 'gradient'."),gradientTo:L().default("#07070c").describe("Gradient end colour. Used when type is 'gradient'."),gradientAngle:_().min(0).max(360).default(160).describe("Gradient angle in degrees (0 = upward, 90 = rightward, 180 = downward). Used when type is 'gradient'."),projectId:L().optional().describe("Unicorn Studio public project id — required when type is 'unicorn'."),scale:_().min(.1).max(2).default(1).describe("Unicorn scene render scale."),dpi:_().min(.5).max(3).default(1.5).describe("Unicorn scene device-pixel-ratio cap (perf vs sharpness)."),opacity:_().min(0).max(1).default(.16).describe("Opacity of the unicorn scene (0–1). Keep moderate (~0.15) so the animation reads as a living backdrop in the gutters without competing with the (opaque) dashboard cards."),imageUrl:L().optional().describe("Background image URL — required when type is 'image'. An https URL, or a local path served next to the dashboard (e.g. '/hero.png'). Rendered full-bleed behind everything."),imageFit:I(["cover","contain"]).default("cover").describe("How the background image fills the viewport when type is 'image': 'cover' crops to fill (default), 'contain' letterboxes to show the whole image."),imageBlur:_().min(0).max(40).default(0).describe("Gaussian blur applied to the background image in px (0–40). Blur a busy photo so the dashboard cards stay readable over it. Used when type is 'image'."),overlayOpacity:_().min(0).max(1).default(.55).describe("Opacity of the dark scrim laid over the background image (0–1). Raise it to darken a bright image so card text stays legible; lower it to let the image show through. Used when type is 'image'.")}).describe("Visual background rendered behind the whole dashboard."),xf=b({accentHue:_().int().min(0).max(360).default(242).describe("Brand accent hue in degrees on the HSL color wheel (0–360). Rotates the dashboard's accent — card rims, title dots, chart highlights, loading states — across the spectrum. 242 is the default zframes indigo; rough anchors: 0 red, 35 orange, 50 amber, 150 green, 190 teal, 210 blue, 280 violet, 330 pink. Semantic up/down green/red, asset logos, and per-frame chart colors stay fixed."),accentSat:_().min(0).max(100).default(90).describe("Accent saturation as an HSL percentage (0–100). 90 is the default vivid zframes accent; lower it for muted/pastel rims and dots, 0 for a near-grayscale monochrome accent. Pairs with accentHue — hue picks the color, saturation picks how vivid it is."),baseHue:_().int().min(0).max(360).default(233).describe("Hue of the dark card surface itself, in degrees (0–360). 233 is the default near-black indigo-navy; rotate it to re-temperature every card — e.g. 30 warms toward charcoal-brown, 150 toward deep forest, 210 toward cool slate. The surface stays dark (lightness is fixed); only its tint moves. Independent of accentHue, which only colours rims/highlights."),baseSat:_().min(0).max(100).default(20).describe("Saturation of the dark card surface as an HSL percentage (0–100). 20 is the default subtle navy tint; raise it for a richer coloured-black surface, drop it toward 0 for a neutral graphite/black with no colour cast. Pairs with baseHue."),upColor:L().regex(/^#[0-9a-fA-F]{6}$/,"must be a 6-digit hex colour like #3fd08f").default("#3fd08f").describe("Semantic colour for gains / positive change / bullish (up). 6-digit hex; default #3fd08f (green). Tints every gain delta, mover row, up-candle, and 'long'/'call' marker. Set this and downColor to a non-green/red pair (e.g. blue/orange) for a colourblind-friendly dashboard. Distinct from the accent (which is brand colour, not meaning) and from the error red."),downColor:L().regex(/^#[0-9a-fA-F]{6}$/,"must be a 6-digit hex colour like #ff6b81").default("#ff6b81").describe("Semantic colour for losses / negative change / bearish (down). 6-digit hex; default #ff6b81 (red). The counterpart to upColor — tints every loss delta, mover row, down-candle, and 'short'/'put' marker."),surface:I(["dark","light"]).default("dark").describe("Overall surface mode. 'dark' (default) is the signature dark dashboard — light text on dark cards. 'light' flips to a daylight scheme — dark text on near-white cards — for a printed/paper or bright-office look. The accent (baseHue tints the surface either way), the semantic up/down colours, and typography are unchanged; only the ink + card lightness invert.")}).describe("Dashboard-wide colour identity — accent (rims/highlights), the card-surface tint (base), the light/dark surface mode, and the semantic up/down (gain/loss) colours.");function Cf(e){const t=e==="light";return{"--zf-ink-l":t?"16%":"100%","--zf-surf-l1":t?"98%":"12.5%","--zf-surf-l2":t?"96%":"7%","--zf-surf-l3":t?"94%":"5.3%"}}const Af=b({fontFamily:I(["sans","mono","serif"]).default("sans").describe("Type family for all dashboard text. 'sans' is the default DM Sans (clean, modern); 'mono' switches to a monospaced system stack (a Bloomberg/terminal feel, numbers in fixed columns); 'serif' uses a system serif (editorial). Affects card titles, labels, and readouts alike."),numericStyle:I(["proportional","tabular"]).default("proportional").describe("How digits are spaced everywhere on the dashboard. 'proportional' is the default (natural widths); 'tabular' forces fixed-width figures (font-variant-numeric: tabular-nums) so live prices and tickers stop shifting sideways as digits change — recommended for number-dense dashboards. Hero stat numerals are always tabular regardless."),scale:_().min(.85).max(1.25).default(1).describe("Global text-size multiplier (0.85–1.25). 1 is the default. Scales all dashboard text together by setting the root font size, so chart labels, readouts, and titles grow or shrink as one — raise it for legibility on a large display, lower it to pack more in. Distinct from appearance.density, which scales card padding, not text. Grid cell heights are in pixels and stay fixed, so text can overflow a small card at high scale.")}).describe("Dashboard-wide typography — font family, numeric digit style, and global text scale."),Sf={sans:'"DM Sans", sans-serif',mono:'ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace',serif:'ui-serif, Georgia, "Times New Roman", serif'},Tf={proportional:"normal",tabular:"tabular-nums"},Ef=b({radius:_().min(0).default(18).describe("Frame corner radius in pixels, applied to every card via --zf-frame-radius. 0 squares the corners; the editor's Appearance rail exposes this as a slider."),borderStrength:_().min(0).max(1).default(.22).describe("Opacity of each card's accent rim (0–1) via --zf-border-alpha. 0 = borderless flat cards, 1 = a solid outlined rim; 0.22 is the default soft edge. Hover lifts it a notch automatically."),surfaceOpacity:_().min(.3).max(1).default(1).describe("Opacity of the card surface (0.3–1) via --zf-surface-opacity. 1 = opaque cards (default); lower it toward 0.5 for frosted/glassy cards that let the dashboard background show through. Kept ≥0.3 so card content stays legible."),density:_().min(.6).max(1.4).default(1).describe("Card padding scale (0.6–1.4) via --zf-density. 1 = the comfortable default; <1 tightens padding for information-dense dashboards, >1 gives roomier breathing space."),elevation:_().min(0).max(2).default(1).describe("Card shadow depth (0–2) via --zf-elevation. 0 = flat (no drop shadow), 1 = the default resting shadow, 2 = a heavier floating lift. Scales the card's drop shadow only.")}).describe("Card surface treatment — corners, border, opacity, padding density, and shadow depth. Distinct from `grid` (geometry) and `theme` (accent color)."),zf=yf(e=>{if(!e||typeof e!="object")return e;let t=e;const r=t.grid;if(r&&typeof r=="object"&&"radius"in r){const{radius:o,...n}=r;t={...t,grid:n,appearance:{radius:o,...t.appearance??{}}}}const a=t.background;return a&&typeof a=="object"&&a.type==="gradient"&&!("gradientFrom"in a)&&(t={...t,background:{...a,type:"none"}}),t},b({version:vf().default("1.0.0").describe('Spec version, a semver-style string like package.json\'s ("1.0.0"). A legacy numeric `1` from an older spec is coerced to "1".'),title:L().describe("Dashboard name, like package.json's name."),author:L().optional().describe(`Who made this dashboard — a free-form credit, like package.json's author ("You" or "You <you@example.com>"). Optional.`),grid:b({mode:I(["flow-vertical","flow-horizontal","canvas"]).default("flow-vertical").describe("Layout model. 'flow-vertical' (default): a fixed number of columns fill the viewport width; the board grows downward and scrolls vertically — the classic dashboard. 'flow-horizontal': a fixed number of rows fill the viewport height; the board grows rightward and scrolls horizontally — suited to ultrawide and wall displays. 'canvas': an unbounded pan/zoom plane (not yet implemented; rendered as flow-vertical for now)."),columns:_().int().min(1).default(12).describe("Number of columns the grid is divided into across the viewport width (flow-vertical). A frame's `position` x/w are in these column units."),rowHeight:_().min(8).default(96).describe("Pixel height of each grid row (flow-vertical). A frame's `position` y/h are in these row units."),rows:_().int().min(1).default(6).describe('Number of height-bounded rows the horizontal board (flow-horizontal) fills before it scrolls sideways. A frame\'s `layouts["flow-horizontal"]` y/h are in these row units. Ignored in flow-vertical.'),gap:_().min(0).default(12).describe("Pixels of space between frames (the grid gutter). 0 makes the cards flush; the editor's Layout rail exposes this as a slider."),paddingX:_().min(0).default(0).describe("Horizontal padding (px) inside the dashboard grid — the left/right gutter between the frames and the viewport edges (the x-axis inset). 0 (default) keeps the board flush to the edges; the editor's Layout rail exposes this as a slider.")}).default({mode:"flow-vertical",columns:12,rowHeight:96,rows:6,gap:12,paddingX:0}),background:_f.default({type:"none",color:"#0a0a12",gradientFrom:"#1b1e4d",gradientTo:"#07070c",gradientAngle:160,scale:1,dpi:1.5,opacity:.16,imageFit:"cover",imageBlur:0,overlayOpacity:.55}),theme:xf.default({accentHue:242,accentSat:90,baseHue:233,baseSat:20,upColor:"#3fd08f",downColor:"#ff6b81",surface:"dark"}),typography:Af.default({fontFamily:"sans",numericStyle:"proportional",scale:1}),appearance:Ef.default({radius:18,borderStrength:.22,surfaceOpacity:1,density:1,elevation:1}),frames:Ee(kf)})),gk=[{key:"zframes",label:"zframes",description:"The signature indigo on near-black navy, DM Sans, soft rounded cards — the default look.",theme:{accentHue:242,accentSat:90,baseHue:233,baseSat:20},typography:{fontFamily:"sans",numericStyle:"proportional"},appearance:{radius:18,borderStrength:.22,surfaceOpacity:1,density:1,elevation:1},scene:"aurora"},{key:"terminal",label:"Terminal",description:"Phosphor green on black, monospaced, fixed-width digits, sharp dense flat cards — a trading-terminal feel.",theme:{accentHue:145,accentSat:85,baseHue:150,baseSat:16},typography:{fontFamily:"mono",numericStyle:"tabular"},appearance:{radius:4,borderStrength:.34,surfaceOpacity:1,density:.85,elevation:.4},scene:"verdant"},{key:"amber",label:"Amber",description:"Warm amber on charcoal, monospaced, tabular, slightly sharp cards — a retro CRT console.",theme:{accentHue:38,accentSat:95,baseHue:30,baseSat:18},typography:{fontFamily:"mono",numericStyle:"tabular"},appearance:{radius:6,borderStrength:.3,surfaceOpacity:1,density:.9,elevation:.6},scene:"ember"},{key:"graphite",label:"Graphite",description:"Near-grayscale slate, faint rims, flat quiet cards, tabular numbers — calm and neutral.",theme:{accentHue:220,accentSat:8,baseHue:220,baseSat:4},typography:{fontFamily:"sans",numericStyle:"tabular"},appearance:{radius:14,borderStrength:.14,surfaceOpacity:1,density:1,elevation:.35},scene:"aurora"},{key:"synthwave",label:"Synthwave",description:"Hot magenta on deep violet-black, faintly glassy cards floating on a strong glow — vivid and nocturnal.",theme:{accentHue:320,accentSat:88,baseHue:280,baseSat:26},typography:{fontFamily:"sans",numericStyle:"proportional"},appearance:{radius:20,borderStrength:.3,surfaceOpacity:.9,density:1,elevation:1.7},scene:"dusk"},{key:"editorial",label:"Editorial",description:"A warm serif on soft charcoal-brown, roomy padding, gentle lift — reads like a financial broadsheet.",theme:{accentHue:22,accentSat:60,baseHue:28,baseSat:12},typography:{fontFamily:"serif",numericStyle:"proportional"},appearance:{radius:10,borderStrength:.18,surfaceOpacity:1,density:1.15,elevation:.8},scene:"ember"},{key:"nord",label:"Nord",description:"Cool arctic blue-grey — a calm, muted ice-blue accent on slate, soft rounded cards. Understated and easy on the eyes.",theme:{accentHue:200,accentSat:55,baseHue:220,baseSat:16},typography:{fontFamily:"sans",numericStyle:"tabular"},appearance:{radius:12,borderStrength:.2,surfaceOpacity:1,density:1,elevation:.6},scene:"tide"},{key:"oceanic",label:"Oceanic",description:"Deep teal on blue-black — a vivid sea-green accent, roomy rounded cards. Fresh and marine.",theme:{accentHue:185,accentSat:70,baseHue:200,baseSat:22},typography:{fontFamily:"sans",numericStyle:"proportional"},appearance:{radius:16,borderStrength:.22,surfaceOpacity:1,density:1,elevation:.8},scene:"tide"},{key:"crimson",label:"Crimson",description:"Bold red on near-black — a hot crimson accent, tabular figures, sharp dense cards. Aggressive, high-contrast trading floor.",theme:{accentHue:356,accentSat:78,baseHue:350,baseSat:15},typography:{fontFamily:"sans",numericStyle:"tabular"},appearance:{radius:8,borderStrength:.3,surfaceOpacity:1,density:.95,elevation:1},scene:"ember"},{key:"gold-noir",label:"Gold Noir",description:"Luxe gold on black — a warm gilt accent, serif type, roomy lifted cards. Understated wealth-desk elegance.",theme:{accentHue:45,accentSat:85,baseHue:40,baseSat:10},typography:{fontFamily:"serif",numericStyle:"proportional"},appearance:{radius:10,borderStrength:.25,surfaceOpacity:1,density:1.1,elevation:1.2},scene:"ember"}],Pf="YrTzGatwjK7EoFpCSfgZ",Df=[{key:"aurora",label:"Aurora",description:"The signature zframes scene — a slow indigo aurora drifting over near-black. The default backdrop.",projectId:Pf,baseHue:242,swatch:"radial-gradient(120% 120% at 30% 20%, hsl(248 80% 60%) 0%, hsl(250 70% 22%) 45%, hsl(240 40% 6%) 100%)"},{key:"nebula",label:"Nebula",description:"A deeper violet nebula with brighter drifting cores — a touch more energy than Aurora.",projectId:"K42KSY4FXeXhjVOj9RgT",baseHue:268,swatch:"radial-gradient(120% 120% at 70% 30%, hsl(280 75% 62%) 0%, hsl(262 65% 26%) 45%, hsl(250 45% 7%) 100%)"},{key:"ember",label:"Ember",description:"Warm ember tones drifting over charcoal.",projectId:"E4221P7lwTy049d7ISxc",baseHue:24,swatch:"radial-gradient(120% 120% at 30% 25%, hsl(24 85% 58%) 0%, hsl(12 65% 28%) 45%, hsl(8 40% 7%) 100%)"},{key:"tide",label:"Tide",description:"Cool teal currents on deep blue-black.",projectId:"cYpXuEzDqm4r3fdp4TGx",baseHue:190,swatch:"radial-gradient(120% 120% at 70% 25%, hsl(180 70% 55%) 0%, hsl(196 65% 26%) 45%, hsl(205 45% 7%) 100%)"},{key:"verdant",label:"Verdant",description:"Soft green light over near-black.",projectId:"PrFtFGDE5duemLmr2YKQ",baseHue:150,swatch:"radial-gradient(120% 120% at 30% 25%, hsl(140 65% 55%) 0%, hsl(152 55% 24%) 45%, hsl(160 40% 6%) 100%)"},{key:"dusk",label:"Dusk",description:"Magenta-pink glow fading into dark.",projectId:"qpoj0wFWmgwRVXmzRMiL",baseHue:320,swatch:"radial-gradient(120% 120% at 70% 30%, hsl(320 80% 62%) 0%, hsl(300 60% 28%) 45%, hsl(290 45% 7%) 100%)"}],Mf=242;function Rf(e){const t=Df.find(r=>r.projectId===e);return t?t.baseHue:Mf}const Ns=z.createContext(null),Hs=z.createContext([]);function Of({providers:e,children:t}){const r=Array.isArray(e)?e:[e];return A.jsx(Hs.Provider,{value:r,children:t})}function Ga(){return z.useContext(Hs)}function ee(e){return Ga().find(r=>r.capabilities.includes(e))??null}function re(e,t,r,a){const[o,n]=z.useState(t),[i,s]=z.useState(!0),c=z.useContext(Ns);return z.useEffect(()=>{if(!e){s(!1);return}let l=!1;n(t),s(!0);const u=()=>{c&&!c.visibleRef.current||e().then(p=>{l||(n(p),s(!1))}).catch(()=>{l||s(!1)})};u();let h;const f=()=>{h=setTimeout(()=>{u(),f()},a*(.85+Math.random()*.3))};f();const d=c==null?void 0:c.subscribe(p=>{p&&!l&&u()});return()=>{l=!0,clearTimeout(h),d==null||d()}},r),{data:o,isLoading:i}}function Lf(e){const t=ee("quote-stream"),[r,a]=z.useState({}),[o,n]=z.useState(!0),i=e.join(",");return z.useEffect(()=>{const s=i.split(",").filter(Boolean);if(a({}),!(t!=null&&t.subscribeMids)||s.length===0){n(!1);return}let c=!1,l=!1;n(!0);const u=setTimeout(()=>{!c&&!l&&n(!1)},8e3),h=t.subscribeMids(f=>{c||(l=!0,clearTimeout(u),n(!1),a(d=>{let p=!1;const m={};for(const g of s){const y=f[g];y!==void 0&&(m[g]=y,y!==d[g]&&(p=!0))}return Object.keys(d).length!==Object.keys(m).length&&(p=!0),p?m:d}))},s);return()=>{c=!0,clearTimeout(u),h()}},[t,i]),{mids:r,isLoading:o}}function bk(e){return Lf(e).mids}function Ff(e,t=3e4){const r=ee("day-stats"),a=e?[...e].sort().join(","):"*",o=a==="*"?void 0:a.split(",").filter(Boolean),{data:n,isLoading:i}=re(r!=null&&r.getDayStats?()=>r.getDayStats(o):null,{},[r,a,t],t);return{stats:n,isLoading:i}}function Wn(e,t=3e4){return Ff(e,t).stats}function yk(e,t,r=5*6e4){const a=ee("funding-history"),o=e.join(","),n=o.split(",").filter(Boolean),{data:i,isLoading:s}=re(a!=null&&a.getFundingHistory&&n.length>0?()=>a.getFundingHistory(n,t):null,{},[a,o,t,r],r);return{history:i,isLoading:s}}function vk(e,t,r,a=6e4){const o=ee("ohlcv"),{data:n,isLoading:i}=re(o!=null&&o.getCandles&&e?()=>o.getCandles(e,t,r):null,[],[o,e,t,r,a],a);return{candles:n,isLoading:i}}function wk(e,t,r,a=6e4){const o=ee("ohlcv"),n=e.join(","),i=n.split(",").filter(Boolean),{data:s,isLoading:c}=re(o!=null&&o.getCandles&&i.length>0?async()=>{const l=await Promise.all(i.map(u=>o.getCandles(u,t,r).then(h=>[u,h]).catch(()=>[u,[]])));return Object.fromEntries(l)}:null,{},[o,n,t,r,a],a);return{candles:s,isLoading:c}}function kk(e=10*6e4){const t=ee("tvl"),{data:r,isLoading:a}=re(t!=null&&t.getTvlByChain?()=>t.getTvlByChain():null,[],[t,e],e);return{entries:r,isLoading:a}}function _k(e=10*6e4){const t=ee("dex-volume"),{data:r,isLoading:a}=re(t!=null&&t.getDexVolume?()=>t.getDexVolume():null,[],[t,e],e);return{entries:r,isLoading:a}}function xk(e,t=5*6e4){const r=ee("dex-volume"),a=e.join(","),o=a.split(",").filter(Boolean),{data:n,isLoading:i}=re(r!=null&&r.getDexVolumeHistory&&o.length>0?()=>r.getDexVolumeHistory(o):null,{},[r,a,t],t);return{history:n,isLoading:i}}function Ck(e=10*6e4){const t=ee("protocol-tvl"),{data:r,isLoading:a}=re(t!=null&&t.getProtocolTvl?()=>t.getProtocolTvl():null,[],[t,e],e);return{entries:r,isLoading:a}}function Ak(e,t=5*6e4){const r=ee("protocol-tvl"),a=e.join(","),o=a.split(",").filter(Boolean),{data:n,isLoading:i}=re(r!=null&&r.getProtocolTvlHistory&&o.length>0?()=>r.getProtocolTvlHistory(o):null,{},[r,a,t],t);return{history:n,isLoading:i}}function Sk(e=10*6e4){const t=ee("protocol-fees"),{data:r,isLoading:a}=re(t!=null&&t.getProtocolFees?()=>t.getProtocolFees():null,[],[t,e],e);return{entries:r,isLoading:a}}function Tk(e=10*6e4){const t=ee("coin-markets"),{data:r,isLoading:a}=re(t!=null&&t.getCoinMarkets?()=>t.getCoinMarkets():null,[],[t,e],e);return{entries:r,isLoading:a}}function Ek(e=300,t=15*6e4){const r=ee("coin-movers"),{data:a,isLoading:o}=re(r!=null&&r.getCoinMovers?()=>r.getCoinMovers(e):null,[],[r,e,t],t);return{entries:a,isLoading:o}}function zk(e,t=3e4){const r=ee("open-interest"),a=e?[...e].sort().join(","):"*",o=a==="*"?void 0:a.split(",").filter(Boolean),{data:n,isLoading:i}=re(r!=null&&r.getOpenInterest?()=>r.getOpenInterest(o):null,[],[r,a,t],t);return{entries:n,isLoading:i}}function Pk(e=15*6e4){const t=ee("global-market"),{data:r,isLoading:a}=re(t!=null&&t.getGlobalMarket?()=>t.getGlobalMarket():null,null,[t,e],e);return{market:r,isLoading:a}}function Dk(e=30,t=60*6e4){const r=ee("sentiment"),{data:a,isLoading:o}=re(r!=null&&r.getFearGreed?()=>r.getFearGreed(e):null,[],[r,e,t],t);return{points:a,isLoading:o}}function Mk(e=15*6e4){const t=ee("reference-rates"),{data:r,isLoading:a}=re(t!=null&&t.getReferenceRates?()=>t.getReferenceRates():null,[],[t,e],e);return{rates:r,isLoading:a}}function Rk(e,t,r=60*6e4){const a=ee("fx-rates"),o=t.join(","),{data:n,isLoading:i}=re(a!=null&&a.getFxRates?()=>a.getFxRates(e,[...t]):null,[],[a,e,o,r],r);return{rates:n,isLoading:i}}function Ok(e=360*6e4){const t=ee("treasury-rates"),{data:r,isLoading:a}=re(t!=null&&t.getTreasuryAverageRates?()=>t.getTreasuryAverageRates():null,[],[t,e],e);return{rates:r,isLoading:a}}function Lk(e=360*6e4){const t=ee("yield-curve"),{data:r,isLoading:a}=re(t!=null&&t.getYieldCurve?()=>t.getYieldCurve():null,null,[t,e],e);return{curve:r,isLoading:a}}function Fk(e=8,t=360*6e4){const r=ee("treasury-auctions"),{data:a,isLoading:o}=re(r!=null&&r.getTreasuryAuctions?()=>r.getTreasuryAuctions(e):null,[],[r,e,t],t);return{auctions:a,isLoading:o}}function Ik(e=180,t=360*6e4){const r=ee("national-debt"),{data:a,isLoading:o}=re(r!=null&&r.getNationalDebt?()=>r.getNationalDebt(e):null,null,[r,e,t],t);return{debt:a,isLoading:o}}function Nk(e=360*6e4){const t=ee("financial-stress"),{data:r,isLoading:a}=re(t!=null&&t.getFinancialStress?()=>t.getFinancialStress():null,null,[t,e],e);return{stress:r,isLoading:a}}function Hk(e,t,r,a=720*6e4){const o=ee("macro-series"),{data:n,isLoading:i}=re(o!=null&&o.getMacroSeries&&e?()=>o.getMacroSeries(e,t,r):null,null,[o,e,t,r,a],a);return{series:n,isLoading:i}}function Uk(e,t=30*6e4){const r=ee("filings"),{data:a,isLoading:o}=re(r!=null&&r.getCompanyFilings&&e?()=>r.getCompanyFilings(e):null,null,[r,e,t],t);return{data:a,isLoading:o}}function Bk(e,t=720*6e4){const r=ee("fundamentals"),{data:a,isLoading:o}=re(r!=null&&r.getCompanyFacts&&e?()=>r.getCompanyFacts(e):null,null,[r,e,t],t);return{data:a,isLoading:o}}function jk(e,t=360*6e4){const r=ee("short-volume"),a=e.join(","),o=a.split(",").filter(Boolean),{data:n,isLoading:i}=re(r!=null&&r.getShortVolume&&o.length>0?()=>r.getShortVolume(o):null,{},[r,a,t],t);return{data:n,isLoading:i}}function Vk(e,t,r,a=5*6e4){const o=ee("news"),n=t?t.join(","):"",{data:i,isLoading:s}=re(o!=null&&o.getNews&&e?()=>o.getNews({feed:e,symbols:n?n.split(","):void 0,limit:r}):null,[],[o,e,n,r,a],a);return{items:i,isLoading:s}}function Wk(e=3e4){const t=ee("btc-fees"),{data:r,isLoading:a}=re(t!=null&&t.getBtcFees?()=>t.getBtcFees():null,null,[t,e],e);return{fees:r,isLoading:a}}function Gk(e=15e3){const t=ee("btc-mempool"),{data:r,isLoading:a}=re(t!=null&&t.getMempoolState?()=>t.getMempoolState():null,null,[t,e],e);return{state:r,isLoading:a}}function Kk(e=8,t=3e4){const r=ee("btc-blocks"),{data:a,isLoading:o}=re(r!=null&&r.getBtcBlocks?()=>r.getBtcBlocks(e):null,[],[r,e,t],t);return{blocks:a,isLoading:o}}function qk(e="1y",t=30*6e4){const r=ee("btc-hashrate"),{data:a,isLoading:o}=re(r!=null&&r.getNetworkHashrate?()=>r.getNetworkHashrate(e):null,null,[r,e,t],t);return{data:a,isLoading:o}}function Yk(e=6e4){const t=ee("btc-difficulty"),{data:r,isLoading:a}=re(t!=null&&t.getDifficultyAdjustment?()=>t.getDifficultyAdjustment():null,null,[t,e],e);return{adjustment:r,isLoading:a}}function Jk(e="1w",t=5*6e4){const r=ee("mining-pools"),{data:a,isLoading:o}=re(r!=null&&r.getMiningPools?()=>r.getMiningPools(e):null,null,[r,e,t],t);return{pools:a,isLoading:o}}function Xk(e=30*6e4){const t=ee("lightning-stats"),{data:r,isLoading:a}=re(t!=null&&t.getLightningStats?()=>t.getLightningStats():null,null,[t,e],e);return{stats:r,isLoading:a}}function Zk(e,t=5*6e4){const r=ee("options-summary"),a=(e||"BTC").toUpperCase(),{data:o,isLoading:n}=re(r!=null&&r.getOptionsSummary?()=>r.getOptionsSummary(a):null,null,[r,a,t],t);return{summary:o,isLoading:n}}function $k(e,t=6e4){const r=Ga(),a=e?r.find(s=>{var c;return!!s.getPortfolio&&s.capabilities.includes("portfolio")&&(((c=s.portfolioKinds)==null?void 0:c.includes(e.kind))??!0)})??null:null,o=e?`${e.kind}:${e.address??""}`:"",{data:n,isLoading:i}=re(a&&e?()=>a.getPortfolio(e):null,null,[a,o,t],t);return{portfolio:n,isLoading:i}}function Qk(e,t,r=43200,a=10*6e4){const o=ee("volatility-index"),n=(e||"BTC").toUpperCase(),{data:i,isLoading:s}=re(o!=null&&o.getVolatilityIndex?()=>o.getVolatilityIndex(n,t,r):null,[],[o,n,t,r,a],a);return{points:i,isLoading:s}}function e_(e=180*6e4){const t=ee("onchain-valuation"),{data:r,isLoading:a}=re(t!=null&&t.getOnchainValuation?()=>t.getOnchainValuation():null,null,[t,e],e);return{valuation:r,isLoading:a}}function t_(e="btc",t=360*6e4){const r=ee("price-history-daily"),a=e.toLowerCase(),{data:o,isLoading:n}=re(r!=null&&r.getDailyCloseHistory?()=>r.getDailyCloseHistory(a):null,[],[r,a,t],t);return{history:o,isLoading:n}}function r_(e=720*6e4){const t=ee("onchain-cycle-extras"),{data:r,isLoading:a}=re(t!=null&&t.getOnchainExtras?()=>t.getOnchainExtras():null,null,[t,e],e);return{extras:r,isLoading:a}}function a_(e=60*6e4){const t=ee("dollar-index"),{data:r,isLoading:a}=re(t!=null&&t.getDollarIndex?()=>t.getDollarIndex():null,null,[t,e],e);return{dxy:r,isLoading:a}}function o_(e=60*6e4){const t=ee("stablecoins"),{data:r,isLoading:a}=re(t!=null&&t.getStablecoinSupply?()=>t.getStablecoinSupply():null,null,[t,e],e);return{supply:r,isLoading:a}}function n_(e=15*6e4){const t=ee("yields"),{data:r,isLoading:a}=re(t!=null&&t.getYieldPools?()=>t.getYieldPools():null,[],[t,e],e);return{pools:r,isLoading:a}}function i_(e=10*6e4){const t=ee("fees-overview"),{data:r,isLoading:a}=re(t!=null&&t.getFeesOverview?()=>t.getFeesOverview():null,null,[t,e],e);return{fees:r,isLoading:a}}function s_(e=5*6e4){const t=ee("funding-comparison"),{data:r,isLoading:a}=re(t!=null&&t.getFundingComparison?()=>t.getFundingComparison():null,[],[t,e],e);return{comparison:r,isLoading:a}}function c_(e=2*6e4){const t=ee("eth-supply"),{data:r,isLoading:a}=re(t!=null&&t.getEthSupply?()=>t.getEthSupply():null,null,[t,e],e);return{supply:r,isLoading:a}}function l_(e=12,t=5*6e4){const r=ee("prediction-markets"),{data:a,isLoading:o}=re(r!=null&&r.getPredictionMarkets?()=>r.getPredictionMarkets(e):null,[],[r,e,t],t);return{markets:a,isLoading:o}}function u_(e="btc",t=360*6e4){const r=ee("etf-flows"),a=e.toLowerCase(),{data:o,isLoading:n}=re(r!=null&&r.getEtfFlows?()=>r.getEtfFlows(a):null,null,[r,a,t],t);return{flows:o,isLoading:n}}function d_(e=10*6e4){const t=ee("trending-coins"),{data:r,isLoading:a}=re(t!=null&&t.getTrendingCoins?()=>t.getTrendingCoins():null,[],[t,e],e);return{coins:r,isLoading:a}}function h_(e=12*6e4){const t=ee("sector-performance"),{data:r,isLoading:a}=re(t!=null&&t.getSectorPerformance?()=>t.getSectorPerformance():null,[],[t,e],e);return{sectors:r,isLoading:a}}function f_(e=60*6e4){const t=ee("nft-market"),{data:r,isLoading:a}=re(t!=null&&t.getNftMarket?()=>t.getNftMarket():null,[],[t,e],e);return{collections:r,isLoading:a}}function m_(e="eth",t=2*6e4){const r=ee("dex-pools"),{data:a,isLoading:o}=re(r!=null&&r.getDexPools?()=>r.getDexPools(e):null,[],[r,e,t],t);return{pools:a,isLoading:o}}function p_(e=5*6e4){const t=ee("chain-activity"),{data:r,isLoading:a}=re(t!=null&&t.getChainActivity?()=>t.getChainActivity():null,[],[t,e],e);return{chains:r,isLoading:a}}const If=z.createContext(null);function g_(){return z.useContext(If)}function Nf(e){if(!e)return{};const t={};return e.accentHue!==void 0&&(t["--zf-accent-hue"]=e.accentHue),e.accentSat!==void 0&&(t["--zf-accent-sat"]=`${e.accentSat}%`),e.baseHue!==void 0&&(t["--zf-base-hue"]=e.baseHue),e.baseSat!==void 0&&(t["--zf-base-sat"]=`${e.baseSat}%`),e.surfaceOpacity!==void 0&&(t["--zf-surface-opacity"]=e.surfaceOpacity),e.radius!==void 0&&(t["--zf-frame-radius"]=`${e.radius}px`),e.borderStrength!==void 0&&(t["--zf-border-alpha"]=e.borderStrength),e.density!==void 0&&(t["--zf-density"]=e.density),e.elevation!==void 0&&(t["--zf-elevation"]=e.elevation),t}const Hf=`
66
- .zf-grid {
67
- display: grid;
68
- gap: var(--zf-gap, 12px);
69
- padding-inline: var(--zf-pad-x, 0);
70
- grid-template-columns: repeat(var(--zf-cols, 12), minmax(0, 1fr));
71
- grid-auto-rows: var(--zf-row-h, 96px);
72
- /* Bridge the type family onto the dashboard subtree: redefine --font-dmsans
73
- HERE (where --zf-font-family is set inline) so the chart utilities and frame
74
- titles that read var(--font-dmsans) pick up the chosen family. Declaring it
75
- on this container — not at :root — is what makes the var() substitution see
76
- the inline --zf-font-family. (The editor mirrors this on .zf-editor.) */
77
- --font-dmsans: var(--zf-font-family, "DM Sans", sans-serif);
78
- }
79
- /* flow-horizontal: the board is bounded to the viewport height as --zf-h-rows
80
- equal bands and grows rightward, scrolling sideways. The vertical position
81
- can't be honoured here (its y runs to 100+ rows), so each frame uses its own
82
- stored horizontal layout instead: the renderer emits real --zf-col/row-start
83
- for a frame that HAS a horizontal layout (explicit placement, via the base
84
- .zf-frame rule), and OMITS them for one that doesn't (the auto var-fallback)
85
- so grid-auto-flow: column dense packs it by w/h size — the fallback for
86
- un-edited / agent-generated specs. Column tracks reuse the vertical row height
87
- (--zf-row-h) so cells stay roughly square. Gated above the phone breakpoint so
88
- phones keep the single-column reflow below. */
89
- @media (min-width: 641px) {
90
- .zf-grid.zf-flow-horizontal {
91
- grid-template-columns: none;
92
- grid-template-rows: repeat(var(--zf-h-rows, 6), minmax(0, 1fr));
93
- grid-auto-flow: column dense;
94
- grid-auto-columns: var(--zf-row-h, 96px);
95
- height: var(--zf-h-height, calc(100vh - 220px));
96
- min-height: 420px;
97
- overflow-x: auto;
98
- overflow-y: hidden;
99
- align-content: stretch;
100
- }
101
- }
102
- .zf-frame {
103
- grid-column: var(--zf-col-start, auto) / span var(--zf-col-span, 1);
104
- grid-row: var(--zf-row-start, auto) / span var(--zf-row-span, 1);
105
- position: relative;
106
- display: flex;
107
- flex-direction: column;
108
- min-height: 0;
109
- /* visible (not hidden) so the hover glow on ::after can bleed past the card
110
- edge exactly like the original box-shadow did. The card itself has nothing
111
- to clip — its surface/border are rounded by border-radius, and content lives
112
- in .zf-frame-body which carries the interior clip below. */
113
- overflow: visible;
114
- padding: calc(16px * var(--zf-density, 1)) calc(18px * var(--zf-density, 1));
115
- /* Digit spacing for everything inside the card. Default \`normal\` is a no-op;
116
- spec.typography.numericStyle="tabular" sets --zf-numeric so live prices stop
117
- jittering. Hero numerals carry their own tabular-nums regardless. */
118
- font-variant-numeric: var(--zf-numeric, normal);
119
- /* Card surface. The three dark stops are expressed off --zf-base-hue /
120
- --zf-base-sat (spec.theme) with their lightness baked, so the default
121
- hsl(233 20% …) reproduces the original navy to within ~1/255, while the base
122
- knobs let the whole surface warm, cool, or desaturate toward black. */
123
- background: var(--zf-frame-bg, linear-gradient(165deg, hsl(var(--zf-base-hue, 233) var(--zf-base-sat, 20%) var(--zf-surf-l1, 12.5%) / calc(0.82 * var(--zf-surface-opacity, 1))) 0%, hsl(var(--zf-base-hue, 233) var(--zf-base-sat, 20%) var(--zf-surf-l2, 7%) / calc(0.86 * var(--zf-surface-opacity, 1))) 60%, hsl(var(--zf-base-hue, 233) var(--zf-base-sat, 20%) var(--zf-surf-l3, 5.3%) / calc(0.9 * var(--zf-surface-opacity, 1))) 100%));
124
- border: 1px solid var(--zf-frame-border, hsl(var(--zf-accent-hue, 242) var(--zf-accent-sat, 90%) 76% / var(--zf-border-alpha, 0.22)));
125
- border-radius: var(--zf-frame-radius, 18px);
126
- box-shadow: var(--zf-frame-shadow, inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.4), 0 calc(18px * var(--zf-elevation, 1)) calc(44px * var(--zf-elevation, 1)) -26px rgba(0, 0, 0, 0.9));
127
- /* Hover animates only GPU-composited properties: \`transform\` is the lift,
128
- \`border-color\` is a cheap 1px paint. The surface brightening + accent glow
129
- are deliberately NOT transitioned here — animating the gradient \`background\`
130
- and the large-blur \`box-shadow\` re-rasterized the whole translucent card
131
- every frame over the animated backdrop, which is what made the hover lag.
132
- Those now ride the opacity-faded ::after overlay defined below. */
133
- transition:
134
- border-color 0.15s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
135
- transform 0.15s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
136
- /* Frames arrive in a soft top-down cascade on first paint. The translate
137
- property (not transform) carries the motion, so the hover lift stays
138
- independent; the backwards fill holds the hidden state through the stagger
139
- delay, then hands transform back to :hover once the entrance settles. */
140
- animation: zf-enter 0.45s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1)) backwards;
141
- animation-delay: min(calc((var(--zf-enter-i, 0) + 1) * 35ms), 350ms);
142
- }
143
- /* The brightened surface + accent glow that appear on hover live on this overlay
144
- and cross-fade via \`opacity\` (GPU-composited) instead of transitioning the
145
- card's own gradient/box-shadow — both re-rasterize the whole translucent card
146
- every frame over the animated backdrop, which is what made the hover lag. The
147
- card is overflow:visible (above), so this layer's OUTER accent shadow bleeds
148
- past the edge exactly like the original hover did; the layer paints once, then
149
- only its opacity animates. It sits above the base surface (z-index:0) and below
150
- the card content (z-index:1) so text and charts stay crisp, and keeps the
151
- --zf-frame-bg-hover override hook. Errors keep their own red hover (see
152
- .zf-frame--error), so this is the non-error path. */
153
- .zf-frame:not(.zf-frame--error)::after {
154
- content: '';
155
- position: absolute;
156
- inset: 0;
157
- z-index: 0;
158
- border-radius: inherit;
159
- pointer-events: none;
160
- opacity: 0;
161
- background: var(--zf-frame-bg-hover, linear-gradient(165deg, hsl(var(--zf-base-hue, 233) var(--zf-base-sat, 20%) 16.5% / calc(0.88 * var(--zf-surface-opacity, 1))) 0%, hsl(var(--zf-base-hue, 233) var(--zf-base-sat, 20%) 9% / calc(0.9 * var(--zf-surface-opacity, 1))) 60%, hsl(var(--zf-base-hue, 233) var(--zf-base-sat, 20%) 6.3% / calc(0.92 * var(--zf-surface-opacity, 1))) 100%));
162
- /* The accent half of the original hover shadow, verbatim: brighter top inner
163
- highlight, a 1px accent ring at the edge, and the soft accent glow pooling
164
- below and around the card. */
165
- box-shadow:
166
- inset 0 1px 0 rgba(255, 255, 255, 0.09),
167
- 0 0 0 1px hsl(var(--zf-accent-hue, 242) var(--zf-accent-sat, 90%) 76% / 0.12),
168
- 0 calc(20px * var(--zf-elevation, 1)) calc(60px * var(--zf-elevation, 1)) -28px hsl(var(--zf-accent-hue, 242) var(--zf-accent-sat, 90%) 76% / 0.4);
169
- transition: opacity 0.15s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
170
- }
171
- /* Hover lift is pointer-only — on touch it would stick after a tap. The lift
172
- (transform) + brighter border transition on the card itself; the surface
173
- brightening + accent glow ride the ::after overlay's opacity above. */
174
- @media (hover: hover) {
175
- .zf-frame:hover {
176
- border-color: var(--zf-frame-border-hover, hsl(var(--zf-accent-hue, 242) var(--zf-accent-sat, 90%) 76% / calc(var(--zf-border-alpha, 0.22) + 0.2)));
177
- transform: translateY(-2px);
178
- }
179
- .zf-frame:not(.zf-frame--error):hover::after {
180
- opacity: 1;
181
- }
182
- }
183
- /* Top edge sheen — inset past the corner radius so the bright line never
184
- pokes outside the rounded border (which read as a clipped corner). */
185
- .zf-frame::before {
186
- content: '';
187
- position: absolute;
188
- top: 0;
189
- left: 18px;
190
- right: 18px;
191
- height: 1px;
192
- background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
193
- pointer-events: none;
194
- z-index: 2;
195
- }
196
- .zf-frame-title {
197
- position: relative;
198
- z-index: 1;
199
- display: flex;
200
- align-items: center;
201
- gap: 7px;
202
- margin-bottom: 12px;
203
- font-family: var(--font-dmsans, inherit);
204
- /* rem (not px) so spec.typography.scale — applied as the root font size by the
205
- host — grows the card title along with the rem-based chart text it sits above.
206
- 0.625rem = 10px at the default root size, so scale 1 is a no-op. */
207
- font-size: 0.625rem;
208
- font-weight: 700;
209
- letter-spacing: 0.14em;
210
- text-transform: uppercase;
211
- color: var(--zf-frame-title, hsl(0 0% var(--zf-ink-l, 100%) / 0.5));
212
- flex: none;
213
- }
214
- /* Light/dark surface mode. --zf-ink-l (100% dark / ~16% light) and
215
- --zf-surf-l1..3 (card gradient lightness) are set inline on the container by
216
- the renderer/editor from spec.theme.surface. Redeclaring the interior text /
217
- surface tokens HERE (at .zf-grid/.zf-editor scope, where --zf-ink-l is set)
218
- is what lets them flip per-container — a :root indirection wouldn't pick up
219
- the inline var. Dark defaults reproduce the original white-on-dark exactly. */
220
- .zf-grid,
221
- .zf-editor {
222
- --color-normal: hsl(0 0% var(--zf-ink-l, 100%) / 0.85);
223
- --color-strong: hsl(0 0% var(--zf-ink-l, 100%) / 0.95);
224
- --color-soft: hsl(0 0% var(--zf-ink-l, 100%) / 0.6);
225
- --color-disabled: hsl(0 0% var(--zf-ink-l, 100%) / 0.3);
226
- --color-surface: hsl(0 0% var(--zf-ink-l, 100%) / 0.06);
227
- --color-card: hsl(0 0% var(--zf-ink-l, 100%) / 0.02);
228
- --color-card-hover: hsl(0 0% var(--zf-ink-l, 100%) / 0.1);
229
- }
230
- /* Accent-derived composite tokens (highlight text, data-ink line). theme.css
231
- declares these at :root, where their var(--zf-accent-hue) resolves once against
232
- the :root default and inherits pre-computed — so a per-frame / per-element
233
- accent override never re-tints interior content (sparklines, highlighted
234
- numerals, a heading/divider's accented rule). Redeclaring them ALSO on the
235
- per-frame wrappers (.zf-frame / .zf-bare), where frameStyleVars + the
236
- heading/divider accent config set --zf-accent-hue, resolves them against that
237
- element's accent. Values mirror theme.css exactly, so the default is a no-op. */
238
- .zf-grid,
239
- .zf-editor,
240
- .zf-frame,
241
- .zf-bare {
242
- --color-highlight: hsl(
243
- var(--zf-accent-hue, 242) calc(var(--zf-accent-sat, 90%) + 10%) 89%
244
- );
245
- --color-accent-line: hsl(
246
- var(--zf-accent-hue, 242) calc(var(--zf-accent-sat, 90%) - 5%) 72%
247
- );
248
- }
249
- .zf-frame-title::before {
250
- content: '';
251
- width: 5px;
252
- height: 5px;
253
- border-radius: 9999px;
254
- background: var(--zf-frame-title-dot, hsl(var(--zf-accent-hue, 242) var(--zf-accent-sat, 90%) 76%));
255
- box-shadow: 0 0 8px var(--zf-frame-title-dot-glow, hsl(var(--zf-accent-hue, 242) var(--zf-accent-sat, 90%) 76% / 0.9));
256
- }
257
- /* A title with a leading icon (e.g. an asset logo) drops the status dot — the
258
- logo is the card's identity marker. */
259
- .zf-frame-title--icon::before { display: none; }
260
- /* The title label takes the remaining width and truncates so a long title
261
- never shoves the source credit off the card. */
262
- .zf-frame-title-text {
263
- min-width: 0;
264
- overflow: hidden;
265
- text-overflow: ellipsis;
266
- white-space: nowrap;
267
- }
268
- /* Data-source credit — a clickable provider link pinned to the right of the
269
- title row. Brand casing is preserved (text-transform reset) so DeFiLlama /
270
- alternative.me read correctly against the uppercase title. */
271
- .zf-frame-source {
272
- margin-left: auto;
273
- padding-left: 10px;
274
- display: inline-flex;
275
- align-items: center;
276
- gap: 5px;
277
- flex: none;
278
- text-transform: none;
279
- letter-spacing: 0;
280
- font-weight: 600;
281
- }
282
- .zf-frame-source a {
283
- color: var(--zf-frame-source, rgba(255, 255, 255, 0.42));
284
- text-decoration: none;
285
- transition: color 0.2s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
286
- white-space: nowrap;
287
- }
288
- @media (hover: hover) {
289
- .zf-frame-source a:hover {
290
- color: var(--zf-frame-source-hover, hsl(var(--zf-accent-hue, 242) var(--zf-accent-sat, 90%) 80%));
291
- text-decoration: underline;
292
- }
293
- }
294
- .zf-frame-source-sep { color: rgba(255, 255, 255, 0.22); }
295
- .zf-frame-body {
296
- position: relative;
297
- z-index: 1;
298
- flex: 1;
299
- min-height: 0;
300
- display: flex;
301
- flex-direction: column;
302
- /* Holds the interior clip the card used to own (now overflow:visible so its
303
- hover glow can escape). The body sits inside the card's padding, so its
304
- square corners fall within the rounded card and this clip is invisible —
305
- content/charts/scroll areas clip exactly as before. */
306
- overflow: hidden;
307
- /* Skip rendering the (expensive) body — charts, canvases, long lists — while
308
- the card is scrolled off-screen, so a dashboard with dozens of frames only
309
- pays layout+paint for what's on screen. Applied to the BODY, not .zf-frame:
310
- content-visibility implies paint containment, and putting it on the card
311
- would clip the ::after hover glow that intentionally bleeds past the edge.
312
- The card's height is fixed by the grid / GridStack (not its content), so
313
- skipping the body never reflows the card — no scroll jank. contain-intrinsic
314
- -size feeds a placeholder height for not-yet-rendered cards; the auto keyword
315
- then remembers each body's real size once it has painted. A no-op for
316
- on-screen cards. */
317
- content-visibility: auto;
318
- contain-intrinsic-size: auto var(--zf-cis-h, 240px);
319
- }
320
- .zf-frame-body > * {
321
- flex: 1;
322
- min-height: 0;
323
- }
324
- /* ── Error cards ────────────────────────────────────────────────────────────
325
- Unknown frame / missing capability / invalid config / runtime crash all share
326
- one centered empty-state: an alert glyph, a headline naming what's wrong, the
327
- frame's name, then the specific detail. Centered (not top-left) so the card
328
- reads as a deliberate state instead of a raw debug dump floating in a void —
329
- and a faint red top-bloom signals "error" across the whole surface, not just
330
- the 1px border. This is also the generating agent's feedback surface, so the
331
- detail stays precise (field paths, the exact missing capability/provider). */
332
- .zf-frame--error {
333
- border-color: var(--zf-frame-error-border, rgba(242, 21, 83, 0.42));
334
- background: var(
335
- --zf-frame-error-bg,
336
- radial-gradient(125% 80% at 50% -12%, rgba(242, 21, 83, 0.13), transparent 60%),
337
- linear-gradient(165deg, hsl(var(--zf-base-hue, 233) var(--zf-base-sat, 20%) 12.5% / 0.82) 0%, hsl(var(--zf-base-hue, 233) var(--zf-base-sat, 20%) 7% / 0.86) 60%, hsl(var(--zf-base-hue, 233) var(--zf-base-sat, 20%) 5.3% / 0.9) 100%)
338
- );
339
- /* Errors are a rare state and never hover-spammed, so they keep the original
340
- background + box-shadow cross-fade (the GPU-only ::after path is reserved
341
- for the common, non-error card). */
342
- transition:
343
- border-color 0.25s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
344
- background 0.25s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
345
- box-shadow 0.25s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
346
- transform 0.25s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
347
- }
348
- @media (hover: hover) {
349
- .zf-frame--error:hover {
350
- border-color: var(--zf-frame-error-border-hover, rgba(242, 21, 83, 0.6));
351
- background: var(
352
- --zf-frame-error-bg,
353
- radial-gradient(125% 80% at 50% -12%, rgba(242, 21, 83, 0.13), transparent 60%),
354
- linear-gradient(165deg, rgba(26, 27, 38, 0.82) 0%, rgba(14, 15, 22, 0.86) 60%, rgba(10, 11, 17, 0.9) 100%)
355
- );
356
- box-shadow: var(--zf-frame-shadow, inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 44px -26px rgba(0, 0, 0, 0.9)), 0 0 0 1px rgba(242, 21, 83, 0.14), 0 20px 56px -30px rgba(242, 21, 83, 0.4);
357
- }
358
- }
359
- /* The centered stack. flex:1 lets it claim the whole card; the inner content
360
- stays its natural height and is centered around the card's middle, so a 2×1
361
- card and a 6×4 card both read as composed rather than top-anchored. */
362
- .zf-error {
363
- flex: 1;
364
- min-height: 0;
365
- display: flex;
366
- flex-direction: column;
367
- align-items: center;
368
- justify-content: center;
369
- gap: 8px;
370
- padding: 4px 2px;
371
- text-align: center;
372
- overflow: auto;
373
- }
374
- .zf-error-icon {
375
- flex: none;
376
- width: 38px;
377
- height: 38px;
378
- display: grid;
379
- place-items: center;
380
- border-radius: 12px;
381
- color: var(--zf-frame-error-text, #ff8b9d);
382
- background: rgba(242, 21, 83, 0.12);
383
- box-shadow: inset 0 0 0 1px rgba(242, 21, 83, 0.32),
384
- 0 0 24px -8px rgba(242, 21, 83, 0.6);
385
- }
386
- .zf-error-icon svg {
387
- display: block;
388
- width: 20px;
389
- height: 20px;
390
- }
391
- .zf-error-headline {
392
- font-family: var(--font-dmsans, inherit);
393
- font-size: 13px;
394
- font-weight: 700;
395
- letter-spacing: 0.01em;
396
- color: var(--zf-frame-error-headline, rgba(255, 255, 255, 0.92));
397
- }
398
- .zf-error-frame {
399
- margin-top: -3px;
400
- font-size: 10px;
401
- font-weight: 700;
402
- letter-spacing: 0.14em;
403
- text-transform: uppercase;
404
- color: var(--zf-frame-error-text, #ff8b9d);
405
- }
406
- .zf-error-detail {
407
- margin: 2px 0 0;
408
- max-width: 44ch;
409
- font-size: 12px;
410
- line-height: 1.5;
411
- color: var(--zf-frame-error-detail, rgba(255, 255, 255, 0.6));
412
- }
413
- .zf-error-detail code {
414
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
415
- font-size: 0.92em;
416
- }
417
- /* Per-issue rows for invalid config: the field path as a code chip, the Zod
418
- message beside it. Block-centered but left-aligned inside, so a one-field
419
- error sits dead-centre and a multi-field one reads as a tidy list. */
420
- .zf-error-issues {
421
- list-style: none;
422
- margin: 2px 0 0;
423
- padding: 0;
424
- max-width: 100%;
425
- display: flex;
426
- flex-direction: column;
427
- gap: 6px;
428
- text-align: left;
429
- }
430
- .zf-error-issue {
431
- display: flex;
432
- flex-wrap: wrap;
433
- align-items: baseline;
434
- gap: 7px;
435
- padding: 6px 10px;
436
- border-radius: 9px;
437
- background: rgba(0, 0, 0, 0.22);
438
- border: 1px solid rgba(242, 21, 83, 0.18);
439
- }
440
- .zf-error-field {
441
- flex: none;
442
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
443
- font-size: 11px;
444
- font-weight: 700;
445
- color: var(--zf-frame-error-text, #ff8b9d);
446
- background: rgba(242, 21, 83, 0.14);
447
- padding: 1px 6px;
448
- border-radius: 5px;
449
- }
450
- .zf-error-msg {
451
- min-width: 0;
452
- font-size: 12px;
453
- line-height: 1.4;
454
- color: var(--zf-frame-error-detail, rgba(255, 255, 255, 0.68));
455
- }
456
- /* Registered-frame list under an "unknown frame" card — quiet, it's reference. */
457
- .zf-error-list {
458
- margin-top: 4px;
459
- font-size: 11px;
460
- line-height: 1.5;
461
- color: rgba(255, 255, 255, 0.4);
462
- }
463
- /* Bare frames (headings) divide a dashboard into zones — positioned slot,
464
- no card chrome, no auto-title. */
465
- .zf-bare {
466
- grid-column: var(--zf-col-start, auto) / span var(--zf-col-span, 1);
467
- grid-row: var(--zf-row-start, auto) / span var(--zf-row-span, 1);
468
- display: flex;
469
- align-items: flex-end;
470
- min-height: 0;
471
- overflow: hidden;
472
- animation: zf-enter 0.45s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1)) backwards;
473
- animation-delay: min(calc((var(--zf-enter-i, 0) + 1) * 35ms), 350ms);
474
- }
475
- /* Phones: the absolute x/y/w grid can't shrink below ~30px columns, so collapse
476
- to a single full-width column. Frames flow in spec order and keep their row
477
- span (height), but ignore horizontal placement. */
478
- @media (max-width: 640px) {
479
- .zf-grid {
480
- grid-template-columns: 1fr;
481
- }
482
- .zf-frame,
483
- .zf-bare {
484
- grid-column: 1 / -1;
485
- grid-row: auto / span var(--zf-row-span, 1);
486
- }
487
- .zf-frame {
488
- padding: calc(12px * var(--zf-density, 1)) calc(14px * var(--zf-density, 1));
489
- }
490
- }
491
- /* Tablets / small laptops (641-1023px): the absolute grid built for --zf-cols
492
- columns is too tight here, but a single column wastes the width. Reflow the
493
- vertical board to two columns — frames auto-place in spec order (dense, so
494
- gaps backfill), keep their row span, and a frame that spanned at least half
495
- the design grid takes both columns (--zf-col-span-sm = 2, set by the
496
- renderer), everything else takes one. flow-horizontal is excluded: it keeps
497
- its own ≥641px side-scroller. Above 1023px the editable GridStack takes over
498
- (editing is desktop-only) and the read-only renderer is only the fallback. */
499
- @media (min-width: 641px) and (max-width: 1023px) {
500
- .zf-grid:not(.zf-flow-horizontal) {
501
- grid-template-columns: repeat(2, minmax(0, 1fr));
502
- grid-auto-flow: row dense;
503
- }
504
- .zf-grid:not(.zf-flow-horizontal) .zf-frame,
505
- .zf-grid:not(.zf-flow-horizontal) .zf-bare {
506
- grid-column: auto / span var(--zf-col-span-sm, 1);
507
- grid-row: auto / span var(--zf-row-span, 1);
508
- }
509
- }
510
- @keyframes zf-enter {
511
- from { opacity: 0; translate: 0 10px; }
512
- to { opacity: 1; translate: 0 0; }
513
- }
514
- /* Reduced-motion entrance: same timing + stagger, but a plain fade with no
515
- positional movement (motion is what triggers vestibular discomfort). */
516
- @keyframes zf-fade {
517
- from { opacity: 0; }
518
- to { opacity: 1; }
519
- }
520
- @media (prefers-reduced-motion: reduce) {
521
- .zf-frame,
522
- .zf-bare {
523
- animation-name: zf-fade;
524
- }
525
- .zf-frame:hover {
526
- transform: none;
527
- }
528
- }
529
- /* Suspense fallback while a frame's component chunk loads (lazy registry). A
530
- quiet pulsing fill sized to the card body — no layout shift since the grid
531
- item already holds its slot. */
532
- .zf-frame-skeleton {
533
- width: 100%;
534
- height: 100%;
535
- border-radius: 8px;
536
- background: rgba(255, 255, 255, 0.05);
537
- animation: zf-skeleton-pulse 1.2s ease-in-out infinite;
538
- }
539
- @keyframes zf-skeleton-pulse {
540
- 0%, 100% { opacity: 0.45; }
541
- 50% { opacity: 0.85; }
542
- }
543
- @media (prefers-reduced-motion: reduce) {
544
- .zf-frame-skeleton { animation: none; }
545
- }
546
- `,Us=()=>A.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[A.jsx("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z"}),A.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),A.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]});function so({outerClassName:e,style:t,headline:r,frame:a,children:o}){return A.jsx("div",{className:e,style:t,children:A.jsxs("div",{className:"zf-error",children:[A.jsx("span",{className:"zf-error-icon",children:A.jsx(Us,{})}),A.jsx("div",{className:"zf-error-headline",children:r}),A.jsx("div",{className:"zf-error-frame",children:a}),o]})})}function Uf({sources:e}){return e.length===0?null:A.jsx("span",{className:"zf-frame-source",children:e.map((t,r)=>A.jsxs(z.Fragment,{children:[r>0&&A.jsx("span",{className:"zf-frame-source-sep",children:"·"}),A.jsx("a",{href:t.url,target:"_blank",rel:"noreferrer noopener",title:`Data source: ${t.name}`,onMouseDown:a=>a.stopPropagation(),onPointerDown:a=>a.stopPropagation(),children:t.name})]},t.url))})}class Gn extends z.Component{constructor(){super(...arguments);q(this,"state",{error:null})}static getDerivedStateFromError(r){return{error:r}}render(){return this.state.error?A.jsxs("div",{className:"zf-error",children:[A.jsx("span",{className:"zf-error-icon",children:A.jsx(Us,{})}),A.jsx("div",{className:"zf-error-headline",children:"Frame crashed"}),A.jsx("p",{className:"zf-error-detail",children:this.state.error.message})]}):this.props.children}}const Fr=(...e)=>e.filter(Boolean).join(" ");function Bf({style:e,className:t,hasIcon:r,titleIcon:a,title:o,titleContent:n,sources:i,children:s}){const c=z.useRef(null),l=z.useRef(!0),u=z.useRef(null);u.current||(u.current=new Set);const h=z.useRef(null);if(!h.current){const d=u.current;h.current={visibleRef:l,subscribe:p=>(d.add(p),()=>{d.delete(p)})}}z.useEffect(()=>{const d=c.current;if(!d||typeof IntersectionObserver>"u")return;const p=new IntersectionObserver(m=>{const g=m[0];if(!g)return;const y=g.isIntersecting;if(y!==l.current){l.current=y;for(const k of[...u.current])k(y)}},{rootMargin:"200px"});return p.observe(d),()=>p.disconnect()},[]);const f=!!(n||o||a||i.length);return A.jsx(Ns.Provider,{value:h.current,children:A.jsxs("div",{ref:c,className:Fr("zf-frame",t),style:e,children:[f&&A.jsxs("div",{className:Fr("zf-frame-title",r?"zf-frame-title--icon":""),children:[a,A.jsx("span",{className:"zf-frame-title-text",children:n??o}),A.jsx(Uf,{sources:i})]}),A.jsx("div",{className:"zf-frame-body",children:s})]})})}function jf({instance:e,registry:t,style:r,className:a=""}){const o=Ga(),n=t.get(e.frame),i=e.style?{...r,...Nf(e.style)}:r;if(!n)return A.jsxs(so,{outerClassName:Fr("zf-frame","zf-frame--error",a),style:i,headline:"Unknown frame",frame:e.frame,children:[A.jsxs("p",{className:"zf-error-detail",children:[A.jsx("code",{children:e.frame})," isn’t a registered frame."]}),A.jsxs("p",{className:"zf-error-list",children:["Available: ",[...t.keys()].join(", ")]})]});const s=new Set(o.flatMap(m=>[...m.capabilities])),c=n.capabilities.filter(m=>!s.has(m));if(c.length>0)return A.jsx(so,{outerClassName:Fr("zf-frame","zf-frame--error",a),style:i,headline:"No data source",frame:e.frame,children:A.jsxs("p",{className:"zf-error-detail",children:["No registered provider supplies"," ",c.map((m,g)=>A.jsxs(z.Fragment,{children:[g>0&&", ",A.jsx("code",{children:m})]},m)),"."]})});const l=n.schema.safeParse(e.config);if(!l.success)return A.jsx(so,{outerClassName:Fr("zf-frame","zf-frame--error",a),style:i,headline:"Invalid configuration",frame:e.frame,children:A.jsx("ul",{className:"zf-error-issues",children:l.error.issues.map((m,g)=>A.jsxs("li",{className:"zf-error-issue",children:[A.jsx("code",{className:"zf-error-field",children:m.path.join(".")||"(root)"}),A.jsx("span",{className:"zf-error-msg",children:m.message.replace(/^Invalid input:\s*/i,"")})]},g))})});const u=n.component,h=n.titleIcon,f=n.titleContent,d=n.source?Array.isArray(n.source)?n.source:[n.source]:[];if(n.chrome==="bare")return A.jsx("div",{className:Fr("zf-bare",a),style:i,children:A.jsx(Gn,{children:A.jsx(z.Suspense,{fallback:null,children:A.jsx(u,{config:l.data})})})});const p=n.chrome!=="plain";return A.jsx(Bf,{style:i,className:a,hasIcon:!!h,title:e.title??(p?n.label:void 0),sources:d,titleIcon:h?A.jsx(z.Suspense,{fallback:null,children:A.jsx(h,{config:l.data})}):null,titleContent:e.title==null&&f?A.jsx(z.Suspense,{fallback:null,children:A.jsx(f,{config:l.data})}):void 0,children:A.jsx(Gn,{children:A.jsx(z.Suspense,{fallback:A.jsx("div",{className:"zf-frame-skeleton"}),children:A.jsx(u,{config:l.data})})})})}const Vf=z.memo(jf);function Wf(e,t,r,a,o){var u;const n={"--zf-enter-i":t,"--zf-col-span-sm":e.position.w>=o/2?2:1};if(r){const h=(u=e.layouts)==null?void 0:u["flow-horizontal"];return h?{...n,"--zf-col-start":h.x+1,"--zf-col-span":h.w,"--zf-row-start":h.y+1,"--zf-row-span":Math.min(h.h,a)}:{...n,"--zf-col-span":e.position.w,"--zf-row-span":Math.min(e.position.h,a)}}const{x:i,y:s,w:c,h:l}=e.position;return{...n,"--zf-col-start":i+1,"--zf-col-span":c,"--zf-row-start":s+1,"--zf-row-span":l}}function Kn({spec:e,registry:t}){const r=e.grid.mode==="flow-horizontal",a=z.useMemo(()=>e.frames.map((o,n)=>Wf(o,n,r,e.grid.rows,e.grid.columns)),[e.frames,r,e.grid.rows,e.grid.columns]);return A.jsxs(A.Fragment,{children:[A.jsx("style",{children:Hf}),A.jsx("div",{className:r?"zf-grid zf-flow-horizontal":"zf-grid",style:{"--zf-cols":e.grid.columns,"--zf-row-h":`${e.grid.rowHeight}px`,"--zf-h-rows":e.grid.rows,"--zf-gap":`${e.grid.gap}px`,"--zf-pad-x":`${e.grid.paddingX}px`,"--zf-accent-hue":e.theme.accentHue,"--zf-accent-sat":`${e.theme.accentSat}%`,"--zf-base-hue":e.theme.baseHue,"--zf-base-sat":`${e.theme.baseSat}%`,"--zf-up":e.theme.upColor,"--zf-down":e.theme.downColor,"--zf-font-family":Sf[e.typography.fontFamily],"--zf-numeric":Tf[e.typography.numericStyle],"--zf-frame-radius":`${e.appearance.radius}px`,"--zf-border-alpha":e.appearance.borderStrength,"--zf-surface-opacity":e.appearance.surfaceOpacity,"--zf-density":e.appearance.density,"--zf-elevation":e.appearance.elevation,...Cf(e.theme.surface)},children:e.frames.map((o,n)=>A.jsx(Vf,{instance:o,registry:t,style:a[n]},o.id))})]})}const Gf="/__zframes/dashboard.json",Kf="/__zframes/dashboard",qf="/__zframes/dashboards",Yf="/__zframes/switch",Jf="/__zframes/proxy",Xf="/__zframes/account/portfolio",b_="/__zframes/account/credentials",Zf="/__zframes/agents",$f="/__zframes/ask";class ae{constructor(t){q(this,"entries",new Map);q(this,"inflight",new Map);q(this,"namespace");q(this,"ttlMs");q(this,"persist");q(this,"staleOnError");q(this,"revive");this.namespace=t.namespace,this.ttlMs=t.ttlMs,this.persist=t.persist??!1,this.staleOnError=t.staleOnError??!0,this.revive=t.revive}get(t,r){const a=this.read(t);if(a&&Date.now()-a.at<this.ttlMs)return Promise.resolve(a.value);const o=this.inflight.get(t);if(o)return o;const n=r().then(i=>(this.write(t,i),i)).catch(i=>{if(this.staleOnError&&a)return a.value;throw i}).finally(()=>{this.inflight.delete(t)});return this.inflight.set(t,n),n}read(t){const r=this.entries.get(t);if(r)return r;if(!this.persist||typeof localStorage>"u")return null;try{const a=localStorage.getItem(this.storageKey(t));if(!a)return null;const o=JSON.parse(a);if(typeof(o==null?void 0:o.at)!="number")return null;let n;if(this.revive){const s=this.revive(o.value);if(s===null)return null;n=s}else n=o.value;const i={at:o.at,value:n};return this.entries.set(t,i),i}catch{return null}}write(t,r){const a={at:Date.now(),value:r};if(this.entries.set(t,a),!(!this.persist||typeof localStorage>"u"))try{localStorage.setItem(this.storageKey(t),JSON.stringify(a))}catch{}}storageKey(t){return`${this.namespace}:${t}`}}const Qf=new ae({namespace:"zframes:binance:portfolio",ttlMs:45e3,persist:!1});class em{constructor(){q(this,"name","Binance");q(this,"capabilities",["portfolio"]);q(this,"portfolioKinds",["binance"])}async getPortfolio(t){if(t.kind!=="binance")throw new Error(`BinanceProvider can't serve source: ${t.kind}`);return Qf.get("binance",async()=>{const r=await fetch(`${Xf}?source=binance`,{headers:{accept:"application/json"}});if(r.status===401)throw new Error("binance: not connected");if(!r.ok)throw new Error(`binance portfolio relay ${r.status}`);return await r.json()})}}const tm=1e4,rm="zframes (+https://github.com/zentryhq/zframes)";async function Bs(e,{timeoutMs:t=tm,init:r,proxied:a}){const o=new Headers(r==null?void 0:r.headers);typeof document>"u"&&!o.has("User-Agent")&&o.set("User-Agent",rm);const n=a&&typeof document<"u"?`${Jf}?url=${encodeURIComponent(e)}`:e,i=await fetch(n,{...r,headers:o,signal:(r==null?void 0:r.signal)??AbortSignal.timeout(t)});if(!i.ok)throw new Error(`${e} failed: ${i.status}`);return i}async function ne(e,t,r={}){const o=await(await Bs(e,r)).json();return t?t.parse(o):o}async function aa(e,t={}){return(await Bs(e,t)).text()}const am=["https://ethereum-rpc.publicnode.com","https://cloudflare-eth.com","https://1rpc.io/eth"],om="https://api.coingecko.com/api/v3/simple/price",nm="0x70a08231",im=1,sm={symbol:"ETH",address:null,decimals:18,cgId:"ethereum"},Oa=[sm,{symbol:"USDC",address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",decimals:6,cgId:"usd-coin"},{symbol:"USDT",address:"0xdAC17F958D2ee523a2206206994597C13D831ec7",decimals:6,cgId:"tether"},{symbol:"DAI",address:"0x6B175474E89094C44Da98b954EedeAC495271d0F",decimals:18,cgId:"dai"},{symbol:"WETH",address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",decimals:18,cgId:"weth"},{symbol:"WBTC",address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",decimals:8,cgId:"wrapped-bitcoin"},{symbol:"LINK",address:"0x514910771AF9Ca656af840dff83E8264EcF986CA",decimals:18,cgId:"chainlink"},{symbol:"UNI",address:"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",decimals:18,cgId:"uniswap"},{symbol:"AAVE",address:"0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9",decimals:18,cgId:"aave"},{symbol:"LDO",address:"0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32",decimals:18,cgId:"lido-dao"},{symbol:"MKR",address:"0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2",decimals:18,cgId:"maker"},{symbol:"CRV",address:"0xD533a949740bb3306d119CC777fa900bA034cd52",decimals:18,cgId:"curve-dao-token"},{symbol:"SHIB",address:"0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE",decimals:18,cgId:"shiba-inu"},{symbol:"PEPE",address:"0x6982508145454Ce325dDbE47a25d4ec3d2311933",decimals:18,cgId:"pepe"}],qn=/^0x[0-9a-fA-F]{40}$/;async function cm(e){const t=e.trim();if(qn.test(t))return t;try{const r=await ne(`https://api.ensideas.com/ens/resolve/${encodeURIComponent(t)}`);if(r.address&&qn.test(r.address))return r.address}catch{}throw new Error(`couldn't resolve address: ${t}`)}function lm(e){return`${nm}000000000000000000000000${e.slice(2).toLowerCase()}`}function um(e,t){if(!e||e==="0x")return 0;try{return Number(BigInt(e))/10**t}catch{return 0}}async function dm(e){var s;const t=Oa.map((c,l)=>c.address===null?{jsonrpc:"2.0",id:l,method:"eth_getBalance",params:[e,"latest"]}:{jsonrpc:"2.0",id:l,method:"eth_call",params:[{to:c.address,data:lm(e)},"latest"]}),r=JSON.stringify(t);let a=null,o;for(const c of am)try{const l=await fetch(c,{method:"POST",headers:{"content-type":"application/json"},body:r,signal:AbortSignal.timeout(12e3)});if(!l.ok)throw new Error(`rpc ${l.status}`);const u=await l.json();if(!Array.isArray(u)){const f=((s=u==null?void 0:u.error)==null?void 0:s.message)??"non-array response";throw new Error(`rpc ${c}: ${f}`)}const h=u;if(!h.some(f=>typeof f.result=="string"))throw new Error(`rpc ${c}: no results (throttled?)`);a=h;break}catch(l){o=l}if(!a)throw new Error(`all RPC endpoints failed: ${String(o)}`);const n=new Map;for(const c of a)c.result&&n.set(c.id,c.result);const i=new Map;return Oa.forEach((c,l)=>{const u=um(n.get(l),c.decimals);u>0&&i.set(c.symbol,u)}),i}const hm=[...new Set(Oa.map(e=>e.cgId))],fm=new ae({namespace:"zframes:wallet:prices",ttlMs:10*6e4,persist:!0});async function mm(){return fm.get("all",async()=>{const e=`${om}?ids=${hm.join(",")}&vs_currencies=usd&include_24hr_change=true`,t=await ne(e);if(!t||typeof t!="object"||Array.isArray(t))throw new Error("coingecko simple/price: unexpected response shape");return t})}function pm(e){return`${e.slice(0,6)}…${e.slice(-4)}`}const gm=new ae({namespace:"zframes:wallet:portfolio",ttlMs:12e4,persist:!1});class bm{constructor(){q(this,"name","On-chain wallet");q(this,"capabilities",["portfolio"]);q(this,"portfolioKinds",["wallet"])}async getPortfolio(t){if(t.kind!=="wallet"||!t.address)throw new Error("wallet provider needs a wallet source with an address");return gm.get(t.address,async()=>{const r=await cm(t.address),a=await dm(r),o=Oa.filter(c=>a.has(c.symbol)),n=o.length?await mm():{},i=o.map(c=>{var f,d;const l=a.get(c.symbol)??0,u=(f=n[c.cgId])==null?void 0:f.usd,h=u!==void 0?l*u:void 0;return{symbol:c.symbol,amount:l,valueUsd:h,changePct24h:(d=n[c.cgId])==null?void 0:d.usd_24h_change}}).filter(c=>c.valueUsd!==void 0&&c.valueUsd>=im).sort((c,l)=>(l.valueUsd??0)-(c.valueUsd??0)),s=i.reduce((c,l)=>c+(l.valueUsd??0),0);return{source:"wallet",label:pm(r),holdings:i,totalUsd:s,asOf:Date.now()}})}}const ym="https://api.alternative.me/fng/",vm=new ae({namespace:"zframes:alternativeme:fng",ttlMs:45*6e4,persist:!0,revive:e=>Array.isArray(e)?e:null});class wm{constructor(){q(this,"name","alternative.me");q(this,"capabilities",["sentiment"])}async getFearGreed(t=30){return vm.get(String(t),async()=>{const r=await ne(`${ym}?limit=${t}`);if(!Array.isArray(r==null?void 0:r.data))throw new Error("alternative.me fng: unexpected response shape");return r.data.map(a=>({value:Number(a.value),classification:a.value_classification??"",time:Number(a.timestamp)*1e3})).filter(a=>Number.isFinite(a.value)&&Number.isFinite(a.time))})}}const co="https://bitcoin-data.com/v1";function lo(e){if(!Array.isArray(e))return[];const t=[];for(const r of e){if(!r||typeof r!="object")continue;const a=r,o=Number(a.unixTs),n=Number.isFinite(o)?o*1e3:Date.parse(String(a.d));let i=NaN;for(const[s,c]of Object.entries(a)){if(s==="d"||s==="unixTs")continue;const l=Number(c);if(Number.isFinite(l)){i=l;break}}Number.isFinite(n)&&Number.isFinite(i)&&t.push({time:n,value:i})}return t.sort((r,a)=>r.time-a.time)}const uo=e=>e.length?e[e.length-1].value:null;class km{constructor(){q(this,"name","bitcoin-data.com");q(this,"capabilities",["onchain-cycle-extras"]);q(this,"cache",new ae({namespace:"zframes:bitcoin-data:extras",ttlMs:1080*6e4,persist:!0}))}async getOnchainExtras(){return this.cache.get("latest",async()=>{var c,l,u;const[t,r,a]=await Promise.allSettled([ne(`${co}/sopr`),ne(`${co}/puell-multiple`),ne(`${co}/reserve-risk`)]),o=t.status==="fulfilled"?lo(t.value).slice(-365):[],n=r.status==="fulfilled"?lo(r.value).slice(-365):[],i=a.status==="fulfilled"?lo(a.value).slice(-365):[];if(o.length===0&&n.length===0&&i.length===0)throw new Error("bitcoin-data: all metric fetches failed (likely rate-limited)");const s=Math.max(((c=o.at(-1))==null?void 0:c.time)??0,((l=n.at(-1))==null?void 0:l.time)??0,((u=i.at(-1))==null?void 0:u.time)??0);return{date:new Date(s).toISOString().slice(0,10),sopr:uo(o),puell:uo(n),reserveRisk:uo(i),history:{sopr:o,puell:n,reserveRisk:i}}})}}const _m="https://api.blockchair.com",xm=[{slug:"bitcoin",label:"Bitcoin"},{slug:"ethereum",label:"Ethereum"},{slug:"litecoin",label:"Litecoin"},{slug:"dogecoin",label:"Dogecoin"},{slug:"bitcoin-cash",label:"Bitcoin Cash"},{slug:"dash",label:"Dash"},{slug:"zcash",label:"Zcash"}],Cm=new ae({namespace:"zframes:blockchair:chains",ttlMs:4*6e4,persist:!0});function Zr(e,t=0){const r=Number(e);return Number.isFinite(r)?r:t}class Am{constructor(){q(this,"name","blockchair");q(this,"capabilities",["chain-activity"])}async getChainActivity(){return Cm.get("chains",async()=>{const r=(await Promise.allSettled(xm.map(async({slug:a,label:o})=>{const n=await ne(`${_m}/${a}/stats`),i=n==null?void 0:n.data;if(!i||!Number.isFinite(Number(i.transactions_24h)))throw new Error(`blockchair ${a}: unexpected response shape`);return{chain:a,label:o,transactions24h:Zr(i.transactions_24h),blocks24h:Zr(i.blocks_24h),mempoolTxns:Zr(i.mempool_transactions),priceUsd:Zr(i.market_price_usd),priceChangePct24h:Zr(i.market_price_usd_change_24h_percentage)}}))).filter(a=>a.status==="fulfilled").map(a=>a.value);if(r.length===0)throw new Error("blockchair: no chains resolved");return r.sort((a,o)=>o.transactions24h-a.transactions24h)})}}const Sm="https://api.bls.gov/publicAPI/v2/timeseries/data/",Tm={CUUR0000SA0:"CPI-U all items",LNS14000000:"Unemployment rate",CES0000000001:"Nonfarm payrolls",CES0500000003:"Avg hourly earnings",LNS11300000:"Labor force participation"};function Em(e){const t=Number(e);return Number.isFinite(t)?t:null}function zm(e,t){const r=/^M(0[1-9]|1[0-2])$/.exec(t??""),a=Number(e);if(!r||!Number.isFinite(a))return null;const o=Number(r[1]);return Date.UTC(a,o-1,1)}function Pm(e){return new Intl.DateTimeFormat("en-US",{month:"short",year:"numeric",timeZone:"UTC"}).format(e)}const Dm=new ae({namespace:"zframes:macro",ttlMs:360*6e4,persist:!0,revive:e=>e&&Array.isArray(e.points)?e:null});class Mm{constructor(){q(this,"name","bls");q(this,"capabilities",["macro-series"])}async getMacroSeries(t,r,a){return Dm.get(`${t}:${r}:${a}`,()=>this.fetchMacroSeries(t,r,a))}async fetchMacroSeries(t,r,a){var c,l,u;const o=`${Sm}${encodeURIComponent(t)}?startyear=${r}&endyear=${a}`,n=await ne(o);if(n.status!=="REQUEST_SUCCEEDED")throw new Error(`bls series ${t}: ${((c=n.message)==null?void 0:c.join(", "))||"request failed"}`);const i=(u=(l=n.Results)==null?void 0:l.series)==null?void 0:u[0];if(!(i!=null&&i.data))throw new Error("bls series: unexpected response shape");const s=i.data.map(h=>{const f=Em(h.value),d=zm(h.year,h.period);return f===null||d===null?null:{time:d,date:Pm(d),value:f,period:`${h.year}-${h.period}`}}).filter(h=>h!==null).sort((h,f)=>h.time-f.time);return{seriesId:i.seriesID??t,label:Tm[t]??t,source:"BLS",points:s}}}const Rm="https://api.coingecko.com/api/v3/global",Om="https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&order=market_cap_desc&per_page=50&page=1&sparkline=false&price_change_percentage=24h",Lm="https://api.coingecko.com/api/v3/search/trending",Fm="https://api.coingecko.com/api/v3/coins/categories",Im="https://api.coingecko.com/api/v3/nfts",Nm=["bored-ape-yacht-club","pudgy-penguins","mutant-ape-yacht-club","cryptopunks","azuki","milady","doodles-official","moonbirds","lil-pudgys","degods"],Hm=new ae({namespace:"zframes:coingecko:global",ttlMs:12*6e4,persist:!0}),Um=new ae({namespace:"zframes:coingecko:markets",ttlMs:10*6e4,persist:!0}),Bm=new ae({namespace:"zframes:coingecko:trending",ttlMs:10*6e4,persist:!0}),jm=new ae({namespace:"zframes:coingecko:categories",ttlMs:12*6e4,persist:!0}),Vm=new ae({namespace:"zframes:coingecko:nft",ttlMs:45*6e4,persist:!0});function $r(e,t){const r=Number(e);return Number.isFinite(r)?r:t}class Wm{constructor(){q(this,"name","coingecko");q(this,"capabilities",["global-market","coin-markets","trending-coins","sector-performance","nft-market"])}async getTrendingCoins(){return Bm.get("trending",async()=>{const t=await ne(Lm);if(!Array.isArray(t==null?void 0:t.coins))throw new Error("coingecko trending: unexpected response shape");return t.coins.map(({item:r})=>{var n,i,s;const a=Number((n=r.data)==null?void 0:n.price),o=Number((s=(i=r.data)==null?void 0:i.price_change_percentage_24h)==null?void 0:s.usd);return{id:r.id,name:r.name,symbol:(r.symbol??"").toUpperCase(),rank:Number.isFinite(r.market_cap_rank)?r.market_cap_rank:null,price:Number.isFinite(a)?a:null,changePct24h:Number.isFinite(o)?o:null}})})}async getSectorPerformance(){return jm.get("categories",async()=>{const t=await ne(Fm);if(!Array.isArray(t))throw new Error("coingecko categories: unexpected response shape");return t.filter(r=>Number.isFinite(r.market_cap)&&(r.market_cap??0)>0).map(r=>({name:r.name,marketCap:r.market_cap,changePct24h:Number.isFinite(r.market_cap_change_24h)?r.market_cap_change_24h:0})).sort((r,a)=>a.marketCap-r.marketCap).slice(0,30)})}async getNftMarket(){return Vm.get("nft",async()=>{var r,a,o,n,i;const t=[];for(const s of Nm)try{const c=await ne(`${Im}/${s}`),l=Number((r=c==null?void 0:c.floor_price)==null?void 0:r.usd);if(!(c!=null&&c.id)||!Number.isFinite(l))continue;t.push({id:c.id,name:c.name??c.id,floorNative:$r((a=c.floor_price)==null?void 0:a.native_currency,0),floorUsd:l,floorChangePct24h:$r((o=c.floor_price_24h_percentage_change)==null?void 0:o.usd,0),marketCapUsd:$r((n=c.market_cap)==null?void 0:n.usd,0),volume24hUsd:$r((i=c.volume_24h)==null?void 0:i.usd,0),sales24h:$r(c.one_day_sales,0)})}catch{}if(t.length===0)throw new Error("coingecko nfts: no collections resolved");return t.sort((s,c)=>c.volume24hUsd-s.volume24hUsd)})}async getGlobalMarket(){return Hm.get("global",async()=>{var a;const t=await ne(Rm);if(!((a=t==null?void 0:t.data)!=null&&a.total_market_cap)||!t.data.market_cap_percentage)throw new Error("coingecko global: unexpected response shape");const r=Number(t.data.market_cap_change_percentage_24h_usd);return{totalMarketCapUsd:t.data.total_market_cap.usd??0,marketCapChangePct24h:Number.isFinite(r)?r:0,dominance:t.data.market_cap_percentage}})}async getCoinMarkets(){return Um.get("markets",async()=>{const t=await ne(Om);if(!Array.isArray(t))throw new Error("coingecko markets: unexpected response shape");return t.filter(r=>Number.isFinite(r.market_cap)&&r.market_cap>0).map(r=>({symbol:(r.symbol??"").toUpperCase(),name:r.name,marketCapUsd:r.market_cap,changePct24h:Number.isFinite(r.price_change_percentage_24h)?r.price_change_percentage_24h:void 0}))})}}const Gm="https://community-api.coinmetrics.io/v4/timeseries/asset-metrics",Km="PriceUSD,CapMrktCurUSD,SplyCur,CapMVRVCur";function qm(e){const t=[];for(const r of e){const a=Number(r.PriceUSD),o=Number(r.CapMrktCurUSD),n=Number(r.SplyCur),i=Number(r.CapMVRVCur),s=Date.parse(r.time);!Number.isFinite(a)||!Number.isFinite(o)||!Number.isFinite(n)||!Number.isFinite(i)||!Number.isFinite(s)||i<=0||n<=0||t.push({time:s,price:a,marketCap:o,supply:n,mvrv:i})}return t.sort((r,a)=>r.time-a.time)}function Ym(e){const t=e.length;if(t===0)return 0;const r=e.reduce((o,n)=>o+n,0)/t,a=e.reduce((o,n)=>o+(n-r)**2,0)/t;return Math.sqrt(a)}class Jm{constructor(){q(this,"name","Coin Metrics");q(this,"capabilities",["onchain-valuation","price-history-daily"]);q(this,"cache",new ae({namespace:"zframes:coinmetrics:metrics",ttlMs:180*6e4,persist:!1}))}load(t){return this.cache.get(t,async()=>{const r=`${Gm}?assets=${t}&metrics=${Km}&frequency=1d&page_size=10000&start_time=2010-01-01`,a=await ne(r),o=qm(a.data??[]);if(o.length===0)throw new Error("coinmetrics: no usable rows in response");return o})}async getOnchainValuation(){const t=await this.load("btc"),r=Ym(t.map(u=>u.marketCap)),a=[],o=[],n=[],i=[],s=[];for(const u of t){const h=u.marketCap/u.mvrv;a.push({time:u.time,value:u.price}),o.push({time:u.time,value:u.mvrv}),n.push({time:u.time,value:r>0?(u.marketCap-h)/r:0}),i.push({time:u.time,value:1-1/u.mvrv}),s.push({time:u.time,value:h/u.supply})}const c=t[t.length-1],l=c.marketCap/c.mvrv;return{date:new Date(c.time).toISOString().slice(0,10),price:c.price,supply:c.supply,marketCap:c.marketCap,realizedCap:l,realizedPrice:l/c.supply,mvrv:c.mvrv,mvrvZScore:r>0?(c.marketCap-l)/r:0,nupl:1-1/c.mvrv,history:{price:a,mvrv:o,mvrvZScore:n,nupl:i,realizedPrice:s}}}async getDailyCloseHistory(t="btc"){return(await this.load(t.toLowerCase())).map(a=>({time:a.time,value:a.price}))}}const Xm=300,Zm=e=>`https://api.coinpaprika.com/v1/tickers?quotes=USD&limit=${e}`,$m=new ae({namespace:"zframes:coinpaprika:movers",ttlMs:12*6e4,persist:!0}),va=e=>Number.isFinite(e)?e:0;class Qm{constructor(){q(this,"name","coinpaprika");q(this,"capabilities",["coin-movers"])}async getCoinMovers(t=Xm){return $m.get(`movers:${t}`,async()=>{const r=await ne(Zm(t));if(!Array.isArray(r))throw new Error("coinpaprika tickers: unexpected response shape");return r.filter(a=>{var o;return((o=a==null?void 0:a.quotes)==null?void 0:o.USD)&&Number.isFinite(a.quotes.USD.price)}).map(a=>{const o=a.quotes.USD;return{symbol:(a.symbol??"").toUpperCase(),name:a.name,rank:a.rank,priceUsd:o.price,marketCapUsd:o.market_cap,volume24hUsd:o.volume_24h,changePct:{"1h":va(o.percent_change_1h),"24h":va(o.percent_change_24h),"7d":va(o.percent_change_7d),"30d":va(o.percent_change_30d)}}})})}}const ep="https://api.llama.fi/v2/chains",tp="https://api.llama.fi/overview/dexs",Yn="https://api.llama.fi/overview/fees",rp="https://api.llama.fi/protocols",ap="https://stablecoins.llama.fi/stablecoins?includePrices=true",op="https://stablecoins.llama.fi/stablecoinchains",np="https://yields.llama.fi/pools",sa=8*6e4,js=30*6e4,ip=new ae({namespace:"zframes:defillama:tvl",ttlMs:sa}),sp=new ae({namespace:"zframes:defillama:dex-volume",ttlMs:sa}),cp=new ae({namespace:"zframes:defillama:protocol-tvl",ttlMs:sa}),lp=new ae({namespace:"zframes:defillama:protocol-fees",ttlMs:sa}),up=new ae({namespace:"zframes:defillama:dex-history",ttlMs:js}),dp=new ae({namespace:"zframes:defillama:protocol-history",ttlMs:js}),hp=new ae({namespace:"zframes:defillama:stablecoins",ttlMs:30*6e4,persist:!0}),fp=new ae({namespace:"zframes:defillama:yields",ttlMs:12*6e4}),mp=new ae({namespace:"zframes:defillama:fees-overview",ttlMs:sa}),Jn=e=>[...e].sort().join(",");function Xn(e){return Array.isArray(e)?e.map(([t,r])=>({time:t*1e3,value:Number(r)})).filter(t=>Number.isFinite(t.time)&&Number.isFinite(t.value)):[]}const ho=e=>Number.isFinite(e)?e:void 0;class pp{constructor(){q(this,"name","defillama");q(this,"capabilities",["tvl","dex-volume","protocol-tvl","protocol-fees","stablecoins","yields","fees-overview"])}async getTvlByChain(){return ip.get("chains",async()=>{const t=await ne(ep);if(!Array.isArray(t))throw new Error("defillama chains: unexpected response shape");return t.filter(r=>Number.isFinite(r.tvl)&&r.tvl>0).sort((r,a)=>a.tvl-r.tvl).map(r=>({name:r.name,tvl:r.tvl}))})}async getDexVolume(){return sp.get("overview",async()=>{const t=await ne(tp),r=t==null?void 0:t.protocols;if(!Array.isArray(r))throw new Error("defillama dexs: unexpected response shape");return r.filter(a=>Number.isFinite(a.total24h)&&(a.total24h??0)>0).map(a=>({name:a.name,volume24h:a.total24h,changePct:ho(a.change_1d)})).sort((a,o)=>o.volume24h-a.volume24h)})}async getDexVolumeHistory(t){return up.get(Jn(t),async()=>{const r=await Promise.all(t.map(a=>ne(`https://api.llama.fi/summary/dexs/${encodeURIComponent(a)}?excludeTotalDataChartBreakdown=true`).then(o=>[a,Xn(o.totalDataChart)]).catch(()=>[a,[]])));return Object.fromEntries(r)})}async getProtocolTvl(){return cp.get("overview",async()=>{const t=await ne(rp);if(!Array.isArray(t))throw new Error("defillama protocols: unexpected response shape");return t.filter(r=>Number.isFinite(r.tvl)&&(r.tvl??0)>0).map(r=>({name:r.name,tvl:r.tvl,category:r.category,changePct:ho(r.change_1d)})).sort((r,a)=>a.tvl-r.tvl)})}async getProtocolTvlHistory(t){return dp.get(Jn(t),async()=>{const r=await Promise.all(t.map(a=>ne(`https://api.llama.fi/protocol/${encodeURIComponent(a)}`).then(o=>[a,(o.tvl??[]).map(n=>({time:n.date*1e3,value:Number(n.totalLiquidityUSD)})).filter(n=>Number.isFinite(n.time)&&Number.isFinite(n.value))]).catch(()=>[a,[]])));return Object.fromEntries(r)})}async getProtocolFees(){return lp.get("overview",async()=>{const t=await ne(Yn),r=t==null?void 0:t.protocols;if(!Array.isArray(r))throw new Error("defillama fees: unexpected response shape");return r.filter(a=>Number.isFinite(a.total24h)&&(a.total24h??0)>0).map(a=>({name:a.name,fees24h:a.total24h,changePct:ho(a.change_1d)})).sort((a,o)=>o.fees24h-a.fees24h)})}async getStablecoinSupply(){return hp.get("supply",async()=>{var f,d,p,m;const[t,r]=await Promise.all([ne(ap),ne(op).catch(()=>[])]),a=t==null?void 0:t.peggedAssets;if(!Array.isArray(a))throw new Error("defillama stablecoins: unexpected response shape");let o=0,n=0,i=0,s=0;for(const g of a)g.pegType&&g.pegType!=="peggedUSD"||(o+=((f=g.circulating)==null?void 0:f.peggedUSD)??0,n+=((d=g.circulatingPrevDay)==null?void 0:d.peggedUSD)??0,i+=((p=g.circulatingPrevWeek)==null?void 0:p.peggedUSD)??0,s+=((m=g.circulatingPrevMonth)==null?void 0:m.peggedUSD)??0);if(o<=0)throw new Error("defillama stablecoins: empty aggregate");const c=g=>g>0?(o-g)/g*100:0,l=Date.now(),u=[{time:l-30*864e5,value:s},{time:l-7*864e5,value:i},{time:l-864e5,value:n},{time:l,value:o}].filter(g=>g.value>0),h=(Array.isArray(r)?r:[]).map(g=>{var y;return{name:g.name,usd:((y=g.totalCirculatingUSD)==null?void 0:y.peggedUSD)??0}}).filter(g=>g.usd>0).sort((g,y)=>y.usd-g.usd).slice(0,12);return{totalUsd:o,changePct1d:c(n),changePct7d:c(i),changePct30d:c(s),history:u,topChains:h}})}async getYieldPools(){return fp.get("pools",async()=>{const t=await ne(np),r=t==null?void 0:t.data;if(!Array.isArray(r))throw new Error("defillama yields: unexpected response shape");return r.filter(a=>Number.isFinite(a.tvlUsd)&&(a.tvlUsd??0)>0&&Number.isFinite(a.apy)).map(a=>({pool:a.pool,chain:a.chain,project:a.project,symbol:a.symbol,tvlUsd:a.tvlUsd,apy:a.apy,apyBase:Number.isFinite(a.apyBase)?a.apyBase:null,apyReward:Number.isFinite(a.apyReward)?a.apyReward:null,apyPct7D:Number.isFinite(a.apyPct7D)?a.apyPct7D:null,stablecoin:!!a.stablecoin,ilRisk:a.ilRisk??"unknown"})).sort((a,o)=>o.tvlUsd-a.tvlUsd).slice(0,250)})}async getFeesOverview(){return mp.get("overview",async()=>{const t=await ne(Yn);if(!t||!Number.isFinite(t.total24h))throw new Error("defillama fees-overview: unexpected response shape");return{total24h:t.total24h,total7d:Number.isFinite(t.total7d)?t.total7d:null,changePct:Number.isFinite(t.change_1d)?t.change_1d:null,history:Xn(t.totalDataChart)}})}}const gp="https://api.sosovalue.xyz/openapi/v2/etf",Zn={btc:"us-btc-spot",eth:"us-eth-spot"},Pr=e=>{const t=Number(e==null?void 0:e.value);return Number.isFinite(t)?t:0};async function $n(e,t){return ne(`${gp}/${e}`,void 0,{init:{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:t})}})}class bp{constructor(){q(this,"name","SoSoValue");q(this,"capabilities",["etf-flows"]);q(this,"cache",new ae({namespace:"zframes:etf-flows",ttlMs:360*6e4,persist:!0}))}async getEtfFlows(t){const r=(t||"btc").toLowerCase(),a=Zn[r]??Zn.btc;return this.cache.get(r,async()=>{const[o,n]=await Promise.all([$n("historicalInflowChart",a),$n("currentEtfDataMetrics",a)]),s=(Array.isArray(o==null?void 0:o.data)?o.data:[]).map(h=>({time:Date.parse(String(h.date)),value:Number(h.totalNetInflow)})).filter(h=>Number.isFinite(h.time)&&Number.isFinite(h.value)).sort((h,f)=>h.time-f.time),c=n==null?void 0:n.data,l=(Array.isArray(c==null?void 0:c.list)?c.list:[]).map(h=>({ticker:h.ticker??"",institute:h.institute??"",dailyNetInflow:Pr(h.dailyNetInflow),netAssets:Pr(h.netAssets),cumNetInflow:Pr(h.cumNetInflow)})).filter(h=>h.ticker).sort((h,f)=>f.netAssets-h.netAssets);if(s.length===0&&l.length===0)throw new Error("etf-flows: empty response");const u=s.at(-1);return{asset:r,date:u?new Date(u.time).toISOString().slice(0,10):"",dailyTotalNetInflow:c!=null&&c.dailyNetInflow?Pr(c.dailyNetInflow):(u==null?void 0:u.value)??0,cumNetInflow:Pr(c==null?void 0:c.cumNetInflow),totalNetAssets:Pr(c==null?void 0:c.totalNetAssets),issuers:l,history:s}})}}const yp="https://gamma-api.polymarket.com/markets";function Qn(e){if(typeof e!="string")return[];try{const t=JSON.parse(e);return Array.isArray(t)?t.map(String):[]}catch{return[]}}class vp{constructor(){q(this,"name","Polymarket");q(this,"capabilities",["prediction-markets"]);q(this,"cache",new ae({namespace:"zframes:polymarket:markets",ttlMs:4*6e4,persist:!0}))}async getPredictionMarkets(t=12){const r=Math.min(Math.max(t,1),50);return this.cache.get(String(r),async()=>{const a=`${yp}?closed=false&limit=${r}&order=volume&ascending=false`,o=await ne(a);if(!Array.isArray(o))throw new Error("polymarket markets: unexpected response shape");return o.map(n=>{const i=Qn(n.outcomes),s=Qn(n.outcomePrices);if(!n.question||i.length===0)return null;const c=i.map((l,u)=>({label:l,prob:Number(s[u])})).filter(l=>Number.isFinite(l.prob));return c.length===0?null:{question:n.question,outcomes:c,volume24h:Number.isFinite(n.volume24hr)?n.volume24hr:0,endDate:n.endDate??""}}).filter(n=>n!==null)})}}const wa="https://ultrasound.money/api/v2/fees",rr=e=>{const t=Number(e);return Number.isFinite(t)?t:0};class wp{constructor(){q(this,"name","ultrasound.money");q(this,"capabilities",["eth-supply"]);q(this,"cache",new ae({namespace:"zframes:ultrasound:eth-supply",ttlMs:2*6e4,persist:!0}))}async getEthSupply(){return this.cache.get("latest",async()=>{var f,d,p,m,g,y,k,S,D,T,x,O;const[t,r,a,o]=await Promise.allSettled([ne(`${wa}/gauge-rates`),ne(`${wa}/validator-rewards`),ne(`${wa}/burn-rates`),ne(`${wa}/supply-over-time`)]);if(t.status!=="fulfilled"||!((f=t.value)!=null&&f.d1))throw new Error("ultrasound gauge-rates: unavailable");const n=t.value.d1,i=r.status==="fulfilled"?r.value:void 0,s=(rr((d=i==null?void 0:i.issuance)==null?void 0:d.apr)+rr((p=i==null?void 0:i.mev)==null?void 0:p.apr)+rr((m=i==null?void 0:i.tips)==null?void 0:m.apr))*100,c=a.status==="fulfilled"?rr((k=(y=(g=a.value)==null?void 0:g.d1)==null?void 0:y.rate)==null?void 0:k.eth_per_minute):0,u=(o.status==="fulfilled"?((S=o.value)==null?void 0:S.d30)??((D=o.value)==null?void 0:D.d7)??((T=o.value)==null?void 0:T.d1)??[]:[]).map(R=>({time:Date.parse(R.timestamp),value:Number(R.supply)})).filter(R=>Number.isFinite(R.time)&&Number.isFinite(R.value));return{supply:u.length?u[u.length-1].value:0,burnRateYearlyEth:rr((x=n.burn_rate_yearly)==null?void 0:x.eth),issuanceRateYearlyEth:rr((O=n.issuance_rate_yearly)==null?void 0:O.eth),supplyGrowthYearlyPct:rr(n.supply_growth_rate_yearly)*100,supplyGrowthYearlyPowPct:rr(n.supply_growth_rate_yearly_pow)*100,stakingAprPct:s,burnEthPerMin:c,history:u}})}}const ei="https://www.deribit.com/api/v2/public",kp=new ae({namespace:"zframes:deribit:summary",ttlMs:4*6e4,persist:!0}),_p=new ae({namespace:"zframes:deribit:dvol",ttlMs:9*6e4,persist:!0}),xp={JAN:0,FEB:1,MAR:2,APR:3,MAY:4,JUN:5,JUL:6,AUG:7,SEP:8,OCT:9,NOV:10,DEC:11},Cp=/^[A-Z]+-(\d{1,2}[A-Z]{3}\d{2})-(\d+(?:\.\d+)?)-([CP])$/;function Ap(e){const t=/^(\d{1,2})([A-Z]{3})(\d{2})$/.exec(e);if(!t)return Number.POSITIVE_INFINITY;const r=Number(t[1]),a=xp[t[2]],o=2e3+Number(t[3]);return a===void 0?Number.POSITIVE_INFINITY:Date.UTC(o,a,r,8,0,0)}function ti(e){return[...e.entries()].map(([t,r])=>({strike:t,callOi:r.callOi,putOi:r.putOi,callIv:r.callIv,putIv:r.putIv})).sort((t,r)=>t.strike-r.strike)}class Sp{constructor(){q(this,"name","deribit");q(this,"capabilities",["options-summary","volatility-index"])}async getOptionsSummary(t){const r=t.toUpperCase();return kp.get(r,async()=>{const a=await ne(`${ei}/get_book_summary_by_currency?currency=${r}&kind=option`),o=a==null?void 0:a.result;if(!Array.isArray(o)||o.length===0)throw new Error("deribit options: unexpected response shape");let n=0,i=0,s=0,c=0,l=0,u=0,h=0;const f=new Map;for(const k of o){const S=Cp.exec(k.instrument_name);if(!S)continue;const[,D,T,x]=S,O=Number(T),R=k.open_interest??0,N=k.volume??0,P=x==="C";P?(n+=R,s+=N):(i+=R,c+=N),Number.isFinite(k.mark_iv)&&R>0&&(l+=k.mark_iv*R,u+=R),!h&&Number.isFinite(k.underlying_price)&&(h=k.underlying_price);let J=f.get(D);J||(J=new Map,f.set(D,J));let K=J.get(O);K||(K={callOi:0,putOi:0},J.set(O,K));const te=Number.isFinite(k.mark_iv)?k.mark_iv:void 0;P?(K.callOi+=R,te!==void 0&&(K.callIv=te)):(K.putOi+=R,te!==void 0&&(K.putIv=te))}const d=Date.now(),p=[...f.keys()].map(k=>({expiry:k,expiryMs:Ap(k)}));p.sort((k,S)=>k.expiryMs-S.expiryMs);const m=p.find(k=>k.expiryMs>d)??p[0]??null;let g={expiry:(m==null?void 0:m.expiry)??"",expiryMs:(m==null?void 0:m.expiryMs)??0,strikes:[]};m&&(g={expiry:m.expiry,expiryMs:m.expiryMs,strikes:ti(f.get(m.expiry))});const y=p.map(k=>({expiry:k.expiry,expiryMs:k.expiryMs,strikes:ti(f.get(k.expiry))}));return{currency:r,underlyingPrice:h,putCallRatioOi:n>0?i/n:0,putCallRatioVolume:s>0?c/s:0,callOi:n,putOi:i,callVolume:s,putVolume:c,avgIv:u>0?l/u:0,nearestExpiry:g,allExpiries:y,asOf:Date.now()}})}async getVolatilityIndex(t,r,a){const o=t.toUpperCase();return _p.get(`${o}:${a}:${r}`,async()=>{var s;const n=await ne(`${ei}/get_volatility_index_data?currency=${o}&start_timestamp=${r}&end_timestamp=${Date.now()}&resolution=${a}`),i=(s=n==null?void 0:n.result)==null?void 0:s.data;if(!Array.isArray(i))throw new Error("deribit dvol: unexpected response shape");return i.map(c=>({time:c[0],value:c[4]})).sort((c,l)=>c.time-l.time)})}}const Tp=e=>`https://cdn.finra.org/equity/regsho/daily/CNMSshvol${e}.txt`,Ep=7,zp=60*6e4,Pp=new ae({namespace:"zframes:finra:shortvol",ttlMs:zp});function Dp(e){const t=e.indexOf(":");return t===-1?e:e.slice(t+1)}function Mp(e){return`${e.getUTCFullYear()}${String(e.getUTCMonth()+1).padStart(2,"0")}${String(e.getUTCDate()).padStart(2,"0")}`}function Rp(e){const t=e.split(/\r?\n/),r=new Map;let a="";for(let o=1;o<t.length;o++){const n=t[o].split("|");if(n.length<5)continue;const[i,s,c,l,u]=n;if(!s)continue;const h=Number(c),f=Number(u);!Number.isFinite(h)||!Number.isFinite(f)||(!a&&/^\d{8}$/.test(i)&&(a=`${i.slice(0,4)}-${i.slice(4,6)}-${i.slice(6,8)}`),r.set(s.toUpperCase(),{date:a||i,symbol:s,shortVolume:h,shortExemptVolume:Number(l)||0,totalVolume:f,shortPct:f>0?h/f*100:0}))}if(r.size===0)throw new Error("finra: empty or unparseable short-volume file");return{date:a,bySymbol:r}}class Op{constructor(){q(this,"name","finra");q(this,"capabilities",["short-volume"])}async getShortVolume(t){const r=await this.loadReport(),a={};for(const o of t){const n=r.bySymbol.get(Dp(o).toUpperCase());n&&(a[o]=n)}return a}loadReport(){return Pp.get("latest",()=>this.fetchLatest())}async fetchLatest(){const t=Date.now();for(let r=0;r<=Ep;r++){const a=new Date(t-r*864e5);try{return Rp(await aa(Tp(Mp(a)),{proxied:!0,timeoutMs:15e3}))}catch{}}throw new Error("finra: no recent short-volume file found")}}const ri="https://api.frankfurter.dev/v1",Lp=50.14348112,ai={EUR:.576,JPY:.136,GBP:.119,CAD:.091,SEK:.042,CHF:.036},Fp=new ae({namespace:"zframes:fx",ttlMs:55*6e4,persist:!0}),Ip=new ae({namespace:"zframes:fx:dxy",ttlMs:55*6e4,persist:!0}),oi=40;function ni(e){return new Date(Date.now()-e*864e5).toISOString().slice(0,10)}class Np{constructor(){q(this,"name","fx");q(this,"capabilities",["fx-rates","dollar-index"])}async getFxRates(t,r){const a=t.toUpperCase(),o=[...new Set(r.map(i=>i.toUpperCase()))].filter(i=>i&&i!==a);if(o.length===0)return[];const n=`${a}:${[...o].sort().join(",")}`;return Fp.get(n,async()=>{const i=`${ri}/${ni(oi)}..?base=${a}&symbols=${o.join(",")}`,s=await ne(i);if(!(s!=null&&s.rates))throw new Error("frankfurter: unexpected response shape");const c=Object.keys(s.rates).sort();return o.map(l=>{var p;const u=[];for(const m of c){const g=(p=s.rates[m])==null?void 0:p[l];typeof g=="number"&&Number.isFinite(g)&&u.push({time:new Date(`${m}T00:00:00Z`).getTime(),value:g})}if(u.length===0)return null;const h=u[u.length-1].value,f=u.length>1?u[u.length-2].value:h,d=f>0?(h-f)/f*100:0;return{symbol:l,base:a,rate:h,changePct:d,history:u}}).filter(l=>l!==null)})}async getDollarIndex(){return Ip.get("dxy",async()=>{const t=Object.keys(ai),r=`${ri}/${ni(oi)}..?base=USD&symbols=${t.join(",")}`,a=await ne(r);if(!(a!=null&&a.rates))throw new Error("frankfurter dxy: unexpected response shape");const o=Object.keys(a.rates).sort(),n=[];for(const l of o){const u=a.rates[l];if(!u||!t.every(f=>typeof u[f]=="number"&&Number.isFinite(u[f])&&u[f]>0))continue;let h=Lp;for(const[f,d]of Object.entries(ai))h*=Math.pow(u[f],d);n.push({time:new Date(`${l}T00:00:00Z`).getTime(),value:h})}if(n.length===0)throw new Error("frankfurter dxy: no complete days in window");const i=n[n.length-1].value,s=n.length>1?n[n.length-2].value:i,c=s>0?(i-s)/s*100:0;return{value:i,changePct:c,history:n}})}}const Hp="https://api.geckoterminal.com/api/v2",ii="eth",Up=15,Bp=new ae({namespace:"zframes:geckoterminal:pools",ttlMs:1e5});function fr(e){const t=Number(e);return Number.isFinite(t)?t:0}class jp{constructor(){q(this,"name","geckoterminal");q(this,"capabilities",["dex-pools"])}async getDexPools(t=ii){const r=t||ii;return Bp.get(r,async()=>{const a=await ne(`${Hp}/networks/${r}/trending_pools?page=1`);if(!Array.isArray(a==null?void 0:a.data))throw new Error("geckoterminal pools: unexpected response shape");return a.data.map(o=>{var s,c,l;const n=o.attributes??{},i=((s=n.transactions)==null?void 0:s.h24)??{};return{name:n.name??"—",network:r,priceUsd:fr(n.base_token_price_usd),volume24hUsd:fr((c=n.volume_usd)==null?void 0:c.h24),changePct24h:fr((l=n.price_change_percentage)==null?void 0:l.h24),reserveUsd:fr(n.reserve_in_usd),fdvUsd:fr(n.fdv_usd),txns24h:fr(i.buys)+fr(i.sells)}}).sort((o,n)=>n.volume24hUsd-o.volume24hUsd).slice(0,Up)})}}const Vp="wss://api.hyperliquid.xyz/ws",Wp="https://api.hyperliquid.xyz/info",Gp={HlPerp:"Hyperliquid",BinPerp:"Binance",BybitPerp:"Bybit"},fo=e=>e.includes(":")?e.split(":")[0]:"";function Dr(e){if(e===void 0)return;const t=Number(e);return Number.isFinite(t)?t:void 0}async function Qr(e){return ne(Wp,void 0,{init:{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}})}const Kp=new ae({namespace:"zframes:hyperliquid:daystats",ttlMs:25e3}),qp=new ae({namespace:"zframes:hyperliquid:oi",ttlMs:25e3}),Yp=new ae({namespace:"zframes:hyperliquid:candles",ttlMs:55e3,persist:!0}),Jp=new ae({namespace:"zframes:hyperliquid:funding",ttlMs:4.5*6e4,persist:!0}),Xp=new ae({namespace:"zframes:hyperliquid:funding-comparison",ttlMs:5*6e4}),si=e=>e?[...e].sort().join(","):"*";class Zp{constructor(){q(this,"name","hyperliquid");q(this,"capabilities",["quote-stream","day-stats","funding-history","ohlcv","open-interest","funding-comparison"]);q(this,"ws",null);q(this,"listeners",new Set);q(this,"reconnectTimer",null);q(this,"closedByUser",!1);q(this,"wantedDexes",new Set([""]));q(this,"subscribedDexes",new Set);q(this,"mergedMids",{})}async getFundingComparison(){return Xp.get("all",async()=>{const t=await Qr({type:"predictedFundings"});if(!Array.isArray(t))throw new Error("hyperliquid predictedFundings: unexpected shape");const r=[];for(const a of t){if(!Array.isArray(a)||a.length<2)continue;const[o,n]=a;if(typeof o!="string"||!Array.isArray(n))continue;const i=[];for(const c of n){if(!Array.isArray(c)||c.length<2)continue;const[l,u]=c;if(!u)continue;const h=parseFloat(u.fundingRate);if(!Number.isFinite(h))continue;const f=Number(u.fundingIntervalHours),d=Number.isFinite(f)&&f>0?f:l==="HlPerp"?1:8;i.push({venue:Gp[l]??l,rawRate:h,intervalHours:d,annualizedPct:h*(8760/d)*100})}if(i.length<2)continue;const s=i.map(c=>c.annualizedPct);r.push({coin:o,venues:i,spreadPct:Math.max(...s)-Math.min(...s)})}return r.sort((a,o)=>Math.abs(o.spreadPct)-Math.abs(a.spreadPct)).slice(0,80)})}subscribeMids(t,r){this.listeners.add(t);for(const a of r??[])this.wantedDexes.add(fo(a));return this.ensureSocket(),this.subscribeMissingDexes(),()=>{this.listeners.delete(t),this.listeners.size===0&&this.teardown()}}getDayStats(t){return Kp.get(si(t),()=>this.fetchDayStats(t))}async fetchDayStats(t){const r=new Set,a=new Set;if(!t)r.add("");else for(const i of t)i.endsWith(":*")?r.add(i.slice(0,-2)):a.add(i);const o=new Set(r);for(const i of a)o.add(fo(i));const n={};return await Promise.all([...o].map(async i=>{const s={type:"metaAndAssetCtxs"};i&&(s.dex=i);const[c,l]=await Qr(s),u=r.has(i);c.universe.forEach((h,f)=>{if(!u&&!a.has(h.name))return;const d=l[f];if(!d)return;const p=Number(d.markPx),m=Number(d.prevDayPx);if(!Number.isFinite(p)||!Number.isFinite(m))return;const g={markPx:p,prevDayPx:m,changePct:m?(p-m)/m*100:0},y=Dr(d.funding),k=Dr(d.dayNtlVlm),S=Dr(d.premium),D=Dr(d.oraclePx),T=d.impactPxs?Dr(d.impactPxs[0]):void 0,x=d.impactPxs?Dr(d.impactPxs[1]):void 0;y!==void 0&&(g.funding=y),k!==void 0&&(g.dayNtlVlm=k),S!==void 0&&(g.premium=S),D!==void 0&&(g.oraclePx=D),T!==void 0&&x!==void 0&&(g.impactPxs=[T,x]),n[h.name]=g})})),n}getOpenInterest(t){return qp.get(si(t),()=>this.fetchOpenInterest(t))}async fetchOpenInterest(t){const r=new Set,a=new Set;if(!t)r.add("");else for(const i of t)i.endsWith(":*")?r.add(i.slice(0,-2)):a.add(i);const o=new Set(r);for(const i of a)o.add(fo(i));const n=[];return await Promise.all([...o].map(async i=>{const s={type:"metaAndAssetCtxs"};i&&(s.dex=i);const[c,l]=await Qr(s),u=r.has(i);c.universe.forEach((h,f)=>{if(!u&&!a.has(h.name))return;const d=l[f];if(!d)return;const p=Number(d.markPx),m=Number(d.openInterest);!Number.isFinite(p)||!Number.isFinite(m)||n.push({symbol:h.name,openInterestUsd:m*p})})})),n.sort((i,s)=>s.openInterestUsd-i.openInterestUsd)}getFundingHistory(t,r){return Jp.get(`${[...t].sort().join(",")}|${r}`,()=>this.fetchFundingHistory(t,r))}async fetchFundingHistory(t,r){const a=await Promise.all(t.map(async o=>{const i=(await Qr({type:"fundingHistory",coin:o,startTime:r})).map(s=>({time:s.time,fundingRate:Number(s.fundingRate)})).filter(s=>Number.isFinite(s.fundingRate)&&Number.isFinite(s.time));return[o,i]}));return Object.fromEntries(a)}getCandles(t,r,a){return Yp.get(`${t}|${r}|${a}`,()=>this.fetchCandles(t,r,a))}async fetchCandles(t,r,a){return(await Qr({type:"candleSnapshot",req:{coin:t,interval:r,startTime:a}})).map(n=>({time:n.t,open:Number(n.o),high:Number(n.h),low:Number(n.l),close:Number(n.c),volume:Number(n.v)}))}ensureSocket(){if(this.ws)return;this.closedByUser=!1,this.subscribedDexes=new Set;const t=new WebSocket(Vp);this.ws=t,t.onopen=()=>{this.subscribeMissingDexes()},t.onmessage=r=>{var o;let a;try{a=JSON.parse(String(r.data))}catch{return}if(!(a.channel!=="allMids"||!((o=a.data)!=null&&o.mids))){for(const[n,i]of Object.entries(a.data.mids))this.mergedMids[n]=Number(i);for(const n of this.listeners)n(this.mergedMids)}},t.onclose=()=>{this.ws=null,!this.closedByUser&&this.listeners.size>0&&(this.reconnectTimer=setTimeout(()=>this.ensureSocket(),2e3))}}subscribeMissingDexes(){const t=this.ws;if(!(!t||t.readyState!==WebSocket.OPEN))for(const r of this.wantedDexes){if(this.subscribedDexes.has(r))continue;const a={type:"allMids"};r&&(a.dex=r),t.send(JSON.stringify({method:"subscribe",subscription:a})),this.subscribedDexes.add(r)}}teardown(){var t;this.closedByUser=!0,this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),(t=this.ws)==null||t.close(),this.ws=null,this.subscribedDexes=new Set,this.mergedMids={}}}const ar="https://mempool.space/api",$p=new ae({namespace:"zframes:mempool:fees",ttlMs:25e3,persist:!0}),Qp=new ae({namespace:"zframes:mempool:state",ttlMs:12e3,persist:!0}),eg=new ae({namespace:"zframes:mempool:blocks",ttlMs:25e3,persist:!0}),tg=new ae({namespace:"zframes:mempool:hashrate",ttlMs:25*6e4,persist:!0}),rg=new ae({namespace:"zframes:mempool:difficulty",ttlMs:5e4,persist:!0}),ag=new ae({namespace:"zframes:mempool:pools",ttlMs:4*6e4,persist:!0}),og=new ae({namespace:"zframes:mempool:lightning",ttlMs:25*6e4,persist:!0});class ng{constructor(){q(this,"name","mempool");q(this,"capabilities",["btc-fees","btc-mempool","btc-blocks","btc-hashrate","btc-difficulty","mining-pools","lightning-stats"])}async getBtcFees(){return $p.get("latest",async()=>{const t=await ne(`${ar}/v1/fees/recommended`);if(!t||typeof t.fastestFee!="number")throw new Error("mempool fees: unexpected response shape");return{fastest:t.fastestFee,halfHour:t.halfHourFee,hour:t.hourFee,economy:t.economyFee,minimum:t.minimumFee}})}async getMempoolState(){return Qp.get("latest",async()=>{const[t,r]=await Promise.all([ne(`${ar}/mempool`),ne(`${ar}/v1/fees/mempool-blocks`)]);if(!t||typeof t.count!="number")throw new Error("mempool state: unexpected response shape");const a=(Array.isArray(r)?r:[]).map(o=>({medianFee:o.medianFee,feeRange:Array.isArray(o.feeRange)?o.feeRange:[],totalFees:o.totalFees,nTx:o.nTx,blockVSize:o.blockVSize}));return{count:t.count,vsize:t.vsize,totalFee:t.total_fee,projected:a}})}async getBtcBlocks(t=8){return eg.get(String(t),async()=>{const r=await ne(`${ar}/v1/blocks`);if(!Array.isArray(r))throw new Error("mempool blocks: unexpected response shape");return r.slice(0,t).map(a=>{var o,n,i,s,c,l;return{id:a.id,height:a.height,time:a.timestamp*1e3,txCount:a.tx_count,size:a.size,totalFees:((o=a.extras)==null?void 0:o.totalFees)??0,medianFee:((n=a.extras)==null?void 0:n.medianFee)??0,poolName:((s=(i=a.extras)==null?void 0:i.pool)==null?void 0:s.name)??"Unknown",poolSlug:((l=(c=a.extras)==null?void 0:c.pool)==null?void 0:l.slug)??"unknown"}})})}async getNetworkHashrate(t){return tg.get(t,async()=>{const r=await ne(`${ar}/v1/mining/hashrate/${encodeURIComponent(t)}`);if(!r||!Array.isArray(r.hashrates))throw new Error("mempool hashrate: unexpected response shape");return{currentHashrate:r.currentHashrate,currentDifficulty:r.currentDifficulty,hashrates:r.hashrates.map(a=>({time:a.timestamp*1e3,hashrate:a.avgHashrate})),difficulty:(r.difficulty??[]).map(a=>({time:a.time*1e3,difficulty:a.difficulty}))}})}async getDifficultyAdjustment(){return rg.get("latest",async()=>{const t=await ne(`${ar}/v1/difficulty-adjustment`);if(!t||typeof t.progressPercent!="number")throw new Error("mempool difficulty: unexpected response shape");return{progressPercent:t.progressPercent,difficultyChange:t.difficultyChange,previousRetarget:t.previousRetarget,remainingBlocks:t.remainingBlocks,remainingTimeMs:t.remainingTime,estimatedRetargetDate:t.estimatedRetargetDate,nextRetargetHeight:t.nextRetargetHeight,avgBlockTimeMs:t.timeAvg}})}async getMiningPools(t){return ag.get(t,async()=>{const r=await ne(`${ar}/v1/mining/pools/${encodeURIComponent(t)}`);if(!r||!Array.isArray(r.pools))throw new Error("mempool pools: unexpected response shape");const a=r.blockCount||0;return{window:t,totalBlocks:a,pools:r.pools.map(o=>({name:o.name,slug:o.slug,blockCount:o.blockCount,sharePct:a>0?o.blockCount/a*100:0,rank:o.rank}))}})}async getLightningStats(){return og.get("latest",async()=>{var a,o,n;const t=await ne(`${ar}/v1/lightning/statistics/latest`),r=t==null?void 0:t.latest;if(!r||typeof r.node_count!="number")throw new Error("mempool lightning: unexpected response shape");return{nodeCount:r.node_count,channelCount:r.channel_count,totalCapacity:r.total_capacity,torNodes:r.tor_nodes,clearnetNodes:r.clearnet_nodes,medCapacity:r.med_capacity,prevNodeCount:(a=t.previous)==null?void 0:a.node_count,prevChannelCount:(o=t.previous)==null?void 0:o.channel_count,prevTotalCapacity:(n=t.previous)==null?void 0:n.total_capacity}})}}const ig={coindesk:{url:"https://www.coindesk.com/arc/outboundfeeds/rss/",source:"CoinDesk"},cointelegraph:{url:"https://cointelegraph.com/rss",source:"Cointelegraph"},decrypt:{url:"https://decrypt.co/feed",source:"Decrypt"},cnbc:{url:"https://www.cnbc.com/id/20910258/device/rss/rss.html",source:"CNBC Markets"},nasdaq:{url:"https://www.nasdaq.com/feed/rssoutbound?category=Markets",source:"Nasdaq"}},sg=e=>{const t=`(${e.join(" OR ")}) stock`;return`https://news.google.com/rss/search?q=${encodeURIComponent(t)}&hl=en-US&gl=US&ceid=US:en`},ci={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" "};function oa(e){return e.replace(/&(#x?[0-9a-f]+|[a-z]+);/gi,(t,r)=>{const a=r.toLowerCase();if(ci[a])return ci[a];if(r[0]==="#"){const o=r[1]==="x"||r[1]==="X"?parseInt(r.slice(2),16):parseInt(r.slice(1),10);return Number.isFinite(o)?String.fromCodePoint(o):t}return t})}const Ka=e=>e.replace(/<!\[CDATA\[([\s\S]*?)\]\]>/g,"$1");function li(e){return oa(Ka(e).replace(/<[^>]+>/g," ")).replace(/\s+/g," ").trim()}function zt(e,t){const r=e.match(new RegExp(`<${t}(?:\\s[^>]*)?>([\\s\\S]*?)</${t}>`,"i"));return r?r[1]:void 0}function cg(e){const t=[...e.matchAll(/<link\b[^>]*\bhref="([^"]+)"[^>]*>/gi)];if(t.length>0){const a=t.find(o=>/rel="alternate"/i.test(o[0]))??t.find(o=>!/\brel=/i.test(o[0]))??t[0];return oa(a[1]).trim()}const r=zt(e,"link");return r?oa(Ka(r)).trim():void 0}function Mr(e,t){const r=e.match(new RegExp(`\\b${t}\\s*=\\s*"([^"]*)"`,"i"));return r?oa(r[1]).trim():void 0}const ka=e=>!!e&&/^https:\/\//i.test(e);function lg(e){var o,n;const t=(o=e.match(/<media:thumbnail\b[^>]*>/i))==null?void 0:o[0];if(t){const i=Mr(t,"url");if(ka(i))return i}for(const i of e.matchAll(/<media:content\b[^>]*>/gi)){const s=Mr(i[0],"medium"),c=Mr(i[0],"type"),l=s==="image"||!s&&!(c!=null&&c.match(/^(audio|video)\//i)),u=Mr(i[0],"url");if(l&&ka(u))return u}for(const i of e.matchAll(/<enclosure\b[^>]*>/gi)){if(!((n=Mr(i[0],"type"))!=null&&n.startsWith("image/")))continue;const s=Mr(i[0],"url");if(ka(s))return s}const r=zt(e,"content:encoded")??zt(e,"description")??zt(e,"content")??zt(e,"summary"),a=r?Ka(r).match(/<img\b[^>]*\bsrc="([^"]+)"/i):null;if(a){const i=oa(a[1]).trim();if(ka(i))return i}}function ug(e){const t=zt(e,"pubDate")??zt(e,"published")??zt(e,"updated")??zt(e,"dc:date");if(!t)return;const r=Date.parse(Ka(t).trim());return Number.isFinite(r)?r:void 0}function ui(e,t,r){const a=[...e.matchAll(/<(item|entry)\b[\s\S]*?<\/\1>/gi)].map(n=>n[0]),o=[];for(const n of a){const i=zt(n,"title"),s=cg(n);if(!i||!s)continue;const c=li(i);if(!c)continue;const l=zt(n,"description")??zt(n,"summary")??zt(n,"content"),u=l?li(l).slice(0,280):void 0,h=ug(n),f=lg(n);o.push({title:c,url:s,source:t,...u?{summary:u}:{},...h?{publishedAt:h}:{},...f?{imageUrl:f}:{}})}return o.some(n=>n.publishedAt!==void 0)&&o.sort((n,i)=>(i.publishedAt??0)-(n.publishedAt??0)),o.slice(0,r)}class dg{constructor(){q(this,"name","news");q(this,"capabilities",["news"])}async getNews({feed:t,symbols:r,limit:a=12}){if(t==="stocks"){const i=(r??[]).map(c=>(c.split(":").pop()??"").toUpperCase()).filter(Boolean);if(i.length===0)return[];const s=await aa(sg(i),{proxied:!0,timeoutMs:12e3});return ui(s,"Google News",a)}const o=ig[t];if(!o)throw new Error(`news: unknown feed "${t}"`);const n=await aa(o.url,{proxied:!0,timeoutMs:12e3});return ui(n,o.source,a)}}const hg="https://markets.newyorkfed.org/api/rates/all/latest.json",fg={SOFR:"SOFR",SOFRAI:"SOFR averages",EFFR:"Effective fed funds",OBFR:"Overnight bank funding",TGCR:"Tri-party repo",BGCR:"Broad general collateral"},di=["EFFR","SOFR","TGCR","BGCR","OBFR","SOFRAI"],mg=new ae({namespace:"zframes:nyfed:rates",ttlMs:12*6e4,persist:!0,revive:e=>Array.isArray(e)?e:null});function mr(e){const t=Number(e);return Number.isFinite(t)?t:null}function pg(e,t){const r=di.indexOf(e.code),a=di.indexOf(t.code);return(r===-1?99:r)-(a===-1?99:a)}class gg{constructor(){q(this,"name","nyfed");q(this,"capabilities",["reference-rates"])}async getReferenceRates(){return mg.get("latest",async()=>{const t=await ne(hg);if(!Array.isArray(t==null?void 0:t.refRates))throw new Error("ny fed rates: unexpected response shape");return t.refRates.map(r=>{const a=String(r.type??""),o=mr(r.percentRate??r.average30day);if(!a||!r.effectiveDate||o===null)return null;const n={code:a,label:fg[a]??a,date:r.effectiveDate,rate:o,source:"New York Fed"},i=mr(r.volumeInBillions),s=mr(r.targetRateFrom),c=mr(r.targetRateTo),l=mr(r.average30day),u=mr(r.average90day),h=mr(r.average180day);return i!==null&&(n.volumeInBillions=i),s!==null&&(n.targetRateFrom=s),c!==null&&(n.targetRateTo=c),l!==null&&(n.average30Day=l),u!==null&&(n.average90Day=u),h!==null&&(n.average180Day=h),n}).filter(r=>r!==null).sort(pg)})}}const bg="https://www.financialresearch.gov/financial-stress-index/data/fsi.csv",yg=60*6e4,vg=new ae({namespace:"zframes:ofr:fsi",ttlMs:yg}),wg=[[2,"Credit"],[3,"Equity valuation"],[4,"Safe assets"],[5,"Funding"],[6,"Volatility"]];function pr(e){const t=Number(e);return Number.isFinite(t)?t:null}function kg(e){const t=e.split(/\r?\n/),r=[];let a=null;for(let i=1;i<t.length;i++){const s=t[i].split(",");if(s.length<7)continue;const c=s[0],l=pr(s[1]),u=Date.parse(`${c}T00:00:00Z`);if(!c||l===null||!Number.isFinite(u))continue;const h={time:u,date:c,value:l},f=pr(s[2]),d=pr(s[3]),p=pr(s[4]),m=pr(s[5]),g=pr(s[6]);f!==null&&(h.credit=f),d!==null&&(h.equityValuation=d),p!==null&&(h.safeAssets=p),m!==null&&(h.funding=m),g!==null&&(h.volatility=g),r.push(h),a=s}if(!a||r.length===0)throw new Error("ofr fsi: empty or unparseable CSV");const o=r[r.length-1],n=wg.map(([i,s])=>({label:s,value:pr(a[i])??0}));return{value:o.value,date:o.date,categories:n,trend:r.slice(-90),source:"OFR"}}class _g{constructor(){q(this,"name","ofr");q(this,"capabilities",["financial-stress"])}async getFinancialStress(){return vg.get("latest",()=>aa(bg,{proxied:!0}).then(kg))}}const xg={A:1090872,AAPL:320193,ABBV:1551152,ABEV:1565025,ABNB:1559720,ABT:1800,ACGL:947484,ACN:1467373,ADBE:796343,ADI:6281,ADM:7084,ADP:8670,ADSK:769397,AEE:1002910,AEM:2809,AEP:4904,AFL:4977,AIG:5272,AJG:354190,ALAB:1736297,ALC:1167379,ALL:899051,ALNY:1178670,AMAT:6951,AMD:2488,AME:1037868,AMGN:318154,AMP:820027,AMRZ:2035989,AMT:1053507,AMX:1129137,AMZN:1018724,ANET:1596532,AON:315293,APD:2969,APH:820313,APO:1858681,APP:1751008,ARES:1176948,ARGX:1697862,ARM:1973239,ASML:937966,ASTS:1780312,ASX:1122411,ATEYY:1158838,ATO:731802,AU:1973832,AVGO:1730168,AXON:1069183,AXP:4962,AZN:901832,AZO:866787,B:756894,BA:12927,BABA:1577552,BAC:70858,BAESY:895564,BAM:1937926,BBD:1160330,BBVA:842180,BCS:312069,BDX:10795,BE:1664703,BHP:811809,BIDU:1329099,BIIB:875045,BKNG:1075531,BKR:1701605,BLK:2012383,BMO:927971,BMWKY:1446250,BMY:14272,BN:1001085,BNS:9631,BNY:1390777,BP:313807,"BRK-A":1067983,"BRK-B":1067983,BSBR:1471055,BSX:885725,BTI:1303523,BUD:1668717,BX:1393818,C:831001,CAH:721371,CARR:1783180,CAT:18230,CB:896159,CBOE:1374310,CBRE:1138118,CBRS:2021728,CCEP:1650107,CCI:1051470,CCJ:1009001,CCL:815097,CDNS:813672,CEG:1868275,CHT:1132924,CI:1739940,CIEN:936395,CKHGF:1469059,CL:21665,CLS:1030894,CM:1045520,CMCSA:1166691,CME:1156375,CMG:1058090,CMI:26172,CNC:1071739,CNI:16868,CNQ:1017413,COF:927628,COHR:820318,COIN:1679788,COP:1163165,COR:1140859,COST:909832,CP:16875,CPRT:900075,CQP:1383650,CRDO:1807794,CRH:849395,CRM:1108524,CRWD:1535527,CRWV:1769628,CSCO:858877,CSLLY:1274152,CSX:277948,CTAS:723254,CTVA:1755672,CVE:1475260,CVNA:1690820,CVS:64803,CVX:93410,CYATY:2070829,D:715957,DAL:27904,DASH:1792789,DB:1159508,DDOG:1561550,DE:315189,DELL:1571996,DEO:835403,DHI:882184,DHR:313616,DIA:1041130,DIS:1744489,DLMAY:2073893,DLR:1297996,DOV:29905,DTE:936340,DTEGY:946770,DUK:1326160,DVN:1090012,E:1002242,EA:712515,EBAY:1065088,EC:1444406,ECL:31462,ED:1047862,EIX:827052,EL:1001250,ELV:1156039,EME:105634,EMR:32604,ENB:895728,EOG:821189,EONGY:1136808,EPD:1061219,EQIX:1101239,EQNR:1140625,EQT:33213,ERIC:717826,ESLT:1027664,ET:1276187,ETN:1551182,ETR:65984,EW:1099800,EXC:1109357,EXR:1289490,F:37996,FANG:1539838,FAST:815556,FCX:831259,FDX:1048911,FER:1468522,FERG:2011641,FISV:798354,FITB:35527,FIX:1035983,FLEX:866374,FMX:1061736,FNV:1456346,FOX:1754301,FOXA:1754301,FRFHF:915191,FSLR:1274494,FTNT:1262039,FTS:1666175,GALDY:2021390,GD:40533,GE:40545,GEHC:1932393,GEV:1996810,GFI:1172724,GFS:1709048,GILD:882095,GLD:1222333,GLW:24741,GM:1467858,GOOG:1652044,GOOGL:1652044,GRMN:1121788,GS:886982,GSK:1131399,GWLIF:850918,GWW:277135,HAL:45012,HBAN:49196,HCA:860730,HD:354950,HDB:1144967,HEI:46619,HIG:874766,HLN:1900304,HLT:1585689,HMC:715153,HON:773840,HOOD:1783879,HPE:1645590,HSBC:1089113,HSY:47111,HTHIY:47710,HUM:49071,HWM:4281,IBKR:1381197,IBM:51143,IBN:1103838,ICE:1571949,IDXX:874716,IFNNY:1107457,IMO:49938,INFY:1067491,ING:1039765,INTC:50863,INTU:896878,IQV:1478242,IR:1699150,IRM:1020569,ISRG:1035267,ITUB:1132597,ITW:49826,IX:1070304,JBL:898293,JCI:833444,JD:1549802,JHPCY:2071868,JNJ:200406,JPM:19617,KB:1445930,KBGGY:1535759,KDP:1418135,KEYS:1601046,KGC:701818,KKR:1404912,KLAC:319201,KMB:55785,KMI:1506307,KO:21344,KR:56873,KVUE:1944048,KXIAY:2053383,LHX:202058,LIN:1707925,LITE:1633978,LLY:59478,LMT:936468,LNG:3570,LOW:60667,LRCX:707549,LSEGY:1842726,LVS:1300514,LYG:1160106,LYV:1335258,MA:1141391,MAR:1048286,MCD:63908,MCHP:827054,MCK:927653,MCO:1059556,MDLN:2046386,MDLZ:1103982,MDT:1613103,MELI:1099590,MET:1099219,META:1326801,MFC:1086888,MFG:1335730,MGCLY:2039784,MLM:916076,MMM:66740,MNST:865752,MO:764180,MPC:1510295,MPLX:1552e3,MPWR:1280452,MRK:310158,MRSH:62709,MRVL:1835632,MS:895421,MSCI:1408198,MSFT:789019,MSI:68505,MSTR:1050446,MT:1243429,MTB:36270,MTZ:15615,MU:723125,MUFG:67088,NBIS:1513845,NDAQ:1120193,NEE:753308,NEM:1164727,NET:1477333,NFLX:1065280,NGG:1004315,NKE:320187,NOC:1133421,NOK:924613,NOW:1373715,NSC:702165,NTAP:1002047,NTES:1110646,NTR:1725964,NTRA:1604821,NTRS:73124,NU:1691493,NUE:73309,NVDA:1045810,NVO:353278,NVS:1114448,NWG:844150,NWS:1564708,NWSA:1564708,NXPI:1413447,O:726728,ODFL:878927,OKE:1039684,ON:1097864,ORCL:1341439,ORLY:898173,OXY:797468,PANW:1327567,PAYX:723531,PBA:1546066,PBR:1119639,PCAR:75362,PCG:1004980,PDD:1737806,PEG:788784,PEP:77476,PFE:78003,PG:80424,PGR:80661,PH:76334,PLD:1045609,PLTR:1321655,PM:1413329,PNC:713676,PRU:1137774,PSA:1393311,PSX:1534701,PUK:1116578,PWR:1050915,PYPL:1633917,Q:2058873,QCOM:804328,QQQ:1067839,QSR:1618756,RACE:1648416,RBLX:1315098,RCL:884887,RDDT:1713445,REGN:872589,RELX:929869,RIO:863064,RJF:720005,RKLB:1819994,RKT:1805284,RMD:943819,ROK:1024478,ROP:882835,ROST:745732,RPRX:1802768,RSG:1060391,RSHGY:1447391,RTNTF:887028,RTX:101829,RVMD:1628171,RY:1000275,RYAAY:1038683,SAN:891478,SAP:1000184,SATS:1415404,SBUX:829224,SCCO:1001838,SCHW:316709,SCMWY:1069336,SE:1703399,SHEL:1306965,SHG:1263043,SHOP:1594805,SHW:89800,SLB:87347,SLF:1097362,SLV:1330568,SMERY:1830056,SMFG:1022837,SNDK:2023554,SNHIY:2098326,SNOW:1640147,SNPS:883241,SNY:1121404,SO:92122,SONY:313838,SPG:1063761,SPGI:64040,SPOT:1639920,SPY:884394,SRE:1032208,STLD:1022671,STM:932787,STT:93751,STX:1137789,SU:311337,SUNB:2083785,SYK:310764,SYY:96021,T:732717,TAK:1395064,TCOM:1269238,TD:947263,TDG:1260221,TECK:886986,TEL:1385157,TER:97210,TEVA:818686,TFC:92230,TGT:27419,TJX:109198,TKO:1973266,TM:1094517,TMO:97745,TMUS:1283699,TPR:1116132,TRGP:1389170,TRI:1075124,TRMOY:2071881,TRP:1232384,TRV:86312,TS:1190723,TSLA:1318605,TT:1466258,TTE:879764,TTWO:946581,TWLO:1447669,TXN:97476,TYHOY:2018139,UA:1336917,UAA:1336917,UAL:100517,UBER:1543151,UBS:1610520,UI:1511737,UL:217410,UMC:1033767,UNH:731766,UNP:100885,UPS:1090727,URI:1067701,USB:36104,V:1403161,VALE:917851,VG:2007855,VICI:1705696,VIK:1745201,VLO:1035002,VMC:1396009,VOD:839923,VRT:1674101,VRTX:875320,VST:1692819,VTR:740260,VZ:732712,WAB:943452,WAT:1000697,WBD:1437107,WCN:1318220,WDAY:1327811,WDC:106040,WEC:783325,WELL:766704,WFC:72971,WM:823768,WMB:107263,WMT:104169,WPM:1323404,XEL:72903,XOM:34088,XYZ:1512673,YUM:1041061,ZM:1585521,ZTS:1555280};function Co(e){return String(e).replace(/\D/g,"").padStart(10,"0")}function hi(e){const t=e.trim(),r=/^cik[-\s]?(\d{1,10})$/i.exec(t)??/^(\d{1,10})$/.exec(t);if(r)return r[1].padStart(10,"0");const a=(t.includes(":")?t.slice(t.lastIndexOf(":")+1):t).toUpperCase().replace(/[^A-Z0-9.-]/g,""),o=xg[a];return o===void 0?null:Co(o)}const Cg=e=>`https://data.sec.gov/submissions/CIK${e}.json`,Ag=e=>`https://data.sec.gov/api/xbrl/companyfacts/CIK${e}.json`,Vs=15*6e4,Sg=new ae({namespace:"zframes:sec:filings",ttlMs:Vs}),Tg=new ae({namespace:"zframes:sec:facts",ttlMs:Vs});function Eg(e,t,r){const a=String(Number(e)),o=t.replace(/-/g,""),n=`https://www.sec.gov/Archives/edgar/data/${a}/${o}`;return r?`${n}/${r}`:`${n}/`}const zg=[{label:"Revenue",unit:"USD",taxonomy:"us-gaap",kind:"flow",concepts:["RevenueFromContractWithCustomerExcludingAssessedTax","Revenues","SalesRevenueNet"]},{label:"Net income",unit:"USD",taxonomy:"us-gaap",kind:"flow",concepts:["NetIncomeLoss"]},{label:"Total assets",unit:"USD",taxonomy:"us-gaap",kind:"instant",concepts:["Assets"]},{label:"Shareholders' equity",unit:"USD",taxonomy:"us-gaap",kind:"instant",concepts:["StockholdersEquity"]},{label:"Diluted EPS",unit:"USD/shares",taxonomy:"us-gaap",kind:"flow",concepts:["EarningsPerShareDiluted","EarningsPerShareBasic"]},{label:"Shares outstanding",unit:"shares",taxonomy:"dei",kind:"instant",concepts:["EntityCommonStockSharesOutstanding"]}];function Pg(e){return e.fy?e.fp==="FY"?`FY${e.fy}`:`${e.fp??""} ${e.fy}`.trim():e.end??""}function Dg(e,t){const r=e.filter(o=>o.end&&o.form&&Number.isFinite(o.val));return(t==="flow"&&r.some(o=>o.fp==="FY")?r.filter(o=>o.fp==="FY"):r).reduce((o,n)=>!o||n.end>o.end?n:o,null)}function Mg(e){var r,a;if(!e)return[];const t=[];for(const o of zg){const n=e[o.taxonomy];if(!n)continue;let i=null;for(const s of o.concepts){const c=(a=(r=n[s])==null?void 0:r.units)==null?void 0:a[o.unit];if(!(c!=null&&c.length))continue;const l=Dg(c,o.kind);l&&(!i||l.end>i.end)&&(i=l)}i&&t.push({label:o.label,value:i.val,unit:o.unit,end:i.end,fiscalPeriod:Pg(i),form:i.form})}return t}class Rg{constructor(t){q(this,"name","sec");q(this,"capabilities",["filings","fundamentals"]);this.contact=t}nodeInit(){return this.contact&&typeof document>"u"?{init:{headers:{"User-Agent":`zframes (${this.contact})`}}}:void 0}async getCompanyFacts(t){const r=hi(t);if(!r)throw new Error(`sec: unknown ticker "${t}" — not in the bundled map; pass a CIK (e.g. "320193") instead`);return Tg.get(r,()=>this.fetchCompanyFacts(r))}async fetchCompanyFacts(t){const r=await ne(Ag(t),void 0,{proxied:!0,...this.nodeInit()}),a=Mg(r.facts);if(a.length===0)throw new Error("sec companyfacts: no headline metrics found");return{cik:Co(r.cik??t),entityName:r.entityName??"",metrics:a}}async getCompanyFilings(t){const r=hi(t);if(!r)throw new Error(`sec: unknown ticker "${t}" — not in the bundled map; pass a CIK (e.g. "320193") instead`);return Sg.get(r,()=>this.fetchFilings(r))}async fetchFilings(t){var i,s,c,l,u,h,f;const r=await ne(Cg(t),void 0,this.nodeInit()),a=(i=r.filings)==null?void 0:i.recent;if(!a||!Array.isArray(a.accessionNumber))throw new Error("sec submissions: unexpected response shape");const o=a.accessionNumber.length,n=[];for(let d=0;d<o;d++){const p=a.accessionNumber[d],m=(s=a.form)==null?void 0:s[d],g=(c=a.filingDate)==null?void 0:c[d];if(!p||!m||!g)continue;const y=(l=a.reportDate)==null?void 0:l[d],k=(u=a.primaryDocDescription)==null?void 0:u[d],S=(h=a.items)==null?void 0:h[d];n.push({form:m,filingDate:g,accessionNumber:p,url:Eg(t,p,(f=a.primaryDocument)==null?void 0:f[d]),...y?{reportDate:y}:{},...k?{description:k}:{},...S?{items:S}:{}})}return{cik:Co(r.cik??t),name:r.name??"",tickers:r.tickers??[],exchanges:r.exchanges??[],filings:n,...r.sic?{sic:r.sic}:{},...r.sicDescription?{sicDescription:r.sicDescription}:{},...r.category?{category:r.category}:{},...r.fiscalYearEnd?{fiscalYearEnd:r.fiscalYearEnd}:{}}}}const Og="https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/avg_interest_rates?sort=-record_date&page%5Bsize%5D=20&format=json",Lg=e=>`https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/debt_to_penny?sort=-record_date&page%5Bsize%5D=${e}&format=json`,Fg=e=>`https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v1/accounting/od/auctions_query?sort=-auction_date&filter=bid_to_cover_ratio:gt:0&fields=auction_date,security_type,security_term,high_yield,high_discnt_rate,high_investment_rate,bid_to_cover_ratio,offering_amt,total_accepted&page%5Bsize%5D=${e}&format=json`,Ig=e=>`https://home.treasury.gov/resource-center/data-chart-center/interest-rates/pages/xml?data=daily_treasury_yield_curve&field_tdr_date_value_month=${e}`,qa=180*6e4,Ng=new ae({namespace:"zframes:treasury:yield-curve",ttlMs:qa,persist:!0}),Hg=new ae({namespace:"zframes:treasury:avg-rates",ttlMs:qa,persist:!0}),Ug=new ae({namespace:"zframes:treasury:national-debt",ttlMs:qa,persist:!0}),Bg=new ae({namespace:"zframes:treasury:auctions",ttlMs:qa,persist:!0}),jg=[["BC_1MONTH","1M",1],["BC_2MONTH","2M",2],["BC_3MONTH","3M",3],["BC_4MONTH","4M",4],["BC_6MONTH","6M",6],["BC_1YEAR","1Y",12],["BC_2YEAR","2Y",24],["BC_3YEAR","3Y",36],["BC_5YEAR","5Y",60],["BC_7YEAR","7Y",84],["BC_10YEAR","10Y",120],["BC_20YEAR","20Y",240],["BC_30YEAR","30Y",360]];function Dt(e){const t=Number(e);return Number.isFinite(t)?t:null}function Vg(e){return`${e.getUTCFullYear()}${String(e.getUTCMonth()+1).padStart(2,"0")}`}function Wg(e){const t=e.match(/<m:properties>[\s\S]*?<\/m:properties>/g);if(!(t!=null&&t.length))return null;let r=null;for(const o of t){const n=/<d:NEW_DATE[^>]*>([^<]+)<\/d:NEW_DATE>/.exec(o);if(!n)continue;const i=n[1].slice(0,10);(!r||i>r.date)&&(r={date:i,raw:o})}if(!r)return null;const a=[];for(const[o,n,i]of jg){const s=new RegExp(`<d:${o}[^>]*>([^<]*)</d:${o}>`).exec(r.raw),c=s?Number(s[1]):NaN;Number.isFinite(c)&&a.push({label:n,months:i,rate:c})}return a.length?{date:r.date,points:a}:null}class Gg{constructor(){q(this,"name","treasury");q(this,"capabilities",["treasury-rates","yield-curve","treasury-auctions","national-debt"])}async getYieldCurve(){return Ng.get("latest",()=>this.fetchYieldCurve())}async fetchYieldCurve(){const t=new Date;for(let r=0;r<=1;r++){const a=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth()-r,1)),o=await aa(Ig(Vg(a)),{proxied:!0,timeoutMs:15e3}).catch(()=>""),n=Wg(o);if(n)return n}throw new Error("treasury yield curve: no recent data")}async getTreasuryAverageRates(){return Hg.get("latest",()=>this.fetchTreasuryAverageRates())}async fetchTreasuryAverageRates(){var a;const t=await ne(Og,void 0,{proxied:!0});if(!Array.isArray(t==null?void 0:t.data))throw new Error("treasury average rates: unexpected response shape");const r=(a=t.data.find(o=>o.record_date))==null?void 0:a.record_date;return r?t.data.filter(o=>o.record_date===r).map(o=>{const n=Dt(o.avg_interest_rate_amt);return n===null||!o.security_type_desc||!o.security_desc?null:{date:r,securityType:o.security_type_desc,security:o.security_desc,rate:n}}).filter(o=>o!==null):[]}async getNationalDebt(t=180){return Ug.get(String(t),()=>this.fetchNationalDebt(t))}async fetchNationalDebt(t){const r=Math.max(2,Math.min(t,400)),a=await ne(Lg(r),void 0,{proxied:!0});if(!Array.isArray(a==null?void 0:a.data)||a.data.length===0)throw new Error("treasury debt to the penny: unexpected response shape");const o=[];for(let i=a.data.length-1;i>=0;i--){const s=a.data[i],c=Dt(s.tot_pub_debt_out_amt),l=Date.parse(`${s.record_date}T00:00:00Z`);if(!s.record_date||c===null||!Number.isFinite(l))continue;const u={time:l,date:s.record_date,total:c},h=Dt(s.debt_held_public_amt),f=Dt(s.intragov_hold_amt);h!==null&&(u.heldByPublic=h),f!==null&&(u.intragovernmental=f),o.push(u)}if(o.length===0)throw new Error("treasury debt to the penny: no usable rows");const n=a.data[0];return{date:n.record_date??o[o.length-1].date,total:Dt(n.tot_pub_debt_out_amt)??o[o.length-1].total,heldByPublic:Dt(n.debt_held_public_amt)??0,intragovernmental:Dt(n.intragov_hold_amt)??0,trend:o}}async getTreasuryAuctions(t=8){return Bg.get(String(t),()=>this.fetchTreasuryAuctions(t))}async fetchTreasuryAuctions(t){const r=Math.max(1,Math.min(t,30)),a=await ne(Fg(r),void 0,{proxied:!0});if(!Array.isArray(a==null?void 0:a.data))throw new Error("treasury auctions: unexpected response shape");return a.data.map(o=>{if(!o.auction_date||!o.security_type)return null;const n=Dt(o.high_yield)??Dt(o.high_investment_rate);return{auctionDate:o.auction_date,securityType:o.security_type,securityTerm:o.security_term??"",rate:n,bidToCover:Dt(o.bid_to_cover_ratio),offeringAmount:Dt(o.offering_amt),totalAccepted:Dt(o.total_accepted)}}).filter(o=>o!==null)}}function Kg(){return[new Zp,new pp,new wm,new Wm,new Qm,new jp,new Am,new Jm,new km,new wp,new vp,new bp,new gg,new Gg,new Mm,new Rg,new Op,new _g,new Np,new dg,new ng,new Sp]}const Ws="(prefers-reduced-motion: reduce)",Gs="(prefers-reduced-data: reduce)",Ks="(pointer: coarse) and (max-width: 768px)";function qg(){var t;if(typeof window>"u")return!1;const e=navigator;return!!((t=e.connection)!=null&&t.saveData||window.matchMedia(Gs).matches||(e.deviceMemory??8)<=4||(e.hardwareConcurrency??8)<=4||window.matchMedia(Ks).matches)}function qs(e,t){const r=e.map(a=>window.matchMedia(a));for(const a of r)a.addEventListener("change",t);return()=>{for(const a of r)a.removeEventListener("change",t)}}const Ys=()=>!1,Yg=e=>qs([Gs,Ks],e);function Jg(){return z.useSyncExternalStore(Yg,qg,Ys)}const Xg=()=>typeof window<"u"&&window.matchMedia(Ws).matches,Zg=e=>qs([Ws],e);function $g(){return z.useSyncExternalStore(Zg,Xg,Ys)}const Qg=z.lazy(()=>v(()=>import("./scene-uwfOGek1.js"),__vite__mapDeps([0,1]))),e0="/unicornStudio.umd.mjs",fi="invert(1) hue-rotate(180deg) saturate(1.25)",t0="opacity 0.5s var(--zf-ease-out), filter 0.5s var(--zf-ease-out)",r0=e=>Math.min(.42,e*2.4),a0=242,o0=242,n0=(e,t)=>{const r=((e-t)%360+360)%360;return r>180?r-360:r},Js=90,i0=e=>Math.round(e/Js*1e3)/1e3;function s0({background:e,surface:t="dark",active:r=!1,thinking:a=!1,accentHue:o=a0,accentSat:n=Js,sceneHue:i=o0}){const s=Jg(),c=t==="light"?A.jsx("div",{"aria-hidden":!0,style:{position:"fixed",inset:0,zIndex:0,pointerEvents:"none",background:"linear-gradient(160deg, #f4f5f8, #e6e8f0)"}}):null;if(e.type==="color"||e.type==="gradient"){const p=e.type==="color"?e.color:`linear-gradient(${e.gradientAngle}deg, ${e.gradientFrom}, ${e.gradientTo})`;return A.jsx("div",{"aria-hidden":!0,style:{position:"fixed",inset:0,zIndex:0,pointerEvents:"none",background:p}})}if(e.type==="image"){if(!e.imageUrl)return c;const p=e.imageBlur;return A.jsxs("div",{"aria-hidden":!0,style:{position:"fixed",inset:0,zIndex:0,overflow:"hidden",pointerEvents:"none"},children:[A.jsx("img",{src:e.imageUrl,alt:"",style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:e.imageFit,filter:p>0?`blur(${p}px)`:void 0,transform:p>0?"scale(1.08)":void 0}}),A.jsx("div",{style:{position:"absolute",inset:0,background:`rgba(0,0,0,${e.overlayOpacity})`}})]})}if(e.type!=="unicorn"||!e.projectId||s)return c;const l=n0(o,i),u=i0(n),h=[l===0?"":`hue-rotate(${l}deg)`,u===1?"":`saturate(${u})`].filter(Boolean).join(" "),f=h||"none",d=h?`${h} ${fi}`:fi;return A.jsx("div",{"aria-hidden":!0,style:{position:"fixed",inset:0,zIndex:0,overflow:"hidden",pointerEvents:"none"},children:A.jsx("div",{style:{position:"absolute",inset:0,opacity:r?r0(e.opacity):e.opacity,filter:r?d:f,transition:t0,willChange:r||a?"opacity, filter":"auto"},children:A.jsx("div",{className:a?"zf-bg-hue":void 0,style:{position:"absolute",inset:0},children:A.jsx("div",{className:a?"zf-bg-breathe":void 0,style:{position:"absolute",inset:0},children:A.jsx(z.Suspense,{fallback:null,children:A.jsx(Qg,{projectId:e.projectId,width:"100vw",height:"100vh",scale:e.scale,dpi:e.dpi,sdkUrl:e0},e.projectId)})})})})})}function c0({currentTitle:e}){const[t,r]=z.useState(null),[a,o]=z.useState(!1),[n,i]=z.useState(null);z.useEffect(()=>{let u=!1;return fetch(qf,{cache:"no-store"}).then(h=>h.ok?h.json():null).then(h=>{if(u||!h||typeof h!="object")return;const f=h;f.canSwitch===!0&&Array.isArray(f.dashboards)&&r({current:typeof f.current=="string"?f.current:null,dashboards:f.dashboards})}).catch(()=>{}),()=>{u=!0}},[]),z.useEffect(()=>{if(!a)return;const u=h=>{h.key==="Escape"&&o(!1)};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[a]);const s=A.jsx("span",{className:"body-sm text-soft",children:e});if(!t||t.dashboards.length<=1)return s;async function c(u){if(!(!t||n)){if(u===t.current){o(!1);return}i(u);try{const h=await fetch(Yf,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:u})});if(!h.ok)throw new Error(`HTTP ${h.status}`);window.location.reload()}catch(h){console.error("zframes: failed to switch dashboard",h),window.alert("Couldn't switch dashboard — is `zframes serve` still running?"),i(null)}}}const l="hsl(var(--zf-accent-hue, 242) var(--zf-accent-sat, 90%)";return A.jsxs(A.Fragment,{children:[A.jsxs("button",{type:"button",onClick:()=>o(!0),"aria-haspopup":"dialog","aria-expanded":a,className:"body-sm text-soft hover:text-strong flex items-center gap-1 rounded-md border border-white/[0.08] px-1.5 py-0.5 outline-none",children:[e,A.jsx("span",{"aria-hidden":!0,className:"text-[0.7em] opacity-70",children:"▾"})]}),a&&Fc.createPortal(A.jsx("div",{role:"dialog","aria-modal":"true","aria-label":"Choose a dashboard",onClick:u=>{u.target===u.currentTarget&&o(!1)},className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-6 backdrop-blur-sm",children:A.jsxs("div",{className:"w-full max-w-2xl rounded-2xl border border-white/[0.08] bg-neutral-950/95 p-5 shadow-2xl",children:[A.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[A.jsx("h2",{className:"font-dmsans text-strong text-base font-extrabold",children:"Your dashboards"}),A.jsx("button",{type:"button",onClick:()=>o(!1),"aria-label":"Close",className:"text-soft hover:text-strong rounded-md px-2 py-0.5 text-lg leading-none outline-none",children:"×"})]}),A.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:t.dashboards.map(u=>{const h=u.name===t.current;return A.jsxs("button",{type:"button",disabled:n!==null,onClick:()=>void c(u.name),style:h?{borderColor:`${l} 60%)`}:void 0,className:`flex flex-col items-start gap-1 rounded-xl border p-4 text-left outline-none transition active:scale-[0.98] active:duration-0 disabled:opacity-50 ${h?"bg-white/[0.04]":"border-white/[0.08] hover:border-white/25 hover:bg-white/[0.03]"}`,children:[A.jsx("span",{className:"font-dmsans text-strong text-sm font-bold",children:u.title??u.name}),A.jsx("span",{className:"caption text-soft font-mono",children:u.name}),A.jsxs("span",{className:"mt-1 flex flex-wrap gap-1.5",children:[u.isDefault&&A.jsx("span",{className:"caption text-soft rounded-full border border-white/[0.12] px-1.5 py-0.5 leading-none",children:"default"}),h&&A.jsx("span",{className:"caption text-strong rounded-full px-1.5 py-0.5 leading-none",style:{background:`${l} 30%)`},children:"current"}),n===u.name&&A.jsx("span",{className:"caption text-soft",children:"switching…"})]})]},u.name)})})]})}),document.body)]})}const l0={"portfolio-value":{load:()=>v(()=>import("./portfolio-value-DLQHtwCl.js"),__vite__mapDeps([2,1,3,4,5,6,7])).then(e=>e.portfolioValueFrame)},"portfolio-allocation":{load:()=>v(()=>import("./portfolio-allocation-DHN6r6fl.js"),__vite__mapDeps([8,1,4,6,7,9,10,11,12])).then(e=>e.portfolioAllocationFrame)},"portfolio-holdings":{load:()=>v(()=>import("./portfolio-holdings-Bf6vOm0e.js"),__vite__mapDeps([13,1,4,6,7])).then(e=>e.portfolioHoldingsFrame)},"bitcoin-dominance":{load:()=>v(()=>import("./bitcoin-dominance-BqoH90r5.js"),__vite__mapDeps([14,1,4,7])).then(e=>e.bitcoinDominanceFrame)},clock:{load:()=>v(()=>import("./clock-9PqJvMgi.js"),__vite__mapDeps([15,1,7,16])).then(e=>e.clockFrame)},"custom-data":{load:()=>v(()=>import("./custom-data-DPPNQ2QQ.js"),__vite__mapDeps([17,1,4,18,7,19,10,12,20])).then(e=>e.customDataFrame)},"daily-analysis":{load:()=>v(()=>import("./daily-analysis-BVEvATPa.js"),__vite__mapDeps([21,1,4,7])).then(e=>e.dailyAnalysisFrame)},"journal-log":{load:()=>v(()=>import("./journal-log-0CruSC_H.js"),__vite__mapDeps([22,1,23,4,24,7])).then(e=>e.journalLogFrame)},"journal-open":{load:()=>v(()=>import("./journal-open-DIwxMMCH.js"),__vite__mapDeps([25,1,24,4,26,23,7])).then(e=>e.journalOpenFrame)},"journal-results":{load:()=>v(()=>import("./journal-results-BM_i_JJ3.js"),__vite__mapDeps([27,1,24,4,26,23,7])).then(e=>e.journalResultsFrame)},"journal-score":{load:()=>v(()=>import("./journal-score-He6DdYtU.js"),__vite__mapDeps([28,1,4,24,26,23])).then(e=>e.journalScoreFrame)},"dino-game":{load:()=>v(()=>import("./dino-game-BBIAIplk.js"),__vite__mapDeps([29,1,30,4])).then(e=>e.dinoGameFrame)},"fear-greed":{load:()=>v(()=>import("./fear-greed-DTLHRhif.js"),__vite__mapDeps([31,1,7,19,10,12])).then(e=>e.fearGreedFrame)},"filings-feed":{load:()=>v(()=>import("./filings-feed-Dpz6nWMU.js"),__vite__mapDeps([32,1,33,4,7])).then(e=>e.filingsFeedFrame)},fundamentals:{load:()=>v(()=>import("./fundamentals-BIesVoJt.js"),__vite__mapDeps([34,1,4,7])).then(e=>e.fundamentalsFrame)},"financial-stress":{load:()=>v(()=>import("./financial-stress-BcnDhPO4.js"),__vite__mapDeps([35,1,4,7,19,10,12])).then(e=>e.financialStressFrame)},"labor-market":{load:()=>v(()=>import("./labor-market-If23zBQK.js"),__vite__mapDeps([36,1,4,7,19,10,12])).then(e=>e.laborMarketFrame)},"national-debt":{load:()=>v(()=>import("./national-debt-BRX09_U_.js"),__vite__mapDeps([37,1,4,7,19,10,12])).then(e=>e.nationalDebtFrame)},"treasury-auctions":{load:()=>v(()=>import("./treasury-auctions-Z_4MtXmL.js"),__vite__mapDeps([38,1,4,18,7])).then(e=>e.treasuryAuctionsFrame)},"funding-heatmap":{load:()=>v(()=>import("./funding-heatmap-DUOcDAeX.js"),__vite__mapDeps([39,1,4,7,40,12])).then(e=>e.fundingHeatmapFrame)},"funding-rate-chart":{load:()=>v(()=>import("./funding-rate-chart-CANXPS3a.js"),__vite__mapDeps([41,1,4,7,9,10,42,12,43])).then(e=>e.fundingRateChartFrame)},heading:{load:()=>v(()=>import("./heading-Cidi7R-_.js"),__vite__mapDeps([44,1])).then(e=>e.headingFrame)},"hero-number":{load:()=>v(()=>import("./hero-number-p8eaQmkA.js"),__vite__mapDeps([45,1,4])).then(e=>e.heroNumberFrame)},image:{load:()=>v(()=>import("./image-BQQ0gSaW.js"),__vite__mapDeps([46,1,7])).then(e=>e.imageFrame)},"image-gallery":{load:()=>v(()=>import("./image-gallery-CNa-8BAA.js"),__vite__mapDeps([47,1,7])).then(e=>e.imageGalleryFrame)},"inflation-pulse":{load:()=>v(()=>import("./inflation-pulse-B54HwpAO.js"),__vite__mapDeps([48,1,4,7,19,10,12])).then(e=>e.inflationPulseFrame)},"market-hours":{load:()=>v(()=>import("./market-hours-B10lWec_.js"),__vite__mapDeps([49,1,50,4,7])).then(e=>e.marketHoursFrame),titleIcon:!0},"news-feed":{load:()=>v(()=>import("./news-feed-DQHSPzk5.js"),__vite__mapDeps([51,1,33,4,7])).then(e=>e.newsFeedFrame)},note:{load:()=>v(()=>import("./note-BdVtsqXo.js"),__vite__mapDeps([52,1,7])).then(e=>e.noteFrame)},"price-chart":{load:()=>v(()=>import("./price-chart-Cw8OXmKH.js"),__vite__mapDeps([53,1,3,4,5,7])).then(e=>e.priceChartFrame),titleIcon:!0,titleContent:!0},"price-compare":{load:()=>v(()=>import("./price-compare-txGWDCHD.js"),__vite__mapDeps([54,1,4,7,9,10,42,12,43])).then(e=>e.priceCompareFrame),titleContent:!0},"price-liveline":{load:()=>v(()=>import("./price-liveline-F7uJKuTS.js"),__vite__mapDeps([55,1,3,4,5,9,10])).then(e=>e.priceLivelineFrame)},"price-ticker":{load:()=>v(()=>import("./price-ticker-DQFyiHmW.js"),__vite__mapDeps([56,1,57,4,7])).then(e=>e.priceTickerFrame)},"rates-board":{load:()=>v(()=>import("./rates-board-CiY6mWMz.js"),__vite__mapDeps([58,1,4,18,7])).then(e=>e.ratesBoardFrame)},"fx-board":{load:()=>v(()=>import("./fx-board-CTnlbWGJ.js"),__vite__mapDeps([59,1,4,7,19,10,12])).then(e=>e.fxBoardFrame)},"short-volume":{load:()=>v(()=>import("./short-volume-Deb7fra_.js"),__vite__mapDeps([60,1,4,7])).then(e=>e.shortVolumeFrame)},"top-movers":{load:()=>v(()=>import("./top-movers-BRiiYOPQ.js"),__vite__mapDeps([61,1,57,4,7])).then(e=>e.topMoversFrame)},"tvl-treemap":{load:()=>v(()=>import("./tvl-treemap-B7kWI7o0.js"),__vite__mapDeps([62,1,4,63,12,10,7])).then(e=>e.tvlTreemapFrame)},"yield-curve":{load:()=>v(()=>import("./yield-curve-DXsfXy4P.js"),__vite__mapDeps([64,1,4,7])).then(e=>e.yieldCurveFrame)},"dex-volume-treemap":{load:()=>v(()=>import("./dex-volume-treemap-BlrxYmk-.js"),__vite__mapDeps([65,1,4,63,12,10,7])).then(e=>e.dexVolumeTreemapFrame)},"dex-volume-chart":{load:()=>v(()=>import("./dex-volume-chart-Bgdepem0.js"),__vite__mapDeps([66,1,4,7,9,10,42,12,43])).then(e=>e.dexVolumeChartFrame)},"protocol-tvl-treemap":{load:()=>v(()=>import("./protocol-tvl-treemap-BYECslhG.js"),__vite__mapDeps([67,1,4,63,12,10,7])).then(e=>e.protocolTvlTreemapFrame)},"protocol-tvl-chart":{load:()=>v(()=>import("./protocol-tvl-chart-BRPlR_kj.js"),__vite__mapDeps([68,1,4,7,9,10,42,12,43])).then(e=>e.protocolTvlChartFrame)},"protocol-fees-treemap":{load:()=>v(()=>import("./protocol-fees-treemap-CsZhFjxB.js"),__vite__mapDeps([69,1,4,63,12,10,7])).then(e=>e.protocolFeesTreemapFrame)},"market-cap-treemap":{load:()=>v(()=>import("./market-cap-treemap-BSBU8mjq.js"),__vite__mapDeps([70,1,4,63,12,10,7])).then(e=>e.marketCapTreemapFrame)},"open-interest":{load:()=>v(()=>import("./open-interest-BqO1-ZYo.js"),__vite__mapDeps([71,1,4,7])).then(e=>e.openInterestFrame)},snake:{load:()=>v(()=>import("./snake-B9EEDroM.js"),__vite__mapDeps([72,1,30,4])).then(e=>e.snakeFrame)},"flappy-bird":{load:()=>v(()=>import("./flappy-bird-Vp7j7ceN.js"),__vite__mapDeps([73,1,30,4])).then(e=>e.flappyBirdFrame)},video:{load:()=>v(()=>import("./video-Dsc13Zja.js"),__vite__mapDeps([74,1,7])).then(e=>e.videoFrame)},drawdy:{load:()=>v(()=>import("./drawdy-gpdcuxey.js"),__vite__mapDeps([75,1,7])).then(e=>e.drawdyFrame)},countdown:{load:()=>v(()=>import("./countdown-tMz3FsXT.js"),__vite__mapDeps([76,1,7,16])).then(e=>e.countdownFrame)},"link-grid":{load:()=>v(()=>import("./link-grid-CsnxpE4z.js"),__vite__mapDeps([77,1,23,7])).then(e=>e.linkGridFrame)},calculator:{load:()=>v(()=>import("./calculator-CcLe2vqJ.js"),__vite__mapDeps([78,1,23,7])).then(e=>e.calculatorFrame)},quote:{load:()=>v(()=>import("./quote-6JmbHxfg.js"),__vite__mapDeps([79,1])).then(e=>e.quoteFrame)},divider:{load:()=>v(()=>import("./divider-B-nMbdhH.js"),__vite__mapDeps([80,1])).then(e=>e.dividerFrame)},marquee:{load:()=>v(()=>import("./marquee-BS_quB4S.js"),__vite__mapDeps([81,1])).then(e=>e.marqueeFrame)},dice:{load:()=>v(()=>import("./dice-BOUHMLs6.js"),__vite__mapDeps([82,1,23,7])).then(e=>e.diceFrame)},"risk-reward":{load:()=>v(()=>import("./risk-reward-DWcu9j4_.js"),__vite__mapDeps([83,1,23,4,7])).then(e=>e.riskRewardFrame)},stopwatch:{load:()=>v(()=>import("./stopwatch-ClPrrveo.js"),__vite__mapDeps([84,1,23])).then(e=>e.stopwatchFrame)},"session-progress":{load:()=>v(()=>import("./session-progress-BDhJHQEn.js"),__vite__mapDeps([85,1,50,7])).then(e=>e.sessionProgressFrame)},"btc-fees":{load:()=>v(()=>import("./btc-fees-C-Za_OxK.js"),__vite__mapDeps([86,1,87,4,7])).then(e=>e.btcFeesFrame)},"btc-mempool":{load:()=>v(()=>import("./btc-mempool-0WFrtuQR.js"),__vite__mapDeps([88,1,87,4,7])).then(e=>e.btcMempoolFrame)},"btc-blocks":{load:()=>v(()=>import("./btc-blocks-D6TscPNp.js"),__vite__mapDeps([89,1,4,7])).then(e=>e.btcBlocksFrame)},"btc-hashrate":{load:()=>v(()=>import("./btc-hashrate-5xnTYpft.js"),__vite__mapDeps([90,1,4,7,19,10,12])).then(e=>e.btcHashrateFrame)},"btc-difficulty":{load:()=>v(()=>import("./btc-difficulty-BhSve3vk.js"),__vite__mapDeps([91,1,4,7])).then(e=>e.btcDifficultyFrame)},"mining-pools":{load:()=>v(()=>import("./mining-pools-DROnvkZS.js"),__vite__mapDeps([92,1,4,63,12,10,7])).then(e=>e.miningPoolsFrame)},"lightning-stats":{load:()=>v(()=>import("./lightning-stats-DhrfBtX6.js"),__vite__mapDeps([93,1,4,7])).then(e=>e.lightningStatsFrame)},"options-put-call":{load:()=>v(()=>import("./options-put-call-DcSwyIIX.js"),__vite__mapDeps([94,1,4,7])).then(e=>e.optionsPutCallFrame)},"options-iv":{load:()=>v(()=>import("./options-iv-RsCKjmmC.js"),__vite__mapDeps([95,1,4,7,19,10,12])).then(e=>e.optionsIvFrame)},"options-oi-strike":{load:()=>v(()=>import("./options-oi-strike-CKWXk22Q.js"),__vite__mapDeps([96,1,4,7])).then(e=>e.optionsOiStrikeFrame)},"coin-movers":{load:()=>v(()=>import("./coin-movers-D3cmI-tT.js"),__vite__mapDeps([97,1,57,4,7])).then(e=>e.coinMoversFrame)},mvrv:{load:()=>v(()=>import("./mvrv-Cg0t6U5X.js"),__vite__mapDeps([98,1,99,100,19,10,12,4,7])).then(e=>e.mvrvFrame)},nupl:{load:()=>v(()=>import("./nupl-BrK2rcgi.js"),__vite__mapDeps([101,1,99,100,19,10,12,4,7])).then(e=>e.nuplFrame)},sopr:{load:()=>v(()=>import("./sopr-DM_gpDem.js"),__vite__mapDeps([102,1,99,100,19,10,12,4,7])).then(e=>e.soprFrame)},"puell-multiple":{load:()=>v(()=>import("./puell-multiple-akyTNZyp.js"),__vite__mapDeps([103,1,99,100,19,10,12,4,7])).then(e=>e.puellMultipleFrame)},"mayer-multiple":{load:()=>v(()=>import("./mayer-multiple-iiKonfXX.js"),__vite__mapDeps([104,1,99,100,19,10,12,4,7])).then(e=>e.mayerMultipleFrame)},"pi-cycle":{load:()=>v(()=>import("./pi-cycle-tqHUEYSe.js"),__vite__mapDeps([105,1,99,100,19,10,12,4,7])).then(e=>e.piCycleFrame)},"ma-multiplier":{load:()=>v(()=>import("./ma-multiplier-BBN7qsdV.js"),__vite__mapDeps([106,1,99,100,19,10,12,4,7])).then(e=>e.maMultiplierFrame)},"rsi-momentum":{load:()=>v(()=>import("./rsi-momentum-BuasFcVH.js"),__vite__mapDeps([107,1,99,100,19,10,12,4,7])).then(e=>e.rsiMomentumFrame)},"volume-profile":{load:()=>v(()=>import("./volume-profile-DcSNvDqP.js"),__vite__mapDeps([108,1,4,7])).then(e=>e.volumeProfileFrame)},dxy:{load:()=>v(()=>import("./dxy-DfHaYZsj.js"),__vite__mapDeps([109,1,99,100,19,10,12,4,7])).then(e=>e.dxyFrame)},"cycle-signals":{load:()=>v(()=>import("./cycle-signals-DJYUIjas.js"),__vite__mapDeps([110,1,4,99,100,19,10,12,18,7])).then(e=>e.cycleSignalsFrame)},"stablecoin-supply":{load:()=>v(()=>import("./stablecoin-supply-69kqOBoU.js"),__vite__mapDeps([111,1,99,100,19,10,12,4,7])).then(e=>e.stablecoinSupplyFrame)},"yield-scanner":{load:()=>v(()=>import("./yield-scanner-sCBXpQTV.js"),__vite__mapDeps([112,1,4,18,7])).then(e=>e.yieldScannerFrame)},"defi-revenue":{load:()=>v(()=>import("./defi-revenue-DPazGCl4.js"),__vite__mapDeps([113,1,99,100,19,10,12,4,7])).then(e=>e.defiRevenueFrame)},"funding-comparison":{load:()=>v(()=>import("./funding-comparison-BynnnDDf.js"),__vite__mapDeps([114,1,4,18,7])).then(e=>e.fundingComparisonFrame)},"eth-supply":{load:()=>v(()=>import("./eth-supply-C7KDK-97.js"),__vite__mapDeps([115,1,99,100,19,10,12,4,7])).then(e=>e.ethSupplyFrame)},"eth-staking":{load:()=>v(()=>import("./eth-staking-CzidwFMK.js"),__vite__mapDeps([116,1,99,100,19,10,12,4,7])).then(e=>e.ethStakingFrame)},"prediction-markets":{load:()=>v(()=>import("./prediction-markets-DNDg43g9.js"),__vite__mapDeps([117,1,4,18,7])).then(e=>e.predictionMarketsFrame)},"etf-flows":{load:()=>v(()=>import("./etf-flows-cufmZrd_.js"),__vite__mapDeps([118,1,4,18,7])).then(e=>e.etfFlowsFrame)},"trending-coins":{load:()=>v(()=>import("./trending-coins-9vrbEbBm.js"),__vite__mapDeps([119,1,4,18,7])).then(e=>e.trendingCoinsFrame)},"sector-performance":{load:()=>v(()=>import("./sector-performance-C_2-xbIq.js"),__vite__mapDeps([120,1,4,18,7])).then(e=>e.sectorPerformanceFrame)},"macro-calendar":{load:()=>v(()=>import("./macro-calendar-cKBRneX9.js"),__vite__mapDeps([121,1,18,7])).then(e=>e.macroCalendarFrame)},"stablecoin-chains":{load:()=>v(()=>import("./stablecoin-chains-LzYMilQE.js"),__vite__mapDeps([122,1,4,63,12,10,7])).then(e=>e.stablecoinChainsFrame)},"sector-treemap":{load:()=>v(()=>import("./sector-treemap-DquBCyc3.js"),__vite__mapDeps([123,1,4,63,12,10,7])).then(e=>e.sectorTreemapFrame)},"etf-flows-chart":{load:()=>v(()=>import("./etf-flows-chart-BzKKqHh4.js"),__vite__mapDeps([124,1,4,7,9,10,42,12,43])).then(e=>e.etfFlowsChartFrame)},"realized-price":{load:()=>v(()=>import("./realized-price-CbjZ3Sqj.js"),__vite__mapDeps([125,1,4,100,7,9,10,42,12,43])).then(e=>e.realizedPriceFrame)},"reserve-risk":{load:()=>v(()=>import("./reserve-risk-UlEv8oS1.js"),__vite__mapDeps([126,1,99,100,19,10,12,4,7])).then(e=>e.reserveRiskFrame)},"holiday-calendar":{load:()=>v(()=>import("./holiday-calendar-ErapPWhY.js"),__vite__mapDeps([127,1,50,18,7])).then(e=>e.holidayCalendarFrame)},"day-meter":{load:()=>v(()=>import("./day-meter-DmbSq9YK.js"),__vite__mapDeps([128,1,50,7])).then(e=>e.dayMeterFrame)},"returns-projector":{load:()=>v(()=>import("./returns-projector-qPZeZ-n9.js"),__vite__mapDeps([129,1,23,4,19,10,12])).then(e=>e.returnsProjectorFrame)},breakeven:{load:()=>v(()=>import("./breakeven-1Kr-v9pE.js"),__vite__mapDeps([130,1,23,4,7])).then(e=>e.breakevenFrame)},checklist:{load:()=>v(()=>import("./checklist-orMUS_qt.js"),__vite__mapDeps([131,1,7])).then(e=>e.checklistFrame)},pomodoro:{load:()=>v(()=>import("./pomodoro-DSswMPuv.js"),__vite__mapDeps([132,1,23])).then(e=>e.pomodoroFrame)},"rules-card":{load:()=>v(()=>import("./rules-card-DkjHPbht.js"),__vite__mapDeps([133,1,7])).then(e=>e.rulesCardFrame)},breathing:{load:()=>v(()=>import("./breathing-NOTeAM6N.js"),__vite__mapDeps([134,1])).then(e=>e.breathingFrame)},"spotify-embed":{load:()=>v(()=>import("./spotify-embed-Dxt1RnUX.js"),__vite__mapDeps([135,1,7])).then(e=>e.spotifyEmbedFrame)},"nft-collections":{load:()=>v(()=>import("./nft-collections-Czp0t7ZU.js"),__vite__mapDeps([136,1,4,18,7])).then(e=>e.nftCollectionsFrame)},"dex-hot-pools":{load:()=>v(()=>import("./dex-hot-pools-BeuuV2Cj.js"),__vite__mapDeps([137,1,4,18,7])).then(e=>e.dexHotPoolsFrame)},"chain-activity":{load:()=>v(()=>import("./chain-activity-CCO3t0hA.js"),__vite__mapDeps([138,1,4,18,7])).then(e=>e.chainActivityFrame)},"nft-treemap":{load:()=>v(()=>import("./nft-treemap-D2Kj3AuL.js"),__vite__mapDeps([139,1,4,63,12,10,7])).then(e=>e.nftTreemapFrame)},"dex-pool-treemap":{load:()=>v(()=>import("./dex-pool-treemap-ecoWHB8O.js"),__vite__mapDeps([140,1,4,63,12,10,7])).then(e=>e.dexPoolTreemapFrame)},"sector-bars":{load:()=>v(()=>import("./sector-bars-JKmedArM.js"),__vite__mapDeps([141,1,4,7,20,10,12])).then(e=>e.sectorBarsFrame)},"funding-bars":{load:()=>v(()=>import("./funding-bars-BNVCUVqC.js"),__vite__mapDeps([142,1,4,7,20,10,12])).then(e=>e.fundingBarsFrame)},"etf-flow-bars":{load:()=>v(()=>import("./etf-flow-bars-NYq3d_-U.js"),__vite__mapDeps([143,1,4,7,20,10,12])).then(e=>e.etfFlowBarsFrame)},"chain-activity-bars":{load:()=>v(()=>import("./chain-activity-bars-DHYCDKWT.js"),__vite__mapDeps([144,1,4,7,20,10,12])).then(e=>e.chainActivityBarsFrame)},"market-scatter":{load:()=>v(()=>import("./market-scatter-CVUa4ZQ_.js"),__vite__mapDeps([145,1,4,7,146,10,12])).then(e=>e.marketScatterFrame)},"market-bubbles":{load:()=>v(()=>import("./market-bubbles-BKNkvOTg.js"),__vite__mapDeps([147,1,148,7,10,12,4])).then(e=>e.marketBubblesFrame)},"tvl-bubbles":{load:()=>v(()=>import("./tvl-bubbles-D4tahOC6.js"),__vite__mapDeps([149,1,148,7,10,12,4])).then(e=>e.tvlBubblesFrame)},"protocol-tvl-bubbles":{load:()=>v(()=>import("./protocol-tvl-bubbles-CuULi2KY.js"),__vite__mapDeps([150,1,148,7,10,12,4])).then(e=>e.protocolTvlBubblesFrame)},"dex-volume-bubbles":{load:()=>v(()=>import("./dex-volume-bubbles-CX9SfXmZ.js"),__vite__mapDeps([151,1,148,7,10,12,4])).then(e=>e.dexVolumeBubblesFrame)},"protocol-fees-bubbles":{load:()=>v(()=>import("./protocol-fees-bubbles-oV66t8AJ.js"),__vite__mapDeps([152,1,148,7,10,12,4])).then(e=>e.protocolFeesBubblesFrame)},"sector-bubbles":{load:()=>v(()=>import("./sector-bubbles-DLXckuua.js"),__vite__mapDeps([153,1,148,7,10,12,4])).then(e=>e.sectorBubblesFrame)},"nft-bubbles":{load:()=>v(()=>import("./nft-bubbles-0f9wAld0.js"),__vite__mapDeps([154,1,148,7,10,12,4])).then(e=>e.nftBubblesFrame)},"dex-pool-bubbles":{load:()=>v(()=>import("./dex-pool-bubbles-BLUbqZ4v.js"),__vite__mapDeps([155,1,148,7,10,12,4])).then(e=>e.dexPoolBubblesFrame)},"movers-bubbles":{load:()=>v(()=>import("./movers-bubbles-C-SriZvR.js"),__vite__mapDeps([156,1,148,7,10,12,4])).then(e=>e.moversBubblesFrame)},"sentiment-gauge":{load:()=>v(()=>import("./sentiment-gauge-CuNvuk1q.js"),__vite__mapDeps([157,1,7,158,10,12])).then(e=>e.sentimentGaugeFrame)},"movers-bars":{load:()=>v(()=>import("./movers-bars-CEFjsHnv.js"),__vite__mapDeps([159,1,4,7,20,10,12])).then(e=>e.moversBarsFrame)},"tvl-bars":{load:()=>v(()=>import("./tvl-bars-BkJcttcu.js"),__vite__mapDeps([160,1,4,7,20,10,12])).then(e=>e.tvlBarsFrame)},"yield-scatter":{load:()=>v(()=>import("./yield-scatter-BZHOhFcm.js"),__vite__mapDeps([161,1,4,7,146,10,12])).then(e=>e.yieldScatterFrame)},"nft-scatter":{load:()=>v(()=>import("./nft-scatter-BHULn6_-.js"),__vite__mapDeps([162,1,4,7,146,10,12])).then(e=>e.nftScatterFrame)},"dominance-gauge":{load:()=>v(()=>import("./dominance-gauge-DVITO-Eg.js"),__vite__mapDeps([163,1,4,7,158,10,12])).then(e=>e.dominanceGaugeFrame)},"put-call-gauge":{load:()=>v(()=>import("./put-call-gauge-CwrHYfdq.js"),__vite__mapDeps([164,1,4,7,158,10,12])).then(e=>e.putCallGaugeFrame)},"oi-treemap":{load:()=>v(()=>import("./oi-treemap-BEusAMZU.js"),__vite__mapDeps([165,1,4,63,12,10,7])).then(e=>e.oiTreemapFrame)},"ohlcv-volume-bars":{load:()=>v(()=>import("./ohlcv-volume-bars-BQZiJJ3u.js"),__vite__mapDeps([166,1,4,7,20,10,12])).then(e=>e.ohlcvVolumeBarsFrame)},"funding-spread-bars":{load:()=>v(()=>import("./funding-spread-bars-BgA-vSh-.js"),__vite__mapDeps([167,1,4,7,20,10,12])).then(e=>e.fundingSpreadBarsFrame)},"funding-venue-heatmap":{load:()=>v(()=>import("./funding-venue-heatmap-jKiQGgLb.js"),__vite__mapDeps([168,1,4,7,40,12])).then(e=>e.fundingVenueHeatmapFrame)},"funding-carry-area":{load:()=>v(()=>import("./funding-carry-area-BqCrQOi5.js"),__vite__mapDeps([169,1,4,7,9,10,170,12])).then(e=>e.fundingCarryAreaFrame)},"volume-share-donut":{load:()=>v(()=>import("./volume-share-donut-3MenMO-V.js"),__vite__mapDeps([171,1,4,7,9,10,11,12])).then(e=>e.volumeShareDonutFrame)},"volume-movers-scatter":{load:()=>v(()=>import("./volume-movers-scatter-BA8Wmoil.js"),__vite__mapDeps([172,1,4,7,146,10,12])).then(e=>e.volumeMoversScatterFrame)},"funding-leaderboard-bars":{load:()=>v(()=>import("./funding-leaderboard-bars-CpYvO_Cs.js"),__vite__mapDeps([173,1,4,7,20,10,12])).then(e=>e.fundingLeaderboardBarsFrame)},"funding-crowding-scatter":{load:()=>v(()=>import("./funding-crowding-scatter-BTzQUtFn.js"),__vite__mapDeps([174,1,4,7,146,10,12])).then(e=>e.fundingCrowdingScatterFrame)},"liquidity-basis-bars":{load:()=>v(()=>import("./liquidity-basis-bars-CaU5YtBA.js"),__vite__mapDeps([175,1,4,7,20,10,12])).then(e=>e.liquidityBasisBarsFrame)},"coin-momentum-heatmap":{load:()=>v(()=>import("./coin-momentum-heatmap-DvfWWzSD.js"),__vite__mapDeps([176,1,4,7,40,12])).then(e=>e.coinMomentumHeatmapFrame)},"coin-momentum-scatter":{load:()=>v(()=>import("./coin-momentum-scatter-Cf4Y29lp.js"),__vite__mapDeps([177,1,4,7,146,10,12])).then(e=>e.coinMomentumScatterFrame)},"trending-bars":{load:()=>v(()=>import("./trending-bars-z_cjmEXN.js"),__vite__mapDeps([178,1,4,7,20,10,12])).then(e=>e.trendingBarsFrame)},"nft-activity-bars":{load:()=>v(()=>import("./nft-activity-bars-BmNs4RMC.js"),__vite__mapDeps([179,1,4,7,20,10,12])).then(e=>e.nftActivityBarsFrame)},"dominance-bars":{load:()=>v(()=>import("./dominance-bars-BjKMZR8V.js"),__vite__mapDeps([180,1,4,7,20,10,12])).then(e=>e.dominanceBarsFrame)},"trending-bubbles":{load:()=>v(()=>import("./trending-bubbles-nwoxKQEW.js"),__vite__mapDeps([181,1,148,7,10,12,4])).then(e=>e.trendingBubblesFrame)},"yield-risk-pie":{load:()=>v(()=>import("./yield-risk-pie-DUxkXYIQ.js"),__vite__mapDeps([182,1,4,7,9,10,11,12])).then(e=>e.yieldRiskPieFrame)},"dex-pool-liquidity-scatter":{load:()=>v(()=>import("./dex-pool-liquidity-scatter-Civ63yej.js"),__vite__mapDeps([183,1,4,7,146,10,12])).then(e=>e.dexPoolLiquidityScatterFrame)},"protocol-fees-vs-tvl-scatter":{load:()=>v(()=>import("./protocol-fees-vs-tvl-scatter-CtLKoDeh.js"),__vite__mapDeps([184,1,4,7,146,10,12])).then(e=>e.protocolFeesVsTvlScatterFrame)},"yield-composition-scatter":{load:()=>v(()=>import("./yield-composition-scatter-rfxC16n2.js"),__vite__mapDeps([185,1,4,7,146,10,12])).then(e=>e.yieldCompositionScatterFrame)},"protocol-tvl-by-category":{load:()=>v(()=>import("./protocol-tvl-by-category-BV2yIdZ_.js"),__vite__mapDeps([186,1,4,7,20,10,12])).then(e=>e.protocolTvlByCategoryFrame)},"protocol-tvl-share-area":{load:()=>v(()=>import("./protocol-tvl-share-area-BeWSgocA.js"),__vite__mapDeps([187,1,4,7,9,10,170,12])).then(e=>e.protocolTvlShareAreaFrame)},"dex-volume-share-area":{load:()=>v(()=>import("./dex-volume-share-area-uDfe8wQZ.js"),__vite__mapDeps([188,1,4,7,9,10,170,12])).then(e=>e.dexVolumeShareAreaFrame)},"yield-momentum-bars":{load:()=>v(()=>import("./yield-momentum-bars-B9nKuItO.js"),__vite__mapDeps([189,1,4,7,20,10,12])).then(e=>e.yieldMomentumBarsFrame)},"btc-difficulty-chart":{load:()=>v(()=>import("./btc-difficulty-chart-Yqxof0b6.js"),__vite__mapDeps([190,1,4,7,19,10,12])).then(e=>e.btcDifficultyChartFrame)},"btc-block-size-bars":{load:()=>v(()=>import("./btc-block-size-bars-BgwX4eu_.js"),__vite__mapDeps([191,1,4,7,20,10,12])).then(e=>e.btcBlockSizeBarsFrame)},"chain-price-movers":{load:()=>v(()=>import("./chain-price-movers-SeTwhqsM.js"),__vite__mapDeps([192,1,4,7,20,10,12])).then(e=>e.chainPriceMoversFrame)},"chain-activity-scatter":{load:()=>v(()=>import("./chain-activity-scatter-DeusbLku.js"),__vite__mapDeps([193,1,4,7,146,10,12])).then(e=>e.chainActivityScatterFrame)},"mempool-fee-curve":{load:()=>v(()=>import("./mempool-fee-curve-CQ4nzab8.js"),__vite__mapDeps([194,1,87,4,7,20,10,12])).then(e=>e.mempoolFeeCurveFrame)},"mining-pools-share":{load:()=>v(()=>import("./mining-pools-share-BhHh0hUJ.js"),__vite__mapDeps([195,1,4,7,9,10,11,12])).then(e=>e.miningPoolsShareFrame)},"options-max-pain":{load:()=>v(()=>import("./options-max-pain-B2pA7KJP.js"),__vite__mapDeps([196,1,4,7,20,10,12])).then(e=>e.optionsMaxPainFrame)},"options-oi-skew":{load:()=>v(()=>import("./options-oi-skew-D869gcp7.js"),__vite__mapDeps([197,1,4,7,20,10,12])).then(e=>e.optionsOiSkewFrame)},"options-vol-spread":{load:()=>v(()=>import("./options-vol-spread-DMXdphxM.js"),__vite__mapDeps([198,1,7,9,10,42,12,43])).then(e=>e.optionsVolSpreadFrame)},"options-flow-skew":{load:()=>v(()=>import("./options-flow-skew-Cy0SUhs0.js"),__vite__mapDeps([199,1,4,7,20,10,12])).then(e=>e.optionsFlowSkewFrame)},"options-vol-smile":{load:()=>v(()=>import("./options-vol-smile-CqP0-CSw.js"),__vite__mapDeps([200,1,4,7])).then(e=>e.optionsVolSmileFrame)},"options-oi-ladder-heatmap":{load:()=>v(()=>import("./options-oi-ladder-heatmap-Do8eYI3h.js"),__vite__mapDeps([201,1,4,7,40,12])).then(e=>e.optionsOiLadderHeatmapFrame)},"options-max-pain-multi":{load:()=>v(()=>import("./options-max-pain-multi-BLfX8Qe6.js"),__vite__mapDeps([202,1,4,7,20,10,12])).then(e=>e.optionsMaxPainMultiFrame)},"mvrv-zscore-chart":{load:()=>v(()=>import("./mvrv-zscore-chart-qyOkheJb.js"),__vite__mapDeps([203,1,100,7,9,10,42,12,43])).then(e=>e.mvrvZscoreChartFrame)},"nupl-cycle-chart":{load:()=>v(()=>import("./nupl-cycle-chart-BlXOLj4A.js"),__vite__mapDeps([204,1,4,100,7,9,10,42,12,43])).then(e=>e.nuplCycleChartFrame)},"cycle-valuation-composite":{load:()=>v(()=>import("./cycle-valuation-composite-DO_Pda0n.js"),__vite__mapDeps([205,1,4,100,7,9,10,42,12,43])).then(e=>e.cycleValuationCompositeFrame)},"onchain-oscillator-overlay":{load:()=>v(()=>import("./onchain-oscillator-overlay-BPa_jULR.js"),__vite__mapDeps([206,1,4,100,7,9,10,42,12,43])).then(e=>e.onchainOscillatorOverlayFrame)},"eth-issuance-impact":{load:()=>v(()=>import("./eth-issuance-impact-BLHuDvGQ.js"),__vite__mapDeps([207,1,4,7,20,10,12])).then(e=>e.ethIssuanceImpactFrame)},"treasury-avg-rate-bars":{load:()=>v(()=>import("./treasury-avg-rate-bars-FXGz1a7e.js"),__vite__mapDeps([208,1,4,7,20,10,12])).then(e=>e.treasuryAvgRateBarsFrame)},"treasury-auction-demand-scatter":{load:()=>v(()=>import("./treasury-auction-demand-scatter-yYNPz1VC.js"),__vite__mapDeps([209,1,4,7,146,10,12])).then(e=>e.treasuryAuctionDemandScatterFrame)},"treasury-auction-size-bars":{load:()=>v(()=>import("./treasury-auction-size-bars-CGD6MeAz.js"),__vite__mapDeps([210,1,4,7,20,10,12])).then(e=>e.treasuryAuctionSizeBarsFrame)},"nyfed-reference-rate-bars":{load:()=>v(()=>import("./nyfed-reference-rate-bars-CxLwUFUY.js"),__vite__mapDeps([211,1,4,7,20,10,12])).then(e=>e.nyfedReferenceRateBarsFrame)},"nyfed-sofr-term-averages-bars":{load:()=>v(()=>import("./nyfed-sofr-term-averages-bars-DxzLVO9o.js"),__vite__mapDeps([212,1,4,7,20,10,12])).then(e=>e.nyfedSofrTermAveragesBarsFrame)},"nyfed-fed-funds-band-gauge":{load:()=>v(()=>import("./nyfed-fed-funds-band-gauge-DnzVhh9I.js"),__vite__mapDeps([213,1,4,7,158,10,12])).then(e=>e.nyfedFedFundsBandGaugeFrame)},"treasury-debt-composition-area":{load:()=>v(()=>import("./treasury-debt-composition-area-5yRh0K6a.js"),__vite__mapDeps([214,1,4,7,9,10,170,12])).then(e=>e.treasuryDebtCompositionAreaFrame)},"ofr-stress-category-area":{load:()=>v(()=>import("./ofr-stress-category-area-TXpXiMP-.js"),__vite__mapDeps([215,1,7,9,10,170,12])).then(e=>e.ofrStressCategoryAreaFrame)},"misery-index":{load:()=>v(()=>import("./misery-index-DpG7yLgX.js"),__vite__mapDeps([216,1,4,7,9,10,170,12])).then(e=>e.miseryIndexFrame)},"real-wages":{load:()=>v(()=>import("./real-wages-BTBOxvjP.js"),__vite__mapDeps([217,1,4,7,9,10,42,12,43])).then(e=>e.realWagesFrame)},"labor-force-flow":{load:()=>v(()=>import("./labor-force-flow-8HLQsbKV.js"),__vite__mapDeps([218,1,4,7,9,10,42,12,43])).then(e=>e.laborForceFlowFrame)},"payrolls-bars":{load:()=>v(()=>import("./payrolls-bars-15U_DxmS.js"),__vite__mapDeps([219,1,4,7,20,10,12])).then(e=>e.payrollsBarsFrame)},"short-volume-bars":{load:()=>v(()=>import("./short-volume-bars-DRjpg7RS.js"),__vite__mapDeps([220,1,4,7,20,10,12])).then(e=>e.shortVolumeBarsFrame)},"capital-structure-bars":{load:()=>v(()=>import("./capital-structure-bars-SEyFIReK.js"),__vite__mapDeps([221,1,4,7,20,10,12])).then(e=>e.capitalStructureBarsFrame)},"filings-mix":{load:()=>v(()=>import("./filings-mix-7ykY8NsE.js"),__vite__mapDeps([222,1,4,7,9,10,11,12])).then(e=>e.filingsMixFrame)},"fx-cross-heatmap":{load:()=>v(()=>import("./fx-cross-heatmap-CDORG9Cx.js"),__vite__mapDeps([223,1,4,7,40,12])).then(e=>e.fxCrossHeatmapFrame)},"etf-issuer-treemap":{load:()=>v(()=>import("./etf-issuer-treemap-IhYjIP-y.js"),__vite__mapDeps([224,1,4,63,12,10,7])).then(e=>e.etfIssuerTreemapFrame)},"fx-trend-chart":{load:()=>v(()=>import("./fx-trend-chart-uITTwyv8.js"),__vite__mapDeps([225,1,4,7,9,10,42,12,43])).then(e=>e.fxTrendChartFrame)},"fear-greed-chart":{load:()=>v(()=>import("./fear-greed-chart-N1vM_QJ7.js"),__vite__mapDeps([226,1,7,42,10,12,9,43])).then(e=>e.fearGreedChartFrame)},"prediction-market-bars":{load:()=>v(()=>import("./prediction-market-bars-Du1RxZc_.js"),__vite__mapDeps([227,1,4,7,20,10,12])).then(e=>e.predictionMarketBarsFrame)},"dxy-chart":{load:()=>v(()=>import("./dxy-chart-CidtFThk.js"),__vite__mapDeps([228,1,4,7,42,10,12,9,43])).then(e=>e.dxyChartFrame)},"fx-movers-bars":{load:()=>v(()=>import("./fx-movers-bars-WKvSm3Ry.js"),__vite__mapDeps([229,1,4,7,20,10,12])).then(e=>e.fxMoversBarsFrame)},"prediction-market-scatter":{load:()=>v(()=>import("./prediction-market-scatter-bdlr6r_V.js"),__vite__mapDeps([230,1,4,7,146,10,12])).then(e=>e.predictionMarketScatterFrame)},"etf-issuer-bars":{load:()=>v(()=>import("./etf-issuer-bars-Dl9H_CZC.js"),__vite__mapDeps([231,1,4,7,20,10,12])).then(e=>e.etfIssuerBarsFrame)},"portfolio-movers":{load:()=>v(()=>import("./portfolio-movers-DmaGwFtS.js"),__vite__mapDeps([232,1,4,6,7,20,10,12])).then(e=>e.portfolioMoversFrame)},"portfolio-value-bars":{load:()=>v(()=>import("./portfolio-value-bars-B8XP7r22.js"),__vite__mapDeps([233,1,4,6,7,20,10,12])).then(e=>e.portfolioValueBarsFrame)},"etf-flow-calendar":{load:()=>v(()=>import("./etf-flow-calendar-BI18BrWM.js"),__vite__mapDeps([234,1,4,7,40,12])).then(e=>e.etfFlowCalendarFrame)},"prediction-markets-bubble":{load:()=>v(()=>import("./prediction-markets-bubble-ccP01yj3.js"),__vite__mapDeps([235,1,148,7,10,12,4])).then(e=>e.predictionMarketsBubbleFrame)}},mi=200,pi=16,Ir=500,gi=200,y_=2e6,u0=new Set(["__proto__","constructor","prototype"]);function d0(e){const t=e.toLowerCase().replace(/^\[|\]$/g,"");if(t==="localhost"||t==="0.0.0.0"||t.endsWith(".localhost")||t.endsWith(".local")||t.endsWith(".internal")||t==="::1"||t==="::")return!0;const r=t.match(/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/);if(r){const[a,o]=[Number(r[1]),Number(r[2])];if(a===127||a===10||a===0||a===192&&o===168||a===172&&o>=16&&o<=31||a===169&&o===254||a===100&&o>=64&&o<=127)return!0}return!!(/^f[cd][0-9a-f]{2}:/i.test(t)||/^fe[89ab][0-9a-f]:/i.test(t))}function h0(e){let t;try{t=new URL(e)}catch{return"not a valid URL"}return t.protocol!=="https:"?"only https:// URLs are allowed":t.username||t.password?"URLs with embedded credentials are not allowed":d0(t.hostname)?"private/localhost hosts are not allowed":null}function f0(e){if(e.length===0)throw new Error("path is empty");if(e.length>mi)throw new Error(`path longer than ${mi} chars`);const t=[];for(const r of e.split(".")){const a=r.match(/^([^[\]]*)((?:\[[^[\]]*\])*)$/);if(!a)throw new Error(`bad path segment "${r}"`);const[,o,n]=a;if(o==="*")t.push({kind:"wildcard"});else if(o!=="")t.push({kind:"key",key:o});else if(n==="")throw new Error(`empty path segment in "${e}"`);if(n)for(const i of n.match(/\[[^[\]]*\]/g)??[]){const s=i.slice(1,-1);if(s==="*")t.push({kind:"wildcard"});else if(/^\d+$/.test(s))t.push({kind:"index",index:Number(s)});else throw new Error(`bad bracket "${i}" — use [0]-style indices or [*]`)}}if(t.length===0)throw new Error("path is empty");if(t.length>pi)throw new Error(`path deeper than ${pi} segments`);for(const r of t)if(r.kind==="key"&&u0.has(r.key))throw new Error(`"${r.key}" is not allowed in a path`);return t}function m0(e,t){if(!(typeof e!="object"||e===null)&&!Array.isArray(e))return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function Xs(e,t,r){let a=e;for(let o=r;o<t.length;o++){const n=t[o];if(n.kind==="key")a=m0(a,n.key);else if(n.kind==="index")a=Array.isArray(a)?a[n.index]:void 0;else{if(!Array.isArray(a))return;const i=[];for(const s of a.slice(0,Ir)){const c=Xs(s,t,o+1);if(c!==void 0&&(Array.isArray(c)?i.push(...c.slice(0,Ir)):i.push(c),i.length>=Ir))break}return i.slice(0,Ir)}if(a===void 0)return}return a}function v_(e,t){const r=Xs(e,f0(t),0);return Array.isArray(r)?r.slice(0,Ir):r}function bi(e){return e.length>gi?`${e.slice(0,gi)}…`:e}function w_(e){return(Array.isArray(e)?e:[e]).slice(0,Ir).map(r=>{if(typeof r=="number"&&Number.isFinite(r))return r;if(typeof r=="boolean")return String(r);if(typeof r=="string"){const a=Number(r);return r.trim()!==""&&Number.isFinite(a)?a:bi(r)}if(r==null)return"—";try{return bi(JSON.stringify(r)??"—")}catch{return"—"}})}function k_(e){return e.filter(t=>typeof t=="number")}const w=e=>`/widget-icons/${e}.png`,C={hyperliquid:{name:"Hyperliquid",url:"https://hyperliquid.xyz"},defillama:{name:"DeFiLlama",url:"https://defillama.com"},coingecko:{name:"CoinGecko",url:"https://www.coingecko.com"},alternativeMe:{name:"alternative.me",url:"https://alternative.me/crypto/fear-and-greed-index/"},bls:{name:"BLS",url:"https://www.bls.gov"},nyFed:{name:"NY Fed",url:"https://www.newyorkfed.org/markets/reference-rates"},treasury:{name:"U.S. Treasury",url:"https://fiscaldata.treasury.gov"},secEdgar:{name:"SEC EDGAR",url:"https://www.sec.gov/edgar"},finra:{name:"FINRA",url:"https://www.finra.org/finra-data/browse-catalog/short-sale-volume-data"},ofr:{name:"OFR",url:"https://www.financialresearch.gov/financial-stress-index/"},mempool:{name:"mempool.space",url:"https://mempool.space"},deribit:{name:"Deribit",url:"https://www.deribit.com"},coinpaprika:{name:"Coinpaprika",url:"https://coinpaprika.com"},frankfurter:{name:"Frankfurter (ECB)",url:"https://frankfurter.dev"},coinMetrics:{name:"Coin Metrics",url:"https://coinmetrics.io"},bitcoinData:{name:"bitcoin-data.com",url:"https://bitcoin-data.com"},ultrasound:{name:"ultrasound.money",url:"https://ultrasound.money"},polymarket:{name:"Polymarket",url:"https://polymarket.com"},sosovalue:{name:"SoSoValue",url:"https://sosovalue.com"},geckoterminal:{name:"GeckoTerminal",url:"https://www.geckoterminal.com"},blockchair:{name:"Blockchair",url:"https://blockchair.com"}},p0={name:"clock",label:"Clock",category:"tools",iconUrl:w("clock"),layout:{w:3,h:2,minW:2,minH:1},description:"Digital clock showing the current time, ticking every second. Configurable IANA timezone (defaults to the viewer's local zone), 12/24-hour format, optional seconds and date, the timezone abbreviation, and a caption label. Drop several with different timezones for a trading-desk world clock. Needs no data provider.",capabilities:[],schema:b({timezone:L().default("").describe(`IANA timezone, e.g. "America/New_York", "Europe/London", "Asia/Tokyo", "UTC". Empty = the viewer's local timezone.`),label:L().default("").describe('Caption under the time, e.g. "New York" or "Local". Empty hides it.'),hour12:Ye().default(!1).describe("12-hour clock with AM/PM (true) or 24-hour (false)."),showSeconds:Ye().default(!0).describe("Show seconds (HH:MM:SS) instead of just HH:MM."),showMillis:Ye().default(!1).describe("Show milliseconds (HH:MM:SS.mmm), updated smoothly each animation frame. Implies seconds."),showDate:Ye().default(!1).describe("Show the weekday and date under the time."),showTimezone:Ye().default(!0).describe('Show the timezone abbreviation (e.g. "EST", "GMT+7", "UTC") in the caption. Combines with the label when set, e.g. "New York · EST".')})},g0={name:"market-hours",label:"Market Hours",category:"tools",iconUrl:w("market-hours"),layout:{w:4,h:4,minW:3,minH:3},description:"Which world stock exchanges are open right now — each row shows an open / closed / holiday status dot and a live countdown to the next open or close. Computed entirely client-side from each exchange's timezone and regular trading hours (no API); a bundled 2026 holiday list keeps the major Western exchanges accurate on market holidays. Intraday lunch breaks and half-day early closes are not modelled. Needs no data provider.",capabilities:[],schema:b({exchanges:Ee(L()).default([]).describe('Exchange codes to show, e.g. ["NYSE","LSE","TSE","HKEX","SET"]. Empty = a global default set. Known codes: NYSE, NASDAQ, TSX, B3, LSE, XETRA, EURONEXT, SIX, TSE, HKEX, SSE, NSE, KRX, SGX, SET, ASX, JSE, TADAWUL.'),sort:I(["region","status","name"]).default("region").describe("Order rows by world region (Americas → Europe → Asia-Pacific → Middle East/Africa), by status (open first), or alphabetically by name.")})},b0={name:"fear-greed",label:"Fear & Greed",category:"sentiment",iconUrl:w("fear-greed"),layout:{w:3,h:3,minW:2,minH:2},description:"Crypto Fear & Greed index (0 = extreme fear, 100 = extreme greed) with a recent-history sparkline. A one-number market mood gauge from alternative.me.",capabilities:["sentiment"],source:C.alternativeMe,schema:b({sparklineDays:_().int().min(7).max(90).default(30).describe("How many days of index history to show in the sparkline.")})},y0={name:"funding-rate-chart",label:"Funding Rate Chart",category:"derivatives",iconUrl:w("funding-rate-chart"),layout:{w:6,h:3,minW:3,minH:2},description:"Multi-series line chart comparing hourly perp funding rates across symbols over a configurable lookback window. Positive funding = longs pay shorts. Useful for spotting crowded trades.",capabilities:["funding-history"],source:C.hyperliquid,schema:b({symbols:Ee(L()).min(1).max(6).describe('Hyperliquid symbols to compare funding for, e.g. ["xyz:TSLA", "xyz:NVDA"]. Up to 6.'),lookback:I(["24h","7D","1M"]).default("7D").describe("History window for the funding chart.")})},v0={name:"note",label:"Note",category:"layout",iconUrl:w("note"),layout:{w:4,h:3,minW:2,minH:2},description:"Free-form text note pinned to the dashboard — trading plans, reminders, watch levels. Renders a safe Markdown subset: **bold**, *italic*, `inline code`, [links](https://…), #/##/### headings, and - / 1. lists. Plain text still renders as written. Needs no data provider.",capabilities:[],chrome:"plain",schema:b({text:L().min(1).describe("The note's text content. Renders a safe Markdown subset — **bold**, *italic*, `code`, [text](https://url), #/##/### headings, and unordered (-) / ordered (1.) lists (raw HTML is never executed). Blank lines start new paragraphs; single newlines become line breaks. Plain text works too."),align:I(["left","center"]).default("left").describe("Text alignment inside the card.")})},w0={name:"price-chart",label:"Price Chart",category:"markets",iconUrl:w("price-chart"),layout:{w:6,h:3,minW:3,minH:2},description:"Live animated price chart (candlestick or line) for one symbol — canvas-rendered at 60fps via liveline, streaming live off the Hyperliquid WebSocket. Works for any HIP-3 perp — stocks (xyz:TSLA), indices (xyz:SP500), commodities (xyz:GOLD) — and crypto (BTC). The centerpiece frame.",capabilities:["ohlcv","quote-stream"],source:C.hyperliquid,schema:b({symbol:L().min(1).describe('Hyperliquid symbol to chart. HIP-3 cross-asset: stocks "xyz:TSLA"/"xyz:NVDA", indices "xyz:SP500"/"xyz:XYZ100", commodities "xyz:GOLD"/"xyz:CL", FX "xyz:EUR". Crypto: "BTC", "ETH".'),interval:I(["1m","5m","15m","1h","4h","1d"]).default("1h").describe("Candle interval."),mode:I(["candle","line"]).default("candle").describe("Candlestick or smooth line rendering."),color:L().default("#8b8df9").describe("Accent color (hex). The whole palette derives from it.")})},k0={name:"price-liveline",label:"Price Liveline",category:"markets",iconUrl:w("price-liveline"),layout:{w:6,h:3,minW:4,minH:2},description:"Multi-asset live price liveline — several Hyperliquid symbols streaming in one canvas chart. Defaults to normalized % movement so stocks and crypto can share one axis, while the legend still shows each asset's live raw price. Use when the dashboard needs one compact live race view instead of several single-symbol charts.",capabilities:["quote-stream","day-stats"],source:C.hyperliquid,schema:b({symbols:Ee(L()).min(2).max(8).describe('Hyperliquid symbols to stream together — great cross-asset (the normalized view races a stock vs the index vs gold vs crude), e.g. ["xyz:NVDA", "xyz:SP500", "xyz:GOLD", "xyz:CL"], or all-equity ["xyz:TSLA", "xyz:NVDA", "xyz:AAPL"], or crypto ["BTC", "ETH", "SOL"]. 2 to 8.'),windowSec:_().int().min(10).max(300).default(30).describe("Rolling live window in seconds. 30 mirrors the zhive liveline view; use 60–300 for slower dashboards."),normalize:Ye().default(!0).describe("Show each asset as % movement from its first live tick (recommended when prices differ). Off = raw price overlay.")})},_0={name:"price-ticker",label:"Price Ticker",category:"markets",iconUrl:w("price-ticker"),layout:{w:3,h:3,minW:2,minH:2},description:"Live watchlist streaming mid prices over the Hyperliquid WebSocket with 24h change per symbol. The bread-and-butter frame for any dashboard.",capabilities:["quote-stream","day-stats"],source:C.hyperliquid,schema:b({symbols:Ee(L()).min(1).describe('Hyperliquid symbols to track — mix asset classes, e.g. ["xyz:NVDA", "xyz:SP500", "xyz:GOLD", "xyz:EUR"] or all-equity ["xyz:TSLA", "xyz:NVDA", "xyz:AAPL"]. Crypto works too: "BTC", "ETH".')})},x0={name:"top-movers",label:"Top Movers",category:"markets",iconUrl:w("top-movers"),layout:{w:5,h:3,minW:3,minH:3},description:"Today's biggest stock and commodity HIP-3 gainers and losers (no bare crypto), side by side with current price and 24h change.",capabilities:["day-stats"],source:C.hyperliquid,schema:b({count:_().int().min(3).max(10).default(5).describe("How many gainers and losers to list (each).")})},C0={name:"tvl-treemap",label:"TVL Treemap",category:"crypto",iconUrl:w("tvl-treemap"),layout:{w:6,h:4,minW:3,minH:3},description:"Treemap of total value locked (TVL) across the largest blockchain ecosystems, sized by TVL. Data from DeFiLlama. Good single-glance answer to 'where does on-chain capital live right now'.",capabilities:["tvl"],source:C.defillama,schema:b({topN:_().int().min(3).max(30).default(12).describe("How many of the largest chains to show in the treemap.")})},A0={name:"bitcoin-dominance",label:"Bitcoin Dominance",category:"crypto",iconUrl:w("bitcoin-dominance"),layout:{w:4,h:2,minW:3,minH:2},description:"BTC / ETH / Others market-cap dominance as a segmented bar, with optional total marketcap line. Shifts in BTC dominance hint at where the market rotates next.",capabilities:["global-market"],source:C.coingecko,schema:b({showTotalMarketCap:Ye().default(!0).describe("Show total crypto marketcap and its 24h change below the bar.")})},S0={name:"rates-board",label:"Rates Board",category:"macro",iconUrl:w("rates-board"),layout:{w:4,h:4,minW:3,minH:3},description:"Official US rates board from free public APIs: New York Fed reference rates (SOFR, effective fed funds, repo rates) plus Treasury average interest rates by security class. Daily/reference data, not a real-time stock quote feed.",capabilities:["reference-rates","treasury-rates"],source:[C.nyFed,C.treasury],schema:b({maxReferenceRates:_().int().min(2).max(8).default(5).describe("How many New York Fed reference rates to show."),showTreasuryAverageRates:Ye().default(!0).describe("Also show Treasury average interest rates by security class from Fiscal Data."),maxTreasuryRates:_().int().min(1).max(8).default(4).describe("How many Treasury average-rate rows to show.")})},T0={name:"fx-board",label:"FX Board",category:"macro",iconUrl:w("fx-board"),layout:{w:4,h:4,minW:3,minH:3},description:"Foreign-exchange board from the ECB's free daily reference rates (via Frankfurter, no key): each currency's latest rate vs a base, its day-over-day change, and a short trend sparkline. Daily reference data with broader currency coverage than the handful of FX perps — not a live intraday quote feed.",capabilities:["fx-rates"],source:C.frankfurter,schema:b({base:L().length(3).default("USD").describe('Base currency (ISO 4217 code) each rate is quoted against, e.g. "USD". One unit of the base buys the shown amount of each listed currency.'),symbols:Ee(L().length(3)).min(1).max(12).default(["EUR","GBP","JPY","CHF","CAD","AUD"]).describe('Currencies to show (ISO 4217 codes), e.g. ["EUR","GBP","JPY"]. The ECB publishes ~30; a code equal to the base is skipped.'),showSparkline:Ye().default(!0).describe("Show a small ~30-day trend sparkline next to each rate.")})},E0={name:"inflation-pulse",label:"Inflation Pulse",category:"macro",iconUrl:w("inflation-pulse"),layout:{w:4,h:3,minW:3,minH:2},description:"BLS CPI pulse from the public no-key API: latest CPI-U all-items index with month-over-month and year-over-year changes plus a small trend sparkline. Monthly macro context for stock dashboards; not a live price feed.",capabilities:["macro-series"],source:C.bls,schema:b({months:_().int().min(13).max(36).default(18).describe("How many monthly CPI observations to show in the trend.")})},z0={name:"financial-stress",label:"Financial Stress",category:"macro",iconUrl:w("financial-stress"),layout:{w:4,h:3,minW:3,minH:2},description:"The OFR Financial Stress Index — a daily, market-based gauge of systemic financial stress from the U.S. Office of Financial Research. One headline value where 0 is the long-run average (positive = elevated stress, negative = calmer than normal), an optional breakdown of the five contributing categories (credit, equity valuation, safe assets, funding, volatility), and a trend line. Keyless official data, updated each business day; needs the zframes runtime's data proxy (ships with `zframes serve` / `vite dev`). Not a price feed.",capabilities:["financial-stress"],source:C.ofr,schema:b({trendDays:_().int().min(20).max(90).default(60).describe("How many recent daily readings to plot in the trend line."),showCategories:Ye().default(!0).describe("Show the five category contributions (credit, equity valuation, safe assets, funding, volatility) under the headline.")})},P0={name:"national-debt",label:"National Debt",category:"macro",iconUrl:w("national-debt"),layout:{w:4,h:3,minW:3,minH:2},description:"U.S. total public debt outstanding from the Treasury's keyless 'Debt to the Penny' dataset — the headline total in trillions, the change over the chosen window, an optional split into debt held by the public vs intragovernmental holdings, and a trend line. Official data updated each business day; CORS-safe (no proxy needed). Macro context, not a live price feed.",capabilities:["national-debt"],source:C.treasury,schema:b({trendDays:_().int().min(30).max(365).default(180).describe("How many business days of history to load for the trend and the change figure."),showSplit:Ye().default(!0).describe("Show the debt-held-by-the-public vs intragovernmental-holdings split.")})},D0={name:"labor-market",label:"Labor Market",category:"macro",iconUrl:w("labor-market"),layout:{w:4,h:3,minW:3,minH:2},description:"U.S. labor-market snapshot from the BLS keyless public API: the headline unemployment rate, the latest monthly change in nonfarm payrolls (jobs added or lost), the total payroll level, and an unemployment-rate trend line. Monthly macro context for stock dashboards; updates on the BLS jobs-report schedule, not a live feed.",capabilities:["macro-series"],source:C.bls,schema:b({months:_().int().min(13).max(36).default(18).describe("How many monthly observations to show in the trend.")})},M0={name:"treasury-auctions",label:"Treasury Auctions",category:"macro",iconUrl:w("treasury-auctions"),layout:{w:5,h:4,minW:3,minH:3},description:"Recent completed U.S. Treasury auctions from the keyless Fiscal Data API — each row shows the security (bill/note/bond + term), the high awarded yield, and the bid-to-cover ratio (demand: total bids ÷ amount accepted; higher = stronger). Newest first. Official market-plumbing data, CORS-safe; updates as auctions settle, not a live price feed.",capabilities:["treasury-auctions"],source:C.treasury,schema:b({count:_().int().min(3).max(20).default(8).describe("How many recent auctions to list (newest first).")})},R0={name:"filings-feed",label:"Filings Feed",category:"equities",iconUrl:w("filings-feed"),layout:{w:5,h:4,minW:3,minH:3},description:"Recent SEC EDGAR filings for one US-listed company — each row shows the form type (10-K, 10-Q, 8-K, Form 4…), a plain-English label, the filing date, and a click-through to the document on sec.gov, under a header with the company name, exchange, and filer category. Official data from SEC's free, CORS-safe submissions endpoint; event-driven (updates when the company files), not a price feed. Resolve by ticker (a bundled snapshot of the ~500 largest US issuers) or by raw SEC CIK for anything else.",capabilities:["filings"],source:C.secEdgar,schema:b({symbol:L().min(1).describe('Company to show filings for — a ticker ("AAPL", "NVDA"), a HIP-3 symbol ("xyz:TSLA"), or a raw SEC CIK ("320193"). Tickers outside the bundled top-500 map need a CIK.'),forms:I(["important","all","insider"]).default("important").describe('Which filings to surface: "important" = periodic & material reports (10-K, 10-Q, 8-K, S-1, proxies, 13D/G…); "insider" = ownership forms (3/4/5/144); "all" = unfiltered. Always newest first.'),count:_().int().min(3).max(25).default(8).describe("How many filings to list (newest first).")})},O0={name:"yield-curve",label:"Yield Curve",category:"macro",iconUrl:w("yield-curve"),layout:{w:4,h:3,minW:3,minH:3},description:"The U.S. Treasury daily par yield curve — a line from 1-month to 30-year yields, the headline 2s10s spread (10Y minus 2Y; negative = inverted, the classic recession signal), and a configurable row of key maturities. Keyless official data from the U.S. Treasury, updated each business day; not a live intraday feed.",capabilities:["yield-curve"],source:C.treasury,schema:b({maturities:Ee(I(["1M","2M","3M","4M","6M","1Y","2Y","3Y","5Y","7Y","10Y","20Y","30Y"])).min(2).max(8).default(["3M","2Y","5Y","10Y","30Y"]).describe("Maturities to show as labelled cells under the curve (the full curve line always shows every maturity).")})},L0={name:"fundamentals",label:"Fundamentals",category:"equities",iconUrl:w("fundamentals"),layout:{w:4,h:4,minW:3,minH:3},description:"Headline financials for one US-listed company from SEC EDGAR XBRL company facts — revenue, net income, total assets, shareholders' equity, diluted EPS, and shares outstanding, each labelled with its fiscal period. Income-statement figures are the latest full fiscal year; balance-sheet figures are the latest reported quarter. Keyless official data that updates only when the company files (annual/quarterly), not a live feed. Requires the zframes runtime's data proxy (it ships with `zframes serve` / `vite dev`); resolve by ticker (bundled top-500 map) or raw SEC CIK.",capabilities:["fundamentals"],source:C.secEdgar,schema:b({symbol:L().min(1).describe('Company to show financials for — a ticker ("AAPL", "NVDA"), a HIP-3 symbol ("xyz:NVDA"), or a raw SEC CIK ("320193"). Tickers outside the bundled top-500 map need a CIK.')})},F0={name:"short-volume",label:"Short Volume",category:"equities",iconUrl:w("short-volume"),layout:{w:5,h:4,minW:3,minH:3},description:"Daily reported short-sale volume for a watchlist of US-listed stocks, from FINRA's free consolidated file — each row shows the % of the day's reported volume that was sold short, with a bar and the raw short/total share counts. IMPORTANT: this is reported short volume (sell-side short flow, which includes market-maker hedging), NOT short interest (outstanding short positions), and is not a directional signal on its own. Daily data published the next business day; not a live feed. US equities only.",capabilities:["short-volume"],source:C.finra,schema:b({symbols:Ee(L()).min(1).max(12).describe('US-listed stock tickers to show, e.g. ["TSLA","NVDA","AAPL"]. HIP-3 symbols ("xyz:TSLA") work too — the dex prefix is stripped. Crypto has no SEC/FINRA short-volume and is ignored.'),sort:I(["shortPct","volume","symbol"]).default("shortPct").describe("Order rows by short % of volume (highest first), by total volume (highest first), or alphabetically by symbol.")})},I0={name:"funding-heatmap",label:"Funding Heatmap",category:"derivatives",iconUrl:w("funding-heatmap"),layout:{w:6,h:3,minW:4,minH:3},description:"Heatmap of perp funding rates — symbols as rows, daily average over the last 7 days as columns, green positive / red negative. Spots persistent funding regimes at a glance.",capabilities:["funding-history"],source:C.hyperliquid,schema:b({symbols:Ee(L()).min(2).max(8).describe('Hyperliquid symbols as heatmap rows — at least 2, since the heatmap compares funding across symbols, e.g. ["xyz:TSLA", "xyz:NVDA", "xyz:AAPL"].')})},N0={name:"dino-game",label:"Dino Game",category:"games",iconUrl:w("dino-game"),layout:{w:4,h:3,minW:3,minH:3},description:"Chrome-dino style runner game on canvas — jump cacti with SPACE or tap. High score persists locally. For when the market is boring. Needs no data provider.",capabilities:[],schema:b({})},H0={name:"image",label:"Image",category:"layout",iconUrl:w("image"),layout:{w:3,h:3,minW:1,minH:1},description:"Displays an image from a URL — logos, memes, chart screenshots, banners. Needs no data provider.",capabilities:[],chrome:"plain",schema:b({url:L().min(1).describe("Image URL (https)."),alt:L().default("").describe("Alt text for accessibility."),fit:I(["cover","contain"]).default("cover").describe("How the image fills the frame: cover crops, contain letterboxes.")})},U0={name:"hero-number",label:"Hero Number",category:"layout",iconUrl:w("hero-number"),layout:{w:3,h:2,minW:2,minH:1},description:"A big manual KPI card you fill in yourself — one headline number, a caption, and an optional signed change. Static text, not a live feed: use it to pin a figure that has no provider (a target, a personal goal, a fact from elsewhere), e.g. '$39.6T' national debt or '127 EH/s' hashrate. Needs no data provider.",capabilities:[],chrome:"plain",schema:b({value:L().min(1).describe('The headline figure, shown large. Free text so you can include units/symbols, e.g. "$39.6T", "127 EH/s", "4.25%".'),label:L().default("").describe('Caption naming what the number is, e.g. "US National Debt". Empty hides it.'),delta:L().default("").describe('Optional change chip shown under the number, e.g. "+1.5%" or "-3 blocks". Empty hides it.'),deltaDir:I(["up","down","neutral"]).default("neutral").describe("Tint for the delta chip: up = gain color, down = loss color, neutral = muted. Purely cosmetic — it does not parse the delta text."),sublabel:L().default("").describe('Optional small line under the delta for context, e.g. "as of Jul 2026". Empty hides it.')})},B0={name:"image-gallery",label:"Image Gallery",category:"layout",iconUrl:w("image-gallery"),layout:{w:4,h:3,minW:2,minH:2},description:"A rotating gallery that cross-fades through a list of images on a timer — chart screenshots, memes, banners, a mood board. Needs no data provider.",capabilities:[],chrome:"plain",schema:b({images:Ee(b({url:L().min(1).describe("Image URL (https)."),alt:L().default("").describe("Alt text for accessibility.")})).min(1).describe("The images to rotate through, in order. At least one."),intervalSec:_().int().min(0).default(6).describe("Seconds between cross-fades when there is more than one image. 0 shows the first image, fixed."),fit:I(["cover","contain"]).default("cover").describe("How each image fills the frame: cover crops to fill, contain letterboxes.")})},j0={name:"heading",label:"Heading",category:"layout",iconUrl:w("heading"),layout:{w:12,h:1,minW:2,minH:1,maxH:1},description:"Section divider that titles a region of the dashboard ('Markets', 'On-chain', 'Desk'). Renders as a label with a hairline rule — no card. Use to group frames into zones: place full-width (w: 12) and 1 row tall (h: 1) above each group. Needs no data provider.",capabilities:[],chrome:"bare",schema:b({title:L().min(1).describe("The heading text."),subtitle:L().optional().describe("Smaller supporting line under the title."),accent:_().min(0).max(360).optional().describe("Optional hue (0–360) that tints the marker dot, the rule, and the title. Omit to use the dashboard's own accent (the default look)."),align:I(["left","center"]).default("left").describe("Left aligns the label with a trailing rule (default); center places the label between rules on both sides.")})},V0={name:"daily-analysis",label:"Daily Analysis",category:"tools",iconUrl:w("daily-analysis"),layout:{w:6,h:3,minW:3,minH:2},description:"Daily market brief written by the /zframes-brief loop — a dated analysis of the symbols on your dashboard, the calls it is making today, and how yesterday's calls scored (with a running hit-rate). Reads a local log file the loop appends to; needs no market data provider. Add one per dashboard.",capabilities:[],schema:b({src:L().default("/daily-analysis.json").describe("URL of the analysis log the loop writes, served from the app's public/ dir. Leave as the default unless you renamed the file."),entries:_().int().min(1).max(5).default(1).describe("How many of the most recent daily entries to show (newest first)."),refreshSec:_().int().min(30).default(300).describe("How often (seconds) to re-fetch the log so a fresh brief appears without a manual reload.")})},W0={name:"journal-log",label:"Journal · Log",category:"journal",iconUrl:w("journal-log"),layout:{w:4,h:5,minW:3,minH:4},source:C.hyperliquid,description:"Log a market read in seconds: pick a supported ticker (with its live Hyperliquid price), Long or Short, the reason (a quick pick + optional note), and how sure you are (a slider). That's it — a falsifiable call, captured at the live price, that the Open/Results frames then track and grade. The simple front door to your decision journal; pairs with the zAI orb for conversational capture. Add one alongside Journal · Open and Journal · Results.",capabilities:["quote-stream","day-stats"],schema:b({})},G0={name:"journal-open",label:"Journal · Open",category:"journal",iconUrl:w("journal-open"),layout:{w:4,h:4,minW:3,minH:3},description:"Your open calls from the decision journal, each marking to the live Hyperliquid price — direction, confidence, unrealized % return, a live entry→target track, and a countdown. Calls auto-grade at their horizon (or close one early). The 'watch it play out' frame. Reads the journal you write with Journal · Log.",source:C.hyperliquid,capabilities:["quote-stream"],schema:b({max:_().int().min(1).max(20).default(8).describe("How many open calls to show (newest first).")})},K0={name:"journal-results",label:"Journal · Results",category:"journal",iconUrl:w("journal-results"),layout:{w:4,h:4,minW:3,minH:3},description:"Your resolved calls from the decision journal, graded on TWO axes: did it hit, AND did the thesis actually play out — so a lucky hit reads differently from earned skill, and a near-miss from a clean miss. The reflection frame. Reads the journal you write with Journal · Log.",capabilities:[],schema:b({max:_().int().min(1).max(20).default(8).describe("How many resolved calls to show (newest first).")})},q0={name:"journal-score",label:"Journal · Scoreboard",category:"journal",iconUrl:w("journal-score"),layout:{w:4,h:3,minW:3,minH:3},description:"The decision-journal scoreboard — a story, not a spreadsheet: where your judgment has an edge, where it leaks, and how calibrated your confidence is, plus a one-line read from zAI. Aggregates the calls logged via Journal · Log.",capabilities:[],schema:b({})},Y0={name:"price-compare",label:"Price Compare",category:"markets",iconUrl:w("price-compare"),layout:{w:6,h:3,minW:3,minH:2},description:"Multi-series line chart overlaying the price history of several symbols over a lookback window — see how TSLA, NVDA and BTC moved against each other. Normalized by default to % change from the window start so symbols at very different price levels (BTC vs a $20 stock) stay comparable on one axis. Candles from Hyperliquid.",capabilities:["ohlcv"],source:C.hyperliquid,schema:b({symbols:Ee(L()).min(2).max(6).describe('Hyperliquid symbols to overlay, e.g. ["xyz:TSLA", "xyz:NVDA", "BTC"]. 2 to 6.'),lookback:I(["24h","7D","1M"]).default("7D").describe("History window for the comparison."),normalize:Ye().default(!0).describe("Rebase each series to % change from the window start (recommended — lets symbols at different price levels share one axis). Off = raw price, only sensible when comparing similarly-priced symbols.")})},ca={source:I(["binance","wallet"]).default("binance").describe('Where the holdings come from: "binance" (a connected Binance account — a read-only API key is entered in-app and stored locally, never in this file) or "wallet" (a public on-chain address, keyless).'),address:L().default("").describe('For source "wallet": the public Ethereum address (0x…) or ENS name to track. Public on-chain data, no keys. Ignored for "binance".')},J0={name:"portfolio-value",label:"Portfolio Value",category:"portfolio",iconUrl:w("portfolio-value"),layout:{w:5,h:4,minW:3,minH:3},description:"Your connected portfolio's total USD value as a live equity line, ticking with the market. Source is a connected Binance account (read-only key, entered in-app) or a public on-chain wallet address. Shows total value + session change. Renders a connect prompt until a source is set.",capabilities:["portfolio","quote-stream"],account:!0,schema:b({...ca,windowSec:_().int().positive().default(300).describe("Seconds of live history the equity line shows; it accumulates from when the dashboard opens.")})},X0={name:"portfolio-allocation",label:"Portfolio Allocation",category:"portfolio",iconUrl:w("portfolio-allocation"),layout:{w:4,h:4,minW:3,minH:3},description:"Donut of your connected portfolio's allocation — each slice sized by live USD value, total in the center. Source is a connected Binance account (read-only key, in-app) or a public on-chain wallet address. Renders a connect prompt until a source is set.",capabilities:["portfolio","quote-stream"],account:!0,schema:b({...ca})},Z0={name:"portfolio-holdings",label:"Portfolio Holdings",category:"portfolio",iconUrl:w("portfolio-holdings"),layout:{w:4,h:4,minW:3,minH:3},description:"Table of your connected portfolio's positions — asset, amount, live USD value, share of total, 24h change. Source is a connected Binance account (read-only key, in-app) or a public on-chain wallet address. Renders a connect prompt until a source is set.",capabilities:["portfolio","quote-stream"],account:!0,schema:b({...ca})},$0={name:"news-feed",label:"News Feed",category:"sentiment",iconUrl:w("news-feed"),layout:{w:4,h:4,minW:3,minH:3},description:'Scrolling feed of the latest news headlines from a chosen outlet — each row is a clickable headline with its publish time, newest first. Free, keyless RSS sources: crypto press (CoinDesk, Cointelegraph, Decrypt), broad markets/macro (CNBC, Nasdaq), or — source "stocks" — per-company headlines (via Google News) scoped to the specific tickers in `symbols`. IMPORTANT: news feeds are CORS-blocked, so this frame reads them through the zframes runtime\'s data proxy (it ships with `zframes serve` / `vite dev`); on a fully static host with no runtime it shows an empty state.',capabilities:["news"],schema:b({source:I(["coindesk","cointelegraph","decrypt","cnbc","nasdaq","stocks"]).default("coindesk").describe('Which feed to show. Crypto press: "coindesk", "cointelegraph", "decrypt". Markets/macro: "cnbc", "nasdaq". "stocks" = per-company headlines (Google News) for the tickers in `symbols`.'),symbols:Ee(L()).default([]).describe('Only used when source is "stocks": stock tickers to pull headlines for, e.g. ["TSLA","NVDA","AAPL"]. HIP-3 symbols ("xyz:TSLA") work too — the dex prefix is stripped. Ignored for the other sources.'),count:_().int().min(3).max(20).default(8).describe("How many headlines to list (newest first).")})},Q0={name:"dex-volume-treemap",label:"DEX Volume Treemap",category:"crypto",iconUrl:w("dex-volume-treemap"),layout:{w:6,h:4,minW:3,minH:3},description:"Treemap of decentralized-exchange (DEX) protocols sized by trailing-24h trading volume, tiles colored green/red by 1-day change. Data from DeFiLlama. One-glance read on where on-chain trading flow is concentrated right now.",capabilities:["dex-volume"],source:C.defillama,schema:b({topN:_().int().min(3).max(30).default(12).describe("How many of the highest-volume DEX protocols to show.")})},eb={name:"dex-volume-chart",label:"DEX Volume Chart",category:"crypto",iconUrl:w("dex-volume-chart"),layout:{w:6,h:3,minW:3,minH:2},description:"Multi-series line chart of daily DEX trading volume for several protocols over a lookback window — compare how Uniswap, PancakeSwap, Aerodrome etc. trend against each other. Data from DeFiLlama (daily granularity).",capabilities:["dex-volume"],source:C.defillama,schema:b({protocols:Ee(L()).min(1).max(6).describe('DeFiLlama DEX protocol slugs (lowercase, hyphenated), e.g. ["uniswap", "pancakeswap", "aerodrome-slipstream"]. 1 to 6.'),lookback:I(["7D","1M","3M"]).default("1M").describe("History window for the chart.")})},tb={name:"protocol-tvl-treemap",label:"Protocol TVL Treemap",category:"crypto",iconUrl:w("protocol-tvl-treemap"),layout:{w:6,h:4,minW:3,minH:3},description:"Treemap of DeFi protocols sized by current total value locked (TVL), tiles colored green/red by 1-day change. Data from DeFiLlama. Unlike tvl-treemap (which groups by blockchain), this ranks individual protocols (Lido, Aave, EigenLayer…).",capabilities:["protocol-tvl"],source:C.defillama,schema:b({topN:_().int().min(3).max(30).default(12).describe("How many of the largest protocols by TVL to show.")})},rb={name:"protocol-tvl-chart",label:"Protocol TVL Chart",category:"crypto",iconUrl:w("protocol-tvl-chart"),layout:{w:6,h:3,minW:3,minH:2},description:"Multi-series line chart of total value locked (TVL) for several DeFi protocols over a lookback window. Data from DeFiLlama (daily granularity).",capabilities:["protocol-tvl"],source:C.defillama,schema:b({protocols:Ee(L()).min(1).max(6).describe('DeFiLlama protocol slugs (lowercase, hyphenated), e.g. ["lido", "aave", "eigenlayer"]. 1 to 6.'),lookback:I(["7D","1M","3M"]).default("1M").describe("History window for the chart.")})},ab={name:"protocol-fees-treemap",label:"Protocol Fees Treemap",category:"crypto",iconUrl:w("protocol-fees-treemap"),layout:{w:6,h:4,minW:3,minH:3},description:"Treemap of protocols sized by the fees they generated in the last 24h, tiles colored green/red by 1-day change. Data from DeFiLlama. Shows where on-chain users are actually paying for blockspace and services right now.",capabilities:["protocol-fees"],source:C.defillama,schema:b({topN:_().int().min(3).max(30).default(12).describe("How many of the highest fee-earning protocols to show.")})},ob={name:"market-cap-treemap",label:"Market Cap Treemap",category:"crypto",iconUrl:w("market-cap-treemap"),layout:{w:6,h:4,minW:3,minH:3},description:"Treemap of the largest cryptocurrencies sized by market capitalisation, tiles colored green/red by 24h price change. Data from CoinGecko (free tier). A heat-map of the whole crypto market at a glance.",capabilities:["coin-markets"],source:C.coingecko,schema:b({topN:_().int().min(5).max(50).default(12).describe("How many of the largest coins by market cap to show (up to 50).")})},nb={name:"open-interest",label:"Open Interest",category:"derivatives",iconUrl:w("open-interest"),layout:{w:4,h:3,minW:3,minH:2},description:'Live open interest across a watchlist of Hyperliquid perps — each symbol is a horizontal bar sized by USD notional, largest first, refreshed on a ~30s poll. Single-venue (Hyperliquid only), so read it as a relative gauge across your symbols, not a market-wide total. Stocks (HIP-3, e.g. "xyz:TSLA") and crypto both work.',capabilities:["open-interest"],source:C.hyperliquid,schema:b({symbols:Ee(L()).min(1).max(20).describe(`Hyperliquid symbols to compare open interest for, e.g. ["BTC", "ETH", "xyz:TSLA"]. A "<dex>:*" wildcard (e.g. "xyz:*") pulls that dex's entire universe.`)})},ib={name:"snake",label:"Snake",category:"games",iconUrl:w("snake"),layout:{w:4,h:4,minW:3,minH:3},description:"Classic snake game on canvas — steer with the arrow keys (or swipe), eat dots to grow, avoid the walls and your own tail. High score persists locally. For when the market is flat. Needs no data provider.",capabilities:[],schema:b({})},sb={name:"flappy-bird",label:"Flappy Bird",category:"games",iconUrl:w("flappy-bird"),layout:{w:4,h:4,minW:3,minH:3},description:"Flappy-bird style game on canvas — tap or press SPACE to flap through the gaps between pipes. High score persists locally. Needs no data provider.",capabilities:[],schema:b({})},cb={name:"video",label:"Video",category:"layout",iconUrl:w("video"),layout:{w:4,h:3,minW:2,minH:2},description:"Embeds a video from a YouTube or Vimeo link (or any direct embed URL) as an iframe — a livestream, a market-news clip, a focus playlist. Needs no data provider.",capabilities:[],chrome:"plain",schema:b({url:L().min(1).describe("Video URL — a YouTube watch/share link, a Vimeo link, or a direct embeddable URL (https)."),title:L().default("Video").describe("Accessible title for the embedded player (iframe title).")})},lb={name:"drawdy",label:"Drawdy",category:"layout",iconUrl:w("drawdy"),layout:{w:8,h:6,minW:2,minH:2},description:"Embeds drawdy.io as an interactive whiteboard canvas. No configuration needed.",capabilities:[],schema:b({})},ub={name:"countdown",label:"Countdown",category:"tools",iconUrl:w("countdown"),layout:{w:3,h:2,minW:2,minH:1},description:"Live countdown to a target date and time — FOMC decisions, CPI prints, options expiry, earnings, a token unlock, the next market open. Counts down in days / hours / minutes / seconds, ticking every second, and flips to a 'reached' state once the moment passes. Needs no data provider.",capabilities:[],schema:b({target:L().default("").describe(`The moment to count down to, as an ISO 8601 string. Add a timezone for an unambiguous instant, e.g. "2026-07-30T18:00:00-04:00" or "2026-12-31T23:59:59Z"; a bare "2026-07-30T18:00" is read in the viewer's local timezone. Empty shows a "set a target" prompt.`),label:L().default("").describe('Caption above the countdown, e.g. "FOMC Decision". Empty hides it.'),showTarget:Ye().default(!0).describe("Show the formatted target date and time under the countdown.")})},db={name:"link-grid",label:"Quick Links",category:"tools",iconUrl:w("link-grid"),layout:{w:3,h:2,minW:2,minH:1},description:"A grid of quick-launch tiles linking to your favourite sites — TradingView, exchanges, news, docs, your own dashboards. Each tile opens in a new tab and shows the destination site's favicon by default (fetched keyless from a public favicon service), with an optional per-link icon override and a first-letter fallback. Needs no data provider.",capabilities:[],chrome:"plain",schema:b({links:Ee(b({label:L().min(1).describe('Tile caption, e.g. "TradingView".'),url:L().min(1).describe("Destination URL (https). Opens in a new tab."),icon:L().default("").describe(`Optional icon override: an emoji (e.g. "📈") or an https image URL. Empty uses the destination site's favicon, falling back to the label's first letter.`)})).min(1).default([{label:"TradingView",url:"https://www.tradingview.com",icon:"📈"},{label:"Hyperliquid",url:"https://app.hyperliquid.xyz",icon:"⚡"}]).describe("The links to show as tiles. At least one."),columns:_().int().min(1).max(4).default(2).describe("How many tiles per row.")})},hb={name:"calculator",label:"Position Calculator",category:"tools",iconUrl:w("calculator"),layout:{w:3,h:3,minW:2,minH:2},description:"Position-size & risk calculator. Enter account size, risk-per-trade %, entry and stop price; it computes the dollars at risk, the per-unit risk, the position size (units) that respects that risk budget, the resulting position value, and whether the setup is long or short. All math runs client-side — no data provider. Inputs are editable live; the configured values are the starting point.",capabilities:[],schema:b({account:_().positive().default(1e4).describe("Account size used as the risk base, in the quote currency."),riskPct:_().positive().max(100).default(1).describe("Percent of the account risked on the trade, e.g. 1 = 1%."),entry:_().positive().default(100).describe("Entry price."),stop:_().positive().default(95).describe("Stop-loss price. Its distance from entry sets the per-unit risk; below entry = long, above = short."),currency:L().default("$").describe("Currency symbol shown next to money values.")})},fb={name:"quote",label:"Quote",category:"layout",iconUrl:w("quote"),layout:{w:4,h:2,minW:2,minH:1},description:'Displays a market or trading quote, centered — set one or rotate through several. A calm bit of wall-art for the dashboard: trading maxims, reminders of your own rules, mantras. Write any attribution into the text itself (e.g. "… — Buffett"). Needs no data provider.',capabilities:[],chrome:"plain",schema:b({quotes:Ee(L().min(1)).min(1).default(["Be fearful when others are greedy, and greedy when others are fearful. — Warren Buffett","The trend is your friend until the end when it bends.","Plan the trade, trade the plan."]).describe("One or more quotes. With more than one, the frame rotates through them."),intervalSec:_().int().min(0).default(12).describe("Seconds between rotations when there are multiple quotes. 0 shows the first quote, fixed.")})},mb={name:"divider",label:"Divider",category:"layout",iconUrl:w("divider"),layout:{w:12,h:1,minW:1,minH:1},description:"A plain rule that separates regions of the dashboard, with an optional centered label. Renders chrome-less (no card) — lighter than a heading. Use a horizontal divider full-width between stacked zones, or set orientation to vertical for a 1-column-wide column separator. Needs no data provider.",capabilities:[],chrome:"bare",schema:b({label:L().default("").describe("Optional text shown in the middle of the rule. Empty = a clean line."),orientation:I(["horizontal","vertical"]).default("horizontal").describe("Horizontal rule (spans the width) or vertical rule (spans the height)."),style:I(["solid","dashed","dotted"]).default("solid").describe("Line style."),accent:_().min(0).max(360).optional().describe("Optional hue (0–360) that tints the rule and its label. Omit for the default subtle hairline."),thickness:_().int().min(1).max(8).default(1).describe("Rule thickness in pixels. 1 is the default hairline.")})},pb={name:"dice",label:"Dice",category:"tools",iconUrl:w("dice"),layout:{w:2,h:2,minW:1,minH:1},description:"A click-to-decide widget — a random decision-maker with no data provider. Flip a coin (heads/tails), roll a die (1–6), or pick at random from your own list of options. Click the surface to re-roll. Use it to break a tie, pick what to trade, or settle any small decision.",capabilities:[],schema:b({mode:I(["coin","dice","list"]).default("coin").describe("coin = heads/tails, dice = 1–6, list = random pick from options."),options:Ee(L()).default(["Yes","No"]).describe("Choices used in list mode."),label:L().default("").describe("Optional caption, e.g. the question being decided.")})},gb={name:"risk-reward",label:"Risk / Reward",category:"tools",iconUrl:w("risk-reward"),layout:{w:3,h:3,minW:2,minH:2},description:"Risk:reward planner. Enter entry, stop-loss and profit-target prices; it computes the per-unit risk and reward, their percentages of entry, and the resulting R:R ratio, shown large above a two-segment bar (red risk leg vs green reward leg, sized to scale). Pure client-side math — no data provider. Complements the calculator frame by adding the target/reward leg the position sizer leaves out.",capabilities:[],schema:b({entry:_().default(100).describe("Planned entry price."),stop:_().default(95).describe("Stop-loss price."),target:_().default(115).describe("Profit target price."),direction:I(["long","short"]).default("long").describe("Trade direction. Long expects stop < entry < target; short expects target < entry < stop — used for labels and to flag a mismatched setup."),label:L().default("").describe("Optional caption.")})},bb={name:"marquee",label:"Marquee",category:"layout",iconUrl:w("marquee"),layout:{w:6,h:1,minW:2,minH:1},description:"A chrome-less scrolling banner that glides custom text continuously right-to-left across the frame (think stadium ticker / news crawl). Renders with no card — it fills the whole frame. Use for a slogan, a reminder, or a hype line. Needs no data provider.",capabilities:[],chrome:"bare",schema:b({text:L().default("LFG").describe("The text that scrolls across the banner."),speed:I(["slow","normal","fast"]).default("normal").describe("Scroll speed."),accent:Ye().default(!0).describe("Tint the text with the dashboard accent color.")})},yb={name:"stopwatch",label:"Stopwatch",layout:{w:3,h:2,minW:2,minH:1},category:"tools",iconUrl:w("stopwatch"),description:"A count-up stopwatch — time-in-trade, a focus session, how long a setup has been live. Start / Pause / Reset, ticking up in H:MM:SS, and it persists across reloads (the running state is saved into the dashboard, so it keeps counting where it left off). Runs entirely client-side — needs no data provider.",capabilities:[],schema:b({label:L().default("Session").describe("Caption above the timer."),startedAt:_().default(0).describe("Epoch ms when the timer was last started; 0 = paused. Persisted automatically by the frame."),accumulatedMs:_().default(0).describe("Milliseconds banked before the current run. Persisted automatically by the frame.")})},vb={name:"session-progress",label:"Session Progress",category:"tools",iconUrl:w("session-progress"),layout:{w:3,h:2,minW:2,minH:1},description:"A horizontal progress bar showing how far through today's trading session an exchange is — fills from open to close with a percent readout, and a 'closes in …' / 'opens in …' countdown. Pick any exchange code (NYSE, NASDAQ, LSE, TSX, B3, …); sessions are computed client-side from the exchange's timezone and hours, so it needs no data provider.",capabilities:[],schema:b({exchange:L().default("NYSE").describe("Exchange code: NYSE, NASDAQ, LSE, TSX, B3, …"),label:L().default("").describe("Optional caption shown by the exchange code."),showCountdown:Ye().default(!0).describe("Show the time-to-open / time-to-close countdown.")})},wb={name:"holiday-calendar",label:"Holiday Calendar",category:"tools",iconUrl:w("holiday-calendar"),layout:{w:3,h:4,minW:2,minH:2},description:"Upcoming market holidays (full closures) for a chosen exchange — the next few dates with their weekday and a countdown ('in 9d'). Pick any exchange code (NYSE, NASDAQ, LSE, TSX, B3, …); dates come from a bundled holiday table and are computed client-side, so it needs no data provider. Note: the bundled table currently covers 2026.",capabilities:[],schema:b({exchange:L().default("NYSE").describe("Exchange code: NYSE, NASDAQ, LSE, TSX, B3, …"),count:_().int().min(1).max(20).default(5).describe("How many upcoming holidays to list."),label:L().default("").describe("Optional caption shown above the list.")})},kb={name:"day-meter",label:"Day Meter",category:"tools",iconUrl:w("day-meter"),layout:{w:4,h:2,minW:2,minH:1},description:"A strip of the current week's days for a chosen exchange — today highlighted, market holidays flagged in amber, and (optionally) non-trading days greyed. Computed client-side from the exchange's trading days + a bundled holiday table; needs no data provider.",capabilities:[],schema:b({exchange:L().default("NYSE").describe("Exchange code: NYSE, NASDAQ, LSE, TSX, B3, …"),weekdaysOnly:Ye().default(!0).describe("Show only the exchange's trading days; off shows the full 7-day week with weekends greyed."),label:L().default("").describe("Optional caption shown by the strip.")})},_b={name:"returns-projector",label:"Returns Projector",category:"tools",iconUrl:w("returns-projector"),layout:{w:3,h:4,minW:2,minH:3},description:"A compound-growth projector — enter a starting principal, a percent return per period, the number of periods, and an optional per-period contribution; it charts the projected balance curve and shows the ending value and total gain. Pure client-side math, no data provider; complements the position-size/risk `calculator`.",capabilities:[],schema:b({principal:_().default(1e3).describe("Starting balance."),ratePct:_().default(5).describe("Return per period, in percent (e.g. 5 = 5%)."),periods:_().int().min(1).max(600).default(12).describe("Number of compounding periods to project."),contribution:_().default(0).describe("Amount added at the end of each period."),label:L().default("").describe("Optional caption.")})},xb={name:"breakeven",label:"Break-even",category:"tools",iconUrl:w("breakeven"),layout:{w:3,h:4,minW:2,minH:2},description:"A break-even / average-cost calculator — add your fills (price + size) and it computes the size-weighted average entry; set an optional current price to see the unrealized P&L %. Pure client-side math, no data provider.",capabilities:[],schema:b({fills:Ee(b({price:_().describe("Fill price."),size:_().describe("Fill size, in units.")})).default([{price:100,size:1}]).describe("Your entry fills; their size-weighted average is the break-even."),currentPrice:_().default(0).describe("Optional current price; greater than 0 shows the unrealized P&L %."),label:L().default("").describe("Optional caption.")})},Cb={name:"checklist",label:"Checklist",category:"tools",iconUrl:w("checklist"),layout:{w:3,h:3,minW:2,minH:2},description:"A tickable checklist — a pre-trade routine, a daily ritual, anything. Tap items to check them off; the checked state persists across reloads (saved into the dashboard). Client-side only, no data provider.",capabilities:[],schema:b({title:L().default("Pre-trade checklist").describe("Heading shown above the list."),items:Ee(L()).default(["Trend & bias aligned","Stop level set","Risk sized correctly"]).describe("The checklist items, top to bottom."),checked:Ee(Ye()).default([]).describe("Per-item checked state (by index); persisted automatically by the frame.")})},Ab={name:"pomodoro",label:"Pomodoro",category:"tools",iconUrl:w("pomodoro"),layout:{w:3,h:3,minW:2,minH:2},description:"A Pomodoro focus timer — alternating work and break intervals with Start / Pause / Reset and a cycle counter, counting down in MM:SS. Runs entirely client-side with no data provider; timer state is in-session (not persisted).",capabilities:[],schema:b({workMin:_().min(1).max(180).default(25).describe("Work interval length, in minutes."),breakMin:_().min(1).max(120).default(5).describe("Break interval length, in minutes."),cycles:_().int().min(1).max(20).default(4).describe("Work/break cycles before the counter loops."),label:L().default("").describe("Optional caption.")})},Sb={name:"rules-card",label:"Rules",category:"layout",iconUrl:w("rules-card"),layout:{w:3,h:3,minW:2,minH:2},description:"A pinned, auto-numbered list of your trading rules (or any principles) — always fully visible, unlike the rotating `quote` frame. Static text, client-side, no data provider.",capabilities:[],schema:b({title:L().default("My rules").describe("Heading shown above the list."),rules:Ee(L()).default(["Cut losers fast, let winners run","No trade without a stop","One setup at a time"]).describe("The rules, in order; rendered as a numbered list.")})},Tb={name:"breathing",label:"Breathing",category:"layout",iconUrl:w("breathing"),chrome:"bare",layout:{w:2,h:2,minW:1,minH:1},description:"A chrome-less breathing pacer — a circle that expands and contracts through configurable inhale / hold / exhale / hold phases to steady your breathing between trades. Renders with no card; client-side only, no data provider.",capabilities:[],schema:b({inhale:_().min(1).max(60).default(4).describe("Inhale seconds."),hold:_().min(0).max(60).default(4).describe("Hold-after-inhale seconds."),exhale:_().min(1).max(60).default(4).describe("Exhale seconds."),holdAfter:_().min(0).max(60).default(4).describe("Hold-after-exhale seconds.")})},Eb={name:"spotify-embed",label:"Spotify",category:"layout",iconUrl:w("spotify-embed"),layout:{w:3,h:4,minW:2,minH:2},description:"Embeds a Spotify track, album, playlist, artist, or show from its public open.spotify.com share link (same embed approach as the `video` frame), using Spotify's official keyless iframe player. Needs an internet connection to play.",capabilities:[],schema:b({url:L().default("https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M").describe("A Spotify share URL (open.spotify.com/track|album|playlist|artist/…)."),compact:Ye().default(!1).describe("Use Spotify's compact (single-row) player height.")})},zb={name:"btc-fees",label:"BTC Fees",category:"bitcoin",iconUrl:w("btc-fees"),layout:{w:3,h:3,minW:2,minH:3},description:"Recommended Bitcoin on-chain fee rates (sat/vB) from mempool.space — the next-block ('fastest'), ~30-minute, ~1-hour, economy, and minimum tiers, as a compact gauge. Live mempool data, keyless; updates every ~30s.",capabilities:["btc-fees"],source:C.mempool,schema:b({tiers:Ee(I(["fastest","halfHour","hour","economy","minimum"])).min(1).max(5).default(["fastest","halfHour","hour","economy"]).describe('Which fee tiers to show, in order. "fastest" = next block, "halfHour"/"hour" = within ~30/60 min, "economy"/"minimum" = cheapest relayable.')})},Pb={name:"btc-mempool",label:"BTC Mempool",category:"bitcoin",iconUrl:w("btc-mempool"),layout:{w:5,h:3,minW:3,minH:2},description:"Bitcoin mempool congestion at a glance — unconfirmed transaction count, total pending vsize, and a row of projected ('template') blocks the network will likely mine next, each labelled with its median fee rate (sat/vB) and tx count. Live mempool data from mempool.space, keyless.",capabilities:["btc-mempool"],source:C.mempool,schema:b({projectedBlocks:_().int().min(1).max(8).default(5).describe("How many projected (yet-to-be-mined) blocks to show, next-to-mine first.")})},Db={name:"btc-blocks",label:"BTC Blocks",category:"bitcoin",iconUrl:w("btc-blocks"),layout:{w:5,h:4,minW:3,minH:3},description:"Feed of the most recently mined Bitcoin blocks — each row shows the height, how long ago it was mined, transaction count, the mining pool that found it, total fees (BTC), and size. Live data from mempool.space, keyless; newest first.",capabilities:["btc-blocks"],source:C.mempool,schema:b({count:_().int().min(3).max(15).default(8).describe("How many recent blocks to list (newest first).")})},Mb={name:"btc-hashrate",label:"BTC Hashrate",category:"bitcoin",iconUrl:w("btc-hashrate"),layout:{w:6,h:3,minW:3,minH:2},description:"Bitcoin network hashrate over time as a line chart, with the current hashrate (EH/s) and difficulty as headline figures. Shows the long-run security trend of the network. Data from mempool.space (daily granularity), keyless.",capabilities:["btc-hashrate"],source:C.mempool,schema:b({window:I(["1y","2y","3y"]).default("1y").describe("History window for the hashrate line.")})},Rb={name:"btc-difficulty",label:"BTC Difficulty",category:"bitcoin",iconUrl:w("btc-difficulty"),layout:{w:4,h:3,minW:3,minH:2},description:"Countdown to the next Bitcoin difficulty adjustment — a progress bar through the current 2016-block epoch, the estimated change (+ = mining gets harder), blocks remaining, and the estimated retarget date. Also shows the previous adjustment. Data from mempool.space, keyless.",capabilities:["btc-difficulty"],source:C.mempool,schema:b({showPrevious:Ye().default(!0).describe("Also show the percentage change applied at the previous retarget.")})},Ob={name:"mining-pools",label:"Mining Pools",category:"bitcoin",iconUrl:w("mining-pools"),layout:{w:6,h:4,minW:3,minH:3},description:"Treemap of Bitcoin mining-pool dominance over a window — each tile is a pool sized by the share of blocks it mined, so you can see how concentrated hashpower is right now (Foundry, AntPool, ViaBTC…). Data from mempool.space, keyless.",capabilities:["mining-pools"],source:C.mempool,schema:b({window:I(["24h","3d","1w","1m"]).default("1w").describe("Window over which to measure each pool's block share."),topN:_().int().min(3).max(25).default(12).describe("How many of the largest pools to show; the rest fold into 'Other'.")})},Lb={name:"lightning-stats",label:"Lightning Network",category:"bitcoin",iconUrl:w("lightning-stats"),layout:{w:4,h:3,minW:3,minH:2},description:"Bitcoin Lightning Network snapshot — public node count, channel count, and total network capacity (BTC), with a day-over-day delta and the Tor/clearnet node split. Data from mempool.space, keyless; updates roughly daily.",capabilities:["lightning-stats"],source:C.mempool,schema:b({showSplit:Ye().default(!0).describe("Show the Tor vs clearnet node split under the headline stats.")})},Fb={name:"options-put-call",label:"Put / Call Ratio",category:"derivatives",iconUrl:w("options-put-call"),layout:{w:4,h:3,minW:3,minH:2},description:"Deribit options put/call ratio for BTC or ETH — the headline ratio (by open interest or 24h volume), a call-vs-put open-interest split bar, and the open-interest-weighted average implied volatility. A ratio above 1 means puts outweigh calls (defensive positioning). Keyless Deribit market data.",capabilities:["options-summary"],source:C.deribit,schema:b({currency:I(["BTC","ETH"]).default("BTC").describe("Which Deribit options book to summarise — BTC or ETH (the only deeply liquid books)."),basis:I(["oi","volume"]).default("oi").describe('Headline put/call ratio basis: "oi" = by open interest (positioning), "volume" = by 24h traded volume (flow). The other is shown smaller.')})},Ib={name:"options-iv",label:"Implied Volatility",category:"derivatives",iconUrl:w("options-iv"),layout:{w:6,h:3,minW:3,minH:2},description:"Deribit DVOL implied-volatility index for BTC or ETH over time — the crypto equivalent of the VIX, as a line chart with the current reading and its change over the window. Rising DVOL = the market is pricing bigger expected swings. Keyless Deribit market data.",capabilities:["volatility-index"],source:C.deribit,schema:b({currency:I(["BTC","ETH"]).default("BTC").describe("Which DVOL volatility index to plot — BTC or ETH."),lookback:I(["7D","1M","3M"]).default("1M").describe("History window for the volatility-index line.")})},Nb={name:"options-oi-strike",label:"OI by Strike",category:"derivatives",iconUrl:w("options-oi-strike"),layout:{w:6,h:4,minW:4,minH:3},description:"Open interest by strike for the nearest Deribit options expiry (BTC or ETH) — a grouped histogram of call vs put open interest across strikes, with the current spot marked. Surfaces the strike 'walls' where positioning is concentrated. Keyless Deribit market data.",capabilities:["options-summary"],source:C.deribit,schema:b({currency:I(["BTC","ETH"]).default("BTC").describe("Which Deribit options book — BTC or ETH."),strikes:_().int().min(6).max(30).default(14).describe("How many strikes nearest the current spot to show (centered on the underlying price).")})},Hb={name:"coin-movers",label:"Coin Movers",category:"markets",iconUrl:w("coin-movers"),layout:{w:5,h:4,minW:3,minH:3},description:"Broad-market crypto gainers and losers across the top ~300 coins by market cap, over a selectable window (1h / 24h / 7d / 30d) — the biggest movers side by side with price and % change. Unlike a top-coins heatmap, this surfaces mid- and small-caps that ripped or dumped, not just the megacaps. Keyless data from Coinpaprika. Crypto only.",capabilities:["coin-movers"],source:C.coinpaprika,schema:b({window:I(["1h","24h","7d","30d"]).default("24h").describe("Which price-change window ranks the movers: 1h (intraday momentum), 24h (daily), 7d (weekly), 30d (monthly)."),count:_().int().min(3).max(15).default(6).describe("How many gainers and how many losers to list (each side)."),minRank:_().int().min(20).max(300).default(150).describe("Only consider coins ranked at or above this market-cap rank — a liquidity floor that keeps illiquid micro-cap dust (which posts absurd % moves on no volume) out of the list. Lower = stricter (megacaps only); higher = includes more small-caps.")})},Ub={name:"mvrv",label:"MVRV Ratio",category:"onchain",iconUrl:w("mvrv"),layout:{w:3,h:3,minW:2,minH:2},description:"Bitcoin MVRV ratio — market cap ÷ realized cap. Above ~3 historically marks cycle tops (overvalued); below ~1 marks deep value near bottoms. Shows the current ratio, its valuation zone, the MVRV Z-score, and a history sparkline. Keyless on-chain data from Coin Metrics.",capabilities:["onchain-valuation"],source:C.coinMetrics,schema:b({window:I(["1Y","2Y","4Y","all"]).default("all").describe("How much history the sparkline shows.")})},Bb={name:"nupl",label:"NUPL",category:"onchain",iconUrl:w("nupl"),layout:{w:3,h:3,minW:2,minH:2},description:"Net Unrealized Profit/Loss — the share of Bitcoin's market cap held in unrealized profit. Maps to cycle sentiment phases: Capitulation (<0), Hope/Fear (0–25%), Optimism (25–50%), Belief (50–75%), Euphoria/Greed (>75%). Derived from MVRV; keyless Coin Metrics data.",capabilities:["onchain-valuation"],source:C.coinMetrics,schema:b({window:I(["1Y","2Y","4Y","all"]).default("all").describe("How much history the sparkline shows.")})},jb={name:"sopr",label:"SOPR",category:"onchain",iconUrl:w("sopr"),layout:{w:3,h:3,minW:2,minH:2},description:"Spent Output Profit Ratio — whether coins moving on-chain are, on average, being sold in profit (>1) or loss (<1). Sustained dips below 1 mark capitulation; resets to ~1 in bull markets are healthy. Keyless full-history data from bitcoin-data.com (polled once daily).",capabilities:["onchain-cycle-extras"],source:C.bitcoinData,schema:b({window:I(["90D","180D","1Y"]).default("1Y").describe("How much history the sparkline shows.")})},Vb={name:"puell-multiple",label:"Puell Multiple",category:"onchain",iconUrl:w("puell-multiple"),layout:{w:3,h:3,minW:2,minH:2},description:"Puell Multiple — daily miner issuance in USD ÷ its 365-day average. High values (>4) mark cycle tops where miner revenue is stretched; low values (≤0.5) mark miner capitulation near bottoms. Keyless data from bitcoin-data.com (polled once daily).",capabilities:["onchain-cycle-extras"],source:C.bitcoinData,schema:b({window:I(["90D","180D","1Y"]).default("1Y").describe("How much history the sparkline shows.")})},Wb={name:"mayer-multiple",label:"Mayer Multiple",category:"onchain",iconUrl:w("mayer-multiple"),layout:{w:3,h:3,minW:2,minH:2},description:"Mayer Multiple — BTC price ÷ its 200-day moving average. Above ~2.4 has historically been overheated; below ~0.8 marks value zones. Computed in-browser from a keyless long daily price series (Coin Metrics).",capabilities:["price-history-daily"],source:C.coinMetrics,schema:b({window:I(["1Y","2Y","4Y","all"]).default("2Y").describe("How much history the sparkline shows.")})},Gb={name:"pi-cycle",label:"Pi Cycle Top",category:"onchain",iconUrl:w("pi-cycle"),layout:{w:3,h:3,minW:2,minH:2},description:"Pi Cycle Top indicator — the ratio of the 111-day MA to 2× the 350-day MA. When it crosses 1 (the 111DMA overtakes 2×350DMA) it has historically pinpointed cycle tops within days. Computed in-browser from a keyless long daily price series (Coin Metrics).",capabilities:["price-history-daily"],source:C.coinMetrics,schema:b({window:I(["1Y","2Y","4Y","all"]).default("2Y").describe("How much history the sparkline shows.")})},Kb={name:"ma-multiplier",label:"MA Multiplier",category:"onchain",iconUrl:w("ma-multiplier"),layout:{w:3,h:3,minW:2,minH:2},description:"Long moving-average multiplier — BTC price ÷ its multi-year moving average (2-year or 4-year). The 2Y band flags a buy zone below ÷1.5 and sell tiers at ×2–×5; the 4Y multiple marks tops above ~3.5×. Computed in-browser from a keyless long daily price series (Coin Metrics).",capabilities:["price-history-daily"],source:C.coinMetrics,schema:b({years:I(["2","4"]).default("2").describe("Moving-average window in years."),window:I(["2Y","4Y","all"]).default("all").describe("How much history the sparkline shows.")})},qb={name:"rsi-momentum",label:"RSI Momentum",category:"markets",iconUrl:w("rsi-momentum"),layout:{w:3,h:3,minW:2,minH:2},description:"Wilder RSI on BTC daily closes with a 55/45 momentum regime: above 55 = risk-on, below 45 = risk-off, in between = neutral. Also flags classic overbought (≥80) / oversold (≤30) extremes. Computed in-browser from a keyless long daily price series (Coin Metrics).",capabilities:["price-history-daily"],source:C.coinMetrics,schema:b({period:_().int().min(2).max(50).default(14).describe("RSI lookback period in days."),window:I(["90D","180D","1Y","2Y"]).default("180D").describe("How much history the sparkline shows.")})},Yb={name:"volume-profile",label:"Volume Profile",category:"markets",iconUrl:w("volume-profile"),layout:{w:4,h:4,minW:3,minH:3},description:"Volume-by-price histogram over a lookback window — the Point of Control (POC, highest-volume price) and the 70% Value Area (VAH/VAL) that frame support/resistance. Computed in-browser from OHLCV candles. Pass any tradable symbol (crypto or a HIP-3 equity like 'xyz:TSLA').",capabilities:["ohlcv"],source:C.hyperliquid,schema:b({symbol:L().default("BTC").describe("Symbol to profile, e.g. 'BTC', 'ETH', or a HIP-3 equity 'xyz:TSLA'."),interval:I(["1h","4h","1d"]).default("1d").describe("Candle interval."),lookbackDays:_().int().min(7).max(365).default(90).describe("How many days of candles to build the profile from."),bins:_().int().min(8).max(48).default(24).describe("Number of price buckets in the histogram.")})},Jb={name:"dxy",label:"Dollar Index (DXY)",category:"macro",iconUrl:w("dxy"),layout:{w:3,h:3,minW:2,minH:2},description:"US Dollar Index (DXY) — the dollar's strength vs a basket of six major currencies. A rising DXY is a macro headwind for risk assets (incl. BTC); a falling DXY a tailwind. Computed as the ICE-weighted geometric mean of keyless ECB reference rates (daily granularity).",capabilities:["dollar-index"],source:C.frankfurter,schema:b({})},Xb={name:"cycle-signals",label:"Cycle Signals",category:"onchain",iconUrl:w("cycle-signals"),layout:{w:4,h:5,minW:3,minH:3},description:"A cycle top- or bottom-signal checklist — MVRV, MVRV Z-score, NUPL, Mayer Multiple, Puell, RSI, and Pi Cycle each checked against its historical extreme, with a live 'X of N firing' tally. A capstone that aggregates the on-chain and cycle metrics into one 'how late in the cycle are we' read. Keyless (Coin Metrics + bitcoin-data.com).",capabilities:["onchain-valuation","onchain-cycle-extras","price-history-daily"],source:[C.coinMetrics,C.bitcoinData],schema:b({mode:I(["peak","bottom"]).default("peak").describe("Which checklist to show: cycle-top ('peak') or cycle-bottom ('bottom') signals.")})},Zb={name:"stablecoin-supply",label:"Stablecoin Supply",category:"crypto",iconUrl:w("stablecoin-supply"),layout:{w:3,h:3,minW:2,minH:2},description:"Total USD-stablecoin circulating supply — a market-wide liquidity gauge. Rising supply = fresh capital entering crypto (risk-on dry powder); contraction = risk-off. Shows the total, 1d/7d/30d change, and the largest chains. Keyless (DeFiLlama).",capabilities:["stablecoins"],source:C.defillama,schema:b({})},$b={name:"yield-scanner",label:"Yield Scanner",category:"crypto",iconUrl:w("yield-scanner"),layout:{w:5,h:4,minW:3,minH:3},description:"Top DeFi yield pools ranked by APY, across every chain and protocol — the 'where's the yield' board. Filter to stablecoin pools or a TVL floor. Shows APY (base + reward), TVL, chain, and IL risk. Keyless (DeFiLlama yields).",capabilities:["yields"],source:C.defillama,schema:b({limit:_().int().min(3).max(20).default(8).describe("How many pools to list."),stablecoinOnly:Ye().default(!1).describe("Only show stablecoin pools (lower impermanent-loss risk)."),minTvlUsd:_().min(0).default(1e6).describe("Minimum pool TVL in USD — a liquidity floor to hide dust.")})},Qb={name:"defi-revenue",label:"DeFi Fees & Revenue",category:"crypto",iconUrl:w("defi-revenue"),layout:{w:3,h:3,minW:2,minH:2},description:"Aggregate DeFi protocol fees across all of crypto — trailing-24h total with a daily trend. A read on real on-chain economic activity. Keyless (DeFiLlama).",capabilities:["fees-overview"],source:C.defillama,schema:b({})},ey={name:"funding-comparison",label:"Cross-Venue Funding",category:"derivatives",iconUrl:w("funding-comparison"),layout:{w:5,h:4,minW:3,minH:3},description:"Predicted perpetual funding rates compared across venues (Hyperliquid vs Binance vs Bybit), annualized, per coin — ranked by the cross-venue spread. A large spread flags a funding-arbitrage or crowded-positioning signal. Keyless (Hyperliquid predicted fundings).",capabilities:["funding-comparison"],source:C.hyperliquid,schema:b({limit:_().int().min(3).max(20).default(8).describe("How many coins (by funding spread) to show.")})},ty={name:"eth-supply",label:"ETH Ultrasound",category:"crypto",iconUrl:w("eth-supply"),layout:{w:4,h:3,minW:2,minH:2},description:"Ethereum supply economics — EIP-1559 burn vs PoS issuance and the resulting net annual supply growth. Negative growth = deflationary ('ultrasound money'). Shows the net rate, burn/issuance, and vs the counterfactual PoW issuance. Keyless (ultrasound.money).",capabilities:["eth-supply"],source:C.ultrasound,schema:b({})},ry={name:"eth-staking",label:"ETH Staking APR",category:"crypto",iconUrl:w("eth-staking"),layout:{w:3,h:3,minW:2,minH:2},description:"Ethereum staking yield — total validator APR broken into consensus issuance, MEV, and priority tips. The 'risk-free' ETH rate. Keyless (ultrasound.money).",capabilities:["eth-supply"],source:C.ultrasound,schema:b({})},ay={name:"prediction-markets",label:"Prediction Markets",category:"sentiment",iconUrl:w("prediction-markets"),layout:{w:4,h:4,minW:3,minH:3},description:"Live Polymarket odds — the highest-volume open prediction markets with their market-implied probabilities (macro, rates, crypto, politics). A real-money sentiment gauge. Keyless (Polymarket Gamma API).",capabilities:["prediction-markets"],source:C.polymarket,schema:b({limit:_().int().min(3).max(20).default(6).describe("How many markets (by volume) to show.")})},oy={name:"etf-flows",label:"Spot ETF Flows",category:"crypto",iconUrl:w("etf-flows"),layout:{w:4,h:4,minW:3,minH:3},description:"Spot Bitcoin or Ethereum ETF daily net flows — per-issuer (IBIT, FBTC, GBTC, …) plus the total, with a recent trend. The biggest institutional-demand signal. Keyless (SoSoValue); best-effort, may show empty if the source is unavailable.",capabilities:["etf-flows"],source:C.sosovalue,schema:b({asset:I(["btc","eth"]).default("btc").describe("Which spot-ETF complex to show."),limit:_().int().min(3).max(15).default(8).describe("How many issuers to list.")})},ny={name:"trending-coins",label:"Trending Coins",category:"crypto",iconUrl:w("trending-coins"),layout:{w:3,h:4,minW:2,minH:3},description:"The coins with the most search interest right now on CoinGecko — a retail-attention gauge. Shows rank, price, and 24h change. Keyless (CoinGecko).",capabilities:["trending-coins"],source:C.coingecko,schema:b({limit:_().int().min(3).max(15).default(7).describe("How many trending coins to show.")})},iy={name:"sector-performance",label:"Sector Performance",category:"crypto",iconUrl:w("sector-performance"),layout:{w:4,h:4,minW:3,minH:3},description:"Crypto sector rotation — market categories (L1s, DeFi, AI, memes, RWA, …) ranked by 24h market-cap change. Shows where capital is rotating. Keyless (CoinGecko categories).",capabilities:["sector-performance"],source:C.coingecko,schema:b({limit:_().int().min(4).max(30).default(10).describe("How many sectors to show.")})},sy={name:"macro-calendar",label:"Macro Calendar",category:"macro",iconUrl:w("macro-calendar"),layout:{w:4,h:4,minW:3,minH:2},description:"Countdown to upcoming scheduled macro events — defaults to the 2026 FOMC rate decisions, fully editable. No data feed; the dates are known in advance.",capabilities:[],schema:b({limit:_().int().min(1).max(12).default(5).describe("How many upcoming events to show."),events:Ee(b({date:L().describe("Event date, ISO YYYY-MM-DD."),label:L().describe("Event name, e.g. 'FOMC decision'.")})).default([{date:"2026-07-29",label:"FOMC decision"},{date:"2026-09-16",label:"FOMC decision"},{date:"2026-10-28",label:"FOMC decision"},{date:"2026-12-09",label:"FOMC decision"},{date:"2027-01-27",label:"FOMC decision"}]).describe("Scheduled events (date + label). Defaults to the 2026 FOMC meetings; edit to add CPI/NFP/earnings dates.")})},cy={name:"stablecoin-chains",label:"Stablecoin Chains",category:"crypto",iconUrl:w("stablecoin-chains"),layout:{w:5,h:4,minW:4,minH:3},description:"Where stablecoin liquidity sits — a treemap of the largest chains by stablecoin circulating supply. Complements the Stablecoin Supply total with the cross-chain distribution. Keyless (DeFiLlama).",capabilities:["stablecoins"],source:C.defillama,schema:b({limit:_().int().min(4).max(16).default(12).describe("How many chains to show in the treemap.")})},ly={name:"sector-treemap",label:"Sector Treemap",category:"crypto",iconUrl:w("sector-treemap"),layout:{w:6,h:4,minW:4,minH:3},description:"Crypto sector rotation as a treemap — each category sized by market cap and colored by 24h change (green up / red down). The at-a-glance view of where capital is flowing. Keyless (CoinGecko categories).",capabilities:["sector-performance"],source:C.coingecko,schema:b({limit:_().int().min(6).max(30).default(16).describe("How many sectors to show.")})},uy={name:"etf-flows-chart",label:"ETF Flows Chart",category:"crypto",iconUrl:w("etf-flows-chart"),layout:{w:6,h:3,minW:3,minH:3},description:"Spot BTC or ETH ETF daily net flows over time — the inflow/outflow trend as a line, complementing the per-issuer snapshot. Keyless (SoSoValue); best-effort, may be empty if the source is unavailable.",capabilities:["etf-flows"],source:C.sosovalue,schema:b({asset:I(["btc","eth"]).default("btc").describe("Which spot-ETF complex to chart."),lookback:I(["1M","3M","6M"]).default("3M").describe("History window for the flow chart.")})},dy={name:"realized-price",label:"Realized Price",category:"onchain",iconUrl:w("realized-price"),layout:{w:6,h:3,minW:4,minH:3},description:"Bitcoin market price vs realized price — the on-chain cost basis of all coins. Market above realized = aggregate profit; crossing below realized has marked cycle bottoms. Keyless (Coin Metrics).",capabilities:["onchain-valuation"],source:C.coinMetrics,schema:b({window:I(["1Y","2Y","4Y","all"]).default("2Y").describe("How much history the chart shows.")})},hy={name:"reserve-risk",label:"Reserve Risk",category:"onchain",iconUrl:w("reserve-risk"),layout:{w:3,h:3,minW:2,minH:2},description:"Reserve Risk — long-term-holder conviction relative to price. Low values = strong conviction at a low price (attractive risk/reward, cycle-bottom territory); high values = conviction spent into a high price. Keyless (bitcoin-data.com).",capabilities:["onchain-cycle-extras"],source:C.bitcoinData,schema:b({window:I(["90D","180D","1Y"]).default("1Y").describe("How much history the sparkline shows.")})},fy={name:"nft-collections",label:"NFT Collections",category:"crypto",iconUrl:w("nft-collections"),layout:{w:3,h:4,minW:2,minH:3},description:"Blue-chip NFT collections ranked by 24h trading volume — floor price (USD), 24h floor change, and volume, for a hand-picked set of majors (Bored Ape, Pudgy Penguins, CryptoPunks, Azuki, …). Keyless (CoinGecko free tier). A quick read on where the top NFT market is trading.",capabilities:["nft-market"],source:C.coingecko,schema:b({topN:_().int().min(4).max(10).default(8).describe("How many collections to show (up to 10 curated majors).")})},my={name:"dex-hot-pools",label:"Hot DEX Pools",category:"onchain",iconUrl:w("dex-hot-pools"),layout:{w:3,h:4,minW:2,minH:3},description:"Trending DEX liquidity pools on a chain, ranked by 24h volume — each pool's pair, base-token price, 24h price change, and 24h volume. Surfaces what's hot on-chain (new listings, momentum pairs) across Ethereum, Solana, Base and more. Keyless (GeckoTerminal free tier).",capabilities:["dex-pools"],source:C.geckoterminal,schema:b({network:I(["eth","solana","base","arbitrum","bsc","polygon_pos"]).default("eth").describe("Which chain's trending pools to show."),count:_().int().min(5).max(15).default(10).describe("How many trending pools to list (up to 15).")})},py={name:"chain-activity",label:"Chain Activity",category:"onchain",iconUrl:w("chain-activity"),layout:{w:3,h:4,minW:2,minH:3},description:"Cross-chain network activity for major layer-1s (Bitcoin, Ethereum, Litecoin, …), ranked by 24h transaction count — with blocks mined and mempool backlog per chain. A side-by-side pulse of which chains are busiest right now. Keyless (Blockchair).",capabilities:["chain-activity"],source:C.blockchair,schema:b({})},gy={name:"nft-treemap",label:"NFT Treemap",category:"crypto",iconUrl:w("nft-treemap"),layout:{w:4,h:4,minW:3,minH:3},description:"Treemap of blue-chip NFT collections sized by market capitalisation, tiles colored green/red by 24h floor-price change. A heat-map of the top NFT market at a glance. Keyless (CoinGecko free tier).",capabilities:["nft-market"],source:C.coingecko,schema:b({topN:_().int().min(4).max(10).default(8).describe("How many collections to show (up to 10 curated majors).")})},by={name:"dex-pool-treemap",label:"DEX Pool Treemap",category:"onchain",iconUrl:w("dex-pool-treemap"),layout:{w:4,h:4,minW:3,minH:3},description:"Treemap of trending DEX pools on a chain sized by 24h trading volume, tiles colored green/red by 24h price change. Shows at a glance which pairs are pulling the most on-chain volume. Keyless (GeckoTerminal free tier).",capabilities:["dex-pools"],source:C.geckoterminal,schema:b({network:I(["eth","solana","base","arbitrum","bsc","polygon_pos"]).default("eth").describe("Which chain's trending pools to show."),count:_().int().min(5).max(15).default(12).describe("How many trending pools to include (up to 15).")})},yy={name:"sector-bars",label:"Sector Bars",category:"crypto",iconUrl:w("sector-bars"),layout:{w:4,h:4,minW:3,minH:3},description:"Crypto sector rotation as a diverging bar chart — market categories (L1s, DeFi, AI, memes, RWA, …) ranked by 24h market-cap change, gains right in green, losses left in red. The chart-first sibling of the Sector Performance list. Keyless (CoinGecko categories).",capabilities:["sector-performance"],source:C.coingecko,schema:b({limit:_().int().min(4).max(20).default(10).describe("How many sectors (by absolute 24h change) to chart.")})},vy={name:"funding-bars",label:"Funding by Venue",category:"derivatives",iconUrl:w("funding-bars"),layout:{w:4,h:3,minW:3,minH:2},description:"One coin's predicted perpetual funding rate compared across venues (Hyperliquid vs Binance vs Bybit) as a diverging bar chart of annualized rates — positive funding (longs pay) in green, negative in red. Makes a funding-arb spread visible at a glance. Keyless (Hyperliquid predicted fundings).",capabilities:["funding-comparison"],source:C.hyperliquid,schema:b({coin:L().min(1).default("BTC").describe('Coin to compare across venues, e.g. "BTC", "ETH", "SOL".')})},wy={name:"etf-flow-bars",label:"ETF Flow Bars",category:"crypto",iconUrl:w("etf-flow-bars"),layout:{w:6,h:3,minW:3,minH:3},description:"Spot BTC or ETH ETF daily net flows as diverging bars — one bar per day, inflows up in green, outflows down in red. The classic ETF-flow chart; complements the cumulative line and per-issuer snapshot. Keyless (SoSoValue); best-effort, may be empty if the source is unavailable.",capabilities:["etf-flows"],source:C.sosovalue,schema:b({asset:I(["btc","eth"]).default("btc").describe("Which spot-ETF complex to chart."),lookback:I(["1M","3M","6M"]).default("1M").describe("History window for the daily-flow bars.")})},ky={name:"chain-activity-bars",label:"Chain Activity Bars",category:"onchain",iconUrl:w("chain-activity-bars"),layout:{w:4,h:4,minW:3,minH:3},description:"24h confirmed transactions per major L1 (Bitcoin, Ethereum, Litecoin, Dogecoin, …) as a horizontal bar chart, ranked busiest-first — cross-chain usage compared at a glance. The chart-first sibling of the Chain Activity table. Keyless (Blockchair).",capabilities:["chain-activity"],source:C.blockchair,schema:b({limit:_().int().min(3).max(12).default(8).describe("How many chains (by 24h transactions) to chart.")})},_y={name:"market-scatter",label:"Market Scatter",category:"crypto",iconUrl:w("market-scatter"),layout:{w:6,h:4,minW:4,minH:3},description:"Top coins as a bubble scatter — 24h price change on the x-axis, market cap on a log y-axis, bubble size by market cap. Shows in one view whether large caps or small caps are moving, and who's the outlier. Keyless (CoinGecko top-50 by market cap).",capabilities:["coin-markets"],source:C.coingecko,schema:b({limit:_().int().min(10).max(50).default(30).describe("How many top coins (by market cap) to plot.")})},xy={name:"market-bubbles",label:"Market Bubbles",category:"crypto",iconUrl:w("market-bubbles"),layout:{w:6,h:5,minW:4,minH:3},description:"Top coins as a floating bubble cloud — one logo bubble per coin, area by market cap, ring tinted green/red by 24h change. A playful at-a-glance map of where the market's weight sits; bubbles are draggable. Keyless (CoinGecko top-50 by market cap).",capabilities:["coin-markets"],source:C.coingecko,schema:b({limit:_().int().min(5).max(50).default(25).describe("How many top coins (by market cap) to show."),sizeBy:I(["market-cap","change"]).default("market-cap").describe("Bubble sizing — 'market-cap' weights by market cap, 'change' weights by absolute 24h % move (today's action, not size).")})},Ya=(e,t,r)=>_().int().min(3).max(e).default(t).describe(`How many of the largest ${r} to show.`),Cy={name:"tvl-bubbles",label:"TVL Bubbles",category:"crypto",iconUrl:w("tvl-bubbles"),layout:{w:6,h:4,minW:3,minH:3},description:"Blockchain ecosystems as a floating bubble cloud, area by total value locked (TVL) — the bubble-chart sibling of the TVL treemap. Data from DeFiLlama. Draggable, playful answer to 'where does on-chain capital live'.",capabilities:["tvl"],source:C.defillama,schema:b({topN:Ya(30,14,"chains")})},Ay={name:"protocol-tvl-bubbles",label:"Protocol TVL Bubbles",category:"crypto",iconUrl:w("protocol-tvl-bubbles"),layout:{w:6,h:4,minW:3,minH:3},description:"DeFi protocols as a bubble cloud — area by total value locked (TVL), ring tinted green/red by 1-day change. Data from DeFiLlama. Unlike tvl-bubbles (chains), this ranks individual protocols (Lido, Aave, EigenLayer…).",capabilities:["protocol-tvl"],source:C.defillama,schema:b({topN:Ya(30,14,"protocols by TVL")})},Sy={name:"dex-volume-bubbles",label:"DEX Volume Bubbles",category:"crypto",iconUrl:w("dex-volume-bubbles"),layout:{w:6,h:4,minW:3,minH:3},description:"Decentralized exchanges as a bubble cloud — area by trailing-24h trading volume, ring tinted green/red by 1-day change. Data from DeFiLlama. Where on-chain trading flow is concentrated right now.",capabilities:["dex-volume"],source:C.defillama,schema:b({topN:Ya(30,14,"DEX protocols by 24h volume")})},Ty={name:"protocol-fees-bubbles",label:"Protocol Fees Bubbles",category:"crypto",iconUrl:w("protocol-fees-bubbles"),layout:{w:6,h:4,minW:3,minH:3},description:"Protocols as a bubble cloud — area by fees generated in the last 24h, ring tinted green/red by 1-day change. Data from DeFiLlama. Where users are actually paying for blockspace and services.",capabilities:["protocol-fees"],source:C.defillama,schema:b({topN:Ya(30,14,"fee-earning protocols")})},Ey={name:"sector-bubbles",label:"Sector Bubbles",category:"crypto",iconUrl:w("sector-bubbles"),layout:{w:6,h:4,minW:4,minH:3},description:"Crypto sector rotation as a bubble cloud — each category's area by market cap, ring tinted green/red by 24h change. The bubble-chart sibling of the sector treemap. Keyless (CoinGecko categories).",capabilities:["sector-performance"],source:C.coingecko,schema:b({limit:_().int().min(6).max(30).default(16).describe("How many sectors to show.")})},zy={name:"nft-bubbles",label:"NFT Bubbles",category:"crypto",iconUrl:w("nft-bubbles"),layout:{w:4,h:4,minW:3,minH:3},description:"Blue-chip NFT collections as a bubble cloud — area by market capitalisation, ring tinted green/red by 24h floor-price change. Keyless (CoinGecko free tier).",capabilities:["nft-market"],source:C.coingecko,schema:b({topN:_().int().min(4).max(10).default(8).describe("How many collections to show (up to 10 curated majors).")})},Py={name:"dex-pool-bubbles",label:"DEX Pool Bubbles",category:"onchain",iconUrl:w("dex-pool-bubbles"),layout:{w:4,h:4,minW:3,minH:3},description:"Trending DEX pools on a chain as a bubble cloud — area by 24h trading volume, ring tinted green/red by 24h price change. Which pairs are pulling the most on-chain volume. Keyless (GeckoTerminal free tier).",capabilities:["dex-pools"],source:C.geckoterminal,schema:b({network:I(["eth","solana","base","arbitrum","bsc","polygon_pos"]).default("eth").describe("Which chain's trending pools to show."),count:_().int().min(5).max(15).default(12).describe("How many trending pools to include (up to 15).")})},Dy={name:"movers-bubbles",label:"Movers Bubbles",category:"crypto",iconUrl:w("movers-bubbles"),layout:{w:6,h:5,minW:4,minH:3},description:"The broad market's biggest movers as a bubble cloud — logo bubbles sized by the magnitude of the move over a chosen window, green for gainers, red for losers. Today's action at a glance, regardless of coin size. Keyless (CoinPaprika, ~2000 coins).",capabilities:["coin-movers"],source:C.coinpaprika,schema:b({window:I(["1h","24h","7d","30d"]).default("24h").describe("Price-change window the movers are ranked by."),limit:_().int().min(6).max(30).default(18).describe("Total bubbles — split evenly into top gainers and losers.")})},My={name:"sentiment-gauge",label:"Sentiment Gauge",category:"crypto",iconUrl:w("sentiment-gauge"),layout:{w:3,h:3,minW:2,minH:2},description:"Crypto fear & greed index as a radial gauge — the arc fills from extreme fear (0) to extreme greed (100) in the mood color, with the reading and classification in the center. A dial-style alternative to the Fear & Greed sparkline card. Keyless (alternative.me).",capabilities:["sentiment"],source:C.alternativeMe,schema:b({})},Ry={name:"movers-bars",label:"Movers Bars",category:"crypto",iconUrl:w("movers-bars"),layout:{w:4,h:5,minW:3,minH:4},description:"Top gainers and losers across the broad crypto market as a diverging bar chart — the biggest movers over a chosen window, gains right in green, losses left in red, ranked by size. The chart-first sibling of the Coin Movers list. Keyless (CoinPaprika, ~2000 coins).",capabilities:["coin-movers"],source:C.coinpaprika,schema:b({window:I(["1h","24h","7d","30d"]).default("24h").describe("Price-change window the movers are ranked by."),limit:_().int().min(6).max(20).default(12).describe("Total bars — split evenly into top gainers and top losers.")})},Oy={name:"tvl-bars",label:"TVL by Chain Bars",category:"crypto",iconUrl:w("tvl-bars"),layout:{w:4,h:4,minW:3,minH:3},description:"Total value locked (TVL) per blockchain as a horizontal bar chart, ranked largest-first — DeFi capital compared across chains at a glance. The chart-first sibling of the TVL treemap. Keyless (DeFiLlama).",capabilities:["tvl"],source:C.defillama,schema:b({limit:_().int().min(4).max(20).default(10).describe("How many chains (by TVL) to chart.")})},Ly={name:"yield-scatter",label:"Yield Scatter",category:"crypto",iconUrl:w("yield-scatter"),layout:{w:6,h:4,minW:4,minH:3},description:"DeFi yield pools as a risk/reward bubble scatter — total APY on the x-axis, pool TVL on a log y-axis, bubble size by TVL. Surfaces the deep, high-yield pools (top-right) versus thin outliers in one view. The chart-first sibling of the Yield Scanner list. Keyless (DeFiLlama).",capabilities:["yields"],source:C.defillama,schema:b({limit:_().int().min(10).max(60).default(40).describe("How many pools (by TVL) to plot."),maxApy:_().min(10).max(1e3).default(100).describe("Hide pools whose APY exceeds this, so extreme incentive outliers don't crush the x-axis."),stablecoinOnly:Ye().default(!1).describe("Restrict to stablecoin pools only.")})},Fy={name:"nft-scatter",label:"NFT Scatter",category:"crypto",iconUrl:w("nft-scatter"),layout:{w:6,h:4,minW:4,minH:3},description:"Blue-chip NFT collections as a bubble scatter — 24h floor change on the x-axis, 24h trading volume on a log y-axis, bubble size by market cap. Shows which collections are moving on real volume versus thin floors. The chart-first sibling of the NFT Collections list. Keyless (CoinGecko, curated slugs).",capabilities:["nft-market"],source:C.coingecko,schema:b({limit:_().int().min(5).max(15).default(12).describe("How many collections (by market cap) to plot.")})},Iy={name:"dominance-gauge",label:"Dominance Gauge",category:"crypto",iconUrl:w("dominance-gauge"),layout:{w:3,h:3,minW:2,minH:2},description:"One asset's share of total crypto market cap as a radial gauge — the arc fills from 0% to 100% dominance with the reading in the center. A dial-style alternative to the segmented Bitcoin Dominance bar. Keyless (CoinGecko global).",capabilities:["global-market"],source:C.coingecko,schema:b({coin:I(["btc","eth"]).default("btc").describe("Which asset's market-cap dominance to gauge.")})},Ny={name:"put-call-gauge",label:"Put/Call Gauge",category:"derivatives",iconUrl:w("put-call-gauge"),layout:{w:3,h:3,minW:2,minH:2},description:"Options put/call ratio as a radial gauge — the arc reads from 0 (all calls, bullish) through 1 (balanced) toward 2 (put-heavy, defensive), colored green below 1 and red above. A dial-style alternative to the Put/Call Ratio card. Keyless (Deribit).",capabilities:["options-summary"],source:C.deribit,schema:b({currency:I(["BTC","ETH"]).default("BTC").describe("Options underlying to read the ratio for."),basis:I(["oi","volume"]).default("oi").describe("Ratio basis — open interest or 24h contract volume.")})},Hy={name:"custom-data",label:"Custom Data",category:"tools",iconUrl:w("custom-data"),layout:{w:4,h:3,minW:2,minH:2},description:"The escape hatch: renders ANY keyless HTTPS JSON API as a stat, line chart, bars, or label→value table — for data no built-in frame covers (weather, sports, public stats, niche feeds). Fetches browser-direct, so the API must be CORS-open, need no key, and be public https (localhost/private hosts are refused). Point `values` at the JSON with a dot/bracket path — e.g. 'hourly.temperature_2m', 'data[0].price', 'items[*].name'. A path resolving to an array charts as a series; a scalar shows as a stat. Verify the URL and path against a real response before emitting them.",capabilities:[],schema:b({url:L().min(1).refine(e=>h0(e)===null,{message:"must be a public https:// URL (no credentials, no localhost/private hosts)"}).default("https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd").describe("The JSON endpoint, public https only. Must be CORS-open and keyless — never embed an API key or token; the spec is shareable. Include query params in the URL."),values:L().min(1).max(200).default("bitcoin.usd").describe("Dot/bracket path to the value(s) inside the response, e.g. 'hourly.temperature_2m' (array → series), 'data[0].price' (scalar → stat), 'items[*].volume' ([*] maps over an array). No expressions — keys, [indices], and [*] only."),labels:L().max(200).default("").describe("Optional path to a parallel array of labels — x-axis ticks for bars, row names for the table, e.g. 'hourly.time' or 'items[*].name'. Empty = positional indices."),display:I(["stat","line","bars","table"]).default("stat").describe("How to render: stat = big headline number (last value) with sparkline history; line = the series as a line chart; bars = labelled bar chart; table = label → value rows."),label:L().max(80).default("").describe('Caption naming the metric, e.g. "Bangkok Temp (°C)". Empty shows only the API hostname.'),unit:L().max(12).default("").describe('Unit suffix appended to numeric values, e.g. "°C", "%", "km".'),refreshMinutes:_().int().min(1).max(1440).default(15).describe("Re-fetch interval in minutes. Be polite to free APIs — 15+ unless the data genuinely moves faster.")})},Uy={name:"oi-treemap",label:"OI Treemap",category:"derivatives",iconUrl:w("oi-treemap"),layout:{w:6,h:4,minW:3,minH:3},description:"Treemap of live Hyperliquid open interest, sized by USD notional — largest markets first, the long tail rolled into a single 'Other' tile. A single-glance map of where perp capital concentrates right now. Keyless (Hyperliquid).",capabilities:["open-interest"],source:C.hyperliquid,schema:b({limit:_().int().min(3).max(30).default(12).describe("How many of the largest open-interest markets to show as individual tiles before rolling the rest into a single 'Other' tile.")})},By={name:"ohlcv-volume-bars",label:"OHLCV Volume Bars",category:"derivatives",iconUrl:w("ohlcv-volume-bars"),layout:{w:6,h:3,minW:3,minH:2},description:"Per-candle trading volume for one Hyperliquid symbol as vertical bars over time, each bar tinted green when that candle closed up and red when it closed down. Works for any HIP-3 perp (stocks, indices, commodities) and crypto. Keyless (Hyperliquid).",capabilities:["ohlcv"],source:C.hyperliquid,schema:b({symbol:L().min(1).describe('Hyperliquid symbol to chart volume for. HIP-3 cross-asset: stocks "xyz:TSLA"/"xyz:NVDA", indices "xyz:SP500", commodities "xyz:GOLD". Crypto: "BTC", "ETH".'),interval:I(["1m","5m","15m","1h","4h","1d"]).default("1h").describe("Candle interval each volume bar represents.")})},jy={name:"funding-spread-bars",label:"Funding Spread Bars",category:"derivatives",iconUrl:w("funding-spread-bars"),layout:{w:4,h:4,minW:3,minH:3},description:"Cross-venue predicted funding-rate spread per coin (max − min annualized rate across Hyperliquid/Binance/Bybit) as a ranked horizontal bar chart — the widest spreads are the clearest funding-arbitrage or crowded-positioning candidates. The bars-first sibling of Cross-Venue Funding. Keyless (Hyperliquid predicted fundings).",capabilities:["funding-comparison"],source:C.hyperliquid,schema:b({limit:_().int().min(3).max(20).default(10).describe("How many coins (by cross-venue funding spread) to chart.")})},Vy={name:"funding-venue-heatmap",label:"Funding Venue Heatmap",category:"derivatives",iconUrl:w("funding-venue-heatmap"),layout:{w:6,h:3,minW:4,minH:3},description:"Heatmap of predicted annualized funding rates — coins as rows, venues (Hyperliquid/Binance/Bybit) as columns, green positive / red negative. Spots which venue is paying up (or charging) for a given coin at a glance. Keyless (Hyperliquid predicted fundings).",capabilities:["funding-comparison"],source:C.hyperliquid,schema:b({limit:_().int().min(3).max(15).default(8).describe("How many coins (by cross-venue funding spread) to include as heatmap rows.")})},Wy={name:"funding-carry-area",label:"Funding Carry",category:"derivatives",iconUrl:w("funding-carry-area"),layout:{w:6,h:3,minW:3,minH:2},description:"Stacked area of each symbol's running cumulative funding cost or benefit over a configurable lookback — the running total a position would have paid or earned in funding, symbol by symbol. Shows whether carry has been a persistent drag or tailwind. Keyless (Hyperliquid).",capabilities:["funding-history"],source:C.hyperliquid,schema:b({symbols:Ee(L()).min(1).max(6).describe('Hyperliquid symbols to compare cumulative funding carry for, e.g. ["BTC", "ETH"]. Up to 6.'),lookback:I(["24h","7D","1M"]).default("7D").describe("History window for the cumulative funding-carry chart.")})},Gy={name:"volume-share-donut",label:"Volume Share Donut",category:"derivatives",iconUrl:w("volume-share-donut"),layout:{w:4,h:4,minW:3,minH:3},description:"Donut of 24h Hyperliquid trading volume share across the busiest symbols, top symbols as slices with the long tail rolled into 'Other'. Shows where perp trading activity concentrates right now. Keyless (Hyperliquid).",capabilities:["day-stats"],source:C.hyperliquid,schema:b({limit:_().int().min(3).max(15).default(7).describe("How many top symbols (by 24h notional volume) to show as individual slices before rolling the rest into a single 'Other' slice.")})},Ky={name:"volume-movers-scatter",label:"Volume Movers Scatter",category:"derivatives",iconUrl:w("volume-movers-scatter"),layout:{w:6,h:4,minW:4,minH:3},description:"Hyperliquid perps as a bubble scatter — 24h price change on the x-axis, 24h notional volume on a log y-axis, bubble size by volume. Shows whether the busiest markets are also the biggest movers, or diverging. Keyless (Hyperliquid).",capabilities:["day-stats"],source:C.hyperliquid,schema:b({limit:_().int().min(10).max(60).default(40).describe("How many of the busiest symbols (by 24h notional volume) to plot.")})},qy={name:"funding-leaderboard-bars",label:"Funding Leaderboard",category:"derivatives",iconUrl:w("funding-leaderboard-bars"),layout:{w:4,h:4,minW:3,minH:3},description:"Predicted hourly funding rate ranked across the whole Hyperliquid universe — crypto and HIP-3 equities together — as a diverging bar chart, largest absolute rates first. Surfaces the most expensive (or most rewarded) side to hold right now. Keyless (Hyperliquid).",capabilities:["day-stats"],source:C.hyperliquid,schema:b({limit:_().int().min(3).max(20).default(10).describe("How many symbols (by absolute funding rate) to chart.")})},Yy={name:"funding-crowding-scatter",label:"Funding Crowding Scatter",category:"derivatives",iconUrl:w("funding-crowding-scatter"),layout:{w:6,h:4,minW:4,minH:3},description:"24h price change (x) vs predicted funding rate (y) across Hyperliquid perps, bubble size by open interest — the combination of a stretched funding rate and heavy open interest flags a crowded, squeeze-prone position. Keyless (Hyperliquid).",capabilities:["day-stats","open-interest"],source:C.hyperliquid,schema:b({limit:_().int().min(10).max(60).default(40).describe("How many symbols (by open interest) to plot.")})},Jy={name:"liquidity-basis-bars",label:"Liquidity & Basis Bars",category:"derivatives",iconUrl:w("liquidity-basis-bars"),layout:{w:4,h:4,minW:3,minH:3},description:"Ranked horizontal bars of a chosen liquidity/pricing metric across Hyperliquid perps — either the bid/ask impact-price spread (% of mark price) or the mark-vs-oracle basis (bps). Surfaces the least liquid or most stretched markets at a glance. Keyless (Hyperliquid).",capabilities:["day-stats"],source:C.hyperliquid,schema:b({metric:I(["spread","basis"]).default("spread").describe('Which liquidity metric to rank by: "spread" (bid/ask impact-price spread as a % of mark price) or "basis" (mark-vs-oracle premium in basis points).'),limit:_().int().min(3).max(20).default(10).describe("How many symbols (by the chosen metric's magnitude) to chart.")})},Xy={name:"coin-momentum-heatmap",label:"Coin Momentum Heatmap",category:"crypto",iconUrl:w("coin-momentum-heatmap"),layout:{w:5,h:5,minW:4,minH:3},description:"Top coins by market-cap rank as a momentum heatmap — rows are coins, columns are 1h/24h/7d/30d change windows, colored diverging green/red by magnitude. Spot which coins are heating up (or cooling off) across every timeframe at a glance. Keyless (CoinPaprika, ~2000 coins).",capabilities:["coin-movers"],source:C.coinpaprika,schema:b({limit:_().int().min(5).max(30).default(15).describe("How many top coins (by market-cap rank) to include as rows.")})},Zy={name:"coin-momentum-scatter",label:"Coin Momentum Scatter",category:"crypto",iconUrl:w("coin-momentum-scatter"),layout:{w:6,h:4,minW:4,minH:3},description:"Broad-market coins as a momentum scatter — 24h change on the x-axis, 7d change on the y-axis, bubble size by market cap, colored by 24h direction. Reveals whether today's move is a continuation or a reversal of the week's trend. Keyless (CoinPaprika, ~2000 coins).",capabilities:["coin-movers"],source:C.coinpaprika,schema:b({limit:_().int().min(10).max(100).default(50).describe("How many top coins (by market-cap rank) to plot.")})},$y={name:"trending-bars",label:"Trending Bars",category:"crypto",iconUrl:w("trending-bars"),layout:{w:4,h:4,minW:3,minH:3},description:"The coins with the most search interest right now on CoinGecko as a diverging bar chart — 24h change per trending coin, gains right in green, losses left in red. The chart-first sibling of the Trending Coins list. Keyless (CoinGecko).",capabilities:["trending-coins"],source:C.coingecko,schema:b({limit:_().int().min(3).max(15).default(7).describe("How many trending coins to chart.")})},Qy={name:"nft-activity-bars",label:"NFT Activity Bars",category:"crypto",iconUrl:w("nft-activity-bars"),layout:{w:4,h:4,minW:3,minH:3},description:"Blue-chip NFT collections ranked by 24h sales count as a horizontal bar chart — which collections are actually trading, not just holding a floor price. The chart-first sibling of the NFT Collections list. Keyless (CoinGecko, curated slugs).",capabilities:["nft-market"],source:C.coingecko,schema:b({limit:_().int().min(5).max(15).default(10).describe("How many collections (by 24h sales) to chart.")})},ev={name:"dominance-bars",label:"Dominance Bars",category:"markets",iconUrl:w("dominance-bars"),layout:{w:4,h:4,minW:3,minH:3},description:"Market-cap dominance for every asset in CoinGecko's global snapshot — not just BTC and ETH — as a horizontal bar chart, ranked largest-first. Surfaces the next tier (USDT, BNB, SOL, …) the segmented Bitcoin Dominance bar collapses into 'Others'. Keyless (CoinGecko).",capabilities:["global-market"],source:C.coingecko,schema:b({limit:_().int().min(3).max(15).default(8).describe("How many assets (by market-cap dominance) to chart.")})},tv={name:"trending-bubbles",label:"Trending Bubbles",category:"crypto",iconUrl:w("trending-bubbles"),layout:{w:6,h:5,minW:4,minH:3},description:"The coins with the most search interest right now on CoinGecko as a floating bubble cloud — bubble area by |24h change|, ring tinted green/red by direction. A movement-first alternative to the Trending Coins list. Keyless (CoinGecko).",capabilities:["trending-coins"],source:C.coingecko,schema:b({limit:_().int().min(3).max(15).default(10).describe("How many trending coins to show.")})},rv={name:"yield-risk-pie",label:"Yield Risk Pie",category:"crypto",iconUrl:w("yield-risk-pie"),layout:{w:4,h:4,minW:3,minH:3},description:"DeFi yield pools grouped by impermanent-loss risk as a donut, sliced by total value locked (TVL) — no-IL-risk, IL-risk, and unknown, summed across every pool. A quick read on how much yield-seeking capital carries IL exposure. Keyless (DeFiLlama).",capabilities:["yields"],source:C.defillama,schema:b({})},av={name:"dex-pool-liquidity-scatter",label:"DEX Pool Liquidity Scatter",category:"onchain",iconUrl:w("dex-pool-liquidity-scatter"),layout:{w:6,h:4,minW:4,minH:3},description:"Trending DEX pools on a chain as a liquidity-vs-volume bubble scatter — pool reserves on a log x-axis, 24h trading volume on a log y-axis, bubble size by 24h trade count, tinted green/red by 24h price change. Surfaces deep, active pools versus thin or quiet ones. Keyless (GeckoTerminal free tier).",capabilities:["dex-pools"],source:C.geckoterminal,schema:b({network:I(["eth","solana","base","arbitrum","bsc","polygon_pos"]).default("eth").describe("Which chain's trending pools to show."),count:_().int().min(5).max(15).default(12).describe("How many trending pools to plot (up to 15).")})},ov={name:"protocol-fees-vs-tvl-scatter",label:"Protocol Fees vs TVL Scatter",category:"crypto",iconUrl:w("protocol-fees-vs-tvl-scatter"),layout:{w:6,h:4,minW:4,minH:3},description:"DeFi protocols as a fees-vs-TVL bubble scatter — total value locked on a log x-axis, trailing-24h fees on a log y-axis, bubble size by fees. Surfaces capital-efficient protocols earning outsized fees on their TVL versus large-but-quiet ones. Only protocols DeFiLlama reports both a TVL and a fees figure for are plotted. Keyless (DeFiLlama).",capabilities:["protocol-tvl","protocol-fees"],source:C.defillama,schema:b({limit:_().int().min(5).max(40).default(20).describe("How many protocols (by 24h fees) to plot.")})},nv={name:"yield-composition-scatter",label:"Yield Composition Scatter",category:"crypto",iconUrl:w("yield-composition-scatter"),layout:{w:6,h:4,minW:4,minH:3},description:"DeFi yield pools as a base-vs-reward APY scatter — organic (base) APY on the x-axis, incentive (reward) APY on the y-axis, bubble size by TVL. Separates pools earning real organic yield from ones propped up by token incentives. Keyless (DeFiLlama).",capabilities:["yields"],source:C.defillama,schema:b({limit:_().int().min(10).max(60).default(40).describe("How many pools (by TVL) to plot."),stablecoinOnly:Ye().default(!1).describe("Restrict to stablecoin pools only.")})},iv={name:"protocol-tvl-by-category",label:"Protocol TVL by Category",category:"crypto",iconUrl:w("protocol-tvl-by-category"),layout:{w:4,h:4,minW:3,minH:3},description:"Total value locked (TVL) summed by DeFiLlama category — Dexes, Lending, Liquid Staking, and more — as a horizontal bar chart ranked largest-first. Shows which slice of DeFi actually holds the capital. Keyless (DeFiLlama).",capabilities:["protocol-tvl"],source:C.defillama,schema:b({limit:_().int().min(4).max(20).default(10).describe("How many DeFi categories (by summed TVL) to chart.")})},sv={name:"protocol-tvl-share-area",label:"Protocol TVL Share Area",category:"crypto",iconUrl:w("protocol-tvl-share-area"),layout:{w:6,h:3,minW:3,minH:2},description:"Stacked area chart of total value locked (TVL) for several DeFi protocols over a lookback window, each protocol's slice stacked to show the combined total and how the mix shifts over time. The composition-focused sibling of the Protocol TVL Chart's overlaid lines. Data from DeFiLlama (daily granularity).",capabilities:["protocol-tvl"],source:C.defillama,schema:b({protocols:Ee(L()).min(1).max(6).describe('DeFiLlama protocol slugs (lowercase, hyphenated), e.g. ["lido", "aave", "eigenlayer"]. 1 to 6.'),lookback:I(["7D","1M","3M"]).default("1M").describe("History window for the chart.")})},cv={name:"dex-volume-share-area",label:"DEX Volume Share Area",category:"crypto",iconUrl:w("dex-volume-share-area"),layout:{w:6,h:3,minW:3,minH:2},description:"Stacked area chart of daily DEX trading volume for several protocols over a lookback window, stacked to show combined volume and how each DEX's share shifts over time. The composition-focused sibling of the DEX Volume Chart's overlaid lines. Data from DeFiLlama (daily granularity).",capabilities:["dex-volume"],source:C.defillama,schema:b({protocols:Ee(L()).min(1).max(6).describe('DeFiLlama DEX protocol slugs (lowercase, hyphenated), e.g. ["uniswap", "pancakeswap", "aerodrome-slipstream"]. 1 to 6.'),lookback:I(["7D","1M","3M"]).default("1M").describe("History window for the chart.")})},lv={name:"yield-momentum-bars",label:"Yield Momentum Bars",category:"crypto",iconUrl:w("yield-momentum-bars"),layout:{w:4,h:5,minW:3,minH:4},description:"DeFi yield pools ranked by 7-day APY change as a diverging bar chart — the biggest APY gains and drops over the past week, filtered above a TVL floor to skip dust pools. Surfaces where yields are heating up or cooling off. Keyless (DeFiLlama).",capabilities:["yields"],source:C.defillama,schema:b({limit:_().int().min(6).max(20).default(12).describe("How many pools to chart, split into the largest 7-day APY gains and drops."),minTvlUsd:_().min(0).default(1e6).describe("Minimum pool TVL in USD — a liquidity floor to hide dust.")})},uv={name:"btc-difficulty-chart",label:"BTC Difficulty Chart",category:"bitcoin",iconUrl:w("btc-difficulty-chart"),layout:{w:6,h:3,minW:3,minH:2},description:"Bitcoin network difficulty over time as a line chart, with the current difficulty and hashrate as headline figures — the long-run mining-cost trend, charted rather than a single retarget countdown. Keyless (mempool.space).",capabilities:["btc-hashrate"],source:C.mempool,schema:b({window:I(["1y","2y","3y"]).default("1y").describe("History window for the difficulty line.")})},dv={name:"btc-block-size-bars",label:"BTC Block Size Bars",category:"bitcoin",iconUrl:w("btc-block-size-bars"),layout:{w:5,h:4,minW:3,minH:3},description:"Recent Bitcoin block sizes as a vertical bar chart, oldest to newest — spot when blocks are running full (near the ~4MB weight limit) versus half-empty. The chart-first sibling of the BTC Blocks feed. Keyless (mempool.space).",capabilities:["btc-blocks"],source:C.mempool,schema:b({count:_().int().min(3).max(15).default(8).describe("How many recent blocks to chart (oldest → newest).")})},hv={name:"chain-price-movers",label:"Chain Price Movers",category:"onchain",iconUrl:w("chain-price-movers"),layout:{w:4,h:4,minW:3,minH:3},description:"24h native-asset price change per major L1 (Bitcoin, Ethereum, Litecoin, Dogecoin, …) as a diverging bar chart, gains right in green, losses left in red. The price-led sibling of the Chain Activity Bars transaction chart. Keyless (Blockchair).",capabilities:["chain-activity"],source:C.blockchair,schema:b({limit:_().int().min(3).max(12).default(8).describe("How many chains (by absolute 24h price change) to chart.")})},fv={name:"chain-activity-scatter",label:"Chain Activity Scatter",category:"onchain",iconUrl:w("chain-activity-scatter"),layout:{w:6,h:4,minW:4,minH:3},description:"Major L1s as a bubble scatter — 24h native-asset price change on the x-axis, 24h confirmed transactions on a log y-axis, bubble size by current mempool backlog. Shows which chains are both moving in price and busy on-chain. Keyless (Blockchair).",capabilities:["chain-activity"],source:C.blockchair,schema:b({})},mv={name:"mempool-fee-curve",label:"Mempool Fee Curve",category:"bitcoin",iconUrl:w("mempool-fee-curve"),layout:{w:5,h:3,minW:3,minH:2},description:"Bitcoin mempool's projected next-to-mine blocks as a fee-decay bar chart — median sat/vB per block, tinted by urgency, showing how fast fees drop as you're willing to wait a block or two longer. The chart-first sibling of the BTC Mempool card. Keyless (mempool.space).",capabilities:["btc-mempool"],source:C.mempool,schema:b({projectedBlocks:_().int().min(1).max(8).default(5).describe("How many projected (yet-to-be-mined) blocks to chart, next-to-mine first.")})},pv={name:"mining-pools-share",label:"Mining Pools Share",category:"bitcoin",iconUrl:w("mining-pools-share"),layout:{w:4,h:4,minW:3,minH:3},description:"Bitcoin mining-pool dominance as a donut — top pools by block share over a window plus an 'Other' slice, with the top-3 combined share in the center as a quick hashpower-concentration read. The chart-first sibling of the Mining Pools treemap. Keyless (mempool.space).",capabilities:["mining-pools"],source:C.mempool,schema:b({window:I(["24h","3d","1w","1m"]).default("1w").describe("Window over which to measure each pool's block share."),topN:_().int().min(3).max(8).default(5).describe("How many of the largest pools to show as slices; the rest fold into 'Other'.")})},gv={name:"options-max-pain",label:"Max Pain by Strike",category:"derivatives",iconUrl:w("options-max-pain"),layout:{w:6,h:4,minW:4,minH:3},description:"Max pain for the nearest Deribit options expiry (BTC or ETH) — the aggregate payout option writers would owe at each candidate settlement strike, as a bar chart, with the strike that minimizes it (where the most contracts expire worthless) highlighted against the current spot. Keyless (Deribit).",capabilities:["options-summary"],source:C.deribit,schema:b({currency:I(["BTC","ETH"]).default("BTC").describe("Which Deribit options book — BTC or ETH.")})},bv={name:"options-oi-skew",label:"OI Skew by Strike",category:"derivatives",iconUrl:w("options-oi-skew"),layout:{w:6,h:4,minW:4,minH:3},description:"Net call-minus-put open interest by strike for the nearest Deribit options expiry (BTC or ETH) — a single diverging bar per strike showing where positioning skews call-heavy (green, above zero) versus put-heavy (red, below zero) near spot. The netted sibling of OI by Strike. Keyless (Deribit).",capabilities:["options-summary"],source:C.deribit,schema:b({currency:I(["BTC","ETH"]).default("BTC").describe("Which Deribit options book — BTC or ETH."),strikes:_().int().min(6).max(30).default(14).describe("How many strikes nearest the current spot to show (centered on the underlying price).")})},yv={name:"options-vol-spread",label:"BTC/ETH Vol Spread",category:"derivatives",iconUrl:w("options-vol-spread"),layout:{w:6,h:3,minW:3,minH:2},description:"BTC DVOL and ETH DVOL implied-volatility indices plotted together over time — the spread between crypto's two most liquid vol benchmarks, and which one is pricing bigger expected swings. Keyless (Deribit).",capabilities:["volatility-index"],source:C.deribit,schema:b({lookback:I(["7D","1M","3M"]).default("1M").describe("History window for both volatility-index lines.")})},vv={name:"options-flow-skew",label:"Positioning vs Flow Skew",category:"derivatives",iconUrl:w("options-flow-skew"),layout:{w:4,h:3,minW:3,minH:2},description:"Call/put skew for BTC or ETH options across two bases at once — open interest (standing positioning) and 24h volume (today's flow) — as two diverging bars. Green = call-heavy, red = put-heavy; the two diverging signals fresh flow fighting stale positioning. Keyless (Deribit).",capabilities:["options-summary"],source:C.deribit,schema:b({currency:I(["BTC","ETH"]).default("BTC").describe("Which Deribit options book — BTC or ETH.")})},wv={name:"options-vol-smile",label:"Vol Smile",category:"derivatives",iconUrl:w("options-vol-smile"),layout:{w:6,h:4,minW:4,minH:3},description:"Implied volatility by strike for the nearest Deribit options expiry (BTC or ETH) — a call-IV line and a put-IV line across the strike range, the classic 'vol smile' shape that shows where the market prices tail risk richest. Keyless (Deribit).",capabilities:["options-summary"],source:C.deribit,schema:b({currency:I(["BTC","ETH"]).default("BTC").describe("Which Deribit options book — BTC or ETH.")})},kv={name:"options-oi-ladder-heatmap",label:"OI Ladder Heatmap",category:"derivatives",iconUrl:w("options-oi-ladder-heatmap"),layout:{w:8,h:5,minW:5,minH:4},description:"Open interest across strike and expiry for BTC or ETH options, as a heatmap — expiries as rows (nearest first), strike bands as columns, cell shade by total call+put OI. Surfaces where positioning concentrates across the whole term structure, not just the nearest expiry. Keyless (Deribit).",capabilities:["options-summary"],source:C.deribit,schema:b({currency:I(["BTC","ETH"]).default("BTC").describe("Which Deribit options book — BTC or ETH."),expiries:_().int().min(3).max(16).default(8).describe("How many upcoming expiries (nearest-first) to show as rows."),buckets:_().int().min(6).max(20).default(10).describe("How many strike bands (columns) to bin open interest into, spanning the shown expiries' strike range.")})},_v={name:"options-max-pain-multi",label:"Max Pain by Expiry",category:"derivatives",iconUrl:w("options-max-pain-multi"),layout:{w:6,h:4,minW:4,minH:3},description:"Max pain strike for each upcoming Deribit options expiry (BTC or ETH), plotted as % deviation from spot — one bar per expiry, showing which dated books are pinned above versus below the current price. The term-structure sibling of Max Pain by Strike. Keyless (Deribit).",capabilities:["options-summary"],source:C.deribit,schema:b({currency:I(["BTC","ETH"]).default("BTC").describe("Which Deribit options book — BTC or ETH."),expiries:_().int().min(3).max(16).default(8).describe("How many upcoming expiries (nearest-first) to chart.")})},xv={name:"mvrv-zscore-chart",label:"MVRV Z-Score Chart",category:"onchain",iconUrl:w("mvrv-zscore-chart"),layout:{w:6,h:3,minW:4,minH:3},description:"Bitcoin MVRV Z-Score plotted as a full daily time-series line, not just a sparkline — how many standard deviations market cap sits above realized cap across the whole available history. Historically, spikes above ~7 have marked cycle tops and dips below 0 mark deep-value bottoms. The chart-first sibling of the MVRV gauge. Keyless (Coin Metrics).",capabilities:["onchain-valuation"],source:C.coinMetrics,schema:b({window:I(["1Y","2Y","4Y","all"]).default("all").describe("How much history the chart shows.")})},Cv={name:"nupl-cycle-chart",label:"NUPL Cycle Chart",category:"onchain",iconUrl:w("nupl-cycle-chart"),layout:{w:6,h:3,minW:4,minH:3},description:"Net Unrealized Profit/Loss plotted as a full daily time-series line across Bitcoin's cycle sentiment bands — Capitulation, Hope/Fear, Optimism, Belief, Euphoria/Greed. The chart-first sibling of the NUPL gauge. Keyless (Coin Metrics).",capabilities:["onchain-valuation"],source:C.coinMetrics,schema:b({window:I(["1Y","2Y","4Y","all"]).default("all").describe("How much history the chart shows.")})},Av={name:"cycle-valuation-composite",label:"Cycle Valuation Composite",category:"onchain",iconUrl:w("cycle-valuation-composite"),layout:{w:6,h:4,minW:4,minH:3},description:"Three cycle-valuation signals — MVRV Z-Score, NUPL, and BTC's 14-day RSI — overlaid on one chart, each independently min-max normalized to 0–100% over the selected window so their unrelated native scales become directly comparable. All three near the top together reads late-cycle euphoria; all three near the bottom reads capitulation. Keyless (Coin Metrics).",capabilities:["onchain-valuation","price-history-daily"],source:C.coinMetrics,schema:b({window:I(["1Y","2Y","4Y","all"]).default("2Y").describe("How much history each signal is normalized and charted over.")})},Sv={name:"onchain-oscillator-overlay",label:"On-Chain Oscillator Overlay",category:"onchain",iconUrl:w("onchain-oscillator-overlay"),layout:{w:6,h:4,minW:4,minH:3},description:"SOPR, Puell Multiple, and Reserve Risk overlaid on one chart, each independently min-max normalized to 0–100% over the selected window — three on-chain cycle oscillators with unrelated native scales made directly comparable. Keyless (bitcoin-data.com; polled once daily, best-effort per metric).",capabilities:["onchain-cycle-extras"],source:C.bitcoinData,schema:b({window:I(["90D","180D","1Y"]).default("1Y").describe("How much history each signal is normalized and charted over.")})},Tv={name:"eth-issuance-impact",label:"ETH Issuance Impact",category:"onchain",iconUrl:w("eth-issuance-impact"),layout:{w:4,h:3,minW:2,minH:2},description:"Ethereum's actual net annual supply growth (post-Merge PoS issuance minus EIP-1559 burn) vs the counterfactual pre-Merge PoW issuance rate, as diverging bars — how much leaner ETH's inflation is under proof-of-stake. Negative (deflationary) growth in green, positive (inflationary) in red. Keyless (ultrasound.money).",capabilities:["eth-supply"],source:C.ultrasound,schema:b({})},Ev={name:"treasury-avg-rate-bars",label:"Treasury Avg Rate Bars",category:"macro",iconUrl:w("treasury-avg-rate-bars"),layout:{w:4,h:4,minW:3,minH:3},description:"U.S. Treasury average interest rates across the full set of security classes as a horizontal bar chart, ranked highest-first. The chart-first sibling of the Rates Board's Treasury-rates section. Keyless (U.S. Treasury).",capabilities:["treasury-rates"],source:C.treasury,schema:b({limit:_().int().min(5).max(25).default(20).describe("How many security classes (by average rate, highest first) to chart.")})},zv={name:"treasury-auction-demand-scatter",label:"Treasury Auction Demand",category:"macro",iconUrl:w("treasury-auction-demand-scatter"),layout:{w:6,h:4,minW:4,minH:3},description:"Recent completed U.S. Treasury auctions as a bubble scatter — awarded rate on the x-axis, bid-to-cover ratio (demand) on the y-axis, one dot per auction labelled by term. Reveals whether richer (lower-yield) auctions also draw stronger demand. Keyless (U.S. Treasury).",capabilities:["treasury-auctions"],source:C.treasury,schema:b({count:_().int().min(5).max(30).default(20).describe("How many recent completed auctions (with a reported rate and bid-to-cover) to plot.")})},Pv={name:"treasury-auction-size-bars",label:"Treasury Auction Size",category:"macro",iconUrl:w("treasury-auction-size-bars"),layout:{w:6,h:3,minW:3,minH:3},description:"Recent completed U.S. Treasury auctions as paired bars — the offering amount beside the amount actually accepted, per auction, oldest to newest. Shows at a glance how close each auction came to being fully subscribed. Keyless (U.S. Treasury).",capabilities:["treasury-auctions"],source:C.treasury,schema:b({count:_().int().min(3).max(20).default(8).describe("How many recent completed auctions to chart (oldest to newest).")})},Dv={name:"nyfed-reference-rate-bars",label:"NY Fed Rate Bars",category:"macro",iconUrl:w("nyfed-reference-rate-bars"),layout:{w:4,h:3,minW:3,minH:2},description:"The six official New York Fed reference rates (effective fed funds, SOFR, tri-party and broad general collateral repo, overnight bank funding, and SOFR averages) as a horizontal bar chart — level or reported volume. The chart-first sibling of the Rates Board's NY Fed section. Keyless (NY Fed).",capabilities:["reference-rates"],source:C.nyFed,schema:b({metric:I(["rate","volume"]).default("rate").describe(`"rate" charts each reference rate's level (%); "volume" charts its reported trading volume in USD (SOFR averages report no volume and are skipped in this mode).`),limit:_().int().min(2).max(6).default(6).describe("How many of the six official reference rates to chart.")})},Mv={name:"nyfed-sofr-term-averages-bars",label:"SOFR Term Averages",category:"macro",iconUrl:w("nyfed-sofr-term-averages-bars"),layout:{w:3,h:3,minW:2,minH:2},description:"SOFR compounded average rates over the trailing 30, 90, and 180 days as a simple bar comparison — a quick read on where short-term secured funding costs have been trending. Keyless (NY Fed).",capabilities:["reference-rates"],source:C.nyFed,schema:b({})},Rv={name:"nyfed-fed-funds-band-gauge",label:"Fed Funds Band Gauge",category:"macro",iconUrl:w("nyfed-fed-funds-band-gauge"),layout:{w:3,h:3,minW:2,minH:2},description:"The effective fed funds rate as a radial gauge inside the FOMC's current target band — the arc fills from the band's lower bound to its upper bound, with the live EFFR reading in the center. Makes it visible at a glance whether the effective rate is trading near the top, bottom, or middle of the target range. Keyless (NY Fed).",capabilities:["reference-rates"],source:C.nyFed,schema:b({})},Ov={name:"treasury-debt-composition-area",label:"Debt Composition",category:"macro",iconUrl:w("treasury-debt-composition-area"),layout:{w:6,h:4,minW:4,minH:3},description:"U.S. total public debt outstanding split into debt held by the public vs. intragovernmental holdings, as a stacked area chart over time — the two components that sum to the National Debt card's headline total. Keyless (U.S. Treasury).",capabilities:["national-debt"],source:C.treasury,schema:b({trendDays:_().int().min(30).max(365).default(180).describe("How many business days of history to load for the stacked area.")})},Lv={name:"ofr-stress-category-area",label:"FSI by Category",category:"macro",iconUrl:w("ofr-stress-category-area"),layout:{w:6,h:5,minW:4,minH:3},description:"The OFR Financial Stress Index decomposed into its five contributing categories (credit, equity valuation, safe assets, funding, volatility) as a stacked area chart over time — each category can be positive or negative and they sum to the overall index shown on the Financial Stress card. Keyless (OFR).",capabilities:["financial-stress"],source:C.ofr,schema:b({trendDays:_().int().min(20).max(90).default(60).describe("How many recent daily readings to plot in the stacked area.")})},Fv={name:"misery-index",label:"Misery Index",category:"macro",iconUrl:w("misery-index"),layout:{w:6,h:4,minW:4,minH:3},description:"The classic 'Misery Index' — CPI year-over-year inflation stacked with the unemployment rate — as a two-series stacked area chart, month-aligned, plus the combined headline score. Monthly macro context for stock dashboards, not a live feed. Keyless (BLS).",capabilities:["macro-series"],source:C.bls,schema:b({months:_().int().min(13).max(36).default(18).describe("How many recent monthly observations to chart.")})},Iv={name:"real-wages",label:"Real Wages",category:"macro",iconUrl:w("real-wages"),layout:{w:6,h:3,minW:3,minH:2},description:"Are paychecks outrunning inflation? A two-line chart comparing year-over-year average hourly earnings growth against year-over-year CPI inflation — when earnings run above CPI, real (inflation-adjusted) pay is rising. Monthly macro context, not a live feed. Keyless (BLS).",capabilities:["macro-series"],source:C.bls,schema:b({months:_().int().min(13).max(36).default(18).describe("How many recent monthly year-over-year observations to chart.")})},Nv={name:"labor-force-flow",label:"Labor Force Flow",category:"macro",iconUrl:w("labor-force-flow"),layout:{w:6,h:3,minW:3,minH:2},description:"The unemployment rate and the labor-force participation rate plotted together over time — a rising unemployment rate alongside a falling participation rate points to people leaving the workforce rather than finding jobs. Monthly macro context, not a live feed. Keyless (BLS).",capabilities:["macro-series"],source:C.bls,schema:b({months:_().int().min(13).max(36).default(18).describe("How many recent monthly observations to chart.")})},Hv={name:"payrolls-bars",label:"Payrolls Bars",category:"macro",iconUrl:w("payrolls-bars"),layout:{w:6,h:3,minW:3,minH:3},description:"Monthly nonfarm payrolls net change as a diverging bar chart — jobs added up in green, jobs cut down in red. The chart-first sibling of the Labor Market frame's headline figure. Monthly macro data, not a live feed. Keyless (BLS).",capabilities:["macro-series"],source:C.bls,schema:b({months:_().int().min(6).max(36).default(18).describe("How many recent months of net payroll change to chart.")})},Uv={name:"short-volume-bars",label:"Short Volume Bars",category:"equities",iconUrl:w("short-volume-bars"),layout:{w:4,h:4,minW:3,minH:3},description:"Daily reported short-sale volume for a watchlist of US-listed stocks, ranked highest-first as a horizontal bar chart — the chart-first sibling of the Short Volume list. IMPORTANT: this is reported short volume (sell-side short flow, including market-maker hedging), NOT short interest, and is not a directional signal on its own. Daily data published the next business day; not a live feed. US equities only. (FINRA).",capabilities:["short-volume"],source:C.finra,schema:b({symbols:Ee(L()).min(1).max(12).describe('US-listed stock tickers to rank, e.g. ["TSLA","NVDA","AAPL"]. HIP-3 symbols ("xyz:TSLA") work too — the dex prefix is stripped. Crypto has no SEC/FINRA short-volume and is ignored.')})},Bv={name:"capital-structure-bars",label:"Capital Structure Bars",category:"equities",iconUrl:w("capital-structure-bars"),layout:{w:4,h:3,minW:3,minH:2},description:"One company's balance-sheet shape as a horizontal bar chart — total assets, shareholders' equity, and liabilities (derived as assets minus equity) — from SEC EDGAR XBRL company facts. Updates only when the company files (annual/quarterly), not a live feed. Requires the zframes runtime's data proxy (ships with `zframes serve` / `vite dev`); resolve by ticker (bundled top-500 map) or raw SEC CIK. (SEC EDGAR).",capabilities:["fundamentals"],source:C.secEdgar,schema:b({symbol:L().min(1).describe('Company to chart — a ticker ("AAPL", "NVDA"), a HIP-3 symbol ("xyz:NVDA"), or a raw SEC CIK ("320193"). Tickers outside the bundled top-500 map need a CIK.')})},jv={name:"filings-mix",label:"Filings Mix",category:"equities",iconUrl:w("filings-mix"),layout:{w:4,h:4,minW:3,minH:3},description:"What kind of paper is one company actually filing? A donut of recent SEC EDGAR filings bucketed into periodic & material reports (10-K, 10-Q, 8-K, registrations, proxies, activist stakes…), insider ownership forms (3/4/5/144), and everything else — the chart-first sibling of the Filings Feed. Official data from SEC's free, CORS-safe submissions endpoint; event-driven, not a price feed. Resolve by ticker (bundled top-500 map) or raw SEC CIK. (SEC EDGAR).",capabilities:["filings"],source:C.secEdgar,schema:b({symbol:L().min(1).describe('Company to show filing mix for — a ticker ("AAPL", "NVDA"), a HIP-3 symbol ("xyz:TSLA"), or a raw SEC CIK ("320193"). Tickers outside the bundled top-500 map need a CIK.')})},Vv={name:"fx-cross-heatmap",label:"FX Cross Heatmap",category:"macro",iconUrl:w("fx-cross-heatmap"),layout:{w:6,h:4,minW:4,minH:4},description:"A full currency × currency cross-rate matrix as a heatmap — each cell is the day-over-day % change of that specific cross, derived from every listed currency's rate vs a common pivot, green up / red down. Spots which cross is moving hardest across an entire currency set, not just one pair at a time. Keyless (Frankfurter/ECB).",capabilities:["fx-rates"],source:C.frankfurter,schema:b({symbols:Ee(L().length(3)).min(3).max(8).default(["USD","EUR","GBP","JPY","CHF","CAD"]).describe('Currencies (ISO 4217 codes) forming both axes of the matrix, e.g. ["USD","EUR","GBP","JPY"]. At least 3, so the grid shows more than one cross.')})},Wv={name:"etf-issuer-treemap",label:"ETF Issuer Treemap",category:"crypto",iconUrl:w("etf-issuer-treemap"),layout:{w:5,h:4,minW:4,minH:3},description:"Spot BTC or ETH ETF issuers as a treemap — tile size by assets under management, tint green/red by that issuer's net flow today. Shows who holds the most AND who's gathering or losing assets right now, in one view. Best-effort; may be empty if the source is unavailable. Keyless (SoSoValue).",capabilities:["etf-flows"],source:C.sosovalue,schema:b({asset:I(["btc","eth"]).default("btc").describe("Which spot-ETF complex to show."),limit:_().int().min(3).max(15).default(10).describe("How many issuers (by AUM) to show in the treemap.")})},Gv={name:"fx-trend-chart",label:"FX Trend Chart",category:"macro",iconUrl:w("fx-trend-chart"),layout:{w:6,h:3,minW:4,minH:3},description:"Several currencies' recent trend vs a base, each indexed to 0% at the start of the window so wildly different-magnitude pairs (JPY vs CHF) compare cleanly on one chart. The multi-line sibling of the FX Board. Keyless (Frankfurter/ECB).",capabilities:["fx-rates"],source:C.frankfurter,schema:b({base:L().length(3).default("USD").describe('Base currency (ISO 4217 code) each line is quoted against, e.g. "USD".'),symbols:Ee(L().length(3)).min(1).max(8).default(["EUR","GBP","JPY","CHF"]).describe('Currencies to chart (ISO 4217 codes), e.g. ["EUR","GBP","JPY"]. A code equal to the base is skipped.')})},Kv={name:"fear-greed-chart",label:"Fear & Greed Chart",category:"sentiment",iconUrl:w("fear-greed-chart"),layout:{w:6,h:3,minW:4,minH:3},description:"Crypto Fear & Greed index over time as a line chart — the mood swing from extreme fear to extreme greed across a wide window, the line tinted by the latest reading. The chart-first sibling of the Fear & Greed card. Keyless (alternative.me).",capabilities:["sentiment"],source:C.alternativeMe,schema:b({days:_().int().min(30).max(365).default(180).describe("How many days of index history to chart.")})},qv={name:"prediction-market-bars",label:"Prediction Market Bars",category:"sentiment",iconUrl:w("prediction-market-bars"),layout:{w:5,h:5,minW:4,minH:4},description:"Live Polymarket odds as a horizontal bar chart — the highest-volume open prediction markets ranked by trailing-24h volume. The chart-first sibling of the Prediction Markets list. Keyless (Polymarket).",capabilities:["prediction-markets"],source:C.polymarket,schema:b({limit:_().int().min(3).max(15).default(8).describe("How many markets (by volume) to chart.")})},Yv={name:"dxy-chart",label:"Dollar Index Chart",category:"macro",iconUrl:w("dxy-chart"),layout:{w:6,h:3,minW:4,minH:3},description:"US Dollar Index (DXY) as a line chart over time — the dollar's trend vs a basket of six major currencies, tinted green/red by its own direction. The chart-first sibling of the Dollar Index card. Keyless (Frankfurter/ECB).",capabilities:["dollar-index"],source:C.frankfurter,schema:b({})},Jv={name:"fx-movers-bars",label:"FX Movers Bars",category:"macro",iconUrl:w("fx-movers-bars"),layout:{w:4,h:4,minW:3,minH:3},description:"A currency set's day-over-day % change vs a base as a diverging bar chart — strengthening currencies right in green, weakening left in red, ranked by move. The chart-first sibling of the FX Board. Keyless (Frankfurter/ECB).",capabilities:["fx-rates"],source:C.frankfurter,schema:b({base:L().length(3).default("USD").describe('Base currency (ISO 4217 code) each bar is quoted against, e.g. "USD".'),symbols:Ee(L().length(3)).min(1).max(12).default(["EUR","GBP","JPY","CHF","CAD","AUD"]).describe('Currencies to chart (ISO 4217 codes), e.g. ["EUR","GBP","JPY"]. A code equal to the base is skipped.')})},Xv={name:"prediction-market-scatter",label:"Prediction Market Scatter",category:"sentiment",iconUrl:w("prediction-market-scatter"),layout:{w:6,h:4,minW:4,minH:3},description:"Live Polymarket odds as a bubble scatter — each market's top-outcome probability on the x-axis, trailing-24h volume on a log y-axis, bubble size by volume. Surfaces high-conviction, high-volume markets versus thin long shots. The chart-first sibling of the Prediction Markets list. Keyless (Polymarket).",capabilities:["prediction-markets"],source:C.polymarket,schema:b({limit:_().int().min(5).max(30).default(15).describe("How many markets (by volume) to plot.")})},Zv={name:"etf-issuer-bars",label:"ETF Issuer Bars",category:"crypto",iconUrl:w("etf-issuer-bars"),layout:{w:4,h:4,minW:3,minH:3},description:"Spot BTC or ETH ETF issuers' daily net flow as a diverging bar chart — inflows right in green, outflows left in red, ranked by size. The chart-first sibling of the Spot ETF Flows list. Best-effort; may be empty if the source is unavailable. Keyless (SoSoValue).",capabilities:["etf-flows"],source:C.sosovalue,schema:b({asset:I(["btc","eth"]).default("btc").describe("Which spot-ETF complex to chart."),limit:_().int().min(3).max(15).default(10).describe("How many issuers (by |net flow|) to chart.")})},$v={name:"portfolio-movers",label:"Portfolio Movers",category:"portfolio",iconUrl:w("portfolio-movers"),layout:{w:4,h:5,minW:3,minH:4},description:"Your connected portfolio's holdings as a diverging bar chart of 24h price change — gainers right in green, losers left in red. Source is a connected Binance account (read-only key, in-app) or a public on-chain wallet address. Only holdings the source reports a 24h change for are shown — currently that's on-chain wallet holdings (priced via CoinGecko); a Binance-only portfolio will show its empty state until the account layer adds a price-change feed. Renders a connect prompt until a source is set.",capabilities:["portfolio"],account:!0,schema:b({...ca,limit:_().int().min(4).max(30).default(15).describe("How many holdings (by absolute 24h change) to chart.")})},Qv={name:"portfolio-value-bars",label:"Portfolio Value Bars",category:"portfolio",iconUrl:w("portfolio-value-bars"),layout:{w:4,h:5,minW:3,minH:4},description:"Your connected portfolio's positions as a horizontal bar chart ranked by live USD value, largest first. The chart-first sibling of the Portfolio Holdings table. Source is a connected Binance account (read-only key, in-app) or a public on-chain wallet address. Renders a connect prompt until a source is set.",capabilities:["portfolio","quote-stream"],account:!0,schema:b({...ca,limit:_().int().min(3).max(25).default(12).describe("How many holdings (by USD value, descending) to chart.")})},e1={name:"etf-flow-calendar",label:"ETF Flow Calendar",category:"crypto",iconUrl:w("etf-flow-calendar"),layout:{w:6,h:5,minW:4,minH:3},description:"Spot BTC or ETH ETF daily net flows as a GitHub-style calendar heatmap — one column per weekday, one row per week, green shades for inflow days and red for outflow days (intensity relative to the window). Surfaces weekly inflow/outflow rhythm the daily bar chart doesn't show at a glance. Keyless (SoSoValue); best-effort, may be empty if the source is unavailable.",capabilities:["etf-flows"],source:C.sosovalue,schema:b({asset:I(["btc","eth"]).default("btc").describe("Which spot-ETF complex to chart."),lookback:I(["1M","3M","6M"]).default("3M").describe("History window for the calendar grid.")})},t1={name:"prediction-markets-bubble",label:"Prediction Markets Bubbles",category:"sentiment",iconUrl:w("prediction-markets-bubble"),layout:{w:6,h:5,minW:4,minH:3},description:"Live Polymarket odds as a floating bubble cloud — one bubble per open market, sized by 24h volume, tinted by how confident the leading outcome is (muted near a toss-up, vivid green near certain). The chart-first sibling of the Prediction Markets list. Keyless (Polymarket Gamma API).",capabilities:["prediction-markets"],source:C.polymarket,schema:b({limit:_().int().min(3).max(20).default(10).describe("How many markets (by volume) to show.")})},r1=[Hy,$0,J0,X0,Z0,A0,p0,V0,N0,b0,R0,L0,z0,D0,P0,M0,I0,y0,j0,U0,H0,B0,E0,g0,v0,w0,Y0,k0,_0,S0,T0,F0,x0,C0,O0,Q0,eb,tb,rb,ab,ob,nb,ib,sb,cb,lb,ub,db,hb,fb,mb,zb,Pb,Db,Mb,Rb,Ob,Lb,Fb,Ib,Nb,Hb,Ub,Bb,jb,Vb,Wb,Gb,Kb,qb,Yb,Jb,Xb,Zb,$b,Qb,ey,ty,ry,ay,oy,ny,iy,sy,cy,ly,uy,dy,hy,fy,my,py,gy,by,yy,vy,wy,ky,_y,xy,Cy,Ay,Sy,Ty,Ey,zy,Py,Dy,My,Ry,Oy,Ly,Fy,Iy,Ny,Uy,By,jy,Vy,Wy,Gy,Ky,qy,Yy,Jy,Xy,Zy,$y,Qy,ev,tv,rv,av,ov,nv,iv,sv,cv,lv,uv,dv,hv,fv,mv,pv,gv,bv,yv,vv,wv,kv,_v,xv,Cv,Av,Sv,Tv,Ev,zv,Pv,Dv,Mv,Rv,Ov,Lv,Fv,Iv,Nv,Hv,Uv,Bv,jv,Vv,Wv,Gv,Kv,qv,Yv,Jv,Xv,Zv,$v,Qv,e1,t1],a1=[...r1,xb,Tb,Cb,kb,pb,wb,W0,G0,K0,q0,bb,Ab,_b,gb,Sb,vb,Eb,yb],yi=()=>null;function o1(){const e=new Map;for(const t of a1){const r=l0[t.name];if(!r){console.warn(`[zframes] frame "${t.name}" has metadata but no lazy loader — it won't render`);continue}let a=null;const o=()=>a??(a=r.load().catch(c=>{throw a=null,c})),n=z.lazy(()=>o().then(c=>({default:c.component}))),i=r.titleIcon?z.lazy(()=>o().then(c=>(c.titleIcon||console.warn(`[zframes] frame "${t.name}" is flagged titleIcon but its module exports none`),{default:c.titleIcon??yi}))):void 0,s=r.titleContent?z.lazy(()=>o().then(c=>(c.titleContent||console.warn(`[zframes] frame "${t.name}" is flagged titleContent but its module exports none`),{default:c.titleContent??yi}))):void 0;e.set(t.name,{...t,component:n,titleIcon:i,titleContent:s})}return e}function Ja(e){const t=e.indexOf(":");return t===-1?e:e.slice(t+1)}function Zs(e){return e.includes(":")}function n1(e){const t=Ja(e);return Zs(e)?`https://assets.parqet.com/logos/symbol/${encodeURIComponent(t)}?format=png`:`https://assets.coincap.io/assets/icons/${t.toLowerCase()}@2x.png`}const vi=["#5b6cff","#9b59ff","#e0608f","#e08a3c","#3fb6a8","#4f93e8","#7a8c52","#c0556b"];function i1(e){let t=0;for(let r=0;r<e.length;r++)t=t*31+e.charCodeAt(r)|0;return vi[Math.abs(t)%vi.length]}function s1({symbol:e,size:t=18,className:r=""}){const a=Ja(e),o=Zs(e),[n,i]=z.useState(!1);z.useEffect(()=>i(!1),[e]);const s=o?"rounded-[5px]":"rounded-full",c={width:t,height:t};return n?A.jsx("span",{"aria-hidden":!0,className:`inline-flex shrink-0 items-center justify-center font-bold leading-none text-white ${s} ${r}`,style:{...c,background:i1(a),fontSize:Math.round(t*.42)},children:a.slice(0,2).toUpperCase()}):A.jsx("img",{src:n1(e),width:t,height:t,alt:"","aria-hidden":!0,draggable:!1,loading:"lazy",onError:()=>i(!0),className:`shrink-0 object-contain ${s} ${o?"bg-white p-px":""} ${r}`,style:c})}const c1=["xyz:*"],l1=200,u1="var(--zf-up, #3fd08f)",d1="var(--zf-down, #ff6b81)";function wi(e){return e>=1e3?`$${e.toLocaleString("en-US",{maximumFractionDigits:0})}`:e>=1?`$${e.toLocaleString("en-US",{maximumFractionDigits:2})}`:`$${e.toPrecision(4)}`}const h1=`
547
- .zf-tape {
548
- position: fixed;
549
- left: 0;
550
- right: 0;
551
- bottom: 0;
552
- z-index: 30;
553
- height: 36px;
554
- display: flex;
555
- align-items: center;
556
- overflow: hidden;
557
- background: rgba(10, 11, 17, 0.86);
558
- border-top: 1px solid rgba(255, 255, 255, 0.08);
559
- font-family: var(--font-dmsans, system-ui, sans-serif);
560
- -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
561
- mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
562
- }
563
- .zf-tape-track {
564
- display: flex;
565
- flex-shrink: 0;
566
- align-items: center;
567
- white-space: nowrap;
568
- will-change: transform;
569
- animation-name: zf-tape-scroll;
570
- animation-timing-function: linear;
571
- animation-iteration-count: infinite;
572
- }
573
- .zf-tape:hover .zf-tape-track { animation-play-state: paused; }
574
- .zf-tape-item {
575
- display: inline-flex;
576
- align-items: center;
577
- gap: 7px;
578
- padding: 0 15px;
579
- border-right: 1px solid rgba(255, 255, 255, 0.06);
580
- font-size: 12px;
581
- line-height: 1;
582
- }
583
- .zf-tape-sym { font-weight: 700; color: rgba(255, 255, 255, 0.92); letter-spacing: 0.02em; }
584
- .zf-tape-px { color: rgba(255, 255, 255, 0.58); font-variant-numeric: tabular-nums; }
585
- .zf-tape-chg { font-weight: 600; font-variant-numeric: tabular-nums; }
586
- @keyframes zf-tape-scroll {
587
- from { transform: translateX(0); }
588
- to { transform: translateX(-50%); }
589
- }
590
- @media (prefers-reduced-motion: reduce) {
591
- .zf-tape { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
592
- .zf-tape-track { animation: none; }
593
- }
594
- `;function f1(){const e=Wn(c1,6e4),t=Wn(void 0,6e4),{symbols:r,stats:a}=z.useMemo(()=>{const l=h=>Object.entries(h).filter(([,f])=>f.markPx>0&&f.prevDayPx>0).map(([f])=>f).sort();return{symbols:[...l(e),...l(t)].slice(0,l1),stats:{...t,...e}}},[e,t]),o=ee("quote-stream"),n=z.useRef(null),i=r.join(",");if(z.useEffect(()=>{const l=n.current;if(!l||!(o!=null&&o.subscribeMids)||r.length===0)return;let u={};const h=()=>{for(const m of l.querySelectorAll("[data-zf-px]")){const g=u[m.dataset.zfPx??""];if(g===void 0)continue;const y=wi(g);m.textContent!==y&&(m.textContent=y)}},f=o.subscribeMids(m=>{u=m},r),d=window.setTimeout(h,400),p=window.setInterval(h,1500);return()=>{f(),clearTimeout(d),clearInterval(p)}},[o,i]),r.length===0)return null;const s=Math.max(40,r.length*2.2),c=l=>r.map(u=>{const h=a[u];if(!h)return null;const f=h.changePct>=0?u1:d1,d=h.changePct>=0?"+":"";return A.jsxs("span",{className:"zf-tape-item",children:[A.jsx(s1,{symbol:u,size:15}),A.jsx("span",{className:"zf-tape-sym",children:Ja(u)}),A.jsx("span",{className:"zf-tape-px","data-zf-px":u,children:wi(h.markPx)}),A.jsxs("span",{className:"zf-tape-chg",style:{color:f},children:[d,h.changePct.toFixed(2),"%"]})]},`${l}-${u}`)});return A.jsxs(A.Fragment,{children:[A.jsx("style",{children:h1}),A.jsx("div",{className:"zf-tape","aria-label":"live ticker tape",children:A.jsxs("div",{ref:n,className:"zf-tape-track",style:{animationDuration:`${s}s`},children:[c("a"),A.jsx("span",{"aria-hidden":!0,style:{display:"contents"},children:c("b")})]})})]})}const ki="(min-width: 1024px)";function m1(){const[e,t]=z.useState(()=>window.matchMedia(ki).matches);return z.useEffect(()=>{const r=window.matchMedia(ki),a=()=>t(r.matches);return r.addEventListener("change",a),()=>r.removeEventListener("change",a)},[]),e}const p1="/unicornStudio.legacy.umd.mjs";let Rr=null;function g1(){return typeof window>"u"||typeof document>"u"?Promise.reject(new Error("UnicornStudio needs a browser")):Rr||(Rr=(async()=>{const t=`const module={exports:{}};const exports=module.exports;
595
- `+await fetch(p1).then(a=>{if(!a.ok)throw new Error(`failed to load UnicornStudio (${a.status})`);return a.text()})+`
596
- export default module.exports;`,r=URL.createObjectURL(new Blob([t],{type:"text/javascript"}));try{const o=(await import(r)).default;if(!(o!=null&&o.addScene))throw new Error("UnicornStudio engine missing addScene");return o}finally{URL.revokeObjectURL(r)}})(),Rr.catch(()=>{Rr=null}),Rr)}class b1{constructor(t){q(this,"_url");this._raw=t;const r=URL.createObjectURL(new Blob([JSON.stringify(this._raw)],{type:"application/json"}));this._url=r}get url(){return this._url}}const _i=new b1({history:[{breakpoints:[],visible:!0,aspectRatio:1,userDownsample:1,layerType:"effect",type:"gradient",usesPingPong:!1,speed:.25,trackMouse:0,mouseMomentum:0,texture:!1,animating:!1,isMask:0,compiledFragmentShaders:[`#version 300 es
597
- precision highp float;in vec2 vTextureCoord;uniform vec2 uMousePos;vec3 getColor(int index) { switch(index) { case 0: return vec3(1, 1, 1); case 1: return vec3(0, 0, 0); case 2: return vec3(0, 0, 0); case 3: return vec3(0, 0, 0); case 4: return vec3(0, 0, 0); case 5: return vec3(0, 0, 0); case 6: return vec3(0, 0, 0); case 7: return vec3(0, 0, 0); case 8: return vec3(0, 0, 0); case 9: return vec3(0, 0, 0); case 10: return vec3(0, 0, 0); case 11: return vec3(0, 0, 0); case 12: return vec3(0, 0, 0); case 13: return vec3(0, 0, 0); case 14: return vec3(0, 0, 0); case 15: return vec3(0, 0, 0); default: return vec3(0.0); } }const float PI = 3.14159265;vec2 rotate(vec2 coord, float angle) { float s = sin(angle); float c = cos(angle); return vec2( coord.x * c - coord.y * s, coord.x * s + coord.y * c ); }out vec4 fragColor;vec3 getColor(vec2 uv) {return vec3(1, 1, 1); }void main() {vec2 uv = vTextureCoord; vec2 pos = vec2(0.5, 0.5) + mix(vec2(0), (uMousePos-0.5), 0.0000); uv -= pos; uv /= (0.5000*2.); uv = rotate(uv, (0.0000 - 0.5) * 2. * PI); vec4 color = vec4(getColor(uv), 1.); fragColor = color; }`],compiledVertexShaders:[`#version 300 es
598
- precision mediump float;in vec3 aVertexPosition; in vec2 aTextureCoord;uniform mat4 uMVMatrix; uniform mat4 uPMatrix;out vec2 vTextureCoord; out vec3 vVertexPosition;void main() { gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0); vTextureCoord = aTextureCoord; }`],data:{downSample:.5,depth:!1,uniforms:{},isBackground:!0},id:"effect"},{breakpoints:[],visible:!0,locked:!1,aspectRatio:1.0793650793650795,layerName:"",userDownsample:1,isElement:!0,opacity:1,effects:[],displace:0,trackMouse:0,anchorPoint:"center",mouseMomentum:0,blendMode:"NORMAL",bgDisplace:0,mask:0,maskBackground:{type:"Vec3",_x:0,_y:0,_z:0},maskAlpha:0,maskDepth:0,dispersion:0,axisTilt:0,states:{appear:[],scroll:[],hover:[]},layerType:"shape",width:.49660178547135064,widthMode:"relative",height:.4600869483043395,heightMode:"auto",left:.35409161821999585,leftMode:"relative",top:.6850280273460352,topMode:"relative",rotation:0,pos:{type:"Vec2",_x:.5,_y:.5},borderRadius:0,gradientAngle:0,strokeWidth:0,coords:[[0,0],[.49660178547135064,0],[.49660178547135064,.4600869483043395],[0,.4600869483043395]],fill:["#7001D7"],fitToCanvas:!1,gradientType:"linear",type:"circle",stroke:["#000000"],numSides:3,compiledFragmentShaders:[`#version 300 es
599
- precision highp float; in vec2 vTextureCoord; in vec3 vVertexPosition;uniform sampler2D uBgTexture; uniform sampler2D uTexture; uniform vec2 uMousePos; uniform int uSampleBg;out vec4 fragColor;void main() { vec2 uv = vTextureCoord; vec2 pos = mix(vec2(0), (uMousePos - 0.5), 0.0000);uv = uv - pos;vec4 color = texture(uTexture, uv); vec4 background = vec4(0);if(uSampleBg == 1) { background = texture(uBgTexture, vTextureCoord); }color = mix(background, color / max(color.a, 0.0001), color.a * 1.0000);fragColor = color; }`],compiledVertexShaders:[`#version 300 es
600
- precision highp float;in vec3 aVertexPosition; in vec2 aTextureCoord;uniform mat4 uMVMatrix; uniform mat4 uPMatrix; uniform mat4 uTextureMatrix; uniform vec2 uMousePos;out vec2 vTextureCoord; out vec3 vVertexPosition;void main() { float angleX = uMousePos.y * 0.5 - 0.25; float angleY = (1.-uMousePos.x) * 0.5 - 0.25;mat4 rotateX = mat4(1.0, 0.0, 0.0, 0.0, 0.0, cos(angleX), -sin(angleX), 0.0, 0.0, sin(angleX), cos(angleX), 0.0, 0.0, 0.0, 0.0, 1.0); mat4 rotateY = mat4(cos(angleY), 0.0, sin(angleY), 0.0, 0.0, 1.0, 0.0, 0.0, -sin(angleY), 0.0, cos(angleY), 0.0, 0.0, 0.0, 0.0, 1.0);mat4 rotationMatrix = rotateX * rotateY; gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0); vVertexPosition = (rotationMatrix * vec4(aVertexPosition, 1.0)).xyz; vTextureCoord = (uTextureMatrix * vec4(aTextureCoord, 0.0, 1.0)).xy; }`],data:{uniforms:{}},id:"shape"},{breakpoints:[],visible:!0,locked:!1,aspectRatio:1.0158730158730158,layerName:"",userDownsample:1,isElement:!0,opacity:1,effects:[],displace:0,trackMouse:0,anchorPoint:"center",mouseMomentum:0,blendMode:"MULTIPLY",bgDisplace:0,mask:0,maskBackground:{type:"Vec3",_x:0,_y:0,_z:0},maskAlpha:0,maskDepth:0,dispersion:0,axisTilt:0,states:{appear:[],scroll:[],hover:[]},layerType:"shape",width:.46738991573774175,widthMode:"relative",height:.46008694830433955,heightMode:"auto",left:.7457263018329404,leftMode:"relative",top:.5757566919333954,topMode:"relative",rotation:0,pos:{type:"Vec2",_x:.5,_y:.5},borderRadius:0,gradientAngle:0,strokeWidth:0,coords:[[0,0],[.46738991573774175,0],[.46738991573774175,.46008694830433955],[0,.46008694830433955]],fill:["#4E21AC"],fitToCanvas:!1,gradientType:"linear",type:"circle",stroke:["#000000"],numSides:3,compiledFragmentShaders:[`#version 300 es
601
- precision highp float; in vec2 vTextureCoord; in vec3 vVertexPosition;uniform vec2 uResolution; uniform vec2 uMousePos; uniform sampler2D uBgTexture; uniform sampler2D uPreviousLayerTexture; uniform sampler2D uTexture; uniform int uSampleBg;vec3 blend (int blendMode, vec3 src, vec3 dst) { return src * dst; }const float STEPS = 24.0; const float PI = 3.1415926;vec2 perspectiveUV(vec2 uv) { float aspectRatio = uResolution.x/uResolution.y; vec2 centeredUV = uv - 0.5; centeredUV.x *= aspectRatio; float strength = 1.0 + (vVertexPosition.z * 0.0000); vec2 perspectiveUV = centeredUV / strength; perspectiveUV.x /= aspectRatio; perspectiveUV += 0.5; return perspectiveUV; }out vec4 fragColor;void main() { vec2 uv = vTextureCoord; vec2 pos = mix(vec2(0), (uMousePos - 0.5), 0.0000); uv = perspectiveUV(uv) - pos; vec4 background = vec4(0);if(uSampleBg == 1) { background = texture(uBgTexture, vTextureCoord); } vec4 color = texture(uTexture, uv);if (0.0000 == 1.00) { if(0 == 2) { background *= (1. - color.a); color = background; } else { background *= color.a; color.rgb = background.rgb; color.rgb = 0.0000 > 0. ? mix(vec3(0, 0, 0), color.rgb, color.a) : color.rgb; color.a = min(1., color.a + 0.0000); if(0 == 1) { vec4 previousLayer = texture(uPreviousLayerTexture, vTextureCoord); color = mix(previousLayer, color/max(color.a, 0.0001), color.a * 1.0000); } } fragColor = color; return; }if (3 > 0) { vec3 unpremultColor = color.rgb / max(color.a, 0.0001); vec3 blendedColor = blend(3, unpremultColor, background.rgb); color = vec4(blendedColor, 1.0) * (color.a * 1.0000); color = color + background * (1.0 - color.a); } else { color = mix(background, color + background * (1.0 - color.a), 1.0000); }fragColor = color; }`],compiledVertexShaders:[`#version 300 es
602
- precision highp float;in vec3 aVertexPosition; in vec2 aTextureCoord;uniform mat4 uMVMatrix; uniform mat4 uPMatrix; uniform mat4 uTextureMatrix; uniform vec2 uMousePos;out vec2 vTextureCoord; out vec3 vVertexPosition;void main() { float angleX = uMousePos.y * 0.5 - 0.25; float angleY = (1.-uMousePos.x) * 0.5 - 0.25;mat4 rotateX = mat4(1.0, 0.0, 0.0, 0.0, 0.0, cos(angleX), -sin(angleX), 0.0, 0.0, sin(angleX), cos(angleX), 0.0, 0.0, 0.0, 0.0, 1.0); mat4 rotateY = mat4(cos(angleY), 0.0, sin(angleY), 0.0, 0.0, 1.0, 0.0, 0.0, -sin(angleY), 0.0, cos(angleY), 0.0, 0.0, 0.0, 0.0, 1.0);mat4 rotationMatrix = rotateX * rotateY; gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0); vVertexPosition = (rotationMatrix * vec4(aVertexPosition, 1.0)).xyz; vTextureCoord = (uTextureMatrix * vec4(aTextureCoord, 0.0, 1.0)).xy; }`],data:{uniforms:{}},id:"shape1"},{breakpoints:[],visible:!0,locked:!1,aspectRatio:.996031746031746,layerName:"",userDownsample:1,isElement:!0,opacity:1,effects:[],displace:0,trackMouse:0,anchorPoint:"center",mouseMomentum:0,blendMode:"MULTIPLY",bgDisplace:0,mask:0,maskBackground:{type:"Vec3",_x:0,_y:0,_z:0},maskAlpha:0,maskDepth:0,dispersion:0,axisTilt:0,states:{appear:[],scroll:[],hover:[]},layerType:"shape",width:.45826120644598894,widthMode:"relative",height:.4600869483043395,heightMode:"auto",left:.49185679854495884,leftMode:"relative",top:.35992750274551055,topMode:"relative",rotation:0,pos:{type:"Vec2",_x:.5,_y:.5},borderRadius:0,gradientAngle:0,strokeWidth:0,coords:[[0,0],[.45826120644598894,0],[.45826120644598894,.4600869483043395],[0,.4600869483043395]],fill:["#FFC7E6"],fitToCanvas:!1,gradientType:"linear",type:"rectangle",stroke:["#000000"],numSides:3,compiledFragmentShaders:[`#version 300 es
603
- precision highp float; in vec2 vTextureCoord; in vec3 vVertexPosition;uniform vec2 uResolution; uniform vec2 uMousePos; uniform sampler2D uBgTexture; uniform sampler2D uPreviousLayerTexture; uniform sampler2D uTexture; uniform int uSampleBg;vec3 blend (int blendMode, vec3 src, vec3 dst) { return src * dst; }const float STEPS = 24.0; const float PI = 3.1415926;vec2 perspectiveUV(vec2 uv) { float aspectRatio = uResolution.x/uResolution.y; vec2 centeredUV = uv - 0.5; centeredUV.x *= aspectRatio; float strength = 1.0 + (vVertexPosition.z * 0.0000); vec2 perspectiveUV = centeredUV / strength; perspectiveUV.x /= aspectRatio; perspectiveUV += 0.5; return perspectiveUV; }out vec4 fragColor;void main() { vec2 uv = vTextureCoord; vec2 pos = mix(vec2(0), (uMousePos - 0.5), 0.0000); uv = perspectiveUV(uv) - pos; vec4 background = vec4(0);if(uSampleBg == 1) { background = texture(uBgTexture, vTextureCoord); } vec4 color = texture(uTexture, uv);if (0.0000 == 1.00) { if(0 == 2) { background *= (1. - color.a); color = background; } else { background *= color.a; color.rgb = background.rgb; color.rgb = 0.0000 > 0. ? mix(vec3(0, 0, 0), color.rgb, color.a) : color.rgb; color.a = min(1., color.a + 0.0000); if(0 == 1) { vec4 previousLayer = texture(uPreviousLayerTexture, vTextureCoord); color = mix(previousLayer, color/max(color.a, 0.0001), color.a * 1.0000); } } fragColor = color; return; }if (3 > 0) { vec3 unpremultColor = color.rgb / max(color.a, 0.0001); vec3 blendedColor = blend(3, unpremultColor, background.rgb); color = vec4(blendedColor, 1.0) * (color.a * 1.0000); color = color + background * (1.0 - color.a); } else { color = mix(background, color + background * (1.0 - color.a), 1.0000); }fragColor = color; }`],compiledVertexShaders:[`#version 300 es
604
- precision highp float;in vec3 aVertexPosition; in vec2 aTextureCoord;uniform mat4 uMVMatrix; uniform mat4 uPMatrix; uniform mat4 uTextureMatrix; uniform vec2 uMousePos;out vec2 vTextureCoord; out vec3 vVertexPosition;void main() { float angleX = uMousePos.y * 0.5 - 0.25; float angleY = (1.-uMousePos.x) * 0.5 - 0.25;mat4 rotateX = mat4(1.0, 0.0, 0.0, 0.0, 0.0, cos(angleX), -sin(angleX), 0.0, 0.0, sin(angleX), cos(angleX), 0.0, 0.0, 0.0, 0.0, 1.0); mat4 rotateY = mat4(cos(angleY), 0.0, sin(angleY), 0.0, 0.0, 1.0, 0.0, 0.0, -sin(angleY), 0.0, cos(angleY), 0.0, 0.0, 0.0, 0.0, 1.0);mat4 rotationMatrix = rotateX * rotateY; gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0); vVertexPosition = (rotationMatrix * vec4(aVertexPosition, 1.0)).xyz; vTextureCoord = (uTextureMatrix * vec4(aTextureCoord, 0.0, 1.0)).xy; }`],data:{uniforms:{}},id:"shape2"},{breakpoints:[],visible:!0,aspectRatio:1,userDownsample:1,layerType:"effect",type:"blur",usesPingPong:!1,trackMouse:0,mouseMomentum:0,texture:!1,animating:!1,isMask:0,compiledFragmentShaders:[`#version 300 es
605
- precision highp float; precision highp int;in vec3 vVertexPosition; in vec2 vTextureCoord;uniform sampler2D uTexture; uniform vec2 uMousePos; uniform vec2 uResolution; float ease (int easingFunc, float t) { return t; }out vec4 fragColor;const int kernelSize = 36; float getGaussianWeight(int index) { switch(index) { case 0: return 0.00094768; case 1: return 0.00151965; case 2: return 0.00237008; case 3: return 0.00359517; case 4: return 0.0053041; case 5: return 0.00761097; case 6: return 0.01062197; case 7: return 0.01441804; case 8: return 0.01903459; case 9: return 0.0244409; case 10: return 0.03052299; case 11: return 0.03707432; case 12: return 0.04379813; case 13: return 0.05032389; case 14: return 0.05623791; case 15: return 0.06112521; case 16: return 0.06461716; case 17: return 0.06643724; case 18: return 0.06643724; case 19: return 0.06461716; case 20: return 0.06112521; case 21: return 0.05623791; case 22: return 0.05032389; case 23: return 0.04379813; case 24: return 0.03707432; case 25: return 0.03052299; case 26: return 0.0244409; case 27: return 0.01903459; case 28: return 0.01441804; case 29: return 0.01062197; case 30: return 0.00761097; case 31: return 0.0053041; case 32: return 0.00359517; case 33: return 0.00237008; case 34: return 0.00151965; case 35: return 0.00094768; default: return 0.0; } }vec4 GaussianBlur(sampler2D tex, vec2 uv, vec2 direction) { vec4 color = vec4(0.0); vec2 pos = vec2(0.5, 0.5) + mix(vec2(0), (uMousePos-0.5), 0.0000); float inner = distance(uv, pos); float outer = max(0., 1.-distance(uv, pos));float amt = 0 <= 1 ? 6. : 11.; float amount = (1.0000 * amt) * ease(0, mix(inner, outer, 0.1000)); color += texture(tex, uv) * getGaussianWeight(0); for (int i = 0; i < kernelSize; i++) { float x = float(i - kernelSize / 2) * amount; color += texture(tex, uv + vec2(x * 0.001) * direction * vec2(1.0000, 1. - 1.0000)) * getGaussianWeight(i); } return color; }vec4 blur(vec2 uv, vec2 direction) { return GaussianBlur(uTexture, uv, direction); }void main() { vec2 uv = vTextureCoord; vec4 color = vec4(0); int dir = 0 % 2; vec2 direction = dir == 1 ? vec2(0, uResolution.x/uResolution.y) : vec2(1, 0);color = blur(uv, direction); fragColor = color;}`,`#version 300 es
606
- precision highp float; precision highp int;in vec3 vVertexPosition; in vec2 vTextureCoord;uniform sampler2D uTexture; uniform vec2 uMousePos; uniform vec2 uResolution; float ease (int easingFunc, float t) { return t; }out vec4 fragColor;const int kernelSize = 36; float getGaussianWeight(int index) { switch(index) { case 0: return 0.00094768; case 1: return 0.00151965; case 2: return 0.00237008; case 3: return 0.00359517; case 4: return 0.0053041; case 5: return 0.00761097; case 6: return 0.01062197; case 7: return 0.01441804; case 8: return 0.01903459; case 9: return 0.0244409; case 10: return 0.03052299; case 11: return 0.03707432; case 12: return 0.04379813; case 13: return 0.05032389; case 14: return 0.05623791; case 15: return 0.06112521; case 16: return 0.06461716; case 17: return 0.06643724; case 18: return 0.06643724; case 19: return 0.06461716; case 20: return 0.06112521; case 21: return 0.05623791; case 22: return 0.05032389; case 23: return 0.04379813; case 24: return 0.03707432; case 25: return 0.03052299; case 26: return 0.0244409; case 27: return 0.01903459; case 28: return 0.01441804; case 29: return 0.01062197; case 30: return 0.00761097; case 31: return 0.0053041; case 32: return 0.00359517; case 33: return 0.00237008; case 34: return 0.00151965; case 35: return 0.00094768; default: return 0.0; } }vec4 GaussianBlur(sampler2D tex, vec2 uv, vec2 direction) { vec4 color = vec4(0.0); vec2 pos = vec2(0.5, 0.5) + mix(vec2(0), (uMousePos-0.5), 0.0000); float inner = distance(uv, pos); float outer = max(0., 1.-distance(uv, pos));float amt = 1 <= 1 ? 6. : 11.; float amount = (1.0000 * amt) * ease(0, mix(inner, outer, 0.1000)); color += texture(tex, uv) * getGaussianWeight(0); for (int i = 0; i < kernelSize; i++) { float x = float(i - kernelSize / 2) * amount; color += texture(tex, uv + vec2(x * 0.001) * direction * vec2(1.0000, 1. - 1.0000)) * getGaussianWeight(i); } return color; }vec4 blur(vec2 uv, vec2 direction) { return GaussianBlur(uTexture, uv, direction); }void main() { vec2 uv = vTextureCoord; vec4 color = vec4(0); int dir = 1 % 2; vec2 direction = dir == 1 ? vec2(0, uResolution.x/uResolution.y) : vec2(1, 0);color = blur(uv, direction); fragColor = color;}`,`#version 300 es
607
- precision highp float; precision highp int;in vec3 vVertexPosition; in vec2 vTextureCoord;uniform sampler2D uTexture; uniform vec2 uMousePos; uniform vec2 uResolution; float ease (int easingFunc, float t) { return t; }out vec4 fragColor;const int kernelSize = 36; float getGaussianWeight(int index) { switch(index) { case 0: return 0.00094768; case 1: return 0.00151965; case 2: return 0.00237008; case 3: return 0.00359517; case 4: return 0.0053041; case 5: return 0.00761097; case 6: return 0.01062197; case 7: return 0.01441804; case 8: return 0.01903459; case 9: return 0.0244409; case 10: return 0.03052299; case 11: return 0.03707432; case 12: return 0.04379813; case 13: return 0.05032389; case 14: return 0.05623791; case 15: return 0.06112521; case 16: return 0.06461716; case 17: return 0.06643724; case 18: return 0.06643724; case 19: return 0.06461716; case 20: return 0.06112521; case 21: return 0.05623791; case 22: return 0.05032389; case 23: return 0.04379813; case 24: return 0.03707432; case 25: return 0.03052299; case 26: return 0.0244409; case 27: return 0.01903459; case 28: return 0.01441804; case 29: return 0.01062197; case 30: return 0.00761097; case 31: return 0.0053041; case 32: return 0.00359517; case 33: return 0.00237008; case 34: return 0.00151965; case 35: return 0.00094768; default: return 0.0; } }vec4 GaussianBlur(sampler2D tex, vec2 uv, vec2 direction) { vec4 color = vec4(0.0); vec2 pos = vec2(0.5, 0.5) + mix(vec2(0), (uMousePos-0.5), 0.0000); float inner = distance(uv, pos); float outer = max(0., 1.-distance(uv, pos));float amt = 2 <= 1 ? 6. : 11.; float amount = (1.0000 * amt) * ease(0, mix(inner, outer, 0.1000)); color += texture(tex, uv) * getGaussianWeight(0); for (int i = 0; i < kernelSize; i++) { float x = float(i - kernelSize / 2) * amount; color += texture(tex, uv + vec2(x * 0.001) * direction * vec2(1.0000, 1. - 1.0000)) * getGaussianWeight(i); } return color; }vec4 blur(vec2 uv, vec2 direction) { return GaussianBlur(uTexture, uv, direction); }void main() { vec2 uv = vTextureCoord; vec4 color = vec4(0); int dir = 2 % 2; vec2 direction = dir == 1 ? vec2(0, uResolution.x/uResolution.y) : vec2(1, 0);color = blur(uv, direction); fragColor = color;}`,`#version 300 es
608
- precision highp float; precision highp int;in vec3 vVertexPosition; in vec2 vTextureCoord;uniform sampler2D uTexture; uniform vec2 uMousePos; uniform vec2 uResolution; float ease (int easingFunc, float t) { return t; } uvec2 pcg2d(uvec2 v) { v = v * 1664525u + 1013904223u; v.x += v.y * v.y * 1664525u + 1013904223u; v.y += v.x * v.x * 1664525u + 1013904223u; v ^= v >> 16; v.x += v.y * v.y * 1664525u + 1013904223u; v.y += v.x * v.x * 1664525u + 1013904223u; return v; }float randFibo(vec2 p) { uvec2 v = floatBitsToUint(p); v = pcg2d(v); uint r = v.x ^ v.y; return float(r) / float(0xffffffffu); }out vec4 fragColor;const int kernelSize = 36; float getGaussianWeight(int index) { switch(index) { case 0: return 0.00094768; case 1: return 0.00151965; case 2: return 0.00237008; case 3: return 0.00359517; case 4: return 0.0053041; case 5: return 0.00761097; case 6: return 0.01062197; case 7: return 0.01441804; case 8: return 0.01903459; case 9: return 0.0244409; case 10: return 0.03052299; case 11: return 0.03707432; case 12: return 0.04379813; case 13: return 0.05032389; case 14: return 0.05623791; case 15: return 0.06112521; case 16: return 0.06461716; case 17: return 0.06643724; case 18: return 0.06643724; case 19: return 0.06461716; case 20: return 0.06112521; case 21: return 0.05623791; case 22: return 0.05032389; case 23: return 0.04379813; case 24: return 0.03707432; case 25: return 0.03052299; case 26: return 0.0244409; case 27: return 0.01903459; case 28: return 0.01441804; case 29: return 0.01062197; case 30: return 0.00761097; case 31: return 0.0053041; case 32: return 0.00359517; case 33: return 0.00237008; case 34: return 0.00151965; case 35: return 0.00094768; default: return 0.0; } }vec4 GaussianBlur(sampler2D tex, vec2 uv, vec2 direction) { vec4 color = vec4(0.0); vec2 pos = vec2(0.5, 0.5) + mix(vec2(0), (uMousePos-0.5), 0.0000); float inner = distance(uv, pos); float outer = max(0., 1.-distance(uv, pos));float amt = 3 <= 1 ? 6. : 11.; float amount = (1.0000 * amt) * ease(0, mix(inner, outer, 0.1000)); color += texture(tex, uv) * getGaussianWeight(0); for (int i = 0; i < kernelSize; i++) { float x = float(i - kernelSize / 2) * amount; color += texture(tex, uv + vec2(x * 0.001) * direction * vec2(1.0000, 1. - 1.0000)) * getGaussianWeight(i); } return color; }vec4 blur(vec2 uv, vec2 direction) { return GaussianBlur(uTexture, uv, direction); }void main() { vec2 uv = vTextureCoord; vec4 color = vec4(0); int dir = 3 % 2; vec2 direction = dir == 1 ? vec2(0, uResolution.x/uResolution.y) : vec2(1, 0);color = blur(uv, direction);float dither = (randFibo(gl_FragCoord.xy) - 0.5) / 255.0; color.rgb += dither; fragColor = color;}`],compiledVertexShaders:[`#version 300 es
609
- precision mediump float;in vec3 aVertexPosition; in vec2 aTextureCoord;uniform mat4 uMVMatrix; uniform mat4 uPMatrix; uniform mat4 uTextureMatrix;out vec2 vTextureCoord; out vec3 vVertexPosition;void main() { gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0); vTextureCoord = (uTextureMatrix * vec4(aTextureCoord, 0.0, 1.0)).xy; }`],data:{downSample:.25,depth:!1,uniforms:{},isBackground:!1,passes:[{prop:"vertical",value:1,downSample:.25},{prop:"vertical",value:2,downSample:.5},{prop:"vertical",value:3,downSample:.5}]},id:"effect1"},{breakpoints:[],visible:!0,aspectRatio:1,userDownsample:1,layerType:"effect",type:"sdf_shape",usesPingPong:!1,texture:!1,speed:1,trackMouseMove:0,mouseMomentum:1,trackMouse:.15,animating:!0,isMask:0,compiledFragmentShaders:[`#version 300 es
610
- precision highp float; precision highp int;in vec2 vTextureCoord; uniform sampler2D uTexture;uniform float uTime;uniform vec2 uMousePos; uniform vec2 uResolution;uvec2 pcg2d(uvec2 v) { v = v * 1664525u + 1013904223u; v.x += v.y * v.y * 1664525u + 1013904223u; v.y += v.x * v.x * 1664525u + 1013904223u; v ^= v >> 16; v.x += v.y * v.y * 1664525u + 1013904223u; v.y += v.x * v.x * 1664525u + 1013904223u; return v; }float randFibo(vec2 p) { uvec2 v = floatBitsToUint(p); v = pcg2d(v); uint r = v.x ^ v.y; return float(r) / float(0xffffffffu); }const float PI = 3.141592653; const float PI2 = 6.283185306; const int DISP_STEPS = 12; const vec3 viewDir = vec3(0,0, -4.25);ivec2 customTexSize; float customTexAspect;const mat3 ROT_Y_90 = mat3( 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, -1.0, 0.0, 0.0 );const mat3 ROT_Z_90 = mat3( 0.0, -1.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 );const mat3 ROT_X_90 = mat3( 1.0, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 1.0, 0.0 );mat3 rotY(float ang) { float c = cos(ang), s = sin(ang); return mat3(c, 0.0, s, 0.0, 1.0, 0.0, -s, 0.0, c); }mat3 rotX(float ang) { float c = cos(ang), s = sin(ang); return mat3(1.0, 0.0, 0.0, 0.0, c, -s, 0.0, s, c); }mat3 rotZ(float ang) { float c = cos(ang), s = sin(ang); return mat3(c, -s, 0.0, s, c, 0.0, 0.0, 0.0, 1.0); }mat2 rot(float a) { float s = sin(a); float c = cos(a); return mat2(c, -s, s, c); }vec3 twistY(vec3 p, float amount) { float c = cos(amount * p.y); float s = sin(amount * p.y); mat2 m = mat2(c, -s, s, c); return vec3(m * p.xz, p.y); }vec3 twistX(vec3 p, float amount) { float c = cos(amount * p.x); float s = sin(amount * p.x); mat2 m = mat2(c, -s, s, c); return vec3(p.x, m * p.yz); }float smin(float a, float b, float k) { float h = max(k - abs(a - b), 0.0); return min(a, b) - h * h * 0.25 / k; }float sphere(vec3 p, float r) { return length(p) - r; }float sdfCylinder(vec3 p, float radius, float height) { vec2 d = abs(vec2(length(p.xz) - radius, p.y)) - vec2(radius, height * 0.5); return min(max(d.x, d.y), 0.0) + length(max(d, 0.0)); }float sdStar5(vec2 p, float r, float rf) { const vec2 k1 = vec2(0.809016994375, -0.587785252292); const vec2 k2 = vec2(-k1.x,k1.y); p.x = abs(p.x); p -= 2.0*max(dot(k1,p),0.0)*k1; p -= 2.0*max(dot(k2,p),0.0)*k2; p.x = abs(p.x); p.y -= r; vec2 ba = rf*vec2(-k1.y,k1.x) - vec2(0,1); float h = clamp( dot(p,ba)/dot(ba,ba), 0.0, r ); return length(p-ba*h) * sign(p.y*ba.x-p.x*ba.y); }float mergedDiscs(vec3 p) { float result = sdfCylinder(p, 0.7, 0.01 + 0.0000 * 0.5);for(float i = 1.; i < 4.; i++) { float angle = (i * 45.)/360. * 2.0 * PI; mat2 rotZMat = rot(angle); vec3 rotatedP = vec3(rotZMat * p.xy, p.z);result = smin( result, sdfCylinder(rotatedP, 0.7, 0.01 + 0.0000 * 0.5), 0.2 ); }return max(result, sphere(p, 1.4)); }vec3 getRepeat(vec3 p) { float spacing = (0.5000 + 0.4800 * 0.38) * 8.; return p; }vec3 getThreeDRepeat(vec3 p) { float spacing = (0.5000 + 0.4800 * 0.38) * 8.; return p; }vec3 getAdjustedP(vec3 p) { float scale = max(0.2600, 0.000000001); float scaleFactor = 1.0/scale; vec3 adjustedP = p * scaleFactor;vec2 twist = vec2(0.7, 0.82);adjustedP.xy *= vec2(uResolution.x / uResolution.y, 1);adjustedP *= (1. + (0.4800 + 0.01));vec2 mousePos = mix(vec2(0), uMousePos - 0.5, 0.1500); vec2 axis = vec2(-1. * vec3(0.48503740648379057, 0.5187032418952618, 0.6966).y - 1. + mousePos.y/PI, vec3(0.48503740648379057, 0.5187032418952618, 0.6966).x + mousePos.x/PI) * 2.;adjustedP = getRepeat(adjustedP);float baseTime = uTime * 0.02; float timeX = vec3(0, 1.2, 0).x * baseTime; float timeY = vec3(0, 1.2, 0).y * baseTime; float timeZ = vec3(0, 1.2, 0).z * baseTime;mat3 rotYMat = rotY(axis.y * PI); mat3 rotXMat = rotX(axis.x * PI); mat3 rotZMat = rotZ(vec3(0.48503740648379057, 0.5187032418952618, 0.6966).z * 2.0 * PI);mat3 combinedRotation = rotZMat * rotYMat * rotXMat; mat3 combinedAnimation = rotZ(timeZ) * rotX(timeX) * rotY(timeY);adjustedP = combinedRotation * adjustedP; adjustedP = combinedAnimation * adjustedP; adjustedP = getThreeDRepeat(adjustedP); adjustedP = mix(adjustedP, twistY(adjustedP, -1.0 * twist.y), step(0.0, abs(twist.y))); adjustedP = mix(adjustedP, twistX(adjustedP, -1.0 * twist.x), step(0.0, abs(twist.x)));return adjustedP; }float getMergedSDF(vec3 p) { p = getAdjustedP(p); return mergedDiscs(p); }float fresnel(vec3 eyeVector, vec3 worldNormal, float power) { float NdotV = abs(dot(eyeVector, worldNormal)); float width = fwidth(dot(eyeVector, worldNormal)); float threshold = 0.2; float edgeDampFactor = smoothstep(threshold, -threshold, width); float fresnelFactor = 1.0 - NdotV; return pow(fresnelFactor, power) * mix(1., edgeDampFactor * 2., 0.5); }vec3 noFrostOrDispersion(vec3 rd, vec3 normal) { float ior = 1.0 / (1.0 + 0.7000 * 0.25); vec3 refractedRay = refract(rd, normal, ior); return texture(uTexture, vTextureCoord - refractedRay.xy).rgb; }vec3 frostOrDispersion(vec3 rd, vec3 normal) { vec3 refractionColor = vec3(0); float iorBase = 1. + 0.7000 * 0.25;vec3 dispCoefficients = vec3(0.03, 0.06, 0.1) * 0.2500 * 1.2;for (int i = 0; i < DISP_STEPS; ++i) { float step = float(i) / float(DISP_STEPS); vec3 disp = step * dispCoefficients; vec3 ior = 1.0 / (iorBase + disp);vec3 refractedRayR = refract(rd, normal, ior.r); vec3 refractedRayG = refract(rd, normal, ior.g); vec3 refractedRayB = refract(rd, normal, ior.b);refractionColor.r += texture(uTexture, vTextureCoord - refractedRayR.xy).r; refractionColor.g += texture(uTexture, vTextureCoord - refractedRayG.xy).g; refractionColor.b += texture(uTexture, vTextureCoord - refractedRayB.xy).b; }return clamp(refractionColor / float(DISP_STEPS), 0.0, 1.0); }vec3 calculateNormal(vec3 p, float eps) { vec2 e = vec2(1.0, -1.0) * eps * 0.5; return normalize( e.xyy * getMergedSDF(p + e.xyy) + e.yyx * getMergedSDF(p + e.yyx) + e.yxy * getMergedSDF(p + e.yxy) + e.xxx * getMergedSDF(p + e.xxx) ); }vec3 sampleTexture(vec3 rd, vec3 normal) {return frostOrDispersion(rd, normal); return noFrostOrDispersion(rd, normal); }float scene(vec3 p) { return max(0.0000000001, getMergedSDF(p) - (0.4800 + 0.005)) * max(0.2600, 0.000000001); }const int STEPS = 128; const float MAX_DISTANCE = 100.0;vec4 rayMarch(vec3 ro, vec3 rd) { float pixelSize = 0.0025; float traveled = 0.; vec3 entryPoint = vec3(0.0); vec3 entryNormal = vec3(0.0); float partialAlpha = 0.0; float lastDistance = 0.0; float smoothing = mix(1., 4., 1.0000);for (int i = 0; i < STEPS; ++i) { vec3 currentPos = ro + rd * traveled; float distance = scene(currentPos); float progress = float(i)/float(STEPS); float step = distance * mix(1., 1.5, progress);if (distance > MAX_DISTANCE) break;if (distance < pixelSize) { partialAlpha = 1.; entryPoint = currentPos; entryNormal = calculateNormal(entryPoint, pixelSize * smoothing); break; }lastDistance = distance;traveled += max(step, pixelSize); if (traveled > MAX_DISTANCE) break; }if (partialAlpha == 0.0) { return texture(uTexture, vTextureCoord); }vec3 samplePosition = mix(rd, entryPoint, 0.0000);vec3 refractionColor = vec3(0.0);refractionColor = sampleTexture(samplePosition, entryNormal); vec3 lightDir = vec3(((vec2(vec3(0.25, 0.25, -3).x, 1.-vec3(0.25, 0.25, -3).y) - 0.333) * 3.) - vec2(0.5, 0.5), vec3(0.25, 0.25, -3).z); vec3 normLightDir = normalize(lightDir);float lightAndShadow = dot(entryNormal, normLightDir); vec3 lightColor = mix(vec3(1), vec3(1, 1, 1), 1. - 0.0000); vec3 fresnelEffect = vec3(0.0);fresnelEffect = fresnel(rd, entryNormal, 8.0) * 0.3000 * vec3(1, 1, 1);vec3 specularEffect = vec3(0.0);vec3 halfwayDir = normalize(lightDir + rd); float specFactor = pow(max(dot(entryNormal, halfwayDir), 0.0), 64.0 * 0.3000 + 0.01); specularEffect = specFactor * 0.3000 * lightColor;vec3 combinedEffects = fresnelEffect + specularEffect; vec3 finalColor = mix(refractionColor, vec3(1, 1, 1) * lightAndShadow, 0.0000); finalColor += combinedEffects;vec4 outputColor = vec4(finalColor, 1.);return outputColor; }out vec4 fragColor;void main() { vec4 col = vec4(0); vec4 bg = texture(uTexture, vTextureCoord);if(0.2600 <= 0.0001 || 0.5000 <= 0.0001) { col = vec4(0); if(1 == 1) { col = bg; } fragColor = col; return; }vec2 pos = vec2(0.5, 0.5) + mix(vec2(0), (uMousePos-0.5), 0.0000); vec2 uv = vTextureCoord - pos; float fovFactor = tan(radians(20.) * 0.5); vec3 rd = vec3(uv * fovFactor, 0.5); col = rayMarch(viewDir, rd); float dither = (randFibo(vTextureCoord.xy) - 0.5) / 255.0; col += dither;col = mix(bg, col, 0.5000); fragColor = col;}`],compiledVertexShaders:[`#version 300 es
611
- precision mediump float;in vec3 aVertexPosition; in vec2 aTextureCoord;uniform mat4 uMVMatrix; uniform mat4 uPMatrix; uniform mat4 uTextureMatrix;out vec2 vTextureCoord; out vec3 vVertexPosition;void main() { gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0); vTextureCoord = (uTextureMatrix * vec4(aTextureCoord, 0.0, 1.0)).xy; }`],data:{depth:!1,uniforms:{},isBackground:!1},id:"effect2"},{breakpoints:[],visible:!0,aspectRatio:1,userDownsample:1,layerType:"effect",type:"sphere",usesPingPong:!1,trackMouse:0,mouseMomentum:0,texture:!1,animating:!1,isMask:0,compiledFragmentShaders:[`#version 300 es
612
- precision mediump float; in vec3 vVertexPosition; in vec2 vTextureCoord; uniform sampler2D uTexture; uniform vec2 uMousePos; uniform vec2 uResolution;const float STEPS = 16.0; const float PI = 3.1415926;vec3 chromaticAbberation(vec2 st, float angle, float amount, float blend) { float aspectRatio = uResolution.x/uResolution.y; float rotation = angle * 360.0 * PI / 180.0; vec2 aberrated = amount * vec2(0.1 * sin(rotation) * aspectRatio, 0.1 * cos(rotation)); aberrated *= distance(st, vec2(0.5)) * 2.0; vec4 red = vec4(0); vec4 blue = vec4(0); vec4 green = vec4(0); float invSteps = 1.0 / STEPS; float invStepsHalf = invSteps * 0.5; for(float i = 1.0; i <= STEPS; i++) { vec2 offset = aberrated * (i * invSteps); red += texture(uTexture, st - offset) * invSteps; blue += texture(uTexture, st + offset) * invSteps; }for (float i = 0.0; i <= STEPS; i++) { vec2 offset = aberrated * ((i * invSteps) - 0.5); green += texture(uTexture, st + offset) * invSteps; } return vec3(red.r, green.g, blue.b); }vec2 sphericalTransformation( float u, float v, float uCenter, float vCenter, float lensRadius, float tau) { float aspectRatio = uResolution.x/uResolution.y; u -= uCenter; v -= vCenter;float s = sqrt(u * u + v * v); if (s > lensRadius) return vec2(u + uCenter, v + vCenter);float z = sqrt(lensRadius * lensRadius - s * s);float uAlpha = (1.0 - (1.0 / tau)) * asin(u / lensRadius); float vAlpha = (1.0 - (1.0 / tau)) * asin(v / lensRadius);u = uCenter + z * sin(uAlpha); v = vCenter + z * sin(vAlpha);return vec2(u/aspectRatio, v); }float circularIn(float t) { return 1.0 - sqrt(1.0 - t * t); }vec2 fisheyeTransformation( float u, float v, float uCenter, float vCenter, float lensRadius, float distortionScale ) { float aspectRatio = uResolution.x / uResolution.y;vec2 dir = vec2(u - uCenter, v - vCenter);dir.x /= lensRadius; dir.y /= lensRadius;float dist = length(dir) * 0.15;if (dist < 1.0) { float theta = atan(dir.y, dir.x);float r = dist * 2.0 * PI; float z = sqrt(1.0 - r * r) + 0.25; float rDist = atan(r, z) / PI; float newDist = mix(dist, rDist, 5.);dir.x = newDist * cos(theta); dir.y = newDist * sin(theta); }dir.x *= lensRadius; dir.y *= lensRadius;return mix(vec2(u/aspectRatio, v), vec2(uCenter/aspectRatio, vCenter) + dir, 1.0000); }vec2 discTransformation( float u, float v, float uCenter, float vCenter, float lensRadius, float distortionScale) { float aspectRatio = uResolution.x/uResolution.y; u -= uCenter; v -= vCenter;float s = sqrt(u * u + v * v); if (s > lensRadius) return vec2(u + uCenter, v + vCenter); float r = sqrt(u * u + v * v) / lensRadius; if(r == 0.0) return vec2(uCenter, vCenter);r = pow(r, distortionScale); float theta = atan(r); float rad = theta / r;u = rad * u + uCenter; v = rad * v + vCenter;return vec2(u/aspectRatio, v); }out vec4 fragColor; void main() { vec2 uv = vTextureCoord; vec4 color = texture(uTexture, uv); float aspectRatio = uResolution.x/uResolution.y; uv.x = uv.x * aspectRatio; vec2 sphereCoords = uv; vec2 pos = vec2(0.5, 0.5) + mix(vec2(0), (uMousePos-0.5), 0.0000); pos.x *= aspectRatio;float radius = 0.5000 * uResolution.x/max(uResolution.x, uResolution.y);if(1 == 0) { sphereCoords = sphericalTransformation( mix(sphereCoords.x, 1.-sphereCoords.x, 0.0000), mix(sphereCoords.y, 1.-sphereCoords.y, 0.0000), mix(pos.x, 1.-pos.x, 0.0000), mix(pos.y, 1.-pos.y, 0.0000), radius/2., 1. + 1.0000 * 9. ); } else if(1 == 1) { sphereCoords = discTransformation( mix(sphereCoords.x, 1.-sphereCoords.x, 0.0000), mix(sphereCoords.y, 1.-sphereCoords.y, 0.0000), mix(pos.x, 1.-pos.x, 0.0000), mix(pos.y, 1.-pos.y, 0.0000), radius/2., 1. + 1.0000 * 9. ); } else if(1 == 2) { sphereCoords = fisheyeTransformation( mix(sphereCoords.x, 1.-sphereCoords.x, 0.0000), mix(sphereCoords.y, 1.-sphereCoords.y, 0.0000), mix(pos.x, 1.-pos.x, 0.0000), mix(pos.y, 1.-pos.y, 0.0000), radius/2., 1. + 1.0000 * 9. ); }vec2 scaledCoords = (sphereCoords - 0.5) + 0.5; vec4 sphere = texture(uTexture, clamp(scaledCoords, 0.0, 1.0)); float distFromPos = distance(uv, pos); float edgeSmooth = 0.001; float insideSphere = 1.0 - smoothstep(radius/2.0 - edgeSmooth, radius/2.0, distFromPos); float insideSphereAlpha = 1.0 - smoothstep(radius/2.0 + 0.002 - edgeSmooth, radius/2.0 + 0.002, distFromPos); sphere.rgb = chromaticAbberation(scaledCoords, atan(scaledCoords.y, scaledCoords.x), distFromPos * 1.0000, 1.0); color = mix(color, sphere, insideSphere); color.rgb += vec3((0.5000-0.5)*2.) * mix(0., circularIn(smoothstep(0., radius, distFromPos)), insideSphere); if(1 == 1) { color.a = insideSphereAlpha; color.rgb = mix(vec3(0), color.rgb, insideSphereAlpha); } fragColor = color;}`],compiledVertexShaders:[`#version 300 es
613
- precision mediump float;in vec3 aVertexPosition; in vec2 aTextureCoord;uniform mat4 uMVMatrix; uniform mat4 uPMatrix; uniform mat4 uTextureMatrix;out vec2 vTextureCoord; out vec3 vVertexPosition;void main() { gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0); vTextureCoord = (uTextureMatrix * vec4(aTextureCoord, 0.0, 1.0)).xy; }`],data:{depth:!1,uniforms:{},isBackground:!1},id:"effect3"}],options:{name:"zAI Orb final",fps:60,dpi:1.5,scale:1,includeLogo:!1,isProduction:!1},version:"1.4.29",id:"l9tOlEGo3rE5cxAzUCHg"});function y1({className:e,dpi:t=2,scale:r=1,fps:a=60,onScene:o,onError:n}){const i=z.useRef(null),s=z.useId();return z.useEffect(()=>{if(!i.current)return;let c=!1,l=null;return(async()=>{try{const u=await g1();if(c||!i.current)return;i.current.setAttribute("data-us-project-src",_i.url),l=u.addScene({filePath:_i.url,elementId:s,dpi:t,scale:r,fps:a});const h=await l;if(c){h.destroy();return}o(h)}catch{c||n()}})(),()=>{c=!0,o(null),l==null||l.then(u=>u.destroy()).catch(()=>{})}},[s,t,r,a]),A.jsx("div",{ref:i,id:s,className:e,role:"img","aria-hidden":!0})}const mo=80,Ao=40,gr=6,v1=1e4,w1=5e3;function po(e,t){return e.find(r=>r.capabilities.includes(t))??null}function k1(e,t){return Promise.race([e.then(r=>r).catch(()=>null),new Promise(r=>setTimeout(()=>r(null),t))])}function Jt(e){if(!Number.isFinite(e))return"—";const t=Math.abs(e);return t>=1e12?`$${(e/1e12).toFixed(2)}T`:t>=1e9?`$${(e/1e9).toFixed(2)}B`:t>=1e6?`$${(e/1e6).toFixed(2)}M`:t>=1e3?`$${Math.round(e).toLocaleString("en-US")}`:`$${e.toFixed(2)}`}function br(e,t=1){return Number.isFinite(e)?`${e>=0?"+":""}${e.toFixed(t)}%`:"—"}function _1(e){if(!Number.isFinite(e))return"—";const t=Math.abs(e),r=t>=1e3?0:t>=1?2:t>=.01?4:6;return`$${e.toLocaleString("en-US",{minimumFractionDigits:r,maximumFractionDigits:r})}`}function x1(e){const t=[];if(typeof e.symbol=="string"&&t.push(e.symbol),Array.isArray(e.symbols))for(const r of e.symbols)typeof r=="string"&&t.push(r);return t}function go(e){return e.filter(t=>t&&t!=="*"&&!t.endsWith(":*"))}function C1(e,t){for(const r of t){const a=e[r];if(typeof a=="string"&&a.trim())return a.trim()}return null}function Xo(e,t){return e.length>t?`${e.slice(0,t-1)}…`:e}function A1(e,t){return e.frames.map(r=>{const a=t.get(r.frame);let o=r.config??{};if(a){const n=a.schema.safeParse(o);n.success&&(o=n.data)}return{type:r.frame,title:r.title,capabilities:(a==null?void 0:a.capabilities)??[],config:o,symbols:x1(o)}})}function S1(e){const t=[];for(const r of e.slice(0,mo)){let a=`- ${r.type}`;if(r.title&&(a+=` "${r.title}"`),r.symbols.length&&(a+=` [${r.symbols.slice(0,Ao).join(", ")}]`),r.symbols.length===0){const o=C1(r.config,["text","content","body","label","timezone","feed"]);o&&(a+=`: ${Xo(o,80)}`)}t.push(a)}return e.length>mo&&t.push(`- …and ${e.length-mo} more frames`),t}function bo(e,t){const r=new Set;for(const a of e)if(a.capabilities.some(o=>t.includes(o)))for(const o of a.symbols)r.add(o);return[...r]}async function T1(e,t){const r=new Set;for(const f of t)for(const d of f.capabilities)r.add(d);const a=f=>r.has(f)&&po(e,f),o=[],n=(f,d,p)=>{const m=a(d);m&&o.push(k1(p(m),w1).then(g=>g?[f,g]:null))},i=go(bo(t,["day-stats","quote-stream","ohlcv"])).slice(0,Ao);i.length&&n(1,"day-stats",async f=>{const d=await f.getDayStats(i),p=i.map(m=>{const g=d[m];return g?`${m} ${_1(g.markPx)} (${br(g.changePct)})`:null}).filter(Boolean);return p.length?`Prices: ${p.join(" · ")}`:null});const s=t.find(f=>f.capabilities.includes("sentiment")),c=typeof(s==null?void 0:s.config.sparklineDays)=="number"?s.config.sparklineDays:30;n(2,"sentiment",async f=>{const p=(await f.getFearGreed(c))[0];return p?`Fear & Greed: ${p.value} (${p.classification})`:null}),n(3,"global-market",async f=>{const d=await f.getGlobalMarket(),p=Object.entries(d.dominance).sort((m,g)=>g[1]-m[1]).slice(0,3).map(([m,g])=>`${m.toUpperCase()} ${g.toFixed(1)}%`).join(", ");return`Global crypto: total mcap ${Jt(d.totalMarketCapUsd)} (${br(d.marketCapChangePct24h)} 24h); dominance ${p}`});const l=go(bo(t,["funding-history"])).slice(0,Ao);l.length&&n(4,"funding-history",async f=>{const d=await f.getFundingHistory(l,Date.now()-864e5),p=l.map(m=>{const g=d[m],y=g&&g[g.length-1];return y?`${m} ${br(y.fundingRate*100,4)}`:null}).filter(Boolean);return p.length?`Funding (latest): ${p.join(" · ")}`:null});const u=go(bo(t,["open-interest"]));if(n(5,"open-interest",async f=>{const p=(await f.getOpenInterest(u.length?u:void 0)).slice(0,gr).map(m=>`${m.symbol} ${Jt(m.openInterestUsd)}`);return p.length?`Open interest: ${p.join(" · ")}`:null}),n(6,"tvl",async f=>{const p=(await f.getTvlByChain()).slice(0,gr).map(m=>`${m.name} ${Jt(m.tvl)}`);return p.length?`TVL by chain: ${p.join(" · ")}`:null}),n(7,"protocol-tvl",async f=>{const p=(await f.getProtocolTvl()).slice(0,gr).map(m=>`${m.name} ${Jt(m.tvl)}`);return p.length?`Protocol TVL: ${p.join(" · ")}`:null}),n(8,"dex-volume",async f=>{const p=(await f.getDexVolume()).slice(0,gr).map(m=>`${m.name} ${Jt(m.volume24h)}`);return p.length?`DEX volume (24h): ${p.join(" · ")}`:null}),n(9,"protocol-fees",async f=>{const p=(await f.getProtocolFees()).slice(0,gr).map(m=>`${m.name} ${Jt(m.fees24h)}`);return p.length?`Protocol fees (24h): ${p.join(" · ")}`:null}),n(10,"coin-markets",async f=>{const p=(await f.getCoinMarkets()).slice(0,gr).map(m=>`${m.symbol} ${Jt(m.marketCapUsd)}${m.changePct24h!=null?` (${br(m.changePct24h)})`:""}`);return p.length?`Top coins by mcap: ${p.join(" · ")}`:null}),n(11,"coin-movers",async f=>{const p=[...await f.getCoinMovers(300)].sort((y,k)=>(k.changePct["24h"]??0)-(y.changePct["24h"]??0)),m=p.slice(0,3).map(y=>`${y.symbol} ${br(y.changePct["24h"]??0)}`),g=p.slice(-3).reverse().map(y=>`${y.symbol} ${br(y.changePct["24h"]??0)}`);return p.length?`Movers (24h): up ${m.join(", ")} · down ${g.join(", ")}`:null}),a("news")){const f=po(e,"news"),d=new Set;for(const p of t){if(!p.capabilities.includes("news"))continue;const m=typeof p.config.feed=="string"?p.config.feed:null;if(!m||d.has(m))continue;d.add(m);const g=p.symbols.length?[...p.symbols]:void 0;n(12,"news",async()=>{const k=(await f.getNews({feed:m,symbols:g,limit:4})).slice(0,4).map(S=>`“${Xo(S.title,90)}”`);return k.length?`News (${m}): ${k.join("; ")}`:null})}}if(n(13,"btc-fees",async f=>{const d=await f.getBtcFees();return`BTC fees: fastest ${d.fastest}, 1h ${d.hour}, economy ${d.economy} sat/vB`}),n(14,"btc-mempool",async f=>{const d=await f.getMempoolState();return`Mempool: ${d.count.toLocaleString("en-US")} txs, ${d.projected.length} blocks pending`}),n(15,"btc-blocks",async f=>{const p=(await f.getBtcBlocks(1))[0];return p?`Latest block: #${p.height} (${p.poolName}, ${p.txCount} txs)`:null}),n(16,"btc-difficulty",async f=>{const d=await f.getDifficultyAdjustment();return`Difficulty: ${br(d.difficultyChange)} expected in ${d.remainingBlocks} blocks`}),n(17,"mining-pools",async f=>{const p=(await f.getMiningPools("1w")).pools[0];return p?`Mining pools (1w): ${p.name} ${p.sharePct.toFixed(1)}%`:null}),n(18,"lightning-stats",async f=>{const d=await f.getLightningStats();return`Lightning: ${d.nodeCount.toLocaleString("en-US")} nodes, ${d.channelCount.toLocaleString("en-US")} channels`}),n(19,"yield-curve",async f=>{const d=await f.getYieldCurve(),p=g=>d.points.find(y=>y.label===g),m=["3M","2Y","10Y","30Y"].map(g=>{const y=p(g);return y?`${g} ${y.rate.toFixed(2)}%`:null}).filter(Boolean);return m.length?`Yield curve (${d.date}): ${m.join(", ")}`:null}),n(20,"reference-rates",async f=>{const p=(await f.getReferenceRates()).slice(0,3).map(m=>`${m.code} ${m.rate.toFixed(2)}%`);return p.length?`Reference rates: ${p.join(", ")}`:null}),n(21,"financial-stress",async f=>{const d=await f.getFinancialStress();return`Financial stress (OFR): ${d.value.toFixed(2)} (${d.date})`}),n(22,"national-debt",async f=>{const d=await f.getNationalDebt();return`US national debt: ${Jt(d.total)} (${d.date})`}),a("options-summary")){const f=new Set;for(const p of t)p.capabilities.includes("options-summary")&&f.add(typeof p.config.currency=="string"?p.config.currency:"BTC");const d=po(e,"options-summary");for(const p of f)n(23,"options-summary",async()=>{const m=await d.getOptionsSummary(p);return`Options ${m.currency}: put/call ${m.putCallRatioOi.toFixed(2)} (OI), avg IV ${m.avgIv.toFixed(1)}%`})}if(a("portfolio"))for(const f of t){if(!f.capabilities.includes("portfolio"))continue;const d=f.config.source;if(!d||typeof d.kind!="string")continue;const p=e.find(m=>m.getPortfolio&&(m.portfolioKinds??[]).includes(d.kind));p&&n(24,"portfolio",async()=>{const m=await p.getPortfolio(d),g=m.totalUsd??m.holdings.reduce((k,S)=>k+(S.valueUsd??0),0),y=[...m.holdings].sort((k,S)=>(S.valueUsd??0)-(k.valueUsd??0)).slice(0,gr).map(k=>k.symbol).join(", ");return`Portfolio (${m.label??m.source}): ${Jt(g)}${y?`, top: ${y}`:""}`})}return(await Promise.all(o)).filter(f=>f!==null).sort((f,d)=>f[0]-d[0]).map(f=>f[1])}function E1(e,t){const r=Ga();return z.useCallback(async()=>{try{const a=A1(e,t);if(a.length===0)return null;const o=S1(a),n=await T1(r,a),i=[];o.length&&i.push(`Frames on the dashboard:
614
- ${o.join(`
615
- `)}`),n.length&&i.push(`Live readings right now:
616
- ${n.join(`
617
- `)}`);const s=i.join(`
618
-
619
- `);return s?Xo(s,v1):null}catch{return null}},[r,e,t])}var _a;function z1(e){if(!_a)if(typeof document<"u")_a=document.createElement("textarea");else return;var t="&"+e+";";_a.innerHTML=t;var r=_a.value;return r!==t?r:void 0}var F=32,j=9,_r=13,X=10,Se=96,st=126,Ge=91,er=94,ge=62,Lt=35,So=37,ue=45,Mt=61,dt=92,Je=42,je=95,De=60,$s=64,Bt=93,At=33,Xa=38,wt=58,To=70,xr=102,La=104,kr=119,Br=116,Eo=112,Qs=115,P1=160,D1=12,M1=44,Fa=59,la=63,Ot=46,qe=47,Cr=39,Ar=34,lr=43,it=124,Gr=123,Zo=125,Ht=40,Ut=41,R1=120,O1=88,zo=30,me=48,pe=57,ce=65,he=90,Me=97,Ne=122,Za=128,Nt=32,L1={blockQuote:0,breakLine:1,breakThematic:2,codeBlock:3,codeInline:4,footnote:5,footnoteReference:6,frontmatter:7,gfmTask:8,heading:9,htmlBlock:10,htmlComment:11,htmlSelfClosing:12,image:13,link:14,orderedList:15,paragraph:16,ref:17,refCollection:18,table:19,text:20,textFormatted:21,unorderedList:22},M=L1;function F1(e){if(!Ci(e,"---"))return null;let t=3;for(;t<e.length&&(e[t]===" "||e[t]===" ");)t++;if(t<e.length&&e[t]==="\r"&&t++,t>=e.length||e[t]!==`
620
- `)return null;t++;let r=!1;for(;t<e.length;){let a=t;for(;t<e.length&&e[t]!==`
621
- `&&e[t]!=="\r";)t++;if(t>=e.length)break;let o=t;if(e[t]==="\r"&&t++,t<e.length&&e[t]===`
622
- `&&t++,Ci(e,"---",a))return{endPos:t,hasValidYaml:r};if(!r){let n=K1(e,a,o);if(n<o){let i=e.charCodeAt(n);if(i>=Me&&i<=Ne||i>=ce&&i<=he||i>=me&&i<=pe||i===je){for(n++;n<o&&(i=e.charCodeAt(n),i>=Me&&i<=Ne||i>=ce&&i<=he||i>=me&&i<=pe||i===je||i===ue||i===Ot);)n++;n<o&&e.charCodeAt(n)===wt&&(n++,n>=o?r=!0:(i=e.charCodeAt(n),(i===F||i===j)&&(r=!0)))}}}}return null}var I1=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,N1={class:"className",for:"htmlFor",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap",viewbox:"viewBox"},H1={};function Et(e){if(!e)return H1;var t={};for(var r in e){var a=r.toLowerCase(),o=N1[a];if(o)t[o]=e[r];else{var n=r.indexOf(":");n!==-1?t[r.slice(0,n)+r[n+1].toUpperCase()+r.slice(n+2)]=e[r]:t[r]=e[r]}}return t}var U1=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s|^<(div|p|h[1-6]|ul|ol|li|blockquote|pre|table|thead|tbody|tr|td|th|dl|dt|dd|hr|address|article|aside|details|dialog|figure|figcaption|footer|form|header|main|menu|nav|section|summary|textarea|fieldset|legend|center|dir|hgroup|marquee|search|output|template)\b)/i;function $a(e){return e.indexOf("&")===-1?e:e.replace(I1,(t,r)=>{var a=z1(r);if(a)return a;if(r[0]==="#"){var o=r[1]==="x"||r[1]==="X"?parseInt(r.slice(2),16):parseInt(r.slice(1),10);return o===0||o>=55296&&o<=57343||o>1114111?"�":o<=65535?String.fromCharCode(o):String.fromCharCode(55296+(o-65536>>10),56320+(o-65536&1023))}return t})}var xi=/(javascript|vbscript|data(?!:image)):/i;function $o(e){if(xi.test(e))return null;if(e.indexOf("%")===-1)return e;try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(xi.test(t))return null}catch{return null}return e}var yt={},kt,ct;for(kt=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],ct=0;ct<kt.length;ct++)yt[kt[ct]]="a";for(yt[231]=yt[199]="c",yt[240]=yt[208]="d",kt=[200,201,202,203,233,232,234,235],ct=0;ct<kt.length;ct++)yt[kt[ct]]="e";for(kt=[207,239,206,238,205,237,204,236],ct=0;ct<kt.length;ct++)yt[kt[ct]]="i";for(yt[209]=yt[241]="n",kt=[248,216,339,338,213,245,212,244,211,243,210,242],ct=0;ct<kt.length;ct++)yt[kt[ct]]="o";for(kt=[220,252,219,251,218,250,217,249],ct=0;ct<kt.length;ct++)yt[kt[ct]]="u";yt[376]=yt[255]=yt[221]=yt[253]="y";function Rt(e){for(var t="",r=-1,a=e.length,o=0;o<a;o++){var n=e.charCodeAt(o);if(n>=Me&&n<=Ne||n>=me&&n<=pe){r<0&&(r=o);continue}if(n>=ce&&n<=he){r>=0&&(t+=e.slice(r,o),r=-1),t+=String.fromCharCode(n+Nt);continue}if(n===F||n===ue){r>=0&&(t+=e.slice(r,o),r=-1),t+="-";continue}r>=0&&(t+=e.slice(r,o),r=-1);var i=yt[n];i&&(t+=i)}return r>=0&&(t+=e.slice(r)),t}function Ci(e,t,r){return e.startsWith(t,r)}var Ai=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr","circle","ellipse","line","path","polygon","polyline","rect","use","stop","animate","set"]);function ua(e){let t=e.toLowerCase();if(Ai.has(t))return!0;let r=t.indexOf(":");return r!==-1?(t=t.slice(r+1),Ai.has(t)):!1}var wr=1,Si=2,Nr=4,Ti=8,B1=16,It=32,or=64,j1=(function(){var e=new Uint8Array(128),t;for(e[j]=wr,e[X]=wr|Si,e[D1]=wr,e[_r]=wr|Si,e[F]=wr,t=At;t<=qe;t++)e[t]=Nr;for(t=wt;t<=$s;t++)e[t]=Nr;for(t=Ge;t<=Se;t++)e[t]=Nr;for(t=Gr;t<=st;t++)e[t]=Nr;for(t=me;t<=pe;t++)e[t]=B1;for(t=ce;t<=he;t++)e[t]=Ti;for(t=Me;t<=Ne;t++)e[t]=Ti;return e})(),V1=/[\p{P}\p{S}]/u,W1=new RegExp("\\p{Zs}","u"),yr=[];function G1(e){var t=e.indexOf("\r"),r=e.indexOf("\0");if(t===-1&&r===-1)return e;var a=e.length;yr.length=0;var o=0,n=0;for(t===-1?n=r:r===-1?n=t:n=t<r?t:r;n<a;n++){var i=e.charCodeAt(n);i===_r?(o<n&&yr.push(e.slice(o,n)),n+1<a&&e.charCodeAt(n+1)===X&&n++,yr.push(`
623
- `),o=n+1):i===0&&(o<n&&yr.push(e.slice(o,n)),yr.push("�"),o=n+1)}return o<a&&yr.push(e.slice(o)),yr.join("")}function K1(e,t,r){let a=r??e.length;for(;t<a&&(e[t]===" "||e[t]===" ");)t++;return t}function ec(e){if(!e)return!1;for(var t in e)return!0;return!1}function q1(e){return{attrs:{},children:[{type:M.text,text:e}],d:!0,type:M.htmlBlock,tag:"header"}}var Y1=/^\n+/;function J1(e){for(var t=e.length;t>0&&(e[t-1]===`
624
- `||e[t-1]==="\r");)t--;return e.slice(0,t).replace(Y1,"")+`
625
-
626
- `}function Hr(e){var r,a;if((e.type===M.htmlSelfClosing||e.type===M.htmlBlock)&&e.b)return[];if(e.type===M.paragraph){var t=e.children;return t?t.flatMap(Hr):[]}return e.type===M.text?(r=e.text)!=null&&r.trim()?[e]:[]:e.type===M.htmlBlock&&e.children?[{...e,children:(a=e.children)==null?void 0:a.flatMap(Hr)}]:[e]}function tc(e){for(var t=0;t<e.length;t++){if(e[t].type===M.htmlBlock){var r=e[t],a=!1;if(r.d&&r.a&&t===e.length-1){var o="</"+String(r.tag).toLowerCase()+">",n=r.a.toLowerCase().indexOf(o);if(n!==-1){var i=r.a.slice(n+o.length).replace(/<\/[a-z][a-z0-9-]*\s*>/gi,"");i.trim()&&(a=!0)}}a||(r.d=!1)}"children"in e[t]&&e[t].children&&tc(e[t].children)}}function X1(e,t){for(var r=0;r<e.length;r++){var a=e[r];if(a.type===M.paragraph&&a.children)for(var o=a.children,n=0;n<o.length;n++){var i=o[n];if(i.type===M.htmlSelfClosing&&i.b&&i.tag.toLowerCase()===t){var s=e.slice(0,r);n>0&&s.push({type:M.paragraph,children:o.slice(0,n)});var c=[];if(n+1<o.length){var l=o.slice(n+1).filter(function(u){return!(u.type===M.htmlSelfClosing&&u.b)});l.length>0&&(c=l)}return c=c.concat(e.slice(r+1)),{found:!0,beforeClose:s,afterClose:c}}}if((a.type===M.htmlSelfClosing||a.type===M.htmlBlock)&&a.b&&a.tag.toLowerCase()===t)return{found:!0,beforeClose:e.slice(0,r),afterClose:e.slice(r+1)}}return{found:!1,beforeClose:e,afterClose:[]}}function Z1(e,t,r){var a=e.replace(new RegExp("\\s*</"+t+">\\s*$","i"),"");return r?rc(a):a}function Ei(e){var t="";for(var r in e){var a=e[r];a===!0?t+=" "+r:a!=null&&a!==!1&&(t+=" "+r+'="'+String(a)+'"')}return t}function $1(e){var t=[];if(!e)return t;for(var r in e)r.charCodeAt(0)===94&&t.push({identifier:r,footnote:e[r].target});return t}function Po(e,t,r){if(t.indexOf(".")===-1)return(e==null?void 0:e[t])||r;for(var a=e,o=t.split("."),n=0;n<o.length&&(a=a==null?void 0:a[o[n]],a!==void 0);)n++;return a||r}function Q1(e){for(var t=!1,r=0;r<e.length;r++){var a=e.charCodeAt(r);if(a<=F||a===Ar||a===So||a===De||a===ge||a===Ge||a===dt||a===Bt||a===er||a===Se||a>=123){t=!0;break}}if(!t)return e;for(var o="",r=0;r<e.length;r++){var a=e.charCodeAt(r);if(a===So&&r+2<e.length){var n=e.charCodeAt(r+1),i=e.charCodeAt(r+2);if((n>=me&&n<=pe||n>=ce&&n<=To||n>=Me&&n<=xr)&&(i>=me&&i<=pe||i>=ce&&i<=To||i>=Me&&i<=xr)){o+=e[r]+e[r+1]+e[r+2],r+=2;continue}}o+=encodeURI(e[r])}return o}function ew(...e){return e.filter(Boolean).join(" ")}var tw=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),Ia=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function zi(e){return tw.has(e.toLowerCase())}function rw(e){return Ia.lastIndex=0,Ia.test(e)}function rc(e){return Ia.lastIndex=0,e.replace(Ia,function(t,r,a,o){return"&lt;"+r+a+o})}var aw=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,ow=/^<[A-Z]/,Do=["script","pre","style","textarea"],da=new Set(Do),nw=/<(?:pre|script|style|textarea)\b/i,Pi=/<(?:pre|script|style|textarea)\b/iy,yo=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,Di=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im,ac=new Uint8Array(128);(function(){for(var e=[Se,Je,je,st,Mt,Ge,At,De,dt,Xa,X,La,kr,xr],t=0;t<e.length;t++)ac[e[t]]=1})();var Mi=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function iw(e){return da.has(e)}function sw(e){return nw.test(e)}function oc(e,t,r){for(var a=t,o=r;a<o&&(e.charCodeAt(a)===F||e.charCodeAt(a)===j);)a++;if(a>=o)return!1;e.charCodeAt(a)===it&&a++;for(var n=0;a<o;){for(;a<o&&(e.charCodeAt(a)===F||e.charCodeAt(a)===j);)a++;if(a>=o)break;if(e.charCodeAt(a)===it&&n>0){for(var i=a+1;i<o&&(e.charCodeAt(i)===F||e.charCodeAt(i)===j);)i++;if(i>=o)return!0}if(e.charCodeAt(a)===wt&&a++,a>=o||e.charCodeAt(a)!==ue)return!1;for(;a<o&&e.charCodeAt(a)===ue;)a++;for(a<o&&e.charCodeAt(a)===wt&&a++,n++;a<o&&(e.charCodeAt(a)===F||e.charCodeAt(a)===j);)a++;if(a<o)if(e.charCodeAt(a)===it)a++;else return!1}return n>0}function Zt(e,t){if(e.charCodeAt(t)!==De)return null;let r=t+1,a=e.length,o=!1;e.charCodeAt(r)===qe&&(r++,o=!0);let n=r,i=e.charCodeAt(r);if(!(i>=Me&&i<=Ne||i>=ce&&i<=he))return null;for(;r<a&&(e.charCodeAt(r)>=Me&&e.charCodeAt(r)<=Ne||e.charCodeAt(r)>=ce&&e.charCodeAt(r)<=he||e.charCodeAt(r)>=me&&e.charCodeAt(r)<=pe||e.charCodeAt(r)===ue);)r++;let s=e.slice(n,r);if(!s)return null;let c=r;for(;r<a&&(e.charCodeAt(r)===F||e.charCodeAt(r)===j||e.charCodeAt(r)===X);)r++;let l=e.slice(c,r);if(r===c&&r<a){var u=e.charCodeAt(r);if(u!==ge&&u!==qe)return null}let h=r,f={},d=!1;for(;r<a;){let O=e.charCodeAt(r);if(O===ge){let R=e.slice(h,r);return{tag:s,attrs:f,selfClosing:!1,end:r+1,rawAttrs:R,whitespaceBeforeAttrs:l,isClosing:o,hasSpaceBeforeSlash:d}}if(O===F||O===j||O===X){r++;continue}if(O===qe&&r+1<a&&e.charCodeAt(r+1)===ge){let R=e.slice(h,r);return d=r>h&&e.charCodeAt(r-1)===F,{tag:s,attrs:f,selfClosing:!0,end:r+2,rawAttrs:R,whitespaceBeforeAttrs:l,isClosing:o,hasSpaceBeforeSlash:d}}var p=r,m=e.charCodeAt(r);if(!(m>=Me&&m<=Ne||m>=ce&&m<=he||m===je||m===wt))return null;for(r++;r<a;){var g=e.charCodeAt(r);if(g>=Me&&g<=Ne||g>=ce&&g<=he||g>=me&&g<=pe||g===je||g===Ot||g===wt||g===ue)r++;else break}for(var y=e.slice(p,r);r<a&&(e.charCodeAt(r)===F||e.charCodeAt(r)===j);)r++;if(e.charCodeAt(r)!==Mt){f[y]="";continue}for(r++;r<a&&(e.charCodeAt(r)===F||e.charCodeAt(r)===j);)r++;var k=e.charCodeAt(r);if(k===Ar||k===Cr){r++;for(var S=r;r<a&&e.charCodeAt(r)!==k;)r++;if(r>=a)return null;if(f[y]=e.slice(S,r),r++,r<a){var D=e.charCodeAt(r);if(D!==F&&D!==j&&D!==X&&D!==ge&&D!==qe)return null}}else if(k===Gr){var T=1,S=r;for(r++;r<a&&T>0;){var g=e.charCodeAt(r);g===Gr?T++:g===Zo&&T--,r++}f[y]=e.slice(S,r)}else{for(var S=r;r<a;){var x=e.charCodeAt(r);if(x===F||x===j||x===ge||x===X||x===Ar||x===Cr||x===Mt||x===De||x===Se)break;r++}if(r===S)return null;f[y]=e.slice(S,r)}}return null}function cw(e,t,r){if(!r.optimizeForStreaming&&e.indexOf("[")===-1)return!1;for(var a=0,o=e.length,n=!1,i=!1;a<o;){for(var s=e.indexOf(`
627
- `,a),c=s<0?o:s,l=a,u=0;l<c&&u<4;)if(e.charCodeAt(l)===F)u++,l++;else if(e.charCodeAt(l)===j)u+=4,l++;else break;if(l>=c){n=!1,a=s<0?o:s+1;continue}if(u<4){var h=e.charCodeAt(l);if(h===Se||h===st){for(var f=h,d=0,p=l;p<c&&e.charCodeAt(p)===f;)d++,p++;if(d>=3){var m=!0;if(f===Se){for(var g=p;g<c;g++)if(e.charCodeAt(g)===Se){m=!1;break}}if(m){n=!1;for(var y=s<0?o:s+1;y<o;){for(var k=y,S=0;k<o&&S<4;){var D=e.charCodeAt(k);if(D===F)S++,k++;else if(D===j)S+=4,k++;else break}if(S<4&&k<o&&e.charCodeAt(k)===f){for(var T=0;k<o&&e.charCodeAt(k)===f;)T++,k++;if(T>=d){for(;k<o&&(e.charCodeAt(k)===F||e.charCodeAt(k)===j);)k++;if(k>=o||e.charCodeAt(k)===X){a=k>=o?o:k+1;break}}}for(;y<o&&e.charCodeAt(y)!==X;)y++;y<o&&y++}y>=o&&(a=o,i=!0);continue}}}}for(var x=l;x<c&&e.charCodeAt(x)===ge;){x++,x<c&&e.charCodeAt(x)===F&&x++;for(var O=0;x<c&&O<4;)if(e.charCodeAt(x)===F)O++,x++;else if(e.charCodeAt(x)===j)O+=4,x++;else break;if(O>=4)break;n=!1}if(!n&&u<4&&x<c&&e.charCodeAt(x)===Ge&&!(x+1<o&&e.charCodeAt(x+1)===er)){var R=nc(e,x,t);if(R){a=R,n=!1;continue}}var N=e.charCodeAt(l);if(N===Lt&&u<4)n=!1;else if(u<4&&(N===ue||N===Je||N===je)){for(var P=l,J=0;P<c;){var K=e.charCodeAt(P);if(K===N)J++;else if(K!==F&&K!==j)break;P++}n=!(J>=3&&P>=c)}else n=!0;a=s<0?o:s+1}return i}function nc(e,t,r){let a=e.length;if(e.charCodeAt(t)!==Ge)return null;let o=t+1<a&&e.charCodeAt(t+1)===er,n=t+1;for(;n<a;){var i=e.charCodeAt(n);if(i===Bt){n++;break}if(i===Ge)return null;i===dt&&n+1<a&&n++,n++}if(n>a||e.charCodeAt(n-1)!==Bt)return null;let s=e.slice(t+1,n-1);if(s.length>999)return null;let c=Aa(s);if(!c||n>=a||e.charCodeAt(n)!==wt)return null;n++;let l=!1;for(;n<a;){let te=e.charCodeAt(n);if(te===F||te===j)n++;else if(te===X&&!l)l=!0,n++;else break}if(o){let te=e.indexOf(`
628
- `,n),H=te<0?a:te,B=e.slice(n,H).trim();return r[c]={target:B,title:void 0},te<0?a:te+1}var u;if(n<a&&e.charCodeAt(n)===De){n++;for(var h=n;n<a&&e.charCodeAt(n)!==ge&&e.charCodeAt(n)!==X;)e.charCodeAt(n)===dt&&n+1<a&&n++,n++;if(n>=a||e.charCodeAt(n)!==ge)return null;u=e.slice(h,n),n++;for(var f=e.indexOf(`
629
- `,n),d=f<0?a:f,p=n;p<d&&(e.charCodeAt(p)===F||e.charCodeAt(p)===j);)p++;if(p<d){if(p===n)return null;var m=e.charCodeAt(p);if(m!==Ar&&m!==Cr&&m!==Ht)return null}}else{for(var h=n,g=0;n<a;){var i=e.charCodeAt(n);if(i===Ht)g++;else if(i===Ut){if(g===0)break;g--}else{if(i===F||i===j||i===X)break;i===dt&&n+1<a&&n++}n++}if(u=e.slice(h,n),!u)return null}for(;n<a&&(e.charCodeAt(n)===F||e.charCodeAt(n)===j);)n++;var y=e.indexOf(`
630
- `,n),k=y<0?a:y,S,D=!1,T=n,x=n;if(n===k&&n<a)for(x=n+1;x<a&&(e.charCodeAt(x)===F||e.charCodeAt(x)===j);)x++;if(x<a){var O=e.charCodeAt(x);if(O===Ar||O===Cr||O===Ht){for(var R=O===Ht?41:O,N=x+1,P=N;N<a;){var J=e.charCodeAt(N);if(J===R){for(var K=N+1;K<a&&(e.charCodeAt(K)===F||e.charCodeAt(K)===j);)K++;(K>=a||e.charCodeAt(K)===X)&&(S=e.slice(P,N),D=!0,T=K<a?K+1:a);break}if(J===dt&&N+1<a){N+=2;continue}if(J===X&&N+1<a&&e.charCodeAt(N+1)===X)break;N++}if(!D&&x===n)return null}}if(D)return r[c]||(r[c]={target:jr(u),title:S!==void 0?$a(jr(S)):S}),T;for(;n<k&&(e.charCodeAt(n)===F||e.charCodeAt(n)===j);)n++;return n<k?null:(r[c]||(r[c]={target:jr(u),title:S}),y<0?a:y+1)}var xt=new Uint8Array(j1);for(xt[Lt]|=It,xt[ge]|=It,xt[ue]|=It|or,xt[lr]|=It,xt[Je]|=It|or,xt[je]|=It|or,xt[Se]|=It|or,xt[st]|=It|or,xt[De]|=It|or,xt[Ge]|=or,xt[At]|=or,xt[it]|=It,xa=me;xa<=pe;xa++)xt[xa]|=It;var xa;function Ri(e){if(e.indexOf("[")<0&&e.indexOf("]")<0)return!1;for(var t=0;t<e.length;t++){if(e.charCodeAt(t)===dt){t++;continue}if(e.charCodeAt(t)===Ge||e.charCodeAt(t)===Bt)return!0}return!1}function Aa(e){for(var t=e.length,r=!0,a=t>0,o=0;o<t;o++){var n=e.charCodeAt(o);if(n===F){if(r){a=!1;break}r=!0}else if(n<33||n>126||n>=ce&&n<=he){a=!1;break}else r=!1}if(a&&!r)return e;var i=e.replace(/\s+/g," ").trim();return i.indexOf("ẞ")!==-1?i.replace(/\u1E9E/g,"ss").toLowerCase():i.toLowerCase()}function Qo(e){return e<Za?xt[e]:e===P1?wr:0}function jr(e){return e.indexOf("\\")===-1?e:e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}var Mo=null,Ro=-1,Sa=-1;function Te(e,t){if(t>=Ro&&t<=Sa&&e===Mo)return Sa;var r=e.indexOf(`
631
- `,t),a=r<0?e.length:r;return Mo=e,Ro=t,Sa=a,a}function ke(e,t){let r=Te(e,t);return r<e.length?r+1:r}function na(e,t,r){for(;t<r;){let a=e.charCodeAt(t);if(a!==F&&a!==j)break;t++}return t}function Oi(e,t){let r=ke(e,t);for(;r<e.length;){let a=Te(e,r);if(Ct(e,r,a))return r;r=ke(e,r)}return e.length}function ur(e,t,r,a){let o=0;for(;t+o<r&&e.charCodeAt(t+o)===a;)o++;return o}var Ae=0,xe=0;function Qe(e,t,r){for(Ae=0,xe=0;t+xe<r;){let a=e.charCodeAt(t+xe);if(a===j)Ae+=4-Ae%4;else if(a===F)Ae++;else break;xe++}}function Ct(e,t,r){return na(e,t,r)>=r}function lw(e,t,r,a){let o=Te(e,t);if(Qe(e,t,o),Ae>3)return null;let n=t+xe;if(e.charCodeAt(n)!==Lt)return null;let i=ur(e,n,o,35);if(i<1||i>6||(n+=i,n<o&&e.charCodeAt(n)!==F&&e.charCodeAt(n)!==j))return null;n=na(e,n,o);for(var s=o;s>n&&e.charCodeAt(s-1)===F;)s--;for(var c=s;s>n&&e.charCodeAt(s-1)===Lt;)s--;if(s<c)if(s===n||e.charCodeAt(s-1)===F)for(;s>n&&e.charCodeAt(s-1)===F;)s--;else s=c;let l=e.slice(n,s),u=Vr(l,!1,r,a),h=((a==null?void 0:a.slugify)||Rt)(l);return{node:{type:M.heading,level:i,children:u,id:h},end:ke(e,o)}}function uw(e,t,r){var a=e.charCodeAt(t);if(a!==Mt&&a!==ue)return!1;for(var o=t;o<r&&e.charCodeAt(o)===a;)o++;for(;o<r&&(e.charCodeAt(o)===F||e.charCodeAt(o)===j);)o++;return o>=r}function sr(e,t){let r=Te(e,t);if(Qe(e,t,r),Ae>3)return null;let a=t+xe,o=e.charCodeAt(a);if(o!==ue&&o!==Je&&o!==je)return null;let n=0;for(;a<r;){let i=e.charCodeAt(a);if(i===o)n++;else if(i!==F&&i!==j)return null;a++}return n<3?null:{node:{type:M.breakThematic},end:ke(e,r)}}function dw(e,t,r){let a=Te(e,t);if(Qe(e,t,a),Ae>3)return null;let o=Ae,n=t+xe,i=e.charCodeAt(n);if(i!==Se&&i!==st)return null;let s=ur(e,n,a,i);if(s<3)return null;n+=s;let c=na(e,n,a),l=a;if(i===Se){for(let H=c;H<a;H++)if(e.charCodeAt(H)===Se)return null}for(;l>c&&(e.charCodeAt(l-1)===F||e.charCodeAt(l-1)===j);)l--;let u=e.slice(c,l),h="",f="",d=u.indexOf(" ");d===-1?h=u:(h=u.slice(0,d),f=u.slice(d+1).trim()),h=jr(h);var p=void 0;if(f){Mi.lastIndex=0;for(var m;(m=Mi.exec(f))!==null;)p||(p={}),p[m[1]]=m[2]!==void 0?m[2]:m[3]}let g=ke(e,a),y=e.length,k=e.length;for(var S=String.fromCharCode(i).repeat(s),D=g;D<e.length;){var T=e.indexOf(S,D);if(T===-1)break;for(var x=T,O=0;x>0&&O<4&&e.charCodeAt(x-1)===F;)x--,O++;if(O<=3&&(x===0||e.charCodeAt(x-1)===X)){for(var R=T+s;R<e.length&&e.charCodeAt(R)===i;)R++;var N=Te(e,R);if(Ct(e,R,N)){y=x,k=ke(e,N);break}}D=T+1}var P;if(o===0)P=y>g&&e.charCodeAt(y-1)===X?e.slice(g,y-1):e.slice(g,y);else{P="";for(var J=g;J<y;){var K=Te(e,J);Qe(e,J,K);var te=Math.min(xe,o);P+=e.slice(J+te,K)+`
632
- `,J=ke(e,K)}P.length>0&&P.charCodeAt(P.length-1)===X&&(P=P.slice(0,-1))}return{node:{type:M.codeBlock,lang:h||void 0,text:P,infoString:f||void 0,attrs:p},end:k}}function hw(e,t){let r=Te(e,t);if(Qe(e,t,r),Ae<4)return null;let a="",o=t;for(;o<e.length;){let d=Te(e,o);if(Qe(e,o,d),Ct(e,o,d)){for(var n=0,i=ke(e,d);i<e.length;){var s=Te(e,i);if(Ct(e,i,s)){n++,i=ke(e,s);continue}if(Qe(e,i,s),Ae>=4){for(var c=0;c<=n;c++)a+=`
633
- `;o=i;break}break}if(o!==i)break;continue}if(Ae<4)break;let p=0,m=0;var l=0;for(let g=o;g<d&&m<4;g++){if(e.charCodeAt(g)===j){var u=4-m%4;m+u>4&&(l=m+u-4),m+=u}else m++;p++}var h="";if(l>0)for(var f=0;f<l;f++)h+=" ";h+=e.slice(o+p,d),a+=h+`
634
- `,o=ke(e,d)}for(;a.length>0&&a.charCodeAt(a.length-1)===X;)a=a.slice(0,-1);return a?{node:{type:M.codeBlock,lang:void 0,text:a,infoString:void 0,attrs:void 0},end:o}:null}function fw(e,t,r,a){let o=Te(e,t);if(Qe(e,t,o),Ae>3)return null;let n=t+xe;if(e.charCodeAt(n)!==ge)return null;let i="",s=t,c,l=!1,u=!1,h=!1;for(;s<e.length;){let B=Te(e,s);Qe(e,s,B);let G=s+xe;if(e.charCodeAt(G)===ge){let Y=G+1;var f=Ae+1,d=!1;if(Y<B){var p=e.charCodeAt(Y);p===F?(Y++,f++,d=!0):p===j&&(d=!0)}for(var m="",g=!1,y=Y;y<B;y++)if(e.charCodeAt(y)===j){g=!0;break}if(g){var k=f;if(d&&Y<B&&e.charCodeAt(Y)===j){for(var S=4-k%4,D=0;D<S-1;D++)m+=" ";k+=S,Y++}for(var T=Y;T<B;T++)if(e.charCodeAt(T)===j){for(var x=4-k%4,O=0;O<x;O++)m+=" ";k+=x}else m+=e[T],k++}else m=e.slice(Y,B);if(!i&&!c){let be=m.match(/^\[!([A-Za-z]+)\]\s*$/);if(be){c=be[1].toUpperCase(),s=ke(e,B);continue}}i+=m+`
635
- `;var R=m.trimStart();R.startsWith("```")||R.startsWith("~~~")?h=!h:(m.startsWith(" ")||m.startsWith(" "))&&(h=!0),u=R.length>0,s=ke(e,B)}else if(i&&!Ct(e,s,B)&&u){if(Ae<4){var N=s+xe,P=N<B?e.charCodeAt(N):0;if(P===Lt||P===ge||P===Se||P===st||P===De||(P===ue||P===Je||P===je)&&sr(e,s)||(P===ue||P===Je||P===lr)&&N+1<B&&(e.charCodeAt(N+1)===F||e.charCodeAt(N+1)===j))break;if(P>=me&&P<=pe){for(var J=N;J<B&&e.charCodeAt(J)>=me&&e.charCodeAt(J)<=pe;)J++;if(J<B&&(e.charCodeAt(J)===Ot||e.charCodeAt(J)===Ut))break}}if(h)break;i+=e.slice(s,B)+`
636
- `,l=!0,s=ke(e,B)}else break}if(!i&&!c)return null;var{inBlockQuote:K,f:te}=r;r.inBlockQuote=!0,l&&(r.f=!0);let H=cr(i||"",r,a);return r.inBlockQuote=K,r.f=te,{node:{type:M.blockQuote,children:H,alert:c||void 0},end:s}}function ic(e,t,r){for(var a=0,o=t;o<r;o++)e.charCodeAt(o)===j?a+=4-a%4:a++;return a}function nr(e,t,r){if(Qe(e,t,r),Ae>3)return null;var a=t+xe;if(a>=r)return null;var o=e.charCodeAt(a),n=Ae,i=a;if(o===ue||o===Je||o===lr){if(i=a+1,i<r&&e.charCodeAt(i)!==F&&e.charCodeAt(i)!==j&&e.charCodeAt(i)!==X)return null}else if(o>=me&&o<=pe){for(var s=a;s<r&&s-a<9;){var c=e.charCodeAt(s);if(c<me||c>pe)break;s++}if(s>a&&s<r){var l=e.charCodeAt(s);if(l===Ot||l===Ut){if(i=s+1,i<r&&e.charCodeAt(i)!==F&&e.charCodeAt(i)!==j&&e.charCodeAt(i)!==X)return null}else return null}else return null}else return null;var u=i,h=ic(e,t,i),f=0,d=u,p=h;if(u>=r)return{ordered:o>=me&&o<=pe,marker:o>=me&&o<=pe?e[s]:e[a],start:o>=me&&o<=pe?parseInt(e.slice(a,s),10):void 0,contentStart:u,contentCol:h+1,markerCol:n,isEmpty:!0};for(;d<r&&(e.charCodeAt(d)===F||e.charCodeAt(d)===j);){if(e.charCodeAt(d)===j){var m=4-p%4;p+=m}else p++;d++,f++}var g=d>=r,y=p-h;return g||y>4?(p=h+1,d=u+1,f=1):f===0&&(p=h+1,d=u,f=1),{ordered:o>=me&&o<=pe,marker:o>=me&&o<=pe?e[s]:e[a],start:o>=me&&o<=pe?parseInt(e.slice(a,s),10):void 0,contentStart:d,contentCol:p,markerCol:n,isEmpty:g}}var Na=0;function mw(e,t,r,a){var o=0,n=t;for(Na=0;n<r&&o<a;){var i=e.charCodeAt(n);if(i===j){var s=4-o%4;if(o+s>a){Na=o+s-a,n++,o=a;break}o+=s}else if(i===F)o++;else break;n++}return n}function Li(e,t,r,a){var o=Te(e,t),n=nr(e,t,o);if(!n)return null;var i=[],s=t,c=n.contentCol,l="",u=n.isEmpty,h=!1,f=!1;if(!n.isEmpty){for(var d=!1,p=n.contentStart;p<o;p++)if(e.charCodeAt(p)===j){d=!0;break}if(d){var m="",g=ic(e,t,n.contentStart),y=g-n.contentCol;if(y>0)for(var k=0;k<y;k++)m+=" ";for(var S=n.contentStart;S<o;S++)if(e.charCodeAt(S)===j){for(var D=4-g%4,T=0;T<D;T++)m+=" ";g+=D}else m+=e[S],g++;l=m+`
637
- `}else l=e.slice(n.contentStart,o)+`
638
- `}for(s=ke(e,o);s<e.length;){var x=Te(e,s);Qe(e,s,x);var O=e.charCodeAt(s+xe);if(Ae<c&&(O===ue||O===Je||O===je)&&Ae<=3&&sr(e,s))break;var R=nr(e,s,x);if(R&&R.ordered===n.ordered&&R.marker===n.marker&&R.markerCol<c){i.push({contentCol:c,raw:l,hasBlankAfter:h,isEmpty:u}),h&&(f=!0),c=R.contentCol,u=R.isEmpty,h=!1,l=R.isEmpty?"":e.slice(R.contentStart,x)+`
639
- `,s=ke(e,x);continue}if(Ct(e,s,x)){l+=`
640
- `,s=ke(e,x);for(var N=!1,P=0;P<l.length;P++){var J=l.charCodeAt(P);if(J!==X&&J!==_r&&J!==F&&J!==j){N=!0;break}}if(u&&!N)if(s<e.length){var K=Te(e,s),te=nr(e,s,K);if(!te||te.ordered!==n.ordered||te.marker!==n.marker)break;h=!0}else break;if(s<e.length){var H=Te(e,s);Qe(e,s,H);var B=e.charCodeAt(s+xe);if((B===ue||B===Je||B===je)&&Ae<=3&&sr(e,s))break;var G=nr(e,s,H);if(G&&G.ordered===n.ordered&&G.marker===n.marker&&G.markerCol<c){h=!0;continue}if(!Ct(e,s,H)&&Ae<c)break}continue}if(Ae>=c){var Y=mw(e,s,x,c);if(Na>0){for(var be="",$=c,de=0;de<Na;de++)be+=" ",$++;for(var ze=Y;ze<x;ze++)if(e.charCodeAt(ze)===j){for(var lt=4-$%4,Re=0;Re<lt;Re++)be+=" ";$+=lt}else be+=e[ze],$++;l+=be+`
641
- `}else l+=e.slice(Y,x)+`
642
- `;s=ke(e,x);continue}for(var Ue=!1,ye=0;ye<l.length;ye++){var le=l.charCodeAt(ye);if(le!==X&&le!==_r&&le!==F&&le!==j){Ue=!0;break}}if(!h&&Ue&&!u){var Oe=s+xe,ie=e.charCodeAt(Oe),_e=ie===Lt||ie===ge||ie===De||ie===Se||ie===st||(ie===ue||ie===Je||ie===je||ie===lr)&&(sr(e,s)!==null||nr(e,s,x)!==null)||ie>=me&&ie<=pe&&nr(e,s,x)!==null;if(!_e){l+=""+e.slice(Oe,x)+`
643
- `,s=ke(e,x);continue}}break}if(i.push({contentCol:c,raw:l,hasBlankAfter:h,isEmpty:u}),i.length===0)return null;var fe=f;if(!fe)for(var rt=0;rt<i.length;rt++){if(i[rt].hasBlankAfter&&rt<i.length-1){fe=!0;break}if(!i[rt].isEmpty){for(var Ce=i[rt].raw,ve=Ce.length,Q=0,Le=!1,ot=!1,Ve=!1,mt=!1,gt=0,W=0,oe=-1;Q<ve;){var V=Ce.indexOf(`
644
- `,Q);if(V<0&&(V=ve),mt){Qe(Ce,Q,V);for(var Ze=Ce.slice(Q+xe,V),Pe=0;Pe<Ze.length&&Ze.charCodeAt(Pe)===gt;)Pe++;Pe>=W&&Ze.slice(Pe).trim()===""&&(mt=!1),Q=V<ve?V+1:ve;continue}if(Ct(Ce,Q,V)){oe>=0?Ve=!0:Le&&(ot=!0),Q=V<ve?V+1:ve;continue}if(Qe(Ce,Q,V),oe>=0){if(Ae>=oe){Q=V<ve?V+1:ve;continue}var pt=nr(Ce,Q,V);if(pt&&pt.markerCol<oe&&pt.contentCol<=oe){Q=V<ve?V+1:ve;continue}if(pt){Q=V<ve?V+1:ve;continue}oe=-1,Ve&&(ot=!0,Ve=!1)}var Pt=Ce.slice(Q+xe,V),se=Pt.charCodeAt(0);if((se===Se||se===st)&&Ae<=3){for(var U=0;U<Pt.length&&Pt.charCodeAt(U)===se;)U++;if(U>=3){if(ot&&Le){fe=!0;break}mt=!0,gt=se,W=U,Le=!0,Q=V<ve?V+1:ve;continue}}var ht=Ae<=3?nr(Ce,Q,V):null;if(ht&&Le){if(ot){fe=!0;break}oe=ht.contentCol,Ve=!1,Q=V<ve?V+1:ve,Le=!0;continue}if(ot){fe=!0;break}Le=!0,Q=V<ve?V+1:ve}if(fe)break}}for(var nt=[],ft=0;ft<i.length;ft++){for(var at=i[ft],we=at.raw,$e=we.length;$e>0&&we.charCodeAt($e-1)===X;)$e--;var We=$e<we.length?we.slice(0,$e):we,ut=null;if(We.length>=3&&We.charCodeAt(0)===Ge){var Be=We[1];(Be===" "||Be==="x"||Be==="X")&&We.charCodeAt(2)===Bt&&(ut={type:M.gfmTask,completed:Be==="x"||Be==="X"},We=We.slice(3))}var Ie;if(at.isEmpty&&We.trim()==="")Ie=[];else if(fe){var jt=r.inList;r.inList=!0,Ie=cr(We,r,a),r.inList=jt}else{var Vt=r.inList;if(r.inList=!0,Ie=cr(We,r,a),r.inList=Vt,Ie.length===1&&Ie[0].type===M.paragraph)Ie=Ie[0].children;else if(r.h){var Wt=[];r.h.push({src:Ie,dest:Wt,unwrap:!0}),Ie=Wt}else{for(var Tr=[],Yt=0;Yt<Ie.length;Yt++)if(Ie[Yt].type===M.paragraph)for(var Gt=Ie[Yt].children,qr=0;qr<Gt.length;qr++)Tr.push(Gt[qr]);else Tr.push(Ie[Yt]);Ie=Tr}}if(ut){var Yr=[ut,{type:M.text,text:" "}];if(r.h)r.h.push({src:Ie,dest:Yr,unwrap:!1});else for(var Kt=0;Kt<Ie.length;Kt++)Yr.push(Ie[Kt]);nt.push(Yr)}else nt.push(Ie)}return{node:{type:n.ordered?M.orderedList:M.unorderedList,start:n.ordered?n.start:void 0,items:nt},end:s}}var Ha=new Set(["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]);function Xt(e,t,r){let a={};for(let[i,s]of Object.entries(e)){let c=i.toLowerCase();if(c==="style"&&typeof s=="string"){let l={},u=[],h=0,f=0;for(let p=0;p<s.length;p++){let m=s.charCodeAt(p);m===Ht?h++:m===Ut?h--:m===Fa&&h===0&&(u.push(s.slice(f,p)),f=p+1)}f<s.length&&u.push(s.slice(f));let d=!1;u.forEach(p=>{let m=p.indexOf(":");if(m===-1)return;let g=p.slice(0,m).trim(),y=p.slice(m+1).trim();if(g&&y){if(/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(y)){d=!0;return}let k=g.indexOf("-")!==-1?g.replace(/-([a-z])/g,(S,D)=>D.toUpperCase()):g;l[k]=y}}),!d&&Object.keys(l).length>0&&(a[i]=l)}else if((c==="href"||c==="src")&&(r!=null&&r.sanitizer)){let l=r.sanitizer(s,t,c);l!==null&&(a[i]=l)}else if(s==="")a[i]=!0;else if(s.length>=2&&s.charCodeAt(0)===Gr&&s.charCodeAt(s.length-1)===Zo){var o=s.slice(1,-1);if(o.length>0){var n=o.charCodeAt(0);if(n===Ge||n===Gr)try{a[i]=JSON.parse(o);continue}catch{}}if(o==="true"){a[i]=!0;continue}if(o==="false"){a[i]=!1;continue}if(r!=null&&r.evalUnserializableExpressions)try{a[i]=(0,eval)("("+o+")");continue}catch{}a[i]=o}else a[i]=s}return a}function ir(e,t,r){let a=t.length;if(a===0)return r;var o=t.charCodeAt(0),n=o>=ce&&o<=he||o>=Me&&o<=Ne;if(!n){for(var i=String.fromCharCode(o),s=e.length-a,c=r;c<=s;){var l=e.indexOf(i,c);if(l===-1||l>s)return-1;for(var u=!0,h=1;h<a;h++){var f=e.charCodeAt(l+h),d=t.charCodeAt(h);if(f>=ce&&f<=he&&(f+=Nt),d>=ce&&d<=he&&(d+=Nt),f!==d){u=!1;break}}if(u)return l;c=l+1}return-1}o>=ce&&o<=he&&(o+=Nt);for(let m=r;m<=e.length-a;m++){var p=e.charCodeAt(m);if(p>=ce&&p<=he&&(p+=Nt),p!==o)continue;let g=!0;for(let y=1;y<a;y++){let k=e.charCodeAt(m+y),S=t.charCodeAt(y);if(k>=ce&&k<=he&&(k+=Nt),S>=ce&&S<=he&&(S+=Nt),k!==S){g=!1;break}}if(g)return m}return-1}function pw(e,t,r){let a=t.length;var o=t.charCodeAt(0);o>=ce&&o<=he&&(o+=Nt);for(let i=Math.min(r,e.length-a);i>=0;i--){var n=e.charCodeAt(i);if(n>=ce&&n<=he&&(n+=Nt),n!==o)continue;let s=!0;for(let c=1;c<a;c++){let l=e.charCodeAt(i+c),u=t.charCodeAt(c);if(l>=ce&&l<=he&&(l+=Nt),u>=ce&&u<=he&&(u+=Nt),l!==u){s=!1;break}}if(s)return i}return-1}var Ua=-1;function Oo(e,t,r){let a=r.toLowerCase(),o="<"+a,n="</"+a,i=1,s=t,c=e.length;for(Ua=-1;s<c&&i>0;){let h=ir(e,o,s),f=ir(e,n,s);if(f===-1)return-1;if(h!==-1&&h<f){let d=Zt(e,h);d?(d.tag.toLowerCase()===a&&!d.isClosing&&!d.selfClosing&&!ua(d.tag)&&i++,s=d.end):s=h+1}else{var l=f+n.length,u=l<c?e.charCodeAt(l):62;if((u===ge||u===F||u===j||u===X)&&(i--,i===0)){Ua=f;let d=f+n.length;for(;d<c&&e.charCodeAt(d)!==ge;)d++;return d+1}s=f+1}}return-1}function sc(e,t,r,a){if(a.ignoreHTMLBlocks||a.disableParsingRawHTML)return null;var o=Te(e,t);if(Qe(e,t,o),Ae>3&&!r.inHTML)return null;var n=t+xe;if(e.charCodeAt(n)!==De)return null;var i=e.indexOf(">",n+1);if(i!==-1&&i<o){var s=e.slice(n+1,i);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(s)||/^[^\s@]+@[^\s@]+$/.test(s))return null}var c=gw(e,n);if(c>=1&&c<=5){var l=e.length;if(c===1){for(var u=e.length,h=0;h<Do.length;h++){var f=ir(e,"</"+Do[h]+">",n);f>=0&&f<u&&(u=f)}if(u<e.length){var d=e.indexOf(">",u);l=d>=0?ke(e,d+1):e.length}}else{var p=c===2?"-->":c===3?"?>":c===4?">":"]]>",m=e.indexOf(p,n);m>=0&&(l=ke(e,m+p.length))}var g=e.slice(n,l);if(c>=2)return{node:{type:M.htmlComment,text:g,l:!1,raw:!0},end:l};var y="div",k=g.match(/^<\/?([a-zA-Z][a-zA-Z0-9-]*)/);k&&(y=k[1]);var S=Zt(e,n),D={},T;S&&!S.isClosing&&(D=Xt(S.attrs,y,a),T=S.whitespaceBeforeAttrs+S.rawAttrs);var x=[],O=y.toLowerCase(),R="</"+O,N=ir(g,R,0),P=g,J="";if(S&&S.isClosing)for(P=g.slice(S.end-n);P.length>0&&P.charCodeAt(P.length-1)===X;)P=P.slice(0,-1);else if(S&&!S.isClosing){var K=S.end-n;if(N!==-1)for(P=g.slice(K),P.charCodeAt(0)===X&&(P=P.slice(1));P.length>0&&P.charCodeAt(P.length-1)===X;)P=P.slice(0,-1);else for(P=g;P.length>0&&P.charCodeAt(P.length-1)===X;)P=P.slice(0,-1);if(N!==-1){var te=g.slice(K,N);J=te.trim()}}var H=S?S.isClosing:!1;return{node:{type:M.htmlBlock,tag:y,attrs:D,i:T,children:x,a:P,text:J,d:!0,b:H},end:l}}if(c===6||c===7){var B=Oi(e,t),G=B<e.length?B:e.length,Y=e.slice(n,G),be=B<e.length?ke(e,B):e.length,$=Zt(e,n);if($){var de=$.tag,ze=de.toLowerCase(),lt=$.isClosing;if(lt){var Re=e.slice($.end,G);return{node:{type:M.htmlBlock,tag:de,attrs:{},children:[],a:Re,text:Re,d:!0,b:!0},end:be}}if($.selfClosing||ua(de))return{node:{type:M.htmlBlock,tag:de,attrs:Xt($.attrs,de,a),i:$.whitespaceBeforeAttrs+$.rawAttrs,children:[],a:"",text:"",d:!1,b:!1},end:$.end<e.length&&e.charCodeAt($.end)===X?$.end+1:$.end};var Ue=r.c||0,ye=e.slice(n,G),le=-1,Oe=-1;if(Ue<10){for(var ie="</"+ze,_e=$.end-n,fe=1,rt=_e;rt<ye.length&&fe>0;){var Ce=ir(ye,"<"+ze,rt),ve=ir(ye,ie,rt);if(ve===-1)break;if(Ce!==-1&&Ce<ve){var Q=Ce+ze.length+1;if(Q<ye.length){var Le=ye.charCodeAt(Q);(Le===F||Le===j||Le===X||Le===ge||Le===qe)&&fe++}rt=Ce+1}else{var ot=ve+ie.length;if(ot<ye.length){var Ve=ye.charCodeAt(ot);if((Ve===ge||Ve===F||Ve===j||Ve===X)&&(fe--,fe===0)){le=ve;for(var mt=ot;mt<ye.length&&ye.charCodeAt(mt)!==ge;)mt++;Oe=mt+1;break}}else if(fe--,fe===0){le=ve,Oe=ye.length;break}rt=ve+1}}var gt=!1;if(le===-1&&c===6&&!$.isClosing){var W=Oo(e,$.end,ze);if(W!==-1){for(var oe=Ua,V=$.end,Ze=!1,Pe=!1,pt=!1,Pt=0,se=!1,U=!1,ht=V;ht<oe;){var nt=e.charCodeAt(ht);if(nt===X)U&&(Ze=!0),se||Pt++,U=!0,ht++;else if(nt===F||nt===j)ht++;else{if(!se&&(se=!0,Pt>=2&&nt===De)){pt=!0;break}if(U=!1,nt===De){var ft=e.charCodeAt(ht+1)|32;if((ft===Eo||ft===Qs||ft===Br)&&(Pi.lastIndex=ht,Pi.test(e))){Pe=!0;break}}ht++}}if(Ze&&!pt&&!Pe){var at=Te(e,W);G=at,be=ke(e,at),ye=e.slice(n,G),Y=e.slice(n,G),le=oe-n,Oe=W-n,gt=!0}}}}var we=$.rawAttrs.indexOf(`
645
- `)!==-1||$.whitespaceBeforeAttrs.indexOf(`
646
- `)!==-1,$e=!1;if(le!==-1){var We=ye.slice(Oe).trim();$e=We.length===0}var ut=!1,Be=G,Ie=be;if(le!==-1){var jt=n+Oe,Vt=Te(e,jt-1);if(jt<Vt){for(var Wt=jt;Wt<Vt&&(e.charCodeAt(Wt)===F||e.charCodeAt(Wt)===j);)Wt++;if(Wt<Vt&&e.charCodeAt(Wt)===De){var Tr=Zt(e,Wt);Tr&&!Tr.isClosing&&(ut=!0,Be=jt,Ie=jt,$e=!0)}}if(!ut){var Yt=ke(e,Vt);if(Yt<G){for(var Gt=Yt;Gt<G&&(e.charCodeAt(Gt)===F||e.charCodeAt(Gt)===j);)Gt++;if(Gt<G&&e.charCodeAt(Gt)===De){var qr=Zt(e,Gt);qr&&(ut=!0,Be=Vt,Ie=Yt,$e=!0)}}}if(!ut&&r.inHTML){ut=!0,Be=Vt,Ie=ke(e,Vt);var Yr=e.slice(jt,Vt).trim();$e=Yr.length===0}}var Kt=[],_t="";if(le!==-1){_t=ye.slice($.end-n,le);var Er=_t.trim();if(Er){var{inline:uc,inHTML:dc,c:hc}=r;r.inHTML=!0,r.c=Ue+1;var fc=ze==="p";if(fc)r.inline=!0,Kt=Vr(Er,!1,r,a);else{var on=_t.indexOf(`
647
-
648
- `)!==-1,nn=yo.test(Er),Qa=Di.test(Er),mc=on||nn||r.inHTML&&Qa,pc=_t.length>=2&&_t.charCodeAt(0)===X&&_t.charCodeAt(_t.length-1)===X&&!on;pc&&!nn&&!Qa?Kt=[{type:M.text,text:Er}]:mc||Qa?(r.inline=!1,Kt=cr(_t,r,a)):(r.inline=!0,Kt=Vr(Er,!1,r,a))}r.inline=uc,r.inHTML=dc,r.c=hc}}var sn=!1;if(c===6&&le!==-1&&!r.inHTML&&!we){var gc=/<[a-zA-Z][^>]*>/.test(_t),bc=_t.indexOf(`
649
-
650
- `)!==-1||yo.test(_t);gc&&!bc&&(sn=!0)}var yc=!gt&&(r.inHTML||c===7||we||!$e||sn);if(yc){var Tt,cn=!1;if(le!==-1&&ut){var ln=!1;if(r.inHTML&&Oe<ye.length){for(var ha=Oe;ha<ye.length&&ye.charCodeAt(ha)!==X;)ha++;var eo=ye.slice(Oe,ha).trim();ln=eo.length>1&&eo.charCodeAt(0)===De&&eo.charCodeAt(1)!==qe}Tt=ln?ye.slice($.end-n):_t,cn=!0}else(c===7||r.inHTML)&&le!==-1?(Tt=ye.slice($.end-n),Tt.charCodeAt(0)===X&&(Tt=Tt.slice(1))):ut?Tt=e.slice(n,Be):we?Tt=Y:(Tt=ye.slice($.end-n),Tt.charCodeAt(0)===X&&(Tt=Tt.slice(1)));var un={type:M.htmlBlock,tag:de,attrs:Xt($.attrs,de,a),i:$.whitespaceBeforeAttrs+$.rawAttrs,children:Kt,a:Tt,text:Tt,d:!0,b:!1};return cn&&(un.n=!0),{node:un,end:Ie}}return{node:{type:M.htmlBlock,tag:de,attrs:Xt($.attrs,de,a),i:$.whitespaceBeforeAttrs+$.rawAttrs,children:Kt,a:gt?"":_t,text:_t,d:!1,b:!1},end:Ie}}var fa=Y.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),vc=fa?fa[2]:"div",dn=fa?fa[1]==="/":!1,to=Y;if(dn){var hn=Y.indexOf(">");hn!==-1&&(to=Y.slice(hn+1))}return{node:{type:M.htmlBlock,tag:vc,attrs:{},children:[],a:to,text:to,d:!0,b:dn},end:be}}var bt=Zt(e,n);if(!bt)return null;var tr=bt.tag,ro=tr.toLowerCase(),fn=tr.charCodeAt(0),ao=fn>=ce&&fn<=he;if(!ao&&!Ha.has(ro)&&!da.has(ro)&&!ro.includes("-"))return null;if(bt.isClosing)return{node:{type:M.htmlSelfClosing,tag:tr,attrs:{},a:e.slice(n,bt.end),b:!0},end:bt.end};var zr=Oo(e,bt.end,tr),Jr=[];if(zr!==-1){var wc=Ua,ma=e.slice(bt.end,wc),pa=ma.trim();if(pa){var kc=ma.indexOf(`
651
-
652
- `)!==-1,_c=yo.test(pa),xc=Di.test(pa),Cc=r.inline,Ac=r.inHTML,Sc=r.c;r.inHTML=!0,r.c=(r.c||0)+1,kc||_c||xc?(r.inline=!1,Jr=cr(ma,r,a)):(r.inline=!0,Jr=Vr(pa,!1,r,a)),r.inline=Cc,r.inHTML=Ac,r.c=Sc}var Tc=Te(e,zr),Ec=e.slice(zr,Tc).trim(),mn=Ec?zr:ke(e,zr),pn=ao?e.slice(n,zr):e.slice(n,mn);return{node:{type:M.htmlBlock,tag:tr,attrs:Xt(bt.attrs,tr,a),i:bt.whitespaceBeforeAttrs+bt.rawAttrs,children:Jr,a:pn,text:ao?ma:pn,d:!0,b:!1},end:mn}}var Xr=Oi(e,bt.end),zc=Xr<e.length?ke(e,Xr):Xr,oo=e.slice(bt.end,Xr);if(oo.trim()){var{inline:Pc,inHTML:Dc,c:Mc}=r;r.inline=!1,r.inHTML=!0,r.c=(r.c||0)+1,Jr=cr(oo,r,a),r.inline=Pc,r.inHTML=Dc,r.c=Mc}var Rc=e.slice(bt.end,Xr);return{node:{type:M.htmlBlock,tag:tr,attrs:Xt(bt.attrs,tr,a),i:bt.whitespaceBeforeAttrs+bt.rawAttrs,children:Jr,a:Rc,text:oo,d:!0,b:!1},end:zc}}function gw(e,t){if(e.charCodeAt(t)!==De)return 0;var r=t+1,a=e.length;if(e.charCodeAt(r)===At&&e.charCodeAt(r+1)===ue&&e.charCodeAt(r+2)===ue)return 2;if(e.charCodeAt(r)===la)return 3;if(e.charCodeAt(r)===At){var o=e.charCodeAt(r+1);if(o>=ce&&o<=he)return 4;if(e.slice(r+1,r+8)==="[CDATA[")return 5}for(var n=e.charCodeAt(r)===qe,i=n?r+1:r,s=i;s<a;){var c=e.charCodeAt(s);if(c>=ce&&c<=he||c>=Me&&c<=Ne||c>=me&&c<=pe||c===ue)s++;else break}if(s===i)return 0;var l=e.slice(i,s);if(da.has(l.toLowerCase())){if(n)return 0;var u=e.charCodeAt(s);return u===F||u===j||u===ge||u===X||s>=a?1:0}if(Ha.has(l.toLowerCase())){if(n){for(var h=s;h<a&&(e.charCodeAt(h)===F||e.charCodeAt(h)===j);)h++;return h<a&&e.charCodeAt(h)===ge?6:0}var f=s<a?e.charCodeAt(s):-1;return f===F||f===j||f===ge||f===X||f===qe||f===-1?6:0}if(n){for(var d=s;d<a&&(e.charCodeAt(d)===F||e.charCodeAt(d)===j);)d++;if(d<a&&e.charCodeAt(d)===ge){var p=Te(e,t),m=e.slice(d+1,p).trim();if(m==="")return 7}}else{var g=Te(e,t),y=Zt(e,t);if(y&&y.end<=g){var k=e.slice(y.end,g).trim();if(k==="")return 7}}return 0}function Fi(e,t,r){for(var a=0,o=e.length;a<o&&(e.charCodeAt(a)===F||e.charCodeAt(a)===j);)a++;for(;o>a&&(e.charCodeAt(o-1)===F||e.charCodeAt(o-1)===j);)o--;a<o&&e.charCodeAt(a)===it&&a++,o>a&&e.charCodeAt(o-1)===it&&(o-2<a||e.charCodeAt(o-2)!==dt)&&o--;for(var n=[],i=a,s=!1,c=[],l=a;l<o;){var u=e.charCodeAt(l);if(u===dt&&l+1<o){e.charCodeAt(l+1)===it?(s||(s=!0,c=[]),c.push(e.slice(i,l)),c.push("|"),l+=2,i=l):l+=2;continue}if(u===Se){for(var h=0;l<o&&e.charCodeAt(l)===Se;)h++,l++;for(var f=!1;l<o&&!f;){for(var d=0;l<o&&e.charCodeAt(l)===Se;)d++,l++;d===h?f=!0:d===0&&l++}continue}if(u===it){var p=s?(c.push(e.slice(i,l)),c.join("")):e.slice(i,l);n.push(p.trim()),l++,i=l,s=!1,c=[];continue}l++}var m=s?(c.push(e.slice(i,o)),c.join("")):e.slice(i,o);return n.push(m.trim()),n.map(function(g){var y=g.indexOf("\\|")!==-1?g.replace(/\\\|/g,"|"):g;return y?Vr(y,!1,t,r):[]})}function Ii(e,t,r,a){let o=Te(e,t);var n=e.indexOf("|",t);if(n<0||n>=o)return null;let i=ke(e,o);if(i>=e.length)return null;let s=Te(e,i);if(!oc(e,i,s))return null;let c=e.slice(t,o),l=e.slice(i,s);for(var u=[],h=0,f=l.length;h<f&&(l.charCodeAt(h)===F||l.charCodeAt(h)===j);)h++;for(h<f&&l.charCodeAt(h)===it&&h++;h<f;){for(;h<f&&(l.charCodeAt(h)===F||l.charCodeAt(h)===j);)h++;if(h>=f||l.charCodeAt(h)===it)break;var d=l.charCodeAt(h)===wt;for(d&&h++;h<f&&l.charCodeAt(h)===ue;)h++;var p=h<f&&l.charCodeAt(h)===wt;for(p&&h++,u.push(d&&p?"center":p?"right":d?"left":null);h<f&&(l.charCodeAt(h)===F||l.charCodeAt(h)===j);)h++;h<f&&l.charCodeAt(h)===it&&h++}let m=Fi(c,r,a);if(u.length!==m.length)return null;let g=[],y=ke(e,s);for(;y<e.length;){let O=Te(e,y),R=e.slice(y,O);if(Ct(e,y,O))break;if(Qe(e,y,O),Ae<4){var k=e.charCodeAt(y+xe);if(k===ge||k===Lt||(k===ue||k===Je||k===je)&&sr(e,y))break;if(k===Se||k===st){for(var S=y+xe,D=0;S<O&&e.charCodeAt(S)===k;)D++,S++;if(D>=3)break}}g.push(Fi(R,r,a)),y=ke(e,O)}if(a.optimizeForStreaming&&g.length===0)return null;for(var T=m.length,x=0;x<g.length;x++)if(g[x].length<T)for(;g[x].length<T;)g[x].push([]);else g[x].length>T&&(g[x].length=T);return{node:{type:M.table,header:m,cells:g,align:u},end:y}}function bw(e,t,r){var a=Te(e,t);if(Qe(e,t,a),Ae>3)return null;var o=t+xe;if(e.charCodeAt(o)!==Ge)return null;if(o+1<e.length&&e.charCodeAt(o+1)===er){var n=yw(e,o,r);return n||null}r.refs||(r.refs={});var i=nc(e,o,r.refs);return i===null?null:{node:{type:M.refCollection},end:i}}function yw(e,t,r){var a=e.length;if(e.charCodeAt(t)!==Ge||t+1>=a||e.charCodeAt(t+1)!==er)return null;for(var o=t+2,n=o;o<a&&e.charCodeAt(o)!==Bt;){if(e.charCodeAt(o)===X)return null;o++}if(o>=a)return null;var i=("^"+e.slice(n,o)).toLowerCase();if(o++,o>=a||e.charCodeAt(o)!==wt)return null;for(o++;o<a&&(e.charCodeAt(o)===F||e.charCodeAt(o)===j);)o++;if(o<a&&e.charCodeAt(o)===X)for(o++;o<a&&(e.charCodeAt(o)===F||e.charCodeAt(o)===j);)o++;var s=e.indexOf(`
653
- `,o);s<0&&(s=a);for(var c=e.slice(o,s).trim(),l=s<a?s+1:a;l<a;){var u=Te(e,l);if(Qe(e,l,u),Ae>=2&&!Ct(e,l,u))c+=`
654
- `+e.slice(l,u),l=ke(e,u);else if(Ct(e,l,u)){var h=ke(e,u);if(h<a){var f=Te(e,h);if(Qe(e,h,f),Ae>=2){c+=`
655
- `,l=ke(e,u);continue}}break}else break}return r.refs[i]||(r.refs[i]={target:c,title:void 0}),{node:{type:M.footnote},end:l}}function vw(e,t,r,a){let o=t,n=0,i=0,s=-1;for(;o<e.length;){let te=s>=0?s:Te(e,o);if(s=-1,Ct(e,o,te))break;if(Qe(e,o,te),Ae<4&&i>0&&!r.f){let B=e.charCodeAt(o+xe);if(B===Mt||B===ue){let G=o+xe;for(;G<te&&e.charCodeAt(G)===B;)G++;for(;G<te&&(e.charCodeAt(G)===F||e.charCodeAt(G)===j);)G++;if(G>=te){n=B===Mt?1:2,o=ke(e,te);break}}}i=te;let H=ke(e,te);if(H<e.length){if(e.charCodeAt(H)===zo){var c=Te(e,H);o=ke(e,c),i=c;continue}let B=Te(e,H);if(s=B,Qe(e,H,B),Ae<4){let G=e.charCodeAt(H+xe);if(G===ge){o=H;break}if(G===Lt){for(var l=H+xe,u=0;l<B&&e.charCodeAt(l)===Lt&&u<=6;)u++,l++;if(u>=1&&u<=6&&(l>=B||e.charCodeAt(l)===F||e.charCodeAt(l)===j)){o=H;break}}if(G===Se||G===st){for(var h=H+xe,f=0;h<B&&e.charCodeAt(h)===G;)f++,h++;if(f>=3){o=H;break}}if(G===De){var d=H+xe+1,p=d<B?e.charCodeAt(d):0,m=p===At||p===la;if(!m&&p===qe){for(var g=d+1,y=g;y<B&&(e.charCodeAt(y)>=ce&&e.charCodeAt(y)<=he||e.charCodeAt(y)>=Me&&e.charCodeAt(y)<=Ne||e.charCodeAt(y)>=me&&e.charCodeAt(y)<=pe||e.charCodeAt(y)===ue);)y++;y>g&&(m=Ha.has(e.slice(g,y).toLowerCase()))}else if(!m){for(var k=d;k<B&&(e.charCodeAt(k)>=ce&&e.charCodeAt(k)<=he||e.charCodeAt(k)>=Me&&e.charCodeAt(k)<=Ne||e.charCodeAt(k)>=me&&e.charCodeAt(k)<=pe||e.charCodeAt(k)===ue);)k++;if(k>d){var S=e.slice(d,k).toLowerCase();m=Ha.has(S)||da.has(S)}}if(m&&sc(e,H,r,a)){o=H;break}}if(G===ue||G===Je||G===lr){let Y=H+xe+1;if(Y<B&&(e.charCodeAt(Y)===F||e.charCodeAt(Y)===j)){var D=na(e,Y,B);if(D<B&&!sr(e,H)){o=H;break}}}if(G>=me&&G<=pe){let Y=H+xe;for(;Y<B&&e.charCodeAt(Y)>=me&&e.charCodeAt(Y)<=pe;)Y++;if(Y<B&&(e.charCodeAt(Y)===Ot||e.charCodeAt(Y)===Ut)&&Y-(H+xe)===1&&e.charCodeAt(H+xe)===49){var T=Y+1;if(T<B&&(e.charCodeAt(T)===F||e.charCodeAt(T)===j)){var x=na(e,T,B);if(x<B){o=H;break}}}}if(G===it){let Y=ke(e,B);if(Y<e.length){let be=Te(e,Y);if(oc(e,Y,be)){o=H;break}}}if((G===ue||G===Je||G===je)&&sr(e,H)){if(G!==ue){o=H;break}let Y=H+xe;for(;Y<B&&e.charCodeAt(Y)===ue;)Y++;for(;Y<B&&(e.charCodeAt(Y)===F||e.charCodeAt(Y)===j);)Y++;if(Y<B){o=H;break}}}}o=ke(e,te)}for(var O=n?i:o;O>t&&(e.charCodeAt(O-1)===X||e.charCodeAt(O-1)===_r||e.charCodeAt(O-1)===F||e.charCodeAt(O-1)===j);)O--;for(var R=t;R<O&&(e.charCodeAt(R)===F||e.charCodeAt(R)===j);)R++;if(R>=O)return null;for(var N=!1,P=R;P<O;P++)if(e.charCodeAt(P)===zo){N=!0;break}var J=N?e.slice(R,O).replace(/\u001E/g,""):e.slice(R,O);if(!J)return null;let K=Vr(J,!0,r,a);if(n){let te=((a==null?void 0:a.slugify)||Rt)(J);return{node:{type:M.heading,level:n,children:K,id:te},end:o}}return{node:{type:M.paragraph,children:K},end:o}}function Vr(e,t,r,a){var o=r.k;if(!o){var n=r.e;r.e=t;var i=qt(e,0,e.length,r,a);return r.e=n,i}var s=[];return o.push({dest:s,text:e,breaks:t,inline:r.inline,inAnchor:r.inAnchor,inHTML:r.inHTML,htmlDepth:r.c,inList:r.inList,inBlockQuote:r.inBlockQuote,noSetext:r.f,depth:r.j}),s}function ww(e,t,r){if(e.charCodeAt(t)!==Se)return null;let a=ur(e,t,r,96),o=t+a;for(;o<r;){let n=e.indexOf("`",o);if(n<0||n>=r)return null;let i=ur(e,n,r,96);if(i===a){let s=e.slice(t+a,n);return s.indexOf(`
656
- `)!==-1&&(s=s.replace(/\n/g," ")),s.length>0&&s[0]===" "&&s[s.length-1]===" "&&s.trim().length>0&&(s=s.slice(1,-1)),{node:{type:M.codeInline,text:s},end:n+i}}o=n+i}return null}function en(e,t,r){if(e.charCodeAt(t)!==Se)return t;let a=ur(e,t,r,96),o=t+a;for(;o<r;){let n=e.indexOf("`",o);if(n<0||n>=r)return t;let i=ur(e,n,r,96);if(i===a)return n+i;o=n+i}return t}function kw(e,t,r){if(e.charCodeAt(t)!==De)return t;if(t+1<r&&e.charCodeAt(t+1)===qe){let l=t+2;for(;l<r&&e.charCodeAt(l)!==ge;)l++;return l<r?l+1:t}if(t+3<r&&e.charCodeAt(t+1)===At&&e.charCodeAt(t+2)===ue&&e.charCodeAt(t+3)===ue){let l=e.indexOf("-->",t+4);return l>=0?l+3:t}let a=t+1,o=a;for(;a<r;){let l=e.charCodeAt(a);if(l>=ce&&l<=he||l>=Me&&l<=Ne||l>=me&&l<=pe||l===ue)a++;else break}if(a===o)return t;let n=e.slice(o,a).toLowerCase(),i=!1;for(;a<r;){let l=e.charCodeAt(a);if(l===ge){a++;break}if(l===qe&&a+1<r&&e.charCodeAt(a+1)===ge){a+=2,i=!0;break}if(l===Ar||l===Cr){var s=l;for(a++;a<r&&e.charCodeAt(a)!==s;)a++;a<r&&a++;continue}if(l===X)return t;a++}if(i||ua(n))return a;let c=1;for(;a<r&&c>0;)if(e.charCodeAt(a)===De)if(a+1<r&&e.charCodeAt(a+1)===qe){let l=a+2,u=l;for(;u<r&&(e.charCodeAt(u)>=ce&&e.charCodeAt(u)<=he||e.charCodeAt(u)>=Me&&e.charCodeAt(u)<=Ne);)u++;if(e.slice(l,u).toLowerCase()===n){for(;u<r&&e.charCodeAt(u)!==ge;)u++;if(u<r&&u++,c--,c===0)return u}a=u}else{let l=a+1,u=l;for(;u<r&&(e.charCodeAt(u)>=ce&&e.charCodeAt(u)<=he||e.charCodeAt(u)>=Me&&e.charCodeAt(u)<=Ne);)u++;e.slice(l,u).toLowerCase()===n&&c++,a++}else a++;return a}function _w(e,t,r,a,o){if(e.charCodeAt(t)!==st||t+1>=r||e.charCodeAt(t+1)!==st)return null;let n=t+2;for(;n+1<r;){let i=e.charCodeAt(n);if(i===Se){let s=en(e,n,r);if(s>n){n=s;continue}}if(i===st&&e.charCodeAt(n+1)===st){let s=e.slice(t+2,n),c=qt(s,0,s.length,a,o);return{node:{type:M.textFormatted,tag:"del",children:c},end:n+2}}i===dt&&n+1<r&&n++,n++}return null}function xw(e,t,r,a,o){if(e.charCodeAt(t)!==Mt||t+1>=r||e.charCodeAt(t+1)!==Mt)return null;let n=t+2;for(;n+1<r;){let i=e.charCodeAt(n);if(i===Se){let s=en(e,n,r);if(s>n){n=s;continue}}if(i===Mt&&e.charCodeAt(n+1)===Mt&&n>t+2){let s=e.slice(t+2,n),c=qt(s,0,s.length,a,o);return{node:{type:M.textFormatted,tag:"mark",children:c},end:n+2}}i===dt&&n+1<r&&n++,n++}return null}function Ni(e,t,r){return e<Za?!!(Qo(e)&Nr):V1.test(t[r])}function Hi(e,t,r){return e<Za?!!(Qo(e)&wr):W1.test(t[r])}function Cw(e,t,r){var a=e.charCodeAt(t);if(a!==Je&&a!==je)return null;var o=ur(e,t,r,a);if(o===0)return null;var n=t>0?e.charCodeAt(t-1):32,i=t+o<r?e.charCodeAt(t+o):32,s=Hi(n,e,t-1),c=Hi(i,e,t+o),l=t>0?Ni(n,e,t-1):!1,u=t+o<r?Ni(i,e,t+o):!1,h=!c&&(!u||s||l),f=!s&&(!l||c||u),d,p;return a===Je?(d=h,p=f):(d=h&&(!f||l),p=f&&(!h||u)),{len:o,canOpen:d,canClose:p}}function Aw(e,t,r,a){if(t.length!==0){for(var o=e.length,n=Array(o),i=null,s=null,c=0;c<o;c++){var l={node:e[c],prev:s,next:null};s?s.next=l:i=l,n[c]=l,s=l}for(var u=Array(t.length),h=0;h<t.length;h++)u[h]=n[t[h].idx];for(var f=[],d=0;d<12;d++)f[d]=-1;for(var p=0;p<t.length;){var m=t[p];if(!m.active||!m.canClose){p++;continue}for(var g=m.ch===Je?0:1,y=g*6+m.len%3*2+(m.canOpen?1:0),k=f[y]!==void 0?f[y]:-1,S=-1,D=p-1;D>k;D--){var T=t[D];if(!(!T.active||T.ch!==m.ch||!T.canOpen)&&!((m.canOpen||T.canClose)&&(T.len+m.len)%3===0&&T.len%3!==0)){S=D;break}}if(S<0){f[y]=p-1,!m.canOpen&&(m.active=!1),p++;continue}var x=t[S],O=x.len>=2&&m.len>=2,R=O?2:1;x.len-=R,m.len-=R;var N=u[S],P=u[p],J=N.node,K=P.node;J.text=J.text.slice(0,J.text.length-R),K.text=K.text.slice(R);for(var te=[],H=N.next;H&&H!==P;)te.push(H.node),H=H.next;var B={type:M.textFormatted,tag:O?"strong":"em",children:te},G={node:B,prev:N,next:P};N.next=G,P.prev=G;for(var Y=S+1;Y<p;Y++)t[Y].active=!1;if(x.len===0&&(x.active=!1,J.text==="")){var be=N.prev;G.prev=be,be?be.next=G:i=G}if(m.len===0){if(m.active=!1,K.text===""){var $=P.next;G.next=$,$&&($.prev=G)}}else continue;p++}for(var de=0,ze=i;ze;){var lt=ze.node;if(lt.type===M.text){var Re=lt;if(Re.text===""){ze=ze.next;continue}if(de>0&&e[de-1].type===M.text){e[de-1].text+=Re.text,ze=ze.next;continue}}e[de++]=lt,ze=ze.next}e.length=de}}function Ui(e,t,r,a,o){let n=e.charCodeAt(t)===At,i=n?t+1:t;if(e.charCodeAt(i)!==Ge)return null;var s=e.indexOf("]",i+1);if(s<0||s>=r)return null;for(var c=i+1,l=-1,u=1;c<r&&u>0;){var h=e.charCodeAt(c);if(h===dt&&c+1<r){c+=2;continue}if(h===Se){var f=en(e,c,r);if(f>c){c=f;continue}}if(h===De){var d=cc(e,c,r);if(d){c=d.end;continue}var p=kw(e,c,r);if(p>c){c=p;continue}}h===Ge?u++:h===Bt&&u--,c++}if(u!==0)return null;var m=c-1,g=e.slice(i+1,m),y=c<r?e.charCodeAt(c):0,k=!1;if(y===Ht){var S=!0;for(c++;c<r&&(e.charCodeAt(c)===F||e.charCodeAt(c)===X);)c++;var D="",T=c;if(c<r&&e.charCodeAt(c)===De){for(c++,T=c;T<r&&e.charCodeAt(T)!==ge;){if(e.charCodeAt(T)===dt&&T+1<r){T+=2;continue}if(e.charCodeAt(T)===X){S=!1;break}T++}S&&(T>=r||e.charCodeAt(T)!==ge)&&(S=!1),S&&(D=e.slice(c,T),T++)}else if(S)if(a.g!==void 0&&c>=a.g)S=!1;else{for(var x=0,O=!1;T<r;){var R=e.charCodeAt(T);if(R===dt&&T+1<r){T+=2;continue}if(R===Ht)x++;else if(R===Ut){if(O=!0,x===0)break;x--}else if(R===F||R===X)break;T++}T>=r&&!O&&(a.g===void 0||c<a.g)&&(a.g=c),D=e.slice(c,T)}if(S){for(c=T;c<r&&(e.charCodeAt(c)===F||e.charCodeAt(c)===X);)c++;var N;if(c<r){var P=e.charCodeAt(c);if(P===Ar||P===Cr||P===Ht){var J=P===Ht?41:P;c++;for(var K=c;c<r&&e.charCodeAt(c)!==J;)e.charCodeAt(c)===dt&&c+1<r&&c++,c++;c>=r?S=!1:(N=e.slice(K,c),c++)}}if(S){for(;c<r&&(e.charCodeAt(c)===F||e.charCodeAt(c)===X);)c++;(c>=r||e.charCodeAt(c)!==Ut)&&(S=!1)}}if(S){c++,D=jr(D),N!==void 0&&(N=$a(jr(N)));var te=(o==null?void 0:o.sanitizer)||$o,H=te(D,n?"img":"a",n?"src":"href"),B=H===null?null:D;if(n){var G=qt(g,0,g.length,a,o),Y=Fo(G);return{node:{type:M.image,target:B,alt:Y,title:N},end:c}}else{var be=a.inAnchor;a.inAnchor=!0;var le=be?[{type:M.text,text:g}]:qt(g,0,g.length,a,o);return a.inAnchor=be,!a.inAnchor&&Lo(le)?null:{node:{type:M.link,target:B,title:N,children:le},end:c}}}else c=m+1,k=!0}var $="",de=c;if(!k&&y===Ge){var ze=c+1;de=ze;for(var lt=!1;de<r&&e.charCodeAt(de)!==Bt;){if(e.charCodeAt(de)===dt&&de+1<r){de+=2;continue}if(e.charCodeAt(de)===Ge){lt=!0;break}de++}if(lt||de>=r)return null;var Re=e.slice(ze,de);if(Re.trim())$=Aa(Re);else{if(Ri(g))return null;$=Aa(g)}de=de+1}else{if(Ri(g))return null;$=Aa(g)}var Ue=a.refs[$];if(!Ue)return null;if(n)return{node:{type:M.image,target:Ue.target,alt:Fo(qt(g,0,g.length,a,o)),title:Ue.title},end:de};var ye=a.inAnchor;a.inAnchor=!0;var le=ye?[{type:M.text,text:g}]:qt(g,0,g.length,a,o);return a.inAnchor=ye,!a.inAnchor&&Lo(le)?null:{node:{type:M.link,target:Ue.target,title:Ue.title,children:le},end:de}}function cc(e,t,r){if(e.charCodeAt(t)!==De)return null;for(var a=t+1;a<r;){var o=e.charCodeAt(a);if(o===ge)break;if(o===F||o===X||o===_r||o===De)return null;a++}if(a>=r||e.charCodeAt(a)!==ge)return null;var n=e.slice(t+1,a),i=n.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\x00-\x20]*)$/);return i?{node:{type:M.link,target:n,title:void 0,children:[{type:M.text,text:n}]},end:a+1}:n.indexOf("@")!==-1&&/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(n)?{node:{type:M.link,target:"mailto:"+n,title:void 0,children:[{type:M.text,text:n}]},end:a+1}:null}function Sw(e,t,r,a){if(e.charCodeAt(t)!==Ge||t+1>=r||e.charCodeAt(t+1)!==er)return null;let o=t+2;for(;o<r&&e.charCodeAt(o)!==Bt&&e.charCodeAt(o)!==X;)o++;if(o>=r||e.charCodeAt(o)!==Bt)return null;let n=e.slice(t+2,o);return n?{node:{type:M.footnoteReference,target:"#"+Rt(n),text:n},end:o+1}:null}function Tw(e,t,r,a){if(a.disableBareUrls)return null;var o="",n=!1,i=e.charCodeAt(t);if(i===La||i===72?t+8<=r&&e.charCodeAt(t+1)===Br&&e.charCodeAt(t+2)===Br&&e.charCodeAt(t+3)===Eo&&(e.charCodeAt(t+4)===Qs&&e.charCodeAt(t+5)===wt&&e.charCodeAt(t+6)===qe&&e.charCodeAt(t+7)===qe?o="https://":e.charCodeAt(t+4)===wt&&e.charCodeAt(t+5)===qe&&e.charCodeAt(t+6)===qe&&(o="http://")):i===xr||i===70?t+6<=r&&e.charCodeAt(t+1)===Br&&e.charCodeAt(t+2)===Eo&&e.charCodeAt(t+3)===wt&&e.charCodeAt(t+4)===qe&&e.charCodeAt(t+5)===qe&&(o="ftp://"):(i===kr||i===87)&&t+4<=r&&e.charCodeAt(t+1)===kr&&e.charCodeAt(t+2)===kr&&e.charCodeAt(t+3)===Ot&&(o="www.",n=!0),!o)return null;let s=t+o.length;for(;s<r;){let x=e.charCodeAt(s);if(x===F||x===X||x===j||x===_r||x===De||x===ge)break;s++}for(var c=0,l=0,u=t;u<s;u++){var h=e.charCodeAt(u);h===Ht?c++:h===Ut&&l++}let f=s;for(;f>t+o.length;){let x=e.charCodeAt(f-1);if(x===Ot||x===M1||x===wt||x===At||x===la||x===Ut||x===Je||x===je||x===st){if(x===Ut){if(c>=l)break;l--}f--}else if(x===Fa){for(var d=f-2;d>t&&(e.charCodeAt(d)>=ce&&e.charCodeAt(d)<=he||e.charCodeAt(d)>=Me&&e.charCodeAt(d)<=Ne||e.charCodeAt(d)>=me&&e.charCodeAt(d)<=pe);)d--;d>=t&&e.charCodeAt(d)===Xa?f=d:f--}else break}if(f<=t+o.length)return null;var p=t+(n?4:o.length),m=e.indexOf("/",p);if((m<0||m>f)&&(m=f),n&&e.indexOf(".",p)===-1)return null;for(var g=-1,y=-1,k=m-1;k>=p;k--)if(e.charCodeAt(k)===Ot)if(g<0)g=k;else{y=k;break}for(var S=y>=0?y+1:p,k=S;k<m;k++)if(e.charCodeAt(k)===je)return null;var D=e.slice(t,f),T=n?"http://"+D:D;return{node:{type:M.link,target:T,title:void 0,children:[{type:M.text,text:D}]},end:f}}function Ew(e,t,r,a){if(a.disableBareUrls)return null;for(var o=t,n=o;o<r;){var i=e.charCodeAt(o);if(i>=ce&&i<=he||i>=Me&&i<=Ne||i>=me&&i<=pe||i===Ot||i===At||i===Lt||i===36||i===So||i===Xa||i===Cr||i===Je||i===lr||i===qe||i===Mt||i===la||i===er||i===je||i===Se||i===Gr||i===it||i===Zo||i===st||i===ue)o++;else break}if(o===n||o>=r||e.charCodeAt(o)!==$s)return null;o++;for(var s=o,c=-1,l=o;o<r;){var i=e.charCodeAt(o);if(i>=ce&&i<=he||i>=Me&&i<=Ne||i>=me&&i<=pe)o++;else if((i===ue||i===je)&&o>s)o++;else if(i===Ot){if(o===s)break;var u=e.charCodeAt(o-1);if(u===ue||u===je||o-l>63)break;if(o+1<r){var h=e.charCodeAt(o+1);if(h>=ce&&h<=he||h>=Me&&h<=Ne||h>=me&&h<=pe)c=o,l=o+1,o++;else break}else break}else break}if(o-l>63||c<0)return null;var f=e.charCodeAt(o-1);if(!(f>=ce&&f<=he||f>=Me&&f<=Ne||f>=me&&f<=pe)||o<=c+1)return null;for(var d=-1,p=c-1;p>=s;p--)if(e.charCodeAt(p)===Ot){d=p;break}for(var m=d>=0?d+1:s,p=m;p<o;p++)if(e.charCodeAt(p)===je)return null;var g=e.slice(t,o);return{node:{type:M.link,target:"mailto:"+g,title:void 0,children:[{type:M.text,text:g}]},end:o}}function Lo(e){for(var t=0;t<e.length;t++)if(e[t].type===M.link||"children"in e[t]&&Array.isArray(e[t].children)&&Lo(e[t].children))return!0;return!1}function Fo(e){for(var t="",r=0;r<e.length;r++){var a=e[r];a.type===M.text?t+=a.text:a.type===M.breakLine?t+=" ":a.type===M.codeInline?t+=a.text:"children"in a&&Array.isArray(a.children)?t+=Fo(a.children):a.type===M.image&&(t+=a.alt||"")}return t}function vr(e){return{type:M.text,text:e}}function zw(e,t,r){var a=t+1;if(a>=r)return-1;if(e.charCodeAt(a)===Lt){a++;var o=a<r&&(e.charCodeAt(a)===R1||e.charCodeAt(a)===O1);o&&a++;for(var n=a,i=o?6:7;a<r&&a-n<=i;){var s=e.charCodeAt(a),c=s>=me&&s<=pe||o&&(s>=ce&&s<=To||s>=Me&&s<=xr);if(!c)break;a++}return a===n||a-n>i?-1:a<r&&e.charCodeAt(a)===Fa?a+1:-1}for(var l=a;a<r&&a-l<48;){var u=e.charCodeAt(a);if(u>=ce&&u<=he||u>=Me&&u<=Ne||u>=me&&u<=pe){a++;continue}break}return a===l?-1:a<r&&e.charCodeAt(a)===Fa?a+1:-1}function Pw(e,t,r,a,o){if(e.charCodeAt(t)!==De)return null;var n=t+1;if(n>=r)return null;var i=e.charCodeAt(n);if(i===At&&n+1<r&&e.charCodeAt(n+1)===ue&&n+2<r&&e.charCodeAt(n+2)===ue){var s=n+3;if(s<r&&e.charCodeAt(s)===ge)return{node:{type:M.htmlComment,text:"",l:!0},end:s+1};if(s+1<r&&e.charCodeAt(s)===ue&&e.charCodeAt(s+1)===ge)return{node:{type:M.htmlComment,text:"-",l:!0},end:s+2};var c=e.indexOf("-->",s);return c!==-1&&c<=r-3?{node:{type:M.htmlComment,text:e.slice(t+4,c),l:!1},end:c+3}:null}if(i===la){var l=e.indexOf("?>",n+1);return l!==-1&&l<r?{node:{type:M.htmlSelfClosing,tag:"?",attrs:{},a:e.slice(t,l+2),b:!1},end:l+2}:null}if(i===At&&n+1<r){var u=e.charCodeAt(n+1);if(u===Ge&&e.slice(n+1,n+8)==="[CDATA["){var h=e.indexOf("]]>",n+8);return h!==-1&&h<r?{node:{type:M.htmlSelfClosing,tag:"![CDATA[",attrs:{},a:e.slice(t,h+3),b:!1},end:h+3}:null}if(u>=ce&&u<=he){var f=e.indexOf(">",n+2);return f!==-1&&f<r?{node:{type:M.htmlSelfClosing,tag:"!"+e.slice(n+1,f),attrs:{},a:e.slice(t,f+1),b:!1},end:f+1}:null}}if(i===qe){var d=n+1;if(d>=r)return null;var p=e.charCodeAt(d);if(!(p>=ce&&p<=he||p>=Me&&p<=Ne))return null;for(d++;d<r;){var m=e.charCodeAt(d);if(m>=ce&&m<=he||m>=Me&&m<=Ne||m>=me&&m<=pe||m===ue)d++;else break}for(;d<r&&(e.charCodeAt(d)===F||e.charCodeAt(d)===j||e.charCodeAt(d)===X);)d++;if(d<r&&e.charCodeAt(d)===ge){var g=e.slice(n+1,d).trim();return{node:{type:M.htmlSelfClosing,tag:g,attrs:{},a:e.slice(t,d+1),b:!0},end:d+1}}return null}if(!(i>=ce&&i<=he||i>=Me&&i<=Ne))return null;var y=Zt(e,t);if(!y)return null;var k=y.tag,S=k.toLowerCase(),D=y.selfClosing;if(D||ua(k))return{node:{type:M.htmlSelfClosing,tag:k,attrs:Xt(y.attrs,k,o),a:e.slice(t,y.end),b:!1},end:y.end};var T=da.has(S),x=Oo(e.slice(0,r),y.end,k);if(x===-1)return{node:{type:M.htmlSelfClosing,tag:k,attrs:Xt(y.attrs,k,o),a:e.slice(t,y.end),b:!1},end:y.end};var O=pw(e,"</"+S,x),R=e.slice(y.end,O),N=[];if(T)R.trim()&&(N=[{type:M.text,text:R}]);else{var P=R.trim();if(P){var{inAnchor:J,inline:K,e:te}=a;S==="a"&&(a.inAnchor=!0),a.e=!1;var H=P.indexOf(`
657
-
658
- `)!==-1||/^#{1,6}\s/.test(P);H?(a.inline=!1,N=cr(P,a,o)):N=qt(P,0,P.length,a,o),a.inAnchor=J,a.inline=K,a.e=te}}return{node:{type:M.htmlBlock,tag:k,attrs:Xt(y.attrs,k,o),i:y.rawAttrs,children:N,a:void 0,text:R,d:!1,b:!1},end:x}}var Dw=200,ta=0;function qt(e,t,r,a,o){if(ta++,ta>Dw)return ta--,[{type:M.text,text:e.slice(t,r)}];var n=a.g;a.g=void 0;let i=a;if(o.optimizeForStreaming){let se=function(we,$e){for(var We=1,ut=$e+1;ut<we.length;ut++){var Be=we.charCodeAt(ut);if(Be===Ge)We++;else if(Be===Bt&&(We--,We===0))return ut}return-1},U=e.slice(t,r),ht=U;for(var s=0,c=0,l=0,u=0,h=0,f=-1,d=-1,p=-1,m=-1,g=-1,y=0;y<U.length;y++){var k=U.charCodeAt(y);k===Je?y+1<U.length&&U.charCodeAt(y+1)===Je?(s++,f=y,y++):(c++,d=y):k===je?y+1<U.length&&U.charCodeAt(y+1)===je?(l++,p=y,y++):(u++,m=y):k===st&&y+1<U.length&&U.charCodeAt(y+1)===st&&(h++,g=y,y++)}var S=[];h%2===1&&g>=0&&S.push([g,2]),l%2===1&&p>=0&&S.push([p,2]),u%2===1&&m>=0&&S.push([m,1]),s%2===1&&f>=0&&S.push([f,2]),c%2===1&&d>=0&&S.push([d,1]),S.sort(function(we,$e){return $e[0]-we[0]});for(var D=0;D<S.length;D++){var T=S[D][0],x=S[D][1];U=U.slice(0,T)+U.slice(T+x)}let nt=0,ft=-1;for(let we=0;we<U.length;we++)U.charCodeAt(we)===Se&&(nt++,ft=we);if(nt%2===1&&ft!==-1){let we=!1,$e=-1,We=0;for(;We<U.length;)U.charCodeAt(We)===Se&&(we?(we=!1,$e=-1):($e=We,we=!0)),We++;we&&$e!==-1&&(U=U.slice(0,$e))}for(var O=!0;O;){O=!1;for(var R=-1,N=-1,P=-1,J=!1,K=0;K<U.length;K++){var te=U.charCodeAt(K);if(te===Ge&&(K===0||U.charCodeAt(K-1)!==dt)){var H=K>0&&U.charCodeAt(K-1)===At,B=H?K-1:K,G=se(U,K);if(G===-1)R=B,J=H,N=K+1,P=U.length;else{var Y=G+1;if(Y>=U.length)R=B,J=H,N=K+1,P=G;else if(U.charCodeAt(Y)===Ht){var be=U.indexOf(")",Y+1);be===-1?(R=B,J=H,N=K+1,P=G,K=U.length):K=be}else if(U.charCodeAt(Y)===Ge){var $=U.indexOf("]",Y+1);$===-1?(R=B,J=H,N=K+1,P=G,K=U.length):K=$}else K=G}}}if(R>=0){var de=J?"":U.slice(N,P);U=U.slice(0,R)+de,O=!0}}let at=U.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(at&&at.index!==void 0){var ze=at[0].length-at[2].length,lt=ze>=2&&at[0].charCodeAt(ze-2)===qe;if(!lt){for(var Re=!1,Ue=0,ye=0;ye<at.index;ye++)U.charCodeAt(ye)===Se&&Ue++;if(Re=Ue%2===1,!Re){let we=at[1];ir(U,"</"+we,0)===-1&&(U=U.slice(0,at.index)+at[2])}}}U!==ht&&(e=e.slice(0,t)+U,r=t+U.length)}let le=[];var Oe=[];let ie=t;var _e="",fe=o.disableAutoLink||o.disableBareUrls||i.inAnchor?-1:e.indexOf("@",t);for(fe>=r&&(fe=-1);t<r;){let se=e.charCodeAt(t),U=null;if(se===Se){if(U=ww(e,t,r),!U){var rt=ur(e,t,r,Se);t+=rt-1}}else if(se===Je||se===je){var Ce=Cw(e,t,r);if(Ce){if(Ce.canOpen||Ce.canClose){(_e||t>ie)&&(le.push(vr(_e+e.slice(ie,t))),_e="");var ve=e.slice(t,t+Ce.len),Q=vr(ve);Oe.push({idx:le.length,ch:se,len:Ce.len,canOpen:Ce.canOpen,canClose:Ce.canClose,active:!0}),le.push(Q),t+=Ce.len,ie=t;continue}t+=Ce.len-1}}else if(se===st)U=_w(e,t,r,i,o);else if(se===Mt)U=xw(e,t,r,i,o);else if(se===Ge)t+1<r&&e.charCodeAt(t+1)===er&&(U=Sw(e,t,r)),U||(U=Ui(e,t,r,i,o));else if(se===At&&t+1<r&&e.charCodeAt(t+1)===Ge)U=Ui(e,t,r,i,o);else if(se===De)U=cc(e,t,r),!U&&!o.disableParsingRawHTML&&!o.ignoreHTMLBlocks&&(U=Pw(e,t,r,i,o));else if(se===Xa){var Le=zw(e,t,r);if(Le!==-1){var ot=e.slice(t,Le),Ve=$a(ot);if(Ve!==ot){_e=_e+e.slice(ie,t)+Ve,t=Le,ie=Le;continue}}}else if((se===La||se===kr||se===xr)&&!i.inAnchor&&!o.disableAutoLink&&(t===0||e.charCodeAt(t-1)!==De)){var mt=t+1<r?e.charCodeAt(t+1):0;(se===La&&mt===Br||se===xr&&mt===Br||se===kr&&mt===kr)&&(U=Tw(e,t,r,o))}if(!U&&fe>=0&&fe-t<=64&&!i.inAnchor&&!o.disableAutoLink&&!o.disableBareUrls&&(se>=ce&&se<=he||se>=Me&&se<=Ne||se>=me&&se<=pe)&&(U=Ew(e,t,r,o),!U&&t>=fe&&(fe=e.indexOf("@",t+1),fe>=r&&(fe=-1))),se===X&&i.e){var gt=!1,W=0;if(t>ie&&e.charCodeAt(t-1)===dt)gt=!0,W=1;else{for(var oe=0,V=t-1;V>=ie&&e.charCodeAt(V)===F;)oe++,V--;oe>=2&&(gt=!0,W=oe)}if(gt){for((_e||t-W>ie)&&(le.push(vr(_e+e.slice(ie,t-W))),_e=""),le.push({type:M.breakLine}),t++;t<r&&e.charCodeAt(t)===F;)t++;ie=t;continue}var Ze=t>ie&&e.charCodeAt(t-1)===F,Pe=t+1<r&&e.charCodeAt(t+1)===F;if(Ze||Pe){for(var pt=t;pt>ie&&e.charCodeAt(pt-1)===F;)pt--;for(_e+=e.slice(ie,pt)+`
659
- `,t++;t<r&&e.charCodeAt(t)===F;)t++;ie=t;continue}}if(U)(_e||t>ie)&&(le.push(vr(_e+e.slice(ie,t))),_e=""),le.push(U.node),t=U.end,ie=t;else{if(se===dt&&t+1<r){let ht=e.charCodeAt(t+1);if(Qo(ht)&Nr){(_e||t>ie)&&(le.push(vr(_e+e.slice(ie,t))),_e=""),le.push(vr(e[t+1])),t+=2,ie=t;continue}}if(t++,fe<0||fe-t>64)for(;t<r&&!(fe>=0&&fe-t<=64);){var Pt=e.charCodeAt(t);if(Pt<Za&&!ac[Pt])t++;else break}}}return(_e||r>ie)&&(le.push(vr(_e+e.slice(ie,r))),_e=""),Oe.length>0&&Aw(le,Oe),a.g=n,ta--,le}var Mw=500;function cr(e,t,r){var a=t.j||0;if(a>Mw)return[{type:M.text,text:e}];if(t.j=a+1,r.optimizeForStreaming&&!t.m){var o=e.length;o>0&&e.charCodeAt(o-1)===X&&o--;for(var n=o;n>0&&e.charCodeAt(n-1)!==X;)n--;if(n>0&&e.charCodeAt(n)===it){for(var i=!0,s=n;s<o;s++){var c=e.charCodeAt(s);if(c!==F&&c!==j&&c!==ue&&c!==wt&&c!==it){i=!1;break}}if(i){for(var l=n-1;l>0&&e.charCodeAt(l-1)!==X;)l--;e.charCodeAt(l)===it&&(e=e.slice(0,l).trimEnd())}}var u=e.trim(),h=u.lastIndexOf(`
660
- `),f=h===-1?u:u.slice(h+1);if(f.length>0&&f.charCodeAt(0)===it){for(var d=!1,p=!1,m=1;m<f.length;m++){var g=f.charCodeAt(m);g===it&&(d=!0),g===ue&&(p=!0)}d&&p&&(e=h===-1?"":e.slice(0,e.lastIndexOf(f)).trimEnd())}for(var y=-1,k=-1,S=-1,D=e.length-1;D>=0;D--)if(e.charCodeAt(D)===De){var T=D+1<e.length?e.charCodeAt(D+1):0;if(T>=ce&&T<=he||T>=Me&&T<=Ne){for(var x=D+2;x<e.length;){var O=e.charCodeAt(x);if(O>=ce&&O<=he||O>=Me&&O<=Ne||O>=me&&O<=pe)x++;else break}for(var R=x;R<e.length&&e.charCodeAt(R)!==ge;)R++;if(R<e.length&&e.charCodeAt(R-1)!==qe){for(var N=!1,P=R+1;P<e.length;P++)if(e.charCodeAt(P)===De){N=!0;break}N||(y=D,k=x,S=R+1)}}break}if(y>=0){for(var J=0,K=0;K<y;K++)e.charCodeAt(K)===Se&&J++;if(J%2===0){var te=e.slice(y+1,k);ir(e,"</"+te,0)===-1&&(e=e.slice(0,y)+e.slice(S))}}for(var H=e.length;H>0&&e.charCodeAt(H-1)===X;)H--;if(H>0){for(var B=H;B>0&&e.charCodeAt(B-1)!==X;)B--;for(var G=B,Y=0;G<H&&e.charCodeAt(G)===F&&Y<3;)G++,Y++;if(B>0&&G<H&&uw(e,G,H)){for(var be=B-1,$=be;$>0&&e.charCodeAt($-1)!==X;)$--;Ct(e,$,be)||(e=e.slice(0,B).trimEnd())}}var de=e.length;if(de>0){for(var ze=e.lastIndexOf(`
661
- `),lt=ze===-1?0:ze+1,Re=de,Ue=lt,ye=0;Ue<Re&&e.charCodeAt(Ue)===F&&ye<3;)Ue++,ye++;if(Ue<Re){var le=e.charCodeAt(Ue),Oe=!1;if(le===Je||le===ue||le===lr){var ie=Ue+1;if(ie>=Re||e.charCodeAt(ie)===F||e.charCodeAt(ie)===j){for(var _e=ie;_e<Re&&(e.charCodeAt(_e)===F||e.charCodeAt(_e)===j);)_e++;_e>=Re&&(Oe=!0)}}else if(le>=me&&le<=pe){for(var fe=Ue;fe<Re&&e.charCodeAt(fe)>=me&&e.charCodeAt(fe)<=pe;)fe++;if(fe<Re&&(e.charCodeAt(fe)===Ot||e.charCodeAt(fe)===Ut)){var rt=fe+1;if(rt>=Re||e.charCodeAt(rt)===F||e.charCodeAt(rt)===j){for(var Ce=rt;Ce<Re&&(e.charCodeAt(Ce)===F||e.charCodeAt(Ce)===j);)Ce++;Ce>=Re&&(Oe=!0)}}}Oe&&(e=e.slice(0,lt).trimEnd())}}}if(t.inline)return qt(e,0,e.length,t,r);let ve=[],Q=0,Le=e.length;if(Q===0&&!r.disableFrontmatter&&e.startsWith("---")){let V=F1(e);if(V&&V.hasValidYaml){if(r.preserveFrontmatter!==!1){let Ze=e.slice(0,V.endPos).trimEnd();ve.push({type:M.frontmatter,text:Ze})}Q=V.endPos}}for(;Q<Le;){for(var ot=e.indexOf(`
662
- `,Q),Ve=ot<0?Le:ot;Q<Le&&Ct(e,Q,Ve);)Q=Ve<Le?Ve+1:Ve,Q<Le&&(ot=e.indexOf(`
663
- `,Q),Ve=ot<0?Le:ot);if(Q>=Le)break;var mt=e.charCodeAt(Q)===zo;Qe(e,Q,Ve);let V=null;if(Mo=e,Ro=Q,Sa=Ve,!mt&&Ae>=4&&!t.inHTML)V=hw(e,Q);else if(!mt){let Ze=Q+xe,Pe=e.charCodeAt(Ze);Pe===Lt?V=lw(e,Q,t,r):Pe===ge?V=fw(e,Q,t,r):Pe===Se||Pe===st?V=dw(e,Q):Pe===ue||Pe===Je||Pe===je?(V=sr(e,Q),!V&&(V=Li(e,Q,t,r))):Pe===lr||Pe>=me&&Pe<=pe?V=Li(e,Q,t,r):Pe===De?V=sc(e,Q,t,r):Pe===it?V=Ii(e,Q,t,r):Pe===Ge&&(V=bw(e,Q,t))}if(!V){for(var gt=!1,W=Q;W<Ve;W++)if(e.charCodeAt(W)===it){gt=!0;break}gt&&(V=Ii(e,Q,t,r))}if(V||(V=vw(e,Q,t,r)),V)V.node.type!==M.refCollection&&ve.push(V.node),Q=V.end;else{var oe=e.indexOf(`
664
- `,Q);Q=oe<0?Le:oe+1}}return t.j=a,ve}function Rw(e,t,r,a){var o=Zt(e,t);return o?{tagName:o.tag,tagLower:o.tag.toLowerCase(),attrs:o.rawAttrs,whitespaceBeforeAttrs:o.whitespaceBeforeAttrs,isSelfClosing:o.selfClosing,hasSpaceBeforeSlash:o.hasSpaceBeforeSlash,isClosing:o.isClosing,hasNewline:o.whitespaceBeforeAttrs.includes(`
665
- `)||o.rawAttrs.includes(`
666
- `),endPos:o.end}:null}function tn(e,t,r){ta=0,e=G1(e),!t.refs&&(t.refs={}),(r.optimizeForStreaming||t.inline)&&(t.m=cw(e,t.refs,r));var a=!t.k;a&&(t.k=[],t.h=[]);let o=cr(e,t,r);if(a){for(var n=t.k,i={inline:t.inline,inAnchor:t.inAnchor,inHTML:t.inHTML,htmlDepth:t.c,inList:t.inList,inBlockQuote:t.inBlockQuote,noSetext:t.f,depth:t.j},s=0;s<n.length;s++){var c=n[s];t.inline=c.inline,t.inAnchor=c.inAnchor,t.inHTML=c.inHTML,t.c=c.htmlDepth,t.inList=c.inList,t.inBlockQuote=c.inBlockQuote,t.f=c.noSetext,t.j=c.depth,t.e=c.breaks;var l=qt(c.text,0,c.text.length,t,r);t.e=!1;for(var u=0;u<l.length;u++)c.dest.push(l[u])}t.inline=i.inline,t.inAnchor=i.inAnchor,t.inHTML=i.inHTML,t.c=i.htmlDepth,t.inList=i.inList,t.inBlockQuote=i.inBlockQuote,t.f=i.noSetext,t.j=i.depth;for(var h=t.h,f=0;f<h.length;f++)for(var d=h[f],p=0;p<d.src.length;p++){var m=d.src[p];if(d.unwrap&&m.type===M.paragraph)for(var g=m.children,y=0;y<g.length;y++)d.dest.push(g[y]);else d.dest.push(m)}t.k=void 0,t.h=void 0}return ec(t.refs)?[{type:M.refCollection,refs:t.refs},...o]:o}var Io;try{Io=z.createElement("div").$$typeof}catch{Io=Symbol.for("react.transitional.element")}function No(e,t,r){return{$$typeof:Io,type:e,key:r!=null?""+r:null,ref:null,props:t,_owner:null,_store:{},_debugStack:null,_debugTask:null}}var Ow=typeof z.createContext<"u"?z.createContext(void 0):void 0;function Bi(e,t,r,a,o,n,i,s,c){switch(e.type){case M.blockQuote:{let d={key:r.key};return e.alert&&(d.className="markdown-alert-"+n(e.alert.toLowerCase(),Rt),e.children.unshift(q1(e.alert))),a("blockquote",d,t(e.children,r))}case M.breakLine:return a("br",{key:r.key});case M.breakThematic:return a("hr",{key:r.key});case M.frontmatter:return s.preserveFrontmatter?a("pre",{key:r.key},e.text):null;case M.codeBlock:let f=e.lang?$a(e.lang):"";return a("pre",{key:r.key},a("code",{...Et(e.attrs),className:f?`language-${f} lang-${f}`:""},e.text));case M.codeInline:return a("code",{key:r.key},e.text);case M.footnoteReference:return a("a",{key:r.key,href:o(e.target,"a","href")||void 0},a("sup",null,e.text));case M.gfmTask:return a("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"});case M.heading:return a(`h${e.level}`,{id:e.id,key:r.key},t(e.children,r));case M.htmlBlock:{let d=e;if(s.tagfilter&&zi(d.tag))return a("span",{key:r.key},"<"+d.tag+Ei(d.attrs)+">");if(d.a&&d.d){let p=d.tag.toLowerCase(),m=iw(p),g=d.children&&d.children.length>0;if(m){let P=Z1(d.a,p,s.tagfilter);return/<[a-z][^>]{0,100}>/i.test(d.a)?c(e.tag,{key:r.key,...Et(e.attrs),dangerouslySetInnerHTML:{__html:P}}):c(e.tag,{key:r.key,...Et(e.attrs)},P)}let y=new RegExp(`^<${d.tag}(\\s|>)`,"i");if(g&&!y.test(d.a)&&s.tagfilter&&rw(d.a))return c(e.tag,{key:r.key,...Et(e.attrs)},t(d.children,r));if(sw(d.a)){let P=s.tagfilter?rc(d.a):d.a;return c(e.tag,{key:r.key,...Et(e.attrs),dangerouslySetInnerHTML:{__html:P}})}let k={slugify:P=>n(P,Rt),sanitizer:o,tagfilter:!0},S=d.a.replace(/>\s+</g,"><").replace(/\n+/g," ").trim();if(new RegExp(`^<${d.tag}(\\s[^>]*)?>(\\s*</${d.tag}>)?$`,"i").test(S))return d.children&&d.children.length>0?c(e.tag,{key:r.key,...Et(e.attrs)},t(d.children,r)):c(e.tag,{key:r.key,...Et(e.attrs)});let D=tn(S,{inline:!1,refs:i,inHTML:!1},k);tc(D);let T=d.tag.toLowerCase(),x="</"+T+">",O=y.test(S),R=S.toLowerCase().trimEnd().endsWith(x),N=O&&R;if(N&&g)return c(e.tag,{key:r.key,...Et(e.attrs)},t(d.children,r));if(N)return t(D.flatMap(Hr),r);var l=X1(D,T);if(l.found&&l.afterClose.length>0){var u=l.beforeClose.flatMap(Hr),h=l.afterClose.flatMap(Hr);return No(z.Fragment,{children:[c(e.tag,{key:r.key,...Et(e.attrs)},t(u,r)),t(h,r)]},r.key)}return c(e.tag,{key:r.key,...Et(e.attrs)},t(D.flatMap(Hr),r))}return ua(e.tag)?c(e.tag,{key:r.key,...Et(e.attrs)}):c(e.tag,{key:r.key,...Et(e.attrs)},e.children?t(e.children,r):"")}case M.htmlSelfClosing:{let d=e;return s.tagfilter&&zi(d.tag)?a("span",{key:r.key},"<"+d.tag+Ei(d.attrs)+" />"):c(e.tag,{key:r.key,...Et(e.attrs)})}case M.image:{let d=e.target!=null?o(e.target,"img","src"):null;return a("img",{key:r.key,alt:e.alt&&e.alt.length>0?e.alt:void 0,title:e.title||void 0,src:d||void 0})}case M.link:{let d={key:r.key};return e.target!=null&&(d.href=Q1(e.target)),e.title&&(d.title=e.title),a("a",d,t(e.children,r))}case M.table:{let d=e;return a("table",{key:r.key},a("thead",{key:"thead"},a("tr",null,d.header.map(function(p,m){return a("th",{key:m,style:d.align[m]==null?{}:{textAlign:d.align[m]}},t(p,r))}))),d.cells.length>0&&a("tbody",{key:"tbody"},d.cells.map(function(p,m){return a("tr",{key:m},p.map(function(g,y){return a("td",{key:y,style:d.align[y]==null?{}:{textAlign:d.align[y]}},t(g,r))}))})))}case M.text:return e.text;case M.textFormatted:return a(e.tag,{key:r.key},t(e.children,r));case M.orderedList:case M.unorderedList:{let d=e.type===M.orderedList?"ol":"ul";return a(d,{key:r.key,start:e.type===M.orderedList?e.start:void 0},e.items.map(function(p,m){return a("li",{key:m},t(p,r))}))}case M.paragraph:return a("p",{key:r.key},t(e.children,r));case M.ref:return null;default:return null}}var Lw=(e,t,r,a,o,n,i)=>{var s=l=>l.map(function(u){return"text"in u?u.text:""}),c=(l,u={})=>{var h=(u.renderDepth||0)+1;if(h>2500)return s(l);u.renderDepth=h;for(var f=u.key,d=[],p=!1,m=0;m<l.length;m++){u.key=m;var g;if(e){var y=Bi.bind(null,l[m],c,u,t,r,a,o,n,i);g=e(y,l[m],c,u)}else g=Bi(l[m],c,u,t,r,a,o,n,i);var k=typeof g=="string";if(k&&p)d[d.length-1]+=g;else if(g!==null)if(Array.isArray(g))for(var S=0;S<g.length;S++)d.push(g[S]);else d.push(g);p=k}return u.key=f,u.renderDepth=h-1,d};return c},Fw=(e,t)=>{let r=Po(t,e,void 0);return r?typeof r=="function"||typeof r=="object"&&"render"in r?r:Po(t,`${e}.component`,e):e};function Iw(e,t){let r={...t||{}};r.overrides=r.overrides||{};let a=r.slugify||Rt,o=r.sanitizer||$o,n=r.createElement,i=ec(r.overrides),s=S=>Ho(S,{...r,wrapper:null});function c(S){for(var D in S){var T=S[D];if(typeof T=="string"&&T.length>0&&T.charCodeAt(0)===De&&(aw.test(T)||ow.test(T)||Rw(T,0))){var x=s(T.trim());S[D]=D==="innerHTML"&&Array.isArray(x)?x[0]:x}}}function l(S,D,...T){var x=D||{},O=S;if(i){var R=Po(r.overrides,S+".props",{});O=Fw(S,r.overrides),x={...x,...R,className:ew(x.className,R.className)||void 0}}if(!n){var N=x.key;return N!=null&&delete x.key,T.length===1?x.children=T[0]:T.length>1&&(x.children=T),No(O,x,N)}return n(O,x,...T)}function u(S,D,...T){return D&&c(D),l(S,D,...T)}let h={...r,slugify:r.slugify?S=>r.slugify(S,Rt):Rt,sanitizer:o,tagfilter:r.tagfilter!==!1},f=e[0]&&e[0].type===M.refCollection?e[0].refs:{},d=Lw(r.renderRule,l,o,a,f,r,u),p=d(e,{inline:r.forceInline,refs:f}),m=$1(f);if(m.length&&p.push(l("footer",{key:"footer"},m.map(function(S){let D=S.identifier.charCodeAt(0)===er?S.identifier.slice(1):S.identifier,T=tn(S.footnote,{inline:!0,refs:f},h);return l("div",{id:a(D,Rt),key:S.identifier},D+": ",d(T,{inline:!0,refs:f}))}))),r.wrapper===null)return p;let g=r.wrapper||(r.forceInline?"span":"div"),y;if(p.length>1||r.forceWrapper)y=p;else return p.length===1?p[0]:null;var k=r.wrapperProps?{...r.wrapperProps}:{};return k.children=y,No(g,k,"outer")}function Ho(e="",t={}){let r={...t||{}};r.overrides=r.overrides||{},r.slugify;let a=r.sanitizer||$o;function o(i){let s=r.forceInline||!r.forceBlock&&!U1.test(i),c={...r,slugify:r.slugify?f=>r.slugify(f,Rt):Rt,sanitizer:a,tagfilter:r.tagfilter!==!1},l=s?i:J1(i);if(r.optimizeForStreaming){var u=l.lastIndexOf("<");u!==-1&&l.indexOf(">",u)===-1&&(l=l.slice(0,u))}let h=tn(l,{inline:s,refs:n},c);return Iw(h,{...c,forceInline:s})}let n={};return o(e)}function Nw(e){let t=z.useRef(e),r=t.current;if(r!==e){var a=!0,o=0;for(var n in e)if(o++,!Object.is(r[n],e[n])){a=!1;break}if(a){var i=0;for(var s in r)i++;a=i===o}a||(t.current=e)}return t.current}var Hw=({children:e,options:t,...r})=>{if(!(typeof z.useContext<"u")){let s={...t,overrides:{...t==null?void 0:t.overrides},wrapperProps:{...t==null?void 0:t.wrapperProps,...r}};return Ho(e??"",s)}let a=z.useContext(Ow),o=Nw(r),n=z.useMemo(()=>({...a,...t,overrides:{...a==null?void 0:a.overrides,...t==null?void 0:t.overrides},wrapperProps:{...a==null?void 0:a.wrapperProps,...t==null?void 0:t.wrapperProps,...o}}),[a,t,o]),i=e??"";return z.useMemo(()=>Ho(i,n),[i,n])},Uw=Hw,Bw=Uw;const jw={forceBlock:!0,overrides:{a:{component:({children:e,...t})=>A.jsx("a",{...t,target:"_blank",rel:"noopener noreferrer",children:e})}}};function Vw({text:e}){return A.jsx("div",{className:"zai-md",children:A.jsx(Bw,{options:jw,children:e})})}const vo=["what's going on?","what's moving today?","summarize the market for me","what should I be watching?","explain my dashboard"],rn=["day-stats","ohlcv","quote-stream"],Ww=[{caps:rn,text:e=>e?`what's moving in ${e}?`:"what's moving today?"},{caps:["funding-history"],text:()=>"how's funding looking?"},{caps:["open-interest"],text:()=>"where's open interest building?"},{caps:["sentiment"],text:()=>"is it fear or greed right now?"},{caps:["coin-movers","coin-markets"],text:()=>"what are today's biggest movers?"},{caps:["global-market"],text:()=>"how's the total market cap?"},{caps:["tvl","protocol-tvl","dex-volume","protocol-fees"],text:()=>"which chains are gaining TVL?"},{caps:["news"],text:()=>"any headlines I should see?"},{caps:["btc-fees","btc-mempool","btc-blocks","btc-difficulty","mining-pools","lightning-stats"],text:()=>"how busy is the Bitcoin network?"},{caps:["yield-curve","reference-rates"],text:()=>"what's the yield curve saying?"},{caps:["financial-stress"],text:()=>"any signs of financial stress?"},{caps:["options-summary"],text:()=>"what's the put/call ratio?"},{caps:["portfolio"],text:()=>"how's my portfolio doing?"}],Gw=8;function Kw(e,t){var r;for(const a of e.frames){if(!(((r=t.get(a.frame))==null?void 0:r.capabilities)??[]).some(c=>rn.includes(c)))continue;const n=a.config??{},i=[];if(typeof n.symbol=="string"&&i.push(n.symbol),Array.isArray(n.symbols))for(const c of n.symbols)typeof c=="string"&&i.push(c);const s=i.find(c=>c&&c!=="*"&&!c.endsWith(":*"));if(s)return Ja(s)}}function qw(e,t){var i;const r=new Set;for(const s of e.frames)for(const c of((i=t.get(s.frame))==null?void 0:i.capabilities)??[])r.add(c);if(r.size===0)return vo;const a=Kw(e,t),o=[];for(const s of Ww)s.caps.some(c=>r.has(c))&&o.push(s.text(s.caps===rn?a:void 0));const n=[...new Set([...o,...vo])].slice(0,Gw);return n.length?n:vo}const ji=1,Yw=2,Jw=5,Xw="effect2",Zw=3600,Uo=320,$w=38e3,Qw=7200,ek=130;function tk(e){return e===503?"No assistant is set up to answer yet — install Claude, Codex, or Kimi.":e===413?"That question was too long — try a shorter one.":e>=500?"zAI ran into a problem answering — give it another try.":e===200?"zAI sent back an unexpected response. If you just updated zframes, restart the server.":`zAI couldn't answer right now (error ${e}).`}const rk=`
667
- /* Focus scrim: opening the orb blurs + dims the dashboard behind so attention
668
- lands on the conversation. Sits below the orb dock (z 40) and above the
669
- ticker tape (z 30), so the orb + chat stay sharp while everything else
670
- recedes. Clicking it dismisses the orb (click-away-to-close).
671
-
672
- Two stacked gradients give the open state ATMOSPHERE rather than a flat dim:
673
- (1) a warm violet glow spilling from the orb's corner — the room reads as lit
674
- by zAI, a glowing source, not just darkened; (2) a deeper, warmer dim toward
675
- the far corner — a violet-plum near-black (not the old cold blue-black) so the
676
- room genuinely recedes. The near-orb corner stays clear so the conversation
677
- sits in the light while everything else falls away. */
678
- .zai-scrim {
679
- position: fixed;
680
- inset: 0;
681
- z-index: 35;
682
- opacity: 0;
683
- pointer-events: none;
684
- background:
685
- radial-gradient(
686
- 88% 82% at 100% 100%,
687
- hsla(268, 82%, 44%, 0.22),
688
- transparent 56%
689
- ),
690
- radial-gradient(
691
- 150% 150% at 100% 100%,
692
- hsla(266, 44%, 7%, 0.12),
693
- hsla(263, 52%, 4%, 0.74) 78%
694
- );
695
- backdrop-filter: blur(0px) saturate(1);
696
- -webkit-backdrop-filter: blur(0px) saturate(1);
697
- transition:
698
- opacity 0.46s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
699
- backdrop-filter 0.46s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
700
- -webkit-backdrop-filter 0.46s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
701
- }
702
- .zai-scrim[data-open="true"] {
703
- opacity: 1;
704
- pointer-events: auto;
705
- backdrop-filter: blur(2.5px) saturate(1.12);
706
- -webkit-backdrop-filter: blur(2.5px) saturate(1.12);
707
- }
708
- .zai-dock {
709
- position: fixed;
710
- right: 18px;
711
- bottom: 50px;
712
- z-index: 40;
713
- display: flex;
714
- align-items: center;
715
- gap: 10px;
716
- font-family: var(--font-dmsans, system-ui, sans-serif);
717
- }
718
- .zai-panel {
719
- display: flex;
720
- align-items: center;
721
- width: 0;
722
- opacity: 0;
723
- overflow: hidden;
724
- transition:
725
- width 0.34s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
726
- opacity 0.22s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
727
- }
728
- .zai-dock[data-open="true"] .zai-panel {
729
- width: 330px;
730
- opacity: 1;
731
- }
732
- .zai-input-wrap {
733
- display: flex;
734
- align-items: center;
735
- gap: 8px;
736
- width: 330px;
737
- padding: 9px 10px 9px 14px;
738
- border-radius: 9999px;
739
- background: rgba(12, 13, 20, 0.72);
740
- backdrop-filter: blur(12px);
741
- -webkit-backdrop-filter: blur(12px);
742
- border: 1px solid hsla(263, 80%, 72%, 0.24);
743
- /* Negative spread keeps the drop shadow hugging the pill instead of bleeding
744
- a wide dark halo into the blurred scrim behind it. */
745
- box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.45);
746
- }
747
- /* The input and its animated placeholder share one box: the placeholder is an
748
- absolutely-positioned layer behind the (transparent) input, so the real
749
- caret/text sit on top while the hint cross-fades underneath. */
750
- .zai-input-field {
751
- position: relative;
752
- flex: 1;
753
- min-width: 0;
754
- display: flex;
755
- align-items: center;
756
- }
757
- .zai-input {
758
- position: relative;
759
- z-index: 1;
760
- flex: 1;
761
- min-width: 0;
762
- background: transparent;
763
- border: 0;
764
- outline: 0;
765
- color: #e7e9f3;
766
- font-size: 13px;
767
- }
768
- .zai-ph {
769
- position: absolute;
770
- left: 0;
771
- right: 0;
772
- top: 50%;
773
- pointer-events: none;
774
- color: rgba(255, 255, 255, 0.4);
775
- font-size: 13px;
776
- white-space: nowrap;
777
- overflow: hidden;
778
- text-overflow: ellipsis;
779
- opacity: 0;
780
- transform: translateY(-50%) translateY(5px);
781
- transition:
782
- opacity ${Uo}ms var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
783
- transform ${Uo}ms var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
784
- }
785
- .zai-ph[data-show="true"] {
786
- opacity: 1;
787
- transform: translateY(-50%) translateY(0);
788
- }
789
- /* While thinking, the hint shimmers instead of cycling (overrides opacity). */
790
- .zai-ph-busy {
791
- animation: zai-ph-pulse 1.5s ease-in-out infinite;
792
- }
793
- @keyframes zai-ph-pulse {
794
- 0%, 100% { opacity: 0.34; }
795
- 50% { opacity: 0.7; }
796
- }
797
- .zai-agent {
798
- flex: none;
799
- font-size: 10px;
800
- font-weight: 700;
801
- letter-spacing: 0.05em;
802
- text-transform: uppercase;
803
- color: hsla(263, 85%, 82%, 0.95);
804
- background: hsla(263, 80%, 60%, 0.16);
805
- border-radius: 7px;
806
- padding: 4px 7px;
807
- cursor: pointer;
808
- user-select: none;
809
- white-space: nowrap;
810
- transition: background 0.15s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
811
- }
812
- .zai-agent:hover { background: hsla(263, 80%, 60%, 0.28); }
813
-
814
- /* Idle attention nudge: after a stretch of inactivity the orb floats a single
815
- tailored suggestion beside itself ("here's something you could ask"), then
816
- fades it away and re-arms while idle. Clicking it opens the orb prefilled with
817
- that question. Always in the DOM (so the fade transition plays) and revealed
818
- by data-nudge on the dock; cleared the moment you hover the orb or open it. */
819
- .zai-nudge {
820
- position: absolute;
821
- right: 72px;
822
- bottom: 14px;
823
- max-width: 244px;
824
- margin: 0;
825
- padding: 9px 13px;
826
- border-radius: 14px 14px 4px 14px;
827
- background: rgba(12, 13, 20, 0.82);
828
- border: 1px solid hsla(263, 80%, 72%, 0.28);
829
- backdrop-filter: blur(12px);
830
- -webkit-backdrop-filter: blur(12px);
831
- box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.55);
832
- color: #e7e9f3;
833
- font-family: inherit;
834
- font-size: 12.5px;
835
- line-height: 1.4;
836
- text-align: left;
837
- cursor: pointer;
838
- opacity: 0;
839
- transform: translateX(10px) scale(0.96);
840
- transform-origin: bottom right;
841
- pointer-events: none;
842
- transition:
843
- opacity 0.32s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
844
- transform 0.32s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
845
- }
846
- .zai-dock[data-nudge="true"] .zai-nudge {
847
- opacity: 1;
848
- transform: translateX(0) scale(1);
849
- pointer-events: auto;
850
- }
851
- .zai-nudge:hover { border-color: hsla(263, 85%, 78%, 0.45); }
852
-
853
- /* The WebGL orb scene IS the orb — clipped to a circle and faded in once ready.
854
- The button is just a transparent container; nothing is drawn behind the orb. */
855
- .zai-orb-canvas {
856
- position: absolute;
857
- inset: 0;
858
- border-radius: 9999px;
859
- overflow: hidden;
860
- opacity: 0;
861
- transform: scale(0.82);
862
- transition:
863
- opacity 0.45s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
864
- transform 0.45s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
865
- pointer-events: none;
866
- }
867
- /* Wake-in bloom: the first time the WebGL orb is ready it scales up from small
868
- with a slight overshoot and fades in, so it "boots" into the dock instead of
869
- just appearing. One-shot (fill: both) — once it settles the orb rests at
870
- scale 1, where the breathing halo (below) takes over. */
871
- .zai-orb[data-webgl="true"] .zai-orb-canvas {
872
- opacity: 1;
873
- transform: scale(1);
874
- animation: zai-orb-wake 0.7s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1))
875
- both;
876
- }
877
- @keyframes zai-orb-wake {
878
- 0% { opacity: 0; transform: scale(0.7); }
879
- 60% { opacity: 1; transform: scale(1.06); }
880
- 100% { opacity: 1; transform: scale(1); }
881
- }
882
- /* Streaming heartbeat: each burst of answer tokens fires a quick expanding ring
883
- from the orb, so it visibly "pulses" as it talks. Keyed on a beat counter in
884
- JS (throttled), so each increment remounts the element and replays the
885
- one-shot ring. */
886
- .zai-orb-beat {
887
- position: absolute;
888
- inset: 0;
889
- border-radius: 9999px;
890
- border: 2px solid hsla(263, 92%, 80%, 0.6);
891
- pointer-events: none;
892
- animation: zai-orb-beat 0.52s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1))
893
- forwards;
894
- }
895
- @keyframes zai-orb-beat {
896
- from { opacity: 0.65; transform: scale(0.92); }
897
- to { opacity: 0; transform: scale(1.55); }
898
- }
899
- .zai-orb-canvas canvas {
900
- width: 100% !important;
901
- height: 100% !important;
902
- display: block;
903
- }
904
-
905
- .zai-orb {
906
- position: relative;
907
- width: 60px;
908
- height: 60px;
909
- flex: none;
910
- padding: 0;
911
- border: 0;
912
- border-radius: 9999px;
913
- cursor: pointer;
914
- background: transparent;
915
- transition: transform 0.2s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
916
- }
917
- .zai-orb:hover { transform: scale(1.06); }
918
- /* Press lands instantly (transition-duration:0s), then eases back to the hover
919
- scale on release — snappy click, smooth settle. */
920
- .zai-orb:active { transform: scale(0.97); transition-duration: 0s; }
921
- /* Breathing halo: a soft violet aura ringing the resting orb, slowly pulsing so
922
- the idle orb reads as alive (a slow breath) rather than a static button. It's
923
- a ::before behind the canvas, inset negative so only the glow ring past the
924
- orb edge shows. Boosted on hover, faster + brighter while thinking. */
925
- .zai-orb::before {
926
- content: "";
927
- position: absolute;
928
- inset: -7px;
929
- border-radius: 9999px;
930
- background: radial-gradient(
931
- circle,
932
- hsla(263, 92%, 72%, 0.55),
933
- hsla(263, 90%, 60%, 0.12) 60%,
934
- transparent 72%
935
- );
936
- filter: blur(7px);
937
- opacity: 0;
938
- z-index: -1;
939
- pointer-events: none;
940
- transition:
941
- opacity 0.3s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
942
- transform 0.3s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
943
- }
944
- .zai-orb[data-webgl="true"]::before,
945
- .zai-orb[data-fallback="true"]::before {
946
- animation: zai-orb-breathe 4.5s ease-in-out infinite;
947
- }
948
- @keyframes zai-orb-breathe {
949
- 0%, 100% { opacity: 0.28; transform: scale(1); }
950
- 50% { opacity: 0.55; transform: scale(1.12); }
951
- }
952
- /* Hover anticipation: the aura firms up + brightens (the scene also speeds up,
953
- handled in JS) so the orb "leans in" before you click. */
954
- .zai-orb:hover::before {
955
- animation: none;
956
- opacity: 0.72;
957
- transform: scale(1.16);
958
- }
959
- /* While zAI is thinking the halo pulses faster + brighter — the orb visibly
960
- works, matching the sped-up scene and the background coming alive. Placed
961
- after the hover rule so it wins when both apply. */
962
- .zai-dock[data-busy="true"] .zai-orb::before {
963
- animation: zai-orb-breathe 1.4s ease-in-out infinite;
964
- background: radial-gradient(
965
- circle,
966
- hsla(263, 95%, 76%, 0.72),
967
- hsla(263, 92%, 62%, 0.16) 60%,
968
- transparent 72%
969
- );
970
- }
971
- /* Minimal fallback gradient, shown only if the WebGL scene fails to load, so
972
- the orb stays visible + clickable instead of being an invisible button. */
973
- .zai-orb[data-fallback="true"] {
974
- background:
975
- radial-gradient(circle at 34% 28%, hsla(263, 95%, 86%, 0.95), transparent 45%),
976
- radial-gradient(circle at 62% 70%, #7a17e0 0%, #4a0a92 55%, #2c0560 100%);
977
- }
978
-
979
- .zai-history {
980
- position: absolute;
981
- right: 70px;
982
- bottom: 72px;
983
- width: 344px;
984
- display: flex;
985
- flex-direction: column;
986
- gap: 8px;
987
- max-height: 52vh;
988
- overflow-y: auto;
989
- overscroll-behavior: contain;
990
- pointer-events: auto;
991
- scrollbar-width: none;
992
- }
993
- .zai-history::-webkit-scrollbar {
994
- display: none;
995
- }
996
- /* The top fade is a "more above" affordance — only painted once the thread has
997
- scrolled up off the top. Applying it unconditionally clipped the top edge of
998
- even a single short chip, so it's gated on scroll position (see onScroll). */
999
- .zai-history[data-masked="true"] {
1000
- -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%);
1001
- mask-image: linear-gradient(180deg, transparent, #000 16%);
1002
- }
1003
- /* Bottom-pin short threads (the conversation floats just above the input):
1004
- margin-top:auto on the first chip pushes the group down while there's slack,
1005
- then yields to scrolling once the thread outgrows max-height — so a long
1006
- answer scrolls up instead of hard-clipping the oldest message off the top. */
1007
- .zai-history > :first-child {
1008
- margin-top: auto;
1009
- }
1010
- .zai-msg {
1011
- width: fit-content;
1012
- max-width: 100%;
1013
- padding: 8px 12px;
1014
- border-radius: 14px;
1015
- font-size: 13px;
1016
- line-height: 1.45;
1017
- white-space: pre-wrap;
1018
- word-break: break-word;
1019
- backdrop-filter: blur(10px);
1020
- -webkit-backdrop-filter: blur(10px);
1021
- animation: zai-rise 0.28s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1)) both;
1022
- }
1023
- .zai-msg-user {
1024
- align-self: flex-end;
1025
- background: hsla(263, 70%, 55%, 0.28);
1026
- border: 1px solid hsla(263, 80%, 75%, 0.3);
1027
- color: #f0ecff;
1028
- }
1029
- .zai-msg-zai {
1030
- align-self: flex-start;
1031
- background: rgba(12, 13, 20, 0.66);
1032
- border: 1px solid rgba(255, 255, 255, 0.08);
1033
- color: #dfe3ef;
1034
- }
1035
- .zai-msg-error {
1036
- color: #ffb4bd;
1037
- border-color: rgba(255, 107, 129, 0.4);
1038
- }
1039
- /* Markdown-rendered zAI answers. The chip's own pre-wrap is meant for plain
1040
- text; inside .zai-md we let block elements control layout instead, and trim
1041
- the outer margins so the bubble hugs its content. */
1042
- .zai-md {
1043
- white-space: normal;
1044
- }
1045
- .zai-md > :first-child {
1046
- margin-top: 0;
1047
- }
1048
- .zai-md > :last-child {
1049
- margin-bottom: 0;
1050
- }
1051
- .zai-md p {
1052
- margin: 0 0 0.5em;
1053
- }
1054
- .zai-md a {
1055
- color: hsla(263, 85%, 82%, 0.95);
1056
- text-decoration: underline;
1057
- text-underline-offset: 2px;
1058
- word-break: break-word;
1059
- transition: color 0.15s var(--zf-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
1060
- }
1061
- .zai-md a:hover {
1062
- color: #fff;
1063
- }
1064
- .zai-md ul,
1065
- .zai-md ol {
1066
- margin: 0.35em 0;
1067
- padding-left: 1.2em;
1068
- }
1069
- .zai-md li {
1070
- margin: 0.15em 0;
1071
- }
1072
- .zai-md code {
1073
- font-family: var(--font-mono, ui-monospace, "SF Mono", monospace);
1074
- font-size: 0.92em;
1075
- background: rgba(255, 255, 255, 0.1);
1076
- padding: 0.1em 0.35em;
1077
- border-radius: 5px;
1078
- }
1079
- .zai-md strong {
1080
- font-weight: 600;
1081
- color: #f0ecff;
1082
- }
1083
- @keyframes zai-rise {
1084
- from { opacity: 0; transform: translateY(6px); }
1085
- to { opacity: 1; transform: translateY(0); }
1086
- }
1087
-
1088
- @media (prefers-reduced-motion: reduce) {
1089
- .zai-msg { animation: none; }
1090
- .zai-panel { transition: none; }
1091
- .zai-ph { transition: opacity 0.15s linear; transform: translateY(-50%); }
1092
- .zai-ph[data-show="true"] { transform: translateY(-50%); }
1093
- .zai-ph-busy { animation: none; opacity: 0.5; }
1094
- .zai-scrim { transition: opacity 0.2s linear; }
1095
- /* Orb aliveness: keep the presence (a static glow, the nudge chip) but drop
1096
- the motion — no breathing, wake bloom, hover lean, or heartbeat ring. */
1097
- .zai-orb::before,
1098
- .zai-orb[data-webgl="true"]::before,
1099
- .zai-orb[data-fallback="true"]::before,
1100
- .zai-dock[data-busy="true"] .zai-orb::before { animation: none; opacity: 0.4; transform: none; }
1101
- .zai-orb:hover::before { opacity: 0.55; transform: none; }
1102
- .zai-orb[data-webgl="true"] .zai-orb-canvas { animation: none; transform: none; }
1103
- .zai-orb-beat { display: none; }
1104
- .zai-nudge { transition: opacity 0.15s linear; transform: none; }
1105
- .zai-dock[data-nudge="true"] .zai-nudge { transform: none; }
1106
- }
1107
- `;function ak({onOpenChange:e,onThinkingChange:t,spec:r,registry:a}){var gt;const[o,n]=z.useState(null),[i,s]=z.useState(null),[c,l]=z.useState(!1),[u,h]=z.useState(""),[f,d]=z.useState(!1),[p,m]=z.useState(null),[g,y]=z.useState([]),[k,S]=z.useState(!1),[D,T]=z.useState(!1),[x,O]=z.useState(0),[R,N]=z.useState(!0),[P,J]=z.useState(!1),[K,te]=z.useState(!1),[H,B]=z.useState(!1),[G,Y]=z.useState(""),[be,$]=z.useState(0),de=z.useRef(0),ze=z.useRef(0),lt=$g(),Re=z.useRef(null),Ue=z.useRef(null),ye=z.useRef(null),le=E1(r,a),Oe=z.useMemo(()=>qw(r,a),[r,a]),ie=z.useCallback((W,oe)=>{var Ze;const V=(Ze=W.layers)==null?void 0:Ze.find(Pe=>Pe.id===Xw&&Pe.layerType==="effect");V&&V.layerType==="effect"&&(V.speed=oe)},[]),_e=lt?ji:f?Jw:K?Yw:ji,fe=z.useRef(_e),rt=z.useCallback(W=>{ye.current=W,W?(ie(W,fe.current),T(!1),S(!0)):S(!1)},[ie]),Ce=z.useCallback(()=>{S(!1),T(!0)},[]);z.useEffect(()=>{fe.current=_e,ye.current&&ie(ye.current,_e)},[_e,ie]),z.useEffect(()=>{let W=!1;return fetch(Zf,{cache:"no-store"}).then(oe=>oe.ok?oe.json():{agents:[]}).then(oe=>{var Ze;if(W)return;const V=oe.agents??[];n(V),s(((Ze=V[0])==null?void 0:Ze.id)??null)}).catch(()=>{W||n([])}),()=>{W=!0}},[]),z.useEffect(()=>{var W;c&&((W=Re.current)==null||W.focus())},[c]),z.useEffect(()=>{if(!c)return;const W=oe=>{oe.key==="Escape"&&l(!1)};return window.addEventListener("keydown",W),()=>window.removeEventListener("keydown",W)},[c]),z.useEffect(()=>{if(!o||o.length===0)return;const W=oe=>{(oe.metaKey||oe.ctrlKey)&&!oe.shiftKey&&!oe.altKey&&oe.key.toLowerCase()==="k"&&(oe.preventDefault(),l(V=>!V))};return window.addEventListener("keydown",W),()=>window.removeEventListener("keydown",W)},[o]),z.useEffect(()=>{const W=Ue.current;W&&(W.scrollTop=W.scrollHeight,J(W.scrollTop>1))},[g,c]),z.useEffect(()=>{if(!c||f){N(!0);return}let W;const oe=setInterval(()=>{N(!1),W=setTimeout(()=>{O(V=>V+1),N(!0)},Uo)},Zw);return()=>{clearInterval(oe),clearTimeout(W)}},[c,f]),z.useEffect(()=>{if(c||f||!k||g.length>0)return;let W,oe;const V=()=>{W=setTimeout(()=>{Oe.length?(Y(Oe[ze.current%Oe.length]),ze.current+=1,B(!0),oe=setTimeout(()=>{B(!1),V()},Qw)):V()},$w)};return V(),()=>{clearTimeout(W),clearTimeout(oe),B(!1)}},[c,f,k,g.length,Oe]),z.useEffect(()=>{e==null||e(c)},[c,e]),z.useEffect(()=>{t==null||t(f)},[f,t]);const ve=W=>y(oe=>[...oe,W].slice(-8));async function Q(){var Pt;const W=u.trim();if(!W||f)return;const oe=g.filter(se=>!se.error).map(se=>({role:se.role,text:se.text}));ve({role:"user",text:W}),h(""),d(!0),m(null);let V=!1,Ze="";const Pe=()=>{V||(V=!0,ve({role:"zai",text:""}))},pt=(se,U=!1)=>y(ht=>{const nt=[...ht];for(let ft=nt.length-1;ft>=0;ft--)if(nt[ft].role==="zai"){nt[ft]={...nt[ft],text:se,error:U};break}return nt});try{const se=await le(),U=await fetch($f,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({question:W,agent:i,context:se??void 0,history:oe.length?oe:void 0})}),ht=U.headers.get("content-type")??"";if(!U.body||!ht.includes("application/x-ndjson")){const we=await U.json().catch(()=>null);if(U.ok&&typeof(we==null?void 0:we.answer)=="string"&&we.answer.trim()){ve({role:"zai",text:we.answer.trim()});return}ve({role:"zai",text:(we==null?void 0:we.error)??tk(U.status),error:!0});return}const nt=U.body.getReader(),ft=new TextDecoder;let at="";for(;;){const{value:we,done:$e}=await nt.read();if($e)break;at+=ft.decode(we,{stream:!0});let We;for(;(We=at.indexOf(`
1108
- `))!==-1;){const ut=at.slice(0,We).trim();if(at=at.slice(We+1),!ut)continue;let Be;try{Be=JSON.parse(ut)}catch{continue}if(Be.type==="status"&&typeof Be.text=="string")m(Be.text);else if(Be.type==="delta"&&typeof Be.text=="string"){if(Pe(),m(null),Ze+=Be.text,pt(Ze),!lt){const Ie=Date.now();Ie-de.current>ek&&(de.current=Ie,$(jt=>jt+1))}}else Be.type==="done"?(Pe(),pt(Be.answer||Ze)):Be.type==="error"&&(Pe(),pt(Be.error||"zAI couldn't finish that answer — try again.",!0))}}V||ve({role:"zai",text:"zAI didn't return anything — try again.",error:!0})}catch{const se="zAI couldn't be reached — check that the zframes server is running.";V?pt(se,!0):ve({role:"zai",text:se,error:!0})}finally{d(!1),m(null),(Pt=Re.current)==null||Pt.focus()}}function Le(W){if(W.key==="Enter"&&!W.shiftKey)W.preventDefault(),Q();else if(W.key==="Tab"&&!W.shiftKey&&!f&&!u){const oe=Oe[x%Oe.length];oe&&(W.preventDefault(),h(oe))}}function ot(){if(!o||o.length<2||!i)return;const W=o.findIndex(oe=>oe.id===i);s(o[(W+1)%o.length].id)}if(!o||o.length===0)return null;const Ve=((gt=o.find(W=>W.id===i))==null?void 0:gt.label)??o[0].label,mt=typeof navigator<"u"&&/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)?"⌘K":"Ctrl+K";return A.jsxs(A.Fragment,{children:[A.jsx("style",{children:rk}),A.jsx("div",{className:"zai-scrim","data-open":c,onClick:()=>l(!1),"aria-hidden":"true"}),A.jsxs("div",{className:"zai-dock","data-open":c,"data-busy":f,"data-nudge":H,children:[c&&g.length>0&&A.jsx("div",{className:"zai-history",ref:Ue,"data-masked":P,onScroll:W=>J(W.currentTarget.scrollTop>1),"aria-live":"polite",children:g.map((W,oe)=>W.role==="zai"&&!W.error?A.jsx("div",{className:"zai-msg zai-msg-zai",children:A.jsx(Vw,{text:W.text})},oe):A.jsx("div",{className:W.role==="user"?"zai-msg zai-msg-user":"zai-msg zai-msg-zai zai-msg-error",children:W.text},oe))}),A.jsx("button",{type:"button",className:"zai-nudge",tabIndex:H?0:-1,"aria-hidden":!H,onClick:()=>{B(!1),h(G),l(!0)},children:G}),A.jsx("div",{className:"zai-panel",children:A.jsxs("div",{className:"zai-input-wrap",children:[A.jsxs("div",{className:"zai-input-field",children:[A.jsx("input",{ref:Re,className:"zai-input",value:u,onChange:W=>h(W.target.value),onKeyDown:Le,placeholder:"",disabled:f,"aria-label":"Ask zAI"}),A.jsx("span",{className:`zai-ph${f?" zai-ph-busy":""}`,"data-show":!u&&(f||R),"aria-hidden":"true",children:f?p??"thinking…":Oe[x%Oe.length]??""})]}),A.jsx("span",{className:"zai-agent",onClick:ot,title:o.length>1?"Click to switch agent":`Answered by ${Ve}`,children:Ve})]})}),A.jsxs("button",{type:"button",className:"zai-orb","data-webgl":k,"data-fallback":D,onClick:()=>l(W=>!W),onMouseEnter:()=>{te(!0),B(!1)},onMouseLeave:()=>te(!1),"aria-label":c?"Close zAI":"Ask zAI",title:c?"Close zAI":`Ask zAI · ${mt}`,"aria-expanded":c,children:[A.jsx(y1,{className:"zai-orb-canvas",onScene:rt,onError:Ce}),be>0&&A.jsx("span",{className:"zai-orb-beat","aria-hidden":"true"},be)]})]})]})}const ok=z.lazy(()=>v(()=>import("./editor-yifYG0tI.js"),__vite__mapDeps([236,1,237,238,239])).then(e=>({default:e.DashboardEditor}))),Ca=o1(),nk=[...Kg(),new em,new bm];function an({children:e}){return A.jsx("main",{className:"mx-auto max-w-2xl px-6 py-16",children:e})}function ik(){return A.jsx(an,{children:A.jsx("p",{className:"body-sm text-soft",children:"loading dashboard…"})})}function sk({message:e}){return A.jsxs(an,{children:[A.jsx("h1",{className:"font-dmsans text-strong mb-2 text-lg font-extrabold",children:"couldn’t load your dashboard"}),A.jsxs("p",{className:"body-sm text-soft mb-4",children:["The zframes runtime couldn’t read ",A.jsx("code",{children:"dashboard.json"}),". Make sure you’re running ",A.jsx("code",{children:"zframes serve"})," next to it."]}),A.jsx("p",{className:"caption text-soft",children:A.jsx("code",{children:e})})]})}function ck({issues:e}){return A.jsxs(an,{children:[A.jsx("h1",{className:"font-dmsans text-strong mb-2 text-lg font-extrabold",children:"dashboard.json is not a valid spec"}),A.jsxs("p",{className:"body-sm text-soft mb-4",children:["Fix the issues below (or run ",A.jsx("code",{children:"zframes lint dashboard.json"}),"), then reload."]}),A.jsx("ul",{className:"body-sm text-normal list-disc space-y-1 pl-5",children:e.map((t,r)=>A.jsxs("li",{children:[A.jsx("code",{children:t.path.join(".")||"(root)"}),": ",t.message]},r))})]})}async function lk(e){try{const t=await fetch(Kf,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw new Error(`HTTP ${t.status}`);window.location.reload()}catch(t){console.error("zframes: failed to save dashboard.json",t),window.alert("Couldn't save dashboard.json — is `zframes serve` still running? Your edits are still on screen; try Save again.")}}function uk(){const[e,t]=z.useState({status:"loading"}),[r,a]=z.useState(null),[o,n]=z.useState(null),[i,s]=z.useState(null),[c,l]=z.useState(null),[u,h]=z.useState(null),[f,d]=z.useState(null),[p,m]=z.useState(null),[g,y]=z.useState(null),[k,S]=z.useState(null),D=m1(),[T,x]=z.useState(!1),[O,R]=z.useState(!1),N=o??(e.status==="ready"?e.spec.theme.accentHue:null),P=i??(e.status==="ready"?e.spec.theme.accentSat:null),J=c??(e.status==="ready"?e.spec.typography.scale:null),K=u??(e.status==="ready"?e.spec.theme.upColor:null),te=f??(e.status==="ready"?e.spec.theme.downColor:null);if(z.useEffect(()=>{N!=null&&document.documentElement.style.setProperty("--zf-accent-hue",String(N))},[N]),z.useEffect(()=>{P!=null&&document.documentElement.style.setProperty("--zf-accent-sat",`${P}%`)},[P]),z.useEffect(()=>{J!=null&&(document.documentElement.style.fontSize=`${J*100}%`)},[J]),z.useEffect(()=>{K!=null&&document.documentElement.style.setProperty("--zf-up",K)},[K]),z.useEffect(()=>{te!=null&&document.documentElement.style.setProperty("--zf-down",te)},[te]),z.useEffect(()=>{let Y=!1;return fetch(Gf,{cache:"no-store"}).then(be=>{if(!be.ok)throw new Error(`HTTP ${be.status}`);return be.json()}).then(be=>{if(Y)return;const $=zf.safeParse(be);t($.success?{status:"ready",spec:$.data}:{status:"invalid",issues:$.error.issues})}).catch(be=>{Y||t({status:"error",message:String(be)})}),()=>{Y=!0}},[]),e.status==="loading")return A.jsx(ik,{});if(e.status==="error")return A.jsx(sk,{message:e.message});if(e.status==="invalid")return A.jsx(ck,{issues:e.issues});const H=e.spec,B=(p??H.grid.mode)==="flow-horizontal",G=g??H.background;return A.jsxs(Of,{providers:nk,children:[A.jsx(s0,{background:G,surface:k??H.theme.surface,active:T,thinking:O,accentHue:N??H.theme.accentHue,accentSat:P??H.theme.accentSat,sceneHue:Rf(G.projectId)}),A.jsxs("main",{className:`relative z-10 mx-auto pt-5 ${B?"h-[100dvh] max-w-none overflow-hidden px-0":"max-w-[1320px] px-4 pb-24 sm:px-6"}`,style:{"--zf-accent-hue":N??H.theme.accentHue,"--zf-accent-sat":`${P??H.theme.accentSat}%`},children:[A.jsxs("header",{className:`mb-5 flex flex-col gap-2 border-b border-white/[0.06] pb-4 sm:flex-row sm:items-center sm:justify-between ${B?"px-4 sm:px-6":""}`,children:[A.jsxs("div",{className:"flex items-baseline gap-3",children:[A.jsxs("h1",{className:"font-dmsans text-strong text-lg font-extrabold tracking-tight",children:["/",A.jsx("span",{style:{color:"hsl(var(--zf-accent-hue, 242) var(--zf-accent-sat, 90%) 76%)"},children:"zframes"})]}),A.jsx(c0,{currentTitle:H.title}),A.jsxs("span",{className:"caption text-soft rounded-full border border-white/[0.08] px-1.5 py-0.5 font-mono leading-none",title:"zframes runtime version",children:["v","0.8.1"]})]}),A.jsx("div",{ref:a,className:"flex min-h-9 items-center justify-end"})]}),D?A.jsx(z.Suspense,{fallback:A.jsx(Kn,{spec:H,registry:Ca}),children:A.jsx(ok,{spec:H,registry:Ca,onSave:lk,customiseButtonTarget:r,onAccentHueChange:n,onAccentSatChange:s,onFontScaleChange:l,onUpColorChange:h,onDownColorChange:d,onModeChange:m,onBackgroundChange:y,onSurfaceChange:S})}):A.jsx(Kn,{spec:H,registry:Ca})]}),A.jsx(f1,{}),A.jsx(ak,{onOpenChange:x,onThinkingChange:R,spec:H,registry:Ca})]})}const lc=document.getElementById("root");if(!lc)throw new Error("missing #root element");Ic.createRoot(lc).render(A.jsx(z.StrictMode,{children:A.jsx(uk,{})}));export{j0 as $,s1 as A,Df as B,G0 as C,K0 as D,q0 as E,fk as F,N0 as G,b0 as H,Dk as I,R0 as J,Uk as K,L0 as L,y_ as M,Tf as N,Bk as O,z0 as P,Nk as Q,D0 as R,Hk as S,gk as T,P0 as U,Ik as V,M0 as W,Fk as X,I0 as Y,yk as Z,y0 as _,Of as a,Gk as a$,U0 as a0,H0 as a1,B0 as a2,E0 as a3,g0 as a4,$0 as a5,Vk as a6,v0 as a7,g_ as a8,$k as a9,tb as aA,Ck as aB,rb as aC,Ak as aD,ab as aE,Sk as aF,ob as aG,Tk as aH,nb as aI,zk as aJ,ib as aK,sb as aL,cb as aM,lb as aN,ub as aO,db as aP,hb as aQ,fb as aR,mb as aS,bb as aT,pb as aU,gb as aV,yb as aW,vb as aX,zb as aY,Wk as aZ,Pb as a_,b_ as aa,w0 as ab,vk as ac,Y0 as ad,wk as ae,n1 as af,k0 as ag,_0 as ah,Lf as ai,Ff as aj,S0 as ak,Mk as al,Ok as am,T0 as an,Rk as ao,F0 as ap,jk as aq,x0 as ar,C0 as as,kk as at,O0 as au,Lk as av,Q0 as aw,_k as ax,eb as ay,xk as az,If as b,Sb as b$,Db as b0,Kk as b1,Mb as b2,qk as b3,Rb as b4,Yk as b5,Ob as b6,Jk as b7,Lb as b8,Xk as b9,Qb as bA,i_ as bB,ey as bC,s_ as bD,ty as bE,c_ as bF,ry as bG,ay as bH,l_ as bI,oy as bJ,u_ as bK,ny as bL,d_ as bM,iy as bN,h_ as bO,sy as bP,cy as bQ,ly as bR,uy as bS,dy as bT,hy as bU,wb as bV,kb as bW,_b as bX,xb as bY,Cb as bZ,Ab as b_,Fb as ba,Zk as bb,Ib as bc,Qk as bd,Nb as be,Hb as bf,Ek as bg,Ub as bh,e_ as bi,Bb as bj,jb as bk,r_ as bl,Vb as bm,Wb as bn,t_ as bo,Gb as bp,Kb as bq,qb as br,Yb as bs,Jb as bt,a_ as bu,Xb as bv,Zb as bw,o_ as bx,$b as by,n_ as bz,Vf as c,yv as c$,Tb as c0,Eb as c1,fy as c2,f_ as c3,my as c4,m_ as c5,py as c6,p_ as c7,gy as c8,by as c9,Gy as cA,Ky as cB,qy as cC,Yy as cD,Jy as cE,Xy as cF,Zy as cG,$y as cH,Qy as cI,ev as cJ,tv as cK,rv as cL,av as cM,ov as cN,nv as cO,iv as cP,sv as cQ,cv as cR,lv as cS,uv as cT,dv as cU,hv as cV,fv as cW,mv as cX,pv as cY,gv as cZ,bv as c_,yy as ca,vy as cb,wy as cc,ky as cd,_y as ce,xy as cf,Cy as cg,Ay as ch,Sy as ci,Ty as cj,Ey as ck,zy as cl,Py as cm,Dy as cn,My as co,Ry as cp,Oy as cq,Ly as cr,Fy as cs,Iy as ct,Ny as cu,Uy as cv,By as cw,jy as cx,Vy as cy,Wy as cz,Hf as d,vv as d0,wv as d1,kv as d2,_v as d3,xv as d4,Cv as d5,Av as d6,Sv as d7,Tv as d8,Ev as d9,e1 as dA,t1 as dB,zv as da,Pv as db,Dv as dc,Mv as dd,Rv as de,Ov as df,Lv as dg,Fv as dh,Iv as di,Nv as dj,Hv as dk,Uv as dl,Bv as dm,jv as dn,Vv as dp,Wv as dq,Gv as dr,Kv as ds,qv as dt,Yv as du,Jv as dv,Xv as dw,Zv as dx,$v as dy,Qv as dz,Sf as e,mk as f,X0 as g,Ja as h,Z0 as i,A0 as j,Pk as k,p0 as l,Hy as m,bi as n,k_ as o,J0 as p,v_ as q,w_ as r,Cf as s,pk as t,Ga as u,h0 as v,V0 as w,W0 as x,Wn as y,bk as z};