@aiquants/markdown 4.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.
Files changed (170) hide show
  1. package/README.md +107 -20
  2. package/dist/{abnfDiagram-VRR7QNED-utxwo7Ri.js → abnfDiagram-VRR7QNED-D7Rp9EaV.js} +3 -3
  3. package/dist/{abnfDiagram-VRR7QNED-DL9JJfMF.cjs → abnfDiagram-VRR7QNED-KTGT9TWM.cjs} +1 -1
  4. package/dist/{arc-BY7loL0l.cjs → arc-D5T_urCC.cjs} +1 -1
  5. package/dist/arc-DzZml7Bc.js +83 -0
  6. package/dist/{architectureDiagram-ZJ3FMSHR-CLLwinmD.cjs → architectureDiagram-ZJ3FMSHR-BOo3y9aD.cjs} +1 -1
  7. package/dist/{architectureDiagram-ZJ3FMSHR-DpnBy_s1.js → architectureDiagram-ZJ3FMSHR-DLrGYTYy.js} +123 -123
  8. package/dist/{blockDiagram-677ZJIJ3-C8dybZZU.js → blockDiagram-677ZJIJ3-B60l5Fpl.js} +166 -166
  9. package/dist/{blockDiagram-677ZJIJ3-Cs5tpWQ-.cjs → blockDiagram-677ZJIJ3-DnjCjo0a.cjs} +1 -1
  10. package/dist/{c4Diagram-LMCZKHZV-3aG0bDyP.js → c4Diagram-LMCZKHZV-BmbplKCu.js} +2 -2
  11. package/dist/{c4Diagram-LMCZKHZV-B-rz2a3v.cjs → c4Diagram-LMCZKHZV-bd8fWQ1F.cjs} +1 -1
  12. package/dist/channel-B3oXm84X.js +5 -0
  13. package/dist/{channel-Dn2hPSB8.cjs → channel-DJ_PyD9w.cjs} +1 -1
  14. package/dist/{chunk-2Q5K7J3B-CYpyj9EA.js → chunk-2Q5K7J3B-C0hbxO3D.js} +1 -1
  15. package/dist/{chunk-2Q5K7J3B-B7QkO_05.cjs → chunk-2Q5K7J3B-CWLCO342.cjs} +1 -1
  16. package/dist/{chunk-32BRIVSS-BjI5igEa.cjs → chunk-32BRIVSS-Cb9nTxqN.cjs} +1 -1
  17. package/dist/{chunk-32BRIVSS-DcLe6F1l.js → chunk-32BRIVSS-DUWtkDEY.js} +1 -1
  18. package/dist/{chunk-5VM5RSS4-C4ILSCRb.js → chunk-5VM5RSS4-C3mSh-gE.js} +1 -1
  19. package/dist/{chunk-5VM5RSS4-DafQyxAv.cjs → chunk-5VM5RSS4-DHA5n_Ls.cjs} +1 -1
  20. package/dist/{chunk-EX3LRPZG-BXZDK2R1.cjs → chunk-EX3LRPZG-ByY6_kep.cjs} +1 -1
  21. package/dist/{chunk-EX3LRPZG-CTaiVHYY.js → chunk-EX3LRPZG-DCF1zjtT.js} +50 -50
  22. package/dist/{chunk-JWPE2WC7-B-nuuS4b.js → chunk-JWPE2WC7-CPLOunIL.js} +1 -1
  23. package/dist/{chunk-JWPE2WC7-CNZBI1Pb.cjs → chunk-JWPE2WC7-CUBzYD4G.cjs} +1 -1
  24. package/dist/{chunk-MOJQB5TN-D1oF99aM.js → chunk-MOJQB5TN-CmOhW6SK.js} +9 -9
  25. package/dist/{chunk-MOJQB5TN-Dh_1HfSC.cjs → chunk-MOJQB5TN-P8-yb3-j.cjs} +1 -1
  26. package/dist/{chunk-PUDLZKDR-CPadtN2C.js → chunk-PUDLZKDR-DH7B7ZTK.js} +22 -22
  27. package/dist/{chunk-PUDLZKDR-CMFJFweY.cjs → chunk-PUDLZKDR-pKdIELvz.cjs} +1 -1
  28. package/dist/{chunk-RYQCIY6F-DxuegR0d.js → chunk-RYQCIY6F-C7ytn_QX.js} +6 -6
  29. package/dist/{chunk-RYQCIY6F-C6453DQl.cjs → chunk-RYQCIY6F-DcvQCEoc.cjs} +1 -1
  30. package/dist/{chunk-V7JOEXUC-ziE5DrnY.js → chunk-V7JOEXUC-BgLcssUF.js} +5 -5
  31. package/dist/{chunk-V7JOEXUC-l9PaMPOT.cjs → chunk-V7JOEXUC-CtXgqODy.cjs} +1 -1
  32. package/dist/{chunk-VR4S4FIN-BiCYvwb8.js → chunk-VR4S4FIN-BK6xeIQk.js} +3 -3
  33. package/dist/{chunk-VR4S4FIN-CCCnXTuJ.cjs → chunk-VR4S4FIN-Cc4GDi2Z.cjs} +1 -1
  34. package/dist/{chunk-XXDRQBXY-BFKT7vFo.js → chunk-XXDRQBXY-COtZ25Ez.js} +1 -1
  35. package/dist/{chunk-XXDRQBXY-D5IbqpUM.cjs → chunk-XXDRQBXY-D1OixGzR.cjs} +1 -1
  36. package/dist/{classDiagram-OUVF2IWQ-C1AZm4pB.cjs → classDiagram-OUVF2IWQ-DDLmqaG6.cjs} +1 -1
  37. package/dist/{classDiagram-v2-EOCWNBFH-KA_F_TBQ.js → classDiagram-OUVF2IWQ-Jc-IwOm0.js} +2 -2
  38. package/dist/{classDiagram-v2-EOCWNBFH-C1AZm4pB.cjs → classDiagram-v2-EOCWNBFH-DDLmqaG6.cjs} +1 -1
  39. package/dist/{classDiagram-OUVF2IWQ-KA_F_TBQ.js → classDiagram-v2-EOCWNBFH-Jc-IwOm0.js} +2 -2
  40. package/dist/components/MarkdownRenderer.d.ts +6 -3
  41. package/dist/components/MarkdownViewer.d.ts +3 -2
  42. package/dist/components/NodesRenderer.d.ts +1 -5
  43. package/dist/components/embeds/ClientFrame.d.ts +13 -0
  44. package/dist/components/embeds/LinkCard.d.ts +9 -0
  45. package/dist/components/embeds/ProviderEmbed.d.ts +11 -0
  46. package/dist/components/embeds/embedLabels.d.ts +12 -0
  47. package/dist/components/embeds/frameMessages.d.ts +7 -0
  48. package/dist/components/embeds/markdownEmbeds.d.ts +2 -0
  49. package/dist/components/embeds/requestQueue.d.ts +16 -0
  50. package/dist/components/embeds.d.ts +0 -8
  51. package/dist/components/htmlSanitizer.d.ts +4 -0
  52. package/dist/components/mdastNodes/HTMLBlockContainerNode.d.ts +1 -2
  53. package/dist/components/rawHtml.d.ts +6 -3
  54. package/dist/components/viewerLabels.d.ts +3 -1
  55. package/dist/{cose-bilkent-JH36ORCC-B_16TV-v.js → cose-bilkent-JH36ORCC-DaucPocG.js} +1 -1
  56. package/dist/{cose-bilkent-JH36ORCC-BQ2K2GyI.cjs → cose-bilkent-JH36ORCC-OwiXHdQY.cjs} +1 -1
  57. package/dist/css/zenn-content.css +0 -40
  58. package/dist/{cynefinDiagram-TSTJHNR4-Dq7UoRYB.cjs → cynefinDiagram-TSTJHNR4-Ag-HcuUm.cjs} +1 -1
  59. package/dist/{cynefinDiagram-TSTJHNR4-DTV6ORFc.js → cynefinDiagram-TSTJHNR4-Dkmz7gDw.js} +47 -47
  60. package/dist/{dagre-VKFMJZFB-kSrm5dp4.js → dagre-VKFMJZFB-BHGdcjt3.js} +27 -27
  61. package/dist/{dagre-VKFMJZFB-PCi8s-PP.cjs → dagre-VKFMJZFB-Q4CcAQ09.cjs} +1 -1
  62. package/dist/{diagram-FQU43EPY-D3dKlAPv.js → diagram-FQU43EPY-DBASKnKu.js} +42 -42
  63. package/dist/{diagram-FQU43EPY-wTUTIyQQ.cjs → diagram-FQU43EPY-jWCrN_AW.cjs} +1 -1
  64. package/dist/{diagram-G47NLZAW-_4FrgCGJ.cjs → diagram-G47NLZAW-B4XMStX7.cjs} +1 -1
  65. package/dist/{diagram-G47NLZAW-HJlhMCYj.js → diagram-G47NLZAW-BY1mmnYA.js} +83 -83
  66. package/dist/{diagram-NH7WQ7WH-ByCeah-n.cjs → diagram-NH7WQ7WH-BS1eEa9R.cjs} +1 -1
  67. package/dist/{diagram-NH7WQ7WH-CgeHmdJL.js → diagram-NH7WQ7WH-BXFvYRtm.js} +18 -18
  68. package/dist/{diagram-OA4YK3LP-C0IhePjD.cjs → diagram-OA4YK3LP-CTaL_2Nc.cjs} +1 -1
  69. package/dist/{diagram-OA4YK3LP-CwJcZGHD.js → diagram-OA4YK3LP-DgGrzezu.js} +61 -61
  70. package/dist/{diagram-WEI45ONY-v1LUmWAx.js → diagram-WEI45ONY-BHxWKH3v.js} +21 -21
  71. package/dist/{diagram-WEI45ONY-Cf-TVNEb.cjs → diagram-WEI45ONY-DX7BGSMI.cjs} +1 -1
  72. package/dist/{ebnfDiagram-CCIWWBDH-DqZtnwGP.js → ebnfDiagram-CCIWWBDH-BUK_anpV.js} +5 -5
  73. package/dist/{ebnfDiagram-CCIWWBDH-k5XOUGml.cjs → ebnfDiagram-CCIWWBDH-BpDmVVJY.cjs} +1 -1
  74. package/dist/embeds/frames.d.ts +4 -0
  75. package/dist/embeds/linkCards.d.ts +16 -0
  76. package/dist/embeds/placeholder.d.ts +15 -0
  77. package/dist/embeds/providers.d.ts +73 -0
  78. package/dist/embeds/testing.cjs +1 -0
  79. package/dist/embeds/testing.d.ts +7 -0
  80. package/dist/embeds/testing.js +67 -0
  81. package/dist/embeds.cjs +1 -0
  82. package/dist/embeds.d.ts +4 -0
  83. package/dist/embeds.js +94 -0
  84. package/dist/{erDiagram-Q63AITRT-DFet1VTy.cjs → erDiagram-Q63AITRT-Cd9H9BtP.cjs} +1 -1
  85. package/dist/{erDiagram-Q63AITRT-D6kP6d5J.js → erDiagram-Q63AITRT-Qb2bmkNp.js} +9 -9
  86. package/dist/{extractHeadings-B2I83li5.js → extractHeadings-B2pUyEPa.js} +5603 -5517
  87. package/dist/extractHeadings-DgefF9l1.cjs +311 -0
  88. package/dist/flowDiagram-23GEKE2U-BOmNlv7X.cjs +1 -0
  89. package/dist/flowDiagram-23GEKE2U-DMZnRz-6.js +7 -0
  90. package/dist/{ganttDiagram-NO4QXBWP-I9DxJwkX.js → ganttDiagram-NO4QXBWP-BVISsrzr.js} +69 -69
  91. package/dist/{ganttDiagram-NO4QXBWP-CEQqLRYx.cjs → ganttDiagram-NO4QXBWP-C6-ExcDz.cjs} +1 -1
  92. package/dist/{gitGraphDiagram-IHSO6WYX-p_7WQssC.js → gitGraphDiagram-IHSO6WYX-BDVA2TFP.js} +38 -38
  93. package/dist/{gitGraphDiagram-IHSO6WYX-yyEwsmHH.cjs → gitGraphDiagram-IHSO6WYX-DLzPc702.cjs} +1 -1
  94. package/dist/index.cjs +1 -1
  95. package/dist/index.client.cjs +1 -1
  96. package/dist/index.client.d.ts +1 -10
  97. package/dist/index.client.js +41 -49
  98. package/dist/index.js +41 -49
  99. package/dist/index.server.cjs +1 -1
  100. package/dist/index.server.d.ts +0 -2
  101. package/dist/index.server.js +123 -168
  102. package/dist/{infoDiagram-FWYZ7A6U-C9L5rIcg.js → infoDiagram-FWYZ7A6U-D31UwqjR.js} +1 -1
  103. package/dist/{infoDiagram-FWYZ7A6U-BFCkTfAI.cjs → infoDiagram-FWYZ7A6U-DMF_wb2h.cjs} +1 -1
  104. package/dist/{ishikawaDiagram-FXEZZL3T-B3TjOzka.cjs → ishikawaDiagram-FXEZZL3T-DUlnwraq.cjs} +1 -1
  105. package/dist/{ishikawaDiagram-FXEZZL3T-uxcpJtLF.js → ishikawaDiagram-FXEZZL3T-XA6-gyHY.js} +35 -35
  106. package/dist/{journeyDiagram-5HDEW3XC-DMq3piuW.js → journeyDiagram-5HDEW3XC-B8sfsWpu.js} +39 -39
  107. package/dist/{journeyDiagram-5HDEW3XC-CvtPgaNR.cjs → journeyDiagram-5HDEW3XC-CwQyFcYa.cjs} +1 -1
  108. package/dist/{kanban-definition-HUTT4EX6-DJ9sXiRP.cjs → kanban-definition-HUTT4EX6-BjPlt2-E.cjs} +1 -1
  109. package/dist/{kanban-definition-HUTT4EX6-Dfal8jdL.js → kanban-definition-HUTT4EX6-FTrTBare.js} +123 -123
  110. package/dist/{linear-CLykHvhQ.cjs → linear-D3AJM3sY.cjs} +1 -1
  111. package/dist/{linear-CvzPdVAO.js → linear-DI9P_z72.js} +32 -32
  112. package/dist/markdown.css +1 -1
  113. package/dist/{mindmap-definition-LN4V7U3C-CErimIK1.cjs → mindmap-definition-LN4V7U3C-CxgWZidl.cjs} +1 -1
  114. package/dist/{mindmap-definition-LN4V7U3C-C8erO2Mh.js → mindmap-definition-LN4V7U3C-YW4YcL9x.js} +33 -33
  115. package/dist/{pegDiagram-2B236MQR-DBL8X0k9.cjs → pegDiagram-2B236MQR-CUo7q5bl.cjs} +1 -1
  116. package/dist/{pegDiagram-2B236MQR-CECcXaCN.js → pegDiagram-2B236MQR-sJjLKeF3.js} +5 -5
  117. package/dist/{pieDiagram-ENE6RG2P-B_-x0Nvj.cjs → pieDiagram-ENE6RG2P-Cy_sUuLQ.cjs} +1 -1
  118. package/dist/{pieDiagram-ENE6RG2P-CWlf16nv.js → pieDiagram-ENE6RG2P-D4VanIOv.js} +58 -58
  119. package/dist/providers-Bxr2Wb-j.cjs +1 -0
  120. package/dist/providers-Drq7MT_K.js +209 -0
  121. package/dist/{quadrantDiagram-ABIIQ3AL-HKlopKX4.cjs → quadrantDiagram-ABIIQ3AL-D3c8xLpt.cjs} +1 -1
  122. package/dist/{quadrantDiagram-ABIIQ3AL-JpouSW89.js → quadrantDiagram-ABIIQ3AL-ubxphjb_.js} +48 -48
  123. package/dist/{railroadDiagram-RFXS5EU6-CLTBEsir.js → railroadDiagram-RFXS5EU6-DvpD4C_A.js} +3 -3
  124. package/dist/{railroadDiagram-RFXS5EU6-B-v61EFn.cjs → railroadDiagram-RFXS5EU6-_Q4W5hB-.cjs} +1 -1
  125. package/dist/{requirementDiagram-TGXJPOKE-4vCejkrF.cjs → requirementDiagram-TGXJPOKE-DdYIO-wU.cjs} +1 -1
  126. package/dist/{requirementDiagram-TGXJPOKE-DtoTpDLe.js → requirementDiagram-TGXJPOKE-Dk_6BuX9.js} +3 -3
  127. package/dist/{sankeyDiagram-HTMAVEWB-WxnjUz1I.js → sankeyDiagram-HTMAVEWB-s3Kd7T8n.js} +67 -67
  128. package/dist/{sankeyDiagram-HTMAVEWB-Bp8p_ojk.cjs → sankeyDiagram-HTMAVEWB-zuYg6LTg.cjs} +1 -1
  129. package/dist/{sequenceDiagram-DBY2YBRQ-BUPaWSIG.cjs → sequenceDiagram-DBY2YBRQ-BvNPCevg.cjs} +1 -1
  130. package/dist/{sequenceDiagram-DBY2YBRQ-DGJcC2MQ.js → sequenceDiagram-DBY2YBRQ-YQic4wxL.js} +47 -47
  131. package/dist/{sizeCapture-X5ZJPWSS-Dk82fAT8.cjs → sizeCapture-X5ZJPWSS-BqrdzzsI.cjs} +1 -1
  132. package/dist/{sizeCapture-X5ZJPWSS-BmP0pJAx.js → sizeCapture-X5ZJPWSS-qMsWGfjy.js} +1 -1
  133. package/dist/{stateDiagram-2N3HPSRC-ZL_eFTbb.js → stateDiagram-2N3HPSRC-D1Ub8LYq.js} +22 -22
  134. package/dist/{stateDiagram-2N3HPSRC-CL5Omkqs.cjs → stateDiagram-2N3HPSRC-Ds8f-scd.cjs} +1 -1
  135. package/dist/{stateDiagram-v2-6OUMAXLB-BgOqjiSL.js → stateDiagram-v2-6OUMAXLB-DW8wjtk3.js} +2 -2
  136. package/dist/{stateDiagram-v2-6OUMAXLB-D3Zgp8xl.cjs → stateDiagram-v2-6OUMAXLB-PmrsPXuZ.cjs} +1 -1
  137. package/dist/styles/markdown.css +1 -1
  138. package/dist/{swimlanes-5IMT3BWC-GB1p75ou.js → swimlanes-5IMT3BWC-C8P8vU0w.js} +313 -313
  139. package/dist/{swimlanes-5IMT3BWC-CuW1KWfs.cjs → swimlanes-5IMT3BWC-jZhcesRT.cjs} +1 -1
  140. package/dist/{swimlanesDiagram-G3AALYLV-Jr2ZWz3z.js → swimlanesDiagram-G3AALYLV-B9FKeJRf.js} +2 -2
  141. package/dist/{swimlanesDiagram-G3AALYLV-Di_Nug7g.cjs → swimlanesDiagram-G3AALYLV-M5Cg2MHU.cjs} +1 -1
  142. package/dist/{timeline-definition-FHXFAJF6-663e-yVA.js → timeline-definition-FHXFAJF6-Ch-He--D.js} +34 -34
  143. package/dist/{timeline-definition-FHXFAJF6-BKVe7Qad.cjs → timeline-definition-FHXFAJF6-DZm1-KlQ.cjs} +1 -1
  144. package/dist/{vennDiagram-L72KCM5P-BDGC8Vm3.js → vennDiagram-L72KCM5P-CaoPscCM.js} +92 -92
  145. package/dist/{vennDiagram-L72KCM5P-2NIIKtsl.cjs → vennDiagram-L72KCM5P-mUSI238J.cjs} +1 -1
  146. package/dist/{wardleyDiagram-EHGQE667-IbGr9hGV.js → wardleyDiagram-EHGQE667-CSAqF366.js} +11 -11
  147. package/dist/{wardleyDiagram-EHGQE667-BrTNZSmG.cjs → wardleyDiagram-EHGQE667-CkKP97H-.cjs} +1 -1
  148. package/dist/{xychartDiagram-FW5EYKEG-MCkmgF8g.cjs → xychartDiagram-FW5EYKEG-BivGpkVk.cjs} +1 -1
  149. package/dist/{xychartDiagram-FW5EYKEG-CbxKOQYO.js → xychartDiagram-FW5EYKEG-OEsTD_k4.js} +37 -37
  150. package/package.json +22 -8
  151. package/dist/arc-Byq9kr_0.js +0 -83
  152. package/dist/channel-BoXFYC1g.js +0 -5
  153. package/dist/components/mdastNodes/BlockLinkNode.d.ts +0 -5
  154. package/dist/components/mdastNodes/RichLinkCard.d.ts +0 -8
  155. package/dist/components/mdastNodes/TwitterEmbedNode.d.ts +0 -25
  156. package/dist/components/mdastNodes/YouTubeEmbedNode.d.ts +0 -6
  157. package/dist/extractHeadings-R7NxLZJP.cjs +0 -310
  158. package/dist/flowDiagram-23GEKE2U-BTXvBdte.js +0 -7
  159. package/dist/flowDiagram-23GEKE2U-C81VZYM7.cjs +0 -1
  160. package/dist/plugins/createIntentTweetLink.d.ts +0 -10
  161. package/dist/plugins/extractYouTubeVideoId.d.ts +0 -5
  162. package/dist/plugins/fetchSiteMetadata.d.ts +0 -9
  163. package/dist/plugins/remark-auto-heading-id.d.ts +0 -2
  164. package/dist/plugins/remark-block-link-metadata.d.ts +0 -23
  165. package/dist/plugins/remark-block-link.d.ts +0 -12
  166. package/dist/plugins/remark-twitter-embed.d.ts +0 -20
  167. package/dist/plugins/remark-youtube-embed.d.ts +0 -14
  168. package/dist/simple-logger-DZxBpX7v.cjs +0 -1
  169. package/dist/simple-logger-i94ikRyH.js +0 -101
  170. package/dist/utils/getFaviconUrl.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- import { _ as o, W as ot, aw as ut, as as dt, b5 as yt, aj as ft, a6 as pt, ad as it, U as gt, V as kt, Q as mt, O as wt, ae as _t, a0 as bt } from "./extractHeadings-B2I83li5.js";
1
+ import { _ as o, J as ot, ao as ut, ak as dt, aZ as yt, ab as ft, Y as pt, a5 as it, A as gt, G as kt, z as mt, y as wt, a6 as _t, Q as bt } from "./extractHeadings-B2pUyEPa.js";
2
2
  var J = (function() {
3
3
  var e = /* @__PURE__ */ o(function(T, t, s, i) {
4
4
  for (s = s || {}, i = T.length; i--; s[T[i]] = t) ;
@@ -35,29 +35,29 @@ var J = (function() {
35
35
  }
36
36
  }, "parseError"),
37
37
  parse: /* @__PURE__ */ o(function(t) {
38
- var s = this, i = [0], c = [], p = [null], n = [], v = this.table, w = "", I = 0, $ = 0, L = 2, A = 1, V = n.slice.call(arguments, 1), b = Object.create(this.lexer), S = { yy: {} };
38
+ var s = this, i = [0], c = [], p = [null], n = [], v = this.table, w = "", I = 0, $ = 0, L = 2, A = 1, C = n.slice.call(arguments, 1), b = Object.create(this.lexer), S = { yy: {} };
39
39
  for (var P in this.yy)
40
40
  Object.prototype.hasOwnProperty.call(this.yy, P) && (S.yy[P] = this.yy[P]);
41
41
  b.setInput(t, S.yy), S.yy.lexer = b, S.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {});
42
42
  var R = b.yylloc;
43
43
  n.push(R);
44
- var U = b.options && b.options.ranges;
44
+ var G = b.options && b.options.ranges;
45
45
  typeof S.yy.parseError == "function" ? this.parseError = S.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
46
- function Y(B) {
46
+ function X(B) {
47
47
  i.length = i.length - 2 * B, p.length = p.length - B, n.length = n.length - B;
48
48
  }
49
- o(Y, "popStack");
49
+ o(X, "popStack");
50
50
  function tt() {
51
51
  var B;
52
52
  return B = c.pop() || b.lex() || A, typeof B != "number" && (B instanceof Array && (c = B, B = c.pop()), B = s.symbols_[B] || B), B;
53
53
  }
54
54
  o(tt, "lex");
55
- for (var M, W, N, K, j = {}, G, C, et, Z; ; ) {
55
+ for (var M, W, N, K, z = {}, U, V, et, Z; ; ) {
56
56
  if (W = i[i.length - 1], this.defaultActions[W] ? N = this.defaultActions[W] : ((M === null || typeof M > "u") && (M = tt()), N = v[W] && v[W][M]), typeof N > "u" || !N.length || !N[0]) {
57
57
  var Q = "";
58
58
  Z = [];
59
- for (G in v[W])
60
- this.terminals_[G] && G > L && Z.push("'" + this.terminals_[G] + "'");
59
+ for (U in v[W])
60
+ this.terminals_[U] && U > L && Z.push("'" + this.terminals_[U] + "'");
61
61
  b.showPosition ? Q = "Parse error on line " + (I + 1) + `:
62
62
  ` + b.showPosition() + `
63
63
  Expecting ` + Z.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Q = "Parse error on line " + (I + 1) + ": Unexpected " + (M == A ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(Q, {
@@ -75,15 +75,15 @@ Expecting ` + Z.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Q = "
75
75
  i.push(M), p.push(b.yytext), n.push(b.yylloc), i.push(N[1]), M = null, $ = b.yyleng, w = b.yytext, I = b.yylineno, R = b.yylloc;
76
76
  break;
77
77
  case 2:
78
- if (C = this.productions_[N[1]][1], j.$ = p[p.length - C], j._$ = {
79
- first_line: n[n.length - (C || 1)].first_line,
78
+ if (V = this.productions_[N[1]][1], z.$ = p[p.length - V], z._$ = {
79
+ first_line: n[n.length - (V || 1)].first_line,
80
80
  last_line: n[n.length - 1].last_line,
81
- first_column: n[n.length - (C || 1)].first_column,
81
+ first_column: n[n.length - (V || 1)].first_column,
82
82
  last_column: n[n.length - 1].last_column
83
- }, U && (j._$.range = [
84
- n[n.length - (C || 1)].range[0],
83
+ }, G && (z._$.range = [
84
+ n[n.length - (V || 1)].range[0],
85
85
  n[n.length - 1].range[1]
86
- ]), K = this.performAction.apply(j, [
86
+ ]), K = this.performAction.apply(z, [
87
87
  w,
88
88
  $,
89
89
  I,
@@ -91,9 +91,9 @@ Expecting ` + Z.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Q = "
91
91
  N[1],
92
92
  p,
93
93
  n
94
- ].concat(V)), typeof K < "u")
94
+ ].concat(C)), typeof K < "u")
95
95
  return K;
96
- C && (i = i.slice(0, -1 * C * 2), p = p.slice(0, -1 * C), n = n.slice(0, -1 * C)), i.push(this.productions_[N[1]][0]), p.push(j.$), n.push(j._$), et = v[i[i.length - 2]][i[i.length - 1]], i.push(et);
96
+ V && (i = i.slice(0, -1 * V * 2), p = p.slice(0, -1 * V), n = n.slice(0, -1 * V)), i.push(this.productions_[N[1]][0]), p.push(z.$), n.push(z._$), et = v[i[i.length - 2]][i[i.length - 1]], i.push(et);
97
97
  break;
98
98
  case 3:
99
99
  return !0;
@@ -359,9 +359,9 @@ var xt = J, H, vt = (H = class {
359
359
  } : void 0, s = `ishikawa-arrow-${h}`;
360
360
  g || E.append("defs").append("marker").attr("id", s).attr("viewBox", "0 0 10 10").attr("refX", 0).attr("refY", 5).attr("markerWidth", 6).attr("markerHeight", 6).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 Z").attr("class", "ishikawa-arrow");
361
361
  let i = 0, c = F;
362
- const p = g ? void 0 : z(E, i, c, i, c, "ishikawa-spine");
362
+ const p = g ? void 0 : j(E, i, c, i, c, "ishikawa-spine");
363
363
  if (Lt(E, i, c, y.text, k, t), !_.length) {
364
- g && z(E, i, c, i, c, "ishikawa-spine", t), at(O, x, D);
364
+ g && j(E, i, c, i, c, "ishikawa-spine", t), at(O, x, D);
365
365
  return;
366
366
  }
367
367
  i -= 20;
@@ -371,20 +371,20 @@ var xt = J, H, vt = (H = class {
371
371
  const S = F * 2, P = F * 0.3;
372
372
  L = Math.max(P, S * (w.total / $)), A = Math.max(P, S * (I.total / $));
373
373
  }
374
- const V = k * 2;
375
- L = Math.max(L, w.max * V), A = Math.max(A, I.max * V), c = Math.max(L, F), p && p.attr("y1", c).attr("y2", c), E.select(".ishikawa-head-group").attr("transform", `translate(0,${c})`);
374
+ const C = k * 2;
375
+ L = Math.max(L, w.max * C), A = Math.max(A, I.max * C), c = Math.max(L, F), p && p.attr("y1", c).attr("y2", c), E.select(".ishikawa-head-group").attr("transform", `translate(0,${c})`);
376
376
  const b = Math.ceil(_.length / 2);
377
377
  for (let S = 0; S < b; S++) {
378
378
  const P = E.append("g").attr("class", "ishikawa-pair");
379
- for (const [R, U, Y] of [
379
+ for (const [R, G, X] of [
380
380
  [_[S * 2], -1, L],
381
381
  [_[S * 2 + 1], 1, A]
382
382
  ])
383
- R && Pt(P, R, i, c, U, Y, k, t);
384
- i = P.selectAll("text").nodes().reduce((R, U) => Math.min(R, U.getBBox().x), 1 / 0);
383
+ R && Pt(P, R, i, c, G, X, k, t);
384
+ i = P.selectAll("text").nodes().reduce((R, G) => Math.min(R, G.getBBox().x), 1 / 0);
385
385
  }
386
386
  if (g)
387
- z(E, i, c, 0, c, "ishikawa-spine", t);
387
+ j(E, i, c, 0, c, "ishikawa-spine", t);
388
388
  else {
389
389
  p.attr("x1", i);
390
390
  const S = `url(#${s})`;
@@ -401,7 +401,7 @@ var xt = J, H, vt = (H = class {
401
401
  { total: 0, max: 0 }
402
402
  );
403
403
  }, "sideStats"), Lt = /* @__PURE__ */ o((e, h, r, a, l, y) => {
404
- const f = Math.max(6, Math.floor(110 / (l * 0.6))), d = e.append("g").attr("class", "ishikawa-head-group").attr("transform", `translate(${h},${r})`), m = X(
404
+ const f = Math.max(6, Math.floor(110 / (l * 0.6))), d = e.append("g").attr("class", "ishikawa-head-group").attr("transform", `translate(${h},${r})`), m = Y(
405
405
  d,
406
406
  ct(a, f),
407
407
  0,
@@ -440,7 +440,7 @@ var xt = J, H, vt = (H = class {
440
440
  }, "walk");
441
441
  return l(e, -1, 2), { entries: r, yOrder: a };
442
442
  }, "flattenTree"), Mt = /* @__PURE__ */ o((e, h, r, a, l, y, f) => {
443
- const d = e.append("g").attr("class", "ishikawa-label-group"), u = X(
443
+ const d = e.append("g").attr("class", "ishikawa-label-group"), u = Y(
444
444
  d,
445
445
  h,
446
446
  r,
@@ -484,7 +484,7 @@ var xt = J, H, vt = (H = class {
484
484
  e.append(() => O);
485
485
  }, "drawArrowMarker"), Pt = /* @__PURE__ */ o((e, h, r, a, l, y, f, d) => {
486
486
  const m = h.children ?? [], u = y * (m.length ? 1 : 0.2), k = -st * u, g = nt * u * l, _ = r + k, x = a + g;
487
- if (z(e, r, a, _, x, "ishikawa-branch", d), d && q(e, r, a, r - _, a - x, d), Mt(e, h.text, _, x, l, f, d), !m.length)
487
+ if (j(e, r, a, _, x, "ishikawa-branch", d), d && q(e, r, a, r - _, a - x, d), Mt(e, h.text, _, x, l, f, d), !m.length)
488
488
  return;
489
489
  const { entries: D, yOrder: O } = Tt(m, l), E = D.length, T = new Array(E);
490
490
  for (const [p, n] of O.entries())
@@ -503,11 +503,11 @@ var xt = J, H, vt = (H = class {
503
503
  const v = T[p], w = t.get(n.parentIndex), I = e.append("g").attr("class", "ishikawa-sub-group");
504
504
  let $ = 0, L = 0, A = 0;
505
505
  if (n.depth % 2 === 0) {
506
- const V = w.y1 - w.y0;
507
- $ = lt(w.x0, w.x1, V ? (v - w.y0) / V : 0.5), L = v, A = $ - (n.childCount > 0 ? Et + n.childCount * At : $t), z(I, $, v, A, v, "ishikawa-sub-branch", d), d && q(I, $, v, 1, 0, d), X(I, n.text, A, v, "ishikawa-label align", "end", f);
506
+ const C = w.y1 - w.y0;
507
+ $ = lt(w.x0, w.x1, C ? (v - w.y0) / C : 0.5), L = v, A = $ - (n.childCount > 0 ? Et + n.childCount * At : $t), j(I, $, v, A, v, "ishikawa-sub-branch", d), d && q(I, $, v, 1, 0, d), Y(I, n.text, A, v, "ishikawa-label align", "end", f);
508
508
  } else {
509
- const V = w.childrenDrawn++;
510
- $ = lt(w.x0, w.x1, (w.childCount - V) / (w.childCount + 1)), L = w.y0, A = $ + s * ((v - L) / i), z(I, $, L, A, v, "ishikawa-sub-branch", d), d && q(I, $, L, $ - A, L - v, d), X(I, n.text, A, v, c, "end", f);
509
+ const C = w.childrenDrawn++;
510
+ $ = lt(w.x0, w.x1, (w.childCount - C) / (w.childCount + 1)), L = w.y0, A = $ + s * ((v - L) / i), j(I, $, L, A, v, "ishikawa-sub-branch", d), d && q(I, $, L, $ - A, L - v, d), Y(I, n.text, A, v, c, "end", f);
511
511
  }
512
512
  n.childCount > 0 && t.set(p, {
513
513
  x0: $,
@@ -528,12 +528,12 @@ var xt = J, H, vt = (H = class {
528
528
  }
529
529
  return r.join(`
530
530
  `);
531
- }, "wrapText"), X = /* @__PURE__ */ o((e, h, r, a, l, y, f) => {
531
+ }, "wrapText"), Y = /* @__PURE__ */ o((e, h, r, a, l, y, f) => {
532
532
  const d = Bt(h), m = f * 1.05, u = e.append("text").attr("class", l).attr("text-anchor", y).attr("x", r).attr("y", a - (d.length - 1) * m / 2);
533
533
  for (const [k, g] of d.entries())
534
534
  u.append("tspan").attr("x", r).attr("dy", k === 0 ? 0 : m).text(g);
535
535
  return u;
536
- }, "drawMultilineText"), lt = /* @__PURE__ */ o((e, h, r) => e + (h - e) * r, "lerp"), z = /* @__PURE__ */ o((e, h, r, a, l, y, f) => {
536
+ }, "drawMultilineText"), lt = /* @__PURE__ */ o((e, h, r) => e + (h - e) * r, "lerp"), j = /* @__PURE__ */ o((e, h, r, a, l, y, f) => {
537
537
  if (f) {
538
538
  const d = f.roughSvg.line(h, r, a, l, {
539
539
  roughness: 1.5,
@@ -608,7 +608,7 @@ var xt = J, H, vt = (H = class {
608
608
  .ishikawa .ishikawa-label.down {
609
609
  dominant-baseline: hanging;
610
610
  }
611
- `, "getStyles"), Ot = Dt, Ct = {
611
+ `, "getStyles"), Ot = Dt, Vt = {
612
612
  parser: xt,
613
613
  get db() {
614
614
  return new vt();
@@ -617,5 +617,5 @@ var xt = J, H, vt = (H = class {
617
617
  styles: Ot
618
618
  };
619
619
  export {
620
- Ct as diagram
620
+ Vt as diagram
621
621
  };
@@ -1,7 +1,7 @@
1
- import { g as gt } from "./chunk-5VM5RSS4-C4ILSCRb.js";
2
- import { a as mt, g as lt, h as xt, d as kt } from "./chunk-32BRIVSS-DcLe6F1l.js";
3
- import { Q as _t, O as vt, U as bt, V as wt, ae as Tt, ad as St, _ as s, W as R, X as H, a0 as $t, aj as Mt } from "./extractHeadings-B2I83li5.js";
4
- import { d as it } from "./arc-Byq9kr_0.js";
1
+ import { g as gt } from "./chunk-5VM5RSS4-C3mSh-gE.js";
2
+ import { a as mt, g as lt, h as xt, d as kt } from "./chunk-32BRIVSS-DUWtkDEY.js";
3
+ import { z as _t, y as vt, A as bt, G as wt, a6 as Tt, a5 as St, _ as s, J as R, K as H, Q as $t, ab as Mt } from "./extractHeadings-B2pUyEPa.js";
4
+ import { d as it } from "./arc-DzZml7Bc.js";
5
5
  var U = (function() {
6
6
  var t = /* @__PURE__ */ s(function(h, r, n, l) {
7
7
  for (n = n || {}, l = h.length; l--; n[h[l]] = r) ;
@@ -61,7 +61,7 @@ var U = (function() {
61
61
  }
62
62
  }, "parseError"),
63
63
  parse: /* @__PURE__ */ s(function(r) {
64
- var n = this, l = [0], y = [], d = [null], c = [], v = this.table, k = "", C = 0, K = 0, yt = 2, D = 1, dt = c.slice.call(arguments, 1), _ = Object.create(this.lexer), I = { yy: {} };
64
+ var n = this, l = [0], y = [], d = [null], c = [], v = this.table, k = "", C = 0, Z = 0, yt = 2, D = 1, dt = c.slice.call(arguments, 1), _ = Object.create(this.lexer), I = { yy: {} };
65
65
  for (var O in this.yy)
66
66
  Object.prototype.hasOwnProperty.call(this.yy, O) && (I.yy[O] = this.yy[O]);
67
67
  _.setInput(r, I.yy), I.yy.lexer = _, I.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
@@ -78,27 +78,27 @@ var U = (function() {
78
78
  return w = y.pop() || _.lex() || D, typeof w != "number" && (w instanceof Array && (y = w, w = y.pop()), w = n.symbols_[w] || w), w;
79
79
  }
80
80
  s(tt, "lex");
81
- for (var b, A, T, q, F = {}, N, M, et, W; ; ) {
81
+ for (var b, A, T, q, F = {}, N, M, et, z; ; ) {
82
82
  if (A = l[l.length - 1], this.defaultActions[A] ? T = this.defaultActions[A] : ((b === null || typeof b > "u") && (b = tt()), T = v[A] && v[A][b]), typeof T > "u" || !T.length || !T[0]) {
83
- var X = "";
84
- W = [];
83
+ var G = "";
84
+ z = [];
85
85
  for (N in v[A])
86
- this.terminals_[N] && N > yt && W.push("'" + this.terminals_[N] + "'");
87
- _.showPosition ? X = "Parse error on line " + (C + 1) + `:
86
+ this.terminals_[N] && N > yt && z.push("'" + this.terminals_[N] + "'");
87
+ _.showPosition ? G = "Parse error on line " + (C + 1) + `:
88
88
  ` + _.showPosition() + `
89
- Expecting ` + W.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : X = "Parse error on line " + (C + 1) + ": Unexpected " + (b == D ? "end of input" : "'" + (this.terminals_[b] || b) + "'"), this.parseError(X, {
89
+ Expecting ` + z.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : G = "Parse error on line " + (C + 1) + ": Unexpected " + (b == D ? "end of input" : "'" + (this.terminals_[b] || b) + "'"), this.parseError(G, {
90
90
  text: _.match,
91
91
  token: this.terminals_[b] || b,
92
92
  line: _.yylineno,
93
93
  loc: Y,
94
- expected: W
94
+ expected: z
95
95
  });
96
96
  }
97
97
  if (T[0] instanceof Array && T.length > 1)
98
98
  throw new Error("Parse Error: multiple actions possible at state: " + A + ", token: " + b);
99
99
  switch (T[0]) {
100
100
  case 1:
101
- l.push(b), d.push(_.yytext), c.push(_.yylloc), l.push(T[1]), b = null, K = _.yyleng, k = _.yytext, C = _.yylineno, Y = _.yylloc;
101
+ l.push(b), d.push(_.yytext), c.push(_.yylloc), l.push(T[1]), b = null, Z = _.yyleng, k = _.yytext, C = _.yylineno, Y = _.yylloc;
102
102
  break;
103
103
  case 2:
104
104
  if (M = this.productions_[T[1]][1], F.$ = d[d.length - M], F._$ = {
@@ -111,7 +111,7 @@ Expecting ` + W.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : X = "
111
111
  c[c.length - 1].range[1]
112
112
  ]), q = this.performAction.apply(F, [
113
113
  k,
114
- K,
114
+ Z,
115
115
  C,
116
116
  I.yy,
117
117
  T[1],
@@ -355,12 +355,12 @@ Expecting ` + W.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : X = "
355
355
  return s(x, "Parser"), x.prototype = g, g.Parser = x, new x();
356
356
  })();
357
357
  U.parser = U;
358
- var Et = U, V = "", Z = [], L = [], B = [], Ct = /* @__PURE__ */ s(function() {
359
- Z.length = 0, L.length = 0, V = "", B.length = 0, Mt();
358
+ var Et = U, V = "", K = [], L = [], B = [], Ct = /* @__PURE__ */ s(function() {
359
+ K.length = 0, L.length = 0, V = "", B.length = 0, Mt();
360
360
  }, "clear"), Pt = /* @__PURE__ */ s(function(t) {
361
- V = t, Z.push(t);
361
+ V = t, K.push(t);
362
362
  }, "addSection"), It = /* @__PURE__ */ s(function() {
363
- return Z;
363
+ return K;
364
364
  }, "getSections"), At = /* @__PURE__ */ s(function() {
365
365
  let t = rt();
366
366
  const e = 100;
@@ -552,7 +552,7 @@ var Et = U, V = "", Z = [], L = [], B = [], Ct = /* @__PURE__ */ s(function() {
552
552
  ${t.actor5 ? `fill: ${t.actor5}` : ""};
553
553
  }
554
554
  ${gt()}
555
- `, "getStyles"), jt = Bt, J = /* @__PURE__ */ s(function(t, e) {
555
+ `, "getStyles"), jt = Bt, Q = /* @__PURE__ */ s(function(t, e) {
556
556
  return kt(t, e);
557
557
  }, "drawRect"), Nt = /* @__PURE__ */ s(function(t, e) {
558
558
  const f = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = t.append("g");
@@ -576,17 +576,17 @@ var Et = U, V = "", Z = [], L = [], B = [], Ct = /* @__PURE__ */ s(function() {
576
576
  return a.attr("cx", e.cx), a.attr("cy", e.cy), a.attr("class", "actor-" + e.pos), a.attr("fill", e.fill), a.attr("stroke", e.stroke), a.attr("r", e.r), a.class !== void 0 && a.attr("class", a.class), e.title !== void 0 && a.append("title").text(e.title), a;
577
577
  }, "drawCircle"), ct = /* @__PURE__ */ s(function(t, e) {
578
578
  return xt(t, e);
579
- }, "drawText"), Wt = /* @__PURE__ */ s(function(t, e) {
579
+ }, "drawText"), zt = /* @__PURE__ */ s(function(t, e) {
580
580
  function a(i, u, p, o, g) {
581
581
  return i + "," + u + " " + (i + p) + "," + u + " " + (i + p) + "," + (u + o - g) + " " + (i + p - g * 1.2) + "," + (u + o) + " " + i + "," + (u + o);
582
582
  }
583
583
  s(a, "genPoints");
584
584
  const f = t.append("polygon");
585
585
  f.attr("points", a(e.x, e.y, 50, 20, 7)), f.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, ct(t, e);
586
- }, "drawLabel"), zt = /* @__PURE__ */ s(function(t, e, a) {
586
+ }, "drawLabel"), Wt = /* @__PURE__ */ s(function(t, e, a) {
587
587
  const f = t.append("g"), i = lt();
588
588
  i.x = e.x, i.y = e.y, i.fill = e.fill, i.width = a.width * e.taskCount + // width of the tasks
589
- a.diagramMarginX * (e.taskCount - 1), i.height = a.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3, J(f, i), ht(a)(
589
+ a.diagramMarginX * (e.taskCount - 1), i.height = a.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3, Q(f, i), ht(a)(
590
590
  e.text,
591
591
  f,
592
592
  i.x,
@@ -597,15 +597,15 @@ var Et = U, V = "", Z = [], L = [], B = [], Ct = /* @__PURE__ */ s(function() {
597
597
  a,
598
598
  e.colour
599
599
  );
600
- }, "drawSection"), Q = -1, Ot = /* @__PURE__ */ s(function(t, e, a, f) {
600
+ }, "drawSection"), J = -1, Ot = /* @__PURE__ */ s(function(t, e, a, f) {
601
601
  const i = e.x + a.width / 2, u = t.append("g");
602
- Q++, u.append("line").attr("id", f + "-task" + Q).attr("x1", i).attr("y1", e.y).attr("x2", i).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Nt(u, {
602
+ J++, u.append("line").attr("id", f + "-task" + J).attr("x1", i).attr("y1", e.y).attr("x2", i).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Nt(u, {
603
603
  cx: i,
604
604
  cy: 300 + (5 - e.score) * 30,
605
605
  score: e.score
606
606
  });
607
607
  const o = lt();
608
- o.x = e.x, o.y = e.y, o.fill = e.fill, o.width = a.width, o.height = a.height, o.class = "task task-type-" + e.num, o.rx = 3, o.ry = 3, J(u, o);
608
+ o.x = e.x, o.y = e.y, o.fill = e.fill, o.width = a.width, o.height = a.height, o.class = "task task-type-" + e.num, o.rx = 3, o.ry = 3, Q(u, o);
609
609
  let g = e.x + 14;
610
610
  e.people.forEach((m) => {
611
611
  const x = e.actors[m].color, h = {
@@ -658,24 +658,24 @@ var Et = U, V = "", Z = [], L = [], B = [], Ct = /* @__PURE__ */ s(function() {
658
658
  return i.textPlacement === "fo" ? a : i.textPlacement === "old" ? t : e;
659
659
  };
660
660
  })(), qt = /* @__PURE__ */ s(function(t, e) {
661
- Q = -1, t.append("defs").append("marker").attr("id", e + "-arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
661
+ J = -1, t.append("defs").append("marker").attr("id", e + "-arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
662
662
  }, "initGraphics"), j = {
663
- drawRect: J,
663
+ drawRect: Q,
664
664
  drawCircle: ot,
665
- drawSection: zt,
665
+ drawSection: Wt,
666
666
  drawText: ct,
667
- drawLabel: Wt,
667
+ drawLabel: zt,
668
668
  drawTask: Ot,
669
669
  drawBackgroundRect: Yt,
670
670
  initGraphics: qt
671
- }, Xt = /* @__PURE__ */ s(function(t) {
671
+ }, Gt = /* @__PURE__ */ s(function(t) {
672
672
  Object.keys(t).forEach(function(a) {
673
673
  $[a] = t[a];
674
674
  });
675
- }, "setConf"), E = {}, z = 0;
675
+ }, "setConf"), E = {}, W = 0;
676
676
  function ut(t) {
677
677
  const e = R().journey, a = e.maxLabelWidth;
678
- z = 0;
678
+ W = 0;
679
679
  let f = 60;
680
680
  Object.keys(E).forEach((i) => {
681
681
  const u = E[i].color, p = {
@@ -717,7 +717,7 @@ function ut(t) {
717
717
  text: x,
718
718
  textMargin: e.boxTextMargin ?? 5
719
719
  }, l = j.drawText(t, r).node().getBoundingClientRect().width;
720
- l > z && l > e.leftMargin - l && (z = l);
720
+ l > W && l > e.leftMargin - l && (W = l);
721
721
  }), f += Math.max(20, m.length * 20);
722
722
  });
723
723
  }
@@ -739,7 +739,7 @@ var $ = R().journey, P = 0, Ht = /* @__PURE__ */ s(function(t, e, a, f) {
739
739
  color: $.actorColours[y % $.actorColours.length],
740
740
  position: y
741
741
  }, y++;
742
- }), ut(h), P = $.leftMargin + z, S.insert(0, 0, P, Object.keys(E).length * 50), Gt(h, r, 0, e);
742
+ }), ut(h), P = $.leftMargin + W, S.insert(0, 0, P, Object.keys(E).length * 50), Xt(h, r, 0, e);
743
743
  const d = S.getBounds();
744
744
  n && h.append("text").text(n).attr("x", P).attr("font-size", p).attr("font-weight", "bold").attr("y", 25).attr("fill", u).attr("font-family", o);
745
745
  const c = d.stopy - d.starty + 2 * $.diagramMarginY, v = P + d.stopx + 2 * $.diagramMarginX;
@@ -791,14 +791,14 @@ var $ = R().journey, P = 0, Ht = /* @__PURE__ */ s(function(t, e, a, f) {
791
791
  getBounds: /* @__PURE__ */ s(function() {
792
792
  return this.data;
793
793
  }, "getBounds")
794
- }, G = $.sectionFills, st = $.sectionColours, Gt = /* @__PURE__ */ s(function(t, e, a, f) {
794
+ }, X = $.sectionFills, st = $.sectionColours, Xt = /* @__PURE__ */ s(function(t, e, a, f) {
795
795
  const i = R().journey;
796
796
  let u = "";
797
797
  const p = i.height * 2 + i.diagramMarginY, o = a + p;
798
798
  let g = 0, m = "#CCC", x = "black", h = 0;
799
799
  for (const [r, n] of e.entries()) {
800
800
  if (u !== n.section) {
801
- m = G[g % G.length], h = g % G.length, x = st[g % st.length];
801
+ m = X[g % X.length], h = g % X.length, x = st[g % st.length];
802
802
  let y = 0;
803
803
  const d = n.section;
804
804
  for (let v = r; v < e.length && e[v].section == d; v++)
@@ -818,9 +818,9 @@ var $ = R().journey, P = 0, Ht = /* @__PURE__ */ s(function(t, e, a, f) {
818
818
  n.x = r * i.taskMargin + r * i.width + P, n.y = o, n.width = i.diagramMarginX, n.height = i.diagramMarginY, n.colour = x, n.fill = m, n.num = h, n.actors = l, j.drawTask(t, n, i, f), S.insert(n.x, n.y, n.x + n.width + i.taskMargin, 450);
819
819
  }
820
820
  }, "drawTasks"), at = {
821
- setConf: Xt,
821
+ setConf: Gt,
822
822
  draw: Ht
823
- }, Kt = {
823
+ }, Zt = {
824
824
  parser: Et,
825
825
  db: nt,
826
826
  renderer: at,
@@ -830,5 +830,5 @@ var $ = R().journey, P = 0, Ht = /* @__PURE__ */ s(function(t, e, a, f) {
830
830
  }, "init")
831
831
  };
832
832
  export {
833
- Kt as diagram
833
+ Zt as diagram
834
834
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ft=require("./chunk-5VM5RSS4-DafQyxAv.cjs"),j=require("./chunk-32BRIVSS-BjI5igEa.cjs"),n=require("./extractHeadings-R7NxLZJP.cjs"),et=require("./arc-BY7loL0l.cjs");var G=(function(){var t=n.__name(function(h,r,a,l){for(a=a||{},l=h.length;l--;a[h[l]]=r);return a},"o"),e=[6,8,10,11,12,14,16,17,18],s=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],_={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:n.__name(function(r,a,l,y,d,c,v){var x=c.length-1;switch(d){case 1:return c[x-1];case 2:this.$=[];break;case 3:c[x-1].push(c[x]),this.$=c[x-1];break;case 4:case 5:this.$=c[x];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[x].substr(6)),this.$=c[x].substr(6);break;case 9:this.$=c[x].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[x].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[x].substr(8)),this.$=c[x].substr(8);break;case 13:y.addTask(c[x-1],c[x]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:s,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:s,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:n.__name(function(r,a){if(a.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=a,l}},"parseError"),parse:n.__name(function(r){var a=this,l=[0],y=[],d=[null],c=[],v=this.table,x="",E=0,K=0,ht=2,Q=1,ut=c.slice.call(arguments,1),k=Object.create(this.lexer),A={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(A.yy[q]=this.yy[q]);k.setInput(r,A.yy),A.yy.lexer=k,A.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var O=k.yylloc;c.push(O);var yt=k.options&&k.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function dt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}n.__name(dt,"popStack");function D(){var w;return w=y.pop()||k.lex()||Q,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=a.symbols_[w]||w),w}n.__name(D,"lex");for(var b,I,T,Y,R={},N,M,tt,z;;){if(I=l[l.length-1],this.defaultActions[I]?T=this.defaultActions[I]:((b===null||typeof b>"u")&&(b=D()),T=v[I]&&v[I][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[I])this.terminals_[N]&&N>ht&&z.push("'"+this.terminals_[N]+"'");k.showPosition?H="Parse error on line "+(E+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ft=require("./chunk-5VM5RSS4-DHA5n_Ls.cjs"),j=require("./chunk-32BRIVSS-Cb9nTxqN.cjs"),n=require("./extractHeadings-DgefF9l1.cjs"),et=require("./arc-D5T_urCC.cjs");var G=(function(){var t=n.__name(function(h,r,a,l){for(a=a||{},l=h.length;l--;a[h[l]]=r);return a},"o"),e=[6,8,10,11,12,14,16,17,18],s=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],_={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:n.__name(function(r,a,l,y,d,c,v){var x=c.length-1;switch(d){case 1:return c[x-1];case 2:this.$=[];break;case 3:c[x-1].push(c[x]),this.$=c[x-1];break;case 4:case 5:this.$=c[x];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[x].substr(6)),this.$=c[x].substr(6);break;case 9:this.$=c[x].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[x].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[x].substr(8)),this.$=c[x].substr(8);break;case 13:y.addTask(c[x-1],c[x]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:s,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:s,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:n.__name(function(r,a){if(a.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=a,l}},"parseError"),parse:n.__name(function(r){var a=this,l=[0],y=[],d=[null],c=[],v=this.table,x="",E=0,K=0,ht=2,Q=1,ut=c.slice.call(arguments,1),k=Object.create(this.lexer),A={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(A.yy[q]=this.yy[q]);k.setInput(r,A.yy),A.yy.lexer=k,A.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var O=k.yylloc;c.push(O);var yt=k.options&&k.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function dt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}n.__name(dt,"popStack");function D(){var w;return w=y.pop()||k.lex()||Q,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=a.symbols_[w]||w),w}n.__name(D,"lex");for(var b,I,T,Y,R={},N,M,tt,z;;){if(I=l[l.length-1],this.defaultActions[I]?T=this.defaultActions[I]:((b===null||typeof b>"u")&&(b=D()),T=v[I]&&v[I][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[I])this.terminals_[N]&&N>ht&&z.push("'"+this.terminals_[N]+"'");k.showPosition?H="Parse error on line "+(E+1)+`:
2
2
  `+k.showPosition()+`
3
3
  Expecting `+z.join(", ")+", got '"+(this.terminals_[b]||b)+"'":H="Parse error on line "+(E+1)+": Unexpected "+(b==Q?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(H,{text:k.match,token:this.terminals_[b]||b,line:k.yylineno,loc:O,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(k.yytext),c.push(k.yylloc),l.push(T[1]),b=null,K=k.yyleng,x=k.yytext,E=k.yylineno,O=k.yylloc;break;case 2:if(M=this.productions_[T[1]][1],R.$=d[d.length-M],R._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},yt&&(R._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),Y=this.performAction.apply(R,[x,K,E,A.yy,T[1],d,c].concat(ut)),typeof Y<"u")return Y;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(R.$),c.push(R._$),tt=v[l[l.length-2]][l[l.length-1]],l.push(tt);break;case 3:return!0}}return!0},"parse")},g=(function(){var h={EOF:1,parseError:n.__name(function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},"parseError"),setInput:n.__name(function(r,a){return this.yy=a||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n.__name(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:n.__name(function(r){var a=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var y=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 d=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===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-a]),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(r){this.unput(this.match.slice(r))},"less"),pastInput:n.__name(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./extractHeadings-R7NxLZJP.cjs"),le=require("./chunk-5VM5RSS4-DafQyxAv.cjs");var J=(function(){var e=n.__name(function(O,s,i,a){for(i=i||{},a=O.length;a--;i[O[a]]=s);return i},"o"),h=[1,4],p=[1,13],r=[1,12],d=[1,15],b=[1,16],y=[1,20],l=[1,19],D=[6,7,8],C=[1,26],g=[1,24],T=[1,25],k=[6,7,11],M=[1,31],x=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],w=[1,36],L=[1,6,7,11,13,16,17,20,23],F=[1,38],A={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:n.__name(function(s,i,a,o,u,t,G){var c=t.length-1;switch(u){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",t[c-1].id),o.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:o.getLogger().info("Node: ",t[c].id),o.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:o.getLogger().trace("Icon: ",t[c]),o.decorateNode({icon:t[c]});break;case 18:case 23:o.decorateNode({class:t[c]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",t[c-1].id),o.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:o.getLogger().trace("Node: ",t[c].id),o.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:o.decorateNode({icon:t[c]});break;case 27:o.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:o.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},{6:p,9:22,12:11,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},{6:C,7:g,10:23,11:T},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:y,23:l}),e(k,[2,19]),e(k,[2,21],{15:30,24:M}),e(k,[2,22]),e(k,[2,23]),e(x,[2,25]),e(x,[2,26]),e(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:g,10:34,11:T},{1:[2,7],6:p,12:21,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},e(V,[2,14],{7:f,11:w}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(k,[2,16],{15:37,24:M}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:F}),e(x,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:w}),e(L,[2,11]),e(L,[2,12]),e(k,[2,15],{24:F}),e(x,[2,30]),{22:[1,41]},e(x,[2,27]),e(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:n.__name(function(s,i){if(i.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=i,a}},"parseError"),parse:n.__name(function(s){var i=this,a=[0],o=[],u=[null],t=[],G=this.table,c="",H=0,ee=0,re=2,te=1,ae=t.slice.call(arguments,1),m=Object.create(this.lexer),R={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(R.yy[X]=this.yy[X]);m.setInput(s,R.yy),R.yy.lexer=m,R.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var K=m.yylloc;t.push(K);var oe=m.options&&m.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(S){a.length=a.length-2*S,u.length=u.length-S,t.length=t.length-S}n.__name(ce,"popStack");function ne(){var S;return S=o.pop()||m.lex()||te,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=i.symbols_[S]||S),S}n.__name(ne,"lex");for(var E,P,N,Y,j={},U,I,ie,z;;){if(P=a[a.length-1],this.defaultActions[P]?N=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=ne()),N=G[P]&&G[P][E]),typeof N>"u"||!N.length||!N[0]){var q="";z=[];for(U in G[P])this.terminals_[U]&&U>re&&z.push("'"+this.terminals_[U]+"'");m.showPosition?q="Parse error on line "+(H+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./extractHeadings-DgefF9l1.cjs"),le=require("./chunk-5VM5RSS4-DHA5n_Ls.cjs");var J=(function(){var e=n.__name(function(O,s,i,a){for(i=i||{},a=O.length;a--;i[O[a]]=s);return i},"o"),h=[1,4],p=[1,13],r=[1,12],d=[1,15],b=[1,16],y=[1,20],l=[1,19],D=[6,7,8],C=[1,26],g=[1,24],T=[1,25],k=[6,7,11],M=[1,31],x=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],w=[1,36],L=[1,6,7,11,13,16,17,20,23],F=[1,38],A={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:n.__name(function(s,i,a,o,u,t,G){var c=t.length-1;switch(u){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",t[c-1].id),o.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:o.getLogger().info("Node: ",t[c].id),o.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:o.getLogger().trace("Icon: ",t[c]),o.decorateNode({icon:t[c]});break;case 18:case 23:o.decorateNode({class:t[c]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",t[c-1].id),o.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:o.getLogger().trace("Node: ",t[c].id),o.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:o.decorateNode({icon:t[c]});break;case 27:o.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:o.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},{6:p,9:22,12:11,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},{6:C,7:g,10:23,11:T},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:y,23:l}),e(k,[2,19]),e(k,[2,21],{15:30,24:M}),e(k,[2,22]),e(k,[2,23]),e(x,[2,25]),e(x,[2,26]),e(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:g,10:34,11:T},{1:[2,7],6:p,12:21,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},e(V,[2,14],{7:f,11:w}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(k,[2,16],{15:37,24:M}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:F}),e(x,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:w}),e(L,[2,11]),e(L,[2,12]),e(k,[2,15],{24:F}),e(x,[2,30]),{22:[1,41]},e(x,[2,27]),e(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:n.__name(function(s,i){if(i.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=i,a}},"parseError"),parse:n.__name(function(s){var i=this,a=[0],o=[],u=[null],t=[],G=this.table,c="",H=0,ee=0,re=2,te=1,ae=t.slice.call(arguments,1),m=Object.create(this.lexer),R={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(R.yy[X]=this.yy[X]);m.setInput(s,R.yy),R.yy.lexer=m,R.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var K=m.yylloc;t.push(K);var oe=m.options&&m.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(S){a.length=a.length-2*S,u.length=u.length-S,t.length=t.length-S}n.__name(ce,"popStack");function ne(){var S;return S=o.pop()||m.lex()||te,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=i.symbols_[S]||S),S}n.__name(ne,"lex");for(var E,P,N,Y,j={},U,I,ie,z;;){if(P=a[a.length-1],this.defaultActions[P]?N=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=ne()),N=G[P]&&G[P][E]),typeof N>"u"||!N.length||!N[0]){var q="";z=[];for(U in G[P])this.terminals_[U]&&U>re&&z.push("'"+this.terminals_[U]+"'");m.showPosition?q="Parse error on line "+(H+1)+`:
2
2
  `+m.showPosition()+`
3
3
  Expecting `+z.join(", ")+", got '"+(this.terminals_[E]||E)+"'":q="Parse error on line "+(H+1)+": Unexpected "+(E==te?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(q,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:K,expected:z})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(N[0]){case 1:a.push(E),u.push(m.yytext),t.push(m.yylloc),a.push(N[1]),E=null,ee=m.yyleng,c=m.yytext,H=m.yylineno,K=m.yylloc;break;case 2:if(I=this.productions_[N[1]][1],j.$=u[u.length-I],j._$={first_line:t[t.length-(I||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(I||1)].first_column,last_column:t[t.length-1].last_column},oe&&(j._$.range=[t[t.length-(I||1)].range[0],t[t.length-1].range[1]]),Y=this.performAction.apply(j,[c,ee,H,R.yy,N[1],u,t].concat(ae)),typeof Y<"u")return Y;I&&(a=a.slice(0,-1*I*2),u=u.slice(0,-1*I),t=t.slice(0,-1*I)),a.push(this.productions_[N[1]][0]),u.push(j.$),t.push(j._$),ie=G[a[a.length-2]][a[a.length-1]],a.push(ie);break;case 3:return!0}}return!0},"parse")},W=(function(){var O={EOF:1,parseError:n.__name(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:n.__name(function(s,i){return this.yy=i||this.yy||{},this._input=s,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 s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:n.__name(function(s){var i=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var o=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),a.length-1&&(this.yylineno-=a.length-1);var u=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:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-i]),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(s){this.unput(this.match.slice(s))},"less"),pastInput:n.__name(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`