@aiquants/markdown 5.0.0 → 6.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 +93 -14
- package/dist/{abnfDiagram-VRR7QNED-DeHJ63Vu.js → abnfDiagram-VRR7QNED-D7Rp9EaV.js} +3 -3
- package/dist/{abnfDiagram-VRR7QNED-CfVjEUzG.cjs → abnfDiagram-VRR7QNED-KTGT9TWM.cjs} +1 -1
- package/dist/{arc-XFFLkHkK.cjs → arc-D5T_urCC.cjs} +1 -1
- package/dist/arc-DzZml7Bc.js +83 -0
- package/dist/{architectureDiagram-ZJ3FMSHR-7xJ6YYGu.cjs → architectureDiagram-ZJ3FMSHR-BOo3y9aD.cjs} +1 -1
- package/dist/{architectureDiagram-ZJ3FMSHR-CQ1m3MUB.js → architectureDiagram-ZJ3FMSHR-DLrGYTYy.js} +123 -123
- package/dist/{blockDiagram-677ZJIJ3-BPC3se0e.js → blockDiagram-677ZJIJ3-B60l5Fpl.js} +166 -166
- package/dist/{blockDiagram-677ZJIJ3-CJOFqwiW.cjs → blockDiagram-677ZJIJ3-DnjCjo0a.cjs} +1 -1
- package/dist/{c4Diagram-LMCZKHZV-BEIrp4t6.js → c4Diagram-LMCZKHZV-BmbplKCu.js} +2 -2
- package/dist/{c4Diagram-LMCZKHZV-D8ytYGhR.cjs → c4Diagram-LMCZKHZV-bd8fWQ1F.cjs} +1 -1
- package/dist/channel-B3oXm84X.js +5 -0
- package/dist/{channel-CJQcZr8o.cjs → channel-DJ_PyD9w.cjs} +1 -1
- package/dist/{chunk-2Q5K7J3B-l8ly7Yjr.js → chunk-2Q5K7J3B-C0hbxO3D.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-BbMQR3Sm.cjs → chunk-2Q5K7J3B-CWLCO342.cjs} +1 -1
- package/dist/{chunk-32BRIVSS-BwDfmprN.cjs → chunk-32BRIVSS-Cb9nTxqN.cjs} +1 -1
- package/dist/{chunk-32BRIVSS-BhQJBlVw.js → chunk-32BRIVSS-DUWtkDEY.js} +1 -1
- package/dist/{chunk-5VM5RSS4-Bfis-x7E.js → chunk-5VM5RSS4-C3mSh-gE.js} +1 -1
- package/dist/{chunk-5VM5RSS4-CqDQlS7v.cjs → chunk-5VM5RSS4-DHA5n_Ls.cjs} +1 -1
- package/dist/{chunk-EX3LRPZG-9aDULZwJ.cjs → chunk-EX3LRPZG-ByY6_kep.cjs} +1 -1
- package/dist/{chunk-EX3LRPZG-DUTbzwDM.js → chunk-EX3LRPZG-DCF1zjtT.js} +50 -50
- package/dist/{chunk-JWPE2WC7-DpcSSOP5.js → chunk-JWPE2WC7-CPLOunIL.js} +1 -1
- package/dist/{chunk-JWPE2WC7-5cM5nFf6.cjs → chunk-JWPE2WC7-CUBzYD4G.cjs} +1 -1
- package/dist/{chunk-MOJQB5TN-D_h6bolU.js → chunk-MOJQB5TN-CmOhW6SK.js} +9 -9
- package/dist/{chunk-MOJQB5TN-Cw864mUL.cjs → chunk-MOJQB5TN-P8-yb3-j.cjs} +1 -1
- package/dist/{chunk-PUDLZKDR-B0wZjmzv.js → chunk-PUDLZKDR-DH7B7ZTK.js} +22 -22
- package/dist/{chunk-PUDLZKDR-yLvT3c9x.cjs → chunk-PUDLZKDR-pKdIELvz.cjs} +1 -1
- package/dist/{chunk-RYQCIY6F-DTKYsCgk.js → chunk-RYQCIY6F-C7ytn_QX.js} +6 -6
- package/dist/{chunk-RYQCIY6F-hj9dRWMT.cjs → chunk-RYQCIY6F-DcvQCEoc.cjs} +1 -1
- package/dist/{chunk-V7JOEXUC-COa9uddv.js → chunk-V7JOEXUC-BgLcssUF.js} +5 -5
- package/dist/{chunk-V7JOEXUC-DIQ8n1AN.cjs → chunk-V7JOEXUC-CtXgqODy.cjs} +1 -1
- package/dist/{chunk-VR4S4FIN-B72PxPVm.js → chunk-VR4S4FIN-BK6xeIQk.js} +3 -3
- package/dist/{chunk-VR4S4FIN-Cy-2mZJB.cjs → chunk-VR4S4FIN-Cc4GDi2Z.cjs} +1 -1
- package/dist/{chunk-XXDRQBXY-D2Sgptl-.js → chunk-XXDRQBXY-COtZ25Ez.js} +1 -1
- package/dist/{chunk-XXDRQBXY-DmoUE7-y.cjs → chunk-XXDRQBXY-D1OixGzR.cjs} +1 -1
- package/dist/{classDiagram-OUVF2IWQ-GjsCEuKI.cjs → classDiagram-OUVF2IWQ-DDLmqaG6.cjs} +1 -1
- package/dist/{classDiagram-v2-EOCWNBFH-Dah4_VL7.js → classDiagram-OUVF2IWQ-Jc-IwOm0.js} +2 -2
- package/dist/{classDiagram-v2-EOCWNBFH-GjsCEuKI.cjs → classDiagram-v2-EOCWNBFH-DDLmqaG6.cjs} +1 -1
- package/dist/{classDiagram-OUVF2IWQ-Dah4_VL7.js → classDiagram-v2-EOCWNBFH-Jc-IwOm0.js} +2 -2
- package/dist/components/MarkdownRenderer.d.ts +5 -2
- package/dist/components/MarkdownViewer.d.ts +3 -2
- package/dist/components/NodesRenderer.d.ts +1 -5
- package/dist/components/embeds/ClientFrame.d.ts +13 -0
- package/dist/components/embeds/LinkCard.d.ts +9 -0
- package/dist/components/embeds/ProviderEmbed.d.ts +11 -0
- package/dist/components/embeds/embedLabels.d.ts +12 -0
- package/dist/components/embeds/frameMessages.d.ts +7 -0
- package/dist/components/embeds/markdownEmbeds.d.ts +2 -0
- package/dist/components/embeds/requestQueue.d.ts +16 -0
- package/dist/components/embeds.d.ts +0 -8
- package/dist/components/htmlSanitizer.d.ts +4 -0
- package/dist/components/mdastNodes/HTMLBlockContainerNode.d.ts +1 -2
- package/dist/components/rawHtml.d.ts +6 -3
- package/dist/components/viewerLabels.d.ts +3 -1
- package/dist/{cose-bilkent-JH36ORCC-Pi0l3C5o.js → cose-bilkent-JH36ORCC-DaucPocG.js} +1 -1
- package/dist/{cose-bilkent-JH36ORCC-Vi9pHFwc.cjs → cose-bilkent-JH36ORCC-OwiXHdQY.cjs} +1 -1
- package/dist/css/zenn-content.css +0 -40
- package/dist/{cynefinDiagram-TSTJHNR4-BQ2k9Z6b.cjs → cynefinDiagram-TSTJHNR4-Ag-HcuUm.cjs} +1 -1
- package/dist/{cynefinDiagram-TSTJHNR4-CIh03JTU.js → cynefinDiagram-TSTJHNR4-Dkmz7gDw.js} +47 -47
- package/dist/{dagre-VKFMJZFB-cINcPwV3.js → dagre-VKFMJZFB-BHGdcjt3.js} +27 -27
- package/dist/{dagre-VKFMJZFB-DI2wSrAy.cjs → dagre-VKFMJZFB-Q4CcAQ09.cjs} +1 -1
- package/dist/{diagram-FQU43EPY-BonrBTG_.js → diagram-FQU43EPY-DBASKnKu.js} +42 -42
- package/dist/{diagram-FQU43EPY-B6iUH2l5.cjs → diagram-FQU43EPY-jWCrN_AW.cjs} +1 -1
- package/dist/{diagram-G47NLZAW-CY6mWS2R.cjs → diagram-G47NLZAW-B4XMStX7.cjs} +1 -1
- package/dist/{diagram-G47NLZAW-5N876QQA.js → diagram-G47NLZAW-BY1mmnYA.js} +83 -83
- package/dist/{diagram-NH7WQ7WH-x3SaRfd6.cjs → diagram-NH7WQ7WH-BS1eEa9R.cjs} +1 -1
- package/dist/{diagram-NH7WQ7WH-LFuTbHxY.js → diagram-NH7WQ7WH-BXFvYRtm.js} +18 -18
- package/dist/{diagram-OA4YK3LP-B9mVw8cB.cjs → diagram-OA4YK3LP-CTaL_2Nc.cjs} +1 -1
- package/dist/{diagram-OA4YK3LP-Cinpbl0B.js → diagram-OA4YK3LP-DgGrzezu.js} +61 -61
- package/dist/{diagram-WEI45ONY-HPCHpafe.js → diagram-WEI45ONY-BHxWKH3v.js} +21 -21
- package/dist/{diagram-WEI45ONY-BRYVUhRr.cjs → diagram-WEI45ONY-DX7BGSMI.cjs} +1 -1
- package/dist/{ebnfDiagram-CCIWWBDH-oLOdtH39.js → ebnfDiagram-CCIWWBDH-BUK_anpV.js} +5 -5
- package/dist/{ebnfDiagram-CCIWWBDH-DhFlIi0a.cjs → ebnfDiagram-CCIWWBDH-BpDmVVJY.cjs} +1 -1
- package/dist/embeds/frames.d.ts +4 -0
- package/dist/embeds/linkCards.d.ts +16 -0
- package/dist/embeds/placeholder.d.ts +15 -0
- package/dist/embeds/providers.d.ts +73 -0
- package/dist/embeds/testing.cjs +1 -0
- package/dist/embeds/testing.d.ts +7 -0
- package/dist/embeds/testing.js +67 -0
- package/dist/embeds.cjs +1 -0
- package/dist/embeds.d.ts +4 -0
- package/dist/embeds.js +94 -0
- package/dist/{erDiagram-Q63AITRT-DCCFR1Ai.cjs → erDiagram-Q63AITRT-Cd9H9BtP.cjs} +1 -1
- package/dist/{erDiagram-Q63AITRT-CCtzpK78.js → erDiagram-Q63AITRT-Qb2bmkNp.js} +9 -9
- package/dist/{extractHeadings-CGJexznE.js → extractHeadings-B2pUyEPa.js} +5603 -5517
- package/dist/extractHeadings-DgefF9l1.cjs +311 -0
- package/dist/flowDiagram-23GEKE2U-BOmNlv7X.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-DMZnRz-6.js +7 -0
- package/dist/{ganttDiagram-NO4QXBWP-Dfi3nINO.js → ganttDiagram-NO4QXBWP-BVISsrzr.js} +69 -69
- package/dist/{ganttDiagram-NO4QXBWP-C9RPyo4r.cjs → ganttDiagram-NO4QXBWP-C6-ExcDz.cjs} +1 -1
- package/dist/{gitGraphDiagram-IHSO6WYX-CjAqPhww.js → gitGraphDiagram-IHSO6WYX-BDVA2TFP.js} +38 -38
- package/dist/{gitGraphDiagram-IHSO6WYX-mT3NNT7T.cjs → gitGraphDiagram-IHSO6WYX-DLzPc702.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.client.cjs +1 -1
- package/dist/index.client.d.ts +1 -10
- package/dist/index.client.js +41 -49
- package/dist/index.js +41 -49
- package/dist/index.server.cjs +1 -1
- package/dist/index.server.d.ts +0 -2
- package/dist/index.server.js +116 -161
- package/dist/{infoDiagram-FWYZ7A6U-BXWQ9Vy4.js → infoDiagram-FWYZ7A6U-D31UwqjR.js} +1 -1
- package/dist/{infoDiagram-FWYZ7A6U-0Co9BitR.cjs → infoDiagram-FWYZ7A6U-DMF_wb2h.cjs} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-BKqUBw1i.cjs → ishikawaDiagram-FXEZZL3T-DUlnwraq.cjs} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-CZp5P1WE.js → ishikawaDiagram-FXEZZL3T-XA6-gyHY.js} +35 -35
- package/dist/{journeyDiagram-5HDEW3XC-DYVTgOOE.js → journeyDiagram-5HDEW3XC-B8sfsWpu.js} +39 -39
- package/dist/{journeyDiagram-5HDEW3XC-CeumPQ1I.cjs → journeyDiagram-5HDEW3XC-CwQyFcYa.cjs} +1 -1
- package/dist/{kanban-definition-HUTT4EX6-Cg5KnsE9.cjs → kanban-definition-HUTT4EX6-BjPlt2-E.cjs} +1 -1
- package/dist/{kanban-definition-HUTT4EX6-CnleRy80.js → kanban-definition-HUTT4EX6-FTrTBare.js} +123 -123
- package/dist/{linear-qqwu6T0F.cjs → linear-D3AJM3sY.cjs} +1 -1
- package/dist/{linear-Cf8i6Rsk.js → linear-DI9P_z72.js} +32 -32
- package/dist/markdown.css +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-DfFWeFph.cjs → mindmap-definition-LN4V7U3C-CxgWZidl.cjs} +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-lBin9VOm.js → mindmap-definition-LN4V7U3C-YW4YcL9x.js} +33 -33
- package/dist/{pegDiagram-2B236MQR-Cf1f-3yi.cjs → pegDiagram-2B236MQR-CUo7q5bl.cjs} +1 -1
- package/dist/{pegDiagram-2B236MQR-BiD21lOj.js → pegDiagram-2B236MQR-sJjLKeF3.js} +5 -5
- package/dist/{pieDiagram-ENE6RG2P-jwhVsZgX.cjs → pieDiagram-ENE6RG2P-Cy_sUuLQ.cjs} +1 -1
- package/dist/{pieDiagram-ENE6RG2P-BqZb6gaV.js → pieDiagram-ENE6RG2P-D4VanIOv.js} +58 -58
- package/dist/providers-Bxr2Wb-j.cjs +1 -0
- package/dist/providers-Drq7MT_K.js +209 -0
- package/dist/{quadrantDiagram-ABIIQ3AL-sO_sIA7b.cjs → quadrantDiagram-ABIIQ3AL-D3c8xLpt.cjs} +1 -1
- package/dist/{quadrantDiagram-ABIIQ3AL-CNe9fRLO.js → quadrantDiagram-ABIIQ3AL-ubxphjb_.js} +48 -48
- package/dist/{railroadDiagram-RFXS5EU6-53YTkJrs.js → railroadDiagram-RFXS5EU6-DvpD4C_A.js} +3 -3
- package/dist/{railroadDiagram-RFXS5EU6-Dkc8k3e9.cjs → railroadDiagram-RFXS5EU6-_Q4W5hB-.cjs} +1 -1
- package/dist/{requirementDiagram-TGXJPOKE-C0GMlJO4.cjs → requirementDiagram-TGXJPOKE-DdYIO-wU.cjs} +1 -1
- package/dist/{requirementDiagram-TGXJPOKE-D8Gz7jzA.js → requirementDiagram-TGXJPOKE-Dk_6BuX9.js} +3 -3
- package/dist/{sankeyDiagram-HTMAVEWB-CEC0GaCg.js → sankeyDiagram-HTMAVEWB-s3Kd7T8n.js} +67 -67
- package/dist/{sankeyDiagram-HTMAVEWB-Bw9J2Ay2.cjs → sankeyDiagram-HTMAVEWB-zuYg6LTg.cjs} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-BuqPCreB.cjs → sequenceDiagram-DBY2YBRQ-BvNPCevg.cjs} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-CKb4m3I0.js → sequenceDiagram-DBY2YBRQ-YQic4wxL.js} +47 -47
- package/dist/{sizeCapture-X5ZJPWSS-Dm3rsxXw.cjs → sizeCapture-X5ZJPWSS-BqrdzzsI.cjs} +1 -1
- package/dist/{sizeCapture-X5ZJPWSS-CotnTNAA.js → sizeCapture-X5ZJPWSS-qMsWGfjy.js} +1 -1
- package/dist/{stateDiagram-2N3HPSRC-GWEIP-C9.js → stateDiagram-2N3HPSRC-D1Ub8LYq.js} +22 -22
- package/dist/{stateDiagram-2N3HPSRC-5Y-OlePe.cjs → stateDiagram-2N3HPSRC-Ds8f-scd.cjs} +1 -1
- package/dist/{stateDiagram-v2-6OUMAXLB-BZFV8swJ.js → stateDiagram-v2-6OUMAXLB-DW8wjtk3.js} +2 -2
- package/dist/{stateDiagram-v2-6OUMAXLB-v77D3Qyf.cjs → stateDiagram-v2-6OUMAXLB-PmrsPXuZ.cjs} +1 -1
- package/dist/styles/markdown.css +1 -1
- package/dist/{swimlanes-5IMT3BWC-DujAOwAt.js → swimlanes-5IMT3BWC-C8P8vU0w.js} +313 -313
- package/dist/{swimlanes-5IMT3BWC-B1hLl8Ph.cjs → swimlanes-5IMT3BWC-jZhcesRT.cjs} +1 -1
- package/dist/{swimlanesDiagram-G3AALYLV-B-5z3jDg.js → swimlanesDiagram-G3AALYLV-B9FKeJRf.js} +2 -2
- package/dist/{swimlanesDiagram-G3AALYLV-Cklgsxbg.cjs → swimlanesDiagram-G3AALYLV-M5Cg2MHU.cjs} +1 -1
- package/dist/{timeline-definition-FHXFAJF6-Fmzt_lvR.js → timeline-definition-FHXFAJF6-Ch-He--D.js} +34 -34
- package/dist/{timeline-definition-FHXFAJF6-B2m-aQLI.cjs → timeline-definition-FHXFAJF6-DZm1-KlQ.cjs} +1 -1
- package/dist/{vennDiagram-L72KCM5P-zIXK42Cx.js → vennDiagram-L72KCM5P-CaoPscCM.js} +92 -92
- package/dist/{vennDiagram-L72KCM5P-rL7UDYbl.cjs → vennDiagram-L72KCM5P-mUSI238J.cjs} +1 -1
- package/dist/{wardleyDiagram-EHGQE667-pTeeZ0uM.js → wardleyDiagram-EHGQE667-CSAqF366.js} +11 -11
- package/dist/{wardleyDiagram-EHGQE667-CNLieFen.cjs → wardleyDiagram-EHGQE667-CkKP97H-.cjs} +1 -1
- package/dist/{xychartDiagram-FW5EYKEG-CD5ik4HK.cjs → xychartDiagram-FW5EYKEG-BivGpkVk.cjs} +1 -1
- package/dist/{xychartDiagram-FW5EYKEG-B6UdSSVZ.js → xychartDiagram-FW5EYKEG-OEsTD_k4.js} +37 -37
- package/package.json +21 -8
- package/dist/arc-DH6k2JIR.js +0 -83
- package/dist/channel-DoH_tsOQ.js +0 -5
- package/dist/components/mdastNodes/BlockLinkNode.d.ts +0 -5
- package/dist/components/mdastNodes/RichLinkCard.d.ts +0 -8
- package/dist/components/mdastNodes/TwitterEmbedNode.d.ts +0 -25
- package/dist/components/mdastNodes/YouTubeEmbedNode.d.ts +0 -6
- package/dist/extractHeadings-lDHB2sBb.cjs +0 -310
- package/dist/flowDiagram-23GEKE2U-ORytlvmX.js +0 -7
- package/dist/flowDiagram-23GEKE2U-h2WZTCCn.cjs +0 -1
- package/dist/plugins/createIntentTweetLink.d.ts +0 -10
- package/dist/plugins/extractYouTubeVideoId.d.ts +0 -5
- package/dist/plugins/fetchSiteMetadata.d.ts +0 -9
- package/dist/plugins/remark-auto-heading-id.d.ts +0 -2
- package/dist/plugins/remark-block-link-metadata.d.ts +0 -23
- package/dist/plugins/remark-block-link.d.ts +0 -12
- package/dist/plugins/remark-twitter-embed.d.ts +0 -20
- package/dist/plugins/remark-youtube-embed.d.ts +0 -14
- package/dist/simple-logger-DZxBpX7v.cjs +0 -1
- package/dist/simple-logger-i94ikRyH.js +0 -101
- package/dist/utils/getFaviconUrl.d.ts +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { g as de } from "./chunk-5VM5RSS4-
|
|
2
|
-
import {
|
|
1
|
+
import { g as de } from "./chunk-5VM5RSS4-C3mSh-gE.js";
|
|
2
|
+
import { bc as fe, bd as Kt, be as pe, bf as xe, bg as ye, bh as be, bi as we, bj as me, bk as Se, bl as Le, bm as ke, bn as ve, bo as Ee, bp as _e, bq as Te, br as De, bs as Be, bt as Ne, bu as Ie, bv as Ce, bw as Oe, bx as Re, by as Ae, bz as ze, bA as Me, _ as g, af as rt, K as D, Q as Pe, O as k, ab as Fe, ad as We, J as R, bB as Ye, at as He, au as Ke, aq as Ue, bC as M, bD as kt, bE as Q, b4 as Xe, a4 as $, Y as Ve, bF as je, V as Ct, bG as Ot, bH as Ge } from "./extractHeadings-B2pUyEPa.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-B3oXm84X.js";
|
|
5
5
|
function Je(e) {
|
|
6
6
|
return Array.isArray(e);
|
|
7
7
|
}
|
|
8
8
|
function Qe(e) {
|
|
9
|
-
if (
|
|
9
|
+
if (fe(e)) return e;
|
|
10
10
|
const t = Kt(e);
|
|
11
11
|
if (!$e(e)) return {};
|
|
12
12
|
if (Je(e)) {
|
|
13
13
|
const s = Array.from(e);
|
|
14
14
|
return e.length > 0 && typeof e[0] == "string" && Object.hasOwn(e, "index") && (s.index = e.index, s.input = e.input), s;
|
|
15
15
|
}
|
|
16
|
-
if (
|
|
16
|
+
if (pe(e)) {
|
|
17
17
|
const s = e, i = s.constructor;
|
|
18
18
|
return new i(s.buffer, s.byteOffset, s.length);
|
|
19
19
|
}
|
|
@@ -99,9 +99,9 @@ function rr(e, t) {
|
|
|
99
99
|
a !== null && typeof t.constructor == "function" && Object.setPrototypeOf(e, a);
|
|
100
100
|
}
|
|
101
101
|
var bt = (function() {
|
|
102
|
-
var e = /* @__PURE__ */ g(function(T, m,
|
|
103
|
-
for (
|
|
104
|
-
return
|
|
102
|
+
var e = /* @__PURE__ */ g(function(T, m, f, x) {
|
|
103
|
+
for (f = f || {}, x = T.length; x--; f[T[x]] = m) ;
|
|
104
|
+
return f;
|
|
105
105
|
}, "o"), t = [1, 15], a = [1, 7], s = [1, 13], i = [1, 14], c = [1, 19], r = [1, 16], n = [1, 17], l = [1, 18], u = [8, 30], h = [8, 10, 21, 28, 29, 30, 31, 39, 43, 46], d = [1, 23], b = [1, 24], w = [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], v = [1, 49], S = {
|
|
106
106
|
trace: /* @__PURE__ */ g(function() {
|
|
107
107
|
}, "trace"),
|
|
@@ -109,8 +109,8 @@ var bt = (function() {
|
|
|
109
109
|
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 },
|
|
110
110
|
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" },
|
|
111
111
|
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]],
|
|
112
|
-
performAction: /* @__PURE__ */ g(function(m,
|
|
113
|
-
var
|
|
112
|
+
performAction: /* @__PURE__ */ g(function(m, f, x, L, E, o, F) {
|
|
113
|
+
var p = o.length - 1;
|
|
114
114
|
switch (E) {
|
|
115
115
|
case 4:
|
|
116
116
|
L.getLogger().debug("Rule: separator (NL) ");
|
|
@@ -122,7 +122,7 @@ var bt = (function() {
|
|
|
122
122
|
L.getLogger().debug("Rule: separator (EOF) ");
|
|
123
123
|
break;
|
|
124
124
|
case 7:
|
|
125
|
-
L.getLogger().debug("Rule: hierarchy: ", o[
|
|
125
|
+
L.getLogger().debug("Rule: hierarchy: ", o[p - 1]), L.setHierarchy(o[p - 1]);
|
|
126
126
|
break;
|
|
127
127
|
case 8:
|
|
128
128
|
L.getLogger().debug("Stop NL ");
|
|
@@ -137,89 +137,89 @@ var bt = (function() {
|
|
|
137
137
|
L.getLogger().debug("Stop EOF2 ");
|
|
138
138
|
break;
|
|
139
139
|
case 12:
|
|
140
|
-
L.getLogger().debug("Rule: statement: ", o[
|
|
140
|
+
L.getLogger().debug("Rule: statement: ", o[p]), typeof o[p].length == "number" ? this.$ = o[p] : this.$ = [o[p]];
|
|
141
141
|
break;
|
|
142
142
|
case 13:
|
|
143
|
-
L.getLogger().debug("Rule: statement #2: ", o[
|
|
143
|
+
L.getLogger().debug("Rule: statement #2: ", o[p - 1]), this.$ = [o[p - 1]].concat(o[p]);
|
|
144
144
|
break;
|
|
145
145
|
case 14:
|
|
146
|
-
L.getLogger().debug("Rule: link: ", o[
|
|
146
|
+
L.getLogger().debug("Rule: link: ", o[p], m), this.$ = { edgeTypeStr: o[p], label: "" };
|
|
147
147
|
break;
|
|
148
148
|
case 15:
|
|
149
|
-
L.getLogger().debug("Rule: LABEL link: ", o[
|
|
149
|
+
L.getLogger().debug("Rule: LABEL link: ", o[p - 3], o[p - 1], o[p]), this.$ = { edgeTypeStr: o[p], label: o[p - 1] };
|
|
150
150
|
break;
|
|
151
151
|
case 18:
|
|
152
|
-
const C = parseInt(o[
|
|
152
|
+
const C = parseInt(o[p]), Z = L.generateId();
|
|
153
153
|
this.$ = { id: Z, type: "space", label: "", width: C, children: [] };
|
|
154
154
|
break;
|
|
155
155
|
case 23:
|
|
156
|
-
L.getLogger().debug("Rule: (nodeStatement link node) ", o[
|
|
157
|
-
const V = L.edgeStrToEdgeData(o[
|
|
156
|
+
L.getLogger().debug("Rule: (nodeStatement link node) ", o[p - 2], o[p - 1], o[p], " typestr: ", o[p - 1].edgeTypeStr);
|
|
157
|
+
const V = L.edgeStrToEdgeData(o[p - 1].edgeTypeStr), at = L.edgeStrToEdgeStartData(o[p - 1].edgeTypeStr), gt = L.edgeStrToThickness(o[p - 1].edgeTypeStr), O = L.edgeStrToPattern(o[p - 1].edgeTypeStr);
|
|
158
158
|
this.$ = [
|
|
159
|
-
{ id: o[
|
|
160
|
-
{ id: o[
|
|
161
|
-
{ id: o[
|
|
159
|
+
{ id: o[p - 2].id, label: o[p - 2].label, type: o[p - 2].type, directions: o[p - 2].directions },
|
|
160
|
+
{ id: o[p - 2].id + "-" + o[p].id, start: o[p - 2].id, end: o[p].id, label: o[p - 1].label, type: "edge", thickness: gt, pattern: O, directions: o[p].directions, arrowTypeEnd: V, arrowTypeStart: at },
|
|
161
|
+
{ id: o[p].id, label: o[p].label, type: L.typeStr2Type(o[p].typeStr), directions: o[p].directions }
|
|
162
162
|
];
|
|
163
163
|
break;
|
|
164
164
|
case 24:
|
|
165
|
-
L.getLogger().debug("Rule: nodeStatement (abc88 node size) ", o[
|
|
165
|
+
L.getLogger().debug("Rule: nodeStatement (abc88 node size) ", o[p - 1], o[p]), this.$ = { id: o[p - 1].id, label: o[p - 1].label, type: L.typeStr2Type(o[p - 1].typeStr), directions: o[p - 1].directions, widthInColumns: parseInt(o[p], 10) };
|
|
166
166
|
break;
|
|
167
167
|
case 25:
|
|
168
|
-
L.getLogger().debug("Rule: nodeStatement (node) ", o[
|
|
168
|
+
L.getLogger().debug("Rule: nodeStatement (node) ", o[p]), this.$ = { id: o[p].id, label: o[p].label, type: L.typeStr2Type(o[p].typeStr), directions: o[p].directions, widthInColumns: 1 };
|
|
169
169
|
break;
|
|
170
170
|
case 26:
|
|
171
|
-
L.getLogger().debug("APA123", this ? this : "na"), L.getLogger().debug("COLUMNS: ", o[
|
|
171
|
+
L.getLogger().debug("APA123", this ? this : "na"), L.getLogger().debug("COLUMNS: ", o[p]), this.$ = { type: "column-setting", columns: o[p] === "auto" ? -1 : parseInt(o[p]) };
|
|
172
172
|
break;
|
|
173
173
|
case 27:
|
|
174
|
-
L.getLogger().debug("Rule: id-block statement : ", o[
|
|
174
|
+
L.getLogger().debug("Rule: id-block statement : ", o[p - 2], o[p - 1]), L.generateId(), this.$ = { ...o[p - 2], type: "composite", children: o[p - 1] };
|
|
175
175
|
break;
|
|
176
176
|
case 28:
|
|
177
|
-
L.getLogger().debug("Rule: blockStatement : ", o[
|
|
177
|
+
L.getLogger().debug("Rule: blockStatement : ", o[p - 2], o[p - 1], o[p]);
|
|
178
178
|
const j = L.generateId();
|
|
179
|
-
this.$ = { id: j, type: "composite", label: "", children: o[
|
|
179
|
+
this.$ = { id: j, type: "composite", label: "", children: o[p - 1] };
|
|
180
180
|
break;
|
|
181
181
|
case 29:
|
|
182
|
-
L.getLogger().debug("Rule: node (NODE_ID separator): ", o[
|
|
182
|
+
L.getLogger().debug("Rule: node (NODE_ID separator): ", o[p]), this.$ = { id: o[p] };
|
|
183
183
|
break;
|
|
184
184
|
case 30:
|
|
185
|
-
L.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", o[
|
|
185
|
+
L.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", o[p - 1], o[p]), this.$ = { id: o[p - 1], label: o[p].label, typeStr: o[p].typeStr, directions: o[p].directions };
|
|
186
186
|
break;
|
|
187
187
|
case 31:
|
|
188
|
-
L.getLogger().debug("Rule: dirList: ", o[
|
|
188
|
+
L.getLogger().debug("Rule: dirList: ", o[p]), this.$ = [o[p]];
|
|
189
189
|
break;
|
|
190
190
|
case 32:
|
|
191
|
-
L.getLogger().debug("Rule: dirList: ", o[
|
|
191
|
+
L.getLogger().debug("Rule: dirList: ", o[p - 1], o[p]), this.$ = [o[p - 1]].concat(o[p]);
|
|
192
192
|
break;
|
|
193
193
|
case 33:
|
|
194
|
-
L.getLogger().debug("Rule: nodeShapeNLabel: ", o[
|
|
194
|
+
L.getLogger().debug("Rule: nodeShapeNLabel: ", o[p - 2], o[p - 1], o[p]), this.$ = { typeStr: o[p - 2] + o[p], label: o[p - 1] };
|
|
195
195
|
break;
|
|
196
196
|
case 34:
|
|
197
|
-
L.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", o[
|
|
197
|
+
L.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", o[p - 3], o[p - 2], " #3:", o[p - 1], o[p]), this.$ = { typeStr: o[p - 3] + o[p], label: o[p - 2], directions: o[p - 1] };
|
|
198
198
|
break;
|
|
199
199
|
case 35:
|
|
200
200
|
case 36:
|
|
201
|
-
this.$ = { type: "classDef", id: o[
|
|
201
|
+
this.$ = { type: "classDef", id: o[p - 1].trim(), css: o[p].trim() };
|
|
202
202
|
break;
|
|
203
203
|
case 37:
|
|
204
|
-
this.$ = { type: "applyClass", id: o[
|
|
204
|
+
this.$ = { type: "applyClass", id: o[p - 1].trim(), styleClass: o[p].trim() };
|
|
205
205
|
break;
|
|
206
206
|
case 38:
|
|
207
|
-
this.$ = { type: "applyStyles", id: o[
|
|
207
|
+
this.$ = { type: "applyStyles", id: o[p - 1].trim(), stylesStr: o[p].trim() };
|
|
208
208
|
break;
|
|
209
209
|
}
|
|
210
210
|
}, "anonymous"),
|
|
211
211
|
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: s, 29: i, 31: c, 39: r, 43: n, 46: l }, { 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: s, 29: i, 31: c, 39: r, 43: n, 46: l }), e(h, [2, 16], { 14: 22, 15: d, 16: b }), e(h, [2, 17]), e(h, [2, 18]), e(h, [2, 19]), e(h, [2, 20]), e(h, [2, 21]), e(h, [2, 22]), e(w, [2, 25], { 27: [1, 25] }), e(h, [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: s, 29: i, 31: c, 39: r, 43: n, 46: l }, { 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(w, [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: s, 29: i, 31: c, 39: r, 43: n, 46: l }, { 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(w, [2, 23]), { 18: [1, 45] }, { 30: [1, 46] }, e(h, [2, 28]), e(h, [2, 35]), e(h, [2, 36]), e(h, [2, 37]), e(h, [2, 38]), { 36: [1, 47] }, { 33: 48, 34: v }, { 15: [1, 50] }, e(h, [2, 27]), e(y, [2, 33]), { 38: [1, 51] }, { 33: 52, 34: v, 38: [2, 31] }, { 31: [2, 15] }, e(y, [2, 34]), { 38: [2, 32] }],
|
|
212
212
|
defaultActions: { 20: [2, 7], 23: [2, 14], 50: [2, 15], 52: [2, 32] },
|
|
213
|
-
parseError: /* @__PURE__ */ g(function(m,
|
|
214
|
-
if (
|
|
213
|
+
parseError: /* @__PURE__ */ g(function(m, f) {
|
|
214
|
+
if (f.recoverable)
|
|
215
215
|
this.trace(m);
|
|
216
216
|
else {
|
|
217
217
|
var x = new Error(m);
|
|
218
|
-
throw x.hash =
|
|
218
|
+
throw x.hash = f, x;
|
|
219
219
|
}
|
|
220
220
|
}, "parseError"),
|
|
221
221
|
parse: /* @__PURE__ */ g(function(m) {
|
|
222
|
-
var
|
|
222
|
+
var f = this, x = [0], L = [], E = [null], o = [], F = this.table, p = "", C = 0, Z = 0, V = 2, at = 1, gt = o.slice.call(arguments, 1), O = Object.create(this.lexer), j = { yy: {} };
|
|
223
223
|
for (var ut in this.yy)
|
|
224
224
|
Object.prototype.hasOwnProperty.call(this.yy, ut) && (j.yy[ut] = this.yy[ut]);
|
|
225
225
|
O.setInput(m, j.yy), j.yy.lexer = O, j.yy.parser = this, typeof O.yylloc > "u" && (O.yylloc = {});
|
|
@@ -233,18 +233,18 @@ var bt = (function() {
|
|
|
233
233
|
g(ue, "popStack");
|
|
234
234
|
function Nt() {
|
|
235
235
|
var W;
|
|
236
|
-
return W = L.pop() || O.lex() || at, typeof W != "number" && (W instanceof Array && (L = W, W = L.pop()), W =
|
|
236
|
+
return W = L.pop() || O.lex() || at, typeof W != "number" && (W instanceof Array && (L = W, W = L.pop()), W = f.symbols_[W] || W), W;
|
|
237
237
|
}
|
|
238
238
|
g(Nt, "lex");
|
|
239
|
-
for (var P, q, H,
|
|
239
|
+
for (var P, q, H, ft, J = {}, st, G, It, it; ; ) {
|
|
240
240
|
if (q = x[x.length - 1], this.defaultActions[q] ? H = this.defaultActions[q] : ((P === null || typeof P > "u") && (P = Nt()), H = F[q] && F[q][P]), typeof H > "u" || !H.length || !H[0]) {
|
|
241
|
-
var
|
|
241
|
+
var pt = "";
|
|
242
242
|
it = [];
|
|
243
243
|
for (st in F[q])
|
|
244
244
|
this.terminals_[st] && st > V && it.push("'" + this.terminals_[st] + "'");
|
|
245
|
-
O.showPosition ?
|
|
245
|
+
O.showPosition ? pt = "Parse error on line " + (C + 1) + `:
|
|
246
246
|
` + O.showPosition() + `
|
|
247
|
-
Expecting ` + it.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" :
|
|
247
|
+
Expecting ` + it.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : pt = "Parse error on line " + (C + 1) + ": Unexpected " + (P == at ? "end of input" : "'" + (this.terminals_[P] || P) + "'"), this.parseError(pt, {
|
|
248
248
|
text: O.match,
|
|
249
249
|
token: this.terminals_[P] || P,
|
|
250
250
|
line: O.yylineno,
|
|
@@ -256,7 +256,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : ft =
|
|
|
256
256
|
throw new Error("Parse Error: multiple actions possible at state: " + q + ", token: " + P);
|
|
257
257
|
switch (H[0]) {
|
|
258
258
|
case 1:
|
|
259
|
-
x.push(P), E.push(O.yytext), o.push(O.yylloc), x.push(H[1]), P = null, Z = O.yyleng,
|
|
259
|
+
x.push(P), E.push(O.yytext), o.push(O.yylloc), x.push(H[1]), P = null, Z = O.yyleng, p = O.yytext, C = O.yylineno, dt = O.yylloc;
|
|
260
260
|
break;
|
|
261
261
|
case 2:
|
|
262
262
|
if (G = this.productions_[H[1]][1], J.$ = E[E.length - G], J._$ = {
|
|
@@ -267,16 +267,16 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : ft =
|
|
|
267
267
|
}, ge && (J._$.range = [
|
|
268
268
|
o[o.length - (G || 1)].range[0],
|
|
269
269
|
o[o.length - 1].range[1]
|
|
270
|
-
]),
|
|
271
|
-
|
|
270
|
+
]), ft = this.performAction.apply(J, [
|
|
271
|
+
p,
|
|
272
272
|
Z,
|
|
273
273
|
C,
|
|
274
274
|
j.yy,
|
|
275
275
|
H[1],
|
|
276
276
|
E,
|
|
277
277
|
o
|
|
278
|
-
].concat(gt)), typeof
|
|
279
|
-
return
|
|
278
|
+
].concat(gt)), typeof ft < "u")
|
|
279
|
+
return ft;
|
|
280
280
|
G && (x = x.slice(0, -1 * G * 2), E = E.slice(0, -1 * G), o = o.slice(0, -1 * G)), x.push(this.productions_[H[1]][0]), E.push(J.$), o.push(J._$), It = F[x[x.length - 2]][x[x.length - 1]], x.push(It);
|
|
281
281
|
break;
|
|
282
282
|
case 3:
|
|
@@ -288,15 +288,15 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : ft =
|
|
|
288
288
|
}, N = /* @__PURE__ */ (function() {
|
|
289
289
|
var T = {
|
|
290
290
|
EOF: 1,
|
|
291
|
-
parseError: /* @__PURE__ */ g(function(
|
|
291
|
+
parseError: /* @__PURE__ */ g(function(f, x) {
|
|
292
292
|
if (this.yy.parser)
|
|
293
|
-
this.yy.parser.parseError(
|
|
293
|
+
this.yy.parser.parseError(f, x);
|
|
294
294
|
else
|
|
295
|
-
throw new Error(
|
|
295
|
+
throw new Error(f);
|
|
296
296
|
}, "parseError"),
|
|
297
297
|
// resets the lexer, sets new input
|
|
298
|
-
setInput: /* @__PURE__ */ g(function(m,
|
|
299
|
-
return this.yy =
|
|
298
|
+
setInput: /* @__PURE__ */ g(function(m, f) {
|
|
299
|
+
return this.yy = f || this.yy || {}, this._input = m, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
300
300
|
first_line: 1,
|
|
301
301
|
first_column: 0,
|
|
302
302
|
last_line: 1,
|
|
@@ -307,13 +307,13 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : ft =
|
|
|
307
307
|
input: /* @__PURE__ */ g(function() {
|
|
308
308
|
var m = this._input[0];
|
|
309
309
|
this.yytext += m, this.yyleng++, this.offset++, this.match += m, this.matched += m;
|
|
310
|
-
var
|
|
311
|
-
return
|
|
310
|
+
var f = m.match(/(?:\r\n?|\n).*/g);
|
|
311
|
+
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), m;
|
|
312
312
|
}, "input"),
|
|
313
313
|
// unshifts one char (or a string) into the input
|
|
314
314
|
unput: /* @__PURE__ */ g(function(m) {
|
|
315
|
-
var
|
|
316
|
-
this._input = m + this._input, this.yytext = this.yytext.substr(0, this.yytext.length -
|
|
315
|
+
var f = m.length, x = m.split(/(?:\r\n?|\n)/g);
|
|
316
|
+
this._input = m + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - f), this.offset -= f;
|
|
317
317
|
var L = this.match.split(/(?:\r\n?|\n)/g);
|
|
318
318
|
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);
|
|
319
319
|
var E = this.yylloc.range;
|
|
@@ -321,8 +321,8 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : ft =
|
|
|
321
321
|
first_line: this.yylloc.first_line,
|
|
322
322
|
last_line: this.yylineno + 1,
|
|
323
323
|
first_column: this.yylloc.first_column,
|
|
324
|
-
last_column: x ? (x.length === L.length ? this.yylloc.first_column : 0) + L[L.length - x.length].length - x[0].length : this.yylloc.first_column -
|
|
325
|
-
}, this.options.ranges && (this.yylloc.range = [E[0], E[0] + this.yyleng -
|
|
324
|
+
last_column: x ? (x.length === L.length ? this.yylloc.first_column : 0) + L[L.length - x.length].length - x[0].length : this.yylloc.first_column - f
|
|
325
|
+
}, this.options.ranges && (this.yylloc.range = [E[0], E[0] + this.yyleng - f]), this.yyleng = this.yytext.length, this;
|
|
326
326
|
}, "unput"),
|
|
327
327
|
// When called from action, caches matched text and appends it on next action
|
|
328
328
|
more: /* @__PURE__ */ g(function() {
|
|
@@ -357,12 +357,12 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : ft =
|
|
|
357
357
|
}, "upcomingInput"),
|
|
358
358
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
359
359
|
showPosition: /* @__PURE__ */ g(function() {
|
|
360
|
-
var m = this.pastInput(),
|
|
360
|
+
var m = this.pastInput(), f = new Array(m.length + 1).join("-");
|
|
361
361
|
return m + this.upcomingInput() + `
|
|
362
|
-
` +
|
|
362
|
+
` + f + "^";
|
|
363
363
|
}, "showPosition"),
|
|
364
364
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
365
|
-
test_match: /* @__PURE__ */ g(function(m,
|
|
365
|
+
test_match: /* @__PURE__ */ g(function(m, f) {
|
|
366
366
|
var x, L, E;
|
|
367
367
|
if (this.options.backtrack_lexer && (E = {
|
|
368
368
|
yylineno: this.yylineno,
|
|
@@ -388,7 +388,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : ft =
|
|
|
388
388
|
last_line: this.yylineno + 1,
|
|
389
389
|
first_column: this.yylloc.last_column,
|
|
390
390
|
last_column: L ? L[L.length - 1].length - L[L.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + m[0].length
|
|
391
|
-
}, this.yytext += m[0], this.match += m[0], this.matches = m, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(m[0].length), this.matched += m[0], x = this.performAction.call(this, this.yy, this,
|
|
391
|
+
}, this.yytext += m[0], this.match += m[0], this.matches = m, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(m[0].length), this.matched += m[0], x = this.performAction.call(this, this.yy, this, f, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), x)
|
|
392
392
|
return x;
|
|
393
393
|
if (this._backtrack) {
|
|
394
394
|
for (var o in E)
|
|
@@ -402,22 +402,22 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : ft =
|
|
|
402
402
|
if (this.done)
|
|
403
403
|
return this.EOF;
|
|
404
404
|
this._input || (this.done = !0);
|
|
405
|
-
var m,
|
|
405
|
+
var m, f, x, L;
|
|
406
406
|
this._more || (this.yytext = "", this.match = "");
|
|
407
407
|
for (var E = this._currentRules(), o = 0; o < E.length; o++)
|
|
408
|
-
if (x = this._input.match(this.rules[E[o]]), x && (!
|
|
409
|
-
if (
|
|
408
|
+
if (x = this._input.match(this.rules[E[o]]), x && (!f || x[0].length > f[0].length)) {
|
|
409
|
+
if (f = x, L = o, this.options.backtrack_lexer) {
|
|
410
410
|
if (m = this.test_match(x, E[o]), m !== !1)
|
|
411
411
|
return m;
|
|
412
412
|
if (this._backtrack) {
|
|
413
|
-
|
|
413
|
+
f = !1;
|
|
414
414
|
continue;
|
|
415
415
|
} else
|
|
416
416
|
return !1;
|
|
417
417
|
} else if (!this.options.flex)
|
|
418
418
|
break;
|
|
419
419
|
}
|
|
420
|
-
return
|
|
420
|
+
return f ? (m = this.test_match(f, E[L]), m !== !1 ? m : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
421
421
|
` + this.showPosition(), {
|
|
422
422
|
text: "",
|
|
423
423
|
token: null,
|
|
@@ -426,55 +426,55 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : ft =
|
|
|
426
426
|
}, "next"),
|
|
427
427
|
// return next match that has a token
|
|
428
428
|
lex: /* @__PURE__ */ g(function() {
|
|
429
|
-
var
|
|
430
|
-
return
|
|
429
|
+
var f = this.next();
|
|
430
|
+
return f || this.lex();
|
|
431
431
|
}, "lex"),
|
|
432
432
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
433
|
-
begin: /* @__PURE__ */ g(function(
|
|
434
|
-
this.conditionStack.push(
|
|
433
|
+
begin: /* @__PURE__ */ g(function(f) {
|
|
434
|
+
this.conditionStack.push(f);
|
|
435
435
|
}, "begin"),
|
|
436
436
|
// pop the previously active lexer condition state off the condition stack
|
|
437
437
|
popState: /* @__PURE__ */ g(function() {
|
|
438
|
-
var
|
|
439
|
-
return
|
|
438
|
+
var f = this.conditionStack.length - 1;
|
|
439
|
+
return f > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
440
440
|
}, "popState"),
|
|
441
441
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
442
442
|
_currentRules: /* @__PURE__ */ g(function() {
|
|
443
443
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
444
444
|
}, "_currentRules"),
|
|
445
445
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
446
|
-
topState: /* @__PURE__ */ g(function(
|
|
447
|
-
return
|
|
446
|
+
topState: /* @__PURE__ */ g(function(f) {
|
|
447
|
+
return f = this.conditionStack.length - 1 - Math.abs(f || 0), f >= 0 ? this.conditionStack[f] : "INITIAL";
|
|
448
448
|
}, "topState"),
|
|
449
449
|
// alias for begin(condition)
|
|
450
|
-
pushState: /* @__PURE__ */ g(function(
|
|
451
|
-
this.begin(
|
|
450
|
+
pushState: /* @__PURE__ */ g(function(f) {
|
|
451
|
+
this.begin(f);
|
|
452
452
|
}, "pushState"),
|
|
453
453
|
// return the number of states currently on the stack
|
|
454
454
|
stateStackSize: /* @__PURE__ */ g(function() {
|
|
455
455
|
return this.conditionStack.length;
|
|
456
456
|
}, "stateStackSize"),
|
|
457
457
|
options: {},
|
|
458
|
-
performAction: /* @__PURE__ */ g(function(
|
|
458
|
+
performAction: /* @__PURE__ */ g(function(f, x, L, E) {
|
|
459
459
|
switch (L) {
|
|
460
460
|
case 0:
|
|
461
|
-
return
|
|
461
|
+
return f.getLogger().debug("Found block-beta"), 10;
|
|
462
462
|
case 1:
|
|
463
|
-
return
|
|
463
|
+
return f.getLogger().debug("Found id-block"), 29;
|
|
464
464
|
case 2:
|
|
465
|
-
return
|
|
465
|
+
return f.getLogger().debug("Found block"), 10;
|
|
466
466
|
case 3:
|
|
467
|
-
|
|
467
|
+
f.getLogger().debug(".", x.yytext);
|
|
468
468
|
break;
|
|
469
469
|
case 4:
|
|
470
|
-
|
|
470
|
+
f.getLogger().debug("_", x.yytext);
|
|
471
471
|
break;
|
|
472
472
|
case 5:
|
|
473
473
|
return 5;
|
|
474
474
|
case 6:
|
|
475
475
|
return x.yytext = -1, 28;
|
|
476
476
|
case 7:
|
|
477
|
-
return x.yytext = x.yytext.replace(/columns\s+/, ""),
|
|
477
|
+
return x.yytext = x.yytext.replace(/columns\s+/, ""), f.getLogger().debug("COLUMNS (LEX)", x.yytext), 28;
|
|
478
478
|
case 8:
|
|
479
479
|
this.pushState("md_string");
|
|
480
480
|
break;
|
|
@@ -487,14 +487,14 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : ft =
|
|
|
487
487
|
this.pushState("string");
|
|
488
488
|
break;
|
|
489
489
|
case 12:
|
|
490
|
-
|
|
490
|
+
f.getLogger().debug("LEX: POPPING STR:", x.yytext), this.popState();
|
|
491
491
|
break;
|
|
492
492
|
case 13:
|
|
493
|
-
return
|
|
493
|
+
return f.getLogger().debug("LEX: STR end:", x.yytext), "STR";
|
|
494
494
|
case 14:
|
|
495
|
-
return x.yytext = x.yytext.replace(/space\:/, ""),
|
|
495
|
+
return x.yytext = x.yytext.replace(/space\:/, ""), f.getLogger().debug("SPACE NUM (LEX)", x.yytext), 21;
|
|
496
496
|
case 15:
|
|
497
|
-
return x.yytext = "1",
|
|
497
|
+
return x.yytext = "1", f.getLogger().debug("COLUMNS (LEX)", x.yytext), 21;
|
|
498
498
|
case 16:
|
|
499
499
|
return 42;
|
|
500
500
|
case 17:
|
|
@@ -540,61 +540,61 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : ft =
|
|
|
540
540
|
case 36:
|
|
541
541
|
return 30;
|
|
542
542
|
case 37:
|
|
543
|
-
return this.popState(),
|
|
543
|
+
return this.popState(), f.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
544
544
|
case 38:
|
|
545
|
-
return this.popState(),
|
|
545
|
+
return this.popState(), f.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
546
546
|
case 39:
|
|
547
|
-
return this.popState(),
|
|
547
|
+
return this.popState(), f.getLogger().debug("Lex: ))"), "NODE_DEND";
|
|
548
548
|
case 40:
|
|
549
|
-
return this.popState(),
|
|
549
|
+
return this.popState(), f.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
550
550
|
case 41:
|
|
551
|
-
return this.popState(),
|
|
551
|
+
return this.popState(), f.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
552
552
|
case 42:
|
|
553
|
-
return this.popState(),
|
|
553
|
+
return this.popState(), f.getLogger().debug("Lex: (-"), "NODE_DEND";
|
|
554
554
|
case 43:
|
|
555
|
-
return this.popState(),
|
|
555
|
+
return this.popState(), f.getLogger().debug("Lex: -)"), "NODE_DEND";
|
|
556
556
|
case 44:
|
|
557
|
-
return this.popState(),
|
|
557
|
+
return this.popState(), f.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
558
558
|
case 45:
|
|
559
|
-
return this.popState(),
|
|
559
|
+
return this.popState(), f.getLogger().debug("Lex: ]]"), "NODE_DEND";
|
|
560
560
|
case 46:
|
|
561
|
-
return this.popState(),
|
|
561
|
+
return this.popState(), f.getLogger().debug("Lex: ("), "NODE_DEND";
|
|
562
562
|
case 47:
|
|
563
|
-
return this.popState(),
|
|
563
|
+
return this.popState(), f.getLogger().debug("Lex: ])"), "NODE_DEND";
|
|
564
564
|
case 48:
|
|
565
|
-
return this.popState(),
|
|
565
|
+
return this.popState(), f.getLogger().debug("Lex: /]"), "NODE_DEND";
|
|
566
566
|
case 49:
|
|
567
|
-
return this.popState(),
|
|
567
|
+
return this.popState(), f.getLogger().debug("Lex: /]"), "NODE_DEND";
|
|
568
568
|
case 50:
|
|
569
|
-
return this.popState(),
|
|
569
|
+
return this.popState(), f.getLogger().debug("Lex: )]"), "NODE_DEND";
|
|
570
570
|
case 51:
|
|
571
|
-
return this.popState(),
|
|
571
|
+
return this.popState(), f.getLogger().debug("Lex: )"), "NODE_DEND";
|
|
572
572
|
case 52:
|
|
573
|
-
return this.popState(),
|
|
573
|
+
return this.popState(), f.getLogger().debug("Lex: ]>"), "NODE_DEND";
|
|
574
574
|
case 53:
|
|
575
|
-
return this.popState(),
|
|
575
|
+
return this.popState(), f.getLogger().debug("Lex: ]"), "NODE_DEND";
|
|
576
576
|
case 54:
|
|
577
|
-
return
|
|
577
|
+
return f.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 35;
|
|
578
578
|
case 55:
|
|
579
|
-
return
|
|
579
|
+
return f.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 35;
|
|
580
580
|
case 56:
|
|
581
|
-
return
|
|
581
|
+
return f.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 35;
|
|
582
582
|
case 57:
|
|
583
|
-
return
|
|
583
|
+
return f.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
|
|
584
584
|
case 58:
|
|
585
|
-
return
|
|
585
|
+
return f.getLogger().debug("Lex: ((("), this.pushState("NODE"), 35;
|
|
586
586
|
case 59:
|
|
587
|
-
return
|
|
587
|
+
return f.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
|
|
588
588
|
case 60:
|
|
589
|
-
return
|
|
589
|
+
return f.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
|
|
590
590
|
case 61:
|
|
591
|
-
return
|
|
591
|
+
return f.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
|
|
592
592
|
case 62:
|
|
593
|
-
return
|
|
593
|
+
return f.getLogger().debug("Lexc: >"), this.pushState("NODE"), 35;
|
|
594
594
|
case 63:
|
|
595
|
-
return
|
|
595
|
+
return f.getLogger().debug("Lexa: (["), this.pushState("NODE"), 35;
|
|
596
596
|
case 64:
|
|
597
|
-
return
|
|
597
|
+
return f.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
|
|
598
598
|
case 65:
|
|
599
599
|
return this.pushState("NODE"), 35;
|
|
600
600
|
case 66:
|
|
@@ -610,13 +610,13 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : ft =
|
|
|
610
610
|
case 71:
|
|
611
611
|
return this.pushState("NODE"), 35;
|
|
612
612
|
case 72:
|
|
613
|
-
return
|
|
613
|
+
return f.getLogger().debug("Lexa: ["), this.pushState("NODE"), 35;
|
|
614
614
|
case 73:
|
|
615
|
-
return this.pushState("BLOCK_ARROW"),
|
|
615
|
+
return this.pushState("BLOCK_ARROW"), f.getLogger().debug("LEX ARR START"), 37;
|
|
616
616
|
case 74:
|
|
617
|
-
return
|
|
617
|
+
return f.getLogger().debug("Lex: NODE_ID", x.yytext), 31;
|
|
618
618
|
case 75:
|
|
619
|
-
return
|
|
619
|
+
return f.getLogger().debug("Lex: EOF", x.yytext), 8;
|
|
620
620
|
case 76:
|
|
621
621
|
this.pushState("md_string");
|
|
622
622
|
break;
|
|
@@ -629,60 +629,60 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : ft =
|
|
|
629
629
|
this.popState();
|
|
630
630
|
break;
|
|
631
631
|
case 80:
|
|
632
|
-
|
|
632
|
+
f.getLogger().debug("Lex: Starting string"), this.pushState("string");
|
|
633
633
|
break;
|
|
634
634
|
case 81:
|
|
635
|
-
|
|
635
|
+
f.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
|
|
636
636
|
break;
|
|
637
637
|
case 82:
|
|
638
|
-
return
|
|
638
|
+
return f.getLogger().debug("LEX: NODE_DESCR:", x.yytext), "NODE_DESCR";
|
|
639
639
|
case 83:
|
|
640
|
-
|
|
640
|
+
f.getLogger().debug("LEX POPPING"), this.popState();
|
|
641
641
|
break;
|
|
642
642
|
case 84:
|
|
643
|
-
|
|
643
|
+
f.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
|
|
644
644
|
break;
|
|
645
645
|
case 85:
|
|
646
|
-
return x.yytext = x.yytext.replace(/^,\s*/, ""),
|
|
646
|
+
return x.yytext = x.yytext.replace(/^,\s*/, ""), f.getLogger().debug("Lex (right): dir:", x.yytext), "DIR";
|
|
647
647
|
case 86:
|
|
648
|
-
return x.yytext = x.yytext.replace(/^,\s*/, ""),
|
|
648
|
+
return x.yytext = x.yytext.replace(/^,\s*/, ""), f.getLogger().debug("Lex (left):", x.yytext), "DIR";
|
|
649
649
|
case 87:
|
|
650
|
-
return x.yytext = x.yytext.replace(/^,\s*/, ""),
|
|
650
|
+
return x.yytext = x.yytext.replace(/^,\s*/, ""), f.getLogger().debug("Lex (x):", x.yytext), "DIR";
|
|
651
651
|
case 88:
|
|
652
|
-
return x.yytext = x.yytext.replace(/^,\s*/, ""),
|
|
652
|
+
return x.yytext = x.yytext.replace(/^,\s*/, ""), f.getLogger().debug("Lex (y):", x.yytext), "DIR";
|
|
653
653
|
case 89:
|
|
654
|
-
return x.yytext = x.yytext.replace(/^,\s*/, ""),
|
|
654
|
+
return x.yytext = x.yytext.replace(/^,\s*/, ""), f.getLogger().debug("Lex (up):", x.yytext), "DIR";
|
|
655
655
|
case 90:
|
|
656
|
-
return x.yytext = x.yytext.replace(/^,\s*/, ""),
|
|
656
|
+
return x.yytext = x.yytext.replace(/^,\s*/, ""), f.getLogger().debug("Lex (down):", x.yytext), "DIR";
|
|
657
657
|
case 91:
|
|
658
|
-
return x.yytext = "]>",
|
|
658
|
+
return x.yytext = "]>", f.getLogger().debug("Lex (ARROW_DIR end):", x.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
|
|
659
659
|
case 92:
|
|
660
|
-
return
|
|
660
|
+
return f.getLogger().debug("Lex: LINK", "#" + x.yytext + "#"), 15;
|
|
661
661
|
case 93:
|
|
662
|
-
return
|
|
662
|
+
return f.getLogger().debug("Lex: LINK", x.yytext), 15;
|
|
663
663
|
case 94:
|
|
664
|
-
return
|
|
664
|
+
return f.getLogger().debug("Lex: LINK", x.yytext), 15;
|
|
665
665
|
case 95:
|
|
666
|
-
return
|
|
666
|
+
return f.getLogger().debug("Lex: LINK", x.yytext), 15;
|
|
667
667
|
case 96:
|
|
668
|
-
return
|
|
668
|
+
return f.getLogger().debug("Lex: START_LINK", x.yytext), this.pushState("LLABEL"), 16;
|
|
669
669
|
case 97:
|
|
670
|
-
return
|
|
670
|
+
return f.getLogger().debug("Lex: START_LINK", x.yytext), this.pushState("LLABEL"), 16;
|
|
671
671
|
case 98:
|
|
672
|
-
return
|
|
672
|
+
return f.getLogger().debug("Lex: START_LINK", x.yytext), this.pushState("LLABEL"), 16;
|
|
673
673
|
case 99:
|
|
674
674
|
this.pushState("md_string");
|
|
675
675
|
break;
|
|
676
676
|
case 100:
|
|
677
|
-
return
|
|
677
|
+
return f.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL";
|
|
678
678
|
case 101:
|
|
679
|
-
return this.popState(),
|
|
679
|
+
return this.popState(), f.getLogger().debug("Lex: LINK", "#" + x.yytext + "#"), 15;
|
|
680
680
|
case 102:
|
|
681
|
-
return this.popState(),
|
|
681
|
+
return this.popState(), f.getLogger().debug("Lex: LINK", x.yytext), 15;
|
|
682
682
|
case 103:
|
|
683
|
-
return this.popState(),
|
|
683
|
+
return this.popState(), f.getLogger().debug("Lex: LINK", x.yytext), 15;
|
|
684
684
|
case 104:
|
|
685
|
-
return
|
|
685
|
+
return f.getLogger().debug("Lex: COLON", x.yytext), x.yytext = x.yytext.slice(1), 27;
|
|
686
686
|
}
|
|
687
687
|
}, "anonymous"),
|
|
688
688
|
rules: [/^(?:block-beta\b)/, /^(?:block:)/, /^(?:block\b)/, /^(?:[\s]+)/, /^(?:[\n]+)/, /^(?:((\u000D\u000A)|(\u000A)))/, /^(?:columns\s+auto\b)/, /^(?:columns\s+[\d]+)/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:space[:]\d+)/, /^(?:space\b)/, /^(?:default\b)/, /^(?:linkStyle\b)/, /^(?:interpolate\b)/, /^(?:classDef\s+)/, /^(?:DEFAULT\s+)/, /^(?:\w+\s+)/, /^(?:[^\n]*)/, /^(?:class\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:style\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:end\b\s*)/, /^(?:\(\(\()/, /^(?:\)\)\))/, /^(?:[\)]\))/, /^(?:\}\})/, /^(?:\})/, /^(?:\(-)/, /^(?:-\))/, /^(?:\(\()/, /^(?:\]\])/, /^(?:\()/, /^(?:\]\))/, /^(?:\\\])/, /^(?:\/\])/, /^(?:\)\])/, /^(?:[\)])/, /^(?:\]>)/, /^(?:[\]])/, /^(?:-\))/, /^(?:\(-)/, /^(?:\)\))/, /^(?:\))/, /^(?:\(\(\()/, /^(?:\(\()/, /^(?:\{\{)/, /^(?:\{)/, /^(?:>)/, /^(?:\(\[)/, /^(?:\()/, /^(?:\[\[)/, /^(?:\[\|)/, /^(?:\[\()/, /^(?:\)\)\))/, /^(?:\[\\)/, /^(?:\[\/)/, /^(?:\[\\)/, /^(?:\[)/, /^(?:<\[)/, /^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/, /^(?:$)/, /^(?:["][`])/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:\]>\s*\()/, /^(?:,?\s*right\s*)/, /^(?:,?\s*left\s*)/, /^(?:,?\s*x\s*)/, /^(?:,?\s*y\s*)/, /^(?:,?\s*up\s*)/, /^(?:,?\s*down\s*)/, /^(?:\)\s*)/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?:\s*~~[\~]+\s*)/, /^(?:\s*[xo<]?--\s*)/, /^(?:\s*[xo<]?==\s*)/, /^(?:\s*[xo<]?-\.\s*)/, /^(?:["][`])/, /^(?:["])/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?::\d+)/],
|
|
@@ -837,7 +837,7 @@ var zt = 0, hr = /* @__PURE__ */ g(() => (zt++, "id-" + Math.random().toString(3
|
|
|
837
837
|
}, "setHierarchy"), ur = /* @__PURE__ */ g((e) => {
|
|
838
838
|
const t = U.get(e);
|
|
839
839
|
return t ? t.columns ? t.columns : t.children ? t.children.length : -1 : -1;
|
|
840
|
-
}, "getColumns"), dr = /* @__PURE__ */ g(() => [...U.values()], "getBlocksFlat"),
|
|
840
|
+
}, "getColumns"), dr = /* @__PURE__ */ g(() => [...U.values()], "getBlocksFlat"), fr = /* @__PURE__ */ g(() => _t || [], "getBlocks"), pr = /* @__PURE__ */ g(() => vt, "getEdges"), xr = /* @__PURE__ */ g((e) => U.get(e), "getBlock"), yr = /* @__PURE__ */ g((e) => {
|
|
841
841
|
U.set(e.id, e);
|
|
842
842
|
}, "setBlock"), br = /* @__PURE__ */ g((e) => {
|
|
843
843
|
Et = e;
|
|
@@ -853,8 +853,8 @@ var zt = 0, hr = /* @__PURE__ */ g(() => (zt++, "id-" + Math.random().toString(3
|
|
|
853
853
|
edgeStrToPattern: Jt,
|
|
854
854
|
getLogger: mr,
|
|
855
855
|
getBlocksFlat: dr,
|
|
856
|
-
getBlocks:
|
|
857
|
-
getEdges:
|
|
856
|
+
getBlocks: fr,
|
|
857
|
+
getEdges: pr,
|
|
858
858
|
setHierarchy: gr,
|
|
859
859
|
getBlock: xr,
|
|
860
860
|
setBlock: yr,
|
|
@@ -1661,8 +1661,8 @@ function se(e, t, a) {
|
|
|
1661
1661
|
w && c.push(w);
|
|
1662
1662
|
}
|
|
1663
1663
|
return c.length ? (c.length > 1 && c.sort(function(y, v) {
|
|
1664
|
-
var S = y.x - a.x, N = y.y - a.y, _ = Math.sqrt(S * S + N * N), T = v.x - a.x, m = v.y - a.y,
|
|
1665
|
-
return _ <
|
|
1664
|
+
var S = y.x - a.x, N = y.y - a.y, _ = Math.sqrt(S * S + N * N), T = v.x - a.x, m = v.y - a.y, f = Math.sqrt(T * T + m * m);
|
|
1665
|
+
return _ < f ? -1 : _ === f ? 0 : 1;
|
|
1666
1666
|
}), c[0]) : e;
|
|
1667
1667
|
}
|
|
1668
1668
|
g(se, "intersectPolygon");
|
|
@@ -1907,7 +1907,7 @@ var ea = /* @__PURE__ */ g(async (e, t) => {
|
|
|
1907
1907
|
return I(t, c), t.intersect = function(h) {
|
|
1908
1908
|
return B.rect(t, h);
|
|
1909
1909
|
}, a;
|
|
1910
|
-
}, "rect"),
|
|
1910
|
+
}, "rect"), fa = /* @__PURE__ */ g(async (e, t) => {
|
|
1911
1911
|
const { shapeSvg: a, bbox: s, halfPadding: i } = await A(
|
|
1912
1912
|
e,
|
|
1913
1913
|
t,
|
|
@@ -1923,7 +1923,7 @@ var ea = /* @__PURE__ */ g(async (e, t) => {
|
|
|
1923
1923
|
return I(t, c), t.intersect = function(h) {
|
|
1924
1924
|
return B.rect(t, h);
|
|
1925
1925
|
}, a;
|
|
1926
|
-
}, "composite"),
|
|
1926
|
+
}, "composite"), pa = /* @__PURE__ */ g(async (e, t) => {
|
|
1927
1927
|
const { shapeSvg: a } = await A(e, t, "label", !0);
|
|
1928
1928
|
k.trace("Classes = ", t.class);
|
|
1929
1929
|
const s = a.insert("rect", ":first-child"), i = 0, c = 0;
|
|
@@ -2093,43 +2093,43 @@ var xa = /* @__PURE__ */ g(async (e, t) => {
|
|
|
2093
2093
|
m = E.getBoundingClientRect(), o.attr("width", m.width), o.attr("height", m.height);
|
|
2094
2094
|
}
|
|
2095
2095
|
d += m.height + s, m.width > h && (h = m.width);
|
|
2096
|
-
const
|
|
2096
|
+
const f = [];
|
|
2097
2097
|
t.classData.members.forEach(async (E) => {
|
|
2098
2098
|
const o = E.getDisplayDetails();
|
|
2099
2099
|
let F = o.displayText;
|
|
2100
2100
|
M(R()) && (F = F.replace(/</g, "<").replace(/>/g, ">"));
|
|
2101
|
-
const
|
|
2101
|
+
const p = await K(
|
|
2102
2102
|
b,
|
|
2103
2103
|
F,
|
|
2104
2104
|
o.cssStyle ? o.cssStyle : t.labelStyle,
|
|
2105
2105
|
!0,
|
|
2106
2106
|
!0
|
|
2107
2107
|
);
|
|
2108
|
-
let C =
|
|
2108
|
+
let C = p.getBBox();
|
|
2109
2109
|
if (M(R())) {
|
|
2110
|
-
const Z =
|
|
2110
|
+
const Z = p.children[0], V = D(p);
|
|
2111
2111
|
C = Z.getBoundingClientRect(), V.attr("width", C.width), V.attr("height", C.height);
|
|
2112
2112
|
}
|
|
2113
|
-
C.width > h && (h = C.width), d += C.height + s,
|
|
2113
|
+
C.width > h && (h = C.width), d += C.height + s, f.push(p);
|
|
2114
2114
|
}), d += i;
|
|
2115
2115
|
const x = [];
|
|
2116
2116
|
if (t.classData.methods.forEach(async (E) => {
|
|
2117
2117
|
const o = E.getDisplayDetails();
|
|
2118
2118
|
let F = o.displayText;
|
|
2119
2119
|
M(R()) && (F = F.replace(/</g, "<").replace(/>/g, ">"));
|
|
2120
|
-
const
|
|
2120
|
+
const p = await K(
|
|
2121
2121
|
b,
|
|
2122
2122
|
F,
|
|
2123
2123
|
o.cssStyle ? o.cssStyle : t.labelStyle,
|
|
2124
2124
|
!0,
|
|
2125
2125
|
!0
|
|
2126
2126
|
);
|
|
2127
|
-
let C =
|
|
2127
|
+
let C = p.getBBox();
|
|
2128
2128
|
if (M(R())) {
|
|
2129
|
-
const Z =
|
|
2129
|
+
const Z = p.children[0], V = D(p);
|
|
2130
2130
|
C = Z.getBoundingClientRect(), V.attr("width", C.width), V.attr("height", C.height);
|
|
2131
2131
|
}
|
|
2132
|
-
C.width > h && (h = C.width), d += C.height + s, x.push(
|
|
2132
|
+
C.width > h && (h = C.width), d += C.height + s, x.push(p);
|
|
2133
2133
|
}), d += i, y) {
|
|
2134
2134
|
let E = (h - N.width) / 2;
|
|
2135
2135
|
D(S).attr(
|
|
@@ -2141,7 +2141,7 @@ var xa = /* @__PURE__ */ g(async (e, t) => {
|
|
|
2141
2141
|
return D(T).attr(
|
|
2142
2142
|
"transform",
|
|
2143
2143
|
"translate( " + (-1 * h / 2 + L) + ", " + (-1 * d / 2 + w) + ")"
|
|
2144
|
-
), w += m.height + s, l.attr("class", "divider").attr("x1", -h / 2 - a).attr("x2", h / 2 + a).attr("y1", -d / 2 - a + i + w).attr("y2", -d / 2 - a + i + w), w += i,
|
|
2144
|
+
), w += m.height + s, l.attr("class", "divider").attr("x1", -h / 2 - a).attr("x2", h / 2 + a).attr("y1", -d / 2 - a + i + w).attr("y2", -d / 2 - a + i + w), w += i, f.forEach((E) => {
|
|
2145
2145
|
D(E).attr(
|
|
2146
2146
|
"transform",
|
|
2147
2147
|
"translate( " + -h / 2 + ", " + (-1 * d / 2 + w + i / 2) + ")"
|
|
@@ -2160,10 +2160,10 @@ var xa = /* @__PURE__ */ g(async (e, t) => {
|
|
|
2160
2160
|
}, r;
|
|
2161
2161
|
}, "class_box"), Ht = {
|
|
2162
2162
|
rhombus: Wt,
|
|
2163
|
-
composite:
|
|
2163
|
+
composite: fa,
|
|
2164
2164
|
question: Wt,
|
|
2165
2165
|
rect: da,
|
|
2166
|
-
labelRect:
|
|
2166
|
+
labelRect: pa,
|
|
2167
2167
|
rectWithTitle: xa,
|
|
2168
2168
|
choice: aa,
|
|
2169
2169
|
circle: ba,
|