local-operator-ui 0.57.3 → 0.57.4

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 (94) hide show
  1. package/out/main/index.js +669 -17
  2. package/out/preload/index.js +56 -1
  3. package/out/renderer/assets/{_basePickBy-BeAzmqgq.js → _basePickBy-CqOK9I5a.js} +1 -1
  4. package/out/renderer/assets/{_baseUniq-Clx9gdFs.js → _baseUniq-Dfknltze.js} +1 -1
  5. package/out/renderer/assets/{agent-details-page-BMztNR89.js → agent-details-page-DKOAeAlz.js} +1 -1
  6. package/out/renderer/assets/{agent-hub-page-quUNNwcr.js → agent-hub-page-D75ZCD-T.js} +1 -1
  7. package/out/renderer/assets/{agents-page-BTYHgMAf.js → agents-page-Dy9dT2J6.js} +3 -3
  8. package/out/renderer/assets/{appearance-DCqlsN7S.js → appearance-RPtl24uV.js} +1 -1
  9. package/out/renderer/assets/{arc-BOZHzyJm.js → arc-CJgGs8E0.js} +1 -1
  10. package/out/renderer/assets/{architectureDiagram-IEHRJDOE-CpE8Siol.js → architectureDiagram-IEHRJDOE-BO-PVfmy.js} +1 -1
  11. package/out/renderer/assets/{avatar-cropper-BWJE7j7A.js → avatar-cropper-IPFrNOZH.js} +1 -1
  12. package/out/renderer/assets/{blockDiagram-JOT3LUYC-D4LTtQ_H.js → blockDiagram-JOT3LUYC-D4kISdJw.js} +1 -1
  13. package/out/renderer/assets/{book-open-fa_DaJBq.js → book-open-DSEz_hQQ.js} +1 -1
  14. package/out/renderer/assets/browser-page-4rUf9E5f.js +1 -0
  15. package/out/renderer/assets/{browser-webauthn-prompt-VC7pNm9O.js → browser-webauthn-prompt-DUTEBHSl.js} +1 -1
  16. package/out/renderer/assets/{c4Diagram-VJAJSXHY-DRtUDXOF.js → c4Diagram-VJAJSXHY-jrrji_Tt.js} +1 -1
  17. package/out/renderer/assets/channel-DSbKlaIM.js +1 -0
  18. package/out/renderer/assets/{chunk-4BMEZGHF-Cw4VudrA.js → chunk-4BMEZGHF-34jCJWgL.js} +1 -1
  19. package/out/renderer/assets/{chunk-A2AXSNBT-0JOiKMb-.js → chunk-A2AXSNBT-D2utPfjC.js} +1 -1
  20. package/out/renderer/assets/{chunk-AEK57VVT-CAKCg9DA.js → chunk-AEK57VVT-Chv6UTYK.js} +1 -1
  21. package/out/renderer/assets/{chunk-D6G4REZN-CFZ2DTGX.js → chunk-D6G4REZN-8au1oDUE.js} +1 -1
  22. package/out/renderer/assets/{chunk-RZ5BOZE2-CupwUHva.js → chunk-RZ5BOZE2-DCRrSym3.js} +1 -1
  23. package/out/renderer/assets/{chunk-XZIHB7SX-B1vcbFku.js → chunk-XZIHB7SX-BFp6lbut.js} +1 -1
  24. package/out/renderer/assets/classDiagram-GIVACNV2-B3UBTKI6.js +1 -0
  25. package/out/renderer/assets/classDiagram-v2-COTLJTTW-B3UBTKI6.js +1 -0
  26. package/out/renderer/assets/clone-CI0Pk6Pw.js +1 -0
  27. package/out/renderer/assets/{console-mirror-IB35kNI8.js → console-mirror-COvJr604.js} +1 -1
  28. package/out/renderer/assets/{consoleCapture-D4G96kDb.js → consoleCapture-Cl0JWwqq.js} +1 -1
  29. package/out/renderer/assets/{conversation-input-sync-DlorrZ6B.js → conversation-input-sync-bGjigx3Z.js} +4 -4
  30. package/out/renderer/assets/{dagre-OKDRZEBW-CunvCCGM.js → dagre-OKDRZEBW-WWu0Yua1.js} +1 -1
  31. package/out/renderer/assets/{diagram-SSKATNLV-DlpXMePq.js → diagram-SSKATNLV-CS9Mvsr2.js} +1 -1
  32. package/out/renderer/assets/{diagram-VNBRO52H-CtgMK6MT.js → diagram-VNBRO52H-qqdP8fjP.js} +1 -1
  33. package/out/renderer/assets/{erDiagram-Q7BY3M3F-C-QNezLB.js → erDiagram-Q7BY3M3F-Dcxo6XZi.js} +1 -1
  34. package/out/renderer/assets/{error-boundary-C1x5W-AX.js → error-boundary-BQ911DnY.js} +1 -1
  35. package/out/renderer/assets/{flowDiagram-4HSFHLVR-DjwRYw0E.js → flowDiagram-4HSFHLVR-CrxBDmsr.js} +1 -1
  36. package/out/renderer/assets/{ganttDiagram-APWFNJXF-Tb5F1KXD.js → ganttDiagram-APWFNJXF-Bx-sfLxO.js} +1 -1
  37. package/out/renderer/assets/{gitGraphDiagram-7IBYFJ6S-BokP9Y1T.js → gitGraphDiagram-7IBYFJ6S-CJxWCbNe.js} +1 -1
  38. package/out/renderer/assets/{graph-DEHYXN6b.js → graph-BNSj1GHJ.js} +1 -1
  39. package/out/renderer/assets/{heart-DqMMtrJ1.js → heart-i91yzAwW.js} +1 -1
  40. package/out/renderer/assets/{index-BnqyWEPM.css → index-BlC0KBYH.css} +1 -1
  41. package/out/renderer/assets/{index-CJ8BPUHQ.js → index-BvbUVrcK.js} +1 -1
  42. package/out/renderer/assets/{index-D7fnBkIK.js → index-BxFcVHbG.js} +1 -1
  43. package/out/renderer/assets/index-CdTxr8VM.js +852 -0
  44. package/out/renderer/assets/{index-BWQzFq0n.js → index-CxNjWpOb.js} +10 -10
  45. package/out/renderer/assets/infoDiagram-PH2N3AL5-PsB_DDDA.js +2 -0
  46. package/out/renderer/assets/{inline-error-boundary-ChbTvdIh.js → inline-error-boundary-CEz9_z6I.js} +1 -1
  47. package/out/renderer/assets/{installer-Bplg-bpo.js → installer-G-5Vi1J-.js} +1 -1
  48. package/out/renderer/assets/{journeyDiagram-U35MCT3I-BfXoBW-2.js → journeyDiagram-U35MCT3I-DoNy_9X6.js} +1 -1
  49. package/out/renderer/assets/{kanban-definition-NDS4AKOZ-BeT3LOJG.js → kanban-definition-NDS4AKOZ-DdvklVql.js} +1 -1
  50. package/out/renderer/assets/{layout-B71SsWep.js → layout-qfLIC44U.js} +1 -1
  51. package/out/renderer/assets/{legacy-agents-page-BaSX_kru.js → legacy-agents-page-vNWqLnJO.js} +1 -1
  52. package/out/renderer/assets/{library-page-BwmVBhNJ.js → library-page-CsKdpZoN.js} +3 -3
  53. package/out/renderer/assets/{log-in-C4tjIXzF.js → log-in-ge87dxtE.js} +1 -1
  54. package/out/renderer/assets/{mermaid.core-D7wfsRjY.js → mermaid.core-34ehUt9F.js} +5 -5
  55. package/out/renderer/assets/{mesh-page-DbC0RmVo.js → mesh-page-Drazw6sy.js} +1 -1
  56. package/out/renderer/assets/{mindmap-definition-ALO5MXBD-BPTOzHuL.js → mindmap-definition-ALO5MXBD-DS9A7X_9.js} +1 -1
  57. package/out/renderer/assets/{mini-DXMqE-0u.js → mini-CiYAeR9E.js} +1 -1
  58. package/out/renderer/assets/{notebook-pen-CQdB2BC5.js → notebook-pen-6_thWw32.js} +1 -1
  59. package/out/renderer/assets/{notifications-page-C9PU2typ.js → notifications-page-B9lBzyI_.js} +1 -1
  60. package/out/renderer/assets/{org-access-Fw38H9fZ.js → org-access-LWjiDIPH.js} +1 -1
  61. package/out/renderer/assets/{org-surface-gate-CKBjFWJL.js → org-surface-gate-DGeVPoHg.js} +1 -1
  62. package/out/renderer/assets/{page-header-CAW9G_fb.js → page-header-DsXvFR6j.js} +1 -1
  63. package/out/renderer/assets/{pieDiagram-IB7DONF6-C0JN0KMq.js → pieDiagram-IB7DONF6-BzNpgGTh.js} +1 -1
  64. package/out/renderer/assets/{projects-page-D9F4QotN.js → projects-page-BJV0JVfL.js} +1 -1
  65. package/out/renderer/assets/{publication-validation-DygSOQkj.js → publication-validation-BIxxMtE8.js} +1 -1
  66. package/out/renderer/assets/{quadrantDiagram-7GDLP6J5-BRgjFQlM.js → quadrantDiagram-7GDLP6J5-BGFLFl2M.js} +1 -1
  67. package/out/renderer/assets/{radar-MK3ICKWK-VE0niGVF.js → radar-MK3ICKWK-QP0xpCZj.js} +1 -1
  68. package/out/renderer/assets/{radient-auth-buttons-CXMLVkUO.js → radient-auth-buttons-GwvFtoOd.js} +1 -1
  69. package/out/renderer/assets/{requirementDiagram-KVF5MWMF-DkwJBmMi.js → requirementDiagram-KVF5MWMF-d1hwIQYi.js} +1 -1
  70. package/out/renderer/assets/{sankeyDiagram-QLVOVGJD-DFv3zh8B.js → sankeyDiagram-QLVOVGJD-Bel2U3qO.js} +1 -1
  71. package/out/renderer/assets/{schedules-page-aTbxrD_M.js → schedules-page-CJV3Oiiy.js} +1 -1
  72. package/out/renderer/assets/{sequenceDiagram-X6HHIX6F-BXcr3er8.js → sequenceDiagram-X6HHIX6F-Et2XMzpI.js} +1 -1
  73. package/out/renderer/assets/{settings-page-DWZ3Mguh.js → settings-page-sfk5JVcx.js} +1 -1
  74. package/out/renderer/assets/{smartart-CWBh1X_F.js → smartart-Csc0zQan.js} +1 -1
  75. package/out/renderer/assets/{stateDiagram-DGXRK772-Cw08neDd.js → stateDiagram-DGXRK772-D2GwxW6w.js} +1 -1
  76. package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-BHUZ7x6j.js +1 -0
  77. package/out/renderer/assets/{team-bridge-page-BHAdGSZS.js → team-bridge-page-CW5zV9mz.js} +1 -1
  78. package/out/renderer/assets/{timeline-definition-BDJGKUSR-B-ZFBehC.js → timeline-definition-BDJGKUSR-BUZLWyEg.js} +1 -1
  79. package/out/renderer/assets/{use-default-on-banner-C8DUslhy.js → use-default-on-banner-CsqO83vJ.js} +1 -1
  80. package/out/renderer/assets/{use-download-agent-mutation-DMGaSxDK.js → use-download-agent-mutation-F8kNbCPE.js} +1 -1
  81. package/out/renderer/assets/{xychartDiagram-VJFVF3MP-BGB8PPzY.js → xychartDiagram-VJFVF3MP-C9F7-D_T.js} +1 -1
  82. package/out/renderer/console-capture.html +5 -5
  83. package/out/renderer/index.html +7 -7
  84. package/out/renderer/installer.html +4 -4
  85. package/out/renderer/mini.html +6 -6
  86. package/package.json +1 -1
  87. package/out/renderer/assets/browser-page-AgwdXhLM.js +0 -1
  88. package/out/renderer/assets/channel-DMQl-cpj.js +0 -1
  89. package/out/renderer/assets/classDiagram-GIVACNV2-DJsxDWD8.js +0 -1
  90. package/out/renderer/assets/classDiagram-v2-COTLJTTW-DJsxDWD8.js +0 -1
  91. package/out/renderer/assets/clone-B9GxWhWi.js +0 -1
  92. package/out/renderer/assets/index-Buuz619t.js +0 -852
  93. package/out/renderer/assets/infoDiagram-PH2N3AL5-bdAhVGkO.js +0 -2
  94. package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-BtazAv7-.js +0 -1
@@ -1 +1 @@
1
- import{s as W,a as P,S as N}from"./chunk-AEK57VVT-CAKCg9DA.js";import{_ as u,c as t,d as H,l as S,e as C,k as z,u as U}from"./mermaid.core-D7wfsRjY.js";import{G as F}from"./graph-DEHYXN6b.js";import{l as O}from"./layout-B71SsWep.js";import{n as J,o as X}from"./conversation-input-sync-DlorrZ6B.js";import"./chunk-RZ5BOZE2-CupwUHva.js";import"./index-BWQzFq0n.js";import"./messages-B7aIuFuF.js";import"./_baseUniq-Clx9gdFs.js";import"./_basePickBy-BeAzmqgq.js";import"./appearance-DCqlsN7S.js";import"./roles-D1pcbxAx.js";import"./error-boundary-C1x5W-AX.js";var L={},D=u((e,i)=>{L[e]=i},"set"),Y=u(e=>L[e],"get"),G=u(()=>Object.keys(L),"keys"),I=u(()=>G().length,"size"),$={get:Y,set:D,keys:G,size:I},j=u(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),q=u(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),Z=u((e,i)=>{const d=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),o=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",o.width+2*t().state.padding).attr("height",o.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),K=u((e,i)=>{const d=u(function(l,B,m){const k=l.append("tspan").attr("x",2*t().state.padding).text(B);m||k.attr("dy",t().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=n.height,x=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(l){a||(d(x,l,s),s=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),p=x.node().getBBox(),c=Math.max(p.width,n.width);return y.attr("x2",c+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c+2*t().state.padding).attr("height",p.height+g+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),Q=u((e,i,d)=>{const o=t().state.padding,n=2*t().state.padding,g=e.node().getBBox(),x=g.width,a=g.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),p=s.node().getBBox().width+n;let c=Math.max(p,x);c===x&&(c=c+n);let l;const B=e.node().getBBox();i.doc,l=a-o,p>x&&(l=(x-c)/2+o),Math.abs(a-B.x)<o&&p>x&&(l=a-(p-x)/2);const m=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",m).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",B.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",l+o),p<=x&&s.attr("x",a+(c-n)/2-p/2+o),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",B.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),V=u(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),tt=u((e,i)=>{let d=t().state.forkWidth,o=t().state.forkHeight;if(i.parentId){let n=d;d=o,o=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",o).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),et=u((e,i,d,o)=>{let n=0;const g=o.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let x=e.replace(/\r\n/g,"<br/>");x=x.replace(/\n/g,"<br/>");const a=x.split(z.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const y of a){const p=y.trim();if(p.length>0){const c=g.append("tspan");if(c.text(p),s===0){const l=c.node().getBBox();s+=l.height}n+=s,c.attr("x",i+t().state.noteMargin),c.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:n}},"_drawLongText"),at=u((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),o=i.append("g"),{textWidth:n,textHeight:g}=et(e,0,0,o);return d.attr("height",g+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),_=u(function(e,i){const d=i.id,o={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&j(n),i.type==="end"&&V(n),(i.type==="fork"||i.type==="join")&&tt(n,i),i.type==="note"&&at(i.note.text,n),i.type==="divider"&&q(n),i.type==="default"&&i.descriptions.length===0&&Z(n,i),i.type==="default"&&i.descriptions.length>0&&K(n,i);const g=n.node().getBBox();return o.width=g.width+2*t().state.padding,o.height=g.height+2*t().state.padding,$.set(d,o),o},"drawState"),A=0,it=u(function(e,i,d){const o=u(function(s){switch(s){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,g=J().x(function(s){return s.x}).y(function(s){return s.y}).curve(X),x=e.append("path").attr("d",g(n)).attr("id","edge"+A).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),x.attr("marker-end","url("+a+"#"+o(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:y,y:p}=U.calcLabelPosition(i.points),c=z.getRows(d.title);let l=0;const B=[];let m=0,k=0;for(let f=0;f<=c.length;f++){const h=s.append("text").attr("text-anchor","middle").text(c[f]).attr("x",y).attr("y",p+l),w=h.node().getBBox();m=Math.max(m,w.width),k=Math.min(k,w.x),S.info(w.x,y,p+l),l===0&&(l=h.node().getBBox().height,S.info("Title height",l,p)),B.push(h)}let E=l*c.length;if(c.length>1){const f=(c.length-1)*l*.5;B.forEach((h,w)=>h.attr("y",p+w*l-f)),E=l*c.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",y-m/2-t().state.padding/2).attr("y",p-E/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",E+t().state.padding),S.info(r)}A++},"drawEdge"),b,T={},rt=u(function(){},"setConf"),nt=u(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),st=u(function(e,i,d,o){b=t().state;const n=t().securityLevel;let g;n==="sandbox"&&(g=H("#i"+i));const x=n==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=n==="sandbox"?g.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=x.select(`[id='${i}']`);nt(s);const y=o.db.getRootDoc();R(y,s,void 0,!1,x,a,o);const p=b.padding,c=s.node().getBBox(),l=c.width+p*2,B=c.height+p*2,m=l*1.75;C(s,B,m,b.useMaxWidth),s.attr("viewBox",`${c.x-b.padding} ${c.y-b.padding} `+l+" "+B)},"draw"),dt=u(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),R=u((e,i,d,o,n,g,x)=>{const a=new F({compound:!0,multigraph:!0});let s,y=!0;for(s=0;s<e.length;s++)if(e[s].stmt==="relation"){y=!1;break}d?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:y?1:b.edgeLengthFactor,nodeSep:y?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:y?1:b.edgeLengthFactor,nodeSep:y?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const p=x.db.getStates(),c=x.db.getRelations(),l=Object.keys(p);for(const r of l){const f=p[r];d&&(f.parentId=d);let h;if(f.doc){let w=i.append("g").attr("id",f.id).attr("class","stateGroup");h=R(f.doc,w,f.id,!o,n,g,x);{w=Q(w,f,o);let v=w.node().getBBox();h.width=v.width,h.height=v.height+b.padding/2,T[f.id]={y:b.compositTitleSize}}}else h=_(i,f,a);if(f.note){const w={descriptions:[],id:f.id+"-note",note:f.note,type:"note"},v=_(i,w,a);f.note.position==="left of"?(a.setNode(h.id+"-note",v),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",v)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}S.debug("Count=",a.nodeCount(),a);let B=0;c.forEach(function(r){B++,S.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:dt(r.title),height:b.labelHeight*z.getRows(r.title).length,labelpos:"c"},"id"+B)}),O(a),S.debug("Graph after layout",a.nodes());const m=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(S.warn("Node "+r+": "+JSON.stringify(a.node(r))),n.select("#"+m.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(T[r]?T[r].y:0)-a.node(r).height/2)+" )"),n.select("#"+m.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),g.querySelectorAll("#"+m.id+" #"+r+" .divider").forEach(h=>{const w=h.parentElement;let v=0,M=0;w&&(w.parentElement&&(v=w.parentElement.getBBox().width),M=parseInt(w.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",v-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let k=m.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),it(i,a.edge(r),a.edge(r).relation))}),k=m.getBBox();const E={id:d||"root",label:d||"root",width:0,height:0};return E.width=k.width+2*b.padding,E.height=k.height+2*b.padding,S.debug("Doc rendered",E,a),E},"renderDoc"),ot={setConf:rt,draw:st},St={parser:P,get db(){return new N(1)},renderer:ot,styles:W,init:u(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{St as diagram};
1
+ import{s as W,a as P,S as N}from"./chunk-AEK57VVT-Chv6UTYK.js";import{_ as u,c as t,d as H,l as S,e as C,k as z,u as U}from"./mermaid.core-34ehUt9F.js";import{G as F}from"./graph-BNSj1GHJ.js";import{l as O}from"./layout-qfLIC44U.js";import{n as J,o as X}from"./conversation-input-sync-bGjigx3Z.js";import"./chunk-RZ5BOZE2-DCRrSym3.js";import"./index-CxNjWpOb.js";import"./messages-B7aIuFuF.js";import"./_baseUniq-Dfknltze.js";import"./_basePickBy-CqOK9I5a.js";import"./appearance-RPtl24uV.js";import"./roles-D1pcbxAx.js";import"./error-boundary-BQ911DnY.js";var L={},D=u((e,i)=>{L[e]=i},"set"),Y=u(e=>L[e],"get"),G=u(()=>Object.keys(L),"keys"),I=u(()=>G().length,"size"),$={get:Y,set:D,keys:G,size:I},j=u(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),q=u(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),Z=u((e,i)=>{const d=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),o=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",o.width+2*t().state.padding).attr("height",o.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),K=u((e,i)=>{const d=u(function(l,B,m){const k=l.append("tspan").attr("x",2*t().state.padding).text(B);m||k.attr("dy",t().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=n.height,x=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(l){a||(d(x,l,s),s=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),p=x.node().getBBox(),c=Math.max(p.width,n.width);return y.attr("x2",c+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c+2*t().state.padding).attr("height",p.height+g+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),Q=u((e,i,d)=>{const o=t().state.padding,n=2*t().state.padding,g=e.node().getBBox(),x=g.width,a=g.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),p=s.node().getBBox().width+n;let c=Math.max(p,x);c===x&&(c=c+n);let l;const B=e.node().getBBox();i.doc,l=a-o,p>x&&(l=(x-c)/2+o),Math.abs(a-B.x)<o&&p>x&&(l=a-(p-x)/2);const m=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",m).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",B.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",l+o),p<=x&&s.attr("x",a+(c-n)/2-p/2+o),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",B.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),V=u(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),tt=u((e,i)=>{let d=t().state.forkWidth,o=t().state.forkHeight;if(i.parentId){let n=d;d=o,o=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",o).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),et=u((e,i,d,o)=>{let n=0;const g=o.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let x=e.replace(/\r\n/g,"<br/>");x=x.replace(/\n/g,"<br/>");const a=x.split(z.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const y of a){const p=y.trim();if(p.length>0){const c=g.append("tspan");if(c.text(p),s===0){const l=c.node().getBBox();s+=l.height}n+=s,c.attr("x",i+t().state.noteMargin),c.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:n}},"_drawLongText"),at=u((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),o=i.append("g"),{textWidth:n,textHeight:g}=et(e,0,0,o);return d.attr("height",g+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),_=u(function(e,i){const d=i.id,o={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&j(n),i.type==="end"&&V(n),(i.type==="fork"||i.type==="join")&&tt(n,i),i.type==="note"&&at(i.note.text,n),i.type==="divider"&&q(n),i.type==="default"&&i.descriptions.length===0&&Z(n,i),i.type==="default"&&i.descriptions.length>0&&K(n,i);const g=n.node().getBBox();return o.width=g.width+2*t().state.padding,o.height=g.height+2*t().state.padding,$.set(d,o),o},"drawState"),A=0,it=u(function(e,i,d){const o=u(function(s){switch(s){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,g=J().x(function(s){return s.x}).y(function(s){return s.y}).curve(X),x=e.append("path").attr("d",g(n)).attr("id","edge"+A).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),x.attr("marker-end","url("+a+"#"+o(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:y,y:p}=U.calcLabelPosition(i.points),c=z.getRows(d.title);let l=0;const B=[];let m=0,k=0;for(let f=0;f<=c.length;f++){const h=s.append("text").attr("text-anchor","middle").text(c[f]).attr("x",y).attr("y",p+l),w=h.node().getBBox();m=Math.max(m,w.width),k=Math.min(k,w.x),S.info(w.x,y,p+l),l===0&&(l=h.node().getBBox().height,S.info("Title height",l,p)),B.push(h)}let E=l*c.length;if(c.length>1){const f=(c.length-1)*l*.5;B.forEach((h,w)=>h.attr("y",p+w*l-f)),E=l*c.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",y-m/2-t().state.padding/2).attr("y",p-E/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",E+t().state.padding),S.info(r)}A++},"drawEdge"),b,T={},rt=u(function(){},"setConf"),nt=u(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),st=u(function(e,i,d,o){b=t().state;const n=t().securityLevel;let g;n==="sandbox"&&(g=H("#i"+i));const x=n==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=n==="sandbox"?g.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=x.select(`[id='${i}']`);nt(s);const y=o.db.getRootDoc();R(y,s,void 0,!1,x,a,o);const p=b.padding,c=s.node().getBBox(),l=c.width+p*2,B=c.height+p*2,m=l*1.75;C(s,B,m,b.useMaxWidth),s.attr("viewBox",`${c.x-b.padding} ${c.y-b.padding} `+l+" "+B)},"draw"),dt=u(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),R=u((e,i,d,o,n,g,x)=>{const a=new F({compound:!0,multigraph:!0});let s,y=!0;for(s=0;s<e.length;s++)if(e[s].stmt==="relation"){y=!1;break}d?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:y?1:b.edgeLengthFactor,nodeSep:y?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:y?1:b.edgeLengthFactor,nodeSep:y?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const p=x.db.getStates(),c=x.db.getRelations(),l=Object.keys(p);for(const r of l){const f=p[r];d&&(f.parentId=d);let h;if(f.doc){let w=i.append("g").attr("id",f.id).attr("class","stateGroup");h=R(f.doc,w,f.id,!o,n,g,x);{w=Q(w,f,o);let v=w.node().getBBox();h.width=v.width,h.height=v.height+b.padding/2,T[f.id]={y:b.compositTitleSize}}}else h=_(i,f,a);if(f.note){const w={descriptions:[],id:f.id+"-note",note:f.note,type:"note"},v=_(i,w,a);f.note.position==="left of"?(a.setNode(h.id+"-note",v),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",v)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}S.debug("Count=",a.nodeCount(),a);let B=0;c.forEach(function(r){B++,S.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:dt(r.title),height:b.labelHeight*z.getRows(r.title).length,labelpos:"c"},"id"+B)}),O(a),S.debug("Graph after layout",a.nodes());const m=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(S.warn("Node "+r+": "+JSON.stringify(a.node(r))),n.select("#"+m.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(T[r]?T[r].y:0)-a.node(r).height/2)+" )"),n.select("#"+m.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),g.querySelectorAll("#"+m.id+" #"+r+" .divider").forEach(h=>{const w=h.parentElement;let v=0,M=0;w&&(w.parentElement&&(v=w.parentElement.getBBox().width),M=parseInt(w.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",v-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let k=m.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),it(i,a.edge(r),a.edge(r).relation))}),k=m.getBBox();const E={id:d||"root",label:d||"root",width:0,height:0};return E.width=k.width+2*b.padding,E.height=k.height+2*b.padding,S.debug("Doc rendered",E,a),E},"renderDoc"),ot={setConf:rt,draw:st},St={parser:P,get db(){return new N(1)},renderer:ot,styles:W,init:u(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{St as diagram};
@@ -0,0 +1 @@
1
+ import{s as r,b as e,a,S as i}from"./chunk-AEK57VVT-Chv6UTYK.js";import{_ as s}from"./mermaid.core-34ehUt9F.js";import"./chunk-RZ5BOZE2-DCRrSym3.js";import"./conversation-input-sync-bGjigx3Z.js";import"./index-CxNjWpOb.js";import"./messages-B7aIuFuF.js";import"./appearance-RPtl24uV.js";import"./roles-D1pcbxAx.js";import"./error-boundary-BQ911DnY.js";var f={parser:a,get db(){return new i(2)},renderer:e,styles:r,init:s(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{f as diagram};
@@ -1,4 +1,4 @@
1
- import{j as t,c as U,r as u}from"./index-BWQzFq0n.js";import{cX as Iu,t as cs,N as ud,cY as Au,cZ as Mu,v as Lt,c_ as zu,cK as $a,c$ as Pu,d0 as us,d1 as Du,d2 as Ge,d3 as Lu,d4 as Ou,bH as md,d5 as yr,d6 as hd,a as qu,d7 as ui,d8 as Fu,d9 as $u,da as gd,db as Uu,dc as Ku,dd as Hu,de as Gu,df as Wu,dg as xo,dh as Vu,b as Sa,di as Ju,dj as pd,dk as Qu,dl as Yu,dm as Ea,aU as Ua,dn as Xu,dp as Zu,dq as em,dr as fd,R as nm,ds as tm,dt as vo,du as im,dv as kd,dw as ms,dx as am,dy as rm,dz as Gn,dA as jo,dB as _o,dC as hn,dD as No,dE as sm,dF as om,dG as lm,dH as dm,dI as cm,dJ as um,dK as xr,dL as mm,dM as hm,dN as gm,dO as pm,dP as fm,dQ as km,dR as wm,dS as bm,dT as ym,dU as Bo,dV as So,dW as ga,dX as xm,dY as vm,dZ as jm,d_ as _m,d$ as Eo,e0 as Nm,e1 as Bm,e2 as Sm,e3 as Em,e4 as Rm,e5 as Cm,e6 as Tm,e7 as Im,e8 as Am,e9 as Mm,ea as zm,eb as Pm,ec as Dm,ed as Lm,ee as Om,ef as qm,eg as Fm,eh as $m,ei as Um,ej as Km,ek as Hm,el as Gm,em as Wm,en as Vm,eo as Jm,ep as Qm,eq as Ym,er as Xm,es as Zm,et as eh,eu as Ro,ev as Co}from"./index-Buuz619t.js";import{aO as vr,d3 as hs,d4 as nh,bX as wd,d5 as an,d6 as gs,d7 as ct,d8 as th,d9 as ps,da as jr,db as gi,cw as bd,dc as Ra,dd as yd,de as fs,df as Ca,dg as gn,bU as xd,dh as vd,di as Ta,dj as ih,dk as ah,dl as rh,dm as sh,cL as ks,dn as oh,aR as lh,ad as dh,dp as ch,dq as uh,dr as mh,aj as ya,ds as hh,dt as gh,du as ph,dv as To,dw as fh,dx as kh,dy as wh,dz as bh,aN as yh,dA as xh,dB as vh,dC as Mt,dD as jh,dE as _h,dF as jd,bt as Ka,dG as Nh,dH as Bh,dI as Io,dJ as Sh,dK as Eh,c6 as gt,dL as Ki,dM as _d,dN as Mn,dO as Nd,cP as Ha,c_ as Rh,bi as Bd,dP as Sd,dQ as Ed,dR as Ch,dS as Th,dT as Ih,dU as Rd,dV as ki,dW as pi,dX as Ah,cV as Cd,dY as Mh,dZ as Td,d_ as Ia,d$ as Aa,e0 as Id,e1 as zh,e2 as Ao,e3 as Ph,d0 as Dh,b_ as Lh,e4 as Ad,e5 as Oh,e6 as qh,e7 as Fh,e8 as $h,e9 as Md,ea as ws,eb as zd,ec as Uh,ed as Xe,ee as Kh,ef as Hh,eg as Gh,cJ as Ga,eh as Wa,ei as bs,ej as oi,ek as Pd,cC as ys,el as Wh,em as Dd,en as Ld,eo as Mo,bf as Vh,cl as zo,ep as Jh,eq as Qh,er as Yh,es as Od,et as Xh,eu as Hr,ev as Ma,ew as _r,ex as qd,ey as Zh,ez as eg,eA as Po,eB as Do,eC as Lo,eD as Tn,eE as Oo,cH as ng,eF as qo,eG as tg,eH as Nr,eI as ig,eJ as ag,Q as rg,be as sg,c8 as og,eK as lg,eL as dg,eM as cg,eN as ug,eO as mg,eP as Br,eQ as hg,eR as gg}from"./conversation-input-sync-DlorrZ6B.js";import{Q as An,u as pt,m as Va,l as Ja,f as pg,w as xs,au as Fd,az as fg,i as xa,ar as kg,J as In,aA as wg,aB as Fo,aC as bg,aD as yg,aE as $d,aF as xg,aG as Ud,aH as Kd,ai as Qa,N as le,j as Sr,ay as $o,aI as Er,aJ as ut,aK as Uo,aL as vg,a as jg,g as ti}from"./appearance-DCqlsN7S.js";import{B as _g,I as Ng}from"./inline-error-boundary-ChbTvdIh.js";import{c as Pn,u as ge,A as qi,B as Y,ak as Hd,X as ft,a1 as vs,a2 as js,ae as Bg,a3 as _s,al as Sg,e as fi,m as Ot,n as qt,y as Gd,o as Ft,z as $t,S as Ze,K as Hi,w as Vi,a as Eg,F as Ya,J as Wd,R as Ns,q as Bs,b as Rg,D as Ji,g as Qi,i as Yi,H as Vd,G as li,j as Gr,k as za,I as Xi,am as Pa,l as mi,an as Cg,h as Jd,af as Tg,ao as Ig,ap as Ag,ad as Mg,aq as zg,ar as Pg,as as Gi,at as Ss,p as Dg}from"./error-boundary-C1x5W-AX.js";import{t as o}from"./messages-B7aIuFuF.js";import{p as Lg,t as Qd,a as Og,f as qg,s as Yd,b as Fg,c as $g,d as Ug,e as Kg}from"./team-bridge-trial-model-DLdMGEm0.js";import{r as Hg,u as Ko,T as Rr,b as Da,t as Xd,a as Gg,c as Wr,d as Wg,e as Vg,D as Jg,f as Cr,n as Qg,g as Yg,h as Xg,i as Zg,j as ep,k as np}from"./use-default-on-banner-C8DUslhy.js";import{I as Zd,L as tp}from"./log-in-C4tjIXzF.js";import"./console-mirror-IB35kNI8.js";import"./roles-D1pcbxAx.js";/**
1
+ import{j as t,c as U,r as u}from"./index-CxNjWpOb.js";import{cX as Iu,t as cs,N as ud,cY as Au,cZ as Mu,v as Lt,c_ as zu,cK as $a,c$ as Pu,d0 as us,d1 as Du,d2 as Ge,d3 as Lu,d4 as Ou,bH as md,d5 as yr,d6 as hd,a as qu,d7 as ui,d8 as Fu,d9 as $u,da as gd,db as Uu,dc as Ku,dd as Hu,de as Gu,df as Wu,dg as xo,dh as Vu,b as Sa,di as Ju,dj as pd,dk as Qu,dl as Yu,dm as Ea,aU as Ua,dn as Xu,dp as Zu,dq as em,dr as fd,R as nm,ds as tm,dt as vo,du as im,dv as kd,dw as ms,dx as am,dy as rm,dz as Gn,dA as jo,dB as _o,dC as hn,dD as No,dE as sm,dF as om,dG as lm,dH as dm,dI as cm,dJ as um,dK as xr,dL as mm,dM as hm,dN as gm,dO as pm,dP as fm,dQ as km,dR as wm,dS as bm,dT as ym,dU as Bo,dV as So,dW as ga,dX as xm,dY as vm,dZ as jm,d_ as _m,d$ as Eo,e0 as Nm,e1 as Bm,e2 as Sm,e3 as Em,e4 as Rm,e5 as Cm,e6 as Tm,e7 as Im,e8 as Am,e9 as Mm,ea as zm,eb as Pm,ec as Dm,ed as Lm,ee as Om,ef as qm,eg as Fm,eh as $m,ei as Um,ej as Km,ek as Hm,el as Gm,em as Wm,en as Vm,eo as Jm,ep as Qm,eq as Ym,er as Xm,es as Zm,et as eh,eu as Ro,ev as Co}from"./index-CdTxr8VM.js";import{aO as vr,d3 as hs,d4 as nh,bX as wd,d5 as an,d6 as gs,d7 as ct,d8 as th,d9 as ps,da as jr,db as gi,cw as bd,dc as Ra,dd as yd,de as fs,df as Ca,dg as gn,bU as xd,dh as vd,di as Ta,dj as ih,dk as ah,dl as rh,dm as sh,cL as ks,dn as oh,aR as lh,ad as dh,dp as ch,dq as uh,dr as mh,aj as ya,ds as hh,dt as gh,du as ph,dv as To,dw as fh,dx as kh,dy as wh,dz as bh,aN as yh,dA as xh,dB as vh,dC as Mt,dD as jh,dE as _h,dF as jd,bt as Ka,dG as Nh,dH as Bh,dI as Io,dJ as Sh,dK as Eh,c6 as gt,dL as Ki,dM as _d,dN as Mn,dO as Nd,cP as Ha,c_ as Rh,bi as Bd,dP as Sd,dQ as Ed,dR as Ch,dS as Th,dT as Ih,dU as Rd,dV as ki,dW as pi,dX as Ah,cV as Cd,dY as Mh,dZ as Td,d_ as Ia,d$ as Aa,e0 as Id,e1 as zh,e2 as Ao,e3 as Ph,d0 as Dh,b_ as Lh,e4 as Ad,e5 as Oh,e6 as qh,e7 as Fh,e8 as $h,e9 as Md,ea as ws,eb as zd,ec as Uh,ed as Xe,ee as Kh,ef as Hh,eg as Gh,cJ as Ga,eh as Wa,ei as bs,ej as oi,ek as Pd,cC as ys,el as Wh,em as Dd,en as Ld,eo as Mo,bf as Vh,cl as zo,ep as Jh,eq as Qh,er as Yh,es as Od,et as Xh,eu as Hr,ev as Ma,ew as _r,ex as qd,ey as Zh,ez as eg,eA as Po,eB as Do,eC as Lo,eD as Tn,eE as Oo,cH as ng,eF as qo,eG as tg,eH as Nr,eI as ig,eJ as ag,Q as rg,be as sg,c8 as og,eK as lg,eL as dg,eM as cg,eN as ug,eO as mg,eP as Br,eQ as hg,eR as gg}from"./conversation-input-sync-bGjigx3Z.js";import{Q as An,u as pt,m as Va,l as Ja,f as pg,w as xs,au as Fd,az as fg,i as xa,ar as kg,J as In,aA as wg,aB as Fo,aC as bg,aD as yg,aE as $d,aF as xg,aG as Ud,aH as Kd,ai as Qa,N as le,j as Sr,ay as $o,aI as Er,aJ as ut,aK as Uo,aL as vg,a as jg,g as ti}from"./appearance-RPtl24uV.js";import{B as _g,I as Ng}from"./inline-error-boundary-CEz9_z6I.js";import{c as Pn,u as ge,A as qi,B as Y,ak as Hd,X as ft,a1 as vs,a2 as js,ae as Bg,a3 as _s,al as Sg,e as fi,m as Ot,n as qt,y as Gd,o as Ft,z as $t,S as Ze,K as Hi,w as Vi,a as Eg,F as Ya,J as Wd,R as Ns,q as Bs,b as Rg,D as Ji,g as Qi,i as Yi,H as Vd,G as li,j as Gr,k as za,I as Xi,am as Pa,l as mi,an as Cg,h as Jd,af as Tg,ao as Ig,ap as Ag,ad as Mg,aq as zg,ar as Pg,as as Gi,at as Ss,p as Dg}from"./error-boundary-BQ911DnY.js";import{t as o}from"./messages-B7aIuFuF.js";import{p as Lg,t as Qd,a as Og,f as qg,s as Yd,b as Fg,c as $g,d as Ug,e as Kg}from"./team-bridge-trial-model-DLdMGEm0.js";import{r as Hg,u as Ko,T as Rr,b as Da,t as Xd,a as Gg,c as Wr,d as Wg,e as Vg,D as Jg,f as Cr,n as Qg,g as Yg,h as Xg,i as Zg,j as ep,k as np}from"./use-default-on-banner-CsqO83vJ.js";import{I as Zd,L as tp}from"./log-in-ge87dxtE.js";import"./console-mirror-COvJr604.js";import"./roles-D1pcbxAx.js";/**
2
2
  * @license lucide-react v0.507.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{_ as s,c as xt,l as E,d as j,V as kt,W as vt,X as _t,Y as bt,D as wt,$ as St,z as Et}from"./mermaid.core-D7wfsRjY.js";import{d as nt}from"./arc-BOZHzyJm.js";import"./conversation-input-sync-DlorrZ6B.js";import"./index-BWQzFq0n.js";import"./messages-B7aIuFuF.js";import"./appearance-DCqlsN7S.js";import"./roles-D1pcbxAx.js";import"./error-boundary-C1x5W-AX.js";var Q=function(){var n=s(function(x,i,a,c){for(a=a||{},c=x.length;c--;a[x[c]]=i);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],r=[1,11],d=[1,12],h=[1,13],f=[1,16],m=[1,17],u={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:s(function(i,a,c,p,y,o,w){var v=o.length-1;switch(y){case 1:return o[v-1];case 2:this.$=[];break;case 3:o[v-1].push(o[v]),this.$=o[v-1];break;case 4:case 5:this.$=o[v];break;case 6:case 7:this.$=[];break;case 8:p.getCommonDb().setDiagramTitle(o[v].substr(6)),this.$=o[v].substr(6);break;case 9:this.$=o[v].trim(),p.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[v].trim(),p.getCommonDb().setAccDescription(this.$);break;case 12:p.addSection(o[v].substr(8)),this.$=o[v].substr(8);break;case 15:p.addTask(o[v],0,""),this.$=o[v];break;case 16:p.addEvent(o[v].substr(2)),this.$=o[v];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:l,14:r,16:d,17:h,18:14,19:15,20:f,21:m},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:l,14:r,16:d,17:h,18:14,19:15,20:f,21:m},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:s(function(i,a){if(a.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=a,c}},"parseError"),parse:s(function(i){var a=this,c=[0],p=[],y=[null],o=[],w=this.table,v="",N=0,A=0,V=2,U=1,M=o.slice.call(arguments,1),g=Object.create(this.lexer),b={yy:{}};for(var L in this.yy)Object.prototype.hasOwnProperty.call(this.yy,L)&&(b.yy[L]=this.yy[L]);g.setInput(i,b.yy),b.yy.lexer=g,b.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var P=g.yylloc;o.push(P);var W=g.options&&g.options.ranges;typeof b.yy.parseError=="function"?this.parseError=b.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Z(T){c.length=c.length-2*T,y.length=y.length-T,o.length=o.length-T}s(Z,"popStack");function tt(){var T;return T=p.pop()||g.lex()||U,typeof T!="number"&&(T instanceof Array&&(p=T,T=p.pop()),T=a.symbols_[T]||T),T}s(tt,"lex");for(var S,C,I,J,R={},B,$,et,O;;){if(C=c[c.length-1],this.defaultActions[C]?I=this.defaultActions[C]:((S===null||typeof S>"u")&&(S=tt()),I=w[C]&&w[C][S]),typeof I>"u"||!I.length||!I[0]){var K="";O=[];for(B in w[C])this.terminals_[B]&&B>V&&O.push("'"+this.terminals_[B]+"'");g.showPosition?K="Parse error on line "+(N+1)+`:
1
+ import{_ as s,c as xt,l as E,d as j,V as kt,W as vt,X as _t,Y as bt,D as wt,$ as St,z as Et}from"./mermaid.core-34ehUt9F.js";import{d as nt}from"./arc-CJgGs8E0.js";import"./conversation-input-sync-bGjigx3Z.js";import"./index-CxNjWpOb.js";import"./messages-B7aIuFuF.js";import"./appearance-RPtl24uV.js";import"./roles-D1pcbxAx.js";import"./error-boundary-BQ911DnY.js";var Q=function(){var n=s(function(x,i,a,c){for(a=a||{},c=x.length;c--;a[x[c]]=i);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],r=[1,11],d=[1,12],h=[1,13],f=[1,16],m=[1,17],u={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:s(function(i,a,c,p,y,o,w){var v=o.length-1;switch(y){case 1:return o[v-1];case 2:this.$=[];break;case 3:o[v-1].push(o[v]),this.$=o[v-1];break;case 4:case 5:this.$=o[v];break;case 6:case 7:this.$=[];break;case 8:p.getCommonDb().setDiagramTitle(o[v].substr(6)),this.$=o[v].substr(6);break;case 9:this.$=o[v].trim(),p.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[v].trim(),p.getCommonDb().setAccDescription(this.$);break;case 12:p.addSection(o[v].substr(8)),this.$=o[v].substr(8);break;case 15:p.addTask(o[v],0,""),this.$=o[v];break;case 16:p.addEvent(o[v].substr(2)),this.$=o[v];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:l,14:r,16:d,17:h,18:14,19:15,20:f,21:m},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:l,14:r,16:d,17:h,18:14,19:15,20:f,21:m},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:s(function(i,a){if(a.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=a,c}},"parseError"),parse:s(function(i){var a=this,c=[0],p=[],y=[null],o=[],w=this.table,v="",N=0,A=0,V=2,U=1,M=o.slice.call(arguments,1),g=Object.create(this.lexer),b={yy:{}};for(var L in this.yy)Object.prototype.hasOwnProperty.call(this.yy,L)&&(b.yy[L]=this.yy[L]);g.setInput(i,b.yy),b.yy.lexer=g,b.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var P=g.yylloc;o.push(P);var W=g.options&&g.options.ranges;typeof b.yy.parseError=="function"?this.parseError=b.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Z(T){c.length=c.length-2*T,y.length=y.length-T,o.length=o.length-T}s(Z,"popStack");function tt(){var T;return T=p.pop()||g.lex()||U,typeof T!="number"&&(T instanceof Array&&(p=T,T=p.pop()),T=a.symbols_[T]||T),T}s(tt,"lex");for(var S,C,I,J,R={},B,$,et,O;;){if(C=c[c.length-1],this.defaultActions[C]?I=this.defaultActions[C]:((S===null||typeof S>"u")&&(S=tt()),I=w[C]&&w[C][S]),typeof I>"u"||!I.length||!I[0]){var K="";O=[];for(B in w[C])this.terminals_[B]&&B>V&&O.push("'"+this.terminals_[B]+"'");g.showPosition?K="Parse error on line "+(N+1)+`:
2
2
  `+g.showPosition()+`
3
3
  Expecting `+O.join(", ")+", got '"+(this.terminals_[S]||S)+"'":K="Parse error on line "+(N+1)+": Unexpected "+(S==U?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(K,{text:g.match,token:this.terminals_[S]||S,line:g.yylineno,loc:P,expected:O})}if(I[0]instanceof Array&&I.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+S);switch(I[0]){case 1:c.push(S),y.push(g.yytext),o.push(g.yylloc),c.push(I[1]),S=null,A=g.yyleng,v=g.yytext,N=g.yylineno,P=g.yylloc;break;case 2:if($=this.productions_[I[1]][1],R.$=y[y.length-$],R._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},W&&(R._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),J=this.performAction.apply(R,[v,A,N,b.yy,I[1],y,o].concat(M)),typeof J<"u")return J;$&&(c=c.slice(0,-1*$*2),y=y.slice(0,-1*$),o=o.slice(0,-1*$)),c.push(this.productions_[I[1]][0]),y.push(R.$),o.push(R._$),et=w[c[c.length-2]][c[c.length-1]],c.push(et);break;case 3:return!0}}return!0},"parse")},k=function(){var x={EOF:1,parseError:s(function(a,c){if(this.yy.parser)this.yy.parser.parseError(a,c);else throw new Error(a)},"parseError"),setInput:s(function(i,a){return this.yy=a||this.yy||{},this._input=i,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:s(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:s(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var p=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===p.length?this.yylloc.first_column:0)+p[p.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(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:s(function(i){this.unput(this.match.slice(i))},"less"),pastInput:s(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{w as N,x as A}from"./appearance-DCqlsN7S.js";import{r as d,j as t,c as p}from"./index-BWQzFq0n.js";import{N as I,u as y,d as j}from"./index-Buuz619t.js";import{u as v,A as w,p as T,B as h,X as k}from"./error-boundary-C1x5W-AX.js";import{t as r}from"./messages-B7aIuFuF.js";let _;function L(e){_=e}function R(e){const n=_===e;return _=void 0,n}const C=5e3,G=3e3,Y=3e3,S=6e4,O=3e5;function z(e,n){return e===void 0||!Number.isFinite(e)?n:Math.min(Math.max(e,1e3),O)}function K(e){const n=e;if(typeof n?.retryAfterMs=="number"&&Number.isFinite(n.retryAfterMs))return n.retryAfterMs;const a=n?.detail?.retry_after_seconds;return typeof a=="number"&&Number.isFinite(a)?a*1e3:void 0}function U(e,n){const s=Math.max(0,e-1);return Math.min(n*2**s,S)}function V(e){return e==="enabled"}function X(e,n){return e.map(s=>({accountId:s.account_id,kind:s.kind,threadRootId:s.thread_root_id,expiresAt:n+s.expires_in_ms}))}function q(e,n){const s=new Set,a=[];for(const i of e){if(i.expiresAt<=n.now||i.kind!=="human"||i.threadRootId!==n.scope||n.selfAccountId&&i.accountId===n.selfAccountId||s.has(i.accountId))continue;s.add(i.accountId);const o=n.labelFor(i.accountId)?.trim();o&&a.push(o)}return a}function H(e){switch(e.length){case 0:return{form:"none"};case 1:return{form:"one",names:[e[0]]};case 2:return{form:"two",names:[e[0],e[1]]};case 3:return{form:"three",names:[e[0],e[1],e[2]]};default:return{form:"several"}}}function J(e,n){let s=null;for(const a of e)a.expiresAt>n&&(s===null||a.expiresAt<s)&&(s=a.expiresAt);return s}const Q=N(e=>({shareTyping:null,setShareTyping:n=>e({shareTyping:n})})),W=({consentText:e,pending:n,failure:s,onTurnOff:a,onDismiss:i,defaultExpanded:o=!1})=>{v();const[u,b]=d.useState(o),l=d.useId(),m=d.useId(),f=n!==null,c=n==="turn_off";return t.jsx("section",{"data-agent-messages-banner":"default-on","aria-label":r("ui.agentMessages.banner.title"),children:t.jsx(w,{variant:"info",className:p(I,"items-start border-transparent"),children:t.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-2",children:[t.jsxs("div",{className:"flex w-full min-w-0 items-start gap-3",children:[t.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[t.jsx(T,{children:r("ui.agentMessages.banner.title")}),t.jsx("p",{className:"text-body-sm text-ink-muted",children:r("ui.agentMessages.banner.body")})]}),t.jsx(h,{variant:"ghost",size:"icon-sm",className:"shrink-0 text-ink-muted","aria-label":r("ui.agentMessages.banner.dismiss"),disabled:f,onClick:i,"data-agent-messages-banner-action":"dismiss",children:t.jsx(k,{"aria-hidden":"true"})})]}),t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsx(h,{variant:"secondary",size:"sm",disabled:f,onClick:a,"aria-describedby":m,"data-agent-messages-banner-action":"turn_off",children:t.jsxs("span",{className:"grid",children:[t.jsx("span",{className:p("col-start-1 row-start-1",c&&"invisible"),"aria-hidden":c,children:r("ui.agentMessages.banner.turn_off")}),t.jsx("span",{className:p("col-start-1 row-start-1",!c&&"invisible"),"aria-hidden":!c,children:r("ui.agentMessages.banner.turning_off")})]})}),t.jsx(h,{variant:"ghost",size:"sm",className:"text-ink","aria-expanded":u,"aria-controls":u?l:void 0,onClick:()=>b(g=>!g),"data-agent-messages-banner-action":"read",children:u?r("ui.agentMessages.banner.hide"):r("ui.agentMessages.banner.read")}),t.jsx("span",{id:m,className:"text-pretty text-meta text-ink-muted",children:r("ui.agentMessages.banner.turn_off_hint")})]}),u&&t.jsx("section",{id:l,className:"rounded-md bg-sunken p-3 @max-[1024px]/bridge:max-h-[35dvh] @max-[1024px]/bridge:overflow-y-auto focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2","aria-label":r("ui.agentMessages.banner.read"),"data-agent-messages-banner-consent":"",children:e?t.jsx("p",{className:"max-w-prose whitespace-pre-wrap text-body-sm text-ink-muted",children:e}):t.jsx("p",{className:"text-body-sm text-ink-muted",children:r("ui.agentMessages.banner.consent_unavailable")})}),s&&t.jsx("p",{role:"alert",className:"text-body-sm text-ink",children:s==="turn_off"?r("ui.agentMessages.banner.turn_off_failed"):r("ui.agentMessages.banner.dismiss_failed")})]})})})};function Z(e,n,s){const a=e?.tenant_id??null;return!y(o=>s&&a?o.defaultOnDismissed[j(s,a)]===!0:!1)&&A(e,n)}function $(e){const{api:n,accountId:s,tenantId:a,markerTenantId:i,onSettings:o,onChanged:u}=e,[b,l]=d.useState(null),[m,f]=d.useState(null),c=d.useRef(!1);async function g(x,M){if(!(c.current||!s)){c.current=!0,l(x),f(null);try{await M()}catch{f(x);return}finally{c.current=!1,l(null)}try{await u?.()}catch{}}}return{pending:b,failure:m,turnOff:()=>g("turn_off",async()=>{const x=await n.updateSettings({expected_account_id:s,...a?{tenant_id:a}:{},state:"disabled"});o?.(x)}),dismiss:()=>g("dismiss",async()=>{await n.dismissOnboarding(),s&&i&&y.getState().markDefaultOnDismissed(s,i)})}}export{W as D,G as T,C as a,z as b,S as c,Z as d,$ as e,Y as f,X as g,U as h,q as i,H as j,V as k,R as l,J as n,L as r,K as t,Q as u};
1
+ import{w as N,x as A}from"./appearance-RPtl24uV.js";import{r as d,j as t,c as p}from"./index-CxNjWpOb.js";import{N as I,u as y,d as j}from"./index-CdTxr8VM.js";import{u as v,A as w,p as T,B as h,X as k}from"./error-boundary-BQ911DnY.js";import{t as r}from"./messages-B7aIuFuF.js";let _;function L(e){_=e}function R(e){const n=_===e;return _=void 0,n}const C=5e3,G=3e3,Y=3e3,S=6e4,O=3e5;function z(e,n){return e===void 0||!Number.isFinite(e)?n:Math.min(Math.max(e,1e3),O)}function K(e){const n=e;if(typeof n?.retryAfterMs=="number"&&Number.isFinite(n.retryAfterMs))return n.retryAfterMs;const a=n?.detail?.retry_after_seconds;return typeof a=="number"&&Number.isFinite(a)?a*1e3:void 0}function U(e,n){const s=Math.max(0,e-1);return Math.min(n*2**s,S)}function V(e){return e==="enabled"}function X(e,n){return e.map(s=>({accountId:s.account_id,kind:s.kind,threadRootId:s.thread_root_id,expiresAt:n+s.expires_in_ms}))}function q(e,n){const s=new Set,a=[];for(const i of e){if(i.expiresAt<=n.now||i.kind!=="human"||i.threadRootId!==n.scope||n.selfAccountId&&i.accountId===n.selfAccountId||s.has(i.accountId))continue;s.add(i.accountId);const o=n.labelFor(i.accountId)?.trim();o&&a.push(o)}return a}function H(e){switch(e.length){case 0:return{form:"none"};case 1:return{form:"one",names:[e[0]]};case 2:return{form:"two",names:[e[0],e[1]]};case 3:return{form:"three",names:[e[0],e[1],e[2]]};default:return{form:"several"}}}function J(e,n){let s=null;for(const a of e)a.expiresAt>n&&(s===null||a.expiresAt<s)&&(s=a.expiresAt);return s}const Q=N(e=>({shareTyping:null,setShareTyping:n=>e({shareTyping:n})})),W=({consentText:e,pending:n,failure:s,onTurnOff:a,onDismiss:i,defaultExpanded:o=!1})=>{v();const[u,b]=d.useState(o),l=d.useId(),m=d.useId(),f=n!==null,c=n==="turn_off";return t.jsx("section",{"data-agent-messages-banner":"default-on","aria-label":r("ui.agentMessages.banner.title"),children:t.jsx(w,{variant:"info",className:p(I,"items-start border-transparent"),children:t.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-2",children:[t.jsxs("div",{className:"flex w-full min-w-0 items-start gap-3",children:[t.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[t.jsx(T,{children:r("ui.agentMessages.banner.title")}),t.jsx("p",{className:"text-body-sm text-ink-muted",children:r("ui.agentMessages.banner.body")})]}),t.jsx(h,{variant:"ghost",size:"icon-sm",className:"shrink-0 text-ink-muted","aria-label":r("ui.agentMessages.banner.dismiss"),disabled:f,onClick:i,"data-agent-messages-banner-action":"dismiss",children:t.jsx(k,{"aria-hidden":"true"})})]}),t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsx(h,{variant:"secondary",size:"sm",disabled:f,onClick:a,"aria-describedby":m,"data-agent-messages-banner-action":"turn_off",children:t.jsxs("span",{className:"grid",children:[t.jsx("span",{className:p("col-start-1 row-start-1",c&&"invisible"),"aria-hidden":c,children:r("ui.agentMessages.banner.turn_off")}),t.jsx("span",{className:p("col-start-1 row-start-1",!c&&"invisible"),"aria-hidden":!c,children:r("ui.agentMessages.banner.turning_off")})]})}),t.jsx(h,{variant:"ghost",size:"sm",className:"text-ink","aria-expanded":u,"aria-controls":u?l:void 0,onClick:()=>b(g=>!g),"data-agent-messages-banner-action":"read",children:u?r("ui.agentMessages.banner.hide"):r("ui.agentMessages.banner.read")}),t.jsx("span",{id:m,className:"text-pretty text-meta text-ink-muted",children:r("ui.agentMessages.banner.turn_off_hint")})]}),u&&t.jsx("section",{id:l,className:"rounded-md bg-sunken p-3 @max-[1024px]/bridge:max-h-[35dvh] @max-[1024px]/bridge:overflow-y-auto focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2","aria-label":r("ui.agentMessages.banner.read"),"data-agent-messages-banner-consent":"",children:e?t.jsx("p",{className:"max-w-prose whitespace-pre-wrap text-body-sm text-ink-muted",children:e}):t.jsx("p",{className:"text-body-sm text-ink-muted",children:r("ui.agentMessages.banner.consent_unavailable")})}),s&&t.jsx("p",{role:"alert",className:"text-body-sm text-ink",children:s==="turn_off"?r("ui.agentMessages.banner.turn_off_failed"):r("ui.agentMessages.banner.dismiss_failed")})]})})})};function Z(e,n,s){const a=e?.tenant_id??null;return!y(o=>s&&a?o.defaultOnDismissed[j(s,a)]===!0:!1)&&A(e,n)}function $(e){const{api:n,accountId:s,tenantId:a,markerTenantId:i,onSettings:o,onChanged:u}=e,[b,l]=d.useState(null),[m,f]=d.useState(null),c=d.useRef(!1);async function g(x,M){if(!(c.current||!s)){c.current=!0,l(x),f(null);try{await M()}catch{f(x);return}finally{c.current=!1,l(null)}try{await u?.()}catch{}}}return{pending:b,failure:m,turnOff:()=>g("turn_off",async()=>{const x=await n.updateSettings({expected_account_id:s,...a?{tenant_id:a}:{},state:"disabled"});o?.(x)}),dismiss:()=>g("dismiss",async()=>{await n.dismissOnboarding(),s&&i&&y.getState().markDefaultOnDismissed(s,i)})}}export{W as D,G as T,C as a,z as b,S as c,Z as d,$ as e,Y as f,X as g,U as h,q as i,H as j,V as k,R as l,J as n,L as r,K as t,Q as u};
@@ -1,4 +1,4 @@
1
- import{j as c,c as p,r as U}from"./index-BWQzFq0n.js";import{c as d,u as T,e as Q}from"./error-boundary-C1x5W-AX.js";import{t as i}from"./messages-B7aIuFuF.js";import{c5 as E,c6 as H,c7 as V,be as M,bf as A,ac as S,bV as B,aR as N,bW as Y}from"./conversation-input-sync-DlorrZ6B.js";import{bX as P,bY as Z,bZ as W,b_ as G,b$ as X,c0 as J,c1 as ee,c2 as K}from"./index-Buuz619t.js";import{B as te}from"./book-open-fa_DaJBq.js";import{t as C,n as ae,a as D,g as ne,e as w,h as v,i as I,j as q,f as L}from"./en-US-CW_dDnkH.js";import{m as se,u as _,f as oe,A as ie}from"./appearance-DCqlsN7S.js";import{b as re,l as ce}from"./publication-validation-DygSOQkj.js";/**
1
+ import{j as c,c as p,r as U}from"./index-CxNjWpOb.js";import{c as d,u as T,e as Q}from"./error-boundary-BQ911DnY.js";import{t as i}from"./messages-B7aIuFuF.js";import{c5 as E,c6 as H,c7 as V,be as M,bf as A,ac as S,bV as B,aR as N,bW as Y}from"./conversation-input-sync-bGjigx3Z.js";import{bX as P,bY as Z,bZ as W,b_ as G,b$ as X,c0 as J,c1 as ee,c2 as K}from"./index-CdTxr8VM.js";import{B as te}from"./book-open-DSEz_hQQ.js";import{t as C,n as ae,a as D,g as ne,e as w,h as v,i as I,j as q,f as L}from"./en-US-CW_dDnkH.js";import{m as se,u as _,f as oe,A as ie}from"./appearance-RPtl24uV.js";import{b as re,l as ce}from"./publication-validation-BIxxMtE8.js";/**
2
2
  * @license lucide-react v0.507.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{_ as n,s as ii,g as ei,t as vt,q as si,a as ni,b as ai,l as Lt,K as oi,e as ri,z as hi,G as lt,F as Et,H as li,M as ci,i as ui,N as gi}from"./mermaid.core-D7wfsRjY.js";import{k as kt,l as Tt,n as Rt}from"./conversation-input-sync-DlorrZ6B.js";import"./index-BWQzFq0n.js";import"./messages-B7aIuFuF.js";import"./appearance-DCqlsN7S.js";import"./roles-D1pcbxAx.js";import"./error-boundary-C1x5W-AX.js";var at=function(){var t=n(function(B,r,l,c){for(l=l||{},c=B.length;c--;l[B[c]]=r);return l},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],o=[1,5],p=[1,6],g=[1,7],m=[1,5,10,12,14,16,18,19,21,23,34,35,36],T=[1,25],E=[1,26],S=[1,28],R=[1,29],I=[1,30],V=[1,31],_=[1,32],L=[1,33],f=[1,34],C=[1,35],h=[1,36],D=[1,37],N=[1,43],yt=[1,42],bt=[1,47],$=[1,50],b=[1,10,12,14,16,18,19,21,23,34,35,36],J=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],P=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],At=[1,64],tt={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:n(function(r,l,c,u,y,a,X){var x=a.length-1;switch(y){case 5:u.setOrientation(a[x]);break;case 9:u.setDiagramTitle(a[x].text.trim());break;case 12:u.setLineData({text:"",type:"text"},a[x]);break;case 13:u.setLineData(a[x-1],a[x]);break;case 14:u.setBarData({text:"",type:"text"},a[x]);break;case 15:u.setBarData(a[x-1],a[x]);break;case 16:this.$=a[x].trim(),u.setAccTitle(this.$);break;case 17:case 18:this.$=a[x].trim(),u.setAccDescription(this.$);break;case 19:this.$=a[x-1];break;case 20:this.$=[Number(a[x-2]),...a[x]];break;case 21:this.$=[Number(a[x])];break;case 22:u.setXAxisTitle(a[x]);break;case 23:u.setXAxisTitle(a[x-1]);break;case 24:u.setXAxisTitle({type:"text",text:""});break;case 25:u.setXAxisBand(a[x]);break;case 26:u.setXAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 27:this.$=a[x-1];break;case 28:this.$=[a[x-2],...a[x]];break;case 29:this.$=[a[x]];break;case 30:u.setYAxisTitle(a[x]);break;case 31:u.setYAxisTitle(a[x-1]);break;case 32:u.setYAxisTitle({type:"text",text:""});break;case 33:u.setYAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 37:this.$={text:a[x],type:"text"};break;case 38:this.$={text:a[x],type:"text"};break;case 39:this.$={text:a[x],type:"markdown"};break;case 40:this.$=a[x];break;case 41:this.$=a[x-1]+""+a[x];break}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,34:o,35:p,36:g}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,34:o,35:p,36:g}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:o,35:p,36:g}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(m,[2,34]),t(m,[2,35]),t(m,[2,36]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,34:o,35:p,36:g}),{1:[2,3]},t(m,[2,5]),t(i,[2,7],{4:22,34:o,35:p,36:g}),{11:23,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:h,50:D},{11:39,13:38,24:N,27:yt,29:40,30:41,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:h,50:D},{11:45,15:44,27:bt,33:46,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:h,50:D},{11:49,17:48,24:$,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:h,50:D},{11:52,17:51,24:$,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:h,50:D},{20:[1,53]},{22:[1,54]},t(b,[2,18]),{1:[2,2]},t(b,[2,8]),t(b,[2,9]),t(J,[2,37],{40:55,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:h,50:D}),t(J,[2,38]),t(J,[2,39]),t(P,[2,40]),t(P,[2,42]),t(P,[2,43]),t(P,[2,44]),t(P,[2,45]),t(P,[2,46]),t(P,[2,47]),t(P,[2,48]),t(P,[2,49]),t(P,[2,50]),t(P,[2,51]),t(b,[2,10]),t(b,[2,22],{30:41,29:56,24:N,27:yt}),t(b,[2,24]),t(b,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:h,50:D},t(b,[2,11]),t(b,[2,30],{33:60,27:bt}),t(b,[2,32]),{31:[1,61]},t(b,[2,12]),{17:62,24:$},{25:63,27:At},t(b,[2,14]),{17:65,24:$},t(b,[2,16]),t(b,[2,17]),t(P,[2,41]),t(b,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(b,[2,31]),{27:[1,69]},t(b,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(b,[2,15]),t(b,[2,26]),t(b,[2,27]),{11:59,32:72,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:h,50:D},t(b,[2,33]),t(b,[2,19]),{25:73,27:At},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:n(function(r,l){if(l.recoverable)this.trace(r);else{var c=new Error(r);throw c.hash=l,c}},"parseError"),parse:n(function(r){var l=this,c=[0],u=[],y=[null],a=[],X=this.table,x="",G=0,Ct=0,Kt=2,wt=1,Zt=a.slice.call(arguments,1),A=Object.create(this.lexer),W={yy:{}};for(var it in this.yy)Object.prototype.hasOwnProperty.call(this.yy,it)&&(W.yy[it]=this.yy[it]);A.setInput(r,W.yy),W.yy.lexer=A,W.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var et=A.yylloc;a.push(et);var Jt=A.options&&A.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ti(k){c.length=c.length-2*k,y.length=y.length-k,a.length=a.length-k}n(ti,"popStack");function St(){var k;return k=u.pop()||A.lex()||wt,typeof k!="number"&&(k instanceof Array&&(u=k,k=u.pop()),k=l.symbols_[k]||k),k}n(St,"lex");for(var w,O,v,st,z={},j,M,_t,Q;;){if(O=c[c.length-1],this.defaultActions[O]?v=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=St()),v=X[O]&&X[O][w]),typeof v>"u"||!v.length||!v[0]){var nt="";Q=[];for(j in X[O])this.terminals_[j]&&j>Kt&&Q.push("'"+this.terminals_[j]+"'");A.showPosition?nt="Parse error on line "+(G+1)+`:
1
+ import{_ as n,s as ii,g as ei,t as vt,q as si,a as ni,b as ai,l as Lt,K as oi,e as ri,z as hi,G as lt,F as Et,H as li,M as ci,i as ui,N as gi}from"./mermaid.core-34ehUt9F.js";import{k as kt,l as Tt,n as Rt}from"./conversation-input-sync-bGjigx3Z.js";import"./index-CxNjWpOb.js";import"./messages-B7aIuFuF.js";import"./appearance-RPtl24uV.js";import"./roles-D1pcbxAx.js";import"./error-boundary-BQ911DnY.js";var at=function(){var t=n(function(B,r,l,c){for(l=l||{},c=B.length;c--;l[B[c]]=r);return l},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],o=[1,5],p=[1,6],g=[1,7],m=[1,5,10,12,14,16,18,19,21,23,34,35,36],T=[1,25],E=[1,26],S=[1,28],R=[1,29],I=[1,30],V=[1,31],_=[1,32],L=[1,33],f=[1,34],C=[1,35],h=[1,36],D=[1,37],N=[1,43],yt=[1,42],bt=[1,47],$=[1,50],b=[1,10,12,14,16,18,19,21,23,34,35,36],J=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],P=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],At=[1,64],tt={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:n(function(r,l,c,u,y,a,X){var x=a.length-1;switch(y){case 5:u.setOrientation(a[x]);break;case 9:u.setDiagramTitle(a[x].text.trim());break;case 12:u.setLineData({text:"",type:"text"},a[x]);break;case 13:u.setLineData(a[x-1],a[x]);break;case 14:u.setBarData({text:"",type:"text"},a[x]);break;case 15:u.setBarData(a[x-1],a[x]);break;case 16:this.$=a[x].trim(),u.setAccTitle(this.$);break;case 17:case 18:this.$=a[x].trim(),u.setAccDescription(this.$);break;case 19:this.$=a[x-1];break;case 20:this.$=[Number(a[x-2]),...a[x]];break;case 21:this.$=[Number(a[x])];break;case 22:u.setXAxisTitle(a[x]);break;case 23:u.setXAxisTitle(a[x-1]);break;case 24:u.setXAxisTitle({type:"text",text:""});break;case 25:u.setXAxisBand(a[x]);break;case 26:u.setXAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 27:this.$=a[x-1];break;case 28:this.$=[a[x-2],...a[x]];break;case 29:this.$=[a[x]];break;case 30:u.setYAxisTitle(a[x]);break;case 31:u.setYAxisTitle(a[x-1]);break;case 32:u.setYAxisTitle({type:"text",text:""});break;case 33:u.setYAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 37:this.$={text:a[x],type:"text"};break;case 38:this.$={text:a[x],type:"text"};break;case 39:this.$={text:a[x],type:"markdown"};break;case 40:this.$=a[x];break;case 41:this.$=a[x-1]+""+a[x];break}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,34:o,35:p,36:g}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,34:o,35:p,36:g}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:o,35:p,36:g}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(m,[2,34]),t(m,[2,35]),t(m,[2,36]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,34:o,35:p,36:g}),{1:[2,3]},t(m,[2,5]),t(i,[2,7],{4:22,34:o,35:p,36:g}),{11:23,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:h,50:D},{11:39,13:38,24:N,27:yt,29:40,30:41,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:h,50:D},{11:45,15:44,27:bt,33:46,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:h,50:D},{11:49,17:48,24:$,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:h,50:D},{11:52,17:51,24:$,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:h,50:D},{20:[1,53]},{22:[1,54]},t(b,[2,18]),{1:[2,2]},t(b,[2,8]),t(b,[2,9]),t(J,[2,37],{40:55,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:h,50:D}),t(J,[2,38]),t(J,[2,39]),t(P,[2,40]),t(P,[2,42]),t(P,[2,43]),t(P,[2,44]),t(P,[2,45]),t(P,[2,46]),t(P,[2,47]),t(P,[2,48]),t(P,[2,49]),t(P,[2,50]),t(P,[2,51]),t(b,[2,10]),t(b,[2,22],{30:41,29:56,24:N,27:yt}),t(b,[2,24]),t(b,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:h,50:D},t(b,[2,11]),t(b,[2,30],{33:60,27:bt}),t(b,[2,32]),{31:[1,61]},t(b,[2,12]),{17:62,24:$},{25:63,27:At},t(b,[2,14]),{17:65,24:$},t(b,[2,16]),t(b,[2,17]),t(P,[2,41]),t(b,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(b,[2,31]),{27:[1,69]},t(b,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(b,[2,15]),t(b,[2,26]),t(b,[2,27]),{11:59,32:72,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:h,50:D},t(b,[2,33]),t(b,[2,19]),{25:73,27:At},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:n(function(r,l){if(l.recoverable)this.trace(r);else{var c=new Error(r);throw c.hash=l,c}},"parseError"),parse:n(function(r){var l=this,c=[0],u=[],y=[null],a=[],X=this.table,x="",G=0,Ct=0,Kt=2,wt=1,Zt=a.slice.call(arguments,1),A=Object.create(this.lexer),W={yy:{}};for(var it in this.yy)Object.prototype.hasOwnProperty.call(this.yy,it)&&(W.yy[it]=this.yy[it]);A.setInput(r,W.yy),W.yy.lexer=A,W.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var et=A.yylloc;a.push(et);var Jt=A.options&&A.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ti(k){c.length=c.length-2*k,y.length=y.length-k,a.length=a.length-k}n(ti,"popStack");function St(){var k;return k=u.pop()||A.lex()||wt,typeof k!="number"&&(k instanceof Array&&(u=k,k=u.pop()),k=l.symbols_[k]||k),k}n(St,"lex");for(var w,O,v,st,z={},j,M,_t,Q;;){if(O=c[c.length-1],this.defaultActions[O]?v=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=St()),v=X[O]&&X[O][w]),typeof v>"u"||!v.length||!v[0]){var nt="";Q=[];for(j in X[O])this.terminals_[j]&&j>Kt&&Q.push("'"+this.terminals_[j]+"'");A.showPosition?nt="Parse error on line "+(G+1)+`:
2
2
  `+A.showPosition()+`
3
3
  Expecting `+Q.join(", ")+", got '"+(this.terminals_[w]||w)+"'":nt="Parse error on line "+(G+1)+": Unexpected "+(w==wt?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(nt,{text:A.match,token:this.terminals_[w]||w,line:A.yylineno,loc:et,expected:Q})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+w);switch(v[0]){case 1:c.push(w),y.push(A.yytext),a.push(A.yylloc),c.push(v[1]),w=null,Ct=A.yyleng,x=A.yytext,G=A.yylineno,et=A.yylloc;break;case 2:if(M=this.productions_[v[1]][1],z.$=y[y.length-M],z._$={first_line:a[a.length-(M||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(M||1)].first_column,last_column:a[a.length-1].last_column},Jt&&(z._$.range=[a[a.length-(M||1)].range[0],a[a.length-1].range[1]]),st=this.performAction.apply(z,[x,Ct,G,W.yy,v[1],y,a].concat(Zt)),typeof st<"u")return st;M&&(c=c.slice(0,-1*M*2),y=y.slice(0,-1*M),a=a.slice(0,-1*M)),c.push(this.productions_[v[1]][0]),y.push(z.$),a.push(z._$),_t=X[c[c.length-2]][c[c.length-1]],c.push(_t);break;case 3:return!0}}return!0},"parse")},Qt=function(){var B={EOF:1,parseError:n(function(l,c){if(this.yy.parser)this.yy.parser.parseError(l,c);else throw new Error(l)},"parseError"),setInput:n(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:n(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:n(function(r){var l=r.length,c=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 u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(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:n(function(r){this.unput(this.match.slice(r))},"less"),pastInput:n(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:n(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:n(function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
@@ -6,13 +6,13 @@
6
6
  <title>Local Operator Console Capture</title>
7
7
  <meta http-equiv="Content-Security-Policy"
8
8
  content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:" />
9
- <script type="module" crossorigin src="./assets/consoleCapture-D4G96kDb.js"></script>
9
+ <script type="module" crossorigin src="./assets/consoleCapture-Cl0JWwqq.js"></script>
10
10
  <link rel="modulepreload" crossorigin href="./assets/messages-B7aIuFuF.js">
11
- <link rel="modulepreload" crossorigin href="./assets/index-BWQzFq0n.js">
11
+ <link rel="modulepreload" crossorigin href="./assets/index-CxNjWpOb.js">
12
12
  <link rel="modulepreload" crossorigin href="./assets/roles-D1pcbxAx.js">
13
- <link rel="modulepreload" crossorigin href="./assets/appearance-DCqlsN7S.js">
14
- <link rel="modulepreload" crossorigin href="./assets/console-mirror-IB35kNI8.js">
15
- <link rel="stylesheet" crossorigin href="./assets/index-BnqyWEPM.css">
13
+ <link rel="modulepreload" crossorigin href="./assets/appearance-RPtl24uV.js">
14
+ <link rel="modulepreload" crossorigin href="./assets/console-mirror-COvJr604.js">
15
+ <link rel="stylesheet" crossorigin href="./assets/index-BlC0KBYH.css">
16
16
  <link rel="stylesheet" crossorigin href="./assets/console-mirror-C58ni4_c.css">
17
17
  </head>
18
18
 
@@ -41,15 +41,15 @@
41
41
  <meta http-equiv="Content-Security-Policy"
42
42
  content="default-src 'self'; connect-src 'self' http://localhost:1111 http://127.0.0.1:1111 http://localhost:8080 http://127.0.0.1:8080 https://api.radienthq.com https://us.i.posthog.com https://login.microsoftonline.com https://accounts.google.com; script-src 'self' https://us-assets.i.posthog.com https://accounts.google.com https://login.microsoftonline.com; style-src 'self' 'unsafe-inline' data:; img-src 'self' data: blob: http://localhost:1111 http://127.0.0.1:1111; media-src 'self' blob: http://localhost:1111 http://127.0.0.1:1111; font-src 'self' data:; frame-src 'self' data: blob: lo-supplement: http://localhost:1111 http://127.0.0.1:1111 https://accounts.google.com https://login.microsoftonline.com" />
43
43
  <meta http-equiv="Cross-Origin-Opener-Policy" content="same-origin-allow-popups" />
44
- <script type="module" crossorigin src="./assets/index-Buuz619t.js"></script>
44
+ <script type="module" crossorigin src="./assets/index-CdTxr8VM.js"></script>
45
45
  <link rel="modulepreload" crossorigin href="./assets/messages-B7aIuFuF.js">
46
- <link rel="modulepreload" crossorigin href="./assets/index-BWQzFq0n.js">
46
+ <link rel="modulepreload" crossorigin href="./assets/index-CxNjWpOb.js">
47
47
  <link rel="modulepreload" crossorigin href="./assets/roles-D1pcbxAx.js">
48
- <link rel="modulepreload" crossorigin href="./assets/appearance-DCqlsN7S.js">
49
- <link rel="modulepreload" crossorigin href="./assets/error-boundary-C1x5W-AX.js">
50
- <link rel="modulepreload" crossorigin href="./assets/conversation-input-sync-DlorrZ6B.js">
51
- <link rel="modulepreload" crossorigin href="./assets/console-mirror-IB35kNI8.js">
52
- <link rel="stylesheet" crossorigin href="./assets/index-BnqyWEPM.css">
48
+ <link rel="modulepreload" crossorigin href="./assets/appearance-RPtl24uV.js">
49
+ <link rel="modulepreload" crossorigin href="./assets/error-boundary-BQ911DnY.js">
50
+ <link rel="modulepreload" crossorigin href="./assets/conversation-input-sync-bGjigx3Z.js">
51
+ <link rel="modulepreload" crossorigin href="./assets/console-mirror-COvJr604.js">
52
+ <link rel="stylesheet" crossorigin href="./assets/index-BlC0KBYH.css">
53
53
  <link rel="stylesheet" crossorigin href="./assets/conversation-input-sync-CwRrAMVk.css">
54
54
  <link rel="stylesheet" crossorigin href="./assets/console-mirror-C58ni4_c.css">
55
55
  <link rel="stylesheet" crossorigin href="./assets/index-CruN78l1.css">
@@ -8,11 +8,11 @@
8
8
  <!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
9
9
  <meta http-equiv="Content-Security-Policy"
10
10
  content="default-src 'self'; connect-src 'self' http://localhost:1111 http://127.0.0.1:1111; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: http://localhost:1111 http://127.0.0.1:1111; media-src 'self' http://localhost:1111 http://127.0.0.1:1111; font-src 'self' data:" />
11
- <script type="module" crossorigin src="./assets/installer-Bplg-bpo.js"></script>
11
+ <script type="module" crossorigin src="./assets/installer-G-5Vi1J-.js"></script>
12
12
  <link rel="modulepreload" crossorigin href="./assets/messages-B7aIuFuF.js">
13
- <link rel="modulepreload" crossorigin href="./assets/index-BWQzFq0n.js">
14
- <link rel="modulepreload" crossorigin href="./assets/error-boundary-C1x5W-AX.js">
15
- <link rel="stylesheet" crossorigin href="./assets/index-BnqyWEPM.css">
13
+ <link rel="modulepreload" crossorigin href="./assets/index-CxNjWpOb.js">
14
+ <link rel="modulepreload" crossorigin href="./assets/error-boundary-BQ911DnY.js">
15
+ <link rel="stylesheet" crossorigin href="./assets/index-BlC0KBYH.css">
16
16
  </head>
17
17
 
18
18
  <body>
@@ -6,14 +6,14 @@
6
6
  <title>Local Operator Quick Send</title>
7
7
  <meta http-equiv="Content-Security-Policy"
8
8
  content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:" />
9
- <script type="module" crossorigin src="./assets/mini-DXMqE-0u.js"></script>
9
+ <script type="module" crossorigin src="./assets/mini-CiYAeR9E.js"></script>
10
10
  <link rel="modulepreload" crossorigin href="./assets/messages-B7aIuFuF.js">
11
- <link rel="modulepreload" crossorigin href="./assets/index-BWQzFq0n.js">
11
+ <link rel="modulepreload" crossorigin href="./assets/index-CxNjWpOb.js">
12
12
  <link rel="modulepreload" crossorigin href="./assets/roles-D1pcbxAx.js">
13
- <link rel="modulepreload" crossorigin href="./assets/appearance-DCqlsN7S.js">
14
- <link rel="modulepreload" crossorigin href="./assets/error-boundary-C1x5W-AX.js">
15
- <link rel="modulepreload" crossorigin href="./assets/conversation-input-sync-DlorrZ6B.js">
16
- <link rel="stylesheet" crossorigin href="./assets/index-BnqyWEPM.css">
13
+ <link rel="modulepreload" crossorigin href="./assets/appearance-RPtl24uV.js">
14
+ <link rel="modulepreload" crossorigin href="./assets/error-boundary-BQ911DnY.js">
15
+ <link rel="modulepreload" crossorigin href="./assets/conversation-input-sync-bGjigx3Z.js">
16
+ <link rel="stylesheet" crossorigin href="./assets/index-BlC0KBYH.css">
17
17
  <link rel="stylesheet" crossorigin href="./assets/conversation-input-sync-CwRrAMVk.css">
18
18
  </head>
19
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "local-operator-ui",
3
- "version": "0.57.3",
3
+ "version": "0.57.4",
4
4
  "productName": "Local Operator",
5
5
  "description": "User interface for AI agent assistants that run Python code safely on your device through an intuitive chat interface. Supports local and cloud LLM models with built-in security features.",
6
6
  "main": "./out/main/index.js",
@@ -1 +0,0 @@
1
- import{j as r}from"./index-BWQzFq0n.js";import{B as o}from"./index-Buuz619t.js";import"./messages-B7aIuFuF.js";import"./appearance-DCqlsN7S.js";import"./roles-D1pcbxAx.js";import"./error-boundary-C1x5W-AX.js";import"./conversation-input-sync-DlorrZ6B.js";import"./console-mirror-IB35kNI8.js";const c=()=>r.jsx(o,{tabScope:"all",requestScope:"all",hostSessionId:null,isRoutePage:!0,surfaceTag:"browser-route",dockSurfaceTag:"browser-approvals-dock"});export{c as BrowserPage};
@@ -1 +0,0 @@
1
- import{U as a,C as n}from"./mermaid.core-D7wfsRjY.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
@@ -1 +0,0 @@
1
- import{s as a,c as s,a as e,C as t}from"./chunk-A2AXSNBT-0JOiKMb-.js";import{_ as i}from"./mermaid.core-D7wfsRjY.js";import"./chunk-RZ5BOZE2-CupwUHva.js";import"./conversation-input-sync-DlorrZ6B.js";import"./index-BWQzFq0n.js";import"./messages-B7aIuFuF.js";import"./appearance-DCqlsN7S.js";import"./roles-D1pcbxAx.js";import"./error-boundary-C1x5W-AX.js";var b={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{b as diagram};
@@ -1 +0,0 @@
1
- import{s as a,c as s,a as e,C as t}from"./chunk-A2AXSNBT-0JOiKMb-.js";import{_ as i}from"./mermaid.core-D7wfsRjY.js";import"./chunk-RZ5BOZE2-CupwUHva.js";import"./conversation-input-sync-DlorrZ6B.js";import"./index-BWQzFq0n.js";import"./messages-B7aIuFuF.js";import"./appearance-DCqlsN7S.js";import"./roles-D1pcbxAx.js";import"./error-boundary-C1x5W-AX.js";var b={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{b as diagram};
@@ -1 +0,0 @@
1
- import{b as r}from"./_baseUniq-Clx9gdFs.js";var e=4;function a(o){return r(o,e)}export{a as c};