@aiquants/markdown 12.3.0 → 13.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 +276 -65
- package/dist/{abnfDiagram-VRR7QNED-B_QmXzWv.js → abnfDiagram-VRR7QNED-B3Q9attM.js} +9 -9
- package/dist/abnfDiagram-VRR7QNED-QW4YM2AY.cjs +1 -0
- package/dist/arc-BBLXr5EU.js +83 -0
- package/dist/arc-Cn8XXgbN.cjs +1 -0
- package/dist/{architectureDiagram-ZJ3FMSHR-CEb923Bc.js → architectureDiagram-ZJ3FMSHR-BaSp0hC2.js} +123 -123
- package/dist/architectureDiagram-ZJ3FMSHR-BfmjNYww.cjs +36 -0
- package/dist/{blockDiagram-677ZJIJ3-CmKMdhaS.js → blockDiagram-677ZJIJ3-DFcPQ19k.js} +166 -166
- package/dist/{blockDiagram-677ZJIJ3-D7RRzjUx.cjs → blockDiagram-677ZJIJ3-u7d3VCxA.cjs} +1 -1
- package/dist/{c4Diagram-LMCZKHZV-CG6fvZQo.js → c4Diagram-LMCZKHZV-DW0yo5tR.js} +2 -2
- package/dist/{c4Diagram-LMCZKHZV-W7Qa-ecL.cjs → c4Diagram-LMCZKHZV-nScsMUE3.cjs} +1 -1
- package/dist/{channel-TsF8sms_.js → channel-B2FBCr9X.js} +1 -1
- package/dist/channel-DlkTPSf_.cjs +1 -0
- package/dist/{chunk-2Q5K7J3B-CopwR1m3.js → chunk-2Q5K7J3B-BkE4Fsuz.js} +1 -1
- package/dist/chunk-2Q5K7J3B-evSha-HP.cjs +1 -0
- package/dist/{chunk-32BRIVSS-BnNlhc1M.js → chunk-32BRIVSS-CqpDiZD2.js} +1 -1
- package/dist/chunk-32BRIVSS-rIw6tBRO.cjs +1 -0
- package/dist/{chunk-5VM5RSS4-lKwSmIqG.cjs → chunk-5VM5RSS4-CYVpj2mc.cjs} +1 -1
- package/dist/{chunk-5VM5RSS4-O28FGAOF.js → chunk-5VM5RSS4-DAgNhPcU.js} +1 -1
- package/dist/{chunk-EX3LRPZG-CtFe4olX.cjs → chunk-EX3LRPZG-Ct2cyGh-.cjs} +1 -1
- package/dist/{chunk-EX3LRPZG-C36gZH3_.js → chunk-EX3LRPZG-QFjD28UF.js} +21 -21
- package/dist/{chunk-JWPE2WC7-DG0ebjV4.js → chunk-JWPE2WC7-Bj2m1SXZ.js} +1 -1
- package/dist/chunk-JWPE2WC7-Dgw1ILoe.cjs +1 -0
- package/dist/{chunk-MOJQB5TN-nqR_swpx.js → chunk-MOJQB5TN-B1fdnpCz.js} +122 -122
- package/dist/{chunk-MOJQB5TN-DADVbG98.cjs → chunk-MOJQB5TN-yjlPYCh4.cjs} +3 -3
- package/dist/{chunk-PUDLZKDR-BUSFO-Gx.cjs → chunk-PUDLZKDR-BlQ3qKcC.cjs} +4 -4
- package/dist/{chunk-PUDLZKDR-CD96jce3.js → chunk-PUDLZKDR-CIcw3cpm.js} +21 -21
- package/dist/chunk-RYQCIY6F-B-V6UOJy.cjs +1 -0
- package/dist/{chunk-RYQCIY6F-DJkrr1sD.js → chunk-RYQCIY6F-DyVk8fNp.js} +5 -5
- package/dist/{chunk-V7JOEXUC-BzCaDGop.cjs → chunk-V7JOEXUC-B1EgagKh.cjs} +3 -3
- package/dist/{chunk-V7JOEXUC-eBy2sAXD.js → chunk-V7JOEXUC-C776k7_V.js} +15 -15
- package/dist/{chunk-VR4S4FIN-C-qPzUSR.js → chunk-VR4S4FIN-CyqARa17.js} +5 -5
- package/dist/chunk-VR4S4FIN-Sx71KwIQ.cjs +1 -0
- package/dist/{chunk-XXDRQBXY-BK6HOWf6.js → chunk-XXDRQBXY-B-99Fbs_.js} +3 -3
- package/dist/chunk-XXDRQBXY-BgeRIUG1.cjs +1 -0
- package/dist/classDiagram-OUVF2IWQ-BLAiuPPL.cjs +1 -0
- package/dist/{classDiagram-v2-EOCWNBFH-CPDmG5kI.js → classDiagram-OUVF2IWQ-DJ0hW16Q.js} +2 -2
- package/dist/classDiagram-v2-EOCWNBFH-BLAiuPPL.cjs +1 -0
- package/dist/{classDiagram-OUVF2IWQ-CPDmG5kI.js → classDiagram-v2-EOCWNBFH-DJ0hW16Q.js} +2 -2
- package/dist/{code-blocks-BWr5Xg1I.js → code-blocks-C6J8rVTc.js} +23 -22
- package/dist/{code-blocks-BdKjppKq.cjs → code-blocks-CTESwslp.cjs} +3 -3
- package/dist/code-blocks.cjs +1 -1
- package/dist/code-blocks.d.ts +1 -0
- package/dist/code-blocks.js +15 -14
- package/dist/components/CopyButton.d.ts +1 -2
- package/dist/components/MarkdownRenderer.d.ts +31 -2
- package/dist/components/MarkdownViewer.d.ts +11 -2
- package/dist/components/MermaidDiagram.d.ts +1 -0
- package/dist/components/ReadingPlaceKeeper.d.ts +32 -0
- package/dist/components/SelectionKeeper.d.ts +38 -0
- package/dist/components/SpreadsheetBlock.d.ts +2 -1
- package/dist/components/blockKeys.d.ts +9 -2
- package/dist/components/blockOffsets.d.ts +3 -0
- package/dist/components/clipboard.d.ts +1 -0
- package/dist/components/embeds/ClientFrame.d.ts +1 -0
- package/dist/components/embeds/ProviderEmbed.d.ts +2 -1
- package/dist/components/embeds/embedLabels.d.ts +1 -1
- package/dist/components/embeds/linkCardFetch.d.ts +2 -0
- package/dist/components/embeds.d.ts +5 -0
- package/dist/components/headingLevels.d.ts +6 -0
- package/dist/components/htmlNodes.d.ts +2 -0
- package/dist/components/htmlSanitizer.d.ts +15 -2
- package/dist/components/labels.d.ts +3 -2
- package/dist/components/links.d.ts +1 -0
- package/dist/components/mdastNodes/CodeNode.d.ts +3 -1
- package/dist/components/mermaidLabels.d.ts +5 -0
- package/dist/components/mermaidSetup.d.ts +10 -0
- package/dist/components/missingImageLabels.d.ts +2 -0
- package/dist/components/ownPixels.d.ts +1 -0
- package/dist/components/rawHtml.d.ts +7 -3
- package/dist/components/spreadsheetModel.d.ts +1 -0
- package/dist/components/viewerLabels.d.ts +11 -2
- package/dist/contentColors.d.ts +21 -0
- package/dist/conversion.d.ts +7 -0
- package/dist/converter/NOTICES.md +6 -6
- package/dist/converter/createMarkdownConverter.d.ts +1 -0
- package/dist/converter/protocol.d.ts +4 -0
- package/dist/converter.cjs +1 -1
- package/dist/converter.js +89 -71
- package/dist/converter.wasm +0 -0
- package/dist/{cose-bilkent-JH36ORCC-BxO1rjEU.js → cose-bilkent-JH36ORCC-CR6Hdvto.js} +24 -24
- package/dist/cose-bilkent-JH36ORCC-reAbGeDU.cjs +1 -0
- package/dist/cynefinDiagram-TSTJHNR4-2qz-sUtp.cjs +62 -0
- package/dist/{cynefinDiagram-TSTJHNR4-DBD-B_Un.js → cynefinDiagram-TSTJHNR4-D1eY-FSf.js} +65 -65
- package/dist/dagre-VKFMJZFB-Byr9WPjb.cjs +4 -0
- package/dist/{dagre-VKFMJZFB-B8vZCPJg.js → dagre-VKFMJZFB-CXSczF8v.js} +26 -26
- package/dist/{diagram-FQU43EPY-DwhEcKWF.cjs → diagram-FQU43EPY-2YWng437.cjs} +1 -1
- package/dist/{diagram-FQU43EPY-YrRTNuX-.js → diagram-FQU43EPY-BZo0xcaj.js} +54 -54
- package/dist/diagram-G47NLZAW-CQS7BN4F.cjs +24 -0
- package/dist/{diagram-G47NLZAW-D4vmirJw.js → diagram-G47NLZAW-CvJW9ny8.js} +65 -65
- package/dist/{diagram-NH7WQ7WH-Drekwiur.js → diagram-NH7WQ7WH-C6VIkj-R.js} +18 -18
- package/dist/diagram-NH7WQ7WH-DXUwOBe7.cjs +24 -0
- package/dist/{diagram-OA4YK3LP-DZsM4Fpo.js → diagram-OA4YK3LP-Co6nMbJc.js} +29 -29
- package/dist/{diagram-OA4YK3LP-DeJ7pMIO.cjs → diagram-OA4YK3LP-DBUm2qxb.cjs} +3 -3
- package/dist/{diagram-WEI45ONY-CjRbsbkF.js → diagram-WEI45ONY-BaMbc5o2.js} +76 -76
- package/dist/diagram-WEI45ONY-ChpK2gP3.cjs +41 -0
- package/dist/ebnfDiagram-CCIWWBDH-DMIRHp8N.cjs +1 -0
- package/dist/{ebnfDiagram-CCIWWBDH-D0kt5Zdu.js → ebnfDiagram-CCIWWBDH-i7CR-FU0.js} +3 -3
- package/dist/embeds/frames.d.ts +4 -0
- package/dist/embeds/linkCards.d.ts +3 -1
- package/dist/embeds/providers.d.ts +1 -0
- package/dist/embeds/testing.cjs +1 -1
- package/dist/embeds/testing.js +1 -1
- package/dist/embeds-B4g6w7Tf.cjs +1 -0
- package/dist/embeds-Dra-dGKD.js +64 -0
- package/dist/embeds.cjs +1 -1
- package/dist/embeds.d.ts +2 -2
- package/dist/embeds.js +31 -70
- package/dist/{erDiagram-Q63AITRT-Ce4GpK2Z.js → erDiagram-Q63AITRT-DC-HhdaO.js} +69 -69
- package/dist/{erDiagram-Q63AITRT-DqFANbZx.cjs → erDiagram-Q63AITRT-DjRvJyWK.cjs} +1 -1
- package/dist/errors-BWZJx2MD.cjs +1 -0
- package/dist/errors-CapTNE7l.js +62 -0
- package/dist/errors.d.ts +2 -2
- package/dist/extractHeadings-BAhmauKo.js +5296 -0
- package/dist/extractHeadings-qiJXegCx.cjs +11 -0
- package/dist/flowDiagram-23GEKE2U-CiNzp6BS.js +7 -0
- package/dist/flowDiagram-23GEKE2U-DzZNPkRJ.cjs +1 -0
- package/dist/{ganttDiagram-NO4QXBWP-DjpANtqX.js → ganttDiagram-NO4QXBWP-BwbtaPxc.js} +69 -69
- package/dist/ganttDiagram-NO4QXBWP-CJv5UQ4O.cjs +292 -0
- package/dist/gen/markdown/v1/linkcard_connect.d.ts +19 -0
- package/dist/gen/markdown/v1/linkcard_pb.d.ts +87 -0
- package/dist/gen/markdown/v1/markdown_pb.d.ts +4 -0
- package/dist/{gitGraphDiagram-IHSO6WYX-DzhnsGXo.js → gitGraphDiagram-IHSO6WYX--yebcp4V.js} +26 -26
- package/dist/gitGraphDiagram-IHSO6WYX-dSwtW7X6.cjs +106 -0
- package/dist/index.cjs +1 -1
- package/dist/index.client.cjs +1 -1
- package/dist/index.client.d.ts +2 -2
- package/dist/index.client.js +42 -36
- package/dist/index.js +42 -36
- package/dist/index.server.cjs +1 -1
- package/dist/index.server.d.ts +2 -1
- package/dist/index.server.js +126 -873
- package/dist/{infoDiagram-FWYZ7A6U-hraoyboI.js → infoDiagram-FWYZ7A6U-B4AiTiqD.js} +9 -9
- package/dist/infoDiagram-FWYZ7A6U-BOj0VF20.cjs +2 -0
- package/dist/{ishikawaDiagram-FXEZZL3T-cBJei3wJ.js → ishikawaDiagram-FXEZZL3T-BsYs_qnQ.js} +55 -55
- package/dist/{ishikawaDiagram-FXEZZL3T-D5b25aDN.cjs → ishikawaDiagram-FXEZZL3T-CisV4kPO.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-DrNyUSsx.cjs → journeyDiagram-5HDEW3XC-BAvgWwpr.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-IkQqMl8f.js → journeyDiagram-5HDEW3XC-DbDo-dqu.js} +29 -29
- package/dist/{kanban-definition-HUTT4EX6-D2UL88Cz.js → kanban-definition-HUTT4EX6-BlPZISwH.js} +111 -111
- package/dist/{kanban-definition-HUTT4EX6-CvBgN3eX.cjs → kanban-definition-HUTT4EX6-RjzOWas9.cjs} +2 -2
- package/dist/{linear-BiJV9gYf.js → linear-BXWX8YXI.js} +33 -33
- package/dist/linear-CKPQExK8.cjs +1 -0
- package/dist/linkCardServer/linkCardCore.d.ts +10 -0
- package/dist/linkCardServer/linkCardHandler.server.d.ts +1 -6
- package/dist/linkCardServer/pageFetchPort.d.ts +19 -0
- package/dist/linkCardServer/{pageMetadata.server.d.ts → pageMetadata.d.ts} +11 -3
- package/dist/linkCards-BikpIncf.cjs +1 -0
- package/dist/linkCards-DfSLqLPF.js +50 -0
- package/dist/linkCards.cjs +1 -0
- package/dist/linkCards.d.ts +2 -0
- package/dist/linkCards.js +5 -0
- package/dist/markdownServiceClient-C47z3Ynu.cjs +1 -0
- package/dist/markdownServiceClient-uDeklhtG.js +480 -0
- package/dist/markdownServiceClient.d.ts +20 -0
- package/dist/mermaid.core-C4EClWgB.js +15595 -0
- package/dist/mermaid.core-CRP55Hm1.cjs +305 -0
- package/dist/mermaidFrame/NOTICES.md +1345 -0
- package/dist/mermaidFrame/cssCleaner.d.ts +13 -0
- package/dist/mermaidFrame/drawer.d.ts +34 -0
- package/dist/mermaidFrame/frame.d.ts +1 -0
- package/dist/mermaidFrame/frame.js +3307 -0
- package/dist/mermaidFrame/katexInert.d.ts +4 -0
- package/dist/mermaidFrame/protocol.d.ts +38 -0
- package/dist/mermaidFrame/serve.d.ts +14 -0
- package/dist/mermaidFrame/svgCleaner.d.ts +4 -0
- package/dist/{mindmap-definition-LN4V7U3C-CK67hf6V.js → mindmap-definition-LN4V7U3C-BEWpoMMG.js} +75 -75
- package/dist/{mindmap-definition-LN4V7U3C-CBrUse7P.cjs → mindmap-definition-LN4V7U3C-DnbSfqWP.cjs} +3 -3
- package/dist/pageFetchPort-2H18xcdi.cjs +1 -0
- package/dist/pageFetchPort-DVpXsKCz.js +624 -0
- package/dist/{pegDiagram-2B236MQR-CwWX4Irn.js → pegDiagram-2B236MQR-BF7gLiB-.js} +3 -3
- package/dist/pegDiagram-2B236MQR-BJysMObA.cjs +1 -0
- package/dist/{pieDiagram-ENE6RG2P-MO42pSl8.js → pieDiagram-ENE6RG2P-D_YzC3qc.js} +65 -65
- package/dist/{pieDiagram-ENE6RG2P-BKvggS7k.cjs → pieDiagram-ENE6RG2P-UMpeIUyV.cjs} +2 -2
- package/dist/{providers-BwQK7hZa.js → providers-CSvkTZsr.js} +17 -2
- package/dist/{providers-DO2t7ks4.cjs → providers-Cx0FuVQU.cjs} +1 -1
- package/dist/{quadrantDiagram-ABIIQ3AL-BHhoAvLS.cjs → quadrantDiagram-ABIIQ3AL-DANY0ipQ.cjs} +1 -1
- package/dist/{quadrantDiagram-ABIIQ3AL-CzHgLdS3.js → quadrantDiagram-ABIIQ3AL-DDm-r_6D.js} +57 -57
- package/dist/railroadDiagram-RFXS5EU6-CDUd4th1.cjs +1 -0
- package/dist/{railroadDiagram-RFXS5EU6-Bu_Fhi5x.js → railroadDiagram-RFXS5EU6-hJ6uB90G.js} +3 -3
- package/dist/remarkProcessor.server.d.ts +2 -0
- package/dist/{requirementDiagram-TGXJPOKE-CY-JYM-P.js → requirementDiagram-TGXJPOKE-BJef5Jb0.js} +29 -29
- package/dist/{requirementDiagram-TGXJPOKE-BhdvQnjG.cjs → requirementDiagram-TGXJPOKE-DaoCo7go.cjs} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-BmHtjxlW.js → sankeyDiagram-HTMAVEWB-BZQs0bE-.js} +48 -48
- package/dist/{sankeyDiagram-HTMAVEWB-CUeYKZeQ.cjs → sankeyDiagram-HTMAVEWB-DXiv0YOu.cjs} +3 -3
- package/dist/{sequenceDiagram-DBY2YBRQ-GepntdDB.cjs → sequenceDiagram-DBY2YBRQ-CJGpsnsv.cjs} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-Cn2CC9BC.js → sequenceDiagram-DBY2YBRQ-D05U2w26.js} +86 -86
- package/dist/serviceClient.cjs +1 -0
- package/dist/serviceClient.d.ts +3 -0
- package/dist/serviceClient.js +9 -0
- package/dist/{sizeCapture-X5ZJPWSS-CZF99dy_.js → sizeCapture-X5ZJPWSS-DTr0Vm61.js} +1 -1
- package/dist/sizeCapture-X5ZJPWSS-DjuH1zNP.cjs +1 -0
- package/dist/{stateDiagram-2N3HPSRC-CCbBvBua.js → stateDiagram-2N3HPSRC-B8nvJKpB.js} +20 -20
- package/dist/stateDiagram-2N3HPSRC-BrB47FD-.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CC8gOGDK.cjs +1 -0
- package/dist/{stateDiagram-v2-6OUMAXLB-_A1QESxx.js → stateDiagram-v2-6OUMAXLB-CV-JqAeP.js} +2 -2
- package/dist/styles/markdown.css +1 -1
- package/dist/styles/markdown.standalone.css +1 -1
- package/dist/{swimlanes-5IMT3BWC-B-BDM_Ae.js → swimlanes-5IMT3BWC-BPtufzUd.js} +3 -3
- package/dist/swimlanes-5IMT3BWC-WAbDPRgt.cjs +1 -0
- package/dist/{swimlanesDiagram-G3AALYLV-BysT2rWl.js → swimlanesDiagram-G3AALYLV-BQKEmJFX.js} +2 -2
- package/dist/{swimlanesDiagram-G3AALYLV-DZuQxKuB.cjs → swimlanesDiagram-G3AALYLV-BTwwtLZL.cjs} +1 -1
- package/dist/{timeline-definition-FHXFAJF6-DVzdzbl1.js → timeline-definition-FHXFAJF6-DJ6GV7Fz.js} +34 -34
- package/dist/{timeline-definition-FHXFAJF6-oFf_sUOI.cjs → timeline-definition-FHXFAJF6-qdkrah7t.cjs} +1 -1
- package/dist/vennDiagram-L72KCM5P-B5onSWPA.cjs +34 -0
- package/dist/{vennDiagram-L72KCM5P-Bm1TGZux.js → vennDiagram-L72KCM5P-DWnnndTj.js} +196 -196
- package/dist/viewer-settings.cjs +1 -1
- package/dist/viewer-settings.d.ts +8 -0
- package/dist/viewer-settings.js +11 -5
- package/dist/{wardleyDiagram-EHGQE667-BC_1RAbp.js → wardleyDiagram-EHGQE667-DFmDgQSb.js} +41 -41
- package/dist/{wardleyDiagram-EHGQE667-CqB3gLCH.cjs → wardleyDiagram-EHGQE667-DdeBbvVM.cjs} +2 -2
- package/dist/{xychartDiagram-FW5EYKEG-a1vb5UxD.cjs → xychartDiagram-FW5EYKEG-CiJQMClv.cjs} +1 -1
- package/dist/{xychartDiagram-FW5EYKEG-ClITdEhV.js → xychartDiagram-FW5EYKEG-L2Kj4cZA.js} +28 -28
- package/package.json +29 -13
- package/dist/abnfDiagram-VRR7QNED-Crz-ChMJ.cjs +0 -1
- package/dist/arc-BKGy6Me1.js +0 -83
- package/dist/arc-CYJCyviq.cjs +0 -1
- package/dist/architectureDiagram-ZJ3FMSHR-gTB8pttO.cjs +0 -36
- package/dist/channel-BKoPLS2j.cjs +0 -1
- package/dist/chunk-2Q5K7J3B-DgtYKcDs.cjs +0 -1
- package/dist/chunk-32BRIVSS-D-6GBFtx.cjs +0 -1
- package/dist/chunk-JWPE2WC7-5sd39cpa.cjs +0 -1
- package/dist/chunk-RYQCIY6F-BBTBydZd.cjs +0 -1
- package/dist/chunk-VR4S4FIN-CHKLwvYh.cjs +0 -1
- package/dist/chunk-XXDRQBXY-DttkP7wv.cjs +0 -1
- package/dist/classDiagram-OUVF2IWQ-BKruajP_.cjs +0 -1
- package/dist/classDiagram-v2-EOCWNBFH-BKruajP_.cjs +0 -1
- package/dist/cose-bilkent-JH36ORCC-Cjfa6NyL.cjs +0 -1
- package/dist/cynefinDiagram-TSTJHNR4-B3boTACW.cjs +0 -62
- package/dist/dagre-VKFMJZFB-DF3Mvuas.cjs +0 -4
- package/dist/diagram-G47NLZAW-CKIEbGLS.cjs +0 -24
- package/dist/diagram-NH7WQ7WH-D6wMwkLQ.cjs +0 -24
- package/dist/diagram-WEI45ONY-SYHw7k8b.cjs +0 -41
- package/dist/ebnfDiagram-CCIWWBDH-23bjk9FU.cjs +0 -1
- package/dist/errors-BW5JXRoX.cjs +0 -1
- package/dist/errors-Blk_XJ9C.js +0 -55
- package/dist/extractHeadings-DlQcPv5N.js +0 -20361
- package/dist/extractHeadings-wWAipplS.cjs +0 -315
- package/dist/flowDiagram-23GEKE2U-CRC9U6qD.cjs +0 -1
- package/dist/flowDiagram-23GEKE2U-CRo7TM3K.js +0 -7
- package/dist/ganttDiagram-NO4QXBWP-CR55KG5d.cjs +0 -292
- package/dist/gitGraphDiagram-IHSO6WYX-BWYUn1Bi.cjs +0 -106
- package/dist/infoDiagram-FWYZ7A6U-CsUGc58_.cjs +0 -2
- package/dist/linear-DwqXGYLc.cjs +0 -1
- package/dist/linkCardServer/addressGuard.server.d.ts +0 -25
- package/dist/linkCardServer/pageFetch.server.d.ts +0 -37
- package/dist/linkCards-1JxY8wdm.js +0 -48
- package/dist/linkCards-Bjd_vW39.cjs +0 -1
- package/dist/pegDiagram-2B236MQR-C5pLIpKI.cjs +0 -1
- package/dist/railroadDiagram-RFXS5EU6-CwGmOFD_.cjs +0 -1
- package/dist/sizeCapture-X5ZJPWSS-Cd-k8xwk.cjs +0 -1
- package/dist/stateDiagram-2N3HPSRC-D2cvrAtN.cjs +0 -1
- package/dist/stateDiagram-v2-6OUMAXLB-BaktPIVY.cjs +0 -1
- package/dist/swimlanes-5IMT3BWC-DtdLK5z3.cjs +0 -1
- package/dist/vennDiagram-L72KCM5P-Ba2FGeN1.cjs +0 -34
- /package/dist/linkCardServer/{htmlEncoding.server.d.ts → htmlEncoding.d.ts} +0 -0
- /package/dist/linkCardServer/{metadataCache.server.d.ts → metadataCache.d.ts} +0 -0
package/dist/embeds.js
CHANGED
|
@@ -1,73 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { b,
|
|
3
|
-
|
|
4
|
-
if (e === void 0) return null;
|
|
5
|
-
let t;
|
|
6
|
-
try {
|
|
7
|
-
t = new URL(e);
|
|
8
|
-
} catch {
|
|
9
|
-
return null;
|
|
10
|
-
}
|
|
11
|
-
return t.protocol === "https:" && t.username === "" && t.password === "" && t.port === "" && r.includes(t.hostname) ? t : null;
|
|
12
|
-
}, c = (e) => {
|
|
13
|
-
const r = /* @__PURE__ */ new Set();
|
|
14
|
-
for (const t of e.split(";")) {
|
|
15
|
-
const [n] = t.trim().toLowerCase().split(/\s+/u);
|
|
16
|
-
n !== void 0 && o.has(n) && r.add(n);
|
|
17
|
-
}
|
|
18
|
-
return r.size === 0 ? null : [...r].join("; ");
|
|
19
|
-
}, E = "data-embed-url", a = /^[\t\n\f\r \u00a0\u3000]*$/u, i = (e) => {
|
|
20
|
-
let r;
|
|
21
|
-
try {
|
|
22
|
-
r = new URL(e);
|
|
23
|
-
} catch {
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
return (r.protocol === "http:" || r.protocol === "https:") && r.username === "" && r.password === "" ? r : null;
|
|
27
|
-
}, d = (e, r) => {
|
|
28
|
-
if (e === null) return null;
|
|
29
|
-
let t;
|
|
30
|
-
for (const n of r)
|
|
31
|
-
switch (n.kind) {
|
|
32
|
-
case "link":
|
|
33
|
-
if (t !== void 0) return null;
|
|
34
|
-
t = n.href;
|
|
35
|
-
break;
|
|
36
|
-
case "element":
|
|
37
|
-
return null;
|
|
38
|
-
case "text":
|
|
39
|
-
if (!a.test(n.text)) return null;
|
|
40
|
-
break;
|
|
41
|
-
}
|
|
42
|
-
return t === e ? i(e) : null;
|
|
43
|
-
}, s = (e) => e.endsWith("/") ? e.slice(0, -1) : e, f = (e, r) => {
|
|
44
|
-
const t = i(e.trim());
|
|
45
|
-
return t !== null && s(t.href) === s(r.href);
|
|
46
|
-
};
|
|
1
|
+
import { e as s, b as e, E as _, c as r, g as R, a as d, d as i, i as D, n as I, p as S, r as n } from "./embeds-Dra-dGKD.js";
|
|
2
|
+
import { g as A, b as M, k as O, a as L, N as F, i as m, f as B, e as C, c as N, d as f } from "./linkCards-DfSLqLPF.js";
|
|
3
|
+
import { D as t, b as k, E as l, a as K, e as T, c as p, i as P, r as c } from "./providers-CSvkTZsr.js";
|
|
47
4
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
5
|
+
t as DEFAULT_FRAME_SANDBOX,
|
|
6
|
+
s as EMBED_FRAME_FEATURES,
|
|
7
|
+
k as EMBED_FRAME_HEIGHT_LIMITS,
|
|
8
|
+
e as EMBED_FRAME_REFERRER_POLICIES,
|
|
9
|
+
_ as EMBED_FRAME_SANDBOX_TOKENS,
|
|
10
|
+
r as EMBED_LINK_ATTRIBUTE,
|
|
11
|
+
R as EMBED_LINK_SPACE,
|
|
12
|
+
l as EMBED_PROVIDERS,
|
|
13
|
+
K as EMBED_PROVIDER_IDS,
|
|
14
|
+
A as LINK_CARD_SIZES,
|
|
15
|
+
M as LINK_CARD_SKIP_HEADER,
|
|
16
|
+
O as LINK_CARD_SKIP_REASONS,
|
|
17
|
+
L as LINK_CARD_URL_LIMIT,
|
|
18
|
+
F as NO_EMBEDS,
|
|
19
|
+
d as allowedFrameUrlOf,
|
|
20
|
+
T as embedConnectOriginsOf,
|
|
21
|
+
p as embedFrameHostsOf,
|
|
22
|
+
i as isBareLink,
|
|
23
|
+
D as isEmbedFrameSandbox,
|
|
24
|
+
P as isEmbedProviderId,
|
|
65
25
|
m as isLinkCardEndpoint,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
26
|
+
B as isLinkCardSize,
|
|
27
|
+
C as linkCardMetadataOf,
|
|
28
|
+
N as linkCardRequestOf,
|
|
29
|
+
f as linkCardSkipReasonOf,
|
|
30
|
+
I as narrowFrameSandbox,
|
|
31
|
+
S as placeholderLinkOf,
|
|
32
|
+
n as reduceFrameFeatures,
|
|
33
|
+
c as resolveEmbed
|
|
73
34
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { g as Bt } from "./chunk-XXDRQBXY-
|
|
2
|
-
import { s as Ft } from "./chunk-VR4S4FIN-
|
|
3
|
-
import { _ as d,
|
|
4
|
-
import { c as $t } from "./channel-
|
|
1
|
+
import { g as Bt } from "./chunk-XXDRQBXY-B-99Fbs_.js";
|
|
2
|
+
import { s as Ft } from "./chunk-VR4S4FIN-CyqARa17.js";
|
|
3
|
+
import { _ as d, b as Yt, a as Pt, s as zt, g as Gt, q as Kt, t as Ut, c as rt, l as V, z as Zt, y as jt, B as Wt, C as qt, p as Qt, r as Xt, d as Ht, u as Jt } from "./mermaid.core-C4EClWgB.js";
|
|
4
|
+
import { c as $t } from "./channel-B2FBCr9X.js";
|
|
5
5
|
var gt = (function() {
|
|
6
|
-
var s = /* @__PURE__ */ d(function(
|
|
7
|
-
for (a = a || {}, o =
|
|
6
|
+
var s = /* @__PURE__ */ d(function(C, n, a, o) {
|
|
7
|
+
for (a = a || {}, o = C.length; o--; a[C[o]] = n) ;
|
|
8
8
|
return a;
|
|
9
|
-
}, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52], c = [1, 10], h = [1, 11], l = [1, 12],
|
|
9
|
+
}, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52], c = [1, 10], h = [1, 11], l = [1, 12], p = [1, 13], y = [1, 23], u = [1, 24], m = [1, 25], W = [1, 26], q = [1, 27], S = [1, 19], Q = [1, 28], B = [1, 29], D = [1, 20], I = [1, 18], T = [1, 21], R = [1, 22], at = [1, 36], ct = [1, 37], ot = [1, 38], lt = [1, 39], ht = [1, 40], F = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52, 66, 67, 68, 69, 70], O = [1, 45], N = [1, 46], Y = [1, 55], P = [40, 48, 50, 51, 52, 71, 72], z = [1, 66], G = [1, 64], A = [1, 61], K = [1, 65], U = [1, 67], X = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 51, 52, 66, 67, 68, 69, 70], bt = [66, 67, 68, 69, 70], kt = [1, 85], mt = [1, 84], Et = [1, 82], St = [1, 83], Tt = [6, 10, 42, 47], L = [6, 10, 13, 41, 42, 47, 48, 49], H = [1, 93], J = [1, 92], $ = [1, 91], Z = [19, 58], Ot = [1, 102], Nt = [1, 101], ut = [19, 58, 61, 63], dt = {
|
|
10
10
|
trace: /* @__PURE__ */ d(function() {
|
|
11
11
|
}, "trace"),
|
|
12
12
|
yy: {},
|
|
13
13
|
symbols_: { error: 2, start: 3, ER_DIAGRAM: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, entityName: 11, relSpec: 12, COLON: 13, role: 14, STYLE_SEPARATOR: 15, idList: 16, BLOCK_START: 17, attributes: 18, BLOCK_STOP: 19, SQS: 20, SQE: 21, title: 22, title_value: 23, acc_title: 24, acc_title_value: 25, acc_descr: 26, acc_descr_value: 27, acc_descr_multiline_value: 28, direction: 29, classDefStatement: 30, classStatement: 31, styleStatement: 32, direction_tb: 33, direction_bt: 34, direction_rl: 35, direction_lr: 36, CLASSDEF: 37, stylesOpt: 38, separator: 39, UNICODE_TEXT: 40, STYLE_TEXT: 41, COMMA: 42, CLASS: 43, STYLE: 44, style: 45, styleComponent: 46, SEMI: 47, NUM: 48, BRKT: 49, ENTITY_NAME: 50, DECIMAL_NUM: 51, ENTITY_ONE: 52, attribute: 53, attributeType: 54, attributeName: 55, attributeKeyTypeList: 56, attributeComment: 57, ATTRIBUTE_WORD: 58, "?": 59, attributeKeyType: 60, ",": 61, ATTRIBUTE_KEY: 62, COMMENT: 63, cardinality: 64, relType: 65, ZERO_OR_ONE: 66, ZERO_OR_MORE: 67, ONE_OR_MORE: 68, ONLY_ONE: 69, MD_PARENT: 70, NON_IDENTIFYING: 71, IDENTIFYING: 72, WORD: 73, $accept: 0, $end: 1 },
|
|
14
14
|
terminals_: { 2: "error", 4: "ER_DIAGRAM", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 13: "COLON", 15: "STYLE_SEPARATOR", 17: "BLOCK_START", 19: "BLOCK_STOP", 20: "SQS", 21: "SQE", 22: "title", 23: "title_value", 24: "acc_title", 25: "acc_title_value", 26: "acc_descr", 27: "acc_descr_value", 28: "acc_descr_multiline_value", 33: "direction_tb", 34: "direction_bt", 35: "direction_rl", 36: "direction_lr", 37: "CLASSDEF", 40: "UNICODE_TEXT", 41: "STYLE_TEXT", 42: "COMMA", 43: "CLASS", 44: "STYLE", 47: "SEMI", 48: "NUM", 49: "BRKT", 50: "ENTITY_NAME", 51: "DECIMAL_NUM", 52: "ENTITY_ONE", 58: "ATTRIBUTE_WORD", 59: "?", 61: ",", 62: "ATTRIBUTE_KEY", 63: "COMMENT", 66: "ZERO_OR_ONE", 67: "ZERO_OR_MORE", 68: "ONE_OR_MORE", 69: "ONLY_ONE", 70: "MD_PARENT", 71: "NON_IDENTIFYING", 72: "IDENTIFYING", 73: "WORD" },
|
|
15
15
|
productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 5], [9, 9], [9, 7], [9, 7], [9, 4], [9, 6], [9, 3], [9, 5], [9, 1], [9, 3], [9, 7], [9, 9], [9, 6], [9, 8], [9, 4], [9, 6], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [29, 1], [29, 1], [29, 1], [29, 1], [30, 4], [16, 1], [16, 1], [16, 3], [16, 3], [31, 3], [32, 4], [38, 1], [38, 3], [45, 1], [45, 2], [39, 1], [39, 1], [39, 1], [46, 1], [46, 1], [46, 1], [46, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [18, 1], [18, 2], [53, 2], [53, 3], [53, 3], [53, 4], [54, 1], [54, 2], [55, 1], [56, 1], [56, 3], [60, 1], [57, 1], [12, 3], [64, 1], [64, 1], [64, 1], [64, 1], [64, 1], [65, 1], [65, 1], [14, 1], [14, 1], [14, 1]],
|
|
16
|
-
performAction: /* @__PURE__ */ d(function(n, a, o, r,
|
|
16
|
+
performAction: /* @__PURE__ */ d(function(n, a, o, r, f, t, j) {
|
|
17
17
|
var e = t.length - 1;
|
|
18
|
-
switch (
|
|
18
|
+
switch (f) {
|
|
19
19
|
case 1:
|
|
20
20
|
break;
|
|
21
21
|
case 2:
|
|
@@ -195,7 +195,7 @@ var gt = (function() {
|
|
|
195
195
|
break;
|
|
196
196
|
}
|
|
197
197
|
}, "anonymous"),
|
|
198
|
-
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, s(i, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 22: c, 24: h, 26: l, 28:
|
|
198
|
+
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, s(i, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 22: c, 24: h, 26: l, 28: p, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: u, 35: m, 36: W, 37: q, 40: S, 43: Q, 44: B, 48: D, 50: I, 51: T, 52: R }, s(i, [2, 7], { 1: [2, 1] }), s(i, [2, 3]), { 9: 30, 11: 9, 22: c, 24: h, 26: l, 28: p, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: u, 35: m, 36: W, 37: q, 40: S, 43: Q, 44: B, 48: D, 50: I, 51: T, 52: R }, s(i, [2, 5]), s(i, [2, 6]), s(i, [2, 16], { 12: 31, 64: 35, 15: [1, 32], 17: [1, 33], 20: [1, 34], 66: at, 67: ct, 68: ot, 69: lt, 70: ht }), { 23: [1, 41] }, { 25: [1, 42] }, { 27: [1, 43] }, s(i, [2, 27]), s(i, [2, 28]), s(i, [2, 29]), s(i, [2, 30]), s(i, [2, 31]), s(F, [2, 54]), s(F, [2, 55]), s(F, [2, 56]), s(F, [2, 57]), s(F, [2, 58]), s(i, [2, 32]), s(i, [2, 33]), s(i, [2, 34]), s(i, [2, 35]), { 16: 44, 40: O, 41: N }, { 16: 47, 40: O, 41: N }, { 16: 48, 40: O, 41: N }, s(i, [2, 4]), { 11: 49, 40: S, 48: D, 50: I, 51: T, 52: R }, { 16: 50, 40: O, 41: N }, { 18: 51, 19: [1, 52], 53: 53, 54: 54, 58: Y }, { 11: 56, 40: S, 48: D, 50: I, 51: T, 52: R }, { 65: 57, 71: [1, 58], 72: [1, 59] }, s(P, [2, 73]), s(P, [2, 74]), s(P, [2, 75]), s(P, [2, 76]), s(P, [2, 77]), s(i, [2, 24]), s(i, [2, 25]), s(i, [2, 26]), { 13: z, 38: 60, 41: G, 42: A, 45: 62, 46: 63, 48: K, 49: U }, s(X, [2, 37]), s(X, [2, 38]), { 16: 68, 40: O, 41: N, 42: A }, { 13: z, 38: 69, 41: G, 42: A, 45: 62, 46: 63, 48: K, 49: U }, { 13: [1, 70], 15: [1, 71] }, s(i, [2, 17], { 64: 35, 12: 72, 17: [1, 73], 42: A, 66: at, 67: ct, 68: ot, 69: lt, 70: ht }), { 19: [1, 74] }, s(i, [2, 14]), { 18: 75, 19: [2, 59], 53: 53, 54: 54, 58: Y }, { 55: 76, 58: [1, 77] }, { 58: [2, 65], 59: [1, 78] }, { 21: [1, 79] }, { 64: 80, 66: at, 67: ct, 68: ot, 69: lt, 70: ht }, s(bt, [2, 78]), s(bt, [2, 79]), { 6: kt, 10: mt, 39: 81, 42: Et, 47: St }, { 40: [1, 86], 41: [1, 87] }, s(Tt, [2, 43], { 46: 88, 13: z, 41: G, 48: K, 49: U }), s(L, [2, 45]), s(L, [2, 50]), s(L, [2, 51]), s(L, [2, 52]), s(L, [2, 53]), s(i, [2, 41], { 42: A }), { 6: kt, 10: mt, 39: 89, 42: Et, 47: St }, { 14: 90, 40: H, 50: J, 73: $ }, { 16: 94, 40: O, 41: N }, { 11: 95, 40: S, 48: D, 50: I, 51: T, 52: R }, { 18: 96, 19: [1, 97], 53: 53, 54: 54, 58: Y }, s(i, [2, 12]), { 19: [2, 60] }, s(Z, [2, 61], { 56: 98, 57: 99, 60: 100, 62: Ot, 63: Nt }), s([19, 58, 62, 63], [2, 67]), { 58: [2, 66] }, s(i, [2, 22], { 15: [1, 104], 17: [1, 103] }), s([40, 48, 50, 51, 52], [2, 72]), s(i, [2, 36]), { 13: z, 41: G, 45: 105, 46: 63, 48: K, 49: U }, s(i, [2, 47]), s(i, [2, 48]), s(i, [2, 49]), s(X, [2, 39]), s(X, [2, 40]), s(L, [2, 46]), s(i, [2, 42]), s(i, [2, 8]), s(i, [2, 80]), s(i, [2, 81]), s(i, [2, 82]), { 13: [1, 106], 42: A }, { 13: [1, 108], 15: [1, 107] }, { 19: [1, 109] }, s(i, [2, 15]), s(Z, [2, 62], { 57: 110, 61: [1, 111], 63: Nt }), s(Z, [2, 63]), s(ut, [2, 68]), s(Z, [2, 71]), s(ut, [2, 70]), { 18: 112, 19: [1, 113], 53: 53, 54: 54, 58: Y }, { 16: 114, 40: O, 41: N }, s(Tt, [2, 44], { 46: 88, 13: z, 41: G, 48: K, 49: U }), { 14: 115, 40: H, 50: J, 73: $ }, { 16: 116, 40: O, 41: N }, { 14: 117, 40: H, 50: J, 73: $ }, s(i, [2, 13]), s(Z, [2, 64]), { 60: 118, 62: Ot }, { 19: [1, 119] }, s(i, [2, 20]), s(i, [2, 23], { 17: [1, 120], 42: A }), s(i, [2, 11]), { 13: [1, 121], 42: A }, s(i, [2, 10]), s(ut, [2, 69]), s(i, [2, 18]), { 18: 122, 19: [1, 123], 53: 53, 54: 54, 58: Y }, { 14: 124, 40: H, 50: J, 73: $ }, { 19: [1, 125] }, s(i, [2, 21]), s(i, [2, 9]), s(i, [2, 19])],
|
|
199
199
|
defaultActions: { 75: [2, 60], 78: [2, 66] },
|
|
200
200
|
parseError: /* @__PURE__ */ d(function(n, a) {
|
|
201
201
|
if (a.recoverable)
|
|
@@ -206,24 +206,24 @@ var gt = (function() {
|
|
|
206
206
|
}
|
|
207
207
|
}, "parseError"),
|
|
208
208
|
parse: /* @__PURE__ */ d(function(n) {
|
|
209
|
-
var a = this, o = [0], r = [],
|
|
210
|
-
for (var
|
|
211
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
209
|
+
var a = this, o = [0], r = [], f = [null], t = [], j = this.table, e = "", et = 0, At = 0, Lt = 2, Ct = 1, wt = t.slice.call(arguments, 1), _ = Object.create(this.lexer), x = { yy: {} };
|
|
210
|
+
for (var pt in this.yy)
|
|
211
|
+
Object.prototype.hasOwnProperty.call(this.yy, pt) && (x.yy[pt] = this.yy[pt]);
|
|
212
212
|
_.setInput(n, x.yy), x.yy.lexer = _, x.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
|
|
213
|
-
var
|
|
214
|
-
t.push(
|
|
213
|
+
var ft = _.yylloc;
|
|
214
|
+
t.push(ft);
|
|
215
215
|
var Vt = _.options && _.options.ranges;
|
|
216
216
|
typeof x.yy.parseError == "function" ? this.parseError = x.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
217
217
|
function Mt(b) {
|
|
218
|
-
o.length = o.length - 2 * b,
|
|
218
|
+
o.length = o.length - 2 * b, f.length = f.length - b, t.length = t.length - b;
|
|
219
219
|
}
|
|
220
220
|
d(Mt, "popStack");
|
|
221
221
|
function It() {
|
|
222
222
|
var b;
|
|
223
|
-
return b = r.pop() || _.lex() ||
|
|
223
|
+
return b = r.pop() || _.lex() || Ct, typeof b != "number" && (b instanceof Array && (r = b, b = r.pop()), b = a.symbols_[b] || b), b;
|
|
224
224
|
}
|
|
225
225
|
d(It, "lex");
|
|
226
|
-
for (var g, v, k, yt, w = {}, st, E,
|
|
226
|
+
for (var g, v, k, yt, w = {}, st, E, Rt, it; ; ) {
|
|
227
227
|
if (v = o[o.length - 1], this.defaultActions[v] ? k = this.defaultActions[v] : ((g === null || typeof g > "u") && (g = It()), k = j[v] && j[v][g]), typeof k > "u" || !k.length || !k[0]) {
|
|
228
228
|
var _t = "";
|
|
229
229
|
it = [];
|
|
@@ -231,11 +231,11 @@ var gt = (function() {
|
|
|
231
231
|
this.terminals_[st] && st > Lt && it.push("'" + this.terminals_[st] + "'");
|
|
232
232
|
_.showPosition ? _t = "Parse error on line " + (et + 1) + `:
|
|
233
233
|
` + _.showPosition() + `
|
|
234
|
-
Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t = "Parse error on line " + (et + 1) + ": Unexpected " + (g ==
|
|
234
|
+
Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t = "Parse error on line " + (et + 1) + ": Unexpected " + (g == Ct ? "end of input" : "'" + (this.terminals_[g] || g) + "'"), this.parseError(_t, {
|
|
235
235
|
text: _.match,
|
|
236
236
|
token: this.terminals_[g] || g,
|
|
237
237
|
line: _.yylineno,
|
|
238
|
-
loc:
|
|
238
|
+
loc: ft,
|
|
239
239
|
expected: it
|
|
240
240
|
});
|
|
241
241
|
}
|
|
@@ -243,10 +243,10 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
|
|
|
243
243
|
throw new Error("Parse Error: multiple actions possible at state: " + v + ", token: " + g);
|
|
244
244
|
switch (k[0]) {
|
|
245
245
|
case 1:
|
|
246
|
-
o.push(g),
|
|
246
|
+
o.push(g), f.push(_.yytext), t.push(_.yylloc), o.push(k[1]), g = null, At = _.yyleng, e = _.yytext, et = _.yylineno, ft = _.yylloc;
|
|
247
247
|
break;
|
|
248
248
|
case 2:
|
|
249
|
-
if (E = this.productions_[k[1]][1], w.$ =
|
|
249
|
+
if (E = this.productions_[k[1]][1], w.$ = f[f.length - E], w._$ = {
|
|
250
250
|
first_line: t[t.length - (E || 1)].first_line,
|
|
251
251
|
last_line: t[t.length - 1].last_line,
|
|
252
252
|
first_column: t[t.length - (E || 1)].first_column,
|
|
@@ -260,11 +260,11 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
|
|
|
260
260
|
et,
|
|
261
261
|
x.yy,
|
|
262
262
|
k[1],
|
|
263
|
-
|
|
263
|
+
f,
|
|
264
264
|
t
|
|
265
265
|
].concat(wt)), typeof yt < "u")
|
|
266
266
|
return yt;
|
|
267
|
-
E && (o = o.slice(0, -1 * E * 2),
|
|
267
|
+
E && (o = o.slice(0, -1 * E * 2), f = f.slice(0, -1 * E), t = t.slice(0, -1 * E)), o.push(this.productions_[k[1]][0]), f.push(w.$), t.push(w._$), Rt = j[o[o.length - 2]][o[o.length - 1]], o.push(Rt);
|
|
268
268
|
break;
|
|
269
269
|
case 3:
|
|
270
270
|
return !0;
|
|
@@ -273,7 +273,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
|
|
|
273
273
|
return !0;
|
|
274
274
|
}, "parse")
|
|
275
275
|
}, Dt = /* @__PURE__ */ (function() {
|
|
276
|
-
var
|
|
276
|
+
var C = {
|
|
277
277
|
EOF: 1,
|
|
278
278
|
parseError: /* @__PURE__ */ d(function(a, o) {
|
|
279
279
|
if (this.yy.parser)
|
|
@@ -303,13 +303,13 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
|
|
|
303
303
|
this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
|
|
304
304
|
var r = this.match.split(/(?:\r\n?|\n)/g);
|
|
305
305
|
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
|
|
306
|
-
var
|
|
306
|
+
var f = this.yylloc.range;
|
|
307
307
|
return this.yylloc = {
|
|
308
308
|
first_line: this.yylloc.first_line,
|
|
309
309
|
last_line: this.yylineno + 1,
|
|
310
310
|
first_column: this.yylloc.first_column,
|
|
311
311
|
last_column: o ? (o.length === r.length ? this.yylloc.first_column : 0) + r[r.length - o.length].length - o[0].length : this.yylloc.first_column - a
|
|
312
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
312
|
+
}, this.options.ranges && (this.yylloc.range = [f[0], f[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
|
|
313
313
|
}, "unput"),
|
|
314
314
|
// When called from action, caches matched text and appends it on next action
|
|
315
315
|
more: /* @__PURE__ */ d(function() {
|
|
@@ -350,8 +350,8 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
|
|
|
350
350
|
}, "showPosition"),
|
|
351
351
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
352
352
|
test_match: /* @__PURE__ */ d(function(n, a) {
|
|
353
|
-
var o, r,
|
|
354
|
-
if (this.options.backtrack_lexer && (
|
|
353
|
+
var o, r, f;
|
|
354
|
+
if (this.options.backtrack_lexer && (f = {
|
|
355
355
|
yylineno: this.yylineno,
|
|
356
356
|
yylloc: {
|
|
357
357
|
first_line: this.yylloc.first_line,
|
|
@@ -370,7 +370,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
|
|
|
370
370
|
yy: this.yy,
|
|
371
371
|
conditionStack: this.conditionStack.slice(0),
|
|
372
372
|
done: this.done
|
|
373
|
-
}, this.options.ranges && (
|
|
373
|
+
}, this.options.ranges && (f.yylloc.range = this.yylloc.range.slice(0))), r = n[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
|
|
374
374
|
first_line: this.yylloc.last_line,
|
|
375
375
|
last_line: this.yylineno + 1,
|
|
376
376
|
first_column: this.yylloc.last_column,
|
|
@@ -378,8 +378,8 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
|
|
|
378
378
|
}, this.yytext += n[0], this.match += n[0], this.matches = n, 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(n[0].length), this.matched += n[0], o = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
|
|
379
379
|
return o;
|
|
380
380
|
if (this._backtrack) {
|
|
381
|
-
for (var t in
|
|
382
|
-
this[t] =
|
|
381
|
+
for (var t in f)
|
|
382
|
+
this[t] = f[t];
|
|
383
383
|
return !1;
|
|
384
384
|
}
|
|
385
385
|
return !1;
|
|
@@ -391,10 +391,10 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
|
|
|
391
391
|
this._input || (this.done = !0);
|
|
392
392
|
var n, a, o, r;
|
|
393
393
|
this._more || (this.yytext = "", this.match = "");
|
|
394
|
-
for (var
|
|
395
|
-
if (o = this._input.match(this.rules[
|
|
394
|
+
for (var f = this._currentRules(), t = 0; t < f.length; t++)
|
|
395
|
+
if (o = this._input.match(this.rules[f[t]]), o && (!a || o[0].length > a[0].length)) {
|
|
396
396
|
if (a = o, r = t, this.options.backtrack_lexer) {
|
|
397
|
-
if (n = this.test_match(o,
|
|
397
|
+
if (n = this.test_match(o, f[t]), n !== !1)
|
|
398
398
|
return n;
|
|
399
399
|
if (this._backtrack) {
|
|
400
400
|
a = !1;
|
|
@@ -404,7 +404,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
|
|
|
404
404
|
} else if (!this.options.flex)
|
|
405
405
|
break;
|
|
406
406
|
}
|
|
407
|
-
return a ? (n = this.test_match(a,
|
|
407
|
+
return a ? (n = this.test_match(a, f[r]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
408
408
|
` + this.showPosition(), {
|
|
409
409
|
text: "",
|
|
410
410
|
token: null,
|
|
@@ -442,7 +442,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
|
|
|
442
442
|
return this.conditionStack.length;
|
|
443
443
|
}, "stateStackSize"),
|
|
444
444
|
options: { "case-insensitive": !0 },
|
|
445
|
-
performAction: /* @__PURE__ */ d(function(a, o, r,
|
|
445
|
+
performAction: /* @__PURE__ */ d(function(a, o, r, f) {
|
|
446
446
|
switch (r) {
|
|
447
447
|
case 0:
|
|
448
448
|
return this.begin("acc_title"), 24;
|
|
@@ -617,7 +617,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
|
|
|
617
617
|
rules: [/^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:[\s]+)/i, /^(?:"[^"%\r\n\v\b\\]+")/i, /^(?:"[^"]*")/i, /^(?:erDiagram\b)/i, /^(?:\{)/i, /^(?:#)/i, /^(?:#)/i, /^(?:,)/i, /^(?::::)/i, /^(?::)/i, /^(?:\s+)/i, /^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i, /^(?:([^\s]*)[~].*[~]([^\s]*))/i, /^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i, /^(?:[`])/i, /^(?:[^`]+)/i, /^(?:[`])/i, /^(?:"[^"]*")/i, /^(?:[\n]+)/i, /^(?:\})/i, /^(?:.)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:style\b)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?::)/i, /^(?:,)/i, /^(?:#)/i, /^(?:classDef\b)/i, /^(?:class\b)/i, /^(?:one or zero\b)/i, /^(?:one or more\b)/i, /^(?:one or many\b)/i, /^(?:1\+)/i, /^(?:\|o\b)/i, /^(?:zero or one\b)/i, /^(?:zero or more\b)/i, /^(?:zero or many\b)/i, /^(?:0\+)/i, /^(?:\}o\b)/i, /^(?:many\(0\))/i, /^(?:many\(1\))/i, /^(?:many\b)/i, /^(?:\}\|)/i, /^(?:one\b)/i, /^(?:only one\b)/i, /^(?:[0-9]+\.[0-9]+)/i, /^(?:1(?=\s+[A-Za-z_"']))/i, /^(?:1(?=\s+[0-9]))/i, /^(?:1(?=(--|\.\.|\.-|-\.)))/i, /^(?:1\b)/i, /^(?:[0-9]+)/i, /^(?:\|\|)/i, /^(?:o\|)/i, /^(?:o\{)/i, /^(?:\|\{)/i, /^(?:u(?=[\.\-\|]))/i, /^(?:\.\.)/i, /^(?:--)/i, /^(?:to\b)/i, /^(?:optionally to\b)/i, /^(?:\.-)/i, /^(?:-\.)/i, /^(?:([^\x00-\x7F]|\w|-|\*)+)/i, /^(?:;)/i, /^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i, /^(?:.)/i, /^(?:$)/i],
|
|
618
618
|
conditions: { style: { rules: [37, 38, 39, 40, 41, 77, 78], inclusive: !1 }, acc_descr_multiline: { rules: [5, 6], inclusive: !1 }, acc_descr: { rules: [3], inclusive: !1 }, acc_title: { rules: [1], inclusive: !1 }, block_bq: { rules: [28, 29], inclusive: !1 }, block: { rules: [23, 24, 25, 26, 27, 30, 31, 32, 33], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 34, 35, 36, 42, 43, 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, 75, 76, 79, 80, 81], inclusive: !0 } }
|
|
619
619
|
};
|
|
620
|
-
return
|
|
620
|
+
return C;
|
|
621
621
|
})();
|
|
622
622
|
dt.lexer = Dt;
|
|
623
623
|
function tt() {
|
|
@@ -637,7 +637,7 @@ var te = gt, M, ee = (M = class {
|
|
|
637
637
|
}, this.Identification = {
|
|
638
638
|
NON_IDENTIFYING: "NON_IDENTIFYING",
|
|
639
639
|
IDENTIFYING: "IDENTIFYING"
|
|
640
|
-
}, this.setAccTitle = Yt, this.getAccTitle = Pt, this.setAccDescription = zt, this.getAccDescription =
|
|
640
|
+
}, this.setAccTitle = Yt, this.getAccTitle = Pt, this.setAccDescription = zt, this.getAccDescription = Gt, this.setDiagramTitle = Kt, this.getDiagramTitle = Ut, this.getConfig = /* @__PURE__ */ d(() => rt().er, "getConfig"), this.clear(), this.addEntity = this.addEntity.bind(this), this.addAttributes = this.addAttributes.bind(this), this.addRelationship = this.addRelationship.bind(this), this.setDirection = this.setDirection.bind(this), this.addCssStyles = this.addCssStyles.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.setAccTitle = this.setAccTitle.bind(this), this.setAccDescription = this.setAccDescription.bind(this);
|
|
641
641
|
}
|
|
642
642
|
/**
|
|
643
643
|
* Add entity
|
|
@@ -681,11 +681,11 @@ var te = gt, M, ee = (M = class {
|
|
|
681
681
|
* @param rSpec - The details of the relationship between the two entities
|
|
682
682
|
*/
|
|
683
683
|
addRelationship(i, c, h, l) {
|
|
684
|
-
const
|
|
685
|
-
if (!
|
|
684
|
+
const p = this.entities.get(i), y = this.entities.get(h);
|
|
685
|
+
if (!p || !y)
|
|
686
686
|
return;
|
|
687
687
|
const u = {
|
|
688
|
-
entityA:
|
|
688
|
+
entityA: p.id,
|
|
689
689
|
roleA: c,
|
|
690
690
|
entityB: y.id,
|
|
691
691
|
relSpec: l
|
|
@@ -705,7 +705,7 @@ var te = gt, M, ee = (M = class {
|
|
|
705
705
|
let c = [];
|
|
706
706
|
for (const h of i) {
|
|
707
707
|
const l = this.classes.get(h);
|
|
708
|
-
l?.styles && (c = [...c, ...l.styles ?? []].map((
|
|
708
|
+
l?.styles && (c = [...c, ...l.styles ?? []].map((p) => p.trim())), l?.textStyles && (c = [...c, ...l.textStyles ?? []].map((p) => p.trim()));
|
|
709
709
|
}
|
|
710
710
|
return c;
|
|
711
711
|
}
|
|
@@ -714,19 +714,19 @@ var te = gt, M, ee = (M = class {
|
|
|
714
714
|
const l = this.entities.get(h);
|
|
715
715
|
if (!c || !l)
|
|
716
716
|
return;
|
|
717
|
-
for (const
|
|
718
|
-
l.cssStyles.push(
|
|
717
|
+
for (const p of c)
|
|
718
|
+
l.cssStyles.push(p);
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
721
|
addClass(i, c) {
|
|
722
722
|
i.forEach((h) => {
|
|
723
723
|
let l = this.classes.get(h);
|
|
724
|
-
l === void 0 && (l = { id: h, styles: [], textStyles: [] }, this.classes.set(h, l)), c && c.forEach(function(
|
|
725
|
-
if (/color/.exec(
|
|
726
|
-
const y =
|
|
724
|
+
l === void 0 && (l = { id: h, styles: [], textStyles: [] }, this.classes.set(h, l)), c && c.forEach(function(p) {
|
|
725
|
+
if (/color/.exec(p)) {
|
|
726
|
+
const y = p.replace("fill", "bgFill");
|
|
727
727
|
l.textStyles.push(y);
|
|
728
728
|
}
|
|
729
|
-
l.styles.push(
|
|
729
|
+
l.styles.push(p);
|
|
730
730
|
});
|
|
731
731
|
});
|
|
732
732
|
}
|
|
@@ -734,8 +734,8 @@ var te = gt, M, ee = (M = class {
|
|
|
734
734
|
for (const h of i) {
|
|
735
735
|
const l = this.entities.get(h);
|
|
736
736
|
if (l)
|
|
737
|
-
for (const
|
|
738
|
-
l.cssClasses += " " +
|
|
737
|
+
for (const p of c)
|
|
738
|
+
l.cssClasses += " " + p;
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
clear() {
|
|
@@ -748,12 +748,12 @@ var te = gt, M, ee = (M = class {
|
|
|
748
748
|
const u = this.entities.get(y);
|
|
749
749
|
u && (u.cssCompiledStyles = this.getCompiledStyles(u.cssClasses.split(" ")), u.colorIndex = l++, i.push(u));
|
|
750
750
|
}
|
|
751
|
-
let
|
|
751
|
+
let p = 0;
|
|
752
752
|
for (const y of this.relationships) {
|
|
753
753
|
const u = {
|
|
754
754
|
id: jt(y.entityA, y.entityB, {
|
|
755
755
|
prefix: "id",
|
|
756
|
-
counter:
|
|
756
|
+
counter: p++
|
|
757
757
|
}),
|
|
758
758
|
type: "normal",
|
|
759
759
|
curve: "basis",
|
|
@@ -774,55 +774,55 @@ var te = gt, M, ee = (M = class {
|
|
|
774
774
|
return { nodes: i, edges: c, other: {}, config: h, direction: "TB" };
|
|
775
775
|
}
|
|
776
776
|
}, d(M, "ErDB"), M), vt = {};
|
|
777
|
-
|
|
777
|
+
qt(vt, {
|
|
778
778
|
draw: () => se
|
|
779
779
|
});
|
|
780
780
|
var se = /* @__PURE__ */ d(async function(s, i, c, h) {
|
|
781
781
|
V.info("REF0:"), V.info("Drawing er diagram (unified)", i);
|
|
782
|
-
const { securityLevel: l, er:
|
|
783
|
-
u.type = h.type, u.layoutAlgorithm =
|
|
784
|
-
const { config: W } = u, { look:
|
|
785
|
-
|
|
782
|
+
const { securityLevel: l, er: p, layout: y } = rt(), u = h.db.getData(), m = Bt(i, l);
|
|
783
|
+
u.type = h.type, u.layoutAlgorithm = Qt(y), u.config.flowchart.nodeSpacing = p?.nodeSpacing || 140, u.config.flowchart.rankSpacing = p?.rankSpacing || 80, u.direction = h.db.getDirection();
|
|
784
|
+
const { config: W } = u, { look: q } = W;
|
|
785
|
+
q === "neo" ? u.markers = [
|
|
786
786
|
"only_one_neo",
|
|
787
787
|
"zero_or_one_neo",
|
|
788
788
|
"one_or_more_neo",
|
|
789
789
|
"zero_or_more_neo"
|
|
790
|
-
] : u.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], u.diagramId = i, await
|
|
790
|
+
] : u.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], u.diagramId = i, await Xt(u, m), u.layoutAlgorithm === "elk" && m.select(".edges").lower();
|
|
791
791
|
const S = m.selectAll('[id*="-background"]');
|
|
792
792
|
Array.from(S).length > 0 && S.each(function() {
|
|
793
793
|
const B = Ht(this), I = B.attr("id").replace("-background", ""), T = m.select(`#${CSS.escape(I)}`);
|
|
794
794
|
if (!T.empty()) {
|
|
795
|
-
const
|
|
796
|
-
B.attr("transform",
|
|
795
|
+
const R = T.attr("transform");
|
|
796
|
+
B.attr("transform", R);
|
|
797
797
|
}
|
|
798
798
|
});
|
|
799
|
-
const
|
|
799
|
+
const Q = 8;
|
|
800
800
|
Jt.insertTitle(
|
|
801
801
|
m,
|
|
802
802
|
"erDiagramTitleText",
|
|
803
|
-
|
|
803
|
+
p?.titleTopMargin ?? 25,
|
|
804
804
|
h.db.getDiagramTitle()
|
|
805
|
-
), Ft(m,
|
|
805
|
+
), Ft(m, Q, "erDiagram", p?.useMaxWidth ?? !0);
|
|
806
806
|
}, "draw"), xt = /* @__PURE__ */ d((s, i) => {
|
|
807
|
-
const c = $t, h = c(s, "r"), l = c(s, "g"),
|
|
808
|
-
return Wt(h, l,
|
|
807
|
+
const c = $t, h = c(s, "r"), l = c(s, "g"), p = c(s, "b");
|
|
808
|
+
return Wt(h, l, p, i);
|
|
809
809
|
}, "fade"), nt = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), ie = /* @__PURE__ */ d((s) => {
|
|
810
810
|
const { theme: i, look: c, bkgColorArray: h, borderColorArray: l } = s;
|
|
811
811
|
if (!nt.has(i))
|
|
812
812
|
return "";
|
|
813
|
-
const
|
|
813
|
+
const p = h?.length > 0;
|
|
814
814
|
let y = "";
|
|
815
815
|
for (let u = 0; u < s.THEME_COLOR_LIMIT; u++)
|
|
816
816
|
y += `
|
|
817
817
|
|
|
818
818
|
[data-look="${c}"][data-color-id="color-${u}"].node path {
|
|
819
819
|
stroke: ${l[u]};
|
|
820
|
-
${
|
|
820
|
+
${p ? `fill: ${h[u]};` : ""}
|
|
821
821
|
}
|
|
822
822
|
|
|
823
823
|
[data-look="${c}"][data-color-id="color-${u}"].node rect {
|
|
824
824
|
stroke: ${l[u]};
|
|
825
|
-
${
|
|
825
|
+
${p ? `fill: ${h[u]};` : ""}
|
|
826
826
|
}
|
|
827
827
|
`;
|
|
828
828
|
return y;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ve=require("./chunk-XXDRQBXY-DttkP7wv.cjs"),Me=require("./chunk-VR4S4FIN-CHKLwvYh.cjs"),n=require("./extractHeadings-wWAipplS.cjs"),Be=require("./channel-BKoPLS2j.cjs");var ge=(function(){var s=n.__name(function(C,a,c,l){for(c=c||{},l=C.length;l--;c[C[l]]=a);return c},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],o=[1,10],u=[1,11],h=[1,12],_=[1,13],g=[1,23],d=[1,24],k=[1,25],j=[1,26],W=[1,27],S=[1,19],q=[1,28],M=[1,29],D=[1,20],R=[1,18],T=[1,21],I=[1,22],re=[1,36],ne=[1,37],ae=[1,38],ce=[1,39],oe=[1,40],B=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,66,67,68,69,70],O=[1,45],N=[1,46],F=[1,55],Y=[40,48,50,51,52,71,72],P=[1,66],z=[1,64],A=[1,61],G=[1,65],K=[1,67],X=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,66,67,68,69,70],pe=[66,67,68,69,70],ye=[1,85],be=[1,84],me=[1,82],ke=[1,83],Ee=[6,10,42,47],L=[6,10,13,41,42,47,48,49],Q=[1,93],H=[1,92],J=[1,91],U=[19,58],Se=[1,102],Te=[1,101],le=[19,58,61,63],he={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,"?":59,attributeKeyType:60,",":61,ATTRIBUTE_KEY:62,COMMENT:63,cardinality:64,relType:65,ZERO_OR_ONE:66,ZERO_OR_MORE:67,ONE_OR_MORE:68,ONLY_ONE:69,MD_PARENT:70,NON_IDENTIFYING:71,IDENTIFYING:72,WORD:73,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",59:"?",61:",",62:"ATTRIBUTE_KEY",63:"COMMENT",66:"ZERO_OR_ONE",67:"ZERO_OR_MORE",68:"ONE_OR_MORE",69:"ONLY_ONE",70:"MD_PARENT",71:"NON_IDENTIFYING",72:"IDENTIFYING",73:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[54,2],[55,1],[56,1],[56,3],[60,1],[57,1],[12,3],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[14,1],[14,1],[14,1]],performAction:n.__name(function(a,c,l,r,f,e,Z){var t=e.length-1;switch(f){case 1:break;case 2:this.$=[];break;case 3:e[t-1].push(e[t]),this.$=e[t-1];break;case 4:case 5:this.$=e[t];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(e[t-4]),r.addEntity(e[t-2]),r.addRelationship(e[t-4],e[t],e[t-2],e[t-3]);break;case 9:r.addEntity(e[t-8]),r.addEntity(e[t-4]),r.addRelationship(e[t-8],e[t],e[t-4],e[t-5]),r.setClass([e[t-8]],e[t-6]),r.setClass([e[t-4]],e[t-2]);break;case 10:r.addEntity(e[t-6]),r.addEntity(e[t-2]),r.addRelationship(e[t-6],e[t],e[t-2],e[t-3]),r.setClass([e[t-6]],e[t-4]);break;case 11:r.addEntity(e[t-6]),r.addEntity(e[t-4]),r.addRelationship(e[t-6],e[t],e[t-4],e[t-5]),r.setClass([e[t-4]],e[t-2]);break;case 12:r.addEntity(e[t-3]),r.addAttributes(e[t-3],e[t-1]);break;case 13:r.addEntity(e[t-5]),r.addAttributes(e[t-5],e[t-1]),r.setClass([e[t-5]],e[t-3]);break;case 14:r.addEntity(e[t-2]);break;case 15:r.addEntity(e[t-4]),r.setClass([e[t-4]],e[t-2]);break;case 16:r.addEntity(e[t]);break;case 17:r.addEntity(e[t-2]),r.setClass([e[t-2]],e[t]);break;case 18:r.addEntity(e[t-6],e[t-4]),r.addAttributes(e[t-6],e[t-1]);break;case 19:r.addEntity(e[t-8],e[t-6]),r.addAttributes(e[t-8],e[t-1]),r.setClass([e[t-8]],e[t-3]);break;case 20:r.addEntity(e[t-5],e[t-3]);break;case 21:r.addEntity(e[t-7],e[t-5]),r.setClass([e[t-7]],e[t-2]);break;case 22:r.addEntity(e[t-3],e[t-1]);break;case 23:r.addEntity(e[t-5],e[t-3]),r.setClass([e[t-5]],e[t]);break;case 24:case 25:this.$=e[t].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=e[t].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=e[t-3],r.addClass(e[t-2],e[t-1]);break;case 37:case 38:case 59:case 68:this.$=[e[t]];break;case 39:case 40:this.$=e[t-2].concat([e[t]]);break;case 41:this.$=e[t-2],r.setClass(e[t-1],e[t]);break;case 42:this.$=e[t-3],r.addCssStyles(e[t-2],e[t-1]);break;case 43:this.$=[e[t]];break;case 44:e[t-2].push(e[t]),this.$=e[t-2];break;case 46:this.$=e[t-1]+e[t];break;case 54:case 80:case 81:this.$=e[t].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 82:this.$=e[t];break;case 60:e[t].push(e[t-1]),this.$=e[t];break;case 61:this.$={type:e[t-1],name:e[t]};break;case 62:this.$={type:e[t-2],name:e[t-1],keys:e[t]};break;case 63:this.$={type:e[t-2],name:e[t-1],comment:e[t]};break;case 64:this.$={type:e[t-3],name:e[t-2],keys:e[t-1],comment:e[t]};break;case 65:case 67:case 70:this.$=e[t];break;case 66:this.$=e[t-1]+e[t];break;case 69:e[t-2].push(e[t]),this.$=e[t-2];break;case 71:this.$=e[t].replace(/"/g,"");break;case 72:this.$={cardA:e[t],relType:e[t-1],cardB:e[t-2]};break;case 73:this.$=r.Cardinality.ZERO_OR_ONE;break;case 74:this.$=r.Cardinality.ZERO_OR_MORE;break;case 75:this.$=r.Cardinality.ONE_OR_MORE;break;case 76:this.$=r.Cardinality.ONLY_ONE;break;case 77:this.$=r.Cardinality.MD_PARENT;break;case 78:this.$=r.Identification.NON_IDENTIFYING;break;case 79:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:o,24:u,26:h,28:_,29:14,30:15,31:16,32:17,33:g,34:d,35:k,36:j,37:W,40:S,43:q,44:M,48:D,50:R,51:T,52:I},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:o,24:u,26:h,28:_,29:14,30:15,31:16,32:17,33:g,34:d,35:k,36:j,37:W,40:S,43:q,44:M,48:D,50:R,51:T,52:I},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,64:35,15:[1,32],17:[1,33],20:[1,34],66:re,67:ne,68:ae,69:ce,70:oe}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(B,[2,54]),s(B,[2,55]),s(B,[2,56]),s(B,[2,57]),s(B,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:O,41:N},{16:47,40:O,41:N},{16:48,40:O,41:N},s(i,[2,4]),{11:49,40:S,48:D,50:R,51:T,52:I},{16:50,40:O,41:N},{18:51,19:[1,52],53:53,54:54,58:F},{11:56,40:S,48:D,50:R,51:T,52:I},{65:57,71:[1,58],72:[1,59]},s(Y,[2,73]),s(Y,[2,74]),s(Y,[2,75]),s(Y,[2,76]),s(Y,[2,77]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:P,38:60,41:z,42:A,45:62,46:63,48:G,49:K},s(X,[2,37]),s(X,[2,38]),{16:68,40:O,41:N,42:A},{13:P,38:69,41:z,42:A,45:62,46:63,48:G,49:K},{13:[1,70],15:[1,71]},s(i,[2,17],{64:35,12:72,17:[1,73],42:A,66:re,67:ne,68:ae,69:ce,70:oe}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:F},{55:76,58:[1,77]},{58:[2,65],59:[1,78]},{21:[1,79]},{64:80,66:re,67:ne,68:ae,69:ce,70:oe},s(pe,[2,78]),s(pe,[2,79]),{6:ye,10:be,39:81,42:me,47:ke},{40:[1,86],41:[1,87]},s(Ee,[2,43],{46:88,13:P,41:z,48:G,49:K}),s(L,[2,45]),s(L,[2,50]),s(L,[2,51]),s(L,[2,52]),s(L,[2,53]),s(i,[2,41],{42:A}),{6:ye,10:be,39:89,42:me,47:ke},{14:90,40:Q,50:H,73:J},{16:94,40:O,41:N},{11:95,40:S,48:D,50:R,51:T,52:I},{18:96,19:[1,97],53:53,54:54,58:F},s(i,[2,12]),{19:[2,60]},s(U,[2,61],{56:98,57:99,60:100,62:Se,63:Te}),s([19,58,62,63],[2,67]),{58:[2,66]},s(i,[2,22],{15:[1,104],17:[1,103]}),s([40,48,50,51,52],[2,72]),s(i,[2,36]),{13:P,41:z,45:105,46:63,48:G,49:K},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(X,[2,39]),s(X,[2,40]),s(L,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,80]),s(i,[2,81]),s(i,[2,82]),{13:[1,106],42:A},{13:[1,108],15:[1,107]},{19:[1,109]},s(i,[2,15]),s(U,[2,62],{57:110,61:[1,111],63:Te}),s(U,[2,63]),s(le,[2,68]),s(U,[2,71]),s(le,[2,70]),{18:112,19:[1,113],53:53,54:54,58:F},{16:114,40:O,41:N},s(Ee,[2,44],{46:88,13:P,41:z,48:G,49:K}),{14:115,40:Q,50:H,73:J},{16:116,40:O,41:N},{14:117,40:Q,50:H,73:J},s(i,[2,13]),s(U,[2,64]),{60:118,62:Se},{19:[1,119]},s(i,[2,20]),s(i,[2,23],{17:[1,120],42:A}),s(i,[2,11]),{13:[1,121],42:A},s(i,[2,10]),s(le,[2,69]),s(i,[2,18]),{18:122,19:[1,123],53:53,54:54,58:F},{14:124,40:Q,50:H,73:J},{19:[1,125]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{75:[2,60],78:[2,66]},parseError:n.__name(function(a,c){if(c.recoverable)this.trace(a);else{var l=new Error(a);throw l.hash=c,l}},"parseError"),parse:n.__name(function(a){var c=this,l=[0],r=[],f=[null],e=[],Z=this.table,t="",ee=0,Oe=0,ve=2,Ne=1,De=e.slice.call(arguments,1),p=Object.create(this.lexer),x={yy:{}};for(var ue in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ue)&&(x.yy[ue]=this.yy[ue]);p.setInput(a,x.yy),x.yy.lexer=p,x.yy.parser=this,typeof p.yylloc>"u"&&(p.yylloc={});var de=p.yylloc;e.push(de);var Le=p.options&&p.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function we(b){l.length=l.length-2*b,f.length=f.length-b,e.length=e.length-b}n.__name(we,"popStack");function Ae(){var b;return b=r.pop()||p.lex()||Ne,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=c.symbols_[b]||b),b}n.__name(Ae,"lex");for(var y,v,m,_e,w={},te,E,Ce,se;;){if(v=l[l.length-1],this.defaultActions[v]?m=this.defaultActions[v]:((y===null||typeof y>"u")&&(y=Ae()),m=Z[v]&&Z[v][y]),typeof m>"u"||!m.length||!m[0]){var fe="";se=[];for(te in Z[v])this.terminals_[te]&&te>ve&&se.push("'"+this.terminals_[te]+"'");p.showPosition?fe="Parse error on line "+(ee+1)+`:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ve=require("./chunk-XXDRQBXY-BgeRIUG1.cjs"),Me=require("./chunk-VR4S4FIN-Sx71KwIQ.cjs"),n=require("./mermaid.core-CRP55Hm1.cjs"),Be=require("./channel-DlkTPSf_.cjs");var ge=(function(){var s=n.__name(function(C,a,c,l){for(c=c||{},l=C.length;l--;c[C[l]]=a);return c},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],o=[1,10],u=[1,11],h=[1,12],_=[1,13],g=[1,23],d=[1,24],k=[1,25],j=[1,26],W=[1,27],S=[1,19],q=[1,28],M=[1,29],D=[1,20],R=[1,18],T=[1,21],I=[1,22],re=[1,36],ne=[1,37],ae=[1,38],ce=[1,39],oe=[1,40],B=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,66,67,68,69,70],O=[1,45],N=[1,46],F=[1,55],Y=[40,48,50,51,52,71,72],P=[1,66],z=[1,64],A=[1,61],G=[1,65],K=[1,67],X=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,66,67,68,69,70],pe=[66,67,68,69,70],ye=[1,85],be=[1,84],me=[1,82],ke=[1,83],Ee=[6,10,42,47],L=[6,10,13,41,42,47,48,49],Q=[1,93],H=[1,92],J=[1,91],U=[19,58],Se=[1,102],Te=[1,101],le=[19,58,61,63],he={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,"?":59,attributeKeyType:60,",":61,ATTRIBUTE_KEY:62,COMMENT:63,cardinality:64,relType:65,ZERO_OR_ONE:66,ZERO_OR_MORE:67,ONE_OR_MORE:68,ONLY_ONE:69,MD_PARENT:70,NON_IDENTIFYING:71,IDENTIFYING:72,WORD:73,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",59:"?",61:",",62:"ATTRIBUTE_KEY",63:"COMMENT",66:"ZERO_OR_ONE",67:"ZERO_OR_MORE",68:"ONE_OR_MORE",69:"ONLY_ONE",70:"MD_PARENT",71:"NON_IDENTIFYING",72:"IDENTIFYING",73:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[54,2],[55,1],[56,1],[56,3],[60,1],[57,1],[12,3],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[14,1],[14,1],[14,1]],performAction:n.__name(function(a,c,l,r,f,e,Z){var t=e.length-1;switch(f){case 1:break;case 2:this.$=[];break;case 3:e[t-1].push(e[t]),this.$=e[t-1];break;case 4:case 5:this.$=e[t];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(e[t-4]),r.addEntity(e[t-2]),r.addRelationship(e[t-4],e[t],e[t-2],e[t-3]);break;case 9:r.addEntity(e[t-8]),r.addEntity(e[t-4]),r.addRelationship(e[t-8],e[t],e[t-4],e[t-5]),r.setClass([e[t-8]],e[t-6]),r.setClass([e[t-4]],e[t-2]);break;case 10:r.addEntity(e[t-6]),r.addEntity(e[t-2]),r.addRelationship(e[t-6],e[t],e[t-2],e[t-3]),r.setClass([e[t-6]],e[t-4]);break;case 11:r.addEntity(e[t-6]),r.addEntity(e[t-4]),r.addRelationship(e[t-6],e[t],e[t-4],e[t-5]),r.setClass([e[t-4]],e[t-2]);break;case 12:r.addEntity(e[t-3]),r.addAttributes(e[t-3],e[t-1]);break;case 13:r.addEntity(e[t-5]),r.addAttributes(e[t-5],e[t-1]),r.setClass([e[t-5]],e[t-3]);break;case 14:r.addEntity(e[t-2]);break;case 15:r.addEntity(e[t-4]),r.setClass([e[t-4]],e[t-2]);break;case 16:r.addEntity(e[t]);break;case 17:r.addEntity(e[t-2]),r.setClass([e[t-2]],e[t]);break;case 18:r.addEntity(e[t-6],e[t-4]),r.addAttributes(e[t-6],e[t-1]);break;case 19:r.addEntity(e[t-8],e[t-6]),r.addAttributes(e[t-8],e[t-1]),r.setClass([e[t-8]],e[t-3]);break;case 20:r.addEntity(e[t-5],e[t-3]);break;case 21:r.addEntity(e[t-7],e[t-5]),r.setClass([e[t-7]],e[t-2]);break;case 22:r.addEntity(e[t-3],e[t-1]);break;case 23:r.addEntity(e[t-5],e[t-3]),r.setClass([e[t-5]],e[t]);break;case 24:case 25:this.$=e[t].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=e[t].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=e[t-3],r.addClass(e[t-2],e[t-1]);break;case 37:case 38:case 59:case 68:this.$=[e[t]];break;case 39:case 40:this.$=e[t-2].concat([e[t]]);break;case 41:this.$=e[t-2],r.setClass(e[t-1],e[t]);break;case 42:this.$=e[t-3],r.addCssStyles(e[t-2],e[t-1]);break;case 43:this.$=[e[t]];break;case 44:e[t-2].push(e[t]),this.$=e[t-2];break;case 46:this.$=e[t-1]+e[t];break;case 54:case 80:case 81:this.$=e[t].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 82:this.$=e[t];break;case 60:e[t].push(e[t-1]),this.$=e[t];break;case 61:this.$={type:e[t-1],name:e[t]};break;case 62:this.$={type:e[t-2],name:e[t-1],keys:e[t]};break;case 63:this.$={type:e[t-2],name:e[t-1],comment:e[t]};break;case 64:this.$={type:e[t-3],name:e[t-2],keys:e[t-1],comment:e[t]};break;case 65:case 67:case 70:this.$=e[t];break;case 66:this.$=e[t-1]+e[t];break;case 69:e[t-2].push(e[t]),this.$=e[t-2];break;case 71:this.$=e[t].replace(/"/g,"");break;case 72:this.$={cardA:e[t],relType:e[t-1],cardB:e[t-2]};break;case 73:this.$=r.Cardinality.ZERO_OR_ONE;break;case 74:this.$=r.Cardinality.ZERO_OR_MORE;break;case 75:this.$=r.Cardinality.ONE_OR_MORE;break;case 76:this.$=r.Cardinality.ONLY_ONE;break;case 77:this.$=r.Cardinality.MD_PARENT;break;case 78:this.$=r.Identification.NON_IDENTIFYING;break;case 79:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:o,24:u,26:h,28:_,29:14,30:15,31:16,32:17,33:g,34:d,35:k,36:j,37:W,40:S,43:q,44:M,48:D,50:R,51:T,52:I},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:o,24:u,26:h,28:_,29:14,30:15,31:16,32:17,33:g,34:d,35:k,36:j,37:W,40:S,43:q,44:M,48:D,50:R,51:T,52:I},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,64:35,15:[1,32],17:[1,33],20:[1,34],66:re,67:ne,68:ae,69:ce,70:oe}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(B,[2,54]),s(B,[2,55]),s(B,[2,56]),s(B,[2,57]),s(B,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:O,41:N},{16:47,40:O,41:N},{16:48,40:O,41:N},s(i,[2,4]),{11:49,40:S,48:D,50:R,51:T,52:I},{16:50,40:O,41:N},{18:51,19:[1,52],53:53,54:54,58:F},{11:56,40:S,48:D,50:R,51:T,52:I},{65:57,71:[1,58],72:[1,59]},s(Y,[2,73]),s(Y,[2,74]),s(Y,[2,75]),s(Y,[2,76]),s(Y,[2,77]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:P,38:60,41:z,42:A,45:62,46:63,48:G,49:K},s(X,[2,37]),s(X,[2,38]),{16:68,40:O,41:N,42:A},{13:P,38:69,41:z,42:A,45:62,46:63,48:G,49:K},{13:[1,70],15:[1,71]},s(i,[2,17],{64:35,12:72,17:[1,73],42:A,66:re,67:ne,68:ae,69:ce,70:oe}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:F},{55:76,58:[1,77]},{58:[2,65],59:[1,78]},{21:[1,79]},{64:80,66:re,67:ne,68:ae,69:ce,70:oe},s(pe,[2,78]),s(pe,[2,79]),{6:ye,10:be,39:81,42:me,47:ke},{40:[1,86],41:[1,87]},s(Ee,[2,43],{46:88,13:P,41:z,48:G,49:K}),s(L,[2,45]),s(L,[2,50]),s(L,[2,51]),s(L,[2,52]),s(L,[2,53]),s(i,[2,41],{42:A}),{6:ye,10:be,39:89,42:me,47:ke},{14:90,40:Q,50:H,73:J},{16:94,40:O,41:N},{11:95,40:S,48:D,50:R,51:T,52:I},{18:96,19:[1,97],53:53,54:54,58:F},s(i,[2,12]),{19:[2,60]},s(U,[2,61],{56:98,57:99,60:100,62:Se,63:Te}),s([19,58,62,63],[2,67]),{58:[2,66]},s(i,[2,22],{15:[1,104],17:[1,103]}),s([40,48,50,51,52],[2,72]),s(i,[2,36]),{13:P,41:z,45:105,46:63,48:G,49:K},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(X,[2,39]),s(X,[2,40]),s(L,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,80]),s(i,[2,81]),s(i,[2,82]),{13:[1,106],42:A},{13:[1,108],15:[1,107]},{19:[1,109]},s(i,[2,15]),s(U,[2,62],{57:110,61:[1,111],63:Te}),s(U,[2,63]),s(le,[2,68]),s(U,[2,71]),s(le,[2,70]),{18:112,19:[1,113],53:53,54:54,58:F},{16:114,40:O,41:N},s(Ee,[2,44],{46:88,13:P,41:z,48:G,49:K}),{14:115,40:Q,50:H,73:J},{16:116,40:O,41:N},{14:117,40:Q,50:H,73:J},s(i,[2,13]),s(U,[2,64]),{60:118,62:Se},{19:[1,119]},s(i,[2,20]),s(i,[2,23],{17:[1,120],42:A}),s(i,[2,11]),{13:[1,121],42:A},s(i,[2,10]),s(le,[2,69]),s(i,[2,18]),{18:122,19:[1,123],53:53,54:54,58:F},{14:124,40:Q,50:H,73:J},{19:[1,125]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{75:[2,60],78:[2,66]},parseError:n.__name(function(a,c){if(c.recoverable)this.trace(a);else{var l=new Error(a);throw l.hash=c,l}},"parseError"),parse:n.__name(function(a){var c=this,l=[0],r=[],f=[null],e=[],Z=this.table,t="",ee=0,Oe=0,ve=2,Ne=1,De=e.slice.call(arguments,1),p=Object.create(this.lexer),x={yy:{}};for(var ue in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ue)&&(x.yy[ue]=this.yy[ue]);p.setInput(a,x.yy),x.yy.lexer=p,x.yy.parser=this,typeof p.yylloc>"u"&&(p.yylloc={});var de=p.yylloc;e.push(de);var Le=p.options&&p.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function we(b){l.length=l.length-2*b,f.length=f.length-b,e.length=e.length-b}n.__name(we,"popStack");function Ae(){var b;return b=r.pop()||p.lex()||Ne,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=c.symbols_[b]||b),b}n.__name(Ae,"lex");for(var y,v,m,_e,w={},te,E,Ce,se;;){if(v=l[l.length-1],this.defaultActions[v]?m=this.defaultActions[v]:((y===null||typeof y>"u")&&(y=Ae()),m=Z[v]&&Z[v][y]),typeof m>"u"||!m.length||!m[0]){var fe="";se=[];for(te in Z[v])this.terminals_[te]&&te>ve&&se.push("'"+this.terminals_[te]+"'");p.showPosition?fe="Parse error on line "+(ee+1)+`:
|
|
2
2
|
`+p.showPosition()+`
|
|
3
3
|
Expecting `+se.join(", ")+", got '"+(this.terminals_[y]||y)+"'":fe="Parse error on line "+(ee+1)+": Unexpected "+(y==Ne?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(fe,{text:p.match,token:this.terminals_[y]||y,line:p.yylineno,loc:de,expected:se})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+y);switch(m[0]){case 1:l.push(y),f.push(p.yytext),e.push(p.yylloc),l.push(m[1]),y=null,Oe=p.yyleng,t=p.yytext,ee=p.yylineno,de=p.yylloc;break;case 2:if(E=this.productions_[m[1]][1],w.$=f[f.length-E],w._$={first_line:e[e.length-(E||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(E||1)].first_column,last_column:e[e.length-1].last_column},Le&&(w._$.range=[e[e.length-(E||1)].range[0],e[e.length-1].range[1]]),_e=this.performAction.apply(w,[t,Oe,ee,x.yy,m[1],f,e].concat(De)),typeof _e<"u")return _e;E&&(l=l.slice(0,-1*E*2),f=f.slice(0,-1*E),e=e.slice(0,-1*E)),l.push(this.productions_[m[1]][0]),f.push(w.$),e.push(w._$),Ce=Z[l[l.length-2]][l[l.length-1]],l.push(Ce);break;case 3:return!0}}return!0},"parse")},xe=(function(){var C={EOF:1,parseError:n.__name(function(c,l){if(this.yy.parser)this.yy.parser.parseError(c,l);else throw new Error(c)},"parseError"),setInput:n.__name(function(a,c){return this.yy=c||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n.__name(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var c=a.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:n.__name(function(a){var c=a.length,l=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var f=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:l?(l.length===r.length?this.yylloc.first_column:0)+r[r.length-l.length].length-l[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:n.__name(function(){return this._more=!0,this},"more"),reject:n.__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:n.__name(function(a){this.unput(this.match.slice(a))},"less"),pastInput:n.__name(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var a=this.pastInput(),c=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=Math.floor(21474508795e-1),E=5,s=2147483647,a=r=>Number.isSafeInteger(r)&&r>0&&r<=s,i=(r,e)=>{if(!Array.isArray(r.deniedPathSegments))throw new TypeError(`${e}: deniedPathSegments must be an array of path segment patterns (an empty array denies nothing)`);if(!Number.isSafeInteger(r.maxHtmlBytes)||r.maxHtmlBytes<=0||r.maxHtmlBytes>n)throw new RangeError(`${e}: maxHtmlBytes must be an integer from 1 to ${n}, got ${r.maxHtmlBytes}`)};class S extends Error{constructor(e,o){super(e,o),this.name="MarkdownResourceExhaustedError"}}class m extends Error{timeoutMs;constructor(e,o){super(e===null?"the conversion did not finish within the service's time limit":`the conversion did not finish in time (the call allowed ${e} ms)`,o),this.name="MarkdownConversionTimeoutError",this.timeoutMs=e}}class d extends Error{code;constructor(e,o,t){super(o,t),this.name="MarkdownConversionError",this.code=e}}exports.BLOCK_OFFSET_BYTES=E;exports.MAX_HTML_BYTES_LIMIT=n;exports.MAX_TIMER_MS=s;exports.MarkdownConversionError=d;exports.MarkdownConversionTimeoutError=m;exports.MarkdownResourceExhaustedError=S;exports.RESPONSE_HEADROOM_BYTES=65536;exports.assertConversionOptions=i;exports.isTimerDelay=a;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const a = 65536;
|
|
2
|
+
const t = Math.floor(21474508795e-1), i = 5, o = 2147483647, E = (r) => Number.isSafeInteger(r) && r > 0 && r <= o, m = (r, e) => {
|
|
3
|
+
if (!Array.isArray(r.deniedPathSegments))
|
|
4
|
+
throw new TypeError(`${e}: deniedPathSegments must be an array of path segment patterns (an empty array denies nothing)`);
|
|
5
|
+
if (!Number.isSafeInteger(r.maxHtmlBytes) || r.maxHtmlBytes <= 0 || r.maxHtmlBytes > t)
|
|
6
|
+
throw new RangeError(`${e}: maxHtmlBytes must be an integer from 1 to ${t}, got ${r.maxHtmlBytes}`);
|
|
7
|
+
};
|
|
8
|
+
class c extends Error {
|
|
9
|
+
/**
|
|
10
|
+
* Builds the error.
|
|
11
|
+
* エラーを組み立てる処理。
|
|
12
|
+
*
|
|
13
|
+
* @param message - Which limit stopped the conversion. どの上限で止まったか。
|
|
14
|
+
* @param options - The underlying failure as `cause`. 元の失敗 (`cause`)。
|
|
15
|
+
*/
|
|
16
|
+
constructor(e, s) {
|
|
17
|
+
super(e, s), this.name = "MarkdownResourceExhaustedError";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
class d extends Error {
|
|
21
|
+
/**
|
|
22
|
+
* The time limit the call set, in milliseconds; `null` when it set none and the service stopped at its own.
|
|
23
|
+
* 呼び出しが決めた時間の上限 (ミリ秒。決めずにサービスが自身の上限で止まった時は `null`)。
|
|
24
|
+
*/
|
|
25
|
+
timeoutMs;
|
|
26
|
+
/**
|
|
27
|
+
* Builds the error.
|
|
28
|
+
* エラーを組み立てる処理。
|
|
29
|
+
*
|
|
30
|
+
* @param timeoutMs - The time limit that passed, in milliseconds, or `null` when it is not known. 過ぎた時間の上限 (ミリ秒。知らなければ `null`)。
|
|
31
|
+
* @param options - The underlying failure as `cause`. 元の失敗 (`cause`)。
|
|
32
|
+
*/
|
|
33
|
+
constructor(e, s) {
|
|
34
|
+
super(e === null ? "the conversion did not finish within the service's time limit" : `the conversion did not finish in time (the call allowed ${e} ms)`, s), this.name = "MarkdownConversionTimeoutError", this.timeoutMs = e;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
class h extends Error {
|
|
38
|
+
/** Why the conversion failed. 失敗の理由。 */
|
|
39
|
+
code;
|
|
40
|
+
/**
|
|
41
|
+
* Builds the error.
|
|
42
|
+
* エラーを組み立てる処理。
|
|
43
|
+
*
|
|
44
|
+
* @param code - Why the conversion failed. 失敗の理由。
|
|
45
|
+
* @param message - The converter's explanation. 変換器の説明。
|
|
46
|
+
* @param options - The underlying failure as `cause`. 元の失敗 (`cause`)。
|
|
47
|
+
*/
|
|
48
|
+
constructor(e, s, n) {
|
|
49
|
+
super(s, n), this.name = "MarkdownConversionError", this.code = e;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
i as B,
|
|
54
|
+
t as M,
|
|
55
|
+
a as R,
|
|
56
|
+
h as a,
|
|
57
|
+
d as b,
|
|
58
|
+
c,
|
|
59
|
+
o as d,
|
|
60
|
+
m as e,
|
|
61
|
+
E as i
|
|
62
|
+
};
|