@antseed/gateway-console 0.1.10 → 0.1.11

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 (165) hide show
  1. package/dist/assets/{Activity-jZYZ0SDm.js → Activity-UaQeZdKk.js} +1 -1
  2. package/dist/assets/{Audit-C-dFTX_u.js → Audit-Cd26xOlL.js} +1 -1
  3. package/dist/assets/BrandIcon-dTKznfCA.js +1 -0
  4. package/dist/assets/{ChainGate-In51TI2h.js → ChainGate-DpChfDOP.js} +1 -1
  5. package/dist/assets/{ChannelClose-D8CcISX0.js → ChannelClose-DpNV5MqB.js} +1 -1
  6. package/dist/assets/{Charts-doK0mDVf.js → Charts-C65ZE2xP.js} +1 -1
  7. package/dist/assets/Chat-BbM_y6mh.js +225 -0
  8. package/dist/assets/{ConnectWallet-DQ0PC6SO.js → ConnectWallet-CLv0c-JB.js} +1 -1
  9. package/dist/assets/{DataTable-BTwj5g1m.js → DataTable-BkJdorEh.js} +1 -1
  10. package/dist/assets/Disclosure-DMLE7rCw.js +1 -0
  11. package/dist/assets/KeyHolder-Cjko0nrs.js +1 -0
  12. package/dist/assets/Keys-DLKN6Sna.js +1 -0
  13. package/dist/assets/Logs-DIPNoSb8.js +1 -0
  14. package/dist/assets/Members-CgP9OTz9.js +1 -0
  15. package/dist/assets/{Migrate-BQYY5ty3.js → Migrate-DDHZ-rux.js} +1 -1
  16. package/dist/assets/ModelDetails-CkDNU2Px.js +1 -0
  17. package/dist/assets/Models-DXbiNymT.js +1 -0
  18. package/dist/assets/{OperatorActions-DrRpfDBV.js → OperatorActions-BuEpaCiH.js} +1 -1
  19. package/dist/assets/{OperatorGateAlert-D92zhyXC.js → OperatorGateAlert-grMRoFdV.js} +1 -1
  20. package/dist/assets/{Overview-CJmp6b7M.js → Overview-BU9HCltc.js} +1 -1
  21. package/dist/assets/{PeerPicker-BJfjL7Dy.js → PeerPicker-CfsXTUyK.js} +1 -1
  22. package/dist/assets/PolicyEditor-ptFDJhFh.js +1 -0
  23. package/dist/assets/{PolicyField-CfRYcr_J.js → PolicyField-CHhm50jF.js} +1 -1
  24. package/dist/assets/Presets-szQETQLM.js +4 -0
  25. package/dist/assets/Providers-B6xbFeNU.js +1 -0
  26. package/dist/assets/RequestLog-DJl6FJhq.js +1 -0
  27. package/dist/assets/{Rewards-DNNxx3NO.js → Rewards-BOfJumNk.js} +2 -2
  28. package/dist/assets/{RewardsClaim-nstcyJvi.js → RewardsClaim-DHvgMfZ4.js} +1 -1
  29. package/dist/assets/Routing-DFuhPfzU.js +1 -0
  30. package/dist/assets/{Segmented-BelxPFkk.js → Segmented-D3e0aBDU.js} +1 -1
  31. package/dist/assets/{SelectField-BWyF8Ku8.js → SelectField-Cl4acfcI.js} +1 -1
  32. package/dist/assets/{Settings-Cws5Z--R.js → Settings--0bbw1dn.js} +2 -2
  33. package/dist/assets/SidePanel-D0rNElh3.js +1 -0
  34. package/dist/assets/{Staking-DHwoflHG.js → Staking-1D2HNu5P.js} +1 -1
  35. package/dist/assets/{StakingDashboard-DtOKTmys.js → StakingDashboard-C5Ib_AUs.js} +1 -1
  36. package/dist/assets/Switch-B2AEvyu7.js +1 -0
  37. package/dist/assets/{Tabs-yVL4Cd6z.js → Tabs-Cv10NtDy.js} +1 -1
  38. package/dist/assets/{TextAreaField-B6jcl4RR.js → TextAreaField-Dbr655cs.js} +1 -1
  39. package/dist/assets/{UsageByModel-DhTF-c1H.js → UsageByModel-BfvCLwo9.js} +1 -1
  40. package/dist/assets/VerificationLinks-CERoRvCR.js +1 -0
  41. package/dist/assets/{Wallet-QXhhg_E-.js → Wallet-CVS_hzu0.js} +3 -3
  42. package/dist/assets/{WalletConfirm-CgWBuaMN.js → WalletConfirm-C8Kazsh7.js} +1 -1
  43. package/dist/assets/{WalletFunding-Ydd9gD2t.js → WalletFunding-BbhXB813.js} +1 -1
  44. package/dist/assets/{WalletSignIn-DvVSFW4u.js → WalletSignIn-Tzs38aME.js} +1 -1
  45. package/dist/assets/Workspaces-DGgrOEZk.js +1 -0
  46. package/dist/assets/{add-ChFb9YAz.js → add-CdcnAnIQ.js} +1 -1
  47. package/dist/assets/{all-wallets-rdNweGUd.js → all-wallets-CaMIS0WH.js} +1 -1
  48. package/dist/assets/{app-store-s294A1qn.js → app-store-BJlWsf36.js} +1 -1
  49. package/dist/assets/{apple-Cs8Kx1eO.js → apple-sOU-w3fg.js} +1 -1
  50. package/dist/assets/{arrow-bottom-BMmCEQIa.js → arrow-bottom-CTOfZJ7E.js} +1 -1
  51. package/dist/assets/{arrow-bottom-circle-CThmnDp3.js → arrow-bottom-circle-B6IrOSiK.js} +1 -1
  52. package/dist/assets/{arrow-left-BJxgCTi0.js → arrow-left-D0Qm9EWX.js} +1 -1
  53. package/dist/assets/{arrow-right-CnLYkBsH.js → arrow-right-XMSWQLiv.js} +1 -1
  54. package/dist/assets/{arrow-top-Dc0DLP-U.js → arrow-top-Bym-ayRK.js} +1 -1
  55. package/dist/assets/{bank-CSWOYeMW.js → bank-NJF8WYDR.js} +1 -1
  56. package/dist/assets/{basic-BHdv4O5I.js → basic-bO70Xvle.js} +1 -1
  57. package/dist/assets/{browser-mp33aPgo.js → browser-ucjw1tpv.js} +1 -1
  58. package/dist/assets/{bundle-full-CDQ5iC5h.js → bundle-full-idGWmtvy.js} +1 -1
  59. package/dist/assets/{card-BcVuRQiM.js → card-DcpyI2qX.js} +1 -1
  60. package/dist/assets/{ccip-O1XLvWon.js → ccip-DBXxv0FH.js} +1 -1
  61. package/dist/assets/{checkmark-CQVJIWW1.js → checkmark-RFLSeCgj.js} +1 -1
  62. package/dist/assets/{checkmark-bold-DDU5XQfq.js → checkmark-bold-Dl1q9Kby.js} +1 -1
  63. package/dist/assets/{chevron-bottom-Bqi9FW2q.js → chevron-bottom-ilycsYd4.js} +1 -1
  64. package/dist/assets/{chevron-left-Vd5st0yB.js → chevron-left-DFK2Xbq1.js} +1 -1
  65. package/dist/assets/{chevron-right-BVwFrlss.js → chevron-right-Ew8XV9m9.js} +1 -1
  66. package/dist/assets/{chevron-top-D5dQ2xFn.js → chevron-top-CxoXH2-q.js} +1 -1
  67. package/dist/assets/{chrome-store-C9C4k8IO.js → chrome-store-ClmhY3B0.js} +1 -1
  68. package/dist/assets/{clock-Cuvc7bNo.js → clock-CCiukNBf.js} +1 -1
  69. package/dist/assets/{close-fW1pJ13b.js → close-B0KBYbXe.js} +1 -1
  70. package/dist/assets/code-block-DxUcjw4S.js +3 -0
  71. package/dist/assets/{coinPlaceholder-CKymvNA8.js → coinPlaceholder-D2ugxr3r.js} +1 -1
  72. package/dist/assets/{compass-D3h_6fr8.js → compass-CutyEYmW.js} +1 -1
  73. package/dist/assets/{copy-CNGN_cOz.js → copy-CJ0RBt1e.js} +1 -1
  74. package/dist/assets/{core-LDeQm5nv.js → core-BCJdIbrO.js} +3 -3
  75. package/dist/assets/cursor-Bg_hT9DN.js +3 -0
  76. package/dist/assets/{cursor-transparent-BblOfv3t.js → cursor-transparent-BQ_jwSfb.js} +1 -1
  77. package/dist/assets/{desktop-gpVOlZ1-.js → desktop-CsfFLaEs.js} +1 -1
  78. package/dist/assets/{disconnect-C_phPN0_.js → disconnect-B62slDXp.js} +1 -1
  79. package/dist/assets/{discord-Dk_2Plhc.js → discord-B8GwtWtL.js} +1 -1
  80. package/dist/assets/{en_US-Y4ZOVFV4-CmhP8GU2.js → en_US-Y4ZOVFV4-sKQksBWU.js} +4 -4
  81. package/dist/assets/{etherscan-Cyrh-2Lr.js → etherscan-BT9zhNhd.js} +1 -1
  82. package/dist/assets/{exclamation-triangle-SeeDwZ6A.js → exclamation-triangle-BSoPK6uq.js} +1 -1
  83. package/dist/assets/{extension-e_11O0GI.js → extension-CQxJq6bp.js} +1 -1
  84. package/dist/assets/{external-link-Dl0AqCn3.js → external-link-BnfAKGN2.js} +1 -1
  85. package/dist/assets/{facebook-Cp_-Axbh.js → facebook-DiAqdu4i.js} +1 -1
  86. package/dist/assets/{farcaster-Zwu26KYL.js → farcaster-B1y2in5M.js} +1 -1
  87. package/dist/assets/{filters-CdkpWvgi.js → filters-BkVUp9NW.js} +1 -1
  88. package/dist/assets/{github-DuPUePDJ.js → github-IRwi-GM-.js} +1 -1
  89. package/dist/assets/{google-DlKW7Gx7.js → google-k2ysL2bi.js} +1 -1
  90. package/dist/assets/{help-circle-19xLhjPt.js → help-circle-DLj9trmu.js} +1 -1
  91. package/dist/assets/highlighted-body-KQOG7T2V-CJM-VU3I.js +1 -0
  92. package/dist/assets/{id-B4PjxpL6.js → id-BY4HWjv7.js} +1 -1
  93. package/dist/assets/{image-CHz8w95r.js → image-BtUeZe1t.js} +1 -1
  94. package/dist/assets/{index-CZbdRW9K.js → index-BXwAwVaO.js} +1 -1
  95. package/dist/assets/{index-CgyFWy7G.js → index-Cmb-H95F.js} +1 -1
  96. package/dist/assets/{index-CfhMI0GY.css → index-DYK1gWhP.css} +1 -1
  97. package/dist/assets/{index-CAflmCbT.js → index-DiB9Y59V.js} +3 -3
  98. package/dist/assets/{index-BYZ6CM-r.js → index-DsRX2D_O.js} +1 -1
  99. package/dist/assets/{index-DIcymBxc.js → index-cESr4Zze.js} +24 -24
  100. package/dist/assets/{index.es-0kjt2ETS.js → index.es-DP9EmOYi.js} +3 -3
  101. package/dist/assets/{info-CFnwPck_.js → info-BaKj81_D.js} +1 -1
  102. package/dist/assets/{info-circle-DNYjRzmq.js → info-circle-ecoA_B_t.js} +1 -1
  103. package/dist/assets/{lightbulb-DPrYcwVp.js → lightbulb-DGQG-WWk.js} +1 -1
  104. package/dist/assets/{limits-D8_oE0N-.js → limits-D2JvFgaN.js} +1 -1
  105. package/dist/assets/{mail-Do_T12XQ.js → mail-BvEbsX3q.js} +1 -1
  106. package/dist/assets/{mermaid-MCJ5UELQ-Cr83KTfF.js → mermaid-MCJ5UELQ-B8uOykea.js} +3 -3
  107. package/dist/assets/{metamask-sdk-CHSvqgLD.js → metamask-sdk-BYmYI1f3.js} +1 -1
  108. package/dist/assets/{mobile-2wdwD-gm.js → mobile-CwlM4JMX.js} +1 -1
  109. package/dist/assets/{more-CugjlKbm.js → more-CT36TpLm.js} +1 -1
  110. package/dist/assets/{network-placeholder-D0CvRN9Z.js → network-placeholder-DG1Vvm-U.js} +1 -1
  111. package/dist/assets/{nftPlaceholder-CjCtJ3VF.js → nftPlaceholder-D6USOn7p.js} +1 -1
  112. package/dist/assets/{off-CjwzxGqC.js → off-BNSO7pY1.js} +1 -1
  113. package/dist/assets/{play-store-ts_mM-L7.js → play-store-PUfM0qU0.js} +1 -1
  114. package/dist/assets/{plus-CayVcA5r.js → plus-C8fnGfp3.js} +1 -1
  115. package/dist/assets/{qr-code-BJFXX7Ga.js → qr-code-CjdrQ0pR.js} +1 -1
  116. package/dist/assets/{recycle-horizontal-Dxd_xbuW.js → recycle-horizontal-BMxBgeB4.js} +1 -1
  117. package/dist/assets/{refresh-2tSMiCzO.js → refresh-C2D196Fq.js} +1 -1
  118. package/dist/assets/{reown-logo-C3tg9yiK.js → reown-logo-CLN2ORKJ.js} +1 -1
  119. package/dist/assets/{search-By38_AjN.js → search-C9voC8dq.js} +1 -1
  120. package/dist/assets/selection-HN8SZ52c.js +1 -0
  121. package/dist/assets/{send-DhLEHc2T.js → send-BAxcrGbA.js} +1 -1
  122. package/dist/assets/{sendTransaction-CqpP3CZj.js → sendTransaction-Cmz5eiPq.js} +1 -1
  123. package/dist/assets/stored-CETnaQtE.js +1 -0
  124. package/dist/assets/{swapHorizontal-BSy_Qzqy.js → swapHorizontal-CHCTyoP7.js} +1 -1
  125. package/dist/assets/{swapHorizontalBold-B4pOkOa-.js → swapHorizontalBold-LQsONWBk.js} +1 -1
  126. package/dist/assets/{swapHorizontalMedium-BbDDLHs6.js → swapHorizontalMedium-BxrBEjrx.js} +1 -1
  127. package/dist/assets/{swapHorizontalRoundedBold-MzTdSarg.js → swapHorizontalRoundedBold-CEHDoSv1.js} +1 -1
  128. package/dist/assets/{swapVertical-D0uKM7wm.js → swapVertical-DMylrYB1.js} +1 -1
  129. package/dist/assets/{telegram-Q_WwsPzx.js → telegram-BhVfpln1.js} +1 -1
  130. package/dist/assets/{three-dots-Cpl_X23E.js → three-dots-nkXRRS-E.js} +1 -1
  131. package/dist/assets/{twitch-B7x-eAo9.js → twitch-CYroZH_7.js} +1 -1
  132. package/dist/assets/{twitterIcon-BRMMjDzW.js → twitterIcon-DpHUqlyA.js} +1 -1
  133. package/dist/assets/{usage-DktoZRc8.js → usage-8BBeTlF-.js} +1 -1
  134. package/dist/assets/{useInfiniteQuery-NenQ5Num.js → useInfiniteQuery-zD1WIYBy.js} +1 -1
  135. package/dist/assets/{useTx-WkiDSW_A.js → useTx-DsLsc5bB.js} +1 -1
  136. package/dist/assets/{verify-BxTMhyZY.js → verify-DARDbLiQ.js} +1 -1
  137. package/dist/assets/{verify-filled-CaKhO-hp.js → verify-filled-EsNi41IB.js} +1 -1
  138. package/dist/assets/{w3m-modal-DZ2_0Ukm.js → w3m-modal-CIUN4uxE.js} +1 -1
  139. package/dist/assets/{waitForCallsStatus-CtriTPoz.js → waitForCallsStatus-DlpsNYx1.js} +1 -1
  140. package/dist/assets/{wallet-BeZF3I-Z.js → wallet-B2vgeP1E.js} +1 -1
  141. package/dist/assets/{wallet-placeholder-BDvuTJ6r.js → wallet-placeholder-DQsissb3.js} +1 -1
  142. package/dist/assets/{walletconnect-U8tnyg6m.js → walletconnect-DylNgC0Z.js} +1 -1
  143. package/dist/assets/{warning-circle-Dg69jmuZ.js → warning-circle-CVEgsVb4.js} +1 -1
  144. package/dist/assets/{writeContract-DrAWt0yz.js → writeContract-Cqg_OlRQ.js} +1 -1
  145. package/dist/assets/{x-CJ-uWPue.js → x-DSURRh6S.js} +1 -1
  146. package/dist/index.html +2 -2
  147. package/package.json +1 -1
  148. package/dist/assets/Chat-CaImcsH1.js +0 -220
  149. package/dist/assets/KeyHolder-D90Uu-Jv.js +0 -1
  150. package/dist/assets/Keys-B5LppZtn.js +0 -1
  151. package/dist/assets/Logs-Dw4sZ9lo.js +0 -1
  152. package/dist/assets/Members-CnaHKFut.js +0 -1
  153. package/dist/assets/Models-zIuHewdV.js +0 -1
  154. package/dist/assets/PolicyEditor-BpoV34ra.js +0 -1
  155. package/dist/assets/Presets-c1J4UwX0.js +0 -4
  156. package/dist/assets/Providers-B0LuYcAw.js +0 -1
  157. package/dist/assets/RequestLog-D2YGgG1C.js +0 -1
  158. package/dist/assets/Routing-B79eDIZL.js +0 -1
  159. package/dist/assets/Switch-BwBYBnSS.js +0 -1
  160. package/dist/assets/Workspaces-DuxGwCQ2.js +0 -1
  161. package/dist/assets/code-block-Djv3iQ0G.js +0 -3
  162. package/dist/assets/cursor-CTNYpsWo.js +0 -3
  163. package/dist/assets/highlighted-body-KQOG7T2V-D7DB9nBd.js +0 -1
  164. package/dist/assets/models-CLos5_p0.js +0 -1
  165. package/dist/assets/stored-CFfx95Ep.js +0 -1
@@ -1,3 +1,3 @@
1
- import{w as C}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const g=C`<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
1
+ import{w as C}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const g=C`<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path d="M9.125 6.875C9.125 6.57833 9.21298 6.28832 9.3778 6.04165C9.54262 5.79497 9.77689 5.60271 10.051 5.48918C10.3251 5.37565 10.6267 5.34594 10.9176 5.40382C11.2086 5.4617 11.4759 5.60456 11.6857 5.81434C11.8954 6.02412 12.0383 6.29139 12.0962 6.58236C12.1541 6.87334 12.1244 7.17494 12.0108 7.44903C11.8973 7.72311 11.705 7.95738 11.4584 8.1222C11.2117 8.28703 10.9217 8.375 10.625 8.375C10.2272 8.375 9.84565 8.21696 9.56434 7.93566C9.28304 7.65436 9.125 7.27282 9.125 6.875ZM21.125 11C21.125 13.0025 20.5312 14.9601 19.4186 16.6251C18.3061 18.2902 16.7248 19.5879 14.8747 20.3543C13.0246 21.1206 10.9888 21.3211 9.02471 20.9305C7.06066 20.5398 5.25656 19.5755 3.84055 18.1595C2.42454 16.7435 1.46023 14.9393 1.06955 12.9753C0.678878 11.0112 0.879387 8.97543 1.64572 7.12533C2.41206 5.27523 3.70981 3.69392 5.37486 2.58137C7.0399 1.46882 8.99747 0.875 11 0.875C13.6844 0.877978 16.258 1.94567 18.1562 3.84383C20.0543 5.74199 21.122 8.3156 21.125 11ZM18.875 11C18.875 9.44247 18.4131 7.91992 17.5478 6.62488C16.6825 5.32985 15.4526 4.32049 14.0136 3.72445C12.5747 3.12841 10.9913 2.97246 9.46367 3.27632C7.93607 3.58017 6.53288 4.3302 5.43154 5.43153C4.3302 6.53287 3.58018 7.93606 3.27632 9.46366C2.97246 10.9913 3.12841 12.5747 3.72445 14.0136C4.32049 15.4526 5.32985 16.6825 6.62489 17.5478C7.91993 18.4131 9.44248 18.875 11 18.875C13.0879 18.8728 15.0896 18.0424 16.566 16.566C18.0424 15.0896 18.8728 13.0879 18.875 11ZM12.125 14.4387V11.375C12.125 10.8777 11.9275 10.4008 11.5758 10.0492C11.2242 9.69754 10.7473 9.5 10.25 9.5C9.98433 9.4996 9.72708 9.59325 9.52383 9.76435C9.32058 9.93544 9.18444 10.173 9.13952 10.4348C9.09461 10.6967 9.14381 10.966 9.27843 11.195C9.41304 11.4241 9.62438 11.5981 9.875 11.6863V14.75C9.875 15.2473 10.0725 15.7242 10.4242 16.0758C10.7758 16.4275 11.2527 16.625 11.75 16.625C12.0157 16.6254 12.2729 16.5318 12.4762 16.3607C12.6794 16.1896 12.8156 15.952 12.8605 15.6902C12.9054 15.4283 12.8562 15.159 12.7216 14.93C12.587 14.7009 12.3756 14.5269 12.125 14.4387Z" fill="currentColor"/>
3
3
  </svg>`;export{g as infoSvg};
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const n=o`<svg fill="none" viewBox="0 0 14 15">
1
+ import{w as o}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const n=o`<svg fill="none" viewBox="0 0 14 15">
2
2
  <path
3
3
  fill="currentColor"
4
4
  d="M6 10.49a1 1 0 1 0 2 0v-2a1 1 0 0 0-2 0v2ZM7 4.49a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"
@@ -1,3 +1,3 @@
1
- import{w as C}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const m=C`<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
1
+ import{w as C}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const m=C`<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path fill-rule="evenodd" clip-rule="evenodd" d="M5.00177 1.78569C3.8179 1.78569 2.85819 2.74508 2.85819 3.92855C2.85819 4.52287 3.09928 5.05956 3.49077 5.4485L3.5005 5.45817C3.64381 5.60054 3.76515 5.72108 3.85631 5.81845C3.93747 5.90512 4.05255 6.03218 4.12889 6.1805C4.16999 6.26034 4.19 6.30843 4.21768 6.39385C4.22145 6.40546 4.22499 6.41703 4.22833 6.42855H5.77521C5.77854 6.41703 5.78208 6.40547 5.78585 6.39385C5.81353 6.30843 5.83354 6.26034 5.87464 6.1805C5.95098 6.03218 6.06606 5.90512 6.14722 5.81845C6.23839 5.72108 6.35973 5.60053 6.50304 5.45816L6.51276 5.4485C6.90425 5.05956 7.14534 4.52287 7.14534 3.92855C7.14534 2.74508 6.18563 1.78569 5.00177 1.78569ZM5.71629 7.85712H4.28724C4.28724 8.21403 4.28876 8.40985 4.30703 8.54571C4.30727 8.54748 4.30751 8.54921 4.30774 8.55091C4.30944 8.55115 4.31118 8.55138 4.31295 8.55162C4.44884 8.56989 4.64474 8.5714 5.00177 8.5714C5.3588 8.5714 5.55469 8.56989 5.69059 8.55162C5.69236 8.55138 5.69409 8.55115 5.69579 8.55091C5.69603 8.54921 5.69627 8.54748 5.6965 8.54571C5.71477 8.40985 5.71629 8.21403 5.71629 7.85712ZM2.85819 7.14283C2.85819 6.9948 2.85796 6.91114 2.8548 6.85032C2.85461 6.84656 2.85441 6.84309 2.85421 6.83988C2.84393 6.8282 2.83047 6.81334 2.81301 6.79469C2.74172 6.71856 2.63908 6.61643 2.48342 6.46178C1.83307 5.81566 1.42914 4.91859 1.42914 3.92855C1.42914 1.9561 3.02866 0.357117 5.00177 0.357117C6.97487 0.357117 8.57439 1.9561 8.57439 3.92855C8.57439 4.91859 8.17047 5.81566 7.52012 6.46178C7.36445 6.61643 7.26182 6.71856 7.19053 6.79469C7.17306 6.81334 7.1596 6.8282 7.14932 6.83988C7.14912 6.84309 7.14892 6.84656 7.14873 6.85032C7.14557 6.91114 7.14534 6.9948 7.14534 7.14283V7.85712C7.14534 7.87009 7.14535 7.88304 7.14535 7.89598C7.14541 8.19889 7.14547 8.49326 7.11281 8.73606C7.076 9.00978 6.98631 9.32212 6.72678 9.58156C6.46726 9.841 6.15481 9.93065 5.881 9.96745C5.63813 10.0001 5.34365 10 5.04064 9.99998C5.0277 9.99998 5.01474 9.99998 5.00177 9.99998C4.98879 9.99998 4.97583 9.99998 4.96289 9.99998C4.65988 10 4.36541 10.0001 4.12253 9.96745C3.84872 9.93065 3.53628 9.841 3.27675 9.58156C3.01722 9.32212 2.92753 9.00978 2.89072 8.73606C2.85807 8.49326 2.85812 8.19889 2.85818 7.89598C2.85819 7.88304 2.85819 7.87008 2.85819 7.85712V7.14283ZM7.1243 6.86977C7.12366 6.87069 7.1233 6.87116 7.12327 6.87119C7.12323 6.87123 7.12356 6.87076 7.1243 6.86977ZM2.88027 6.8712C2.88025 6.87119 2.87988 6.8707 2.87921 6.86975C2.87995 6.87072 2.88028 6.8712 2.88027 6.8712Z" fill="#949E9E"/>
3
3
  </svg>`;export{m as lightbulbSvg};
@@ -1 +1 @@
1
- import{j as t,ar as c,T as u,as as s,bd as n,be as f}from"./index-DIcymBxc.js";function g({value:a,onChange:o,idPrefix:e}){return t.jsx("div",{className:"gc-grid gc-grid--4",children:c.map(r=>t.jsx(u,{id:`${e}-${r}`,label:s[r],inputMode:"decimal",placeholder:"No limit",value:a[r],onChange:d=>o({...a,[r]:d.target.value})},r))})}function h(a){return{daily:n(a==null?void 0:a.daily),weekly:n(a==null?void 0:a.weekly),monthly:n(a==null?void 0:a.monthly),total:n(a==null?void 0:a.total)}}function y(a){const o={};for(const e of c)try{o[e]=f(a[e])}catch(r){throw new Error(`${e[0].toUpperCase()}${e.slice(1)} limit: ${r.message}`)}return o}export{g as L,y as d,h as l};
1
+ import{j as t,ar as c,T as u,as as s,bd as n,be as f}from"./index-cESr4Zze.js";function g({value:a,onChange:o,idPrefix:e}){return t.jsx("div",{className:"gc-grid gc-grid--4",children:c.map(r=>t.jsx(u,{id:`${e}-${r}`,label:s[r],inputMode:"decimal",placeholder:"No limit",value:a[r],onChange:d=>o({...a,[r]:d.target.value})},r))})}function h(a){return{daily:n(a==null?void 0:a.daily),weekly:n(a==null?void 0:a.weekly),monthly:n(a==null?void 0:a.monthly),total:n(a==null?void 0:a.total)}}function y(a){const o={};for(const e of c)try{o[e]=f(a[e])}catch(r){throw new Error(`${e[0].toUpperCase()}${e.slice(1)} limit: ${r.message}`)}return o}export{g as L,y as d,h as l};
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const v=o`<svg fill="none" viewBox="0 0 16 16">
1
+ import{w as o}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const v=o`<svg fill="none" viewBox="0 0 16 16">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/highlighted-body-KQOG7T2V-D7DB9nBd.js","assets/index-DIcymBxc.js","assets/index-CfhMI0GY.css","assets/bundle-full-CDQ5iC5h.js","assets/clsx-B-dksMZM.js","assets/Chat-CaImcsH1.js","assets/stored-CFfx95Ep.js","assets/Chat-Dtte195G.css"])))=>i.map(i=>d[i]);
2
- var qp=Object.defineProperty;var jp=Object.getPrototypeOf;var Gp=Reflect.get;var Rl=e=>{throw TypeError(e)};var Vp=(e,t,r)=>t in e?qp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ae=(e,t,r)=>Vp(e,typeof t!="symbol"?t+"":t,r),_s=(e,t,r)=>t.has(e)||Rl("Cannot "+r);var ft=(e,t,r)=>(_s(e,t,"read from private field"),r?r.call(e):t.get(e)),Sr=(e,t,r)=>t.has(e)?Rl("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),qt=(e,t,r,n)=>(_s(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ii=(e,t,r)=>(_s(e,t,"access private method"),r);var Dl=(e,t,r)=>Gp(jp(e),r,t);import{c9 as Z1,r as D,j as I,cp as Tu,_ as J1}from"./index-DIcymBxc.js";import{b as Yp,c as Wp,a as Xp,f as ts,p as Ol,d as Ml,n as Pl,h as ja,s as Qr,z as eh,e as th,g as rh,i as Qp,j as Bl,w as Kp}from"./bundle-full-CDQ5iC5h.js";import{c as nh}from"./clsx-B-dksMZM.js";import{t as ah}from"./Chat-CaImcsH1.js";const Zp={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Fl=4294967295;function Jp(e){var t;return!e.sticky&&!((t=e.rawOptions)!=null&&t.strategy)}function Hl(e,t){return{index:e,captureIndices:t.map(r=>r==null?{start:Fl,end:Fl,length:0}:{start:r[0],end:r[1],length:r[1]-r[0]})}}var e2=class{constructor(e,t={}){Ae(this,"patterns");Ae(this,"options");Ae(this,"regexps");Ae(this,"lastSearches");this.patterns=e,this.options=t;const{forgiving:r=!1,cache:n,regexConstructor:a}=t;if(!a)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(i=>{if(typeof i!="string")return i;const s=n==null?void 0:n.get(i);if(s){if(s instanceof RegExp)return s;if(r)return null;throw s}try{const u=a(i);return n==null||n.set(i,u),u}catch(u){if(n==null||n.set(i,u),r)return null;throw u}}),this.lastSearches=this.regexps.map(i=>i&&Jp(i)?{strId:0,searchedFrom:0,matchIndex:-1,indices:null}:null)}findNextMatchSync(e,t,r){const n=typeof e=="string"?e:e.content,a=typeof e=="string"?0:e.id||0;let i=-1,s=0,u=null;for(let l=0;l<this.regexps.length;l++){const o=this.regexps[l];if(o)try{const c=a?this.lastSearches[l]:null;let h,f;if(c&&c.strId===a&&c.searchedFrom<=t&&(c.matchIndex===-1||c.matchIndex>=t))h=c.matchIndex,f=c.indices;else{o.lastIndex=t;const p=o.exec(n);h=p?p.index:-1,f=p?p.indices:null,c&&(c.strId=a,c.searchedFrom=t,c.matchIndex=h,c.indices=f)}if(h===-1)continue;if(h===t)return Hl(l,f);(i===-1||h<s)&&(i=l,s=h,u=f)}catch(c){if(this.options.forgiving)continue;throw c}}return i===-1?null:Hl(i,u)}};let t2=0;function r2(e){return{content:e,id:++t2}}function Qn(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function n2(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}const vu=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),it=String.raw;function Kn(e,t){if(e==null)throw new Error(t??"Value expected");return e}const ih=it`\[\^?`,sh=`c.? | C(?:-.?)?|${it`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${it`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${it`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${it`o\{[^\}]*\}?`}|${it`\d{1,3}`}`,ku=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,si=new RegExp(it`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/highlighted-body-KQOG7T2V-CJM-VU3I.js","assets/index-cESr4Zze.js","assets/index-DYK1gWhP.css","assets/bundle-full-idGWmtvy.js","assets/clsx-B-dksMZM.js","assets/Chat-BbM_y6mh.js","assets/SidePanel-D0rNElh3.js","assets/selection-HN8SZ52c.js","assets/ModelDetails-CkDNU2Px.js","assets/Tabs-Cv10NtDy.js","assets/roving-DkptacxO.js","assets/stored-CETnaQtE.js","assets/Disclosure-DMLE7rCw.js","assets/VerificationLinks-CERoRvCR.js","assets/SelectField-Cl4acfcI.js","assets/Chat-Dtte195G.css"])))=>i.map(i=>d[i]);
2
+ var qp=Object.defineProperty;var jp=Object.getPrototypeOf;var Gp=Reflect.get;var Rl=e=>{throw TypeError(e)};var Vp=(e,t,r)=>t in e?qp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ae=(e,t,r)=>Vp(e,typeof t!="symbol"?t+"":t,r),_s=(e,t,r)=>t.has(e)||Rl("Cannot "+r);var ft=(e,t,r)=>(_s(e,t,"read from private field"),r?r.call(e):t.get(e)),Sr=(e,t,r)=>t.has(e)?Rl("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),qt=(e,t,r,n)=>(_s(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ii=(e,t,r)=>(_s(e,t,"access private method"),r);var Dl=(e,t,r)=>Gp(jp(e),r,t);import{c9 as Z1,r as D,j as I,cp as Tu,_ as J1}from"./index-cESr4Zze.js";import{b as Yp,c as Wp,a as Xp,f as ts,p as Ol,d as Ml,n as Pl,h as ja,s as Qr,z as eh,e as th,g as rh,i as Qp,j as Bl,w as Kp}from"./bundle-full-idGWmtvy.js";import{c as nh}from"./clsx-B-dksMZM.js";import{t as ah}from"./Chat-BbM_y6mh.js";const Zp={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Fl=4294967295;function Jp(e){var t;return!e.sticky&&!((t=e.rawOptions)!=null&&t.strategy)}function Hl(e,t){return{index:e,captureIndices:t.map(r=>r==null?{start:Fl,end:Fl,length:0}:{start:r[0],end:r[1],length:r[1]-r[0]})}}var e2=class{constructor(e,t={}){Ae(this,"patterns");Ae(this,"options");Ae(this,"regexps");Ae(this,"lastSearches");this.patterns=e,this.options=t;const{forgiving:r=!1,cache:n,regexConstructor:a}=t;if(!a)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(i=>{if(typeof i!="string")return i;const s=n==null?void 0:n.get(i);if(s){if(s instanceof RegExp)return s;if(r)return null;throw s}try{const u=a(i);return n==null||n.set(i,u),u}catch(u){if(n==null||n.set(i,u),r)return null;throw u}}),this.lastSearches=this.regexps.map(i=>i&&Jp(i)?{strId:0,searchedFrom:0,matchIndex:-1,indices:null}:null)}findNextMatchSync(e,t,r){const n=typeof e=="string"?e:e.content,a=typeof e=="string"?0:e.id||0;let i=-1,s=0,u=null;for(let l=0;l<this.regexps.length;l++){const o=this.regexps[l];if(o)try{const c=a?this.lastSearches[l]:null;let h,f;if(c&&c.strId===a&&c.searchedFrom<=t&&(c.matchIndex===-1||c.matchIndex>=t))h=c.matchIndex,f=c.indices;else{o.lastIndex=t;const p=o.exec(n);h=p?p.index:-1,f=p?p.indices:null,c&&(c.strId=a,c.searchedFrom=t,c.matchIndex=h,c.indices=f)}if(h===-1)continue;if(h===t)return Hl(l,f);(i===-1||h<s)&&(i=l,s=h,u=f)}catch(c){if(this.options.forgiving)continue;throw c}}return i===-1?null:Hl(i,u)}};let t2=0;function r2(e){return{content:e,id:++t2}}function Qn(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function n2(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}const vu=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),it=String.raw;function Kn(e,t){if(e==null)throw new Error(t??"Value expected");return e}const ih=it`\[\^?`,sh=`c.? | C(?:-.?)?|${it`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${it`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${it`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${it`o\{[^\}]*\}?`}|${it`\d{1,3}`}`,ku=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,si=new RegExp(it`
3
3
  \\ (?:
4
4
  ${sh}
5
5
  | [gk]<[^>]*>?
@@ -523,7 +523,7 @@ ${t}</tr>
523
523
  `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${At(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,text:n,tokens:a,autolink:i}){let s=i?At(n,!0):this.parser.parseInline(a),u=x1(t);if(u===null)return s;t=At(u,i);let l='<a href="'+t+'"';return r&&(l+=' title="'+At(r)+'"'),l+=">"+s+"</a>",l}image({href:t,title:r,text:n,tokens:a}){a&&(n=this.parser.parseInline(a,this.parser.textRenderer));let i=x1(t);if(i===null)return At(n);t=i;let s=`<img src="${At(t)}" alt="${At(n)}"`;return r&&(s+=` title="${At(r)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:At(t.text)}},Tl=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},jt=class fu{constructor(t){Ae(this,"options");Ae(this,"renderer");Ae(this,"textRenderer");this.options=t||Cn,this.options.renderer=this.options.renderer||new Zi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Tl}static parse(t,r){return new fu(r).parse(t)}static parseInline(t,r){return new fu(r).parseInline(t)}parse(t){var n,a;this.renderer.parser=this;let r="";for(let i=0;i<t.length;i++){let s=t[i];if((a=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&a[s.type]){let l=s,o=this.options.extensions.renderers[l.type].call({parser:this},l);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(l.type)){r+=o||"";continue}}let u=s;switch(u.type){case"space":{r+=this.renderer.space(u);break}case"hr":{r+=this.renderer.hr(u);break}case"heading":{r+=this.renderer.heading(u);break}case"code":{r+=this.renderer.code(u);break}case"table":{r+=this.renderer.table(u);break}case"blockquote":{r+=this.renderer.blockquote(u);break}case"list":{r+=this.renderer.list(u);break}case"checkbox":{r+=this.renderer.checkbox(u);break}case"html":{r+=this.renderer.html(u);break}case"def":{r+=this.renderer.def(u);break}case"paragraph":{r+=this.renderer.paragraph(u);break}case"text":{r+=this.renderer.text(u);break}default:{let l='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return r}parseInline(t,r=this.renderer){var a,i;this.renderer.parser=this;let n="";for(let s=0;s<t.length;s++){let u=t[s];if((i=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&i[u.type]){let o=this.options.extensions.renderers[u.type].call({parser:this},u);if(o!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(u.type)){n+=o||"";continue}}let l=u;switch(l.type){case"escape":{n+=r.text(l);break}case"html":{n+=r.html(l);break}case"link":{n+=r.link(l);break}case"image":{n+=r.image(l);break}case"checkbox":{n+=r.checkbox(l);break}case"strong":{n+=r.strong(l);break}case"em":{n+=r.em(l);break}case"codespan":{n+=r.codespan(l);break}case"br":{n+=r.br(l);break}case"del":{n+=r.del(l);break}case"text":{n+=r.text(l);break}default:{let o='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}},Ai,ka=(Ai=class{constructor(e){Ae(this,"options");Ae(this,"block");this.options=e||Cn}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?Ot.lex:Ot.lexInline}provideParser(e=this.block){return e?jt.parse:jt.parseInline}},Ae(Ai,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Ae(Ai,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Ai),jw=class{constructor(...t){Ae(this,"defaults",ml());Ae(this,"options",this.setOptions);Ae(this,"parse",this.parseMarkdown(!0));Ae(this,"parseInline",this.parseMarkdown(!1));Ae(this,"Parser",jt);Ae(this,"Renderer",Zi);Ae(this,"TextRenderer",Tl);Ae(this,"Lexer",Ot);Ae(this,"Tokenizer",Ki);Ae(this,"Hooks",ka);this.use(...t)}walkTokens(t,r){var a,i;let n=[];for(let s of t)switch(n=n.concat(r.call(this,s)),s.type){case"table":{let u=s;for(let l of u.header)n=n.concat(this.walkTokens(l.tokens,r));for(let l of u.rows)for(let o of l)n=n.concat(this.walkTokens(o.tokens,r));break}case"list":{let u=s;n=n.concat(this.walkTokens(u.items,r));break}default:{let u=s;(i=(a=this.defaults.extensions)==null?void 0:a.childTokens)!=null&&i[u.type]?this.defaults.extensions.childTokens[u.type].forEach(l=>{let o=u[l].flat(1/0);n=n.concat(this.walkTokens(o,r))}):u.tokens&&(n=n.concat(this.walkTokens(u.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let a={...n};if(a.async=this.defaults.async||a.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let s=r.renderers[i.name];s?r.renderers[i.name]=function(...u){let l=i.renderer.apply(this,u);return l===!1&&(l=s.apply(this,u)),l}:r.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[i.level];s?s.unshift(i.tokenizer):r[i.level]=[i.tokenizer],i.start&&(i.level==="block"?r.startBlock?r.startBlock.push(i.start):r.startBlock=[i.start]:i.level==="inline"&&(r.startInline?r.startInline.push(i.start):r.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(r.childTokens[i.name]=i.childTokens)}),a.extensions=r),n.renderer){let i=this.defaults.renderer||new Zi(this.defaults);for(let s in n.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let u=s,l=n.renderer[u],o=i[u];i[u]=(...c)=>{let h=l.apply(i,c);return h===!1&&(h=o.apply(i,c)),h||""}}a.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new Ki(this.defaults);for(let s in n.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let u=s,l=n.tokenizer[u],o=i[u];i[u]=(...c)=>{let h=l.apply(i,c);return h===!1&&(h=o.apply(i,c)),h}}a.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new ka;for(let s in n.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let u=s,l=n.hooks[u],o=i[u];ka.passThroughHooks.has(s)?i[u]=c=>{if(this.defaults.async&&ka.passThroughHooksRespectAsync.has(s))return(async()=>{let f=await l.call(i,c);return o.call(i,f)})();let h=l.call(i,c);return o.call(i,h)}:i[u]=(...c)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(i,c);return f===!1&&(f=await o.apply(i,c)),f})();let h=l.apply(i,c);return h===!1&&(h=o.apply(i,c)),h}}a.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,s=n.walkTokens;a.walkTokens=function(u){let l=[];return l.push(s.call(this,u)),i&&(l=l.concat(i.call(this,u))),l}}this.defaults={...this.defaults,...a}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Ot.lex(t,r??this.defaults)}parser(t,r){return jt.parse(t,r??this.defaults)}parseMarkdown(t){return(r,n)=>{let a={...n},i={...this.defaults,...a},s=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&a.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=t),i.async)return(async()=>{let u=i.hooks?await i.hooks.preprocess(r):r,l=await(i.hooks?await i.hooks.provideLexer(t):t?Ot.lex:Ot.lexInline)(u,i),o=i.hooks?await i.hooks.processAllTokens(l):l;i.walkTokens&&await Promise.all(this.walkTokens(o,i.walkTokens));let c=await(i.hooks?await i.hooks.provideParser(t):t?jt.parse:jt.parseInline)(o,i);return i.hooks?await i.hooks.postprocess(c):c})().catch(s);try{i.hooks&&(r=i.hooks.preprocess(r));let u=(i.hooks?i.hooks.provideLexer(t):t?Ot.lex:Ot.lexInline)(r,i);i.hooks&&(u=i.hooks.processAllTokens(u)),i.walkTokens&&this.walkTokens(u,i.walkTokens);let l=(i.hooks?i.hooks.provideParser(t):t?jt.parse:jt.parseInline)(u,i);return i.hooks&&(l=i.hooks.postprocess(l)),l}catch(u){return s(u)}}}onError(t,r){return n=>{if(n.message+=`
524
524
  Please report this to https://github.com/markedjs/marked.`,t){let a="<p>An error occurred:</p><pre>"+At(n.message+"",!0)+"</pre>";return r?Promise.resolve(a):a}if(r)return Promise.reject(n);throw n}}},Tn=new jw;function Ne(e,t){return Tn.parse(e,t)}Ne.options=Ne.setOptions=function(e){return Tn.setOptions(e),Ne.defaults=Tn.defaults,Sm(Ne.defaults),Ne};Ne.getDefaults=ml;Ne.defaults=Cn;function Gw(...e){return Tn.use(...e),Ne.defaults=Tn.defaults,Sm(Ne.defaults),Ne}Ne.use=Gw;Ne.walkTokens=function(e,t){return Tn.walkTokens(e,t)};Ne.parseInline=Tn.parseInline;Ne.Parser=jt;Ne.parser=jt.parse;Ne.Renderer=Zi;Ne.TextRenderer=Tl;Ne.Lexer=Ot;Ne.lexer=Ot.lex;Ne.Tokenizer=Ki;Ne.Hooks=ka;Ne.parse=Ne;Ne.options;Ne.setOptions;Ne.walkTokens;Ne.parseInline;jt.parse;Ot.lex;var Vw=300,Yw="300px",Ww=500;function Xw(e={}){let{immediate:t=!1,debounceDelay:r=Vw,rootMargin:n=Yw,idleTimeout:a=Ww}=e,[i,s]=D.useState(!1),u=D.useRef(null),l=D.useRef(null),o=D.useRef(null),c=D.useMemo(()=>p=>{let b=Date.now();return window.setTimeout(()=>{p({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-b))})},1)},[]),h=D.useMemo(()=>typeof window<"u"&&window.requestIdleCallback?(p,b)=>window.requestIdleCallback(p,b):c,[c]),f=D.useMemo(()=>typeof window<"u"&&window.cancelIdleCallback?p=>window.cancelIdleCallback(p):p=>{clearTimeout(p)},[]);return D.useEffect(()=>{if(t){s(!0);return}let p=u.current;if(!p)return;l.current&&(clearTimeout(l.current),l.current=null),o.current&&(f(o.current),o.current=null);let b=()=>{l.current&&(clearTimeout(l.current),l.current=null),o.current&&(f(o.current),o.current=null)},E=w=>{o.current=h(H=>{H.timeRemaining()>0||H.didTimeout?(s(!0),w.disconnect()):o.current=h(()=>{s(!0),w.disconnect()},{timeout:a/2})},{timeout:a})},T=w=>{b(),l.current=window.setTimeout(()=>{var H,z;let O=w.takeRecords();(O.length===0||(z=(H=O.at(-1))==null?void 0:H.isIntersecting)!=null&&z)&&E(w)},r)},k=(w,H)=>{w.isIntersecting?T(H):b()},C=new IntersectionObserver(w=>{for(let H of w)k(H,C)},{rootMargin:n,threshold:0});return C.observe(p),()=>{l.current&&clearTimeout(l.current),o.current&&f(o.current),C.disconnect()}},[t,r,n,a,f,h]),{shouldRender:i,containerRef:u}}var Qw=320,Kw=4,Bm=()=>typeof performance>"u"?Date.now():performance.now();function A1(e){var t,r;let n=(t=e==null?void 0:e.now)!=null?t:Bm,a=(r=e==null?void 0:e.maxBacklogMs)!=null?r:Qw,i=0,s=0;return{now:n,beginPass(u){s=Math.min(Math.max(i,u),u+a)},mark(){return s},rewind(u){s=u},take(u,l,o){if(u<=0)return{baseDelay:0,step:Math.max(0,l)};let c=Math.max(0,l),h=c===0?0:Math.min(c,Kw),f=Math.max(s,o),p=o+a,b=f+Math.max(0,u-1)*c,E=c;if(b>p&&u>1)if(f<p){let k=p-f;E=Math.max(h,k/(u-1))}else E=h;let T=Math.max(0,Math.round(f-o));return s=f+u*E,{baseDelay:T,step:E}},commitPass(){i=s}}}var Fm=/\s/,vl=/^\s+$/,Zw=new Set(["pre","svg","math","annotation"]),Jw=new Set(["img","hr"]),ai=e=>typeof e=="object"&&e!==null&&"type"in e&&e.type==="element",kl=e=>e.some(t=>ai(t)&&Zw.has(t.tagName)),eA=e=>{for(let t=e.length-1;t>=0;t--){let r=e[t];if(ai(r)&&r.tagName==="li")return r}},tA=(e,t,r,n)=>{e.properties!=null||(e.properties={}),e.properties["data-sd-animate-marker"]=!0;let a=typeof e.properties.style=="string"?`${e.properties.style};`:"";e.properties.style=`${a}--sd-marker-duration:${t}ms;--sd-marker-delay:${Math.round(r)}ms;--sd-marker-easing:${n}`},rA=new Set(["ul","ol","li"]),Hm=e=>{for(let t of e.children)if(ai(t)){if(t.tagName==="input")return t;if(rA.has(t.tagName))continue;let r=Hm(t);if(r)return r}},zm=(e,t,r,n)=>{e.properties!=null||(e.properties={}),e.properties["data-sd-animate"]=!0;let a=typeof e.properties.style=="string"?`${e.properties.style};`:"";e.properties.style=`${a}--sd-animation:sd-${t.animation};--sd-duration:${r}ms;--sd-easing:${t.easing};--sd-delay:${Math.round(n)}ms`},nA=(e,t,r,n)=>{let a=Hm(e);a&&zm(a,t,r,n)},aA=(e,t,r,n,a,i)=>{if(kl(t))return;let s=n.prevContentLength,u=a.count;a.count+=1;let l=s>0&&u<s,o=l?0:i.baseDelay+a.newIndex++*i.step;zm(e,r,l?0:r.duration,o)},iA=e=>{var t;for(let r=e.length-1;r>=0;r-=1){let n=e[r];if(ai(n)){if((t=n.properties)!=null&&t["data-sd-animated"])break;n.properties={...n.properties,"data-sd-animated":!0}}}},$m=e=>{let t=[],r="",n=!1;for(let a of e){let i=Fm.test(a);if(i!==n&&r){if(i){r+=a,n=!0;continue}t.push(r),r=""}r+=a,n=i}return r&&t.push(r),t},Um=e=>{let t=[],r="";for(let n of e)Fm.test(n)?t.length>0&&!vl.test(t.at(-1))?t[t.length-1]+=n:r+=n:(r&&(t.push(r),r=""),t.push(n));return r&&(t.length>0?t[t.length-1]+=r:t.push(r)),t},C1=/^[^\s;:'"\\/](?:[^;:'"\\/\r\n]*[^\s;:'"\\/])?$/,sA=(e,t,r,n)=>{let a=`sd-${t.animation}`,i=`${r?0:t.duration}ms`,s;return t.styleObjects?(s={"--sd-animation":a,"--sd-duration":i,"--sd-easing":t.easing},n&&(s["--sd-delay"]=`${Math.round(n)}ms`)):(s=`--sd-animation:${a};--sd-duration:${i};--sd-easing:${t.easing}`,n&&(s+=`;--sd-delay:${Math.round(n)}ms`)),{type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:s},children:[{type:"text",value:e}]}},S1=(e,t)=>!(e>0&&t<e),mu=e=>ai(e)&&Jw.has(e.tagName),uA=(e,t,r)=>{let n=0,a=0;return Xa(e,i=>i.type==="text"||mu(i),(i,s)=>{if(kl(s))return $r;if(mu(i)){S1(r,a)&&(n+=1),a+=1;return}let u=i.value;if(!u.trim()){a+=u.length;return}let l=t.sep==="char"?Um(u):$m(u);for(let o of l){let c=a;a+=o.length,!vl.test(o)&&S1(r,c)&&(n+=1)}}),n},lA=(e,t,r,n,a,i)=>{var s;let u=t.at(-1);if(!(u&&"children"in u))return;if(kl(t))return $r;let l=u,o=l.children.indexOf(e);if(o===-1)return;let c=e.value;if(!c.trim()){a.count+=c.length;return}let h=r.sep==="char"?Um(c):$m(c),f=n.prevContentLength,p=!1,b=eA(t),E=!!(b&&!((s=b.properties)!=null&&s["data-sd-animate-marker"])),T=!1,k=h.map(C=>{let w=a.count;if(a.count+=C.length,vl.test(C))return{type:"text",value:C};let H=f>0&&w<f,z=H?0:i.baseDelay+a.newIndex++*i.step;if(p=!0,b&&E&&!T){let O=H?0:r.duration;tA(b,O,z,r.easing),nA(b,r,O,z),T=!0}return sA(C,r,H,z)});return p&&iA(t),l.children.splice(o,1,...k),o+k.length},oA=0;function cA(e){return qm(e,!1)}var hA=e=>qm(e,!0);function qm(e,t){var r,n,a,i,s;let u=(r=e==null?void 0:e.animation)!=null?r:"fadeIn",l=(n=e==null?void 0:e.easing)!=null?n:"ease",o={animation:u,duration:(a=e==null?void 0:e.duration)!=null?a:150,easing:l,sep:(i=e==null?void 0:e.sep)!=null?i:"word",stagger:(s=e==null?void 0:e.stagger)!=null?s:40,styleObjects:t&&C1.test(u)&&C1.test(l),timeline:e==null?void 0:e.timeline},c={committedCharCount:0,prevContentLength:0,lastRenderCharCount:0,pendingMark:null},h=oA++,f=()=>p=>{var b;let E={count:0,newIndex:0};c.prevContentLength=c.committedCharCount;let T=o.timeline,k=(b=T==null?void 0:T.now())!=null?b:Bm();T&&(c.pendingMark===null?c.pendingMark=T.mark():T.rewind(c.pendingMark));let C=T?T.take(uA(p,o,c.prevContentLength),o.stagger,k):{baseDelay:0,step:o.stagger};Xa(p,w=>w.type==="text"||mu(w),(w,H)=>{if(w.type==="text")return lA(w,H,o,c,E,C);aA(w,H,o,c,E,C)}),c.lastRenderCharCount=E.count,c.prevContentLength=0};return Object.defineProperty(f,"name",{value:`rehypeAnimate$${h}`}),{name:"animate",type:"animate",rehypePlugin:f,setPrevContentLength(p){c.committedCharCount=p,c.prevContentLength=p},getLastRenderCharCount(){return c.lastRenderCharCount},commit(){c.committedCharCount=c.lastRenderCharCount,c.pendingMark=null}}}cA();var jm=D.createContext(!1),Gm=()=>D.useContext(jm),Is=(...e)=>ah(nh(e)),dA=(e,t)=>{if(!e||!t)return t;let r=`${e}:`;return t.split(/\s+/).filter(Boolean).map(n=>n.startsWith(r)?n:`${e}:${n}`).join(" ")},fA=e=>e?(...t)=>dA(e,ah(nh(t))):Is,Un=(e,t,r)=>{let n=typeof t=="string"&&r.startsWith("text/csv")?"\uFEFF":"",a=typeof t=="string"?new Blob([n+t],{type:r}):t,i=URL.createObjectURL(a),s=document.createElement("a");s.href=i,s.download=e,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(i)},pu=D.createContext(Is),ve=()=>D.useContext(pu),mA=8,Vm=e=>{if(!(e===void 0||e===0||e===Number.POSITIVE_INFINITY)){if(typeof e=="number")return Number.isFinite(e)&&e>0?`${e}px`:void 0;if(!(e==="0"||e==="none"||e==="Infinity"))return e}},Ym=(e,t,r)=>{let n=D.useRef(null),a=D.useRef(!0),i=D.useRef(!1),s=D.useRef(null);return D.useEffect(()=>{let u=n.current;if(!(u&&t))return;let l=()=>{let o=u.scrollHeight-u.scrollTop-u.clientHeight<mA;a.current=o};return u.addEventListener("scroll",l,{passive:!0}),()=>u.removeEventListener("scroll",l)},[t]),D.useEffect(()=>{e&&!i.current&&(a.current=!0),e||(a.current=!0),i.current=e},[e]),D.useEffect(()=>()=>{s.current!==null&&cancelAnimationFrame(s.current)},[]),D.useEffect(()=>{let u=n.current;!(u&&t&&e&&a.current)||s.current!==null||(s.current=requestAnimationFrame(()=>{s.current=null,a.current&&u.scrollTo({top:u.scrollHeight,behavior:"instant"})}))},[e,t,r]),n},pA=Is("block"),gA=Is("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),bA=e=>{let t={};for(let r of e.split(";")){let n=r.indexOf(":");if(n>0){let a=r.slice(0,n).trim(),i=r.slice(n+1).trim();a&&i&&(t[a]=i)}}return t},xA=D.memo(({children:e,result:t,language:r,className:n,maxHeight:a,startLine:i,lineNumbers:s=!0,...u})=>{let l=ve(),{isAnimating:o}=D.useContext(ut),c=Vm(a),h=Ym(o,!!c,t),f=D.useMemo(()=>l(gA),[l]),p=D.useMemo(()=>l(pA),[l]),b=D.useMemo(()=>{let E={};return t.bg&&(E["--sdm-bg"]=t.bg),t.fg&&(E["--sdm-fg"]=t.fg),t.rootStyle&&Object.assign(E,bA(t.rootStyle)),E},[t.bg,t.fg,t.rootStyle]);return I.jsx("div",{className:l(n,c?"overflow-y-auto":null,"overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"),"data-language":r,"data-streamdown":"code-block-body",ref:h,style:c?{maxHeight:c}:void 0,...u,children:I.jsx("pre",{className:l(n,"bg-[var(--sdm-bg,inherit)]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit))]"),style:b,children:I.jsx("code",{className:s?l("[counter-increment:line_0] [counter-reset:line]"):void 0,style:s&&i&&i>1?{counterReset:`line ${i-1}`}:void 0,children:t.tokens.map((E,T)=>I.jsx("span",{className:s?f:p,children:E.length===0||E.length===1&&E[0].content===""?`
525
525
  `:E.map((k,C)=>{let w={},H=!!k.bgColor;if(k.color&&(w["--sdm-c"]=k.color),k.bgColor&&(w["--sdm-tbg"]=k.bgColor),k.htmlStyle)for(let[z,O]of Object.entries(k.htmlStyle))z==="color"?w["--sdm-c"]=O:z==="background-color"?(w["--sdm-tbg"]=O,H=!0):w[z]=O;return I.jsx("span",{className:l("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",H&&"bg-[var(--sdm-tbg)]",H&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:w,...k.htmlAttrs,children:k.content},C)})},T))})})})}),EA=({className:e,language:t,style:r,isIncomplete:n,...a})=>{let i=ve();return I.jsx("div",{className:i("relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",e),"data-incomplete":n||void 0,"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...r},...a})},Wm=D.createContext({code:""}),Xm=()=>D.useContext(Wm),yA=({language:e})=>{let t=ve();return I.jsx("div",{className:t("flex h-8 items-center text-muted-foreground text-xs"),"data-language":e,"data-streamdown":"code-block-header",children:I.jsx("span",{className:t("ml-1 font-mono lowercase"),children:e})})},TA=e=>{let t=e.length;for(;t>0&&e[t-1]===`
526
- `;)t--;return e.slice(0,t)},vA=D.lazy(()=>J1(()=>import("./highlighted-body-KQOG7T2V-D7DB9nBd.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])).then(e=>({default:e.HighlightedCodeBlockBody}))),kA=({code:e,language:t,className:r,children:n,isIncomplete:a=!1,startLine:i,lineNumbers:s,...u})=>{let l=ve(),{codeBlockMaxHeight:o}=D.useContext(ut),c=D.useMemo(()=>TA(e),[e]),h=D.useMemo(()=>({bg:"transparent",fg:"inherit",tokens:c.split(`
526
+ `;)t--;return e.slice(0,t)},vA=D.lazy(()=>J1(()=>import("./highlighted-body-KQOG7T2V-CJM-VU3I.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15])).then(e=>({default:e.HighlightedCodeBlockBody}))),kA=({code:e,language:t,className:r,children:n,isIncomplete:a=!1,startLine:i,lineNumbers:s,...u})=>{let l=ve(),{codeBlockMaxHeight:o}=D.useContext(ut),c=D.useMemo(()=>TA(e),[e]),h=D.useMemo(()=>({bg:"transparent",fg:"inherit",tokens:c.split(`
527
527
  `).map(f=>[{content:f,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[c]);return I.jsx(Wm.Provider,{value:{code:e},children:I.jsxs(EA,{dir:"ltr",isIncomplete:a,language:t,children:[I.jsx(yA,{language:t}),n?I.jsx("div",{className:l("pointer-events-none absolute top-2 right-2 z-10 flex items-center"),children:I.jsx("div",{className:l("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"code-block-actions",children:n})}):null,I.jsx(D.Suspense,{fallback:I.jsx(xA,{className:r,language:t,lineNumbers:s,maxHeight:o,result:h,startLine:i,...u}),children:I.jsx(vA,{className:r,code:c,isIncomplete:a,language:t,lineNumbers:s,maxHeight:o,raw:h,startLine:i,...u})})]})})},wA=e=>I.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:I.jsx("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),AA=e=>I.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:I.jsx("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),CA=e=>I.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:I.jsx("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),SA=e=>I.jsxs("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[I.jsx("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),I.jsx("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),I.jsx("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),I.jsx("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),I.jsx("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),I.jsx("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),I.jsx("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),I.jsx("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),I.jsx("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),I.jsx("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),IA=e=>I.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:I.jsx("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),_A=e=>I.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:I.jsx("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),NA=e=>I.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:I.jsx("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),LA=e=>I.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:I.jsx("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),RA=e=>I.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:I.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),DA=e=>I.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:I.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),wa={CheckIcon:wA,CopyIcon:AA,DownloadIcon:CA,ExternalLinkIcon:LA,Loader2Icon:SA,Maximize2Icon:IA,RotateCcwIcon:_A,XIcon:NA,ZoomInIcon:RA,ZoomOutIcon:DA},Qm=D.createContext(wa),OA=(e,t)=>{if(e===t)return!0;if(!(e&&t))return e===t;let r=Object.keys(e),n=Object.keys(t);return r.length!==n.length?!1:r.every(a=>e[a]===t[a])},I1=({icons:e,children:t})=>{let r=D.useRef(e),n=D.useRef(e?{...wa,...e}:wa);OA(r.current,e)||(r.current=e,n.current=e?{...wa,...e}:wa);let a=n.current;return I.jsx(Qm.Provider,{value:a,children:t})},Qt=()=>D.useContext(Qm),Km={copyCode:"Copy Code",downloadFile:"Download file",downloadDiagram:"Download diagram",downloadDiagramAsSvg:"Download diagram as SVG",downloadDiagramAsPng:"Download diagram as PNG",downloadDiagramAsMmd:"Download diagram as MMD",viewFullscreen:"View fullscreen",exitFullscreen:"Exit fullscreen",mermaidFormatSvg:"SVG",mermaidFormatPng:"PNG",mermaidFormatMmd:"MMD",zoomIn:"Zoom in",zoomOut:"Zoom out",resetView:"Reset zoom and pan",copyTable:"Copy table",copyTableAsMarkdown:"Copy table as Markdown",copyTableAsCsv:"Copy table as CSV",copyTableAsTsv:"Copy table as TSV",downloadTable:"Download table",downloadTableAsCsv:"Download table as CSV",downloadTableAsMarkdown:"Download table as Markdown",tableFormatMarkdown:"Markdown",tableFormatCsv:"CSV",tableFormatTsv:"TSV",imageNotAvailable:"Image not available",downloadImage:"Download image",openExternalLink:"Open external link?",externalLinkWarning:"You're about to visit an external website.",close:"Close",copyLink:"Copy link",copied:"Copied",openLink:"Open link"},gu=D.createContext(Km),ur=()=>D.useContext(gu),bu=({onCopy:e,onError:t,timeout:r=2e3,children:n,className:a,code:i,...s})=>{let u=ve(),[l,o]=D.useState(!1),c=D.useRef(0),{code:h}=Xm(),{isAnimating:f}=D.useContext(ut),p=ur(),b=i??h,E=async()=>{var C;if(typeof window>"u"||!((C=navigator==null?void 0:navigator.clipboard)!=null&&C.writeText)){t==null||t(new Error("Clipboard API not available"));return}try{l||(await navigator.clipboard.writeText(b),o(!0),e==null||e(),c.current=window.setTimeout(()=>o(!1),r))}catch(w){t==null||t(w)}};D.useEffect(()=>()=>{window.clearTimeout(c.current)},[]);let T=Qt(),k=l?T.CheckIcon:T.CopyIcon;return I.jsxs(I.Fragment,{children:[I.jsx("button",{"aria-label":p.copyCode,className:u("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),"data-streamdown":"code-block-copy-button",disabled:f,onClick:E,title:p.copyCode,type:"button",...s,children:n??I.jsx(k,{"aria-hidden":"true",size:14})}),l&&I.jsx("output",{"aria-live":"polite",className:"sr-only",children:p.copied})]})},wl=(e,t,r)=>{if(typeof e=="boolean")return r;let n=e[t];if(typeof n!="object")return r;let a=n.download;return typeof a!="object"?r:a.filename||r},_1=(e,t)=>{if(typeof e=="boolean")return{};let r=e[t];if(typeof r!="object")return{};let n=r.copy;return typeof n!="object"||n===null?{}:{onCopy:n.onCopy,onError:n.onError}},N1={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},MA=({onDownload:e,onError:t,language:r,children:n,className:a,code:i,...s})=>{let u=ve(),{code:l}=Xm(),{isAnimating:o,controls:c}=D.useContext(ut),h=ur(),f=Qt(),p=i??l,b=r&&r in N1?N1[r]:"txt",E=`${wl(c,"code","file")}.${b}`,T="text/plain",k=()=>{try{Un(E,p,T),e==null||e()}catch(C){t==null||t(C)}};return I.jsx("button",{"aria-label":h.downloadFile,className:u("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),"data-streamdown":"code-block-download-button",disabled:o,onClick:k,title:h.downloadFile,type:"button",...s,children:n??I.jsx(f.DownloadIcon,{size:14})})},L1=()=>{let{Loader2Icon:e}=Qt(),t=ve();return I.jsxs("div",{className:t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),children:[I.jsx("div",{className:t("h-[46px] w-full bg-muted/80")}),I.jsx("div",{className:t("flex w-full items-center justify-center p-4"),children:I.jsx(e,{className:t("size-4 animate-spin")})})]})},PA=/\.[^/.]+$/,BA=({node:e,className:t,src:r,alt:n,onLoad:a,onError:i,showControls:s=!0,showDownloadControl:u=!0,...l})=>{let{DownloadIcon:o}=Qt(),c=ve(),h=D.useRef(null),[f,p]=D.useState(!1),[b,E]=D.useState(!1),T=ur(),k=l.width!=null||l.height!=null,C=(f||k)&&!b&&s&&u,w=b&&!k;D.useEffect(()=>{let U=h.current;if(U!=null&&U.complete){let q=U.naturalWidth>0;p(q),E(!q)}},[]);let H=D.useCallback(U=>{p(!0),E(!1),a==null||a(U)},[a]),z=D.useCallback(U=>{p(!1),E(!0),i==null||i(U)},[i]),O=async()=>{if(r)try{let U=await(await fetch(r)).blob(),q=new URL(r,window.location.origin).pathname.split("/").pop()||"",G=q.split(".").pop(),P=q.includes(".")&&G!==void 0&&G.length<=4,K="";if(P)K=q;else{let j=U.type,ce="png";j.includes("jpeg")||j.includes("jpg")?ce="jpg":j.includes("png")?ce="png":j.includes("svg")?ce="svg":j.includes("gif")?ce="gif":j.includes("webp")&&(ce="webp"),K=`${(n||q||"image").replace(PA,"")}.${ce}`}Un(K,U,U.type)}catch{window.open(r,"_blank")}};return r?r===$a?I.jsx("div",{className:c("group relative my-4 inline-block"),"data-incomplete":"true","data-streamdown":"image-wrapper",children:I.jsx("div",{className:c("h-24 w-48 animate-pulse rounded-lg bg-muted"),"data-streamdown":"image-placeholder"})}):I.jsxs("div",{className:c("group relative my-4 inline-block"),"data-streamdown":"image-wrapper",children:[I.jsx("img",{alt:n,className:c("max-w-full rounded-lg",w&&"hidden",t),"data-streamdown":"image",onError:z,onLoad:H,ref:h,src:r,...l}),w&&I.jsx("span",{className:c("text-muted-foreground text-xs italic"),"data-streamdown":"image-fallback",children:T.imageNotAvailable}),s&&I.jsx("div",{className:c("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"),"data-streamdown":"image-overlay"}),C&&I.jsx("button",{className:c("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:O,title:T.downloadImage,type:"button",children:I.jsx(o,{size:14})})]}):null},Al=e=>{let t=typeof e=="function"?e():e;return t??document.body},Ma=0,Cl=()=>{Ma+=1,Ma===1&&(document.body.style.overflow="hidden")},Sl=()=>{Ma=Math.max(0,Ma-1),Ma===0&&(document.body.style.overflow="")},FA=({url:e,isOpen:t,onClose:r,onConfirm:n})=>{let{CheckIcon:a,CopyIcon:i,ExternalLinkIcon:s,XIcon:u}=Qt(),l=ve(),[o,c]=D.useState(!1),h=ur(),{portal:f}=D.useContext(ut),p=D.useCallback(async()=>{try{await navigator.clipboard.writeText(e),c(!0),setTimeout(()=>c(!1),2e3)}catch{}},[e]),b=D.useCallback(()=>{n(),r()},[n,r]);if(D.useEffect(()=>{if(t){Cl();let T=k=>{k.key==="Escape"&&r()};return document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T),Sl()}}},[t,r]),!t||typeof document>"u")return null;let E=I.jsx("div",{className:l("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),"data-streamdown":"link-safety-modal",onClick:r,onKeyDown:T=>{T.key==="Escape"&&r()},role:"button",tabIndex:0,children:I.jsxs("div",{className:l("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),onClick:T=>T.stopPropagation(),onKeyDown:T=>T.stopPropagation(),role:"presentation",children:[I.jsx("button",{className:l("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:r,title:h.close,type:"button",children:I.jsx(u,{size:16})}),I.jsxs("div",{className:l("flex flex-col gap-2"),children:[I.jsxs("div",{className:l("flex items-center gap-2 font-semibold text-lg"),children:[I.jsx(s,{size:20}),I.jsx("span",{children:h.openExternalLink})]}),I.jsx("p",{className:l("text-muted-foreground text-sm"),children:h.externalLinkWarning})]}),I.jsx("div",{className:l("break-all rounded-md bg-muted p-3 font-mono text-sm",e.length>100&&"max-h-32 overflow-y-auto"),children:e}),I.jsxs("div",{className:l("flex gap-2"),children:[I.jsx("button",{className:l("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),onClick:p,type:"button",children:o?I.jsxs(I.Fragment,{children:[I.jsx(a,{size:14}),I.jsx("span",{children:h.copied})]}):I.jsxs(I.Fragment,{children:[I.jsx(i,{size:14}),I.jsx("span",{children:h.copyLink})]})}),I.jsxs("button",{className:l("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),onClick:b,type:"button",children:[I.jsx(s,{size:14}),I.jsx("span",{children:h.openLink})]})]})]})});return Tu.createPortal(E,Al(f))},xu=D.createContext(null),Il=()=>D.useContext(xu),NS=()=>{var e;let t=Il();return(e=t==null?void 0:t.code)!=null?e:null},_l=()=>{var e;let t=Il();return(e=t==null?void 0:t.mermaid)!=null?e:null},HA=e=>{var t;let r=Il();return r!=null&&r.renderers&&e&&(t=r.renderers.find(n=>Array.isArray(n.language)?n.language.includes(e):n.language===e))!=null?t:null},Zm=/<svg\b[^>]*>/i,zA=/\bviewBox=(['"])(.*?)\1/i,$A=/[\s,]+/,UA=/\swidth=(['"]).*?\1/gi,qA=/\sheight=(['"]).*?\1/gi,R1=/\sstyle=(['"])(.*?)\1/i,jA=/^width\s*:/i,GA=/^height\s*:/i,VA=/^max-width\s*:/i,D1=/^<svg/i,Jm=e=>{let t=e.match(Zm);if(!t)return null;let r=t[0].match(zA),n=r==null?void 0:r[2];if(!n)return null;let a=n.trim().split($A).map(u=>Number.parseFloat(u));if(a.length<4||a.slice(0,4).some(Number.isNaN))return null;let i=a[2],s=a[3];return i>0&&s>0?{height:s,width:i}:null},YA=e=>{let t=e.match(Zm);if(!t)return e;try{let r=t[0],n=Jm(e);if(!n)return e;let{width:a,height:i}=n,s=r.replace(UA,"").replace(qA,""),u=s.match(R1),l=`width:${a}px;height:${i}px;max-width:none;`;if(u){let o=u[1],c=u[2].split(";").map(f=>f.trim()).filter(Boolean).filter(f=>!(jA.test(f)||GA.test(f)||VA.test(f))).join(";"),h=`${l}${c?`${c};`:""}`;s=s.replace(R1,` style=${o}${h}${o}`)}else s=s.replace(D1,`<svg style="${l}"`);return s=s.replace(D1,`<svg width="${a}" height="${i}"`),e.replace(r,s)}catch{return e}},WA=e=>{if(typeof DOMParser>"u"||typeof XMLSerializer>"u")return e;let t=new DOMParser().parseFromString(e,"text/html").querySelector("svg");return t?new XMLSerializer().serializeToString(t):e},XA=(e,t)=>{var r;let n=(r=void 0)!=null?r:5;return new Promise((a,i)=>{let s="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),u=new Image;u.crossOrigin="anonymous",u.onload=()=>{let l=document.createElement("canvas"),o=u.width*n,c=u.height*n;l.width=o,l.height=c;let h=l.getContext("2d");if(!h){i(new Error("Failed to create 2D canvas context for PNG export"));return}h.drawImage(u,0,0,o,c),l.toBlob(f=>{if(!f){i(new Error("Failed to create PNG blob"));return}a(f)},"image/png")},u.onerror=()=>i(new Error("Failed to load SVG image")),u.src=s})},ep=({chart:e,children:t,className:r,onDownload:n,config:a,onError:i})=>{let s=ve(),[u,l]=D.useState(!1),o=D.useRef(null),{isAnimating:c,controls:h}=D.useContext(ut),f=Qt(),p=_l(),b=ur(),E=wl(h,"mermaid","diagram"),T=async k=>{try{if(k==="mmd"){let U=`${E}.mmd`;Un(U,e,"text/plain"),l(!1),n==null||n(k);return}if(!p){i==null||i(new Error("Mermaid plugin not available"));return}let C=p.getMermaid(a),w=e.split("").reduce((U,q)=>(U<<5)-U+q.charCodeAt(0)|0,0),H=`mermaid-${Math.abs(w)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:z}=await C.render(H,e);if(!z){i==null||i(new Error("SVG not found. Please wait for the diagram to render."));return}let O=WA(z);if(k==="svg"){let U=`${E}.svg`;Un(U,O,"image/svg+xml"),l(!1),n==null||n(k);return}if(k==="png"){let U=await XA(O);Un(`${E}.png`,U,"image/png"),n==null||n(k),l(!1);return}}catch(C){i==null||i(C)}};return D.useEffect(()=>{let k=C=>{let w=C.composedPath();o.current&&!w.includes(o.current)&&l(!1)};return document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k)}},[]),I.jsxs("div",{className:s("relative"),ref:o,children:[I.jsx("button",{"aria-label":b.downloadDiagram,className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",r),disabled:c,onClick:()=>l(!u),title:b.downloadDiagram,type:"button",children:t??I.jsx(f.DownloadIcon,{"aria-hidden":"true",size:14})}),u?I.jsxs("div",{className:s("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[I.jsx("button",{"aria-label":b.downloadDiagramAsSvg,className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>T("svg"),title:b.downloadDiagramAsSvg,type:"button",children:b.mermaidFormatSvg}),I.jsx("button",{"aria-label":b.downloadDiagramAsPng,className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>T("png"),title:b.downloadDiagramAsPng,type:"button",children:b.mermaidFormatPng}),I.jsx("button",{"aria-label":b.downloadDiagramAsMmd,className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>T("mmd"),title:b.downloadDiagramAsMmd,type:"button",children:b.mermaidFormatMmd})]}):null]})},QA=({chart:e,config:t,onFullscreen:r,onExit:n,className:a,...i})=>{let{Maximize2Icon:s,XIcon:u}=Qt(),l=ve(),[o,c]=D.useState(!1),{isAnimating:h,controls:f,portal:p}=D.useContext(ut),b=ur(),E=(()=>{if(typeof f=="boolean")return f;let w=f.mermaid;return w===!1?!1:w===!0||w===void 0?!0:w.panZoom!==!1})(),T=(()=>{if(typeof f=="boolean")return f;let w=f.mermaid;return w===!1?!1:w===!0||w===void 0?!0:w.download!==!1})(),k=(()=>{if(typeof f=="boolean")return f;let w=f.mermaid;return w===!1?!1:w===!0||w===void 0?!0:w.copy!==!1})(),C=()=>{c(!o)};return D.useEffect(()=>{if(o){Cl();let w=H=>{H.key==="Escape"&&c(!1)};return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w),Sl()}}},[o]),D.useEffect(()=>{o?r==null||r():n&&n()},[o,r,n]),I.jsxs(I.Fragment,{children:[I.jsx("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),disabled:h,onClick:C,title:b.viewFullscreen,type:"button",...i,"aria-label":b.viewFullscreen,children:I.jsx(s,{"aria-hidden":"true",size:14})}),o?Tu.createPortal(I.jsxs("div",{"aria-label":b.viewFullscreen,"aria-modal":"true",className:l("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),"data-streamdown":"mermaid-fullscreen",onClick:C,onKeyDown:w=>{w.key==="Escape"&&C()},role:"dialog",children:[I.jsxs("div",{className:l("absolute top-4 right-4 z-10 flex items-center gap-1"),onClick:w=>w.stopPropagation(),onKeyDown:w=>w.stopPropagation(),role:"presentation",children:[T?I.jsx(ep,{chart:e,config:t}):null,k?I.jsx(bu,{code:e}):null,I.jsx("button",{"aria-label":b.exitFullscreen,className:l("rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:C,title:b.exitFullscreen,type:"button",children:I.jsx(u,{"aria-hidden":"true",size:20})})]}),I.jsx("div",{className:l("flex size-full items-center justify-center p-4"),onClick:w=>w.stopPropagation(),onKeyDown:w=>w.stopPropagation(),role:"presentation",children:I.jsx(Up,{chart:e,className:l("size-full [&_svg]:h-auto [&_svg]:w-auto"),config:t,fullscreen:!0,showControls:E})})]}),Al(p)):null]})};function Eu(e){var t;if(e.nodeType===Node.TEXT_NODE)return(t=e.textContent)!=null?t:"";if(e.nodeType!==Node.ELEMENT_NODE)return"";let r=e;return r.tagName==="BR"?`
528
528
  `:Array.from(r.childNodes).map(Eu).join("")}var tp=e=>{let t=[],r=[],n=e.querySelectorAll("thead th");for(let i of n)t.push(Eu(i).trim());let a=e.querySelectorAll("tbody tr");for(let i of a){let s=[],u=i.querySelectorAll("td");for(let l of u)s.push(Eu(l).trim());r.push(s)}return{headers:t,rows:r}},rp=e=>{var t;if(typeof e!="object")return",";let r=e.table;return typeof r!="object"?",":(t=r.csvSeparator)!=null?t:","},np=(e,t=",")=>{let r;t==="auto"?Intl.NumberFormat().format(1.1).includes(",")?r=";":r=",":r=t;let{headers:n,rows:a}=e,i=o=>{let c=!1;for(let h of o)if(h===r||h==='"'||h===`
529
529
  `||h==="\r"){c=!0;break}return c?`"${o.replace(/"/g,'""')}"`:o},s=n.length>0?a.length+1:a.length,u=new Array(s),l=0;n.length>0&&(u[l]=n.map(i).join(r),l+=1);for(let o of a)u[l]=o.map(i).join(r),l+=1;return u.join(`
@@ -1,4 +1,4 @@
1
- var Wf=Object.defineProperty;var Gf=(t,e,n)=>e in t?Wf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Ht=(t,e,n)=>Gf(t,typeof e!="symbol"?e+"":e,n);import{c8 as ei,c9 as ma,_ as Yf}from"./index-DIcymBxc.js";var ti={exports:{}},ac;function Zf(){return ac||(ac=1,(function(t,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof ei<"u"&&ei,r=(function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o})();(function(o){(function(c){var s=typeof o<"u"&&o||typeof self<"u"&&self||typeof ei<"u"&&ei||{},a={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function l(S){return S&&DataView.prototype.isPrototypeOf(S)}if(a.arrayBuffer)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(S){return S&&u.indexOf(Object.prototype.toString.call(S))>-1};function h(S){if(typeof S!="string"&&(S=String(S)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(S)||S==="")throw new TypeError('Invalid character in header field name: "'+S+'"');return S.toLowerCase()}function f(S){return typeof S!="string"&&(S=String(S)),S}function m(S){var I={next:function(){var j=S.shift();return{done:j===void 0,value:j}}};return a.iterable&&(I[Symbol.iterator]=function(){return I}),I}function g(S){this.map={},S instanceof g?S.forEach(function(I,j){this.append(j,I)},this):Array.isArray(S)?S.forEach(function(I){if(I.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+I.length);this.append(I[0],I[1])},this):S&&Object.getOwnPropertyNames(S).forEach(function(I){this.append(I,S[I])},this)}g.prototype.append=function(S,I){S=h(S),I=f(I);var j=this.map[S];this.map[S]=j?j+", "+I:I},g.prototype.delete=function(S){delete this.map[h(S)]},g.prototype.get=function(S){return S=h(S),this.has(S)?this.map[S]:null},g.prototype.has=function(S){return this.map.hasOwnProperty(h(S))},g.prototype.set=function(S,I){this.map[h(S)]=f(I)},g.prototype.forEach=function(S,I){for(var j in this.map)this.map.hasOwnProperty(j)&&S.call(I,this.map[j],j,this)},g.prototype.keys=function(){var S=[];return this.forEach(function(I,j){S.push(j)}),m(S)},g.prototype.values=function(){var S=[];return this.forEach(function(I){S.push(I)}),m(S)},g.prototype.entries=function(){var S=[];return this.forEach(function(I,j){S.push([j,I])}),m(S)},a.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function w(S){if(!S._noBody){if(S.bodyUsed)return Promise.reject(new TypeError("Already read"));S.bodyUsed=!0}}function p(S){return new Promise(function(I,j){S.onload=function(){I(S.result)},S.onerror=function(){j(S.error)}})}function C(S){var I=new FileReader,j=p(I);return I.readAsArrayBuffer(S),j}function _(S){var I=new FileReader,j=p(I),y=/charset=([A-Za-z0-9_-]+)/.exec(S.type),E=y?y[1]:"utf-8";return I.readAsText(S,E),j}function P(S){for(var I=new Uint8Array(S),j=new Array(I.length),y=0;y<I.length;y++)j[y]=String.fromCharCode(I[y]);return j.join("")}function L(S){if(S.slice)return S.slice(0);var I=new Uint8Array(S.byteLength);return I.set(new Uint8Array(S)),I.buffer}function U(){return this.bodyUsed=!1,this._initBody=function(S){this.bodyUsed=this.bodyUsed,this._bodyInit=S,S?typeof S=="string"?this._bodyText=S:a.blob&&Blob.prototype.isPrototypeOf(S)?this._bodyBlob=S:a.formData&&FormData.prototype.isPrototypeOf(S)?this._bodyFormData=S:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(S)?this._bodyText=S.toString():a.arrayBuffer&&a.blob&&l(S)?(this._bodyArrayBuffer=L(S.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(S)||d(S))?this._bodyArrayBuffer=L(S):this._bodyText=S=Object.prototype.toString.call(S):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof S=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(S)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var S=w(this);if(S)return S;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var S=w(this);return S||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(C);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var S=w(this);if(S)return S;if(this._bodyBlob)return _(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(P(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(N)}),this.json=function(){return this.text().then(JSON.parse)},this}var q=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function F(S){var I=S.toUpperCase();return q.indexOf(I)>-1?I:S}function D(S,I){if(!(this instanceof D))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');I=I||{};var j=I.body;if(S instanceof D){if(S.bodyUsed)throw new TypeError("Already read");this.url=S.url,this.credentials=S.credentials,I.headers||(this.headers=new g(S.headers)),this.method=S.method,this.mode=S.mode,this.signal=S.signal,!j&&S._bodyInit!=null&&(j=S._bodyInit,S.bodyUsed=!0)}else this.url=String(S);if(this.credentials=I.credentials||this.credentials||"same-origin",(I.headers||!this.headers)&&(this.headers=new g(I.headers)),this.method=F(I.method||this.method||"GET"),this.mode=I.mode||this.mode||null,this.signal=I.signal||this.signal||(function(){if("AbortController"in s){var A=new AbortController;return A.signal}})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&j)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(j),(this.method==="GET"||this.method==="HEAD")&&(I.cache==="no-store"||I.cache==="no-cache")){var y=/([?&])_=[^&]*/;if(y.test(this.url))this.url=this.url.replace(y,"$1_="+new Date().getTime());else{var E=/\?/;this.url+=(E.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}D.prototype.clone=function(){return new D(this,{body:this._bodyInit})};function N(S){var I=new FormData;return S.trim().split("&").forEach(function(j){if(j){var y=j.split("="),E=y.shift().replace(/\+/g," "),A=y.join("=").replace(/\+/g," ");I.append(decodeURIComponent(E),decodeURIComponent(A))}}),I}function H(S){var I=new g,j=S.replace(/\r?\n[\t ]+/g," ");return j.split("\r").map(function(y){return y.indexOf(`
1
+ var Wf=Object.defineProperty;var Gf=(t,e,n)=>e in t?Wf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Ht=(t,e,n)=>Gf(t,typeof e!="symbol"?e+"":e,n);import{c8 as ei,c9 as ma,_ as Yf}from"./index-cESr4Zze.js";var ti={exports:{}},ac;function Zf(){return ac||(ac=1,(function(t,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof ei<"u"&&ei,r=(function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o})();(function(o){(function(c){var s=typeof o<"u"&&o||typeof self<"u"&&self||typeof ei<"u"&&ei||{},a={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function l(S){return S&&DataView.prototype.isPrototypeOf(S)}if(a.arrayBuffer)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(S){return S&&u.indexOf(Object.prototype.toString.call(S))>-1};function h(S){if(typeof S!="string"&&(S=String(S)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(S)||S==="")throw new TypeError('Invalid character in header field name: "'+S+'"');return S.toLowerCase()}function f(S){return typeof S!="string"&&(S=String(S)),S}function m(S){var I={next:function(){var j=S.shift();return{done:j===void 0,value:j}}};return a.iterable&&(I[Symbol.iterator]=function(){return I}),I}function g(S){this.map={},S instanceof g?S.forEach(function(I,j){this.append(j,I)},this):Array.isArray(S)?S.forEach(function(I){if(I.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+I.length);this.append(I[0],I[1])},this):S&&Object.getOwnPropertyNames(S).forEach(function(I){this.append(I,S[I])},this)}g.prototype.append=function(S,I){S=h(S),I=f(I);var j=this.map[S];this.map[S]=j?j+", "+I:I},g.prototype.delete=function(S){delete this.map[h(S)]},g.prototype.get=function(S){return S=h(S),this.has(S)?this.map[S]:null},g.prototype.has=function(S){return this.map.hasOwnProperty(h(S))},g.prototype.set=function(S,I){this.map[h(S)]=f(I)},g.prototype.forEach=function(S,I){for(var j in this.map)this.map.hasOwnProperty(j)&&S.call(I,this.map[j],j,this)},g.prototype.keys=function(){var S=[];return this.forEach(function(I,j){S.push(j)}),m(S)},g.prototype.values=function(){var S=[];return this.forEach(function(I){S.push(I)}),m(S)},g.prototype.entries=function(){var S=[];return this.forEach(function(I,j){S.push([j,I])}),m(S)},a.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function w(S){if(!S._noBody){if(S.bodyUsed)return Promise.reject(new TypeError("Already read"));S.bodyUsed=!0}}function p(S){return new Promise(function(I,j){S.onload=function(){I(S.result)},S.onerror=function(){j(S.error)}})}function C(S){var I=new FileReader,j=p(I);return I.readAsArrayBuffer(S),j}function _(S){var I=new FileReader,j=p(I),y=/charset=([A-Za-z0-9_-]+)/.exec(S.type),E=y?y[1]:"utf-8";return I.readAsText(S,E),j}function P(S){for(var I=new Uint8Array(S),j=new Array(I.length),y=0;y<I.length;y++)j[y]=String.fromCharCode(I[y]);return j.join("")}function L(S){if(S.slice)return S.slice(0);var I=new Uint8Array(S.byteLength);return I.set(new Uint8Array(S)),I.buffer}function U(){return this.bodyUsed=!1,this._initBody=function(S){this.bodyUsed=this.bodyUsed,this._bodyInit=S,S?typeof S=="string"?this._bodyText=S:a.blob&&Blob.prototype.isPrototypeOf(S)?this._bodyBlob=S:a.formData&&FormData.prototype.isPrototypeOf(S)?this._bodyFormData=S:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(S)?this._bodyText=S.toString():a.arrayBuffer&&a.blob&&l(S)?(this._bodyArrayBuffer=L(S.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(S)||d(S))?this._bodyArrayBuffer=L(S):this._bodyText=S=Object.prototype.toString.call(S):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof S=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(S)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var S=w(this);if(S)return S;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var S=w(this);return S||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(C);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var S=w(this);if(S)return S;if(this._bodyBlob)return _(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(P(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(N)}),this.json=function(){return this.text().then(JSON.parse)},this}var q=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function F(S){var I=S.toUpperCase();return q.indexOf(I)>-1?I:S}function D(S,I){if(!(this instanceof D))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');I=I||{};var j=I.body;if(S instanceof D){if(S.bodyUsed)throw new TypeError("Already read");this.url=S.url,this.credentials=S.credentials,I.headers||(this.headers=new g(S.headers)),this.method=S.method,this.mode=S.mode,this.signal=S.signal,!j&&S._bodyInit!=null&&(j=S._bodyInit,S.bodyUsed=!0)}else this.url=String(S);if(this.credentials=I.credentials||this.credentials||"same-origin",(I.headers||!this.headers)&&(this.headers=new g(I.headers)),this.method=F(I.method||this.method||"GET"),this.mode=I.mode||this.mode||null,this.signal=I.signal||this.signal||(function(){if("AbortController"in s){var A=new AbortController;return A.signal}})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&j)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(j),(this.method==="GET"||this.method==="HEAD")&&(I.cache==="no-store"||I.cache==="no-cache")){var y=/([?&])_=[^&]*/;if(y.test(this.url))this.url=this.url.replace(y,"$1_="+new Date().getTime());else{var E=/\?/;this.url+=(E.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}D.prototype.clone=function(){return new D(this,{body:this._bodyInit})};function N(S){var I=new FormData;return S.trim().split("&").forEach(function(j){if(j){var y=j.split("="),E=y.shift().replace(/\+/g," "),A=y.join("=").replace(/\+/g," ");I.append(decodeURIComponent(E),decodeURIComponent(A))}}),I}function H(S){var I=new g,j=S.replace(/\r?\n[\t ]+/g," ");return j.split("\r").map(function(y){return y.indexOf(`
2
2
  `)===0?y.substr(1,y.length):y}).forEach(function(y){var E=y.split(":"),A=E.shift().trim();if(A){var T=E.join(":").trim();try{I.append(A,T)}catch(b){console.warn("Response "+b.message)}}}),I}U.call(D.prototype);function $(S,I){if(!(this instanceof $))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(I||(I={}),this.type="default",this.status=I.status===void 0?200:I.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=I.statusText===void 0?"":""+I.statusText,this.headers=new g(I.headers),this.url=I.url||"",this._initBody(S)}U.call($.prototype),$.prototype.clone=function(){return new $(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},$.error=function(){var S=new $(null,{status:200,statusText:""});return S.ok=!1,S.status=0,S.type="error",S};var O=[301,302,303,307,308];$.redirect=function(S,I){if(O.indexOf(I)===-1)throw new RangeError("Invalid status code");return new $(null,{status:I,headers:{location:S}})},c.DOMException=s.DOMException;try{new c.DOMException}catch{c.DOMException=function(I,j){this.message=I,this.name=j;var y=Error(I);this.stack=y.stack},c.DOMException.prototype=Object.create(Error.prototype),c.DOMException.prototype.constructor=c.DOMException}function M(S,I){return new Promise(function(j,y){var E=new D(S,I);if(E.signal&&E.signal.aborted)return y(new c.DOMException("Aborted","AbortError"));var A=new XMLHttpRequest;function T(){A.abort()}A.onload=function(){var k={statusText:A.statusText,headers:H(A.getAllResponseHeaders()||"")};E.url.indexOf("file://")===0&&(A.status<200||A.status>599)?k.status=200:k.status=A.status,k.url="responseURL"in A?A.responseURL:k.headers.get("X-Request-URL");var x="response"in A?A.response:A.responseText;setTimeout(function(){j(new $(x,k))},0)},A.onerror=function(){setTimeout(function(){y(new TypeError("Network request failed"))},0)},A.ontimeout=function(){setTimeout(function(){y(new TypeError("Network request timed out"))},0)},A.onabort=function(){setTimeout(function(){y(new c.DOMException("Aborted","AbortError"))},0)};function b(k){try{return k===""&&s.location.href?s.location.href:k}catch{return k}}if(A.open(E.method,b(E.url),!0),E.credentials==="include"?A.withCredentials=!0:E.credentials==="omit"&&(A.withCredentials=!1),"responseType"in A&&(a.blob?A.responseType="blob":a.arrayBuffer&&(A.responseType="arraybuffer")),I&&typeof I.headers=="object"&&!(I.headers instanceof g||s.Headers&&I.headers instanceof s.Headers)){var v=[];Object.getOwnPropertyNames(I.headers).forEach(function(k){v.push(h(k)),A.setRequestHeader(k,f(I.headers[k]))}),E.headers.forEach(function(k,x){v.indexOf(x)===-1&&A.setRequestHeader(x,k)})}else E.headers.forEach(function(k,x){A.setRequestHeader(x,k)});E.signal&&(E.signal.addEventListener("abort",T),A.onreadystatechange=function(){A.readyState===4&&E.signal.removeEventListener("abort",T)}),A.send(typeof E._bodyInit>"u"?null:E._bodyInit)})}return M.polyfill=!0,s.fetch||(s.fetch=M,s.Headers=g,s.Request=D,s.Response=$),c.Headers=g,c.Request=D,c.Response=$,c.fetch=M,c})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e})(ti,ti.exports)),ti.exports}var Jf=Zf();const Pu=ma(Jf);var ni={exports:{}},Bo,cc;function Xf(){if(cc)return Bo;cc=1;var t=1e3,e=t*60,n=e*60,r=n*24,i=r*7,o=r*365.25;Bo=function(u,d){d=d||{};var h=typeof u;if(h==="string"&&u.length>0)return c(u);if(h==="number"&&isFinite(u))return d.long?a(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function c(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var h=parseFloat(d[1]),f=(d[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return h*o;case"weeks":case"week":case"w":return h*i;case"days":case"day":case"d":return h*r;case"hours":case"hour":case"hrs":case"hr":case"h":return h*n;case"minutes":case"minute":case"mins":case"min":case"m":return h*e;case"seconds":case"second":case"secs":case"sec":case"s":return h*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function s(u){var d=Math.abs(u);return d>=r?Math.round(u/r)+"d":d>=n?Math.round(u/n)+"h":d>=e?Math.round(u/e)+"m":d>=t?Math.round(u/t)+"s":u+"ms"}function a(u){var d=Math.abs(u);return d>=r?l(u,d,r,"day"):d>=n?l(u,d,n,"hour"):d>=e?l(u,d,e,"minute"):d>=t?l(u,d,t,"second"):u+" ms"}function l(u,d,h,f){var m=d>=h*1.5;return Math.round(u/h)+" "+f+(m?"s":"")}return Bo}var $o,lc;function Qf(){if(lc)return $o;lc=1;function t(e){r.debug=r,r.default=r,r.coerce=l,r.disable=c,r.enable=o,r.enabled=s,r.humanize=Xf(),r.destroy=u,Object.keys(e).forEach(d=>{r[d]=e[d]}),r.names=[],r.skips=[],r.formatters={};function n(d){let h=0;for(let f=0;f<d.length;f++)h=(h<<5)-h+d.charCodeAt(f),h|=0;return r.colors[Math.abs(h)%r.colors.length]}r.selectColor=n;function r(d){let h,f=null,m,g;function w(...p){if(!w.enabled)return;const C=w,_=Number(new Date),P=_-(h||_);C.diff=P,C.prev=h,C.curr=_,h=_,p[0]=r.coerce(p[0]),typeof p[0]!="string"&&p.unshift("%O");let L=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,(q,F)=>{if(q==="%%")return"%";L++;const D=r.formatters[F];if(typeof D=="function"){const N=p[L];q=D.call(C,N),p.splice(L,1),L--}return q}),r.formatArgs.call(C,p),(C.log||r.log).apply(C,p)}return w.namespace=d,w.useColors=r.useColors(),w.color=r.selectColor(d),w.extend=i,w.destroy=r.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(m!==r.namespaces&&(m=r.namespaces,g=r.enabled(d)),g),set:p=>{f=p}}),typeof r.init=="function"&&r.init(w),w}function i(d,h){const f=r(this.namespace+(typeof h>"u"?":":h)+d);return f.log=this.log,f}function o(d){r.save(d),r.namespaces=d,r.names=[],r.skips=[];let h;const f=(typeof d=="string"?d:"").split(/[\s,]+/),m=f.length;for(h=0;h<m;h++)f[h]&&(d=f[h].replace(/\*/g,".*?"),d[0]==="-"?r.skips.push(new RegExp("^"+d.slice(1)+"$")):r.names.push(new RegExp("^"+d+"$")))}function c(){const d=[...r.names.map(a),...r.skips.map(a).map(h=>"-"+h)].join(",");return r.enable(""),d}function s(d){if(d[d.length-1]==="*")return!0;let h,f;for(h=0,f=r.skips.length;h<f;h++)if(r.skips[h].test(d))return!1;for(h=0,f=r.names.length;h<f;h++)if(r.names[h].test(d))return!0;return!1}function a(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}function l(d){return d instanceof Error?d.stack||d.message:d}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}return $o=t,$o}var uc;function ep(){return uc||(uc=1,(function(t,e){var n={};e.formatArgs=i,e.save=o,e.load=c,e.useColors=r,e.storage=s(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;l.splice(1,0,u,"color: inherit");let d=0,h=0;l[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(d++,f==="%c"&&(h=d))}),l.splice(h,0,u)}e.log=console.debug||console.log||(()=>{});function o(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function c(){let l;try{l=e.storage.getItem("debug")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=n.DEBUG),l}function s(){try{return localStorage}catch{}}t.exports=Qf()(e);const{formatters:a}=t.exports;a.j=function(l){try{return JSON.stringify(l)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}})(ni,ni.exports)),ni.exports}var tp=ep();const Je=ma(tp);var Ko,dc;function np(){if(dc)return Ko;dc=1;var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i=(D,N)=>{for(var H in N)t(D,H,{get:N[H],enumerable:!0})},o=(D,N,H,$)=>{if(N&&typeof N=="object"||typeof N=="function")for(let O of n(N))!r.call(D,O)&&O!==H&&t(D,O,{get:()=>N[O],enumerable:!($=e(N,O))||$.enumerable});return D},c=D=>o(t({},"__esModule",{value:!0}),D),s={};i(s,{createFinalURL:()=>U,createPathBasedClient:()=>g,createQuerySerializer:()=>_,default:()=>d,defaultBodySerializer:()=>L,defaultPathSerializer:()=>P,mergeHeaders:()=>q,randomID:()=>u,removeTrailingSlash:()=>F,serializeArrayParam:()=>C,serializeObjectParam:()=>p,serializePrimitiveParam:()=>w,wrapAsPathBasedClient:()=>m}),Ko=c(s);var a=/\{[^{}]+\}/g,l=()=>{var D,N;return typeof process=="object"&&Number.parseInt((N=(D=process==null?void 0:process.versions)==null?void 0:D.node)==null?void 0:N.substring(0,2))>=18&&process.versions.undici};function u(){return Math.random().toString(36).slice(2,11)}function d(D){let{baseUrl:N="",Request:H=globalThis.Request,fetch:$=globalThis.fetch,querySerializer:O,bodySerializer:M,headers:S,requestInitExt:I=void 0,...j}={...D};I=l()?I:void 0,N=F(N);const y=[];async function E(A,T){const{baseUrl:b,fetch:v=$,Request:k=H,headers:x,params:R={},parseAs:B="json",querySerializer:K,bodySerializer:z=M??L,body:V,...Z}=T||{};let Q=N;b&&(Q=F(b)??N);let ne=typeof O=="function"?O:_(O);K&&(ne=typeof K=="function"?K:_({...typeof O=="object"?O:{},...K}));const oe=V===void 0?void 0:z(V,q(S,x,R.header)),ue=q(oe===void 0||oe instanceof FormData?{}:{"Content-Type":"application/json"},S,x,R.header),re={redirect:"follow",...j,...Z,body:oe,headers:ue};let ie,le,se=new H(U(A,{baseUrl:Q,params:R,querySerializer:ne}),re),fe;for(const ce in Z)ce in se||(se[ce]=Z[ce]);if(y.length){ie=u(),le=Object.freeze({baseUrl:Q,fetch:v,parseAs:B,querySerializer:ne,bodySerializer:z});for(const ce of y)if(ce&&typeof ce=="object"&&typeof ce.onRequest=="function"){const de=await ce.onRequest({request:se,schemaPath:A,params:R,options:le,id:ie});if(de)if(de instanceof H)se=de;else if(de instanceof Response){fe=de;break}else throw new Error("onRequest: must return new Request() or Response() when modifying the request")}}if(!fe){try{fe=await v(se,I)}catch(ce){let de=ce;if(y.length)for(let me=y.length-1;me>=0;me--){const Ae=y[me];if(Ae&&typeof Ae=="object"&&typeof Ae.onError=="function"){const Ie=await Ae.onError({request:se,error:de,schemaPath:A,params:R,options:le,id:ie});if(Ie){if(Ie instanceof Response){de=void 0,fe=Ie;break}if(Ie instanceof Error){de=Ie;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(de)throw de}if(y.length)for(let ce=y.length-1;ce>=0;ce--){const de=y[ce];if(de&&typeof de=="object"&&typeof de.onResponse=="function"){const me=await de.onResponse({request:se,response:fe,schemaPath:A,params:R,options:le,id:ie});if(me){if(!(me instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");fe=me}}}}if(fe.status===204||se.method==="HEAD"||fe.headers.get("Content-Length")==="0")return fe.ok?{data:void 0,response:fe}:{error:void 0,response:fe};if(fe.ok)return B==="stream"?{data:fe.body,response:fe}:{data:await fe[B](),response:fe};let ve=await fe.text();try{ve=JSON.parse(ve)}catch{}return{error:ve,response:fe}}return{request(A,T,b){return E(T,{...b,method:A.toUpperCase()})},GET(A,T){return E(A,{...T,method:"GET"})},PUT(A,T){return E(A,{...T,method:"PUT"})},POST(A,T){return E(A,{...T,method:"POST"})},DELETE(A,T){return E(A,{...T,method:"DELETE"})},OPTIONS(A,T){return E(A,{...T,method:"OPTIONS"})},HEAD(A,T){return E(A,{...T,method:"HEAD"})},PATCH(A,T){return E(A,{...T,method:"PATCH"})},TRACE(A,T){return E(A,{...T,method:"TRACE"})},use(...A){for(const T of A)if(T){if(typeof T!="object"||!("onRequest"in T||"onResponse"in T||"onError"in T))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");y.push(T)}},eject(...A){for(const T of A){const b=y.indexOf(T);b!==-1&&y.splice(b,1)}}}}var h=class{constructor(D,N){Ht(this,"GET",D=>this.client.GET(this.url,D));Ht(this,"PUT",D=>this.client.PUT(this.url,D));Ht(this,"POST",D=>this.client.POST(this.url,D));Ht(this,"DELETE",D=>this.client.DELETE(this.url,D));Ht(this,"OPTIONS",D=>this.client.OPTIONS(this.url,D));Ht(this,"HEAD",D=>this.client.HEAD(this.url,D));Ht(this,"PATCH",D=>this.client.PATCH(this.url,D));Ht(this,"TRACE",D=>this.client.TRACE(this.url,D));this.client=D,this.url=N}},f=class{constructor(){this.client=null}get(D,N){const H=new h(D,N);return this.client[N]=H,H}};function m(D){const N=new f,H=new Proxy(D,N);function $(){}$.prototype=H;const O=new $;return N.client=O,O}function g(D){return m(d(D))}function w(D,N,H){if(N==null)return"";if(typeof N=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${D}=${(H==null?void 0:H.allowReserved)===!0?N:encodeURIComponent(N)}`}function p(D,N,H){if(!N||typeof N!="object")return"";const $=[],O={simple:",",label:".",matrix:";"}[H.style]||"&";if(H.style!=="deepObject"&&H.explode===!1){for(const I in N)$.push(I,H.allowReserved===!0?N[I]:encodeURIComponent(N[I]));const S=$.join(",");switch(H.style){case"form":return`${D}=${S}`;case"label":return`.${S}`;case"matrix":return`;${D}=${S}`;default:return S}}for(const S in N){const I=H.style==="deepObject"?`${D}[${S}]`:S;$.push(w(I,N[S],H))}const M=$.join(O);return H.style==="label"||H.style==="matrix"?`${O}${M}`:M}function C(D,N,H){if(!Array.isArray(N))return"";if(H.explode===!1){const M={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[H.style]||",",S=(H.allowReserved===!0?N:N.map(I=>encodeURIComponent(I))).join(M);switch(H.style){case"simple":return S;case"label":return`.${S}`;case"matrix":return`;${D}=${S}`;default:return`${D}=${S}`}}const $={simple:",",label:".",matrix:";"}[H.style]||"&",O=[];for(const M of N)H.style==="simple"||H.style==="label"?O.push(H.allowReserved===!0?M:encodeURIComponent(M)):O.push(w(D,M,H));return H.style==="label"||H.style==="matrix"?`${$}${O.join($)}`:O.join($)}function _(D){return function(H){const $=[];if(H&&typeof H=="object")for(const O in H){const M=H[O];if(M!=null){if(Array.isArray(M)){if(M.length===0)continue;$.push(C(O,M,{style:"form",explode:!0,...D==null?void 0:D.array,allowReserved:(D==null?void 0:D.allowReserved)||!1}));continue}if(typeof M=="object"){$.push(p(O,M,{style:"deepObject",explode:!0,...D==null?void 0:D.object,allowReserved:(D==null?void 0:D.allowReserved)||!1}));continue}$.push(w(O,M,D))}}return $.join("&")}}function P(D,N){let H=D;for(const $ of D.match(a)??[]){let O=$.substring(1,$.length-1),M=!1,S="simple";if(O.endsWith("*")&&(M=!0,O=O.substring(0,O.length-1)),O.startsWith(".")?(S="label",O=O.substring(1)):O.startsWith(";")&&(S="matrix",O=O.substring(1)),!N||N[O]===void 0||N[O]===null)continue;const I=N[O];if(Array.isArray(I)){H=H.replace($,C(O,I,{style:S,explode:M}));continue}if(typeof I=="object"){H=H.replace($,p(O,I,{style:S,explode:M}));continue}if(S==="matrix"){H=H.replace($,`;${w(O,I)}`);continue}H=H.replace($,S==="label"?`.${encodeURIComponent(I)}`:encodeURIComponent(I))}return H}function L(D,N){return D instanceof FormData?D:N&&(N.get instanceof Function?N.get("Content-Type")??N.get("content-type"):N["Content-Type"]??N["content-type"])==="application/x-www-form-urlencoded"?new URLSearchParams(D).toString():JSON.stringify(D)}function U(D,N){var O;let H=`${N.baseUrl}${D}`;(O=N.params)!=null&&O.path&&(H=P(H,N.params.path));let $=N.querySerializer(N.params.query??{});return $.startsWith("?")&&($=$.substring(1)),$&&(H+=`?${$}`),H}function q(...D){const N=new Headers;for(const H of D){if(!H||typeof H!="object")continue;const $=H instanceof Headers?H.entries():Object.entries(H);for(const[O,M]of $)if(M===null)N.delete(O);else if(Array.isArray(M))for(const S of M)N.append(O,S);else M!==void 0&&N.set(O,M)}return N}function F(D){return D.endsWith("/")?D.substring(0,D.length-1):D}return Ko}var jo,hc;function rp(){if(hc)return jo;hc=1;var t={},e=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,s=(U,q)=>{for(var F in q)n(U,F,{get:q[F],enumerable:!0})},a=(U,q,F,D)=>{if(q&&typeof q=="object"||typeof q=="function")for(let N of i(q))!c.call(U,N)&&N!==F&&n(U,N,{get:()=>q[N],enumerable:!(D=r(q,N))||D.enumerable});return U},l=(U,q,F)=>(F=U!=null?e(o(U)):{},a(!U||!U.__esModule?n(F,"default",{value:U,enumerable:!0}):F,U)),u=U=>a(n({},"__esModule",{value:!0}),U),d={};s(d,{analytics:()=>L}),jo=u(d);var h=l(np()),f=class{constructor(U){this.batch=[],this.maxTimeoutMs=3e4,this.timeoutId=null,this.isSending=!1,this.batchSize=U.batchSize,this.baseTimeoutMs=U.baseTimeoutMs,this.currentTimeoutMs=U.baseTimeoutMs,this.sendFn=U.sendFn}enqueue(U){this.batch.push(U),this.schedule()}schedule(){this.batch.length>0&&!this.timeoutId&&(this.timeoutId=setTimeout(()=>{this.timeoutId=null,this.flush()},this.currentTimeoutMs))}async flush(){if(this.isSending||this.batch.length===0)return;this.isSending=!0;const U=[...this.batch.slice(0,this.batchSize)];this.batch=this.batch.slice(this.batchSize);try{await this.sendFn(U),this.currentTimeoutMs=this.baseTimeoutMs}catch(q){console.error("Sender: Failed to send batch",q),this.batch=[...U,...this.batch],this.currentTimeoutMs=Math.min(this.currentTimeoutMs*2,this.maxTimeoutMs)}finally{this.isSending=!1,this.schedule()}}},m=f,g=class{constructor(U){this.enabled=!1,this.properties={};const q=(0,h.default)({baseUrl:U}),F=async D=>{const N=await q.POST("/v1/events",{body:D});if(N.response.status!==200)throw new Error(N.error)};this.sender=new m({batchSize:100,baseTimeoutMs:200,sendFn:F})}enable(){this.enabled=!0}setGlobalProperty(U,q){this.properties[U]=q}track(U,q){if(!this.enabled)return;const F={name:U,...this.properties,...q};this.sender.enqueue(F)}},w=g,p,C;typeof process<"u"&&t&&(p=(C=t.METAMASK_ANALYTICS_ENDPOINT)!=null?C:t.NEXT_PUBLIC_METAMASK_ANALYTICS_ENDPOINT);var _=p??"https://mm-sdk-analytics.api.cx.metamask.io/",P=new w(_),L=P;return jo}var Re=rp(),Uo={exports:{}};/*!
3
3
  * EventEmitter2
4
4
  * https://github.com/hij1nx/EventEmitter2
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const v=o`<svg fill="none" viewBox="0 0 20 20">
1
+ import{w as o}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const v=o`<svg fill="none" viewBox="0 0 20 20">
2
2
  <path fill="currentColor" d="M10.81 5.81a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z" />
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const f=o`<svg fill="none" viewBox="0 0 41 40">
1
+ import{w as o}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const f=o`<svg fill="none" viewBox="0 0 41 40">
2
2
  <path
3
3
  style="fill: var(--wui-color-fg-100);"
4
4
  fill-opacity=".05"
@@ -1,4 +1,4 @@
1
- import{w as l}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const p=l`<svg fill="none" viewBox="0 0 22 20">
1
+ import{w as l}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const p=l`<svg fill="none" viewBox="0 0 22 20">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as c}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const m=c`<svg fill="none" viewBox="0 0 20 20">
1
+ import{w as c}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const m=c`<svg fill="none" viewBox="0 0 20 20">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const v=o`<svg fill="none" viewBox="0 0 16 16">
1
+ import{w as o}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const v=o`<svg fill="none" viewBox="0 0 16 16">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as t}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const h=t` <svg
1
+ import{w as t}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const h=t` <svg
2
2
  width="36"
3
3
  height="36"
4
4
  fill="none"
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const m=o`<svg
1
+ import{w as o}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const m=o`<svg
2
2
  width="13"
3
3
  height="12"
4
4
  viewBox="0 0 13 12"
@@ -1,4 +1,4 @@
1
- import{w as a}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const v=a`<svg fill="none" viewBox="0 0 20 20">
1
+ import{w as a}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const v=a`<svg fill="none" viewBox="0 0 20 20">
2
2
  <path
3
3
  fill="currentColor"
4
4
  d="M3 6a3 3 0 0 1 3-3h1a1 1 0 1 0 0-2H6a5 5 0 0 0-5 5v1a1 1 0 0 0 2 0V6ZM13 1a1 1 0 1 0 0 2h1a3 3 0 0 1 3 3v1a1 1 0 1 0 2 0V6a5 5 0 0 0-5-5h-1ZM3 13a1 1 0 1 0-2 0v1a5 5 0 0 0 5 5h1a1 1 0 1 0 0-2H6a3 3 0 0 1-3-3v-1ZM19 13a1 1 0 1 0-2 0v1a3 3 0 0 1-3 3h-1a1 1 0 1 0 0 2h1.01a5 5 0 0 0 5-5v-1ZM5.3 6.36c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05A1.5 1.5 0 0 0 9.2 8.14c.06-.2.06-.43.06-.89s0-.7-.06-.89A1.5 1.5 0 0 0 8.14 5.3c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06ZM10.8 6.36c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05a1.5 1.5 0 0 0 1.06-1.06c.06-.2.06-.43.06-.89s0-.7-.06-.89a1.5 1.5 0 0 0-1.06-1.06c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06ZM5.26 12.75c0-.46 0-.7.05-.89a1.5 1.5 0 0 1 1.06-1.06c.19-.05.42-.05.89-.05.46 0 .7 0 .88.05.52.14.93.54 1.06 1.06.06.2.06.43.06.89s0 .7-.06.89a1.5 1.5 0 0 1-1.06 1.06c-.19.05-.42.05-.88.05-.47 0-.7 0-.9-.05a1.5 1.5 0 0 1-1.05-1.06c-.05-.2-.05-.43-.05-.89ZM10.8 11.86c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05a1.5 1.5 0 0 0 1.06-1.06c.06-.2.06-.43.06-.89s0-.7-.06-.89a1.5 1.5 0 0 0-1.06-1.06c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06Z"
@@ -1,4 +1,4 @@
1
- import{w as C}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const l=C`<svg
1
+ import{w as C}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const l=C`<svg
2
2
  fill="none"
3
3
  viewBox="0 0 21 20"
4
4
  >
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const a=o`<svg fill="none" viewBox="0 0 14 16">
1
+ import{w as o}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const a=o`<svg fill="none" viewBox="0 0 14 16">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as C}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const h=C`<svg width="60" height="16" viewBox="0 0 60 16" fill="none"">
1
+ import{w as C}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const h=C`<svg width="60" height="16" viewBox="0 0 60 16" fill="none"">
2
2
  <path d="M9.3335 4.66667C9.3335 2.08934 11.4229 0 14.0002 0H20.6669C23.2442 0 25.3335 2.08934 25.3335 4.66667V11.3333C25.3335 13.9106 23.2442 16 20.6669 16H14.0002C11.4229 16 9.3335 13.9106 9.3335 11.3333V4.66667Z" fill="#363636"/>
3
3
  <path d="M15.6055 11.0003L17.9448 4.66699H18.6316L16.2923 11.0003H15.6055Z" fill="#F6F6F6"/>
4
4
  <path d="M0 4.33333C0 1.9401 1.9401 0 4.33333 0C6.72657 0 8.66669 1.9401 8.66669 4.33333V11.6667C8.66669 14.0599 6.72657 16 4.33333 16C1.9401 16 0 14.0599 0 11.6667V4.33333Z" fill="#363636"/>
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const n=o`<svg fill="none" viewBox="0 0 20 20">
1
+ import{w as o}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const n=o`<svg fill="none" viewBox="0 0 20 20">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -0,0 +1 @@
1
+ import{at as n,g as o,aw as i,ax as l}from"./index-cESr4Zze.js";function f(e,t){switch(e){case"expected-cost":return t>1?`Ranked by the expected cost of a good answer: price plus waiting time, divided by the success rate this gateway has seen. The ${t} sellers within 30% of the best share the traffic, cheaper and more reliable ones more often.`:"Ranked by the expected cost of a good answer: price plus waiting time, divided by the success rate this gateway has seen. The best seller takes the traffic; no other is close enough to share it.";case"trust":return"Ranked by trust score, highest first. Sellers failing lately go after the healthy ones, and cooling-down sellers last.";case"price":return"Your routing policy sorts by price: cheapest first. Failing and cooling-down sellers still go last.";case"latency":return"Your routing policy sorts by speed: fastest first token first. Failing and cooling-down sellers still go last."}}function a(e){return`${Math.round(e*100)}%`}function u(e){const t=e>=10?Math.round(e):Math.round(e*10)/10;return`${t} recent request${t===1?"":"s"}`}function h(e){if(e.record==="none")return"No requests yet: assumed 80% success until it has answered some.";const t=`${a(e.successRate)} success over ${u(e.observations)}`;return e.record==="other-models"?`${t} on its other models (counted at half weight)`:t}function p(e,t=Date.now()){const r=e.lastFailureReason?`: ${e.lastFailureReason}`:"",s=e.lastFailureAt?`, ${n(e.lastFailureAt,t)}`:"";return e.coolingDown?`Cooling down after failures in a row${r}${s}. Tried last.`:e.failing?`Failing lately${r}${s}. Tried after the healthy sellers.`:null}function d(e){const t=[];return e.ordering==="expected-cost"&&t.push(`${o(e.expectedCostUsd)} expected per good answer`),t.push(h(e)),e.firstTokenMs!==null&&t.push(`${i(e.firstTokenMs)} first token`),e.tokensPerSecond!==null&&t.push(l(e.tokensPerSecond)),e.sharesTraffic&&e.trafficShare!==null&&t.push(`takes ~${a(e.trafficShare)} of the traffic`),e.channel==="open"?t.push("payment channel open"):e.channel==="new"&&t.push("first request opens a payment channel (~5 s)"),e.maxConcurrency!==null&&e.inFlight>=e.maxConcurrency?t.push(`at capacity (${e.inFlight}/${e.maxConcurrency} in flight): tried after sellers with room`):e.inFlight>0&&t.push(`${e.inFlight}${e.maxConcurrency!==null?`/${e.maxConcurrency}`:""} in flight`),t}function g(e){const t=`#${e.rank} of ${e.of} eligible seller${e.of===1?"":"s"}`;switch(e.pick){case"spread":return`Drawn from the ${e.poolSize} sellers sharing this model's traffic (${t}).`;case"best":return`The best seller for this model on its own (${t}).`;case"conversation":return`The seller this conversation stays on, so its prompt cache keeps working (${t}).`;case"exploration":return`A probe: one request in twenty tries a seller with no recent record, so routing keeps learning (${t}).`;case"failover":return`${e.attempt===1?"The seller before it":`The ${e.attempt} sellers before it`} failed this request, so it went to the next one (${t}).`;case"order":return e.attempt>0?`${e.attempt===1?"The seller before it":`The ${e.attempt} sellers before it`} could not take this request (${t}).`:e.routeChainPosition!==null?`Seller #${e.routeChainPosition} in your routing policy's route for this model (${t}).`:e.ordering==="trust"?`The most trusted healthy seller (${t}).`:`First in the order your routing policy sets (${t}).`}}export{p as h,f as o,g as p,h as r,d as s};
@@ -1,4 +1,4 @@
1
- import{w as C}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const n=C`<svg fill="none" viewBox="0 0 21 20">
1
+ import{w as C}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const n=C`<svg fill="none" viewBox="0 0 21 20">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1 +1 @@
1
- import{f as O,h as U,A as W,i as k,j as D,B as H,g as w,k as J,l as K,m as B,n as Q,L as V,o as X,q as Y,s as Z,t as l,v as $,p as aa}from"./en_US-Y4ZOVFV4-CmhP8GU2.js";function ta({chain:a,currentChainId:r}){if(!a)throw new O;if(r!==a.id)throw new U({chain:a,currentChainId:r})}const m=new V(128);async function ea(a,r){var A,F,S,z,I;const{account:f=a.account,assertChainId:G=!0,chain:e=a.chain,accessList:y,authorizationList:o,blobs:T,data:c,dataSuffix:d=typeof a.dataSuffix=="string"?a.dataSuffix:(A=a.dataSuffix)==null?void 0:A.value,gas:g,gasPrice:E,maxFeePerBlobGas:R,maxFeePerGas:q,maxPriorityFeePerGas:x,nonce:C,type:N,value:P,...M}=r;if(typeof f>"u")throw new W({docsPath:"/docs/actions/wallet/sendTransaction"});const t=f?aa(f):null;try{k(r);const s=await(async()=>{if(r.to)return r.to;if(r.to!==null&&o&&o.length>0)return await D({authorization:o[0]}).catch(()=>{throw new H("`to` is required. Could not infer from `authorizationList`.")})})();if((t==null?void 0:t.type)==="json-rpc"||t===null){let i;e!==null&&(i=await w(a,J,"getChainId")({}),G&&ta({currentChainId:i,chain:e}));const u=(z=(S=(F=a.chain)==null?void 0:F.formatters)==null?void 0:S.transactionRequest)==null?void 0:z.format,L=(u||K)({...Q(M,{format:u}),accessList:y,account:t,authorizationList:o,blobs:T,chainId:i,data:d?B([c??"0x",d]):c,gas:g,gasPrice:E,maxFeePerBlobGas:R,maxFeePerGas:q,maxPriorityFeePerGas:x,nonce:C,to:s,type:N,value:P},"sendTransaction"),b=m.get(a.uid),j=b?"wallet_sendTransaction":"eth_sendTransaction";try{return await a.request({method:j,params:[L]},{retryCount:0})}catch(_){if(b===!1)throw _;const n=_;if(n.name==="InvalidInputRpcError"||n.name==="InvalidParamsRpcError"||n.name==="MethodNotFoundRpcError"||n.name==="MethodNotSupportedRpcError")return await a.request({method:"wallet_sendTransaction",params:[L]},{retryCount:0}).then(h=>(m.set(a.uid,!0),h)).catch(h=>{const p=h;throw p.name==="MethodNotFoundRpcError"||p.name==="MethodNotSupportedRpcError"?(m.set(a.uid,!1),n):p});throw n}}if((t==null?void 0:t.type)==="local"){const i=await w(a,X,"prepareTransactionRequest")({account:t,accessList:y,authorizationList:o,blobs:T,chain:e,data:d?B([c??"0x",d]):c,gas:g,gasPrice:E,maxFeePerBlobGas:R,maxFeePerGas:q,maxPriorityFeePerGas:x,nonce:C,nonceManager:t.nonceManager,parameters:[...Y,"sidecars"],type:N,value:P,...M,to:s}),u=(I=e==null?void 0:e.serializers)==null?void 0:I.transaction,v=await t.signTransaction(i,{serializer:u});return await w(a,Z,"sendRawTransaction")({serializedTransaction:v})}throw(t==null?void 0:t.type)==="smart"?new l({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new l({docsPath:"/docs/actions/wallet/sendTransaction",type:t==null?void 0:t.type})}catch(s){throw s instanceof l?s:$(s,{...r,account:t,chain:r.chain||void 0})}}export{ta as a,ea as s};
1
+ import{f as O,h as U,A as W,i as k,j as D,B as H,g as w,k as J,l as K,m as B,n as Q,L as V,o as X,q as Y,s as Z,t as l,v as $,p as aa}from"./en_US-Y4ZOVFV4-sKQksBWU.js";function ta({chain:a,currentChainId:r}){if(!a)throw new O;if(r!==a.id)throw new U({chain:a,currentChainId:r})}const m=new V(128);async function ea(a,r){var A,F,S,z,I;const{account:f=a.account,assertChainId:G=!0,chain:e=a.chain,accessList:y,authorizationList:o,blobs:T,data:c,dataSuffix:d=typeof a.dataSuffix=="string"?a.dataSuffix:(A=a.dataSuffix)==null?void 0:A.value,gas:g,gasPrice:E,maxFeePerBlobGas:R,maxFeePerGas:q,maxPriorityFeePerGas:x,nonce:C,type:N,value:P,...M}=r;if(typeof f>"u")throw new W({docsPath:"/docs/actions/wallet/sendTransaction"});const t=f?aa(f):null;try{k(r);const s=await(async()=>{if(r.to)return r.to;if(r.to!==null&&o&&o.length>0)return await D({authorization:o[0]}).catch(()=>{throw new H("`to` is required. Could not infer from `authorizationList`.")})})();if((t==null?void 0:t.type)==="json-rpc"||t===null){let i;e!==null&&(i=await w(a,J,"getChainId")({}),G&&ta({currentChainId:i,chain:e}));const u=(z=(S=(F=a.chain)==null?void 0:F.formatters)==null?void 0:S.transactionRequest)==null?void 0:z.format,L=(u||K)({...Q(M,{format:u}),accessList:y,account:t,authorizationList:o,blobs:T,chainId:i,data:d?B([c??"0x",d]):c,gas:g,gasPrice:E,maxFeePerBlobGas:R,maxFeePerGas:q,maxPriorityFeePerGas:x,nonce:C,to:s,type:N,value:P},"sendTransaction"),b=m.get(a.uid),j=b?"wallet_sendTransaction":"eth_sendTransaction";try{return await a.request({method:j,params:[L]},{retryCount:0})}catch(_){if(b===!1)throw _;const n=_;if(n.name==="InvalidInputRpcError"||n.name==="InvalidParamsRpcError"||n.name==="MethodNotFoundRpcError"||n.name==="MethodNotSupportedRpcError")return await a.request({method:"wallet_sendTransaction",params:[L]},{retryCount:0}).then(h=>(m.set(a.uid,!0),h)).catch(h=>{const p=h;throw p.name==="MethodNotFoundRpcError"||p.name==="MethodNotSupportedRpcError"?(m.set(a.uid,!1),n):p});throw n}}if((t==null?void 0:t.type)==="local"){const i=await w(a,X,"prepareTransactionRequest")({account:t,accessList:y,authorizationList:o,blobs:T,chain:e,data:d?B([c??"0x",d]):c,gas:g,gasPrice:E,maxFeePerBlobGas:R,maxFeePerGas:q,maxPriorityFeePerGas:x,nonce:C,nonceManager:t.nonceManager,parameters:[...Y,"sidecars"],type:N,value:P,...M,to:s}),u=(I=e==null?void 0:e.serializers)==null?void 0:I.transaction,v=await t.signTransaction(i,{serializer:u});return await w(a,Z,"sendRawTransaction")({serializedTransaction:v})}throw(t==null?void 0:t.type)==="smart"?new l({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new l({docsPath:"/docs/actions/wallet/sendTransaction",type:t==null?void 0:t.type})}catch(s){throw s instanceof l?s:$(s,{...r,account:t,chain:r.chain||void 0})}}export{ta as a,ea as s};
@@ -0,0 +1 @@
1
+ import{u as v,n as b,t as F,q as L,f as D,j as s,L as O,B as f,v as i,O as w,bl as N,w as R}from"./index-cESr4Zze.js";import{o as q,h as z,s as B}from"./selection-HN8SZ52c.js";import{P as y,a as P}from"./SidePanel-D0rNElh3.js";import{D as A}from"./Disclosure-DMLE7rCw.js";function C(n){return n.displayName??R(n.peerId,8,4)}function $({preview:n,loading:o,pin:t,title:j="Seller selection",explainSkipped:c,skippedOpen:S=!1}){var x;const{viewer:k}=v(),I=b(k),p=F({mutationFn:r=>D.network.resetSellerHistory(r),invalidate:[L.group("routing"),["chat-route-preview"]],toast:"History cleared: the seller starts fresh."});if(o)return s.jsx(y,{title:j,children:s.jsx(O,{rows:3})});if(!n)return null;const h=n.candidates.filter(r=>r.eligible).sort((r,e)=>(r.rank??1e9)-(e.rank??1e9)),g=n.candidates.filter(r=>!r.eligible),u=((x=h[0])==null?void 0:x.selection)??null,d=(t==null?void 0:t.peerId)??null;return s.jsxs(y,{title:j,children:[n.modelAllowed?h.length===0?s.jsx("p",{className:"gc-fineprint",children:"No seller passes your routing settings for this model right now."}):s.jsxs("p",{className:"gc-fineprint",children:[d?"Pinned: every request goes to the pinned seller. Without the pin, automatic routing works like this. ":"",u?q(u.ordering,u.poolSize):"Sellers in the order automatic routing tries them; the next one takes over when one fails."]}):s.jsx("p",{className:"gc-fineprint",children:"Your routing policy does not allow this model: requests for it are refused."}),h.length>0&&s.jsx("ol",{className:"gc-panel-rows","aria-label":"Sellers in routing order",children:h.map(r=>{const e=r.selection,m=e?z(e):null,a=d!==null&&d===r.peerId.toLowerCase();return s.jsx(P,{selected:a,title:s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"gc-muted",children:["#",r.rank]})," ",s.jsx(w,{to:N("providers",r.peerId),children:C(r)})]}),meta:e?B(e).map(l=>s.jsx("span",{children:l},l)):r.reasons.map(l=>s.jsx("span",{children:l},l)),badges:((e==null?void 0:e.sharesTraffic)||m||(e==null?void 0:e.stale)||(e==null?void 0:e.channel)==="free"||(e==null?void 0:e.routeChainPosition))&&s.jsxs("div",{className:"gc-stack gc-stack--tight",children:[s.jsxs("div",{className:"gc-badges",children:[(e==null?void 0:e.routeChainPosition)!=null&&s.jsxs(i,{children:["Route #",e.routeChainPosition]}),(e==null?void 0:e.sharesTraffic)&&s.jsx(i,{children:"Shares traffic"}),(e==null?void 0:e.channel)==="free"&&s.jsx(i,{tone:"success",children:"Free"}),e!=null&&e.coolingDown?s.jsx(i,{tone:"warning",children:"Cooling down"}):e!=null&&e.failing?s.jsx(i,{tone:"warning",children:"Failing"}):null,(e==null?void 0:e.stale)&&!e.failing&&!e.coolingDown&&s.jsx(i,{children:e.record==="none"?"New":"Not seen lately"})]}),m&&s.jsx("span",{className:"gc-fineprint",children:m})]}),actions:s.jsxs(s.Fragment,{children:[I&&e&&(e.failing||e.coolingDown)&&s.jsx(f,{size:"sm",variant:"ghost",disabled:p.isPending,title:"Forget what this gateway has seen of the seller, so routing gives it a fresh start",onClick:()=>p.mutate(r.peerId),children:"Reset history"}),t&&s.jsx(f,{size:"sm",variant:a?"outline":"ghost","aria-pressed":a,onClick:()=>t.onChange(a?null:r.peerId.toLowerCase()),children:a?"Pinned":"Pin"})]})},r.peerId)})}),g.length>0&&s.jsx(A,{title:"Not used",summary:`${g.length} seller${g.length===1?"":"s"}`,defaultOpen:S,children:s.jsx("ul",{className:"gc-panel-rows","aria-label":"Sellers automatic routing skips",children:g.map(r=>s.jsx(P,{title:s.jsx(w,{to:N("providers",r.peerId),children:C(r)}),meta:s.jsx("span",{children:r.reasons.join(" · ")||"not eligible"}),badges:c==null?void 0:c(r),actions:t&&s.jsx(f,{size:"sm",variant:"ghost",title:"Pinning skips your routing settings' ranking, not the hard limits",onClick:()=>t.onChange(r.peerId.toLowerCase()),children:"Pin"})},r.peerId))})})]})}function E(n,o){try{const t=localStorage.getItem(n);return t?JSON.parse(t):o}catch{return o}}function M(n,o){try{localStorage.setItem(n,JSON.stringify(o))}catch{}}export{$ as S,E as l,M as s};
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const m=o`<svg fill="none" viewBox="0 0 20 20">
1
+ import{w as o}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const m=o`<svg fill="none" viewBox="0 0 20 20">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const L=o`<svg width="10" height="10" viewBox="0 0 10 10">
1
+ import{w as o}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const L=o`<svg width="10" height="10" viewBox="0 0 10 10">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const L=o`<svg
1
+ import{w as o}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const L=o`<svg
2
2
  width="14"
3
3
  height="14"
4
4
  viewBox="0 0 14 14"
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const p=o`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
1
+ import{w as o}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const p=o`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as l}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const m=l`<svg fill="none" viewBox="0 0 14 14">
1
+ import{w as l}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const m=l`<svg fill="none" viewBox="0 0 14 14">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as t}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const a=t`<svg width="32" height="32" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
1
+ import{w as t}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const a=t`<svg width="32" height="32" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
2
2
  <g clip-path="url(#a)">
3
3
  <path fill="url(#b)" d="M0 0h32v32H0z"/>
4
4
  <path fill-rule="evenodd" clip-rule="evenodd" d="M7.034 15.252c4.975-2.167 8.293-3.596 9.953-4.287 4.74-1.971 5.725-2.314 6.366-2.325.142-.002.457.033.662.198.172.14.22.33.243.463.022.132.05.435.028.671-.257 2.7-1.368 9.248-1.933 12.27-.24 1.28-.71 1.708-1.167 1.75-.99.091-1.743-.655-2.703-1.284-1.502-.985-2.351-1.598-3.81-2.558-1.684-1.11-.592-1.721.368-2.718.252-.261 4.619-4.233 4.703-4.594.01-.045.02-.213-.08-.301-.1-.09-.246-.059-.353-.035-.15.034-2.55 1.62-7.198 4.758-.682.468-1.298.696-1.851.684-.61-.013-1.782-.344-2.653-.628-1.069-.347-1.918-.53-1.845-1.12.039-.308.462-.623 1.27-.944Z" fill="#fff"/>
@@ -1,4 +1,4 @@
1
- import{w as t}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const h=t`<svg width="14" height="15" viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg">
1
+ import{w as t}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const h=t`<svg width="14" height="15" viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path d="M7 3.71875C6.0335 3.71875 5.25 2.93525 5.25 1.96875C5.25 1.00225 6.0335 0.21875 7 0.21875C7.9665 0.21875 8.75 1.00225 8.75 1.96875C8.75 2.93525 7.9665 3.71875 7 3.71875Z" fill="#949E9E"/>
3
3
  <path d="M7 8.96875C6.0335 8.96875 5.25 8.18525 5.25 7.21875C5.25 6.25225 6.0335 5.46875 7 5.46875C7.9665 5.46875 8.75 6.25225 8.75 7.21875C8.75 8.18525 7.9665 8.96875 7 8.96875Z" fill="#949E9E"/>
4
4
  <path d="M5.25 12.4688C5.25 13.4352 6.0335 14.2187 7 14.2187C7.9665 14.2187 8.75 13.4352 8.75 12.4688C8.75 11.5023 7.9665 10.7188 7 10.7188C6.0335 10.7188 5.25 11.5023 5.25 12.4688Z" fill="#949E9E"/>
@@ -1,4 +1,4 @@
1
- import{w as i}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const a=i`<svg fill="none" viewBox="0 0 40 40">
1
+ import{w as i}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const a=i`<svg fill="none" viewBox="0 0 40 40">
2
2
  <g clip-path="url(#a)">
3
3
  <g clip-path="url(#b)">
4
4
  <circle cx="20" cy="19.89" r="20" fill="#5A3E85" />
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-LDeQm5nv.js";import"./index-DIcymBxc.js";import"./index.es-0kjt2ETS.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CmhP8GU2.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const l=o`<svg fill="none" viewBox="0 0 16 16">
1
+ import{w as o}from"./core-BCJdIbrO.js";import"./index-cESr4Zze.js";import"./index.es-DP9EmOYi.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-sKQksBWU.js";import"./clsx-B-dksMZM.js";import"./index-BhwNCc8y.js";const l=o`<svg fill="none" viewBox="0 0 16 16">
2
2
  <path
3
3
  fill="currentColor"
4
4
  d="m14.36 4.74.01.42c0 4.34-3.3 9.34-9.34 9.34A9.3 9.3 0 0 1 0 13.03a6.6 6.6 0 0 0 4.86-1.36 3.29 3.29 0 0 1-3.07-2.28c.5.1 1 .07 1.48-.06A3.28 3.28 0 0 1 .64 6.11v-.04c.46.26.97.4 1.49.41A3.29 3.29 0 0 1 1.11 2.1a9.32 9.32 0 0 0 6.77 3.43 3.28 3.28 0 0 1 5.6-3 6.59 6.59 0 0 0 2.08-.8 3.3 3.3 0 0 1-1.45 1.82A6.53 6.53 0 0 0 16 3.04c-.44.66-1 1.23-1.64 1.7Z"