sparkecoder 0.1.44 → 0.1.46

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 (184) hide show
  1. package/README.md +1 -1
  2. package/dist/agent/index.d.ts +2 -2
  3. package/dist/agent/index.js +153 -4
  4. package/dist/agent/index.js.map +1 -1
  5. package/dist/cli.js +209 -22
  6. package/dist/cli.js.map +1 -1
  7. package/dist/db/index.js +11 -3
  8. package/dist/db/index.js.map +1 -1
  9. package/dist/{index-D2eLXP9V.d.ts → index-DJ5qNs1Z.d.ts} +9 -5
  10. package/dist/index.d.ts +3 -3
  11. package/dist/index.js +210 -21
  12. package/dist/index.js.map +1 -1
  13. package/dist/{search-D3Wtf7TJ.d.ts → search-BOYIUmDp.d.ts} +1 -1
  14. package/dist/server/index.js +208 -21
  15. package/dist/server/index.js.map +1 -1
  16. package/dist/tools/index.d.ts +2 -2
  17. package/dist/tools/index.js +11 -3
  18. package/dist/tools/index.js.map +1 -1
  19. package/package.json +1 -1
  20. package/web/.next/BUILD_ID +1 -1
  21. package/web/.next/standalone/web/.next/BUILD_ID +1 -1
  22. package/web/.next/standalone/web/.next/build-manifest.json +2 -2
  23. package/web/.next/standalone/web/.next/prerender-manifest.json +3 -3
  24. package/web/.next/standalone/web/.next/server/app/(main)/page.js.nft.json +1 -1
  25. package/web/.next/standalone/web/.next/server/app/(main)/page_client-reference-manifest.js +1 -1
  26. package/web/.next/standalone/web/.next/server/app/(main)/session/[id]/page.js.nft.json +1 -1
  27. package/web/.next/standalone/web/.next/server/app/(main)/session/[id]/page_client-reference-manifest.js +1 -1
  28. package/web/.next/standalone/web/.next/server/app/_global-error.html +2 -2
  29. package/web/.next/standalone/web/.next/server/app/_global-error.rsc +1 -1
  30. package/web/.next/standalone/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  31. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  32. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  33. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  34. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  35. package/web/.next/standalone/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  36. package/web/.next/standalone/web/.next/server/app/_not-found.html +1 -1
  37. package/web/.next/standalone/web/.next/server/app/_not-found.rsc +3 -3
  38. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
  39. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  40. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
  41. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  42. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  43. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  44. package/web/.next/standalone/web/.next/server/app/docs/installation/page_client-reference-manifest.js +1 -1
  45. package/web/.next/standalone/web/.next/server/app/docs/installation.html +2 -2
  46. package/web/.next/standalone/web/.next/server/app/docs/installation.rsc +4 -4
  47. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_full.segment.rsc +4 -4
  48. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_head.segment.rsc +1 -1
  49. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_index.segment.rsc +3 -3
  50. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_tree.segment.rsc +2 -2
  51. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation/__PAGE__.segment.rsc +2 -2
  52. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation.segment.rsc +1 -1
  53. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs.segment.rsc +2 -2
  54. package/web/.next/standalone/web/.next/server/app/docs/page_client-reference-manifest.js +1 -1
  55. package/web/.next/standalone/web/.next/server/app/docs/skills/page_client-reference-manifest.js +1 -1
  56. package/web/.next/standalone/web/.next/server/app/docs/skills.html +2 -2
  57. package/web/.next/standalone/web/.next/server/app/docs/skills.rsc +4 -4
  58. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_full.segment.rsc +4 -4
  59. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_head.segment.rsc +1 -1
  60. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_index.segment.rsc +3 -3
  61. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_tree.segment.rsc +2 -2
  62. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills/__PAGE__.segment.rsc +1 -1
  63. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills.segment.rsc +1 -1
  64. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs.segment.rsc +2 -2
  65. package/web/.next/standalone/web/.next/server/app/docs/tools/page_client-reference-manifest.js +1 -1
  66. package/web/.next/standalone/web/.next/server/app/docs/tools.html +2 -2
  67. package/web/.next/standalone/web/.next/server/app/docs/tools.rsc +4 -4
  68. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_full.segment.rsc +4 -4
  69. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_head.segment.rsc +1 -1
  70. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_index.segment.rsc +3 -3
  71. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_tree.segment.rsc +2 -2
  72. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools/__PAGE__.segment.rsc +2 -2
  73. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools.segment.rsc +1 -1
  74. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs.segment.rsc +2 -2
  75. package/web/.next/standalone/web/.next/server/app/docs.html +2 -2
  76. package/web/.next/standalone/web/.next/server/app/docs.rsc +4 -4
  77. package/web/.next/standalone/web/.next/server/app/docs.segments/_full.segment.rsc +4 -4
  78. package/web/.next/standalone/web/.next/server/app/docs.segments/_head.segment.rsc +1 -1
  79. package/web/.next/standalone/web/.next/server/app/docs.segments/_index.segment.rsc +3 -3
  80. package/web/.next/standalone/web/.next/server/app/docs.segments/_tree.segment.rsc +2 -2
  81. package/web/.next/standalone/web/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +2 -2
  82. package/web/.next/standalone/web/.next/server/app/docs.segments/docs.segment.rsc +2 -2
  83. package/web/.next/standalone/web/.next/server/app/embed/[id]/page.js.nft.json +1 -1
  84. package/web/.next/standalone/web/.next/server/app/embed/[id]/page_client-reference-manifest.js +1 -1
  85. package/web/.next/standalone/web/.next/server/app/index.html +1 -1
  86. package/web/.next/standalone/web/.next/server/app/index.rsc +5 -5
  87. package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p/__PAGE__.segment.rsc +2 -2
  88. package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p.segment.rsc +2 -2
  89. package/web/.next/standalone/web/.next/server/app/index.segments/_full.segment.rsc +5 -5
  90. package/web/.next/standalone/web/.next/server/app/index.segments/_head.segment.rsc +1 -1
  91. package/web/.next/standalone/web/.next/server/app/index.segments/_index.segment.rsc +3 -3
  92. package/web/.next/standalone/web/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  93. package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__36edac7c._.js +1 -1
  94. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_85c176b8._.js → 2374f_13da7b2a._.js} +1 -1
  95. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_3eca1553._.js → 2374f_1de2f628._.js} +1 -1
  96. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_8b8baaa3._.js → 2374f_2bfcd3a2._.js} +1 -1
  97. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_0146c9df._.js → 2374f_40c1da73._.js} +1 -1
  98. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_b30bed04._.js → 2374f_41d07cce._.js} +1 -1
  99. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_4d1accac._.js → 2374f_6d8e5e94._.js} +1 -1
  100. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_c99180da._.js → 2374f_88aa1671._.js} +1 -1
  101. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_147b1db0._.js → 2374f_9f2fae06._.js} +1 -1
  102. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_98432ce4._.js → 2374f_ac79ddf4._.js} +1 -1
  103. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_36dd81aa._.js → 2374f_c8f8a326._.js} +1 -1
  104. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_bcffd98c._.js → 2374f_dd21a4e9._.js} +1 -1
  105. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_dde5cdd9._.js → 2374f_e5142825._.js} +1 -1
  106. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_4b3676c4._.js → 2374f_ec658806._.js} +1 -1
  107. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_f5998fca._.js → 2374f_f3c65774._.js} +1 -1
  108. package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__43405ad6._.js +3 -0
  109. package/web/.next/standalone/web/.next/server/chunks/ssr/{[root-of-the-server]__adf39cf8._.js → [root-of-the-server]__a87e1c27._.js} +6 -4
  110. package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__be5e2967._.js +1 -1
  111. package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__de76483d._.js +1 -1
  112. package/web/.next/standalone/web/.next/server/chunks/ssr/{web_76f53fe7._.js → web_273500a6._.js} +2 -2
  113. package/web/.next/standalone/web/.next/server/chunks/ssr/{web_76ccf09f._.js → web_2b3a5919._.js} +2 -2
  114. package/web/.next/standalone/web/.next/server/chunks/ssr/{web_633d8a33._.js → web_329773d1._.js} +2 -2
  115. package/web/.next/standalone/web/.next/server/chunks/ssr/{web_248fc1f2._.js → web_38156da8._.js} +2 -2
  116. package/web/.next/standalone/web/.next/server/chunks/ssr/web_8305f089._.js +7 -0
  117. package/web/.next/standalone/web/.next/server/chunks/ssr/web_src_app_(main)_page_tsx_5ac4794b._.js +1 -1
  118. package/web/.next/standalone/web/.next/server/chunks/ssr/web_src_components_sessions-sidebar_tsx_92510070._.js +1 -1
  119. package/web/.next/standalone/web/.next/server/pages/404.html +1 -1
  120. package/web/.next/standalone/web/.next/server/pages/500.html +2 -2
  121. package/web/.next/standalone/web/.next/server/server-reference-manifest.js +1 -1
  122. package/web/.next/standalone/web/.next/server/server-reference-manifest.json +1 -1
  123. package/web/.next/standalone/web/.next/static/{static/chunks/194b3ed8e8d9c0e9.js → chunks/294ebe8457006bce.js} +3 -3
  124. package/web/.next/standalone/web/.next/static/chunks/{23aa98f6e3d7e0e4.js → 7e48d04fbd6dd7a6.js} +5 -3
  125. package/web/.next/standalone/web/.next/static/{static/chunks/1e9fdac31c7fd474.js → chunks/81685e5e8be4eac9.js} +3 -3
  126. package/web/.next/{static/chunks/3425251cd978da61.js → standalone/web/.next/static/chunks/8d3efc76109d2efc.js} +1 -1
  127. package/web/.next/standalone/web/.next/static/chunks/96ec96279ada0efe.js +1 -0
  128. package/web/.next/standalone/web/.next/static/chunks/b31b0765abe0c427.js +1 -0
  129. package/web/.next/standalone/web/.next/static/{static/chunks/c06faa5848e3b0b3.js → chunks/b7d722dab2a7ecc0.js} +1 -1
  130. package/web/.next/standalone/web/.next/static/chunks/cc6d43f798bbe415.js +5 -0
  131. package/web/.next/standalone/web/.next/static/chunks/de300ff10b63be85.css +1 -0
  132. package/web/.next/standalone/web/.next/static/chunks/de71e63276f488bb.js +7 -0
  133. package/web/.next/standalone/web/.next/static/{chunks/194b3ed8e8d9c0e9.js → static/chunks/294ebe8457006bce.js} +3 -3
  134. package/web/.next/standalone/web/.next/static/static/chunks/{23aa98f6e3d7e0e4.js → 7e48d04fbd6dd7a6.js} +5 -3
  135. package/web/.next/{static/chunks/1e9fdac31c7fd474.js → standalone/web/.next/static/static/chunks/81685e5e8be4eac9.js} +3 -3
  136. package/web/.next/standalone/web/.next/static/{chunks/3425251cd978da61.js → static/chunks/8d3efc76109d2efc.js} +1 -1
  137. package/web/.next/standalone/web/.next/static/static/chunks/96ec96279ada0efe.js +1 -0
  138. package/web/.next/standalone/web/.next/static/static/chunks/b31b0765abe0c427.js +1 -0
  139. package/web/.next/{static/chunks/c06faa5848e3b0b3.js → standalone/web/.next/static/static/chunks/b7d722dab2a7ecc0.js} +1 -1
  140. package/web/.next/standalone/web/.next/static/static/chunks/cc6d43f798bbe415.js +5 -0
  141. package/web/.next/standalone/web/.next/static/static/chunks/de300ff10b63be85.css +1 -0
  142. package/web/.next/standalone/web/.next/static/static/chunks/de71e63276f488bb.js +7 -0
  143. package/web/.next/standalone/web/src/app/(main)/page.tsx +2 -2
  144. package/web/.next/standalone/web/src/app/api/config/route.ts +3 -2
  145. package/web/.next/standalone/web/src/components/chat-interface.tsx +324 -37
  146. package/web/.next/standalone/web/src/components/sessions-sidebar.tsx +1 -1
  147. package/web/.next/standalone/web/src/lib/api.ts +3 -0
  148. package/web/.next/standalone/web/src/lib/config.ts +2 -1
  149. package/web/.next/static/chunks/{194b3ed8e8d9c0e9.js → 294ebe8457006bce.js} +3 -3
  150. package/web/.next/static/chunks/{23aa98f6e3d7e0e4.js → 7e48d04fbd6dd7a6.js} +5 -3
  151. package/web/.next/{standalone/web/.next/static/chunks/1e9fdac31c7fd474.js → static/chunks/81685e5e8be4eac9.js} +3 -3
  152. package/web/.next/{standalone/web/.next/static/static/chunks/3425251cd978da61.js → static/chunks/8d3efc76109d2efc.js} +1 -1
  153. package/web/.next/static/chunks/96ec96279ada0efe.js +1 -0
  154. package/web/.next/static/chunks/b31b0765abe0c427.js +1 -0
  155. package/web/.next/{standalone/web/.next/static/chunks/c06faa5848e3b0b3.js → static/chunks/b7d722dab2a7ecc0.js} +1 -1
  156. package/web/.next/static/chunks/cc6d43f798bbe415.js +5 -0
  157. package/web/.next/static/chunks/de300ff10b63be85.css +1 -0
  158. package/web/.next/static/chunks/de71e63276f488bb.js +7 -0
  159. package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__9d3fe3b4._.js +0 -3
  160. package/web/.next/standalone/web/.next/server/chunks/ssr/web_631133e0._.js +0 -7
  161. package/web/.next/standalone/web/.next/static/chunks/2110d26bc24ed542.js +0 -1
  162. package/web/.next/standalone/web/.next/static/chunks/4fe97b7866eacdcf.js +0 -7
  163. package/web/.next/standalone/web/.next/static/chunks/7c000de1a1357775.css +0 -1
  164. package/web/.next/standalone/web/.next/static/chunks/a895d50f76a48e6e.js +0 -1
  165. package/web/.next/standalone/web/.next/static/chunks/dccaa0e6b27241a5.js +0 -5
  166. package/web/.next/standalone/web/.next/static/static/chunks/2110d26bc24ed542.js +0 -1
  167. package/web/.next/standalone/web/.next/static/static/chunks/4fe97b7866eacdcf.js +0 -7
  168. package/web/.next/standalone/web/.next/static/static/chunks/7c000de1a1357775.css +0 -1
  169. package/web/.next/standalone/web/.next/static/static/chunks/a895d50f76a48e6e.js +0 -1
  170. package/web/.next/standalone/web/.next/static/static/chunks/dccaa0e6b27241a5.js +0 -5
  171. package/web/.next/static/chunks/2110d26bc24ed542.js +0 -1
  172. package/web/.next/static/chunks/4fe97b7866eacdcf.js +0 -7
  173. package/web/.next/static/chunks/7c000de1a1357775.css +0 -1
  174. package/web/.next/static/chunks/a895d50f76a48e6e.js +0 -1
  175. package/web/.next/static/chunks/dccaa0e6b27241a5.js +0 -5
  176. /package/web/.next/standalone/web/.next/static/{mUwpFRyqjpPrLQ3DS2i5G → _0-MmiObGsO5iLpf0Qgmw}/_buildManifest.js +0 -0
  177. /package/web/.next/standalone/web/.next/static/{mUwpFRyqjpPrLQ3DS2i5G → _0-MmiObGsO5iLpf0Qgmw}/_clientMiddlewareManifest.json +0 -0
  178. /package/web/.next/standalone/web/.next/static/{mUwpFRyqjpPrLQ3DS2i5G → _0-MmiObGsO5iLpf0Qgmw}/_ssgManifest.js +0 -0
  179. /package/web/.next/standalone/web/.next/static/static/{mUwpFRyqjpPrLQ3DS2i5G → _0-MmiObGsO5iLpf0Qgmw}/_buildManifest.js +0 -0
  180. /package/web/.next/standalone/web/.next/static/static/{mUwpFRyqjpPrLQ3DS2i5G → _0-MmiObGsO5iLpf0Qgmw}/_clientMiddlewareManifest.json +0 -0
  181. /package/web/.next/standalone/web/.next/static/static/{mUwpFRyqjpPrLQ3DS2i5G → _0-MmiObGsO5iLpf0Qgmw}/_ssgManifest.js +0 -0
  182. /package/web/.next/static/{mUwpFRyqjpPrLQ3DS2i5G → _0-MmiObGsO5iLpf0Qgmw}/_buildManifest.js +0 -0
  183. /package/web/.next/static/{mUwpFRyqjpPrLQ3DS2i5G → _0-MmiObGsO5iLpf0Qgmw}/_clientMiddlewareManifest.json +0 -0
  184. /package/web/.next/static/{mUwpFRyqjpPrLQ3DS2i5G → _0-MmiObGsO5iLpf0Qgmw}/_ssgManifest.js +0 -0
@@ -0,0 +1,7 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,473063,413778,509331,52283,e=>{"use strict";var t=e.i(611051),a=(0,e.i(47561).default)(Object.keys,Object),s=Object.prototype.hasOwnProperty;let r=function(e){if(!(0,t.default)(e))return a(e);var r=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&r.push(n);return r};e.s(["default",0,r],413778);var n=e.i(379963),l=e.i(195130),i=(0,n.default)(l.default,"DataView"),c=e.i(648429),o=(0,n.default)(l.default,"Promise"),d=(0,n.default)(l.default,"Set");e.s(["default",0,d],509331);var h=(0,n.default)(l.default,"WeakMap"),u=e.i(934147),m=e.i(61577),f="[object Map]",p="[object Promise]",b="[object Set]",j="[object WeakMap]",k="[object DataView]",v=(0,m.default)(i),g=(0,m.default)(c.default),x=(0,m.default)(o),y=(0,m.default)(d),P=(0,m.default)(h),w=u.default;(i&&w(new i(new ArrayBuffer(1)))!=k||c.default&&w(new c.default)!=f||o&&w(o.resolve())!=p||d&&w(new d)!=b||h&&w(new h)!=j)&&(w=function(e){var t=(0,u.default)(e),a="[object Object]"==t?e.constructor:void 0,s=a?(0,m.default)(a):"";if(s)switch(s){case v:return k;case g:return f;case x:return p;case y:return b;case P:return j}return t});let S=w;e.s(["default",0,S],52283);var _=e.i(239974),N=e.i(127724),C=e.i(211112),L=e.i(416286),T=e.i(523466),M=Object.prototype.hasOwnProperty;e.s(["default",0,function(e){if(null==e)return!0;if((0,C.default)(e)&&((0,N.default)(e)||"string"==typeof e||"function"==typeof e.splice||(0,L.default)(e)||(0,T.default)(e)||(0,_.default)(e)))return!e.length;var a=S(e);if("[object Map]"==a||"[object Set]"==a)return!e.size;if((0,t.default)(e))return!r(e).length;for(var s in e)if(M.call(e,s))return!1;return!0}],473063)},687734,e=>{"use strict";var t=e.i(209026),a=e.i(460753);e.i(492314);var s=e.i(59955),r=(0,a.__name)(e=>{let{securityLevel:a}=(0,t.getConfig2)(),r=(0,s.select)("body");if("sandbox"===a){let t=(0,s.select)(`#i${e}`),a=t.node()?.contentDocument??document;r=(0,s.select)(a.body)}return r.select(`#${e}`)},"selectSvgElement");e.s(["selectSvgElement",()=>r])},661981,e=>{"use strict";var t=(0,e.i(460753).__name)(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,a=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:a,subGraphTitleTotalMargin:t+a}},"getSubGraphTitleMargins");e.s(["getSubGraphTitleMargins",()=>t])},916048,e=>{"use strict";var t=e.i(209026),a=e.i(460753),s=(0,a.__name)(e=>{let{handDrawnSeed:a}=(0,t.getConfig2)();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:a}},"solidStateFill"),r=(0,a.__name)(e=>{let t=n([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),n=(0,a.__name)(e=>{let t=new Map;return e.forEach(e=>{let[a,s]=e.split(":");t.set(a.trim(),s?.trim())}),t},"styles2Map"),l=(0,a.__name)(e=>"color"===e||"font-size"===e||"font-family"===e||"font-weight"===e||"font-style"===e||"text-decoration"===e||"text-align"===e||"text-transform"===e||"line-height"===e||"letter-spacing"===e||"word-spacing"===e||"text-shadow"===e||"text-overflow"===e||"white-space"===e||"word-wrap"===e||"word-break"===e||"overflow-wrap"===e||"hyphens"===e,"isLabelStyle"),i=(0,a.__name)(e=>{let{stylesArray:t}=r(e),a=[],s=[],n=[],i=[];return t.forEach(e=>{let t=e[0];l(t)?a.push(e.join(":")+" !important"):(s.push(e.join(":")+" !important"),t.includes("stroke")&&n.push(e.join(":")+" !important"),"fill"===t&&i.push(e.join(":")+" !important"))}),{labelStyles:a.join(";"),nodeStyles:s.join(";"),stylesArray:t,borderStyles:n,backgroundStyles:i}},"styles2String"),c=(0,a.__name)((e,a)=>{let{themeVariables:s,handDrawnSeed:n}=(0,t.getConfig2)(),{nodeBorder:l,mainBkg:i}=s,{stylesMap:c}=r(e);return Object.assign({roughness:.7,fill:c.get("fill")||i,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:c.get("stroke")||l,seed:n,strokeWidth:c.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:o(c.get("stroke-dasharray"))},a)},"userNodeOverrides"),o=(0,a.__name)(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(1===t.length){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},"getStrokeDashArray");e.s(["compileStyles",()=>r,"isLabelStyle",()=>l,"solidStateFill",()=>s,"styles2String",()=>i,"userNodeOverrides",()=>c])},628511,e=>{"use strict";var t=e.i(537981),a=e.i(17415),s=e.i(661981),r=e.i(916048),n=e.i(284421),l=e.i(97482),i=e.i(209026),c=e.i(460753);e.i(492314);var o=e.i(604883),d=e.i(440364),h=e.i(388304),u=e.i(61507),m=e.i(938759),f=e.i(783924),p=e.i(684336),b=e.i(688559),j=e.i(36617),k=e.i(196860),v=e.i(561924),g=e.i(648570),x=e.i(46683),y=e.i(59955),P=e.i(70304),w=(0,c.__name)((e,t,a,s,r,n)=>{t.arrowTypeStart&&_(e,"start",t.arrowTypeStart,a,s,r,n),t.arrowTypeEnd&&_(e,"end",t.arrowTypeEnd,a,s,r,n)},"addEdgeMarkers"),S={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},_=(0,c.__name)((e,t,a,s,r,n,l)=>{let i=S[a];if(!i)return void c.log.warn(`Unknown arrow type: ${a}`);let o=i.type,d=`${r}_${n}-${o}${"start"===t?"Start":"End"}`;if(l&&""!==l.trim()){let a=l.replace(/[^\dA-Za-z]/g,"_"),r=`${d}_${a}`;if(!document.getElementById(r)){let e=document.getElementById(d);if(e){let t=e.cloneNode(!0);t.id=r,t.querySelectorAll("path, circle, line").forEach(e=>{e.setAttribute("stroke",l),i.fill&&e.setAttribute("fill",l)}),e.parentNode?.appendChild(t)}}e.attr(`marker-${t}`,`url(${s}#${r})`)}else e.attr(`marker-${t}`,`url(${s}#${d})`)},"addEdgeMarker"),N=new Map,C=new Map,L=(0,c.__name)(()=>{N.clear(),C.clear()},"clear"),T=(0,c.__name)(e=>e?e.reduce((e,t)=>e+";"+t,""):"","getLabelStyles"),M=(0,c.__name)(async(e,t)=>{let s,l=(0,i.evaluate)((0,i.getConfig2)().flowchart.htmlLabels),{labelStyles:o}=(0,r.styles2String)(t);t.labelStyle=o;let d=await (0,n.createText)(e,t.label,{style:t.labelStyle,useHtmlLabels:l,addSvgBackground:!0,isNode:!1});c.log.info("abc82",t,t.labelType);let h=e.insert("g").attr("class","edgeLabel"),u=h.insert("g").attr("class","label").attr("data-id",t.id);u.node().appendChild(d);let m=d.getBBox();if(l){let e=d.children[0],t=(0,y.select)(d);m=e.getBoundingClientRect(),t.attr("width",m.width),t.attr("height",m.height)}if(u.attr("transform","translate("+-m.width/2+", "+-m.height/2+")"),N.set(t.id,h),t.width=m.width,t.height=m.height,t.startLabelLeft){let r=await (0,a.createLabel_default)(t.startLabelLeft,T(t.labelStyle)),n=e.insert("g").attr("class","edgeTerminals"),l=n.insert("g").attr("class","inner");s=l.node().appendChild(r);let i=r.getBBox();l.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),C.get(t.id)||C.set(t.id,{}),C.get(t.id).startLeft=n,E(s,t.startLabelLeft)}if(t.startLabelRight){let r=await (0,a.createLabel_default)(t.startLabelRight,T(t.labelStyle)),n=e.insert("g").attr("class","edgeTerminals"),l=n.insert("g").attr("class","inner");s=n.node().appendChild(r),l.node().appendChild(r);let i=r.getBBox();l.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),C.get(t.id)||C.set(t.id,{}),C.get(t.id).startRight=n,E(s,t.startLabelRight)}if(t.endLabelLeft){let r=await (0,a.createLabel_default)(t.endLabelLeft,T(t.labelStyle)),n=e.insert("g").attr("class","edgeTerminals"),l=n.insert("g").attr("class","inner");s=l.node().appendChild(r);let i=r.getBBox();l.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),n.node().appendChild(r),C.get(t.id)||C.set(t.id,{}),C.get(t.id).endLeft=n,E(s,t.endLabelLeft)}if(t.endLabelRight){let r=await (0,a.createLabel_default)(t.endLabelRight,T(t.labelStyle)),n=e.insert("g").attr("class","edgeTerminals"),l=n.insert("g").attr("class","inner");s=l.node().appendChild(r);let i=r.getBBox();l.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),n.node().appendChild(r),C.get(t.id)||C.set(t.id,{}),C.get(t.id).endRight=n,E(s,t.endLabelRight)}return d},"insertEdgeLabel");function E(e,t){(0,i.getConfig2)().flowchart.htmlLabels&&e&&(e.style.width=9*t.length+"px",e.style.height="12px")}(0,c.__name)(E,"setTerminalWidth");var O=(0,c.__name)((e,t)=>{c.log.debug("Moving label abc88 ",e.id,e.label,N.get(e.id),t);let a=t.updatedPath?t.updatedPath:t.originalPath,r=(0,i.getConfig2)(),{subGraphTitleTotalMargin:n}=(0,s.getSubGraphTitleMargins)(r);if(e.label){let s=N.get(e.id),r=e.x,i=e.y;if(a){let s=l.utils_default.calcLabelPosition(a);c.log.debug("Moving label "+e.label+" from (",r,",",i,") to (",s.x,",",s.y,") abc88"),t.updatedPath&&(r=s.x,i=s.y)}s.attr("transform",`translate(${r}, ${i+n/2})`)}if(e.startLabelLeft){let t=C.get(e.id).startLeft,s=e.x,r=e.y;if(a){let t=l.utils_default.calcTerminalLabelPosition(10*!!e.arrowTypeStart,"start_left",a);s=t.x,r=t.y}t.attr("transform",`translate(${s}, ${r})`)}if(e.startLabelRight){let t=C.get(e.id).startRight,s=e.x,r=e.y;if(a){let t=l.utils_default.calcTerminalLabelPosition(10*!!e.arrowTypeStart,"start_right",a);s=t.x,r=t.y}t.attr("transform",`translate(${s}, ${r})`)}if(e.endLabelLeft){let t=C.get(e.id).endLeft,s=e.x,r=e.y;if(a){let t=l.utils_default.calcTerminalLabelPosition(10*!!e.arrowTypeEnd,"end_left",a);s=t.x,r=t.y}t.attr("transform",`translate(${s}, ${r})`)}if(e.endLabelRight){let t=C.get(e.id).endRight,s=e.x,r=e.y;if(a){let t=l.utils_default.calcTerminalLabelPosition(10*!!e.arrowTypeEnd,"end_right",a);s=t.x,r=t.y}t.attr("transform",`translate(${s}, ${r})`)}},"positionEdgeLabel"),R=(0,c.__name)((e,t)=>{let a=e.x,s=e.y,r=Math.abs(t.x-a),n=Math.abs(t.y-s),l=e.width/2,i=e.height/2;return r>=l||n>=i},"outsideNode"),$=(0,c.__name)((e,t,a)=>{c.log.debug(`intersection calc abc89:
2
+ outsidePoint: ${JSON.stringify(t)}
3
+ insidePoint : ${JSON.stringify(a)}
4
+ node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let s=e.x,r=e.y,n=Math.abs(s-a.x),l=e.width/2,i=a.x<t.x?l-n:l+n,o=e.height/2,d=Math.abs(t.y-a.y),h=Math.abs(t.x-a.x);if(Math.abs(r-t.y)*l>Math.abs(s-t.x)*o){let e=a.y<t.y?t.y-o-r:r-o-t.y;i=h*e/d;let s={x:a.x<t.x?a.x+i:a.x-h+i,y:a.y<t.y?a.y+d-e:a.y-d+e};return 0===i&&(s.x=t.x,s.y=t.y),0===h&&(s.x=t.x),0===d&&(s.y=t.y),c.log.debug(`abc89 top/bottom calc, Q ${d}, q ${e}, R ${h}, r ${i}`,s),s}{let e=d*(i=a.x<t.x?t.x-l-s:s-l-t.x)/h,r=a.x<t.x?a.x+h-i:a.x-h+i,n=a.y<t.y?a.y+e:a.y-e;return c.log.debug(`sides calc abc89, Q ${d}, q ${e}, R ${h}, r ${i}`,{_x:r,_y:n}),0===i&&(r=t.x,n=t.y),0===h&&(r=t.x),0===d&&(n=t.y),{x:r,y:n}}},"intersection"),z=(0,c.__name)((e,t)=>{c.log.warn("abc88 cutPathAtIntersect",e,t);let a=[],s=e[0],r=!1;return e.forEach(e=>{if(c.log.info("abc88 checking point",e,t),R(t,e)||r)c.log.warn("abc88 outside",e,s),s=e,r||a.push(e);else{let n=$(t,s,e);c.log.debug("abc88 inside",e,s,n),c.log.debug("abc88 intersection",n,t);let l=!1;a.forEach(e=>{l=l||e.x===n.x&&e.y===n.y}),a.some(e=>e.x===n.x&&e.y===n.y)?c.log.warn("abc88 no intersect",n,a):a.push(n),r=!0}}),c.log.debug("returning points",a),a},"cutPathAtIntersect");function A(e){let t=[],a=[];for(let s=1;s<e.length-1;s++){let r=e[s-1],n=e[s],l=e[s+1];r.x===n.x&&n.y===l.y&&Math.abs(n.x-l.x)>5&&Math.abs(n.y-r.y)>5?(t.push(n),a.push(s)):r.y===n.y&&n.x===l.x&&Math.abs(n.x-r.x)>5&&Math.abs(n.y-l.y)>5&&(t.push(n),a.push(s))}return{cornerPoints:t,cornerPointPositions:a}}(0,c.__name)(A,"extractCornerPoints");var D=(0,c.__name)(function(e,t,a){let s=t.x-e.x,r=t.y-e.y,n=a/Math.sqrt(s*s+r*r);return{x:t.x-n*s,y:t.y-n*r}},"findAdjacentPoint"),W=(0,c.__name)(function(e){let{cornerPointPositions:t}=A(e),a=[];for(let s=0;s<e.length;s++)if(t.includes(s)){let t=e[s-1],r=e[s+1],n=e[s],l=D(t,n,5),i=D(r,n,5),o=i.x-l.x,d=i.y-l.y;a.push(l);let h=2*Math.sqrt(2),u={x:n.x,y:n.y};Math.abs(r.x-t.x)>10&&Math.abs(r.y-t.y)>=10?(c.log.debug("Corner point fixing",Math.abs(r.x-t.x),Math.abs(r.y-t.y)),u=n.x===l.x?{x:o<0?l.x-5+h:l.x+5-h,y:d<0?l.y-h:l.y+h}:{x:o<0?l.x-h:l.x+h,y:d<0?l.y-5+h:l.y+5-h}):c.log.debug("Corner point skipping fixing",Math.abs(r.x-t.x),Math.abs(r.y-t.y)),a.push(u,i)}else a.push(e[s]);return a},"fixCorners"),B=(0,c.__name)((e,t,a)=>{let s=Array(Math.floor((e-t-a)/4)).fill("2 2").join(" ");return`0 ${t} ${s} ${a}`},"generateDashArray"),H=(0,c.__name)(function(e,a,s,n,S,_,N,C=!1){let L,T,{handDrawnSeed:M}=(0,i.getConfig2)(),E=a.points,O=!1,R=[];for(let e in a.cssCompiledStyles)(0,r.isLabelStyle)(e)||R.push(a.cssCompiledStyles[e]);c.log.debug("UIO intersect check",a.points,_.x,S.x),_.intersect&&S.intersect&&!C&&((E=E.slice(1,a.points.length-1)).unshift(S.intersect(E[0])),c.log.debug("Last point UIO",a.start,"-->",a.end,E[E.length-1],_,_.intersect(E[E.length-1])),E.push(_.intersect(E[E.length-1])));let $=btoa(JSON.stringify(E));a.toCluster&&(c.log.info("to cluster abc88",s.get(a.toCluster)),E=z(a.points,s.get(a.toCluster).node),O=!0),a.fromCluster&&(c.log.debug("from cluster abc88",s.get(a.fromCluster),JSON.stringify(E,null,2)),E=z(E.reverse(),s.get(a.fromCluster).node).reverse(),O=!0);let A=E.filter(e=>!Number.isNaN(e.y));A=W(A);let D=o.curveBasis;switch(D=d.curveLinear,a.curve){case"linear":D=d.curveLinear;break;case"basis":default:D=o.curveBasis;break;case"cardinal":D=h.curveCardinal;break;case"bumpX":D=u.curveBumpX;break;case"bumpY":D=m.curveBumpY;break;case"catmullRom":D=f.curveCatmullRom;break;case"monotoneX":D=p.curveMonotoneX;break;case"monotoneY":D=b.curveMonotoneY;break;case"natural":D=j.curveNatural;break;case"step":D=k.curveStep;break;case"stepAfter":D=v.curveStepAfter;break;case"stepBefore":D=g.curveStepBefore}let{x:H,y:U}=(0,t.getLineFunctionsWithOffset)(a),Y=(0,x.line)().x(H).y(U).curve(D);switch(a.thickness){case"normal":default:L="edge-thickness-normal";break;case"thick":L="edge-thickness-thick";break;case"invisible":L="edge-thickness-invisible"}switch(a.pattern){case"solid":default:L+=" edge-pattern-solid";break;case"dotted":L+=" edge-pattern-dotted";break;case"dashed":L+=" edge-pattern-dashed"}let q="rounded"===a.curve?I(X(A,a),5):Y(A),F=Array.isArray(a.style)?a.style:[a.style],V=F.find(e=>e?.startsWith("stroke:")),K=!1;if("handDrawn"===a.look){let t=P.default.svg(e);Object.assign([],A);let s=t.path(q,{roughness:.3,seed:M});L+=" transition";let r=(T=(0,y.select)(s).select("path").attr("id",a.id).attr("class"," "+L+(a.classes?" "+a.classes:"")).attr("style",F?F.reduce((e,t)=>e+";"+t,""):"")).attr("d");T.attr("d",r),e.node().appendChild(T.node())}else{let s=R.join(";"),r=F?F.reduce((e,t)=>e+t+";",""):"",n="";a.animate&&(n=" edge-animation-fast"),a.animation&&(n=" edge-animation-"+a.animation);let l=(s?s+";"+r+";":r)+";"+(F?F.reduce((e,t)=>e+";"+t,""):"");T=e.append("path").attr("d",q).attr("id",a.id).attr("class"," "+L+(a.classes?" "+a.classes:"")+(n??"")).attr("style",l),V=l.match(/stroke:([^;]+)/)?.[1],K=!0===a.animate||!!a.animation||s.includes("animation");let i=T.node(),c="function"==typeof i.getTotalLength?i.getTotalLength():0,o=t.markerOffsets2[a.arrowTypeStart]||0,d=t.markerOffsets2[a.arrowTypeEnd]||0;if("neo"===a.look&&!K){let e="dotted"===a.pattern||"dashed"===a.pattern?B(c,o,d):`0 ${o} ${c-o-d} ${d}`,t=`stroke-dasharray: ${e}; stroke-dashoffset: 0;`;T.attr("style",t+T.attr("style"))}}T.attr("data-edge",!0),T.attr("data-et","edge"),T.attr("data-id",a.id),T.attr("data-points",$),a.showPoints&&A.forEach(t=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",t.x).attr("cy",t.y)});let Q="";((0,i.getConfig2)().flowchart.arrowMarkerAbsolute||(0,i.getConfig2)().state.arrowMarkerAbsolute)&&(Q=(Q=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)")),c.log.info("arrowTypeStart",a.arrowTypeStart),c.log.info("arrowTypeEnd",a.arrowTypeEnd),w(T,a,Q,N,n,V);let Z=Math.floor(E.length/2),G=E[Z];l.utils_default.isLabelCoordinateInPath(G,T.attr("d"))||(O=!0);let J={};return O&&(J.updatedPath=E),J.originalPath=a.points,J},"insertEdge");function I(e,t){if(e.length<2)return"";let a="",s=e.length;for(let r=0;r<s;r++){let n=e[r],l=e[r-1],i=e[r+1];if(0===r)a+=`M${n.x},${n.y}`;else if(r===s-1)a+=`L${n.x},${n.y}`;else{let e=n.x-l.x,s=n.y-l.y,r=i.x-n.x,c=i.y-n.y,o=Math.hypot(e,s),d=Math.hypot(r,c);if(o<1e-5||d<1e-5){a+=`L${n.x},${n.y}`;continue}let h=e/o,u=s/o,m=r/d,f=c/d,p=Math.acos(Math.max(-1,Math.min(1,h*m+u*f)));if(p<1e-5||1e-5>Math.abs(Math.PI-p)){a+=`L${n.x},${n.y}`;continue}let b=Math.min(t/Math.sin(p/2),o/2,d/2),j=n.x-h*b,k=n.y-u*b,v=n.x+m*b,g=n.y+f*b;a+=`L${j},${k}Q${n.x},${n.y} ${v},${g}`}}return a}function U(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};let a=t.x-e.x,s=t.y-e.y;return{angle:Math.atan2(s,a),deltaX:a,deltaY:s}}function X(e,a){let s=e.map(e=>({...e}));if(e.length>=2&&t.markerOffsets[a.arrowTypeStart]){let r=t.markerOffsets[a.arrowTypeStart],n=e[0],{angle:l}=U(n,e[1]),i=r*Math.cos(l),c=r*Math.sin(l);s[0].x=n.x+i,s[0].y=n.y+c}let r=e.length;if(r>=2&&t.markerOffsets[a.arrowTypeEnd]){let n=t.markerOffsets[a.arrowTypeEnd],l=e[r-1],{angle:i}=U(e[r-2],l),c=n*Math.cos(i),o=n*Math.sin(i);s[r-1].x=l.x-c,s[r-1].y=l.y-o}return s}(0,c.__name)(I,"generateRoundedPath"),(0,c.__name)(U,"calculateDeltaAndAngle"),(0,c.__name)(X,"applyMarkerOffsetsToPoints");var Y=(0,c.__name)((e,t,a,s)=>{t.forEach(t=>{en[t](e,a,s)})},"insertMarkers"),q=(0,c.__name)((e,t,a)=>{c.log.trace("Making markers for ",a),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),F=(0,c.__name)((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),V=(0,c.__name)((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),K=(0,c.__name)((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),Q=(0,c.__name)((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),Z=(0,c.__name)((e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),G=(0,c.__name)((e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),J=(0,c.__name)((e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),ee=(0,c.__name)((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),et=(0,c.__name)((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),ea=(0,c.__name)((e,t,a)=>{let s=e.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),s.append("path").attr("d","M9,0 L9,18");let r=e.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),es=(0,c.__name)((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),er=(0,c.__name)((e,t,a)=>{let s=e.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),s.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let r=e.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),en={extension:q,composition:F,aggregation:V,dependency:K,lollipop:Q,point:Z,circle:G,cross:J,barb:ee,only_one:et,zero_or_one:ea,one_or_more:es,zero_or_more:er,requirement_arrow:(0,c.__name)((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
5
+ L20,10
6
+ M20,10
7
+ L0,20`)},"requirement_arrow"),requirement_contains:(0,c.__name)((e,t,a)=>{let s=e.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains")};e.s(["clear",()=>L,"insertEdge",()=>H,"insertEdgeLabel",()=>M,"markers_default",()=>Y,"positionEdgeLabel",()=>O])},364601,e=>{"use strict";var t=e.i(628511),a=e.i(17415),s=e.i(97482),r=e.i(209026),n=e.i(460753),l={common:r.common_default,getConfig:r.getConfig,insertCluster:a.insertCluster,insertEdge:t.insertEdge,insertEdgeLabel:t.insertEdgeLabel,insertMarkers:t.markers_default,insertNode:a.insertNode,interpolateToCurve:s.interpolateToCurve,labelHelper:a.labelHelper,log:n.log,positionEdgeLabel:t.positionEdgeLabel},i={},c=(0,n.__name)(e=>{for(let t of e)i[t.name]=t},"registerLayoutLoaders");(0,n.__name)(()=>{c([{name:"dagre",loader:(0,n.__name)(async()=>await e.A(635288),"loader")},{name:"cose-bilkent",loader:(0,n.__name)(async()=>await e.A(112933),"loader")}])},"registerDefaultLayoutLoaders")();var o=(0,n.__name)(async(e,t)=>{if(!(e.layoutAlgorithm in i))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);let a=i[e.layoutAlgorithm];return(await a.loader()).render(e,t,l,{algorithm:a.algorithm})},"render"),d=(0,n.__name)((e="",{fallback:t="dagre"}={})=>{if(e in i)return e;if(t in i)return n.log.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm");e.s(["getRegisteredLayoutAlgorithm",()=>d,"registerLayoutLoaders",()=>c,"render",()=>o])},819609,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"warnOnce",{enumerable:!0,get:function(){return s}});let s=e=>{}},215232,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"useMergedRef",{enumerable:!0,get:function(){return r}});let s=e.r(430878);function r(e,t){let a=(0,s.useRef)(null),r=(0,s.useRef)(null);return(0,s.useCallback)(s=>{if(null===s){let e=a.current;e&&(a.current=null,e());let t=r.current;t&&(r.current=null,t())}else e&&(a.current=n(e,s)),t&&(r.current=n(t,s))},[e,t])}function n(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let a=e(t);return"function"==typeof a?a:()=>e(null)}}("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},325203,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s={assign:function(){return c},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}};for(var r in s)Object.defineProperty(a,r,{enumerable:!0,get:s[r]});function n(e){let t={};for(let[a,s]of e.entries()){let e=t[a];void 0===e?t[a]=s:Array.isArray(e)?e.push(s):t[a]=[e,s]}return t}function l(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[a,s]of Object.entries(e))if(Array.isArray(s))for(let e of s)t.append(a,l(e));else t.set(a,l(s));return t}function c(e,...t){for(let a of t){for(let t of a.keys())e.delete(t);for(let[t,s]of a.entries())e.append(t,s)}return e}},971746,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s={formatUrl:function(){return i},formatWithValidation:function(){return o},urlObjectKeys:function(){return c}};for(var r in s)Object.defineProperty(a,r,{enumerable:!0,get:s[r]});let n=e.r(279510)._(e.r(325203)),l=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:a}=e,s=e.protocol||"",r=e.pathname||"",i=e.hash||"",c=e.query||"",o=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?o=t+e.host:a&&(o=t+(~a.indexOf(":")?`[${a}]`:a),e.port&&(o+=":"+e.port)),c&&"object"==typeof c&&(c=String(n.urlQueryToSearchParams(c)));let d=e.search||c&&`?${c}`||"";return s&&!s.endsWith(":")&&(s+=":"),e.slashes||(!s||l.test(s))&&!1!==o?(o="//"+(o||""),r&&"/"!==r[0]&&(r="/"+r)):o||(o=""),i&&"#"!==i[0]&&(i="#"+i),d&&"?"!==d[0]&&(d="?"+d),r=r.replace(/[?#]/g,encodeURIComponent),d=d.replace("#","%23"),`${s}${o}${r}${d}${i}`}let c=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function o(e){return i(e)}},309008,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s={DecodeError:function(){return j},MiddlewareNotFoundError:function(){return x},MissingStaticPage:function(){return g},NormalizeError:function(){return k},PageNotFoundError:function(){return v},SP:function(){return p},ST:function(){return b},WEB_VITALS:function(){return n},execOnce:function(){return l},getDisplayName:function(){return h},getLocationOrigin:function(){return o},getURL:function(){return d},isAbsoluteUrl:function(){return c},isResSent:function(){return u},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return m},stringifyError:function(){return y}};for(var r in s)Object.defineProperty(a,r,{enumerable:!0,get:s[r]});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function l(e){let t,a=!1;return(...s)=>(a||(a=!0,t=e(...s)),t)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,c=e=>i.test(e);function o(){let{protocol:e,hostname:t,port:a}=window.location;return`${e}//${t}${a?":"+a:""}`}function d(){let{href:e}=window.location,t=o();return e.substring(t.length)}function h(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function m(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function f(e,t){let a=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let s=await e.getInitialProps(t);if(a&&u(a))return s;if(!s)throw Object.defineProperty(Error(`"${h(e)}.getInitialProps()" should resolve to an object. But found "${s}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return s}let p="u">typeof performance,b=p&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class j extends Error{}class k extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class g extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class x extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function y(e){return JSON.stringify({message:e.message,stack:e.stack})}},868988,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"isLocalURL",{enumerable:!0,get:function(){return n}});let s=e.r(309008),r=e.r(698018);function n(e){if(!(0,s.isAbsoluteUrl)(e))return!0;try{let t=(0,s.getLocationOrigin)(),a=new URL(e,t);return a.origin===t&&(0,r.hasBasePath)(a.pathname)}catch(e){return!1}}},312491,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"errorOnce",{enumerable:!0,get:function(){return s}});let s=e=>{}},504561,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s={default:function(){return j},useLinkStatus:function(){return v}};for(var r in s)Object.defineProperty(a,r,{enumerable:!0,get:s[r]});let n=e.r(279510),l=e.r(414294),i=n._(e.r(430878)),c=e.r(971746),o=e.r(369168),d=e.r(215232),h=e.r(309008),u=e.r(869343);e.r(819609);let m=e.r(93505),f=e.r(868988),p=e.r(291544);function b(e){return"string"==typeof e?e:(0,c.formatUrl)(e)}function j(t){var a;let s,r,n,[c,j]=(0,i.useOptimistic)(m.IDLE_LINK_STATUS),v=(0,i.useRef)(null),{href:g,as:x,children:y,prefetch:P=null,passHref:w,replace:S,shallow:_,scroll:N,onClick:C,onMouseEnter:L,onTouchStart:T,legacyBehavior:M=!1,onNavigate:E,ref:O,unstable_dynamicOnHover:R,...$}=t;s=y,M&&("string"==typeof s||"number"==typeof s)&&(s=(0,l.jsx)("a",{children:s}));let z=i.default.useContext(o.AppRouterContext),A=!1!==P,D=!1!==P?null===(a=P)||"auto"===a?p.FetchStrategy.PPR:p.FetchStrategy.Full:p.FetchStrategy.PPR,{href:W,as:B}=i.default.useMemo(()=>{let e=b(g);return{href:e,as:x?b(x):e}},[g,x]);if(M){if(s?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});r=i.default.Children.only(s)}let H=M?r&&"object"==typeof r&&r.ref:O,I=i.default.useCallback(e=>(null!==z&&(v.current=(0,m.mountLinkInstance)(e,W,z,D,A,j)),()=>{v.current&&((0,m.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,m.unmountPrefetchableInstance)(e)}),[A,W,z,D,j]),U={ref:(0,d.useMergedRef)(I,H),onClick(t){M||"function"!=typeof C||C(t),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(t),!z||t.defaultPrevented||function(t,a,s,r,n,l,c){if("u">typeof window){let o,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((o=t.currentTarget.getAttribute("target"))&&"_self"!==o||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,f.isLocalURL)(a)){n&&(t.preventDefault(),location.replace(a));return}if(t.preventDefault(),c){let e=!1;if(c({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:h}=e.r(389867);i.default.startTransition(()=>{h(s||a,n?"replace":"push",l??!0,r.current)})}}(t,W,B,v,S,N,E)},onMouseEnter(e){M||"function"!=typeof L||L(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),z&&A&&(0,m.onNavigationIntent)(e.currentTarget,!0===R)},onTouchStart:function(e){M||"function"!=typeof T||T(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),z&&A&&(0,m.onNavigationIntent)(e.currentTarget,!0===R)}};return(0,h.isAbsoluteUrl)(B)?U.href=B:M&&!w&&("a"!==r.type||"href"in r.props)||(U.href=(0,u.addBasePath)(B)),n=M?i.default.cloneElement(r,U):(0,l.jsx)("a",{...$,...U,children:s}),(0,l.jsx)(k.Provider,{value:c,children:n})}e.r(312491);let k=(0,i.createContext)(m.IDLE_LINK_STATUS),v=()=>(0,i.useContext)(k);("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},356212,e=>{"use strict";var t={name:"mermaid",version:"11.12.2",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}};e.s(["package_default",()=>t])},77589,e=>{"use strict";let t=(0,e.i(292511).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["default",()=>t])},191729,772857,e=>{"use strict";let t=(0,e.i(292511).default)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["default",()=>t],191729);var a=e.i(414294),s=e.i(430878);e.i(773340);var r=e.i(309945),n=Symbol("radix.slottable");function l(e){return s.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===n}var i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var n,i;let c,o,d,h=(i=n=`Primitive.${t}`,(c=s.forwardRef((e,t)=>{let{children:a,...n}=e;if(s.isValidElement(a)){var l;let e,i,c=(l=a,(i=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(i=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),o=function(e,t){let a={...t};for(let s in t){let r=e[s],n=t[s];/^on[A-Z]/.test(s)?r&&n?a[s]=(...e)=>{let t=n(...e);return r(...e),t}:r&&(a[s]=r):"style"===s?a[s]={...r,...n}:"className"===s&&(a[s]=[r,n].filter(Boolean).join(" "))}return{...e,...a}}(n,a.props);return a.type!==s.Fragment&&(o.ref=t?(0,r.composeRefs)(t,c):c),s.cloneElement(a,o)}return s.Children.count(a)>1?s.Children.only(null):null})).displayName=`${i}.SlotClone`,o=c,(d=s.forwardRef((e,t)=>{let{children:r,...n}=e,i=s.Children.toArray(r),c=i.find(l);if(c){let e=c.props.children,r=i.map(t=>t!==c?t:s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null);return(0,a.jsx)(o,{...n,ref:t,children:s.isValidElement(e)?s.cloneElement(e,void 0,r):null})}return(0,a.jsx)(o,{...n,ref:t,children:r})})).displayName=`${n}.Slot`,d),u=s.forwardRef((e,s)=>{let{asChild:r,...n}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(r?h:t,{...n,ref:s})});return u.displayName=`Primitive.${t}`,{...e,[t]:u}},{}),c=e.i(395509),o=e.i(897462),d=e.i(542899),h=e.i(995945),u=e.i(992421),m=e.i(241416),f="ScrollArea",[p,b]=function(e,t=[]){let r=[],n=()=>{let t=r.map(e=>s.createContext(e));return function(a){let r=a?.[e]||t;return s.useMemo(()=>({[`__scope${e}`]:{...a,[e]:r}}),[a,r])}};return n.scopeName=e,[function(t,n){let l=s.createContext(n),i=r.length;r=[...r,n];let c=t=>{let{scope:r,children:n,...c}=t,o=r?.[e]?.[i]||l,d=s.useMemo(()=>c,Object.values(c));return(0,a.jsx)(o.Provider,{value:d,children:n})};return c.displayName=t+"Provider",[c,function(a,r){let c=r?.[e]?.[i]||l,o=s.useContext(c);if(o)return o;if(void 0!==n)return n;throw Error(`\`${a}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let a=()=>{let a=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=a.reduce((t,{useScope:a,scopeName:s})=>{let r=a(e)[`__scope${s}`];return{...t,...r}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return a.scopeName=t.scopeName,a}(n,...t)]}(f),[j,k]=p(f),v=s.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:l="hover",dir:c,scrollHideDelay:o=600,...h}=e,[u,m]=s.useState(null),[f,p]=s.useState(null),[b,k]=s.useState(null),[v,g]=s.useState(null),[x,y]=s.useState(null),[P,w]=s.useState(0),[S,_]=s.useState(0),[N,C]=s.useState(!1),[L,T]=s.useState(!1),M=(0,r.useComposedRefs)(t,e=>m(e)),E=(0,d.useDirection)(c);return(0,a.jsx)(j,{scope:n,type:l,dir:E,scrollHideDelay:o,scrollArea:u,viewport:f,onViewportChange:p,content:b,onContentChange:k,scrollbarX:v,onScrollbarXChange:g,scrollbarXEnabled:N,onScrollbarXEnabledChange:C,scrollbarY:x,onScrollbarYChange:y,scrollbarYEnabled:L,onScrollbarYEnabledChange:T,onCornerWidthChange:w,onCornerHeightChange:_,children:(0,a.jsx)(i.div,{dir:E,...h,ref:M,style:{position:"relative","--radix-scroll-area-corner-width":P+"px","--radix-scroll-area-corner-height":S+"px",...e.style}})})});v.displayName=f;var g="ScrollAreaViewport",x=s.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:l,nonce:c,...o}=e,d=k(g,n),h=s.useRef(null),u=(0,r.useComposedRefs)(t,h,d.onViewportChange);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:c}),(0,a.jsx)(i.div,{"data-radix-scroll-area-viewport":"",...o,ref:u,style:{overflowX:d.scrollbarXEnabled?"scroll":"hidden",overflowY:d.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,a.jsx)("div",{ref:d.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});x.displayName=g;var y="ScrollAreaScrollbar",P=s.forwardRef((e,t)=>{let{forceMount:r,...n}=e,l=k(y,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:c}=l,o="horizontal"===e.orientation;return s.useEffect(()=>(o?i(!0):c(!0),()=>{o?i(!1):c(!1)}),[o,i,c]),"hover"===l.type?(0,a.jsx)(w,{...n,ref:t,forceMount:r}):"scroll"===l.type?(0,a.jsx)(S,{...n,ref:t,forceMount:r}):"auto"===l.type?(0,a.jsx)(_,{...n,ref:t,forceMount:r}):"always"===l.type?(0,a.jsx)(N,{...n,ref:t}):null});P.displayName=y;var w=s.forwardRef((e,t)=>{let{forceMount:r,...n}=e,l=k(y,e.__scopeScrollArea),[i,o]=s.useState(!1);return s.useEffect(()=>{let e=l.scrollArea,t=0;if(e){let a=()=>{window.clearTimeout(t),o(!0)},s=()=>{t=window.setTimeout(()=>o(!1),l.scrollHideDelay)};return e.addEventListener("pointerenter",a),e.addEventListener("pointerleave",s),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",a),e.removeEventListener("pointerleave",s)}}},[l.scrollArea,l.scrollHideDelay]),(0,a.jsx)(c.Presence,{present:r||i,children:(0,a.jsx)(_,{"data-state":i?"visible":"hidden",...n,ref:t})})}),S=s.forwardRef((e,t)=>{var r;let{forceMount:n,...l}=e,i=k(y,e.__scopeScrollArea),o="horizontal"===e.orientation,d=Y(()=>u("SCROLL_END"),100),[h,u]=(r={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},s.useReducer((e,t)=>r[e][t]??e,"hidden"));return s.useEffect(()=>{if("idle"===h){let e=window.setTimeout(()=>u("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(e)}},[h,i.scrollHideDelay,u]),s.useEffect(()=>{let e=i.viewport,t=o?"scrollLeft":"scrollTop";if(e){let a=e[t],s=()=>{let s=e[t];a!==s&&(u("SCROLL"),d()),a=s};return e.addEventListener("scroll",s),()=>e.removeEventListener("scroll",s)}},[i.viewport,o,u,d]),(0,a.jsx)(c.Presence,{present:n||"hidden"!==h,children:(0,a.jsx)(N,{"data-state":"hidden"===h?"hidden":"visible",...l,ref:t,onPointerEnter:(0,m.composeEventHandlers)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,m.composeEventHandlers)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),_=s.forwardRef((e,t)=>{let r=k(y,e.__scopeScrollArea),{forceMount:n,...l}=e,[i,o]=s.useState(!1),d="horizontal"===e.orientation,h=Y(()=>{if(r.viewport){let e=r.viewport.offsetWidth<r.viewport.scrollWidth,t=r.viewport.offsetHeight<r.viewport.scrollHeight;o(d?e:t)}},10);return q(r.viewport,h),q(r.content,h),(0,a.jsx)(c.Presence,{present:n||i,children:(0,a.jsx)(N,{"data-state":i?"visible":"hidden",...l,ref:t})})}),N=s.forwardRef((e,t)=>{let{orientation:r="vertical",...n}=e,l=k(y,e.__scopeScrollArea),i=s.useRef(null),c=s.useRef(0),[o,d]=s.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=B(o.viewport,o.content),u={...n,sizes:o,onSizesChange:d,hasThumb:!!(h>0&&h<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:e=>c.current=e};function m(e,t){return function(e,t,a,s="ltr"){let r=H(a),n=t||r/2,l=a.scrollbar.paddingStart+n,i=a.scrollbar.size-a.scrollbar.paddingEnd-(r-n),c=a.content-a.viewport;return U([l,i],"ltr"===s?[0,c]:[-1*c,0])(e)}(e,c.current,o,t)}return"horizontal"===r?(0,a.jsx)(C,{...u,ref:t,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=I(l.viewport.scrollLeft,o,l.dir);i.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollLeft=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollLeft=m(e,l.dir))}}):"vertical"===r?(0,a.jsx)(L,{...u,ref:t,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=I(l.viewport.scrollTop,o);i.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollTop=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollTop=m(e))}}):null}),C=s.forwardRef((e,t)=>{let{sizes:n,onSizesChange:l,...i}=e,c=k(y,e.__scopeScrollArea),[o,d]=s.useState(),h=s.useRef(null),u=(0,r.useComposedRefs)(t,h,c.onScrollbarXChange);return s.useEffect(()=>{h.current&&d(getComputedStyle(h.current))},[h]),(0,a.jsx)(E,{"data-orientation":"horizontal",...i,ref:u,sizes:n,style:{bottom:0,left:"rtl"===c.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===c.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":H(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,a)=>{if(c.viewport){var s,r;let n=c.viewport.scrollLeft+t.deltaX;e.onWheelScroll(n),s=n,r=a,s>0&&s<r&&t.preventDefault()}},onResize:()=>{h.current&&c.viewport&&o&&l({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:W(o.paddingLeft),paddingEnd:W(o.paddingRight)}})}})}),L=s.forwardRef((e,t)=>{let{sizes:n,onSizesChange:l,...i}=e,c=k(y,e.__scopeScrollArea),[o,d]=s.useState(),h=s.useRef(null),u=(0,r.useComposedRefs)(t,h,c.onScrollbarYChange);return s.useEffect(()=>{h.current&&d(getComputedStyle(h.current))},[h]),(0,a.jsx)(E,{"data-orientation":"vertical",...i,ref:u,sizes:n,style:{top:0,right:"ltr"===c.dir?0:void 0,left:"rtl"===c.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":H(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,a)=>{if(c.viewport){var s,r;let n=c.viewport.scrollTop+t.deltaY;e.onWheelScroll(n),s=n,r=a,s>0&&s<r&&t.preventDefault()}},onResize:()=>{h.current&&c.viewport&&o&&l({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:W(o.paddingTop),paddingEnd:W(o.paddingBottom)}})}})}),[T,M]=p(y),E=s.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:l,hasThumb:c,onThumbChange:d,onThumbPointerUp:h,onThumbPointerDown:u,onThumbPositionChange:f,onDragScroll:p,onWheelScroll:b,onResize:j,...v}=e,g=k(y,n),[x,P]=s.useState(null),w=(0,r.useComposedRefs)(t,e=>P(e)),S=s.useRef(null),_=s.useRef(""),N=g.viewport,C=l.content-l.viewport,L=(0,o.useCallbackRef)(b),M=(0,o.useCallbackRef)(f),E=Y(j,10);function O(e){S.current&&p({x:e.clientX-S.current.left,y:e.clientY-S.current.top})}return s.useEffect(()=>{let e=e=>{let t=e.target;x?.contains(t)&&L(e,C)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[N,x,C,L]),s.useEffect(M,[l,M]),q(x,E),q(g.content,E),(0,a.jsx)(T,{scope:n,scrollbar:x,hasThumb:c,onThumbChange:(0,o.useCallbackRef)(d),onThumbPointerUp:(0,o.useCallbackRef)(h),onThumbPositionChange:M,onThumbPointerDown:(0,o.useCallbackRef)(u),children:(0,a.jsx)(i.div,{...v,ref:w,style:{position:"absolute",...v.style},onPointerDown:(0,m.composeEventHandlers)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),S.current=x.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),O(e))}),onPointerMove:(0,m.composeEventHandlers)(e.onPointerMove,O),onPointerUp:(0,m.composeEventHandlers)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=_.current,g.viewport&&(g.viewport.style.scrollBehavior=""),S.current=null})})})}),O="ScrollAreaThumb",R=s.forwardRef((e,t)=>{let{forceMount:s,...r}=e,n=M(O,e.__scopeScrollArea);return(0,a.jsx)(c.Presence,{present:s||n.hasThumb,children:(0,a.jsx)($,{ref:t,...r})})}),$=s.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:l,...c}=e,o=k(O,n),d=M(O,n),{onThumbPositionChange:h}=d,u=(0,r.useComposedRefs)(t,e=>d.onThumbChange(e)),f=s.useRef(void 0),p=Y(()=>{f.current&&(f.current(),f.current=void 0)},100);return s.useEffect(()=>{let e=o.viewport;if(e){let t=()=>{p(),f.current||(f.current=X(e,h),h())};return h(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,p,h]),(0,a.jsx)(i.div,{"data-state":d.hasThumb?"visible":"hidden",...c,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:(0,m.composeEventHandlers)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),a=e.clientX-t.left,s=e.clientY-t.top;d.onThumbPointerDown({x:a,y:s})}),onPointerUp:(0,m.composeEventHandlers)(e.onPointerUp,d.onThumbPointerUp)})});R.displayName=O;var z="ScrollAreaCorner",A=s.forwardRef((e,t)=>{let s=k(z,e.__scopeScrollArea),r=!!(s.scrollbarX&&s.scrollbarY);return"scroll"!==s.type&&r?(0,a.jsx)(D,{...e,ref:t}):null});A.displayName=z;var D=s.forwardRef((e,t)=>{let{__scopeScrollArea:r,...n}=e,l=k(z,r),[c,o]=s.useState(0),[d,h]=s.useState(0),u=!!(c&&d);return q(l.scrollbarX,()=>{let e=l.scrollbarX?.offsetHeight||0;l.onCornerHeightChange(e),h(e)}),q(l.scrollbarY,()=>{let e=l.scrollbarY?.offsetWidth||0;l.onCornerWidthChange(e),o(e)}),u?(0,a.jsx)(i.div,{...n,ref:t,style:{width:c,height:d,position:"absolute",right:"ltr"===l.dir?0:void 0,left:"rtl"===l.dir?0:void 0,bottom:0,...e.style}}):null});function W(e){return e?parseInt(e,10):0}function B(e,t){let a=e/t;return isNaN(a)?0:a}function H(e){let t=B(e.viewport,e.content),a=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-a)*t,18)}function I(e,t,a="ltr"){let s=H(t),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,n=t.scrollbar.size-r,l=t.content-t.viewport,i=(0,u.clamp)(e,"ltr"===a?[0,l]:[-1*l,0]);return U([0,l],[0,n-s])(i)}function U(e,t){return a=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let s=(t[1]-t[0])/(e[1]-e[0]);return t[0]+s*(a-e[0])}}var X=(e,t=()=>{})=>{let a={left:e.scrollLeft,top:e.scrollTop},s=0;return!function r(){let n={left:e.scrollLeft,top:e.scrollTop},l=a.left!==n.left,i=a.top!==n.top;(l||i)&&t(),a=n,s=window.requestAnimationFrame(r)}(),()=>window.cancelAnimationFrame(s)};function Y(e,t){let a=(0,o.useCallbackRef)(e),r=s.useRef(0);return s.useEffect(()=>()=>window.clearTimeout(r.current),[]),s.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(a,t)},[a,t])}function q(e,t){let a=(0,o.useCallbackRef)(t);(0,h.useLayoutEffect)(()=>{let t=0;if(e){let s=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(a)});return s.observe(e),()=>{window.cancelAnimationFrame(t),s.unobserve(e)}}},[e,a])}var F=e.i(555552);function V({className:e,children:t,...s}){return(0,a.jsxs)(v,{"data-slot":"scroll-area",className:(0,F.cn)("relative",e),...s,children:[(0,a.jsx)(x,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),(0,a.jsx)(K,{}),(0,a.jsx)(A,{})]})}function K({className:e,orientation:t="vertical",...s}){return(0,a.jsx)(P,{"data-slot":"scroll-area-scrollbar",orientation:t,className:(0,F.cn)("flex touch-none p-px transition-colors select-none","vertical"===t&&"h-full w-2.5 border-l border-l-transparent","horizontal"===t&&"h-2.5 flex-col border-t border-t-transparent",e),...s,children:(0,a.jsx)(R,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}e.s(["ScrollArea",()=>V,"ScrollBar",()=>K],772857)},416667,e=>{"use strict";let t=(0,e.i(292511).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["default",()=>t])},996720,e=>{"use strict";var t=e.i(257868);e.s(["Plus",()=>t.default])},667249,e=>{"use strict";let t=(0,e.i(292511).default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);e.s(["MessageSquare",()=>t],667249)},846193,e=>{"use strict";let t=(0,e.i(292511).default)("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);e.s(["Key",()=>t],846193)},421722,e=>{"use strict";var t=e.i(414294),a=e.i(430878),s=e.i(353913),r=e.i(504561),n=e.i(292623),l=e.i(996720),i=e.i(667249),c=e.i(904781),o=e.i(461957),d=e.i(816187),h=e.i(292511);let u=(0,h.default)("panel-left-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);var m=e.i(220563),f=e.i(846193),p=e.i(719583),b=e.i(707387),j=e.i(481298),j=j;let k=(0,h.default)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);var v=e.i(529757),g=e.i(666904),x=e.i(836191),y=e.i(77982),P=e.i(634066),w=e.i(865259),S=e.i(553880),_=e.i(87614),N=e.i(524741),C=e.i(739963),L=e.i(555552),T=e.i(300739);function M(){let e=(0,s.useRouter)(),h=(0,s.usePathname)(),{state:M,toggleSidebar:E}=(0,v.useSidebar)(),{sessions:O,isLoading:R}=(0,T.useSessions)(),[$,z]=(0,a.useState)(!1),[A,D]=(0,a.useState)(!1),[W,B]=(0,a.useState)(!1),[H,I]=(0,a.useState)(null),[U,X]=(0,a.useState)(null),Y=(0,a.useRef)(null),[q,F]=(0,a.useState)(""),[V,K]=(0,a.useState)(""),[Q,Z]=(0,a.useState)({}),[G,J]=(0,a.useState)([]),[ee,et]=(0,a.useState)(null),[ea,es]=(0,a.useState)(""),[er,en]=(0,a.useState)(!1),[el,ei]=(0,a.useState)(!1),ec=h.startsWith("/embed/"),eo=h.startsWith("/session/")?h.split("/session/")[1]:h.startsWith("/embed/")?h.split("/embed/")[1]:null,ed=ec?"/embed":"/session",eh=O.some(e=>e.isStreaming),eu=async()=>{let e=await (0,C.getConfig)();I(e),K(e.defaultModel),Z(e.defaultToolApprovals)},em=async()=>{try{let e=await (0,N.getApiKeys)();J(e.providers)}catch(e){console.error("Failed to load API keys:",e)}};(0,a.useEffect)(()=>{eu(),em()},[]),(0,a.useEffect)(()=>{W&&em()},[W]);let ef=async e=>{if(ea.trim()){ei(!0);try{await (0,N.setApiKey)(e,ea),await em(),et(null),es(""),en(!1)}catch(e){console.error("Failed to save API key:",e)}finally{ei(!1)}}},ep=()=>{et(null),es(""),en(!1)};(0,a.useEffect)(()=>{Y.current&&(eh?Y.current.play().catch(()=>{}):(Y.current.pause(),Y.current.currentTime=0))},[eh]);let eb=async()=>{if(!$){z(!0);try{let t=await (0,N.createSession)({name:`Session ${O.length+1}`,model:H?.defaultModel||"anthropic/claude-opus-4-6",toolApprovals:Q});(0,T.mutateSessions)(),e.push(`${ed}/${t.id}`)}catch(e){console.error("Failed to create session:",e)}finally{z(!1)}}},ej=async()=>{z(!0);try{let t=await (0,N.createSession)({name:q||`Session ${O.length+1}`,model:V,toolApprovals:Q});(0,T.mutateSessions)(),ek(),D(!1),e.push(`${ed}/${t.id}`)}catch(e){console.error("Failed to create session:",e)}finally{z(!1)}},ek=()=>{F(""),H&&(K(H.defaultModel),Z(H.defaultToolApprovals))},ev=async(t,a)=>{t.preventDefault(),t.stopPropagation();try{await (0,N.deleteSession)(a),(0,T.mutateSessions)(),eo===a&&e.push("/")}catch(e){console.error("Failed to delete session:",e)}},eg=e=>{Z(t=>({...t,[e]:!t[e]}))},ex="collapsed"===M;return(0,t.jsxs)(v.Sidebar,{collapsible:ec?"offcanvas":"icon",className:"border-r border-border/50",children:[(0,t.jsxs)(v.SidebarHeader,{className:(0,L.cn)(ex?"p-2 space-y-2":"p-3 space-y-3"),children:[!ex&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)("div",{className:"relative shrink-0 overflow-hidden rounded-xl size-10 shadow-md ring-1 ring-white/10",children:[(0,t.jsx)(n.default,{src:"/sparke-coder.png",alt:"Sparke",width:40,height:40,className:"absolute inset-0 size-full object-cover",priority:!0}),(0,t.jsx)("video",{ref:Y,src:"/sparkecode.mp4",muted:!0,loop:!0,playsInline:!0,className:(0,L.cn)("absolute inset-0 size-full object-cover transition-opacity duration-300",eh?"opacity-100":"opacity-0")})]}),(0,t.jsxs)("div",{className:"flex flex-1 items-center justify-between min-w-0",children:[(0,t.jsx)("h1",{className:"text-lg font-bold text-foreground",children:"SparkECoder"}),(0,t.jsx)(_.TooltipProvider,{children:(0,t.jsxs)(_.Tooltip,{children:[(0,t.jsx)(_.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(g.Button,{size:"icon",variant:"ghost",className:"size-7 hover:bg-accent transition-colors",onClick:E,children:(0,t.jsx)(u,{className:"size-4"})})}),(0,t.jsxs)(_.TooltipContent,{side:"bottom",children:["Collapse ",(0,t.jsx)("kbd",{className:"ml-1 text-[10px] opacity-60",children:"⌘B"})]})]})})]})]}),(0,t.jsxs)(g.Button,{onClick:eb,disabled:$,className:"w-full justify-center gap-2 h-9",children:[$?(0,t.jsx)(o.Loader2,{className:"size-4 animate-spin"}):(0,t.jsx)(l.Plus,{className:"size-4"}),"New Agent"]})]}),ex&&(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 w-full",children:[(0,t.jsx)(_.TooltipProvider,{children:(0,t.jsxs)(_.Tooltip,{children:[(0,t.jsx)(_.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(g.Button,{size:"icon",variant:"ghost",onClick:E,className:"size-8 mx-auto",children:(0,t.jsx)(m.PanelLeft,{className:"size-4"})})}),(0,t.jsxs)(_.TooltipContent,{side:"right",children:["Expand ",(0,t.jsx)("kbd",{className:"ml-1 text-[10px] opacity-60",children:"⌘B"})]})]})}),(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-xl size-8 shadow-md ring-1 ring-white/10 mx-auto",children:[(0,t.jsx)(n.default,{src:"/sparke-coder.png",alt:"SparkECoder",width:32,height:32,className:"absolute inset-0 size-full object-cover",priority:!0}),(0,t.jsx)("video",{ref:Y,src:"/sparkecode.mp4",muted:!0,loop:!0,playsInline:!0,className:(0,L.cn)("absolute inset-0 size-full object-cover transition-opacity duration-300",eh?"opacity-100":"opacity-0")})]}),(0,t.jsx)(_.TooltipProvider,{children:(0,t.jsxs)(_.Tooltip,{children:[(0,t.jsx)(_.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(g.Button,{size:"icon",onClick:eb,disabled:$,className:"size-8 mx-auto",children:$?(0,t.jsx)(o.Loader2,{className:"size-4 animate-spin"}):(0,t.jsx)(l.Plus,{className:"size-4"})})}),(0,t.jsx)(_.TooltipContent,{side:"right",children:"New Agent"})]})})]})]}),(0,t.jsx)(x.Dialog,{open:A,onOpenChange:e=>{D(e),e&&ek()},children:(0,t.jsxs)(x.DialogContent,{className:"sm:max-w-md",children:[(0,t.jsx)(x.DialogHeader,{children:(0,t.jsxs)(x.DialogTitle,{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"size-8 rounded-lg bg-primary flex items-center justify-center",children:(0,t.jsx)(d.Settings,{className:"size-4 text-primary-foreground"})}),"New Agent"]})}),(0,t.jsxs)("div",{className:"space-y-4 pt-2",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(P.Label,{htmlFor:"name",className:"text-sm font-medium",children:"Session Name"}),(0,t.jsx)(y.Input,{id:"name",placeholder:"My Coding Project (optional)",value:q,onChange:e=>F(e.target.value),className:"transition-all focus:ring-2 focus:ring-primary/20"})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(P.Label,{className:"text-sm font-medium",children:"Model"}),(0,t.jsxs)(S.Select,{value:V,onValueChange:K,children:[(0,t.jsx)(S.SelectTrigger,{className:"transition-all hover:border-primary/50",children:(0,t.jsx)(S.SelectValue,{placeholder:"Select a model"})}),(0,t.jsx)(S.SelectContent,{children:H?.availableModels.map(e=>(0,t.jsx)(S.SelectItem,{value:e.id,children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{children:e.name}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:e.provider})]})},e.id))})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(P.Label,{className:"flex items-center gap-2 text-sm font-medium",children:"Tool Approvals"}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground -mt-0.5",children:"Toggle on to require approval before tool executes"}),(0,t.jsx)("div",{className:"space-y-1 rounded-lg border p-2.5 bg-muted/30",children:H?.availableTools.map(e=>(0,t.jsxs)("div",{className:"flex items-center justify-between py-1.5 hover:bg-muted/50 rounded px-2 -mx-1 transition-colors",children:[(0,t.jsxs)("div",{className:"space-y-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-sm font-medium",children:e.name}),e.dangerous&&(0,t.jsx)("span",{className:"text-[10px] bg-amber-500/20 text-amber-600 dark:text-amber-400 px-1.5 py-0.5 rounded font-medium",children:"risky"})]}),(0,t.jsx)("p",{className:"text-[11px] text-muted-foreground",children:e.description})]}),(0,t.jsx)(w.Switch,{checked:Q[e.id]??!1,onCheckedChange:()=>eg(e.id)})]},e.id))})]}),(0,t.jsxs)(g.Button,{onClick:ej,disabled:$,className:"w-full",children:[$?(0,t.jsx)(o.Loader2,{className:"size-4 animate-spin mr-2"}):(0,t.jsx)(l.Plus,{className:"size-4 mr-2"}),"Create Session"]})]})]})}),(0,t.jsx)(v.SidebarContent,{className:"px-2",children:(0,t.jsx)(v.SidebarGroup,{className:"p-0",children:(0,t.jsx)(v.SidebarGroupContent,{children:(0,t.jsx)(v.SidebarMenu,{className:"gap-1",children:R?(0,t.jsx)("div",{className:"flex justify-center py-8",children:(0,t.jsx)(o.Loader2,{className:"size-5 animate-spin text-muted-foreground"})}):0===O.length?!ex&&(0,t.jsxs)("div",{className:"text-center py-8 px-4",children:[(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-xl size-12 mx-auto mb-3 shadow-md ring-1 ring-white/10",children:[(0,t.jsx)(n.default,{src:"/sparke-coder.png",alt:"SparkECoder",width:48,height:48,className:"absolute inset-0 size-full object-cover"}),eh&&(0,t.jsx)("video",{src:"/sparkecode.mp4",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 size-full object-cover"})]}),(0,t.jsx)("p",{className:"text-sm text-foreground",children:"No sessions yet"}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Click New Agent above"})]}):O.map(e=>{let a,s,n,l,o=e.id===eo,d=U===e.id,h=!0===e.isStreaming,u=!ex&&(d||o);return(0,t.jsx)(v.SidebarMenuItem,{onMouseEnter:()=>X(e.id),onMouseLeave:()=>X(null),children:ex?(0,t.jsx)(_.TooltipProvider,{children:(0,t.jsxs)(_.Tooltip,{children:[(0,t.jsx)(_.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(r.default,{href:`${ed}/${e.id}`,className:(0,L.cn)("flex items-center justify-center size-8 rounded-lg transition-colors mx-auto",o?"bg-accent":"hover:bg-accent/60",h&&!o&&"bg-emerald-500/10"),children:h?(0,t.jsx)("span",{className:"size-2 rounded-full bg-emerald-500 animate-pulse"}):(0,t.jsx)(i.MessageSquare,{className:(0,L.cn)("size-4",o?"text-primary":"text-muted-foreground")})})}),(0,t.jsxs)(_.TooltipContent,{side:"right",children:[e.name||"Untitled",h&&" (Running)"]})]})}):(0,t.jsx)(v.SidebarMenuButton,{asChild:!0,isActive:o,className:(0,L.cn)("h-9 transition-all duration-150","hover:bg-accent/60",o&&"bg-accent",h&&!o&&"bg-emerald-500/5"),children:(0,t.jsxs)(r.default,{href:`${ed}/${e.id}`,className:"flex items-center gap-2.5 px-2",children:[h?(0,t.jsx)("span",{className:"size-2 rounded-full bg-emerald-500 animate-pulse shrink-0"}):(0,t.jsx)(i.MessageSquare,{className:(0,L.cn)("size-4 shrink-0",o?"text-primary":"text-muted-foreground")}),(0,t.jsx)("span",{className:(0,L.cn)("truncate flex-1 text-sm",h&&"text-emerald-600 dark:text-emerald-400"),children:e.name||"Untitled"}),u?(0,t.jsx)(_.TooltipProvider,{children:(0,t.jsxs)(_.Tooltip,{children:[(0,t.jsx)(_.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(g.Button,{size:"icon",variant:"ghost",className:"size-6 shrink-0 hover:bg-destructive/10 hover:text-destructive transition-colors",onClick:t=>ev(t,e.id),children:(0,t.jsx)(c.Trash2,{className:"size-3.5"})})}),(0,t.jsx)(_.TooltipContent,{side:"right",children:"Delete session"})]})}):h?(0,t.jsx)("span",{className:"inline-flex items-center gap-1 text-[10px] text-emerald-600 dark:text-emerald-400 shrink-0 font-medium",children:"Active"}):"waiting"===e.status?(0,t.jsx)("span",{className:"text-[10px] text-amber-600 dark:text-amber-400 shrink-0 font-medium",children:"Waiting"}):"error"===e.status?(0,t.jsx)("span",{className:"text-[10px] text-red-600 dark:text-red-400 shrink-0 font-medium",children:"Error"}):(0,t.jsx)("span",{className:"text-[11px] text-muted-foreground shrink-0 tabular-nums",children:(a=new Date(e.createdAt),l=Math.floor((n=Math.floor((s=Math.floor(Math.floor((new Date().getTime()-a.getTime())/1e3)/60))/60))/24),s<1?"now":s<60?`${s}m`:n<24?`${n}h`:l<7?`${l}d`:`${Math.floor(l/7)}w`)})]})})},e.id)})})})})}),(0,t.jsx)(v.SidebarFooter,{className:(0,L.cn)("border-t border-border/50",ex?"p-2":"p-3"),children:(0,t.jsx)("div",{className:"flex items-center justify-between",children:ex?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 w-full",children:[(0,t.jsx)(_.TooltipProvider,{children:(0,t.jsxs)(_.Tooltip,{children:[(0,t.jsx)(_.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("div",{className:"flex items-center justify-center",children:(0,t.jsx)("span",{className:(0,L.cn)("size-2 rounded-full",H?.serverConnected?"bg-emerald-500 animate-pulse":"bg-red-500")})})}),(0,t.jsx)(_.TooltipContent,{side:"right",children:H?.serverConnected?"Connected":"Disconnected"})]})}),(0,t.jsx)(x.Dialog,{open:W,onOpenChange:B,children:(0,t.jsx)(_.TooltipProvider,{children:(0,t.jsxs)(_.Tooltip,{children:[(0,t.jsx)(_.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(x.DialogTrigger,{asChild:!0,children:(0,t.jsx)(g.Button,{size:"icon",variant:"ghost",className:"size-8",children:(0,t.jsx)(d.Settings,{className:"size-4"})})})}),(0,t.jsx)(_.TooltipContent,{side:"right",children:"Settings"})]})})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[H?.serverConnected?(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-emerald-600 dark:text-emerald-400",children:[(0,t.jsx)("span",{className:"size-1.5 rounded-full bg-current animate-pulse"}),(0,t.jsx)("span",{children:"Connected"})]}):(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-red-500",children:[(0,t.jsx)("span",{className:"size-1.5 rounded-full bg-current"}),(0,t.jsx)("span",{children:"Disconnected"})]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"·"}),(0,t.jsx)("span",{className:"text-muted-foreground",children:O.length})]}),(0,t.jsxs)(x.Dialog,{open:W,onOpenChange:B,children:[(0,t.jsx)(_.TooltipProvider,{children:(0,t.jsxs)(_.Tooltip,{children:[(0,t.jsx)(_.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(x.DialogTrigger,{asChild:!0,children:(0,t.jsx)(g.Button,{size:"icon",variant:"ghost",className:"size-7 hover:bg-accent transition-colors",children:(0,t.jsx)(d.Settings,{className:"size-4"})})})}),(0,t.jsx)(_.TooltipContent,{side:"top",children:"Settings"})]})}),(0,t.jsxs)(x.DialogContent,{className:"sm:max-w-md",children:[(0,t.jsx)(x.DialogHeader,{children:(0,t.jsxs)(x.DialogTitle,{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"size-8 rounded-lg bg-muted flex items-center justify-center",children:(0,t.jsx)(d.Settings,{className:"size-4"})}),"Settings"]})}),(0,t.jsxs)("div",{className:"space-y-4 pt-2",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(P.Label,{className:"text-sm font-medium",children:"Default Model"}),(0,t.jsxs)(S.Select,{value:V,onValueChange:K,children:[(0,t.jsx)(S.SelectTrigger,{className:"transition-all hover:border-primary/50",children:(0,t.jsx)(S.SelectValue,{placeholder:"Select a model"})}),(0,t.jsx)(S.SelectContent,{children:H?.availableModels.map(e=>(0,t.jsx)(S.SelectItem,{value:e.id,children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{children:e.name}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:e.provider})]})},e.id))})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(P.Label,{className:"flex items-center gap-2 text-sm font-medium",children:"Tool Approvals"}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground -mt-0.5",children:"Toggle on to require approval before tool executes"}),(0,t.jsx)("div",{className:"space-y-1 rounded-lg border p-2.5 bg-muted/30",children:H?.availableTools.map(e=>(0,t.jsxs)("div",{className:"flex items-center justify-between py-1.5 hover:bg-muted/50 rounded px-2 -mx-1 transition-colors",children:[(0,t.jsxs)("div",{className:"space-y-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-sm font-medium",children:e.name}),e.dangerous&&(0,t.jsx)("span",{className:"text-[10px] bg-amber-500/20 text-amber-600 dark:text-amber-400 px-1.5 py-0.5 rounded font-medium",children:"risky"})]}),(0,t.jsx)("p",{className:"text-[11px] text-muted-foreground",children:e.description})]}),(0,t.jsx)(w.Switch,{checked:Q[e.id]??!1,onCheckedChange:()=>eg(e.id)})]},e.id))})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)(P.Label,{className:"flex items-center gap-2 text-sm font-medium",children:[(0,t.jsx)(f.Key,{className:"size-4"}),"API Keys"]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground -mt-0.5",children:"Configure API keys for different providers. Keys are stored securely on your machine."}),(0,t.jsx)("div",{className:"space-y-1 rounded-lg border p-2.5 bg-muted/30",children:G.map(e=>(0,t.jsx)("div",{className:"py-1.5 hover:bg-muted/50 rounded px-2 -mx-1 transition-colors",children:ee===e.provider?(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-sm font-medium capitalize",children:e.provider}),(0,t.jsx)("span",{className:"text-[10px] text-muted-foreground font-mono",children:e.envVar})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)("div",{className:"relative flex-1",children:[(0,t.jsx)(y.Input,{type:er?"text":"password",value:ea,onChange:e=>es(e.target.value),placeholder:"Paste your API key...",className:"pr-8 text-sm font-mono",autoFocus:!0}),(0,t.jsx)(g.Button,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-full px-2 hover:bg-transparent",onClick:()=>en(!er),children:er?(0,t.jsx)(k,{className:"size-4"}):(0,t.jsx)(j.default,{className:"size-4"})})]}),(0,t.jsx)(g.Button,{size:"icon",variant:"ghost",className:"shrink-0",onClick:()=>ef(e.provider),disabled:el||!ea.trim(),children:el?(0,t.jsx)(o.Loader2,{className:"size-4 animate-spin"}):(0,t.jsx)(p.Check,{className:"size-4 text-green-500"})}),(0,t.jsx)(g.Button,{size:"icon",variant:"ghost",className:"shrink-0",onClick:ep,children:(0,t.jsx)(b.X,{className:"size-4 text-muted-foreground"})})]})]}):(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"space-y-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-sm font-medium capitalize",children:e.provider}),e.configured&&(0,t.jsx)("span",{className:(0,L.cn)("text-[10px] px-1.5 py-0.5 rounded font-medium","env"===e.source?"bg-blue-500/20 text-blue-600 dark:text-blue-400":"bg-green-500/20 text-green-600 dark:text-green-400"),children:"env"===e.source?"from env":"saved"})]}),(0,t.jsx)("p",{className:"text-[11px] text-muted-foreground font-mono",children:e.configured?e.maskedKey:"Not configured"})]}),(0,t.jsx)(g.Button,{size:"sm",variant:"ghost",className:"h-7 text-xs",onClick:()=>et(e.provider),children:e.configured?"Update":"Add"})]})},e.provider))})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"These settings apply to new sessions. You can also change the model per-session in the chat header."})]})]})]})]})})})]})}e.s(["SessionsSidebar",()=>M],421722)},949407,e=>{"use strict";var t=e.i(414294),a=e.i(430878),s=e.i(557355),r=e.i(524741),n=e.i(461957),l=e.i(529757),i=e.i(421722);function c({params:e}){let{id:c}=(0,a.use)(e),[o,d]=(0,a.useState)(null),[h,u]=(0,a.useState)(!0),[m,f]=(0,a.useState)(null);return((0,a.useEffect)(()=>{!async function(){try{let e=await (0,r.getSession)(c);if(!e)return void f("Session not found");d(e)}catch(e){console.error("Failed to load session:",e),f("Failed to load session")}finally{u(!1)}}()},[c]),h)?(0,t.jsx)("div",{className:"flex items-center justify-center h-screen bg-background",children:(0,t.jsx)(n.Loader2,{className:"size-5 animate-spin text-muted-foreground"})}):m||!o?(0,t.jsx)("div",{className:"flex items-center justify-center h-screen bg-background",children:(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:m||"Session not found"})}):(0,t.jsx)("div",{className:"embed-page",children:(0,t.jsxs)(l.SidebarProvider,{defaultOpen:!1,forceDesktop:!0,children:[(0,t.jsx)(i.SessionsSidebar,{}),(0,t.jsx)(l.SidebarInset,{className:"h-screen flex flex-col bg-background min-w-0",children:(0,t.jsx)(s.ChatInterface,{session:o,isEmbed:!0})})]})})}e.s(["default",()=>c])},424922,e=>{e.v(t=>Promise.all(["static/chunks/7d33695e9e6e7098.js"].map(t=>e.l(t))).then(()=>t(595182)))},168873,e=>{e.v(t=>Promise.all(["static/chunks/7f8dcebf4917639a.js"].map(t=>e.l(t))).then(()=>t(271136)))},267555,e=>{e.v(t=>Promise.all(["static/chunks/b68d2ad059d231e1.js"].map(t=>e.l(t))).then(()=>t(722788)))},273354,e=>{e.v(t=>Promise.all(["static/chunks/e21622a90df41fb9.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(742666)))},601681,e=>{e.v(t=>Promise.all(["static/chunks/110b468cada0b19c.js","static/chunks/f99d736102eede68.js","static/chunks/226afaab58322e9d.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(681594)))},780677,e=>{e.v(t=>Promise.all(["static/chunks/11bf8221eb5d3051.js"].map(t=>e.l(t))).then(()=>t(539360)))},832664,e=>{e.v(t=>Promise.all(["static/chunks/f8af7c706aa3bd42.js"].map(t=>e.l(t))).then(()=>t(264908)))},759864,e=>{e.v(t=>Promise.all(["static/chunks/ba4f587d565e9ed9.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(163166)))},74304,e=>{e.v(t=>Promise.all(["static/chunks/e4b1f98322c4bd0a.js"].map(t=>e.l(t))).then(()=>t(971760)))},710100,e=>{e.v(t=>Promise.all(["static/chunks/c34377402f10481b.js"].map(t=>e.l(t))).then(()=>t(901815)))},665143,e=>{e.v(t=>Promise.all(["static/chunks/af1f1d4f41789bad.js"].map(t=>e.l(t))).then(()=>t(288547)))},552321,e=>{e.v(t=>Promise.all(["static/chunks/c41f381102075508.js"].map(t=>e.l(t))).then(()=>t(509982)))},96633,e=>{e.v(t=>Promise.all(["static/chunks/7180ff3c09fb636d.js","static/chunks/7f56445f284895ee.js","static/chunks/7ad6219affedba24.js","static/chunks/b00f2c767d9ff85c.js"].map(t=>e.l(t))).then(()=>t(112537)))},731195,e=>{e.v(t=>Promise.all(["static/chunks/463e2604330ccc6d.js"].map(t=>e.l(t))).then(()=>t(52003)))},9251,e=>{e.v(t=>Promise.all(["static/chunks/4fe40531446572c4.js"].map(t=>e.l(t))).then(()=>t(658240)))},52303,e=>{e.v(t=>Promise.all(["static/chunks/e39be7e37181a9e9.js"].map(t=>e.l(t))).then(()=>t(327010)))},326771,e=>{e.v(t=>Promise.all(["static/chunks/6b91d4788effe1aa.js"].map(t=>e.l(t))).then(()=>t(470080)))},934449,e=>{e.v(t=>Promise.all(["static/chunks/39c79347bee03aba.js"].map(t=>e.l(t))).then(()=>t(647296)))},74926,e=>{e.v(t=>Promise.all(["static/chunks/92953f52765bba17.js"].map(t=>e.l(t))).then(()=>t(75089)))},257442,e=>{e.v(t=>Promise.all(["static/chunks/74e736e553ab9634.js"].map(t=>e.l(t))).then(()=>t(868724)))},240923,e=>{e.v(t=>Promise.all(["static/chunks/af1d73aed08cec34.js","static/chunks/06ef04f47d9600ae.js","static/chunks/f99d736102eede68.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(580024)))},52297,e=>{e.v(t=>Promise.all(["static/chunks/849d0f7533b5e11d.js"].map(t=>e.l(t))).then(()=>t(64919)))},95831,e=>{e.v(t=>Promise.all(["static/chunks/f8248bf119d365a0.js"].map(t=>e.l(t))).then(()=>t(513762)))},336373,e=>{e.v(t=>Promise.all(["static/chunks/aa485a5ac4605430.js"].map(t=>e.l(t))).then(()=>t(499913)))},172636,e=>{e.v(t=>Promise.all(["static/chunks/da15129ac55132fc.js"].map(t=>e.l(t))).then(()=>t(504292)))},751803,e=>{e.v(t=>Promise.all(["static/chunks/e6534395aed524cc.js","static/chunks/9ff34bfb8e9fc269.js"].map(t=>e.l(t))).then(()=>t(886708)))},615206,e=>{e.v(t=>Promise.all(["static/chunks/e3f64e9758532890.js"].map(t=>e.l(t))).then(()=>t(127078)))},886435,e=>{e.v(t=>Promise.all(["static/chunks/11954480dd21e413.js"].map(t=>e.l(t))).then(()=>t(884042)))},208400,e=>{e.v(t=>Promise.all(["static/chunks/7092611165bf9255.js"].map(t=>e.l(t))).then(()=>t(722970)))},774210,e=>{e.v(t=>Promise.all(["static/chunks/426fbc1f76ae0d69.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(635377)))},325806,e=>{e.v(t=>Promise.all(["static/chunks/e507363f86fbf2da.js"].map(t=>e.l(t))).then(()=>t(146867)))},454881,e=>{e.v(t=>Promise.all(["static/chunks/cee36f4604ffe6c6.js"].map(t=>e.l(t))).then(()=>t(815850)))},728920,e=>{e.v(t=>Promise.all(["static/chunks/b71fe87bc2b87072.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(289491)))},556516,e=>{e.v(t=>Promise.all(["static/chunks/53cb211e6034d9ee.js"].map(t=>e.l(t))).then(()=>t(292353)))},768810,e=>{e.v(t=>Promise.all(["static/chunks/22cc3b1d0679f43d.js"].map(t=>e.l(t))).then(()=>t(756872)))},36055,e=>{e.v(t=>Promise.all(["static/chunks/955b4de34169a4cd.js","static/chunks/0f3c351dacb605ce.js","static/chunks/f8248bf119d365a0.js"].map(t=>e.l(t))).then(()=>t(475616)))},378958,e=>{e.v(t=>Promise.all(["static/chunks/f8248bf119d365a0.js","static/chunks/ccc608430198012b.js","static/chunks/f99d736102eede68.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(610982)))},848127,e=>{e.v(t=>Promise.all(["static/chunks/35957eea04e3d9f7.js"].map(t=>e.l(t))).then(()=>t(365789)))},904556,e=>{e.v(t=>Promise.all(["static/chunks/f20df2e672c0c210.js"].map(t=>e.l(t))).then(()=>t(682444)))},347771,e=>{e.v(t=>Promise.all(["static/chunks/91dfe2e10af9ddbe.js"].map(t=>e.l(t))).then(()=>t(604329)))},686137,e=>{e.v(t=>Promise.all(["static/chunks/0a2a545aaa4ba5a7.js"].map(t=>e.l(t))).then(()=>t(552747)))},949690,e=>{e.v(t=>Promise.all(["static/chunks/bd35005835e0972b.js"].map(t=>e.l(t))).then(()=>t(523425)))},183836,e=>{e.v(t=>Promise.all(["static/chunks/74a345c211a2c8ca.js"].map(t=>e.l(t))).then(()=>t(65839)))},290920,e=>{e.v(t=>Promise.all(["static/chunks/10f0f5eaae9e276b.js"].map(t=>e.l(t))).then(()=>t(374961)))},613593,e=>{e.v(t=>Promise.all(["static/chunks/4e41cc2e2cd5c9ca.js"].map(t=>e.l(t))).then(()=>t(484450)))},294887,e=>{e.v(t=>Promise.all(["static/chunks/6a8334a8ed5bf4ea.js"].map(t=>e.l(t))).then(()=>t(836935)))},538357,e=>{e.v(t=>Promise.all(["static/chunks/a188f37ee7096dc7.js"].map(t=>e.l(t))).then(()=>t(679906)))},741723,e=>{e.v(t=>Promise.all(["static/chunks/f6335043e0702821.js"].map(t=>e.l(t))).then(()=>t(929461)))},105283,e=>{e.v(t=>Promise.all(["static/chunks/a267d4ef7aa3a0a4.js"].map(t=>e.l(t))).then(()=>t(879230)))},392999,e=>{e.v(t=>Promise.all(["static/chunks/948b78734ca3d9cc.js"].map(t=>e.l(t))).then(()=>t(281667)))},619029,e=>{e.v(t=>Promise.all(["static/chunks/a08bc08ec36b0dde.js","static/chunks/f99d736102eede68.js","static/chunks/b00f2c767d9ff85c.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(278005)))},679713,e=>{e.v(t=>Promise.all(["static/chunks/8f6377a494021cb4.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(854078)))},25691,e=>{e.v(t=>Promise.all(["static/chunks/cb0c8c5f5b429ad4.js","static/chunks/f8248bf119d365a0.js"].map(t=>e.l(t))).then(()=>t(592740)))},86556,e=>{e.v(t=>Promise.all(["static/chunks/411539befc33fe45.js"].map(t=>e.l(t))).then(()=>t(359801)))},310443,e=>{e.v(t=>Promise.all(["static/chunks/d6fe85bef9d11db6.js","static/chunks/f8248bf119d365a0.js","static/chunks/f99d736102eede68.js","static/chunks/b00f2c767d9ff85c.js","static/chunks/0f3c351dacb605ce.js","static/chunks/7ad6219affedba24.js","static/chunks/8db31a1af9c73051.js","static/chunks/7e36297bdda90ff5.js","static/chunks/7f56445f284895ee.js"].map(t=>e.l(t))).then(()=>t(640273)))},994828,e=>{e.v(t=>Promise.all(["static/chunks/f4294937ddf137cf.js"].map(t=>e.l(t))).then(()=>t(402511)))},684352,e=>{e.v(t=>Promise.all(["static/chunks/0b9e09ed44af1d2a.js"].map(t=>e.l(t))).then(()=>t(152863)))},137028,e=>{e.v(t=>Promise.all(["static/chunks/f4739c8070793434.js"].map(t=>e.l(t))).then(()=>t(362245)))},837437,e=>{e.v(t=>Promise.all(["static/chunks/3d2c9cdce44daac7.js"].map(t=>e.l(t))).then(()=>t(418379)))},785635,e=>{e.v(t=>Promise.all(["static/chunks/e830a932f6af46eb.js","static/chunks/e8bed04fcf644f5c.js"].map(t=>e.l(t))).then(()=>t(298417)))},415116,e=>{e.v(t=>Promise.all(["static/chunks/e8bed04fcf644f5c.js"].map(t=>e.l(t))).then(()=>t(501588)))},891657,e=>{e.v(t=>Promise.all(["static/chunks/9e3be5dbca505e8d.js"].map(t=>e.l(t))).then(()=>t(972782)))},693084,e=>{e.v(t=>Promise.all(["static/chunks/af51bd2790c637ac.js"].map(t=>e.l(t))).then(()=>t(677002)))},445204,e=>{e.v(t=>Promise.all(["static/chunks/71f9c494b8de7f49.js"].map(t=>e.l(t))).then(()=>t(197191)))},975967,e=>{e.v(t=>Promise.all(["static/chunks/b5e5b251d639add2.js"].map(t=>e.l(t))).then(()=>t(653638)))},267018,e=>{e.v(t=>Promise.all(["static/chunks/603a3f1496d736d8.js"].map(t=>e.l(t))).then(()=>t(806821)))},309317,e=>{e.v(t=>Promise.all(["static/chunks/24fbb9da3ec1209f.js"].map(t=>e.l(t))).then(()=>t(917453)))},388952,e=>{e.v(t=>Promise.all(["static/chunks/b4a686a0931987e3.js"].map(t=>e.l(t))).then(()=>t(999586)))},455006,e=>{e.v(t=>Promise.all(["static/chunks/d9c6bae931e0989e.js"].map(t=>e.l(t))).then(()=>t(402862)))},283831,e=>{e.v(t=>Promise.all(["static/chunks/eeb05e78d4908802.js"].map(t=>e.l(t))).then(()=>t(484745)))},87687,e=>{e.v(t=>Promise.all(["static/chunks/372f0472aa687cd8.js","static/chunks/f99d736102eede68.js","static/chunks/7ad6219affedba24.js","static/chunks/b00f2c767d9ff85c.js"].map(t=>e.l(t))).then(()=>t(666612)))},726414,e=>{e.v(t=>Promise.all(["static/chunks/0d07d0b5412d5616.js","static/chunks/f99d736102eede68.js","static/chunks/b00f2c767d9ff85c.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(667354)))},712039,e=>{e.v(t=>Promise.all(["static/chunks/775a23568c750905.js","static/chunks/f8248bf119d365a0.js"].map(t=>e.l(t))).then(()=>t(467282)))},105287,e=>{e.v(t=>Promise.all(["static/chunks/0f02dfa521617772.js"].map(t=>e.l(t))).then(()=>t(474761)))},58916,e=>{e.v(t=>Promise.all(["static/chunks/3c78ae34d4a63017.js"].map(t=>e.l(t))).then(()=>t(962069)))},465381,e=>{e.v(t=>Promise.all(["static/chunks/f58d505582d80000.js"].map(t=>e.l(t))).then(()=>t(760124)))},398913,e=>{e.v(t=>Promise.all(["static/chunks/a9e99eadcba68817.js","static/chunks/8db31a1af9c73051.js","static/chunks/b00f2c767d9ff85c.js","static/chunks/7f56445f284895ee.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(314525)))},344283,e=>{e.v(t=>Promise.all(["static/chunks/0b4b037cd01db83b.js"].map(t=>e.l(t))).then(()=>t(622218)))},310258,e=>{e.v(t=>Promise.all(["static/chunks/f4834f5b739352e8.js","static/chunks/763419728d677985.js","static/chunks/f99d736102eede68.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(486524)))},196446,e=>{e.v(t=>Promise.all(["static/chunks/aaf72264685f9f99.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(15894)))},78905,e=>{e.v(t=>Promise.all(["static/chunks/f82d75ea3bc5a6b2.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(624870)))},808975,e=>{e.v(t=>Promise.all(["static/chunks/e597a3b066b5af38.js"].map(t=>e.l(t))).then(()=>t(124660)))},64439,e=>{e.v(t=>Promise.all(["static/chunks/7639a2ae22a8e859.js"].map(t=>e.l(t))).then(()=>t(394921)))},280445,e=>{e.v(t=>Promise.all(["static/chunks/0a4abe4c34855441.js"].map(t=>e.l(t))).then(()=>t(998543)))},822969,e=>{e.v(t=>Promise.all(["static/chunks/0e8efcbb73e15e2d.js"].map(t=>e.l(t))).then(()=>t(463367)))},590834,e=>{e.v(t=>Promise.all(["static/chunks/0527ec57ea4ae731.js"].map(t=>e.l(t))).then(()=>t(82225)))},407645,e=>{e.v(t=>Promise.all(["static/chunks/f99d736102eede68.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(815512)))},115233,e=>{e.v(t=>Promise.all(["static/chunks/d9391979856f7485.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(284161)))},895764,e=>{e.v(t=>Promise.all(["static/chunks/3b4af1941bd2235e.js","static/chunks/b00f2c767d9ff85c.js","static/chunks/8db31a1af9c73051.js","static/chunks/7f56445f284895ee.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(490113)))},172420,e=>{e.v(t=>Promise.all(["static/chunks/c89e0c935729a3d2.js","static/chunks/7f56445f284895ee.js","static/chunks/8db31a1af9c73051.js","static/chunks/7ad6219affedba24.js","static/chunks/b00f2c767d9ff85c.js"].map(t=>e.l(t))).then(()=>t(928444)))},987718,e=>{e.v(t=>Promise.all(["static/chunks/ea66cd9af309875b.js"].map(t=>e.l(t))).then(()=>t(610370)))},38679,e=>{e.v(t=>Promise.all(["static/chunks/4874e126f4cc3524.js"].map(t=>e.l(t))).then(()=>t(524525)))},787201,e=>{e.v(t=>Promise.all(["static/chunks/6402a50f95eeedd7.js"].map(t=>e.l(t))).then(()=>t(647353)))},980017,e=>{e.v(t=>Promise.all(["static/chunks/206ac5a103a40c5c.js"].map(t=>e.l(t))).then(()=>t(255571)))},144131,e=>{e.v(t=>Promise.all(["static/chunks/b5cb0216b21eafc5.js"].map(t=>e.l(t))).then(()=>t(825339)))},502431,e=>{e.v(t=>Promise.all(["static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(526699)))},729473,e=>{e.v(t=>Promise.all(["static/chunks/4ddd1156645b9788.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(183148)))},576554,e=>{e.v(t=>Promise.all(["static/chunks/9c6c32c0da8a9361.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(204696)))},113295,e=>{e.v(t=>Promise.all(["static/chunks/0869945c81913908.js"].map(t=>e.l(t))).then(()=>t(283844)))},991170,e=>{e.v(t=>Promise.all(["static/chunks/07e754638219ff92.js"].map(t=>e.l(t))).then(()=>t(458070)))},26929,e=>{e.v(t=>Promise.all(["static/chunks/8afee0c728904a19.js"].map(t=>e.l(t))).then(()=>t(975109)))},281787,e=>{e.v(t=>Promise.all(["static/chunks/c62dca9f94e89ae7.js"].map(t=>e.l(t))).then(()=>t(270743)))},808302,e=>{e.v(t=>Promise.all(["static/chunks/3006cde4dcb89a9c.js"].map(t=>e.l(t))).then(()=>t(995089)))},514714,e=>{e.v(t=>Promise.all(["static/chunks/9d7e4f0e658540de.js"].map(t=>e.l(t))).then(()=>t(216452)))},941751,e=>{e.v(t=>Promise.all(["static/chunks/8db31a1af9c73051.js"].map(t=>e.l(t))).then(()=>t(547593)))},44535,e=>{e.v(t=>Promise.all(["static/chunks/9ff34bfb8e9fc269.js","static/chunks/f8248bf119d365a0.js","static/chunks/0f3c351dacb605ce.js","static/chunks/7ad6219affedba24.js","static/chunks/49b1d6aceb7ad5cf.js"].map(t=>e.l(t))).then(()=>t(468323)))},694401,e=>{e.v(t=>Promise.all(["static/chunks/aa15105b6b962fb8.js"].map(t=>e.l(t))).then(()=>t(847418)))},580413,e=>{e.v(t=>Promise.all(["static/chunks/6b61e6d70f3cd2c3.js"].map(t=>e.l(t))).then(()=>t(622504)))},681665,e=>{e.v(t=>Promise.all(["static/chunks/12777b8c30d039bd.js"].map(t=>e.l(t))).then(()=>t(914001)))},378842,e=>{e.v(t=>Promise.all(["static/chunks/c0616ccf6cd55fd1.js","static/chunks/52cac654ae5fc046.js"].map(t=>e.l(t))).then(()=>t(943821)))},214730,e=>{e.v(t=>Promise.all(["static/chunks/e0ea86c3131487bd.js"].map(t=>e.l(t))).then(()=>t(251934)))},553944,e=>{e.v(t=>Promise.all(["static/chunks/96cddbf73f404051.js"].map(t=>e.l(t))).then(()=>t(462516)))},834697,e=>{e.v(t=>Promise.all(["static/chunks/d780c02bbdb751ec.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(301144)))},472126,e=>{e.v(t=>Promise.all(["static/chunks/eb98b1cd9e2a59ba.js"].map(t=>e.l(t))).then(()=>t(772296)))},485531,e=>{e.v(t=>Promise.all(["static/chunks/56813ce2a81b5922.js"].map(t=>e.l(t))).then(()=>t(706472)))},336844,e=>{e.v(t=>Promise.all(["static/chunks/6549fe8f5743aeac.js"].map(t=>e.l(t))).then(()=>t(751393)))},251683,e=>{e.v(t=>Promise.all(["static/chunks/8f28b787822085f0.js","static/chunks/f8248bf119d365a0.js"].map(t=>e.l(t))).then(()=>t(60063)))},470369,e=>{e.v(t=>Promise.all(["static/chunks/cb7c3491d0da8daa.js"].map(t=>e.l(t))).then(()=>t(944211)))},233461,e=>{e.v(t=>Promise.all(["static/chunks/917b6f54e7d1e776.js"].map(t=>e.l(t))).then(()=>t(983753)))},803482,e=>{e.v(t=>Promise.all(["static/chunks/5d36e222789a1e01.js"].map(t=>e.l(t))).then(()=>t(129269)))},948534,e=>{e.v(t=>Promise.all(["static/chunks/96cddbf73f404051.js","static/chunks/b00f2c767d9ff85c.js","static/chunks/18b21b0a429ecb66.js"].map(t=>e.l(t))).then(()=>t(636701)))},301121,e=>{e.v(t=>Promise.all(["static/chunks/8eabf4e21fb292d4.js"].map(t=>e.l(t))).then(()=>t(938820)))},602420,e=>{e.v(t=>Promise.all(["static/chunks/e3970cd69968a3b7.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(233532)))},506813,e=>{e.v(t=>Promise.all(["static/chunks/ce852cce30862a4c.js"].map(t=>e.l(t))).then(()=>t(223898)))},140850,e=>{e.v(t=>Promise.all(["static/chunks/c973de21ed34090c.js"].map(t=>e.l(t))).then(()=>t(742023)))},549647,e=>{e.v(t=>Promise.all(["static/chunks/c891cd556aa7acf1.js"].map(t=>e.l(t))).then(()=>t(747652)))},962276,e=>{e.v(t=>Promise.all(["static/chunks/782750051316e90e.js"].map(t=>e.l(t))).then(()=>t(112691)))},488064,e=>{e.v(t=>Promise.all(["static/chunks/80e424cf39a5dcc5.js"].map(t=>e.l(t))).then(()=>t(887886)))},935257,e=>{e.v(t=>Promise.all(["static/chunks/64f5826a003f01d1.js"].map(t=>e.l(t))).then(()=>t(360063)))},145171,e=>{e.v(t=>Promise.all(["static/chunks/3dd00e0bc55a6903.js"].map(t=>e.l(t))).then(()=>t(26833)))},371822,e=>{e.v(t=>Promise.all(["static/chunks/c6dfb363e41eaf49.js"].map(t=>e.l(t))).then(()=>t(578379)))},670410,e=>{e.v(t=>Promise.all(["static/chunks/23a5895aad8101ad.js","static/chunks/f8248bf119d365a0.js"].map(t=>e.l(t))).then(()=>t(587528)))},339255,e=>{e.v(t=>Promise.all(["static/chunks/f8248bf119d365a0.js","static/chunks/c09163cd00015e85.js","static/chunks/f99d736102eede68.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(37711)))},868854,e=>{e.v(t=>Promise.all(["static/chunks/2b0d37a90eafd82e.js"].map(t=>e.l(t))).then(()=>t(303550)))},22667,e=>{e.v(t=>Promise.all(["static/chunks/e6e9365137d03871.js"].map(t=>e.l(t))).then(()=>t(389871)))},436910,e=>{e.v(t=>Promise.all(["static/chunks/7caf1c11b0c054a1.js"].map(t=>e.l(t))).then(()=>t(3795)))},507940,e=>{e.v(t=>Promise.all(["static/chunks/93dd6912ca0bce4f.js"].map(t=>e.l(t))).then(()=>t(785974)))},55452,e=>{e.v(t=>Promise.all(["static/chunks/24ad305b622f6720.js"].map(t=>e.l(t))).then(()=>t(697630)))},933900,e=>{e.v(t=>Promise.all(["static/chunks/72a723be24f5a255.js"].map(t=>e.l(t))).then(()=>t(479371)))},246481,e=>{e.v(t=>Promise.all(["static/chunks/9ae6b9e163eb0aab.js"].map(t=>e.l(t))).then(()=>t(831476)))},325975,e=>{e.v(t=>Promise.all(["static/chunks/6f7542d47732e155.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(380117)))},832212,e=>{e.v(t=>Promise.all(["static/chunks/9fb6e022474ccac7.js","static/chunks/b999e8f735687ca5.js","static/chunks/f99d736102eede68.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(16505)))},929773,e=>{e.v(t=>Promise.all(["static/chunks/6f44a939c693a863.js"].map(t=>e.l(t))).then(()=>t(303856)))},997293,e=>{e.v(t=>Promise.all(["static/chunks/33948efb1580fd27.js"].map(t=>e.l(t))).then(()=>t(640683)))},948438,e=>{e.v(t=>Promise.all(["static/chunks/56a43118bad7cb81.js"].map(t=>e.l(t))).then(()=>t(674782)))},714648,e=>{e.v(t=>Promise.all(["static/chunks/f2568ff5d06d2c62.js"].map(t=>e.l(t))).then(()=>t(362893)))},378567,e=>{e.v(t=>Promise.all(["static/chunks/b3a753e3e983e969.js"].map(t=>e.l(t))).then(()=>t(746397)))},656940,e=>{e.v(t=>Promise.all(["static/chunks/f1303eac027d5c35.js"].map(t=>e.l(t))).then(()=>t(87465)))},197812,e=>{e.v(t=>Promise.all(["static/chunks/b7ea3312af6b18c7.js"].map(t=>e.l(t))).then(()=>t(493303)))},286754,e=>{e.v(t=>Promise.all(["static/chunks/4547515a6d048778.js"].map(t=>e.l(t))).then(()=>t(861555)))},714818,e=>{e.v(t=>Promise.all(["static/chunks/c1b89a4a96aa9e52.js"].map(t=>e.l(t))).then(()=>t(887012)))},26675,e=>{e.v(t=>Promise.all(["static/chunks/630badef965071c8.js"].map(t=>e.l(t))).then(()=>t(684726)))},694488,e=>{e.v(t=>Promise.all(["static/chunks/6ac99ae2b1fe307b.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(263035)))},118886,e=>{e.v(t=>Promise.all(["static/chunks/c0d7f4ab8f1f1bc9.js"].map(t=>e.l(t))).then(()=>t(191042)))},354419,e=>{e.v(t=>Promise.all(["static/chunks/8d39b46f9d7c54f4.js"].map(t=>e.l(t))).then(()=>t(553445)))},196728,e=>{e.v(t=>Promise.all(["static/chunks/9ff34bfb8e9fc269.js"].map(t=>e.l(t))).then(()=>t(951084)))},850381,e=>{e.v(t=>Promise.all(["static/chunks/ff6d0dd894d41a47.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(372853)))},776789,e=>{e.v(t=>Promise.all(["static/chunks/6f48fe9d683a0cc5.js"].map(t=>e.l(t))).then(()=>t(741194)))},988321,e=>{e.v(t=>Promise.all(["static/chunks/51946aced88b8ae2.js"].map(t=>e.l(t))).then(()=>t(534702)))},577036,e=>{e.v(t=>Promise.all(["static/chunks/c703f401bf226572.js"].map(t=>e.l(t))).then(()=>t(71342)))},733419,e=>{e.v(t=>Promise.all(["static/chunks/1586c4ec6afda503.js"].map(t=>e.l(t))).then(()=>t(109926)))},755698,e=>{e.v(t=>Promise.all(["static/chunks/857006df902a21ab.js"].map(t=>e.l(t))).then(()=>t(734979)))},525413,e=>{e.v(t=>Promise.all(["static/chunks/b5db816b123084d0.js","static/chunks/35957eea04e3d9f7.js","static/chunks/f99d736102eede68.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(522702)))},871580,e=>{e.v(t=>Promise.all(["static/chunks/b3f7982222421889.js"].map(t=>e.l(t))).then(()=>t(148252)))},719347,e=>{e.v(t=>Promise.all(["static/chunks/fa749080364f8f08.js"].map(t=>e.l(t))).then(()=>t(259704)))},418074,e=>{e.v(t=>Promise.all(["static/chunks/9f7929135279582c.js"].map(t=>e.l(t))).then(()=>t(162689)))},248688,e=>{e.v(t=>Promise.all(["static/chunks/b12c69de100637e5.js"].map(t=>e.l(t))).then(()=>t(169111)))},417101,e=>{e.v(t=>Promise.all(["static/chunks/ffe29c0580c6e2b0.js"].map(t=>e.l(t))).then(()=>t(611182)))},205156,e=>{e.v(t=>Promise.all(["static/chunks/04b1eda6614f5bbe.js","static/chunks/9ff34bfb8e9fc269.js","static/chunks/f8248bf119d365a0.js","static/chunks/b00f2c767d9ff85c.js","static/chunks/f99d736102eede68.js","static/chunks/7ad6219affedba24.js","static/chunks/0f3c351dacb605ce.js","static/chunks/7f56445f284895ee.js","static/chunks/7e36297bdda90ff5.js","static/chunks/8db31a1af9c73051.js"].map(t=>e.l(t))).then(()=>t(174440)))},616617,e=>{e.v(t=>Promise.all(["static/chunks/33688eb4e85828f5.js","static/chunks/f8248bf119d365a0.js","static/chunks/f99d736102eede68.js","static/chunks/b00f2c767d9ff85c.js","static/chunks/0f3c351dacb605ce.js","static/chunks/8db31a1af9c73051.js","static/chunks/7f56445f284895ee.js","static/chunks/7e36297bdda90ff5.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(818717)))},712841,e=>{e.v(t=>Promise.all(["static/chunks/2b112b98cc047657.js"].map(t=>e.l(t))).then(()=>t(612709)))},407559,e=>{e.v(t=>Promise.all(["static/chunks/583c1d1ed842e9ee.js"].map(t=>e.l(t))).then(()=>t(579157)))},329481,e=>{e.v(t=>Promise.all(["static/chunks/2e98228ab8c36d19.js"].map(t=>e.l(t))).then(()=>t(146440)))},906092,e=>{e.v(t=>Promise.all(["static/chunks/a28472fd9e7f6f84.js"].map(t=>e.l(t))).then(()=>t(905084)))},99440,e=>{e.v(t=>Promise.all(["static/chunks/2b2467c5260d444a.js"].map(t=>e.l(t))).then(()=>t(697956)))},280679,e=>{e.v(t=>Promise.all(["static/chunks/35e1b86c62bc87b0.js"].map(t=>e.l(t))).then(()=>t(109291)))},54004,e=>{e.v(t=>Promise.all(["static/chunks/9278b2b10956f273.js"].map(t=>e.l(t))).then(()=>t(185561)))},529105,e=>{e.v(t=>Promise.all(["static/chunks/9ead00122ce12d8b.js"].map(t=>e.l(t))).then(()=>t(725384)))},430026,e=>{e.v(t=>Promise.all(["static/chunks/450e83577b856348.js"].map(t=>e.l(t))).then(()=>t(271825)))},681262,e=>{e.v(t=>Promise.all(["static/chunks/aac83b65f06ff134.js"].map(t=>e.l(t))).then(()=>t(6950)))},429843,e=>{e.v(t=>Promise.all(["static/chunks/6b590b0b6f878f68.js"].map(t=>e.l(t))).then(()=>t(99481)))},790483,e=>{e.v(t=>Promise.all(["static/chunks/ebfb0dc7a630a61a.js"].map(t=>e.l(t))).then(()=>t(195448)))},66378,e=>{e.v(t=>Promise.all(["static/chunks/62ece7d6867e41c6.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(511047)))},14166,e=>{e.v(t=>Promise.all(["static/chunks/794db2ef16bc485a.js"].map(t=>e.l(t))).then(()=>t(812440)))},825194,e=>{e.v(t=>Promise.all(["static/chunks/b8b5830b4f5a07e4.js"].map(t=>e.l(t))).then(()=>t(930764)))},486478,e=>{e.v(t=>Promise.all(["static/chunks/f4834f5b739352e8.js"].map(t=>e.l(t))).then(()=>t(905374)))},29704,e=>{e.v(t=>Promise.all(["static/chunks/0cd3f508e23e2335.js"].map(t=>e.l(t))).then(()=>t(736594)))},205697,e=>{e.v(t=>Promise.all(["static/chunks/c3046484a0963427.js"].map(t=>e.l(t))).then(()=>t(210498)))},561937,e=>{e.v(t=>Promise.all(["static/chunks/679d9c3136624cef.js"].map(t=>e.l(t))).then(()=>t(260237)))},69149,e=>{e.v(t=>Promise.all(["static/chunks/71b9b97c65b14988.js","static/chunks/7ad6219affedba24.js","static/chunks/b00f2c767d9ff85c.js"].map(t=>e.l(t))).then(()=>t(604740)))},558167,e=>{e.v(t=>Promise.all(["static/chunks/7dd90b5408b3259c.js"].map(t=>e.l(t))).then(()=>t(176078)))},471804,e=>{e.v(t=>Promise.all(["static/chunks/32a4d8c6a5c5cbee.js"].map(t=>e.l(t))).then(()=>t(564617)))},699598,e=>{e.v(t=>Promise.all(["static/chunks/09c95ac06f01e26e.js"].map(t=>e.l(t))).then(()=>t(605824)))},224168,e=>{e.v(t=>Promise.all(["static/chunks/1c77dfda9f767ddc.js"].map(t=>e.l(t))).then(()=>t(335968)))},268280,e=>{e.v(t=>Promise.all(["static/chunks/63bcfad7de044dd5.js"].map(t=>e.l(t))).then(()=>t(112312)))},341811,e=>{e.v(t=>Promise.all(["static/chunks/8b313f3a9a9986f1.js"].map(t=>e.l(t))).then(()=>t(251109)))},760495,e=>{e.v(t=>Promise.all(["static/chunks/ad76d4e0aa4055e7.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(317276)))},983690,e=>{e.v(t=>Promise.all(["static/chunks/0ccef7f197f7b981.js"].map(t=>e.l(t))).then(()=>t(106333)))},981895,e=>{e.v(t=>Promise.all(["static/chunks/c0616ccf6cd55fd1.js"].map(t=>e.l(t))).then(()=>t(921306)))},523467,e=>{e.v(t=>Promise.all(["static/chunks/bd9f77af154db67d.js"].map(t=>e.l(t))).then(()=>t(724224)))},70493,e=>{e.v(t=>Promise.all(["static/chunks/f8248bf119d365a0.js","static/chunks/9dfd8c0fe146ab95.js","static/chunks/b00f2c767d9ff85c.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(399855)))},528966,e=>{e.v(t=>Promise.all(["static/chunks/3d204794c1566b1f.js"].map(t=>e.l(t))).then(()=>t(912682)))},765573,e=>{e.v(t=>Promise.all(["static/chunks/7f56445f284895ee.js"].map(t=>e.l(t))).then(()=>t(329065)))},889390,e=>{e.v(t=>Promise.all(["static/chunks/4c670edd9d5ecab0.js"].map(t=>e.l(t))).then(()=>t(923674)))},158869,e=>{e.v(t=>Promise.all(["static/chunks/f8248bf119d365a0.js","static/chunks/9ff34bfb8e9fc269.js","static/chunks/b999e8f735687ca5.js","static/chunks/f99d736102eede68.js","static/chunks/9bdc7bff1419e7b7.js","static/chunks/8db31a1af9c73051.js","static/chunks/0f3c351dacb605ce.js","static/chunks/b00f2c767d9ff85c.js","static/chunks/7ad6219affedba24.js","static/chunks/7e36297bdda90ff5.js","static/chunks/7f56445f284895ee.js"].map(t=>e.l(t))).then(()=>t(115174)))},540873,e=>{e.v(t=>Promise.all(["static/chunks/b00f2c767d9ff85c.js"].map(t=>e.l(t))).then(()=>t(688884)))},941325,e=>{e.v(t=>Promise.all(["static/chunks/3199b4d87a59135a.js"].map(t=>e.l(t))).then(()=>t(172682)))},905331,e=>{e.v(t=>Promise.all(["static/chunks/72dfbdfac5999f65.js"].map(t=>e.l(t))).then(()=>t(386400)))},634520,e=>{e.v(t=>Promise.all(["static/chunks/398ec44ecf114a29.js"].map(t=>e.l(t))).then(()=>t(11416)))},749827,e=>{e.v(t=>Promise.all(["static/chunks/2e0a531fa5061998.js"].map(t=>e.l(t))).then(()=>t(305747)))},723339,e=>{e.v(t=>Promise.all(["static/chunks/08a34ab3be877561.js"].map(t=>e.l(t))).then(()=>t(658171)))},659928,e=>{e.v(t=>Promise.all(["static/chunks/0ff96804d78f9529.js"].map(t=>e.l(t))).then(()=>t(726163)))},676577,e=>{e.v(t=>Promise.all(["static/chunks/7e3d0bfaf1579da0.js"].map(t=>e.l(t))).then(()=>t(312630)))},9996,e=>{e.v(t=>Promise.all(["static/chunks/9f8f859f44f73b3c.js"].map(t=>e.l(t))).then(()=>t(268997)))},990512,e=>{e.v(t=>Promise.all(["static/chunks/844cf8b6fbb9b0e3.js","static/chunks/f99d736102eede68.js","static/chunks/7ad6219affedba24.js","static/chunks/b00f2c767d9ff85c.js"].map(t=>e.l(t))).then(()=>t(93951)))},318085,e=>{e.v(t=>Promise.all(["static/chunks/3b04d044755c7f57.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(52858)))},984300,e=>{e.v(t=>Promise.all(["static/chunks/96cddbf73f404051.js","static/chunks/5a2826a781e83be2.js","static/chunks/8f838b716ac12e87.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(658313)))},712096,e=>{e.v(t=>Promise.all(["static/chunks/ff9d96f61d250514.js"].map(t=>e.l(t))).then(()=>t(785933)))},959984,e=>{e.v(t=>Promise.all(["static/chunks/a071c4ed8e86f034.js"].map(t=>e.l(t))).then(()=>t(628081)))},657695,e=>{e.v(t=>Promise.all(["static/chunks/00e2b2bd4fd73888.js"].map(t=>e.l(t))).then(()=>t(617666)))},216503,e=>{e.v(t=>Promise.all(["static/chunks/116387fbd07b44f4.js"].map(t=>e.l(t))).then(()=>t(323243)))},237218,e=>{e.v(t=>Promise.all(["static/chunks/e6c0c79337937d5b.js"].map(t=>e.l(t))).then(()=>t(818648)))},944971,e=>{e.v(t=>Promise.all(["static/chunks/0ff9fac9d5158f9b.js"].map(t=>e.l(t))).then(()=>t(894742)))},483867,e=>{e.v(t=>Promise.all(["static/chunks/5b4eb6c4a60ca27e.js"].map(t=>e.l(t))).then(()=>t(275093)))},190206,e=>{e.v(t=>Promise.all(["static/chunks/33688eb4e85828f5.js"].map(t=>e.l(t))).then(()=>t(276215)))},893978,e=>{e.v(t=>Promise.all(["static/chunks/48da29031f3dc1ee.js"].map(t=>e.l(t))).then(()=>t(923145)))},267823,e=>{e.v(t=>Promise.all(["static/chunks/56b3fd6a49a27c98.js"].map(t=>e.l(t))).then(()=>t(913602)))},747329,e=>{e.v(t=>Promise.all(["static/chunks/cac2ad3d83e64e4e.js"].map(t=>e.l(t))).then(()=>t(812092)))},904154,e=>{e.v(t=>Promise.all(["static/chunks/2c92705ad1c4314a.js"].map(t=>e.l(t))).then(()=>t(672985)))},189508,e=>{e.v(t=>Promise.all(["static/chunks/c12b3bcfa2870a9a.js"].map(t=>e.l(t))).then(()=>t(930276)))},327553,e=>{e.v(t=>Promise.all(["static/chunks/c9ba28c28ea3fab3.js"].map(t=>e.l(t))).then(()=>t(187541)))},759341,e=>{e.v(t=>Promise.all(["static/chunks/f3a83beaa45a556d.js"].map(t=>e.l(t))).then(()=>t(965010)))},557366,e=>{e.v(t=>Promise.all(["static/chunks/76f16109a9bffb58.js"].map(t=>e.l(t))).then(()=>t(727144)))},127572,e=>{e.v(t=>Promise.all(["static/chunks/03b1e54927c98b05.js"].map(t=>e.l(t))).then(()=>t(969396)))},398911,e=>{e.v(t=>Promise.all(["static/chunks/26976267539c766c.js"].map(t=>e.l(t))).then(()=>t(163631)))},765061,e=>{e.v(t=>Promise.all(["static/chunks/e50b0d6daeb45dcc.js"].map(t=>e.l(t))).then(()=>t(573584)))},814228,e=>{e.v(t=>Promise.all(["static/chunks/014655d90e22a6ea.js"].map(t=>e.l(t))).then(()=>t(752946)))},374789,e=>{e.v(t=>Promise.all(["static/chunks/09e7e676c004255e.js"].map(t=>e.l(t))).then(()=>t(912646)))},675562,e=>{e.v(t=>Promise.all(["static/chunks/a3cad768330e329e.js"].map(t=>e.l(t))).then(()=>t(557145)))},264696,e=>{e.v(t=>Promise.all(["static/chunks/85e937ccc534609c.js"].map(t=>e.l(t))).then(()=>t(689735)))},42530,e=>{e.v(t=>Promise.all(["static/chunks/8dcc90bc92c8c971.js"].map(t=>e.l(t))).then(()=>t(35453)))},427713,e=>{e.v(t=>Promise.all(["static/chunks/31b3a9b2a8d314ed.js"].map(t=>e.l(t))).then(()=>t(883598)))},576963,e=>{e.v(t=>Promise.all(["static/chunks/dd768aa5e1ac0874.js"].map(t=>e.l(t))).then(()=>t(178888)))},329581,e=>{e.v(t=>Promise.all(["static/chunks/9af889226a2ee121.js"].map(t=>e.l(t))).then(()=>t(995069)))},195279,e=>{e.v(t=>Promise.all(["static/chunks/ce73fab9db85e2ab.js"].map(t=>e.l(t))).then(()=>t(870837)))},516651,e=>{e.v(t=>Promise.all(["static/chunks/1456df2f144296eb.js"].map(t=>e.l(t))).then(()=>t(623302)))},689651,e=>{e.v(t=>Promise.all(["static/chunks/5510573e0cfc1400.js"].map(t=>e.l(t))).then(()=>t(669558)))},642036,e=>{e.v(t=>Promise.all(["static/chunks/514d55d16e308dc8.js"].map(t=>e.l(t))).then(()=>t(9891)))},840055,e=>{e.v(t=>Promise.all(["static/chunks/4a9d22b22ac291cb.js"].map(t=>e.l(t))).then(()=>t(712210)))},398687,e=>{e.v(t=>Promise.all(["static/chunks/cff13b04c1a5bd5a.js"].map(t=>e.l(t))).then(()=>t(205017)))},18935,e=>{e.v(t=>Promise.all(["static/chunks/59ab8f3037318070.js"].map(t=>e.l(t))).then(()=>t(795346)))},52380,e=>{e.v(t=>Promise.all(["static/chunks/2ee46b47d30992b2.js"].map(t=>e.l(t))).then(()=>t(659978)))},24410,e=>{e.v(t=>Promise.all(["static/chunks/6c38ab56a33393a2.js"].map(t=>e.l(t))).then(()=>t(73435)))},795210,e=>{e.v(t=>Promise.all(["static/chunks/688eabd0265bf745.js"].map(t=>e.l(t))).then(()=>t(910848)))},695303,e=>{e.v(t=>Promise.all(["static/chunks/13af0835ba351243.js"].map(t=>e.l(t))).then(()=>t(575944)))},686210,e=>{e.v(t=>Promise.all(["static/chunks/ac0edaec19bb583d.js"].map(t=>e.l(t))).then(()=>t(924160)))},847729,e=>{e.v(t=>Promise.all(["static/chunks/c033b65a68a579c2.js"].map(t=>e.l(t))).then(()=>t(377199)))},233589,e=>{e.v(t=>Promise.all(["static/chunks/706e667344c89c99.js"].map(t=>e.l(t))).then(()=>t(49703)))},951946,e=>{e.v(t=>Promise.all(["static/chunks/f57449a5fac33dcd.js"].map(t=>e.l(t))).then(()=>t(79001)))},279775,e=>{e.v(t=>Promise.all(["static/chunks/ae8125fdcd72d4fa.js"].map(t=>e.l(t))).then(()=>t(721403)))},593928,e=>{e.v(t=>Promise.all(["static/chunks/25de65d107ce3c3d.js"].map(t=>e.l(t))).then(()=>t(317143)))},198658,e=>{e.v(t=>Promise.all(["static/chunks/9d05b89cf149821a.js"].map(t=>e.l(t))).then(()=>t(969770)))},270659,e=>{e.v(t=>Promise.all(["static/chunks/44876e582cade503.js"].map(t=>e.l(t))).then(()=>t(181985)))},320719,e=>{e.v(t=>Promise.all(["static/chunks/2f543ea68e1c8e7e.js"].map(t=>e.l(t))).then(()=>t(970686)))},525766,e=>{e.v(t=>Promise.all(["static/chunks/55aef1501fa495c6.js"].map(t=>e.l(t))).then(()=>t(948029)))},610344,e=>{e.v(t=>Promise.all(["static/chunks/9720eee1cde17814.js"].map(t=>e.l(t))).then(()=>t(961758)))},100684,e=>{e.v(t=>Promise.all(["static/chunks/df035ebd0e7ec5f7.js"].map(t=>e.l(t))).then(()=>t(332363)))},291123,e=>{e.v(t=>Promise.all(["static/chunks/febc2f96b7fbd369.js"].map(t=>e.l(t))).then(()=>t(9563)))},198410,e=>{e.v(t=>Promise.all(["static/chunks/2be85cc3954990ac.js"].map(t=>e.l(t))).then(()=>t(866064)))},785810,e=>{e.v(t=>Promise.all(["static/chunks/d0e319a5b21386c3.js"].map(t=>e.l(t))).then(()=>t(74628)))},350612,e=>{e.v(t=>Promise.all(["static/chunks/e8142c7904838b5a.js"].map(t=>e.l(t))).then(()=>t(800608)))},492494,e=>{e.v(t=>Promise.all(["static/chunks/e9cc9412c5bc46d8.js"].map(t=>e.l(t))).then(()=>t(362283)))},59650,e=>{e.v(t=>Promise.all(["static/chunks/30daf1b94ed4e1cb.js"].map(t=>e.l(t))).then(()=>t(324805)))},533273,e=>{e.v(t=>Promise.all(["static/chunks/ebaec72f0276e5e9.js"].map(t=>e.l(t))).then(()=>t(258160)))},473810,e=>{e.v(t=>Promise.all(["static/chunks/25502b6bcb274a00.js"].map(t=>e.l(t))).then(()=>t(921210)))},486978,e=>{e.v(t=>Promise.all(["static/chunks/8ac2c9d606ed5639.js"].map(t=>e.l(t))).then(()=>t(344744)))},371553,e=>{e.v(t=>Promise.all(["static/chunks/133ac69409129fce.js"].map(t=>e.l(t))).then(()=>t(309802)))},297035,e=>{e.v(t=>Promise.all(["static/chunks/abcd629cf9f8a4e0.js"].map(t=>e.l(t))).then(()=>t(413263)))},747632,e=>{e.v(t=>Promise.all(["static/chunks/aeee013933670787.js"].map(t=>e.l(t))).then(()=>t(845599)))},93215,e=>{e.v(t=>Promise.all(["static/chunks/c6d5475083a4fb34.js"].map(t=>e.l(t))).then(()=>t(798823)))},612986,e=>{e.v(t=>Promise.all(["static/chunks/dd04e9a8e8564216.js"].map(t=>e.l(t))).then(()=>t(428504)))},255674,e=>{e.v(t=>Promise.all(["static/chunks/3ac428e2be7a950e.js"].map(t=>e.l(t))).then(()=>t(759086)))},731013,e=>{e.v(t=>Promise.all(["static/chunks/2c2d824a59e9330f.js"].map(t=>e.l(t))).then(()=>t(302569)))},94801,e=>{e.v(t=>Promise.all(["static/chunks/8d3357baa0194eb3.js"].map(t=>e.l(t))).then(()=>t(528832)))},457836,e=>{e.v(t=>Promise.all(["static/chunks/d18214fcf73b738a.js"].map(t=>e.l(t))).then(()=>t(522428)))},13877,e=>{e.v(t=>Promise.all(["static/chunks/1a17c7262c26e5a8.js"].map(t=>e.l(t))).then(()=>t(487853)))},448048,e=>{e.v(t=>Promise.all(["static/chunks/9e6df530cd0eb319.js"].map(t=>e.l(t))).then(()=>t(675700)))},639922,e=>{e.v(t=>Promise.all(["static/chunks/397cbe85aee30daa.js"].map(t=>e.l(t))).then(()=>t(263088)))},595345,e=>{e.v(t=>Promise.all(["static/chunks/bec22788d1b72056.js"].map(t=>e.l(t))).then(()=>t(589229)))},259500,e=>{e.v(t=>Promise.all(["static/chunks/786229452e9adc9c.js"].map(t=>e.l(t))).then(()=>t(70533)))},614472,e=>{e.v(e=>Promise.resolve().then(()=>e(751692)))},635288,e=>{e.v(t=>Promise.all(["static/chunks/eb2336bebeacbd67.js","static/chunks/0c28698f24525f4b.js","static/chunks/0a528cc28f82ba03.js"].map(t=>e.l(t))).then(()=>t(98658)))},112933,e=>{e.v(t=>Promise.all(["static/chunks/e8818e2e0fa2f58d.js","static/chunks/9a25c27deceff30a.js"].map(t=>e.l(t))).then(()=>t(880974)))},533915,e=>{e.v(t=>Promise.all(["static/chunks/3ed0d8760b119d01.js","static/chunks/cd692773c1bcea89.js"].map(t=>e.l(t))).then(()=>t(390730)))},956761,e=>{e.v(t=>Promise.all(["static/chunks/5c9e51e6018376bc.js","static/chunks/c1cac54014b81f57.js"].map(t=>e.l(t))).then(()=>t(73242)))},943185,e=>{e.v(t=>Promise.all(["static/chunks/436fb7278e72f433.js"].map(t=>e.l(t))).then(()=>t(910193)))},388129,e=>{e.v(t=>Promise.all(["static/chunks/7e2d13a8c33ced33.js","static/chunks/dd196b6cd32d6d20.js","static/chunks/f988354b60c71d30.js"].map(t=>e.l(t))).then(()=>t(682305)))},941076,e=>{e.v(t=>Promise.all(["static/chunks/90aa821be74370ff.js","static/chunks/2b555af61ff8a482.js"].map(t=>e.l(t))).then(()=>t(573818)))},781187,e=>{e.v(t=>Promise.all(["static/chunks/33a0a1e856b99004.js","static/chunks/dd196b6cd32d6d20.js","static/chunks/7e2d13a8c33ced33.js"].map(t=>e.l(t))).then(()=>t(125046)))},459696,e=>{e.v(t=>Promise.all(["static/chunks/a406a5829bbcf59b.js","static/chunks/dd196b6cd32d6d20.js","static/chunks/7e2d13a8c33ced33.js"].map(t=>e.l(t))).then(()=>t(685022)))},348039,e=>{e.v(t=>Promise.all(["static/chunks/789dbc21354f0085.js"].map(t=>e.l(t))).then(()=>t(499127)))},110104,e=>{e.v(t=>Promise.all(["static/chunks/19e4a28ed794eef9.js","static/chunks/a1d99eb317ea65d0.js"].map(t=>e.l(t))).then(()=>t(142153)))},666358,e=>{e.v(t=>Promise.all(["static/chunks/48e3424fa6991e17.js"].map(t=>e.l(t))).then(()=>t(110761)))},966453,e=>{e.v(t=>Promise.all(["static/chunks/d45ba22873ea302b.js","static/chunks/31d900268839d031.js"].map(t=>e.l(t))).then(()=>t(885614)))},723358,e=>{e.v(t=>Promise.all(["static/chunks/e027fcb5600ede88.js","static/chunks/4b502c6a99b7ccc1.js"].map(t=>e.l(t))).then(()=>t(964944)))},873682,e=>{e.v(t=>Promise.all(["static/chunks/b86457d4169823a4.js","static/chunks/4b502c6a99b7ccc1.js"].map(t=>e.l(t))).then(()=>t(23925)))},334989,e=>{e.v(t=>Promise.all(["static/chunks/eb2336bebeacbd67.js","static/chunks/0c28698f24525f4b.js","static/chunks/48ef1ee1d9d5f871.js"].map(t=>e.l(t))).then(()=>t(650143)))},740095,e=>{e.v(t=>Promise.all(["static/chunks/4c4094617780a684.js"].map(t=>e.l(t))).then(()=>t(24928)))},984866,e=>{e.v(t=>Promise.all(["static/chunks/a30654d4606d42ba.js"].map(t=>e.l(t))).then(()=>t(19001)))},886387,e=>{e.v(t=>Promise.all(["static/chunks/dd9579f5206c525d.js"].map(t=>e.l(t))).then(()=>t(118693)))},391450,e=>{e.v(t=>Promise.all(["static/chunks/46764b74f7dbe173.js"].map(t=>e.l(t))).then(()=>t(287372)))},870423,e=>{e.v(t=>Promise.all(["static/chunks/bf09182813a79197.js"].map(t=>e.l(t))).then(()=>t(76197)))},390930,e=>{e.v(t=>Promise.all(["static/chunks/8438344f063f68bf.js"].map(t=>e.l(t))).then(()=>t(284517)))},776122,e=>{e.v(t=>Promise.all(["static/chunks/9ceec826aa123e4f.js","static/chunks/dd196b6cd32d6d20.js","static/chunks/7e2d13a8c33ced33.js"].map(t=>e.l(t))).then(()=>t(717575)))},336554,e=>{e.v(t=>Promise.all(["static/chunks/5abbff0d70a9b705.js","static/chunks/dd196b6cd32d6d20.js","static/chunks/7e2d13a8c33ced33.js"].map(t=>e.l(t))).then(()=>t(49560)))},840096,e=>{e.v(t=>Promise.all(["static/chunks/844a8bf094cc1dca.js","static/chunks/4e493e91a091199a.js","static/chunks/c775042783ccf8e4.js"].map(t=>e.l(t))).then(()=>t(612987)))},604139,e=>{e.v(t=>Promise.all(["static/chunks/a45e5b4089d83ad4.js","static/chunks/7e2d13a8c33ced33.js","static/chunks/c753bbe362f26398.js","static/chunks/dd196b6cd32d6d20.js","static/chunks/9a25c27deceff30a.js"].map(t=>e.l(t))).then(()=>t(313999)))},717464,e=>{e.v(t=>Promise.all(["static/chunks/7e2d13a8c33ced33.js","static/chunks/dd196b6cd32d6d20.js","static/chunks/f3e0328e36b377af.js"].map(t=>e.l(t))).then(()=>t(895318)))},147891,e=>{e.v(t=>Promise.all(["static/chunks/d8d08f28d5adff35.js"].map(t=>e.l(t))).then(()=>t(125894)))},265626,e=>{e.v(t=>Promise.all(["static/chunks/212a147616620030.js"].map(t=>e.l(t))).then(()=>t(468025)))}]);
@@ -78,7 +78,7 @@ function HomeContent() {
78
78
  try {
79
79
  const session = await createSession({
80
80
  name: `Session ${sessions.length + 1}`,
81
- model: config.defaultModel || 'anthropic/claude-opus-4-5',
81
+ model: config.defaultModel || 'anthropic/claude-opus-4-6',
82
82
  toolApprovals: config.defaultToolApprovals || {},
83
83
  });
84
84
  mutateSessions();
@@ -130,7 +130,7 @@ function HomeContent() {
130
130
  try {
131
131
  const session = await createSession({
132
132
  name: `Session ${sessions.length + 1}`,
133
- model: config?.defaultModel || 'anthropic/claude-opus-4-5',
133
+ model: config?.defaultModel || 'anthropic/claude-opus-4-6',
134
134
  toolApprovals: config?.defaultToolApprovals || {},
135
135
  });
136
136
  mutateSessions();
@@ -11,6 +11,7 @@ import * as path from 'path';
11
11
 
12
12
  // Available models for the UI
13
13
  const AVAILABLE_MODELS = [
14
+ { id: 'anthropic/claude-opus-4-6', name: 'Claude Opus 4.6', provider: 'Anthropic' },
14
15
  { id: 'anthropic/claude-opus-4-5', name: 'Claude Opus 4.5', provider: 'Anthropic' },
15
16
  { id: 'anthropic/claude-sonnet-4', name: 'Claude Sonnet 4', provider: 'Anthropic' },
16
17
  { id: 'anthropic/claude-haiku-4-5', name: 'Claude Haiku 4.5', provider: 'Anthropic' },
@@ -86,7 +87,7 @@ export async function GET() {
86
87
  return NextResponse.json({
87
88
  availableModels: AVAILABLE_MODELS,
88
89
  availableTools: AVAILABLE_TOOLS,
89
- defaultModel: healthData.config?.defaultModel || 'anthropic/claude-opus-4-5',
90
+ defaultModel: healthData.config?.defaultModel || 'anthropic/claude-opus-4-6',
90
91
  defaultToolApprovals: healthData.config?.defaultToolApprovals || {},
91
92
  serverConnected: true,
92
93
  apiKeyConfigured: healthData.apiKeyConfigured ?? false,
@@ -96,7 +97,7 @@ export async function GET() {
96
97
  return NextResponse.json({
97
98
  availableModels: AVAILABLE_MODELS,
98
99
  availableTools: AVAILABLE_TOOLS,
99
- defaultModel: 'anthropic/claude-opus-4-5',
100
+ defaultModel: 'anthropic/claude-opus-4-6',
100
101
  defaultToolApprovals: {},
101
102
  serverConnected: false,
102
103
  apiKeyConfigured: false,