import { p as o, o as pt, ar as Dt, as as Ot, at as Bt, Z as gt, g as k, a0 as Rt, a1 as Pt, au as ft, q as X, n as Wt, av as jt, H as Ft } from "./index-CNUFa5l3.js";
import { x as ot } from "./arc-DZdQjcG8-O7SaDQo1.js";
var tt = function() {
  var e = /* @__PURE__ */ o(function(n, p, c, d) {
    for (c || (c = {}), d = n.length; d--; c[n[d]] = p) ;
    return c;
  }, "o"), t = [
    6,
    11,
    13,
    14,
    15,
    17,
    19,
    20,
    23,
    24
  ], r = [1, 12], a = [1, 13], i = [1, 14], l = [1, 15], s = [1, 16], u = [1, 19], g = [1, 20], x = {
    trace: /* @__PURE__ */ o(function() {
    }, "trace"),
    yy: {},
    symbols_: {
      error: 2,
      start: 3,
      timeline_header: 4,
      document: 5,
      EOF: 6,
      timeline: 7,
      timeline_lr: 8,
      timeline_td: 9,
      line: 10,
      SPACE: 11,
      statement: 12,
      NEWLINE: 13,
      title: 14,
      acc_title: 15,
      acc_title_value: 16,
      acc_descr: 17,
      acc_descr_value: 18,
      acc_descr_multiline_value: 19,
      section: 20,
      period_statement: 21,
      event_statement: 22,
      period: 23,
      event: 24,
      $accept: 0,
      $end: 1
    },
    terminals_: {
      2: "error",
      6: "EOF",
      7: "timeline",
      8: "timeline_lr",
      9: "timeline_td",
      11: "SPACE",
      13: "NEWLINE",
      14: "title",
      15: "acc_title",
      16: "acc_title_value",
      17: "acc_descr",
      18: "acc_descr_value",
      19: "acc_descr_multiline_value",
      20: "section",
      23: "period",
      24: "event"
    },
    productions_: [
      0,
      [3, 3],
      [4, 1],
      [4, 1],
      [4, 1],
      [5, 0],
      [5, 2],
      [10, 2],
      [10, 1],
      [10, 1],
      [10, 1],
      [12, 1],
      [12, 2],
      [12, 2],
      [12, 1],
      [12, 1],
      [12, 1],
      [12, 1],
      [21, 1],
      [22, 1]
    ],
    performAction: /* @__PURE__ */ o(function(n, p, c, d, y, h, E) {
      var m = h.length - 1;
      switch (y) {
        case 1:
          return h[m - 1];
        case 3:
          d.setDirection("LR");
          break;
        case 4:
          d.setDirection("TD");
          break;
        case 5:
          this.$ = [];
          break;
        case 6:
          h[m - 1].push(h[m]), this.$ = h[m - 1];
          break;
        case 7:
        case 8:
          this.$ = h[m];
          break;
        case 9:
        case 10:
          this.$ = [];
          break;
        case 11:
          d.getCommonDb().setDiagramTitle(h[m].substr(6)), this.$ = h[m].substr(6);
          break;
        case 12:
          this.$ = h[m].trim(), d.getCommonDb().setAccTitle(this.$);
          break;
        case 13:
        case 14:
          this.$ = h[m].trim(), d.getCommonDb().setAccDescription(this.$);
          break;
        case 15:
          d.addSection(h[m].substr(8)), this.$ = h[m].substr(8);
          break;
        case 18:
          d.addTask(h[m], 0, ""), this.$ = h[m];
          break;
        case 19:
          d.addEvent(h[m].substr(2)), this.$ = h[m];
          break;
      }
    }, "anonymous"),
    table: [
      {
        3: 1,
        4: 2,
        7: [1, 3],
        8: [1, 4],
        9: [1, 5]
      },
      { 1: [3] },
      e(t, [2, 5], { 5: 6 }),
      e(t, [2, 2]),
      e(t, [2, 3]),
      e(t, [2, 4]),
      {
        6: [1, 7],
        10: 8,
        11: [1, 9],
        12: 10,
        13: [1, 11],
        14: r,
        15: a,
        17: i,
        19: l,
        20: s,
        21: 17,
        22: 18,
        23: u,
        24: g
      },
      e(t, [2, 10], { 1: [2, 1] }),
      e(t, [2, 6]),
      {
        12: 21,
        14: r,
        15: a,
        17: i,
        19: l,
        20: s,
        21: 17,
        22: 18,
        23: u,
        24: g
      },
      e(t, [2, 8]),
      e(t, [2, 9]),
      e(t, [2, 11]),
      { 16: [1, 22] },
      { 18: [1, 23] },
      e(t, [2, 14]),
      e(t, [2, 15]),
      e(t, [2, 16]),
      e(t, [2, 17]),
      e(t, [2, 18]),
      e(t, [2, 19]),
      e(t, [2, 7]),
      e(t, [2, 12]),
      e(t, [2, 13])
    ],
    defaultActions: {},
    parseError: /* @__PURE__ */ o(function(n, p) {
      if (p.recoverable) this.trace(n);
      else {
        var c = Error(n);
        throw c.hash = p, c;
      }
    }, "parseError"),
    parse: /* @__PURE__ */ o(function(n) {
      var p = this, c = [0], d = [], y = [null], h = [], E = this.table, m = "", _ = 0, D = 0, L = 0, O = 2, R = 1, N = h.slice.call(arguments, 1), b = Object.create(this.lexer), H = { yy: {} };
      for (var P in this.yy) Object.prototype.hasOwnProperty.call(this.yy, P) && (H.yy[P] = this.yy[P]);
      b.setInput(n, H.yy), H.yy.lexer = b, H.yy.parser = this, b.yylloc === void 0 && (b.yylloc = {});
      var W = b.yylloc;
      h.push(W);
      var V = b.options && b.options.ranges;
      typeof H.yy.parseError == "function" ? this.parseError = H.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
      function G(C) {
        c.length -= 2 * C, y.length -= C, h.length -= C;
      }
      o(G, "popStack");
      function F() {
        var C = d.pop() || b.lex() || R;
        return typeof C != "number" && (C instanceof Array && (d = C, C = d.pop()), C = p.symbols_[C] || C), C;
      }
      o(F, "lex");
      for (var w, $, I, v, S, M = {}, B, T, Z, z; ; ) {
        if (I = c[c.length - 1], this.defaultActions[I] ? v = this.defaultActions[I] : (w ?? (w = F()), v = E[I] && E[I][w]), v === void 0 || !v.length || !v[0]) {
          var Y = "";
          for (B in z = [], E[I]) this.terminals_[B] && B > O && z.push("'" + this.terminals_[B] + "'");
          Y = b.showPosition ? "Parse error on line " + (_ + 1) + `:
` + b.showPosition() + `
Expecting ` + z.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : "Parse error on line " + (_ + 1) + ": Unexpected " + (w == R ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(Y, {
            text: b.match,
            token: this.terminals_[w] || w,
            line: b.yylineno,
            loc: W,
            expected: z
          });
        }
        if (v[0] instanceof Array && v.length > 1) throw Error("Parse Error: multiple actions possible at state: " + I + ", token: " + w);
        switch (v[0]) {
          case 1:
            c.push(w), y.push(b.yytext), h.push(b.yylloc), c.push(v[1]), w = null, $ ? (w = $, $ = null) : (D = b.yyleng, m = b.yytext, _ = b.yylineno, W = b.yylloc, L > 0);
            break;
          case 2:
            if (T = this.productions_[v[1]][1], M.$ = y[y.length - T], M._$ = {
              first_line: h[h.length - (T || 1)].first_line,
              last_line: h[h.length - 1].last_line,
              first_column: h[h.length - (T || 1)].first_column,
              last_column: h[h.length - 1].last_column
            }, V && (M._$.range = [h[h.length - (T || 1)].range[0], h[h.length - 1].range[1]]), S = this.performAction.apply(M, [
              m,
              D,
              _,
              H.yy,
              v[1],
              y,
              h
            ].concat(N)), S !== void 0) return S;
            T && (c = c.slice(0, -1 * T * 2), y = y.slice(0, -1 * T), h = h.slice(0, -1 * T)), c.push(this.productions_[v[1]][0]), y.push(M.$), h.push(M._$), Z = E[c[c.length - 2]][c[c.length - 1]], c.push(Z);
            break;
          case 3:
            return !0;
        }
      }
      return !0;
    }, "parse")
  };
  x.lexer = /* @__PURE__ */ function() {
    return {
      EOF: 1,
      parseError: /* @__PURE__ */ o(function(n, p) {
        if (this.yy.parser) this.yy.parser.parseError(n, p);
        else throw Error(n);
      }, "parseError"),
      setInput: /* @__PURE__ */ o(function(n, p) {
        return this.yy = p || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
          first_line: 1,
          first_column: 0,
          last_line: 1,
          last_column: 0
        }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
      }, "setInput"),
      input: /* @__PURE__ */ o(function() {
        var n = this._input[0];
        return this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n, n.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
      }, "input"),
      unput: /* @__PURE__ */ o(function(n) {
        var p = n.length, c = n.split(/(?:\r\n?|\n)/g);
        this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - p), this.offset -= p;
        var d = this.match.split(/(?:\r\n?|\n)/g);
        this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
        var y = this.yylloc.range;
        return this.yylloc = {
          first_line: this.yylloc.first_line,
          last_line: this.yylineno + 1,
          first_column: this.yylloc.first_column,
          last_column: c ? (c.length === d.length ? this.yylloc.first_column : 0) + d[d.length - c.length].length - c[0].length : this.yylloc.first_column - p
        }, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - p]), this.yyleng = this.yytext.length, this;
      }, "unput"),
      more: /* @__PURE__ */ o(function() {
        return this._more = !0, this;
      }, "more"),
      reject: /* @__PURE__ */ o(function() {
        if (this.options.backtrack_lexer) this._backtrack = !0;
        else return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
` + this.showPosition(), {
          text: "",
          token: null,
          line: this.yylineno
        });
        return this;
      }, "reject"),
      less: /* @__PURE__ */ o(function(n) {
        this.unput(this.match.slice(n));
      }, "less"),
      pastInput: /* @__PURE__ */ o(function() {
        var n = this.matched.substr(0, this.matched.length - this.match.length);
        return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
      }, "pastInput"),
      upcomingInput: /* @__PURE__ */ o(function() {
        var n = this.match;
        return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
      }, "upcomingInput"),
      showPosition: /* @__PURE__ */ o(function() {
        var n = this.pastInput(), p = Array(n.length + 1).join("-");
        return n + this.upcomingInput() + `
` + p + "^";
      }, "showPosition"),
      test_match: /* @__PURE__ */ o(function(n, p) {
        var c, d, y;
        if (this.options.backtrack_lexer && (y = {
          yylineno: this.yylineno,
          yylloc: {
            first_line: this.yylloc.first_line,
            last_line: this.last_line,
            first_column: this.yylloc.first_column,
            last_column: this.yylloc.last_column
          },
          yytext: this.yytext,
          match: this.match,
          matches: this.matches,
          matched: this.matched,
          yyleng: this.yyleng,
          offset: this.offset,
          _more: this._more,
          _input: this._input,
          yy: this.yy,
          conditionStack: this.conditionStack.slice(0),
          done: this.done
        }, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), d = n[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
          first_line: this.yylloc.last_line,
          last_line: this.yylineno + 1,
          first_column: this.yylloc.last_column,
          last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
        }, this.yytext += n[0], this.match += n[0], this.matches = n, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(n[0].length), this.matched += n[0], c = this.performAction.call(this, this.yy, this, p, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), c) return c;
        if (this._backtrack) {
          for (var h in y) this[h] = y[h];
          return !1;
        }
        return !1;
      }, "test_match"),
      next: /* @__PURE__ */ o(function() {
        if (this.done) return this.EOF;
        this._input || (this.done = !0);
        var n, p, c, d;
        this._more || (this.yytext = "", this.match = "");
        for (var y = this._currentRules(), h = 0; h < y.length; h++) if (c = this._input.match(this.rules[y[h]]), c && (!p || c[0].length > p[0].length)) {
          if (p = c, d = h, this.options.backtrack_lexer) {
            if (n = this.test_match(c, y[h]), n !== !1) return n;
            if (this._backtrack) {
              p = !1;
              continue;
            } else return !1;
          } else if (!this.options.flex) break;
        }
        return p ? (n = this.test_match(p, y[d]), n === !1 ? !1 : n) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
` + this.showPosition(), {
          text: "",
          token: null,
          line: this.yylineno
        });
      }, "next"),
      lex: /* @__PURE__ */ o(function() {
        return this.next() || this.lex();
      }, "lex"),
      begin: /* @__PURE__ */ o(function(n) {
        this.conditionStack.push(n);
      }, "begin"),
      popState: /* @__PURE__ */ o(function() {
        return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
      }, "popState"),
      _currentRules: /* @__PURE__ */ o(function() {
        return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
      }, "_currentRules"),
      topState: /* @__PURE__ */ o(function(n) {
        return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
      }, "topState"),
      pushState: /* @__PURE__ */ o(function(n) {
        this.begin(n);
      }, "pushState"),
      stateStackSize: /* @__PURE__ */ o(function() {
        return this.conditionStack.length;
      }, "stateStackSize"),
      options: { "case-insensitive": !0 },
      performAction: /* @__PURE__ */ o(function(n, p, c, d) {
        switch (c) {
          case 0:
            break;
          case 1:
            break;
          case 2:
            return 13;
          case 3:
            break;
          case 4:
            break;
          case 5:
            return 8;
          case 6:
            return 9;
          case 7:
            return 7;
          case 8:
            return 14;
          case 9:
            return this.begin("acc_title"), 15;
          case 10:
            return this.popState(), "acc_title_value";
          case 11:
            return this.begin("acc_descr"), 17;
          case 12:
            return this.popState(), "acc_descr_value";
          case 13:
            this.begin("acc_descr_multiline");
            break;
          case 14:
            this.popState();
            break;
          case 15:
            return "acc_descr_multiline_value";
          case 16:
            return 20;
          case 17:
            return 24;
          case 18:
            return 23;
          case 19:
            return 6;
          case 20:
            return "INVALID";
        }
      }, "anonymous"),
      rules: [
        /^(?:%(?!\{)[^\n]*)/i,
        /^(?:[^\}]%%[^\n]*)/i,
        /^(?:[\n]+)/i,
        /^(?:\s+)/i,
        /^(?:#[^\n]*)/i,
        /^(?:timeline[ \t]+LR\b)/i,
        /^(?:timeline[ \t]+TD\b)/i,
        /^(?:timeline\b)/i,
        /^(?:title\s[^\n]+)/i,
        /^(?:accTitle\s*:\s*)/i,
        /^(?:(?!\n||)*[^\n]*)/i,
        /^(?:accDescr\s*:\s*)/i,
        /^(?:(?!\n||)*[^\n]*)/i,
        /^(?:accDescr\s*\{\s*)/i,
        /^(?:[\}])/i,
        /^(?:[^\}]*)/i,
        /^(?:section\s[^:\n]+)/i,
        /^(?::\s(?:[^:\n]|:(?!\s))+)/i,
        /^(?:[^#:\n]+)/i,
        /^(?:$)/i,
        /^(?:.)/i
      ],
      conditions: {
        acc_descr_multiline: {
          rules: [14, 15],
          inclusive: !1
        },
        acc_descr: {
          rules: [12],
          inclusive: !1
        },
        acc_title: {
          rules: [10],
          inclusive: !1
        },
        INITIAL: {
          rules: [
            0,
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8,
            9,
            11,
            13,
            16,
            17,
            18,
            19,
            20
          ],
          inclusive: !0
        }
      }
    };
  }();
  function f() {
    this.yy = {};
  }
  return o(f, "Parser"), f.prototype = x, x.Parser = f, new f();
}();
tt.parser = tt;
var zt = tt, yt = {};
Wt(yt, {
  addEvent: () => Et,
  addSection: () => wt,
  addTask: () => St,
  addTaskOrg: () => It,
  clear: () => bt,
  default: () => Vt,
  getCommonDb: () => xt,
  getDirection: () => _t,
  getSections: () => $t,
  getTasks: () => vt,
  setDirection: () => kt
});
var q = "", mt = 0, rt = "LR", it = [], J = [], U = [], xt = /* @__PURE__ */ o(() => jt, "getCommonDb"), bt = /* @__PURE__ */ o(function() {
  it.length = 0, J.length = 0, q = "", U.length = 0, rt = "LR", Ft();
}, "clear"), kt = /* @__PURE__ */ o(function(e) {
  rt = e;
}, "setDirection"), _t = /* @__PURE__ */ o(function() {
  return rt;
}, "getDirection"), wt = /* @__PURE__ */ o(function(e) {
  q = e, it.push(e);
}, "addSection"), $t = /* @__PURE__ */ o(function() {
  return it;
}, "getSections"), vt = /* @__PURE__ */ o(function() {
  let e = lt(), t = 0;
  for (; !e && t < 100; ) e = lt(), t++;
  return J.push(...U), J;
}, "getTasks"), St = /* @__PURE__ */ o(function(e, t, r) {
  let a = {
    id: mt++,
    section: q,
    type: q,
    task: e,
    score: t || 0,
    events: r ? [r] : []
  };
  U.push(a);
}, "addTask"), Et = /* @__PURE__ */ o(function(e) {
  U.find((t) => t.id === mt - 1).events.push(e);
}, "addEvent"), It = /* @__PURE__ */ o(function(e) {
  let t = {
    section: q,
    type: q,
    description: e,
    task: e,
    classes: []
  };
  J.push(t);
}, "addTaskOrg"), lt = /* @__PURE__ */ o(function() {
  let e = /* @__PURE__ */ o(function(r) {
    return U[r].processed;
  }, "compileTask"), t = !0;
  for (let [r, a] of U.entries()) e(r), t && (t = a.processed);
  return t;
}, "compileTasks"), Vt = {
  clear: bt,
  getCommonDb: xt,
  getDirection: _t,
  setDirection: kt,
  addSection: wt,
  getSections: $t,
  getTasks: vt,
  addTask: St,
  addTaskOrg: It,
  addEvent: Et
}, Mt = 0, K = /* @__PURE__ */ o(function(e, t) {
  let r = e.append("rect");
  return r.attr("x", t.x), r.attr("y", t.y), r.attr("fill", t.fill), r.attr("stroke", t.stroke), r.attr("width", t.width), r.attr("height", t.height), r.attr("rx", t.rx), r.attr("ry", t.ry), t.class !== void 0 && r.attr("class", t.class), r;
}, "drawRect"), Gt = /* @__PURE__ */ o(function(e, t) {
  let r = e.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), a = e.append("g");
  a.append("circle").attr("cx", t.cx - 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), a.append("circle").attr("cx", t.cx + 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
  function i(u) {
    let g = ot().startAngle(Math.PI / 2).endAngle(Math.PI / 2 * 3).innerRadius(7.5).outerRadius(6.8181818181818175);
    u.append("path").attr("class", "mouth").attr("d", g).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
  }
  o(i, "smile");
  function l(u) {
    let g = ot().startAngle(3 * Math.PI / 2).endAngle(Math.PI / 2 * 5).innerRadius(7.5).outerRadius(6.8181818181818175);
    u.append("path").attr("class", "mouth").attr("d", g).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
  }
  o(l, "sad");
  function s(u) {
    u.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", t.cx - 5).attr("y1", t.cy + 7).attr("x2", t.cx + 5).attr("y2", t.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
  }
  return o(s, "ambivalent"), t.score > 3 ? i(a) : t.score < 3 ? l(a) : s(a), r;
}, "drawFace"), Zt = /* @__PURE__ */ o(function(e, t) {
  let r = e.append("circle");
  return r.attr("cx", t.cx), r.attr("cy", t.cy), r.attr("class", "actor-" + t.pos), r.attr("fill", t.fill), r.attr("stroke", t.stroke), r.attr("r", t.r), r.class !== void 0 && r.attr("class", r.class), t.title !== void 0 && r.append("title").text(t.title), r;
}, "drawCircle"), Tt = /* @__PURE__ */ o(function(e, t) {
  let r = t.text.replace(/<br\s*\/?>/gi, " "), a = e.append("text");
  a.attr("x", t.x), a.attr("y", t.y), a.attr("class", "legend"), a.style("text-anchor", t.anchor), t.class !== void 0 && a.attr("class", t.class);
  let i = a.append("tspan");
  return i.attr("x", t.x + t.textMargin * 2), i.text(r), a;
}, "drawText"), qt = /* @__PURE__ */ o(function(e, t) {
  function r(i, l, s, u, g) {
    return i + "," + l + " " + (i + s) + "," + l + " " + (i + s) + "," + (l + u - g) + " " + (i + s - g * 1.2) + "," + (l + u) + " " + i + "," + (l + u);
  }
  o(r, "genPoints");
  let a = e.append("polygon");
  a.attr("points", r(t.x, t.y, 50, 20, 7)), a.attr("class", "labelBox"), t.y += t.labelMargin, t.x += 0.5 * t.labelMargin, Tt(e, t);
}, "drawLabel"), Ut = /* @__PURE__ */ o(function(e, t, r) {
  let a = e.append("g"), i = nt();
  i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = r.width, i.height = r.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, K(a, i), Ht(r)(t.text, a, i.x, i.y, i.width, i.height, { class: "journey-section section-type-" + t.num }, r, t.colour);
}, "drawSection"), et = -1, Yt = /* @__PURE__ */ o(function(e, t, r, a) {
  let i = t.x + r.width / 2, l = e.append("g");
  et++, l.append("line").attr("id", a + "-task" + et).attr("x1", i).attr("y1", t.y).attr("x2", i).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Gt(l, {
    cx: i,
    cy: 300 + (5 - t.score) * 30,
    score: t.score
  });
  let s = nt();
  s.x = t.x, s.y = t.y, s.fill = t.fill, s.width = r.width, s.height = r.height, s.class = "task task-type-" + t.num, s.rx = 3, s.ry = 3, K(l, s), Ht(r)(t.task, l, s.x, s.y, s.width, s.height, { class: "task" }, r, t.colour);
}, "drawTask"), Xt = /* @__PURE__ */ o(function(e, t) {
  K(e, {
    x: t.startx,
    y: t.starty,
    width: t.stopx - t.startx,
    height: t.stopy - t.starty,
    fill: t.fill,
    class: "rect"
  }).lower();
}, "drawBackgroundRect"), Jt = /* @__PURE__ */ o(function() {
  return {
    x: 0,
    y: 0,
    fill: void 0,
    "text-anchor": "start",
    width: 100,
    height: 100,
    textMargin: 0,
    rx: 0,
    ry: 0
  };
}, "getTextObj"), nt = /* @__PURE__ */ o(function() {
  return {
    x: 0,
    y: 0,
    width: 100,
    anchor: "start",
    height: 100,
    rx: 0,
    ry: 0
  };
}, "getNoteRect"), Ht = /* @__PURE__ */ function() {
  function e(i, l, s, u, g, x, f, n) {
    a(l.append("text").attr("x", s + g / 2).attr("y", u + x / 2 + 5).style("font-color", n).style("text-anchor", "middle").text(i), f);
  }
  o(e, "byText");
  function t(i, l, s, u, g, x, f, n, p) {
    let { taskFontSize: c, taskFontFamily: d } = n, y = i.split(/<br\s*\/?>/gi);
    for (let h = 0; h < y.length; h++) {
      let E = h * c - c * (y.length - 1) / 2, m = l.append("text").attr("x", s + g / 2).attr("y", u).attr("fill", p).style("text-anchor", "middle").style("font-size", c).style("font-family", d);
      m.append("tspan").attr("x", s + g / 2).attr("dy", E).text(y[h]), m.attr("y", u + x / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(m, f);
    }
  }
  o(t, "byTspan");
  function r(i, l, s, u, g, x, f, n) {
    let p = l.append("switch"), c = p.append("foreignObject").attr("x", s).attr("y", u).attr("width", g).attr("height", x).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
    c.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i, p, s, u, g, x, f, n), a(c, f);
  }
  o(r, "byFo");
  function a(i, l) {
    for (let s in l) s in l && i.attr(s, l[s]);
  }
  return o(a, "_setTextAttrs"), function(i) {
    return i.textPlacement === "fo" ? r : i.textPlacement === "old" ? e : t;
  };
}(), Kt = /* @__PURE__ */ o(function(e, t) {
  Mt = 0, et = -1, e.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
}, "initGraphics");
function at(e, t) {
  e.each(function() {
    var r = X(this), a = r.text().split(/(\s+|<br>)/).reverse(), i, l = [], s = 1.1, u = r.attr("y"), g = parseFloat(r.attr("dy")), x = r.text(null).append("tspan").attr("x", 0).attr("y", u).attr("dy", g + "em");
    for (let f = 0; f < a.length; f++) i = a[a.length - 1 - f], l.push(i), x.text(l.join(" ").trim()), (x.node().getComputedTextLength() > t || i === "<br>") && (l.pop(), x.text(l.join(" ").trim()), l = i === "<br>" ? [""] : [i], x = r.append("tspan").attr("x", 0).attr("y", u).attr("dy", s + "em").text(i));
  });
}
o(at, "wrap");
var Qt = /* @__PURE__ */ o(function(e, t, r, a, i, l = !1) {
  var y, h, E;
  let { theme: s, look: u } = a, g = s == null ? void 0 : s.includes("redux"), x = r % (((y = a == null ? void 0 : a.themeVariables) == null ? void 0 : y.THEME_COLOR_LIMIT) ?? 12) - 1, f = e.append("g");
  t.section = x, f.attr("class", (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + x));
  let n = f.append("g"), p = f.append("g"), c = p.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(at, t.width).node().getBBox(), d = (h = a.fontSize) != null && h.replace ? a.fontSize.replace("px", "") : a.fontSize;
  if (t.height = c.height + d * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width += 2 * t.padding, p.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), g && p.attr("transform", `translate(${t.width / 2}, ${l ? t.padding / 2 + 3 : t.padding})`), ee(n, t, x, i, a), u === "neo" && (f.attr("data-look", "neo"), g)) {
    let m = s.includes("dark"), _ = X(((E = e.node()) == null ? void 0 : E.ownerSVGElement) ?? e.node()), D = _.attr("id") ?? "", L = D ? `${D}-drop-shadow` : "drop-shadow";
    if (_.select(`#${L}`).empty()) {
      let O = _.select("defs");
      (O.empty() ? _.append("defs") : O).append("filter").attr("id", L).attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", m ? "0.2" : "0.06").attr("flood-color", m ? "#FFFFFF" : "#000000");
    }
  }
  return t;
}, "drawNode"), te = /* @__PURE__ */ o(function(e, t, r) {
  var s;
  let a = e.append("g"), i = a.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(at, t.width).node().getBBox(), l = (s = r.fontSize) != null && s.replace ? r.fontSize.replace("px", "") : r.fontSize;
  return a.remove(), i.height + l * 1.1 * 0.5 + t.padding;
}, "getVirtualNodeHeight"), ee = /* @__PURE__ */ o(function(e, t, r, a, i) {
  let { theme: l } = i, s = l != null && l.includes("redux") ? 0 : 5, u = s > 0 ? `M0 ${t.height - 5} v${-t.height + 10} q0,-${s},${s},-${s} h${t.width - 10} q${s},0,${s},${s} v${t.height - 5} H0 Z` : `M0 ${t.height - 5} v${-(t.height - 5)} h${t.width} v${t.height} H0 Z`;
  e.append("path").attr("id", a + "-node-" + Mt++).attr("class", "node-bkg node-" + t.type).attr("d", u), l != null && l.includes("redux") || e.append("line").attr("class", "node-line-" + r).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
}, "defaultBkg"), A = {
  drawRect: K,
  drawCircle: Zt,
  drawSection: Ut,
  drawText: Tt,
  drawLabel: qt,
  drawTask: Yt,
  drawBackgroundRect: Xt,
  getTextObj: Jt,
  getNoteRect: nt,
  initGraphics: Kt,
  drawNode: Qt,
  getVirtualNodeHeight: te
}, re = /* @__PURE__ */ o(function(e, t, r, a) {
  var V, G, F;
  let i = gt(), { look: l, theme: s, themeVariables: u } = i, { useGradient: g, gradientStart: x, gradientStop: f } = u, n = ((V = i.timeline) == null ? void 0 : V.leftMargin) ?? 50;
  k.debug("timeline", a.db);
  let p = i.securityLevel, c;
  p === "sandbox" && (c = X("#i" + t));
  let d = X(p === "sandbox" ? c.nodes()[0].contentDocument.body : "body").select("#" + t);
  d.append("g");
  let y = a.db.getTasks(), h = a.db.getCommonDb().getDiagramTitle();
  k.debug("task", y), A.initGraphics(d, t);
  let E = a.db.getSections();
  k.debug("sections", E);
  let m = 0, _ = 0, D = 0, L = 0, O = 50 + n, R = 50;
  L = 50;
  let N = 0, b = !0;
  E.forEach(function(w) {
    let $ = {
      number: N,
      descr: w,
      section: N,
      width: 150,
      padding: 20,
      maxHeight: m
    }, I = A.getVirtualNodeHeight(d, $, i);
    k.debug("sectionHeight before draw", I), m = Math.max(m, I + 20);
  });
  let H = 0, P = 0;
  k.debug("tasks.length", y.length);
  for (let [w, $] of y.entries()) {
    let I = {
      number: w,
      descr: $,
      section: $.section,
      width: 150,
      padding: 20,
      maxHeight: _
    }, v = A.getVirtualNodeHeight(d, I, i);
    k.debug("taskHeight before draw", v), _ = Math.max(_, v + 20), H = Math.max(H, $.events.length);
    let S = 0;
    for (let M of $.events) {
      let B = {
        descr: M,
        section: $.section,
        number: $.section,
        width: 150,
        padding: 20,
        maxHeight: 50
      };
      S += A.getVirtualNodeHeight(d, B, i);
    }
    $.events.length > 0 && (S += ($.events.length - 1) * 10), P = Math.max(P, S);
  }
  k.debug("maxSectionHeight before draw", m), k.debug("maxTaskHeight before draw", _), E && E.length > 0 ? E.forEach((w) => {
    let $ = y.filter((M) => M.section === w), I = {
      number: N,
      descr: w,
      section: N,
      width: 200 * Math.max($.length, 1) - 50,
      padding: 20,
      maxHeight: m
    };
    k.debug("sectionNode", I);
    let v = d.append("g"), S = A.drawNode(v, I, N, i, t);
    k.debug("sectionNode output", S), v.attr("transform", `translate(${O}, ${L})`), R += m + 50, $.length > 0 && ct(d, $, N, O, R, _, i, H, P, m, !1, t), O += 200 * Math.max($.length, 1), R = L, N++;
  }) : (b = !1, ct(d, y, N, O, R, _, i, H, P, m, !0, t));
  let W = d.node().getBBox();
  if (k.debug("bounds", W), h && d.append("text").text(h).attr("x", l === "neo" ? W.x * 2 + n : W.width / 2 - n).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), D = b ? m + _ + 150 : _ + 100, d.append("g").attr("class", "lineWrapper").append("line").attr("x1", n).attr("y1", D).attr("x2", W.width + 3 * n).attr("y2", D).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", `url(#${t}-arrowhead)`), l === "neo" && g && s !== "neutral") {
    let w = d.select("defs"), $ = (w.empty() ? d.append("defs") : w).append("linearGradient").attr("id", d.attr("id") + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
    $.append("stop").attr("offset", "0%").attr("stop-color", x).attr("stop-opacity", 1), $.append("stop").attr("offset", "100%").attr("stop-color", f).attr("stop-opacity", 1);
  }
  ft(void 0, d, ((G = i.timeline) == null ? void 0 : G.padding) ?? 50, ((F = i.timeline) == null ? void 0 : F.useMaxWidth) ?? !1);
}, "draw"), ct = /* @__PURE__ */ o(function(e, t, r, a, i, l, s, u, g, x, f, n) {
  var p;
  for (let c of t) {
    let d = {
      descr: c.task,
      section: r,
      number: r,
      width: 150,
      padding: 20,
      maxHeight: l
    };
    k.debug("taskNode", d);
    let y = e.append("g").attr("class", "taskWrapper"), h = A.drawNode(y, d, r, s, n).height;
    if (k.debug("taskHeight after draw", h), y.attr("transform", `translate(${a}, ${i})`), l = Math.max(l, h), c.events) {
      let E = e.append("g").attr("class", "lineWrapper"), m = l;
      i += 100, m += ie(e, c.events, r, a, i, s, n), i -= 100, E.append("line").attr("x1", a + 190 / 2).attr("y1", i + l).attr("x2", a + 190 / 2).attr("y2", i + l + 100 + g + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", `url(#${n}-arrowhead)`).attr("stroke-dasharray", "5,5");
    }
    a += 200, f && !((p = s.timeline) != null && p.disableMulticolor) && r++;
  }
  i -= 10;
}, "drawTasks"), ie = /* @__PURE__ */ o(function(e, t, r, a, i, l, s) {
  let u = 0, g = i;
  i += 100;
  for (let x of t) {
    let f = {
      descr: x,
      section: r,
      number: r,
      width: 150,
      padding: 20,
      maxHeight: 50
    };
    k.debug("eventNode", f);
    let n = e.append("g").attr("class", "eventWrapper"), p = A.drawNode(n, f, r, l, s, !0).height;
    u += p, n.attr("transform", `translate(${a}, ${i})`), i = i + 10 + p;
  }
  return i = g, u;
}, "drawEvents"), ne = {
  setConf: /* @__PURE__ */ o(() => {
  }, "setConf"),
  draw: re
}, Q = 200, j = 5, ae = Q + j * 2, st = Q + 100, se = st + j * 2, Lt = 10, oe = 0, ht = 20, Nt = 20, dt = 30, Ct = 50, le = /* @__PURE__ */ o(function(e, t, r, a) {
  var G, F, w, $, I;
  let i = gt(), l = ((G = i.timeline) == null ? void 0 : G.leftMargin) ?? 50;
  k.debug("timeline", a.db);
  let s = Rt(t);
  s.append("g");
  let u = a.db.getTasks(), g = a.db.getCommonDb().getDiagramTitle();
  k.debug("task", u), A.initGraphics(s);
  let x = a.db.getSections();
  k.debug("sections", x);
  let f = 0, n = 0, p = 50 + l, c = 50, d = c, y = p, h = ae + Nt, E = se + Ct, m = y + h, _ = 0, D = x && x.length > 0, L = D ? m : p + h, O = Math.max(50, h + E - j * 2);
  x.forEach(function(v) {
    let S = {
      number: _,
      descr: v,
      section: _,
      width: O,
      padding: j,
      maxHeight: f
    }, M = A.getVirtualNodeHeight(s, S, i);
    k.debug("sectionHeight before draw", M), f = Math.max(f, M);
  });
  let R = 0;
  k.debug("tasks.length", u.length);
  for (let [v, S] of u.entries()) {
    let M = {
      number: v,
      descr: S,
      section: S.section,
      width: Q,
      padding: j,
      maxHeight: n
    }, B = A.getVirtualNodeHeight(s, M, i);
    k.debug("taskHeight before draw", B), n = Math.max(n, B);
    let T = 0;
    for (let Z of S.events) {
      let z = {
        descr: Z,
        section: S.section,
        number: S.section,
        width: st,
        padding: j,
        maxHeight: 50
      };
      T += A.getVirtualNodeHeight(s, z, i);
    }
    S.events.length > 0 && (T += (S.events.length - 1) * Lt), R = Math.max(R, T) + oe;
  }
  k.debug("maxSectionHeight before draw", f), k.debug("maxTaskHeight before draw", n);
  let N = Math.max(n, R) + dt;
  D ? x.forEach((v) => {
    let S = u.filter((At) => At.section === v), M = {
      number: _,
      descr: v,
      section: _,
      width: O,
      padding: j,
      maxHeight: f
    };
    k.debug("sectionNode", M);
    let B = s.append("g"), T = A.drawNode(B, M, _, i);
    k.debug("sectionNode output", T);
    let Z = L - h;
    B.attr("transform", `translate(${Z}, ${c})`);
    let z = c + T.height + ht;
    S.length > 0 && ut(s, S, _, L, z, n, i, N, !1);
    let Y = S.length, C = T.height + ht + N * Math.max(Y, 1) - (Y > 0 ? dt * 2 : 0);
    c += C, _++;
  }) : ut(s, u, _, L, c, n, i, N, !0);
  let b = (F = s.node()) == null ? void 0 : F.getBBox();
  if (!b) throw Error("bbox not found");
  if (k.debug("bounds", b), g) {
    if (s.append("text").text(g).attr("x", b.width / 2 - l).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), b = (w = s.node()) == null ? void 0 : w.getBBox(), !b) throw Error("bbox not found");
    k.debug("bounds after title", b);
  }
  let [H] = Pt(i.fontSize), P = (H ?? 16) * 2, W = (H ?? 16) * 0.5 + 20, V = s.append("g").attr("class", "lineWrapper");
  V.append("line").attr("x1", L).attr("y1", d - P).attr("x2", L).attr("y2", b.y + b.height + W).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), V.lower(), ft(void 0, s, (($ = i.timeline) == null ? void 0 : $.padding) ?? 50, ((I = i.timeline) == null ? void 0 : I.useMaxWidth) ?? !1);
}, "draw"), ut = /* @__PURE__ */ o(function(e, t, r, a, i, l, s, u, g) {
  var x;
  for (let f of t) {
    let n = {
      descr: f.task,
      section: r,
      number: r,
      width: Q,
      padding: j,
      maxHeight: l
    };
    k.debug("taskNode", n);
    let p = e.append("g").attr("class", "taskWrapper"), c = A.drawNode(p, n, r, s), d = c.height;
    k.debug("taskHeight after draw", d);
    let y = a - Nt - c.width;
    if (p.attr("transform", `translate(${y}, ${i})`), l = Math.max(l, d), f.events && f.events.length > 0) {
      let h = i, E = a + Ct;
      ce(e, f.events, r, a, E, h, s);
    }
    i += u, g && !((x = s.timeline) != null && x.disableMulticolor) && r++;
  }
}, "drawTasks"), ce = /* @__PURE__ */ o(function(e, t, r, a, i, l, s) {
  let u = l;
  for (let g of t) {
    let x = {
      descr: g,
      section: r,
      number: r,
      width: st,
      padding: j,
      maxHeight: 0
    };
    k.debug("eventNode", x);
    let f = e.append("g").attr("class", "eventWrapper"), n = A.drawNode(f, x, r, s).height;
    f.attr("transform", `translate(${i}, ${u})`);
    let p = e.append("g").attr("class", "lineWrapper"), c = u + n / 2;
    p.append("line").attr("x1", a).attr("y1", c).attr("x2", i).attr("y2", c).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5"), u = u + n + Lt;
  }
  return u - l;
}, "drawEvents"), he = {
  setConf: /* @__PURE__ */ o(() => {
  }, "setConf"),
  draw: le
}, de = /* @__PURE__ */ o((e) => {
  var u;
  let { theme: t } = pt(), r = t == null ? void 0 : t.includes("dark"), a = t == null ? void 0 : t.includes("color"), i = ((u = e.svgId) == null ? void 0 : u.replace(/^#/, "")) ?? "", l = i ? `url(#${i}-drop-shadow)` : e.dropShadow ?? "none", s = "";
  for (let g = 0; g < e.THEME_COLOR_LIMIT; g++) {
    let x = `${17 - 3 * g}`, f = a ? e.borderColorArray[g] : e.mainBkg, n = a ? e.borderColorArray[g] : e.nodeBorder;
    s += `
    .section-${g - 1} rect,
    .section-${g - 1} path,
    .section-${g - 1} circle {
      fill: ${r && a ? e.mainBkg : f};
      stroke: ${n};
      stroke-width: ${e.strokeWidth};
      filter: ${l};
    }

    .section-${g - 1} text {
      fill: ${e.nodeBorder};
      font-weight: ${e.fontWeight}
    }

    .node-icon-${g - 1} {
      font-size: 40px;
      color: ${e["cScaleLabel" + g]};
    }

    .section-edge-${g - 1} {
      stroke: ${e["cScale" + g]};
    }

    .edge-depth-${g - 1} {
      stroke-width: ${x};
    }

    .section-${g - 1} line {
      stroke: ${e["cScaleInv" + g]};
      stroke-width: 3;
    }

    .lineWrapper line {
      stroke: ${e.nodeBorder};
      stroke-width:${e.strokeWidth}
    }

    .disabled,
    .disabled circle,
    .disabled text {
      fill: ${e.tertiaryColor ?? "lightgray"};
    }

    .disabled text {
      fill: ${e.clusterBorder ?? "#efefef"};
    }
    `;
  }
  return s;
}, "genReduxSections"), ue = /* @__PURE__ */ o((e) => {
  let t = "";
  for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) e["lineColor" + r] = e["lineColor" + r] || e["cScaleInv" + r], Dt(e["lineColor" + r]) ? e["lineColor" + r] = Ot(e["lineColor" + r], 20) : e["lineColor" + r] = Bt(e["lineColor" + r], 20);
  for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) {
    let a = "" + (17 - 3 * r);
    t += `
    .section-${r - 1} rect, .section-${r - 1} path, .section-${r - 1} circle, .section-${r - 1} path  {
      fill: ${e["cScale" + r]};
    }
    .section-${r - 1} text {
     fill: ${e["cScaleLabel" + r]};
    }
    .node-icon-${r - 1} {
      font-size: 40px;
      color: ${e["cScaleLabel" + r]};
    }
    .section-edge-${r - 1}{
      stroke: ${e["cScale" + r]};
    }
    .edge-depth-${r - 1}{
      stroke-width: ${a};
    }
    .section-${r - 1} line {
      stroke: ${e["cScaleInv" + r]} ;
      stroke-width: 3;
    }

    .lineWrapper line{
      stroke: ${e["cScaleLabel" + r]} ;
    }

    .disabled, .disabled circle, .disabled text {
      fill: ${e.tertiaryColor ?? "lightgray"};
    }
    .disabled text {
      fill: ${e.clusterBorder ?? "#efefef"};
    }
    `;
  }
  return t;
}, "genSections"), fe = {
  db: yt,
  renderer: {
    setConf: /* @__PURE__ */ o(() => {
    }, "setConf"),
    draw: /* @__PURE__ */ o((e, t, r, a) => {
      var i, l;
      return (((l = (i = a == null ? void 0 : a.db) == null ? void 0 : i.getDirection) == null ? void 0 : l.call(i)) ?? "LR") === "TD" ? he.draw(e, t, r, a) : ne.draw(e, t, r, a);
    }, "draw")
  },
  parser: zt,
  styles: /* @__PURE__ */ o((e) => {
    var s;
    let { theme: t } = pt(), r = t == null ? void 0 : t.includes("redux"), a = t === "neutral", i = ((s = e.svgId) == null ? void 0 : s.replace(/^#/, "")) ?? "", l = "";
    if (e.useGradient && i && e.THEME_COLOR_LIMIT && !a) for (let u = 0; u < e.THEME_COLOR_LIMIT; u++) l += `
      .section-${u - 1}[data-look="neo"] rect,
      .section-${u - 1}[data-look="neo"] path,
      .section-${u - 1}[data-look="neo"] circle {
        fill: ${e.mainBkg};
        stroke: url(#${i}-gradient);
        stroke-width: 2;
      }
      .section-${u - 1}[data-look="neo"] line {
        stroke: url(#${i}-gradient);
        stroke-width: 2;
      }`;
    return `
  .edge {
    stroke-width: 3;
  }
  ${r ? de(e) : ue(e)}
  ${l}
  .section-root rect, .section-root path, .section-root circle  {
    fill: ${e.git0};
  }
  .section-root text {
    fill: ${e.gitBranchLabel0};
  }
  .icon-container {
    height:100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .edge {
    fill: none;
  }
  .eventWrapper  {
   filter: brightness(120%);
  }
`;
  }, "getStyles")
};
export {
  fe as diagram
};
