pi-app 0.7.0

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 (484) hide show
  1. package/.next/BUILD_ID +1 -0
  2. package/.next/app-path-routes-manifest.json +55 -0
  3. package/.next/build-manifest.json +20 -0
  4. package/.next/diagnostics/build-diagnostics.json +6 -0
  5. package/.next/diagnostics/framework.json +1 -0
  6. package/.next/export-marker.json +6 -0
  7. package/.next/images-manifest.json +68 -0
  8. package/.next/next-minimal-server.js.nft.json +1 -0
  9. package/.next/next-server.js.nft.json +1 -0
  10. package/.next/package.json +1 -0
  11. package/.next/prerender-manifest.json +114 -0
  12. package/.next/react-loadable-manifest.json +2271 -0
  13. package/.next/required-server-files.js +347 -0
  14. package/.next/required-server-files.json +347 -0
  15. package/.next/routes-manifest.json +394 -0
  16. package/.next/server/app/_global-error/page.js +32 -0
  17. package/.next/server/app/_global-error/page.js.nft.json +1 -0
  18. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -0
  19. package/.next/server/app/_global-error.html +1 -0
  20. package/.next/server/app/_global-error.meta +16 -0
  21. package/.next/server/app/_global-error.rsc +14 -0
  22. package/.next/server/app/_global-error.segments/_full.segment.rsc +14 -0
  23. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +5 -0
  24. package/.next/server/app/_global-error.segments/_global-error.segment.rsc +5 -0
  25. package/.next/server/app/_global-error.segments/_head.segment.rsc +5 -0
  26. package/.next/server/app/_global-error.segments/_index.segment.rsc +5 -0
  27. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
  28. package/.next/server/app/_not-found/page.js +2 -0
  29. package/.next/server/app/_not-found/page.js.nft.json +1 -0
  30. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
  31. package/.next/server/app/_not-found.html +1 -0
  32. package/.next/server/app/_not-found.meta +16 -0
  33. package/.next/server/app/_not-found.rsc +19 -0
  34. package/.next/server/app/_not-found.segments/_full.segment.rsc +19 -0
  35. package/.next/server/app/_not-found.segments/_head.segment.rsc +6 -0
  36. package/.next/server/app/_not-found.segments/_index.segment.rsc +6 -0
  37. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
  38. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +5 -0
  39. package/.next/server/app/_not-found.segments/_tree.segment.rsc +4 -0
  40. package/.next/server/app/api/agent/[id]/events/route.js +3 -0
  41. package/.next/server/app/api/agent/[id]/events/route.js.nft.json +1 -0
  42. package/.next/server/app/api/agent/[id]/events/route_client-reference-manifest.js +1 -0
  43. package/.next/server/app/api/agent/[id]/export.html/route.js +1 -0
  44. package/.next/server/app/api/agent/[id]/export.html/route.js.nft.json +1 -0
  45. package/.next/server/app/api/agent/[id]/export.html/route_client-reference-manifest.js +1 -0
  46. package/.next/server/app/api/agent/[id]/route.js +1 -0
  47. package/.next/server/app/api/agent/[id]/route.js.nft.json +1 -0
  48. package/.next/server/app/api/agent/[id]/route_client-reference-manifest.js +1 -0
  49. package/.next/server/app/api/agent/new/route.js +1 -0
  50. package/.next/server/app/api/agent/new/route.js.nft.json +1 -0
  51. package/.next/server/app/api/agent/new/route_client-reference-manifest.js +1 -0
  52. package/.next/server/app/api/auth/all-providers/route.js +1 -0
  53. package/.next/server/app/api/auth/all-providers/route.js.nft.json +1 -0
  54. package/.next/server/app/api/auth/all-providers/route_client-reference-manifest.js +1 -0
  55. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -0
  56. package/.next/server/app/api/auth/api-key/[provider]/route.js.nft.json +1 -0
  57. package/.next/server/app/api/auth/api-key/[provider]/route_client-reference-manifest.js +1 -0
  58. package/.next/server/app/api/auth/login/[provider]/route.js +3 -0
  59. package/.next/server/app/api/auth/login/[provider]/route.js.nft.json +1 -0
  60. package/.next/server/app/api/auth/login/[provider]/route_client-reference-manifest.js +1 -0
  61. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -0
  62. package/.next/server/app/api/auth/logout/[provider]/route.js.nft.json +1 -0
  63. package/.next/server/app/api/auth/logout/[provider]/route_client-reference-manifest.js +1 -0
  64. package/.next/server/app/api/auth/providers/route.js +1 -0
  65. package/.next/server/app/api/auth/providers/route.js.nft.json +1 -0
  66. package/.next/server/app/api/auth/providers/route_client-reference-manifest.js +1 -0
  67. package/.next/server/app/api/cwd/validate/route.js +1 -0
  68. package/.next/server/app/api/cwd/validate/route.js.nft.json +1 -0
  69. package/.next/server/app/api/cwd/validate/route_client-reference-manifest.js +1 -0
  70. package/.next/server/app/api/default-cwd/route.js +1 -0
  71. package/.next/server/app/api/default-cwd/route.js.nft.json +1 -0
  72. package/.next/server/app/api/default-cwd/route_client-reference-manifest.js +1 -0
  73. package/.next/server/app/api/extensions/route.js +2 -0
  74. package/.next/server/app/api/extensions/route.js.nft.json +1 -0
  75. package/.next/server/app/api/extensions/route_client-reference-manifest.js +1 -0
  76. package/.next/server/app/api/files/[...path]/route.js +50 -0
  77. package/.next/server/app/api/files/[...path]/route.js.nft.json +1 -0
  78. package/.next/server/app/api/files/[...path]/route_client-reference-manifest.js +1 -0
  79. package/.next/server/app/api/files/stage/route.js +1 -0
  80. package/.next/server/app/api/files/stage/route.js.nft.json +1 -0
  81. package/.next/server/app/api/files/stage/route_client-reference-manifest.js +1 -0
  82. package/.next/server/app/api/git-branch/route.js +1 -0
  83. package/.next/server/app/api/git-branch/route.js.nft.json +1 -0
  84. package/.next/server/app/api/git-branch/route_client-reference-manifest.js +1 -0
  85. package/.next/server/app/api/health/route.js +1 -0
  86. package/.next/server/app/api/health/route.js.nft.json +1 -0
  87. package/.next/server/app/api/health/route_client-reference-manifest.js +1 -0
  88. package/.next/server/app/api/history/[id]/route.js +2 -0
  89. package/.next/server/app/api/history/[id]/route.js.nft.json +1 -0
  90. package/.next/server/app/api/history/[id]/route_client-reference-manifest.js +1 -0
  91. package/.next/server/app/api/history/route.js +2 -0
  92. package/.next/server/app/api/history/route.js.nft.json +1 -0
  93. package/.next/server/app/api/history/route_client-reference-manifest.js +1 -0
  94. package/.next/server/app/api/home/route.js +1 -0
  95. package/.next/server/app/api/home/route.js.nft.json +1 -0
  96. package/.next/server/app/api/home/route_client-reference-manifest.js +1 -0
  97. package/.next/server/app/api/models/route.js +1 -0
  98. package/.next/server/app/api/models/route.js.nft.json +1 -0
  99. package/.next/server/app/api/models/route_client-reference-manifest.js +1 -0
  100. package/.next/server/app/api/models-config/route.js +1 -0
  101. package/.next/server/app/api/models-config/route.js.nft.json +1 -0
  102. package/.next/server/app/api/models-config/route_client-reference-manifest.js +1 -0
  103. package/.next/server/app/api/models-config/test/route.js +1 -0
  104. package/.next/server/app/api/models-config/test/route.js.nft.json +1 -0
  105. package/.next/server/app/api/models-config/test/route_client-reference-manifest.js +1 -0
  106. package/.next/server/app/api/notifications/agent-end/route.js +3 -0
  107. package/.next/server/app/api/notifications/agent-end/route.js.nft.json +1 -0
  108. package/.next/server/app/api/notifications/agent-end/route_client-reference-manifest.js +1 -0
  109. package/.next/server/app/api/preferences/route.js +2 -0
  110. package/.next/server/app/api/preferences/route.js.nft.json +1 -0
  111. package/.next/server/app/api/preferences/route_client-reference-manifest.js +1 -0
  112. package/.next/server/app/api/product-sessions/[id]/route.js +3 -0
  113. package/.next/server/app/api/product-sessions/[id]/route.js.nft.json +1 -0
  114. package/.next/server/app/api/product-sessions/[id]/route_client-reference-manifest.js +1 -0
  115. package/.next/server/app/api/push/route.js +2 -0
  116. package/.next/server/app/api/push/route.js.nft.json +1 -0
  117. package/.next/server/app/api/push/route_client-reference-manifest.js +1 -0
  118. package/.next/server/app/api/remote/audit/route.js +1 -0
  119. package/.next/server/app/api/remote/audit/route.js.nft.json +1 -0
  120. package/.next/server/app/api/remote/audit/route_client-reference-manifest.js +1 -0
  121. package/.next/server/app/api/remote/client/route.js +1 -0
  122. package/.next/server/app/api/remote/client/route.js.nft.json +1 -0
  123. package/.next/server/app/api/remote/client/route_client-reference-manifest.js +1 -0
  124. package/.next/server/app/api/remote/pair/route.js +1 -0
  125. package/.next/server/app/api/remote/pair/route.js.nft.json +1 -0
  126. package/.next/server/app/api/remote/pair/route_client-reference-manifest.js +1 -0
  127. package/.next/server/app/api/remote/route.js +1 -0
  128. package/.next/server/app/api/remote/route.js.nft.json +1 -0
  129. package/.next/server/app/api/remote/route_client-reference-manifest.js +1 -0
  130. package/.next/server/app/api/scene-overrides/[sceneId]/route.js +3 -0
  131. package/.next/server/app/api/scene-overrides/[sceneId]/route.js.nft.json +1 -0
  132. package/.next/server/app/api/scene-overrides/[sceneId]/route_client-reference-manifest.js +1 -0
  133. package/.next/server/app/api/scene-overrides/export/route.js +4 -0
  134. package/.next/server/app/api/scene-overrides/export/route.js.nft.json +1 -0
  135. package/.next/server/app/api/scene-overrides/export/route_client-reference-manifest.js +1 -0
  136. package/.next/server/app/api/scene-overrides/import/route.js +3 -0
  137. package/.next/server/app/api/scene-overrides/import/route.js.nft.json +1 -0
  138. package/.next/server/app/api/scene-overrides/import/route_client-reference-manifest.js +1 -0
  139. package/.next/server/app/api/scene-overrides/route.js +3 -0
  140. package/.next/server/app/api/scene-overrides/route.js.nft.json +1 -0
  141. package/.next/server/app/api/scene-overrides/route_client-reference-manifest.js +1 -0
  142. package/.next/server/app/api/sessions/[id]/context/route.js +2 -0
  143. package/.next/server/app/api/sessions/[id]/context/route.js.nft.json +1 -0
  144. package/.next/server/app/api/sessions/[id]/context/route_client-reference-manifest.js +1 -0
  145. package/.next/server/app/api/sessions/[id]/route.js +1 -0
  146. package/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -0
  147. package/.next/server/app/api/sessions/[id]/route_client-reference-manifest.js +1 -0
  148. package/.next/server/app/api/sessions/[id]/share/route.js +1 -0
  149. package/.next/server/app/api/sessions/[id]/share/route.js.nft.json +1 -0
  150. package/.next/server/app/api/sessions/[id]/share/route_client-reference-manifest.js +1 -0
  151. package/.next/server/app/api/sessions/new/route.js +1 -0
  152. package/.next/server/app/api/sessions/new/route.js.nft.json +1 -0
  153. package/.next/server/app/api/sessions/new/route_client-reference-manifest.js +1 -0
  154. package/.next/server/app/api/sessions/route.js +2 -0
  155. package/.next/server/app/api/sessions/route.js.nft.json +1 -0
  156. package/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -0
  157. package/.next/server/app/api/settings/default-model/route.js +1 -0
  158. package/.next/server/app/api/settings/default-model/route.js.nft.json +1 -0
  159. package/.next/server/app/api/settings/default-model/route_client-reference-manifest.js +1 -0
  160. package/.next/server/app/api/share/[token]/route.js +2 -0
  161. package/.next/server/app/api/share/[token]/route.js.nft.json +1 -0
  162. package/.next/server/app/api/share/[token]/route_client-reference-manifest.js +1 -0
  163. package/.next/server/app/api/skills/install/route.js +1 -0
  164. package/.next/server/app/api/skills/install/route.js.nft.json +1 -0
  165. package/.next/server/app/api/skills/install/route_client-reference-manifest.js +1 -0
  166. package/.next/server/app/api/skills/route.js +6 -0
  167. package/.next/server/app/api/skills/route.js.nft.json +1 -0
  168. package/.next/server/app/api/skills/route_client-reference-manifest.js +1 -0
  169. package/.next/server/app/api/skills/search/route.js +1 -0
  170. package/.next/server/app/api/skills/search/route.js.nft.json +1 -0
  171. package/.next/server/app/api/skills/search/route_client-reference-manifest.js +1 -0
  172. package/.next/server/app/api/usage/route.js +2 -0
  173. package/.next/server/app/api/usage/route.js.nft.json +1 -0
  174. package/.next/server/app/api/usage/route_client-reference-manifest.js +1 -0
  175. package/.next/server/app/api/web-fetch/install-agent-browser/route.js +3 -0
  176. package/.next/server/app/api/web-fetch/install-agent-browser/route.js.nft.json +1 -0
  177. package/.next/server/app/api/web-fetch/install-agent-browser/route_client-reference-manifest.js +1 -0
  178. package/.next/server/app/api/web-fetch/preferences/route.js +1 -0
  179. package/.next/server/app/api/web-fetch/preferences/route.js.nft.json +1 -0
  180. package/.next/server/app/api/web-fetch/preferences/route_client-reference-manifest.js +1 -0
  181. package/.next/server/app/api/web-fetch/status/route.js +1 -0
  182. package/.next/server/app/api/web-fetch/status/route.js.nft.json +1 -0
  183. package/.next/server/app/api/web-fetch/status/route_client-reference-manifest.js +1 -0
  184. package/.next/server/app/favicon.ico/route.js +1 -0
  185. package/.next/server/app/favicon.ico/route.js.nft.json +1 -0
  186. package/.next/server/app/favicon.ico.body +0 -0
  187. package/.next/server/app/favicon.ico.meta +1 -0
  188. package/.next/server/app/index.html +1 -0
  189. package/.next/server/app/index.meta +14 -0
  190. package/.next/server/app/index.rsc +18 -0
  191. package/.next/server/app/index.segments/__PAGE__.segment.rsc +6 -0
  192. package/.next/server/app/index.segments/_full.segment.rsc +18 -0
  193. package/.next/server/app/index.segments/_head.segment.rsc +6 -0
  194. package/.next/server/app/index.segments/_index.segment.rsc +6 -0
  195. package/.next/server/app/index.segments/_tree.segment.rsc +4 -0
  196. package/.next/server/app/page.js +5 -0
  197. package/.next/server/app/page.js.nft.json +1 -0
  198. package/.next/server/app/page_client-reference-manifest.js +1 -0
  199. package/.next/server/app/share/[token]/page.js +2 -0
  200. package/.next/server/app/share/[token]/page.js.nft.json +1 -0
  201. package/.next/server/app/share/[token]/page_client-reference-manifest.js +1 -0
  202. package/.next/server/app-paths-manifest.json +55 -0
  203. package/.next/server/chunks/1048.js +1 -0
  204. package/.next/server/chunks/1185.js +3 -0
  205. package/.next/server/chunks/1367.js +77 -0
  206. package/.next/server/chunks/1381.js +1 -0
  207. package/.next/server/chunks/165.js +1 -0
  208. package/.next/server/chunks/1681.js +215 -0
  209. package/.next/server/chunks/1703.js +79 -0
  210. package/.next/server/chunks/1712.js +43 -0
  211. package/.next/server/chunks/1813.js +1 -0
  212. package/.next/server/chunks/2325.js +80 -0
  213. package/.next/server/chunks/258.js +1 -0
  214. package/.next/server/chunks/2671.js +287 -0
  215. package/.next/server/chunks/2778.js +1 -0
  216. package/.next/server/chunks/2943.js +1 -0
  217. package/.next/server/chunks/3031.js +226 -0
  218. package/.next/server/chunks/3181.js +1 -0
  219. package/.next/server/chunks/319.js +45 -0
  220. package/.next/server/chunks/3379.js +1 -0
  221. package/.next/server/chunks/3451.js +1 -0
  222. package/.next/server/chunks/349.js +4 -0
  223. package/.next/server/chunks/3493.js +1 -0
  224. package/.next/server/chunks/3672.js +1 -0
  225. package/.next/server/chunks/3701.js +104 -0
  226. package/.next/server/chunks/4035.js +80 -0
  227. package/.next/server/chunks/4248.js +153 -0
  228. package/.next/server/chunks/4325.js +90 -0
  229. package/.next/server/chunks/4367.js +1 -0
  230. package/.next/server/chunks/4406.js +141 -0
  231. package/.next/server/chunks/459.js +2 -0
  232. package/.next/server/chunks/4741.js +18 -0
  233. package/.next/server/chunks/4858.js +148 -0
  234. package/.next/server/chunks/4880.js +1 -0
  235. package/.next/server/chunks/4980.js +1 -0
  236. package/.next/server/chunks/5155.js +5 -0
  237. package/.next/server/chunks/5293.js +166 -0
  238. package/.next/server/chunks/5409.js +1 -0
  239. package/.next/server/chunks/5797.js +93 -0
  240. package/.next/server/chunks/5851.js +36 -0
  241. package/.next/server/chunks/6206.js +1 -0
  242. package/.next/server/chunks/6296.js +1 -0
  243. package/.next/server/chunks/6346.js +1 -0
  244. package/.next/server/chunks/6406.js +23 -0
  245. package/.next/server/chunks/642.js +1 -0
  246. package/.next/server/chunks/6429.js +2 -0
  247. package/.next/server/chunks/6729.js +64 -0
  248. package/.next/server/chunks/6907.js +115 -0
  249. package/.next/server/chunks/6980.js +1 -0
  250. package/.next/server/chunks/7073.js +24 -0
  251. package/.next/server/chunks/7233.js +24 -0
  252. package/.next/server/chunks/7270.js +2 -0
  253. package/.next/server/chunks/7307.js +1 -0
  254. package/.next/server/chunks/7362.js +9 -0
  255. package/.next/server/chunks/7567.js +29 -0
  256. package/.next/server/chunks/8238.js +34 -0
  257. package/.next/server/chunks/8276.js +1 -0
  258. package/.next/server/chunks/8336.js +1 -0
  259. package/.next/server/chunks/8342.js +4 -0
  260. package/.next/server/chunks/8433.js +1 -0
  261. package/.next/server/chunks/8490.js +1 -0
  262. package/.next/server/chunks/8916.js +1 -0
  263. package/.next/server/chunks/9280.js +252 -0
  264. package/.next/server/chunks/9315.js +1 -0
  265. package/.next/server/chunks/966.js +1 -0
  266. package/.next/server/edge-instrumentation.js +2 -0
  267. package/.next/server/edge-runtime-webpack.js +2 -0
  268. package/.next/server/functions-config-manifest.json +8 -0
  269. package/.next/server/instrumentation.js +1 -0
  270. package/.next/server/instrumentation.js.nft.json +1 -0
  271. package/.next/server/interception-route-rewrite-manifest.js +1 -0
  272. package/.next/server/middleware-build-manifest.js +1 -0
  273. package/.next/server/middleware-manifest.json +34 -0
  274. package/.next/server/middleware-react-loadable-manifest.js +1 -0
  275. package/.next/server/middleware.js +10 -0
  276. package/.next/server/next-font-manifest.js +1 -0
  277. package/.next/server/next-font-manifest.json +1 -0
  278. package/.next/server/pages/404.html +1 -0
  279. package/.next/server/pages/500.html +1 -0
  280. package/.next/server/pages-manifest.json +4 -0
  281. package/.next/server/prefetch-hints.json +1 -0
  282. package/.next/server/server-reference-manifest.js +1 -0
  283. package/.next/server/server-reference-manifest.json +1 -0
  284. package/.next/server/webpack-runtime.js +1 -0
  285. package/.next/static/chunks/0b9a0da7.915b07ceecd18755.js +62 -0
  286. package/.next/static/chunks/1413.922d232de90c0c41.js +115 -0
  287. package/.next/static/chunks/1643.467a526a1f24f54d.js +24 -0
  288. package/.next/static/chunks/1852.4afb7f7ef17737c1.js +1 -0
  289. package/.next/static/chunks/1960.b1e26436d7a5f586.js +1 -0
  290. package/.next/static/chunks/2241-3268f463e00f6e38.js +1 -0
  291. package/.next/static/chunks/2261-cd89471c199745e2.js +4 -0
  292. package/.next/static/chunks/2419.fb50b8bb1874d556.js +166 -0
  293. package/.next/static/chunks/2619.9aac8983f30c7c8a.js +1 -0
  294. package/.next/static/chunks/2623.d20fabd8e18197c6.js +287 -0
  295. package/.next/static/chunks/2729.f5365061a849d659.js +34 -0
  296. package/.next/static/chunks/2821.934bcf60fbdc28c6.js +1 -0
  297. package/.next/static/chunks/2918becc.abff2ece1de37bc1.js +153 -0
  298. package/.next/static/chunks/2947.114e51cb06d1c01a.js +23 -0
  299. package/.next/static/chunks/3079.90c6008a4bba4ee1.js +79 -0
  300. package/.next/static/chunks/3274.208ca44844cd7d95.js +148 -0
  301. package/.next/static/chunks/3308.115707ee3fd446be.js +73 -0
  302. package/.next/static/chunks/3325.01cdecedf0fb6d62.js +80 -0
  303. package/.next/static/chunks/3794-ba2500baa4c52d55.js +32 -0
  304. package/.next/static/chunks/3837.a755ccfe6f9c1c1c.js +5 -0
  305. package/.next/static/chunks/394.2860c5a408dc8801.js +1 -0
  306. package/.next/static/chunks/3997.42e942ad02cc6f4b.js +1 -0
  307. package/.next/static/chunks/4491.44fdf20580ac72bd.js +24 -0
  308. package/.next/static/chunks/4829.cf1d50e43e6d9db5.js +1 -0
  309. package/.next/static/chunks/498.fe1d9da9ecad6c36.js +1 -0
  310. package/.next/static/chunks/4bd1b696-e356ca5ba0218e27.js +1 -0
  311. package/.next/static/chunks/5019.b5a1a2b8daf17525.js +1 -0
  312. package/.next/static/chunks/5034.cbaaf32db6d2086d.js +1 -0
  313. package/.next/static/chunks/5035.3755dbc45ec0eb8d.js +90 -0
  314. package/.next/static/chunks/5074.fc63ed48a3b1a61f.js +1 -0
  315. package/.next/static/chunks/5118-c59568935da468da.js +1 -0
  316. package/.next/static/chunks/532.5956ed631aff722b.js +9 -0
  317. package/.next/static/chunks/5326.69460442bdcd6cd3.js +1 -0
  318. package/.next/static/chunks/5403.ff110bf5bf600758.js +64 -0
  319. package/.next/static/chunks/547.902a733488cfe3f7.js +77 -0
  320. package/.next/static/chunks/5567.540d7fc108ad6ee5.js +215 -0
  321. package/.next/static/chunks/5590.ef62922166d308b4.js +1 -0
  322. package/.next/static/chunks/5690.9d6eb1edb1399995.js +1 -0
  323. package/.next/static/chunks/5749.25faee4a1e55b854.js +226 -0
  324. package/.next/static/chunks/58bb9007.1ccb6bba34b4c635.js +80 -0
  325. package/.next/static/chunks/6121.f3f43f1896ea0cd9.js +1 -0
  326. package/.next/static/chunks/634-ca908c8d0258d9db.js +3 -0
  327. package/.next/static/chunks/6600.583c88eef37aa524.js +1 -0
  328. package/.next/static/chunks/6696.c05e02f280b8186b.js +141 -0
  329. package/.next/static/chunks/6922.42148793782d2fe7.js +1 -0
  330. package/.next/static/chunks/7006.e191611ffc2b9528.js +43 -0
  331. package/.next/static/chunks/7343.9574ac32b87d5050.js +1 -0
  332. package/.next/static/chunks/73972abe.25a4cffa03b2bcef.js +119 -0
  333. package/.next/static/chunks/7547.8caf31f3b18ded65.js +93 -0
  334. package/.next/static/chunks/7648.4ae2f183b4db0353.js +1 -0
  335. package/.next/static/chunks/7874.8db6929b94cdf697.js +1 -0
  336. package/.next/static/chunks/7959.1f20a35df316216a.js +104 -0
  337. package/.next/static/chunks/83.85d62d7fc9850b75.js +29 -0
  338. package/.next/static/chunks/8489.fd81b5e4de9f8431.js +36 -0
  339. package/.next/static/chunks/8568.f85d8b36fc9a9037.js +1 -0
  340. package/.next/static/chunks/8863.be51033a67436277.js +1 -0
  341. package/.next/static/chunks/90542734.ecc36ada79772529.js +1 -0
  342. package/.next/static/chunks/9500.1488aec06ee78127.js +1 -0
  343. package/.next/static/chunks/9633.155548b5fca6e580.js +1 -0
  344. package/.next/static/chunks/9779.673004a62d70e36a.js +1 -0
  345. package/.next/static/chunks/9b0008ae.3afefd8b13735168.js +2 -0
  346. package/.next/static/chunks/app/_global-error/page-6ba03eac42f3d2bb.js +1 -0
  347. package/.next/static/chunks/app/_not-found/page-647d65d4d44f4663.js +1 -0
  348. package/.next/static/chunks/app/api/agent/[id]/events/route-6ba03eac42f3d2bb.js +1 -0
  349. package/.next/static/chunks/app/api/agent/[id]/export.html/route-6ba03eac42f3d2bb.js +1 -0
  350. package/.next/static/chunks/app/api/agent/[id]/route-6ba03eac42f3d2bb.js +1 -0
  351. package/.next/static/chunks/app/api/agent/new/route-6ba03eac42f3d2bb.js +1 -0
  352. package/.next/static/chunks/app/api/auth/all-providers/route-6ba03eac42f3d2bb.js +1 -0
  353. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-6ba03eac42f3d2bb.js +1 -0
  354. package/.next/static/chunks/app/api/auth/login/[provider]/route-6ba03eac42f3d2bb.js +1 -0
  355. package/.next/static/chunks/app/api/auth/logout/[provider]/route-6ba03eac42f3d2bb.js +1 -0
  356. package/.next/static/chunks/app/api/auth/providers/route-6ba03eac42f3d2bb.js +1 -0
  357. package/.next/static/chunks/app/api/cwd/validate/route-6ba03eac42f3d2bb.js +1 -0
  358. package/.next/static/chunks/app/api/default-cwd/route-6ba03eac42f3d2bb.js +1 -0
  359. package/.next/static/chunks/app/api/extensions/route-6ba03eac42f3d2bb.js +1 -0
  360. package/.next/static/chunks/app/api/files/[...path]/route-6ba03eac42f3d2bb.js +1 -0
  361. package/.next/static/chunks/app/api/files/stage/route-6ba03eac42f3d2bb.js +1 -0
  362. package/.next/static/chunks/app/api/git-branch/route-6ba03eac42f3d2bb.js +1 -0
  363. package/.next/static/chunks/app/api/health/route-6ba03eac42f3d2bb.js +1 -0
  364. package/.next/static/chunks/app/api/history/[id]/route-6ba03eac42f3d2bb.js +1 -0
  365. package/.next/static/chunks/app/api/history/route-6ba03eac42f3d2bb.js +1 -0
  366. package/.next/static/chunks/app/api/home/route-6ba03eac42f3d2bb.js +1 -0
  367. package/.next/static/chunks/app/api/models/route-6ba03eac42f3d2bb.js +1 -0
  368. package/.next/static/chunks/app/api/models-config/route-6ba03eac42f3d2bb.js +1 -0
  369. package/.next/static/chunks/app/api/models-config/test/route-6ba03eac42f3d2bb.js +1 -0
  370. package/.next/static/chunks/app/api/notifications/agent-end/route-6ba03eac42f3d2bb.js +1 -0
  371. package/.next/static/chunks/app/api/preferences/route-6ba03eac42f3d2bb.js +1 -0
  372. package/.next/static/chunks/app/api/product-sessions/[id]/route-6ba03eac42f3d2bb.js +1 -0
  373. package/.next/static/chunks/app/api/push/route-6ba03eac42f3d2bb.js +1 -0
  374. package/.next/static/chunks/app/api/remote/audit/route-6ba03eac42f3d2bb.js +1 -0
  375. package/.next/static/chunks/app/api/remote/client/route-6ba03eac42f3d2bb.js +1 -0
  376. package/.next/static/chunks/app/api/remote/pair/route-6ba03eac42f3d2bb.js +1 -0
  377. package/.next/static/chunks/app/api/remote/route-6ba03eac42f3d2bb.js +1 -0
  378. package/.next/static/chunks/app/api/scene-overrides/[sceneId]/route-6ba03eac42f3d2bb.js +1 -0
  379. package/.next/static/chunks/app/api/scene-overrides/export/route-6ba03eac42f3d2bb.js +1 -0
  380. package/.next/static/chunks/app/api/scene-overrides/import/route-6ba03eac42f3d2bb.js +1 -0
  381. package/.next/static/chunks/app/api/scene-overrides/route-6ba03eac42f3d2bb.js +1 -0
  382. package/.next/static/chunks/app/api/sessions/[id]/context/route-6ba03eac42f3d2bb.js +1 -0
  383. package/.next/static/chunks/app/api/sessions/[id]/route-6ba03eac42f3d2bb.js +1 -0
  384. package/.next/static/chunks/app/api/sessions/[id]/share/route-6ba03eac42f3d2bb.js +1 -0
  385. package/.next/static/chunks/app/api/sessions/new/route-6ba03eac42f3d2bb.js +1 -0
  386. package/.next/static/chunks/app/api/sessions/route-6ba03eac42f3d2bb.js +1 -0
  387. package/.next/static/chunks/app/api/settings/default-model/route-6ba03eac42f3d2bb.js +1 -0
  388. package/.next/static/chunks/app/api/share/[token]/route-6ba03eac42f3d2bb.js +1 -0
  389. package/.next/static/chunks/app/api/skills/install/route-6ba03eac42f3d2bb.js +1 -0
  390. package/.next/static/chunks/app/api/skills/route-6ba03eac42f3d2bb.js +1 -0
  391. package/.next/static/chunks/app/api/skills/search/route-6ba03eac42f3d2bb.js +1 -0
  392. package/.next/static/chunks/app/api/usage/route-6ba03eac42f3d2bb.js +1 -0
  393. package/.next/static/chunks/app/api/web-fetch/install-agent-browser/route-6ba03eac42f3d2bb.js +1 -0
  394. package/.next/static/chunks/app/api/web-fetch/preferences/route-6ba03eac42f3d2bb.js +1 -0
  395. package/.next/static/chunks/app/api/web-fetch/status/route-6ba03eac42f3d2bb.js +1 -0
  396. package/.next/static/chunks/app/layout-e74bc51db18cfddb.js +1 -0
  397. package/.next/static/chunks/app/page-0a72cdb03c0de546.js +2 -0
  398. package/.next/static/chunks/app/share/[token]/page-801df8f03e50e9cc.js +1 -0
  399. package/.next/static/chunks/d3ac728e.7964f816a1ca64e5.js +1 -0
  400. package/.next/static/chunks/framework-594babcea68f40f6.js +1 -0
  401. package/.next/static/chunks/main-a301b80fa032f44e.js +5 -0
  402. package/.next/static/chunks/main-app-4543b2d36de0bf44.js +1 -0
  403. package/.next/static/chunks/next/dist/client/components/builtin/app-error-6ba03eac42f3d2bb.js +1 -0
  404. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-6ba03eac42f3d2bb.js +1 -0
  405. package/.next/static/chunks/next/dist/client/components/builtin/global-error-7fe17cf3265b4136.js +1 -0
  406. package/.next/static/chunks/next/dist/client/components/builtin/not-found-6ba03eac42f3d2bb.js +1 -0
  407. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-6ba03eac42f3d2bb.js +1 -0
  408. package/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  409. package/.next/static/chunks/webpack-bef1f311e5b374f6.js +1 -0
  410. package/.next/static/css/889d8f95f57176c7.css +3 -0
  411. package/.next/static/mO8qg2XV3QxoVaZcobTyc/_buildManifest.js +1 -0
  412. package/.next/static/mO8qg2XV3QxoVaZcobTyc/_ssgManifest.js +1 -0
  413. package/.next/static/media/15605e25b523335c-s.woff2 +0 -0
  414. package/.next/static/media/1a3dce5cfb5f7760-s.woff2 +0 -0
  415. package/.next/static/media/1cdd02902f937a18-s.woff2 +0 -0
  416. package/.next/static/media/4c4b3b30b6bcb2be-s.woff2 +0 -0
  417. package/.next/static/media/641a7b8a5800ee0e-s.woff2 +0 -0
  418. package/.next/static/media/7deddc85b7ffd1dc-s.p.woff2 +0 -0
  419. package/.next/static/media/ec14413c594b3356-s.p.woff2 +0 -0
  420. package/.next/trace +6 -0
  421. package/.next/trace-build +1 -0
  422. package/.next/types/app/api/agent/[id]/events/route.ts +351 -0
  423. package/.next/types/app/api/agent/[id]/export.html/route.ts +351 -0
  424. package/.next/types/app/api/agent/[id]/route.ts +351 -0
  425. package/.next/types/app/api/agent/new/route.ts +351 -0
  426. package/.next/types/app/api/auth/all-providers/route.ts +351 -0
  427. package/.next/types/app/api/auth/api-key/[provider]/route.ts +351 -0
  428. package/.next/types/app/api/auth/login/[provider]/route.ts +351 -0
  429. package/.next/types/app/api/auth/logout/[provider]/route.ts +351 -0
  430. package/.next/types/app/api/auth/providers/route.ts +351 -0
  431. package/.next/types/app/api/cwd/validate/route.ts +351 -0
  432. package/.next/types/app/api/default-cwd/route.ts +351 -0
  433. package/.next/types/app/api/extensions/route.ts +351 -0
  434. package/.next/types/app/api/files/[...path]/route.ts +351 -0
  435. package/.next/types/app/api/files/stage/route.ts +351 -0
  436. package/.next/types/app/api/git-branch/route.ts +351 -0
  437. package/.next/types/app/api/health/route.ts +351 -0
  438. package/.next/types/app/api/history/[id]/route.ts +351 -0
  439. package/.next/types/app/api/history/route.ts +351 -0
  440. package/.next/types/app/api/home/route.ts +351 -0
  441. package/.next/types/app/api/models/route.ts +351 -0
  442. package/.next/types/app/api/models-config/route.ts +351 -0
  443. package/.next/types/app/api/models-config/test/route.ts +351 -0
  444. package/.next/types/app/api/notifications/agent-end/route.ts +351 -0
  445. package/.next/types/app/api/preferences/route.ts +351 -0
  446. package/.next/types/app/api/product-sessions/[id]/route.ts +351 -0
  447. package/.next/types/app/api/push/route.ts +351 -0
  448. package/.next/types/app/api/remote/audit/route.ts +351 -0
  449. package/.next/types/app/api/remote/client/route.ts +351 -0
  450. package/.next/types/app/api/remote/pair/route.ts +351 -0
  451. package/.next/types/app/api/remote/route.ts +351 -0
  452. package/.next/types/app/api/scene-overrides/[sceneId]/route.ts +351 -0
  453. package/.next/types/app/api/scene-overrides/export/route.ts +351 -0
  454. package/.next/types/app/api/scene-overrides/import/route.ts +351 -0
  455. package/.next/types/app/api/scene-overrides/route.ts +351 -0
  456. package/.next/types/app/api/sessions/[id]/context/route.ts +351 -0
  457. package/.next/types/app/api/sessions/[id]/route.ts +351 -0
  458. package/.next/types/app/api/sessions/[id]/share/route.ts +351 -0
  459. package/.next/types/app/api/sessions/new/route.ts +351 -0
  460. package/.next/types/app/api/sessions/route.ts +351 -0
  461. package/.next/types/app/api/settings/default-model/route.ts +351 -0
  462. package/.next/types/app/api/share/[token]/route.ts +351 -0
  463. package/.next/types/app/api/skills/install/route.ts +351 -0
  464. package/.next/types/app/api/skills/route.ts +351 -0
  465. package/.next/types/app/api/skills/search/route.ts +351 -0
  466. package/.next/types/app/api/usage/route.ts +351 -0
  467. package/.next/types/app/api/web-fetch/install-agent-browser/route.ts +351 -0
  468. package/.next/types/app/api/web-fetch/preferences/route.ts +351 -0
  469. package/.next/types/app/api/web-fetch/status/route.ts +351 -0
  470. package/.next/types/app/page.ts +87 -0
  471. package/.next/types/app/share/[token]/page.ts +87 -0
  472. package/.next/types/cache-life.d.ts +145 -0
  473. package/.next/types/package.json +1 -0
  474. package/.next/types/routes.d.ts +121 -0
  475. package/.next/types/validator.ts +511 -0
  476. package/LICENSE +21 -0
  477. package/README.md +142 -0
  478. package/bin/pi-app.js +113 -0
  479. package/next.config.ts +61 -0
  480. package/package.json +78 -0
  481. package/public/icon.svg +4 -0
  482. package/public/manifest.webmanifest +18 -0
  483. package/public/pdf.worker.min.mjs +21 -0
  484. package/public/sw.js +63 -0
@@ -0,0 +1,226 @@
1
+ "use strict";exports.id=3031,exports.ids=[3031],exports.modules={34091:(a,b,c)=>{c.d(b,{P:()=>f});var d=c(65246),e=c(21143),f=(0,e.K2)((a,b,c,f)=>{a.attr("class",c);let{width:i,height:j,x:k,y:l}=g(a,b);(0,d.a$)(a,j,i,f);let m=h(k,l,i,j,b);a.attr("viewBox",m),e.Rm.debug(`viewBox configured: ${m} with padding: ${b}`)},"setupViewPortForSVG"),g=(0,e.K2)((a,b)=>{let c=a.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:c.width+2*b,height:c.height+2*b,x:c.x,y:c.y}},"calculateDimensionsWithPadding"),h=(0,e.K2)((a,b,c,d,e)=>`${a-e} ${b-e} ${c} ${d}`,"createViewBox")},80339:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(21143),e=c(69085),f=(0,d.K2)((a,b)=>{let c;return"sandbox"===b&&(c=(0,e.Ltv)("#i"+a)),("sandbox"===b?(0,e.Ltv)(c.nodes()[0].contentDocument.body):(0,e.Ltv)("body")).select(`[id="${a}"]`)},"getDiagramElement")},83031:(a,b,c)=>{c.d(b,{Zk:()=>k,q7:()=>M,tM:()=>ac,u4:()=>ab});var d=c(80339),e=c(34091),f=c(44906),g=c(70400),h=c(65246),i=c(21143),j=function(){var a=(0,i.K2)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[1,2],c=[1,3],d=[1,4],e=[2,4],f=[1,9],g=[1,11],h=[1,16],j=[1,17],k=[1,18],l=[1,19],m=[1,33],n=[1,20],o=[1,21],p=[1,22],q=[1,23],r=[1,24],s=[1,26],t=[1,27],u=[1,28],v=[1,29],w=[1,30],x=[1,31],y=[1,32],z=[1,35],A=[1,36],B=[1,37],C=[1,38],D=[1,34],E=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],F=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],G=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],H={trace:(0,i.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:(0,i.K2)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 3:return d.setRootDoc(f[h]),f[h];case 4:this.$=[];break;case 5:"nl"!=f[h]&&(f[h-1].push(f[h]),this.$=f[h-1]);break;case 6:case 7:case 12:this.$=f[h];break;case 8:this.$="nl";break;case 13:let i=f[h-1];i.description=d.trimColon(f[h]),this.$=i;break;case 14:this.$={stmt:"relation",state1:f[h-2],state2:f[h]};break;case 15:let j=d.trimColon(f[h]);this.$={stmt:"relation",state1:f[h-3],state2:f[h-1],description:j};break;case 19:this.$={stmt:"state",id:f[h-3],type:"default",description:"",doc:f[h-1]};break;case 20:var k=f[h],l=f[h-2].trim();if(f[h].match(":")){var m=f[h].split(":");k=m[0],l=[l,m[1]]}this.$={stmt:"state",id:k,type:"default",description:l};break;case 21:this.$={stmt:"state",id:f[h-3],type:"default",description:f[h-5],doc:f[h-1]};break;case 22:this.$={stmt:"state",id:f[h],type:"fork"};break;case 23:this.$={stmt:"state",id:f[h],type:"join"};break;case 24:this.$={stmt:"state",id:f[h],type:"choice"};break;case 25:this.$={stmt:"state",id:d.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:f[h-1].trim(),note:{position:f[h-2].trim(),text:f[h].trim()}};break;case 29:this.$=f[h].trim(),d.setAccTitle(this.$);break;case 30:case 31:this.$=f[h].trim(),d.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:f[h-3],url:f[h-2],tooltip:f[h-1]};break;case 33:this.$={stmt:"click",id:f[h-3],url:f[h-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:f[h-1].trim(),classes:f[h].trim()};break;case 36:this.$={stmt:"style",id:f[h-1].trim(),styleClass:f[h].trim()};break;case 37:this.$={stmt:"applyClass",id:f[h-1].trim(),styleClass:f[h].trim()};break;case 38:d.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:d.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:d.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:d.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:f[h].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:f[h-2].trim(),classes:[f[h].trim()],type:"default",description:""}}},"anonymous"),table:[{3:1,4:b,5:c,6:d},{1:[3]},{3:5,4:b,5:c,6:d},{3:6,4:b,5:c,6:d},a([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],e,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:f,5:g,8:8,9:10,10:12,11:13,12:14,13:15,16:h,17:j,19:k,22:l,24:m,25:n,26:o,27:p,28:q,29:r,32:25,33:s,35:t,37:u,38:v,41:w,45:x,48:y,51:z,52:A,53:B,54:C,57:D},a(E,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:h,17:j,19:k,22:l,24:m,25:n,26:o,27:p,28:q,29:r,32:25,33:s,35:t,37:u,38:v,41:w,45:x,48:y,51:z,52:A,53:B,54:C,57:D},a(E,[2,7]),a(E,[2,8]),a(E,[2,9]),a(E,[2,10]),a(E,[2,11]),a(E,[2,12],{14:[1,40],15:[1,41]}),a(E,[2,16]),{18:[1,42]},a(E,[2,18],{20:[1,43]}),{23:[1,44]},a(E,[2,22]),a(E,[2,23]),a(E,[2,24]),a(E,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},a(E,[2,28]),{34:[1,49]},{36:[1,50]},a(E,[2,31]),{13:51,24:m,57:D},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},a(F,[2,44],{58:[1,56]}),a(F,[2,45],{58:[1,57]}),a(E,[2,38]),a(E,[2,39]),a(E,[2,40]),a(E,[2,41]),a(E,[2,6]),a(E,[2,13]),{13:58,24:m,57:D},a(E,[2,17]),a(G,e,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},a(E,[2,29]),a(E,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},a(E,[2,14],{14:[1,71]}),{4:f,5:g,8:8,9:10,10:12,11:13,12:14,13:15,16:h,17:j,19:k,21:[1,72],22:l,24:m,25:n,26:o,27:p,28:q,29:r,32:25,33:s,35:t,37:u,38:v,41:w,45:x,48:y,51:z,52:A,53:B,54:C,57:D},a(E,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},a(E,[2,34]),a(E,[2,35]),a(E,[2,36]),a(E,[2,37]),a(F,[2,46]),a(F,[2,47]),a(E,[2,15]),a(E,[2,19]),a(G,e,{7:78}),a(E,[2,26]),a(E,[2,27]),{5:[1,79]},{5:[1,80]},{4:f,5:g,8:8,9:10,10:12,11:13,12:14,13:15,16:h,17:j,19:k,21:[1,81],22:l,24:m,25:n,26:o,27:p,28:q,29:r,32:25,33:s,35:t,37:u,38:v,41:w,45:x,48:y,51:z,52:A,53:B,54:C,57:D},a(E,[2,32]),a(E,[2,33]),a(E,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:(0,i.K2)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,i.K2)(function(a){var b=this,c=[0],d=[],e=[null],f=[],g=this.table,h="",j=0,k=0,l=0,m=f.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;f.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=d.pop()||n.lex()||1)&&(a instanceof Array&&(a=(d=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,i.K2)(function(a){c.length=c.length-2*a,e.length=e.length-a,f.length=f.length-a},"popStack"),(0,i.K2)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=c[c.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=g[v]&&g[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],g[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(j+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(j+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:c.push(t),e.push(n.yytext),f.push(n.yylloc),c.push(w[1]),t=null,u?(t=u,u=null):(k=n.yyleng,h=n.yytext,j=n.yylineno,q=n.yylloc,l>0&&l--);break;case 2:if(z=this.productions_[w[1]][1],C.$=e[e.length-z],C._$={first_line:f[f.length-(z||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(z||1)].first_column,last_column:f[f.length-1].last_column},r&&(C._$.range=[f[f.length-(z||1)].range[0],f[f.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[h,k,j,o,w[1],e,f].concat(m))))return x;z&&(c=c.slice(0,-1*z*2),e=e.slice(0,-1*z),f=f.slice(0,-1*z)),c.push(this.productions_[w[1]][0]),e.push(C.$),f.push(C._$),A=g[c[c.length-2]][c[c.length-1]],c.push(A);break;case 3:return!0}}return!0},"parse")};function I(){this.yy={}}return H.lexer={EOF:1,parseError:(0,i.K2)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,i.K2)(function(a,b){return this.yy=b||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,i.K2)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:(0,i.K2)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,i.K2)(function(){return this._more=!0,this},"more"),reject:(0,i.K2)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,i.K2)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,i.K2)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,i.K2)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,i.K2)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,i.K2)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,i.K2)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,i.K2)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,i.K2)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,i.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,i.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,i.K2)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,i.K2)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,i.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,i.K2)(function(a,b,c,d){function e(){let c=b.yytext.indexOf("%%");if(0===c)return!1;if(c>0){let d=b.yytext.slice(0,c),e=b.yytext.slice(c);e&&a.lexer.unput(e),b.yytext=d}return!0}switch((0,i.K2)(e,"processId"),c){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:case 43:return 51;case 5:case 44:return 52;case 6:case 45:return 53;case 7:case 46:return 54;case 8:case 77:return 5;case 9:case 10:case 11:case 12:case 56:case 62:break;case 13:case 33:return this.pushState("SCALE"),17;case 14:case 34:return 18;case 15:case 21:case 35:case 50:case 53:this.popState();break;case 16:return this.begin("acc_title"),33;case 17:return this.popState(),"acc_title_value";case 18:return this.begin("acc_descr"),35;case 19:return this.popState(),"acc_descr_value";case 20:this.begin("acc_descr_multiline");break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 25:return this.popState(),this.pushState("CLASSDEFID"),42;case 26:return this.popState(),43;case 27:return this.pushState("CLASS"),48;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;case 29:return this.popState(),50;case 30:return this.pushState("STYLE"),45;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 32:return this.popState(),47;case 36:this.pushState("STATE");break;case 37:case 40:return this.popState(),b.yytext=b.yytext.slice(0,-8).trim(),25;case 38:case 41:return this.popState(),b.yytext=b.yytext.slice(0,-8).trim(),26;case 39:case 42:return this.popState(),b.yytext=b.yytext.slice(0,-10).trim(),27;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";case 49:case 64:if(!e())return;return this.popState(),"ID";case 51:return"STATE_DESCR";case 52:return 19;case 54:return this.popState(),this.pushState("struct"),20;case 55:return this.popState(),21;case 57:return this.begin("NOTE"),29;case 58:return this.popState(),this.pushState("NOTE_ID"),59;case 59:return this.popState(),this.pushState("NOTE_ID"),60;case 60:this.popState(),this.pushState("FLOATING_NOTE");break;case 61:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 63:return"NOTE_TEXT";case 65:if(!e())return;return this.popState(),this.pushState("NOTE_TEXT"),24;case 66:return this.popState(),b.yytext=b.yytext.substr(2).trim(),31;case 67:return this.popState(),b.yytext=b.yytext.slice(0,-8).trim(),31;case 68:case 69:return 6;case 70:return 16;case 71:return 57;case 72:if(!e())return;return 24;case 73:return b.yytext=b.yytext.trim(),14;case 74:return 15;case 75:return 28;case 76:return 58;case 78:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,55,56,57,71,72,73,74,75,76],inclusive:!1},FLOATING_NOTE_ID:{rules:[64],inclusive:!1},FLOATING_NOTE:{rules:[61,62,63],inclusive:!1},NOTE_TEXT:{rules:[66,67],inclusive:!1},NOTE_ID:{rules:[65],inclusive:!1},NOTE:{rules:[58,59,60],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,54,57,68,69,70,71,72,73,74,76,77,78],inclusive:!0}}},(0,i.K2)(I,"Parser"),I.prototype=H,H.Parser=I,new I}();j.parser=j;var k=j,l="TB",m="state",n="root",o="relation",p="default",q="divider",r="fill:none",s="fill: #333",t="markdown",u="normal",v="rect",w="rectWithTitle",x="divider",y="roundedWithTitle",z="statediagram",A=`${z}-state`,B="transition",C=`${B} note-edge`,D=`${z}-note`,E=`${z}-cluster`,F=`${z}-cluster-alt`,G="parent",H="note",I="----",J=`${I}${H}`,K=`${I}${G}`,L=(0,i.K2)((a,b=l)=>{if(!a.doc)return b;let c=b;for(let b of a.doc)"dir"===b.stmt&&(c=b.value);return c},"getDir"),M={getClasses:(0,i.K2)(function(a,b){return b.db.getClasses()},"getClasses"),draw:(0,i.K2)(async function(a,b,c,j){i.Rm.info("REF0:"),i.Rm.info("Drawing state diagram (v2)",b);let{securityLevel:k,state:l,layout:m}=(0,h.D7)();j.db.extract(j.db.getRootDocV2());let n=j.db.getData(),o=(0,d.A)(b,k);n.type=j.type,n.layoutAlgorithm=m,n.nodeSpacing=l?.nodeSpacing||50,n.rankSpacing=l?.rankSpacing||50,"neo"===(0,h.D7)().look?n.markers=["barbNeo"]:n.markers=["barb"],n.diagramId=b,await (0,f.XX)(n,o);try{("function"==typeof j.db.getLinks?j.db.getLinks():new Map).forEach((a,b)=>{let c,d="string"==typeof b?b:"string"==typeof b?.id?b.id:"";if(!d)return void i.Rm.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(b));let e=o.node()?.querySelectorAll("g");if(e?.forEach(a=>{a.textContent?.trim()===d&&(c=a)}),!c)return void i.Rm.warn("⚠️ Could not find node matching text:",d);let f=c.parentNode;if(!f)return void i.Rm.warn("⚠️ Node has no parent, cannot wrap:",d);let g=document.createElementNS("http://www.w3.org/2000/svg","a"),h=a.url.replace(/^"+|"+$/g,"");if(g.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h),g.setAttribute("target","_blank"),a.tooltip){let b=a.tooltip.replace(/^"+|"+$/g,"");g.setAttribute("title",b)}f.replaceChild(g,c),g.appendChild(c),i.Rm.info("\uD83D\uDD17 Wrapped node in <a> tag for:",d,a.url)})}catch(a){i.Rm.error("❌ Error injecting clickable links:",a)}g._K.insertTitle(o,"statediagramTitleText",l?.titleTopMargin??25,j.db.getDiagramTitle()),(0,e.P)(o,8,z,l?.useMaxWidth??!0)},"draw"),getDir:L},N=new Map,O=0;function P(a="",b=0,c="",d=I){let e=null!==c&&c.length>0?`${d}${c}`:"";return`state-${a}${e}-${b}`}(0,i.K2)(P,"stateDomId");var Q=(0,i.K2)((a,b,c,d,e,f,g,j)=>{i.Rm.trace("items",b),b.forEach(b=>{switch(b.stmt){case m:case p:V(a,b,c,d,e,f,g,j);break;case o:{V(a,b.state1,c,d,e,f,g,j),V(a,b.state2,c,d,e,f,g,j);let i="neo"===g,k={id:"edge"+O,start:b.state1.id,end:b.state2.id,arrowhead:"normal",arrowTypeEnd:i?"arrow_barb_neo":"arrow_barb",style:r,labelStyle:"",label:h.Y2.sanitizeText(b.description??"",(0,h.D7)()),arrowheadStyle:s,labelpos:"c",labelType:t,thickness:u,classes:B,look:g};e.push(k),O++}}})},"setupDoc"),R=(0,i.K2)((a,b=l)=>{let c=b;if(a.doc)for(let b of a.doc)"dir"===b.stmt&&(c=b.value);return c},"getDir");function S(a,b,c){if(!b.id||"</join></fork>"===b.id||"</choice>"===b.id)return;b.cssClasses&&(Array.isArray(b.cssCompiledStyles)||(b.cssCompiledStyles=[]),b.cssClasses.split(" ").forEach(a=>{let d=c.get(a);d&&(b.cssCompiledStyles=[...b.cssCompiledStyles??[],...d.styles])}));let d=a.find(a=>a.id===b.id);d?Object.assign(d,b):a.push(b)}function T(a){return a?.classes?.join(" ")??""}function U(a){return a?.styles??[]}(0,i.K2)(S,"insertOrUpdateNode"),(0,i.K2)(T,"getClassesFromDbInfo"),(0,i.K2)(U,"getStylesFromDbInfo");var V=(0,i.K2)((a,b,c,d,e,f,g,j)=>{let k=b.id,l=c.get(k),m=T(l),n=U(l),o=(0,h.D7)();if(i.Rm.info("dataFetcher parsedItem",b,l,n),"root"!==k){let c=v;!0===b.start?c="stateStart":!1===b.start&&(c="stateEnd"),b.type!==p&&(c=b.type),N.get(k)||N.set(k,{id:k,shape:c,description:h.Y2.sanitizeText(k,o),cssClasses:`${m} ${A}`,cssStyles:n});let l=N.get(k);b.description&&(Array.isArray(l.description)?(l.shape=w,l.description.push(b.description)):l.description?.length&&l.description.length>0?(l.shape=w,l.description===k?l.description=[b.description]:l.description=[l.description,b.description]):(l.shape=v,l.description=b.description),l.description=h.Y2.sanitizeTextOrArray(l.description,o)),l.description?.length===1&&l.shape===w&&("group"===l.type?l.shape=y:l.shape=v),!l.type&&b.doc&&(i.Rm.info("Setting cluster for XCX",k,R(b)),l.type="group",l.isGroup=!0,l.dir=R(b),l.shape=b.type===q?x:y,l.cssClasses=`${l.cssClasses} ${E} ${f?F:""}`);let z={labelStyle:"",shape:l.shape,label:l.description,cssClasses:l.cssClasses,cssCompiledStyles:[],cssStyles:l.cssStyles,id:k,dir:l.dir,domId:P(k,O),type:l.type,isGroup:"group"===l.type,padding:8,rx:10,ry:10,look:g,labelType:"markdown"};if(z.shape===x&&(z.label=""),a&&"root"!==a.id&&(i.Rm.trace("Setting node ",k," to be child of its parent ",a.id),z.parentId=a.id),z.centerLabel=!0,b.note){let a={labelStyle:"",shape:"note",label:b.note.text,labelType:"markdown",cssClasses:D,cssStyles:[],cssCompiledStyles:[],id:k+J+"-"+O,domId:P(k,O,H),type:l.type,isGroup:"group"===l.type,padding:o.flowchart?.padding,look:g,position:b.note.position},c=k+K,f={labelStyle:"",shape:"noteGroup",label:b.note.text,cssClasses:l.cssClasses,cssStyles:[],id:k+K,domId:P(k,O,G),type:"group",isGroup:!0,padding:16,look:g,position:b.note.position};O++,f.id=c,a.parentId=c,S(d,f,j),S(d,a,j),S(d,z,j);let h=k,i=a.id;"left of"===b.note.position&&(h=a.id,i=k),e.push({id:h+"-"+i,start:h,end:i,arrowhead:"none",arrowTypeEnd:"",style:r,labelStyle:"",classes:C,arrowheadStyle:s,labelpos:"c",labelType:t,thickness:u,look:g})}else S(d,z,j)}b.doc&&(i.Rm.trace("Adding nodes children "),Q(b,b.doc,c,d,e,!f,g,j))},"dataFetcher"),W=(0,i.K2)(()=>{N.clear(),O=0},"reset"),X="start",Y="color",Z="fill",$=(0,i.K2)(()=>new Map,"newClassesList"),_=(0,i.K2)(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),aa=(0,i.K2)(a=>JSON.parse(JSON.stringify(a)),"clone"),ab=class{constructor(a){this.version=a,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=$(),this.documents={root:_()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=h.iN,this.setAccTitle=h.SV,this.getAccDescription=h.m7,this.setAccDescription=h.EI,this.setDiagramTitle=h.ke,this.getDiagramTitle=h.ab,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}static{(0,i.K2)(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(a){for(let b of(this.clear(!0),Array.isArray(a)?a:a.doc))switch(b.stmt){case m:this.addState(b.id.trim(),b.type,b.doc,b.description,b.note);break;case o:this.addRelation(b.state1,b.state2,b.description);break;case"classDef":this.addStyleClass(b.id.trim(),b.classes);break;case"style":this.handleStyleDef(b);break;case"applyClass":this.setCssClass(b.id.trim(),b.styleClass);break;case"click":this.addLink(b.id,b.url,b.tooltip)}let b=this.getStates(),c=(0,h.D7)();for(let a of(W(),V(void 0,this.getRootDocV2(),b,this.nodes,this.edges,!0,c.look,this.classes),this.nodes))if(Array.isArray(a.label)){if(a.description=a.label.slice(1),a.isGroup&&a.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${a.id}]`);a.label=a.label[0]}}handleStyleDef(a){let b=a.id.trim().split(","),c=a.styleClass.split(",");for(let a of b){let b=this.getState(a);if(!b){let c=a.trim();this.addState(c),b=this.getState(c)}b&&(b.styles=c.map(a=>a.replace(/;/g,"")?.trim()))}}setRootDoc(a){i.Rm.info("Setting root doc",a),this.rootDoc=a,1===this.version?this.extract(a):this.extract(this.getRootDocV2())}docTranslator(a,b,c){if(b.stmt===o){this.docTranslator(a,b.state1,!0),this.docTranslator(a,b.state2,!1);return}if(b.stmt===m&&("[*]"===b.id?(b.id=a.id+(c?"_start":"_end"),b.start=c):b.id=b.id.trim()),b.stmt!==n&&b.stmt!==m||!b.doc)return;let d=[],e=[];for(let a of b.doc)if(a.type===q){let b=aa(a);b.doc=aa(e),d.push(b),e=[]}else e.push(a);if(d.length>0&&e.length>0){let a={stmt:m,id:(0,g.$C)(),type:"divider",doc:aa(e)};d.push(aa(a)),b.doc=d}b.doc.forEach(a=>this.docTranslator(b,a,!0))}getRootDocV2(){return this.docTranslator({id:n,stmt:n},{id:n,stmt:n,doc:this.rootDoc},!0),{id:n,doc:this.rootDoc}}addState(a,b=p,c,d,e,f,g,j){let k=a?.trim();if(this.currentDocument.states.has(k)){let a=this.currentDocument.states.get(k);if(!a)throw Error(`State not found: ${k}`);a.doc||(a.doc=c),a.type||(a.type=b)}else i.Rm.info("Adding state ",k,d),this.currentDocument.states.set(k,{stmt:m,id:k,descriptions:[],type:b,doc:c,note:e,classes:[],styles:[],textStyles:[]});if(d&&(i.Rm.info("Setting state description",k,d),(Array.isArray(d)?d:[d]).forEach(a=>this.addDescription(k,a.trim()))),e){let a=this.currentDocument.states.get(k);if(!a)throw Error(`State not found: ${k}`);a.note=e,a.note.text=h.Y2.sanitizeText(a.note.text,(0,h.D7)())}f&&(i.Rm.info("Setting state classes",k,f),(Array.isArray(f)?f:[f]).forEach(a=>this.setCssClass(k,a.trim()))),g&&(i.Rm.info("Setting state styles",k,g),(Array.isArray(g)?g:[g]).forEach(a=>this.setStyle(k,a.trim()))),j&&(i.Rm.info("Setting state styles",k,g),(Array.isArray(j)?j:[j]).forEach(a=>this.setTextStyle(k,a.trim())))}clear(a){this.nodes=[],this.edges=[],this.documents={root:_()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=$(),a||(this.links=new Map,(0,h.IU)())}getState(a){return this.currentDocument.states.get(a)}getStates(){return this.currentDocument.states}logDocuments(){i.Rm.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(a,b,c){this.links.set(a,{url:b,tooltip:c}),i.Rm.warn("Adding link",a,b,c)}getLinks(){return this.links}startIdIfNeeded(a=""){return"[*]"===a?(this.startEndCount++,`${X}${this.startEndCount}`):a}startTypeIfNeeded(a="",b=p){return"[*]"===a?X:b}endIdIfNeeded(a=""){return"[*]"===a?(this.startEndCount++,`end${this.startEndCount}`):a}endTypeIfNeeded(a="",b=p){return"[*]"===a?"end":b}addRelationObjs(a,b,c=""){let d=this.startIdIfNeeded(a.id.trim()),e=this.startTypeIfNeeded(a.id.trim(),a.type),f=this.startIdIfNeeded(b.id.trim()),g=this.startTypeIfNeeded(b.id.trim(),b.type);this.addState(d,e,a.doc,a.description,a.note,a.classes,a.styles,a.textStyles),this.addState(f,g,b.doc,b.description,b.note,b.classes,b.styles,b.textStyles),this.currentDocument.relations.push({id1:d,id2:f,relationTitle:h.Y2.sanitizeText(c,(0,h.D7)())})}addRelation(a,b,c){if("object"==typeof a&&"object"==typeof b)this.addRelationObjs(a,b,c);else if("string"==typeof a&&"string"==typeof b){let d=this.startIdIfNeeded(a.trim()),e=this.startTypeIfNeeded(a),f=this.endIdIfNeeded(b.trim()),g=this.endTypeIfNeeded(b);this.addState(d,e),this.addState(f,g),this.currentDocument.relations.push({id1:d,id2:f,relationTitle:c?h.Y2.sanitizeText(c,(0,h.D7)()):void 0})}}addDescription(a,b){let c=this.currentDocument.states.get(a),d=b.startsWith(":")?b.replace(":","").trim():b;c?.descriptions?.push(h.Y2.sanitizeText(d,(0,h.D7)()))}cleanupLabel(a){return a.startsWith(":")?a.slice(2).trim():a.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(a,b=""){this.classes.has(a)||this.classes.set(a,{id:a,styles:[],textStyles:[]});let c=this.classes.get(a);b&&c&&b.split(",").forEach(a=>{let b=a.replace(/([^;]*);/,"$1").trim();if(RegExp(Y).exec(a)){let a=b.replace(Z,"bgFill").replace(Y,Z);c.textStyles.push(a)}c.styles.push(b)})}getClasses(){return this.classes}setCssClass(a,b){a.split(",").forEach(a=>{let c=this.getState(a);if(!c){let b=a.trim();this.addState(b),c=this.getState(b)}c?.classes?.push(b)})}setStyle(a,b){this.getState(a)?.styles?.push(b)}setTextStyle(a,b){this.getState(a)?.textStyles?.push(b)}getDirectionStatement(){return this.rootDoc.find(a=>"dir"===a.stmt)}getDirection(){return this.getDirectionStatement()?.value??"TB"}setDirection(a){let b=this.getDirectionStatement();b?b.value=a:this.rootDoc.unshift({stmt:"dir",value:a})}trimColon(a){return a.startsWith(":")?a.slice(1).trim():a.trim()}getData(){let a=(0,h.D7)();return{nodes:this.nodes,edges:this.edges,other:{},config:a,direction:L(this.getRootDocV2())}}getConfig(){return(0,h.D7)().state}},ac=(0,i.K2)(a=>`
2
+ defs [id$="-barbEnd"] {
3
+ fill: ${a.transitionColor};
4
+ stroke: ${a.transitionColor};
5
+ }
6
+ g.stateGroup text {
7
+ fill: ${a.nodeBorder};
8
+ stroke: none;
9
+ font-size: 10px;
10
+ }
11
+ g.stateGroup text {
12
+ fill: ${a.textColor};
13
+ stroke: none;
14
+ font-size: 10px;
15
+
16
+ }
17
+ g.stateGroup .state-title {
18
+ font-weight: bolder;
19
+ fill: ${a.stateLabelColor};
20
+ }
21
+
22
+ g.stateGroup rect {
23
+ fill: ${a.mainBkg};
24
+ stroke: ${a.nodeBorder};
25
+ }
26
+
27
+ g.stateGroup line {
28
+ stroke: ${a.lineColor};
29
+ stroke-width: ${a.strokeWidth||1};
30
+ }
31
+
32
+ .transition {
33
+ stroke: ${a.transitionColor};
34
+ stroke-width: ${a.strokeWidth||1};
35
+ fill: none;
36
+ }
37
+
38
+ .stateGroup .composit {
39
+ fill: ${a.background};
40
+ border-bottom: 1px
41
+ }
42
+
43
+ .stateGroup .alt-composit {
44
+ fill: #e0e0e0;
45
+ border-bottom: 1px
46
+ }
47
+
48
+ .state-note {
49
+ stroke: ${a.noteBorderColor};
50
+ fill: ${a.noteBkgColor};
51
+
52
+ text {
53
+ fill: ${a.noteTextColor};
54
+ stroke: none;
55
+ font-size: 10px;
56
+ }
57
+ }
58
+
59
+ .stateLabel .box {
60
+ stroke: none;
61
+ stroke-width: 0;
62
+ fill: ${a.mainBkg};
63
+ opacity: 0.5;
64
+ }
65
+
66
+ .edgeLabel .label rect {
67
+ fill: ${a.labelBackgroundColor};
68
+ opacity: 0.5;
69
+ }
70
+ .edgeLabel {
71
+ background-color: ${a.edgeLabelBackground};
72
+ p {
73
+ background-color: ${a.edgeLabelBackground};
74
+ }
75
+ rect {
76
+ opacity: 0.5;
77
+ background-color: ${a.edgeLabelBackground};
78
+ fill: ${a.edgeLabelBackground};
79
+ }
80
+ text-align: center;
81
+ }
82
+ .edgeLabel .label text {
83
+ fill: ${a.transitionLabelColor||a.tertiaryTextColor};
84
+ }
85
+ .label div .edgeLabel {
86
+ color: ${a.transitionLabelColor||a.tertiaryTextColor};
87
+ }
88
+
89
+ .stateLabel text {
90
+ fill: ${a.stateLabelColor};
91
+ font-size: 10px;
92
+ font-weight: bold;
93
+ }
94
+
95
+ .node circle.state-start {
96
+ fill: ${a.specialStateColor};
97
+ stroke: ${a.specialStateColor};
98
+ }
99
+
100
+ .node .fork-join {
101
+ fill: ${a.specialStateColor};
102
+ stroke: ${a.specialStateColor};
103
+ }
104
+
105
+ .node circle.state-end {
106
+ fill: ${a.innerEndBackground};
107
+ stroke: ${a.background};
108
+ stroke-width: 1.5
109
+ }
110
+ .end-state-inner {
111
+ fill: ${a.compositeBackground||a.background};
112
+ // stroke: ${a.background};
113
+ stroke-width: 1.5
114
+ }
115
+
116
+ .node rect {
117
+ fill: ${a.stateBkg||a.mainBkg};
118
+ stroke: ${a.stateBorder||a.nodeBorder};
119
+ stroke-width: ${a.strokeWidth||1}px;
120
+ }
121
+ .node polygon {
122
+ fill: ${a.mainBkg};
123
+ stroke: ${a.stateBorder||a.nodeBorder};;
124
+ stroke-width: ${a.strokeWidth||1}px;
125
+ }
126
+ [id$="-barbEnd"] {
127
+ fill: ${a.lineColor};
128
+ }
129
+
130
+ .statediagram-cluster rect {
131
+ fill: ${a.compositeTitleBackground};
132
+ stroke: ${a.stateBorder||a.nodeBorder};
133
+ stroke-width: ${a.strokeWidth||1}px;
134
+ }
135
+
136
+ .cluster-label, .nodeLabel {
137
+ color: ${a.stateLabelColor};
138
+ // line-height: 1;
139
+ }
140
+
141
+ .statediagram-cluster rect.outer {
142
+ rx: 5px;
143
+ ry: 5px;
144
+ }
145
+ .statediagram-state .divider {
146
+ stroke: ${a.stateBorder||a.nodeBorder};
147
+ }
148
+
149
+ .statediagram-state .title-state {
150
+ rx: 5px;
151
+ ry: 5px;
152
+ }
153
+ .statediagram-cluster.statediagram-cluster .inner {
154
+ fill: ${a.compositeBackground||a.background};
155
+ }
156
+ .statediagram-cluster.statediagram-cluster-alt .inner {
157
+ fill: ${a.altBackground?a.altBackground:"#efefef"};
158
+ }
159
+
160
+ .statediagram-cluster .inner {
161
+ rx:0;
162
+ ry:0;
163
+ }
164
+
165
+ .statediagram-state rect.basic {
166
+ rx: 5px;
167
+ ry: 5px;
168
+ }
169
+ .statediagram-state rect.divider {
170
+ stroke-dasharray: 10,10;
171
+ fill: ${a.altBackground?a.altBackground:"#efefef"};
172
+ }
173
+
174
+ .note-edge {
175
+ stroke-dasharray: 5;
176
+ }
177
+
178
+ .statediagram-note rect {
179
+ fill: ${a.noteBkgColor};
180
+ stroke: ${a.noteBorderColor};
181
+ stroke-width: 1px;
182
+ rx: 0;
183
+ ry: 0;
184
+ }
185
+ .statediagram-note rect {
186
+ fill: ${a.noteBkgColor};
187
+ stroke: ${a.noteBorderColor};
188
+ stroke-width: 1px;
189
+ rx: 0;
190
+ ry: 0;
191
+ }
192
+
193
+ .statediagram-note text {
194
+ fill: ${a.noteTextColor};
195
+ }
196
+
197
+ .statediagram-note .nodeLabel {
198
+ color: ${a.noteTextColor};
199
+ }
200
+ .statediagram .edgeLabel {
201
+ color: red; // ${a.noteTextColor};
202
+ }
203
+
204
+ [id$="-dependencyStart"], [id$="-dependencyEnd"] {
205
+ fill: ${a.lineColor};
206
+ stroke: ${a.lineColor};
207
+ stroke-width: ${a.strokeWidth||1};
208
+ }
209
+
210
+ .statediagramTitleText {
211
+ text-anchor: middle;
212
+ font-size: 18px;
213
+ fill: ${a.textColor};
214
+ }
215
+
216
+ [data-look="neo"].statediagram-cluster rect {
217
+ fill: ${a.mainBkg};
218
+ stroke: ${a.useGradient?"url("+a.svgId+"-gradient)":a.stateBorder||a.nodeBorder};
219
+ stroke-width: ${a.strokeWidth??1};
220
+ }
221
+ [data-look="neo"].statediagram-cluster rect.outer {
222
+ rx: ${a.radius}px;
223
+ ry: ${a.radius}px;
224
+ filter: ${a.dropShadow?a.dropShadow.replace("url(#drop-shadow)",`url(${a.svgId}-drop-shadow)`):"none"}
225
+ }
226
+ `,"getStyles")}};
@@ -0,0 +1 @@
1
+ "use strict";exports.id=3181,exports.ids=[3181],exports.modules={85562:(a,b,c)=>{c.d(b,{createEventModelingServices:()=>d.g});var d=c(28070);c(90280)}};