@loopstack/loopstack-studio 0.25.0 → 0.25.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ai-elements/message.js +2 -2
- package/dist/components/ai-elements/reasoning.js +9 -9
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +2 -5
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +69 -72
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{architecture-7HQA4BMR.js → architecture-YZFGNWBL.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-TQ3KTPDO.js → chunk-2KRD3SAO.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-4F5CHEZ2.js → chunk-67CJDMHE.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-UMXZTB3W.js → chunk-7N4EOEYR.js} +5 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-PL6DKKU2.js → chunk-AA7GKIK3.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +23 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-SJTYNZTY.js → chunk-FOC6F5B3.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +1197 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-FRFDVMJY.js → chunk-KGLVRYIC.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-B2363JML.js → chunk-LIHQZDEY.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +29 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{gitGraph-G5XIXVHT.js → gitGraph-7Q5UKJZL.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +27 -17
- package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +903 -0
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +76 -75
- package/dist/node_modules/@xyflow/system/dist/esm/index.js +30 -28
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +31 -40
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +23 -26
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +12 -13
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +181 -205
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +11 -13
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +12 -13
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +8 -9
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +176 -183
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +17 -19
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +153 -160
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +10 -12
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +36 -38
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +37 -45
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +12 -14
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +80 -86
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +6 -2
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +39 -41
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +7 -8
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +69 -70
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +215 -205
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +76 -76
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +29 -39
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +252 -274
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +93 -106
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +61 -61
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +31 -41
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +15 -18
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +226 -226
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +17 -17
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +17 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +19 -19
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +9 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +3 -3
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +11 -11
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +5 -5
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +61 -61
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +25 -25
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +109 -109
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +17 -17
- package/dist/node_modules/dompurify/dist/purify.es.js +67 -67
- package/dist/node_modules/katex/dist/katex.js +1256 -1209
- package/dist/node_modules/khroma/dist/methods/transparentize.js +3 -0
- package/dist/node_modules/lodash-es/_baseClone.js +2 -2
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +6 -6
- package/dist/node_modules/lodash-es/_baseToString.js +1 -1
- package/dist/node_modules/lodash-es/_baseUniq.js +1 -1
- package/dist/node_modules/lodash-es/_createSet.js +1 -1
- package/dist/node_modules/lodash-es/_getAllKeys.js +2 -2
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +1 -1
- package/dist/node_modules/lodash-es/findIndex.js +2 -2
- package/dist/node_modules/lodash-es/flatMap.js +1 -1
- package/dist/node_modules/lodash-es/forEach.js +1 -1
- package/dist/node_modules/lodash-es/max.js +1 -1
- package/dist/node_modules/lodash-es/min.js +1 -1
- package/dist/node_modules/lodash-es/minBy.js +1 -1
- package/dist/node_modules/lodash-es/reduce.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +691 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{blockDiagram-VD42YOAC.js → blockDiagram-DXYQGD6D.js} +183 -157
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-YG6GDRKO.js → c4Diagram-AHTNJAMY.js} +65 -63
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +47 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-EXTU4WIE.js → chunk-426QAEUC.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-B4BG7PRW.js → chunk-4TB4RGXK.js} +533 -393
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +3638 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-S3R3BYOJ.js → chunk-5PVQY5BW.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-HN2XXSSU.js → chunk-BSJP7CBP.js} +20 -14
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-QN33PNHL.js → chunk-EDXVE4YY.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +568 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +2320 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-DI55MBZ5.js → chunk-OYMX7WX6.js} +35 -21
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +272 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ATLVNIR6.js → chunk-X2U36JSP.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-MI3HLSF2.js → chunk-XPW4576I.js} +11 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +60 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +30 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-2ON5EDUG.js → classDiagram-6PBFFD2Q.js} +12 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-v2-WZHVMYZB.js → classDiagram-v2-HSJHXN6E.js} +12 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{dagre-6UL2VRFP.js → dagre-KV5264BT.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +99 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-PSM6KHXK.js → diagram-G4DWMVQ6.js} +20 -23
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +211 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-S2PKOQOG.js → diagram-TYMM5635.js} +4 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-Q2GNP2WA.js → erDiagram-SMLLAGMA.js} +486 -386
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-NV44I4VS.js → flowDiagram-DWJPFMVM.js} +915 -898
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ganttDiagram-JELNMOA3.js → ganttDiagram-T4ZO3ILL.js} +59 -29
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +728 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +17 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +714 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{journeyDiagram-XKPGCS4Q.js → journeyDiagram-VCZTEJTY.js} +32 -32
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-3W4ZIXB7.js → kanban-definition-6JOO6SKY.js} +13 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-VGOIOE7T.js → mindmap-definition-QFDTVHPH.js} +105 -59
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +117 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-AYHSOK5B.js → quadrantDiagram-34T5L4WZ.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-UZGBJVZJ.js → requirementDiagram-MS252O5E.js} +49 -19
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sankeyDiagram-TZEHDZUN.js → sankeyDiagram-XADWPNL6.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +4155 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-FKZM4ZOC.js → stateDiagram-FHFEXIEX.js} +12 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-v2-4FDKWEC3.js → stateDiagram-v2-QKLJ7IA2.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +1071 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +959 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +574 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{xychartDiagram-PRI3JC2R.js → xychartDiagram-5P7HB3ND.js} +38 -35
- package/dist/node_modules/mermaid/dist/mermaid.core.js +235 -192
- package/dist/node_modules/nanoid/url-alphabet/index.js +1 -1
- package/dist/node_modules/remend/dist/index.js +333 -264
- package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +2498 -0
- package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +35 -0
- package/dist/node_modules/streamdown/dist/index.js +1 -1
- package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +3 -0
- package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +672 -667
- package/dist/pages/DashboardPage.js +3 -3
- package/package.json +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.js +0 -787
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.js +0 -3
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +0 -16
- package/dist/node_modules/lodash-es/_arrayAggregator.js +0 -9
- package/dist/node_modules/lodash-es/_arrayEvery.js +0 -6
- package/dist/node_modules/lodash-es/_baseAggregator.js +0 -8
- package/dist/node_modules/lodash-es/_baseDifference.js +0 -22
- package/dist/node_modules/lodash-es/_baseEvery.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsRegExp.js +0 -8
- package/dist/node_modules/lodash-es/_baseSlice.js +0 -8
- package/dist/node_modules/lodash-es/_baseSome.js +0 -9
- package/dist/node_modules/lodash-es/_createAggregator.js +0 -12
- package/dist/node_modules/lodash-es/assign.js +0 -14
- package/dist/node_modules/lodash-es/compact.js +0 -9
- package/dist/node_modules/lodash-es/difference.js +0 -8
- package/dist/node_modules/lodash-es/drop.js +0 -8
- package/dist/node_modules/lodash-es/dropRight.js +0 -8
- package/dist/node_modules/lodash-es/every.js +0 -11
- package/dist/node_modules/lodash-es/groupBy.js +0 -6
- package/dist/node_modules/lodash-es/head.js +0 -5
- package/dist/node_modules/lodash-es/includes.js +0 -13
- package/dist/node_modules/lodash-es/indexOf.js +0 -11
- package/dist/node_modules/lodash-es/isRegExp.js +0 -5
- package/dist/node_modules/lodash-es/negate.js +0 -16
- package/dist/node_modules/lodash-es/pickBy.js +0 -15
- package/dist/node_modules/lodash-es/reject.js +0 -10
- package/dist/node_modules/lodash-es/some.js +0 -11
- package/dist/node_modules/lodash-es/uniq.js +0 -6
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.js +0 -673
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +0 -1547
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.js +0 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.js +0 -135
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js +0 -247
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.js +0 -3516
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.js +0 -39
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.js +0 -497
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js +0 -55
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.js +0 -211
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.js +0 -621
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.js +0 -18
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.js +0 -117
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js +0 -3560
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.js +0 -833
- package/dist/node_modules/streamdown/dist/chunk-RLXIAIE6.js +0 -2189
- package/dist/node_modules/streamdown/dist/highlighted-body-B3W2YXNL.js +0 -33
- package/dist/node_modules/streamdown/dist/mermaid-3ZIDBTTL.js +0 -3
|
@@ -1,833 +0,0 @@
|
|
|
1
|
-
import { __export, __name, log } from "./chunk-AGHRB4JF.js";
|
|
2
|
-
import is_dark_default from "../../../../khroma/dist/methods/is_dark.js";
|
|
3
|
-
import lighten_default from "../../../../khroma/dist/methods/lighten.js";
|
|
4
|
-
import darken_default from "../../../../khroma/dist/methods/darken.js";
|
|
5
|
-
import { clear, commonDb_exports, getConfig2, setupGraphViewbox } from "./chunk-ABZYJK2D.js";
|
|
6
|
-
import select_default from "../../../../d3-selection/src/select.js";
|
|
7
|
-
import arc_default from "../../../../d3-shape/src/arc.js";
|
|
8
|
-
import "../../../../d3/src/index.js";
|
|
9
|
-
var parser = (function() {
|
|
10
|
-
var e = /* @__PURE__ */ __name(function(e, S, C, w) {
|
|
11
|
-
for (C ||= {}, w = e.length; w--; C[e[w]] = S);
|
|
12
|
-
return C;
|
|
13
|
-
}, "o"), C = [
|
|
14
|
-
6,
|
|
15
|
-
8,
|
|
16
|
-
10,
|
|
17
|
-
11,
|
|
18
|
-
12,
|
|
19
|
-
14,
|
|
20
|
-
16,
|
|
21
|
-
17,
|
|
22
|
-
20,
|
|
23
|
-
21
|
|
24
|
-
], w = [1, 9], T = [1, 10], E = [1, 11], D = [1, 12], O = [1, 13], k = [1, 16], A = [1, 17], j = {
|
|
25
|
-
trace: /* @__PURE__ */ __name(function() {}, "trace"),
|
|
26
|
-
yy: {},
|
|
27
|
-
symbols_: {
|
|
28
|
-
error: 2,
|
|
29
|
-
start: 3,
|
|
30
|
-
timeline: 4,
|
|
31
|
-
document: 5,
|
|
32
|
-
EOF: 6,
|
|
33
|
-
line: 7,
|
|
34
|
-
SPACE: 8,
|
|
35
|
-
statement: 9,
|
|
36
|
-
NEWLINE: 10,
|
|
37
|
-
title: 11,
|
|
38
|
-
acc_title: 12,
|
|
39
|
-
acc_title_value: 13,
|
|
40
|
-
acc_descr: 14,
|
|
41
|
-
acc_descr_value: 15,
|
|
42
|
-
acc_descr_multiline_value: 16,
|
|
43
|
-
section: 17,
|
|
44
|
-
period_statement: 18,
|
|
45
|
-
event_statement: 19,
|
|
46
|
-
period: 20,
|
|
47
|
-
event: 21,
|
|
48
|
-
$accept: 0,
|
|
49
|
-
$end: 1
|
|
50
|
-
},
|
|
51
|
-
terminals_: {
|
|
52
|
-
2: "error",
|
|
53
|
-
4: "timeline",
|
|
54
|
-
6: "EOF",
|
|
55
|
-
8: "SPACE",
|
|
56
|
-
10: "NEWLINE",
|
|
57
|
-
11: "title",
|
|
58
|
-
12: "acc_title",
|
|
59
|
-
13: "acc_title_value",
|
|
60
|
-
14: "acc_descr",
|
|
61
|
-
15: "acc_descr_value",
|
|
62
|
-
16: "acc_descr_multiline_value",
|
|
63
|
-
17: "section",
|
|
64
|
-
20: "period",
|
|
65
|
-
21: "event"
|
|
66
|
-
},
|
|
67
|
-
productions_: [
|
|
68
|
-
0,
|
|
69
|
-
[3, 3],
|
|
70
|
-
[5, 0],
|
|
71
|
-
[5, 2],
|
|
72
|
-
[7, 2],
|
|
73
|
-
[7, 1],
|
|
74
|
-
[7, 1],
|
|
75
|
-
[7, 1],
|
|
76
|
-
[9, 1],
|
|
77
|
-
[9, 2],
|
|
78
|
-
[9, 2],
|
|
79
|
-
[9, 1],
|
|
80
|
-
[9, 1],
|
|
81
|
-
[9, 1],
|
|
82
|
-
[9, 1],
|
|
83
|
-
[18, 1],
|
|
84
|
-
[19, 1]
|
|
85
|
-
],
|
|
86
|
-
performAction: /* @__PURE__ */ __name(function(e, S, C, w, T, E, D) {
|
|
87
|
-
var O = E.length - 1;
|
|
88
|
-
switch (T) {
|
|
89
|
-
case 1: return E[O - 1];
|
|
90
|
-
case 2:
|
|
91
|
-
this.$ = [];
|
|
92
|
-
break;
|
|
93
|
-
case 3:
|
|
94
|
-
E[O - 1].push(E[O]), this.$ = E[O - 1];
|
|
95
|
-
break;
|
|
96
|
-
case 4:
|
|
97
|
-
case 5:
|
|
98
|
-
this.$ = E[O];
|
|
99
|
-
break;
|
|
100
|
-
case 6:
|
|
101
|
-
case 7:
|
|
102
|
-
this.$ = [];
|
|
103
|
-
break;
|
|
104
|
-
case 8:
|
|
105
|
-
w.getCommonDb().setDiagramTitle(E[O].substr(6)), this.$ = E[O].substr(6);
|
|
106
|
-
break;
|
|
107
|
-
case 9:
|
|
108
|
-
this.$ = E[O].trim(), w.getCommonDb().setAccTitle(this.$);
|
|
109
|
-
break;
|
|
110
|
-
case 10:
|
|
111
|
-
case 11:
|
|
112
|
-
this.$ = E[O].trim(), w.getCommonDb().setAccDescription(this.$);
|
|
113
|
-
break;
|
|
114
|
-
case 12:
|
|
115
|
-
w.addSection(E[O].substr(8)), this.$ = E[O].substr(8);
|
|
116
|
-
break;
|
|
117
|
-
case 15:
|
|
118
|
-
w.addTask(E[O], 0, ""), this.$ = E[O];
|
|
119
|
-
break;
|
|
120
|
-
case 16:
|
|
121
|
-
w.addEvent(E[O].substr(2)), this.$ = E[O];
|
|
122
|
-
break;
|
|
123
|
-
}
|
|
124
|
-
}, "anonymous"),
|
|
125
|
-
table: [
|
|
126
|
-
{
|
|
127
|
-
3: 1,
|
|
128
|
-
4: [1, 2]
|
|
129
|
-
},
|
|
130
|
-
{ 1: [3] },
|
|
131
|
-
e(C, [2, 2], { 5: 3 }),
|
|
132
|
-
{
|
|
133
|
-
6: [1, 4],
|
|
134
|
-
7: 5,
|
|
135
|
-
8: [1, 6],
|
|
136
|
-
9: 7,
|
|
137
|
-
10: [1, 8],
|
|
138
|
-
11: w,
|
|
139
|
-
12: T,
|
|
140
|
-
14: E,
|
|
141
|
-
16: D,
|
|
142
|
-
17: O,
|
|
143
|
-
18: 14,
|
|
144
|
-
19: 15,
|
|
145
|
-
20: k,
|
|
146
|
-
21: A
|
|
147
|
-
},
|
|
148
|
-
e(C, [2, 7], { 1: [2, 1] }),
|
|
149
|
-
e(C, [2, 3]),
|
|
150
|
-
{
|
|
151
|
-
9: 18,
|
|
152
|
-
11: w,
|
|
153
|
-
12: T,
|
|
154
|
-
14: E,
|
|
155
|
-
16: D,
|
|
156
|
-
17: O,
|
|
157
|
-
18: 14,
|
|
158
|
-
19: 15,
|
|
159
|
-
20: k,
|
|
160
|
-
21: A
|
|
161
|
-
},
|
|
162
|
-
e(C, [2, 5]),
|
|
163
|
-
e(C, [2, 6]),
|
|
164
|
-
e(C, [2, 8]),
|
|
165
|
-
{ 13: [1, 19] },
|
|
166
|
-
{ 15: [1, 20] },
|
|
167
|
-
e(C, [2, 11]),
|
|
168
|
-
e(C, [2, 12]),
|
|
169
|
-
e(C, [2, 13]),
|
|
170
|
-
e(C, [2, 14]),
|
|
171
|
-
e(C, [2, 15]),
|
|
172
|
-
e(C, [2, 16]),
|
|
173
|
-
e(C, [2, 4]),
|
|
174
|
-
e(C, [2, 9]),
|
|
175
|
-
e(C, [2, 10])
|
|
176
|
-
],
|
|
177
|
-
defaultActions: {},
|
|
178
|
-
parseError: /* @__PURE__ */ __name(function(e, S) {
|
|
179
|
-
if (S.recoverable) this.trace(e);
|
|
180
|
-
else {
|
|
181
|
-
var C = Error(e);
|
|
182
|
-
throw C.hash = S, C;
|
|
183
|
-
}
|
|
184
|
-
}, "parseError"),
|
|
185
|
-
parse: /* @__PURE__ */ __name(function(e) {
|
|
186
|
-
var C = this, w = [0], T = [], E = [null], D = [], O = this.table, k = "", A = 0, j = 0, M = 0, N = 2, P = 1, F = D.slice.call(arguments, 1), I = Object.create(this.lexer), L = { yy: {} };
|
|
187
|
-
for (var R in this.yy) Object.prototype.hasOwnProperty.call(this.yy, R) && (L.yy[R] = this.yy[R]);
|
|
188
|
-
I.setInput(e, L.yy), L.yy.lexer = I, L.yy.parser = this, I.yylloc === void 0 && (I.yylloc = {});
|
|
189
|
-
var z = I.yylloc;
|
|
190
|
-
D.push(z);
|
|
191
|
-
var B = I.options && I.options.ranges;
|
|
192
|
-
typeof L.yy.parseError == "function" ? this.parseError = L.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
193
|
-
function V(e) {
|
|
194
|
-
w.length -= 2 * e, E.length -= e, D.length -= e;
|
|
195
|
-
}
|
|
196
|
-
__name(V, "popStack");
|
|
197
|
-
function H() {
|
|
198
|
-
var e = T.pop() || I.lex() || P;
|
|
199
|
-
return typeof e != "number" && (e instanceof Array && (T = e, e = T.pop()), e = C.symbols_[e] || e), e;
|
|
200
|
-
}
|
|
201
|
-
__name(H, "lex");
|
|
202
|
-
for (var U, W, G, K, q, J = {}, Y, X, Z, Q;;) {
|
|
203
|
-
if (G = w[w.length - 1], this.defaultActions[G] ? K = this.defaultActions[G] : (U ??= H(), K = O[G] && O[G][U]), K === void 0 || !K.length || !K[0]) {
|
|
204
|
-
var $ = "";
|
|
205
|
-
for (Y in Q = [], O[G]) this.terminals_[Y] && Y > N && Q.push("'" + this.terminals_[Y] + "'");
|
|
206
|
-
$ = I.showPosition ? "Parse error on line " + (A + 1) + ":\n" + I.showPosition() + "\nExpecting " + Q.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : "Parse error on line " + (A + 1) + ": Unexpected " + (U == P ? "end of input" : "'" + (this.terminals_[U] || U) + "'"), this.parseError($, {
|
|
207
|
-
text: I.match,
|
|
208
|
-
token: this.terminals_[U] || U,
|
|
209
|
-
line: I.yylineno,
|
|
210
|
-
loc: z,
|
|
211
|
-
expected: Q
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
if (K[0] instanceof Array && K.length > 1) throw Error("Parse Error: multiple actions possible at state: " + G + ", token: " + U);
|
|
215
|
-
switch (K[0]) {
|
|
216
|
-
case 1:
|
|
217
|
-
w.push(U), E.push(I.yytext), D.push(I.yylloc), w.push(K[1]), U = null, W ? (U = W, W = null) : (j = I.yyleng, k = I.yytext, A = I.yylineno, z = I.yylloc, M > 0 && M--);
|
|
218
|
-
break;
|
|
219
|
-
case 2:
|
|
220
|
-
if (X = this.productions_[K[1]][1], J.$ = E[E.length - X], J._$ = {
|
|
221
|
-
first_line: D[D.length - (X || 1)].first_line,
|
|
222
|
-
last_line: D[D.length - 1].last_line,
|
|
223
|
-
first_column: D[D.length - (X || 1)].first_column,
|
|
224
|
-
last_column: D[D.length - 1].last_column
|
|
225
|
-
}, B && (J._$.range = [D[D.length - (X || 1)].range[0], D[D.length - 1].range[1]]), q = this.performAction.apply(J, [
|
|
226
|
-
k,
|
|
227
|
-
j,
|
|
228
|
-
A,
|
|
229
|
-
L.yy,
|
|
230
|
-
K[1],
|
|
231
|
-
E,
|
|
232
|
-
D
|
|
233
|
-
].concat(F)), q !== void 0) return q;
|
|
234
|
-
X && (w = w.slice(0, -1 * X * 2), E = E.slice(0, -1 * X), D = D.slice(0, -1 * X)), w.push(this.productions_[K[1]][0]), E.push(J.$), D.push(J._$), Z = O[w[w.length - 2]][w[w.length - 1]], w.push(Z);
|
|
235
|
-
break;
|
|
236
|
-
case 3: return !0;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
return !0;
|
|
240
|
-
}, "parse")
|
|
241
|
-
};
|
|
242
|
-
j.lexer = /* @__PURE__ */ (function() {
|
|
243
|
-
return {
|
|
244
|
-
EOF: 1,
|
|
245
|
-
parseError: /* @__PURE__ */ __name(function(e, S) {
|
|
246
|
-
if (this.yy.parser) this.yy.parser.parseError(e, S);
|
|
247
|
-
else throw Error(e);
|
|
248
|
-
}, "parseError"),
|
|
249
|
-
setInput: /* @__PURE__ */ __name(function(e, S) {
|
|
250
|
-
return this.yy = S || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
251
|
-
first_line: 1,
|
|
252
|
-
first_column: 0,
|
|
253
|
-
last_line: 1,
|
|
254
|
-
last_column: 0
|
|
255
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
256
|
-
}, "setInput"),
|
|
257
|
-
input: /* @__PURE__ */ __name(function() {
|
|
258
|
-
var e = this._input[0];
|
|
259
|
-
return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.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), e;
|
|
260
|
-
}, "input"),
|
|
261
|
-
unput: /* @__PURE__ */ __name(function(e) {
|
|
262
|
-
var S = e.length, C = e.split(/(?:\r\n?|\n)/g);
|
|
263
|
-
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - S), this.offset -= S;
|
|
264
|
-
var w = this.match.split(/(?:\r\n?|\n)/g);
|
|
265
|
-
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);
|
|
266
|
-
var T = this.yylloc.range;
|
|
267
|
-
return this.yylloc = {
|
|
268
|
-
first_line: this.yylloc.first_line,
|
|
269
|
-
last_line: this.yylineno + 1,
|
|
270
|
-
first_column: this.yylloc.first_column,
|
|
271
|
-
last_column: C ? (C.length === w.length ? this.yylloc.first_column : 0) + w[w.length - C.length].length - C[0].length : this.yylloc.first_column - S
|
|
272
|
-
}, this.options.ranges && (this.yylloc.range = [T[0], T[0] + this.yyleng - S]), this.yyleng = this.yytext.length, this;
|
|
273
|
-
}, "unput"),
|
|
274
|
-
more: /* @__PURE__ */ __name(function() {
|
|
275
|
-
return this._more = !0, this;
|
|
276
|
-
}, "more"),
|
|
277
|
-
reject: /* @__PURE__ */ __name(function() {
|
|
278
|
-
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
279
|
-
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).\n" + this.showPosition(), {
|
|
280
|
-
text: "",
|
|
281
|
-
token: null,
|
|
282
|
-
line: this.yylineno
|
|
283
|
-
});
|
|
284
|
-
return this;
|
|
285
|
-
}, "reject"),
|
|
286
|
-
less: /* @__PURE__ */ __name(function(e) {
|
|
287
|
-
this.unput(this.match.slice(e));
|
|
288
|
-
}, "less"),
|
|
289
|
-
pastInput: /* @__PURE__ */ __name(function() {
|
|
290
|
-
var e = this.matched.substr(0, this.matched.length - this.match.length);
|
|
291
|
-
return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
|
|
292
|
-
}, "pastInput"),
|
|
293
|
-
upcomingInput: /* @__PURE__ */ __name(function() {
|
|
294
|
-
var e = this.match;
|
|
295
|
-
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
296
|
-
}, "upcomingInput"),
|
|
297
|
-
showPosition: /* @__PURE__ */ __name(function() {
|
|
298
|
-
var e = this.pastInput(), S = Array(e.length + 1).join("-");
|
|
299
|
-
return e + this.upcomingInput() + "\n" + S + "^";
|
|
300
|
-
}, "showPosition"),
|
|
301
|
-
test_match: /* @__PURE__ */ __name(function(e, S) {
|
|
302
|
-
var C, w, T;
|
|
303
|
-
if (this.options.backtrack_lexer && (T = {
|
|
304
|
-
yylineno: this.yylineno,
|
|
305
|
-
yylloc: {
|
|
306
|
-
first_line: this.yylloc.first_line,
|
|
307
|
-
last_line: this.last_line,
|
|
308
|
-
first_column: this.yylloc.first_column,
|
|
309
|
-
last_column: this.yylloc.last_column
|
|
310
|
-
},
|
|
311
|
-
yytext: this.yytext,
|
|
312
|
-
match: this.match,
|
|
313
|
-
matches: this.matches,
|
|
314
|
-
matched: this.matched,
|
|
315
|
-
yyleng: this.yyleng,
|
|
316
|
-
offset: this.offset,
|
|
317
|
-
_more: this._more,
|
|
318
|
-
_input: this._input,
|
|
319
|
-
yy: this.yy,
|
|
320
|
-
conditionStack: this.conditionStack.slice(0),
|
|
321
|
-
done: this.done
|
|
322
|
-
}, this.options.ranges && (T.yylloc.range = this.yylloc.range.slice(0))), w = e[0].match(/(?:\r\n?|\n).*/g), w && (this.yylineno += w.length), this.yylloc = {
|
|
323
|
-
first_line: this.yylloc.last_line,
|
|
324
|
-
last_line: this.yylineno + 1,
|
|
325
|
-
first_column: this.yylloc.last_column,
|
|
326
|
-
last_column: w ? w[w.length - 1].length - w[w.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
|
|
327
|
-
}, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], C = this.performAction.call(this, this.yy, this, S, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), C) return C;
|
|
328
|
-
if (this._backtrack) {
|
|
329
|
-
for (var E in T) this[E] = T[E];
|
|
330
|
-
return !1;
|
|
331
|
-
}
|
|
332
|
-
return !1;
|
|
333
|
-
}, "test_match"),
|
|
334
|
-
next: /* @__PURE__ */ __name(function() {
|
|
335
|
-
if (this.done) return this.EOF;
|
|
336
|
-
this._input || (this.done = !0);
|
|
337
|
-
var e, S, C, w;
|
|
338
|
-
this._more || (this.yytext = "", this.match = "");
|
|
339
|
-
for (var T = this._currentRules(), E = 0; E < T.length; E++) if (C = this._input.match(this.rules[T[E]]), C && (!S || C[0].length > S[0].length)) {
|
|
340
|
-
if (S = C, w = E, this.options.backtrack_lexer) {
|
|
341
|
-
if (e = this.test_match(C, T[E]), e !== !1) return e;
|
|
342
|
-
if (this._backtrack) {
|
|
343
|
-
S = !1;
|
|
344
|
-
continue;
|
|
345
|
-
} else return !1;
|
|
346
|
-
} else if (!this.options.flex) break;
|
|
347
|
-
}
|
|
348
|
-
return S ? (e = this.test_match(S, T[w]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
349
|
-
text: "",
|
|
350
|
-
token: null,
|
|
351
|
-
line: this.yylineno
|
|
352
|
-
});
|
|
353
|
-
}, "next"),
|
|
354
|
-
lex: /* @__PURE__ */ __name(function() {
|
|
355
|
-
return this.next() || this.lex();
|
|
356
|
-
}, "lex"),
|
|
357
|
-
begin: /* @__PURE__ */ __name(function(e) {
|
|
358
|
-
this.conditionStack.push(e);
|
|
359
|
-
}, "begin"),
|
|
360
|
-
popState: /* @__PURE__ */ __name(function() {
|
|
361
|
-
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
362
|
-
}, "popState"),
|
|
363
|
-
_currentRules: /* @__PURE__ */ __name(function() {
|
|
364
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
365
|
-
}, "_currentRules"),
|
|
366
|
-
topState: /* @__PURE__ */ __name(function(e) {
|
|
367
|
-
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
368
|
-
}, "topState"),
|
|
369
|
-
pushState: /* @__PURE__ */ __name(function(e) {
|
|
370
|
-
this.begin(e);
|
|
371
|
-
}, "pushState"),
|
|
372
|
-
stateStackSize: /* @__PURE__ */ __name(function() {
|
|
373
|
-
return this.conditionStack.length;
|
|
374
|
-
}, "stateStackSize"),
|
|
375
|
-
options: { "case-insensitive": !0 },
|
|
376
|
-
performAction: /* @__PURE__ */ __name(function(e, S, C, w) {
|
|
377
|
-
switch (C) {
|
|
378
|
-
case 0: break;
|
|
379
|
-
case 1: break;
|
|
380
|
-
case 2: return 10;
|
|
381
|
-
case 3: break;
|
|
382
|
-
case 4: break;
|
|
383
|
-
case 5: return 4;
|
|
384
|
-
case 6: return 11;
|
|
385
|
-
case 7: return this.begin("acc_title"), 12;
|
|
386
|
-
case 8: return this.popState(), "acc_title_value";
|
|
387
|
-
case 9: return this.begin("acc_descr"), 14;
|
|
388
|
-
case 10: return this.popState(), "acc_descr_value";
|
|
389
|
-
case 11:
|
|
390
|
-
this.begin("acc_descr_multiline");
|
|
391
|
-
break;
|
|
392
|
-
case 12:
|
|
393
|
-
this.popState();
|
|
394
|
-
break;
|
|
395
|
-
case 13: return "acc_descr_multiline_value";
|
|
396
|
-
case 14: return 17;
|
|
397
|
-
case 15: return 21;
|
|
398
|
-
case 16: return 20;
|
|
399
|
-
case 17: return 6;
|
|
400
|
-
case 18: return "INVALID";
|
|
401
|
-
}
|
|
402
|
-
}, "anonymous"),
|
|
403
|
-
rules: [
|
|
404
|
-
/^(?:%(?!\{)[^\n]*)/i,
|
|
405
|
-
/^(?:[^\}]%%[^\n]*)/i,
|
|
406
|
-
/^(?:[\n]+)/i,
|
|
407
|
-
/^(?:\s+)/i,
|
|
408
|
-
/^(?:#[^\n]*)/i,
|
|
409
|
-
/^(?:timeline\b)/i,
|
|
410
|
-
/^(?:title\s[^\n]+)/i,
|
|
411
|
-
/^(?:accTitle\s*:\s*)/i,
|
|
412
|
-
/^(?:(?!\n||)*[^\n]*)/i,
|
|
413
|
-
/^(?:accDescr\s*:\s*)/i,
|
|
414
|
-
/^(?:(?!\n||)*[^\n]*)/i,
|
|
415
|
-
/^(?:accDescr\s*\{\s*)/i,
|
|
416
|
-
/^(?:[\}])/i,
|
|
417
|
-
/^(?:[^\}]*)/i,
|
|
418
|
-
/^(?:section\s[^:\n]+)/i,
|
|
419
|
-
/^(?::\s(?:[^:\n]|:(?!\s))+)/i,
|
|
420
|
-
/^(?:[^#:\n]+)/i,
|
|
421
|
-
/^(?:$)/i,
|
|
422
|
-
/^(?:.)/i
|
|
423
|
-
],
|
|
424
|
-
conditions: {
|
|
425
|
-
acc_descr_multiline: {
|
|
426
|
-
rules: [12, 13],
|
|
427
|
-
inclusive: !1
|
|
428
|
-
},
|
|
429
|
-
acc_descr: {
|
|
430
|
-
rules: [10],
|
|
431
|
-
inclusive: !1
|
|
432
|
-
},
|
|
433
|
-
acc_title: {
|
|
434
|
-
rules: [8],
|
|
435
|
-
inclusive: !1
|
|
436
|
-
},
|
|
437
|
-
INITIAL: {
|
|
438
|
-
rules: [
|
|
439
|
-
0,
|
|
440
|
-
1,
|
|
441
|
-
2,
|
|
442
|
-
3,
|
|
443
|
-
4,
|
|
444
|
-
5,
|
|
445
|
-
6,
|
|
446
|
-
7,
|
|
447
|
-
9,
|
|
448
|
-
11,
|
|
449
|
-
14,
|
|
450
|
-
15,
|
|
451
|
-
16,
|
|
452
|
-
17,
|
|
453
|
-
18
|
|
454
|
-
],
|
|
455
|
-
inclusive: !0
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
};
|
|
459
|
-
})();
|
|
460
|
-
function M() {
|
|
461
|
-
this.yy = {};
|
|
462
|
-
}
|
|
463
|
-
return __name(M, "Parser"), M.prototype = j, j.Parser = M, new M();
|
|
464
|
-
})();
|
|
465
|
-
parser.parser = parser;
|
|
466
|
-
var timeline_default = parser, timelineDb_exports = {};
|
|
467
|
-
__export(timelineDb_exports, {
|
|
468
|
-
addEvent: () => addEvent,
|
|
469
|
-
addSection: () => addSection,
|
|
470
|
-
addTask: () => addTask,
|
|
471
|
-
addTaskOrg: () => addTaskOrg,
|
|
472
|
-
clear: () => clear2,
|
|
473
|
-
default: () => timelineDb_default,
|
|
474
|
-
getCommonDb: () => getCommonDb,
|
|
475
|
-
getSections: () => getSections,
|
|
476
|
-
getTasks: () => getTasks
|
|
477
|
-
});
|
|
478
|
-
var currentSection = "", currentTaskId = 0, sections = [], tasks = [], rawTasks = [], getCommonDb = /* @__PURE__ */ __name(() => commonDb_exports, "getCommonDb"), clear2 = /* @__PURE__ */ __name(function() {
|
|
479
|
-
sections.length = 0, tasks.length = 0, currentSection = "", rawTasks.length = 0, clear();
|
|
480
|
-
}, "clear"), addSection = /* @__PURE__ */ __name(function(e) {
|
|
481
|
-
currentSection = e, sections.push(e);
|
|
482
|
-
}, "addSection"), getSections = /* @__PURE__ */ __name(function() {
|
|
483
|
-
return sections;
|
|
484
|
-
}, "getSections"), getTasks = /* @__PURE__ */ __name(function() {
|
|
485
|
-
let e = compileTasks(), S = 0;
|
|
486
|
-
for (; !e && S < 100;) e = compileTasks(), S++;
|
|
487
|
-
return tasks.push(...rawTasks), tasks;
|
|
488
|
-
}, "getTasks"), addTask = /* @__PURE__ */ __name(function(e, S, C) {
|
|
489
|
-
let w = {
|
|
490
|
-
id: currentTaskId++,
|
|
491
|
-
section: currentSection,
|
|
492
|
-
type: currentSection,
|
|
493
|
-
task: e,
|
|
494
|
-
score: S || 0,
|
|
495
|
-
events: C ? [C] : []
|
|
496
|
-
};
|
|
497
|
-
rawTasks.push(w);
|
|
498
|
-
}, "addTask"), addEvent = /* @__PURE__ */ __name(function(e) {
|
|
499
|
-
rawTasks.find((e) => e.id === currentTaskId - 1).events.push(e);
|
|
500
|
-
}, "addEvent"), addTaskOrg = /* @__PURE__ */ __name(function(e) {
|
|
501
|
-
let S = {
|
|
502
|
-
section: currentSection,
|
|
503
|
-
type: currentSection,
|
|
504
|
-
description: e,
|
|
505
|
-
task: e,
|
|
506
|
-
classes: []
|
|
507
|
-
};
|
|
508
|
-
tasks.push(S);
|
|
509
|
-
}, "addTaskOrg"), compileTasks = /* @__PURE__ */ __name(function() {
|
|
510
|
-
let e = /* @__PURE__ */ __name(function(e) {
|
|
511
|
-
return rawTasks[e].processed;
|
|
512
|
-
}, "compileTask"), C = !0;
|
|
513
|
-
for (let [S, w] of rawTasks.entries()) e(S), C &&= w.processed;
|
|
514
|
-
return C;
|
|
515
|
-
}, "compileTasks"), timelineDb_default = {
|
|
516
|
-
clear: clear2,
|
|
517
|
-
getCommonDb,
|
|
518
|
-
addSection,
|
|
519
|
-
getSections,
|
|
520
|
-
getTasks,
|
|
521
|
-
addTask,
|
|
522
|
-
addTaskOrg,
|
|
523
|
-
addEvent
|
|
524
|
-
}, MAX_SECTIONS = 12, drawRect = /* @__PURE__ */ __name(function(e, S) {
|
|
525
|
-
let C = e.append("rect");
|
|
526
|
-
return C.attr("x", S.x), C.attr("y", S.y), C.attr("fill", S.fill), C.attr("stroke", S.stroke), C.attr("width", S.width), C.attr("height", S.height), C.attr("rx", S.rx), C.attr("ry", S.ry), S.class !== void 0 && C.attr("class", S.class), C;
|
|
527
|
-
}, "drawRect"), drawFace = /* @__PURE__ */ __name(function(e, C) {
|
|
528
|
-
let w = e.append("circle").attr("cx", C.cx).attr("cy", C.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), T = e.append("g");
|
|
529
|
-
T.append("circle").attr("cx", C.cx - 15 / 3).attr("cy", C.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), T.append("circle").attr("cx", C.cx + 15 / 3).attr("cy", C.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
|
|
530
|
-
function E(e) {
|
|
531
|
-
let S = arc_default().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(15 / 2).outerRadius(15 / 2.2);
|
|
532
|
-
e.append("path").attr("class", "mouth").attr("d", S).attr("transform", "translate(" + C.cx + "," + (C.cy + 2) + ")");
|
|
533
|
-
}
|
|
534
|
-
__name(E, "smile");
|
|
535
|
-
function D(e) {
|
|
536
|
-
let S = arc_default().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(15 / 2).outerRadius(15 / 2.2);
|
|
537
|
-
e.append("path").attr("class", "mouth").attr("d", S).attr("transform", "translate(" + C.cx + "," + (C.cy + 7) + ")");
|
|
538
|
-
}
|
|
539
|
-
__name(D, "sad");
|
|
540
|
-
function O(e) {
|
|
541
|
-
e.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", C.cx - 5).attr("y1", C.cy + 7).attr("x2", C.cx + 5).attr("y2", C.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
|
|
542
|
-
}
|
|
543
|
-
return __name(O, "ambivalent"), C.score > 3 ? E(T) : C.score < 3 ? D(T) : O(T), w;
|
|
544
|
-
}, "drawFace"), drawCircle = /* @__PURE__ */ __name(function(e, S) {
|
|
545
|
-
let C = e.append("circle");
|
|
546
|
-
return C.attr("cx", S.cx), C.attr("cy", S.cy), C.attr("class", "actor-" + S.pos), C.attr("fill", S.fill), C.attr("stroke", S.stroke), C.attr("r", S.r), C.class !== void 0 && C.attr("class", C.class), S.title !== void 0 && C.append("title").text(S.title), C;
|
|
547
|
-
}, "drawCircle"), drawText = /* @__PURE__ */ __name(function(e, S) {
|
|
548
|
-
let C = S.text.replace(/<br\s*\/?>/gi, " "), w = e.append("text");
|
|
549
|
-
w.attr("x", S.x), w.attr("y", S.y), w.attr("class", "legend"), w.style("text-anchor", S.anchor), S.class !== void 0 && w.attr("class", S.class);
|
|
550
|
-
let T = w.append("tspan");
|
|
551
|
-
return T.attr("x", S.x + S.textMargin * 2), T.text(C), w;
|
|
552
|
-
}, "drawText"), drawLabel = /* @__PURE__ */ __name(function(e, C) {
|
|
553
|
-
function w(e, S, C, w, T) {
|
|
554
|
-
return e + "," + S + " " + (e + C) + "," + S + " " + (e + C) + "," + (S + w - T) + " " + (e + C - T * 1.2) + "," + (S + w) + " " + e + "," + (S + w);
|
|
555
|
-
}
|
|
556
|
-
__name(w, "genPoints");
|
|
557
|
-
let T = e.append("polygon");
|
|
558
|
-
T.attr("points", w(C.x, C.y, 50, 20, 7)), T.attr("class", "labelBox"), C.y += C.labelMargin, C.x += .5 * C.labelMargin, drawText(e, C);
|
|
559
|
-
}, "drawLabel"), drawSection = /* @__PURE__ */ __name(function(e, S, C) {
|
|
560
|
-
let w = e.append("g"), T = getNoteRect();
|
|
561
|
-
T.x = S.x, T.y = S.y, T.fill = S.fill, T.width = C.width, T.height = C.height, T.class = "journey-section section-type-" + S.num, T.rx = 3, T.ry = 3, drawRect(w, T), _drawTextCandidateFunc(C)(S.text, w, T.x, T.y, T.width, T.height, { class: "journey-section section-type-" + S.num }, C, S.colour);
|
|
562
|
-
}, "drawSection"), taskCount = -1, drawTask = /* @__PURE__ */ __name(function(e, S, C) {
|
|
563
|
-
let w = S.x + C.width / 2, T = e.append("g");
|
|
564
|
-
taskCount++, T.append("line").attr("id", "task" + taskCount).attr("x1", w).attr("y1", S.y).attr("x2", w).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), drawFace(T, {
|
|
565
|
-
cx: w,
|
|
566
|
-
cy: 300 + (5 - S.score) * 30,
|
|
567
|
-
score: S.score
|
|
568
|
-
});
|
|
569
|
-
let E = getNoteRect();
|
|
570
|
-
E.x = S.x, E.y = S.y, E.fill = S.fill, E.width = C.width, E.height = C.height, E.class = "task task-type-" + S.num, E.rx = 3, E.ry = 3, drawRect(T, E), _drawTextCandidateFunc(C)(S.task, T, E.x, E.y, E.width, E.height, { class: "task" }, C, S.colour);
|
|
571
|
-
}, "drawTask"), drawBackgroundRect = /* @__PURE__ */ __name(function(e, S) {
|
|
572
|
-
drawRect(e, {
|
|
573
|
-
x: S.startx,
|
|
574
|
-
y: S.starty,
|
|
575
|
-
width: S.stopx - S.startx,
|
|
576
|
-
height: S.stopy - S.starty,
|
|
577
|
-
fill: S.fill,
|
|
578
|
-
class: "rect"
|
|
579
|
-
}).lower();
|
|
580
|
-
}, "drawBackgroundRect"), getTextObj = /* @__PURE__ */ __name(function() {
|
|
581
|
-
return {
|
|
582
|
-
x: 0,
|
|
583
|
-
y: 0,
|
|
584
|
-
fill: void 0,
|
|
585
|
-
"text-anchor": "start",
|
|
586
|
-
width: 100,
|
|
587
|
-
height: 100,
|
|
588
|
-
textMargin: 0,
|
|
589
|
-
rx: 0,
|
|
590
|
-
ry: 0
|
|
591
|
-
};
|
|
592
|
-
}, "getTextObj"), getNoteRect = /* @__PURE__ */ __name(function() {
|
|
593
|
-
return {
|
|
594
|
-
x: 0,
|
|
595
|
-
y: 0,
|
|
596
|
-
width: 100,
|
|
597
|
-
anchor: "start",
|
|
598
|
-
height: 100,
|
|
599
|
-
rx: 0,
|
|
600
|
-
ry: 0
|
|
601
|
-
};
|
|
602
|
-
}, "getNoteRect"), _drawTextCandidateFunc = /* @__PURE__ */ (function() {
|
|
603
|
-
function e(e, S, C, w, E, D, O, k) {
|
|
604
|
-
T(S.append("text").attr("x", C + E / 2).attr("y", w + D / 2 + 5).style("font-color", k).style("text-anchor", "middle").text(e), O);
|
|
605
|
-
}
|
|
606
|
-
__name(e, "byText");
|
|
607
|
-
function C(e, S, C, w, E, D, O, k, A) {
|
|
608
|
-
let { taskFontSize: j, taskFontFamily: M } = k, N = e.split(/<br\s*\/?>/gi);
|
|
609
|
-
for (let e = 0; e < N.length; e++) {
|
|
610
|
-
let k = e * j - j * (N.length - 1) / 2, P = S.append("text").attr("x", C + E / 2).attr("y", w).attr("fill", A).style("text-anchor", "middle").style("font-size", j).style("font-family", M);
|
|
611
|
-
P.append("tspan").attr("x", C + E / 2).attr("dy", k).text(N[e]), P.attr("y", w + D / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), T(P, O);
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
__name(C, "byTspan");
|
|
615
|
-
function w(e, S, w, E, D, O, k, A) {
|
|
616
|
-
let j = S.append("switch"), M = j.append("foreignObject").attr("x", w).attr("y", E).attr("width", D).attr("height", O).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
617
|
-
M.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), C(e, j, w, E, D, O, k, A), T(M, k);
|
|
618
|
-
}
|
|
619
|
-
__name(w, "byFo");
|
|
620
|
-
function T(e, S) {
|
|
621
|
-
for (let C in S) C in S && e.attr(C, S[C]);
|
|
622
|
-
}
|
|
623
|
-
return __name(T, "_setTextAttrs"), function(S) {
|
|
624
|
-
return S.textPlacement === "fo" ? w : S.textPlacement === "old" ? e : C;
|
|
625
|
-
};
|
|
626
|
-
})(), initGraphics = /* @__PURE__ */ __name(function(e) {
|
|
627
|
-
e.append("defs").append("marker").attr("id", "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");
|
|
628
|
-
}, "initGraphics");
|
|
629
|
-
function wrap(e, S) {
|
|
630
|
-
e.each(function() {
|
|
631
|
-
var e = select_default(this), C = e.text().split(/(\s+|<br>)/).reverse(), w, T = [], E = 1.1, D = e.attr("y"), O = parseFloat(e.attr("dy")), k = e.text(null).append("tspan").attr("x", 0).attr("y", D).attr("dy", O + "em");
|
|
632
|
-
for (let O = 0; O < C.length; O++) w = C[C.length - 1 - O], T.push(w), k.text(T.join(" ").trim()), (k.node().getComputedTextLength() > S || w === "<br>") && (T.pop(), k.text(T.join(" ").trim()), T = w === "<br>" ? [""] : [w], k = e.append("tspan").attr("x", 0).attr("y", D).attr("dy", E + "em").text(w));
|
|
633
|
-
});
|
|
634
|
-
}
|
|
635
|
-
__name(wrap, "wrap");
|
|
636
|
-
var drawNode = /* @__PURE__ */ __name(function(e, S, C, w) {
|
|
637
|
-
let T = C % MAX_SECTIONS - 1, E = e.append("g");
|
|
638
|
-
S.section = T, E.attr("class", (S.class ? S.class + " " : "") + "timeline-node " + ("section-" + T));
|
|
639
|
-
let D = E.append("g"), O = E.append("g"), k = O.append("text").text(S.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(wrap, S.width).node().getBBox(), A = w.fontSize?.replace ? w.fontSize.replace("px", "") : w.fontSize;
|
|
640
|
-
return S.height = k.height + A * 1.1 * .5 + S.padding, S.height = Math.max(S.height, S.maxHeight), S.width += 2 * S.padding, O.attr("transform", "translate(" + S.width / 2 + ", " + S.padding / 2 + ")"), defaultBkg(D, S, T, w), S;
|
|
641
|
-
}, "drawNode"), getVirtualNodeHeight = /* @__PURE__ */ __name(function(e, S, C) {
|
|
642
|
-
let w = e.append("g"), T = w.append("text").text(S.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(wrap, S.width).node().getBBox(), E = C.fontSize?.replace ? C.fontSize.replace("px", "") : C.fontSize;
|
|
643
|
-
return w.remove(), T.height + E * 1.1 * .5 + S.padding;
|
|
644
|
-
}, "getVirtualNodeHeight"), defaultBkg = /* @__PURE__ */ __name(function(e, S, C) {
|
|
645
|
-
e.append("path").attr("id", "node-" + S.id).attr("class", "node-bkg node-" + S.type).attr("d", `M0 ${S.height - 5} v${-S.height + 10} q0,-5 5,-5 h${S.width - 10} q5,0 5,5 v${S.height - 5} H0 Z`), e.append("line").attr("class", "node-line-" + C).attr("x1", 0).attr("y1", S.height).attr("x2", S.width).attr("y2", S.height);
|
|
646
|
-
}, "defaultBkg"), svgDraw_default = {
|
|
647
|
-
drawRect,
|
|
648
|
-
drawCircle,
|
|
649
|
-
drawSection,
|
|
650
|
-
drawText,
|
|
651
|
-
drawLabel,
|
|
652
|
-
drawTask,
|
|
653
|
-
drawBackgroundRect,
|
|
654
|
-
getTextObj,
|
|
655
|
-
getNoteRect,
|
|
656
|
-
initGraphics,
|
|
657
|
-
drawNode,
|
|
658
|
-
getVirtualNodeHeight
|
|
659
|
-
}, draw = /* @__PURE__ */ __name(function(e, S, w, T) {
|
|
660
|
-
let E = getConfig2(), D = E.timeline?.leftMargin ?? 50;
|
|
661
|
-
log.debug("timeline", T.db);
|
|
662
|
-
let O = E.securityLevel, M;
|
|
663
|
-
O === "sandbox" && (M = select_default("#i" + S));
|
|
664
|
-
let N = select_default(O === "sandbox" ? M.nodes()[0].contentDocument.body : "body").select("#" + S);
|
|
665
|
-
N.append("g");
|
|
666
|
-
let P = T.db.getTasks(), F = T.db.getCommonDb().getDiagramTitle();
|
|
667
|
-
log.debug("task", P), svgDraw_default.initGraphics(N);
|
|
668
|
-
let I = T.db.getSections();
|
|
669
|
-
log.debug("sections", I);
|
|
670
|
-
let L = 0, R = 0, z = 0, B = 0, V = 50 + D, H = 50;
|
|
671
|
-
B = 50;
|
|
672
|
-
let U = 0, W = !0;
|
|
673
|
-
I.forEach(function(e) {
|
|
674
|
-
let S = {
|
|
675
|
-
number: U,
|
|
676
|
-
descr: e,
|
|
677
|
-
section: U,
|
|
678
|
-
width: 150,
|
|
679
|
-
padding: 20,
|
|
680
|
-
maxHeight: L
|
|
681
|
-
}, w = svgDraw_default.getVirtualNodeHeight(N, S, E);
|
|
682
|
-
log.debug("sectionHeight before draw", w), L = Math.max(L, w + 20);
|
|
683
|
-
});
|
|
684
|
-
let G = 0, K = 0;
|
|
685
|
-
log.debug("tasks.length", P.length);
|
|
686
|
-
for (let [e, S] of P.entries()) {
|
|
687
|
-
let w = {
|
|
688
|
-
number: e,
|
|
689
|
-
descr: S,
|
|
690
|
-
section: S.section,
|
|
691
|
-
width: 150,
|
|
692
|
-
padding: 20,
|
|
693
|
-
maxHeight: R
|
|
694
|
-
}, T = svgDraw_default.getVirtualNodeHeight(N, w, E);
|
|
695
|
-
log.debug("taskHeight before draw", T), R = Math.max(R, T + 20), G = Math.max(G, S.events.length);
|
|
696
|
-
let D = 0;
|
|
697
|
-
for (let e of S.events) {
|
|
698
|
-
let C = {
|
|
699
|
-
descr: e,
|
|
700
|
-
section: S.section,
|
|
701
|
-
number: S.section,
|
|
702
|
-
width: 150,
|
|
703
|
-
padding: 20,
|
|
704
|
-
maxHeight: 50
|
|
705
|
-
};
|
|
706
|
-
D += svgDraw_default.getVirtualNodeHeight(N, C, E);
|
|
707
|
-
}
|
|
708
|
-
S.events.length > 0 && (D += (S.events.length - 1) * 10), K = Math.max(K, D);
|
|
709
|
-
}
|
|
710
|
-
log.debug("maxSectionHeight before draw", L), log.debug("maxTaskHeight before draw", R), I && I.length > 0 ? I.forEach((e) => {
|
|
711
|
-
let S = P.filter((S) => S.section === e), w = {
|
|
712
|
-
number: U,
|
|
713
|
-
descr: e,
|
|
714
|
-
section: U,
|
|
715
|
-
width: 200 * Math.max(S.length, 1) - 50,
|
|
716
|
-
padding: 20,
|
|
717
|
-
maxHeight: L
|
|
718
|
-
};
|
|
719
|
-
log.debug("sectionNode", w);
|
|
720
|
-
let T = N.append("g"), D = svgDraw_default.drawNode(T, w, U, E);
|
|
721
|
-
log.debug("sectionNode output", D), T.attr("transform", `translate(${V}, ${B})`), H += L + 50, S.length > 0 && drawTasks(N, S, U, V, H, R, E, G, K, L, !1), V += 200 * Math.max(S.length, 1), H = B, U++;
|
|
722
|
-
}) : (W = !1, drawTasks(N, P, U, V, H, R, E, G, K, L, !0));
|
|
723
|
-
let q = N.node().getBBox();
|
|
724
|
-
log.debug("bounds", q), F && N.append("text").text(F).attr("x", q.width / 2 - D).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), z = W ? L + R + 150 : R + 100, N.append("g").attr("class", "lineWrapper").append("line").attr("x1", D).attr("y1", z).attr("x2", q.width + 3 * D).attr("y2", z).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), setupGraphViewbox(void 0, N, E.timeline?.padding ?? 50, E.timeline?.useMaxWidth ?? !1);
|
|
725
|
-
}, "draw"), drawTasks = /* @__PURE__ */ __name(function(e, S, w, T, E, D, O, k, A, j, M) {
|
|
726
|
-
for (let k of S) {
|
|
727
|
-
let S = {
|
|
728
|
-
descr: k.task,
|
|
729
|
-
section: w,
|
|
730
|
-
number: w,
|
|
731
|
-
width: 150,
|
|
732
|
-
padding: 20,
|
|
733
|
-
maxHeight: D
|
|
734
|
-
};
|
|
735
|
-
log.debug("taskNode", S);
|
|
736
|
-
let j = e.append("g").attr("class", "taskWrapper"), N = svgDraw_default.drawNode(j, S, w, O).height;
|
|
737
|
-
if (log.debug("taskHeight after draw", N), j.attr("transform", `translate(${T}, ${E})`), D = Math.max(D, N), k.events) {
|
|
738
|
-
let S = e.append("g").attr("class", "lineWrapper"), C = D;
|
|
739
|
-
E += 100, C += drawEvents(e, k.events, w, T, E, O), E -= 100, S.append("line").attr("x1", T + 190 / 2).attr("y1", E + D).attr("x2", T + 190 / 2).attr("y2", E + D + 100 + A + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
|
|
740
|
-
}
|
|
741
|
-
T += 200, M && !O.timeline?.disableMulticolor && w++;
|
|
742
|
-
}
|
|
743
|
-
E -= 10;
|
|
744
|
-
}, "drawTasks"), drawEvents = /* @__PURE__ */ __name(function(e, S, w, T, E, D) {
|
|
745
|
-
let O = 0, k = E;
|
|
746
|
-
E += 100;
|
|
747
|
-
for (let k of S) {
|
|
748
|
-
let S = {
|
|
749
|
-
descr: k,
|
|
750
|
-
section: w,
|
|
751
|
-
number: w,
|
|
752
|
-
width: 150,
|
|
753
|
-
padding: 20,
|
|
754
|
-
maxHeight: 50
|
|
755
|
-
};
|
|
756
|
-
log.debug("eventNode", S);
|
|
757
|
-
let A = e.append("g").attr("class", "eventWrapper"), j = svgDraw_default.drawNode(A, S, w, D).height;
|
|
758
|
-
O += j, A.attr("transform", `translate(${T}, ${E})`), E = E + 10 + j;
|
|
759
|
-
}
|
|
760
|
-
return E = k, O;
|
|
761
|
-
}, "drawEvents"), timelineRenderer_default = {
|
|
762
|
-
setConf: /* @__PURE__ */ __name(() => {}, "setConf"),
|
|
763
|
-
draw
|
|
764
|
-
}, genSections = /* @__PURE__ */ __name((e) => {
|
|
765
|
-
let S = "";
|
|
766
|
-
for (let S = 0; S < e.THEME_COLOR_LIMIT; S++) e["lineColor" + S] = e["lineColor" + S] || e["cScaleInv" + S], is_dark_default(e["lineColor" + S]) ? e["lineColor" + S] = lighten_default(e["lineColor" + S], 20) : e["lineColor" + S] = darken_default(e["lineColor" + S], 20);
|
|
767
|
-
for (let C = 0; C < e.THEME_COLOR_LIMIT; C++) {
|
|
768
|
-
let w = "" + (17 - 3 * C);
|
|
769
|
-
S += `
|
|
770
|
-
.section-${C - 1} rect, .section-${C - 1} path, .section-${C - 1} circle, .section-${C - 1} path {
|
|
771
|
-
fill: ${e["cScale" + C]};
|
|
772
|
-
}
|
|
773
|
-
.section-${C - 1} text {
|
|
774
|
-
fill: ${e["cScaleLabel" + C]};
|
|
775
|
-
}
|
|
776
|
-
.node-icon-${C - 1} {
|
|
777
|
-
font-size: 40px;
|
|
778
|
-
color: ${e["cScaleLabel" + C]};
|
|
779
|
-
}
|
|
780
|
-
.section-edge-${C - 1}{
|
|
781
|
-
stroke: ${e["cScale" + C]};
|
|
782
|
-
}
|
|
783
|
-
.edge-depth-${C - 1}{
|
|
784
|
-
stroke-width: ${w};
|
|
785
|
-
}
|
|
786
|
-
.section-${C - 1} line {
|
|
787
|
-
stroke: ${e["cScaleInv" + C]} ;
|
|
788
|
-
stroke-width: 3;
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
.lineWrapper line{
|
|
792
|
-
stroke: ${e["cScaleLabel" + C]} ;
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
.disabled, .disabled circle, .disabled text {
|
|
796
|
-
fill: lightgray;
|
|
797
|
-
}
|
|
798
|
-
.disabled text {
|
|
799
|
-
fill: #efefef;
|
|
800
|
-
}
|
|
801
|
-
`;
|
|
802
|
-
}
|
|
803
|
-
return S;
|
|
804
|
-
}, "genSections"), diagram = {
|
|
805
|
-
db: timelineDb_exports,
|
|
806
|
-
renderer: timelineRenderer_default,
|
|
807
|
-
parser: timeline_default,
|
|
808
|
-
styles: /* @__PURE__ */ __name((e) => `
|
|
809
|
-
.edge {
|
|
810
|
-
stroke-width: 3;
|
|
811
|
-
}
|
|
812
|
-
${genSections(e)}
|
|
813
|
-
.section-root rect, .section-root path, .section-root circle {
|
|
814
|
-
fill: ${e.git0};
|
|
815
|
-
}
|
|
816
|
-
.section-root text {
|
|
817
|
-
fill: ${e.gitBranchLabel0};
|
|
818
|
-
}
|
|
819
|
-
.icon-container {
|
|
820
|
-
height:100%;
|
|
821
|
-
display: flex;
|
|
822
|
-
justify-content: center;
|
|
823
|
-
align-items: center;
|
|
824
|
-
}
|
|
825
|
-
.edge {
|
|
826
|
-
fill: none;
|
|
827
|
-
}
|
|
828
|
-
.eventWrapper {
|
|
829
|
-
filter: brightness(120%);
|
|
830
|
-
}
|
|
831
|
-
`, "getStyles")
|
|
832
|
-
};
|
|
833
|
-
export { diagram };
|