@intent-hq/web 2.377.0 → 2.377.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{DPIu4Uvc.js → 2k0L3UuE.js} +1 -1
  3. package/web/app/immutable/chunks/{BYZmAPBj.js → 44UGcwzH.js} +1 -1
  4. package/web/app/immutable/chunks/{E9EQOutF.js → 6mxxBzen.js} +1 -1
  5. package/web/app/immutable/chunks/{CXzneR7N.js → 7q4YNCko.js} +1 -1
  6. package/web/app/immutable/chunks/{DP9-fc_B.js → AahgC2tQ.js} +1 -1
  7. package/web/app/immutable/chunks/{OB5ewpnK.js → B1VDcrDv.js} +2 -2
  8. package/web/app/immutable/chunks/{D3U86a8D.js → B5jb5Vl2.js} +1 -1
  9. package/web/app/immutable/chunks/{BRYlwT4L.js → B6uYXyQT.js} +1 -1
  10. package/web/app/immutable/chunks/{D8YYKuNE.js → B6ua8Nta.js} +1 -1
  11. package/web/app/immutable/chunks/{CU0RJncA.js → BA5DxNDs.js} +1 -1
  12. package/web/app/immutable/chunks/{iH6MvOof.js → BArM2pQs.js} +1 -1
  13. package/web/app/immutable/chunks/{Dcx5eJMD.js → BDEwgGie.js} +3 -3
  14. package/web/app/immutable/chunks/{CTd2-DXZ.js → BEVldQ72.js} +1 -1
  15. package/web/app/immutable/chunks/{Bgq6EE3i.js → BJEGNNQG.js} +1 -1
  16. package/web/app/immutable/chunks/{CgCavhfO.js → BKoo_qNE.js} +1 -1
  17. package/web/app/immutable/chunks/{DKzCUZRR.js → BMZujDrn.js} +1 -1
  18. package/web/app/immutable/chunks/{DP70eYUB.js → BOpmKWDj.js} +1 -1
  19. package/web/app/immutable/chunks/{CzqRYWZK.js → BRsoPjvI.js} +1 -1
  20. package/web/app/immutable/chunks/{DX8kbFNs.js → BRubskG0.js} +1 -1
  21. package/web/app/immutable/chunks/{CxNrE0YE.js → BYCV0WR4.js} +1 -1
  22. package/web/app/immutable/chunks/{BRgnRlpY.js → BZxtby9C.js} +1 -1
  23. package/web/app/immutable/chunks/{CoqY6eXO.js → B_FgwEiQ.js} +1 -1
  24. package/web/app/immutable/chunks/{iSUz9qV_.js → B_oIL-kv.js} +2 -2
  25. package/web/app/immutable/chunks/{sskY-e56.js → BfGH8gZR.js} +1 -1
  26. package/web/app/immutable/chunks/{DaUUb0MN.js → BfODtrDi.js} +1 -1
  27. package/web/app/immutable/chunks/{-wxN1VoW.js → Bki546Ua.js} +1 -1
  28. package/web/app/immutable/chunks/{BtFbKs3E.js → Bm-OIIkr.js} +1 -1
  29. package/web/app/immutable/chunks/{oFYSK9so.js → Bngt6Tsx.js} +1 -1
  30. package/web/app/immutable/chunks/{ox6Tr1Wr.js → BogaM-4K.js} +2 -2
  31. package/web/app/immutable/chunks/{Dzwnyq__.js → BqZ4oIjJ.js} +1 -1
  32. package/web/app/immutable/chunks/{Drw978cZ.js → BqcblAh2.js} +1 -1
  33. package/web/app/immutable/chunks/{1kZHSKpT.js → BspdGaaQ.js} +2 -2
  34. package/web/app/immutable/chunks/{CsXo5qJT.js → Bwwo8o0Q.js} +1 -1
  35. package/web/app/immutable/chunks/{Ijszt0N1.js → Bxhb_zrd.js} +2 -2
  36. package/web/app/immutable/chunks/{C0onsLlA.js → BzvWJyYS.js} +1 -1
  37. package/web/app/immutable/chunks/{C_NelgW3.js → C1-gs8NV.js} +1 -1
  38. package/web/app/immutable/chunks/{D9T-v3HD.js → C34mMXiW.js} +1 -1
  39. package/web/app/immutable/chunks/{CMuGicsX.js → C5CpwzyO.js} +1 -1
  40. package/web/app/immutable/chunks/{BCdHPWpB.js → C6qoHDZm.js} +1 -1
  41. package/web/app/immutable/chunks/{D1mIn-tl.js → C7dq_vZa.js} +13 -13
  42. package/web/app/immutable/chunks/{Dg0wXr0P.js → C9AMu-hJ.js} +1 -1
  43. package/web/app/immutable/chunks/{Bnvt-Vsa.js → C9BR5pRK.js} +1 -1
  44. package/web/app/immutable/chunks/{TegPe3xL.js → CCA_LprR.js} +1 -1
  45. package/web/app/immutable/chunks/{Cs3Xe419.js → CGU5lxic.js} +1 -1
  46. package/web/app/immutable/chunks/{dAyIGZeD.js → CJukXIqC.js} +1 -1
  47. package/web/app/immutable/chunks/{BFdL2CDw.js → CQVdgF11.js} +2 -2
  48. package/web/app/immutable/chunks/{V9VcayAp.js → CUMMW9cK.js} +1 -1
  49. package/web/app/immutable/chunks/{Br6jSaFv.js → CV9GwdOX.js} +2 -2
  50. package/web/app/immutable/chunks/{B6Nh6sSf.js → CVmzXbKC.js} +1 -1
  51. package/web/app/immutable/chunks/{CdveyQgB.js → CYu_OshD.js} +1 -1
  52. package/web/app/immutable/chunks/{Dzwe2BxM.js → CZyaXHYn.js} +1 -1
  53. package/web/app/immutable/chunks/{DoTX1eiI.js → CbW49WRY.js} +1 -1
  54. package/web/app/immutable/chunks/{Dd7fjuUE.js → CePiEr01.js} +1 -1
  55. package/web/app/immutable/chunks/{BXzT25WX.js → Cgw8VCWa.js} +1 -1
  56. package/web/app/immutable/chunks/{B72b5fUz.js → ChKooCtK.js} +1 -1
  57. package/web/app/immutable/chunks/{DmjIj8DD.js → Chy159-8.js} +1 -1
  58. package/web/app/immutable/chunks/{CqycL-96.js → CiEd0qus.js} +1 -1
  59. package/web/app/immutable/chunks/{BNWPBotc.js → ClaTUK8i.js} +1 -1
  60. package/web/app/immutable/chunks/{C1Hs4JhA.js → ClniIwNB.js} +3 -3
  61. package/web/app/immutable/chunks/{bNIg57pH.js → Cr-n2JyX.js} +1 -1
  62. package/web/app/immutable/chunks/{CKeCQLK7.js → Ct_rgdAq.js} +4 -4
  63. package/web/app/immutable/chunks/{BApAoYJL.js → CuQllO0b.js} +1 -1
  64. package/web/app/immutable/chunks/{DwthLU3N.js → CvGqUzlm.js} +3 -3
  65. package/web/app/immutable/chunks/{CVE_S1zV.js → Cx61quY8.js} +1 -1
  66. package/web/app/immutable/chunks/{BgfAXqts.js → Cz6j2Je0.js} +1 -1
  67. package/web/app/immutable/chunks/{CW6fwUjl.js → Cz9OmStO.js} +3 -3
  68. package/web/app/immutable/chunks/{rX3UPioJ.js → Czjv-W0_.js} +1 -1
  69. package/web/app/immutable/chunks/{CKjAwnp-.js → D-aio1ml.js} +1 -1
  70. package/web/app/immutable/chunks/{B9jFsjl6.js → D12yZko9.js} +1 -1
  71. package/web/app/immutable/chunks/{CoS-tBEG.js → D1mEuDv_.js} +1 -1
  72. package/web/app/immutable/chunks/{DA9R3qY_.js → D1mu2lcM.js} +4 -4
  73. package/web/app/immutable/chunks/{Dx5CymMc.js → D4Z0p17R.js} +2 -2
  74. package/web/app/immutable/chunks/{xuBXKWzN.js → D5Sq1Lqh.js} +3 -3
  75. package/web/app/immutable/chunks/{CpTWjQta.js → DCQJn6Uw.js} +1 -1
  76. package/web/app/immutable/chunks/{B896oEe1.js → DI-X2gGm.js} +2 -2
  77. package/web/app/immutable/chunks/{BlmXYVZL.js → DOGhHht_.js} +1 -1
  78. package/web/app/immutable/chunks/{DOZ4D-be.js → DOqJm0eP.js} +1 -1
  79. package/web/app/immutable/chunks/{6Phf-uBe.js → DPK-EZS5.js} +1 -1
  80. package/web/app/immutable/chunks/{C6AF5F90.js → DR8H8bdZ.js} +1 -1
  81. package/web/app/immutable/chunks/{CNzYWDfD.js → DUou8npu.js} +1 -1
  82. package/web/app/immutable/chunks/{ogmrsJVP.js → DXhphZ-h.js} +1 -1
  83. package/web/app/immutable/chunks/{CkxO8VdE.js → DZa-kGm3.js} +1 -1
  84. package/web/app/immutable/chunks/{BZTuGYK7.js → DZahD34h.js} +3 -3
  85. package/web/app/immutable/chunks/{CaqZTndK.js → DaODmr3q.js} +1 -1
  86. package/web/app/immutable/chunks/{SCsmprza.js → Dap1kDfc.js} +1 -1
  87. package/web/app/immutable/chunks/{CDCYEgYO.js → DcXPxog8.js} +3 -3
  88. package/web/app/immutable/chunks/{Bktj-v_w.js → DgBGX5vw.js} +1 -1
  89. package/web/app/immutable/chunks/{CaREyRu7.js → Dh92pPy2.js} +1 -1
  90. package/web/app/immutable/chunks/{DhfljHa2.js → DiQOUtRF.js} +3 -3
  91. package/web/app/immutable/chunks/{BopDUnR-.js → Dixt7ONv.js} +1 -1
  92. package/web/app/immutable/chunks/{CSvRBBT0.js → Dk3iYI6S.js} +1 -1
  93. package/web/app/immutable/chunks/{BmPW_VqR.js → DlQBj875.js} +1 -1
  94. package/web/app/immutable/chunks/{BT8fcu2q.js → DmMewwmV.js} +1 -1
  95. package/web/app/immutable/chunks/{DFX4QROy.js → Dnfl4UnC.js} +2 -2
  96. package/web/app/immutable/chunks/{Dz9pspEe.js → Dnm_Y0EB.js} +1 -1
  97. package/web/app/immutable/chunks/{rHiX8dPh.js → Do_oDoGq.js} +1 -1
  98. package/web/app/immutable/chunks/{B9dq4Npe.js → DvN0lyp_.js} +1 -1
  99. package/web/app/immutable/chunks/{DLrDVZiT.js → DvOXRJJ0.js} +1 -1
  100. package/web/app/immutable/chunks/{DGVbT9XS.js → DvgbT4jE.js} +1 -1
  101. package/web/app/immutable/chunks/{9gjtG2HP.js → DxhJBsQ2.js} +1 -1
  102. package/web/app/immutable/chunks/{IuL0I1Pz.js → Dy56tqY1.js} +1 -1
  103. package/web/app/immutable/chunks/{D3pJEeJ4.js → Dyc7ThlR.js} +1 -1
  104. package/web/app/immutable/chunks/{BJ6YnNyU.js → DzCs9m--.js} +1 -1
  105. package/web/app/immutable/chunks/{B-Xu7tSS.js → HEO7LIOc.js} +1 -1
  106. package/web/app/immutable/chunks/{CpQBeLVd.js → IBZGX6aq.js} +1 -1
  107. package/web/app/immutable/chunks/{Cq52ONaB.js → KnCTS4uY.js} +1 -1
  108. package/web/app/immutable/chunks/{DoOfShzQ.js → P-TA6Xg9.js} +1 -1
  109. package/web/app/immutable/chunks/{wqoJXdhs.js → R8RsS7Hn.js} +1 -1
  110. package/web/app/immutable/chunks/{BRptawaj.js → Y_yG_f1U.js} +1 -1
  111. package/web/app/immutable/chunks/{Dg_ozSbS.js → Z9ILybNi.js} +1 -1
  112. package/web/app/immutable/chunks/{DsJQzb68.js → _8Wr9vMI.js} +2 -2
  113. package/web/app/immutable/chunks/{D0G_zEuE.js → _dwFjABj.js} +4 -4
  114. package/web/app/immutable/chunks/{D0lJudnp.js → aZdVSlcQ.js} +1 -1
  115. package/web/app/immutable/chunks/{DfjmLBza.js → fO6whFKT.js} +1 -1
  116. package/web/app/immutable/chunks/{XD2erHfm.js → i-wf4SQ7.js} +1 -1
  117. package/web/app/immutable/chunks/{ykOJidT8.js → n3oU57rB.js} +1 -1
  118. package/web/app/immutable/chunks/{pIGpBcn2.js → nI0JBnh-.js} +1 -1
  119. package/web/app/immutable/chunks/{ByRegne-.js → nMN_8xfT.js} +1 -1
  120. package/web/app/immutable/chunks/{BXdYO-2C.js → pwAhaeYh.js} +1 -1
  121. package/web/app/immutable/chunks/{D_k3Qu-L.js → u5PD4Zn2.js} +1 -1
  122. package/web/app/immutable/chunks/{C_3keFs-.js → ulOWneaN.js} +1 -1
  123. package/web/app/immutable/chunks/{Lw94HDap.js → v673IArk.js} +1 -1
  124. package/web/app/immutable/chunks/{DrWTVTDh.js → wItSDDEo.js} +1 -1
  125. package/web/app/immutable/chunks/{BS6OII1W.js → xsex6ioo.js} +1 -1
  126. package/web/app/immutable/chunks/{DjfO0PMn.js → yLpB8J78.js} +1 -1
  127. package/web/app/immutable/chunks/{CxRIaqMA.js → y_2Z1pp9.js} +1 -1
  128. package/web/app/immutable/chunks/{CDU73zmu.js → ype-h2g6.js} +1 -1
  129. package/web/app/immutable/entry/{app.BVtALmPp.js → app.DDh7xxtt.js} +2 -2
  130. package/web/app/immutable/entry/start.HaobiNF3.js +1 -0
  131. package/web/app/immutable/nodes/{0.D4oOlB3u.js → 0.vtx54vfF.js} +1 -1
  132. package/web/app/immutable/nodes/{1.KMT-Ug_O.js → 1.CpilyhiU.js} +1 -1
  133. package/web/app/immutable/nodes/{10.DRQD-p6j.js → 10.NkYQDXNR.js} +4 -4
  134. package/web/app/immutable/nodes/{11.DkYHBiN8.js → 11.B36UsZJn.js} +1 -1
  135. package/web/app/immutable/nodes/{15.Da9pO7u1.js → 15.BMLifZki.js} +1 -1
  136. package/web/app/immutable/nodes/{19.C5-f1pQw.js → 19.O_j0SSxB.js} +2 -2
  137. package/web/app/immutable/nodes/{2.DhP0vJUw.js → 2.DE601YNz.js} +4 -4
  138. package/web/app/immutable/nodes/{3.DwR-SDKS.js → 3.BhKBNzZL.js} +1 -1
  139. package/web/app/immutable/nodes/{4.B9PDF2wC.js → 4.DlefnpI1.js} +1 -1
  140. package/web/app/immutable/nodes/{5.CDwL4Hp0.js → 5.DALYqBB8.js} +1 -1
  141. package/web/app/immutable/nodes/{6.DGnd4iH_.js → 6.pZViH3dX.js} +1 -1
  142. package/web/app/immutable/nodes/{7.NXkB2wfF.js → 7.BND04eFx.js} +1 -1
  143. package/web/app/immutable/nodes/{8.BqUlP0xK.js → 8.Bb4eM-Ih.js} +1 -1
  144. package/web/app/immutable/nodes/{9.BXq9e578.js → 9.C6y0PgQt.js} +4 -4
  145. package/web/app/version.json +1 -1
  146. package/web/index.html +9 -9
  147. package/web/app/immutable/entry/start.Cs4vIWak.js +0 -1
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CXzneR7N.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/C_AJrH9w.js","/app/immutable/chunks/DbiKWuR4.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/Bsc0MUZ8.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BPC0r6G_.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/BE6pBsfS.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/2DHIVxXG.js","/app/immutable/chunks/C62iyW1M.js","/app/immutable/chunks/Bp_sc6EE.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/BC7iBUJe.js","/app/immutable/chunks/DF8CKNhY.js","/app/immutable/chunks/Ch7xiQpT.js","/app/immutable/chunks/0grSpTM4.js","/app/immutable/chunks/DmgkktjA.js","/app/immutable/chunks/Do0OWbUO.js","/app/immutable/chunks/DAg3vCp0.js","/app/immutable/chunks/CukCNpTl.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/B896oEe1.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/CoS-tBEG.js"])))=>i.map(i=>d[i]);
2
- import{bm as c,_ as p}from"./DbiKWuR4.js";import{m as I}from"./YMOYZH7W.js";import"./3SdAC2_C.js";import"./Bp_sc6EE.js";import"./BE6pBsfS.js";import{Q as A}from"./2DHIVxXG.js";import"./ChTqQfQN.js";import"./jTQhuGpf.js";import{m as L,Jr as d,vH as g,vJ as v}from"./Bsc0MUZ8.js";import{a9 as R}from"./DF8CKNhY.js";import{selectCurrentWorkspaceTabId as P}from"./Dh33f1wg.js";const F="intent://local/note/{note-id}",S="intent://local/{workspace-id}/note/{note-id}";function f(){return c.ui_linkHandler_invalidFormat_error({shortFormat:F,longFormat:S})}class u extends Error{constructor(r){super(r),this.name="NotFoundError"}}function H(e){try{const r=new URL(e.replace("intent://","http://")),t=r.hostname,n=r.pathname.replace(/^\/+/,"").split("/").filter(l=>l.length>0),a=e.replace("intent://","").split(/[?#]/)[0].split("/").slice(1);if(!t||n.length<2)return{type:"unknown",orgId:t||"",resourceId:"",valid:!1,error:f()};let o,s,i,_,w;if(a[0]==="workspace"&&(a.length===2||a.length===3&&a[2]==="")){const l=O(a[1]);if(!l)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};o=l,s="workspace",i=l}else if(a[0]==="file")s="file",i=m(a.slice(1));else if(a.length>=3&&k(a[0])&&a[1]==="file")o=a[0],s="file",i=m(a.slice(2));else if(a.length===5&&a[1]==="agent"&&a[3]==="message"&&k(a[0])&&k(a[2])&&k(a[4])&&n.length===5&&n[1]==="agent"&&n[3]==="message")o=n[0],s="message",_=n[2],i=n[4];else if(n[0]==="note"||n[0]==="task")s=n[0],i=n[1];else if(n.length>=3&&(n[1]==="note"||n[1]==="task"))o=n[0],s=n[1],i=n[2];else return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};if(!i||i.trim().length===0)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:c.ui_linkHandler_emptyResourceId_error()};if(s==="note"||s==="task")return{type:s,orgId:t,workspaceId:o,resourceId:i,valid:!0};if(s==="file"){const l=/^#L\d+(?:-\d+|C\d+)?$/.test(r.hash)?r.hash:"",E=a.slice(o?2:1).join("/"),h=A(E+l);return i=m(h.path.split("/")),w=h.line,W(i)?{type:"file",orgId:t,workspaceId:o,resourceId:i,...w!==void 0?{line:w}:{},valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:"",valid:!1,error:c.ui_linkHandler_invalidFilePath_error()}}return s==="workspace"&&o?{type:"workspace",orgId:t,workspaceId:o,resourceId:i,valid:!0}:s==="message"&&o&&_?{type:"message",orgId:t,workspaceId:o,resourceId:i,agentId:_,valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:i,valid:!1,error:c.ui_linkHandler_unknownResourceType_error({type:s})}}catch(r){return{type:"unknown",orgId:"",resourceId:"",valid:!1,error:r instanceof Error?r.message:c.ui_linkHandler_parseFailed_error()}}}function m(e){return e.map(r=>decodeURIComponent(r)).join("/")}function W(e){return/^[A-Za-z]:/.test(e)?!1:e.split(/[\\/]/).every(t=>t.length>0&&t!=="."&&t!=="..")}const j=new Set([L,"new"]);function O(e){if(e===void 0||!k(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function k(e){let r;try{r=decodeURIComponent(e)}catch{return!1}return r.length>0&&r!=="."&&r!==".."&&!/[\\/]/.test(r)}async function T(e,r={}){if(!e.startsWith("intent://"))return!1;const t=H(e);if(!t.valid)return I.error(c.ui_linkHandler_invalidLink_title(),{description:t.error||c.ui_linkHandler_invalidLink_description()}),!0;try{switch(t.type){case"note":case"task":await N(t,r);break;case"file":await b(t,r);break;case"workspace":await C(t.resourceId);break;case"message":{const{openMessage:n}=await p(async()=>{const{openMessage:a}=await import("./CXzneR7N.js");return{openMessage:a}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34]),import.meta.url);await n({workspaceId:t.workspaceId,agentId:t.agentId,messageId:t.resourceId});break}default:I.error(c.ui_linkHandler_unsupportedLink_title(),{description:c.ui_linkHandler_unsupportedLink_description({type:t.type})})}}catch(n){n instanceof u?I.error(c.ui_linkHandler_notFound_title(),{description:n.message}):I.error(c.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:c.ui_linkHandler_unknownError_label()})}return!0}function Q(e,r){return R(e,r)}function Z(){return async(e,r,t)=>{const a=t.target.closest("a");return a?.href?.startsWith("intent://")?(t.preventDefault(),await T(a.href)):!1}}async function C(e){const{appClient:r}=await p(async()=>{const{appClient:a}=await import("./C_AJrH9w.js").then(o=>o.s);return{appClient:a}},__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,2,20,21,22,23]),import.meta.url);if(!await r.workspaces.get(e).catch(()=>null))throw new u(c.workspace_loader_notFound_title());const{openAndShowWorkspace:n}=await p(async()=>{const{openAndShowWorkspace:a}=await import("./CoS-tBEG.js").then(o=>o.s);return{openAndShowWorkspace:a}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);await n(e)}async function N(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const a=!t||e.workspaceId!==t;if(!await y(e.workspaceId,e.resourceId))throw new u(c.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:e.workspaceId}));if(a){const{openAndShowWorkspace:s}=await p(async()=>{const{openAndShowWorkspace:i}=await import("./CoS-tBEG.js").then(_=>_.s);return{openAndShowWorkspace:i}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);await s(e.workspaceId,{query:{note:e.resourceId}})}else d.dispatch(v(e.workspaceId,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());if(!await y(t,e.resourceId))throw new u(c.ui_linkHandler_noteNotFoundCurrent_error({noteId:e.resourceId}));d.dispatch(v(t,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function b(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const n=!t||e.workspaceId!==t;if(n){const{openAndShowWorkspace:a}=await p(async()=>{const{openAndShowWorkspace:o}=await import("./CoS-tBEG.js").then(s=>s.s);return{openAndShowWorkspace:o}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);if(!await a(e.workspaceId))return}d.dispatch(g(e.workspaceId,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:n?!1:r.openInAdjacentPanel??!1,sourcePanelId:n?void 0:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());d.dispatch(g(t,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:r.openInAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function y(e,r){try{const{backendRequest:t}=await p(async()=>{const{backendRequest:o}=await import("./2DHIVxXG.js").then(s=>s.j);return{backendRequest:o}},__vite__mapDeps([15,4,5,14,10,16,13,17,11,18,19]),import.meta.url),n=await t("note.get",{workspaceId:e,noteId:r}),a=n&&typeof n=="object"&&"note"in n?n.note:n;return a!=null&&typeof a=="object"}catch{return!1}}export{u as NotFoundError,Z as createIntentLinkClickHandler,Q as generateNoteLink,T as handleIntentLink,H as parseIntentLink};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/7q4YNCko.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/C_AJrH9w.js","/app/immutable/chunks/DbiKWuR4.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/Bsc0MUZ8.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BPC0r6G_.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/BE6pBsfS.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/2DHIVxXG.js","/app/immutable/chunks/C62iyW1M.js","/app/immutable/chunks/Bp_sc6EE.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/BC7iBUJe.js","/app/immutable/chunks/DF8CKNhY.js","/app/immutable/chunks/Ch7xiQpT.js","/app/immutable/chunks/0grSpTM4.js","/app/immutable/chunks/DmgkktjA.js","/app/immutable/chunks/Do0OWbUO.js","/app/immutable/chunks/DAg3vCp0.js","/app/immutable/chunks/CukCNpTl.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DI-X2gGm.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/D1mEuDv_.js"])))=>i.map(i=>d[i]);
2
+ import{bm as c,_ as p}from"./DbiKWuR4.js";import{m as I}from"./YMOYZH7W.js";import"./3SdAC2_C.js";import"./Bp_sc6EE.js";import"./BE6pBsfS.js";import{Q as A}from"./2DHIVxXG.js";import"./ChTqQfQN.js";import"./jTQhuGpf.js";import{m as L,Jr as d,vH as g,vJ as v}from"./Bsc0MUZ8.js";import{a9 as R}from"./DF8CKNhY.js";import{selectCurrentWorkspaceTabId as P}from"./Dh33f1wg.js";const F="intent://local/note/{note-id}",S="intent://local/{workspace-id}/note/{note-id}";function f(){return c.ui_linkHandler_invalidFormat_error({shortFormat:F,longFormat:S})}class u extends Error{constructor(r){super(r),this.name="NotFoundError"}}function H(e){try{const r=new URL(e.replace("intent://","http://")),t=r.hostname,n=r.pathname.replace(/^\/+/,"").split("/").filter(l=>l.length>0),a=e.replace("intent://","").split(/[?#]/)[0].split("/").slice(1);if(!t||n.length<2)return{type:"unknown",orgId:t||"",resourceId:"",valid:!1,error:f()};let o,s,i,_,w;if(a[0]==="workspace"&&(a.length===2||a.length===3&&a[2]==="")){const l=O(a[1]);if(!l)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};o=l,s="workspace",i=l}else if(a[0]==="file")s="file",i=m(a.slice(1));else if(a.length>=3&&k(a[0])&&a[1]==="file")o=a[0],s="file",i=m(a.slice(2));else if(a.length===5&&a[1]==="agent"&&a[3]==="message"&&k(a[0])&&k(a[2])&&k(a[4])&&n.length===5&&n[1]==="agent"&&n[3]==="message")o=n[0],s="message",_=n[2],i=n[4];else if(n[0]==="note"||n[0]==="task")s=n[0],i=n[1];else if(n.length>=3&&(n[1]==="note"||n[1]==="task"))o=n[0],s=n[1],i=n[2];else return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};if(!i||i.trim().length===0)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:c.ui_linkHandler_emptyResourceId_error()};if(s==="note"||s==="task")return{type:s,orgId:t,workspaceId:o,resourceId:i,valid:!0};if(s==="file"){const l=/^#L\d+(?:-\d+|C\d+)?$/.test(r.hash)?r.hash:"",E=a.slice(o?2:1).join("/"),h=A(E+l);return i=m(h.path.split("/")),w=h.line,W(i)?{type:"file",orgId:t,workspaceId:o,resourceId:i,...w!==void 0?{line:w}:{},valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:"",valid:!1,error:c.ui_linkHandler_invalidFilePath_error()}}return s==="workspace"&&o?{type:"workspace",orgId:t,workspaceId:o,resourceId:i,valid:!0}:s==="message"&&o&&_?{type:"message",orgId:t,workspaceId:o,resourceId:i,agentId:_,valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:i,valid:!1,error:c.ui_linkHandler_unknownResourceType_error({type:s})}}catch(r){return{type:"unknown",orgId:"",resourceId:"",valid:!1,error:r instanceof Error?r.message:c.ui_linkHandler_parseFailed_error()}}}function m(e){return e.map(r=>decodeURIComponent(r)).join("/")}function W(e){return/^[A-Za-z]:/.test(e)?!1:e.split(/[\\/]/).every(t=>t.length>0&&t!=="."&&t!=="..")}const j=new Set([L,"new"]);function O(e){if(e===void 0||!k(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function k(e){let r;try{r=decodeURIComponent(e)}catch{return!1}return r.length>0&&r!=="."&&r!==".."&&!/[\\/]/.test(r)}async function T(e,r={}){if(!e.startsWith("intent://"))return!1;const t=H(e);if(!t.valid)return I.error(c.ui_linkHandler_invalidLink_title(),{description:t.error||c.ui_linkHandler_invalidLink_description()}),!0;try{switch(t.type){case"note":case"task":await N(t,r);break;case"file":await b(t,r);break;case"workspace":await C(t.resourceId);break;case"message":{const{openMessage:n}=await p(async()=>{const{openMessage:a}=await import("./7q4YNCko.js");return{openMessage:a}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34]),import.meta.url);await n({workspaceId:t.workspaceId,agentId:t.agentId,messageId:t.resourceId});break}default:I.error(c.ui_linkHandler_unsupportedLink_title(),{description:c.ui_linkHandler_unsupportedLink_description({type:t.type})})}}catch(n){n instanceof u?I.error(c.ui_linkHandler_notFound_title(),{description:n.message}):I.error(c.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:c.ui_linkHandler_unknownError_label()})}return!0}function Q(e,r){return R(e,r)}function Z(){return async(e,r,t)=>{const a=t.target.closest("a");return a?.href?.startsWith("intent://")?(t.preventDefault(),await T(a.href)):!1}}async function C(e){const{appClient:r}=await p(async()=>{const{appClient:a}=await import("./C_AJrH9w.js").then(o=>o.s);return{appClient:a}},__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,2,20,21,22,23]),import.meta.url);if(!await r.workspaces.get(e).catch(()=>null))throw new u(c.workspace_loader_notFound_title());const{openAndShowWorkspace:n}=await p(async()=>{const{openAndShowWorkspace:a}=await import("./D1mEuDv_.js").then(o=>o.s);return{openAndShowWorkspace:a}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);await n(e)}async function N(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const a=!t||e.workspaceId!==t;if(!await y(e.workspaceId,e.resourceId))throw new u(c.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:e.workspaceId}));if(a){const{openAndShowWorkspace:s}=await p(async()=>{const{openAndShowWorkspace:i}=await import("./D1mEuDv_.js").then(_=>_.s);return{openAndShowWorkspace:i}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);await s(e.workspaceId,{query:{note:e.resourceId}})}else d.dispatch(v(e.workspaceId,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());if(!await y(t,e.resourceId))throw new u(c.ui_linkHandler_noteNotFoundCurrent_error({noteId:e.resourceId}));d.dispatch(v(t,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function b(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const n=!t||e.workspaceId!==t;if(n){const{openAndShowWorkspace:a}=await p(async()=>{const{openAndShowWorkspace:o}=await import("./D1mEuDv_.js").then(s=>s.s);return{openAndShowWorkspace:o}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);if(!await a(e.workspaceId))return}d.dispatch(g(e.workspaceId,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:n?!1:r.openInAdjacentPanel??!1,sourcePanelId:n?void 0:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());d.dispatch(g(t,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:r.openInAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function y(e,r){try{const{backendRequest:t}=await p(async()=>{const{backendRequest:o}=await import("./2DHIVxXG.js").then(s=>s.j);return{backendRequest:o}},__vite__mapDeps([15,4,5,14,10,16,13,17,11,18,19]),import.meta.url),n=await t("note.get",{workspaceId:e,noteId:r}),a=n&&typeof n=="object"&&"note"in n?n.note:n;return a!=null&&typeof a=="object"}catch{return!1}}export{u as NotFoundError,Z as createIntentLinkClickHandler,Q as generateNoteLink,T as handleIntentLink,H as parseIntentLink};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/Ijszt0N1.js","/app/immutable/chunks/DbiKWuR4.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/Bsc0MUZ8.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BPC0r6G_.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/BE6pBsfS.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/B9jFsjl6.js","/app/immutable/chunks/YMOYZH7W.js","/app/immutable/chunks/DmgkktjA.js","/app/immutable/chunks/Bp_sc6EE.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/D2nneXpl.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/Do0OWbUO.js","/app/immutable/chunks/2DHIVxXG.js","/app/immutable/chunks/C62iyW1M.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/0grSpTM4.js","/app/immutable/chunks/DE1LlyuA.js","/app/immutable/chunks/CukCNpTl.js","/app/immutable/chunks/jTQhuGpf.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/Ch7xiQpT.js","/app/immutable/chunks/V3w7GQAA.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/DF8CKNhY.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DAg3vCp0.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/B896oEe1.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/CpbxMIKC.js","/app/immutable/chunks/Dh33f1wg.js","/app/immutable/chunks/BC7iBUJe.js","/app/immutable/chunks/DpIlWkp6.js","/app/immutable/chunks/BF6Kznts.js","/app/immutable/chunks/B5aYN90J.js"])))=>i.map(i=>d[i]);
2
- import{t as Bt,bo as h,bw as Ft,b as Ht,bm as g,bp as jf,bs as mt,bq as la,br as js,b6 as Xl,bj as Uf,b9 as qf,bi as Vf,ba as Kf,bf as Gf,a$ as Jf,b3 as Yf,bh as Xf,bk as Zf,a_ as Qf,b8 as $f,b7 as eg,b1 as tg,be as rg,bl as ng,bu as Zl,bd as ag,b5 as og,b4 as sg,b2 as ig,bc as lg,bb as cg,bg as dg,b0 as ug,_ as pg}from"./DbiKWuR4.js";import{bI as fg,bj as _o,aG as gg,bs as zt,ca as _t,c0 as zn,aD as e,a7 as ht,ay as Oe,bS as m,be as er,b$ as jt,b_ as S,bO as x,W as u,bH as T,c9 as d,a5 as P,bl as L,bA as w,bn as Wt,bV as ye,aA as b,aB as I,c5 as fn,aC as ja,bo as Ho,br as tn,bk as is,ai as oo,cd as Ro,aw as An,a as vg,aj as Nr,c7 as mg,c6 as Ql,bf as $o,bz as Ud}from"./3SdAC2_C.js";import{i as B}from"./DmgkktjA.js";import{k as ao}from"./DE1LlyuA.js";import{g as Lt,h as hg,e as Wn,I as ls,i as Lr,o as bg,p as yg,f as _g,s as xg}from"./Do0OWbUO.js";import{s as pn}from"./BE6pBsfS.js";import{c as Sr}from"./0grSpTM4.js";import{n as Oi}from"./V3w7GQAA.js";import{b as wg,s as ne,g as Tn,e as kn,c as lr,f as ft}from"./Bp_sc6EE.js";import{b as vr}from"./Dn334wJv.js";import{a as kg,V as Ig,E as Sg,k as Cg,i as Eg,_ as Pg,f as Ag}from"./C_AJrH9w.js";import{p as qd,bI as Vd,cZ as Kd,bp as Tg,dV as Rg,dH as Mg,aJ as Lg,cI as Ng,ac as Og,d3 as Dg,dG as es,aO as Us,cg as Bg,R as Fg,b as Hg,a9 as $l,d9 as zg,c4 as Wg,X as jg,dC as Ug,a3 as qg,dM as Vg,aq as Kg,cw as Gg,d0 as Jg,aF as Yg,n as Xg,H as Zg}from"./DF8CKNhY.js";import{c as Qg}from"./D-62MVd3.js";import{m as Hn,w as $g,C as Gd,c as ev,R as tv}from"./YMOYZH7W.js";import{aa as Jd,f as Ct,ah as Ao,ae as Di}from"./D2nneXpl.js";import{w as rv,F as nv}from"./2DHIVxXG.js";import{T as av}from"./DfDJ4DFw.js";import{F as Mt,bj as Bi,bO as ov,aq as sv,aS as iv,cQ as lv,bn as pl,bE as cv,aI as Yd,aN as fl,d3 as Ts,ad as Fi,cs as dv,ch as uv,cn as gl,cK as vl,bv as pv,e as fv,c3 as ec,cd as gv,cq as vv,c$ as Xd,bY as mv,ba as gi,bg as Jo,aH as hv,aB as Hi,aw as Zd,be as Qd,bF as bv,B as yv,by as _v,a2 as $d,b5 as xv,a8 as eu,cl as wv,an as tu,cS as ru,cO as tc,au as nu,aM as rc,cA as kv,cZ as Iv,cT as Sv,aL as Cv,b1 as Ev,bR as au,bp as Pv,ap as ml,c9 as nc,aA as Av,ab as Tv,a9 as Rv}from"./Ch7xiQpT.js";import{c as ou}from"./ChTqQfQN.js";import{g as Mv}from"./jTQhuGpf.js";import{Jr as Ot,bY as Lv,sx as ac,t6 as Nv,Kh as Ov,Kn as Dv,m as su,J4 as iu,nV as lu,o9 as cu,o8 as du,nO as qs,qx as hl,yF as Bv,vH as Is,u_ as zi,vJ as Fv,nC as uu,Jw as Hv,tO as zv,oZ as pu,rR as bl,mi as oc,a9 as sc,rj as Wv,rf as jv,rk as Uv,rb as qv,rh as Vv,vx as Kv,Bn as fu,Br as gu,oa as ic,Ah as Gv,Af as Jv,Aj as Yv,bq as Wi,HP as Xv,J0 as Zv,hp as lc,ho as Qv,o4 as $v,wI as em,wJ as tm,wH as cc,Cm as sa,cD as vu,cr as rm,xG as nm,dc as am,dj as om,Bx as sm}from"./Bsc0MUZ8.js";import{z as mu,I as hu}from"./Bqd7fdCF.js";import{e as dc,i as bu}from"./CL3a4Hm1.js";import{e as uc,d as yu,b as im,a as lm,f as cm,I as dm}from"./CVE_S1zV.js";import{b as _u}from"./Bt_g_mAI.js";/* empty css */import{d as xu,G as wu,R as ku,g as Iu,f as um,M as Su,C as pm,q as yl,l as fm,h as gm,e as vm,a as Cu,o as mm,S as Eo,K as hm}from"./Cnyr3NBg.js";import{D as bm,e as ym}from"./BPC0r6G_.js";import"./Bd_znEOF.js";import"./CaWJORov.js";import"./6gPBUDNi.js";import{b as _m}from"./CuIT_dDA.js";import{r as xm}from"./C2V8HU7i.js";import{a4 as wm,ck as km,cm as Im,cl as Sm,b3 as Cm,b1 as Em,b2 as Pm,a2 as Am,al as bs,ak as Tm,cV as Rm,aA as pc,aJ as Mm,ai as Lm,C as Nm,i as Om,d7 as Ss,cW as Dm,aY as fc,d0 as Bm,af as Fm,a7 as Hm,r as zm,p as Wm,aG as jm,d3 as Um,cM as qm,cF as Vm,Q as Km,cw as Gm,bU as Jm}from"./Cs3Xe419.js";import{v as Ym,k as Xm,E as Zm,l as Qm,V as $m,q as eh,n as th,A as gc,s as rh,I as nh,R as ah,m as oh,W as sh,o as Eu,S as Pu,i as ih,g as vc,f as lh,e as ch,j as dh,h as uh,c as mc,r as ph}from"./DwthLU3N.js";import{a as fh}from"./BlmXYVZL.js";import{aA as gh,aH as vh,g as mh,n as hh,aK as bh,K as yh,M as _h,O as xh,at as wh,aD as kh,av as Ih}from"./CpbxMIKC.js";import{f as Sh,e as Ch,m as ji,bF as Eh,B as Ph,bE as Ah,bB as Th,ai as hc,bD as Rh,be as Ui,ar as Mh,k as Lh,b4 as Nh,q as bc,A as Oh,L as yc}from"./B9jFsjl6.js";import{i as Dh,I as Mo,c as _c}from"./tSHKUrDJ.js";import{A as Bh,s as Fh}from"./DhfljHa2.js";import{e as xc,l as wc,M as Au,m as qi,w as ho}from"./Cq52ONaB.js";import{b as Tu}from"./Ee5kMYCV.js";import{H as Hh}from"./CwBYV6iH.js";import{t as ts}from"./DAsc1V4f.js";import{a as zh}from"./XYuLBlD_.js";import{P as Wh}from"./xbYgrSwp.js";import{C as Vi}from"./Cc8844v7.js";import"./iSUz9qV_.js";import{d as jh,c as Uh}from"./lD6r0UDf.js";import{O as qh,M as Vh}from"./CRMZ6K83.js";import{b3 as Kh,bc as Gh,aM as Jh,bg as Yh,b1 as Xh,bb as Zh,b7 as Qh,ag as No,bi as kc,aZ as $h,b4 as eb,ba as _l,b5 as xl,a2 as vi,aB as tb,a4 as rb,be as nb,aY as ab,b6 as ob,b9 as sb,bl as ib,bj as lb,aJ as Ru,u as cb,s as db,b8 as ub,a7 as pb,az as fb,aO as gb,M as vb,aN as mb,ah as hb}from"./DA9R3qY_.js";import{s as Ki}from"./DGVbT9XS.js";import{e as Ic}from"./CKFoLoZ4.js";import{M as bb}from"./CUX7ITHo.js";import{s as yb,a as _b}from"./BsieX9dN.js";import{u as wl,w as xb,v as Vs,I as wb,A as Sc,e as Oo,d as Oa,J as Cc,c as kb,f as Ib,g as Ec,i as Sb,b as Cb,o as Mu,j as Eb,q as Gi,r as Pb,O as Ab,x as Tb,k as Lu,S as Rb,N as Mb,p as Lb,n as Pc,z as Nb,s as Ob}from"./SCsmprza.js";import{o as Ac,T as mi,a as Db}from"./DsJQzb68.js";import{D as rs}from"./Dg_ozSbS.js";import{l as ar,e as Bb,f as Tc,m as Rc}from"./CukCNpTl.js";import{A as ns}from"./ConfbLUg.js";import"./C2e4aIfP.js";import{h as Nu}from"./BKD7o1lQ.js";import{C as ha}from"./BEgicCgT.js";import{M as Fb}from"./CKeCQLK7.js";/* empty css */import{g as kl}from"./odEUlbBx.js";import{h as Ji}from"./Ijszt0N1.js";import{f as Mc,d as Hb}from"./CSvRBBT0.js";import{c as Cs}from"./B-XtNfM_.js";import{handleIntentLink as zb}from"./Dx5CymMc.js";import{a as Lc}from"./DgAgTFcK.js";import{t as Yi}from"./C-BsEdGZ.js";import{s as Wb,a as jb,M as Ou}from"./BZTuGYK7.js";import{b as Ub,k as qb}from"./DpIlWkp6.js";import{m as Vb}from"./Dms_DO28.js";import{showAssistantContent as Kb}from"./OB5ewpnK.js";import{o as Rs,c as Gb,n as Jb}from"./CoS-tBEG.js";import{p as Yb}from"./DX8kbFNs.js";import{H as Xb}from"./CJr8errw.js";import{d as Zb,c as Qb,r as $b,g as ey,w as Yo,e as ty,W as ry,b as ny}from"./C1Hs4JhA.js";import{A as Nc}from"./_CEzGhG6.js";import{m as ay}from"./A0p6PvBn.js";import{h as ys}from"./DRAqLa2x.js";import{g as oy,e as sy,f as iy,h as ly}from"./B5aYN90J.js";import{T as hi}from"./LCk9q1lq.js";import"./CWF6E3ze.js";import{S as Wa}from"./R8_KZ5Ix.js";import{O as cy,M as dy,X as uy,J as py}from"./BF6Kznts.js";import{S as Qo,a as Xi,V as fy,b as vo,W as Zi,M as gy,C as vy,R as my,P as hy,y as by,l as yy,_ as _y,X as xy,Z as Oc,U as wy,Y as ky}from"./nkjoFh8W.js";import{D as Iy}from"./BFEG7Vnu.js";import{a as Sy}from"./B4QUTHYa.js";import{a as Cy}from"./BdWqymET.js";import{p as Ey}from"./CU0RJncA.js";const Py="intent:inline-visual-draft";function NP(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),o=(a.match(/`+/g)??[]).reduce((c,l)=>Math.max(c,l.length),0),s="`".repeat(Math.max(3,o+1));return`${r}${r?`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/Bxhb_zrd.js","/app/immutable/chunks/DbiKWuR4.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/Bsc0MUZ8.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BPC0r6G_.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/BE6pBsfS.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/D12yZko9.js","/app/immutable/chunks/YMOYZH7W.js","/app/immutable/chunks/DmgkktjA.js","/app/immutable/chunks/Bp_sc6EE.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/D2nneXpl.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/Do0OWbUO.js","/app/immutable/chunks/2DHIVxXG.js","/app/immutable/chunks/C62iyW1M.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/0grSpTM4.js","/app/immutable/chunks/DE1LlyuA.js","/app/immutable/chunks/CukCNpTl.js","/app/immutable/chunks/jTQhuGpf.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/Ch7xiQpT.js","/app/immutable/chunks/V3w7GQAA.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/DF8CKNhY.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DAg3vCp0.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DI-X2gGm.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/CpbxMIKC.js","/app/immutable/chunks/Dh33f1wg.js","/app/immutable/chunks/BC7iBUJe.js","/app/immutable/chunks/DpIlWkp6.js","/app/immutable/chunks/BF6Kznts.js","/app/immutable/chunks/B5aYN90J.js"])))=>i.map(i=>d[i]);
2
+ import{t as Bt,bo as h,bw as Ft,b as Ht,bm as g,bp as jf,bs as mt,bq as la,br as js,b6 as Xl,bj as Uf,b9 as qf,bi as Vf,ba as Kf,bf as Gf,a$ as Jf,b3 as Yf,bh as Xf,bk as Zf,a_ as Qf,b8 as $f,b7 as eg,b1 as tg,be as rg,bl as ng,bu as Zl,bd as ag,b5 as og,b4 as sg,b2 as ig,bc as lg,bb as cg,bg as dg,b0 as ug,_ as pg}from"./DbiKWuR4.js";import{bI as fg,bj as _o,aG as gg,bs as zt,ca as _t,c0 as zn,aD as e,a7 as ht,ay as Oe,bS as m,be as er,b$ as jt,b_ as S,bO as x,W as u,bH as T,c9 as d,a5 as P,bl as L,bA as w,bn as Wt,bV as ye,aA as b,aB as I,c5 as fn,aC as ja,bo as Ho,br as tn,bk as is,ai as oo,cd as Ro,aw as An,a as vg,aj as Nr,c7 as mg,c6 as Ql,bf as $o,bz as Ud}from"./3SdAC2_C.js";import{i as B}from"./DmgkktjA.js";import{k as ao}from"./DE1LlyuA.js";import{g as Lt,h as hg,e as Wn,I as ls,i as Lr,o as bg,p as yg,f as _g,s as xg}from"./Do0OWbUO.js";import{s as pn}from"./BE6pBsfS.js";import{c as Sr}from"./0grSpTM4.js";import{n as Oi}from"./V3w7GQAA.js";import{b as wg,s as ne,g as Tn,e as kn,c as lr,f as ft}from"./Bp_sc6EE.js";import{b as vr}from"./Dn334wJv.js";import{a as kg,V as Ig,E as Sg,k as Cg,i as Eg,_ as Pg,f as Ag}from"./C_AJrH9w.js";import{p as qd,bI as Vd,cZ as Kd,bp as Tg,dV as Rg,dH as Mg,aJ as Lg,cI as Ng,ac as Og,d3 as Dg,dG as es,aO as Us,cg as Bg,R as Fg,b as Hg,a9 as $l,d9 as zg,c4 as Wg,X as jg,dC as Ug,a3 as qg,dM as Vg,aq as Kg,cw as Gg,d0 as Jg,aF as Yg,n as Xg,H as Zg}from"./DF8CKNhY.js";import{c as Qg}from"./D-62MVd3.js";import{m as Hn,w as $g,C as Gd,c as ev,R as tv}from"./YMOYZH7W.js";import{aa as Jd,f as Ct,ah as Ao,ae as Di}from"./D2nneXpl.js";import{w as rv,F as nv}from"./2DHIVxXG.js";import{T as av}from"./DfDJ4DFw.js";import{F as Mt,bj as Bi,bO as ov,aq as sv,aS as iv,cQ as lv,bn as pl,bE as cv,aI as Yd,aN as fl,d3 as Ts,ad as Fi,cs as dv,ch as uv,cn as gl,cK as vl,bv as pv,e as fv,c3 as ec,cd as gv,cq as vv,c$ as Xd,bY as mv,ba as gi,bg as Jo,aH as hv,aB as Hi,aw as Zd,be as Qd,bF as bv,B as yv,by as _v,a2 as $d,b5 as xv,a8 as eu,cl as wv,an as tu,cS as ru,cO as tc,au as nu,aM as rc,cA as kv,cZ as Iv,cT as Sv,aL as Cv,b1 as Ev,bR as au,bp as Pv,ap as ml,c9 as nc,aA as Av,ab as Tv,a9 as Rv}from"./Ch7xiQpT.js";import{c as ou}from"./ChTqQfQN.js";import{g as Mv}from"./jTQhuGpf.js";import{Jr as Ot,bY as Lv,sx as ac,t6 as Nv,Kh as Ov,Kn as Dv,m as su,J4 as iu,nV as lu,o9 as cu,o8 as du,nO as qs,qx as hl,yF as Bv,vH as Is,u_ as zi,vJ as Fv,nC as uu,Jw as Hv,tO as zv,oZ as pu,rR as bl,mi as oc,a9 as sc,rj as Wv,rf as jv,rk as Uv,rb as qv,rh as Vv,vx as Kv,Bn as fu,Br as gu,oa as ic,Ah as Gv,Af as Jv,Aj as Yv,bq as Wi,HP as Xv,J0 as Zv,hp as lc,ho as Qv,o4 as $v,wI as em,wJ as tm,wH as cc,Cm as sa,cD as vu,cr as rm,xG as nm,dc as am,dj as om,Bx as sm}from"./Bsc0MUZ8.js";import{z as mu,I as hu}from"./Bqd7fdCF.js";import{e as dc,i as bu}from"./CL3a4Hm1.js";import{e as uc,d as yu,b as im,a as lm,f as cm,I as dm}from"./Cx61quY8.js";import{b as _u}from"./Bt_g_mAI.js";/* empty css */import{d as xu,G as wu,R as ku,g as Iu,f as um,M as Su,C as pm,q as yl,l as fm,h as gm,e as vm,a as Cu,o as mm,S as Eo,K as hm}from"./Cnyr3NBg.js";import{D as bm,e as ym}from"./BPC0r6G_.js";import"./Bd_znEOF.js";import"./CaWJORov.js";import"./6gPBUDNi.js";import{b as _m}from"./CuIT_dDA.js";import{r as xm}from"./C2V8HU7i.js";import{a4 as wm,ck as km,cm as Im,cl as Sm,b3 as Cm,b1 as Em,b2 as Pm,a2 as Am,al as bs,ak as Tm,cV as Rm,aA as pc,aJ as Mm,ai as Lm,C as Nm,i as Om,d7 as Ss,cW as Dm,aY as fc,d0 as Bm,af as Fm,a7 as Hm,r as zm,p as Wm,aG as jm,d3 as Um,cM as qm,cF as Vm,Q as Km,cw as Gm,bU as Jm}from"./CGU5lxic.js";import{v as Ym,k as Xm,E as Zm,l as Qm,V as $m,q as eh,n as th,A as gc,s as rh,I as nh,R as ah,m as oh,W as sh,o as Eu,S as Pu,i as ih,g as vc,f as lh,e as ch,j as dh,h as uh,c as mc,r as ph}from"./CvGqUzlm.js";import{a as fh}from"./DOGhHht_.js";import{aA as gh,aH as vh,g as mh,n as hh,aK as bh,K as yh,M as _h,O as xh,at as wh,aD as kh,av as Ih}from"./CpbxMIKC.js";import{f as Sh,e as Ch,m as ji,bF as Eh,B as Ph,bE as Ah,bB as Th,ai as hc,bD as Rh,be as Ui,ar as Mh,k as Lh,b4 as Nh,q as bc,A as Oh,L as yc}from"./D12yZko9.js";import{i as Dh,I as Mo,c as _c}from"./tSHKUrDJ.js";import{A as Bh,s as Fh}from"./DiQOUtRF.js";import{e as xc,l as wc,M as Au,m as qi,w as ho}from"./KnCTS4uY.js";import{b as Tu}from"./Ee5kMYCV.js";import{H as Hh}from"./CwBYV6iH.js";import{t as ts}from"./DAsc1V4f.js";import{a as zh}from"./XYuLBlD_.js";import{P as Wh}from"./xbYgrSwp.js";import{C as Vi}from"./Cc8844v7.js";import"./B_oIL-kv.js";import{d as jh,c as Uh}from"./lD6r0UDf.js";import{O as qh,M as Vh}from"./CRMZ6K83.js";import{b3 as Kh,bc as Gh,aM as Jh,bg as Yh,b1 as Xh,bb as Zh,b7 as Qh,ag as No,bi as kc,aZ as $h,b4 as eb,ba as _l,b5 as xl,a2 as vi,aB as tb,a4 as rb,be as nb,aY as ab,b6 as ob,b9 as sb,bl as ib,bj as lb,aJ as Ru,u as cb,s as db,b8 as ub,a7 as pb,az as fb,aO as gb,M as vb,aN as mb,ah as hb}from"./D1mu2lcM.js";import{s as Ki}from"./DvgbT4jE.js";import{e as Ic}from"./CKFoLoZ4.js";import{M as bb}from"./CUX7ITHo.js";import{s as yb,a as _b}from"./BsieX9dN.js";import{u as wl,w as xb,v as Vs,I as wb,A as Sc,e as Oo,d as Oa,J as Cc,c as kb,f as Ib,g as Ec,i as Sb,b as Cb,o as Mu,j as Eb,q as Gi,r as Pb,O as Ab,x as Tb,k as Lu,S as Rb,N as Mb,p as Lb,n as Pc,z as Nb,s as Ob}from"./Dap1kDfc.js";import{o as Ac,T as mi,a as Db}from"./_8Wr9vMI.js";import{D as rs}from"./Z9ILybNi.js";import{l as ar,e as Bb,f as Tc,m as Rc}from"./CukCNpTl.js";import{A as ns}from"./ConfbLUg.js";import"./C2e4aIfP.js";import{h as Nu}from"./BKD7o1lQ.js";import{C as ha}from"./BEgicCgT.js";import{M as Fb}from"./Ct_rgdAq.js";/* empty css */import{g as kl}from"./odEUlbBx.js";import{h as Ji}from"./Bxhb_zrd.js";import{f as Mc,d as Hb}from"./Dk3iYI6S.js";import{c as Cs}from"./B-XtNfM_.js";import{handleIntentLink as zb}from"./D4Z0p17R.js";import{a as Lc}from"./DgAgTFcK.js";import{t as Yi}from"./C-BsEdGZ.js";import{s as Wb,a as jb,M as Ou}from"./DZahD34h.js";import{b as Ub,k as qb}from"./DpIlWkp6.js";import{m as Vb}from"./Dms_DO28.js";import{showAssistantContent as Kb}from"./B1VDcrDv.js";import{o as Rs,c as Gb,n as Jb}from"./D1mEuDv_.js";import{p as Yb}from"./BRubskG0.js";import{H as Xb}from"./CJr8errw.js";import{d as Zb,c as Qb,r as $b,g as ey,w as Yo,e as ty,W as ry,b as ny}from"./ClniIwNB.js";import{A as Nc}from"./_CEzGhG6.js";import{m as ay}from"./A0p6PvBn.js";import{h as ys}from"./DRAqLa2x.js";import{g as oy,e as sy,f as iy,h as ly}from"./B5aYN90J.js";import{T as hi}from"./LCk9q1lq.js";import"./CWF6E3ze.js";import{S as Wa}from"./R8_KZ5Ix.js";import{O as cy,M as dy,X as uy,J as py}from"./BF6Kznts.js";import{S as Qo,a as Xi,V as fy,b as vo,W as Zi,M as gy,C as vy,R as my,P as hy,y as by,l as yy,_ as _y,X as xy,Z as Oc,U as wy,Y as ky}from"./nkjoFh8W.js";import{D as Iy}from"./BFEG7Vnu.js";import{a as Sy}from"./B4QUTHYa.js";import{a as Cy}from"./BdWqymET.js";import{p as Ey}from"./BA5DxNDs.js";const Py="intent:inline-visual-draft";function NP(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),o=(a.match(/`+/g)??[]).reduce((c,l)=>Math.max(c,l.length),0),s="`".repeat(Math.max(3,o+1));return`${r}${r?`
3
3
 
4
4
  `:""}${n}
5
5
 
@@ -294,7 +294,7 @@ ${r.content}`:a.content=r.content,a):r.old_text!==void 0&&r.new_text!==void 0?(a
294
294
  `,Yk=["background","foreground","card","card-foreground","primary","primary-ink","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","border","input","ring","danger","danger-background","info","info-foreground","success","success-foreground","warning","warning-foreground","font-ui","font-code","text-body-size","text-body-line-height","text-body-weight","text-body-tracking","radius-small","radius-medium","radius-large","app-background","sidebar","sidebar-accent","agent-avatar-surface-active","agent-avatar-foreground","diagram-host-surface","diagram-canvas","diagram-label-surface","diagram-node-surface","diagram-node-hover-surface","diagram-node-outline","diagram-node-title","diagram-metadata","diagram-group-outline","diagram-connector","diagram-connector-hover","diagram-connector-muted","diagram-connector-inactive","diagram-connector-danger","diagram-connector-success","diagram-connector-warning","diagram-connector-active","diagram-accent","diagram-accent-foreground","diagram-node-radius","diagram-group-radius","diagram-connector-width","text-caption-size","text-caption-line-height","text-caption-weight","text-caption-tracking","text-body-strong-size","text-body-strong-line-height","text-body-strong-weight","text-body-strong-tracking","space-1","space-2","space-3","space-4","space-5","space-6","space-7","control-height-compact","control-height-small","control-height-medium","control-height-large","radius-full","spring-fast","spring-fast-exit","spring-fast-ease","spring-moderate","spring-moderate-exit","spring-moderate-ease","spring-slow","spring-slow-exit","spring-slow-ease","spring-exit-ease","motion-fast","motion-standard","motion-slow","ease-standard","ease-emphasized-out","motion-reduced"],Ti=96,Id=2e4,Xk=480,Kp=512,Zk=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data:","connect-src 'none'","font-src data:","media-src 'none'","object-src 'none'","frame-src 'none'","child-src 'none'","worker-src 'none'","manifest-src 'none'","base-uri 'none'","form-action 'none'"].join("; ");function Qk(r,t,n,a,o,s){const c=new MessageChannel,l=MessagePort.prototype.postMessage.bind(c.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[c.port2]);const p=(k,F={})=>{window.parent.postMessage({channel:r,type:k,...F},"*")};let i=o?.state??null,f=null,v=!1;Object.defineProperty(window,"intentVisual",{configurable:!1,writable:!1,value:Object.freeze({get state(){return i},publish(k){try{if(!s(k))return!1;const F=JSON.parse(JSON.stringify(k));return i=F.state,f=F,v||(v=!0,requestAnimationFrame(()=>{v=!1,f&&p("snapshot",{snapshot:f}),f=null})),!0}catch{return!1}}})});let M=!1,_=-1,y=innerHeight,R=Number.NaN,N=0,D=0;const H=()=>{if(M=!1,!document.body)return;let k=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const F=innerHeight,V=k-F;if(F>y+1&&V>1&&Math.abs(V-R)<=1?N+=1:(F!==y||V<=1)&&(N=0),y=F,R=V,!D&&N>=3){D=Math.max(a,F);const z="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(z),p("layout",{message:z})}D&&(k=Math.min(k,D)),k!==_&&(_=k,p("resize",{height:k}))},C=()=>{M||(M=!0,requestAnimationFrame(H))},A=k=>{if(!k||typeof k.dark!="boolean"||!k.variables)return;const F=document.documentElement;F.classList.toggle("dark",k.dark),F.style.colorScheme=k.dark?"dark":"light";const V=k.variables["--inline-html-root-font-size"];"--inline-html-root-font-size"in t.variables&&typeof V=="string"&&V.length<512&&F.style.setProperty("--inline-html-root-font-size",V);for(const z of Object.keys(t.variables)){if(z==="--inline-html-root-font-size")continue;const G=k.variables[z];typeof G=="string"&&G.length<512&&F.style.setProperty(z,G)}C()};window.addEventListener("message",k=>{k.source!==window.parent||!k.data||k.data.channel!==r||k.data.type==="theme"&&A(k.data.theme)});const U=k=>{if(k.defaultPrevented||!k.isTrusted||k.ctrlKey||k.metaKey||k.shiftKey||!k.deltaY||Math.abs(k.deltaX)>Math.abs(k.deltaY))return;const F=G=>{const ie=getComputedStyle(G);if(G!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(ie.overflowY)||/^(hidden|clip)$/.test(ie.overflowY))return!1;const X=G.scrollHeight-G.clientHeight;return X>1&&(k.deltaY<0?G.scrollTop>1:G.scrollTop<X-1)};if(k.composedPath().some(G=>G instanceof Element&&F(G))||document.scrollingElement&&F(document.scrollingElement))return;const V=k.deltaMode===WheelEvent.DOM_DELTA_LINE?parseFloat(getComputedStyle(document.body).lineHeight)||16:k.deltaMode===WheelEvent.DOM_DELTA_PAGE?innerHeight:1,z=Math.max(-n,Math.min(n,k.deltaY*V));Number.isFinite(z)&&(k.preventDefault(),l({deltaY:z}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",U),window.addEventListener("wheel",U,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",k=>{k.message&&p("error",{message:k.message.slice(0,300)})}),window.addEventListener("unhandledrejection",k=>{const F=k.reason;p("error",{message:String(F instanceof Error?F.message:F).slice(0,300)})}),window.addEventListener("click",k=>{const F=k.target instanceof Element?k.target.closest("a, area"):null;if(!F)return;(F.getAttribute("href")??F.getAttribute("xlink:href"))?.startsWith("#")||k.preventDefault()},!0),window.addEventListener("submit",k=>k.preventDefault(),!0),A(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(C).observe(document.body),new MutationObserver(C).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",C),document.addEventListener("load",C,!0),document.fonts.ready.then(C),p("ready"),C()},{once:!0})}function $k(r,t,n,a,o){const s=document.createElement("iframe");s.setAttribute("sandbox","allow-scripts"),s.setAttribute("referrerpolicy","no-referrer"),s.title=n,s.style.cssText="display:block;width:100%;height:100%;border:0;";let c;const l=p=>{const i=p.data?.deltaY;typeof i=="number"&&Number.isFinite(i)&&i!==0&&Math.abs(i)<=a&&window.parent.postMessage({channel:r,type:"wheel",deltaY:i},"*")};window.addEventListener("message",p=>{const i=p.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(p.source===window.parent&&i.type==="theme"){s.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(p.source!==s.contentWindow||p.origin!=="null")){if(i.type==="scroll-port"&&!c&&p.ports.length===1){c=p.ports[0],c.onmessage=l;return}i.type==="resize"&&typeof i.height=="number"&&Number.isFinite(i.height)&&i.height>=0?window.parent.postMessage({channel:r,type:"resize",height:i.height},"*"):i.type==="ready"?window.parent.postMessage({channel:r,type:"ready"},"*"):(i.type==="error"||i.type==="layout")&&typeof i.message=="string"?window.parent.postMessage({channel:r,type:i.type,message:i.message.slice(0,300)},"*"):i.type==="snapshot"&&o(i.snapshot)&&window.parent.postMessage({channel:r,type:"snapshot",snapshot:i.snapshot},"*")}}}),window.addEventListener("DOMContentLoaded",()=>{s.srcdoc=t,document.body.append(s)},{once:!0})}function e2(r,t,n,a,o,s,c,l){const p=document.implementation.createHTMLDocument(""),i=p.createElement("template");i.innerHTML=n,p.body.append(i.content);const f=z=>{z.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach(G=>G.remove()),z.querySelectorAll("template").forEach(G=>f(G.content)),z.querySelectorAll("a, area").forEach(G=>{for(const ie of["href","xlink:href"])G.getAttribute(ie)?.startsWith("#")||G.removeAttribute(ie);G.removeAttribute("target"),G.removeAttribute("ping"),G.removeAttribute("download")})};f(p);const v=z=>JSON.stringify(z).replace(/</g,"\\u003c"),M=p.createElement("meta");M.httpEquiv="Content-Security-Policy",M.content=r.csp;const _=p.createElement("meta");_.setAttribute("charset","utf-8");const y=p.createElement("style"),R=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(l)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
295
295
  font-display: swap; src: url('${l}') format('woff2'); }`:"";y.textContent=`${R}${r.styles}`;const N=p.createElement("script"),D=v([a,o,r.maxScrollDelta,r.lockHeight,t(c)?c:null]);N.textContent=`(${r.bridge})(...${D}, (${r.validate}));`,p.head.prepend(M,_,y,N);const H=`<!doctype html>${p.documentElement.outerHTML}`,C=document.implementation.createHTMLDocument(""),A=C.createElement("meta");A.httpEquiv="Content-Security-Policy",A.content=r.csp.replace("frame-src 'none'","frame-src about:");const U=C.createElement("meta");U.setAttribute("charset","utf-8");const k=C.createElement("style");k.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const F=C.createElement("script"),V=v([a,H,s,r.maxScrollDelta]);return F.textContent=`(${r.shell})(...${V}, (${r.validate}));`,C.head.prepend(A,U,k,F),`<!doctype html>${C.documentElement.outerHTML}`}const t2=()=>({csp:Zk,styles:Jk,maxScrollDelta:Kp,lockHeight:Xk,bridge:Qk.toString(),shell:$k.toString(),validate:bl.toString()});function r2(r,t,n,a,o=null,s=""){return e2(t2(),bl,r,t,n,a,o,s)}function Sd(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(Yk.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function n2(r,t,n,a,o=null){return r2(r,t,n,a,o,Gk)}var a2=I('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),o2=I('<div class="type-body flex items-center justify-between gap-3 px-4 py-2" role="status"><span class="text-danger"> </span> <!></div> <!>',1),s2=I('<p class="sr-only" role="status"> </p>'),i2=I('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),l2=I('<div class="type-body px-4 py-2 text-danger" role="status"><p class="m-0"> </p> <p class="type-code m-0 break-words"> </p></div>'),c2=I('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),d2=I('<div class="space-y-4 p-4" aria-hidden="true"><div class="space-y-2"><!> <!></div> <!> <div class="flex items-center gap-4"><!> <!> <!></div></div>'),u2=I('<span aria-hidden="true"><!></span> <span class="min-w-0 flex-1 whitespace-normal text-pretty"> </span>',1),p2=I('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),f2=I('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),g2=I('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),v2=I('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),m2=I('<div class="overflow-x-auto px-4 pb-4" data-inline-visual-comparison=""><table class="type-body w-full border-separate border-spacing-0 text-left"><thead><tr><th class="min-w-28 pr-4 pb-3 font-normal text-muted-foreground"> </th><th class="min-w-32 px-2 pb-3 align-top font-medium"> </th><!></tr></thead><tbody></tbody></table></div>'),h2=I("<!> <!>",1),b2=I('<div data-inline-html="" class="my-3 min-w-0 overflow-hidden rounded-lg bg-background text-foreground"><!> <!> <div class="relative min-w-0"><!> <!></div> <div class="flex min-w-0 items-center justify-between gap-2 px-4 pt-1 pb-3" data-inline-visual-actions=""><!> <!></div> <!></div>');function Gp(r,t){if(new.target)return Bt({component:Gp,...r});zt(t,!0);const n=720,a=1e4;let o=h(t,"source",7),s=h(t,"isStreaming",7,!1),c=h(t,"isComplete",7,!0),l=h(t,"record",7),p=h(t,"storageStatus",7,"ready"),i=h(t,"onRecordChange",7),f=h(t,"onUseConfiguration",7),v=h(t,"onExport",7),M=h(t,"onRetry",7),_=h(t,"storageError",7),y=h(t,"exportStatus",7),R=h(t,"exportPath",7),N=h(t,"exportError",7),D,H=ye(void 0),C=ye(!1),A=ye(!1),U=ye(0),k=ye(""),F=ye(""),V=ye(!1),z=ye(""),G=ye(tn(Ti)),ie=ye(n),X=ye(""),Ie=ye(oc()),oe=ye(void 0),Pe=ye(void 0),fe,Se=ye(void 0),te=ye(!1);const Q=d(()=>l()??e(Ie)),ke=d(()=>e(Pe)!==void 0&&e(oe)!==void 0&&!Vb(e(Pe),e(oe).inputs)),ue=d(()=>p()!=="loading"&&(p()!=="error"||!!e(Q).current)),be=d(()=>!s()&&c()&&!!o().trim()&&e(ue)),Ke=d(()=>Math.min(Id,Math.max(Ti,e(G)))),$e=d(()=>s()||p()==="loading"?"loading":c()?o().trim()?e(z)?"error":e(V)?"ready":"loading":"empty":"incomplete"),$=d(()=>s()||p()==="loading"||e(be)&&!e(V)&&!e(z)),Y=d(()=>mm([{id:"source",label:e(A)?qf():Vf()},{id:"reload",label:Kf(),disabled:!e(be)},{id:"save",label:Gf(),when:!!(e(oe)&&e(be)),disabled:!e(V)||!!e(z)||e(Q).scenarios.length>=sc,group:"configuration"},{id:"compare",label:Jf(),when:!!(e(oe)&&e(be)&&e(Q).scenarios.length),group:"configuration"},{id:"export",label:Yf(),when:!!(e(oe)&&e(be)&&v()),disabled:!e(V)||y()==="saving",group:"configuration"}]));function we(le){le==="source"?T(A,!e(A)):le==="reload"?T(U,e(U)+1):le==="save"?q():le==="compare"?T(te,!e(te)):le==="export"&&v()?.({...e(Q),current:e(oe)??null})}function j(le){const Me={...le,current:e(oe)??le.current};T(Ie,Me),i()?.(Me)}function q(){const le=e(oe);!le||e(Q).scenarios.length>=sc||(j({...e(Q),scenarios:[...e(Q).scenarios,{id:crypto.randomUUID(),name:Xf({number:Rc(e(Q).scenarios.length+1)}),snapshot:structuredClone(le)}]}),T(te,!0))}function J(le,Me){const Ze=Me.trim().slice(0,120);Ze&&j({...e(Q),scenarios:e(Q).scenarios.map(gt=>gt.id===le?{...gt,name:Ze}:gt)})}function se(le){const Me=structuredClone(le);T(oe,Me),T(Se,Me),j({...e(Q),current:Me}),T(U,e(U)+1)}function _e(le){return typeof le=="number"?Rc(le):typeof le=="string"?le:JSON.stringify(le)}function Le(){!e(H)?.contentWindow||!e(F)||e(H).contentWindow.postMessage({channel:e(F),type:"theme",theme:Sd(D)},"*")}function ee(le){let Me=D.parentElement;for(;Me;){const Ze=getComputedStyle(Me),gt=Me.scrollHeight-Me.clientHeight;if(/^(auto|scroll|overlay)$/.test(Ze.overflowY)&&gt>1){if(le<0?Me.scrollTop>0:Me.scrollTop<gt){Me.dispatchEvent(new WheelEvent("wheel",{deltaY:le,bubbles:!0})),Me.scrollTop+=le;return}if(/^(contain|none)$/.test(Ze.overscrollBehaviorY))return}Me=Me.parentElement}window.scrollBy({top:le,behavior:"instant"})}_t(()=>{if(!e(C))return;const le=o(),Me=e(be);e(U),fn(()=>{fe!==le&&(T(Ie,oc()),T(oe,void 0),T(Pe,void 0),T(te,!1),T(Se,void 0),fe=le),T(V,!1),T(z,""),T(X,""),T(G,Ti,!0),T(F,crypto.randomUUID(),!0),T(k,Me?n2(le,e(F),Sd(D),Xl(),e(Se)??e(oe)??e(Q).current):"",!0),T(Se,void 0)})}),_t(()=>{if(!e(k)||e(V)||e(z))return;const le=setTimeout(()=>{T(z,Uf(),!0)},a);return()=>clearTimeout(le)}),is(()=>{T(C,!0);const le=dt=>{if(dt.source!==e(H)?.contentWindow||dt.origin!=="null")return;const at=dt.data;if(!(!at||typeof at!="object"||at.channel!==e(F))){if(at.type==="bootstrap"){e(H)?.contentWindow?.postMessage({channel:e(F),type:"initialize",documentHtml:e(k)},"*");return}if(at.type==="resize"&&typeof at.height=="number"&&Number.isFinite(at.height)&&at.height>=0)T(G,Math.min(Id,Math.ceil(at.height)),!0);else if(at.type==="ready")T(V,!0),Le();else if(at.type==="error"&&typeof at.message=="string")T(z,at.message.slice(0,300),!0);else if(at.type==="layout"&&typeof at.message=="string")T(X,at.message.slice(0,300),!0);else if(at.type==="snapshot"&&e(be)&&bl(at.snapshot)){const Pt=at.snapshot;T(Pe,e(Pe)??structuredClone(Pt.inputs)),T(oe,Pt),j({...e(Q),current:Pt})}else at.type==="wheel"&&e(V)&&e(be)&&!e(A)&&!e($)&&typeof at.deltaY=="number"&&Number.isFinite(at.deltaY)&&at.deltaY!==0&&Math.abs(at.deltaY)<=Kp&&ee(at.deltaY)}},Me=()=>{T(ie,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},Ze=new MutationObserver(Le);Ze.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const gt=window.matchMedia("(prefers-color-scheme: dark)");return gt.addEventListener("change",Le),window.addEventListener("message",le),window.addEventListener("resize",Me),Me(),()=>{Ze.disconnect(),gt.removeEventListener("change",Le),window.removeEventListener("message",le),window.removeEventListener("resize",Me)}});var de={get source(){return o()},set source(le){o(le),b()},get isStreaming(){return s()},set isStreaming(le=!1){s(le),b()},get isComplete(){return c()},set isComplete(le=!0){c(le),b()},get record(){return l()},set record(le){l(le),b()},get storageStatus(){return p()},set storageStatus(le="ready"){p(le),b()},get onRecordChange(){return i()},set onRecordChange(le){i(le),b()},get onUseConfiguration(){return f()},set onUseConfiguration(le){f(le),b()},get onExport(){return v()},set onExport(le){v(le),b()},get onRetry(){return M()},set onRetry(le){M(le),b()},get storageError(){return _()},set storageError(le){_(le),b()},get exportStatus(){return y()},set exportStatus(le){y(le),b()},get exportPath(){return R()},set exportPath(le){R(le),b()},get exportError(){return N()},set exportError(le){N(le),b()},$set:Ft,$on:(le,Me)=>Ht(t,le,Me)},ge=b2(),rt=P(ge);{var me=le=>{var Me=o2(),Ze=Oe(Me),gt=P(Ze),dt=L(gt,!0),at=m(gt,2);{var Pt=Nt=>{Ct(Nt,{variant:"ghost",size:"sm",get onclick(){return M()},children:(Gt,tr)=>{er();var Vt=jt();S(Ne=>x(Vt,Ne),[()=>ag()]),u(Gt,Vt)},$$slots:{default:!0}})};B(at,Nt=>{M()&&Nt(Pt)})}w(Ze);var St=m(Ze,2);{var bt=Nt=>{var Gt=a2(),tr=L(Gt,!0);S(()=>x(tr,_())),u(Nt,Gt)};B(St,Nt=>{_()&&Nt(bt)})}S(Nt=>x(dt,Nt),[()=>Zf()]),u(le,Me)};B(rt,le=>{p()==="error"&&le(me)})}var Ae=m(rt,2);{var Z=le=>{var Me=s2(),Ze=L(Me,!0);S(gt=>x(Ze,gt),[()=>s()?Qf():$f()]),u(le,Me)},Ee=le=>{var Me=i2(),Ze=L(Me,!0);S(gt=>x(Ze,gt),[()=>c()?tg():eg()]),u(le,Me)},pe=le=>{var Me=l2(),Ze=P(Me),gt=L(Ze,!0),dt=m(Ze,2),at=L(dt,!0);w(Me),S(Pt=>{x(gt,Pt),x(at,e(z))},[()=>rg()]),u(le,Me)};B(Ae,le=>{e($)?le(Z):e(be)?e(z)&&le(pe,2):le(Ee,1)})}var O=m(Ae,2),K=P(O);{var xe=le=>{var Me=ht(),Ze=Oe(Me);ao(Ze,()=>e(F),gt=>{var dt=c2();let at,Pt;vr(dt,St=>T(H,St),()=>e(H)),S(St=>{ne(dt,"title",St),ne(dt,"src",`/inline-html-sandbox.html#${e(F)}`),at=ft(dt,1,"block w-full border-0 svelte-1kkow1d",null,at,{"preview-hidden":e(A)||!e(V)}),ne(dt,"aria-hidden",e(A)||!e(V)),Pt=Tn(dt,"",Pt,{height:`${e(Ke)}px`})},[()=>Xl()]),u(gt,dt)}),u(le,Me)};B(K,le=>{e(be)&&e(k)&&le(xe)})}var qe=m(K,2);{var Be=le=>{ha(le,{get code(){return o()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e(ie)}})},je=le=>{var Me=d2(),Ze=P(Me),gt=P(Ze);Eo(gt,{class:"h-4 w-32 max-w-1/2"});var dt=m(gt,2);Eo(dt,{class:"h-3 w-2/3"}),w(Ze);var at=m(Ze,2);Eo(at,{class:"aspect-video max-h-60 w-full rounded-lg"});var Pt=m(at,2),St=P(Pt);Eo(St,{class:"h-3 w-16"});var bt=m(St,2);Eo(bt,{class:"h-2 min-w-0 flex-1"});var Nt=m(bt,2);Eo(Nt,{class:"h-3 w-10"}),w(Pt),w(Me),u(le,Me)};B(qe,le=>{e(A)?le(Be):e($)&&le(je,1)})}w(O);var Ge=m(O,2),lt=P(Ge);{var xt=le=>{{let Me=d(()=>!e(V)||!!e(z));Ct(le,{variant:"plain",size:"sm",wrapContent:!1,get class(){return`${Gi} ${Pb} h-auto min-w-0 shrink justify-start rounded-sm border border-transparent px-1.5 py-0.5 text-left hover:text-foreground`},style:"gap: var(--operational-leading-gap)","data-typography-role":"body",get disabled(){return e(Me)},onclick:()=>e(oe)&&f()(e(oe)),children:(Ze,gt)=>{var dt=u2(),at=Oe(dt),Pt=P(at);Mt(Pt,{get icon(){return $d},size:16,get class(){return Oa}}),w(at);var St=m(at,2),bt=L(St,!0);S(Nt=>{ft(at,1,`${Oo??""} mt-px self-start`,"svelte-1kkow1d"),x(bt,Nt)},[()=>ng()]),u(Ze,dt)},$$slots:{default:!0}})}};B(lt,le=>{e(oe)&&e(ke)&&e(be)&&f()&&!e(A)&&le(xt)})}var wt=m(lt,2);{const le=(Ze,gt)=>{let dt=()=>(gt?.()).props;{let at=d(()=>Zl());Ct(Ze,js(dt,{variant:"ghost",size:"icon-sm",class:"ml-auto text-muted-foreground",get"aria-label"(){return e(at)},children:(Pt,St)=>{Mt(Pt,{get icon(){return xv},size:16})},$$slots:{default:!0}}))}};let Me=d(()=>Zl());Cu(wt,{get actions(){return e(Y)},get ariaLabel(){return e(Me)},align:"end",side:"top",onAction:we,trigger:le,$$slots:{trigger:!0}})}w(Ge);var qt=m(Ge,2);{var It=le=>{var Me=h2(),Ze=Oe(Me);{var gt=Pt=>{var St=p2(),bt=P(St),Nt=m(bt);{var Gt=tr=>{var Vt=jt();S(()=>x(Vt,N())),u(tr,Vt)};B(Nt,tr=>{y()==="error"&&N()&&tr(Gt)})}w(St),S(tr=>x(bt,`${tr??""} `),[()=>y()==="saving"?og():y()==="saved"?sg({path:R()??""}):ig()]),u(Pt,St)};B(Ze,Pt=>{y()&&Pt(gt)})}var dt=m(Ze,2);{var at=Pt=>{var St=m2(),bt=P(St),Nt=P(bt),Gt=P(Nt),tr=P(Gt),Vt=L(tr,!0),Ne=m(tr),ve=L(Ne,!0),Qe=m(Ne);Lt(Qe,17,()=>e(Q).scenarios,nt=>nt.id,(nt,He)=>{var re=f2(),Ce=P(re);{let Re=d(()=>dg());Mo(Ce,{get value(){return e(He).name},get"aria-label"(){return e(Re)},maxlength:120,onblur:ze=>{ze.currentTarget.value.trim()||(ze.currentTarget.value=e(He).name),J(e(He).id,ze.currentTarget.value)},onkeydown:ze=>{ze.key==="Enter"&&ze.currentTarget.blur(),ze.key==="Escape"&&(ze.currentTarget.value=e(He).name,ze.currentTarget.blur())}})}var ce=m(Ce,2),Fe=P(ce);Ct(Fe,{variant:"ghost",size:"sm",onclick:()=>se(e(He).snapshot),children:(Re,ze)=>{er();var Je=jt();S(et=>x(Je,et),[()=>lg()]),u(Re,Je)},$$slots:{default:!0}});var Te=m(Fe,2);Ct(Te,{variant:"ghost",size:"sm",onclick:()=>j({...e(Q),scenarios:e(Q).scenarios.filter(Re=>Re.id!==e(He).id)}),children:(Re,ze)=>{er();var Je=jt();S(et=>x(Je,et),[()=>cg()]),u(Re,Je)},$$slots:{default:!0}}),w(ce),w(re),u(nt,re)}),w(Gt),w(Nt);var st=m(Nt);Lt(st,20,()=>["inputs","results"],Lr,(nt,He)=>{const re=d(()=>He),Ce=d(()=>Array.from(new Set([...Object.keys(e(oe)[e(re)]),...e(Q).scenarios.flatMap(Te=>Object.keys(Te.snapshot[e(re)]))])));var ce=ht(),Fe=Oe(ce);Lt(Fe,16,()=>e(Ce),Te=>Te,(Te,Re)=>{var ze=v2(),Je=P(ze),et=L(Je,!0),Ve=m(Je);Lt(Ve,17,()=>[e(oe),...e(Q).scenarios.map(Ye=>Ye.snapshot)],Lr,(Ye,Ue)=>{var tt=g2(),it=L(tt,!0);S(Xe=>x(it,Xe),[()=>Object.hasOwn(e(Ue)[e(re)],Re)?_e(e(Ue)[e(re)][Re]):"—"]),u(Ye,tt)}),w(ze),S(()=>x(et,Re)),u(Te,ze)}),u(nt,ce)}),w(st),w(bt),w(St),S(nt=>{x(Vt,e(oe).title),x(ve,nt)},[()=>ug()]),u(Pt,St)};B(dt,Pt=>{e(te)&&e(Q).scenarios.length&&Pt(at)})}u(le,Me)};B(qt,le=>{e(oe)&&e(be)&&le(It)})}return w(ge),vr(ge,le=>D=le,()=>D),S(()=>{ne(ge,"data-inline-html-status",e($e)),ne(ge,"data-inline-html-layout",e(X)?"viewport-locked":void 0),ne(ge,"aria-busy",e($))}),u(r,ge),Wt(de)}var y2=I('<div class="w-full min-w-0"><!></div>');function _2(r,t){if(new.target)return Bt({component:_2,...r});zt(t,!0);const n=()=>mt(e(_),"$agent$",o),a=()=>mt(e(D),"$entry$",o),[o,s]=la();let c=h(t,"block",7),l=h(t,"role",7),p=h(t,"workspaceId",7),i=h(t,"agentId",7),f=h(t,"messageId",7),v=h(t,"contentBlockKey",7,""),M=ye(void 0);const _=d(()=>Us(i()??"")),y=d(()=>l()==="assistant"&&p()&&i()&&f()&&c().metadata?.fenceClosed&&!c().metadata?.isStreaming&&n()&&!pu(n())?{workspaceId:p(),agentId:i(),messageId:f(),blockKey:JSON.stringify([v(),c().metadata?.fenceStart??0]),source:c().content}:void 0),R=d(()=>!!(p()&&i()&&f()&&c().metadata?.fenceClosed&&!n())),N=d(()=>e(y)?Vv(e(y)):""),D=d(()=>Xh(e(N)));_t(()=>{e(y)&&Ot.dispatch(Wv(e(y)))});function H(z){!p()||!i()||n()?.retiredAt||e(M)?.dispatchEvent(new CustomEvent(Py,{bubbles:!0,detail:{workspaceId:p(),agentId:i(),snapshot:z}}))}var C={get block(){return c()},set block(z){c(z),b()},get role(){return l()},set role(z){l(z),b()},get workspaceId(){return p()},set workspaceId(z){p(z),b()},get agentId(){return i()},set agentId(z){i(z),b()},get messageId(){return f()},set messageId(z){f(z),b()},get contentBlockKey(){return v()},set contentBlockKey(z=""){v(z),b()},$set:Ft,$on:(z,G)=>Ht(t,z,G)},A=ht(),U=Oe(A);{var k=z=>{var G=y2(),ie=P(G);{let X=d(()=>c().metadata?.isStreaming??!1),Ie=d(()=>c().metadata?.fenceClosed??!1),oe=d(()=>a()?.record),Pe=d(()=>e(y)?a()?.status??"loading":e(R)?"loading":"ready"),fe=d(()=>a()?.error),Se=d(()=>e(y)?$e=>Ot.dispatch(qv(e(N),$e)):void 0),te=d(()=>p()&&i()&&n()&&!n().retiredAt?H:void 0),Q=d(()=>e(y)?()=>Ot.dispatch(Uv(e(N))):void 0),ke=d(()=>e(y)?$e=>Ot.dispatch(jv(e(N),crypto.randomUUID(),$e)):void 0),ue=d(()=>a()?.export?.status),be=d(()=>a()?.export?.path),Ke=d(()=>a()?.export?.error);Gp(ie,{get source(){return c().content},get isStreaming(){return e(X)},get isComplete(){return e(Ie)},get record(){return e(oe)},get storageStatus(){return e(Pe)},get storageError(){return e(fe)},get onRecordChange(){return e(Se)},get onUseConfiguration(){return e(te)},get onRetry(){return e(Q)},get onExport(){return e(ke)},get exportStatus(){return e(ue)},get exportPath(){return e(be)},get exportError(){return e(Ke)}})}w(G),vr(G,X=>T(M,X),()=>e(M)),u(z,G)},F=z=>{ha(z,{get code(){return c().content},language:"html"})};B(U,z=>{l()==="assistant"?z(k):z(F,-1)})}u(r,A);var V=Wt(C);return s(),V}var x2=I('<div class="digest-card flex items-start gap-2.5 py-5 px-6 my-4 shadow-xs text-base leading-normal border border-border"> </div>');function w2(r,t){if(new.target)return Bt({component:w2,...r});zt(t,!0);let n=h(t,"digest",7);var a={get digest(){return n()},set digest(c){n(c),b()},$set:Ft,$on:(c,l)=>Ht(t,c,l)},o=x2(),s=L(o,!0);return S(()=>x(s,n())),u(r,o),Wt(a)}var k2=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-500/15 text-blue-600 dark:text-blue-400"> </span>'),I2=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),S2=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-primary/10 text-primary/80"> </span>'),C2=I('<div class="flex items-start gap-3 px-4 py-2.5"><div class="flex-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-sm font-semibold text-foreground"> </span> <!> <!></div> <div class="mt-0.5 text-xs font-mono text-muted-foreground truncate"> </div></div></div>'),E2=I('<div class="detected-scripts-card my-3 rounded-lg border border-border bg-muted/30 overflow-hidden"><div class="flex items-center gap-2 px-4 py-2.5 border-b border-border bg-muted/40"><!> <span class="text-sm font-semibold text-foreground"> </span></div> <div class="divide-y divide-border"></div> <div class="px-4 py-2 border-t border-border bg-muted/20"><span class="text-xs text-muted-foreground"> </span></div></div>');function P2(r,t){if(new.target)return Bt({component:P2,...r});zt(t,!0);let n=h(t,"scripts",7);var a={get scripts(){return n()},set scripts(_){n(_),b()},$set:Ft,$on:(_,y)=>Ht(t,_,y)},o=E2(),s=P(o),c=P(s);Mt(c,{get icon(){return Xd},size:"sm",class:"text-primary-ink/70"});var l=m(c,2),p=L(l,!0);w(s);var i=m(s,2);Lt(i,21,n,_=>_.name+_.command,(_,y)=>{var R=C2(),N=P(R),D=P(N),H=P(D),C=L(H,!0),A=m(H,2);{var U=ie=>{var X=k2(),Ie=L(X,!0);S(oe=>x(Ie,oe),[()=>g.chat_detectedScripts_service_badge()]),u(ie,X)},k=ie=>{var X=I2(),Ie=L(X,!0);S(oe=>x(Ie,oe),[()=>g.chat_detectedScripts_command_badge()]),u(ie,X)};B(A,ie=>{e(y).mode==="service"?ie(U):ie(k,-1)})}var F=m(A,2);{var V=ie=>{var X=S2(),Ie=L(X,!0);S(()=>x(Ie,e(y).category)),u(ie,X)};B(F,ie=>{e(y).category&&e(y).category!=="other"&&ie(V)})}w(D);var z=m(D,2),G=L(z,!0);w(N),w(R),S(()=>{x(C,e(y).name),x(G,e(y).command)}),u(_,R)}),w(i);var f=m(i,2),v=P(f),M=L(v,!0);return w(f),w(o),S((_,y)=>{x(p,_),x(M,y)},[()=>g.chat_detectedScripts_title(),()=>n().length===1?g.chat_detectedScripts_count_one({count:ar(n().length)}):g.chat_detectedScripts_count_many({count:ar(n().length)})]),u(r,o),Wt(a)}function A2(r,t){if(new.target)return Bt({component:A2,...r});zt(t,!0);let n=h(t,"diff",7),a=h(t,"filePath",7),o=h(t,"language",7),s=h(t,"onApply",7),c=h(t,"onReject",7);function l(){s()?.(),Hn.success(g.chat_diffViewer_applied_toast())}function p(){c()?.(),Hn.info(g.chat_diffViewer_rejected_toast())}const i=d(()=>{const v=[];return s()&&v.push({label:g.chat_diffViewer_apply_label(),variant:"success",onClick:l}),c()&&v.push({label:g.chat_diffViewer_reject_label(),variant:"danger",onClick:p}),v});var f={get diff(){return n()},set diff(v){n(v),b()},get filePath(){return a()},set filePath(v){a(v),b()},get language(){return o()},set language(v){o(v),b()},get onApply(){return s()},set onApply(v){s(v),b()},get onReject(){return c()},set onReject(v){c(v),b()},$set:Ft,$on:(v,M)=>Ht(t,v,M)};{let v=d(()=>a()||g.chat_diffViewer_suggestedChanges_fallback());rs(r,{get patch(){return n()},get fileName(){return e(v)},get language(){return o()},get actions(){return e(i)},collapsible:!0,initialCollapsed:!1,maxHeight:"500px"})}return Wt(f)}var T2=ja('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),Cd=ja("<circle></circle>"),R2=ja('<svg class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 fill-background" viewBox="0 0 8 6"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.69471 1.69471C7.87687 1.50611 7.97766 1.25351 7.97539 0.991311C7.97311 0.729114 7.86794 0.478302 7.68253 0.292894C7.49712 0.107485 7.24631 0.00231622 6.98411 3.78025e-05C6.72192 -0.00224062 6.46931 0.0985542 6.28071 0.280712L2.98771 3.57371L1.69471 2.28071C1.50611 2.09855 1.25351 1.99776 0.991311 2.00004C0.729114 2.00232 0.478302 2.10749 0.292894 2.29289C0.107485 2.4783 0.00231622 2.72911 3.78025e-05 2.99131C-0.00224062 3.25351 0.0985542 3.50611 0.280712 3.69471L2.28071 5.69471C2.46824 5.88218 2.72255 5.9875 2.98771 5.9875C3.25288 5.9875 3.50718 5.88218 3.69471 5.69471L7.69471 1.69471Z"></path></svg>'),M2=I('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function As(r,t){if(new.target)return Bt({component:As,...r});zt(t,!0);let n=h(t,"phase",7),a=h(t,"progress",7,0),o=h(t,"size",7,16),s=h(t,"class",7,""),c=d(()=>o()/2),l=d(()=>e(c)),p=d(()=>e(c)),i=d(()=>o()*.12),f=d(()=>e(c)-e(i)/2),v=d(()=>e(c)*.35),M=d(()=>2*Math.PI*e(v)),_=d(()=>Math.max(0,Math.min(1,a()))*e(M));const y={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let R=d(()=>y[n()]||"currentColor");var N={get phase(){return n()},set phase(X){n(X),b()},get progress(){return a()},set progress(X=0){a(X),b()},get size(){return o()},set size(X=16){o(X),b()},get class(){return s()},set class(X=""){s(X),b()},$set:Ft,$on:(X,Ie)=>Ht(t,X,Ie)},D=M2(),H=P(D),C=P(H),A=m(C);{var U=X=>{},k=X=>{var Ie=T2();S(()=>{ne(Ie,"cx",e(l)),ne(Ie,"cy",e(p)),ne(Ie,"r",e(v)*.8),ne(Ie,"stroke",e(R)),ne(Ie,"stroke-width",e(v)*1.5),ne(Ie,"stroke-dasharray",`${e(_)??""} ${e(M)??""}`),ne(Ie,"stroke-dashoffset",e(M)*.25),ne(Ie,"transform",`rotate(-90 ${e(l)??""} ${e(p)??""})`)}),u(X,Ie)},F=X=>{var Ie=Cd();S(()=>{ne(Ie,"cx",e(l)),ne(Ie,"cy",e(p)),ne(Ie,"r",e(f)*.6),ne(Ie,"fill",e(R))}),u(X,Ie)},V=X=>{var Ie=Cd();S(()=>{ne(Ie,"cx",e(l)),ne(Ie,"cy",e(p)),ne(Ie,"r",e(f)),ne(Ie,"fill",e(R))}),u(X,Ie)};B(A,X=>{n()==="planning"?X(U):n()==="building"?X(k,1):n()==="reviewing"?X(F,2):n()==="shipped"&&X(V,3)})}w(H);var z=m(H,2);{var G=X=>{},ie=X=>{var Ie=R2();S(()=>ne(Ie,"width",o()*.5)),u(X,Ie)};B(z,X=>{n()==="reviewing"?X(G):n()==="shipped"&&X(ie,1)})}return w(D),S(()=>{ne(H,"width",o()),ne(H,"height",o()),ne(H,"viewBox",`0 0 ${o()??""} ${o()??""}`),ft(H,0,lr(s())),ne(C,"cx",e(l)),ne(C,"cy",e(p)),ne(C,"r",e(f)),ne(C,"stroke",e(R)),ne(C,"stroke-width",e(i))}),u(r,D),Wt(N)}var Ed=I('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),L2=I('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),Pd=I('<span class="text-ui text-subtle truncate"> </span>'),Ad=I('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),Td=I('<div class="flex items-start gap-2"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-xs leading-snug truncate"> </div> <!></div></div>'),N2=I('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),O2=I('<span class="text-ui text-subtle pl-4"> </span>'),D2=I('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),B2=I('<div class="text-ui text-subtle"> </div>'),F2=I("<!> <!> <!> <!>",1),H2=I('<div class="flex flex-col py-2 px-3 gap-2 max-h-80 overflow-y-auto"><div class="flex items-center justify-between gap-3"><span class="text-xs font-semibold text-foreground"> </span> <div class="flex items-center gap-3 text-ui text-subtle"><!> <!> <!></div></div> <!></div>'),z2=I('<div class="rounded-[0.5px]"></div>');function Jp(r,t){if(new.target)return Bt({component:Jp,...r});zt(t,!0);let n=h(t,"stats",7),a=h(t,"tasks",23,()=>[]),o=h(t,"maxBars",7,20),s=h(t,"barWidth",7,"1px"),c=h(t,"barHeight",7,"16px"),l=h(t,"gap",7,"1px"),p=h(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let f=d(()=>{const{completed:A,inProgress:U,notStarted:k,total:F}=n();if(F===0)return[];const V=[...Array(A).fill("completed"),...Array(U).fill("inProgress"),...Array(Math.max(0,k)).fill("notStarted")];return V.length<=o()?V:V.slice(V.length-o())}),v=d(()=>a().filter(A=>A.status==="complete")),M=d(()=>a().filter(A=>A.status==="in_progress"||A.status==="review_required")),_=d(()=>a().filter(A=>A.status!=="complete"&&A.status!=="in_progress"&&A.status!=="review_required"&&A.status!=="cancelled")),y=d(()=>a().filter(A=>A.status==="cancelled")),R=d(()=>a().length>0);var N={get stats(){return n()},set stats(A){n(A),b()},get tasks(){return a()},set tasks(A=[]){a(A),b()},get maxBars(){return o()},set maxBars(A=20){o(A),b()},get barWidth(){return s()},set barWidth(A="1px"){s(A),b()},get barHeight(){return c()},set barHeight(A="16px"){c(A),b()},get gap(){return l()},set gap(A="1px"){l(A),b()},get class(){return p()},set class(A){p(A),b()},$set:Ft,$on:(A,U)=>Ht(t,A,U)},D=ht(),H=Oe(D);{var C=A=>{Di(A,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:k=>{var F=H2(),V=P(F),z=P(V),G=L(z,!0),ie=m(z,2),X=P(ie);{var Ie=ke=>{var ue=Ed(),be=P(ue);Tn(be,"",{},{"background-color":"#22c55e"});var Ke=m(be);w(ue),S(()=>x(Ke,` ${n().completed??""}`)),u(ke,ue)};B(X,ke=>{n().completed>0&&ke(Ie)})}var oe=m(X,2);{var Pe=ke=>{var ue=Ed(),be=P(ue);Tn(be,"",{},{"background-color":"#4F7BF7"});var Ke=m(be);w(ue),S(()=>x(Ke,` ${n().inProgress??""}`)),u(ke,ue)};B(oe,ke=>{n().inProgress>0&&ke(Pe)})}var fe=m(oe,2);{var Se=ke=>{var ue=L2(),be=m(P(ue));w(ue),S(()=>x(be,` ${n().notStarted??""}`)),u(ke,ue)};B(fe,ke=>{n().notStarted>0&&ke(Se)})}w(ie),w(V);var te=m(V,2);{var Q=ke=>{var ue=F2(),be=Oe(ue);Lt(be,17,()=>e(M),Lr,(j,q)=>{var J=Td(),se=P(J),_e=P(se);mi(_e,{get status(){return e(q).status},size:14}),w(se);var Le=m(se,2),ee=P(Le),de=L(ee,!0),ge=m(ee,2);{var rt=me=>{var Ae=Ad(),Z=P(Ae);{let O=d(()=>e(q).agentState||"idle");Nc(Z,{get agentId(){return e(q).agentId},get state(){return e(O)},size:12,get specialist(){return e(q).agentSpecialist}})}var Ee=m(Z,2);{var pe=O=>{var K=Pd(),xe=L(K,!0);S(()=>x(xe,e(q).agentName)),u(O,K)};B(Ee,O=>{e(q).agentName&&O(pe)})}w(Ae),u(me,Ae)};B(ge,me=>{e(q).agentId&&me(rt)})}w(Le),w(J),S(()=>x(de,e(q).title)),u(j,J)});var Ke=m(be,2);Lt(Ke,17,()=>e(_),Lr,(j,q)=>{var J=Td(),se=P(J),_e=P(se);mi(_e,{get status(){return e(q).status},size:14}),w(se);var Le=m(se,2),ee=P(Le),de=L(ee,!0),ge=m(ee,2);{var rt=me=>{var Ae=Ad(),Z=P(Ae);{let O=d(()=>e(q).agentState||"idle");Nc(Z,{get agentId(){return e(q).agentId},get state(){return e(O)},size:12,get specialist(){return e(q).agentSpecialist}})}var Ee=m(Z,2);{var pe=O=>{var K=Pd(),xe=L(K,!0);S(()=>x(xe,e(q).agentName)),u(O,K)};B(Ee,O=>{e(q).agentName&&O(pe)})}w(Ae),u(me,Ae)};B(ge,me=>{e(q).agentId&&me(rt)})}w(Le),w(J),S(()=>x(de,e(q).title)),u(j,J)});var $e=m(Ke,2);{var $=j=>{var q=D2(),J=P(q);Lt(J,17,()=>e(v).slice(0,3),Lr,(Le,ee)=>{var de=N2(),ge=P(de),rt=P(ge);mi(rt,{status:"complete",size:12}),w(ge);var me=m(ge,2),Ae=L(me,!0);w(de),S(()=>x(Ae,e(ee).title)),u(Le,de)});var se=m(J,2);{var _e=Le=>{var ee=O2(),de=L(ee,!0);S(ge=>x(de,ge),[()=>g.workspace_taskProgressBar_moreCompleted_label({count:ar(e(v).length-3)})]),u(Le,ee)};B(se,Le=>{e(v).length>3&&Le(_e)})}w(q),u(j,q)};B($e,j=>{e(v).length>0&&j($)})}var Y=m($e,2);{var we=j=>{var q=B2(),J=L(q,!0);S(se=>x(J,se),[()=>g.workspace_taskProgressBar_cancelled_label({count:ar(e(y).length)})]),u(j,q)};B(Y,j=>{e(y).length>0&&j(we)})}u(ke,ue)};B(te,ke=>{e(R)&&ke(Q)})}w(F),S(ke=>x(G,ke),[()=>g.workspace_taskProgressBar_tasksRatio_label({completed:ar(n().completed),total:ar(n().total)})]),u(k,F)},children:(k,F)=>{{let V=d(()=>kn("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",p())),z=d(()=>`gap: ${l()}`),G=d(()=>g.workspace_taskProgressBar_tasksRatio_label({completed:ar(n().completed),total:ar(n().total)}));Ct(k,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(V)},get style(){return e(z)},get"aria-label"(){return e(G)},"data-task-progress-trigger":!0,children:(ie,X)=>{var Ie=ht(),oe=Oe(Ie);Lt(oe,17,()=>e(f),Lr,(Pe,fe)=>{var Se=z2();let te;S(()=>te=Tn(Se,"",te,{width:s(),height:c(),"background-color":i[e(fe)]})),u(Pe,Se)}),u(ie,Ie)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};B(H,A=>{n().total>0&&A(C)})}return u(r,D),Wt(N)}function Ws(r,t){if(new.target)return Bt({component:Ws,...r});zt(t,!0);let n=h(t,"items",7),a=h(t,"ariaLabel",7),o=h(t,"open",15,!1),s=h(t,"orientation",7,"vertical"),c=h(t,"selection",7),l=h(t,"class",7,"");const p=d(()=>sh(n(),c(),a()));var i={get items(){return n()},set items(f){n(f),b()},get ariaLabel(){return a()},set ariaLabel(f){a(f),b()},get open(){return o()},set open(f=!1){o(f),b()},get orientation(){return s()},set orientation(f="vertical"){s(f),b()},get selection(){return c()},set selection(f){c(f),b()},get class(){return l()},set class(f=""){l(f),b()},$set:Ft,$on:(f,v)=>Ht(t,f,v)};return Cu(r,{get actions(){return e(p)},align:"end",get ariaLabel(){return a()},onAction:v=>oh(n(),v)?.onClick(),get open(){return o()},set open(v){o(v)},trigger:(v,M)=>{let _=()=>(M?.()).props;Ct(v,js(_,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return l()},get"aria-label"(){return a()},onclick:y=>{y.stopPropagation(),_().onclick?.(y)},oncontextmenu:y=>{y.preventDefault(),y.stopPropagation()},children:(y,R)=>{hm(y,{get orientation(){return s()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),Wt(i)}var W2=I('<span class="contents"><!></span>'),j2=I("<!> <!>",1);function Yp(r,t){if(new.target)return Bt({component:Yp,...r});zt(t,!0);let n=h(t,"workspaceId",7),a=h(t,"slot",7);const o=d(()=>Mv(a()));let s=ye(null);_t(()=>{e(s)&&e(s).workspaceId!==n()&&T(s,null)});function c(y){const R=Eu(y);R&&T(s,{...R,workspaceId:n()},!0)}function l(y){y.preventDefault(),y.stopPropagation();const R=y.currentTarget.getBoundingClientRect();T(s,{x:R.left,y:R.bottom+2,returnFocus:y.currentTarget,workspaceId:n()},!0)}function p(){T(s,null)}var i={get workspaceId(){return n()},set workspaceId(y){n(y),b()},get slot(){return a()},set slot(y){a(y),b()},$set:Ft,$on:(y,R)=>Ht(t,y,R)},f=j2(),v=Oe(f);{let y=d(()=>g.workspace_microKeyBadge_ariaLabel({number:ar(a()+1)})),R=d(()=>g.workspace_microKeyBadge_tooltip({number:ar(a()+1)})),N=d(()=>e(s)!==null);Ct(v,{variant:"ghost",size:"icon",type:"button",class:"micro-key-slot-badge size-4 min-w-0 shrink-0 cursor-pointer rounded-[3px] p-0 a11y-ignore",get"aria-label"(){return e(y)},get title(){return e(R)},onclick:l,oncontextmenu:c,onkeydown:c,"aria-haspopup":"menu",get"aria-expanded"(){return e(N)},children:(D,H)=>{var C=W2(),A=P(C);ev(A,{get slot(){return a()},get class(){return`transition-colors ${e(o)??""}`}}),w(C),u(D,C)},$$slots:{default:!0}})}var M=m(v,2);{var _=y=>{{let R=d(()=>e(s)?.x??0),N=d(()=>e(s)?.y??0),D=d(()=>e(s)?.returnFocus),H=d(()=>g.workspace_card_assignMicroKey_label()),C=d(()=>Zb(n(),p));Pu(y,{get x(){return e(R)},get y(){return e(N)},get returnFocus(){return e(D)},selection:"single",get ariaLabel(){return e(H)},get items(){return e(C)},onClickOutside:p})}};B(M,y=>{e(s)&&y(_)})}return u(r,f),Wt(i)}var U2=I('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),q2=I('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),V2=I('<span class="type-caption shrink-0 rounded-sm bg-muted-foreground/10 px-1.5 font-normal text-muted-foreground" data-workspace-card-trailing-label=""> </span>'),K2=I('<span data-workspace-card-pr-item=""><!></span>'),G2=I('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),J2=I('<span data-workspace-card-time=""><!></span>'),Y2=I('<span aria-hidden="true"><!></span>'),X2=I("<div><!> <!> <!> <!></div>"),Z2=I('<div data-workspace-card-hover-surface=""><!></div>'),Q2=I('<div role="group" data-workspace-card-row=""><!> <div class="relative z-10 flex shrink-0 items-center gap-1.5"><!> <!> <span class="sr-only"> </span></div> <div class="relative z-10 flex min-w-0 flex-1 items-center gap-2"><span class="flex min-w-0 flex-1 items-center gap-1" data-workspace-card-title-group=""><span dir="ltr" data-workspace-card-title=""><span class="wc-title-text svelte-1ct56pd"> </span></span> <!></span> <!> <!> <!></div> <!></div> <!> <!>',1),$2=I('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),eI=I('<div><!> <!> <span class="font-medium truncate"> </span> <span class="shrink-0 text-muted-foreground">·</span> <span class="truncate text-xs text-muted-foreground"> </span> <!></div>'),tI=I('<div class="text-sm font-semibold truncate"> </div>'),Rd=I('<span class="truncate"> </span>'),rI=I('<span class="text-muted-foreground">·</span>'),nI=I('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),aI=I('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),oI=I('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),sI=I('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span> <span class="tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span></div>'),iI=I('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),lI=I('<div class="flex items-center text-ui"><span> </span></div>'),cI=I('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),dI=I('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),uI=I('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),pI=I('<div role="group"><!> <div class="flex items-start gap-2.5 px-3 pt-3 pb-2"><!> <div class="flex-1 min-w-0"><div class="text-sm font-medium"> </div> <div class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground"> </div></div></div> <!> <!></div>');function cl(r,t){if(new.target)return Bt({component:cl,...r});zt(t,!0);const n=()=>mt($e,"$prMonitors$",c),a=()=>mt($,"$microConnected$",c),o=()=>mt(we,"$hidesOwnerActions$",c),s=()=>mt(Y,"$workspaceKeySlot$",c),[c,l]=la();let p=h(t,"workspace",7),i=h(t,"phase",7),f=h(t,"stats",7),v=h(t,"variant",7,"compact"),M=h(t,"showTime",7,!0),_=h(t,"isRunning",7,!1),y=h(t,"isUnread",7,!1),R=h(t,"isWaiting",7),N=h(t,"isPinned",7,!1),D=h(t,"streamingAgentIds",23,()=>[]),H=h(t,"hasSpec",7,!1),C=h(t,"isAgentRunning",7,!1),A=h(t,"agentDigest",7),U=h(t,"trailingLabel",7),k=h(t,"title",7),F=h(t,"repoName",7),V=h(t,"branch",7),z=h(t,"onClick",7),G=h(t,"onAction",7),ie=h(t,"onTogglePin",7),X=h(t,"onMarkAsRead",7),Ie=h(t,"onOpenInNewWindow",7),oe=h(t,"onHover",7),Pe=h(t,"highlighted",7,!1),fe=h(t,"selected",7,!1),Se=h(t,"highlightId",7),te=h(t,"suppressHover",7,!1),Q=h(t,"hoverPreview",7,!0),ke=h(t,"isolateHoverReveal",7,!1),ue=h(t,"class",7),be=h(t,"actions",7);const Ke=Ro("");_t(()=>{Ke.set(p()?.id??"")});const $e=zg(Ke),$=ay(),Y=bh(Ke),we=Wg(Ke),j=d(()=>$b(p()??{})),q=d(()=>ey(e(j)));let J=d(()=>p()?Yb.url.pathname===`/workspace/${p().id}`:!1),se=d(()=>p()?`workspace-hover-card-${p().id}`:void 0),_e=ye(!1),Le=ye(null),ee=ye(null);_t(()=>{if(!e(ee))return;const ae=ys(e(ee),{id:Se()});return()=>ae.destroy()});let de=ye(null),ge=ye(null),rt=ye(null),me=ye(0),Ae=ye(0),Z=d(()=>e(me)+(e(Ae)>0?e(Ae)+4:0));function Ee(){const ae=e(de),pt=e(rt);T(me,ae?Math.max(0,ae.scrollWidth-ae.clientWidth):0,!0),T(Ae,ae&&pt&&pt.getClientRects().length>0?Math.max(0,ae.getBoundingClientRect().right-pt.getBoundingClientRect().left):0,!0)}_t(()=>{const ae=e(de),pt=e(ge),At=e(rt);if(!ae||!pt||(Ee(),typeof ResizeObserver>"u"))return;const hr=new ResizeObserver(Ee);return hr.observe(ae),hr.observe(pt),At&&hr.observe(At),()=>hr.disconnect()});let pe=null,O=null,K=!1,xe=!1,qe=!1,Be=!1,je=!1,Ge=!1,lt=ye(!1),xt=!1,wt=null,qt=ye(null),It=null,le;function Me(){pe!==null&&(clearTimeout(pe),pe=null)}function Ze(){O!==null&&(clearTimeout(O),O=null),It?.(),It=null}function gt(){Ze(),T(lt,!0),T(_e,!0),!je&&(je=!0,Yo.notifyOpened())}function dt(){Ze(),clearTimeout(le),T(lt,!1),T(_e,!1),xe=!1,Be=!1,je&&(je=!1,Yo.notifyClosed())}function at(){return K||xe||qe||Be}function Pt(){if(!e(_e)){dt();return}Ze(),O=setTimeout(()=>{O=null,at()||dt()},ry),It=Yo.deferClose(dt)}function St(){xe=!0,Ze()}function bt(){xe=!1,!qe&&!Be&&Pt()}function Nt(){Be=!0,clearTimeout(le),Ze()}function Gt(ae){const pt=ae.relatedTarget instanceof Node?ae.relatedTarget:null;if(pt&&ce()?.contains(pt)||(Be=!1,pt&&e(Le)?.contains(pt)))return;if(pt){!K&&!xe&&dt();return}const At=ae.target;clearTimeout(le),le=setTimeout(()=>{const hr=document.activeElement,Dr=ce()?.contains(hr)||e(Le)?.contains(hr);hr&&hr!==At&&Dr||!K&&!xe&&dt()},0)}function tr(){wt!==null&&clearTimeout(wt),xt=!0,wt=setTimeout(()=>{xt=!1,wt=null},0)}function Vt(ae){const pt=ae.target,At=ce();pt instanceof Node&&At?.contains(pt)||ae.type==="scroll"&&e(Le)&&pt instanceof Node&&!pt.contains(e(Le))||(ae.type==="pointerdown"&&tr(),Me(),dt())}_t(()=>{if(e(lt))return window.addEventListener("pointerdown",Vt,!0),window.addEventListener("scroll",Vt,!0),()=>{window.removeEventListener("pointerdown",Vt,!0),window.removeEventListener("scroll",Vt,!0)}});function Ne(ae){if(ae.key!=="Escape")return;const pt=ae.target;pt instanceof Node&&ce()?.contains(pt)||(ae.preventDefault(),ae.stopPropagation(),Ge=qe,Me(),dt())}_t(()=>{if(e(_e))return window.addEventListener("keydown",Ne,!0),()=>window.removeEventListener("keydown",Ne,!0)});const ve=d(()=>p()?Ug.select(Ot.state,p().id):null),Qe=d(()=>e(ve)?e(ve):p()?.activePullRequest?p().activePullRequest:!p()?.prStatus||p().prNumber==null?null:{id:`legacy-pr-${p().prNumber}`,number:p().prNumber,url:p().prUrl??"",title:g.workspace_hoverCard_pullRequest_label(),status:p().prStatus,createdAt:p().updatedAt,updatedAt:p().updatedAt}),st=d(()=>jg(p())),nt=d(()=>{if(!p()||e(st))return[];const ae=p(),pt=ae.repositoryOwner&&ae.repositoryName?`${ae.repositoryOwner}/${ae.repositoryName}`:void 0;return ih({workspacePRs:ae.pullRequests,activePR:e(Qe),monitors:n(),workspaceRepo:pt,buildPrUrl:(At,hr)=>Wm(At,ae.repositoryOwner,ae.repositoryName,hr),getDisplayTitle:At=>At.title})}),He=d(()=>e(nt)[0]);function re(ae){const pt=ae.resource?.repository.provider==="gitlab"?`${ae.repo} !${ae.number}`:ae.repo?g.workspace_card_prBadge_repoLine_tooltip({repo:ae.repo,number:ae.number}):g.workspace_card_prBadge_label({number:` #${ae.number}`});return[qg(pt,ae),ae.title,ae.details].filter(Boolean).join(`
296
296
  `)}function Ce(ae){ae.key==="Enter"&&z()?.(ae)}function ce(){return e(se)?document.getElementById(e(se)):null}function Fe(){return Array.from(ce()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function Te(){const ae=e(Le)?.querySelector("[data-workspace-card-trigger]"),pt=ce();if(!ae||!pt)return null;const At=Array.from(document.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')).filter(Dr=>Dr.tabIndex>=0&&!pt.contains(Dr)),hr=At.indexOf(ae);return hr>=0?At[hr+1]:null}function Re(ae){Ge=!!e(Le)?.contains(ae),dt(),ae.focus({preventScroll:!0})}function ze(){const ae=e(Le)?.querySelector("[data-workspace-card-trigger]");ae&&Re(ae)}async function Je(ae){if(ae.key==="Escape"&&e(_e)){ae.preventDefault(),ae.stopPropagation(),dt();return}ae.key!=="ArrowDown"||te()||!p()||(ae.preventDefault(),ae.stopPropagation(),T(lt,!0),T(_e,!0),await zn(),Fe()[0]?.focus({preventScroll:!0}))}function et(ae){const pt=Fe(),At=ae.key==="Tab"&&ae.shiftKey&&ae.currentTarget===pt[0],Dr=ae.key==="Tab"&&!ae.shiftKey&&ae.currentTarget===pt.at(-1)?Te():null;ae.key!=="Escape"&&!At&&!Dr||(ae.preventDefault(),ae.stopPropagation(),Dr?Re(Dr):ze())}function Ve(){K=!0,Ze(),Yo.settleDeferredCloses(),Ee(),oe()?.(),p()&&!te()&&!qe&&(Me(),T(lt,!0),pe=setTimeout(()=>{pe=null,gt()},Yo.currentOpenDelay))}function Ye(){K=!1,Me(),!qe&&!Be&&Pt()}function Ue(){qe=!0,Me(),Ze(),!Ge&&(xt||p()&&!te()&&(T(lt,!0),T(_e,!0)))}function tt(ae){const pt=ae.relatedTarget instanceof Node?ae.relatedTarget:null;pt&&e(Le)?.contains(pt)||(Ge=!1,qe=!1,!(pt&&ce()?.contains(pt))&&!K&&!xe&&dt())}_t(()=>{te()&&(Me(),Ze(),dt())});let it=ye(null),Xe=ye(!1),ut;_t(()=>{const ae=p()?.id;ut!==ae&&(ut=ae,T(Xe,!1)),e(it)&&e(it).workspaceId!==p()?.id&&vt()});function Kt(ae){if(!p())return;const pt=Eu(ae);if(pt){if(T(Xe,!1),Rt().length===0){T(it,null);return}T(it,{...pt,returnFocus:ae.target instanceof HTMLElement?ae.target.closest("button")??e(Le)?.querySelector("button")??null:null,workspaceId:p().id},!0)}}function vt(){T(it,null),T(Xe,!1)}_t(()=>{e(Xe)&&T(it,null)}),_o(()=>{Me(),Ze(),wt!==null&&(clearTimeout(wt),wt=null),dt()});function Rt(){if(!p())return[];const ae=[];return Ie()&&ae.push({id:"open-new-window",label:g.workspace_card_openNewWindow_label(),icon:eu,onClick:()=>{Ie()?.(),vt()}}),ae.push(...ty(p().id,{connected:a(),onClose:vt})),o()||(e(st)||ae.push({id:"transfer",label:g.workspace_card_transfer_label(),icon:wv,onClick:()=>{Ot.dispatch(Kv({workspaceId:p().id,workspaceTitle:p().title})),vt()}}),ae.push({id:"archive",label:g.workspace_card_archive_label(),icon:tu,onClick:()=>{Ot.dispatch(fu(p().id)),vt()}}),ae.push({id:"delete",label:g.workspace_card_deleteSpace_label(),icon:ru,destructive:!0,onClick:()=>{Ot.dispatch(gu(p().id)),vt()}})),ae}let Yt=d(()=>C()&&A()?A():i()?.subtitle??""),Xt=d(()=>f()&&f().tasks.total>0?f().tasks.completed/f().tasks.total:0),_r=d(()=>!!f()&&(f().tasks.total>0||f().files.changed>0||f().commits.total>0||f().pr.hasOpen||f().pr.hasMerged)),Or=d(()=>e(st)?void 0:V()),gn=d(()=>!f()||e(st)?"":f().pr.hasMerged?g.workspace_card_prMerged_label({number:f().pr.number??""}):f().pr.hasOpen?g.workspace_card_prOpen_label({number:f().pr.number?`#${f().pr.number}`:""}):""),zr=d(()=>i()?.phase==="planning"?C()?{primary:{label:g.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:g.workspace_card_pause_label(),action:"pause"}}:H()||(f()?.tasks.total??0)>0?{primary:{label:g.workspace_card_approveStart_label(),action:"approve"},secondary:{label:g.workspace_card_viewSpec_label(),action:"view-spec"}}:{primary:{label:g.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:g.workspace_card_viewSpec_label(),action:"view-spec"}}:i()?.phase==="building"?{primary:{label:g.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:g.workspace_card_pause_label(),action:"pause"}}:i()?.phase==="reviewing"?{primary:{label:g.workspace_card_createPr_label(),action:"create-pr"},secondary:{label:g.workspace_card_showChanges_label(),action:"show-changes"}}:{primary:{label:g.workspace_card_archive_label(),action:"archive"},secondary:{label:g.workspace_card_showChanges_label(),action:"show-changes"}});const mr={planning:"bg-muted/20 text-muted-foreground",building:"bg-info/15 text-info",reviewing:"bg-primary/15 text-primary",shipped:"bg-foreground/10 text-foreground"};var jn={get workspace(){return p()},set workspace(ae){p(ae),b()},get phase(){return i()},set phase(ae){i(ae),b()},get stats(){return f()},set stats(ae){f(ae),b()},get variant(){return v()},set variant(ae="compact"){v(ae),b()},get showTime(){return M()},set showTime(ae=!0){M(ae),b()},get isRunning(){return _()},set isRunning(ae=!1){_(ae),b()},get isUnread(){return y()},set isUnread(ae=!1){y(ae),b()},get isWaiting(){return R()},set isWaiting(ae){R(ae),b()},get isPinned(){return N()},set isPinned(ae=!1){N(ae),b()},get streamingAgentIds(){return D()},set streamingAgentIds(ae=[]){D(ae),b()},get hasSpec(){return H()},set hasSpec(ae=!1){H(ae),b()},get isAgentRunning(){return C()},set isAgentRunning(ae=!1){C(ae),b()},get agentDigest(){return A()},set agentDigest(ae){A(ae),b()},get trailingLabel(){return U()},set trailingLabel(ae){U(ae),b()},get title(){return k()},set title(ae){k(ae),b()},get repoName(){return F()},set repoName(ae){F(ae),b()},get branch(){return V()},set branch(ae){V(ae),b()},get onClick(){return z()},set onClick(ae){z(ae),b()},get onAction(){return G()},set onAction(ae){G(ae),b()},get onTogglePin(){return ie()},set onTogglePin(ae){ie(ae),b()},get onMarkAsRead(){return X()},set onMarkAsRead(ae){X(ae),b()},get onOpenInNewWindow(){return Ie()},set onOpenInNewWindow(ae){Ie(ae),b()},get onHover(){return oe()},set onHover(ae){oe(ae),b()},get highlighted(){return Pe()},set highlighted(ae=!1){Pe(ae),b()},get selected(){return fe()},set selected(ae=!1){fe(ae),b()},get highlightId(){return Se()},set highlightId(ae){Se(ae),b()},get suppressHover(){return te()},set suppressHover(ae=!1){te(ae),b()},get hoverPreview(){return Q()},set hoverPreview(ae=!0){Q(ae),b()},get isolateHoverReveal(){return ke()},set isolateHoverReveal(ae=!1){ke(ae),b()},get class(){return ue()},set class(ae){ue(ae),b()},get actions(){return be()},set actions(ae){be(ae),b()},$set:Ft,$on:(ae,pt)=>Ht(t,ae,pt)},Sn=ht(),_a=Oe(Sn);{var Rn=ae=>{var pt=Q2(),At=Oe(pt);let hr;var Dr=P(At);{let yt=d(()=>p().title||g.workspace_links_untitled_label()),Tt=d(()=>`workspace-status-state-${p().id}${N()?` workspace-pinned-state-${p().id}`:""}${e(_e)?` ${e(se)}`:""}`),cr=d(()=>e(J)?"page":void 0);Ct(Dr,{variant:"plain",class:"absolute inset-0 z-0 h-auto w-auto rounded-md focus-visible:border-transparent focus-visible:bg-background/50 focus-visible:ring-0",get"aria-label"(){return e(yt)},get"aria-describedby"(){return e(Tt)},get"aria-current"(){return e(cr)},"data-workspace-card-trigger":!0,onkeydown:Je,onclick:yr=>{yr.stopPropagation(),z()?.(yr)}})}var Br=m(Dr,2),qn=P(Br);{var Mn=yt=>{var Tt=U2(),cr=P(Tt);{var yr=Er=>{Yp(Er,{get workspaceId(){return p().id},get slot(){return s()}})};B(cr,Er=>{s()!==null&&Er(yr)})}w(Tt),u(yt,Tt)};B(qn,yt=>{a()&&yt(Mn)})}var Vn=m(qn,2);Di(Vn,{get content(){return e(q).tooltip},side:"bottom",sideOffset:4,children:(yt,Tt)=>{Qb(yt,{get status(){return e(j)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var ca=m(Vn,2),da=L(ca,!0);w(Br);var Tr=m(Br,2),rn=P(Tr),$t=P(rn),Cr=P($t),Zn=L(Cr,!0);vr(Cr,yt=>T(ge,yt),()=>e(ge)),w($t),vr($t,yt=>T(de,yt),()=>e(de));var wr=m($t,2);{var dr=yt=>{var Tt=q2(),cr=Oe(Tt),yr=P(cr);Mt(yr,{get icon(){return tc},size:"xs"}),w(cr);var Er=m(cr,2),Pr=L(Er,!0);S(ua=>{ft(cr,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
297
- ${ie()?Pe()?"opacity-0":te()?"":ke()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),ne(Er,"id",`workspace-pinned-state-${p().id??""}`),x(Pr,ua)},[()=>g.layout_activeCard_pinned_header()]),u(yt,Tt)};B(wr,yt=>{N()&&yt(dr)})}w(rn);var br=m(rn,2);{var Ea=yt=>{var Tt=V2(),cr=L(Tt,!0);S(()=>x(cr,U())),u(yt,Tt)};B(br,yt=>{U()&&yt(Ea)})}var Wr=m(br,2);{var Yr=yt=>{const Tt=d(()=>e(He));var cr=G2(),yr=P(cr);{let Er=d(()=>re(e(Tt)));Di(yr,{get content(){return e(Er)},side:"bottom",sideOffset:4,children:(Pr,ua)=>{var pa=ht(),Aa=Oe(pa);{var Fr=Cn=>{{let Hr=d(()=>re(e(Tt)));Ct(Cn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Tt).foregroundClass??""}`},get"aria-label"(){return e(Hr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Tt).identity},get"data-pr-status"(){return e(Tt).status},onclick:hn=>{hn.stopPropagation();const qa=p().id;pg(async()=>{const{handleLink:Ra}=await import("./Ijszt0N1.js").then(En=>En.l);return{handleLink:Ra}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46]),import.meta.url).then(({handleLink:Ra})=>Ra(e(Tt).url,{workspaceId:qa,event:hn}))},children:(hn,qa)=>{Mt(hn,{get icon(){return e(Tt).statusIcon},size:14})},$$slots:{default:!0}})}},Ta=Cn=>{var Hr=K2(),hn=P(Hr);Mt(hn,{get icon(){return e(Tt).statusIcon},size:14}),w(Hr),S(qa=>{ft(Hr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Tt).foregroundClass??""}`,"svelte-1ct56pd"),ne(Hr,"aria-label",qa),ne(Hr,"data-pr-identity",e(Tt).identity),ne(Hr,"data-pr-status",e(Tt).status)},[()=>re(e(Tt))]),u(Cn,Hr)};B(Aa,Cn=>{e(Tt).url?Cn(Fr):Cn(Ta,-1)})}u(Pr,pa)},$$slots:{default:!0}})}w(cr),S(Er=>ne(cr,"aria-label",Er),[()=>e(Tt).resource?.repository.provider==="gitlab"?g.workspace_hoverCard_mergeRequest_label():g.workspace_hoverCard_pullRequest_label()]),u(yt,cr)};B(Wr,yt=>{e(He)&&yt(Yr)})}var Xr=m(Wr,2);{var Pa=yt=>{var Tt=J2(),cr=P(Tt);{var yr=Pr=>{{let ua=d(()=>ic(p()));tv(Pr,{get date(){return e(ua)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},Er=d(()=>ic(p())>0);B(cr,Pr=>{e(Er)&&Pr(yr)})}w(Tt),S(()=>ft(Tt,1,`wc-secondary shrink-0 ${be()||ie()||y()&&X()?Pe()?"opacity-0":te()?"":ke()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),u(yt,Tt)};B(Xr,yt=>{M()&&yt(Pa)})}w(Tr);var Ua=m(Tr,2);{var io=yt=>{var Tt=X2(),cr=P(Tt);{var yr=Fr=>{{let Ta=d(()=>N()?"text-primary-ink":"text-muted-foreground"),Cn=d(()=>N()?g.workspace_card_unpin_ariaLabel():g.workspace_card_pin_ariaLabel()),Hr=d(()=>N()?g.workspace_card_unpin_tooltip():g.workspace_card_pin_tooltip());Ct(Fr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
297
+ ${ie()?Pe()?"opacity-0":te()?"":ke()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),ne(Er,"id",`workspace-pinned-state-${p().id??""}`),x(Pr,ua)},[()=>g.layout_activeCard_pinned_header()]),u(yt,Tt)};B(wr,yt=>{N()&&yt(dr)})}w(rn);var br=m(rn,2);{var Ea=yt=>{var Tt=V2(),cr=L(Tt,!0);S(()=>x(cr,U())),u(yt,Tt)};B(br,yt=>{U()&&yt(Ea)})}var Wr=m(br,2);{var Yr=yt=>{const Tt=d(()=>e(He));var cr=G2(),yr=P(cr);{let Er=d(()=>re(e(Tt)));Di(yr,{get content(){return e(Er)},side:"bottom",sideOffset:4,children:(Pr,ua)=>{var pa=ht(),Aa=Oe(pa);{var Fr=Cn=>{{let Hr=d(()=>re(e(Tt)));Ct(Cn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Tt).foregroundClass??""}`},get"aria-label"(){return e(Hr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Tt).identity},get"data-pr-status"(){return e(Tt).status},onclick:hn=>{hn.stopPropagation();const qa=p().id;pg(async()=>{const{handleLink:Ra}=await import("./Bxhb_zrd.js").then(En=>En.l);return{handleLink:Ra}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46]),import.meta.url).then(({handleLink:Ra})=>Ra(e(Tt).url,{workspaceId:qa,event:hn}))},children:(hn,qa)=>{Mt(hn,{get icon(){return e(Tt).statusIcon},size:14})},$$slots:{default:!0}})}},Ta=Cn=>{var Hr=K2(),hn=P(Hr);Mt(hn,{get icon(){return e(Tt).statusIcon},size:14}),w(Hr),S(qa=>{ft(Hr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Tt).foregroundClass??""}`,"svelte-1ct56pd"),ne(Hr,"aria-label",qa),ne(Hr,"data-pr-identity",e(Tt).identity),ne(Hr,"data-pr-status",e(Tt).status)},[()=>re(e(Tt))]),u(Cn,Hr)};B(Aa,Cn=>{e(Tt).url?Cn(Fr):Cn(Ta,-1)})}u(Pr,pa)},$$slots:{default:!0}})}w(cr),S(Er=>ne(cr,"aria-label",Er),[()=>e(Tt).resource?.repository.provider==="gitlab"?g.workspace_hoverCard_mergeRequest_label():g.workspace_hoverCard_pullRequest_label()]),u(yt,cr)};B(Wr,yt=>{e(He)&&yt(Yr)})}var Xr=m(Wr,2);{var Pa=yt=>{var Tt=J2(),cr=P(Tt);{var yr=Pr=>{{let ua=d(()=>ic(p()));tv(Pr,{get date(){return e(ua)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},Er=d(()=>ic(p())>0);B(cr,Pr=>{e(Er)&&Pr(yr)})}w(Tt),S(()=>ft(Tt,1,`wc-secondary shrink-0 ${be()||ie()||y()&&X()?Pe()?"opacity-0":te()?"":ke()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),u(yt,Tt)};B(Xr,yt=>{M()&&yt(Pa)})}w(Tr);var Ua=m(Tr,2);{var io=yt=>{var Tt=X2(),cr=P(Tt);{var yr=Fr=>{{let Ta=d(()=>N()?"text-primary-ink":"text-muted-foreground"),Cn=d(()=>N()?g.workspace_card_unpin_ariaLabel():g.workspace_card_pin_ariaLabel()),Hr=d(()=>N()?g.workspace_card_unpin_tooltip():g.workspace_card_pin_tooltip());Ct(Fr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
298
298
  ${e(Ta)??""}`},onclick:hn=>{hn.stopPropagation(),ie()?.(hn)},get"aria-label"(){return e(Cn)},get title(){return e(Hr)},children:(hn,qa)=>{var Ra=Y2(),En=P(Ra);Mt(En,{get icon(){return tc},size:"xs"}),w(Ra),u(hn,Ra)},$$slots:{default:!0}})}};B(cr,Fr=>{ie()&&Fr(yr)})}var Er=m(cr,2);{var Pr=Fr=>{{let Ta=d(()=>g.workspace_card_markAsRead_label()),Cn=d(()=>g.workspace_card_markAsRead_label());Ct(Fr,{variant:"plain",size:"icon-xs",iconOnly:!0,class:"text-muted-foreground hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0",onclick:Hr=>{Hr.stopPropagation(),X()?.(Hr)},get"aria-label"(){return e(Ta)},get title(){return e(Cn)},children:(Hr,hn)=>{Mt(Hr,{get icon(){return nu},size:"xs"})},$$slots:{default:!0}})}};B(Er,Fr=>{y()&&X()&&Fr(Pr)})}var ua=m(Er,2);pn(ua,()=>be()??$o);var pa=m(ua,2);{var Aa=Fr=>{{let Ta=d(Rt),Cn=d(()=>g.workspace_progressCard_actions_ariaLabel());Ws(Fr,{get items(){return e(Ta)},get ariaLabel(){return e(Cn)},class:"flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:outline-none",get open(){return e(Xe)},set open(Hr){T(Xe,Hr,!0)}})}};B(pa,Fr=>{Ie()&&Fr(Aa)})}w(Tt),vr(Tt,Fr=>T(rt,Fr),()=>e(rt)),S(()=>ft(Tt,1,`wc-actions absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center gap-0.5 rounded-md bg-accent/95 px-0.5 focus-within:opacity-100
299
299
  ${ke()?"group-focus-within/wc:opacity-100":"group-focus-within:opacity-100"}
300
300
  ${Pe()?"opacity-100":te()?"opacity-0":ke()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),u(yt,Tt)};B(Ua,yt=>{(be()||Ie()||ie()||y()&&X())&&yt(io)})}w(At),vr(At,yt=>T(Le,yt),()=>e(Le)),Wn(At,(yt,Tt)=>ys?.(yt,Tt),()=>({id:Se()}));var Zr=m(At,2);{var nn=yt=>{Xb(yt,{get id(){return e(se)},get anchor(){return`--workspace-list-${p().id??""}`},position:"right",get anchorElement(){return e(Le)},class:"w-auto overflow-visible! rounded-lg border-0! bg-background! shadow-none!",onmouseenter:St,onmouseleave:bt,onfocusin:Nt,onfocusout:Gt,children:(Tt,cr)=>{var yr=Z2(),Er=P(yr);ny(Er,{get workspace(){return p()},get activeAgentIds(){return D()},onkeydown:et}),w(yr),vr(yr,Pr=>T(qt,Pr),()=>e(qt)),An("pointerenter",yr,St),An("pointerleave",yr,bt),Nr("focusin",yr,Nt),Nr("focusout",yr,Gt),u(Tt,yr)},$$slots:{default:!0}})};B(Zr,yt=>{e(_e)&&!te()&&Q()&&yt(nn)})}var gr=m(Zr,2);{var Qn=yt=>{const Tt=d(Rt);var cr=ht(),yr=Oe(cr);{var Er=Pr=>{{let ua=d(()=>e(it)?.x??0),pa=d(()=>e(it)?.y??0),Aa=d(()=>e(it)?.returnFocus),Fr=d(()=>g.workspace_progressCard_actions_ariaLabel());Pu(Pr,{get x(){return e(ua)},get y(){return e(pa)},get returnFocus(){return e(Aa)},get ariaLabel(){return e(Fr)},get items(){return e(Tt)},onClickOutside:vt})}};B(yr,Pr=>{e(Tt).length>0&&Pr(Er)})}u(yt,cr)};B(gr,yt=>{e(it)&&yt(Qn)})}S((yt,Tt,cr)=>{ft(At,1,yt,"svelte-1ct56pd"),ne(At,"data-pinned",N()),ne(At,"data-highlight-id",Se()),hr=Tn(At,"",hr,{"anchor-name":`--workspace-list-${p().id??""}`}),ne(ca,"id",`workspace-status-state-${p().id??""}`),x(da,e(q).accessibleName),ft($t,1,`wc-title type-body min-w-0 truncate font-normal!
@@ -1,4 +1,4 @@
1
- import{aZ as Ae,U as ke,Y as ae,b0 as Fe,V as Pe,a_ as ve,b as o,X as Vt,ay as bt,aW as Lt,B as Ce,r as Le,O as V,aV as Ee,a6 as De}from"./CKeCQLK7.js";import{l as ie}from"./IuL0I1Pz.js";var Et=(function(){var t=o(function(Y,r,l,x){for(l=l||{},x=Y.length;x--;l[Y[x]]=r);return l},"o"),n=[1,3],f=[1,4],d=[1,5],h=[1,6],p=[1,7],y=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],_=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],k=[2,36],u=[1,37],T=[1,36],q=[1,38],m=[1,35],b=[1,43],g=[1,41],A=[1,45],ht=[1,14],xt=[1,23],ft=[1,18],gt=[1,19],ct=[1,20],_t=[1,21],dt=[1,22],i=[1,24],zt=[1,25],It=[1,26],wt=[1,27],Bt=[1,28],Rt=[1,29],U=[1,32],Q=[1,33],F=[1,34],P=[1,39],v=[1,40],C=[1,42],L=[1,44],X=[1,63],H=[1,62],E=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Nt=[1,66],Wt=[1,67],Ut=[1,68],Qt=[1,69],Ot=[1,70],Xt=[1,71],Ht=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],Kt=[1,77],w=[4,5,6,7,8,9,10,11,12,13,14,15,18],K=[1,91],Z=[1,92],J=[1,93],$=[1,100],tt=[1,94],et=[1,97],it=[1,95],at=[1,96],nt=[1,98],st=[1,99],At=[1,103],Zt=[10,55,56,57],N=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],kt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(r,l,x,c,S,e,ut){var s=e.length-1;switch(S){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],c.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),c.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),c.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),c.setAccDescription(this.$);break;case 46:c.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:c.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:c.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:c.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:c.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:c.setXAxisLeftText(e[s-2]),c.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" ⟶ ",c.setXAxisLeftText(e[s-1]);break;case 53:c.setXAxisLeftText(e[s]);break;case 54:c.setYAxisBottomText(e[s-2]),c.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" ⟶ ",c.setYAxisBottomText(e[s-1]);break;case 56:c.setYAxisBottomText(e[s]);break;case 57:c.setQuadrant1Text(e[s]);break;case 58:c.setQuadrant2Text(e[s]);break;case 59:c.setQuadrant3Text(e[s]);break;case 60:c.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:f,55:d,56:h,57:p},{1:[3]},{18:n,26:8,27:2,28:f,55:d,56:h,57:p},{18:n,26:9,27:2,28:f,55:d,56:h,57:p},t(y,[2,33],{29:10}),t(_,[2,61]),t(_,[2,62]),t(_,[2,63]),{1:[2,30]},{1:[2,31]},t(a,k,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:u,5:T,10:q,12:m,13:b,14:g,15:A,18:ht,25:xt,35:ft,37:gt,39:ct,41:_t,42:dt,48:i,50:zt,51:It,52:wt,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(y,[2,34]),{27:46,55:d,56:h,57:p},t(a,[2,37]),t(a,k,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:u,5:T,10:q,12:m,13:b,14:g,15:A,18:ht,25:xt,35:ft,37:gt,39:ct,41:_t,42:dt,48:i,50:zt,51:It,52:wt,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(a,[2,45]),t(a,[2,46]),{18:[1,51]},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:52,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:53,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:54,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:55,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:56,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:57,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,44:[1,58],47:[1,59],58:61,59:60,63:F,64:P,65:v,66:C,67:L},t(E,[2,64]),t(E,[2,66]),t(E,[2,67]),t(E,[2,70]),t(E,[2,71]),t(E,[2,72]),t(E,[2,73]),t(E,[2,74]),t(E,[2,75]),t(E,[2,76]),t(E,[2,77]),t(E,[2,78]),t(E,[2,79]),t(E,[2,80]),t(E,[2,81]),t(y,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:65,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Xt,10:Ht,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,21:64},t(a,[2,53],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,49:[1,78],63:F,64:P,65:v,66:C,67:L}),t(a,[2,56],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,49:[1,79],63:F,64:P,65:v,66:C,67:L}),t(a,[2,57],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,58],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,59],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,60],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),{45:[1,80]},{44:[1,81]},t(E,[2,65]),t(E,[2,82]),t(E,[2,83]),t(E,[2,84]),{3:83,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Xt,10:Ht,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,18:[1,82]},t(w,[2,23]),t(w,[2,1]),t(w,[2,2]),t(w,[2,3]),t(w,[2,4]),t(w,[2,5]),t(w,[2,6]),t(w,[2,7]),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(w,[2,11]),t(w,[2,12]),t(a,[2,52],{58:31,43:84,4:u,5:T,10:q,12:m,13:b,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,55],{58:31,43:85,4:u,5:T,10:q,12:m,13:b,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),{46:[1,86]},{45:[1,87]},{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:st,22:89,23:88},t(w,[2,24]),t(a,[2,51],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,54],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,47],{22:89,16:90,23:101,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{46:[1,102]},t(a,[2,29],{10:At}),t(Zt,[2,27],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),t(N,[2,25]),t(N,[2,13]),t(N,[2,14]),t(N,[2,15]),t(N,[2,16]),t(N,[2,17]),t(N,[2,18]),t(N,[2,19]),t(N,[2,20]),t(N,[2,21]),t(N,[2,22]),t(a,[2,49],{10:At}),t(a,[2,48],{22:89,16:90,23:105,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:st,22:106},t(N,[2,26]),t(a,[2,50],{10:At}),t(Zt,[2,28],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(r,l){if(l.recoverable)this.trace(r);else{var x=new Error(r);throw x.hash=l,x}},"parseError"),parse:o(function(r){var l=this,x=[0],c=[],S=[null],e=[],ut=this.table,s="",yt=0,Jt=0,me=2,$t=1,be=e.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(j.yy[Ft]=this.yy[Ft]);D.setInput(r,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Pt=D.yylloc;e.push(Pt);var Se=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(R){x.length=x.length-2*R,S.length=S.length-R,e.length=e.length-R}o(_e,"popStack");function te(){var R;return R=c.pop()||D.lex()||$t,typeof R!="number"&&(R instanceof Array&&(c=R,R=c.pop()),R=l.symbols_[R]||R),R}o(te,"lex");for(var B,G,W,vt,rt={},Tt,M,ee,qt;;){if(G=x[x.length-1],this.defaultActions[G]?W=this.defaultActions[G]:((B===null||typeof B>"u")&&(B=te()),W=ut[G]&&ut[G][B]),typeof W>"u"||!W.length||!W[0]){var Ct="";qt=[];for(Tt in ut[G])this.terminals_[Tt]&&Tt>me&&qt.push("'"+this.terminals_[Tt]+"'");D.showPosition?Ct="Parse error on line "+(yt+1)+`:
1
+ import{aZ as Ae,U as ke,Y as ae,b0 as Fe,V as Pe,a_ as ve,b as o,X as Vt,ay as bt,aW as Lt,B as Ce,r as Le,O as V,aV as Ee,a6 as De}from"./Ct_rgdAq.js";import{l as ie}from"./Dy56tqY1.js";var Et=(function(){var t=o(function(Y,r,l,x){for(l=l||{},x=Y.length;x--;l[Y[x]]=r);return l},"o"),n=[1,3],f=[1,4],d=[1,5],h=[1,6],p=[1,7],y=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],_=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],k=[2,36],u=[1,37],T=[1,36],q=[1,38],m=[1,35],b=[1,43],g=[1,41],A=[1,45],ht=[1,14],xt=[1,23],ft=[1,18],gt=[1,19],ct=[1,20],_t=[1,21],dt=[1,22],i=[1,24],zt=[1,25],It=[1,26],wt=[1,27],Bt=[1,28],Rt=[1,29],U=[1,32],Q=[1,33],F=[1,34],P=[1,39],v=[1,40],C=[1,42],L=[1,44],X=[1,63],H=[1,62],E=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Nt=[1,66],Wt=[1,67],Ut=[1,68],Qt=[1,69],Ot=[1,70],Xt=[1,71],Ht=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],Kt=[1,77],w=[4,5,6,7,8,9,10,11,12,13,14,15,18],K=[1,91],Z=[1,92],J=[1,93],$=[1,100],tt=[1,94],et=[1,97],it=[1,95],at=[1,96],nt=[1,98],st=[1,99],At=[1,103],Zt=[10,55,56,57],N=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],kt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(r,l,x,c,S,e,ut){var s=e.length-1;switch(S){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],c.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),c.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),c.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),c.setAccDescription(this.$);break;case 46:c.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:c.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:c.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:c.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:c.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:c.setXAxisLeftText(e[s-2]),c.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" ⟶ ",c.setXAxisLeftText(e[s-1]);break;case 53:c.setXAxisLeftText(e[s]);break;case 54:c.setYAxisBottomText(e[s-2]),c.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" ⟶ ",c.setYAxisBottomText(e[s-1]);break;case 56:c.setYAxisBottomText(e[s]);break;case 57:c.setQuadrant1Text(e[s]);break;case 58:c.setQuadrant2Text(e[s]);break;case 59:c.setQuadrant3Text(e[s]);break;case 60:c.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:f,55:d,56:h,57:p},{1:[3]},{18:n,26:8,27:2,28:f,55:d,56:h,57:p},{18:n,26:9,27:2,28:f,55:d,56:h,57:p},t(y,[2,33],{29:10}),t(_,[2,61]),t(_,[2,62]),t(_,[2,63]),{1:[2,30]},{1:[2,31]},t(a,k,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:u,5:T,10:q,12:m,13:b,14:g,15:A,18:ht,25:xt,35:ft,37:gt,39:ct,41:_t,42:dt,48:i,50:zt,51:It,52:wt,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(y,[2,34]),{27:46,55:d,56:h,57:p},t(a,[2,37]),t(a,k,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:u,5:T,10:q,12:m,13:b,14:g,15:A,18:ht,25:xt,35:ft,37:gt,39:ct,41:_t,42:dt,48:i,50:zt,51:It,52:wt,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(a,[2,45]),t(a,[2,46]),{18:[1,51]},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:52,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:53,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:54,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:55,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:56,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:57,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,44:[1,58],47:[1,59],58:61,59:60,63:F,64:P,65:v,66:C,67:L},t(E,[2,64]),t(E,[2,66]),t(E,[2,67]),t(E,[2,70]),t(E,[2,71]),t(E,[2,72]),t(E,[2,73]),t(E,[2,74]),t(E,[2,75]),t(E,[2,76]),t(E,[2,77]),t(E,[2,78]),t(E,[2,79]),t(E,[2,80]),t(E,[2,81]),t(y,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:65,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Xt,10:Ht,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,21:64},t(a,[2,53],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,49:[1,78],63:F,64:P,65:v,66:C,67:L}),t(a,[2,56],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,49:[1,79],63:F,64:P,65:v,66:C,67:L}),t(a,[2,57],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,58],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,59],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,60],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),{45:[1,80]},{44:[1,81]},t(E,[2,65]),t(E,[2,82]),t(E,[2,83]),t(E,[2,84]),{3:83,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Xt,10:Ht,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,18:[1,82]},t(w,[2,23]),t(w,[2,1]),t(w,[2,2]),t(w,[2,3]),t(w,[2,4]),t(w,[2,5]),t(w,[2,6]),t(w,[2,7]),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(w,[2,11]),t(w,[2,12]),t(a,[2,52],{58:31,43:84,4:u,5:T,10:q,12:m,13:b,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,55],{58:31,43:85,4:u,5:T,10:q,12:m,13:b,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),{46:[1,86]},{45:[1,87]},{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:st,22:89,23:88},t(w,[2,24]),t(a,[2,51],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,54],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,47],{22:89,16:90,23:101,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{46:[1,102]},t(a,[2,29],{10:At}),t(Zt,[2,27],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),t(N,[2,25]),t(N,[2,13]),t(N,[2,14]),t(N,[2,15]),t(N,[2,16]),t(N,[2,17]),t(N,[2,18]),t(N,[2,19]),t(N,[2,20]),t(N,[2,21]),t(N,[2,22]),t(a,[2,49],{10:At}),t(a,[2,48],{22:89,16:90,23:105,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:st,22:106},t(N,[2,26]),t(a,[2,50],{10:At}),t(Zt,[2,28],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(r,l){if(l.recoverable)this.trace(r);else{var x=new Error(r);throw x.hash=l,x}},"parseError"),parse:o(function(r){var l=this,x=[0],c=[],S=[null],e=[],ut=this.table,s="",yt=0,Jt=0,me=2,$t=1,be=e.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(j.yy[Ft]=this.yy[Ft]);D.setInput(r,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Pt=D.yylloc;e.push(Pt);var Se=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(R){x.length=x.length-2*R,S.length=S.length-R,e.length=e.length-R}o(_e,"popStack");function te(){var R;return R=c.pop()||D.lex()||$t,typeof R!="number"&&(R instanceof Array&&(c=R,R=c.pop()),R=l.symbols_[R]||R),R}o(te,"lex");for(var B,G,W,vt,rt={},Tt,M,ee,qt;;){if(G=x[x.length-1],this.defaultActions[G]?W=this.defaultActions[G]:((B===null||typeof B>"u")&&(B=te()),W=ut[G]&&ut[G][B]),typeof W>"u"||!W.length||!W[0]){var Ct="";qt=[];for(Tt in ut[G])this.terminals_[Tt]&&Tt>me&&qt.push("'"+this.terminals_[Tt]+"'");D.showPosition?Ct="Parse error on line "+(yt+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+qt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Ct="Parse error on line "+(yt+1)+": Unexpected "+(B==$t?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Ct,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:Pt,expected:qt})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+B);switch(W[0]){case 1:x.push(B),S.push(D.yytext),e.push(D.yylloc),x.push(W[1]),B=null,Jt=D.yyleng,s=D.yytext,yt=D.yylineno,Pt=D.yylloc;break;case 2:if(M=this.productions_[W[1]][1],rt.$=S[S.length-M],rt._$={first_line:e[e.length-(M||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(M||1)].first_column,last_column:e[e.length-1].last_column},Se&&(rt._$.range=[e[e.length-(M||1)].range[0],e[e.length-1].range[1]]),vt=this.performAction.apply(rt,[s,Jt,yt,j.yy,W[1],S,e].concat(be)),typeof vt<"u")return vt;M&&(x=x.slice(0,-1*M*2),S=S.slice(0,-1*M),e=e.slice(0,-1*M)),x.push(this.productions_[W[1]][0]),S.push(rt.$),e.push(rt._$),ee=ut[x[x.length-2]][x[x.length-1]],x.push(ee);break;case 3:return!0}}return!0},"parse")},qe=(function(){var Y={EOF:1,parseError:o(function(l,x){if(this.yy.parser)this.yy.parser.parseError(l,x);else throw new Error(l)},"parseError"),setInput:o(function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:o(function(r){var l=r.length,x=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===c.length?this.yylloc.first_column:0)+c[c.length-x.length].length-x[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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:o(function(r){this.unput(this.match.slice(r))},"less"),pastInput:o(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/OB5ewpnK.js","/app/immutable/chunks/DbiKWuR4.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/Bsc0MUZ8.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BPC0r6G_.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/BE6pBsfS.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/C_AJrH9w.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/2DHIVxXG.js","/app/immutable/chunks/C62iyW1M.js","/app/immutable/chunks/Bp_sc6EE.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/BC7iBUJe.js","/app/immutable/chunks/Dx5CymMc.js","/app/immutable/chunks/YMOYZH7W.js","/app/immutable/chunks/DmgkktjA.js","/app/immutable/chunks/D2nneXpl.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/Do0OWbUO.js","/app/immutable/chunks/0grSpTM4.js","/app/immutable/chunks/DE1LlyuA.js","/app/immutable/chunks/CukCNpTl.js","/app/immutable/chunks/jTQhuGpf.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/Ch7xiQpT.js","/app/immutable/chunks/V3w7GQAA.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/DF8CKNhY.js","/app/immutable/chunks/DAg3vCp0.js","/app/immutable/chunks/Dh33f1wg.js","/app/immutable/chunks/DpIlWkp6.js","/app/immutable/chunks/CbGpz2N9.js","/app/immutable/chunks/r4El6Amm.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/Br6jSaFv.js"])))=>i.map(i=>d[i]);
2
- import{_ as i}from"./DbiKWuR4.js";import{c as m}from"./ChTqQfQN.js";import{t as g}from"./DKwAaLwd.js";function d(){return typeof window<"u"&&window.location.pathname.startsWith("/hud")}function l(){return typeof window>"u"?null:g(window.location.pathname)}function h(){return l()!==null}let w=0;function y(){w+=1}function T(){return w}const v=m("Navigation"),_="settings-previous-path";function s(t){return/^\/settings(?:[/?#]|$)/.test(t)}async function E(t,e={}){if(d()||h()||typeof window<"u"&&/^\/dock(?:\/|$)/.test(window.location.pathname)){v.debug("Ignoring navigation in auxiliary window",{route:t});return}const c=e.assistantContent||t.startsWith("intent://")||/^https?:\/\//.test(t);if(c||y(),c){const{showAssistantContent:n}=await i(async()=>{const{showAssistantContent:o}=await import("./OB5ewpnK.js");return{showAssistantContent:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url);if(await n(t,{preserveFocus:!0,background:e.assistantContent===!0,agentId:e.assistantAgentId})){if(e.assistantContent)return;const{openPanel:o}=await i(async()=>{const{openPanel:a}=await import("./Bsc0MUZ8.js").then(r=>r.I$);return{openPanel:a}},__vite__mapDeps([3,4,2,5,6,7,8,1,9,10,11]),import.meta.url),{store:f}=await i(async()=>{const{store:a}=await import("./r4El6Amm.js");return{store:a}},__vite__mapDeps([45,3,4,2,5,6,7,8,1,9,10,11,46,47]),import.meta.url);f.dispatch(o("chief"));const{goto:p}=await i(async()=>{const{goto:a}=await import("./Br6jSaFv.js").then(r=>r.n);return{goto:a}},__vite__mapDeps([48,2]),import.meta.url);window.location.pathname!=="/"&&await p("/");return}}if(s(t)&&typeof window<"u"&&typeof sessionStorage<"u"&&!s(window.location.pathname)){const n=new URL(window.location.href);sessionStorage.setItem(_,n.pathname+n.search+n.hash)}const{goto:u}=await i(async()=>{const{goto:n}=await import("./Br6jSaFv.js").then(o=>o.n);return{goto:n}},__vite__mapDeps([48,2]),import.meta.url);return e.state?u(t,{state:e.state}):u(t)}const b=Object.freeze(Object.defineProperty({__proto__:null,SETTINGS_PREV_PATH_KEY:_,isHudWindowRenderer:d,isSettingsRoute:s,navigateToRoute:E},Symbol.toStringTag,{value:"Module"}));export{_ as S,s as a,y as b,l as c,h as d,T as e,b as f,d as i,E as n};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/B1VDcrDv.js","/app/immutable/chunks/DbiKWuR4.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/Bsc0MUZ8.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BPC0r6G_.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/BE6pBsfS.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/C_AJrH9w.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/2DHIVxXG.js","/app/immutable/chunks/C62iyW1M.js","/app/immutable/chunks/Bp_sc6EE.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/BC7iBUJe.js","/app/immutable/chunks/D4Z0p17R.js","/app/immutable/chunks/YMOYZH7W.js","/app/immutable/chunks/DmgkktjA.js","/app/immutable/chunks/D2nneXpl.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/Do0OWbUO.js","/app/immutable/chunks/0grSpTM4.js","/app/immutable/chunks/DE1LlyuA.js","/app/immutable/chunks/CukCNpTl.js","/app/immutable/chunks/jTQhuGpf.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/Ch7xiQpT.js","/app/immutable/chunks/V3w7GQAA.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/DF8CKNhY.js","/app/immutable/chunks/DAg3vCp0.js","/app/immutable/chunks/Dh33f1wg.js","/app/immutable/chunks/DpIlWkp6.js","/app/immutable/chunks/CbGpz2N9.js","/app/immutable/chunks/r4El6Amm.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/CV9GwdOX.js"])))=>i.map(i=>d[i]);
2
+ import{_ as i}from"./DbiKWuR4.js";import{c as m}from"./ChTqQfQN.js";import{t as g}from"./DKwAaLwd.js";function d(){return typeof window<"u"&&window.location.pathname.startsWith("/hud")}function l(){return typeof window>"u"?null:g(window.location.pathname)}function h(){return l()!==null}let w=0;function y(){w+=1}function T(){return w}const v=m("Navigation"),_="settings-previous-path";function s(t){return/^\/settings(?:[/?#]|$)/.test(t)}async function E(t,e={}){if(d()||h()||typeof window<"u"&&/^\/dock(?:\/|$)/.test(window.location.pathname)){v.debug("Ignoring navigation in auxiliary window",{route:t});return}const c=e.assistantContent||t.startsWith("intent://")||/^https?:\/\//.test(t);if(c||y(),c){const{showAssistantContent:n}=await i(async()=>{const{showAssistantContent:o}=await import("./B1VDcrDv.js");return{showAssistantContent:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url);if(await n(t,{preserveFocus:!0,background:e.assistantContent===!0,agentId:e.assistantAgentId})){if(e.assistantContent)return;const{openPanel:o}=await i(async()=>{const{openPanel:a}=await import("./Bsc0MUZ8.js").then(r=>r.I$);return{openPanel:a}},__vite__mapDeps([3,4,2,5,6,7,8,1,9,10,11]),import.meta.url),{store:f}=await i(async()=>{const{store:a}=await import("./r4El6Amm.js");return{store:a}},__vite__mapDeps([45,3,4,2,5,6,7,8,1,9,10,11,46,47]),import.meta.url);f.dispatch(o("chief"));const{goto:p}=await i(async()=>{const{goto:a}=await import("./CV9GwdOX.js").then(r=>r.n);return{goto:a}},__vite__mapDeps([48,2]),import.meta.url);window.location.pathname!=="/"&&await p("/");return}}if(s(t)&&typeof window<"u"&&typeof sessionStorage<"u"&&!s(window.location.pathname)){const n=new URL(window.location.href);sessionStorage.setItem(_,n.pathname+n.search+n.hash)}const{goto:u}=await i(async()=>{const{goto:n}=await import("./CV9GwdOX.js").then(o=>o.n);return{goto:n}},__vite__mapDeps([48,2]),import.meta.url);return e.state?u(t,{state:e.state}):u(t)}const b=Object.freeze(Object.defineProperty({__proto__:null,SETTINGS_PREV_PATH_KEY:_,isHudWindowRenderer:d,isSettingsRoute:s,navigateToRoute:E},Symbol.toStringTag,{value:"Module"}));export{_ as S,s as a,y as b,l as c,h as d,T as e,b as f,d as i,E as n};
@@ -1 +1 @@
1
- import{t as $,bo as v,bw as w,b as A,br as P,bs as B,bq as W,bp as R}from"./DbiKWuR4.js";import{bs as h,b_ as F,aD as p,W as f,bA as M,bn as y,c9 as x,aA as m,aB as g,bV as k,br as q,ca as E,bH as C,a5 as H,bl as L,bS as N,bO as U,ay as V}from"./3SdAC2_C.js";import{f as Y}from"./D2nneXpl.js";import{Y as j}from"./2DHIVxXG.js";import{F as G,cF as J}from"./Ch7xiQpT.js";import{ay as K,aB as Q}from"./CpbxMIKC.js";import{f as X}from"./BwBi-tSP.js";import{g as Z,i as ee}from"./Do0OWbUO.js";import{s as te,g as se}from"./Bp_sc6EE.js";import{a as z}from"./B9jFsjl6.js";var ae=g('<span class="svelte-dywwvd"></span>'),re=g('<span class="waveform svelte-dywwvd" aria-hidden="true" data-dictation-waveform=""></span>');function T(c,e){if(new.target)return $({component:T,...c});h(e,!0);let n=v(e,"levels",7);const r=x(()=>{const t=n().slice(-z).map(a=>Number.isFinite(a)?Math.min(1,Math.max(0,a)):0);return[...new Array(z-t.length).fill(0),...t]});var l={get levels(){return n()},set levels(t){n(t),m()},$set:w,$on:(t,a)=>A(e,t,a)},o=re();return Z(o,21,()=>p(r),ee,(t,a)=>{var i=ae();let d;F(()=>{te(i,"data-level",p(a)),d=se(i,"",d,{height:`${2+p(a)*12}px`})}),f(t,i)}),M(o),f(c,o),y(l)}var ne=g('<span class="dictation-meter svelte-1oz1rct"><span class="elapsed svelte-1oz1rct" data-dictation-elapsed=""> </span> <!></span>');function I(c,e){if(new.target)return $({component:I,...c});h(e,!0);let n=v(e,"levels",7),r=v(e,"startedAt",7,null),l=v(e,"elapsed",7),o=k(q(Date.now()));E(()=>{if(!(l()!==void 0||r()===null))return C(o,Date.now(),!0),j.subscribe(new Date(r()),()=>C(o,Date.now(),!0),"second")});const t=x(()=>l()??X(r()===null?0:p(o)-r()));var a={get levels(){return n()},set levels(s){n(s),m()},get startedAt(){return r()},set startedAt(s=null){r(s),m()},get elapsed(){return l()},set elapsed(s){l(s),m()},$set:w,$on:(s,u)=>A(e,s,u)},i=ne(),d=H(i),_=L(d,!0),b=N(d,2);return T(b,{get levels(){return n()}}),M(i),F(()=>U(_,p(t))),f(c,i),y(a)}var le=new Set(["$$slots","$$events","$$legacy","class"]),oe=g("<!> <!>",1);function ie(c,e){if(new.target)return $({component:ie,...c});h(e,!0);const n=()=>B(i,"$levels$",l),r=()=>B(d,"$startedAt$",l),[l,o]=W();let t=v(e,"class",7,""),a=R(e,le);const i=K(),d=Q();var _={get class(){return t()},set class(s=""){t(s),m()},$set:w,$on:(s,u)=>A(e,s,u)};{let s=x(()=>`dictation-stop-pill ${t()}`.trim());Y(c,P({variant:"ghost",size:"sm",get class(){return p(s)},"aria-pressed":"true"},()=>a,{children:(u,ce)=>{var D=oe(),S=V(D);G(S,{get icon(){return J},size:14});var O=N(S,2);I(O,{get levels(){return n()},get startedAt(){return r()}}),f(u,D)},$$slots:{default:!0}}))}var b=y(_);return o(),b}export{I as D,ie as a};
1
+ import{t as $,bo as v,bw as w,b as A,br as P,bs as B,bq as W,bp as R}from"./DbiKWuR4.js";import{bs as h,b_ as F,aD as p,W as f,bA as M,bn as y,c9 as x,aA as m,aB as g,bV as k,br as q,ca as E,bH as C,a5 as H,bl as L,bS as N,bO as U,ay as V}from"./3SdAC2_C.js";import{f as Y}from"./D2nneXpl.js";import{Y as j}from"./2DHIVxXG.js";import{F as G,cF as J}from"./Ch7xiQpT.js";import{ay as K,aB as Q}from"./CpbxMIKC.js";import{f as X}from"./BwBi-tSP.js";import{g as Z,i as ee}from"./Do0OWbUO.js";import{s as te,g as se}from"./Bp_sc6EE.js";import{a as z}from"./D12yZko9.js";var ae=g('<span class="svelte-dywwvd"></span>'),re=g('<span class="waveform svelte-dywwvd" aria-hidden="true" data-dictation-waveform=""></span>');function T(c,e){if(new.target)return $({component:T,...c});h(e,!0);let n=v(e,"levels",7);const r=x(()=>{const t=n().slice(-z).map(a=>Number.isFinite(a)?Math.min(1,Math.max(0,a)):0);return[...new Array(z-t.length).fill(0),...t]});var l={get levels(){return n()},set levels(t){n(t),m()},$set:w,$on:(t,a)=>A(e,t,a)},o=re();return Z(o,21,()=>p(r),ee,(t,a)=>{var i=ae();let d;F(()=>{te(i,"data-level",p(a)),d=se(i,"",d,{height:`${2+p(a)*12}px`})}),f(t,i)}),M(o),f(c,o),y(l)}var ne=g('<span class="dictation-meter svelte-1oz1rct"><span class="elapsed svelte-1oz1rct" data-dictation-elapsed=""> </span> <!></span>');function I(c,e){if(new.target)return $({component:I,...c});h(e,!0);let n=v(e,"levels",7),r=v(e,"startedAt",7,null),l=v(e,"elapsed",7),o=k(q(Date.now()));E(()=>{if(!(l()!==void 0||r()===null))return C(o,Date.now(),!0),j.subscribe(new Date(r()),()=>C(o,Date.now(),!0),"second")});const t=x(()=>l()??X(r()===null?0:p(o)-r()));var a={get levels(){return n()},set levels(s){n(s),m()},get startedAt(){return r()},set startedAt(s=null){r(s),m()},get elapsed(){return l()},set elapsed(s){l(s),m()},$set:w,$on:(s,u)=>A(e,s,u)},i=ne(),d=H(i),_=L(d,!0),b=N(d,2);return T(b,{get levels(){return n()}}),M(i),F(()=>U(_,p(t))),f(c,i),y(a)}var le=new Set(["$$slots","$$events","$$legacy","class"]),oe=g("<!> <!>",1);function ie(c,e){if(new.target)return $({component:ie,...c});h(e,!0);const n=()=>B(i,"$levels$",l),r=()=>B(d,"$startedAt$",l),[l,o]=W();let t=v(e,"class",7,""),a=R(e,le);const i=K(),d=Q();var _={get class(){return t()},set class(s=""){t(s),m()},$set:w,$on:(s,u)=>A(e,s,u)};{let s=x(()=>`dictation-stop-pill ${t()}`.trim());Y(c,P({variant:"ghost",size:"sm",get class(){return p(s)},"aria-pressed":"true"},()=>a,{children:(u,ce)=>{var D=oe(),S=V(D);G(S,{get icon(){return J},size:14});var O=N(S,2);I(O,{get levels(){return n()},get startedAt(){return r()}}),f(u,D)},$$slots:{default:!0}}))}var b=y(_);return o(),b}export{I as D,ie as a};
@@ -1,4 +1,4 @@
1
- import{g as k1}from"./CdveyQgB.js";import{g as E1}from"./bNIg57pH.js";import{s as C1}from"./CzqRYWZK.js";import{b as k,a$ as t1,ay as oe,X as Ce,a1 as S1,aP as x1,bh as Gt,a_ as T1,aZ as D1,b0 as _1,V as v1,U as F1,Y as V1,z as I1,ax as s1,J as i1,as as L1,$ as Rt,aW as Ot,r as B1,N as M1,am as y1,aU as w1,ab as N1,x as R1,aT as O1,p as P1}from"./CKeCQLK7.js";import{c as G1}from"./BmPW_VqR.js";import{aR as U1}from"./Cs3Xe419.js";var tt={SHAPE_UNSUPPORTED:"SHAPE_UNSUPPORTED",SHAPE_REMOVED:"SHAPE_REMOVED",EDGE_OPERATOR_UNSUPPORTED:"EDGE_OPERATOR_UNSUPPORTED",REFERENCE_EDGE_LABEL_REJECTED:"REFERENCE_EDGE_LABEL_REJECTED",CONNECTOR_REF_UNRESOLVED:"CONNECTOR_REF_UNRESOLVED",CONNECTOR_REF_NOT_A_CONNECTOR:"CONNECTOR_REF_NOT_A_CONNECTOR",METADATA_KEY_MISAPPLIED:"METADATA_KEY_MISAPPLIED",DUPLICATE_ID_NODE:"DUPLICATE_ID_NODE",RESERVED_SYNTHETIC_ID:"RESERVED_SYNTHETIC_ID",CONTAINMENT_VIOLATION:"CONTAINMENT_VIOLATION",EDGE_SEMANTIC_CONTRADICTION:"EDGE_SEMANTIC_CONTRADICTION",FLOW_NO_INPUT:"FLOW_NO_INPUT"},j1=new Set([tt.SHAPE_UNSUPPORTED,tt.SHAPE_REMOVED,tt.CONTAINMENT_VIOLATION]);new Set(Object.values(tt).filter(s=>!j1.has(s)));var z1=new Map([["task","roundedRect"],["tool","subroutine"],["input","lean-right"],["lean_right","lean-right"],["decision","diamond"],["refdoc","lin-doc"],["action","hexagon"],["round","rect"]]),W1=new Set(["doc","stadium","terminal","circle","trapezoid","inv_trapezoid","inv-trapezoid","doublecircle","double-circle","typeDeclaration","procs","lean_left","lean-left","in-out","cylinder","ellipse","odd","tag-rect","tagged-rectangle","delay","half-rounded-rectangle","lin-rect","lined-rectangle","win-pane","window-pane","curv-trap","curved-trapezoid"]),K1=new Set(["roundedRect","subroutine","subprocess","subproc","framed-rectangle","lean-right","diamond","lin-doc","lined-document","hexagon","hex","connector","collapsedGroup"]),$e="roundedRect";function et(s){return s&&(z1.get(s)??s)}k(et,"resolveShapeAlias");function r1(s,i){for(const n of s)if(!n.isGroup){if((!n.shape||n.shape==="squareRect"||n.shape==="rect")&&(n.shape=$e),W1.has(n.shape)){const r=`shape "${n.shape}" was removed in v0.8.1, using "${$e}"`;i?.emitError?i.emitError("SHAPE_REMOVED",r,{nodeId:n.id}):oe.warn(`agentflow: ${r}`),n.shape=$e;continue}if(!K1.has(n.shape)){const r=`shape "${n.shape}" is not supported, using "${$e}"`;i?.emitWarning?i.emitWarning("SHAPE_UNSUPPORTED",r,{nodeId:n.id}):oe.warn(`agentflow: ${r}`),n.shape=$e}}}k(r1,"normaliseNodeShapes");var Lt=new Map([["tool",0],["task",1],["decision",2],["input",3],["refdoc",4],["connector",5],["action",6]]),a1=Lt.size,o1=k(s=>`af-kind-${s}`,"kindClass"),H1=[...Lt.keys()],u1=k(s=>Math.max(1,s-a1),"containerSlotCount"),l1=k((s,i)=>{const n=a1+s%u1(i);return i>0?n%i:n},"containerSlot");function c1(s,i,n){const r=Ce().themeVariables?.borderColorArray,u=Array.isArray(r)?r.length:0;let l=n.size;for(const c of s??[]){if(c.isGroup||c.shape==="collapsedGroup"){const h=n.get(String(c.id))??l++;c.colorIndex=l1(h,u);continue}const a=i(String(c.id));a&&Lt.has(a)&&(c.cssClasses=`${c.cssClasses??""} ${o1(a)}`.replace(/\s+/g," ").trim())}}k(c1,"assignColorSlots");var n1="agentflow-",Pt=new Set(["shape","view","icon","img","form","pos","w","h","class","style","labelType"]),Y1=new Set(["subroutine","subprocess","subproc","framed-rectangle","tool"]),q1={flow:"flowGroup"};function It(s){if(Array.isArray(s))return s.map(n=>It(n));if(s===null||typeof s!="object")return s;const i={};for(const n of Object.keys(s))n==="__proto__"||n==="constructor"||n==="prototype"||(i[n]=It(s[n]));return i}k(It,"stripPrototypeKeys");function d1(s){let i=!1,n=!1,r=0,u;const l=[];for(const c of s.split(`
1
+ import{g as k1}from"./CYu_OshD.js";import{g as E1}from"./Cr-n2JyX.js";import{s as C1}from"./BRsoPjvI.js";import{b as k,a$ as t1,ay as oe,X as Ce,a1 as S1,aP as x1,bh as Gt,a_ as T1,aZ as D1,b0 as _1,V as v1,U as F1,Y as V1,z as I1,ax as s1,J as i1,as as L1,$ as Rt,aW as Ot,r as B1,N as M1,am as y1,aU as w1,ab as N1,x as R1,aT as O1,p as P1}from"./Ct_rgdAq.js";import{c as G1}from"./DlQBj875.js";import{aR as U1}from"./CGU5lxic.js";var tt={SHAPE_UNSUPPORTED:"SHAPE_UNSUPPORTED",SHAPE_REMOVED:"SHAPE_REMOVED",EDGE_OPERATOR_UNSUPPORTED:"EDGE_OPERATOR_UNSUPPORTED",REFERENCE_EDGE_LABEL_REJECTED:"REFERENCE_EDGE_LABEL_REJECTED",CONNECTOR_REF_UNRESOLVED:"CONNECTOR_REF_UNRESOLVED",CONNECTOR_REF_NOT_A_CONNECTOR:"CONNECTOR_REF_NOT_A_CONNECTOR",METADATA_KEY_MISAPPLIED:"METADATA_KEY_MISAPPLIED",DUPLICATE_ID_NODE:"DUPLICATE_ID_NODE",RESERVED_SYNTHETIC_ID:"RESERVED_SYNTHETIC_ID",CONTAINMENT_VIOLATION:"CONTAINMENT_VIOLATION",EDGE_SEMANTIC_CONTRADICTION:"EDGE_SEMANTIC_CONTRADICTION",FLOW_NO_INPUT:"FLOW_NO_INPUT"},j1=new Set([tt.SHAPE_UNSUPPORTED,tt.SHAPE_REMOVED,tt.CONTAINMENT_VIOLATION]);new Set(Object.values(tt).filter(s=>!j1.has(s)));var z1=new Map([["task","roundedRect"],["tool","subroutine"],["input","lean-right"],["lean_right","lean-right"],["decision","diamond"],["refdoc","lin-doc"],["action","hexagon"],["round","rect"]]),W1=new Set(["doc","stadium","terminal","circle","trapezoid","inv_trapezoid","inv-trapezoid","doublecircle","double-circle","typeDeclaration","procs","lean_left","lean-left","in-out","cylinder","ellipse","odd","tag-rect","tagged-rectangle","delay","half-rounded-rectangle","lin-rect","lined-rectangle","win-pane","window-pane","curv-trap","curved-trapezoid"]),K1=new Set(["roundedRect","subroutine","subprocess","subproc","framed-rectangle","lean-right","diamond","lin-doc","lined-document","hexagon","hex","connector","collapsedGroup"]),$e="roundedRect";function et(s){return s&&(z1.get(s)??s)}k(et,"resolveShapeAlias");function r1(s,i){for(const n of s)if(!n.isGroup){if((!n.shape||n.shape==="squareRect"||n.shape==="rect")&&(n.shape=$e),W1.has(n.shape)){const r=`shape "${n.shape}" was removed in v0.8.1, using "${$e}"`;i?.emitError?i.emitError("SHAPE_REMOVED",r,{nodeId:n.id}):oe.warn(`agentflow: ${r}`),n.shape=$e;continue}if(!K1.has(n.shape)){const r=`shape "${n.shape}" is not supported, using "${$e}"`;i?.emitWarning?i.emitWarning("SHAPE_UNSUPPORTED",r,{nodeId:n.id}):oe.warn(`agentflow: ${r}`),n.shape=$e}}}k(r1,"normaliseNodeShapes");var Lt=new Map([["tool",0],["task",1],["decision",2],["input",3],["refdoc",4],["connector",5],["action",6]]),a1=Lt.size,o1=k(s=>`af-kind-${s}`,"kindClass"),H1=[...Lt.keys()],u1=k(s=>Math.max(1,s-a1),"containerSlotCount"),l1=k((s,i)=>{const n=a1+s%u1(i);return i>0?n%i:n},"containerSlot");function c1(s,i,n){const r=Ce().themeVariables?.borderColorArray,u=Array.isArray(r)?r.length:0;let l=n.size;for(const c of s??[]){if(c.isGroup||c.shape==="collapsedGroup"){const h=n.get(String(c.id))??l++;c.colorIndex=l1(h,u);continue}const a=i(String(c.id));a&&Lt.has(a)&&(c.cssClasses=`${c.cssClasses??""} ${o1(a)}`.replace(/\s+/g," ").trim())}}k(c1,"assignColorSlots");var n1="agentflow-",Pt=new Set(["shape","view","icon","img","form","pos","w","h","class","style","labelType"]),Y1=new Set(["subroutine","subprocess","subproc","framed-rectangle","tool"]),q1={flow:"flowGroup"};function It(s){if(Array.isArray(s))return s.map(n=>It(n));if(s===null||typeof s!="object")return s;const i={};for(const n of Object.keys(s))n==="__proto__"||n==="constructor"||n==="prototype"||(i[n]=It(s[n]));return i}k(It,"stripPrototypeKeys");function d1(s){let i=!1,n=!1,r=0,u;const l=[];for(const c of s.split(`
2
2
  `)){if(u!==void 0){const p=c.length-c.trimStart().length;if(c.trim()===""||p>u){l.push(c);continue}u=void 0}let a=-1;for(let p=0;p<c.length;p++){const A=c[p];if(n)A==="\\"?p++:A==='"'&&(n=!1);else if(i)A==="'"&&(i=!1);else if(A==='"')n=!0;else if(A==="'")i=!0;else if(A==="#"&&(p===0||c[p-1]===" "||c[p-1]===" ")){a=p;break}else A==="["||A==="{"?r++:(A==="]"||A==="}")&&(r=Math.max(0,r-1))}if(i||n||r>0){l.push(c);continue}const h=a>=0?c.slice(0,a):c,g=a>=0?c.slice(a):"";if(/:\s*[>|][\d+-]*\s*$/.test(h)){u=c.length-c.trimStart().length,l.push(c);continue}l.push(h.replace(/,([\t ]*)$/,"$1")+g)}return l.join(`
3
3
  `)}k(d1,"stripLineTrailingCommas");var Ze,X1=(Ze=class{constructor(){this.vertexCounter=0,this.config=Ce(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.diagramId="",this.preserveCommentsWhenParsing=!0,this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,this.funs=[],this.setAccTitle=T1,this.setAccDescription=D1,this.setDiagramTitle=_1,this.getAccTitle=v1,this.getAccDescription=F1,this.getDiagramTitle=V1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addGlobal=this.addGlobal.bind(this),this.addConnector=this.addConnector.bind(this),this.addConnectorMapping=this.addConnectorMapping.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.setFrontmatterLineOffset=this.setFrontmatterLineOffset.bind(this),this.addVertexMapping=this.addVertexMapping.bind(this),this.extendVertexMapping=this.extendVertexMapping.bind(this),this.addEdgeMapping=this.addEdgeMapping.bind(this),this.addSubgraphMapping=this.addSubgraphMapping.bind(this),this.emitWarning=this.emitWarning.bind(this),this.emitError=this.emitError.bind(this),this.getDiagnostics=this.getDiagnostics.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return I1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const n of this.vertices.values())if(n.id===i)return this.diagramId?`${this.diagramId}-${n.domId}`:n.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,n,r,u,l,c,a={},h,g){if(!i||i.trim().length===0)return;let p;if(h!==void 0){let m;h.includes(`
4
4
  `)?m=h+`