@bkm016/basalt 0.1.27 → 0.1.28

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 (535) hide show
  1. package/{chunk-ydhdewcv.js → chunk-4n4wn5cj.js} +1 -1
  2. package/{chunk-x3g1bzq6.js → chunk-78yngmvf.js} +1 -1
  3. package/{chunk-jxcghx26.js → chunk-a454ntda.js} +2 -2
  4. package/compiled.js +1 -1
  5. package/package.json +1 -1
  6. package/web/{chunk-45ex0e3e.js → chunk-02z7yrhn.js} +1 -1
  7. package/web/chunk-02z7yrhn.js.br +0 -0
  8. package/web/chunk-02z7yrhn.js.gz +0 -0
  9. package/web/chunk-0an1eqtf.js +1 -0
  10. package/web/chunk-0an1eqtf.js.br +0 -0
  11. package/web/chunk-0an1eqtf.js.gz +0 -0
  12. package/web/{chunk-w2gy2tmp.js → chunk-128zy60g.js} +1 -1
  13. package/web/chunk-128zy60g.js.br +0 -0
  14. package/web/chunk-128zy60g.js.gz +0 -0
  15. package/web/{chunk-1fnxbfkf.js → chunk-1e2jy7m2.js} +1 -1
  16. package/web/chunk-1e2jy7m2.js.br +0 -0
  17. package/web/chunk-1e2jy7m2.js.gz +0 -0
  18. package/web/{chunk-f2bb976c.js → chunk-1v3e001f.js} +1 -1
  19. package/web/chunk-1v3e001f.js.br +0 -0
  20. package/web/chunk-1v3e001f.js.gz +0 -0
  21. package/web/{chunk-whfh2wev.js → chunk-214p3rj6.js} +1 -1
  22. package/web/chunk-214p3rj6.js.br +0 -0
  23. package/web/chunk-214p3rj6.js.gz +0 -0
  24. package/web/{chunk-5h3r1hpg.js → chunk-29byd5kf.js} +1 -1
  25. package/web/chunk-29byd5kf.js.br +0 -0
  26. package/web/chunk-29byd5kf.js.gz +0 -0
  27. package/web/{chunk-b4d1948q.js → chunk-3fbh1wxk.js} +1 -1
  28. package/web/chunk-3fbh1wxk.js.br +0 -0
  29. package/web/chunk-3fbh1wxk.js.gz +0 -0
  30. package/web/{chunk-r97hd8wk.js → chunk-3fnrzj1h.js} +1 -1
  31. package/web/chunk-3fnrzj1h.js.br +0 -0
  32. package/web/chunk-3fnrzj1h.js.gz +0 -0
  33. package/web/{chunk-nymsmy8d.js → chunk-3g1095m7.js} +1 -1
  34. package/web/chunk-3g1095m7.js.br +0 -0
  35. package/web/chunk-3g1095m7.js.gz +0 -0
  36. package/web/{chunk-a1cpkzwh.js → chunk-3nn7w4hw.js} +1 -1
  37. package/web/chunk-3nn7w4hw.js.br +0 -0
  38. package/web/chunk-3nn7w4hw.js.gz +0 -0
  39. package/web/{chunk-vwms8c7b.js → chunk-3qa8xcdr.js} +1 -1
  40. package/web/chunk-3qa8xcdr.js.br +0 -0
  41. package/web/chunk-3qa8xcdr.js.gz +0 -0
  42. package/web/{chunk-ctr4kt7p.js → chunk-3x69jfmh.js} +1 -1
  43. package/web/chunk-3x69jfmh.js.br +0 -0
  44. package/web/chunk-3x69jfmh.js.gz +0 -0
  45. package/web/chunk-4v6m77sv.css +1 -0
  46. package/web/chunk-4v6m77sv.css.br +0 -0
  47. package/web/chunk-4v6m77sv.css.gz +0 -0
  48. package/web/chunk-4vk6xma5.js +1 -0
  49. package/web/chunk-4vk6xma5.js.br +0 -0
  50. package/web/chunk-4vk6xma5.js.gz +0 -0
  51. package/web/{chunk-qa0wwff0.js → chunk-50pdas2t.js} +1 -1
  52. package/web/chunk-50pdas2t.js.br +0 -0
  53. package/web/chunk-50pdas2t.js.gz +0 -0
  54. package/web/{chunk-hxsrph02.js → chunk-56a6zytc.js} +94 -94
  55. package/web/chunk-56a6zytc.js.br +0 -0
  56. package/web/chunk-56a6zytc.js.gz +0 -0
  57. package/web/chunk-5ckj4zez.js +1 -0
  58. package/web/chunk-5ckj4zez.js.br +2 -0
  59. package/web/chunk-5ckj4zez.js.gz +0 -0
  60. package/web/{chunk-xjbxndxz.js → chunk-5mr8z024.js} +1 -1
  61. package/web/chunk-5mr8z024.js.br +0 -0
  62. package/web/chunk-5mr8z024.js.gz +0 -0
  63. package/web/{chunk-df9ja645.js → chunk-5q4pemdh.js} +1 -1
  64. package/web/chunk-5q4pemdh.js.br +0 -0
  65. package/web/chunk-5q4pemdh.js.gz +0 -0
  66. package/web/{chunk-g7b4p9k9.js → chunk-63ft76vs.js} +1 -1
  67. package/web/chunk-63ft76vs.js.br +0 -0
  68. package/web/chunk-63ft76vs.js.gz +0 -0
  69. package/web/chunk-67ynxnvq.js +8 -0
  70. package/web/chunk-67ynxnvq.js.br +0 -0
  71. package/web/chunk-67ynxnvq.js.gz +0 -0
  72. package/web/{chunk-3m2nnnk5.js → chunk-6c2pv79h.js} +1 -1
  73. package/web/chunk-6c2pv79h.js.br +0 -0
  74. package/web/chunk-6c2pv79h.js.gz +0 -0
  75. package/web/{chunk-a31z4c14.js → chunk-77nxgqqb.js} +1 -1
  76. package/web/chunk-77nxgqqb.js.br +0 -0
  77. package/web/chunk-77nxgqqb.js.gz +0 -0
  78. package/web/{chunk-68q4nnmc.js → chunk-7c59jb8d.js} +1 -1
  79. package/web/chunk-7c59jb8d.js.br +0 -0
  80. package/web/chunk-7c59jb8d.js.gz +0 -0
  81. package/web/{chunk-btk2h3vh.js → chunk-7ed5jf6e.js} +1 -1
  82. package/web/chunk-7ed5jf6e.js.br +0 -0
  83. package/web/chunk-7ed5jf6e.js.gz +0 -0
  84. package/web/{chunk-x1gr0017.js → chunk-891bpx3c.js} +1 -1
  85. package/web/chunk-891bpx3c.js.br +0 -0
  86. package/web/chunk-891bpx3c.js.gz +0 -0
  87. package/web/{chunk-jnhem746.js → chunk-8h4dc48v.js} +1 -1
  88. package/web/chunk-8h4dc48v.js.br +0 -0
  89. package/web/chunk-8h4dc48v.js.gz +0 -0
  90. package/web/{chunk-82aqq58f.js → chunk-9bs7khrr.js} +1 -1
  91. package/web/chunk-9bs7khrr.js.br +0 -0
  92. package/web/chunk-9bs7khrr.js.gz +0 -0
  93. package/web/{chunk-3ry5cjnp.js → chunk-9ctyqr3n.js} +1 -1
  94. package/web/chunk-9ctyqr3n.js.br +0 -0
  95. package/web/chunk-9ctyqr3n.js.gz +0 -0
  96. package/web/{chunk-508cpafz.js → chunk-9qdx0ekk.js} +2 -2
  97. package/web/chunk-9qdx0ekk.js.br +0 -0
  98. package/web/chunk-9qdx0ekk.js.gz +0 -0
  99. package/web/{chunk-023b3kdx.js → chunk-9r0rnt6d.js} +1 -1
  100. package/web/chunk-9r0rnt6d.js.br +0 -0
  101. package/web/chunk-9r0rnt6d.js.gz +0 -0
  102. package/web/chunk-ac9g3w7v.js +1 -0
  103. package/web/chunk-ac9g3w7v.js.br +0 -0
  104. package/web/chunk-ac9g3w7v.js.gz +0 -0
  105. package/web/{chunk-mvm0gvwj.js → chunk-ackts7ph.js} +1 -1
  106. package/web/chunk-ackts7ph.js.br +0 -0
  107. package/web/chunk-ackts7ph.js.gz +0 -0
  108. package/web/{chunk-wjecy48x.js → chunk-asyqrf38.js} +1 -1
  109. package/web/chunk-asyqrf38.js.br +0 -0
  110. package/web/chunk-asyqrf38.js.gz +0 -0
  111. package/web/{chunk-jw92texh.js → chunk-b13crsv9.js} +1 -1
  112. package/web/chunk-b13crsv9.js.br +0 -0
  113. package/web/chunk-b13crsv9.js.gz +0 -0
  114. package/web/{chunk-nxnkb0w4.js → chunk-brg2zcv5.js} +1 -1
  115. package/web/chunk-brg2zcv5.js.br +0 -0
  116. package/web/chunk-brg2zcv5.js.gz +0 -0
  117. package/web/{chunk-6ktmzq32.js → chunk-cgwnzse1.js} +1 -1
  118. package/web/chunk-cgwnzse1.js.br +0 -0
  119. package/web/chunk-cgwnzse1.js.gz +0 -0
  120. package/web/{chunk-gxwsf4t1.js → chunk-cm4fjb6j.js} +1 -1
  121. package/web/chunk-cm4fjb6j.js.br +0 -0
  122. package/web/chunk-cm4fjb6j.js.gz +0 -0
  123. package/web/{chunk-n0fqhrqv.js → chunk-djrvdzsb.js} +1 -1
  124. package/web/chunk-djrvdzsb.js.br +0 -0
  125. package/web/chunk-djrvdzsb.js.gz +0 -0
  126. package/web/{chunk-7rs26q98.js → chunk-dsffzc1e.js} +1 -1
  127. package/web/chunk-dsffzc1e.js.br +0 -0
  128. package/web/chunk-dsffzc1e.js.gz +0 -0
  129. package/web/{chunk-wqmyjj6w.js → chunk-e1wy8050.js} +1 -1
  130. package/web/chunk-e1wy8050.js.br +0 -0
  131. package/web/chunk-e1wy8050.js.gz +0 -0
  132. package/web/{chunk-z04ncfs3.js → chunk-ebknmxdp.js} +1 -1
  133. package/web/chunk-ebknmxdp.js.br +0 -0
  134. package/web/chunk-ebknmxdp.js.gz +0 -0
  135. package/web/{chunk-crfbqd4d.js → chunk-egjv760p.js} +1 -1
  136. package/web/chunk-egjv760p.js.br +0 -0
  137. package/web/chunk-egjv760p.js.gz +0 -0
  138. package/web/chunk-etpd8y98.js +1 -0
  139. package/web/chunk-etpd8y98.js.br +0 -0
  140. package/web/chunk-etpd8y98.js.gz +0 -0
  141. package/web/chunk-f5kr9p2k.js +1 -0
  142. package/web/chunk-f5kr9p2k.js.br +2 -0
  143. package/web/chunk-f5kr9p2k.js.gz +0 -0
  144. package/web/{chunk-1qd75yjn.js → chunk-fjhqg9ag.js} +1 -1
  145. package/web/chunk-fjhqg9ag.js.br +0 -0
  146. package/web/chunk-fjhqg9ag.js.gz +0 -0
  147. package/web/{chunk-zapwrc5k.js → chunk-fyr6rm2p.js} +1 -1
  148. package/web/chunk-fyr6rm2p.js.br +0 -0
  149. package/web/chunk-fyr6rm2p.js.gz +0 -0
  150. package/web/chunk-grjq1g15.js +1 -0
  151. package/web/chunk-grjq1g15.js.br +0 -0
  152. package/web/chunk-grjq1g15.js.gz +0 -0
  153. package/web/{chunk-eq59kad4.js → chunk-h4bzgvbg.js} +2 -2
  154. package/web/chunk-h4bzgvbg.js.br +0 -0
  155. package/web/chunk-h4bzgvbg.js.gz +0 -0
  156. package/web/{chunk-dy2egpw5.js → chunk-heen0v5d.js} +1 -1
  157. package/web/chunk-heen0v5d.js.br +0 -0
  158. package/web/chunk-heen0v5d.js.gz +0 -0
  159. package/web/{chunk-sb61aqg8.js → chunk-henez15c.js} +1 -1
  160. package/web/chunk-henez15c.js.br +0 -0
  161. package/web/chunk-henez15c.js.gz +0 -0
  162. package/web/chunk-hpcvwdkg.js +1 -0
  163. package/web/chunk-hpcvwdkg.js.br +0 -0
  164. package/web/chunk-hpcvwdkg.js.gz +0 -0
  165. package/web/{chunk-g0s2xxfd.js → chunk-hpvyk6rz.js} +1 -1
  166. package/web/chunk-hpvyk6rz.js.br +0 -0
  167. package/web/chunk-hpvyk6rz.js.gz +0 -0
  168. package/web/chunk-j0dyf1g8.js +2 -0
  169. package/web/chunk-j0dyf1g8.js.br +3 -0
  170. package/web/chunk-j0dyf1g8.js.gz +0 -0
  171. package/web/{chunk-b07y0tzq.js → chunk-jb89v31q.js} +1 -1
  172. package/web/chunk-jb89v31q.js.br +0 -0
  173. package/web/chunk-jb89v31q.js.gz +0 -0
  174. package/web/{chunk-xsfmh8rr.js → chunk-jb949ewp.js} +1 -1
  175. package/web/chunk-jb949ewp.js.br +0 -0
  176. package/web/chunk-jb949ewp.js.gz +0 -0
  177. package/web/{chunk-n1p03ng0.js → chunk-je4bf95v.js} +1 -1
  178. package/web/chunk-je4bf95v.js.br +0 -0
  179. package/web/chunk-je4bf95v.js.gz +0 -0
  180. package/web/{chunk-wv83gygp.js → chunk-js6c1973.js} +1 -1
  181. package/web/chunk-js6c1973.js.br +0 -0
  182. package/web/chunk-js6c1973.js.gz +0 -0
  183. package/web/chunk-k140nr54.js +1 -0
  184. package/web/chunk-k140nr54.js.br +0 -0
  185. package/web/chunk-k140nr54.js.gz +0 -0
  186. package/web/{chunk-hh6vpvar.js → chunk-kknrn2wb.js} +1 -1
  187. package/web/chunk-kknrn2wb.js.br +0 -0
  188. package/web/chunk-kknrn2wb.js.gz +0 -0
  189. package/web/{chunk-ghr3jf15.js → chunk-mhtzdq9d.js} +1 -1
  190. package/web/chunk-mhtzdq9d.js.br +0 -0
  191. package/web/chunk-mhtzdq9d.js.gz +0 -0
  192. package/web/{chunk-22jfhjk3.js → chunk-mrnj2k3v.js} +1 -1
  193. package/web/chunk-mrnj2k3v.js.br +0 -0
  194. package/web/chunk-mrnj2k3v.js.gz +0 -0
  195. package/web/{chunk-g1k9nggh.js → chunk-my0k5w7f.js} +1 -1
  196. package/web/chunk-my0k5w7f.js.br +0 -0
  197. package/web/chunk-my0k5w7f.js.gz +0 -0
  198. package/web/{chunk-58gh3tbh.js → chunk-n08727ym.js} +1 -1
  199. package/web/chunk-n08727ym.js.br +0 -0
  200. package/web/chunk-n08727ym.js.gz +0 -0
  201. package/web/{chunk-d7nrrcwp.js → chunk-n5ghyxwk.js} +1 -1
  202. package/web/chunk-n5ghyxwk.js.br +0 -0
  203. package/web/chunk-n5ghyxwk.js.gz +0 -0
  204. package/web/{chunk-3crfxxst.js → chunk-nt21rjrm.js} +2 -2
  205. package/web/chunk-nt21rjrm.js.br +0 -0
  206. package/web/chunk-nt21rjrm.js.gz +0 -0
  207. package/web/{chunk-j2gkg76r.js → chunk-nzgj9qx5.js} +1 -1
  208. package/web/chunk-nzgj9qx5.js.br +0 -0
  209. package/web/chunk-nzgj9qx5.js.gz +0 -0
  210. package/web/{chunk-20v068s6.js → chunk-p9wm0dv3.js} +1 -1
  211. package/web/chunk-p9wm0dv3.js.br +0 -0
  212. package/web/chunk-p9wm0dv3.js.gz +0 -0
  213. package/web/{chunk-xa9m0mh2.js → chunk-pqh9yszs.js} +1 -1
  214. package/web/chunk-pqh9yszs.js.br +0 -0
  215. package/web/chunk-pqh9yszs.js.gz +0 -0
  216. package/web/chunk-q0vsqq43.js +1 -0
  217. package/web/chunk-q0vsqq43.js.br +0 -0
  218. package/web/chunk-q0vsqq43.js.gz +0 -0
  219. package/web/{chunk-tefm9md2.js → chunk-qv5d69fn.js} +1 -1
  220. package/web/chunk-qv5d69fn.js.br +0 -0
  221. package/web/chunk-qv5d69fn.js.gz +0 -0
  222. package/web/{chunk-37hn49td.js → chunk-r7afv22v.js} +1 -1
  223. package/web/chunk-r7afv22v.js.br +0 -0
  224. package/web/chunk-r7afv22v.js.gz +0 -0
  225. package/web/{chunk-6x9r1z9z.js → chunk-rc6at4k5.js} +1 -1
  226. package/web/chunk-rc6at4k5.js.br +0 -0
  227. package/web/chunk-rc6at4k5.js.gz +0 -0
  228. package/web/{chunk-n033azqs.js → chunk-rnsvrehz.js} +1 -1
  229. package/web/chunk-rnsvrehz.js.br +0 -0
  230. package/web/chunk-rnsvrehz.js.gz +0 -0
  231. package/web/chunk-rsmhn1fq.js +1 -0
  232. package/web/chunk-rsmhn1fq.js.br +0 -0
  233. package/web/chunk-rsmhn1fq.js.gz +0 -0
  234. package/web/chunk-s1p271av.js +1 -0
  235. package/web/chunk-s1p271av.js.br +0 -0
  236. package/web/chunk-s1p271av.js.gz +0 -0
  237. package/web/chunk-sc4kwbnh.js +1 -0
  238. package/web/chunk-sc4kwbnh.js.br +2 -0
  239. package/web/chunk-sc4kwbnh.js.gz +0 -0
  240. package/web/{chunk-cgt871p9.js → chunk-scebh2ee.js} +1 -1
  241. package/web/chunk-scebh2ee.js.br +0 -0
  242. package/web/chunk-scebh2ee.js.gz +0 -0
  243. package/web/{chunk-c1s7faqj.js → chunk-shtkgxz6.js} +1 -1
  244. package/web/chunk-shtkgxz6.js.br +0 -0
  245. package/web/chunk-shtkgxz6.js.gz +0 -0
  246. package/web/{chunk-nb73fq72.js → chunk-spmfwbhd.js} +1 -1
  247. package/web/chunk-spmfwbhd.js.br +0 -0
  248. package/web/chunk-spmfwbhd.js.gz +0 -0
  249. package/web/chunk-svtenejf.js +1 -0
  250. package/web/chunk-svtenejf.js.br +0 -0
  251. package/web/chunk-svtenejf.js.gz +0 -0
  252. package/web/{chunk-qtwjt5mm.js → chunk-t9z1bp8j.js} +1 -1
  253. package/web/chunk-t9z1bp8j.js.br +0 -0
  254. package/web/chunk-t9z1bp8j.js.gz +0 -0
  255. package/web/chunk-tnttdgsc.js +1 -0
  256. package/web/chunk-tnttdgsc.js.br +0 -0
  257. package/web/chunk-tnttdgsc.js.gz +0 -0
  258. package/web/{chunk-6wxxypbv.js → chunk-txdkp6yc.js} +1 -1
  259. package/web/chunk-txdkp6yc.js.br +0 -0
  260. package/web/chunk-txdkp6yc.js.gz +0 -0
  261. package/web/{chunk-gv4zh4er.js → chunk-v34mwgx8.js} +1 -1
  262. package/web/chunk-v34mwgx8.js.br +0 -0
  263. package/web/chunk-v34mwgx8.js.gz +0 -0
  264. package/web/{chunk-00a6amwf.js → chunk-vtp01n96.js} +1 -1
  265. package/web/chunk-vtp01n96.js.br +0 -0
  266. package/web/chunk-vtp01n96.js.gz +0 -0
  267. package/web/{chunk-zs7physk.js → chunk-vx1qmkbm.js} +1 -1
  268. package/web/chunk-vx1qmkbm.js.br +0 -0
  269. package/web/chunk-vx1qmkbm.js.gz +0 -0
  270. package/web/chunk-vxx451tt.js +1 -0
  271. package/web/chunk-vxx451tt.js.br +0 -0
  272. package/web/chunk-vxx451tt.js.gz +0 -0
  273. package/web/{chunk-hxqqy585.js → chunk-w8epfc0c.js} +1 -1
  274. package/web/chunk-w8epfc0c.js.br +0 -0
  275. package/web/chunk-w8epfc0c.js.gz +0 -0
  276. package/web/{chunk-shtvhd61.js → chunk-whgh2r7d.js} +1 -1
  277. package/web/chunk-whgh2r7d.js.br +0 -0
  278. package/web/chunk-whgh2r7d.js.gz +0 -0
  279. package/web/chunk-x0p1n5ws.js +1 -0
  280. package/web/chunk-x0p1n5ws.js.br +2 -0
  281. package/web/chunk-x0p1n5ws.js.gz +0 -0
  282. package/web/{chunk-jcbheqv1.js → chunk-x2tk9zeq.js} +1 -1
  283. package/web/chunk-x2tk9zeq.js.br +0 -0
  284. package/web/chunk-x2tk9zeq.js.gz +0 -0
  285. package/web/chunk-xbt045kt.js +1 -0
  286. package/web/chunk-xbt045kt.js.br +2 -0
  287. package/web/chunk-xbt045kt.js.gz +0 -0
  288. package/web/{chunk-f05s9gsw.js → chunk-xh3agbvb.js} +1 -1
  289. package/web/chunk-xh3agbvb.js.br +0 -0
  290. package/web/chunk-xh3agbvb.js.gz +0 -0
  291. package/web/{chunk-407zrkgx.js → chunk-xpw1spgj.js} +1 -1
  292. package/web/chunk-xpw1spgj.js.br +0 -0
  293. package/web/chunk-xpw1spgj.js.gz +0 -0
  294. package/web/{chunk-scwrkcdw.js → chunk-yp2jydfj.js} +1 -1
  295. package/web/chunk-yp2jydfj.js.br +0 -0
  296. package/web/chunk-yp2jydfj.js.gz +0 -0
  297. package/web/{chunk-g26mzwzc.js → chunk-yxp1es3b.js} +1 -1
  298. package/web/chunk-yxp1es3b.js.br +0 -0
  299. package/web/chunk-yxp1es3b.js.gz +0 -0
  300. package/web/{chunk-fmbc7t17.js → chunk-yzrww95m.js} +1 -1
  301. package/web/chunk-yzrww95m.js.br +0 -0
  302. package/web/chunk-yzrww95m.js.gz +0 -0
  303. package/web/{chunk-qgv81n98.js → chunk-z502b5p0.js} +1 -1
  304. package/web/chunk-z502b5p0.js.br +0 -0
  305. package/web/chunk-z502b5p0.js.gz +0 -0
  306. package/web/chunk-zny7cya7.js +1 -0
  307. package/web/chunk-zny7cya7.js.br +2 -0
  308. package/web/chunk-zny7cya7.js.gz +0 -0
  309. package/web/index.html +1 -1
  310. package/web/index.html.br +0 -0
  311. package/web/index.html.gz +0 -0
  312. package/web/chunk-00a6amwf.js.br +0 -0
  313. package/web/chunk-00a6amwf.js.gz +0 -0
  314. package/web/chunk-023b3kdx.js.br +0 -0
  315. package/web/chunk-023b3kdx.js.gz +0 -0
  316. package/web/chunk-1bzdt1n8.js +0 -1
  317. package/web/chunk-1bzdt1n8.js.br +0 -2
  318. package/web/chunk-1bzdt1n8.js.gz +0 -0
  319. package/web/chunk-1fnxbfkf.js.br +0 -0
  320. package/web/chunk-1fnxbfkf.js.gz +0 -0
  321. package/web/chunk-1qd75yjn.js.br +0 -0
  322. package/web/chunk-1qd75yjn.js.gz +0 -0
  323. package/web/chunk-20v068s6.js.br +0 -0
  324. package/web/chunk-20v068s6.js.gz +0 -0
  325. package/web/chunk-22jfhjk3.js.br +0 -0
  326. package/web/chunk-22jfhjk3.js.gz +0 -0
  327. package/web/chunk-37hn49td.js.br +0 -0
  328. package/web/chunk-37hn49td.js.gz +0 -0
  329. package/web/chunk-3crfxxst.js.br +0 -0
  330. package/web/chunk-3crfxxst.js.gz +0 -0
  331. package/web/chunk-3hg9a6xa.js +0 -1
  332. package/web/chunk-3hg9a6xa.js.br +0 -0
  333. package/web/chunk-3hg9a6xa.js.gz +0 -0
  334. package/web/chunk-3m2nnnk5.js.br +0 -0
  335. package/web/chunk-3m2nnnk5.js.gz +0 -0
  336. package/web/chunk-3ry5cjnp.js.br +0 -0
  337. package/web/chunk-3ry5cjnp.js.gz +0 -0
  338. package/web/chunk-407zrkgx.js.br +0 -0
  339. package/web/chunk-407zrkgx.js.gz +0 -0
  340. package/web/chunk-43e1ste5.js +0 -1
  341. package/web/chunk-43e1ste5.js.br +0 -0
  342. package/web/chunk-43e1ste5.js.gz +0 -0
  343. package/web/chunk-45ex0e3e.js.br +0 -0
  344. package/web/chunk-45ex0e3e.js.gz +0 -0
  345. package/web/chunk-508cpafz.js.br +0 -0
  346. package/web/chunk-508cpafz.js.gz +0 -0
  347. package/web/chunk-538r4sey.js +0 -1
  348. package/web/chunk-538r4sey.js.br +0 -0
  349. package/web/chunk-538r4sey.js.gz +0 -0
  350. package/web/chunk-55zs0yq1.js +0 -1
  351. package/web/chunk-55zs0yq1.js.br +0 -0
  352. package/web/chunk-55zs0yq1.js.gz +0 -0
  353. package/web/chunk-58gh3tbh.js.br +0 -0
  354. package/web/chunk-58gh3tbh.js.gz +0 -0
  355. package/web/chunk-5h3r1hpg.js.br +0 -0
  356. package/web/chunk-5h3r1hpg.js.gz +0 -0
  357. package/web/chunk-68q4nnmc.js.br +0 -3
  358. package/web/chunk-68q4nnmc.js.gz +0 -0
  359. package/web/chunk-6ktmzq32.js.br +0 -0
  360. package/web/chunk-6ktmzq32.js.gz +0 -0
  361. package/web/chunk-6ry6x1ez.js +0 -1
  362. package/web/chunk-6ry6x1ez.js.br +0 -0
  363. package/web/chunk-6ry6x1ez.js.gz +0 -0
  364. package/web/chunk-6wxxypbv.js.br +0 -0
  365. package/web/chunk-6wxxypbv.js.gz +0 -0
  366. package/web/chunk-6x9r1z9z.js.br +0 -0
  367. package/web/chunk-6x9r1z9z.js.gz +0 -0
  368. package/web/chunk-7devrtv4.js +0 -2
  369. package/web/chunk-7devrtv4.js.br +0 -3
  370. package/web/chunk-7devrtv4.js.gz +0 -0
  371. package/web/chunk-7rs26q98.js.br +0 -0
  372. package/web/chunk-7rs26q98.js.gz +0 -0
  373. package/web/chunk-82aqq58f.js.br +0 -0
  374. package/web/chunk-82aqq58f.js.gz +0 -0
  375. package/web/chunk-a1cpkzwh.js.br +0 -0
  376. package/web/chunk-a1cpkzwh.js.gz +0 -0
  377. package/web/chunk-a31z4c14.js.br +0 -0
  378. package/web/chunk-a31z4c14.js.gz +0 -0
  379. package/web/chunk-b07y0tzq.js.br +0 -0
  380. package/web/chunk-b07y0tzq.js.gz +0 -0
  381. package/web/chunk-b4d1948q.js.br +0 -0
  382. package/web/chunk-b4d1948q.js.gz +0 -0
  383. package/web/chunk-btk2h3vh.js.br +0 -0
  384. package/web/chunk-btk2h3vh.js.gz +0 -0
  385. package/web/chunk-c1s7faqj.js.br +0 -0
  386. package/web/chunk-c1s7faqj.js.gz +0 -0
  387. package/web/chunk-cgt871p9.js.br +0 -0
  388. package/web/chunk-cgt871p9.js.gz +0 -0
  389. package/web/chunk-crfbqd4d.js.br +0 -0
  390. package/web/chunk-crfbqd4d.js.gz +0 -0
  391. package/web/chunk-ctr4kt7p.js.br +0 -0
  392. package/web/chunk-ctr4kt7p.js.gz +0 -0
  393. package/web/chunk-d6wcabaa.css +0 -1
  394. package/web/chunk-d6wcabaa.css.br +0 -0
  395. package/web/chunk-d6wcabaa.css.gz +0 -0
  396. package/web/chunk-d7nrrcwp.js.br +0 -0
  397. package/web/chunk-d7nrrcwp.js.gz +0 -0
  398. package/web/chunk-df9ja645.js.br +0 -0
  399. package/web/chunk-df9ja645.js.gz +0 -0
  400. package/web/chunk-dhxc6xe9.js +0 -1
  401. package/web/chunk-dhxc6xe9.js.br +0 -2
  402. package/web/chunk-dhxc6xe9.js.gz +0 -0
  403. package/web/chunk-dy2egpw5.js.br +0 -0
  404. package/web/chunk-dy2egpw5.js.gz +0 -0
  405. package/web/chunk-eq59kad4.js.br +0 -0
  406. package/web/chunk-eq59kad4.js.gz +0 -0
  407. package/web/chunk-f05s9gsw.js.br +0 -0
  408. package/web/chunk-f05s9gsw.js.gz +0 -0
  409. package/web/chunk-f2bb976c.js.br +0 -0
  410. package/web/chunk-f2bb976c.js.gz +0 -0
  411. package/web/chunk-f4aabnnv.js +0 -1
  412. package/web/chunk-f4aabnnv.js.br +0 -0
  413. package/web/chunk-f4aabnnv.js.gz +0 -0
  414. package/web/chunk-fmbc7t17.js.br +0 -0
  415. package/web/chunk-fmbc7t17.js.gz +0 -0
  416. package/web/chunk-g0s2xxfd.js.br +0 -0
  417. package/web/chunk-g0s2xxfd.js.gz +0 -0
  418. package/web/chunk-g1k9nggh.js.br +0 -0
  419. package/web/chunk-g1k9nggh.js.gz +0 -0
  420. package/web/chunk-g26mzwzc.js.br +0 -0
  421. package/web/chunk-g26mzwzc.js.gz +0 -0
  422. package/web/chunk-g7b4p9k9.js.br +0 -0
  423. package/web/chunk-g7b4p9k9.js.gz +0 -0
  424. package/web/chunk-ghr3jf15.js.br +0 -0
  425. package/web/chunk-ghr3jf15.js.gz +0 -0
  426. package/web/chunk-gv4zh4er.js.br +0 -0
  427. package/web/chunk-gv4zh4er.js.gz +0 -0
  428. package/web/chunk-gw0e69yj.js +0 -1
  429. package/web/chunk-gw0e69yj.js.br +0 -0
  430. package/web/chunk-gw0e69yj.js.gz +0 -0
  431. package/web/chunk-gxwsf4t1.js.br +0 -0
  432. package/web/chunk-gxwsf4t1.js.gz +0 -0
  433. package/web/chunk-hh6vpvar.js.br +0 -0
  434. package/web/chunk-hh6vpvar.js.gz +0 -0
  435. package/web/chunk-hxqqy585.js.br +0 -0
  436. package/web/chunk-hxqqy585.js.gz +0 -0
  437. package/web/chunk-hxsrph02.js.br +0 -0
  438. package/web/chunk-hxsrph02.js.gz +0 -0
  439. package/web/chunk-hxx6ad4x.js +0 -1
  440. package/web/chunk-hxx6ad4x.js.br +0 -0
  441. package/web/chunk-hxx6ad4x.js.gz +0 -0
  442. package/web/chunk-j2gkg76r.js.br +0 -0
  443. package/web/chunk-j2gkg76r.js.gz +0 -0
  444. package/web/chunk-jcbheqv1.js.br +0 -0
  445. package/web/chunk-jcbheqv1.js.gz +0 -0
  446. package/web/chunk-jhx6v9es.js +0 -1
  447. package/web/chunk-jhx6v9es.js.br +0 -0
  448. package/web/chunk-jhx6v9es.js.gz +0 -0
  449. package/web/chunk-jnhem746.js.br +0 -0
  450. package/web/chunk-jnhem746.js.gz +0 -0
  451. package/web/chunk-jr796qsk.js +0 -1
  452. package/web/chunk-jr796qsk.js.br +0 -0
  453. package/web/chunk-jr796qsk.js.gz +0 -0
  454. package/web/chunk-jw92texh.js.br +0 -0
  455. package/web/chunk-jw92texh.js.gz +0 -0
  456. package/web/chunk-mvm0gvwj.js.br +0 -0
  457. package/web/chunk-mvm0gvwj.js.gz +0 -0
  458. package/web/chunk-n033azqs.js.br +0 -0
  459. package/web/chunk-n033azqs.js.gz +0 -0
  460. package/web/chunk-n0fqhrqv.js.br +0 -0
  461. package/web/chunk-n0fqhrqv.js.gz +0 -0
  462. package/web/chunk-n1p03ng0.js.br +0 -0
  463. package/web/chunk-n1p03ng0.js.gz +0 -0
  464. package/web/chunk-nb73fq72.js.br +0 -0
  465. package/web/chunk-nb73fq72.js.gz +0 -0
  466. package/web/chunk-nxnkb0w4.js.br +0 -0
  467. package/web/chunk-nxnkb0w4.js.gz +0 -0
  468. package/web/chunk-nymsmy8d.js.br +0 -0
  469. package/web/chunk-nymsmy8d.js.gz +0 -0
  470. package/web/chunk-nzqxb0ea.js +0 -1
  471. package/web/chunk-nzqxb0ea.js.br +0 -0
  472. package/web/chunk-nzqxb0ea.js.gz +0 -0
  473. package/web/chunk-p26b4zdm.js +0 -1
  474. package/web/chunk-p26b4zdm.js.br +0 -0
  475. package/web/chunk-p26b4zdm.js.gz +0 -0
  476. package/web/chunk-qa0wwff0.js.br +0 -0
  477. package/web/chunk-qa0wwff0.js.gz +0 -0
  478. package/web/chunk-qgv81n98.js.br +0 -0
  479. package/web/chunk-qgv81n98.js.gz +0 -0
  480. package/web/chunk-qtwjt5mm.js.br +0 -0
  481. package/web/chunk-qtwjt5mm.js.gz +0 -0
  482. package/web/chunk-r49dy5vx.js +0 -1
  483. package/web/chunk-r49dy5vx.js.br +0 -0
  484. package/web/chunk-r49dy5vx.js.gz +0 -0
  485. package/web/chunk-r97hd8wk.js.br +0 -0
  486. package/web/chunk-r97hd8wk.js.gz +0 -0
  487. package/web/chunk-sb61aqg8.js.br +0 -0
  488. package/web/chunk-sb61aqg8.js.gz +0 -0
  489. package/web/chunk-scwrkcdw.js.br +0 -0
  490. package/web/chunk-scwrkcdw.js.gz +0 -0
  491. package/web/chunk-shtvhd61.js.br +0 -0
  492. package/web/chunk-shtvhd61.js.gz +0 -0
  493. package/web/chunk-t5e9vh89.js +0 -1
  494. package/web/chunk-t5e9vh89.js.br +0 -0
  495. package/web/chunk-t5e9vh89.js.gz +0 -0
  496. package/web/chunk-tefm9md2.js.br +0 -0
  497. package/web/chunk-tefm9md2.js.gz +0 -0
  498. package/web/chunk-tr7fg3tv.js +0 -8
  499. package/web/chunk-tr7fg3tv.js.br +0 -0
  500. package/web/chunk-tr7fg3tv.js.gz +0 -0
  501. package/web/chunk-v5xf47q0.js +0 -1
  502. package/web/chunk-v5xf47q0.js.br +0 -0
  503. package/web/chunk-v5xf47q0.js.gz +0 -0
  504. package/web/chunk-vwms8c7b.js.br +0 -0
  505. package/web/chunk-vwms8c7b.js.gz +0 -0
  506. package/web/chunk-w2gy2tmp.js.br +0 -0
  507. package/web/chunk-w2gy2tmp.js.gz +0 -0
  508. package/web/chunk-whfh2wev.js.br +0 -0
  509. package/web/chunk-whfh2wev.js.gz +0 -0
  510. package/web/chunk-wjecy48x.js.br +0 -0
  511. package/web/chunk-wjecy48x.js.gz +0 -0
  512. package/web/chunk-wqmyjj6w.js.br +0 -0
  513. package/web/chunk-wqmyjj6w.js.gz +0 -0
  514. package/web/chunk-wv83gygp.js.br +0 -0
  515. package/web/chunk-wv83gygp.js.gz +0 -0
  516. package/web/chunk-x1gr0017.js.br +0 -0
  517. package/web/chunk-x1gr0017.js.gz +0 -0
  518. package/web/chunk-xa9m0mh2.js.br +0 -0
  519. package/web/chunk-xa9m0mh2.js.gz +0 -0
  520. package/web/chunk-xjbxndxz.js.br +0 -0
  521. package/web/chunk-xjbxndxz.js.gz +0 -0
  522. package/web/chunk-xsfmh8rr.js.br +0 -0
  523. package/web/chunk-xsfmh8rr.js.gz +0 -0
  524. package/web/chunk-xvsb3w1f.js +0 -1
  525. package/web/chunk-xvsb3w1f.js.br +0 -0
  526. package/web/chunk-xvsb3w1f.js.gz +0 -0
  527. package/web/chunk-ynpx7j96.js +0 -1
  528. package/web/chunk-ynpx7j96.js.br +0 -0
  529. package/web/chunk-ynpx7j96.js.gz +0 -0
  530. package/web/chunk-z04ncfs3.js.br +0 -0
  531. package/web/chunk-z04ncfs3.js.gz +0 -0
  532. package/web/chunk-zapwrc5k.js.br +0 -0
  533. package/web/chunk-zapwrc5k.js.gz +0 -0
  534. package/web/chunk-zs7physk.js.br +0 -0
  535. package/web/chunk-zs7physk.js.gz +0 -0
@@ -1 +1 @@
1
- import{s,o,a,Xt,m,e,n,b,ui,l,re,ur,ft,he,ya,ce}from"./chunk-hxsrph02.js";var ke=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]],L=l("at-sign",ke);var Ce=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],de=l("file-code-2",Ce);var we=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],ue=l("maximize-2",we);var Me=[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]],Z=l("notebook-pen",Me);var Ie=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],pe=l("user",Ie);var w={approve:{label:"通过",text:"text-success",ring:"ring-success/80",soft:"bg-success/12 text-success"},reject:{label:"反对",text:"text-danger",ring:"ring-danger/80",soft:"bg-danger/12 text-danger"},abstain:{label:"弃权",text:"text-dim",ring:"ring-line-strong",soft:"bg-raised text-dim"},pending:{label:"未表态",text:"text-faint",ring:"ring-line",soft:"bg-raised text-faint"}},ze={thinking:"思考中",reading:"查阅中",speaking:"发言中",idle:"等待中",error:"出错",aborted:"已中止"},F={success:"text-success",warning:"text-warning",danger:"text-danger",neutral:"text-faint"},ee={success:"bg-success",warning:"bg-warning",danger:"bg-danger",neutral:"bg-faint"};function V(t){return t==="thinking"||t==="reading"||t==="speaking"}function K(t){let p=V(t.status);return{busy:p,text:p&&t.activeTool?t.activeTool:ze[t.status]}}function te(t){let p=t.members.filter((v)=>v.verdict==="approve").length,f=t.members.filter((v)=>v.verdict==="reject").length;if(t.state==="running"){if(t.phase==="research")return{tone:"warning",label:"调研中"};if(t.phase==="opening")return{tone:"warning",label:"开场表态"};return{tone:"warning",label:"群聊交流"}}if(t.state==="consensus"){if(p===t.members.length)return{tone:"success",label:"全票通过"};if(f===t.members.length)return{tone:"danger",label:"全票反对"};if(f>p)return{tone:"danger",label:"共识:反对"};return{tone:"success",label:"共识:通过"}}if(t.state==="diverged")return{tone:"warning",label:"存在分歧"};if(t.state==="error")return{tone:"danger",label:"失败"};return{tone:"neutral",label:"已中止"}}function W(t){let p=Math.max(1,Math.round(t/1000));if(p<60)return`${p}s`;return`${Math.floor(p/60)}m ${String(p%60).padStart(2,"0")}s`}var De={research:"调研",opening:"开场表态",discussion:"群聊交流"};function G(t){let{cn:p}=b(),{room:f}=t,v=te(f),g=f.state==="running",h=f.research?["research","opening","discussion"]:["opening","discussion"],i=g?h.indexOf(f.phase==="closed"?"discussion":f.phase??"discussion"):-1,N=[...h.map((d,u)=>({key:d,label:De[d],done:!g||u<i,active:u===i})),{key:"closed",label:g?"结论":v.label,done:!g,active:!1}];return e("ol",{className:p("flex min-w-0 gap-1",t.className),children:N.map((d,u)=>{let c=u===N.length-1&&!g;return n("li",{className:"min-w-0 flex-1",children:[e("span",{className:p("block h-[3px] rounded-full transition-colors duration-300",c?ee[v.tone]:d.active?"bg-accent animate-pulse":d.done?"bg-line-strong":"bg-line/60")}),e("span",{className:p("mt-1.5 block truncate text-2xs",c?p("font-medium",F[v.tone]):d.active?"font-medium text-ink":d.done?"text-dim":"text-faint"),children:d.label})]},d.key)})})}function fe(t){let{Collapsible:p,CollapsibleContent:f,Composer:v,Markdown:g,ModelIcon:h,ScrollArea:i,SessionView:N,cn:d,confirm:u}=b(),{room:c,onClose:C}=t,[M,x]=a(!1),[J,D]=a(""),[R,H]=a(!1),[_,E]=a(),[S,B]=a(!1),[y,I]=a(!0),[T,z]=a(),ne=o(!1);ne.current=T!==void 0;let[U,X]=a(),[se,A]=a(!1),ae=o(!1);ae.current=U!==void 0;let oe=(r)=>{A(!1),X(r)},ie=o(null),Y=o(null),P=c.state==="running",j=te(c),ge=new Map(c.members.map((r)=>[r.id,r]));s(()=>{let r=(me)=>{if(me.key!=="Escape"||me.defaultPrevented||ne.current)return;if(ae.current)A(!0);else x(!0)},k=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r),document.body.style.overflow=k}},[]);let le=c.messages.length;s(()=>{let r=Y.current;if(!r||!y||le===0)return;r.scrollTo({top:r.scrollHeight,behavior:"smooth"})},[le,y]);let be=async(r)=>{await t.onPost(r),I(!0)},ve=async()=>{if(R)return;if(!await u({title:"中止理事会?",description:"所有成员会立即停止,已有发言保留。",action:"中止",danger:!0}))return;H(!0),E(void 0);try{await t.onAbort()}catch(k){E(k instanceof Error?k.message:"中止理事会失败")}finally{H(!1)}},Q=(r)=>{X(void 0),D((k)=>k.includes(`@${r}`)?k:`${k?`${k.trimEnd()} `:""}@${r} `),requestAnimationFrame(()=>ie.current?.focus())},Ne=c.members.filter((r)=>r.verdict==="approve").length,ye=c.members.filter((r)=>r.verdict==="reject").length,q=c.members.find((r)=>r.id===T),O=c.members.find((r)=>r.id===U);return Xt(n("div",{role:"dialog","aria-modal":"true","aria-label":`理事会:${c.topic}`,onAnimationEnd:(r)=>{if(M&&r.target===r.currentTarget)C()},className:d("fixed inset-0 z-50 flex flex-col bg-bg pt-[env(safe-area-inset-top)] text-ink",M?"pointer-events-none animate-dialog-out":"animate-dialog-in"),children:[n(p,{open:S,onOpenChange:B,className:"shrink-0 border-b border-line px-4 pt-3 pb-3 sm:px-6",children:[n("div",{className:"flex items-start gap-3",children:[n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex items-center gap-3 text-2xs text-faint",children:[e("span",{className:"font-medium tracking-[0.2em] text-dim",children:"COUNCIL"}),e("span",{className:"tabular-nums",children:W(t.elapsedMs)}),n("span",{className:"tabular-nums",children:[c.messages.length," 条发言"]})]}),n("button",{type:"button","aria-expanded":S,onClick:()=>B((r)=>!r),className:"mt-0.5 flex max-w-full cursor-pointer items-start gap-1.5 text-left md:items-center",children:[e("h2",{className:"line-clamp-2 text-md leading-snug font-semibold md:truncate md:text-lg",children:c.topic}),e(he,{className:d("mt-0.5 size-4 shrink-0 text-faint transition-transform duration-300 ease-out-quint md:mt-0",!S&&"-rotate-90")})]})]}),n("div",{className:"flex shrink-0 items-center gap-1",children:[n("span",{className:d("inline-flex items-center gap-1.5 rounded-full border border-line px-2.5 py-1 text-xs font-medium",F[j.tone]),children:[e("span",{className:d("size-1.5 rounded-full",ee[j.tone],P&&"animate-pulse")}),j.label]}),e("button",{type:"button","aria-label":"关闭理事会页面",title:"关闭(Esc)",onClick:()=>x(!0),className:"ml-1 inline-flex size-10 -mr-2 cursor-pointer items-center justify-center rounded-full text-faint transition-colors hover:bg-raised hover:text-ink md:size-8 md:mr-0",children:e(ce,{className:"size-4"})})]})]}),e(f,{children:e("div",{className:"mt-2 max-h-[40dvh] overflow-y-auto overscroll-contain rounded-xl bg-panel px-3.5 py-2.5 text-ui leading-relaxed text-dim md:max-h-48",children:e(g,{text:c.brief})})}),e(G,{room:c,className:"mt-3"})]}),n("div",{className:"flex min-h-0 flex-1 flex-col md:flex-row",children:[e("div",{className:"flex shrink-0 gap-2 overflow-x-auto overscroll-x-contain border-b border-line px-4 py-2.5 [scrollbar-width:none] md:hidden",children:c.members.map((r)=>e(Se,{member:r,onSelect:()=>z(r.id)},r.id))}),n("aside",{className:"hidden w-72 shrink-0 flex-col gap-2 overflow-y-auto border-r border-line p-4 md:flex",children:[n("div",{className:"flex items-center justify-between text-2xs text-faint",children:[e("span",{className:"font-medium tracking-wide",children:"席位"}),n("span",{className:"tabular-nums",children:[e("span",{className:"text-success",children:Ne})," / ",e("span",{className:"text-danger",children:ye})," /"," ",c.members.length]})]}),c.members.map((r)=>e(Re,{member:r,viewing:r.id===U,onMention:()=>Q(r.name),onOpen:()=>r.id===U?A(!0):oe(r.id)},r.id))]}),O&&n("main",{onAnimationEnd:(r)=>{if(!se||r.target!==r.currentTarget)return;A(!1),X(void 0)},className:d("flex min-h-0 min-w-0 flex-1 flex-col",se?"pointer-events-none animate-overlay-out":"animate-fade"),children:[n("div",{className:"flex shrink-0 items-center gap-2 border-b border-line px-3 py-2 sm:px-4",children:[n("button",{type:"button",onClick:()=>A(!0),className:"inline-flex h-8 cursor-pointer items-center gap-1.5 rounded-lg px-2 text-ui text-dim transition-colors hover:bg-raised hover:text-ink",children:[e(ur,{className:"size-4"}),"群聊"]}),e("span",{className:"text-line-strong",children:"/"}),n("span",{className:"flex min-w-0 flex-1 items-center gap-1.5 text-ui font-medium",children:[e(h,{modelID:O.model,className:"size-4 shrink-0",size:16}),n("span",{className:"truncate",children:[O.name," 的推理过程"]})]}),e("button",{type:"button","aria-label":"在完整页面打开",title:"在完整页面打开",onClick:()=>t.onOpenMember(O.childSessionID),className:"inline-flex size-8 cursor-pointer items-center justify-center rounded-lg text-faint transition-colors hover:bg-raised hover:text-ink",children:e(ft,{className:"size-4"})})]}),e(N,{sessionID:O.childSessionID},O.childSessionID)]}),n("main",{className:d("min-h-0 min-w-0 flex-1 flex-col animate-fade",O?"hidden":"flex"),children:[e(i,{viewportRef:Y,onScrollCapture:(r)=>{let k=Y.current;if(!k||r.target!==k)return;I(k.scrollHeight-k.scrollTop-k.clientHeight<80)},children:n("div",{className:"mx-auto w-full max-w-3xl px-4 py-4 sm:px-6 md:py-5",children:[c.messages.length===0?n("div",{className:"flex flex-col items-center justify-center gap-3 py-24 text-center text-faint",children:[P?e(re,{className:"size-5 animate-spin"}):null,e("p",{className:"text-sm",children:P?c.phase==="research"?"成员正在各自调研,笔记不会进入群聊":"成员正在独立准备开场观点,彼此不可见":"这场理事会没有产生发言"})]}):e("ol",{className:"space-y-5",children:c.messages.map((r)=>e(Te,{message:r,membersByID:ge,onMention:()=>Q(r.senderName)},r.floor))}),c.summary&&!P&&n("section",{className:"mt-8 rounded-2xl border border-line bg-panel px-4 py-3",children:[n("h3",{className:d("text-xs font-semibold",F[j.tone]),children:["结论:",j.label]}),e("div",{className:"mt-1.5 text-ui leading-relaxed text-dim",children:e(g,{text:c.summary})})]})]})}),e("div",{className:"shrink-0 px-3 pb-[max(0.75rem,env(safe-area-inset-bottom))] sm:px-6 md:pb-4",children:n("div",{className:"mx-auto w-full max-w-3xl",children:[_&&e("p",{role:"status",className:"px-1 pb-2 text-ui text-danger",children:_}),e(v,{draftKey:`council:${c.roomID}`,placeholder:P?"插话,@ 某位成员会点名要求其回应":"理事会已结束,插话会重新唤醒成员",busy:P,allowAttachments:!1,text:J,onTextChange:D,inputRef:ie,onSend:be,onAbort:()=>void ve()})]})})]})]}),q&&e(Oe,{member:q,onClose:()=>z(void 0),onMention:()=>{z(void 0),Q(q.name)},onOpen:()=>{z(void 0),oe(q.id)}})]}),document.body)}function Se(t){let{ModelIcon:p,cn:f}=b(),{member:v}=t,g=w[v.verdict]??w.pending,{busy:h}=K(v);return n("button",{type:"button",onClick:t.onSelect,"aria-label":`${v.name},${g.label},查看详情`,className:"flex h-11 max-w-[11rem] shrink-0 cursor-pointer items-center gap-2 rounded-full border border-line bg-panel/60 pr-3.5 pl-1.5 active:bg-raised",children:[n("span",{className:f("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",g.ring),children:[e(p,{modelID:v.model,className:"size-4",size:16}),h&&e(re,{className:"absolute -right-1 -bottom-1 size-3.5 animate-spin rounded-full bg-bg text-accent"})]}),n("span",{className:"min-w-0 text-left leading-tight",children:[e("span",{className:"block truncate text-ui font-medium",children:v.name}),e("span",{className:f("block text-2xs",g.text),children:g.label})]})]})}function Oe(t){let{Button:p,Dialog:f,Markdown:v,ModelIcon:g,cn:h}=b(),{member:i}=t,N=w[i.verdict]??w.pending,d=K(i);return e(f,{open:!0,onOpenChange:(u)=>!u&&t.onClose(),title:n("span",{className:"flex min-w-0 items-center gap-2.5",children:[e("span",{className:h("flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",N.ring),children:e(g,{modelID:i.model,className:"size-4",size:16})}),e("span",{className:"min-w-0 truncate",children:i.name}),e("span",{className:h("shrink-0 rounded px-1.5 py-px text-2xs font-medium",N.soft),children:N.label})]}),description:i.model,footer:n(m,{children:[n(p,{variant:"secondary",onClick:t.onMention,children:[e(L,{className:"size-4"}),"点名"]}),n(p,{variant:"secondary",onClick:t.onOpen,children:[e(ft,{className:"size-4"}),"查看推理"]})]}),children:n("div",{className:"space-y-3 pb-1",children:[n("div",{className:"flex items-center gap-3 text-ui",children:[n("span",{className:h("flex min-w-0 flex-1 items-center gap-1.5",d.busy?"text-accent":"text-dim"),children:[d.busy&&e(re,{className:"size-3.5 shrink-0 animate-spin"}),e("span",{className:"truncate",children:d.text})]}),n("span",{className:"shrink-0 text-faint tabular-nums",children:["发言 ",i.turns??0," 次"]})]}),i.notes?n("section",{children:[n("h3",{className:"mb-1.5 flex items-center gap-1.5 text-xs font-medium text-faint",children:[e(Z,{className:"size-3.5"}),"调研笔记"]}),e("div",{className:"rounded-xl bg-bg/60 px-3.5 py-2.5 text-ui leading-relaxed text-dim",children:e(v,{text:i.notes})})]}):e("p",{className:"text-ui text-faint",children:"没有调研笔记"})]})})}function Re(t){let{Collapsible:p,CollapsibleContent:f,Markdown:v,ModelIcon:g,cn:h}=b(),{member:i}=t,[N,d]=a(!1),u=w[i.verdict]??w.pending,{busy:c,text:C}=K(i);return n(p,{open:N,onOpenChange:d,className:h("relative shrink-0 rounded-xl border p-2.5 transition-colors",t.viewing?"border-line-strong bg-raised/60":"border-line bg-panel/60 hover:bg-raised/40"),children:[e("button",{type:"button","aria-label":t.viewing?"返回群聊":`查看 ${i.name} 的推理过程`,"aria-pressed":t.viewing,title:t.viewing?"返回群聊":"查看推理与工具调用",onClick:t.onOpen,className:"absolute inset-0 cursor-pointer rounded-xl"}),n("div",{className:"pointer-events-none relative flex items-center gap-2.5",children:[e("span",{className:h("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",u.ring),children:e(g,{modelID:i.model,className:"size-4",size:16})}),n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex items-center gap-1.5",children:[e("span",{className:"truncate text-ui font-medium",title:i.model,children:i.name}),e("span",{className:h("shrink-0 rounded px-1 text-2xs font-medium",u.soft),children:u.label})]}),n("div",{className:h("flex min-w-0 items-center gap-1 text-2xs",c?"text-accent":"text-faint"),children:[c&&e(re,{className:"size-3 shrink-0 animate-spin"}),e("span",{className:"truncate",children:C})]})]})]}),n("div",{className:"pointer-events-none relative mt-2 flex items-center gap-1 text-2xs text-faint",children:[n("span",{className:"tabular-nums",children:["发言 ",i.turns??0," 次"]}),e("span",{className:"ml-auto"}),i.notes&&n("button",{type:"button","aria-expanded":N,onClick:()=>d((M)=>!M),className:h("pointer-events-auto inline-flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 hover:bg-raised hover:text-ink",N&&"text-ink"),children:[e(Z,{className:"size-3"}),"笔记"]}),e("button",{type:"button","aria-label":`@ ${i.name}`,title:`@ ${i.name}`,onClick:t.onMention,className:"pointer-events-auto inline-flex cursor-pointer items-center rounded p-1 hover:bg-raised hover:text-ink",children:e(L,{className:"size-3"})})]}),i.notes&&e(f,{children:e("div",{className:"relative mt-2 max-h-56 overflow-y-auto rounded-lg bg-bg/60 px-2.5 py-2 text-xs leading-relaxed text-dim",children:e(v,{text:i.notes})})})]})}function Te(t){let{Code:p,Collapsible:f,CollapsibleContent:v,Markdown:g,cn:h}=b(),{message:i}=t,[N,d]=a(!1),u=i.senderID==="user"||i.senderID==="host",c=i.verdict&&i.verdict!=="pending"?w[i.verdict]:void 0,C=i.evidences??[],M=(i.mentions??[]).map((x)=>t.membersByID.get(x)).filter((x)=>x!==void 0);return n("li",{id:`council-floor-${i.floor}`,className:"group flex gap-3 animate-fade",children:[e(xe,{message:i,isHuman:u,className:"mt-0.5 hidden size-8 md:flex"}),n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs",children:[e(xe,{message:i,isHuman:u,className:"flex size-6 md:hidden"}),e("span",{className:"font-semibold text-ink",title:i.senderModel,children:i.senderName}),n("a",{href:`#council-floor-${i.floor}`,className:"font-mono text-2xs text-faint hover:text-dim",onClick:(x)=>x.preventDefault(),children:["#",i.floor]}),c&&e("span",{className:h("rounded px-1.5 py-px text-2xs font-medium",c.soft),children:c.label}),!u&&n("button",{type:"button",onClick:t.onMention,className:"ml-auto inline-flex cursor-pointer items-center gap-1 rounded-md px-2 py-1 text-2xs text-faint transition-opacity hover:bg-raised hover:text-ink focus-visible:opacity-100 md:px-1.5 md:py-0.5 md:opacity-0 md:group-hover:opacity-100",children:[e(L,{className:"size-3"}),"回复"]})]}),(i.replyToFloor||M.length>0)&&n("div",{className:"mt-1 flex flex-wrap items-center gap-1.5 text-2xs text-faint",children:[i.replyToFloor&&n("button",{type:"button",onClick:()=>document.getElementById(`council-floor-${i.replyToFloor}`)?.scrollIntoView({block:"center",behavior:"smooth"}),className:"inline-flex min-w-0 max-w-full cursor-pointer items-center gap-1 rounded-md bg-raised/70 px-1.5 py-0.5 hover:text-ink",children:[e(ya,{className:"size-3 shrink-0"}),n("span",{className:"shrink-0 text-dim",children:["#",i.replyToFloor," ",i.replyToName]}),i.replyToPreview&&e("span",{className:"truncate",children:i.replyToPreview})]}),M.map((x)=>n("span",{className:"inline-flex items-center gap-1 rounded-md bg-accent/10 px-1.5 py-0.5 text-accent",children:[e(L,{className:"size-3"}),x.name]},x.id))]}),e("div",{className:"mt-1.5 break-words text-sm leading-relaxed text-ink/90 md:text-ui [&_p]:my-1.5 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",children:e(g,{text:i.text})}),C.length>0&&n(f,{open:N,onOpenChange:d,className:"mt-2",children:[n("button",{type:"button","aria-expanded":N,onClick:()=>d((x)=>!x),className:"inline-flex max-w-full cursor-pointer items-center gap-1 text-2xs text-faint hover:text-ink",children:[e(de,{className:"size-3 shrink-0"}),n("span",{className:"shrink-0",children:["查阅 ",C.length," 处"]}),!N&&e("span",{className:"truncate font-mono",children:C.map((x)=>x.label).join(",")}),e(he,{className:h("size-3 shrink-0 transition-transform duration-300 ease-out-quint",!N&&"-rotate-90")})]}),e(v,{children:e("div",{className:"mt-1.5 space-y-1.5",children:C.map((x)=>n("div",{className:"overflow-hidden rounded-lg border border-line bg-panel text-xs",children:[e("div",{className:"truncate border-b border-line/70 px-2.5 py-1 font-mono text-2xs text-dim",children:x.label}),x.snippet&&e(p,{code:x.snippet,lang:x.lang||"ts",className:"max-h-40 overflow-auto px-2.5 py-1.5 text-xs"})]},`${x.tool}:${x.label}:${x.snippet?.slice(0,32)??""}`))})})]})]})]})}function xe(t){let{ModelIcon:p,cn:f}=b();return e("span",{className:f("shrink-0 items-center justify-center rounded-full",t.isHuman?"bg-accent/12 text-accent":"bg-raised",t.className),children:t.message.senderModel?e(p,{modelID:t.message.senderModel,className:"size-4",size:16}):e(pe,{className:"size-4"})})}function ot(t){let{ModelIcon:p,cn:f,useTheme:v}=b();v();let{connection:g,sessionID:h,payload:i,onOpen:N}=t,d=i,[u,c]=a(d),[C,M]=a(()=>{try{return sessionStorage.getItem(ui)===d.roomID}catch{return!1}}),[x,J]=a(Date.now);s(()=>{c(d)},[d]),s(()=>{if(!C)return;try{if(sessionStorage.getItem(ui)===d.roomID)sessionStorage.removeItem(ui)}catch{}},[C,d.roomID]);let D=u.state==="running",R=`/api/sessions/${encodeURIComponent(h)}/council/${encodeURIComponent(u.roomID)}`;s(()=>{if(!D)return;let y=!1,T=setInterval(()=>{if(g.request(R).then((z)=>{if(!y&&z&&typeof z==="object"&&"roomID"in z)c(z)}).catch(()=>{}),!y)J(Date.now())},1200);return()=>{y=!0,clearInterval(T)}},[g,R,D]);let H=async(y)=>{let I=await g.request(`${R}/post`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({text:y})});c(I)},_=async()=>{let y=await g.request(`${R}/kill`,{method:"POST"});c(y)},E=(D?x:u.updatedAt)-u.createdAt,S=u.messages.at(-1),B=u.members.filter((y)=>V(y.status)).length;return n(m,{children:[n("button",{type:"button","aria-label":`进入理事会:${u.topic}`,onClick:()=>M(!0),className:"group relative my-2 block w-full cursor-pointer overflow-hidden rounded-2xl border border-line bg-panel text-left transition-colors hover:border-line-strong animate-fade",children:[n("div",{className:"px-4 pt-3.5",children:[n("div",{className:"flex items-center gap-1.5 text-2xs text-faint",children:[e("span",{className:"font-medium text-dim",children:"理事会"}),e("span",{"aria-hidden":!0,children:"·"}),e("span",{className:"tabular-nums",children:W(E)}),n("span",{className:"ml-auto tabular-nums",children:[u.members.length," 位成员"]})]}),e("h4",{className:"mt-1 line-clamp-2 text-sm font-semibold text-ink md:truncate",title:u.topic,children:u.topic})]}),e(G,{room:u,className:"mt-3 px-4"}),e("div",{className:"mt-3 flex flex-wrap items-center gap-x-4 gap-y-2 px-4",children:u.members.map((y)=>{let I=w[y.verdict]??w.pending,T=V(y.status);return n("span",{className:"flex min-w-0 items-center gap-1.5 text-xs",title:y.model,children:[n("span",{className:f("relative flex size-6 shrink-0 items-center justify-center rounded-full bg-raised ring-2",I.ring),children:[e(p,{modelID:y.model,className:"size-3.5",size:14}),T&&e(re,{className:"absolute -right-1 -bottom-1 size-3 animate-spin rounded-full bg-panel text-accent"})]}),e("span",{className:"truncate text-dim",children:y.name}),e("span",{className:f("shrink-0 text-2xs",I.text),children:I.label})]},y.id)})}),n("div",{className:"mt-3 flex items-center gap-2 border-t border-line/70 px-4 py-2.5 text-xs",children:[S?n(m,{children:[e("span",{className:"shrink-0 font-medium text-dim",children:S.senderName}),e("span",{className:"min-w-0 flex-1 truncate text-faint",children:S.text.replace(/\s+/g," ")})]}):e("span",{className:"min-w-0 flex-1 truncate text-faint",children:D?`${B} 位成员正在${u.phase==="research"?"调研":"思考"}…`:"没有发言"}),n("span",{className:"inline-flex shrink-0 items-center gap-1 text-faint transition-colors group-hover:text-ink",children:[u.messages.length>0&&n("span",{className:"tabular-nums",children:[u.messages.length," 条"]}),e(ue,{className:"size-3.5"})]})]})]}),C&&e(fe,{room:u,elapsedMs:E,onClose:()=>M(!1),onOpenMember:N,onPost:H,onAbort:_})]})}export{ot as CouncilCard};
1
+ import{s,o,a,Xt,m,e,n,b,ui,l,re,ur,ft,he,ya,ce}from"./chunk-56a6zytc.js";var ke=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]],L=l("at-sign",ke);var Ce=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],de=l("file-code-2",Ce);var we=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],ue=l("maximize-2",we);var Me=[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]],Z=l("notebook-pen",Me);var Ie=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],pe=l("user",Ie);var w={approve:{label:"通过",text:"text-success",ring:"ring-success/80",soft:"bg-success/12 text-success"},reject:{label:"反对",text:"text-danger",ring:"ring-danger/80",soft:"bg-danger/12 text-danger"},abstain:{label:"弃权",text:"text-dim",ring:"ring-line-strong",soft:"bg-raised text-dim"},pending:{label:"未表态",text:"text-faint",ring:"ring-line",soft:"bg-raised text-faint"}},ze={thinking:"思考中",reading:"查阅中",speaking:"发言中",idle:"等待中",error:"出错",aborted:"已中止"},F={success:"text-success",warning:"text-warning",danger:"text-danger",neutral:"text-faint"},ee={success:"bg-success",warning:"bg-warning",danger:"bg-danger",neutral:"bg-faint"};function V(t){return t==="thinking"||t==="reading"||t==="speaking"}function K(t){let p=V(t.status);return{busy:p,text:p&&t.activeTool?t.activeTool:ze[t.status]}}function te(t){let p=t.members.filter((v)=>v.verdict==="approve").length,f=t.members.filter((v)=>v.verdict==="reject").length;if(t.state==="running"){if(t.phase==="research")return{tone:"warning",label:"调研中"};if(t.phase==="opening")return{tone:"warning",label:"开场表态"};return{tone:"warning",label:"群聊交流"}}if(t.state==="consensus"){if(p===t.members.length)return{tone:"success",label:"全票通过"};if(f===t.members.length)return{tone:"danger",label:"全票反对"};if(f>p)return{tone:"danger",label:"共识:反对"};return{tone:"success",label:"共识:通过"}}if(t.state==="diverged")return{tone:"warning",label:"存在分歧"};if(t.state==="error")return{tone:"danger",label:"失败"};return{tone:"neutral",label:"已中止"}}function W(t){let p=Math.max(1,Math.round(t/1000));if(p<60)return`${p}s`;return`${Math.floor(p/60)}m ${String(p%60).padStart(2,"0")}s`}var De={research:"调研",opening:"开场表态",discussion:"群聊交流"};function G(t){let{cn:p}=b(),{room:f}=t,v=te(f),g=f.state==="running",h=f.research?["research","opening","discussion"]:["opening","discussion"],i=g?h.indexOf(f.phase==="closed"?"discussion":f.phase??"discussion"):-1,N=[...h.map((d,u)=>({key:d,label:De[d],done:!g||u<i,active:u===i})),{key:"closed",label:g?"结论":v.label,done:!g,active:!1}];return e("ol",{className:p("flex min-w-0 gap-1",t.className),children:N.map((d,u)=>{let c=u===N.length-1&&!g;return n("li",{className:"min-w-0 flex-1",children:[e("span",{className:p("block h-[3px] rounded-full transition-colors duration-300",c?ee[v.tone]:d.active?"bg-accent animate-pulse":d.done?"bg-line-strong":"bg-line/60")}),e("span",{className:p("mt-1.5 block truncate text-2xs",c?p("font-medium",F[v.tone]):d.active?"font-medium text-ink":d.done?"text-dim":"text-faint"),children:d.label})]},d.key)})})}function fe(t){let{Collapsible:p,CollapsibleContent:f,Composer:v,Markdown:g,ModelIcon:h,ScrollArea:i,SessionView:N,cn:d,confirm:u}=b(),{room:c,onClose:C}=t,[M,x]=a(!1),[J,D]=a(""),[R,H]=a(!1),[_,E]=a(),[S,B]=a(!1),[y,I]=a(!0),[T,z]=a(),ne=o(!1);ne.current=T!==void 0;let[U,X]=a(),[se,A]=a(!1),ae=o(!1);ae.current=U!==void 0;let oe=(r)=>{A(!1),X(r)},ie=o(null),Y=o(null),P=c.state==="running",j=te(c),ge=new Map(c.members.map((r)=>[r.id,r]));s(()=>{let r=(me)=>{if(me.key!=="Escape"||me.defaultPrevented||ne.current)return;if(ae.current)A(!0);else x(!0)},k=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r),document.body.style.overflow=k}},[]);let le=c.messages.length;s(()=>{let r=Y.current;if(!r||!y||le===0)return;r.scrollTo({top:r.scrollHeight,behavior:"smooth"})},[le,y]);let be=async(r)=>{await t.onPost(r),I(!0)},ve=async()=>{if(R)return;if(!await u({title:"中止理事会?",description:"所有成员会立即停止,已有发言保留。",action:"中止",danger:!0}))return;H(!0),E(void 0);try{await t.onAbort()}catch(k){E(k instanceof Error?k.message:"中止理事会失败")}finally{H(!1)}},Q=(r)=>{X(void 0),D((k)=>k.includes(`@${r}`)?k:`${k?`${k.trimEnd()} `:""}@${r} `),requestAnimationFrame(()=>ie.current?.focus())},Ne=c.members.filter((r)=>r.verdict==="approve").length,ye=c.members.filter((r)=>r.verdict==="reject").length,q=c.members.find((r)=>r.id===T),O=c.members.find((r)=>r.id===U);return Xt(n("div",{role:"dialog","aria-modal":"true","aria-label":`理事会:${c.topic}`,onAnimationEnd:(r)=>{if(M&&r.target===r.currentTarget)C()},className:d("fixed inset-0 z-50 flex flex-col bg-bg pt-[env(safe-area-inset-top)] text-ink",M?"pointer-events-none animate-dialog-out":"animate-dialog-in"),children:[n(p,{open:S,onOpenChange:B,className:"shrink-0 border-b border-line px-4 pt-3 pb-3 sm:px-6",children:[n("div",{className:"flex items-start gap-3",children:[n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex items-center gap-3 text-2xs text-faint",children:[e("span",{className:"font-medium tracking-[0.2em] text-dim",children:"COUNCIL"}),e("span",{className:"tabular-nums",children:W(t.elapsedMs)}),n("span",{className:"tabular-nums",children:[c.messages.length," 条发言"]})]}),n("button",{type:"button","aria-expanded":S,onClick:()=>B((r)=>!r),className:"mt-0.5 flex max-w-full cursor-pointer items-start gap-1.5 text-left md:items-center",children:[e("h2",{className:"line-clamp-2 text-md leading-snug font-semibold md:truncate md:text-lg",children:c.topic}),e(he,{className:d("mt-0.5 size-4 shrink-0 text-faint transition-transform duration-300 ease-out-quint md:mt-0",!S&&"-rotate-90")})]})]}),n("div",{className:"flex shrink-0 items-center gap-1",children:[n("span",{className:d("inline-flex items-center gap-1.5 rounded-full border border-line px-2.5 py-1 text-xs font-medium",F[j.tone]),children:[e("span",{className:d("size-1.5 rounded-full",ee[j.tone],P&&"animate-pulse")}),j.label]}),e("button",{type:"button","aria-label":"关闭理事会页面",title:"关闭(Esc)",onClick:()=>x(!0),className:"ml-1 inline-flex size-10 -mr-2 cursor-pointer items-center justify-center rounded-full text-faint transition-colors hover:bg-raised hover:text-ink md:size-8 md:mr-0",children:e(ce,{className:"size-4"})})]})]}),e(f,{children:e("div",{className:"mt-2 max-h-[40dvh] overflow-y-auto overscroll-contain rounded-xl bg-panel px-3.5 py-2.5 text-ui leading-relaxed text-dim md:max-h-48",children:e(g,{text:c.brief})})}),e(G,{room:c,className:"mt-3"})]}),n("div",{className:"flex min-h-0 flex-1 flex-col md:flex-row",children:[e("div",{className:"flex shrink-0 gap-2 overflow-x-auto overscroll-x-contain border-b border-line px-4 py-2.5 [scrollbar-width:none] md:hidden",children:c.members.map((r)=>e(Se,{member:r,onSelect:()=>z(r.id)},r.id))}),n("aside",{className:"hidden w-72 shrink-0 flex-col gap-2 overflow-y-auto border-r border-line p-4 md:flex",children:[n("div",{className:"flex items-center justify-between text-2xs text-faint",children:[e("span",{className:"font-medium tracking-wide",children:"席位"}),n("span",{className:"tabular-nums",children:[e("span",{className:"text-success",children:Ne})," / ",e("span",{className:"text-danger",children:ye})," /"," ",c.members.length]})]}),c.members.map((r)=>e(Re,{member:r,viewing:r.id===U,onMention:()=>Q(r.name),onOpen:()=>r.id===U?A(!0):oe(r.id)},r.id))]}),O&&n("main",{onAnimationEnd:(r)=>{if(!se||r.target!==r.currentTarget)return;A(!1),X(void 0)},className:d("flex min-h-0 min-w-0 flex-1 flex-col",se?"pointer-events-none animate-overlay-out":"animate-fade"),children:[n("div",{className:"flex shrink-0 items-center gap-2 border-b border-line px-3 py-2 sm:px-4",children:[n("button",{type:"button",onClick:()=>A(!0),className:"inline-flex h-8 cursor-pointer items-center gap-1.5 rounded-lg px-2 text-ui text-dim transition-colors hover:bg-raised hover:text-ink",children:[e(ur,{className:"size-4"}),"群聊"]}),e("span",{className:"text-line-strong",children:"/"}),n("span",{className:"flex min-w-0 flex-1 items-center gap-1.5 text-ui font-medium",children:[e(h,{modelID:O.model,className:"size-4 shrink-0",size:16}),n("span",{className:"truncate",children:[O.name," 的推理过程"]})]}),e("button",{type:"button","aria-label":"在完整页面打开",title:"在完整页面打开",onClick:()=>t.onOpenMember(O.childSessionID),className:"inline-flex size-8 cursor-pointer items-center justify-center rounded-lg text-faint transition-colors hover:bg-raised hover:text-ink",children:e(ft,{className:"size-4"})})]}),e(N,{sessionID:O.childSessionID},O.childSessionID)]}),n("main",{className:d("min-h-0 min-w-0 flex-1 flex-col animate-fade",O?"hidden":"flex"),children:[e(i,{viewportRef:Y,onScrollCapture:(r)=>{let k=Y.current;if(!k||r.target!==k)return;I(k.scrollHeight-k.scrollTop-k.clientHeight<80)},children:n("div",{className:"mx-auto w-full max-w-3xl px-4 py-4 sm:px-6 md:py-5",children:[c.messages.length===0?n("div",{className:"flex flex-col items-center justify-center gap-3 py-24 text-center text-faint",children:[P?e(re,{className:"size-5 animate-spin"}):null,e("p",{className:"text-sm",children:P?c.phase==="research"?"成员正在各自调研,笔记不会进入群聊":"成员正在独立准备开场观点,彼此不可见":"这场理事会没有产生发言"})]}):e("ol",{className:"space-y-5",children:c.messages.map((r)=>e(Te,{message:r,membersByID:ge,onMention:()=>Q(r.senderName)},r.floor))}),c.summary&&!P&&n("section",{className:"mt-8 rounded-2xl border border-line bg-panel px-4 py-3",children:[n("h3",{className:d("text-xs font-semibold",F[j.tone]),children:["结论:",j.label]}),e("div",{className:"mt-1.5 text-ui leading-relaxed text-dim",children:e(g,{text:c.summary})})]})]})}),e("div",{className:"shrink-0 px-3 pb-[max(0.75rem,env(safe-area-inset-bottom))] sm:px-6 md:pb-4",children:n("div",{className:"mx-auto w-full max-w-3xl",children:[_&&e("p",{role:"status",className:"px-1 pb-2 text-ui text-danger",children:_}),e(v,{draftKey:`council:${c.roomID}`,placeholder:P?"插话,@ 某位成员会点名要求其回应":"理事会已结束,插话会重新唤醒成员",busy:P,allowAttachments:!1,text:J,onTextChange:D,inputRef:ie,onSend:be,onAbort:()=>void ve()})]})})]})]}),q&&e(Oe,{member:q,onClose:()=>z(void 0),onMention:()=>{z(void 0),Q(q.name)},onOpen:()=>{z(void 0),oe(q.id)}})]}),document.body)}function Se(t){let{ModelIcon:p,cn:f}=b(),{member:v}=t,g=w[v.verdict]??w.pending,{busy:h}=K(v);return n("button",{type:"button",onClick:t.onSelect,"aria-label":`${v.name},${g.label},查看详情`,className:"flex h-11 max-w-[11rem] shrink-0 cursor-pointer items-center gap-2 rounded-full border border-line bg-panel/60 pr-3.5 pl-1.5 active:bg-raised",children:[n("span",{className:f("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",g.ring),children:[e(p,{modelID:v.model,className:"size-4",size:16}),h&&e(re,{className:"absolute -right-1 -bottom-1 size-3.5 animate-spin rounded-full bg-bg text-accent"})]}),n("span",{className:"min-w-0 text-left leading-tight",children:[e("span",{className:"block truncate text-ui font-medium",children:v.name}),e("span",{className:f("block text-2xs",g.text),children:g.label})]})]})}function Oe(t){let{Button:p,Dialog:f,Markdown:v,ModelIcon:g,cn:h}=b(),{member:i}=t,N=w[i.verdict]??w.pending,d=K(i);return e(f,{open:!0,onOpenChange:(u)=>!u&&t.onClose(),title:n("span",{className:"flex min-w-0 items-center gap-2.5",children:[e("span",{className:h("flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",N.ring),children:e(g,{modelID:i.model,className:"size-4",size:16})}),e("span",{className:"min-w-0 truncate",children:i.name}),e("span",{className:h("shrink-0 rounded px-1.5 py-px text-2xs font-medium",N.soft),children:N.label})]}),description:i.model,footer:n(m,{children:[n(p,{variant:"secondary",onClick:t.onMention,children:[e(L,{className:"size-4"}),"点名"]}),n(p,{variant:"secondary",onClick:t.onOpen,children:[e(ft,{className:"size-4"}),"查看推理"]})]}),children:n("div",{className:"space-y-3 pb-1",children:[n("div",{className:"flex items-center gap-3 text-ui",children:[n("span",{className:h("flex min-w-0 flex-1 items-center gap-1.5",d.busy?"text-accent":"text-dim"),children:[d.busy&&e(re,{className:"size-3.5 shrink-0 animate-spin"}),e("span",{className:"truncate",children:d.text})]}),n("span",{className:"shrink-0 text-faint tabular-nums",children:["发言 ",i.turns??0," 次"]})]}),i.notes?n("section",{children:[n("h3",{className:"mb-1.5 flex items-center gap-1.5 text-xs font-medium text-faint",children:[e(Z,{className:"size-3.5"}),"调研笔记"]}),e("div",{className:"rounded-xl bg-bg/60 px-3.5 py-2.5 text-ui leading-relaxed text-dim",children:e(v,{text:i.notes})})]}):e("p",{className:"text-ui text-faint",children:"没有调研笔记"})]})})}function Re(t){let{Collapsible:p,CollapsibleContent:f,Markdown:v,ModelIcon:g,cn:h}=b(),{member:i}=t,[N,d]=a(!1),u=w[i.verdict]??w.pending,{busy:c,text:C}=K(i);return n(p,{open:N,onOpenChange:d,className:h("relative shrink-0 rounded-xl border p-2.5 transition-colors",t.viewing?"border-line-strong bg-raised/60":"border-line bg-panel/60 hover:bg-raised/40"),children:[e("button",{type:"button","aria-label":t.viewing?"返回群聊":`查看 ${i.name} 的推理过程`,"aria-pressed":t.viewing,title:t.viewing?"返回群聊":"查看推理与工具调用",onClick:t.onOpen,className:"absolute inset-0 cursor-pointer rounded-xl"}),n("div",{className:"pointer-events-none relative flex items-center gap-2.5",children:[e("span",{className:h("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",u.ring),children:e(g,{modelID:i.model,className:"size-4",size:16})}),n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex items-center gap-1.5",children:[e("span",{className:"truncate text-ui font-medium",title:i.model,children:i.name}),e("span",{className:h("shrink-0 rounded px-1 text-2xs font-medium",u.soft),children:u.label})]}),n("div",{className:h("flex min-w-0 items-center gap-1 text-2xs",c?"text-accent":"text-faint"),children:[c&&e(re,{className:"size-3 shrink-0 animate-spin"}),e("span",{className:"truncate",children:C})]})]})]}),n("div",{className:"pointer-events-none relative mt-2 flex items-center gap-1 text-2xs text-faint",children:[n("span",{className:"tabular-nums",children:["发言 ",i.turns??0," 次"]}),e("span",{className:"ml-auto"}),i.notes&&n("button",{type:"button","aria-expanded":N,onClick:()=>d((M)=>!M),className:h("pointer-events-auto inline-flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 hover:bg-raised hover:text-ink",N&&"text-ink"),children:[e(Z,{className:"size-3"}),"笔记"]}),e("button",{type:"button","aria-label":`@ ${i.name}`,title:`@ ${i.name}`,onClick:t.onMention,className:"pointer-events-auto inline-flex cursor-pointer items-center rounded p-1 hover:bg-raised hover:text-ink",children:e(L,{className:"size-3"})})]}),i.notes&&e(f,{children:e("div",{className:"relative mt-2 max-h-56 overflow-y-auto rounded-lg bg-bg/60 px-2.5 py-2 text-xs leading-relaxed text-dim",children:e(v,{text:i.notes})})})]})}function Te(t){let{Code:p,Collapsible:f,CollapsibleContent:v,Markdown:g,cn:h}=b(),{message:i}=t,[N,d]=a(!1),u=i.senderID==="user"||i.senderID==="host",c=i.verdict&&i.verdict!=="pending"?w[i.verdict]:void 0,C=i.evidences??[],M=(i.mentions??[]).map((x)=>t.membersByID.get(x)).filter((x)=>x!==void 0);return n("li",{id:`council-floor-${i.floor}`,className:"group flex gap-3 animate-fade",children:[e(xe,{message:i,isHuman:u,className:"mt-0.5 hidden size-8 md:flex"}),n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs",children:[e(xe,{message:i,isHuman:u,className:"flex size-6 md:hidden"}),e("span",{className:"font-semibold text-ink",title:i.senderModel,children:i.senderName}),n("a",{href:`#council-floor-${i.floor}`,className:"font-mono text-2xs text-faint hover:text-dim",onClick:(x)=>x.preventDefault(),children:["#",i.floor]}),c&&e("span",{className:h("rounded px-1.5 py-px text-2xs font-medium",c.soft),children:c.label}),!u&&n("button",{type:"button",onClick:t.onMention,className:"ml-auto inline-flex cursor-pointer items-center gap-1 rounded-md px-2 py-1 text-2xs text-faint transition-opacity hover:bg-raised hover:text-ink focus-visible:opacity-100 md:px-1.5 md:py-0.5 md:opacity-0 md:group-hover:opacity-100",children:[e(L,{className:"size-3"}),"回复"]})]}),(i.replyToFloor||M.length>0)&&n("div",{className:"mt-1 flex flex-wrap items-center gap-1.5 text-2xs text-faint",children:[i.replyToFloor&&n("button",{type:"button",onClick:()=>document.getElementById(`council-floor-${i.replyToFloor}`)?.scrollIntoView({block:"center",behavior:"smooth"}),className:"inline-flex min-w-0 max-w-full cursor-pointer items-center gap-1 rounded-md bg-raised/70 px-1.5 py-0.5 hover:text-ink",children:[e(ya,{className:"size-3 shrink-0"}),n("span",{className:"shrink-0 text-dim",children:["#",i.replyToFloor," ",i.replyToName]}),i.replyToPreview&&e("span",{className:"truncate",children:i.replyToPreview})]}),M.map((x)=>n("span",{className:"inline-flex items-center gap-1 rounded-md bg-accent/10 px-1.5 py-0.5 text-accent",children:[e(L,{className:"size-3"}),x.name]},x.id))]}),e("div",{className:"mt-1.5 break-words text-sm leading-relaxed text-ink/90 md:text-ui [&_p]:my-1.5 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",children:e(g,{text:i.text})}),C.length>0&&n(f,{open:N,onOpenChange:d,className:"mt-2",children:[n("button",{type:"button","aria-expanded":N,onClick:()=>d((x)=>!x),className:"inline-flex max-w-full cursor-pointer items-center gap-1 text-2xs text-faint hover:text-ink",children:[e(de,{className:"size-3 shrink-0"}),n("span",{className:"shrink-0",children:["查阅 ",C.length," 处"]}),!N&&e("span",{className:"truncate font-mono",children:C.map((x)=>x.label).join(",")}),e(he,{className:h("size-3 shrink-0 transition-transform duration-300 ease-out-quint",!N&&"-rotate-90")})]}),e(v,{children:e("div",{className:"mt-1.5 space-y-1.5",children:C.map((x)=>n("div",{className:"overflow-hidden rounded-lg border border-line bg-panel text-xs",children:[e("div",{className:"truncate border-b border-line/70 px-2.5 py-1 font-mono text-2xs text-dim",children:x.label}),x.snippet&&e(p,{code:x.snippet,lang:x.lang||"ts",className:"max-h-40 overflow-auto px-2.5 py-1.5 text-xs"})]},`${x.tool}:${x.label}:${x.snippet?.slice(0,32)??""}`))})})]})]})]})}function xe(t){let{ModelIcon:p,cn:f}=b();return e("span",{className:f("shrink-0 items-center justify-center rounded-full",t.isHuman?"bg-accent/12 text-accent":"bg-raised",t.className),children:t.message.senderModel?e(p,{modelID:t.message.senderModel,className:"size-4",size:16}):e(pe,{className:"size-4"})})}function ot(t){let{ModelIcon:p,cn:f,useTheme:v}=b();v();let{connection:g,sessionID:h,payload:i,onOpen:N}=t,d=i,[u,c]=a(d),[C,M]=a(()=>{try{return sessionStorage.getItem(ui)===d.roomID}catch{return!1}}),[x,J]=a(Date.now);s(()=>{c(d)},[d]),s(()=>{if(!C)return;try{if(sessionStorage.getItem(ui)===d.roomID)sessionStorage.removeItem(ui)}catch{}},[C,d.roomID]);let D=u.state==="running",R=`/api/sessions/${encodeURIComponent(h)}/council/${encodeURIComponent(u.roomID)}`;s(()=>{if(!D)return;let y=!1,T=setInterval(()=>{if(g.request(R).then((z)=>{if(!y&&z&&typeof z==="object"&&"roomID"in z)c(z)}).catch(()=>{}),!y)J(Date.now())},1200);return()=>{y=!0,clearInterval(T)}},[g,R,D]);let H=async(y)=>{let I=await g.request(`${R}/post`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({text:y})});c(I)},_=async()=>{let y=await g.request(`${R}/kill`,{method:"POST"});c(y)},E=(D?x:u.updatedAt)-u.createdAt,S=u.messages.at(-1),B=u.members.filter((y)=>V(y.status)).length;return n(m,{children:[n("button",{type:"button","aria-label":`进入理事会:${u.topic}`,onClick:()=>M(!0),className:"group relative my-2 block w-full cursor-pointer overflow-hidden rounded-2xl border border-line bg-panel text-left transition-colors hover:border-line-strong animate-fade",children:[n("div",{className:"px-4 pt-3.5",children:[n("div",{className:"flex items-center gap-1.5 text-2xs text-faint",children:[e("span",{className:"font-medium text-dim",children:"理事会"}),e("span",{"aria-hidden":!0,children:"·"}),e("span",{className:"tabular-nums",children:W(E)}),n("span",{className:"ml-auto tabular-nums",children:[u.members.length," 位成员"]})]}),e("h4",{className:"mt-1 line-clamp-2 text-sm font-semibold text-ink md:truncate",title:u.topic,children:u.topic})]}),e(G,{room:u,className:"mt-3 px-4"}),e("div",{className:"mt-3 flex flex-wrap items-center gap-x-4 gap-y-2 px-4",children:u.members.map((y)=>{let I=w[y.verdict]??w.pending,T=V(y.status);return n("span",{className:"flex min-w-0 items-center gap-1.5 text-xs",title:y.model,children:[n("span",{className:f("relative flex size-6 shrink-0 items-center justify-center rounded-full bg-raised ring-2",I.ring),children:[e(p,{modelID:y.model,className:"size-3.5",size:14}),T&&e(re,{className:"absolute -right-1 -bottom-1 size-3 animate-spin rounded-full bg-panel text-accent"})]}),e("span",{className:"truncate text-dim",children:y.name}),e("span",{className:f("shrink-0 text-2xs",I.text),children:I.label})]},y.id)})}),n("div",{className:"mt-3 flex items-center gap-2 border-t border-line/70 px-4 py-2.5 text-xs",children:[S?n(m,{children:[e("span",{className:"shrink-0 font-medium text-dim",children:S.senderName}),e("span",{className:"min-w-0 flex-1 truncate text-faint",children:S.text.replace(/\s+/g," ")})]}):e("span",{className:"min-w-0 flex-1 truncate text-faint",children:D?`${B} 位成员正在${u.phase==="research"?"调研":"思考"}…`:"没有发言"}),n("span",{className:"inline-flex shrink-0 items-center gap-1 text-faint transition-colors group-hover:text-ink",children:[u.messages.length>0&&n("span",{className:"tabular-nums",children:[u.messages.length," 条"]}),e(ue,{className:"size-3.5"})]})]})]}),C&&e(fe,{room:u,elapsedMs:E,onClose:()=>M(!1),onOpenMember:N,onPost:H,onAbort:_})]})}export{ot as CouncilCard};
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import{t,i,st,q,ar,C,L,M,R,P,I,O,D,d,g,H,kt,De,Ne,Me,Ot,He,Ue}from"./chunk-eq59kad4.js";import{On}from"./chunk-c1s7faqj.js";import{Et}from"./chunk-6ktmzq32.js";import{ze}from"./chunk-37hn49td.js";import{Re}from"./chunk-tefm9md2.js";var Je=function(){var s=t(function(Y,p,b,f){for(b=b||{},f=Y.length;f--;b[Y[f]]=p);return b},"o"),r=[1,18],n=[1,19],l=[1,20],u=[1,41],h=[1,26],A=[1,42],c=[1,24],m=[1,25],E=[1,32],v=[1,33],J=[1,34],y=[1,45],Be=[1,35],_e=[1,36],Se=[1,37],Le=[1,38],xe=[1,27],ve=[1,28],Ie=[1,29],Oe=[1,30],we=[1,31],F=[1,44],B=[1,46],_=[1,43],S=[1,47],Pe=[1,9],k=[1,8,9],ce=[1,58],he=[1,59],de=[1,60],pe=[1,61],Ae=[1,62],Ve=[1,63],Ge=[1,64],w=[1,8,9,41],Ze=[1,77],j=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],be=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],fe=[13,60,86,100,102,103],Z=[13,60,73,74,86,100,102,103],$e=[13,60,68,69,70,71,72,86,100,102,103],ke=[1,103],ee=[1,121],te=[1,117],se=[1,113],ie=[1,119],ae=[1,114],re=[1,115],ne=[1,116],le=[1,118],ue=[1,120],et=[22,50,60,61,82,86,87,88,89,90],tt=[1,128],me=[12,39],Ye=[1,8,9,39,41,44,46],ge=[1,8,9,22],it=[1,153],at=[1,8,9,61],U=[1,8,9,22,50,60,61,82,86,87,88,89,90],Ke={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:t(function(p,b,f,o,T,e,oe){var a=e.length-1;switch(T){case 8:this.$=e[a-1];break;case 9:case 10:case 13:case 15:this.$=e[a];break;case 11:case 14:this.$=e[a-2]+"."+e[a];break;case 12:case 16:this.$=e[a-1]+e[a];break;case 17:case 18:this.$=e[a-1]+"~"+e[a]+"~";break;case 19:o.addRelation(e[a]);break;case 20:e[a-1].title=o.cleanupLabel(e[a]),o.addRelation(e[a-1]);break;case 31:this.$=e[a].trim(),o.setAccTitle(this.$);break;case 32:case 33:this.$=e[a].trim(),o.setAccDescription(this.$);break;case 34:o.addClassesToNamespace(e[a-3],e[a-1][0],e[a-1][1]),o.popNamespace();break;case 35:o.addClassesToNamespace(e[a-4],e[a-1][0],e[a-1][1]),o.popNamespace();break;case 36:this.$=o.addNamespace(e[a]);break;case 37:this.$=o.addNamespace(e[a-1],e[a]);break;case 38:this.$=[[e[a]],[]];break;case 39:this.$=[[e[a-1]],[]];break;case 40:e[a][0].unshift(e[a-2]),this.$=e[a];break;case 41:this.$=[[],[e[a]]];break;case 42:this.$=[[],[e[a-1]]];break;case 43:e[a][1].unshift(e[a-2]),this.$=e[a];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[a];break;case 48:o.setCssClass(e[a-2],e[a]);break;case 49:o.addMembers(e[a-3],e[a-1]);break;case 51:o.setCssClass(e[a-5],e[a-3]),o.addMembers(e[a-5],e[a-1]);break;case 52:o.addAnnotation(e[a-3],e[a-1]);break;case 53:o.addAnnotation(e[a-6],e[a-4]),o.addMembers(e[a-6],e[a-1]);break;case 54:o.addAnnotation(e[a-5],e[a-3]);break;case 55:this.$=e[a],o.addClass(e[a]);break;case 56:this.$=e[a-1],o.addClass(e[a-1]),o.setClassLabel(e[a-1],e[a]);break;case 60:o.addAnnotation(e[a],e[a-2]);break;case 61:case 74:this.$=[e[a]];break;case 62:e[a].push(e[a-1]),this.$=e[a];break;case 63:break;case 64:o.addMember(e[a-1],o.cleanupLabel(e[a]));break;case 65:break;case 66:break;case 67:this.$={id1:e[a-2],id2:e[a],relation:e[a-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[a-3],id2:e[a],relation:e[a-1],relationTitle1:e[a-2],relationTitle2:"none"};break;case 69:this.$={id1:e[a-3],id2:e[a],relation:e[a-2],relationTitle1:"none",relationTitle2:e[a-1]};break;case 70:this.$={id1:e[a-4],id2:e[a],relation:e[a-2],relationTitle1:e[a-3],relationTitle2:e[a-1]};break;case 71:this.$=o.addNote(e[a],e[a-1]);break;case 72:this.$=o.addNote(e[a]);break;case 73:this.$=e[a-2],o.defineClass(e[a-1],e[a]);break;case 75:this.$=e[a-2].concat([e[a]]);break;case 76:o.setDirection("TB");break;case 77:o.setDirection("BT");break;case 78:o.setDirection("RL");break;case 79:o.setDirection("LR");break;case 80:this.$={type1:e[a-2],type2:e[a],lineType:e[a-1]};break;case 81:this.$={type1:"none",type2:e[a],lineType:e[a-1]};break;case 82:this.$={type1:e[a-1],type2:"none",lineType:e[a]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[a]};break;case 84:this.$=o.relationType.AGGREGATION;break;case 85:this.$=o.relationType.EXTENSION;break;case 86:this.$=o.relationType.COMPOSITION;break;case 87:this.$=o.relationType.DEPENDENCY;break;case 88:this.$=o.relationType.LOLLIPOP;break;case 89:this.$=o.lineType.LINE;break;case 90:this.$=o.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[a-2],o.setClickEvent(e[a-1],e[a]);break;case 92:case 98:this.$=e[a-3],o.setClickEvent(e[a-2],e[a-1]),o.setTooltip(e[a-2],e[a]);break;case 93:this.$=e[a-2],o.setLink(e[a-1],e[a]);break;case 94:this.$=e[a-3],o.setLink(e[a-2],e[a-1],e[a]);break;case 95:this.$=e[a-3],o.setLink(e[a-2],e[a-1]),o.setTooltip(e[a-2],e[a]);break;case 96:this.$=e[a-4],o.setLink(e[a-3],e[a-2],e[a]),o.setTooltip(e[a-3],e[a-1]);break;case 99:this.$=e[a-3],o.setClickEvent(e[a-2],e[a-1],e[a]);break;case 100:this.$=e[a-4],o.setClickEvent(e[a-3],e[a-2],e[a-1]),o.setTooltip(e[a-3],e[a]);break;case 101:this.$=e[a-3],o.setLink(e[a-2],e[a]);break;case 102:this.$=e[a-4],o.setLink(e[a-3],e[a-1],e[a]);break;case 103:this.$=e[a-4],o.setLink(e[a-3],e[a-1]),o.setTooltip(e[a-3],e[a]);break;case 104:this.$=e[a-5],o.setLink(e[a-4],e[a-2],e[a]),o.setTooltip(e[a-4],e[a-1]);break;case 105:this.$=e[a-2],o.setCssStyle(e[a-1],e[a]);break;case 106:o.setCssClass(e[a-1],e[a]);break;case 107:this.$=[e[a]];break;case 108:e[a-2].push(e[a]),this.$=e[a-2];break;case 110:this.$=e[a-1]+e[a];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:r,35:n,37:l,38:22,42:u,43:23,46:h,48:A,51:c,52:m,54:E,56:v,57:J,60:y,62:Be,63:_e,64:Se,65:Le,75:xe,76:ve,78:Ie,82:Oe,83:we,86:F,100:B,102:_,103:S},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(Pe,[2,5],{8:[1,48]}),{8:[1,49]},s(k,[2,19],{22:[1,50]}),s(k,[2,21]),s(k,[2,22]),s(k,[2,23]),s(k,[2,24]),s(k,[2,25]),s(k,[2,26]),s(k,[2,27]),s(k,[2,28]),s(k,[2,29]),s(k,[2,30]),{34:[1,51]},{36:[1,52]},s(k,[2,33]),s(k,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:ce,69:he,70:de,71:pe,72:Ae,73:Ve,74:Ge}),{39:[1,65]},s(w,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),s(k,[2,65]),s(k,[2,66]),{16:69,60:y,86:F,100:B,102:_},{16:39,17:40,19:70,60:y,86:F,100:B,102:_,103:S},{16:39,17:40,19:71,60:y,86:F,100:B,102:_,103:S},{16:39,17:40,19:72,60:y,86:F,100:B,102:_,103:S},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:y,86:F,100:B,102:_,103:S},{13:Ze,55:76},{58:78,60:[1,79]},s(k,[2,76]),s(k,[2,77]),s(k,[2,78]),s(k,[2,79]),s(j,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:y,86:F,100:B,102:_,103:S}),s(j,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:y,86:F,100:B,102:_,103:S},{16:39,17:40,19:87,60:y,86:F,100:B,102:_,103:S},s(be,[2,133]),s(be,[2,134]),s(be,[2,135]),s(be,[2,136]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),s(Pe,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:r,35:n,37:l,42:u,46:h,48:A,51:c,52:m,54:E,56:v,57:J,60:y,62:Be,63:_e,64:Se,65:Le,75:xe,76:ve,78:Ie,82:Oe,83:we,86:F,100:B,102:_,103:S}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:r,35:n,37:l,38:22,42:u,43:23,46:h,48:A,51:c,52:m,54:E,56:v,57:J,60:y,62:Be,63:_e,64:Se,65:Le,75:xe,76:ve,78:Ie,82:Oe,83:we,86:F,100:B,102:_,103:S},s(k,[2,20]),s(k,[2,31]),s(k,[2,32]),{13:[1,91],16:39,17:40,19:90,60:y,86:F,100:B,102:_,103:S},{53:92,66:56,67:57,68:ce,69:he,70:de,71:pe,72:Ae,73:Ve,74:Ge},s(k,[2,64]),{67:93,73:Ve,74:Ge},s(fe,[2,83],{66:94,68:ce,69:he,70:de,71:pe,72:Ae}),s(Z,[2,84]),s(Z,[2,85]),s(Z,[2,86]),s(Z,[2,87]),s(Z,[2,88]),s($e,[2,89]),s($e,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:u,43:23,48:A,54:E,56:v},{16:100,60:y,86:F,100:B,102:_},{41:[1,102],45:101,51:ke},{16:104,60:y,86:F,100:B,102:_},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:ee,50:te,59:110,60:se,82:ie,84:111,85:112,86:ae,87:re,88:ne,89:le,90:ue},{60:[1,122]},{13:Ze,55:123},s(w,[2,72]),s(w,[2,138]),{22:ee,50:te,59:124,60:se,61:[1,125],82:ie,84:111,85:112,86:ae,87:re,88:ne,89:le,90:ue},s(et,[2,74]),{16:39,17:40,19:126,60:y,86:F,100:B,102:_,103:S},s(j,[2,16]),s(j,[2,17]),s(j,[2,18]),{11:127,12:tt,39:[2,36]},s(me,[2,9],{16:85,17:86,15:130,18:[1,129],60:y,86:F,100:B,102:_,103:S}),s(me,[2,10]),s(Ye,[2,55],{11:131,12:tt}),s(Pe,[2,7]),{9:[1,132]},s(ge,[2,67]),{16:39,17:40,19:133,60:y,86:F,100:B,102:_,103:S},{13:[1,135],16:39,17:40,19:134,60:y,86:F,100:B,102:_,103:S},s(fe,[2,82],{66:136,68:ce,69:he,70:de,71:pe,72:Ae}),s(fe,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:u,43:23,48:A,54:E,56:v},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},s(w,[2,48],{39:[1,142]}),{41:[1,143]},s(w,[2,50]),{41:[2,61],45:144,51:ke},{47:[1,145]},{16:39,17:40,19:146,60:y,86:F,100:B,102:_,103:S},s(k,[2,91],{13:[1,147]}),s(k,[2,93],{13:[1,149],77:[1,148]}),s(k,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},s(k,[2,105],{61:it}),s(at,[2,107],{85:154,22:ee,50:te,60:se,82:ie,86:ae,87:re,88:ne,89:le,90:ue}),s(U,[2,109]),s(U,[2,111]),s(U,[2,112]),s(U,[2,113]),s(U,[2,114]),s(U,[2,115]),s(U,[2,116]),s(U,[2,117]),s(U,[2,118]),s(U,[2,119]),s(k,[2,106]),s(w,[2,71]),s(k,[2,73],{61:it}),{60:[1,155]},s(j,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:y,86:F,100:B,102:_,103:S},s(me,[2,12]),s(Ye,[2,56]),{1:[2,4]},s(ge,[2,69]),s(ge,[2,68]),{16:39,17:40,19:158,60:y,86:F,100:B,102:_,103:S},s(fe,[2,80]),s(w,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:u,43:23,48:A,54:E,56:v},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:u,43:23,48:A,54:E,56:v},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:u,43:23,48:A,54:E,56:v},{45:163,51:ke},s(w,[2,49]),{41:[2,62]},s(w,[2,52],{39:[1,164]}),s(k,[2,60]),s(k,[2,92]),s(k,[2,94]),s(k,[2,95],{77:[1,165]}),s(k,[2,98]),s(k,[2,99],{13:[1,166]}),s(k,[2,101],{13:[1,168],77:[1,167]}),{22:ee,50:te,60:se,82:ie,84:169,85:112,86:ae,87:re,88:ne,89:le,90:ue},s(U,[2,110]),s(et,[2,75]),{14:[1,170]},s(me,[2,11]),s(ge,[2,70]),s(w,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ke},s(k,[2,96]),s(k,[2,100]),s(k,[2,102]),s(k,[2,103],{77:[1,174]}),s(at,[2,108],{85:154,22:ee,50:te,60:se,82:ie,86:ae,87:re,88:ne,89:le,90:ue}),s(Ye,[2,8]),s(w,[2,51]),{41:[1,175]},s(w,[2,54]),s(k,[2,104]),s(w,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:t(function(p,b){if(b.recoverable)this.trace(p);else{var f=Error(p);throw f.hash=b,f}},"parseError"),parse:t(function(p){var b=this,f=[0],o=[],T=[null],e=[],oe=this.table,a="",Ee=0,rt=0,nt=0,At=2,lt=1,bt=e.slice.call(arguments,1),N=Object.create(this.lexer),K={yy:{}};for(var We in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,We))K.yy[We]=this.yy[We];if(N.setInput(p,K.yy),K.yy.lexer=N,K.yy.parser=this,typeof N.yylloc>"u")N.yylloc={};var Qe=N.yylloc;e.push(Qe);var ft=N.options&&N.options.ranges;if(typeof K.yy.parseError==="function")this.parseError=K.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function mt(G){f.length=f.length-2*G,T.length=T.length-G,e.length=e.length-G}t(mt,"popStack");function ut(){var G=o.pop()||N.lex()||lt;if(typeof G!=="number"){if(G instanceof Array)o=G,G=o.pop();G=b.symbols_[G]||G}return G}t(ut,"lex");var x,je,W,V,Nt,Xe,X={},Te,z,ot,ye;while(!0){if(W=f[f.length-1],this.defaultActions[W])V=this.defaultActions[W];else{if(x===null||typeof x>"u")x=ut();V=oe[W]&&oe[W][x]}if(typeof V>"u"||!V.length||!V[0]){var qe="";ye=[];for(Te in oe[W])if(this.terminals_[Te]&&Te>At)ye.push("'"+this.terminals_[Te]+"'");if(N.showPosition)qe="Parse error on line "+(Ee+1)+`:
1
+ import{t,i,st,q,ar,C,L,M,R,P,I,O,D,d,g,H,kt,De,Ne,Me,Ot,He,Ue}from"./chunk-h4bzgvbg.js";import{On}from"./chunk-shtkgxz6.js";import{Et}from"./chunk-cgwnzse1.js";import{ze}from"./chunk-r7afv22v.js";import{Re}from"./chunk-qv5d69fn.js";var Je=function(){var s=t(function(Y,p,b,f){for(b=b||{},f=Y.length;f--;b[Y[f]]=p);return b},"o"),r=[1,18],n=[1,19],l=[1,20],u=[1,41],h=[1,26],A=[1,42],c=[1,24],m=[1,25],E=[1,32],v=[1,33],J=[1,34],y=[1,45],Be=[1,35],_e=[1,36],Se=[1,37],Le=[1,38],xe=[1,27],ve=[1,28],Ie=[1,29],Oe=[1,30],we=[1,31],F=[1,44],B=[1,46],_=[1,43],S=[1,47],Pe=[1,9],k=[1,8,9],ce=[1,58],he=[1,59],de=[1,60],pe=[1,61],Ae=[1,62],Ve=[1,63],Ge=[1,64],w=[1,8,9,41],Ze=[1,77],j=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],be=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],fe=[13,60,86,100,102,103],Z=[13,60,73,74,86,100,102,103],$e=[13,60,68,69,70,71,72,86,100,102,103],ke=[1,103],ee=[1,121],te=[1,117],se=[1,113],ie=[1,119],ae=[1,114],re=[1,115],ne=[1,116],le=[1,118],ue=[1,120],et=[22,50,60,61,82,86,87,88,89,90],tt=[1,128],me=[12,39],Ye=[1,8,9,39,41,44,46],ge=[1,8,9,22],it=[1,153],at=[1,8,9,61],U=[1,8,9,22,50,60,61,82,86,87,88,89,90],Ke={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:t(function(p,b,f,o,T,e,oe){var a=e.length-1;switch(T){case 8:this.$=e[a-1];break;case 9:case 10:case 13:case 15:this.$=e[a];break;case 11:case 14:this.$=e[a-2]+"."+e[a];break;case 12:case 16:this.$=e[a-1]+e[a];break;case 17:case 18:this.$=e[a-1]+"~"+e[a]+"~";break;case 19:o.addRelation(e[a]);break;case 20:e[a-1].title=o.cleanupLabel(e[a]),o.addRelation(e[a-1]);break;case 31:this.$=e[a].trim(),o.setAccTitle(this.$);break;case 32:case 33:this.$=e[a].trim(),o.setAccDescription(this.$);break;case 34:o.addClassesToNamespace(e[a-3],e[a-1][0],e[a-1][1]),o.popNamespace();break;case 35:o.addClassesToNamespace(e[a-4],e[a-1][0],e[a-1][1]),o.popNamespace();break;case 36:this.$=o.addNamespace(e[a]);break;case 37:this.$=o.addNamespace(e[a-1],e[a]);break;case 38:this.$=[[e[a]],[]];break;case 39:this.$=[[e[a-1]],[]];break;case 40:e[a][0].unshift(e[a-2]),this.$=e[a];break;case 41:this.$=[[],[e[a]]];break;case 42:this.$=[[],[e[a-1]]];break;case 43:e[a][1].unshift(e[a-2]),this.$=e[a];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[a];break;case 48:o.setCssClass(e[a-2],e[a]);break;case 49:o.addMembers(e[a-3],e[a-1]);break;case 51:o.setCssClass(e[a-5],e[a-3]),o.addMembers(e[a-5],e[a-1]);break;case 52:o.addAnnotation(e[a-3],e[a-1]);break;case 53:o.addAnnotation(e[a-6],e[a-4]),o.addMembers(e[a-6],e[a-1]);break;case 54:o.addAnnotation(e[a-5],e[a-3]);break;case 55:this.$=e[a],o.addClass(e[a]);break;case 56:this.$=e[a-1],o.addClass(e[a-1]),o.setClassLabel(e[a-1],e[a]);break;case 60:o.addAnnotation(e[a],e[a-2]);break;case 61:case 74:this.$=[e[a]];break;case 62:e[a].push(e[a-1]),this.$=e[a];break;case 63:break;case 64:o.addMember(e[a-1],o.cleanupLabel(e[a]));break;case 65:break;case 66:break;case 67:this.$={id1:e[a-2],id2:e[a],relation:e[a-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[a-3],id2:e[a],relation:e[a-1],relationTitle1:e[a-2],relationTitle2:"none"};break;case 69:this.$={id1:e[a-3],id2:e[a],relation:e[a-2],relationTitle1:"none",relationTitle2:e[a-1]};break;case 70:this.$={id1:e[a-4],id2:e[a],relation:e[a-2],relationTitle1:e[a-3],relationTitle2:e[a-1]};break;case 71:this.$=o.addNote(e[a],e[a-1]);break;case 72:this.$=o.addNote(e[a]);break;case 73:this.$=e[a-2],o.defineClass(e[a-1],e[a]);break;case 75:this.$=e[a-2].concat([e[a]]);break;case 76:o.setDirection("TB");break;case 77:o.setDirection("BT");break;case 78:o.setDirection("RL");break;case 79:o.setDirection("LR");break;case 80:this.$={type1:e[a-2],type2:e[a],lineType:e[a-1]};break;case 81:this.$={type1:"none",type2:e[a],lineType:e[a-1]};break;case 82:this.$={type1:e[a-1],type2:"none",lineType:e[a]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[a]};break;case 84:this.$=o.relationType.AGGREGATION;break;case 85:this.$=o.relationType.EXTENSION;break;case 86:this.$=o.relationType.COMPOSITION;break;case 87:this.$=o.relationType.DEPENDENCY;break;case 88:this.$=o.relationType.LOLLIPOP;break;case 89:this.$=o.lineType.LINE;break;case 90:this.$=o.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[a-2],o.setClickEvent(e[a-1],e[a]);break;case 92:case 98:this.$=e[a-3],o.setClickEvent(e[a-2],e[a-1]),o.setTooltip(e[a-2],e[a]);break;case 93:this.$=e[a-2],o.setLink(e[a-1],e[a]);break;case 94:this.$=e[a-3],o.setLink(e[a-2],e[a-1],e[a]);break;case 95:this.$=e[a-3],o.setLink(e[a-2],e[a-1]),o.setTooltip(e[a-2],e[a]);break;case 96:this.$=e[a-4],o.setLink(e[a-3],e[a-2],e[a]),o.setTooltip(e[a-3],e[a-1]);break;case 99:this.$=e[a-3],o.setClickEvent(e[a-2],e[a-1],e[a]);break;case 100:this.$=e[a-4],o.setClickEvent(e[a-3],e[a-2],e[a-1]),o.setTooltip(e[a-3],e[a]);break;case 101:this.$=e[a-3],o.setLink(e[a-2],e[a]);break;case 102:this.$=e[a-4],o.setLink(e[a-3],e[a-1],e[a]);break;case 103:this.$=e[a-4],o.setLink(e[a-3],e[a-1]),o.setTooltip(e[a-3],e[a]);break;case 104:this.$=e[a-5],o.setLink(e[a-4],e[a-2],e[a]),o.setTooltip(e[a-4],e[a-1]);break;case 105:this.$=e[a-2],o.setCssStyle(e[a-1],e[a]);break;case 106:o.setCssClass(e[a-1],e[a]);break;case 107:this.$=[e[a]];break;case 108:e[a-2].push(e[a]),this.$=e[a-2];break;case 110:this.$=e[a-1]+e[a];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:r,35:n,37:l,38:22,42:u,43:23,46:h,48:A,51:c,52:m,54:E,56:v,57:J,60:y,62:Be,63:_e,64:Se,65:Le,75:xe,76:ve,78:Ie,82:Oe,83:we,86:F,100:B,102:_,103:S},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(Pe,[2,5],{8:[1,48]}),{8:[1,49]},s(k,[2,19],{22:[1,50]}),s(k,[2,21]),s(k,[2,22]),s(k,[2,23]),s(k,[2,24]),s(k,[2,25]),s(k,[2,26]),s(k,[2,27]),s(k,[2,28]),s(k,[2,29]),s(k,[2,30]),{34:[1,51]},{36:[1,52]},s(k,[2,33]),s(k,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:ce,69:he,70:de,71:pe,72:Ae,73:Ve,74:Ge}),{39:[1,65]},s(w,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),s(k,[2,65]),s(k,[2,66]),{16:69,60:y,86:F,100:B,102:_},{16:39,17:40,19:70,60:y,86:F,100:B,102:_,103:S},{16:39,17:40,19:71,60:y,86:F,100:B,102:_,103:S},{16:39,17:40,19:72,60:y,86:F,100:B,102:_,103:S},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:y,86:F,100:B,102:_,103:S},{13:Ze,55:76},{58:78,60:[1,79]},s(k,[2,76]),s(k,[2,77]),s(k,[2,78]),s(k,[2,79]),s(j,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:y,86:F,100:B,102:_,103:S}),s(j,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:y,86:F,100:B,102:_,103:S},{16:39,17:40,19:87,60:y,86:F,100:B,102:_,103:S},s(be,[2,133]),s(be,[2,134]),s(be,[2,135]),s(be,[2,136]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),s(Pe,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:r,35:n,37:l,42:u,46:h,48:A,51:c,52:m,54:E,56:v,57:J,60:y,62:Be,63:_e,64:Se,65:Le,75:xe,76:ve,78:Ie,82:Oe,83:we,86:F,100:B,102:_,103:S}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:r,35:n,37:l,38:22,42:u,43:23,46:h,48:A,51:c,52:m,54:E,56:v,57:J,60:y,62:Be,63:_e,64:Se,65:Le,75:xe,76:ve,78:Ie,82:Oe,83:we,86:F,100:B,102:_,103:S},s(k,[2,20]),s(k,[2,31]),s(k,[2,32]),{13:[1,91],16:39,17:40,19:90,60:y,86:F,100:B,102:_,103:S},{53:92,66:56,67:57,68:ce,69:he,70:de,71:pe,72:Ae,73:Ve,74:Ge},s(k,[2,64]),{67:93,73:Ve,74:Ge},s(fe,[2,83],{66:94,68:ce,69:he,70:de,71:pe,72:Ae}),s(Z,[2,84]),s(Z,[2,85]),s(Z,[2,86]),s(Z,[2,87]),s(Z,[2,88]),s($e,[2,89]),s($e,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:u,43:23,48:A,54:E,56:v},{16:100,60:y,86:F,100:B,102:_},{41:[1,102],45:101,51:ke},{16:104,60:y,86:F,100:B,102:_},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:ee,50:te,59:110,60:se,82:ie,84:111,85:112,86:ae,87:re,88:ne,89:le,90:ue},{60:[1,122]},{13:Ze,55:123},s(w,[2,72]),s(w,[2,138]),{22:ee,50:te,59:124,60:se,61:[1,125],82:ie,84:111,85:112,86:ae,87:re,88:ne,89:le,90:ue},s(et,[2,74]),{16:39,17:40,19:126,60:y,86:F,100:B,102:_,103:S},s(j,[2,16]),s(j,[2,17]),s(j,[2,18]),{11:127,12:tt,39:[2,36]},s(me,[2,9],{16:85,17:86,15:130,18:[1,129],60:y,86:F,100:B,102:_,103:S}),s(me,[2,10]),s(Ye,[2,55],{11:131,12:tt}),s(Pe,[2,7]),{9:[1,132]},s(ge,[2,67]),{16:39,17:40,19:133,60:y,86:F,100:B,102:_,103:S},{13:[1,135],16:39,17:40,19:134,60:y,86:F,100:B,102:_,103:S},s(fe,[2,82],{66:136,68:ce,69:he,70:de,71:pe,72:Ae}),s(fe,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:u,43:23,48:A,54:E,56:v},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},s(w,[2,48],{39:[1,142]}),{41:[1,143]},s(w,[2,50]),{41:[2,61],45:144,51:ke},{47:[1,145]},{16:39,17:40,19:146,60:y,86:F,100:B,102:_,103:S},s(k,[2,91],{13:[1,147]}),s(k,[2,93],{13:[1,149],77:[1,148]}),s(k,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},s(k,[2,105],{61:it}),s(at,[2,107],{85:154,22:ee,50:te,60:se,82:ie,86:ae,87:re,88:ne,89:le,90:ue}),s(U,[2,109]),s(U,[2,111]),s(U,[2,112]),s(U,[2,113]),s(U,[2,114]),s(U,[2,115]),s(U,[2,116]),s(U,[2,117]),s(U,[2,118]),s(U,[2,119]),s(k,[2,106]),s(w,[2,71]),s(k,[2,73],{61:it}),{60:[1,155]},s(j,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:y,86:F,100:B,102:_,103:S},s(me,[2,12]),s(Ye,[2,56]),{1:[2,4]},s(ge,[2,69]),s(ge,[2,68]),{16:39,17:40,19:158,60:y,86:F,100:B,102:_,103:S},s(fe,[2,80]),s(w,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:u,43:23,48:A,54:E,56:v},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:u,43:23,48:A,54:E,56:v},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:u,43:23,48:A,54:E,56:v},{45:163,51:ke},s(w,[2,49]),{41:[2,62]},s(w,[2,52],{39:[1,164]}),s(k,[2,60]),s(k,[2,92]),s(k,[2,94]),s(k,[2,95],{77:[1,165]}),s(k,[2,98]),s(k,[2,99],{13:[1,166]}),s(k,[2,101],{13:[1,168],77:[1,167]}),{22:ee,50:te,60:se,82:ie,84:169,85:112,86:ae,87:re,88:ne,89:le,90:ue},s(U,[2,110]),s(et,[2,75]),{14:[1,170]},s(me,[2,11]),s(ge,[2,70]),s(w,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ke},s(k,[2,96]),s(k,[2,100]),s(k,[2,102]),s(k,[2,103],{77:[1,174]}),s(at,[2,108],{85:154,22:ee,50:te,60:se,82:ie,86:ae,87:re,88:ne,89:le,90:ue}),s(Ye,[2,8]),s(w,[2,51]),{41:[1,175]},s(w,[2,54]),s(k,[2,104]),s(w,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:t(function(p,b){if(b.recoverable)this.trace(p);else{var f=Error(p);throw f.hash=b,f}},"parseError"),parse:t(function(p){var b=this,f=[0],o=[],T=[null],e=[],oe=this.table,a="",Ee=0,rt=0,nt=0,At=2,lt=1,bt=e.slice.call(arguments,1),N=Object.create(this.lexer),K={yy:{}};for(var We in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,We))K.yy[We]=this.yy[We];if(N.setInput(p,K.yy),K.yy.lexer=N,K.yy.parser=this,typeof N.yylloc>"u")N.yylloc={};var Qe=N.yylloc;e.push(Qe);var ft=N.options&&N.options.ranges;if(typeof K.yy.parseError==="function")this.parseError=K.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function mt(G){f.length=f.length-2*G,T.length=T.length-G,e.length=e.length-G}t(mt,"popStack");function ut(){var G=o.pop()||N.lex()||lt;if(typeof G!=="number"){if(G instanceof Array)o=G,G=o.pop();G=b.symbols_[G]||G}return G}t(ut,"lex");var x,je,W,V,Nt,Xe,X={},Te,z,ot,ye;while(!0){if(W=f[f.length-1],this.defaultActions[W])V=this.defaultActions[W];else{if(x===null||typeof x>"u")x=ut();V=oe[W]&&oe[W][x]}if(typeof V>"u"||!V.length||!V[0]){var qe="";ye=[];for(Te in oe[W])if(this.terminals_[Te]&&Te>At)ye.push("'"+this.terminals_[Te]+"'");if(N.showPosition)qe="Parse error on line "+(Ee+1)+`:
2
2
  `+N.showPosition()+`
3
3
  Expecting `+ye.join(", ")+", got '"+(this.terminals_[x]||x)+"'";else qe="Parse error on line "+(Ee+1)+": Unexpected "+(x==lt?"end of input":"'"+(this.terminals_[x]||x)+"'");this.parseError(qe,{text:N.match,token:this.terminals_[x]||x,line:N.yylineno,loc:Qe,expected:ye})}if(V[0]instanceof Array&&V.length>1)throw Error("Parse Error: multiple actions possible at state: "+W+", token: "+x);switch(V[0]){case 1:if(f.push(x),T.push(N.yytext),e.push(N.yylloc),f.push(V[1]),x=null,!je){if(rt=N.yyleng,a=N.yytext,Ee=N.yylineno,Qe=N.yylloc,nt>0)nt--}else x=je,je=null;break;case 2:if(z=this.productions_[V[1]][1],X.$=T[T.length-z],X._$={first_line:e[e.length-(z||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(z||1)].first_column,last_column:e[e.length-1].last_column},ft)X._$.range=[e[e.length-(z||1)].range[0],e[e.length-1].range[1]];if(Xe=this.performAction.apply(X,[a,rt,Ee,K.yy,V[1],T,e].concat(bt)),typeof Xe<"u")return Xe;if(z)f=f.slice(0,-1*z*2),T=T.slice(0,-1*z),e=e.slice(0,-1*z);f.push(this.productions_[V[1]][0]),T.push(X.$),e.push(X._$),ot=oe[f[f.length-2]][f[f.length-1]],f.push(ot);break;case 3:return!0}}return!0},"parse")},pt=function(){var Y={EOF:1,parseError:t(function(b,f){if(this.yy.parser)this.yy.parser.parseError(b,f);else throw Error(b)},"parseError"),setInput:t(function(p,b){if(this.yy=b||this.yy||{},this._input=p,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var p=this._input[0];this.yytext+=p,this.yyleng++,this.offset++,this.match+=p,this.matched+=p;var b=p.match(/(?:\r\n?|\n).*/g);if(b)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),p},"input"),unput:t(function(p){var b=p.length,f=p.split(/(?:\r\n?|\n)/g);this._input=p+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var o=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1)this.yylineno-=f.length-1;var T=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===o.length?this.yylloc.first_column:0)+o[o.length-f.length].length-f[0].length:this.yylloc.first_column-b},this.options.ranges)this.yylloc.range=[T[0],T[0]+this.yyleng-b];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(p){this.unput(this.match.slice(p))},"less"),pastInput:t(function(){var p=this.matched.substr(0,this.matched.length-this.match.length);return(p.length>20?"...":"")+p.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var p=this.match;if(p.length<20)p+=this._input.substr(0,20-p.length);return(p.substr(0,20)+(p.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var p=this.pastInput(),b=Array(p.length+1).join("-");return p+this.upcomingInput()+`
Binary file
Binary file
@@ -1 +1 @@
1
- import{s,te,o,a,m,e,n,b,xe,ye}from"./chunk-hxsrph02.js";import{Ji}from"./chunk-crfbqd4d.js";var T=[{id:"exa",name:"Exa",description:"免密钥 · 综合搜索"},{id:"tavily",name:"Tavily",description:"免密钥 · 支持域名筛选"},{id:"parallel",name:"Parallel",description:"免密钥 · 网页搜索"},{id:"firecrawl",name:"Firecrawl",description:"免密钥 · 网页内容"},{id:"tinyfish",name:"TinyFish",description:"免密钥 · 搜索摘要"},{id:"searxng",name:"SearXNG",description:"免密钥 · 需自建服务"},{id:"brave",name:"Brave",description:"需密钥 · 独立搜索引擎"}];function D(t){return{enabled:t.search.provider!=="off",provider:t.search.provider==="off"?"auto":t.search.provider,searxngUrl:t.search.searxngUrl??"",proxy:t.proxy??"",acceptLanguage:t.acceptLanguage??""}}function G(t,c){return{search:{provider:t.enabled?t.provider:"off",searxngUrl:t.searxngUrl},keys:{...c},proxy:t.proxy,acceptLanguage:t.acceptLanguage}}function A(t,c,u){let p=D(t);if(c.enabled!==p.enabled)return!0;if(c.enabled&&c.provider!==p.provider)return!0;return c.searxngUrl!==p.searxngUrl||c.proxy!==p.proxy||c.acceptLanguage!==p.acceptLanguage||Object.keys(u).length>0}function z({notice:t}){let{cn:c}=b();if(!t)return null;let u=t.type==="success"?Ji:xe;return n("div",{role:t.type==="error"?"alert":"status",className:c("flex items-start gap-2 text-xs",t.type==="success"?"text-success":"text-danger"),children:[e(u,{className:"mt-0.5 size-4 shrink-0","aria-hidden":"true"}),e("span",{className:"min-w-0 break-words",children:t.text})]})}function I(t){let{Button:c,Input:u,Switch:p,Select:x,StatusChip:S,SettingActions:R,SettingGroup:P,SettingRow:C,cn:w}=b(),y=te(),l=t.busy!==void 0;return n("form",{id:`${y}-form`,className:"min-w-0 space-y-5",onSubmit:async(r)=>{r.preventDefault(),await t.onSave()},children:[n(P,{title:"联网搜索",children:[e(C,{title:"启用搜索",description:"查询会发送至所选搜索服务",children:e(p,{label:"启用联网搜索",disabled:l,checked:t.draft.enabled,onCheckedChange:(r)=>t.onDraft({...t.draft,enabled:r})})}),e(C,{title:"搜索渠道",description:"自动:Exa → Tavily → Parallel → Firecrawl → TinyFish",children:e("div",{className:"w-48",children:e(x,{id:`${y}-provider`,value:t.draft.provider,disabled:l||!t.draft.enabled,className:"min-w-0",groups:[{options:[{value:"auto",label:"自动",description:"失败时依次切换渠道"},...T.map((r)=>({value:r.id,label:r.name}))]}],onValueChange:(r)=>{let i=r==="auto"?r:T.find((k)=>k.id===r)?.id;if(i)t.onDraft({...t.draft,provider:i})}})})}),(t.draft.provider==="searxng"||t.draft.searxngUrl)&&e(C,{vertical:!0,title:"自建 SearXNG 地址",children:e(u,{id:`${y}-searxng`,"aria-label":"自建 SearXNG 地址",type:"url",maxLength:2000,disabled:l||!t.draft.enabled,value:t.draft.searxngUrl,placeholder:"https://search.example.com",onChange:(r)=>t.onDraft({...t.draft,searxngUrl:r.target.value})})})]}),e(P,{title:"渠道与密钥",description:"检测使用已保存的配置",action:n(c,{type:"button",size:"sm",variant:"ghost",disabled:l,className:"text-dim",onClick:async()=>await t.onCheck("all"),children:[e(ye,{className:w("size-3.5",t.checking==="all"&&"animate-spin"),"aria-hidden":"true"}),t.checking==="all"?"正在检测…":"全部检测"]}),children:T.map((r)=>{let i=r.id,k=i==="searxng"?void 0:t.saved.keys[i],K=k?.source==="environment",W=i==="searxng"?void 0:t.keys[i],h=W==="",v=t.checks[i],L=t.checking==="all"||t.checking===i,f=k?.configured?"已配置密钥":"未配置";if(i==="searxng")f=t.saved.search.searxngUrl?"已配置地址":"未配置地址";if(K)f="来自环境变量";if(h)f="待移除";if(W)f="待保存密钥";let E=v&&!v.ok&&!L?v.error??(v.kind==="search"?v.meta?.failed[0]?.error:v.meta?.error)??"检测失败,请检查配置。":void 0;return n("div",{className:"min-w-0",children:[n(C,{title:r.name,description:n(m,{children:[r.description,K&&" · 请在服务端环境变量中更换或移除",E&&e("span",{role:"status",className:"block break-words text-danger",children:E})]}),children:[L?e(S,{tone:"neutral",pulse:!0,children:"检测中"}):v?e(S,{tone:v.ok?"success":"danger",children:v.ok?`可用 ${v.elapsedMs} ms`:"不可用"}):e("span",{className:w("text-xs",W!==void 0?"text-warning":"text-faint"),children:f}),i!=="searxng"&&!K&&n(m,{children:[e(c,{type:"button",size:"sm",variant:"ghost",disabled:l,"aria-label":`${k?.configured?"更换":"设置"} ${r.name} 密钥`,"aria-expanded":t.editingKey===i,"aria-controls":`${y}-${i}-key-editor`,onClick:()=>t.onEditKey(t.editingKey===i?void 0:i),children:k?.configured?"更换":"设置密钥"}),k?.configured&&!h&&e(c,{type:"button",size:"sm",variant:"ghost",disabled:l,"aria-label":`移除 ${r.name} 密钥`,onClick:()=>{t.onKeys({...t.keys,[i]:""}),t.onEditKey(void 0)},children:"移除"})]}),e(c,{type:"button",size:"sm",variant:"ghost",disabled:l,"aria-label":`检测 ${r.name}`,onClick:async()=>await t.onCheck(i),children:"检测"})]}),i!=="searxng"&&t.editingKey===i&&n("div",{id:`${y}-${i}-key-editor`,className:"flex items-center gap-2 pb-3",children:[e(u,{id:`${y}-${i}-key`,"aria-label":`${r.name} API 密钥`,type:"password",autoComplete:"new-password",maxLength:4000,disabled:l,value:t.keys[i]??"",placeholder:"输入新密钥,保存后生效;只写入,不回显",onChange:(N)=>{let d={...t.keys};if(N.target.value.trim())d[i]=N.target.value;else delete d[i];t.onKeys(d)}}),e(c,{type:"button",size:"sm",variant:"ghost",disabled:l,onClick:()=>{let N={...t.keys};delete N[i],t.onKeys(N),t.onEditKey(void 0)},children:"取消"})]})]},i)})}),n(P,{title:"网络",children:[e(C,{vertical:!0,title:"代理 URL",description:"留空使用服务端环境代理",children:e(u,{id:`${y}-proxy`,"aria-label":"代理 URL",type:"url",maxLength:2000,disabled:l,value:t.draft.proxy,placeholder:"http://127.0.0.1:7890",onChange:(r)=>t.onDraft({...t.draft,proxy:r.target.value})})}),e(C,{vertical:!0,title:"Accept-Language",children:e(u,{id:`${y}-language`,"aria-label":"Accept-Language",maxLength:200,disabled:l,value:t.draft.acceptLanguage,placeholder:"en-US,en;q=0.9",onChange:(r)=>t.onDraft({...t.draft,acceptLanguage:r.target.value})})})]}),n(R,{children:[e("div",{className:"mr-auto min-w-0",children:e(z,{notice:t.notice})}),t.dirty&&e(c,{type:"button",size:"sm",variant:"ghost",disabled:l,onClick:t.onRestore,children:"撤销更改"}),e(c,{form:`${y}-form`,type:"submit",size:"sm",variant:"primary",disabled:l||!t.dirty,children:t.busy==="save"?"保存中…":"保存"})]})]})}function M({connection:t}){let{Button:c}=b(),[u,p]=a(),[x,S]=a(),[R,P]=a({}),[C,w]=a(),[y,l]=a("load"),[r,i]=a(),[k,K]=a({}),[W,h]=a(),[v,L]=a(0),f=o(void 0);s(()=>{let d=new AbortController;return f.current=d,l("load"),h(void 0),p(void 0),S(void 0),P({}),w(void 0),K({}),t.request("/api/plugins/webfetch/settings",{signal:d.signal,cache:v>0?"reload":"default"}).then((g)=>{if(d.signal.aborted)return;p(g),S(D(g))}).catch((g)=>{if(!d.signal.aborted)h({type:"error",text:g instanceof Error?g.message:"加载设置失败,请重试。"})}).finally(()=>{if(!d.signal.aborted)f.current=void 0,l(void 0)}),()=>{d.abort(),f.current?.abort(),f.current=void 0}},[t,v]);async function E(){if(f.current||!u||!x||!A(u,x,R))return;let d=new AbortController;f.current=d,l("save"),h(void 0);try{let g=await t.request("/api/plugins/webfetch/settings",{method:"PATCH",signal:d.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify(G(x,R))});if(d.signal.aborted)return;p(g),S(D(g)),P({}),w(void 0),K({}),h({type:"success",text:"设置已保存。"})}catch(g){if(!d.signal.aborted)h({type:"error",text:g instanceof Error?g.message:"保存失败,请重试。"})}finally{if(!d.signal.aborted)f.current=void 0,l(void 0)}}async function N(d){if(f.current||!u)return;let g=new AbortController;f.current=g,l("test"),i(d),h(void 0);try{let U=await t.request(`/api/plugins/webfetch/test?provider=${d}`,{method:"POST",signal:g.signal});if(g.signal.aborted)return;K((q)=>{let F={...q};for(let B of U.checks)if(B.kind==="search"&&B.provider)F[B.provider]=B;return F})}catch(U){if(!g.signal.aborted)h({type:"error",text:U instanceof Error?U.message:"检测失败,请重试。"})}finally{if(!g.signal.aborted)f.current=void 0,l(void 0),i(void 0)}}if(!u||!x)return n("div",{className:"min-w-0 space-y-3",children:[y==="load"&&e("p",{role:"status",className:"text-sm text-dim",children:"正在加载设置…"}),e(z,{notice:W}),y!=="load"&&e(c,{type:"button",size:"sm",variant:"ghost",onClick:()=>L(v+1),children:"重新加载"})]});return e(I,{saved:u,draft:x,keys:R,editingKey:C,dirty:A(u,x,R),busy:y==="load"?void 0:y,checking:r,checks:k,notice:W,onDraft:(d)=>{S(d),h(void 0)},onKeys:(d)=>{P(d),h(void 0)},onEditKey:w,onSave:E,onCheck:N,onRestore:()=>{S(D(u)),P({}),w(void 0),h(void 0)}})}export{M as default};
1
+ import{s,te,o,a,m,e,n,b,xe,ye}from"./chunk-56a6zytc.js";import{Ji}from"./chunk-egjv760p.js";var T=[{id:"exa",name:"Exa",description:"免密钥 · 综合搜索"},{id:"tavily",name:"Tavily",description:"免密钥 · 支持域名筛选"},{id:"parallel",name:"Parallel",description:"免密钥 · 网页搜索"},{id:"firecrawl",name:"Firecrawl",description:"免密钥 · 网页内容"},{id:"tinyfish",name:"TinyFish",description:"免密钥 · 搜索摘要"},{id:"searxng",name:"SearXNG",description:"免密钥 · 需自建服务"},{id:"brave",name:"Brave",description:"需密钥 · 独立搜索引擎"}];function D(t){return{enabled:t.search.provider!=="off",provider:t.search.provider==="off"?"auto":t.search.provider,searxngUrl:t.search.searxngUrl??"",proxy:t.proxy??"",acceptLanguage:t.acceptLanguage??""}}function G(t,c){return{search:{provider:t.enabled?t.provider:"off",searxngUrl:t.searxngUrl},keys:{...c},proxy:t.proxy,acceptLanguage:t.acceptLanguage}}function A(t,c,u){let p=D(t);if(c.enabled!==p.enabled)return!0;if(c.enabled&&c.provider!==p.provider)return!0;return c.searxngUrl!==p.searxngUrl||c.proxy!==p.proxy||c.acceptLanguage!==p.acceptLanguage||Object.keys(u).length>0}function z({notice:t}){let{cn:c}=b();if(!t)return null;let u=t.type==="success"?Ji:xe;return n("div",{role:t.type==="error"?"alert":"status",className:c("flex items-start gap-2 text-xs",t.type==="success"?"text-success":"text-danger"),children:[e(u,{className:"mt-0.5 size-4 shrink-0","aria-hidden":"true"}),e("span",{className:"min-w-0 break-words",children:t.text})]})}function I(t){let{Button:c,Input:u,Switch:p,Select:x,StatusChip:S,SettingActions:R,SettingGroup:P,SettingRow:C,cn:w}=b(),y=te(),l=t.busy!==void 0;return n("form",{id:`${y}-form`,className:"min-w-0 space-y-5",onSubmit:async(r)=>{r.preventDefault(),await t.onSave()},children:[n(P,{title:"联网搜索",children:[e(C,{title:"启用搜索",description:"查询会发送至所选搜索服务",children:e(p,{label:"启用联网搜索",disabled:l,checked:t.draft.enabled,onCheckedChange:(r)=>t.onDraft({...t.draft,enabled:r})})}),e(C,{title:"搜索渠道",description:"自动:Exa → Tavily → Parallel → Firecrawl → TinyFish",children:e("div",{className:"w-48",children:e(x,{id:`${y}-provider`,value:t.draft.provider,disabled:l||!t.draft.enabled,className:"min-w-0",groups:[{options:[{value:"auto",label:"自动",description:"失败时依次切换渠道"},...T.map((r)=>({value:r.id,label:r.name}))]}],onValueChange:(r)=>{let i=r==="auto"?r:T.find((k)=>k.id===r)?.id;if(i)t.onDraft({...t.draft,provider:i})}})})}),(t.draft.provider==="searxng"||t.draft.searxngUrl)&&e(C,{vertical:!0,title:"自建 SearXNG 地址",children:e(u,{id:`${y}-searxng`,"aria-label":"自建 SearXNG 地址",type:"url",maxLength:2000,disabled:l||!t.draft.enabled,value:t.draft.searxngUrl,placeholder:"https://search.example.com",onChange:(r)=>t.onDraft({...t.draft,searxngUrl:r.target.value})})})]}),e(P,{title:"渠道与密钥",description:"检测使用已保存的配置",action:n(c,{type:"button",size:"sm",variant:"ghost",disabled:l,className:"text-dim",onClick:async()=>await t.onCheck("all"),children:[e(ye,{className:w("size-3.5",t.checking==="all"&&"animate-spin"),"aria-hidden":"true"}),t.checking==="all"?"正在检测…":"全部检测"]}),children:T.map((r)=>{let i=r.id,k=i==="searxng"?void 0:t.saved.keys[i],K=k?.source==="environment",W=i==="searxng"?void 0:t.keys[i],h=W==="",v=t.checks[i],L=t.checking==="all"||t.checking===i,f=k?.configured?"已配置密钥":"未配置";if(i==="searxng")f=t.saved.search.searxngUrl?"已配置地址":"未配置地址";if(K)f="来自环境变量";if(h)f="待移除";if(W)f="待保存密钥";let E=v&&!v.ok&&!L?v.error??(v.kind==="search"?v.meta?.failed[0]?.error:v.meta?.error)??"检测失败,请检查配置。":void 0;return n("div",{className:"min-w-0",children:[n(C,{title:r.name,description:n(m,{children:[r.description,K&&" · 请在服务端环境变量中更换或移除",E&&e("span",{role:"status",className:"block break-words text-danger",children:E})]}),children:[L?e(S,{tone:"neutral",pulse:!0,children:"检测中"}):v?e(S,{tone:v.ok?"success":"danger",children:v.ok?`可用 ${v.elapsedMs} ms`:"不可用"}):e("span",{className:w("text-xs",W!==void 0?"text-warning":"text-faint"),children:f}),i!=="searxng"&&!K&&n(m,{children:[e(c,{type:"button",size:"sm",variant:"ghost",disabled:l,"aria-label":`${k?.configured?"更换":"设置"} ${r.name} 密钥`,"aria-expanded":t.editingKey===i,"aria-controls":`${y}-${i}-key-editor`,onClick:()=>t.onEditKey(t.editingKey===i?void 0:i),children:k?.configured?"更换":"设置密钥"}),k?.configured&&!h&&e(c,{type:"button",size:"sm",variant:"ghost",disabled:l,"aria-label":`移除 ${r.name} 密钥`,onClick:()=>{t.onKeys({...t.keys,[i]:""}),t.onEditKey(void 0)},children:"移除"})]}),e(c,{type:"button",size:"sm",variant:"ghost",disabled:l,"aria-label":`检测 ${r.name}`,onClick:async()=>await t.onCheck(i),children:"检测"})]}),i!=="searxng"&&t.editingKey===i&&n("div",{id:`${y}-${i}-key-editor`,className:"flex items-center gap-2 pb-3",children:[e(u,{id:`${y}-${i}-key`,"aria-label":`${r.name} API 密钥`,type:"password",autoComplete:"new-password",maxLength:4000,disabled:l,value:t.keys[i]??"",placeholder:"输入新密钥,保存后生效;只写入,不回显",onChange:(N)=>{let d={...t.keys};if(N.target.value.trim())d[i]=N.target.value;else delete d[i];t.onKeys(d)}}),e(c,{type:"button",size:"sm",variant:"ghost",disabled:l,onClick:()=>{let N={...t.keys};delete N[i],t.onKeys(N),t.onEditKey(void 0)},children:"取消"})]})]},i)})}),n(P,{title:"网络",children:[e(C,{vertical:!0,title:"代理 URL",description:"留空使用服务端环境代理",children:e(u,{id:`${y}-proxy`,"aria-label":"代理 URL",type:"url",maxLength:2000,disabled:l,value:t.draft.proxy,placeholder:"http://127.0.0.1:7890",onChange:(r)=>t.onDraft({...t.draft,proxy:r.target.value})})}),e(C,{vertical:!0,title:"Accept-Language",children:e(u,{id:`${y}-language`,"aria-label":"Accept-Language",maxLength:200,disabled:l,value:t.draft.acceptLanguage,placeholder:"en-US,en;q=0.9",onChange:(r)=>t.onDraft({...t.draft,acceptLanguage:r.target.value})})})]}),n(R,{children:[e("div",{className:"mr-auto min-w-0",children:e(z,{notice:t.notice})}),t.dirty&&e(c,{type:"button",size:"sm",variant:"ghost",disabled:l,onClick:t.onRestore,children:"撤销更改"}),e(c,{form:`${y}-form`,type:"submit",size:"sm",variant:"primary",disabled:l||!t.dirty,children:t.busy==="save"?"保存中…":"保存"})]})]})}function M({connection:t}){let{Button:c}=b(),[u,p]=a(),[x,S]=a(),[R,P]=a({}),[C,w]=a(),[y,l]=a("load"),[r,i]=a(),[k,K]=a({}),[W,h]=a(),[v,L]=a(0),f=o(void 0);s(()=>{let d=new AbortController;return f.current=d,l("load"),h(void 0),p(void 0),S(void 0),P({}),w(void 0),K({}),t.request("/api/plugins/webfetch/settings",{signal:d.signal,cache:v>0?"reload":"default"}).then((g)=>{if(d.signal.aborted)return;p(g),S(D(g))}).catch((g)=>{if(!d.signal.aborted)h({type:"error",text:g instanceof Error?g.message:"加载设置失败,请重试。"})}).finally(()=>{if(!d.signal.aborted)f.current=void 0,l(void 0)}),()=>{d.abort(),f.current?.abort(),f.current=void 0}},[t,v]);async function E(){if(f.current||!u||!x||!A(u,x,R))return;let d=new AbortController;f.current=d,l("save"),h(void 0);try{let g=await t.request("/api/plugins/webfetch/settings",{method:"PATCH",signal:d.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify(G(x,R))});if(d.signal.aborted)return;p(g),S(D(g)),P({}),w(void 0),K({}),h({type:"success",text:"设置已保存。"})}catch(g){if(!d.signal.aborted)h({type:"error",text:g instanceof Error?g.message:"保存失败,请重试。"})}finally{if(!d.signal.aborted)f.current=void 0,l(void 0)}}async function N(d){if(f.current||!u)return;let g=new AbortController;f.current=g,l("test"),i(d),h(void 0);try{let U=await t.request(`/api/plugins/webfetch/test?provider=${d}`,{method:"POST",signal:g.signal});if(g.signal.aborted)return;K((q)=>{let F={...q};for(let B of U.checks)if(B.kind==="search"&&B.provider)F[B.provider]=B;return F})}catch(U){if(!g.signal.aborted)h({type:"error",text:U instanceof Error?U.message:"检测失败,请重试。"})}finally{if(!g.signal.aborted)f.current=void 0,l(void 0),i(void 0)}}if(!u||!x)return n("div",{className:"min-w-0 space-y-3",children:[y==="load"&&e("p",{role:"status",className:"text-sm text-dim",children:"正在加载设置…"}),e(z,{notice:W}),y!=="load"&&e(c,{type:"button",size:"sm",variant:"ghost",onClick:()=>L(v+1),children:"重新加载"})]});return e(I,{saved:u,draft:x,keys:R,editingKey:C,dirty:A(u,x,R),busy:y==="load"?void 0:y,checking:r,checks:k,notice:W,onDraft:(d)=>{S(d),h(void 0)},onKeys:(d)=>{P(d),h(void 0)},onEditKey:w,onSave:E,onCheck:N,onRestore:()=>{S(D(u)),P({}),w(void 0),h(void 0)}})}export{M as default};
Binary file
Binary file
@@ -1 +1 @@
1
- import{y,s,te,o,a,e,n,b,En,ye}from"./chunk-hxsrph02.js";import{Wn}from"./chunk-1qd75yjn.js";import"./chunk-crfbqd4d.js";var F={config:"自定义路径",env:"环境变量",system:"系统预装"},x="chrome://inspect/#remote-debugging";function H({connection:d}){let{Button:h,Input:B,Switch:E,SettingGroup:S,SettingRow:f,cn:v}=b(),N=te(),[m,R]=a({}),[r,g]=a({}),[i,C]=a(null),[u,A]=a(!0),[k,O]=a(!1),[p,P]=a(!1),[I,c]=a(null),D=o(null),T=(r.executable??"")!==(m.executable??"")||Boolean(r.noSandbox)!==Boolean(m.noSandbox)||Boolean(r.ignoreCertErrors)!==Boolean(m.ignoreCertErrors)||(r.cdpEndpoint??"")!==(m.cdpEndpoint??""),G=y(async(t)=>{O(!0);try{let l=await d.request("/api/plugins/browser/status",{signal:t});C(l)}catch(l){if(!t?.aborted)C({available:!1,error:l instanceof Error?l.message:"无法获取浏览器状态"})}finally{if(!t?.aborted)O(!1)}},[d]);s(()=>{let t=new AbortController;return D.current=t,Promise.all([d.request("/api/plugins/browser/settings",{signal:t.signal}),d.request("/api/plugins/browser/status",{signal:t.signal})]).then(([l,w])=>{if(!t.signal.aborted)R(l),g(l),C(w)}).catch((l)=>{if(!t.signal.aborted)c({type:"error",text:l instanceof Error?l.message:"读取浏览器设置失败"})}).finally(()=>{if(!t.signal.aborted)A(!1)}),()=>t.abort()},[d]);let q=async(t)=>{if(t?.preventDefault(),p||u)return;let l=new AbortController;P(!0),c(null);try{if(await d.request("/api/plugins/browser/settings",{method:"PATCH",signal:l.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),!l.signal.aborted)R(r),c({type:"success",text:"设置已保存,将在浏览器进程下次启动时生效。"}),await G(l.signal)}catch(w){if(!l.signal.aborted)c({type:"error",text:w instanceof Error?w.message:"保存设置失败"})}finally{if(!l.signal.aborted)P(!1)}},U=()=>{g(m),c(null)},L=async()=>{try{await navigator.clipboard.writeText(x),c({type:"success",text:"已复制,粘贴到 Chrome 地址栏打开后开启远程调试。"})}catch{c({type:"error",text:`无法写入剪贴板,请手动复制:${x}`})}},_=i?.user?.available===!1,z="首次连接时在 Chrome 弹窗中点「允许」";if(_)z=r.cdpEndpoint?e("span",{className:"break-words text-danger",children:i?.user?.error}):"在 Chrome 打开远程调试设置页并开启";return n("form",{id:N,onSubmit:q,className:"min-w-0 space-y-5",children:[e(S,{title:"运行环境",children:e(f,{title:n("span",{className:"flex items-center gap-2",children:[e("span",{className:v("size-2 shrink-0 rounded-full",i?.available?"bg-success":"bg-danger")}),i?i.available?"浏览器可用":"未检测到可用浏览器":"正在检测…"]}),description:i&&!i.available&&i.error?e("span",{className:"text-danger",children:i.error}):i?.available&&i.source?`来源:${F[i.source]??i.source}`:void 0,children:n(h,{type:"button",size:"sm",variant:"ghost",disabled:u||k,onClick:()=>void G(),className:"text-dim",children:[e(ye,{className:v("size-3.5",k&&"animate-spin")}),"重新检测"]})})}),n(S,{title:"用户浏览器",children:[e(f,{title:n("span",{className:"flex items-center gap-2",children:[e("span",{className:v("size-2 shrink-0 rounded-full",i?.user?.available?"bg-success":"bg-danger")}),i?.user?i.user.available?"可以连接":"暂不可连接":"正在检测…"]}),description:z,children:!r.cdpEndpoint&&n(h,{type:"button",size:"sm",variant:"secondary",title:x,onClick:()=>void L(),children:[e(En,{className:"size-3.5"}),"复制远程调试地址"]})}),e(f,{vertical:!0,title:"调试地址",description:"可选,连接以 --remote-debugging-port 启动的本机浏览器",children:e(B,{id:"browser-cdp-endpoint","aria-label":"浏览器调试地址",disabled:u||p,value:r.cdpEndpoint??"",placeholder:"留空连接日常 Chrome",onChange:(t)=>{g({...r,cdpEndpoint:t.target.value}),c(null)}})})]}),n(S,{title:"启动参数",children:[e(f,{vertical:!0,title:"可执行文件路径",description:"留空时自动探测系统浏览器",children:n("div",{className:"flex gap-2",children:[e(B,{id:"browser-executable",disabled:u||p,value:r.executable??"",placeholder:"自动探测",onChange:(t)=>{g({...r,executable:t.target.value}),c(null)}}),r.executable&&e(h,{type:"button",variant:"ghost",size:"sm",disabled:u||p,onClick:()=>{g({...r,executable:""}),c(null)},className:"shrink-0",children:"清空"})]})}),e(f,{title:"禁用沙箱 (--no-sandbox)",description:"容器或 root 环境使用",children:e(E,{label:"禁用沙箱",disabled:u||p,checked:r.noSandbox??!1,onCheckedChange:(t)=>{g({...r,noSandbox:t}),c(null)}})}),e(f,{title:"忽略证书错误 (--ignore-certificate-errors)",description:"跳过自签名与证书有效性检查",children:e(E,{label:"忽略证书错误",disabled:u||p,checked:r.ignoreCertErrors??!1,onCheckedChange:(t)=>{g({...r,ignoreCertErrors:t}),c(null)}})})]}),e(Wn,{formID:N,notice:I,dirty:T,busy:u||p,saving:p,onReset:U})]})}export{H as default};
1
+ import{y,s,te,o,a,e,n,b,En,ye}from"./chunk-56a6zytc.js";import{Wn}from"./chunk-fjhqg9ag.js";import"./chunk-egjv760p.js";var F={config:"自定义路径",env:"环境变量",system:"系统预装"},x="chrome://inspect/#remote-debugging";function H({connection:d}){let{Button:h,Input:B,Switch:E,SettingGroup:S,SettingRow:f,cn:v}=b(),N=te(),[m,R]=a({}),[r,g]=a({}),[i,C]=a(null),[u,A]=a(!0),[k,O]=a(!1),[p,P]=a(!1),[I,c]=a(null),D=o(null),T=(r.executable??"")!==(m.executable??"")||Boolean(r.noSandbox)!==Boolean(m.noSandbox)||Boolean(r.ignoreCertErrors)!==Boolean(m.ignoreCertErrors)||(r.cdpEndpoint??"")!==(m.cdpEndpoint??""),G=y(async(t)=>{O(!0);try{let l=await d.request("/api/plugins/browser/status",{signal:t});C(l)}catch(l){if(!t?.aborted)C({available:!1,error:l instanceof Error?l.message:"无法获取浏览器状态"})}finally{if(!t?.aborted)O(!1)}},[d]);s(()=>{let t=new AbortController;return D.current=t,Promise.all([d.request("/api/plugins/browser/settings",{signal:t.signal}),d.request("/api/plugins/browser/status",{signal:t.signal})]).then(([l,w])=>{if(!t.signal.aborted)R(l),g(l),C(w)}).catch((l)=>{if(!t.signal.aborted)c({type:"error",text:l instanceof Error?l.message:"读取浏览器设置失败"})}).finally(()=>{if(!t.signal.aborted)A(!1)}),()=>t.abort()},[d]);let q=async(t)=>{if(t?.preventDefault(),p||u)return;let l=new AbortController;P(!0),c(null);try{if(await d.request("/api/plugins/browser/settings",{method:"PATCH",signal:l.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),!l.signal.aborted)R(r),c({type:"success",text:"设置已保存,将在浏览器进程下次启动时生效。"}),await G(l.signal)}catch(w){if(!l.signal.aborted)c({type:"error",text:w instanceof Error?w.message:"保存设置失败"})}finally{if(!l.signal.aborted)P(!1)}},U=()=>{g(m),c(null)},L=async()=>{try{await navigator.clipboard.writeText(x),c({type:"success",text:"已复制,粘贴到 Chrome 地址栏打开后开启远程调试。"})}catch{c({type:"error",text:`无法写入剪贴板,请手动复制:${x}`})}},_=i?.user?.available===!1,z="首次连接时在 Chrome 弹窗中点「允许」";if(_)z=r.cdpEndpoint?e("span",{className:"break-words text-danger",children:i?.user?.error}):"在 Chrome 打开远程调试设置页并开启";return n("form",{id:N,onSubmit:q,className:"min-w-0 space-y-5",children:[e(S,{title:"运行环境",children:e(f,{title:n("span",{className:"flex items-center gap-2",children:[e("span",{className:v("size-2 shrink-0 rounded-full",i?.available?"bg-success":"bg-danger")}),i?i.available?"浏览器可用":"未检测到可用浏览器":"正在检测…"]}),description:i&&!i.available&&i.error?e("span",{className:"text-danger",children:i.error}):i?.available&&i.source?`来源:${F[i.source]??i.source}`:void 0,children:n(h,{type:"button",size:"sm",variant:"ghost",disabled:u||k,onClick:()=>void G(),className:"text-dim",children:[e(ye,{className:v("size-3.5",k&&"animate-spin")}),"重新检测"]})})}),n(S,{title:"用户浏览器",children:[e(f,{title:n("span",{className:"flex items-center gap-2",children:[e("span",{className:v("size-2 shrink-0 rounded-full",i?.user?.available?"bg-success":"bg-danger")}),i?.user?i.user.available?"可以连接":"暂不可连接":"正在检测…"]}),description:z,children:!r.cdpEndpoint&&n(h,{type:"button",size:"sm",variant:"secondary",title:x,onClick:()=>void L(),children:[e(En,{className:"size-3.5"}),"复制远程调试地址"]})}),e(f,{vertical:!0,title:"调试地址",description:"可选,连接以 --remote-debugging-port 启动的本机浏览器",children:e(B,{id:"browser-cdp-endpoint","aria-label":"浏览器调试地址",disabled:u||p,value:r.cdpEndpoint??"",placeholder:"留空连接日常 Chrome",onChange:(t)=>{g({...r,cdpEndpoint:t.target.value}),c(null)}})})]}),n(S,{title:"启动参数",children:[e(f,{vertical:!0,title:"可执行文件路径",description:"留空时自动探测系统浏览器",children:n("div",{className:"flex gap-2",children:[e(B,{id:"browser-executable",disabled:u||p,value:r.executable??"",placeholder:"自动探测",onChange:(t)=>{g({...r,executable:t.target.value}),c(null)}}),r.executable&&e(h,{type:"button",variant:"ghost",size:"sm",disabled:u||p,onClick:()=>{g({...r,executable:""}),c(null)},className:"shrink-0",children:"清空"})]})}),e(f,{title:"禁用沙箱 (--no-sandbox)",description:"容器或 root 环境使用",children:e(E,{label:"禁用沙箱",disabled:u||p,checked:r.noSandbox??!1,onCheckedChange:(t)=>{g({...r,noSandbox:t}),c(null)}})}),e(f,{title:"忽略证书错误 (--ignore-certificate-errors)",description:"跳过自签名与证书有效性检查",children:e(E,{label:"忽略证书错误",disabled:u||p,checked:r.ignoreCertErrors??!1,onCheckedChange:(t)=>{g({...r,ignoreCertErrors:t}),c(null)}})})]}),e(Wn,{formID:N,notice:I,dirty:T,busy:u||p,saving:p,onReset:U})]})}export{H as default};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{Hs}from"./chunk-9qdx0ekk.js";export{Hs as createEventModelingServices};
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import{t,nr,i,A,L,M,R,P,I,O,D,d,H,De,Ne,Me,dn,He,Ue}from"./chunk-eq59kad4.js";import{ze}from"./chunk-37hn49td.js";import{Re}from"./chunk-tefm9md2.js";var Be=function(){var e=t(function(X,a,l,c){for(l=l||{},c=X.length;c--;l[X[c]]=a);return l},"o"),f=[1,3],m=[1,4],u=[1,5],n=[1,6],h=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],_=[1,22],q=[2,7],E=[1,26],S=[1,27],T=[1,28],x=[1,29],w=[1,33],F=[1,34],U=[1,35],Y=[1,36],B=[1,37],Q=[1,38],K=[1,24],W=[1,31],j=[1,32],G=[1,30],k=[1,39],g=[1,40],b=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],J=[1,61],ce=[89,90],Qe=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ce=[27,29],Ke=[1,70],We=[1,71],je=[1,72],Ge=[1,73],Xe=[1,74],Je=[1,75],Ze=[1,76],ue=[1,83],Z=[1,80],me=[1,84],fe=[1,85],de=[1,86],pe=[1,87],Ee=[1,88],be=[1,89],ke=[1,90],ge=[1,91],ye=[1,92],Ae=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],ee=[63,64],et=[1,101],tt=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],C=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],te=[1,110],se=[1,106],ie=[1,107],re=[1,108],ne=[1,109],ae=[1,111],_e=[1,116],Se=[1,117],Ie=[1,114],Te=[1,115],we={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:t(function(a,l,c,r,p,s,qe){var o=s.length-1;switch(p){case 4:this.$=s[o].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[o].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:r.setDirection("TB");break;case 18:r.setDirection("BT");break;case 19:r.setDirection("RL");break;case 20:r.setDirection("LR");break;case 21:r.addRequirement(s[o-3],s[o-4]);break;case 22:r.addRequirement(s[o-5],s[o-6]),r.setClass([s[o-5]],s[o-3]);break;case 23:r.setNewReqId(s[o-2]);break;case 24:r.setNewReqText(s[o-2]);break;case 25:r.setNewReqRisk(s[o-2]);break;case 26:r.setNewReqVerifyMethod(s[o-2]);break;case 29:this.$=r.RequirementType.REQUIREMENT;break;case 30:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=r.RiskLevel.LOW_RISK;break;case 36:this.$=r.RiskLevel.MED_RISK;break;case 37:this.$=r.RiskLevel.HIGH_RISK;break;case 38:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=r.VerifyType.VERIFY_TEST;break;case 42:r.addElement(s[o-3]);break;case 43:r.addElement(s[o-5]),r.setClass([s[o-5]],s[o-3]);break;case 44:r.setNewElementType(s[o-2]);break;case 45:r.setNewElementDocRef(s[o-2]);break;case 48:r.addRelationship(s[o-2],s[o],s[o-4]);break;case 49:r.addRelationship(s[o-2],s[o-4],s[o]);break;case 50:this.$=r.Relationships.CONTAINS;break;case 51:this.$=r.Relationships.COPIES;break;case 52:this.$=r.Relationships.DERIVES;break;case 53:this.$=r.Relationships.SATISFIES;break;case 54:this.$=r.Relationships.VERIFIES;break;case 55:this.$=r.Relationships.REFINES;break;case 56:this.$=r.Relationships.TRACES;break;case 57:this.$=s[o-2],r.defineClass(s[o-1],s[o]);break;case 58:r.setClass(s[o-1],s[o]);break;case 59:r.setClass([s[o-2]],s[o]);break;case 60:case 62:this.$=[s[o]];break;case 61:case 63:this.$=s[o-2].concat([s[o]]);break;case 64:this.$=s[o-2],r.setCssStyle(s[o-1],s[o]);break;case 65:this.$=[s[o]];break;case 66:s[o-2].push(s[o]),this.$=s[o-2];break;case 68:this.$=s[o-1]+s[o];break}},"anonymous"),table:[{3:1,4:2,6:f,9:m,11:u,13:n},{1:[3]},{3:8,4:2,5:[1,7],6:f,9:m,11:u,13:n},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(h,[2,6]),{3:12,4:2,6:f,9:m,11:u,13:n},{1:[2,2]},{4:17,5:_,7:13,8:q,9:m,11:u,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},e(h,[2,4]),e(h,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:_,7:42,8:q,9:m,11:u,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:43,8:q,9:m,11:u,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:44,8:q,9:m,11:u,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:45,8:q,9:m,11:u,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:46,8:q,9:m,11:u,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:47,8:q,9:m,11:u,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:48,8:q,9:m,11:u,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:49,8:q,9:m,11:u,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:50,8:q,9:m,11:u,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),{30:60,33:62,75:J,89:k,90:g},{30:63,33:62,75:J,89:k,90:g},{30:64,33:62,75:J,89:k,90:g},e(ce,[2,29]),e(ce,[2,30]),e(ce,[2,31]),e(ce,[2,32]),e(ce,[2,33]),e(ce,[2,34]),e(Qe,[2,81]),e(Qe,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ce,[2,79]),e(Ce,[2,80]),{27:[1,67],29:[1,68]},e(Ce,[2,85]),e(Ce,[2,86]),{62:69,65:Ke,66:We,67:je,68:Ge,69:Xe,70:Je,71:Ze},{62:77,65:Ke,66:We,67:je,68:Ge,69:Xe,70:Je,71:Ze},{30:78,33:62,75:J,89:k,90:g},{73:79,75:ue,76:Z,78:81,79:82,80:me,81:fe,82:de,83:pe,84:Ee,85:be,86:ke,87:ge,88:ye},e(Ae,[2,60]),e(Ae,[2,62]),{73:93,75:ue,76:Z,78:81,79:82,80:me,81:fe,82:de,83:pe,84:Ee,85:be,86:ke,87:ge,88:ye},{30:94,33:62,75:J,76:Z,89:k,90:g},{5:[1,95]},{30:96,33:62,75:J,89:k,90:g},{5:[1,97]},{30:98,33:62,75:J,89:k,90:g},{63:[1,99]},e(ee,[2,50]),e(ee,[2,51]),e(ee,[2,52]),e(ee,[2,53]),e(ee,[2,54]),e(ee,[2,55]),e(ee,[2,56]),{64:[1,100]},e(b,[2,59],{76:Z}),e(b,[2,64],{76:et}),{33:103,75:[1,102],89:k,90:g},e(tt,[2,65],{79:104,75:ue,80:me,81:fe,82:de,83:pe,84:Ee,85:be,86:ke,87:ge,88:ye}),e(C,[2,67]),e(C,[2,69]),e(C,[2,70]),e(C,[2,71]),e(C,[2,72]),e(C,[2,73]),e(C,[2,74]),e(C,[2,75]),e(C,[2,76]),e(C,[2,77]),e(C,[2,78]),e(b,[2,57],{76:et}),e(b,[2,58],{76:Z}),{5:te,28:105,31:se,34:ie,36:re,38:ne,40:ae},{27:[1,112],76:Z},{5:_e,40:Se,56:113,57:Ie,59:Te},{27:[1,118],76:Z},{33:119,89:k,90:g},{33:120,89:k,90:g},{75:ue,78:121,79:82,80:me,81:fe,82:de,83:pe,84:Ee,85:be,86:ke,87:ge,88:ye},e(Ae,[2,61]),e(Ae,[2,63]),e(C,[2,68]),e(b,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:te,28:126,31:se,34:ie,36:re,38:ne,40:ae},e(b,[2,28]),{5:[1,127]},e(b,[2,42]),{32:[1,128]},{32:[1,129]},{5:_e,40:Se,56:130,57:Ie,59:Te},e(b,[2,47]),{5:[1,131]},e(b,[2,48]),e(b,[2,49]),e(tt,[2,66],{79:104,75:ue,80:me,81:fe,82:de,83:pe,84:Ee,85:be,86:ke,87:ge,88:ye}),{33:132,89:k,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(b,[2,27]),{5:te,28:145,31:se,34:ie,36:re,38:ne,40:ae},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(b,[2,46]),{5:_e,40:Se,56:152,57:Ie,59:Te},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(b,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(b,[2,43]),{5:te,28:159,31:se,34:ie,36:re,38:ne,40:ae},{5:te,28:160,31:se,34:ie,36:re,38:ne,40:ae},{5:te,28:161,31:se,34:ie,36:re,38:ne,40:ae},{5:te,28:162,31:se,34:ie,36:re,38:ne,40:ae},{5:_e,40:Se,56:163,57:Ie,59:Te},{5:_e,40:Se,56:164,57:Ie,59:Te},e(b,[2,23]),e(b,[2,24]),e(b,[2,25]),e(b,[2,26]),e(b,[2,44]),e(b,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:t(function(a,l){if(l.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=l,c}},"parseError"),parse:t(function(a){var l=this,c=[0],r=[],p=[null],s=[],qe=this.table,o="",ve=0,st=0,it=0,ct=2,rt=1,ht=s.slice.call(arguments,1),y=Object.create(this.lexer),le={yy:{}};for(var Oe in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Oe))le.yy[Oe]=this.yy[Oe];if(y.setInput(a,le.yy),le.yy.lexer=y,le.yy.parser=this,typeof y.yylloc>"u")y.yylloc={};var Fe=y.yylloc;s.push(Fe);var ut=y.options&&y.options.ranges;if(typeof le.yy.parseError==="function")this.parseError=le.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function mt(v){c.length=c.length-2*v,p.length=p.length-v,s.length=s.length-v}t(mt,"popStack");function nt(){var v=r.pop()||y.lex()||rt;if(typeof v!=="number"){if(v instanceof Array)r=v,v=r.pop();v=l.symbols_[v]||v}return v}t(nt,"lex");var N,$e,oe,V,kt,Pe,he={},Le,z,at,xe;while(!0){if(oe=c[c.length-1],this.defaultActions[oe])V=this.defaultActions[oe];else{if(N===null||typeof N>"u")N=nt();V=qe[oe]&&qe[oe][N]}if(typeof V>"u"||!V.length||!V[0]){var Ye="";xe=[];for(Le in qe[oe])if(this.terminals_[Le]&&Le>ct)xe.push("'"+this.terminals_[Le]+"'");if(y.showPosition)Ye="Parse error on line "+(ve+1)+`:
1
+ import{t,nr,i,A,L,M,R,P,I,O,D,d,H,De,Ne,Me,dn,He,Ue}from"./chunk-h4bzgvbg.js";import{ze}from"./chunk-r7afv22v.js";import{Re}from"./chunk-qv5d69fn.js";var Be=function(){var e=t(function(X,a,l,c){for(l=l||{},c=X.length;c--;l[X[c]]=a);return l},"o"),f=[1,3],m=[1,4],u=[1,5],n=[1,6],h=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],_=[1,22],q=[2,7],E=[1,26],S=[1,27],T=[1,28],x=[1,29],w=[1,33],F=[1,34],U=[1,35],Y=[1,36],B=[1,37],Q=[1,38],K=[1,24],W=[1,31],j=[1,32],G=[1,30],k=[1,39],g=[1,40],b=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],J=[1,61],ce=[89,90],Qe=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ce=[27,29],Ke=[1,70],We=[1,71],je=[1,72],Ge=[1,73],Xe=[1,74],Je=[1,75],Ze=[1,76],ue=[1,83],Z=[1,80],me=[1,84],fe=[1,85],de=[1,86],pe=[1,87],Ee=[1,88],be=[1,89],ke=[1,90],ge=[1,91],ye=[1,92],Ae=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],ee=[63,64],et=[1,101],tt=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],C=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],te=[1,110],se=[1,106],ie=[1,107],re=[1,108],ne=[1,109],ae=[1,111],_e=[1,116],Se=[1,117],Ie=[1,114],Te=[1,115],we={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:t(function(a,l,c,r,p,s,qe){var o=s.length-1;switch(p){case 4:this.$=s[o].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[o].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:r.setDirection("TB");break;case 18:r.setDirection("BT");break;case 19:r.setDirection("RL");break;case 20:r.setDirection("LR");break;case 21:r.addRequirement(s[o-3],s[o-4]);break;case 22:r.addRequirement(s[o-5],s[o-6]),r.setClass([s[o-5]],s[o-3]);break;case 23:r.setNewReqId(s[o-2]);break;case 24:r.setNewReqText(s[o-2]);break;case 25:r.setNewReqRisk(s[o-2]);break;case 26:r.setNewReqVerifyMethod(s[o-2]);break;case 29:this.$=r.RequirementType.REQUIREMENT;break;case 30:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=r.RiskLevel.LOW_RISK;break;case 36:this.$=r.RiskLevel.MED_RISK;break;case 37:this.$=r.RiskLevel.HIGH_RISK;break;case 38:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=r.VerifyType.VERIFY_TEST;break;case 42:r.addElement(s[o-3]);break;case 43:r.addElement(s[o-5]),r.setClass([s[o-5]],s[o-3]);break;case 44:r.setNewElementType(s[o-2]);break;case 45:r.setNewElementDocRef(s[o-2]);break;case 48:r.addRelationship(s[o-2],s[o],s[o-4]);break;case 49:r.addRelationship(s[o-2],s[o-4],s[o]);break;case 50:this.$=r.Relationships.CONTAINS;break;case 51:this.$=r.Relationships.COPIES;break;case 52:this.$=r.Relationships.DERIVES;break;case 53:this.$=r.Relationships.SATISFIES;break;case 54:this.$=r.Relationships.VERIFIES;break;case 55:this.$=r.Relationships.REFINES;break;case 56:this.$=r.Relationships.TRACES;break;case 57:this.$=s[o-2],r.defineClass(s[o-1],s[o]);break;case 58:r.setClass(s[o-1],s[o]);break;case 59:r.setClass([s[o-2]],s[o]);break;case 60:case 62:this.$=[s[o]];break;case 61:case 63:this.$=s[o-2].concat([s[o]]);break;case 64:this.$=s[o-2],r.setCssStyle(s[o-1],s[o]);break;case 65:this.$=[s[o]];break;case 66:s[o-2].push(s[o]),this.$=s[o-2];break;case 68:this.$=s[o-1]+s[o];break}},"anonymous"),table:[{3:1,4:2,6:f,9:m,11:u,13:n},{1:[3]},{3:8,4:2,5:[1,7],6:f,9:m,11:u,13:n},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(h,[2,6]),{3:12,4:2,6:f,9:m,11:u,13:n},{1:[2,2]},{4:17,5:_,7:13,8:q,9:m,11:u,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},e(h,[2,4]),e(h,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:_,7:42,8:q,9:m,11:u,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:43,8:q,9:m,11:u,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:44,8:q,9:m,11:u,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:45,8:q,9:m,11:u,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:46,8:q,9:m,11:u,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:47,8:q,9:m,11:u,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:48,8:q,9:m,11:u,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:49,8:q,9:m,11:u,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:50,8:q,9:m,11:u,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),{30:60,33:62,75:J,89:k,90:g},{30:63,33:62,75:J,89:k,90:g},{30:64,33:62,75:J,89:k,90:g},e(ce,[2,29]),e(ce,[2,30]),e(ce,[2,31]),e(ce,[2,32]),e(ce,[2,33]),e(ce,[2,34]),e(Qe,[2,81]),e(Qe,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ce,[2,79]),e(Ce,[2,80]),{27:[1,67],29:[1,68]},e(Ce,[2,85]),e(Ce,[2,86]),{62:69,65:Ke,66:We,67:je,68:Ge,69:Xe,70:Je,71:Ze},{62:77,65:Ke,66:We,67:je,68:Ge,69:Xe,70:Je,71:Ze},{30:78,33:62,75:J,89:k,90:g},{73:79,75:ue,76:Z,78:81,79:82,80:me,81:fe,82:de,83:pe,84:Ee,85:be,86:ke,87:ge,88:ye},e(Ae,[2,60]),e(Ae,[2,62]),{73:93,75:ue,76:Z,78:81,79:82,80:me,81:fe,82:de,83:pe,84:Ee,85:be,86:ke,87:ge,88:ye},{30:94,33:62,75:J,76:Z,89:k,90:g},{5:[1,95]},{30:96,33:62,75:J,89:k,90:g},{5:[1,97]},{30:98,33:62,75:J,89:k,90:g},{63:[1,99]},e(ee,[2,50]),e(ee,[2,51]),e(ee,[2,52]),e(ee,[2,53]),e(ee,[2,54]),e(ee,[2,55]),e(ee,[2,56]),{64:[1,100]},e(b,[2,59],{76:Z}),e(b,[2,64],{76:et}),{33:103,75:[1,102],89:k,90:g},e(tt,[2,65],{79:104,75:ue,80:me,81:fe,82:de,83:pe,84:Ee,85:be,86:ke,87:ge,88:ye}),e(C,[2,67]),e(C,[2,69]),e(C,[2,70]),e(C,[2,71]),e(C,[2,72]),e(C,[2,73]),e(C,[2,74]),e(C,[2,75]),e(C,[2,76]),e(C,[2,77]),e(C,[2,78]),e(b,[2,57],{76:et}),e(b,[2,58],{76:Z}),{5:te,28:105,31:se,34:ie,36:re,38:ne,40:ae},{27:[1,112],76:Z},{5:_e,40:Se,56:113,57:Ie,59:Te},{27:[1,118],76:Z},{33:119,89:k,90:g},{33:120,89:k,90:g},{75:ue,78:121,79:82,80:me,81:fe,82:de,83:pe,84:Ee,85:be,86:ke,87:ge,88:ye},e(Ae,[2,61]),e(Ae,[2,63]),e(C,[2,68]),e(b,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:te,28:126,31:se,34:ie,36:re,38:ne,40:ae},e(b,[2,28]),{5:[1,127]},e(b,[2,42]),{32:[1,128]},{32:[1,129]},{5:_e,40:Se,56:130,57:Ie,59:Te},e(b,[2,47]),{5:[1,131]},e(b,[2,48]),e(b,[2,49]),e(tt,[2,66],{79:104,75:ue,80:me,81:fe,82:de,83:pe,84:Ee,85:be,86:ke,87:ge,88:ye}),{33:132,89:k,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(b,[2,27]),{5:te,28:145,31:se,34:ie,36:re,38:ne,40:ae},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(b,[2,46]),{5:_e,40:Se,56:152,57:Ie,59:Te},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(b,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(b,[2,43]),{5:te,28:159,31:se,34:ie,36:re,38:ne,40:ae},{5:te,28:160,31:se,34:ie,36:re,38:ne,40:ae},{5:te,28:161,31:se,34:ie,36:re,38:ne,40:ae},{5:te,28:162,31:se,34:ie,36:re,38:ne,40:ae},{5:_e,40:Se,56:163,57:Ie,59:Te},{5:_e,40:Se,56:164,57:Ie,59:Te},e(b,[2,23]),e(b,[2,24]),e(b,[2,25]),e(b,[2,26]),e(b,[2,44]),e(b,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:t(function(a,l){if(l.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=l,c}},"parseError"),parse:t(function(a){var l=this,c=[0],r=[],p=[null],s=[],qe=this.table,o="",ve=0,st=0,it=0,ct=2,rt=1,ht=s.slice.call(arguments,1),y=Object.create(this.lexer),le={yy:{}};for(var Oe in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Oe))le.yy[Oe]=this.yy[Oe];if(y.setInput(a,le.yy),le.yy.lexer=y,le.yy.parser=this,typeof y.yylloc>"u")y.yylloc={};var Fe=y.yylloc;s.push(Fe);var ut=y.options&&y.options.ranges;if(typeof le.yy.parseError==="function")this.parseError=le.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function mt(v){c.length=c.length-2*v,p.length=p.length-v,s.length=s.length-v}t(mt,"popStack");function nt(){var v=r.pop()||y.lex()||rt;if(typeof v!=="number"){if(v instanceof Array)r=v,v=r.pop();v=l.symbols_[v]||v}return v}t(nt,"lex");var N,$e,oe,V,kt,Pe,he={},Le,z,at,xe;while(!0){if(oe=c[c.length-1],this.defaultActions[oe])V=this.defaultActions[oe];else{if(N===null||typeof N>"u")N=nt();V=qe[oe]&&qe[oe][N]}if(typeof V>"u"||!V.length||!V[0]){var Ye="";xe=[];for(Le in qe[oe])if(this.terminals_[Le]&&Le>ct)xe.push("'"+this.terminals_[Le]+"'");if(y.showPosition)Ye="Parse error on line "+(ve+1)+`:
2
2
  `+y.showPosition()+`
3
3
  Expecting `+xe.join(", ")+", got '"+(this.terminals_[N]||N)+"'";else Ye="Parse error on line "+(ve+1)+": Unexpected "+(N==rt?"end of input":"'"+(this.terminals_[N]||N)+"'");this.parseError(Ye,{text:y.match,token:this.terminals_[N]||N,line:y.yylineno,loc:Fe,expected:xe})}if(V[0]instanceof Array&&V.length>1)throw Error("Parse Error: multiple actions possible at state: "+oe+", token: "+N);switch(V[0]){case 1:if(c.push(N),p.push(y.yytext),s.push(y.yylloc),c.push(V[1]),N=null,!$e){if(st=y.yyleng,o=y.yytext,ve=y.yylineno,Fe=y.yylloc,it>0)it--}else N=$e,$e=null;break;case 2:if(z=this.productions_[V[1]][1],he.$=p[p.length-z],he._$={first_line:s[s.length-(z||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(z||1)].first_column,last_column:s[s.length-1].last_column},ut)he._$.range=[s[s.length-(z||1)].range[0],s[s.length-1].range[1]];if(Pe=this.performAction.apply(he,[o,st,ve,le.yy,V[1],p,s].concat(ht)),typeof Pe<"u")return Pe;if(z)c=c.slice(0,-1*z*2),p=p.slice(0,-1*z),s=s.slice(0,-1*z);c.push(this.productions_[V[1]][0]),p.push(he.$),s.push(he._$),at=qe[c[c.length-2]][c[c.length-1]],c.push(at);break;case 3:return!0}}return!0},"parse")},ot=function(){var X={EOF:1,parseError:t(function(l,c){if(this.yy.parser)this.yy.parser.parseError(l,c);else throw Error(l)},"parseError"),setInput:t(function(a,l){if(this.yy=l||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var l=a.match(/(?:\r\n?|\n).*/g);if(l)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),a},"input"),unput:t(function(a){var l=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var r=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1)this.yylineno-=c.length-1;var p=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===r.length?this.yylloc.first_column:0)+r[r.length-c.length].length-c[0].length:this.yylloc.first_column-l},this.options.ranges)this.yylloc.range=[p[0],p[0]+this.yyleng-l];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(a){this.unput(this.match.slice(a))},"less"),pastInput:t(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var a=this.match;if(a.length<20)a+=this._input.substr(0,20-a.length);return(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var a=this.pastInput(),l=Array(a.length+1).join("-");return a+this.upcomingInput()+`
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import{t,i,Ie,A,C,Y,L,d,g,Po,Wr,br,Ro,ni,ri,ai,ii,Io,Do,Oo,$o,Bo,Fo,zo,Ho,Uo,jo,qo,Vo,Go,Wo,Yo,Xo,Ko,xr,Qo,De,Ne,Me,Ot,$t,kn,mn,Cn,fa,or,ha}from"./chunk-eq59kad4.js";import{_e}from"./chunk-zapwrc5k.js";import{Et}from"./chunk-6ktmzq32.js";import{$n}from"./chunk-7devrtv4.js";function ye(e){return Array.isArray(e)}function we(e){if(Wr(e))return e;let o=br(e);if(!qe(e))return{};if(ye(e)){let a=Array.from(e);if(e.length>0&&typeof e[0]==="string"&&Object.hasOwn(e,"index"))a.index=e.index,a.input=e.input;return a}if(xr(e)){let a=e;return new a.constructor(a.buffer,a.byteOffset,a.length)}if(o==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(o==="[object DataView]"){let a=e,{buffer:h,byteOffset:f,byteLength:r}=a,p=new ArrayBuffer(r),y=new Uint8Array(h,f,r);return new Uint8Array(p).set(y),new DataView(p)}if(o==="[object Boolean]"||o==="[object Number]"||o==="[object String]"){let h=new e.constructor(e.valueOf());if(o==="[object String]")Ze(h,e);else ce(h,e);return h}if(o==="[object Date]")return new Date(Number(e));if(o==="[object RegExp]"){let a=e,h=new RegExp(a.source,a.flags);return h.lastIndex=a.lastIndex,h}if(o==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(o==="[object Map]"){let a=e,h=new Map;return a.forEach((f,r)=>{h.set(r,f)}),h}if(o==="[object Set]"){let a=e,h=new Set;return a.forEach((f)=>{h.add(f)}),h}if(o==="[object Arguments]"){let a=e,h={};return ce(h,a),h.length=a.length,h[Symbol.iterator]=a[Symbol.iterator],h}let c={};return Qe(c,e),ce(c,e),Je(c,e),c}function qe(e){switch(br(e)){case ii:case Bo:case Fo:case Ho:case ai:case Do:case Xo:case Ko:case Go:case Wo:case Yo:case Oo:case ri:case zo:case Ro:case $o:case ni:case Io:case Uo:case jo:case qo:case Vo:return!0;default:return!1}}function ce(e,o){for(let c in o)if(Object.hasOwn(o,c))e[c]=o[c]}function Je(e,o){let c=Object.getOwnPropertySymbols(o);for(let a=0;a<c.length;a++){let h=c[a];if(Object.prototype.propertyIsEnumerable.call(o,h))e[h]=o[h]}}function Ze(e,o){let c=o.valueOf().length;for(let a in o)if(Object.hasOwn(o,a)&&(Number.isNaN(Number(a))||Number(a)>=c))e[a]=o[a]}function Qe(e,o){let c=Object.getPrototypeOf(o);if(c!==null){if(typeof o.constructor==="function")Object.setPrototypeOf(e,c)}}var he=function(){var e=t(function(B,b,n,u){for(n=n||{},u=B.length;u--;n[B[u]]=b);return n},"o"),o=[1,15],c=[1,7],a=[1,13],h=[1,14],f=[1,19],r=[1,16],p=[1,17],y=[1,18],w=[8,30],m=[8,10,21,28,29,30,31,39,43,46],x=[1,23],E=[1,24],D=[8,10,15,16,21,28,29,30,31,39,43,46],k=[8,10,15,16,21,27,28,29,30,31,39,43,46],N=[1,49],T={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:t(function(b,n,u,S,_,s,H){var l=s.length-1;switch(_){case 4:S.getLogger().debug("Rule: separator (NL) ");break;case 5:S.getLogger().debug("Rule: separator (Space) ");break;case 6:S.getLogger().debug("Rule: separator (EOF) ");break;case 7:S.getLogger().debug("Rule: hierarchy: ",s[l-1]),S.setHierarchy(s[l-1]);break;case 8:S.getLogger().debug("Stop NL ");break;case 9:S.getLogger().debug("Stop EOF ");break;case 10:S.getLogger().debug("Stop NL2 ");break;case 11:S.getLogger().debug("Stop EOF2 ");break;case 12:S.getLogger().debug("Rule: statement: ",s[l]),typeof s[l].length==="number"?this.$=s[l]:this.$=[s[l]];break;case 13:S.getLogger().debug("Rule: statement #2: ",s[l-1]),this.$=[s[l-1]].concat(s[l]);break;case 14:S.getLogger().debug("Rule: link: ",s[l],b),this.$={edgeTypeStr:s[l],label:""};break;case 15:S.getLogger().debug("Rule: LABEL link: ",s[l-3],s[l-1],s[l]),this.$={edgeTypeStr:s[l],label:s[l-1]};break;case 18:let V=parseInt(s[l]),j=S.generateId();this.$={id:j,type:"space",label:"",width:V,children:[]};break;case 23:S.getLogger().debug("Rule: (nodeStatement link node) ",s[l-2],s[l-1],s[l]," typestr: ",s[l-1].edgeTypeStr);let G=S.edgeStrToEdgeData(s[l-1].edgeTypeStr),re=S.edgeStrToEdgeStartData(s[l-1].edgeTypeStr),q=S.edgeStrToThickness(s[l-1].edgeTypeStr),se=S.edgeStrToPattern(s[l-1].edgeTypeStr);this.$=[{id:s[l-2].id,label:s[l-2].label,type:s[l-2].type,directions:s[l-2].directions},{id:s[l-2].id+"-"+s[l].id,start:s[l-2].id,end:s[l].id,label:s[l-1].label,type:"edge",thickness:q,pattern:se,directions:s[l].directions,arrowTypeEnd:G,arrowTypeStart:re},{id:s[l].id,label:s[l].label,type:S.typeStr2Type(s[l].typeStr),directions:s[l].directions}];break;case 24:S.getLogger().debug("Rule: nodeStatement (abc88 node size) ",s[l-1],s[l]),this.$={id:s[l-1].id,label:s[l-1].label,type:S.typeStr2Type(s[l-1].typeStr),directions:s[l-1].directions,widthInColumns:parseInt(s[l],10)};break;case 25:S.getLogger().debug("Rule: nodeStatement (node) ",s[l]),this.$={id:s[l].id,label:s[l].label,type:S.typeStr2Type(s[l].typeStr),directions:s[l].directions,widthInColumns:1};break;case 26:S.getLogger().debug("APA123",this?this:"na"),S.getLogger().debug("COLUMNS: ",s[l]),this.$={type:"column-setting",columns:s[l]==="auto"?-1:parseInt(s[l])};break;case 27:S.getLogger().debug("Rule: id-block statement : ",s[l-2],s[l-1]);let I=S.generateId();this.$={...s[l-2],type:"composite",children:s[l-1]};break;case 28:S.getLogger().debug("Rule: blockStatement : ",s[l-2],s[l-1],s[l]);let M=S.generateId();this.$={id:M,type:"composite",label:"",children:s[l-1]};break;case 29:S.getLogger().debug("Rule: node (NODE_ID separator): ",s[l]),this.$={id:s[l]};break;case 30:S.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",s[l-1],s[l]),this.$={id:s[l-1],label:s[l].label,typeStr:s[l].typeStr,directions:s[l].directions};break;case 31:S.getLogger().debug("Rule: dirList: ",s[l]),this.$=[s[l]];break;case 32:S.getLogger().debug("Rule: dirList: ",s[l-1],s[l]),this.$=[s[l-1]].concat(s[l]);break;case 33:S.getLogger().debug("Rule: nodeShapeNLabel: ",s[l-2],s[l-1],s[l]),this.$={typeStr:s[l-2]+s[l],label:s[l-1]};break;case 34:S.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",s[l-3],s[l-2]," #3:",s[l-1],s[l]),this.$={typeStr:s[l-3]+s[l],label:s[l-2],directions:s[l-1]};break;case 35:case 36:this.$={type:"classDef",id:s[l-1].trim(),css:s[l].trim()};break;case 37:this.$={type:"applyClass",id:s[l-1].trim(),styleClass:s[l].trim()};break;case 38:this.$={type:"applyStyles",id:s[l-1].trim(),stylesStr:s[l].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:o,11:3,13:4,19:5,20:6,21:c,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:f,39:r,43:p,46:y},{8:[1,20]},e(w,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:o,21:c,28:a,29:h,31:f,39:r,43:p,46:y}),e(m,[2,16],{14:22,15:x,16:E}),e(m,[2,17]),e(m,[2,18]),e(m,[2,19]),e(m,[2,20]),e(m,[2,21]),e(m,[2,22]),e(D,[2,25],{27:[1,25]}),e(m,[2,26]),{19:26,26:12,31:f},{10:o,11:27,13:4,19:5,20:6,21:c,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:f,39:r,43:p,46:y},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(k,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(w,[2,13]),{26:35,31:f},{31:[2,14]},{17:[1,36]},e(D,[2,24]),{10:o,11:37,13:4,14:22,15:x,16:E,19:5,20:6,21:c,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:f,39:r,43:p,46:y},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(k,[2,30]),{18:[1,43]},{18:[1,44]},e(D,[2,23]),{18:[1,45]},{30:[1,46]},e(m,[2,28]),e(m,[2,35]),e(m,[2,36]),e(m,[2,37]),e(m,[2,38]),{36:[1,47]},{33:48,34:N},{15:[1,50]},e(m,[2,27]),e(k,[2,33]),{38:[1,51]},{33:52,34:N,38:[2,31]},{31:[2,15]},e(k,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:t(function(b,n){if(n.recoverable)this.trace(b);else{var u=Error(b);throw u.hash=n,u}},"parseError"),parse:t(function(b){var n=this,u=[0],S=[],_=[null],s=[],H=this.table,l="",V=0,j=0,G=0,re=2,q=1,se=s.slice.call(arguments,1),I=Object.create(this.lexer),M={yy:{}};for(var ie in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ie))M.yy[ie]=this.yy[ie];if(I.setInput(b,M.yy),M.yy.lexer=I,M.yy.parser=this,typeof I.yylloc>"u")I.yylloc={};var ae=I.yylloc;s.push(ae);var je=I.options&&I.options.ranges;if(typeof M.yy.parseError==="function")this.parseError=M.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Ge(P){u.length=u.length-2*P,_.length=_.length-P,s.length=s.length-P}t(Ge,"popStack");function Le(){var P=S.pop()||I.lex()||q;if(typeof P!=="number"){if(P instanceof Array)S=P,P=S.pop();P=n.symbols_[P]||P}return P}t(Le,"lex");var v,ne,W,R,Nt,oe,U={},J,K,ke,Z;while(!0){if(W=u[u.length-1],this.defaultActions[W])R=this.defaultActions[W];else{if(v===null||typeof v>"u")v=Le();R=H[W]&&H[W][v]}if(typeof R>"u"||!R.length||!R[0]){var le="";Z=[];for(J in H[W])if(this.terminals_[J]&&J>re)Z.push("'"+this.terminals_[J]+"'");if(I.showPosition)le="Parse error on line "+(V+1)+`:
1
+ import{t,i,Ie,A,C,Y,L,d,g,Po,Wr,br,Ro,ni,ri,ai,ii,Io,Do,Oo,$o,Bo,Fo,zo,Ho,Uo,jo,qo,Vo,Go,Wo,Yo,Xo,Ko,xr,Qo,De,Ne,Me,Ot,$t,kn,mn,Cn,fa,or,ha}from"./chunk-h4bzgvbg.js";import{_e}from"./chunk-fyr6rm2p.js";import{Et}from"./chunk-cgwnzse1.js";import{$n}from"./chunk-j0dyf1g8.js";function ye(e){return Array.isArray(e)}function we(e){if(Wr(e))return e;let o=br(e);if(!qe(e))return{};if(ye(e)){let a=Array.from(e);if(e.length>0&&typeof e[0]==="string"&&Object.hasOwn(e,"index"))a.index=e.index,a.input=e.input;return a}if(xr(e)){let a=e;return new a.constructor(a.buffer,a.byteOffset,a.length)}if(o==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(o==="[object DataView]"){let a=e,{buffer:h,byteOffset:f,byteLength:r}=a,p=new ArrayBuffer(r),y=new Uint8Array(h,f,r);return new Uint8Array(p).set(y),new DataView(p)}if(o==="[object Boolean]"||o==="[object Number]"||o==="[object String]"){let h=new e.constructor(e.valueOf());if(o==="[object String]")Ze(h,e);else ce(h,e);return h}if(o==="[object Date]")return new Date(Number(e));if(o==="[object RegExp]"){let a=e,h=new RegExp(a.source,a.flags);return h.lastIndex=a.lastIndex,h}if(o==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(o==="[object Map]"){let a=e,h=new Map;return a.forEach((f,r)=>{h.set(r,f)}),h}if(o==="[object Set]"){let a=e,h=new Set;return a.forEach((f)=>{h.add(f)}),h}if(o==="[object Arguments]"){let a=e,h={};return ce(h,a),h.length=a.length,h[Symbol.iterator]=a[Symbol.iterator],h}let c={};return Qe(c,e),ce(c,e),Je(c,e),c}function qe(e){switch(br(e)){case ii:case Bo:case Fo:case Ho:case ai:case Do:case Xo:case Ko:case Go:case Wo:case Yo:case Oo:case ri:case zo:case Ro:case $o:case ni:case Io:case Uo:case jo:case qo:case Vo:return!0;default:return!1}}function ce(e,o){for(let c in o)if(Object.hasOwn(o,c))e[c]=o[c]}function Je(e,o){let c=Object.getOwnPropertySymbols(o);for(let a=0;a<c.length;a++){let h=c[a];if(Object.prototype.propertyIsEnumerable.call(o,h))e[h]=o[h]}}function Ze(e,o){let c=o.valueOf().length;for(let a in o)if(Object.hasOwn(o,a)&&(Number.isNaN(Number(a))||Number(a)>=c))e[a]=o[a]}function Qe(e,o){let c=Object.getPrototypeOf(o);if(c!==null){if(typeof o.constructor==="function")Object.setPrototypeOf(e,c)}}var he=function(){var e=t(function(B,b,n,u){for(n=n||{},u=B.length;u--;n[B[u]]=b);return n},"o"),o=[1,15],c=[1,7],a=[1,13],h=[1,14],f=[1,19],r=[1,16],p=[1,17],y=[1,18],w=[8,30],m=[8,10,21,28,29,30,31,39,43,46],x=[1,23],E=[1,24],D=[8,10,15,16,21,28,29,30,31,39,43,46],k=[8,10,15,16,21,27,28,29,30,31,39,43,46],N=[1,49],T={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:t(function(b,n,u,S,_,s,H){var l=s.length-1;switch(_){case 4:S.getLogger().debug("Rule: separator (NL) ");break;case 5:S.getLogger().debug("Rule: separator (Space) ");break;case 6:S.getLogger().debug("Rule: separator (EOF) ");break;case 7:S.getLogger().debug("Rule: hierarchy: ",s[l-1]),S.setHierarchy(s[l-1]);break;case 8:S.getLogger().debug("Stop NL ");break;case 9:S.getLogger().debug("Stop EOF ");break;case 10:S.getLogger().debug("Stop NL2 ");break;case 11:S.getLogger().debug("Stop EOF2 ");break;case 12:S.getLogger().debug("Rule: statement: ",s[l]),typeof s[l].length==="number"?this.$=s[l]:this.$=[s[l]];break;case 13:S.getLogger().debug("Rule: statement #2: ",s[l-1]),this.$=[s[l-1]].concat(s[l]);break;case 14:S.getLogger().debug("Rule: link: ",s[l],b),this.$={edgeTypeStr:s[l],label:""};break;case 15:S.getLogger().debug("Rule: LABEL link: ",s[l-3],s[l-1],s[l]),this.$={edgeTypeStr:s[l],label:s[l-1]};break;case 18:let V=parseInt(s[l]),j=S.generateId();this.$={id:j,type:"space",label:"",width:V,children:[]};break;case 23:S.getLogger().debug("Rule: (nodeStatement link node) ",s[l-2],s[l-1],s[l]," typestr: ",s[l-1].edgeTypeStr);let G=S.edgeStrToEdgeData(s[l-1].edgeTypeStr),re=S.edgeStrToEdgeStartData(s[l-1].edgeTypeStr),q=S.edgeStrToThickness(s[l-1].edgeTypeStr),se=S.edgeStrToPattern(s[l-1].edgeTypeStr);this.$=[{id:s[l-2].id,label:s[l-2].label,type:s[l-2].type,directions:s[l-2].directions},{id:s[l-2].id+"-"+s[l].id,start:s[l-2].id,end:s[l].id,label:s[l-1].label,type:"edge",thickness:q,pattern:se,directions:s[l].directions,arrowTypeEnd:G,arrowTypeStart:re},{id:s[l].id,label:s[l].label,type:S.typeStr2Type(s[l].typeStr),directions:s[l].directions}];break;case 24:S.getLogger().debug("Rule: nodeStatement (abc88 node size) ",s[l-1],s[l]),this.$={id:s[l-1].id,label:s[l-1].label,type:S.typeStr2Type(s[l-1].typeStr),directions:s[l-1].directions,widthInColumns:parseInt(s[l],10)};break;case 25:S.getLogger().debug("Rule: nodeStatement (node) ",s[l]),this.$={id:s[l].id,label:s[l].label,type:S.typeStr2Type(s[l].typeStr),directions:s[l].directions,widthInColumns:1};break;case 26:S.getLogger().debug("APA123",this?this:"na"),S.getLogger().debug("COLUMNS: ",s[l]),this.$={type:"column-setting",columns:s[l]==="auto"?-1:parseInt(s[l])};break;case 27:S.getLogger().debug("Rule: id-block statement : ",s[l-2],s[l-1]);let I=S.generateId();this.$={...s[l-2],type:"composite",children:s[l-1]};break;case 28:S.getLogger().debug("Rule: blockStatement : ",s[l-2],s[l-1],s[l]);let M=S.generateId();this.$={id:M,type:"composite",label:"",children:s[l-1]};break;case 29:S.getLogger().debug("Rule: node (NODE_ID separator): ",s[l]),this.$={id:s[l]};break;case 30:S.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",s[l-1],s[l]),this.$={id:s[l-1],label:s[l].label,typeStr:s[l].typeStr,directions:s[l].directions};break;case 31:S.getLogger().debug("Rule: dirList: ",s[l]),this.$=[s[l]];break;case 32:S.getLogger().debug("Rule: dirList: ",s[l-1],s[l]),this.$=[s[l-1]].concat(s[l]);break;case 33:S.getLogger().debug("Rule: nodeShapeNLabel: ",s[l-2],s[l-1],s[l]),this.$={typeStr:s[l-2]+s[l],label:s[l-1]};break;case 34:S.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",s[l-3],s[l-2]," #3:",s[l-1],s[l]),this.$={typeStr:s[l-3]+s[l],label:s[l-2],directions:s[l-1]};break;case 35:case 36:this.$={type:"classDef",id:s[l-1].trim(),css:s[l].trim()};break;case 37:this.$={type:"applyClass",id:s[l-1].trim(),styleClass:s[l].trim()};break;case 38:this.$={type:"applyStyles",id:s[l-1].trim(),stylesStr:s[l].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:o,11:3,13:4,19:5,20:6,21:c,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:f,39:r,43:p,46:y},{8:[1,20]},e(w,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:o,21:c,28:a,29:h,31:f,39:r,43:p,46:y}),e(m,[2,16],{14:22,15:x,16:E}),e(m,[2,17]),e(m,[2,18]),e(m,[2,19]),e(m,[2,20]),e(m,[2,21]),e(m,[2,22]),e(D,[2,25],{27:[1,25]}),e(m,[2,26]),{19:26,26:12,31:f},{10:o,11:27,13:4,19:5,20:6,21:c,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:f,39:r,43:p,46:y},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(k,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(w,[2,13]),{26:35,31:f},{31:[2,14]},{17:[1,36]},e(D,[2,24]),{10:o,11:37,13:4,14:22,15:x,16:E,19:5,20:6,21:c,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:f,39:r,43:p,46:y},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(k,[2,30]),{18:[1,43]},{18:[1,44]},e(D,[2,23]),{18:[1,45]},{30:[1,46]},e(m,[2,28]),e(m,[2,35]),e(m,[2,36]),e(m,[2,37]),e(m,[2,38]),{36:[1,47]},{33:48,34:N},{15:[1,50]},e(m,[2,27]),e(k,[2,33]),{38:[1,51]},{33:52,34:N,38:[2,31]},{31:[2,15]},e(k,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:t(function(b,n){if(n.recoverable)this.trace(b);else{var u=Error(b);throw u.hash=n,u}},"parseError"),parse:t(function(b){var n=this,u=[0],S=[],_=[null],s=[],H=this.table,l="",V=0,j=0,G=0,re=2,q=1,se=s.slice.call(arguments,1),I=Object.create(this.lexer),M={yy:{}};for(var ie in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ie))M.yy[ie]=this.yy[ie];if(I.setInput(b,M.yy),M.yy.lexer=I,M.yy.parser=this,typeof I.yylloc>"u")I.yylloc={};var ae=I.yylloc;s.push(ae);var je=I.options&&I.options.ranges;if(typeof M.yy.parseError==="function")this.parseError=M.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Ge(P){u.length=u.length-2*P,_.length=_.length-P,s.length=s.length-P}t(Ge,"popStack");function Le(){var P=S.pop()||I.lex()||q;if(typeof P!=="number"){if(P instanceof Array)S=P,P=S.pop();P=n.symbols_[P]||P}return P}t(Le,"lex");var v,ne,W,R,Nt,oe,U={},J,K,ke,Z;while(!0){if(W=u[u.length-1],this.defaultActions[W])R=this.defaultActions[W];else{if(v===null||typeof v>"u")v=Le();R=H[W]&&H[W][v]}if(typeof R>"u"||!R.length||!R[0]){var le="";Z=[];for(J in H[W])if(this.terminals_[J]&&J>re)Z.push("'"+this.terminals_[J]+"'");if(I.showPosition)le="Parse error on line "+(V+1)+`:
2
2
  `+I.showPosition()+`
3
3
  Expecting `+Z.join(", ")+", got '"+(this.terminals_[v]||v)+"'";else le="Parse error on line "+(V+1)+": Unexpected "+(v==q?"end of input":"'"+(this.terminals_[v]||v)+"'");this.parseError(le,{text:I.match,token:this.terminals_[v]||v,line:I.yylineno,loc:ae,expected:Z})}if(R[0]instanceof Array&&R.length>1)throw Error("Parse Error: multiple actions possible at state: "+W+", token: "+v);switch(R[0]){case 1:if(u.push(v),_.push(I.yytext),s.push(I.yylloc),u.push(R[1]),v=null,!ne){if(j=I.yyleng,l=I.yytext,V=I.yylineno,ae=I.yylloc,G>0)G--}else v=ne,ne=null;break;case 2:if(K=this.productions_[R[1]][1],U.$=_[_.length-K],U._$={first_line:s[s.length-(K||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(K||1)].first_column,last_column:s[s.length-1].last_column},je)U._$.range=[s[s.length-(K||1)].range[0],s[s.length-1].range[1]];if(oe=this.performAction.apply(U,[l,j,V,M.yy,R[1],_,s].concat(se)),typeof oe<"u")return oe;if(K)u=u.slice(0,-1*K*2),_=_.slice(0,-1*K),s=s.slice(0,-1*K);u.push(this.productions_[R[1]][0]),_.push(U.$),s.push(U._$),ke=H[u[u.length-2]][u[u.length-1]],u.push(ke);break;case 3:return!0}}return!0},"parse")},O=function(){var B={EOF:1,parseError:t(function(n,u){if(this.yy.parser)this.yy.parser.parseError(n,u);else throw Error(n)},"parseError"),setInput:t(function(b,n){if(this.yy=n||this.yy||{},this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var n=b.match(/(?:\r\n?|\n).*/g);if(n)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),b},"input"),unput:t(function(b){var n=b.length,u=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var S=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1)this.yylineno-=u.length-1;var _=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===S.length?this.yylloc.first_column:0)+S[S.length-u.length].length-u[0].length:this.yylloc.first_column-n},this.options.ranges)this.yylloc.range=[_[0],_[0]+this.yyleng-n];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(b){this.unput(this.match.slice(b))},"less"),pastInput:t(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var b=this.match;if(b.length<20)b+=this._input.substr(0,20-b.length);return(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var b=this.pastInput(),n=Array(b.length+1).join("-");return b+this.upcomingInput()+`
Binary file
Binary file
@@ -1,2 +1,2 @@
1
- import{t}from"./chunk-eq59kad4.js";var Nr=class{constructor(i){this.init=i,this.records=this.init()}static{t(this,"ImperativeState")}reset(){this.records=this.init()}};
1
+ import{t}from"./chunk-h4bzgvbg.js";var Nr=class{constructor(i){this.init=i,this.records=this.init()}static{t(this,"ImperativeState")}reset(){this.records=this.init()}};
2
2
  export{Nr};
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import{ie}from"./chunk-j2gkg76r.js";import{t,i,F,Y,L,M,R,P,I,O,D,d,we,ca,Oi,J,Pt,Q}from"./chunk-eq59kad4.js";import{ge}from"./chunk-508cpafz.js";import{Ut}from"./chunk-k89686qj.js";import{yn}from"./chunk-7rs26q98.js";function tt(e,o){return o<e?-1:o>e?1:o>=e?0:NaN}function et(e){return e}function rt(){var e=et,o=tt,A=null,E=we(0),u=we(ca),h=we(0);function l(r){var n,c=(r=Oi(r)).length,m,C,k=0,v=Array(c),s=Array(c),z=+E.apply(this,arguments),N=Math.min(ca,Math.max(-ca,u.apply(this,arguments)-z)),W,B=Math.min(Math.abs(N)/c,h.apply(this,arguments)),p=B*(N<0?-1:1),T;for(n=0;n<c;++n)if((T=s[v[n]=n]=+e(r[n],n,r))>0)k+=T;if(o!=null)v.sort(function(_,x){return o(s[_],s[x])});else if(A!=null)v.sort(function(_,x){return A(r[_],r[x])});for(n=0,C=k?(N-c*p)/k:0;n<c;++n,z=W)m=v[n],T=s[m],W=z+(T>0?T*C:0)+p,s[m]={data:r[m],index:n,value:T,startAngle:z,endAngle:W,padAngle:B};return s}return l.value=function(r){return arguments.length?(e=typeof r==="function"?r:we(+r),l):e},l.sortValues=function(r){return arguments.length?(o=r,A=null,l):o},l.sort=function(r){return arguments.length?(A=r,o=null,l):A},l.startAngle=function(r){return arguments.length?(E=typeof r==="function"?r:we(+r),l):E},l.endAngle=function(r){return arguments.length?(u=typeof r==="function"?r:we(+r),l):u},l.padAngle=function(r){return arguments.length?(h=typeof r==="function"?r:we(+r),l):h},l}var ct=F.pie,at={sections:new Map,showData:!1,config:ct},{sections:j,showData:nt}=at,mt=structuredClone(ct),vt=t(()=>structuredClone(mt),"getConfig"),xt=t(()=>{j=new Map,nt=at.showData,L()},"clear"),St=t(({label:e,value:o})=>{if(o<0)throw Error(`"${e}" has invalid value: ${o}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);if(!j.has(e))j.set(e,o),i.debug(`added new section: ${e}, with value: ${o}`)},"addSection"),yt=t(()=>j,"getSections"),wt=t((e)=>{nt=e},"setShowData"),At=t(()=>nt,"getShowData"),ut={getConfig:vt,clear:xt,setDiagramTitle:O,getDiagramTitle:D,setAccTitle:M,getAccTitle:R,setAccDescription:P,getAccDescription:I,addSection:St,getSections:yt,setShowData:wt,getShowData:At},Ct=t((e,o)=>{ie(e,o),o.setShowData(e.showData),e.sections.map(o.addSection)},"populateDb"),$t={parse:t(async(e)=>{let o=await ge("pie",e);i.debug(o),Ct(o,ut)},"parse")},Dt=t((e)=>`
1
+ import{ie}from"./chunk-nzgj9qx5.js";import{t,i,F,Y,L,M,R,P,I,O,D,d,we,ca,Oi,J,Pt,Q}from"./chunk-h4bzgvbg.js";import{ge}from"./chunk-9qdx0ekk.js";import{Ut}from"./chunk-k89686qj.js";import{yn}from"./chunk-dsffzc1e.js";function tt(e,o){return o<e?-1:o>e?1:o>=e?0:NaN}function et(e){return e}function rt(){var e=et,o=tt,A=null,E=we(0),u=we(ca),h=we(0);function l(r){var n,c=(r=Oi(r)).length,m,C,k=0,v=Array(c),s=Array(c),z=+E.apply(this,arguments),N=Math.min(ca,Math.max(-ca,u.apply(this,arguments)-z)),W,B=Math.min(Math.abs(N)/c,h.apply(this,arguments)),p=B*(N<0?-1:1),T;for(n=0;n<c;++n)if((T=s[v[n]=n]=+e(r[n],n,r))>0)k+=T;if(o!=null)v.sort(function(_,x){return o(s[_],s[x])});else if(A!=null)v.sort(function(_,x){return A(r[_],r[x])});for(n=0,C=k?(N-c*p)/k:0;n<c;++n,z=W)m=v[n],T=s[m],W=z+(T>0?T*C:0)+p,s[m]={data:r[m],index:n,value:T,startAngle:z,endAngle:W,padAngle:B};return s}return l.value=function(r){return arguments.length?(e=typeof r==="function"?r:we(+r),l):e},l.sortValues=function(r){return arguments.length?(o=r,A=null,l):o},l.sort=function(r){return arguments.length?(A=r,o=null,l):A},l.startAngle=function(r){return arguments.length?(E=typeof r==="function"?r:we(+r),l):E},l.endAngle=function(r){return arguments.length?(u=typeof r==="function"?r:we(+r),l):u},l.padAngle=function(r){return arguments.length?(h=typeof r==="function"?r:we(+r),l):h},l}var ct=F.pie,at={sections:new Map,showData:!1,config:ct},{sections:j,showData:nt}=at,mt=structuredClone(ct),vt=t(()=>structuredClone(mt),"getConfig"),xt=t(()=>{j=new Map,nt=at.showData,L()},"clear"),St=t(({label:e,value:o})=>{if(o<0)throw Error(`"${e}" has invalid value: ${o}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);if(!j.has(e))j.set(e,o),i.debug(`added new section: ${e}, with value: ${o}`)},"addSection"),yt=t(()=>j,"getSections"),wt=t((e)=>{nt=e},"setShowData"),At=t(()=>nt,"getShowData"),ut={getConfig:vt,clear:xt,setDiagramTitle:O,getDiagramTitle:D,setAccTitle:M,getAccTitle:R,setAccDescription:P,getAccDescription:I,addSection:St,getSections:yt,setShowData:wt,getShowData:At},Ct=t((e,o)=>{ie(e,o),o.setShowData(e.showData),e.sections.map(o.addSection)},"populateDb"),$t={parse:t(async(e)=>{let o=await ge("pie",e);i.debug(o),Ct(o,ut)},"parse")},Dt=t((e)=>`
2
2
  .pieCircle{
3
3
  stroke: ${e.pieStrokeColor};
4
4
  stroke-width : ${e.pieStrokeWidth};
Binary file
Binary file