state-machine-cat 12.0.6 → 12.0.7

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 (45) hide show
  1. package/dist/cli/actions.mjs +34 -31
  2. package/dist/cli/attributes-parser.mjs +914 -889
  3. package/dist/cli/execute-command-line.mjs +98 -48
  4. package/dist/cli/file-name-to-stream.mjs +8 -8
  5. package/dist/cli/normalize.mjs +89 -70
  6. package/dist/cli/validations.mjs +72 -52
  7. package/dist/index-node.mjs +12 -9
  8. package/dist/index.mjs +10 -7
  9. package/dist/options.mjs +53 -53
  10. package/dist/parse/index.mjs +17 -17
  11. package/dist/parse/parser-helpers.mjs +159 -139
  12. package/dist/parse/scxml/index.mjs +152 -129
  13. package/dist/parse/scxml/normalize-machine.mjs +36 -35
  14. package/dist/parse/scxml/utl.mjs +1 -1
  15. package/dist/parse/smcat/smcat-parser.mjs +2794 -2844
  16. package/dist/parse/smcat-ast.schema.mjs +185 -168
  17. package/dist/render/dot/attributebuilder.mjs +40 -37
  18. package/dist/render/dot/counter.mjs +14 -14
  19. package/dist/render/dot/dot.states.template.js +1 -26
  20. package/dist/render/dot/dot.template.js +1 -14
  21. package/dist/render/dot/index.mjs +129 -82
  22. package/dist/render/dot/render-dot-from-ast.mjs +33 -16
  23. package/dist/render/dot/state-transformers.mjs +96 -85
  24. package/dist/render/dot/transition-transformers.mjs +39 -41
  25. package/dist/render/dot/utl.mjs +21 -19
  26. package/dist/render/index-node.mjs +16 -16
  27. package/dist/render/index.mjs +9 -9
  28. package/dist/render/scjson/index.mjs +111 -94
  29. package/dist/render/scjson/make-valid-event-names.mjs +21 -18
  30. package/dist/render/scjson/make-valid-xml-name.mjs +17 -13
  31. package/dist/render/scxml/index.mjs +2 -1
  32. package/dist/render/scxml/render-from-scjson.mjs +5 -2
  33. package/dist/render/scxml/scxml.states.template.js +1 -14
  34. package/dist/render/scxml/scxml.template.js +1 -6
  35. package/dist/render/smcat/index.mjs +54 -39
  36. package/dist/render/smcat/smcat.template.js +1 -13
  37. package/dist/render/vector/dot-to-vector-native.mjs +30 -26
  38. package/dist/render/vector/vector-native-dot-with-fallback.mjs +27 -20
  39. package/dist/render/vector/vector-with-wasm.mjs +13 -6
  40. package/dist/state-machine-model.mjs +67 -52
  41. package/dist/transform/desugar.mjs +115 -66
  42. package/dist/transform/utl.mjs +12 -12
  43. package/dist/version.mjs +1 -1
  44. package/package.json +74 -74
  45. package/types/state-machine-cat.d.mts +209 -209
@@ -1,26 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var Handlebars = require("handlebars/dist/handlebars.runtime"), template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
4
- templates["dot.states.template.hbs"] = template({ 1: function (l, n, e, a, t) { var o = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
5
- return l[n]; }, r = "", c = null != (c = o(e, "nestedExternalSelfTransitions") || (null != n ? o(n, "nestedExternalSelfTransitions") : n)) ? c : l.hooks.helperMissing, t = { name: "nestedExternalSelfTransitions", hash: {}, fn: l.program(2, t, 0), inverse: l.noop, data: t, loc: { start: { line: 2, column: 2 }, end: { line: 4, column: 36 } } }, c = "function" == typeof c ? c.call(null != n ? n : l.nullContext || {}, t) : c; return null != (c = o(e, "nestedExternalSelfTransitions") ? c : l.hooks.blockHelperMissing.call(n, c, t)) && (r += c), r; }, 2: function (l, n, e, a, t) { return ' "self_' + (null != (l = l.lambda(n, n)) ? l : "") + '" [shape=point style=invis width=0 height=0 fixedsize=true]\n'; }, 4: function (l, n, e, a, t) { var o, r, c = null != n ? n : l.nullContext || {}, i = l.hooks.helperMissing, u = "function", s = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
6
- return l[n]; }; return ' "' + (null != (o = typeof (r = null != (r = s(e, "name") || (null != n ? s(n, "name") : n)) ? r : i) == u ? r.call(c, { name: "name", hash: {}, data: t, loc: { start: { line: 7, column: 3 }, end: { line: 7, column: 13 } } }) : r) ? o : "") + '" [shape=circle style=filled class="' + (null != (o = typeof (r = null != (r = s(e, "class") || (null != n ? s(n, "class") : n)) ? r : i) == u ? r.call(c, { name: "class", hash: {}, data: t, loc: { start: { line: 7, column: 49 }, end: { line: 7, column: 60 } } }) : r) ? o : "") + '" ' + (null != (o = s(e, "if").call(c, null != n ? s(n, "color") : n, { name: "if", hash: {}, fn: l.program(5, t, 0), inverse: l.program(7, t, 0), data: t, loc: { start: { line: 7, column: 62 }, end: { line: 7, column: 150 } } })) ? o : "") + (null != (o = s(e, "if").call(c, null != n ? s(n, "active") : n, { name: "if", hash: {}, fn: l.program(9, t, 0), inverse: l.noop, data: t, loc: { start: { line: 7, column: 150 }, end: { line: 7, column: 184 } } })) ? o : "") + 'fixedsize=true height=0.15 label=""]\n'; }, 5: function (l, n, e, a, t) { var o, r, c = null != n ? n : l.nullContext || {}, i = l.hooks.helperMissing, u = "function", l = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
7
- return l[n]; }; return 'color="' + (null != (o = typeof (r = null != (r = l(e, "color") || (null != n ? l(n, "color") : n)) ? r : i) == u ? r.call(c, { name: "color", hash: {}, data: t, loc: { start: { line: 7, column: 82 }, end: { line: 7, column: 93 } } }) : r) ? o : "") + '" fillcolor="' + (null != (o = typeof (r = null != (r = l(e, "color") || (null != n ? l(n, "color") : n)) ? r : i) == u ? r.call(c, { name: "color", hash: {}, data: t, loc: { start: { line: 7, column: 106 }, end: { line: 7, column: 117 } } }) : r) ? o : "") + '" '; }, 7: function (l, n, e, a, t) { return "fillcolor=black "; }, 9: function (l, n, e, a, t) { return "penwidth=3.0 "; }, 11: function (l, n, e, a, t) { var o = null != n ? n : l.nullContext || {}, r = l.hooks.helperMissing, c = "function", i = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
8
- return l[n]; }, u = ' "' + (null != (m = typeof (s = null != (s = i(e, "name") || (null != n ? i(n, "name") : n)) ? s : r) == c ? s.call(o, { name: "name", hash: {}, data: t, loc: { start: { line: 10, column: 3 }, end: { line: 10, column: 13 } } }) : s) ? m : "") + '" [margin=0 class="' + (null != (m = typeof (s = null != (s = i(e, "class") || (null != n ? i(n, "class") : n)) ? s : r) == c ? s.call(o, { name: "class", hash: {}, data: t, loc: { start: { line: 10, column: 32 }, end: { line: 10, column: 43 } } }) : s) ? m : "") + '" ' + (null != (m = i(e, "if").call(o, null != n ? i(n, "color") : n, { name: "if", hash: {}, fn: l.program(12, t, 0), inverse: l.noop, data: t, loc: { start: { line: 10, column: 45 }, end: { line: 10, column: 85 } } })) ? m : "") + (null != (m = i(e, "if").call(o, null != n ? i(n, "active") : n, { name: "if", hash: {}, fn: l.program(14, t, 0), inverse: l.noop, data: t, loc: { start: { line: 10, column: 85 }, end: { line: 10, column: 134 } } })) ? m : "") + 'label= < \n <table align="center" cellborder="0" border="2" style="rounded" width="48">\n <tr><td width="48"' + (null != (m = i(e, "if").call(o, null != n ? i(n, "actionStrings") : n, { name: "if", hash: {}, fn: l.program(16, t, 0), inverse: l.program(18, t, 0), data: t, loc: { start: { line: 12, column: 24 }, end: { line: 12, column: 92 } } })) ? m : "") + ">" + (null != (m = i(e, "if").call(o, null != n ? i(n, "active") : n, { name: "if", hash: {}, fn: l.program(20, t, 0), inverse: l.program(22, t, 0), data: t, loc: { start: { line: 12, column: 93 }, end: { line: 12, column: 147 } } })) ? m : "") + "</td></tr>\n", s = null != (s = i(e, "actionStrings") || (null != n ? i(n, "actionStrings") : n)) ? s : r, r = { name: "actionStrings", hash: {}, fn: l.program(24, t, 0), inverse: l.noop, data: t, loc: { start: { line: 13, column: 6 }, end: { line: 16, column: 24 } } }, m = typeof s == c ? s.call(o, r) : s; return null != (m = i(e, "actionStrings") ? m : l.hooks.blockHelperMissing.call(n, m, r)) && (u += m), u + " </table>\n >]\n"; }, 12: function (l, n, e, a, t) { var o = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
9
- return l[n]; }; return 'color="' + (null != (o = "function" == typeof (e = null != (e = o(e, "color") || (null != n ? o(n, "color") : n)) ? e : l.hooks.helperMissing) ? e.call(null != n ? n : l.nullContext || {}, { name: "color", hash: {}, data: t, loc: { start: { line: 10, column: 65 }, end: { line: 10, column: 76 } } }) : e) ? o : "") + '" '; }, 14: function (l, n, e, a, t) { return "peripheries=1 style=rounded "; }, 16: function (l, n, e, a, t) { return ' cellpadding="2"'; }, 18: function (l, n, e, a, t) { return ' cellpadding="7"'; }, 20: function (l, n, e, a, t) { var o = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
10
- return l[n]; }; return "<i>" + l.escapeExpression("function" == typeof (e = null != (e = o(e, "label") || (null != n ? o(n, "label") : n)) ? e : l.hooks.helperMissing) ? e.call(null != n ? n : l.nullContext || {}, { name: "label", hash: {}, data: t, loc: { start: { line: 12, column: 110 }, end: { line: 12, column: 119 } } }) : e) + "</i>"; }, 22: function (l, n, e, a, t) { var o = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
11
- return l[n]; }; return l.escapeExpression("function" == typeof (e = null != (e = o(e, "label") || (null != n ? o(n, "label") : n)) ? e : l.hooks.helperMissing) ? e.call(null != n ? n : l.nullContext || {}, { name: "label", hash: {}, data: t, loc: { start: { line: 12, column: 131 }, end: { line: 12, column: 140 } } }) : e); }, 24: function (l, n, e, a, t) { var o = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
12
- return l[n]; }; return " " + (null != (e = o(e, "if").call(null != n ? n : l.nullContext || {}, t && o(t, "first"), { name: "if", hash: {}, fn: l.program(25, t, 0), inverse: l.noop, data: t, loc: { start: { line: 14, column: 8 }, end: { line: 14, column: 34 } } })) ? e : "") + '\n <tr><td align="left" cellpadding="2">' + l.escapeExpression(l.lambda(n, n)) + "</td></tr>\n"; }, 25: function (l, n, e, a, t) { return "<hr/>"; }, 27: function (l, n, e, a, t) { var o, r, c = null != n ? n : l.nullContext || {}, i = l.hooks.helperMissing, u = "function", s = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
13
- return l[n]; }; return ' "' + (null != (o = typeof (r = null != (r = s(e, "name") || (null != n ? s(n, "name") : n)) ? r : i) == u ? r.call(c, { name: "name", hash: {}, data: t, loc: { start: { line: 21, column: 3 }, end: { line: 21, column: 13 } } }) : r) ? o : "") + '" [shape=circle class="' + (null != (o = typeof (r = null != (r = s(e, "class") || (null != n ? s(n, "class") : n)) ? r : i) == u ? r.call(c, { name: "class", hash: {}, data: t, loc: { start: { line: 21, column: 36 }, end: { line: 21, column: 47 } } }) : r) ? o : "") + '" ' + (null != (o = s(e, "if").call(c, null != n ? s(n, "color") : n, { name: "if", hash: {}, fn: l.program(12, t, 0), inverse: l.noop, data: t, loc: { start: { line: 21, column: 49 }, end: { line: 21, column: 89 } } })) ? o : "") + (null != (o = s(e, "if").call(c, null != n ? s(n, "active") : n, { name: "if", hash: {}, fn: l.program(9, t, 0), inverse: l.noop, data: t, loc: { start: { line: 21, column: 89 }, end: { line: 21, column: 123 } } })) ? o : "") + 'label="H"]\n'; }, 29: function (l, n, e, a, t) { var o, r, c = null != n ? n : l.nullContext || {}, i = l.hooks.helperMissing, u = "function", s = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
14
- return l[n]; }; return ' "' + (null != (o = typeof (r = null != (r = s(e, "name") || (null != n ? s(n, "name") : n)) ? r : i) == u ? r.call(c, { name: "name", hash: {}, data: t, loc: { start: { line: 24, column: 3 }, end: { line: 24, column: 13 } } }) : r) ? o : "") + '" [shape=circle class="' + (null != (o = typeof (r = null != (r = s(e, "class") || (null != n ? s(n, "class") : n)) ? r : i) == u ? r.call(c, { name: "class", hash: {}, data: t, loc: { start: { line: 24, column: 36 }, end: { line: 24, column: 47 } } }) : r) ? o : "") + '" ' + (null != (o = s(e, "if").call(c, null != n ? s(n, "color") : n, { name: "if", hash: {}, fn: l.program(12, t, 0), inverse: l.noop, data: t, loc: { start: { line: 24, column: 49 }, end: { line: 24, column: 89 } } })) ? o : "") + (null != (o = s(e, "if").call(c, null != n ? s(n, "active") : n, { name: "if", hash: {}, fn: l.program(9, t, 0), inverse: l.noop, data: t, loc: { start: { line: 24, column: 89 }, end: { line: 24, column: 123 } } })) ? o : "") + 'label="H*"]\n'; }, 31: function (l, n, e, a, t, o, r) { var c = null != n ? n : l.nullContext || {}, i = l.hooks.helperMissing, u = "function", s = l.hooks.blockHelperMissing, m = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
15
- return l[n]; }, p = ' "' + (null != (d = typeof (f = null != (f = m(e, "name") || (null != n ? m(n, "name") : n)) ? f : i) == u ? f.call(c, { name: "name", hash: {}, data: t, loc: { start: { line: 27, column: 3 }, end: { line: 27, column: 13 } } }) : f) ? d : "") + '" [shape=diamond fixedsize=true width=0.35 height=0.35 fontsize=10 class="' + (null != (d = typeof (f = null != (f = m(e, "class") || (null != n ? m(n, "class") : n)) ? f : i) == u ? f.call(c, { name: "class", hash: {}, data: t, loc: { start: { line: 27, column: 87 }, end: { line: 27, column: 98 } } }) : f) ? d : "") + '" ' + (null != (d = m(e, "if").call(c, null != n ? m(n, "color") : n, { name: "if", hash: {}, fn: l.program(12, t, 0, o, r), inverse: l.noop, data: t, loc: { start: { line: 27, column: 100 }, end: { line: 27, column: 140 } } })) ? d : "") + (null != (d = m(e, "if").call(c, null != n ? m(n, "active") : n, { name: "if", hash: {}, fn: l.program(9, t, 0, o, r), inverse: l.noop, data: t, loc: { start: { line: 27, column: 140 }, end: { line: 27, column: 174 } } })) ? d : "") + 'label=" "]\n "' + (null != (d = typeof (f = null != (f = m(e, "name") || (null != n ? m(n, "name") : n)) ? f : i) == u ? f.call(c, { name: "name", hash: {}, data: t, loc: { start: { line: 28, column: 3 }, end: { line: 28, column: 13 } } }) : f) ? d : "") + '" -> "' + (null != (d = typeof (f = null != (f = m(e, "name") || (null != n ? m(n, "name") : n)) ? f : i) == u ? f.call(c, { name: "name", hash: {}, data: t, loc: { start: { line: 28, column: 19 }, end: { line: 28, column: 29 } } }) : f) ? d : "") + '" [label=<', f = null != (f = m(e, "actionStrings") || (null != n ? m(n, "actionStrings") : n)) ? f : i, h = { name: "actionStrings", hash: {}, fn: l.program(32, t, 0, o, r), inverse: l.noop, data: t, loc: { start: { line: 28, column: 39 }, end: { line: 28, column: 156 } } }, d = typeof f == u ? f.call(c, h) : f; return null != (d = m(e, "actionStrings") ? d : s.call(n, d, h)) && (p += d), p += '> color="#FFFFFF01"', f = null != (f = m(e, "color") || (null != n ? m(n, "color") : n)) ? f : i, h = { name: "color", hash: {}, fn: l.program(41, t, 0, o, r), inverse: l.noop, data: t, loc: { start: { line: 28, column: 175 }, end: { line: 28, column: 215 } } }, d = typeof f == u ? f.call(c, h) : f, null != (d = m(e, "color") ? d : s.call(n, d, h)) && (p += d), p + ' class="' + (null != (d = typeof (f = null != (f = m(e, "class") || (null != n ? m(n, "class") : n)) ? f : i) == u ? f.call(c, { name: "class", hash: {}, data: t, loc: { start: { line: 28, column: 223 }, end: { line: 28, column: 234 } } }) : f) ? d : "") + '"];\n'; }, 32: function (l, n, e, a, t, o, r) { var c, n = null != n ? n : l.nullContext || {}, i = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
16
- return l[n]; }; return (null != (c = i(e, "if").call(n, t && i(t, "first"), { name: "if", hash: {}, fn: l.program(33, t, 0, o, r), inverse: l.program(35, t, 0, o, r), data: t, loc: { start: { line: 28, column: 57 }, end: { line: 28, column: 88 } } })) ? c : "") + (null != (c = i(e, "if").call(n, null != r[1] ? i(r[1], "active") : r[1], { name: "if", hash: {}, fn: l.program(37, t, 0, o, r), inverse: l.program(39, t, 0, o, r), data: t, loc: { start: { line: 28, column: 88 }, end: { line: 28, column: 137 } } })) ? c : ""); }, 33: function (l, n, e, a, t) { return ""; }, 35: function (l, n, e, a, t) { return "\\n"; }, 37: function (l, n, e, a, t) { return "<i>" + l.escapeExpression(l.lambda(n, n)) + "</i>"; }, 39: function (l, n, e, a, t) { return l.escapeExpression(l.lambda(n, n)); }, 41: function (l, n, e, a, t) { return ' fontcolor="' + (null != (l = l.lambda(n, n)) ? l : "") + '"'; }, 43: function (l, n, e, a, t) { var o, r, c = null != n ? n : l.nullContext || {}, i = l.hooks.helperMissing, u = "function", s = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
17
- return l[n]; }; return ' "' + (null != (o = typeof (r = null != (r = s(e, "name") || (null != n ? s(n, "name") : n)) ? r : i) == u ? r.call(c, { name: "name", hash: {}, data: t, loc: { start: { line: 31, column: 3 }, end: { line: 31, column: 13 } } }) : r) ? o : "") + '" [shape=rect class="' + (null != (o = typeof (r = null != (r = s(e, "class") || (null != n ? s(n, "class") : n)) ? r : i) == u ? r.call(c, { name: "class", hash: {}, data: t, loc: { start: { line: 31, column: 34 }, end: { line: 31, column: 45 } } }) : r) ? o : "") + '" ' + (null != (o = s(e, "if").call(c, null != n ? s(n, "color") : n, { name: "if", hash: {}, fn: l.program(5, t, 0), inverse: l.program(7, t, 0), data: t, loc: { start: { line: 31, column: 47 }, end: { line: 31, column: 135 } } })) ? o : "") + (null != (o = s(e, "if").call(c, null != n ? s(n, "active") : n, { name: "if", hash: {}, fn: l.program(9, t, 0), inverse: l.noop, data: t, loc: { start: { line: 31, column: 135 }, end: { line: 31, column: 169 } } })) ? o : "") + 'label=" " fixedsize=true style=filled ' + (null != (o = typeof (r = null != (r = s(e, "sizingExtras") || (null != n ? s(n, "sizingExtras") : n)) ? r : i) == u ? r.call(c, { name: "sizingExtras", hash: {}, data: t, loc: { start: { line: 31, column: 207 }, end: { line: 31, column: 225 } } }) : r) ? o : "") + "]\n"; }, 45: function (l, n, e, a, t) { var o, r, c = null != n ? n : l.nullContext || {}, i = l.hooks.helperMissing, u = "function", s = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
18
- return l[n]; }; return ' "' + (null != (o = typeof (r = null != (r = s(e, "name") || (null != n ? s(n, "name") : n)) ? r : i) == u ? r.call(c, { name: "name", hash: {}, data: t, loc: { start: { line: 37, column: 3 }, end: { line: 37, column: 13 } } }) : r) ? o : "") + '" [label= < \n <table align="center" cellborder="0" border="0">\n <tr><td cellpadding="0"><font ' + (null != (o = s(e, "if").call(c, null != n ? s(n, "color") : n, { name: "if", hash: {}, fn: l.program(12, t, 0), inverse: l.noop, data: t, loc: { start: { line: 39, column: 38 }, end: { line: 39, column: 78 } } })) ? o : "") + 'point-size="20">X</font></td></tr>\n <tr><td cellpadding="0"><font ' + (null != (o = s(e, "if").call(c, null != n ? s(n, "color") : n, { name: "if", hash: {}, fn: l.program(46, t, 0), inverse: l.noop, data: t, loc: { start: { line: 40, column: 38 }, end: { line: 40, column: 77 } } })) ? o : "") + ">" + l.escapeExpression(typeof (r = null != (r = s(e, "label") || (null != n ? s(n, "label") : n)) ? r : i) == u ? r.call(c, { name: "label", hash: {}, data: t, loc: { start: { line: 40, column: 78 }, end: { line: 40, column: 87 } } }) : r) + '</font></td></tr>\n </table>\n > class="' + (null != (o = typeof (r = null != (r = s(e, "class") || (null != n ? s(n, "class") : n)) ? r : i) == u ? r.call(c, { name: "class", hash: {}, data: t, loc: { start: { line: 42, column: 13 }, end: { line: 42, column: 24 } } }) : r) ? o : "") + '"]\n'; }, 46: function (l, n, e, a, t) { var o = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
19
- return l[n]; }; return 'color="' + (null != (o = "function" == typeof (e = null != (e = o(e, "color") || (null != n ? o(n, "color") : n)) ? e : l.hooks.helperMissing) ? e.call(null != n ? n : l.nullContext || {}, { name: "color", hash: {}, data: t, loc: { start: { line: 40, column: 58 }, end: { line: 40, column: 69 } } }) : e) ? o : "") + '"'; }, 48: function (l, n, e, a, t) { var o, r, c = null != n ? n : l.nullContext || {}, i = l.hooks.helperMissing, u = "function", s = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
20
- return l[n]; }; return ' "' + (null != (o = typeof (r = null != (r = s(e, "name") || (null != n ? s(n, "name") : n)) ? r : i) == u ? r.call(c, { name: "name", hash: {}, data: t, loc: { start: { line: 45, column: 3 }, end: { line: 45, column: 13 } } }) : r) ? o : "") + '" [shape=circle style=filled class="' + (null != (o = typeof (r = null != (r = s(e, "class") || (null != n ? s(n, "class") : n)) ? r : i) == u ? r.call(c, { name: "class", hash: {}, data: t, loc: { start: { line: 45, column: 49 }, end: { line: 45, column: 60 } } }) : r) ? o : "") + '" ' + (null != (o = s(e, "if").call(c, null != n ? s(n, "color") : n, { name: "if", hash: {}, fn: l.program(5, t, 0), inverse: l.program(7, t, 0), data: t, loc: { start: { line: 45, column: 62 }, end: { line: 45, column: 150 } } })) ? o : "") + "fixedsize=true height=0.15 peripheries=2 " + (null != (o = s(e, "if").call(c, null != n ? s(n, "active") : n, { name: "if", hash: {}, fn: l.program(9, t, 0), inverse: l.noop, data: t, loc: { start: { line: 45, column: 191 }, end: { line: 45, column: 225 } } })) ? o : "") + 'label=""]\n'; }, 50: function (l, n, e, a, t) { var o = null != n ? n : l.nullContext || {}, r = l.hooks.helperMissing, c = "function", i = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
21
- return l[n]; }, u = ' subgraph "cluster_' + (null != (p = typeof (s = null != (s = i(e, "name") || (null != n ? i(n, "name") : n)) ? s : r) == c ? s.call(o, { name: "name", hash: {}, data: t, loc: { start: { line: 48, column: 20 }, end: { line: 48, column: 30 } } }) : s) ? p : "") + '" {\n class="' + (null != (p = typeof (s = null != (s = i(e, "class") || (null != n ? i(n, "class") : n)) ? s : r) == c ? s.call(o, { name: "class", hash: {}, data: t, loc: { start: { line: 49, column: 11 }, end: { line: 49, column: 22 } } }) : s) ? p : "") + '" ' + (null != (p = i(e, "if").call(o, null != n ? i(n, "color") : n, { name: "if", hash: {}, fn: l.program(12, t, 0), inverse: l.noop, data: t, loc: { start: { line: 49, column: 24 }, end: { line: 49, column: 64 } } })) ? p : "") + 'label= <\n <table cellborder="0" border="0">\n <tr><td>' + (null != (p = i(e, "if").call(o, null != n ? i(n, "active") : n, { name: "if", hash: {}, fn: l.program(20, t, 0), inverse: l.program(22, t, 0), data: t, loc: { start: { line: 51, column: 14 }, end: { line: 51, column: 68 } } })) ? p : "") + "</td></tr>\n", s = null != (s = i(e, "actionStrings") || (null != n ? i(n, "actionStrings") : n)) ? s : r, m = { name: "actionStrings", hash: {}, fn: l.program(51, t, 0), inverse: l.noop, data: t, loc: { start: { line: 52, column: 6 }, end: { line: 55, column: 24 } } }, p = typeof s == c ? s.call(o, m) : s; return null != (p = i(e, "actionStrings") ? p : l.hooks.blockHelperMissing.call(n, p, m)) && (u += p), u + " </table>\n > " + (null != (p = i(e, "if").call(o, null != n ? i(n, "parentIsParallel") : n, { name: "if", hash: {}, fn: l.program(53, t, 0), inverse: l.program(55, t, 0), data: t, loc: { start: { line: 57, column: 6 }, end: { line: 57, column: 137 } } })) ? p : "") + '\n "' + (null != (p = typeof (s = null != (s = i(e, "name") || (null != n ? i(n, "name") : n)) ? s : r) == c ? s.call(o, { name: "name", hash: {}, data: t, loc: { start: { line: 58, column: 5 }, end: { line: 58, column: 15 } } }) : s) ? p : "") + '" [shape=point style=invis margin=0 width=0 height=0 fixedsize=true]\n ' + (null != (p = (i(e, "stateSection") || n && i(n, "stateSection") || r).call(o, null != n ? i(n, "statemachine") : n, { name: "stateSection", hash: {}, fn: l.program(33, t, 0), inverse: l.noop, data: t, loc: { start: { line: 59, column: 4 }, end: { line: 59, column: 51 } } })) ? p : "") + "\n }\n"; }, 51: function (l, n, e, a, t) { var o = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
22
- return l[n]; }; return " " + (null != (e = o(e, "if").call(null != n ? n : l.nullContext || {}, t && o(t, "first"), { name: "if", hash: {}, fn: l.program(25, t, 0), inverse: l.noop, data: t, loc: { start: { line: 53, column: 8 }, end: { line: 53, column: 34 } } })) ? e : "") + '\n <tr><td align="left">' + l.escapeExpression(l.lambda(n, n)) + "</td></tr>\n"; }, 53: function (l, n, e, a, t) { return 'style="dashed" penwidth=1'; }, 55: function (l, n, e, a, t) { var o = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
23
- return l[n]; }; return "style=rounded " + (null != (e = o(e, "if").call(null != n ? n : l.nullContext || {}, null != n ? o(n, "active") : n, { name: "if", hash: {}, fn: l.program(56, t, 0), inverse: l.program(58, t, 0), data: t, loc: { start: { line: 57, column: 77 }, end: { line: 57, column: 130 } } })) ? e : ""); }, 56: function (l, n, e, a, t) { return "penwidth=3.0"; }, 58: function (l, n, e, a, t) { return "penwidth=2.0"; }, 60: function (l, n, e, a, t, o, r) { var c = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
24
- return l[n]; }, i = "", u = null != (u = c(e, "noteName") || (null != n ? c(n, "noteName") : n)) ? u : l.hooks.helperMissing, o = { name: "noteName", hash: {}, fn: l.program(61, t, 0, o, r), inverse: l.noop, data: t, loc: { start: { line: 63, column: 4 }, end: { line: 66, column: 17 } } }, r = "function" == typeof u ? u.call(null != n ? n : l.nullContext || {}, o) : u; return null != (r = c(e, "noteName") ? r : l.hooks.blockHelperMissing.call(n, r, o)) && (i += r), i; }, 61: function (l, n, e, a, t, o, r) { var c, i = l.lambda, l = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
25
- return l[n]; }; return ' "' + (null != (c = i(n, n)) ? c : "") + '" [color=black fontcolor=black label="' + (null != (c = i(null != r[1] ? l(r[1], "noteFlattened") : r[1], n)) ? c : "") + '" shape=note fontsize=10 fillcolor="#ffffcc" penwidth=1.0]\n "' + (null != (c = i(null != r[1] ? l(r[1], "name") : r[1], n)) ? c : "") + '" -> "' + (null != (c = i(n, n)) ? c : "") + '" [style=dashed arrowtail=none arrowhead=none]\n'; }, compiler: [8, ">= 4.3.0"], main: function (l, n, e, a, t, o, r) { var c = null != n ? n : l.nullContext || {}, i = l.hooks.helperMissing, u = "function", s = l.hooks.blockHelperMissing, m = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
26
- return l[n]; }, p = "", f = null != (f = m(e, "compositeStates") || (null != n ? m(n, "compositeStates") : n)) ? f : i, h = { name: "compositeStates", hash: {}, fn: l.program(1, t, 0, o, r), inverse: l.noop, data: t, loc: { start: { line: 1, column: 0 }, end: { line: 5, column: 20 } } }, d = typeof f == u ? f.call(c, h) : f; return null != (d = m(e, "compositeStates") ? d : s.call(n, d, h)) && (p += d), f = null != (f = m(e, "initialStates") || (null != n ? m(n, "initialStates") : n)) ? f : i, h = { name: "initialStates", hash: {}, fn: l.program(4, t, 0, o, r), inverse: l.noop, data: t, loc: { start: { line: 6, column: 0 }, end: { line: 8, column: 18 } } }, d = typeof f == u ? f.call(c, h) : f, null != (d = m(e, "initialStates") ? d : s.call(n, d, h)) && (p += d), f = null != (f = m(e, "regularStates") || (null != n ? m(n, "regularStates") : n)) ? f : i, h = { name: "regularStates", hash: {}, fn: l.program(11, t, 0, o, r), inverse: l.noop, data: t, loc: { start: { line: 9, column: 0 }, end: { line: 19, column: 18 } } }, d = typeof f == u ? f.call(c, h) : f, null != (d = m(e, "regularStates") ? d : s.call(n, d, h)) && (p += d), f = null != (f = m(e, "historyStates") || (null != n ? m(n, "historyStates") : n)) ? f : i, h = { name: "historyStates", hash: {}, fn: l.program(27, t, 0, o, r), inverse: l.noop, data: t, loc: { start: { line: 20, column: 0 }, end: { line: 22, column: 18 } } }, d = typeof f == u ? f.call(c, h) : f, null != (d = m(e, "historyStates") ? d : s.call(n, d, h)) && (p += d), f = null != (f = m(e, "deepHistoryStates") || (null != n ? m(n, "deepHistoryStates") : n)) ? f : i, h = { name: "deepHistoryStates", hash: {}, fn: l.program(29, t, 0, o, r), inverse: l.noop, data: t, loc: { start: { line: 23, column: 0 }, end: { line: 25, column: 22 } } }, d = typeof f == u ? f.call(c, h) : f, null != (d = m(e, "deepHistoryStates") ? d : s.call(n, d, h)) && (p += d), f = null != (f = m(e, "choiceStates") || (null != n ? m(n, "choiceStates") : n)) ? f : i, h = { name: "choiceStates", hash: {}, fn: l.program(31, t, 0, o, r), inverse: l.noop, data: t, loc: { start: { line: 26, column: 0 }, end: { line: 29, column: 17 } } }, d = typeof f == u ? f.call(c, h) : f, null != (d = m(e, "choiceStates") ? d : s.call(n, d, h)) && (p += d), f = null != (f = m(e, "forkjoinStates") || (null != n ? m(n, "forkjoinStates") : n)) ? f : i, h = { name: "forkjoinStates", hash: {}, fn: l.program(43, t, 0, o, r), inverse: l.noop, data: t, loc: { start: { line: 30, column: 0 }, end: { line: 32, column: 19 } } }, d = typeof f == u ? f.call(c, h) : f, null != (d = m(e, "forkjoinStates") ? d : s.call(n, d, h)) && (p += d), f = null != (f = m(e, "junctionStates") || (null != n ? m(n, "junctionStates") : n)) ? f : i, h = { name: "junctionStates", hash: {}, fn: l.program(4, t, 0, o, r), inverse: l.noop, data: t, loc: { start: { line: 33, column: 0 }, end: { line: 35, column: 19 } } }, d = typeof f == u ? f.call(c, h) : f, null != (d = m(e, "junctionStates") ? d : s.call(n, d, h)) && (p += d), f = null != (f = m(e, "terminateStates") || (null != n ? m(n, "terminateStates") : n)) ? f : i, h = { name: "terminateStates", hash: {}, fn: l.program(45, t, 0, o, r), inverse: l.noop, data: t, loc: { start: { line: 36, column: 0 }, end: { line: 43, column: 20 } } }, d = typeof f == u ? f.call(c, h) : f, null != (d = m(e, "terminateStates") ? d : s.call(n, d, h)) && (p += d), f = null != (f = m(e, "finalStates") || (null != n ? m(n, "finalStates") : n)) ? f : i, h = { name: "finalStates", hash: {}, fn: l.program(48, t, 0, o, r), inverse: l.noop, data: t, loc: { start: { line: 44, column: 0 }, end: { line: 46, column: 16 } } }, d = typeof f == u ? f.call(c, h) : f, null != (d = m(e, "finalStates") ? d : s.call(n, d, h)) && (p += d), f = null != (f = m(e, "compositeStates") || (null != n ? m(n, "compositeStates") : n)) ? f : i, h = { name: "compositeStates", hash: {}, fn: l.program(50, t, 0, o, r), inverse: l.noop, data: t, loc: { start: { line: 47, column: 0 }, end: { line: 61, column: 20 } } }, d = typeof f == u ? f.call(c, h) : f, null != (d = m(e, "compositeStates") ? d : s.call(n, d, h)) && (p += d), f = null != (f = m(e, "states") || (null != n ? m(n, "states") : n)) ? f : i, h = { name: "states", hash: {}, fn: l.program(60, t, 0, o, r), inverse: l.noop, data: t, loc: { start: { line: 62, column: 0 }, end: { line: 67, column: 11 } } }, d = typeof f == u ? f.call(c, h) : f, null != (d = m(e, "states") ? d : s.call(n, d, h)) && (p += d), p; }, useData: !0, useDepths: !0 });
1
+ var Handlebars=require("handlebars/dist/handlebars.runtime"),template=Handlebars.template,templates=Handlebars.templates=Handlebars.templates||{};templates["dot.states.template.hbs"]=template({1:function(l,n,e,a,t){var o=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]},r="",c=null!=(c=o(e,"nestedExternalSelfTransitions")||(null!=n?o(n,"nestedExternalSelfTransitions"):n))?c:l.hooks.helperMissing,t={name:"nestedExternalSelfTransitions",hash:{},fn:l.program(2,t,0),inverse:l.noop,data:t,loc:{start:{line:2,column:2},end:{line:4,column:36}}},c="function"==typeof c?c.call(null!=n?n:l.nullContext||{},t):c;return null!=(c=o(e,"nestedExternalSelfTransitions")?c:l.hooks.blockHelperMissing.call(n,c,t))&&(r+=c),r},2:function(l,n,e,a,t){return' "self_'+(null!=(l=l.lambda(n,n))?l:"")+'" [shape=point style=invis width=0 height=0 fixedsize=true]\n'},4:function(l,n,e,a,t){var o,r,c=null!=n?n:l.nullContext||{},i=l.hooks.helperMissing,u="function",s=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return' "'+(null!=(o=typeof(r=null!=(r=s(e,"name")||(null!=n?s(n,"name"):n))?r:i)==u?r.call(c,{name:"name",hash:{},data:t,loc:{start:{line:7,column:3},end:{line:7,column:13}}}):r)?o:"")+'" [shape=circle style=filled class="'+(null!=(o=typeof(r=null!=(r=s(e,"class")||(null!=n?s(n,"class"):n))?r:i)==u?r.call(c,{name:"class",hash:{},data:t,loc:{start:{line:7,column:49},end:{line:7,column:60}}}):r)?o:"")+'" '+(null!=(o=s(e,"if").call(c,null!=n?s(n,"color"):n,{name:"if",hash:{},fn:l.program(5,t,0),inverse:l.program(7,t,0),data:t,loc:{start:{line:7,column:62},end:{line:7,column:150}}}))?o:"")+(null!=(o=s(e,"if").call(c,null!=n?s(n,"active"):n,{name:"if",hash:{},fn:l.program(9,t,0),inverse:l.noop,data:t,loc:{start:{line:7,column:150},end:{line:7,column:184}}}))?o:"")+'fixedsize=true height=0.15 label=""]\n'},5:function(l,n,e,a,t){var o,r,c=null!=n?n:l.nullContext||{},i=l.hooks.helperMissing,u="function",l=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return'color="'+(null!=(o=typeof(r=null!=(r=l(e,"color")||(null!=n?l(n,"color"):n))?r:i)==u?r.call(c,{name:"color",hash:{},data:t,loc:{start:{line:7,column:82},end:{line:7,column:93}}}):r)?o:"")+'" fillcolor="'+(null!=(o=typeof(r=null!=(r=l(e,"color")||(null!=n?l(n,"color"):n))?r:i)==u?r.call(c,{name:"color",hash:{},data:t,loc:{start:{line:7,column:106},end:{line:7,column:117}}}):r)?o:"")+'" '},7:function(l,n,e,a,t){return"fillcolor=black "},9:function(l,n,e,a,t){return"penwidth=3.0 "},11:function(l,n,e,a,t){var o=null!=n?n:l.nullContext||{},r=l.hooks.helperMissing,c="function",i=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]},u=' "'+(null!=(m=typeof(s=null!=(s=i(e,"name")||(null!=n?i(n,"name"):n))?s:r)==c?s.call(o,{name:"name",hash:{},data:t,loc:{start:{line:10,column:3},end:{line:10,column:13}}}):s)?m:"")+'" [margin=0 class="'+(null!=(m=typeof(s=null!=(s=i(e,"class")||(null!=n?i(n,"class"):n))?s:r)==c?s.call(o,{name:"class",hash:{},data:t,loc:{start:{line:10,column:32},end:{line:10,column:43}}}):s)?m:"")+'" '+(null!=(m=i(e,"if").call(o,null!=n?i(n,"color"):n,{name:"if",hash:{},fn:l.program(12,t,0),inverse:l.noop,data:t,loc:{start:{line:10,column:45},end:{line:10,column:85}}}))?m:"")+(null!=(m=i(e,"if").call(o,null!=n?i(n,"active"):n,{name:"if",hash:{},fn:l.program(14,t,0),inverse:l.noop,data:t,loc:{start:{line:10,column:85},end:{line:10,column:134}}}))?m:"")+'label= < \n <table align="center" cellborder="0" border="2" style="rounded" width="48">\n <tr><td width="48"'+(null!=(m=i(e,"if").call(o,null!=n?i(n,"actionStrings"):n,{name:"if",hash:{},fn:l.program(16,t,0),inverse:l.program(18,t,0),data:t,loc:{start:{line:12,column:24},end:{line:12,column:92}}}))?m:"")+">"+(null!=(m=i(e,"if").call(o,null!=n?i(n,"active"):n,{name:"if",hash:{},fn:l.program(20,t,0),inverse:l.program(22,t,0),data:t,loc:{start:{line:12,column:93},end:{line:12,column:147}}}))?m:"")+"</td></tr>\n",s=null!=(s=i(e,"actionStrings")||(null!=n?i(n,"actionStrings"):n))?s:r,r={name:"actionStrings",hash:{},fn:l.program(24,t,0),inverse:l.noop,data:t,loc:{start:{line:13,column:6},end:{line:16,column:24}}},m=typeof s==c?s.call(o,r):s;return null!=(m=i(e,"actionStrings")?m:l.hooks.blockHelperMissing.call(n,m,r))&&(u+=m),u+" </table>\n >]\n"},12:function(l,n,e,a,t){var o=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return'color="'+(null!=(o="function"==typeof(e=null!=(e=o(e,"color")||(null!=n?o(n,"color"):n))?e:l.hooks.helperMissing)?e.call(null!=n?n:l.nullContext||{},{name:"color",hash:{},data:t,loc:{start:{line:10,column:65},end:{line:10,column:76}}}):e)?o:"")+'" '},14:function(l,n,e,a,t){return"peripheries=1 style=rounded "},16:function(l,n,e,a,t){return' cellpadding="2"'},18:function(l,n,e,a,t){return' cellpadding="7"'},20:function(l,n,e,a,t){var o=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return"<i>"+l.escapeExpression("function"==typeof(e=null!=(e=o(e,"label")||(null!=n?o(n,"label"):n))?e:l.hooks.helperMissing)?e.call(null!=n?n:l.nullContext||{},{name:"label",hash:{},data:t,loc:{start:{line:12,column:110},end:{line:12,column:119}}}):e)+"</i>"},22:function(l,n,e,a,t){var o=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return l.escapeExpression("function"==typeof(e=null!=(e=o(e,"label")||(null!=n?o(n,"label"):n))?e:l.hooks.helperMissing)?e.call(null!=n?n:l.nullContext||{},{name:"label",hash:{},data:t,loc:{start:{line:12,column:131},end:{line:12,column:140}}}):e)},24:function(l,n,e,a,t){var o=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return" "+(null!=(e=o(e,"if").call(null!=n?n:l.nullContext||{},t&&o(t,"first"),{name:"if",hash:{},fn:l.program(25,t,0),inverse:l.noop,data:t,loc:{start:{line:14,column:8},end:{line:14,column:34}}}))?e:"")+'\n <tr><td align="left" cellpadding="2">'+l.escapeExpression(l.lambda(n,n))+"</td></tr>\n"},25:function(l,n,e,a,t){return"<hr/>"},27:function(l,n,e,a,t){var o,r,c=null!=n?n:l.nullContext||{},i=l.hooks.helperMissing,u="function",s=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return' "'+(null!=(o=typeof(r=null!=(r=s(e,"name")||(null!=n?s(n,"name"):n))?r:i)==u?r.call(c,{name:"name",hash:{},data:t,loc:{start:{line:21,column:3},end:{line:21,column:13}}}):r)?o:"")+'" [shape=circle class="'+(null!=(o=typeof(r=null!=(r=s(e,"class")||(null!=n?s(n,"class"):n))?r:i)==u?r.call(c,{name:"class",hash:{},data:t,loc:{start:{line:21,column:36},end:{line:21,column:47}}}):r)?o:"")+'" '+(null!=(o=s(e,"if").call(c,null!=n?s(n,"color"):n,{name:"if",hash:{},fn:l.program(12,t,0),inverse:l.noop,data:t,loc:{start:{line:21,column:49},end:{line:21,column:89}}}))?o:"")+(null!=(o=s(e,"if").call(c,null!=n?s(n,"active"):n,{name:"if",hash:{},fn:l.program(9,t,0),inverse:l.noop,data:t,loc:{start:{line:21,column:89},end:{line:21,column:123}}}))?o:"")+'label="H"]\n'},29:function(l,n,e,a,t){var o,r,c=null!=n?n:l.nullContext||{},i=l.hooks.helperMissing,u="function",s=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return' "'+(null!=(o=typeof(r=null!=(r=s(e,"name")||(null!=n?s(n,"name"):n))?r:i)==u?r.call(c,{name:"name",hash:{},data:t,loc:{start:{line:24,column:3},end:{line:24,column:13}}}):r)?o:"")+'" [shape=circle class="'+(null!=(o=typeof(r=null!=(r=s(e,"class")||(null!=n?s(n,"class"):n))?r:i)==u?r.call(c,{name:"class",hash:{},data:t,loc:{start:{line:24,column:36},end:{line:24,column:47}}}):r)?o:"")+'" '+(null!=(o=s(e,"if").call(c,null!=n?s(n,"color"):n,{name:"if",hash:{},fn:l.program(12,t,0),inverse:l.noop,data:t,loc:{start:{line:24,column:49},end:{line:24,column:89}}}))?o:"")+(null!=(o=s(e,"if").call(c,null!=n?s(n,"active"):n,{name:"if",hash:{},fn:l.program(9,t,0),inverse:l.noop,data:t,loc:{start:{line:24,column:89},end:{line:24,column:123}}}))?o:"")+'label="H*"]\n'},31:function(l,n,e,a,t,o,r){var c=null!=n?n:l.nullContext||{},i=l.hooks.helperMissing,u="function",s=l.hooks.blockHelperMissing,m=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]},p=' "'+(null!=(d=typeof(f=null!=(f=m(e,"name")||(null!=n?m(n,"name"):n))?f:i)==u?f.call(c,{name:"name",hash:{},data:t,loc:{start:{line:27,column:3},end:{line:27,column:13}}}):f)?d:"")+'" [shape=diamond fixedsize=true width=0.35 height=0.35 fontsize=10 class="'+(null!=(d=typeof(f=null!=(f=m(e,"class")||(null!=n?m(n,"class"):n))?f:i)==u?f.call(c,{name:"class",hash:{},data:t,loc:{start:{line:27,column:87},end:{line:27,column:98}}}):f)?d:"")+'" '+(null!=(d=m(e,"if").call(c,null!=n?m(n,"color"):n,{name:"if",hash:{},fn:l.program(12,t,0,o,r),inverse:l.noop,data:t,loc:{start:{line:27,column:100},end:{line:27,column:140}}}))?d:"")+(null!=(d=m(e,"if").call(c,null!=n?m(n,"active"):n,{name:"if",hash:{},fn:l.program(9,t,0,o,r),inverse:l.noop,data:t,loc:{start:{line:27,column:140},end:{line:27,column:174}}}))?d:"")+'label=" "]\n "'+(null!=(d=typeof(f=null!=(f=m(e,"name")||(null!=n?m(n,"name"):n))?f:i)==u?f.call(c,{name:"name",hash:{},data:t,loc:{start:{line:28,column:3},end:{line:28,column:13}}}):f)?d:"")+'" -> "'+(null!=(d=typeof(f=null!=(f=m(e,"name")||(null!=n?m(n,"name"):n))?f:i)==u?f.call(c,{name:"name",hash:{},data:t,loc:{start:{line:28,column:19},end:{line:28,column:29}}}):f)?d:"")+'" [label=<',f=null!=(f=m(e,"actionStrings")||(null!=n?m(n,"actionStrings"):n))?f:i,h={name:"actionStrings",hash:{},fn:l.program(32,t,0,o,r),inverse:l.noop,data:t,loc:{start:{line:28,column:39},end:{line:28,column:156}}},d=typeof f==u?f.call(c,h):f;return null!=(d=m(e,"actionStrings")?d:s.call(n,d,h))&&(p+=d),p+='> color="#FFFFFF01"',f=null!=(f=m(e,"color")||(null!=n?m(n,"color"):n))?f:i,h={name:"color",hash:{},fn:l.program(41,t,0,o,r),inverse:l.noop,data:t,loc:{start:{line:28,column:175},end:{line:28,column:215}}},d=typeof f==u?f.call(c,h):f,null!=(d=m(e,"color")?d:s.call(n,d,h))&&(p+=d),p+' class="'+(null!=(d=typeof(f=null!=(f=m(e,"class")||(null!=n?m(n,"class"):n))?f:i)==u?f.call(c,{name:"class",hash:{},data:t,loc:{start:{line:28,column:223},end:{line:28,column:234}}}):f)?d:"")+'"];\n'},32:function(l,n,e,a,t,o,r){var c,n=null!=n?n:l.nullContext||{},i=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return(null!=(c=i(e,"if").call(n,t&&i(t,"first"),{name:"if",hash:{},fn:l.program(33,t,0,o,r),inverse:l.program(35,t,0,o,r),data:t,loc:{start:{line:28,column:57},end:{line:28,column:88}}}))?c:"")+(null!=(c=i(e,"if").call(n,null!=r[1]?i(r[1],"active"):r[1],{name:"if",hash:{},fn:l.program(37,t,0,o,r),inverse:l.program(39,t,0,o,r),data:t,loc:{start:{line:28,column:88},end:{line:28,column:137}}}))?c:"")},33:function(l,n,e,a,t){return""},35:function(l,n,e,a,t){return"\\n"},37:function(l,n,e,a,t){return"<i>"+l.escapeExpression(l.lambda(n,n))+"</i>"},39:function(l,n,e,a,t){return l.escapeExpression(l.lambda(n,n))},41:function(l,n,e,a,t){return' fontcolor="'+(null!=(l=l.lambda(n,n))?l:"")+'"'},43:function(l,n,e,a,t){var o,r,c=null!=n?n:l.nullContext||{},i=l.hooks.helperMissing,u="function",s=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return' "'+(null!=(o=typeof(r=null!=(r=s(e,"name")||(null!=n?s(n,"name"):n))?r:i)==u?r.call(c,{name:"name",hash:{},data:t,loc:{start:{line:31,column:3},end:{line:31,column:13}}}):r)?o:"")+'" [shape=rect class="'+(null!=(o=typeof(r=null!=(r=s(e,"class")||(null!=n?s(n,"class"):n))?r:i)==u?r.call(c,{name:"class",hash:{},data:t,loc:{start:{line:31,column:34},end:{line:31,column:45}}}):r)?o:"")+'" '+(null!=(o=s(e,"if").call(c,null!=n?s(n,"color"):n,{name:"if",hash:{},fn:l.program(5,t,0),inverse:l.program(7,t,0),data:t,loc:{start:{line:31,column:47},end:{line:31,column:135}}}))?o:"")+(null!=(o=s(e,"if").call(c,null!=n?s(n,"active"):n,{name:"if",hash:{},fn:l.program(9,t,0),inverse:l.noop,data:t,loc:{start:{line:31,column:135},end:{line:31,column:169}}}))?o:"")+'label=" " fixedsize=true style=filled '+(null!=(o=typeof(r=null!=(r=s(e,"sizingExtras")||(null!=n?s(n,"sizingExtras"):n))?r:i)==u?r.call(c,{name:"sizingExtras",hash:{},data:t,loc:{start:{line:31,column:207},end:{line:31,column:225}}}):r)?o:"")+"]\n"},45:function(l,n,e,a,t){var o,r,c=null!=n?n:l.nullContext||{},i=l.hooks.helperMissing,u="function",s=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return' "'+(null!=(o=typeof(r=null!=(r=s(e,"name")||(null!=n?s(n,"name"):n))?r:i)==u?r.call(c,{name:"name",hash:{},data:t,loc:{start:{line:37,column:3},end:{line:37,column:13}}}):r)?o:"")+'" [label= < \n <table align="center" cellborder="0" border="0">\n <tr><td cellpadding="0"><font '+(null!=(o=s(e,"if").call(c,null!=n?s(n,"color"):n,{name:"if",hash:{},fn:l.program(12,t,0),inverse:l.noop,data:t,loc:{start:{line:39,column:38},end:{line:39,column:78}}}))?o:"")+'point-size="20">X</font></td></tr>\n <tr><td cellpadding="0"><font '+(null!=(o=s(e,"if").call(c,null!=n?s(n,"color"):n,{name:"if",hash:{},fn:l.program(46,t,0),inverse:l.noop,data:t,loc:{start:{line:40,column:38},end:{line:40,column:77}}}))?o:"")+">"+l.escapeExpression(typeof(r=null!=(r=s(e,"label")||(null!=n?s(n,"label"):n))?r:i)==u?r.call(c,{name:"label",hash:{},data:t,loc:{start:{line:40,column:78},end:{line:40,column:87}}}):r)+'</font></td></tr>\n </table>\n > class="'+(null!=(o=typeof(r=null!=(r=s(e,"class")||(null!=n?s(n,"class"):n))?r:i)==u?r.call(c,{name:"class",hash:{},data:t,loc:{start:{line:42,column:13},end:{line:42,column:24}}}):r)?o:"")+'"]\n'},46:function(l,n,e,a,t){var o=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return'color="'+(null!=(o="function"==typeof(e=null!=(e=o(e,"color")||(null!=n?o(n,"color"):n))?e:l.hooks.helperMissing)?e.call(null!=n?n:l.nullContext||{},{name:"color",hash:{},data:t,loc:{start:{line:40,column:58},end:{line:40,column:69}}}):e)?o:"")+'"'},48:function(l,n,e,a,t){var o,r,c=null!=n?n:l.nullContext||{},i=l.hooks.helperMissing,u="function",s=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return' "'+(null!=(o=typeof(r=null!=(r=s(e,"name")||(null!=n?s(n,"name"):n))?r:i)==u?r.call(c,{name:"name",hash:{},data:t,loc:{start:{line:45,column:3},end:{line:45,column:13}}}):r)?o:"")+'" [shape=circle style=filled class="'+(null!=(o=typeof(r=null!=(r=s(e,"class")||(null!=n?s(n,"class"):n))?r:i)==u?r.call(c,{name:"class",hash:{},data:t,loc:{start:{line:45,column:49},end:{line:45,column:60}}}):r)?o:"")+'" '+(null!=(o=s(e,"if").call(c,null!=n?s(n,"color"):n,{name:"if",hash:{},fn:l.program(5,t,0),inverse:l.program(7,t,0),data:t,loc:{start:{line:45,column:62},end:{line:45,column:150}}}))?o:"")+"fixedsize=true height=0.15 peripheries=2 "+(null!=(o=s(e,"if").call(c,null!=n?s(n,"active"):n,{name:"if",hash:{},fn:l.program(9,t,0),inverse:l.noop,data:t,loc:{start:{line:45,column:191},end:{line:45,column:225}}}))?o:"")+'label=""]\n'},50:function(l,n,e,a,t){var o=null!=n?n:l.nullContext||{},r=l.hooks.helperMissing,c="function",i=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]},u=' subgraph "cluster_'+(null!=(p=typeof(s=null!=(s=i(e,"name")||(null!=n?i(n,"name"):n))?s:r)==c?s.call(o,{name:"name",hash:{},data:t,loc:{start:{line:48,column:20},end:{line:48,column:30}}}):s)?p:"")+'" {\n class="'+(null!=(p=typeof(s=null!=(s=i(e,"class")||(null!=n?i(n,"class"):n))?s:r)==c?s.call(o,{name:"class",hash:{},data:t,loc:{start:{line:49,column:11},end:{line:49,column:22}}}):s)?p:"")+'" '+(null!=(p=i(e,"if").call(o,null!=n?i(n,"color"):n,{name:"if",hash:{},fn:l.program(12,t,0),inverse:l.noop,data:t,loc:{start:{line:49,column:24},end:{line:49,column:64}}}))?p:"")+'label= <\n <table cellborder="0" border="0">\n <tr><td>'+(null!=(p=i(e,"if").call(o,null!=n?i(n,"active"):n,{name:"if",hash:{},fn:l.program(20,t,0),inverse:l.program(22,t,0),data:t,loc:{start:{line:51,column:14},end:{line:51,column:68}}}))?p:"")+"</td></tr>\n",s=null!=(s=i(e,"actionStrings")||(null!=n?i(n,"actionStrings"):n))?s:r,m={name:"actionStrings",hash:{},fn:l.program(51,t,0),inverse:l.noop,data:t,loc:{start:{line:52,column:6},end:{line:55,column:24}}},p=typeof s==c?s.call(o,m):s;return null!=(p=i(e,"actionStrings")?p:l.hooks.blockHelperMissing.call(n,p,m))&&(u+=p),u+" </table>\n > "+(null!=(p=i(e,"if").call(o,null!=n?i(n,"parentIsParallel"):n,{name:"if",hash:{},fn:l.program(53,t,0),inverse:l.program(55,t,0),data:t,loc:{start:{line:57,column:6},end:{line:57,column:137}}}))?p:"")+'\n "'+(null!=(p=typeof(s=null!=(s=i(e,"name")||(null!=n?i(n,"name"):n))?s:r)==c?s.call(o,{name:"name",hash:{},data:t,loc:{start:{line:58,column:5},end:{line:58,column:15}}}):s)?p:"")+'" [shape=point style=invis margin=0 width=0 height=0 fixedsize=true]\n '+(null!=(p=(i(e,"stateSection")||n&&i(n,"stateSection")||r).call(o,null!=n?i(n,"statemachine"):n,{name:"stateSection",hash:{},fn:l.program(33,t,0),inverse:l.noop,data:t,loc:{start:{line:59,column:4},end:{line:59,column:51}}}))?p:"")+"\n }\n"},51:function(l,n,e,a,t){var o=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return" "+(null!=(e=o(e,"if").call(null!=n?n:l.nullContext||{},t&&o(t,"first"),{name:"if",hash:{},fn:l.program(25,t,0),inverse:l.noop,data:t,loc:{start:{line:53,column:8},end:{line:53,column:34}}}))?e:"")+'\n <tr><td align="left">'+l.escapeExpression(l.lambda(n,n))+"</td></tr>\n"},53:function(l,n,e,a,t){return'style="dashed" penwidth=1'},55:function(l,n,e,a,t){var o=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return"style=rounded "+(null!=(e=o(e,"if").call(null!=n?n:l.nullContext||{},null!=n?o(n,"active"):n,{name:"if",hash:{},fn:l.program(56,t,0),inverse:l.program(58,t,0),data:t,loc:{start:{line:57,column:77},end:{line:57,column:130}}}))?e:"")},56:function(l,n,e,a,t){return"penwidth=3.0"},58:function(l,n,e,a,t){return"penwidth=2.0"},60:function(l,n,e,a,t,o,r){var c=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]},i="",u=null!=(u=c(e,"noteName")||(null!=n?c(n,"noteName"):n))?u:l.hooks.helperMissing,o={name:"noteName",hash:{},fn:l.program(61,t,0,o,r),inverse:l.noop,data:t,loc:{start:{line:63,column:4},end:{line:66,column:17}}},r="function"==typeof u?u.call(null!=n?n:l.nullContext||{},o):u;return null!=(r=c(e,"noteName")?r:l.hooks.blockHelperMissing.call(n,r,o))&&(i+=r),i},61:function(l,n,e,a,t,o,r){var c,i=l.lambda,l=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return' "'+(null!=(c=i(n,n))?c:"")+'" [color=black fontcolor=black label="'+(null!=(c=i(null!=r[1]?l(r[1],"noteFlattened"):r[1],n))?c:"")+'" shape=note fontsize=10 fillcolor="#ffffcc" penwidth=1.0]\n "'+(null!=(c=i(null!=r[1]?l(r[1],"name"):r[1],n))?c:"")+'" -> "'+(null!=(c=i(n,n))?c:"")+'" [style=dashed arrowtail=none arrowhead=none]\n'},compiler:[8,">= 4.3.0"],main:function(l,n,e,a,t,o,r){var c=null!=n?n:l.nullContext||{},i=l.hooks.helperMissing,u="function",s=l.hooks.blockHelperMissing,m=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]},p="",f=null!=(f=m(e,"compositeStates")||(null!=n?m(n,"compositeStates"):n))?f:i,h={name:"compositeStates",hash:{},fn:l.program(1,t,0,o,r),inverse:l.noop,data:t,loc:{start:{line:1,column:0},end:{line:5,column:20}}},d=typeof f==u?f.call(c,h):f;return null!=(d=m(e,"compositeStates")?d:s.call(n,d,h))&&(p+=d),f=null!=(f=m(e,"initialStates")||(null!=n?m(n,"initialStates"):n))?f:i,h={name:"initialStates",hash:{},fn:l.program(4,t,0,o,r),inverse:l.noop,data:t,loc:{start:{line:6,column:0},end:{line:8,column:18}}},d=typeof f==u?f.call(c,h):f,null!=(d=m(e,"initialStates")?d:s.call(n,d,h))&&(p+=d),f=null!=(f=m(e,"regularStates")||(null!=n?m(n,"regularStates"):n))?f:i,h={name:"regularStates",hash:{},fn:l.program(11,t,0,o,r),inverse:l.noop,data:t,loc:{start:{line:9,column:0},end:{line:19,column:18}}},d=typeof f==u?f.call(c,h):f,null!=(d=m(e,"regularStates")?d:s.call(n,d,h))&&(p+=d),f=null!=(f=m(e,"historyStates")||(null!=n?m(n,"historyStates"):n))?f:i,h={name:"historyStates",hash:{},fn:l.program(27,t,0,o,r),inverse:l.noop,data:t,loc:{start:{line:20,column:0},end:{line:22,column:18}}},d=typeof f==u?f.call(c,h):f,null!=(d=m(e,"historyStates")?d:s.call(n,d,h))&&(p+=d),f=null!=(f=m(e,"deepHistoryStates")||(null!=n?m(n,"deepHistoryStates"):n))?f:i,h={name:"deepHistoryStates",hash:{},fn:l.program(29,t,0,o,r),inverse:l.noop,data:t,loc:{start:{line:23,column:0},end:{line:25,column:22}}},d=typeof f==u?f.call(c,h):f,null!=(d=m(e,"deepHistoryStates")?d:s.call(n,d,h))&&(p+=d),f=null!=(f=m(e,"choiceStates")||(null!=n?m(n,"choiceStates"):n))?f:i,h={name:"choiceStates",hash:{},fn:l.program(31,t,0,o,r),inverse:l.noop,data:t,loc:{start:{line:26,column:0},end:{line:29,column:17}}},d=typeof f==u?f.call(c,h):f,null!=(d=m(e,"choiceStates")?d:s.call(n,d,h))&&(p+=d),f=null!=(f=m(e,"forkjoinStates")||(null!=n?m(n,"forkjoinStates"):n))?f:i,h={name:"forkjoinStates",hash:{},fn:l.program(43,t,0,o,r),inverse:l.noop,data:t,loc:{start:{line:30,column:0},end:{line:32,column:19}}},d=typeof f==u?f.call(c,h):f,null!=(d=m(e,"forkjoinStates")?d:s.call(n,d,h))&&(p+=d),f=null!=(f=m(e,"junctionStates")||(null!=n?m(n,"junctionStates"):n))?f:i,h={name:"junctionStates",hash:{},fn:l.program(4,t,0,o,r),inverse:l.noop,data:t,loc:{start:{line:33,column:0},end:{line:35,column:19}}},d=typeof f==u?f.call(c,h):f,null!=(d=m(e,"junctionStates")?d:s.call(n,d,h))&&(p+=d),f=null!=(f=m(e,"terminateStates")||(null!=n?m(n,"terminateStates"):n))?f:i,h={name:"terminateStates",hash:{},fn:l.program(45,t,0,o,r),inverse:l.noop,data:t,loc:{start:{line:36,column:0},end:{line:43,column:20}}},d=typeof f==u?f.call(c,h):f,null!=(d=m(e,"terminateStates")?d:s.call(n,d,h))&&(p+=d),f=null!=(f=m(e,"finalStates")||(null!=n?m(n,"finalStates"):n))?f:i,h={name:"finalStates",hash:{},fn:l.program(48,t,0,o,r),inverse:l.noop,data:t,loc:{start:{line:44,column:0},end:{line:46,column:16}}},d=typeof f==u?f.call(c,h):f,null!=(d=m(e,"finalStates")?d:s.call(n,d,h))&&(p+=d),f=null!=(f=m(e,"compositeStates")||(null!=n?m(n,"compositeStates"):n))?f:i,h={name:"compositeStates",hash:{},fn:l.program(50,t,0,o,r),inverse:l.noop,data:t,loc:{start:{line:47,column:0},end:{line:61,column:20}}},d=typeof f==u?f.call(c,h):f,null!=(d=m(e,"compositeStates")?d:s.call(n,d,h))&&(p+=d),f=null!=(f=m(e,"states")||(null!=n?m(n,"states"):n))?f:i,h={name:"states",hash:{},fn:l.program(60,t,0,o,r),inverse:l.noop,data:t,loc:{start:{line:62,column:0},end:{line:67,column:11}}},d=typeof f==u?f.call(c,h):f,null!=(d=m(e,"states")?d:s.call(n,d,h))&&(p+=d),p},useData:!0,useDepths:!0});
@@ -1,14 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var Handlebars = require("handlebars/dist/handlebars.runtime"), template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
4
- templates["dot.template.hbs"] = template({ 1: function (l, n, o, e, a, t, r) { var u = null != n ? n : l.nullContext || {}, c = l.hooks.helperMissing, s = "function", i = l.hooks.blockHelperMissing, m = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
5
- return l[n]; }, p = "", f = null != (f = m(o, "noteName") || (null != n ? m(n, "noteName") : n)) ? f : c, h = { name: "noteName", hash: {}, fn: l.noop, inverse: l.program(2, a, 0, t, r), data: a, loc: { start: { line: 9, column: 2 }, end: { line: 26, column: 15 } } }, d = typeof f == s ? f.call(u, h) : f; return null != (d = m(o, "noteName") ? d : i.call(n, d, h)) && (p += d), f = null != (f = m(o, "noteName") || (null != n ? m(n, "noteName") : n)) ? f : c, h = { name: "noteName", hash: {}, fn: l.program(19, a, 0, t, r), inverse: l.noop, data: a, loc: { start: { line: 27, column: 2 }, end: { line: 37, column: 15 } } }, d = typeof f == s ? f.call(u, h) : f, null != (d = m(o, "noteName") ? d : i.call(n, d, h)) && (p += d), p; }, 2: function (l, n, o, e, a) { var t = null != n ? n : l.nullContext || {}, r = l.hooks.helperMissing, u = "function", c = l.hooks.blockHelperMissing, s = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
6
- return l[n]; }, i = "", m = null != (m = s(o, "isCompositeSelf") || (null != n ? s(n, "isCompositeSelf") : n)) ? m : r, p = { name: "isCompositeSelf", hash: {}, fn: l.noop, inverse: l.program(3, a, 0), data: a, loc: { start: { line: 10, column: 4 }, end: { line: 16, column: 24 } } }, f = typeof m == u ? m.call(t, p) : m; return null != (f = s(o, "isCompositeSelf") ? f : c.call(n, f, p)) && (i += f), m = null != (m = s(o, "isCompositeSelf") || (null != n ? s(n, "isCompositeSelf") : n)) ? m : r, p = { name: "isCompositeSelf", hash: {}, fn: l.program(14, a, 0), inverse: l.noop, data: a, loc: { start: { line: 17, column: 4 }, end: { line: 25, column: 24 } } }, f = typeof m == u ? m.call(t, p) : m, null != (f = s(o, "isCompositeSelf") ? f : c.call(n, f, p)) && (i += f), i; }, 3: function (l, n, o, e, a) { var t = null != n ? n : l.nullContext || {}, r = l.hooks.helperMissing, u = "function", c = l.hooks.blockHelperMissing, s = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
7
- return l[n]; }, i = ' "' + (null != (f = typeof (m = null != (m = s(o, "from") || (null != n ? s(n, "from") : n)) ? m : r) == u ? m.call(t, { name: "from", hash: {}, data: a, loc: { start: { line: 11, column: 5 }, end: { line: 11, column: 15 } } }) : m) ? f : "") + '" -> "' + (null != (f = typeof (m = null != (m = s(o, "to") || (null != n ? s(n, "to") : n)) ? m : r) == u ? m.call(t, { name: "to", hash: {}, data: a, loc: { start: { line: 11, column: 21 }, end: { line: 11, column: 29 } } }) : m) ? f : "") + '" [label="', m = null != (m = s(o, "label") || (null != n ? s(n, "label") : n)) ? m : r, p = { name: "label", hash: {}, fn: l.noop, inverse: l.program(4, a, 0), data: a, loc: { start: { line: 11, column: 39 }, end: { line: 11, column: 60 } } }, f = typeof m == u ? m.call(t, p) : m; return null != (f = s(o, "label") ? f : c.call(n, f, p)) && (i += f), i += (null != (f = typeof (m = null != (m = s(o, "label") || (null != n ? s(n, "label") : n)) ? m : r) == u ? m.call(t, { name: "label", hash: {}, data: a, loc: { start: { line: 11, column: 60 }, end: { line: 11, column: 71 } } }) : m) ? f : "") + '"', m = null != (m = s(o, "fromComposite") || (null != n ? s(n, "fromComposite") : n)) ? m : r, p = { name: "fromComposite", hash: {}, fn: l.program(6, a, 0), inverse: l.noop, data: a, loc: { start: { line: 12, column: 28 }, end: { line: 12, column: 92 } } }, f = typeof m == u ? m.call(t, p) : m, null != (f = s(o, "fromComposite") ? f : c.call(n, f, p)) && (i += f), m = null != (m = s(o, "toComposite") || (null != n ? s(n, "toComposite") : n)) ? m : r, p = { name: "toComposite", hash: {}, fn: l.program(8, a, 0), inverse: l.noop, data: a, loc: { start: { line: 13, column: 28 }, end: { line: 13, column: 86 } } }, f = typeof m == u ? m.call(t, p) : m, null != (f = s(o, "toComposite") ? f : c.call(n, f, p)) && (i += f), m = null != (m = s(o, "color") || (null != n ? s(n, "color") : n)) ? m : r, p = { name: "color", hash: {}, fn: l.program(10, a, 0), inverse: l.noop, data: a, loc: { start: { line: 14, column: 28 }, end: { line: 14, column: 85 } } }, f = typeof m == u ? m.call(t, p) : m, null != (f = s(o, "color") ? f : c.call(n, f, p)) && (i += f), m = null != (m = s(o, "width") || (null != n ? s(n, "width") : n)) ? m : r, p = { name: "width", hash: {}, fn: l.program(12, a, 0), inverse: l.noop, data: a, loc: { start: { line: 15, column: 28 }, end: { line: 15, column: 68 } } }, f = typeof m == u ? m.call(t, p) : m, null != (f = s(o, "width") ? f : c.call(n, f, p)) && (i += f), i + ' class="' + (null != (f = typeof (m = null != (m = s(o, "class") || (null != n ? s(n, "class") : n)) ? m : r) == u ? m.call(t, { name: "class", hash: {}, data: a, loc: { start: { line: 15, column: 76 }, end: { line: 15, column: 87 } } }) : m) ? f : "") + '"]\n'; }, 4: function (l, n, o, e, a) { return " "; }, 6: function (l, n, o, e, a) { var t = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
8
- return l[n]; }; return ' ltail="cluster_' + (null != (t = "function" == typeof (o = null != (o = t(o, "from") || (null != n ? t(n, "from") : n)) ? o : l.hooks.helperMissing) ? o.call(null != n ? n : l.nullContext || {}, { name: "from", hash: {}, data: a, loc: { start: { line: 12, column: 63 }, end: { line: 12, column: 73 } } }) : o) ? t : "") + '"'; }, 8: function (l, n, o, e, a) { var t = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
9
- return l[n]; }; return ' lhead="cluster_' + (null != (t = "function" == typeof (o = null != (o = t(o, "to") || (null != n ? t(n, "to") : n)) ? o : l.hooks.helperMissing) ? o.call(null != n ? n : l.nullContext || {}, { name: "to", hash: {}, data: a, loc: { start: { line: 13, column: 61 }, end: { line: 13, column: 69 } } }) : o) ? t : "") + '"'; }, 10: function (l, n, o, e, a) { var t, l = l.lambda; return ' color="' + (null != (t = l(n, n)) ? t : "") + '" fontcolor="' + (null != (t = l(n, n)) ? t : "") + '"'; }, 12: function (l, n, o, e, a) { return ' penwidth="' + (null != (l = l.lambda(n, n)) ? l : "") + '"'; }, 14: function (l, n, o, e, a) { var t = null != n ? n : l.nullContext || {}, r = l.hooks.helperMissing, u = "function", c = l.hooks.blockHelperMissing, s = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
10
- return l[n]; }, i = ' "' + (null != (f = typeof (m = null != (m = s(o, "from") || (null != n ? s(n, "from") : n)) ? m : r) == u ? m.call(t, { name: "from", hash: {}, data: a, loc: { start: { line: 18, column: 7 }, end: { line: 18, column: 17 } } }) : m) ? f : "") + '" -> "self_' + (null != (f = typeof (m = null != (m = s(o, "name") || (null != n ? s(n, "name") : n)) ? m : r) == u ? m.call(t, { name: "name", hash: {}, data: a, loc: { start: { line: 18, column: 28 }, end: { line: 18, column: 38 } } }) : m) ? f : "") + '" [label="', m = null != (m = s(o, "label") || (null != n ? s(n, "label") : n)) ? m : r, p = { name: "label", hash: {}, fn: l.noop, inverse: l.program(4, a, 0), data: a, loc: { start: { line: 18, column: 48 }, end: { line: 18, column: 69 } } }, f = typeof m == u ? m.call(t, p) : m; return null != (f = s(o, "label") ? f : c.call(n, f, p)) && (i += f), i += (null != (f = typeof (m = null != (m = s(o, "label") || (null != n ? s(n, "label") : n)) ? m : r) == u ? m.call(t, { name: "label", hash: {}, data: a, loc: { start: { line: 18, column: 69 }, end: { line: 18, column: 80 } } }) : m) ? f : "") + '" arrowhead=none', m = null != (m = s(o, "tailportflags") || (null != n ? s(n, "tailportflags") : n)) ? m : r, p = { name: "tailportflags", hash: {}, fn: l.program(15, a, 0), inverse: l.noop, data: a, loc: { start: { line: 19, column: 28 }, end: { line: 19, column: 73 } } }, f = typeof m == u ? m.call(t, p) : m, null != (f = s(o, "tailportflags") ? f : c.call(n, f, p)) && (i += f), i += ' ltail="cluster_' + (null != (f = typeof (m = null != (m = s(o, "from") || (null != n ? s(n, "from") : n)) ? m : r) == u ? m.call(t, { name: "from", hash: {}, data: a, loc: { start: { line: 19, column: 89 }, end: { line: 19, column: 99 } } }) : m) ? f : "") + '"', m = null != (m = s(o, "color") || (null != n ? s(n, "color") : n)) ? m : r, p = { name: "color", hash: {}, fn: l.program(10, a, 0), inverse: l.noop, data: a, loc: { start: { line: 20, column: 28 }, end: { line: 20, column: 85 } } }, f = typeof m == u ? m.call(t, p) : m, null != (f = s(o, "color") ? f : c.call(n, f, p)) && (i += f), i += ' class="' + (null != (f = typeof (m = null != (m = s(o, "class") || (null != n ? s(n, "class") : n)) ? m : r) == u ? m.call(t, { name: "class", hash: {}, data: a, loc: { start: { line: 20, column: 93 }, end: { line: 20, column: 104 } } }) : m) ? f : "") + '"]\n "self_' + (null != (f = typeof (m = null != (m = s(o, "name") || (null != n ? s(n, "name") : n)) ? m : r) == u ? m.call(t, { name: "name", hash: {}, data: a, loc: { start: { line: 21, column: 12 }, end: { line: 21, column: 22 } } }) : m) ? f : "") + '" -> "' + (null != (f = typeof (m = null != (m = s(o, "from") || (null != n ? s(n, "from") : n)) ? m : r) == u ? m.call(t, { name: "from", hash: {}, data: a, loc: { start: { line: 21, column: 28 }, end: { line: 21, column: 38 } } }) : m) ? f : "") + '" [lhead="cluster_' + (null != (f = typeof (m = null != (m = s(o, "from") || (null != n ? s(n, "from") : n)) ? m : r) == u ? m.call(t, { name: "from", hash: {}, data: a, loc: { start: { line: 21, column: 56 }, end: { line: 21, column: 66 } } }) : m) ? f : "") + '"', m = null != (m = s(o, "headportflags") || (null != n ? s(n, "headportflags") : n)) ? m : r, p = { name: "headportflags", hash: {}, fn: l.program(15, a, 0), inverse: l.noop, data: a, loc: { start: { line: 22, column: 28 }, end: { line: 22, column: 73 } } }, f = typeof m == u ? m.call(t, p) : m, null != (f = s(o, "headportflags") ? f : c.call(n, f, p)) && (i += f), m = null != (m = s(o, "color") || (null != n ? s(n, "color") : n)) ? m : r, p = { name: "color", hash: {}, fn: l.program(17, a, 0), inverse: l.noop, data: a, loc: { start: { line: 23, column: 28 }, end: { line: 23, column: 65 } } }, f = typeof m == u ? m.call(t, p) : m, null != (f = s(o, "color") ? f : c.call(n, f, p)) && (i += f), m = null != (m = s(o, "width") || (null != n ? s(n, "width") : n)) ? m : r, p = { name: "width", hash: {}, fn: l.program(12, a, 0), inverse: l.noop, data: a, loc: { start: { line: 24, column: 28 }, end: { line: 24, column: 68 } } }, f = typeof m == u ? m.call(t, p) : m, null != (f = s(o, "width") ? f : c.call(n, f, p)) && (i += f), i + ' class="' + (null != (f = typeof (m = null != (m = s(o, "class") || (null != n ? s(n, "class") : n)) ? m : r) == u ? m.call(t, { name: "class", hash: {}, data: a, loc: { start: { line: 24, column: 76 }, end: { line: 24, column: 87 } } }) : m) ? f : "") + '"]\n'; }, 15: function (l, n, o, e, a) { return " " + (null != (l = l.lambda(n, n)) ? l : ""); }, 17: function (l, n, o, e, a) { return ' color="' + (null != (l = l.lambda(n, n)) ? l : "") + '"'; }, 19: function (l, n, o, e, a, t, r) { var u, c = l.lambda, s = l.hooks.blockHelperMissing, i = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
11
- return l[n]; }; return ' "i_' + (null != (u = c(n, n)) ? u : "") + '" [shape=point style=invis margin=0 width=0 height=0 fixedsize=true]\n "' + (null != (u = c(null != r[1] ? i(r[1], "from") : r[1], n)) ? u : "") + '" -> "i_' + (null != (u = c(n, n)) ? u : "") + '" [arrowhead=none' + (null != (u = s.call(n, c(null != r[1] ? i(r[1], "fromComposite") : r[1], n), { name: "../fromComposite", hash: {}, fn: l.program(20, a, 0, t, r), inverse: l.noop, data: a, loc: { start: { line: 30, column: 32 }, end: { line: 30, column: 105 } } })) ? u : "") + (null != (u = s.call(n, c(null != r[1] ? i(r[1], "color") : r[1], n), { name: "../color", hash: {}, fn: l.program(17, a, 0, t, r), inverse: l.noop, data: a, loc: { start: { line: 31, column: 32 }, end: { line: 31, column: 75 } } })) ? u : "") + ']\n "i_' + (null != (u = c(n, n)) ? u : "") + '" -> "' + (null != (u = c(null != r[1] ? i(r[1], "to") : r[1], n)) ? u : "") + '" [label="' + (null != (u = s.call(n, c(null != r[1] ? i(r[1], "label") : r[1], n), { name: "../label", hash: {}, fn: l.noop, inverse: l.program(4, a, 0, t, r), data: a, loc: { start: { line: 32, column: 43 }, end: { line: 32, column: 70 } } })) ? u : "") + (null != (u = c(null != r[1] ? i(r[1], "label") : r[1], n)) ? u : "") + '"' + (null != (u = s.call(n, c(null != r[1] ? i(r[1], "toComposite") : r[1], n), { name: "../toComposite", hash: {}, fn: l.program(22, a, 0, t, r), inverse: l.noop, data: a, loc: { start: { line: 33, column: 32 }, end: { line: 33, column: 99 } } })) ? u : "") + (null != (u = s.call(n, c(null != r[1] ? i(r[1], "color") : r[1], n), { name: "../color", hash: {}, fn: l.program(10, a, 0, t, r), inverse: l.noop, data: a, loc: { start: { line: 34, column: 32 }, end: { line: 34, column: 95 } } })) ? u : "") + ']\n "i_' + (null != (u = c(n, n)) ? u : "") + '" -> "' + (null != (u = c(n, n)) ? u : "") + '" [style=dashed arrowtail=none arrowhead=none weight=0]\n "' + (null != (u = c(n, n)) ? u : "") + '" [label="' + (null != (u = c(null != r[1] ? i(r[1], "noteFlattened") : r[1], n)) ? u : "") + '" shape=note fontsize=10 color=black fontcolor=black fillcolor="#ffffcc" penwidth=1.0]\n'; }, 20: function (l, n, o, e, a, t, r) { var u = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
12
- return l[n]; }; return ' ltail="cluster_' + (null != (l = l.lambda(null != r[1] ? u(r[1], "from") : r[1], n)) ? l : "") + '"'; }, 22: function (l, n, o, e, a, t, r) { var u = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
13
- return l[n]; }; return ' lhead="cluster_' + (null != (l = l.lambda(null != r[1] ? u(r[1], "to") : r[1], n)) ? l : "") + '"'; }, compiler: [8, ">= 4.3.0"], main: function (l, n, o, e, a, t, r) { var u = null != n ? n : l.nullContext || {}, c = l.hooks.helperMissing, s = "function", i = l.lookupProperty || function (l, n) { if (Object.prototype.hasOwnProperty.call(l, n))
14
- return l[n]; }, e = 'digraph "state transitions" {\n ' + (null != (p = typeof (m = null != (m = i(o, "graphAttributes") || (null != n ? i(n, "graphAttributes") : n)) ? m : c) == s ? m.call(u, { name: "graphAttributes", hash: {}, data: a, loc: { start: { line: 2, column: 2 }, end: { line: 2, column: 23 } } }) : m) ? p : "") + "\n node [" + (null != (p = typeof (m = null != (m = i(o, "nodeAttributes") || (null != n ? i(n, "nodeAttributes") : n)) ? m : c) == s ? m.call(u, { name: "nodeAttributes", hash: {}, data: a, loc: { start: { line: 3, column: 8 }, end: { line: 3, column: 28 } } }) : m) ? p : "") + "]\n edge [" + (null != (p = typeof (m = null != (m = i(o, "edgeAttributes") || (null != n ? i(n, "edgeAttributes") : n)) ? m : c) == s ? m.call(u, { name: "edgeAttributes", hash: {}, data: a, loc: { start: { line: 4, column: 8 }, end: { line: 4, column: 28 } } }) : m) ? p : "") + "]\n\n" + (null != (p = l.invokePartial(i(e, "dot.states.template.hbs"), n, { name: "dot.states.template.hbs", data: a, indent: " ", helpers: o, partials: e, decorators: l.decorators })) ? p : "") + "\n", m = null != (m = i(o, "transitions") || (null != n ? i(n, "transitions") : n)) ? m : c, c = { name: "transitions", hash: {}, fn: l.program(1, a, 0, t, r), inverse: l.noop, data: a, loc: { start: { line: 8, column: 2 }, end: { line: 38, column: 18 } } }, p = typeof m == s ? m.call(u, c) : m; return null != (p = i(o, "transitions") ? p : l.hooks.blockHelperMissing.call(n, p, c)) && (e += p), e + "}\n"; }, usePartial: !0, useData: !0, useDepths: !0 });
1
+ var Handlebars=require("handlebars/dist/handlebars.runtime"),template=Handlebars.template,templates=Handlebars.templates=Handlebars.templates||{};templates["dot.template.hbs"]=template({1:function(l,n,o,e,a,t,r){var u=null!=n?n:l.nullContext||{},c=l.hooks.helperMissing,s="function",i=l.hooks.blockHelperMissing,m=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]},p="",f=null!=(f=m(o,"noteName")||(null!=n?m(n,"noteName"):n))?f:c,h={name:"noteName",hash:{},fn:l.noop,inverse:l.program(2,a,0,t,r),data:a,loc:{start:{line:9,column:2},end:{line:26,column:15}}},d=typeof f==s?f.call(u,h):f;return null!=(d=m(o,"noteName")?d:i.call(n,d,h))&&(p+=d),f=null!=(f=m(o,"noteName")||(null!=n?m(n,"noteName"):n))?f:c,h={name:"noteName",hash:{},fn:l.program(19,a,0,t,r),inverse:l.noop,data:a,loc:{start:{line:27,column:2},end:{line:37,column:15}}},d=typeof f==s?f.call(u,h):f,null!=(d=m(o,"noteName")?d:i.call(n,d,h))&&(p+=d),p},2:function(l,n,o,e,a){var t=null!=n?n:l.nullContext||{},r=l.hooks.helperMissing,u="function",c=l.hooks.blockHelperMissing,s=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]},i="",m=null!=(m=s(o,"isCompositeSelf")||(null!=n?s(n,"isCompositeSelf"):n))?m:r,p={name:"isCompositeSelf",hash:{},fn:l.noop,inverse:l.program(3,a,0),data:a,loc:{start:{line:10,column:4},end:{line:16,column:24}}},f=typeof m==u?m.call(t,p):m;return null!=(f=s(o,"isCompositeSelf")?f:c.call(n,f,p))&&(i+=f),m=null!=(m=s(o,"isCompositeSelf")||(null!=n?s(n,"isCompositeSelf"):n))?m:r,p={name:"isCompositeSelf",hash:{},fn:l.program(14,a,0),inverse:l.noop,data:a,loc:{start:{line:17,column:4},end:{line:25,column:24}}},f=typeof m==u?m.call(t,p):m,null!=(f=s(o,"isCompositeSelf")?f:c.call(n,f,p))&&(i+=f),i},3:function(l,n,o,e,a){var t=null!=n?n:l.nullContext||{},r=l.hooks.helperMissing,u="function",c=l.hooks.blockHelperMissing,s=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]},i=' "'+(null!=(f=typeof(m=null!=(m=s(o,"from")||(null!=n?s(n,"from"):n))?m:r)==u?m.call(t,{name:"from",hash:{},data:a,loc:{start:{line:11,column:5},end:{line:11,column:15}}}):m)?f:"")+'" -> "'+(null!=(f=typeof(m=null!=(m=s(o,"to")||(null!=n?s(n,"to"):n))?m:r)==u?m.call(t,{name:"to",hash:{},data:a,loc:{start:{line:11,column:21},end:{line:11,column:29}}}):m)?f:"")+'" [label="',m=null!=(m=s(o,"label")||(null!=n?s(n,"label"):n))?m:r,p={name:"label",hash:{},fn:l.noop,inverse:l.program(4,a,0),data:a,loc:{start:{line:11,column:39},end:{line:11,column:60}}},f=typeof m==u?m.call(t,p):m;return null!=(f=s(o,"label")?f:c.call(n,f,p))&&(i+=f),i+=(null!=(f=typeof(m=null!=(m=s(o,"label")||(null!=n?s(n,"label"):n))?m:r)==u?m.call(t,{name:"label",hash:{},data:a,loc:{start:{line:11,column:60},end:{line:11,column:71}}}):m)?f:"")+'"',m=null!=(m=s(o,"fromComposite")||(null!=n?s(n,"fromComposite"):n))?m:r,p={name:"fromComposite",hash:{},fn:l.program(6,a,0),inverse:l.noop,data:a,loc:{start:{line:12,column:28},end:{line:12,column:92}}},f=typeof m==u?m.call(t,p):m,null!=(f=s(o,"fromComposite")?f:c.call(n,f,p))&&(i+=f),m=null!=(m=s(o,"toComposite")||(null!=n?s(n,"toComposite"):n))?m:r,p={name:"toComposite",hash:{},fn:l.program(8,a,0),inverse:l.noop,data:a,loc:{start:{line:13,column:28},end:{line:13,column:86}}},f=typeof m==u?m.call(t,p):m,null!=(f=s(o,"toComposite")?f:c.call(n,f,p))&&(i+=f),m=null!=(m=s(o,"color")||(null!=n?s(n,"color"):n))?m:r,p={name:"color",hash:{},fn:l.program(10,a,0),inverse:l.noop,data:a,loc:{start:{line:14,column:28},end:{line:14,column:85}}},f=typeof m==u?m.call(t,p):m,null!=(f=s(o,"color")?f:c.call(n,f,p))&&(i+=f),m=null!=(m=s(o,"width")||(null!=n?s(n,"width"):n))?m:r,p={name:"width",hash:{},fn:l.program(12,a,0),inverse:l.noop,data:a,loc:{start:{line:15,column:28},end:{line:15,column:68}}},f=typeof m==u?m.call(t,p):m,null!=(f=s(o,"width")?f:c.call(n,f,p))&&(i+=f),i+' class="'+(null!=(f=typeof(m=null!=(m=s(o,"class")||(null!=n?s(n,"class"):n))?m:r)==u?m.call(t,{name:"class",hash:{},data:a,loc:{start:{line:15,column:76},end:{line:15,column:87}}}):m)?f:"")+'"]\n'},4:function(l,n,o,e,a){return" "},6:function(l,n,o,e,a){var t=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return' ltail="cluster_'+(null!=(t="function"==typeof(o=null!=(o=t(o,"from")||(null!=n?t(n,"from"):n))?o:l.hooks.helperMissing)?o.call(null!=n?n:l.nullContext||{},{name:"from",hash:{},data:a,loc:{start:{line:12,column:63},end:{line:12,column:73}}}):o)?t:"")+'"'},8:function(l,n,o,e,a){var t=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return' lhead="cluster_'+(null!=(t="function"==typeof(o=null!=(o=t(o,"to")||(null!=n?t(n,"to"):n))?o:l.hooks.helperMissing)?o.call(null!=n?n:l.nullContext||{},{name:"to",hash:{},data:a,loc:{start:{line:13,column:61},end:{line:13,column:69}}}):o)?t:"")+'"'},10:function(l,n,o,e,a){var t,l=l.lambda;return' color="'+(null!=(t=l(n,n))?t:"")+'" fontcolor="'+(null!=(t=l(n,n))?t:"")+'"'},12:function(l,n,o,e,a){return' penwidth="'+(null!=(l=l.lambda(n,n))?l:"")+'"'},14:function(l,n,o,e,a){var t=null!=n?n:l.nullContext||{},r=l.hooks.helperMissing,u="function",c=l.hooks.blockHelperMissing,s=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]},i=' "'+(null!=(f=typeof(m=null!=(m=s(o,"from")||(null!=n?s(n,"from"):n))?m:r)==u?m.call(t,{name:"from",hash:{},data:a,loc:{start:{line:18,column:7},end:{line:18,column:17}}}):m)?f:"")+'" -> "self_'+(null!=(f=typeof(m=null!=(m=s(o,"name")||(null!=n?s(n,"name"):n))?m:r)==u?m.call(t,{name:"name",hash:{},data:a,loc:{start:{line:18,column:28},end:{line:18,column:38}}}):m)?f:"")+'" [label="',m=null!=(m=s(o,"label")||(null!=n?s(n,"label"):n))?m:r,p={name:"label",hash:{},fn:l.noop,inverse:l.program(4,a,0),data:a,loc:{start:{line:18,column:48},end:{line:18,column:69}}},f=typeof m==u?m.call(t,p):m;return null!=(f=s(o,"label")?f:c.call(n,f,p))&&(i+=f),i+=(null!=(f=typeof(m=null!=(m=s(o,"label")||(null!=n?s(n,"label"):n))?m:r)==u?m.call(t,{name:"label",hash:{},data:a,loc:{start:{line:18,column:69},end:{line:18,column:80}}}):m)?f:"")+'" arrowhead=none',m=null!=(m=s(o,"tailportflags")||(null!=n?s(n,"tailportflags"):n))?m:r,p={name:"tailportflags",hash:{},fn:l.program(15,a,0),inverse:l.noop,data:a,loc:{start:{line:19,column:28},end:{line:19,column:73}}},f=typeof m==u?m.call(t,p):m,null!=(f=s(o,"tailportflags")?f:c.call(n,f,p))&&(i+=f),i+=' ltail="cluster_'+(null!=(f=typeof(m=null!=(m=s(o,"from")||(null!=n?s(n,"from"):n))?m:r)==u?m.call(t,{name:"from",hash:{},data:a,loc:{start:{line:19,column:89},end:{line:19,column:99}}}):m)?f:"")+'"',m=null!=(m=s(o,"color")||(null!=n?s(n,"color"):n))?m:r,p={name:"color",hash:{},fn:l.program(10,a,0),inverse:l.noop,data:a,loc:{start:{line:20,column:28},end:{line:20,column:85}}},f=typeof m==u?m.call(t,p):m,null!=(f=s(o,"color")?f:c.call(n,f,p))&&(i+=f),i+=' class="'+(null!=(f=typeof(m=null!=(m=s(o,"class")||(null!=n?s(n,"class"):n))?m:r)==u?m.call(t,{name:"class",hash:{},data:a,loc:{start:{line:20,column:93},end:{line:20,column:104}}}):m)?f:"")+'"]\n "self_'+(null!=(f=typeof(m=null!=(m=s(o,"name")||(null!=n?s(n,"name"):n))?m:r)==u?m.call(t,{name:"name",hash:{},data:a,loc:{start:{line:21,column:12},end:{line:21,column:22}}}):m)?f:"")+'" -> "'+(null!=(f=typeof(m=null!=(m=s(o,"from")||(null!=n?s(n,"from"):n))?m:r)==u?m.call(t,{name:"from",hash:{},data:a,loc:{start:{line:21,column:28},end:{line:21,column:38}}}):m)?f:"")+'" [lhead="cluster_'+(null!=(f=typeof(m=null!=(m=s(o,"from")||(null!=n?s(n,"from"):n))?m:r)==u?m.call(t,{name:"from",hash:{},data:a,loc:{start:{line:21,column:56},end:{line:21,column:66}}}):m)?f:"")+'"',m=null!=(m=s(o,"headportflags")||(null!=n?s(n,"headportflags"):n))?m:r,p={name:"headportflags",hash:{},fn:l.program(15,a,0),inverse:l.noop,data:a,loc:{start:{line:22,column:28},end:{line:22,column:73}}},f=typeof m==u?m.call(t,p):m,null!=(f=s(o,"headportflags")?f:c.call(n,f,p))&&(i+=f),m=null!=(m=s(o,"color")||(null!=n?s(n,"color"):n))?m:r,p={name:"color",hash:{},fn:l.program(17,a,0),inverse:l.noop,data:a,loc:{start:{line:23,column:28},end:{line:23,column:65}}},f=typeof m==u?m.call(t,p):m,null!=(f=s(o,"color")?f:c.call(n,f,p))&&(i+=f),m=null!=(m=s(o,"width")||(null!=n?s(n,"width"):n))?m:r,p={name:"width",hash:{},fn:l.program(12,a,0),inverse:l.noop,data:a,loc:{start:{line:24,column:28},end:{line:24,column:68}}},f=typeof m==u?m.call(t,p):m,null!=(f=s(o,"width")?f:c.call(n,f,p))&&(i+=f),i+' class="'+(null!=(f=typeof(m=null!=(m=s(o,"class")||(null!=n?s(n,"class"):n))?m:r)==u?m.call(t,{name:"class",hash:{},data:a,loc:{start:{line:24,column:76},end:{line:24,column:87}}}):m)?f:"")+'"]\n'},15:function(l,n,o,e,a){return" "+(null!=(l=l.lambda(n,n))?l:"")},17:function(l,n,o,e,a){return' color="'+(null!=(l=l.lambda(n,n))?l:"")+'"'},19:function(l,n,o,e,a,t,r){var u,c=l.lambda,s=l.hooks.blockHelperMissing,i=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return' "i_'+(null!=(u=c(n,n))?u:"")+'" [shape=point style=invis margin=0 width=0 height=0 fixedsize=true]\n "'+(null!=(u=c(null!=r[1]?i(r[1],"from"):r[1],n))?u:"")+'" -> "i_'+(null!=(u=c(n,n))?u:"")+'" [arrowhead=none'+(null!=(u=s.call(n,c(null!=r[1]?i(r[1],"fromComposite"):r[1],n),{name:"../fromComposite",hash:{},fn:l.program(20,a,0,t,r),inverse:l.noop,data:a,loc:{start:{line:30,column:32},end:{line:30,column:105}}}))?u:"")+(null!=(u=s.call(n,c(null!=r[1]?i(r[1],"color"):r[1],n),{name:"../color",hash:{},fn:l.program(17,a,0,t,r),inverse:l.noop,data:a,loc:{start:{line:31,column:32},end:{line:31,column:75}}}))?u:"")+']\n "i_'+(null!=(u=c(n,n))?u:"")+'" -> "'+(null!=(u=c(null!=r[1]?i(r[1],"to"):r[1],n))?u:"")+'" [label="'+(null!=(u=s.call(n,c(null!=r[1]?i(r[1],"label"):r[1],n),{name:"../label",hash:{},fn:l.noop,inverse:l.program(4,a,0,t,r),data:a,loc:{start:{line:32,column:43},end:{line:32,column:70}}}))?u:"")+(null!=(u=c(null!=r[1]?i(r[1],"label"):r[1],n))?u:"")+'"'+(null!=(u=s.call(n,c(null!=r[1]?i(r[1],"toComposite"):r[1],n),{name:"../toComposite",hash:{},fn:l.program(22,a,0,t,r),inverse:l.noop,data:a,loc:{start:{line:33,column:32},end:{line:33,column:99}}}))?u:"")+(null!=(u=s.call(n,c(null!=r[1]?i(r[1],"color"):r[1],n),{name:"../color",hash:{},fn:l.program(10,a,0,t,r),inverse:l.noop,data:a,loc:{start:{line:34,column:32},end:{line:34,column:95}}}))?u:"")+']\n "i_'+(null!=(u=c(n,n))?u:"")+'" -> "'+(null!=(u=c(n,n))?u:"")+'" [style=dashed arrowtail=none arrowhead=none weight=0]\n "'+(null!=(u=c(n,n))?u:"")+'" [label="'+(null!=(u=c(null!=r[1]?i(r[1],"noteFlattened"):r[1],n))?u:"")+'" shape=note fontsize=10 color=black fontcolor=black fillcolor="#ffffcc" penwidth=1.0]\n'},20:function(l,n,o,e,a,t,r){var u=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return' ltail="cluster_'+(null!=(l=l.lambda(null!=r[1]?u(r[1],"from"):r[1],n))?l:"")+'"'},22:function(l,n,o,e,a,t,r){var u=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return' lhead="cluster_'+(null!=(l=l.lambda(null!=r[1]?u(r[1],"to"):r[1],n))?l:"")+'"'},compiler:[8,">= 4.3.0"],main:function(l,n,o,e,a,t,r){var u=null!=n?n:l.nullContext||{},c=l.hooks.helperMissing,s="function",i=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]},e='digraph "state transitions" {\n '+(null!=(p=typeof(m=null!=(m=i(o,"graphAttributes")||(null!=n?i(n,"graphAttributes"):n))?m:c)==s?m.call(u,{name:"graphAttributes",hash:{},data:a,loc:{start:{line:2,column:2},end:{line:2,column:23}}}):m)?p:"")+"\n node ["+(null!=(p=typeof(m=null!=(m=i(o,"nodeAttributes")||(null!=n?i(n,"nodeAttributes"):n))?m:c)==s?m.call(u,{name:"nodeAttributes",hash:{},data:a,loc:{start:{line:3,column:8},end:{line:3,column:28}}}):m)?p:"")+"]\n edge ["+(null!=(p=typeof(m=null!=(m=i(o,"edgeAttributes")||(null!=n?i(n,"edgeAttributes"):n))?m:c)==s?m.call(u,{name:"edgeAttributes",hash:{},data:a,loc:{start:{line:4,column:8},end:{line:4,column:28}}}):m)?p:"")+"]\n\n"+(null!=(p=l.invokePartial(i(e,"dot.states.template.hbs"),n,{name:"dot.states.template.hbs",data:a,indent:" ",helpers:o,partials:e,decorators:l.decorators}))?p:"")+"\n",m=null!=(m=i(o,"transitions")||(null!=n?i(n,"transitions"):n))?m:c,c={name:"transitions",hash:{},fn:l.program(1,a,0,t,r),inverse:l.noop,data:a,loc:{start:{line:8,column:2},end:{line:38,column:18}}},p=typeof m==s?m.call(u,c):m;return null!=(p=i(o,"transitions")?p:l.hooks.blockHelperMissing.call(n,p,c))&&(e+=p),e+"}\n"},usePartial:!0,useData:!0,useDepths:!0});
@@ -7,99 +7,146 @@ import Counter from "./counter.mjs";
7
7
  import renderDotFromAST from "./render-dot-from-ast.mjs";
8
8
  import utl from "./utl.mjs";
9
9
  function addExternalSelfTransitions(pStateMachineModel) {
10
- return (pState) => {
11
- if (Object.prototype.hasOwnProperty.call(pState, "statemachine")) {
12
- pState.nestedExternalSelfTransitions = pStateMachineModel
13
- .findExternalSelfTransitions(pState.name)
14
- .map((pTransition) => pTransition.name);
15
- }
16
- return pState;
17
- };
10
+ return (pState) => {
11
+ if (Object.prototype.hasOwnProperty.call(pState, "statemachine")) {
12
+ pState.nestedExternalSelfTransitions = pStateMachineModel
13
+ .findExternalSelfTransitions(pState.name)
14
+ .map((pTransition) => pTransition.name);
15
+ }
16
+ return pState;
17
+ };
18
18
  }
19
- function transformStates(pStates, pDirection, pNodeAttributes, pStateMachineModel) {
20
- pStates
21
- .filter((pState) => pState.statemachine)
22
- .forEach((pState) => {
23
- pState.statemachine.states = transformStates(pState.statemachine.states, pDirection, pNodeAttributes, pStateMachineModel);
24
- });
25
- return pStates
26
- .map(stateTransformers.setLabel)
27
- .map(stateTransformers.nameNote)
28
- .map(stateTransformers.classifyState)
29
- .map(stateTransformers.escapeStateStrings)
30
- .map(stateTransformers.flattenNote)
31
- .map(stateTransformers.flattenActions)
32
- .map(stateTransformers.flagParallelChildren)
33
- .map(stateTransformers.tipForkJoinStates(pDirection))
34
- .map(stateTransformers.recolor(pNodeAttributes))
35
- .map(addExternalSelfTransitions(pStateMachineModel));
19
+ function transformStates(
20
+ pStates,
21
+ pDirection,
22
+ pNodeAttributes,
23
+ pStateMachineModel,
24
+ ) {
25
+ pStates
26
+ .filter((pState) => pState.statemachine)
27
+ .forEach((pState) => {
28
+ pState.statemachine.states = transformStates(
29
+ pState.statemachine.states,
30
+ pDirection,
31
+ pNodeAttributes,
32
+ pStateMachineModel,
33
+ );
34
+ });
35
+ return pStates
36
+ .map(stateTransformers.setLabel)
37
+ .map(stateTransformers.nameNote)
38
+ .map(stateTransformers.classifyState)
39
+ .map(stateTransformers.escapeStateStrings)
40
+ .map(stateTransformers.flattenNote)
41
+ .map(stateTransformers.flattenActions)
42
+ .map(stateTransformers.flagParallelChildren)
43
+ .map(stateTransformers.tipForkJoinStates(pDirection))
44
+ .map(stateTransformers.recolor(pNodeAttributes))
45
+ .map(addExternalSelfTransitions(pStateMachineModel));
36
46
  }
37
47
  function splitStates(pStateMachine) {
38
- pStateMachine.initialStates = pStateMachine.states.filter(stateTransformers.isType("initial"));
39
- pStateMachine.regularStates = pStateMachine.states.filter((pState) => stateTransformers.isType("regular")(pState) && !pState.statemachine);
40
- pStateMachine.historyStates = pStateMachine.states.filter(stateTransformers.isType("history"));
41
- pStateMachine.deepHistoryStates = pStateMachine.states.filter(stateTransformers.isType("deephistory"));
42
- pStateMachine.choiceStates = pStateMachine.states.filter(stateTransformers.isType("choice"));
43
- pStateMachine.forkjoinStates = pStateMachine.states.filter(stateTransformers.isOneOfTypes(["fork", "join", "forkjoin"]));
44
- pStateMachine.junctionStates = pStateMachine.states.filter(stateTransformers.isType("junction"));
45
- pStateMachine.terminateStates = pStateMachine.states.filter(stateTransformers.isType("terminate"));
46
- pStateMachine.finalStates = pStateMachine.states.filter(stateTransformers.isType("final"));
47
- pStateMachine.compositeStates = pStateMachine.states.filter((pState) => pState.statemachine);
48
- return pStateMachine;
48
+ pStateMachine.initialStates = pStateMachine.states.filter(
49
+ stateTransformers.isType("initial"),
50
+ );
51
+ pStateMachine.regularStates = pStateMachine.states.filter(
52
+ (pState) =>
53
+ stateTransformers.isType("regular")(pState) && !pState.statemachine,
54
+ );
55
+ pStateMachine.historyStates = pStateMachine.states.filter(
56
+ stateTransformers.isType("history"),
57
+ );
58
+ pStateMachine.deepHistoryStates = pStateMachine.states.filter(
59
+ stateTransformers.isType("deephistory"),
60
+ );
61
+ pStateMachine.choiceStates = pStateMachine.states.filter(
62
+ stateTransformers.isType("choice"),
63
+ );
64
+ pStateMachine.forkjoinStates = pStateMachine.states.filter(
65
+ stateTransformers.isOneOfTypes(["fork", "join", "forkjoin"]),
66
+ );
67
+ pStateMachine.junctionStates = pStateMachine.states.filter(
68
+ stateTransformers.isType("junction"),
69
+ );
70
+ pStateMachine.terminateStates = pStateMachine.states.filter(
71
+ stateTransformers.isType("terminate"),
72
+ );
73
+ pStateMachine.finalStates = pStateMachine.states.filter(
74
+ stateTransformers.isType("final"),
75
+ );
76
+ pStateMachine.compositeStates = pStateMachine.states.filter(
77
+ (pState) => pState.statemachine,
78
+ );
79
+ return pStateMachine;
49
80
  }
50
81
  function addEndTypes(pStateMachineModel) {
51
- return (pTransition) => {
52
- if (pStateMachineModel.findStateByName(pTransition.from).statemachine) {
53
- pTransition.fromComposite = true;
54
- }
55
- if (pStateMachineModel.findStateByName(pTransition.to).statemachine) {
56
- pTransition.toComposite = true;
57
- }
58
- return pTransition;
59
- };
82
+ return (pTransition) => {
83
+ if (pStateMachineModel.findStateByName(pTransition.from).statemachine) {
84
+ pTransition.fromComposite = true;
85
+ }
86
+ if (pStateMachineModel.findStateByName(pTransition.to).statemachine) {
87
+ pTransition.toComposite = true;
88
+ }
89
+ return pTransition;
90
+ };
60
91
  }
61
92
  function addCompositeSelfFlag(pStateMachineModel) {
62
- return (pTransition) => {
63
- let lAdditionalAttributes = {};
64
- if (utl.isCompositeSelf(pStateMachineModel, pTransition)) {
65
- if (pStateMachineModel.findStateByName(pTransition.from).hasParent) {
66
- lAdditionalAttributes = { hasParent: true, isCompositeSelf: true };
67
- }
68
- else {
69
- lAdditionalAttributes = { isCompositeSelf: true };
70
- }
71
- }
72
- return { ...pTransition, ...lAdditionalAttributes };
73
- };
93
+ return (pTransition) => {
94
+ let lAdditionalAttributes = {};
95
+ if (utl.isCompositeSelf(pStateMachineModel, pTransition)) {
96
+ if (pStateMachineModel.findStateByName(pTransition.from).hasParent) {
97
+ lAdditionalAttributes = { hasParent: true, isCompositeSelf: true };
98
+ } else {
99
+ lAdditionalAttributes = { isCompositeSelf: true };
100
+ }
101
+ }
102
+ return { ...pTransition, ...lAdditionalAttributes };
103
+ };
74
104
  }
75
105
  function nameTransition(pCounter) {
76
- return (pTransition) => {
77
- pTransition.name = `tr_${pTransition.from}_${pTransition.to}_${pCounter.nextAsString()}`;
78
- if (Boolean(pTransition.note)) {
79
- pTransition.noteName = `note_${pTransition.name}`;
80
- }
81
- return pTransition;
82
- };
106
+ return (pTransition) => {
107
+ pTransition.name = `tr_${pTransition.from}_${pTransition.to}_${pCounter.nextAsString()}`;
108
+ if (Boolean(pTransition.note)) {
109
+ pTransition.noteName = `note_${pTransition.name}`;
110
+ }
111
+ return pTransition;
112
+ };
83
113
  }
84
114
  function transformTransitions(pStateMachineModel, pDirection, pCounter) {
85
- return pStateMachineModel.flattenedTransitions
86
- .map(nameTransition(pCounter))
87
- .map(transitionTransformers.escapeTransitionStrings)
88
- .map(transitionTransformers.classifyTransition)
89
- .map(stateTransformers.flattenNote)
90
- .map(addEndTypes(pStateMachineModel))
91
- .map(addCompositeSelfFlag(pStateMachineModel))
92
- .map(transitionTransformers.addPorts(pDirection));
115
+ return pStateMachineModel.flattenedTransitions
116
+ .map(nameTransition(pCounter))
117
+ .map(transitionTransformers.escapeTransitionStrings)
118
+ .map(transitionTransformers.classifyTransition)
119
+ .map(stateTransformers.flattenNote)
120
+ .map(addEndTypes(pStateMachineModel))
121
+ .map(addCompositeSelfFlag(pStateMachineModel))
122
+ .map(transitionTransformers.addPorts(pDirection));
93
123
  }
94
124
  export default (pStateMachine, pOptions) => {
95
- pOptions = pOptions || {};
96
- let lStateMachine = structuredClone(pStateMachine);
97
- const lStateMachineModel = new StateMachineModel(lStateMachine);
98
- lStateMachine.transitions = transformTransitions(lStateMachineModel, pOptions.direction, new Counter());
99
- lStateMachine.states = transformStates(lStateMachine.states, pOptions.direction, pOptions.dotNodeAttrs, lStateMachineModel);
100
- lStateMachine = splitStates(lStateMachine);
101
- lStateMachine.graphAttributes = attributebuilder.buildGraphAttributes(options.getOptionValue(pOptions, "engine"), options.getOptionValue(pOptions, "direction"), pOptions.dotGraphAttrs);
102
- lStateMachine.nodeAttributes = attributebuilder.buildNodeAttributes(pOptions.dotNodeAttrs);
103
- lStateMachine.edgeAttributes = attributebuilder.buildEdgeAttributes(pOptions.dotEdgeAttrs);
104
- return renderDotFromAST(lStateMachine);
125
+ pOptions = pOptions || {};
126
+ let lStateMachine = structuredClone(pStateMachine);
127
+ const lStateMachineModel = new StateMachineModel(lStateMachine);
128
+ lStateMachine.transitions = transformTransitions(
129
+ lStateMachineModel,
130
+ pOptions.direction,
131
+ new Counter(),
132
+ );
133
+ lStateMachine.states = transformStates(
134
+ lStateMachine.states,
135
+ pOptions.direction,
136
+ pOptions.dotNodeAttrs,
137
+ lStateMachineModel,
138
+ );
139
+ lStateMachine = splitStates(lStateMachine);
140
+ lStateMachine.graphAttributes = attributebuilder.buildGraphAttributes(
141
+ options.getOptionValue(pOptions, "engine"),
142
+ options.getOptionValue(pOptions, "direction"),
143
+ pOptions.dotGraphAttrs,
144
+ );
145
+ lStateMachine.nodeAttributes = attributebuilder.buildNodeAttributes(
146
+ pOptions.dotNodeAttrs,
147
+ );
148
+ lStateMachine.edgeAttributes = attributebuilder.buildEdgeAttributes(
149
+ pOptions.dotEdgeAttrs,
150
+ );
151
+ return renderDotFromAST(lStateMachine);
105
152
  };
@@ -1,27 +1,44 @@
1
1
  import Handlebars from "handlebars/dist/handlebars.runtime.js";
2
2
  await import("./dot.template.js");
3
3
  await import("./dot.states.template.js");
4
- Handlebars.registerPartial("dot.states.template.hbs", Handlebars.templates["dot.states.template.hbs"]);
5
- Handlebars.registerHelper("stateSection", (pStateMachine) => Handlebars.templates["dot.states.template.hbs"](splitStates(pStateMachine)));
4
+ Handlebars.registerPartial(
5
+ "dot.states.template.hbs",
6
+ Handlebars.templates["dot.states.template.hbs"],
7
+ );
8
+ Handlebars.registerHelper("stateSection", (pStateMachine) =>
9
+ Handlebars.templates["dot.states.template.hbs"](splitStates(pStateMachine)),
10
+ );
6
11
  function isType(pString) {
7
- return (pState) => pState.type === pString;
12
+ return (pState) => pState.type === pString;
8
13
  }
9
14
  function isOneOfTypes(pStringArray) {
10
- return (pState) => pStringArray.includes(pState.type);
15
+ return (pState) => pStringArray.includes(pState.type);
11
16
  }
12
17
  function splitStates(pStateMachine) {
13
- pStateMachine.initialStates = pStateMachine.states.filter(isType("initial"));
14
- pStateMachine.regularStates = pStateMachine.states.filter((pState) => isType("regular")(pState) && !pState.statemachine);
15
- pStateMachine.historyStates = pStateMachine.states.filter(isType("history"));
16
- pStateMachine.deepHistoryStates = pStateMachine.states.filter(isType("deephistory"));
17
- pStateMachine.choiceStates = pStateMachine.states.filter(isType("choice"));
18
- pStateMachine.forkjoinStates = pStateMachine.states.filter(isOneOfTypes(["fork", "join", "forkjoin"]));
19
- pStateMachine.junctionStates = pStateMachine.states.filter(isType("junction"));
20
- pStateMachine.terminateStates = pStateMachine.states.filter(isType("terminate"));
21
- pStateMachine.finalStates = pStateMachine.states.filter(isType("final"));
22
- pStateMachine.compositeStates = pStateMachine.states.filter((pState) => pState.statemachine);
23
- return pStateMachine;
18
+ pStateMachine.initialStates = pStateMachine.states.filter(isType("initial"));
19
+ pStateMachine.regularStates = pStateMachine.states.filter(
20
+ (pState) => isType("regular")(pState) && !pState.statemachine,
21
+ );
22
+ pStateMachine.historyStates = pStateMachine.states.filter(isType("history"));
23
+ pStateMachine.deepHistoryStates = pStateMachine.states.filter(
24
+ isType("deephistory"),
25
+ );
26
+ pStateMachine.choiceStates = pStateMachine.states.filter(isType("choice"));
27
+ pStateMachine.forkjoinStates = pStateMachine.states.filter(
28
+ isOneOfTypes(["fork", "join", "forkjoin"]),
29
+ );
30
+ pStateMachine.junctionStates = pStateMachine.states.filter(
31
+ isType("junction"),
32
+ );
33
+ pStateMachine.terminateStates = pStateMachine.states.filter(
34
+ isType("terminate"),
35
+ );
36
+ pStateMachine.finalStates = pStateMachine.states.filter(isType("final"));
37
+ pStateMachine.compositeStates = pStateMachine.states.filter(
38
+ (pState) => pState.statemachine,
39
+ );
40
+ return pStateMachine;
24
41
  }
25
42
  export default function renderDotFromAST(pStateMachine) {
26
- return Handlebars.templates["dot.template.hbs"](pStateMachine);
43
+ return Handlebars.templates["dot.template.hbs"](pStateMachine);
27
44
  }