@buoy-gg/core 7.0.41 → 7.0.42

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 (270) hide show
  1. package/README.md +14 -95
  2. package/bin/buoy.js +19 -340
  3. package/lib/commonjs/Buoy.js +1 -107
  4. package/lib/commonjs/browserRegister.js +1 -48
  5. package/lib/commonjs/browserRegister.server.js +1 -10
  6. package/lib/commonjs/earlyHookScript.js +1 -0
  7. package/lib/commonjs/earlyNetwork.js +1 -0
  8. package/lib/commonjs/floatingMenu/AppHost.js +1 -460
  9. package/lib/commonjs/floatingMenu/AppHost.web.js +1 -376
  10. package/lib/commonjs/floatingMenu/AppHostLogic.js +1 -50
  11. package/lib/commonjs/floatingMenu/AppIcon.js +1 -91
  12. package/lib/commonjs/floatingMenu/AppIcon.web.js +1 -53
  13. package/lib/commonjs/floatingMenu/BrowserToolRuntime.js +1 -150
  14. package/lib/commonjs/floatingMenu/DefaultConfigContext.js +1 -45
  15. package/lib/commonjs/floatingMenu/DevToolsSettingsModal.js +1 -18
  16. package/lib/commonjs/floatingMenu/DevToolsSettingsModal.shared.js +1 -1114
  17. package/lib/commonjs/floatingMenu/DevToolsSettingsModal.web.js +1 -48
  18. package/lib/commonjs/floatingMenu/DevToolsVisibilityContext.js +1 -49
  19. package/lib/commonjs/floatingMenu/FloatingDevTools.js +1 -559
  20. package/lib/commonjs/floatingMenu/FloatingDevTools.web.js +1 -415
  21. package/lib/commonjs/floatingMenu/FloatingMenu.js +1 -371
  22. package/lib/commonjs/floatingMenu/MinimizedToolsContext.js +1 -274
  23. package/lib/commonjs/floatingMenu/MinimizedToolsStack.js +1 -288
  24. package/lib/commonjs/floatingMenu/MinimizedToolsStack.web.js +1 -377
  25. package/lib/commonjs/floatingMenu/ToggleStateManager.js +1 -36
  26. package/lib/commonjs/floatingMenu/ToolHost.js +1 -281
  27. package/lib/commonjs/floatingMenu/ToolOpenerBridge.js +1 -41
  28. package/lib/commonjs/floatingMenu/autoDiscoverPresets.js +1 -471
  29. package/lib/commonjs/floatingMenu/autoExternalSync.js +1 -443
  30. package/lib/commonjs/floatingMenu/defaultConfig.js +1 -167
  31. package/lib/commonjs/floatingMenu/deviceIdentity.js +1 -173
  32. package/lib/commonjs/floatingMenu/dial/DialDevTools.js +1 -904
  33. package/lib/commonjs/floatingMenu/dial/DialDevTools.web.js +1 -895
  34. package/lib/commonjs/floatingMenu/dial/DialHyperspace.js +1 -177
  35. package/lib/commonjs/floatingMenu/dial/DialIcon.js +1 -304
  36. package/lib/commonjs/floatingMenu/dial/DialPagination.js +1 -165
  37. package/lib/commonjs/floatingMenu/dial/DialSnow.js +1 -92
  38. package/lib/commonjs/floatingMenu/dial/OnboardingTooltip.js +1 -246
  39. package/lib/commonjs/floatingMenu/dial/OnboardingTooltip.web.js +2 -147
  40. package/lib/commonjs/floatingMenu/dial/dialUsageStore.js +1 -93
  41. package/lib/commonjs/floatingMenu/dial/onboardingConstants.js +1 -42
  42. package/lib/commonjs/floatingMenu/dial/onboardingConstants.web.js +1 -42
  43. package/lib/commonjs/floatingMenu/externalSyncGate.js +1 -49
  44. package/lib/commonjs/floatingMenu/floatingTools.js +1 -42
  45. package/lib/commonjs/floatingMenu/floatingTools.web.js +1 -30
  46. package/lib/commonjs/floatingMenu/optionalRequire.js +1 -37
  47. package/lib/commonjs/floatingMenu/settingsBus.js +1 -12
  48. package/lib/commonjs/floatingMenu/sync/appSyncAdapter.js +1 -115
  49. package/lib/commonjs/floatingMenu/types.js +1 -5
  50. package/lib/commonjs/floatingMenu/useDesktopSyncStatus.js +1 -28
  51. package/lib/commonjs/floatingMenu/useDesktopSyncStatus.web.js +1 -14
  52. package/lib/commonjs/index.js +1 -291
  53. package/lib/commonjs/index.web.js +1 -241
  54. package/lib/commonjs/reactDevtoolsTypes.js +1 -1
  55. package/lib/commonjs/releaseOptIn.js +1 -0
  56. package/lib/commonjs/telemetry/installPing.js +1 -131
  57. package/lib/commonjs/toolkit.js +1 -584
  58. package/lib/commonjs/toolkitComponents.js +1 -241
  59. package/lib/commonjs/utils/autoDiscoverPresets.web.js +1 -46
  60. package/lib/commonjs/utils/createWebTool.js +1 -20
  61. package/lib/commonjs/utils/createWebTools.js +1 -30
  62. package/lib/commonjs/version.js +1 -18
  63. package/lib/module/Buoy.js +1 -102
  64. package/lib/module/browserRegister.js +1 -44
  65. package/lib/module/browserRegister.server.js +1 -6
  66. package/lib/module/earlyHookScript.js +1 -0
  67. package/lib/module/earlyNetwork.js +1 -0
  68. package/lib/module/floatingMenu/AppHost.js +1 -452
  69. package/lib/module/floatingMenu/AppHost.web.js +1 -368
  70. package/lib/module/floatingMenu/AppHostLogic.js +1 -45
  71. package/lib/module/floatingMenu/AppIcon.js +1 -84
  72. package/lib/module/floatingMenu/AppIcon.web.js +1 -47
  73. package/lib/module/floatingMenu/BrowserToolRuntime.js +1 -146
  74. package/lib/module/floatingMenu/DefaultConfigContext.js +1 -39
  75. package/lib/module/floatingMenu/DevToolsSettingsModal.js +1 -3
  76. package/lib/module/floatingMenu/DevToolsSettingsModal.shared.js +1 -1110
  77. package/lib/module/floatingMenu/DevToolsSettingsModal.web.js +1 -44
  78. package/lib/module/floatingMenu/DevToolsVisibilityContext.js +1 -44
  79. package/lib/module/floatingMenu/FloatingDevTools.js +1 -556
  80. package/lib/module/floatingMenu/FloatingDevTools.web.js +1 -412
  81. package/lib/module/floatingMenu/FloatingMenu.js +1 -366
  82. package/lib/module/floatingMenu/MinimizedToolsContext.js +1 -266
  83. package/lib/module/floatingMenu/MinimizedToolsStack.js +1 -285
  84. package/lib/module/floatingMenu/MinimizedToolsStack.web.js +1 -374
  85. package/lib/module/floatingMenu/ToggleStateManager.js +1 -32
  86. package/lib/module/floatingMenu/ToolHost.js +1 -273
  87. package/lib/module/floatingMenu/ToolOpenerBridge.js +1 -37
  88. package/lib/module/floatingMenu/autoDiscoverPresets.js +1 -467
  89. package/lib/module/floatingMenu/autoExternalSync.js +1 -436
  90. package/lib/module/floatingMenu/defaultConfig.js +1 -158
  91. package/lib/module/floatingMenu/deviceIdentity.js +1 -163
  92. package/lib/module/floatingMenu/dial/DialDevTools.js +1 -900
  93. package/lib/module/floatingMenu/dial/DialDevTools.web.js +1 -891
  94. package/lib/module/floatingMenu/dial/DialHyperspace.js +1 -173
  95. package/lib/module/floatingMenu/dial/DialIcon.js +1 -301
  96. package/lib/module/floatingMenu/dial/DialPagination.js +1 -160
  97. package/lib/module/floatingMenu/dial/DialSnow.js +1 -90
  98. package/lib/module/floatingMenu/dial/OnboardingTooltip.js +1 -240
  99. package/lib/module/floatingMenu/dial/OnboardingTooltip.web.js +2 -142
  100. package/lib/module/floatingMenu/dial/dialUsageStore.js +1 -85
  101. package/lib/module/floatingMenu/dial/onboardingConstants.js +1 -3
  102. package/lib/module/floatingMenu/dial/onboardingConstants.web.js +1 -3
  103. package/lib/module/floatingMenu/externalSyncGate.js +1 -44
  104. package/lib/module/floatingMenu/floatingTools.js +1 -27
  105. package/lib/module/floatingMenu/floatingTools.web.js +1 -3
  106. package/lib/module/floatingMenu/optionalRequire.js +1 -33
  107. package/lib/module/floatingMenu/settingsBus.js +1 -3
  108. package/lib/module/floatingMenu/sync/appSyncAdapter.js +1 -112
  109. package/lib/module/floatingMenu/types.js +1 -3
  110. package/lib/module/floatingMenu/useDesktopSyncStatus.js +1 -25
  111. package/lib/module/floatingMenu/useDesktopSyncStatus.web.js +1 -10
  112. package/lib/module/index.js +1 -41
  113. package/lib/module/index.web.js +1 -36
  114. package/lib/module/reactDevtoolsTypes.js +1 -1
  115. package/lib/module/releaseOptIn.js +1 -0
  116. package/lib/module/telemetry/installPing.js +1 -127
  117. package/lib/module/toolkit.js +1 -62
  118. package/lib/module/toolkitComponents.js +1 -230
  119. package/lib/module/utils/autoDiscoverPresets.web.js +1 -38
  120. package/lib/module/utils/createWebTool.js +1 -17
  121. package/lib/module/utils/createWebTools.js +1 -25
  122. package/lib/module/version.js +1 -14
  123. package/lib/typescript/commonjs/browserRegister.d.ts +9 -1
  124. package/lib/typescript/commonjs/browserRegister.server.d.ts +1 -0
  125. package/lib/typescript/commonjs/earlyHookScript.d.ts +12 -0
  126. package/lib/typescript/commonjs/earlyNetwork.d.ts +52 -0
  127. package/lib/typescript/commonjs/floatingMenu/defaultConfig.d.ts +1 -1
  128. package/lib/typescript/commonjs/index.web.d.ts +1 -0
  129. package/lib/typescript/commonjs/releaseOptIn.d.ts +4 -0
  130. package/lib/typescript/commonjs/version.d.ts +1 -1
  131. package/lib/typescript/module/browserRegister.d.ts +9 -1
  132. package/lib/typescript/module/browserRegister.server.d.ts +1 -0
  133. package/lib/typescript/module/earlyHookScript.d.ts +12 -0
  134. package/lib/typescript/module/earlyNetwork.d.ts +52 -0
  135. package/lib/typescript/module/floatingMenu/defaultConfig.d.ts +1 -1
  136. package/lib/typescript/module/index.web.d.ts +1 -0
  137. package/lib/typescript/module/releaseOptIn.d.ts +4 -0
  138. package/lib/typescript/module/version.d.ts +1 -1
  139. package/lib/web/chunks/chunk-5SGL6QL4.mjs +1 -0
  140. package/lib/web/chunks/chunk-FROELTJH.mjs +1 -0
  141. package/lib/web/chunks/chunk-QZDVCMCT.mjs +1 -2
  142. package/lib/web/chunks/chunk-R7RGRTY5.mjs +1 -2
  143. package/lib/web/index.mjs +2 -3
  144. package/lib/web/register-server.mjs +1 -2
  145. package/lib/web/register.mjs +1 -2
  146. package/lib/web/toolkit.mjs +1 -2
  147. package/package.json +5 -5
  148. package/lib/typescript/commonjs/Buoy.d.ts.map +0 -1
  149. package/lib/typescript/commonjs/browserRegister.d.ts.map +0 -1
  150. package/lib/typescript/commonjs/browserRegister.server.d.ts.map +0 -1
  151. package/lib/typescript/commonjs/floatingMenu/AppHost.d.ts.map +0 -1
  152. package/lib/typescript/commonjs/floatingMenu/AppHost.web.d.ts.map +0 -1
  153. package/lib/typescript/commonjs/floatingMenu/AppHostLogic.d.ts.map +0 -1
  154. package/lib/typescript/commonjs/floatingMenu/AppIcon.d.ts.map +0 -1
  155. package/lib/typescript/commonjs/floatingMenu/AppIcon.web.d.ts.map +0 -1
  156. package/lib/typescript/commonjs/floatingMenu/BrowserToolRuntime.d.ts.map +0 -1
  157. package/lib/typescript/commonjs/floatingMenu/DefaultConfigContext.d.ts.map +0 -1
  158. package/lib/typescript/commonjs/floatingMenu/DevToolsSettingsModal.d.ts.map +0 -1
  159. package/lib/typescript/commonjs/floatingMenu/DevToolsSettingsModal.shared.d.ts.map +0 -1
  160. package/lib/typescript/commonjs/floatingMenu/DevToolsSettingsModal.web.d.ts.map +0 -1
  161. package/lib/typescript/commonjs/floatingMenu/DevToolsVisibilityContext.d.ts.map +0 -1
  162. package/lib/typescript/commonjs/floatingMenu/FloatingDevTools.d.ts.map +0 -1
  163. package/lib/typescript/commonjs/floatingMenu/FloatingDevTools.web.d.ts.map +0 -1
  164. package/lib/typescript/commonjs/floatingMenu/FloatingMenu.d.ts.map +0 -1
  165. package/lib/typescript/commonjs/floatingMenu/MinimizedToolsContext.d.ts.map +0 -1
  166. package/lib/typescript/commonjs/floatingMenu/MinimizedToolsStack.d.ts.map +0 -1
  167. package/lib/typescript/commonjs/floatingMenu/MinimizedToolsStack.web.d.ts.map +0 -1
  168. package/lib/typescript/commonjs/floatingMenu/ToggleStateManager.d.ts.map +0 -1
  169. package/lib/typescript/commonjs/floatingMenu/ToolHost.d.ts.map +0 -1
  170. package/lib/typescript/commonjs/floatingMenu/ToolOpenerBridge.d.ts.map +0 -1
  171. package/lib/typescript/commonjs/floatingMenu/autoDiscoverPresets.d.ts.map +0 -1
  172. package/lib/typescript/commonjs/floatingMenu/autoExternalSync.d.ts.map +0 -1
  173. package/lib/typescript/commonjs/floatingMenu/defaultConfig.d.ts.map +0 -1
  174. package/lib/typescript/commonjs/floatingMenu/deviceIdentity.d.ts.map +0 -1
  175. package/lib/typescript/commonjs/floatingMenu/dial/DialDevTools.d.ts.map +0 -1
  176. package/lib/typescript/commonjs/floatingMenu/dial/DialDevTools.web.d.ts.map +0 -1
  177. package/lib/typescript/commonjs/floatingMenu/dial/DialHyperspace.d.ts.map +0 -1
  178. package/lib/typescript/commonjs/floatingMenu/dial/DialIcon.d.ts.map +0 -1
  179. package/lib/typescript/commonjs/floatingMenu/dial/DialPagination.d.ts.map +0 -1
  180. package/lib/typescript/commonjs/floatingMenu/dial/DialSnow.d.ts.map +0 -1
  181. package/lib/typescript/commonjs/floatingMenu/dial/OnboardingTooltip.d.ts.map +0 -1
  182. package/lib/typescript/commonjs/floatingMenu/dial/OnboardingTooltip.web.d.ts.map +0 -1
  183. package/lib/typescript/commonjs/floatingMenu/dial/dialUsageStore.d.ts.map +0 -1
  184. package/lib/typescript/commonjs/floatingMenu/dial/onboardingConstants.d.ts.map +0 -1
  185. package/lib/typescript/commonjs/floatingMenu/dial/onboardingConstants.web.d.ts.map +0 -1
  186. package/lib/typescript/commonjs/floatingMenu/externalSyncGate.d.ts.map +0 -1
  187. package/lib/typescript/commonjs/floatingMenu/floatingTools.d.ts.map +0 -1
  188. package/lib/typescript/commonjs/floatingMenu/floatingTools.web.d.ts.map +0 -1
  189. package/lib/typescript/commonjs/floatingMenu/optionalRequire.d.ts.map +0 -1
  190. package/lib/typescript/commonjs/floatingMenu/settingsBus.d.ts.map +0 -1
  191. package/lib/typescript/commonjs/floatingMenu/sync/appSyncAdapter.d.ts.map +0 -1
  192. package/lib/typescript/commonjs/floatingMenu/types.d.ts.map +0 -1
  193. package/lib/typescript/commonjs/floatingMenu/useDesktopSyncStatus.d.ts.map +0 -1
  194. package/lib/typescript/commonjs/floatingMenu/useDesktopSyncStatus.web.d.ts.map +0 -1
  195. package/lib/typescript/commonjs/index.d.ts.map +0 -1
  196. package/lib/typescript/commonjs/index.web.d.ts.map +0 -1
  197. package/lib/typescript/commonjs/reactDevtoolsTypes.d.ts.map +0 -1
  198. package/lib/typescript/commonjs/telemetry/installPing.d.ts.map +0 -1
  199. package/lib/typescript/commonjs/toolkit.d.ts.map +0 -1
  200. package/lib/typescript/commonjs/toolkitComponents.d.ts.map +0 -1
  201. package/lib/typescript/commonjs/utils/autoDiscoverPresets.web.d.ts.map +0 -1
  202. package/lib/typescript/commonjs/utils/createWebTool.d.ts.map +0 -1
  203. package/lib/typescript/commonjs/utils/createWebTools.d.ts.map +0 -1
  204. package/lib/typescript/commonjs/version.d.ts.map +0 -1
  205. package/lib/typescript/module/Buoy.d.ts.map +0 -1
  206. package/lib/typescript/module/browserRegister.d.ts.map +0 -1
  207. package/lib/typescript/module/browserRegister.server.d.ts.map +0 -1
  208. package/lib/typescript/module/floatingMenu/AppHost.d.ts.map +0 -1
  209. package/lib/typescript/module/floatingMenu/AppHost.web.d.ts.map +0 -1
  210. package/lib/typescript/module/floatingMenu/AppHostLogic.d.ts.map +0 -1
  211. package/lib/typescript/module/floatingMenu/AppIcon.d.ts.map +0 -1
  212. package/lib/typescript/module/floatingMenu/AppIcon.web.d.ts.map +0 -1
  213. package/lib/typescript/module/floatingMenu/BrowserToolRuntime.d.ts.map +0 -1
  214. package/lib/typescript/module/floatingMenu/DefaultConfigContext.d.ts.map +0 -1
  215. package/lib/typescript/module/floatingMenu/DevToolsSettingsModal.d.ts.map +0 -1
  216. package/lib/typescript/module/floatingMenu/DevToolsSettingsModal.shared.d.ts.map +0 -1
  217. package/lib/typescript/module/floatingMenu/DevToolsSettingsModal.web.d.ts.map +0 -1
  218. package/lib/typescript/module/floatingMenu/DevToolsVisibilityContext.d.ts.map +0 -1
  219. package/lib/typescript/module/floatingMenu/FloatingDevTools.d.ts.map +0 -1
  220. package/lib/typescript/module/floatingMenu/FloatingDevTools.web.d.ts.map +0 -1
  221. package/lib/typescript/module/floatingMenu/FloatingMenu.d.ts.map +0 -1
  222. package/lib/typescript/module/floatingMenu/MinimizedToolsContext.d.ts.map +0 -1
  223. package/lib/typescript/module/floatingMenu/MinimizedToolsStack.d.ts.map +0 -1
  224. package/lib/typescript/module/floatingMenu/MinimizedToolsStack.web.d.ts.map +0 -1
  225. package/lib/typescript/module/floatingMenu/ToggleStateManager.d.ts.map +0 -1
  226. package/lib/typescript/module/floatingMenu/ToolHost.d.ts.map +0 -1
  227. package/lib/typescript/module/floatingMenu/ToolOpenerBridge.d.ts.map +0 -1
  228. package/lib/typescript/module/floatingMenu/autoDiscoverPresets.d.ts.map +0 -1
  229. package/lib/typescript/module/floatingMenu/autoExternalSync.d.ts.map +0 -1
  230. package/lib/typescript/module/floatingMenu/defaultConfig.d.ts.map +0 -1
  231. package/lib/typescript/module/floatingMenu/deviceIdentity.d.ts.map +0 -1
  232. package/lib/typescript/module/floatingMenu/dial/DialDevTools.d.ts.map +0 -1
  233. package/lib/typescript/module/floatingMenu/dial/DialDevTools.web.d.ts.map +0 -1
  234. package/lib/typescript/module/floatingMenu/dial/DialHyperspace.d.ts.map +0 -1
  235. package/lib/typescript/module/floatingMenu/dial/DialIcon.d.ts.map +0 -1
  236. package/lib/typescript/module/floatingMenu/dial/DialPagination.d.ts.map +0 -1
  237. package/lib/typescript/module/floatingMenu/dial/DialSnow.d.ts.map +0 -1
  238. package/lib/typescript/module/floatingMenu/dial/OnboardingTooltip.d.ts.map +0 -1
  239. package/lib/typescript/module/floatingMenu/dial/OnboardingTooltip.web.d.ts.map +0 -1
  240. package/lib/typescript/module/floatingMenu/dial/dialUsageStore.d.ts.map +0 -1
  241. package/lib/typescript/module/floatingMenu/dial/onboardingConstants.d.ts.map +0 -1
  242. package/lib/typescript/module/floatingMenu/dial/onboardingConstants.web.d.ts.map +0 -1
  243. package/lib/typescript/module/floatingMenu/externalSyncGate.d.ts.map +0 -1
  244. package/lib/typescript/module/floatingMenu/floatingTools.d.ts.map +0 -1
  245. package/lib/typescript/module/floatingMenu/floatingTools.web.d.ts.map +0 -1
  246. package/lib/typescript/module/floatingMenu/optionalRequire.d.ts.map +0 -1
  247. package/lib/typescript/module/floatingMenu/settingsBus.d.ts.map +0 -1
  248. package/lib/typescript/module/floatingMenu/sync/appSyncAdapter.d.ts.map +0 -1
  249. package/lib/typescript/module/floatingMenu/types.d.ts.map +0 -1
  250. package/lib/typescript/module/floatingMenu/useDesktopSyncStatus.d.ts.map +0 -1
  251. package/lib/typescript/module/floatingMenu/useDesktopSyncStatus.web.d.ts.map +0 -1
  252. package/lib/typescript/module/index.d.ts.map +0 -1
  253. package/lib/typescript/module/index.web.d.ts.map +0 -1
  254. package/lib/typescript/module/reactDevtoolsTypes.d.ts.map +0 -1
  255. package/lib/typescript/module/telemetry/installPing.d.ts.map +0 -1
  256. package/lib/typescript/module/toolkit.d.ts.map +0 -1
  257. package/lib/typescript/module/toolkitComponents.d.ts.map +0 -1
  258. package/lib/typescript/module/utils/autoDiscoverPresets.web.d.ts.map +0 -1
  259. package/lib/typescript/module/utils/createWebTool.d.ts.map +0 -1
  260. package/lib/typescript/module/utils/createWebTools.d.ts.map +0 -1
  261. package/lib/typescript/module/version.d.ts.map +0 -1
  262. package/lib/web/chunks/chunk-5NZOQR6Q.mjs +0 -2
  263. package/lib/web/chunks/chunk-CGDSLLZF.mjs +0 -2
  264. package/lib/web/chunks/chunk-DCJDUSNR.mjs +0 -2
  265. package/lib/web/chunks/chunk-IDSHFS6G.mjs +0 -2
  266. package/lib/web/chunks/chunk-JOAMJGCS.mjs +0 -2
  267. package/lib/web/chunks/chunk-KYKZ2N52.mjs +0 -2
  268. package/lib/web/chunks/chunk-NGM7JGGS.mjs +0 -2
  269. package/lib/web/chunks/chunk-Z3XWDDIO.mjs +0 -2
  270. package/lib/web/chunks/chunk-ZTGQ6TTY.mjs +0 -2
@@ -1,2 +1 @@
1
- "use client";
2
- var s=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var g=(l=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(l,{get:(o,e)=>(typeof require<"u"?require:o)[e]}):l)(function(l){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+l+'" is not supported')});var p=(l,o)=>{for(var e in o)s(l,e,{get:o[e],enumerable:!0})},d=(l,o,e,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of b(o))!f.call(l,i)&&i!==e&&s(l,i,{get:()=>o[i],enumerable:!(n=a(o,i))||n.enumerable});return l},t=(l,o,e)=>(d(l,o,"default"),e&&d(e,o,"default"));var c=process.env.NODE_ENV!=="production";typeof window<"u"&&typeof globalThis.global>"u"&&(globalThis.global=globalThis);export{g as a,p as b,t as c,c as d};
1
+ "use client";var u=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var s=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var l=(r,e)=>{for(var t in e)u(r,t,{get:e[t],enumerable:true})},i=(r,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of n(e))!f.call(r,o)&&o!==t&&u(r,o,{get:()=>e[o],enumerable:!(a=p(e,o))||a.enumerable});return r},y=(r,e,t)=>(i(r,e,"default"),t&&i(t,e,"default"));var b=process.env.NODE_ENV!=="production";typeof window<"u"&&typeof globalThis.global>"u"&&(globalThis.global=globalThis);export{s as a,l as b,y as c,b as d};
package/lib/web/index.mjs CHANGED
@@ -1,5 +1,4 @@
1
- "use client";
2
- import{$ as Aa,A as ta,Aa as tl,B as oa,Ba as ol,C as na,Ca as nl,D as ia,Da as il,E as ra,Ea as rl,F as sa,Fa as sl,G as aa,Ga as al,H as la,Ha as ll,I as ca,Ia as cl,J as da,Ja as dl,K as ua,Ka as ul,L as pa,La as pl,M as ga,Ma as gl,N as fa,Na as fl,O as ma,Oa as ml,P as ya,Pa as yl,Q as ba,Qa as bl,R as ha,Ra as hl,S as Sa,Sa as Sl,T as Ta,Ta as Tl,U as va,Ua as vl,V as xa,Va as xl,W as wa,Wa as wl,X as Ca,Xa as Cl,Y as Ia,Ya as Il,Z as Da,_ as Ra,a as H,aa as Ma,b as _,ba as Pa,c as Ge,ca as Oa,d as Rt,da as Ea,e as Ke,ea as ka,f as be,fa as za,g as At,ga as La,h as he,ha as Ba,i as rt,ia as Fa,j as Hs,ja as Ha,k as Ns,ka as Na,l as Vs,la as Va,m as _s,ma as _a,n as Ws,na as Wa,o as $s,oa as $a,p as Gs,pa as Ga,q as Ks,qa as Ka,r as Us,ra as Ua,s as js,sa as ja,t as qs,ta as qa,u as Ys,ua as Ya,v as Xs,va as Xa,w as Js,wa as Ja,x as Zs,xa as Za,y as Qs,ya as Qa,z as ea,za as el}from"./chunks/chunk-QZDVCMCT.mjs";import{a as ro,d as L}from"./chunks/chunk-R7RGRTY5.mjs";import{FloatingToolHost as ws}from"@buoy-gg/shared-ui/web/floating";import{LicenseManager as Cs,useLicense as Is}from"@buoy-gg/license/web";import{AccountSetup as Ds}from"@buoy-gg/shared-ui/web";import{useState as no,useMemo as Ne,useCallback as Ve,useEffect as we,useRef as Rs}from"react";import{useSettings as As,getToolLabel as wt,getToolDescription as Ms,getToolColor as Nn}from"@buoy-gg/floating-tools-react/web";import{persistentStorage as Oe,devToolsStorageKeys as Ct,EnvironmentIndicator as Ps,EnvironmentSelectorInline as Os}from"@buoy-gg/shared-ui/web";var Wn=[];function $n(){return[]}function Mt(e=[]){return[...new Map(e.map(t=>[t.id,t])).values()]}function st(e,t){return e.filter(o=>{let i=o.slot||"both";return i==="both"||i===t})}function Gn(e,t){let o=t instanceof Set?t:new Set(t);return e.filter(i=>o.has(i.id))}import{FloatingTool as Pt,FloatingToolDivider as Kn,FloatingToolUserStatus as Ot,getBubbleAnchorPosition as so}from"@buoy-gg/shared-ui/web/floating";import{useState as Q,useEffect as De,useMemo as ct,useRef as dt,useCallback as ut}from"react";import{getDialLayout as ci,getAllIconPositions as di,getGridLineRotations as ui,getIconStaggerInputRange as pi,MAX_DIAL_SLOTS as je,DIAL_ICON_SIZE as gi,dialAnimationConfig as Do,getDialCSSKeyframesString as fi,getDialCSSAnimationStyles as mi,dialColors as B,dialStyles as x,withAlpha as Ro,floatingToolsColors as yi}from"@buoy-gg/floating-tools-react/web";import{persistentStorage as vo,monoFont as Ao,ToolBackground as bi,useToolBackground as hi}from"@buoy-gg/shared-ui/web";import{memo as Un}from"react";import{RasterLayer as jn,scatter as qn,useLoop as Yn,withBgAlpha as Xn}from"@buoy-gg/shared-ui/web";import{Fragment as si,jsx as Ue}from"react/jsx-runtime";var Jn=.94,Zn=6,Qn=2400,at=3,uo=16,ei=Array.from({length:at},(e,t)=>qn(22343^t*40503,uo*4)),ao=["#FFFFFF","#B3D9FF","#8CB3FF"],lo=Math.PI/3,co=14*Math.PI/180;function ti(e){let t=Math.min(5,Math.floor(e*6)),o=e*6-t;return t*lo+co/2+o*(lo-co)}function oi(e){return Math.min(Zn,1/(1-e*Jn))}function ni(e){let t=.15+.85*e*e;return e<.06?t*=e/.06:e>.94&&(t*=(1-e)/.06),Math.min(.7,t)}function ii(e){let t=e/at,o=[],i=12;for(let p=0;p<=i;p++)o.push(p/i);let n=(1-t)%1;n>.001&&n<1-.001&&o.push(n-1e-4,n+1e-4),o.sort((p,u)=>p-u);let r=[],a=[],d=[];for(let p of o){let u=t===0&&p===1?1:(p+t)%1;r.push(p),a.push(oi(u)),d.push(ni(u))}return{input:r,scale:a,opacity:d}}var ri=Array.from({length:at},(e,t)=>ii(t)),po=Un(function({size:t}){let o=Yn(Qn),i=t/2,n=[];for(let r=0;r<at;r++){let a=ei[r],d=ri[r],p=[];for(let u=0;u<uo;u++){let g=ti(a[u*4]),C=(.15+.85*Math.sqrt(a[u*4+1]))*.5*i,f=ao[Math.floor(a[u*4+3]*ao.length)%3],P=i+Math.cos(g)*C,I=i+Math.sin(g)*C,S=.6,b=S*2.4;p.push(Ue(H,{style:{position:"absolute",left:P-b/2,top:I-b/2,width:b,height:b,borderRadius:b/2,backgroundColor:Xn(f,.3)}},`${u}-h`),Ue(H,{style:{position:"absolute",left:P-S/2,top:I-S/2,width:S,height:S,borderRadius:S/2,backgroundColor:f}},u))}n.push(Ue(be.View,{style:{position:"absolute",left:0,top:0,width:t,height:t,opacity:o.interpolate({inputRange:d.input,outputRange:d.opacity}),transform:[{scale:o.interpolate({inputRange:d.input,outputRange:d.scale})}]},pointerEvents:"none",children:Ue(jn,{style:{width:t,height:t},raster:!1,children:p})},r))}return Ue(si,{children:n})});import{useEffect as ai,useState as yo}from"react";import{dialColors as Le,withAlpha as bo}from"@buoy-gg/floating-tools-react/web";import{ARROW_BOTTOM_OFFSET as go,ARROW_HEIGHT as fo,SPACING_GAP as Vl,getScreenCenterY as _l,calculateTooltipPosition as mo,calculateTargetPosition as Wl}from"@buoy-gg/shared-ui/web/floating";import{monoFont as ho}from"@buoy-gg/shared-ui/web";import{jsx as ze,jsxs as To}from"react/jsx-runtime";var So=!1;function li(){if(So||typeof document>"u")return;let e=document.createElement("style");e.textContent=`
1
+ "use client";import{$ as Cn,A as Tn,Aa as In,B as zn,Ba as kn,C as Mn,Ca as Rn,D as An,Da as On,E as En,Ea as Dn,F as Bn,Fa as Fn,G as Pn,Ga as Ln,H as $n,Ha as Wn,I as jn,Ia as Hn,J as Nn,Ja as Kn,K as Un,Ka as Vn,L as _n,La as qn,M as Gn,Ma as Jn,N as Xn,Na as Yn,O as Qn,Oa as Zn,P as ea,Pa as ta,Q as oa,Qa as na,R as aa,Ra as ia,S as ra,Sa as sa,T as la,Ta as ca,U as da,Ua as ua,V as pa,Va as ma,W as ga,Wa as fa,X as ha,Xa as ya,Y as ba,Ya as Sa,Z as va,_ as wa,a as j,aa as xa,b as N,ba as Ca,c as Ze,ca as Ta,d as Wt,da as Ia,e as Pl,ea as za,f as xe,fa as ka,g as jt,ga as Ma,h as De,ha as Ra,i as Ht,ia as Aa,j as Oa,ja as Ea,k as Da,ka as Ba,l as Fa,la as Pa,m as La,ma as $a,n as Wa,na as ja,o as Ha,oa as Na,p as Ka,pa as Ua,q as Va,qa as _a,r as qa,ra as Ga,s as Ja,sa as Xa,t as Ya,ta as Qa,u as Za,ua as ei,v as ti,va as oi,w as ni,wa as ai,x as ii,xa as ri,y as si,ya as li,z as ci,za as di}from"./chunks/chunk-QZDVCMCT.mjs";import{b as ui,c as pi}from"./chunks/chunk-5SGL6QL4.mjs";import{a as Nt,d as et}from"./chunks/chunk-R7RGRTY5.mjs";import{FloatingToolHost as mi}from"@buoy-gg/shared-ui/web/floating";import{LicenseManager as gi,useLicense as fi}from"@buoy-gg/license/web";import{AccountSetup as hi}from"@buoy-gg/shared-ui/web";import{useState as vt,useMemo as Be,useCallback as Fe,useEffect as de,useRef as yi}from"react";import{useSettings as bi,getToolLabel as tt,getToolDescription as Si,getToolColor as Kt}from"@buoy-gg/floating-tools-react/web";import{persistentStorage as Ce,devToolsStorageKeys as ot,EnvironmentIndicator as vi,EnvironmentSelectorInline as wi}from"@buoy-gg/shared-ui/web";var xi=[];function Ci(){return[]}function Ut(e=[]){return[...new Map(e.map(t=>[t.id,t])).values()]}function wt(e,t){return e.filter(o=>{let a=o.slot||"both";return a==="both"||a===t})}function Ti(e,t){let o=t instanceof Set?t:new Set(t);return e.filter(a=>o.has(a.id))}import{FloatingTool as Vt,FloatingToolDivider as Ii,FloatingToolUserStatus as _t,getBubbleAnchorPosition as zi}from"@buoy-gg/shared-ui/web/floating";import{useState as Q,useEffect as Te,useMemo as nt,useRef as at,useCallback as it}from"react";import{getDialLayout as ki,getAllIconPositions as Mi,getGridLineRotations as Ri,getIconStaggerInputRange as Ai,MAX_DIAL_SLOTS as He,DIAL_ICON_SIZE as Oi,dialAnimationConfig as qt,getDialCSSKeyframesString as Ei,getDialCSSAnimationStyles as Di,dialColors as D,dialStyles as v,withAlpha as Gt,floatingToolsColors as Bi}from"@buoy-gg/floating-tools-react/web";import{persistentStorage as Jt,monoFont as Xt,ToolBackground as Fi,useToolBackground as Pi}from"@buoy-gg/shared-ui/web";import{memo as Li}from"react";import{RasterLayer as $i,scatter as Wi,useLoop as ji,withBgAlpha as Hi}from"@buoy-gg/shared-ui/web";import{Fragment as Ni,jsx as Ne}from"react/jsx-runtime";var Ki=.94,Ui=6,Vi=2400,rt=3,Yt=16,_i=Array.from({length:rt},(e,t)=>Wi(22343^t*40503,Yt*4)),Qt=["#FFFFFF","#B3D9FF","#8CB3FF"],Zt=Math.PI/3,eo=14*Math.PI/180;function qi(e){let t=Math.min(5,Math.floor(e*6)),o=e*6-t;return t*Zt+eo/2+o*(Zt-eo)}function Gi(e){return Math.min(Ui,1/(1-e*Ki))}function Ji(e){let t=.15+.85*e*e;return e<.06?t*=e/.06:e>.94&&(t*=(1-e)/.06),Math.min(.7,t)}function Xi(e){let t=e/rt,o=[],a=12;for(let d=0;d<=a;d++)o.push(d/a);let n=(1-t)%1;n>.001&&n<1-.001&&o.push(n-1e-4,n+1e-4),o.sort((d,p)=>d-p);let i=[],l=[],u=[];for(let d of o){let p=t===0&&d===1?1:(d+t)%1;i.push(d),l.push(Gi(p)),u.push(Ji(p))}return{input:i,scale:l,opacity:u}}var Yi=Array.from({length:rt},(e,t)=>Xi(t)),Qi=Li(function({size:e}){let t=ji(Vi),o=e/2,a=[];for(let n=0;n<rt;n++){let i=_i[n],l=Yi[n],u=[];for(let d=0;d<Yt;d++){let p=qi(i[d*4]),m=(.15+.85*Math.sqrt(i[d*4+1]))*.5*o,C=Qt[Math.floor(i[d*4+3]*Qt.length)%3],g=o+Math.cos(p)*m,k=o+Math.sin(p)*m,y=.6,S=y*2.4;u.push(Ne(j,{style:{position:"absolute",left:g-S/2,top:k-S/2,width:S,height:S,borderRadius:S/2,backgroundColor:Hi(C,.3)}},`${d}-h`),Ne(j,{style:{position:"absolute",left:g-y/2,top:k-y/2,width:y,height:y,borderRadius:y/2,backgroundColor:C}},d))}a.push(Ne(xe.View,{style:{position:"absolute",left:0,top:0,width:e,height:e,opacity:t.interpolate({inputRange:l.input,outputRange:l.opacity}),transform:[{scale:t.interpolate({inputRange:l.input,outputRange:l.scale})}]},pointerEvents:"none",children:Ne($i,{style:{width:e,height:e},raster:false,children:u})},n))}return Ne(Ni,{children:a})});import{useEffect as Zi,useState as to}from"react";import{dialColors as Pe,withAlpha as oo}from"@buoy-gg/floating-tools-react/web";import{ARROW_BOTTOM_OFFSET as er,ARROW_HEIGHT as tr,SPACING_GAP as tc,getScreenCenterY as oc,calculateTooltipPosition as or,calculateTargetPosition as nc}from"@buoy-gg/shared-ui/web/floating";import{monoFont as no}from"@buoy-gg/shared-ui/web";import{jsx as Le,jsxs as ao}from"react/jsx-runtime";var io=false;function nr(){if(io||typeof document>"u")return;let e=document.createElement("style");e.textContent=`
3
2
  @keyframes buoyOnboardPulse {
4
3
  0%, 100% { transform: scale(1); }
5
4
  50% { transform: scale(1.02); }
@@ -8,4 +7,4 @@ import{$ as Aa,A as ta,Aa as tl,B as oa,Ba as ol,C as na,Ca as nl,D as ia,Da as
8
7
  0%, 100% { transform: translateY(0); }
9
8
  50% { transform: translateY(-8px); }
10
9
  }
11
- `,document.head.appendChild(e),So=!0}var Et=Le.accent;function lt({title:e,message:t,onDismiss:o,showArrow:i=!0}){let[n,r]=yo(!1),[a,d]=yo(!1);ai(()=>{li();let u=requestAnimationFrame(()=>r(!0));return()=>cancelAnimationFrame(u)},[]);let p={fontFamily:ho,textTransform:"uppercase"};return ze("div",{style:{position:"fixed",left:"50%",bottom:mo(),transform:`translateX(-50%) scale(${n?1:.8})`,opacity:n?1:0,transition:"transform 300ms cubic-bezier(0.34, 1.3, 0.64, 1), opacity 300ms ease",zIndex:10002,pointerEvents:"auto"},children:To("div",{style:{position:"relative",animation:n?"buoyOnboardPulse 3s ease-in-out infinite":"none"},children:[ze("div",{style:{position:"absolute",inset:-4,borderRadius:18,backgroundColor:"#FFFFFF",opacity:.06}}),To("div",{style:{position:"relative",maxWidth:280,backgroundColor:Le.dialBackground,borderRadius:16,border:`1px solid ${Le.dialBorder}`,padding:20,boxShadow:`0 0 20px ${bo(Le.dialShadow,.6)}`,display:"flex",flexDirection:"column",alignItems:"center",gap:8},children:[ze("span",{style:{...p,fontSize:16,fontWeight:900,letterSpacing:1,color:Et,textAlign:"center"},children:e}),ze("span",{style:{fontFamily:ho,fontSize:13,lineHeight:"20px",color:Le.centerText,textAlign:"center"},children:t}),ze("button",{onClick:o,onMouseDown:()=>d(!0),onMouseUp:()=>d(!1),onMouseLeave:()=>d(!1),style:{...p,marginTop:8,borderRadius:8,border:"none",backgroundColor:Et,padding:"10px 24px",fontSize:14,fontWeight:900,letterSpacing:1.5,color:"#000000",cursor:"pointer",opacity:a?.7:1,transform:a?"scale(0.96)":"scale(1)",transition:"transform 100ms ease, opacity 100ms ease"},children:"Got it!"})]}),i&&ze("div",{style:{position:"absolute",left:"50%",bottom:go,marginLeft:-12,width:0,height:0,borderLeft:"12px solid transparent",borderRight:"12px solid transparent",borderTop:`${fo}px solid ${Et}`,filter:`drop-shadow(0 0 10px ${bo(Le.dialShadow,.5)})`,animation:n?"buoyOnboardArrowBounce 1.6s ease-in-out infinite":"none"}})]})})}import{Fragment as xi,jsx as k,jsxs as Se}from"react/jsx-runtime";var Si={x:.5,y:.5},xo="@react_buoy_settings_tooltip_shown",wo=!1;function Ti(){if(wo||typeof document>"u")return;let e=document.createElement("style");e.textContent=fi(),document.head.appendChild(e),wo=!0}var Be=e=>1-Math.pow(1-e,3),kt=e=>e*e*e;function vi({icon:e,index:t,totalIcons:o,position:i,progress:n,onPress:r}){let[a,d]=Q(!1),[p,u]=Q(!1),g=!e.icon&&e.id.startsWith("empty-"),C=!g&&e.unavailable===!0,f=!g&&!C,{icons:P}=Do,I=pi(t,o),S=0;n<=I[1]?S=0:n<=I[2]?S=(n-I[1])/(I[2]-I[1]):S=1,S=Math.max(0,Math.min(1,S));let b=gi,D=P.pressIn.scale,$=S*(p?D:a?1.1:1),T=0;S<=0?T=0:S<=.3?T=S:T=.3+(S-.3)*(.7/.7);let O=i.x*S,F=i.y*S;return k("button",{role:"menuitem","aria-label":g?"Empty slot":e.name,"aria-disabled":!f,tabIndex:f?0:-1,onClick:f?r:void 0,onMouseEnter:()=>f&&d(!0),onMouseLeave:()=>{d(!1),u(!1)},onMouseDown:()=>f&&u(!0),onMouseUp:()=>u(!1),style:{position:"absolute",left:"50%",top:"50%",width:b,height:b,marginLeft:-b/2,marginTop:-b/2,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:f?"pointer":"default",transform:`translate(${O}px, ${F}px) scale(${$})`,opacity:T,transition:a||p?"transform 100ms ease":"none",background:"none",border:"none",padding:0},children:g?k("div",{style:{width:x.emptySlot.dotSize,height:x.emptySlot.dotSize,borderRadius:x.emptySlot.dotSize/2,backgroundColor:B.emptyDotBackground,border:`${x.emptySlot.borderWidth}px solid ${B.emptyDotBorder}`}}):Se(xi,{children:[k("div",{style:{position:"absolute",width:`${x.icon.gradientBgSizePercent}%`,height:`${x.icon.gradientBgSizePercent}%`,borderRadius:x.icon.gradientBgBorderRadius,backgroundColor:"rgba(0, 0, 0, 0.2)",opacity:x.icon.gradientBgOpacity}}),k("div",{style:{position:"absolute",width:`${x.icon.innerGlowSizePercent}%`,height:`${x.icon.innerGlowSizePercent}%`,borderRadius:x.icon.innerGlowBorderRadius,backgroundColor:"rgba(255, 255, 255, 0.02)",opacity:x.icon.innerGlowOpacity}}),k("div",{style:{marginBottom:x.icon.wrapperMarginBottom,display:"flex",alignItems:"center",justifyContent:"center",fontSize:32,filter:a?"brightness(1.2)":"none"},children:e.icon}),k("span",{style:{fontSize:e.name.length>8?Math.max(x.icon.label.fontSize*.7,x.icon.label.fontSize*8/e.name.length):x.icon.label.fontSize,fontWeight:x.icon.label.fontWeight,fontFamily:x.icon.label.fontFamily,color:B.iconLabel,letterSpacing:x.icon.label.letterSpacing,marginTop:x.icon.label.marginTop,textTransform:"uppercase",whiteSpace:"nowrap"},children:e.name}),C&&k("span",{style:{fontSize:x.icon.label.fontSize-1,fontWeight:x.icon.label.fontWeight,fontFamily:x.icon.label.fontFamily,letterSpacing:x.icon.label.letterSpacing,color:yi.muted,textTransform:"uppercase",whiteSpace:"nowrap"},children:"Unavailable"})]})})}function Co({side:e,color:t}){return k("svg",{width:18,height:18,viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(e==="prev"?[[15,18,9,12],[9,12,15,6]]:[[9,18,15,12],[15,12,9,6]]).map(([i,n,r,a],d)=>k("line",{x1:i,y1:n,x2:r,y2:a,stroke:t,strokeWidth:2},d))})}function Io({side:e,disabled:t,onClick:o}){let[i,n]=Q(!1),r=t?B.emptyDotBorder:B.accent;return Se("button",{type:"button","aria-label":`${e==="prev"?"Previous":"Next"} dial page`,disabled:t,onClick:o,onMouseDown:()=>!t&&n(!0),onMouseUp:()=>n(!1),onMouseLeave:()=>n(!1),style:{display:"flex",alignItems:"center",gap:4,padding:"10px 16px",borderRadius:10,border:`1px solid ${B.dialBorder}`,backgroundColor:B.dialBackground,color:t?B.iconLabelMuted:B.centerText,fontSize:12,fontWeight:900,fontFamily:Ao,letterSpacing:1.5,textTransform:"uppercase",cursor:t?"default":"pointer",opacity:t?.4:1,boxShadow:t?"none":`0 0 8px ${Ro(B.dialShadow,.4)}`,transform:i?"scale(0.92)":"scale(1)",transition:"transform 100ms ease"},children:[e==="prev"&&k(Co,{side:"prev",color:r}),e==="prev"?"PREV":"NEXT",e==="next"&&k(Co,{side:"next",color:r})]})}function zt({icons:e,onClose:t,centerLabel:o="MENU",onCenterPress:i,settingsOpen:n=!1,hintsDisabled:r=!1}){let{id:a}=hi(),[d,p]=Q(0),[u,g]=Q(0),[C,f]=Q(0),[P,I]=Q(0),[S,b]=Q(0),[D,M]=Q(1),[$,T]=Q(!1),[O,F]=Q(!1),[w,E]=Q(!1),ee=dt(null),oe=dt(null),j=dt(null),se=dt(!1),{entrance:ae,exit:G,interaction:ne}=Do,Te=mi(),[ve,Ce]=Q(()=>({width:window.innerWidth,height:window.innerHeight}));De(()=>{let z=()=>Ce({width:window.innerWidth,height:window.innerHeight});return window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)},[]);let V=ct(()=>ci({screenWidth:ve.width,maxCircleSize:Math.max(120,Math.min(320,ve.height-96))}),[ve]),pe=ct(()=>ui(),[]),Ee=ct(()=>di(je,V.iconRadius),[V.iconRadius]),[ge,Ie]=Q(0),le=Math.max(1,Math.ceil(e.length/je)),l=Math.min(ge,le-1),R=ct(()=>{let z=l*je,v=[...e.slice(z,z+je)];for(;v.length<je;)v.push({id:`empty-${v.length}`,name:"",icon:null,onPress:()=>{}});return v},[e,l]);De(()=>{Ti()},[]),De(()=>{let z=ae.backdrop.duration,v=ae.dial.rotation.duration,J=ae.centerButton.delay,K=ae.icons.delay,q=ae.icons.duration,Z=performance.now(),Y=fe=>{let W=fe-Z;p(Math.min(1,W/z));let c=Math.min(1,W/400),m=Be(c)*1.1;c>.7&&(m-=(c-.7)*.33),c>=1&&(m=1),g(Math.max(0,Math.min(1.05,m)));let A=Math.min(1,W/v);if(f(Be(A)*360),W>=J){let de=Math.min(1,(W-J)/300),$e=Be(de)*1.15;de>.6&&($e-=(de-.6)*.375),de>=1&&($e=1),I(Math.max(0,Math.min(1.05,$e)))}if(W>=K){let de=Math.min(1,(W-K)/q);b(Be(de))}let te=K+q;W<te?j.current=requestAnimationFrame(Y):(p(1),g(1),f(360),I(1),b(1),E(!0))};return j.current=requestAnimationFrame(Y),()=>{j.current&&cancelAnimationFrame(j.current)}},[]);let X=ut(()=>{if(se.current)return;se.current=!0,F(!0),j.current&&cancelAnimationFrame(j.current);let z=performance.now(),v=G.icons.duration,J=G.centerButton.duration,K=G.dialScale.duration,q=Math.max(J,K),Z=G.backdrop.duration,Y=fe=>{let W=fe-z;if(W<v){let A=kt(W/v);b(1-A),j.current=requestAnimationFrame(Y);return}let c=v;if(W<c+q){b(0);let A=Math.min(1,(W-c)/J),te=Math.min(1,(W-c)/K);I(1-kt(A)),g(1-kt(te)),j.current=requestAnimationFrame(Y);return}let m=c+q;if(W<m+Z){g(0),I(0);let A=(W-m)/Z;p(1-A),j.current=requestAnimationFrame(Y);return}p(0),t()};j.current=requestAnimationFrame(Y)},[G,t]);De(()=>{let z=document.activeElement,v=ee.current;return()=>{z?.isConnected&&(document.activeElement===document.body||v?.contains(document.activeElement))&&z.focus()}},[]),De(()=>{if(n)return;oe.current?.focus();let z=v=>{let J=ee.current;if(J){if(v.key==="Escape")v.preventDefault(),X();else if(v.key==="Tab"){let K=Array.from(J.querySelectorAll('button:not(:disabled):not([aria-disabled="true"]), [tabindex="0"]')).filter(Y=>Y.getClientRects().length>0),q=K[0],Z=K[K.length-1];(!J.contains(document.activeElement)||(v.shiftKey?document.activeElement===q:document.activeElement===Z))&&(v.preventDefault(),(v.shiftKey?Z:q)?.focus())}else if(["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(v.key)){let K=Array.from(J.querySelectorAll('[role="menuitem"]:not([aria-disabled="true"])')),q=K.indexOf(document.activeElement);if(q<0||!K.length)return;v.preventDefault();let Z=v.key==="Home"?0:v.key==="End"?K.length-1:(q+(v.key==="ArrowRight"||v.key==="ArrowDown"?1:-1)+K.length)%K.length;K[Z].focus()}}};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[X,n]);let[ie,ot]=Q(!1);De(()=>{if(r)return;let z=!1,v=setTimeout(async()=>{let J=await vo.getItem(xo);!z&&!J&&ot(!0)},1200);return()=>{z=!0,clearTimeout(v)}},[r]);let _e=ut(()=>{ot(!1),vo.setItem(xo,"true")},[]);De(()=>{n&&ie&&_e()},[n,ie,_e]);let nt=ut(z=>{if(z.id.startsWith("empty-")||se.current)return;let[v,J]=ne.iconSelect.pulse,K=performance.now(),q=150,Z=Y=>{let fe=Y-K;if(fe<q){let W=Be(fe/q);M(1-(1-v.scale)*W),requestAnimationFrame(Z)}else if(fe<q*2){let W=Be((fe-q)/q);M(v.scale+(J.scale-v.scale)*W),requestAnimationFrame(Z)}else M(1)};requestAnimationFrame(Z),setTimeout(()=>{z.onPress(),X()},ne.iconSelect.actionDelay)},[ne.iconSelect,X]),We=ut(z=>{if(se.current)return;let v=Math.max(0,Math.min(z,le-1));v!==l&&Ie(v)},[le,l]),ke=V.buttonSize*x.centerButton.containerRatio,it=V.buttonSize*x.centerButton.borderRatio,It=V.buttonSize*x.centerButton.containerRatio/2+6,Dt=w&&!O;return Se("div",{ref:ee,role:"dialog","aria-label":"Dial Menu","aria-modal":"true",style:{position:"fixed",inset:0,zIndex:1e4},children:[k("button",{type:"button","aria-label":"Close dial menu",tabIndex:0,onClick:X,style:{position:"absolute",inset:0,border:0,padding:0,backgroundColor:B.dialBackdrop,opacity:d}}),Se("div",{style:{position:"absolute",left:"50%",marginLeft:-V.circleSize/2,bottom:80,width:V.circleSize,height:V.circleSize,borderRadius:"50%",backgroundColor:B.dialBackground,border:`${x.circle.borderWidth}px solid ${B.dialBorder}`,boxShadow:`0 0 ${x.circle.shadowRadius}px ${Ro(B.dialShadow,x.circle.shadowOpacity)}`,transform:`scale(${u}) rotate(${C}deg)`,opacity:u>.01?1:0,overflow:"hidden"},children:[k("div",{style:{position:"absolute",inset:0,borderRadius:"50%",backgroundColor:B.dialGradient1,opacity:x.gradientLayers[0].opacity}}),k("div",{style:{position:"absolute",inset:0,top:"30%",left:"30%",borderRadius:"50%",backgroundColor:B.dialGradient2,opacity:x.gradientLayers[1].opacity}}),k("div",{style:{position:"absolute",inset:0,top:"50%",left:"50%",borderRadius:"50%",backgroundColor:B.dialGradient3,opacity:x.gradientLayers[2].opacity}}),pe.map(z=>k("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:x.grid.lineHeight,transform:`rotate(${z}deg)`,transformOrigin:"center"},children:["left","right"].map(v=>k("div",{style:{position:"absolute",top:0,[v]:0,width:`calc(50% - ${It}px)`,height:x.grid.lineHeight,backgroundColor:B.dialGridLine}},v))},z)),k("div",{"data-testid":"dial-background","data-background":a,style:{position:"absolute",inset:0,pointerEvents:"none"},children:a==="hyperspace"?k(po,{size:V.circleSize}):k(bi,{focus:Si})}),R.map((z,v)=>k(vi,{icon:z,index:v,totalIcons:R.length,position:Ee[v],progress:S,onPress:()=>nt(z)},v)),Se("div",{style:{position:"absolute",left:"50%",top:"50%",width:ke,height:ke,marginLeft:-ke/2,marginTop:-ke/2,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:B.hubHalo,borderRadius:V.buttonSize,overflow:"hidden",transform:`scale(${P*D})`,opacity:P>.01?1:0},children:[k("div",{style:{position:"absolute",inset:0,backgroundColor:B.dialGradient1,opacity:.5,borderRadius:V.buttonSize}}),k("div",{style:{position:"absolute",inset:0,top:"20%",left:"20%",backgroundColor:B.dialGradient2,opacity:.3,borderRadius:V.buttonSize}}),k("div",{style:{position:"absolute",inset:0,top:"40%",left:"40%",backgroundColor:B.dialGradient3,opacity:.2,borderRadius:V.buttonSize}}),k("div",{style:{width:it,height:it,borderRadius:V.buttonSize*x.centerButton.borderRadiusRatio,backgroundColor:B.hubFill,display:"flex",alignItems:"center",justifyContent:"center"},children:k("button",{ref:oe,type:"button","aria-label":n?"Close settings":"Open settings",disabled:!i,onClick:i,onMouseEnter:()=>T(!0),onMouseLeave:()=>T(!1),style:{border:0,padding:0,background:"transparent",width:V.buttonSize,height:V.buttonSize,borderRadius:V.buttonSize/2,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:i?"pointer":"default",transform:$?`scale(${ne.centerHover.scale})`:"scale(1)",transition:`transform ${ne.centerHover.duration}ms ease`,animation:Dt&&!$?Te.pulse:"none"},children:n?Se("span",{style:{display:"flex",flexDirection:"column",alignItems:"center",fontSize:x.centerButton.text.fontSize-2,fontWeight:x.centerButton.text.fontWeight,fontFamily:x.centerButton.text.fontFamily,color:B.centerText,letterSpacing:x.centerButton.text.letterSpacing,textAlign:"center",textShadow:`0 0 4px ${B.centerTextGlow}`,textTransform:"uppercase",lineHeight:1.2},children:[k("span",{style:{marginBottom:-2},children:"CLOSE"}),k("span",{style:{marginTop:-2},children:"SETTINGS"})]}):k("span",{style:{fontSize:x.centerButton.text.fontSize,fontWeight:x.centerButton.text.fontWeight,fontFamily:x.centerButton.text.fontFamily,color:B.centerText,letterSpacing:x.centerButton.text.letterSpacing,textAlign:"center",textShadow:`0 0 4px ${B.centerTextGlow}`,textTransform:"uppercase"},children:o})})})]})]}),le>1&&Se("div",{style:{position:"absolute",left:"50%",marginLeft:-V.circleSize/2,top:"calc(100% - 64px)",width:V.circleSize,display:"flex",alignItems:"center",justifyContent:"space-between",opacity:Math.min(1,u),transform:`scale(${Math.min(1,u)})`},children:[k(Io,{side:"prev",disabled:l<=0,onClick:()=>We(l-1)}),Se("span",{style:{padding:"6px 12px",fontSize:13,fontWeight:900,fontFamily:Ao,letterSpacing:2,color:B.centerText,textShadow:`0 0 6px ${B.centerTextGlow}`},children:[String(l+1).padStart(2,"0"),Se("span",{style:{color:B.iconLabelMuted,textShadow:"none"},children:[" / ",String(le).padStart(2,"0")]})]}),k(Io,{side:"next",disabled:l>=le-1,onClick:()=>We(l+1)})]}),ie&&!n&&k(lt,{title:"Welcome to Buoy!",message:"Tap the center button to configure and add tools to your dial menu.",onDismiss:_e,showArrow:!1})]})}import{persistentStorage as Mo,devToolsStorageKeys as wi}from"@buoy-gg/shared-ui/web";import{recordUsage as Ci,pruneUsage as Ii}from"@buoy-gg/floating-tools-core/web";var Po=wi.dial.usage(),Fe={},Oo=!1,pt=null;function Eo(){return pt||(pt=(async()=>{try{let e=await Mo.getItem(Po);if(e){let t=JSON.parse(e);t&&typeof t=="object"&&(Fe=t)}}catch{}finally{Oo=!0}})(),pt)}Eo();function ko(e){return e.map((t,o)=>({id:t,index:o,lastUsed:Fe[t]?.lastUsed??0})).sort((t,o)=>o.lastUsed-t.lastUsed||t.index-o.index).map(({id:t})=>t)}async function zo(e){if(!e)return;Oo||await Eo();let t=Math.max(Date.now(),...Object.values(Fe).map(o=>o.lastUsed+1));Fe=Ii(Ci(Fe,e,t),t);try{await Mo.setItem(Po,JSON.stringify(Fe))}catch{}}import{useCallback as dr,useMemo as Zo}from"react";import{persistentStorage as ur}from"@buoy-gg/shared-ui/web";import{useState as re,useEffect as Ae,useCallback as yt,useMemo as ft}from"react";import{settingsEventBus as qe}from"@buoy-gg/floating-tools-core/web";import{useSyncExternalStore as Di}from"react";import{getRegisteredToolModule as Ri}from"@buoy-gg/shared-ui/web";var Ai=()=>()=>{},Mi=()=>null;function Lo(){let e=Ri("@buoy-gg/external-sync");return Di(e?.subscribeSyncStatus??Ai,()=>e?.getSyncStatus?.()??null,Mi)}import{SentryIcon as Fi,WifiCircuitIcon as Hi,ImageOverlayIcon as Ni,RenderCountIcon as Vi,Info as Bt,Layers as _i,ChevronRightIcon as No,ChevronDown as Vo,getStorageBackendType as Wi,getUseLicense as $i,persistentStorage as Me,Trash2 as Gi,CheckCircle2 as _o,LicenseEntryModal as Ki,BackgroundSwitcher as Ui,night as y,NightCard as Re,NightRows as Ft,NightSectionLabel as ji,NightFootnote as Wo,NightSwitch as $o,NightButton as Go,NightSegmented as qi,NightBadge as me,NightSeparator as Yi,monoFont as Ko}from"@buoy-gg/shared-ui/web";import{EnvIcon as Uo,StorageIcon as Xi,RoutesIcon as Ji,NetworkIcon as Zi,QueryIcon as Qi,HighlighterIcon as er,ReduxIcon as tr,EventsIcon as or}from"@buoy-gg/floating-tools-core/web";import Pi,{createContext as Oi,useContext as Ei}from"react";import{jsx as ki}from"react/jsx-runtime";var Bo=Oi({});function Fo({children:e,defaultFloatingTools:t,defaultDialTools:o}){let i=Pi.useMemo(()=>({defaultFloatingTools:t,defaultDialTools:o}),[t,o]);return ki(Bo.Provider,{value:i,children:e})}function Lt(){return Ei(Bo)}import zi from"react";import{toolTheme as Li}from"@buoy-gg/shared-ui/web";import{jsx as Ho}from"react/jsx-runtime";function Bi({label:e,size:t,color:o=Li.colors.text}){let i=Math.max(Array.from(e.replace(/[\uFE00-\uFE0F\u200D]/g,"")).length,1),n=i<=2?t:t*1.6,r=Math.max(7,Math.min(t*(i===1?.7:.62),n/(.62*i)));return Ho("span",{style:{display:"inline-flex",minWidth:t,maxWidth:n,height:t,alignItems:"center",justifyContent:"center",color:o,fontSize:r,fontWeight:800,letterSpacing:.5,whiteSpace:"nowrap",overflow:"hidden"},children:e})}function gt(e,t){return e==null?e:typeof e=="function"?zi.createElement(e,{slot:t.slot,size:t.size,state:t.state,actions:t.actions}):typeof e=="string"||typeof e=="number"?Ho(Bi,{label:String(e),size:t.size,color:t.color}):e}import{JsModal as nr,devToolsStorageKeys as Ht}from"@buoy-gg/shared-ui/web";import{useSafeAreaInsets as ir}from"@buoy-gg/shared-ui/web";import{Fragment as Ye,jsx as s,jsxs as N}from"react/jsx-runtime";var mt="@react_buoy_dev_tools_settings",rr=6,bt=e=>{let t=rr,o={};for(let[i,n]of Object.entries(e))n&&t>0?(o[i]=!0,t-=1):o[i]=!1;return o},sr=(e,t)=>{let{userStatus:o,environment:i,...n}=e,r=t?Object.entries(n).filter(([a])=>t.includes(a)):Object.entries(n);return{...Object.fromEntries(r),environment:i??!1}},Yo=(e,t,o)=>{if(!t)return e;let i={...e.dialTools,...t.dialTools??{}},n=o?.allowedDialKeys?Object.entries(i).filter(([a])=>o.allowedDialKeys?.includes(a)):Object.entries(i);return{dialTools:bt(Object.fromEntries(n)),floatingTools:sr({...e.floatingTools,...t.floatingTools??{}},o?.allowedFloatingKeys),globalSettings:{enableSharedModalDimensions:!1,expandableWindowControls:!0,...t.globalSettings??{}}}},ar=(e=[],t,o)=>{let i={},n={},r=new Set(t??[]),a=new Set(o??[]),d=!o||o.length===0;for(let p of e){let{id:u,slot:g="both"}=p;(g==="dial"||g==="both")&&(i[u]=d?!0:a.has(u)),(g==="row"||g==="both")&&(n[u]=r.has(u))}return{dialTools:bt(i),floatingTools:{...n,environment:r.has("environment")},globalSettings:{enableSharedModalDimensions:!1,expandableWindowControls:!0}}},Xo=({visible:e,onClose:t,onSettingsChange:o,initialSettings:i,availableApps:n=[],storage:r=Me,zIndex:a})=>{let{defaultFloatingTools:d,defaultDialTools:p}=Lt(),u=ft(()=>ar(n,d,p),[n,d,p]),g=ft(()=>Object.keys(u.dialTools),[u]),C=ft(()=>Object.keys(u.floatingTools).filter(c=>c!=="environment"),[u]),[f,P]=re(i||Xe||u),[I,S]=re(Nt??"floating"),[b,D]=re(Nt!==null),[M,$]=re(new Set),[T,O]=re(!1),[F,w]=re(!1);Ae(()=>{let c=requestAnimationFrame(()=>w(!0));return()=>cancelAnimationFrame(c)},[]);let E=Lo();Ae(()=>{(async()=>{try{let m=await Me.getItem(Ht.settings.activeTab());if(m&&["floating","settings","pro"].includes(m)){let A=m;Nt=A,S(te=>te===A?te:A)}}catch{}finally{D(!0)}})()},[]),Ae(()=>{b&&Me.setItem(Ht.settings.activeTab(),I).catch(c=>{console.warn("Failed to save settings active tab:",c)})},[I,b]);let oe=$i()?.(),j=oe?.isPro??!1,se=!j&&oe?.licenseKey?oe.error:null,ae=oe?.errorKind==="transport",[G,ne]=re(jo),[Te,ve]=re(!1),[Ce,V]=re(!1),[pe,Ee]=re(!1),[ge,Ie]=re([]),[le,l]=re(!1),R=ir(),X=At.get("window").height,ie=At.get("window").width,ot=Math.floor(X*.33),_e=Math.min(ie-32,400),nt=yt(async()=>{try{let c=await r.getItem(mt);if(c){let m=JSON.parse(c),A=Yo(u,m,{allowedDialKeys:g,allowedFloatingKeys:C});Xe=A,P(te=>qo(te,A)?te:A);return}Xe=u,P(m=>qo(m,u)?m:u)}catch(c){console.error("Failed to load dev tools settings:",c),P(u)}},[u,g,C,r]);Ae(()=>{nt()},[nt]),Ae(()=>{Wi().then(c=>{jo=c,ne(m=>m===c?m:c)})},[]),Ae(()=>{pe&&(l(!0),Me.getAllKeys().then(c=>{Ie(c.sort())}).catch(()=>{Ie([])}).finally(()=>{l(!1)}))},[pe]);let We=async c=>{try{let m={...c,dialTools:bt(c.dialTools)};await r.setItem(mt,JSON.stringify(m)),Xe=m,P(m),o?.(m),qe.emit(m)}catch(m){console.error("Failed to save dev tools settings:",m)}},ke=c=>{let m={...f,floatingTools:{...f.floatingTools,[c]:!f.floatingTools[c]}};We(m)},it=c=>{let m={...f,globalSettings:{...f.globalSettings,[c]:!f.globalSettings?.[c]}};We(m)},It=async()=>{ve(!0),V(!1);try{await Me.clear(),V(!0),P(u),r!==Me&&await r.setItem(mt,JSON.stringify(u)),o?.(u),qe.emit(u),setTimeout(()=>V(!1),2e3)}catch(c){console.error("Failed to clear storage:",c)}finally{ve(!1)}},Dt=yt(c=>{},[]),z=c=>{let m=n.find(A=>A.id===c);return m?.description?m.description:c==="environment"?"Environment badge.":""},v=c=>c==="environment"?"Env Badge":n.find(A=>A.id===c)?.name??c.toUpperCase().replace(/_/g," "),J=c=>{if(!F)return null;switch(c){case"query":return s(Qi,{size:18});case"env":return s(Uo,{size:18});case"sentry":return s(Fi,{size:18,color:"#9945FF"});case"storage":return s(Xi,{size:18,bgColor:y.color.surface});case"wifi":case"query-wifi-toggle":return s(Hi,{size:18,colorPreset:"green",strength:4,noBackground:!0});case"route-events":return s(Ji,{size:18,bgColor:y.color.surface});case"network":return s(Zi,{size:18});case"environment":return s(Uo,{size:18});case"debug-borders":return s(_i,{size:18,color:y.color.accent});case"highlight-updates":return s(Vi,{size:18,color:y.color.accent});case"highlight-updates-modal":return s(er,{size:18});case"redux":return s(tr,{size:18});case"image-overlay":return s(Ni,{size:18});case"events":return s(or,{size:18});case"zustand":try{let{ZustandIcon:m}=ro("@buoy-gg/zustand/web");return s(m,{size:18})}catch{return s(Bt,{size:18,color:y.color.textSecondary})}case"jotai":try{let{JotaiIcon:m}=ro("@buoy-gg/jotai/web");return s(m,{size:18})}catch{return s(Bt,{size:18,color:y.color.textSecondary})}default:{let m=n.find(A=>A.id===c);return m?.icon!=null?gt(m.icon,{slot:"row",size:18,color:m.color}):s(Bt,{size:18,color:y.color.textSecondary})}}},K=(c,m,A,te)=>{let de=z(c);return N(Ge,{activeOpacity:A?1:.7,onPress:()=>!A&&te(),accessibilityLabel:v(c),accessibilityRole:"button",style:[h.toolRow,A&&h.rowDisabled],children:[s(H,{style:h.toolIconSlot,children:J(c)}),N(H,{style:h.rowInfo,children:[N(_,{style:h.rowLabel,children:[v(c),A?" \xB7 max 6":""]}),de?s(_,{style:h.rowCaption,numberOfLines:1,children:de}):null]}),s($o,{value:m,disabled:A,onValueChange:()=>te()})]},c)},q=c=>{$(m=>{let A=new Set(m);return A.has(c)?A.delete(c):A.add(c),A})},Z=(c,m,A,te,de)=>{let $e=f.globalSettings?.[c]??!1,io=M.has(c);return N(H,{children:[N(Ge,{activeOpacity:.7,onPress:()=>q(c),accessibilityLabel:m,style:h.settingRow,children:[N(H,{style:h.rowInfo,children:[s(_,{style:h.rowLabel,children:m}),s(_,{style:h.rowCaption,numberOfLines:io?0:1,children:A})]}),s($o,{value:$e,onValueChange:()=>it(c)})]}),io&&N(H,{style:h.settingRowBody,children:[s(_,{style:h.settingRowBodyText,children:te}),s(_,{style:h.settingRowBodyHint,children:de})]})]},c)},Y=(c,m,A)=>N(H,{children:[s(ji,{children:c}),m,A]}),fe=G==="filesystem"?s(me,{label:"File System",tone:"accent"}):G==="asyncstorage"?s(me,{label:"Async Storage",tone:"warning"}):G==="localstorage"?s(me,{label:"Local Storage",tone:"accent"}):G==="memory"?s(me,{label:"Memory",tone:"danger"}):s(me,{label:"Loading\u2026",tone:"neutral"}),W=()=>N(H,{style:h.container,children:[N(Rt,{style:h.scrollContent,showsVerticalScrollIndicator:!1,contentContainerStyle:h.scrollContainer,children:[I==="floating"&&s(Ye,{children:Y("Floating Tools",s(Re,{glass:!0,children:s(Ft,{children:Object.entries(f.floatingTools).map(([c,m])=>K(c,m,!1,()=>ke(c)))})}),s(Wo,{children:"Tools switched on here appear in the floating bubble row."}))}),I==="settings"&&N(Ye,{children:[Y("Background",s(Re,{glass:!0,padded:!0,children:s(Ui,{embedded:!0})})),Y("Storage",N(Re,{glass:!0,children:[N(Ge,{activeOpacity:.7,onPress:()=>Ee(!pe),accessibilityLabel:"Storage Type",style:h.settingRow,children:[s(H,{style:h.rowInfo,children:s(_,{style:h.rowLabel,children:"Storage Type"})}),fe,pe?s(Vo,{size:16,color:y.color.textTertiary}):s(No,{size:16,color:y.color.textTertiary})]}),pe&&N(Ye,{children:[N(H,{style:h.settingRowBody,children:[s(_,{style:h.settingRowBodyText,children:G==="filesystem"?"Settings persist independently and survive AsyncStorage.clear() calls during logout.":G==="asyncstorage"?"Settings may be lost if AsyncStorage is cleared during logout.":G==="localstorage"?"Settings are saved in this browser. Clearing site data removes them.":G==="memory"?"Settings are stored in memory only and will be lost on app restart.":"Checking storage backend\u2026"}),G==="asyncstorage"&&s(_,{style:[h.settingRowBodyText,h.bodyWarning],children:"Install expo-file-system to persist settings through logout flows."}),G==="memory"&&s(_,{style:[h.settingRowBodyText,h.bodyDanger],children:"No persistent storage available \u2014 install expo-file-system (best) or @react-native-async-storage/async-storage."})]}),s(Yi,{}),N(H,{style:h.storageExpanded,children:[N(H,{style:h.storageExpandedHeader,children:[s(_,{style:h.storageExpandedTitle,children:"SAVED SETTINGS"}),s(_,{style:h.storageExpandedCount,children:le?"\u2026":`${ge.length} keys`})]}),le?s(_,{style:h.storageKeyEmpty,children:"Loading\u2026"}):ge.length===0?s(_,{style:h.storageKeyEmpty,children:"No settings saved yet"}):s(Rt,{style:h.storageKeysList,nestedScrollEnabled:!0,showsVerticalScrollIndicator:!0,children:ge.map(c=>s(H,{style:h.storageKeyItem,children:s(_,{style:h.storageKeyText,numberOfLines:1,children:c.replace("@react_buoy_","")})},c))})]}),s(H,{style:h.cardButtonWrap,children:s(Go,{label:Ce?"Cleared":Te?"Clearing\u2026":"Clear All Settings",variant:Ce?"secondary":"destructive",size:"md",disabled:Te,onPress:It,icon:Ce?s(_o,{size:15,color:y.color.accent}):s(Gi,{size:15,color:Te?y.color.textTertiary:y.color.danger})})})]})]})),E&&E.state!=="idle"&&Y("Desktop Sync",N(Re,{glass:!0,children:[N(Ge,{activeOpacity:.7,onPress:()=>q("desktopSync"),accessibilityLabel:"Buoy Desktop",style:h.settingRow,children:[s(H,{style:h.rowInfo,children:s(_,{style:h.rowLabel,children:"Buoy Desktop"})}),E.state==="connected"?s(me,{label:"Connected",tone:"accent"}):E.state==="connecting"?s(me,{label:"Connecting\u2026",tone:"neutral"}):s(me,{label:"Retrying",tone:"warning"}),M.has("desktopSync")?s(Vo,{size:16,color:y.color.textTertiary}):s(No,{size:16,color:y.color.textTertiary})]}),M.has("desktopSync")&&N(H,{style:h.settingRowBody,children:[N(_,{style:h.settingRowBodyText,children:[E.state==="connected"?"Streaming tool data to Buoy Desktop at ":"Trying to reach Buoy Desktop at ",s(_,{style:h.footnoteMono,children:E.targetURL??"(unknown URL)"}),E.state!=="connected"&&" \u2014 is the desktop app running? Override with the externalSync socketURL option if it runs elsewhere."]}),E.state==="retrying"&&E.lastError&&N(_,{style:[h.settingRowBodyText,h.bodyWarning],children:["Last error: ",E.lastError]})]})]})),Y("Modal Behavior",s(Re,{glass:!0,children:N(Ft,{children:[Z("enableSharedModalDimensions","Shared Modal Size","Sync dimensions across all tools","When enabled, all tool modals will share the same size and position. Resizing one modal will affect all others. When disabled, each tool remembers its own size and position independently.","Keep OFF for the best experience. This allows you to customize each tool's modal size separately."),he.OS!=="web"?Z("expandableWindowControls","Expand Controls","iPad-style expandable window buttons","When enabled, the window control buttons (minimize, toggle mode, close) start as small dots and expand into larger, easy-to-tap buttons when pressed. When disabled, buttons are directly tappable at their small size.","Keep ON for touch devices where the small buttons are hard to press. Turn OFF if you prefer direct single-tap access."):null]})}))]}),I==="pro"&&N(Ye,{children:[Y("License",s(Re,{glass:!0,children:N(H,{style:h.settingRow,children:[s(H,{style:h.rowInfo,children:s(_,{style:h.rowLabel,children:"License Status"})}),s(H,{testID:"buoy-settings-license-status",accessibilityLabel:j?"License: Active":"License: Free",children:j?s(me,{label:"Active",tone:"accent"}):s(me,{label:"Free",tone:"neutral"})})]})}),s(Wo,{children:j?"You have full access to all Buoy DevTools features.":se?ae?`Couldn't reach the license server (${se}). A VPN or corporate proxy can block buoy.gg \u2014 turn it off and reload. Your key hasn't been rejected.`:`License check failed: ${se}.`:"Upgrade to Pro to unlock all features and support development."})),!j&&N(Ye,{children:[Y("Pro Features",s(Re,{glass:!0,children:s(Ft,{children:["Advanced Settings","Priority Support"].map(c=>N(H,{style:h.featureRow,children:[s(_o,{size:16,color:y.color.accent}),s(_,{style:h.rowLabel,children:c})]},c))})})),s(Go,{label:"Upgrade to Pro",variant:"primary",size:"lg",onPress:()=>O(!0)})]})]})]}),s(Ki,{visible:T,onClose:()=>O(!1),onSuccess:()=>O(!1)})]});return s(nr,{visible:e,onClose:t,zIndex:a,variant:"night",header:{showToggleButton:!1,customContent:s(H,{style:h.headerRow,children:s(qi,{glass:!0,tabs:[{key:"floating",label:"Floating"},{key:"settings",label:"Settings"},{key:"pro",label:"Pro"}],activeKey:I,onChange:c=>S(c)})})},initialMode:"bottomSheet",onModeChange:Dt,persistenceKey:Ht.settings.root(),enablePersistence:!0,maxHeight:X-R.top,initialHeight:ot,initialFloatingPosition:{x:(ie-_e)/2,y:R.top+20},enableGlitchEffects:!0,children:W()})},lr={dialTools:{},floatingTools:{environment:!1},globalSettings:{enableSharedModalDimensions:!1}},cr=(e,t)=>{let o=new Set(e??[]),i=new Set(t??[]),n={};for(let a of i)n[a]=!0;let r={environment:o.has("environment")};for(let a of o)a!=="environment"&&(r[a]=!0);return{dialTools:bt(n),floatingTools:r,globalSettings:{enableSharedModalDimensions:!1}}},Xe=null,Nt=null,jo=null,qo=(e,t)=>JSON.stringify(e)===JSON.stringify(t);qe.addListener(e=>{e&&(Xe=e)});var Jo=()=>{let{defaultFloatingTools:e,defaultDialTools:t}=Lt(),o=ft(()=>!e&&!t?lr:cr(e,t),[e,t]),[i,n]=re(o),r=yt(async()=>{try{let d=await Me.getItem(mt);if(d){let p=JSON.parse(d),u=Yo(o,p);n(u);return}n(o)}catch(d){console.error("Failed to load dev tools settings:",d),n(o)}},[o]);Ae(()=>{r();let d=qe.addListener(p=>{try{p&&n(p)}catch{}});return()=>{d()}},[r]);let a=yt(()=>{r()},[r]);return{settings:i,refreshSettings:a}},h=rt.create({container:{flex:1,backgroundColor:"transparent"},headerRow:{flexDirection:"row",alignItems:"center",paddingLeft:y.gutter,paddingRight:y.gutter,paddingBottom:8},scrollContent:{flex:1},scrollContainer:{paddingHorizontal:y.gutter,paddingTop:8,paddingBottom:24,gap:y.groupGap},toolRow:{flexDirection:"row",alignItems:"center",gap:12,paddingHorizontal:y.rowPadH,paddingVertical:12},settingRow:{flexDirection:"row",alignItems:"center",gap:10,paddingHorizontal:y.rowPadH,paddingVertical:y.rowPadV,minHeight:52},featureRow:{flexDirection:"row",alignItems:"center",gap:10,paddingHorizontal:y.rowPadH,paddingVertical:12},rowDisabled:{opacity:.4},toolIconSlot:{width:24,alignItems:"center"},rowInfo:{flex:1,gap:2},rowLabel:{color:y.color.text,fontSize:y.font.row,fontWeight:"500"},rowCaption:{color:y.color.textTertiary,fontSize:y.font.label},settingRowBody:{paddingHorizontal:y.rowPadH,paddingBottom:y.rowPadV,gap:6},settingRowBodyText:{color:y.color.textSecondary,fontSize:y.font.caption,lineHeight:y.font.caption*1.45},settingRowBodyHint:{color:y.color.textTertiary,fontSize:y.font.caption,lineHeight:y.font.caption*1.45},bodyWarning:{color:y.color.warning},bodyDanger:{color:y.color.danger},cardButtonWrap:{paddingHorizontal:y.cardPad,paddingTop:10,paddingBottom:y.cardPad},storageExpanded:{paddingHorizontal:y.rowPadH,paddingVertical:12,gap:8},storageExpandedHeader:{flexDirection:"row",alignItems:"center"},storageExpandedTitle:{flex:1,color:y.color.textSecondary,fontSize:y.font.micro,fontWeight:"600",letterSpacing:.5},storageExpandedCount:{color:y.color.textTertiary,fontSize:y.font.micro},storageKeysList:{maxHeight:150},storageKeyItem:{backgroundColor:y.color.glassElevated,borderRadius:y.radius.segment,paddingHorizontal:10,paddingVertical:7,marginBottom:4},storageKeyText:{color:y.color.textSecondary,fontSize:y.font.micro,fontFamily:Ko},storageKeyEmpty:{color:y.color.textTertiary,fontSize:y.font.caption,fontStyle:"italic"},footnoteMono:{fontFamily:Ko,fontSize:y.font.label,color:y.color.textSecondary}});import{jsx as Qo}from"react/jsx-runtime";var pr=[];function Vt({visible:e,onClose:t,availableTools:o=pr,defaultFloatingTools:i,defaultDialTools:n,storage:r=ur,onSettingsChange:a}){let d=Zo(()=>({getItem:async g=>r.getItem(g),setItem:async(g,C)=>r.setItem(g,C)}),[r]),p=Zo(()=>o.map(g=>({...g,name:g.name??g.id,icon:typeof g.icon=="function"?C=>g.icon(C.size):g.icon})),[o]),u=dr(g=>{a?.(g)},[a]);return Qo(Fo,{defaultFloatingTools:i,defaultDialTools:n,children:Qo(Xo,{visible:e,onClose:t,zIndex:11e3,availableApps:p,storage:d,onSettingsChange:u})})}import{persistentStorage as dn}from"@buoy-gg/shared-ui/web";import{createContext as wr,useCallback as xe,useContext as Cr,useEffect as Wt,useMemo as Ir,useRef as Qe,useState as un}from"react";var en=(e,t,o)=>{if(t.singleton){let n=e.find(r=>r.id===t.id);if(n){let r=n.minimized??!1;return{instanceId:n.instanceId,wasMinimized:r,apps:[...e.filter(a=>a.instanceId!==n.instanceId),{...n,minimized:!1}]}}}let i=o();return{instanceId:i,wasMinimized:!1,apps:[...e,{...t,instanceId:i}]}};import{createContext as gr,useCallback as tn,useContext as fr,useEffect as vt,useMemo as mr,useRef as rn,useState as ht}from"react";import{JsModal as yr,ModalHeader as Je,HeaderSearchButton as br,TickProvider as hr,devToolsStorageKeys as on,buoyColors as nn,gameUIColors as _t}from"@buoy-gg/shared-ui/web";import{jsx as ue,jsxs as Tt}from"react/jsx-runtime";var Ze=()=>{},Sr={search:"",isSearchActive:!1,clearSearch:Ze,close:Ze,minimize:Ze,showToast:Ze,setHeaderOverride:Ze},sn=gr(null);function an(){return fr(sn)??Sr}function Tr(e,t){let{setHeaderOverride:o}=an();vt(()=>(o(e),()=>o(null)),t)}var ln=2200,vr={success:_t.success,error:_t.error,info:_t.info};function xr({message:e,type:t,nonce:o}){let i=rn(new be.Value(0)).current;vt(()=>{i.setValue(0),be.sequence([be.timing(i,{toValue:1,duration:150,useNativeDriver:!0}),be.delay(ln-450),be.timing(i,{toValue:0,duration:300,useNativeDriver:!0})]).start()},[o,i]);let n=vr[t];return Tt(be.View,{pointerEvents:"none",style:[St.toast,{opacity:i,borderColor:n+"60"}],children:[ue(H,{style:[St.toastDot,{backgroundColor:n}]}),ue(_,{style:St.toastText,numberOfLines:2,children:e})]})}function cn({app:e,config:t,visible:o,zIndex:i,onClose:n,onMinimize:r,initialModalState:a,enableSharedModalDimensions:d,bodyProps:p}){let u=e.component,[g,C]=ht(!1),[f,P]=ht(""),[I,S]=ht(null),[b,D]=ht(null),M=rn(null),$=tn(()=>{C(!1),P("")},[]),T=tn((ae,G="info")=>{M.current&&clearTimeout(M.current),D(ne=>({message:ae,type:G,nonce:(ne?.nonce??0)+1})),M.current=setTimeout(()=>D(null),ln)},[]);vt(()=>()=>{M.current&&clearTimeout(M.current)},[]);let O=mr(()=>({search:g?f:"",isSearchActive:g,clearSearch:$,close:n,minimize:()=>r(),showToast:T,setHeaderOverride:S,instanceId:e.instanceId}),[f,g,$,n,r,T,e.instanceId]),F=I?.title??t.title??e.title??e.id,w=I?.subtitle??t.subtitle,E=I?.onBack,ee=I?.actions??t.headerActions,oe=I?.searchable??t.searchable;vt(()=>{!oe&&g&&$()},[oe,g,$]);let j=d?on.modal.root():on.custom(e.id).modal(),se=Tt(Je,{children:[E&&!g&&ue(Je.Navigation,{onBack:E}),g?ue(Je.Search,{value:f,onChangeText:P,onCancel:$,placeholder:t.searchPlaceholder,testID:`tool-search-field-${e.id}`}):ue(Je.Content,{title:F,subtitle:w}),Tt(Je.Actions,{children:[!g&&ee,oe&&!g&&ue(br,{variant:"chip",testID:`tool-search-${e.id}`,onPress:()=>C(!0)})]})]});return ue(sn.Provider,{value:O,children:ue(yr,{visible:o,onClose:n,onBack:E,onMinimize:r,initialModalState:a,zIndex:i,persistenceKey:j,enablePersistence:!0,initialMode:t.initialMode??"bottomSheet",header:{customContent:se,showToggleButton:!0},disableScrollWrapper:!0,styles:{},children:Tt(H,{style:St.bodyRoot,children:[ue(hr,{children:ue(u,{...p})}),b&&ue(xr,{message:b.message,type:b.type,nonce:b.nonce})]})})})}var St=rt.create({bodyRoot:{flex:1,minHeight:0,backgroundColor:"transparent"},toast:{position:"absolute",bottom:16,alignSelf:"center",flexDirection:"row",alignItems:"center",gap:8,maxWidth:"86%",backgroundColor:nn.card,borderWidth:1,borderRadius:8,paddingHorizontal:12,paddingVertical:8,shadowColor:"#000",shadowOpacity:.4,shadowRadius:8,shadowOffset:{width:0,height:2},elevation:6},toastDot:{width:6,height:6,borderRadius:3},toastText:{flex:1,fontSize:12,color:nn.text}});import{Fragment as zr,jsx as ye}from"react/jsx-runtime";var gn=wr(null),pn="@react_buoy_open_apps",$t=44,Dr=12,Rr=100,Ar=16,Mr=e=>({x:window.innerWidth-$t-Ar,y:window.innerHeight-Rr-$t-e*($t+Dr)}),Gt=({children:e})=>{let[t,o]=un([]),[i,n]=un(!1),r=Qe([]),a=Qe(null),d=Qe(!1),p=Qe(!1),u=Qe(!1),g=xe(T=>{let O="";return o(F=>{let{apps:w,instanceId:E}=en(F,T,()=>`${T.id}-${Date.now()}-${Math.random().toString(36).slice(2)}`);return O=E,w}),O},[]),C=xe(()=>{if(d.current||!p.current||!u.current)return;d.current=!0;let T=a.current;if(!T||T.length===0){n(!0);return}a.current=null,T.forEach(({id:O,minimized:F})=>{let w=r.current.find(E=>E.id===O);if(w&&w.component){let E=gt(w.icon,{slot:"dial",size:20,color:w.color});g({id:w.id,title:w.name,component:w.component,props:w.props,modal:w.modal,launchMode:w.launchMode||"self-modal",singleton:w.singleton??!0,icon:E,color:w.color,minimized:F})}}),n(!0)},[g]);Wt(()=>{let T=!1;return(async()=>{try{let F=await dn.getItem(pn);if(T)return;if(F){let w=JSON.parse(F),E;Array.isArray(w)&&w.length>0&&(typeof w[0]=="string"?E=w.map(ee=>({id:ee,minimized:!1})):E=w.filter(ee=>typeof ee=="object"&&ee!==null&&typeof ee.id=="string"),E.length&&(a.current=E))}}catch{}T||(p.current=!0,C())})(),()=>{T=!0}},[C]),Wt(()=>{if(!i)return;let T=t.map(O=>({id:O.id,minimized:O.minimized??!1}));dn.setItem(pn,JSON.stringify(T))},[t,i]);let f=xe(T=>{r.current=T,u.current=!0,C()},[C]),P=xe(T=>{o(O=>O.length?T?O.filter(F=>F.instanceId!==T):O.slice(0,-1):O)},[]),I=xe(()=>o([]),[]),S=xe((T,O)=>{o(F=>F.map(w=>w.instanceId===T?{...w,minimized:!0,restoreState:O}:w))},[]),b=xe((T,O)=>{o(F=>F.map(w=>w.instanceId===T?{...w,minimized:!1,restoreState:O??w.restoreState}:w))},[]),D=xe(T=>t.find(F=>F.instanceId===T)?.minimized??!1,[t]),M=t.some(T=>T.launchMode!=="toggle-only"&&!T.minimized);Wt(()=>{if(!M)return;let T=O=>{if(O.key!=="Escape"||O.defaultPrevented)return;let F=[...t].reverse().find(w=>w.launchMode!=="toggle-only"&&!w.minimized);F&&P(F.instanceId)};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[M,P,t]);let $=Ir(()=>({openApps:t,isAnyOpen:M,open:g,close:P,closeAll:I,registerApps:f,minimize:S,restore:b,isMinimized:D}),[t,M,g,P,I,f,S,b,D]);return ye(gn.Provider,{value:$,children:e})},He=()=>{let e=Cr(gn);return e||{openApps:[],isAnyOpen:!1,open:()=>"",close:()=>{},closeAll:()=>{},registerApps:()=>{},minimize:()=>{},restore:()=>{},isMinimized:()=>!1}},Pr=9e3,Or={position:"fixed",inset:0,backgroundColor:"rgba(0,0,0,0.28)",display:"flex",alignItems:"center",justifyContent:"center"},Er={maxHeight:"90%",width:"94%",borderRadius:12,backgroundColor:"white",overflow:"hidden"},kr=({app:e,zIndex:t,onClose:o,onMinimize:i,minimizeTargetPosition:n,enableSharedModalDimensions:r})=>{let a=e.component,d=!e.minimized,p={...e.props??{},...r?{enableSharedModalDimensions:!0}:{}};return e.modal&&(!e.launchMode||e.launchMode==="self-modal")?ye(cn,{app:e,config:e.modal,visible:d,zIndex:t,onClose:o,onMinimize:i,initialModalState:e.restoreState,enableSharedModalDimensions:r,bodyProps:p}):e.launchMode==="self-modal"?ye(a,{...p,visible:d,onClose:o,onRequestClose:o,onMinimize:i,minimizeTargetPosition:n,instanceId:e.instanceId,zIndex:t,initialModalState:e.restoreState}):e.launchMode==="inline"?d?ye("div",{style:{position:"fixed",inset:0,zIndex:t,pointerEvents:"none"},children:ye(a,{...p,onClose:o,onMinimize:i,minimizeTargetPosition:n,instanceId:e.instanceId})}):null:ye("div",{style:{...Or,zIndex:t,display:d?"flex":"none"},children:ye("div",{style:Er,children:ye(a,{...p,onClose:o,onMinimize:i,minimizeTargetPosition:n,instanceId:e.instanceId})})})},Kt=()=>{let{openApps:e,close:t,minimize:o}=He(),{settings:i}=Jo(),n=e.filter(d=>d.launchMode!=="toggle-only");if(n.length===0)return null;let r=n.filter(d=>d.minimized).length,a=so()??Mr(r);return ye(zr,{children:n.map((d,p)=>ye(kr,{app:d,zIndex:Pr+p,onClose:()=>t(d.instanceId),onMinimize:u=>o(d.instanceId,u),enableSharedModalDimensions:i.globalSettings?.enableSharedModalDimensions===!0,minimizeTargetPosition:a},d.instanceId))})};import{useCallback as Lr,useEffect as jt,useRef as Br,useState as fn,useSyncExternalStore as In}from"react";import{persistentStorage as mn,getToolAttention as qt,subscribeToolAttention as Dn}from"@buoy-gg/shared-ui/web";import{jsx as ce,jsxs as xt}from"react/jsx-runtime";function Fr(e){return In(Dn,()=>qt(e),()=>qt(e))}var Rn={needsInput:"#FF8329",done:"#20C997",failed:"#FF3B30"},yn={needsInput:3,failed:2,done:1},bn=new Map;function hn(e){let t=null;for(let i of e?e.split("|"):[]){let n=qt(i);n&&(!t||yn[n.kind]>yn[t.kind])&&(t=n)}let o=bn.get(e);return o&&t&&o.kind===t.kind&&o.label===t.label?o:!o&&!t?null:(bn.set(e,t),t)}function Hr(e){let t=e.join("|");return In(Dn,()=>hn(t),()=>hn(t))}var Sn=28,Yt=32,Ut=6,Tn=8,vn=24,xn="@react_buoy_minimized_stack_expanded",Nr=80,wn=2e3,Vr=6e3,_r="#1A1A1A",et="#888888";function Cn({down:e=!1}){return ce("svg",{width:12,height:12,viewBox:"0 0 24 24","aria-hidden":"true",style:{transform:e?"rotate(180deg)":void 0},children:ce("path",{d:"M18 15l-6-6-6 6",fill:"none",stroke:et,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function Wr({id:e,title:t,icon:o,index:i,onPress:n}){let r=Fr(e),a=Br(null);return jt(()=>{let d=!0,p,u=()=>{a.current?.animate([{transform:"translateX(0) scale(1)",opacity:1,offset:0},{transform:"translateX(3px) scale(1.05)",opacity:.4,offset:.2},{transform:"translateX(-3px) scale(1.1)",opacity:1,offset:.4},{transform:"translateX(2px) scale(1.0)",opacity:.6,offset:.6},{transform:"translateX(-1px) scale(0.95)",opacity:1,offset:.8},{transform:"translateX(0) scale(1)",opacity:1,offset:1}],{duration:Nr,easing:"linear"})},g=C=>{let f=C?500+Math.random()*1500+i*200:wn+Math.random()*(Vr-wn)+i*300;p=setTimeout(()=>{d&&(u(),g(!1))},f)};return g(!0),()=>{d=!1,clearTimeout(p)}},[i]),xt("button",{type:"button","aria-label":r?`${t} \u2014 ${r.label}. Restore`:`Restore ${t}`,onClick:n,style:{width:Yt,height:Yt,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",padding:0,cursor:"pointer",position:"relative"},children:[ce("div",{ref:a,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:o}),r?ce("span",{"aria-hidden":!0,"data-testid":`buoy-dock-badge-${e}-${r.kind}`,style:{position:"absolute",top:0,right:0,minWidth:12,height:12,borderRadius:6,padding:"0 2px",boxSizing:"border-box",background:Rn[r.kind],border:"1.5px solid #0C0C0C",color:"#000",fontSize:8,fontWeight:800,lineHeight:"9px",display:"flex",alignItems:"center",justifyContent:"center"},children:r.kind==="needsInput"?"!":""}):null]})}function An({containerWidth:e=32}){let{openApps:t,restore:o}=He(),i=t.filter(f=>f.minimized&&f.launchMode!=="toggle-only"),[n,r]=fn(!1),[a,d]=fn(!1),p=Hr(i.map(f=>f.id));jt(()=>{let f=!1;return(async()=>{let I=await mn.getItem(xn);!f&&I==="true"&&r(!0),f||d(!0)})(),()=>{f=!0}},[]),jt(()=>{a&&mn.setItem(xn,n?"true":"false")},[n,a]);let u=Lr(f=>{o(f)},[o]);if(i.length===0)return null;let g=Tn+i.length*Yt+(i.length-1)*Ut+Ut+vn+4,C={backgroundColor:_r,borderTopLeftRadius:6,borderTopRightRadius:6,borderTop:`1px solid ${et}66`,borderLeft:`1px solid ${et}66`,borderRight:`1px solid ${et}66`,borderBottom:"none",boxSizing:"border-box"};return xt("div",{style:{height:Sn,overflow:"visible",position:"relative"},children:[ce("div",{style:{position:"absolute",bottom:"var(--buoy-stack-bottom, 0px)",top:"var(--buoy-stack-top, auto)",left:0,width:e,maxHeight:"var(--buoy-stack-space, calc(100vh - 48px))",visibility:n?"visible":"hidden",height:n?g:0,opacity:n?1:0,overflowY:"auto",overflowX:"hidden",transition:"height 200ms ease, opacity 200ms ease",pointerEvents:n?"auto":"none",...C},children:xt("div",{style:{height:g,display:"flex",flexDirection:"column",alignItems:"center",paddingTop:Tn,gap:Ut,boxSizing:"border-box"},children:[[...i].reverse().map((f,P)=>ce(Wr,{id:f.id,title:f.title||f.id,icon:f.icon??ce("span",{style:{color:"#fff",fontSize:13},children:(f.title||f.id).slice(0,1).toUpperCase()}),index:P,onPress:()=>u(f.instanceId)},f.instanceId)),ce("button",{type:"button","aria-label":"Collapse",onClick:()=>r(!1),style:{width:"100%",height:vn,marginTop:3,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0},children:ce(Cn,{down:!0})})]})}),xt("button",{type:"button","aria-label":`Show ${i.length} minimized tools`,tabIndex:n?-1:0,"aria-hidden":n,onClick:()=>r(!0),style:{position:"absolute",bottom:0,left:0,width:e,height:Sn,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:2,cursor:"pointer",padding:0,opacity:n?0:1,transform:n?"scale(0.9)":"scale(1)",transition:"opacity 200ms ease, transform 200ms ease",pointerEvents:n?"none":"auto",...C},children:[ce(Cn,{}),p?ce("span",{"aria-hidden":!0,"data-testid":"buoy-dock-peek-attention",style:{position:"absolute",top:2,right:2,minWidth:11,height:11,borderRadius:6,padding:"0 2px",boxSizing:"border-box",background:Rn[p.kind],border:"1.5px solid #0C0C0C",color:"#000",fontSize:8,fontWeight:800,lineHeight:"9px",display:"flex",alignItems:"center",justifyContent:"center"},children:p.kind==="needsInput"?"!":""}):null,i.length>1&&ce("span",{style:{fontSize:9,fontWeight:600,color:et,marginLeft:1},children:i.length})]})]})}import{registerToolModules as jr}from"@buoy-gg/shared-ui/web";import{createElement as $r}from"react";function Xt(e){let t=e.icon;return{...e,icon:typeof t=="function"?o=>$r(t,{size:o,slot:e.slot??"both",color:e.color}):()=>t}}import{createContext as Gr,useContext as Kr,useState as Mn,useMemo as Pn}from"react";import{jsx as Ur}from"react/jsx-runtime";var On=Gr(null);function Jt({children:e}){let[t,o]=Mn(!1),[i,n]=Mn(!1),r=Pn(()=>t||i,[t,i]),a=Pn(()=>({isDialOpen:t,isToolOpen:i,isDevToolsActive:r,setDialOpen:o,setToolOpen:n}),[t,i,r]);return Ur(On.Provider,{value:a,children:e})}function tt(){let e=Kr(On);return e||{isDialOpen:!1,isToolOpen:!1,isDevToolsActive:!1,setDialOpen:()=>{},setToolOpen:()=>{}}}import*as qr from"@buoy-gg/license/web";import*as Yr from"@buoy-gg/shared-ui/web";import*as Xr from"@buoy-gg/shared-ui/web/dataViewer";function Zt(e){jr({core:{useDevToolsVisibility:tt},license:qr,"shared-ui":Yr,"shared-ui/dataViewer":Xr,...e});let t=new Set;return Object.values(e).flatMap(o=>Object.entries(o).flatMap(([i,n])=>!i.endsWith("Preset")||!n||typeof n.id!="string"||!n.component||t.has(n.id)?[]:(t.add(n.id),[Xt(n)])))}import{useEffect as oo,useMemo as Bn,useRef as gs}from"react";import{LicenseManager as fs,useLicense as ms}from"@buoy-gg/license/web";import{registerToolAdapters as ys}from"@buoy-gg/shared-ui/web";function Qt(e){return typeof e=="object"&&e!==null?e:void 0}function En({isDevelopment:e,isLicensed:t,externalSync:o,isAvailable:i}){return o===!1||!i?!1:e?!0:t&&Qt(o)?.enableInRelease===!0}import{useEffect as Jr,useMemo as Zr,useState as Qr}from"react";import{devToolsStorageKeys as es,persistentStorage as ts}from"@buoy-gg/shared-ui/web";var os=8;function ns(){let e="";for(;e.length<os;)e+=(Math.random()*16|0).toString(16);return e}function is(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function rs({appName:e,hardwareName:t,platform:o,installId:i,deviceId:n}){let r=is(e??"buoy")||"buoy",a=e??"Buoy Device",d=t?.trim()||o;return n?{deviceId:n,deviceName:`${a} (${d})`}:{deviceId:`${r}-${o}-${i}`,deviceName:`${a} (${d} \xB7 ${i.slice(-4)})`}}function ss(){let e=globalThis;try{return e.sessionStorage??null}catch{return null}}async function as({platform:e=he.OS,store:t,mint:o=ns}={}){let i=es.sync.deviceId(),n=t===void 0?e==="web"?ss():ts:t;if(!n)return o();try{let r=await n.getItem(i);if(r&&r.length>0)return r;let a=o();return await n.setItem(i,a),a}catch{return o()}}var eo=null;function ls(){return eo||(eo=as()),eo}function kn(e,t){let o=e?.deviceId,i=e?.deviceName,n=t.loadId??ls,r=t.platform??he.OS,[a,d]=Qr(null);return Jr(()=>{if(o)return;let p=!1;return n().then(u=>{p||d(u)}),()=>{p=!0}},[o,n]),Zr(()=>{if(!o&&!a)return null;let p=rs({appName:t.appName,hardwareName:t.hardwareName,platform:r,installId:a??"",deviceId:o});return i?{...p,deviceName:i}:p},[o,i,a,t.appName,t.hardwareName,r])}import{getDevServerOrigin as cs,resolveReloadStrategy as ds,scheduleReloadApp as us}from"@buoy-gg/shared-ui/web";var zn=Date.now(),Ln=cs(),ps={platform:he.OS,isTV:he.isTV===!0,isTVOS:he.isTVOS===!0},to={version:3,getSnapshot:()=>{let e=ds("auto");return{startedAt:zn,devServerOrigin:Ln,device:ps,reload:{available:e!==null,strategy:e}}},subscribe:e=>()=>{},actions:{ping:()=>({ok:!0,startedAt:zn,devServerOrigin:Ln}),reloadApp:e=>{let t=e??{},{strategy:o,delayMs:i}=us({strategy:t.strategy,delayMs:t.delayMs});return{scheduled:!0,strategy:o,delayMs:i}}}};import{Fragment as vs,jsx as Pe,jsxs as xs}from"react/jsx-runtime";var bs=["ConsoleRoot","RouteTracker","ReactQueryTracker","ReduxAutoInstrument","PerfMonitorRoot","AutomationResumer","ImagesRoot"],hs=["DebugBordersStandaloneOverlay","HighlightUpdatesOverlay","ImageOverlayStandalone","PerfMonitorOverlay","JsTopHudOverlay","ImpersonateOverlay","ScenariosOverlay"];function Fn(e){let t=Bn(()=>Object.fromEntries(Object.entries(e.modules).map(([i,n])=>[i.replace(/^@buoy-gg\//,"").replace(/\/web$/,""),n])),[e.modules]),o=t["react-query"];return o?.useReactQuerySyncAdapter?Pe(Ss,{...e,modules:t,query:o}):Pe(Hn,{...e,modules:t})}function Ss(e){let t=e.query.useReactQuerySyncAdapter();return Pe(Hn,{...e,queryAdapter:t})}function Hn({modules:e,apps:t,requiredEnvVars:o,externalSync:i,headless:n,sentryGetClient:r,queryAdapter:a}){let{isPro:d,tier:p}=ms(),u=Bn(()=>{let S={app:to};for(let[b,D]of Object.entries(e))for(let[M,$]of Object.entries(D))M.endsWith("SyncAdapter")&&$&&typeof $=="object"&&(S[b]=$);a&&(S.query=a),e.env?.createEnvSyncAdapter&&(S.env=e.env.createEnvSyncAdapter(o??[]));for(let b of t??[])b.sync&&(S[`custom:${b.id}`]=b.sync);return S},[e,t,o,a]),g=gs(u);g.current=u,oo(()=>ys(()=>g.current),[]),oo(()=>{let S=[],b=D=>{let M=D?.();typeof M=="function"&&S.push(M)};return b(e.network?.startNetworkCapture),b(e.storage?.startBrowserStorageCapture),b(e.assets?.startBrowserAssetCapture),e.storage?.storageSyncAdapter?.subscribe&&b(()=>e.storage.storageSyncAdapter.subscribe(()=>{})),e["focus-inspector"]?.focusInspectorSyncAdapter?.subscribe&&b(()=>e["focus-inspector"].focusInspectorSyncAdapter.subscribe(()=>{})),()=>{for(let D of S.reverse())D()}},[e]);let C=e["external-sync"],P=En({isDevelopment:typeof L<"u"?L:process.env.NODE_ENV!=="production",isLicensed:d,externalSync:i,isAvailable:!!C}),I=e.sentry?.SentryRoot;return xs(vs,{children:[Object.entries(e).flatMap(([S,b])=>bs.map(D=>{let M=b[D];return M?Pe(M,{},`${S}:${D}`):null})),I&&Pe(I,{getClient:r}),Object.entries(e).flatMap(([S,b])=>hs.map(D=>{let M=b[D];return M&&(!n||D==="ScenariosOverlay"||D==="ImpersonateOverlay")?Pe(M,{},`${S}:${D}`):null})),P&&Pe(Ts,{module:C,tools:u,options:Qt(i),isPro:d,tier:p})]})}function Ts({module:e,tools:t,options:o,isPro:i,tier:n}){let r=kn(o,{appName:typeof document>"u"?null:document.title||location.hostname,hardwareName:"Browser",platform:"web"}),{socket:a}=e.useExternalSyncSocket({deviceName:r?.deviceName??"Buoy Browser",socketURL:o?.socketURL??e.getDefaultSocketURL(),persistentDeviceId:r?.deviceId??null,platform:"web",enableLogs:o?.enableLogs});return oo(()=>{if(!a)return;let d=()=>{a.connected&&fs.hasAccountAccess()&&a.emit("device-license",{isPro:i?"1":"0",tier:n})};return d(),a.on("connect",d),()=>{a.off("connect",d)}},[a,i,n]),e.useExternalSync({tools:t,socket:a,deviceId:r?.deviceId??null,enableLogs:o?.enableLogs}),null}import{jsx as U,jsxs as _n}from"react/jsx-runtime";var Es={},Vn="@react_buoy_floating_menu_tooltip_shown",ks=Oe;function zs({size:e=14,color:t="#20C997"}){let o=Math.max(2,e/4),i=Math.max(1,e/16);return U("div",{style:{display:"grid",gridTemplateColumns:`repeat(3, ${o}px)`,gap:i,width:e,height:e,alignContent:"center",justifyContent:"center"},children:Array.from({length:9}).map((n,r)=>U("div",{style:{width:o,height:o,borderRadius:o/2,backgroundColor:t}},r))})}function Ls(e){return U(Jt,{children:U(Gt,{children:U(Bs,{...e})})})}function Bs({environment:e,userRole:t,availableEnvironments:o,onEnvironmentSwitch:i,apps:n,modules:r=Es,externalSync:a,requiredEnvVars:d,sentryGetClient:p,disableHints:u=!1,headless:g=!1}){let[C,f]=no(!1),[P,I]=no(!1),S=Rs(!1),b=He(),D=Ne(()=>Mt([...Zt(r),...n??[]]),[n,r]),M=tt(),$=b.openApps.some(l=>!l.minimized);we(()=>{M.setDialOpen(C)},[C,M.setDialOpen]),we(()=>{M.setToolOpen($||P)},[$,P,M.setToolOpen]);let{registerApps:T}=b;we(()=>{T(D.map(l=>{let R=l.icon;return{...l,icon:typeof R=="function"?({size:X})=>R(X):R}}))},[T,D]);let O=Ne(()=>D.map(l=>({id:l.id,name:l.name,description:l.description,slot:l.slot})),[D]),{settings:F}=As({availableTools:O,storage:ks});we(()=>{let l=!1;return(async()=>{let[X,ie]=await Promise.all([Oe.getItem(Ct.dial.isOpen()),Oe.getItem(Ct.settings.modalOpen())]);l||(X==="true"&&f(!0),ie==="true"&&(f(!0),I(!0)),S.current=!0)})(),()=>{l=!0}},[]),we(()=>{S.current&&Oe.setItem(Ct.dial.isOpen(),C?"true":"false")},[C]),we(()=>{S.current&&Oe.setItem(Ct.settings.modalOpen(),P?"true":"false")},[P]);let w=Ve(l=>{if(zo(l.id),l.launchMode==="toggle-only"){l.onPress?.();return}if(l.component){let R=typeof l.icon=="function"?l.icon(20):l.icon;b.open({id:l.id,title:l.name||wt(l.id),component:l.component,props:l.props,modal:l.modal,launchMode:l.launchMode||"self-modal",singleton:l.singleton??!0,icon:R,color:l.color||Nn(l.id)})}else l.onPress?.()},[b]),E=Ne(()=>st(D,"dial").map(R=>{let X=R.color||Nn(R.id),ie;return typeof R.icon=="string"?ie=R.icon:typeof R.icon=="function"?ie=R.icon(32):ie=null,{id:R.id,name:R.name||wt(R.id),icon:ie,unavailable:!R.component&&!R.onPress,color:X,onPress:()=>{w(R),f(!1)}}}),[D,w]),ee=Ne(()=>{if(!C)return E;let l=new Map(E.map(R=>[R.id,R]));return ko(E.map(R=>R.id)).map(R=>l.get(R)).filter(R=>!!R)},[C,E]),oe=Ne(()=>st(D,"row").filter(l=>F.floatingTools[l.id]===!0&&(l.component||l.onPress)),[D,F.floatingTools]),j=Ne(()=>D.map(l=>({id:l.id,name:l.name||wt(l.id),description:l.description||Ms(l.id),slot:l.slot,icon:l.icon,color:l.color})),[D]),[se,ae]=no(!1),G=b.openApps.some(l=>!l.minimized);we(()=>{if(u)return;let l=!1,R=setTimeout(async()=>{let X=await Oe.getItem(Vn);!l&&!X&&ae(!0)},1e3);return()=>{l=!0,clearTimeout(R)}},[u]);let ne=Ve(()=>{ae(!1),Oe.setItem(Vn,"true")},[]),Te=Ve(()=>{ne(),f(!0)},[ne]),ve=Ve(()=>{f(!1),I(!1)},[]),Ce=Ve(()=>{I(l=>!l)},[]),V=Ve(()=>I(!1),[]),pe=!!(o?.length&&i),Ee=F.floatingTools.environment!==!1,ge=se&&!C&&!G,Ie=b.openApps.some(l=>l.minimized&&l.launchMode!=="toggle-only"),le=U(Fn,{modules:r,apps:n,requiredEnvVars:d,externalSync:a,headless:g,sentryGetClient:p});return g?le:_n("div",{"data-buoy-root":"",style:{display:"contents"},children:[le,ge&&U("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0,0,0,0.85)",zIndex:1e4}}),_n(Pt,{enablePositionPersistence:!ge,pushToSide:C||G,suspendPointerEvents:C,centerOnboarding:ge,minimizedStack:Ie?U(An,{}):void 0,hasMinimizedStack:Ie,children:[e&&Ee&&!pe&&U(Ps,{environment:e}),pe&&Ee&&U(Os,{currentEnvironment:e??"local",availableEnvironments:o,onSelect:i}),t?U(Ot,{userRole:t,onPress:Te}):U("button",{"aria-label":"Open dev tools",onClick:Te,style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"6px 8px",background:"none",border:"none",cursor:"pointer"},children:U(zs,{})}),oe.map(l=>U("button",{"aria-label":l.name||wt(l.id),title:l.description,onClick:()=>w(l),style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"4px 6px",borderRadius:6,background:"none",border:"none",cursor:"pointer"},children:typeof l.icon=="function"?l.icon(16):l.icon},l.id))]}),ge&&U(lt,{title:"Welcome to Buoy!",message:"Grab and position this menu wherever you want, then tap the icon to open your tools.",onDismiss:ne}),C&&U(zt,{icons:ee,onClose:ve,centerLabel:"BUOY",onCenterPress:Ce,settingsOpen:P,hintsDisabled:u}),U(Vt,{visible:P,onClose:V,availableTools:j,onSettingsChange:l=>{}}),U(Kt,{}),U(ws,{})]})}function Fs(e){let{access:t,isPro:o,licenseKey:i}=Is();we(()=>{Cs.configure(e.licenseKey)},[e.licenseKey]);let n=e.licenseKey===void 0||e.licenseKey.trim().toUpperCase()===(i??"");return!(typeof L<"u"?L:process.env.NODE_ENV!=="production")&&!o?null:!n||t.status!=="admitted"?e.headless?null:U(Ds,{}):U(Ls,{...e})}import{useSettings as Ou,useFloatingTools as Eu,getToolLabel as ku,getToolDescription as zu,getToolColor as Lu,settingsColors as Bu,settingsStyles as Fu,dialColors as Hu,dialStyles as Nu}from"@buoy-gg/floating-tools-react/web";export{ba as Activity,el as AlertCircle,ha as AlertTriangle,Gt as AppHostProvider,Kt as AppOverlay,_s as Badge,tl as BarChart3,ia as BaseEventStore,ol as Bookmark,Sa as Bug,Us as Button,Xs as Card,Ta as Check,va as CheckCircle,Tl as CheckSquare,xa as ChevronDown,wa as ChevronLeft,Ca as ChevronRight,Ia as ChevronUp,Da as Clock,nl as Cloud,Zs as CollapsibleSection,Ra as Copy,js as CopyButton,na as DataViewer,Aa as Database,Jt as DevToolsVisibilityProvider,zt as DialMenu,Gs as DiffViewer,Kn as Divider,il as Download,rl as Edit3,ea as EmptyState,oa as EventStepperFooter,Ma as Eye,Pa as EyeOff,Oa as FileJson,Ea as FileText,ka as Filter,za as FlaskConical,Fs as FloatingDevTools,Pt as FloatingTools,sl as GitBranch,La as Globe,al as HardDrive,Ba as Hash,ll as HelpCircle,cl as Home,dl as Image,Fa as Info,$s as InfoRow,ya as JsModal,Ha as Key,Na as Layers,ul as Link,Va as Lock,pl as Maximize2,gl as Minus,fl as Palette,_a as Pause,ml as Pin,Wa as Play,$a as Plus,Ga as Power,qs as PowerToggle,Ka as RefreshCw,ra as RelativeTime,yl as Route,Ys as Row,Ua as Search,ta as SearchBar,Js as SectionHeader,bl as Server,ja as Settings,Vt as SettingsModal,qa as Shield,hl as Smartphone,Sl as Square,Ws as StatusDot,Qs as TabSelector,vl as Timer,Ya as Trash2,xl as Unlock,wl as Upload,Xa as User,Ot as UserStatus,Cl as Users,Ja as Wifi,Za as X,Il as XCircle,Qa as Zap,to as appSyncAdapter,$n as autoDiscoverWebPresets,Mt as autoDiscoverWithCustom,ma as copyToClipboard,Xt as createWebTool,Zt as createWebTools,Wn as defaultToolPresets,ga as devToolsStorageKeys,Hu as dialColors,Nu as dialStyles,sa as formatBytes,aa as formatDuration,la as formatNumber,Gn as getEnabledTools,Lu as getToolColor,zu as getToolDescription,ku as getToolLabel,st as getToolsBySlot,Ns as methodColor,pa as persistentStorage,da as safeStringify,Bu as settingsColors,Fu as settingsStyles,Hs as statusColor,Ks as toolTheme,ca as truncateMiddle,Vs as typeColor,He as useAppHost,tt as useDevToolsVisibility,Eu as useFloatingTools,ua as usePersistedState,fa as useSafeAreaInsets,Ou as useSettings,Tr as useToolHeader,an as useToolHost};
10
+ `,document.head.appendChild(e),io=true}var xt=Pe.accent;function ro({title:e,message:t,onDismiss:o,showArrow:a=true}){let[n,i]=to(false),[l,u]=to(false);Zi(()=>{nr();let p=requestAnimationFrame(()=>i(true));return()=>cancelAnimationFrame(p)},[]);let d={fontFamily:no,textTransform:"uppercase"};return Le("div",{style:{position:"fixed",left:"50%",bottom:or(),transform:`translateX(-50%) scale(${n?1:.8})`,opacity:n?1:0,transition:"transform 300ms cubic-bezier(0.34, 1.3, 0.64, 1), opacity 300ms ease",zIndex:10002,pointerEvents:"auto"},children:ao("div",{style:{position:"relative",animation:n?"buoyOnboardPulse 3s ease-in-out infinite":"none"},children:[Le("div",{style:{position:"absolute",inset:-4,borderRadius:18,backgroundColor:"#FFFFFF",opacity:.06}}),ao("div",{style:{position:"relative",maxWidth:280,backgroundColor:Pe.dialBackground,borderRadius:16,border:`1px solid ${Pe.dialBorder}`,padding:20,boxShadow:`0 0 20px ${oo(Pe.dialShadow,.6)}`,display:"flex",flexDirection:"column",alignItems:"center",gap:8},children:[Le("span",{style:{...d,fontSize:16,fontWeight:900,letterSpacing:1,color:xt,textAlign:"center"},children:e}),Le("span",{style:{fontFamily:no,fontSize:13,lineHeight:"20px",color:Pe.centerText,textAlign:"center"},children:t}),Le("button",{onClick:o,onMouseDown:()=>u(true),onMouseUp:()=>u(false),onMouseLeave:()=>u(false),style:{...d,marginTop:8,borderRadius:8,border:"none",backgroundColor:xt,padding:"10px 24px",fontSize:14,fontWeight:900,letterSpacing:1.5,color:"#000000",cursor:"pointer",opacity:l?.7:1,transform:l?"scale(0.96)":"scale(1)",transition:"transform 100ms ease, opacity 100ms ease"},children:"Got it!"})]}),a&&Le("div",{style:{position:"absolute",left:"50%",bottom:er,marginLeft:-12,width:0,height:0,borderLeft:"12px solid transparent",borderRight:"12px solid transparent",borderTop:`${tr}px solid ${xt}`,filter:`drop-shadow(0 0 10px ${oo(Pe.dialShadow,.5)})`,animation:n?"buoyOnboardArrowBounce 1.6s ease-in-out infinite":"none"}})]})})}import{Fragment as ar,jsx as E,jsxs as ge}from"react/jsx-runtime";var ir={x:.5,y:.5},so="@react_buoy_settings_tooltip_shown",lo=false;function rr(){if(lo||typeof document>"u")return;let e=document.createElement("style");e.textContent=Ei(),document.head.appendChild(e),lo=true}var $e=e=>1-Math.pow(1-e,3),Ct=e=>e*e*e;function sr({icon:e,index:t,totalIcons:o,position:a,progress:n,onPress:i}){let[l,u]=Q(false),[d,p]=Q(false),m=!e.icon&&e.id.startsWith("empty-"),C=!m&&e.unavailable===true,g=!m&&!C,{icons:k}=qt,y=Ai(t,o),S=0;n<=y[1]?S=0:n<=y[2]?S=(n-y[1])/(y[2]-y[1]):S=1,S=Math.max(0,Math.min(1,S));let T=Oi,M=k.pressIn.scale,B=S*(d?M:l?1.1:1),_=0;S<=0?_=0:S<=.3?_=S:_=.3+(S-.3)*(.7/.7);let x=a.x*S,z=a.y*S;return E("button",{role:"menuitem","aria-label":m?"Empty slot":e.name,"aria-disabled":!g,tabIndex:g?0:-1,onClick:g?i:void 0,onMouseEnter:()=>g&&u(true),onMouseLeave:()=>{u(false),p(false)},onMouseDown:()=>g&&p(true),onMouseUp:()=>p(false),style:{position:"absolute",left:"50%",top:"50%",width:T,height:T,marginLeft:-T/2,marginTop:-T/2,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:g?"pointer":"default",transform:`translate(${x}px, ${z}px) scale(${B})`,opacity:_,transition:l||d?"transform 100ms ease":"none",background:"none",border:"none",padding:0},children:m?E("div",{style:{width:v.emptySlot.dotSize,height:v.emptySlot.dotSize,borderRadius:v.emptySlot.dotSize/2,backgroundColor:D.emptyDotBackground,border:`${v.emptySlot.borderWidth}px solid ${D.emptyDotBorder}`}}):ge(ar,{children:[E("div",{style:{position:"absolute",width:`${v.icon.gradientBgSizePercent}%`,height:`${v.icon.gradientBgSizePercent}%`,borderRadius:v.icon.gradientBgBorderRadius,backgroundColor:"rgba(0, 0, 0, 0.2)",opacity:v.icon.gradientBgOpacity}}),E("div",{style:{position:"absolute",width:`${v.icon.innerGlowSizePercent}%`,height:`${v.icon.innerGlowSizePercent}%`,borderRadius:v.icon.innerGlowBorderRadius,backgroundColor:"rgba(255, 255, 255, 0.02)",opacity:v.icon.innerGlowOpacity}}),E("div",{style:{marginBottom:v.icon.wrapperMarginBottom,display:"flex",alignItems:"center",justifyContent:"center",fontSize:32,filter:l?"brightness(1.2)":"none"},children:e.icon}),E("span",{style:{fontSize:e.name.length>8?Math.max(v.icon.label.fontSize*.7,v.icon.label.fontSize*8/e.name.length):v.icon.label.fontSize,fontWeight:v.icon.label.fontWeight,fontFamily:v.icon.label.fontFamily,color:D.iconLabel,letterSpacing:v.icon.label.letterSpacing,marginTop:v.icon.label.marginTop,textTransform:"uppercase",whiteSpace:"nowrap"},children:e.name}),C&&E("span",{style:{fontSize:v.icon.label.fontSize-1,fontWeight:v.icon.label.fontWeight,fontFamily:v.icon.label.fontFamily,letterSpacing:v.icon.label.letterSpacing,color:Bi.muted,textTransform:"uppercase",whiteSpace:"nowrap"},children:"Unavailable"})]})})}function co({side:e,color:t}){return E("svg",{width:18,height:18,viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(e==="prev"?[[15,18,9,12],[9,12,15,6]]:[[9,18,15,12],[15,12,9,6]]).map(([o,a,n,i],l)=>E("line",{x1:o,y1:a,x2:n,y2:i,stroke:t,strokeWidth:2},l))})}function uo({side:e,disabled:t,onClick:o}){let[a,n]=Q(false),i=t?D.emptyDotBorder:D.accent;return ge("button",{type:"button","aria-label":`${e==="prev"?"Previous":"Next"} dial page`,disabled:t,onClick:o,onMouseDown:()=>!t&&n(true),onMouseUp:()=>n(false),onMouseLeave:()=>n(false),style:{display:"flex",alignItems:"center",gap:4,padding:"10px 16px",borderRadius:10,border:`1px solid ${D.dialBorder}`,backgroundColor:D.dialBackground,color:t?D.iconLabelMuted:D.centerText,fontSize:12,fontWeight:900,fontFamily:Xt,letterSpacing:1.5,textTransform:"uppercase",cursor:t?"default":"pointer",opacity:t?.4:1,boxShadow:t?"none":`0 0 8px ${Gt(D.dialShadow,.4)}`,transform:a?"scale(0.92)":"scale(1)",transition:"transform 100ms ease"},children:[e==="prev"&&E(co,{side:"prev",color:i}),e==="prev"?"PREV":"NEXT",e==="next"&&E(co,{side:"next",color:i})]})}function po({icons:e,onClose:t,centerLabel:o="MENU",onCenterPress:a,settingsOpen:n=false,hintsDisabled:i=false}){let{id:l}=Pi(),[u,d]=Q(0),[p,m]=Q(0),[C,g]=Q(0),[k,y]=Q(0),[S,T]=Q(0),[M,B]=Q(1),[_,x]=Q(false),[z,P]=Q(false),[I,R]=Q(false),oe=at(null),Z=at(null),G=at(null),le=at(false),{entrance:K,exit:ne,interaction:J}=qt,Se=Di(),[me,ve]=Q(()=>({width:window.innerWidth,height:window.innerHeight}));Te(()=>{let A=()=>ve({width:window.innerWidth,height:window.innerHeight});return window.addEventListener("resize",A),()=>window.removeEventListener("resize",A)},[]);let L=nt(()=>ki({screenWidth:me.width,maxCircleSize:Math.max(120,Math.min(320,me.height-96))}),[me]),Re=nt(()=>Ri(),[]),fe=nt(()=>Mi(He,L.iconRadius),[L.iconRadius]),[re,we]=Q(0),ae=Math.max(1,Math.ceil(e.length/He)),r=Math.min(re,ae-1),F=nt(()=>{let A=r*He,w=[...e.slice(A,A+He)];for(;w.length<He;)w.push({id:`empty-${w.length}`,name:"",icon:null,onPress:()=>{}});return w},[e,r]);Te(()=>{rr()},[]),Te(()=>{let A=K.backdrop.duration,w=K.dial.rotation.duration,X=K.centerButton.delay,H=K.icons.delay,q=K.icons.duration,U=performance.now(),ee=ce=>{let s=ce-U;d(Math.min(1,s/A));let f=Math.min(1,s/400),O=$e(f)*1.1;f>.7&&(O-=(f-.7)*.33),f>=1&&(O=1),m(Math.max(0,Math.min(1.05,O)));let Y=Math.min(1,s/w);if(g($e(Y)*360),s>=X){let ye=Math.min(1,(s-X)/300),Ee=$e(ye)*1.15;ye>.6&&(Ee-=(ye-.6)*.375),ye>=1&&(Ee=1),y(Math.max(0,Math.min(1.05,Ee)))}if(s>=H){let ye=Math.min(1,(s-H)/q);T($e(ye))}let he=H+q;s<he?G.current=requestAnimationFrame(ee):(d(1),m(1),g(360),y(1),T(1),R(true))};return G.current=requestAnimationFrame(ee),()=>{G.current&&cancelAnimationFrame(G.current)}},[]);let W=it(()=>{if(le.current)return;le.current=true,P(true),G.current&&cancelAnimationFrame(G.current);let A=performance.now(),w=ne.icons.duration,X=ne.centerButton.duration,H=ne.dialScale.duration,q=Math.max(X,H),U=ne.backdrop.duration,ee=ce=>{let s=ce-A;if(s<w){let Y=Ct(s/w);T(1-Y),G.current=requestAnimationFrame(ee);return}let f=w;if(s<f+q){T(0);let Y=Math.min(1,(s-f)/X),he=Math.min(1,(s-f)/H);y(1-Ct(Y)),m(1-Ct(he)),G.current=requestAnimationFrame(ee);return}let O=f+q;if(s<O+U){m(0),y(0);let Y=(s-O)/U;d(1-Y),G.current=requestAnimationFrame(ee);return}d(0),t()};G.current=requestAnimationFrame(ee)},[ne,t]);Te(()=>{let A=document.activeElement,w=oe.current;return()=>{A?.isConnected&&(document.activeElement===document.body||w?.contains(document.activeElement))&&A.focus()}},[]),Te(()=>{if(n)return;Z.current?.focus();let A=w=>{let X=oe.current;if(X){if(w.key==="Escape")w.preventDefault(),W();else if(w.key==="Tab"){let H=Array.from(X.querySelectorAll('button:not(:disabled):not([aria-disabled="true"]), [tabindex="0"]')).filter(ee=>ee.getClientRects().length>0),q=H[0],U=H[H.length-1];(!X.contains(document.activeElement)||(w.shiftKey?document.activeElement===q:document.activeElement===U))&&(w.preventDefault(),(w.shiftKey?U:q)?.focus())}else if(["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(w.key)){let H=Array.from(X.querySelectorAll('[role="menuitem"]:not([aria-disabled="true"])')),q=H.indexOf(document.activeElement);if(q<0||!H.length)return;w.preventDefault();let U=w.key==="Home"?0:w.key==="End"?H.length-1:(q+(w.key==="ArrowRight"||w.key==="ArrowDown"?1:-1)+H.length)%H.length;H[U].focus()}}};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[W,n]);let[je,Je]=Q(false);Te(()=>{if(i)return;let A=false,w=setTimeout(async()=>{let X=await Jt.getItem(so);!A&&!X&&Je(true)},1200);return()=>{A=true,clearTimeout(w)}},[i]);let Ae=it(()=>{Je(false),Jt.setItem(so,"true")},[]);Te(()=>{n&&je&&Ae()},[n,je,Ae]);let Xe=it(A=>{if(A.id.startsWith("empty-")||le.current)return;let[w,X]=J.iconSelect.pulse,H=performance.now(),q=150,U=ee=>{let ce=ee-H;if(ce<q){let s=$e(ce/q);B(1-(1-w.scale)*s),requestAnimationFrame(U)}else if(ce<q*2){let s=$e((ce-q)/q);B(w.scale+(X.scale-w.scale)*s),requestAnimationFrame(U)}else B(1)};requestAnimationFrame(U),setTimeout(()=>{A.onPress(),W()},J.iconSelect.actionDelay)},[J.iconSelect,W]),Ye=it(A=>{if(le.current)return;let w=Math.max(0,Math.min(A,ae-1));w!==r&&we(w)},[ae,r]),Oe=L.buttonSize*v.centerButton.containerRatio,Qe=L.buttonSize*v.centerButton.borderRatio,bt=L.buttonSize*v.centerButton.containerRatio/2+6,St=I&&!z;return ge("div",{ref:oe,role:"dialog","aria-label":"Dial Menu","aria-modal":"true",style:{position:"fixed",inset:0,zIndex:1e4},children:[E("button",{type:"button","aria-label":"Close dial menu",tabIndex:0,onClick:W,style:{position:"absolute",inset:0,border:0,padding:0,backgroundColor:D.dialBackdrop,opacity:u}}),ge("div",{style:{position:"absolute",left:"50%",marginLeft:-L.circleSize/2,bottom:80,width:L.circleSize,height:L.circleSize,borderRadius:"50%",backgroundColor:D.dialBackground,border:`${v.circle.borderWidth}px solid ${D.dialBorder}`,boxShadow:`0 0 ${v.circle.shadowRadius}px ${Gt(D.dialShadow,v.circle.shadowOpacity)}`,transform:`scale(${p}) rotate(${C}deg)`,opacity:p>.01?1:0,overflow:"hidden"},children:[E("div",{style:{position:"absolute",inset:0,borderRadius:"50%",backgroundColor:D.dialGradient1,opacity:v.gradientLayers[0].opacity}}),E("div",{style:{position:"absolute",inset:0,top:"30%",left:"30%",borderRadius:"50%",backgroundColor:D.dialGradient2,opacity:v.gradientLayers[1].opacity}}),E("div",{style:{position:"absolute",inset:0,top:"50%",left:"50%",borderRadius:"50%",backgroundColor:D.dialGradient3,opacity:v.gradientLayers[2].opacity}}),Re.map(A=>E("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:v.grid.lineHeight,transform:`rotate(${A}deg)`,transformOrigin:"center"},children:["left","right"].map(w=>E("div",{style:{position:"absolute",top:0,[w]:0,width:`calc(50% - ${bt}px)`,height:v.grid.lineHeight,backgroundColor:D.dialGridLine}},w))},A)),E("div",{"data-testid":"dial-background","data-background":l,style:{position:"absolute",inset:0,pointerEvents:"none"},children:l==="hyperspace"?E(Qi,{size:L.circleSize}):E(Fi,{focus:ir})}),F.map((A,w)=>E(sr,{icon:A,index:w,totalIcons:F.length,position:fe[w],progress:S,onPress:()=>Xe(A)},w)),ge("div",{style:{position:"absolute",left:"50%",top:"50%",width:Oe,height:Oe,marginLeft:-Oe/2,marginTop:-Oe/2,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:D.hubHalo,borderRadius:L.buttonSize,overflow:"hidden",transform:`scale(${k*M})`,opacity:k>.01?1:0},children:[E("div",{style:{position:"absolute",inset:0,backgroundColor:D.dialGradient1,opacity:.5,borderRadius:L.buttonSize}}),E("div",{style:{position:"absolute",inset:0,top:"20%",left:"20%",backgroundColor:D.dialGradient2,opacity:.3,borderRadius:L.buttonSize}}),E("div",{style:{position:"absolute",inset:0,top:"40%",left:"40%",backgroundColor:D.dialGradient3,opacity:.2,borderRadius:L.buttonSize}}),E("div",{style:{width:Qe,height:Qe,borderRadius:L.buttonSize*v.centerButton.borderRadiusRatio,backgroundColor:D.hubFill,display:"flex",alignItems:"center",justifyContent:"center"},children:E("button",{ref:Z,type:"button","aria-label":n?"Close settings":"Open settings",disabled:!a,onClick:a,onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),style:{border:0,padding:0,background:"transparent",width:L.buttonSize,height:L.buttonSize,borderRadius:L.buttonSize/2,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:a?"pointer":"default",transform:_?`scale(${J.centerHover.scale})`:"scale(1)",transition:`transform ${J.centerHover.duration}ms ease`,animation:St&&!_?Se.pulse:"none"},children:n?ge("span",{style:{display:"flex",flexDirection:"column",alignItems:"center",fontSize:v.centerButton.text.fontSize-2,fontWeight:v.centerButton.text.fontWeight,fontFamily:v.centerButton.text.fontFamily,color:D.centerText,letterSpacing:v.centerButton.text.letterSpacing,textAlign:"center",textShadow:`0 0 4px ${D.centerTextGlow}`,textTransform:"uppercase",lineHeight:1.2},children:[E("span",{style:{marginBottom:-2},children:"CLOSE"}),E("span",{style:{marginTop:-2},children:"SETTINGS"})]}):E("span",{style:{fontSize:v.centerButton.text.fontSize,fontWeight:v.centerButton.text.fontWeight,fontFamily:v.centerButton.text.fontFamily,color:D.centerText,letterSpacing:v.centerButton.text.letterSpacing,textAlign:"center",textShadow:`0 0 4px ${D.centerTextGlow}`,textTransform:"uppercase"},children:o})})})]})]}),ae>1&&ge("div",{style:{position:"absolute",left:"50%",marginLeft:-L.circleSize/2,top:"calc(100% - 64px)",width:L.circleSize,display:"flex",alignItems:"center",justifyContent:"space-between",opacity:Math.min(1,p),transform:`scale(${Math.min(1,p)})`},children:[E(uo,{side:"prev",disabled:r<=0,onClick:()=>Ye(r-1)}),ge("span",{style:{padding:"6px 12px",fontSize:13,fontWeight:900,fontFamily:Xt,letterSpacing:2,color:D.centerText,textShadow:`0 0 6px ${D.centerTextGlow}`},children:[String(r+1).padStart(2,"0"),ge("span",{style:{color:D.iconLabelMuted,textShadow:"none"},children:[" / ",String(ae).padStart(2,"0")]})]}),E(uo,{side:"next",disabled:r>=ae-1,onClick:()=>Ye(r+1)})]}),je&&!n&&E(ro,{title:"Welcome to Buoy!",message:"Tap the center button to configure and add tools to your dial menu.",onDismiss:Ae,showArrow:false})]})}import{persistentStorage as mo,devToolsStorageKeys as lr}from"@buoy-gg/shared-ui/web";import{recordUsage as cr,pruneUsage as dr}from"@buoy-gg/floating-tools-core/web";var go=lr.dial.usage(),We={},fo=false,Tt=null;function ho(){return Tt||(Tt=(async()=>{try{let e=await mo.getItem(go);if(e){let t=JSON.parse(e);t&&typeof t=="object"&&(We=t)}}catch{}finally{fo=true}})(),Tt)}ho();function ur(e){return e.map((t,o)=>({id:t,index:o,lastUsed:We[t]?.lastUsed??0})).sort((t,o)=>o.lastUsed-t.lastUsed||t.index-o.index).map(({id:t})=>t)}async function pr(e){if(!e)return;fo||await ho();let t=Math.max(Date.now(),...Object.values(We).map(o=>o.lastUsed+1));We=dr(cr(We,e,t),t);try{await mo.setItem(go,JSON.stringify(We))}catch{}}import{useCallback as mr,useMemo as yo}from"react";import{persistentStorage as gr}from"@buoy-gg/shared-ui/web";import{useState as te,useEffect as Ie,useCallback as st,useMemo as lt}from"react";import{settingsEventBus as ct}from"@buoy-gg/floating-tools-core/web";import{useSyncExternalStore as fr}from"react";import{getRegisteredToolModule as hr}from"@buoy-gg/shared-ui/web";var yr=()=>()=>{},br=()=>null;function Sr(){let e=hr("@buoy-gg/external-sync");return fr(e?.subscribeSyncStatus??yr,()=>e?.getSyncStatus?.()??null,br)}import{SentryIcon as vr,WifiCircuitIcon as wr,ImageOverlayIcon as xr,RenderCountIcon as Cr,Info as It,Layers as Tr,ChevronRightIcon as bo,ChevronDown as So,getStorageBackendType as Ir,getUseLicense as zr,persistentStorage as ze,Trash2 as kr,CheckCircle2 as vo,LicenseEntryModal as Mr,BackgroundSwitcher as Rr,night as h,NightCard as ke,NightRows as zt,NightSectionLabel as Ar,NightFootnote as wo,NightSwitch as xo,NightButton as Co,NightSegmented as Or,NightBadge as ue,NightSeparator as Er,monoFont as To}from"@buoy-gg/shared-ui/web";import{EnvIcon as Io,StorageIcon as Dr,RoutesIcon as Br,NetworkIcon as Fr,QueryIcon as Pr,HighlighterIcon as Lr,ReduxIcon as $r,EventsIcon as Wr}from"@buoy-gg/floating-tools-core/web";import jr,{createContext as Hr,useContext as Nr}from"react";import{jsx as Kr}from"react/jsx-runtime";var zo=Hr({});function Ur({children:e,defaultFloatingTools:t,defaultDialTools:o}){let a=jr.useMemo(()=>({defaultFloatingTools:t,defaultDialTools:o}),[t,o]);return Kr(zo.Provider,{value:a,children:e})}function ko(){return Nr(zo)}import Vr from"react";import{toolTheme as _r}from"@buoy-gg/shared-ui/web";import{jsx as Mo}from"react/jsx-runtime";function qr({label:e,size:t,color:o=_r.colors.text}){let a=Math.max(Array.from(e.replace(/[\uFE00-\uFE0F\u200D]/g,"")).length,1),n=a<=2?t:t*1.6,i=Math.max(7,Math.min(t*(a===1?.7:.62),n/(.62*a)));return Mo("span",{style:{display:"inline-flex",minWidth:t,maxWidth:n,height:t,alignItems:"center",justifyContent:"center",color:o,fontSize:i,fontWeight:800,letterSpacing:.5,whiteSpace:"nowrap",overflow:"hidden"},children:e})}function Ro(e,t){return e==null?e:typeof e=="function"?Vr.createElement(e,{slot:t.slot,size:t.size,state:t.state,actions:t.actions}):typeof e=="string"||typeof e=="number"?Mo(qr,{label:String(e),size:t.size,color:t.color}):e}import{JsModal as Gr,devToolsStorageKeys as kt}from"@buoy-gg/shared-ui/web";import{useSafeAreaInsets as Jr}from"@buoy-gg/shared-ui/web";import{Fragment as Ke,jsx as c,jsxs as $}from"react/jsx-runtime";var dt="@react_buoy_dev_tools_settings",Xr=6,ut=e=>{let t=Xr,o={};for(let[a,n]of Object.entries(e))n&&t>0?(o[a]=true,t-=1):o[a]=false;return o},Yr=(e,t)=>{let{userStatus:o,environment:a,...n}=e,i=t?Object.entries(n).filter(([l])=>t.includes(l)):Object.entries(n);return{...Object.fromEntries(i),environment:a??false}},Ao=(e,t,o)=>{if(!t)return e;let a={...e.dialTools,...t.dialTools??{}},n=o?.allowedDialKeys?Object.entries(a).filter(([i])=>o.allowedDialKeys?.includes(i)):Object.entries(a);return{dialTools:ut(Object.fromEntries(n)),floatingTools:Yr({...e.floatingTools,...t.floatingTools??{}},o?.allowedFloatingKeys),globalSettings:{enableSharedModalDimensions:false,expandableWindowControls:true,...t.globalSettings??{}}}},Qr=(e=[],t,o)=>{let a={},n={},i=new Set(t??[]),l=new Set(o??[]),u=!o||o.length===0;for(let d of e){let{id:p,slot:m="both"}=d;(m==="dial"||m==="both")&&(a[p]=u?true:l.has(p)),(m==="row"||m==="both")&&(n[p]=i.has(p))}return{dialTools:ut(a),floatingTools:{...n,environment:i.has("environment")},globalSettings:{enableSharedModalDimensions:false,expandableWindowControls:true}}},Zr=({visible:e,onClose:t,onSettingsChange:o,initialSettings:a,availableApps:n=[],storage:i=ze,zIndex:l})=>{let{defaultFloatingTools:u,defaultDialTools:d}=ko(),p=lt(()=>Qr(n,u,d),[n,u,d]),m=lt(()=>Object.keys(p.dialTools),[p]),C=lt(()=>Object.keys(p.floatingTools).filter(s=>s!=="environment"),[p]),[g,k]=te(a||Ue||p),[y,S]=te(Mt??"floating"),[T,M]=te(Mt!==null),[B,_]=te(new Set),[x,z]=te(false),[P,I]=te(false);Ie(()=>{let s=requestAnimationFrame(()=>I(true));return()=>cancelAnimationFrame(s)},[]);let R=Sr();Ie(()=>{(async()=>{try{let s=await ze.getItem(kt.settings.activeTab());if(s&&["floating","settings","pro"].includes(s)){let f=s;Mt=f,S(O=>O===f?O:f)}}catch{}finally{M(true)}})()},[]),Ie(()=>{T&&ze.setItem(kt.settings.activeTab(),y).catch(s=>{console.warn("Failed to save settings active tab:",s)})},[y,T]);let oe=zr()?.(),Z=oe?.isPro??false,G=!Z&&oe?.licenseKey?oe.error:null,le=oe?.errorKind==="transport",[K,ne]=te(Oo),[J,Se]=te(false),[me,ve]=te(false),[L,Re]=te(false),[fe,re]=te([]),[we,ae]=te(false),r=Jr(),F=jt.get("window").height,W=jt.get("window").width,je=Math.floor(F*.33),Je=Math.min(W-32,400),Ae=st(async()=>{try{let s=await i.getItem(dt);if(s){let f=JSON.parse(s),O=Ao(p,f,{allowedDialKeys:m,allowedFloatingKeys:C});Ue=O,k(Y=>Eo(Y,O)?Y:O);return}Ue=p,k(f=>Eo(f,p)?f:p)}catch(s){console.error("Failed to load dev tools settings:",s),k(p)}},[p,m,C,i]);Ie(()=>{Ae()},[Ae]),Ie(()=>{Ir().then(s=>{Oo=s,ne(f=>f===s?f:s)})},[]),Ie(()=>{L&&(ae(true),ze.getAllKeys().then(s=>{re(s.sort())}).catch(()=>{re([])}).finally(()=>{ae(false)}))},[L]);let Xe=async s=>{try{let f={...s,dialTools:ut(s.dialTools)};await i.setItem(dt,JSON.stringify(f)),Ue=f,k(f),o?.(f),ct.emit(f)}catch(f){console.error("Failed to save dev tools settings:",f)}},Ye=s=>{let f={...g,floatingTools:{...g.floatingTools,[s]:!g.floatingTools[s]}};Xe(f)},Oe=s=>{let f={...g,globalSettings:{...g.globalSettings,[s]:!g.globalSettings?.[s]}};Xe(f)},Qe=async()=>{Se(true),ve(false);try{await ze.clear(),ve(true),k(p),i!==ze&&await i.setItem(dt,JSON.stringify(p)),o?.(p),ct.emit(p),setTimeout(()=>ve(false),2e3)}catch(s){console.error("Failed to clear storage:",s)}finally{Se(false)}},bt=st(s=>{},[]),St=s=>{let f=n.find(O=>O.id===s);return f?.description?f.description:s==="environment"?"Environment badge.":""},A=s=>s==="environment"?"Env Badge":n.find(f=>f.id===s)?.name??s.toUpperCase().replace(/_/g," "),w=s=>{if(!P)return null;switch(s){case"query":return c(Pr,{size:18});case"env":return c(Io,{size:18});case"sentry":return c(vr,{size:18,color:"#9945FF"});case"storage":return c(Dr,{size:18,bgColor:h.color.surface});case"wifi":case"query-wifi-toggle":return c(wr,{size:18,colorPreset:"green",strength:4,noBackground:true});case"route-events":return c(Br,{size:18,bgColor:h.color.surface});case"network":return c(Fr,{size:18});case"environment":return c(Io,{size:18});case"debug-borders":return c(Tr,{size:18,color:h.color.accent});case"highlight-updates":return c(Cr,{size:18,color:h.color.accent});case"highlight-updates-modal":return c(Lr,{size:18});case"redux":return c($r,{size:18});case"image-overlay":return c(xr,{size:18});case"events":return c(Wr,{size:18});case"zustand":try{let{ZustandIcon:f}=Nt("@buoy-gg/zustand/web");return c(f,{size:18})}catch{return c(It,{size:18,color:h.color.textSecondary})}case"jotai":try{let{JotaiIcon:f}=Nt("@buoy-gg/jotai/web");return c(f,{size:18})}catch{return c(It,{size:18,color:h.color.textSecondary})}default:{let f=n.find(O=>O.id===s);return f?.icon!=null?Ro(f.icon,{slot:"row",size:18,color:f.color}):c(It,{size:18,color:h.color.textSecondary})}}},X=(s,f,O,Y)=>{let he=St(s);return $(Ze,{activeOpacity:O?1:.7,onPress:()=>!O&&Y(),accessibilityLabel:A(s),accessibilityRole:"button",style:[b.toolRow,O&&b.rowDisabled],children:[c(j,{style:b.toolIconSlot,children:w(s)}),$(j,{style:b.rowInfo,children:[$(N,{style:b.rowLabel,children:[A(s),O?" \xB7 max 6":""]}),he?c(N,{style:b.rowCaption,numberOfLines:1,children:he}):null]}),c(xo,{value:f,disabled:O,onValueChange:()=>Y()})]},s)},H=s=>{_(f=>{let O=new Set(f);return O.has(s)?O.delete(s):O.add(s),O})},q=(s,f,O,Y,he)=>{let ye=g.globalSettings?.[s]??false,Ee=B.has(s);return $(j,{children:[$(Ze,{activeOpacity:.7,onPress:()=>H(s),accessibilityLabel:f,style:b.settingRow,children:[$(j,{style:b.rowInfo,children:[c(N,{style:b.rowLabel,children:f}),c(N,{style:b.rowCaption,numberOfLines:Ee?0:1,children:O})]}),c(xo,{value:ye,onValueChange:()=>Oe(s)})]}),Ee&&$(j,{style:b.settingRowBody,children:[c(N,{style:b.settingRowBodyText,children:Y}),c(N,{style:b.settingRowBodyHint,children:he})]})]},s)},U=(s,f,O)=>$(j,{children:[c(Ar,{children:s}),f,O]}),ee=K==="filesystem"?c(ue,{label:"File System",tone:"accent"}):K==="asyncstorage"?c(ue,{label:"Async Storage",tone:"warning"}):K==="localstorage"?c(ue,{label:"Local Storage",tone:"accent"}):K==="memory"?c(ue,{label:"Memory",tone:"danger"}):c(ue,{label:"Loading\u2026",tone:"neutral"}),ce=()=>$(j,{style:b.container,children:[$(Wt,{style:b.scrollContent,showsVerticalScrollIndicator:false,contentContainerStyle:b.scrollContainer,children:[y==="floating"&&c(Ke,{children:U("Floating Tools",c(ke,{glass:true,children:c(zt,{children:Object.entries(g.floatingTools).map(([s,f])=>X(s,f,false,()=>Ye(s)))})}),c(wo,{children:"Tools switched on here appear in the floating bubble row."}))}),y==="settings"&&$(Ke,{children:[U("Background",c(ke,{glass:true,padded:true,children:c(Rr,{embedded:true})})),U("Storage",$(ke,{glass:true,children:[$(Ze,{activeOpacity:.7,onPress:()=>Re(!L),accessibilityLabel:"Storage Type",style:b.settingRow,children:[c(j,{style:b.rowInfo,children:c(N,{style:b.rowLabel,children:"Storage Type"})}),ee,L?c(So,{size:16,color:h.color.textTertiary}):c(bo,{size:16,color:h.color.textTertiary})]}),L&&$(Ke,{children:[$(j,{style:b.settingRowBody,children:[c(N,{style:b.settingRowBodyText,children:K==="filesystem"?"Settings persist independently and survive AsyncStorage.clear() calls during logout.":K==="asyncstorage"?"Settings may be lost if AsyncStorage is cleared during logout.":K==="localstorage"?"Settings are saved in this browser. Clearing site data removes them.":K==="memory"?"Settings are stored in memory only and will be lost on app restart.":"Checking storage backend\u2026"}),K==="asyncstorage"&&c(N,{style:[b.settingRowBodyText,b.bodyWarning],children:"Install expo-file-system to persist settings through logout flows."}),K==="memory"&&c(N,{style:[b.settingRowBodyText,b.bodyDanger],children:"No persistent storage available \u2014 install expo-file-system (best) or @react-native-async-storage/async-storage."})]}),c(Er,{}),$(j,{style:b.storageExpanded,children:[$(j,{style:b.storageExpandedHeader,children:[c(N,{style:b.storageExpandedTitle,children:"SAVED SETTINGS"}),c(N,{style:b.storageExpandedCount,children:we?"\u2026":`${fe.length} keys`})]}),we?c(N,{style:b.storageKeyEmpty,children:"Loading\u2026"}):fe.length===0?c(N,{style:b.storageKeyEmpty,children:"No settings saved yet"}):c(Wt,{style:b.storageKeysList,nestedScrollEnabled:true,showsVerticalScrollIndicator:true,children:fe.map(s=>c(j,{style:b.storageKeyItem,children:c(N,{style:b.storageKeyText,numberOfLines:1,children:s.replace("@react_buoy_","")})},s))})]}),c(j,{style:b.cardButtonWrap,children:c(Co,{label:me?"Cleared":J?"Clearing\u2026":"Clear All Settings",variant:me?"secondary":"destructive",size:"md",disabled:J,onPress:Qe,icon:me?c(vo,{size:15,color:h.color.accent}):c(kr,{size:15,color:J?h.color.textTertiary:h.color.danger})})})]})]})),R&&R.state!=="idle"&&U("Desktop Sync",$(ke,{glass:true,children:[$(Ze,{activeOpacity:.7,onPress:()=>H("desktopSync"),accessibilityLabel:"Buoy Desktop",style:b.settingRow,children:[c(j,{style:b.rowInfo,children:c(N,{style:b.rowLabel,children:"Buoy Desktop"})}),R.state==="connected"?c(ue,{label:"Connected",tone:"accent"}):R.state==="connecting"?c(ue,{label:"Connecting\u2026",tone:"neutral"}):c(ue,{label:"Retrying",tone:"warning"}),B.has("desktopSync")?c(So,{size:16,color:h.color.textTertiary}):c(bo,{size:16,color:h.color.textTertiary})]}),B.has("desktopSync")&&$(j,{style:b.settingRowBody,children:[$(N,{style:b.settingRowBodyText,children:[R.state==="connected"?"Streaming tool data to Buoy Desktop at ":"Trying to reach Buoy Desktop at ",c(N,{style:b.footnoteMono,children:R.targetURL??"(unknown URL)"}),R.state!=="connected"&&" \u2014 is the desktop app running? Override with the externalSync socketURL option if it runs elsewhere."]}),R.state==="retrying"&&R.lastError&&$(N,{style:[b.settingRowBodyText,b.bodyWarning],children:["Last error: ",R.lastError]})]})]})),U("Modal Behavior",c(ke,{glass:true,children:$(zt,{children:[q("enableSharedModalDimensions","Shared Modal Size","Sync dimensions across all tools","When enabled, all tool modals will share the same size and position. Resizing one modal will affect all others. When disabled, each tool remembers its own size and position independently.","Keep OFF for the best experience. This allows you to customize each tool's modal size separately."),De.OS!=="web"?q("expandableWindowControls","Expand Controls","iPad-style expandable window buttons","When enabled, the window control buttons (minimize, toggle mode, close) start as small dots and expand into larger, easy-to-tap buttons when pressed. When disabled, buttons are directly tappable at their small size.","Keep ON for touch devices where the small buttons are hard to press. Turn OFF if you prefer direct single-tap access."):null]})}))]}),y==="pro"&&$(Ke,{children:[U("License",c(ke,{glass:true,children:$(j,{style:b.settingRow,children:[c(j,{style:b.rowInfo,children:c(N,{style:b.rowLabel,children:"License Status"})}),c(j,{testID:"buoy-settings-license-status",accessibilityLabel:Z?"License: Active":"License: Free",children:Z?c(ue,{label:"Active",tone:"accent"}):c(ue,{label:"Free",tone:"neutral"})})]})}),c(wo,{children:Z?"You have full access to all Buoy DevTools features.":G?le?`Couldn't reach the license server (${G}). A VPN or corporate proxy can block buoy.gg \u2014 turn it off and reload. Your key hasn't been rejected.`:`License check failed: ${G}.`:"Upgrade to Pro to unlock all features and support development."})),!Z&&$(Ke,{children:[U("Pro Features",c(ke,{glass:true,children:c(zt,{children:["Advanced Settings","Priority Support"].map(s=>$(j,{style:b.featureRow,children:[c(vo,{size:16,color:h.color.accent}),c(N,{style:b.rowLabel,children:s})]},s))})})),c(Co,{label:"Upgrade to Pro",variant:"primary",size:"lg",onPress:()=>z(true)})]})]})]}),c(Mr,{visible:x,onClose:()=>z(false),onSuccess:()=>z(false)})]});return c(Gr,{visible:e,onClose:t,zIndex:l,variant:"night",header:{showToggleButton:false,customContent:c(j,{style:b.headerRow,children:c(Or,{glass:true,tabs:[{key:"floating",label:"Floating"},{key:"settings",label:"Settings"},{key:"pro",label:"Pro"}],activeKey:y,onChange:s=>S(s)})})},initialMode:"bottomSheet",onModeChange:bt,persistenceKey:kt.settings.root(),enablePersistence:true,maxHeight:F-r.top,initialHeight:je,initialFloatingPosition:{x:(W-Je)/2,y:r.top+20},enableGlitchEffects:true,children:ce()})},es={dialTools:{},floatingTools:{environment:false},globalSettings:{enableSharedModalDimensions:false}},ts=(e,t)=>{let o=new Set(e??[]),a=new Set(t??[]),n={};for(let l of a)n[l]=true;let i={environment:o.has("environment")};for(let l of o)l!=="environment"&&(i[l]=true);return{dialTools:ut(n),floatingTools:i,globalSettings:{enableSharedModalDimensions:false}}},Ue=null,Mt=null,Oo=null,Eo=(e,t)=>JSON.stringify(e)===JSON.stringify(t);ct.addListener(e=>{e&&(Ue=e)});var os=()=>{let{defaultFloatingTools:e,defaultDialTools:t}=ko(),o=lt(()=>!e&&!t?es:ts(e,t),[e,t]),[a,n]=te(o),i=st(async()=>{try{let u=await ze.getItem(dt);if(u){let d=JSON.parse(u),p=Ao(o,d);n(p);return}n(o)}catch(u){console.error("Failed to load dev tools settings:",u),n(o)}},[o]);Ie(()=>{i();let u=ct.addListener(d=>{try{d&&n(d)}catch{}});return()=>{u()}},[i]);let l=st(()=>{i()},[i]);return{settings:a,refreshSettings:l}},b=Ht.create({container:{flex:1,backgroundColor:"transparent"},headerRow:{flexDirection:"row",alignItems:"center",paddingLeft:h.gutter,paddingRight:h.gutter,paddingBottom:8},scrollContent:{flex:1},scrollContainer:{paddingHorizontal:h.gutter,paddingTop:8,paddingBottom:24,gap:h.groupGap},toolRow:{flexDirection:"row",alignItems:"center",gap:12,paddingHorizontal:h.rowPadH,paddingVertical:12},settingRow:{flexDirection:"row",alignItems:"center",gap:10,paddingHorizontal:h.rowPadH,paddingVertical:h.rowPadV,minHeight:52},featureRow:{flexDirection:"row",alignItems:"center",gap:10,paddingHorizontal:h.rowPadH,paddingVertical:12},rowDisabled:{opacity:.4},toolIconSlot:{width:24,alignItems:"center"},rowInfo:{flex:1,gap:2},rowLabel:{color:h.color.text,fontSize:h.font.row,fontWeight:"500"},rowCaption:{color:h.color.textTertiary,fontSize:h.font.label},settingRowBody:{paddingHorizontal:h.rowPadH,paddingBottom:h.rowPadV,gap:6},settingRowBodyText:{color:h.color.textSecondary,fontSize:h.font.caption,lineHeight:h.font.caption*1.45},settingRowBodyHint:{color:h.color.textTertiary,fontSize:h.font.caption,lineHeight:h.font.caption*1.45},bodyWarning:{color:h.color.warning},bodyDanger:{color:h.color.danger},cardButtonWrap:{paddingHorizontal:h.cardPad,paddingTop:10,paddingBottom:h.cardPad},storageExpanded:{paddingHorizontal:h.rowPadH,paddingVertical:12,gap:8},storageExpandedHeader:{flexDirection:"row",alignItems:"center"},storageExpandedTitle:{flex:1,color:h.color.textSecondary,fontSize:h.font.micro,fontWeight:"600",letterSpacing:.5},storageExpandedCount:{color:h.color.textTertiary,fontSize:h.font.micro},storageKeysList:{maxHeight:150},storageKeyItem:{backgroundColor:h.color.glassElevated,borderRadius:h.radius.segment,paddingHorizontal:10,paddingVertical:7,marginBottom:4},storageKeyText:{color:h.color.textSecondary,fontSize:h.font.micro,fontFamily:To},storageKeyEmpty:{color:h.color.textTertiary,fontSize:h.font.caption,fontStyle:"italic"},footnoteMono:{fontFamily:To,fontSize:h.font.label,color:h.color.textSecondary}});import{jsx as Do}from"react/jsx-runtime";var ns=[];function Bo({visible:e,onClose:t,availableTools:o=ns,defaultFloatingTools:a,defaultDialTools:n,storage:i=gr,onSettingsChange:l}){let u=yo(()=>({getItem:async m=>i.getItem(m),setItem:async(m,C)=>i.setItem(m,C)}),[i]),d=yo(()=>o.map(m=>({...m,name:m.name??m.id,icon:typeof m.icon=="function"?C=>m.icon(C.size):m.icon})),[o]),p=mr(m=>{l?.(m)},[l]);return Do(Ur,{defaultFloatingTools:a,defaultDialTools:n,children:Do(Zr,{visible:e,onClose:t,zIndex:11e3,availableApps:d,storage:u,onSettingsChange:p})})}import{persistentStorage as Fo}from"@buoy-gg/shared-ui/web";import{createContext as as,useCallback as be,useContext as is,useEffect as Rt,useMemo as rs,useRef as Ve,useState as Po}from"react";var ss=(e,t,o)=>{if(t.singleton){let n=e.find(i=>i.id===t.id);if(n){let i=n.minimized??false;return{instanceId:n.instanceId,wasMinimized:i,apps:[...e.filter(l=>l.instanceId!==n.instanceId),{...n,minimized:false}]}}}let a=o();return{instanceId:a,wasMinimized:false,apps:[...e,{...t,instanceId:a}]}};import{createContext as ls,useCallback as Lo,useContext as cs,useEffect as pt,useMemo as ds,useRef as $o,useState as mt}from"react";import{JsModal as us,ModalHeader as _e,HeaderSearchButton as ps,TickProvider as ms,devToolsStorageKeys as Wo,buoyColors as jo,gameUIColors as At}from"@buoy-gg/shared-ui/web";import{jsx as se,jsxs as gt}from"react/jsx-runtime";var qe=()=>{},gs={search:"",isSearchActive:false,clearSearch:qe,close:qe,minimize:qe,showToast:qe,setHeaderOverride:qe},Ho=ls(null);function No(){return cs(Ho)??gs}function fs(e,t){let{setHeaderOverride:o}=No();pt(()=>(o(e),()=>o(null)),t)}var Ko=2200,hs={success:At.success,error:At.error,info:At.info};function ys({message:e,type:t,nonce:o}){let a=$o(new xe.Value(0)).current;pt(()=>{a.setValue(0),xe.sequence([xe.timing(a,{toValue:1,duration:150,useNativeDriver:true}),xe.delay(Ko-450),xe.timing(a,{toValue:0,duration:300,useNativeDriver:true})]).start()},[o,a]);let n=hs[t];return gt(xe.View,{pointerEvents:"none",style:[ft.toast,{opacity:a,borderColor:n+"60"}],children:[se(j,{style:[ft.toastDot,{backgroundColor:n}]}),se(N,{style:ft.toastText,numberOfLines:2,children:e})]})}function bs({app:e,config:t,visible:o,zIndex:a,onClose:n,onMinimize:i,initialModalState:l,enableSharedModalDimensions:u,bodyProps:d}){let p=e.component,[m,C]=mt(false),[g,k]=mt(""),[y,S]=mt(null),[T,M]=mt(null),B=$o(null),_=Lo(()=>{C(false),k("")},[]),x=Lo((K,ne="info")=>{B.current&&clearTimeout(B.current),M(J=>({message:K,type:ne,nonce:(J?.nonce??0)+1})),B.current=setTimeout(()=>M(null),Ko)},[]);pt(()=>()=>{B.current&&clearTimeout(B.current)},[]);let z=ds(()=>({search:m?g:"",isSearchActive:m,clearSearch:_,close:n,minimize:()=>i(),showToast:x,setHeaderOverride:S,instanceId:e.instanceId}),[g,m,_,n,i,x,e.instanceId]),P=y?.title??t.title??e.title??e.id,I=y?.subtitle??t.subtitle,R=y?.onBack,oe=y?.actions??t.headerActions,Z=y?.searchable??t.searchable;pt(()=>{!Z&&m&&_()},[Z,m,_]);let G=u?Wo.modal.root():Wo.custom(e.id).modal(),le=gt(_e,{children:[R&&!m&&se(_e.Navigation,{onBack:R}),m?se(_e.Search,{value:g,onChangeText:k,onCancel:_,placeholder:t.searchPlaceholder,testID:`tool-search-field-${e.id}`}):se(_e.Content,{title:P,subtitle:I}),gt(_e.Actions,{children:[!m&&oe,Z&&!m&&se(ps,{variant:"chip",testID:`tool-search-${e.id}`,onPress:()=>C(true)})]})]});return se(Ho.Provider,{value:z,children:se(us,{visible:o,onClose:n,onBack:R,onMinimize:i,initialModalState:l,zIndex:a,persistenceKey:G,enablePersistence:true,initialMode:t.initialMode??"bottomSheet",header:{customContent:le,showToggleButton:true},disableScrollWrapper:true,styles:{},children:gt(j,{style:ft.bodyRoot,children:[se(ms,{children:se(p,{...d})}),T&&se(ys,{message:T.message,type:T.type,nonce:T.nonce})]})})})}var ft=Ht.create({bodyRoot:{flex:1,minHeight:0,backgroundColor:"transparent"},toast:{position:"absolute",bottom:16,alignSelf:"center",flexDirection:"row",alignItems:"center",gap:8,maxWidth:"86%",backgroundColor:jo.card,borderWidth:1,borderRadius:8,paddingHorizontal:12,paddingVertical:8,shadowColor:"#000",shadowOpacity:.4,shadowRadius:8,shadowOffset:{width:0,height:2},elevation:6},toastDot:{width:6,height:6,borderRadius:3},toastText:{flex:1,fontSize:12,color:jo.text}});import{Fragment as Ss,jsx as pe}from"react/jsx-runtime";var Uo=as(null),Vo="@react_buoy_open_apps",Ot=44,vs=12,ws=100,xs=16,Cs=e=>({x:window.innerWidth-Ot-xs,y:window.innerHeight-ws-Ot-e*(Ot+vs)}),_o=({children:e})=>{let[t,o]=Po([]),[a,n]=Po(false),i=Ve([]),l=Ve(null),u=Ve(false),d=Ve(false),p=Ve(false),m=be(x=>{let z="";return o(P=>{let{apps:I,instanceId:R}=ss(P,x,()=>`${x.id}-${Date.now()}-${Math.random().toString(36).slice(2)}`);return z=R,I}),z},[]),C=be(()=>{if(u.current||!d.current||!p.current)return;u.current=true;let x=l.current;if(!x||x.length===0){n(true);return}l.current=null,x.forEach(({id:z,minimized:P})=>{let I=i.current.find(R=>R.id===z);if(I&&I.component){let R=Ro(I.icon,{slot:"dial",size:20,color:I.color});m({id:I.id,title:I.name,component:I.component,props:I.props,modal:I.modal,launchMode:I.launchMode||"self-modal",singleton:I.singleton??true,icon:R,color:I.color,minimized:P})}}),n(true)},[m]);Rt(()=>{let x=false;return(async()=>{try{let z=await Fo.getItem(Vo);if(x)return;if(z){let P=JSON.parse(z),I;Array.isArray(P)&&P.length>0&&(typeof P[0]=="string"?I=P.map(R=>({id:R,minimized:false})):I=P.filter(R=>typeof R=="object"&&R!==null&&typeof R.id=="string"),I.length&&(l.current=I))}}catch{}x||(d.current=true,C())})(),()=>{x=true}},[C]),Rt(()=>{if(!a)return;let x=t.map(z=>({id:z.id,minimized:z.minimized??false}));Fo.setItem(Vo,JSON.stringify(x))},[t,a]);let g=be(x=>{i.current=x,p.current=true,C()},[C]),k=be(x=>{o(z=>z.length?x?z.filter(P=>P.instanceId!==x):z.slice(0,-1):z)},[]),y=be(()=>o([]),[]),S=be((x,z)=>{o(P=>P.map(I=>I.instanceId===x?{...I,minimized:true,restoreState:z}:I))},[]),T=be((x,z)=>{o(P=>P.map(I=>I.instanceId===x?{...I,minimized:false,restoreState:z??I.restoreState}:I))},[]),M=be(x=>t.find(z=>z.instanceId===x)?.minimized??false,[t]),B=t.some(x=>x.launchMode!=="toggle-only"&&!x.minimized);Rt(()=>{if(!B)return;let x=z=>{if(z.key!=="Escape"||z.defaultPrevented)return;let P=[...t].reverse().find(I=>I.launchMode!=="toggle-only"&&!I.minimized);P&&k(P.instanceId)};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[B,k,t]);let _=rs(()=>({openApps:t,isAnyOpen:B,open:m,close:k,closeAll:y,registerApps:g,minimize:S,restore:T,isMinimized:M}),[t,B,m,k,y,g,S,T,M]);return pe(Uo.Provider,{value:_,children:e})},ht=()=>{let e=is(Uo);return e||{openApps:[],isAnyOpen:false,open:()=>"",close:()=>{},closeAll:()=>{},registerApps:()=>{},minimize:()=>{},restore:()=>{},isMinimized:()=>false}},Ts=9e3,Is={position:"fixed",inset:0,backgroundColor:"rgba(0,0,0,0.28)",display:"flex",alignItems:"center",justifyContent:"center"},zs={maxHeight:"90%",width:"94%",borderRadius:12,backgroundColor:"white",overflow:"hidden"},ks=({app:e,zIndex:t,onClose:o,onMinimize:a,minimizeTargetPosition:n,enableSharedModalDimensions:i})=>{let l=e.component,u=!e.minimized,d={...e.props??{},...i?{enableSharedModalDimensions:true}:{}};return e.modal&&(!e.launchMode||e.launchMode==="self-modal")?pe(bs,{app:e,config:e.modal,visible:u,zIndex:t,onClose:o,onMinimize:a,initialModalState:e.restoreState,enableSharedModalDimensions:i,bodyProps:d}):e.launchMode==="self-modal"?pe(l,{...d,visible:u,onClose:o,onRequestClose:o,onMinimize:a,minimizeTargetPosition:n,instanceId:e.instanceId,zIndex:t,initialModalState:e.restoreState}):e.launchMode==="inline"?u?pe("div",{style:{position:"fixed",inset:0,zIndex:t,pointerEvents:"none"},children:pe(l,{...d,onClose:o,onMinimize:a,minimizeTargetPosition:n,instanceId:e.instanceId})}):null:pe("div",{style:{...Is,zIndex:t,display:u?"flex":"none"},children:pe("div",{style:zs,children:pe(l,{...d,onClose:o,onMinimize:a,minimizeTargetPosition:n,instanceId:e.instanceId})})})},qo=()=>{let{openApps:e,close:t,minimize:o}=ht(),{settings:a}=os(),n=e.filter(u=>u.launchMode!=="toggle-only");if(n.length===0)return null;let i=n.filter(u=>u.minimized).length,l=zi()??Cs(i);return pe(Ss,{children:n.map((u,d)=>pe(ks,{app:u,zIndex:Ts+d,onClose:()=>t(u.instanceId),onMinimize:p=>o(u.instanceId,p),enableSharedModalDimensions:a.globalSettings?.enableSharedModalDimensions===true,minimizeTargetPosition:l},u.instanceId))})};import{useCallback as Ms,useEffect as Et,useRef as Rs,useState as Go,useSyncExternalStore as Jo}from"react";import{persistentStorage as Xo,getToolAttention as Dt,subscribeToolAttention as Yo}from"@buoy-gg/shared-ui/web";import{jsx as ie,jsxs as yt}from"react/jsx-runtime";function As(e){return Jo(Yo,()=>Dt(e),()=>Dt(e))}var Qo={needsInput:"#FF8329",done:"#20C997",failed:"#FF3B30"},Zo={needsInput:3,failed:2,done:1},en=new Map;function tn(e){let t=null;for(let a of e?e.split("|"):[]){let n=Dt(a);n&&(!t||Zo[n.kind]>Zo[t.kind])&&(t=n)}let o=en.get(e);return o&&t&&o.kind===t.kind&&o.label===t.label?o:!o&&!t?null:(en.set(e,t),t)}function Os(e){let t=e.join("|");return Jo(Yo,()=>tn(t),()=>tn(t))}var on=28,Bt=32,Ft=6,nn=8,an=24,rn="@react_buoy_minimized_stack_expanded",Es=80,sn=2e3,Ds=6e3,Bs="#1A1A1A",Ge="#888888";function ln({down:e=false}){return ie("svg",{width:12,height:12,viewBox:"0 0 24 24","aria-hidden":"true",style:{transform:e?"rotate(180deg)":void 0},children:ie("path",{d:"M18 15l-6-6-6 6",fill:"none",stroke:Ge,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function Fs({id:e,title:t,icon:o,index:a,onPress:n}){let i=As(e),l=Rs(null);return Et(()=>{let u=true,d,p=()=>{l.current?.animate([{transform:"translateX(0) scale(1)",opacity:1,offset:0},{transform:"translateX(3px) scale(1.05)",opacity:.4,offset:.2},{transform:"translateX(-3px) scale(1.1)",opacity:1,offset:.4},{transform:"translateX(2px) scale(1.0)",opacity:.6,offset:.6},{transform:"translateX(-1px) scale(0.95)",opacity:1,offset:.8},{transform:"translateX(0) scale(1)",opacity:1,offset:1}],{duration:Es,easing:"linear"})},m=C=>{let g=C?500+Math.random()*1500+a*200:sn+Math.random()*(Ds-sn)+a*300;d=setTimeout(()=>{u&&(p(),m(false))},g)};return m(true),()=>{u=false,clearTimeout(d)}},[a]),yt("button",{type:"button","aria-label":i?`${t} \u2014 ${i.label}. Restore`:`Restore ${t}`,onClick:n,style:{width:Bt,height:Bt,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",padding:0,cursor:"pointer",position:"relative"},children:[ie("div",{ref:l,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:o}),i?ie("span",{"aria-hidden":true,"data-testid":`buoy-dock-badge-${e}-${i.kind}`,style:{position:"absolute",top:0,right:0,minWidth:12,height:12,borderRadius:6,padding:"0 2px",boxSizing:"border-box",background:Qo[i.kind],border:"1.5px solid #0C0C0C",color:"#000",fontSize:8,fontWeight:800,lineHeight:"9px",display:"flex",alignItems:"center",justifyContent:"center"},children:i.kind==="needsInput"?"!":""}):null]})}function Ps({containerWidth:e=32}){let{openApps:t,restore:o}=ht(),a=t.filter(g=>g.minimized&&g.launchMode!=="toggle-only"),[n,i]=Go(false),[l,u]=Go(false),d=Os(a.map(g=>g.id));Et(()=>{let g=false;return(async()=>{let k=await Xo.getItem(rn);!g&&k==="true"&&i(true),g||u(true)})(),()=>{g=true}},[]),Et(()=>{l&&Xo.setItem(rn,n?"true":"false")},[n,l]);let p=Ms(g=>{o(g)},[o]);if(a.length===0)return null;let m=nn+a.length*Bt+(a.length-1)*Ft+Ft+an+4,C={backgroundColor:Bs,borderTopLeftRadius:6,borderTopRightRadius:6,borderTop:`1px solid ${Ge}66`,borderLeft:`1px solid ${Ge}66`,borderRight:`1px solid ${Ge}66`,borderBottom:"none",boxSizing:"border-box"};return yt("div",{style:{height:on,overflow:"visible",position:"relative"},children:[ie("div",{style:{position:"absolute",bottom:"var(--buoy-stack-bottom, 0px)",top:"var(--buoy-stack-top, auto)",left:0,width:e,maxHeight:"var(--buoy-stack-space, calc(100vh - 48px))",visibility:n?"visible":"hidden",height:n?m:0,opacity:n?1:0,overflowY:"auto",overflowX:"hidden",transition:"height 200ms ease, opacity 200ms ease",pointerEvents:n?"auto":"none",...C},children:yt("div",{style:{height:m,display:"flex",flexDirection:"column",alignItems:"center",paddingTop:nn,gap:Ft,boxSizing:"border-box"},children:[[...a].reverse().map((g,k)=>ie(Fs,{id:g.id,title:g.title||g.id,icon:g.icon??ie("span",{style:{color:"#fff",fontSize:13},children:(g.title||g.id).slice(0,1).toUpperCase()}),index:k,onPress:()=>p(g.instanceId)},g.instanceId)),ie("button",{type:"button","aria-label":"Collapse",onClick:()=>i(false),style:{width:"100%",height:an,marginTop:3,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0},children:ie(ln,{down:true})})]})}),yt("button",{type:"button","aria-label":`Show ${a.length} minimized tools`,tabIndex:n?-1:0,"aria-hidden":n,onClick:()=>i(true),style:{position:"absolute",bottom:0,left:0,width:e,height:on,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:2,cursor:"pointer",padding:0,opacity:n?0:1,transform:n?"scale(0.9)":"scale(1)",transition:"opacity 200ms ease, transform 200ms ease",pointerEvents:n?"none":"auto",...C},children:[ie(ln,{}),d?ie("span",{"aria-hidden":true,"data-testid":"buoy-dock-peek-attention",style:{position:"absolute",top:2,right:2,minWidth:11,height:11,borderRadius:6,padding:"0 2px",boxSizing:"border-box",background:Qo[d.kind],border:"1.5px solid #0C0C0C",color:"#000",fontSize:8,fontWeight:800,lineHeight:"9px",display:"flex",alignItems:"center",justifyContent:"center"},children:d.kind==="needsInput"?"!":""}):null,a.length>1&&ie("span",{style:{fontSize:9,fontWeight:600,color:Ge,marginLeft:1},children:a.length})]})]})}import{registerToolModules as Ls}from"@buoy-gg/shared-ui/web";import{createElement as $s}from"react";function cn(e){let t=e.icon;return{...e,icon:typeof t=="function"?o=>$s(t,{size:o,slot:e.slot??"both",color:e.color}):()=>t}}import{createContext as Ws,useContext as js,useState as dn,useMemo as un}from"react";import{jsx as Hs}from"react/jsx-runtime";var pn=Ws(null);function mn({children:e}){let[t,o]=dn(false),[a,n]=dn(false),i=un(()=>t||a,[t,a]),l=un(()=>({isDialOpen:t,isToolOpen:a,isDevToolsActive:i,setDialOpen:o,setToolOpen:n}),[t,a,i]);return Hs(pn.Provider,{value:l,children:e})}function Pt(){let e=js(pn);return e||{isDialOpen:false,isToolOpen:false,isDevToolsActive:false,setDialOpen:()=>{},setToolOpen:()=>{}}}import*as Ns from"@buoy-gg/license/web";import*as Ks from"@buoy-gg/shared-ui/web";import*as Us from"@buoy-gg/shared-ui/web/dataViewer";function gn(e){Ls({core:{useDevToolsVisibility:Pt},license:Ns,"shared-ui":Ks,"shared-ui/dataViewer":Us,...e});let t=new Set;return Object.values(e).flatMap(o=>Object.entries(o).flatMap(([a,n])=>!a.endsWith("Preset")||!n||typeof n.id!="string"||!n.component||t.has(n.id)?[]:(t.add(n.id),[cn(n)])))}import{useEffect as Lt,useMemo as fn,useRef as Vs}from"react";import{LicenseManager as _s,useLicense as qs}from"@buoy-gg/license/web";import{registerToolAdapters as Gs}from"@buoy-gg/shared-ui/web";function hn(e){return typeof e=="object"&&e!==null?e:void 0}function Js({isDevelopment:e,isLicensed:t,externalSync:o,isAvailable:a}){return o===false||!a?false:e?true:t&&hn(o)?.enableInRelease===true}import{useEffect as Xs,useMemo as Ys,useState as Qs}from"react";import{devToolsStorageKeys as Zs,persistentStorage as el}from"@buoy-gg/shared-ui/web";var tl=8;function ol(){let e="";for(;e.length<tl;)e+=(Math.random()*16|0).toString(16);return e}function nl(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function al({appName:e,hardwareName:t,platform:o,installId:a,deviceId:n}){let i=nl(e??"buoy")||"buoy",l=e??"Buoy Device",u=t?.trim()||o;return n?{deviceId:n,deviceName:`${l} (${u})`}:{deviceId:`${i}-${o}-${a}`,deviceName:`${l} (${u} \xB7 ${a.slice(-4)})`}}function il(){let e=globalThis;try{return e.sessionStorage??null}catch{return null}}async function rl({platform:e=De.OS,store:t,mint:o=ol}={}){let a=Zs.sync.deviceId(),n=t===void 0?e==="web"?il():el:t;if(!n)return o();try{let i=await n.getItem(a);if(i&&i.length>0)return i;let l=o();return await n.setItem(a,l),l}catch{return o()}}var $t=null;function sl(){return $t||($t=rl()),$t}function ll(e,t){let o=e?.deviceId,a=e?.deviceName,n=t.loadId??sl,i=t.platform??De.OS,[l,u]=Qs(null);return Xs(()=>{if(o)return;let d=false;return n().then(p=>{d||u(p)}),()=>{d=true}},[o,n]),Ys(()=>{if(!o&&!l)return null;let d=al({appName:t.appName,hardwareName:t.hardwareName,platform:i,installId:l??"",deviceId:o});return a?{...d,deviceName:a}:d},[o,a,l,t.appName,t.hardwareName,i])}import{getDevServerOrigin as cl,resolveReloadStrategy as dl,scheduleReloadApp as ul}from"@buoy-gg/shared-ui/web";var yn=Date.now(),bn=cl(),pl={platform:De.OS,isTV:De.isTV===true,isTVOS:De.isTVOS===true},Sn={version:3,getSnapshot:()=>{let e=dl("auto");return{startedAt:yn,devServerOrigin:bn,device:pl,reload:{available:e!==null,strategy:e}}},subscribe:e=>()=>{},actions:{ping:()=>({ok:true,startedAt:yn,devServerOrigin:bn}),reloadApp:e=>{let t=e??{},{strategy:o,delayMs:a}=ul({strategy:t.strategy,delayMs:t.delayMs});return{scheduled:true,strategy:o,delayMs:a}}}};import{Fragment as ml,jsx as Me,jsxs as gl}from"react/jsx-runtime";var fl=["ConsoleRoot","RouteTracker","ReactQueryTracker","ReduxAutoInstrument","PerfMonitorRoot","AutomationResumer","ImagesRoot"],hl=["DebugBordersStandaloneOverlay","HighlightUpdatesOverlay","ImageOverlayStandalone","PerfMonitorOverlay","JsTopHudOverlay","ImpersonateOverlay","ScenariosOverlay"];function yl(e){let t=fn(()=>Object.fromEntries(Object.entries(e.modules).map(([a,n])=>[a.replace(/^@buoy-gg\//,"").replace(/\/web$/,""),n])),[e.modules]),o=t["react-query"];return o?.useReactQuerySyncAdapter?Me(bl,{...e,modules:t,query:o}):Me(vn,{...e,modules:t})}function bl(e){let t=e.query.useReactQuerySyncAdapter();return Me(vn,{...e,queryAdapter:t})}function vn({modules:e,apps:t,requiredEnvVars:o,externalSync:a,headless:n,sentryGetClient:i,queryAdapter:l}){let{isPro:u,tier:d}=qs(),p=fn(()=>{let y={app:Sn};for(let[S,T]of Object.entries(e))for(let[M,B]of Object.entries(T))M.endsWith("SyncAdapter")&&B&&typeof B=="object"&&(y[S]=B);l&&(y.query=l),e.env?.createEnvSyncAdapter&&(y.env=e.env.createEnvSyncAdapter(o??[]));for(let S of t??[])S.sync&&(y[`custom:${S.id}`]=S.sync);return y},[e,t,o,l]),m=Vs(p);m.current=p,Lt(()=>Gs(()=>m.current),[]),Lt(()=>{let y=[],S=T=>{let M=T?.();typeof M=="function"&&y.push(M)};return S(e.network?.startNetworkCapture),S(e.storage?.startBrowserStorageCapture),S(e.assets?.startBrowserAssetCapture),e.storage?.storageSyncAdapter?.subscribe&&S(()=>e.storage.storageSyncAdapter.subscribe(()=>{})),e["focus-inspector"]?.focusInspectorSyncAdapter?.subscribe&&S(()=>e["focus-inspector"].focusInspectorSyncAdapter.subscribe(()=>{})),()=>{for(let T of y.reverse())T()}},[e]);let C=e["external-sync"],g=Js({isDevelopment:typeof et<"u"?et:process.env.NODE_ENV!=="production",isLicensed:u,externalSync:a,isAvailable:!!C}),k=e.sentry?.SentryRoot;return gl(ml,{children:[Object.entries(e).flatMap(([y,S])=>fl.map(T=>{let M=S[T];return M?Me(M,{},`${y}:${T}`):null})),k&&Me(k,{getClient:i}),Object.entries(e).flatMap(([y,S])=>hl.map(T=>{let M=S[T];return M&&(!n||T==="ScenariosOverlay"||T==="ImpersonateOverlay")?Me(M,{},`${y}:${T}`):null})),g&&Me(Sl,{module:C,tools:p,options:hn(a),isPro:u,tier:d})]})}function Sl({module:e,tools:t,options:o,isPro:a,tier:n}){let i=ll(o,{appName:typeof document>"u"?null:document.title||location.hostname,hardwareName:"Browser",platform:"web"}),{socket:l}=e.useExternalSyncSocket({deviceName:i?.deviceName??"Buoy Browser",socketURL:o?.socketURL??e.getDefaultSocketURL(),persistentDeviceId:i?.deviceId??null,platform:"web",enableLogs:o?.enableLogs});return Lt(()=>{if(!l)return;let u=()=>{l.connected&&_s.hasAccountAccess()&&l.emit("device-license",{isPro:a?"1":"0",tier:n})};return u(),l.on("connect",u),()=>{l.off("connect",u)}},[l,a,n]),e.useExternalSync({tools:t,socket:l,deviceId:i?.deviceId??null,enableLogs:o?.enableLogs}),null}import{jsx as V,jsxs as wn}from"react/jsx-runtime";var vl={},xn="@react_buoy_floating_menu_tooltip_shown",wl=Ce;function xl({size:e=14,color:t="#20C997"}){let o=Math.max(2,e/4),a=Math.max(1,e/16);return V("div",{style:{display:"grid",gridTemplateColumns:`repeat(3, ${o}px)`,gap:a,width:e,height:e,alignContent:"center",justifyContent:"center"},children:Array.from({length:9}).map((n,i)=>V("div",{style:{width:o,height:o,borderRadius:o/2,backgroundColor:t}},i))})}function Cl(e){return V(mn,{children:V(_o,{children:V(Tl,{...e})})})}function Tl({environment:e,userRole:t,availableEnvironments:o,onEnvironmentSwitch:a,apps:n,modules:i=vl,externalSync:l,requiredEnvVars:u,sentryGetClient:d,disableHints:p=false,headless:m=false}){let[C,g]=vt(false),[k,y]=vt(false),S=yi(false),T=ht(),M=Be(()=>Ut([...gn(i),...n??[]]),[n,i]),B=Pt(),_=T.openApps.some(r=>!r.minimized);de(()=>{B.setDialOpen(C)},[C,B.setDialOpen]),de(()=>{B.setToolOpen(_||k)},[_,k,B.setToolOpen]);let{registerApps:x}=T;de(()=>{x(M.map(r=>{let F=r.icon;return{...r,icon:typeof F=="function"?({size:W})=>F(W):F}}))},[x,M]);let z=Be(()=>M.map(r=>({id:r.id,name:r.name,description:r.description,slot:r.slot})),[M]),{settings:P}=bi({availableTools:z,storage:wl});de(()=>{let r=false;return(async()=>{let[F,W]=await Promise.all([Ce.getItem(ot.dial.isOpen()),Ce.getItem(ot.settings.modalOpen())]);r||(F==="true"&&g(true),W==="true"&&(g(true),y(true)),S.current=true)})(),()=>{r=true}},[]),de(()=>{S.current&&Ce.setItem(ot.dial.isOpen(),C?"true":"false")},[C]),de(()=>{S.current&&Ce.setItem(ot.settings.modalOpen(),k?"true":"false")},[k]);let I=Fe(r=>{if(pr(r.id),r.launchMode==="toggle-only"){r.onPress?.();return}if(r.component){let F=typeof r.icon=="function"?r.icon(20):r.icon;T.open({id:r.id,title:r.name||tt(r.id),component:r.component,props:r.props,modal:r.modal,launchMode:r.launchMode||"self-modal",singleton:r.singleton??true,icon:F,color:r.color||Kt(r.id)})}else r.onPress?.()},[T]),R=Be(()=>wt(M,"dial").map(r=>{let F=r.color||Kt(r.id),W;return typeof r.icon=="string"?W=r.icon:typeof r.icon=="function"?W=r.icon(32):W=null,{id:r.id,name:r.name||tt(r.id),icon:W,unavailable:!r.component&&!r.onPress,color:F,onPress:()=>{I(r),g(false)}}}),[M,I]),oe=Be(()=>{if(!C)return R;let r=new Map(R.map(F=>[F.id,F]));return ur(R.map(F=>F.id)).map(F=>r.get(F)).filter(F=>!!F)},[C,R]),Z=Be(()=>wt(M,"row").filter(r=>P.floatingTools[r.id]===true&&(r.component||r.onPress)),[M,P.floatingTools]),G=Be(()=>M.map(r=>({id:r.id,name:r.name||tt(r.id),description:r.description||Si(r.id),slot:r.slot,icon:r.icon,color:r.color})),[M]),[le,K]=vt(false),ne=T.openApps.some(r=>!r.minimized);de(()=>{if(p)return;let r=false,F=setTimeout(async()=>{let W=await Ce.getItem(xn);!r&&!W&&K(true)},1e3);return()=>{r=true,clearTimeout(F)}},[p]);let J=Fe(()=>{K(false),Ce.setItem(xn,"true")},[]),Se=Fe(()=>{J(),g(true)},[J]),me=Fe(()=>{g(false),y(false)},[]),ve=Fe(()=>{y(r=>!r)},[]),L=Fe(()=>y(false),[]),Re=!!(o?.length&&a),fe=P.floatingTools.environment!==false,re=le&&!C&&!ne;de(()=>{if(!re)return;let r=W=>{(!(W.target instanceof Element)||!W.target.closest("[data-buoy-root]"))&&J()},F=W=>{W.key==="Escape"&&J()};return document.addEventListener("pointerdown",r,true),document.addEventListener("keydown",F),()=>{document.removeEventListener("pointerdown",r,true),document.removeEventListener("keydown",F)}},[re,J]);let we=T.openApps.some(r=>r.minimized&&r.launchMode!=="toggle-only"),ae=V(yl,{modules:i,apps:n,requiredEnvVars:u,externalSync:l,headless:m,sentryGetClient:d});return m?ae:wn("div",{"data-buoy-root":"",style:{display:"contents"},children:[ae,re&&V("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0,0,0,0.85)",zIndex:1e4,pointerEvents:"none"}}),wn(Vt,{enablePositionPersistence:!re,pushToSide:C||ne,suspendPointerEvents:C,centerOnboarding:re,minimizedStack:we?V(Ps,{}):void 0,hasMinimizedStack:we,children:[e&&fe&&!Re&&V(vi,{environment:e}),Re&&fe&&V(wi,{currentEnvironment:e??"local",availableEnvironments:o,onSelect:a}),t?V(_t,{userRole:t,onPress:Se}):V("button",{"aria-label":"Open dev tools",onClick:Se,style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"6px 8px",background:"none",border:"none",cursor:"pointer"},children:V(xl,{})}),Z.map(r=>V("button",{"aria-label":r.name||tt(r.id),title:r.description,onClick:()=>I(r),style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"4px 6px",borderRadius:6,background:"none",border:"none",cursor:"pointer"},children:typeof r.icon=="function"?r.icon(16):r.icon},r.id))]}),re&&V(ro,{title:"Welcome to Buoy!",message:"Grab and position this menu wherever you want, then tap the icon to open your tools.",onDismiss:J}),C&&V(po,{icons:oe,onClose:me,centerLabel:"BUOY",onCenterPress:ve,settingsOpen:k,hintsDisabled:p}),V(Bo,{visible:k,onClose:L,availableTools:G,onSettingsChange:r=>{}}),V(qo,{}),V(mi,{})]})}function Il(e){let{access:t,isPro:o,licenseKey:a}=fi();de(()=>{gi.configure(e.licenseKey)},[e.licenseKey]);let n=e.licenseKey===void 0||e.licenseKey.trim().toUpperCase()===(a??""),i=typeof et<"u"?et:process.env.NODE_ENV!=="production",l=n&&t.status==="admitted";return de(()=>{!i&&o&&l&&ui()},[i,o,l]),!i&&!o?null:l?V(Cl,{...e}):e.headless?null:V(hi,{})}import{useSettings as zl,useFloatingTools as kl,getToolLabel as Ml,getToolDescription as Rl,getToolColor as Al,settingsColors as Ol,settingsStyles as El,dialColors as Dl,dialStyles as Bl}from"@buoy-gg/floating-tools-react/web";export{oa as Activity,di as AlertCircle,aa as AlertTriangle,_o as AppHostProvider,qo as AppOverlay,La as Badge,In as BarChart3,An as BaseEventStore,kn as Bookmark,ra as Bug,qa as Button,ti as Card,la as Check,da as CheckCircle,ca as CheckSquare,pa as ChevronDown,ga as ChevronLeft,ha as ChevronRight,ba as ChevronUp,va as Clock,Rn as Cloud,ii as CollapsibleSection,wa as Copy,Ja as CopyButton,Mn as DataViewer,Cn as Database,mn as DevToolsVisibilityProvider,po as DialMenu,Ka as DiffViewer,Ii as Divider,On as Download,Dn as Edit3,ci as EmptyState,zn as EventStepperFooter,xa as Eye,Ca as EyeOff,Ta as FileJson,Ia as FileText,za as Filter,ka as FlaskConical,Il as FloatingDevTools,Vt as FloatingTools,Fn as GitBranch,Ma as Globe,Ln as HardDrive,Ra as Hash,Wn as HelpCircle,Hn as Home,Kn as Image,Aa as Info,Ha as InfoRow,ea as JsModal,Ea as Key,Ba as Layers,Vn as Link,Pa as Lock,qn as Maximize2,Jn as Minus,Yn as Palette,$a as Pause,Zn as Pin,ja as Play,Na as Plus,Ua as Power,Ya as PowerToggle,_a as RefreshCw,En as RelativeTime,ta as Route,Za as Row,Ga as Search,Tn as SearchBar,ni as SectionHeader,na as Server,Xa as Settings,Bo as SettingsModal,Qa as Shield,ia as Smartphone,sa as Square,Wa as StatusDot,si as TabSelector,ua as Timer,ei as Trash2,ma as Unlock,fa as Upload,oi as User,_t as UserStatus,ya as Users,ai as Wifi,ri as X,Sa as XCircle,li as Zap,Sn as appSyncAdapter,Ci as autoDiscoverWebPresets,Ut as autoDiscoverWithCustom,pi as clearReleaseOptIn,Qn as copyToClipboard,cn as createWebTool,gn as createWebTools,xi as defaultToolPresets,Gn as devToolsStorageKeys,Dl as dialColors,Bl as dialStyles,Bn as formatBytes,Pn as formatDuration,$n as formatNumber,Ti as getEnabledTools,Al as getToolColor,Rl as getToolDescription,Ml as getToolLabel,wt as getToolsBySlot,Da as methodColor,_n as persistentStorage,Nn as safeStringify,Ol as settingsColors,El as settingsStyles,Oa as statusColor,Va as toolTheme,jn as truncateMiddle,Fa as typeColor,ht as useAppHost,Pt as useDevToolsVisibility,kl as useFloatingTools,Un as usePersistedState,Xn as useSafeAreaInsets,zl as useSettings,fs as useToolHeader,No as useToolHost};
@@ -1,2 +1 @@
1
- "use client";
2
- import"./chunks/chunk-R7RGRTY5.mjs";function n(e={}){return!1}export{n as registerBrowserDevTools};
1
+ "use client";import{a as r}from"./chunks/chunk-FROELTJH.mjs";import"./chunks/chunk-R7RGRTY5.mjs";function o(e={}){return false}export{r as earlyHookScript,o as registerBrowserDevTools};
@@ -1,2 +1 @@
1
- "use client";
2
- import{d as s}from"./chunks/chunk-R7RGRTY5.mjs";import*as i from"react-devtools-core";function u(l={}){if(typeof window>"u"||typeof document>"u"||!(typeof s<"u"?s:process.env.NODE_ENV!=="production")&&!l.enableInRelease)return!1;let e=window,n=e.__REACT_DEVTOOLS_GLOBAL_HOOK__,O=n&&n.supportsFiber&&!n.getFiberRoots&&!n.sub&&Object.getOwnPropertyDescriptor(e,"__REACT_DEVTOOLS_GLOBAL_HOOK__")?.configurable;if(O&&delete e.__REACT_DEVTOOLS_GLOBAL_HOOK__,!e.__REACT_DEVTOOLS_GLOBAL_HOOK__&&((i.initialize??i.default?.initialize)({appendComponentStack:!1,breakOnConsoleErrors:!1,showInlineWarningsAndErrors:!1,hideConsoleLogsInStrictMode:!1}),O)){let t=e.__REACT_DEVTOOLS_GLOBAL_HOOK__,f=t.inject,a=new Map;t.inject=o=>{let _=f(o);return a.set(_,n.inject(o)),_};for(let o of["onScheduleFiberRoot","onCommitFiberRoot","onCommitFiberUnmount"]){let _=t[o];t[o]=(r,...c)=>(n[o]?.(a.get(r)??r,...c),_?.(r,...c))}}return!!e.__REACT_DEVTOOLS_GLOBAL_HOOK__}u();export{u as registerBrowserDevTools};
1
+ "use client";import{a as L}from"./chunks/chunk-5SGL6QL4.mjs";import{a as b}from"./chunks/chunk-FROELTJH.mjs";import{d as O}from"./chunks/chunk-R7RGRTY5.mjs";import*as y from"react-devtools-core";function m(){if(typeof window>"u")return;let h=window;if(h.__BUOY_EARLY_NETWORK__)return;let s=Date.now,n=true,u=[],c=t=>{if(u.push(t),u.length>100){let a=u.shift();a?.kind==="fetch"&&a.settled.then(e=>e.clone?.body?.cancel()).catch(()=>{})}},f=typeof window.fetch=="function"?window.fetch:void 0;if(f&&(window.fetch=function(t,a){if(!n)return f.call(window,t,a);let e;try{t instanceof Request&&t.body&&!t.bodyUsed&&a?.body===void 0&&(e=t.clone())}catch{}let d=s(),i=f.call(window,t,a),r=i.then(o=>{let l=s(),_=/event-stream|ndjson/.test(o.headers.get("content-type")??""),p;try{_||(p=o.clone())}catch{}return{response:o,clone:p,headersAt:l}},o=>({error:o,headersAt:s()}));return c({kind:"fetch",input:t,init:a,requestCopy:e,start:d,settled:r}),i}),typeof XMLHttpRequest<"u"){let t=XMLHttpRequest.prototype,{open:a,send:e,setRequestHeader:d}=t,i=new WeakMap;t.open=function(r,o,...l){return n&&i.set(this,{method:r,url:String(o),headers:{}}),a.call(this,r,o,...l)},t.setRequestHeader=function(r,o){let l=i.get(this);return l&&(l.headers[r]=o),d.call(this,r,o)},t.send=function(r){let o=i.get(this);if(n&&o){i.delete(this);let l=s(),_=this;_.addEventListener("readystatechange",()=>{_.readyState===2&&_._buoyTtfb===void 0&&(_._buoyTtfb=s()-l),_.readyState===4&&(_._buoyEarlyEnd=s())}),c({kind:"xhr",xhr:_,method:o.method,url:o.url,headers:o.headers,body:r,start:l})}return e.call(this,r)}}h.__BUOY_EARLY_NETWORK__={version:1,records:u,adopt(){return n=false,u.splice(0)}}}var w=["onScheduleFiberRoot","onCommitFiberRoot","onPostCommitFiberRoot","onCommitFiberUnmount","setStrictMode"];function E(h={}){if(typeof window>"u"||typeof document>"u"||!(typeof O<"u"?O:process.env.NODE_ENV!=="production")&&!h.enableInRelease&&!L())return false;m();let s=window,n=s.__REACT_DEVTOOLS_GLOBAL_HOOK__,u=n&&n.supportsFiber&&!n.getFiberRoots&&!n.sub&&Object.getOwnPropertyDescriptor(s,"__REACT_DEVTOOLS_GLOBAL_HOOK__")?.configurable;if(u&&delete s.__REACT_DEVTOOLS_GLOBAL_HOOK__,!s.__REACT_DEVTOOLS_GLOBAL_HOOK__&&((y.initialize??y.default?.initialize)({appendComponentStack:false,breakOnConsoleErrors:false,showInlineWarningsAndErrors:false,hideConsoleLogsInStrictMode:false}),u)){let c=s.__REACT_DEVTOOLS_GLOBAL_HOOK__,f=c.inject,t=new Map;c.inject=e=>{let d=f(e);return t.set(d,n.inject(e)),d};for(let e of w){let d=c[e];typeof d=="function"&&(c[e]=(i,...r)=>(t.has(i)&&n[e]?.(t.get(i),...r),d(i,...r)))}let a=new Map;if(n.renderers?.forEach?.((e,d)=>a.set(d,f(e))),a.size)for(let e of w){let d=n[e];n[e]=function(i,...r){let o=d?.call(this,i,...r),l=a.get(i);return l!==void 0&&c[e]?.(l,...r),o}}}return!!s.__REACT_DEVTOOLS_GLOBAL_HOOK__}E();export{b as earlyHookScript,E as registerBrowserDevTools};
@@ -1,2 +1 @@
1
- "use client";
2
- import{$ as S,A as r,Aa as ra,B as s,Ba as sa,C as t,Ca as ta,D as u,Da as ua,E as v,Ea as va,F as w,Fa as wa,G as x,Ga as xa,H as y,Ha as ya,I as z,Ia as za,J as A,Ja as Aa,K as B,Ka as Ba,L as C,La as Ca,M as D,Ma as Da,N as E,Na as Ea,O as F,Oa as Fa,P as G,Pa as Ga,Q as H,Qa as Ha,R as I,Ra as Ia,S as J,Sa as Ja,T as K,Ta as Ka,U as L,Ua as La,V as M,Va as Ma,W as N,Wa as Na,X as O,Xa as Oa,Y as P,Ya as Pa,Z as Q,_ as R,aa as T,ba as U,ca as V,da as W,ea as X,fa as Y,ga as Z,ha as _,ia as $,j as a,ja as aa,k as b,ka as ba,l as c,la as ca,m as d,ma as da,n as e,na as ea,o as f,oa as fa,p as g,pa as ga,q as h,qa as ha,r as i,ra as ia,s as j,sa as ja,t as k,ta as ka,u as l,ua as la,v as m,va as ma,w as n,wa as na,x as o,xa as oa,y as p,ya as pa,z as q,za as qa}from"./chunks/chunk-QZDVCMCT.mjs";import"./chunks/chunk-R7RGRTY5.mjs";export{H as Activity,qa as AlertCircle,I as AlertTriangle,d as Badge,ra as BarChart3,u as BaseEventStore,sa as Bookmark,J as Bug,i as Button,m as Card,K as Check,L as CheckCircle,Ka as CheckSquare,M as ChevronDown,N as ChevronLeft,O as ChevronRight,P as ChevronUp,Q as Clock,ta as Cloud,o as CollapsibleSection,R as Copy,j as CopyButton,t as DataViewer,S as Database,g as DiffViewer,ua as Download,va as Edit3,q as EmptyState,s as EventStepperFooter,T as Eye,U as EyeOff,V as FileJson,W as FileText,X as Filter,Y as FlaskConical,wa as GitBranch,Z as Globe,xa as HardDrive,_ as Hash,ya as HelpCircle,za as Home,Aa as Image,$ as Info,f as InfoRow,G as JsModal,aa as Key,ba as Layers,Ba as Link,ca as Lock,Ca as Maximize2,Da as Minus,Ea as Palette,da as Pause,Fa as Pin,ea as Play,fa as Plus,ga as Power,k as PowerToggle,ha as RefreshCw,v as RelativeTime,Ga as Route,l as Row,ia as Search,r as SearchBar,n as SectionHeader,Ha as Server,ja as Settings,ka as Shield,Ia as Smartphone,Ja as Square,e as StatusDot,p as TabSelector,La as Timer,la as Trash2,Ma as Unlock,Na as Upload,ma as User,Oa as Users,na as Wifi,oa as X,Pa as XCircle,pa as Zap,F as copyToClipboard,D as devToolsStorageKeys,w as formatBytes,x as formatDuration,y as formatNumber,b as methodColor,C as persistentStorage,A as safeStringify,a as statusColor,h as toolTheme,z as truncateMiddle,c as typeColor,B as usePersistedState,E as useSafeAreaInsets};
1
+ "use client";import{$ as a,A as s,Aa as e,B as o,Ba as t,C as r,Ca as i,D as l,Da as n,E as C,Ea as c,F as S,Fa as h,G as p,Ga as u,H as m,Ha as d,I as f,Ia as y,J as v,Ja as g,K as k,Ka as B,L as w,La as T,M as D,Ma as P,N as E,Na as b,O as F,Oa as H,P as R,Pa as A,Q as I,Qa as L,R as M,Ra as U,S as x,Sa as q,T as G,Ta as J,U as K,Ua as z,V as N,Va as O,W as V,Wa as X,X as j,Xa as W,Y as Q,Ya as Y,Z,_,aa as $,ba as aa,ca as sa,da as ea,ea as oa,fa as ta,ga as ra,ha as ia,ia as la,j as na,ja as Ca,k as ca,ka as Sa,l as ha,la as pa,m as ua,ma,n as da,na as fa,o as ya,oa as va,p as ga,pa as ka,q as Ba,qa as wa,r as Ta,ra as Da,s as Pa,sa as Ea,t as ba,ta as Fa,u as Ha,ua as Ra,v as Aa,va as Ia,w as La,wa as Ma,x as Ua,xa,y as qa,ya as Ga,z as Ja,za as Ka}from"./chunks/chunk-QZDVCMCT.mjs";import"./chunks/chunk-R7RGRTY5.mjs";export{I as Activity,Ka as AlertCircle,M as AlertTriangle,ua as Badge,e as BarChart3,l as BaseEventStore,t as Bookmark,x as Bug,Ta as Button,Aa as Card,G as Check,K as CheckCircle,J as CheckSquare,N as ChevronDown,V as ChevronLeft,j as ChevronRight,Q as ChevronUp,Z as Clock,i as Cloud,Ua as CollapsibleSection,_ as Copy,Pa as CopyButton,r as DataViewer,a as Database,ga as DiffViewer,n as Download,c as Edit3,Ja as EmptyState,o as EventStepperFooter,$ as Eye,aa as EyeOff,sa as FileJson,ea as FileText,oa as Filter,ta as FlaskConical,h as GitBranch,ra as Globe,u as HardDrive,ia as Hash,d as HelpCircle,y as Home,g as Image,la as Info,ya as InfoRow,R as JsModal,Ca as Key,Sa as Layers,B as Link,pa as Lock,T as Maximize2,P as Minus,b as Palette,ma as Pause,H as Pin,fa as Play,va as Plus,ka as Power,ba as PowerToggle,wa as RefreshCw,C as RelativeTime,A as Route,Ha as Row,Da as Search,s as SearchBar,La as SectionHeader,L as Server,Ea as Settings,Fa as Shield,U as Smartphone,q as Square,da as StatusDot,qa as TabSelector,z as Timer,Ra as Trash2,O as Unlock,X as Upload,Ia as User,W as Users,Ma as Wifi,xa as X,Y as XCircle,Ga as Zap,F as copyToClipboard,D as devToolsStorageKeys,S as formatBytes,p as formatDuration,m as formatNumber,ca as methodColor,w as persistentStorage,v as safeStringify,na as statusColor,Ba as toolTheme,f as truncateMiddle,ha as typeColor,k as usePersistedState,E as useSafeAreaInsets};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buoy-gg/core",
3
- "version": "7.0.41",
3
+ "version": "7.0.42",
4
4
  "description": "Floating developer menu and account setup for React Native. Add tool packages and configure Desktop or MCP connections separately.",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -61,10 +61,10 @@
61
61
  ],
62
62
  "dependencies": {
63
63
  "react-devtools-core": "6.1.5",
64
- "@buoy-gg/floating-tools-core": "^7.0.41",
65
- "@buoy-gg/license": "^7.0.41",
66
- "@buoy-gg/floating-tools-react": "^7.0.41",
67
- "@buoy-gg/shared-ui": "^7.0.41"
64
+ "@buoy-gg/floating-tools-core": "^7.0.42",
65
+ "@buoy-gg/floating-tools-react": "^7.0.42",
66
+ "@buoy-gg/license": "^7.0.42",
67
+ "@buoy-gg/shared-ui": "^7.0.42"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "react": "*",
@@ -1 +0,0 @@
1
- {"version":3,"file":"Buoy.d.ts","sourceRoot":"","sources":["../../../src/Buoy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,MAAM,WAAW,UAAU;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;;;;;OAUG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAQD,6DAA6D;AAC7D,wBAAgB,kBAAkB,IAAI,OAAO,CAE5C;AAED;;;;GAIG;AACH,eAAO,MAAM,IAAI;IACf;;;;;;;;;;;;;;;;;;;;OAoBG;iBACU,UAAU,GAAG,IAAI;IAQ9B;;;;;;;;;;;;OAYG;sBACqB,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC;IAKrD;;OAEG;aACM,OAAO;IAIhB;;OAEG;;;;;;;;;;;;;IAKH;;;OAGG;uBACsB,OAAO,CAAC,IAAI,CAAC;CAGvC,CAAC;AAGF,eAAe,IAAI,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"browserRegister.d.ts","sourceRoot":"","sources":["../../../src/browserRegister.ts"],"names":[],"mappings":"AAEA,0FAA0F;AAC1F,wBAAgB,uBAAuB,CAAC,OAAO,GAAE;IAAE,eAAe,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,OAAO,CAiC5F"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"browserRegister.server.d.ts","sourceRoot":"","sources":["../../../src/browserRegister.server.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,wBAAgB,uBAAuB,CAAC,QAAQ,GAAE;IAAE,eAAe,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,OAAO,CAE7F"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppHost.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/AppHost.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAQZ,SAAS,EACV,MAAM,OAAO,CAAC;AAEf,OAAO,EACL,WAAW,EAIZ,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAEL,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AAIjC,KAAK,mBAAmB,GAAG;IACzB,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,EAAE,YAAY,CAAC,KAAK,MAAM,CAAC;IACvD,KAAK,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IACrC,wDAAwD;IACxD,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,mFAAmF;IACnF,OAAO,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACxE,4CAA4C;IAC5C,WAAW,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;CAC9C,CAAC;AAaF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,cAAc;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,sBA6Np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,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;AAE7D;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,WAAW,EAAE,EACtB,KAAK,cAAc,EACnB,YAAY,MAAM,MAAM,KACvB;IAAE,IAAI,EAAE,WAAW,EAAE,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,OAAO,CAAA;CAuBlE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppIcon.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/AppIcon.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AASnE,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,IAAI,EACJ,KAA6B,GAC9B,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,qBAqCA;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,EAC1B,GAAG,EAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG;IACpC,IAAI,EAAE,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GACA,KAAK,CAAC,SAAS,CAcjB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppIcon.web.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/AppIcon.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEnE,gFAAgF;AAChF,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAA6B,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,qBAK1H;AACD,wBAAgB,aAAa,CAAC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG;IAAE,IAAI,EAAE,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,KAAK,CAAC,SAAS,CAKtL"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BrowserToolRuntime.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/BrowserToolRuntime.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAKvD,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,kBAAkB,CAAC;IAC5B,IAAI,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC3B,eAAe,CAAC,EAAE,YAAY,EAAE,CAAC;IACjC,YAAY,CAAC,EAAE,OAAO,GAAG,mBAAmB,CAAC;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,OAAO,CAAC;CACjC;AAKD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,+BAOhE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultConfigContext.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/DefaultConfigContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA6B,SAAS,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEhF;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,kFAAkF;IAClF,oBAAoB,CAAC,EAAE,qBAAqB,CAAC;IAC7C,oFAAoF;IACpF,gBAAgB,CAAC,EAAE,iBAAiB,CAAC;CACtC;AAID;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,oBAAoB,EACpB,gBAAgB,GACjB,EAAE,yBAAyB,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,qBAcrD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,IAAI,yBAAyB,CAE5D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DevToolsSettingsModal.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/DevToolsSettingsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAC5F,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DevToolsSettingsModal.shared.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/DevToolsSettingsModal.shared.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6C,EAAE,EAAa,MAAM,OAAO,CAAC;AA4CjF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAmFpE;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,4EAA4E;IAC5E,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,uFAAuF;IACvF,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;QACvC,WAAW,EAAE,OAAO,CAAC;KACtB,CAAC;IACF,kDAAkD;IAClD,cAAc,CAAC,EAAE,sBAAsB,CAAC;CACzC;AAED;;;;GAIG;AACH,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;IAC/B,IAAI,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,0BAA0B;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACxD,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,aAAa,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACnC,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAsDD;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CAiyBhE,CAAC;AA8FF,eAAO,MAAM,mBAAmB;;;CAuD/B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DevToolsSettingsModal.web.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/DevToolsSettingsModal.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAO3G,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,cAAc,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACvC,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACzD;AAID,wEAAwE;AACxE,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,OAAO,EACP,cAA4B,EAC5B,oBAAoB,EACpB,gBAAgB,EAChB,OAA2B,EAC3B,gBAAgB,GACjB,EAAE,kBAAkB,+BAqBpB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DevToolsVisibilityContext.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/DevToolsVisibilityContext.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAGL,SAAS,EAKV,MAAM,OAAO,CAAC;AAEf,UAAU,8BAA8B;IACtC,kCAAkC;IAClC,UAAU,EAAE,OAAO,CAAC;IACpB,gDAAgD;IAChD,UAAU,EAAE,OAAO,CAAC;IACpB,gDAAgD;IAChD,gBAAgB,EAAE,OAAO,CAAC;IAC1B,0BAA0B;IAC1B,WAAW,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,0BAA0B;IAC1B,WAAW,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACtC;AAKD,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAyBA;AAED,wBAAgB,qBAAqB,mCAapC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FloatingDevTools.d.ts","sourceRoot":"","sources":["../../../../src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AoF;IACpF,gBAAgB,CAAC,EAAE,iBAAiB,CAAC;IACrC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,WAAW,EAAE,CAAC;IACtC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAAC;CAC1D;AAWD,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA+U9C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MinimizedToolsContext.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/MinimizedToolsContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAOZ,SAAS,EAEV,MAAM,OAAO,CAAC;AAUf,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,IAAI,EAAE,SAAS,CAAC;IAChB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAWD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,CAY3D;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,MAAM,CAEpC;AAED;;GAEG;AACH,UAAU,0BAA0B;IAClC,wCAAwC;IACxC,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,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cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAMD,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,EACT,cAA8B,GAC/B,EAAE,wBAAwB,qBA0D1B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MinimizedToolsStack.web.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/MinimizedToolsStack.web.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiMH,MAAM,WAAW,wBAAwB;IACvC,gEAAgE;IAChE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,mBAAmB,CAAC,EAAE,cAAmB,EAAE,EAAE,wBAAwB,sCAyMpF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ToggleStateManager.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/ToggleStateManager.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,KAAK,QAAQ,GAAG,MAAM,IAAI,CAAC;AAE3B,cAAM,kBAAkB;IACtB,OAAO,CAAC,SAAS,CAA4B;IAE7C;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,IAAI;IAOzC;;OAEG;IACH,MAAM,IAAI,IAAI;CAGf;AAGD,eAAO,MAAM,kBAAkB,oBAA2B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ToolHost.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/ToolHost.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,EAQZ,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAWf,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,+EAA+E;AAC/E,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,C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B,CAAC,EAAE,OAAO,CAAC;IACtC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAQD,wBAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,MAAM,EACN,OAAO,EACP,MAAM,EACN,OAAO,EACP,UAAU,EACV,iBAAiB,EACjB,2BAA2B,EAC3B,SAAS,GACV,EAAE,mBAAmB,qBA4HrB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ToolOpenerBridge.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/ToolOpenerBridge.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAOH,wBAAgB,gBAAgB,SAa/B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"autoDiscoverPresets.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/autoDiscoverPresets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAgB,mBAAmB,IAAI,YAAY,EAAE,CAmVpD;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,6BAA6B,CAC3C,WAAW,EAAE,YAAY,EAAE,GAC1B,YAAY,EAAE,CAahB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"autoExternalSync.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/autoExternalSync.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAkB,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAgKjE,iFAAiF;AACjF,wBAAgB,uBAAuB,IAAI,OAAO,CAEjD;AAED,MAAM,WAAW,mBAAmB;IAClC;;;;;;OAMG;IACH,SAAS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