mates-devtools 0.1.0-beta.1

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 (379) hide show
  1. package/dist/mates-devtools.es.js +3464 -0
  2. package/dist/mates-devtools.umd.js +650 -0
  3. package/dist/types/Mates-DevTools/src/MatesDevTools.d.ts +5 -0
  4. package/dist/types/Mates-DevTools/src/MatesDevTools.d.ts.map +1 -0
  5. package/dist/types/Mates-DevTools/src/MatesDevToolsComponent.d.ts +24 -0
  6. package/dist/types/Mates-DevTools/src/MatesDevToolsComponent.d.ts.map +1 -0
  7. package/dist/types/Mates-DevTools/src/components/AtomsViewer.d.ts +2 -0
  8. package/dist/types/Mates-DevTools/src/components/AtomsViewer.d.ts.map +1 -0
  9. package/dist/types/Mates-DevTools/src/components/ComponentInspector.d.ts +27 -0
  10. package/dist/types/Mates-DevTools/src/components/ComponentInspector.d.ts.map +1 -0
  11. package/dist/types/Mates-DevTools/src/components/ComponentList.d.ts +11 -0
  12. package/dist/types/Mates-DevTools/src/components/ComponentList.d.ts.map +1 -0
  13. package/dist/types/Mates-DevTools/src/components/ComponentTree.d.ts +9 -0
  14. package/dist/types/Mates-DevTools/src/components/ComponentTree.d.ts.map +1 -0
  15. package/dist/types/Mates-DevTools/src/components/Header.d.ts +10 -0
  16. package/dist/types/Mates-DevTools/src/components/Header.d.ts.map +1 -0
  17. package/dist/types/Mates-DevTools/src/components/Highlight.d.ts +6 -0
  18. package/dist/types/Mates-DevTools/src/components/Highlight.d.ts.map +1 -0
  19. package/dist/types/Mates-DevTools/src/components/HooksViewer.d.ts +7 -0
  20. package/dist/types/Mates-DevTools/src/components/HooksViewer.d.ts.map +1 -0
  21. package/dist/types/Mates-DevTools/src/components/LogsViewer.d.ts +6 -0
  22. package/dist/types/Mates-DevTools/src/components/LogsViewer.d.ts.map +1 -0
  23. package/dist/types/Mates-DevTools/src/components/PerfViewer.d.ts +7 -0
  24. package/dist/types/Mates-DevTools/src/components/PerfViewer.d.ts.map +1 -0
  25. package/dist/types/Mates-DevTools/src/components/PropsViewer.d.ts +2 -0
  26. package/dist/types/Mates-DevTools/src/components/PropsViewer.d.ts.map +1 -0
  27. package/dist/types/Mates-DevTools/src/components/ScopesViewer.d.ts +2 -0
  28. package/dist/types/Mates-DevTools/src/components/ScopesViewer.d.ts.map +1 -0
  29. package/dist/types/Mates-DevTools/src/components/TimerLogger.d.ts +5 -0
  30. package/dist/types/Mates-DevTools/src/components/TimerLogger.d.ts.map +1 -0
  31. package/dist/types/Mates-DevTools/src/components/UseStateViewer.d.ts +12 -0
  32. package/dist/types/Mates-DevTools/src/components/UseStateViewer.d.ts.map +1 -0
  33. package/dist/types/Mates-DevTools/src/components/ValueTree.d.ts +19 -0
  34. package/dist/types/Mates-DevTools/src/components/ValueTree.d.ts.map +1 -0
  35. package/dist/types/Mates-DevTools/src/index.d.ts +23 -0
  36. package/dist/types/Mates-DevTools/src/index.d.ts.map +1 -0
  37. package/dist/types/Mates-DevTools/src/interceptTimers.d.ts +11 -0
  38. package/dist/types/Mates-DevTools/src/interceptTimers.d.ts.map +1 -0
  39. package/dist/types/Mates-DevTools/src/logStore.d.ts +38 -0
  40. package/dist/types/Mates-DevTools/src/logStore.d.ts.map +1 -0
  41. package/dist/types/Mates-DevTools/src/perfStore.d.ts +36 -0
  42. package/dist/types/Mates-DevTools/src/perfStore.d.ts.map +1 -0
  43. package/dist/types/Mates-DevTools/src/registry.d.ts +68 -0
  44. package/dist/types/Mates-DevTools/src/registry.d.ts.map +1 -0
  45. package/dist/types/Mates-DevTools/src/styles.d.ts +833 -0
  46. package/dist/types/Mates-DevTools/src/styles.d.ts.map +1 -0
  47. package/dist/types/Mates-DevTools/src/types.d.ts +19 -0
  48. package/dist/types/Mates-DevTools/src/types.d.ts.map +1 -0
  49. package/dist/types/lib/Directives/$.d.ts +371 -0
  50. package/dist/types/lib/Directives/$.d.ts.map +1 -0
  51. package/dist/types/lib/Directives/animatedConditional.d.ts +67 -0
  52. package/dist/types/lib/Directives/animatedConditional.d.ts.map +1 -0
  53. package/dist/types/lib/Directives/animationClasses.d.ts +50 -0
  54. package/dist/types/lib/Directives/animationClasses.d.ts.map +1 -0
  55. package/dist/types/lib/Directives/attrDirective.d.ts +69 -0
  56. package/dist/types/lib/Directives/attrDirective.d.ts.map +1 -0
  57. package/dist/types/lib/Directives/classesDirective.d.ts +79 -0
  58. package/dist/types/lib/Directives/classesDirective.d.ts.map +1 -0
  59. package/dist/types/lib/Directives/eleHook.d.ts +84 -0
  60. package/dist/types/lib/Directives/eleHook.d.ts.map +1 -0
  61. package/dist/types/lib/Directives/eventBinding.d.ts +29 -0
  62. package/dist/types/lib/Directives/eventBinding.d.ts.map +1 -0
  63. package/dist/types/lib/Directives/htmlHook.d.ts +101 -0
  64. package/dist/types/lib/Directives/htmlHook.d.ts.map +1 -0
  65. package/dist/types/lib/Directives/index.d.ts +18 -0
  66. package/dist/types/lib/Directives/index.d.ts.map +1 -0
  67. package/dist/types/lib/Directives/intersectDirective.d.ts +67 -0
  68. package/dist/types/lib/Directives/intersectDirective.d.ts.map +1 -0
  69. package/dist/types/lib/Directives/lazyLoadDirective.d.ts +66 -0
  70. package/dist/types/lib/Directives/lazyLoadDirective.d.ts.map +1 -0
  71. package/dist/types/lib/Directives/lifecycleDirectives.d.ts +56 -0
  72. package/dist/types/lib/Directives/lifecycleDirectives.d.ts.map +1 -0
  73. package/dist/types/lib/Directives/masonryGrid.d.ts +114 -0
  74. package/dist/types/lib/Directives/masonryGrid.d.ts.map +1 -0
  75. package/dist/types/lib/Directives/memoTemplate.d.ts +94 -0
  76. package/dist/types/lib/Directives/memoTemplate.d.ts.map +1 -0
  77. package/dist/types/lib/Directives/onDirective.d.ts +71 -0
  78. package/dist/types/lib/Directives/onDirective.d.ts.map +1 -0
  79. package/dist/types/lib/Directives/onParentDirective.d.ts +34 -0
  80. package/dist/types/lib/Directives/onParentDirective.d.ts.map +1 -0
  81. package/dist/types/lib/Directives/renderSwitch.d.ts +55 -0
  82. package/dist/types/lib/Directives/renderSwitch.d.ts.map +1 -0
  83. package/dist/types/lib/Directives/resolveAttrValue.d.ts +35 -0
  84. package/dist/types/lib/Directives/resolveAttrValue.d.ts.map +1 -0
  85. package/dist/types/lib/Directives/styleDirective.d.ts +81 -0
  86. package/dist/types/lib/Directives/styleDirective.d.ts.map +1 -0
  87. package/dist/types/lib/Directives/timerDirective.d.ts +52 -0
  88. package/dist/types/lib/Directives/timerDirective.d.ts.map +1 -0
  89. package/dist/types/lib/Directives/virtualHelpers.d.ts +10 -0
  90. package/dist/types/lib/Directives/virtualHelpers.d.ts.map +1 -0
  91. package/dist/types/lib/Fetch/ErrorTypes.d.ts +74 -0
  92. package/dist/types/lib/Fetch/ErrorTypes.d.ts.map +1 -0
  93. package/dist/types/lib/Fetch/Fetch.d.ts +168 -0
  94. package/dist/types/lib/Fetch/Fetch.d.ts.map +1 -0
  95. package/dist/types/lib/Fetch/index.d.ts +3 -0
  96. package/dist/types/lib/Fetch/index.d.ts.map +1 -0
  97. package/dist/types/lib/Mutables/Extended Atoms/cacheAtom.d.ts +156 -0
  98. package/dist/types/lib/Mutables/Extended Atoms/cacheAtom.d.ts.map +1 -0
  99. package/dist/types/lib/Mutables/Extended Atoms/index.d.ts +4 -0
  100. package/dist/types/lib/Mutables/Extended Atoms/index.d.ts.map +1 -0
  101. package/dist/types/lib/Mutables/Extended Atoms/paginationAtom.d.ts +32 -0
  102. package/dist/types/lib/Mutables/Extended Atoms/paginationAtom.d.ts.map +1 -0
  103. package/dist/types/lib/Mutables/Extended Atoms/themeAtom.d.ts +59 -0
  104. package/dist/types/lib/Mutables/Extended Atoms/themeAtom.d.ts.map +1 -0
  105. package/dist/types/lib/Mutables/atom/atom.d.ts +148 -0
  106. package/dist/types/lib/Mutables/atom/atom.d.ts.map +1 -0
  107. package/dist/types/lib/Mutables/atom/createTimedAtom.d.ts +43 -0
  108. package/dist/types/lib/Mutables/atom/createTimedAtom.d.ts.map +1 -0
  109. package/dist/types/lib/Mutables/atom/debouncedAtom.d.ts +37 -0
  110. package/dist/types/lib/Mutables/atom/debouncedAtom.d.ts.map +1 -0
  111. package/dist/types/lib/Mutables/atom/index.d.ts +10 -0
  112. package/dist/types/lib/Mutables/atom/index.d.ts.map +1 -0
  113. package/dist/types/lib/Mutables/atom/mapAtom.d.ts +105 -0
  114. package/dist/types/lib/Mutables/atom/mapAtom.d.ts.map +1 -0
  115. package/dist/types/lib/Mutables/atom/setAtom.d.ts +107 -0
  116. package/dist/types/lib/Mutables/atom/setAtom.d.ts.map +1 -0
  117. package/dist/types/lib/Mutables/atom/storageAtom.d.ts +44 -0
  118. package/dist/types/lib/Mutables/atom/storageAtom.d.ts.map +1 -0
  119. package/dist/types/lib/Mutables/atom/throttledAtom.d.ts +37 -0
  120. package/dist/types/lib/Mutables/atom/throttledAtom.d.ts.map +1 -0
  121. package/dist/types/lib/Mutables/atom/titleAtom.d.ts +20 -0
  122. package/dist/types/lib/Mutables/atom/titleAtom.d.ts.map +1 -0
  123. package/dist/types/lib/Mutables/effect/effect.d.ts +31 -0
  124. package/dist/types/lib/Mutables/effect/effect.d.ts.map +1 -0
  125. package/dist/types/lib/Mutables/effect/index.d.ts +2 -0
  126. package/dist/types/lib/Mutables/effect/index.d.ts.map +1 -0
  127. package/dist/types/lib/Mutables/events/events.d.ts +123 -0
  128. package/dist/types/lib/Mutables/events/events.d.ts.map +1 -0
  129. package/dist/types/lib/Mutables/events/index.d.ts +2 -0
  130. package/dist/types/lib/Mutables/events/index.d.ts.map +1 -0
  131. package/dist/types/lib/Mutables/events/xTabEvent.d.ts +61 -0
  132. package/dist/types/lib/Mutables/events/xTabEvent.d.ts.map +1 -0
  133. package/dist/types/lib/Mutables/form/formAtom.d.ts +56 -0
  134. package/dist/types/lib/Mutables/form/formAtom.d.ts.map +1 -0
  135. package/dist/types/lib/Mutables/form/index.d.ts +5 -0
  136. package/dist/types/lib/Mutables/form/index.d.ts.map +1 -0
  137. package/dist/types/lib/Mutables/form/transformers.d.ts +4 -0
  138. package/dist/types/lib/Mutables/form/transformers.d.ts.map +1 -0
  139. package/dist/types/lib/Mutables/form/validateAll.d.ts +40 -0
  140. package/dist/types/lib/Mutables/form/validateAll.d.ts.map +1 -0
  141. package/dist/types/lib/Mutables/form/validators.d.ts +61 -0
  142. package/dist/types/lib/Mutables/form/validators.d.ts.map +1 -0
  143. package/dist/types/lib/Mutables/index.d.ts +13 -0
  144. package/dist/types/lib/Mutables/index.d.ts.map +1 -0
  145. package/dist/types/lib/Mutables/memo/index.d.ts +2 -0
  146. package/dist/types/lib/Mutables/memo/index.d.ts.map +1 -0
  147. package/dist/types/lib/Mutables/memo/memo.d.ts +47 -0
  148. package/dist/types/lib/Mutables/memo/memo.d.ts.map +1 -0
  149. package/dist/types/lib/Mutables/reactiveRunner/index.d.ts +4 -0
  150. package/dist/types/lib/Mutables/reactiveRunner/index.d.ts.map +1 -0
  151. package/dist/types/lib/Mutables/reactiveRunner/reactiveRunner.d.ts +56 -0
  152. package/dist/types/lib/Mutables/reactiveRunner/reactiveRunner.d.ts.map +1 -0
  153. package/dist/types/lib/Mutables/reactiveRunner/trackAndSubscribe.d.ts +6 -0
  154. package/dist/types/lib/Mutables/reactiveRunner/trackAndSubscribe.d.ts.map +1 -0
  155. package/dist/types/lib/Mutables/reactiveRunner/validateReactiveFunction.d.ts +6 -0
  156. package/dist/types/lib/Mutables/reactiveRunner/validateReactiveFunction.d.ts.map +1 -0
  157. package/dist/types/lib/Mutables/ref/index.d.ts +2 -0
  158. package/dist/types/lib/Mutables/ref/index.d.ts.map +1 -0
  159. package/dist/types/lib/Mutables/ref/ref.d.ts +74 -0
  160. package/dist/types/lib/Mutables/ref/ref.d.ts.map +1 -0
  161. package/dist/types/lib/Mutables/scope/index.d.ts +2 -0
  162. package/dist/types/lib/Mutables/scope/index.d.ts.map +1 -0
  163. package/dist/types/lib/Mutables/scope/scope.d.ts +60 -0
  164. package/dist/types/lib/Mutables/scope/scope.d.ts.map +1 -0
  165. package/dist/types/lib/Mutables/store/index.d.ts +2 -0
  166. package/dist/types/lib/Mutables/store/index.d.ts.map +1 -0
  167. package/dist/types/lib/Mutables/store/store.d.ts +73 -0
  168. package/dist/types/lib/Mutables/store/store.d.ts.map +1 -0
  169. package/dist/types/lib/Mutables/useState/index.d.ts +2 -0
  170. package/dist/types/lib/Mutables/useState/index.d.ts.map +1 -0
  171. package/dist/types/lib/Mutables/useState/useState.d.ts +54 -0
  172. package/dist/types/lib/Mutables/useState/useState.d.ts.map +1 -0
  173. package/dist/types/lib/Mutables/useStore/hostContext.d.ts +13 -0
  174. package/dist/types/lib/Mutables/useStore/hostContext.d.ts.map +1 -0
  175. package/dist/types/lib/Mutables/useStore/index.d.ts +9 -0
  176. package/dist/types/lib/Mutables/useStore/index.d.ts.map +1 -0
  177. package/dist/types/lib/Mutables/useStore/lifecycle.d.ts +94 -0
  178. package/dist/types/lib/Mutables/useStore/lifecycle.d.ts.map +1 -0
  179. package/dist/types/lib/Mutables/useStore/onError.d.ts +21 -0
  180. package/dist/types/lib/Mutables/useStore/onError.d.ts.map +1 -0
  181. package/dist/types/lib/Mutables/useStore/onReferenceChange.d.ts +2 -0
  182. package/dist/types/lib/Mutables/useStore/onReferenceChange.d.ts.map +1 -0
  183. package/dist/types/lib/Mutables/useStore/safetyCheck.d.ts +2 -0
  184. package/dist/types/lib/Mutables/useStore/safetyCheck.d.ts.map +1 -0
  185. package/dist/types/lib/Mutables/useStore/setter.d.ts +52 -0
  186. package/dist/types/lib/Mutables/useStore/setter.d.ts.map +1 -0
  187. package/dist/types/lib/Mutables/useStore/subscription.d.ts +50 -0
  188. package/dist/types/lib/Mutables/useStore/subscription.d.ts.map +1 -0
  189. package/dist/types/lib/Mutables/useStore/useContext.d.ts +3 -0
  190. package/dist/types/lib/Mutables/useStore/useContext.d.ts.map +1 -0
  191. package/dist/types/lib/Mutables/useStore/useStore.d.ts +7 -0
  192. package/dist/types/lib/Mutables/useStore/useStore.d.ts.map +1 -0
  193. package/dist/types/lib/Router/Router.d.ts +54 -0
  194. package/dist/types/lib/Router/Router.d.ts.map +1 -0
  195. package/dist/types/lib/Router/animatedRouter.d.ts +48 -0
  196. package/dist/types/lib/Router/animatedRouter.d.ts.map +1 -0
  197. package/dist/types/lib/Router/buildPath.d.ts +20 -0
  198. package/dist/types/lib/Router/buildPath.d.ts.map +1 -0
  199. package/dist/types/lib/Router/hashAtom.d.ts +12 -0
  200. package/dist/types/lib/Router/hashAtom.d.ts.map +1 -0
  201. package/dist/types/lib/Router/index.d.ts +11 -0
  202. package/dist/types/lib/Router/index.d.ts.map +1 -0
  203. package/dist/types/lib/Router/isPathMatching.d.ts +12 -0
  204. package/dist/types/lib/Router/isPathMatching.d.ts.map +1 -0
  205. package/dist/types/lib/Router/location.d.ts +74 -0
  206. package/dist/types/lib/Router/location.d.ts.map +1 -0
  207. package/dist/types/lib/Router/navigateTo.d.ts +31 -0
  208. package/dist/types/lib/Router/navigateTo.d.ts.map +1 -0
  209. package/dist/types/lib/Router/navigationLock.d.ts +50 -0
  210. package/dist/types/lib/Router/navigationLock.d.ts.map +1 -0
  211. package/dist/types/lib/Router/pathAtom.d.ts +42 -0
  212. package/dist/types/lib/Router/pathAtom.d.ts.map +1 -0
  213. package/dist/types/lib/Router/pathResolver.d.ts +9 -0
  214. package/dist/types/lib/Router/pathResolver.d.ts.map +1 -0
  215. package/dist/types/lib/Router/qsAtom.d.ts +12 -0
  216. package/dist/types/lib/Router/qsAtom.d.ts.map +1 -0
  217. package/dist/types/lib/Template/index.d.ts +6 -0
  218. package/dist/types/lib/Template/index.d.ts.map +1 -0
  219. package/dist/types/lib/Template/scheduler.d.ts +59 -0
  220. package/dist/types/lib/Template/scheduler.d.ts.map +1 -0
  221. package/dist/types/lib/Template/x-x.d.ts +60 -0
  222. package/dist/types/lib/Template/x-x.d.ts.map +1 -0
  223. package/dist/types/lib/Template/x-x.types.d.ts +91 -0
  224. package/dist/types/lib/Template/x-x.types.d.ts.map +1 -0
  225. package/dist/types/lib/Template/x-x.utils.d.ts +15 -0
  226. package/dist/types/lib/Template/x-x.utils.d.ts.map +1 -0
  227. package/dist/types/lib/Template/x.d.ts +5 -0
  228. package/dist/types/lib/Template/x.d.ts.map +1 -0
  229. package/dist/types/lib/Template/xProvider.d.ts +2 -0
  230. package/dist/types/lib/Template/xProvider.d.ts.map +1 -0
  231. package/dist/types/lib/Timers/createManagedTimer.d.ts +12 -0
  232. package/dist/types/lib/Timers/createManagedTimer.d.ts.map +1 -0
  233. package/dist/types/lib/Timers/index.d.ts +4 -0
  234. package/dist/types/lib/Timers/index.d.ts.map +1 -0
  235. package/dist/types/lib/Timers/interval.d.ts +2 -0
  236. package/dist/types/lib/Timers/interval.d.ts.map +1 -0
  237. package/dist/types/lib/Timers/timeout.d.ts +2 -0
  238. package/dist/types/lib/Timers/timeout.d.ts.map +1 -0
  239. package/dist/types/lib/TrackState/componentStatus.d.ts +105 -0
  240. package/dist/types/lib/TrackState/componentStatus.d.ts.map +1 -0
  241. package/dist/types/lib/TrackState/readTracking.d.ts +20 -0
  242. package/dist/types/lib/TrackState/readTracking.d.ts.map +1 -0
  243. package/dist/types/lib/Utils/Context.d.ts +6 -0
  244. package/dist/types/lib/Utils/Context.d.ts.map +1 -0
  245. package/dist/types/lib/Utils/Date/calendar.d.ts +30 -0
  246. package/dist/types/lib/Utils/Date/calendar.d.ts.map +1 -0
  247. package/dist/types/lib/Utils/Date/core.d.ts +29 -0
  248. package/dist/types/lib/Utils/Date/core.d.ts.map +1 -0
  249. package/dist/types/lib/Utils/Date/date.d.ts +60 -0
  250. package/dist/types/lib/Utils/Date/date.d.ts.map +1 -0
  251. package/dist/types/lib/Utils/Date/index.d.ts +3 -0
  252. package/dist/types/lib/Utils/Date/index.d.ts.map +1 -0
  253. package/dist/types/lib/Utils/deepClone.d.ts +7 -0
  254. package/dist/types/lib/Utils/deepClone.d.ts.map +1 -0
  255. package/dist/types/lib/Utils/deepFreeze.d.ts +2 -0
  256. package/dist/types/lib/Utils/deepFreeze.d.ts.map +1 -0
  257. package/dist/types/lib/Utils/getAllProps.d.ts +2 -0
  258. package/dist/types/lib/Utils/getAllProps.d.ts.map +1 -0
  259. package/dist/types/lib/Utils/helpers.d.ts +13 -0
  260. package/dist/types/lib/Utils/helpers.d.ts.map +1 -0
  261. package/dist/types/lib/Utils/index.d.ts +13 -0
  262. package/dist/types/lib/Utils/index.d.ts.map +1 -0
  263. package/dist/types/lib/Utils/is.d.ts +12 -0
  264. package/dist/types/lib/Utils/is.d.ts.map +1 -0
  265. package/dist/types/lib/Utils/isDefinedAsGetter.d.ts +2 -0
  266. package/dist/types/lib/Utils/isDefinedAsGetter.d.ts.map +1 -0
  267. package/dist/types/lib/Utils/logger.d.ts +22 -0
  268. package/dist/types/lib/Utils/logger.d.ts.map +1 -0
  269. package/dist/types/lib/Utils/notificationManager.d.ts +67 -0
  270. package/dist/types/lib/Utils/notificationManager.d.ts.map +1 -0
  271. package/dist/types/lib/Utils/registerCleanup.d.ts +7 -0
  272. package/dist/types/lib/Utils/registerCleanup.d.ts.map +1 -0
  273. package/dist/types/lib/Utils/svgIcon.d.ts +95 -0
  274. package/dist/types/lib/Utils/svgIcon.d.ts.map +1 -0
  275. package/dist/types/lib/Utils/uuid.d.ts +7 -0
  276. package/dist/types/lib/Utils/uuid.d.ts.map +1 -0
  277. package/dist/types/lib/ZeroPromise/index.d.ts +2 -0
  278. package/dist/types/lib/ZeroPromise/index.d.ts.map +1 -0
  279. package/dist/types/lib/ZeroPromise/zero.d.ts +23 -0
  280. package/dist/types/lib/ZeroPromise/zero.d.ts.map +1 -0
  281. package/dist/types/lib/actions/action.d.ts +14 -0
  282. package/dist/types/lib/actions/action.d.ts.map +1 -0
  283. package/dist/types/lib/actions/animatePresets.d.ts +38 -0
  284. package/dist/types/lib/actions/animatePresets.d.ts.map +1 -0
  285. package/dist/types/lib/actions/animateSwap.d.ts +79 -0
  286. package/dist/types/lib/actions/animateSwap.d.ts.map +1 -0
  287. package/dist/types/lib/actions/animateTypes.d.ts +103 -0
  288. package/dist/types/lib/actions/animateTypes.d.ts.map +1 -0
  289. package/dist/types/lib/actions/asyncAction.d.ts +4 -0
  290. package/dist/types/lib/actions/asyncAction.d.ts.map +1 -0
  291. package/dist/types/lib/actions/asyncActionCache.d.ts +16 -0
  292. package/dist/types/lib/actions/asyncActionCache.d.ts.map +1 -0
  293. package/dist/types/lib/actions/asyncActionPolling.d.ts +14 -0
  294. package/dist/types/lib/actions/asyncActionPolling.d.ts.map +1 -0
  295. package/dist/types/lib/actions/asyncActionTypes.d.ts +74 -0
  296. package/dist/types/lib/actions/asyncActionTypes.d.ts.map +1 -0
  297. package/dist/types/lib/actions/createTimingFunction.d.ts +23 -0
  298. package/dist/types/lib/actions/createTimingFunction.d.ts.map +1 -0
  299. package/dist/types/lib/actions/debounce.d.ts +10 -0
  300. package/dist/types/lib/actions/debounce.d.ts.map +1 -0
  301. package/dist/types/lib/actions/index.d.ts +12 -0
  302. package/dist/types/lib/actions/index.d.ts.map +1 -0
  303. package/dist/types/lib/actions/paginatedAsyncAction.d.ts +121 -0
  304. package/dist/types/lib/actions/paginatedAsyncAction.d.ts.map +1 -0
  305. package/dist/types/lib/actions/taskAction.d.ts +105 -0
  306. package/dist/types/lib/actions/taskAction.d.ts.map +1 -0
  307. package/dist/types/lib/actions/throttle.d.ts +9 -0
  308. package/dist/types/lib/actions/throttle.d.ts.map +1 -0
  309. package/dist/types/lib/css-in-js/cl.d.ts +37 -0
  310. package/dist/types/lib/css-in-js/cl.d.ts.map +1 -0
  311. package/dist/types/lib/css-in-js/index.d.ts +7 -0
  312. package/dist/types/lib/css-in-js/index.d.ts.map +1 -0
  313. package/dist/types/lib/css-in-js/sanitize.d.ts +31 -0
  314. package/dist/types/lib/css-in-js/sanitize.d.ts.map +1 -0
  315. package/dist/types/lib/css-in-js/serialize.d.ts +98 -0
  316. package/dist/types/lib/css-in-js/serialize.d.ts.map +1 -0
  317. package/dist/types/lib/css-in-js/stylesheet.d.ts +188 -0
  318. package/dist/types/lib/css-in-js/stylesheet.d.ts.map +1 -0
  319. package/dist/types/lib/css-in-js/theme.d.ts +110 -0
  320. package/dist/types/lib/css-in-js/theme.d.ts.map +1 -0
  321. package/dist/types/lib/devtools/devtoolsHooks.d.ts +101 -0
  322. package/dist/types/lib/devtools/devtoolsHooks.d.ts.map +1 -0
  323. package/dist/types/lib/devtools/index.d.ts +2 -0
  324. package/dist/types/lib/devtools/index.d.ts.map +1 -0
  325. package/dist/types/lib/index.d.ts +46 -0
  326. package/dist/types/lib/index.d.ts.map +1 -0
  327. package/dist/types/lib/on/hooks.d.ts +319 -0
  328. package/dist/types/lib/on/hooks.d.ts.map +1 -0
  329. package/dist/types/lib/on/index.d.ts +3 -0
  330. package/dist/types/lib/on/index.d.ts.map +1 -0
  331. package/dist/types/lib/on/on.d.ts +16 -0
  332. package/dist/types/lib/on/on.d.ts.map +1 -0
  333. package/dist/types/lib/portals/dialog.d.ts +56 -0
  334. package/dist/types/lib/portals/dialog.d.ts.map +1 -0
  335. package/dist/types/lib/portals/index.d.ts +9 -0
  336. package/dist/types/lib/portals/index.d.ts.map +1 -0
  337. package/dist/types/lib/portals/popup.d.ts +37 -0
  338. package/dist/types/lib/portals/popup.d.ts.map +1 -0
  339. package/dist/types/lib/portals/portal.d.ts +57 -0
  340. package/dist/types/lib/portals/portal.d.ts.map +1 -0
  341. package/dist/types/lib/portals/tip.d.ts +38 -0
  342. package/dist/types/lib/portals/tip.d.ts.map +1 -0
  343. package/dist/types/lib/socket/index.d.ts +2 -0
  344. package/dist/types/lib/socket/index.d.ts.map +1 -0
  345. package/dist/types/lib/socket/ws.d.ts +83 -0
  346. package/dist/types/lib/socket/ws.d.ts.map +1 -0
  347. package/dist/types/lib/ssr/index.d.ts +3 -0
  348. package/dist/types/lib/ssr/index.d.ts.map +1 -0
  349. package/dist/types/lib/ssr/ssr-bridge.d.ts +89 -0
  350. package/dist/types/lib/ssr/ssr-bridge.d.ts.map +1 -0
  351. package/dist/types/lib/ssr/ssrFlag.d.ts +38 -0
  352. package/dist/types/lib/ssr/ssrFlag.d.ts.map +1 -0
  353. package/dist/types/lib/virtualizer/ScrollerController.d.ts +54 -0
  354. package/dist/types/lib/virtualizer/ScrollerController.d.ts.map +1 -0
  355. package/dist/types/lib/virtualizer/Virtualizer.d.ts +214 -0
  356. package/dist/types/lib/virtualizer/Virtualizer.d.ts.map +1 -0
  357. package/dist/types/lib/virtualizer/events.d.ts +27 -0
  358. package/dist/types/lib/virtualizer/events.d.ts.map +1 -0
  359. package/dist/types/lib/virtualizer/layouts/flow.d.ts +123 -0
  360. package/dist/types/lib/virtualizer/layouts/flow.d.ts.map +1 -0
  361. package/dist/types/lib/virtualizer/layouts/grid.d.ts +25 -0
  362. package/dist/types/lib/virtualizer/layouts/grid.d.ts.map +1 -0
  363. package/dist/types/lib/virtualizer/layouts/masonry.d.ts +37 -0
  364. package/dist/types/lib/virtualizer/layouts/masonry.d.ts.map +1 -0
  365. package/dist/types/lib/virtualizer/layouts/shared/BaseLayout.d.ts +204 -0
  366. package/dist/types/lib/virtualizer/layouts/shared/BaseLayout.d.ts.map +1 -0
  367. package/dist/types/lib/virtualizer/layouts/shared/GridBaseLayout.d.ts +41 -0
  368. package/dist/types/lib/virtualizer/layouts/shared/GridBaseLayout.d.ts.map +1 -0
  369. package/dist/types/lib/virtualizer/layouts/shared/Layout.d.ts +138 -0
  370. package/dist/types/lib/virtualizer/layouts/shared/Layout.d.ts.map +1 -0
  371. package/dist/types/lib/virtualizer/layouts/shared/SizeCache.d.ts +19 -0
  372. package/dist/types/lib/virtualizer/layouts/shared/SizeCache.d.ts.map +1 -0
  373. package/dist/types/lib/virtualizer/layouts/shared/SizeGapPaddingBaseLayout.d.ts +57 -0
  374. package/dist/types/lib/virtualizer/layouts/shared/SizeGapPaddingBaseLayout.d.ts.map +1 -0
  375. package/dist/types/lib/virtualizer/mates-adapter.d.ts +201 -0
  376. package/dist/types/lib/virtualizer/mates-adapter.d.ts.map +1 -0
  377. package/dist/types/lib/virtualizer/virtualize.d.ts +52 -0
  378. package/dist/types/lib/virtualizer/virtualize.d.ts.map +1 -0
  379. package/package.json +45 -0
@@ -0,0 +1,3464 @@
1
+ import { event as Ce, html as s, nothing as k, repeat as T, atom as qt, effect as Te, x as Me, render as Jt, isDevToolsInstalled as Ie, installDevToolsHooks as Be, interceptBefore as Le, interceptAfter as Ee, interceptError as Ae } from "mates";
2
+ import { keyframes as Re, globalCSS as ze } from "mates/css-in-js";
3
+ const Kt = "selected", Pe = "selected", He = Re("mates-dt-flash", {
4
+ "0%": { background: "var(--dt-flash-bg)", color: "#fff" },
5
+ "100%": { background: "transparent", color: "var(--dt-text-muted)" }
6
+ }), ot = {
7
+ "&::-webkit-scrollbar": { width: "6px" },
8
+ "&::-webkit-scrollbar-track": { background: "transparent" },
9
+ "&::-webkit-scrollbar-thumb": {
10
+ background: "var(--dt-scrollbar)",
11
+ borderRadius: "3px"
12
+ },
13
+ "&::-webkit-scrollbar-thumb:hover": {
14
+ background: "var(--dt-scrollbar-hover)"
15
+ }
16
+ }, r = ze({
17
+ // ─── Floating Action Button ───────────────────────────────────────────────
18
+ fab: {
19
+ position: "fixed",
20
+ bottom: "50px",
21
+ right: "50px",
22
+ width: "44px",
23
+ height: "44px",
24
+ borderRadius: "50%",
25
+ background: "var(--dt-bg)",
26
+ border: "2px solid var(--dt-border)",
27
+ color: "var(--dt-text-bright)",
28
+ fontSize: "20px",
29
+ lineHeight: "1",
30
+ display: "flex",
31
+ alignItems: "center",
32
+ justifyContent: "center",
33
+ cursor: "grab",
34
+ zIndex: "100000",
35
+ boxShadow: "0 2px 10px rgba(0,0,0,0.4)",
36
+ userSelect: "none",
37
+ transition: "box-shadow 0.15s ease, border-color 0.15s ease, transform 0.1s ease",
38
+ "-webkit-tap-highlight-color": "transparent",
39
+ "&:hover": {
40
+ borderColor: "var(--dt-accent)",
41
+ boxShadow: "0 4px 16px rgba(0,119,230,0.3)"
42
+ },
43
+ "&:active": {
44
+ cursor: "grabbing",
45
+ transform: "scale(0.95)"
46
+ }
47
+ },
48
+ fabDragging: {
49
+ cursor: "grabbing",
50
+ transform: "scale(0.95)"
51
+ },
52
+ // ─── Panel ────────────────────────────────────────────────────────────────
53
+ panel: {
54
+ position: "fixed",
55
+ bottom: "0",
56
+ left: "0",
57
+ right: "0",
58
+ width: "100%",
59
+ height: "320px",
60
+ background: "var(--dt-bg)",
61
+ borderTop: "1px solid var(--dt-border)",
62
+ boxShadow: "0 -2px 12px rgba(0,0,0,0.4)",
63
+ zIndex: "99999",
64
+ display: "flex",
65
+ flexDirection: "column",
66
+ fontFamily: "'SF Mono', 'Fira Code', 'Consolas', monospace",
67
+ fontSize: "13px",
68
+ color: "var(--dt-text)",
69
+ opacity: "0",
70
+ transform: "translateY(12px)",
71
+ transition: "opacity 0.2s ease, transform 0.2s ease",
72
+ pointerEvents: "none"
73
+ },
74
+ panelVisible: {
75
+ opacity: "1",
76
+ transform: "translateY(0)",
77
+ pointerEvents: "all"
78
+ },
79
+ minimized: {
80
+ display: "none"
81
+ },
82
+ // ─── Resize handle ────────────────────────────────────────────────────────
83
+ resizeHandle: {
84
+ position: "absolute",
85
+ top: "0",
86
+ left: "0",
87
+ right: "0",
88
+ height: "4px",
89
+ cursor: "ns-resize",
90
+ zIndex: "1",
91
+ "&:hover": {
92
+ background: "rgba(0,119,230,0.4)"
93
+ }
94
+ },
95
+ // ─── Header ───────────────────────────────────────────────────────────────
96
+ header: {
97
+ display: "flex",
98
+ alignItems: "center",
99
+ justifyContent: "space-between",
100
+ padding: "0 10px",
101
+ height: "38px",
102
+ borderBottom: "1px solid var(--dt-border-2)",
103
+ flexShrink: "0",
104
+ gap: "16px"
105
+ },
106
+ headerLeft: {
107
+ display: "flex",
108
+ alignItems: "center",
109
+ gap: "16px",
110
+ minWidth: "0"
111
+ },
112
+ title: {
113
+ fontWeight: "700",
114
+ fontSize: "12px",
115
+ color: "var(--dt-text-bright)",
116
+ letterSpacing: "0.06em",
117
+ textTransform: "uppercase",
118
+ whiteSpace: "nowrap",
119
+ flexShrink: "0"
120
+ },
121
+ controls: {
122
+ display: "flex",
123
+ alignItems: "center",
124
+ gap: "4px",
125
+ flexShrink: "0"
126
+ },
127
+ button: {
128
+ background: "none",
129
+ border: "none",
130
+ color: "var(--dt-text-muted)",
131
+ cursor: "pointer",
132
+ padding: "4px 6px",
133
+ borderRadius: "4px",
134
+ fontSize: "13px",
135
+ lineHeight: "1",
136
+ display: "flex",
137
+ alignItems: "center",
138
+ justifyContent: "center",
139
+ transition: "background 0.1s, color 0.1s",
140
+ "&:hover": {
141
+ background: "var(--dt-bg-3)",
142
+ color: "var(--dt-text-bright)"
143
+ }
144
+ },
145
+ // ─── Tab bar ──────────────────────────────────────────────────────────────
146
+ tabBar: {
147
+ display: "flex",
148
+ alignItems: "center",
149
+ gap: "4px"
150
+ },
151
+ tabBtn: {
152
+ background: "none",
153
+ border: "none",
154
+ color: "var(--dt-text-muted)",
155
+ cursor: "pointer",
156
+ padding: "4px 12px",
157
+ borderRadius: "4px",
158
+ fontSize: "12px",
159
+ fontFamily: "inherit",
160
+ fontWeight: "500",
161
+ letterSpacing: "0.03em",
162
+ transition: "background 0.1s, color 0.1s",
163
+ position: "relative",
164
+ "&:hover": {
165
+ background: "var(--dt-bg-3)",
166
+ color: "var(--dt-text)"
167
+ },
168
+ "&.active": {
169
+ color: "var(--dt-text-selected)",
170
+ background: "var(--dt-bg-selected)"
171
+ }
172
+ },
173
+ tabBadge: {
174
+ display: "inline-flex",
175
+ alignItems: "center",
176
+ justifyContent: "center",
177
+ background: "var(--dt-accent)",
178
+ color: "#fff",
179
+ borderRadius: "8px",
180
+ fontSize: "10px",
181
+ fontWeight: "700",
182
+ minWidth: "16px",
183
+ height: "16px",
184
+ padding: "0 4px",
185
+ marginLeft: "5px",
186
+ lineHeight: "1"
187
+ },
188
+ // ─── Body (2-column) ──────────────────────────────────────────────────────
189
+ body: {
190
+ display: "flex",
191
+ flex: "1",
192
+ minHeight: "0",
193
+ overflow: "hidden"
194
+ },
195
+ // ─── Left column ──────────────────────────────────────────────────────────
196
+ leftColumn: {
197
+ width: "260px",
198
+ minWidth: "160px",
199
+ borderRight: "1px solid var(--dt-border-2)",
200
+ display: "flex",
201
+ flexDirection: "column",
202
+ flexShrink: "0"
203
+ },
204
+ leftTabs: {
205
+ display: "flex",
206
+ gap: "4px",
207
+ padding: "5px 8px",
208
+ borderBottom: "1px solid var(--dt-border-2)",
209
+ flexShrink: "0"
210
+ },
211
+ leftTabBtn: {
212
+ background: "none",
213
+ border: "none",
214
+ color: "var(--dt-text-dim)",
215
+ cursor: "pointer",
216
+ padding: "3px 6px",
217
+ borderRadius: "3px",
218
+ display: "flex",
219
+ alignItems: "center",
220
+ justifyContent: "center",
221
+ transition: "background 0.1s, color 0.1s",
222
+ "&:hover": {
223
+ background: "var(--dt-bg-3)",
224
+ color: "var(--dt-text)"
225
+ },
226
+ "&.active": {
227
+ background: "var(--dt-bg-selected)",
228
+ color: "var(--dt-text-selected)"
229
+ }
230
+ },
231
+ content: {
232
+ flex: "1",
233
+ overflowY: "auto",
234
+ ...ot
235
+ },
236
+ componentSearch: {
237
+ width: "100%",
238
+ boxSizing: "border-box",
239
+ background: "var(--dt-bg-input)",
240
+ border: "none",
241
+ borderBottom: "1px solid var(--dt-border-2)",
242
+ color: "var(--dt-text)",
243
+ fontFamily: "inherit",
244
+ fontSize: "12px",
245
+ padding: "6px 10px",
246
+ outline: "none",
247
+ flexShrink: "0",
248
+ "&::placeholder": {
249
+ color: "var(--dt-text-dimmer)"
250
+ },
251
+ "&:focus": {
252
+ borderBottomColor: "var(--dt-accent)"
253
+ }
254
+ },
255
+ componentList: {
256
+ listStyle: "none",
257
+ margin: "0",
258
+ padding: "4px 0"
259
+ },
260
+ componentItem: {
261
+ display: "flex",
262
+ alignItems: "center",
263
+ gap: "6px",
264
+ justifyContent: "space-between",
265
+ padding: "5px 8px",
266
+ cursor: "pointer",
267
+ borderRadius: "3px",
268
+ margin: "1px 4px",
269
+ transition: "background 0.1s",
270
+ "&:hover": {
271
+ background: "var(--dt-bg-hover)"
272
+ },
273
+ "&.selected": {
274
+ background: "var(--dt-bg-selected)",
275
+ color: "var(--dt-text-selected)"
276
+ }
277
+ },
278
+ componentName: {
279
+ flex: "1",
280
+ minWidth: "0",
281
+ overflow: "hidden",
282
+ textOverflow: "ellipsis",
283
+ whiteSpace: "nowrap",
284
+ fontSize: "12px",
285
+ color: "var(--dt-text)"
286
+ },
287
+ componentBadge: {
288
+ display: "flex",
289
+ alignItems: "center",
290
+ gap: "6px",
291
+ flexShrink: "0"
292
+ },
293
+ componentBadgeSelected: {
294
+ display: "flex",
295
+ alignItems: "center",
296
+ gap: "6px",
297
+ flexShrink: "0",
298
+ color: "var(--dt-accent)"
299
+ },
300
+ componentCount: {
301
+ fontSize: "11px",
302
+ color: "var(--dt-text-dim)",
303
+ background: "var(--dt-bg-3)",
304
+ borderRadius: "8px",
305
+ padding: "1px 6px",
306
+ minWidth: "18px",
307
+ textAlign: "center"
308
+ },
309
+ componentCountSelected: {
310
+ fontSize: "11px",
311
+ color: "var(--dt-accent)",
312
+ background: "var(--dt-bg-3)",
313
+ borderRadius: "8px",
314
+ padding: "1px 6px",
315
+ minWidth: "18px",
316
+ textAlign: "center"
317
+ },
318
+ componentHighlightBtn: {
319
+ background: "none",
320
+ border: "none",
321
+ color: "var(--dt-text-dim)",
322
+ cursor: "pointer",
323
+ padding: "2px 4px",
324
+ borderRadius: "3px",
325
+ fontSize: "11px",
326
+ lineHeight: "1",
327
+ display: "flex",
328
+ alignItems: "center",
329
+ opacity: "1",
330
+ transition: "color 0.1s",
331
+ "&:hover": {
332
+ color: "var(--dt-accent)"
333
+ }
334
+ },
335
+ componentHighlightBtnSelected: {
336
+ background: "none",
337
+ border: "none",
338
+ color: "var(--dt-accent)",
339
+ cursor: "pointer",
340
+ padding: "2px 4px",
341
+ borderRadius: "3px",
342
+ fontSize: "11px",
343
+ lineHeight: "1",
344
+ display: "flex",
345
+ alignItems: "center",
346
+ opacity: "1",
347
+ transition: "color 0.1s",
348
+ "&:hover": {
349
+ color: "var(--dt-accent)"
350
+ }
351
+ },
352
+ empty: {
353
+ padding: "16px 12px",
354
+ color: "var(--dt-text-dimmer)",
355
+ fontSize: "12px",
356
+ textAlign: "center"
357
+ },
358
+ // ─── Tree view ────────────────────────────────────────────────────────────
359
+ treeToggle: {
360
+ background: "none",
361
+ border: "none",
362
+ color: "var(--dt-text-dim)",
363
+ cursor: "pointer",
364
+ padding: "0 3px",
365
+ fontSize: "11px",
366
+ lineHeight: "1",
367
+ flexShrink: "0",
368
+ width: "16px",
369
+ textAlign: "center",
370
+ "&:hover": {
371
+ color: "var(--dt-text)"
372
+ }
373
+ },
374
+ treeLeaf: {
375
+ display: "inline-block",
376
+ width: "16px",
377
+ flexShrink: "0",
378
+ textAlign: "center",
379
+ color: "var(--dt-text-dim)"
380
+ },
381
+ // ─── Right column: inspector ──────────────────────────────────────────────
382
+ inspector: {
383
+ flex: "1",
384
+ minWidth: "0",
385
+ overflowY: "auto",
386
+ padding: "10px",
387
+ ...ot
388
+ },
389
+ inspectorBreadcrumb: {
390
+ display: "flex",
391
+ alignItems: "center",
392
+ gap: "4px",
393
+ marginBottom: "10px",
394
+ flexWrap: "wrap"
395
+ },
396
+ breadcrumbSegment: {
397
+ color: "var(--dt-text-dim)",
398
+ cursor: "pointer",
399
+ fontSize: "11px",
400
+ "&:hover": {
401
+ color: "var(--dt-text-selected)"
402
+ }
403
+ },
404
+ breadcrumbSeparator: {
405
+ color: "var(--dt-border)",
406
+ fontSize: "11px"
407
+ },
408
+ breadcrumbCurrent: {
409
+ color: "var(--dt-text-selected)",
410
+ fontSize: "11px"
411
+ },
412
+ inspectorTitle: {
413
+ fontWeight: "600",
414
+ fontSize: "13px",
415
+ color: "var(--dt-text-bright)",
416
+ marginBottom: "8px"
417
+ },
418
+ instanceCount: {
419
+ fontSize: "11px",
420
+ color: "var(--dt-text-dim)",
421
+ marginBottom: "8px"
422
+ },
423
+ instanceList: {
424
+ listStyle: "none",
425
+ margin: "0 0 8px 0",
426
+ padding: "0",
427
+ display: "flex",
428
+ flexDirection: "column",
429
+ gap: "4px"
430
+ },
431
+ instanceGroup: {
432
+ border: "1px solid var(--dt-border-2)",
433
+ borderRadius: "4px",
434
+ overflow: "hidden"
435
+ },
436
+ instanceItem: {
437
+ display: "flex",
438
+ alignItems: "center",
439
+ justifyContent: "space-between",
440
+ gap: "6px",
441
+ padding: "5px 10px",
442
+ cursor: "pointer",
443
+ transition: "background 0.1s",
444
+ "&:hover": {
445
+ background: "var(--dt-bg-hover)"
446
+ },
447
+ "&.selected": {
448
+ background: "var(--dt-bg-selected)"
449
+ }
450
+ },
451
+ instanceToggle: {
452
+ background: "none",
453
+ border: "none",
454
+ color: "var(--dt-text-dim)",
455
+ cursor: "pointer",
456
+ padding: "0 3px",
457
+ fontSize: "11px",
458
+ flexShrink: "0",
459
+ "&:hover": {
460
+ color: "var(--dt-text)"
461
+ }
462
+ },
463
+ instanceToggleSelected: {
464
+ background: "none",
465
+ border: "none",
466
+ color: "var(--dt-accent)",
467
+ cursor: "pointer",
468
+ padding: "0 3px",
469
+ fontSize: "11px",
470
+ flexShrink: "0",
471
+ "&:hover": {
472
+ color: "var(--dt-accent)"
473
+ }
474
+ },
475
+ instanceId: {
476
+ fontSize: "11px",
477
+ color: "var(--dt-text-dim)",
478
+ flexShrink: "0",
479
+ marginRight: "2px"
480
+ },
481
+ instanceDetails: {
482
+ margin: "0 0 6px 0",
483
+ padding: "8px 12px",
484
+ borderLeft: "2px solid var(--dt-instance-border)",
485
+ background: "var(--dt-instance-bg)",
486
+ borderRadius: "0 4px 4px 0"
487
+ },
488
+ // ─── Highlight button (inspect in DOM) ───────────────────────────────────
489
+ highlightBtn: {
490
+ background: "none",
491
+ border: "1px solid var(--dt-border)",
492
+ color: "var(--dt-text-muted)",
493
+ cursor: "pointer",
494
+ padding: "2px 7px",
495
+ borderRadius: "3px",
496
+ fontSize: "11px",
497
+ fontFamily: "inherit",
498
+ transition: "border-color 0.1s, color 0.1s",
499
+ "&:hover": {
500
+ borderColor: "var(--dt-accent)",
501
+ color: "var(--dt-accent)"
502
+ }
503
+ },
504
+ // ─── DOM highlight overlay ────────────────────────────────────────────────
505
+ domHighlight: {
506
+ position: "absolute",
507
+ zIndex: "100001",
508
+ pointerEvents: "none",
509
+ border: "2px solid #e53e3e",
510
+ background: "rgba(229,62,62,0.18)",
511
+ borderRadius: "3px",
512
+ transition: "opacity 0.6s ease"
513
+ },
514
+ // ─── Hooks summary ────────────────────────────────────────────────────────
515
+ hooksSummary: {
516
+ display: "flex",
517
+ flexWrap: "wrap",
518
+ gap: "5px",
519
+ marginBottom: "10px"
520
+ },
521
+ hookPill: {
522
+ display: "inline-flex",
523
+ alignItems: "center",
524
+ gap: "4px",
525
+ background: "var(--dt-bg-2)",
526
+ border: "1px solid var(--dt-border)",
527
+ borderRadius: "10px",
528
+ padding: "2px 8px",
529
+ fontSize: "11px"
530
+ },
531
+ hookPillLabel: {
532
+ color: "var(--dt-text-muted)"
533
+ },
534
+ hookPillCount: {
535
+ color: "var(--dt-hook-count)",
536
+ fontWeight: "600"
537
+ },
538
+ // ─── Section / props / atoms ──────────────────────────────────────────────
539
+ sectionHeader: {
540
+ fontSize: "10px",
541
+ fontWeight: "700",
542
+ textTransform: "uppercase",
543
+ letterSpacing: "0.08em",
544
+ color: "var(--dt-text-dim)",
545
+ marginBottom: "4px",
546
+ marginTop: "12px",
547
+ "&:first-child": {
548
+ marginTop: "0"
549
+ }
550
+ },
551
+ propItem: {
552
+ display: "flex",
553
+ alignItems: "baseline",
554
+ gap: "8px",
555
+ padding: "3px 0",
556
+ fontSize: "12px",
557
+ borderBottom: "1px solid var(--dt-border-3)"
558
+ },
559
+ propKey: {
560
+ color: "var(--dt-prop-key)",
561
+ flexShrink: "0",
562
+ minWidth: "80px"
563
+ },
564
+ propValue: {
565
+ color: "var(--dt-prop-val)",
566
+ wordBreak: "break-all"
567
+ },
568
+ scopeItem: {
569
+ padding: "3px 0",
570
+ fontSize: "12px",
571
+ borderBottom: "1px solid var(--dt-border-3)"
572
+ },
573
+ scopeName: {
574
+ color: "var(--dt-scope-name)"
575
+ },
576
+ atomItem: {
577
+ display: "flex",
578
+ alignItems: "baseline",
579
+ gap: "8px",
580
+ padding: "3px 0",
581
+ fontSize: "12px",
582
+ borderBottom: "1px solid var(--dt-border-3)"
583
+ },
584
+ atomName: {
585
+ color: "var(--dt-prop-key)",
586
+ flexShrink: "0",
587
+ minWidth: "80px"
588
+ },
589
+ atomValue: {
590
+ color: "var(--dt-prop-val)",
591
+ wordBreak: "break-all"
592
+ },
593
+ // ─── Highlight flash (render badge) ──────────────────────────────────────
594
+ highlight: {
595
+ display: "inline-block",
596
+ padding: "1px 5px",
597
+ borderRadius: "8px",
598
+ fontSize: "11px",
599
+ color: "var(--dt-text-muted)",
600
+ background: "transparent",
601
+ transition: "background 0.1s, color 0.1s"
602
+ },
603
+ highlightFlash: {
604
+ animation: `${He} 0.6s ease forwards`
605
+ },
606
+ // ─── Logs tab ─────────────────────────────────────────────────────────────
607
+ logsPanel: {
608
+ flex: "1",
609
+ display: "flex",
610
+ flexDirection: "column",
611
+ minHeight: "0",
612
+ overflow: "hidden"
613
+ },
614
+ logsToolbar: {
615
+ display: "flex",
616
+ alignItems: "center",
617
+ justifyContent: "space-between",
618
+ padding: "5px 10px",
619
+ borderBottom: "1px solid var(--dt-border-2)",
620
+ flexShrink: "0",
621
+ gap: "10px"
622
+ },
623
+ logsFilterRow: {
624
+ display: "flex",
625
+ gap: "4px"
626
+ },
627
+ logsFilterBtn: {
628
+ background: "none",
629
+ border: "1px solid var(--dt-border)",
630
+ color: "var(--dt-text-muted)",
631
+ cursor: "pointer",
632
+ padding: "2px 9px",
633
+ borderRadius: "3px",
634
+ fontSize: "11px",
635
+ fontFamily: "inherit",
636
+ transition: "border-color 0.1s, color 0.1s, background 0.1s",
637
+ "&:hover": {
638
+ borderColor: "var(--dt-text-dim)",
639
+ color: "var(--dt-text)"
640
+ },
641
+ "&.active": {
642
+ borderColor: "var(--dt-border-selected)",
643
+ color: "var(--dt-text-selected)",
644
+ background: "var(--dt-bg-active)"
645
+ }
646
+ },
647
+ logsActions: {
648
+ display: "flex",
649
+ gap: "6px",
650
+ alignItems: "center"
651
+ },
652
+ logsCount: {
653
+ fontSize: "11px",
654
+ color: "var(--dt-text-dimmer)"
655
+ },
656
+ logsContainer: {
657
+ flex: "1",
658
+ overflowY: "auto",
659
+ padding: "4px 0",
660
+ ...ot
661
+ },
662
+ logEntry: {
663
+ display: "flex",
664
+ alignItems: "baseline",
665
+ gap: "8px",
666
+ padding: "3px 10px",
667
+ fontSize: "12px",
668
+ borderBottom: "1px solid var(--dt-border-3)",
669
+ "&:hover": {
670
+ background: "var(--dt-bg-hover)"
671
+ }
672
+ },
673
+ logTs: {
674
+ color: "var(--dt-text-dimmer)",
675
+ flexShrink: "0",
676
+ fontSize: "11px",
677
+ minWidth: "56px"
678
+ },
679
+ logBadge: {
680
+ flexShrink: "0",
681
+ padding: "1px 5px",
682
+ borderRadius: "3px",
683
+ fontSize: "10px",
684
+ fontWeight: "700",
685
+ textTransform: "uppercase",
686
+ letterSpacing: "0.05em"
687
+ },
688
+ logLabel: {
689
+ color: "var(--dt-text)",
690
+ flexShrink: "0"
691
+ },
692
+ logDetail: {
693
+ color: "var(--dt-text-muted)",
694
+ wordBreak: "break-all",
695
+ flex: "1",
696
+ minWidth: "0"
697
+ },
698
+ // ─── Performance tab ──────────────────────────────────────────────────────
699
+ perfPanel: {
700
+ flex: "1",
701
+ display: "flex",
702
+ flexDirection: "column",
703
+ minHeight: "0",
704
+ overflow: "hidden"
705
+ },
706
+ perfToolbar: {
707
+ display: "flex",
708
+ alignItems: "center",
709
+ justifyContent: "space-between",
710
+ padding: "5px 10px",
711
+ borderBottom: "1px solid var(--dt-border-2)",
712
+ flexShrink: "0",
713
+ gap: "10px"
714
+ },
715
+ perfTabs: {
716
+ display: "flex",
717
+ gap: "4px"
718
+ },
719
+ perfTabBtn: {
720
+ background: "none",
721
+ border: "1px solid var(--dt-border)",
722
+ color: "var(--dt-text-muted)",
723
+ cursor: "pointer",
724
+ padding: "2px 9px",
725
+ borderRadius: "3px",
726
+ fontSize: "11px",
727
+ fontFamily: "inherit",
728
+ transition: "border-color 0.1s, color 0.1s, background 0.1s",
729
+ "&:hover": {
730
+ borderColor: "var(--dt-text-dim)",
731
+ color: "var(--dt-text)"
732
+ },
733
+ "&.active": {
734
+ borderColor: "var(--dt-border-selected)",
735
+ color: "var(--dt-text-selected)",
736
+ background: "var(--dt-bg-active)"
737
+ }
738
+ },
739
+ perfActions: {
740
+ display: "flex",
741
+ gap: "6px",
742
+ alignItems: "center"
743
+ },
744
+ perfContent: {
745
+ flex: "1",
746
+ overflowY: "auto",
747
+ ...ot
748
+ },
749
+ perfTable: {
750
+ width: "100%",
751
+ borderCollapse: "collapse",
752
+ fontSize: "12px"
753
+ },
754
+ perfTh: {
755
+ padding: "5px 10px",
756
+ textAlign: "left",
757
+ color: "var(--dt-text-dim)",
758
+ fontWeight: "600",
759
+ fontSize: "10px",
760
+ textTransform: "uppercase",
761
+ letterSpacing: "0.06em",
762
+ borderBottom: "1px solid var(--dt-border-2)",
763
+ position: "sticky",
764
+ top: "0",
765
+ background: "var(--dt-bg)"
766
+ },
767
+ perfThRight: {
768
+ textAlign: "right"
769
+ },
770
+ perfRow: {
771
+ borderBottom: "1px solid var(--dt-border-3)",
772
+ "&:hover": {
773
+ background: "var(--dt-bg-hover)"
774
+ }
775
+ },
776
+ perfRowClickable: {
777
+ cursor: "pointer"
778
+ },
779
+ perfCell: {
780
+ padding: "4px 10px",
781
+ verticalAlign: "middle"
782
+ },
783
+ perfName: {
784
+ color: "var(--dt-text)",
785
+ fontWeight: "500"
786
+ },
787
+ perfNum: {
788
+ textAlign: "right",
789
+ color: "var(--dt-text-muted)",
790
+ fontVariantNumeric: "tabular-nums"
791
+ },
792
+ perfBarWrap: {
793
+ width: "80px",
794
+ height: "6px",
795
+ background: "var(--dt-bg-3)",
796
+ borderRadius: "3px",
797
+ overflow: "hidden",
798
+ display: "inline-block",
799
+ verticalAlign: "middle"
800
+ },
801
+ perfBar: {
802
+ height: "100%",
803
+ background: "var(--dt-accent)",
804
+ borderRadius: "3px",
805
+ transition: "width 0.2s ease"
806
+ },
807
+ perfBarLabel: {
808
+ fontSize: "11px",
809
+ color: "var(--dt-text-dim)",
810
+ marginLeft: "5px"
811
+ }
812
+ }), At = /* @__PURE__ */ new Set(), lt = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), bt = Ce("devtools");
813
+ function Fe(t, e) {
814
+ try {
815
+ At.add(t);
816
+ let n = lt.get(e);
817
+ n || (n = /* @__PURE__ */ new Set(), lt.set(e, n)), n.add(t), dt.set(t, 1), bt.trigger({ type: "mount", component: t });
818
+ } catch {
819
+ }
820
+ }
821
+ function Oe(t, e) {
822
+ try {
823
+ if (At.delete(t), e) {
824
+ const n = lt.get(e);
825
+ n && n.delete(t);
826
+ }
827
+ bt.trigger({ type: "unmount", component: t });
828
+ } catch {
829
+ }
830
+ }
831
+ function De(t) {
832
+ try {
833
+ const e = dt.get(t) ?? 0;
834
+ dt.set(t, e + 1), bt.trigger({ type: "render", component: t });
835
+ } catch {
836
+ }
837
+ }
838
+ function xt(t) {
839
+ try {
840
+ return dt.get(t) ?? 0;
841
+ } catch {
842
+ }
843
+ return 0;
844
+ }
845
+ function Z(t) {
846
+ try {
847
+ return t._depth ?? 0;
848
+ } catch {
849
+ }
850
+ return 0;
851
+ }
852
+ function Tt(t) {
853
+ try {
854
+ return t._parentComponent ?? null;
855
+ } catch {
856
+ }
857
+ return null;
858
+ }
859
+ function Qt() {
860
+ try {
861
+ return Array.from(At).filter((t) => {
862
+ const e = t._view || t.oldView;
863
+ return !e?.__devtools__ && !e?.skipDevToolsRender;
864
+ });
865
+ } catch {
866
+ }
867
+ return [];
868
+ }
869
+ function _r(t) {
870
+ try {
871
+ const e = lt.get(t);
872
+ return e ? Array.from(e) : [];
873
+ } catch {
874
+ }
875
+ return [];
876
+ }
877
+ function tt(t) {
878
+ try {
879
+ return (t._view || t.oldView)?.name || "Anonymous";
880
+ } catch {
881
+ }
882
+ return "";
883
+ }
884
+ function Ne(t) {
885
+ try {
886
+ return t._view || t.oldView || null;
887
+ } catch {
888
+ }
889
+ return null;
890
+ }
891
+ function je() {
892
+ try {
893
+ const t = Qt(), e = /* @__PURE__ */ new Map();
894
+ for (const o of t) {
895
+ const i = Ne(o);
896
+ if (!i) continue;
897
+ let c = e.get(i);
898
+ c || (c = [], e.set(i, c)), c.push(o);
899
+ }
900
+ const n = [];
901
+ for (const [o, i] of e)
902
+ n.push({
903
+ viewFn: o,
904
+ name: o.name || "Anonymous",
905
+ instances: i
906
+ });
907
+ try {
908
+ n.sort((o, i) => {
909
+ const c = (a) => a.instances.reduce(
910
+ (d, l) => Math.min(d, Z(l)),
911
+ 1 / 0
912
+ );
913
+ return c(o) - c(i);
914
+ });
915
+ } catch {
916
+ }
917
+ return n;
918
+ } catch {
919
+ }
920
+ return [];
921
+ }
922
+ const f = {
923
+ row: "display:flex;align-items:baseline;gap:4px;font-size:13px;line-height:20px;font-family:'SF Mono',Monaco,Consolas,monospace;",
924
+ toggle: "cursor:pointer;background:none;border:none;color:#888;font-size:10px;padding:0 2px;width:14px;text-align:center;flex-shrink:0;",
925
+ key: "color:#9cdcfe;white-space:nowrap;",
926
+ colon: "color:#777;",
927
+ string: "color:#ce9178;",
928
+ number: "color:#b5cea8;",
929
+ boolean: "color:#569cd6;",
930
+ null: "color:#569cd6;font-style:italic;",
931
+ undefined: "color:#777;font-style:italic;",
932
+ function: "color:#dcdcaa;font-style:italic;",
933
+ symbol: "color:#c586c0;",
934
+ preview: "color:#888;font-style:italic;",
935
+ children: "margin-left:14px;padding-left:6px;border-left:1px solid #333;",
936
+ badge: "color:#777;font-size:11px;margin-left:4px;background:#2a2a2a;padding:0 4px;border-radius:3px;"
937
+ }, jt = /* @__PURE__ */ new WeakMap();
938
+ let Zt = null;
939
+ function te(t) {
940
+ try {
941
+ Zt = t;
942
+ } catch {
943
+ }
944
+ }
945
+ function ee(t) {
946
+ try {
947
+ let e = jt.get(t);
948
+ return e || (e = /* @__PURE__ */ new Set(), jt.set(t, e)), e;
949
+ } catch {
950
+ return /* @__PURE__ */ new Set();
951
+ }
952
+ }
953
+ function Ve(t, e) {
954
+ try {
955
+ return ee(t).has(e);
956
+ } catch {
957
+ return !1;
958
+ }
959
+ }
960
+ function We(t, e) {
961
+ try {
962
+ const n = ee(t);
963
+ n.has(e) ? n.delete(e) : n.add(e);
964
+ try {
965
+ Zt?.();
966
+ } catch {
967
+ }
968
+ } catch {
969
+ }
970
+ }
971
+ function Ge(t) {
972
+ try {
973
+ return t == null ? !1 : typeof t == "object";
974
+ } catch {
975
+ return !1;
976
+ }
977
+ }
978
+ function vt(t) {
979
+ try {
980
+ return t === null ? "null" : t === void 0 ? "undefined" : Array.isArray(t) ? "array" : t instanceof Date ? "date" : t instanceof RegExp ? "regexp" : t instanceof Map ? "map" : t instanceof Set ? "set" : typeof t;
981
+ } catch {
982
+ return "";
983
+ }
984
+ }
985
+ function Vt(t, e = 60) {
986
+ try {
987
+ const n = vt(t);
988
+ if (n === "array") {
989
+ const o = t;
990
+ if (o.length === 0) return "[]";
991
+ const i = o.slice(0, 5).map((a) => Wt(a)).join(", "), c = o.length > 5 ? ", …" : "";
992
+ return `[${i}${c}] (${o.length})`;
993
+ }
994
+ if (n === "map")
995
+ return `Map(${t.size})`;
996
+ if (n === "set")
997
+ return `Set(${t.size})`;
998
+ if (n === "date")
999
+ return `Date(${t.toISOString()})`;
1000
+ if (n === "regexp")
1001
+ return String(t);
1002
+ if (n === "object") {
1003
+ const o = t, i = Object.keys(o);
1004
+ if (i.length === 0) return "{}";
1005
+ const c = i.slice(0, 4).map((l) => `${l}: ${Wt(o[l])}`).join(", "), a = i.length > 4 ? ", …" : "", d = `{${c}${a}}`;
1006
+ return d.length > e ? d.slice(0, e - 1) + "…}" : d;
1007
+ }
1008
+ return String(t);
1009
+ } catch {
1010
+ return "";
1011
+ }
1012
+ }
1013
+ function Wt(t) {
1014
+ try {
1015
+ switch (vt(t)) {
1016
+ case "string": {
1017
+ const n = t;
1018
+ return n.length > 30 ? `"${n.slice(0, 27)}…"` : `"${n}"`;
1019
+ }
1020
+ case "number":
1021
+ case "boolean":
1022
+ return String(t);
1023
+ case "null":
1024
+ return "null";
1025
+ case "undefined":
1026
+ return "undefined";
1027
+ case "function":
1028
+ return "ƒ()";
1029
+ case "symbol":
1030
+ return String(t);
1031
+ case "array":
1032
+ return `Array(${t.length})`;
1033
+ case "object":
1034
+ return "{…}";
1035
+ case "date":
1036
+ return "Date";
1037
+ case "map":
1038
+ return `Map(${t.size})`;
1039
+ case "set":
1040
+ return `Set(${t.size})`;
1041
+ default:
1042
+ return String(t);
1043
+ }
1044
+ } catch {
1045
+ return "";
1046
+ }
1047
+ }
1048
+ function Ye(t) {
1049
+ try {
1050
+ switch (vt(t)) {
1051
+ case "string":
1052
+ return s`<span style="${f.string}">"${String(t)}"</span>`;
1053
+ case "number":
1054
+ return s`<span style="${f.number}">${String(t)}</span>`;
1055
+ case "boolean":
1056
+ return s`<span style="${f.boolean}">${String(t)}</span>`;
1057
+ case "null":
1058
+ return s`<span style="${f.null}">null</span>`;
1059
+ case "undefined":
1060
+ return s`<span style="${f.undefined}">undefined</span>`;
1061
+ case "function":
1062
+ return s`<span style="${f.function}"
1063
+ >ƒ ${t.name || "anonymous"}()</span
1064
+ >`;
1065
+ case "symbol":
1066
+ return s`<span style="${f.symbol}">${String(t)}</span>`;
1067
+ case "date":
1068
+ return s`<span style="${f.string}"
1069
+ >${t.toISOString()}</span
1070
+ >`;
1071
+ case "regexp":
1072
+ return s`<span style="${f.string}">${String(t)}</span>`;
1073
+ default:
1074
+ return s`<span style="${f.preview}">${String(t)}</span>`;
1075
+ }
1076
+ } catch {
1077
+ return s``;
1078
+ }
1079
+ }
1080
+ function Ue(t) {
1081
+ try {
1082
+ if (t instanceof Map)
1083
+ return Array.from(t.entries()).map(([e, n]) => ({
1084
+ key: String(e),
1085
+ value: n
1086
+ }));
1087
+ if (t instanceof Set)
1088
+ return Array.from(t).map((e, n) => ({
1089
+ key: String(n),
1090
+ value: e
1091
+ }));
1092
+ if (Array.isArray(t))
1093
+ return t.map((e, n) => ({
1094
+ key: String(n),
1095
+ value: e
1096
+ }));
1097
+ if (typeof t == "object" && t !== null) {
1098
+ const e = [], n = /* @__PURE__ */ new Set();
1099
+ for (const i of Object.keys(t)) {
1100
+ n.add(i);
1101
+ try {
1102
+ e.push({ key: i, value: t[i] });
1103
+ } catch {
1104
+ e.push({ key: i, value: "[error reading]" });
1105
+ }
1106
+ }
1107
+ let o = Object.getPrototypeOf(t);
1108
+ for (; o && o !== Object.prototype; ) {
1109
+ for (const i of Object.getOwnPropertyNames(o)) {
1110
+ if (n.has(i) || i === "constructor") continue;
1111
+ if (Object.getOwnPropertyDescriptor(o, i)?.get) {
1112
+ n.add(i);
1113
+ try {
1114
+ e.push({ key: i, value: t[i] });
1115
+ } catch {
1116
+ e.push({ key: i, value: "[error reading]" });
1117
+ }
1118
+ }
1119
+ }
1120
+ o = Object.getPrototypeOf(o);
1121
+ }
1122
+ return e;
1123
+ }
1124
+ return [];
1125
+ } catch {
1126
+ return [];
1127
+ }
1128
+ }
1129
+ function O(t, e, n, o = "root", i = 0) {
1130
+ try {
1131
+ if (i > 15)
1132
+ return s`
1133
+ <div style="${f.row}">
1134
+ ${e != null ? s`<span style="${f.key}">${e}</span
1135
+ ><span style="${f.colon}">:</span>` : k}
1136
+ <span style="${f.preview}">[max depth]</span>
1137
+ </div>
1138
+ `;
1139
+ const c = Ge(n), a = c && Ve(t, o);
1140
+ if (!c)
1141
+ return s`
1142
+ <div style="${f.row}">
1143
+ <span style="${f.toggle}"></span>
1144
+ ${e != null ? s`<span style="${f.key}">${e}</span
1145
+ ><span style="${f.colon}">:</span>` : k}
1146
+ ${Ye(n)}
1147
+ </div>
1148
+ `;
1149
+ const d = a ? Ue(n) : [], l = vt(n);
1150
+ return s`
1151
+ <div>
1152
+ <div
1153
+ style="${f.row}cursor:pointer;user-select:none;"
1154
+ @click=${(u) => {
1155
+ try {
1156
+ u.stopPropagation(), We(t, o);
1157
+ } catch {
1158
+ }
1159
+ }}
1160
+ >
1161
+ <span style="${f.toggle}">${a ? "▼" : "▶"}</span>
1162
+ ${e != null ? s`<span style="${f.key}">${e}</span
1163
+ ><span style="${f.colon}">:</span>` : k}
1164
+ ${a ? s`<span style="${f.preview}"
1165
+ >${l === "array" ? `Array(${n.length})` : l === "object" ? "{" : Vt(n)}</span
1166
+ >` : s`<span style="${f.preview}">${Vt(n)}</span>`}
1167
+ </div>
1168
+ ${a ? s`
1169
+ <div style="${f.children}">
1170
+ ${d.map(
1171
+ (u) => O(
1172
+ t,
1173
+ u.key,
1174
+ u.value,
1175
+ `${o}.${u.key}`,
1176
+ i + 1
1177
+ )
1178
+ )}
1179
+ ${d.length === 0 ? s`<div style="${f.row}">
1180
+ <span style="${f.preview}">(empty)</span>
1181
+ </div>` : k}
1182
+ </div>
1183
+ ${l === "object" && a ? s`<div style="${f.row};margin-left:14px;">
1184
+ <span style="${f.preview}">}</span>
1185
+ </div>` : k}
1186
+ ` : k}
1187
+ </div>
1188
+ `;
1189
+ } catch {
1190
+ return s``;
1191
+ }
1192
+ }
1193
+ function wr(t, e, n = "root") {
1194
+ try {
1195
+ const o = Object.keys(e);
1196
+ return o.length === 0 ? s`<div style="color:#777;font-size:13px;padding:2px 0;">
1197
+ No data
1198
+ </div>` : s`
1199
+ ${o.map(
1200
+ (i) => O(t, i, e[i], `${n}.${i}`, 0)
1201
+ )}
1202
+ `;
1203
+ } catch {
1204
+ return s``;
1205
+ }
1206
+ }
1207
+ function Xe(t) {
1208
+ try {
1209
+ const e = Object.keys(t);
1210
+ return e.length === 0 ? s`<div style="color: #777; font-size: 13px;">No props</div>` : s`
1211
+ ${T(
1212
+ e,
1213
+ (n) => n,
1214
+ (n) => O(t, n, t[n], `props.${n}`, 0)
1215
+ )}
1216
+ `;
1217
+ } catch {
1218
+ return s``;
1219
+ }
1220
+ }
1221
+ function qe(t) {
1222
+ try {
1223
+ return !t || t.size === 0 ? s`<div style="color: #777; font-size: 13px;">No scopes</div>` : s`
1224
+ ${[...t?.entries() || []].map(
1225
+ ([e, n]) => {
1226
+ try {
1227
+ const o = e.name || "AnonymousScope", i = {}, c = /* @__PURE__ */ new Set();
1228
+ for (const l of Object.keys(n))
1229
+ if (!(l === "__isScope___" || l === "reset")) {
1230
+ c.add(l);
1231
+ try {
1232
+ const u = n[l];
1233
+ u && typeof u == "function" && u.__isAtom___ ? i[`${l} (atom)`] = u.get() : i[l] = u;
1234
+ } catch {
1235
+ i[l] = "[error reading]";
1236
+ }
1237
+ }
1238
+ let a = Object.getPrototypeOf(n);
1239
+ for (; a && a !== Object.prototype; ) {
1240
+ for (const l of Object.getOwnPropertyNames(a)) {
1241
+ if (c.has(l) || l === "constructor" || l === "__isScope___" || l === "reset")
1242
+ continue;
1243
+ if (Object.getOwnPropertyDescriptor(a, l)?.get) {
1244
+ c.add(l);
1245
+ try {
1246
+ i[`${l} (get)`] = n[l];
1247
+ } catch {
1248
+ i[`${l} (get)`] = "[error reading]";
1249
+ }
1250
+ }
1251
+ }
1252
+ a = Object.getPrototypeOf(a);
1253
+ }
1254
+ const d = n;
1255
+ return s`
1256
+ <div style="margin-bottom:6px;">
1257
+ <div
1258
+ style="color:#4ec9b0;font-weight:500;font-size:13px;margin-bottom:2px;font-family:'SF Mono',Monaco,Consolas,monospace;"
1259
+ >
1260
+ ${o}
1261
+ </div>
1262
+ <div style="margin-left:4px;">
1263
+ ${Object.keys(i).length === 0 ? s`<div style="color:#666;font-size:13px;">
1264
+ (empty scope)
1265
+ </div>` : s`
1266
+ ${Object.keys(i).map(
1267
+ (l) => O(
1268
+ d,
1269
+ l,
1270
+ i[l],
1271
+ `scope_${o}.${l}`,
1272
+ 0
1273
+ )
1274
+ )}
1275
+ `}
1276
+ </div>
1277
+ </div>
1278
+ `;
1279
+ } catch {
1280
+ return s``;
1281
+ }
1282
+ }
1283
+ )}
1284
+ `;
1285
+ } catch {
1286
+ return s``;
1287
+ }
1288
+ }
1289
+ function Je(t) {
1290
+ try {
1291
+ if (!t) return [];
1292
+ const e = [];
1293
+ for (const n of t.keys())
1294
+ if (n && typeof n == "function" && n.__isAtom___)
1295
+ try {
1296
+ e.push({
1297
+ id: n.__id__ ?? "?",
1298
+ value: n.get(),
1299
+ key: n
1300
+ });
1301
+ } catch {
1302
+ }
1303
+ return e;
1304
+ } catch {
1305
+ return [];
1306
+ }
1307
+ }
1308
+ function Ke(t) {
1309
+ try {
1310
+ const e = Je(t);
1311
+ return e.length === 0 ? s`<div style="color: #777; font-size: 13px;">No atoms</div>` : s`
1312
+ ${T(
1313
+ e,
1314
+ (n) => n.id,
1315
+ (n, o) => {
1316
+ const i = e.length === 1 ? "atom" : `atom#${o + 1}`, c = typeof n.value == "object" && n.value !== null ? n.value : n.key;
1317
+ return O(c, i, n.value, `atom_${n.id}`, 0);
1318
+ }
1319
+ )}
1320
+ `;
1321
+ } catch {
1322
+ return s``;
1323
+ }
1324
+ }
1325
+ function Qe(t) {
1326
+ try {
1327
+ return !t || t.length === 0 ? s`<div style="color: #777; font-size: 13px;">No state</div>` : s`
1328
+ ${t.map((e, n) => {
1329
+ const o = t.length === 1 ? "state" : `state#${n + 1}`;
1330
+ let i;
1331
+ try {
1332
+ i = e.atom.get();
1333
+ } catch {
1334
+ i = e.state;
1335
+ }
1336
+ return O(i, o, i, `useState_${n}`, 0);
1337
+ })}
1338
+ `;
1339
+ } catch {
1340
+ return s``;
1341
+ }
1342
+ }
1343
+ function Ze(t) {
1344
+ try {
1345
+ const e = {
1346
+ onMount: 0,
1347
+ onCleanup: 0,
1348
+ onPaint: 0,
1349
+ onAllMount: 0,
1350
+ effects: 0,
1351
+ on: 0,
1352
+ setters: 0,
1353
+ useState: 0,
1354
+ atoms: 0,
1355
+ events: 0,
1356
+ channels: 0
1357
+ }, n = t._useStates;
1358
+ n && (e.useState = n.length);
1359
+ const o = t.cleanups;
1360
+ if (!o) return e;
1361
+ for (const i of o.keys())
1362
+ if (i != null) {
1363
+ if (i.__isAtom___) {
1364
+ e.atoms++;
1365
+ continue;
1366
+ }
1367
+ if (i.__isSetter___) {
1368
+ e.setters++;
1369
+ continue;
1370
+ }
1371
+ if (i.__isCleanupEvent___) {
1372
+ e.events++;
1373
+ continue;
1374
+ }
1375
+ if (i.__isEvent___) {
1376
+ e.events++;
1377
+ continue;
1378
+ }
1379
+ if (i.__isChannel___) {
1380
+ e.channels++;
1381
+ continue;
1382
+ }
1383
+ if (i.__isOnMount__) {
1384
+ e.onMount++;
1385
+ continue;
1386
+ }
1387
+ if (i.__isOnCleanup__) {
1388
+ e.onCleanup++;
1389
+ continue;
1390
+ }
1391
+ if (i.__isOnPaint__) {
1392
+ e.onPaint++;
1393
+ continue;
1394
+ }
1395
+ if (i.__isOnAllMount__) {
1396
+ e.onAllMount++;
1397
+ continue;
1398
+ }
1399
+ if (i.__isEffect__) {
1400
+ e.effects++;
1401
+ continue;
1402
+ }
1403
+ if (i.__isOn__) {
1404
+ e.on++;
1405
+ continue;
1406
+ }
1407
+ }
1408
+ return e;
1409
+ } catch {
1410
+ return {
1411
+ onMount: 0,
1412
+ onCleanup: 0,
1413
+ onPaint: 0,
1414
+ onAllMount: 0,
1415
+ effects: 0,
1416
+ on: 0,
1417
+ setters: 0,
1418
+ useState: 0,
1419
+ atoms: 0,
1420
+ events: 0,
1421
+ channels: 0
1422
+ };
1423
+ }
1424
+ }
1425
+ function tn(t, e) {
1426
+ try {
1427
+ return s`
1428
+ <span class="${r.hookPill}">
1429
+ <span class="${r.hookPillLabel}">${t}</span>
1430
+ <span class="${r.hookPillCount}">${e}</span>
1431
+ </span>
1432
+ `;
1433
+ } catch {
1434
+ return s``;
1435
+ }
1436
+ }
1437
+ function ne(t) {
1438
+ try {
1439
+ const e = Ze(t), n = [];
1440
+ return e.onMount > 0 && n.push({ label: "onMount", count: e.onMount }), e.onCleanup > 0 && n.push({ label: "onCleanup", count: e.onCleanup }), e.onPaint > 0 && n.push({ label: "onPaint", count: e.onPaint }), e.onAllMount > 0 && n.push({ label: "onAllMount", count: e.onAllMount }), e.effects > 0 && n.push({ label: "effect", count: e.effects }), e.on > 0 && n.push({ label: "on", count: e.on }), e.setters > 0 && n.push({ label: "setter", count: e.setters }), e.useState > 0 && n.push({ label: "useState", count: e.useState }), e.atoms > 0 && n.push({ label: "atom", count: e.atoms }), e.events > 0 && n.push({ label: "event", count: e.events }), e.channels > 0 && n.push({ label: "channel", count: e.channels }), n.length === 0 ? k : s`
1441
+ <div class="${r.hooksSummary}">
1442
+ ${n.map((o) => tn(o.label, o.count))}
1443
+ </div>
1444
+ `;
1445
+ } catch {
1446
+ return s``;
1447
+ }
1448
+ }
1449
+ function en(t, e) {
1450
+ try {
1451
+ t.stopPropagation(), st(e);
1452
+ } catch {
1453
+ }
1454
+ }
1455
+ function nn(t) {
1456
+ try {
1457
+ const e = [];
1458
+ let n = Tt(t);
1459
+ for (; n; )
1460
+ e.push(tt(n)), n = Tt(n);
1461
+ return e.reverse(), e;
1462
+ } catch {
1463
+ return [];
1464
+ }
1465
+ }
1466
+ function re(t) {
1467
+ try {
1468
+ const e = nn(t), n = tt(t);
1469
+ if (e.length === 0)
1470
+ return s`
1471
+ <div class="${r.inspectorBreadcrumb}">
1472
+ <span class="${r.breadcrumbSegment} ${r.breadcrumbCurrent}"
1473
+ >${n}</span
1474
+ >
1475
+ </div>
1476
+ `;
1477
+ const o = [];
1478
+ for (let i = 0; i < e.length; i++)
1479
+ i > 0 && o.push(
1480
+ s`<span class="${r.breadcrumbSeparator}">›</span>`
1481
+ ), o.push(
1482
+ s`<span class="${r.breadcrumbSegment}">${e[i]}</span>`
1483
+ );
1484
+ return o.push(s`<span class="${r.breadcrumbSeparator}">›</span>`), o.push(
1485
+ s`<span class="${r.breadcrumbSegment} ${r.breadcrumbCurrent}"
1486
+ >${n}</span
1487
+ >`
1488
+ ), s` <div class="${r.inspectorBreadcrumb}">${o}</div> `;
1489
+ } catch {
1490
+ return s``;
1491
+ }
1492
+ }
1493
+ function oe(t) {
1494
+ try {
1495
+ return s`
1496
+ <div class="${r.instanceDetails}">
1497
+ <div class="${r.sectionHeader}">Props</div>
1498
+ ${Xe(t._props || {})}
1499
+
1500
+ <div class="${r.sectionHeader}">State</div>
1501
+ ${Qe(t._useStates)}
1502
+
1503
+ <div class="${r.sectionHeader}">Atoms</div>
1504
+ ${Ke(t.cleanups)}
1505
+
1506
+ <div class="${r.sectionHeader}">Scopes</div>
1507
+ ${qe(t.scopes)}
1508
+ </div>
1509
+ `;
1510
+ } catch {
1511
+ return s``;
1512
+ }
1513
+ }
1514
+ function Gt() {
1515
+ try {
1516
+ return s`
1517
+ <div class="${r.inspector}">
1518
+ <div class="${r.empty}">Select a component to inspect</div>
1519
+ </div>
1520
+ `;
1521
+ } catch {
1522
+ return s``;
1523
+ }
1524
+ }
1525
+ function Yt(t) {
1526
+ try {
1527
+ const e = tt(t), n = t.componentId, o = Z(t), i = xt(t);
1528
+ return s`
1529
+ <div class="${r.inspector}">
1530
+ ${re(t)}
1531
+ <div class="${r.inspectorTitle}">
1532
+ <span>${e}</span>
1533
+ <span class="${r.instanceCount}">
1534
+ #${n.toString().slice(2, 6)} · depth ${o} · renders ${i}
1535
+ </span>
1536
+ <button
1537
+ class="${r.highlightBtn}"
1538
+ style="opacity: 1;"
1539
+ @click=${(c) => {
1540
+ try {
1541
+ en(c, t);
1542
+ } catch {
1543
+ }
1544
+ }}
1545
+ title="Highlight in DOM"
1546
+ >
1547
+ <svg
1548
+ xmlns="http://www.w3.org/2000/svg"
1549
+ width="14"
1550
+ height="14"
1551
+ viewBox="0 0 24 24"
1552
+ fill="none"
1553
+ stroke="currentColor"
1554
+ stroke-width="2"
1555
+ stroke-linecap="round"
1556
+ stroke-linejoin="round"
1557
+ >
1558
+ <circle cx="11" cy="11" r="8" />
1559
+ <line x1="21" y1="21" x2="16.65" y2="16.65" />
1560
+ </svg>
1561
+ </button>
1562
+ </div>
1563
+
1564
+ ${ne(t)} ${oe(t)}
1565
+ </div>
1566
+ `;
1567
+ } catch {
1568
+ return s``;
1569
+ }
1570
+ }
1571
+ function rn(t, e, n, o) {
1572
+ try {
1573
+ const { name: i, instances: c } = t;
1574
+ return s`
1575
+ <div class="${r.inspector}">
1576
+ <div class="${r.inspectorTitle}">
1577
+ <span>${i}</span>
1578
+ <span class="${r.instanceCount}">
1579
+ ${c.length} instance${c.length !== 1 ? "s" : ""}
1580
+ </span>
1581
+ </div>
1582
+
1583
+ <ul class="${r.instanceList}">
1584
+ ${T(
1585
+ c,
1586
+ (a) => a.componentId,
1587
+ (a) => {
1588
+ const d = a.componentId, l = Z(a), u = xt(a), y = e === d;
1589
+ return s`
1590
+ <li class="${r.instanceGroup}">
1591
+ <div
1592
+ class="${r.instanceItem} ${y ? Pe : ""}"
1593
+ @click=${() => {
1594
+ try {
1595
+ n(d);
1596
+ } catch {
1597
+ }
1598
+ }}
1599
+ >
1600
+ <span
1601
+ class="${r.instanceToggle} ${y ? r.instanceToggleSelected : ""}"
1602
+ >${y ? "▼" : "▶"}</span
1603
+ >
1604
+ <span class="${r.instanceId}"
1605
+ >#${d.toString().slice(2, 6)}</span
1606
+ >
1607
+ <span class="${r.componentBadge}">depth ${l}</span>
1608
+ <span class="${r.componentBadge}"
1609
+ >renders ${u}</span
1610
+ >
1611
+ <button
1612
+ class="${r.componentHighlightBtn}"
1613
+ @click=${(g) => {
1614
+ try {
1615
+ g.stopPropagation(), o(a);
1616
+ } catch {
1617
+ }
1618
+ }}
1619
+ title="Highlight in page"
1620
+ >
1621
+ <svg
1622
+ xmlns="http://www.w3.org/2000/svg"
1623
+ width="12"
1624
+ height="12"
1625
+ viewBox="0 0 24 24"
1626
+ fill="none"
1627
+ stroke="currentColor"
1628
+ stroke-width="2"
1629
+ stroke-linecap="round"
1630
+ stroke-linejoin="round"
1631
+ >
1632
+ <circle cx="11" cy="11" r="8" />
1633
+ <line x1="21" y1="21" x2="16.65" y2="16.65" />
1634
+ </svg>
1635
+ </button>
1636
+ </div>
1637
+ ${y ? s`
1638
+ ${re(a)} ${ne(a)}
1639
+ ${oe(a)}
1640
+ ` : k}
1641
+ </li>
1642
+ `;
1643
+ }
1644
+ )}
1645
+ </ul>
1646
+ </div>
1647
+ `;
1648
+ } catch {
1649
+ return s``;
1650
+ }
1651
+ }
1652
+ function Ut(t) {
1653
+ try {
1654
+ if ("selectedComponent" in t && t.selectedComponent !== void 0)
1655
+ return t.selectedComponent ? Yt(t.selectedComponent) : Gt();
1656
+ const { selectedGroup: e, selectedInstanceId: n, onSelectInstance: o, onHighlight: i } = t;
1657
+ return e ? e.instances.length === 1 ? Yt(e.instances[0]) : rn(
1658
+ e,
1659
+ n,
1660
+ o,
1661
+ i
1662
+ ) : Gt();
1663
+ } catch {
1664
+ return s``;
1665
+ }
1666
+ }
1667
+ const I = /* @__PURE__ */ new Set();
1668
+ let V = null, W = null, G = null, Y = null, ut = !1, pt = !1;
1669
+ const ft = qt(0);
1670
+ ft.skipDevToolsLog = !0;
1671
+ function A() {
1672
+ try {
1673
+ ft.set(I.size);
1674
+ } catch {
1675
+ }
1676
+ }
1677
+ function U(t) {
1678
+ pt = !0;
1679
+ try {
1680
+ return t();
1681
+ } finally {
1682
+ pt = !1;
1683
+ }
1684
+ }
1685
+ function on() {
1686
+ try {
1687
+ if (ut) return;
1688
+ ut = !0, V = window.setTimeout, W = window.setInterval, G = window.clearTimeout, Y = window.clearInterval;
1689
+ const t = V, e = W, n = G, o = Y;
1690
+ window.setTimeout = function(c, a, ...d) {
1691
+ let l;
1692
+ try {
1693
+ if (typeof c != "function")
1694
+ return l = t(c, a, ...d), l;
1695
+ const u = c;
1696
+ l = t(function(...g) {
1697
+ try {
1698
+ return I.delete(l) && A(), u.apply(this, g.length ? g : d);
1699
+ } catch {
1700
+ }
1701
+ }, a, ...d), pt || (I.add(l), A());
1702
+ } catch {
1703
+ l = t(c, a, ...d);
1704
+ }
1705
+ return l;
1706
+ }, window.setInterval = function(c, a, ...d) {
1707
+ let l;
1708
+ try {
1709
+ if (typeof c != "function")
1710
+ return l = e(c, a, ...d), l;
1711
+ const u = c;
1712
+ l = e(function(...g) {
1713
+ try {
1714
+ return u.apply(this, g.length ? g : d);
1715
+ } catch {
1716
+ }
1717
+ }, a, ...d), pt || (I.add(l), A());
1718
+ } catch {
1719
+ l = e(c, a, ...d);
1720
+ }
1721
+ return l;
1722
+ }, window.clearTimeout = function(c) {
1723
+ try {
1724
+ c !== void 0 && I.delete(c) && A();
1725
+ } catch {
1726
+ }
1727
+ n(c);
1728
+ }, window.clearInterval = function(c) {
1729
+ try {
1730
+ c !== void 0 && I.delete(c) && A();
1731
+ } catch {
1732
+ }
1733
+ o(c);
1734
+ };
1735
+ } catch {
1736
+ }
1737
+ }
1738
+ function cn() {
1739
+ try {
1740
+ if (!ut) return;
1741
+ ut = !1, V && (window.setTimeout = V), W && (window.setInterval = W), G && (window.clearTimeout = G), Y && (window.clearInterval = Y), V = null, W = null, G = null, Y = null, I.clear(), A();
1742
+ } catch {
1743
+ }
1744
+ }
1745
+ const wt = /* @__PURE__ */ new WeakMap();
1746
+ let sn = 0;
1747
+ function an(t) {
1748
+ return wt.has(t) || wt.set(t, `mdt-hl-${++sn}`), wt.get(t);
1749
+ }
1750
+ function ie(t, e, n) {
1751
+ try {
1752
+ const o = n.get(e), i = o !== void 0 && o !== t;
1753
+ n.set(e, t);
1754
+ const c = an(e);
1755
+ return i && U(
1756
+ () => setTimeout(() => {
1757
+ try {
1758
+ const a = document.getElementById(c);
1759
+ if (!a) return;
1760
+ a.classList.remove("mdt-highlight-flash"), a.offsetWidth, a.classList.add("mdt-highlight-flash"), setTimeout(() => {
1761
+ try {
1762
+ a.classList.remove("mdt-highlight-flash");
1763
+ } catch {
1764
+ }
1765
+ }, 600);
1766
+ } catch {
1767
+ }
1768
+ }, 0)
1769
+ ), s`<span id="${c}" class="mdt-highlight">${t}</span>`;
1770
+ } catch {
1771
+ return s``;
1772
+ }
1773
+ }
1774
+ const ln = /* @__PURE__ */ new WeakMap();
1775
+ let kt = "";
1776
+ function dn(t) {
1777
+ try {
1778
+ let e = 0;
1779
+ for (const n of t.instances) {
1780
+ const o = xt(n);
1781
+ o > e && (e = o);
1782
+ }
1783
+ return e;
1784
+ } catch {
1785
+ return 0;
1786
+ }
1787
+ }
1788
+ function St(t) {
1789
+ try {
1790
+ let e = 1 / 0;
1791
+ for (const n of t.instances) {
1792
+ const o = Z(n);
1793
+ o < e && (e = o);
1794
+ }
1795
+ return e === 1 / 0 ? 0 : e;
1796
+ } catch {
1797
+ return 0;
1798
+ }
1799
+ }
1800
+ function un({
1801
+ groups: t,
1802
+ selectedViewFn: e,
1803
+ onSelectGroup: n,
1804
+ onHighlight: o,
1805
+ renderCallback: i
1806
+ }) {
1807
+ try {
1808
+ const c = kt.trim().toLowerCase(), d = [...c ? t.filter((u) => u.name.toLowerCase().includes(c)) : t].sort((u, y) => {
1809
+ const g = St(u), b = St(y);
1810
+ return g - b || u.name.localeCompare(y.name);
1811
+ }), l = (u) => {
1812
+ try {
1813
+ kt = u.target.value, i();
1814
+ } catch {
1815
+ }
1816
+ };
1817
+ return s`
1818
+ <div class="${r.content}">
1819
+ <div style="padding: 0 0 6px 0; flex-shrink: 0;">
1820
+ <input
1821
+ class="${r.componentSearch}"
1822
+ type="text"
1823
+ placeholder="Search components…"
1824
+ .value=${kt}
1825
+ @input=${l}
1826
+ />
1827
+ </div>
1828
+ ${d.length === 0 ? s`<div class="${r.empty}">
1829
+ ${c ? "No matching components" : "No components mounted"}
1830
+ </div>` : s`
1831
+ <ul class="${r.componentList}">
1832
+ ${T(
1833
+ d,
1834
+ (u) => u.viewFn,
1835
+ (u) => {
1836
+ const y = dn(u), g = e === u.viewFn, b = St(u), rt = u.instances.length, Dt = u.instances[0];
1837
+ return s`
1838
+ <li
1839
+ class="${r.componentItem} ${g ? Kt : ""}"
1840
+ @click=${() => {
1841
+ try {
1842
+ n(u.viewFn);
1843
+ } catch {
1844
+ }
1845
+ }}
1846
+ >
1847
+ ${ie(
1848
+ y,
1849
+ Dt,
1850
+ ln
1851
+ )}
1852
+ <span class="${r.componentName}"
1853
+ >${u.name}</span
1854
+ >
1855
+ ${rt > 1 ? s`<span
1856
+ class="${r.componentCount} ${g ? r.componentCountSelected : ""}"
1857
+ >×${rt}</span
1858
+ >` : ""}
1859
+ <span
1860
+ class="${r.componentBadge} ${g ? r.componentBadgeSelected : ""}"
1861
+ >depth ${b}</span
1862
+ >
1863
+ <button
1864
+ class="${r.componentHighlightBtn} ${g ? r.componentHighlightBtnSelected : ""}"
1865
+ @click=${(Nt) => {
1866
+ try {
1867
+ Nt.stopPropagation(), o(Dt);
1868
+ } catch {
1869
+ }
1870
+ }}
1871
+ title="Highlight in page"
1872
+ >
1873
+ <svg
1874
+ xmlns="http://www.w3.org/2000/svg"
1875
+ width="12"
1876
+ height="12"
1877
+ viewBox="0 0 24 24"
1878
+ fill="none"
1879
+ stroke="currentColor"
1880
+ stroke-width="2"
1881
+ stroke-linecap="round"
1882
+ stroke-linejoin="round"
1883
+ >
1884
+ <path d="M1 1l6 6" />
1885
+ <path d="M7 1L1 7" />
1886
+ <circle cx="11" cy="11" r="8" />
1887
+ <line x1="21" y1="21" x2="16.65" y2="16.65" />
1888
+ </svg>
1889
+ </button>
1890
+ </li>
1891
+ `;
1892
+ }
1893
+ )}
1894
+ </ul>
1895
+ `}
1896
+ </div>
1897
+ `;
1898
+ } catch {
1899
+ return s``;
1900
+ }
1901
+ }
1902
+ const pn = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakSet();
1903
+ function fn(t) {
1904
+ try {
1905
+ const e = new Set(t), n = /* @__PURE__ */ new Map();
1906
+ for (const c of t)
1907
+ n.set(c, {
1908
+ component: c,
1909
+ name: tt(c),
1910
+ depth: Z(c),
1911
+ id: c.componentId,
1912
+ children: []
1913
+ });
1914
+ const o = [];
1915
+ for (const c of t) {
1916
+ const a = n.get(c), d = Tt(c);
1917
+ if (d && e.has(d)) {
1918
+ const l = n.get(d);
1919
+ if (l) {
1920
+ l.children.push(a);
1921
+ continue;
1922
+ }
1923
+ }
1924
+ o.push(a);
1925
+ }
1926
+ const i = (c) => {
1927
+ try {
1928
+ c.sort((a, d) => a.depth - d.depth || a.name.localeCompare(d.name));
1929
+ for (const a of c)
1930
+ i(a.children);
1931
+ } catch {
1932
+ }
1933
+ };
1934
+ return i(o), o;
1935
+ } catch {
1936
+ return [];
1937
+ }
1938
+ }
1939
+ function ce(t, e, n, o, i) {
1940
+ try {
1941
+ const c = t.children.length > 0, a = Ct.has(t.component), d = xt(t.component), l = e === t.id, u = t.depth * 16, y = (b) => {
1942
+ try {
1943
+ b.stopPropagation(), a ? Ct.delete(t.component) : Ct.add(t.component), i();
1944
+ } catch {
1945
+ }
1946
+ }, g = () => {
1947
+ try {
1948
+ n(t.id);
1949
+ } catch {
1950
+ }
1951
+ };
1952
+ return s`
1953
+ <li
1954
+ class="${r.componentItem} ${l ? Kt : ""}"
1955
+ style="margin-left: ${u}px;"
1956
+ @click=${g}
1957
+ >
1958
+ ${c ? s`<span class="${r.treeToggle}" @click=${y}
1959
+ >${a ? "▶" : "▼"}</span
1960
+ >` : s`<span class="${r.treeLeaf}">·</span>`}
1961
+ ${ie(d, t.component, pn)}
1962
+ <span class="${r.componentName}">${t.name}</span>
1963
+ <span class="${r.componentBadge}"
1964
+ >#${t.id.toString().slice(2, 6)}</span
1965
+ >
1966
+ <button
1967
+ class="${r.componentHighlightBtn}"
1968
+ @click=${(b) => {
1969
+ try {
1970
+ b.stopPropagation(), o(t.component);
1971
+ } catch {
1972
+ }
1973
+ }}
1974
+ title="Highlight in page"
1975
+ >
1976
+ <svg
1977
+ xmlns="http://www.w3.org/2000/svg"
1978
+ width="12"
1979
+ height="12"
1980
+ viewBox="0 0 24 24"
1981
+ fill="none"
1982
+ stroke="currentColor"
1983
+ stroke-width="2"
1984
+ stroke-linecap="round"
1985
+ stroke-linejoin="round"
1986
+ >
1987
+ <path d="M1 1l6 6" />
1988
+ <path d="M7 1L1 7" />
1989
+ <circle cx="11" cy="11" r="8" />
1990
+ <line x1="21" y1="21" x2="16.65" y2="16.65" />
1991
+ </svg>
1992
+ </button>
1993
+ </li>
1994
+ ${c && !a ? T(
1995
+ t.children,
1996
+ (b) => b.component,
1997
+ (b) => ce(
1998
+ b,
1999
+ e,
2000
+ n,
2001
+ o,
2002
+ i
2003
+ )
2004
+ ) : k}
2005
+ `;
2006
+ } catch {
2007
+ return s``;
2008
+ }
2009
+ }
2010
+ function hn({
2011
+ selectedComponentId: t,
2012
+ onSelectComponent: e,
2013
+ onHighlight: n,
2014
+ renderCallback: o
2015
+ }) {
2016
+ try {
2017
+ const i = Qt(), c = fn(i);
2018
+ return s`
2019
+ <div class="${r.content}">
2020
+ ${c.length === 0 ? s`<div class="${r.empty}">No components mounted</div>` : s`
2021
+ <ul class="${r.componentList}">
2022
+ ${T(
2023
+ c,
2024
+ (a) => a.component,
2025
+ (a) => ce(
2026
+ a,
2027
+ t,
2028
+ e,
2029
+ n,
2030
+ o
2031
+ )
2032
+ )}
2033
+ </ul>
2034
+ `}
2035
+ </div>
2036
+ `;
2037
+ } catch {
2038
+ return s``;
2039
+ }
2040
+ }
2041
+ const se = () => (Te(() => {
2042
+ try {
2043
+ console.log(ft());
2044
+ } catch {
2045
+ }
2046
+ }), () => {
2047
+ try {
2048
+ return s`Active Timers (${ft()})`;
2049
+ } catch {
2050
+ return s``;
2051
+ }
2052
+ });
2053
+ se.skipDevToolsRender = !0;
2054
+ function gn({
2055
+ activeTab: t,
2056
+ onTabChange: e,
2057
+ onMinimise: n,
2058
+ onClose: o,
2059
+ unreadLogCount: i
2060
+ }) {
2061
+ try {
2062
+ return s`
2063
+ <div class="${r.header}">
2064
+ <div class="${r.headerLeft}">
2065
+ <div class="${r.title}">🔧 Mates DevTools</div>
2066
+ <nav class="${r.tabBar}">
2067
+ <button
2068
+ class="${r.tabBtn} ${t === "components" ? "active" : ""}"
2069
+ @click=${() => {
2070
+ try {
2071
+ e("components");
2072
+ } catch {
2073
+ }
2074
+ }}
2075
+ >
2076
+ Components
2077
+ </button>
2078
+ <button
2079
+ class="${r.tabBtn} ${t === "logs" ? "active" : ""}"
2080
+ @click=${() => {
2081
+ try {
2082
+ e("logs");
2083
+ } catch {
2084
+ }
2085
+ }}
2086
+ >
2087
+ Logs
2088
+ ${i > 0 ? s`<span class="${r.tabBadge}"
2089
+ >${i > 99 ? "99+" : i}</span
2090
+ >` : ""}
2091
+ </button>
2092
+ <button
2093
+ class="${r.tabBtn} ${t === "performance" ? "active" : ""}"
2094
+ @click=${() => {
2095
+ try {
2096
+ e("performance");
2097
+ } catch {
2098
+ }
2099
+ }}
2100
+ >
2101
+ Performance
2102
+ </button>
2103
+ </nav>
2104
+ </div>
2105
+ <div>
2106
+ <button style="margin-left: 10px">${Me(se)}</button>
2107
+ </div>
2108
+ <div class="${r.controls}">
2109
+ <button
2110
+ class="${r.button}"
2111
+ @click=${() => {
2112
+ try {
2113
+ n();
2114
+ } catch {
2115
+ }
2116
+ }}
2117
+ title="Minimise"
2118
+ >
2119
+ _
2120
+ </button>
2121
+ <button
2122
+ class="${r.button}"
2123
+ @click=${() => {
2124
+ try {
2125
+ o();
2126
+ } catch {
2127
+ }
2128
+ }}
2129
+ title="Close"
2130
+ >
2131
+ ×
2132
+ </button>
2133
+ </div>
2134
+ </div>
2135
+ `;
2136
+ } catch {
2137
+ return s``;
2138
+ }
2139
+ }
2140
+ let it = null;
2141
+ function mn(t) {
2142
+ try {
2143
+ return it = t, () => {
2144
+ it === t && (it = null);
2145
+ };
2146
+ } catch {
2147
+ }
2148
+ return () => {
2149
+ };
2150
+ }
2151
+ let v = !1;
2152
+ function yn() {
2153
+ v = !0;
2154
+ }
2155
+ function bn() {
2156
+ v = !1;
2157
+ }
2158
+ function kr() {
2159
+ return v;
2160
+ }
2161
+ const xn = 100, R = [];
2162
+ let ae = 1, $t = 0;
2163
+ const le = /* @__PURE__ */ new Set(["devtools", "DOMReady", "Paint"]);
2164
+ function S(t, e, n) {
2165
+ try {
2166
+ R.length >= xn && R.shift(), R.push({
2167
+ id: ae++,
2168
+ ts: performance.now(),
2169
+ category: t,
2170
+ label: e,
2171
+ detail: n
2172
+ }), $t++;
2173
+ try {
2174
+ it?.();
2175
+ } catch {
2176
+ }
2177
+ } catch {
2178
+ }
2179
+ }
2180
+ function Rt(t) {
2181
+ try {
2182
+ if (t === void 0) return "undefined";
2183
+ if (t === null) return "null";
2184
+ if (typeof t == "function") return "ƒ()";
2185
+ try {
2186
+ const e = JSON.stringify(t);
2187
+ return e.length > 120 ? e.slice(0, 117) + "..." : e;
2188
+ } catch {
2189
+ return String(t);
2190
+ }
2191
+ } catch {
2192
+ }
2193
+ return "";
2194
+ }
2195
+ function vn() {
2196
+ return R;
2197
+ }
2198
+ function Sr() {
2199
+ return R.length;
2200
+ }
2201
+ function $n() {
2202
+ return $t;
2203
+ }
2204
+ function _n() {
2205
+ try {
2206
+ $t = 0;
2207
+ } catch {
2208
+ }
2209
+ }
2210
+ function wn() {
2211
+ try {
2212
+ R.length = 0, $t = 0, ae = 1;
2213
+ } catch {
2214
+ }
2215
+ }
2216
+ function kn(t) {
2217
+ try {
2218
+ if (!v) return;
2219
+ S("mount", t, "mounted");
2220
+ } catch {
2221
+ }
2222
+ }
2223
+ function Sn(t, e) {
2224
+ try {
2225
+ if (!v) return;
2226
+ S("update", t, `updated (${e.toFixed(2)}ms)`);
2227
+ } catch {
2228
+ }
2229
+ }
2230
+ function Cn(t) {
2231
+ try {
2232
+ if (!v) return;
2233
+ S("cleanup", t, "cleaned up");
2234
+ } catch {
2235
+ }
2236
+ }
2237
+ function Tn(t, e) {
2238
+ try {
2239
+ if (!v) return;
2240
+ S("setter", t, Rt(e));
2241
+ } catch {
2242
+ }
2243
+ }
2244
+ function Mn(t) {
2245
+ try {
2246
+ if (!v) return;
2247
+ S("action", t);
2248
+ } catch {
2249
+ }
2250
+ }
2251
+ function In(t, e) {
2252
+ try {
2253
+ if (!v || le.has(t)) return;
2254
+ S("event", t, e !== void 0 ? Rt(e) : void 0);
2255
+ } catch {
2256
+ }
2257
+ }
2258
+ const zt = 80, de = 120;
2259
+ function F(t, e) {
2260
+ try {
2261
+ return t.length > e ? t.slice(0, e - 1) + "…" : t;
2262
+ } catch {
2263
+ }
2264
+ return "";
2265
+ }
2266
+ function Bn(t, e, n) {
2267
+ try {
2268
+ if (!v) return;
2269
+ const o = n ? `pending · ${F(n, 50)}` : "pending";
2270
+ S("fetch", F(`${t} ${e}`, zt), o);
2271
+ } catch {
2272
+ }
2273
+ }
2274
+ function ue(t, e, n, o) {
2275
+ try {
2276
+ if (!v) return;
2277
+ S(
2278
+ "fetch",
2279
+ F(`${t} ${e}`, zt),
2280
+ F(`${n} · ${o.toFixed(0)}ms`, de)
2281
+ );
2282
+ } catch {
2283
+ }
2284
+ }
2285
+ function pe(t, e, n, o) {
2286
+ try {
2287
+ if (!v) return;
2288
+ S(
2289
+ "fetch",
2290
+ F(`${t} ${e}`, zt),
2291
+ F(
2292
+ `error · ${o.toFixed(0)}ms · ${n}`,
2293
+ de
2294
+ )
2295
+ );
2296
+ } catch {
2297
+ }
2298
+ }
2299
+ function Ln(t, e) {
2300
+ try {
2301
+ if (!v || le.has(t)) return;
2302
+ S(
2303
+ "event",
2304
+ `${t} (cleanup)`,
2305
+ e !== void 0 ? Rt(e) : void 0
2306
+ );
2307
+ } catch {
2308
+ }
2309
+ }
2310
+ const E = {
2311
+ mount: "#66bb6a",
2312
+ update: "#42a5f5",
2313
+ cleanup: "#ef5350",
2314
+ setter: "#4fc3f7",
2315
+ action: "#81c784",
2316
+ event: "#ffb74d",
2317
+ fetch: "#ce93d8"
2318
+ }, En = {
2319
+ mount: "MNT",
2320
+ update: "UPD",
2321
+ cleanup: "CLN",
2322
+ setter: "SET",
2323
+ action: "ACT",
2324
+ event: "EVT",
2325
+ fetch: "NET"
2326
+ };
2327
+ let $ = "all";
2328
+ const An = {
2329
+ all: null,
2330
+ lifecycle: ["mount", "update", "cleanup"],
2331
+ logs: ["setter", "action", "event"],
2332
+ network: ["fetch"]
2333
+ };
2334
+ function Rn(t) {
2335
+ try {
2336
+ const e = t / 1e3 | 0, n = t % 1e3, o = e / 60 | 0, i = e % 60;
2337
+ return `${String(o).padStart(2, "0")}:${String(i).padStart(2, "0")}.${String(n | 0).padStart(3, "0")}`;
2338
+ } catch {
2339
+ return "";
2340
+ }
2341
+ }
2342
+ function zn() {
2343
+ try {
2344
+ const t = vn(), e = An[$];
2345
+ if (!e) return t;
2346
+ const n = new Set(e);
2347
+ return t.filter((o) => n.has(o.category));
2348
+ } catch {
2349
+ return [];
2350
+ }
2351
+ }
2352
+ function Pn({ onClear: t, renderCallback: e }) {
2353
+ try {
2354
+ _n();
2355
+ const n = zn();
2356
+ return s`
2357
+ <div class="${r.logsPanel}">
2358
+ <div class="${r.logsToolbar}">
2359
+ <div class="${r.logsFilterRow}">
2360
+ <button
2361
+ class="${r.logsFilterBtn} ${$ === "all" ? "active" : ""}"
2362
+ @click=${() => {
2363
+ try {
2364
+ $ = "all", e();
2365
+ } catch {
2366
+ }
2367
+ }}
2368
+ >
2369
+ All
2370
+ </button>
2371
+ <button
2372
+ class="${r.logsFilterBtn} ${$ === "lifecycle" ? "active" : ""}"
2373
+ style="--mdt-filter-color: ${E.mount}"
2374
+ @click=${() => {
2375
+ try {
2376
+ $ = $ === "lifecycle" ? "all" : "lifecycle", e();
2377
+ } catch {
2378
+ }
2379
+ }}
2380
+ >
2381
+ Mounts / Updates
2382
+ </button>
2383
+ <button
2384
+ class="${r.logsFilterBtn} ${$ === "logs" ? "active" : ""}"
2385
+ style="--mdt-filter-color: ${E.setter}"
2386
+ @click=${() => {
2387
+ try {
2388
+ $ = $ === "logs" ? "all" : "logs", e();
2389
+ } catch {
2390
+ }
2391
+ }}
2392
+ >
2393
+ Logs
2394
+ </button>
2395
+ <button
2396
+ class="${r.logsFilterBtn} ${$ === "network" ? "active" : ""}"
2397
+ style="--mdt-filter-color: ${E.fetch}"
2398
+ @click=${() => {
2399
+ try {
2400
+ $ = $ === "network" ? "all" : "network", e();
2401
+ } catch {
2402
+ }
2403
+ }}
2404
+ >
2405
+ Network
2406
+ </button>
2407
+ </div>
2408
+ <div class="${r.logsActions}">
2409
+ <span class="${r.logsCount}">${n.length} entries</span>
2410
+ <button
2411
+ class="${r.button}"
2412
+ @click=${() => {
2413
+ try {
2414
+ wn(), t();
2415
+ } catch {
2416
+ }
2417
+ }}
2418
+ title="Clear logs"
2419
+ >
2420
+ 🗑
2421
+ </button>
2422
+ </div>
2423
+ </div>
2424
+
2425
+ <div class="${r.logsContainer}">
2426
+ ${n.length === 0 ? s`<div class="${r.empty}">
2427
+ No logs yet. Interact with the app to see activity.
2428
+ </div>` : T(
2429
+ n,
2430
+ (o) => o.id,
2431
+ (o) => s`
2432
+ <div class="${r.logEntry}">
2433
+ <span class="${r.logTs}">${Rn(o.ts)}</span>
2434
+ <span
2435
+ class="${r.logBadge}"
2436
+ style="background: ${E[o.category]}22; color: ${E[o.category]}; border-color: ${E[o.category]}44;"
2437
+ >${En[o.category]}</span
2438
+ >
2439
+ <span class="${r.logLabel}">${o.label}</span>
2440
+ ${o.detail ? s`<span class="${r.logDetail}"
2441
+ >${o.detail}</span
2442
+ >` : k}
2443
+ </div>
2444
+ `
2445
+ )}
2446
+ </div>
2447
+ </div>
2448
+ `;
2449
+ } catch {
2450
+ return s``;
2451
+ }
2452
+ }
2453
+ let et = !1;
2454
+ function Hn() {
2455
+ try {
2456
+ et = !0;
2457
+ } catch {
2458
+ }
2459
+ }
2460
+ function Fn() {
2461
+ try {
2462
+ et = !1;
2463
+ } catch {
2464
+ }
2465
+ }
2466
+ function Cr() {
2467
+ return et;
2468
+ }
2469
+ const On = 100, Q = /* @__PURE__ */ new Map();
2470
+ let fe = 1, ct = null;
2471
+ function Dn(t) {
2472
+ try {
2473
+ return ct = t, () => {
2474
+ try {
2475
+ ct === t && (ct = null);
2476
+ } catch {
2477
+ }
2478
+ };
2479
+ } catch {
2480
+ }
2481
+ return () => {
2482
+ };
2483
+ }
2484
+ function he(t, e, n) {
2485
+ try {
2486
+ if (!et) return;
2487
+ const o = {
2488
+ id: fe++,
2489
+ ts: performance.now(),
2490
+ durationMs: n,
2491
+ componentName: t,
2492
+ instanceId: e
2493
+ };
2494
+ let i = Q.get(t);
2495
+ i || (i = [], Q.set(t, i)), i.length >= On && i.shift(), i.push(o);
2496
+ try {
2497
+ ct?.();
2498
+ } catch {
2499
+ }
2500
+ } catch {
2501
+ }
2502
+ }
2503
+ function Tr(t, e) {
2504
+ try {
2505
+ if (!et) return Xt;
2506
+ const n = performance.now();
2507
+ return () => he(t, e, performance.now() - n);
2508
+ } catch {
2509
+ }
2510
+ return Xt;
2511
+ }
2512
+ function Xt() {
2513
+ }
2514
+ function Nn() {
2515
+ try {
2516
+ const t = [];
2517
+ for (const [e, n] of Q) {
2518
+ if (n.length === 0) continue;
2519
+ let o = 0, i = 0, c = 1 / 0;
2520
+ for (const a of n)
2521
+ o += a.durationMs, a.durationMs > i && (i = a.durationMs), a.durationMs < c && (c = a.durationMs);
2522
+ t.push({
2523
+ name: e,
2524
+ renderCount: n.length,
2525
+ avgMs: o / n.length,
2526
+ maxMs: i,
2527
+ minMs: c,
2528
+ lastMs: n[n.length - 1].durationMs,
2529
+ totalMs: o,
2530
+ timings: n
2531
+ });
2532
+ }
2533
+ return t.sort((e, n) => n.totalMs - e.totalMs), t;
2534
+ } catch {
2535
+ }
2536
+ return [];
2537
+ }
2538
+ function ge() {
2539
+ try {
2540
+ const t = [];
2541
+ for (const e of Q.values())
2542
+ for (let n = 0; n < e.length; n++) t.push(e[n]);
2543
+ return t;
2544
+ } catch {
2545
+ }
2546
+ return [];
2547
+ }
2548
+ function Mr(t = 50) {
2549
+ try {
2550
+ const e = ge();
2551
+ return e.sort((n, o) => o.ts - n.ts), e.length > t ? e.slice(0, t) : e;
2552
+ } catch {
2553
+ }
2554
+ return [];
2555
+ }
2556
+ function jn(t = 20) {
2557
+ try {
2558
+ const e = ge();
2559
+ return e.sort((n, o) => o.durationMs - n.durationMs), e.length > t ? e.slice(0, t) : e;
2560
+ } catch {
2561
+ }
2562
+ return [];
2563
+ }
2564
+ function Vn() {
2565
+ try {
2566
+ Q.clear(), fe = 1;
2567
+ } catch {
2568
+ }
2569
+ }
2570
+ qt(0);
2571
+ function j(t) {
2572
+ try {
2573
+ return t < 0.01 ? "<0.01ms" : t < 1 ? `${t.toFixed(2)}ms` : t < 10 ? `${t.toFixed(1)}ms` : `${t.toFixed(0)}ms`;
2574
+ } catch {
2575
+ return "";
2576
+ }
2577
+ }
2578
+ function me(t, e) {
2579
+ try {
2580
+ return e <= 0 ? 0 : Math.max(2, Math.min(100, t / e * 100));
2581
+ } catch {
2582
+ return 0;
2583
+ }
2584
+ }
2585
+ function ye(t) {
2586
+ try {
2587
+ return t < 16 ? "#66bb6a" : t <= 20 ? "#ffb74d" : "#ef5350";
2588
+ } catch {
2589
+ return "";
2590
+ }
2591
+ }
2592
+ let N = "summary";
2593
+ function Wn(t) {
2594
+ try {
2595
+ if (t.length === 0)
2596
+ return s`<div class="${r.empty}">
2597
+ No render data yet. Interact with the app to see component performance.
2598
+ </div>`;
2599
+ const e = Math.max(...t.map((n) => n.totalMs));
2600
+ return s`
2601
+ <table class="${r.perfTable}">
2602
+ <thead>
2603
+ <tr>
2604
+ <th class="${r.perfTh}">Component</th>
2605
+ <th class="${r.perfTh} ${r.perfThRight}">Renders</th>
2606
+ <th class="${r.perfTh} ${r.perfThRight}">Avg</th>
2607
+ <th class="${r.perfTh} ${r.perfThRight}">Max</th>
2608
+ <th class="${r.perfTh} ${r.perfThRight}">Last</th>
2609
+ <th class="${r.perfTh}" style="width: 40%;">Total</th>
2610
+ </tr>
2611
+ </thead>
2612
+ <tbody>
2613
+ ${T(
2614
+ t,
2615
+ (n) => n.name,
2616
+ (n) => {
2617
+ const o = ye(n.lastMs);
2618
+ return s`
2619
+ <tr class="${r.perfRow}">
2620
+ <td class="${r.perfCell} ${r.perfName}">
2621
+ ${n.name}
2622
+ </td>
2623
+ <td class="${r.perfCell} ${r.perfNum}">
2624
+ ${n.renderCount}
2625
+ </td>
2626
+ <td class="${r.perfCell} ${r.perfNum}">
2627
+ ${j(n.avgMs)}
2628
+ </td>
2629
+ <td class="${r.perfCell} ${r.perfNum}">
2630
+ ${j(n.maxMs)}
2631
+ </td>
2632
+ <td class="${r.perfCell} ${r.perfNum}">
2633
+ ${j(n.lastMs)}
2634
+ </td>
2635
+ <td class="${r.perfCell}">
2636
+ <div class="${r.perfBarWrap}">
2637
+ <div
2638
+ class="${r.perfBar}"
2639
+ style="width: ${me(
2640
+ n.totalMs,
2641
+ e
2642
+ )}%; background: ${o};"
2643
+ ></div>
2644
+ <span class="${r.perfBarLabel}"
2645
+ >${j(n.totalMs)}</span
2646
+ >
2647
+ </div>
2648
+ </td>
2649
+ </tr>
2650
+ `;
2651
+ }
2652
+ )}
2653
+ </tbody>
2654
+ </table>
2655
+ `;
2656
+ } catch {
2657
+ return s``;
2658
+ }
2659
+ }
2660
+ function Gn(t, e) {
2661
+ try {
2662
+ if (t.length === 0)
2663
+ return s`<div class="${r.empty}">
2664
+ No render data yet. Interact with the app to see slow renders.
2665
+ </div>`;
2666
+ const n = Math.max(...t.map((i) => i.durationMs)), o = !!e;
2667
+ return s`
2668
+ <table class="${r.perfTable}">
2669
+ <thead>
2670
+ <tr>
2671
+ <th class="${r.perfTh}">Component</th>
2672
+ <th class="${r.perfTh} ${r.perfThRight}">Duration</th>
2673
+ <th class="${r.perfTh}" style="width: 50%;">&nbsp;</th>
2674
+ </tr>
2675
+ </thead>
2676
+ <tbody>
2677
+ ${T(
2678
+ t,
2679
+ (i) => i.id,
2680
+ (i) => {
2681
+ const c = ye(i.durationMs), a = o ? () => {
2682
+ try {
2683
+ e(i.instanceId);
2684
+ } catch {
2685
+ }
2686
+ } : void 0;
2687
+ return s`
2688
+ <tr
2689
+ class="${r.perfRow} ${o ? r.perfRowClickable : ""}"
2690
+ @click=${a}
2691
+ title=${o ? `Go to ${i.componentName} in Components tab` : ""}
2692
+ >
2693
+ <td class="${r.perfCell} ${r.perfName}">
2694
+ ${i.componentName}
2695
+ </td>
2696
+ <td class="${r.perfCell} ${r.perfNum}">
2697
+ ${j(i.durationMs)}
2698
+ </td>
2699
+ <td class="${r.perfCell}">
2700
+ <div class="${r.perfBarWrap}">
2701
+ <div
2702
+ class="${r.perfBar}"
2703
+ style="width: ${me(
2704
+ i.durationMs,
2705
+ n
2706
+ )}%; background: ${c};"
2707
+ ></div>
2708
+ </div>
2709
+ </td>
2710
+ </tr>
2711
+ `;
2712
+ }
2713
+ )}
2714
+ </tbody>
2715
+ </table>
2716
+ `;
2717
+ } catch {
2718
+ return s``;
2719
+ }
2720
+ }
2721
+ function Yn({
2722
+ onClear: t,
2723
+ renderCallback: e,
2724
+ onNavigateToComponent: n
2725
+ }) {
2726
+ try {
2727
+ const o = Nn(), i = jn(30);
2728
+ return s`
2729
+ <div class="${r.perfPanel}">
2730
+ <div class="${r.perfToolbar}">
2731
+ <div class="${r.perfTabs}">
2732
+ <button
2733
+ class="${r.perfTabBtn} ${N === "summary" ? "active" : ""}"
2734
+ @click=${() => {
2735
+ try {
2736
+ N = "summary", e();
2737
+ } catch {
2738
+ }
2739
+ }}
2740
+ >
2741
+ Summary
2742
+ </button>
2743
+ <button
2744
+ class="${r.perfTabBtn} ${N === "slowest" ? "active" : ""}"
2745
+ @click=${() => {
2746
+ try {
2747
+ N = "slowest", e();
2748
+ } catch {
2749
+ }
2750
+ }}
2751
+ >
2752
+ Slowest Renders
2753
+ </button>
2754
+ </div>
2755
+ <div class="${r.perfActions}">
2756
+ <button
2757
+ class="${r.button}"
2758
+ @click=${() => {
2759
+ try {
2760
+ Vn(), t();
2761
+ } catch {
2762
+ }
2763
+ }}
2764
+ title="Clear performance data"
2765
+ >
2766
+ 🗑
2767
+ </button>
2768
+ </div>
2769
+ </div>
2770
+
2771
+ <div class="${r.perfContent}">
2772
+ ${N === "summary" ? Wn(o) : Gn(i, n ?? null)}
2773
+ </div>
2774
+ </div>
2775
+ `;
2776
+ } catch {
2777
+ return s``;
2778
+ }
2779
+ }
2780
+ let L = !1, C = !1, X = "components", M = "list", x = null, _ = null, m = null, D = [], p = null, w = null, z = 0;
2781
+ const Un = 150, Xn = 0.8, qn = 0.5;
2782
+ let B = null;
2783
+ function Pt() {
2784
+ try {
2785
+ const t = document.documentElement;
2786
+ B === null && (B = parseFloat(getComputedStyle(t).paddingBottom) || 0), t.style.paddingBottom = `${B + z}px`;
2787
+ } catch {
2788
+ }
2789
+ }
2790
+ function Ht() {
2791
+ try {
2792
+ if (B === null) return;
2793
+ document.documentElement.style.paddingBottom = B === 0 ? "" : `${B}px`, B = null;
2794
+ } catch {
2795
+ }
2796
+ }
2797
+ let Ft = !1, be = 0, xe = 0, ht = !1, q = null, J = null, K = null, P = null, H = null;
2798
+ function Jn() {
2799
+ try {
2800
+ H !== null && (clearTimeout(H), H = null);
2801
+ } catch {
2802
+ }
2803
+ }
2804
+ function gt() {
2805
+ try {
2806
+ Jn(), P && (P.remove(), P = null);
2807
+ } catch {
2808
+ }
2809
+ }
2810
+ function st(t) {
2811
+ try {
2812
+ let e = function() {
2813
+ try {
2814
+ const c = document.createElement("div");
2815
+ c.className = r.domHighlight, document.body.appendChild(c), P = c;
2816
+ const a = n.getBoundingClientRect();
2817
+ i ? (c.style.position = "fixed", c.style.top = `${a.top}px`, c.style.left = `${a.left}px`) : (c.style.top = `${a.top + window.scrollY}px`, c.style.left = `${a.left + window.scrollX}px`), c.style.width = `${a.width}px`, c.style.height = `${a.height}px`, H = U(
2818
+ () => setTimeout(() => {
2819
+ try {
2820
+ P === c && (c.classList.add("fade-out"), H = U(
2821
+ () => setTimeout(() => {
2822
+ try {
2823
+ P === c && gt();
2824
+ } catch {
2825
+ }
2826
+ }, 600)
2827
+ ));
2828
+ } catch {
2829
+ }
2830
+ }, 1500)
2831
+ );
2832
+ } catch {
2833
+ }
2834
+ };
2835
+ gt();
2836
+ const n = t.firstElementChild ?? t, o = getComputedStyle(n).position, i = o === "fixed" || o === "sticky";
2837
+ if (i)
2838
+ e();
2839
+ else {
2840
+ const c = n.getBoundingClientRect(), a = c.top >= 0 && c.bottom <= (window.innerHeight || document.documentElement.clientHeight);
2841
+ a || n.scrollIntoView({ behavior: "smooth", block: "center" }), H = U(
2842
+ () => setTimeout(e, a ? 0 : 400)
2843
+ );
2844
+ }
2845
+ } catch {
2846
+ }
2847
+ }
2848
+ function ve() {
2849
+ try {
2850
+ if (x === null) return null;
2851
+ for (const t of D)
2852
+ for (const e of t.instances)
2853
+ if (e.componentId === x) return e;
2854
+ return null;
2855
+ } catch {
2856
+ }
2857
+ return null;
2858
+ }
2859
+ function Ot() {
2860
+ try {
2861
+ return _ === null ? null : D.find((t) => t.viewFn === _) ?? null;
2862
+ } catch {
2863
+ }
2864
+ return null;
2865
+ }
2866
+ function Kn() {
2867
+ try {
2868
+ if (m === null) return null;
2869
+ const t = Ot();
2870
+ return t ? t.instances.find(
2871
+ (e) => e.componentId === m
2872
+ ) ?? null : null;
2873
+ } catch {
2874
+ }
2875
+ return null;
2876
+ }
2877
+ function _t() {
2878
+ try {
2879
+ D = je(), x !== null && !ve() && (x = null), _ !== null && !Ot() ? (_ = null, m = null) : m !== null && !Kn() && (m = null);
2880
+ } catch {
2881
+ }
2882
+ }
2883
+ function mt() {
2884
+ try {
2885
+ return L && !C;
2886
+ } catch {
2887
+ }
2888
+ return !1;
2889
+ }
2890
+ function nt() {
2891
+ try {
2892
+ return w?.querySelector(`.${r.panel}`) ?? null;
2893
+ } catch {
2894
+ }
2895
+ return null;
2896
+ }
2897
+ function Qn(t) {
2898
+ try {
2899
+ x = x === t ? null : t, h();
2900
+ } catch {
2901
+ }
2902
+ }
2903
+ function Zn(t) {
2904
+ try {
2905
+ _ === t ? (_ = null, m = null) : (_ = t, m = null), h();
2906
+ } catch {
2907
+ }
2908
+ }
2909
+ function tr(t) {
2910
+ try {
2911
+ m = m === t ? null : t, h();
2912
+ } catch {
2913
+ }
2914
+ }
2915
+ function er(t) {
2916
+ try {
2917
+ x = t, X = "components", _t(), _ = null, m = null;
2918
+ for (const e of D) {
2919
+ for (const n of e.instances)
2920
+ if (n.componentId === t) {
2921
+ _ = e.viewFn, m = t;
2922
+ break;
2923
+ }
2924
+ if (_) break;
2925
+ }
2926
+ h();
2927
+ } catch {
2928
+ }
2929
+ }
2930
+ function nr(t) {
2931
+ try {
2932
+ X = t, h();
2933
+ } catch {
2934
+ }
2935
+ }
2936
+ function rr() {
2937
+ try {
2938
+ if (!L || C) return;
2939
+ C = !0, nt()?.classList.remove(r.panelVisible), p && (p.style.display = ""), Ht();
2940
+ } catch {
2941
+ }
2942
+ }
2943
+ function or() {
2944
+ try {
2945
+ if (!C) return;
2946
+ C = !1, p && (p.style.display = "none"), _t(), h(), Pt(), requestAnimationFrame(() => {
2947
+ try {
2948
+ requestAnimationFrame(() => {
2949
+ try {
2950
+ nt()?.classList.add(r.panelVisible);
2951
+ } catch {
2952
+ }
2953
+ });
2954
+ } catch {
2955
+ }
2956
+ });
2957
+ } catch {
2958
+ }
2959
+ }
2960
+ function ir() {
2961
+ try {
2962
+ L = !1, C = !1, x = null, $e(), gt(), Ht();
2963
+ const t = nt();
2964
+ if (t) {
2965
+ t.classList.remove(r.panelVisible);
2966
+ let e = !1;
2967
+ const n = () => {
2968
+ try {
2969
+ if (e) return;
2970
+ e = !0, t.removeEventListener("transitionend", n), It();
2971
+ } catch {
2972
+ }
2973
+ };
2974
+ t.addEventListener("transitionend", n, { once: !0 }), U(() => setTimeout(n, 350));
2975
+ } else
2976
+ It();
2977
+ p && (p.style.display = "");
2978
+ } catch {
2979
+ }
2980
+ }
2981
+ function cr() {
2982
+ try {
2983
+ if (L) return;
2984
+ L = !0, C = !1, p && (p.style.display = "none"), z = Math.round(window.innerHeight * qn), sr(), dr(), _t(), h(), Pt(), requestAnimationFrame(() => {
2985
+ try {
2986
+ requestAnimationFrame(() => {
2987
+ try {
2988
+ nt()?.classList.add(r.panelVisible);
2989
+ } catch {
2990
+ }
2991
+ });
2992
+ } catch {
2993
+ }
2994
+ });
2995
+ } catch {
2996
+ }
2997
+ }
2998
+ function sr() {
2999
+ try {
3000
+ Hn(), q || (q = mn(() => {
3001
+ try {
3002
+ mt() && h();
3003
+ } catch {
3004
+ }
3005
+ })), J || (J = Dn(() => {
3006
+ try {
3007
+ mt() && h();
3008
+ } catch {
3009
+ }
3010
+ }));
3011
+ } catch {
3012
+ }
3013
+ }
3014
+ function $e() {
3015
+ try {
3016
+ Fn(), q && (q(), q = null), J && (J(), J = null);
3017
+ } catch {
3018
+ }
3019
+ }
3020
+ const Mt = "mates-devtools-vars";
3021
+ function ar() {
3022
+ try {
3023
+ if (document.getElementById(Mt)) return;
3024
+ const t = document.createElement("style");
3025
+ t.id = Mt, t.textContent = `
3026
+ #mates-devtools {
3027
+ --dt-bg: #1a1a1a;
3028
+ --dt-bg-2: #222222;
3029
+ --dt-bg-3: #2a2a2a;
3030
+ --dt-bg-input: #111111;
3031
+ --dt-bg-hover: #252525;
3032
+ --dt-bg-selected: #1a3a6e;
3033
+ --dt-bg-active: rgba(59,130,246,0.15);
3034
+ --dt-border: #333333;
3035
+ --dt-border-2: #2a2a2a;
3036
+ --dt-border-3: #1e1e1e;
3037
+ --dt-border-selected: #3b82f6;
3038
+ --dt-text: #cccccc;
3039
+ --dt-text-bright: #e0e0e0;
3040
+ --dt-text-muted: #888888;
3041
+ --dt-text-dim: #666666;
3042
+ --dt-text-dimmer: #555555;
3043
+ --dt-text-selected: #93c5fd;
3044
+ --dt-accent: #0077e6;
3045
+ --dt-accent-2: #3b82f6;
3046
+ --dt-scrollbar: #444444;
3047
+ --dt-scrollbar-hover: #555555;
3048
+ --dt-prop-key: #9cdcfe;
3049
+ --dt-prop-val: #ce9178;
3050
+ --dt-scope-name: #4ec9b0;
3051
+ --dt-hook-count: #0099ff;
3052
+ --dt-instance-border: #0066cc;
3053
+ --dt-instance-bg: #151515;
3054
+ --dt-flash-bg: rgba(0,180,100,0.45);
3055
+ }
3056
+
3057
+ @media (prefers-color-scheme: light) {
3058
+ #mates-devtools {
3059
+ --dt-bg: #f5f5f5;
3060
+ --dt-bg-2: #ebebeb;
3061
+ --dt-bg-3: #e0e0e0;
3062
+ --dt-bg-input: #ffffff;
3063
+ --dt-bg-hover: #e8e8e8;
3064
+ --dt-bg-selected: #dbeafe;
3065
+ --dt-bg-active: rgba(59,130,246,0.12);
3066
+ --dt-border: #cccccc;
3067
+ --dt-border-2: #d4d4d4;
3068
+ --dt-border-3: #e4e4e4;
3069
+ --dt-border-selected: #3b82f6;
3070
+ --dt-text: #333333;
3071
+ --dt-text-bright: #111111;
3072
+ --dt-text-muted: #666666;
3073
+ --dt-text-dim: #888888;
3074
+ --dt-text-dimmer: #999999;
3075
+ --dt-text-selected: #1d4ed8;
3076
+ --dt-accent: #0077e6;
3077
+ --dt-accent-2: #3b82f6;
3078
+ --dt-scrollbar: #bbbbbb;
3079
+ --dt-scrollbar-hover: #999999;
3080
+ --dt-prop-key: #0070c1;
3081
+ --dt-prop-val: #a31515;
3082
+ --dt-scope-name: #007f6a;
3083
+ --dt-hook-count: #0070c1;
3084
+ --dt-instance-border: #3b82f6;
3085
+ --dt-instance-bg: #f0f4ff;
3086
+ --dt-flash-bg: rgba(0,160,90,0.3);
3087
+ }
3088
+ }
3089
+ `, document.head.appendChild(t);
3090
+ } catch {
3091
+ }
3092
+ }
3093
+ function lr() {
3094
+ try {
3095
+ document.getElementById(Mt)?.remove();
3096
+ } catch {
3097
+ }
3098
+ }
3099
+ function dr() {
3100
+ try {
3101
+ if (w) return;
3102
+ ar(), w = document.createElement("div"), w.id = "mates-devtools", document.body.appendChild(w);
3103
+ } catch {
3104
+ }
3105
+ }
3106
+ function It() {
3107
+ try {
3108
+ if (!w) return;
3109
+ Jt(s``, w), w.remove(), w = null, lr();
3110
+ } catch {
3111
+ }
3112
+ }
3113
+ function h() {
3114
+ try {
3115
+ if (!w || !L) return;
3116
+ const t = (() => {
3117
+ try {
3118
+ switch (X) {
3119
+ case "components":
3120
+ return s`
3121
+ <div class="${r.body}">
3122
+ <div class="${r.leftColumn}">
3123
+ <div class="${r.leftTabs}">
3124
+ <button
3125
+ class="${r.leftTabBtn} ${M === "list" ? "active" : ""}"
3126
+ @click=${() => {
3127
+ try {
3128
+ M = "list", h();
3129
+ } catch {
3130
+ }
3131
+ }}
3132
+ title="Flat list"
3133
+ >
3134
+ <svg
3135
+ xmlns="http://www.w3.org/2000/svg"
3136
+ width="14"
3137
+ height="14"
3138
+ viewBox="0 0 24 24"
3139
+ fill="none"
3140
+ stroke="currentColor"
3141
+ stroke-width="2"
3142
+ stroke-linecap="round"
3143
+ stroke-linejoin="round"
3144
+ >
3145
+ <line x1="8" y1="6" x2="21" y2="6" />
3146
+ <line x1="8" y1="12" x2="21" y2="12" />
3147
+ <line x1="8" y1="18" x2="21" y2="18" />
3148
+ <line x1="3" y1="6" x2="3.01" y2="6" />
3149
+ <line x1="3" y1="12" x2="3.01" y2="12" />
3150
+ <line x1="3" y1="18" x2="3.01" y2="18" />
3151
+ </svg>
3152
+ </button>
3153
+ <button
3154
+ class="${r.leftTabBtn} ${M === "tree" ? "active" : ""}"
3155
+ @click=${() => {
3156
+ try {
3157
+ M = "tree", h();
3158
+ } catch {
3159
+ }
3160
+ }}
3161
+ title="Tree view"
3162
+ >
3163
+ <svg
3164
+ xmlns="http://www.w3.org/2000/svg"
3165
+ width="14"
3166
+ height="14"
3167
+ viewBox="0 0 24 24"
3168
+ fill="none"
3169
+ stroke="currentColor"
3170
+ stroke-width="2"
3171
+ stroke-linecap="round"
3172
+ stroke-linejoin="round"
3173
+ >
3174
+ <line x1="6" y1="3" x2="6" y2="15" />
3175
+ <circle cx="18" cy="6" r="3" />
3176
+ <circle cx="6" cy="18" r="3" />
3177
+ <path d="M6 12a6 6 0 0 0 12-6" />
3178
+ </svg>
3179
+ </button>
3180
+ </div>
3181
+ ${M === "list" ? un({
3182
+ groups: D,
3183
+ selectedViewFn: _,
3184
+ onSelectGroup: Zn,
3185
+ onHighlight: (e) => st(e),
3186
+ renderCallback: h
3187
+ }) : hn({
3188
+ selectedComponentId: x,
3189
+ onSelectComponent: Qn,
3190
+ onHighlight: (e) => st(e),
3191
+ renderCallback: h
3192
+ })}
3193
+ </div>
3194
+ ${Ut(M === "list" ? {
3195
+ selectedGroup: Ot(),
3196
+ selectedInstanceId: m,
3197
+ onSelectInstance: tr,
3198
+ onHighlight: (e) => st(e)
3199
+ } : {
3200
+ selectedComponent: ve()
3201
+ })}
3202
+ </div>
3203
+ `;
3204
+ case "logs":
3205
+ return Pn({
3206
+ onClear: h,
3207
+ renderCallback: h
3208
+ });
3209
+ case "performance":
3210
+ return Yn({
3211
+ onClear: h,
3212
+ renderCallback: h,
3213
+ onNavigateToComponent: er
3214
+ });
3215
+ default:
3216
+ return s``;
3217
+ }
3218
+ } catch {
3219
+ }
3220
+ return s``;
3221
+ })();
3222
+ Jt(
3223
+ s`
3224
+ <div class="${r.panel}" style="height: ${z}px;">
3225
+ <div class="${r.resizeHandle}" @mousedown=${ur}></div>
3226
+ ${gn({
3227
+ activeTab: X,
3228
+ onTabChange: nr,
3229
+ onMinimise: rr,
3230
+ onClose: ir,
3231
+ unreadLogCount: X === "logs" ? 0 : $n()
3232
+ })}
3233
+ ${t}
3234
+ </div>
3235
+ `,
3236
+ w
3237
+ );
3238
+ } catch {
3239
+ }
3240
+ }
3241
+ function ur(t) {
3242
+ try {
3243
+ t.preventDefault();
3244
+ const e = t.clientY, n = z, o = (c) => {
3245
+ try {
3246
+ const a = window.innerHeight * Xn;
3247
+ z = Math.max(
3248
+ Un,
3249
+ Math.min(a, n + (e - c.clientY))
3250
+ );
3251
+ const d = nt();
3252
+ d && (d.style.height = `${z}px`), Pt();
3253
+ } catch {
3254
+ }
3255
+ }, i = () => {
3256
+ try {
3257
+ document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", i);
3258
+ } catch {
3259
+ }
3260
+ };
3261
+ document.addEventListener("mousemove", o), document.addEventListener("mouseup", i);
3262
+ } catch {
3263
+ }
3264
+ }
3265
+ function pr() {
3266
+ try {
3267
+ if (p) return;
3268
+ p = document.createElement("div"), p.className = r.fab, p.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/></svg>', p.style.bottom = "50px", p.style.right = "50px", p.addEventListener("mousedown", we), p.addEventListener("click", _e), document.body.appendChild(p);
3269
+ } catch {
3270
+ }
3271
+ }
3272
+ function fr() {
3273
+ try {
3274
+ if (!p) return;
3275
+ p.removeEventListener("mousedown", we), p.removeEventListener("click", _e), p.remove(), p = null;
3276
+ } catch {
3277
+ }
3278
+ }
3279
+ function _e() {
3280
+ try {
3281
+ if (ht) {
3282
+ ht = !1;
3283
+ return;
3284
+ }
3285
+ C ? or() : cr();
3286
+ } catch {
3287
+ }
3288
+ }
3289
+ function we(t) {
3290
+ try {
3291
+ t.preventDefault(), Ft = !0, ht = !1;
3292
+ const e = p.getBoundingClientRect();
3293
+ be = t.clientX - e.left, xe = t.clientY - e.top, p.classList.add(r.fabDragging), document.addEventListener("mousemove", ke), document.addEventListener("mouseup", Se);
3294
+ } catch {
3295
+ }
3296
+ }
3297
+ function ke(t) {
3298
+ try {
3299
+ if (!Ft || !p) return;
3300
+ ht = !0, p.style.bottom = "auto", p.style.right = "auto", p.style.left = `${Math.max(0, Math.min(window.innerWidth - 48, t.clientX - be))}px`, p.style.top = `${Math.max(0, Math.min(window.innerHeight - 48, t.clientY - xe))}px`;
3301
+ } catch {
3302
+ }
3303
+ }
3304
+ function Se() {
3305
+ try {
3306
+ Ft = !1, p?.classList.remove(r.fabDragging), document.removeEventListener("mousemove", ke), document.removeEventListener("mouseup", Se);
3307
+ } catch {
3308
+ }
3309
+ }
3310
+ function hr() {
3311
+ try {
3312
+ on(), pr(), K || (K = bt.__subscribe((t) => {
3313
+ try {
3314
+ t?.type === "unmount" && (x !== null && t.component.componentId === x && (x = null), m !== null && t.component.componentId === m && (m = null)), _t(), mt() && h();
3315
+ } catch {
3316
+ }
3317
+ })), te(() => {
3318
+ try {
3319
+ mt() && h();
3320
+ } catch {
3321
+ }
3322
+ });
3323
+ } catch {
3324
+ }
3325
+ }
3326
+ function gr() {
3327
+ try {
3328
+ cn(), te(null), gt(), $e(), bn(), Ht(), K && (K(), K = null), L = !1, C = !1, M = "list", x = null, _ = null, m = null, D = [], It(), fr();
3329
+ } catch {
3330
+ }
3331
+ }
3332
+ const at = [];
3333
+ let Bt = null, Lt = null, Et = null;
3334
+ function mr() {
3335
+ try {
3336
+ Bt = Le((t, e) => {
3337
+ try {
3338
+ const n = (e.method ?? "GET").toUpperCase();
3339
+ at.push({ method: n, url: t, startTs: performance.now() });
3340
+ } catch {
3341
+ }
3342
+ return { url: t, options: e };
3343
+ }), Lt = Ee((t) => {
3344
+ try {
3345
+ const e = at.shift(), n = e?.method ?? "", o = e?.url ?? t.url ?? "", i = e ? performance.now() - e.startTs : 0;
3346
+ ue(n, o, t.status, i);
3347
+ } catch {
3348
+ }
3349
+ return t;
3350
+ }), Et = Ae((t) => {
3351
+ try {
3352
+ const e = at.shift(), n = e ? performance.now() - e.startTs : 0;
3353
+ pe(
3354
+ e?.method ?? "",
3355
+ e?.url ?? "",
3356
+ t.message,
3357
+ n
3358
+ );
3359
+ } catch {
3360
+ }
3361
+ });
3362
+ } catch {
3363
+ }
3364
+ }
3365
+ function yr() {
3366
+ try {
3367
+ Bt?.(), Lt?.(), Et?.(), Bt = null, Lt = null, Et = null, at.length = 0;
3368
+ } catch {
3369
+ }
3370
+ }
3371
+ function br() {
3372
+ try {
3373
+ if (Ie()) return;
3374
+ Be({
3375
+ registerComponent: Fe,
3376
+ unregisterComponent: Oe,
3377
+ notifyRender: De,
3378
+ getComponentName: tt,
3379
+ logComponentMount: kn,
3380
+ logComponentRender: Sn,
3381
+ logComponentUnmount: Cn,
3382
+ logAtomSet: Tn,
3383
+ logAtomUpdate: Mn,
3384
+ logEventTrigger: In,
3385
+ logCleanupEventTrigger: Ln,
3386
+ logFetchRequest: Bn,
3387
+ logFetchResponse: ue,
3388
+ logFetchError: pe,
3389
+ recordRender: he
3390
+ }), yn(), mr();
3391
+ } catch {
3392
+ }
3393
+ }
3394
+ let yt = !1;
3395
+ function Ir() {
3396
+ try {
3397
+ if (yt) return;
3398
+ yt = !0, br(), hr();
3399
+ } catch {
3400
+ }
3401
+ }
3402
+ function Br() {
3403
+ try {
3404
+ if (!yt) return;
3405
+ yt = !1, yr(), gr();
3406
+ } catch {
3407
+ }
3408
+ }
3409
+ export {
3410
+ wn as clearLogs,
3411
+ Vn as clearPerfData,
3412
+ yn as connectLogStore,
3413
+ Hn as connectPerfStore,
3414
+ gr as destroyDevTools,
3415
+ Br as destroyMatesDevTools,
3416
+ bt as devToolsEvent,
3417
+ bn as disconnectLogStore,
3418
+ Fn as disconnectPerfStore,
3419
+ Qt as getAllComponents,
3420
+ Z as getComponentDepth,
3421
+ je as getComponentGroups,
3422
+ tt as getComponentName,
3423
+ _r as getComponentsByView,
3424
+ Sr as getLogCount,
3425
+ vn as getLogs,
3426
+ Nn as getPerfSummaries,
3427
+ Mr as getRecentTimings,
3428
+ xt as getRenderVersion,
3429
+ jn as getSlowestRenders,
3430
+ $n as getUnreadLogCount,
3431
+ kr as isLogStoreConnected,
3432
+ Cr as isPerfStoreConnected,
3433
+ Tn as logAtomSet,
3434
+ Mn as logAtomUpdate,
3435
+ Ln as logCleanupEventTrigger,
3436
+ kn as logComponentMount,
3437
+ Sn as logComponentRender,
3438
+ Cn as logComponentUnmount,
3439
+ In as logEventTrigger,
3440
+ _n as markLogsRead,
3441
+ De as notifyRender,
3442
+ mn as onLogEntry,
3443
+ Dn as onPerfEntry,
3444
+ he as recordRender,
3445
+ Fe as registerComponent,
3446
+ Ke as renderAtomsViewer,
3447
+ Ut as renderComponentInspector,
3448
+ un as renderComponentList,
3449
+ hn as renderComponentTree,
3450
+ gn as renderHeader,
3451
+ ne as renderHooksViewer,
3452
+ Pn as renderLogsViewer,
3453
+ Ir as renderMatesDevTools,
3454
+ Yn as renderPerfViewer,
3455
+ Xe as renderPropsViewer,
3456
+ qe as renderScopesViewer,
3457
+ Qe as renderUseStateViewer,
3458
+ O as renderValueTree,
3459
+ wr as renderValueTreeEntries,
3460
+ te as setValueTreeRenderCallback,
3461
+ Tr as startRenderTiming,
3462
+ r as styles,
3463
+ Oe as unregisterComponent
3464
+ };