@buoy-gg/shared-ui 7.0.39 → 7.0.41

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 (377) hide show
  1. package/README.md +6 -0
  2. package/lib/commonjs/JsModal.js +13 -61
  3. package/lib/commonjs/JsModal.web.js +32 -95
  4. package/lib/commonjs/clipboard/autoDetectClipboard.js +1 -1
  5. package/lib/commonjs/clipboard/clipboard-impl.web.js +21 -0
  6. package/lib/commonjs/dataViewer/tree/TreeDiffViewer.js +4 -2
  7. package/lib/commonjs/hooks/index.js +1 -1
  8. package/lib/commonjs/hooks/safe-area-impl.js +1 -1
  9. package/lib/commonjs/hooks/usePersistedState.js +1 -1
  10. package/lib/commonjs/hooks/useSafeAreaInsets.web.js +41 -0
  11. package/lib/commonjs/icons/index.js +14 -0
  12. package/lib/commonjs/index.js +34 -0
  13. package/lib/commonjs/license/AccountSetup.js +4 -25
  14. package/lib/commonjs/license/AccountSetup.web.js +78 -64
  15. package/lib/commonjs/license/AccountSetupContent.js +482 -0
  16. package/lib/commonjs/license/FreeAccountPrompt.js +32 -178
  17. package/lib/commonjs/license/LicenseEntryModal.js +5 -12
  18. package/lib/commonjs/license/accountRuntime.js +8 -0
  19. package/lib/commonjs/license/accountRuntime.web.js +9 -0
  20. package/lib/commonjs/license/licenseModule.js +2 -0
  21. package/lib/commonjs/settings/components/BubbleSettingsSection.js +1 -1
  22. package/lib/commonjs/storage/definePersistedSetting.js +1 -1
  23. package/lib/commonjs/stores/ignoredPatternsCore.js +8 -1
  24. package/lib/commonjs/stores/ignoredPatternsStore.js +10 -199
  25. package/lib/commonjs/stores/ignoredPatternsStore.shared.js +205 -0
  26. package/lib/commonjs/stores/ignoredPatternsStore.web.js +10 -230
  27. package/lib/commonjs/ui/backgrounds/backgroundStore.js +1 -1
  28. package/lib/commonjs/ui/backgrounds/variants/wormhole.js +3 -0
  29. package/lib/commonjs/ui/components/CopyButton.js +1 -1
  30. package/lib/commonjs/ui/components/EventStepperFooter.js +1 -1
  31. package/lib/commonjs/ui/components/ToolFooter.js +1 -1
  32. package/lib/commonjs/ui/floating/FloatingTool.web.js +12 -2
  33. package/lib/commonjs/ui/night/primitives.js +10 -3
  34. package/lib/commonjs/ui/otto/OttoSprite.js +1 -1
  35. package/lib/commonjs/utils/browserAsyncStorage.js +157 -0
  36. package/lib/commonjs/utils/browserNavigation.js +116 -0
  37. package/lib/commonjs/utils/devServer.js +8 -4
  38. package/lib/commonjs/utils/devServer.web.js +10 -0
  39. package/lib/commonjs/utils/domRuntime.js +143 -0
  40. package/lib/commonjs/utils/expoRouterModule.js +51 -0
  41. package/lib/commonjs/utils/expoRouterModule.web.js +14 -0
  42. package/lib/commonjs/utils/getSafeAreaInsets.web.js +35 -0
  43. package/lib/commonjs/utils/index.js +111 -4
  44. package/lib/commonjs/utils/loadToolModule.js +46 -0
  45. package/lib/commonjs/utils/loadToolModule.web.js +12 -0
  46. package/lib/commonjs/utils/modalStorage.js +42 -0
  47. package/lib/commonjs/utils/nativeWeb.js +454 -0
  48. package/lib/commonjs/utils/persistentStorage.web.js +78 -0
  49. package/lib/commonjs/utils/reloadApp.js +18 -57
  50. package/lib/commonjs/utils/reloadPlatform.js +37 -0
  51. package/lib/commonjs/utils/reloadPlatform.web.js +17 -0
  52. package/lib/commonjs/utils/safeExpoRouter.js +3 -53
  53. package/lib/commonjs/utils/safeExpoRouter.web.js +48 -0
  54. package/lib/commonjs/utils/toolModules.js +25 -0
  55. package/lib/module/JsModal.js +11 -59
  56. package/lib/module/JsModal.web.js +28 -91
  57. package/lib/module/clipboard/autoDetectClipboard.js +2 -2
  58. package/lib/module/clipboard/clipboard-impl.web.js +14 -0
  59. package/lib/module/dataViewer/tree/TreeDiffViewer.js +4 -2
  60. package/lib/module/hooks/index.js +2 -2
  61. package/lib/module/hooks/safe-area-impl.js +1 -1
  62. package/lib/module/hooks/usePersistedState.js +1 -1
  63. package/lib/module/hooks/useSafeAreaInsets.web.js +30 -0
  64. package/lib/module/icons/index.js +2 -1
  65. package/lib/module/index.js +3 -0
  66. package/lib/module/license/AccountSetup.js +5 -26
  67. package/lib/module/license/AccountSetup.web.js +79 -65
  68. package/lib/module/license/AccountSetupContent.js +476 -0
  69. package/lib/module/license/FreeAccountPrompt.js +27 -176
  70. package/lib/module/license/LicenseEntryModal.js +6 -13
  71. package/lib/module/license/accountRuntime.js +3 -0
  72. package/lib/module/license/accountRuntime.web.js +4 -0
  73. package/lib/module/license/licenseModule.js +2 -0
  74. package/lib/module/settings/components/BubbleSettingsSection.js +1 -1
  75. package/lib/module/storage/definePersistedSetting.js +1 -1
  76. package/lib/module/stores/ignoredPatternsCore.js +8 -1
  77. package/lib/module/stores/ignoredPatternsStore.js +1 -187
  78. package/lib/module/stores/ignoredPatternsStore.shared.js +189 -0
  79. package/lib/module/stores/ignoredPatternsStore.web.js +1 -219
  80. package/lib/module/ui/backgrounds/backgroundStore.js +1 -1
  81. package/lib/module/ui/backgrounds/variants/wormhole.js +3 -0
  82. package/lib/module/ui/components/CopyButton.js +1 -1
  83. package/lib/module/ui/components/EventStepperFooter.js +1 -1
  84. package/lib/module/ui/components/ToolFooter.js +1 -1
  85. package/lib/module/ui/floating/FloatingTool.web.js +12 -2
  86. package/lib/module/ui/night/primitives.js +11 -4
  87. package/lib/module/ui/otto/OttoSprite.js +1 -1
  88. package/lib/module/utils/browserAsyncStorage.js +151 -0
  89. package/lib/module/utils/browserNavigation.js +108 -0
  90. package/lib/module/utils/devServer.js +8 -4
  91. package/lib/module/utils/devServer.web.js +6 -0
  92. package/lib/module/utils/domRuntime.js +134 -0
  93. package/lib/module/utils/expoRouterModule.js +46 -0
  94. package/lib/module/utils/expoRouterModule.web.js +9 -0
  95. package/lib/module/utils/getSafeAreaInsets.web.js +31 -0
  96. package/lib/module/utils/index.js +9 -4
  97. package/lib/module/utils/loadToolModule.js +42 -0
  98. package/lib/module/utils/loadToolModule.web.js +8 -0
  99. package/lib/module/utils/modalStorage.js +37 -0
  100. package/lib/module/utils/nativeWeb.js +107 -0
  101. package/lib/module/utils/persistentStorage.web.js +72 -0
  102. package/lib/module/utils/reloadApp.js +13 -51
  103. package/lib/module/utils/reloadPlatform.js +31 -0
  104. package/lib/module/utils/reloadPlatform.web.js +11 -0
  105. package/lib/module/utils/safeExpoRouter.js +3 -53
  106. package/lib/module/utils/safeExpoRouter.web.js +37 -0
  107. package/lib/module/utils/toolModules.js +19 -0
  108. package/lib/typescript/commonjs/JsModal.d.ts.map +1 -1
  109. package/lib/typescript/commonjs/JsModal.web.d.ts +7 -18
  110. package/lib/typescript/commonjs/JsModal.web.d.ts.map +1 -1
  111. package/lib/typescript/commonjs/clipboard/clipboard-impl.web.d.ts +5 -0
  112. package/lib/typescript/commonjs/clipboard/clipboard-impl.web.d.ts.map +1 -0
  113. package/lib/typescript/commonjs/dataViewer/tree/TreeDiffViewer.d.ts.map +1 -1
  114. package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
  115. package/lib/typescript/commonjs/hooks/useSafeAreaInsets.web.d.ts +6 -0
  116. package/lib/typescript/commonjs/hooks/useSafeAreaInsets.web.d.ts.map +1 -0
  117. package/lib/typescript/commonjs/icons/index.d.ts +1 -0
  118. package/lib/typescript/commonjs/icons/index.d.ts.map +1 -1
  119. package/lib/typescript/commonjs/index.d.ts +2 -0
  120. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  121. package/lib/typescript/commonjs/license/AccountSetup.d.ts.map +1 -1
  122. package/lib/typescript/commonjs/license/AccountSetup.web.d.ts +1 -1
  123. package/lib/typescript/commonjs/license/AccountSetup.web.d.ts.map +1 -1
  124. package/lib/typescript/commonjs/license/AccountSetupContent.d.ts +11 -0
  125. package/lib/typescript/commonjs/license/AccountSetupContent.d.ts.map +1 -0
  126. package/lib/typescript/commonjs/license/FreeAccountPrompt.d.ts +3 -15
  127. package/lib/typescript/commonjs/license/FreeAccountPrompt.d.ts.map +1 -1
  128. package/lib/typescript/commonjs/license/LicenseEntryModal.d.ts.map +1 -1
  129. package/lib/typescript/commonjs/license/accountRuntime.d.ts +2 -0
  130. package/lib/typescript/commonjs/license/accountRuntime.d.ts.map +1 -0
  131. package/lib/typescript/commonjs/license/accountRuntime.web.d.ts +2 -0
  132. package/lib/typescript/commonjs/license/accountRuntime.web.d.ts.map +1 -0
  133. package/lib/typescript/commonjs/license/licenseModule.d.ts +3 -1
  134. package/lib/typescript/commonjs/license/licenseModule.d.ts.map +1 -1
  135. package/lib/typescript/commonjs/stores/ignoredPatternsCore.d.ts +5 -1
  136. package/lib/typescript/commonjs/stores/ignoredPatternsCore.d.ts.map +1 -1
  137. package/lib/typescript/commonjs/stores/ignoredPatternsStore.d.ts +1 -59
  138. package/lib/typescript/commonjs/stores/ignoredPatternsStore.d.ts.map +1 -1
  139. package/lib/typescript/commonjs/stores/ignoredPatternsStore.shared.d.ts +60 -0
  140. package/lib/typescript/commonjs/stores/ignoredPatternsStore.shared.d.ts.map +1 -0
  141. package/lib/typescript/commonjs/stores/ignoredPatternsStore.web.d.ts +1 -71
  142. package/lib/typescript/commonjs/stores/ignoredPatternsStore.web.d.ts.map +1 -1
  143. package/lib/typescript/commonjs/ui/floating/FloatingTool.web.d.ts.map +1 -1
  144. package/lib/typescript/commonjs/ui/night/primitives.d.ts.map +1 -1
  145. package/lib/typescript/commonjs/ui/otto/ottoEngine.d.ts +1 -1
  146. package/lib/typescript/commonjs/utils/browserAsyncStorage.d.ts +25 -0
  147. package/lib/typescript/commonjs/utils/browserAsyncStorage.d.ts.map +1 -0
  148. package/lib/typescript/commonjs/utils/browserNavigation.d.ts +31 -0
  149. package/lib/typescript/commonjs/utils/browserNavigation.d.ts.map +1 -0
  150. package/lib/typescript/commonjs/utils/devServer.d.ts.map +1 -1
  151. package/lib/typescript/commonjs/utils/devServer.web.d.ts +2 -0
  152. package/lib/typescript/commonjs/utils/devServer.web.d.ts.map +1 -0
  153. package/lib/typescript/commonjs/utils/domRuntime.d.ts +27 -0
  154. package/lib/typescript/commonjs/utils/domRuntime.d.ts.map +1 -0
  155. package/lib/typescript/commonjs/utils/expoRouterModule.d.ts +3 -0
  156. package/lib/typescript/commonjs/utils/expoRouterModule.d.ts.map +1 -0
  157. package/lib/typescript/commonjs/utils/expoRouterModule.web.d.ts +3 -0
  158. package/lib/typescript/commonjs/utils/expoRouterModule.web.d.ts.map +1 -0
  159. package/lib/typescript/commonjs/utils/getSafeAreaInsets.web.d.ts +8 -0
  160. package/lib/typescript/commonjs/utils/getSafeAreaInsets.web.d.ts.map +1 -0
  161. package/lib/typescript/commonjs/utils/index.d.ts +5 -0
  162. package/lib/typescript/commonjs/utils/index.d.ts.map +1 -1
  163. package/lib/typescript/commonjs/utils/loadToolModule.d.ts +3 -0
  164. package/lib/typescript/commonjs/utils/loadToolModule.d.ts.map +1 -0
  165. package/lib/typescript/commonjs/utils/loadToolModule.web.d.ts +2 -0
  166. package/lib/typescript/commonjs/utils/loadToolModule.web.d.ts.map +1 -0
  167. package/lib/typescript/commonjs/utils/modalStorage.d.ts +21 -0
  168. package/lib/typescript/commonjs/utils/modalStorage.d.ts.map +1 -0
  169. package/lib/typescript/commonjs/utils/nativeWeb.d.ts +22 -0
  170. package/lib/typescript/commonjs/utils/nativeWeb.d.ts.map +1 -0
  171. package/lib/typescript/commonjs/utils/persistentStorage.web.d.ts +6 -0
  172. package/lib/typescript/commonjs/utils/persistentStorage.web.d.ts.map +1 -0
  173. package/lib/typescript/commonjs/utils/reloadApp.d.ts +7 -25
  174. package/lib/typescript/commonjs/utils/reloadApp.d.ts.map +1 -1
  175. package/lib/typescript/commonjs/utils/reloadPlatform.d.ts +8 -0
  176. package/lib/typescript/commonjs/utils/reloadPlatform.d.ts.map +1 -0
  177. package/lib/typescript/commonjs/utils/reloadPlatform.web.d.ts +4 -0
  178. package/lib/typescript/commonjs/utils/reloadPlatform.web.d.ts.map +1 -0
  179. package/lib/typescript/commonjs/utils/safeExpoRouter.d.ts.map +1 -1
  180. package/lib/typescript/commonjs/utils/safeExpoRouter.web.d.ts +43 -0
  181. package/lib/typescript/commonjs/utils/safeExpoRouter.web.d.ts.map +1 -0
  182. package/lib/typescript/commonjs/utils/toolModules.d.ts +5 -0
  183. package/lib/typescript/commonjs/utils/toolModules.d.ts.map +1 -0
  184. package/lib/typescript/module/JsModal.d.ts.map +1 -1
  185. package/lib/typescript/module/JsModal.web.d.ts +7 -18
  186. package/lib/typescript/module/JsModal.web.d.ts.map +1 -1
  187. package/lib/typescript/module/clipboard/clipboard-impl.web.d.ts +5 -0
  188. package/lib/typescript/module/clipboard/clipboard-impl.web.d.ts.map +1 -0
  189. package/lib/typescript/module/dataViewer/tree/TreeDiffViewer.d.ts.map +1 -1
  190. package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
  191. package/lib/typescript/module/hooks/useSafeAreaInsets.web.d.ts +6 -0
  192. package/lib/typescript/module/hooks/useSafeAreaInsets.web.d.ts.map +1 -0
  193. package/lib/typescript/module/icons/index.d.ts +1 -0
  194. package/lib/typescript/module/icons/index.d.ts.map +1 -1
  195. package/lib/typescript/module/index.d.ts +2 -0
  196. package/lib/typescript/module/index.d.ts.map +1 -1
  197. package/lib/typescript/module/license/AccountSetup.d.ts.map +1 -1
  198. package/lib/typescript/module/license/AccountSetup.web.d.ts +1 -1
  199. package/lib/typescript/module/license/AccountSetup.web.d.ts.map +1 -1
  200. package/lib/typescript/module/license/AccountSetupContent.d.ts +11 -0
  201. package/lib/typescript/module/license/AccountSetupContent.d.ts.map +1 -0
  202. package/lib/typescript/module/license/FreeAccountPrompt.d.ts +3 -15
  203. package/lib/typescript/module/license/FreeAccountPrompt.d.ts.map +1 -1
  204. package/lib/typescript/module/license/LicenseEntryModal.d.ts.map +1 -1
  205. package/lib/typescript/module/license/accountRuntime.d.ts +2 -0
  206. package/lib/typescript/module/license/accountRuntime.d.ts.map +1 -0
  207. package/lib/typescript/module/license/accountRuntime.web.d.ts +2 -0
  208. package/lib/typescript/module/license/accountRuntime.web.d.ts.map +1 -0
  209. package/lib/typescript/module/license/licenseModule.d.ts +3 -1
  210. package/lib/typescript/module/license/licenseModule.d.ts.map +1 -1
  211. package/lib/typescript/module/stores/ignoredPatternsCore.d.ts +5 -1
  212. package/lib/typescript/module/stores/ignoredPatternsCore.d.ts.map +1 -1
  213. package/lib/typescript/module/stores/ignoredPatternsStore.d.ts +1 -59
  214. package/lib/typescript/module/stores/ignoredPatternsStore.d.ts.map +1 -1
  215. package/lib/typescript/module/stores/ignoredPatternsStore.shared.d.ts +60 -0
  216. package/lib/typescript/module/stores/ignoredPatternsStore.shared.d.ts.map +1 -0
  217. package/lib/typescript/module/stores/ignoredPatternsStore.web.d.ts +1 -71
  218. package/lib/typescript/module/stores/ignoredPatternsStore.web.d.ts.map +1 -1
  219. package/lib/typescript/module/ui/floating/FloatingTool.web.d.ts.map +1 -1
  220. package/lib/typescript/module/ui/night/primitives.d.ts.map +1 -1
  221. package/lib/typescript/module/ui/otto/ottoEngine.d.ts +1 -1
  222. package/lib/typescript/module/utils/browserAsyncStorage.d.ts +25 -0
  223. package/lib/typescript/module/utils/browserAsyncStorage.d.ts.map +1 -0
  224. package/lib/typescript/module/utils/browserNavigation.d.ts +31 -0
  225. package/lib/typescript/module/utils/browserNavigation.d.ts.map +1 -0
  226. package/lib/typescript/module/utils/devServer.d.ts.map +1 -1
  227. package/lib/typescript/module/utils/devServer.web.d.ts +2 -0
  228. package/lib/typescript/module/utils/devServer.web.d.ts.map +1 -0
  229. package/lib/typescript/module/utils/domRuntime.d.ts +27 -0
  230. package/lib/typescript/module/utils/domRuntime.d.ts.map +1 -0
  231. package/lib/typescript/module/utils/expoRouterModule.d.ts +3 -0
  232. package/lib/typescript/module/utils/expoRouterModule.d.ts.map +1 -0
  233. package/lib/typescript/module/utils/expoRouterModule.web.d.ts +3 -0
  234. package/lib/typescript/module/utils/expoRouterModule.web.d.ts.map +1 -0
  235. package/lib/typescript/module/utils/getSafeAreaInsets.web.d.ts +8 -0
  236. package/lib/typescript/module/utils/getSafeAreaInsets.web.d.ts.map +1 -0
  237. package/lib/typescript/module/utils/index.d.ts +5 -0
  238. package/lib/typescript/module/utils/index.d.ts.map +1 -1
  239. package/lib/typescript/module/utils/loadToolModule.d.ts +3 -0
  240. package/lib/typescript/module/utils/loadToolModule.d.ts.map +1 -0
  241. package/lib/typescript/module/utils/loadToolModule.web.d.ts +2 -0
  242. package/lib/typescript/module/utils/loadToolModule.web.d.ts.map +1 -0
  243. package/lib/typescript/module/utils/modalStorage.d.ts +21 -0
  244. package/lib/typescript/module/utils/modalStorage.d.ts.map +1 -0
  245. package/lib/typescript/module/utils/nativeWeb.d.ts +22 -0
  246. package/lib/typescript/module/utils/nativeWeb.d.ts.map +1 -0
  247. package/lib/typescript/module/utils/persistentStorage.web.d.ts +6 -0
  248. package/lib/typescript/module/utils/persistentStorage.web.d.ts.map +1 -0
  249. package/lib/typescript/module/utils/reloadApp.d.ts +7 -25
  250. package/lib/typescript/module/utils/reloadApp.d.ts.map +1 -1
  251. package/lib/typescript/module/utils/reloadPlatform.d.ts +8 -0
  252. package/lib/typescript/module/utils/reloadPlatform.d.ts.map +1 -0
  253. package/lib/typescript/module/utils/reloadPlatform.web.d.ts +4 -0
  254. package/lib/typescript/module/utils/reloadPlatform.web.d.ts.map +1 -0
  255. package/lib/typescript/module/utils/safeExpoRouter.d.ts.map +1 -1
  256. package/lib/typescript/module/utils/safeExpoRouter.web.d.ts +43 -0
  257. package/lib/typescript/module/utils/safeExpoRouter.web.d.ts.map +1 -0
  258. package/lib/typescript/module/utils/toolModules.d.ts +5 -0
  259. package/lib/typescript/module/utils/toolModules.d.ts.map +1 -0
  260. package/lib/web/asyncStorage.mjs +2 -0
  261. package/lib/web/chunks/chunk-2MHKRRQW.mjs +8 -0
  262. package/lib/web/chunks/chunk-2Q3SDPH2.mjs +14 -0
  263. package/lib/web/chunks/chunk-34YQ42KI.mjs +2 -0
  264. package/lib/web/chunks/chunk-3NNNCQYP.mjs +14 -0
  265. package/lib/web/chunks/chunk-3UTMGIUG.mjs +2 -0
  266. package/lib/web/chunks/chunk-46CXXOQB.mjs +2 -0
  267. package/lib/web/chunks/chunk-475BSDCB.mjs +2 -0
  268. package/lib/web/chunks/chunk-53J2FMUD.mjs +2 -0
  269. package/lib/web/chunks/chunk-552W4COI.mjs +2 -0
  270. package/lib/web/chunks/chunk-56TTTMX4.mjs +6145 -0
  271. package/lib/web/chunks/chunk-5LOQZINQ.mjs +14 -0
  272. package/lib/web/chunks/chunk-5NOIO6ZM.mjs +16 -0
  273. package/lib/web/chunks/chunk-5NZOQR6Q.mjs +2 -0
  274. package/lib/web/chunks/chunk-6CCRCSA2.mjs +2 -0
  275. package/lib/web/chunks/chunk-6Q52HRBL.mjs +2 -0
  276. package/lib/web/chunks/chunk-6TEDFSNM.mjs +655 -0
  277. package/lib/web/chunks/chunk-7BMRSMHN.mjs +2 -0
  278. package/lib/web/chunks/chunk-A2SOFE47.mjs +24 -0
  279. package/lib/web/chunks/chunk-A7KJCK4R.mjs +14 -0
  280. package/lib/web/chunks/chunk-AEXGGXS7.mjs +2 -0
  281. package/lib/web/chunks/chunk-AGD7ZT6O.mjs +15 -0
  282. package/lib/web/chunks/chunk-AIEOQWNG.mjs +2 -0
  283. package/lib/web/chunks/chunk-ASTM35HG.mjs +16 -0
  284. package/lib/web/chunks/chunk-AZBMFPMX.mjs +1421 -0
  285. package/lib/web/chunks/chunk-B2V2UDCU.mjs +16 -0
  286. package/lib/web/chunks/chunk-BFGKGTAC.mjs +2 -0
  287. package/lib/web/chunks/chunk-BHW6AFO6.mjs +2 -0
  288. package/lib/web/chunks/chunk-BWRW3NJ2.mjs +16 -0
  289. package/lib/web/chunks/chunk-CBM2IZAK.mjs +2 -0
  290. package/lib/web/chunks/chunk-CDLCFF44.mjs +2 -0
  291. package/lib/web/chunks/chunk-CE5U3CSQ.mjs +2 -0
  292. package/lib/web/chunks/chunk-CI5CO7FQ.mjs +2 -0
  293. package/lib/web/chunks/chunk-CIB4U2YK.mjs +2 -0
  294. package/lib/web/chunks/chunk-CLLTZQGD.mjs +596 -0
  295. package/lib/web/chunks/chunk-D5HQLRFW.mjs +655 -0
  296. package/lib/web/chunks/chunk-DZDTNXXK.mjs +2 -0
  297. package/lib/web/chunks/chunk-FDOZ6YSS.mjs +2 -0
  298. package/lib/web/chunks/chunk-FMEWNGQO.mjs +2 -0
  299. package/lib/web/chunks/chunk-G4DH7GMT.mjs +2 -0
  300. package/lib/web/chunks/chunk-GBUZCZE4.mjs +2 -0
  301. package/lib/web/chunks/chunk-GF5C5DVX.mjs +2 -0
  302. package/lib/web/chunks/chunk-GLMS5ZLJ.mjs +445 -0
  303. package/lib/web/chunks/chunk-GNGMIA7V.mjs +2 -0
  304. package/lib/web/chunks/chunk-GTYIS7H7.mjs +15 -0
  305. package/lib/web/chunks/chunk-HJ36IONA.mjs +15 -0
  306. package/lib/web/chunks/chunk-HXPTZMAZ.mjs +2 -0
  307. package/lib/web/chunks/chunk-I27M4JCS.mjs +2 -0
  308. package/lib/web/chunks/chunk-IVCT27JB.mjs +2 -0
  309. package/lib/web/chunks/chunk-JG4QSK5B.mjs +2 -0
  310. package/lib/web/chunks/chunk-JR7BJW6B.mjs +389 -0
  311. package/lib/web/chunks/chunk-K46ZJUXJ.mjs +90 -0
  312. package/lib/web/chunks/chunk-K4LXMO4D.mjs +2 -0
  313. package/lib/web/chunks/chunk-K7CGIEFU.mjs +2 -0
  314. package/lib/web/chunks/chunk-KBTYK5YE.mjs +662 -0
  315. package/lib/web/chunks/chunk-KHP6CSSM.mjs +2 -0
  316. package/lib/web/chunks/chunk-KRDRIW7T.mjs +14 -0
  317. package/lib/web/chunks/chunk-L2DTKDER.mjs +2 -0
  318. package/lib/web/chunks/chunk-LFDFDGHY.mjs +655 -0
  319. package/lib/web/chunks/chunk-LZ7FZZ7R.mjs +2 -0
  320. package/lib/web/chunks/chunk-MAIUUK4E.mjs +2 -0
  321. package/lib/web/chunks/chunk-MKJKS3IG.mjs +275 -0
  322. package/lib/web/chunks/chunk-MRQKVLXG.mjs +2 -0
  323. package/lib/web/chunks/chunk-NK3OISOL.mjs +14 -0
  324. package/lib/web/chunks/chunk-NLJDDIXW.mjs +2 -0
  325. package/lib/web/chunks/chunk-OENR3XFI.mjs +11 -0
  326. package/lib/web/chunks/chunk-OZB3VKZE.mjs +2 -0
  327. package/lib/web/chunks/chunk-P64PFJT3.mjs +17618 -0
  328. package/lib/web/chunks/chunk-PACPGYH7.mjs +2 -0
  329. package/lib/web/chunks/chunk-PART6HOE.mjs +14 -0
  330. package/lib/web/chunks/chunk-PMRXUQRH.mjs +2 -0
  331. package/lib/web/chunks/chunk-PTK5FO6C.mjs +2 -0
  332. package/lib/web/chunks/chunk-PZ45TQ55.mjs +14 -0
  333. package/lib/web/chunks/chunk-Q5LN7GET.mjs +17624 -0
  334. package/lib/web/chunks/chunk-QCD6T6L4.mjs +297 -0
  335. package/lib/web/chunks/chunk-QD5EUANU.mjs +2 -0
  336. package/lib/web/chunks/chunk-QJTECJCO.mjs +2 -0
  337. package/lib/web/chunks/chunk-QPIZURPZ.mjs +2 -0
  338. package/lib/web/chunks/chunk-QPY45R5F.mjs +274 -0
  339. package/lib/web/chunks/chunk-R2SGZIG5.mjs +2 -0
  340. package/lib/web/chunks/chunk-S3GYQYVJ.mjs +16 -0
  341. package/lib/web/chunks/chunk-SCCXVTDM.mjs +2 -0
  342. package/lib/web/chunks/chunk-SHJHD646.mjs +2 -0
  343. package/lib/web/chunks/chunk-TCRVZ55E.mjs +2 -0
  344. package/lib/web/chunks/chunk-TJ6ZVV2L.mjs +15 -0
  345. package/lib/web/chunks/chunk-TPSY4RC3.mjs +14 -0
  346. package/lib/web/chunks/chunk-U5KNX5O6.mjs +17624 -0
  347. package/lib/web/chunks/chunk-UCKELQSM.mjs +2 -0
  348. package/lib/web/chunks/chunk-UGGCYHRH.mjs +15 -0
  349. package/lib/web/chunks/chunk-UNYQJZET.mjs +16 -0
  350. package/lib/web/chunks/chunk-VE72SWLV.mjs +15 -0
  351. package/lib/web/chunks/chunk-VKONO6MI.mjs +2 -0
  352. package/lib/web/chunks/chunk-W4BGMPJO.mjs +2 -0
  353. package/lib/web/chunks/chunk-WHNEEKLR.mjs +2 -0
  354. package/lib/web/chunks/chunk-WLGUP3KY.mjs +16 -0
  355. package/lib/web/chunks/chunk-WY7D4WBZ.mjs +2 -0
  356. package/lib/web/chunks/chunk-XRNB2MHO.mjs +107 -0
  357. package/lib/web/chunks/chunk-XXTIAXQY.mjs +2 -0
  358. package/lib/web/chunks/chunk-XYUAUO57.mjs +2 -0
  359. package/lib/web/chunks/chunk-YG6DIKQD.mjs +2 -0
  360. package/lib/web/chunks/chunk-YIZFMU66.mjs +2 -0
  361. package/lib/web/chunks/chunk-YOGAPOGC.mjs +2 -0
  362. package/lib/web/chunks/chunk-Z7373DS5.mjs +2 -0
  363. package/lib/web/chunks/chunk-Z76GRN66.mjs +17627 -0
  364. package/lib/web/chunks/persistentStorage.web-4FBAOYJ4.mjs +12 -0
  365. package/lib/web/chunks/persistentStorage.web-7W3Y6Q24.mjs +12 -0
  366. package/lib/web/chunks/persistentStorage.web-GOWNFMVT.mjs +2 -0
  367. package/lib/web/chunks/persistentStorage.web-RF47FXIK.mjs +12 -0
  368. package/lib/web/colors.mjs +2 -0
  369. package/lib/web/dataViewer.mjs +3 -0
  370. package/lib/web/floating.mjs +2 -0
  371. package/lib/web/history.mjs +2 -0
  372. package/lib/web/hooks.mjs +2 -0
  373. package/lib/web/index.mjs +15 -0
  374. package/lib/web/native.mjs +2 -0
  375. package/lib/web/ui.mjs +2 -0
  376. package/lib/web/utils.mjs +2 -0
  377. package/package.json +118 -36
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import {
3
+ getStorageBackendType,
4
+ isUsingPersistentStorage,
5
+ persistentStorage
6
+ } from "./chunk-JR7BJW6B.mjs";
7
+ import "./chunk-OENR3XFI.mjs";
8
+ export {
9
+ getStorageBackendType,
10
+ isUsingPersistentStorage,
11
+ persistentStorage
12
+ };
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import {
3
+ getStorageBackendType,
4
+ isUsingPersistentStorage,
5
+ persistentStorage
6
+ } from "./chunk-JR7BJW6B.mjs";
7
+ import "./chunk-2MHKRRQW.mjs";
8
+ export {
9
+ getStorageBackendType,
10
+ isUsingPersistentStorage,
11
+ persistentStorage
12
+ };
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{c as a,d as b,e as c}from"./chunk-GBUZCZE4.mjs";import"./chunk-5NZOQR6Q.mjs";export{c as getStorageBackendType,b as isUsingPersistentStorage,a as persistentStorage};
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import {
3
+ getStorageBackendType,
4
+ isUsingPersistentStorage,
5
+ persistentStorage
6
+ } from "./chunk-JR7BJW6B.mjs";
7
+ import "./chunk-UGGCYHRH.mjs";
8
+ export {
9
+ getStorageBackendType,
10
+ isUsingPersistentStorage,
11
+ persistentStorage
12
+ };
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as o,b as r,c as e,d as s,e as a,f as m,g as l}from"./chunks/chunk-CE5U3CSQ.mjs";import"./chunks/chunk-5NZOQR6Q.mjs";export{m as buoyColors,l as dialColors,s as gameUIColors,o as macOSColors,r as macOSGameUIColors,a as refreshGameUIColors,e as refreshMacOSGameUIColors};
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ import{a as pn,b as gn,c as mn,d as yn,e as Sr}from"./chunks/chunk-53J2FMUD.mjs";import{I as Vt}from"./chunks/chunk-VE72SWLV.mjs";import"./chunks/chunk-FMEWNGQO.mjs";import"./chunks/chunk-XYUAUO57.mjs";import{a as y}from"./chunks/chunk-GF5C5DVX.mjs";import"./chunks/chunk-K7CGIEFU.mjs";import{d as It,g as Gt}from"./chunks/chunk-KHP6CSSM.mjs";import{Dc as St,Mc as it,Xb as Re,Zb as wt,_b as Ge,ac as Dt,ec as kt,md as k,xc as Ct}from"./chunks/chunk-AIEOQWNG.mjs";import{a as I,d as M,f as se}from"./chunks/chunk-CE5U3CSQ.mjs";import"./chunks/chunk-PTK5FO6C.mjs";import"./chunks/chunk-GBUZCZE4.mjs";import{J as N,N as ot,a as u,b as f,c as _e,d as j,h as Ue,r as F}from"./chunks/chunk-3UTMGIUG.mjs";import"./chunks/chunk-5NZOQR6Q.mjs";import{useState as Fn,useMemo as Lr}from"react";import{useState as Be,useMemo as qt,useCallback as Fe,useRef as ke,useEffect as vt,memo as Zt}from"react";import{memo as bn,useMemo as hn}from"react";import{jsx as Vr}from"react/jsx-runtime";var xn="4D",Tn="80",at=bn(({items:e,visibleRange:t,itemHeight:r,indentWidth:n,activeDepth:o=-1})=>{let s=hn(()=>{let i=Math.max(0,t.start),l=Math.min(e.length-1,t.end);if(i>l||e.length===0)return[];let a=0;for(let d=i;d<=l;d++){let p=e[d]?.depth??0;p>a&&(a=p)}let c=[];for(let d=1;d<=a;d++){let p=(d-.5)*n,x=Math.round(p)+.5,T=[],m=-1,V=-1;for(let R=i;R<=l;R++)(e[R]?.depth??0)>=d?(m===-1&&(m=R),V=R):m!==-1&&(T.push({startIndex:m,endIndex:V}),m=-1,V=-1);m!==-1&&T.push({startIndex:m,endIndex:V}),T.length>0&&c.push({depth:d,left:x,segments:T})}return c},[e,t,r,n]);return Vr(u,{pointerEvents:"none",style:Ir.overlay,children:s.map(i=>i.segments.map((l,a)=>{let c=(l.startIndex-t.start)*r,d=(l.endIndex-l.startIndex+1)*r,p=i.depth===o;return Vr(u,{style:[Ir.line,{left:i.left,top:c,height:d,backgroundColor:`${M.primary}${p?Tn:xn}`}]},`${i.depth}-${a}`)}))})});at.displayName="IndentGuidesOverlay";var Ir=N.create({overlay:{position:"absolute",left:0,right:0,top:0,bottom:0,zIndex:1},line:{position:"absolute",width:1}});import{Fragment as Rn,jsx as $,jsxs as pe}from"react/jsx-runtime";var Ar={top:10,bottom:10,left:10,right:10},Ve=24,wn=24,lt=50,At=15,Dn=500;var kn=300,Xt=16,vr=Array.from({length:At+1},(e,t)=>N.create({container:{marginLeft:t*Xt}}).container),Cn=new Map([["string",M.dataTypes.string],["number",M.dataTypes.number],["bigint",M.optional],["boolean",M.dataTypes.boolean],["null",M.dataTypes.null],["undefined",M.dataTypes.undefined],["function",M.dataTypes.function],["symbol",M.critical],["date",M.critical],["error",M.error],["array",M.dataTypes.array],["object",M.dataTypes.object],["map",M.info],["set",M.success],["circular",M.warning]]),W=N.create({container:{backgroundColor:y.color.bg,borderRadius:8,borderWidth:1,borderColor:y.color.border},header:{flexDirection:"column",paddingHorizontal:16,paddingVertical:12},headerRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:6},title:{color:M.primary,fontSize:14,fontWeight:"500"},description:{color:M.secondary,fontSize:12,marginTop:2},typeLegend:{flexDirection:"row",flexWrap:"wrap",gap:6,marginTop:8,paddingTop:8,borderTopWidth:1,borderTopColor:M.primary+"14"},typeBadge:{flexDirection:"row",alignItems:"center",paddingHorizontal:6,paddingVertical:2,borderRadius:4,borderWidth:1},typeColor:{width:8,height:8,borderRadius:4,marginRight:4},typeName:{fontSize:10,fontWeight:"500",color:M.secondary},itemContainer:{minHeight:Ve,backgroundColor:"transparent",position:"relative",flexDirection:"row",alignItems:"flex-start"},itemTouchable:{flex:1,flexDirection:"row",alignItems:"flex-start",paddingLeft:0,paddingRight:16,paddingVertical:2,minHeight:24},itemTouchablePressed:{backgroundColor:M.primary+"0A"},itemSelected:{backgroundColor:M.primary+"14"},expanderContainer:{width:16,alignItems:"center",justifyContent:"center",marginTop:4},expanderIcon:{width:12,height:12},labelContainer:{flex:1,flexDirection:"row",alignItems:"flex-start",paddingLeft:2},labelContainerVertical:{flex:1,flexDirection:"column",paddingLeft:2,paddingVertical:2},labelContainerVerticalRow:{flexDirection:"row",alignItems:"center",marginBottom:2},labelText:{color:M.primary,fontSize:12,fontWeight:"500",fontFamily:k,marginRight:8,flexShrink:1},labelTextTruncated:{color:M.primary,fontSize:12,fontWeight:"500",fontFamily:k,flexShrink:1},valueText:{fontSize:12,fontFamily:k,flex:1,color:M.primaryLight},loadingContainer:{padding:16,alignItems:"center"},loadingText:{color:M.secondary,fontSize:12},noDataContainer:{padding:16,alignItems:"center"},noDataText:{color:M.secondary,fontSize:12},listContent:{paddingBottom:8},headerTouchable:{flex:1,flexDirection:"row",alignItems:"center"},expanderMargin:{marginLeft:8}});function Kt(e){return{path:e.path.slice(1),value:e.value,label:e.key}}function Yt(e,t,r=0){if(r>=t)return r;let n=r+1;if(Array.isArray(e))for(let o of e){if(n>=t)return n;n=Yt(o,t,n)}else if(e!==null&&typeof e=="object")for(let o of Object.values(e)){if(n>=t)return n;n=Yt(o,t,n)}return n}var Sn=e=>e===null?"null":e===void 0?"undefined":Array.isArray(e)?"array":e instanceof Date?"date":e instanceof Error?"error":e instanceof Map?"map":e instanceof Set?"set":e instanceof RegExp?"regexp":typeof e=="function"?"function":typeof e=="symbol"?"symbol":typeof e=="bigint"?"bigint":typeof e=="object"?"object":typeof e,In=(e,t)=>{if(e===null)return 0;switch(t){case"array":return Array.isArray(e)?e.length:0;case"object":return typeof e=="object"&&!(e instanceof Date)&&!(e instanceof Error)&&!(e instanceof RegExp)&&!(e instanceof Map)&&!(e instanceof Set)?Object.keys(e).length:0;case"map":return e instanceof Map?e.size:0;case"set":return e instanceof Set?e.size:0;default:return 0}},Vn=(e,t)=>{if(e===null)return"null";if(e===void 0)return"undefined";switch(t){case"string":return`"${String(e)}"`;case"boolean":return e===!0?"true":"false";case"function":return typeof e=="function"?e.toString().slice(0,50)+"...":"undefined";case"symbol":return typeof e=="symbol"?String(e):"undefined";case"date":return e instanceof Date?e.toISOString():"undefined";case"regexp":return e instanceof RegExp?e.toString():"undefined";case"bigint":return typeof e=="bigint"?e.toString()+"n":"undefined";case"error":return e instanceof Error?`${e.name}: ${e.message}`:"undefined";default:return It(e)}},Er=e=>Cn.get(e)||M.dataTypes.array,Rr=({expanded:e,onPress:t})=>$(j,{"sentry-label":"ignore devtools data explorer expander",style:W.expanderContainer,onPress:t,hitSlop:Ar,children:$(u,{style:W.expanderIcon,children:$(wt,{size:12,color:M.secondary,strokeWidth:2,style:{transform:[{rotate:e?"90deg":"0deg"}]}})})});Rr.displayName="Expander";var Br=Zt(Rr),Or=({visibleTypes:e})=>{let t=Array.from(new Set(e)).slice(0,8);return $(u,{style:W.typeLegend,children:t.map(r=>{let n=Er(r);return pe(u,{style:[W.typeBadge,{backgroundColor:`${n}10`,borderColor:`${n}30`}],children:[$(u,{style:[W.typeColor,{backgroundColor:n}]}),$(f,{style:W.typeName,children:r})]},r)})})};Or.displayName="TypeLegend";var vn=Zt(Or),An=(e,t=10,r=!1)=>{let[n,o]=Be([]),s=ke(new Map),i=Fe(()=>{let g=new Set(["root"]);return r&&e&&typeof e=="object"&&(Array.isArray(e)?e.forEach((b,D)=>{g.add(`root.${D}`)}):Object.keys(e).forEach(b=>{g.add(`root.${b}`)})),g},[r,e]),[l,a]=Be(()=>i()),[c,d]=Be(!1),p=ke(new WeakSet),x=ke(!1),T=ke(0),m=ke(0),V=ke(void 0),R=Fe((g,b,D,v="root",h=0,H,O=[],oe=0,ie=1,de=[])=>{if(h>Math.min(t,At))return[];let Q=[...O,v],ee=Q.join("."),ae=Sn(g),U=["object","array","map","set"].includes(ae)&&g!==null,X=U?In(g,ae):0,J=Math.min(X,Dn);if(g&&typeof g=="object"){if(D.has(g))return[{id:ee,key:v,value:"[Circular Reference]",valueType:"circular",depth:h,isExpandable:!1,isExpanded:!1,parentId:H,hasChildren:!1,childCount:0,path:Q,type:"circular",isLastChild:oe===ie-1,parentHasMoreSiblings:[...de],siblingIndex:oe,totalSiblings:ie}];D.add(g)}let A={id:ee,key:v,value:g,valueType:ae,depth:h,isExpandable:U,isExpanded:b.has(ee),parentId:H,hasChildren:J>0,childCount:J,path:Q,type:U?"expandable":ae,isLastChild:oe===ie-1,parentHasMoreSiblings:[...de],siblingIndex:oe,totalSiblings:ie},le=[A];if(U&&b.has(ee)&&h<Math.min(t,At))try{let be=[];switch(ae){case"array":be=Array.isArray(g)?g.map((he,Oe)=>[Oe.toString(),he]):[];break;case"object":be=typeof g=="object"&&g!==null&&!(g instanceof Date)&&!(g instanceof Error)&&!(g instanceof RegExp)&&!(g instanceof Map)&&!(g instanceof Set)?Object.entries(g):[];break;case"map":be=g instanceof Map?Array.from(g.entries()).map(([he,Oe])=>[String(he),Oe]):[];break;case"set":be=g instanceof Set?Array.from(g.values()).map((he,Oe)=>[Oe.toString(),he]):[];break}let nt=be.slice(0,J),cn=nt.length,kr=[...de];h>0&&(kr[h-1]=!A.isLastChild);for(let he=0;he<nt.length;he+=lt){let Oe=nt.slice(he,he+lt),Cr=he;for(let[un,fn]of Oe)le.push(...R(fn,b,D,un,h+1,ee,Q,Cr,cn,kr)),Cr++;if(he>0&&he%(lt*2)===0)break}}catch(be){console.error(be)}return le},[t]);vt(()=>{if(V.current&&(V.current.type==="expand"||V.current.type==="collapse")){c&&(d(!1),x.current=!1),V.current=void 0;return}if(x.current)return;let g,b=++T.current,D=()=>T.current===b;return x.current=!0,d(!0),(async()=>{if(g=setTimeout(()=>{x.current&&D()&&(d(!1),x.current=!1)},5e3),await new Promise(h=>setTimeout(()=>h(),10)),!!D())try{p.current=new WeakSet,m.current=Date.now();let h=R(e,l,p.current,"root",0,void 0,[],0,1,[]),H=new Map;h.forEach((O,oe)=>{H.set(O.id,{item:O,index:oe})}),s.current=H,g&&clearTimeout(g),D()&&(o(h),d(!1),x.current=!1)}catch(h){console.error(h),g&&clearTimeout(g),D()&&(o([]),s.current=new Map,d(!1),x.current=!1)}})(),()=>{x.current=!1,g&&clearTimeout(g)}},[e,l,R,t]);let Z=Fe((g,b)=>{d(!1),x.current=!1,o(D=>{let v=s.current.get(g);if(!v)return D;let{item:h,index:H}=v;if(b&&h.isExpandable&&h.hasChildren){let O=[...D],oe=new WeakSet;h.value&&typeof h.value=="object"&&oe.add(h.value);let ie=[];try{let ee=[];switch(h.valueType){case"array":ee=Array.isArray(h.value)?h.value.map((A,le)=>[le.toString(),A]):[];break;case"object":ee=typeof h.value=="object"&&h.value!==null&&!(h.value instanceof Date)&&!(h.value instanceof Error)&&!(h.value instanceof RegExp)&&!(h.value instanceof Map)&&!(h.value instanceof Set)?Object.entries(h.value):[];break;case"map":ee=h.value instanceof Map?Array.from(h.value.entries()).map(([A,le])=>[String(A),le]):[];break;case"set":ee=h.value instanceof Set?Array.from(h.value.values()).map((A,le)=>[le.toString(),A]):[];break}let U=ee.length,J=[...h.parentHasMoreSiblings||[]];h.depth>0&&(J[h.depth-1]=!h.isLastChild),ee.forEach(([A,le],be)=>{let nt=R(le,new Set,oe,A,h.depth+1,g,h.path,be,U,J);ie.push(...nt)})}catch(ee){console.error(ee)}let de=ie;de.length>0,O[H]={...h,isExpanded:!0},O.splice(H+1,0,...de);let Q=new Map;return O.forEach((ee,ae)=>{Q.set(ee.id,{item:ee,index:ae})}),s.current=Q,O}else if(!b){let O=new Set,oe=(Q,ee)=>{D.forEach(ae=>{(ae.parentId===Q||ae.id.startsWith(Q+".")&&ae.depth>ee)&&(O.add(ae.id),ae.hasChildren&&oe(ae.id,ae.depth))})};oe(g,h.depth);let ie=D.map(Q=>Q.id===g?{...Q,isExpanded:!1}:Q).filter(Q=>!O.has(Q.id)),de=new Map;return ie.forEach((Q,ee)=>{de.set(Q.id,{item:Q,index:ee})}),s.current=de,ie}return D})},[R]),_=Fe(g=>{a(b=>{let D=new Set(b),v=!D.has(g);return v?D.add(g):D.delete(g),V.current={type:v?"expand":"collapse",itemId:g},Z(g,v),D})},[Z]),w=Yt(e,lt,0)<lt,C=qt(()=>w?R(e,l,new WeakSet,"root",0,void 0,[],0,1,[]):null,[w,e,l,R]),S=Fe(g=>{g.length!==0&&a(b=>{if(g.every(v=>b.has(v)))return b;let D=new Set(b);for(let v of g)D.add(v);return D})},[]);return{flatData:C??n,isProcessing:C?!1:c,toggleExpanded:_,revealPath:S}},Fr=({item:e,onToggleExpanded:t,index:r,onSelect:n,isSelected:o,selectable:s,onRequestInlineEdit:i,isInlineEditing:l,inlineEditor:a,testIDPrefix:c})=>{let[d,p]=Be(!1),[x,T]=Be(!1),m=s===!0,V=ke(0),R=e.path.slice(1),Z=vr[Math.min(e.depth,At)]||vr[0],_=Er(e.valueType),w=!1,C=()=>{if(m){let D=Date.now(),v=D-V.current<kn;if(V.current=D,v&&!e.isExpandable&&i){i(e);return}n(e);return}e.isExpandable&&t(e.id),n(e)},S=()=>{e.isExpandable&&t(e.id),n(e)},g=()=>{},b=e.key;return pe(u,{style:[W.itemContainer,Z],children:[pe(j,{"sentry-label":"ignore devtools data explorer item",testID:`${c}-${e.id}`,accessibilityLabel:`${e.key}: ${e.valueType}`,style:[W.itemTouchable,d&&W.itemTouchablePressed,m&&o&&W.itemSelected,w&&{minHeight:wn,paddingVertical:2}],onPress:C,onPressIn:()=>p(!0),onPressOut:()=>p(!1),activeOpacity:e.isExpandable||m?.7:1,disabled:!e.isExpandable&&!m,children:[e.isExpandable?$(Br,{expanded:e.isExpanded,onPress:S}):$(u,{style:W.expanderContainer}),pe(u,{style:W.labelContainer,children:[pe(f,{style:W.labelText,numberOfLines:1,children:[e.key,":"]}),l&&a?a:e.isExpandable?pe(f,{style:[W.valueText,{color:M.secondary}],numberOfLines:1,children:[e.valueType," (",e.childCount," ",e.childCount===1?"item":"items",")"]}):$(f,{style:[W.valueText,{color:_}],numberOfLines:1,children:Vn(e.value,e.valueType)})]})]}),e.value!==void 0?$(Vt,{value:e.value,size:14,buttonStyle:{marginLeft:8,marginRight:8}}):null]})};Fr.displayName="VirtualizedItem";var En=Zt(Fr),Et=({title:e,description:t,data:r,maxDepth:n=10,rawMode:o=!1,initialExpanded:s=!1,disableCopy:i=!1,onSelectionChange:l,onRequestInlineEdit:a,inlineEditPath:c,renderInlineEditor:d,selectPath:p,testIDPrefix:x="buoy-tree-row"})=>{let[T,m]=Be(o),{flatData:V,isProcessing:R,toggleExpanded:Z,revealPath:_}=An(r,n,s),w=ke(null),[C,S]=Be({start:0,end:Math.min(V.length-1,Math.max(0,Math.ceil(400/Ve)-1))}),g=ke({itemVisiblePercentThreshold:1}),b=ke(({viewableItems:A})=>{let le=A.map(be=>be.index).filter(be=>typeof be=="number");le.length&&S({start:Math.min(...le),end:Math.max(...le)})}).current;vt(()=>{S({start:0,end:Math.min(V.length-1,Math.max(0,Math.ceil(400/Ve)-1))})},[V.length]);let D=qt(()=>{let A=new Set;for(let le of V)if(A.add(le.valueType),A.size>=8)break;return Array.from(A)},[V]),v=()=>{m(!T)},[h,H]=Be(null),O=qt(()=>h==null?void 0:V.find(A=>A.id===h),[V,h]),oe=O?.depth;vt(()=>{l&&l(O?Kt(O):null)},[O,l]);let ie=Fe(A=>{H(le=>le===A.id?null:A.id)},[]),de=p===void 0?void 0:p===null?"\0null":p.join("."),Q=ke(de);vt(()=>{if(de===Q.current||(Q.current=de,de===void 0))return;if(p==null){H(null);return}let A=["root"];for(let le of p.slice(0,-1))A.push(`${A[A.length-1]}.${le}`);_(A),H(["root",...p].join("."))},[de,p,_]);let ee=Fe(A=>{H(A.id),a?.(Kt(A))},[a]),ae=({item:A,index:le})=>$(En,{item:A,index:le,onToggleExpanded:Z,onSelect:ie,isSelected:O?.id===A.id,selectable:l!=null,onRequestInlineEdit:ee,isInlineEditing:c!=null&&c.join(".")===A.path.slice(1).join("."),inlineEditor:d?d(Kt(A)):null,testIDPrefix:x}),U=Ve,X=A=>A.id,J=r!=null&&(typeof r=="string"?r.length>0:typeof r=="number"||typeof r=="boolean"?!0:Array.isArray(r)?r.length>0:typeof r=="object"?Object.keys(r).length>0:!1);return o?J?$(u,{style:{minHeight:R?40:V.length*Ve},children:R?$(u,{style:{flex:1,justifyContent:"center",alignItems:"center"},children:pe(f,{style:W.loadingText,children:["Processing data... (raw mode, isProcessing=",String(R),")"]})}):pe(u,{style:{position:"relative",height:V.length*Ve},children:[$(at,{items:V,visibleRange:{start:0,end:Math.max(0,V.length-1)},itemHeight:Ve,indentWidth:Xt,activeDepth:oe}),$(ot,{ref:w,"sentry-label":"ignore devtools data explorer list",data:V,renderItem:ae,keyExtractor:X,showsVerticalScrollIndicator:!0,contentContainerStyle:W.listContent,initialNumToRender:15,maxToRenderPerBatch:10,windowSize:10,scrollEnabled:!1})]})}):$(u,{style:{flex:1,justifyContent:"center",alignItems:"center",padding:20},children:$(f,{style:W.noDataText,children:"No data available"})}):J?pe(u,{style:W.container,children:[pe(u,{style:W.header,children:[$(u,{style:W.headerRow,children:pe(j,{"sentry-label":"ignore devtools data explorer header toggle",onPress:v,hitSlop:Ar,style:W.headerTouchable,children:[pe(u,{style:{flex:1},children:[$(f,{style:W.title,children:e}),t&&$(f,{style:W.description,children:t})]}),$(u,{style:W.expanderMargin,children:$(Br,{expanded:T,onPress:v})})]})}),T&&D.length>0&&!o&&$(vn,{visibleTypes:D})]}),T&&$(Rn,{children:R?$(u,{style:W.loadingContainer,children:pe(f,{style:W.loadingText,children:["Processing data... (isProcessing=",String(R),")"]})}):pe(u,{style:{height:V.length*Ve,position:"relative"},children:[$(at,{items:V,visibleRange:C,itemHeight:Ve,indentWidth:Xt,activeDepth:oe}),$(ot,{ref:w,"sentry-label":"ignore devtools data explorer collapsed list",data:V,renderItem:ae,keyExtractor:X,showsVerticalScrollIndicator:!0,contentContainerStyle:W.listContent,initialNumToRender:15,maxToRenderPerBatch:10,windowSize:10,scrollEnabled:!1,onViewableItemsChanged:b,viewabilityConfig:g.current})]})})]}):pe(u,{style:W.container,children:[$(u,{style:W.header,children:$(u,{style:W.headerRow,children:pe(u,{style:{flex:1},children:[$(f,{style:W.title,children:e}),t&&$(f,{style:W.description,children:t})]})})}),$(u,{style:W.noDataContainer,children:$(f,{style:W.noDataText,children:"No data available"})})]})};import{jsx as Qt,jsxs as On}from"react/jsx-runtime";var Bn=e=>({string:I.dataTypes.string,number:I.dataTypes.number,bigint:I.semantic.debug,boolean:I.dataTypes.boolean,null:I.dataTypes.null,undefined:I.dataTypes.undefined,function:I.dataTypes.function,symbol:I.semantic.error,date:I.semantic.error,error:I.semantic.error,array:I.dataTypes.array,object:I.dataTypes.object})[e]||I.text.secondary,er=({types:e,activeFilter:t,onFilterChange:r})=>{if(e.length===0)return null;let n=o=>{r(t===o?null:o)};return Qt(u,{style:st.typeLegend,children:e.map(o=>{let s=Bn(o),i=t===o;return On(j,{"sentry-label":"ignore devtools type legend filter",style:[st.typeBadge,i&&st.typeBadgeActive,{borderColor:i?s:I.text.primary+"1A"}],onPress:()=>n(o),accessibilityLabel:`Filter by ${o} values`,children:[Qt(u,{style:[st.typeColor,{backgroundColor:s}]}),Qt(f,{style:[st.typeName,i&&{color:s}],children:o})]},o)})})},st=N.create({typeLegend:{flexDirection:"row",flexWrap:"wrap",paddingVertical:3,gap:6,width:"100%",padding:8},typeBadge:{flexDirection:"row",alignItems:"center",backgroundColor:I.background.hover,paddingHorizontal:8,paddingVertical:4,borderRadius:12,borderWidth:1},typeBadgeActive:{backgroundColor:I.background.input},typeColor:{width:8,height:8,borderRadius:4,marginRight:6},typeName:{color:I.text.secondary,fontSize:11,fontWeight:"500"}});import{jsx as Rt,jsxs as Nn}from"react/jsx-runtime";var Ln=({title:e,data:t,maxDepth:r=10,rawMode:n=!0,showTypeFilter:o=!0,initialExpanded:s=!1,disableCopy:i=!1,onSelectionChange:l,onRequestInlineEdit:a,inlineEditPath:c,renderInlineEditor:d,selectPath:p,testIDPrefix:x})=>{let[T,m]=Fn(null),V=Lr(()=>{if(!t||!o)return[];let _=[],w=(C,S=0)=>{if(S>3)return;let g=Array.isArray(C)?"array":C===null?"null":typeof C;_.push(g),g==="object"&&Sr(C)?Object.values(C).forEach(b=>w(b,S+1)):Array.isArray(C)&&C.forEach(b=>w(b,S+1))};return w(t),Array.from(new Set(_)).slice(0,8)},[t,o]),R=Lr(()=>{if(!T||!t)return null;let _={},w=0,C=(S,g,b="",D=0)=>{D>10||w>100||(Array.isArray(S)?S.forEach((v,h)=>{let H=b?`${b}[${h}]`:`[${h}]`,O=v===null?"null":typeof v;O===g&&(_[H]=v,w++),(O==="object"&&v!==null||Array.isArray(v))&&C(v,g,H,D+1)}):S&&typeof S=="object"&&Object.entries(S).forEach(([v,h])=>{let H=b?`${b}.${v}`:v,O=Array.isArray(h)?"array":h===null?"null":typeof h;O===g&&(_[H]=h,w++),(O==="object"&&h!==null||O==="array")&&C(h,g,H,D+1)}))};return C(t,T),{filteredObject:_,itemCount:w}},[T,t]),Z=()=>T&&R?Rt(Et,{title:`${T} values`,data:R.filteredObject,maxDepth:r,rawMode:n,initialExpanded:s,disableCopy:i,testIDPrefix:x}):Rt(Et,{title:e,data:t,maxDepth:r,rawMode:n,initialExpanded:s,disableCopy:i,onSelectionChange:l,onRequestInlineEdit:a,inlineEditPath:c,renderInlineEditor:d,selectPath:p,testIDPrefix:x});return Nn(u,{style:Nr.container,children:[o&&Rt(u,{style:Nr.header,children:Rt(er,{types:V,activeFilter:T,onFilterChange:m})}),Z()]})},Nr=N.create({container:{},header:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}});import{useState as Mn,useEffect as Wn,useRef as dt}from"react";import{jsx as ge,jsxs as tr}from"react/jsx-runtime";function rr({label:e,containerStyle:t,showNumberControls:r=!1,onIncrement:n,onDecrement:o,showDeleteButton:s=!1,onDelete:i,...l}){let[a,c]=Mn(!1),d=dt(new F.Value(0)).current,p=dt(new F.Value(0)).current,x=dt(new F.Value(0)).current,T=dt(new F.Value(1)).current,m=dt(new F.Value(.6)).current;Wn(()=>{a?(F.timing(m,{toValue:1,duration:200,useNativeDriver:!0}).start(),F.loop(F.sequence([F.timing(d,{toValue:0,duration:2e3,useNativeDriver:!0}),F.timing(d,{toValue:.8,duration:30,useNativeDriver:!0}),F.timing(d,{toValue:0,duration:20,useNativeDriver:!0}),F.timing(d,{toValue:.6,duration:40,useNativeDriver:!0}),F.timing(d,{toValue:0,duration:30,useNativeDriver:!0}),F.timing(d,{toValue:.4,duration:20,useNativeDriver:!0}),F.timing(d,{toValue:0,duration:50,useNativeDriver:!0})])).start(),F.loop(F.sequence([F.timing(p,{toValue:0,duration:2500,useNativeDriver:!0}),F.timing(p,{toValue:3,duration:20,useNativeDriver:!0}),F.timing(p,{toValue:-3,duration:20,useNativeDriver:!0}),F.timing(p,{toValue:2,duration:20,useNativeDriver:!0}),F.timing(p,{toValue:0,duration:20,useNativeDriver:!0})])).start(),F.loop(F.sequence([F.timing(x,{toValue:0,duration:2200,useNativeDriver:!0}),F.timing(x,{toValue:-2,duration:30,useNativeDriver:!0}),F.timing(x,{toValue:1,duration:20,useNativeDriver:!0}),F.timing(x,{toValue:0,duration:30,useNativeDriver:!0})])).start(),F.loop(F.sequence([F.timing(T,{toValue:1,duration:3e3,useNativeDriver:!0}),F.timing(T,{toValue:1.01,duration:20,useNativeDriver:!0}),F.timing(T,{toValue:.99,duration:20,useNativeDriver:!0}),F.timing(T,{toValue:1,duration:20,useNativeDriver:!0})])).start()):(F.timing(m,{toValue:.6,duration:200,useNativeDriver:!0}).start(),F.timing(d,{toValue:0,duration:100,useNativeDriver:!0}).start(),F.timing(p,{toValue:0,duration:100,useNativeDriver:!0}).start(),F.timing(x,{toValue:0,duration:100,useNativeDriver:!0}).start(),F.timing(T,{toValue:1,duration:100,useNativeDriver:!0}).start())},[a,m,d,p,x,T]);let V=w=>{c(!0),l.onFocus?.(w)},R=w=>{c(!1),l.onBlur?.(w)},Z={opacity:m,borderColor:a?se.primary:se.textMuted+"4D"},_={opacity:d,transform:[{translateX:p},{translateY:x},{scale:T}]};return ge(u,{style:[K.container,t],children:tr(u,{style:K.rowContainer,children:[e&&ge(f,{style:[K.label,a&&K.labelFocused],children:e.toUpperCase()}),tr(F.View,{style:[K.inputContainer,Z],children:[ge(F.View,{style:[K.glitchOverlay,_],pointerEvents:"none"}),ge(_e,{...l,style:[K.input,l.style,r&&K.inputWithControls,s&&K.inputWithDelete],onFocus:V,onBlur:R,placeholderTextColor:se.textMuted+"99",autoComplete:"off",autoCorrect:!1,autoCapitalize:"none",spellCheck:!1}),r&&tr(u,{style:K.numberControls,children:[ge(j,{style:[K.controlButton,a&&K.controlButtonFocused],onPress:n,activeOpacity:.7,children:ge(Ge,{size:14,strokeWidth:2.5,color:a?se.primary:se.textMuted})}),ge(j,{style:[K.controlButton,a&&K.controlButtonFocused],onPress:o,activeOpacity:.7,children:ge(Re,{size:14,strokeWidth:2.5,color:a?se.primary:se.textMuted})})]}),s&&ge(j,{style:[K.deleteButton,a&&K.deleteButtonFocused],onPress:i,activeOpacity:.7,testID:typeof l.testID=="string"&&l.testID.endsWith("-input")?`${l.testID.slice(0,-6)}-delete`:void 0,accessibilityLabel:"Delete item",children:ge(it,{size:14,strokeWidth:2,color:a?se.error:se.error+"CC"})}),ge(u,{style:[K.cornerAccent,K.cornerTL,a&&K.cornerAccentFocused]}),ge(u,{style:[K.cornerAccent,K.cornerTR,a&&K.cornerAccentFocused]}),ge(u,{style:[K.cornerAccent,K.cornerBL,a&&K.cornerAccentFocused]}),ge(u,{style:[K.cornerAccent,K.cornerBR,a&&K.cornerAccentFocused]})]})]})})}var K=N.create({container:{width:"100%",marginVertical:3},rowContainer:{flexDirection:"row",alignItems:"center",gap:8},label:{fontSize:10,fontWeight:"600",fontFamily:k,color:se.textMuted,letterSpacing:.5,minWidth:60},labelFocused:{color:se.primary},inputContainer:{flex:1,borderWidth:1,borderRadius:6,position:"relative",minHeight:34,justifyContent:"center",flexDirection:"row",alignItems:"center"},glitchOverlay:{position:"absolute",top:-1,left:-1,right:-1,bottom:-1,borderRadius:6,borderWidth:1,borderColor:se.primary,zIndex:10},input:{flex:1,paddingHorizontal:10,paddingVertical:6,color:se.text,fontSize:12,fontFamily:k,backgroundColor:"transparent",zIndex:1},inputWithControls:{paddingRight:4},inputWithDelete:{paddingRight:4},numberControls:{flexDirection:"row",gap:2,paddingRight:4,zIndex:2},controlButton:{width:28,height:28,borderRadius:6,borderWidth:1,borderColor:se.textMuted+"33",alignItems:"center",justifyContent:"center",shadowColor:"#000",shadowOffset:{width:0,height:1},shadowOpacity:.2,shadowRadius:2},controlButtonFocused:{borderColor:se.primary+"CC",shadowColor:se.primary,shadowOpacity:.3,shadowRadius:4},deleteButton:{width:28,height:28,borderRadius:6,borderWidth:1,borderColor:se.error+"4D",alignItems:"center",justifyContent:"center",shadowColor:se.error,shadowOffset:{width:0,height:0},shadowOpacity:.15,shadowRadius:3,marginRight:4,zIndex:2},deleteButtonFocused:{borderColor:se.error+"CC",shadowOpacity:.3,shadowRadius:5},cornerAccent:{position:"absolute",width:6,height:1.2,backgroundColor:se.textMuted+"CC",zIndex:0},cornerAccentFocused:{backgroundColor:se.primary},cornerTL:{top:-1,left:5},cornerTR:{top:-1,right:5},cornerBL:{bottom:-1,left:5},cornerBR:{bottom:-1,right:5}});import{memo as zn,useMemo as Pn}from"react";import{jsx as qe}from"react/jsx-runtime";var Le=10,ct=M.primary+"40",ut=M.primary+"66",Mr=zn(({depth:e,isLastChild:t,isExpanded:r,hasChildren:n,parentHasMoreSiblings:o=[],activeDepth:s=-1,itemHeight:i})=>{let l=Pn(()=>{let a=[];for(let c=1;c<e;c++){let d=c===s;o[c-1]&&a.push(qe(u,{style:[Ke.verticalLine,{left:(c-1)*Le-.5,backgroundColor:d?ut:ct,height:i}]},`v-${c}`))}if(e>0){let c=t&&!r?i/2-1:i;a.push(qe(u,{style:[Ke.verticalLine,{left:(e-1)*Le-.5,backgroundColor:s===e-1?ut:ct,height:c}]},"v-current")),t&&!r&&a.push(qe(u,{style:[Ke.horizontalLine,{left:(e-1)*Le,top:i/2-1,width:Le/2,backgroundColor:s===e-1?ut:ct}]},"h-corner")),r&&n&&a.push(qe(u,{style:[Ke.horizontalLine,{left:(e-1)*Le,top:i/2-1,width:Le/2,backgroundColor:s===e-1?ut:ct}]},"h-expand-connector"))}return n&&r&&a.push(qe(u,{style:[Ke.verticalLine,{left:e*Le-.5,top:i/2,height:i/2+1,backgroundColor:s===e?ut:ct}]},"v-children")),a},[e,t,r,n,o,s,i]);return e===0?null:qe(u,{style:Ke.container,pointerEvents:"none",children:l})});Mr.displayName="IndentGuides";var Ke=N.create({container:{position:"absolute",left:0,top:0,bottom:0,right:0},verticalLine:{position:"absolute",width:1.5,top:0},horizontalLine:{position:"absolute",height:1.5}});import{useMemo as nr,useState as Xn,useEffect as Yn,useRef as Zn}from"react";import{gameUIColors as q,night as Xe}from"@buoy-gg/shared-ui/web";var Bt=(o=>(o.DEFAULT="unchanged",o.ADDED="added",o.REMOVED="removed",o.MODIFIED="modified",o))(Bt||{}),Pr=Symbol.for("buoy.diff.absent");function Ne(e){return e===Pr}function Hn(e,t,r){let n,o;switch(r){case"chars":n=e.split(""),o=t.split("");break;case"words":n=e.match(/\S+|\s+/g)||[],o=t.match(/\S+|\s+/g)||[];break;case"trimmedLines":{let c=e.trim(),d=t.trim();n=c.match(/\S+|\s+/g)||[],o=d.match(/\S+|\s+/g)||[];break}case"lines":default:return{left:[{value:e,type:"removed"}],right:[{value:t,type:"added"}]}}let s=[],i=[],l=0,a=0;for(;l<n.length&&a<o.length;)if(n[l]===o[a])s.push({value:n[l],type:"unchanged"}),i.push({value:o[a],type:"unchanged"}),l++,a++;else{let c=!1;for(let d=l+1;d<Math.min(l+5,n.length);d++)if(n[d]===o[a]){for(let p=l;p<d;p++)s.push({value:n[p],type:"removed"});l=d,c=!0;break}if(!c){for(let d=a+1;d<Math.min(a+5,o.length);d++)if(o[d]===n[l]){for(let p=a;p<d;p++)i.push({value:o[p],type:"added"});a=d,c=!0;break}}c||(s.push({value:n[l],type:"removed"}),i.push({value:o[a],type:"added"}),l++,a++)}for(;l<n.length;)s.push({value:n[l],type:"removed"}),l++;for(;a<o.length;)i.push({value:o[a],type:"added"}),a++;return{left:s,right:i}}function Wr(e){if(Ne(e))return[];if(e==null)return[String(e)];try{let r=JSON.stringify(e,null,2).split(`
3
+ `),n=[];for(let o=0;o<r.length;o++){let s=r[o];(s.trim()!==""||o===0||o===r.length-1)&&n.push(s)}return n}catch{return[String(e)]}}function jn(e,t){if(t<0)return e;let r=[],n=[];if(e.forEach((l,a)=>{l.type!=="unchanged"&&n.push(a)}),n.length===0)return[];let o=[],s=Math.max(0,n[0]-t),i=Math.min(e.length-1,n[0]+t);for(let l=1;l<n.length;l++){let a=n[l],c=Math.max(0,a-t),d=Math.min(e.length-1,a+t);c<=i+1?i=Math.max(i,d):(o.push([s,i]),s=c,i=d)}return o.push([s,i]),o.forEach(([l,a])=>{for(let c=l;c<=a;c++)r.push(e[c])}),r}function zr(e,t,r){let n=t==="trimmedLines"?e.trim():e;return r?n.replace(/,\s*$/,""):n}function $n(e,t){let r=e.trim(),n=t.trim();return!!r&&!!n&&(r.startsWith(n.substring(0,3))||n.startsWith(r.substring(0,3)))}var Jn=8e3,_n=1024;function Un(e,t){let r=e.length,n=t.length;if(r+n>Jn)return null;if(r===0&&n===0)return[];let o=r+n,s=o+1,i=new Int32Array(2*o+3),l=Math.min(o,_n),a=[];for(let c=0;c<=l;c++){a.push(i.slice(s-(c+1),s+c+2));for(let d=-c;d<=c;d+=2){let p;d===-c||d!==c&&i[d-1+s]<i[d+1+s]?p=i[d+1+s]:p=i[d-1+s]+1;let x=p-d;for(;p<r&&x<n&&e[p]===t[x];)p++,x++;if(i[d+s]=p,p>=r&&x>=n)return Gn(a,r,n)}}return null}function Gn(e,t,r){let n=[],o=t,s=r;for(let i=e.length-1;i>=0;i--){let l=e[i],a=i+1,c=o-s,d;c===-i||c!==i&&l[c-1+a]<l[c+1+a]?d=c+1:d=c-1;let p=l[d+a],x=p-d;for(;o>p&&s>x;)n.push({kind:"eq",i:o-1,j:s-1}),o--,s--;i>0&&(o===p?n.push({kind:"ins",j:s-1}):n.push({kind:"del",i:o-1})),o=p,s=x}return n.reverse(),n}function Hr(e,t,r,n,o,s,i){let l=Math.min(t.length,r.length);for(let a=0;a<l;a++){let c=t[a],d=r[a];if(!$n(n[c],o[d])){e.push({leftLineNumber:c+1,type:"removed",leftContent:n[c],leftRaw:n[c]}),e.push({rightLineNumber:d+1,type:"added",rightContent:o[d],rightRaw:o[d]});continue}if(!i&&s!=="lines"){let p=Hn(n[c],o[d],s);e.push({leftLineNumber:c+1,rightLineNumber:d+1,type:"modified",leftContent:p.left,rightContent:p.right,leftRaw:n[c],rightRaw:o[d]})}else e.push({leftLineNumber:c+1,rightLineNumber:d+1,type:"modified",leftContent:n[c],rightContent:o[d],leftRaw:n[c],rightRaw:o[d]})}for(let a=l;a<t.length;a++){let c=t[a];e.push({leftLineNumber:c+1,type:"removed",leftContent:n[c],leftRaw:n[c]})}for(let a=l;a<r.length;a++){let c=r[a];e.push({rightLineNumber:c+1,type:"added",rightContent:o[c],rightRaw:o[c]})}}function Kn(e,t,r,n,o){let s=[],i=0;for(;i<e.length;){let l=e[i];if(l.kind==="eq"){s.push({leftLineNumber:l.i+1,rightLineNumber:l.j+1,type:"unchanged",leftContent:t[l.i],rightContent:r[l.j],leftRaw:t[l.i],rightRaw:r[l.j]}),i++;continue}let a=[],c=[];for(;i<e.length&&e[i].kind!=="eq";){let d=e[i];d.kind==="del"?a.push(d.i):d.kind==="ins"&&c.push(d.j),i++}Hr(s,a,c,t,r,n,o)}return s}function qn(e,t,r,n,o,s){let i=[],l=0,a=0;for(;l<e.length||a<t.length;)l>=e.length?(i.push({rightLineNumber:a+1,type:"added",rightContent:t[a],rightRaw:t[a]}),a++):a>=t.length?(i.push({leftLineNumber:l+1,type:"removed",leftContent:e[l],leftRaw:e[l]}),l++):r[l]===n[a]?(i.push({leftLineNumber:l+1,rightLineNumber:a+1,type:"unchanged",leftContent:e[l],rightContent:t[a],leftRaw:e[l],rightRaw:t[a]}),l++,a++):(Hr(i,[l],[a],e,t,o,s),l++,a++);return i}function ft(e,t,r={}){let{compareMethod:n="words",disableWordDiff:o=!1,showDiffOnly:s=!1,contextLines:i=3,ignoreTrailingComma:l=!0}=r,a=Wr(e),c=Wr(t),d=a.map(m=>zr(m,n,l)),p=c.map(m=>zr(m,n,l)),x=Un(d,p),T=x?Kn(x,a,c,n,o):qn(a,c,d,p,n,o);return s?jn(T,i):T}import{Fragment as or,jsx as z,jsxs as we}from"react/jsx-runtime";var Qn={background:Xe.color.bg,text:Xe.color.textSecondary,addedBg:q.diff.addedBackground,removedBg:q.diff.removedBackground,changedBg:q.diff.modifiedBackground,addedText:q.diff.addedText,removedText:q.diff.removedText,changedText:q.diff.modifiedText,addedWordBg:q.diff.addedWordHighlight,removedWordBg:q.diff.removedWordHighlight,arrowText:q.diff.modifiedText,keyText:q.diff.modifiedText,expandIcon:Xe.color.textTertiary,bracketText:Xe.color.textSecondary,nullText:q.diff.modifiedText,undefinedText:q.diff.modifiedText,stringText:Xe.color.textSecondary,numberText:Xe.color.textSecondary,booleanText:q.diff.modifiedText},eo={background:"#ffffff",text:"#333333",addedBg:"rgba(40, 167, 69, 0.1)",addedText:"#28A745",removedBg:"rgba(220, 53, 69, 0.1)",removedText:"#DC3545",changedBg:"rgba(255, 193, 7, 0.1)",changedText:"#FFC107",arrowText:"#007BFF",keyText:"#0451A5",expandIcon:"#6A737D",bracketText:"#6A737D",nullText:"#0000FF",undefinedText:"#0000FF",stringText:"#A31515",numberText:"#098658",booleanText:"#0000FF"};function ue(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function pt(e,t){if(e===t)return!0;if(e===null||t===null||e===void 0||t===void 0||typeof e!=typeof t)return!1;if(typeof e=="object"){if(Array.isArray(e)&&Array.isArray(t))return e.length!==t.length?!1:e.every((r,n)=>pt(r,t[n]));if(ue(e)&&ue(t)){let r=Object.keys(e),n=Object.keys(t);return r.length!==n.length?!1:r.every(o=>pt(e[o],t[o]))}}return!1}function Se(e,t,r=[]){let n=[];if(Ne(e)&&(e=void 0),Ne(t)&&(t=void 0),!ue(e)&&!ue(t)&&!Array.isArray(e)&&!Array.isArray(t))return pt(e,t)?[{key:r.length>0?r[r.length-1]:"root",path:r,type:"unchanged",oldValue:e,newValue:t}]:[{key:r.length>0?r[r.length-1]:"root",path:r,type:e===void 0?"added":t===void 0?"removed":"changed",oldValue:e,newValue:t}];if(Array.isArray(e)||Array.isArray(t)){let l=Array.isArray(e)?e:[],a=Array.isArray(t)?t:[],c=Math.max(l.length,a.length);for(let d=0;d<c;d++){let p=[...r,`[${d}]`],x=d<l.length?l[d]:void 0,T=d<a.length?a[d]:void 0;if(x===void 0){let m=Array.isArray(T)||ue(T);n.push({key:`[${d}]`,path:p,type:"added",newValue:T,...m?{children:Se(Array.isArray(T)?[]:{},T,p),expanded:!1}:{}})}else if(T===void 0){let m=Array.isArray(x)||ue(x);n.push({key:`[${d}]`,path:p,type:"removed",oldValue:x,...m?{children:Se(x,Array.isArray(x)?[]:{},p),expanded:!1}:{}})}else if(!pt(x,T))ue(x)||ue(T)||Array.isArray(x)||Array.isArray(T)?n.push({key:`[${d}]`,path:p,type:"changed",oldValue:x,newValue:T,children:Se(x,T,p),expanded:!1}):n.push({key:`[${d}]`,path:p,type:"changed",oldValue:x,newValue:T});else{let m=Array.isArray(x)||ue(x);n.push({key:`[${d}]`,path:p,type:"unchanged",oldValue:x,newValue:T,...m?{children:Se(x,T,p),expanded:!1}:{}})}}return n}let o=ue(e)?e:{},s=ue(t)?t:{},i=new Set([...Object.keys(o),...Object.keys(s)]);for(let l of i){let a=[...r,l],c=o[l],d=s[l];if(l in o)if(l in s)if(!pt(c,d))ue(c)||ue(d)||Array.isArray(c)||Array.isArray(d)?n.push({key:l,path:a,type:"changed",oldValue:c,newValue:d,children:Se(c,d,a),expanded:!1}):n.push({key:l,path:a,type:"changed",oldValue:c,newValue:d});else{let p=Array.isArray(c)||ue(c);n.push({key:l,path:a,type:"unchanged",oldValue:c,newValue:d,...p?{children:Se(c,d,a),expanded:!1}:{}})}else{let p=Array.isArray(c)||ue(c);n.push({key:l,path:a,type:"removed",oldValue:c,...p?{children:Se(c,Array.isArray(c)?[]:{},a),expanded:!1}:{}})}else{let p=Array.isArray(d)||ue(d);n.push({key:l,path:a,type:"added",newValue:d,...p?{children:Se(Array.isArray(d)?[]:{},d,a),expanded:!1}:{}})}}return n}function ve(e,t=!0){if(e===null)return"null";if(e===void 0)return"undefined";if(typeof e=="string")return t&&e.length>30?`"${e.substring(0,27)}..."`:`"${e}"`;if(typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e)){if(t){let r=e.length;return r===0?"[ ]":`[ ${r} item${r!==1?"s":""} ]`}return JSON.stringify(e,null,2)}if(ue(e)){if(t){let r=Object.keys(e).length;return r===0?"{ }":`{ ${r} key${r!==1?"s":""} }`}return JSON.stringify(e,null,2)}return String(e)}function jr({oldValue:e,newValue:t,theme:r="dark",expandAll:n=!1,showUnchanged:o=!0,scrollEnabled:s=!0}){let i=r==="dark"?Qn:eo,[l,a]=Xn(()=>{let w=new Set;return Se(e,t).forEach(S=>{S.children&&S.children.length>0&&w.add(S.path.join("."))}),w}),c=nr(()=>Se(e,t),[e,t]),d=nr(()=>c.map(w=>`${w.path.join(".")}:${w.type}`).join("|"),[c]),p=Zn(!1);Yn(()=>{if(!p.current){p.current=!0;return}let w=new Set;c.forEach(C=>{C.children&&C.children.length>0&&w.add(C.path.join("."))}),a(w)},[d]);let x=w=>{let C=w.join(".");a(S=>{let g=new Set(S);return g.has(C)?g.delete(C):g.add(C),g})},T=0,m=(w,C=0)=>{if(!o&&w.type==="unchanged")return null;T++;let S=T,g=C*20,b=n||l.has(w.path.join(".")),D=w.children&&w.children.length>0,v=()=>{switch(w.type){case"added":return{backgroundColor:i.addedBg};case"removed":return{backgroundColor:i.removedBg};case"changed":return{backgroundColor:i.changedBg};default:return{backgroundColor:"transparent"}}},h=()=>{switch(w.type){case"added":return"+";case"removed":return"\u2212";case"changed":return"\u2248";default:return" "}},H=()=>{switch(w.type){case"added":return{backgroundColor:q.diff.markerAddedBackground,color:q.diff.addedText};case"removed":return{backgroundColor:q.diff.markerRemovedBackground,color:q.diff.removedText};case"changed":return{backgroundColor:q.diff.markerModifiedBackground,color:q.diff.modifiedText};default:return{backgroundColor:"transparent",color:q.diff.markerText}}};return we(u,{children:[we(j,{activeOpacity:D?.7:1,onPress:D?()=>x(w.path):void 0,style:[B.row,v()],children:[z(u,{style:B.lineNumber,children:z(f,{style:[B.lineNumberText,{color:q.diff.lineNumberText}],children:String(S).padStart(2," ")})}),z(u,{style:[B.marker,H()],children:z(f,{style:[B.markerText,{color:H().color}],children:h()})}),we(u,{style:[B.content,{paddingLeft:g}],children:[D&&z(u,{style:B.expandIconContainer,children:z(f,{style:[B.expandIcon,{color:i.expandIcon}],children:b?"\u2212":"+"})}),z(f,{style:[B.key,{color:i.keyText}],children:w.key}),z(f,{style:[B.colon,{color:i.expandIcon}],children:":"}),w.type==="changed"&&!D&&we(or,{children:[z(f,{style:[B.value,{color:i.removedText,backgroundColor:i.removedWordBg,paddingHorizontal:3,paddingVertical:2,borderRadius:3,textDecorationLine:"line-through",textDecorationColor:i.removedText}],children:ve(w.oldValue)}),z(f,{style:[B.arrow,{color:i.arrowText,paddingHorizontal:4}],children:" => "}),z(f,{style:[B.value,{color:i.addedText,backgroundColor:i.addedWordBg,paddingHorizontal:3,paddingVertical:2,borderRadius:3}],children:ve(w.newValue)})]}),w.type==="added"&&!D&&z(f,{style:[B.value,{color:i.addedText,backgroundColor:i.addedWordBg,paddingHorizontal:3,paddingVertical:2,borderRadius:3}],children:ve(w.newValue)}),w.type==="removed"&&!D&&z(f,{style:[B.value,{color:i.removedText,backgroundColor:i.removedWordBg,paddingHorizontal:3,paddingVertical:2,borderRadius:3,textDecorationLine:"line-through",textDecorationColor:i.removedText}],children:ve(w.oldValue)}),w.type==="unchanged"&&!D&&z(f,{style:[B.value,{color:i.text}],children:ve(w.oldValue)}),D&&!b&&we(or,{children:[w.type==="changed"&&we(or,{children:[z(f,{style:[B.value,{color:i.removedText,backgroundColor:i.removedWordBg,paddingHorizontal:3,paddingVertical:2,borderRadius:3,textDecorationLine:"line-through",textDecorationColor:i.removedText}],children:ve(w.oldValue,!0)}),z(f,{style:[B.arrow,{color:i.arrowText,paddingHorizontal:4}],children:" => "}),z(f,{style:[B.value,{color:i.addedText,backgroundColor:i.addedWordBg,paddingHorizontal:3,paddingVertical:2,borderRadius:3}],children:ve(w.newValue,!0)})]}),w.type==="added"&&z(f,{style:[B.value,{color:i.addedText,backgroundColor:i.addedWordBg,paddingHorizontal:3,paddingVertical:2,borderRadius:3}],children:ve(w.newValue,!0)}),w.type==="removed"&&z(f,{style:[B.value,{color:i.removedText,backgroundColor:i.removedWordBg,paddingHorizontal:3,paddingVertical:2,borderRadius:3,textDecorationLine:"line-through",textDecorationColor:i.removedText}],children:ve(w.oldValue,!0)})]})]})]}),D&&b&&z(u,{children:w.children.map(O=>m(O,C+1))})]},w.path.join("."))},V=w=>{let C=0,S=0,g=0,b=D=>{for(let v of D)v.type==="added"?C++:v.type==="removed"?S++:v.type==="changed"&&g++,v.children&&b(v.children)};return b(w),{added:C,removed:S,changed:g}},R=nr(()=>V(c),[c]),Z=R.added>0||R.removed>0||R.changed>0,_=s?Ue:u;return we(u,{style:[s?B.container:B.containerInline,{backgroundColor:i.background}],children:[Z&&z(u,{style:[B.header,{backgroundColor:i.background}],children:we(u,{style:B.summaryContainer,children:[R.added>0&&we(u,{style:[B.summaryItem,B.summaryAdded],children:[z(f,{style:[B.summaryIcon,{color:i.addedText}],children:"+"}),z(f,{style:[B.summaryCount,{color:i.addedText}],children:R.added}),z(f,{style:[B.summaryLabel,{color:i.addedText}],children:"new"})]}),R.removed>0&&we(u,{style:[B.summaryItem,B.summaryRemoved],children:[z(f,{style:[B.summaryIcon,{color:i.removedText}],children:"\u2212"}),z(f,{style:[B.summaryCount,{color:i.removedText}],children:R.removed}),z(f,{style:[B.summaryLabel,{color:i.removedText}],children:"gone"})]}),R.changed>0&&we(u,{style:[B.summaryItem,B.summaryChanged],children:[z(f,{style:[B.summaryIcon,{color:i.changedText}],children:"\u2248"}),z(f,{style:[B.summaryCount,{color:i.changedText}],children:R.changed}),z(f,{style:[B.summaryLabel,{color:i.changedText}],children:"modified"})]})]})}),z(_,{style:s?B.scrollView:void 0,showsVerticalScrollIndicator:!1,children:c.length===0?we(u,{style:B.emptyState,children:[z(f,{style:[B.emptyIcon,{color:i.text}],children:"\u2261"}),z(f,{style:[B.emptyTitle,{color:i.text}],children:"No changes detected"}),z(f,{style:[B.emptySubtitle,{color:i.expandIcon}],children:"The data is identical"})]}):z(u,{children:(T=0,c.map(w=>m(w,0)))})})]})}var B=N.create({container:{flex:1,borderRadius:8,overflow:"hidden"},containerInline:{borderRadius:8,overflow:"hidden"},header:{paddingHorizontal:12,paddingVertical:8,borderBottomWidth:1,borderBottomColor:q.diff.lineNumberBorder},summaryContainer:{flexDirection:"row",gap:16,alignItems:"center"},summaryItem:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:4,borderRadius:12},summaryAdded:{backgroundColor:q.diff.addedBackground},summaryRemoved:{backgroundColor:q.diff.removedBackground},summaryChanged:{backgroundColor:q.diff.modifiedBackground},summaryIcon:{fontSize:14,fontWeight:"700",fontFamily:k},summaryCount:{fontSize:13,fontWeight:"600",fontFamily:k},summaryLabel:{fontSize:11,fontFamily:k,opacity:.9},scrollView:{flex:1},row:{minHeight:26,justifyContent:"center",flexDirection:"row",borderBottomWidth:N.hairlineWidth,borderBottomColor:"rgba(128, 128, 128, 0.04)"},lineNumber:{width:32,paddingHorizontal:6,paddingVertical:4,backgroundColor:q.diff.lineNumberBackground,justifyContent:"center",borderRightWidth:1,borderRightColor:q.diff.lineNumberBorder},lineNumberText:{fontSize:11,fontFamily:k,textAlign:"right"},marker:{width:20,paddingHorizontal:2,paddingVertical:4,justifyContent:"center",alignItems:"center"},markerText:{fontSize:12,fontFamily:k,fontWeight:"600"},content:{flex:1,flexDirection:"row",alignItems:"center",paddingHorizontal:12,paddingVertical:4},expandIconContainer:{width:16,height:16,borderRadius:3,backgroundColor:q.diff.lineNumberBorder,alignItems:"center",justifyContent:"center",marginRight:6},expandIcon:{fontSize:11,fontFamily:k,fontWeight:"600"},colon:{fontSize:12,fontFamily:k,marginHorizontal:4},key:{fontSize:11,fontFamily:k,fontWeight:"500",opacity:.9},value:{fontSize:11,fontFamily:k,maxWidth:"80%"},arrow:{fontSize:12,fontFamily:k,fontWeight:"600"},badge:{fontSize:11,fontFamily:k,fontWeight:"600",marginLeft:8},emptyState:{flex:1,alignItems:"center",justifyContent:"center",paddingVertical:60},emptyIcon:{fontSize:48,fontFamily:k,opacity:.2,marginBottom:12},emptyTitle:{fontSize:14,fontFamily:k,fontWeight:"600",marginBottom:4},emptySubtitle:{fontSize:12,fontFamily:k,opacity:.6}});function me(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function ir(e){switch(e.kind){case"move":return[...e.path.slice(0,-1),String(e.toIndex)];case"duplicate":{let t=e.path[e.path.length-1],r=Number(t);return Number.isInteger(r)?[...e.path.slice(0,-1),String(r+1)]:void 0}case"remove":return null;default:return}}function ar(e){return Array.isArray(e)||me(e)}function gt(e,t){let r=e;for(let n of t)if(Array.isArray(r))r=r[Number(n)];else if(me(r))r=r[n];else return;return r}function Ce(e,t,r){if(t.length===0)return r(e);let[n,...o]=t;if(Array.isArray(e)){let s=Number(n);if(!Number.isInteger(s)||s<0||s>=e.length)return e;let i=[...e];return i[s]=Ce(i[s],o,r),i}return me(e)&&n in e?{...e,[n]:Ce(e[n],o,r)}:e}function Ot(e){return e.length===0?null:{parent:e.slice(0,-1),last:e[e.length-1]}}function lr(e,t){switch(t.kind){case"replace":return Ce(e,t.path,()=>t.value);case"clear":return Ce(e,t.path,r=>Array.isArray(r)?[]:me(r)?{}:r);case"append":return Ce(e,t.path,r=>Array.isArray(r)?[...r,t.value]:r);case"insert":return Ce(e,t.path,r=>{if(!Array.isArray(r))return r;let n=$r(t.index,0,r.length);return[...r.slice(0,n),t.value,...r.slice(n)]});case"addKey":return Ce(e,t.path,r=>!me(r)||t.key in r?r:{...r,[t.key]:t.value});case"remove":{let r=Ot(t.path);return r?Ce(e,r.parent,n=>to(n,r.last)):e}case"duplicate":{let r=Ot(t.path);return r?Ce(e,r.parent,n=>ro(n,r.last)):e}case"move":{let r=Ot(t.path);return r?Ce(e,r.parent,n=>{if(!Array.isArray(n))return n;let o=Number(r.last);if(!Number.isInteger(o)||o<0||o>=n.length)return n;let s=$r(t.toIndex,0,n.length-1);if(s===o)return n;let i=[...n],[l]=i.splice(o,1);return i.splice(s,0,l),i}):e}case"renameKey":{let r=Ot(t.path);return r?Ce(e,r.parent,n=>no(n,r.last,t.key)):e}default:return e}}function to(e,t){if(Array.isArray(e)){let r=Number(t);return!Number.isInteger(r)||r<0||r>=e.length?e:e.filter((n,o)=>o!==r)}if(me(e)){if(!(t in e))return e;let r={};for(let n of Object.keys(e))n!==t&&(r[n]=e[n]);return r}return e}function ro(e,t){if(Array.isArray(e)){let r=Number(t);return!Number.isInteger(r)||r<0||r>=e.length?e:[...e.slice(0,r+1),Ft(e[r]),...e.slice(r+1)]}if(me(e)){if(!(t in e))return e;let r=oo(e,`${t} copy`),n={};for(let o of Object.keys(e))n[o]=e[o],o===t&&(n[r]=Ft(e[o]));return n}return e}function no(e,t,r){if(!me(e)||!(t in e)||r===t||r in e)return e;let n={};for(let o of Object.keys(e))o===t?n[r]=e[o]:n[o]=e[o];return n}function oo(e,t){if(!(t in e))return t;let r=2;for(;`${t} ${r}`in e;)r++;return`${t} ${r}`}function Ft(e){if(Array.isArray(e))return e.map(Ft);if(me(e)){let t={};for(let r of Object.keys(e))t[r]=Ft(e[r]);return t}return e}function $r(e,t,r){return Number.isFinite(e)?Math.min(Math.max(Math.trunc(e),t),r):t}function Lt(e){let t=Array.isArray(e)?e:me(e)?Object.values(e):[],r=t[t.length-1];return typeof r=="number"?0:typeof r=="boolean"?!1:Array.isArray(r)?[]:me(r)?{}:""}function Ae(e){return e===null?"null":Array.isArray(e)?"array":me(e)?"object":typeof e}function Me(e){return e.length===0?"root":e.join(" \u203A ")}function sr(e){let t={};for(let r of e)t[r.id]=r;return t}function io(e){if(!("newKey"in e))return"newKey";let t=2;for(;`newKey ${t}`in e;)t++;return`newKey ${t}`}function mt(e,t,r={}){let n=t?.path??[],o=t?.value,s=t!=null,i=n.length===0,l=r.rootEntriesLocked===!0&&n.length===1,a=s&&!i?gt(e,n.slice(0,-1)):void 0,c=Array.isArray(a),d=c?Number(n[n.length-1]):-1,p=Array.isArray(o),x=me(o),T=ar(o),m=s&&(r.containersEditable===!0||!T),V=x?io(o):"",R=x?{id:"add",label:"Add key",enabled:!0,op:{kind:"addKey",path:n,key:V,value:Lt(o)},selectAfter:[...n,V]}:{id:"add",label:"Append",enabled:p,op:p?{kind:"append",path:n,value:Lt(o)}:null,selectAfter:p?[...n,String(o.length)]:void 0};return[typeof o=="boolean"?{id:"editValue",label:"Toggle",enabled:!0,op:{kind:"replace",path:n,value:!o}}:{id:"editValue",label:"Edit value",enabled:m,op:null},R,{id:"duplicate",label:"Duplicate",enabled:s&&!i,op:s&&!i?{kind:"duplicate",path:n}:null},{id:"moveUp",label:"Move up",enabled:s&&c&&d>0,op:s&&c&&d>0?{kind:"move",path:n,toIndex:d-1}:null},{id:"moveDown",label:"Move down",enabled:s&&c&&d>-1&&d<a.length-1,op:s&&c&&d>-1&&d<a.length-1?{kind:"move",path:n,toIndex:d+1}:null},{id:"remove",label:"Remove",danger:!0,enabled:s&&!i&&!l,op:s&&!i&&!l?{kind:"remove",path:n}:null}]}import{useState as ao}from"react";import{jsx as re,jsxs as yt}from"react/jsx-runtime";var ce={barBg:I.background.card,barBorder:I.border.default,label:I.text.primary,badgeBg:I.background.hover,badgeText:I.text.secondary,hint:I.text.muted,btnBg:I.background.hover,btnBorder:I.border.default,btnText:I.text.primary,btnIcon:I.text.secondary,dangerBorder:I.semantic.error+"55",dangerText:I.semantic.error},Nt=13;function Ye({label:e,onPress:t,icon:r,danger:n,iconOnly:o,disabled:s,style:i}){return yt(j,{"sentry-label":"ignore devtools tree action",accessibilityLabel:e,accessibilityState:{disabled:!!s},onPress:s?void 0:t,disabled:s,hitSlop:{top:8,bottom:8,left:6,right:6},style:[ne.button,o&&ne.buttonIconOnly,n&&{borderColor:ce.dangerBorder},s&&ne.buttonDisabled,i],children:[r,o?null:re(f,{style:[ne.buttonText,n&&{color:ce.dangerText}],children:e})]})}function lo({root:e,selection:t,onEdit:r,onRequestInlineEdit:n,chipStyle:o}){let s=t!=null,i=sr(mt(e,t)),l=a=>a&&r(a);return yt(u,{style:ne.bar,children:[re(f,{style:[ne.selectionLabel,!s&&ne.selectionLabelEmpty],numberOfLines:1,children:s?Me(t.path):"Select a row to edit"}),re(u,{style:ne.badge,children:re(f,{style:ne.badgeText,children:s?Ae(t.value):"\u2014"})}),yt(u,{style:ne.actions,children:[re(Ye,{label:i.editValue.label,disabled:!i.editValue.enabled,style:o,icon:re(kt,{size:Nt,color:ce.btnIcon}),onPress:()=>i.editValue.op?r(i.editValue.op):n()}),re(Ye,{label:i.add.label,disabled:!i.add.enabled,style:o,icon:re(St,{size:Nt,color:ce.btnIcon}),onPress:()=>l(i.add.op)}),re(Ye,{label:i.moveUp.label,iconOnly:!0,disabled:!i.moveUp.enabled,style:o,icon:re(Ge,{size:14,color:ce.btnIcon}),onPress:()=>l(i.moveUp.op)}),re(Ye,{label:i.moveDown.label,iconOnly:!0,disabled:!i.moveDown.enabled,style:o,icon:re(Re,{size:14,color:ce.btnIcon}),onPress:()=>l(i.moveDown.op)}),re(Ye,{label:i.duplicate.label,disabled:!i.duplicate.enabled,style:o,icon:re(Dt,{size:Nt,color:ce.btnIcon}),onPress:()=>l(i.duplicate.op)}),re(Ye,{label:i.remove.label,danger:!0,disabled:!i.remove.enabled,style:o,icon:re(Ct,{size:Nt,color:ce.dangerText}),onPress:()=>l(i.remove.op)})]})]})}function so({value:e,onCommit:t,onCancel:r}){let[n,o]=ao(()=>e==null?"":String(e));if(typeof e=="boolean")return yt(u,{style:ne.inlineRow,children:[[!0,!1].map(a=>re(j,{accessibilityLabel:`Set ${a}`,onPress:()=>t(a),hitSlop:{top:8,bottom:8,left:6,right:6},style:[ne.button,e===a&&ne.buttonActive],children:re(f,{style:ne.buttonText,children:String(a)})},String(a))),re(j,{accessibilityLabel:"Cancel edit",onPress:r,hitSlop:{top:8,bottom:8,left:6,right:6},style:ne.button,children:re(f,{style:ne.buttonText,children:"Cancel"})})]});let s=typeof e=="number",i=s&&(n.trim()===""||Number.isNaN(Number(n))),l=()=>{i||t(s?Number(n):n)};return yt(u,{style:ne.inlineRow,children:[re(_e,{value:n,onChangeText:o,onSubmitEditing:l,autoFocus:!0,autoCapitalize:"none",autoCorrect:!1,spellCheck:!1,keyboardType:s?"numeric":"default",style:[ne.input,i&&ne.inputInvalid],placeholderTextColor:ce.hint}),re(j,{accessibilityLabel:"Save value",onPress:l,hitSlop:{top:8,bottom:8,left:6,right:6},style:[ne.saveButton,i&&ne.saveButtonDisabled],children:re(f,{style:ne.saveText,children:"Save"})}),re(j,{accessibilityLabel:"Cancel edit",onPress:r,hitSlop:{top:8,bottom:8,left:6,right:6},style:ne.button,children:re(f,{style:ne.buttonText,children:"Cancel"})})]})}var ne=N.create({inlineRow:{flex:1,flexDirection:"row",alignItems:"center",gap:6},input:{flex:1,minWidth:0,height:28,color:ce.label,backgroundColor:I.background.input,borderWidth:1,borderColor:I.border.input,borderRadius:7,paddingHorizontal:9,paddingVertical:0,fontSize:12,fontFamily:k},inputInvalid:{borderColor:I.semantic.error},saveButton:{height:28,justifyContent:"center",paddingHorizontal:10,borderRadius:7,backgroundColor:I.semantic.success},saveButtonDisabled:{opacity:.4},saveText:{color:I.background.base,fontSize:12,fontWeight:"600"},buttonActive:{borderColor:I.semantic.success},bar:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",gap:8,paddingHorizontal:12,paddingVertical:9,borderTopWidth:1,borderTopColor:ce.barBorder,backgroundColor:ce.barBg},actions:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",gap:6,marginLeft:"auto"},selectionLabelEmpty:{color:ce.hint,fontWeight:"400"},selectionLabel:{color:ce.label,fontSize:12,fontWeight:"600",fontFamily:k,flexShrink:1},badge:{paddingHorizontal:7,paddingVertical:1,borderRadius:5,backgroundColor:ce.badgeBg},badgeText:{color:ce.badgeText,fontSize:11,fontWeight:"600"},button:{flexDirection:"row",alignItems:"center",gap:6,minHeight:32,paddingHorizontal:11,borderRadius:8,borderWidth:1,borderColor:ce.btnBorder,backgroundColor:ce.btnBg},buttonDisabled:{opacity:.35},buttonIconOnly:{paddingHorizontal:0,width:32,justifyContent:"center"},buttonText:{color:ce.btnText,fontSize:12,fontWeight:"600"},hint:{color:ce.hint,fontSize:12,flexShrink:1}});import{jsx as De,jsxs as dr}from"react/jsx-runtime";var xe={dockBg:I.background.card,dockBorder:I.border.default,tileBg:I.background.hover,tileBorder:I.border.default,tileText:I.text.primary,tileIcon:I.text.secondary,hint:I.text.muted,label:I.text.primary,badgeBg:I.background.hover,badgeText:I.text.secondary,dangerBorder:I.semantic.error+"55",dangerText:I.semantic.error},Ze=16;function co(e,t){switch(e){case"editValue":return De(kt,{size:Ze,color:t});case"add":return De(St,{size:Ze,color:t});case"duplicate":return De(Dt,{size:Ze,color:t});case"moveUp":return De(Ge,{size:Ze+2,color:t});case"moveDown":return De(Re,{size:Ze+2,color:t});case"remove":return De(Ct,{size:Ze,color:t})}}function uo({action:e,onPress:t}){let{enabled:r,danger:n,label:o,id:s}=e,i=n&&r?xe.dangerText:xe.tileIcon;return dr(j,{"sentry-label":"ignore devtools tree action",testID:`buoy-tree-action-${s}`,accessibilityLabel:o,accessibilityState:{disabled:!r},disabled:!r,onPress:r?t:void 0,style:[Ie.tile,n&&r&&{borderColor:xe.dangerBorder},!r&&Ie.tileDisabled],children:[co(s,i),De(f,{style:[Ie.tileText,n&&r&&{color:xe.dangerText}],numberOfLines:1,children:o})]})}function fo({root:e,selection:t,onEdit:r,onSelectPath:n,onEditValue:o,containersEditable:s=!0,rootEntriesLocked:i=!1}){let l=mt(e,t,{containersEditable:s,rootEntriesLocked:i}),a=t!=null,c=d=>{if(!d.op){o();return}r(d.op),d.selectAfter&&n(d.selectAfter)};return dr(u,{style:Ie.dock,children:[dr(u,{style:Ie.header,children:[De(f,{style:[Ie.selectionLabel,!a&&Ie.selectionLabelEmpty],numberOfLines:1,children:a?Me(t.path):"Tap a row to select it"}),De(u,{style:Ie.badge,children:De(f,{style:Ie.badgeText,children:a?Ae(t.value):"\u2014"})})]}),De(u,{style:Ie.grid,children:l.map(d=>De(uo,{action:d,onPress:()=>c(d)},d.id))})]})}var Ie=N.create({dock:{borderTopWidth:1,borderTopColor:xe.dockBorder,backgroundColor:xe.dockBg,paddingHorizontal:10,paddingTop:8,paddingBottom:10,gap:8},header:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:2},selectionLabel:{flex:1,color:xe.label,fontSize:12,fontWeight:"600",fontFamily:k},selectionLabelEmpty:{color:xe.hint,fontWeight:"400"},badge:{paddingHorizontal:7,paddingVertical:1,borderRadius:5,backgroundColor:xe.badgeBg},badgeText:{color:xe.badgeText,fontSize:11,fontWeight:"600"},grid:{flexDirection:"row",flexWrap:"wrap",gap:8},tile:{flexBasis:"31%",flexGrow:1,minHeight:54,alignItems:"center",justifyContent:"center",gap:3,paddingHorizontal:6,borderRadius:10,borderWidth:1,borderColor:xe.tileBorder,backgroundColor:xe.tileBg},tileDisabled:{opacity:.35},tileText:{color:xe.tileText,fontSize:11,fontWeight:"600"}});import{Fragment as mo,useMemo as _r,memo as yo}from"react";import{memo as po}from"react";import{jsx as Ee,jsxs as Mt}from"react/jsx-runtime";var bt=po(function({added:t,removed:r,modified:n,theme:o,style:s}){return t>0||r>0||n>0?Mt(u,{style:[Te.container,{backgroundColor:o.summaryBackground,borderTopColor:o.borderColor},s],children:[t>0&&Mt(u,{style:[Te.badge,{backgroundColor:o.addedBackground}],children:[Ee(f,{style:[Te.icon,{color:o.summaryAddedText}],children:"+"}),Ee(f,{style:[Te.count,{color:o.summaryAddedText}],children:t}),Ee(f,{style:[Te.label,{color:o.summaryAddedText}],children:"new"})]}),r>0&&Mt(u,{style:[Te.badge,{backgroundColor:o.removedBackground}],children:[Ee(f,{style:[Te.icon,{color:o.summaryRemovedText}],children:"\u2212"}),Ee(f,{style:[Te.count,{color:o.summaryRemovedText}],children:r}),Ee(f,{style:[Te.label,{color:o.summaryRemovedText}],children:"gone"})]}),n>0&&Mt(u,{style:[Te.badge,{backgroundColor:o.modifiedBackground}],children:[Ee(f,{style:[Te.icon,{color:o.summaryModifiedText}],children:"\u2248"}),Ee(f,{style:[Te.count,{color:o.summaryModifiedText}],children:n}),Ee(f,{style:[Te.label,{color:o.summaryModifiedText}],children:"modified"})]})]}):null}),Te=N.create({container:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:12,paddingVertical:6,paddingHorizontal:12,borderTopWidth:1},badge:{flexDirection:"row",alignItems:"center",gap:3,paddingHorizontal:6,paddingVertical:2,borderRadius:10},icon:{fontSize:11,fontFamily:k,fontWeight:"700"},count:{fontSize:10,fontFamily:k,fontWeight:"600"},label:{fontSize:9,fontFamily:k,opacity:.9}});var Jr={name:"Git Classic",description:"Traditional Git diff colors - simple and familiar",background:"#FFFFFF",panelBackground:"#F8F8F8",headerBackground:"#F0F0F0",addedBackground:"#E6FFED",removedBackground:"#FFEEF0",modifiedBackground:"#FFF5DD",unchangedBackground:"transparent",contextBackground:"#FAFAFA",addedText:"#22863A",removedText:"#CB2431",modifiedText:"#B08800",unchangedText:"#24292E",addedWordHighlight:"#ACF2BD",removedWordHighlight:"#FDB8C0",lineNumberBackground:"#F6F8FA",lineNumberText:"#959DA5",lineNumberBorder:"#E1E4E8",markerAddedBackground:"#CDFFD8",markerRemovedBackground:"#FFDCE0",markerModifiedBackground:"#FFF5B1",markerText:"#666666",borderColor:"#E1E4E8",dividerColor:"#E1E4E8",summaryBackground:"#F6F8FA",summaryAddedText:"#28A745",summaryRemovedText:"#D73A49",summaryModifiedText:"#0366D6",emptyStateText:"#586069",separatorBackground:"#F6F8FA",separatorText:"#586069"},Wt={name:"Dev Tools Default",description:"The Buoy night theme",background:"#050505",panelBackground:"#0C0C0C",headerBackground:"#0C0C0C",addedBackground:"rgba(32, 201, 151, 0.12)",removedBackground:"rgba(239, 68, 68, 0.12)",modifiedBackground:"rgba(155, 112, 224, 0.12)",unchangedBackground:"transparent",contextBackground:"rgba(255, 255, 255, 0.02)",addedText:"#20C997",removedText:"#EF4444",modifiedText:"#9B70E0",unchangedText:"#ECEDEE",addedWordHighlight:"rgba(32, 201, 151, 0.3)",removedWordHighlight:"rgba(239, 68, 68, 0.3)",lineNumberBackground:"#050505",lineNumberText:"#9BA1A6",lineNumberBorder:"#1A1A1C",markerAddedBackground:"rgba(32, 201, 151, 0.2)",markerRemovedBackground:"rgba(239, 68, 68, 0.2)",markerModifiedBackground:"rgba(155, 112, 224, 0.2)",markerText:"#9BA1A6",borderColor:"#1A1A1C",dividerColor:"#1A1A1C",summaryBackground:"#0C0C0C",summaryAddedText:"#20C997",summaryRemovedText:"#EF4444",summaryModifiedText:"#9B70E0",emptyStateText:"#636366",separatorBackground:"#0C0C0C",separatorText:"#9BA1A6"},go={gitClassic:Jr,devToolsDefault:Wt};import{Fragment as Ur,jsx as G,jsxs as We}from"react/jsx-runtime";var bo=yo(function({oldValue:t,newValue:r,theme:n=Wt,options:o={},showThemeName:s=!1,height:i=400}){let{hideLineNumbers:l=!1,disableWordDiff:a=!1,showDiffOnly:c=!1,compareMethod:d="words",contextLines:p=3}=o,x={compareMethod:d,disableWordDiff:a,showDiffOnly:c,contextLines:p},T=_r(()=>ft(t,r,x),[t,r,d,a,c,p]),m=_r(()=>ho(n,i),[n,i]),V=b=>b.map((D,v)=>{let h="transparent";return D.type==="added"?h=n.addedWordHighlight:D.type==="removed"&&(h=n.removedWordHighlight),G(f,{style:[m.wordDiff,{backgroundColor:h}],children:D.value},v)}),R=(b,D=!1)=>{if(D)return{background:n.modifiedBackground,text:n.modifiedText,markerBg:n.markerModifiedBackground};switch(b){case"added":return{background:n.addedBackground,text:n.addedText,markerBg:n.markerAddedBackground};case"removed":return{background:n.removedBackground,text:n.removedText,markerBg:n.markerRemovedBackground};case"unchanged":return{background:n.unchangedBackground,text:n.unchangedText,markerBg:"transparent"};default:return{background:n.unchangedBackground,text:n.unchangedText,markerBg:"transparent"}}},Z=(b,D,v,h,H=!1)=>{if(H)return We(Ur,{children:[!l&&G(u,{style:[m.gutter,m.emptyGutter],children:G(f,{style:m.lineNumber,children:" "})}),G(u,{style:[m.marker,m.emptyMarker],children:G(f,{style:m.markerText,children:" "})}),G(u,{style:[m.contentCell,m.emptyContent],children:G(f,{style:m.content,children:" "})})]});let O=R(v);return We(Ur,{children:[!l&&G(u,{style:[m.gutter,{backgroundColor:n.lineNumberBackground}],children:G(f,{style:m.lineNumber,children:b||" "})}),G(u,{style:[m.marker,{backgroundColor:O.markerBg}],children:G(f,{style:[m.markerText,{color:n.markerText}],children:h})}),G(u,{style:[m.contentCell,{backgroundColor:O.background}],children:G(f,{style:[m.content,{color:O.text}],children:Array.isArray(D)?V(D):D||" "})})]})},_=(b,D)=>{if(!c||b===0)return!1;let v=D[b-1],h=D[b],H=h.leftLineNumber&&v.leftLineNumber&&h.leftLineNumber-v.leftLineNumber>1,O=h.rightLineNumber&&v.rightLineNumber&&h.rightLineNumber-v.rightLineNumber>1;return H||O},w=(b,D,v)=>{let h=b.type==="removed",H=b.type==="added",O=b.type==="modified",oe=b.type==="unchanged";return We(mo,{children:[_(D,v)&&G(u,{style:m.separator,children:G(f,{style:m.separatorText,children:"\u2022 \u2022 \u2022"})}),We(u,{style:m.row,children:[G(u,{style:m.leftSide,children:h||O||oe?Z(b.leftLineNumber,b.leftContent,O?"removed":b.type,h||O?"-":" "):Z(void 0,void 0,"unchanged"," ",!0)}),G(u,{style:m.centerDivider}),G(u,{style:m.rightSide,children:H||O||oe?Z(b.rightLineNumber,b.rightContent,O?"added":b.type,H||O?"+":" "):Z(void 0,void 0,"unchanged"," ",!0)})]})]},D)},C=T.filter(b=>b.type==="added").length,S=T.filter(b=>b.type==="removed").length,g=T.filter(b=>b.type==="modified").length;return We(u,{style:[m.container,n.glowColor&&{shadowColor:n.glowColor,shadowOffset:{width:0,height:0},shadowOpacity:n.neonIntensity&&n.neonIntensity>.7?.5:n.neonIntensity&&n.neonIntensity>.3?.3:.1,shadowRadius:n.neonIntensity&&n.neonIntensity>.7?10:n.neonIntensity&&n.neonIntensity>.3?5:2}],children:[s&&We(u,{style:m.themeBadge,children:[G(f,{style:m.themeName,children:n.name}),G(f,{style:m.themeDescription,children:n.description})]}),We(u,{style:m.header,children:[G(u,{style:m.headerLeft,children:G(f,{style:m.headerTitle,children:"PREV"})}),G(u,{style:m.divider}),G(u,{style:m.headerRight,children:G(f,{style:m.headerTitle,children:"CUR"})})]}),G(bt,{added:C,removed:S,modified:g,theme:n}),G(Ue,{style:m.scrollView,showsVerticalScrollIndicator:!1,contentContainerStyle:m.scrollContent,children:T.length===0?G(u,{style:m.emptyState,children:G(f,{style:m.emptyText,children:c?"No differences found":"No content to display"})}):T.map((b,D)=>w(b,D,T))})]})});function ho(e,t){return N.create({container:{height:t,backgroundColor:e.background,borderRadius:8,overflow:"hidden",borderWidth:1,borderColor:e.borderColor},themeBadge:{backgroundColor:e.panelBackground,paddingHorizontal:12,paddingVertical:8,borderBottomWidth:1,borderBottomColor:e.borderColor},themeName:{fontSize:12,fontWeight:"700",color:e.accentColor||e.unchangedText,fontFamily:k,letterSpacing:.5},themeDescription:{fontSize:10,color:e.unchangedText,fontFamily:k,marginTop:2,opacity:.8},header:{flexDirection:"row",backgroundColor:e.headerBackground,borderBottomWidth:1,borderBottomColor:e.borderColor},headerLeft:{flex:1,paddingVertical:8,paddingHorizontal:12},headerRight:{flex:1,paddingVertical:8,paddingHorizontal:12},headerTitle:{fontSize:10,fontWeight:"700",color:e.accentColor||e.unchangedText,fontFamily:k,letterSpacing:.5,textTransform:"uppercase"},divider:{width:1,backgroundColor:e.dividerColor},scrollView:{flex:1},scrollContent:{paddingBottom:10},row:{flexDirection:"row",minHeight:20},leftSide:{flex:1,flexDirection:"row"},rightSide:{flex:1,flexDirection:"row"},centerDivider:{width:1,backgroundColor:e.dividerColor},gutter:{width:35,paddingHorizontal:4,justifyContent:"center",alignItems:"flex-end",backgroundColor:e.lineNumberBackground,borderRightWidth:1,borderRightColor:e.lineNumberBorder},emptyGutter:{backgroundColor:e.contextBackground},lineNumber:{fontSize:9,fontFamily:k,color:e.lineNumberText},marker:{width:20,justifyContent:"center",alignItems:"center"},emptyMarker:{backgroundColor:e.contextBackground},markerText:{fontSize:10,fontFamily:k,fontWeight:"600"},contentCell:{flex:1,paddingHorizontal:8,paddingVertical:2},emptyContent:{backgroundColor:e.contextBackground},content:{fontSize:10,fontFamily:k,lineHeight:16},wordDiff:{fontSize:10,fontFamily:k},separator:{height:20,justifyContent:"center",alignItems:"center",backgroundColor:e.separatorBackground},separatorText:{fontSize:8,color:e.separatorText,fontFamily:k,letterSpacing:2},emptyState:{padding:40,alignItems:"center",justifyContent:"center"},emptyText:{fontSize:11,color:e.emptyStateText,fontStyle:"italic",fontFamily:k}})}import{memo as xo}from"react";import{jsx as cr,jsxs as ht}from"react/jsx-runtime";var ur=xo(function({deltas:t,theme:r}){return t.length===0?null:cr(u,{style:[ze.container,{backgroundColor:r.summaryBackground,borderTopColor:r.borderColor}],children:t.map(n=>ht(u,{style:ze.row,children:[cr(f,{style:[ze.glyph,{color:r.summaryModifiedText}],children:"\u25F7"}),ht(u,{style:ze.text,children:[ht(f,{style:ze.headline,children:[n.path?ht(f,{style:[ze.path,{color:r.lineNumberText}],children:[n.path," "]}):null,cr(f,{style:{color:r.summaryModifiedText},children:n.deltaLabel})]}),ht(f,{style:[ze.instants,{color:r.lineNumberText}],children:[n.fromLabel," \u2192 ",n.toLabel]})]})]},n.path??"__value__"))})}),ze=N.create({container:{borderTopWidth:N.hairlineWidth,paddingHorizontal:10,paddingVertical:7,gap:6},row:{flexDirection:"row",alignItems:"flex-start",gap:7},glyph:{fontSize:12,lineHeight:15},text:{flex:1,minWidth:0},headline:{fontSize:12,fontWeight:"600",lineHeight:15},path:{fontWeight:"400"},instants:{fontSize:11,marginTop:1,fontVariant:["tabular-nums"]}});import{memo as To}from"react";import{jsx as Gr,jsxs as wo}from"react/jsx-runtime";var pr=To(function({visible:t,theme:r}){return t?wo(u,{style:[fr.container,{backgroundColor:r.summaryBackground,borderTopColor:r.borderColor}],children:[Gr(f,{style:[fr.glyph,{color:r.lineNumberText}],children:"{ }"}),Gr(f,{style:[fr.text,{color:r.lineNumberText}],children:"Stored as a JSON string \u2014 decoded below so the change is readable."})]}):null}),fr=N.create({container:{flexDirection:"row",alignItems:"center",gap:7,borderTopWidth:N.hairlineWidth,paddingHorizontal:10,paddingVertical:6},glyph:{fontSize:11,fontWeight:"700"},text:{flex:1,fontSize:11,lineHeight:14}});function gr(e){if(typeof e!="string")return null;let t=e.trim();if(!t.startsWith("{")&&!t.startsWith("["))return null;try{let r=JSON.parse(t);return typeof r!="object"||r===null?null:{value:r}}catch{return null}}function Kr(e){return Ne(e)||e===void 0||e===null}function mr(e,t){let r=gr(e),n=gr(t);return r&&n?{left:r.value,right:n.value,decoded:!0}:r&&Kr(t)?{left:r.value,right:t,decoded:!0}:n&&Kr(e)?{left:e,right:n.value,decoded:!0}:{left:e,right:t,decoded:!1}}var Do=/^\d{4}-\d{2}-\d{2}(?:[T ]\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?(?:Z|[+-]\d{2}:?\d{2})?)?$/;function qr(e){return Number.isInteger(e)?e>=1e12&&e<41024448e5?{kind:"epoch-ms",epochMs:e}:e>=1e9&&e<4102444800?{kind:"epoch-s",epochMs:e*1e3}:null:null}function yr(e){if(e instanceof Date){let n=e.getTime();return Number.isFinite(n)?{kind:"iso",epochMs:n}:null}if(typeof e=="number")return qr(e);if(typeof e!="string")return null;let t=e.trim();if(t==="")return null;if(/^\d+$/.test(t))return qr(Number(t));if(!Do.test(t))return null;let r=Date.parse(t);return Number.isFinite(r)?{kind:"iso",epochMs:r}:null}function xt(e){return e<10?`0${e}`:String(e)}function br(e){let t=new Date(e);return`${t.getFullYear()}-${xt(t.getMonth()+1)}-${xt(t.getDate())} ${xt(t.getHours())}:${xt(t.getMinutes())}:${xt(t.getSeconds())}`}function Zr(e){let t=Math.abs(e);if(t<1e3)return`${t}ms`;let r=Math.floor(t/1e3);if(r<60)return`${r}s`;let n=Math.floor(r/60),o=r%60;if(n<60)return o?`${n}m ${o}s`:`${n}m`;let s=Math.floor(n/60),i=n%60;if(s<24)return i?`${s}h ${i}m`:`${s}h`;let l=Math.floor(s/24),a=s%24;return a?`${l}d ${a}h`:`${l}d`}function Xr(e,t,r){let n=yr(e),o=yr(t);if(!n||!o||n.kind!==o.kind)return null;let s=o.epochMs-n.epochMs;return{path:r,kind:n.kind,deltaMs:s,deltaLabel:s===0?"same instant":`${Zr(s)} ${s<0?"earlier":"later"}`,fromLabel:br(n.epochMs),toLabel:br(o.epochMs)}}function Yr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof Date)}var ko=6;function hr(e,t){let r=Xr(e,t);if(r)return[r];if(!Yr(e)||!Yr(t))return[];let n=[];for(let o of Object.keys(e)){if(n.length>=ko)break;if(!(o in t)||Object.is(e[o],t[o]))continue;let s=Xr(e[o],t[o],o);s&&n.push(s)}return n}import{Fragment as Pt,memo as rn,useCallback as zt,useEffect as Co,useMemo as Pe,useRef as So,useState as Io}from"react";import{jsx as L,jsxs as He}from"react/jsx-runtime";var Vo={hideLineNumbers:!1,disableWordDiff:!1,showDiffOnly:!1,compareMethod:"words",contextLines:3,lineOffset:0};function vo({oldValue:e,newValue:t,theme:r,options:n=Vo,showThemeName:o=!1,scrollEnabled:s=!0}){let i=Pe(()=>Fo(r,s),[r,s]),l=Pe(()=>({compareMethod:n.compareMethod,disableWordDiff:n.disableWordDiff,showDiffOnly:n.showDiffOnly,contextLines:n.contextLines}),[n.compareMethod,n.disableWordDiff,n.showDiffOnly,n.contextLines]),a=Pe(()=>mr(e,t),[e,t]),c=Pe(()=>ft(a.left,a.right,l),[a,l]),d=Pe(()=>{let C=0,S=0,g=0;for(let b of c)b.type==="added"?C++:b.type==="removed"?S++:b.type==="modified"&&g++;return{added:C,removed:S,modified:g}},[c]),p=Pe(()=>hr(a.left,a.right),[a]),[x,T]=Io(()=>new Set),m=So(!1);Co(()=>{if(!m.current){m.current=!0;return}T(new Set)},[e,t]);let V=Pe(()=>Eo(c,x),[c,x]),R=zt(C=>{T(S=>{let g=new Set(S);return g.has(C)?g.delete(C):g.add(C),g})},[]),Z=zt(C=>C.kind==="row"?`r:${C.diffIndex}`:`f:${C.foldId}`,[]),_=zt(C=>C.kind==="fold"?L(Ro,{foldId:C.foldId,count:C.count,expanded:C.expanded,theme:r,styles:i,onToggle:R}):L(Bo,{diff:C.diff,showSeparator:!1,theme:r,options:n,styles:i}),[r,n,i,R]),w=zt(({item:C})=>_(C),[_]);return He(u,{style:[i.container,r.glowColor&&{shadowColor:r.glowColor,shadowOffset:{width:0,height:0},shadowOpacity:r.neonIntensity&&r.neonIntensity>.7?.5:r.neonIntensity&&r.neonIntensity>.3?.3:.1,shadowRadius:r.neonIntensity&&r.neonIntensity>.7?10:r.neonIntensity&&r.neonIntensity>.3?5:2}],children:[o&&He(u,{style:i.themeBadge,children:[L(f,{style:i.themeName,children:r.name}),L(f,{style:i.themeDescription,children:r.description})]}),He(u,{style:i.header,children:[L(u,{style:i.headerLeft,children:L(f,{style:i.headerTitle,children:"PREV"})}),L(u,{style:i.divider}),L(u,{style:i.headerRight,children:L(f,{style:i.headerTitle,children:"CUR"})})]}),L(bt,{added:d.added,removed:d.removed,modified:d.modified,theme:r}),L(pr,{visible:a.decoded,theme:r}),L(ur,{deltas:p,theme:r}),c.length===0?L(u,{style:i.emptyState,children:L(f,{style:i.emptyText,children:n.showDiffOnly?"No differences found":"No content to display"})}):s?L(ot,{style:i.scrollView,contentContainerStyle:i.scrollContent,data:V,renderItem:w,keyExtractor:Z,showsVerticalScrollIndicator:!1,initialNumToRender:20,maxToRenderPerBatch:20,windowSize:7,removeClippedSubviews:!0}):L(u,{style:i.scrollContent,children:V.map(C=>L(Pt,{children:_(C)},Z(C)))})]})}var Qr=3,Ao=4;function Eo(e,t){let r=e.length;if(r===0)return[];let n=new Array(r).fill(!1);for(let l=0;l<r;l++)if(e[l].type!=="unchanged"){let a=Math.max(0,l-Qr),c=Math.min(r-1,l+Qr);for(let d=a;d<=c;d++)n[d]=!0}let o=[],s=0,i=0;for(;i<r;){if(n[i]){o.push({kind:"row",diff:e[i],diffIndex:i}),i++;continue}let l=i;for(;l<r&&!n[l];)l++;let a=l-i;if(a<Ao)for(let c=i;c<l;c++)o.push({kind:"row",diff:e[c],diffIndex:c});else{let c=s++,d=t.has(c);if(o.push({kind:"fold",foldId:c,count:a,expanded:d}),d)for(let p=i;p<l;p++)o.push({kind:"row",diff:e[p],diffIndex:p})}i=l}return o}var Ro=rn(function({foldId:t,count:r,expanded:n,theme:o,styles:s,onToggle:i}){return L(j,{style:[s.foldHeader,{backgroundColor:o.separatorBackground}],onPress:()=>i(t),activeOpacity:.7,children:L(f,{style:[s.foldHeaderText,{color:o.separatorText}],children:n?`\u25BC ${r} unchanged line${r===1?"":"s"} \u2014 tap to hide`:`\u25B6 ${r} unchanged line${r===1?"":"s"} \u2014 tap to expand`})})}),Bo=rn(function({diff:t,showSeparator:r,theme:n,options:o,styles:s}){let i=t.type==="removed",l=t.type==="added",a=t.type==="modified",c=t.type==="unchanged";return He(Pt,{children:[r&&L(u,{style:s.separator,children:L(f,{style:s.separatorText,children:"\u2022 \u2022 \u2022"})}),He(u,{style:s.row,children:[L(u,{style:s.leftSide,children:i||a||c?L(en,{lineNumber:t.leftLineNumber,content:t.leftContent,type:a?"removed":t.type,marker:i||a?"-":" ",theme:n,options:o,styles:s}):L(tn,{options:o,styles:s})}),L(u,{style:s.centerDivider}),L(u,{style:s.rightSide,children:l||a||c?L(en,{lineNumber:t.rightLineNumber,content:t.rightContent,type:a?"added":t.type,marker:l||a?"+":" ",theme:n,options:o,styles:s}):L(tn,{options:o,styles:s})})]})]})});function en({lineNumber:e,content:t,type:r,marker:n,theme:o,options:s,styles:i}){let l=Oo(r,o);return He(Pt,{children:[!s.hideLineNumbers&&L(u,{style:[i.gutter,{backgroundColor:o.lineNumberBackground}],children:L(f,{style:i.lineNumber,children:e||" "})}),L(u,{style:[i.marker,{backgroundColor:l.markerBg}],children:L(f,{style:[i.markerText,{color:o.markerText}],children:n})}),L(u,{style:[i.contentCell,{backgroundColor:l.background}],children:L(f,{style:[i.content,{color:l.text}],children:Array.isArray(t)?t.map((a,c)=>{let d="transparent";return a.type==="added"?d=o.addedWordHighlight:a.type==="removed"&&(d=o.removedWordHighlight),L(f,{style:[i.wordDiff,{backgroundColor:d}],children:a.value},c)}):t||" "})})]})}function tn({options:e,styles:t}){return He(Pt,{children:[!e.hideLineNumbers&&L(u,{style:[t.gutter,t.emptyGutter],children:L(f,{style:t.lineNumber,children:" "})}),L(u,{style:[t.marker,t.emptyMarker],children:L(f,{style:t.markerText,children:" "})}),L(u,{style:[t.contentCell,t.emptyContent],children:L(f,{style:t.content,children:" "})})]})}function Oo(e,t){switch(e){case"added":return{background:t.addedBackground,text:t.addedText,markerBg:t.markerAddedBackground};case"removed":return{background:t.removedBackground,text:t.removedText,markerBg:t.markerRemovedBackground};case"unchanged":default:return{background:t.unchangedBackground,text:t.unchangedText,markerBg:"transparent"}}}function Fo(e,t){return N.create({container:{...t?{height:400}:null,backgroundColor:e.background,borderRadius:8,overflow:"hidden",borderWidth:1,borderColor:e.borderColor},themeBadge:{backgroundColor:e.panelBackground,paddingHorizontal:12,paddingVertical:8,borderBottomWidth:1,borderBottomColor:e.borderColor},themeName:{fontSize:12,fontWeight:"700",color:e.accentColor||e.unchangedText,fontFamily:k,letterSpacing:.5},themeDescription:{fontSize:10,color:e.unchangedText,fontFamily:k,marginTop:2,opacity:.8},header:{flexDirection:"row",backgroundColor:e.headerBackground,borderBottomWidth:1,borderBottomColor:e.borderColor},headerLeft:{flex:1,paddingVertical:8,paddingHorizontal:12},headerRight:{flex:1,paddingVertical:8,paddingHorizontal:12},headerTitle:{fontSize:10,fontWeight:"700",color:e.accentColor||e.unchangedText,fontFamily:k,letterSpacing:.5,textTransform:"uppercase"},divider:{width:1,backgroundColor:e.dividerColor},scrollView:{flex:1},scrollContent:{paddingBottom:10},row:{flexDirection:"row",minHeight:20},leftSide:{flex:1,flexDirection:"row"},rightSide:{flex:1,flexDirection:"row"},centerDivider:{width:1,backgroundColor:e.dividerColor},gutter:{width:35,paddingHorizontal:4,justifyContent:"center",alignItems:"flex-end",backgroundColor:e.lineNumberBackground,borderRightWidth:1,borderRightColor:e.lineNumberBorder},emptyGutter:{backgroundColor:e.contextBackground},lineNumber:{fontSize:9,fontFamily:k,color:e.lineNumberText},marker:{width:20,justifyContent:"center",alignItems:"center"},emptyMarker:{backgroundColor:e.contextBackground},markerText:{fontSize:10,fontFamily:k,fontWeight:"600"},contentCell:{flex:1,paddingHorizontal:8,paddingVertical:2},emptyContent:{backgroundColor:e.contextBackground},content:{fontSize:10,fontFamily:k,lineHeight:16},wordDiff:{fontSize:10,fontFamily:k},summaryBar:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:16,paddingVertical:6,backgroundColor:e.summaryBackground,borderTopWidth:1,borderTopColor:e.borderColor},summaryItem:{flexDirection:"row",alignItems:"center"},summaryText:{fontSize:10,fontFamily:k,fontWeight:"700"},separator:{height:20,justifyContent:"center",alignItems:"center",backgroundColor:e.separatorBackground},separatorText:{fontSize:8,color:e.separatorText,fontFamily:k,letterSpacing:2},foldHeader:{paddingVertical:6,paddingHorizontal:12,alignItems:"center",justifyContent:"center",borderTopWidth:1,borderBottomWidth:1,borderColor:e.borderColor},foldHeaderText:{fontSize:10,fontFamily:k,letterSpacing:.5},emptyState:{padding:40,alignItems:"center",justifyContent:"center"},emptyText:{fontSize:11,color:e.emptyStateText,fontStyle:"italic",fontFamily:k}})}import{useCallback as Qe,useState as et}from"react";function xr(e,t){let[r,n]=et(void 0),[o,s]=et(!1),[i,l]=et(!1),[a,c]=et(null),[d,p]=et(),[x,T]=et(""),m=o&&r!==void 0?r:e,V=o&&JSON.stringify(r)!==x,R=Qe(()=>{n(e),T(JSON.stringify(e)),p(void 0),c(null),s(!0)},[e]),Z=Qe(g=>{n(D=>lr(D,g));let b=ir(g);b!==void 0&&p(b)},[]),_=Qe(g=>{p(g)},[]),w=Qe(()=>{s(!1),n(void 0),p(void 0),c(null)},[]),C=Qe(()=>{n(e),T(JSON.stringify(e)),p(void 0),c(null),s(!0)},[e]),S=Qe(async()=>{if(!V||!t)return w(),!0;l(!0),c(null);try{return await t(r),w(),!0}catch(g){return c(g instanceof Error?g.message:String(g)),!1}finally{l(!1)}},[r,V,w,t]);return{isEditing:o,value:m,isDirty:V,isSaving:i,error:a,selectPath:d,begin:R,apply:Z,selectAt:_,commit:S,discard:C}}import{useCallback as Ht,useEffect as Lo,useState as nn}from"react";function No({value:e,save:t,onClose:r,confirmDiscard:n}){let o=xr(e,t),[s,i]=nn(null),[l,a]=nn(null),{begin:c}=o;Lo(()=>{c()},[]);let d=Ht(m=>{let V=gt(o.value,m);if(typeof V=="boolean"){o.apply({kind:"replace",path:m,value:!V});return}a(m)},[o]),p=Ht(m=>{o.apply({kind:"replace",path:l??[],value:m}),a(null)},[o,l]),x=Ht(()=>{o.commit().then(m=>m&&r())},[o,r]),T=Ht(()=>{if(!o.isDirty){r();return}n({save:x,discard:()=>{o.discard(),r()}})},[n,o,r,x]);return{draft:o,selection:s,setSelection:i,valuePath:l,openValueEditor:d,closeValueEditor:()=>a(null),applyValue:p,openRawEditor:()=>a([]),requestClose:T,saveAndClose:x}}import{useState as Mo}from"react";import{jsx as fe,jsxs as jt}from"react/jsx-runtime";function Wo(e){return typeof e=="boolean"?"boolean":typeof e=="number"?"number":e!==null&&typeof e=="object"?"raw":"text"}function zo(e,t){return t==="raw"?JSON.stringify(e,null,2):e==null?"":String(e)}function Po(e,t){switch(e){case"number":return"Numeric only \u2014 anything else is refused, so this stays a number.";case"raw":return`Raw JSON. Must stay ${t==="array"?"an array":"an object"} \u2014 a different shape is refused.`;default:return"Saves as a string. The type never changes here."}}function Ho({path:e,value:t,onSave:r,onCancel:n,saveLabel:o="Save",busy:s=!1,testIDPrefix:i="buoy-data-value"}){let l=Wo(t),a=Ae(t),[c,d]=Mo(()=>zo(t,l)),p=on(c,l,a),x=s||p!=null,T=()=>{s||on(c,l,a)!=null||r($o(c,l,t))};return jt(u,{style:Y.overlay,children:[fe(j,{style:Y.scrim,activeOpacity:1,onPress:s?void 0:n,testID:`${i}-scrim`,accessibilityRole:"button",accessibilityLabel:"Dismiss editor"}),fe(u,{style:Y.panel,pointerEvents:"box-none",children:jt(u,{style:Y.card,children:[jt(u,{style:Y.headerRow,children:[fe(f,{style:Y.title,children:"Edit value"}),fe(u,{style:Y.typeBadge,children:fe(f,{style:Y.typeBadgeText,children:a})})]}),fe(f,{style:Y.path,numberOfLines:1,children:Me(e)}),l==="boolean"?fe(jo,{current:t===!0,onPick:r,testIDPrefix:i}):fe(Ue,{style:Y.fieldScroll,keyboardShouldPersistTaps:"handled",children:fe(_e,{testID:`${i}-input`,accessibilityLabel:"Value",value:c,onChangeText:d,autoFocus:!0,autoCapitalize:"none",autoCorrect:!1,spellCheck:!1,editable:!s,multiline:l!=="number",keyboardType:l==="number"?"numeric":l==="raw"?"ascii-capable":"default",onSubmitEditing:l==="number"?T:void 0,placeholder:l==="raw"?"{ }":"value",placeholderTextColor:y.color.placeholder,style:[Y.input,l==="raw"&&Y.inputRaw,l!=="number"&&Y.inputMultiline,p!=null&&Y.inputInvalid]})}),fe(f,{style:p!=null?Y.error:Y.hint,children:p??Po(l,a)}),jt(u,{style:Y.actions,children:[fe(j,{onPress:n,disabled:s,testID:`${i}-cancel`,accessibilityRole:"button",accessibilityLabel:"Cancel edit",style:Y.cancelButton,children:fe(f,{style:Y.cancelText,children:"Cancel"})}),l==="boolean"?null:fe(j,{onPress:T,disabled:x,testID:`${i}-save`,accessibilityRole:"button",accessibilityLabel:o,style:[Y.saveButton,x&&Y.saveDisabled],children:fe(f,{style:Y.saveText,children:s?"Saving\u2026":o})})]})]})})]})}function jo({current:e,onPick:t,testIDPrefix:r}){return fe(u,{style:Y.boolRow,children:[!0,!1].map(n=>fe(j,{onPress:()=>t(n),testID:`${r}-${n}`,accessibilityRole:"button",accessibilityLabel:`Set ${n}`,style:[Y.boolButton,e===n&&Y.boolActive],children:fe(f,{style:[Y.boolText,e===n&&Y.boolTextActive],children:String(n)})},String(n)))})}function on(e,t,r){if(t==="number")return e.trim()===""?"Enter a number.":Number.isNaN(Number(e))?`"${e}" isn't a number.`:null;if(t==="raw"){let n;try{n=JSON.parse(e)}catch(o){return o instanceof Error?o.message:"Invalid JSON."}return Ae(n)!==r?`Must stay ${r} \u2014 that parses as ${Ae(n)}.`:null}return null}function $o(e,t,r){return t==="number"?Number(e):t==="raw"?JSON.parse(e):r===null&&e===""?null:e}var Y=N.create({overlay:{...Gt,zIndex:20},scrim:{...Gt,backgroundColor:"rgba(0,0,0,0.55)"},panel:{padding:12},card:{backgroundColor:y.color.surface,borderRadius:14,borderWidth:1,borderColor:y.color.border,padding:14,gap:8},headerRow:{flexDirection:"row",alignItems:"center",gap:8},title:{flex:1,color:y.color.text,fontSize:14,fontWeight:"700"},typeBadge:{paddingHorizontal:8,paddingVertical:2,borderRadius:6,backgroundColor:y.color.surfaceElevated},typeBadgeText:{color:I.semantic.warning,fontSize:10,fontWeight:"700",fontFamily:k},path:{color:y.color.textTertiary,fontSize:11,fontFamily:k},fieldScroll:{maxHeight:240},input:{color:y.color.text,backgroundColor:y.color.surfaceElevated,borderWidth:1,borderColor:y.color.border,borderRadius:10,paddingHorizontal:12,paddingVertical:10,fontSize:14,fontFamily:k},inputMultiline:{minHeight:110,lineHeight:20,textAlignVertical:"top"},inputRaw:{minHeight:180,fontSize:12,lineHeight:18},inputInvalid:{borderColor:y.color.danger},hint:{color:y.color.textTertiary,fontSize:11,lineHeight:16},error:{color:y.color.danger,fontSize:11,lineHeight:16,fontFamily:k},actions:{flexDirection:"row",gap:8,paddingTop:2},cancelButton:{flex:1,minHeight:44,alignItems:"center",justifyContent:"center",borderRadius:10,borderWidth:1,borderColor:y.color.border},cancelText:{color:y.color.textSecondary,fontSize:14,fontWeight:"600"},saveButton:{flex:1.4,minHeight:44,alignItems:"center",justifyContent:"center",borderRadius:10,backgroundColor:y.color.accent},saveDisabled:{opacity:.35},saveText:{color:y.color.onAccent,fontSize:15,fontWeight:"700"},boolRow:{flexDirection:"row",gap:10},boolButton:{flex:1,minHeight:64,alignItems:"center",justifyContent:"center",borderRadius:12,borderWidth:1,borderColor:y.color.border,backgroundColor:y.color.surfaceElevated},boolActive:{borderColor:I.semantic.warning,backgroundColor:I.semantic.warning+"18"},boolText:{color:y.color.textTertiary,fontSize:16,fontWeight:"700",fontFamily:k},boolTextActive:{color:I.semantic.warning}});import{useState as $t,useMemo as Jt,useCallback as Je,useRef as tt,useEffect as an,memo as Ut}from"react";var je=(e,t,r)=>{if(t.length===0)return r;if(e instanceof Map){let n=new Map(e);if(t.length===1)return n.set(t[0],r),n;let[o,...s]=t,i=n.get(o);return n.set(o,je(i??null,s,r)),n}if(e instanceof Set){let n=je(Array.from(e),t,r);return new Set(Array.isArray(n)?n:[])}if(Array.isArray(e)){let n=[...e];if(t.length===1)return n[t[0]]=r,n;let[o,...s]=t;return n[o]=je(n[o],s,r),n}if(e instanceof Object){let n={...e};if(t.length===1)return n[t[0]]=r,n;let[o,...s]=t;return n[o]=je(n[o],s,r),n}return e},$e=(e,t)=>{if(e instanceof Map){let r=new Map(e);if(t.length===1)return r.delete(t[0]),r;let[n,...o]=t;return r.set(n,$e(r.get(n),o)),r}if(e instanceof Set){let r=$e(Array.from(e),t);return new Set(r)}if(Array.isArray(e)){let r=[...e];if(t.length===1)return r.filter((s,i)=>i.toString()!==t[0]);let[n,...o]=t;return r[n]=$e(r[n],o),r}if(e instanceof Object){let r={...e};if(t.length===1)return delete r[t[0]],r;let[n,...o]=t;return r[n]=$e(r[n],o),r}return e};import{Fragment as _t,jsx as P,jsxs as ye}from"react/jsx-runtime";var Tt=100,rt={top:8,bottom:8,left:8,right:8},ln=12,Jo=["DATA","STATE","VALUE","QUERY","QUERYKEY","TYPES","STATS","OPTIONS","OBSERVERS"],_o=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");function Uo(e){return e.length===0?"buoy-live-explorer-root":`buoy-live-explorer-${e.map(_o).filter(Boolean).join("-")}`}var Go=(e,t=Tt)=>{if(t<1||e.length===0)return[];let r=[];for(let n=0;n<e.length;n+=t)r.push(e.slice(n,n+t));return r},Tr=Ut(({expanded:e,isFocused:t=!1,isMain:r=!1})=>P(u,{style:[E.expanderIcon,r&&E.expanderIconMain,e?E.expanded:E.collapsed],children:e?P(Re,{size:r?14:ln,color:t?y.color.accent:r?y.color.text:y.color.textSecondary,strokeWidth:2.5}):P(wt,{size:r?14:ln,color:t?y.color.accent:r?y.color.text:y.color.textSecondary,strokeWidth:2.5})}));Tr.displayName="Expander";var sn=Ut(({value:e,isFocused:t=!1})=>P(Vt,{value:e,isFocused:t,buttonStyle:t?{...E.buttonStyle,...E.buttonStyleFocused}:E.buttonStyle}));sn.displayName="CopyButton";var wr=Ut(({dataPath:e,writer:t,testID:r,isFocused:n=!1})=>{let o=Je(()=>{t?.remove?.(e)},[t,e]);return t?.remove?P(j,{"sentry-label":"ignore devtools explorer delete button",testID:`${r}-delete`,accessibilityRole:"button",onPress:o,style:[E.deleteButton,n&&E.deleteButtonFocused],accessibilityLabel:"Delete item",hitSlop:rt,activeOpacity:.7,children:P(it,{size:14,strokeWidth:2,color:n?y.color.danger:y.color.danger+"CC"})}):null});wr.displayName="DeleteItemButton";var dn=Ut(({dataPath:e,writer:t,testID:r,isFocused:n=!1})=>{let o=Je(()=>{t?.update(e,[])},[t,e]);return t?P(j,{"sentry-label":"ignore devtools explorer clear button",testID:`${r}-clear`,style:[E.clearButton,n&&E.clearButtonFocused],accessibilityRole:"button",accessibilityLabel:"Remove all items","aria-label":"Remove all items",onPress:o,hitSlop:rt,activeOpacity:.7,children:P(f,{style:[E.clearButtonText,{color:n?y.color.warning:y.color.warning+"CC"}],children:"[]"})}):null});dn.displayName="ClearArrayButton";function Ko({dataPath:e,writer:t,testID:r,value:n,removable:o}){let s=Je(()=>{if(!t)return;let c=typeof n=="boolean"?n:!1;t.update(e,!c)},[t,e,n]),i=Je(()=>{t?.remove?.(e)},[t,e]);if(!t)return null;let l=n?E.toggleBadgeTrue:E.toggleBadgeFalse,a=n?E.toggleTextTrue:E.toggleTextFalse;return ye(u,{style:E.toggleRow,children:[P(j,{"sentry-label":"ignore devtools explorer toggle button",testID:`${r}-toggle`,accessibilityRole:"button",accessibilityLabel:`${e[e.length-1]??"value"}, ${n?"true":"false"}`,style:E.modernToggleButton,onPress:s,hitSlop:rt,activeOpacity:.8,children:P(u,{style:[E.toggleBadge,l],children:P(f,{style:[E.toggleBadgeText,a],children:n?"TRUE":"FALSE"})})}),o&&t.remove?P(j,{"sentry-label":"ignore devtools explorer delete button in toggle",testID:`${r}-delete`,accessibilityRole:"button",onPress:i,style:E.deleteButtonInToggle,accessibilityLabel:"Delete item",hitSlop:rt,activeOpacity:.7,children:P(it,{size:14,strokeWidth:2,color:y.color.danger+"CC"})}):null]})}function Dr({editable:e,label:t,value:r,defaultExpanded:n,writer:o,dataPath:s,itemsDeletable:i,dataVersion:l=0,testIDForPath:a=Uo,debounceMs:c=0}){let[d,p]=$t(!1),[x,T]=$t("");an(()=>{if(r!=null&&(typeof r=="string"||typeof r=="number")){let U=r.toString();T(U)}},[r,t,l]);let m=Jt(()=>Jo.includes(t.toUpperCase()),[t]),[V,R]=$t((n||[]).includes(t)),Z=()=>R(U=>!U),[_,w]=$t([]),C=Jt(()=>r==null||typeof r!="object"?[]:Array.isArray(r)?(r.length>1e3?r.slice(0,1e3):r).map((J,A)=>({label:A.toString(),value:J})):r instanceof Map?Array.from(r.entries()).slice(0,1e3).map(([J,A])=>({label:J.toString(),value:A})):r instanceof Set?Array.from(r).slice(0,1e3).map((J,A)=>({label:A.toString(),value:J})):Object.entries(r).slice(0,1e3).map(([X,J])=>({label:X,value:J})),[r]),S=Jt(()=>Array.isArray(r)?"array":r===null||typeof r!="object"?typeof r:r instanceof Map||r instanceof Set?"Iterable":"object",[r]),g=Jt(()=>Go(C,Tt),[C]),b=s??[],D=a(b),v=e===!0&&i===!0&&o?.remove!=null&&(o.canRemove?.(b)??!0),h=tt(o),H=tt(b),O=tt(S);h.current=o,H.current=b,O.current=S;let oe=tt(null),ie=tt(null),de=Je(()=>{ie.current&&(clearTimeout(ie.current),ie.current=null);let U=oe.current;oe.current=null,U&&h.current?.update(U.path,U.value)},[]);an(()=>()=>de(),[de]);let Q=tt(c);Q.current=c;let ee=Je((U,X)=>{if(T(X),!h.current||U&&isNaN(Number(X)))return;let J=O.current==="number"?Number(X):X,A=Q.current;A>0?(oe.current={path:H.current,value:J},ie.current&&clearTimeout(ie.current),ie.current=setTimeout(de,A)):h.current.update(H.current,J)},[de,T]),ae=Je(U=>{let J=(Number(x)||0)+U;T(String(J)),oe.current=null,ie.current&&(clearTimeout(ie.current),ie.current=null),h.current?.update(H.current,J)},[x]);return P(u,{style:E.minWidthWrapper,children:ye(u,{style:E.fullWidthMarginRight,children:[g.length>0&&ye(_t,{children:[ye(u,{style:[E.flexRowItemsCenterGap,m&&E.flexRowItemsCenterGapMain],children:[ye(j,{"sentry-label":"ignore devtools explorer expander button",style:E.expanderButton,testID:D,accessibilityRole:"button",accessibilityLabel:`${t}, ${C.length} ${C.length===1?"item":"items"}`,accessibilityState:{expanded:V},onPress:Z,hitSlop:rt,activeOpacity:.6,children:[P(Tr,{expanded:V,isFocused:d,isMain:m}),P(f,{style:[E.labelText,d&&E.labelTextFocused,m&&E.labelTextMain],children:t}),P(f,{style:E.textGray500,children:`${String(S).toLowerCase()==="iterable"?"(Iterable) ":""}${C.length} ${C.length>1?"items":"item"}`})]}),e&&ye(u,{style:E.flexRowGapItemsCenter,children:[P(sn,{value:r,isFocused:d}),v&&P(wr,{writer:o,dataPath:b,testID:D,isFocused:d}),S==="array"&&o!==void 0&&P(dn,{writer:o,dataPath:b,testID:D,isFocused:d})]})]}),V&&ye(_t,{children:[g.length===1&&P(u,{style:[E.singleEntryContainer,m&&E.singleEntryContainerMain],children:C.map((U,X)=>P(Dr,{defaultExpanded:n,label:U.label,value:U.value,editable:e,dataPath:[...b,U.label],writer:o,itemsDeletable:S==="array"||S==="Iterable"||S==="object",dataVersion:l,testIDForPath:a,debounceMs:c},U.label+X))}),g.length>1&&P(u,{style:E.multiEntryContainer,children:g.map((U,X)=>P(u,{children:ye(u,{style:E.relativeOutlineNone,children:[ye(j,{"sentry-label":"ignore devtools explorer page toggle",onPress:()=>w(J=>J.includes(X)?J.filter(A=>A!==X):[...J,X]),style:E.pageExpanderButton,hitSlop:rt,children:[P(Tr,{expanded:_.includes(X)}),ye(f,{style:E.pageRangeText,children:["[",X*Tt,"...",X*Tt+Tt-1,"]"]})]}),_.includes(X)&&P(u,{style:E.entriesContainer,children:U.map(J=>P(Dr,{defaultExpanded:n,label:J.label,value:J.value,editable:e,dataPath:[...b,J.label],writer:o,dataVersion:l,testIDForPath:a,debounceMs:c},J.label))})]})},X))})]})]}),g.length===0&&ye(u,{style:E.flexRowGapFullWidth,children:[e&&o!==void 0&&(S==="string"||S==="number"||S==="boolean")?ye(_t,{children:[e&&o&&(S==="string"||S==="number")&&P(u,{style:E.nebulaInputWrapper,children:P(rr,{label:t,testID:`${D}-input`,accessibilityLabel:`${t}, editable value`,style:[S==="number"?E.textNumber:E.textString],keyboardType:S==="number"?"numeric":"default",value:x,onChangeText:U=>ee(S==="number",U),onFocus:()=>p(!0),onBlur:()=>{de(),p(!1)},showNumberControls:S==="number",onIncrement:()=>ae(1),onDecrement:()=>ae(-1),showDeleteButton:v,onDelete:()=>{o?.remove?.(b)}})}),S==="boolean"&&ye(u,{style:E.booleanRowContainer,children:[P(f,{style:E.booleanLabel,children:t}),P(u,{style:E.booleanToggleWrapper,children:P(Ko,{writer:o,dataPath:b,testID:D,value:r,removable:v})})]})]}):ye(_t,{children:[P(f,{style:E.text344054,children:t}),P(f,{testID:`${D}-value`,style:E.displayValueText,children:It(r)})]}),e&&v&&S!=="string"&&S!=="number"&&S!=="boolean"&&P(wr,{writer:o,dataPath:b,testID:D,isFocused:d})]})]})})}function qo(e){return{update:(t,r)=>{e.setRoot(je(e.getRoot(),t,r))},remove:t=>{e.setRoot($e(e.getRoot(),t))},canRemove:e.canRemove}}var E=N.create({buttonStyle:{backgroundColor:y.color.surface+"E6",borderWidth:1,borderColor:y.color.textSecondary+"33",borderRadius:6,flexDirection:"row",alignItems:"center",justifyContent:"center",width:28,height:28,position:"relative",shadowColor:"#000",shadowOffset:{width:0,height:1},shadowOpacity:.2,shadowRadius:2},buttonStyleFocused:{borderColor:y.color.accent+"CC",backgroundColor:y.color.accent+"26",shadowColor:y.color.accent,shadowOpacity:.3,shadowRadius:4},deleteButton:{backgroundColor:y.color.danger+"1A",borderColor:y.color.danger+"4D",borderWidth:1,borderRadius:6,padding:0,alignItems:"center",justifyContent:"center",width:28,height:28,position:"relative",shadowColor:y.color.danger,shadowOffset:{width:0,height:0},shadowOpacity:.15,shadowRadius:3},deleteButtonFocused:{borderColor:y.color.danger+"CC",backgroundColor:y.color.danger+"33",shadowOpacity:.3,shadowRadius:5},deleteButtonInToggle:{backgroundColor:y.color.danger+"1A",borderColor:y.color.danger+"4D",borderWidth:1,borderRadius:6,padding:0,alignItems:"center",justifyContent:"center",width:28,height:28,shadowColor:y.color.danger,shadowOffset:{width:0,height:0},shadowOpacity:.15,shadowRadius:3},clearButton:{backgroundColor:y.color.warning+"1A",borderWidth:1,borderColor:y.color.warning+"4D",borderRadius:6,flexDirection:"row",padding:0,alignItems:"center",justifyContent:"center",width:28,height:28,position:"relative",zIndex:10,shadowColor:y.color.warning,shadowOffset:{width:0,height:0},shadowOpacity:.15,shadowRadius:3},clearButtonFocused:{borderColor:y.color.warning+"CC",backgroundColor:y.color.warning+"33",shadowOpacity:.3,shadowRadius:5},clearButtonText:{fontSize:12,fontWeight:"700",fontFamily:k},expanderIcon:{width:18,height:18,alignItems:"center",justifyContent:"center",marginRight:1,backgroundColor:y.color.textSecondary+"14",borderRadius:3},expanderIconMain:{backgroundColor:y.color.textSecondary+"1A",width:20,height:20,borderRadius:4,borderWidth:.5,borderColor:y.color.textSecondary+"33"},expanded:{transform:[{rotate:"0deg"}]},collapsed:{transform:[{rotate:"0deg"}]},minWidthWrapper:{minWidth:180,fontSize:11,flexDirection:"row",flexWrap:"wrap",width:"100%",marginVertical:.5},fullWidthMarginRight:{position:"relative",width:"100%",marginRight:1},flexRowItemsCenterGap:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:3,paddingHorizontal:6,marginVertical:1,borderRadius:4,backgroundColor:y.color.surface+"66",borderWidth:.5,borderColor:y.color.textSecondary+"1A"},flexRowItemsCenterGapMain:{backgroundColor:y.color.surface+"E6",borderLeftWidth:2.5,borderLeftColor:y.color.textSecondary+"80",borderColor:y.color.textSecondary+"26",paddingVertical:5,paddingHorizontal:8,marginBottom:3,borderWidth:1,shadowColor:"#000",shadowOffset:{width:0,height:0},shadowOpacity:.08,shadowRadius:3},expanderButton:{flexDirection:"row",alignItems:"center",backgroundColor:"transparent",paddingVertical:1,paddingHorizontal:2,gap:6,borderWidth:0,minHeight:24,flex:1},labelText:{color:y.color.textSecondary,fontSize:10,fontWeight:"600",marginRight:4,fontFamily:k,letterSpacing:.4},labelTextFocused:{color:y.color.text},labelTextMain:{color:y.color.text,fontSize:11,fontWeight:"700",letterSpacing:.6},textGray500:{color:y.color.textTertiary,fontSize:10,fontWeight:"400",fontFamily:k,opacity:.7},pageRangeText:{color:y.color.textSecondary,fontSize:10,fontWeight:"600",fontFamily:k},flexRowGapItemsCenter:{flexDirection:"row",alignItems:"center",gap:4,paddingLeft:2},singleEntryContainer:{marginLeft:2,marginTop:2,paddingLeft:8,borderLeftWidth:1.5,borderLeftColor:y.color.textSecondary+"40"},singleEntryContainerMain:{borderLeftColor:y.color.textSecondary+"4D",marginLeft:4,paddingLeft:10},multiEntryContainer:{marginLeft:2,marginTop:2,paddingLeft:8,borderLeftWidth:1.5,borderLeftColor:y.color.textSecondary+"40"},relativeOutlineNone:{position:"relative"},pageExpanderButton:{flexDirection:"row",alignItems:"center",backgroundColor:y.color.surface+"66",paddingVertical:3,paddingHorizontal:6,gap:6,borderRadius:4,borderWidth:.5,borderColor:y.color.textSecondary+"1A",marginBottom:2,minHeight:24},entriesContainer:{marginLeft:2,paddingLeft:8,marginTop:2,borderLeftWidth:1.5,borderLeftColor:y.color.textSecondary+"40"},textNumber:{color:y.color.text,fontWeight:"600",fontFamily:k},textString:{color:y.color.text,fontFamily:k},flexRowGapFullWidth:{flexDirection:"row",width:"100%",alignItems:"center",marginVertical:1,gap:6,paddingHorizontal:4,paddingVertical:2,borderRadius:3},text344054:{color:y.color.textSecondary,fontWeight:"600",fontSize:9,minWidth:50,fontFamily:k,letterSpacing:.4,opacity:.8},nebulaInputWrapper:{flex:1,width:"100%",position:"relative"},displayValueText:{flex:1,color:y.color.text,fontWeight:"400",fontFamily:k,fontSize:12,paddingVertical:6,paddingHorizontal:10,borderRadius:6,borderWidth:1,borderColor:y.color.textTertiary+"66",minHeight:34},toggleRow:{flexDirection:"row",alignItems:"center",gap:6},modernToggleButton:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderRadius:6,borderWidth:1,borderColor:y.color.textTertiary+"99",paddingHorizontal:8,paddingVertical:6,marginVertical:2,minHeight:34,gap:8},toggleBadge:{marginLeft:6,paddingHorizontal:6,paddingVertical:3,borderRadius:4,borderWidth:1},toggleBadgeText:{fontSize:9,fontWeight:"700",textTransform:"uppercase",letterSpacing:.8,fontFamily:k},toggleBadgeTrue:{backgroundColor:y.color.accent+"1A",borderColor:y.color.accent+"4D"},toggleBadgeFalse:{backgroundColor:y.color.textTertiary+"1A",borderColor:y.color.textTertiary+"4D"},toggleTextTrue:{color:y.color.accent,fontWeight:"600"},toggleTextFalse:{color:y.color.textSecondary,fontWeight:"500"},booleanRowContainer:{flexDirection:"row",alignItems:"center",width:"100%",gap:8,paddingVertical:2},booleanLabel:{color:y.color.textSecondary,fontSize:10,fontWeight:"600",fontFamily:k,letterSpacing:.4,minWidth:60,flexShrink:0},booleanToggleWrapper:{flex:1}});export{Pr as ABSENT_VALUE,rr as CyberpunkInput,lo as DataTreeActionBar,fo as DataTreeActionDock,so as DataTreeInlineEditor,Ln as DataViewer,bt as DiffSummary,Bt as DiffType,Mr as IndentGuides,at as IndentGuidesOverlay,pr as JsonStringNotice,Dr as LiveExplorer,bo as SplitDiffViewer,vo as ThemedSplitView,ur as TimestampDeltaBar,jr as TreeDiffViewer,er as TypeLegend,Ho as ValueEditModal,Et as VirtualizedDataExplorer,lr as applyJsonOp,pn as boundedDeepEqual,Me as breadcrumb,ft as computeLineDiff,mr as decodeJsonStringPair,$e as deleteNestedDataByPath,hr as describeTimestampDeltas,yr as detectTimestamp,Wt as devToolsDefaultTheme,go as diffThemes,Zr as formatDuration,br as formatInstant,gt as getAtPath,Jr as gitClassicTheme,Ne as isAbsent,ar as isEditableContainer,yn as jsonLikelyLargerThan,qo as makeRootWriter,gn as objectDiff,gr as parseJsonContainer,ir as selectionPathAfterOp,Lt as suggestedNewValue,mn as toDiffable,sr as treeActionMap,mt as treeActionsFor,Ae as typeLabel,je as updateNestedDataByPath,xr as useTreeDraft,No as useTreeEditor};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as o,b as t,c as e,d as l,e as i,f as r,g as n,h as a,i as s,j as g,k as T,l as F,m as p,n as c,o as f,p as m}from"./chunks/chunk-XYUAUO57.mjs";import"./chunks/chunk-GF5C5DVX.mjs";import"./chunks/chunk-5NZOQR6Q.mjs";export{o as ARROW_BOTTOM_OFFSET,t as ARROW_HEIGHT,g as FloatingTool,n as FloatingToolDivider,m as FloatingToolHost,a as FloatingToolUserStatus,e as SPACING_GAP,r as calculateTargetPosition,i as calculateTooltipPosition,c as dismissFloatingTool,s as getBubbleAnchorPosition,T as getFloatingTools,l as getScreenCenterY,p as openFloatingTool,f as registerPersistentFloatingTool,F as subscribeFloatingTools};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a,b,c,d,e,f,g,h,i}from"./chunks/chunk-MRQKVLXG.mjs";import"./chunks/chunk-FMEWNGQO.mjs";import"./chunks/chunk-GF5C5DVX.mjs";import"./chunks/chunk-AIEOQWNG.mjs";import"./chunks/chunk-CE5U3CSQ.mjs";import"./chunks/chunk-3UTMGIUG.mjs";import"./chunks/chunk-5NZOQR6Q.mjs";export{g as HistoryEntryRow,h as HistoryList,a as HistoryProvider,i as StandaloneHistoryList,e as useAllHistoryEntries,d as useHistoryAdapter,c as useHistoryAdapters,b as useHistoryContext,f as useHistoryEntryCounts};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as d,b as e,c as f,d as g,e as h,f as i,g as j,h as k}from"./chunks/chunk-UNYQJZET.mjs";import{a,b as c}from"./chunks/chunk-K7CGIEFU.mjs";import{a as b}from"./chunks/chunk-PTK5FO6C.mjs";import"./chunks/chunk-GBUZCZE4.mjs";import"./chunks/chunk-3UTMGIUG.mjs";import"./chunks/chunk-5NZOQR6Q.mjs";export{j as getDeviceInfo,b as getSafeAreaInsets,k as logDeviceInfo,e as resetPersistedStateCache,f as useChangeLog,i as useDeviceInfo,h as useEventStoreEvents,a as useFilterManager,d as usePersistedState,c as useSafeAreaInsets,g as useSubscribedValue};
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ import{a as _p,b as Wp,c as Vp,d as Fp,e as jp,f as Up,g as Gp,h as Yp,i as Kp}from"./chunks/chunk-MRQKVLXG.mjs";import{a as Fr,b as jr,c as Ur,d as Gr,e as Yr,f as Kr,g as Jr,h as Xr}from"./chunks/chunk-UNYQJZET.mjs";import{A as Rr,B as Pr,C as Ar,D as Ir,E as Lr,F as Mr,I as Dr,J as $r,K as Or,L as Br,M as Nr,N as zr,O as Hr,P as _r,Q as Wr,R as Vr,Y as Np,Z as zp,_ as Hp,a as Rt,b as rr,c as ir,d as ke,e as sr,f as ar,g as Pt,h as lr,i as cr,j as dr,k as ur,l as gr,m as pr,n as fr,o as hr,p as mr,q as br,r as yr,s as xr,t as vr,u as Sr,v as wr,w as kr,x as Tr,y as Cr,z as Er}from"./chunks/chunk-CDLCFF44.mjs";import"./chunks/chunk-LZ7FZZ7R.mjs";import{a as En,d as Rn,f as Ne}from"./chunks/chunk-53J2FMUD.mjs";import{$ as ou,$a as rg,$b as Qg,A as jo,Aa as Lu,Ab as Ig,B as Uo,Ba as Mu,Bb as Lg,C as wn,Ca as Du,Cb as Mg,D as kn,Da as $u,Db as Dg,E as Go,Ea as Ou,Eb as Zo,F as Yo,Fa as Bu,Fb as er,G as Ko,Ga as Nu,Gb as tr,H as Jo,Ha as zu,Hb as nr,I as zd,Ia as Hu,Ib as or,J as Hd,Ja as _u,Jb as $g,K as _d,Ka as Wu,Kb as Og,L as Wd,La as Vu,Lb as Bg,M as Vd,Ma as Fu,Mb as Ng,N as Fd,Na as ju,Nb as zg,O as jd,Oa as Uu,Ob as Hg,P as Ud,Pa as Gu,Pb as _g,Q as Gd,Qa as Yu,Qb as Wg,R as Yd,Ra as Ku,Rb as Vg,S as Kd,Sa as Ju,Sb as Fg,T as Jd,Ta as Xu,Tb as jg,U as Xd,Ua as qu,Ub as Ug,V as qd,Va as Qu,Vb as Gg,W as Qd,Wa as Zu,Wb as Yg,X as Zd,Xa as eg,Xb as Kg,Y as eu,Ya as tg,Yb as Jg,Z as tu,Za as ng,Zb as Xg,_ as nu,_a as og,_b as qg,a as Td,aa as ru,ab as ig,ac as Zg,b as Cd,ba as iu,bb as sg,bc as ep,c as Ed,ca as su,cb as ag,cc as tp,d as Rd,da as au,db as lg,dc as np,e as Pd,ea as lu,eb as cg,ec as op,f as Ad,fa as cu,fb as dg,fc as rp,g as Nd,ga as uu,gb as ug,gc as ip,h as Lo,ha as gu,hb as gg,hc as sp,i as Tt,ia as pu,ib as pg,ic as ap,j as Mo,ja as fu,jb as fg,jc as lp,k as Do,ka as hu,kb as hg,kc as cp,l as $o,la as mu,lb as mg,lc as dp,m as Oo,ma as bu,mb as bg,mc as up,n as Bo,na as yu,nb as yg,nc as gp,o as No,oa as xu,ob as xg,oc as pp,p as zo,pa as vu,pb as vg,pc as Et,q as Ho,qa as Su,qb as Sg,qc as fp,r as _o,ra as wu,rb as wg,rc as hp,s as Wo,sa as ku,sb as kg,sc as mp,t as Vo,ta as Tu,tb as Tn,tc as bp,u as Fo,ua as Cu,ub as Tg,uc as Cn,v as ee,va as Eu,vb as Cg,vc as yp,w as _,wa as Ru,wb as Eg,wc as xp,x as be,xa as Pu,xb as Rg,xc as vp,y as le,ya as Au,yb as Pg,z as Ct,za as Iu,zb as Ag}from"./chunks/chunk-VE72SWLV.mjs";import{a as du}from"./chunks/chunk-FMEWNGQO.mjs";import{a as Sp,b as wp,c as kp,d as Tp,e as Cp,f as Ep,g as Rp,h as Pp,i as Ap,j as Ip,k as Lp,l as Mp,m as Dp,n as $p,o as Op,p as Bp}from"./chunks/chunk-XYUAUO57.mjs";import{a as d,b as kt}from"./chunks/chunk-GF5C5DVX.mjs";import{a as Xo,b as Qo}from"./chunks/chunk-K7CGIEFU.mjs";import{a as wo,b as ko,c as To,d as Co,e as Eo,f as Ld,g as Ro,h as Md,i as Dd,j as $d,k as Od,l as Bd}from"./chunks/chunk-KHP6CSSM.mjs";import{$ as ma,$a as hl,$b as fc,$c as ud,Aa as Fa,Ab as Vl,Ac as Hc,B as qs,Ba as ja,Bb as Fl,Bc as _c,C as Qs,Ca as Ua,Cb as jl,Cc as Wc,D as Zs,Da as Ga,Db as Ul,Dc as Vc,Ea as Ya,Eb as Gl,Ec as Fc,F as ea,Fa as Ka,Fb as Yl,Fc as jc,Ga as Ja,Gb as Kl,Gc as Uc,Ha as Xa,Hb as Jl,Hc as Gc,I as ta,Ib as Xl,Ic as wt,Ja as qa,Jb as ql,Jc as Yc,K as na,Ka as Qa,Kb as Ql,Kc,La as Za,Lb as Zl,Lc as Jc,Ma as el,Mb as ec,Mc as Xc,Na as tl,Nb as tc,Nc as qc,O as oa,Oa as nl,Ob as nc,Oc as Qc,P as ra,Pa as ol,Pb as oc,Pc as Zc,Q as ia,Qa as rl,Qb as rc,Qc as ed,R as sa,Ra as il,Rb as ic,Rc as td,S as aa,Sa as sl,Sb as sc,Sc as nd,T as la,Ta as al,Tb as ac,Tc as od,U as ca,Ua as ll,Ub as lc,Uc as rd,V as da,Va as cl,Vb as cc,Vc as id,W as ua,Wa as dl,Wb as xn,Wc as sd,X as ga,Xa as ul,Xb as dc,Xc as ad,Y as pa,Ya as gl,Yb as uc,Yc as ld,Z as fa,Za as pl,Zb as gc,Zc as cd,_ as ha,_a as fl,_b as pc,_c as dd,a as Is,aa as ba,ab as ml,ac as hc,ad as gd,b as Ls,ba as ya,bb as bl,bc as vn,bd as pd,c as Ms,ca as xa,cb as yl,cc as mc,cd as fd,d as Ds,da as va,db as xl,dc as bc,dd as hd,e as $s,ea as Sa,eb as vl,ec as yc,ed as md,f as Os,fa as wa,fb as Sl,fc as Sn,fd as bd,g as Bs,ga as ka,gb as wl,gc as xc,gd as yd,h as Ns,ha as Ta,hb as kl,hc as vc,hd as xd,i as zs,ia as Ca,ib as Tl,ic as Sc,id as vd,j as Hs,ja as Ea,jb as Cl,jc as wc,jd as Sd,k as _s,ka as Ra,kb as El,kc,kd as wd,l as Ws,la as Pa,lb as Rl,lc as Tc,ld as kd,m as Vs,ma as Aa,mb as Pl,mc as Cc,md as Id,n as Fs,na as Ia,nb as Al,nc as Ec,o as js,oa as La,ob as Il,oc as Rc,p as Us,pa as Ma,pb as Ll,pc as Pc,q as Gs,qa as Da,qb as Ml,qc as Ac,r as Ys,ra as $a,rb as Dl,rc as Ic,s as Ks,sa as Oa,sb as $l,sc as Lc,t as Js,ta as Ba,tb as Ol,tc as Mc,u as Xs,ua as Na,ub as Bl,uc as Dc,va as za,vb as Nl,vc as $c,wa as Ha,wb as zl,wc as Oc,xa as _a,xb as Hl,xc as Bc,ya as Wa,yb as _l,yc as Nc,za as Va,zb as Wl,zc}from"./chunks/chunk-AIEOQWNG.mjs";import{a as Be,d as x,e as vo,f as U,g as So}from"./chunks/chunk-CE5U3CSQ.mjs";import{a as qo}from"./chunks/chunk-PTK5FO6C.mjs";import{a as Z,b as Po,c as O,d as Ao,e as Io}from"./chunks/chunk-GBUZCZE4.mjs";import{H as yn,J as ae,a as T,b as $,d as Oe,g as hn,h as mn,j as bn,r as Ze}from"./chunks/chunk-3UTMGIUG.mjs";import"./chunks/chunk-5NZOQR6Q.mjs";var At=class extends Rt{constructor(n){super();this.events=[];this.arrayListeners=new Set;this.captureSuppressed=!1;this.clearListeners=new Set;this.maxEvents=n.maxEvents??500,this.storeName=n.storeName,Promise.resolve().then(()=>{let o=()=>{ee().status==="locked"?(this.stopCapturing(),this.events=[],this.notifyArrayListeners()):this.getTotalSubscriberCount()>0&&!this.captureSuppressed&&!this.isCapturing()&&this.startCapturing()};le(o),o()})}onSubscribe(){this.getTotalSubscriberCount()===1&&!this.captureSuppressed&&ee().status!=="locked"&&this.startCapturing(),ke(this.storeName)}onUnsubscribe(){this.getTotalSubscriberCount()===0&&this.stopCapturing(),ke(this.storeName)}getTotalSubscriberCount(){return this.listeners.size+this.arrayListeners.size}subscribeToEvents(n){let o=this.getTotalSubscriberCount()===0;return this.arrayListeners.add(n),o&&!this.captureSuppressed&&ee().status!=="locked"&&this.startCapturing(),ke(this.storeName),n(this.getEvents()),()=>{this.arrayListeners.delete(n),this.getTotalSubscriberCount()===0&&this.stopCapturing(),ke(this.storeName)}}onEvent(n){return this.subscribe(n)}addEvent(n){ee().status!=="locked"&&(this.events=[n,...this.events].slice(0,this.maxEvents),_()&&this.notify(n),this.notifyArrayListeners())}notifyArrayListeners(){let n=this.getEvents();this.arrayListeners.forEach(o=>{try{o(n)}catch{}})}getEvents(){return _()?this.events:[]}getEventCount(){return _()?this.events.length:0}clearEvents(){this.events=[],this.notifyArrayListeners(),this.clearListeners.forEach(n=>{try{n()}catch{}})}onClear(n){return this.clearListeners.add(n),()=>{this.clearListeners.delete(n)}}disableCapture(){this.captureSuppressed=!0,this.isCapturing()&&this.stopCapturing()}replaceEvents(n){this.events=this.dedupeById(n).slice(0,this.maxEvents),this.notifyArrayListeners()}dedupeById(n){let o=new Set,i=[];for(let r of n){let s=r?.id;if(s==null){i.push(r);continue}o.has(s)||(o.add(s),i.push(r))}return i}setMaxEvents(n){this.maxEvents=n,this.events.length>n&&(this.events=this.events.slice(0,n),this.notifyArrayListeners())}getSubscriberCounts(){return{eventCallbacks:this.listeners.size,arrayListeners:this.arrayListeners.size,total:this.getTotalSubscriberCount()}}};import{useEffect as qr,useMemo as Qr,useState as Zr}from"react";var Pn=[{value:"buoy.gg/api/license",mode:"contains"},{value:"api.keygen.sh",mode:"contains"}];function It(e,t){let n=e.toLowerCase(),o=t.value.toLowerCase();if(t.mode==="contains")return n.includes(o);try{let i=new URL(e);return o.startsWith("/")?i.pathname.toLowerCase()===o:o.startsWith("http://")||o.startsWith("https://")?`${i.origin}${i.pathname}`.toLowerCase()===o:i.host.toLowerCase()===o}catch{return n===o}}function An(e,t){return!e||t.length===0?!1:t.some(n=>It(e,n))}var Ln=Pn;function ei(e){if(!Array.isArray(e))return[];let t=[];for(let n of e)if(typeof n=="string"&&n.trim())t.push({value:n,mode:"contains"});else if(n&&typeof n=="object"&&typeof n.value=="string"){let o=n;t.push({value:o.value,mode:o.mode==="exact"?"exact":"contains"})}return t}function In(e){let t=[...e];for(let n of Ln)t.some(o=>o.value===n.value)||t.push({...n});return t}var Lt=class{constructor(){this.patterns=In(Ln.map(t=>({...t})));this.listeners=new Set;this.loaded=!1;this.loadPromise=null;this.dirty=!1}getPatterns(){return this.patterns}subscribe(t){return this.listeners.add(t),this.ensureLoaded(),()=>{this.listeners.delete(t)}}emit(){this.listeners.forEach(t=>t())}ensureLoaded(){return this.loaded?Promise.resolve():this.loadPromise?this.loadPromise:(this.loadPromise=(async()=>{try{let t=await O.getItem(Z.network.ignoredDomains());if(t&&!this.dirty){let n=In(ei(JSON.parse(t)));this.patterns=n}}catch{}finally{this.loaded=!0,this.emit()}})(),this.loadPromise)}persist(){O.setItem(Z.network.ignoredDomains(),JSON.stringify(this.patterns)).catch(()=>{})}commit(t){this.dirty=!0,this.patterns=t,this.emit(),this.persist()}add(t){let n=t.value.trim();n&&(this.patterns.some(o=>o.value===n)||this.commit([...this.patterns,{value:n,mode:t.mode}]))}remove(t){this.patterns.some(n=>n.value===t)&&this.commit(this.patterns.filter(n=>n.value!==t))}toggle(t){let n=t.trim();n&&this.commit(this.patterns.some(o=>o.value===n)?this.patterns.filter(o=>o.value!==n):[...this.patterns,{value:n,mode:"contains"}])}toggleMode(t){this.patterns.some(n=>n.value===t)&&this.commit(this.patterns.map(n=>n.value===t?{...n,mode:n.mode==="contains"?"exact":"contains"}:n))}},ce=new Lt,ti=e=>ce.add(e),ni=e=>ce.remove(e),oi=e=>ce.toggle(e),ri=e=>ce.toggleMode(e);function ii(){let[e,t]=Zr(()=>ce.getPatterns());qr(()=>ce.subscribe(()=>{t(ce.getPatterns())}),[]);let n=Qr(()=>new Set(e.map(o=>o.value)),[e]);return{patterns:e,values:n,add:ti,remove:ni,toggle:oi,toggleMode:ri}}function si(e){typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>e()):setTimeout(e,0)}function ai(e){let t=e.id,n=e.order??"append",o=e.coalesce??"sync",i=e.flushMinIntervalMs??150,r=e.max,s=[],a=!1,l=e.firstId??1,u=0,m=!1,w=[],g=!1;function b(){g||(g=!0,le(()=>{ee().status==="locked"&&(s=[]),K()}))}let C=new Set,E=new Set;function Y(){for(let v of C)try{v()}catch{}}function K(){if(o==="sync"){Y();return}m||(m=!0,si(()=>{m=!1,Y()}))}function H(v){return v.length<=r?v:n==="append"?v.slice(v.length-r):v.slice(0,r)}return{id:t,subscribe(v){return b(),C.add(v),()=>{C.delete(v)}},getSnapshot(){return b(),_()?s:w},size(){return _()?s.length:0},add(v){b(),!(a||ee().status==="locked")&&(n==="append"?s=s.length>=r?[...s.slice(s.length-r+1),v]:[...s,v]:s=s.length>=r?[v,...s.slice(0,r-1)]:[v,...s],K())},set(v){b(),_()&&(s=H(v),K())},update(v){b(),ee().status!=="locked"&&(s=H(v(s)),K())},clear(){for(let v of E)try{v()}catch{}s.length!==0&&(s=[],K())},onClear(v){return E.add(v),()=>{E.delete(v)}},notify(){K()},flushSync(v=!1){let A=Date.now();if(!(!v&&A-u<i)){u=A;try{let Re=globalThis.__buoyFlushToolSync;if(!Re)return;for(let pt of Re)pt(t)}catch{}}},setPaused(v){a=v},isPaused(){return a},setMax(v){r=v;let A=H(s);A!==s&&(s=A,K())},getMax(){return r},allocId(){return l++},bumpIdAbove(v){v+1>l&&(l=v+1)},listenerCount(){return C.size}}}var Mt=class{constructor(t={}){this.items=[];this.itemListeners=new Set;this.clearListeners=new Set;this.idCounter=0;this.enabled=!0;this.captureSuppressed=!1;this.max=t.max??200}canRecord(){return this.enabled&&!this.captureSuppressed}nextId(){return`${Date.now()}-${++this.idCounter}`}push(t){this.items=[t,...this.items].slice(0,this.max)}record(t){this.push(t),this.notifyListeners()}setItems(t){this.items=t.slice(0,this.max),this.notifyListeners()}getAll(){return[...this.items]}getById(t){return this.items.find(n=>n.id===t)}get size(){return this.items.length}clear(){this.items=[],this.notifyListeners(),this.clearListeners.forEach(t=>{try{t()}catch{}})}onClear(t){return this.clearListeners.add(t),()=>{this.clearListeners.delete(t)}}disableCapture(){this.captureSuppressed=!0}isCaptureSuppressed(){return this.captureSuppressed}replaceAll(t){return this.enabled?(this.setItems(t),!0):!1}hydrateById(t,n){let o=this.items.findIndex(i=>i.id===t);o!==-1&&(this.items=[...this.items.slice(0,o),{...this.items[o],...n},...this.items.slice(o+1)],this.notifyListeners())}setEnabled(t){this.enabled=t}getEnabled(){return this.enabled}setMax(t){this.max=t,this.items.length>t&&(this.items=this.items.slice(0,t),this.notifyListeners())}getMax(){return this.max}subscribe(t){return this.itemListeners.add(t),()=>{this.itemListeners.delete(t)}}notifyListeners(){let t=this.getAll();this.itemListeners.forEach(n=>n(t))}get listenerCount(){return this.itemListeners.size}};var ye=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),li=["id","lineId","key","uuid","_id","slug","name"];function Dt(e){if(!e.length||!e.every(ye))return;let t=e[0];for(let n of li){if(!(n in t))continue;let o=e.map(r=>r[n]);if(o.every(r=>typeof r=="string"||typeof r=="number")&&new Set(o.map(String)).size===o.length)return n}}function ci(e,t,n,o){let i=o[t];return typeof i=="string"||typeof i=="number"?String(i)!==n?{ok:!1,error:`The new item is addressed as \`${n}\` but carries \`${t}\`: ${JSON.stringify(i)}. Use the same value for both \u2014 address it by the id it carries.`}:{ok:!0,value:i}:e.every(s=>typeof s[t]=="number")&&n.trim()!==""&&String(Number(n))===n?{ok:!0,value:Number(n)}:{ok:!0,value:n}}function Mn(e,t,n="",o=[]){if(Array.isArray(e)&&ye(t)){let i=Dt(e);if(!i)return{patch:t,notes:o};let r=new Map(e.map(m=>[String(m[i]),m])),s=e.slice(),a=0,l=0,u=0;for(let[m,w]of Object.entries(t)){let g=s.findIndex(b=>String(b[i])===m);if(w===null){if(g===-1)return{patch:t,notes:o};s.splice(g,1),a++}else if(g===-1){if(!ye(w))return{patch:t,notes:o};let b=ci(e,i,m,w);if(!b.ok)return{patch:t,notes:o,error:b.error};s.push({...w,[i]:b.value}),u++}else{let b=Mn(r.get(m),w,`${n}[${m}]`,o);if(b.error)return{patch:t,notes:o,error:b.error};let C=s[g];s[g]=ye(C)&&ye(b.patch)?{...C,...b.patch}:b.patch,l++}}return o.push(`${n||"(root)"}: addressed by \`${i}\` \u2014 ${l} changed, ${u} added, ${a} removed, ${s.length} item(s) remain`),{patch:s,notes:o}}if(ye(e)&&ye(t)){let i={};for(let[r,s]of Object.entries(t)){let a=n?`${n}.${r}`:r;if(!(r in e)){i[r]=s;continue}let l=Mn(e[r],s,a,o);if(l.error)return{patch:t,notes:o,error:l.error};i[r]=l.patch}return{patch:i,notes:o}}return{patch:t,notes:o}}var et=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function tt(e,t=0){if(e===null)return"null";if(Array.isArray(e)){if(!e.length)return"unknown[]";if(t>=3)return"\u2026[]";let o=tt(e[0],t+1);return o.includes(" ")||o.endsWith("]")?`(${o})[]`:`${o}[]`}if(et(e)){if(t>=3)return"{\u2026}";let o=Object.keys(e),i=o.slice(0,24),r=i.map(a=>`${a}: ${tt(e[a],t+1)}`).join(", "),s=o.length>i.length?`, +${o.length-i.length} more`:"";return`{${r}${s}}`}let n=typeof e;return n==="undefined"?"undefined":n==="function"?"function":n}function ze(e,t="",n=[],o=0,i={visited:0}){if(o>3||n.length>=40||i.visited>=600)return n;if(Array.isArray(e)){let r=e[0];if(n.push({path:t||"(root)",length:e.length,...e.length?{item:tt(r)}:{}}),e.length&&et(r))for(let[s,a]of Object.entries(r)){if(++i.visited>=600)break;ze(a,t?`${t}[].${s}`:`[].${s}`,n,o+1,i)}return n}if(et(e))for(let[r,s]of Object.entries(e)){if(++i.visited>=600)break;ze(s,t?`${t}.${r}`:r,n,o+1,i)}return n}function kf(e){let t={visited:0};return ze(e,"",[],0,t).length>=40||t.visited>=600}function Tf(e){return ze(e).filter(t=>t.item===void 0).map(t=>t.path)}function Cf(e){if(e===void 0)return;let t=ze(e),n=tt(e);if(!(!t.length&&!et(e)&&!Array.isArray(e)))return t.length?{shape:n,lists:t}:{shape:n}}var te=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function di(e,t,n=2e3){let o=[{node:e,path:""}],i=0;for(;o.length&&i<n;){let{node:r,path:s}=o.shift();if(i++,Array.isArray(r))r.slice(0,20).forEach((a,l)=>o.push({node:a,path:`${s}[${l}]`}));else if(te(r))for(let[a,l]of Object.entries(r)){let u=s?`${s}.${a}`:a;if(a===t)return u;(te(l)||Array.isArray(l))&&o.push({node:l,path:u})}}}function Dn(e,t,n,o,i){let r=di(e,i??n),s=o.slice(0,12).join(", ")||"(no fields)";return r?`No field "${n}" at "${t}" \u2014 did you mean path "${r}"? "${t}" has: ${s}.`:`No field "${n}" at "${t}". It has: ${s}.`}function $n(e,t){let n=e;for(let o of t.split(".")){if(!te(n))return;n=n[o]}return n}function On(e){if(!e.trim())return;let t=[],n=0;for(;n<e.length;){if(e[n]==="."){n++;continue}if(e[n]==="["){let r=e.indexOf("]",n);if(r===-1)return;let s=e.slice(n+1,r);if(/^\d+$/.test(s))t.push({kind:"index",index:Number(s)});else{let a=s.indexOf("=");if(a<=0)return;t.push({kind:"match",field:s.slice(0,a).trim(),value:s.slice(a+1).trim()})}n=r+1;continue}let o=n;for(;o<e.length&&e[o]!=="."&&e[o]!=="[";)o++;let i=e.slice(n,o);if(!i)return;t.push({kind:"key",key:i}),n=o}return t.length?t:void 0}function Af(e,t){let n=On(t);if(!n)return{ok:!1,error:`Could not read the path "${t}". Use dotted keys with optional [0] or [field=value], like "item.name" or "lines[lineId=seed-1].qty".`};let o=e,i=[];for(let r of n){if(o==null)return{ok:!1,error:`"${i.join(".")||"(root)"}" is ${o===null?"null":"not set"}, so there is nothing at "${t}".`};if(r.kind==="key"){if(!te(o))return{ok:!1,error:`"${i.join(".")||"(root)"}" is not an object, so it has no field "${r.key}".`};if(!(r.key in o)){let s=n[n.length-1];return{ok:!1,error:Dn(e,i.join(".")||"(root)",r.key,Object.keys(o),s?.kind==="key"?s.key:void 0)}}o=o[r.key],i.push(r.key)}else if(r.kind==="index"){if(!Array.isArray(o))return{ok:!1,error:`"${i.join(".")||"(root)"}" is not a list, so [${r.index}] means nothing.`};o=o[r.index],i.push(`[${r.index}]`)}else{if(!Array.isArray(o))return{ok:!1,error:`"${i.join(".")||"(root)"}" is not a list, so [${r.field}=${r.value}] means nothing.`};let s=o.find(a=>te(a)&&String($n(a,r.field))===r.value);if(s===void 0)return{ok:!1,error:`No item with ${r.field}="${r.value}" in "${i.join(".")||"(root)"}".`};o=s,i.push(`[${r.field}=${r.value}]`)}}return{ok:!0,value:o}}function If(e,t,n){let o=On(t);if(!o)return{ok:!1,error:`Could not read the path "${t}". Use dotted keys with optional [0] or [field=value], like "item.name" or "lines[lineId=seed-1].qty".`};if(o[0]?.kind!=="key")return{ok:!1,error:`A path must start with a field name, not a list index \u2014 "${t}" does not say which list.`};let i=(s,a)=>{if(a>=o.length)return{ok:!0,patch:n};let l=o[a];if(l.kind==="key"){if(te(s)&&!(l.key in s)&&a+1<o.length){let K=o[o.length-1];return{ok:!1,error:Dn(e,He(o,a),l.key,Object.keys(s),K?.kind==="key"?K.key:void 0)}}let E=te(s)?s[l.key]:void 0,Y=i(E,a+1);return Y.ok?{ok:!0,patch:{[l.key]:Y.patch}}:Y}if(!Array.isArray(s))return{ok:!1,error:`"${He(o,a)}" is not a list, so "${t}" cannot be resolved. Read it first \u2014 \`shape\` on the read says what each field holds.`};let u=l.kind==="index"?l.index:s.findIndex(E=>te(E)&&String($n(E,l.field))===l.value),m=u>=0?s[u]:void 0;if(l.kind==="index"?u<0||u>=s.length:u<0)return{ok:!1,error:l.kind==="index"?`"${He(o,a)}" has ${s.length} item(s), so there is nothing at [${l.index}].`:`No item with ${l.field}="${l.value}" in "${He(o,a)}".`};if(!te(m)){if(a<o.length-1)return{ok:!1,error:`"${He(o,a)}[${l.kind==="index"?l.index:`${l.field}=${l.value}`}]" holds ${m===null?"null":typeof m}, not an object, so "${t}" cannot go any deeper. Set the item itself.`};let E=s.slice();return E[u]=n,{ok:!0,patch:E}}let g=i(m,a+1);if(!g.ok)return g;let b=Dt(s);if(b)return{ok:!0,patch:{[String(m[b])]:g.patch}};let C=s.slice();return C[u]=te(g.patch)?{...m,...g.patch}:g.patch,{ok:!0,patch:C}},r=i(e,0);return r.ok?{ok:!0,patch:r.patch}:r}function He(e,t){return e.slice(0,t).map(n=>n.kind==="key"?n.key:n.kind==="index"?`[${n.index}]`:`[${n.field}=${n.value}]`).join(".").replace(/\.\[/g,"[")||"(root)"}var de=e=>!!e&&typeof e=="object"&&!Array.isArray(e);function nt(e){return Array.isArray(e)?"array":e===null?"null":typeof e=="object"?"object":typeof e}var Bn=["string","number","boolean"];function ui(e,t,n=2e3){let o=[{node:e,path:""}],i=0;for(;o.length&&i<n;){let{node:r,path:s}=o.shift();if(i++,Array.isArray(r))r.slice(0,20).forEach((a,l)=>o.push({node:a,path:`${s}[${l}]`}));else if(de(r))for(let[a,l]of Object.entries(r)){let u=s?`${s}.${a}`:a;if(a===t&&s)return u;(de(l)||Array.isArray(l))&&o.push({node:l,path:u})}}}function Nn(e,t,n={},o=e,i="",r=[]){let s=n.noun??"data",a=i||"(root)";if(Array.isArray(t)){if(!Array.isArray(e))return r.push({path:a,kind:"type-change",detail:`${nt(e)} \u2192 array`}),r;let g=e.length?e[0]:void 0;return g!==void 0&&(de(g)||Array.isArray(g))&&t.forEach((b,C)=>{let E=`${i}[${C}]`;if(de(g)&&de(b))for(let Y of Object.keys(g))Y in b||r.push({path:`${E}.${Y}`,kind:"missing-key",detail:`list items need \`${Y}\` \u2014 the items already in the list have it`});Nn(g,b,n,o,E,r)}),r}if(de(t)){if(!de(e))return r.push({path:a,kind:"type-change",detail:`${nt(e)} \u2192 object`}),r;for(let[g,b]of Object.entries(t)){let C=i?`${i}.${g}`:g;if(g in e)Nn(e[g],b,n,o,C,r);else{let E=ui(o,g);r.push({path:C,kind:"add-key",detail:E?`no such field here \u2014 did you mean \`${E}\`?`:`no field named \`${g}\` exists in this ${s}`,...E?{movedTo:E}:{}})}}return r}let l=nt(e),u=nt(t),m=l==="null"&&Bn.includes(u),w=u==="null"&&Bn.includes(l);return l!==u&&!m&&!w&&r.push({path:a,kind:"type-change",detail:`${l} \u2192 ${u}`}),r}function Df(e,t){if(!t.length||!t.every(o=>o.kind==="add-key"&&o.movedTo))return;let n={};for(let o of t){let i=gi(e,o.path);if(i===void 0||o.movedTo.includes("["))return;let r=n,s=o.movedTo.split(".");s.slice(0,-1).forEach(a=>{r[a]??(r[a]={}),r=r[a]}),r[s[s.length-1]]=i}return n}function gi(e,t){let n=e;for(let o of t.split(".")){if(!de(n))return;n=n[o]}return n}function $f(e,t,n){let o=e.slice(0,6).map(r=>`\`${r.path}\`: ${r.detail}`).join("; "),i=e.length>6?`; +${e.length-6} more`:"";return`Refused: this isn't a same-type edit of existing fields (the rule the React Query devtools enforces). ${o}${i}. You can only change the VALUE of a field that already exists, to the same type \u2014 you can't add fields, change a field's type, or null a list/object the screen renders. Clearing a scalar to null is fine. Send just the field(s) you're changing, nested to match the current shape of this ${t}. Use force:true only to deliberately break that.`+(n?` This is the same edit at the right depth \u2014 send it as the patch: ${JSON.stringify(n)}`:"")}function ot(e,t){let n=0,o=!1,i=!1,r=[e],s=new Set;for(;r.length>0;){if(n>t)return{bytes:n,sawRepeat:o,sawBigInt:i};let a=r.pop();if(a==null)n+=4;else if(typeof a=="string")n+=a.length+2;else if(typeof a=="number")n+=8;else if(typeof a=="boolean")n+=5;else if(typeof a=="object"){if(s.has(a)){o=!0;continue}if(s.add(a),Array.isArray(a)){n+=2+a.length;for(let l=0;l<a.length;l++)r.push(a[l])}else{n+=2;for(let l in a)n+=l.length+4,r.push(a[l])}}else typeof a=="bigint"&&(i=!0),n+=4}return{bytes:n,sawRepeat:o,sawBigInt:i}}function $t(e,t){let n=ot(e,t);return n.bytes>t?!0:!n.sawRepeat&&!n.sawBigInt?!1:!Pt(e)}var pi=16*1024,Ot=8*1024*1024;function Wf(e,t){return Object.freeze({[`__buoy${e}OnDevice`]:!0,note:t})}function Vf(e,t){return typeof e=="object"&&e!==null&&e[`__buoy${t}OnDevice`]===!0}function fi(e=Ot){return{__buoyTruncated:!0,note:`Exceeds the ${e/1048576}MB detail limit \u2014 inspect it on-device.`}}function Ff(e,t,n=pi){return e===void 0?e:$t(e,n)?t:e}function hi(e,t=Ot){return $t(e,t)?fi(t):e}function jf(e){let t=new WeakMap;return n=>{let o=t.get(n);if(o!==void 0)return o;let i=e(n);return t.set(n,i),i}}function Uf(e,t){let n=[],o=t.baseBytes??16;for(let i=e.length-1;i>=0;i--){let r=t.toWire(e[i]);if(o+r.bytes>t.budget&&n.length>0)break;n.push(r.value),o+=r.bytes}return n.reverse(),n}function Gf(e,t,n){let o=ot(e,t);if(o.bytes<=t)return{value:e,bytes:o.bytes};let i=n();return{value:i,bytes:ot(i,t).bytes}}function mi(e){return e??{}}function Yf(e,t,n=Ot){let o=i=>hi(i,n);return i=>{let{id:r}=mi(i);if(!r)return{found:!1,reason:"missing id"};let s=e(r);return s?{found:!0,id:r,...t(s,o)}:{found:!1,reason:"unknown id"}}}function bi(e){return e.length===1?e[0]:t=>{let n=e.map(o=>o(t));return()=>{for(let o of n)o()}}}function Xf(e){let t=Array.isArray(e.subscribe)?bi(e.subscribe):e.subscribe;return{version:e.version,getSnapshot:e.getSnapshot,subscribe:t,...e.actions?{actions:e.actions}:{}}}function Zf(e){return e}function eh(e,t,n){return o=>{let i=o??{},r=e.props===void 0&&!t?void 0:{...e.props??{},...t?t(i):{}};return{...e,id:i.id||e.id,name:i.name||e.name,description:i.description||e.description,...r!==void 0?{props:r}:{},...n?n(i,e):{}}}}var Bt="__buoyToolActionRegistry";function Nt(){let e=globalThis;return e[Bt]||(e[Bt]=new Set),e[Bt]}function rh(e){let t=Nt();t.add(e);let n=!1,o=()=>{if(n)return;n=!0;let r=e(),s=async(a,l,u)=>{if(!(a==="network"&&l==="deleteOverrideRule"||a==="impersonate"&&l==="stopImpersonation"))throw new Error("Unsupported account-lock cleanup operation");if(a==="impersonate")return r[a]?.dispose?.(s);let m=r[a]?.actions?.[l];if(!m)throw new Error(`Cleanup unavailable for ${a}`);return m(u)};for(let a of Object.values(r))try{Promise.resolve(a.dispose?.(s)).catch(l=>console.warn("[Buoy] Tool cleanup failed",l))}catch(l){console.warn("[Buoy] Tool cleanup failed",l)}},i=le(()=>{_()?n=!1:o()});return()=>{i(),t.delete(e),Promise.resolve().then(()=>{t.size===0&&o()})}}function _e(){if(!_())return{};let e={};for(let t of Nt())try{Object.assign(e,t())}catch{}return Object.fromEntries(Object.entries(e).map(([t,n])=>[t,Hn(n)]))}function ih(){return Object.keys(_e())}function sh(){let e={};for(let[t,n]of Object.entries(_e()))e[t]=Object.keys(n.actions??{});return e}function ah(){return Object.entries(_e()).filter(([,e])=>typeof e.getSnapshot=="function").map(([e])=>e)}async function lh(e){be();let n=_e()[e];if(!n)throw new Error(`Unknown tool "${e}"`);if(typeof n.getSnapshot!="function")throw new Error(`Tool "${e}" has no snapshot to read`);return await n.getSnapshot()}function zn(){return _()&&Nt().size>0}async function ch(e,t,n){be();let i=_e()[e],r=i?.actions?.[t];if(!r)throw new Error(i?`Unknown action "${t}" on tool "${e}"`:`Unknown tool "${e}"`);return await r(n)}async function dh(e=2e3){if(zn())return!0;let t=Date.now()+e;for(;Date.now()<t;)if(await new Promise(n=>setTimeout(n,50)),zn())return!0;return!1}function Hn(e){let t=n=>(...o)=>{be();let i=!1,r=le(()=>{_()||(i=!0)}),s=()=>{if(i)throw new Error("Buoy account access ended while the operation was pending.");be()};try{let a=n.apply(e,o);return a&&typeof a.then=="function"?Promise.resolve(a).then(l=>(s(),l)).finally(r):(s(),r(),a)}catch(a){throw r(),a}};return{...e,...e.getSnapshot?{getSnapshot:t(e.getSnapshot)}:{},...e.actions?{actions:Object.fromEntries(Object.entries(e.actions).map(([n,o])=>[n,t(o)]))}:{},...e.subscribe?{subscribe:n=>(be(),e.subscribe(()=>{_()&&n()}))}:{}}}var zt="__buoyToolUiBridge";function _t(){let e=globalThis;return e[zt]||(e[zt]=new Set),e[zt]}function ph(e){let t=_t();return t.add(e),()=>{t.delete(e)}}function fh(e){for(let t of _t())try{if(t(e))return!0}catch{}return!1}function hh(){return _t().size>0}var Ht="__buoyToolAttention";function Wt(){let e=globalThis;return e[Ht]||(e[Ht]={byTool:new Map,listeners:new Set}),e[Ht]}function mh(e,t){let n=Wt(),o=n.byTool.get(e)??null;if(!(o===t||o&&t&&o.kind===t.kind&&o.label===t.label)){t?n.byTool.set(e,t):n.byTool.delete(e);for(let i of n.listeners)try{i()}catch{}}}function bh(e){return Wt().byTool.get(e)??null}function yh(e){let t=Wt();return t.listeners.add(e),()=>{t.listeners.delete(e)}}var _n=256*1024;function yi(e){let t=new Set(e?.excludeKeys??[]),n=e?.includeKeys?new Set(e.includeKeys):null,o=0,i=r=>!t.has(r)&&(!n||n.has(r));return{touch:i,allows(r){return i(r)?!0:(o+=1,!1)},countExcluded(r){o+=r},get excludedHits(){return o},excludedWarning(r){return o>0?`${o} ${r} excluded by you`:null}}}function xi(){return{ok:!0,applied:0,skipped:[],warnings:[]}}function vi(e){return{ok:!1,applied:0,skipped:[],warnings:[e]}}function Si(e,t){return{ok:!1,applied:0,skipped:[{id:e,reason:t}],warnings:[]}}function wi(e,t={}){let{key:n,label:o,oldValue:i,newValue:r,inOld:s,inNew:a}=e;if(!a)return{key:n,label:o,verdict:"removed",oldValue:i};if(!s)return{key:n,label:o,verdict:"added",newValue:r};if((t.equal??En)(i,r))return{key:n,label:o,verdict:"unchanged"};let u=t.tooLarge??(m=>Rn(m,_n));return u(i)||u(r)?{key:n,label:o,verdict:"too-large",reason:t.tooLargeReason??"value too large to render a diff \u2014 restore still applies it"}:{key:n,label:o,verdict:"changed",oldValue:i,newValue:r}}function ki(e,t){return e.verdict==="unchanged"?e:{...e,verdict:"wont-apply",reason:t}}function Ti(e,t){let n=o=>o===void 0?[]:o instanceof Map?Array.from(o.keys()):Object.keys(o);return new Set([...n(e),...n(t)])}function Ci(e,t={}){let n=e.toLowerCase();if(t[n])return t[n];for(let[C,E]of Object.entries(t))if(n.includes(C))return E;let i=e.split("").reduce((C,E)=>C+E.charCodeAt(0),0)*137%360,r=.7,s=.6,a=(1-Math.abs(2*s-1))*r,l=a*(1-Math.abs(i/60%2-1)),u=s-a/2,m=0,w=0,g=0;i<60?(m=a,w=l):i<120?(m=l,w=a):i<180?(w=a,g=l):i<240?(w=l,g=a):i<300?(m=l,g=a):(m=a,g=l);let b=C=>Math.round((C+u)*255).toString(16).padStart(2,"0");return`#${b(m)}${b(w)}${b(g)}`}function Ei(e,t={}){let n=t.maxLength??40;if(e===void 0)return t.undefinedLabel??"undefined";if(e===null)return"null";try{if(typeof e=="function")return t.functionLabel??"(fn)";if(typeof e=="string")return e.length>n?`"${e.slice(0,n-3)}..."`:`"${e}"`;if(typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e)){if(e.length===0)return"[]";let o=JSON.stringify(e);return o.length>n?`[${e.length} items]`:o}if(typeof e=="object"){let o=Object.keys(e);if(o.length===0)return"{}";let i=JSON.stringify(e);return i.length<=n?i:`{ ${o.length} keys }`}return String(e).slice(0,n)}catch{return"[complex]"}}function Ri(e,t){if(e===t)return{summary:"no change",changedKeys:[],changedCount:0};if(typeof e!="object"||typeof t!="object"||e===null||t===null)return{summary:"changed",changedKeys:[],changedCount:0};let n=e,o=t,i=Object.keys(n),r=Object.keys(o),s=r.filter(g=>!i.includes(g)),a=i.filter(g=>!r.includes(g)),l=[];for(let g of i)r.includes(g)&&n[g]!==o[g]&&l.push(g);let u=[...s,...a,...l],m=[];if(s.length>0&&m.push(`+${s.length}`),a.length>0&&m.push(`-${a.length}`),l.length>0&&m.push(`~${l.length}`),m.length===0)return{summary:"nested change",changedKeys:[],changedCount:0};let w=u.length;return{summary:`${m.join(" ")} ${w===1?"key":"keys"}`,changedKeys:u,changedCount:w}}function Pi(e){if(e==null)return"N/A";if(e===0)return"0 B";let t=1024,n=["B","KB","MB","GB","TB"],o=Math.floor(Math.log(e)/Math.log(t));return`${(e/Math.pow(t,o)).toFixed(1)} ${n[o]}`}function Eh(e){if(e==null)return"N/A";if(e<1e3)return`${e}ms`;if(e<6e4)return`${(e/1e3).toFixed(1)}s`;if(e<36e5){let o=Math.floor(e/6e4),i=Math.floor(e%6e4/1e3);return i>0?`${o}m ${i}s`:`${o}m`}let t=Math.floor(e/36e5),n=Math.floor(e%36e5/6e4);return n>0?`${t}h ${n}m`:`${t}h`}function Rh(e){return e.toLocaleString()}var Ai=5e4;function Ph(e,t=Ai){try{let n=JSON.stringify(e);return n.length>t?`[omitted: ${Pi(n.length)} \u2014 too large to copy]`:e}catch{return"[omitted: could not serialize]"}}function Ah(e,t=50,n=20,o=20){if(e.length<=t)return e;let i=e.slice(0,n),r=e.slice(-o);return`${i}...${r}`}function Dh(e){if(e>=100&&e<200)return{text:String(e),color:x.info,meaning:"Informational"};if(e>=200&&e<300){let t={200:"OK",201:"Created",202:"Accepted",204:"No Content",206:"Partial Content"};return{text:String(e),color:x.success,meaning:t[e]||"Success"}}if(e>=300&&e<400){let t={301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",307:"Temporary Redirect",308:"Permanent Redirect"};return{text:String(e),color:x.warning,meaning:t[e]||"Redirect"}}if(e>=400&&e<500){let t={400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",408:"Request Timeout",409:"Conflict",410:"Gone",422:"Unprocessable Entity",429:"Too Many Requests"};return{text:String(e),color:x.error,meaning:t[e]||"Client Error"}}if(e>=500){let t={500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};return{text:String(e),color:x.error,meaning:t[e]||"Server Error"}}return{text:String(e),color:x.muted,meaning:"Unknown"}}function $h(e){return{GET:x.success,POST:x.info,PUT:x.warning,DELETE:x.error,PATCH:x.network,HEAD:x.muted,OPTIONS:x.secondary,CONNECT:x.critical,TRACE:x.env}[e.toUpperCase()]||x.muted}function Oh(e){try{let t=new URL(e);return{protocol:t.protocol.replace(":",""),host:t.hostname,port:t.port||void 0,pathname:t.pathname,search:t.search||void 0,hash:t.hash||void 0}}catch{return null}}var We=[];function Vt(e){We.unshift(e),We=We.slice(0,500)}function Ii(){return We}function Li(){We=[]}var rt=(r=>(r.Debug="debug",r.Info="info",r.Log="log",r.Warn="warn",r.Error="error",r))(rt||{}),it=(g=>(g.Auth="Auth",g.Custom="Custom",g.Debug="Debug",g.Error="Error",g.Generic="Generic",g.HTTPRequest="HTTP Request",g.Navigation="Navigation",g.Replay="Replay",g.State="State",g.System="System",g.Touch="Touch",g.UserAction="User Action",g))(it||{});var Mi=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,st=class{constructor(){this.captureTransaction=t=>(this.logSentryEvent("transaction",t),t);this.captureSpan=t=>(this.logSentryEvent("span",t),t);this.captureEvent=t=>(this.logSentryEvent("event",t),t);this.captureLog=t=>(this.logSentryEvent("console",{message:t.message||"Log entry",level:t.level,category:"console",timestamp:t.timestamp,...t.attributes}),t);this.captureBreadcrumb=t=>{let n="unknown";try{let i=globalThis.getCurrentPathname;i&&(n=i())}catch{}let o=t.category;if(t.message?.toLowerCase().includes("ignore"))return null;if(t.message?.includes("Touch event within element:")&&(t.message=t.message.replace("Touch event within element:","")),o==="navigation"&&t.data?.from&&t.data?.to&&(t.message=`From ${t.data.from} To ${t.data.to}`),o==="touch"&&t.data?.path){t.message&&(t.message=t.message.trim());let i={...t.data,category:o,message:t.message,route:n,timestamp:new Date().toISOString(),path:t.message?[{label:t.message}]:t.data?.path};t.data=i}return this.logSentryEvent("breadcrumb",t),t}}logSentryEvent(t,n){let o="Generic",i=n.category;if(i)switch(i){case"touch":o="Touch";break;case"xhr":case"fetch":case"http":o="HTTP Request";break;case"navigation":o="Navigation";break;case"auth":o="Auth";break;case"console":o="System";break;case"debug":o="Debug";break;default:i.startsWith("ui.")?o="User Action":i.startsWith("replay.")?o="Replay":i.includes("redux")||i.includes("state")?o="State":o="Custom"}let r={id:Mi(),timestamp:Date.now(),level:this.getSentryLevel(n),message:this.getSentryMessage(n),metadata:this.getSentryMetadata(n),type:o};Vt(r)}getSentryLevel(t){switch(t.level){case"fatal":case"error":return"error";case"warning":return"warn";case"info":return"info";case"debug":return"debug";default:return"log"}}getSentryMessage(t){let n=t.message;return typeof n=="string"?n:`${t.type||"Unknown"} Event`}getSentryMetadata(t){let{message:n,level:o,type:i,...r}=t;return r}},Di=new st;import{useState as Ft,useEffect as Vn}from"react";import{jsx as M,jsxs as Te}from"react/jsx-runtime";var at=Z.bubble.settings(),Wn=Z.bubble.userPreferences(),jt={showEnvironment:!0,showQueryButton:!0,showWifiToggle:!0,showEnvButton:!1,showSentryButton:!1,showStorageButton:!1};function $i({onPress:e}){let[t,n]=Ft(jt);Vn(()=>{o()},[]);let o=async()=>{try{let r=await O.getItem(at);r&&n(JSON.parse(r))}catch(r){console.error("Failed to load bubble settings:",r)}};return M(Cn,{id:"bubble-settings",title:"SETTINGS",subtitle:`${Object.values(t).filter(Boolean).length}/6 visible`,icon:wt,iconColor:"#10B981",iconBackgroundColor:"rgba(16, 185, 129, 0.1)",onPress:e||(()=>{}),index:5})}function Oi({onSettingsChange:e}){let[t,n]=Ft(jt),[o,i]=Ft(!0);Vn(()=>{r()},[]);let r=async()=>{try{let u=await O.getItem(at);u&&n(JSON.parse(u))}catch(u){console.error("Failed to load bubble settings:",u)}finally{i(!1)}},s=async u=>{try{await O.setItem(at,JSON.stringify(u)),n(u),e?.(u)}catch(m){console.error("Failed to save bubble settings:",m)}},a=async u=>{let m={...t,[u]:!t[u]};try{let w=await O.getItem(Wn),g=w?JSON.parse(w):{},b=u.replace("show","hasSet"),C={...g,[b]:!0};await O.setItem(Wn,JSON.stringify(C))}catch(w){console.error("Failed to save user preference marker:",w)}s(m)};if(o)return M(T,{style:P.detailContainer,children:M($,{style:P.loadingText,children:"Loading settings..."})});let l=[{key:"showEnvironment",label:"Environment Indicator",description:"Shows current environment (dev, staging, prod)",icon:M(T,{style:[P.indicator,{backgroundColor:"#10B981"}]})},{key:"showQueryButton",label:"React Query Button",description:"Opens React Query dev tools",icon:M(T,{style:[P.indicator,{backgroundColor:"#F59E0B"}]})},{key:"showWifiToggle",label:"WiFi",description:"Toggle WiFi for testing offline scenarios",icon:M(T,{style:[P.indicator,{backgroundColor:"#8B5CF6"}]})},{key:"showEnvButton",label:"Environment Variables",description:"View and check environment variables",icon:M(wt,{size:16,color:"#10B981"})},{key:"showSentryButton",label:"Sentry Events",description:"View captured Sentry events and errors",icon:M(T,{style:[P.indicator,{backgroundColor:"#a855f7"}]})},{key:"showStorageButton",label:"Storage Browser",description:"Browse and inspect AsyncStorage data",icon:M(vn,{size:16,color:"#3B82F6"})}];return M(T,{style:P.detailContainer,children:Te(mn,{showsVerticalScrollIndicator:!1,contentContainerStyle:P.scrollContent,"sentry-label":"ignore bubble settings scroll",children:[Te(T,{style:P.header,children:[M($,{style:P.headerTitle,children:"Developer Tools Settings"}),M($,{style:P.headerDescription,children:"Configure bubble button visibility"})]}),M(T,{style:P.sectionDivider,children:M($,{style:P.sectionTitle,children:"Bubble Button Visibility"})}),M(T,{style:P.settingsList,children:l.map(u=>Te(T,{style:P.settingItem,children:[M(T,{style:P.settingIconContainer,children:u.icon}),Te(T,{style:P.settingContent,children:[M($,{style:P.settingLabel,children:u.label}),M($,{style:P.settingDescription,children:u.description})]}),M(bn,{"sentry-label":"ignore bubble settings section",value:t[u.key],onValueChange:()=>a(u.key),trackColor:{false:"#4B5563",true:"#10B981"},thumbColor:t[u.key]?"#fff":U.textSecondary})]},u.key))}),Te(T,{style:P.footer,children:[Te(T,{style:P.noteContainer,children:[M(Sn,{size:16,color:U.textSecondary}),M($,{style:P.noteText,children:"User status indicator is always visible and cannot be disabled"})]}),M($,{style:P.restartNote,children:"Changes are saved automatically and will persist across app restarts"})]})]})})}async function Bi(){try{let e=await O.getItem(at);if(e)return JSON.parse(e)}catch(e){console.error("Failed to load bubble settings:",e)}return jt}var P=ae.create({scrollContent:{flexGrow:1},sectionCard:{backgroundColor:U.input,borderRadius:8,padding:16,flexDirection:"row",alignItems:"center",marginBottom:12},iconContainer:{width:36,height:36,borderRadius:8,backgroundColor:"rgba(16, 185, 129, 0.1)",justifyContent:"center",alignItems:"center",marginRight:12},textContainer:{flex:1},title:{color:U.text,fontSize:14,fontWeight:"600",marginBottom:2},subtitle:{color:U.textSecondary,fontSize:12},chevron:{color:Be.text.icon,fontSize:20},detailContainer:{flex:1,backgroundColor:U.card},loadingText:{color:U.textSecondary,fontSize:14,textAlign:"center",marginTop:20},header:{padding:16,borderBottomWidth:1,borderBottomColor:"rgba(128, 128, 128, 0.2)"},headerTitle:{color:U.text,fontSize:16,fontWeight:"600",marginBottom:4},headerDescription:{color:U.textSecondary,fontSize:12},settingsList:{padding:16},settingItem:{flexDirection:"row",alignItems:"center",paddingVertical:12,borderBottomWidth:1,borderBottomColor:"rgba(128, 128, 128, 0.1)"},settingIconContainer:{width:32,height:32,justifyContent:"center",alignItems:"center",marginRight:12},settingContent:{flex:1,marginRight:12},settingLabel:{color:U.text,fontSize:14,fontWeight:"500",marginBottom:2},settingDescription:{color:Be.text.icon,fontSize:11},indicator:{width:8,height:8,borderRadius:4},footer:{padding:16,borderTopWidth:1,borderTopColor:"rgba(128, 128, 128, 0.2)"},noteContainer:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:8},noteText:{color:U.textSecondary,fontSize:12,flex:1},restartNote:{color:Be.text.icon,fontSize:11,fontStyle:"italic"},sectionDivider:{paddingHorizontal:16,paddingVertical:8,marginTop:8,borderTopWidth:1,borderTopColor:"rgba(128, 128, 128, 0.12)"},sectionTitle:{color:U.textSecondary,fontSize:12,fontWeight:"600",letterSpacing:.5,textTransform:"uppercase"}});function Fn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Ni(e,t,n={}){let o=n.storage??O,i=n.parse??(l=>JSON.parse(l)),r=n.serialize??(l=>JSON.stringify(l));function s(l){let u=Fn(t)&&Fn(l)?{...t,...l}:l;return n.sanitize?n.sanitize(u,l):u}async function a(){try{let l=await o.getItem(e);return l==null||l===""?null:s(i(l))}catch{return null}}return{key:e,defaults:t,loadOrNull:a,async load(){return await a()??t},async save(l){try{await o.setItem(e,r(l))}catch{}},async clear(){try{await o.removeItem(e)}catch{}}}}import{useEffect as zi,useId as Hi,useRef as jn,useState as _i}from"react";import{createPortal as Wi}from"react-dom";import{jsx as Ve,jsxs as Vi}from"react/jsx-runtime";function Ut(){let[e,t]=_i(!1),n=jn(null),o=jn(null),i=Hi(),r=(s=!0)=>{t(!1),s&&n.current?.querySelector('[data-account-launcher] [role="button"]')?.focus({preventScroll:!0})};return zi(()=>{if(!e)return;o.current?.focus({preventScroll:!0});let s=l=>{l.target instanceof Node&&!n.current?.contains(l.target)&&t(!1)},a=l=>{l.key==="Escape"&&(l.preventDefault(),l.stopPropagation(),t(!1),n.current?.querySelector('[data-account-launcher] [role="button"]')?.focus({preventScroll:!0}))};return document.addEventListener("pointerdown",s),document.addEventListener("keydown",a),()=>{document.removeEventListener("pointerdown",s),document.removeEventListener("keydown",a)}},[e]),typeof document>"u"?null:Wi(Vi("div",{ref:n,"data-buoy-account":"",style:{position:"fixed",right:"max(16px, env(safe-area-inset-right))",bottom:"max(20px, env(safe-area-inset-bottom))",zIndex:99999,colorScheme:"dark",fontFamily:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"},children:[Ve("style",{children:`
3
+ [data-buoy-account] { font-size: 14px; line-height: 1.5; text-align: left; }
4
+ [data-buoy-account] [role="button"], [data-buoy-account] [role="link"] { cursor: pointer; }
5
+ [data-buoy-account] [role="button"]:focus-visible, [data-buoy-account] [role="link"]:focus-visible { outline: 2px solid ${d.color.accent}; outline-offset: 3px; }
6
+ [data-buoy-account] [role="link"]:hover { background: rgba(255,255,255,.06); }
7
+ [data-buoy-account] [aria-disabled="true"] { cursor: wait; }
8
+ [data-buoy-account] .buoy-account-panel {
9
+ position: absolute; right: 0; bottom: calc(100% + 12px);
10
+ width: 368px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 96px);
11
+ overflow-y: auto; overscroll-behavior: contain; border-radius: 20px;
12
+ box-shadow: 0 18px 60px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.2);
13
+ outline: none;
14
+ }
15
+ `}),Ve("div",{"data-account-launcher":"",children:Ve(wn,{expanded:e,onPress:()=>t(s=>!s)})}),e&&Ve("section",{ref:o,className:"buoy-account-panel",role:"dialog","aria-labelledby":i,tabIndex:-1,onBlur:s=>{s.relatedTarget instanceof Node&&!n.current?.contains(s.relatedTarget)&&r(!1)},children:Ve(kn,{titleId:i,onClose:()=>r()})})]}),document.body)}import{useState as re,useRef as W,useEffect as ie,useLayoutEffect as Fi,useCallback as z,memo as qt,isValidElement as ji,cloneElement as Ui}from"react";var xe=class{static async save(t,n){this.cache.set(t,n);try{await O.setItem(t,JSON.stringify(n))}catch{}}static async load(t){if(this.cache.has(t))return this.cache.get(t);try{let n=await O.getItem(t);if(n){let o=JSON.parse(n);return this.cache.set(t,o),o}}catch{}return null}static saveMinimized(t,n){return this.save(t,{mode:n.mode,panelHeight:n.panelHeight,dimensions:n.floatingDimensions&&n.floatingPosition?{...n.floatingDimensions,top:n.floatingPosition.y,left:n.floatingPosition.x}:void 0,isVisible:!1})}};xe.cache=new Map;import{jsx as h,jsxs as G}from"react/jsx-runtime";var B={base:"#121212",card:"#1A1A1A",border:"#333333",textMuted:"#888888",primary:"#20C997"},N={primary:"#F5F5F7",primaryLight:"#F5F5F7",secondary:"#A1A1A6",muted:"#8E8E93",success:"#34C759",info:"#00B8E6"},Gi=100,Yi=400,Un=500,je=80,lt=()=>typeof window<"u"?window.innerWidth:0,ue=()=>typeof window<"u"?window.innerHeight:0,Gn=e=>1-Math.pow(1-e,3),Fe=e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2;function ve(e,t,n,o){let i=0,r=!1,s=performance.now(),a=l=>{if(r)return;let u=Math.min((l-s)/e,1);n(t(u)),u<1?i=requestAnimationFrame(a):o?.()};return i=requestAnimationFrame(a),()=>{r=!0,cancelAnimationFrame(i)}}function Ki(){if(typeof document>"u")return{top:0,left:0,right:0,bottom:0};let e=document.createElement("div");e.style.cssText="position:fixed;top:env(safe-area-inset-top);left:env(safe-area-inset-left);right:env(safe-area-inset-right);bottom:env(safe-area-inset-bottom);visibility:hidden;pointer-events:none",document.body.appendChild(e);let t=e.getBoundingClientRect();return document.body.removeChild(e),{top:Math.max(0,t.top),left:Math.max(0,t.left),right:Math.max(0,window.innerWidth-t.right),bottom:Math.max(0,window.innerHeight-t.bottom)}}function Gt(e,t){let n=Math.max(je,window.innerWidth-t.left-t.right),o=Math.max(je,window.innerHeight-t.top-t.bottom),i=Math.min(e.width,n),r=Math.min(e.height,o);return{width:i,height:r,left:Math.max(t.left,Math.min(e.left,window.innerWidth-t.right-i)),top:Math.max(t.top,Math.min(e.top,window.innerHeight-t.bottom-r))}}var Ji=({size:e=24,color:t="currentColor",strokeWidth:n=2})=>G("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[h("line",{x1:18,y1:6,x2:6,y2:18,stroke:t,strokeWidth:n,strokeLinecap:"round"}),h("line",{x1:6,y1:6,x2:18,y2:18,stroke:t,strokeWidth:n,strokeLinecap:"round"})]}),Xi=({size:e=24,color:t="currentColor",strokeWidth:n=2})=>h("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:h("line",{x1:5,y1:12,x2:19,y2:12,stroke:t,strokeWidth:n,strokeLinecap:"round"})}),qi=({size:e=24,color:t="currentColor",strokeWidth:n=2})=>G("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[h("rect",{x:3,y:3,width:18,height:18,rx:2,stroke:t,strokeWidth:n}),h("rect",{x:3,y:14,width:18,height:7,fill:t})]}),Qi=({size:e=24,color:t="currentColor",strokeWidth:n=2})=>G("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[h("rect",{x:3,y:3,width:14,height:14,rx:2,stroke:t,strokeWidth:n}),h("line",{x1:7,y1:17,x2:7,y2:21,stroke:t,strokeWidth:n}),h("line",{x1:7,y1:21,x2:21,y2:21,stroke:t,strokeWidth:n}),h("line",{x1:21,y1:21,x2:21,y2:7,stroke:t,strokeWidth:n}),h("line",{x1:17,y1:7,x2:21,y2:7,stroke:t,strokeWidth:n})]}),Yt={close:"#FF5F57",minimize:"#FEBC2E",toggleMode:"#28C840"},Kt=24,Zi=2,Jt=8,Xt=e=>({width:Kt,height:Kt,borderRadius:Kt/2,display:"flex",alignItems:"center",justifyContent:"center",background:`radial-gradient(circle, ${e} 6px, transparent 6px)`,border:"none",padding:0,cursor:"pointer",flexShrink:0});function es({onClose:e,onMinimize:t,onToggleMode:n,mode:o}){let i=o==="floating"?qi:Qi,r=o==="floating"?"Dock to bottom sheet":"Make floating window";return G("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:Zi},children:[t&&h("button",{type:"button",onClick:t,style:Xt(Yt.minimize),"aria-label":"Minimize modal",children:h(Xi,{size:Jt,color:"#7A5A00",strokeWidth:1.5})}),n&&h("button",{type:"button",onClick:n,style:Xt(Yt.toggleMode),"aria-label":r,children:h(i,{size:Jt,color:"#004A1A",strokeWidth:1.5})}),h("button",{type:"button",onClick:e,style:Xt(Yt.close),"aria-label":"Close modal",children:h(Ji,{size:Jt,color:"#4A0000",strokeWidth:1.5})})]})}var Yn=qt(function({isResizing:t,mode:n,hasCustomContent:o=!1,variant:i="default"}){let r=n==="floating",s=i==="night";return G("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",position:"relative",justifyContent:o?"center":void 0,minHeight:o?32:void 0,paddingTop:o?0:8,paddingBottom:o?0:8,backgroundColor:"transparent"},children:[h("div",{style:{width:s?36:t?40:r?50:40,height:s||r?5:3,backgroundColor:s?d.color.placeholder:t?B.primary:r?B.textMuted:B.primary,borderRadius:s?2.5:2,boxShadow:s?"none":`0 0 4px ${B.primary}99`}}),t&&n==="bottomSheet"&&h("div",{style:{position:"absolute",display:"flex",flexDirection:"row",gap:2,marginTop:12},children:[0,1,2].map(a=>h("div",{style:{width:12,height:1,backgroundColor:N.success,opacity:.6}},a))})]})}),ts=qt(function({onAcknowledge:t}){return h("div",{style:{backgroundColor:`${N.info}15`,borderLeft:`3px solid ${N.info}`,borderRadius:8,margin:"8px 12px 4px",overflow:"hidden",boxShadow:`0 0 8px ${N.info}4D`,flexShrink:0},children:G("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",padding:12,gap:12},children:[G("div",{style:{width:32,height:32,position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:[h("div",{style:{position:"absolute",width:20,height:20,borderRadius:10,border:`2px solid ${N.info}`,opacity:.6,transform:"scale(0.8)",boxSizing:"border-box"}}),h("div",{style:{position:"absolute",width:20,height:20,borderRadius:10,border:`2px solid ${N.info}`,boxSizing:"border-box"}})]}),G("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[h("span",{style:{fontSize:13,fontWeight:600,color:N.info,letterSpacing:.3},children:"\u{1F4A1} Pro Tip"}),h("span",{style:{fontSize:12,color:N.primaryLight,lineHeight:"16px"},children:"Double-tap the header to transform this into a floating modal"})]}),h("button",{type:"button",onClick:t,style:{backgroundColor:`${N.info}30`,padding:"6px 12px",borderRadius:6,border:`1px solid ${N.info}50`,fontSize:12,fontWeight:600,color:N.info,cursor:"pointer",fontFamily:"inherit",flexShrink:0},children:"Got it!"})]})})});function Kn({header:e,isResizing:t,mode:n,onMinimize:o,variant:i="default"}){if(e?.customContent){let r=e.customContent;return ji(e.customContent)&&o&&(r=Ui(e.customContent,{onMinimize:o})),G("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",minWidth:0},children:[h(Yn,{isResizing:t,mode:n,hasCustomContent:!0,variant:i}),r]})}return G("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",position:"relative",minWidth:0},children:[h(Yn,{isResizing:t,mode:n,variant:i}),G("div",{style:{padding:"0 16px",display:"flex",flexDirection:"column",alignItems:"center"},children:[e?.title&&h("span",{style:{fontSize:16,fontWeight:600,color:N.primary},children:e.title}),e?.subtitle&&h("span",{style:{fontSize:12,color:N.secondary,paddingTop:4},children:e.subtitle})]}),h("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:h("span",{style:{fontSize:10,color:N.muted,fontStyle:"italic"},children:"Double tap: Toggle \u2022 Triple tap: Close"})})]})}var ns=({visible:e,onClose:t,children:n,header:o,styles:i={},minHeight:r=Gi,maxHeight:s,initialHeight:a=Yi,animatedHeight:l,benchMotion:u,initialMode:m="bottomSheet",onModeChange:w,persistenceKey:g,enablePersistence:b=!0,initialFloatingPosition:C,footer:E,footerHeight:Y=0,onBack:K,onMinimize:H,minimizeRequest:Ee=0,minimizeTargetPosition:v,initialModalState:A,zIndex:Re,disableScrollWrapper:pt=!1,background:en=!0,variant:ft="night"})=>{let[J]=re(Ki),[tn,nn]=re(!b),[D,ht]=re(m),Ue=W(w);Ue.current=w;let[Pe,ge]=re(!1),[mt,Ae]=re(!1),[no,bt]=re(a),[ne,Ie]=re(()=>Gt({width:lt(),height:Un,top:C?.y??(ue()-Un)/2,left:C?.x??0},J)),[oo,Ge]=re(!1),[ro,on]=re(!1),io=Tt(),pe=W(a),X=W(ne),F=W({x:ne.left,y:ne.top}),Ye=W(null),yt=W(null),oe=W(null),fe=W([]),Q=z(()=>{fe.current.forEach(c=>c()),fe.current=[]},[]);ie(()=>{X.current=ne},[ne]),ie(()=>Q,[Q]);let rn=s||ue()-J.top;ie(()=>{if(!b||!g){nn(!0);return}let c=!0;return(async()=>{let y=await xe.load(g);if(c&&y&&(y.mode&&(ht(y.mode),Ue.current?.(y.mode)),y.panelHeight&&(bt(y.panelHeight),pe.current=y.panelHeight),y.dimensions)){let k=Gt(y.dimensions,J);Ie(k),F.current={x:k.left,y:k.top}}c&&nn(!0)})(),()=>{c=!1}},[g,b]),ie(()=>{if(!b||!g||!tn)return;let c=setTimeout(()=>{xe.save(g,{mode:D,panelHeight:pe.current,dimensions:ne,isVisible:e})},500);return()=>clearTimeout(c)},[D,no,ne,e,g,b,tn]),ie(()=>{let c=!0;return(async()=>{try{let y=Z.modal.hintAcknowledged(),k=await O.getItem(y);c&&(Ge(k!=="true"),on(!0))}catch{c&&(Ge(!0),on(!0))}})(),()=>{c=!1}},[]);let so=z(async()=>{try{let c=Z.modal.hintAcknowledged();await O.setItem(c,"true"),Ge(!1)}catch{Ge(!1)}},[]),xt=z(()=>{Ae(!1),ge(!1);let c=D==="bottomSheet"?"floating":"bottomSheet";ht(c),Ue.current?.(c)},[D]);ie(()=>{Ae(!1),ge(!1)},[D]);let he=z(()=>{if(!H)return;let c={mode:D,panelHeight:pe.current,floatingPosition:{x:X.current.left,y:X.current.top},floatingDimensions:{width:X.current.width,height:X.current.height}};b&&g&&xe.saveMinimized(g,c);let p=v?.x??lt()-50,y=v?.y??ue()-150;if(Q(),D==="bottomSheet"){let k=Ye.current;if(!k){H(c);return}let R=ue();fe.current.push(ve(300,Fe,L=>{k.style.opacity=String(1-L),k.style.transform=`translateY(${L*R}px)`},()=>H(c)))}else{let k=oe.current;if(!k){H(c);return}let R={...F.current};fe.current.push(ve(300,Fe,L=>{k.style.opacity=String(1-L);let qe=R.x+(p-R.x)*L,we=R.y+(y-R.y)*L;k.style.transform=`translate(${qe}px, ${we}px)`},()=>H(c)))}},[D,H,v,Q,b,g]),sn=W(Ee);ie(()=>{sn.current!==Ee&&(sn.current=Ee,he())},[Ee,he]),ie(()=>{if(A&&(A.mode&&(ht(A.mode),Ue.current?.(A.mode)),A.panelHeight&&(bt(A.panelHeight),pe.current=A.panelHeight),A.floatingDimensions&&A.floatingPosition)){let c={width:A.floatingDimensions.width,height:A.floatingDimensions.height,top:A.floatingPosition.y,left:A.floatingPosition.x};Ie(c),F.current={x:A.floatingPosition.x,y:A.floatingPosition.y}}},[A]),Fi(()=>{if(e)if(Q(),D==="bottomSheet"){let c=Ye.current;if(!c)return;let p=ue();c.style.transform=`translateY(${p}px)`,c.style.opacity="0",fe.current.push(ve(300,Gn,y=>{c.style.transform=`translateY(${(1-y)*p}px)`}),ve(200,Fe,y=>{c.style.opacity=String(y)}))}else{let c=oe.current;if(!c)return;F.current={x:X.current.left,y:X.current.top},c.style.transform=`translate(${F.current.x}px, ${F.current.y}px)`,c.style.opacity="0",fe.current.push(ve(200,Fe,p=>{c.style.opacity=String(p)}))}},[e,D,Q]);let an=W(0),Le=W(0),Me=W(null),Ke=z(()=>{let c=Date.now();c-an.current>500&&(Le.current=0),Le.current++,an.current=c,Me.current&&clearTimeout(Me.current),Me.current=setTimeout(()=>{Le.current===2?xt():Le.current>=3&&H&&he(),Le.current=0},300)},[xt,H,he]);ie(()=>()=>{Me.current&&clearTimeout(Me.current)},[]);let Je=W({active:!1,resizing:!1,startY:0,headerOffsetY:0,samples:[]}),ao=z(c=>{if(D!=="bottomSheet"||c.button!==0||c.target.closest('button, a, input, textarea, select, [role="button"], [role="tab"], [role="switch"], [contenteditable="true"], [tabindex]'))return;let p=Je.current;p.active=!0,p.resizing=!1,p.startY=c.clientY;let y=c.currentTarget.getBoundingClientRect();p.headerOffsetY=c.clientY-y.top,p.samples=[{t:performance.now(),y:c.clientY}],c.currentTarget.setPointerCapture(c.pointerId)},[D]),lo=z(c=>{let p=Je.current;if(!p.active)return;let y=c.clientY-p.startY;if(!p.resizing&&Math.abs(y)>3&&(p.resizing=!0,Q(),ge(!0)),!p.resizing)return;let k=c.clientY-p.headerOffsetY,R=ue()-k;R=Math.max(r,Math.min(R,rn)),pe.current=R,yt.current&&(yt.current.style.height=`${R}px`);let L=performance.now();for(p.samples.push({t:L,y:c.clientY});p.samples.length>2&&L-p.samples[0].t>100;)p.samples.shift()},[r,rn,Q]),co=z(c=>{let p=Je.current;if(!p.active)return;if(p.active=!1,!p.resizing){Ke();return}ge(!1);let y=pe.current,k=c.clientY-p.startY,R=p.samples[0],L=p.samples[p.samples.length-1];if((L&&R&&L.t>R.t?(L.y-R.y)/(L.t-R.t):0)>.8&&k>50||k>150&&y<=r){let j=Ye.current;if(Q(),j){let De=ue();fe.current.push(ve(200,Fe,me=>{j.style.opacity=String(1-me)}),ve(300,Gn,me=>{j.style.transform=`translateY(${me*De}px)`},()=>t()))}else t();return}bt(y)},[r,t,Ke,Q]),uo=z(()=>{let c=Je.current;c.active&&(c.active=!1,c.resizing=!1,ge(!1))},[]),Xe=W({active:!1,dragging:!1,startX:0,startY:0,startPos:{x:0,y:0}}),go=z(c=>{if(D!=="floating"||Pe||c.button!==0||c.target.closest('button, a, input, textarea, select, [role="button"], [role="tab"], [role="switch"], [contenteditable="true"], [tabindex]'))return;let p=Xe.current;p.active=!0,p.dragging=!1,p.startX=c.clientX,p.startY=c.clientY,p.startPos={...F.current},c.currentTarget.setPointerCapture(c.pointerId)},[D,Pe]),po=z(c=>{let p=Xe.current;if(!p.active)return;let y=c.clientX-p.startX,k=c.clientY-p.startY;if(!p.dragging&&Math.abs(y)+Math.abs(k)>5&&(p.dragging=!0,Ae(!0)),!p.dragging)return;let R=p.startPos.x+y,L=p.startPos.y+k;F.current={x:R,y:L},oe.current&&(oe.current.style.transform=`translate(${R}px, ${L}px)`)},[]),fo=z(()=>{let c=Xe.current;if(!c.active)return;if(c.active=!1,!c.dragging){Ke();return}Ae(!1);let p=X.current,y=Gt({...p,left:F.current.x,top:F.current.y},J),k=y.left,R=y.top;F.current={x:k,y:R},oe.current&&(oe.current.style.transform=`translate(${k}px, ${R}px)`),Ie(L=>({...L,left:k,top:R}))},[J,Ke]),ho=z(()=>{let c=Xe.current;c.active&&(c.active=!1,c.dragging=!1,Ae(!1))},[]),vt=W({active:!1,corner:"bottomRight",startX:0,startY:0,start:{width:0,height:0,top:0,left:0}}),mo=z(c=>p=>{if(D!=="floating")return;p.stopPropagation();let y=vt.current;y.active=!0,y.corner=c,y.startX=p.clientX,y.startY=p.clientY,y.start={...X.current},ge(!0),p.currentTarget.setPointerCapture(p.pointerId)},[D]),bo=z(c=>{let p=vt.current;if(!p.active)return;let y=c.clientX-p.startX,k=c.clientY-p.startY;if(Math.abs(y)<.5&&Math.abs(k)<.5)return;let R=Math.max(0,J.left),L=ue()-Math.max(0,J.bottom),qe=lt()-Math.max(0,J.right),we=lt()*.25,j=p.start,De=j.left+j.width,me=j.top+j.height,$e=j.left,Qe=j.top,pn=De,St=me;p.corner==="bottomLeft"?($e=Math.max(R,Math.min(j.left+y,De-we)),St=Math.min(L,Math.max(me+k,j.top+je))):(pn=Math.min(qe,Math.max(De+y,j.left+we)),St=Math.min(L,Math.max(me+k,j.top+je)));let yo=Math.max(we,pn-$e),xo=Math.max(je,St-Qe),fn={width:yo,height:xo,left:$e,top:Qe};X.current=fn,F.current={x:$e,y:Qe},Ie(fn),oe.current&&(oe.current.style.transform=`translate(${$e}px, ${Qe}px)`)},[J.left,J.right,J.bottom]),ln=z(()=>{let c=vt.current;c.active&&(c.active=!1,ge(!1),Ie(X.current))},[]);if(!e)return h("div",{style:{display:"none"},"aria-hidden":!0,children:n},"hidden");let cn=o?.title||"Dev tool panel",I=ft==="night",dn=en&&I?h("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},"aria-hidden":!0,children:h(Et,{})}):null,un=G("div",{style:{flex:1,minHeight:0,position:"relative",display:"flex",flexDirection:"column",backgroundColor:I?"transparent":B.base,borderBottomLeftRadius:16,borderBottomRightRadius:16,overflow:"hidden",...i.content},children:[en&&!I?h(Et,{}):null,pt?h("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",paddingBottom:Y},children:n}):h("div",{style:{flex:1,minHeight:0,overflowY:"auto",paddingBottom:Y},children:n}),E?h("div",{style:{position:"absolute",left:0,right:0,bottom:0,backgroundColor:B.base,borderBottomLeftRadius:16,borderBottomRightRadius:16},children:E}):null]}),gn=h("div",{style:{position:"absolute",top:4,right:4,zIndex:10},children:h(es,{onClose:t,onMinimize:H?he:void 0,onToggleMode:xt,mode:D})});if(D==="floating"){let c=mt||Pe;return G("div",{ref:oe,role:"dialog","aria-label":cn,style:{position:"fixed",left:0,top:0,width:ne.width,height:ne.height,transform:`translate(${F.current.x}px, ${F.current.y}px)`,display:"flex",flexDirection:"column",backgroundColor:I?d.color.bg:B.card,borderRadius:I?d.radius.sheet:6,border:I?`1px solid ${d.color.accent}55`:c?`2px solid ${B.primary}`:`1px solid ${B.border}`,boxShadow:I?`0 0 14px ${d.color.accent}38`:c?`0 0 12px ${B.primary}7A`:`0 0 20px ${B.primary}4D`,...I?{overflow:"hidden"}:null,boxSizing:"border-box",zIndex:Re??1e3,...i.container},children:[dn,h("div",{onPointerDown:go,onPointerMove:po,onPointerUp:fo,onPointerCancel:ho,style:{borderTopLeftRadius:I?d.radius.sheet:6,borderTopRightRadius:I?d.radius.sheet:6,backgroundColor:I?"transparent":B.card,minHeight:56,border:I?"none":`1px solid ${B.border}`,boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,touchAction:"none",userSelect:"none",cursor:mt?"grabbing":"grab",position:"relative"},children:h(Kn,{header:o,isResizing:mt||Pe,mode:D,onMinimize:H?he:void 0,variant:ft})}),gn,un,["bottomLeft","bottomRight"].map(p=>h("div",{onPointerDown:mo(p),onPointerMove:bo,onPointerUp:ln,onPointerCancel:ln,style:{position:"absolute",width:30,height:30,bottom:4,...p==="bottomLeft"?{left:4}:{right:4},zIndex:1e3,touchAction:"none",cursor:p==="bottomLeft"?"nesw-resize":"nwse-resize"},children:h("div",{style:{width:20,height:20,borderRadius:10,boxSizing:"border-box",backgroundColor:c?`${N.success}1A`:"transparent",border:c?`2px solid ${N.success}`:"none",boxShadow:c?`0 0 8px ${N.success}99`:"none"}})},p))]},"floating")}return h("div",{style:{position:"fixed",inset:0,zIndex:Re??1e3,pointerEvents:"none"},children:h("div",{ref:Ye,style:{position:"absolute",bottom:0,left:0,right:0,pointerEvents:"auto"},children:G("div",{ref:yt,role:"dialog","aria-label":cn,style:{height:pe.current,display:"flex",flexDirection:"column",backgroundColor:I?d.color.bg:B.card,borderTopLeftRadius:I?d.radius.sheet:6,borderTopRightRadius:I?d.radius.sheet:6,border:I?`1px solid ${d.color.accent}55`:`1px solid ${B.border}`,boxShadow:I?`0 -4px 10px ${d.color.accent}38`:`0 -4px 12px ${B.primary}33`,...I?{overflow:"hidden"}:null,boxSizing:"border-box",position:"relative",...i.container},children:[dn,h("div",{onPointerDown:ao,onPointerMove:lo,onPointerUp:co,onPointerCancel:uo,style:{borderTopLeftRadius:I?d.radius.sheet:6,borderTopRightRadius:I?d.radius.sheet:6,backgroundColor:I?"transparent":B.card,minHeight:56,border:I?"none":`1px solid ${B.border}`,boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,touchAction:"none",userSelect:"none",cursor:"ns-resize",position:"relative"},children:h(Kn,{header:o,isResizing:Pe,mode:D,onMinimize:H?he:void 0,variant:ft})}),gn,ro&&oo&&!io&&h(ts,{onAcknowledge:so}),un]})})},"bottomSheet")},os=qt(e=>Ct()().status!=="admitted"?e.visible?h(Ut,{}):null:h(ns,{...e}));import{Children as rs,useEffect as is,useRef as ss}from"react";import{Fragment as bs,jsx as V,jsxs as dt}from"react/jsx-runtime";function as({children:e,style:t}){return V($,{style:[f.sectionLabel,t],children:e})}function ls({children:e,centered:t,tone:n="tertiary",style:o}){let i=ae.flatten(o),r=!!i&&(i.marginHorizontal!=null||i.margin!=null);return V($,{style:[f.footnote,r?null:f.footnoteInset,n==="secondary"?f.footnoteSecondary:null,n==="warning"?f.footnoteWarning:null,n==="danger"?f.footnoteDanger:null,t?f.footnoteCentered:null,o],children:e})}function cs({children:e,padded:t,glass:n,style:o}){return V(T,{style:[f.card,n?f.cardGlass:null,t?f.cardPadded:null,o],children:e})}function Xn({inset:e=d.rowPadH}){return V(T,{style:[f.separator,{marginLeft:e}]})}function ds({children:e,inset:t=d.rowPadH}){let n=rs.toArray(e);return V(bs,{children:n.map((o,i)=>dt(T,{children:[i>0?V(Xn,{inset:t}):null,o]},o.key??i))})}var qn=56,Jn=32,ct=22,Qn=5,us=qn-ct-Qn*2;function gs({value:e,onValueChange:t,disabled:n}){let o=ss(new Ze.Value(e?1:0)).current;return is(()=>{Ze.timing(o,{toValue:e?1:0,duration:200,useNativeDriver:yn.OS!=="web"}).start()},[e,o]),V(Oe,{activeOpacity:.8,disabled:n,onPress:()=>t(!e),accessibilityRole:"switch",accessibilityState:{checked:e,disabled:n},hitSlop:{top:8,bottom:8,left:8,right:8},style:[f.switchTrack,e?f.switchTrackOn:null,n?f.switchDisabled:null],children:V(Ze.View,{style:[f.switchThumb,e?f.switchThumbOn:null,{transform:[{translateX:o.interpolate({inputRange:[0,1],outputRange:[0,us]})}]}]})})}function ps({label:e,selected:t,onPress:n,disabled:o,icon:i,testID:r}){return dt(Oe,{activeOpacity:.7,disabled:o||!n,onPress:n,testID:r,style:[f.chip,t?f.chipSelected:null,o?f.chipDisabled:null],children:[i,V($,{style:[f.chipText,t?f.chipTextSelected:null],children:e})]})}function fs({label:e,onPress:t,variant:n="secondary",size:o="lg",icon:i,disabled:r,fullWidth:s=!0}){let a=n==="primary"?d.color.onAccent:n==="tertiary"?d.color.text:n==="destructive"?d.color.danger:d.color.accent;return dt(Oe,{activeOpacity:.7,disabled:r,onPress:t,style:[f.button,o==="md"?f.buttonMd:f.buttonLg,n==="primary"?f.buttonPrimary:n==="ghost"?f.buttonGhost:f.buttonPlate,s?f.buttonFullWidth:null,r?f.buttonDisabled:null],children:[i,V($,{style:[o==="md"?f.buttonTextMd:f.buttonTextLg,{color:a}],children:e})]})}function hs({tabs:e,activeKey:t,onChange:n,size:o="md",glass:i}){let r=o==="sm";return V(T,{style:[f.segmentTrack,i?f.segmentTrackGlass:null],children:e.map(s=>{let a=s.key===t;return dt(Oe,{activeOpacity:.7,accessibilityRole:"tab",accessibilityState:{selected:a},accessibilityLabel:s.label,onPress:()=>n(s.key),style:[f.segment,r?f.segmentSm:null,a?i?f.segmentActiveGlass:f.segmentActive:null],children:[V($,{style:[f.segmentText,r?f.segmentTextSm:null,a?f.segmentTextActive:null],children:s.label}),a?V(T,{style:[f.segmentUnderline,r?f.segmentUnderlineSm:null]}):null]},s.key)})})}function ms({label:e,tone:t="neutral"}){let n=t==="accent"?f.badgeAccent:t==="warning"?f.badgeWarning:t==="danger"?f.badgeDanger:t==="info"?f.badgeInfo:f.badgeNeutral,o=t==="accent"?f.badgeTextAccent:t==="warning"?f.badgeTextWarning:t==="danger"?f.badgeTextDanger:t==="info"?f.badgeTextInfo:f.badgeTextNeutral;return V(T,{style:[f.badge,n],children:V($,{style:[f.badgeText,o],children:e})})}var f=ae.create({sectionLabel:{color:d.color.textSecondary,fontSize:d.font.label,fontWeight:"600",letterSpacing:kt,textTransform:"uppercase",marginBottom:8,marginLeft:d.labelInset},footnote:{color:d.color.textTertiary,fontSize:d.font.caption,fontWeight:"500",lineHeight:d.font.caption*1.4,marginTop:8},footnoteInset:{marginLeft:d.labelInset},footnoteSecondary:{color:d.color.textSecondary},footnoteWarning:{color:d.color.warning},footnoteDanger:{color:d.color.danger},footnoteCentered:{textAlign:"center",marginLeft:0},card:{backgroundColor:d.color.surface,borderRadius:d.radius.card,borderWidth:1,borderColor:d.color.border,overflow:"hidden"},cardGlass:{backgroundColor:d.color.glass,borderColor:d.color.glassBorder},cardPadded:{padding:d.cardPad,gap:10},separator:{height:ae.hairlineWidth,backgroundColor:d.color.separator},switchTrack:{width:qn,height:Jn,borderRadius:Jn/2,borderWidth:1,borderColor:d.color.fillTertiary,backgroundColor:d.color.surfaceElevated,paddingHorizontal:Qn,justifyContent:"center",overflow:"hidden"},switchTrackOn:{backgroundColor:d.color.accentFill,borderColor:d.color.accentBorderStrong},switchDisabled:{opacity:.4},switchThumb:{width:ct,height:ct,borderRadius:ct/2,backgroundColor:d.color.knob},switchThumbOn:{backgroundColor:d.color.accent},chip:{flexDirection:"row",alignItems:"center",gap:6,paddingHorizontal:14,paddingVertical:9,borderRadius:d.radius.chip,borderWidth:1.5,backgroundColor:d.color.buttonSurface,borderColor:d.color.fillTertiary},chipSelected:{borderColor:d.color.accentBorderStrong},chipDisabled:{opacity:.4},chipText:{fontSize:d.font.body,fontWeight:"500",color:d.color.textSecondary},chipTextSelected:{color:d.color.accent},button:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8},buttonMd:{height:34,paddingHorizontal:16,borderRadius:17},buttonLg:{height:50,paddingHorizontal:20,borderRadius:25},buttonPrimary:{backgroundColor:d.color.accent},buttonPlate:{backgroundColor:d.color.button},buttonGhost:{backgroundColor:"transparent"},buttonFullWidth:{alignSelf:"stretch"},buttonDisabled:{opacity:.4},buttonTextMd:{fontSize:15,fontWeight:"600"},buttonTextLg:{fontSize:17,fontWeight:"600"},segmentTrack:{flex:1,flexDirection:"row",backgroundColor:d.color.bg,borderRadius:d.radius.row,borderWidth:1,borderColor:d.color.border,padding:3},segment:{flex:1,paddingVertical:8,alignItems:"center",justifyContent:"center",borderRadius:d.radius.segment},segmentTrackGlass:{backgroundColor:d.color.glass,borderColor:d.color.glassBorder},segmentActive:{backgroundColor:d.color.surfaceElevated},segmentActiveGlass:{backgroundColor:d.color.glassElevated},segmentText:{fontSize:d.font.caption,fontWeight:"500",color:d.color.textSecondary},segmentTextActive:{fontWeight:"600",color:d.color.text},segmentUnderline:{position:"absolute",bottom:2,width:24,height:2.5,borderRadius:1.25,backgroundColor:d.color.accent,shadowColor:d.color.accent,shadowOffset:{width:0,height:0},shadowOpacity:.6,shadowRadius:6},segmentSm:{paddingVertical:5},segmentTextSm:{fontSize:12},segmentUnderlineSm:{bottom:1.5,width:20,height:2,borderRadius:1},badge:{paddingHorizontal:8,paddingVertical:4,borderRadius:d.radius.badge,alignSelf:"flex-start"},badgeText:{fontSize:d.font.micro,fontWeight:"600",letterSpacing:.5,textTransform:"uppercase"},badgeAccent:{backgroundColor:d.color.accentSoft},badgeTextAccent:{color:d.color.accent},badgeWarning:{backgroundColor:d.color.warningSoft},badgeTextWarning:{color:d.color.warning},badgeDanger:{backgroundColor:d.color.dangerSoft},badgeTextDanger:{color:d.color.danger},badgeInfo:{backgroundColor:d.color.infoSoft},badgeTextInfo:{color:d.color.info},badgeNeutral:{backgroundColor:d.color.fillSecondary},badgeTextNeutral:{color:d.color.textSecondary}});import{jsx as Ce,jsxs as vs}from"react/jsx-runtime";function ut(e){switch(Ne(String(e))){case"dev":return{label:"DEV",backgroundColor:x.warning};case"qa":return{label:"QA",backgroundColor:x.optional};case"staging":return{label:"STAGING",backgroundColor:x.success};case"prod":return{label:"PROD",backgroundColor:x.error};case"local":default:return{label:"LOCAL",backgroundColor:x.info}}}function ys({color:e}){return Ce("svg",{width:12,height:12,viewBox:"0 0 24 24","aria-hidden":"true",children:Ce("path",{d:"M6 9l6 6 6-6",fill:"none",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function xs({environment:e,interactive:t=!1,onPress:n}){let o=ut(e);return vs("button",{onClick:t?n:void 0,"aria-label":`Environment: ${o.label}`,style:{display:"flex",flexDirection:"row",alignItems:"center",padding:`6px ${t?4:8}px 6px 8px`,flexShrink:0,background:"none",border:"none",cursor:t?"pointer":"default"},children:[Ce("div",{style:{width:8,height:8,borderRadius:4,backgroundColor:o.backgroundColor,marginRight:6,boxShadow:`0 0 4px ${o.backgroundColor}99`}}),Ce("span",{style:{fontSize:11,fontWeight:600,color:x.primaryLight,letterSpacing:.5},children:o.label}),t&&Ce("span",{style:{marginLeft:2,display:"flex"},children:Ce(ys,{color:"#7A8599"})})]})}import{jsx as Se,jsxs as Zt}from"react/jsx-runtime";var Ss=140,ws=28,Zn=44,ks=8,Ts=24;function Qt(e){switch(Ne(e)){case"local":return{label:"LOCAL",backgroundColor:x.info};case"dev":return{label:"DEV",backgroundColor:x.warning};case"qa":return{label:"QA",backgroundColor:x.optional};case"staging":return{label:"STAGING",backgroundColor:x.success};case"prod":return{label:"PROD",backgroundColor:x.error};default:return{label:"LOCAL",backgroundColor:x.info}}}function Cs({environment:e,isSelected:t,onPress:n}){let o=Qt(e);return Zt(hn,{onPress:n,style:({pressed:i})=>[se.optionContainer,t&&se.optionContainerSelected,i&&se.optionContainerPressed],children:[Zt(T,{style:se.optionLeft,children:[Se(T,{style:[se.optionDot,{backgroundColor:o.backgroundColor},{shadowColor:o.backgroundColor,shadowOffset:{width:0,height:0},shadowOpacity:.6,shadowRadius:4,elevation:2}]}),Se($,{style:se.optionLabel,children:o.label})]}),t&&Se(xn,{size:14,color:x.success,strokeWidth:3})]})}function Es({hasItems:e,currentEnvironment:t,availableEnvironments:n,onSelect:o,width:i=Ss,collapsedContent:r}){let s=ks+n.length*Zn+Ts+4,a=Zt(T,{style:se.collapsedEnvBadge,children:[Se(T,{style:[se.collapsedDot,{backgroundColor:Qt(t).backgroundColor}]}),Se($,{style:se.collapsedLabel,children:Qt(t).label})]});return Se(Tn,{hasItems:e,width:i,expandedHeight:s,peekHeight:ws,showCount:!1,collapsedContent:r||a,collapsedLabel:`Switch environment from ${t}`,children:n.map(l=>Se(Cs,{environment:l,isSelected:l===t,onPress:()=>o(l)},l))})}var se=ae.create({collapsedEnvBadge:{flexDirection:"row",alignItems:"center",gap:6},collapsedDot:{width:8,height:8,borderRadius:4},collapsedLabel:{fontSize:11,fontWeight:"600",color:x.primaryLight,letterSpacing:.5},optionContainer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,height:Zn,width:"100%"},optionContainerSelected:{backgroundColor:"rgba(128, 128, 128, 0.1)"},optionContainerPressed:{backgroundColor:"rgba(128, 128, 128, 0.2)"},optionLeft:{flexDirection:"row",alignItems:"center",flex:1},optionDot:{width:8,height:8,borderRadius:4,marginRight:10},optionLabel:{fontSize:12,fontWeight:"600",color:x.primaryLight,letterSpacing:.5}});import{useState as eo}from"react";import{jsx as q,jsxs as gt}from"react/jsx-runtime";var to=36;function Rs({color:e,flipped:t}){return q("svg",{width:10,height:10,viewBox:"0 0 24 24","aria-hidden":"true",style:{transform:t?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms ease"},children:q("path",{d:"M18 15l-6-6-6 6",fill:"none",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ps(){return q("svg",{width:12,height:12,viewBox:"0 0 24 24","aria-hidden":"true",children:q("path",{d:"M20 6L9 17l-5-5",fill:"none",stroke:"#4AFF9F",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})}function As({currentEnvironment:e,availableEnvironments:t,onSelect:n}){let[o,i]=eo(!1),[r,s]=eo(null),a=ut(e),l=t.length*to;return gt("div",{style:{position:"relative",zIndex:1e3,flexShrink:0},children:[q("div",{style:{position:"absolute",bottom:"100%",left:0,right:0,height:o?l:0,opacity:o?1:0,overflow:"hidden",transition:"height 200ms ease, opacity 200ms ease",backgroundColor:"rgba(8,12,21,0.95)",border:"1px solid #00B8E666",borderBottomWidth:0,borderTopLeftRadius:6,borderTopRightRadius:6,boxShadow:"0 -4px 8px rgba(0,0,0,0.3)"},children:t.map(u=>{let m=ut(u),w=String(u).toLowerCase()===String(e).toLowerCase();return gt("button",{onClick:()=>{i(!1),n(u)},onMouseEnter:()=>s(String(u)),onMouseLeave:()=>s(null),style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",height:to,padding:"0 10px",background:w?"rgba(128,128,128,0.1)":r===String(u)?"rgba(128,128,128,0.2)":"none",border:"none",cursor:"pointer"},children:[gt("span",{style:{display:"flex",alignItems:"center"},children:[q("span",{style:{width:6,height:6,borderRadius:3,backgroundColor:m.backgroundColor,marginRight:8}}),q("span",{style:{fontSize:10,fontWeight:600,color:x.primaryLight,letterSpacing:.5},children:m.label})]}),w&&q(Ps,{})]},String(u))})}),gt("button",{onClick:()=>i(u=>!u),"aria-expanded":o,"aria-label":`Environment: ${a.label}. Click to switch.`,style:{display:"flex",alignItems:"center",gap:6,padding:"6px 6px 6px 8px",borderRadius:6,borderTopLeftRadius:o?0:6,borderTopRightRadius:o?0:6,backgroundColor:o?"rgba(8,12,21,0.95)":"transparent",border:"none",cursor:"pointer"},children:[q("span",{style:{width:8,height:8,borderRadius:4,backgroundColor:a.backgroundColor,boxShadow:`0 0 4px ${a.backgroundColor}99`}}),q("span",{style:{fontSize:11,fontWeight:600,color:x.primaryLight,letterSpacing:.5},children:a.label}),q(Rs,{color:"#7A8599",flipped:o})]})]})}export{Sp as ARROW_BOTTOM_OFFSET,wp as ARROW_HEIGHT,Kl as ASSETS_ICON_COLOR,Ut as AccountSetup,Wd as ActionCopyButton,oc as Activity,la as ActivityIcon,Qd as AddFilterButton,qd as AddFilterInput,rc as AlertCircle,kl as AlertCircleIcon,sa as AlertOctagon,ic as AlertTriangle,ca as AlertTriangleIcon,hd as AskBuoyIcon,Yl as AssetsIcon,sp as BACKGROUND_PRESETS,up as BACKGROUND_STORAGE_KEY,Sd as BENCHMARK_ICON_COLOR,Td as BackButton,fp as BackgroundSwitcher,tu as Badge,el as BarChart3,tl as BarChart3Icon,At as BaseEventStore,vd as BenchmarkIcon,Xs as BenchmarkLegacyIcon,sc as Bookmark,ac as Box,da as BoxIcon,Oi as BubbleSettingsDetail,$i as BubbleSettingsSection,lc as Bug,xl as BugIcon,Pu as CELLS,yp as CLIP_OFFSCREEN_CELLS,Vl as CONSOLE_ICON_COLOR,Ai as COPY_PAYLOAD_MAX_BYTES,ud as CameraIcon,Mt as ChangeLog,$g as ChangeRow,xn as Check,cc as CheckCircle,Xa as CheckCircle2,Tl as CheckCircle2Icon,ga as CheckCircleIcon,ua as CheckIcon,ra as CheckSquare,Ka as CheckSquareIcon,dc as ChevronDown,pa as ChevronDownIcon,uc as ChevronLeft,fa as ChevronLeftIcon,gc as ChevronRight,ha as ChevronRightIcon,pc as ChevronUp,ma as ChevronUpIcon,jg as ChipStrip,Nd as ClipboardHintBanner,fc as Clock,ba as ClockIcon,nl as Cloud,ol as CloudIcon,bg as CollapsibleSection,eu as CompactFilterChips,du as CompactRow,Ag as CompareBar,Wl as ConsoleIcon,hc as Copy,zd as CopyButton,ya as CopyIcon,ou as CountBadge,Cn as CyberpunkSectionButton,ap as DEFAULT_BACKGROUND,uu as DEVTOOLS_CARD_CONSTANTS,yg as DataInspector,vn as Database,vl as DatabaseIcon,mp as DaylightTunable,ep as DeepFieldTunable,fg as DetailView,Dg as DetailViewToggle,gu as DevToolsCard,Pg as DiffModeTabs,mc as DockBottom,bc as Download,Pl as DownloadIcon,hg as DraggableHeader,vg as DynamicFilterView,_l as ENV_ICON_COLOR,xp as EVENT_LIST_PRESET,yc as Edit3,xa as Edit3Icon,sg as EmptyState,Wg as EntityFilterView,Hl as EnvIcon,Ns as EnvLaptopIcon,xs as EnvironmentIndicator,Es as EnvironmentSelector,As as EnvironmentSelectorInline,Ig as EventHistoryViewer,lu as EventListItem,Lg as EventPickerModal,kg as EventStepperFooter,id as EventsIcon,Tn as ExpandablePopover,Cg as ExpandedInfoRow,Gg as ExportPreview,xc as Eye,va as EyeIcon,Sn as EyeOff,Sa as EyeOffIcon,No as FeatureGate,Qs as FileCode,wa as FileCodeIcon,vc as FileJson,Ll as FileJsonIcon,Sc as FileText,ka as FileTextIcon,wc as Film,rl as FilmIcon,kc as Filter,Xd as FilterBadge,Ta as FilterIcon,Zd as FilterList,Jd as FilterSection,Tc as FlaskConical,Ca as FlaskConicalIcon,Cc as FloatWindow,Ip as FloatingTool,Rp as FloatingToolDivider,Bp as FloatingToolHost,Pp as FloatingToolUserStatus,_g as FooterButton,zg as FooterCaption,Hg as FooterMessage,Ng as FooterRow,Go as FreeAccountPrompt,Od as GAME_UI_ALERT_STATES,Ld as GameUICollapsibleSection,Dd as GameUICompactStats,$d as GameUIIssuesList,Md as GameUIStatusHeader,Ec as GitBranch,Ea as GitBranchIcon,Rc as Globe,Sl as GlobeIcon,mg as GripVerticalIcon,qa as Hand,Dl as HandIcon,Zs as HardDrive,Ra as HardDriveIcon,Pc as Hash,Pa as HashIcon,pu as HeaderSearchButton,aa as HelpCircle,gd as HighlightIcon,Ks as HighlightUpdatesIcon,md as HighlighterIcon,Lo as HintsProvider,Gp as HistoryEntryRow,Yp as HistoryList,_p as HistoryProvider,Ac as Home,ta as HomeIcon,Gl as IMAGES_ICON_COLOR,Ql as IMAGE_OVERLAY_ICON_COLOR,Xl as IMPERSONATE_ICON_COLOR,Bs as IconBackground,Ls as IconCircle,Is as IconContainer,Ds as IconLine,Ms as IconRect,Ic as Image,il as ImageIcon,ql as ImageOverlayIcon,Ul as ImagesIcon,Jl as ImpersonateIcon,Lc as Info,Aa as InfoIcon,Mg as InfoRow,Hd as InlineCopyButton,nc as JOTAI_ICON_COLOR,tc as JotaiIcon,os as JsModal,Mc as Key,Ia as KeyIcon,Uo as LOGIN_COMMAND,vp as LOG_LIST_PRESET,zs as LaptopIcon,Dc as Layers,La as LayersIcon,Do as LicenseEntryModal,Zg as LinearFade,$c as Link,Ml as LinkIcon,Kd as ListItem,ip as LiveSkyTunable,Oc as Lock,Al as LockIcon,rt as LogLevel,rt as LogLevelEnum,it as LogType,it as LogTypeEnum,$u as MAX_PERIOD,ea as Maximize2,Ma as Maximize2Icon,iu as MethodBadge,Bc as Minus,Da as MinusIcon,Ud as ModalHeader,Gd as ModalHintBanner,hp as MoonlightTunable,Nc as Music,sl as MusicIcon,zl as NETWORK_ICON_COLOR,kt as NIGHT_LABEL_TRACKING,kd as NOTIFICATIONS_ICON_COLOR,zc as Navigation,Us as NavigationIcon,Os as NetworkGlobeIcon,Nl as NetworkIcon,ms as NightBadge,fs as NightButton,cs as NightCard,ps as NightChip,ls as NightFootnote,ds as NightRows,as as NightSectionLabel,hs as NightSegmented,Xn as NightSeparator,gs as NightSwitch,ag as NoDataEmptyState,lg as NoResultsEmptyState,cg as NoSearchResultsEmptyState,wd as NotificationsIcon,yu as OTTO_ANCHORS,xu as OTTO_ANCHOR_SIZE,fu as OTTO_GRID,wu as OTTO_GROUPS,vu as OTTO_NOTES,hu as OTTO_PALETTE,Tu as OTTO_REEL,tg as OTTO_SCENES,ng as OTTO_SCENE_BY_ID,og as OTTO_SCENE_CROP_H,Xu as OTTO_SCENE_H,qu as OTTO_SCENE_OTTO,Ku as OTTO_SCENE_PALETTE,Ju as OTTO_SCENE_W,bu as OTTO_STATES,Su as OTTO_STATE_NAMES,ku as OTTO_USES,Yu as Otto,Uu as OttoMotionView,Vu as OttoPixels,rg as OttoSceneFrame,ig as OttoSceneStill,Fu as OttoStill,_n as PREVIEW_ITEM_RENDER_BYTE_LIMIT,Hc as Palette,$a as PaletteIcon,_c as Pause,Oa as PauseIcon,al as Phone,ll as PhoneIcon,Og as Pill,Eg as PillBadge,qs as Pin,Wc as Play,Ba as PlayIcon,Vc as Plus,Na as PlusIcon,Fc as Power,El as PowerIcon,Tg as PowerToggleButton,$s as PrimitiveGlobeIcon,$o as ProBadge,Ho as ProFeatureBanner,Oo as ProUpgradeModal,bd as QueryIcon,Ar as REMOTE_RELOAD_DELAY_MS,Qg as RadialGlow,qg as RasterLayer,Hs as ReactQueryIcon,pd as ReduxIcon,jc as RefreshCw,za as RefreshCwIcon,or as RelativeTime,Js as RenderCountIcon,Ys as RenderPulseIcon,Qa as Route,cd as RouteDotIcon,js as RouteIcon,Fs as RouteMapIcon,ld as RoutePathIcon,ad as RoutePinIcon,dd as RouteTwoPinsIcon,sd as RoutesIcon,kp as SPACING_GAP,yd as ScenariosIcon,Uc as Search,xg as SearchBar,Ha as SearchIcon,Yd as SectionHeader,_s as SentryBugIcon,rd as SentryIcon,st as SentryLogger,Gc as Server,Cl as ServerIcon,wt as Settings,_a as SettingsIcon,Yc as SettingsSolid,Kc as Shield,Wa as ShieldIcon,cl as Smartphone,dl as SmartphoneIcon,oa as Square,ia as SquareDashed,Ja as SquareDashedIcon,Ya as SquareIcon,Gs as StackPulseIcon,Kp as StandaloneHistoryList,cu as StatsCard,nu as StatusBadge,gg as StatusIndicator,fd as StorageIcon,Ws as StorageStackIcon,Ed as StorageTypeBadge,Rt as Subscribable,Yo as TIER_LIMITS,jl as TIME_MACHINE_ICON_COLOR,Du as TRANSPARENT,su as TabSelector,na as TestTube2,Va as TestTube2Icon,er as TickProvider,pg as TimeDisplay,Fl as TimeMachineIcon,ul as Timer,gl as TimerIcon,Vg as ToggleRow,Et as ToolBackground,au as ToolButton,dg as ToolEmptyState,Bg as ToolFooter,Vd as ToolbarClearButton,_d as ToolbarCopyButton,pl as Touchpad,fl as TouchpadIcon,Xc as Trash,Jc as Trash2,Fa as Trash2Icon,$l as TrashIcon,Za as TriangleAlert,Ol as TriangleAlertIcon,ru as TypeBadge,qc as Unlock,Il as UnlockIcon,_o as UpgradeModal,Bo as UpgradePrompt,Qc as Upload,Rl as UploadIcon,Zc as User,Bl as UserIcon,hl as Users,ml as UsersIcon,Cd as ValueTypeBadge,Rg as ViewToggleCards,bl as Volume,yl as VolumeIcon,Lu as WATER_CELLS,Mu as WATER_FRAMES,Au as WATER_ROW0,Iu as WATER_ROWS,Ot as WIRE_DETAIL_LIMIT_BYTES,pi as WIRE_INLINE_LIMIT_BYTES,ed as Wifi,xd as WifiBifIcon,Vs as WifiCircuitIcon,wl as WifiIcon,wg as WindowControls,tp as Wormhole,nd as X,td as XCircle,Ua as XCircleIcon,ja as XIcon,ec as ZUSTAND_ICON_COLOR,od as Zap,Ga as ZapIcon,Zl as ZustandIcon,Ro as absoluteFill,Vt as add,ot as approxJsonSize,be as assertAccountAccess,gp as backgroundStore,$r as browserRouter,U as buoyColors,Ep as calculateTargetPosition,Cp as calculateTooltipPosition,hh as canOpenBuoyTools,hi as capDetail,wi as classifyPreviewItem,Li as clearEntries,Ad as copyToClipboard,Rd as createAutoDetectedClipboard,yi as createRestoreScope,Xf as createSyncAdapter,eh as createToolFactory,ai as createToolStore,zu as cycleIndexes,Ni as definePersistedSetting,Zf as defineToolPreset,Yf as detailByIdAction,Z as devToolsStorageKeys,So as dialColors,$p as dismissFloatingTool,ch as dispatchToolAction,Co as displayValue,xi as emptyRestoreResult,Ci as entityColor,Mn as expandKeyedArrays,vi as failedRestore,ui as findKeyPath,Bu as flatColors,br as flattenObject,Pi as formatBytes,Eh as formatDuration,Dh as formatHttpStatus,Rh as formatNumber,yr as formatPath,Zo as formatRelativeTime,fr as formatValue,Ei as formatValuePreview,x as gameUIColors,ee as getAccountAccess,Pd as getAutoDetectedClipboard,Ap as getBubbleAnchorPosition,Bi as getBubbleVisibilitySettings,vr as getCachedOptionalModule,cr as getConstructorName,Lr as getDevServerOrigin,Jr as getDeviceInfo,Ii as getEntries,Lp as getFloatingTools,$h as getMethodColor,dp as getPreset,zp as getRegisteredToolModule,wr as getRenderCaptureProvider,qo as getSafeAreaInsets,_r as getSafeCurrentPathname,Wr as getSafeCurrentRoute,Hr as getSafeRouter,Tp as getScreenCenterY,np as getSkyScrub,Cr as getStateSnapshotProvider,Tr as getStateSnapshotProviders,Io as getStorageBackendType,_e as getToolAdapters,bh as getToolAttention,Hp as getToolModuleVersion,hr as getTypeColor,Ct as getUseAccountAccess,Wo as getUseIsPro,Vo as getUseLicense,Fo as getUseTier,ur as getValueSize,sr as getValueType,Ou as gridKey,Hn as guardToolAdapter,_ as hasAccountAccess,Dt as identityField,ce as ignoredPatternsStore,Po as isDevToolsStorageKey,dr as isEmpty,Vr as isExpoRouterAvailable,Pt as isJsonSerializable,Vf as isOnDeviceMarker,$t as isOverWireBudget,gr as isPlainObjectUtil,ar as isPrimitive,zn as isToolRegistryReady,An as isUrlIgnored,Ao as isUsingPersistentStorage,lr as isValidJson,ze as listShapes,ah as listSnapshotToolIds,sh as listToolActions,ih as listToolIds,xr as loadOptionalModule,Xr as logDeviceInfo,Be as macOSColors,jf as memoByIdentity,bi as mergeChangeSources,Id as monoFont,Wu as motionUnits,Uf as newestFitting,d as night,jd as noWindowDragProps,Ne as normalizeEnvironment,ke as notifySubscriberCountChange,Wf as onDeviceMarker,fh as openBuoyTool,Dp as openFloatingTool,Nu as ottoCycle,Cu as ottoReel,Ru as ottoRuns,eg as ottoSceneBounds,Zu as ottoSceneRuns,_u as ottoSheets,mu as ottoWaterRows,Eo as parseDisplayValue,On as parsePath,Oh as parseUrl,pr as parseValue,If as patchFromPath,O as persistentStorage,cp as presetAt,lp as presetIndex,mi as readParams,Af as readPath,lh as readToolSnapshot,Hu as rectsOf,vo as refreshGameUIColors,$f as refusalText,Mr as registerBrowserRouter,Op as registerPersistentFloatingTool,kr as registerStateSnapshotProvider,rh as registerToolAdapters,Np as registerToolModules,ph as registerToolOpener,Pr as reloadApp,Eu as renderOttoFrame,Qu as renderOttoScene,jr as resetPersistedStateCache,Ko as resolveEffectiveTier,ug as resolveListEmptyState,Rr as resolveReloadStrategy,jo as retryAccountAccess,wo as safeStringify,Yg as scatter,Ir as scheduleReloadApp,Di as sentryLogger,Sg as setExpandableWindowControls,Sr as setRenderCaptureProvider,op as setSkyScrub,mh as setToolAttention,Ri as shallowDiffSummary,nt as shapeKind,tt as shapeOf,Cf as shapeSummary,kf as shapesWereTruncated,Gf as sizeOrStub,Ug as sizeWarningLevel,Si as skippedRestore,le as subscribeAccountAccess,Dr as subscribeBrowserNavigation,Mp as subscribeFloatingTools,Er as subscribeToStateSnapshotProviders,ir as subscribeToSubscriberCountChanges,yh as subscribeToolAttention,rr as subscriberCountNotifier,Df as suggestedPatch,To as superJsonDeserialize,ko as superJsonSerialize,Ff as toWire,bp as toolTheme,Ah as truncateMiddle,Ph as truncatePayload,mr as truncateText,fi as truncatedNote,Nn as typedEditViolations,Ti as unionKeys,Tf as unshapedLists,It as urlMatchesIgnoredPattern,jp as useAllHistoryEntries,Ur as useChangeLog,Fg as useChipTap,Kr as useDeviceInfo,Yr as useEventStoreEvents,zo as useFeatureGate,Xo as useFilterManager,Bd as useGameUIAlertState,Mo as useHintsContext,Tt as useHintsDisabled,Fp as useHistoryAdapter,Vp as useHistoryAdapters,Wp as useHistoryContext,Up as useHistoryEntryCounts,ii as useIgnoredPatterns,Jo as useLimit,Jg as useLoop,Gu as useOttoAnchorMotion,ju as useOttoReel,Fr as usePersistedState,Xg as usePulse,nr as useRelativeTime,Qo as useSafeAreaInsets,zr as useSafeGlobalSearchParams,Br as useSafePathname,Or as useSafeRouter,Nr as useSafeSegments,rp as useSkyScrub,Gr as useSubscribedValue,tr as useTick,pp as useToolBackground,dh as waitForToolRegistry,Fd as windowDragProps,Kg as withBgAlpha,ki as wontApply};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{$,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a,aa,b,ba,c,ca,d,da,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunks/chunk-3UTMGIUG.mjs";import"./chunks/chunk-5NZOQR6Q.mjs";export{q as AccessibilityInfo,k as ActivityIndicator,n as Alert,r as Animated,t as AppRegistry,u as AppState,s as Appearance,v as BackHandler,l as Button,M as CheckBox,w as Clipboard,aa as DeviceEventEmitter,x as Dimensions,y as Easing,N as FlatList,z as I18nManager,O as Image,P as ImageBackground,B as InteractionManager,A as Keyboard,Q as KeyboardAvoidingView,C as LayoutAnimation,D as Linking,$ as LogBox,i as Modal,E as NativeEventEmitter,p as NativeModules,F as PanResponder,R as Picker,G as PixelRatio,H as Platform,g as Pressable,S as ProgressBar,T as RefreshControl,U as SafeAreaView,h as ScrollView,V as SectionList,I as Share,W as StatusBar,J as StyleSheet,j as Switch,b as Text,c as TextInput,X as Touchable,e as TouchableHighlight,Y as TouchableNativeFeedback,d as TouchableOpacity,f as TouchableWithoutFeedback,K as UIManager,L as Vibration,a as View,Z as VirtualizedList,_ as YellowBox,m as findNodeHandle,o as unstable_createElement,ba as useColorScheme,ca as useLocaleContext,da as useWindowDimensions};
package/lib/web/ui.mjs ADDED
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{$ as I,$a as Ja,$b as Eb,Aa as ia,Ab as ib,Ba as ja,Bb as jb,Ca as ka,Cb as kb,Da as la,Db as lb,Ea as ma,Fa as na,Ga as oa,Ha as pa,I as p,Ia as qa,J as q,Ja as ra,Jb as mb,K as r,Ka as sa,Kb as nb,L as s,La as ta,Lb as ob,M as t,Ma as ua,Mb as pb,N as u,Na as va,Nb as qb,O as v,Oa as wa,Ob as rb,P as w,Pa as xa,Pb as sb,Q as x,Qa as ya,Qb as tb,R as y,Ra as za,Rb as ub,S as z,Sa as Aa,Sb as vb,T as A,Ta as Ba,Tb as wb,U as B,Ua as Ca,Ub as xb,V as C,Va as Da,Vb as yb,W as D,Wa as Ea,Wb as zb,X as E,Xa as Fa,Xb as Ab,Y as F,Ya as Ga,Yb as Bb,Z as G,Za as Ha,Zb as Cb,_ as H,_a as Ia,_b as Db,a as e,aa as J,ab as Ka,ac as Fb,b as f,ba as K,bb as La,bc as Gb,c as g,ca as L,cb as Ma,cc as Hb,da as M,db as Na,dc as Ib,ea as N,eb as Oa,ec as Jb,fa as O,fb as Pa,fc as Kb,g as o,ga as Q,gb as Qa,gc as Lb,ha as R,hb as Ra,hc as Mb,ia as S,ib as Sa,ic as Nb,ja as T,jb as Ta,jc as Ob,ka as U,kb as Ua,kc as Pb,la as V,lb as Va,lc as Qb,ma as W,mb as Wa,mc as Rb,na as X,nb as Xa,nc as Sb,oa as Y,ob as Ya,oc as Tb,pa as Z,pb as Za,pc as Ub,qa as _,qb as _a,qc as Vb,ra as $,rb as $a,rc as Wb,sa as aa,sb as ab,sc as Xb,ta as ba,tb as bb,tc as Yb,ua as ca,ub as cb,uc as Zb,va as da,vb as db,vc as _b,wa as ea,wb as eb,wc as $b,xa as fa,xb as fb,xc as ac,ya as ga,yb as gb,za as ha,zb as hb}from"./chunks/chunk-VE72SWLV.mjs";import{a as P}from"./chunks/chunk-FMEWNGQO.mjs";import{a as bc,b as cc,c as dc,d as ec,e as fc,f as gc,g as hc,h as ic,i as jc,j as kc,k as lc,l as mc,m as nc,n as oc,o as pc,p as qc}from"./chunks/chunk-XYUAUO57.mjs";import"./chunks/chunk-GF5C5DVX.mjs";import"./chunks/chunk-K7CGIEFU.mjs";import{f as i,h as j,i as k,j as l,k as m,l as n}from"./chunks/chunk-KHP6CSSM.mjs";import{md as h}from"./chunks/chunk-AIEOQWNG.mjs";import{a,d as b,f as c,g as d}from"./chunks/chunk-CE5U3CSQ.mjs";import"./chunks/chunk-PTK5FO6C.mjs";import"./chunks/chunk-GBUZCZE4.mjs";import"./chunks/chunk-3UTMGIUG.mjs";import"./chunks/chunk-5NZOQR6Q.mjs";export{bc as ARROW_BOTTOM_OFFSET,cc as ARROW_HEIGHT,s as ActionCopyButton,D as AddFilterButton,C as AddFilterInput,Mb as BACKGROUND_PRESETS,Rb as BACKGROUND_STORAGE_KEY,e as BackButton,Vb as BackgroundSwitcher,G as Badge,fa as CELLS,_b as CLIP_OFFSCREEN_CELLS,mb as ChangeRow,wb as ChipStrip,o as ClipboardHintBanner,Wa as CollapsibleSection,F as CompactFilterChips,P as CompactRow,hb as CompareBar,p as CopyButton,I as CountBadge,Zb as CyberpunkSectionButton,Nb as DEFAULT_BACKGROUND,Q as DEVTOOLS_CARD_CONSTANTS,Xa as DataInspector,Xb as DaylightTunable,Gb as DeepFieldTunable,Ta as DetailView,lb as DetailViewToggle,R as DevToolsCard,gb as DiffModeTabs,Ua as DraggableHeader,Za as DynamicFilterView,$b as EVENT_LIST_PRESET,La as EmptyState,tb as EntityFilterView,ib as EventHistoryViewer,N as EventListItem,jb as EventPickerModal,ab as EventStepperFooter,bb as ExpandablePopover,db as ExpandedInfoRow,yb as ExportPreview,B as FilterBadge,E as FilterList,A as FilterSection,kc as FloatingTool,hc as FloatingToolDivider,qc as FloatingToolHost,ic as FloatingToolUserStatus,sb as FooterButton,qb as FooterCaption,rb as FooterMessage,pb as FooterRow,m as GAME_UI_ALERT_STATES,i as GameUICollapsibleSection,k as GameUICompactStats,l as GameUIIssuesList,j as GameUIStatusHeader,Va as GripVerticalIcon,S as HeaderSearchButton,kb as InfoRow,q as InlineCopyButton,ac as LOG_LIST_PRESET,Fb as LinearFade,z as ListItem,Lb as LiveSkyTunable,la as MAX_PERIOD,K as MethodBadge,w as ModalHeader,x as ModalHintBanner,Wb as MoonlightTunable,Ma as NoDataEmptyState,Na as NoResultsEmptyState,Oa as NoSearchResultsEmptyState,X as OTTO_ANCHORS,Y as OTTO_ANCHOR_SIZE,T as OTTO_GRID,$ as OTTO_GROUPS,Z as OTTO_NOTES,U as OTTO_PALETTE,ba as OTTO_REEL,Ga as OTTO_SCENES,Ha as OTTO_SCENE_BY_ID,Ia as OTTO_SCENE_CROP_H,Ba as OTTO_SCENE_H,Ca as OTTO_SCENE_OTTO,za as OTTO_SCENE_PALETTE,Aa as OTTO_SCENE_W,W as OTTO_STATES,_ as OTTO_STATE_NAMES,aa as OTTO_USES,ya as Otto,wa as OttoMotionView,ta as OttoPixels,Ja as OttoSceneFrame,Ka as OttoSceneStill,ua as OttoStill,nb as Pill,eb as PillBadge,cb as PowerToggleButton,Eb as RadialGlow,Db as RasterLayer,dc as SPACING_GAP,Ya as SearchBar,y as SectionHeader,O as StatsCard,H as StatusBadge,Ra as StatusIndicator,g as StorageTypeBadge,ka as TRANSPARENT,L as TabSelector,Sa as TimeDisplay,ub as ToggleRow,Ub as ToolBackground,M as ToolButton,Pa as ToolEmptyState,ob as ToolFooter,t as ToolbarClearButton,r as ToolbarCopyButton,J as TypeBadge,f as ValueTypeBadge,fb as ViewToggleCards,ia as WATER_CELLS,ja as WATER_FRAMES,ga as WATER_ROW0,ha as WATER_ROWS,$a as WindowControls,Hb as Wormhole,Sb as backgroundStore,c as buoyColors,gc as calculateTargetPosition,fc as calculateTooltipPosition,pa as cycleIndexes,d as dialColors,oc as dismissFloatingTool,na as flatColors,b as gameUIColors,jc as getBubbleAnchorPosition,lc as getFloatingTools,Qb as getPreset,ec as getScreenCenterY,Ib as getSkyScrub,ma as gridKey,a as macOSColors,h as monoFont,sa as motionUnits,v as noWindowDragProps,nc as openFloatingTool,oa as ottoCycle,ca as ottoReel,ea as ottoRuns,Fa as ottoSceneBounds,Ea as ottoSceneRuns,ra as ottoSheets,V as ottoWaterRows,Pb as presetAt,Ob as presetIndex,qa as rectsOf,pc as registerPersistentFloatingTool,da as renderOttoFrame,Da as renderOttoScene,Qa as resolveListEmptyState,zb as scatter,_a as setExpandableWindowControls,Jb as setSkyScrub,xb as sizeWarningLevel,mc as subscribeFloatingTools,Yb as toolTheme,vb as useChipTap,n as useGameUIAlertState,Bb as useLoop,xa as useOttoAnchorMotion,va as useOttoReel,Cb as usePulse,Kb as useSkyScrub,Tb as useToolBackground,u as windowDragProps,Ab as withBgAlpha};