@intent-hq/web 2.365.1 → 2.365.2

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 (143) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{DT3Hhppd.js → -FvGxaYP.js} +1 -1
  3. package/web/app/immutable/chunks/{Dno6xKfG.js → 0B7Q8v9n.js} +1 -1
  4. package/web/app/immutable/chunks/{CJYn86Zh.js → 0xS-75mY.js} +1 -1
  5. package/web/app/immutable/chunks/{D6dBEmMZ.js → 4AWS92de.js} +3 -3
  6. package/web/app/immutable/chunks/{DltL77xh.js → 4b6Kq3tJ.js} +3 -3
  7. package/web/app/immutable/chunks/{C65VWWrO.js → 5udn86t0.js} +1 -1
  8. package/web/app/immutable/chunks/{hcNIFtJ6.js → 6RNYeQft.js} +1 -1
  9. package/web/app/immutable/chunks/{Dg4msq0S.js → A75uzxLd.js} +3 -3
  10. package/web/app/immutable/chunks/{DHP7uaTl.js → A8wPsq0F.js} +53 -53
  11. package/web/app/immutable/chunks/{DTJ583wE.js → APmstwP5.js} +1 -1
  12. package/web/app/immutable/chunks/{CSHq_biu.js → B02VOKO8.js} +2 -2
  13. package/web/app/immutable/chunks/{DBKSlWdm.js → B1T1jKgP.js} +6 -6
  14. package/web/app/immutable/chunks/{dFXYIobT.js → B3jO_63a.js} +1 -1
  15. package/web/app/immutable/chunks/{BmC4tEjN.js → BD3MwpxF.js} +1 -1
  16. package/web/app/immutable/chunks/{DdVKhlSE.js → BKHIBTx4.js} +1 -1
  17. package/web/app/immutable/chunks/{M5LF5FKY.js → BKqUtwx6.js} +1 -1
  18. package/web/app/immutable/chunks/{DXO8eQ8m.js → BLCoN16l.js} +1 -1
  19. package/web/app/immutable/chunks/{pGhoz8FU.js → BM1emzRr.js} +1 -1
  20. package/web/app/immutable/chunks/{EXklmDak.js → BOrmWowX.js} +1 -1
  21. package/web/app/immutable/chunks/{2AhpRF3T.js → BPIybOms.js} +1 -1
  22. package/web/app/immutable/chunks/{BDEbFHGY.js → BPN-Likg.js} +3 -3
  23. package/web/app/immutable/chunks/{bOJ0A0T0.js → BUEceROh.js} +2 -2
  24. package/web/app/immutable/chunks/{DkA8rA6d.js → BUIAIc_O.js} +1 -1
  25. package/web/app/immutable/chunks/{HaIAX7Y7.js → BVA6rkcP.js} +4 -4
  26. package/web/app/immutable/chunks/{DBRi5-39.js → BWAoi_nX.js} +1 -1
  27. package/web/app/immutable/chunks/{CPqT58jI.js → BYi1LHpB.js} +1 -1
  28. package/web/app/immutable/chunks/{VPexQKGs.js → B_Uo3LjB.js} +1 -1
  29. package/web/app/immutable/chunks/{DkjvcUsP.js → BaxK9vhI.js} +2 -2
  30. package/web/app/immutable/chunks/{CGs0vmiU.js → Be1tqvyn.js} +1 -1
  31. package/web/app/immutable/chunks/{DtygAQLZ.js → BfHLmKhD.js} +1 -1
  32. package/web/app/immutable/chunks/{CxIswu2X.js → Bg-aqKXt.js} +1 -1
  33. package/web/app/immutable/chunks/{pXldx06t.js → BhHzQHSV.js} +1 -1
  34. package/web/app/immutable/chunks/{Z3XtTxwQ.js → BmU3aeP8.js} +2 -2
  35. package/web/app/immutable/chunks/{vmkeuBVe.js → Bmz09DkI.js} +1 -1
  36. package/web/app/immutable/chunks/{BR-Ar56A.js → BnS7ei63.js} +1 -1
  37. package/web/app/immutable/chunks/{DcimsnLD.js → BpKci5Ku.js} +1 -1
  38. package/web/app/immutable/chunks/{BNUyltQZ.js → BrX0TI9y.js} +1 -1
  39. package/web/app/immutable/chunks/{C2MLvspO.js → BsgHSD6W.js} +1 -1
  40. package/web/app/immutable/chunks/{mCOr3gFd.js → BtaMiCr5.js} +1 -1
  41. package/web/app/immutable/chunks/{DHh2eCii.js → BzM8Has0.js} +1 -1
  42. package/web/app/immutable/chunks/{DbGYKgXT.js → C-EEgOSK.js} +1 -1
  43. package/web/app/immutable/chunks/{B74l16-1.js → C0F_kzVt.js} +1 -1
  44. package/web/app/immutable/chunks/{BVrp8JNX.js → C1ECYssJ.js} +2 -2
  45. package/web/app/immutable/chunks/{DQ-MSxyp.js → C8-U6LK9.js} +1 -1
  46. package/web/app/immutable/chunks/{CAvsAMG1.js → CDPobNmb.js} +3 -3
  47. package/web/app/immutable/chunks/{D52r2_SQ.js → CERdQBT2.js} +1 -1
  48. package/web/app/immutable/chunks/{BtfRwPt7.js → CFijJviB.js} +1 -1
  49. package/web/app/immutable/chunks/{ChXP1yTZ.js → CGPgsggz.js} +1 -1
  50. package/web/app/immutable/chunks/{BkoWIItN.js → CPKJQkDY.js} +2 -2
  51. package/web/app/immutable/chunks/{DIM_Vy_1.js → CUYd8b-6.js} +1 -1
  52. package/web/app/immutable/chunks/{nP0kFcGH.js → CXE0KbZs.js} +1 -1
  53. package/web/app/immutable/chunks/{CwhN6crj.js → C_tq5OHb.js} +1 -1
  54. package/web/app/immutable/chunks/{noaeKV0Q.js → Ca7II05m.js} +1 -1
  55. package/web/app/immutable/chunks/{DL0qyyOL.js → Cdbgk8ir.js} +1 -1
  56. package/web/app/immutable/chunks/{ChAjeelV.js → CeYui3s1.js} +1 -1
  57. package/web/app/immutable/chunks/{BhPnF9Tm.js → CeZwJHvf.js} +1 -1
  58. package/web/app/immutable/chunks/{BpsufErm.js → Ceoti51u.js} +1 -1
  59. package/web/app/immutable/chunks/{Cxj53KWB.js → CfPrltta.js} +1 -1
  60. package/web/app/immutable/chunks/{zZJCq9G-.js → Ci48jbGC.js} +1 -1
  61. package/web/app/immutable/chunks/{BgOH0Zzl.js → ClE0toNS.js} +1 -1
  62. package/web/app/immutable/chunks/{CibNXCBL.js → ClMmMgCD.js} +1 -1
  63. package/web/app/immutable/chunks/{DwUTqa-t.js → Cr0fLwOu.js} +1 -1
  64. package/web/app/immutable/chunks/{C7l0Qi5K.js → CrB6tgeT.js} +3 -3
  65. package/web/app/immutable/chunks/{DqNieJFI.js → Csa04qXu.js} +1 -1
  66. package/web/app/immutable/chunks/{CKje4aJN.js → Cz8U_BhG.js} +1 -1
  67. package/web/app/immutable/chunks/{CkBkXm1t.js → D-sc8KNL.js} +1 -1
  68. package/web/app/immutable/chunks/{DNdoVC6a.js → D0FyWJCg.js} +1 -1
  69. package/web/app/immutable/chunks/{C2I2Ii1u.js → D0j9kjWE.js} +1 -1
  70. package/web/app/immutable/chunks/{BEOu6eQL.js → D3c3sLpX.js} +1 -1
  71. package/web/app/immutable/chunks/{C0XKBd5S.js → D6_50bPj.js} +1 -1
  72. package/web/app/immutable/chunks/{CYaSc2Q1.js → D8-xFBX8.js} +1 -1
  73. package/web/app/immutable/chunks/{ChgmG2BO.js → DE35PYUh.js} +1 -1
  74. package/web/app/immutable/chunks/{D--zmlwp.js → DFrOZp-X.js} +1 -1
  75. package/web/app/immutable/chunks/{CikjWVQh.js → DJUIc5At.js} +1 -1
  76. package/web/app/immutable/chunks/{GuF0uSZG.js → DKe2FlOB.js} +1 -1
  77. package/web/app/immutable/chunks/{Dwcp9g5N.js → DMhvq8HB.js} +1 -1
  78. package/web/app/immutable/chunks/{BKYUqADc.js → DN-C1UIq.js} +2 -2
  79. package/web/app/immutable/chunks/{COSufLLe.js → DNv_RGW3.js} +1 -1
  80. package/web/app/immutable/chunks/{hScRAhOj.js → DPCNtTZq.js} +1 -1
  81. package/web/app/immutable/chunks/{Bh-jBfbM.js → DPUp3KYX.js} +1 -1
  82. package/web/app/immutable/chunks/{CU5BHy1W.js → DQDmfNyd.js} +1 -1
  83. package/web/app/immutable/chunks/{qgDYb1By.js → DQWu85Mb.js} +2 -2
  84. package/web/app/immutable/chunks/{C0ItZHN5.js → DR3YuSFV.js} +1 -1
  85. package/web/app/immutable/chunks/{B1BgnlCp.js → DRUI_xnx.js} +1 -1
  86. package/web/app/immutable/chunks/{pQG9xktk.js → DT9dG-TY.js} +1 -1
  87. package/web/app/immutable/chunks/{DcrFkbHp.js → DUrytYjS.js} +1 -1
  88. package/web/app/immutable/chunks/{BFrK5arF.js → D_AmMnb5.js} +1 -1
  89. package/web/app/immutable/chunks/{Dt4bX8KM.js → DaUgBLNw.js} +1 -1
  90. package/web/app/immutable/chunks/{CJXN40w9.js → DcT7aUbr.js} +3 -3
  91. package/web/app/immutable/chunks/{DHrWTFlr.js → DdFkN_Uh.js} +3 -3
  92. package/web/app/immutable/chunks/{DKAYHp4B.js → DdUNQfBj.js} +1 -1
  93. package/web/app/immutable/chunks/{apIeVE2H.js → DeOcwvAg.js} +1 -1
  94. package/web/app/immutable/chunks/{D-qAIzQP.js → DgQR8hwI.js} +2 -2
  95. package/web/app/immutable/chunks/{B-AmD-Nq.js → DjZBBD78.js} +1 -1
  96. package/web/app/immutable/chunks/{BX9yK5SR.js → DoUhQNMs.js} +1 -1
  97. package/web/app/immutable/chunks/{tPn0bGH7.js → Dq9wWY8h.js} +4 -4
  98. package/web/app/immutable/chunks/{DxbU9ouN.js → DqXlwkEw.js} +1 -1
  99. package/web/app/immutable/chunks/{BbS5Qizt.js → DqYxGkQL.js} +1 -1
  100. package/web/app/immutable/chunks/{idGIWvOH.js → Ds2frkR2.js} +1 -1
  101. package/web/app/immutable/chunks/{cTDZw3QR.js → DsYzG-3M.js} +1 -1
  102. package/web/app/immutable/chunks/{6AoPTtLI.js → Du3d0ZG1.js} +1 -1
  103. package/web/app/immutable/chunks/{CVkMmqXo.js → DuGiQV5V.js} +1 -1
  104. package/web/app/immutable/chunks/{BjW79gKz.js → Dv8Emx47.js} +1 -1
  105. package/web/app/immutable/chunks/{DyYcnOWN.js → Dwj6kdDc.js} +1 -1
  106. package/web/app/immutable/chunks/{D3VgLsjX.js → Dyv3Jj2a.js} +1 -1
  107. package/web/app/immutable/chunks/{Bn5omuEb.js → DzJIX3GL.js} +1 -1
  108. package/web/app/immutable/chunks/{lrmMeOQf.js → DzNGKDWB.js} +3 -3
  109. package/web/app/immutable/chunks/{DGrWVJ0v.js → Dzx9X-9k.js} +1 -1
  110. package/web/app/immutable/chunks/{Cu9L3sv4.js → HmoNvWUs.js} +1 -1
  111. package/web/app/immutable/chunks/{RmJBfBVs.js → OUquJguY.js} +1 -1
  112. package/web/app/immutable/chunks/{DePeY13v.js → Pn_zpYMA.js} +2 -2
  113. package/web/app/immutable/chunks/{bfJbR-yE.js → Rm2Ltxr1.js} +1 -1
  114. package/web/app/immutable/chunks/{BbdYMVNx.js → RpqMTdHp.js} +1 -1
  115. package/web/app/immutable/chunks/{DD3t48QH.js → UMoQbEGi.js} +1 -1
  116. package/web/app/immutable/chunks/{BuZhTAVX.js → Uc65kQcs.js} +1 -1
  117. package/web/app/immutable/chunks/{CWADgVJP.js → WHU-VgW2.js} +1 -1
  118. package/web/app/immutable/chunks/{CTZj8P4K.js → bpjEJ3Vs.js} +1 -1
  119. package/web/app/immutable/chunks/{4Kf5TY5X.js → cEbJGV0n.js} +1 -1
  120. package/web/app/immutable/chunks/{XZZBqDDU.js → fMSSCdyW.js} +1 -1
  121. package/web/app/immutable/chunks/{DOkTuNnC.js → pW4P-CQP.js} +1 -1
  122. package/web/app/immutable/chunks/{Cv3VPe8L.js → qz4jsx2y.js} +1 -1
  123. package/web/app/immutable/chunks/{8NOm3iaU.js → tZdyA4Cc.js} +1 -1
  124. package/web/app/immutable/chunks/{CBhc_pLy.js → tg0ajfyX.js} +1 -1
  125. package/web/app/immutable/entry/{app.7G8GWQFV.js → app.B_j4c4ni.js} +2 -2
  126. package/web/app/immutable/entry/start.CShKopZ1.js +1 -0
  127. package/web/app/immutable/nodes/{0.DRiM7T-G.js → 0.pKLAp1FZ.js} +1 -1
  128. package/web/app/immutable/nodes/{1.9vkn3vyy.js → 1.V5hFULBJ.js} +1 -1
  129. package/web/app/immutable/nodes/{10.DSYgbbT9.js → 10.DTk6oKYi.js} +4 -4
  130. package/web/app/immutable/nodes/{11.CIM80lhx.js → 11.BuHoaGEB.js} +1 -1
  131. package/web/app/immutable/nodes/{15.3l37Ve75.js → 15.CdCP66mF.js} +1 -1
  132. package/web/app/immutable/nodes/{19.CnXH3Iz_.js → 19.BgOZ-pEt.js} +2 -2
  133. package/web/app/immutable/nodes/{2.wGzWUUPc.js → 2.DW28_r0R.js} +4 -4
  134. package/web/app/immutable/nodes/{3.CTWSQnPv.js → 3.Dk7zPLK1.js} +1 -1
  135. package/web/app/immutable/nodes/{4.BSig_ApP.js → 4.Bz5UF4_5.js} +1 -1
  136. package/web/app/immutable/nodes/{5.NR-bMbpi.js → 5.B1xW3m_S.js} +1 -1
  137. package/web/app/immutable/nodes/{6.Xig6esy6.js → 6.DSxB0Tsx.js} +1 -1
  138. package/web/app/immutable/nodes/{7.FpVTsVRc.js → 7.DLMT-3--.js} +1 -1
  139. package/web/app/immutable/nodes/{8.CqRfRN2m.js → 8.I5kk_EaM.js} +1 -1
  140. package/web/app/immutable/nodes/{9.nHcDmWdB.js → 9.B05AownH.js} +4 -4
  141. package/web/app/version.json +1 -1
  142. package/web/index.html +9 -9
  143. package/web/app/immutable/entry/start.Cgrocrgj.js +0 -1
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DIM_Vy_1.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BeAfjfr4.js","/app/immutable/chunks/DUPdECze.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/chunks/Dou_hoaA.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CxNkcb8W.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/NvPqoUzX.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/gsFx6FSh.js","/app/immutable/chunks/DeOvWG_V.js","/app/immutable/chunks/BophAjr8.js","/app/immutable/chunks/DYGZj8tM.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Cu2deF-X.js","/app/immutable/chunks/CQpwPlmg.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/B2F1R5gp.js","/app/immutable/chunks/R5qsERXh.js","/app/immutable/chunks/DWlZtz5u.js","/app/immutable/chunks/DKOGfBeL.js","/app/immutable/chunks/BxPVGrtc.js","/app/immutable/chunks/CDDY7bU6.js","/app/immutable/chunks/Dc_PiRux.js","/app/immutable/chunks/CzTFPES1.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CSHq_biu.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/BbS5Qizt.js"])))=>i.map(i=>d[i]);
2
- import{bm as c,_ as p}from"./DUPdECze.js";import{m as k}from"./BDjmUG9E.js";import"./CJxGDkBm.js";import"./DYGZj8tM.js";import"./NvPqoUzX.js";import{Q as A}from"./DeOvWG_V.js";import"./ChTqQfQN.js";import"./CtnMBSuA.js";import{i as L,I$ as d,vs as g,vu as v}from"./Dou_hoaA.js";import{a9 as R}from"./R5qsERXh.js";import{selectCurrentWorkspaceTabId as P}from"./Bu_2dHSO.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 W(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&&I(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"&&I(a[0])&&I(a[2])&&I(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,H(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 H(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||!I(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function I(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=W(e);if(!t.valid)return k.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("./DIM_Vy_1.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:k.error(c.ui_linkHandler_unsupportedLink_title(),{description:c.ui_linkHandler_unsupportedLink_description({type:t.type})})}}catch(n){n instanceof u?k.error(c.ui_linkHandler_notFound_title(),{description:n.message}):k.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("./BeAfjfr4.js").then(o=>o.o);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("./BbS5Qizt.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("./BbS5Qizt.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("./BbS5Qizt.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("./DeOvWG_V.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,W as parseIntentLink};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CUYd8b-6.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BeAfjfr4.js","/app/immutable/chunks/DUPdECze.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/chunks/Dou_hoaA.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CxNkcb8W.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/NvPqoUzX.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/gsFx6FSh.js","/app/immutable/chunks/DeOvWG_V.js","/app/immutable/chunks/BophAjr8.js","/app/immutable/chunks/DYGZj8tM.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Cu2deF-X.js","/app/immutable/chunks/CQpwPlmg.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/B2F1R5gp.js","/app/immutable/chunks/R5qsERXh.js","/app/immutable/chunks/DWlZtz5u.js","/app/immutable/chunks/DKOGfBeL.js","/app/immutable/chunks/BxPVGrtc.js","/app/immutable/chunks/CDDY7bU6.js","/app/immutable/chunks/Dc_PiRux.js","/app/immutable/chunks/CzTFPES1.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/B02VOKO8.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/DqYxGkQL.js"])))=>i.map(i=>d[i]);
2
+ import{bm as c,_ as p}from"./DUPdECze.js";import{m as k}from"./BDjmUG9E.js";import"./CJxGDkBm.js";import"./DYGZj8tM.js";import"./NvPqoUzX.js";import{Q as A}from"./DeOvWG_V.js";import"./ChTqQfQN.js";import"./CtnMBSuA.js";import{i as L,I$ as d,vs as g,vu as v}from"./Dou_hoaA.js";import{a9 as R}from"./R5qsERXh.js";import{selectCurrentWorkspaceTabId as P}from"./Bu_2dHSO.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 W(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&&I(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"&&I(a[0])&&I(a[2])&&I(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,H(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 H(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||!I(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function I(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=W(e);if(!t.valid)return k.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("./CUYd8b-6.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:k.error(c.ui_linkHandler_unsupportedLink_title(),{description:c.ui_linkHandler_unsupportedLink_description({type:t.type})})}}catch(n){n instanceof u?k.error(c.ui_linkHandler_notFound_title(),{description:n.message}):k.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("./BeAfjfr4.js").then(o=>o.o);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("./DqYxGkQL.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("./DqYxGkQL.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("./DqYxGkQL.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("./DeOvWG_V.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,W as parseIntentLink};
@@ -1 +1 @@
1
- import{b as a,aW as o}from"./HaIAX7Y7.js";var g=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{g};
1
+ import{b as a,aW as o}from"./BVA6rkcP.js";var g=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{g};
@@ -1,4 +1,4 @@
1
- import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./HaIAX7Y7.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],p=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(Y,"popStack");function tt(){var P;return P=c.pop()||b.lex()||A,typeof P!="number"&&(P instanceof Array&&(c=P,P=c.pop()),P=s.symbols_[P]||P),P}o(tt,"lex");for(var M,W,N,K,z={},G,C,et,X;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";X=[];for(G in v[W])this.terminals_[G]&&G>L&&X.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
1
+ import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./BVA6rkcP.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],p=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(Y,"popStack");function tt(){var P;return P=c.pop()||b.lex()||A,typeof P!="number"&&(P instanceof Array&&(c=P,P=c.pop()),P=s.symbols_[P]||P),P}o(tt,"lex");for(var M,W,N,K,z={},G,C,et,X;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";X=[];for(G in v[W])this.terminals_[G]&&G>L&&X.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+X.join(", ")+", got '"+(this.terminals_[M]||M)+"'":q="Parse error on line "+(I+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(q,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:R,expected:X})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+M);switch(N[0]){case 1:i.push(M),p.push(b.yytext),n.push(b.yylloc),i.push(N[1]),M=null,$=b.yyleng,w=b.yytext,I=b.yylineno,R=b.yylloc;break;case 2:if(C=this.productions_[N[1]][1],z.$=p[p.length-C],z._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column},U&&(z._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]),K=this.performAction.apply(z,[w,$,I,S.yy,N[1],p,n].concat(V)),typeof K<"u")return K;C&&(i=i.slice(0,-1*C*2),p=p.slice(0,-1*C),n=n.slice(0,-1*C)),i.push(this.productions_[N[1]][0]),p.push(z.$),n.push(z._$),et=v[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var T={EOF:1,parseError:o(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,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 t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;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),i.length-1&&(this.yylineno-=i.length-1);var p=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:i?(i.length===c.length?this.yylloc.first_column:0)+c[c.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),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(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{J as h}from"./CikjWVQh.js";import{c as v}from"./ChTqQfQN.js";import{O as d}from"./DeOvWG_V.js";const g=v("AttachmentImageUrl");function y(t,n){const r=n.split("/").filter(e=>e.length>0).map(e=>encodeURIComponent(e)).join("/");return`workspace-file://${t}/${r}`}const u=new Map,a=new Map;let f=0,m=!1;function p(){m||(m=!0,d(()=>{f+=1,u.clear(),a.clear()}))}function A(t,n){u.delete(`${t}/${n}`)}function F(t,n,r){p();let e=!1,i=!1,o=!1;async function l(){if(!e){if(i){o=!0;return}i=!0;try{const c=await $(t,n);e||r(c)}finally{i=!1,o&&(o=!1,l())}}}const s=d(()=>{l()});return l(),{imageFailed(){e||(A(t,n),r(null))},dispose(){e=!0,s()}}}function $(t,n){p();const r=f,e=`${t}/${n}`,i=u.get(e);if(i)return Promise.resolve(i);const o=a.get(e);if(o)return o;const l=(async()=>{try{const s=await h({attachmentId:n,workspaceId:t});if(r!==f)return null;if(!s.exists)return g.warn("Attachment file missing on disk",{attachmentId:n}),null;const c=y(t,s.path);return u.set(e,c),c}catch(s){return g.warn("Failed to resolve attachment image",{attachmentId:n,error:s}),null}finally{r===f&&a.delete(e)}})();return a.set(e,l),l}export{A as e,F as o,$ as r};
1
+ import{J as h}from"./DJUIc5At.js";import{c as v}from"./ChTqQfQN.js";import{O as d}from"./DeOvWG_V.js";const g=v("AttachmentImageUrl");function y(t,n){const r=n.split("/").filter(e=>e.length>0).map(e=>encodeURIComponent(e)).join("/");return`workspace-file://${t}/${r}`}const u=new Map,a=new Map;let f=0,m=!1;function p(){m||(m=!0,d(()=>{f+=1,u.clear(),a.clear()}))}function A(t,n){u.delete(`${t}/${n}`)}function F(t,n,r){p();let e=!1,i=!1,o=!1;async function l(){if(!e){if(i){o=!0;return}i=!0;try{const c=await $(t,n);e||r(c)}finally{i=!1,o&&(o=!1,l())}}}const s=d(()=>{l()});return l(),{imageFailed(){e||(A(t,n),r(null))},dispose(){e=!0,s()}}}function $(t,n){p();const r=f,e=`${t}/${n}`,i=u.get(e);if(i)return Promise.resolve(i);const o=a.get(e);if(o)return o;const l=(async()=>{try{const s=await h({attachmentId:n,workspaceId:t});if(r!==f)return null;if(!s.exists)return g.warn("Attachment file missing on disk",{attachmentId:n}),null;const c=y(t,s.path);return u.set(e,c),c}catch(s){return g.warn("Failed to resolve attachment image",{attachmentId:n,error:s}),null}finally{r===f&&a.delete(e)}})();return a.set(e,l),l}export{A as e,F as o,$ as r};