@sentropic/h2a 0.98.7 → 0.98.8
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/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +56 -15
- package/dist/cli.js.map +1 -1
- package/dist/hosts/native-artifacts.d.ts +2 -0
- package/dist/hosts/native-artifacts.d.ts.map +1 -1
- package/dist/hosts/native-artifacts.js +19 -5
- package/dist/hosts/native-artifacts.js.map +1 -1
- package/dist/hosts/native-convergence.d.ts +1 -0
- package/dist/hosts/native-convergence.d.ts.map +1 -1
- package/dist/hosts/native-convergence.js +1 -1
- package/dist/hosts/native-convergence.js.map +1 -1
- package/dist/hosts/native-skills.d.ts +6 -0
- package/dist/hosts/native-skills.d.ts.map +1 -1
- package/dist/hosts/native-skills.js +9 -4
- package/dist/hosts/native-skills.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/runtime/identity/live.d.ts.map +1 -1
- package/dist/runtime/identity/live.js +27 -4
- package/dist/runtime/identity/live.js.map +1 -1
- package/dist/runtime/identity/worker.js +21 -2
- package/dist/runtime/identity/worker.js.map +1 -1
- package/dist/runtime/local-files/identity-fence.d.ts +1 -0
- package/dist/runtime/local-files/identity-fence.d.ts.map +1 -1
- package/dist/runtime/local-files/identity-fence.js +14 -3
- package/dist/runtime/local-files/identity-fence.js.map +1 -1
- package/dist/runtime/local-files/locks.d.ts +16 -9
- package/dist/runtime/local-files/locks.d.ts.map +1 -1
- package/dist/runtime/local-files/locks.js +238 -42
- package/dist/runtime/local-files/locks.js.map +1 -1
- package/dist/runtime/local-files/succession-lock.d.ts.map +1 -1
- package/dist/runtime/local-files/succession-lock.js +7 -6
- package/dist/runtime/local-files/succession-lock.js.map +1 -1
- package/dist/runtime/mcp/identity-state.d.ts +2 -0
- package/dist/runtime/mcp/identity-state.d.ts.map +1 -1
- package/dist/runtime/mcp/identity-state.js +39 -1
- package/dist/runtime/mcp/identity-state.js.map +1 -1
- package/dist/runtime/mcp/index.d.ts +11 -1
- package/dist/runtime/mcp/index.d.ts.map +1 -1
- package/dist/runtime/mcp/index.js +10 -0
- package/dist/runtime/mcp/index.js.map +1 -1
- package/dist/runtime/mcp/server.d.ts +23 -1
- package/dist/runtime/mcp/server.d.ts.map +1 -1
- package/dist/runtime/mcp/server.js +18 -2
- package/dist/runtime/mcp/server.js.map +1 -1
- package/dist/runtime/mcp/stdio.d.ts.map +1 -1
- package/dist/runtime/mcp/stdio.js +60 -4
- package/dist/runtime/mcp/stdio.js.map +1 -1
- package/dist/runtime/mcp/tools.d.ts +22 -0
- package/dist/runtime/mcp/tools.d.ts.map +1 -1
- package/dist/runtime/mcp/tools.js.map +1 -1
- package/dist/runtime/mcp/ui-render/a2ui-common-types.d.ts +32 -0
- package/dist/runtime/mcp/ui-render/a2ui-common-types.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/a2ui-common-types.js +374 -0
- package/dist/runtime/mcp/ui-render/a2ui-common-types.js.map +1 -0
- package/dist/runtime/mcp/ui-render/assets.d.ts +104 -0
- package/dist/runtime/mcp/ui-render/assets.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/assets.js +217 -0
- package/dist/runtime/mcp/ui-render/assets.js.map +1 -0
- package/dist/runtime/mcp/ui-render/bpmn-port.d.ts +3 -0
- package/dist/runtime/mcp/ui-render/bpmn-port.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/bpmn-port.js +621 -0
- package/dist/runtime/mcp/ui-render/bpmn-port.js.map +1 -0
- package/dist/runtime/mcp/ui-render/fallback.d.ts +35 -0
- package/dist/runtime/mcp/ui-render/fallback.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/fallback.js +245 -0
- package/dist/runtime/mcp/ui-render/fallback.js.map +1 -0
- package/dist/runtime/mcp/ui-render/index.d.ts +51 -0
- package/dist/runtime/mcp/ui-render/index.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/index.js +38 -0
- package/dist/runtime/mcp/ui-render/index.js.map +1 -0
- package/dist/runtime/mcp/ui-render/inline.d.ts +3 -0
- package/dist/runtime/mcp/ui-render/inline.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/inline.js +21 -0
- package/dist/runtime/mcp/ui-render/inline.js.map +1 -0
- package/dist/runtime/mcp/ui-render/negotiation.d.ts +23 -0
- package/dist/runtime/mcp/ui-render/negotiation.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/negotiation.js +45 -0
- package/dist/runtime/mcp/ui-render/negotiation.js.map +1 -0
- package/dist/runtime/mcp/ui-render/registry-entry.d.ts +74 -0
- package/dist/runtime/mcp/ui-render/registry-entry.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/registry-entry.js +207 -0
- package/dist/runtime/mcp/ui-render/registry-entry.js.map +1 -0
- package/dist/runtime/mcp/ui-render/resources.d.ts +35 -0
- package/dist/runtime/mcp/ui-render/resources.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/resources.js +342 -0
- package/dist/runtime/mcp/ui-render/resources.js.map +1 -0
- package/dist/runtime/mcp/ui-render/tools.d.ts +42 -0
- package/dist/runtime/mcp/ui-render/tools.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/tools.js +367 -0
- package/dist/runtime/mcp/ui-render/tools.js.map +1 -0
- package/dist/runtime/mcp/ui-render/types.d.ts +96 -0
- package/dist/runtime/mcp/ui-render/types.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/types.js +22 -0
- package/dist/runtime/mcp/ui-render/types.js.map +1 -0
- package/dist/runtime/mcp/ui-render/validation.d.ts +151 -0
- package/dist/runtime/mcp/ui-render/validation.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/validation.js +460 -0
- package/dist/runtime/mcp/ui-render/validation.js.map +1 -0
- package/dist/runtime/mcp/ui-render/watermark.d.ts +38 -0
- package/dist/runtime/mcp/ui-render/watermark.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/watermark.js +52 -0
- package/dist/runtime/mcp/ui-render/watermark.js.map +1 -0
- package/dist/runtime/mcp-central.d.ts.map +1 -1
- package/dist/runtime/mcp-central.js +55 -6
- package/dist/runtime/mcp-central.js.map +1 -1
- package/fixtures/ui-render-ac-l3/offline-measurement.v1.json +105 -0
- package/package.json +7 -4
- package/vendor/design-system-elements/catalog.json +1234 -0
- package/vendor/design-system-elements/dist/browser/assets/bpmn-CZlEAdL6.ttf +0 -0
- package/vendor/design-system-elements/dist/browser/assets/bpmn-DaGVGZ7K.woff +0 -0
- package/vendor/design-system-elements/dist/browser/assets/bpmn-DaJ2be00.woff2 +0 -0
- package/vendor/design-system-elements/dist/browser/chunks/BpmnRenderUtil-WMCgqGDs.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/BpmnUpdater-C-UNbzXl.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/LabelUtil-7QpE43Ed.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/LayoutUtil-hAMJmJFU.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/ModelUtil-CMh7LuN4.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/Modeler-BfAmwsmK.js +389 -0
- package/vendor/design-system-elements/dist/browser/chunks/Viewer-eYLzc3fD.js +4 -0
- package/vendor/design-system-elements/dist/browser/chunks/bpmn-canvas-DeAWdJFy.js +2207 -0
- package/vendor/design-system-elements/dist/browser/chunks/colored-CSIQaGsQ.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/dist-Co2MgHWm.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/dist-O6_2ByYB.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/dist-kvAYI1vo.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/entropic-CM5BHERN.js +2173 -0
- package/vendor/design-system-elements/dist/browser/chunks/focus-renderer-C4z8aS9F.js +8 -0
- package/vendor/design-system-elements/dist/browser/chunks/forge-B8hrW4lA.js +2173 -0
- package/vendor/design-system-elements/dist/browser/chunks/layout-q0TR9-aY.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/legend-CXdfCBh6.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/textMetrics-BrMS6-sA.js +2 -0
- package/vendor/design-system-elements/dist/browser/chunks/tokens-DFPpCvf1.js +1 -0
- package/vendor/design-system-elements/dist/browser/elements.js +2221 -0
- package/vendor/design-system-elements/dist/browser/sri.json +166 -0
- package/vendor/design-system-elements/envelope.json +43 -0
- package/vendor/design-system-elements/manifest.json +101 -0
- package/vendor/design-system-elements/schemas/BarChart.v1.json +556 -0
- package/vendor/design-system-elements/schemas/BpmnCanvas.v1.json +139 -0
- package/vendor/design-system-elements/schemas/DecisionDossier.v1.json +635 -0
- package/vendor/ui-render-inline/BarChart.js +1 -0
- package/vendor/ui-render-inline/BpmnCanvas.js +1 -0
- package/vendor/ui-render-inline/DecisionDossier.js +1 -0
- package/vendor/ui-render-inline/manifest.json +80 -0
- package/vendor/ui-render-inline/render.js +1 -0
|
@@ -0,0 +1,621 @@
|
|
|
1
|
+
/** Generated by scripts/build-ui-render-inline.mjs from DS cc29be88: createBpmnCanvasPort(hydrateF1), bpmn-moddle; no DOM. */
|
|
2
|
+
var ut = (e, t) => () => (e && (t = e(e = 0)), t);
|
|
3
|
+
function Fe(e) { return e === void 0; }
|
|
4
|
+
function Ft(e) { return e !== void 0; }
|
|
5
|
+
function mt(e) { return e == null; }
|
|
6
|
+
function Ue(e) { return Pe.call(e) === "[object Array]"; }
|
|
7
|
+
function ht(e) { return Pe.call(e) === "[object Object]"; }
|
|
8
|
+
function Ut(e) { let t = Pe.call(e); return t === "[object Function]" || t === "[object AsyncFunction]" || t === "[object GeneratorFunction]" || t === "[object AsyncGeneratorFunction]" || t === "[object Proxy]"; }
|
|
9
|
+
function se(e) { return Pe.call(e) === "[object String]"; }
|
|
10
|
+
function qe(e, t) { return !mt(e) && $t.call(e, t); }
|
|
11
|
+
function Ve(e, t) { let n = Ge(t), r; return A(e, function (i, o) { if (n(i, o))
|
|
12
|
+
return r = i, !1; }), r; }
|
|
13
|
+
function ft(e, t) { let n = Ge(t), r = Ue(e) ? -1 : void 0; return A(e, function (i, o) { if (n(i, o))
|
|
14
|
+
return r = o, !1; }), r; }
|
|
15
|
+
function Ne(e, t) { let n = Ge(t), r = []; return A(e, function (i, o) { n(i, o) && r.push(i); }), r; }
|
|
16
|
+
function A(e, t) { let n, r; if (Fe(e))
|
|
17
|
+
return; let i = Ue(e) ? Vt : qt; for (let o in e)
|
|
18
|
+
if (qe(e, o) && (n = e[o], r = t(n, i(o)), r === !1))
|
|
19
|
+
return n; }
|
|
20
|
+
function Ge(e) { return Ut(e) ? e : t => t === e; }
|
|
21
|
+
function qt(e) { return e; }
|
|
22
|
+
function Vt(e) { return Number(e); }
|
|
23
|
+
function ue(e, t) { return e.bind(t); }
|
|
24
|
+
function E(e, ...t) { return Object.assign(e, ...t); }
|
|
25
|
+
function yt(e, t, n) { let r = e; return A(t, function (i, o) { if (typeof i != "number" && typeof i != "string")
|
|
26
|
+
throw Error("illegal key type: " + typeof i + ". Key should be of type number or string."); if (i === "constructor")
|
|
27
|
+
throw Error("illegal key: constructor"); if (i === "__proto__")
|
|
28
|
+
throw Error("illegal key: __proto__"); let s = t[o + 1], p = r[i]; Ft(s) && mt(p) && (p = r[i] = isNaN(+s) ? {} : []), Fe(s) ? Fe(n) ? delete r[i] : r[i] = n : r = p; }), e; }
|
|
29
|
+
function gt(e, t) { let n = {}, r = Object(e); return A(t, function (i) { i in r && (n[i] = e[i]); }), n; }
|
|
30
|
+
var Pe, $t, bt = ut(() => {
|
|
31
|
+
"use strict";
|
|
32
|
+
Pe = Object.prototype.toString, $t = Object.prototype.hasOwnProperty;
|
|
33
|
+
});
|
|
34
|
+
function Ze() { }
|
|
35
|
+
function At(e, t) { this.model = e, this.properties = t; }
|
|
36
|
+
function Ye(e, t) { var n = Rt[e]; return n ? n(t) : t; }
|
|
37
|
+
function He(e) { return !!Gt[e]; }
|
|
38
|
+
function Et(e) { return !!Rt[e]; }
|
|
39
|
+
function D(e, t) { var n = e.split(/:/), r, i; if (n.length === 1)
|
|
40
|
+
r = e, i = t;
|
|
41
|
+
else if (n.length === 2)
|
|
42
|
+
r = n[1], i = n[0];
|
|
43
|
+
else
|
|
44
|
+
throw Error("expected <prefix:localName> or <localName>, got " + e); return e = (i ? i + ":" : "") + r, { name: e, prefix: i, localName: r }; }
|
|
45
|
+
function V(e) { this.ns = e, this.name = e.name, this.allTypes = [], this.allTypesByName = Object.create(null), this.properties = [], this.propertiesByName = Object.create(null); }
|
|
46
|
+
function pe(e, t) { this.packageMap = Object.create(null), this.typeMap = Object.create(null), this.packages = [], this.properties = t, A(e, ue(this.registerPackage, this)); }
|
|
47
|
+
function vt(e, t, n) { var r = t[n]; if (r in e)
|
|
48
|
+
throw Error("package with " + n + " <" + r + "> already defined"); }
|
|
49
|
+
function he(e) { this.model = e; }
|
|
50
|
+
function Ht(e) { return e === void 0; }
|
|
51
|
+
function wt(e, t, n) { Object.defineProperty(e, t.name, { enumerable: !t.isReference, writable: !0, value: n, configurable: !0 }); }
|
|
52
|
+
function Xe(e) { return e.replace(/^:/, ""); }
|
|
53
|
+
function K(e, t = {}) { this.properties = new he(this), this.factory = new At(this, this.properties), this.registry = new pe(e, this.properties), this.typeCache = Object.create(null), this.config = t; }
|
|
54
|
+
function Zt(e, t, n, r) { return r ? Kt.call(Ee, r) ? Ee[r] : "&" + r + ";" : Xt(t || parseInt(n, 16)); }
|
|
55
|
+
function me(e) { return e.length > 3 && e.indexOf("&") !== -1 ? e.replace(Wt, Zt) : e; }
|
|
56
|
+
function ae(e) { return Error(e); }
|
|
57
|
+
function Yt(e) { return "missing namespace for prefix <" + e + ">"; }
|
|
58
|
+
function Be(e) { return { get: e, enumerable: !0 }; }
|
|
59
|
+
function Ke(e, t, n, r) { n in t || (t[n] = n in e ? e[n] : null), e[n] = r; }
|
|
60
|
+
function Jt(e, t) { var n, r; for (n in t)
|
|
61
|
+
r = t[n], r === null ? delete e[n] : e[n] = r; }
|
|
62
|
+
function Je(e) { return e + "$uri"; }
|
|
63
|
+
function Qt(e) { var t = Object.create(null), n, r; for (n in e)
|
|
64
|
+
r = e[n], t[r] = r, t[Je(r)] = n; return t; }
|
|
65
|
+
function De() { return { line: 0, column: 0 }; }
|
|
66
|
+
function en(e) { throw e; }
|
|
67
|
+
function Ct(e) { if (!this)
|
|
68
|
+
return new Ct(e); var t = e && e.proxy, n, r, i, o, s = en, p, l, c, h, j = De, P = !1, U = !1, Z = "", $ = !1, Y = !1, re = null, _ = !1, xe, O, d, w; function u(a) { a instanceof Error || (a = ae(a)), re = a, s(a, j); } function y(a) { p && (a instanceof Error || (a = ae(a)), p(a, j)); } this.on = function (a, g) { if (typeof g != "function")
|
|
69
|
+
throw ae("required args <name, cb>"); switch (a) {
|
|
70
|
+
case "openTag":
|
|
71
|
+
r = g;
|
|
72
|
+
break;
|
|
73
|
+
case "text":
|
|
74
|
+
n = g;
|
|
75
|
+
break;
|
|
76
|
+
case "closeTag":
|
|
77
|
+
i = g;
|
|
78
|
+
break;
|
|
79
|
+
case "error":
|
|
80
|
+
s = g;
|
|
81
|
+
break;
|
|
82
|
+
case "warn":
|
|
83
|
+
p = g;
|
|
84
|
+
break;
|
|
85
|
+
case "cdata":
|
|
86
|
+
o = g;
|
|
87
|
+
break;
|
|
88
|
+
case "attention":
|
|
89
|
+
h = g;
|
|
90
|
+
break;
|
|
91
|
+
case "question":
|
|
92
|
+
c = g;
|
|
93
|
+
break;
|
|
94
|
+
case "comment":
|
|
95
|
+
l = g;
|
|
96
|
+
break;
|
|
97
|
+
default: throw ae("unsupported event: " + a);
|
|
98
|
+
} return this; }, this.ns = function (a) { if (a === void 0 && (a = {}), typeof a != "object")
|
|
99
|
+
throw ae("required args <nsMap={}>"); var g = Object.create(null), z; for (z in a)
|
|
100
|
+
g[z] = a[z]; return Y = !0, w = g, this; }; function I() { xe = Y ? [] : null, O = Y ? Qt(w) : null, d = [], j = De, _ = !1, re = null, U = !1, Z = ""; } this.parse = function (a) { if (typeof a != "string")
|
|
101
|
+
throw ae("required args <xml=string>"); if (P)
|
|
102
|
+
throw ae("parse during stream; call end() first"); return I(), F(a), j = De, _ = !1, re; }, this.write = function (a) { if (typeof a != "string")
|
|
103
|
+
throw ae("required args <xml=string>"); return P ||= (I(), !0), re || (Z = F(Z + a, !0) || ""), this; }, this.end = function () { return P || I(), P = !1, re || F(Z), Z = "", j = De, _ = !1, re; }, this.stop = function () { _ = !0; }; function F(a, g = !1) { var z = null, J, Se, zt = 0, de = !1, ie = !1, b = 0, m = 0, S, pt, C, v, ke, je, N, Me, Ie, ze = "", Te = 0, ge; function lt(T, ee) { var q = T.indexOf(":"); if (q === -1)
|
|
104
|
+
return T; var G = O[T.substring(0, q)]; return G ? ee === G ? T.substr(q + 1) : G + T.substr(q) : (y(Yt(T.substring(0, q))), null); } function $e() { if (ge !== null)
|
|
105
|
+
return ge; var T, ee, q = Y && O.xmlns, G = Y && $ ? [] : null, R = Te, B = ze, H = B.length, oe, te, Q, M, Ae = {}, dt = new Set, W, f, x; e: for (; R < H; R++)
|
|
106
|
+
if (W = !1, f = B.charCodeAt(R), !(f === 32 || f < 14 && f > 8)) {
|
|
107
|
+
for ((f < 65 || f > 122 || f > 90 && f < 97) && f !== 95 && f !== 58 && (y("illegal first char attribute name"), W = !0), x = R + 1; x < H; x++)
|
|
108
|
+
if (f = B.charCodeAt(x), !(f > 96 && f < 123 || f > 64 && f < 91 || f > 47 && f < 59 || f === 46 || f === 45 || f === 95)) {
|
|
109
|
+
if (f === 32 || f < 14 && f > 8) {
|
|
110
|
+
y("missing attribute value"), R = x;
|
|
111
|
+
continue e;
|
|
112
|
+
}
|
|
113
|
+
if (f === 61)
|
|
114
|
+
break;
|
|
115
|
+
y("illegal attribute name char"), W = !0;
|
|
116
|
+
}
|
|
117
|
+
if (M = B.substring(R, x), M === "xmlns:xmlns" && (y("illegal declaration of xmlns"), W = !0), f = B.charCodeAt(x + 1), f === 34)
|
|
118
|
+
x = B.indexOf('"', R = x + 2), x === -1 && (x = B.indexOf("'", R), x !== -1 && (y("attribute value quote missmatch"), W = !0));
|
|
119
|
+
else if (f === 39)
|
|
120
|
+
x = B.indexOf("'", R = x + 2), x === -1 && (x = B.indexOf('"', R), x !== -1 && (y("attribute value quote missmatch"), W = !0));
|
|
121
|
+
else
|
|
122
|
+
for (y("missing attribute value quotes"), W = !0, x += 1; x < H && (f = B.charCodeAt(x + 1), !(f === 32 || f < 14 && f > 8)); x++)
|
|
123
|
+
;
|
|
124
|
+
for (x === -1 && (y("missing closing quotes"), x = H, W = !0), W || (te = B.substring(R, x)), M === "xmlns:xml" && te !== "http://www.w3.org/XML/1998/namespace" && u("illegal value of xmlns:xml"), R = x; x + 1 < H && (f = B.charCodeAt(x + 1), !(f === 32 || f < 14 && f > 8)); x++)
|
|
125
|
+
R === x && (y("illegal character after attribute end"), W = !0);
|
|
126
|
+
if (R = x + 1, W)
|
|
127
|
+
continue e;
|
|
128
|
+
if (dt.has(M))
|
|
129
|
+
y("attribute <" + M + "> already defined");
|
|
130
|
+
else if (dt.add(M), !Y)
|
|
131
|
+
Ae[M] = te;
|
|
132
|
+
else if ($) {
|
|
133
|
+
if (oe = M === "xmlns" ? "xmlns" : M.charCodeAt(0) === 120 && M.substr(0, 6) === "xmlns:" ? M.substr(6) : null, oe !== null) {
|
|
134
|
+
if (T = me(te), ee = Je(oe), Q = w[T], !Q) {
|
|
135
|
+
if (oe === "xmlns" || ee in O && O[ee] !== T)
|
|
136
|
+
do
|
|
137
|
+
Q = "ns" + zt++;
|
|
138
|
+
while (O[Q] !== void 0);
|
|
139
|
+
else
|
|
140
|
+
Q = oe;
|
|
141
|
+
w[T] = Q;
|
|
142
|
+
}
|
|
143
|
+
O[oe] !== Q && (J ||= Object.create(null), z = null, Se = null, Ke(O, J, oe, Q), oe === "xmlns" && (Ke(O, J, Je(Q), T), q = Q), Ke(O, J, ee, T)), Ae[M] = te;
|
|
144
|
+
continue;
|
|
145
|
+
}
|
|
146
|
+
G.push(M, te);
|
|
147
|
+
}
|
|
148
|
+
else
|
|
149
|
+
M = lt(M, q), M !== null && (Ae[M] = te);
|
|
150
|
+
} if ($)
|
|
151
|
+
for (R = 0, H = G.length; R < H; R++)
|
|
152
|
+
M = lt(G[R++], q), te = G[R], M !== null && (Ae[M] = te); return ge = Ae; } function Tt() { for (var T = /(\r\n|\r|\n)/g, ee = 0, q = 0, G = 0, R = m, B, H; b >= G && (B = T.exec(a), !(!B || (R = B[0].length + B.index, R > b)));)
|
|
153
|
+
ee += 1, G = R; return b == -1 ? (q = R, H = a.substring(m)) : m === 0 ? H = a.substring(m, b) : (q = b - G, H = m == -1 ? a.substring(b) : a.substring(b, m + 1)), { data: H, line: ee, column: q }; } for (j = Tt, t && (Ie = Object.create({}, { name: Be(function () { return N; }), originalName: Be(function () { return Me; }), attrs: Be($e), ns: Be(function () { return Se ||= Object.assign(Object.create(null), O), Se; }) })); m !== -1;) {
|
|
154
|
+
if (b = a.charCodeAt(m) === 60 ? m : a.indexOf("<", m), b === -1) {
|
|
155
|
+
if (g)
|
|
156
|
+
return a.substring(m);
|
|
157
|
+
if (d.length)
|
|
158
|
+
return u("unexpected end of file");
|
|
159
|
+
if (!U)
|
|
160
|
+
return u("missing start tag");
|
|
161
|
+
m < a.length && a.substring(m).trim() && y(xt);
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
if (U ||= !0, m !== b) {
|
|
165
|
+
if (d.length) {
|
|
166
|
+
if (n && (n(a.substring(m, b), me, j), _))
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
else if (a.substring(m, b).trim() && (y(xt), _))
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
if (v = a.charCodeAt(b + 1), v === 33) {
|
|
173
|
+
if (C = a.charCodeAt(b + 2), C === 91 && a.substr(b + 3, 6) === "CDATA[") {
|
|
174
|
+
if (m = a.indexOf("]]>", b), m === -1)
|
|
175
|
+
return g ? a.substring(b) : u("unclosed cdata");
|
|
176
|
+
if (o && (o(a.substring(b + 9, m), j), _))
|
|
177
|
+
return;
|
|
178
|
+
m += 3;
|
|
179
|
+
continue;
|
|
180
|
+
}
|
|
181
|
+
if (C === 45 && a.charCodeAt(b + 3) === 45) {
|
|
182
|
+
if (m = a.indexOf("-->", b), m === -1)
|
|
183
|
+
return g ? a.substring(b) : u("unclosed comment");
|
|
184
|
+
if (l && (l(a.substring(b + 4, m), me, j), _))
|
|
185
|
+
return;
|
|
186
|
+
m += 3;
|
|
187
|
+
continue;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
if (v === 63) {
|
|
191
|
+
if (m = a.indexOf("?>", b), m === -1)
|
|
192
|
+
return g ? a.substring(b) : u("unclosed question");
|
|
193
|
+
if (c && (c(a.substring(b, m + 2), j), _))
|
|
194
|
+
return;
|
|
195
|
+
m += 2;
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
for (S = b + 1;; S++) {
|
|
199
|
+
if (ke = a.charCodeAt(S), isNaN(ke))
|
|
200
|
+
return g ? a.substring(b) : (m = -1, u("unclosed tag"));
|
|
201
|
+
if (ke === 34)
|
|
202
|
+
C = a.indexOf('"', S + 1), S = C === -1 ? S : C;
|
|
203
|
+
else if (ke === 39)
|
|
204
|
+
C = a.indexOf("'", S + 1), S = C === -1 ? S : C;
|
|
205
|
+
else if (ke === 62) {
|
|
206
|
+
m = S;
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
if (v === 33) {
|
|
211
|
+
if (h && (h(a.substring(b, m + 1), me, j), _))
|
|
212
|
+
return;
|
|
213
|
+
m += 1;
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
if (ge = {}, v === 47) {
|
|
217
|
+
if (de = !1, ie = !0, !d.length)
|
|
218
|
+
return u("missing open tag");
|
|
219
|
+
if (S = N = d.pop(), C = b + 2 + S.length, a.substring(b + 2, C) !== S)
|
|
220
|
+
return u("closing tag mismatch");
|
|
221
|
+
for (; C < m; C++)
|
|
222
|
+
if (v = a.charCodeAt(C), !(v === 32 || v > 8 && v < 14))
|
|
223
|
+
return u("close tag");
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
if (a.charCodeAt(m - 1) === 47 ? (S = N = a.substring(b + 1, m - 1), de = !0, ie = !0) : (S = N = a.substring(b + 1, m), de = !0, ie = !1), !(v > 96 && v < 123 || v > 64 && v < 91 || v === 95 || v === 58))
|
|
227
|
+
return u("illegal first char nodeName");
|
|
228
|
+
for (C = 1, pt = S.length; C < pt; C++)
|
|
229
|
+
if (v = S.charCodeAt(C), !(v > 96 && v < 123 || v > 64 && v < 91 || v > 47 && v < 59 || v === 45 || v === 95 || v == 46)) {
|
|
230
|
+
if (v === 32 || v < 14 && v > 8) {
|
|
231
|
+
N = S.substring(0, C), ge = null;
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
return u("invalid nodeName");
|
|
235
|
+
}
|
|
236
|
+
ie || d.push(N);
|
|
237
|
+
}
|
|
238
|
+
if (Y) {
|
|
239
|
+
de && (J = null, ge === null && ($ = S.indexOf("xmlns", C) !== -1) && (Te = C, ze = S, $e(), $ = !1), ie || xe.push(J)), Me = N, z === null && (z = Object.create(null));
|
|
240
|
+
var ct = z[N];
|
|
241
|
+
if (ct !== void 0)
|
|
242
|
+
N = ct;
|
|
243
|
+
else {
|
|
244
|
+
if (v = N.indexOf(":"), v !== -1) {
|
|
245
|
+
if (je = O[N.substring(0, v)], !je)
|
|
246
|
+
return u("missing namespace on <" + Me + ">");
|
|
247
|
+
N = N.substr(v + 1);
|
|
248
|
+
}
|
|
249
|
+
else
|
|
250
|
+
je = O.xmlns;
|
|
251
|
+
je && (N = je + ":" + N), z[Me] = N;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
if (de && (Te = C, ze = S, r && (t ? r(Ie, me, ie, j) : r(N, $e, me, ie, j), _)))
|
|
255
|
+
return;
|
|
256
|
+
if (ie) {
|
|
257
|
+
if (i && (i(t ? Ie : N, me, de, j), _))
|
|
258
|
+
return;
|
|
259
|
+
Y && (de || (J = xe.pop()), J && (Jt(O, J), J = null, z = null, Se = null));
|
|
260
|
+
}
|
|
261
|
+
m += 1;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
} } }
|
|
265
|
+
function St(e) { return e.xml && e.xml.tagAlias === "lowerCase"; }
|
|
266
|
+
function Pt(e) { return e.xml && e.xml.serialize; }
|
|
267
|
+
function tn(e) { let t = Pt(e); return t !== Mt && (t || null); }
|
|
268
|
+
function nn(e) { return e.charAt(0).toUpperCase() + e.slice(1); }
|
|
269
|
+
function Nt(e, t) { return St(t) ? e.prefix + ":" + nn(e.localName) : e.name; }
|
|
270
|
+
function rn(e, t) { var n = e.name, r = e.localName, i = t && t.xml && t.xml.typePrefix; return i && r.indexOf(i) === 0 ? e.prefix + ":" + r.slice(i.length) : n; }
|
|
271
|
+
function on(e, t, n) { let r = D(e, t.xmlns), i = D("".concat(t[r.prefix] || r.prefix, ":").concat(r.localName)); return rn(i, n.getPackage(i.prefix)); }
|
|
272
|
+
function ce(e) { return Error(e); }
|
|
273
|
+
function ne(e) { return e.$descriptor; }
|
|
274
|
+
function sn(e) { E(this, e), this.elementsById = Object.create(null), this.references = [], this.warnings = [], this.addReference = function (t) { this.references.push(t); }, this.addElement = function (t) { if (!t)
|
|
275
|
+
throw ce("expected element"); var n = this.elementsById, r = ne(t).idProperty, i; if (r && (i = t.get(r.name), i)) {
|
|
276
|
+
if (!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(i))
|
|
277
|
+
throw Error("illegal ID <" + i + ">");
|
|
278
|
+
if (n[i])
|
|
279
|
+
throw ce("duplicate ID <" + i + ">");
|
|
280
|
+
n[i] = t;
|
|
281
|
+
} }, this.addWarning = function (t) { this.warnings.push(t); }; }
|
|
282
|
+
function Ce() { }
|
|
283
|
+
function et() { }
|
|
284
|
+
function we() { }
|
|
285
|
+
function Re(e, t) { this.property = e, this.context = t; }
|
|
286
|
+
function tt(e, t) { this.element = t, this.propertyDesc = e; }
|
|
287
|
+
function _e() { }
|
|
288
|
+
function L(e, t, n) { this.model = e, this.type = e.getType(t), this.context = n; }
|
|
289
|
+
function nt(e, t, n) { L.call(this, e, t, n); }
|
|
290
|
+
function be(e, t, n) { this.model = e, this.context = n; }
|
|
291
|
+
function rt(e) { e instanceof K && (e = { model: e }), E(this, { lax: !1 }, e); }
|
|
292
|
+
function an() { var e = []; return Object.defineProperty(e, "peek", { value: function () { return this[this.length - 1]; } }), e; }
|
|
293
|
+
function X(e) { this.prefixMap = {}, this.uriMap = {}, this.used = {}, this.wellknown = [], this.custom = [], this.parent = e, this.defaultPrefixMap = e && e.defaultPrefixMap || {}; }
|
|
294
|
+
function cn(e) { return e.charAt(0).toLowerCase() + e.slice(1); }
|
|
295
|
+
function dn(e, t) { return St(t) ? cn(e) : e; }
|
|
296
|
+
function Dt(e, t) { e.super_ = t, e.prototype = Object.create(t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }); }
|
|
297
|
+
function kt(e) { return se(e) ? e : (e.prefix ? e.prefix + ":" : "") + e.localName; }
|
|
298
|
+
function un(e) { return e.getUsed().filter(function (t) { return t.prefix !== "xml"; }).map(function (t) { return { name: "xmlns" + (t.prefix ? ":" + t.prefix : ""), value: Lt(t.uri) }; }); }
|
|
299
|
+
function mn(e, t) { return t.isGeneric ? E({ localName: t.ns.localName }, e) : E({ localName: dn(t.ns.localName, t.$pkg) }, e); }
|
|
300
|
+
function hn(e, t) { return E({ localName: t.ns.localName }, e); }
|
|
301
|
+
function fn(e) { var t = e.$descriptor; return Ne(t.properties, function (n) { var r = n.name; if (n.isVirtual || !qe(e, r))
|
|
302
|
+
return !1; var i = e[r]; return i === n.default || i === null ? !1 : !n.isMany || i.length; }); }
|
|
303
|
+
function Ot(e, t, n) { return e = se(e) ? e : "" + e, e.replace(t, function (r) { return "&" + n[r] + ";"; }); }
|
|
304
|
+
function Lt(e) { return Ot(e, ln, yn); }
|
|
305
|
+
function _t(e) { return Ot(e, Bt, gn); }
|
|
306
|
+
function bn(e) { return Ne(e, function (t) { return t.isAttr; }); }
|
|
307
|
+
function vn(e) { return Ne(e, function (t) { return !t.isAttr; }); }
|
|
308
|
+
function it(e) { this.tagName = e; }
|
|
309
|
+
function fe() { }
|
|
310
|
+
function ot(e) { this.tagName = e; }
|
|
311
|
+
function k(e, t) { this.body = [], this.attrs = [], this.parent = e, this.propertyDescriptor = t; }
|
|
312
|
+
function wn(e, t) { for (var n = [{ serializer: e, index: 0, opened: !1, indent: !1 }]; n.length;) {
|
|
313
|
+
var r = n[n.length - 1], i = r.serializer;
|
|
314
|
+
if (!r.opened) {
|
|
315
|
+
var o = i.body[0];
|
|
316
|
+
if (r.indent = o && o.constructor !== fe, t.appendIndent().append("<" + i.tagName), i.serializeAttributes(t), t.append(o ? ">" : " />"), r.opened = !0, !o) {
|
|
317
|
+
t.appendNewLine(), n.pop();
|
|
318
|
+
continue;
|
|
319
|
+
}
|
|
320
|
+
r.indent && t.appendNewLine().indent();
|
|
321
|
+
}
|
|
322
|
+
if (r.index < i.body.length) {
|
|
323
|
+
var s = i.body[r.index++];
|
|
324
|
+
s instanceof k ? n.push({ serializer: s, index: 0, opened: !1, indent: !1 }) : s.serializeTo(t);
|
|
325
|
+
}
|
|
326
|
+
else
|
|
327
|
+
r.indent && t.unindent().appendIndent(), t.append("</" + i.tagName + ">").appendNewLine(), n.pop();
|
|
328
|
+
} }
|
|
329
|
+
function Oe(e, t, n) { k.call(this, e, t), this.serialization = n; }
|
|
330
|
+
function xn() { this.value = "", this.write = function (e) { this.value += e; }; }
|
|
331
|
+
function kn(e, t) { var n = [""]; this.append = function (r) { return e.write(r), this; }, this.appendNewLine = function () { return t && e.write("\n"), this; }, this.appendIndent = function () { return t && e.write(n.join(" ")), this; }, this.indent = function () { return n.push(""), this; }, this.unindent = function () { return n.pop(), this; }; }
|
|
332
|
+
function jn(e) { e = E({ format: !1, preamble: !0 }, e || {}); function t(n, r) { var i = r || new xn, o = new kn(i, e.format); e.preamble && o.append(pn); var s = new k, p = n.$model; if (s.getNamespaces().mapDefaultPrefixes(Rn(p)), s.build(n).serializeTo(o), !r)
|
|
333
|
+
return i.value; } return { toXML: t }; }
|
|
334
|
+
function An(e, t) { for (var n = [{ serializer: e, children: e.enter(t), index: 0 }]; n.length;) {
|
|
335
|
+
var r = n[n.length - 1];
|
|
336
|
+
if (r.index >= r.children.length)
|
|
337
|
+
r.serializer.exit(), n.pop();
|
|
338
|
+
else {
|
|
339
|
+
var i = r.children[r.index++], o = i.create();
|
|
340
|
+
r.serializer.body.push(o), i.element && n.push({ serializer: o, children: o.enter(i.element), index: 0 });
|
|
341
|
+
}
|
|
342
|
+
} }
|
|
343
|
+
function Rn(e) { let t = e.config && e.config.nsMap || {}, n = {}; for (let r in Qe)
|
|
344
|
+
n[r] = Qe[r]; for (let r in t) {
|
|
345
|
+
let i = t[r];
|
|
346
|
+
n[i] = r;
|
|
347
|
+
} for (let r of e.getPackages())
|
|
348
|
+
n[r.prefix] = r.uri; return n; }
|
|
349
|
+
function Le(e, t) { K.call(this, e, t); }
|
|
350
|
+
function Cn(e, t) { return new Le(E({}, En, e), t); }
|
|
351
|
+
function ye(e) { return typeof e == "object" && !!e && !Array.isArray(e); }
|
|
352
|
+
function jt(e) { return ye(e) && e.ok === !1; }
|
|
353
|
+
function ve(e, t, n) { return n === void 0 ? { ok: !1, code: e, message: t } : { ok: !1, code: e, message: t, pointer: n }; }
|
|
354
|
+
function le(e, t) { return "".concat(e, "/").concat(String(t).replace(/~/g, "~0").replace(/\//g, "~1")); }
|
|
355
|
+
function We(e, t) { if (typeof e == "function")
|
|
356
|
+
return ve("unsupported-extension", "the F1 tree carries a non-data value (\xA74.1)", t); }
|
|
357
|
+
function st(e, t, n, r) { let i = We(t, n); if (i !== void 0)
|
|
358
|
+
return { refused: i }; if (!ye(t))
|
|
359
|
+
return { refused: ve("missing-$type", "the F1 tree node at ".concat(n || "/", " is not an object"), n) }; let o = t.$type; if (typeof o != "string" || o.length === 0)
|
|
360
|
+
return { refused: ve("missing-$type", "the F1 tree node at ".concat(n || "/", " has no $type"), le(n, "$type")) }; let s = {}; for (let [l, c] of Object.entries(t)) {
|
|
361
|
+
if (l === "$type")
|
|
362
|
+
continue;
|
|
363
|
+
let h = le(n, l), j = We(c, h);
|
|
364
|
+
if (j !== void 0)
|
|
365
|
+
return { refused: j };
|
|
366
|
+
if (Array.isArray(c)) {
|
|
367
|
+
let P = [];
|
|
368
|
+
for (let U = 0; U < c.length; U += 1) {
|
|
369
|
+
let Z = le(h, U);
|
|
370
|
+
if (ye(c[U])) {
|
|
371
|
+
let $ = st(e, c[U], Z, r);
|
|
372
|
+
if ("refused" in $)
|
|
373
|
+
return $;
|
|
374
|
+
P.push($.root);
|
|
375
|
+
}
|
|
376
|
+
else {
|
|
377
|
+
let $ = We(c[U], Z);
|
|
378
|
+
if ($ !== void 0)
|
|
379
|
+
return { refused: $ };
|
|
380
|
+
P.push(c[U]);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
s[l] = P;
|
|
384
|
+
}
|
|
385
|
+
else if (ye(c)) {
|
|
386
|
+
let P = st(e, c, h, r);
|
|
387
|
+
if ("refused" in P)
|
|
388
|
+
return P;
|
|
389
|
+
s[l] = P.root;
|
|
390
|
+
}
|
|
391
|
+
else
|
|
392
|
+
s[l] = c;
|
|
393
|
+
} let p; try {
|
|
394
|
+
p = e.create(o, s);
|
|
395
|
+
}
|
|
396
|
+
catch (l) {
|
|
397
|
+
return { refused: ve("unknown-type", l instanceof Error ? l.message : String(l), le(n, "$type")) };
|
|
398
|
+
} return typeof t.id == "string" && r.set(t.id, p), { root: p }; }
|
|
399
|
+
function at(e, t, n, r) { for (let i of t.$descriptor.properties) {
|
|
400
|
+
if (!i.isReference)
|
|
401
|
+
continue;
|
|
402
|
+
let o = le(r, i.name), s = t[i.name], p = (l, c) => { if (typeof l != "string")
|
|
403
|
+
return l; let h = n.get(l); return h === void 0 ? ve("unresolved-reference", 'the reference "'.concat(l, '" names no element of the document'), c) : h; };
|
|
404
|
+
if (i.isMany) {
|
|
405
|
+
if (Array.isArray(s)) {
|
|
406
|
+
let l = [];
|
|
407
|
+
for (let c = 0; c < s.length; c += 1) {
|
|
408
|
+
let h = p(s[c], le(o, c));
|
|
409
|
+
if (jt(h))
|
|
410
|
+
return h;
|
|
411
|
+
l.push(h);
|
|
412
|
+
}
|
|
413
|
+
t[i.name] = l;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
else if (s !== void 0) {
|
|
417
|
+
let l = p(s, o);
|
|
418
|
+
if (jt(l))
|
|
419
|
+
return l;
|
|
420
|
+
t[i.name] = l;
|
|
421
|
+
}
|
|
422
|
+
} for (let [i, o] of Object.entries(e)) {
|
|
423
|
+
if (i === "$type")
|
|
424
|
+
continue;
|
|
425
|
+
let s = t[i], p = o, l = le(r, i);
|
|
426
|
+
if (Array.isArray(p) && Array.isArray(s)) {
|
|
427
|
+
for (let c = 0; c < p.length; c += 1)
|
|
428
|
+
if (ye(p[c]) && p[c].$type !== void 0) {
|
|
429
|
+
let h = at(p[c], s[c], n, le(l, c));
|
|
430
|
+
if (h !== void 0)
|
|
431
|
+
return h;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
else if (ye(p) && p.$type !== void 0) {
|
|
435
|
+
let c = at(p, s, n, l);
|
|
436
|
+
if (c !== void 0)
|
|
437
|
+
return c;
|
|
438
|
+
}
|
|
439
|
+
} }
|
|
440
|
+
function Sn(e) { if (!ye(e))
|
|
441
|
+
return ve("missing-$type", "the F1 document is not a JSON object"); let t = new Cn, n = new Map, r = st(t, e, "", n); if ("refused" in r)
|
|
442
|
+
return r.refused; let i = at(e, r.root, n, ""); return i === void 0 ? { ok: !0, xml: "", warnings: [] } : i; }
|
|
443
|
+
function Mn(e) { return { source: "bpmn-canvas", validate(t) { let n = e(t); return n.ok ? (n.warnings ?? []).map(r => ({ code: r.code, message: r.message, ...r.pointer === void 0 ? {} : { pointer: r.pointer }, severity: "warning" })) : [{ code: n.code, message: n.message, ...n.pointer === void 0 ? {} : { pointer: n.pointer }, severity: "error" }]; } }; }
|
|
444
|
+
var Gt, Rt, Xt, Kt, Wt, Ee, xt, Qe, Mt, pn, ln, Bt, yn, gn, En, On, Pn, It = ut(() => {
|
|
445
|
+
"use strict";
|
|
446
|
+
bt();
|
|
447
|
+
Ze.prototype.get = function (e) { return this.$model.properties.get(this, e); }, Ze.prototype.set = function (e, t) { this.$model.properties.set(this, e, t); };
|
|
448
|
+
At.prototype.createType = function (e) { var t = this.model, n = this.properties, r = Object.create(Ze.prototype); A(e.properties, function (s) { !s.isMany && s.default !== void 0 && (r[s.name] = s.default); }), n.defineModel(r, t), n.defineDescriptor(r, e); var i = e.ns.name; function o(s) { n.define(this, "$type", { value: i, enumerable: !0 }), n.define(this, "$attrs", { value: {} }), n.define(this, "$parent", { writable: !0 }), A(s, ue(function (p, l) { this.set(l, p); }, this)); } return o.prototype = r, o.hasType = r.$instanceOf = this.model.hasType, n.defineModel(o, t), n.defineDescriptor(o, e), o; };
|
|
449
|
+
Gt = E(Object.create(null), { String: !0, Boolean: !0, Integer: !0, Real: !0, Element: !0 }), Rt = E(Object.create(null), { String: function (e) { return e; }, Boolean: function (e) { return e === "true"; }, Integer: function (e) { return parseInt(e, 10); }, Real: function (e) { return parseFloat(e); } });
|
|
450
|
+
V.prototype.build = function () { return gt(this, ["ns", "name", "allTypes", "allTypesByName", "properties", "propertiesByName", "bodyProperty", "idProperty"]); }, V.prototype.addProperty = function (e, t, n) { typeof t == "boolean" && (n = t, t = void 0), this.addNamedProperty(e, n !== !1); var r = this.properties; t === void 0 ? r.push(e) : r.splice(t, 0, e); }, V.prototype.replaceProperty = function (e, t, n) { var r = e.ns, i = this.properties, o = this.propertiesByName, s = e.name !== t.name; if (e.isId) {
|
|
451
|
+
if (!t.isId)
|
|
452
|
+
throw Error("property <" + t.ns.name + "> must be id property to refine <" + e.ns.name + ">");
|
|
453
|
+
this.setIdProperty(t, !1);
|
|
454
|
+
} if (e.isBody) {
|
|
455
|
+
if (!t.isBody)
|
|
456
|
+
throw Error("property <" + t.ns.name + "> must be body property to refine <" + e.ns.name + ">");
|
|
457
|
+
this.setBodyProperty(t, !1);
|
|
458
|
+
} var p = i.indexOf(e); if (p === -1)
|
|
459
|
+
throw Error("property <" + r.name + "> not found in property list"); i.splice(p, 1), this.addProperty(t, n ? void 0 : p, s), o[r.name] = o[r.localName] = t; }, V.prototype.redefineProperty = function (e, t, n) { var r = e.ns.prefix, i = t.split("#"), o = D(i[0], r), s = D(i[1], o.prefix).name, p = this.propertiesByName[s]; if (p)
|
|
460
|
+
this.replaceProperty(p, e, n);
|
|
461
|
+
else
|
|
462
|
+
throw Error("refined property <" + s + "> not found"); delete e.redefines; }, V.prototype.addNamedProperty = function (e, t) { var n = e.ns, r = this.propertiesByName; t && (this.assertNotDefined(e, n.name), this.assertNotDefined(e, n.localName)), r[n.name] = r[n.localName] = e; }, V.prototype.removeNamedProperty = function (e) { var t = e.ns, n = this.propertiesByName; delete n[t.name], delete n[t.localName]; }, V.prototype.setBodyProperty = function (e, t) { if (t && this.bodyProperty)
|
|
463
|
+
throw Error("body property defined multiple times (<" + this.bodyProperty.ns.name + ">, <" + e.ns.name + ">)"); this.bodyProperty = e; }, V.prototype.setIdProperty = function (e, t) { if (t && this.idProperty)
|
|
464
|
+
throw Error("id property defined multiple times (<" + this.idProperty.ns.name + ">, <" + e.ns.name + ">)"); this.idProperty = e; }, V.prototype.assertNotTrait = function (e) { if ((e.extends || []).length)
|
|
465
|
+
throw Error("cannot create <".concat(e.name, "> extending <").concat(e.extends, ">")); }, V.prototype.assertNotDefined = function (e, t) { var n = e.name, r = this.propertiesByName[n]; if (r)
|
|
466
|
+
throw Error("property <" + n + "> already defined; override of <" + r.definedBy.ns.name + "#" + r.ns.name + "> by <" + e.definedBy.ns.name + "#" + e.ns.name + "> not allowed without redefines"); }, V.prototype.hasProperty = function (e) { return this.propertiesByName[e]; }, V.prototype.addTrait = function (e, t) { t && this.assertNotTrait(e); var n = this.allTypesByName, r = this.allTypes, i = e.name; i in n || (A(e.properties, ue(function (o) { o = E({}, o, { name: o.ns.localName, inherited: t }), Object.defineProperty(o, "definedBy", { value: e }); var s = o.replaces, p = o.redefines; s || p ? this.redefineProperty(o, s || p, s) : (o.isBody && this.setBodyProperty(o), o.isId && this.setIdProperty(o), this.addProperty(o)); }, this)), r.push(e), n[i] = e); };
|
|
467
|
+
pe.prototype.getPackage = function (e) { return this.packageMap[e]; }, pe.prototype.getPackages = function () { return this.packages; }, pe.prototype.registerPackage = function (e) { e = E({}, e); var t = this.packageMap; vt(t, e, "prefix"), vt(t, e, "uri"), A(e.types, ue(function (n) { this.registerType(n, e); }, this)), t[e.uri] = t[e.prefix] = e, this.packages.push(e); }, pe.prototype.registerType = function (e, t) { e = E({}, e, { superClass: (e.superClass || []).slice(), extends: (e.extends || []).slice(), properties: (e.properties || []).slice(), meta: E({}, e.meta || {}) }); var n = D(e.name, t.prefix), r = n.name, i = Object.create(null); A(e.properties, ue(function (o) { var s = D(o.name, n.prefix), p = s.name; He(o.type) || (o.type = D(o.type, s.prefix).name), E(o, { ns: s, name: p }), i[p] = o; }, this)), E(e, { ns: n, name: r, propertiesByName: i }), A(e.extends, ue(function (o) { var s = D(o, n.prefix), p = this.typeMap[s.name]; p.traits = p.traits || [], p.traits.push(r); }, this)), this.definePackage(e, t), this.typeMap[r] = e; }, pe.prototype.mapTypes = function (e, t, n) { var r = He(e.name) ? { name: e.name } : this.typeMap[e.name], i = this; function o(l, c) { var h = D(l, He(l) ? "" : e.prefix); i.mapTypes(h, t, c); } function s(l) { return o(l, !0); } function p(l) { return o(l, !1); } if (!r)
|
|
468
|
+
throw Error("unknown type <" + e.name + ">"); A(r.superClass, n ? s : p), t(r, !n), A(r.traits, s); }, pe.prototype.getEffectiveDescriptor = function (e) { var t = D(e), n = new V(t); this.mapTypes(t, function (i, o) { n.addTrait(i, o); }); var r = n.build(); return this.definePackage(r, r.allTypes[r.allTypes.length - 1].$pkg), r; }, pe.prototype.definePackage = function (e, t) { this.properties.define(e, "$pkg", { value: t }); };
|
|
469
|
+
he.prototype.set = function (e, t, n) { if (!se(t) || !t.length)
|
|
470
|
+
throw TypeError("property name must be a non-empty string"); var r = this.getProperty(e, t), i = r && r.name; Ht(n) ? r ? delete e[i] : delete e.$attrs[Xe(t)] : r ? i in e ? e[i] = n : wt(e, r, n) : e.$attrs[Xe(t)] = n; }, he.prototype.get = function (e, t) { var n = this.getProperty(e, t); if (!n)
|
|
471
|
+
return e.$attrs[Xe(t)]; var r = n.name; return !e[r] && n.isMany && wt(e, n, []), e[r]; }, he.prototype.define = function (e, t, n) { if (!n.writable) {
|
|
472
|
+
var r = n.value;
|
|
473
|
+
n = E({}, n, { get: function () { return r; } }), delete n.value;
|
|
474
|
+
} Object.defineProperty(e, t, n); }, he.prototype.defineDescriptor = function (e, t) { this.define(e, "$descriptor", { value: t }); }, he.prototype.defineModel = function (e, t) { this.define(e, "$model", { value: t }); }, he.prototype.getProperty = function (e, t) { var n = this.model, r = n.getPropertyDescriptor(e, t); if (r)
|
|
475
|
+
return r; if (t.includes(":"))
|
|
476
|
+
return null; let i = n.config.strict; if (i !== void 0) {
|
|
477
|
+
let o = TypeError("unknown property <".concat(t, "> on <").concat(e.$type, ">"));
|
|
478
|
+
if (i)
|
|
479
|
+
throw o;
|
|
480
|
+
typeof console < "u" && console.warn(o);
|
|
481
|
+
} return null; };
|
|
482
|
+
K.prototype.create = function (e, t) { var n = this.getType(e); if (!n)
|
|
483
|
+
throw Error("unknown type <" + e + ">"); return new n(t); }, K.prototype.getType = function (e) { var t = this.typeCache, n = se(e) ? e : e.ns.name, r = t[n]; return r ||= (e = this.registry.getEffectiveDescriptor(n), t[n] = this.factory.createType(e)), r; }, K.prototype.createAny = function (e, t, n) { var r = D(e), i = { $type: e, $instanceOf: function (s) { return s === this.$type; }, get: function (s) { return this[s]; }, set: function (s, p) { yt(this, [s], p); } }, o = { name: e, isGeneric: !0, ns: { prefix: r.prefix, localName: r.localName, uri: t } }; return this.properties.defineDescriptor(i, o), this.properties.defineModel(i, this), this.properties.define(i, "get", { enumerable: !1, writable: !0 }), this.properties.define(i, "set", { enumerable: !1, writable: !0 }), this.properties.define(i, "$parent", { enumerable: !1, writable: !0 }), this.properties.define(i, "$instanceOf", { enumerable: !1, writable: !0 }), A(n, function (s, p) { ht(s) && s.value !== void 0 ? i[s.name] = s.value : i[p] = s; }), i; }, K.prototype.getPackage = function (e) { return this.registry.getPackage(e); }, K.prototype.getPackages = function () { return this.registry.getPackages(); }, K.prototype.getElementDescriptor = function (e) { return e.$descriptor; }, K.prototype.hasType = function (e, t) { t === void 0 && (t = e, e = this); var n = e.$model.getElementDescriptor(e); return t in n.allTypesByName; }, K.prototype.getPropertyDescriptor = function (e, t) { return this.getElementDescriptor(e).propertiesByName[t]; }, K.prototype.getTypeDescriptor = function (e) { return this.registry.typeMap[e]; };
|
|
484
|
+
Xt = String.fromCharCode, Kt = Object.prototype.hasOwnProperty, Wt = /&#(\d+);|&#x([0-9a-f]+);|&(\w+);/gi, Ee = { amp: "&", apos: "'", gt: ">", lt: "<", quot: '"' };
|
|
485
|
+
Object.keys(Ee).forEach(function (e) { Ee[e.toUpperCase()] = Ee[e]; });
|
|
486
|
+
xt = "non-whitespace outside of root node";
|
|
487
|
+
Qe = { xsi: "http://www.w3.org/2001/XMLSchema-instance", xml: "http://www.w3.org/XML/1998/namespace" }, Mt = "property";
|
|
488
|
+
Ce.prototype.handleEnd = function () { }, Ce.prototype.handleText = function () { }, Ce.prototype.handleNode = function () { };
|
|
489
|
+
et.prototype = Object.create(Ce.prototype), et.prototype.handleNode = function () { return this; };
|
|
490
|
+
we.prototype = Object.create(Ce.prototype), we.prototype.handleText = function (e) { this.body = (this.body || "") + e; };
|
|
491
|
+
Re.prototype = Object.create(we.prototype), Re.prototype.handleNode = function (e) { if (this.element)
|
|
492
|
+
throw ce("expected no sub nodes"); return this.element = this.createReference(e), this; }, Re.prototype.handleEnd = function () { this.element.id = this.body; }, Re.prototype.createReference = function (e) { return { property: this.property.ns.name, id: "" }; };
|
|
493
|
+
tt.prototype = Object.create(we.prototype), tt.prototype.handleEnd = function () { var e = this.body || "", t = this.element, n = this.propertyDesc; e = Ye(n.type, e), n.isMany ? t.get(n.name).push(e) : t.set(n.name, e); };
|
|
494
|
+
_e.prototype = Object.create(we.prototype), _e.prototype.handleNode = function (e) { var t = this, n = this.element; return n ? t = this.handleChild(e) : (n = this.element = this.createElement(e), this.context.addElement(n)), t; };
|
|
495
|
+
L.prototype = Object.create(_e.prototype), L.prototype.addReference = function (e) { this.context.addReference(e); }, L.prototype.handleText = function (e) { var t = this.element; if (!ne(t).bodyProperty)
|
|
496
|
+
throw ce("unexpected body text <" + e + ">"); we.prototype.handleText.call(this, e); }, L.prototype.handleEnd = function () { var e = this.body, t = this.element, n = ne(t).bodyProperty; n && e !== void 0 && (e = Ye(n.type, e), t.set(n.name, e)); }, L.prototype.createElement = function (e) { var t = e.attributes, n = this.type, r = ne(n), i = this.context, o = new n({}), s = this.model, p; return A(t, function (l, c) { var h = r.propertiesByName[c], j; h && h.isReference ? h.isMany ? (j = l.split(" "), A(j, function (P) { i.addReference({ element: o, property: h.ns.name, id: P }); })) : i.addReference({ element: o, property: h.ns.name, id: l }) : (h ? l = Ye(h.type, l) : c === "xmlns" ? c = ":" + c : (p = D(c, r.ns.prefix), s.getPackage(p.prefix) && i.addWarning({ message: "unknown attribute <" + c + ">", element: o, property: c, value: l })), o.set(c, l)); }), o; }, L.prototype.getPropertyForNode = function (e) { var t = e.name, n = D(t), r = this.type, i = this.model, o = ne(r), s = n.name, p = o.propertiesByName[s]; if (p && !p.isAttr) {
|
|
497
|
+
let c = tn(p);
|
|
498
|
+
if (c) {
|
|
499
|
+
let h = e.attributes[c];
|
|
500
|
+
if (h) {
|
|
501
|
+
let j = on(h, e.ns, i), P = i.getType(j);
|
|
502
|
+
return E({}, p, { effectiveType: ne(P).name });
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
return p;
|
|
506
|
+
} var l = i.getPackage(n.prefix); if (l) {
|
|
507
|
+
let c = Nt(n, l), h = i.getType(c);
|
|
508
|
+
if (p = Ve(o.properties, function (j) { return !j.isVirtual && !j.isReference && !j.isAttribute && h.hasType(j.type); }), p)
|
|
509
|
+
return E({}, p, { effectiveType: ne(h).name });
|
|
510
|
+
}
|
|
511
|
+
else if (p = Ve(o.properties, function (c) { return !c.isReference && !c.isAttribute && c.type === "Element"; }), p)
|
|
512
|
+
return p; throw ce("unrecognized element <" + n.name + ">"); }, L.prototype.toString = function () { return "ElementDescriptor[" + ne(this.type).name + "]"; }, L.prototype.valueHandler = function (e, t) { return new tt(e, t); }, L.prototype.referenceHandler = function (e) { return new Re(e, this.context); }, L.prototype.handler = function (e) { return e === "Element" ? new be(this.model, e, this.context) : new L(this.model, e, this.context); }, L.prototype.handleChild = function (e) { var t = this.getPropertyForNode(e), n, r = this.element, i; if (n = t.effectiveType || t.type, Et(n))
|
|
513
|
+
return this.valueHandler(t, r); i = t.isReference ? this.referenceHandler(t).handleNode(e) : this.handler(n).handleNode(e); var o = i.element; return o !== void 0 && (t.isMany ? r.get(t.name).push(o) : r.set(t.name, o), t.isReference ? (E(o, { element: r }), this.context.addReference(o)) : o.$parent = r), i; };
|
|
514
|
+
nt.prototype = Object.create(L.prototype), nt.prototype.createElement = function (e) { var t = e.name, n = D(t), r = this.model, i = this.type, o = r.getPackage(n.prefix), s = o && Nt(n, o) || t; if (!i.hasType(s))
|
|
515
|
+
throw ce("unexpected element <" + e.originalName + ">"); return L.prototype.createElement.call(this, e); };
|
|
516
|
+
be.prototype = Object.create(_e.prototype), be.prototype.createElement = function (e) { var t = e.name, n = D(t).prefix, r = e.ns[n + "$uri"], i = e.attributes; return this.model.createAny(t, r, i); }, be.prototype.handleChild = function (e) { var t = new be(this.model, "Element", this.context).handleNode(e), n = this.element, r = t.element, i; return r !== void 0 && (i = n.$children = n.$children || [], i.push(r), r.$parent = n), t; }, be.prototype.handleEnd = function () { this.body && (this.element.$body = this.body); };
|
|
517
|
+
rt.prototype.fromXML = function (e, t, n) { var r = t.rootHandler; t instanceof L ? (r = t, t = {}) : typeof t == "string" ? (r = this.handler(t), t = {}) : typeof r == "string" && (r = this.handler(r)); var i = this.model, o = this.lax, s = new sn(E({}, t, { rootHandler: r })), p = new Ct({ proxy: !0 }), l = an(); r.context = s, l.push(r); function c(d, w, u) { var y = w(), I = y.line, F = y.column, a = y.data; a.charAt(0) === "<" && a.indexOf(" ") !== -1 && (a = a.slice(0, a.indexOf(" ")) + ">"); var g = "unparsable content " + (a ? a + " " : "") + "detected\n line: " + I + "\n column: " + F + "\n nested error: " + d.message; if (u)
|
|
518
|
+
return s.addWarning({ message: g, error: d }), !0; throw ce(g); } function h(d, w) { return c(d, w, !0); } function j() { for (var d = s.elementsById, w = s.references, u = 0, y; y = w[u]; u++) {
|
|
519
|
+
var I = y.element, F = d[y.id], a = ne(I).propertiesByName[y.property];
|
|
520
|
+
if (F || s.addWarning({ message: "unresolved reference <" + y.id + ">", element: y.element, property: y.property, value: y.id }), a.isMany) {
|
|
521
|
+
var g = I.get(a.name), z = g.indexOf(y);
|
|
522
|
+
z === -1 && (z = g.length), F ? g[z] = F : g.splice(z, 1);
|
|
523
|
+
}
|
|
524
|
+
else
|
|
525
|
+
I.set(a.name, F);
|
|
526
|
+
} } function P() { l.pop().handleEnd(); } var U = /^<\?xml /i, Z = / encoding="([^"]+)"/i, $ = /^utf-8$/i; function Y(d) { if (U.test(d)) {
|
|
527
|
+
var w = Z.exec(d), u = w && w[1];
|
|
528
|
+
u && !$.test(u) && s.addWarning({ message: "unsupported document encoding <" + u + ">, falling back to UTF-8" });
|
|
529
|
+
} } function re(d, w) { var u = l.peek(); try {
|
|
530
|
+
l.push(u.handleNode(d));
|
|
531
|
+
}
|
|
532
|
+
catch (y) {
|
|
533
|
+
c(y, w, o) && l.push(new et);
|
|
534
|
+
} } function _(d, w) { try {
|
|
535
|
+
l.peek().handleText(d);
|
|
536
|
+
}
|
|
537
|
+
catch (u) {
|
|
538
|
+
h(u, w);
|
|
539
|
+
} } function xe(d, w) { d.trim() && _(d, w); } var O = i.getPackages().reduce(function (d, w) { return d[w.uri] = w.prefix, d; }, Object.entries(Qe).reduce(function (d, [w, u]) { return d[u] = w, d; }, i.config && i.config.nsMap || {})); return p.ns(O).on("openTag", function (d, w, u, y) { var I = d.attrs || {}, F = Object.keys(I).reduce(function (a, g) { return a[g] = w(I[g]), a; }, {}); re({ name: d.name, originalName: d.originalName, attributes: F, ns: d.ns }, y); }).on("question", Y).on("closeTag", P).on("cdata", _).on("text", function (d, w, u) { xe(w(d), u); }).on("error", c).on("warn", h), new Promise(function (d, w) { var u; try {
|
|
540
|
+
p.parse(e), j();
|
|
541
|
+
}
|
|
542
|
+
catch (g) {
|
|
543
|
+
u = g;
|
|
544
|
+
} var y = r.element; !u && !y && (u = ce("failed to parse document as <" + r.type.$descriptor.name + ">")); var I = s.warnings, F = s.references, a = s.elementsById; return u ? (u.warnings = I, w(u)) : d({ rootElement: y, elementsById: a, references: F, warnings: I }); }); }, rt.prototype.handler = function (e) { return new nt(this.model, e); };
|
|
545
|
+
pn = '<?xml version="1.0" encoding="UTF-8"?>\n', ln = /<|>|'|"|&|\n\r|\n/g, Bt = /<|>|&/g;
|
|
546
|
+
X.prototype.mapDefaultPrefixes = function (e) { this.defaultPrefixMap = e; }, X.prototype.defaultUriByPrefix = function (e) { return this.defaultPrefixMap[e]; }, X.prototype.resolve = function (e) { for (var t = this; t;) {
|
|
547
|
+
var n = e(t);
|
|
548
|
+
if (n)
|
|
549
|
+
return n;
|
|
550
|
+
t = t.parent;
|
|
551
|
+
} }, X.prototype.eachScope = function (e) { for (var t = this; t;)
|
|
552
|
+
e(t), t = t.parent; }, X.prototype.byUri = function (e) { return this.resolve(function (t) { return t.uriMap[e]; }); }, X.prototype.add = function (e, t) { this.uriMap[e.uri] = e, t ? this.wellknown.push(e) : this.custom.push(e), this.mapPrefix(e.prefix, e.uri); }, X.prototype.uriByPrefix = function (e) { var t = e || "xmlns"; return this.resolve(function (n) { return n.prefixMap[t]; }); }, X.prototype.mapPrefix = function (e, t) { this.prefixMap[e || "xmlns"] = t; }, X.prototype.getNSKey = function (e) { return e.prefix === void 0 ? e.uri : e.uri + "|" + e.prefix; }, X.prototype.logUsed = function (e) { var t = e.uri, n = this.getNSKey(e), r = this.byUri(t); this.eachScope(function (i) { i.used[n] = r; }); }, X.prototype.getUsed = function (e) { return [].concat(this.wellknown, this.custom).filter(t => { var n = this.getNSKey(t); return this.used[n]; }); };
|
|
553
|
+
yn = { "\n": "#10", "\n\r": "#10", '"': "#34", "'": "#39", "<": "#60", ">": "#62", "&": "#38" }, gn = { "<": "lt", ">": "gt", "&": "amp" };
|
|
554
|
+
it.prototype.build = function (e) { return this.element = e, this; }, it.prototype.serializeTo = function (e) { e.appendIndent().append("<" + this.tagName + ">" + _t(this.element.id) + "</" + this.tagName + ">").appendNewLine(); };
|
|
555
|
+
fe.prototype.serializeValue = fe.prototype.serializeTo = function (e) { e.append(this.escape ? _t(this.value) : this.value); }, fe.prototype.build = function (e, t) { return this.value = t, e.type === "String" && t.search(Bt) !== -1 && (this.escape = !0), this; };
|
|
556
|
+
Dt(ot, fe), ot.prototype.serializeTo = function (e) { e.appendIndent().append("<" + this.tagName + ">"), this.serializeValue(e), e.append("</" + this.tagName + ">").appendNewLine(); };
|
|
557
|
+
k.prototype.build = function (e) { return An(this, e), this; }, k.prototype.enter = function (e) { this.element = e; var t = e.$descriptor, n = this.propertyDescriptor, r = t.isGeneric; if (this.otherAttrs = r ? this.parseGenericNsAttributes(e) : this.parseNsAttributes(e), this.ns = n ? this.nsPropertyTagName(n) : this.nsTagName(t), this.tagName = this.addTagName(this.ns), r)
|
|
558
|
+
return this.collectGenericContainments(e); var i = fn(e); return this.parseAttributes(bn(i)), this.collectContainments(vn(i)); }, k.prototype.exit = function () { this.parseGenericAttributes(this.element, this.otherAttrs); }, k.prototype.nsTagName = function (e) { return mn(this.logNamespaceUsed(e.ns), e); }, k.prototype.nsPropertyTagName = function (e) { return hn(this.logNamespaceUsed(e.ns), e); }, k.prototype.isLocalNs = function (e) { return e.uri === this.ns.uri; }, k.prototype.nsAttributeName = function (e) { var t = se(e) ? D(e) : e.ns; if (e.inherited)
|
|
559
|
+
return { localName: t.localName }; var n = this.logNamespaceUsed(t); return this.getNamespaces().logUsed(n), this.isLocalNs(n) ? { localName: t.localName } : E({ localName: t.localName }, n); }, k.prototype.parseGenericNsAttributes = function (e) { return Object.entries(e).filter(([t, n]) => !t.startsWith("$") && this.parseNsAttribute(e, t, n)).map(([t, n]) => ({ name: t, value: n })); }, k.prototype.collectGenericContainments = function (e) { var t = this, n = [], r = e.$body; r && n.push({ create: function () { return new fe().build({ type: "String" }, r); } }); var i = e.$children; return i && A(i, function (o) { n.push({ create: function () { return new k(t); }, element: o }); }), n; }, k.prototype.parseNsAttribute = function (e, t, n) { var r = e.$model, i = D(t), o; if (i.prefix === "xmlns" && (o = { prefix: i.localName, uri: n }), !i.prefix && i.localName === "xmlns" && (o = { uri: n }), !o)
|
|
560
|
+
return { name: t, value: n }; if (r && r.getPackage(n))
|
|
561
|
+
this.logNamespace(o, !0, !0);
|
|
562
|
+
else {
|
|
563
|
+
var s = this.logNamespaceUsed(o, !0);
|
|
564
|
+
this.getNamespaces().logUsed(s);
|
|
565
|
+
} }, k.prototype.parseNsAttributes = function (e) { var t = this, n = e.$attrs, r = []; return A(n, function (i, o) { var s = t.parseNsAttribute(e, o, i); s && r.push(s); }), r; }, k.prototype.parseGenericAttributes = function (e, t) { var n = this; A(t, function (r) { try {
|
|
566
|
+
n.addAttribute(n.nsAttributeName(r.name), r.value);
|
|
567
|
+
}
|
|
568
|
+
catch (i) {
|
|
569
|
+
typeof console < "u" && console.warn("missing namespace information for <".concat(r.name, "=").concat(r.value, "> on"), e, i);
|
|
570
|
+
} }); }, k.prototype.collectContainments = function (e) { var t = this, n = this.element, r = []; return A(e, function (i) { var o = n.get(i.name), s = i.isReference; if (i.isMany || (o = [o]), i.isBody)
|
|
571
|
+
r.push({ create: function () { return new fe().build(i, o[0]); } });
|
|
572
|
+
else if (Et(i.type))
|
|
573
|
+
A(o, function (l) { r.push({ create: function () { return new ot(t.addTagName(t.nsPropertyTagName(i))).build(i, l); } }); });
|
|
574
|
+
else if (s)
|
|
575
|
+
A(o, function (l) { r.push({ create: function () { return new it(t.addTagName(t.nsPropertyTagName(i))).build(l); } }); });
|
|
576
|
+
else {
|
|
577
|
+
var p = Pt(i);
|
|
578
|
+
A(o, function (l) { r.push({ create: function () { return p ? p === Mt ? new k(t, i) : new Oe(t, i, p) : new k(t); }, element: l }); });
|
|
579
|
+
} }), r; }, k.prototype.getNamespaces = function (e) { var t = this.namespaces; if (!t) {
|
|
580
|
+
var n = this.getParentNamespaces();
|
|
581
|
+
e || !n ? this.namespaces = t = new X(n) : t = n;
|
|
582
|
+
} return t; }, k.prototype.getParentNamespaces = function () { if (this.parentNamespaces !== void 0)
|
|
583
|
+
return this.parentNamespaces; for (var e = null, t = this.parent; t;) {
|
|
584
|
+
if (t.namespaces) {
|
|
585
|
+
e = t.namespaces;
|
|
586
|
+
break;
|
|
587
|
+
}
|
|
588
|
+
if (t.parentNamespaces !== void 0) {
|
|
589
|
+
e = t.parentNamespaces;
|
|
590
|
+
break;
|
|
591
|
+
}
|
|
592
|
+
t = t.parent;
|
|
593
|
+
} return this.parentNamespaces = e; }, k.prototype.logNamespace = function (e, t, n) { var r = this.getNamespaces(n), i = e.uri, o = e.prefix; return (!r.byUri(i) || n) && r.add(e, t), r.mapPrefix(o, i), e; }, k.prototype.logNamespaceUsed = function (e, t) { var n = this.getNamespaces(t), r = e.prefix, i = e.uri, o, s, p; if (!r && !i)
|
|
594
|
+
return { localName: e.localName }; if (p = n.defaultUriByPrefix(r), i = i || p || n.uriByPrefix(r), !i)
|
|
595
|
+
throw Error("no namespace uri given for prefix <" + r + ">"); if (e = n.byUri(i), !e && !r && (e = this.logNamespace({ uri: i }, p === i, !0)), !e) {
|
|
596
|
+
for (o = r, s = 1; n.uriByPrefix(o);)
|
|
597
|
+
o = r + "_" + s++;
|
|
598
|
+
e = this.logNamespace({ prefix: o, uri: i }, p === i);
|
|
599
|
+
} return r && n.mapPrefix(r, i), e; }, k.prototype.parseAttributes = function (e) { var t = this, n = this.element; A(e, function (r) { var i = n.get(r.name); if (r.isReference)
|
|
600
|
+
if (!r.isMany)
|
|
601
|
+
i = i.id;
|
|
602
|
+
else {
|
|
603
|
+
var o = [];
|
|
604
|
+
A(i, function (s) { o.push(s.id); }), i = o.join(" ");
|
|
605
|
+
} t.addAttribute(t.nsAttributeName(r), i); }); }, k.prototype.addTagName = function (e) { var t = this.logNamespaceUsed(e); return this.getNamespaces().logUsed(t), kt(e); }, k.prototype.addAttribute = function (e, t) { var n = this.attrs; se(t) && (t = Lt(t)); var r = ft(n, function (o) { return o.name.localName === e.localName && o.name.uri === e.uri && o.name.prefix === e.prefix; }), i = { name: e, value: t }; r === -1 ? n.push(i) : n.splice(r, 1, i); }, k.prototype.serializeAttributes = function (e) { var t = this.attrs, n = this.namespaces; n && (t = un(n).concat(t)), A(t, function (r) { e.append(" ").append(kt(r.name)).append('="').append(r.value).append('"'); }); }, k.prototype.serializeTo = function (e) { wn(this, e); };
|
|
606
|
+
Dt(Oe, k), Oe.prototype.parseNsAttributes = function (e) { var t = k.prototype.parseNsAttributes.call(this, e).filter(s => s.name !== this.serialization), n = e.$descriptor; if (n.name === this.propertyDescriptor.type)
|
|
607
|
+
return t; var r = this.typeNs = this.nsTagName(n); this.getNamespaces().logUsed(this.typeNs); var i = e.$model.getPackage(r.uri), o = i.xml && i.xml.typePrefix || ""; return this.addAttribute(this.nsAttributeName(this.serialization), (r.prefix ? r.prefix + ":" : "") + o + n.ns.localName), t; }, Oe.prototype.isLocalNs = function (e) { return e.uri === (this.typeNs || this.ns).uri; };
|
|
608
|
+
Le.prototype = Object.create(K.prototype), Le.prototype.fromXML = function (e, t, n) { se(t) || (n = t, t = "bpmn:Definitions"); var r = new rt(E({ model: this, lax: !0 }, n)), i = r.handler(t); return r.fromXML(e, i); }, Le.prototype.toXML = function (e, t) { var n = new jn(t); return new Promise(function (r, i) { try {
|
|
609
|
+
return r({ xml: n.toXML(e) });
|
|
610
|
+
}
|
|
611
|
+
catch (o) {
|
|
612
|
+
return i(o);
|
|
613
|
+
} }); };
|
|
614
|
+
En = { bpmn: { name: "BPMN20", uri: "http://www.omg.org/spec/BPMN/20100524/MODEL", prefix: "bpmn", associations: [], types: [{ name: "Interface", superClass: ["RootElement"], properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "operations", type: "Operation", isMany: !0 }, { name: "implementationRef", isAttr: !0, type: "String" }] }, { name: "Operation", superClass: ["BaseElement"], properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "inMessageRef", type: "Message", isReference: !0 }, { name: "outMessageRef", type: "Message", isReference: !0 }, { name: "errorRef", type: "Error", isMany: !0, isReference: !0 }, { name: "implementationRef", isAttr: !0, type: "String" }] }, { name: "EndPoint", superClass: ["RootElement"] }, { name: "Auditing", superClass: ["BaseElement"] }, { name: "GlobalTask", superClass: ["CallableElement"], properties: [{ name: "resources", type: "ResourceRole", isMany: !0 }] }, { name: "Monitoring", superClass: ["BaseElement"] }, { name: "Performer", superClass: ["ResourceRole"] }, { name: "Process", superClass: ["FlowElementsContainer", "CallableElement"], properties: [{ name: "processType", type: "ProcessType", isAttr: !0 }, { name: "isClosed", isAttr: !0, type: "Boolean" }, { name: "auditing", type: "Auditing" }, { name: "monitoring", type: "Monitoring" }, { name: "properties", type: "Property", isMany: !0 }, { name: "laneSets", isMany: !0, replaces: "FlowElementsContainer#laneSets", type: "LaneSet" }, { name: "flowElements", isMany: !0, replaces: "FlowElementsContainer#flowElements", type: "FlowElement" }, { name: "artifacts", type: "Artifact", isMany: !0 }, { name: "resources", type: "ResourceRole", isMany: !0 }, { name: "correlationSubscriptions", type: "CorrelationSubscription", isMany: !0 }, { name: "supports", type: "Process", isMany: !0, isReference: !0 }, { name: "definitionalCollaborationRef", type: "Collaboration", isAttr: !0, isReference: !0 }, { name: "isExecutable", isAttr: !0, type: "Boolean" }] }, { name: "LaneSet", superClass: ["BaseElement"], properties: [{ name: "lanes", type: "Lane", isMany: !0 }, { name: "name", isAttr: !0, type: "String" }] }, { name: "Lane", superClass: ["BaseElement"], properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "partitionElementRef", type: "BaseElement", isAttr: !0, isReference: !0 }, { name: "partitionElement", type: "BaseElement" }, { name: "flowNodeRef", type: "FlowNode", isMany: !0, isReference: !0 }, { name: "childLaneSet", type: "LaneSet", xml: { serialize: "xsi:type" } }] }, { name: "GlobalManualTask", superClass: ["GlobalTask"] }, { name: "ManualTask", superClass: ["Task"] }, { name: "UserTask", superClass: ["Task"], properties: [{ name: "renderings", type: "Rendering", isMany: !0 }, { name: "implementation", isAttr: !0, type: "String" }] }, { name: "Rendering", superClass: ["BaseElement"] }, { name: "HumanPerformer", superClass: ["Performer"] }, { name: "PotentialOwner", superClass: ["HumanPerformer"] }, { name: "GlobalUserTask", superClass: ["GlobalTask"], properties: [{ name: "implementation", isAttr: !0, type: "String" }, { name: "renderings", type: "Rendering", isMany: !0 }] }, { name: "Gateway", isAbstract: !0, superClass: ["FlowNode"], properties: [{ name: "gatewayDirection", type: "GatewayDirection", default: "Unspecified", isAttr: !0 }] }, { name: "EventBasedGateway", superClass: ["Gateway"], properties: [{ name: "instantiate", default: !1, isAttr: !0, type: "Boolean" }, { name: "eventGatewayType", type: "EventBasedGatewayType", isAttr: !0, default: "Exclusive" }] }, { name: "ComplexGateway", superClass: ["Gateway"], properties: [{ name: "activationCondition", type: "Expression", xml: { serialize: "xsi:type" } }, { name: "default", type: "SequenceFlow", isAttr: !0, isReference: !0 }] }, { name: "ExclusiveGateway", superClass: ["Gateway"], properties: [{ name: "default", type: "SequenceFlow", isAttr: !0, isReference: !0 }] }, { name: "InclusiveGateway", superClass: ["Gateway"], properties: [{ name: "default", type: "SequenceFlow", isAttr: !0, isReference: !0 }] }, { name: "ParallelGateway", superClass: ["Gateway"] }, { name: "RootElement", isAbstract: !0, superClass: ["BaseElement"] }, { name: "Relationship", superClass: ["BaseElement"], properties: [{ name: "type", isAttr: !0, type: "String" }, { name: "direction", type: "RelationshipDirection", isAttr: !0 }, { name: "source", isMany: !0, isReference: !0, type: "Element" }, { name: "target", isMany: !0, isReference: !0, type: "Element" }] }, { name: "BaseElement", isAbstract: !0, properties: [{ name: "id", isAttr: !0, type: "String", isId: !0 }, { name: "documentation", type: "Documentation", isMany: !0 }, { name: "extensionDefinitions", type: "ExtensionDefinition", isMany: !0, isReference: !0 }, { name: "extensionElements", type: "ExtensionElements" }] }, { name: "Extension", properties: [{ name: "mustUnderstand", default: !1, isAttr: !0, type: "Boolean" }, { name: "definition", type: "ExtensionDefinition", isAttr: !0, isReference: !0 }] }, { name: "ExtensionDefinition", properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "extensionAttributeDefinitions", type: "ExtensionAttributeDefinition", isMany: !0 }] }, { name: "ExtensionAttributeDefinition", properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "type", isAttr: !0, type: "String" }, { name: "isReference", default: !1, isAttr: !0, type: "Boolean" }, { name: "extensionDefinition", type: "ExtensionDefinition", isAttr: !0, isReference: !0 }] }, { name: "ExtensionElements", properties: [{ name: "valueRef", isAttr: !0, isReference: !0, type: "Element" }, { name: "values", type: "Element", isMany: !0 }, { name: "extensionAttributeDefinition", type: "ExtensionAttributeDefinition", isAttr: !0, isReference: !0 }] }, { name: "Documentation", superClass: ["BaseElement"], properties: [{ name: "text", type: "String", isBody: !0 }, { name: "textFormat", default: "text/plain", isAttr: !0, type: "String" }] }, { name: "Event", isAbstract: !0, superClass: ["FlowNode", "InteractionNode"], properties: [{ name: "properties", type: "Property", isMany: !0 }] }, { name: "IntermediateCatchEvent", superClass: ["CatchEvent"] }, { name: "IntermediateThrowEvent", superClass: ["ThrowEvent"] }, { name: "EndEvent", superClass: ["ThrowEvent"] }, { name: "StartEvent", superClass: ["CatchEvent"], properties: [{ name: "isInterrupting", default: !0, isAttr: !0, type: "Boolean" }] }, { name: "ThrowEvent", isAbstract: !0, superClass: ["Event"], properties: [{ name: "dataInputs", type: "DataInput", isMany: !0 }, { name: "dataInputAssociations", type: "DataInputAssociation", isMany: !0 }, { name: "inputSet", type: "InputSet" }, { name: "eventDefinitions", type: "EventDefinition", isMany: !0 }, { name: "eventDefinitionRef", type: "EventDefinition", isMany: !0, isReference: !0 }] }, { name: "CatchEvent", isAbstract: !0, superClass: ["Event"], properties: [{ name: "parallelMultiple", isAttr: !0, type: "Boolean", default: !1 }, { name: "dataOutputs", type: "DataOutput", isMany: !0 }, { name: "dataOutputAssociations", type: "DataOutputAssociation", isMany: !0 }, { name: "outputSet", type: "OutputSet" }, { name: "eventDefinitions", type: "EventDefinition", isMany: !0 }, { name: "eventDefinitionRef", type: "EventDefinition", isMany: !0, isReference: !0 }] }, { name: "BoundaryEvent", superClass: ["CatchEvent"], properties: [{ name: "cancelActivity", default: !0, isAttr: !0, type: "Boolean" }, { name: "attachedToRef", type: "Activity", isAttr: !0, isReference: !0 }] }, { name: "EventDefinition", isAbstract: !0, superClass: ["RootElement"] }, { name: "CancelEventDefinition", superClass: ["EventDefinition"] }, { name: "ErrorEventDefinition", superClass: ["EventDefinition"], properties: [{ name: "errorRef", type: "Error", isAttr: !0, isReference: !0 }] }, { name: "TerminateEventDefinition", superClass: ["EventDefinition"] }, { name: "EscalationEventDefinition", superClass: ["EventDefinition"], properties: [{ name: "escalationRef", type: "Escalation", isAttr: !0, isReference: !0 }] }, { name: "Escalation", properties: [{ name: "structureRef", type: "ItemDefinition", isAttr: !0, isReference: !0 }, { name: "name", isAttr: !0, type: "String" }, { name: "escalationCode", isAttr: !0, type: "String" }], superClass: ["RootElement"] }, { name: "CompensateEventDefinition", superClass: ["EventDefinition"], properties: [{ name: "waitForCompletion", isAttr: !0, type: "Boolean", default: !0 }, { name: "activityRef", type: "Activity", isAttr: !0, isReference: !0 }] }, { name: "TimerEventDefinition", superClass: ["EventDefinition"], properties: [{ name: "timeDate", type: "Expression", xml: { serialize: "xsi:type" } }, { name: "timeCycle", type: "Expression", xml: { serialize: "xsi:type" } }, { name: "timeDuration", type: "Expression", xml: { serialize: "xsi:type" } }] }, { name: "LinkEventDefinition", superClass: ["EventDefinition"], properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "target", type: "LinkEventDefinition", isReference: !0 }, { name: "source", type: "LinkEventDefinition", isMany: !0, isReference: !0 }] }, { name: "MessageEventDefinition", superClass: ["EventDefinition"], properties: [{ name: "messageRef", type: "Message", isAttr: !0, isReference: !0 }, { name: "operationRef", type: "Operation", isReference: !0 }] }, { name: "ConditionalEventDefinition", superClass: ["EventDefinition"], properties: [{ name: "condition", type: "Expression", xml: { serialize: "xsi:type" } }] }, { name: "SignalEventDefinition", superClass: ["EventDefinition"], properties: [{ name: "signalRef", type: "Signal", isAttr: !0, isReference: !0 }] }, { name: "Signal", superClass: ["RootElement"], properties: [{ name: "structureRef", type: "ItemDefinition", isAttr: !0, isReference: !0 }, { name: "name", isAttr: !0, type: "String" }] }, { name: "ImplicitThrowEvent", superClass: ["ThrowEvent"] }, { name: "DataState", superClass: ["BaseElement"], properties: [{ name: "name", isAttr: !0, type: "String" }] }, { name: "ItemAwareElement", superClass: ["BaseElement"], properties: [{ name: "itemSubjectRef", type: "ItemDefinition", isAttr: !0, isReference: !0 }, { name: "dataState", type: "DataState" }] }, { name: "DataAssociation", superClass: ["BaseElement"], properties: [{ name: "sourceRef", type: "ItemAwareElement", isMany: !0, isReference: !0 }, { name: "targetRef", type: "ItemAwareElement", isReference: !0 }, { name: "transformation", type: "FormalExpression", xml: { serialize: "property" } }, { name: "assignment", type: "Assignment", isMany: !0 }] }, { name: "DataInput", superClass: ["ItemAwareElement"], properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "isCollection", default: !1, isAttr: !0, type: "Boolean" }, { name: "inputSetRef", type: "InputSet", isMany: !0, isVirtual: !0, isReference: !0 }, { name: "inputSetWithOptional", type: "InputSet", isMany: !0, isVirtual: !0, isReference: !0 }, { name: "inputSetWithWhileExecuting", type: "InputSet", isMany: !0, isVirtual: !0, isReference: !0 }] }, { name: "DataOutput", superClass: ["ItemAwareElement"], properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "isCollection", default: !1, isAttr: !0, type: "Boolean" }, { name: "outputSetRef", type: "OutputSet", isMany: !0, isVirtual: !0, isReference: !0 }, { name: "outputSetWithOptional", type: "OutputSet", isMany: !0, isVirtual: !0, isReference: !0 }, { name: "outputSetWithWhileExecuting", type: "OutputSet", isMany: !0, isVirtual: !0, isReference: !0 }] }, { name: "InputSet", superClass: ["BaseElement"], properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "dataInputRefs", type: "DataInput", isMany: !0, isReference: !0 }, { name: "optionalInputRefs", type: "DataInput", isMany: !0, isReference: !0 }, { name: "whileExecutingInputRefs", type: "DataInput", isMany: !0, isReference: !0 }, { name: "outputSetRefs", type: "OutputSet", isMany: !0, isReference: !0 }] }, { name: "OutputSet", superClass: ["BaseElement"], properties: [{ name: "dataOutputRefs", type: "DataOutput", isMany: !0, isReference: !0 }, { name: "name", isAttr: !0, type: "String" }, { name: "inputSetRefs", type: "InputSet", isMany: !0, isReference: !0 }, { name: "optionalOutputRefs", type: "DataOutput", isMany: !0, isReference: !0 }, { name: "whileExecutingOutputRefs", type: "DataOutput", isMany: !0, isReference: !0 }] }, { name: "Property", superClass: ["ItemAwareElement"], properties: [{ name: "name", isAttr: !0, type: "String" }] }, { name: "DataInputAssociation", superClass: ["DataAssociation"] }, { name: "DataOutputAssociation", superClass: ["DataAssociation"] }, { name: "InputOutputSpecification", superClass: ["BaseElement"], properties: [{ name: "dataInputs", type: "DataInput", isMany: !0 }, { name: "dataOutputs", type: "DataOutput", isMany: !0 }, { name: "inputSets", type: "InputSet", isMany: !0 }, { name: "outputSets", type: "OutputSet", isMany: !0 }] }, { name: "DataObject", superClass: ["FlowElement", "ItemAwareElement"], properties: [{ name: "isCollection", default: !1, isAttr: !0, type: "Boolean" }] }, { name: "InputOutputBinding", properties: [{ name: "inputDataRef", type: "InputSet", isAttr: !0, isReference: !0 }, { name: "outputDataRef", type: "OutputSet", isAttr: !0, isReference: !0 }, { name: "operationRef", type: "Operation", isAttr: !0, isReference: !0 }] }, { name: "Assignment", superClass: ["BaseElement"], properties: [{ name: "from", type: "Expression", xml: { serialize: "xsi:type" } }, { name: "to", type: "Expression", xml: { serialize: "xsi:type" } }] }, { name: "DataStore", superClass: ["RootElement", "ItemAwareElement"], properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "capacity", isAttr: !0, type: "Integer" }, { name: "isUnlimited", default: !0, isAttr: !0, type: "Boolean" }] }, { name: "DataStoreReference", superClass: ["ItemAwareElement", "FlowElement"], properties: [{ name: "dataStoreRef", type: "DataStore", isAttr: !0, isReference: !0 }] }, { name: "DataObjectReference", superClass: ["ItemAwareElement", "FlowElement"], properties: [{ name: "dataObjectRef", type: "DataObject", isAttr: !0, isReference: !0 }] }, { name: "ConversationLink", superClass: ["BaseElement"], properties: [{ name: "sourceRef", type: "InteractionNode", isAttr: !0, isReference: !0 }, { name: "targetRef", type: "InteractionNode", isAttr: !0, isReference: !0 }, { name: "name", isAttr: !0, type: "String" }] }, { name: "ConversationAssociation", superClass: ["BaseElement"], properties: [{ name: "innerConversationNodeRef", type: "ConversationNode", isAttr: !0, isReference: !0 }, { name: "outerConversationNodeRef", type: "ConversationNode", isAttr: !0, isReference: !0 }] }, { name: "CallConversation", superClass: ["ConversationNode"], properties: [{ name: "calledCollaborationRef", type: "Collaboration", isAttr: !0, isReference: !0 }, { name: "participantAssociations", type: "ParticipantAssociation", isMany: !0 }] }, { name: "Conversation", superClass: ["ConversationNode"] }, { name: "SubConversation", superClass: ["ConversationNode"], properties: [{ name: "conversationNodes", type: "ConversationNode", isMany: !0 }] }, { name: "ConversationNode", isAbstract: !0, superClass: ["InteractionNode", "BaseElement"], properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "participantRef", type: "Participant", isMany: !0, isReference: !0 }, { name: "messageFlowRefs", type: "MessageFlow", isMany: !0, isReference: !0 }, { name: "correlationKeys", type: "CorrelationKey", isMany: !0 }] }, { name: "GlobalConversation", superClass: ["Collaboration"] }, { name: "PartnerEntity", superClass: ["RootElement"], properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "participantRef", type: "Participant", isMany: !0, isReference: !0 }] }, { name: "PartnerRole", superClass: ["RootElement"], properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "participantRef", type: "Participant", isMany: !0, isReference: !0 }] }, { name: "CorrelationProperty", superClass: ["RootElement"], properties: [{ name: "correlationPropertyRetrievalExpression", type: "CorrelationPropertyRetrievalExpression", isMany: !0 }, { name: "name", isAttr: !0, type: "String" }, { name: "type", type: "ItemDefinition", isAttr: !0, isReference: !0 }] }, { name: "Error", superClass: ["RootElement"], properties: [{ name: "structureRef", type: "ItemDefinition", isAttr: !0, isReference: !0 }, { name: "name", isAttr: !0, type: "String" }, { name: "errorCode", isAttr: !0, type: "String" }] }, { name: "CorrelationKey", superClass: ["BaseElement"], properties: [{ name: "correlationPropertyRef", type: "CorrelationProperty", isMany: !0, isReference: !0 }, { name: "name", isAttr: !0, type: "String" }] }, { name: "Expression", superClass: ["BaseElement"], isAbstract: !1, properties: [{ name: "body", isBody: !0, type: "String" }] }, { name: "FormalExpression", superClass: ["Expression"], properties: [{ name: "language", isAttr: !0, type: "String" }, { name: "evaluatesToTypeRef", type: "ItemDefinition", isAttr: !0, isReference: !0 }] }, { name: "Message", superClass: ["RootElement"], properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "itemRef", type: "ItemDefinition", isAttr: !0, isReference: !0 }] }, { name: "ItemDefinition", superClass: ["RootElement"], properties: [{ name: "itemKind", type: "ItemKind", isAttr: !0 }, { name: "structureRef", isAttr: !0, type: "String" }, { name: "isCollection", default: !1, isAttr: !0, type: "Boolean" }, { name: "import", type: "Import", isAttr: !0, isReference: !0 }] }, { name: "FlowElement", isAbstract: !0, superClass: ["BaseElement"], properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "auditing", type: "Auditing" }, { name: "monitoring", type: "Monitoring" }, { name: "categoryValueRef", type: "CategoryValue", isMany: !0, isReference: !0 }] }, { name: "SequenceFlow", superClass: ["FlowElement"], properties: [{ name: "isImmediate", isAttr: !0, type: "Boolean" }, { name: "conditionExpression", type: "Expression", xml: { serialize: "xsi:type" } }, { name: "sourceRef", type: "FlowNode", isAttr: !0, isReference: !0 }, { name: "targetRef", type: "FlowNode", isAttr: !0, isReference: !0 }] }, { name: "FlowElementsContainer", isAbstract: !0, superClass: ["BaseElement"], properties: [{ name: "laneSets", type: "LaneSet", isMany: !0 }, { name: "flowElements", type: "FlowElement", isMany: !0 }] }, { name: "CallableElement", isAbstract: !0, superClass: ["RootElement"], properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "ioSpecification", type: "InputOutputSpecification", xml: { serialize: "property" } }, { name: "supportedInterfaceRef", type: "Interface", isMany: !0, isReference: !0 }, { name: "ioBinding", type: "InputOutputBinding", isMany: !0, xml: { serialize: "property" } }] }, { name: "FlowNode", isAbstract: !0, superClass: ["FlowElement"], properties: [{ name: "incoming", type: "SequenceFlow", isMany: !0, isReference: !0 }, { name: "outgoing", type: "SequenceFlow", isMany: !0, isReference: !0 }, { name: "lanes", type: "Lane", isMany: !0, isVirtual: !0, isReference: !0 }] }, { name: "CorrelationPropertyRetrievalExpression", superClass: ["BaseElement"], properties: [{ name: "messagePath", type: "FormalExpression" }, { name: "messageRef", type: "Message", isAttr: !0, isReference: !0 }] }, { name: "CorrelationPropertyBinding", superClass: ["BaseElement"], properties: [{ name: "dataPath", type: "FormalExpression" }, { name: "correlationPropertyRef", type: "CorrelationProperty", isAttr: !0, isReference: !0 }] }, { name: "Resource", superClass: ["RootElement"], properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "resourceParameters", type: "ResourceParameter", isMany: !0 }] }, { name: "ResourceParameter", superClass: ["BaseElement"], properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "isRequired", isAttr: !0, type: "Boolean" }, { name: "type", type: "ItemDefinition", isAttr: !0, isReference: !0 }] }, { name: "CorrelationSubscription", superClass: ["BaseElement"], properties: [{ name: "correlationKeyRef", type: "CorrelationKey", isAttr: !0, isReference: !0 }, { name: "correlationPropertyBinding", type: "CorrelationPropertyBinding", isMany: !0 }] }, { name: "MessageFlow", superClass: ["BaseElement"], properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "sourceRef", type: "InteractionNode", isAttr: !0, isReference: !0 }, { name: "targetRef", type: "InteractionNode", isAttr: !0, isReference: !0 }, { name: "messageRef", type: "Message", isAttr: !0, isReference: !0 }] }, { name: "MessageFlowAssociation", superClass: ["BaseElement"], properties: [{ name: "innerMessageFlowRef", type: "MessageFlow", isAttr: !0, isReference: !0 }, { name: "outerMessageFlowRef", type: "MessageFlow", isAttr: !0, isReference: !0 }] }, { name: "InteractionNode", isAbstract: !0, properties: [{ name: "incomingConversationLinks", type: "ConversationLink", isMany: !0, isVirtual: !0, isReference: !0 }, { name: "outgoingConversationLinks", type: "ConversationLink", isMany: !0, isVirtual: !0, isReference: !0 }] }, { name: "Participant", superClass: ["InteractionNode", "BaseElement"], properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "interfaceRef", type: "Interface", isMany: !0, isReference: !0 }, { name: "participantMultiplicity", type: "ParticipantMultiplicity" }, { name: "endPointRefs", type: "EndPoint", isMany: !0, isReference: !0 }, { name: "processRef", type: "Process", isAttr: !0, isReference: !0 }] }, { name: "ParticipantAssociation", superClass: ["BaseElement"], properties: [{ name: "innerParticipantRef", type: "Participant", isAttr: !0, isReference: !0 }, { name: "outerParticipantRef", type: "Participant", isAttr: !0, isReference: !0 }] }, { name: "ParticipantMultiplicity", properties: [{ name: "minimum", default: 0, isAttr: !0, type: "Integer" }, { name: "maximum", default: 1, isAttr: !0, type: "Integer" }], superClass: ["BaseElement"] }, { name: "Collaboration", superClass: ["RootElement"], properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "isClosed", isAttr: !0, type: "Boolean" }, { name: "participants", type: "Participant", isMany: !0 }, { name: "messageFlows", type: "MessageFlow", isMany: !0 }, { name: "artifacts", type: "Artifact", isMany: !0 }, { name: "conversations", type: "ConversationNode", isMany: !0 }, { name: "conversationAssociations", type: "ConversationAssociation" }, { name: "participantAssociations", type: "ParticipantAssociation", isMany: !0 }, { name: "messageFlowAssociations", type: "MessageFlowAssociation", isMany: !0 }, { name: "correlationKeys", type: "CorrelationKey", isMany: !0 }, { name: "choreographyRef", type: "Choreography", isMany: !0, isReference: !0 }, { name: "conversationLinks", type: "ConversationLink", isMany: !0 }] }, { name: "ChoreographyActivity", isAbstract: !0, superClass: ["FlowNode"], properties: [{ name: "participantRef", type: "Participant", isMany: !0, isReference: !0 }, { name: "initiatingParticipantRef", type: "Participant", isAttr: !0, isReference: !0 }, { name: "correlationKeys", type: "CorrelationKey", isMany: !0 }, { name: "loopType", type: "ChoreographyLoopType", default: "None", isAttr: !0 }] }, { name: "CallChoreography", superClass: ["ChoreographyActivity"], properties: [{ name: "calledChoreographyRef", type: "Choreography", isAttr: !0, isReference: !0 }, { name: "participantAssociations", type: "ParticipantAssociation", isMany: !0 }] }, { name: "SubChoreography", superClass: ["ChoreographyActivity", "FlowElementsContainer"], properties: [{ name: "artifacts", type: "Artifact", isMany: !0 }] }, { name: "ChoreographyTask", superClass: ["ChoreographyActivity"], properties: [{ name: "messageFlowRef", type: "MessageFlow", isMany: !0, isReference: !0 }] }, { name: "Choreography", superClass: ["Collaboration", "FlowElementsContainer"] }, { name: "GlobalChoreographyTask", superClass: ["Choreography"], properties: [{ name: "initiatingParticipantRef", type: "Participant", isAttr: !0, isReference: !0 }] }, { name: "TextAnnotation", superClass: ["Artifact"], properties: [{ name: "text", type: "String" }, { name: "textFormat", default: "text/plain", isAttr: !0, type: "String" }] }, { name: "Group", superClass: ["Artifact"], properties: [{ name: "categoryValueRef", type: "CategoryValue", isAttr: !0, isReference: !0 }] }, { name: "Association", superClass: ["Artifact"], properties: [{ name: "associationDirection", type: "AssociationDirection", isAttr: !0 }, { name: "sourceRef", type: "BaseElement", isAttr: !0, isReference: !0 }, { name: "targetRef", type: "BaseElement", isAttr: !0, isReference: !0 }] }, { name: "Category", superClass: ["RootElement"], properties: [{ name: "categoryValue", type: "CategoryValue", isMany: !0 }, { name: "name", isAttr: !0, type: "String" }] }, { name: "Artifact", isAbstract: !0, superClass: ["BaseElement"] }, { name: "CategoryValue", superClass: ["BaseElement"], properties: [{ name: "categorizedFlowElements", type: "FlowElement", isMany: !0, isVirtual: !0, isReference: !0 }, { name: "value", isAttr: !0, type: "String" }] }, { name: "Activity", isAbstract: !0, superClass: ["FlowNode"], properties: [{ name: "isForCompensation", default: !1, isAttr: !0, type: "Boolean" }, { name: "default", type: "SequenceFlow", isAttr: !0, isReference: !0 }, { name: "ioSpecification", type: "InputOutputSpecification", xml: { serialize: "property" } }, { name: "boundaryEventRefs", type: "BoundaryEvent", isMany: !0, isReference: !0 }, { name: "properties", type: "Property", isMany: !0 }, { name: "dataInputAssociations", type: "DataInputAssociation", isMany: !0 }, { name: "dataOutputAssociations", type: "DataOutputAssociation", isMany: !0 }, { name: "startQuantity", default: 1, isAttr: !0, type: "Integer" }, { name: "resources", type: "ResourceRole", isMany: !0 }, { name: "completionQuantity", default: 1, isAttr: !0, type: "Integer" }, { name: "loopCharacteristics", type: "LoopCharacteristics" }] }, { name: "ServiceTask", superClass: ["Task"], properties: [{ name: "implementation", isAttr: !0, type: "String" }, { name: "operationRef", type: "Operation", isAttr: !0, isReference: !0 }] }, { name: "SubProcess", superClass: ["Activity", "FlowElementsContainer", "InteractionNode"], properties: [{ name: "triggeredByEvent", default: !1, isAttr: !0, type: "Boolean" }, { name: "artifacts", type: "Artifact", isMany: !0 }] }, { name: "LoopCharacteristics", isAbstract: !0, superClass: ["BaseElement"] }, { name: "MultiInstanceLoopCharacteristics", superClass: ["LoopCharacteristics"], properties: [{ name: "isSequential", default: !1, isAttr: !0, type: "Boolean" }, { name: "behavior", type: "MultiInstanceBehavior", default: "All", isAttr: !0 }, { name: "loopCardinality", type: "Expression", xml: { serialize: "xsi:type" } }, { name: "loopDataInputRef", type: "ItemAwareElement", isReference: !0 }, { name: "loopDataOutputRef", type: "ItemAwareElement", isReference: !0 }, { name: "inputDataItem", type: "DataInput", xml: { serialize: "property" } }, { name: "outputDataItem", type: "DataOutput", xml: { serialize: "property" } }, { name: "complexBehaviorDefinition", type: "ComplexBehaviorDefinition", isMany: !0 }, { name: "completionCondition", type: "Expression", xml: { serialize: "xsi:type" } }, { name: "oneBehaviorEventRef", type: "EventDefinition", isAttr: !0, isReference: !0 }, { name: "noneBehaviorEventRef", type: "EventDefinition", isAttr: !0, isReference: !0 }] }, { name: "StandardLoopCharacteristics", superClass: ["LoopCharacteristics"], properties: [{ name: "testBefore", default: !1, isAttr: !0, type: "Boolean" }, { name: "loopCondition", type: "Expression", xml: { serialize: "xsi:type" } }, { name: "loopMaximum", type: "Integer", isAttr: !0 }] }, { name: "CallActivity", superClass: ["Activity", "InteractionNode"], properties: [{ name: "calledElement", type: "String", isAttr: !0 }] }, { name: "Task", superClass: ["Activity", "InteractionNode"] }, { name: "SendTask", superClass: ["Task"], properties: [{ name: "implementation", isAttr: !0, type: "String" }, { name: "operationRef", type: "Operation", isAttr: !0, isReference: !0 }, { name: "messageRef", type: "Message", isAttr: !0, isReference: !0 }] }, { name: "ReceiveTask", superClass: ["Task"], properties: [{ name: "implementation", isAttr: !0, type: "String" }, { name: "instantiate", default: !1, isAttr: !0, type: "Boolean" }, { name: "operationRef", type: "Operation", isAttr: !0, isReference: !0 }, { name: "messageRef", type: "Message", isAttr: !0, isReference: !0 }] }, { name: "ScriptTask", superClass: ["Task"], properties: [{ name: "scriptFormat", isAttr: !0, type: "String" }, { name: "script", type: "String" }] }, { name: "BusinessRuleTask", superClass: ["Task"], properties: [{ name: "implementation", isAttr: !0, type: "String" }] }, { name: "AdHocSubProcess", superClass: ["SubProcess"], properties: [{ name: "completionCondition", type: "Expression", xml: { serialize: "xsi:type" } }, { name: "ordering", type: "AdHocOrdering", isAttr: !0 }, { name: "cancelRemainingInstances", default: !0, isAttr: !0, type: "Boolean" }] }, { name: "Transaction", superClass: ["SubProcess"], properties: [{ name: "protocol", isAttr: !0, type: "String" }, { name: "method", isAttr: !0, type: "String" }] }, { name: "GlobalScriptTask", superClass: ["GlobalTask"], properties: [{ name: "scriptLanguage", isAttr: !0, type: "String" }, { name: "script", isAttr: !0, type: "String" }] }, { name: "GlobalBusinessRuleTask", superClass: ["GlobalTask"], properties: [{ name: "implementation", isAttr: !0, type: "String" }] }, { name: "ComplexBehaviorDefinition", superClass: ["BaseElement"], properties: [{ name: "condition", type: "FormalExpression" }, { name: "event", type: "ImplicitThrowEvent" }] }, { name: "ResourceRole", superClass: ["BaseElement"], properties: [{ name: "resourceRef", type: "Resource", isReference: !0 }, { name: "resourceParameterBindings", type: "ResourceParameterBinding", isMany: !0 }, { name: "resourceAssignmentExpression", type: "ResourceAssignmentExpression" }, { name: "name", isAttr: !0, type: "String" }] }, { name: "ResourceParameterBinding", properties: [{ name: "expression", type: "Expression", xml: { serialize: "xsi:type" } }, { name: "parameterRef", type: "ResourceParameter", isAttr: !0, isReference: !0 }], superClass: ["BaseElement"] }, { name: "ResourceAssignmentExpression", properties: [{ name: "expression", type: "Expression", xml: { serialize: "xsi:type" } }], superClass: ["BaseElement"] }, { name: "Import", properties: [{ name: "importType", isAttr: !0, type: "String" }, { name: "location", isAttr: !0, type: "String" }, { name: "namespace", isAttr: !0, type: "String" }] }, { name: "Definitions", superClass: ["BaseElement"], properties: [{ name: "name", isAttr: !0, type: "String" }, { name: "targetNamespace", isAttr: !0, type: "String" }, { name: "expressionLanguage", default: "http://www.w3.org/1999/XPath", isAttr: !0, type: "String" }, { name: "typeLanguage", default: "http://www.w3.org/2001/XMLSchema", isAttr: !0, type: "String" }, { name: "imports", type: "Import", isMany: !0 }, { name: "extensions", type: "Extension", isMany: !0 }, { name: "rootElements", type: "RootElement", isMany: !0 }, { name: "diagrams", isMany: !0, type: "bpmndi:BPMNDiagram" }, { name: "exporter", isAttr: !0, type: "String" }, { name: "relationships", type: "Relationship", isMany: !0 }, { name: "exporterVersion", isAttr: !0, type: "String" }] }], enumerations: [{ name: "ProcessType", literalValues: [{ name: "None" }, { name: "Public" }, { name: "Private" }] }, { name: "GatewayDirection", literalValues: [{ name: "Unspecified" }, { name: "Converging" }, { name: "Diverging" }, { name: "Mixed" }] }, { name: "EventBasedGatewayType", literalValues: [{ name: "Parallel" }, { name: "Exclusive" }] }, { name: "RelationshipDirection", literalValues: [{ name: "None" }, { name: "Forward" }, { name: "Backward" }, { name: "Both" }] }, { name: "ItemKind", literalValues: [{ name: "Physical" }, { name: "Information" }] }, { name: "ChoreographyLoopType", literalValues: [{ name: "None" }, { name: "Standard" }, { name: "MultiInstanceSequential" }, { name: "MultiInstanceParallel" }] }, { name: "AssociationDirection", literalValues: [{ name: "None" }, { name: "One" }, { name: "Both" }] }, { name: "MultiInstanceBehavior", literalValues: [{ name: "None" }, { name: "One" }, { name: "All" }, { name: "Complex" }] }, { name: "AdHocOrdering", literalValues: [{ name: "Parallel" }, { name: "Sequential" }] }], xml: { tagAlias: "lowerCase", typePrefix: "t" } }, bpmndi: { name: "BPMNDI", uri: "http://www.omg.org/spec/BPMN/20100524/DI", prefix: "bpmndi", types: [{ name: "BPMNDiagram", properties: [{ name: "plane", type: "BPMNPlane", redefines: "di:Diagram#rootElement" }, { name: "labelStyle", type: "BPMNLabelStyle", isMany: !0 }], superClass: ["di:Diagram"] }, { name: "BPMNPlane", properties: [{ name: "bpmnElement", isAttr: !0, isReference: !0, type: "bpmn:BaseElement", redefines: "di:DiagramElement#modelElement" }], superClass: ["di:Plane"] }, { name: "BPMNShape", properties: [{ name: "bpmnElement", isAttr: !0, isReference: !0, type: "bpmn:BaseElement", redefines: "di:DiagramElement#modelElement" }, { name: "isHorizontal", isAttr: !0, type: "Boolean" }, { name: "isExpanded", isAttr: !0, type: "Boolean" }, { name: "isMarkerVisible", isAttr: !0, type: "Boolean" }, { name: "label", type: "BPMNLabel" }, { name: "isMessageVisible", isAttr: !0, type: "Boolean" }, { name: "participantBandKind", type: "ParticipantBandKind", isAttr: !0 }, { name: "choreographyActivityShape", type: "BPMNShape", isAttr: !0, isReference: !0 }], superClass: ["di:LabeledShape"] }, { name: "BPMNEdge", properties: [{ name: "label", type: "BPMNLabel" }, { name: "bpmnElement", isAttr: !0, isReference: !0, type: "bpmn:BaseElement", redefines: "di:DiagramElement#modelElement" }, { name: "sourceElement", isAttr: !0, isReference: !0, type: "di:DiagramElement", redefines: "di:Edge#source" }, { name: "targetElement", isAttr: !0, isReference: !0, type: "di:DiagramElement", redefines: "di:Edge#target" }, { name: "messageVisibleKind", type: "MessageVisibleKind", isAttr: !0, default: "initiating" }], superClass: ["di:LabeledEdge"] }, { name: "BPMNLabel", properties: [{ name: "labelStyle", type: "BPMNLabelStyle", isAttr: !0, isReference: !0, redefines: "di:DiagramElement#style" }], superClass: ["di:Label"] }, { name: "BPMNLabelStyle", properties: [{ name: "font", type: "dc:Font" }], superClass: ["di:Style"] }], enumerations: [{ name: "ParticipantBandKind", literalValues: [{ name: "top_initiating" }, { name: "middle_initiating" }, { name: "bottom_initiating" }, { name: "top_non_initiating" }, { name: "middle_non_initiating" }, { name: "bottom_non_initiating" }] }, { name: "MessageVisibleKind", literalValues: [{ name: "initiating" }, { name: "non_initiating" }] }], associations: [] }, dc: { name: "DC", uri: "http://www.omg.org/spec/DD/20100524/DC", prefix: "dc", types: [{ name: "Boolean" }, { name: "Integer" }, { name: "Real" }, { name: "String" }, { name: "Font", properties: [{ name: "name", type: "String", isAttr: !0 }, { name: "size", type: "Real", isAttr: !0 }, { name: "isBold", type: "Boolean", isAttr: !0 }, { name: "isItalic", type: "Boolean", isAttr: !0 }, { name: "isUnderline", type: "Boolean", isAttr: !0 }, { name: "isStrikeThrough", type: "Boolean", isAttr: !0 }] }, { name: "Point", properties: [{ name: "x", type: "Real", default: "0", isAttr: !0 }, { name: "y", type: "Real", default: "0", isAttr: !0 }] }, { name: "Bounds", properties: [{ name: "x", type: "Real", default: "0", isAttr: !0 }, { name: "y", type: "Real", default: "0", isAttr: !0 }, { name: "width", type: "Real", isAttr: !0 }, { name: "height", type: "Real", isAttr: !0 }] }], associations: [] }, di: { name: "DI", uri: "http://www.omg.org/spec/DD/20100524/DI", prefix: "di", types: [{ name: "DiagramElement", isAbstract: !0, properties: [{ name: "id", isAttr: !0, isId: !0, type: "String" }, { name: "extension", type: "Extension" }, { name: "owningDiagram", type: "Diagram", isReadOnly: !0, isVirtual: !0, isReference: !0 }, { name: "owningElement", type: "DiagramElement", isReadOnly: !0, isVirtual: !0, isReference: !0 }, { name: "modelElement", isReadOnly: !0, isVirtual: !0, isReference: !0, type: "Element" }, { name: "style", type: "Style", isReadOnly: !0, isVirtual: !0, isReference: !0 }, { name: "ownedElement", type: "DiagramElement", isReadOnly: !0, isMany: !0, isVirtual: !0 }] }, { name: "Node", isAbstract: !0, superClass: ["DiagramElement"] }, { name: "Edge", isAbstract: !0, superClass: ["DiagramElement"], properties: [{ name: "source", type: "DiagramElement", isReadOnly: !0, isVirtual: !0, isReference: !0 }, { name: "target", type: "DiagramElement", isReadOnly: !0, isVirtual: !0, isReference: !0 }, { name: "waypoint", isUnique: !1, isMany: !0, type: "dc:Point", xml: { serialize: "xsi:type" } }] }, { name: "Diagram", isAbstract: !0, properties: [{ name: "id", isAttr: !0, isId: !0, type: "String" }, { name: "rootElement", type: "DiagramElement", isReadOnly: !0, isVirtual: !0 }, { name: "name", isAttr: !0, type: "String" }, { name: "documentation", isAttr: !0, type: "String" }, { name: "resolution", isAttr: !0, type: "Real" }, { name: "ownedStyle", type: "Style", isReadOnly: !0, isMany: !0, isVirtual: !0 }] }, { name: "Shape", isAbstract: !0, superClass: ["Node"], properties: [{ name: "bounds", type: "dc:Bounds" }] }, { name: "Plane", isAbstract: !0, superClass: ["Node"], properties: [{ name: "planeElement", type: "DiagramElement", subsettedProperty: "DiagramElement-ownedElement", isMany: !0 }] }, { name: "LabeledEdge", isAbstract: !0, superClass: ["Edge"], properties: [{ name: "ownedLabel", type: "Label", isReadOnly: !0, subsettedProperty: "DiagramElement-ownedElement", isMany: !0, isVirtual: !0 }] }, { name: "LabeledShape", isAbstract: !0, superClass: ["Shape"], properties: [{ name: "ownedLabel", type: "Label", isReadOnly: !0, subsettedProperty: "DiagramElement-ownedElement", isMany: !0, isVirtual: !0 }] }, { name: "Label", isAbstract: !0, superClass: ["Node"], properties: [{ name: "bounds", type: "dc:Bounds" }] }, { name: "Style", isAbstract: !0, properties: [{ name: "id", isAttr: !0, isId: !0, type: "String" }] }, { name: "Extension", properties: [{ name: "values", isMany: !0, type: "Element" }] }], associations: [], xml: { tagAlias: "lowerCase" } }, bioc: { name: "bpmn.io colors for BPMN", uri: "http://bpmn.io/schema/bpmn/biocolor/1.0", prefix: "bioc", types: [{ name: "ColoredShape", extends: ["bpmndi:BPMNShape"], properties: [{ name: "stroke", isAttr: !0, type: "String" }, { name: "fill", isAttr: !0, type: "String" }] }, { name: "ColoredEdge", extends: ["bpmndi:BPMNEdge"], properties: [{ name: "stroke", isAttr: !0, type: "String" }, { name: "fill", isAttr: !0, type: "String" }] }], enumerations: [], associations: [] }, color: { name: "BPMN in Color", uri: "http://www.omg.org/spec/BPMN/non-normative/color/1.0", prefix: "color", types: [{ name: "ColoredLabel", extends: ["bpmndi:BPMNLabel"], properties: [{ name: "color", isAttr: !0, type: "String" }] }, { name: "ColoredShape", extends: ["bpmndi:BPMNShape"], properties: [{ name: "background-color", isAttr: !0, type: "String" }, { name: "border-color", isAttr: !0, type: "String" }] }, { name: "ColoredEdge", extends: ["bpmndi:BPMNEdge"], properties: [{ name: "border-color", isAttr: !0, type: "String" }] }], enumerations: [], associations: [] } };
|
|
615
|
+
On = Object.freeze({ "--bpmn-canvas-icon-start": "eventLine", "--bpmn-canvas-icon-end": "eventLine", "--bpmn-canvas-icon-intermediate": "eventLine", "--bpmn-canvas-icon-task": "taskLine", "--bpmn-canvas-icon-subprocess": "taskLine", "--bpmn-canvas-icon-external": "externalLine", "--bpmn-canvas-icon-gateway": "gatewayLine", "--bpmn-canvas-icon-data": "dataLine", "--bpmn-canvas-icon-document": "docLine", "--bpmn-canvas-icon-application": "appLine", "--bpmn-canvas-icon-lane": "laneLine", "--bpmn-canvas-icon-pool": "poolLine", "--bpmn-canvas-icon-flow": "flow" });
|
|
616
|
+
Pn = Mn(e => Sn(e));
|
|
617
|
+
});
|
|
618
|
+
It();
|
|
619
|
+
/** @type {import("./types.js").SemanticPort} */
|
|
620
|
+
export const port = { source: "bpmn-canvas", validate(payload) { return Pn.validate(payload); } };
|
|
621
|
+
//# sourceMappingURL=bpmn-port.js.map
|