reflex-agent 0.4.1 → 0.6.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 (255) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-build-manifest.json +76 -76
  3. package/.next/app-path-routes-manifest.json +4 -4
  4. package/.next/build-manifest.json +5 -5
  5. package/.next/prerender-manifest.json +7 -7
  6. package/.next/react-loadable-manifest.json +1 -1
  7. package/.next/server/app/_not-found/page.js +1 -1
  8. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  9. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  10. package/.next/server/app/agents/[agentId]/page.js +3 -3
  11. package/.next/server/app/agents/[agentId]/page.js.nft.json +1 -1
  12. package/.next/server/app/agents/[agentId]/page_client-reference-manifest.js +1 -1
  13. package/.next/server/app/api/agents/[agentId]/respond/route.js +2 -2
  14. package/.next/server/app/api/agents/[agentId]/respond/route.js.nft.json +1 -1
  15. package/.next/server/app/api/agents/[agentId]/respond/route_client-reference-manifest.js +1 -1
  16. package/.next/server/app/api/images/[rootId]/[file]/route_client-reference-manifest.js +1 -1
  17. package/.next/server/app/api/oauth/callback/route_client-reference-manifest.js +1 -1
  18. package/.next/server/app/api/oauth/start/route_client-reference-manifest.js +1 -1
  19. package/.next/server/app/api/roots/[id]/attachments/route_client-reference-manifest.js +1 -1
  20. package/.next/server/app/api/roots/[id]/chat/[topicId]/send/route.js +2 -2
  21. package/.next/server/app/api/roots/[id]/chat/[topicId]/send/route.js.nft.json +1 -1
  22. package/.next/server/app/api/roots/[id]/chat/[topicId]/send/route_client-reference-manifest.js +1 -1
  23. package/.next/server/app/api/roots/[id]/chat/[topicId]/stop/route.js +2 -2
  24. package/.next/server/app/api/roots/[id]/chat/[topicId]/stop/route.js.nft.json +1 -1
  25. package/.next/server/app/api/roots/[id]/chat/[topicId]/stop/route_client-reference-manifest.js +1 -1
  26. package/.next/server/app/api/roots/[id]/chat/[topicId]/stream/route.js +3 -3
  27. package/.next/server/app/api/roots/[id]/chat/[topicId]/stream/route.js.nft.json +1 -1
  28. package/.next/server/app/api/roots/[id]/chat/[topicId]/stream/route_client-reference-manifest.js +1 -1
  29. package/.next/server/app/api/roots/[id]/dashboard/route.js +1 -1
  30. package/.next/server/app/api/roots/[id]/dashboard/route.js.nft.json +1 -1
  31. package/.next/server/app/api/roots/[id]/dashboard/route_client-reference-manifest.js +1 -1
  32. package/.next/server/app/api/roots/[id]/suggestions/route.js +1 -1
  33. package/.next/server/app/api/roots/[id]/suggestions/route.js.nft.json +1 -1
  34. package/.next/server/app/api/roots/[id]/suggestions/route_client-reference-manifest.js +1 -1
  35. package/.next/server/app/api/utilities/[scope]/[id]/bundle.js/route_client-reference-manifest.js +1 -1
  36. package/.next/server/app/api/utilities/[scope]/[id]/host/route.js +2 -2
  37. package/.next/server/app/api/utilities/[scope]/[id]/host/route.js.nft.json +1 -1
  38. package/.next/server/app/api/utilities/[scope]/[id]/host/route_client-reference-manifest.js +1 -1
  39. package/.next/server/app/api/utilities/[scope]/[id]/host-api.mjs/route_client-reference-manifest.js +1 -1
  40. package/.next/server/app/api/utilities/[scope]/[id]/host-ui.mjs/route_client-reference-manifest.js +1 -1
  41. package/.next/server/app/api/utilities/[scope]/[id]/iframe/route_client-reference-manifest.js +1 -1
  42. package/.next/server/app/api/utilities/[scope]/[id]/style.css/route_client-reference-manifest.js +1 -1
  43. package/.next/server/app/audit/page.js +1 -1
  44. package/.next/server/app/audit/page.js.nft.json +1 -1
  45. package/.next/server/app/audit/page_client-reference-manifest.js +1 -1
  46. package/.next/server/app/onboarding/page.js +3 -3
  47. package/.next/server/app/onboarding/page.js.nft.json +1 -1
  48. package/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
  49. package/.next/server/app/page.js +2 -2
  50. package/.next/server/app/page.js.nft.json +1 -1
  51. package/.next/server/app/page_client-reference-manifest.js +1 -1
  52. package/.next/server/app/roots/[id]/chat/[topicId]/page.js +2 -2
  53. package/.next/server/app/roots/[id]/chat/[topicId]/page.js.nft.json +1 -1
  54. package/.next/server/app/roots/[id]/chat/[topicId]/page_client-reference-manifest.js +1 -1
  55. package/.next/server/app/roots/[id]/kb/[...slug]/page.js +2 -2
  56. package/.next/server/app/roots/[id]/kb/[...slug]/page.js.nft.json +1 -1
  57. package/.next/server/app/roots/[id]/kb/[...slug]/page_client-reference-manifest.js +1 -1
  58. package/.next/server/app/roots/[id]/page.js +3 -3
  59. package/.next/server/app/roots/[id]/page.js.nft.json +1 -1
  60. package/.next/server/app/roots/[id]/page_client-reference-manifest.js +1 -1
  61. package/.next/server/app/roots/[id]/workflows/[wfId]/page.js +2 -2
  62. package/.next/server/app/roots/[id]/workflows/[wfId]/page.js.nft.json +1 -1
  63. package/.next/server/app/roots/[id]/workflows/[wfId]/page_client-reference-manifest.js +1 -1
  64. package/.next/server/app/roots/[id]/workflows/page.js +1 -1
  65. package/.next/server/app/roots/[id]/workflows/page.js.nft.json +1 -1
  66. package/.next/server/app/roots/[id]/workflows/page_client-reference-manifest.js +1 -1
  67. package/.next/server/app/roots/new/page.js +3 -3
  68. package/.next/server/app/roots/new/page.js.nft.json +1 -1
  69. package/.next/server/app/roots/new/page_client-reference-manifest.js +1 -1
  70. package/.next/server/app/settings/page.js +5 -5
  71. package/.next/server/app/settings/page.js.nft.json +1 -1
  72. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  73. package/.next/server/app/share/[id]/file/page.js +2 -2
  74. package/.next/server/app/share/[id]/file/page.js.nft.json +1 -1
  75. package/.next/server/app/share/[id]/file/page_client-reference-manifest.js +1 -1
  76. package/.next/server/app/share/[id]/page.js +2 -2
  77. package/.next/server/app/share/[id]/page.js.nft.json +1 -1
  78. package/.next/server/app/share/[id]/page_client-reference-manifest.js +1 -1
  79. package/.next/server/app/utilities/[scope]/[id]/page.js +2 -2
  80. package/.next/server/app/utilities/[scope]/[id]/page.js.nft.json +1 -1
  81. package/.next/server/app/utilities/[scope]/[id]/page_client-reference-manifest.js +1 -1
  82. package/.next/server/app/utilities/page.js +2 -2
  83. package/.next/server/app/utilities/page.js.nft.json +1 -1
  84. package/.next/server/app/utilities/page_client-reference-manifest.js +1 -1
  85. package/.next/server/app-paths-manifest.json +4 -4
  86. package/.next/server/chunks/1004.js +1 -0
  87. package/.next/server/chunks/106.js +148 -0
  88. package/.next/server/chunks/1100.js +34 -0
  89. package/.next/server/chunks/1220.js +115 -0
  90. package/.next/server/chunks/1271.js +79 -0
  91. package/.next/server/chunks/1378.js +23 -0
  92. package/.next/server/chunks/{8312.js → 1469.js} +2 -2
  93. package/.next/server/chunks/1640.js +29 -0
  94. package/.next/server/chunks/1811.js +1 -0
  95. package/.next/server/chunks/1869.js +93 -0
  96. package/.next/server/chunks/1973.js +166 -0
  97. package/.next/server/chunks/2249.js +1 -0
  98. package/.next/server/chunks/2264.js +287 -0
  99. package/.next/server/chunks/2278.js +1 -0
  100. package/.next/server/chunks/2318.js +1 -0
  101. package/.next/server/chunks/2485.js +2 -2
  102. package/.next/server/chunks/2521.js +1 -0
  103. package/.next/server/chunks/2552.js +1 -0
  104. package/.next/server/chunks/2626.js +1 -0
  105. package/.next/server/chunks/2669.js +104 -0
  106. package/.next/server/chunks/2673.js +153 -0
  107. package/.next/server/chunks/2749.js +1 -0
  108. package/.next/server/chunks/2761.js +90 -0
  109. package/.next/server/chunks/285.js +72 -17
  110. package/.next/server/chunks/2886.js +64 -0
  111. package/.next/server/chunks/{2995.js → 3152.js} +1 -1
  112. package/.next/server/chunks/3332.js +1 -1
  113. package/.next/server/chunks/3378.js +1 -0
  114. package/.next/server/chunks/3475.js +1 -0
  115. package/.next/server/chunks/352.js +79 -0
  116. package/.next/server/chunks/360.js +1 -0
  117. package/.next/server/chunks/3746.js +93 -0
  118. package/.next/server/chunks/3811.js +5 -0
  119. package/.next/server/chunks/383.js +80 -0
  120. package/.next/server/chunks/3870.js +215 -0
  121. package/.next/server/chunks/3935.js +34 -0
  122. package/.next/server/chunks/4031.js +2 -2
  123. package/.next/server/chunks/4046.js +141 -0
  124. package/.next/server/chunks/416.js +77 -0
  125. package/.next/server/chunks/4263.js +1 -0
  126. package/.next/server/chunks/4282.js +1 -0
  127. package/.next/server/chunks/431.js +1 -0
  128. package/.next/server/chunks/4339.js +23 -0
  129. package/.next/server/chunks/4343.js +148 -0
  130. package/.next/server/chunks/4450.js +80 -0
  131. package/.next/server/chunks/4457.js +1 -0
  132. package/.next/server/chunks/4537.js +43 -0
  133. package/.next/server/chunks/4580.js +1 -0
  134. package/.next/server/chunks/4653.js +1 -0
  135. package/.next/server/chunks/4695.js +77 -0
  136. package/.next/server/chunks/4733.js +1 -0
  137. package/.next/server/chunks/4812.js +1 -1
  138. package/.next/server/chunks/4828.js +80 -0
  139. package/.next/server/chunks/4851.js +1 -0
  140. package/.next/server/chunks/4863.js +29 -0
  141. package/.next/server/chunks/4925.js +1 -1
  142. package/.next/server/chunks/4959.js +1 -0
  143. package/.next/server/chunks/5080.js +43 -0
  144. package/.next/server/chunks/5142.js +1 -0
  145. package/.next/server/chunks/5236.js +3 -0
  146. package/.next/server/chunks/539.js +1 -0
  147. package/.next/server/chunks/5395.js +1 -0
  148. package/.next/server/chunks/5407.js +9 -0
  149. package/.next/server/chunks/5558.js +1 -0
  150. package/.next/server/chunks/5690.js +1 -0
  151. package/.next/server/chunks/5723.js +1 -0
  152. package/.next/server/chunks/5753.js +1 -0
  153. package/.next/server/chunks/5783.js +226 -0
  154. package/.next/server/chunks/5811.js +1 -0
  155. package/.next/server/chunks/5822.js +24 -0
  156. package/.next/server/chunks/6038.js +252 -0
  157. package/.next/server/chunks/617.js +24 -0
  158. package/.next/server/chunks/6294.js +1 -0
  159. package/.next/server/chunks/6332.js +1 -0
  160. package/.next/server/chunks/6355.js +1 -0
  161. package/.next/server/chunks/6460.js +5 -0
  162. package/.next/server/chunks/6483.js +252 -0
  163. package/.next/server/chunks/6888.js +1 -0
  164. package/.next/server/chunks/6909.js +71 -16
  165. package/.next/server/chunks/6923.js +1 -0
  166. package/.next/server/chunks/6946.js +1 -0
  167. package/.next/server/chunks/7068.js +1 -0
  168. package/.next/server/chunks/7118.js +24 -0
  169. package/.next/server/chunks/7242.js +166 -0
  170. package/.next/server/chunks/7315.js +1 -0
  171. package/.next/server/chunks/7356.js +141 -0
  172. package/.next/server/chunks/7520.js +226 -0
  173. package/.next/server/chunks/7759.js +1 -0
  174. package/.next/server/chunks/7800.js +1 -0
  175. package/.next/server/chunks/7934.js +1 -0
  176. package/.next/server/chunks/7948.js +1 -0
  177. package/.next/server/chunks/795.js +115 -0
  178. package/.next/server/chunks/8015.js +287 -0
  179. package/.next/server/chunks/8019.js +80 -0
  180. package/.next/server/chunks/8150.js +1 -0
  181. package/.next/server/chunks/824.js +1 -0
  182. package/.next/server/chunks/8326.js +1 -0
  183. package/.next/server/chunks/8384.js +153 -0
  184. package/.next/server/chunks/8451.js +1 -0
  185. package/.next/server/chunks/8674.js +104 -0
  186. package/.next/server/chunks/8897.js +64 -0
  187. package/.next/server/chunks/8945.js +1 -0
  188. package/.next/server/chunks/8948.js +36 -0
  189. package/.next/server/chunks/8977.js +1 -0
  190. package/.next/server/chunks/9024.js +1 -0
  191. package/.next/server/chunks/9098.js +1 -1
  192. package/.next/server/chunks/9269.js +1 -0
  193. package/.next/server/chunks/9417.js +215 -0
  194. package/.next/server/chunks/9419.js +36 -0
  195. package/.next/server/chunks/9490.js +9 -0
  196. package/.next/server/chunks/9496.js +90 -0
  197. package/.next/server/chunks/9513.js +24 -0
  198. package/.next/server/chunks/9537.js +1 -0
  199. package/.next/server/chunks/9745.js +1 -0
  200. package/.next/server/chunks/9965.js +1 -0
  201. package/.next/server/functions-config-manifest.json +3 -3
  202. package/.next/server/middleware-build-manifest.js +1 -1
  203. package/.next/server/middleware-manifest.json +5 -5
  204. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  205. package/.next/server/pages/500.html +1 -1
  206. package/.next/server/server-reference-manifest.js +1 -1
  207. package/.next/server/server-reference-manifest.json +1 -1
  208. package/.next/static/chunks/2495-b11b2422a7f01945.js +1 -0
  209. package/.next/static/chunks/4108.74888011d3aa4cf8.js +1 -0
  210. package/.next/static/chunks/4546-6b7685845956a69f.js +1 -0
  211. package/.next/static/chunks/5407-2feacc6f9f69ba5d.js +1 -0
  212. package/.next/static/chunks/5434-407bb17ca2d631c9.js +1 -0
  213. package/.next/static/chunks/9348-912a9c1ec1da16dd.js +1 -0
  214. package/.next/static/chunks/app/layout-9a1dc11fccf70758.js +1 -0
  215. package/.next/static/chunks/app/onboarding/page-75acce6d5865dd64.js +1 -0
  216. package/.next/static/chunks/app/page-4f957a9ee1f7e2aa.js +1 -0
  217. package/.next/static/chunks/app/roots/[id]/chat/[topicId]/page-971b4c18ab2192d8.js +1 -0
  218. package/.next/static/chunks/app/roots/[id]/kb/[...slug]/page-4c8addbba297f0f8.js +1 -0
  219. package/.next/static/chunks/app/roots/[id]/page-0ea2bcca25dec0d0.js +1 -0
  220. package/.next/static/chunks/app/roots/[id]/workflows/[wfId]/page-6aa86d582b1f2bb0.js +1 -0
  221. package/.next/static/chunks/app/roots/new/page-b5f8ba6c3cd48d1b.js +1 -0
  222. package/.next/static/chunks/app/settings/page-5dde78a2421d0f4f.js +1 -0
  223. package/.next/static/chunks/app/share/[id]/page-162b9b2ab72f796f.js +1 -0
  224. package/.next/static/chunks/app/utilities/[scope]/[id]/page-891588bc6ce662f1.js +1 -0
  225. package/.next/static/chunks/app/utilities/page-8b0b3a9b569dcbe2.js +1 -0
  226. package/.next/static/chunks/{webpack-6c7ed0da8ba98645.js → webpack-5087eda6b4198971.js} +1 -1
  227. package/.next/trace +89 -47
  228. package/dist/lib/reflex/agents/prompts.js +66 -0
  229. package/dist/lib/reflex/agents/prompts.js.map +1 -1
  230. package/package.json +1 -1
  231. package/.next/server/chunks/1373.js +0 -1
  232. package/.next/server/chunks/1669.js +0 -1
  233. package/.next/server/chunks/3004.js +0 -1
  234. package/.next/server/chunks/3795.js +0 -3
  235. package/.next/server/chunks/9883.js +0 -1
  236. package/.next/static/chunks/1477-a74db494f91aeafc.js +0 -1
  237. package/.next/static/chunks/3496-59013c5bb64c51a9.js +0 -1
  238. package/.next/static/chunks/4108.71716ca4d2bdad01.js +0 -1
  239. package/.next/static/chunks/6132-51c867b4544ebefc.js +0 -1
  240. package/.next/static/chunks/7887-6a5dd2999717777f.js +0 -1
  241. package/.next/static/chunks/8151-41c02ad988318d11.js +0 -1
  242. package/.next/static/chunks/app/layout-8e0de66d47e2d411.js +0 -1
  243. package/.next/static/chunks/app/onboarding/page-1ec2ec3dadef91b8.js +0 -1
  244. package/.next/static/chunks/app/page-e9b67e9e2ee870ac.js +0 -1
  245. package/.next/static/chunks/app/roots/[id]/chat/[topicId]/page-438c36466499e15f.js +0 -1
  246. package/.next/static/chunks/app/roots/[id]/kb/[...slug]/page-21d327eaa0619f9e.js +0 -1
  247. package/.next/static/chunks/app/roots/[id]/page-cb8185fedf0f5f4d.js +0 -1
  248. package/.next/static/chunks/app/roots/[id]/workflows/[wfId]/page-40899d4270be9549.js +0 -1
  249. package/.next/static/chunks/app/roots/new/page-2379e2c4c2a63ce2.js +0 -1
  250. package/.next/static/chunks/app/settings/page-e3a46803ee1a5992.js +0 -1
  251. package/.next/static/chunks/app/share/[id]/page-c3b61aff7aa5d75e.js +0 -1
  252. package/.next/static/chunks/app/utilities/[scope]/[id]/page-e378fbede449f071.js +0 -1
  253. package/.next/static/chunks/app/utilities/page-60d7c81fe67376d2.js +0 -1
  254. /package/.next/static/{q-lgiDq7RjplLNgYcdvi2 → -HzWlqabyti20irA-SaOJ}/_buildManifest.js +0 -0
  255. /package/.next/static/{q-lgiDq7RjplLNgYcdvi2 → -HzWlqabyti20irA-SaOJ}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";exports.id=6923,exports.ids=[6923],exports.modules={879:(a,b,c)=>{c.d(b,{G:()=>k});var d=c(73024),e=c(76760),f=c.n(e),g=c(55136),h=c.n(g),i=c(54287);class j{constructor(a,b){this.root=a,this.layers=b}static async create(a){return new j(a,[]).enter(a)}async enter(a){let b,c=f().join(a,i.KZ);try{b=await d.promises.readFile(c,"utf8")}catch{return this}let e=h()().add(b);return new j(this.root,[...this.layers,{dir:a,ig:e}])}ignores(a){let b=f().basename(a);if(i.Lj.has(b))return!0;for(let{dir:b,ig:c}of this.layers){let d=f().relative(b,a);if(!(!d||d.startsWith(".."))&&c.ignores(d))return!0}return!1}}async function*k(a,b={}){let{maxDepth:c=1/0,followSymlinks:d=!1}=b,e=f().resolve(a),g=await j.create(e);yield{abs:e,rel:".",isDir:!0},yield*l(e,e,g,0,c,d)}async function*l(a,b,c,e,g,h){let i;if(!(e>=g)){try{i=await d.promises.readdir(b,{withFileTypes:!0})}catch{return}for(let d of(i.sort((a,b)=>a.name.localeCompare(b.name)),i)){var j,k;let i=f().join(b,d.name);if(c.ignores(i))continue;let n=d.isSymbolicLink();if(n&&!h)continue;let o=d.isDirectory()||n&&await m(i),p=(j=a,k=i,f().relative(j,k).split(f().sep).join("/"));if(yield{abs:i,rel:p,isDir:o},o){let b=await c.enter(i);yield*l(a,i,b,e+1,g,h)}}}}async function m(a){try{return(await d.promises.stat(a)).isDirectory()}catch{return!1}}},4168:(a,b,c)=>{c.d(b,{S:()=>j});var d=c(73745);c(66493);var e=c(76760),f=c.n(e),g=c(53905),h=c(54287),i=c(879);async function j(a,b){try{let d=await (0,g.Zn)(a);if(!d)return{ok:!1,error:"Root not found"};let e=(b??"").toLowerCase().trim(),j=[];try{let{listUtilities:b}=await Promise.resolve().then(c.bind(c,8118));for(let c of(await b({rootId:a})))j.push({kind:"utility",relPath:`util:${c.scope}/${c.manifest.id}`,absPath:"",label:`${c.manifest.name} (${c.scope})`,parent:"utilities"})}catch{}for await(let a of(0,i.G)((0,h.FF)(d.path))){if(a.isDir||!a.rel.toLowerCase().endsWith(".md")||a.rel.startsWith("topics/")||a.rel.startsWith("attachments/"))continue;let b=`${h.fW}/${a.rel}`;j.push({kind:"kb",relPath:b,absPath:a.abs,label:a.rel,parent:"."===f().dirname(a.rel)?h.fW:`${h.fW}/${f().dirname(a.rel)}`})}for await(let a of(0,i.G)(d.path))a.isDir||j.push({kind:"file",relPath:a.rel,absPath:a.abs,label:a.rel,parent:"."===f().dirname(a.rel)?"":f().dirname(a.rel)});let k=e?j.filter(a=>{let b=a.relPath.toLowerCase();return f().basename(a.relPath).toLowerCase().includes(e)||b.includes(e)}):j,l={utility:0,kb:1,file:2};return k.sort((a,b)=>{if(a.kind!==b.kind)return l[a.kind]-l[b.kind];if(e){let c=f().basename(a.label).toLowerCase(),d=f().basename(b.label).toLowerCase(),g=+!c.startsWith(e),h=+!d.startsWith(e);if(g!==h)return g-h}return a.relPath.localeCompare(b.relPath)}),{ok:!0,items:k.slice(0,30)}}catch(a){return{ok:!1,error:a instanceof Error?a.message:String(a)}}}(0,c(63781).D)([j]),(0,d.A)(j,"601fafa3f3a26ead543f68fe4c5341200ac06fccad",null)},8836:(a,b,c)=>{c.d(b,{E:()=>g});var d=c(64173),e=c(71813),f=c(69552);function g({label:a,headerRight:b,children:c}){let g=(0,e.c)("roots"),h=a??g("commandBarFrame.label");return(0,d.jsx)("div",{className:"border-t bg-background",children:(0,d.jsx)("div",{className:"mx-auto max-w-3xl px-6 py-5",children:(0,d.jsx)("div",{className:"reflex-gradient rounded-2xl p-[2px] shadow-[0_8px_40px_-12px_oklch(0.55_0.2_290/0.45)]",children:(0,d.jsxs)("div",{className:"rounded-[14px] bg-background/85 backdrop-blur-xl px-5 py-4",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,d.jsx)("span",{className:"reflex-gradient inline-flex h-6 w-6 items-center justify-center rounded-full text-white shadow-sm",children:(0,d.jsx)(f.A,{className:"h-3.5 w-3.5"})}),(0,d.jsx)("span",{className:"text-[11px] uppercase tracking-[0.18em] text-muted-foreground",children:h}),b&&(0,d.jsx)("span",{className:"ml-auto flex items-center gap-1",children:b})]}),c]})})})})}},26290:(a,b,c)=>{c.d(b,{cn:()=>f});var d=c(83243),e=c(86103);function f(...a){return(0,e.QP)((0,d.$)(a))}},45477:(a,b,c)=>{c.d(b,{T:()=>f});var d=c(64173);c(17240);var e=c(91344);function f({className:a,...b}){return(0,d.jsx)("textarea",{"data-slot":"textarea",className:(0,e.cn)("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",a),...b})}},63337:(a,b,c)=>{c.d(b,{x:()=>g});var d=c(73745);c(66493);var e=c(49410),f=c(8118);async function g(a){try{let b=(a.query??"").trim().toLowerCase();switch(a.commandId){case"skill":{let a=(await (0,e.b)()).map(a=>({value:a.id,label:a.title,description:a.description})).filter(a=>h(a,b));return{ok:!0,supported:!0,items:a}}case"util":{let c=(await (0,f.listUtilities)(a.rootId?{rootId:a.rootId}:{})).map(a=>({value:a.manifest.id,label:a.manifest.name,description:a.manifest.description}));return{ok:!0,supported:!0,items:c.filter(a=>h(a,b))}}default:return{ok:!0,supported:!1}}}catch(a){return{ok:!1,error:a instanceof Error?a.message:String(a)}}}function h(a,b){return!b||a.value.toLowerCase().includes(b)||a.label.toLowerCase().includes(b)||(a.description?.toLowerCase().includes(b)??!1)}(0,c(63781).D)([g]),(0,d.A)(g,"407d61dc96d8da6915f56afaaf01523124ff44d720",null)},67248:(a,b,c)=>{c.d(b,{E:()=>i});var d=c(63003);c(34750);var e=c(86209),f=c(65715),g=c(26290);let h=(0,e.F)("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function i({className:a,variant:b="default",asChild:c=!1,...e}){let i=c?f.bL:"span";return(0,d.jsx)(i,{"data-slot":"badge","data-variant":b,className:(0,g.cn)(h({variant:b}),a),...e})}},70844:(a,b,c)=>{c.d(b,{L:()=>O});var d=c(64173),e=c(17240),f=c(71813),g=c(54249),h=c(75430),i=c(34719),j=c(56189),k=c(41856),l=c(33120),m=c(69552),n=c(97338),o=c(25299),p=c(63387),q=c(53834),r=c(97162),s=c(62261),t=c(77311),u=c(25436),v=c(24555),w=c(68669),x=c(79145),y=c(66979),z=c(87671),A=c(44052),B=c(20583),C=c(45477),D=c(91344),E=c(3265);let F=(0,E.createServerReference)("601fafa3f3a26ead543f68fe4c5341200ac06fccad",E.callServer,void 0,E.findSourceMapURL,"searchMentionsAction"),G=[{id:"plan",trigger:"plan",label:"/plan",description:"Show the plan first — Reflex lays out the steps and waits for approval.",kind:"agent-mode",usage:"/plan <task>",icon:"ListChecks"},{id:"goal",trigger:"goal",label:"/goal",description:"Set a goal — Reflex will work toward it on its own, without reminders.",kind:"agent-mode",usage:"/goal <what to achieve>",icon:"Target"},{id:"research",trigger:"research",label:"/research",description:"Deep research on a topic — web search + summary with sources.",kind:"agent-mode",usage:"/research <topic>",icon:"Telescope"},{id:"widget",trigger:"widget",label:"/widget",description:"Create a card on the space dashboard.",kind:"agent-mode",usage:"/widget <what to show>",icon:"LayoutGrid"},{id:"workflow",trigger:"workflow",label:"/workflow",description:"Build a recipe — linear step-based automation for the task.",kind:"agent-mode",usage:"/workflow <what to automate>",icon:"Workflow"},{id:"distill",trigger:"distill",label:"/distill",description:"Pull a URL into the KB — extract key facts, action items, and links to related notes.",kind:"agent-mode",usage:"/distill <url> [focus]",icon:"BookOpenCheck"},{id:"practice",trigger:"practice",label:"/practice",description:"Roleplay a tough conversation — Reflex plays the counterpart and coaches you between turns.",kind:"agent-mode",usage:"/practice <scenario>",icon:"MessagesSquare"},{id:"reflect",trigger:"reflect",label:"/reflect",description:"Daily check-in — three questions adapted to your recent entries, saved as a journal note.",kind:"agent-mode",usage:"/reflect",allowEmpty:!0,icon:"Sunrise"},{id:"remember",trigger:"remember",label:"/remember",description:"Save a note — straight into memory, no AI involved.",kind:"direct",usage:"/remember <what to remember>",icon:"BookmarkPlus"},{id:"mcp",trigger:"mcp",label:"/mcp",description:"Connect an external service (setup wizard opens in chat).",kind:"agent-mode",usage:"/mcp <what you need>",icon:"PackagePlus"},{id:"skill",trigger:"skill",label:"/skill",description:"Attach a role — a ready-made instruction set for this conversation.",kind:"agent-mode",usage:"/skill <role-id> [prompt]",icon:"Sparkles"},{id:"delete-topic",trigger:"delete-topic",label:"/delete-topic",description:"Delete this conversation (with confirmation).",kind:"direct",usage:"/delete-topic",requiresConfirm:!0,allowEmpty:!0,icon:"Trash2"},{id:"clear-project",trigger:"clear-project",label:"/clear-project",description:"DANGER: clear the space — all conversations, cards, memory. Double confirmation.",kind:"direct",usage:"/clear-project",requiresConfirm:!0,allowEmpty:!0,icon:"AlertOctagon"},{id:"util",trigger:"util",label:"/util",description:"Open a mini-app (by partial name or from the list).",kind:"direct",usage:"/util <partial name or id>",allowEmpty:!0,icon:"Boxes"},{id:"help",trigger:"help",label:"/help",description:"List available commands.",kind:"direct",usage:"/help",allowEmpty:!0,icon:"HelpCircle"}],H=(0,E.createServerReference)("407d61dc96d8da6915f56afaaf01523124ff44d720",E.callServer,void 0,E.findSourceMapURL,"listCommandArgsAction"),I=(0,E.createServerReference)("6068b8ef27e387f4a0d8e79c9bfc9ec259997fbe1f",E.callServer,void 0,E.findSourceMapURL,"rememberAction"),J=(0,E.createServerReference)("6076236778f9b2c2f7c76bb3ab62c4b0274cf77dd8",E.callServer,void 0,E.findSourceMapURL,"deleteCurrentTopicCommand"),K=(0,E.createServerReference)("60cc850c0f4bde6a2377324d9804115c56438a8457",E.callServer,void 0,E.findSourceMapURL,"openUtilityAction"),L=(0,E.createServerReference)("405f2c5d628e7b5dc6d25ee6b153a634d0bb0ce741",E.callServer,void 0,E.findSourceMapURL,"clearProjectAction");var M=c(88724);let N={ListChecks:g.A,Target:h.A,Telescope:i.A,LayoutGrid:j.A,BookmarkPlus:k.A,PackagePlus:l.A,Sparkles:m.A,Trash2:n.A,AlertOctagon:o.A,HelpCircle:p.A,Workflow:q.A,Boxes:r.A};function O({rootId:a,topicId:b,placeholder:c,submitLabel:g,pendingLabel:h,SubmitIcon:i,disabled:j,onSubmit:k,active:l,onStop:m,clarifyLabel:n,stopLabel:o}){let p=(0,f.c)("roots"),q=n??p("chatInputForm.clarifyLabel"),r=o??p("chatInputForm.stopLabel"),v=(0,z.useRouter)(),[w,x]=(0,e.useState)(""),[y,E]=(0,e.useState)([]),[I,J]=(0,e.useState)(!1),[K,L]=(0,e.useState)(!1),[M,N]=(0,e.useState)(!1),O=(0,e.useRef)(null),U=(0,e.useRef)(null),[V,W]=(0,e.useState)(null),[X,Y]=(0,e.useState)([]),[Z,$]=(0,e.useState)(0),[_,aa]=(0,e.useState)(!1),ab=(0,e.useRef)(0),[ac,ad]=(0,e.useState)(null),[ae,af]=(0,e.useState)(null),ag=(0,e.useRef)(0);(0,e.useCallback)(()=>{let a=O.current;a&&(a.style.height="auto",a.style.height=Math.min(a.scrollHeight,240)+"px")},[]);let ah=(0,e.useCallback)((b,c)=>{let d=c;for(;d>0;){let a=b[d-1];if("@"===a){d-=1;break}if(/\s/.test(a)){d=-1;break}d-=1}if(d<0||"@"!==b[d]||d>0&&!/\s/.test(b[d-1])){W(null),Y([]);return}let e=b.slice(d+1,c);W({start:d,end:c}),$(0),aa(!0);let f=++ab.current;(async()=>{let b=await F(a,e);ab.current===f&&(aa(!1),Y(b.ok?b.items:[]))})()},[a]),ai=(0,e.useCallback)(()=>{W(null),Y([]),ab.current++},[]),aj=(0,e.useCallback)((b,c)=>{if(!b.startsWith("/")){ad(null),af(null);return}let d=b.indexOf(" ");if(d<0){af(null);let a=b.slice(1).toLowerCase(),c=G.filter(b=>b.trigger.startsWith(a)||b.label.toLowerCase().includes(a)||b.description.toLowerCase().includes(a));ad(c.length?{items:c,index:0}:null);return}ad(null);let e=b.slice(1,d),f=G.find(a=>a.trigger===e);if(!f)return void af(null);let g=d+1,h=c>=g?c:b.length;if(b.slice(h).indexOf(" ")>=0)return void af(null);let i=b.slice(g,h),j=++ag.current;af(a=>({cmd:f,items:a?.cmd.id===f.id?a.items:[],index:0,start:g,end:h,loading:!0})),(async()=>{let b=await H({commandId:f.id,query:i,rootId:a});if(ag.current===j){if(!b.ok||!b.supported||0===b.items.length)return af(null);af({cmd:f,items:b.items,index:0,start:g,end:h,loading:!1})}})()},[a]),ak=(0,e.useCallback)(()=>{ad(null),af(null)},[]),al=(0,e.useCallback)(a=>{let b=O.current;af(c=>{if(!c)return null;let d=w.slice(0,c.start),e=w.slice(c.end),f=`${a.value} `;x(d+f+e);let g=d.length+f.length;return requestAnimationFrame(()=>{b&&(b.focus(),b.setSelectionRange(g,g))}),null})},[w]),am=(0,e.useCallback)(a=>{let b=O.current,c=`/${a.trigger}${a.allowEmpty&&"direct"===a.kind?"":" "}`;x(c),ad(null),requestAnimationFrame(()=>{b&&(b.focus(),b.setSelectionRange(c.length,c.length))})},[]),an=(0,e.useCallback)(a=>{let b=O.current;if(!b||!V)return;let c=w.slice(0,V.start),d=w.slice(V.end),e=`@${a.relPath} `;x(c+e+d),ai();let f=c.length+e.length;requestAnimationFrame(()=>{b.focus(),b.setSelectionRange(f,f)})},[w,V,ai]),ao=(0,e.useCallback)(async b=>{if(0!==b.length){J(!0);try{let c=new FormData;for(let a of b)c.append("files",a);let d=await fetch(`/api/roots/${a}/attachments`,{method:"POST",body:c});if(!d.ok){let a=await d.json().catch(()=>({}));A.oR.error(a.error??p("chatInputForm.uploadFailed",{status:d.status}));return}let e=await d.json();E(a=>[...a,...e.files])}catch(a){A.oR.error(a instanceof Error?a.message:String(a))}finally{J(!1)}}},[a]),ap=w.trim().length>0||y.length>0,aq=l&&m?ap?"clarify":"stop":"send",ar=(0,e.useCallback)(async()=>{if(K)return;if("stop"===aq){if(!m)return;L(!0);try{await m()}finally{L(!1)}return}let c=w.trim();if(!c&&0===y.length||j&&"send"===aq)return;let d=function(a){var b;let c=a.trim();if(!c.startsWith("/"))return null;let d=/^\/([a-z][a-z0-9-]*)(?:\s+([\s\S]*))?$/.exec(c);if(!d)return null;let e=(b=d[1],G.find(a=>a.trigger===b)??null);return e?{def:e,payload:(d[2]??"").trim()}:null}(c);if(d&&"direct"===d.def.kind){L(!0);try{await P({cmd:d.def,payload:d.payload,rootId:a,topicId:b,router:v,t:p}),x("")}finally{L(!1)}return}L(!0);try{"clarify"===aq&&m&&await m(),await k({message:c,attachments:y})&&(x(""),E([]))}finally{L(!1)}},[w,y,K,j,aq,m,k,a,b,v,p]),as=!K&&!I&&("stop"===aq||ap&&(!j||"clarify"===aq));return(0,d.jsxs)("form",{onSubmit:a=>{a.preventDefault(),ar()},onDragEnter:a=>{Array.from(a.dataTransfer.types).includes("Files")&&(a.preventDefault(),N(!0))},onDragOver:a=>{Array.from(a.dataTransfer.types).includes("Files")&&(a.preventDefault(),N(!0))},onDragLeave:a=>{a.currentTarget.contains(a.relatedTarget)||N(!1)},onDrop:a=>{a.preventDefault(),N(!1);let b=Array.from(a.dataTransfer.files);b.length>0&&ao(b)},className:(0,D.cn)("space-y-2 rounded-md transition-colors",M&&"ring-2 ring-ring/60 bg-accent/40"),children:[y.length>0&&(0,d.jsx)("div",{className:"flex flex-wrap gap-1.5",children:y.map((a,b)=>(0,d.jsx)(S,{attachment:a,onRemove:()=>E(b=>b.filter(b=>b!==a))},a.absPath+b))}),(0,d.jsxs)("div",{className:"flex items-end gap-2",children:[(0,d.jsxs)("div",{className:"relative flex-1",children:[(0,d.jsx)(C.T,{ref:O,value:w,onChange:a=>{x(a.target.value),ah(a.target.value,a.target.selectionStart),aj(a.target.value,a.target.selectionStart)},onKeyUp:a=>{let b=a.currentTarget;ah(b.value,b.selectionStart),aj(b.value,b.selectionStart)},onClick:a=>{let b=a.currentTarget;ah(b.value,b.selectionStart),aj(b.value,b.selectionStart)},onBlur:()=>{setTimeout(()=>{ai(),ak()},150)},onKeyDown:a=>{if(ac){if("ArrowDown"===a.key){a.preventDefault(),ad(a=>a?{...a,index:Math.min(a.items.length-1,a.index+1)}:null);return}if("ArrowUp"===a.key){a.preventDefault(),ad(a=>a?{...a,index:Math.max(0,a.index-1)}:null);return}if("Tab"===a.key){a.preventDefault();let b=ac.items[ac.index];b&&am(b);return}if("Escape"===a.key){a.preventDefault(),ak();return}}if(ae&&ae.items.length>0){if("ArrowDown"===a.key){a.preventDefault(),af(a=>a?{...a,index:Math.min(a.items.length-1,a.index+1)}:null);return}if("ArrowUp"===a.key){a.preventDefault(),af(a=>a?{...a,index:Math.max(0,a.index-1)}:null);return}if("Tab"===a.key){a.preventDefault();let b=ae.items[ae.index];b&&al(b);return}if("Escape"===a.key){a.preventDefault(),af(null);return}}if(V&&X.length>0){if("ArrowDown"===a.key){a.preventDefault(),$(a=>Math.min(X.length-1,a+1));return}if("ArrowUp"===a.key){a.preventDefault(),$(a=>Math.max(0,a-1));return}if("Enter"===a.key||"Tab"===a.key){a.preventDefault();let b=X[Z];b&&an(b);return}if("Escape"===a.key){a.preventDefault(),ai();return}}"Enter"!==a.key||a.shiftKey||a.nativeEvent.isComposing||(a.preventDefault(),ar())},onPaste:a=>{let b=Array.from(a.clipboardData.files);b.length>0&&(a.preventDefault(),ao(b))},placeholder:c,rows:1,disabled:j||K,className:"resize-none min-h-[44px] max-h-60 text-base bg-background/70 border-transparent focus-visible:border-ring py-2.5 w-full"}),V&&(0,d.jsx)(R,{items:X,index:Z,loading:_,onPick:an,onHover:a=>$(a)}),ac&&!V&&(0,d.jsx)(Q,{items:ac.items,index:ac.index,onPick:am,onHover:a=>ad(b=>b?{...b,index:a}:null),topicAvailable:!!b}),ae&&!V&&!ac&&(0,d.jsx)(T,{cmd:ae.cmd,items:ae.items,index:ae.index,onPick:al,onHover:a=>af(b=>b?{...b,index:a}:null)})]}),(0,d.jsx)("input",{ref:U,type:"file",multiple:!0,className:"hidden",onChange:a=>{let b=Array.from(a.target.files??[]);b.length>0&&ao(b),a.target.value=""}}),(0,d.jsx)(B.$,{type:"button",size:"icon",variant:"ghost",onClick:()=>U.current?.click(),disabled:I||K||j,title:p("chatInputForm.attachTitle"),className:"h-11 w-11 shrink-0",children:I?(0,d.jsx)(s.A,{className:"h-4 w-4 animate-spin"}):(0,d.jsx)(t.A,{className:"h-4 w-4"})}),(0,d.jsx)(B.$,{type:"submit",size:"lg",disabled:!as,variant:"stop"===aq?"destructive":"default",className:"h-11 px-6 shadow-md shrink-0",children:K?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s.A,{className:"mr-2 h-4 w-4 animate-spin"}),h]}):"stop"===aq?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(u.A,{className:"mr-2 h-4 w-4",fill:"currentColor"}),r]}):"clarify"===aq?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i,{className:"mr-2 h-4 w-4"}),q]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i,{className:"mr-2 h-4 w-4"}),g]})})]}),(0,d.jsx)("div",{className:"text-[10px] text-muted-foreground",children:p("chatInputForm.helperRow")})]})}async function P({cmd:a,payload:b,rootId:c,topicId:d,router:e,t:f}){if("help"===a.id){let a=G.map(a=>`• ${a.label} — ${a.description}`);A.oR.info(f("chatInputForm.availableCommands",{list:a.join("\n")}),{duration:12e3});return}if("remember"===a.id){if(!b)return void A.oR.error(f("chatInputForm.rememberEmpty"));let a=await I(c,b);return void(a.ok?(A.oR.success(a.message??f("chatInputForm.savedToKb")),(0,M.$d)(M.Zi.kbChanged(c))):A.oR.error(a.error))}if("delete-topic"===a.id){if(!d)return void A.oR.error(f("chatInputForm.topicOnlyCommand"));if(!confirm(f("chatInputForm.deleteTopicConfirm")))return;let a=await J(c,d);return void(a.ok?(A.oR.success(a.message??f("chatInputForm.deleted")),(0,M.$d)(M.Zi.topicsChanged(c)),a.redirectTo&&e.push(a.redirectTo)):A.oR.error(a.error))}if("util"===a.id){let a=await K(c,b);if(!a.ok)return void A.oR.error(a.error);if("redirect"===a.kind)return void e.push(a.url);let d=a.items.slice(0,8).map(a=>`• ${a.name} (${a.scope}/${a.id})`).join("\n");return void A.oR.message(f("chatInputForm.multipleMatches",{list:d}),{duration:12e3})}if("clear-project"===a.id){if(!confirm(f("chatInputForm.clearProjectConfirm")))return;let a=prompt(f("chatInputForm.clearProjectPrompt"));if(a?.trim().toLowerCase()!==f("chatInputForm.clearProjectPhrase"))return void A.oR.message(f("chatInputForm.confirmFailed"));let b=await L(c);return void(b.ok?(A.oR.success(b.message??f("chatInputForm.projectCleared")),(0,M.$d)(M.Zi.topicsChanged(c)),(0,M.$d)(M.Zi.kbChanged(c)),b.redirectTo&&e.push(b.redirectTo)):A.oR.error(b.error))}A.oR.error(f("chatInputForm.unknownCommand",{label:a.label}))}function Q({items:a,index:b,onPick:c,onHover:e,topicAvailable:g}){let h=(0,f.c)("roots");return(0,d.jsxs)("div",{className:"absolute bottom-full left-0 right-0 mb-2 z-50 max-h-80 overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-lg",children:[(0,d.jsx)("div",{className:"px-3 py-1.5 text-[10px] uppercase tracking-wider text-muted-foreground border-b",children:h("chatInputForm.commandsPaletteHeader")}),(0,d.jsx)("ul",{children:a.map((a,f)=>{let i=N[a.icon]??m.A,j="delete-topic"===a.id&&!g;return(0,d.jsx)("li",{children:(0,d.jsxs)("button",{type:"button",onMouseDown:b=>{b.preventDefault(),j||c(a)},onMouseEnter:()=>e(f),disabled:j,className:(0,D.cn)("w-full flex items-start gap-2 px-3 py-2 text-left",f===b?"bg-accent":"hover:bg-accent/60",j&&"opacity-40 cursor-not-allowed"),children:[(0,d.jsx)(i,{className:(0,D.cn)("h-3.5 w-3.5 mt-0.5 shrink-0","direct"===a.kind?"text-amber-600":"text-violet-600")}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("div",{className:"flex items-baseline gap-2 flex-wrap",children:[(0,d.jsx)("span",{className:"font-mono text-xs font-medium",children:a.label}),"direct"===a.kind&&(0,d.jsx)("span",{className:"text-[9px] uppercase tracking-wider text-amber-700",children:h("chatInputForm.directAction")}),a.requiresConfirm&&(0,d.jsx)("span",{className:"text-[9px] uppercase tracking-wider text-destructive",children:h("chatInputForm.withConfirm")})]}),(0,d.jsx)("p",{className:"text-[11px] text-muted-foreground leading-snug mt-0.5",children:a.description}),(0,d.jsx)("p",{className:"text-[10px] text-muted-foreground/80 font-mono mt-0.5",children:a.usage})]})]})},a.id)})})]})}function R({items:a,index:b,loading:c,onPick:e,onHover:g}){let h=(0,f.c)("roots");return(0,d.jsx)("div",{className:"absolute bottom-full left-0 right-0 mb-2 z-50 max-h-72 overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-lg",children:c&&0===a.length?(0,d.jsxs)("div",{className:"px-3 py-2 text-xs text-muted-foreground flex items-center gap-2",children:[(0,d.jsx)(s.A,{className:"h-3 w-3 animate-spin"})," ",h("chatInputForm.mentionSearching")]}):0===a.length?(0,d.jsx)("div",{className:"px-3 py-2 text-xs text-muted-foreground italic",children:h("chatInputForm.mentionNothing")}):(0,d.jsx)("ul",{children:a.map((a,c)=>{let f="kb"===a.kind?v.A:w.A;return(0,d.jsx)("li",{children:(0,d.jsxs)("button",{type:"button",onMouseDown:b=>{b.preventDefault(),e(a)},onMouseEnter:()=>g(c),className:(0,D.cn)("w-full flex items-center gap-2 px-3 py-1.5 text-sm text-left",c===b?"bg-accent":"hover:bg-accent/60"),children:[(0,d.jsx)(f,{className:(0,D.cn)("h-3.5 w-3.5 shrink-0","kb"===a.kind?"text-primary":"text-muted-foreground")}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsx)("div",{className:"truncate font-mono text-xs",children:a.relPath}),a.parent&&(0,d.jsx)("div",{className:"truncate text-[10px] text-muted-foreground",children:a.parent})]}),(0,d.jsx)("span",{className:(0,D.cn)("text-[10px] uppercase tracking-wider shrink-0","kb"===a.kind?"text-primary":"text-muted-foreground"),children:a.kind})]})},a.absPath)})})})}function S({attachment:a,onRemove:b}){var c;let e=a.mime.startsWith("image/")?x.A:w.A;return(0,d.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-muted px-2 py-1 text-[11px] max-w-[18rem]",children:[(0,d.jsx)(e,{className:"h-3 w-3 text-muted-foreground shrink-0"}),(0,d.jsx)("span",{className:"truncate",title:a.name,children:a.name}),(0,d.jsx)("span",{className:"text-muted-foreground",children:(c=a.size)<1024?`${c} B`:c<1048576?`${(c/1024).toFixed(1)} KB`:`${(c/1048576).toFixed(1)} MB`}),(0,d.jsx)("button",{type:"button",onClick:b,className:"ml-0.5 text-muted-foreground hover:text-foreground",children:(0,d.jsx)(y.A,{className:"h-3 w-3"})})]})}function T({cmd:a,items:b,index:c,onPick:e,onHover:f}){let g=N[a.icon]??m.A;return(0,d.jsxs)("div",{className:"absolute bottom-full left-0 right-0 mb-2 z-50 max-h-80 overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-lg",children:[(0,d.jsxs)("div",{className:"px-3 py-1.5 text-[10px] uppercase tracking-wider text-muted-foreground border-b flex items-center gap-2",children:[(0,d.jsx)(g,{className:"h-3 w-3"}),(0,d.jsxs)("span",{children:[a.label," \xb7 ",a.usage.replace(/^\/\S+\s*/,"")]})]}),(0,d.jsx)("ul",{children:b.map((a,b)=>(0,d.jsx)("li",{children:(0,d.jsxs)("button",{type:"button",onMouseDown:b=>{b.preventDefault(),e(a)},onMouseEnter:()=>f(b),className:(0,D.cn)("w-full flex items-start gap-2 px-3 py-2 text-left",b===c?"bg-accent":"hover:bg-accent/60"),children:[(0,d.jsx)(m.A,{className:"h-3.5 w-3.5 mt-0.5 shrink-0 text-violet-600"}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("div",{className:"flex items-baseline gap-2 flex-wrap",children:[(0,d.jsx)("span",{className:"font-medium text-sm",children:a.label}),(0,d.jsx)("span",{className:"font-mono text-[10px] text-muted-foreground",children:a.value})]}),a.description&&(0,d.jsx)("p",{className:"text-[11px] text-muted-foreground leading-snug mt-0.5 line-clamp-2",children:a.description})]})]})},a.value))})]})}},72901:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{LL:()=>v,ZC:()=>z,b2:()=>u,qO:()=>t,wd:()=>y});var e=c(73745);c(66493);var f=c(73024),g=c(76760),h=c.n(g),i=c(65326),j=c(53905),k=c(54287),l=c(56942),m=c(5492),n=c(13415),o=c(93554),p=c(49410),q=c(96921),r=c(63781),s=a([n,o]);async function t(a,b){try{let c=b.trim();if(!c)return{ok:!1,error:"Empty — nothing to remember."};let d=await (0,j.Zn)(a);if(!d)return{ok:!1,error:"Root not found"};let e=c.split(/\r?\n/,1)[0].trim(),f=e.length>80?e.slice(0,77).trimEnd()+"…":e,g=await (0,l.j)({rootPath:d.path,directive:{kind:"note",title:f,body:c}});return(0,i.revalidatePath)(`/roots/${a}`),{ok:!0,message:`Saved to ${g.relPath}`}}catch(a){return{ok:!1,error:a instanceof Error?a.message:String(a)}}}async function u(a,b){let c=await (0,n.L4)(a,b);return c.ok?{ok:!0,redirectTo:`/roots/${a}`,message:"Topic deleted"}:{ok:!1,error:c.error??"Failed"}}async function v(a){try{let b=await (0,j.Zn)(a);if(!b)return{ok:!1,error:"Root not found"};let c=(0,k.FF)(b.path);for(let a of(await (0,m.hk)(b.path)))await o.z.stopTopic(a.meta.id).catch(()=>void 0);return await w(h().join(c,"widgets")),await w(h().join(c,"dashboard-layout.json")),await w(h().join(c,"topics")),await x(c),(0,i.revalidatePath)(`/roots/${a}`),{ok:!0,redirectTo:`/roots/${a}`,message:"Project cleared. Starting fresh."}}catch(a){return{ok:!1,error:a instanceof Error?a.message:String(a)}}}async function w(a){try{await f.promises.rm(a,{recursive:!0,force:!0})}catch{}}async function x(a){let b;try{b=await f.promises.readdir(a,{withFileTypes:!0})}catch{return}for(let c of b){let b=h().join(a,c.name);if(c.isDirectory()){await x(b);try{let a=await f.promises.readdir(b);0===a.length&&await f.promises.rmdir(b)}catch{}continue}c.name.toLowerCase().endsWith(".md")&&await f.promises.unlink(b).catch(()=>void 0)}}async function y(){let a=await (0,p.b)();return{ok:!0,commands:q.Lo,skills:a}}async function z(a,b){let{listUtilities:d}=await Promise.resolve().then(c.bind(c,8118)),e=await d({rootId:a}),f=b.trim().toLowerCase(),g=e.map(a=>({id:a.manifest.id,name:a.manifest.name,scope:a.scope,rootId:a.rootId})),h=a=>{let b=a.rootId?`?rootId=${encodeURIComponent(a.rootId)}`:"";return`/utilities/${a.scope}/${a.id}${b}`};if(!f)return 0===g.length?{ok:!1,error:"No mini-apps installed yet."}:{ok:!0,kind:"choices",items:g.map(a=>({url:h(a),id:a.id,name:a.name,scope:a.scope}))};let i=g.find(a=>a.id.toLowerCase()===f);if(i)return{ok:!0,kind:"redirect",url:h(i)};let j=g.filter(a=>a.id.toLowerCase().includes(f)||a.name.toLowerCase().includes(f));return 1===j.length?{ok:!0,kind:"redirect",url:h(j[0])}:0===j.length?{ok:!1,error:`Nothing found for "${b}". Installed: ${g.length}.`}:{ok:!0,kind:"choices",items:j.map(a=>({url:h(a),id:a.id,name:a.name,scope:a.scope}))}}[n,o]=s.then?(await s)():s,(0,r.D)([t,u,v,y,z]),(0,e.A)(t,"6068b8ef27e387f4a0d8e79c9bfc9ec259997fbe1f",null),(0,e.A)(u,"6076236778f9b2c2f7c76bb3ab62c4b0274cf77dd8",null),(0,e.A)(v,"405f2c5d628e7b5dc6d25ee6b153a634d0bb0ce741",null),(0,e.A)(y,"00b34c1adcaa46f938fd137f060fba6d894077f01b",null),(0,e.A)(z,"60cc850c0f4bde6a2377324d9804115c56438a8457",null),d()}catch(a){d(a)}})},84913:(a,b,c)=>{c.d(b,{$:()=>i});var d=c(63003);c(34750);var e=c(86209),f=c(65715),g=c(26290);let h=(0,e.F)("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function i({className:a,variant:b="default",size:c="default",asChild:e=!1,...i}){let j=e?f.bL:"button";return(0,d.jsx)(j,{"data-slot":"button","data-variant":b,"data-size":c,className:(0,g.cn)(h({variant:b,size:c,className:a})),...i})}}};
@@ -0,0 +1 @@
1
+ "use strict";exports.id=6946,exports.ids=[6946],exports.modules={32977:(a,b,c)=>{function d(a,b){a.accDescr&&b.setAccDescription?.(a.accDescr),a.accTitle&&b.setAccTitle?.(a.accTitle),a.title&&b.setDiagramTitle?.(a.title)}c.d(b,{S:()=>d}),(0,c(77703).K2)(d,"populateCommonDb")},66946:(a,b,c)=>{c.d(b,{diagram:()=>ac});var d=c(32977),e=c(86947),f=c(41553),g=c(77703),h=c(94450),i=c(7285),j="position frame",k="frame positioned",l="position relation",m="relation positioned",n=(0,g.K2)(function(a){g.Rm.debug("options str",a)},"setOptions"),o=(0,g.K2)(function(){return{}},"getOptions"),p=(0,g.K2)(function(){q(),(0,f.IU)()},"clear");function q(){t={}}(0,g.K2)(q,"reset");var r=f.UI.eventmodeling,s=(0,g.K2)(()=>(0,e.$t)({...r,...(0,f.zj)().eventmodeling}),"getConfig"),t={};function u(){let a=y,{ast:b}=t,c=x();if(!b)throw Error("No data for EventModel");return b.frames.forEach((d,e)=>{let f=F(d,b.dataEntities,c);a=V(a,{$kind:j,index:e,frame:d,textProps:f}),M(d)?(g.Rm.debug("source frame",d.sourceFrames),b.frames.filter(a=>d.sourceFrames.some(b=>b.$refText===a.name)).forEach(b=>{a=V(a,{$kind:l,index:e,frame:d,sourceFrame:b})})):a=V(a,{$kind:l,index:e,frame:d})}),a={...a,sortedSwimlanesArray:J(a.swimlanes)}}function v(a){t.ast=a}(0,g.K2)(u,"getState"),(0,g.K2)(v,"setAst");var w={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function x(){return w}(0,g.K2)(x,"getDiagramProps");var y={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function z(a){let b=a.split(".");if(2===b.length)return b[0]}function A(a){let b=a.split(".");return 2===b.length?b[1]:a}function B(a,b){if(b&&0!==b.length)return Object.values(a).find(a=>a.namespace===b)}function C(a,b,c){return Math.max(b,...Object.keys(a).filter(a=>{let d=Number.parseInt(a);return d>b&&d<c}).map(a=>Number.parseInt(a)))+1}function D(a,b){let c=z(a.entityIdentifier),d=B(b,c);switch(a.modelEntityType){case"ui":case"pcr":case"processor":if(d)return{index:d.index,label:d.namespace||w.labelUiAutomation};if(c)return{index:C(b,0,100),label:w.labelUiAutomationPrefix+c};return{index:0,label:w.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":if(d)return{index:d.index,label:d.namespace||w.labelCommandReadModel};if(c)return{index:C(b,100,200),label:w.labelCommandReadModelPrefix+c};return{index:100,label:w.labelCommandReadModel};default:if(d)return{index:d.index,label:d.namespace||w.labelEvents};if(c)return{index:C(b,200,300),label:w.labelEventsPrefix+c};return{index:200,label:w.labelEvents}}}function E(a){let{themeVariables:b}=(0,f.zj)();switch(a.modelEntityType){case"ui":return{fill:b.emUiFill??"white",stroke:b.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:b.emProcessorFill??"#edb3f6",stroke:b.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:b.emReadModelFill??"#d3f1a2",stroke:b.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:b.emCommandFill??"#bcd6fe",stroke:b.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:b.emEventFill??"#ffb778",stroke:b.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}function F(a,b,c){let d,h=(0,f.zj)(),i=(0,f.jZ)(A(a.entityIdentifier)??"",h),j={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"},k=(0,e.bH)(i,c.textMaxWidth,j),l=`<b>${k}</b>`;if(a.dataInlineValue&&(d=(d=(d=a.dataInlineValue).substring(d.indexOf("{")+1)).substring(0,d.lastIndexOf("}")-1),d=(0,f.jZ)(d,h),d=(d=(0,e.bH)(d,c.textMaxWidth,j)).replaceAll(" ","&nbsp;")),a.dataReference){let g=b.find(b=>b.name===a.dataReference?.$refText);g&&(d=(d=(d=g.dataBlockValue).substring(d.indexOf("{\n")+2)).substring(0,d.lastIndexOf("}")-1),d=(0,f.jZ)(d,h),d=(d=(0,e.bH)(d,c.textMaxWidth,j)).replaceAll(" ","&nbsp;")+"<br/>")}let m=void 0!==d;m&&(l+=`<br/><br/><code style="text-align: left; display: block;max-width:${c.textMaxWidth}px">${d}</code>`);let n={fontSize:j.fontSize,fontWeight:j.fontWeight,fontFamily:j.fontFamily},o=(0,e.PX)(l,n),p={content:l,width:m?o.width/3:o.width,height:o.height};return g.Rm.debug(`[${a.name}] ${a.entityIdentifier} text`,p),p}function G(a,b){let c=E(b.frame),d={width:b.textProps.width+2*w.boxTextPadding,height:b.textProps.height+2*w.boxTextPadding};return[{$kind:k,frame:b.frame,index:b.index,visual:c,dimension:d,textProps:b.textProps}]}function H(a,b,c){return void 0===b?w.contentStartX:b.index===a.index&&a.r?a.r+w.boxPadding:void 0===c?w.contentStartX:c.r-w.boxOverlap+w.boxPadding}function I(a,b){return Math.max(...a.map(a=>a.r),b)}function J(a){return Object.values(a).sort((a,b)=>a.index-b.index)}function K(a,b){let c,d=D(b.frame,a.swimlanes);c=d.index in a.swimlanes?a.swimlanes[d.index]:{index:d.index,label:d.label,r:0,y:d.index*w.swimlaneMinHeight+w.swimlaneGap,height:w.swimlaneMinHeight,maxHeight:w.swimlaneMinHeight};let e=a.boxes.length>0?a.boxes[a.boxes.length-1]:void 0,f=void 0!==a.previousSwimlaneNumber?a.swimlanes[a.previousSwimlaneNumber]:void 0,g={width:Math.max(w.boxMinWidth,Math.min(w.boxMaxWidth,b.dimension.width))+2*w.boxPadding,height:Math.max(w.boxMinHeight,Math.min(w.boxMaxHeight,b.dimension.height))+2*w.boxPadding},h=H(c,f,e),i=h+g.width+w.boxPadding,j=I(Object.values(a.swimlanes),i);c.r=h+g.width,c.maxHeight=Math.max(c.maxHeight,g.height),c.height=Math.max(w.swimlaneMinHeight,c.maxHeight)+2*w.swimlanePadding;let k={x:h,y:w.swimlanePadding+c.y,r:i,dimension:g,leftSibling:!1,swimlane:c,visual:b.visual,text:b.textProps.content,frame:b.frame,index:b.index},l={...a,boxes:[...a.boxes,k],swimlanes:{...a.swimlanes,[`${c.index}`]:c},previousSwimlaneNumber:d.index,previousFrame:b.frame,maxR:j},m=J(l.swimlanes);m.length>0&&(m[0].y=0);for(let a=1;a<m.length;a++){let b=m[a],c=m[a-1];b.y=c.y+c.height+w.swimlaneGap}return l}function L(a,b){return 0===a&&0===b.sourceFrames.length}function M(a){return void 0!==a.sourceFrames&&null!==a.sourceFrames&&a.sourceFrames.length>0}function N(a,b){if(null!=b)return a.find(a=>a.frame.name===b.name)}function O(a,b,c){if(!(c<0))for(let d=c;d>=0;d--){let c=a[d];if(c.swimlane.index!==b)return c}}function P(a,b){let c;if((0,h.F5)(b.frame)||L(b.index,b.frame))return[];let d=N(a.boxes,b.frame);if(void 0===d)throw Error(`Target box not found for frame ${b.frame.name}`);return void 0===(c=b.sourceFrame?N(a.boxes,b.sourceFrame):O(a.boxes,d.swimlane.index,b.index-1))?[]:[{$kind:m,frame:b.frame,index:b.index,sourceBox:c,targetBox:d}]}function Q(a,b){let c={visual:{fill:"none",stroke:"#000"},source:{x:b.sourceBox.x,y:b.sourceBox.y},target:{x:b.targetBox.x,y:b.targetBox.y},sourceBox:b.sourceBox,targetBox:b.targetBox};return{...a,relations:[...a.relations,c]}}(0,g.K2)(z,"extractNamespace"),(0,g.K2)(A,"extractName"),(0,g.K2)(B,"findSwimlaneByNamespace"),(0,g.K2)(C,"findNextAvailableIndex"),(0,g.K2)(D,"calculateSwimlaneProps"),(0,g.K2)(E,"calculateEntityVisualProps"),(0,g.K2)(F,"calculateTextProps"),(0,g.K2)(G,"decidePositionFrame"),(0,g.K2)(H,"calculateX"),(0,g.K2)(I,"calculateMaxRight"),(0,g.K2)(J,"sortedSwimlanesArray"),(0,g.K2)(K,"evolveFramePositioned"),(0,g.K2)(L,"isFirstFrame"),(0,g.K2)(M,"hasSourceFrame"),(0,g.K2)(N,"findBoxByFrame"),(0,g.K2)(O,"findBoxByLineIndex"),(0,g.K2)(P,"decidePositionRelation"),(0,g.K2)(Q,"evolveRelationPositioned");var R={[j]:G,[l]:P},S={[k]:K,[m]:Q};function T(a,b){let c=R[b.$kind];if(null==c)return[];let d=c(a,b);return g.Rm.debug("decided events",d),d}function U(a,b){let c=b.reduce((a,b)=>{let c=S[b.$kind];return null==c?a:c(a,b)},a);return g.Rm.debug("evolve events",{state:a,newState:c,events:b}),c}function V(a,b){let c=T(a,b);return U(a,c)}(0,g.K2)(T,"decide"),(0,g.K2)(U,"evolve"),(0,g.K2)(V,"dispatch");var W={getConfig:s,setOptions:n,getOptions:o,clear:p,setAccTitle:f.SV,getAccTitle:f.iN,getAccDescription:f.m7,setAccDescription:f.EI,setDiagramTitle:f.ke,getDiagramTitle:f.ab,setAst:v,getDiagramProps:x,getState:u},X={parse:(0,g.K2)(async a=>{let b=await (0,h.qg)("eventmodeling",a);g.Rm.debug(b),W.setAst(b),(0,d.S)(b,W)},"parse")},Y=(0,f.D7)(),Z=Y?.eventmodeling;function $(a,b){return c=>{let d=c.swimlane.y+b.swimlanePadding,e=a.append("g").attr("class","em-box");e.append("rect").attr("x",c.x).attr("y",d).attr("rx","3").attr("width",c.dimension.width).attr("height",c.dimension.height).attr("stroke",c.visual.stroke).attr("fill",c.visual.fill),e.append("foreignObject").attr("x",c.x+b.boxPadding).attr("y",d+10).attr("width",c.dimension.width-2*b.boxPadding).attr("height",c.dimension.height-2*b.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(c.text)}}function _(a,b){return a>b}function aa(a,b,c,d){return e=>{let f,h,i=e.sourceBox.swimlane.y+b.swimlanePadding,j=e.targetBox.swimlane.y+b.swimlanePadding,k=_(i,j),l=e.sourceBox.x+2*e.sourceBox.dimension.width/3,m=e.targetBox.x+e.targetBox.dimension.width/3;g.Rm.debug(`rendering relation up=${k} for `,{sourceBox:e.sourceBox,targetBox:e.targetBox}),k?(f=i,h=j+e.targetBox.dimension.height):(f=i+e.sourceBox.dimension.height,h=j);let n=d.emRelationStroke??e.visual.stroke;a.append("path").attr("class","em-relation").attr("fill",e.visual.fill).attr("stroke",n).attr("stroke-width","1").attr("marker-end",`url(#${c})`).attr("d",`M${l} ${f} L${m} ${h}`)}}function ab(a,b,c,d){return e=>{let f=a.append("g").attr("class","em-swimlane"),g=d.emSwimlaneBackgroundOdd??"rgb(250,250,250)",h=d.emSwimlaneBackgroundStroke??"rgb(240,240,240)";f.append("rect").attr("x",0).attr("y",e.y).attr("rx","3").attr("width",b+c.swimlanePadding).attr("height",e.height).attr("fill",g).attr("stroke",h),f.append("text").attr("font-weight",c.swimlaneTextFontWeight).attr("x",30).attr("y",e.y+30).text(e.label)}}(0,g.K2)($,"renderD3Box"),(0,g.K2)(_,"dirUpwards"),(0,g.K2)(aa,"renderD3Relation"),(0,g.K2)(ab,"renderD3Swimlane");var ac={parser:X,db:W,renderer:{draw:(0,g.K2)(function(a,b,c,d){if(g.Rm.debug("in eventmodeling renderer",a+"\n","id:",b,c),!Z)throw Error("EventModeling config not found");let e=d.db,{themeVariables:h,eventmodeling:j}=(0,f.D7)(),k=(0,i.Ltv)(`[id="${b}"]`),l=e.getDiagramProps(),m=e.getState(),n=`em-arrowhead-${b}`,o=h.emArrowhead??"#000000";m.sortedSwimlanesArray.forEach(ab(k,m.maxR,l,h)),m.boxes.forEach($(k,l)),m.relations.forEach(aa(k,l,n,h)),k.append("defs").append("marker").attr("id",n).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",o),(0,f.mj)(void 0,k,j?.padding??30,j?.useMaxWidth)},"draw")},styles:(0,g.K2)(a=>"","getStyles")}}};
@@ -0,0 +1 @@
1
+ "use strict";exports.id=7068,exports.ids=[7068],exports.modules={37068:(a,b,c)=>{c.d(b,{createPacketServices:()=>d.$});var d=c(38506);c(56308)}};
@@ -0,0 +1,24 @@
1
+ "use strict";exports.id=7118,exports.ids=[7118],exports.modules={54422:(a,b,c)=>{function d(a,b){a.accDescr&&b.setAccDescription?.(a.accDescr),a.accTitle&&b.setAccTitle?.(a.accTitle),a.title&&b.setDiagramTitle?.(a.title)}c.d(b,{S:()=>d}),(0,c(57440).K2)(d,"populateCommonDb")},57118:(a,b,c)=>{c.d(b,{diagram:()=>r});var d=c(1389),e=c(54422),f=c(38371),g=c(10340),h=c(57440),i=c(20383),j=g.UI.packet,k=class{constructor(){this.packet=[],this.setAccTitle=g.SV,this.getAccTitle=g.iN,this.setDiagramTitle=g.ke,this.getDiagramTitle=g.ab,this.getAccDescription=g.m7,this.setAccDescription=g.EI}static{(0,h.K2)(this,"PacketDB")}getConfig(){let a=(0,f.$t)({...j,...(0,g.zj)().packet});return a.showBits&&(a.paddingY+=10),a}getPacket(){return this.packet}pushWord(a){a.length>0&&this.packet.push(a)}clear(){(0,g.IU)(),this.packet=[]}},l=(0,h.K2)((a,b)=>{(0,e.S)(a,b);let c=-1,d=[],f=1,{bitsPerRow:g}=b.getConfig();for(let{start:e,end:i,bits:j,label:k}of a.blocks){if(void 0!==e&&void 0!==i&&i<e)throw Error(`Packet block ${e} - ${i} is invalid. End must be greater than start.`);if((e??=c+1)!==c+1)throw Error(`Packet block ${e} - ${i??e} is not contiguous. It should start from ${c+1}.`);if(0===j)throw Error(`Packet block ${e} is invalid. Cannot have a zero bit field.`);for(i??=e+(j??1)-1,j??=i-e+1,c=i,h.Rm.debug(`Packet block ${e} - ${c} with label ${k}`);d.length<=g+1&&b.getPacket().length<1e4;){let[a,c]=m({start:e,end:i,bits:j,label:k},f,g);if(d.push(a),a.end+1===f*g&&(b.pushWord(d),d=[],f++),!c)break;({start:e,end:i,bits:j,label:k}=c)}}b.pushWord(d)},"populate"),m=(0,h.K2)((a,b,c)=>{if(void 0===a.start)throw Error("start should have been set during first phase");if(void 0===a.end)throw Error("end should have been set during first phase");if(a.start>a.end)throw Error(`Block start ${a.start} is greater than block end ${a.end}.`);if(a.end+1<=b*c)return[a,void 0];let d=b*c-1,e=b*c;return[{start:a.start,end:d,label:a.label,bits:d-a.start},{start:e,end:a.end,label:a.label,bits:a.end-e}]},"getNextFittingBlock"),n={parser:{yy:void 0},parse:(0,h.K2)(async a=>{let b=await (0,i.qg)("packet",a),c=n.parser?.yy;if(!(c instanceof k))throw Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");h.Rm.debug(b),l(b,c)},"parse")},o=(0,h.K2)((a,b,c,e)=>{let f=e.db,h=f.getConfig(),{rowHeight:i,paddingY:j,bitWidth:k,bitsPerRow:l}=h,m=f.getPacket(),n=f.getDiagramTitle(),o=i+j,q=o*(m.length+1)-(n?0:i),r=k*l+2,s=(0,d.D)(b);for(let[a,b]of(s.attr("viewBox",`0 0 ${r} ${q}`),(0,g.a$)(s,q,r,h.useMaxWidth),m.entries()))p(s,b,a,h);s.append("text").text(n).attr("x",r/2).attr("y",q-o/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),p=(0,h.K2)((a,b,c,{rowHeight:d,paddingX:e,paddingY:f,bitWidth:g,bitsPerRow:h,showBits:i})=>{let j=a.append("g"),k=c*(d+f)+f;for(let a of b){let b=a.start%h*g+1,c=(a.end-a.start+1)*g-e;if(j.append("rect").attr("x",b).attr("y",k).attr("width",c).attr("height",d).attr("class","packetBlock"),j.append("text").attr("x",b+c/2).attr("y",k+d/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(a.label),!i)continue;let f=a.end===a.start,l=k-2;j.append("text").attr("x",b+(f?c/2:0)).attr("y",l).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",f?"middle":"start").text(a.start),f||j.append("text").attr("x",b+c).attr("y",l).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(a.end)}},"drawWord"),q={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},r={parser:n,get db(){return new k},renderer:{draw:o},styles:(0,h.K2)(({packet:a}={})=>{let b=(0,f.$t)(q,a);return`
2
+ .packetByte {
3
+ font-size: ${b.byteFontSize};
4
+ }
5
+ .packetByte.start {
6
+ fill: ${b.startByteColor};
7
+ }
8
+ .packetByte.end {
9
+ fill: ${b.endByteColor};
10
+ }
11
+ .packetLabel {
12
+ fill: ${b.labelColor};
13
+ font-size: ${b.labelFontSize};
14
+ }
15
+ .packetTitle {
16
+ fill: ${b.titleColor};
17
+ font-size: ${b.titleFontSize};
18
+ }
19
+ .packetBlock {
20
+ stroke: ${b.blockStrokeColor};
21
+ stroke-width: ${b.blockStrokeWidth};
22
+ fill: ${b.blockFillColor};
23
+ }
24
+ `},"styles")}}};
@@ -0,0 +1,166 @@
1
+ "use strict";exports.id=7242,exports.ids=[7242],exports.modules={21460:(a,b,c)=>{c.d(b,{P:()=>f});var d=c(10340),e=c(57440),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")},35836:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(57440),e=c(31314),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")},37242:(a,b,c)=>{c.d(b,{diagram:()=>x});var d=c(48492),e=c(88446),f=c(66106),g=c(35836),h=c(21460),i=c(16919);c(27318),c(49601);var j=c(80713);c(53724),c(40716),c(63660);var k=c(38371),l=c(10340),m=c(57440),n=c(31314),o=c(75374),p=c(78186),q=c(16499),r=class{constructor(){this.vertexCounter=0,this.config=(0,l.D7)(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=l.SV,this.setAccDescription=l.EI,this.setDiagramTitle=l.ke,this.getAccTitle=l.iN,this.getAccDescription=l.m7,this.getDiagramTitle=l.ab,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{(0,m.K2)(this,"FlowDB")}sanitizeText(a){return l.Y2.sanitizeText(a,this.config)}sanitizeNodeLabelType(a){switch(a){case"markdown":case"string":case"text":return a;default:return"markdown"}}setDiagramId(a){this.diagramId=a}lookUpDomId(a){for(let b of this.vertices.values())if(b.id===a)return this.diagramId?`${this.diagramId}-${b.domId}`:b.domId;return this.diagramId?`${this.diagramId}-${a}`:a}addVertex(a,b,c,d,f,g,h={},i){let k,n;if(!a||0===a.trim().length)return;if(void 0!==i){let a;a=i.includes("\n")?i+"\n":"{\n"+i+"\n}",k=(0,e.H)(a,{schema:e.r})}let o=this.edges.find(b=>b.id===a);if(o){let a=k;a?.animate!==void 0&&(o.animate=a.animate),a?.animation!==void 0&&(o.animation=a.animation),a?.curve!==void 0&&(o.interpolate=a.curve);return}let p=this.vertices.get(a);if(void 0===p&&(void 0===b&&void 0===c&&null!=d&&m.Rm.warn(`Style applied to unknown node "${a}". This may indicate a typo. The node will be created automatically.`),p={id:a,labelType:"text",domId:"flowchart-"+a+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(a,p)),this.vertexCounter++,void 0!==b?(this.config=(0,l.D7)(),n=this.sanitizeText(b.text.trim()),p.labelType=b.type,n.startsWith('"')&&n.endsWith('"')&&(n=n.substring(1,n.length-1)),p.text=n):void 0===p.text&&(p.text=a),void 0!==c&&(p.type=c),null!=d&&d.forEach(a=>{p.styles.push(a)}),null!=f&&f.forEach(a=>{p.classes.push(a)}),void 0!==g&&(p.dir=g),void 0===p.props?p.props=h:void 0!==h&&Object.assign(p.props,h),void 0!==k){if(k.shape){if(k.shape!==k.shape.toLowerCase()||k.shape.includes("_"))throw Error(`No such shape: ${k.shape}. Shape names should be lowercase.`);if(!(0,j.aP)(k.shape))throw Error(`No such shape: ${k.shape}.`);p.type=k?.shape}k?.label&&(p.text=k?.label,p.labelType=this.sanitizeNodeLabelType(k?.labelType)),k?.icon&&(p.icon=k?.icon,k.label?.trim()||p.text!==a||(p.text="")),k?.form&&(p.form=k?.form),k?.pos&&(p.pos=k?.pos),k?.img&&(p.img=k?.img,k.label?.trim()||p.text!==a||(p.text="")),k?.constraint&&(p.constraint=k.constraint),k.w&&(p.assetWidth=Number(k.w)),k.h&&(p.assetHeight=Number(k.h))}}addSingleLink(a,b,c,d){let e={start:a,end:b,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};m.Rm.info("abc78 Got edge...",e);let f=c.text;if(void 0!==f&&(e.text=this.sanitizeText(f.text.trim()),e.text.startsWith('"')&&e.text.endsWith('"')&&(e.text=e.text.substring(1,e.text.length-1)),e.labelType=this.sanitizeNodeLabelType(f.type)),void 0!==c&&(e.type=c.type,e.stroke=c.stroke,e.length=c.length>10?10:c.length),d&&!this.edges.some(a=>a.id===d))e.id=d,e.isUserDefinedId=!0;else{let a=this.edges.filter(a=>a.start===e.start&&a.end===e.end);0===a.length?e.id=(0,k.rY)(e.start,e.end,{counter:0,prefix:"L"}):e.id=(0,k.rY)(e.start,e.end,{counter:a.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))m.Rm.info("Pushing edge..."),this.edges.push(e);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
2
+
3
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
4
+ You cannot set this config via configuration inside the diagram as it is a secure config.
5
+ You have to call mermaid.initialize.`)}isLinkData(a){return null!==a&&"object"==typeof a&&"id"in a&&"string"==typeof a.id}addLink(a,b,c){let d=this.isLinkData(c)?c.id.replace("@",""):void 0;for(let e of(m.Rm.info("addLink",a,b,d),a))for(let f of b){let g=e===a[a.length-1],h=f===b[0];g&&h?this.addSingleLink(e,f,c,d):this.addSingleLink(e,f,c,void 0)}}updateLinkInterpolate(a,b){a.forEach(a=>{"default"===a?this.edges.defaultInterpolate=b:this.edges[a].interpolate=b})}updateLink(a,b){a.forEach(a=>{if("number"==typeof a&&a>=this.edges.length)throw Error(`The index ${a} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);"default"===a?this.edges.defaultStyle=b:(this.edges[a].style=b,(this.edges[a]?.style?.length??0)>0&&!this.edges[a]?.style?.some(a=>a?.startsWith("fill"))&&this.edges[a]?.style?.push("fill:none"))})}addClass(a,b){let c=b.join().replace(/\\,/g,"\xa7\xa7\xa7").replace(/,/g,";").replace(/§§§/g,",").split(";");a.split(",").forEach(a=>{let b=this.classes.get(a);void 0===b&&(b={id:a,styles:[],textStyles:[]},this.classes.set(a,b)),null!=c&&c.forEach(a=>{if(/color/.exec(a)){let c=a.replace("fill","bgFill");b.textStyles.push(c)}b.styles.push(a)})})}setDirection(a){this.direction=a.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),"TD"===this.direction&&(this.direction="TB")}setClass(a,b){for(let c of a.split(",")){let a=this.vertices.get(c);a&&a.classes.push(b);let d=this.edges.find(a=>a.id===c);d&&d.classes.push(b);let e=this.subGraphLookup.get(c);e&&e.classes.push(b)}}setTooltip(a,b){if(void 0!==b)for(let c of(b=this.sanitizeText(b),a.split(",")))this.tooltips.set("gen-1"===this.version?this.lookUpDomId(c):c,b)}setClickFun(a,b,c){if("loose"!==(0,l.D7)().securityLevel||void 0===b)return;let d=[];if("string"==typeof c){d=c.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let a=0;a<d.length;a++){let b=d[a].trim();b.startsWith('"')&&b.endsWith('"')&&(b=b.substr(1,b.length-2)),d[a]=b}}0===d.length&&d.push(a);let e=this.vertices.get(a);e&&(e.haveCallback=!0,this.funs.push(()=>{let c=this.lookUpDomId(a),e=document.querySelector(`[id="${c}"]`);null!==e&&e.addEventListener("click",()=>{k._K.runFunc(b,...d)},!1)}))}setLink(a,b,c){a.split(",").forEach(a=>{let d=this.vertices.get(a);void 0!==d&&(d.link=k._K.formatUrl(b,this.config),d.linkTarget=c)}),this.setClass(a,"clickable")}getTooltip(a){return this.tooltips.get(a)}setClickEvent(a,b,c){a.split(",").forEach(a=>{this.setClickFun(a,b,c)}),this.setClass(a,"clickable")}bindFunctions(a){this.funs.forEach(b=>{b(a)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(a){let b=(0,f.Ck)();(0,n.Ltv)(a).select("svg").selectAll("g.node").on("mouseover",a=>{let c=(0,n.Ltv)(a.currentTarget),d=c.attr("title");if(null===d)return;let e=a.currentTarget?.getBoundingClientRect();b.transition().duration(200).style("opacity",".9"),b.text(c.attr("title")).style("left",window.scrollX+e.left+(e.right-e.left)/2+"px").style("top",window.scrollY+e.bottom+"px"),b.html(o.A.sanitize(d)),c.classed("hover",!0)}).on("mouseout",a=>{b.transition().duration(500).style("opacity",0),(0,n.Ltv)(a.currentTarget).classed("hover",!1)})}clear(a="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=a,this.config=(0,l.D7)(),(0,l.IU)()}setGen(a){this.version=a||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(a,b,c){let d=a.text.trim(),e=c.text;a===c&&/\s/.exec(c.text)&&(d=void 0);let f=(0,m.K2)(a=>{let b,c={boolean:{},number:{},string:{}},d=[];return{nodeList:a.filter(function(a){let e=typeof a;return a.stmt&&"dir"===a.stmt?(b=a.value,!1):""!==a.trim()&&(e in c?!c[e].hasOwnProperty(a)&&(c[e][a]=!0):!d.includes(a)&&d.push(a))}),dir:b}},"uniq")(b.flat()),g=f.nodeList,h=f.dir,i=(0,l.D7)().flowchart??{};if(h=h??(i.inheritDir?this.getDirection()??(0,l.D7)().direction??void 0:void 0),"gen-1"===this.version)for(let a=0;a<g.length;a++)g[a]=this.lookUpDomId(g[a]);d=d??"subGraph"+this.subCount,e=e||"",e=this.sanitizeText(e),this.subCount=this.subCount+1;let j={id:d,nodes:g,title:e.trim(),classes:[],dir:h,labelType:this.sanitizeNodeLabelType(c?.type)};return m.Rm.info("Adding",j.id,j.nodes,j.dir),j.nodes=this.makeUniq(j,this.subGraphs).nodes,this.subGraphs.push(j),this.subGraphLookup.set(d,j),d}getPosForId(a){for(let[b,c]of this.subGraphs.entries())if(c.id===a)return b;return -1}indexNodes2(a,b){let c=this.subGraphs[b].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=b,this.subGraphs[b].id===a)return{result:!0,count:0};let d=0,e=1;for(;d<c.length;){let b=this.getPosForId(c[d]);if(b>=0){let c=this.indexNodes2(a,b);if(c.result)return{result:!0,count:e+c.count};e+=c.count}d+=1}return{result:!1,count:e}}getDepthFirstPos(a){return this.posCrossRef[a]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return!!this.firstGraphFlag&&(this.firstGraphFlag=!1,!0)}destructStartLink(a){let b=a.trim(),c="arrow_open";switch(b[0]){case"<":c="arrow_point",b=b.slice(1);break;case"x":c="arrow_cross",b=b.slice(1);break;case"o":c="arrow_circle",b=b.slice(1)}let d="normal";return b.includes("=")&&(d="thick"),b.includes(".")&&(d="dotted"),{type:c,stroke:d}}countChar(a,b){let c=b.length,d=0;for(let e=0;e<c;++e)b[e]===a&&++d;return d}destructEndLink(a){let b=a.trim(),c=b.slice(0,-1),d="arrow_open";switch(b.slice(-1)){case"x":d="arrow_cross",b.startsWith("x")&&(d="double_"+d,c=c.slice(1));break;case">":d="arrow_point",b.startsWith("<")&&(d="double_"+d,c=c.slice(1));break;case"o":d="arrow_circle",b.startsWith("o")&&(d="double_"+d,c=c.slice(1))}let e="normal",f=c.length-1;c.startsWith("=")&&(e="thick"),c.startsWith("~")&&(e="invisible");let g=this.countChar(".",c);return g&&(e="dotted",f=g),{type:d,stroke:e,length:f}}destructLink(a,b){let c,d=this.destructEndLink(a);if(b){if((c=this.destructStartLink(b)).stroke!==d.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===c.type)c.type=d.type;else{if(c.type!==d.type)return{type:"INVALID",stroke:"INVALID"};c.type="double_"+c.type}return"double_arrow"===c.type&&(c.type="double_arrow_point"),c.length=d.length,c}return d}exists(a,b){for(let c of a)if(c.nodes.includes(b))return!0;return!1}makeUniq(a,b){let c=[];return a.nodes.forEach((d,e)=>{this.exists(b,d)||c.push(a.nodes[e])}),{nodes:c}}getTypeFromVertex(a){if(a.img)return"imageSquare";if(a.icon)return"circle"===a.form?"iconCircle":"square"===a.form?"iconSquare":"rounded"===a.form?"iconRounded":"icon";switch(a.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return a.type}}findNode(a,b){return a.find(a=>a.id===b)}destructEdgeType(a){let b="none",c="arrow_point";switch(a){case"arrow_point":case"arrow_circle":case"arrow_cross":c=a;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":c=b=a.replace("double_","")}return{arrowTypeStart:b,arrowTypeEnd:c}}addNodeFromVertex(a,b,c,d,e,f){let g=c.get(a.id),h=d.get(a.id)??!1,i=this.findNode(b,a.id);if(i)i.cssStyles=a.styles,i.cssCompiledStyles=this.getCompiledStyles(a.classes),i.cssClasses=a.classes.join(" ");else{let c={id:a.id,label:a.text,labelType:a.labelType,labelStyle:"",parentId:g,padding:e.flowchart?.padding||8,cssStyles:a.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...a.classes]),cssClasses:"default "+a.classes.join(" "),dir:a.dir,domId:a.domId,look:f,link:a.link,linkTarget:a.linkTarget,tooltip:this.getTooltip(a.id),icon:a.icon,pos:a.pos,img:a.img,assetWidth:a.assetWidth,assetHeight:a.assetHeight,constraint:a.constraint};h?b.push({...c,isGroup:!0,shape:"rect"}):b.push({...c,isGroup:!1,shape:this.getTypeFromVertex(a)})}}getCompiledStyles(a){let b=[];for(let c of a){let a=this.classes.get(c);a?.styles&&(b=[...b,...a.styles??[]].map(a=>a.trim())),a?.textStyles&&(b=[...b,...a.textStyles??[]].map(a=>a.trim()))}return b}getData(){let a=(0,l.D7)(),b=[],c=[],d=this.getSubGraphs(),e=new Map,f=new Map;for(let a=d.length-1;a>=0;a--){let b=d[a];for(let a of(b.nodes.length>0&&f.set(b.id,!0),b.nodes))e.set(a,b.id)}for(let c=d.length-1;c>=0;c--){let f=d[c];b.push({id:f.id,label:f.title,labelStyle:"",labelType:f.labelType,parentId:e.get(f.id),padding:8,cssCompiledStyles:this.getCompiledStyles(f.classes),cssClasses:f.classes.join(" "),shape:"rect",dir:f.dir,isGroup:!0,look:a.look})}this.getVertices().forEach(c=>{this.addNodeFromVertex(c,b,e,f,a,a.look||"classic")});let g=this.getEdges();return g.forEach((b,d)=>{let{arrowTypeStart:e,arrowTypeEnd:f}=this.destructEdgeType(b.type),h=[...g.defaultStyle??[]];b.style&&h.push(...b.style);let i={id:(0,k.rY)(b.start,b.end,{counter:d,prefix:"L"},b.id),isUserDefinedId:b.isUserDefinedId,start:b.start,end:b.end,type:b.type??"normal",label:b.text,labelType:b.labelType,labelpos:"c",thickness:b.stroke,minlen:b.length,classes:b?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:b?.stroke==="invisible"||b?.type==="arrow_open"?"none":e,arrowTypeEnd:b?.stroke==="invisible"||b?.type==="arrow_open"?"none":f,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(b.classes),labelStyle:h,style:h,pattern:b.stroke,look:a.look,animate:b.animate,animation:b.animation,curve:b.interpolate||this.edges.defaultInterpolate||a.flowchart?.curve};c.push(i)}),{nodes:b,edges:c,other:{},config:a}}defaultConfig(){return l.ME.flowchart}},s=(0,m.K2)(function(a,b){return b.db.getClasses()},"getClasses"),t=(0,m.K2)(async function(a,b,c,d){m.Rm.info("REF0:"),m.Rm.info("Drawing state diagram (v2)",b);let{securityLevel:e,flowchart:f,layout:j}=(0,l.D7)();d.db.setDiagramId(b),m.Rm.debug("Before getData: ");let n=d.db.getData();m.Rm.debug("Data: ",n);let o=(0,g.A)(b,e),p=d.db.getDirection();n.type=d.type,n.layoutAlgorithm=(0,i.q7)(j),"dagre"===n.layoutAlgorithm&&"elk"===j&&m.Rm.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),n.direction=p,n.nodeSpacing=f?.nodeSpacing||50,n.rankSpacing=f?.rankSpacing||50,n.markers=["point","circle","cross"],n.diagramId=b,m.Rm.debug("REF1:",n),await (0,i.XX)(n,o);let q=n.config.flowchart?.diagramPadding??8;k._K.insertTitle(o,"flowchartTitleText",f?.titleTopMargin||0,d.db.getDiagramTitle()),(0,h.P)(o,q,"flowchart",f?.useMaxWidth||!1)},"draw"),u=function(){var a=(0,m.K2)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[1,4],c=[1,3],d=[1,5],e=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],f=[2,2],g=[1,13],h=[1,14],i=[1,15],j=[1,16],k=[1,23],l=[1,25],n=[1,26],o=[1,27],p=[1,50],q=[1,49],r=[1,29],s=[1,30],t=[1,31],u=[1,32],v=[1,33],w=[1,45],x=[1,47],y=[1,43],z=[1,48],A=[1,44],B=[1,51],C=[1,46],D=[1,52],E=[1,53],F=[1,34],G=[1,35],H=[1,36],I=[1,37],J=[1,38],K=[1,58],L=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],M=[1,62],N=[1,61],O=[1,63],P=[8,9,11,75,77,78],Q=[1,79],R=[1,92],S=[1,97],T=[1,96],U=[1,93],V=[1,89],W=[1,95],X=[1,91],Y=[1,98],Z=[1,94],$=[1,99],_=[1,90],aa=[8,9,10,11,40,75,77,78],ab=[8,9,10,11,40,46,75,77,78],ac=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ad=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],ae=[44,60,89,102,105,106,109,111,114,115,116],af=[1,122],ag=[1,123],ah=[1,125],ai=[1,124],aj=[44,60,62,74,89,102,105,106,109,111,114,115,116],ak=[1,134],al=[1,148],am=[1,149],an=[1,150],ao=[1,151],ap=[1,136],aq=[1,138],ar=[1,142],as=[1,143],at=[1,144],au=[1,145],av=[1,146],aw=[1,147],ax=[1,152],ay=[1,153],az=[1,132],aA=[1,133],aB=[1,140],aC=[1,135],aD=[1,139],aE=[1,137],aF=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],aG=[1,155],aH=[1,157],aI=[8,9,11],aJ=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],aK=[1,177],aL=[1,173],aM=[1,174],aN=[1,178],aO=[1,175],aP=[1,176],aQ=[77,116,119],aR=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],aS=[10,106],aT=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],aU=[1,248],aV=[1,246],aW=[1,250],aX=[1,244],aY=[1,245],aZ=[1,247],a$=[1,249],a_=[1,251],a0=[1,269],a1=[8,9,11,106],a2=[8,9,10,11,60,84,105,106,109,110,111,112],a3={trace:(0,m.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:(0,m.K2)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 2:case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 3:(!Array.isArray(f[h])||f[h].length>0)&&f[h-1].push(f[h]),this.$=f[h-1];break;case 4:case 183:case 44:case 54:case 76:case 181:this.$=f[h];break;case 11:d.setDirection("TB"),this.$="TB";break;case 12:d.setDirection(f[h-1]),this.$=f[h-1];break;case 27:this.$=f[h-1].nodes;break;case 33:this.$=d.addSubGraph(f[h-6],f[h-1],f[h-4]);break;case 34:this.$=d.addSubGraph(f[h-3],f[h-1],f[h-3]);break;case 35:this.$=d.addSubGraph(void 0,f[h-1],void 0);break;case 37:this.$=f[h].trim(),d.setAccTitle(this.$);break;case 38:case 39:this.$=f[h].trim(),d.setAccDescription(this.$);break;case 43:case 133:this.$=f[h-1]+f[h];break;case 45:d.addVertex(f[h-1][f[h-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,f[h]),d.addLink(f[h-3].stmt,f[h-1],f[h-2]),this.$={stmt:f[h-1],nodes:f[h-1].concat(f[h-3].nodes)};break;case 46:d.addLink(f[h-2].stmt,f[h],f[h-1]),this.$={stmt:f[h],nodes:f[h].concat(f[h-2].nodes)};break;case 47:d.addLink(f[h-3].stmt,f[h-1],f[h-2]),this.$={stmt:f[h-1],nodes:f[h-1].concat(f[h-3].nodes)};break;case 48:this.$={stmt:f[h-1],nodes:f[h-1]};break;case 49:d.addVertex(f[h-1][f[h-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,f[h]),this.$={stmt:f[h-1],nodes:f[h-1],shapeData:f[h]};break;case 50:this.$={stmt:f[h],nodes:f[h]};break;case 51:case 128:case 130:this.$=[f[h]];break;case 52:d.addVertex(f[h-5][f[h-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,f[h-4]),this.$=f[h-5].concat(f[h]);break;case 53:this.$=f[h-4].concat(f[h]);break;case 55:this.$=f[h-2],d.setClass(f[h-2],f[h]);break;case 56:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"square");break;case 57:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"doublecircle");break;case 58:this.$=f[h-5],d.addVertex(f[h-5],f[h-2],"circle");break;case 59:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"ellipse");break;case 60:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"stadium");break;case 61:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"subroutine");break;case 62:this.$=f[h-7],d.addVertex(f[h-7],f[h-1],"rect",void 0,void 0,void 0,Object.fromEntries([[f[h-5],f[h-3]]]));break;case 63:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"cylinder");break;case 64:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"round");break;case 65:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"diamond");break;case 66:this.$=f[h-5],d.addVertex(f[h-5],f[h-2],"hexagon");break;case 67:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"odd");break;case 68:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"trapezoid");break;case 69:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"inv_trapezoid");break;case 70:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"lean_right");break;case 71:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"lean_left");break;case 72:this.$=f[h],d.addVertex(f[h]);break;case 73:f[h-1].text=f[h],this.$=f[h-1];break;case 74:case 75:f[h-2].text=f[h-1],this.$=f[h-2];break;case 77:var i=d.destructLink(f[h],f[h-2]);this.$={type:i.type,stroke:i.stroke,length:i.length,text:f[h-1]};break;case 78:var i=d.destructLink(f[h],f[h-2]);this.$={type:i.type,stroke:i.stroke,length:i.length,text:f[h-1],id:f[h-3]};break;case 79:case 86:case 101:case 103:this.$={text:f[h],type:"text"};break;case 80:case 87:case 102:this.$={text:f[h-1].text+""+f[h],type:f[h-1].type};break;case 81:case 88:this.$={text:f[h],type:"string"};break;case 82:case 89:case 104:this.$={text:f[h],type:"markdown"};break;case 83:var i=d.destructLink(f[h]);this.$={type:i.type,stroke:i.stroke,length:i.length};break;case 84:var i=d.destructLink(f[h]);this.$={type:i.type,stroke:i.stroke,length:i.length,id:f[h-1]};break;case 85:this.$=f[h-1];break;case 105:this.$=f[h-4],d.addClass(f[h-2],f[h]);break;case 106:this.$=f[h-4],d.setClass(f[h-2],f[h]);break;case 107:case 115:this.$=f[h-1],d.setClickEvent(f[h-1],f[h]);break;case 108:case 116:this.$=f[h-3],d.setClickEvent(f[h-3],f[h-2]),d.setTooltip(f[h-3],f[h]);break;case 109:this.$=f[h-2],d.setClickEvent(f[h-2],f[h-1],f[h]);break;case 110:this.$=f[h-4],d.setClickEvent(f[h-4],f[h-3],f[h-2]),d.setTooltip(f[h-4],f[h]);break;case 111:this.$=f[h-2],d.setLink(f[h-2],f[h]);break;case 112:this.$=f[h-4],d.setLink(f[h-4],f[h-2]),d.setTooltip(f[h-4],f[h]);break;case 113:this.$=f[h-4],d.setLink(f[h-4],f[h-2],f[h]);break;case 114:this.$=f[h-6],d.setLink(f[h-6],f[h-4],f[h]),d.setTooltip(f[h-6],f[h-2]);break;case 117:this.$=f[h-1],d.setLink(f[h-1],f[h]);break;case 118:this.$=f[h-3],d.setLink(f[h-3],f[h-2]),d.setTooltip(f[h-3],f[h]);break;case 119:this.$=f[h-3],d.setLink(f[h-3],f[h-2],f[h]);break;case 120:this.$=f[h-5],d.setLink(f[h-5],f[h-4],f[h]),d.setTooltip(f[h-5],f[h-2]);break;case 121:this.$=f[h-4],d.addVertex(f[h-2],void 0,void 0,f[h]);break;case 122:this.$=f[h-4],d.updateLink([f[h-2]],f[h]);break;case 123:this.$=f[h-4],d.updateLink(f[h-2],f[h]);break;case 124:this.$=f[h-8],d.updateLinkInterpolate([f[h-6]],f[h-2]),d.updateLink([f[h-6]],f[h]);break;case 125:this.$=f[h-8],d.updateLinkInterpolate(f[h-6],f[h-2]),d.updateLink(f[h-6],f[h]);break;case 126:this.$=f[h-6],d.updateLinkInterpolate([f[h-4]],f[h]);break;case 127:this.$=f[h-6],d.updateLinkInterpolate(f[h-4],f[h]);break;case 129:case 131:f[h-2].push(f[h]),this.$=f[h-2];break;case 182:case 184:this.$=f[h-1]+""+f[h];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"}}},"anonymous"),table:[{3:1,4:2,9:b,10:c,12:d},{1:[3]},a(e,f,{5:6}),{4:7,9:b,10:c,12:d},{4:8,9:b,10:c,12:d},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:g,9:h,10:i,11:j,20:17,22:18,23:19,24:20,25:21,26:22,27:k,33:24,34:l,36:n,38:o,42:28,43:39,44:p,45:40,47:41,60:q,84:r,85:s,86:t,87:u,88:v,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E,121:F,122:G,123:H,124:I,125:J},a(e,[2,9]),a(e,[2,10]),a(e,[2,11]),{8:[1,55],9:[1,56],10:K,15:54,18:57},a(L,[2,3]),a(L,[2,4]),a(L,[2,5]),a(L,[2,6]),a(L,[2,7]),a(L,[2,8]),{8:M,9:N,11:O,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:M,9:N,11:O,21:68},{8:M,9:N,11:O,21:69},{8:M,9:N,11:O,21:70},{8:M,9:N,11:O,21:71},{8:M,9:N,11:O,21:72},{8:M,9:N,10:[1,73],11:O,21:74},a(L,[2,36]),{35:[1,75]},{37:[1,76]},a(L,[2,39]),a(P,[2,50],{18:77,39:78,10:K,40:Q}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:R,44:S,60:T,80:[1,87],89:U,95:[1,84],97:[1,85],101:86,105:V,106:W,109:X,111:Y,114:Z,115:$,116:_,120:88},a(L,[2,185]),a(L,[2,186]),a(L,[2,187]),a(L,[2,188]),a(L,[2,189]),a(aa,[2,51]),a(aa,[2,54],{46:[1,100]}),a(ab,[2,72],{113:113,29:[1,101],44:p,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:q,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:w,102:x,105:y,106:z,109:A,111:B,114:C,115:D,116:E}),a(ac,[2,181]),a(ac,[2,142]),a(ac,[2,143]),a(ac,[2,144]),a(ac,[2,145]),a(ac,[2,146]),a(ac,[2,147]),a(ac,[2,148]),a(ac,[2,149]),a(ac,[2,150]),a(ac,[2,151]),a(ac,[2,152]),a(e,[2,12]),a(e,[2,18]),a(e,[2,19]),{9:[1,114]},a(ad,[2,26],{18:115,10:K}),a(L,[2,27]),{42:116,43:39,44:p,45:40,47:41,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},a(L,[2,40]),a(L,[2,41]),a(L,[2,42]),a(ae,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:af,81:ag,116:ah,119:ai},{75:[1,126],77:[1,127]},a(aj,[2,83]),a(L,[2,28]),a(L,[2,29]),a(L,[2,30]),a(L,[2,31]),a(L,[2,32]),{10:ak,12:al,14:am,27:an,28:128,32:ao,44:ap,60:aq,75:ar,80:[1,130],81:[1,131],83:141,84:as,85:at,86:au,87:av,88:aw,89:ax,90:ay,91:129,105:az,109:aA,111:aB,114:aC,115:aD,116:aE},a(aF,f,{5:154}),a(L,[2,37]),a(L,[2,38]),a(P,[2,48],{44:aG}),a(P,[2,49],{18:156,10:K,40:aH}),a(aa,[2,44]),{44:p,47:158,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},{102:[1,159],103:160,105:[1,161]},{44:p,47:162,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},{44:p,47:163,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},a(aI,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},a(aI,[2,115],{120:168,10:[1,167],14:R,44:S,60:T,89:U,105:V,106:W,109:X,111:Y,114:Z,115:$,116:_}),a(aI,[2,117],{10:[1,169]}),a(aJ,[2,183]),a(aJ,[2,170]),a(aJ,[2,171]),a(aJ,[2,172]),a(aJ,[2,173]),a(aJ,[2,174]),a(aJ,[2,175]),a(aJ,[2,176]),a(aJ,[2,177]),a(aJ,[2,178]),a(aJ,[2,179]),a(aJ,[2,180]),{44:p,47:170,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},{30:171,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:179,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:181,50:[1,180],67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:182,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:183,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:184,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{109:[1,185]},{30:186,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:187,65:[1,188],67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:189,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:190,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:191,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},a(ac,[2,182]),a(e,[2,20]),a(ad,[2,25]),a(P,[2,46],{39:192,18:193,10:K,40:Q}),a(ae,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{77:[1,197],79:198,116:ah,119:ai},a(aQ,[2,79]),a(aQ,[2,81]),a(aQ,[2,82]),a(aQ,[2,168]),a(aQ,[2,169]),{76:199,79:121,80:af,81:ag,116:ah,119:ai},a(aj,[2,84]),{8:M,9:N,10:ak,11:O,12:al,14:am,21:201,27:an,29:[1,200],32:ao,44:ap,60:aq,75:ar,83:141,84:as,85:at,86:au,87:av,88:aw,89:ax,90:ay,91:202,105:az,109:aA,111:aB,114:aC,115:aD,116:aE},a(aR,[2,101]),a(aR,[2,103]),a(aR,[2,104]),a(aR,[2,157]),a(aR,[2,158]),a(aR,[2,159]),a(aR,[2,160]),a(aR,[2,161]),a(aR,[2,162]),a(aR,[2,163]),a(aR,[2,164]),a(aR,[2,165]),a(aR,[2,166]),a(aR,[2,167]),a(aR,[2,90]),a(aR,[2,91]),a(aR,[2,92]),a(aR,[2,93]),a(aR,[2,94]),a(aR,[2,95]),a(aR,[2,96]),a(aR,[2,97]),a(aR,[2,98]),a(aR,[2,99]),a(aR,[2,100]),{6:11,7:12,8:g,9:h,10:i,11:j,20:17,22:18,23:19,24:20,25:21,26:22,27:k,32:[1,203],33:24,34:l,36:n,38:o,42:28,43:39,44:p,45:40,47:41,60:q,84:r,85:s,86:t,87:u,88:v,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E,121:F,122:G,123:H,124:I,125:J},{10:K,18:204},{44:[1,205]},a(aa,[2,43]),{10:[1,206],44:p,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:113,114:C,115:D,116:E},{10:[1,207]},{10:[1,208],106:[1,209]},a(aS,[2,128]),{10:[1,210],44:p,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:113,114:C,115:D,116:E},{10:[1,211],44:p,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:113,114:C,115:D,116:E},{80:[1,212]},a(aI,[2,109],{10:[1,213]}),a(aI,[2,111],{10:[1,214]}),{80:[1,215]},a(aJ,[2,184]),{80:[1,216],98:[1,217]},a(aa,[2,55],{113:113,44:p,60:q,89:w,102:x,105:y,106:z,109:A,111:B,114:C,115:D,116:E}),{31:[1,218],67:aK,82:219,116:aN,117:aO,118:aP},a(aT,[2,86]),a(aT,[2,88]),a(aT,[2,89]),a(aT,[2,153]),a(aT,[2,154]),a(aT,[2,155]),a(aT,[2,156]),{49:[1,220],67:aK,82:219,116:aN,117:aO,118:aP},{30:221,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{51:[1,222],67:aK,82:219,116:aN,117:aO,118:aP},{53:[1,223],67:aK,82:219,116:aN,117:aO,118:aP},{55:[1,224],67:aK,82:219,116:aN,117:aO,118:aP},{57:[1,225],67:aK,82:219,116:aN,117:aO,118:aP},{60:[1,226]},{64:[1,227],67:aK,82:219,116:aN,117:aO,118:aP},{66:[1,228],67:aK,82:219,116:aN,117:aO,118:aP},{30:229,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{31:[1,230],67:aK,82:219,116:aN,117:aO,118:aP},{67:aK,69:[1,231],71:[1,232],82:219,116:aN,117:aO,118:aP},{67:aK,69:[1,234],71:[1,233],82:219,116:aN,117:aO,118:aP},a(P,[2,45],{18:156,10:K,40:aH}),a(P,[2,47],{44:aG}),a(ae,[2,75]),a(ae,[2,74]),{62:[1,235],67:aK,82:219,116:aN,117:aO,118:aP},a(ae,[2,77]),a(aQ,[2,80]),{77:[1,236],79:198,116:ah,119:ai},{30:237,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},a(aF,f,{5:238}),a(aR,[2,102]),a(L,[2,35]),{43:239,44:p,45:40,47:41,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},{10:K,18:240},{10:aU,60:aV,84:aW,92:241,105:aX,107:242,108:243,109:aY,110:aZ,111:a$,112:a_},{10:aU,60:aV,84:aW,92:252,104:[1,253],105:aX,107:242,108:243,109:aY,110:aZ,111:a$,112:a_},{10:aU,60:aV,84:aW,92:254,104:[1,255],105:aX,107:242,108:243,109:aY,110:aZ,111:a$,112:a_},{105:[1,256]},{10:aU,60:aV,84:aW,92:257,105:aX,107:242,108:243,109:aY,110:aZ,111:a$,112:a_},{44:p,47:258,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},a(aI,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},a(aI,[2,116]),a(aI,[2,118],{10:[1,262]}),a(aI,[2,119]),a(ab,[2,56]),a(aT,[2,87]),a(ab,[2,57]),{51:[1,263],67:aK,82:219,116:aN,117:aO,118:aP},a(ab,[2,64]),a(ab,[2,59]),a(ab,[2,60]),a(ab,[2,61]),{109:[1,264]},a(ab,[2,63]),a(ab,[2,65]),{66:[1,265],67:aK,82:219,116:aN,117:aO,118:aP},a(ab,[2,67]),a(ab,[2,68]),a(ab,[2,70]),a(ab,[2,69]),a(ab,[2,71]),a([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),a(ae,[2,78]),{31:[1,266],67:aK,82:219,116:aN,117:aO,118:aP},{6:11,7:12,8:g,9:h,10:i,11:j,20:17,22:18,23:19,24:20,25:21,26:22,27:k,32:[1,267],33:24,34:l,36:n,38:o,42:28,43:39,44:p,45:40,47:41,60:q,84:r,85:s,86:t,87:u,88:v,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E,121:F,122:G,123:H,124:I,125:J},a(aa,[2,53]),{43:268,44:p,45:40,47:41,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},a(aI,[2,121],{106:a0}),a(a1,[2,130],{108:270,10:aU,60:aV,84:aW,105:aX,109:aY,110:aZ,111:a$,112:a_}),a(a2,[2,132]),a(a2,[2,134]),a(a2,[2,135]),a(a2,[2,136]),a(a2,[2,137]),a(a2,[2,138]),a(a2,[2,139]),a(a2,[2,140]),a(a2,[2,141]),a(aI,[2,122],{106:a0}),{10:[1,271]},a(aI,[2,123],{106:a0}),{10:[1,272]},a(aS,[2,129]),a(aI,[2,105],{106:a0}),a(aI,[2,106],{113:113,44:p,60:q,89:w,102:x,105:y,106:z,109:A,111:B,114:C,115:D,116:E}),a(aI,[2,110]),a(aI,[2,112],{10:[1,273]}),a(aI,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:M,9:N,11:O,21:278},a(L,[2,34]),a(aa,[2,52]),{10:aU,60:aV,84:aW,105:aX,107:279,108:243,109:aY,110:aZ,111:a$,112:a_},a(a2,[2,133]),{14:R,44:S,60:T,89:U,101:280,105:V,106:W,109:X,111:Y,114:Z,115:$,116:_,120:88},{14:R,44:S,60:T,89:U,101:281,105:V,106:W,109:X,111:Y,114:Z,115:$,116:_,120:88},{98:[1,282]},a(aI,[2,120]),a(ab,[2,58]),{30:283,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},a(ab,[2,66]),a(aF,f,{5:284}),a(a1,[2,131],{108:270,10:aU,60:aV,84:aW,105:aX,109:aY,110:aZ,111:a$,112:a_}),a(aI,[2,126],{120:168,10:[1,285],14:R,44:S,60:T,89:U,105:V,106:W,109:X,111:Y,114:Z,115:$,116:_}),a(aI,[2,127],{120:168,10:[1,286],14:R,44:S,60:T,89:U,105:V,106:W,109:X,111:Y,114:Z,115:$,116:_}),a(aI,[2,114]),{31:[1,287],67:aK,82:219,116:aN,117:aO,118:aP},{6:11,7:12,8:g,9:h,10:i,11:j,20:17,22:18,23:19,24:20,25:21,26:22,27:k,32:[1,288],33:24,34:l,36:n,38:o,42:28,43:39,44:p,45:40,47:41,60:q,84:r,85:s,86:t,87:u,88:v,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E,121:F,122:G,123:H,124:I,125:J},{10:aU,60:aV,84:aW,92:289,105:aX,107:242,108:243,109:aY,110:aZ,111:a$,112:a_},{10:aU,60:aV,84:aW,92:290,105:aX,107:242,108:243,109:aY,110:aZ,111:a$,112:a_},a(ab,[2,62]),a(L,[2,33]),a(aI,[2,124],{106:a0}),a(aI,[2,125],{106:a0})],defaultActions:{},parseError:(0,m.K2)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,m.K2)(function(a){var b=this,c=[0],d=[],e=[null],f=[],g=this.table,h="",i=0,j=0,k=0,l=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,m.K2)(function(a){c.length=c.length-2*a,e.length=e.length-a,f.length=f.length-a},"popStack"),(0,m.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 "+(i+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(i+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):(j=n.yyleng,h=n.yytext,i=n.yylineno,q=n.yylloc,k>0&&k--);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,j,i,o,w[1],e,f].concat(l))))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 a4(){this.yy={}}return a3.lexer={EOF:1,parseError:(0,m.K2)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,m.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,m.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,m.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,m.K2)(function(){return this._more=!0,this},"more"),reject:(0,m.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,m.K2)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,m.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,m.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,m.K2)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,m.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,m.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,m.K2)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,m.K2)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,m.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,m.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,m.K2)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,m.K2)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,m.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,m.K2)(function(a,b,c,d){switch(c){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 12:case 14:case 17:case 20:case 23:case 33:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),b.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:return b.yytext=b.yytext.replace(/\n\s*/g,"<br/>"),40;case 11:return 40;case 13:this.begin("callbackname");break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 18:return 96;case 19:return"MD_STR";case 21:this.begin("md_string");break;case 22:return"STR";case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 34:return 88;case 35:case 36:case 37:return a.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:case 41:case 42:case 43:return 98;case 44:return this.popState(),13;case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:return this.popState(),14;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 125;case 60:return 78;case 61:return 105;case 62:case 103:return 111;case 63:return 46;case 64:return 60;case 65:case 104:return 44;case 66:return 8;case 67:return 106;case 68:case 102:return 115;case 69:case 72:case 75:return this.popState(),77;case 70:return this.pushState("edgeText"),75;case 71:case 74:case 77:return 119;case 73:return this.pushState("thickEdgeText"),75;case 76:return this.pushState("dottedEdgeText"),75;case 78:return 77;case 79:return this.popState(),53;case 80:case 116:return"TEXT";case 81:return this.pushState("ellipseText"),52;case 82:return this.popState(),55;case 83:return this.pushState("text"),54;case 84:return this.popState(),57;case 85:return this.pushState("text"),56;case 86:return 58;case 87:return this.pushState("text"),67;case 88:return this.popState(),64;case 89:return this.pushState("text"),63;case 90:return this.popState(),49;case 91:return this.pushState("text"),48;case 92:return this.popState(),69;case 93:return this.popState(),71;case 94:return 117;case 95:return this.pushState("trapText"),68;case 96:return this.pushState("trapText"),70;case 97:return 118;case 98:return 67;case 99:return 90;case 100:return"SEP";case 101:return 89;case 105:return 109;case 106:return 114;case 107:return 116;case 108:return this.popState(),62;case 109:return this.pushState("text"),62;case 110:return this.popState(),51;case 111:return this.pushState("text"),50;case 112:return this.popState(),31;case 113:return this.pushState("text"),29;case 114:return this.popState(),66;case 115:return this.pushState("text"),65;case 117:return"QUOTE";case 118:return 9;case 119:return 10;case 120:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeData:{rules:[8,11,12,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackargs:{rules:[17,18,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackname:{rules:[14,15,16,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},href:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},click:{rules:[21,24,33,34,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dottedEdgeText:{rules:[21,24,75,77,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},thickEdgeText:{rules:[21,24,72,74,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},edgeText:{rules:[21,24,69,71,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},trapText:{rules:[21,24,78,81,83,85,89,91,92,93,94,95,96,109,111,113,115],inclusive:!1},ellipseText:{rules:[21,24,78,79,80,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},text:{rules:[21,24,78,81,82,83,84,85,88,89,90,91,95,96,108,109,110,111,112,113,114,115,116],inclusive:!1},vertex:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr:{rules:[3,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_title:{rules:[1,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},md_string:{rules:[19,20,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},string:{rules:[21,22,23,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,73,75,76,78,81,83,85,86,87,89,91,95,96,97,98,99,100,101,102,103,104,105,106,107,109,111,113,115,117,118,119,120],inclusive:!0}}},(0,m.K2)(a4,"Parser"),a4.prototype=a3,a3.Parser=a4,new a4}();u.parser=u;var v=Object.assign({},u);v.parse=a=>{let b=a.replace(/}\s*\n/g,"}\n");return u.parse(b)};var w=(0,m.K2)((a,b)=>{let c=p.A,d=c(a,"r"),e=c(a,"g"),f=c(a,"b");return q.A(d,e,f,b)},"fade"),x={parser:v,get db(){return new r},renderer:{getClasses:s,draw:t},styles:(0,m.K2)(a=>`.label {
6
+ font-family: ${a.fontFamily};
7
+ color: ${a.nodeTextColor||a.textColor};
8
+ }
9
+ .cluster-label text {
10
+ fill: ${a.titleColor};
11
+ }
12
+ .cluster-label span {
13
+ color: ${a.titleColor};
14
+ }
15
+ .cluster-label span p {
16
+ background-color: transparent;
17
+ }
18
+
19
+ .label text,span {
20
+ fill: ${a.nodeTextColor||a.textColor};
21
+ color: ${a.nodeTextColor||a.textColor};
22
+ }
23
+
24
+ .node rect,
25
+ .node circle,
26
+ .node ellipse,
27
+ .node polygon,
28
+ .node path {
29
+ fill: ${a.mainBkg};
30
+ stroke: ${a.nodeBorder};
31
+ stroke-width: ${a.strokeWidth??1}px;
32
+ }
33
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
34
+ text-anchor: middle;
35
+ }
36
+ // .flowchart-label .text-outer-tspan {
37
+ // text-anchor: middle;
38
+ // }
39
+ // .flowchart-label .text-inner-tspan {
40
+ // text-anchor: start;
41
+ // }
42
+
43
+ .node .katex path {
44
+ fill: #000;
45
+ stroke: #000;
46
+ stroke-width: 1px;
47
+ }
48
+
49
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
50
+ text-align: center;
51
+ }
52
+ .node.clickable {
53
+ cursor: pointer;
54
+ }
55
+
56
+
57
+ .root .anchor path {
58
+ fill: ${a.lineColor} !important;
59
+ stroke-width: 0;
60
+ stroke: ${a.lineColor};
61
+ }
62
+
63
+ .arrowheadPath {
64
+ fill: ${a.arrowheadColor};
65
+ }
66
+
67
+ .edgePath .path {
68
+ stroke: ${a.lineColor};
69
+ stroke-width: ${a.strokeWidth??2}px;
70
+ }
71
+
72
+ .flowchart-link {
73
+ stroke: ${a.lineColor};
74
+ fill: none;
75
+ }
76
+
77
+ .edgeLabel {
78
+ background-color: ${a.edgeLabelBackground};
79
+ p {
80
+ background-color: ${a.edgeLabelBackground};
81
+ }
82
+ rect {
83
+ opacity: 0.5;
84
+ background-color: ${a.edgeLabelBackground};
85
+ fill: ${a.edgeLabelBackground};
86
+ }
87
+ text-align: center;
88
+ }
89
+
90
+ /* For html labels only */
91
+ .labelBkg {
92
+ background-color: ${w(a.edgeLabelBackground,.5)};
93
+ // background-color:
94
+ }
95
+
96
+ .cluster rect {
97
+ fill: ${a.clusterBkg};
98
+ stroke: ${a.clusterBorder};
99
+ stroke-width: 1px;
100
+ }
101
+
102
+ .cluster text {
103
+ fill: ${a.titleColor};
104
+ }
105
+
106
+ .cluster span {
107
+ color: ${a.titleColor};
108
+ }
109
+ /* .cluster div {
110
+ color: ${a.titleColor};
111
+ } */
112
+
113
+ div.mermaidTooltip {
114
+ position: absolute;
115
+ text-align: center;
116
+ max-width: 200px;
117
+ padding: 2px;
118
+ font-family: ${a.fontFamily};
119
+ font-size: 12px;
120
+ background: ${a.tertiaryColor};
121
+ border: 1px solid ${a.border2};
122
+ border-radius: 2px;
123
+ pointer-events: none;
124
+ z-index: 100;
125
+ }
126
+
127
+ .flowchartTitleText {
128
+ text-anchor: middle;
129
+ font-size: 18px;
130
+ fill: ${a.textColor};
131
+ }
132
+
133
+ rect.text {
134
+ fill: none;
135
+ stroke-width: 0;
136
+ }
137
+
138
+ .icon-shape, .image-shape {
139
+ background-color: ${a.edgeLabelBackground};
140
+ p {
141
+ background-color: ${a.edgeLabelBackground};
142
+ padding: 2px;
143
+ }
144
+ .label rect {
145
+ opacity: 0.5;
146
+ background-color: ${a.edgeLabelBackground};
147
+ fill: ${a.edgeLabelBackground};
148
+ }
149
+ text-align: center;
150
+ }
151
+ ${(0,d.o)()}
152
+ `,"getStyles"),init:(0,m.K2)(a=>{a.flowchart||(a.flowchart={}),a.layout&&(0,l.XV)({layout:a.layout}),a.flowchart.arrowMarkerAbsolute=a.arrowMarkerAbsolute,(0,l.XV)({flowchart:{arrowMarkerAbsolute:a.arrowMarkerAbsolute}})},"init")}},48492:(a,b,c)=>{c.d(b,{o:()=>d});var d=(0,c(57440).K2)(()=>`
153
+ /* Font Awesome icon styling - consolidated */
154
+ .label-icon {
155
+ display: inline-block;
156
+ height: 1em;
157
+ overflow: visible;
158
+ vertical-align: -0.125em;
159
+ }
160
+
161
+ .node .label-icon path {
162
+ fill: currentColor;
163
+ stroke: revert;
164
+ stroke-width: revert;
165
+ }
166
+ `,"getIconStyles")},66106:(a,b,c)=>{c.d(b,{CP:()=>l,Ck:()=>o,HT:()=>n,PB:()=>m,aC:()=>k,lC:()=>i,m:()=>j,tk:()=>h});var d=c(10340),e=c(57440),f=c(29555),g=c(31314),h=(0,e.K2)((a,b)=>{let c=a.append("rect");if(c.attr("x",b.x),c.attr("y",b.y),c.attr("fill",b.fill),c.attr("stroke",b.stroke),c.attr("width",b.width),c.attr("height",b.height),b.name&&c.attr("name",b.name),b.rx&&c.attr("rx",b.rx),b.ry&&c.attr("ry",b.ry),void 0!==b.attrs)for(let a in b.attrs)c.attr(a,b.attrs[a]);return b.class&&c.attr("class",b.class),c},"drawRect"),i=(0,e.K2)((a,b)=>{h(a,{x:b.startx,y:b.starty,width:b.stopx-b.startx,height:b.stopy-b.starty,fill:b.fill,stroke:b.stroke,class:"rect"}).lower()},"drawBackgroundRect"),j=(0,e.K2)((a,b)=>{let c=b.text.replace(d.H1," "),e=a.append("text");e.attr("x",b.x),e.attr("y",b.y),e.attr("class","legend"),e.style("text-anchor",b.anchor),b.class&&e.attr("class",b.class);let f=e.append("tspan");return f.attr("x",b.x+2*b.textMargin),f.text(c),e},"drawText"),k=(0,e.K2)((a,b,c,d)=>{let e=a.append("image");e.attr("x",b),e.attr("y",c);let g=(0,f.J)(d);e.attr("xlink:href",g)},"drawImage"),l=(0,e.K2)((a,b,c,d)=>{let e=a.append("use");e.attr("x",b),e.attr("y",c);let g=(0,f.J)(d);e.attr("xlink:href",`#${g}`)},"drawEmbeddedImage"),m=(0,e.K2)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),n=(0,e.K2)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),o=(0,e.K2)(()=>{let a=(0,g.Ltv)(".mermaidTooltip");return a.empty()&&(a=(0,g.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),a},"createTooltip")},78186:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(58338),e=c(92986);let f=(a,b)=>d.A.lang.round(e.A.parse(a)[b])}};
@@ -0,0 +1 @@
1
+ "use strict";exports.id=7315,exports.ids=[7315],exports.modules={77315:(a,b,c)=>{c.d(b,{createPacketServices:()=>d.$});var d=c(27877);c(67019)}};