react-native-inapp-inspector 2.3.18 → 2.3.20

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 (358) hide show
  1. package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +57 -0
  2. package/dist/commonjs/analytics.js +1 -24
  3. package/dist/commonjs/bundle.js +1 -16
  4. package/dist/commonjs/capture.d.ts +2 -0
  5. package/dist/commonjs/capture.js +1 -32
  6. package/dist/commonjs/components/AnalyticsDetail.js +92 -623
  7. package/dist/commonjs/components/AnalyticsEventCard.js +54 -350
  8. package/dist/commonjs/components/AnalyticsGraph.js +70 -370
  9. package/dist/commonjs/components/AnimatedEntrance.js +1 -11
  10. package/dist/commonjs/components/AppHeaderLogo.js +7 -134
  11. package/dist/commonjs/components/BrandCircleIcon.js +73 -118
  12. package/dist/commonjs/components/BrandSquareIcon.js +63 -108
  13. package/dist/commonjs/components/CodeSnippet.js +48 -623
  14. package/dist/commonjs/components/ConsoleLogCard.js +63 -537
  15. package/dist/commonjs/components/CopyButton.js +3 -89
  16. package/dist/commonjs/components/DiffViewer.js +19 -83
  17. package/dist/commonjs/components/DomainHeader.js +27 -127
  18. package/dist/commonjs/components/EmptyState.d.ts +1 -0
  19. package/dist/commonjs/components/EmptyState.js +10 -87
  20. package/dist/commonjs/components/EndOfListFooter.js +7 -81
  21. package/dist/commonjs/components/ErrorBoundary.js +72 -566
  22. package/dist/commonjs/components/HeadersSection.js +31 -110
  23. package/dist/commonjs/components/HighlightText.js +17 -58
  24. package/dist/commonjs/components/Inspector/AboutModal.d.ts +6 -0
  25. package/dist/commonjs/components/Inspector/AboutModal.js +351 -0
  26. package/dist/commonjs/components/Inspector/AnalyticsFilterModal.js +98 -797
  27. package/dist/commonjs/components/Inspector/AnalyticsTab.js +284 -930
  28. package/dist/commonjs/components/Inspector/BundleTab.js +551 -2918
  29. package/dist/commonjs/components/Inspector/ConsoleTab.js +79 -492
  30. package/dist/commonjs/components/Inspector/CrashDetail.js +123 -672
  31. package/dist/commonjs/components/Inspector/CrashFilterModal.js +66 -498
  32. package/dist/commonjs/components/Inspector/CrashTab.js +98 -670
  33. package/dist/commonjs/components/Inspector/DebuggingTab.js +64 -871
  34. package/dist/commonjs/components/Inspector/DeviceInfoTab.js +143 -907
  35. package/dist/commonjs/components/Inspector/FabLauncher.js +85 -54
  36. package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +6 -99
  37. package/dist/commonjs/components/Inspector/FeedbackModal.d.ts +9 -0
  38. package/dist/commonjs/components/Inspector/FeedbackModal.js +167 -521
  39. package/dist/commonjs/components/Inspector/InspectorContext.js +1 -21
  40. package/dist/commonjs/components/Inspector/InspectorHeader.js +219 -1093
  41. package/dist/commonjs/components/Inspector/LogDetail.js +168 -994
  42. package/dist/commonjs/components/Inspector/MainScreen.js +60 -332
  43. package/dist/commonjs/components/Inspector/MediaGalleryTab.js +136 -278
  44. package/dist/commonjs/components/Inspector/MediaPreviewModal.js +134 -361
  45. package/dist/commonjs/components/Inspector/NavigationTracker.js +1 -12
  46. package/dist/commonjs/components/Inspector/NetworkDetail.js +96 -432
  47. package/dist/commonjs/components/Inspector/NetworkFilterModal.js +60 -576
  48. package/dist/commonjs/components/Inspector/NetworkTab.js +84 -514
  49. package/dist/commonjs/components/Inspector/NpmStarPrompt.js +17 -433
  50. package/dist/commonjs/components/Inspector/NpmUpdateToast.js +25 -298
  51. package/dist/commonjs/components/Inspector/PerformanceTab.js +182 -1397
  52. package/dist/commonjs/components/Inspector/ReduxDetail.js +188 -1089
  53. package/dist/commonjs/components/Inspector/ReduxTab.js +85 -701
  54. package/dist/commonjs/components/Inspector/SettingsPanel.js +431 -3431
  55. package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +11 -180
  56. package/dist/commonjs/components/Inspector/StorageTab.js +93 -826
  57. package/dist/commonjs/components/Inspector/TabBar.js +47 -183
  58. package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +34 -408
  59. package/dist/commonjs/components/JsonViewer.js +168 -380
  60. package/dist/commonjs/components/LogCard.js +57 -567
  61. package/dist/commonjs/components/LogSyntaxHighlighter.js +11 -130
  62. package/dist/commonjs/components/MetaAccordion.js +69 -238
  63. package/dist/commonjs/components/MiniBarChart.js +3 -56
  64. package/dist/commonjs/components/MiniLineChart.js +3 -58
  65. package/dist/commonjs/components/NetworkIcons.d.ts +7 -0
  66. package/dist/commonjs/components/NetworkIcons.js +479 -997
  67. package/dist/commonjs/components/QRCodeView.js +5 -79
  68. package/dist/commonjs/components/SectionHeader.js +15 -37
  69. package/dist/commonjs/components/SegmentedTabs.js +7 -61
  70. package/dist/commonjs/components/SkeletonPlaceholder.js +11 -180
  71. package/dist/commonjs/components/Slider.js +15 -243
  72. package/dist/commonjs/components/SourcePageCard.js +30 -89
  73. package/dist/commonjs/components/Toast.js +5 -147
  74. package/dist/commonjs/components/TouchableScale.js +3 -24
  75. package/dist/commonjs/components/TreeNode.js +55 -130
  76. package/dist/commonjs/console.js +1 -16
  77. package/dist/commonjs/constants/index.js +1 -32
  78. package/dist/commonjs/constants/telemetryConfig.js +1 -6
  79. package/dist/commonjs/constants/version.d.ts +1 -1
  80. package/dist/commonjs/constants/version.js +1 -4
  81. package/dist/commonjs/crash.js +1 -23
  82. package/dist/commonjs/customHooks/analyticsLogger.js +1 -250
  83. package/dist/commonjs/customHooks/bundleAnalyzer.js +1 -957
  84. package/dist/commonjs/customHooks/consoleLogger.js +6 -445
  85. package/dist/commonjs/customHooks/crashHandler.js +7 -656
  86. package/dist/commonjs/customHooks/logFilters.js +1 -23
  87. package/dist/commonjs/customHooks/networkLogger.js +2 -536
  88. package/dist/commonjs/customHooks/performanceTracker.js +63 -750
  89. package/dist/commonjs/customHooks/reduxLogger.js +2 -313
  90. package/dist/commonjs/customHooks/storageInspector.js +1 -435
  91. package/dist/commonjs/customHooks/useAccordion.js +1 -18
  92. package/dist/commonjs/decorators/index.js +1 -100
  93. package/dist/commonjs/helpers/gaAnalyticsRegistry.js +1 -148
  94. package/dist/commonjs/helpers/index.js +8 -921
  95. package/dist/commonjs/helpers/memoryManager.js +1 -99
  96. package/dist/commonjs/helpers/qrGenerator.js +1 -367
  97. package/dist/commonjs/helpers/remoteConfig.js +1 -165
  98. package/dist/commonjs/helpers/searchQueryParser.js +1 -62
  99. package/dist/commonjs/helpers/settingsStore.js +1 -144
  100. package/dist/commonjs/helpers/telemetry.js +1 -501
  101. package/dist/commonjs/helpers/toast.js +1 -20
  102. package/dist/commonjs/i18n/index.js +1 -90
  103. package/dist/commonjs/i18n/locales/en.json +1 -1122
  104. package/dist/commonjs/index.js +5 -2153
  105. package/dist/commonjs/metro.js +6 -468
  106. package/dist/commonjs/native/NativeInspector.d.ts +3 -0
  107. package/dist/commonjs/native/NativeInspector.js +1 -402
  108. package/dist/commonjs/native/NativeNetworkInspector.d.ts +1 -0
  109. package/dist/commonjs/native/NativeNetworkInspector.js +1 -4
  110. package/dist/commonjs/network.js +1 -13
  111. package/dist/commonjs/performance.js +1 -29
  112. package/dist/commonjs/redux.js +1 -20
  113. package/dist/commonjs/storage.js +1 -14
  114. package/dist/commonjs/styles/AppColors.js +1 -423
  115. package/dist/commonjs/styles/AppFonts.js +1 -17
  116. package/dist/commonjs/styles/common.js +1 -190
  117. package/dist/commonjs/styles/index.d.ts +6 -0
  118. package/dist/commonjs/styles/index.js +1 -1589
  119. package/dist/commonjs/types/enums.d.ts +2 -1
  120. package/dist/commonjs/types/enums.js +1 -150
  121. package/dist/commonjs/types/index.js +1 -18
  122. package/dist/commonjs/types/interfaces.d.ts +7 -0
  123. package/dist/commonjs/types/interfaces.js +1 -2
  124. package/dist/esm/analytics.js +1 -2
  125. package/dist/esm/bundle.js +1 -2
  126. package/dist/esm/capture.d.ts +2 -0
  127. package/dist/esm/capture.js +1 -29
  128. package/dist/esm/components/AnalyticsDetail.js +171 -664
  129. package/dist/esm/components/AnalyticsEventCard.js +77 -335
  130. package/dist/esm/components/AnalyticsGraph.js +95 -357
  131. package/dist/esm/components/AnimatedEntrance.js +1 -6
  132. package/dist/esm/components/AppHeaderLogo.js +7 -94
  133. package/dist/esm/components/BrandCircleIcon.js +114 -119
  134. package/dist/esm/components/BrandSquareIcon.js +73 -78
  135. package/dist/esm/components/CodeSnippet.js +58 -595
  136. package/dist/esm/components/ConsoleLogCard.js +91 -526
  137. package/dist/esm/components/CopyButton.js +3 -51
  138. package/dist/esm/components/DiffViewer.js +22 -48
  139. package/dist/esm/components/DomainHeader.js +43 -138
  140. package/dist/esm/components/EmptyState.d.ts +1 -0
  141. package/dist/esm/components/EmptyState.js +17 -56
  142. package/dist/esm/components/EndOfListFooter.js +15 -83
  143. package/dist/esm/components/ErrorBoundary.js +125 -582
  144. package/dist/esm/components/HeadersSection.js +52 -93
  145. package/dist/esm/components/HighlightText.js +17 -53
  146. package/dist/esm/components/Inspector/AboutModal.d.ts +6 -0
  147. package/dist/esm/components/Inspector/AboutModal.js +351 -0
  148. package/dist/esm/components/Inspector/AnalyticsFilterModal.js +225 -886
  149. package/dist/esm/components/Inspector/AnalyticsTab.js +296 -904
  150. package/dist/esm/components/Inspector/BundleTab.js +1175 -3502
  151. package/dist/esm/components/Inspector/ConsoleTab.js +113 -488
  152. package/dist/esm/components/Inspector/CrashDetail.js +236 -747
  153. package/dist/esm/components/Inspector/CrashFilterModal.js +149 -541
  154. package/dist/esm/components/Inspector/CrashTab.js +177 -711
  155. package/dist/esm/components/Inspector/DebuggingTab.js +156 -923
  156. package/dist/esm/components/Inspector/DeviceInfoTab.js +199 -924
  157. package/dist/esm/components/Inspector/FabLauncher.js +85 -49
  158. package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +14 -70
  159. package/dist/esm/components/Inspector/FeedbackModal.d.ts +9 -0
  160. package/dist/esm/components/Inspector/FeedbackModal.js +182 -499
  161. package/dist/esm/components/Inspector/InspectorContext.js +1 -12
  162. package/dist/esm/components/Inspector/InspectorHeader.js +309 -1145
  163. package/dist/esm/components/Inspector/LogDetail.js +235 -1023
  164. package/dist/esm/components/Inspector/MainScreen.js +86 -320
  165. package/dist/esm/components/Inspector/MediaGalleryTab.js +157 -259
  166. package/dist/esm/components/Inspector/MediaPreviewModal.js +153 -340
  167. package/dist/esm/components/Inspector/NavigationTracker.js +1 -10
  168. package/dist/esm/components/Inspector/NetworkDetail.js +141 -472
  169. package/dist/esm/components/Inspector/NetworkFilterModal.js +122 -597
  170. package/dist/esm/components/Inspector/NetworkTab.js +125 -517
  171. package/dist/esm/components/Inspector/NpmStarPrompt.js +58 -434
  172. package/dist/esm/components/Inspector/NpmUpdateToast.js +45 -281
  173. package/dist/esm/components/Inspector/PerformanceTab.js +393 -1570
  174. package/dist/esm/components/Inspector/ReduxDetail.js +307 -1170
  175. package/dist/esm/components/Inspector/ReduxTab.js +144 -722
  176. package/dist/esm/components/Inspector/SettingsPanel.js +647 -3609
  177. package/dist/esm/components/Inspector/SkeletonPlaceholder.js +30 -163
  178. package/dist/esm/components/Inspector/StorageTab.js +172 -866
  179. package/dist/esm/components/Inspector/TabBar.js +52 -183
  180. package/dist/esm/components/Inspector/UpdateAvailableModal.js +79 -416
  181. package/dist/esm/components/JsonViewer.js +179 -353
  182. package/dist/esm/components/LogCard.js +93 -565
  183. package/dist/esm/components/LogSyntaxHighlighter.js +11 -123
  184. package/dist/esm/components/MetaAccordion.js +136 -267
  185. package/dist/esm/components/MiniBarChart.js +3 -18
  186. package/dist/esm/components/MiniLineChart.js +3 -20
  187. package/dist/esm/components/NetworkIcons.d.ts +7 -0
  188. package/dist/esm/components/NetworkIcons.js +481 -817
  189. package/dist/esm/components/QRCodeView.js +8 -45
  190. package/dist/esm/components/SectionHeader.js +22 -39
  191. package/dist/esm/components/SegmentedTabs.js +8 -57
  192. package/dist/esm/components/SkeletonPlaceholder.js +30 -163
  193. package/dist/esm/components/Slider.js +24 -213
  194. package/dist/esm/components/SourcePageCard.js +65 -86
  195. package/dist/esm/components/Toast.js +10 -117
  196. package/dist/esm/components/TouchableScale.js +3 -19
  197. package/dist/esm/components/TreeNode.js +58 -95
  198. package/dist/esm/console.js +1 -2
  199. package/dist/esm/constants/index.js +1 -28
  200. package/dist/esm/constants/telemetryConfig.js +1 -3
  201. package/dist/esm/constants/version.d.ts +1 -1
  202. package/dist/esm/constants/version.js +1 -1
  203. package/dist/esm/crash.js +1 -2
  204. package/dist/esm/customHooks/analyticsLogger.js +1 -230
  205. package/dist/esm/customHooks/bundleAnalyzer.js +1 -944
  206. package/dist/esm/customHooks/consoleLogger.js +6 -432
  207. package/dist/esm/customHooks/crashHandler.js +7 -630
  208. package/dist/esm/customHooks/logFilters.js +1 -20
  209. package/dist/esm/customHooks/networkLogger.js +2 -519
  210. package/dist/esm/customHooks/performanceTracker.js +63 -723
  211. package/dist/esm/customHooks/reduxLogger.js +2 -293
  212. package/dist/esm/customHooks/storageInspector.js +1 -418
  213. package/dist/esm/customHooks/useAccordion.js +1 -16
  214. package/dist/esm/decorators/index.js +1 -95
  215. package/dist/esm/helpers/gaAnalyticsRegistry.js +1 -143
  216. package/dist/esm/helpers/index.js +8 -861
  217. package/dist/esm/helpers/memoryManager.js +1 -91
  218. package/dist/esm/helpers/qrGenerator.js +1 -364
  219. package/dist/esm/helpers/remoteConfig.js +1 -160
  220. package/dist/esm/helpers/searchQueryParser.js +1 -59
  221. package/dist/esm/helpers/settingsStore.js +1 -134
  222. package/dist/esm/helpers/telemetry.js +1 -489
  223. package/dist/esm/helpers/toast.js +1 -15
  224. package/dist/esm/i18n/index.js +1 -78
  225. package/dist/esm/i18n/locales/en.json +1 -1122
  226. package/dist/esm/index.js +7 -1967
  227. package/dist/esm/metro.js +6 -459
  228. package/dist/esm/native/NativeInspector.d.ts +3 -0
  229. package/dist/esm/native/NativeInspector.js +1 -370
  230. package/dist/esm/native/NativeNetworkInspector.d.ts +1 -0
  231. package/dist/esm/native/NativeNetworkInspector.js +1 -2
  232. package/dist/esm/network.js +1 -1
  233. package/dist/esm/performance.js +1 -2
  234. package/dist/esm/redux.js +1 -1
  235. package/dist/esm/storage.js +1 -1
  236. package/dist/esm/styles/AppColors.js +1 -417
  237. package/dist/esm/styles/AppFonts.js +1 -13
  238. package/dist/esm/styles/common.js +1 -186
  239. package/dist/esm/styles/index.d.ts +6 -0
  240. package/dist/esm/styles/index.js +1 -1551
  241. package/dist/esm/types/enums.d.ts +2 -1
  242. package/dist/esm/types/enums.js +1 -147
  243. package/dist/esm/types/index.js +1 -2
  244. package/dist/esm/types/interfaces.d.ts +7 -0
  245. package/dist/esm/types/interfaces.js +1 -1
  246. package/ios/NetworkInspectorModule.mm +253 -136
  247. package/package.json +5 -3
  248. package/react-native-inapp-inspector.podspec +1 -1
  249. package/src/native/NativeInspector.ts +17 -0
  250. package/src/native/NativeNetworkInspector.ts +1 -0
  251. package/src/analytics.ts +0 -35
  252. package/src/bundle.ts +0 -25
  253. package/src/capture.ts +0 -101
  254. package/src/components/AnalyticsDetail.tsx +0 -870
  255. package/src/components/AnalyticsEventCard.tsx +0 -444
  256. package/src/components/AnalyticsGraph.tsx +0 -583
  257. package/src/components/AnimatedEntrance.tsx +0 -20
  258. package/src/components/AppHeaderLogo.tsx +0 -143
  259. package/src/components/BrandCircleIcon.tsx +0 -144
  260. package/src/components/BrandSquareIcon.tsx +0 -184
  261. package/src/components/CodeSnippet.tsx +0 -725
  262. package/src/components/ConsoleLogCard.tsx +0 -679
  263. package/src/components/CopyButton.tsx +0 -87
  264. package/src/components/DiffViewer.tsx +0 -82
  265. package/src/components/DomainHeader.tsx +0 -224
  266. package/src/components/EmptyState.tsx +0 -95
  267. package/src/components/EndOfListFooter.tsx +0 -100
  268. package/src/components/ErrorBoundary.tsx +0 -688
  269. package/src/components/HeadersSection.tsx +0 -172
  270. package/src/components/HighlightText.tsx +0 -100
  271. package/src/components/Inspector/AnalyticsFilterModal.tsx +0 -1250
  272. package/src/components/Inspector/AnalyticsTab.tsx +0 -1362
  273. package/src/components/Inspector/BundleTab.tsx +0 -4768
  274. package/src/components/Inspector/ConsoleTab.tsx +0 -726
  275. package/src/components/Inspector/CrashDetail.tsx +0 -997
  276. package/src/components/Inspector/CrashFilterModal.tsx +0 -721
  277. package/src/components/Inspector/CrashTab.tsx +0 -933
  278. package/src/components/Inspector/DebuggingTab.tsx +0 -1103
  279. package/src/components/Inspector/DeviceInfoTab.tsx +0 -1397
  280. package/src/components/Inspector/FabLauncher.tsx +0 -80
  281. package/src/components/Inspector/FeatureUnderDevNotice.tsx +0 -94
  282. package/src/components/Inspector/FeedbackModal.tsx +0 -626
  283. package/src/components/Inspector/InspectorContext.tsx +0 -28
  284. package/src/components/Inspector/InspectorHeader.tsx +0 -1545
  285. package/src/components/Inspector/LogDetail.tsx +0 -1431
  286. package/src/components/Inspector/MainScreen.tsx +0 -459
  287. package/src/components/Inspector/MediaGalleryTab.tsx +0 -355
  288. package/src/components/Inspector/MediaPreviewModal.tsx +0 -435
  289. package/src/components/Inspector/NavigationTracker.tsx +0 -13
  290. package/src/components/Inspector/NetworkDetail.tsx +0 -795
  291. package/src/components/Inspector/NetworkFilterModal.tsx +0 -730
  292. package/src/components/Inspector/NetworkTab.tsx +0 -820
  293. package/src/components/Inspector/NpmStarPrompt.tsx +0 -532
  294. package/src/components/Inspector/NpmUpdateToast.tsx +0 -387
  295. package/src/components/Inspector/PerformanceTab.tsx +0 -1967
  296. package/src/components/Inspector/ReduxDetail.tsx +0 -1651
  297. package/src/components/Inspector/ReduxTab.tsx +0 -987
  298. package/src/components/Inspector/SettingsPanel.tsx +0 -4580
  299. package/src/components/Inspector/SkeletonPlaceholder.tsx +0 -206
  300. package/src/components/Inspector/StorageTab.tsx +0 -1159
  301. package/src/components/Inspector/TabBar.tsx +0 -263
  302. package/src/components/Inspector/UpdateAvailableModal.tsx +0 -555
  303. package/src/components/JsonViewer.tsx +0 -547
  304. package/src/components/LogCard.tsx +0 -694
  305. package/src/components/LogSyntaxHighlighter.tsx +0 -178
  306. package/src/components/MetaAccordion.tsx +0 -355
  307. package/src/components/MiniBarChart.tsx +0 -42
  308. package/src/components/MiniLineChart.tsx +0 -33
  309. package/src/components/NetworkIcons.tsx +0 -2599
  310. package/src/components/QRCodeView.tsx +0 -75
  311. package/src/components/SectionHeader.tsx +0 -101
  312. package/src/components/SegmentedTabs.tsx +0 -83
  313. package/src/components/SkeletonPlaceholder.tsx +0 -206
  314. package/src/components/Slider.tsx +0 -300
  315. package/src/components/SourcePageCard.tsx +0 -150
  316. package/src/components/Toast.tsx +0 -131
  317. package/src/components/TouchableScale.tsx +0 -61
  318. package/src/components/TreeNode.tsx +0 -171
  319. package/src/console.ts +0 -24
  320. package/src/constants/index.ts +0 -41
  321. package/src/constants/telemetryConfig.ts +0 -4
  322. package/src/constants/version.ts +0 -3
  323. package/src/crash.ts +0 -32
  324. package/src/customHooks/analyticsLogger.ts +0 -336
  325. package/src/customHooks/bundleAnalyzer.ts +0 -1256
  326. package/src/customHooks/consoleLogger.ts +0 -530
  327. package/src/customHooks/crashHandler.ts +0 -944
  328. package/src/customHooks/logFilters.ts +0 -32
  329. package/src/customHooks/networkLogger.ts +0 -624
  330. package/src/customHooks/performanceTracker.ts +0 -1014
  331. package/src/customHooks/reduxLogger.ts +0 -406
  332. package/src/customHooks/storageInspector.ts +0 -513
  333. package/src/customHooks/useAccordion.tsx +0 -27
  334. package/src/decorators/index.ts +0 -184
  335. package/src/helpers/gaAnalyticsRegistry.ts +0 -204
  336. package/src/helpers/index.ts +0 -1092
  337. package/src/helpers/memoryManager.ts +0 -138
  338. package/src/helpers/qrGenerator.ts +0 -430
  339. package/src/helpers/remoteConfig.ts +0 -212
  340. package/src/helpers/searchQueryParser.ts +0 -84
  341. package/src/helpers/settingsStore.ts +0 -171
  342. package/src/helpers/telemetry.ts +0 -568
  343. package/src/helpers/toast.ts +0 -17
  344. package/src/i18n/index.ts +0 -104
  345. package/src/i18n/locales/en.json +0 -1125
  346. package/src/index.tsx +0 -2635
  347. package/src/metro.ts +0 -598
  348. package/src/network.ts +0 -22
  349. package/src/performance.ts +0 -38
  350. package/src/redux.ts +0 -23
  351. package/src/storage.ts +0 -18
  352. package/src/styles/AppColors.ts +0 -455
  353. package/src/styles/AppFonts.ts +0 -26
  354. package/src/styles/common.ts +0 -209
  355. package/src/styles/index.ts +0 -1606
  356. package/src/types/enums.ts +0 -208
  357. package/src/types/index.ts +0 -34
  358. package/src/types/interfaces.ts +0 -530
@@ -1,432 +1,6 @@
1
- import { NativeModules } from 'react-native';
2
- import { IGNORED_LOG_PREFIXES } from './logFilters';
3
- import { setupGlobalCrashHandler } from './crashHandler';
4
- let logs = [];
5
- let listeners = [];
6
- let counter = 0;
7
- let isIntercepting = false;
8
- let isConsoleModuleEnabled = true;
9
- export const setConsoleModuleEnabled = (enabled) => {
10
- isConsoleModuleEnabled = enabled;
11
- };
12
- export const getConsoleModuleEnabled = () => isConsoleModuleEnabled;
13
- let maxConsoleLogsLimit = 250;
14
- export const setMaxConsoleLogsLimit = (limit) => {
15
- maxConsoleLogsLimit = Math.max(10, limit);
16
- if (logs.length > maxConsoleLogsLimit) {
17
- logs = logs.slice(0, maxConsoleLogsLimit);
18
- notify();
19
- }
20
- };
21
- export const getMaxConsoleLogsLimit = () => maxConsoleLogsLimit;
22
- export const pruneConsoleLogs = (targetCount) => {
23
- const countToKeep = targetCount !== undefined ? Math.max(0, targetCount) : Math.floor(logs.length / 2);
24
- const pruned = logs.length - countToKeep;
25
- if (pruned > 0) {
26
- logs = logs.slice(0, countToKeep);
27
- notify();
28
- }
29
- return Math.max(0, pruned);
30
- };
31
- const formatArgs = (args) => {
32
- return args
33
- .map(arg => {
34
- if (arg === null)
35
- return 'null';
36
- if (arg === undefined)
37
- return 'undefined';
38
- if (typeof arg === 'object') {
39
- try {
40
- return JSON.stringify(arg, null, 2);
41
- }
42
- catch {
43
- return Object.prototype.toString.call(arg);
44
- }
45
- }
46
- return String(arg);
47
- })
48
- .join(' ');
49
- };
50
- const getMetroSymbolicateUrl = () => {
51
- try {
52
- const scriptURL = NativeModules.SourceCode?.scriptURL ||
53
- NativeModules?.PlatformConstants?.serverHost ||
54
- NativeModules?.DevSettings?.serverHost;
55
- if (typeof scriptURL === 'string' && scriptURL.length > 0) {
56
- const match = scriptURL.match(/^(https?:\/\/[^\/]+)/);
57
- if (match) {
58
- return `${match[1]}/symbolicate`;
59
- }
60
- else if (!scriptURL.startsWith('http') && scriptURL.includes(':')) {
61
- return `http://${scriptURL}/symbolicate`;
62
- }
63
- }
64
- }
65
- catch { }
66
- return 'http://localhost:8081/symbolicate';
67
- };
68
- const symbolicateStack = async (stackString) => {
69
- if (typeof __DEV__ === 'undefined' || !__DEV__ || !stackString)
70
- return null;
71
- try {
72
- let symModule = null;
73
- try {
74
- symModule = require('react-native/Libraries/Core/Devtools/symbolicateStackTrace');
75
- }
76
- catch { }
77
- const symFn = symModule?.default || symModule;
78
- if (typeof symFn === 'function') {
79
- const res = await symFn(stackString);
80
- if (res && Array.isArray(res.stack) && res.stack.length > 0) {
81
- return res.stack;
82
- }
83
- }
84
- }
85
- catch { }
86
- try {
87
- const metroUrl = getMetroSymbolicateUrl();
88
- const scriptURL = NativeModules.SourceCode?.scriptURL || 'http://localhost:8081/index.bundle?platform=ios&dev=true';
89
- const lines = stackString.split('\n');
90
- const inputFrames = [];
91
- for (const rawLine of lines) {
92
- const line = rawLine.trim().replace(/^at /, '');
93
- if (!line)
94
- continue;
95
- let methodName = '<anonymous>';
96
- let locationPart = line;
97
- const parenMatch = line.match(/^(.*?)\s*\((.*?)\)$/);
98
- if (parenMatch) {
99
- methodName = parenMatch[1].trim() || '<anonymous>';
100
- locationPart = parenMatch[2].trim();
101
- }
102
- else if (line.includes('@')) {
103
- const atIdx = line.indexOf('@');
104
- methodName = line.substring(0, atIdx).trim() || '<anonymous>';
105
- locationPart = line.substring(atIdx + 1).trim();
106
- }
107
- locationPart = locationPart.replace(/^address at /, '');
108
- const locMatch = locationPart.match(/^(.*?):(\d+):(\d+)$/);
109
- if (locMatch) {
110
- let file = locMatch[1];
111
- if (!file.startsWith('http') && file !== 'native' && !file.includes('InternalBytecode')) {
112
- file = scriptURL;
113
- }
114
- inputFrames.push({
115
- file,
116
- lineNumber: parseInt(locMatch[2], 10),
117
- column: parseInt(locMatch[3], 10),
118
- methodName,
119
- });
120
- }
121
- }
122
- if (inputFrames.length > 0) {
123
- const response = await fetch(metroUrl, {
124
- method: 'POST',
125
- headers: { 'Content-Type': 'application/json' },
126
- body: JSON.stringify({ stack: inputFrames }),
127
- });
128
- if (response.ok) {
129
- const json = await response.json();
130
- if (json && Array.isArray(json.stack) && json.stack.length > 0) {
131
- return json.stack;
132
- }
133
- }
134
- }
135
- }
136
- catch { }
137
- return null;
138
- };
139
- const isLoggerInternal = (line) => {
140
- const l = line.toLowerCase();
141
- return (l.includes('getstackdetails') ||
142
- l.includes('addlog') ||
143
- l.includes('consolelogger') ||
144
- l.includes('setupconsolelogger') ||
145
- l.includes('formatargs') ||
146
- l.includes('react-native-inapp-inspector') ||
147
- l.trim() === 'error');
148
- };
149
- const getStackDetails = (args) => {
150
- try {
151
- let errorStack;
152
- if (args && args.length > 0) {
153
- for (const arg of args) {
154
- if (arg instanceof Error && arg.stack) {
155
- errorStack = arg.stack;
156
- break;
157
- }
158
- else if (arg &&
159
- typeof arg === 'object' &&
160
- typeof arg.stack === 'string') {
161
- errorStack = arg.stack;
162
- break;
163
- }
164
- }
165
- }
166
- const rawStack = new Error().stack;
167
- const stackToUse = errorStack || rawStack;
168
- if (!stackToUse)
169
- return { caller: 'Unknown', errorStack };
170
- const lines = stackToUse.split('\n');
171
- let userCaller;
172
- let fallbackCaller;
173
- for (let i = 0; i < lines.length; i++) {
174
- const line = lines[i];
175
- if (!line || isLoggerInternal(line)) {
176
- continue;
177
- }
178
- const isInternal = line.includes('react-native/Libraries') ||
179
- line.includes('setUpConsole') ||
180
- line.includes('ExceptionsManager') ||
181
- line.includes('MessageQueue') ||
182
- line.includes('metro-runtime') ||
183
- line.includes('regenerator-runtime');
184
- if (!fallbackCaller && !line.includes('setUpConsole')) {
185
- fallbackCaller = line.trim().replace(/^at /, '');
186
- }
187
- if (!isInternal) {
188
- userCaller = line.trim().replace(/^at /, '');
189
- break;
190
- }
191
- }
192
- const cleanedStack = lines.filter(l => !isLoggerInternal(l)).join('\n');
193
- const caller = userCaller || fallbackCaller || 'Unknown';
194
- return { caller, stack: cleanedStack || stackToUse, errorStack, stackToUse };
195
- }
196
- catch (e) {
197
- return { caller: 'Unknown' };
198
- }
199
- };
200
- const notify = () => {
201
- const snapshot = [...logs];
202
- listeners.forEach(cb => cb(snapshot));
203
- };
204
- const addLog = (type, args, sourceMethod) => {
205
- if (!isConsoleModuleEnabled)
206
- return;
207
- if (isIntercepting)
208
- return;
209
- isIntercepting = true;
210
- try {
211
- const message = formatArgs(args);
212
- const allPrefixes = [
213
- ...((IGNORED_LOG_PREFIXES && IGNORED_LOG_PREFIXES.info) || []),
214
- ...((IGNORED_LOG_PREFIXES && IGNORED_LOG_PREFIXES.warn) || []),
215
- ...((IGNORED_LOG_PREFIXES && IGNORED_LOG_PREFIXES.error) || []),
216
- ].filter(p => typeof p === 'string' && p.trim().length > 0);
217
- if (allPrefixes.some(prefix => message
218
- .toLowerCase()
219
- .trim()
220
- .startsWith(prefix.toLowerCase().trim()) ||
221
- message.toLowerCase().trim().includes(prefix.toLowerCase().trim()))) {
222
- return;
223
- }
224
- const { caller, stack, errorStack, stackToUse } = getStackDetails(args);
225
- const newLog = {
226
- id: counter++,
227
- type,
228
- message,
229
- timestamp: Date.now(),
230
- caller,
231
- stack,
232
- errorStack,
233
- rawArgs: args,
234
- sourceMethod,
235
- };
236
- logs.unshift(newLog);
237
- logs = logs.slice(0, maxConsoleLogsLimit);
238
- notify();
239
- const stackToSymbolicate = errorStack || stackToUse || stack;
240
- if (type === 'error' && stackToSymbolicate && typeof __DEV__ !== 'undefined' && __DEV__) {
241
- const currentLogId = newLog.id;
242
- symbolicateStack(stackToSymbolicate)
243
- .then(symFrames => {
244
- if (symFrames && Array.isArray(symFrames) && symFrames.length > 0) {
245
- const symLines = [];
246
- let symUserCaller;
247
- for (const frame of symFrames) {
248
- const file = (frame.file || '').replace(/^webpack:\/\/\/?/, '');
249
- const method = frame.methodName || '<anonymous>';
250
- const line = frame.lineNumber != null ? `:${frame.lineNumber}` : '';
251
- const col = frame.column != null ? `:${frame.column}` : '';
252
- const isInternal = file.includes('customHooks/consoleLogger') ||
253
- file.includes('setupConsoleLogger') ||
254
- file.includes('getStackDetails') ||
255
- file.includes('react-native-inapp-inspector/dist') ||
256
- file.includes('react-native-inapp-inspector/src') ||
257
- method === 'getStackDetails' ||
258
- method === 'addLog' ||
259
- (method === 'log' && file.includes('consoleLogger'));
260
- if (isInternal) {
261
- continue;
262
- }
263
- const lineStr = `at ${method} (${file}${line}${col})`;
264
- symLines.push(lineStr);
265
- const isUserFile = file &&
266
- !file.includes('node_modules') &&
267
- !file.includes('react-native/') &&
268
- (file.endsWith('.tsx') ||
269
- file.endsWith('.jsx') ||
270
- file.endsWith('.ts') ||
271
- file.endsWith('.js'));
272
- if (!symUserCaller && isUserFile) {
273
- const cleanFile = file.split('/').pop() || file;
274
- symUserCaller = `${method} (${cleanFile}${line}${col})`;
275
- }
276
- }
277
- const targetLog = logs.find(l => l.id === currentLogId);
278
- if (targetLog) {
279
- if (symUserCaller) {
280
- targetLog.caller = symUserCaller;
281
- }
282
- else if (symLines.length > 0) {
283
- targetLog.caller = symLines[0].replace(/^at /, '');
284
- }
285
- if (symLines.length > 0) {
286
- targetLog.stack = symLines.join('\n');
287
- }
288
- notify();
289
- }
290
- }
291
- })
292
- .catch(() => { });
293
- }
294
- }
295
- catch (e) {
296
- }
297
- finally {
298
- isIntercepting = false;
299
- }
300
- };
301
- export const addLogFromCrash = (error, message, stack, isFatal) => {
302
- const { caller, errorStack } = getStackDetails([error]);
303
- const newLog = {
304
- id: counter++,
305
- type: 'error',
306
- message: message || (error?.message ?? 'Runtime Crash'),
307
- timestamp: Date.now(),
308
- caller: caller !== 'Unknown'
309
- ? caller
310
- : isFatal
311
- ? 'Fatal Crash'
312
- : 'Unhandled Exception',
313
- stack: stack || error?.stack || errorStack,
314
- errorStack: stack || error?.stack,
315
- rawArgs: [error],
316
- sourceMethod: 'error',
317
- };
318
- logs.unshift(newLog);
319
- logs = logs.slice(0, maxConsoleLogsLimit);
320
- notify();
321
- const stackToSym = stack || error?.stack || errorStack;
322
- if (stackToSym && typeof __DEV__ !== 'undefined' && __DEV__) {
323
- symbolicateStack(stackToSym)
324
- .then(symFrames => {
325
- if (symFrames && Array.isArray(symFrames) && symFrames.length > 0) {
326
- const symLines = symFrames.map(f => `at ${f.methodName || '<anonymous>'} (${(f.file || '').replace(/^webpack:\/\/\/?/, '')}:${f.lineNumber ?? 0}:${f.column ?? 0})`);
327
- const target = logs.find(l => l.id === newLog.id);
328
- if (target) {
329
- target.stack = symLines.join('\n');
330
- notify();
331
- }
332
- }
333
- })
334
- .catch(() => { });
335
- }
336
- return newLog;
337
- };
338
- export const subscribeConsoleLogs = (callback) => {
339
- listeners.push(callback);
340
- callback([...logs]);
341
- return () => {
342
- listeners = listeners.filter(l => l !== callback);
343
- };
344
- };
345
- export const clearConsoleLogs = () => {
346
- logs = [];
347
- notify();
348
- };
349
- export const getConsoleLogs = () => [...logs];
350
- export const setupConsoleLogger = () => {
351
- if (globalThis.__CONSOLE_LOGGER_INITIALIZED__)
352
- return;
353
- const originalConsole = {
354
- log: console.log,
355
- info: console.info,
356
- warn: console.warn,
357
- error: console.error,
358
- debug: console.debug,
359
- trace: console.trace,
360
- };
361
- console.log = (...args) => {
362
- try {
363
- addLog('info', args, 'log');
364
- }
365
- catch { }
366
- originalConsole.log(...args);
367
- };
368
- console.info = (...args) => {
369
- try {
370
- addLog('info', args, 'info');
371
- }
372
- catch { }
373
- originalConsole.info(...args);
374
- };
375
- console.debug = (...args) => {
376
- try {
377
- addLog('info', args, 'info');
378
- }
379
- catch { }
380
- if (typeof originalConsole.debug === 'function') {
381
- originalConsole.debug(...args);
382
- }
383
- else {
384
- originalConsole.log(...args);
385
- }
386
- };
387
- console.trace = (...args) => {
388
- try {
389
- addLog('info', args, 'info');
390
- }
391
- catch { }
392
- if (typeof originalConsole.trace === 'function') {
393
- originalConsole.trace(...args);
394
- }
395
- else {
396
- originalConsole.log(...args);
397
- }
398
- };
399
- console.warn = (...args) => {
400
- try {
401
- addLog('warn', args, 'warn');
402
- }
403
- catch { }
404
- originalConsole.warn(...args);
405
- };
406
- console.error = (...args) => {
407
- try {
408
- addLog('error', args, 'error');
409
- }
410
- catch { }
411
- const firstArg = args && args[0];
412
- const isRenderError = typeof firstArg === 'string' &&
413
- (firstArg.includes('The above error occurred in') ||
414
- firstArg.includes('Render Error') ||
415
- firstArg.includes('ReferenceError') ||
416
- firstArg.includes('TypeError'));
417
- if (!isRenderError) {
418
- originalConsole.error(...args);
419
- }
420
- };
421
- try {
422
- setupGlobalCrashHandler();
423
- }
424
- catch { }
425
- globalThis.__CONSOLE_LOGGER_INITIALIZED__ = true;
426
- };
427
- if (typeof globalThis !== 'undefined') {
428
- try {
429
- setupConsoleLogger();
430
- }
431
- catch { }
432
- }
1
+ import{NativeModules as E}from"react-native";import{IGNORED_LOG_PREFIXES as g}from"./logFilters";import{setupGlobalCrashHandler as R}from"./crashHandler";let l=[],x=[],U=0,S=!1,I=!0;export const setConsoleModuleEnabled=t=>{I=t},getConsoleModuleEnabled=()=>I;let y=250;export const setMaxConsoleLogsLimit=t=>{y=Math.max(10,t),l.length>y&&(l=l.slice(0,y),m())},getMaxConsoleLogsLimit=()=>y,pruneConsoleLogs=t=>{const e=t!==void 0?Math.max(0,t):Math.floor(l.length/2),c=l.length-e;return c>0&&(l=l.slice(0,e),m()),Math.max(0,c)};const j=t=>t.map(e=>{if(e===null)return"null";if(e===void 0)return"undefined";if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{return Object.prototype.toString.call(e)}return String(e)}).join(" "),G=()=>{try{const t=E.SourceCode?.scriptURL||E?.PlatformConstants?.serverHost||E?.DevSettings?.serverHost;if(typeof t=="string"&&t.length>0){const e=t.match(/^(https?:\/\/[^\/]+)/);if(e)return`${e[1]}/symbolicate`;if(!t.startsWith("http")&&t.includes(":"))return`http://${t}/symbolicate`}}catch{}return"http://localhost:8081/symbolicate"},D=async t=>{if(typeof __DEV__>"u"||!__DEV__||!t)return null;try{let e=null;try{e=require("react-native/Libraries/Core/Devtools/symbolicateStackTrace")}catch{}const c=e?.default||e;if(typeof c=="function"){const i=await c(t);if(i&&Array.isArray(i.stack)&&i.stack.length>0)return i.stack}}catch{}try{const e=G(),c=E.SourceCode?.scriptURL||"http://localhost:8081/index.bundle?platform=ios&dev=true",i=t.split(`
2
+ `),d=[];for(const f of i){const o=f.trim().replace(/^at /,"");if(!o)continue;let p="<anonymous>",u=o;const r=o.match(/^(.*?)\s*\((.*?)\)$/);if(r)p=r[1].trim()||"<anonymous>",u=r[2].trim();else if(o.includes("@")){const n=o.indexOf("@");p=o.substring(0,n).trim()||"<anonymous>",u=o.substring(n+1).trim()}u=u.replace(/^address at /,"");const s=u.match(/^(.*?):(\d+):(\d+)$/);if(s){let n=s[1];!n.startsWith("http")&&n!=="native"&&!n.includes("InternalBytecode")&&(n=c),d.push({file:n,lineNumber:parseInt(s[2],10),column:parseInt(s[3],10),methodName:p})}}if(d.length>0){const f=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({stack:d})});if(f.ok){const o=await f.json();if(o&&Array.isArray(o.stack)&&o.stack.length>0)return o.stack}}}catch{}return null},N=t=>{const e=t.toLowerCase();return e.includes("getstackdetails")||e.includes("addlog")||e.includes("consolelogger")||e.includes("setupconsolelogger")||e.includes("formatargs")||e.includes("react-native-inapp-inspector")||e.trim()==="error"},T=t=>{try{let e;if(t&&t.length>0){for(const r of t)if(r instanceof Error&&r.stack){e=r.stack;break}else if(r&&typeof r=="object"&&typeof r.stack=="string"){e=r.stack;break}}const c=new Error().stack,i=e||c;if(!i)return{caller:"Unknown",errorStack:e};const d=i.split(`
3
+ `);let f,o;for(let r=0;r<d.length;r++){const s=d[r];if(!s||N(s))continue;const n=s.includes("react-native/Libraries")||s.includes("setUpConsole")||s.includes("ExceptionsManager")||s.includes("MessageQueue")||s.includes("metro-runtime")||s.includes("regenerator-runtime");if(!o&&!s.includes("setUpConsole")&&(o=s.trim().replace(/^at /,"")),!n){f=s.trim().replace(/^at /,"");break}}const p=d.filter(r=>!N(r)).join(`
4
+ `);return{caller:f||o||"Unknown",stack:p||i,errorStack:e,stackToUse:i}}catch{return{caller:"Unknown"}}},m=()=>{const t=[...l];x.forEach(e=>e(t))},L=(t,e,c)=>{if(I&&!S){S=!0;try{const i=j(e);if([...g&&g.info||[],...g&&g.warn||[],...g&&g.error||[]].filter(n=>typeof n=="string"&&n.trim().length>0).some(n=>i.toLowerCase().trim().startsWith(n.toLowerCase().trim())||i.toLowerCase().trim().includes(n.toLowerCase().trim())))return;const{caller:f,stack:o,errorStack:p,stackToUse:u}=T(e),r={id:U++,type:t,message:i,timestamp:Date.now(),caller:f,stack:o,errorStack:p,rawArgs:e,sourceMethod:c};l.unshift(r),l=l.slice(0,y),m();const s=p||u||o;if(t==="error"&&s&&typeof __DEV__<"u"&&__DEV__){const n=r.id;D(s).then(_=>{if(_&&Array.isArray(_)&&_.length>0){const k=[];let C;for(const h of _){const a=(h.file||"").replace(/^webpack:\/\/\/?/,""),b=h.methodName||"<anonymous>",$=h.lineNumber!=null?`:${h.lineNumber}`:"",M=h.column!=null?`:${h.column}`:"";if(a.includes("customHooks/consoleLogger")||a.includes("setupConsoleLogger")||a.includes("getStackDetails")||a.includes("react-native-inapp-inspector/dist")||a.includes("react-native-inapp-inspector/src")||b==="getStackDetails"||b==="addLog"||b==="log"&&a.includes("consoleLogger"))continue;const v=`at ${b} (${a}${$}${M})`;k.push(v);const A=a&&!a.includes("node_modules")&&!a.includes("react-native/")&&(a.endsWith(".tsx")||a.endsWith(".jsx")||a.endsWith(".ts")||a.endsWith(".js"));if(!C&&A){const O=a.split("/").pop()||a;C=`${b} (${O}${$}${M})`}}const w=l.find(h=>h.id===n);w&&(C?w.caller=C:k.length>0&&(w.caller=k[0].replace(/^at /,"")),k.length>0&&(w.stack=k.join(`
5
+ `)),m())}}).catch(()=>{})}}catch{}finally{S=!1}}};export const addLogFromCrash=(t,e,c,i)=>{const{caller:d,errorStack:f}=T([t]),o={id:U++,type:"error",message:e||(t?.message??"Runtime Crash"),timestamp:Date.now(),caller:d!=="Unknown"?d:i?"Fatal Crash":"Unhandled Exception",stack:c||t?.stack||f,errorStack:c||t?.stack,rawArgs:[t],sourceMethod:"error"};l.unshift(o),l=l.slice(0,y),m();const p=c||t?.stack||f;return p&&typeof __DEV__<"u"&&__DEV__&&D(p).then(u=>{if(u&&Array.isArray(u)&&u.length>0){const r=u.map(n=>`at ${n.methodName||"<anonymous>"} (${(n.file||"").replace(/^webpack:\/\/\/?/,"")}:${n.lineNumber??0}:${n.column??0})`),s=l.find(n=>n.id===o.id);s&&(s.stack=r.join(`
6
+ `),m())}}).catch(()=>{}),o},subscribeConsoleLogs=t=>(x.push(t),t([...l]),()=>{x=x.filter(e=>e!==t)}),clearConsoleLogs=()=>{l=[],m()},getConsoleLogs=()=>[...l],setupConsoleLogger=()=>{if(globalThis.__CONSOLE_LOGGER_INITIALIZED__)return;const t={log:console.log,info:console.info,warn:console.warn,error:console.error,debug:console.debug,trace:console.trace};console.log=(...e)=>{try{L("info",e,"log")}catch{}t.log(...e)},console.info=(...e)=>{try{L("info",e,"info")}catch{}t.info(...e)},console.debug=(...e)=>{try{L("info",e,"info")}catch{}typeof t.debug=="function"?t.debug(...e):t.log(...e)},console.trace=(...e)=>{try{L("info",e,"info")}catch{}typeof t.trace=="function"?t.trace(...e):t.log(...e)},console.warn=(...e)=>{try{L("warn",e,"warn")}catch{}t.warn(...e)},console.error=(...e)=>{try{L("error",e,"error")}catch{}const c=e&&e[0];typeof c=="string"&&(c.includes("The above error occurred in")||c.includes("Render Error")||c.includes("ReferenceError")||c.includes("TypeError"))||t.error(...e)};try{R()}catch{}globalThis.__CONSOLE_LOGGER_INITIALIZED__=!0};if(typeof globalThis<"u")try{setupConsoleLogger()}catch{}