@rubytech/create-realagent 1.0.649 → 1.0.650
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.
- package/package.json +1 -1
- package/payload/server/public/assets/{admin-BtjYSo0M.js → admin-S2KHPNe4.js} +9 -9
- package/payload/server/public/assets/{arc-BMhgytDB.js → arc-CRqJUbyK.js} +1 -1
- package/payload/server/public/assets/architecture-YZFGNWBL-CXIHKKCa.js +1 -0
- package/payload/server/public/assets/{architectureDiagram-Q4EWVU46-BePoi8XC.js → architectureDiagram-Q4EWVU46-DtICG195.js} +1 -1
- package/payload/server/public/assets/{blockDiagram-DXYQGD6D-BkiwLTtq.js → blockDiagram-DXYQGD6D-nw1V7I38.js} +1 -1
- package/payload/server/public/assets/{c4Diagram-AHTNJAMY-bpjPj2Ln.js → c4Diagram-AHTNJAMY-C1eEC43O.js} +1 -1
- package/payload/server/public/assets/channel-CA7njeKl.js +1 -0
- package/payload/server/public/assets/{chunk-2KRD3SAO-ZcHg_orY.js → chunk-2KRD3SAO-Bybqj-wj.js} +1 -1
- package/payload/server/public/assets/{chunk-336JU56O-BpATJiGl.js → chunk-336JU56O-Dszn2qEY.js} +2 -2
- package/payload/server/public/assets/chunk-426QAEUC-tWQOa3-I.js +1 -0
- package/payload/server/public/assets/{chunk-4BX2VUAB-zJekz2NU.js → chunk-4BX2VUAB-DrKtrnWH.js} +1 -1
- package/payload/server/public/assets/{chunk-4TB4RGXK-CLXL19Wd.js → chunk-4TB4RGXK-CBFzVYqS.js} +1 -1
- package/payload/server/public/assets/{chunk-55IACEB6-CzqB8aoU.js → chunk-55IACEB6-BNsOFSNf.js} +1 -1
- package/payload/server/public/assets/{chunk-5FUZZQ4R-BoTfWHuW.js → chunk-5FUZZQ4R-CXZykYh_.js} +1 -1
- package/payload/server/public/assets/{chunk-5PVQY5BW-RhIfPCRB.js → chunk-5PVQY5BW-CLNppenz.js} +1 -1
- package/payload/server/public/assets/{chunk-67CJDMHE-mM1sFmlz.js → chunk-67CJDMHE-DFyE0-n0.js} +1 -1
- package/payload/server/public/assets/{chunk-7N4EOEYR-GUck0jv1.js → chunk-7N4EOEYR-BIKZD1_4.js} +1 -1
- package/payload/server/public/assets/{chunk-AA7GKIK3-BYhfUc1V.js → chunk-AA7GKIK3-D4_g24le.js} +1 -1
- package/payload/server/public/assets/{chunk-BSJP7CBP-CTsYuARh.js → chunk-BSJP7CBP-Cd9H-V61.js} +1 -1
- package/payload/server/public/assets/{chunk-CIAEETIT-CGsGmUze.js → chunk-CIAEETIT-CAU9PIQi.js} +1 -1
- package/payload/server/public/assets/{chunk-EDXVE4YY-utELKGQK.js → chunk-EDXVE4YY-CR1JfOwe.js} +1 -1
- package/payload/server/public/assets/{chunk-ENJZ2VHE-CNHjq5xK.js → chunk-ENJZ2VHE-CuXW3Isg.js} +1 -1
- package/payload/server/public/assets/{chunk-FMBD7UC4-DaRrfk3s.js → chunk-FMBD7UC4-BwGAtkIr.js} +1 -1
- package/payload/server/public/assets/{chunk-FOC6F5B3-BaeLcJVt.js → chunk-FOC6F5B3-Cn0552qP.js} +1 -1
- package/payload/server/public/assets/{chunk-ICPOFSXX-Di63NBur.js → chunk-ICPOFSXX-DEZT2XyQ.js} +2 -2
- package/payload/server/public/assets/{chunk-K5T4RW27-CTTOezMH.js → chunk-K5T4RW27-KwBFTzJ9.js} +1 -1
- package/payload/server/public/assets/{chunk-KGLVRYIC-DCkohKP2.js → chunk-KGLVRYIC-1-3y582Z.js} +1 -1
- package/payload/server/public/assets/{chunk-LIHQZDEY-osQO30uB.js → chunk-LIHQZDEY-DXIBsDHL.js} +1 -1
- package/payload/server/public/assets/{chunk-ORNJ4GCN-DoLajOOe.js → chunk-ORNJ4GCN-CRbOike7.js} +1 -1
- package/payload/server/public/assets/{chunk-OYMX7WX6-BSPzqyxs.js → chunk-OYMX7WX6-CVT9itnY.js} +1 -1
- package/payload/server/public/assets/chunk-QZHKN3VN-BwkFBCAY.js +1 -0
- package/payload/server/public/assets/{chunk-U2HBQHQK-BZnA7c4T.js → chunk-U2HBQHQK-BLgNHWFf.js} +1 -1
- package/payload/server/public/assets/{chunk-X2U36JSP-DpQ2OA_c.js → chunk-X2U36JSP-DHYLiYqc.js} +1 -1
- package/payload/server/public/assets/{chunk-XPW4576I-BccP1mlQ.js → chunk-XPW4576I-DBdiQ3Zy.js} +1 -1
- package/payload/server/public/assets/{chunk-YZCP3GAM-BAkNXu0G.js → chunk-YZCP3GAM-DXaosB5Z.js} +1 -1
- package/payload/server/public/assets/{chunk-ZZ45TVLE-DBSm41oP.js → chunk-ZZ45TVLE-B5dCmOpH.js} +1 -1
- package/payload/server/public/assets/classDiagram-6PBFFD2Q-CUZ9BU_6.js +1 -0
- package/payload/server/public/assets/classDiagram-v2-HSJHXN6E-BGYsCDux.js +1 -0
- package/payload/server/public/assets/clone-BjouONkW.js +1 -0
- package/payload/server/public/assets/{cose-bilkent-S5V4N54A-Boeb8aWs.js → cose-bilkent-S5V4N54A-DaHtPQvk.js} +1 -1
- package/payload/server/public/assets/{dagre-KV5264BT-BkvWofSp.js → dagre-KV5264BT-CAL9V_HR.js} +1 -1
- package/payload/server/public/assets/{dagre-nvPNAunb.js → dagre-N8C5Xujx.js} +1 -1
- package/payload/server/public/assets/data-BajF3t1i.js +1 -0
- package/payload/server/public/assets/{diagram-5BDNPKRD-CMEgyt4E.js → diagram-5BDNPKRD-pzBSPqlM.js} +1 -1
- package/payload/server/public/assets/{diagram-G4DWMVQ6-ChorrAF0.js → diagram-G4DWMVQ6-DStdLqos.js} +1 -1
- package/payload/server/public/assets/{diagram-MMDJMWI5-D_iD27po.js → diagram-MMDJMWI5-D-SfeX-6.js} +1 -1
- package/payload/server/public/assets/{diagram-TYMM5635-8qXI1ioG.js → diagram-TYMM5635-Cdr1DQ84.js} +1 -1
- package/payload/server/public/assets/{erDiagram-SMLLAGMA-BFjtKDSB.js → erDiagram-SMLLAGMA-CIg1dDZT.js} +1 -1
- package/payload/server/public/assets/{file-DRa7iPfT.js → file-CRrDfnO1.js} +1 -1
- package/payload/server/public/assets/{flatten-ya0TqRLc.js → flatten-CpKIi5d2.js} +1 -1
- package/payload/server/public/assets/{flowDiagram-DWJPFMVM-Bpd7IL9l.js → flowDiagram-DWJPFMVM-CJtU1T6d.js} +1 -1
- package/payload/server/public/assets/{ganttDiagram-T4ZO3ILL-CwOozU85.js → ganttDiagram-T4ZO3ILL-R4fuRAT1.js} +1 -1
- package/payload/server/public/assets/gitGraph-7Q5UKJZL-tvzbaNdg.js +1 -0
- package/payload/server/public/assets/{gitGraphDiagram-UUTBAWPF-CcPILiC9.js → gitGraphDiagram-UUTBAWPF-sifugSGn.js} +1 -1
- package/payload/server/public/assets/{graph-ydtwufZX.js → graph-CSBMZGGe.js} +1 -1
- package/payload/server/public/assets/{graphlib-B_mcXEVr.js → graphlib-DrlxPM8j.js} +1 -1
- package/payload/server/public/assets/{house-DEu5yOIQ.js → house-D1CBraxB.js} +1 -1
- package/payload/server/public/assets/info-OMHHGYJF-ByeBaFw5.js +1 -0
- package/payload/server/public/assets/infoDiagram-42DDH7IO-CjgCxerY.js +2 -0
- package/payload/server/public/assets/{isEmpty-h-wRi_o9.js → isEmpty-C3Vxk1It.js} +1 -1
- package/payload/server/public/assets/{ishikawaDiagram-UXIWVN3A-DOP9-Q8H.js → ishikawaDiagram-UXIWVN3A-CYUJOA2c.js} +1 -1
- package/payload/server/public/assets/{journeyDiagram-VCZTEJTY-DGATg0WC.js → journeyDiagram-VCZTEJTY-UltrLajs.js} +1 -1
- package/payload/server/public/assets/{jsx-runtime-C8kAju5f.css → jsx-runtime-CZtLX8NN.css} +1 -1
- package/payload/server/public/assets/{kanban-definition-6JOO6SKY-C5PigmKg.js → kanban-definition-6JOO6SKY-BBaThtP3.js} +1 -1
- package/payload/server/public/assets/{line-DlKKhwkO.js → line-BhOwLD_o.js} +1 -1
- package/payload/server/public/assets/{linear-DD4JiB1l.js → linear-D76hoLvZ.js} +1 -1
- package/payload/server/public/assets/{mermaid-parser.core-C8xGCa9p.js → mermaid-parser.core-D8n5xV7A.js} +2 -2
- package/payload/server/public/assets/{mermaid.core-CCUSwZB_.js → mermaid.core-C3TZA9fX.js} +3 -3
- package/payload/server/public/assets/{mindmap-definition-QFDTVHPH-75k-IVhC.js → mindmap-definition-QFDTVHPH-Bv1kghvk.js} +1 -1
- package/payload/server/public/assets/{ordinal-Dwxksj1B.js → ordinal-BLrOss5K.js} +1 -1
- package/payload/server/public/assets/packet-4T2RLAQJ-Csybj5RO.js +1 -0
- package/payload/server/public/assets/pie-ZZUOXDRM-Iw1du1Bn.js +1 -0
- package/payload/server/public/assets/{pieDiagram-DEJITSTG-DN5RsDwZ.js → pieDiagram-DEJITSTG-BSYldcKa.js} +1 -1
- package/payload/server/public/assets/{public-D0ymcICW.js → public-ukz9-gSe.js} +2 -2
- package/payload/server/public/assets/{quadrantDiagram-34T5L4WZ-Sd9x6pNe.js → quadrantDiagram-34T5L4WZ-lCDshgz1.js} +1 -1
- package/payload/server/public/assets/radar-PYXPWWZC-rEet4TBV.js +1 -0
- package/payload/server/public/assets/{reduce-BUuWaDl2.js → reduce-C5tBOlxC.js} +1 -1
- package/payload/server/public/assets/{requirementDiagram-MS252O5E-BDgifYzj.js → requirementDiagram-MS252O5E-C7j42RrO.js} +1 -1
- package/payload/server/public/assets/{sankeyDiagram-XADWPNL6-BX9VULNJ.js → sankeyDiagram-XADWPNL6-plPbHhuF.js} +1 -1
- package/payload/server/public/assets/{sequenceDiagram-FGHM5R23-z3vMxhgE.js → sequenceDiagram-FGHM5R23-D3Y8MXiX.js} +1 -1
- package/payload/server/public/assets/{share-2-Cnd_9DYU.js → share-2-DkF8neDM.js} +1 -1
- package/payload/server/public/assets/{stateDiagram-FHFEXIEX-DlP0hBxF.js → stateDiagram-FHFEXIEX-D4BdhMPy.js} +1 -1
- package/payload/server/public/assets/stateDiagram-v2-QKLJ7IA2-DhKxVkX3.js +1 -0
- package/payload/server/public/assets/{timeline-definition-GMOUNBTQ-DwQbhKCo.js → timeline-definition-GMOUNBTQ-Lh9jrYCl.js} +1 -1
- package/payload/server/public/assets/trash-2-Dde58AAR.js +1 -0
- package/payload/server/public/assets/treeView-SZITEDCU-PaLYyjtc.js +1 -0
- package/payload/server/public/assets/treemap-W4RFUUIX-CEhGYFbO.js +1 -0
- package/payload/server/public/assets/{useVoiceRecorder-CFIpzGaB.js → useVoiceRecorder-Hz9X6luB.js} +3 -3
- package/payload/server/public/assets/{vennDiagram-DHZGUBPP-WTqmZWWa.js → vennDiagram-DHZGUBPP-Cx0v19iv.js} +1 -1
- package/payload/server/public/assets/wardley-RL74JXVD-xtJ4_o4d.js +1 -0
- package/payload/server/public/assets/{wardleyDiagram-NUSXRM2D-BUY50x5T.js → wardleyDiagram-NUSXRM2D-BYewCTre.js} +1 -1
- package/payload/server/public/assets/x-D52qhSya.js +1 -0
- package/payload/server/public/assets/{xychartDiagram-5P7HB3ND-Btdq-fDj.js → xychartDiagram-5P7HB3ND-CkfIdbJu.js} +1 -1
- package/payload/server/public/data.html +7 -6
- package/payload/server/public/graph.html +6 -6
- package/payload/server/public/index.html +9 -8
- package/payload/server/public/public.html +6 -5
- package/payload/server/server.js +99 -5
- package/payload/server/public/assets/architecture-YZFGNWBL-S9-oeq_x.js +0 -1
- package/payload/server/public/assets/channel-D3U0_a1j.js +0 -1
- package/payload/server/public/assets/chunk-426QAEUC-Wz6Bpsil.js +0 -1
- package/payload/server/public/assets/chunk-QZHKN3VN-BAQp1OEl.js +0 -1
- package/payload/server/public/assets/classDiagram-6PBFFD2Q-6EGGLDD_.js +0 -1
- package/payload/server/public/assets/classDiagram-v2-HSJHXN6E-DfAV4tgE.js +0 -1
- package/payload/server/public/assets/clone-BoV8noAi.js +0 -1
- package/payload/server/public/assets/data-gtcFdXVv.js +0 -1
- package/payload/server/public/assets/gitGraph-7Q5UKJZL-BOC4CldZ.js +0 -1
- package/payload/server/public/assets/info-OMHHGYJF-BSCPTUIx.js +0 -1
- package/payload/server/public/assets/infoDiagram-42DDH7IO-T2sn--WJ.js +0 -2
- package/payload/server/public/assets/packet-4T2RLAQJ-pBa_ZhNI.js +0 -1
- package/payload/server/public/assets/pie-ZZUOXDRM-BzYOyiMb.js +0 -1
- package/payload/server/public/assets/radar-PYXPWWZC-CTVOaAq6.js +0 -1
- package/payload/server/public/assets/stateDiagram-v2-QKLJ7IA2-DSddQStC.js +0 -1
- package/payload/server/public/assets/treeView-SZITEDCU-OTnF4Qzw.js +0 -1
- package/payload/server/public/assets/treemap-W4RFUUIX-DlIRmHFb.js +0 -1
- package/payload/server/public/assets/wardley-RL74JXVD-DwMXAC4U.js +0 -1
- package/payload/server/public/assets/x-DitohdYO.js +0 -1
- /package/payload/server/public/assets/{_baseFor-Dn4GSmI6.js → _baseFor-WfS9pKAn.js} +0 -0
- /package/payload/server/public/assets/{array-DJN9YAVf.js → array-HeX70jSN.js} +0 -0
- /package/payload/server/public/assets/{cytoscape.esm-BcJTl1re.js → cytoscape.esm-CDZo0kst.js} +0 -0
- /package/payload/server/public/assets/{defaultLocale-B4F_XsBB.js → defaultLocale-GJwWH1Jr.js} +0 -0
- /package/payload/server/public/assets/{dist-CrzV1W3-.js → dist-BKbAaes5.js} +0 -0
- /package/payload/server/public/assets/{init-DX0Y1qU4.js → init-BPLPMQ3Y.js} +0 -0
- /package/payload/server/public/assets/{jsx-runtime-BrB6Lw5Y.js → jsx-runtime-Cb-WunFZ.js} +0 -0
- /package/payload/server/public/assets/{katex-CjHJ1D7d.js → katex-CKZ-HWMQ.js} +0 -0
- /package/payload/server/public/assets/{path-7vUsG-o2.js → path-YdFzr2W6.js} +0 -0
- /package/payload/server/public/assets/{preload-helper-qlgyTAkD.js → preload-helper-BEFjQwLd.js} +0 -0
- /package/payload/server/public/assets/{rough.esm-NLRoWnq-.js → rough.esm-HAx67Hnb.js} +0 -0
- /package/payload/server/public/assets/{src-Bo15iQ7w.js → src-BvrHnOMG.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./chunk-K5T4RW27-
|
|
1
|
+
import"./chunk-K5T4RW27-KwBFTzJ9.js";import"./chunk-7N4EOEYR-BIKZD1_4.js";import"./chunk-67CJDMHE-DFyE0-n0.js";import"./chunk-KGLVRYIC-1-3y582Z.js";import"./chunk-FOC6F5B3-Cn0552qP.js";import"./chunk-AA7GKIK3-D4_g24le.js";import"./chunk-2KRD3SAO-Bybqj-wj.js";import"./chunk-ORNJ4GCN-CRbOike7.js";import"./chunk-LIHQZDEY-DXIBsDHL.js";import"./chunk-CIAEETIT-CAU9PIQi.js";import{g as e,h as t}from"./src-BvrHnOMG.js";import{B as n,C as r,L as i,V as a,W as o,_ as s,a as c,b as l,c as u,v as d}from"./chunk-ICPOFSXX-DEZT2XyQ.js";import{t as f}from"./chunk-426QAEUC-tWQOa3-I.js";import{t as p}from"./chunk-4BX2VUAB-DrKtrnWH.js";import{t as m}from"./mermaid-parser.core-D8n5xV7A.js";var h=t((e,t)=>{let n=e<=1?e*100:e;if(n<0||n>100)throw Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return n},`toPercent`),g=t((e,t,n)=>({x:h(t,`${n} evolution`),y:h(e,`${n} visibility`)}),`toCoordinates`),_=t(e=>{if(e){if(e===`+<>`)return`bidirectional`;if(e===`+<`)return`backward`;if(e===`+>`)return`forward`}},`getFlowFromPort`),v=t(e=>{if(!e?.startsWith(`+`))return{};let t=/^\+'([^']*)'/.exec(e)?.[1];return e.includes(`<>`)?{flow:`bidirectional`,label:t}:e.includes(`<`)?{flow:`backward`,label:t}:e.includes(`>`)?{flow:`forward`,label:t}:{label:t}},`extractFlowFromArrow`),y=t((e,t)=>{if(p(e,t),e.size&&t.setSize(e.size.width,e.size.height),e.evolution){let n=e.evolution.stages.map(e=>e.secondName?`${e.name.trim()} / ${e.secondName.trim()}`:e.name.trim()),r=e.evolution.stages.filter(e=>e.boundary!==void 0).map(e=>e.boundary);t.updateAxes({stages:n,stageBoundaries:r})}if(e.anchors.forEach(e=>{let n=g(e.visibility,e.evolution,`Anchor "${e.name}"`);t.addNode(e.name,e.name,n.x,n.y,`anchor`)}),e.components.forEach(e=>{let n=g(e.visibility,e.evolution,`Component "${e.name}"`),r=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,i=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,a=e.decorator?.strategy;t.addNode(e.name,e.name,n.x,n.y,`component`,r,i,e.inertia,a)}),e.notes.forEach(e=>{let n=g(e.visibility,e.evolution,`Note "${e.text}"`);t.addNote(e.text,n.x,n.y)}),e.pipelines.forEach(e=>{let n=t.getNode(e.parent);if(!n||typeof n.y!=`number`)throw Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);let r=n.y;t.startPipeline(e.parent),e.components.forEach(n=>{let i=`${e.parent}_${n.name}`,a=n.label?(n.label.negX?-1:1)*n.label.offsetX:void 0,o=n.label?(n.label.negY?-1:1)*n.label.offsetY:void 0,s=h(n.evolution,`Pipeline component "${n.name}" evolution`);t.addNode(i,n.name,s,r,`pipeline-component`,a,o),t.addPipelineComponent(e.parent,i)})}),e.links.forEach(e=>{let n=!!e.arrow&&(e.arrow.includes(`-.->`)||e.arrow.includes(`.-.`)),r=_(e.fromPort)??_(e.toPort),{flow:i,label:a}=v(e.arrow);!r&&i&&(r=i);let o=e.linkLabel,s=a??o;t.addLink(e.from,e.to,n,s,r)}),e.evolves.forEach(e=>{let n=t.getNode(e.component);if(n?.y!==void 0){let r=h(e.target,`Evolve target for "${e.component}"`);t.addTrend(e.component,r,n.y)}}),e.annotations.length>0){let n=e.annotations[0],r=g(n.x,n.y,`Annotations box`);t.setAnnotationsBox(r.x,r.y)}e.annotation.forEach(e=>{let n=g(e.x,e.y,`Annotation ${e.number}`);t.addAnnotation(e.number,[{x:n.x,y:n.y}],e.text)}),e.accelerators.forEach(e=>{let n=g(e.x,e.y,`Accelerator "${e.name}"`);t.addAccelerator(e.name,n.x,n.y)}),e.deaccelerators.forEach(e=>{let n=g(e.x,e.y,`Deaccelerator "${e.name}"`);t.addDeaccelerator(e.name,n.x,n.y)})},`populateDb`),b={parser:{yy:void 0},parse:t(async t=>{let n=await m(`wardley`,t);e.debug(n);let r=b.parser?.yy;if(!r||typeof r.addNode!=`function`)throw Error(`parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);y(n,r)},`parse`)},x=new class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{t(this,`WardleyBuilder`)}addNode(e){let t=this.nodes.get(e.id)??{id:e.id,label:e.label},n={...t,...e,className:e.className??t.className,labelOffsetX:e.labelOffsetX??t.labelOffsetX,labelOffsetY:e.labelOffsetY??t.labelOffsetY};this.nodes.set(e.id,n)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});let t=this.nodes.get(e);t&&(t.isPipelineParent=!0)}addPipelineComponent(e,t){let n=this.pipelines.get(e);n&&n.componentIds.push(t);let r=this.nodes.get(t);r&&(r.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,t){this.annotationsBox={x:e,y:t}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,t){this.size={width:e,height:t}}getNode(e){return this.nodes.get(e)}build(){let e=[];for(let t of this.nodes.values()){if(typeof t.x!=`number`||typeof t.y!=`number`)throw Error(`Node "${t.label}" is missing coordinates`);e.push(t)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}};function S(e){let t=l();return i(e.trim(),t)}t(S,`textSanitizer`);function C(){return l()[`wardley-beta`]}t(C,`getConfig`);function w(e,t,n,r,i,a,o,s,c){x.addNode({id:e,label:S(t),x:n,y:r,className:i,labelOffsetX:a,labelOffsetY:o,inertia:s,sourceStrategy:c})}t(w,`addNode`);function T(e,t,n=!1,r,i){x.addLink({source:e,target:t,dashed:n,label:r,flow:i})}t(T,`addLink`);function E(e,t,n){x.addTrend({nodeId:e,targetX:t,targetY:n})}t(E,`addTrend`);function D(e,t,n){x.addAnnotation({number:e,coordinates:t,text:n?S(n):void 0})}t(D,`addAnnotation`);function O(e,t,n){x.addNote({text:S(e),x:t,y:n})}t(O,`addNote`);function k(e,t,n){x.addAccelerator({name:S(e),x:t,y:n})}t(k,`addAccelerator`);function A(e,t,n){x.addDeaccelerator({name:S(e),x:t,y:n})}t(A,`addDeaccelerator`);function j(e,t){x.setAnnotationsBox(e,t)}t(j,`setAnnotationsBox`);function M(e,t){x.setSize(e,t)}t(M,`setSize`);function N(e){x.startPipeline(e)}t(N,`startPipeline`);function P(e,t){x.addPipelineComponent(e,t)}t(P,`addPipelineComponent`);function F(e){let t={};e.xLabel&&(t.xLabel=S(e.xLabel)),e.yLabel&&(t.yLabel=S(e.yLabel)),e.stages&&(t.stages=e.stages.map(e=>S(e))),e.stageBoundaries&&(t.stageBoundaries=e.stageBoundaries),x.setAxes(t)}t(F,`updateAxes`);function I(e){return x.getNode(e)}t(I,`getNode`);function L(){return x.build()}t(L,`getWardleyData`);function R(){x.clear(),c()}t(R,`clear`);var z={getConfig:C,addNode:w,addLink:T,addTrend:E,addAnnotation:D,addNote:O,addAccelerator:k,addDeaccelerator:A,setAnnotationsBox:j,setSize:M,startPipeline:N,addPipelineComponent:P,updateAxes:F,getNode:I,getWardleyData:L,clear:R,setAccTitle:a,getAccTitle:d,setDiagramTitle:o,getDiagramTitle:r,getAccDescription:s,setAccDescription:n},B=[`Genesis`,`Custom Built`,`Product`,`Commodity`],V=t(()=>{let{themeVariables:e}=l();return{backgroundColor:e.wardley?.backgroundColor??e.background??`#fff`,axisColor:e.wardley?.axisColor??`#000`,axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??`#222`,gridColor:e.wardley?.gridColor??`rgba(100, 100, 100, 0.2)`,componentFill:e.wardley?.componentFill??`#fff`,componentStroke:e.wardley?.componentStroke??`#000`,componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??`#222`,linkStroke:e.wardley?.linkStroke??`#000`,evolutionStroke:e.wardley?.evolutionStroke??`#dc3545`,annotationStroke:e.wardley?.annotationStroke??`#000`,annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??`#222`,annotationFill:e.wardley?.annotationFill??e.background??`#fff`}},`getTheme`),H=t(()=>{let e=l()[`wardley-beta`];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},`getConfigValues`),U={parser:b,db:z,renderer:{draw:t((n,r,i,a)=>{e.debug(`Rendering Wardley map
|
|
2
2
|
`+n);let o=H(),s=V(),c=o.nodeRadius*1.6,l=a.db,d=l.getWardleyData(),p=l.getDiagramTitle(),m=d.size?.width??o.width,h=d.size?.height??o.height,g=f(r);g.selectAll(`*`).remove(),u(g,h,m,o.useMaxWidth),g.attr(`viewBox`,`0 0 ${m} ${h}`);let _=g.append(`g`).attr(`class`,`wardley-map`),v=g.append(`defs`);v.append(`marker`).attr(`id`,`arrow-${r}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,6).attr(`markerHeight`,6).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`fill`,s.evolutionStroke).attr(`stroke`,`none`),v.append(`marker`).attr(`id`,`link-arrow-end-${r}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,5).attr(`markerHeight`,5).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`fill`,s.linkStroke).attr(`stroke`,`none`),v.append(`marker`).attr(`id`,`link-arrow-start-${r}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,1).attr(`refY`,5).attr(`markerWidth`,5).attr(`markerHeight`,5).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 10 0 L 0 5 L 10 10 z`).attr(`fill`,s.linkStroke).attr(`stroke`,`none`),_.append(`rect`).attr(`class`,`wardley-background`).attr(`width`,m).attr(`height`,h).attr(`fill`,s.backgroundColor);let y=m-o.padding*2,b=h-o.padding*2;p&&_.append(`text`).attr(`class`,`wardley-title`).attr(`x`,m/2).attr(`y`,o.padding/2).attr(`fill`,s.axisTextColor).attr(`font-size`,o.axisFontSize*1.05).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(p);let x=t(e=>o.padding+e/100*y,`projectX`),S=t(e=>h-o.padding-e/100*b,`projectY`),C=_.append(`g`).attr(`class`,`wardley-axes`);C.append(`line`).attr(`x1`,o.padding).attr(`x2`,m-o.padding).attr(`y1`,h-o.padding).attr(`y2`,h-o.padding).attr(`stroke`,s.axisColor).attr(`stroke-width`,1),C.append(`line`).attr(`x1`,o.padding).attr(`x2`,o.padding).attr(`y1`,o.padding).attr(`y2`,h-o.padding).attr(`stroke`,s.axisColor).attr(`stroke-width`,1);let w=d.axes.xLabel??`Evolution`,T=d.axes.yLabel??`Visibility`;C.append(`text`).attr(`class`,`wardley-axis-label wardley-axis-label-x`).attr(`x`,o.padding+y/2).attr(`y`,h-o.padding/4).attr(`fill`,s.axisTextColor).attr(`font-size`,o.axisFontSize).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).text(w),C.append(`text`).attr(`class`,`wardley-axis-label wardley-axis-label-y`).attr(`x`,o.padding/3).attr(`y`,o.padding+b/2).attr(`fill`,s.axisTextColor).attr(`font-size`,o.axisFontSize).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).attr(`transform`,`rotate(-90 ${o.padding/3} ${o.padding+b/2})`).text(T);let E=d.axes.stages&&d.axes.stages.length>0?d.axes.stages:B;if(E.length>0){let e=_.append(`g`).attr(`class`,`wardley-stages`),t=d.axes.stageBoundaries,n=[];if(t&&t.length===E.length){let e=0;t.forEach(t=>{n.push({start:e,end:t}),e=t})}else{let e=1/E.length;E.forEach((t,r)=>{n.push({start:r*e,end:(r+1)*e})})}E.forEach((t,r)=>{let i=n[r],a=o.padding+i.start*y,c=(a+(o.padding+i.end*y))/2;r>0&&e.append(`line`).attr(`x1`,a).attr(`x2`,a).attr(`y1`,o.padding).attr(`y2`,h-o.padding).attr(`stroke`,`#000`).attr(`stroke-width`,1).attr(`stroke-dasharray`,`5 5`).attr(`opacity`,.8),e.append(`text`).attr(`class`,`wardley-stage-label`).attr(`x`,c).attr(`y`,h-o.padding/1.5).attr(`fill`,s.axisTextColor).attr(`font-size`,o.axisFontSize-2).attr(`text-anchor`,`middle`).text(t)})}if(o.showGrid){let e=_.append(`g`).attr(`class`,`wardley-grid`);for(let t=1;t<4;t++){let n=t/4,r=o.padding+y*n;e.append(`line`).attr(`x1`,r).attr(`x2`,r).attr(`y1`,o.padding).attr(`y2`,h-o.padding).attr(`stroke`,s.gridColor).attr(`stroke-dasharray`,`2 6`),e.append(`line`).attr(`x1`,o.padding).attr(`x2`,m-o.padding).attr(`y1`,h-o.padding-b*n).attr(`y2`,h-o.padding-b*n).attr(`stroke`,s.gridColor).attr(`stroke-dasharray`,`2 6`)}}let D=new Map;if(d.nodes.forEach(e=>{D.set(e.id,{x:x(e.x),y:S(e.y),node:e})}),d.pipelines.length>0){let e=_.append(`g`).attr(`class`,`wardley-pipelines`),t=_.append(`g`).attr(`class`,`wardley-pipeline-links`);d.pipelines.forEach(n=>{if(n.componentIds.length===0)return;let r=n.componentIds.map(e=>({id:e,pos:D.get(e),node:d.nodes.find(t=>t.id===e)})).filter(e=>e.pos&&e.node).sort((e,t)=>e.node.x-t.node.x);for(let e=0;e<r.length-1;e++){let n=r[e],i=r[e+1];t.append(`line`).attr(`class`,`wardley-pipeline-evolution-link`).attr(`x1`,n.pos.x).attr(`y1`,n.pos.y).attr(`x2`,i.pos.x).attr(`y2`,i.pos.y).attr(`stroke`,s.linkStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,`4 4`)}let i=1/0,a=-1/0,l=0;if(n.componentIds.forEach(e=>{let t=D.get(e);t&&(i=Math.min(i,t.x),a=Math.max(a,t.x),l=t.y)}),i!==1/0&&a!==-1/0){let t=o.nodeRadius*4,r=l-t/2,u=D.get(n.nodeId);u&&(u.x=(i+a)/2,u.y=r-c/6),e.append(`rect`).attr(`class`,`wardley-pipeline-box`).attr(`x`,i-15).attr(`y`,r).attr(`width`,a-i+30).attr(`height`,t).attr(`fill`,`none`).attr(`stroke`,s.axisColor).attr(`stroke-width`,1.5).attr(`rx`,4).attr(`ry`,4)}})}let O=_.append(`g`).attr(`class`,`wardley-links`),k=new Map;d.pipelines.forEach(e=>{k.set(e.nodeId,new Set(e.componentIds))});let A=d.links.filter(e=>!(!D.has(e.source)||!D.has(e.target)||k.get(e.target)?.has(e.source)));O.selectAll(`line`).data(A).enter().append(`line`).attr(`class`,e=>`wardley-link${e.dashed?` wardley-link--dashed`:``}`).attr(`x1`,e=>{let t=D.get(e.source),n=D.get(e.target),r=d.nodes.find(t=>t.id===e.source).isPipelineParent?c/Math.sqrt(2):o.nodeRadius,i=n.x-t.x,a=n.y-t.y,s=Math.sqrt(i*i+a*a);return t.x+i/s*r}).attr(`y1`,e=>{let t=D.get(e.source),n=D.get(e.target),r=d.nodes.find(t=>t.id===e.source).isPipelineParent?c/Math.sqrt(2):o.nodeRadius,i=n.x-t.x,a=n.y-t.y,s=Math.sqrt(i*i+a*a);return t.y+a/s*r}).attr(`x2`,e=>{let t=D.get(e.source),n=D.get(e.target),r=d.nodes.find(t=>t.id===e.target).isPipelineParent?c/Math.sqrt(2):o.nodeRadius,i=t.x-n.x,a=t.y-n.y,s=Math.sqrt(i*i+a*a);return n.x+i/s*r}).attr(`y2`,e=>{let t=D.get(e.source),n=D.get(e.target),r=d.nodes.find(t=>t.id===e.target).isPipelineParent?c/Math.sqrt(2):o.nodeRadius,i=t.x-n.x,a=t.y-n.y,s=Math.sqrt(i*i+a*a);return n.y+a/s*r}).attr(`stroke`,s.linkStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,e=>e.dashed?`6 6`:null).attr(`marker-end`,e=>e.flow===`forward`||e.flow===`bidirectional`?`url(#link-arrow-end-${r})`:null).attr(`marker-start`,e=>e.flow===`backward`||e.flow===`bidirectional`?`url(#link-arrow-start-${r})`:null),O.selectAll(`text`).data(A.filter(e=>e.label)).enter().append(`text`).attr(`class`,`wardley-link-label`).attr(`x`,e=>{let t=D.get(e.source),n=D.get(e.target),r=(t.x+n.x)/2,i=n.y-t.y,a=n.x-t.x;return r+i/Math.sqrt(a*a+i*i)*8}).attr(`y`,e=>{let t=D.get(e.source),n=D.get(e.target),r=(t.y+n.y)/2,i=n.x-t.x,a=n.y-t.y,o=Math.sqrt(i*i+a*a);return r+-i/o*8}).attr(`fill`,s.axisTextColor).attr(`font-size`,o.labelFontSize).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).attr(`transform`,e=>{let t=D.get(e.source),n=D.get(e.target),r=(t.x+n.x)/2,i=(t.y+n.y)/2,a=n.x-t.x,o=n.y-t.y,s=Math.sqrt(a*a+o*o),c=o/s,l=-a/s,u=r+c*8,d=i+l*8,f=Math.atan2(o,a)*180/Math.PI;return(f>90||f<-90)&&(f+=180),`rotate(${f} ${u} ${d})`}).text(e=>e.label);let j=_.append(`g`).attr(`class`,`wardley-trends`),M=d.trends.map(e=>{let t=D.get(e.nodeId);if(!t)return null;let n=x(e.targetX),r=S(e.targetY),i=n-t.x,a=r-t.y,s=Math.sqrt(i*i+a*a),c=o.nodeRadius+2;return{origin:t,targetX:n,targetY:r,adjustedX2:s>c?n-i/s*c:n,adjustedY2:s>c?r-a/s*c:r}}).filter(e=>e!==null);j.selectAll(`line`).data(M).enter().append(`line`).attr(`class`,`wardley-trend`).attr(`x1`,e=>e.origin.x).attr(`y1`,e=>e.origin.y).attr(`x2`,e=>e.adjustedX2).attr(`y2`,e=>e.adjustedY2).attr(`stroke`,s.evolutionStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,`4 4`).attr(`marker-end`,`url(#arrow-${r})`);let N=_.append(`g`).attr(`class`,`wardley-nodes`).selectAll(`g`).data(d.nodes).enter().append(`g`).attr(`class`,e=>[`wardley-node`,e.className?`wardley-node--${e.className}`:``].filter(Boolean).join(` `));N.filter(e=>e.sourceStrategy===`outsource`).append(`circle`).attr(`class`,`wardley-outsource-overlay`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius*2).attr(`fill`,`#666`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),N.filter(e=>e.sourceStrategy===`buy`).append(`circle`).attr(`class`,`wardley-buy-overlay`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius*2).attr(`fill`,`#ccc`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),N.filter(e=>e.sourceStrategy===`build`).append(`circle`).attr(`class`,`wardley-build-overlay`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius*2).attr(`fill`,`#eee`).attr(`stroke`,`#000`).attr(`stroke-width`,1);let P=N.filter(e=>e.sourceStrategy===`market`);P.append(`circle`).attr(`class`,`wardley-market-overlay`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius*2).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),N.filter(e=>!e.isPipelineParent&&e.sourceStrategy!==`market`&&e.className!==`anchor`).append(`circle`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius).attr(`fill`,s.componentFill).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1);let F=o.nodeRadius*.7,I=o.nodeRadius*1.2;if(P.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>D.get(e.id).x).attr(`y1`,e=>D.get(e.id).y-I).attr(`x2`,e=>D.get(e.id).x-I*Math.cos(Math.PI/6)).attr(`y2`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),P.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>D.get(e.id).x-I*Math.cos(Math.PI/6)).attr(`y1`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`x2`,e=>D.get(e.id).x+I*Math.cos(Math.PI/6)).attr(`y2`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),P.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>D.get(e.id).x+I*Math.cos(Math.PI/6)).attr(`y1`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`x2`,e=>D.get(e.id).x).attr(`y2`,e=>D.get(e.id).y-I).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),P.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y-I).attr(`r`,F).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,2),P.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>D.get(e.id).x-I*Math.cos(Math.PI/6)).attr(`cy`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`r`,F).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,2),P.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>D.get(e.id).x+I*Math.cos(Math.PI/6)).attr(`cy`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`r`,F).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,2),N.filter(e=>e.isPipelineParent===!0).append(`rect`).attr(`x`,e=>D.get(e.id).x-c/2).attr(`y`,e=>D.get(e.id).y-c/2).attr(`width`,c).attr(`height`,c).attr(`fill`,s.componentFill).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),N.filter(e=>e.inertia===!0).append(`line`).attr(`class`,`wardley-inertia`).attr(`x1`,e=>{let t=D.get(e.id),n=e.isPipelineParent?c/2+15:o.nodeRadius+15;return e.sourceStrategy&&(n+=o.nodeRadius+10),t.x+n}).attr(`y1`,e=>{let t=D.get(e.id),n=e.isPipelineParent?c:o.nodeRadius*2;return t.y-n/2}).attr(`x2`,e=>{let t=D.get(e.id),n=e.isPipelineParent?c/2+15:o.nodeRadius+15;return e.sourceStrategy&&(n+=o.nodeRadius+10),t.x+n}).attr(`y2`,e=>{let t=D.get(e.id),n=e.isPipelineParent?c:o.nodeRadius*2;return t.y+n/2}).attr(`stroke`,s.componentStroke).attr(`stroke-width`,6),N.append(`text`).attr(`x`,e=>{let t=D.get(e.id);if(e.className===`anchor`)return e.labelOffsetX===void 0?t.x:t.x+e.labelOffsetX;let n=o.nodeLabelOffset;e.sourceStrategy&&e.labelOffsetX===void 0&&(n+=10);let r=e.labelOffsetX??n;return t.x+r}).attr(`y`,e=>{let t=D.get(e.id);if(e.className===`anchor`)return e.labelOffsetY===void 0?t.y-3:t.y+e.labelOffsetY;let n=-o.nodeLabelOffset;e.sourceStrategy&&e.labelOffsetY===void 0&&(n-=10);let r=e.labelOffsetY??n;return t.y+r}).attr(`class`,`wardley-node-label`).attr(`fill`,e=>e.className===`evolved`?s.evolutionStroke:e.className===`anchor`?`#000`:s.componentLabelColor).attr(`font-size`,o.labelFontSize).attr(`font-weight`,e=>e.className===`anchor`?`bold`:`normal`).attr(`text-anchor`,e=>e.className===`anchor`?`middle`:`start`).attr(`dominant-baseline`,e=>e.className===`anchor`?`middle`:`auto`).text(e=>e.label),d.annotations.length>0){let e=_.append(`g`).attr(`class`,`wardley-annotations`);if(d.annotations.forEach(t=>{let n=t.coordinates.map(e=>({x:x(e.x),y:S(e.y)}));if(n.length>1)for(let t=0;t<n.length-1;t++)e.append(`line`).attr(`class`,`wardley-annotation-line`).attr(`x1`,n[t].x).attr(`y1`,n[t].y).attr(`x2`,n[t+1].x).attr(`y2`,n[t+1].y).attr(`stroke`,s.axisColor).attr(`stroke-width`,1.5).attr(`stroke-dasharray`,`4 4`);n.forEach(n=>{let r=e.append(`g`).attr(`class`,`wardley-annotation`);r.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,10).attr(`fill`,`white`).attr(`stroke`,s.axisColor).attr(`stroke-width`,1.5),r.append(`text`).attr(`x`,n.x).attr(`y`,n.y).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).attr(`font-size`,10).attr(`fill`,s.axisTextColor).attr(`font-weight`,`bold`).text(t.number)})}),d.annotationsBox){let t=x(d.annotationsBox.x),n=S(d.annotationsBox.y),r=e.append(`g`).attr(`class`,`wardley-annotations-box`),i=[...d.annotations].filter(e=>e.text).sort((e,t)=>e.number-t.number),a=[];if(i.forEach((e,i)=>{let o=r.append(`text`).attr(`x`,t+10).attr(`y`,n+10+(i+1)*16).attr(`font-size`,11).attr(`fill`,s.axisTextColor).attr(`text-anchor`,`start`).attr(`dominant-baseline`,`middle`).text(`${e.number}. ${e.text}`);a.push(o)}),a.length>0){let e=0,c=0;a.forEach(t=>{let n=t.node(),r=n.getComputedTextLength();e=Math.max(e,r);let i=n.getBBox();c=Math.max(c,i.height)});let l=e+20+105,u=i.length*16+20+c/2,d=o.padding,f=m-o.padding-l,p=o.padding,g=h-o.padding-u;t=Math.max(d,Math.min(t,f)),n=Math.max(p,Math.min(n,g)),a.forEach((e,r)=>{e.attr(`x`,t+10).attr(`y`,n+10+(r+1)*16)}),r.insert(`rect`,`text`).attr(`x`,t).attr(`y`,n).attr(`width`,l).attr(`height`,u).attr(`fill`,`white`).attr(`stroke`,s.axisColor).attr(`stroke-width`,1.5).attr(`rx`,4).attr(`ry`,4)}}}if(d.notes.length>0){let e=_.append(`g`).attr(`class`,`wardley-notes`);d.notes.forEach(t=>{let n=x(t.x),r=S(t.y);e.append(`text`).attr(`x`,n).attr(`y`,r).attr(`text-anchor`,`start`).attr(`font-size`,11).attr(`fill`,s.axisTextColor).attr(`font-weight`,`bold`).text(t.text)})}if(d.accelerators.length>0){let e=_.append(`g`).attr(`class`,`wardley-accelerators`);d.accelerators.forEach(t=>{let n=x(t.x),r=S(t.y),i=`
|
|
3
3
|
M ${n} ${r-30/2}
|
|
4
4
|
L ${n+60-20} ${r-30/2}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./jsx-runtime-Cb-WunFZ.js";var t=e(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);export{t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as e,h as t}from"./src-
|
|
1
|
+
import{g as e,h as t}from"./src-BvrHnOMG.js";import{B as n,C as r,E as i,L as a,V as o,W as s,_ as c,a as l,c as u,d,v as f,y as p}from"./chunk-ICPOFSXX-DEZT2XyQ.js";import{t as m}from"./linear-D76hoLvZ.js";import{t as h}from"./ordinal-BLrOss5K.js";import"./defaultLocale-GJwWH1Jr.js";import{t as g}from"./init-BPLPMQ3Y.js";import"./dist-BKbAaes5.js";import{r as _}from"./chunk-5PVQY5BW-CLNppenz.js";import{t as v}from"./line-BhOwLD_o.js";import{t as y}from"./chunk-426QAEUC-tWQOa3-I.js";import{t as b}from"./chunk-U2HBQHQK-BLgNHWFf.js";function x(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function S(){var e=h().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=x(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return S(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},g.apply(d(),arguments)}var C=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,10,12,14,16,18,19,21,23],r=[2,6],i=[1,3],a=[1,5],o=[1,6],s=[1,7],c=[1,5,10,12,14,16,18,19,21,23,34,35,36],l=[1,25],u=[1,26],d=[1,28],f=[1,29],p=[1,30],m=[1,31],h=[1,32],g=[1,33],_=[1,34],v=[1,35],y=[1,36],b=[1,37],x=[1,43],S=[1,42],C=[1,47],w=[1,50],T=[1,10,12,14,16,18,19,21,23,34,35,36],E=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],D=[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],O=[1,64],k={trace:t(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:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 5:r.setOrientation(a[s]);break;case 9:r.setDiagramTitle(a[s].text.trim());break;case 12:r.setLineData({text:``,type:`text`},a[s]);break;case 13:r.setLineData(a[s-1],a[s]);break;case 14:r.setBarData({text:``,type:`text`},a[s]);break;case 15:r.setBarData(a[s-1],a[s]);break;case 16:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 19:this.$=a[s-1];break;case 20:this.$=[Number(a[s-2]),...a[s]];break;case 21:this.$=[Number(a[s])];break;case 22:r.setXAxisTitle(a[s]);break;case 23:r.setXAxisTitle(a[s-1]);break;case 24:r.setXAxisTitle({type:`text`,text:``});break;case 25:r.setXAxisBand(a[s]);break;case 26:r.setXAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 27:this.$=a[s-1];break;case 28:this.$=[a[s-2],...a[s]];break;case 29:this.$=[a[s]];break;case 30:r.setYAxisTitle(a[s]);break;case 31:r.setYAxisTitle(a[s-1]);break;case 32:r.setYAxisTitle({type:`text`,text:``});break;case 33:r.setYAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 37:this.$={text:a[s],type:`text`};break;case 38:this.$={text:a[s],type:`text`};break;case 39:this.$={text:a[s],type:`markdown`};break;case 40:this.$=a[s];break;case 41:this.$=a[s-1]+``+a[s];break}},`anonymous`),table:[e(n,r,{3:1,4:2,7:4,5:i,34:a,35:o,36:s}),{1:[3]},e(n,r,{4:2,7:4,3:8,5:i,34:a,35:o,36:s}),e(n,r,{4:2,7:4,6:9,3:10,5:i,8:[1,11],34:a,35:o,36:s}),{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]},e(c,[2,34]),e(c,[2,35]),e(c,[2,36]),{1:[2,1]},e(n,r,{4:2,7:4,3:21,5:i,34:a,35:o,36:s}),{1:[2,3]},e(c,[2,5]),e(n,[2,7],{4:22,34:a,35:o,36:s}),{11:23,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},{11:39,13:38,24:x,27:S,29:40,30:41,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},{11:45,15:44,27:C,33:46,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},{11:49,17:48,24:w,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},{11:52,17:51,24:w,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},{20:[1,53]},{22:[1,54]},e(T,[2,18]),{1:[2,2]},e(T,[2,8]),e(T,[2,9]),e(E,[2,37],{40:55,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b}),e(E,[2,38]),e(E,[2,39]),e(D,[2,40]),e(D,[2,42]),e(D,[2,43]),e(D,[2,44]),e(D,[2,45]),e(D,[2,46]),e(D,[2,47]),e(D,[2,48]),e(D,[2,49]),e(D,[2,50]),e(D,[2,51]),e(T,[2,10]),e(T,[2,22],{30:41,29:56,24:x,27:S}),e(T,[2,24]),e(T,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},e(T,[2,11]),e(T,[2,30],{33:60,27:C}),e(T,[2,32]),{31:[1,61]},e(T,[2,12]),{17:62,24:w},{25:63,27:O},e(T,[2,14]),{17:65,24:w},e(T,[2,16]),e(T,[2,17]),e(D,[2,41]),e(T,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(T,[2,31]),{27:[1,69]},e(T,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(T,[2,15]),e(T,[2,26]),e(T,[2,27]),{11:59,32:72,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},e(T,[2,33]),e(T,[2,19]),{25:73,27:O},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};k.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>Data — Maxy</title>
|
|
7
7
|
<link rel="icon" href="/favicon.ico">
|
|
8
|
-
<script type="module" crossorigin src="/assets/data-
|
|
8
|
+
<script type="module" crossorigin src="/assets/data-BajF3t1i.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="/assets/chunk-DD-I1_y5.js">
|
|
10
|
-
<link rel="modulepreload" crossorigin href="/assets/jsx-runtime-
|
|
11
|
-
<link rel="modulepreload" crossorigin href="/assets/share-2-
|
|
12
|
-
<link rel="modulepreload" crossorigin href="/assets/file-
|
|
13
|
-
<link rel="modulepreload" crossorigin href="/assets/house-
|
|
14
|
-
<link rel="
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/assets/jsx-runtime-Cb-WunFZ.js">
|
|
11
|
+
<link rel="modulepreload" crossorigin href="/assets/share-2-DkF8neDM.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/assets/file-CRrDfnO1.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/assets/house-D1CBraxB.js">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="/assets/trash-2-Dde58AAR.js">
|
|
15
|
+
<link rel="stylesheet" crossorigin href="/assets/jsx-runtime-CZtLX8NN.css">
|
|
15
16
|
</head>
|
|
16
17
|
<body>
|
|
17
18
|
<div id="root"></div>
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>Graph — Maxy</title>
|
|
7
7
|
<link rel="icon" href="/favicon.ico">
|
|
8
|
-
<script type="module" crossorigin src="/assets/graph-
|
|
8
|
+
<script type="module" crossorigin src="/assets/graph-CSBMZGGe.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="/assets/chunk-DD-I1_y5.js">
|
|
10
|
-
<link rel="modulepreload" crossorigin href="/assets/jsx-runtime-
|
|
11
|
-
<link rel="modulepreload" crossorigin href="/assets/share-2-
|
|
12
|
-
<link rel="modulepreload" crossorigin href="/assets/house-
|
|
13
|
-
<link rel="modulepreload" crossorigin href="/assets/x-
|
|
14
|
-
<link rel="stylesheet" crossorigin href="/assets/jsx-runtime-
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/assets/jsx-runtime-Cb-WunFZ.js">
|
|
11
|
+
<link rel="modulepreload" crossorigin href="/assets/share-2-DkF8neDM.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/assets/house-D1CBraxB.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/assets/x-D52qhSya.js">
|
|
14
|
+
<link rel="stylesheet" crossorigin href="/assets/jsx-runtime-CZtLX8NN.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body>
|
|
17
17
|
<div id="root"></div>
|
|
@@ -5,15 +5,16 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>Real Agent</title>
|
|
7
7
|
<link rel="icon" href="/favicon.ico">
|
|
8
|
-
<script type="module" crossorigin src="/assets/admin-
|
|
8
|
+
<script type="module" crossorigin src="/assets/admin-S2KHPNe4.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="/assets/chunk-DD-I1_y5.js">
|
|
10
|
-
<link rel="modulepreload" crossorigin href="/assets/jsx-runtime-
|
|
11
|
-
<link rel="modulepreload" crossorigin href="/assets/preload-helper-
|
|
12
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
13
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
14
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
15
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
16
|
-
<link rel="
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/assets/jsx-runtime-Cb-WunFZ.js">
|
|
11
|
+
<link rel="modulepreload" crossorigin href="/assets/preload-helper-BEFjQwLd.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/assets/trash-2-Dde58AAR.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/assets/useVoiceRecorder-Hz9X6luB.js">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="/assets/share-2-DkF8neDM.js">
|
|
15
|
+
<link rel="modulepreload" crossorigin href="/assets/file-CRrDfnO1.js">
|
|
16
|
+
<link rel="modulepreload" crossorigin href="/assets/x-D52qhSya.js">
|
|
17
|
+
<link rel="stylesheet" crossorigin href="/assets/jsx-runtime-CZtLX8NN.css">
|
|
17
18
|
<link rel="stylesheet" crossorigin href="/assets/admin-kHJ-D0s7.css">
|
|
18
19
|
<link rel="stylesheet" href="/brand-defaults.css">
|
|
19
20
|
</head>
|
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>Real Agent</title>
|
|
7
7
|
<link rel="icon" href="/favicon.ico">
|
|
8
|
-
<script type="module" crossorigin src="/assets/public-
|
|
8
|
+
<script type="module" crossorigin src="/assets/public-ukz9-gSe.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="/assets/chunk-DD-I1_y5.js">
|
|
10
|
-
<link rel="modulepreload" crossorigin href="/assets/jsx-runtime-
|
|
11
|
-
<link rel="modulepreload" crossorigin href="/assets/preload-helper-
|
|
12
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
13
|
-
<link rel="
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/assets/jsx-runtime-Cb-WunFZ.js">
|
|
11
|
+
<link rel="modulepreload" crossorigin href="/assets/preload-helper-BEFjQwLd.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/assets/trash-2-Dde58AAR.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/assets/useVoiceRecorder-Hz9X6luB.js">
|
|
14
|
+
<link rel="stylesheet" crossorigin href="/assets/jsx-runtime-CZtLX8NN.css">
|
|
14
15
|
<link rel="stylesheet" href="/brand-defaults.css">
|
|
15
16
|
</head>
|
|
16
17
|
<body>
|
package/payload/server/server.js
CHANGED
|
@@ -19684,9 +19684,9 @@ var cloudflare_default = app23;
|
|
|
19684
19684
|
|
|
19685
19685
|
// server/routes/admin/files.ts
|
|
19686
19686
|
import { createReadStream as createReadStream3 } from "fs";
|
|
19687
|
-
import { readdir as readdir2, readFile as readFile4, stat as stat4, mkdir as mkdir3, writeFile as writeFile4 } from "fs/promises";
|
|
19687
|
+
import { readdir as readdir2, readFile as readFile4, stat as stat4, mkdir as mkdir3, writeFile as writeFile4, unlink as unlink2 } from "fs/promises";
|
|
19688
19688
|
import { realpathSync as realpathSync4 } from "fs";
|
|
19689
|
-
import { basename as basename6, join as join12, resolve as resolve28, sep as sep2 } from "path";
|
|
19689
|
+
import { basename as basename6, dirname as dirname9, join as join12, resolve as resolve28, sep as sep2 } from "path";
|
|
19690
19690
|
import { Readable as Readable3 } from "stream";
|
|
19691
19691
|
|
|
19692
19692
|
// app/lib/data-path.ts
|
|
@@ -19744,12 +19744,44 @@ async function readMeta(absDir, baseName) {
|
|
|
19744
19744
|
}
|
|
19745
19745
|
return null;
|
|
19746
19746
|
}
|
|
19747
|
-
async function
|
|
19747
|
+
async function readAccountNames() {
|
|
19748
|
+
const map = /* @__PURE__ */ new Map();
|
|
19749
|
+
const accountsDir = resolve28(DATA_ROOT, "accounts");
|
|
19750
|
+
let names;
|
|
19751
|
+
try {
|
|
19752
|
+
names = await readdir2(accountsDir);
|
|
19753
|
+
} catch {
|
|
19754
|
+
return map;
|
|
19755
|
+
}
|
|
19756
|
+
for (const name of names) {
|
|
19757
|
+
if (!UUID_RE2.test(name)) continue;
|
|
19758
|
+
const configPath2 = resolve28(accountsDir, name, "account.json");
|
|
19759
|
+
try {
|
|
19760
|
+
const raw2 = await readFile4(configPath2, "utf8");
|
|
19761
|
+
const parsed = JSON.parse(raw2);
|
|
19762
|
+
if (typeof parsed?.name === "string" && parsed.name.length > 0) {
|
|
19763
|
+
map.set(name, parsed.name);
|
|
19764
|
+
} else {
|
|
19765
|
+
console.error(`[data] scope-resolve-miss uuid="${name}" reason="no-name"`);
|
|
19766
|
+
}
|
|
19767
|
+
} catch (err) {
|
|
19768
|
+
const code = err.code;
|
|
19769
|
+
console.error(`[data] scope-resolve-miss uuid="${name}" reason="${code === "ENOENT" ? "enoent" : "parse"}"`);
|
|
19770
|
+
}
|
|
19771
|
+
}
|
|
19772
|
+
return map;
|
|
19773
|
+
}
|
|
19774
|
+
async function enrich(absolute, entry, accountNames) {
|
|
19748
19775
|
if (entry.kind === "directory" && UUID_RE2.test(entry.name)) {
|
|
19749
19776
|
const meta = await readMeta(join12(absolute, entry.name), entry.name);
|
|
19750
19777
|
if (meta?.filename) {
|
|
19751
19778
|
entry.displayName = meta.filename;
|
|
19752
19779
|
entry.mimeType = meta.mimeType;
|
|
19780
|
+
return;
|
|
19781
|
+
}
|
|
19782
|
+
const accountName = accountNames.get(entry.name);
|
|
19783
|
+
if (accountName) {
|
|
19784
|
+
entry.displayName = accountName;
|
|
19753
19785
|
}
|
|
19754
19786
|
return;
|
|
19755
19787
|
}
|
|
@@ -19765,6 +19797,13 @@ async function enrich(absolute, entry) {
|
|
|
19765
19797
|
}
|
|
19766
19798
|
}
|
|
19767
19799
|
}
|
|
19800
|
+
function buildDisplayPath(relPath, accountNames) {
|
|
19801
|
+
if (relPath === "." || relPath === "") return [];
|
|
19802
|
+
return relPath.split("/").filter(Boolean).map((seg) => {
|
|
19803
|
+
const dn = UUID_RE2.test(seg) ? accountNames.get(seg) : void 0;
|
|
19804
|
+
return dn ? { name: seg, displayName: dn } : { name: seg };
|
|
19805
|
+
});
|
|
19806
|
+
}
|
|
19768
19807
|
var app24 = new Hono2();
|
|
19769
19808
|
app24.get("/", requireAdminSession, async (c) => {
|
|
19770
19809
|
const sessionKey = c.var.sessionKey;
|
|
@@ -19805,15 +19844,17 @@ app24.get("/", requireAdminSession, async (c) => {
|
|
|
19805
19844
|
entries.push({ name, kind: "other", sizeBytes: null, modifiedAt: (/* @__PURE__ */ new Date(0)).toISOString() });
|
|
19806
19845
|
}
|
|
19807
19846
|
}
|
|
19808
|
-
|
|
19847
|
+
const accountNames = await readAccountNames();
|
|
19848
|
+
await Promise.all(entries.map((e) => enrich(absolute, e, accountNames)));
|
|
19809
19849
|
entries.sort((a, b) => {
|
|
19810
19850
|
if (a.kind !== b.kind) return a.kind === "directory" ? -1 : 1;
|
|
19811
19851
|
const aKey = a.displayName ?? a.name;
|
|
19812
19852
|
const bKey = b.displayName ?? b.name;
|
|
19813
19853
|
return aKey.localeCompare(bKey);
|
|
19814
19854
|
});
|
|
19855
|
+
const displayPath = buildDisplayPath(relPath, accountNames);
|
|
19815
19856
|
console.error(`[data] file-list path="${relPath}" entries=${entries.length}`);
|
|
19816
|
-
return c.json({ path: relPath, entries });
|
|
19857
|
+
return c.json({ path: relPath, displayPath, entries });
|
|
19817
19858
|
} catch (err) {
|
|
19818
19859
|
const code = err.code;
|
|
19819
19860
|
if (code === "ENOENT") {
|
|
@@ -19931,6 +19972,59 @@ app24.post("/upload", requireAdminSession, async (c) => {
|
|
|
19931
19972
|
mimeType: file.type
|
|
19932
19973
|
});
|
|
19933
19974
|
});
|
|
19975
|
+
app24.delete("/", requireAdminSession, async (c) => {
|
|
19976
|
+
const sessionKey = c.var.sessionKey;
|
|
19977
|
+
if (!getAccountIdForSession(sessionKey)) {
|
|
19978
|
+
console.error(`[data] auth-rejected endpoint="DELETE /api/admin/files" reason="no account for session"`);
|
|
19979
|
+
return c.json({ error: "Account not found for session" }, 401);
|
|
19980
|
+
}
|
|
19981
|
+
const rawPath = c.req.query("path") ?? "";
|
|
19982
|
+
if (!rawPath) return c.json({ error: "path required" }, 400);
|
|
19983
|
+
const resolution = resolveDataPath(rawPath);
|
|
19984
|
+
if (!resolution.ok) {
|
|
19985
|
+
if (resolution.status === 403) {
|
|
19986
|
+
console.error(`[data] path-traversal-blocked requested="${rawPath}" resolved="${resolution.resolved ?? "n/a"}"`);
|
|
19987
|
+
}
|
|
19988
|
+
return c.json({ error: resolution.error }, resolution.status);
|
|
19989
|
+
}
|
|
19990
|
+
const { absolute, relative: relPath } = resolution;
|
|
19991
|
+
const base = basename6(absolute);
|
|
19992
|
+
const segments = relPath.split("/").filter(Boolean);
|
|
19993
|
+
if (base === "account.json" || segments.includes(".git")) {
|
|
19994
|
+
console.error(`[data] file-delete blocked path="${relPath}" reason="protected"`);
|
|
19995
|
+
return c.json({ error: "Protected file \u2014 refusing to delete" }, 403);
|
|
19996
|
+
}
|
|
19997
|
+
try {
|
|
19998
|
+
const info = await stat4(absolute);
|
|
19999
|
+
if (info.isDirectory()) {
|
|
20000
|
+
return c.json({ error: "Directory deletion not supported" }, 400);
|
|
20001
|
+
}
|
|
20002
|
+
if (!info.isFile()) {
|
|
20003
|
+
return c.json({ error: "Not a regular file" }, 400);
|
|
20004
|
+
}
|
|
20005
|
+
const dot = base.lastIndexOf(".");
|
|
20006
|
+
const stem = dot === -1 ? base : base.slice(0, dot);
|
|
20007
|
+
const sidecarPath = UUID_RE2.test(stem) && base !== `${stem}.meta.json` ? join12(dirname9(absolute), `${stem}.meta.json`) : null;
|
|
20008
|
+
await unlink2(absolute);
|
|
20009
|
+
if (sidecarPath) {
|
|
20010
|
+
try {
|
|
20011
|
+
await unlink2(sidecarPath);
|
|
20012
|
+
} catch {
|
|
20013
|
+
}
|
|
20014
|
+
}
|
|
20015
|
+
console.error(`[data] file-delete path="${relPath}" bytes=${info.size}`);
|
|
20016
|
+
return c.json({ ok: true });
|
|
20017
|
+
} catch (err) {
|
|
20018
|
+
const code = err.code;
|
|
20019
|
+
if (code === "ENOENT") {
|
|
20020
|
+
console.error(`[data] file-delete not-found path="${relPath}"`);
|
|
20021
|
+
return c.json({ error: "Not found" }, 404);
|
|
20022
|
+
}
|
|
20023
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
20024
|
+
console.error(`[data] file-delete error path="${relPath}" err="${message}"`);
|
|
20025
|
+
return c.json({ error: message }, 500);
|
|
20026
|
+
}
|
|
20027
|
+
});
|
|
19934
20028
|
var files_default = app24;
|
|
19935
20029
|
|
|
19936
20030
|
// server/routes/admin/graph-search.ts
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-K5T4RW27-CTTOezMH.js";import{n as e}from"./chunk-7N4EOEYR-GUck0jv1.js";export{e as createArchitectureServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{it as e,rt as t}from"./chunk-ICPOFSXX-Di63NBur.js";var n=(n,r)=>e.lang.round(t.parse(n)[r]);export{n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e,p as t}from"./src-Bo15iQ7w.js";import{b as n}from"./chunk-ICPOFSXX-Di63NBur.js";var r=e(e=>{let{securityLevel:r}=n(),i=t(`body`);return r===`sandbox`&&(i=t((t(`#i${e}`).node()?.contentDocument??document).body)),i.select(`#${e}`)},`selectSvgElement`);export{r as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e}from"./src-Bo15iQ7w.js";var t=class{constructor(e){this.init=e,this.records=this.init()}static{e(this,`ImperativeState`)}reset(){this.records=this.init()}};export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e}from"./src-Bo15iQ7w.js";import"./chunk-ICPOFSXX-Di63NBur.js";import"./dist-CrzV1W3-.js";import"./chunk-5PVQY5BW-RhIfPCRB.js";import"./chunk-U2HBQHQK-BZnA7c4T.js";import"./chunk-FMBD7UC4-DaRrfk3s.js";import"./chunk-BSJP7CBP-CTsYuARh.js";import"./chunk-ZZ45TVLE-DBSm41oP.js";import"./chunk-YZCP3GAM-BAkNXu0G.js";import"./chunk-55IACEB6-CzqB8aoU.js";import"./chunk-EDXVE4YY-utELKGQK.js";import"./chunk-X2U36JSP-DpQ2OA_c.js";import"./chunk-5FUZZQ4R-BoTfWHuW.js";import"./chunk-ENJZ2VHE-CNHjq5xK.js";import"./chunk-336JU56O-BpATJiGl.js";import{i as t,n,r,t as i}from"./chunk-4TB4RGXK-CLXL19Wd.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e}from"./src-Bo15iQ7w.js";import"./chunk-ICPOFSXX-Di63NBur.js";import"./dist-CrzV1W3-.js";import"./chunk-5PVQY5BW-RhIfPCRB.js";import"./chunk-U2HBQHQK-BZnA7c4T.js";import"./chunk-FMBD7UC4-DaRrfk3s.js";import"./chunk-BSJP7CBP-CTsYuARh.js";import"./chunk-ZZ45TVLE-DBSm41oP.js";import"./chunk-YZCP3GAM-BAkNXu0G.js";import"./chunk-55IACEB6-CzqB8aoU.js";import"./chunk-EDXVE4YY-utELKGQK.js";import"./chunk-X2U36JSP-DpQ2OA_c.js";import"./chunk-5FUZZQ4R-BoTfWHuW.js";import"./chunk-ENJZ2VHE-CNHjq5xK.js";import"./chunk-336JU56O-BpATJiGl.js";import{i as t,n,r,t as i}from"./chunk-4TB4RGXK-CLXL19Wd.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./graphlib-B_mcXEVr.js";var t=4;function n(n){return e(n,t)}export{n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-DD-I1_y5.js";import{a as t,n,r,t as i}from"./jsx-runtime-BrB6Lw5Y.js";import{a,i as o,n as s,o as c,r as l,t as u}from"./share-2-Cnd_9DYU.js";import{n as d,t as f}from"./file-DRa7iPfT.js";import{t as p}from"./house-DEu5yOIQ.js";var m=n(`circle-arrow-up`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 12-4-4-4 4`,key:`177agl`}],[`path`,{d:`M12 16V8`,key:`1sbj14`}]]),h=n(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),g=n(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),_=r(),v=e(t(),1),y=i();function b(){let[e,t]=(0,v.useState)(null),[n,r]=(0,v.useState)(!1);return(0,v.useEffect)(()=>{try{t(sessionStorage.getItem(`maxy-admin-session-key`))}catch{t(null)}r(!0)},[]),n?e?(0,y.jsxs)(`div`,{className:`data-page`,children:[(0,y.jsxs)(`header`,{className:`data-header`,children:[(0,y.jsxs)(`h1`,{className:`data-title`,children:[(0,y.jsx)(c,{size:18}),` Data`]}),(0,y.jsx)(x,{})]}),(0,y.jsxs)(`main`,{className:`data-main`,children:[(0,y.jsx)(S,{sessionKey:e}),(0,y.jsx)(D,{sessionKey:e})]})]}):(0,y.jsxs)(`div`,{className:`data-page`,children:[(0,y.jsx)(`header`,{className:`data-header`,children:(0,y.jsxs)(`h1`,{className:`data-title`,children:[(0,y.jsx)(c,{size:18}),` Data`]})}),(0,y.jsxs)(`div`,{className:`data-empty`,children:[(0,y.jsx)(`p`,{children:`You are not signed in.`}),(0,y.jsxs)(`p`,{children:[`Open the `,(0,y.jsx)(`a`,{href:`/`,className:`data-link`,children:`main admin page`}),` and log in, then return here.`]})]})]}):(0,y.jsx)(`div`,{className:`data-page`,children:(0,y.jsxs)(`div`,{className:`data-loading`,children:[(0,y.jsx)(a,{size:18,className:`spin`}),` Loading…`]})})}function x(){let[e,t]=(0,v.useState)(!1),n=(0,v.useRef)(null);(0,v.useEffect)(()=>{if(!e)return;let r=e=>{n.current&&(n.current.contains(e.target)||t(!1))},i=e=>{e.key===`Escape`&&t(!1)};return document.addEventListener(`mousedown`,r),document.addEventListener(`keydown`,i),()=>{document.removeEventListener(`mousedown`,r),document.removeEventListener(`keydown`,i)}},[e]);let r=(0,v.useCallback)(()=>{try{sessionStorage.removeItem(`maxy-admin-session-key`)}catch{}window.location.href=`/`},[]);return(0,y.jsxs)(`div`,{className:`chat-burger-wrap`,ref:n,children:[(0,y.jsx)(`button`,{type:`button`,className:`chat-burger`,onClick:()=>t(e=>!e),"aria-label":`Menu`,"aria-haspopup":`true`,"aria-expanded":e,children:(0,y.jsx)(l,{size:20})}),e&&(0,y.jsxs)(`div`,{className:`chat-menu`,children:[(0,y.jsxs)(`button`,{type:`button`,className:`chat-menu-item`,onClick:()=>{t(!1),window.location.href=`/`},children:[(0,y.jsx)(p,{size:14}),` Chat`]}),(0,y.jsxs)(`button`,{type:`button`,className:`chat-menu-item`,onClick:()=>{t(!1),window.location.href=`/graph`},children:[(0,y.jsx)(u,{size:14}),` Graph`]}),(0,y.jsx)(`div`,{className:`chat-menu-divider`}),(0,y.jsxs)(`button`,{type:`button`,className:`chat-menu-item`,onClick:()=>{t(!1),r()},children:[(0,y.jsx)(o,{size:14}),` Log out`]})]})]})}function S({sessionKey:e}){let[t,n]=(0,v.useState)(``),[r,i]=(0,v.useState)(``),[o,c]=(0,v.useState)(null),[l,u]=(0,v.useState)(!1),[d,f]=(0,v.useState)(null);return(0,v.useEffect)(()=>{let e=t.trim();if(!e){i(``),c(null);return}let n=setTimeout(()=>i(e),300);return()=>clearTimeout(n)},[t]),(0,v.useEffect)(()=>{if(!r)return;let t=!1;u(!0),f(null);let n=`/api/admin/graph-search?session_key=${encodeURIComponent(e)}&q=${encodeURIComponent(r)}&limit=20`;return fetch(n).then(async e=>{let t=await e.json().catch(()=>({error:`HTTP ${e.status}`}));if(!e.ok)throw Error(t.error??`HTTP ${e.status}`);return t}).then(e=>{t||c(e.results)}).catch(e=>{t||f(e instanceof Error?e.message:String(e))}).finally(()=>{t||u(!1)}),()=>{t=!0}},[r,e]),(0,y.jsxs)(`section`,{className:`data-panel`,children:[(0,y.jsx)(`h2`,{className:`data-panel-title`,children:`Search`}),(0,y.jsx)(`p`,{className:`data-panel-subtitle`,children:`Find anything in your knowledge base by keyword.`}),(0,y.jsxs)(`div`,{className:`data-search-input`,children:[(0,y.jsx)(s,{size:14}),(0,y.jsx)(`input`,{type:`text`,placeholder:`Search your knowledge…`,value:t,onChange:e=>n(e.target.value),autoFocus:!0,autoComplete:`off`,spellCheck:!1}),l&&(0,y.jsx)(a,{size:14,className:`spin`})]}),d&&(0,y.jsxs)(`div`,{className:`data-error`,children:[`Search failed: `,d]}),o&&!l&&(0,y.jsxs)(`div`,{className:`data-results-meta`,children:[o.length,` result`,o.length===1?``:`s`]}),o&&o.length===0&&!l&&(0,y.jsx)(`div`,{className:`data-empty-results`,children:`No matches. Try a different keyword.`}),o&&o.length>0&&(0,y.jsx)(`ul`,{className:`data-results`,children:o.map(e=>(0,y.jsx)(C,{hit:e},e.nodeId))})]})}function C({hit:e}){let t=T(e.properties),n=E(e.properties),r=w(e.labels),[i,a]=(0,v.useState)(!1),o=n&&n.length>280,s=i||!o?n:n?.slice(0,280)+`…`;return(0,y.jsxs)(`li`,{className:`data-result`,children:[r&&(0,y.jsx)(`div`,{className:`data-result-header`,children:(0,y.jsx)(`span`,{className:`data-result-labels`,children:r})}),t&&(0,y.jsx)(`div`,{className:`data-result-title`,children:t}),n&&(0,y.jsx)(`pre`,{className:`data-result-body`,children:s}),o&&(0,y.jsx)(`button`,{type:`button`,className:`data-result-toggle`,onClick:()=>a(e=>!e),children:i?`Show less`:`Show more`})]})}function w(e){if(e.length===0)return null;let t=e[0].replace(/([a-z])([A-Z])/g,`$1 $2`);return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function T(e){for(let t of[`title`,`name`,`summary`,`headline`]){let n=e[t];if(typeof n==`string`&&n.length>0)return n.length>140?n.slice(0,140)+`…`:n}return null}function E(e){for(let t of[`content`,`summary`,`body`,`description`,`text`]){let n=e[t];if(typeof n==`string`&&n.length>0)return n}return null}function D({sessionKey:e}){let[t,n]=(0,v.useState)(`.`),[r,i]=(0,v.useState)(null),[o,s]=(0,v.useState)(!1),[c,l]=(0,v.useState)(null),[u,p]=(0,v.useState)(!1),[_,b]=(0,v.useState)(null),x=(0,v.useRef)(null),[S,C]=(0,v.useState)(0),w=(0,v.useMemo)(()=>O(t),[t]);(0,v.useEffect)(()=>{let n=!1;s(!0),l(null);let r=`/api/admin/files?session_key=${encodeURIComponent(e)}&path=${encodeURIComponent(t===`.`?``:t)}`;return fetch(r).then(async e=>{let t=await e.json().catch(()=>({error:`HTTP ${e.status}`}));if(!e.ok)throw Error(t.error??`HTTP ${e.status}`);return t}).then(e=>{n||i(e.entries)}).catch(e=>{n||(i([]),l(e instanceof Error?e.message:String(e)))}).finally(()=>{n||s(!1)}),()=>{n=!0}},[e,t,S]);let T=(0,v.useCallback)(e=>{n(e)},[]),E=(0,v.useCallback)(()=>{if(t===`.`||t===``)return;let e=t.split(`/`).filter(Boolean);e.pop(),n(e.length===0?`.`:e.join(`/`))},[t]),D=(0,v.useCallback)(n=>{let r=t===`.`?n.name:`${t}/${n.name}`,i=`/api/admin/files/download?session_key=${encodeURIComponent(e)}&path=${encodeURIComponent(r)}`,a=document.createElement(`a`);a.href=i,a.rel=`noopener noreferrer`,document.body.appendChild(a),a.click(),a.remove()},[t,e]),j=(0,v.useCallback)(()=>{x.current?.click()},[]),M=(0,v.useCallback)(async t=>{b(null),p(!0);try{let r=new FormData;r.append(`session_key`,e),r.append(`file`,t);let i=await fetch(`/api/admin/files/upload`,{method:`POST`,body:r}),a=await i.json().catch(()=>({error:`HTTP ${i.status}`}));if(!i.ok)throw Error(a.error??`HTTP ${i.status}`);n(a.path.split(`/`).slice(0,-1).join(`/`)||`.`),C(e=>e+1)}catch(e){b(e instanceof Error?e.message:String(e))}finally{p(!1),x.current&&(x.current.value=``)}},[e]);return(0,y.jsxs)(`section`,{className:`data-panel`,children:[(0,y.jsxs)(`div`,{className:`data-panel-heading`,children:[(0,y.jsx)(`h2`,{className:`data-panel-title`,children:`Files`}),(0,y.jsxs)(`div`,{className:`data-file-actions`,children:[(0,y.jsxs)(`button`,{type:`button`,className:`data-btn`,onClick:j,disabled:u,children:[u?(0,y.jsx)(a,{size:14,className:`spin`}):(0,y.jsx)(g,{size:14}),` Upload`]}),(0,y.jsx)(`input`,{type:`file`,ref:x,hidden:!0,onChange:e=>{let t=e.target.files?.[0];t&&M(t)}})]})]}),(0,y.jsxs)(`p`,{className:`data-panel-subtitle`,children:[`Everything under your install's `,(0,y.jsx)(`code`,{children:`data/`}),` directory. Click a folder to open it, a file to download it. Uploads go to `,(0,y.jsx)(`code`,{children:`data/uploads/`}),`.`]}),(0,y.jsxs)(`div`,{className:`data-breadcrumbs`,children:[(0,y.jsx)(`button`,{type:`button`,className:`data-crumb`,onClick:()=>T(`.`),children:`data`}),w.map(e=>(0,y.jsxs)(`span`,{className:`data-crumb-wrap`,children:[(0,y.jsx)(`span`,{className:`data-crumb-sep`,children:`/`}),(0,y.jsx)(`button`,{type:`button`,className:`data-crumb`,onClick:()=>T(e.path),children:e.name})]},e.path)),t!==`.`&&(0,y.jsxs)(`button`,{type:`button`,className:`data-btn data-btn-ghost data-up-btn`,onClick:E,children:[(0,y.jsx)(m,{size:14}),` Up`]})]}),_&&(0,y.jsxs)(`div`,{className:`data-error`,children:[`Upload failed: `,_]}),c&&(0,y.jsx)(`div`,{className:`data-error`,children:c}),o&&(0,y.jsxs)(`div`,{className:`data-loading`,children:[(0,y.jsx)(a,{size:14,className:`spin`}),` Loading…`]}),!o&&r&&r.length===0&&!c&&(0,y.jsx)(`div`,{className:`data-empty-results`,children:`Empty directory.`}),!o&&r&&r.length>0&&(0,y.jsx)(`ul`,{className:`data-entries`,children:r.map(e=>{let n=e.displayName??e.name;return(0,y.jsx)(`li`,{className:`data-entry`,children:e.kind===`directory`?(0,y.jsxs)(`button`,{type:`button`,className:`data-entry-btn`,onClick:()=>T(t===`.`?e.name:`${t}/${e.name}`),children:[(0,y.jsx)(h,{size:14}),(0,y.jsx)(`span`,{className:`data-entry-name`,title:e.name,children:n}),(0,y.jsx)(`span`,{className:`data-entry-meta`,children:A(e.modifiedAt)})]}):e.kind===`file`?(0,y.jsxs)(`button`,{type:`button`,className:`data-entry-btn`,onClick:()=>D(e),title:`Download ${n}`,children:[(0,y.jsx)(f,{size:14}),(0,y.jsx)(`span`,{className:`data-entry-name`,title:e.name,children:n}),(0,y.jsxs)(`span`,{className:`data-entry-meta`,children:[k(e.sizeBytes),` · `,A(e.modifiedAt)]}),(0,y.jsx)(d,{size:12,className:`data-entry-download-icon`})]}):(0,y.jsxs)(`div`,{className:`data-entry-btn data-entry-disabled`,children:[(0,y.jsx)(f,{size:14}),(0,y.jsx)(`span`,{className:`data-entry-name`,children:n}),(0,y.jsx)(`span`,{className:`data-entry-meta`,children:`special`})]})},e.name)})})]})}function O(e){if(e===`.`||e===``)return[];let t=e.split(`/`).filter(Boolean),n=[];for(let e=0;e<t.length;e++)n.push({name:t[e],path:t.slice(0,e+1).join(`/`)});return n}function k(e){return e==null?``:e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/1024/1024).toFixed(1)} MB`:`${(e/1024/1024/1024).toFixed(1)} GB`}function A(e){try{let t=new Date(e);if(isNaN(t.getTime()))return`—`;let n=typeof navigator<`u`?navigator.languages&&navigator.languages.length>0?[...navigator.languages]:[navigator.language]:void 0;return t.toLocaleString(n,{dateStyle:`medium`,timeStyle:`short`})}catch{return`—`}}(0,_.createRoot)(document.getElementById(`root`)).render((0,y.jsx)(b,{}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-K5T4RW27-CTTOezMH.js";import{n as e}from"./chunk-67CJDMHE-mM1sFmlz.js";export{e as createGitGraphServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-K5T4RW27-CTTOezMH.js";import{n as e}from"./chunk-KGLVRYIC-DCkohKP2.js";export{e as createInfoServices};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./chunk-K5T4RW27-CTTOezMH.js";import"./chunk-7N4EOEYR-GUck0jv1.js";import"./chunk-67CJDMHE-mM1sFmlz.js";import"./chunk-KGLVRYIC-DCkohKP2.js";import"./chunk-FOC6F5B3-BaeLcJVt.js";import"./chunk-AA7GKIK3-BYhfUc1V.js";import"./chunk-2KRD3SAO-ZcHg_orY.js";import"./chunk-ORNJ4GCN-DoLajOOe.js";import"./chunk-LIHQZDEY-osQO30uB.js";import"./chunk-CIAEETIT-CGsGmUze.js";import{g as e,h as t}from"./src-Bo15iQ7w.js";import{c as n}from"./chunk-ICPOFSXX-Di63NBur.js";import{t as r}from"./chunk-426QAEUC-Wz6Bpsil.js";import{t as i}from"./mermaid-parser.core-C8xGCa9p.js";var a={parse:t(async t=>{let n=await i(`info`,t);e.debug(n)},`parse`)},o={version:`11.14.0`},s={parser:a,db:{getVersion:t(()=>o.version,`getVersion`)},renderer:{draw:t((t,i,a)=>{e.debug(`rendering info diagram
|
|
2
|
-
`+t);let o=r(i);n(o,100,400,!0),o.append(`g`).append(`text`).attr(`x`,100).attr(`y`,40).attr(`class`,`version`).attr(`font-size`,32).style(`text-anchor`,`middle`).text(`v${a}`)},`draw`)}};export{s as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-K5T4RW27-CTTOezMH.js";import{n as e}from"./chunk-FOC6F5B3-BaeLcJVt.js";export{e as createPacketServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-K5T4RW27-CTTOezMH.js";import{n as e}from"./chunk-AA7GKIK3-BYhfUc1V.js";export{e as createPieServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-K5T4RW27-CTTOezMH.js";import{n as e}from"./chunk-2KRD3SAO-ZcHg_orY.js";export{e as createRadarServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e}from"./src-Bo15iQ7w.js";import"./chunk-ICPOFSXX-Di63NBur.js";import"./dist-CrzV1W3-.js";import"./chunk-5PVQY5BW-RhIfPCRB.js";import"./chunk-U2HBQHQK-BZnA7c4T.js";import"./chunk-BSJP7CBP-CTsYuARh.js";import"./chunk-ZZ45TVLE-DBSm41oP.js";import"./chunk-55IACEB6-CzqB8aoU.js";import"./chunk-EDXVE4YY-utELKGQK.js";import"./chunk-X2U36JSP-DpQ2OA_c.js";import"./chunk-5FUZZQ4R-BoTfWHuW.js";import"./chunk-ENJZ2VHE-CNHjq5xK.js";import"./chunk-336JU56O-BpATJiGl.js";import{i as t,n,r,t as i}from"./chunk-OYMX7WX6-BSPzqyxs.js";var a={parser:n,get db(){return new i(2)},renderer:r,styles:t,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-K5T4RW27-CTTOezMH.js";import{n as e}from"./chunk-ORNJ4GCN-DoLajOOe.js";export{e as createTreeViewServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-K5T4RW27-CTTOezMH.js";import{n as e}from"./chunk-LIHQZDEY-osQO30uB.js";export{e as createTreemapServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-K5T4RW27-CTTOezMH.js";import{n as e}from"./chunk-CIAEETIT-CGsGmUze.js";export{e as createWardleyServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./jsx-runtime-BrB6Lw5Y.js";var t=e(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);export{t};
|
|
File without changes
|
|
File without changes
|
/package/payload/server/public/assets/{cytoscape.esm-BcJTl1re.js → cytoscape.esm-CDZo0kst.js}
RENAMED
|
File without changes
|
/package/payload/server/public/assets/{defaultLocale-B4F_XsBB.js → defaultLocale-GJwWH1Jr.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/payload/server/public/assets/{preload-helper-qlgyTAkD.js → preload-helper-BEFjQwLd.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|