@aiquants/markdown 3.0.0 → 4.0.0
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/README.md +42 -1
- package/dist/{abnfDiagram-VRR7QNED-BEW-pzlz.cjs → abnfDiagram-VRR7QNED-DL9JJfMF.cjs} +1 -1
- package/dist/{abnfDiagram-VRR7QNED-ashFdTvJ.js → abnfDiagram-VRR7QNED-utxwo7Ri.js} +3 -3
- package/dist/{arc-DVw3O83w.cjs → arc-BY7loL0l.cjs} +1 -1
- package/dist/{arc-CV_3A_PF.js → arc-Byq9kr_0.js} +1 -1
- package/dist/{architectureDiagram-ZJ3FMSHR-ClwjWrgh.cjs → architectureDiagram-ZJ3FMSHR-CLLwinmD.cjs} +1 -1
- package/dist/{architectureDiagram-ZJ3FMSHR-BsYF-1vK.js → architectureDiagram-ZJ3FMSHR-DpnBy_s1.js} +2 -2
- package/dist/{blockDiagram-677ZJIJ3-CG0redjq.js → blockDiagram-677ZJIJ3-C8dybZZU.js} +3 -3
- package/dist/{blockDiagram-677ZJIJ3-Dv1BULkl.cjs → blockDiagram-677ZJIJ3-Cs5tpWQ-.cjs} +1 -1
- package/dist/{c4Diagram-LMCZKHZV-Bp8B3b7f.js → c4Diagram-LMCZKHZV-3aG0bDyP.js} +2 -2
- package/dist/{c4Diagram-LMCZKHZV-DC4usA2R.cjs → c4Diagram-LMCZKHZV-B-rz2a3v.cjs} +1 -1
- package/dist/{channel-NjFKsGs9.js → channel-BoXFYC1g.js} +1 -1
- package/dist/{channel-Cg0ufK1F.cjs → channel-Dn2hPSB8.cjs} +1 -1
- package/dist/{chunk-2Q5K7J3B-BY6lLkFO.cjs → chunk-2Q5K7J3B-B7QkO_05.cjs} +1 -1
- package/dist/{chunk-2Q5K7J3B-XXQGFlOd.js → chunk-2Q5K7J3B-CYpyj9EA.js} +1 -1
- package/dist/{chunk-32BRIVSS-kO6eHILC.cjs → chunk-32BRIVSS-BjI5igEa.cjs} +1 -1
- package/dist/{chunk-32BRIVSS-DgnH6GLY.js → chunk-32BRIVSS-DcLe6F1l.js} +1 -1
- package/dist/{chunk-5VM5RSS4-BhA4Tl7P.js → chunk-5VM5RSS4-C4ILSCRb.js} +1 -1
- package/dist/{chunk-5VM5RSS4-BITLjZU7.cjs → chunk-5VM5RSS4-DafQyxAv.cjs} +1 -1
- package/dist/{chunk-EX3LRPZG-CJr2-IiP.cjs → chunk-EX3LRPZG-BXZDK2R1.cjs} +1 -1
- package/dist/{chunk-EX3LRPZG-DSylTHty.js → chunk-EX3LRPZG-CTaiVHYY.js} +4 -4
- package/dist/{chunk-JWPE2WC7-Cr_-c4Em.js → chunk-JWPE2WC7-B-nuuS4b.js} +1 -1
- package/dist/{chunk-JWPE2WC7-BTz8xxEq.cjs → chunk-JWPE2WC7-CNZBI1Pb.cjs} +1 -1
- package/dist/{chunk-MOJQB5TN-DngSrRvI.js → chunk-MOJQB5TN-D1oF99aM.js} +1 -1
- package/dist/{chunk-MOJQB5TN-vnYqNQhm.cjs → chunk-MOJQB5TN-Dh_1HfSC.cjs} +1 -1
- package/dist/{chunk-PUDLZKDR-BTwddg7A.cjs → chunk-PUDLZKDR-CMFJFweY.cjs} +1 -1
- package/dist/{chunk-PUDLZKDR-Jnb9X3uo.js → chunk-PUDLZKDR-CPadtN2C.js} +6 -6
- package/dist/{chunk-RYQCIY6F-DxECu9__.cjs → chunk-RYQCIY6F-C6453DQl.cjs} +1 -1
- package/dist/{chunk-RYQCIY6F-CwJsUgE_.js → chunk-RYQCIY6F-DxuegR0d.js} +1 -1
- package/dist/{chunk-V7JOEXUC-DgGwolBn.cjs → chunk-V7JOEXUC-l9PaMPOT.cjs} +1 -1
- package/dist/{chunk-V7JOEXUC-gEKuI7OI.js → chunk-V7JOEXUC-ziE5DrnY.js} +5 -5
- package/dist/{chunk-VR4S4FIN-8cM_PVeG.js → chunk-VR4S4FIN-BiCYvwb8.js} +1 -1
- package/dist/{chunk-VR4S4FIN-DKbaKheJ.cjs → chunk-VR4S4FIN-CCCnXTuJ.cjs} +1 -1
- package/dist/{chunk-XXDRQBXY-CN2bL4d4.js → chunk-XXDRQBXY-BFKT7vFo.js} +1 -1
- package/dist/{chunk-XXDRQBXY-CDD2QRgB.cjs → chunk-XXDRQBXY-D5IbqpUM.cjs} +1 -1
- package/dist/{classDiagram-OUVF2IWQ-DpgKwDbm.cjs → classDiagram-OUVF2IWQ-C1AZm4pB.cjs} +1 -1
- package/dist/{classDiagram-v2-EOCWNBFH-_cymiFSf.js → classDiagram-OUVF2IWQ-KA_F_TBQ.js} +2 -2
- package/dist/{classDiagram-v2-EOCWNBFH-DpgKwDbm.cjs → classDiagram-v2-EOCWNBFH-C1AZm4pB.cjs} +1 -1
- package/dist/{classDiagram-OUVF2IWQ-_cymiFSf.js → classDiagram-v2-EOCWNBFH-KA_F_TBQ.js} +2 -2
- package/dist/components/MarkdownRenderer.d.ts +3 -1
- package/dist/components/MarkdownViewer.d.ts +3 -1
- package/dist/components/MermaidDiagram.d.ts +1 -0
- package/dist/components/mathRendering.d.ts +11 -0
- package/dist/components/mdastNodes/MathNode.d.ts +10 -0
- package/dist/{cose-bilkent-JH36ORCC-DnfyBXGg.cjs → cose-bilkent-JH36ORCC-BQ2K2GyI.cjs} +1 -1
- package/dist/{cose-bilkent-JH36ORCC-BYBqAjZw.js → cose-bilkent-JH36ORCC-B_16TV-v.js} +1 -1
- package/dist/{cynefinDiagram-TSTJHNR4-BWEOxUpI.js → cynefinDiagram-TSTJHNR4-DTV6ORFc.js} +2 -2
- package/dist/{cynefinDiagram-TSTJHNR4-C8EYsJAe.cjs → cynefinDiagram-TSTJHNR4-Dq7UoRYB.cjs} +1 -1
- package/dist/{dagre-VKFMJZFB-Dzz7AfJC.cjs → dagre-VKFMJZFB-PCi8s-PP.cjs} +1 -1
- package/dist/{dagre-VKFMJZFB-D9yci9ce.js → dagre-VKFMJZFB-kSrm5dp4.js} +2 -2
- package/dist/{diagram-FQU43EPY-Byd0f28a.js → diagram-FQU43EPY-D3dKlAPv.js} +2 -2
- package/dist/{diagram-FQU43EPY-B_jbLFxw.cjs → diagram-FQU43EPY-wTUTIyQQ.cjs} +1 -1
- package/dist/{diagram-G47NLZAW-CzGLTuaI.js → diagram-G47NLZAW-HJlhMCYj.js} +3 -3
- package/dist/{diagram-G47NLZAW-BD7Qvt5F.cjs → diagram-G47NLZAW-_4FrgCGJ.cjs} +1 -1
- package/dist/{diagram-NH7WQ7WH-DtE40O1y.cjs → diagram-NH7WQ7WH-ByCeah-n.cjs} +1 -1
- package/dist/{diagram-NH7WQ7WH-D6J_ePSr.js → diagram-NH7WQ7WH-CgeHmdJL.js} +2 -2
- package/dist/{diagram-OA4YK3LP-BV_3h5ls.cjs → diagram-OA4YK3LP-C0IhePjD.cjs} +1 -1
- package/dist/{diagram-OA4YK3LP-BRkpKDSL.js → diagram-OA4YK3LP-CwJcZGHD.js} +3 -3
- package/dist/{diagram-WEI45ONY-CMtm1y9S.cjs → diagram-WEI45ONY-Cf-TVNEb.cjs} +1 -1
- package/dist/{diagram-WEI45ONY-TZvlAD74.js → diagram-WEI45ONY-v1LUmWAx.js} +2 -2
- package/dist/{ebnfDiagram-CCIWWBDH-CK7wZZmM.js → ebnfDiagram-CCIWWBDH-DqZtnwGP.js} +3 -3
- package/dist/{ebnfDiagram-CCIWWBDH-DgZ7GeJ2.cjs → ebnfDiagram-CCIWWBDH-k5XOUGml.cjs} +1 -1
- package/dist/{erDiagram-Q63AITRT-ByF7VP5D.js → erDiagram-Q63AITRT-D6kP6d5J.js} +4 -4
- package/dist/{erDiagram-Q63AITRT-C4Tmp1ar.cjs → erDiagram-Q63AITRT-DFet1VTy.cjs} +1 -1
- package/dist/{extractHeadings-CS-qqdgu.js → extractHeadings-B2I83li5.js} +5148 -5067
- package/dist/{extractHeadings-DZwpYYZa.cjs → extractHeadings-R7NxLZJP.cjs} +70 -70
- package/dist/flowDiagram-23GEKE2U-BTXvBdte.js +7 -0
- package/dist/flowDiagram-23GEKE2U-C81VZYM7.cjs +1 -0
- package/dist/{ganttDiagram-NO4QXBWP-CWaEb7A9.cjs → ganttDiagram-NO4QXBWP-CEQqLRYx.cjs} +1 -1
- package/dist/{ganttDiagram-NO4QXBWP-BxYBLrwg.js → ganttDiagram-NO4QXBWP-I9DxJwkX.js} +2 -2
- package/dist/{gitGraphDiagram-IHSO6WYX-DinEtmt2.js → gitGraphDiagram-IHSO6WYX-p_7WQssC.js} +3 -3
- package/dist/{gitGraphDiagram-IHSO6WYX-Bj41cd84.cjs → gitGraphDiagram-IHSO6WYX-yyEwsmHH.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.client.cjs +1 -1
- package/dist/index.client.d.ts +1 -0
- package/dist/index.client.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{infoDiagram-FWYZ7A6U-D0pXl2DF.cjs → infoDiagram-FWYZ7A6U-BFCkTfAI.cjs} +1 -1
- package/dist/{infoDiagram-FWYZ7A6U-Cvu8wgVT.js → infoDiagram-FWYZ7A6U-C9L5rIcg.js} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-C4ywo5e2.cjs → ishikawaDiagram-FXEZZL3T-B3TjOzka.cjs} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-a_OKoT7W.js → ishikawaDiagram-FXEZZL3T-uxcpJtLF.js} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-Bf5zZtzp.cjs → journeyDiagram-5HDEW3XC-CvtPgaNR.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-BKYDr_AO.js → journeyDiagram-5HDEW3XC-DMq3piuW.js} +4 -4
- package/dist/{kanban-definition-HUTT4EX6-CRrw6nZl.cjs → kanban-definition-HUTT4EX6-DJ9sXiRP.cjs} +1 -1
- package/dist/{kanban-definition-HUTT4EX6-uCk_xnx6.js → kanban-definition-HUTT4EX6-Dfal8jdL.js} +2 -2
- package/dist/{linear-BNrZe-4B.cjs → linear-CLykHvhQ.cjs} +1 -1
- package/dist/{linear-RwkMjaFq.js → linear-CvzPdVAO.js} +1 -1
- package/dist/markdown.css +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-DLgc7_Ea.js → mindmap-definition-LN4V7U3C-C8erO2Mh.js} +3 -3
- package/dist/{mindmap-definition-LN4V7U3C-CtNh9-A3.cjs → mindmap-definition-LN4V7U3C-CErimIK1.cjs} +1 -1
- package/dist/{pegDiagram-2B236MQR-BI08u62h.js → pegDiagram-2B236MQR-CECcXaCN.js} +3 -3
- package/dist/{pegDiagram-2B236MQR-gjNvnRzE.cjs → pegDiagram-2B236MQR-DBL8X0k9.cjs} +1 -1
- package/dist/{pieDiagram-ENE6RG2P-C6mPk_9r.cjs → pieDiagram-ENE6RG2P-B_-x0Nvj.cjs} +1 -1
- package/dist/{pieDiagram-ENE6RG2P-CqqtfJsQ.js → pieDiagram-ENE6RG2P-CWlf16nv.js} +3 -3
- package/dist/{quadrantDiagram-ABIIQ3AL-k1wF3el0.cjs → quadrantDiagram-ABIIQ3AL-HKlopKX4.cjs} +1 -1
- package/dist/{quadrantDiagram-ABIIQ3AL-BAudlbem.js → quadrantDiagram-ABIIQ3AL-JpouSW89.js} +2 -2
- package/dist/{railroadDiagram-RFXS5EU6-qTQnd_2E.cjs → railroadDiagram-RFXS5EU6-B-v61EFn.cjs} +1 -1
- package/dist/{railroadDiagram-RFXS5EU6-BV-FtI-Y.js → railroadDiagram-RFXS5EU6-CLTBEsir.js} +3 -3
- package/dist/{requirementDiagram-TGXJPOKE-DXxySydn.cjs → requirementDiagram-TGXJPOKE-4vCejkrF.cjs} +1 -1
- package/dist/{requirementDiagram-TGXJPOKE-CSI9iBde.js → requirementDiagram-TGXJPOKE-DtoTpDLe.js} +3 -3
- package/dist/{sankeyDiagram-HTMAVEWB-DU5j0Hpe.cjs → sankeyDiagram-HTMAVEWB-Bp8p_ojk.cjs} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-BYAMj1wQ.js → sankeyDiagram-HTMAVEWB-WxnjUz1I.js} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-Dbk1YO-l.cjs → sequenceDiagram-DBY2YBRQ-BUPaWSIG.cjs} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-BruqK1lr.js → sequenceDiagram-DBY2YBRQ-DGJcC2MQ.js} +3 -3
- package/dist/{sizeCapture-X5ZJPWSS-BSn0u1_t.js → sizeCapture-X5ZJPWSS-BmP0pJAx.js} +1 -1
- package/dist/{sizeCapture-X5ZJPWSS-qz-hVWx4.cjs → sizeCapture-X5ZJPWSS-Dk82fAT8.cjs} +1 -1
- package/dist/{stateDiagram-2N3HPSRC-CtoTfzmG.cjs → stateDiagram-2N3HPSRC-CL5Omkqs.cjs} +1 -1
- package/dist/{stateDiagram-2N3HPSRC-CKh5ZWdm.js → stateDiagram-2N3HPSRC-ZL_eFTbb.js} +2 -2
- package/dist/{stateDiagram-v2-6OUMAXLB-BmILy7Yi.js → stateDiagram-v2-6OUMAXLB-BgOqjiSL.js} +2 -2
- package/dist/{stateDiagram-v2-6OUMAXLB-D9tt3CyI.cjs → stateDiagram-v2-6OUMAXLB-D3Zgp8xl.cjs} +1 -1
- package/dist/styles/markdown.css +1 -1
- package/dist/{swimlanes-5IMT3BWC-CgWWlJUL.cjs → swimlanes-5IMT3BWC-CuW1KWfs.cjs} +1 -1
- package/dist/{swimlanes-5IMT3BWC-8aqGUD9B.js → swimlanes-5IMT3BWC-GB1p75ou.js} +3 -3
- package/dist/{swimlanesDiagram-G3AALYLV-BQL_l0K6.cjs → swimlanesDiagram-G3AALYLV-Di_Nug7g.cjs} +1 -1
- package/dist/{swimlanesDiagram-G3AALYLV-0sUz7qWx.js → swimlanesDiagram-G3AALYLV-Jr2ZWz3z.js} +2 -2
- package/dist/{timeline-definition-FHXFAJF6-Cps3CVTR.js → timeline-definition-FHXFAJF6-663e-yVA.js} +2 -2
- package/dist/{timeline-definition-FHXFAJF6-CnMWGedg.cjs → timeline-definition-FHXFAJF6-BKVe7Qad.cjs} +1 -1
- package/dist/{vennDiagram-L72KCM5P-Duki5CI_.cjs → vennDiagram-L72KCM5P-2NIIKtsl.cjs} +1 -1
- package/dist/{vennDiagram-L72KCM5P-C3u6VbZv.js → vennDiagram-L72KCM5P-BDGC8Vm3.js} +1 -1
- package/dist/{wardleyDiagram-EHGQE667-DiefhIvI.cjs → wardleyDiagram-EHGQE667-BrTNZSmG.cjs} +1 -1
- package/dist/{wardleyDiagram-EHGQE667-CKNXRrYV.js → wardleyDiagram-EHGQE667-IbGr9hGV.js} +2 -2
- package/dist/{xychartDiagram-FW5EYKEG-lymeWtXL.js → xychartDiagram-FW5EYKEG-CbxKOQYO.js} +2 -2
- package/dist/{xychartDiagram-FW5EYKEG-DGB2SKXi.cjs → xychartDiagram-FW5EYKEG-MCkmgF8g.cjs} +1 -1
- package/package.json +7 -7
- package/dist/flowDiagram-23GEKE2U-BPhnjQfA.cjs +0 -1
- package/dist/flowDiagram-23GEKE2U-UIracYlJ.js +0 -7
package/dist/{architectureDiagram-ZJ3FMSHR-BsYF-1vK.js → architectureDiagram-ZJ3FMSHR-DpnBy_s1.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as Ze } from "./chunk-JWPE2WC7-
|
|
2
|
-
import { bS as qe, _ as gt, as as Qe, aI as Je, $ as Fe, V as Ke, U as je, ad as _e, ae as tr, Q as er, O as rr, aj as ir, ap as ar, an as nr, aq as or, W as Ee, bL as Te, b2 as pe, a3 as sr, X as hr, ai as lr, b3 as fr, bT as cr } from "./extractHeadings-
|
|
1
|
+
import { p as Ze } from "./chunk-JWPE2WC7-B-nuuS4b.js";
|
|
2
|
+
import { bS as qe, _ as gt, as as Qe, aI as Je, $ as Fe, V as Ke, U as je, ad as _e, ae as tr, Q as er, O as rr, aj as ir, ap as ar, an as nr, aq as or, W as Ee, bL as Te, b2 as pe, a3 as sr, X as hr, ai as lr, b3 as fr, bT as cr } from "./extractHeadings-B2I83li5.js";
|
|
3
3
|
import { p as gr } from "./cynefin-VYW2F7L2-Bkk-F_Js.js";
|
|
4
4
|
import { c as be } from "./cytoscape.esm-kVAWcYoG.js";
|
|
5
5
|
var he = { exports: {} }, le = { exports: {} }, fe = { exports: {} }, ur = fe.exports, Oe;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as de } from "./chunk-5VM5RSS4-
|
|
2
|
-
import { bk as pe, bl as Kt, bm as fe, bn as xe, bo as ye, bp as be, bq as we, br as me, bs as Se, bt as Le, bu as ke, bv as ve, bw as Ee, bx as _e, by as Te, bz as De, bA as Be, bB as Ne, bC as Ie, bD as Ce, bE as Oe, bF as Re, bG as Ae, bH as ze, bI as Me, _ as g, an as rt, X as D, a0 as Pe, $ as k, aj as Fe, al as We, W as R, bJ as Ye, aB as He, aC as Ke, ay as Ue, bK as M, bL as kt, bM as Q, bc as Xe, ac as $, a6 as Ve, bN as je, a3 as Ct, bO as Ot, bP as Ge } from "./extractHeadings-
|
|
1
|
+
import { g as de } from "./chunk-5VM5RSS4-C4ILSCRb.js";
|
|
2
|
+
import { bk as pe, bl as Kt, bm as fe, bn as xe, bo as ye, bp as be, bq as we, br as me, bs as Se, bt as Le, bu as ke, bv as ve, bw as Ee, bx as _e, by as Te, bz as De, bA as Be, bB as Ne, bC as Ie, bD as Ce, bE as Oe, bF as Re, bG as Ae, bH as ze, bI as Me, _ as g, an as rt, X as D, a0 as Pe, $ as k, aj as Fe, al as We, W as R, bJ as Ye, aB as He, aC as Ke, ay as Ue, bK as M, bL as kt, bM as Q, bc as Xe, ac as $, a6 as Ve, bN as je, a3 as Ct, bO as Ot, bP as Ge } from "./extractHeadings-B2I83li5.js";
|
|
3
3
|
import { G as Ze } from "./graph-DAHC4kPm.js";
|
|
4
|
-
import { c as qe } from "./channel-
|
|
4
|
+
import { c as qe } from "./channel-BoXFYC1g.js";
|
|
5
5
|
function Je(e) {
|
|
6
6
|
return Array.isArray(e);
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const re=require("./chunk-5VM5RSS4-BITLjZU7.cjs"),s=require("./extractHeadings-DZwpYYZa.cjs"),ae=require("./graph-BgRih2Qv.cjs"),se=require("./channel-Cg0ufK1F.cjs");function ie(e){return Array.isArray(e)}function ne(e){if(s.isPrimitive(e))return e;const t=s.getTag(e);if(!le(e))return{};if(ie(e)){const i=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(i.index=e.index,i.input=e.input),i}if(s.isTypedArray(e)){const i=e,n=i.constructor;return new n(i.buffer,i.byteOffset,i.length)}if(t==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(t==="[object DataView]"){const i=e,n=i.buffer,c=i.byteOffset,r=i.byteLength,l=new ArrayBuffer(r),o=new Uint8Array(n,c,r);return new Uint8Array(l).set(o),new DataView(l)}if(t==="[object Boolean]"||t==="[object Number]"||t==="[object String]"){const i=e.constructor,n=new i(e.valueOf());return t==="[object String]"?oe(n,e):ot(n,e),n}if(t==="[object Date]")return new Date(Number(e));if(t==="[object RegExp]"){const i=e,n=new RegExp(i.source,i.flags);return n.lastIndex=i.lastIndex,n}if(t==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(t==="[object Map]"){const i=e,n=new Map;return i.forEach((c,r)=>{n.set(r,c)}),n}if(t==="[object Set]"){const i=e,n=new Set;return i.forEach(c=>{n.add(c)}),n}if(t==="[object Arguments]"){const i=e,n={};return ot(n,i),n.length=i.length,n[Symbol.iterator]=i[Symbol.iterator],n}const a={};return he(a,e),ot(a,e),ce(a,e),a}function le(e){switch(s.getTag(e)){case s.argumentsTag:case s.arrayTag:case s.arrayBufferTag:case s.dataViewTag:case s.booleanTag:case s.dateTag:case s.float32ArrayTag:case s.float64ArrayTag:case s.int8ArrayTag:case s.int16ArrayTag:case s.int32ArrayTag:case s.mapTag:case s.numberTag:case s.objectTag:case s.regexpTag:case s.setTag:case s.stringTag:case s.symbolTag:case s.uint8ArrayTag:case s.uint8ClampedArrayTag:case s.uint16ArrayTag:case s.uint32ArrayTag:return!0;default:return!1}}function ot(e,t){for(const a in t)Object.hasOwn(t,a)&&(e[a]=t[a])}function ce(e,t){const a=Object.getOwnPropertySymbols(t);for(let i=0;i<a.length;i++){const n=a[i];Object.prototype.propertyIsEnumerable.call(t,n)&&(e[n]=t[n])}}function oe(e,t){const a=t.valueOf().length;for(const i in t)Object.hasOwn(t,i)&&(Number.isNaN(Number(i))||Number(i)>=a)&&(e[i]=t[i])}function he(e,t){const a=Object.getPrototypeOf(t);a!==null&&typeof t.constructor=="function"&&Object.setPrototypeOf(e,a)}var gt=(function(){var e=s.__name(function(E,_,f,x){for(f=f||{},x=E.length;x--;f[E[x]]=_);return f},"o"),t=[1,15],a=[1,7],i=[1,13],n=[1,14],c=[1,19],r=[1,16],l=[1,17],o=[1,18],u=[8,30],g=[8,10,21,28,29,30,31,39,43,46],d=[1,23],b=[1,24],m=[8,10,15,16,21,28,29,30,31,39,43,46],y=[8,10,15,16,21,27,28,29,30,31,39,43,46],L=[1,49],w={trace:s.__name(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:s.__name(function(_,f,x,S,v,h,A){var p=h.length-1;switch(v){case 4:S.getLogger().debug("Rule: separator (NL) ");break;case 5:S.getLogger().debug("Rule: separator (Space) ");break;case 6:S.getLogger().debug("Rule: separator (EOF) ");break;case 7:S.getLogger().debug("Rule: hierarchy: ",h[p-1]),S.setHierarchy(h[p-1]);break;case 8:S.getLogger().debug("Stop NL ");break;case 9:S.getLogger().debug("Stop EOF ");break;case 10:S.getLogger().debug("Stop NL2 ");break;case 11:S.getLogger().debug("Stop EOF2 ");break;case 12:S.getLogger().debug("Rule: statement: ",h[p]),typeof h[p].length=="number"?this.$=h[p]:this.$=[h[p]];break;case 13:S.getLogger().debug("Rule: statement #2: ",h[p-1]),this.$=[h[p-1]].concat(h[p]);break;case 14:S.getLogger().debug("Rule: link: ",h[p],_),this.$={edgeTypeStr:h[p],label:""};break;case 15:S.getLogger().debug("Rule: LABEL link: ",h[p-3],h[p-1],h[p]),this.$={edgeTypeStr:h[p],label:h[p-1]};break;case 18:const B=parseInt(h[p]),X=S.generateId();this.$={id:X,type:"space",label:"",width:B,children:[]};break;case 23:S.getLogger().debug("Rule: (nodeStatement link node) ",h[p-2],h[p-1],h[p]," typestr: ",h[p-1].edgeTypeStr);const Y=S.edgeStrToEdgeData(h[p-1].edgeTypeStr),G=S.edgeStrToEdgeStartData(h[p-1].edgeTypeStr),st=S.edgeStrToThickness(h[p-1].edgeTypeStr),N=S.edgeStrToPattern(h[p-1].edgeTypeStr);this.$=[{id:h[p-2].id,label:h[p-2].label,type:h[p-2].type,directions:h[p-2].directions},{id:h[p-2].id+"-"+h[p].id,start:h[p-2].id,end:h[p].id,label:h[p-1].label,type:"edge",thickness:st,pattern:N,directions:h[p].directions,arrowTypeEnd:Y,arrowTypeStart:G},{id:h[p].id,label:h[p].label,type:S.typeStr2Type(h[p].typeStr),directions:h[p].directions}];break;case 24:S.getLogger().debug("Rule: nodeStatement (abc88 node size) ",h[p-1],h[p]),this.$={id:h[p-1].id,label:h[p-1].label,type:S.typeStr2Type(h[p-1].typeStr),directions:h[p-1].directions,widthInColumns:parseInt(h[p],10)};break;case 25:S.getLogger().debug("Rule: nodeStatement (node) ",h[p]),this.$={id:h[p].id,label:h[p].label,type:S.typeStr2Type(h[p].typeStr),directions:h[p].directions,widthInColumns:1};break;case 26:S.getLogger().debug("APA123",this?this:"na"),S.getLogger().debug("COLUMNS: ",h[p]),this.$={type:"column-setting",columns:h[p]==="auto"?-1:parseInt(h[p])};break;case 27:S.getLogger().debug("Rule: id-block statement : ",h[p-2],h[p-1]),S.generateId(),this.$={...h[p-2],type:"composite",children:h[p-1]};break;case 28:S.getLogger().debug("Rule: blockStatement : ",h[p-2],h[p-1],h[p]);const K=S.generateId();this.$={id:K,type:"composite",label:"",children:h[p-1]};break;case 29:S.getLogger().debug("Rule: node (NODE_ID separator): ",h[p]),this.$={id:h[p]};break;case 30:S.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",h[p-1],h[p]),this.$={id:h[p-1],label:h[p].label,typeStr:h[p].typeStr,directions:h[p].directions};break;case 31:S.getLogger().debug("Rule: dirList: ",h[p]),this.$=[h[p]];break;case 32:S.getLogger().debug("Rule: dirList: ",h[p-1],h[p]),this.$=[h[p-1]].concat(h[p]);break;case 33:S.getLogger().debug("Rule: nodeShapeNLabel: ",h[p-2],h[p-1],h[p]),this.$={typeStr:h[p-2]+h[p],label:h[p-1]};break;case 34:S.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",h[p-3],h[p-2]," #3:",h[p-1],h[p]),this.$={typeStr:h[p-3]+h[p],label:h[p-2],directions:h[p-1]};break;case 35:case 36:this.$={type:"classDef",id:h[p-1].trim(),css:h[p].trim()};break;case 37:this.$={type:"applyClass",id:h[p-1].trim(),styleClass:h[p].trim()};break;case 38:this.$={type:"applyStyles",id:h[p-1].trim(),stylesStr:h[p].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:n,31:c,39:r,43:l,46:o},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:a,28:i,29:n,31:c,39:r,43:l,46:o}),e(g,[2,16],{14:22,15:d,16:b}),e(g,[2,17]),e(g,[2,18]),e(g,[2,19]),e(g,[2,20]),e(g,[2,21]),e(g,[2,22]),e(m,[2,25],{27:[1,25]}),e(g,[2,26]),{19:26,26:12,31:c},{10:t,11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:n,31:c,39:r,43:l,46:o},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(y,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,31:c},{31:[2,14]},{17:[1,36]},e(m,[2,24]),{10:t,11:37,13:4,14:22,15:d,16:b,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:n,31:c,39:r,43:l,46:o},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(y,[2,30]),{18:[1,43]},{18:[1,44]},e(m,[2,23]),{18:[1,45]},{30:[1,46]},e(g,[2,28]),e(g,[2,35]),e(g,[2,36]),e(g,[2,37]),e(g,[2,38]),{36:[1,47]},{33:48,34:L},{15:[1,50]},e(g,[2,27]),e(y,[2,33]),{38:[1,51]},{33:52,34:L,38:[2,31]},{31:[2,15]},e(y,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:s.__name(function(_,f){if(f.recoverable)this.trace(_);else{var x=new Error(_);throw x.hash=f,x}},"parseError"),parse:s.__name(function(_){var f=this,x=[0],S=[],v=[null],h=[],A=this.table,p="",B=0,X=0,Y=2,G=1,st=h.slice.call(arguments,1),N=Object.create(this.lexer),K={yy:{}};for(var it in this.yy)Object.prototype.hasOwnProperty.call(this.yy,it)&&(K.yy[it]=this.yy[it]);N.setInput(_,K.yy),K.yy.lexer=N,K.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var nt=N.yylloc;h.push(nt);var te=N.options&&N.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ee(z){x.length=x.length-2*z,v.length=v.length-z,h.length=h.length-z}s.__name(ee,"popStack");function St(){var z;return z=S.pop()||N.lex()||G,typeof z!="number"&&(z instanceof Array&&(S=z,z=S.pop()),z=f.symbols_[z]||z),z}s.__name(St,"lex");for(var R,V,P,lt,j={},J,U,Lt,Q;;){if(V=x[x.length-1],this.defaultActions[V]?P=this.defaultActions[V]:((R===null||typeof R>"u")&&(R=St()),P=A[V]&&A[V][R]),typeof P>"u"||!P.length||!P[0]){var ct="";Q=[];for(J in A[V])this.terminals_[J]&&J>Y&&Q.push("'"+this.terminals_[J]+"'");N.showPosition?ct="Parse error on line "+(B+1)+`:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const re=require("./chunk-5VM5RSS4-DafQyxAv.cjs"),s=require("./extractHeadings-R7NxLZJP.cjs"),ae=require("./graph-BgRih2Qv.cjs"),se=require("./channel-Dn2hPSB8.cjs");function ie(e){return Array.isArray(e)}function ne(e){if(s.isPrimitive(e))return e;const t=s.getTag(e);if(!le(e))return{};if(ie(e)){const i=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(i.index=e.index,i.input=e.input),i}if(s.isTypedArray(e)){const i=e,n=i.constructor;return new n(i.buffer,i.byteOffset,i.length)}if(t==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(t==="[object DataView]"){const i=e,n=i.buffer,c=i.byteOffset,r=i.byteLength,l=new ArrayBuffer(r),o=new Uint8Array(n,c,r);return new Uint8Array(l).set(o),new DataView(l)}if(t==="[object Boolean]"||t==="[object Number]"||t==="[object String]"){const i=e.constructor,n=new i(e.valueOf());return t==="[object String]"?oe(n,e):ot(n,e),n}if(t==="[object Date]")return new Date(Number(e));if(t==="[object RegExp]"){const i=e,n=new RegExp(i.source,i.flags);return n.lastIndex=i.lastIndex,n}if(t==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(t==="[object Map]"){const i=e,n=new Map;return i.forEach((c,r)=>{n.set(r,c)}),n}if(t==="[object Set]"){const i=e,n=new Set;return i.forEach(c=>{n.add(c)}),n}if(t==="[object Arguments]"){const i=e,n={};return ot(n,i),n.length=i.length,n[Symbol.iterator]=i[Symbol.iterator],n}const a={};return he(a,e),ot(a,e),ce(a,e),a}function le(e){switch(s.getTag(e)){case s.argumentsTag:case s.arrayTag:case s.arrayBufferTag:case s.dataViewTag:case s.booleanTag:case s.dateTag:case s.float32ArrayTag:case s.float64ArrayTag:case s.int8ArrayTag:case s.int16ArrayTag:case s.int32ArrayTag:case s.mapTag:case s.numberTag:case s.objectTag:case s.regexpTag:case s.setTag:case s.stringTag:case s.symbolTag:case s.uint8ArrayTag:case s.uint8ClampedArrayTag:case s.uint16ArrayTag:case s.uint32ArrayTag:return!0;default:return!1}}function ot(e,t){for(const a in t)Object.hasOwn(t,a)&&(e[a]=t[a])}function ce(e,t){const a=Object.getOwnPropertySymbols(t);for(let i=0;i<a.length;i++){const n=a[i];Object.prototype.propertyIsEnumerable.call(t,n)&&(e[n]=t[n])}}function oe(e,t){const a=t.valueOf().length;for(const i in t)Object.hasOwn(t,i)&&(Number.isNaN(Number(i))||Number(i)>=a)&&(e[i]=t[i])}function he(e,t){const a=Object.getPrototypeOf(t);a!==null&&typeof t.constructor=="function"&&Object.setPrototypeOf(e,a)}var gt=(function(){var e=s.__name(function(E,_,f,x){for(f=f||{},x=E.length;x--;f[E[x]]=_);return f},"o"),t=[1,15],a=[1,7],i=[1,13],n=[1,14],c=[1,19],r=[1,16],l=[1,17],o=[1,18],u=[8,30],g=[8,10,21,28,29,30,31,39,43,46],d=[1,23],b=[1,24],m=[8,10,15,16,21,28,29,30,31,39,43,46],y=[8,10,15,16,21,27,28,29,30,31,39,43,46],L=[1,49],w={trace:s.__name(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:s.__name(function(_,f,x,S,v,h,A){var p=h.length-1;switch(v){case 4:S.getLogger().debug("Rule: separator (NL) ");break;case 5:S.getLogger().debug("Rule: separator (Space) ");break;case 6:S.getLogger().debug("Rule: separator (EOF) ");break;case 7:S.getLogger().debug("Rule: hierarchy: ",h[p-1]),S.setHierarchy(h[p-1]);break;case 8:S.getLogger().debug("Stop NL ");break;case 9:S.getLogger().debug("Stop EOF ");break;case 10:S.getLogger().debug("Stop NL2 ");break;case 11:S.getLogger().debug("Stop EOF2 ");break;case 12:S.getLogger().debug("Rule: statement: ",h[p]),typeof h[p].length=="number"?this.$=h[p]:this.$=[h[p]];break;case 13:S.getLogger().debug("Rule: statement #2: ",h[p-1]),this.$=[h[p-1]].concat(h[p]);break;case 14:S.getLogger().debug("Rule: link: ",h[p],_),this.$={edgeTypeStr:h[p],label:""};break;case 15:S.getLogger().debug("Rule: LABEL link: ",h[p-3],h[p-1],h[p]),this.$={edgeTypeStr:h[p],label:h[p-1]};break;case 18:const B=parseInt(h[p]),X=S.generateId();this.$={id:X,type:"space",label:"",width:B,children:[]};break;case 23:S.getLogger().debug("Rule: (nodeStatement link node) ",h[p-2],h[p-1],h[p]," typestr: ",h[p-1].edgeTypeStr);const Y=S.edgeStrToEdgeData(h[p-1].edgeTypeStr),G=S.edgeStrToEdgeStartData(h[p-1].edgeTypeStr),st=S.edgeStrToThickness(h[p-1].edgeTypeStr),N=S.edgeStrToPattern(h[p-1].edgeTypeStr);this.$=[{id:h[p-2].id,label:h[p-2].label,type:h[p-2].type,directions:h[p-2].directions},{id:h[p-2].id+"-"+h[p].id,start:h[p-2].id,end:h[p].id,label:h[p-1].label,type:"edge",thickness:st,pattern:N,directions:h[p].directions,arrowTypeEnd:Y,arrowTypeStart:G},{id:h[p].id,label:h[p].label,type:S.typeStr2Type(h[p].typeStr),directions:h[p].directions}];break;case 24:S.getLogger().debug("Rule: nodeStatement (abc88 node size) ",h[p-1],h[p]),this.$={id:h[p-1].id,label:h[p-1].label,type:S.typeStr2Type(h[p-1].typeStr),directions:h[p-1].directions,widthInColumns:parseInt(h[p],10)};break;case 25:S.getLogger().debug("Rule: nodeStatement (node) ",h[p]),this.$={id:h[p].id,label:h[p].label,type:S.typeStr2Type(h[p].typeStr),directions:h[p].directions,widthInColumns:1};break;case 26:S.getLogger().debug("APA123",this?this:"na"),S.getLogger().debug("COLUMNS: ",h[p]),this.$={type:"column-setting",columns:h[p]==="auto"?-1:parseInt(h[p])};break;case 27:S.getLogger().debug("Rule: id-block statement : ",h[p-2],h[p-1]),S.generateId(),this.$={...h[p-2],type:"composite",children:h[p-1]};break;case 28:S.getLogger().debug("Rule: blockStatement : ",h[p-2],h[p-1],h[p]);const K=S.generateId();this.$={id:K,type:"composite",label:"",children:h[p-1]};break;case 29:S.getLogger().debug("Rule: node (NODE_ID separator): ",h[p]),this.$={id:h[p]};break;case 30:S.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",h[p-1],h[p]),this.$={id:h[p-1],label:h[p].label,typeStr:h[p].typeStr,directions:h[p].directions};break;case 31:S.getLogger().debug("Rule: dirList: ",h[p]),this.$=[h[p]];break;case 32:S.getLogger().debug("Rule: dirList: ",h[p-1],h[p]),this.$=[h[p-1]].concat(h[p]);break;case 33:S.getLogger().debug("Rule: nodeShapeNLabel: ",h[p-2],h[p-1],h[p]),this.$={typeStr:h[p-2]+h[p],label:h[p-1]};break;case 34:S.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",h[p-3],h[p-2]," #3:",h[p-1],h[p]),this.$={typeStr:h[p-3]+h[p],label:h[p-2],directions:h[p-1]};break;case 35:case 36:this.$={type:"classDef",id:h[p-1].trim(),css:h[p].trim()};break;case 37:this.$={type:"applyClass",id:h[p-1].trim(),styleClass:h[p].trim()};break;case 38:this.$={type:"applyStyles",id:h[p-1].trim(),stylesStr:h[p].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:n,31:c,39:r,43:l,46:o},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:a,28:i,29:n,31:c,39:r,43:l,46:o}),e(g,[2,16],{14:22,15:d,16:b}),e(g,[2,17]),e(g,[2,18]),e(g,[2,19]),e(g,[2,20]),e(g,[2,21]),e(g,[2,22]),e(m,[2,25],{27:[1,25]}),e(g,[2,26]),{19:26,26:12,31:c},{10:t,11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:n,31:c,39:r,43:l,46:o},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(y,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,31:c},{31:[2,14]},{17:[1,36]},e(m,[2,24]),{10:t,11:37,13:4,14:22,15:d,16:b,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:n,31:c,39:r,43:l,46:o},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(y,[2,30]),{18:[1,43]},{18:[1,44]},e(m,[2,23]),{18:[1,45]},{30:[1,46]},e(g,[2,28]),e(g,[2,35]),e(g,[2,36]),e(g,[2,37]),e(g,[2,38]),{36:[1,47]},{33:48,34:L},{15:[1,50]},e(g,[2,27]),e(y,[2,33]),{38:[1,51]},{33:52,34:L,38:[2,31]},{31:[2,15]},e(y,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:s.__name(function(_,f){if(f.recoverable)this.trace(_);else{var x=new Error(_);throw x.hash=f,x}},"parseError"),parse:s.__name(function(_){var f=this,x=[0],S=[],v=[null],h=[],A=this.table,p="",B=0,X=0,Y=2,G=1,st=h.slice.call(arguments,1),N=Object.create(this.lexer),K={yy:{}};for(var it in this.yy)Object.prototype.hasOwnProperty.call(this.yy,it)&&(K.yy[it]=this.yy[it]);N.setInput(_,K.yy),K.yy.lexer=N,K.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var nt=N.yylloc;h.push(nt);var te=N.options&&N.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ee(z){x.length=x.length-2*z,v.length=v.length-z,h.length=h.length-z}s.__name(ee,"popStack");function St(){var z;return z=S.pop()||N.lex()||G,typeof z!="number"&&(z instanceof Array&&(S=z,z=S.pop()),z=f.symbols_[z]||z),z}s.__name(St,"lex");for(var R,V,P,lt,j={},J,U,Lt,Q;;){if(V=x[x.length-1],this.defaultActions[V]?P=this.defaultActions[V]:((R===null||typeof R>"u")&&(R=St()),P=A[V]&&A[V][R]),typeof P>"u"||!P.length||!P[0]){var ct="";Q=[];for(J in A[V])this.terminals_[J]&&J>Y&&Q.push("'"+this.terminals_[J]+"'");N.showPosition?ct="Parse error on line "+(B+1)+`:
|
|
2
2
|
`+N.showPosition()+`
|
|
3
3
|
Expecting `+Q.join(", ")+", got '"+(this.terminals_[R]||R)+"'":ct="Parse error on line "+(B+1)+": Unexpected "+(R==G?"end of input":"'"+(this.terminals_[R]||R)+"'"),this.parseError(ct,{text:N.match,token:this.terminals_[R]||R,line:N.yylineno,loc:nt,expected:Q})}if(P[0]instanceof Array&&P.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+R);switch(P[0]){case 1:x.push(R),v.push(N.yytext),h.push(N.yylloc),x.push(P[1]),R=null,X=N.yyleng,p=N.yytext,B=N.yylineno,nt=N.yylloc;break;case 2:if(U=this.productions_[P[1]][1],j.$=v[v.length-U],j._$={first_line:h[h.length-(U||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(U||1)].first_column,last_column:h[h.length-1].last_column},te&&(j._$.range=[h[h.length-(U||1)].range[0],h[h.length-1].range[1]]),lt=this.performAction.apply(j,[p,X,B,K.yy,P[1],v,h].concat(st)),typeof lt<"u")return lt;U&&(x=x.slice(0,-1*U*2),v=v.slice(0,-1*U),h=h.slice(0,-1*U)),x.push(this.productions_[P[1]][0]),v.push(j.$),h.push(j._$),Lt=A[x[x.length-2]][x[x.length-1]],x.push(Lt);break;case 3:return!0}}return!0},"parse")},D=(function(){var E={EOF:1,parseError:s.__name(function(f,x){if(this.yy.parser)this.yy.parser.parseError(f,x);else throw new Error(f)},"parseError"),setInput:s.__name(function(_,f){return this.yy=f||this.yy||{},this._input=_,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.__name(function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var f=_.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},"input"),unput:s.__name(function(_){var f=_.length,x=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var S=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===S.length?this.yylloc.first_column:0)+S[S.length-x.length].length-x[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},"unput"),more:s.__name(function(){return this._more=!0,this},"more"),reject:s.__name(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.__name(function(_){this.unput(this.match.slice(_))},"less"),pastInput:s.__name(function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s.__name(function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s.__name(function(){var _=this.pastInput(),f=new Array(_.length+1).join("-");return _+this.upcomingInput()+`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as Se, d as De } from "./chunk-32BRIVSS-
|
|
2
|
-
import { O as Pe, Q as Be, U as Ie, V as Me, _ as y, W as Bt, X as jt, $ as de, a0 as Le, a1 as Ne, a2 as Tt, a3 as ge, a4 as Ye, a5 as je, a6 as $t, a7 as fe } from "./extractHeadings-
|
|
1
|
+
import { g as Se, d as De } from "./chunk-32BRIVSS-DcLe6F1l.js";
|
|
2
|
+
import { O as Pe, Q as Be, U as Ie, V as Me, _ as y, W as Bt, X as jt, $ as de, a0 as Le, a1 as Ne, a2 as Tt, a3 as ge, a4 as Ye, a5 as je, a6 as $t, a7 as fe } from "./extractHeadings-B2I83li5.js";
|
|
3
3
|
var Ft = (function() {
|
|
4
4
|
var a = /* @__PURE__ */ y(function(_t, x, v, E) {
|
|
5
5
|
for (v = v || {}, E = _t.length; E--; v[_t[E]] = x) ;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const he=require("./chunk-32BRIVSS-kO6eHILC.cjs"),u=require("./extractHeadings-DZwpYYZa.cjs");var Yt=(function(){var a=u.__name(function(mt,b,v,E){for(v=v||{},E=mt.length;E--;v[mt[E]]=b);return v},"o"),t=[1,24],s=[1,25],o=[1,26],r=[1,27],l=[1,28],e=[1,63],i=[1,64],n=[1,65],d=[1,66],_=[1,67],p=[1,68],y=[1,69],x=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],nt=[1,45],it=[1,46],st=[1,47],rt=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],_t=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],kt=[14,42],Wt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Rt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],A=[1,82],C=[1,83],k=[1,84],w=[1,85],T=[12,14,42],ne=[12,14,33,42],Bt=[12,14,33,42,76,77,79,80],vt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xt={trace:u.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:u.__name(function(b,v,E,g,R,h,St){var f=h.length-1;switch(R){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(h[f-3]);break;case 19:g.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:g.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),g.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),g.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:g.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:g.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:g.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:g.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:g.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:g.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:g.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:g.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:g.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:g.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:g.addContainer("container",...h[f]),this.$=h[f];break;case 48:g.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:g.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:g.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:g.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:g.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:g.addComponent("component",...h[f]),this.$=h[f];break;case 54:g.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:g.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:g.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:g.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:g.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:g.addRel("rel",...h[f]),this.$=h[f];break;case 61:g.addRel("birel",...h[f]),this.$=h[f];break;case 62:g.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:g.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:g.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:g.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:g.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),g.addRel("rel",...h[f]),this.$=h[f];break;case 68:g.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:g.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:g.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 71:this.$=[h[f]];break;case 72:h[f].unshift(h[f-1]),this.$=h[f];break;case 73:case 75:this.$=h[f].trim();break;case 74:let Et={};Et[h[f-1].trim()]=h[f].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},a(kt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:e,36:i,37:n,38:d,39:_,40:p,41:y,44:x,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt}),a(kt,[2,14]),a(Wt,[2,16],{12:[1,76]}),a(kt,[2,36],{12:[1,77]}),a(Rt,[2,19]),a(Rt,[2,20]),{25:[1,78]},{27:[1,79]},a(Rt,[2,23]),{35:80,75:81,76:A,77:C,79:k,80:w},{35:86,75:81,76:A,77:C,79:k,80:w},{35:87,75:81,76:A,77:C,79:k,80:w},{35:88,75:81,76:A,77:C,79:k,80:w},{35:89,75:81,76:A,77:C,79:k,80:w},{35:90,75:81,76:A,77:C,79:k,80:w},{35:91,75:81,76:A,77:C,79:k,80:w},{35:92,75:81,76:A,77:C,79:k,80:w},{35:93,75:81,76:A,77:C,79:k,80:w},{35:94,75:81,76:A,77:C,79:k,80:w},{35:95,75:81,76:A,77:C,79:k,80:w},{35:96,75:81,76:A,77:C,79:k,80:w},{35:97,75:81,76:A,77:C,79:k,80:w},{35:98,75:81,76:A,77:C,79:k,80:w},{35:99,75:81,76:A,77:C,79:k,80:w},{35:100,75:81,76:A,77:C,79:k,80:w},{35:101,75:81,76:A,77:C,79:k,80:w},{35:102,75:81,76:A,77:C,79:k,80:w},{35:103,75:81,76:A,77:C,79:k,80:w},{35:104,75:81,76:A,77:C,79:k,80:w},a(T,[2,59]),{35:105,75:81,76:A,77:C,79:k,80:w},{35:106,75:81,76:A,77:C,79:k,80:w},{35:107,75:81,76:A,77:C,79:k,80:w},{35:108,75:81,76:A,77:C,79:k,80:w},{35:109,75:81,76:A,77:C,79:k,80:w},{35:110,75:81,76:A,77:C,79:k,80:w},{35:111,75:81,76:A,77:C,79:k,80:w},{35:112,75:81,76:A,77:C,79:k,80:w},{35:113,75:81,76:A,77:C,79:k,80:w},{35:114,75:81,76:A,77:C,79:k,80:w},{35:115,75:81,76:A,77:C,79:k,80:w},{20:116,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:A,77:C,79:k,80:w},{35:120,75:81,76:A,77:C,79:k,80:w},{35:121,75:81,76:A,77:C,79:k,80:w},{35:122,75:81,76:A,77:C,79:k,80:w},{35:123,75:81,76:A,77:C,79:k,80:w},{35:124,75:81,76:A,77:C,79:k,80:w},{35:125,75:81,76:A,77:C,79:k,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},a(kt,[2,15]),a(Wt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:r,28:l}),a(kt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:r,28:l,34:e,36:i,37:n,38:d,39:_,40:p,41:y,44:x,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt}),a(Rt,[2,21]),a(Rt,[2,22]),a(T,[2,39]),a(ne,[2,71],{75:81,35:132,76:A,77:C,79:k,80:w}),a(Bt,[2,73]),{78:[1,133]},a(Bt,[2,75]),a(Bt,[2,76]),a(T,[2,40]),a(T,[2,41]),a(T,[2,42]),a(T,[2,43]),a(T,[2,44]),a(T,[2,45]),a(T,[2,46]),a(T,[2,47]),a(T,[2,48]),a(T,[2,49]),a(T,[2,50]),a(T,[2,51]),a(T,[2,52]),a(T,[2,53]),a(T,[2,54]),a(T,[2,55]),a(T,[2,56]),a(T,[2,57]),a(T,[2,58]),a(T,[2,60]),a(T,[2,61]),a(T,[2,62]),a(T,[2,63]),a(T,[2,64]),a(T,[2,65]),a(T,[2,66]),a(T,[2,67]),a(T,[2,68]),a(T,[2,69]),a(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},a(vt,[2,28]),a(vt,[2,29]),a(vt,[2,30]),a(vt,[2,31]),a(vt,[2,32]),a(vt,[2,33]),a(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},a(Wt,[2,18]),a(kt,[2,38]),a(ne,[2,72]),a(Bt,[2,74]),a(T,[2,24]),a(T,[2,35]),a(zt,[2,25]),a(zt,[2,26],{12:[1,138]}),a(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:u.__name(function(b,v){if(v.recoverable)this.trace(b);else{var E=new Error(b);throw E.hash=v,E}},"parseError"),parse:u.__name(function(b){var v=this,E=[0],g=[],R=[null],h=[],St=this.table,f="",Et=0,ie=0,xe=2,se=1,ve=h.slice.call(arguments,1),D=Object.create(this.lexer),At={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(At.yy[Qt]=this.yy[Qt]);D.setInput(b,At.yy),At.yy.lexer=D,At.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;h.push(Ht);var Ee=D.options&&D.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(L){E.length=E.length-2*L,R.length=R.length-L,h.length=h.length-L}u.__name(Ae,"popStack");function re(){var L;return L=g.pop()||D.lex()||se,typeof L!="number"&&(L instanceof Array&&(g=L,L=g.pop()),L=v.symbols_[L]||L),L}u.__name(re,"lex");for(var I,Ct,N,qt,wt={},Mt,X,le,Lt;;){if(Ct=E[E.length-1],this.defaultActions[Ct]?N=this.defaultActions[Ct]:((I===null||typeof I>"u")&&(I=re()),N=St[Ct]&&St[Ct][I]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(Mt in St[Ct])this.terminals_[Mt]&&Mt>xe&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const he=require("./chunk-32BRIVSS-BjI5igEa.cjs"),u=require("./extractHeadings-R7NxLZJP.cjs");var Yt=(function(){var a=u.__name(function(mt,b,v,E){for(v=v||{},E=mt.length;E--;v[mt[E]]=b);return v},"o"),t=[1,24],s=[1,25],o=[1,26],r=[1,27],l=[1,28],e=[1,63],i=[1,64],n=[1,65],d=[1,66],_=[1,67],p=[1,68],y=[1,69],x=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],nt=[1,45],it=[1,46],st=[1,47],rt=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],_t=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],kt=[14,42],Wt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Rt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],A=[1,82],C=[1,83],k=[1,84],w=[1,85],T=[12,14,42],ne=[12,14,33,42],Bt=[12,14,33,42,76,77,79,80],vt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xt={trace:u.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:u.__name(function(b,v,E,g,R,h,St){var f=h.length-1;switch(R){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(h[f-3]);break;case 19:g.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:g.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),g.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),g.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:g.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:g.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:g.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:g.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:g.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:g.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:g.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:g.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:g.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:g.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:g.addContainer("container",...h[f]),this.$=h[f];break;case 48:g.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:g.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:g.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:g.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:g.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:g.addComponent("component",...h[f]),this.$=h[f];break;case 54:g.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:g.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:g.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:g.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:g.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:g.addRel("rel",...h[f]),this.$=h[f];break;case 61:g.addRel("birel",...h[f]),this.$=h[f];break;case 62:g.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:g.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:g.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:g.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:g.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),g.addRel("rel",...h[f]),this.$=h[f];break;case 68:g.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:g.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:g.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 71:this.$=[h[f]];break;case 72:h[f].unshift(h[f-1]),this.$=h[f];break;case 73:case 75:this.$=h[f].trim();break;case 74:let Et={};Et[h[f-1].trim()]=h[f].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},a(kt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:e,36:i,37:n,38:d,39:_,40:p,41:y,44:x,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt}),a(kt,[2,14]),a(Wt,[2,16],{12:[1,76]}),a(kt,[2,36],{12:[1,77]}),a(Rt,[2,19]),a(Rt,[2,20]),{25:[1,78]},{27:[1,79]},a(Rt,[2,23]),{35:80,75:81,76:A,77:C,79:k,80:w},{35:86,75:81,76:A,77:C,79:k,80:w},{35:87,75:81,76:A,77:C,79:k,80:w},{35:88,75:81,76:A,77:C,79:k,80:w},{35:89,75:81,76:A,77:C,79:k,80:w},{35:90,75:81,76:A,77:C,79:k,80:w},{35:91,75:81,76:A,77:C,79:k,80:w},{35:92,75:81,76:A,77:C,79:k,80:w},{35:93,75:81,76:A,77:C,79:k,80:w},{35:94,75:81,76:A,77:C,79:k,80:w},{35:95,75:81,76:A,77:C,79:k,80:w},{35:96,75:81,76:A,77:C,79:k,80:w},{35:97,75:81,76:A,77:C,79:k,80:w},{35:98,75:81,76:A,77:C,79:k,80:w},{35:99,75:81,76:A,77:C,79:k,80:w},{35:100,75:81,76:A,77:C,79:k,80:w},{35:101,75:81,76:A,77:C,79:k,80:w},{35:102,75:81,76:A,77:C,79:k,80:w},{35:103,75:81,76:A,77:C,79:k,80:w},{35:104,75:81,76:A,77:C,79:k,80:w},a(T,[2,59]),{35:105,75:81,76:A,77:C,79:k,80:w},{35:106,75:81,76:A,77:C,79:k,80:w},{35:107,75:81,76:A,77:C,79:k,80:w},{35:108,75:81,76:A,77:C,79:k,80:w},{35:109,75:81,76:A,77:C,79:k,80:w},{35:110,75:81,76:A,77:C,79:k,80:w},{35:111,75:81,76:A,77:C,79:k,80:w},{35:112,75:81,76:A,77:C,79:k,80:w},{35:113,75:81,76:A,77:C,79:k,80:w},{35:114,75:81,76:A,77:C,79:k,80:w},{35:115,75:81,76:A,77:C,79:k,80:w},{20:116,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:A,77:C,79:k,80:w},{35:120,75:81,76:A,77:C,79:k,80:w},{35:121,75:81,76:A,77:C,79:k,80:w},{35:122,75:81,76:A,77:C,79:k,80:w},{35:123,75:81,76:A,77:C,79:k,80:w},{35:124,75:81,76:A,77:C,79:k,80:w},{35:125,75:81,76:A,77:C,79:k,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},a(kt,[2,15]),a(Wt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:r,28:l}),a(kt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:r,28:l,34:e,36:i,37:n,38:d,39:_,40:p,41:y,44:x,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt}),a(Rt,[2,21]),a(Rt,[2,22]),a(T,[2,39]),a(ne,[2,71],{75:81,35:132,76:A,77:C,79:k,80:w}),a(Bt,[2,73]),{78:[1,133]},a(Bt,[2,75]),a(Bt,[2,76]),a(T,[2,40]),a(T,[2,41]),a(T,[2,42]),a(T,[2,43]),a(T,[2,44]),a(T,[2,45]),a(T,[2,46]),a(T,[2,47]),a(T,[2,48]),a(T,[2,49]),a(T,[2,50]),a(T,[2,51]),a(T,[2,52]),a(T,[2,53]),a(T,[2,54]),a(T,[2,55]),a(T,[2,56]),a(T,[2,57]),a(T,[2,58]),a(T,[2,60]),a(T,[2,61]),a(T,[2,62]),a(T,[2,63]),a(T,[2,64]),a(T,[2,65]),a(T,[2,66]),a(T,[2,67]),a(T,[2,68]),a(T,[2,69]),a(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},a(vt,[2,28]),a(vt,[2,29]),a(vt,[2,30]),a(vt,[2,31]),a(vt,[2,32]),a(vt,[2,33]),a(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},a(Wt,[2,18]),a(kt,[2,38]),a(ne,[2,72]),a(Bt,[2,74]),a(T,[2,24]),a(T,[2,35]),a(zt,[2,25]),a(zt,[2,26],{12:[1,138]}),a(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:u.__name(function(b,v){if(v.recoverable)this.trace(b);else{var E=new Error(b);throw E.hash=v,E}},"parseError"),parse:u.__name(function(b){var v=this,E=[0],g=[],R=[null],h=[],St=this.table,f="",Et=0,ie=0,xe=2,se=1,ve=h.slice.call(arguments,1),D=Object.create(this.lexer),At={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(At.yy[Qt]=this.yy[Qt]);D.setInput(b,At.yy),At.yy.lexer=D,At.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;h.push(Ht);var Ee=D.options&&D.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(L){E.length=E.length-2*L,R.length=R.length-L,h.length=h.length-L}u.__name(Ae,"popStack");function re(){var L;return L=g.pop()||D.lex()||se,typeof L!="number"&&(L instanceof Array&&(g=L,L=g.pop()),L=v.symbols_[L]||L),L}u.__name(re,"lex");for(var I,Ct,N,qt,wt={},Mt,X,le,Lt;;){if(Ct=E[E.length-1],this.defaultActions[Ct]?N=this.defaultActions[Ct]:((I===null||typeof I>"u")&&(I=re()),N=St[Ct]&&St[Ct][I]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(Mt in St[Ct])this.terminals_[Mt]&&Mt>xe&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+Lt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Gt="Parse error on line "+(Et+1)+": Unexpected "+(I==se?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Gt,{text:D.match,token:this.terminals_[I]||I,line:D.yylineno,loc:Ht,expected:Lt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ct+", token: "+I);switch(N[0]){case 1:E.push(I),R.push(D.yytext),h.push(D.yylloc),E.push(N[1]),I=null,ie=D.yyleng,f=D.yytext,Et=D.yylineno,Ht=D.yylloc;break;case 2:if(X=this.productions_[N[1]][1],wt.$=R[R.length-X],wt._$={first_line:h[h.length-(X||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(X||1)].first_column,last_column:h[h.length-1].last_column},Ee&&(wt._$.range=[h[h.length-(X||1)].range[0],h[h.length-1].range[1]]),qt=this.performAction.apply(wt,[f,ie,Et,At.yy,N[1],R,h].concat(ve)),typeof qt<"u")return qt;X&&(E=E.slice(0,-1*X*2),R=R.slice(0,-1*X),h=h.slice(0,-1*X)),E.push(this.productions_[N[1]][0]),R.push(wt.$),h.push(wt._$),le=St[E[E.length-2]][E[E.length-1]],E.push(le);break;case 3:return!0}}return!0},"parse")},be=(function(){var mt={EOF:1,parseError:u.__name(function(v,E){if(this.yy.parser)this.yy.parser.parseError(v,E);else throw new Error(v)},"parseError"),setInput:u.__name(function(b,v){return this.yy=v||this.yy||{},this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u.__name(function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var v=b.match(/(?:\r\n?|\n).*/g);return v?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},"input"),unput:u.__name(function(b){var v=b.length,E=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-v),this.offset-=v;var g=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),E.length-1&&(this.yylineno-=E.length-1);var R=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:E?(E.length===g.length?this.yylloc.first_column:0)+g[g.length-E.length].length-E[0].length:this.yylloc.first_column-v},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-v]),this.yyleng=this.yytext.length,this},"unput"),more:u.__name(function(){return this._more=!0,this},"more"),reject:u.__name(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:u.__name(function(b){this.unput(this.match.slice(b))},"less"),pastInput:u.__name(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u.__name(function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u.__name(function(){var b=this.pastInput(),v=new Array(b.length+1).join("-");return b+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./extractHeadings-
|
|
1
|
+
"use strict";const n=require("./extractHeadings-R7NxLZJP.cjs"),t=(e,r)=>n.Utils.lang.round(n.Color.parse(e)[r]);exports.channel=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./extractHeadings-
|
|
1
|
+
"use strict";const i=require("./extractHeadings-R7NxLZJP.cjs");var t,s=(t=class{constructor(e){this.init=e,this.records=this.init()}reset(){this.records=this.init()}},i.__name(t,"ImperativeState"),t);exports.ImperativeState=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./extractHeadings-
|
|
1
|
+
"use strict";const s=require("./extractHeadings-R7NxLZJP.cjs");var l=s.__name((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const a in t.attrs)e.attr(a,t.attrs[a]);return t.class&&e.attr("class",t.class),e},"drawRect"),o=s.__name((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};l(r,e).lower()},"drawBackgroundRect"),d=s.__name((r,t)=>{const e=t.text.replace(s.lineBreakRegex," "),a=r.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class&&a.attr("class",t.class);const n=a.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),a},"drawText"),c=s.__name((r,t,e,a)=>{const n=r.append("image");n.attr("x",t),n.attr("y",e);const i=s.distExports.sanitizeUrl(a);n.attr("xlink:href",i)},"drawImage"),x=s.__name((r,t,e,a)=>{const n=r.append("use");n.attr("x",t),n.attr("y",e);const i=s.distExports.sanitizeUrl(a);n.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),m=s.__name(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=s.__name(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),y=s.__name(()=>{let r=s.select(".mermaidTooltip");return r.empty()&&(r=s.select("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");exports.createTooltip=y;exports.drawBackgroundRect=o;exports.drawEmbeddedImage=x;exports.drawImage=c;exports.drawRect=l;exports.drawText=d;exports.getNoteRect=m;exports.getTextObj=p;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as i, X as l, aE as d, a4 as o } from "./extractHeadings-
|
|
1
|
+
import { _ as i, X as l, aE as d, a4 as o } from "./extractHeadings-B2I83li5.js";
|
|
2
2
|
var x = /* @__PURE__ */ i((r, t) => {
|
|
3
3
|
const e = r.append("rect");
|
|
4
4
|
if (e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), t.name && e.attr("name", t.name), t.rx && e.attr("rx", t.rx), t.ry && e.attr("ry", t.ry), t.attrs !== void 0)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const Jt=require("./chunk-XXDRQBXY-
|
|
1
|
+
"use strict";const Jt=require("./chunk-XXDRQBXY-D5IbqpUM.cjs"),Qt=require("./chunk-VR4S4FIN-CCCnXTuJ.cjs"),s=require("./extractHeadings-R7NxLZJP.cjs"),Zt=require("./chunk-32BRIVSS-BjI5igEa.cjs"),te=require("dompurify");var bt=(function(){var t=s.__name(function(Y,l,d,n){for(d=d||{},n=Y.length;n--;d[Y[n]]=l);return d},"o"),e=[1,2],i=[1,3],o=[1,4],a=[2,4],h=[1,9],f=[1,11],S=[1,16],p=[1,17],y=[1,18],m=[1,19],E=[1,33],x=[1,20],k=[1,21],u=[1,22],L=[1,23],I=[1,24],v=[1,26],O=[1,27],C=[1,28],$=[1,29],R=[1,30],W=[1,31],et=[1,32],st=[1,35],it=[1,36],rt=[1,37],at=[1,38],j=[1,34],g=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],nt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],vt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],pt={trace:s.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:s.__name(function(l,d,n,_,T,r,F){var c=r.length-1;switch(T){case 3:return _.setRootDoc(r[c]),r[c];case 4:this.$=[];break;case 5:r[c]!="nl"&&(r[c-1].push(r[c]),this.$=r[c-1]);break;case 6:case 7:this.$=r[c];break;case 8:this.$="nl";break;case 12:this.$=r[c];break;case 13:const q=r[c-1];q.description=_.trimColon(r[c]),this.$=q;break;case 14:this.$={stmt:"relation",state1:r[c-2],state2:r[c]};break;case 15:const St=_.trimColon(r[c]);this.$={stmt:"relation",state1:r[c-3],state2:r[c-1],description:St};break;case 19:this.$={stmt:"state",id:r[c-3],type:"default",description:"",doc:r[c-1]};break;case 20:var P=r[c],H=r[c-2].trim();if(r[c].match(":")){var lt=r[c].split(":");P=lt[0],H=[H,lt[1]]}this.$={stmt:"state",id:P,type:"default",description:H};break;case 21:this.$={stmt:"state",id:r[c-3],type:"default",description:r[c-5],doc:r[c-1]};break;case 22:this.$={stmt:"state",id:r[c],type:"fork"};break;case 23:this.$={stmt:"state",id:r[c],type:"join"};break;case 24:this.$={stmt:"state",id:r[c],type:"choice"};break;case 25:this.$={stmt:"state",id:_.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[c-1].trim(),note:{position:r[c-2].trim(),text:r[c].trim()}};break;case 29:this.$=r[c].trim(),_.setAccTitle(this.$);break;case 30:case 31:this.$=r[c].trim(),_.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:r[c-3],url:r[c-2],tooltip:r[c-1]};break;case 33:this.$={stmt:"click",id:r[c-3],url:r[c-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:r[c-1].trim(),classes:r[c].trim()};break;case 36:this.$={stmt:"style",id:r[c-1].trim(),styleClass:r[c].trim()};break;case 37:this.$={stmt:"applyClass",id:r[c-1].trim(),styleClass:r[c].trim()};break;case 38:_.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:_.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:_.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:_.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:r[c].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:r[c-2].trim(),classes:[r[c].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:r[c-2].trim(),classes:[r[c].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:i,6:o},{1:[3]},{3:5,4:e,5:i,6:o},{3:6,4:e,5:i,6:o},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:h,5:f,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:y,22:m,24:E,25:x,26:k,27:u,28:L,29:I,32:25,33:v,35:O,37:C,38:$,41:R,45:W,48:et,51:st,52:it,53:rt,54:at,57:j},t(g,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:p,19:y,22:m,24:E,25:x,26:k,27:u,28:L,29:I,32:25,33:v,35:O,37:C,38:$,41:R,45:W,48:et,51:st,52:it,53:rt,54:at,57:j},t(g,[2,7]),t(g,[2,8]),t(g,[2,9]),t(g,[2,10]),t(g,[2,11]),t(g,[2,12],{14:[1,40],15:[1,41]}),t(g,[2,16]),{18:[1,42]},t(g,[2,18],{20:[1,43]}),{23:[1,44]},t(g,[2,22]),t(g,[2,23]),t(g,[2,24]),t(g,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(g,[2,28]),{34:[1,49]},{36:[1,50]},t(g,[2,31]),{13:51,24:E,57:j},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(nt,[2,44],{58:[1,56]}),t(nt,[2,45],{58:[1,57]}),t(g,[2,38]),t(g,[2,39]),t(g,[2,40]),t(g,[2,41]),t(g,[2,6]),t(g,[2,13]),{13:58,24:E,57:j},t(g,[2,17]),t(vt,a,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(g,[2,29]),t(g,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(g,[2,14],{14:[1,71]}),{4:h,5:f,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:y,21:[1,72],22:m,24:E,25:x,26:k,27:u,28:L,29:I,32:25,33:v,35:O,37:C,38:$,41:R,45:W,48:et,51:st,52:it,53:rt,54:at,57:j},t(g,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(g,[2,34]),t(g,[2,35]),t(g,[2,36]),t(g,[2,37]),t(nt,[2,46]),t(nt,[2,47]),t(g,[2,15]),t(g,[2,19]),t(vt,a,{7:78}),t(g,[2,26]),t(g,[2,27]),{5:[1,79]},{5:[1,80]},{4:h,5:f,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:y,21:[1,81],22:m,24:E,25:x,26:k,27:u,28:L,29:I,32:25,33:v,35:O,37:C,38:$,41:R,45:W,48:et,51:st,52:it,53:rt,54:at,57:j},t(g,[2,32]),t(g,[2,33]),t(g,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:s.__name(function(l,d){if(d.recoverable)this.trace(l);else{var n=new Error(l);throw n.hash=d,n}},"parseError"),parse:s.__name(function(l){var d=this,n=[0],_=[],T=[null],r=[],F=this.table,c="",P=0,H=0,lt=2,q=1,St=r.slice.call(arguments,1),b=Object.create(this.lexer),V={yy:{}};for(var gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,gt)&&(V.yy[gt]=this.yy[gt]);b.setInput(l,V.yy),V.yy.lexer=b,V.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var _t=b.yylloc;r.push(_t);var Xt=b.options&&b.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function qt(w){n.length=n.length-2*w,T.length=T.length-w,r.length=r.length-w}s.__name(qt,"popStack");function Ct(){var w;return w=_.pop()||b.lex()||q,typeof w!="number"&&(w instanceof Array&&(_=w,w=_.pop()),w=d.symbols_[w]||w),w}s.__name(Ct,"lex");for(var A,M,N,yt,z={},ct,B,At,ht;;){if(M=n[n.length-1],this.defaultActions[M]?N=this.defaultActions[M]:((A===null||typeof A>"u")&&(A=Ct()),N=F[M]&&F[M][A]),typeof N>"u"||!N.length||!N[0]){var mt="";ht=[];for(ct in F[M])this.terminals_[ct]&&ct>lt&&ht.push("'"+this.terminals_[ct]+"'");b.showPosition?mt="Parse error on line "+(P+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+ht.join(", ")+", got '"+(this.terminals_[A]||A)+"'":mt="Parse error on line "+(P+1)+": Unexpected "+(A==q?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(mt,{text:b.match,token:this.terminals_[A]||A,line:b.yylineno,loc:_t,expected:ht})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+A);switch(N[0]){case 1:n.push(A),T.push(b.yytext),r.push(b.yylloc),n.push(N[1]),A=null,H=b.yyleng,c=b.yytext,P=b.yylineno,_t=b.yylloc;break;case 2:if(B=this.productions_[N[1]][1],z.$=T[T.length-B],z._$={first_line:r[r.length-(B||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(B||1)].first_column,last_column:r[r.length-1].last_column},Xt&&(z._$.range=[r[r.length-(B||1)].range[0],r[r.length-1].range[1]]),yt=this.performAction.apply(z,[c,H,P,V.yy,N[1],T,r].concat(St)),typeof yt<"u")return yt;B&&(n=n.slice(0,-1*B*2),T=T.slice(0,-1*B),r=r.slice(0,-1*B)),n.push(this.productions_[N[1]][0]),T.push(z.$),r.push(z._$),At=F[n[n.length-2]][n[n.length-1]],n.push(At);break;case 3:return!0}}return!0},"parse")},Kt=(function(){var Y={EOF:1,parseError:s.__name(function(d,n){if(this.yy.parser)this.yy.parser.parseError(d,n);else throw new Error(d)},"parseError"),setInput:s.__name(function(l,d){return this.yy=d||this.yy||{},this._input=l,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.__name(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var d=l.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:s.__name(function(l){var d=l.length,n=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var _=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 T=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===_.length?this.yylloc.first_column:0)+_[_.length-n.length].length-n[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:s.__name(function(){return this._more=!0,this},"more"),reject:s.__name(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.__name(function(l){this.unput(this.match.slice(l))},"less"),pastInput:s.__name(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s.__name(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s.__name(function(){var l=this.pastInput(),d=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as ee } from "./chunk-XXDRQBXY-
|
|
2
|
-
import { s as se } from "./chunk-VR4S4FIN-
|
|
3
|
-
import { _ as p, $ as b, W as $, ab as ie, ac as re, U as ae, V as ne, Q as oe, O as le, ad as ce, ae as he, aD as ue, a6 as j, aj as de, X as Dt } from "./extractHeadings-
|
|
4
|
-
import { c as fe } from "./chunk-32BRIVSS-
|
|
1
|
+
import { g as ee } from "./chunk-XXDRQBXY-BFKT7vFo.js";
|
|
2
|
+
import { s as se } from "./chunk-VR4S4FIN-BiCYvwb8.js";
|
|
3
|
+
import { _ as p, $ as b, W as $, ab as ie, ac as re, U as ae, V as ne, Q as oe, O as le, ad as ce, ae as he, aD as ue, a6 as j, aj as de, X as Dt } from "./extractHeadings-B2I83li5.js";
|
|
4
|
+
import { c as fe } from "./chunk-32BRIVSS-DcLe6F1l.js";
|
|
5
5
|
import pe from "dompurify";
|
|
6
6
|
var Ct = (function() {
|
|
7
7
|
var t = /* @__PURE__ */ p(function(V, o, u, a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as i } from "./extractHeadings-
|
|
1
|
+
import { _ as i } from "./extractHeadings-B2I83li5.js";
|
|
2
2
|
function t(c, e) {
|
|
3
3
|
c.accDescr && e.setAccDescription?.(c.accDescr), c.accTitle && e.setAccTitle?.(c.accTitle), c.title && e.setDiagramTitle?.(c.title);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./extractHeadings-
|
|
1
|
+
"use strict";const t=require("./extractHeadings-R7NxLZJP.cjs");function i(e,c){e.accDescr&&c.setAccDescription?.(e.accDescr),e.accTitle&&c.setAccTitle?.(e.accTitle),e.title&&c.setDiagramTitle?.(e.title)}t.__name(i,"populateCommonDb");exports.populateCommonDb=i;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as p, $ as C, as as H, an as B, aj as q, at as G, a0 as U, a3 as j, W as K } from "./extractHeadings-
|
|
1
|
+
import { _ as p, $ as C, as as H, an as B, aj as q, at as G, a0 as U, a3 as j, W as K } from "./extractHeadings-B2I83li5.js";
|
|
2
2
|
var A = "", M = "", O = "", D = [], b = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ p((e) => j(e, K()), "sanitizeText"), y = /* @__PURE__ */ p((e) => {
|
|
3
3
|
switch (e.type) {
|
|
4
4
|
case "terminal":
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const l=require("./extractHeadings-
|
|
1
|
+
"use strict";const l=require("./extractHeadings-R7NxLZJP.cjs");var b="",N="",A="",M=[],$=new Map,k=l.__name(e=>l.sanitizeText(e,l.getConfig2()),"sanitizeText"),F=l.__name(e=>{switch(e.type){case"terminal":return{...e,value:k(e.value)};case"nonterminal":return{...e,name:k(e.name)};case"sequence":return{...e,elements:e.elements.map(F)};case"choice":return{...e,alternatives:e.alternatives.map(F)};case"optional":return{...e,element:F(e.element)};case"repetition":return{...e,element:F(e.element),separator:e.separator?F(e.separator):void 0};case"special":return{...e,text:k(e.text)}}},"sanitizeAstNode"),I=l.__name(()=>{b="",N="",A="",M.length=0,$.clear(),l.clear(),l.log.debug("[Railroad] Database cleared")},"clear"),W=l.__name(e=>{b=k(e),l.log.debug("[Railroad] Title set:",e)},"setTitle"),B=l.__name(()=>b,"getTitle"),X=l.__name(e=>{const i={...e,name:k(e.name),definition:F(e.definition),comment:e.comment?k(e.comment):void 0};l.log.debug("[Railroad] Adding rule:",i.name),$.has(i.name)&&l.log.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),M.push(i),$.set(i.name,i)},"addRule"),q=l.__name(()=>M,"getRules"),G=l.__name(e=>$.get(e),"getRule"),U=l.__name(e=>{N=k(e).replace(/^\s+/g,""),l.log.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),j=l.__name(()=>N,"getAccTitle"),K=l.__name(e=>{A=k(e).replace(/\n\s+/g,`
|
|
2
2
|
`),l.log.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),J=l.__name(()=>A,"getAccDescription"),Q=W,Z=B,Y={clear:I,setTitle:W,getTitle:B,addRule:X,getRules:q,getRule:G,setAccTitle:U,getAccTitle:j,setAccDescription:K,getAccDescription:J,setDiagramTitle:Q,getDiagramTitle:Z},f={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},V=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,ee=/^[\w "',.-]+$/,te=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),P=l.__name(e=>e?Object.keys(e).every(i=>i==="railroad"||te.has(i)):!1,"isRailroadStyleOptions"),re=l.__name(e=>e?"railroad"in e&&e.railroad?e.railroad:P(e)?e:{}:{},"extractRailroadOverrides"),ie=l.__name(e=>{if(!e||P(e))return{};const{railroad:i,svgId:a,theme:n,look:t,...r}=e;return r},"extractThemeOverrides"),h=l.__name((e,i)=>{if(typeof e!="string")return i;const a=e.trim();return V.test(a)?a:i},"sanitizeColorValue"),L=l.__name((e,i)=>{if(typeof e!="string")return i;const a=e.trim();return ee.test(a)?a:i},"sanitizeFontFamilyValue"),S=l.__name((e,i)=>{const a=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(a)&&a>=0?a:i},"sanitizeNumberValue"),ne=l.__name(e=>{const i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),ae=l.__name(e=>{const i=L(e.fontFamily,f.fontFamily),a=ne(e.fontSize)??f.fontSize;return{...f,fontFamily:i,fontSize:a,terminalFill:h(e.secondBkg??e.secondaryColor,f.terminalFill),terminalStroke:h(e.secondaryBorderColor??e.lineColor,f.terminalStroke),terminalTextColor:h(e.secondaryTextColor??e.textColor,f.terminalTextColor),nonTerminalFill:h(e.mainBkg??e.background,f.nonTerminalFill),nonTerminalStroke:h(e.primaryBorderColor??e.lineColor,f.nonTerminalStroke),nonTerminalTextColor:h(e.primaryTextColor??e.textColor,f.nonTerminalTextColor),lineColor:h(e.lineColor,f.lineColor),markerFill:h(e.lineColor,f.markerFill),commentFill:h(e.labelBackground??e.tertiaryColor,f.commentFill),commentStroke:h(e.tertiaryBorderColor??e.lineColor,f.commentStroke),commentTextColor:h(e.tertiaryTextColor??e.textColor,f.commentTextColor),specialFill:h(e.tertiaryColor??e.secondaryColor,f.specialFill),specialStroke:h(e.tertiaryBorderColor??e.secondaryBorderColor,f.specialStroke),ruleNameColor:h(e.titleColor??e.textColor,f.ruleNameColor)}},"buildThemeDefaults"),O=l.__name(e=>{const i=l.getConfig(),a={...l.getThemeVariables3(),...i.themeVariables??{},...ie(e)},n=ae(a),t={...i.railroad??{},...re(e)};return{compactMode:t.compactMode??n.compactMode,padding:S(t.padding,n.padding),verticalSeparation:S(t.verticalSeparation,n.verticalSeparation),horizontalSeparation:S(t.horizontalSeparation,n.horizontalSeparation),arcRadius:S(t.arcRadius,n.arcRadius),fontSize:S(t.fontSize,n.fontSize),fontFamily:L(t.fontFamily,n.fontFamily),terminalFill:h(t.terminalFill,n.terminalFill),terminalStroke:h(t.terminalStroke,n.terminalStroke),terminalTextColor:h(t.terminalTextColor,n.terminalTextColor),nonTerminalFill:h(t.nonTerminalFill,n.nonTerminalFill),nonTerminalStroke:h(t.nonTerminalStroke,n.nonTerminalStroke),nonTerminalTextColor:h(t.nonTerminalTextColor,n.nonTerminalTextColor),lineColor:h(t.lineColor,n.lineColor),strokeWidth:S(t.strokeWidth,n.strokeWidth),markerFill:h(t.markerFill,n.markerFill),commentFill:h(t.commentFill,n.commentFill),commentStroke:h(t.commentStroke,n.commentStroke),commentTextColor:h(t.commentTextColor,n.commentTextColor),specialFill:h(t.specialFill,n.specialFill),specialStroke:h(t.specialStroke,n.specialStroke),ruleNameColor:h(t.ruleNameColor,n.ruleNameColor),showMarkers:t.showMarkers??n.showMarkers,markerRadius:S(t.markerRadius,n.markerRadius)}},"buildRailroadStyleOptions"),oe=l.__name(e=>{const{fontFamily:i,fontSize:a,terminalFill:n,terminalStroke:t,terminalTextColor:r,nonTerminalFill:o,nonTerminalStroke:g,nonTerminalTextColor:s,lineColor:d,strokeWidth:p,markerFill:u,commentFill:m,commentStroke:w,commentTextColor:c,specialFill:T,specialStroke:_,ruleNameColor:v}=O(e);return`
|
|
3
3
|
.railroad-diagram {
|
|
4
4
|
font-family: ${i};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const q1=require("./chunk-5VM5RSS4-
|
|
1
|
+
"use strict";const q1=require("./chunk-5VM5RSS4-DafQyxAv.cjs"),K1=require("./chunk-XXDRQBXY-D5IbqpUM.cjs"),j1=require("./chunk-VR4S4FIN-CCCnXTuJ.cjs"),l=require("./extractHeadings-R7NxLZJP.cjs"),Y1=require("./chunk-32BRIVSS-BjI5igEa.cjs"),H1=require("dompurify"),X1=require("./channel-Dn2hPSB8.cjs");var Q1="flowchart-",Re,J1=(Re=class{constructor(){this.vertexCounter=0,this.config=l.getConfig2(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=l.setAccTitle,this.setAccDescription=l.setAccDescription,this.setDiagramTitle=l.setDiagramTitle,this.getAccTitle=l.getAccTitle,this.getAccDescription=l.getAccDescription,this.getDiagramTitle=l.getDiagramTitle,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return l.common_default.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const r of this.vertices.values())if(r.id===i)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,r,a,n,c,f,h={},b){if(!i||i.trim().length===0)return;let u;if(b!==void 0){let m;b.includes(`
|
|
2
2
|
`)?m=b+`
|
|
3
3
|
`:m=`{
|
|
4
4
|
`+b+`
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as qe } from "./chunk-5VM5RSS4-
|
|
2
|
-
import { g as Xe } from "./chunk-XXDRQBXY-
|
|
3
|
-
import { s as Qe } from "./chunk-VR4S4FIN-
|
|
4
|
-
import { _ as k, a8 as Je, a9 as Me, $ as J, W as g1, aa as Ze, ab as $e, ac as re, V as et, O as tt, ad as st, U as it, Q as rt, ae as at, a6 as nt, af as ut, ag as ot, ah as lt, ai as se, X as ie, aj as ct, ak as ht, al as dt } from "./extractHeadings-
|
|
5
|
-
import { c as pt } from "./chunk-32BRIVSS-
|
|
1
|
+
import { g as qe } from "./chunk-5VM5RSS4-C4ILSCRb.js";
|
|
2
|
+
import { g as Xe } from "./chunk-XXDRQBXY-BFKT7vFo.js";
|
|
3
|
+
import { s as Qe } from "./chunk-VR4S4FIN-BiCYvwb8.js";
|
|
4
|
+
import { _ as k, a8 as Je, a9 as Me, $ as J, W as g1, aa as Ze, ab as $e, ac as re, V as et, O as tt, ad as st, U as it, Q as rt, ae as at, a6 as nt, af as ut, ag as ot, ah as lt, ai as se, X as ie, aj as ct, ak as ht, al as dt } from "./extractHeadings-B2I83li5.js";
|
|
5
|
+
import { c as pt } from "./chunk-32BRIVSS-DcLe6F1l.js";
|
|
6
6
|
import ft from "dompurify";
|
|
7
|
-
import { c as gt } from "./channel-
|
|
7
|
+
import { c as gt } from "./channel-BoXFYC1g.js";
|
|
8
8
|
var bt = "flowchart-", G1, At = (G1 = class {
|
|
9
9
|
// cspell:ignore funs
|
|
10
10
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./extractHeadings-
|
|
1
|
+
"use strict";const o=require("./extractHeadings-R7NxLZJP.cjs"),g=require("./graph-BgRih2Qv.cjs"),E=require("./map-BvScllSQ.cjs");var k=4;function B(e){return E.baseClone(e,k)}function v(e){var r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:j(e),edges:L(e)};return g.isUndefined(e.graph())||(r.value=B(e.graph())),r}function j(e){return E.map(e.nodes(),function(r){var n=e.node(r),s=e.parent(r),t={v:r};return g.isUndefined(n)||(t.value=n),g.isUndefined(s)||(t.parent=s),t})}function L(e){return E.map(e.edges(),function(r){var n=e.edge(r),s={v:r.v,w:r.w};return g.isUndefined(r.name)||(s.name=r.name),g.isUndefined(n)||(s.value=n),s})}var a=new Map,d=new Map,y=new Map,p=o.__name(()=>{d.clear(),y.clear(),a.clear()},"clear"),w=o.__name((e,r)=>{const n=d.get(r)||[];return o.log.trace("In isDescendant",r," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),F=o.__name((e,r)=>{const n=d.get(r)||[];return o.log.info("Descendants of ",r," is ",n),o.log.info("Edge is ",e),e.v===r||e.w===r?!1:n?n.includes(e.v)||w(e.v,r)||w(e.w,r)||n.includes(e.w):(o.log.debug("Tilt, ",r,",not in descendants"),!1)},"edgeInCluster"),D=o.__name((e,r,n,s)=>{o.log.warn("Copying children of ",e,"root",s,"data",r.node(e),s);const t=r.children(e)||[];e!==s&&t.push(e),o.log.warn("Copying (nodes) clusterId",e,"nodes",t),t.forEach(i=>{if(r.children(i).length>0)D(i,r,n,s);else{const c=r.node(i);o.log.info("cp ",i," to ",s," with parent ",e),n.setNode(i,c),s!==r.parent(i)&&(o.log.warn("Setting parent",i,r.parent(i)),n.setParent(i,r.parent(i))),e!==s&&i!==e?(o.log.debug("Setting parent",i,e),n.setParent(i,e)):(o.log.info("In copy ",e,"root",s,"data",r.node(e),s),o.log.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==s,"node!==clusterId",i!==e));const u=r.edges(i);o.log.debug("Copying Edges",u),u.forEach(l=>{o.log.info("Edge",l);const f=r.edge(l.v,l.w,l.name);o.log.info("Edge data",f,s);try{if(F(l,s)){const C=d.get(s)||[],b=C.includes(l.v)||w(l.v,s)||l.v===s,_=C.includes(l.w)||w(l.w,s)||l.w===s;if(b&&_)o.log.info("Copying as ",l.v,l.w,f,l.name),n.setEdge(l.v,l.w,f,l.name),o.log.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]));else{const x=b?s:l.v,h=_?s:l.w;o.log.info("Rebinding cross-boundary edge as ",x,h,f,l.name),r.setEdge(x,h,f,l.name)}}else o.log.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",s," clusterId:",e)}catch(C){o.log.error(C)}})}o.log.debug("Removing node",i),r.removeNode(i)})},"copy"),S=o.__name((e,r)=>{const n=r.children(e);let s=[...n];for(const t of n)y.set(t,e),s=[...s,...S(t,r)];return s},"extractDescendants"),M=o.__name((e,r,n)=>{const s=e.edges().filter(l=>l.v===r||l.w===r),t=e.edges().filter(l=>l.v===n||l.w===n),i=s.map(l=>({v:l.v===r?n:l.v,w:l.w===r?r:l.w})),c=t.map(l=>({v:l.v,w:l.w}));return i.filter(l=>c.some(f=>l.v===f.v&&l.w===f.w))},"findCommonEdges"),m=o.__name((e,r,n)=>{const s=r.children(e);if(o.log.trace("Searching children of id ",e,s),s.length<1)return e;let t;for(const i of s){const c=m(i,r,n),u=M(r,n,c);if(c)if(u.length>0)t=c;else return c}return t},"findNonClusterChild"),N=o.__name(e=>!a.has(e)||!a.get(e).externalConnections?e:a.has(e)?a.get(e).id:e,"getAnchorId"),R=o.__name((e,r)=>{if(!e||r>10){o.log.debug("Opting out, no graph ");return}else o.log.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(o.log.warn("Cluster identified",n," Replacement id in edges: ",m(n,e,n)),d.set(n,S(n,e)),a.set(n,{id:m(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const s=e.children(n),t=e.edges();s.length>0?(o.log.debug("Cluster identified",n,d),t.forEach(i=>{const c=w(i.v,n),u=w(i.w,n);c^u&&(o.log.warn("Edge: ",i," leaves cluster ",n),o.log.warn("Descendants of XXX ",n,": ",d.get(n)),a.get(n).externalConnections=!0)})):o.log.debug("Not a cluster ",n,d)});for(let n of a.keys()){const s=a.get(n).id,t=e.parent(s);t!==n&&a.has(t)&&!a.get(t).externalConnections&&(a.get(n).id=t);const i=e.edges().some(c=>c.v===n);if(s&&a.get(n)?.externalConnections&&i&&O(e,s,n)){const c=H(e,n,e.parent(s));c&&(a.get(n).id=c)}}e.edges().forEach(function(n){const s=e.edge(n);o.log.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),o.log.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let t=n.v,i=n.w;if(o.log.warn("Fix XXX",a,"ids:",n.v,n.w,"Translating: ",a.get(n.v)," --- ",a.get(n.w)),a.get(n.v)||a.get(n.w)){if(o.log.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),t=N(n.v),i=N(n.w),e.removeEdge(n.v,n.w,n.name),t!==n.v){const c=e.parent(t);a.get(c).externalConnections=!0,s.fromCluster=n.v}if(i!==n.w){const c=e.parent(i);a.get(c).externalConnections=!0,s.toCluster=n.w}o.log.warn("Fix Replacing with XXX",t,i,n.name),e.setEdge(t,i,s,n.name)}}),o.log.warn("Adjusted Graph",v(e)),X(e,0),o.log.trace(a)},"adjustClustersAndEdges"),X=o.__name((e,r)=>{if(o.log.warn("extractor - ",r,v(e),e.children("D")),r>10){o.log.error("Bailing out");return}let n=e.nodes(),s=!1;for(const t of n){const i=e.children(t);s=s||i.length>0}if(!s){o.log.debug("Done, no node has children",e.nodes());return}o.log.debug("Nodes = ",n,r);for(const t of n)if(o.log.debug("Extracting node",t,a,a.has(t)&&!a.get(t).externalConnections,!e.parent(t),e.node(t),e.children("D")," Depth ",r),!a.has(t))o.log.debug("Not a cluster",t,r);else if(a.get(t)?.clusterData?.explicitDir&&e.children(t)&&e.children(t).length>0){o.log.warn("Cluster with explicit dir, creating subgraph for children",t,r);const i=a.get(t).clusterData.dir,c=new g.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});D(t,e,c,t);const u=e.node(t)||{};e.setNode(t,{...u,clusterNode:!0,id:t,clusterData:a.get(t).clusterData,label:a.get(t).label,graph:c}),o.log.warn("Subgraph for cluster with explicit dir created:",t,v(c))}else if(!a.get(t).externalConnections&&e.children(t)&&e.children(t).length>0){o.log.warn("Cluster without external connections, without a parent and with children",t,r);let c=e.graph().rankdir==="TB"?"LR":"TB";a.get(t)?.clusterData?.dir&&(c=a.get(t).clusterData.dir,o.log.warn("Fixing dir",a.get(t).clusterData.dir,c));const u=new g.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});D(t,e,u,t);const l=e.node(t)||{};e.setNode(t,{...l,clusterNode:!0,id:t,clusterData:a.get(t).clusterData,label:a.get(t).label,graph:u}),o.log.debug("Old graph after copy",v(e))}else o.log.warn("Cluster ** ",t," **not meeting the criteria !externalConnections:",!a.get(t).externalConnections," no parent: ",!e.parent(t)," children ",e.children(t)&&e.children(t).length>0,e.children("D"),r),o.log.debug(a);n=e.nodes(),o.log.warn("New list of nodes",n);for(const t of n){const i=e.node(t);o.log.warn(" Now next level",t,i),i?.clusterNode&&X(i.graph,r+1)}},"extractor"),A=o.__name((e,r)=>{if(r.length===0)return[];let n=Object.assign([],r);return r.forEach(s=>{const t=e.children(s),i=A(e,t);n=[...n,...i]}),n},"sorter"),U=o.__name(e=>A(e,e.children()),"sortNodesByHierarchy"),O=o.__name((e,r,n)=>{let s=e.parent(r);for(;s&&s!==n;){const t=a.get(s);if(t&&!t.externalConnections)return!0;s=e.parent(s)}return!1},"isNodeInExtractableCluster"),H=o.__name((e,r,n)=>{const s=e.children(r)??[];for(const t of s){if(t===n||w(t,n))continue;const i=m(t,e,r);if(i&&!O(e,i,r))return i}return null},"findSafeAnchorNode");exports.adjustClustersAndEdges=R;exports.clear=p;exports.clusterDb=a;exports.findNonClusterChild=m;exports.sortNodesByHierarchy=U;exports.write=v;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const He=require("./chunk-5VM5RSS4-BITLjZU7.cjs"),Je=require("./chunk-XXDRQBXY-CDD2QRgB.cjs"),Ze=require("./chunk-VR4S4FIN-DKbaKheJ.cjs"),r=require("./extractHeadings-DZwpYYZa.cjs"),$e=require("./chunk-32BRIVSS-kO6eHILC.cjs"),et=require("dompurify");var xe=(function(){var s=r.__name(function(v,h,d,f){for(d=d||{},f=v.length;f--;d[v[f]]=h);return d},"o"),i=[1,18],a=[1,19],n=[1,20],u=[1,41],o=[1,26],l=[1,42],p=[1,24],g=[1,25],m=[1,32],S=[1,33],de=[1,34],b=[1,45],pe=[1,35],fe=[1,36],Ae=[1,37],me=[1,38],ge=[1,27],Ce=[1,28],be=[1,29],ke=[1,30],Ee=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Te=[1,9],A=[1,8,9],J=[1,58],Z=[1,59],$=[1,60],ee=[1,61],te=[1,62],ye=[1,63],_e=[1,64],F=[1,8,9,41],ve=[1,77],P=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],se=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ie=[13,60,86,100,102,103],G=[13,60,73,74,86,100,102,103],Ie=[13,60,68,69,70,71,72,86,100,102,103],ae=[1,103],U=[1,121],z=[1,117],Y=[1,113],K=[1,119],Q=[1,114],W=[1,115],q=[1,116],X=[1,118],j=[1,120],Oe=[22,50,60,61,82,86,87,88,89,90],we=[1,128],ne=[12,39],De=[1,8,9,39,41,44,46],re=[1,8,9,22],Ve=[1,153],Pe=[1,8,9,61],L=[1,8,9,22,50,60,61,82,86,87,88,89,90],Fe={trace:r.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:r.__name(function(h,d,f,c,C,e,H){var t=e.length-1;switch(C){case 8:this.$=e[t-1];break;case 9:case 10:case 13:case 15:this.$=e[t];break;case 11:case 14:this.$=e[t-2]+"."+e[t];break;case 12:case 16:this.$=e[t-1]+e[t];break;case 17:case 18:this.$=e[t-1]+"~"+e[t]+"~";break;case 19:c.addRelation(e[t]);break;case 20:e[t-1].title=c.cleanupLabel(e[t]),c.addRelation(e[t-1]);break;case 31:this.$=e[t].trim(),c.setAccTitle(this.$);break;case 32:case 33:this.$=e[t].trim(),c.setAccDescription(this.$);break;case 34:c.addClassesToNamespace(e[t-3],e[t-1][0],e[t-1][1]),c.popNamespace();break;case 35:c.addClassesToNamespace(e[t-4],e[t-1][0],e[t-1][1]),c.popNamespace();break;case 36:this.$=c.addNamespace(e[t]);break;case 37:this.$=c.addNamespace(e[t-1],e[t]);break;case 38:this.$=[[e[t]],[]];break;case 39:this.$=[[e[t-1]],[]];break;case 40:e[t][0].unshift(e[t-2]),this.$=e[t];break;case 41:this.$=[[],[e[t]]];break;case 42:this.$=[[],[e[t-1]]];break;case 43:e[t][1].unshift(e[t-2]),this.$=e[t];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[t];break;case 48:c.setCssClass(e[t-2],e[t]);break;case 49:c.addMembers(e[t-3],e[t-1]);break;case 51:c.setCssClass(e[t-5],e[t-3]),c.addMembers(e[t-5],e[t-1]);break;case 52:c.addAnnotation(e[t-3],e[t-1]);break;case 53:c.addAnnotation(e[t-6],e[t-4]),c.addMembers(e[t-6],e[t-1]);break;case 54:c.addAnnotation(e[t-5],e[t-3]);break;case 55:this.$=e[t],c.addClass(e[t]);break;case 56:this.$=e[t-1],c.addClass(e[t-1]),c.setClassLabel(e[t-1],e[t]);break;case 60:c.addAnnotation(e[t],e[t-2]);break;case 61:case 74:this.$=[e[t]];break;case 62:e[t].push(e[t-1]),this.$=e[t];break;case 63:break;case 64:c.addMember(e[t-1],c.cleanupLabel(e[t]));break;case 65:break;case 66:break;case 67:this.$={id1:e[t-2],id2:e[t],relation:e[t-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[t-3],id2:e[t],relation:e[t-1],relationTitle1:e[t-2],relationTitle2:"none"};break;case 69:this.$={id1:e[t-3],id2:e[t],relation:e[t-2],relationTitle1:"none",relationTitle2:e[t-1]};break;case 70:this.$={id1:e[t-4],id2:e[t],relation:e[t-2],relationTitle1:e[t-3],relationTitle2:e[t-1]};break;case 71:this.$=c.addNote(e[t],e[t-1]);break;case 72:this.$=c.addNote(e[t]);break;case 73:this.$=e[t-2],c.defineClass(e[t-1],e[t]);break;case 75:this.$=e[t-2].concat([e[t]]);break;case 76:c.setDirection("TB");break;case 77:c.setDirection("BT");break;case 78:c.setDirection("RL");break;case 79:c.setDirection("LR");break;case 80:this.$={type1:e[t-2],type2:e[t],lineType:e[t-1]};break;case 81:this.$={type1:"none",type2:e[t],lineType:e[t-1]};break;case 82:this.$={type1:e[t-1],type2:"none",lineType:e[t]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[t]};break;case 84:this.$=c.relationType.AGGREGATION;break;case 85:this.$=c.relationType.EXTENSION;break;case 86:this.$=c.relationType.COMPOSITION;break;case 87:this.$=c.relationType.DEPENDENCY;break;case 88:this.$=c.relationType.LOLLIPOP;break;case 89:this.$=c.lineType.LINE;break;case 90:this.$=c.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[t-2],c.setClickEvent(e[t-1],e[t]);break;case 92:case 98:this.$=e[t-3],c.setClickEvent(e[t-2],e[t-1]),c.setTooltip(e[t-2],e[t]);break;case 93:this.$=e[t-2],c.setLink(e[t-1],e[t]);break;case 94:this.$=e[t-3],c.setLink(e[t-2],e[t-1],e[t]);break;case 95:this.$=e[t-3],c.setLink(e[t-2],e[t-1]),c.setTooltip(e[t-2],e[t]);break;case 96:this.$=e[t-4],c.setLink(e[t-3],e[t-2],e[t]),c.setTooltip(e[t-3],e[t-1]);break;case 99:this.$=e[t-3],c.setClickEvent(e[t-2],e[t-1],e[t]);break;case 100:this.$=e[t-4],c.setClickEvent(e[t-3],e[t-2],e[t-1]),c.setTooltip(e[t-3],e[t]);break;case 101:this.$=e[t-3],c.setLink(e[t-2],e[t]);break;case 102:this.$=e[t-4],c.setLink(e[t-3],e[t-1],e[t]);break;case 103:this.$=e[t-4],c.setLink(e[t-3],e[t-1]),c.setTooltip(e[t-3],e[t]);break;case 104:this.$=e[t-5],c.setLink(e[t-4],e[t-2],e[t]),c.setTooltip(e[t-4],e[t-1]);break;case 105:this.$=e[t-2],c.setCssStyle(e[t-1],e[t]);break;case 106:c.setCssClass(e[t-1],e[t]);break;case 107:this.$=[e[t]];break;case 108:e[t-2].push(e[t]),this.$=e[t-2];break;case 110:this.$=e[t-1]+e[t];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:u,43:23,46:o,48:l,51:p,52:g,54:m,56:S,57:de,60:b,62:pe,63:fe,64:Ae,65:me,75:ge,76:Ce,78:be,82:ke,83:Ee,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(Te,[2,5],{8:[1,48]}),{8:[1,49]},s(A,[2,19],{22:[1,50]}),s(A,[2,21]),s(A,[2,22]),s(A,[2,23]),s(A,[2,24]),s(A,[2,25]),s(A,[2,26]),s(A,[2,27]),s(A,[2,28]),s(A,[2,29]),s(A,[2,30]),{34:[1,51]},{36:[1,52]},s(A,[2,33]),s(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:J,69:Z,70:$,71:ee,72:te,73:ye,74:_e}),{39:[1,65]},s(F,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),s(A,[2,65]),s(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:ve,55:76},{58:78,60:[1,79]},s(A,[2,76]),s(A,[2,77]),s(A,[2,78]),s(A,[2,79]),s(P,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),s(P,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},s(se,[2,133]),s(se,[2,134]),s(se,[2,135]),s(se,[2,136]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),s(Te,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:n,42:u,46:o,48:l,51:p,52:g,54:m,56:S,57:de,60:b,62:pe,63:fe,64:Ae,65:me,75:ge,76:Ce,78:be,82:ke,83:Ee,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:u,43:23,46:o,48:l,51:p,52:g,54:m,56:S,57:de,60:b,62:pe,63:fe,64:Ae,65:me,75:ge,76:Ce,78:be,82:ke,83:Ee,86:k,100:E,102:T,103:y},s(A,[2,20]),s(A,[2,31]),s(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:J,69:Z,70:$,71:ee,72:te,73:ye,74:_e},s(A,[2,64]),{67:93,73:ye,74:_e},s(ie,[2,83],{66:94,68:J,69:Z,70:$,71:ee,72:te}),s(G,[2,84]),s(G,[2,85]),s(G,[2,86]),s(G,[2,87]),s(G,[2,88]),s(Ie,[2,89]),s(Ie,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:u,43:23,48:l,54:m,56:S},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ae},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:U,50:z,59:110,60:Y,82:K,84:111,85:112,86:Q,87:W,88:q,89:X,90:j},{60:[1,122]},{13:ve,55:123},s(F,[2,72]),s(F,[2,138]),{22:U,50:z,59:124,60:Y,61:[1,125],82:K,84:111,85:112,86:Q,87:W,88:q,89:X,90:j},s(Oe,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},s(P,[2,16]),s(P,[2,17]),s(P,[2,18]),{11:127,12:we,39:[2,36]},s(ne,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),s(ne,[2,10]),s(De,[2,55],{11:131,12:we}),s(Te,[2,7]),{9:[1,132]},s(re,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},s(ie,[2,82],{66:136,68:J,69:Z,70:$,71:ee,72:te}),s(ie,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:u,43:23,48:l,54:m,56:S},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},s(F,[2,48],{39:[1,142]}),{41:[1,143]},s(F,[2,50]),{41:[2,61],45:144,51:ae},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},s(A,[2,91],{13:[1,147]}),s(A,[2,93],{13:[1,149],77:[1,148]}),s(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},s(A,[2,105],{61:Ve}),s(Pe,[2,107],{85:154,22:U,50:z,60:Y,82:K,86:Q,87:W,88:q,89:X,90:j}),s(L,[2,109]),s(L,[2,111]),s(L,[2,112]),s(L,[2,113]),s(L,[2,114]),s(L,[2,115]),s(L,[2,116]),s(L,[2,117]),s(L,[2,118]),s(L,[2,119]),s(A,[2,106]),s(F,[2,71]),s(A,[2,73],{61:Ve}),{60:[1,155]},s(P,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},s(ne,[2,12]),s(De,[2,56]),{1:[2,4]},s(re,[2,69]),s(re,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},s(ie,[2,80]),s(F,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:u,43:23,48:l,54:m,56:S},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:u,43:23,48:l,54:m,56:S},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:u,43:23,48:l,54:m,56:S},{45:163,51:ae},s(F,[2,49]),{41:[2,62]},s(F,[2,52],{39:[1,164]}),s(A,[2,60]),s(A,[2,92]),s(A,[2,94]),s(A,[2,95],{77:[1,165]}),s(A,[2,98]),s(A,[2,99],{13:[1,166]}),s(A,[2,101],{13:[1,168],77:[1,167]}),{22:U,50:z,60:Y,82:K,84:169,85:112,86:Q,87:W,88:q,89:X,90:j},s(L,[2,110]),s(Oe,[2,75]),{14:[1,170]},s(ne,[2,11]),s(re,[2,70]),s(F,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ae},s(A,[2,96]),s(A,[2,100]),s(A,[2,102]),s(A,[2,103],{77:[1,174]}),s(Pe,[2,108],{85:154,22:U,50:z,60:Y,82:K,86:Q,87:W,88:q,89:X,90:j}),s(De,[2,8]),s(F,[2,51]),{41:[1,175]},s(F,[2,54]),s(A,[2,104]),s(F,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:r.__name(function(h,d){if(d.recoverable)this.trace(h);else{var f=new Error(h);throw f.hash=d,f}},"parseError"),parse:r.__name(function(h){var d=this,f=[0],c=[],C=[null],e=[],H=this.table,t="",le=0,Me=0,We=2,Re=1,qe=e.slice.call(arguments,1),_=Object.create(this.lexer),O={yy:{}};for(var Be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Be)&&(O.yy[Be]=this.yy[Be]);_.setInput(h,O.yy),O.yy.lexer=_,O.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Se=_.yylloc;e.push(Se);var Xe=_.options&&_.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function je(B){f.length=f.length-2*B,C.length=C.length-B,e.length=e.length-B}r.__name(je,"popStack");function Ge(){var B;return B=c.pop()||_.lex()||Re,typeof B!="number"&&(B instanceof Array&&(c=B,B=c.pop()),B=d.symbols_[B]||B),B}r.__name(Ge,"lex");for(var D,w,N,Ne,M={},ce,x,Ue,oe;;){if(w=f[f.length-1],this.defaultActions[w]?N=this.defaultActions[w]:((D===null||typeof D>"u")&&(D=Ge()),N=H[w]&&H[w][D]),typeof N>"u"||!N.length||!N[0]){var Le="";oe=[];for(ce in H[w])this.terminals_[ce]&&ce>We&&oe.push("'"+this.terminals_[ce]+"'");_.showPosition?Le="Parse error on line "+(le+1)+`:
|
|
1
|
+
"use strict";const He=require("./chunk-5VM5RSS4-DafQyxAv.cjs"),Je=require("./chunk-XXDRQBXY-D5IbqpUM.cjs"),Ze=require("./chunk-VR4S4FIN-CCCnXTuJ.cjs"),r=require("./extractHeadings-R7NxLZJP.cjs"),$e=require("./chunk-32BRIVSS-BjI5igEa.cjs"),et=require("dompurify");var xe=(function(){var s=r.__name(function(v,h,d,f){for(d=d||{},f=v.length;f--;d[v[f]]=h);return d},"o"),i=[1,18],a=[1,19],n=[1,20],u=[1,41],o=[1,26],l=[1,42],p=[1,24],g=[1,25],m=[1,32],S=[1,33],de=[1,34],b=[1,45],pe=[1,35],fe=[1,36],Ae=[1,37],me=[1,38],ge=[1,27],Ce=[1,28],be=[1,29],ke=[1,30],Ee=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Te=[1,9],A=[1,8,9],J=[1,58],Z=[1,59],$=[1,60],ee=[1,61],te=[1,62],ye=[1,63],_e=[1,64],F=[1,8,9,41],ve=[1,77],P=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],se=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ie=[13,60,86,100,102,103],G=[13,60,73,74,86,100,102,103],Ie=[13,60,68,69,70,71,72,86,100,102,103],ae=[1,103],U=[1,121],z=[1,117],Y=[1,113],K=[1,119],Q=[1,114],W=[1,115],q=[1,116],X=[1,118],j=[1,120],Oe=[22,50,60,61,82,86,87,88,89,90],we=[1,128],ne=[12,39],De=[1,8,9,39,41,44,46],re=[1,8,9,22],Ve=[1,153],Pe=[1,8,9,61],L=[1,8,9,22,50,60,61,82,86,87,88,89,90],Fe={trace:r.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:r.__name(function(h,d,f,c,C,e,H){var t=e.length-1;switch(C){case 8:this.$=e[t-1];break;case 9:case 10:case 13:case 15:this.$=e[t];break;case 11:case 14:this.$=e[t-2]+"."+e[t];break;case 12:case 16:this.$=e[t-1]+e[t];break;case 17:case 18:this.$=e[t-1]+"~"+e[t]+"~";break;case 19:c.addRelation(e[t]);break;case 20:e[t-1].title=c.cleanupLabel(e[t]),c.addRelation(e[t-1]);break;case 31:this.$=e[t].trim(),c.setAccTitle(this.$);break;case 32:case 33:this.$=e[t].trim(),c.setAccDescription(this.$);break;case 34:c.addClassesToNamespace(e[t-3],e[t-1][0],e[t-1][1]),c.popNamespace();break;case 35:c.addClassesToNamespace(e[t-4],e[t-1][0],e[t-1][1]),c.popNamespace();break;case 36:this.$=c.addNamespace(e[t]);break;case 37:this.$=c.addNamespace(e[t-1],e[t]);break;case 38:this.$=[[e[t]],[]];break;case 39:this.$=[[e[t-1]],[]];break;case 40:e[t][0].unshift(e[t-2]),this.$=e[t];break;case 41:this.$=[[],[e[t]]];break;case 42:this.$=[[],[e[t-1]]];break;case 43:e[t][1].unshift(e[t-2]),this.$=e[t];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[t];break;case 48:c.setCssClass(e[t-2],e[t]);break;case 49:c.addMembers(e[t-3],e[t-1]);break;case 51:c.setCssClass(e[t-5],e[t-3]),c.addMembers(e[t-5],e[t-1]);break;case 52:c.addAnnotation(e[t-3],e[t-1]);break;case 53:c.addAnnotation(e[t-6],e[t-4]),c.addMembers(e[t-6],e[t-1]);break;case 54:c.addAnnotation(e[t-5],e[t-3]);break;case 55:this.$=e[t],c.addClass(e[t]);break;case 56:this.$=e[t-1],c.addClass(e[t-1]),c.setClassLabel(e[t-1],e[t]);break;case 60:c.addAnnotation(e[t],e[t-2]);break;case 61:case 74:this.$=[e[t]];break;case 62:e[t].push(e[t-1]),this.$=e[t];break;case 63:break;case 64:c.addMember(e[t-1],c.cleanupLabel(e[t]));break;case 65:break;case 66:break;case 67:this.$={id1:e[t-2],id2:e[t],relation:e[t-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[t-3],id2:e[t],relation:e[t-1],relationTitle1:e[t-2],relationTitle2:"none"};break;case 69:this.$={id1:e[t-3],id2:e[t],relation:e[t-2],relationTitle1:"none",relationTitle2:e[t-1]};break;case 70:this.$={id1:e[t-4],id2:e[t],relation:e[t-2],relationTitle1:e[t-3],relationTitle2:e[t-1]};break;case 71:this.$=c.addNote(e[t],e[t-1]);break;case 72:this.$=c.addNote(e[t]);break;case 73:this.$=e[t-2],c.defineClass(e[t-1],e[t]);break;case 75:this.$=e[t-2].concat([e[t]]);break;case 76:c.setDirection("TB");break;case 77:c.setDirection("BT");break;case 78:c.setDirection("RL");break;case 79:c.setDirection("LR");break;case 80:this.$={type1:e[t-2],type2:e[t],lineType:e[t-1]};break;case 81:this.$={type1:"none",type2:e[t],lineType:e[t-1]};break;case 82:this.$={type1:e[t-1],type2:"none",lineType:e[t]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[t]};break;case 84:this.$=c.relationType.AGGREGATION;break;case 85:this.$=c.relationType.EXTENSION;break;case 86:this.$=c.relationType.COMPOSITION;break;case 87:this.$=c.relationType.DEPENDENCY;break;case 88:this.$=c.relationType.LOLLIPOP;break;case 89:this.$=c.lineType.LINE;break;case 90:this.$=c.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[t-2],c.setClickEvent(e[t-1],e[t]);break;case 92:case 98:this.$=e[t-3],c.setClickEvent(e[t-2],e[t-1]),c.setTooltip(e[t-2],e[t]);break;case 93:this.$=e[t-2],c.setLink(e[t-1],e[t]);break;case 94:this.$=e[t-3],c.setLink(e[t-2],e[t-1],e[t]);break;case 95:this.$=e[t-3],c.setLink(e[t-2],e[t-1]),c.setTooltip(e[t-2],e[t]);break;case 96:this.$=e[t-4],c.setLink(e[t-3],e[t-2],e[t]),c.setTooltip(e[t-3],e[t-1]);break;case 99:this.$=e[t-3],c.setClickEvent(e[t-2],e[t-1],e[t]);break;case 100:this.$=e[t-4],c.setClickEvent(e[t-3],e[t-2],e[t-1]),c.setTooltip(e[t-3],e[t]);break;case 101:this.$=e[t-3],c.setLink(e[t-2],e[t]);break;case 102:this.$=e[t-4],c.setLink(e[t-3],e[t-1],e[t]);break;case 103:this.$=e[t-4],c.setLink(e[t-3],e[t-1]),c.setTooltip(e[t-3],e[t]);break;case 104:this.$=e[t-5],c.setLink(e[t-4],e[t-2],e[t]),c.setTooltip(e[t-4],e[t-1]);break;case 105:this.$=e[t-2],c.setCssStyle(e[t-1],e[t]);break;case 106:c.setCssClass(e[t-1],e[t]);break;case 107:this.$=[e[t]];break;case 108:e[t-2].push(e[t]),this.$=e[t-2];break;case 110:this.$=e[t-1]+e[t];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:u,43:23,46:o,48:l,51:p,52:g,54:m,56:S,57:de,60:b,62:pe,63:fe,64:Ae,65:me,75:ge,76:Ce,78:be,82:ke,83:Ee,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(Te,[2,5],{8:[1,48]}),{8:[1,49]},s(A,[2,19],{22:[1,50]}),s(A,[2,21]),s(A,[2,22]),s(A,[2,23]),s(A,[2,24]),s(A,[2,25]),s(A,[2,26]),s(A,[2,27]),s(A,[2,28]),s(A,[2,29]),s(A,[2,30]),{34:[1,51]},{36:[1,52]},s(A,[2,33]),s(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:J,69:Z,70:$,71:ee,72:te,73:ye,74:_e}),{39:[1,65]},s(F,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),s(A,[2,65]),s(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:ve,55:76},{58:78,60:[1,79]},s(A,[2,76]),s(A,[2,77]),s(A,[2,78]),s(A,[2,79]),s(P,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),s(P,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},s(se,[2,133]),s(se,[2,134]),s(se,[2,135]),s(se,[2,136]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),s(Te,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:n,42:u,46:o,48:l,51:p,52:g,54:m,56:S,57:de,60:b,62:pe,63:fe,64:Ae,65:me,75:ge,76:Ce,78:be,82:ke,83:Ee,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:u,43:23,46:o,48:l,51:p,52:g,54:m,56:S,57:de,60:b,62:pe,63:fe,64:Ae,65:me,75:ge,76:Ce,78:be,82:ke,83:Ee,86:k,100:E,102:T,103:y},s(A,[2,20]),s(A,[2,31]),s(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:J,69:Z,70:$,71:ee,72:te,73:ye,74:_e},s(A,[2,64]),{67:93,73:ye,74:_e},s(ie,[2,83],{66:94,68:J,69:Z,70:$,71:ee,72:te}),s(G,[2,84]),s(G,[2,85]),s(G,[2,86]),s(G,[2,87]),s(G,[2,88]),s(Ie,[2,89]),s(Ie,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:u,43:23,48:l,54:m,56:S},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ae},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:U,50:z,59:110,60:Y,82:K,84:111,85:112,86:Q,87:W,88:q,89:X,90:j},{60:[1,122]},{13:ve,55:123},s(F,[2,72]),s(F,[2,138]),{22:U,50:z,59:124,60:Y,61:[1,125],82:K,84:111,85:112,86:Q,87:W,88:q,89:X,90:j},s(Oe,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},s(P,[2,16]),s(P,[2,17]),s(P,[2,18]),{11:127,12:we,39:[2,36]},s(ne,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),s(ne,[2,10]),s(De,[2,55],{11:131,12:we}),s(Te,[2,7]),{9:[1,132]},s(re,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},s(ie,[2,82],{66:136,68:J,69:Z,70:$,71:ee,72:te}),s(ie,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:u,43:23,48:l,54:m,56:S},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},s(F,[2,48],{39:[1,142]}),{41:[1,143]},s(F,[2,50]),{41:[2,61],45:144,51:ae},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},s(A,[2,91],{13:[1,147]}),s(A,[2,93],{13:[1,149],77:[1,148]}),s(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},s(A,[2,105],{61:Ve}),s(Pe,[2,107],{85:154,22:U,50:z,60:Y,82:K,86:Q,87:W,88:q,89:X,90:j}),s(L,[2,109]),s(L,[2,111]),s(L,[2,112]),s(L,[2,113]),s(L,[2,114]),s(L,[2,115]),s(L,[2,116]),s(L,[2,117]),s(L,[2,118]),s(L,[2,119]),s(A,[2,106]),s(F,[2,71]),s(A,[2,73],{61:Ve}),{60:[1,155]},s(P,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},s(ne,[2,12]),s(De,[2,56]),{1:[2,4]},s(re,[2,69]),s(re,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},s(ie,[2,80]),s(F,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:u,43:23,48:l,54:m,56:S},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:u,43:23,48:l,54:m,56:S},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:u,43:23,48:l,54:m,56:S},{45:163,51:ae},s(F,[2,49]),{41:[2,62]},s(F,[2,52],{39:[1,164]}),s(A,[2,60]),s(A,[2,92]),s(A,[2,94]),s(A,[2,95],{77:[1,165]}),s(A,[2,98]),s(A,[2,99],{13:[1,166]}),s(A,[2,101],{13:[1,168],77:[1,167]}),{22:U,50:z,60:Y,82:K,84:169,85:112,86:Q,87:W,88:q,89:X,90:j},s(L,[2,110]),s(Oe,[2,75]),{14:[1,170]},s(ne,[2,11]),s(re,[2,70]),s(F,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ae},s(A,[2,96]),s(A,[2,100]),s(A,[2,102]),s(A,[2,103],{77:[1,174]}),s(Pe,[2,108],{85:154,22:U,50:z,60:Y,82:K,86:Q,87:W,88:q,89:X,90:j}),s(De,[2,8]),s(F,[2,51]),{41:[1,175]},s(F,[2,54]),s(A,[2,104]),s(F,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:r.__name(function(h,d){if(d.recoverable)this.trace(h);else{var f=new Error(h);throw f.hash=d,f}},"parseError"),parse:r.__name(function(h){var d=this,f=[0],c=[],C=[null],e=[],H=this.table,t="",le=0,Me=0,We=2,Re=1,qe=e.slice.call(arguments,1),_=Object.create(this.lexer),O={yy:{}};for(var Be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Be)&&(O.yy[Be]=this.yy[Be]);_.setInput(h,O.yy),O.yy.lexer=_,O.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Se=_.yylloc;e.push(Se);var Xe=_.options&&_.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function je(B){f.length=f.length-2*B,C.length=C.length-B,e.length=e.length-B}r.__name(je,"popStack");function Ge(){var B;return B=c.pop()||_.lex()||Re,typeof B!="number"&&(B instanceof Array&&(c=B,B=c.pop()),B=d.symbols_[B]||B),B}r.__name(Ge,"lex");for(var D,w,N,Ne,M={},ce,x,Ue,oe;;){if(w=f[f.length-1],this.defaultActions[w]?N=this.defaultActions[w]:((D===null||typeof D>"u")&&(D=Ge()),N=H[w]&&H[w][D]),typeof N>"u"||!N.length||!N[0]){var Le="";oe=[];for(ce in H[w])this.terminals_[ce]&&ce>We&&oe.push("'"+this.terminals_[ce]+"'");_.showPosition?Le="Parse error on line "+(le+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+oe.join(", ")+", got '"+(this.terminals_[D]||D)+"'":Le="Parse error on line "+(le+1)+": Unexpected "+(D==Re?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(Le,{text:_.match,token:this.terminals_[D]||D,line:_.yylineno,loc:Se,expected:oe})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+D);switch(N[0]){case 1:f.push(D),C.push(_.yytext),e.push(_.yylloc),f.push(N[1]),D=null,Me=_.yyleng,t=_.yytext,le=_.yylineno,Se=_.yylloc;break;case 2:if(x=this.productions_[N[1]][1],M.$=C[C.length-x],M._$={first_line:e[e.length-(x||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(x||1)].first_column,last_column:e[e.length-1].last_column},Xe&&(M._$.range=[e[e.length-(x||1)].range[0],e[e.length-1].range[1]]),Ne=this.performAction.apply(M,[t,Me,le,O.yy,N[1],C,e].concat(qe)),typeof Ne<"u")return Ne;x&&(f=f.slice(0,-1*x*2),C=C.slice(0,-1*x),e=e.slice(0,-1*x)),f.push(this.productions_[N[1]][0]),C.push(M.$),e.push(M._$),Ue=H[f[f.length-2]][f[f.length-1]],f.push(Ue);break;case 3:return!0}}return!0},"parse")},Qe=(function(){var v={EOF:1,parseError:r.__name(function(d,f){if(this.yy.parser)this.yy.parser.parseError(d,f);else throw new Error(d)},"parseError"),setInput:r.__name(function(h,d){return this.yy=d||this.yy||{},this._input=h,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:r.__name(function(){var h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var d=h.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},"input"),unput:r.__name(function(h){var d=h.length,f=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var C=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:f?(f.length===c.length?this.yylloc.first_column:0)+c[c.length-f.length].length-f[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:r.__name(function(){return this._more=!0,this},"more"),reject:r.__name(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:r.__name(function(h){this.unput(this.match.slice(h))},"less"),pastInput:r.__name(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r.__name(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r.__name(function(){var h=this.pastInput(),d=new Array(h.length+1).join("-");return h+this.upcomingInput()+`
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as st } from "./chunk-5VM5RSS4-
|
|
2
|
-
import { g as it } from "./chunk-XXDRQBXY-
|
|
3
|
-
import { s as at } from "./chunk-VR4S4FIN-
|
|
4
|
-
import { _ as f, $ as we, W as F, aa as nt, ab as rt, ac as Ve, X as Ae, V as ut, U as lt, O as ct, Q as ot, ad as ht, ae as dt, a6 as I, aj as pt, ai as At, a3 as ft, aA as U } from "./extractHeadings-
|
|
5
|
-
import { c as gt } from "./chunk-32BRIVSS-
|
|
1
|
+
import { g as st } from "./chunk-5VM5RSS4-C4ILSCRb.js";
|
|
2
|
+
import { g as it } from "./chunk-XXDRQBXY-BFKT7vFo.js";
|
|
3
|
+
import { s as at } from "./chunk-VR4S4FIN-BiCYvwb8.js";
|
|
4
|
+
import { _ as f, $ as we, W as F, aa as nt, ab as rt, ac as Ve, X as Ae, V as ut, U as lt, O as ct, Q as ot, ad as ht, ae as dt, a6 as I, aj as pt, ai as At, a3 as ft, aA as U } from "./extractHeadings-B2I83li5.js";
|
|
5
|
+
import { c as gt } from "./chunk-32BRIVSS-DcLe6F1l.js";
|
|
6
6
|
import mt from "dompurify";
|
|
7
7
|
var Pe = (function() {
|
|
8
8
|
var s = /* @__PURE__ */ f(function(O, o, h, p) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./extractHeadings-
|
|
1
|
+
"use strict";const r=require("./extractHeadings-R7NxLZJP.cjs");var u=r.__name((e,t,i,n)=>{e.attr("class",i);const{width:o,height:a,x:h,y:s}=w(e,t);r.configureSvgSize(e,a,o,n);const c=x(h,s,o,a,t);e.attr("viewBox",c),r.log.debug(`viewBox configured: ${c} with padding: ${t}`)},"setupViewPortForSVG"),w=r.__name((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),x=r.__name((e,t,i,n,o)=>`${e-o} ${t-o} ${i} ${n}`,"createViewBox");exports.setupViewPortForSVG=u;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as a, X as o } from "./extractHeadings-
|
|
1
|
+
import { _ as a, X as o } from "./extractHeadings-B2I83li5.js";
|
|
2
2
|
var g = /* @__PURE__ */ a((t, e) => {
|
|
3
3
|
let n;
|
|
4
4
|
return e === "sandbox" && (n = o("#i" + t)), (e === "sandbox" ? o(n.nodes()[0].contentDocument.body) : o("body")).select(`[id="${t}"]`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./extractHeadings-
|
|
1
|
+
"use strict";const e=require("./extractHeadings-R7NxLZJP.cjs");var s=e.__name((t,n)=>{let o;return n==="sandbox"&&(o=e.select("#i"+t)),(n==="sandbox"?e.select(o.nodes()[0].contentDocument.body):e.select("body")).select(`[id="${t}"]`)},"getDiagramElement");exports.getDiagramElement=s;
|