@cardenelabs/dragon 0.43.0 → 0.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +2337 -627
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +2337 -627
- package/dist/cli.js.map +1 -1
- package/dist/export.cjs +2193 -619
- package/dist/export.cjs.map +1 -1
- package/dist/export.d.cts +1 -1
- package/dist/export.d.ts +1 -1
- package/dist/export.js +2193 -619
- package/dist/export.js.map +1 -1
- package/dist/index.cjs +2377 -644
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +55 -3
- package/dist/index.d.ts +55 -3
- package/dist/index.js +2377 -644
- package/dist/index.js.map +1 -1
- package/dist/{ink-B6s_SMXG.d.cts → ink-DeDtzaTL.d.cts} +27 -3
- package/dist/{ink-B6s_SMXG.d.ts → ink-DeDtzaTL.d.ts} +27 -3
- package/dist/node.cjs +1932 -680
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +1932 -680
- package/dist/node.js.map +1 -1
- package/dist/player.global.js +3 -3
- package/package.json +1 -1
- package/src/field-messages.ts +6 -0
- package/src/index.ts +4 -0
- package/src/layout/lineup.ts +219 -0
- package/src/look/values.ts +31 -2
- package/src/messages.ts +54 -0
- package/src/parser.ts +123 -1
- package/src/printer.ts +30 -1
- package/src/render/lineup.ts +184 -0
- package/src/render/parts.ts +16 -7
- package/src/render/svg.ts +34 -6
- package/src/render/tree.ts +3 -2
- package/src/schema.ts +52 -4
- package/src/schemas/diagram.schema.json +145 -22
- package/src/schemas/validate-diagram.js +1 -1
- package/src/timeline.ts +14 -0
- package/src/words.ts +15 -2
package/dist/cli.cjs
CHANGED
|
@@ -296,6 +296,9 @@ var TYPE = {
|
|
|
296
296
|
rootHash: text(15, 700, "mono"),
|
|
297
297
|
rootName: text(11, 700),
|
|
298
298
|
treeCard: text(11.5, 650),
|
|
299
|
+
/** 列の図 (#3239) の、チップの字と札の字 */
|
|
300
|
+
chip: text(10.5, 700, "mono"),
|
|
301
|
+
stamp: text(11, 700),
|
|
299
302
|
/**
|
|
300
303
|
* 時間軸の図 (#3165)。拡大の帯の列の上の字、印の列の名前、時刻の字、区切りの名前と目盛りの番号の範囲、
|
|
301
304
|
* 節目の名札と状態、範囲の括弧の字、空きの枠の字、物差しの線の字。和文を含む字は同じ大きさと太さの和文の字で描く
|
|
@@ -418,6 +421,26 @@ var LOOK = {
|
|
|
418
421
|
color: "violet",
|
|
419
422
|
rootColor: "green"
|
|
420
423
|
},
|
|
424
|
+
/**
|
|
425
|
+
* 列の図 (#3239)。step 2 で本人が選んだ見本の「列の図」の形で、1 列 12 枚の図の幅が携帯の幅で全体を見せられる 400 に収まる寸法にする。
|
|
426
|
+
* 列は左右の余白 `padX`、高さ `h`、角の丸み `radius`。列の名前と右上の字の基準線は列の上端から `textY`、チップの上端は列の上端から `trackY`、
|
|
427
|
+
* 名前と右上の字の間の下限は `textGap`、選ばなかった列の濃さは `faint`。
|
|
428
|
+
* `chip` はチップの幅の下限 `w`、高さ `h`、隣のチップとの間 `gap`、角の丸み `radius`、字の左右の余白 `padX`。字が幅を超える図は全てのチップの幅を広げる。
|
|
429
|
+
* `seal` は封で、チップの並びの外へ `over` 広げ、角の丸み `radius`、縞の幅 `stripe`。
|
|
430
|
+
* `stamp` は札で、高さ `h`、字の左右の余白 `padX`、角の丸み `radius`、傾き `tilt`、色 `color`
|
|
431
|
+
*/
|
|
432
|
+
lineup: {
|
|
433
|
+
padX: 12,
|
|
434
|
+
h: 61,
|
|
435
|
+
radius: 10,
|
|
436
|
+
textY: 20,
|
|
437
|
+
trackY: 33,
|
|
438
|
+
textGap: 10,
|
|
439
|
+
faint: 0.35,
|
|
440
|
+
chip: { w: 25, h: 18, gap: 4, radius: 4, padX: 3 },
|
|
441
|
+
seal: { over: 3, radius: 5, stripe: 7 },
|
|
442
|
+
stamp: { h: 22, padX: 8, radius: 5, tilt: -4, color: "green" }
|
|
443
|
+
},
|
|
421
444
|
/**
|
|
422
445
|
* 時間軸の図 (#3165)。見本帳の試作 (`scenes/finality.js`) の寸法を写す。
|
|
423
446
|
* 図の幅は `width` で、時間軸は左の `axisX` から右の余白 `right` の手前まで。印の列の名前が長い時は、名前の右に `gutterGap` を空けて軸を右へ寄せる。
|
|
@@ -521,7 +544,8 @@ var LOOK = {
|
|
|
521
544
|
timeMeter: 1.25,
|
|
522
545
|
tree: 1.5,
|
|
523
546
|
treeTrail: 2.6,
|
|
524
|
-
treeCon: 1.3
|
|
547
|
+
treeCon: 1.3,
|
|
548
|
+
stamp: 2
|
|
525
549
|
},
|
|
526
550
|
shadow: { near: 0.8, far: 4, nearY: 1, farY: 3 },
|
|
527
551
|
mini: { w: 168, pad: 8, title: 14, inset: 12, radius: 10 },
|
|
@@ -536,8 +560,8 @@ var LOOK = {
|
|
|
536
560
|
*/
|
|
537
561
|
follow: { aspect: 0.75, minH: 320, fitMinH: 160, ease: 0.6, narrow: 440, badgeRoom: 8, headRoom: 10, head: { pad: 8, h: 40, nameY: 17, subY: 31 } },
|
|
538
562
|
/** 色を混ぜる割合 (%) */
|
|
539
|
-
/** `time` から始まる値は時間軸の図 (#3165)
|
|
540
|
-
mix: { slot: 45, icon: 14, regionIcon: 16, regionIconEdge: 34, cap: 12, capEdge: 42, badgePast: 14, badgePastEdge: 70, mini: 62, miniBand: 16, miniBandEdge: 36, view: 6, side: 4, sideEdge: 36, ghostEdge: 60, path: 55, past: 72, timeShade: 3.5, timeSpan: 6, timeEmpty: 8, timeGuide: 50 },
|
|
563
|
+
/** `time` から始まる値は時間軸の図 (#3165) の、区切りの地、範囲の囲みの地、空きの枠の地、拡大の点線の濃さ。`chip` と `seal` から始まる値は列の図 (#3239) の、色を持たないチップの地と封の縞の濃さ */
|
|
564
|
+
mix: { slot: 45, icon: 14, regionIcon: 16, regionIconEdge: 34, cap: 12, capEdge: 42, badgePast: 14, badgePastEdge: 70, mini: 62, miniBand: 16, miniBandEdge: 36, view: 6, side: 4, sideEdge: 36, ghostEdge: 60, path: 55, past: 72, timeShade: 3.5, timeSpan: 6, timeEmpty: 8, timeGuide: 50, chipPlain: 34, sealDark: 60, sealLight: 34 },
|
|
541
565
|
/** 字の並びの基準線を、置きたい高さの真ん中からどれだけ下げるか */
|
|
542
566
|
baseline: { label: 3.8, badge: 3.5, carrier: 3.7, stripTitle: 4.5, tag: 3.6, action: 3.8, mark: 4 },
|
|
543
567
|
/** 浮いて出る物が下から上がる長さと、弾んで出る物の始まりの大きさ */
|
|
@@ -581,7 +605,12 @@ var MOTION = {
|
|
|
581
605
|
* 拡大した目盛りでは、その段のその列の線を引き終えてから `wait` 秒待って次の目盛りへ進む。
|
|
582
606
|
* `after` は針が止まってから次の出来事を起こすまで、`reset` は区切りが替わって物差しが 0 に戻る長さ
|
|
583
607
|
*/
|
|
584
|
-
time: { axis: 11.5, unitMin: 0.12, unitMax: 0.4, wait: 0.15, after: 0.15, reset: 0.05 }
|
|
608
|
+
time: { axis: 11.5, unitMin: 0.12, unitMax: 0.4, wait: 0.15, after: 0.15, reset: 0.05 },
|
|
609
|
+
/**
|
|
610
|
+
* 列の図 (#3239)。`slide` はチップが滑る長さ、`seal` は封が列を覆う長さ、`stagger` は同じ段の出来事を起こす間、
|
|
611
|
+
* `cut` はチップと封が一瞬で入れ替わる長さ
|
|
612
|
+
*/
|
|
613
|
+
lineup: { slide: 0.7, seal: 0.6, stagger: 0.2, cut: 0.01 }
|
|
585
614
|
};
|
|
586
615
|
var READABLE_PX = 10.5;
|
|
587
616
|
var EASE = {
|
|
@@ -974,7 +1003,7 @@ function layoutStrip(diagram, x, y, width, trail) {
|
|
|
974
1003
|
const fields = [];
|
|
975
1004
|
let cx = start;
|
|
976
1005
|
let row = 0;
|
|
977
|
-
const
|
|
1006
|
+
const place2 = (w) => {
|
|
978
1007
|
if (cx > start && cx + w > width - pad2) {
|
|
979
1008
|
cx = start;
|
|
980
1009
|
row++;
|
|
@@ -985,12 +1014,12 @@ function layoutStrip(diagram, x, y, width, trail) {
|
|
|
985
1014
|
};
|
|
986
1015
|
for (const name of diagram.strip.fields) {
|
|
987
1016
|
const w = fieldWidth(diagram, name);
|
|
988
|
-
const at2 =
|
|
1017
|
+
const at2 = place2(w);
|
|
989
1018
|
const meter = meterOf(diagram, name);
|
|
990
1019
|
const line2 = meter ? ratioOf(meter.line) : void 0;
|
|
991
1020
|
fields.push({ name, ...at2, w, ...meter && line2 !== void 0 ? { meter: { line: line2, text: meter.line, x: at2.x, w: LOOK.time.meter.w } } : {} });
|
|
992
1021
|
}
|
|
993
|
-
const laidTrail = trail ? { ...trail, ...
|
|
1022
|
+
const laidTrail = trail ? { ...trail, ...place2(trailWidth(trail)), w: trailWidth(trail) } : void 0;
|
|
994
1023
|
return { x, y, w: width, h: h + row * line, title: diagram.strip.title, fields, ...laidTrail ? { trail: laidTrail } : {} };
|
|
995
1024
|
}
|
|
996
1025
|
function shiftContent(layout, dx, dy) {
|
|
@@ -1417,12 +1446,16 @@ function grow(layout, groups, slots, rooms) {
|
|
|
1417
1446
|
|
|
1418
1447
|
// src/words.ts
|
|
1419
1448
|
var keys = (table) => Object.keys(table);
|
|
1420
|
-
var KINDS = keys({ sequence: true, architecture: true, state: true, git: true, time: true, tree: true });
|
|
1449
|
+
var KINDS = keys({ sequence: true, architecture: true, state: true, git: true, time: true, tree: true, lineup: true });
|
|
1421
1450
|
var STATE_ENDS = ["start", "finish"];
|
|
1422
1451
|
var TIME_HEADS = ["scale", "period", "row", "point", "zoom", "mark", "span"];
|
|
1423
1452
|
var NOW = "now";
|
|
1424
1453
|
var TREE_HEADS = ["leaf", "node"];
|
|
1425
|
-
var
|
|
1454
|
+
var LINEUP_HEADS = ["item", "line", "seal", "open", "pick", "stamp"];
|
|
1455
|
+
var LANE_MOST = 12;
|
|
1456
|
+
var LABEL_MOST = 4;
|
|
1457
|
+
var LANE_ATTRS = ["note", "color"];
|
|
1458
|
+
var HEADS = ["group", "end", "box", "strip", "step", "say", "code", "source", "act", "note", "set", "branch", "commit", ...TIME_HEADS, ...TREE_HEADS, ...LINEUP_HEADS];
|
|
1426
1459
|
var AS = "as";
|
|
1427
1460
|
var ON = "on";
|
|
1428
1461
|
var COPY = "copy";
|
|
@@ -1444,6 +1477,7 @@ var ATTRS = {
|
|
|
1444
1477
|
commit: ["hash", "note"],
|
|
1445
1478
|
leaf: ["hash"],
|
|
1446
1479
|
node: ["hash"],
|
|
1480
|
+
item: ["color", "label"],
|
|
1447
1481
|
scale: ["from"],
|
|
1448
1482
|
period: ["from"],
|
|
1449
1483
|
row: ["color", "empty"],
|
|
@@ -1951,6 +1985,138 @@ function labelsOf(diagram, layout) {
|
|
|
1951
1985
|
return labels;
|
|
1952
1986
|
}
|
|
1953
1987
|
|
|
1988
|
+
// src/layout/lineup.ts
|
|
1989
|
+
var isLineupLayout = (layout) => layout.kind === "lineup";
|
|
1990
|
+
function notesOf(diagram, id, sub) {
|
|
1991
|
+
const written = diagram.steps.flatMap((step) => step.events.flatMap((e) => e.type === "swap" && e.box === id ? [textWidth(e.text, TYPE.boxSubStrong)] : []));
|
|
1992
|
+
return sub === void 0 ? written : [textWidth(sub, TYPE.boxSub), ...written];
|
|
1993
|
+
}
|
|
1994
|
+
function layoutLineup(diagram) {
|
|
1995
|
+
const { margin, gap, lineup: N } = LOOK;
|
|
1996
|
+
const items = diagram.lineup?.items ?? [];
|
|
1997
|
+
const known = new Set(items.map((item) => item.id));
|
|
1998
|
+
const chipW = Math.max(N.chip.w, ...items.map((item) => item.label === void 0 ? 0 : textWidth(item.label, TYPE.chip) + N.chip.padX * 2));
|
|
1999
|
+
const pitch = chipW + N.chip.gap;
|
|
2000
|
+
const trackW = pitch * LANE_MOST - N.chip.gap;
|
|
2001
|
+
const titled = diagram.boxes.map((b) => textWidth(b.name, TYPE.boxName) + N.textGap + Math.max(0, ...notesOf(diagram, b.id, b.sub)));
|
|
2002
|
+
const laneW = Math.max(trackW + N.padX * 2, ...titled.map((w) => w + N.padX * 2), stripNeed(diagram));
|
|
2003
|
+
const colors = boxColors(diagram);
|
|
2004
|
+
const lanes = diagram.boxes.map((b, i) => {
|
|
2005
|
+
const y = margin + i * (N.h + gap);
|
|
2006
|
+
const baseline = y + N.textY;
|
|
2007
|
+
const noteRight = margin + laneW - N.padX;
|
|
2008
|
+
return {
|
|
2009
|
+
id: b.id,
|
|
2010
|
+
name: b.name,
|
|
2011
|
+
...b.sub !== void 0 ? { sub: b.sub } : {},
|
|
2012
|
+
color: colors.get(b.id) ?? "slate",
|
|
2013
|
+
x: margin,
|
|
2014
|
+
y,
|
|
2015
|
+
w: laneW,
|
|
2016
|
+
h: N.h,
|
|
2017
|
+
cx: margin + laneW / 2,
|
|
2018
|
+
cy: y + N.h / 2,
|
|
2019
|
+
title: { ...textBox(b.name, margin + N.padX, baseline, TYPE.boxName), text: b.name, baseline },
|
|
2020
|
+
...b.sub !== void 0 ? { note: { ...textBox(b.sub, noteRight - textWidth(b.sub, TYPE.boxSub), baseline, TYPE.boxSub), text: b.sub, baseline } } : {},
|
|
2021
|
+
noteRight,
|
|
2022
|
+
track: { x: margin + N.padX, y: y + N.trackY, w: trackW, h: N.chip.h }
|
|
2023
|
+
};
|
|
2024
|
+
});
|
|
2025
|
+
const laneOf = new Map(lanes.map((lane) => [lane.id, lane]));
|
|
2026
|
+
const chips = [];
|
|
2027
|
+
const seals = [];
|
|
2028
|
+
const stamps = [];
|
|
2029
|
+
const picks = [];
|
|
2030
|
+
const seated = /* @__PURE__ */ new Map();
|
|
2031
|
+
const open = /* @__PURE__ */ new Map();
|
|
2032
|
+
let picked;
|
|
2033
|
+
diagram.steps.forEach((step, s) => {
|
|
2034
|
+
const before = [...seated.values()].flat();
|
|
2035
|
+
step.events.forEach((e, k) => {
|
|
2036
|
+
if (e.type !== "line" && e.type !== "seal" && e.type !== "open" && e.type !== "pick" && e.type !== "stamp") return;
|
|
2037
|
+
const lane = laneOf.get(e.box);
|
|
2038
|
+
if (!lane) return;
|
|
2039
|
+
const at2 = { step: s, event: k };
|
|
2040
|
+
if (e.type === "seal" && !open.has(lane.id)) {
|
|
2041
|
+
const { over } = N.seal;
|
|
2042
|
+
const seal = { ...at2, lane: lane.id, x: lane.track.x - over, y: lane.track.y - over, w: lane.track.w + over * 2, h: lane.track.h + over * 2 };
|
|
2043
|
+
seals.push(seal);
|
|
2044
|
+
open.set(lane.id, seal);
|
|
2045
|
+
} else if (e.type === "open") {
|
|
2046
|
+
const seal = open.get(lane.id);
|
|
2047
|
+
if (seal) seal.until = at2;
|
|
2048
|
+
open.delete(lane.id);
|
|
2049
|
+
} else if (e.type === "pick" && picked !== lane.id) {
|
|
2050
|
+
picks.push({ ...at2, lane: lane.id });
|
|
2051
|
+
picked = lane.id;
|
|
2052
|
+
} else if (e.type === "stamp") {
|
|
2053
|
+
const w = textWidth(e.text, TYPE.stamp) + N.stamp.padX * 2;
|
|
2054
|
+
stamps.push({ ...at2, lane: lane.id, text: e.text, x: lane.x + lane.w - N.padX - w, y: lane.track.y + (lane.track.h - N.stamp.h) / 2, w, h: N.stamp.h });
|
|
2055
|
+
} else if (e.type === "line") {
|
|
2056
|
+
const old = seated.get(lane.id) ?? [];
|
|
2057
|
+
const order = [...new Set(e.items)].filter((id) => known.has(id)).slice(0, LANE_MOST);
|
|
2058
|
+
const placed = order.map((id, index) => {
|
|
2059
|
+
const same2 = old.find((c) => c.id === id);
|
|
2060
|
+
if (same2?.index === index) return same2;
|
|
2061
|
+
const others = before.filter((c) => c.id === id);
|
|
2062
|
+
const source = same2 ?? others.find((c) => c.lane === picked) ?? others.at(-1);
|
|
2063
|
+
const seat2 = { ...at2, id, lane: lane.id, index, x: lane.track.x + pitch * index, y: lane.track.y, w: chipW, h: N.chip.h, ...source ? { from: [source.x, source.y] } : {} };
|
|
2064
|
+
chips.push(seat2);
|
|
2065
|
+
return seat2;
|
|
2066
|
+
});
|
|
2067
|
+
for (const c of old) if (!placed.includes(c)) c.until = at2;
|
|
2068
|
+
seated.set(lane.id, placed);
|
|
2069
|
+
}
|
|
2070
|
+
});
|
|
2071
|
+
});
|
|
2072
|
+
const layout = {
|
|
2073
|
+
kind: "lineup",
|
|
2074
|
+
width: 0,
|
|
2075
|
+
height: 0,
|
|
2076
|
+
regions: [],
|
|
2077
|
+
boxes: lanes,
|
|
2078
|
+
lifelines: [],
|
|
2079
|
+
edges: [],
|
|
2080
|
+
labels: [],
|
|
2081
|
+
actions: [],
|
|
2082
|
+
badges: [],
|
|
2083
|
+
paths: [],
|
|
2084
|
+
ends: [],
|
|
2085
|
+
lanes,
|
|
2086
|
+
chips,
|
|
2087
|
+
seals,
|
|
2088
|
+
stamps,
|
|
2089
|
+
picks
|
|
2090
|
+
};
|
|
2091
|
+
const bottom = Math.max(...lanes.map((lane) => lane.y + lane.h), margin);
|
|
2092
|
+
const width = laneW + margin * 2;
|
|
2093
|
+
const strip2 = layoutStrip(diagram, margin, bottom + gap, width - margin * 2);
|
|
2094
|
+
layout.width = width;
|
|
2095
|
+
layout.height = (strip2 ? strip2.y + strip2.h : bottom) + margin;
|
|
2096
|
+
if (strip2) layout.strip = strip2;
|
|
2097
|
+
layout.badges = badgesOf2(diagram, layout);
|
|
2098
|
+
return layout;
|
|
2099
|
+
}
|
|
2100
|
+
function badgesOf2(diagram, layout) {
|
|
2101
|
+
const { inset } = LOOK.badge;
|
|
2102
|
+
const out = [];
|
|
2103
|
+
const put = (step, x, y, color) => {
|
|
2104
|
+
out.push({ step, x, y, color });
|
|
2105
|
+
};
|
|
2106
|
+
diagram.steps.forEach((step, s) => {
|
|
2107
|
+
const lane = step.events.flatMap((e) => "box" in e ? [e.box] : []).flatMap((id) => layout.lanes.filter((l) => l.id === id))[0];
|
|
2108
|
+
if (lane) {
|
|
2109
|
+
put(s, lane.x, lane.track.y + lane.track.h / 2, lane.color);
|
|
2110
|
+
return;
|
|
2111
|
+
}
|
|
2112
|
+
const before = out[out.length - 1];
|
|
2113
|
+
if (layout.strip && step.events.some((e) => e.type === "strip")) put(s, layout.strip.x + inset, layout.strip.y + inset, "slate");
|
|
2114
|
+
else if (before) out.push({ ...before, step: s });
|
|
2115
|
+
else put(s, LOOK.margin, LOOK.margin, layout.lanes[0]?.color ?? "slate");
|
|
2116
|
+
});
|
|
2117
|
+
return replaceSameSpot(out);
|
|
2118
|
+
}
|
|
2119
|
+
|
|
1954
2120
|
// src/layout/sequence.ts
|
|
1955
2121
|
function layoutSequence(diagram) {
|
|
1956
2122
|
const { box: B, sequence: Q, label: L, margin, gap } = LOOK;
|
|
@@ -2662,7 +2828,7 @@ function layoutTime(diagram, lang = "ja") {
|
|
|
2662
2828
|
} else spans.push({ ...base, x: x0, y: 0, w: x1 - x0, h: T.bracket.tick, textRect: { x: 0, y: 0, w: 0, h: 0 }, textY: 0 });
|
|
2663
2829
|
}
|
|
2664
2830
|
layout.spans = spans;
|
|
2665
|
-
layout.badges =
|
|
2831
|
+
layout.badges = badgesOf3(diagram, layout, needleSteps(diagram));
|
|
2666
2832
|
layout.labels = labelsOf2(diagram, layout);
|
|
2667
2833
|
y = Math.max(y, ...layout.labels.map((l) => l.y + l.h + LOOK.label.soft));
|
|
2668
2834
|
const lanes = [];
|
|
@@ -2731,7 +2897,7 @@ function layoutTime(diagram, lang = "ja") {
|
|
|
2731
2897
|
const strip2 = layoutStrip(diagram, margin, axisBottom + gap, width - margin * 2);
|
|
2732
2898
|
if (strip2) layout.strip = strip2;
|
|
2733
2899
|
layout.height = (strip2 ? strip2.y + strip2.h : axisBottom) + margin;
|
|
2734
|
-
layout.badges =
|
|
2900
|
+
layout.badges = badgesOf3(diagram, layout, needleSteps(diagram));
|
|
2735
2901
|
return layout;
|
|
2736
2902
|
}
|
|
2737
2903
|
function wire(event, zoom) {
|
|
@@ -2773,7 +2939,7 @@ function seat(edge2, from, to, rooms) {
|
|
|
2773
2939
|
if (arrive.settle) edge2.settle = arrive.settle;
|
|
2774
2940
|
if (leave.wait) edge2.wait = leave.wait;
|
|
2775
2941
|
}
|
|
2776
|
-
function
|
|
2942
|
+
function badgesOf3(diagram, layout, needle) {
|
|
2777
2943
|
const { r, inset } = LOOK.badge;
|
|
2778
2944
|
const { axis } = layout;
|
|
2779
2945
|
const taken = [];
|
|
@@ -3066,7 +3232,7 @@ function layoutTree(diagram) {
|
|
|
3066
3232
|
links,
|
|
3067
3233
|
runs
|
|
3068
3234
|
};
|
|
3069
|
-
layout.badges =
|
|
3235
|
+
layout.badges = badgesOf4(diagram, layout);
|
|
3070
3236
|
layout.labels = labelsOf3(diagram, layout);
|
|
3071
3237
|
const cards = nodes.flatMap((n) => n.card ? [n.card] : []);
|
|
3072
3238
|
const solids = [...nodes, ...cards, ...boxes, ...layout.labels];
|
|
@@ -3078,10 +3244,10 @@ function layoutTree(diagram) {
|
|
|
3078
3244
|
layout.width = width;
|
|
3079
3245
|
layout.height = (strip2 ? strip2.y + strip2.h : bottom) + margin;
|
|
3080
3246
|
if (strip2) layout.strip = strip2;
|
|
3081
|
-
layout.badges =
|
|
3247
|
+
layout.badges = badgesOf4(diagram, layout);
|
|
3082
3248
|
return layout;
|
|
3083
3249
|
}
|
|
3084
|
-
function
|
|
3250
|
+
function badgesOf4(diagram, layout) {
|
|
3085
3251
|
const { r, inset } = LOOK.badge;
|
|
3086
3252
|
const apart = r * 2 + inset;
|
|
3087
3253
|
const taken = [];
|
|
@@ -3197,8 +3363,10 @@ var ja = {
|
|
|
3197
3363
|
enum: (values) => `${values.join(" / ")} \u306E\u3069\u308C\u304B\u306B\u3059\u308B`,
|
|
3198
3364
|
type: (type) => TYPES_JA[type] ?? `${type} \u306B\u3059\u308B`,
|
|
3199
3365
|
minLength: (limit) => `${limit} \u5B57\u4EE5\u4E0A\u66F8\u304F`,
|
|
3366
|
+
maxLength: (limit) => `${limit} \u5B57\u307E\u3067\u306B\u3059\u308B`,
|
|
3200
3367
|
pattern: (forbidden) => forbidden ? `${forbidden.space ? "\u7A7A\u767D\u3068 " : ""}${forbidden.chars.join(" ")} \u306F\u4F7F\u3048\u306A\u3044` : "\u4F7F\u3048\u306A\u3044\u5B57\u304C\u5165\u3063\u3066\u3044\u308B",
|
|
3201
3368
|
minItems: (limit) => `${limit} \u3064\u4EE5\u4E0A\u66F8\u304F`,
|
|
3369
|
+
maxItems: (limit) => `${limit} \u3064\u307E\u3067\u306B\u3059\u308B`,
|
|
3202
3370
|
minimum: (limit) => `${limit} \u4EE5\u4E0A\u306B\u3059\u308B`,
|
|
3203
3371
|
const: (value) => `${value} \u306B\u3059\u308B`,
|
|
3204
3372
|
not: (allowed) => allowed ? `${allowed.field} \u306E\u6B04\u306F kind \u304C ${allowed.kind} \u306E\u6642\u3060\u3051\u66F8\u3051\u308B` : "\u3053\u306E\u6B04\u306E\u7D44\u307F\u5408\u308F\u305B\u306F\u66F8\u3051\u306A\u3044",
|
|
@@ -3219,8 +3387,10 @@ var en = {
|
|
|
3219
3387
|
enum: (values) => `Use one of ${values.join(" / ")}`,
|
|
3220
3388
|
type: (type) => TYPES_EN[type] ?? `Use ${type}`,
|
|
3221
3389
|
minLength: (limit) => `Write at least ${plural(limit, "character")}`,
|
|
3390
|
+
maxLength: (limit) => `Write at most ${plural(limit, "character")}`,
|
|
3222
3391
|
pattern: (forbidden) => forbidden ? `Cannot contain ${forbidden.space ? "spaces or " : ""}${forbidden.chars.join(" ")}` : "Contains characters that are not allowed",
|
|
3223
3392
|
minItems: (limit) => `Write at least ${plural(limit, "item")}`,
|
|
3393
|
+
maxItems: (limit) => `Write at most ${plural(limit, "item")}`,
|
|
3224
3394
|
minimum: (limit) => `Use ${limit} or greater`,
|
|
3225
3395
|
const: (value) => `Use ${value}`,
|
|
3226
3396
|
not: (allowed) => allowed ? `The ${allowed.field} field is allowed only when kind is ${allowed.kind}` : "This combination of fields is not allowed",
|
|
@@ -3244,7 +3414,7 @@ function ucs2length(str) {
|
|
|
3244
3414
|
return length;
|
|
3245
3415
|
}
|
|
3246
3416
|
var validate_diagram_default = validate10;
|
|
3247
|
-
var schema11 = { "properties": { "version": { "description": "\u5F62\u5F0F\u306E\u7248", "type": "integer", "minimum": 1 }, "kind": { "description": "\u56F3\u306E\u7A2E\u985E", "enum": ["sequence", "architecture", "state", "git", "time", "tree"] }, "title": { "$ref": "#/definitions/text" }, "view": { "description": "\u898B\u305B\u65B9\u3002\u66F8\u304B\u306A\u3051\u308C\u3070\u5B57\u306E\u5927\u304D\u3055\u3067\u9078\u3076\u3002fixed \u306F\u5168\u4F53\u3092\u6B62\u3081\u3066\u4E2D\u3060\u3051\u52D5\u304B\u3057\u3001follow \u306F\u5BC4\u3063\u3066\u52D5\u304B\u3057\u5168\u4F53\u56F3\u3067\u4ECA\u3069\u3053\u304B\u3092\u793A\u3059", "enum": ["fixed", "follow"] }, "regions": { "type": "array", "items": { "$ref": "#/definitions/region" } }, "boxes": { "type": "array", "items": { "$ref": "#/definitions/box" } }, "strip": { "$ref": "#/definitions/strip" }, "steps": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/step" } }, "sequence": { "$ref": "#/definitions/sequence" }, "state": { "$ref": "#/definitions/state" }, "git": { "$ref": "#/definitions/git" }, "time": { "$ref": "#/definitions/time" } }};
|
|
3417
|
+
var schema11 = { "properties": { "version": { "description": "\u5F62\u5F0F\u306E\u7248", "type": "integer", "minimum": 1 }, "kind": { "description": "\u56F3\u306E\u7A2E\u985E", "enum": ["sequence", "architecture", "state", "git", "time", "tree", "lineup"] }, "title": { "$ref": "#/definitions/text" }, "view": { "description": "\u898B\u305B\u65B9\u3002\u66F8\u304B\u306A\u3051\u308C\u3070\u5B57\u306E\u5927\u304D\u3055\u3067\u9078\u3076\u3002fixed \u306F\u5168\u4F53\u3092\u6B62\u3081\u3066\u4E2D\u3060\u3051\u52D5\u304B\u3057\u3001follow \u306F\u5BC4\u3063\u3066\u52D5\u304B\u3057\u5168\u4F53\u56F3\u3067\u4ECA\u3069\u3053\u304B\u3092\u793A\u3059", "enum": ["fixed", "follow"] }, "regions": { "type": "array", "items": { "$ref": "#/definitions/region" } }, "boxes": { "type": "array", "items": { "$ref": "#/definitions/box" } }, "strip": { "$ref": "#/definitions/strip" }, "steps": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/step" } }, "sequence": { "$ref": "#/definitions/sequence" }, "state": { "$ref": "#/definitions/state" }, "git": { "$ref": "#/definitions/git" }, "time": { "$ref": "#/definitions/time" }, "lineup": { "$ref": "#/definitions/lineup" } }};
|
|
3248
3418
|
function validate11(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3249
3419
|
let vErrors = null;
|
|
3250
3420
|
let errors = 0;
|
|
@@ -3349,34 +3519,79 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3349
3519
|
}
|
|
3350
3520
|
}
|
|
3351
3521
|
}
|
|
3522
|
+
const _errs14 = errors;
|
|
3523
|
+
const _errs15 = errors;
|
|
3524
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3525
|
+
if (data2.type === void 0 && ("type")) {
|
|
3526
|
+
const err6 = {};
|
|
3527
|
+
if (vErrors === null) {
|
|
3528
|
+
vErrors = [err6];
|
|
3529
|
+
} else {
|
|
3530
|
+
vErrors.push(err6);
|
|
3531
|
+
}
|
|
3532
|
+
errors++;
|
|
3533
|
+
} else {
|
|
3534
|
+
if (data2.type !== void 0) {
|
|
3535
|
+
let data5 = data2.type;
|
|
3536
|
+
if (!(data5 === "line" || data5 === "seal" || data5 === "open" || data5 === "pick" || data5 === "stamp")) {
|
|
3537
|
+
const err7 = {};
|
|
3538
|
+
if (vErrors === null) {
|
|
3539
|
+
vErrors = [err7];
|
|
3540
|
+
} else {
|
|
3541
|
+
vErrors.push(err7);
|
|
3542
|
+
}
|
|
3543
|
+
errors++;
|
|
3544
|
+
}
|
|
3545
|
+
}
|
|
3546
|
+
}
|
|
3547
|
+
}
|
|
3548
|
+
var valid13 = _errs15 === errors;
|
|
3549
|
+
if (valid13) {
|
|
3550
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3551
|
+
if (vErrors === null) {
|
|
3552
|
+
vErrors = [err8];
|
|
3553
|
+
} else {
|
|
3554
|
+
vErrors.push(err8);
|
|
3555
|
+
}
|
|
3556
|
+
errors++;
|
|
3557
|
+
} else {
|
|
3558
|
+
errors = _errs14;
|
|
3559
|
+
if (vErrors !== null) {
|
|
3560
|
+
if (_errs14) {
|
|
3561
|
+
vErrors.length = _errs14;
|
|
3562
|
+
} else {
|
|
3563
|
+
vErrors = null;
|
|
3564
|
+
}
|
|
3565
|
+
}
|
|
3566
|
+
}
|
|
3352
3567
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3353
3568
|
if (data2.type !== void 0) {
|
|
3354
|
-
let
|
|
3355
|
-
const
|
|
3356
|
-
const
|
|
3357
|
-
if (!(
|
|
3358
|
-
const
|
|
3569
|
+
let data6 = data2.type;
|
|
3570
|
+
const _errs18 = errors;
|
|
3571
|
+
const _errs19 = errors;
|
|
3572
|
+
if (!(data6 === "commit" || data6 === "branch")) {
|
|
3573
|
+
const err9 = {};
|
|
3359
3574
|
if (vErrors === null) {
|
|
3360
|
-
vErrors = [
|
|
3575
|
+
vErrors = [err9];
|
|
3361
3576
|
} else {
|
|
3362
|
-
vErrors.push(
|
|
3577
|
+
vErrors.push(err9);
|
|
3363
3578
|
}
|
|
3364
3579
|
errors++;
|
|
3365
3580
|
}
|
|
3366
|
-
var
|
|
3367
|
-
if (
|
|
3368
|
-
const
|
|
3581
|
+
var valid16 = _errs19 === errors;
|
|
3582
|
+
if (valid16) {
|
|
3583
|
+
const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3369
3584
|
if (vErrors === null) {
|
|
3370
|
-
vErrors = [
|
|
3585
|
+
vErrors = [err10];
|
|
3371
3586
|
} else {
|
|
3372
|
-
vErrors.push(
|
|
3587
|
+
vErrors.push(err10);
|
|
3373
3588
|
}
|
|
3374
3589
|
errors++;
|
|
3375
3590
|
} else {
|
|
3376
|
-
errors =
|
|
3591
|
+
errors = _errs18;
|
|
3377
3592
|
if (vErrors !== null) {
|
|
3378
|
-
if (
|
|
3379
|
-
vErrors.length =
|
|
3593
|
+
if (_errs18) {
|
|
3594
|
+
vErrors.length = _errs18;
|
|
3380
3595
|
} else {
|
|
3381
3596
|
vErrors = null;
|
|
3382
3597
|
}
|
|
@@ -3384,29 +3599,29 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3384
3599
|
}
|
|
3385
3600
|
}
|
|
3386
3601
|
if (data2.at !== void 0) {
|
|
3387
|
-
const
|
|
3602
|
+
const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3388
3603
|
if (vErrors === null) {
|
|
3389
|
-
vErrors = [
|
|
3604
|
+
vErrors = [err11];
|
|
3390
3605
|
} else {
|
|
3391
|
-
vErrors.push(
|
|
3606
|
+
vErrors.push(err11);
|
|
3392
3607
|
}
|
|
3393
3608
|
errors++;
|
|
3394
3609
|
}
|
|
3395
3610
|
if (data2.into !== void 0) {
|
|
3396
|
-
const
|
|
3611
|
+
const err12 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3397
3612
|
if (vErrors === null) {
|
|
3398
|
-
vErrors = [
|
|
3613
|
+
vErrors = [err12];
|
|
3399
3614
|
} else {
|
|
3400
|
-
vErrors.push(
|
|
3615
|
+
vErrors.push(err12);
|
|
3401
3616
|
}
|
|
3402
3617
|
errors++;
|
|
3403
3618
|
}
|
|
3404
3619
|
if (data2.color !== void 0) {
|
|
3405
|
-
const
|
|
3620
|
+
const err13 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3406
3621
|
if (vErrors === null) {
|
|
3407
|
-
vErrors = [
|
|
3622
|
+
vErrors = [err13];
|
|
3408
3623
|
} else {
|
|
3409
|
-
vErrors.push(
|
|
3624
|
+
vErrors.push(err13);
|
|
3410
3625
|
}
|
|
3411
3626
|
errors++;
|
|
3412
3627
|
}
|
|
@@ -3541,31 +3756,76 @@ function validate17(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3541
3756
|
}
|
|
3542
3757
|
}
|
|
3543
3758
|
}
|
|
3759
|
+
const _errs14 = errors;
|
|
3760
|
+
const _errs15 = errors;
|
|
3544
3761
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3545
|
-
if (data2.
|
|
3546
|
-
const err6 = {
|
|
3762
|
+
if (data2.type === void 0 && ("type")) {
|
|
3763
|
+
const err6 = {};
|
|
3547
3764
|
if (vErrors === null) {
|
|
3548
3765
|
vErrors = [err6];
|
|
3549
3766
|
} else {
|
|
3550
3767
|
vErrors.push(err6);
|
|
3551
3768
|
}
|
|
3552
3769
|
errors++;
|
|
3770
|
+
} else {
|
|
3771
|
+
if (data2.type !== void 0) {
|
|
3772
|
+
let data5 = data2.type;
|
|
3773
|
+
if (!(data5 === "line" || data5 === "seal" || data5 === "open" || data5 === "pick" || data5 === "stamp")) {
|
|
3774
|
+
const err7 = {};
|
|
3775
|
+
if (vErrors === null) {
|
|
3776
|
+
vErrors = [err7];
|
|
3777
|
+
} else {
|
|
3778
|
+
vErrors.push(err7);
|
|
3779
|
+
}
|
|
3780
|
+
errors++;
|
|
3781
|
+
}
|
|
3782
|
+
}
|
|
3783
|
+
}
|
|
3784
|
+
}
|
|
3785
|
+
var valid13 = _errs15 === errors;
|
|
3786
|
+
if (valid13) {
|
|
3787
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3788
|
+
if (vErrors === null) {
|
|
3789
|
+
vErrors = [err8];
|
|
3790
|
+
} else {
|
|
3791
|
+
vErrors.push(err8);
|
|
3792
|
+
}
|
|
3793
|
+
errors++;
|
|
3794
|
+
} else {
|
|
3795
|
+
errors = _errs14;
|
|
3796
|
+
if (vErrors !== null) {
|
|
3797
|
+
if (_errs14) {
|
|
3798
|
+
vErrors.length = _errs14;
|
|
3799
|
+
} else {
|
|
3800
|
+
vErrors = null;
|
|
3801
|
+
}
|
|
3802
|
+
}
|
|
3803
|
+
}
|
|
3804
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3805
|
+
if (data2.at !== void 0) {
|
|
3806
|
+
const err9 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3807
|
+
if (vErrors === null) {
|
|
3808
|
+
vErrors = [err9];
|
|
3809
|
+
} else {
|
|
3810
|
+
vErrors.push(err9);
|
|
3811
|
+
}
|
|
3812
|
+
errors++;
|
|
3553
3813
|
}
|
|
3554
3814
|
if (data2.into !== void 0) {
|
|
3555
|
-
const
|
|
3815
|
+
const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3556
3816
|
if (vErrors === null) {
|
|
3557
|
-
vErrors = [
|
|
3817
|
+
vErrors = [err10];
|
|
3558
3818
|
} else {
|
|
3559
|
-
vErrors.push(
|
|
3819
|
+
vErrors.push(err10);
|
|
3560
3820
|
}
|
|
3561
3821
|
errors++;
|
|
3562
3822
|
}
|
|
3563
3823
|
if (data2.color !== void 0) {
|
|
3564
|
-
const
|
|
3824
|
+
const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3565
3825
|
if (vErrors === null) {
|
|
3566
|
-
vErrors = [
|
|
3826
|
+
vErrors = [err11];
|
|
3567
3827
|
} else {
|
|
3568
|
-
vErrors.push(
|
|
3828
|
+
vErrors.push(err11);
|
|
3569
3829
|
}
|
|
3570
3830
|
errors++;
|
|
3571
3831
|
}
|
|
@@ -3638,34 +3898,79 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3638
3898
|
}
|
|
3639
3899
|
}
|
|
3640
3900
|
}
|
|
3901
|
+
const _errs10 = errors;
|
|
3902
|
+
const _errs11 = errors;
|
|
3903
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3904
|
+
if (data2.type === void 0 && ("type")) {
|
|
3905
|
+
const err3 = {};
|
|
3906
|
+
if (vErrors === null) {
|
|
3907
|
+
vErrors = [err3];
|
|
3908
|
+
} else {
|
|
3909
|
+
vErrors.push(err3);
|
|
3910
|
+
}
|
|
3911
|
+
errors++;
|
|
3912
|
+
} else {
|
|
3913
|
+
if (data2.type !== void 0) {
|
|
3914
|
+
let data4 = data2.type;
|
|
3915
|
+
if (!(data4 === "line" || data4 === "seal" || data4 === "open" || data4 === "pick" || data4 === "stamp")) {
|
|
3916
|
+
const err4 = {};
|
|
3917
|
+
if (vErrors === null) {
|
|
3918
|
+
vErrors = [err4];
|
|
3919
|
+
} else {
|
|
3920
|
+
vErrors.push(err4);
|
|
3921
|
+
}
|
|
3922
|
+
errors++;
|
|
3923
|
+
}
|
|
3924
|
+
}
|
|
3925
|
+
}
|
|
3926
|
+
}
|
|
3927
|
+
var valid10 = _errs11 === errors;
|
|
3928
|
+
if (valid10) {
|
|
3929
|
+
const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3930
|
+
if (vErrors === null) {
|
|
3931
|
+
vErrors = [err5];
|
|
3932
|
+
} else {
|
|
3933
|
+
vErrors.push(err5);
|
|
3934
|
+
}
|
|
3935
|
+
errors++;
|
|
3936
|
+
} else {
|
|
3937
|
+
errors = _errs10;
|
|
3938
|
+
if (vErrors !== null) {
|
|
3939
|
+
if (_errs10) {
|
|
3940
|
+
vErrors.length = _errs10;
|
|
3941
|
+
} else {
|
|
3942
|
+
vErrors = null;
|
|
3943
|
+
}
|
|
3944
|
+
}
|
|
3945
|
+
}
|
|
3641
3946
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3642
3947
|
if (data2.type !== void 0) {
|
|
3643
|
-
let
|
|
3644
|
-
const
|
|
3645
|
-
const
|
|
3646
|
-
if (!(
|
|
3647
|
-
const
|
|
3948
|
+
let data5 = data2.type;
|
|
3949
|
+
const _errs14 = errors;
|
|
3950
|
+
const _errs15 = errors;
|
|
3951
|
+
if (!(data5 === "commit" || data5 === "branch")) {
|
|
3952
|
+
const err6 = {};
|
|
3648
3953
|
if (vErrors === null) {
|
|
3649
|
-
vErrors = [
|
|
3954
|
+
vErrors = [err6];
|
|
3650
3955
|
} else {
|
|
3651
|
-
vErrors.push(
|
|
3956
|
+
vErrors.push(err6);
|
|
3652
3957
|
}
|
|
3653
3958
|
errors++;
|
|
3654
3959
|
}
|
|
3655
|
-
var
|
|
3656
|
-
if (
|
|
3657
|
-
const
|
|
3960
|
+
var valid13 = _errs15 === errors;
|
|
3961
|
+
if (valid13) {
|
|
3962
|
+
const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3658
3963
|
if (vErrors === null) {
|
|
3659
|
-
vErrors = [
|
|
3964
|
+
vErrors = [err7];
|
|
3660
3965
|
} else {
|
|
3661
|
-
vErrors.push(
|
|
3966
|
+
vErrors.push(err7);
|
|
3662
3967
|
}
|
|
3663
3968
|
errors++;
|
|
3664
3969
|
} else {
|
|
3665
|
-
errors =
|
|
3970
|
+
errors = _errs14;
|
|
3666
3971
|
if (vErrors !== null) {
|
|
3667
|
-
if (
|
|
3668
|
-
vErrors.length =
|
|
3972
|
+
if (_errs14) {
|
|
3973
|
+
vErrors.length = _errs14;
|
|
3669
3974
|
} else {
|
|
3670
3975
|
vErrors = null;
|
|
3671
3976
|
}
|
|
@@ -3741,34 +4046,79 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3741
4046
|
}
|
|
3742
4047
|
}
|
|
3743
4048
|
}
|
|
4049
|
+
const _errs9 = errors;
|
|
4050
|
+
const _errs10 = errors;
|
|
4051
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
4052
|
+
if (data2.type === void 0 && ("type")) {
|
|
4053
|
+
const err3 = {};
|
|
4054
|
+
if (vErrors === null) {
|
|
4055
|
+
vErrors = [err3];
|
|
4056
|
+
} else {
|
|
4057
|
+
vErrors.push(err3);
|
|
4058
|
+
}
|
|
4059
|
+
errors++;
|
|
4060
|
+
} else {
|
|
4061
|
+
if (data2.type !== void 0) {
|
|
4062
|
+
let data4 = data2.type;
|
|
4063
|
+
if (!(data4 === "line" || data4 === "seal" || data4 === "open" || data4 === "pick" || data4 === "stamp")) {
|
|
4064
|
+
const err4 = {};
|
|
4065
|
+
if (vErrors === null) {
|
|
4066
|
+
vErrors = [err4];
|
|
4067
|
+
} else {
|
|
4068
|
+
vErrors.push(err4);
|
|
4069
|
+
}
|
|
4070
|
+
errors++;
|
|
4071
|
+
}
|
|
4072
|
+
}
|
|
4073
|
+
}
|
|
4074
|
+
}
|
|
4075
|
+
var valid10 = _errs10 === errors;
|
|
4076
|
+
if (valid10) {
|
|
4077
|
+
const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4078
|
+
if (vErrors === null) {
|
|
4079
|
+
vErrors = [err5];
|
|
4080
|
+
} else {
|
|
4081
|
+
vErrors.push(err5);
|
|
4082
|
+
}
|
|
4083
|
+
errors++;
|
|
4084
|
+
} else {
|
|
4085
|
+
errors = _errs9;
|
|
4086
|
+
if (vErrors !== null) {
|
|
4087
|
+
if (_errs9) {
|
|
4088
|
+
vErrors.length = _errs9;
|
|
4089
|
+
} else {
|
|
4090
|
+
vErrors = null;
|
|
4091
|
+
}
|
|
4092
|
+
}
|
|
4093
|
+
}
|
|
3744
4094
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3745
4095
|
if (data2.type !== void 0) {
|
|
3746
|
-
let
|
|
3747
|
-
const
|
|
3748
|
-
const
|
|
3749
|
-
if (!(
|
|
3750
|
-
const
|
|
4096
|
+
let data5 = data2.type;
|
|
4097
|
+
const _errs13 = errors;
|
|
4098
|
+
const _errs14 = errors;
|
|
4099
|
+
if (!(data5 === "commit" || data5 === "branch")) {
|
|
4100
|
+
const err6 = {};
|
|
3751
4101
|
if (vErrors === null) {
|
|
3752
|
-
vErrors = [
|
|
4102
|
+
vErrors = [err6];
|
|
3753
4103
|
} else {
|
|
3754
|
-
vErrors.push(
|
|
4104
|
+
vErrors.push(err6);
|
|
3755
4105
|
}
|
|
3756
4106
|
errors++;
|
|
3757
4107
|
}
|
|
3758
|
-
var
|
|
3759
|
-
if (
|
|
3760
|
-
const
|
|
4108
|
+
var valid13 = _errs14 === errors;
|
|
4109
|
+
if (valid13) {
|
|
4110
|
+
const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3761
4111
|
if (vErrors === null) {
|
|
3762
|
-
vErrors = [
|
|
4112
|
+
vErrors = [err7];
|
|
3763
4113
|
} else {
|
|
3764
|
-
vErrors.push(
|
|
4114
|
+
vErrors.push(err7);
|
|
3765
4115
|
}
|
|
3766
4116
|
errors++;
|
|
3767
4117
|
} else {
|
|
3768
|
-
errors =
|
|
4118
|
+
errors = _errs13;
|
|
3769
4119
|
if (vErrors !== null) {
|
|
3770
|
-
if (
|
|
3771
|
-
vErrors.length =
|
|
4120
|
+
if (_errs13) {
|
|
4121
|
+
vErrors.length = _errs13;
|
|
3772
4122
|
} else {
|
|
3773
4123
|
vErrors = null;
|
|
3774
4124
|
}
|
|
@@ -3776,29 +4126,29 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3776
4126
|
}
|
|
3777
4127
|
}
|
|
3778
4128
|
if (data2.at !== void 0) {
|
|
3779
|
-
const
|
|
4129
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3780
4130
|
if (vErrors === null) {
|
|
3781
|
-
vErrors = [
|
|
4131
|
+
vErrors = [err8];
|
|
3782
4132
|
} else {
|
|
3783
|
-
vErrors.push(
|
|
4133
|
+
vErrors.push(err8);
|
|
3784
4134
|
}
|
|
3785
4135
|
errors++;
|
|
3786
4136
|
}
|
|
3787
4137
|
if (data2.into !== void 0) {
|
|
3788
|
-
const
|
|
4138
|
+
const err9 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3789
4139
|
if (vErrors === null) {
|
|
3790
|
-
vErrors = [
|
|
4140
|
+
vErrors = [err9];
|
|
3791
4141
|
} else {
|
|
3792
|
-
vErrors.push(
|
|
4142
|
+
vErrors.push(err9);
|
|
3793
4143
|
}
|
|
3794
4144
|
errors++;
|
|
3795
4145
|
}
|
|
3796
4146
|
if (data2.color !== void 0) {
|
|
3797
|
-
const
|
|
4147
|
+
const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3798
4148
|
if (vErrors === null) {
|
|
3799
|
-
vErrors = [
|
|
4149
|
+
vErrors = [err10];
|
|
3800
4150
|
} else {
|
|
3801
|
-
vErrors.push(
|
|
4151
|
+
vErrors.push(err10);
|
|
3802
4152
|
}
|
|
3803
4153
|
errors++;
|
|
3804
4154
|
}
|
|
@@ -3812,15 +4162,217 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3812
4162
|
validate22.errors = vErrors;
|
|
3813
4163
|
return errors === 0;
|
|
3814
4164
|
}
|
|
3815
|
-
|
|
3816
|
-
var pattern0 = new RegExp("^[^\\s\\[\\]\u300C\u300D=:]+$", "u");
|
|
3817
|
-
var func3 = ucs2length;
|
|
3818
|
-
function validate27(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4165
|
+
function validate25(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3819
4166
|
let vErrors = null;
|
|
3820
4167
|
let errors = 0;
|
|
3821
|
-
if (
|
|
3822
|
-
|
|
3823
|
-
|
|
4168
|
+
if (Array.isArray(data)) {
|
|
4169
|
+
const len0 = data.length;
|
|
4170
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
4171
|
+
let data0 = data[i0];
|
|
4172
|
+
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
4173
|
+
if (data0.events !== void 0) {
|
|
4174
|
+
let data1 = data0.events;
|
|
4175
|
+
if (Array.isArray(data1)) {
|
|
4176
|
+
const len1 = data1.length;
|
|
4177
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
4178
|
+
let data2 = data1[i1];
|
|
4179
|
+
const _errs3 = errors;
|
|
4180
|
+
const _errs4 = errors;
|
|
4181
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
4182
|
+
if (data2.type === void 0 && ("type")) {
|
|
4183
|
+
const err0 = {};
|
|
4184
|
+
if (vErrors === null) {
|
|
4185
|
+
vErrors = [err0];
|
|
4186
|
+
} else {
|
|
4187
|
+
vErrors.push(err0);
|
|
4188
|
+
}
|
|
4189
|
+
errors++;
|
|
4190
|
+
} else {
|
|
4191
|
+
if (data2.type !== void 0) {
|
|
4192
|
+
let data3 = data2.type;
|
|
4193
|
+
if (!(data3 === "now" || data3 === "mark" || data3 === "span")) {
|
|
4194
|
+
const err1 = {};
|
|
4195
|
+
if (vErrors === null) {
|
|
4196
|
+
vErrors = [err1];
|
|
4197
|
+
} else {
|
|
4198
|
+
vErrors.push(err1);
|
|
4199
|
+
}
|
|
4200
|
+
errors++;
|
|
4201
|
+
}
|
|
4202
|
+
}
|
|
4203
|
+
}
|
|
4204
|
+
}
|
|
4205
|
+
var valid5 = _errs4 === errors;
|
|
4206
|
+
if (valid5) {
|
|
4207
|
+
const err2 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4208
|
+
if (vErrors === null) {
|
|
4209
|
+
vErrors = [err2];
|
|
4210
|
+
} else {
|
|
4211
|
+
vErrors.push(err2);
|
|
4212
|
+
}
|
|
4213
|
+
errors++;
|
|
4214
|
+
} else {
|
|
4215
|
+
errors = _errs3;
|
|
4216
|
+
if (vErrors !== null) {
|
|
4217
|
+
if (_errs3) {
|
|
4218
|
+
vErrors.length = _errs3;
|
|
4219
|
+
} else {
|
|
4220
|
+
vErrors = null;
|
|
4221
|
+
}
|
|
4222
|
+
}
|
|
4223
|
+
}
|
|
4224
|
+
const _errs8 = errors;
|
|
4225
|
+
const _errs9 = errors;
|
|
4226
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
4227
|
+
if (data2.type === void 0 && ("type")) {
|
|
4228
|
+
const err3 = {};
|
|
4229
|
+
if (vErrors === null) {
|
|
4230
|
+
vErrors = [err3];
|
|
4231
|
+
} else {
|
|
4232
|
+
vErrors.push(err3);
|
|
4233
|
+
}
|
|
4234
|
+
errors++;
|
|
4235
|
+
} else {
|
|
4236
|
+
if (data2.type !== void 0) {
|
|
4237
|
+
let data4 = data2.type;
|
|
4238
|
+
if (!(data4 === "leaf" || data4 === "node")) {
|
|
4239
|
+
const err4 = {};
|
|
4240
|
+
if (vErrors === null) {
|
|
4241
|
+
vErrors = [err4];
|
|
4242
|
+
} else {
|
|
4243
|
+
vErrors.push(err4);
|
|
4244
|
+
}
|
|
4245
|
+
errors++;
|
|
4246
|
+
}
|
|
4247
|
+
}
|
|
4248
|
+
}
|
|
4249
|
+
}
|
|
4250
|
+
var valid9 = _errs9 === errors;
|
|
4251
|
+
if (valid9) {
|
|
4252
|
+
const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/allOf/0/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4253
|
+
if (vErrors === null) {
|
|
4254
|
+
vErrors = [err5];
|
|
4255
|
+
} else {
|
|
4256
|
+
vErrors.push(err5);
|
|
4257
|
+
}
|
|
4258
|
+
errors++;
|
|
4259
|
+
} else {
|
|
4260
|
+
errors = _errs8;
|
|
4261
|
+
if (vErrors !== null) {
|
|
4262
|
+
if (_errs8) {
|
|
4263
|
+
vErrors.length = _errs8;
|
|
4264
|
+
} else {
|
|
4265
|
+
vErrors = null;
|
|
4266
|
+
}
|
|
4267
|
+
}
|
|
4268
|
+
}
|
|
4269
|
+
const _errs14 = errors;
|
|
4270
|
+
const _errs15 = errors;
|
|
4271
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
4272
|
+
if (data2.type === void 0 && ("type")) {
|
|
4273
|
+
const err6 = {};
|
|
4274
|
+
if (vErrors === null) {
|
|
4275
|
+
vErrors = [err6];
|
|
4276
|
+
} else {
|
|
4277
|
+
vErrors.push(err6);
|
|
4278
|
+
}
|
|
4279
|
+
errors++;
|
|
4280
|
+
} else {
|
|
4281
|
+
if (data2.type !== void 0) {
|
|
4282
|
+
let data5 = data2.type;
|
|
4283
|
+
if (!(data5 === "edge" || data5 === "action")) {
|
|
4284
|
+
const err7 = {};
|
|
4285
|
+
if (vErrors === null) {
|
|
4286
|
+
vErrors = [err7];
|
|
4287
|
+
} else {
|
|
4288
|
+
vErrors.push(err7);
|
|
4289
|
+
}
|
|
4290
|
+
errors++;
|
|
4291
|
+
}
|
|
4292
|
+
}
|
|
4293
|
+
}
|
|
4294
|
+
}
|
|
4295
|
+
var valid13 = _errs15 === errors;
|
|
4296
|
+
if (valid13) {
|
|
4297
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notWiredEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4298
|
+
if (vErrors === null) {
|
|
4299
|
+
vErrors = [err8];
|
|
4300
|
+
} else {
|
|
4301
|
+
vErrors.push(err8);
|
|
4302
|
+
}
|
|
4303
|
+
errors++;
|
|
4304
|
+
} else {
|
|
4305
|
+
errors = _errs14;
|
|
4306
|
+
if (vErrors !== null) {
|
|
4307
|
+
if (_errs14) {
|
|
4308
|
+
vErrors.length = _errs14;
|
|
4309
|
+
} else {
|
|
4310
|
+
vErrors = null;
|
|
4311
|
+
}
|
|
4312
|
+
}
|
|
4313
|
+
}
|
|
4314
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
4315
|
+
if (data2.type !== void 0) {
|
|
4316
|
+
let data6 = data2.type;
|
|
4317
|
+
const _errs18 = errors;
|
|
4318
|
+
const _errs19 = errors;
|
|
4319
|
+
if (!(data6 === "commit" || data6 === "branch")) {
|
|
4320
|
+
const err9 = {};
|
|
4321
|
+
if (vErrors === null) {
|
|
4322
|
+
vErrors = [err9];
|
|
4323
|
+
} else {
|
|
4324
|
+
vErrors.push(err9);
|
|
4325
|
+
}
|
|
4326
|
+
errors++;
|
|
4327
|
+
}
|
|
4328
|
+
var valid16 = _errs19 === errors;
|
|
4329
|
+
if (valid16) {
|
|
4330
|
+
const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4331
|
+
if (vErrors === null) {
|
|
4332
|
+
vErrors = [err10];
|
|
4333
|
+
} else {
|
|
4334
|
+
vErrors.push(err10);
|
|
4335
|
+
}
|
|
4336
|
+
errors++;
|
|
4337
|
+
} else {
|
|
4338
|
+
errors = _errs18;
|
|
4339
|
+
if (vErrors !== null) {
|
|
4340
|
+
if (_errs18) {
|
|
4341
|
+
vErrors.length = _errs18;
|
|
4342
|
+
} else {
|
|
4343
|
+
vErrors = null;
|
|
4344
|
+
}
|
|
4345
|
+
}
|
|
4346
|
+
}
|
|
4347
|
+
}
|
|
4348
|
+
if (data2.color !== void 0) {
|
|
4349
|
+
const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4350
|
+
if (vErrors === null) {
|
|
4351
|
+
vErrors = [err11];
|
|
4352
|
+
} else {
|
|
4353
|
+
vErrors.push(err11);
|
|
4354
|
+
}
|
|
4355
|
+
errors++;
|
|
4356
|
+
}
|
|
4357
|
+
}
|
|
4358
|
+
}
|
|
4359
|
+
}
|
|
4360
|
+
}
|
|
4361
|
+
}
|
|
4362
|
+
}
|
|
4363
|
+
}
|
|
4364
|
+
validate25.errors = vErrors;
|
|
4365
|
+
return errors === 0;
|
|
4366
|
+
}
|
|
4367
|
+
var schema79 = { "enum": ["blue", "amber", "green", "violet", "rose", "slate", "coin"] };
|
|
4368
|
+
var pattern0 = new RegExp("^[^\\s\\[\\]\u300C\u300D=:]+$", "u");
|
|
4369
|
+
var func3 = ucs2length;
|
|
4370
|
+
function validate30(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4371
|
+
let vErrors = null;
|
|
4372
|
+
let errors = 0;
|
|
4373
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4374
|
+
if (data.id === void 0) {
|
|
4375
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
|
|
3824
4376
|
if (vErrors === null) {
|
|
3825
4377
|
vErrors = [err0];
|
|
3826
4378
|
} else {
|
|
@@ -3917,7 +4469,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3917
4469
|
if (data.color !== void 0) {
|
|
3918
4470
|
let data3 = data.color;
|
|
3919
4471
|
if (!(data3 === "blue" || data3 === "amber" || data3 === "green" || data3 === "violet" || data3 === "rose" || data3 === "slate" || data3 === "coin")) {
|
|
3920
|
-
const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
4472
|
+
const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
|
|
3921
4473
|
if (vErrors === null) {
|
|
3922
4474
|
vErrors = [err9];
|
|
3923
4475
|
} else {
|
|
@@ -3957,11 +4509,11 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3957
4509
|
}
|
|
3958
4510
|
errors++;
|
|
3959
4511
|
}
|
|
3960
|
-
|
|
4512
|
+
validate30.errors = vErrors;
|
|
3961
4513
|
return errors === 0;
|
|
3962
4514
|
}
|
|
3963
4515
|
var pattern3 = new RegExp("^(/|https?://)", "u");
|
|
3964
|
-
function
|
|
4516
|
+
function validate32(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3965
4517
|
let vErrors = null;
|
|
3966
4518
|
let errors = 0;
|
|
3967
4519
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -4063,7 +4615,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4063
4615
|
if (data.color !== void 0) {
|
|
4064
4616
|
let data3 = data.color;
|
|
4065
4617
|
if (!(data3 === "blue" || data3 === "amber" || data3 === "green" || data3 === "violet" || data3 === "rose" || data3 === "slate" || data3 === "coin")) {
|
|
4066
|
-
const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
4618
|
+
const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
|
|
4067
4619
|
if (vErrors === null) {
|
|
4068
4620
|
vErrors = [err9];
|
|
4069
4621
|
} else {
|
|
@@ -4147,11 +4699,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4147
4699
|
}
|
|
4148
4700
|
errors++;
|
|
4149
4701
|
}
|
|
4150
|
-
|
|
4702
|
+
validate32.errors = vErrors;
|
|
4151
4703
|
return errors === 0;
|
|
4152
4704
|
}
|
|
4153
4705
|
var pattern4 = new RegExp("^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$", "u");
|
|
4154
|
-
function
|
|
4706
|
+
function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4155
4707
|
let vErrors = null;
|
|
4156
4708
|
let errors = 0;
|
|
4157
4709
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -4237,10 +4789,10 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4237
4789
|
}
|
|
4238
4790
|
errors++;
|
|
4239
4791
|
}
|
|
4240
|
-
|
|
4792
|
+
validate35.errors = vErrors;
|
|
4241
4793
|
return errors === 0;
|
|
4242
4794
|
}
|
|
4243
|
-
function
|
|
4795
|
+
function validate34(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4244
4796
|
let vErrors = null;
|
|
4245
4797
|
let errors = 0;
|
|
4246
4798
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -4354,8 +4906,8 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4354
4906
|
}
|
|
4355
4907
|
const len1 = data3.length;
|
|
4356
4908
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
4357
|
-
if (!
|
|
4358
|
-
vErrors = vErrors === null ?
|
|
4909
|
+
if (!validate35(data3[i1], { instancePath: instancePath + "/meters/" + i1, parentData: data3, parentDataProperty: i1, rootData })) {
|
|
4910
|
+
vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
|
|
4359
4911
|
errors = vErrors.length;
|
|
4360
4912
|
}
|
|
4361
4913
|
}
|
|
@@ -4378,10 +4930,10 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4378
4930
|
}
|
|
4379
4931
|
errors++;
|
|
4380
4932
|
}
|
|
4381
|
-
|
|
4933
|
+
validate34.errors = vErrors;
|
|
4382
4934
|
return errors === 0;
|
|
4383
4935
|
}
|
|
4384
|
-
function
|
|
4936
|
+
function validate39(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4385
4937
|
let vErrors = null;
|
|
4386
4938
|
let errors = 0;
|
|
4387
4939
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -4467,13 +5019,13 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4467
5019
|
}
|
|
4468
5020
|
errors++;
|
|
4469
5021
|
}
|
|
4470
|
-
|
|
5022
|
+
validate39.errors = vErrors;
|
|
4471
5023
|
return errors === 0;
|
|
4472
5024
|
}
|
|
4473
|
-
var
|
|
5025
|
+
var schema102 = { "oneOf": [{ "description": "\u7DDA\u3002\u904B\u3076\u7269\u3092\u8F09\u305B\u3066\u9001\u308B\u5074\u304B\u3089\u53D7\u3051\u308B\u5074\u3078\u8D70\u308B", "type": "object", "additionalProperties": false, "required": ["type", "from", "to", "carry"], "properties": { "type": { "const": "edge" }, "from": { "$ref": "#/definitions/id" }, "to": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" }, "carry": { "$ref": "#/definitions/carry" }, "labelSide": { "description": "\u7DDA\u306E\u540D\u524D\u3092\u7F6E\u304F\u5074 (\u5BC4\u305B\u306E\u6307\u793A)", "enum": ["above", "below", "left", "right"] }, "at": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u62E1\u5927\u306E\u5E2F\u3067\u3001\u7DDA\u3092\u5F15\u304F\u5217\u306E\u76EE\u76DB\u308A", "$ref": "#/definitions/unit" }, "into": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u62E1\u5927\u306E\u5E2F\u3067\u3001\u53D7\u3051\u308B\u7BB1\u3092\u9078\u3076\u5217\u306E\u76EE\u76DB\u308A\u3002\u66F8\u304B\u306A\u3051\u308C\u3070 at \u306E\u5217", "$ref": "#/definitions/unit" } } }, { "description": "\u7BB1\u306E\u4E2D\u306E\u51E6\u7406", "type": "object", "additionalProperties": false, "required": ["type", "box", "label"], "properties": { "type": { "const": "action" }, "box": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" } } }, { "description": "\u7BB1\u306E\u4E0B\u306E\u5C0F\u3055\u306A\u5B57\u306E\u66F8\u304D\u63DB\u3048", "type": "object", "additionalProperties": false, "required": ["type", "box", "text"], "properties": { "type": { "const": "swap" }, "box": { "$ref": "#/definitions/id" }, "text": { "$ref": "#/definitions/text" }, "color": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u7BC0\u76EE\u306E\u4E38\u306E\u8272", "$ref": "#/definitions/color" } } }, { "description": "commit \u3092\u7A4D\u3080\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u7A4D\u3093\u3060\u679D\u306E\u672D\u3068\u3001\u305D\u306E\u679D\u3092\u6307\u3059 HEAD \u304C\u9032\u3080\u3002\u5F53\u3066\u76F4\u3057 (copy) \u306F\u679D\u306E\u672D\u3092\u52D5\u304B\u3055\u305A\u3001merge commit (merge) \u306F\u53D6\u308A\u8FBC\u3080\u679D\u306E\u5148\u7AEF\u3082\u89AA\u306B\u6301\u3064", "type": "object", "additionalProperties": false, "required": ["type", "id", "branch"], "properties": { "type": { "const": "commit" }, "id": { "$ref": "#/definitions/id" }, "branch": { "$ref": "#/definitions/id" }, "copy": { "$ref": "#/definitions/id" }, "merge": { "$ref": "#/definitions/id" }, "hash": { "$ref": "#/definitions/hash" }, "note": { "$ref": "#/definitions/text" } } }, { "description": "\u679D\u3092\u5207\u308B\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u679D\u306E\u672D\u3092 from \u306E commit \u3078\u7F6E\u304D\u3001HEAD \u3092\u305D\u306E\u679D\u3078\u79FB\u3059", "type": "object", "additionalProperties": false, "required": ["type", "branch", "from"], "properties": { "type": { "const": "branch" }, "branch": { "$ref": "#/definitions/id" }, "from": { "$ref": "#/definitions/id" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u4ECA\u306E\u6642\u523B\u306E\u91DD\u3092\u3001to \u306E\u76EE\u76DB\u308A\u306E\u7D42\u308F\u308A\u307E\u3067\u9032\u3081\u308B", "type": "object", "additionalProperties": false, "required": ["type", "to"], "properties": { "type": { "const": "now" }, "to": { "$ref": "#/definitions/unit" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u5370\u306E\u5217 row \u306E\u3001from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u306E\u5370\u306E\u8272\u3092\u5909\u3048\u308B", "type": "object", "additionalProperties": false, "required": ["type", "row", "from", "to", "color"], "properties": { "type": { "const": "mark" }, "row": { "$ref": "#/definitions/id" }, "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" }, "color": { "$ref": "#/definitions/color" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u306B\u3001\u62EC\u5F27\u3068\u5B57\u3092\u51FA\u3059\u3002shape \u304C box \u306A\u3089\u5370\u306E\u5217\u3092\u56F2\u307F\u3001\u5B57\u3092\u7E01\u306E\u672D\u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["type", "from", "to", "text"], "properties": { "type": { "const": "span" }, "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" }, "text": { "$ref": "#/definitions/text" }, "shape": { "enum": ["box"] }, "color": { "$ref": "#/definitions/color" } } }, { "description": "\u8449\u3092\u51FA\u3059\u3002\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u66F8\u3044\u305F\u6BB5\u3067\u8449\u306E\u7BB1\u304C\u73FE\u308C\u308B\u3002hash \u3092\u66F8\u304F\u3068\u7BB1\u306B\u5024\u3092\u51FA\u3057\u3001\u540D\u672D\u3092\u8449\u306E\u4E0B\u306E\u672D\u306B\u51FA\u3059", "type": "object", "additionalProperties": false, "required": ["type", "id"], "properties": { "type": { "const": "leaf" }, "id": { "$ref": "#/definitions/id" }, "hash": { "$ref": "#/definitions/hash" } } }, { "description": "1 \u3064\u4EE5\u4E0A\u306E\u5B50\u304B\u3089\u89AA\u3092\u7D44\u3080\u3002\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u66F8\u3044\u305F\u6BB5\u3067\u89AA\u306E\u7BB1\u3068\u3001\u5B50\u304B\u3089\u89AA\u3078\u306E\u6728\u306E\u7DDA\u304C\u73FE\u308C\u308B", "type": "object", "additionalProperties": false, "required": ["type", "id", "children"], "properties": { "type": { "const": "node" }, "id": { "$ref": "#/definitions/id" }, "children": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/id" } }, "hash": { "$ref": "#/definitions/hash" } } }, { "description": "\u5217\u306E box \u306E\u4E26\u3073\u3092 items \u306B\u66F8\u304D\u63DB\u3048\u308B\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u30C1\u30C3\u30D7\u306F\u524D\u306B\u5C45\u305F\u5217\u304B\u3089\u6ED1\u308A\u3001\u3069\u306E\u5217\u306B\u3082\u5C45\u306A\u304B\u3063\u305F\u30C1\u30C3\u30D7\u306F\u5F3E\u3093\u3067\u73FE\u308C\u3001\u5217\u304B\u3089\u5916\u308C\u305F\u30C1\u30C3\u30D7\u306F\u6D88\u3048\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box", "items"], "properties": { "type": { "const": "line" }, "box": { "$ref": "#/definitions/id" }, "items": { "type": "array", "minItems": 1, "maxItems": 12, "items": { "$ref": "#/definitions/id" } } } }, { "description": "\u5217 box \u306B\u5C01\u3092\u3057\u3066\u3001\u30C1\u30C3\u30D7\u3092\u96A0\u3059\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "seal" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u306E\u5C01\u3092\u958B\u3051\u308B\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "open" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u3092\u9078\u3076\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u5217\u306E\u7E01\u306B\u8272\u304C\u4ED8\u304D\u3001\u307B\u304B\u306E\u5217\u304C\u8584\u304F\u306A\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "pick" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u306E\u53F3\u306B text \u306E\u672D\u3092\u62BC\u3059\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box", "text"], "properties": { "type": { "const": "stamp" }, "box": { "$ref": "#/definitions/id" }, "text": { "$ref": "#/definitions/text" } } }, { "description": "\u4E2D\u8EAB\u306E\u5E2F\u306E\u6B04\u306E\u5024\u3068\u672D", "type": "object", "additionalProperties": false, "required": ["type", "field"], "anyOf": [{ "required": ["value"] }, { "required": ["tag"] }], "properties": { "type": { "const": "strip" }, "field": { "$ref": "#/definitions/text" }, "value": { "$ref": "#/definitions/text" }, "tag": { "$ref": "#/definitions/text" } } }] };
|
|
4474
5026
|
var pattern14 = new RegExp("^[0-9a-f]{4,40}$", "u");
|
|
4475
|
-
var
|
|
4476
|
-
function
|
|
5027
|
+
var schema106 = { "properties": { "kind": { "enum": ["envelope", "tag", "coin", "none"] }}};
|
|
5028
|
+
function validate42(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4477
5029
|
let vErrors = null;
|
|
4478
5030
|
let errors = 0;
|
|
4479
5031
|
const _errs1 = errors;
|
|
@@ -4599,7 +5151,7 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4599
5151
|
if (data.kind !== void 0) {
|
|
4600
5152
|
let data1 = data.kind;
|
|
4601
5153
|
if (!(data1 === "envelope" || data1 === "tag" || data1 === "coin" || data1 === "none")) {
|
|
4602
|
-
const err8 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues:
|
|
5154
|
+
const err8 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema106.properties.kind.enum }, message: "must be equal to one of the allowed values" };
|
|
4603
5155
|
if (vErrors === null) {
|
|
4604
5156
|
vErrors = [err8];
|
|
4605
5157
|
} else {
|
|
@@ -4639,10 +5191,10 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4639
5191
|
}
|
|
4640
5192
|
errors++;
|
|
4641
5193
|
}
|
|
4642
|
-
|
|
5194
|
+
validate42.errors = vErrors;
|
|
4643
5195
|
return errors === 0;
|
|
4644
5196
|
}
|
|
4645
|
-
function
|
|
5197
|
+
function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4646
5198
|
let vErrors = null;
|
|
4647
5199
|
let errors = 0;
|
|
4648
5200
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -4784,15 +5336,15 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4784
5336
|
}
|
|
4785
5337
|
}
|
|
4786
5338
|
if (data.carry !== void 0) {
|
|
4787
|
-
if (!
|
|
4788
|
-
vErrors = vErrors === null ?
|
|
5339
|
+
if (!validate42(data.carry, { instancePath: instancePath + "/carry", parentData: data, parentDataProperty: "carry", rootData })) {
|
|
5340
|
+
vErrors = vErrors === null ? validate42.errors : vErrors.concat(validate42.errors);
|
|
4789
5341
|
errors = vErrors.length;
|
|
4790
5342
|
}
|
|
4791
5343
|
}
|
|
4792
5344
|
if (data.labelSide !== void 0) {
|
|
4793
5345
|
let data5 = data.labelSide;
|
|
4794
5346
|
if (!(data5 === "above" || data5 === "below" || data5 === "left" || data5 === "right")) {
|
|
4795
|
-
const err13 = { instancePath: instancePath + "/labelSide", schemaPath: "#/oneOf/0/properties/labelSide/enum", keyword: "enum", params: { allowedValues:
|
|
5347
|
+
const err13 = { instancePath: instancePath + "/labelSide", schemaPath: "#/oneOf/0/properties/labelSide/enum", keyword: "enum", params: { allowedValues: schema102.oneOf[0].properties.labelSide.enum }, message: "must be equal to one of the allowed values" };
|
|
4796
5348
|
if (vErrors === null) {
|
|
4797
5349
|
vErrors = [err13];
|
|
4798
5350
|
} else {
|
|
@@ -5058,7 +5610,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5058
5610
|
if (data.color !== void 0) {
|
|
5059
5611
|
let data14 = data.color;
|
|
5060
5612
|
if (!(data14 === "blue" || data14 === "amber" || data14 === "green" || data14 === "violet" || data14 === "rose" || data14 === "slate" || data14 === "coin")) {
|
|
5061
|
-
const err38 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
5613
|
+
const err38 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
|
|
5062
5614
|
if (vErrors === null) {
|
|
5063
5615
|
vErrors = [err38];
|
|
5064
5616
|
} else {
|
|
@@ -5586,7 +6138,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5586
6138
|
if (data.color !== void 0) {
|
|
5587
6139
|
let data31 = data.color;
|
|
5588
6140
|
if (!(data31 === "blue" || data31 === "amber" || data31 === "green" || data31 === "violet" || data31 === "rose" || data31 === "slate" || data31 === "coin")) {
|
|
5589
|
-
const err88 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
6141
|
+
const err88 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
|
|
5590
6142
|
if (vErrors === null) {
|
|
5591
6143
|
vErrors = [err88];
|
|
5592
6144
|
} else {
|
|
@@ -5734,7 +6286,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5734
6286
|
}
|
|
5735
6287
|
if (data.shape !== void 0) {
|
|
5736
6288
|
if (!(data.shape === "box")) {
|
|
5737
|
-
const err102 = { instancePath: instancePath + "/shape", schemaPath: "#/oneOf/7/properties/shape/enum", keyword: "enum", params: { allowedValues:
|
|
6289
|
+
const err102 = { instancePath: instancePath + "/shape", schemaPath: "#/oneOf/7/properties/shape/enum", keyword: "enum", params: { allowedValues: schema102.oneOf[7].properties.shape.enum }, message: "must be equal to one of the allowed values" };
|
|
5738
6290
|
if (vErrors === null) {
|
|
5739
6291
|
vErrors = [err102];
|
|
5740
6292
|
} else {
|
|
@@ -5746,7 +6298,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5746
6298
|
if (data.color !== void 0) {
|
|
5747
6299
|
let data37 = data.color;
|
|
5748
6300
|
if (!(data37 === "blue" || data37 === "amber" || data37 === "green" || data37 === "violet" || data37 === "rose" || data37 === "slate" || data37 === "coin")) {
|
|
5749
|
-
const err103 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
6301
|
+
const err103 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
|
|
5750
6302
|
if (vErrors === null) {
|
|
5751
6303
|
vErrors = [err103];
|
|
5752
6304
|
} else {
|
|
@@ -6008,13 +6560,10 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6008
6560
|
}
|
|
6009
6561
|
errors++;
|
|
6010
6562
|
}
|
|
6011
|
-
} else if (tag0 === "
|
|
6012
|
-
const _errs142 = errors;
|
|
6013
|
-
let valid56 = false;
|
|
6014
|
-
const _errs143 = errors;
|
|
6563
|
+
} else if (tag0 === "line") {
|
|
6015
6564
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6016
|
-
if (data.
|
|
6017
|
-
const err128 = { instancePath, schemaPath: "#/oneOf/10/
|
|
6565
|
+
if (data.type === void 0) {
|
|
6566
|
+
const err128 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
6018
6567
|
if (vErrors === null) {
|
|
6019
6568
|
vErrors = [err128];
|
|
6020
6569
|
} else {
|
|
@@ -6022,190 +6571,652 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6022
6571
|
}
|
|
6023
6572
|
errors++;
|
|
6024
6573
|
}
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
valid56 = valid56 || _valid0;
|
|
6028
|
-
if (!valid56) {
|
|
6029
|
-
const _errs144 = errors;
|
|
6030
|
-
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6031
|
-
if (data.tag === void 0) {
|
|
6032
|
-
const err129 = { instancePath, schemaPath: "#/oneOf/10/anyOf/1/required", keyword: "required", params: { missingProperty: "tag" }, message: "must have required property 'tag'" };
|
|
6033
|
-
if (vErrors === null) {
|
|
6034
|
-
vErrors = [err129];
|
|
6035
|
-
} else {
|
|
6036
|
-
vErrors.push(err129);
|
|
6037
|
-
}
|
|
6038
|
-
errors++;
|
|
6039
|
-
}
|
|
6040
|
-
}
|
|
6041
|
-
var _valid0 = _errs144 === errors;
|
|
6042
|
-
valid56 = valid56 || _valid0;
|
|
6043
|
-
}
|
|
6044
|
-
if (!valid56) {
|
|
6045
|
-
const err130 = { instancePath, schemaPath: "#/oneOf/10/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
6046
|
-
if (vErrors === null) {
|
|
6047
|
-
vErrors = [err130];
|
|
6048
|
-
} else {
|
|
6049
|
-
vErrors.push(err130);
|
|
6050
|
-
}
|
|
6051
|
-
errors++;
|
|
6052
|
-
} else {
|
|
6053
|
-
errors = _errs142;
|
|
6054
|
-
if (vErrors !== null) {
|
|
6055
|
-
if (_errs142) {
|
|
6056
|
-
vErrors.length = _errs142;
|
|
6057
|
-
} else {
|
|
6058
|
-
vErrors = null;
|
|
6059
|
-
}
|
|
6060
|
-
}
|
|
6061
|
-
}
|
|
6062
|
-
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6063
|
-
if (data.type === void 0) {
|
|
6064
|
-
const err131 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
6574
|
+
if (data.box === void 0) {
|
|
6575
|
+
const err129 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
6065
6576
|
if (vErrors === null) {
|
|
6066
|
-
vErrors = [
|
|
6577
|
+
vErrors = [err129];
|
|
6067
6578
|
} else {
|
|
6068
|
-
vErrors.push(
|
|
6579
|
+
vErrors.push(err129);
|
|
6069
6580
|
}
|
|
6070
6581
|
errors++;
|
|
6071
6582
|
}
|
|
6072
|
-
if (data.
|
|
6073
|
-
const
|
|
6583
|
+
if (data.items === void 0) {
|
|
6584
|
+
const err130 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "items" }, message: "must have required property 'items'" };
|
|
6074
6585
|
if (vErrors === null) {
|
|
6075
|
-
vErrors = [
|
|
6586
|
+
vErrors = [err130];
|
|
6076
6587
|
} else {
|
|
6077
|
-
vErrors.push(
|
|
6588
|
+
vErrors.push(err130);
|
|
6078
6589
|
}
|
|
6079
6590
|
errors++;
|
|
6080
6591
|
}
|
|
6081
6592
|
for (const key10 in data) {
|
|
6082
|
-
if (!(key10 === "type" || key10 === "
|
|
6083
|
-
const
|
|
6593
|
+
if (!(key10 === "type" || key10 === "box" || key10 === "items")) {
|
|
6594
|
+
const err131 = { instancePath, schemaPath: "#/oneOf/10/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key10 }, message: "must NOT have additional properties" };
|
|
6084
6595
|
if (vErrors === null) {
|
|
6085
|
-
vErrors = [
|
|
6596
|
+
vErrors = [err131];
|
|
6086
6597
|
} else {
|
|
6087
|
-
vErrors.push(
|
|
6598
|
+
vErrors.push(err131);
|
|
6088
6599
|
}
|
|
6089
6600
|
errors++;
|
|
6090
6601
|
}
|
|
6091
6602
|
}
|
|
6092
6603
|
if (data.type !== void 0) {
|
|
6093
|
-
if ("
|
|
6094
|
-
const
|
|
6604
|
+
if ("line" !== data.type) {
|
|
6605
|
+
const err132 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/10/properties/type/const", keyword: "const", params: { allowedValue: "line" }, message: "must be equal to constant" };
|
|
6095
6606
|
if (vErrors === null) {
|
|
6096
|
-
vErrors = [
|
|
6607
|
+
vErrors = [err132];
|
|
6097
6608
|
} else {
|
|
6098
|
-
vErrors.push(
|
|
6609
|
+
vErrors.push(err132);
|
|
6099
6610
|
}
|
|
6100
6611
|
errors++;
|
|
6101
6612
|
}
|
|
6102
6613
|
}
|
|
6103
|
-
if (data.
|
|
6104
|
-
let data47 = data.
|
|
6614
|
+
if (data.box !== void 0) {
|
|
6615
|
+
let data47 = data.box;
|
|
6105
6616
|
if (typeof data47 === "string") {
|
|
6106
|
-
if (
|
|
6107
|
-
const
|
|
6617
|
+
if (!pattern0.test(data47)) {
|
|
6618
|
+
const err133 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
6108
6619
|
if (vErrors === null) {
|
|
6109
|
-
vErrors = [
|
|
6620
|
+
vErrors = [err133];
|
|
6110
6621
|
} else {
|
|
6111
|
-
vErrors.push(
|
|
6622
|
+
vErrors.push(err133);
|
|
6112
6623
|
}
|
|
6113
6624
|
errors++;
|
|
6114
6625
|
}
|
|
6115
6626
|
} else {
|
|
6116
|
-
const
|
|
6627
|
+
const err134 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6117
6628
|
if (vErrors === null) {
|
|
6118
|
-
vErrors = [
|
|
6629
|
+
vErrors = [err134];
|
|
6119
6630
|
} else {
|
|
6120
|
-
vErrors.push(
|
|
6631
|
+
vErrors.push(err134);
|
|
6121
6632
|
}
|
|
6122
6633
|
errors++;
|
|
6123
6634
|
}
|
|
6124
6635
|
}
|
|
6125
|
-
if (data.
|
|
6126
|
-
let data48 = data.
|
|
6127
|
-
if (
|
|
6128
|
-
if (
|
|
6129
|
-
const
|
|
6636
|
+
if (data.items !== void 0) {
|
|
6637
|
+
let data48 = data.items;
|
|
6638
|
+
if (Array.isArray(data48)) {
|
|
6639
|
+
if (data48.length > 12) {
|
|
6640
|
+
const err135 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/maxItems", keyword: "maxItems", params: { limit: 12 }, message: "must NOT have more than 12 items" };
|
|
6130
6641
|
if (vErrors === null) {
|
|
6131
|
-
vErrors = [
|
|
6642
|
+
vErrors = [err135];
|
|
6132
6643
|
} else {
|
|
6133
|
-
vErrors.push(
|
|
6644
|
+
vErrors.push(err135);
|
|
6134
6645
|
}
|
|
6135
6646
|
errors++;
|
|
6136
6647
|
}
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
if (vErrors === null) {
|
|
6140
|
-
vErrors = [err138];
|
|
6141
|
-
} else {
|
|
6142
|
-
vErrors.push(err138);
|
|
6143
|
-
}
|
|
6144
|
-
errors++;
|
|
6145
|
-
}
|
|
6146
|
-
}
|
|
6147
|
-
if (data.tag !== void 0) {
|
|
6148
|
-
let data49 = data.tag;
|
|
6149
|
-
if (typeof data49 === "string") {
|
|
6150
|
-
if (func3(data49) < 1) {
|
|
6151
|
-
const err139 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
6648
|
+
if (data48.length < 1) {
|
|
6649
|
+
const err136 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
6152
6650
|
if (vErrors === null) {
|
|
6153
|
-
vErrors = [
|
|
6651
|
+
vErrors = [err136];
|
|
6154
6652
|
} else {
|
|
6155
|
-
vErrors.push(
|
|
6653
|
+
vErrors.push(err136);
|
|
6156
6654
|
}
|
|
6157
6655
|
errors++;
|
|
6158
6656
|
}
|
|
6657
|
+
const len1 = data48.length;
|
|
6658
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
6659
|
+
let data49 = data48[i1];
|
|
6660
|
+
if (typeof data49 === "string") {
|
|
6661
|
+
if (!pattern0.test(data49)) {
|
|
6662
|
+
const err137 = { instancePath: instancePath + "/items/" + i1, schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
6663
|
+
if (vErrors === null) {
|
|
6664
|
+
vErrors = [err137];
|
|
6665
|
+
} else {
|
|
6666
|
+
vErrors.push(err137);
|
|
6667
|
+
}
|
|
6668
|
+
errors++;
|
|
6669
|
+
}
|
|
6670
|
+
} else {
|
|
6671
|
+
const err138 = { instancePath: instancePath + "/items/" + i1, schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6672
|
+
if (vErrors === null) {
|
|
6673
|
+
vErrors = [err138];
|
|
6674
|
+
} else {
|
|
6675
|
+
vErrors.push(err138);
|
|
6676
|
+
}
|
|
6677
|
+
errors++;
|
|
6678
|
+
}
|
|
6679
|
+
}
|
|
6159
6680
|
} else {
|
|
6160
|
-
const
|
|
6681
|
+
const err139 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
6161
6682
|
if (vErrors === null) {
|
|
6162
|
-
vErrors = [
|
|
6683
|
+
vErrors = [err139];
|
|
6163
6684
|
} else {
|
|
6164
|
-
vErrors.push(
|
|
6685
|
+
vErrors.push(err139);
|
|
6165
6686
|
}
|
|
6166
6687
|
errors++;
|
|
6167
6688
|
}
|
|
6168
6689
|
}
|
|
6169
6690
|
} else {
|
|
6170
|
-
const
|
|
6691
|
+
const err140 = { instancePath, schemaPath: "#/oneOf/10/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
6171
6692
|
if (vErrors === null) {
|
|
6172
|
-
vErrors = [
|
|
6693
|
+
vErrors = [err140];
|
|
6173
6694
|
} else {
|
|
6174
|
-
vErrors.push(
|
|
6695
|
+
vErrors.push(err140);
|
|
6175
6696
|
}
|
|
6176
6697
|
errors++;
|
|
6177
6698
|
}
|
|
6178
|
-
} else {
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6699
|
+
} else if (tag0 === "seal") {
|
|
6700
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6701
|
+
if (data.type === void 0) {
|
|
6702
|
+
const err141 = { instancePath, schemaPath: "#/oneOf/11/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
6703
|
+
if (vErrors === null) {
|
|
6704
|
+
vErrors = [err141];
|
|
6705
|
+
} else {
|
|
6706
|
+
vErrors.push(err141);
|
|
6707
|
+
}
|
|
6708
|
+
errors++;
|
|
6709
|
+
}
|
|
6710
|
+
if (data.box === void 0) {
|
|
6711
|
+
const err142 = { instancePath, schemaPath: "#/oneOf/11/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
6712
|
+
if (vErrors === null) {
|
|
6713
|
+
vErrors = [err142];
|
|
6714
|
+
} else {
|
|
6715
|
+
vErrors.push(err142);
|
|
6716
|
+
}
|
|
6717
|
+
errors++;
|
|
6718
|
+
}
|
|
6719
|
+
for (const key11 in data) {
|
|
6720
|
+
if (!(key11 === "type" || key11 === "box")) {
|
|
6721
|
+
const err143 = { instancePath, schemaPath: "#/oneOf/11/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key11 }, message: "must NOT have additional properties" };
|
|
6722
|
+
if (vErrors === null) {
|
|
6723
|
+
vErrors = [err143];
|
|
6724
|
+
} else {
|
|
6725
|
+
vErrors.push(err143);
|
|
6726
|
+
}
|
|
6727
|
+
errors++;
|
|
6728
|
+
}
|
|
6729
|
+
}
|
|
6730
|
+
if (data.type !== void 0) {
|
|
6731
|
+
if ("seal" !== data.type) {
|
|
6732
|
+
const err144 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/11/properties/type/const", keyword: "const", params: { allowedValue: "seal" }, message: "must be equal to constant" };
|
|
6733
|
+
if (vErrors === null) {
|
|
6734
|
+
vErrors = [err144];
|
|
6735
|
+
} else {
|
|
6736
|
+
vErrors.push(err144);
|
|
6737
|
+
}
|
|
6738
|
+
errors++;
|
|
6739
|
+
}
|
|
6740
|
+
}
|
|
6741
|
+
if (data.box !== void 0) {
|
|
6742
|
+
let data51 = data.box;
|
|
6743
|
+
if (typeof data51 === "string") {
|
|
6744
|
+
if (!pattern0.test(data51)) {
|
|
6745
|
+
const err145 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
6746
|
+
if (vErrors === null) {
|
|
6747
|
+
vErrors = [err145];
|
|
6748
|
+
} else {
|
|
6749
|
+
vErrors.push(err145);
|
|
6750
|
+
}
|
|
6751
|
+
errors++;
|
|
6752
|
+
}
|
|
6753
|
+
} else {
|
|
6754
|
+
const err146 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6755
|
+
if (vErrors === null) {
|
|
6756
|
+
vErrors = [err146];
|
|
6757
|
+
} else {
|
|
6758
|
+
vErrors.push(err146);
|
|
6759
|
+
}
|
|
6760
|
+
errors++;
|
|
6761
|
+
}
|
|
6762
|
+
}
|
|
6763
|
+
} else {
|
|
6764
|
+
const err147 = { instancePath, schemaPath: "#/oneOf/11/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
6765
|
+
if (vErrors === null) {
|
|
6766
|
+
vErrors = [err147];
|
|
6767
|
+
} else {
|
|
6768
|
+
vErrors.push(err147);
|
|
6769
|
+
}
|
|
6770
|
+
errors++;
|
|
6771
|
+
}
|
|
6772
|
+
} else if (tag0 === "open") {
|
|
6773
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6774
|
+
if (data.type === void 0) {
|
|
6775
|
+
const err148 = { instancePath, schemaPath: "#/oneOf/12/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
6776
|
+
if (vErrors === null) {
|
|
6777
|
+
vErrors = [err148];
|
|
6778
|
+
} else {
|
|
6779
|
+
vErrors.push(err148);
|
|
6780
|
+
}
|
|
6781
|
+
errors++;
|
|
6782
|
+
}
|
|
6783
|
+
if (data.box === void 0) {
|
|
6784
|
+
const err149 = { instancePath, schemaPath: "#/oneOf/12/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
6785
|
+
if (vErrors === null) {
|
|
6786
|
+
vErrors = [err149];
|
|
6787
|
+
} else {
|
|
6788
|
+
vErrors.push(err149);
|
|
6789
|
+
}
|
|
6790
|
+
errors++;
|
|
6791
|
+
}
|
|
6792
|
+
for (const key12 in data) {
|
|
6793
|
+
if (!(key12 === "type" || key12 === "box")) {
|
|
6794
|
+
const err150 = { instancePath, schemaPath: "#/oneOf/12/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key12 }, message: "must NOT have additional properties" };
|
|
6795
|
+
if (vErrors === null) {
|
|
6796
|
+
vErrors = [err150];
|
|
6797
|
+
} else {
|
|
6798
|
+
vErrors.push(err150);
|
|
6799
|
+
}
|
|
6800
|
+
errors++;
|
|
6801
|
+
}
|
|
6802
|
+
}
|
|
6803
|
+
if (data.type !== void 0) {
|
|
6804
|
+
if ("open" !== data.type) {
|
|
6805
|
+
const err151 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/12/properties/type/const", keyword: "const", params: { allowedValue: "open" }, message: "must be equal to constant" };
|
|
6806
|
+
if (vErrors === null) {
|
|
6807
|
+
vErrors = [err151];
|
|
6808
|
+
} else {
|
|
6809
|
+
vErrors.push(err151);
|
|
6810
|
+
}
|
|
6811
|
+
errors++;
|
|
6812
|
+
}
|
|
6813
|
+
}
|
|
6814
|
+
if (data.box !== void 0) {
|
|
6815
|
+
let data53 = data.box;
|
|
6816
|
+
if (typeof data53 === "string") {
|
|
6817
|
+
if (!pattern0.test(data53)) {
|
|
6818
|
+
const err152 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
6819
|
+
if (vErrors === null) {
|
|
6820
|
+
vErrors = [err152];
|
|
6821
|
+
} else {
|
|
6822
|
+
vErrors.push(err152);
|
|
6823
|
+
}
|
|
6824
|
+
errors++;
|
|
6825
|
+
}
|
|
6826
|
+
} else {
|
|
6827
|
+
const err153 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6828
|
+
if (vErrors === null) {
|
|
6829
|
+
vErrors = [err153];
|
|
6830
|
+
} else {
|
|
6831
|
+
vErrors.push(err153);
|
|
6832
|
+
}
|
|
6833
|
+
errors++;
|
|
6834
|
+
}
|
|
6835
|
+
}
|
|
6836
|
+
} else {
|
|
6837
|
+
const err154 = { instancePath, schemaPath: "#/oneOf/12/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
6838
|
+
if (vErrors === null) {
|
|
6839
|
+
vErrors = [err154];
|
|
6840
|
+
} else {
|
|
6841
|
+
vErrors.push(err154);
|
|
6842
|
+
}
|
|
6843
|
+
errors++;
|
|
6844
|
+
}
|
|
6845
|
+
} else if (tag0 === "pick") {
|
|
6846
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6847
|
+
if (data.type === void 0) {
|
|
6848
|
+
const err155 = { instancePath, schemaPath: "#/oneOf/13/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
6849
|
+
if (vErrors === null) {
|
|
6850
|
+
vErrors = [err155];
|
|
6851
|
+
} else {
|
|
6852
|
+
vErrors.push(err155);
|
|
6853
|
+
}
|
|
6854
|
+
errors++;
|
|
6855
|
+
}
|
|
6856
|
+
if (data.box === void 0) {
|
|
6857
|
+
const err156 = { instancePath, schemaPath: "#/oneOf/13/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
6858
|
+
if (vErrors === null) {
|
|
6859
|
+
vErrors = [err156];
|
|
6860
|
+
} else {
|
|
6861
|
+
vErrors.push(err156);
|
|
6862
|
+
}
|
|
6863
|
+
errors++;
|
|
6864
|
+
}
|
|
6865
|
+
for (const key13 in data) {
|
|
6866
|
+
if (!(key13 === "type" || key13 === "box")) {
|
|
6867
|
+
const err157 = { instancePath, schemaPath: "#/oneOf/13/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key13 }, message: "must NOT have additional properties" };
|
|
6868
|
+
if (vErrors === null) {
|
|
6869
|
+
vErrors = [err157];
|
|
6870
|
+
} else {
|
|
6871
|
+
vErrors.push(err157);
|
|
6872
|
+
}
|
|
6873
|
+
errors++;
|
|
6874
|
+
}
|
|
6875
|
+
}
|
|
6876
|
+
if (data.type !== void 0) {
|
|
6877
|
+
if ("pick" !== data.type) {
|
|
6878
|
+
const err158 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/13/properties/type/const", keyword: "const", params: { allowedValue: "pick" }, message: "must be equal to constant" };
|
|
6879
|
+
if (vErrors === null) {
|
|
6880
|
+
vErrors = [err158];
|
|
6881
|
+
} else {
|
|
6882
|
+
vErrors.push(err158);
|
|
6883
|
+
}
|
|
6884
|
+
errors++;
|
|
6885
|
+
}
|
|
6886
|
+
}
|
|
6887
|
+
if (data.box !== void 0) {
|
|
6888
|
+
let data55 = data.box;
|
|
6889
|
+
if (typeof data55 === "string") {
|
|
6890
|
+
if (!pattern0.test(data55)) {
|
|
6891
|
+
const err159 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
6892
|
+
if (vErrors === null) {
|
|
6893
|
+
vErrors = [err159];
|
|
6894
|
+
} else {
|
|
6895
|
+
vErrors.push(err159);
|
|
6896
|
+
}
|
|
6897
|
+
errors++;
|
|
6898
|
+
}
|
|
6899
|
+
} else {
|
|
6900
|
+
const err160 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6901
|
+
if (vErrors === null) {
|
|
6902
|
+
vErrors = [err160];
|
|
6903
|
+
} else {
|
|
6904
|
+
vErrors.push(err160);
|
|
6905
|
+
}
|
|
6906
|
+
errors++;
|
|
6907
|
+
}
|
|
6908
|
+
}
|
|
6909
|
+
} else {
|
|
6910
|
+
const err161 = { instancePath, schemaPath: "#/oneOf/13/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
6911
|
+
if (vErrors === null) {
|
|
6912
|
+
vErrors = [err161];
|
|
6913
|
+
} else {
|
|
6914
|
+
vErrors.push(err161);
|
|
6915
|
+
}
|
|
6916
|
+
errors++;
|
|
6917
|
+
}
|
|
6918
|
+
} else if (tag0 === "stamp") {
|
|
6919
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6920
|
+
if (data.type === void 0) {
|
|
6921
|
+
const err162 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
6922
|
+
if (vErrors === null) {
|
|
6923
|
+
vErrors = [err162];
|
|
6924
|
+
} else {
|
|
6925
|
+
vErrors.push(err162);
|
|
6926
|
+
}
|
|
6927
|
+
errors++;
|
|
6928
|
+
}
|
|
6929
|
+
if (data.box === void 0) {
|
|
6930
|
+
const err163 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
6931
|
+
if (vErrors === null) {
|
|
6932
|
+
vErrors = [err163];
|
|
6933
|
+
} else {
|
|
6934
|
+
vErrors.push(err163);
|
|
6935
|
+
}
|
|
6936
|
+
errors++;
|
|
6937
|
+
}
|
|
6938
|
+
if (data.text === void 0) {
|
|
6939
|
+
const err164 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "text" }, message: "must have required property 'text'" };
|
|
6940
|
+
if (vErrors === null) {
|
|
6941
|
+
vErrors = [err164];
|
|
6942
|
+
} else {
|
|
6943
|
+
vErrors.push(err164);
|
|
6944
|
+
}
|
|
6945
|
+
errors++;
|
|
6946
|
+
}
|
|
6947
|
+
for (const key14 in data) {
|
|
6948
|
+
if (!(key14 === "type" || key14 === "box" || key14 === "text")) {
|
|
6949
|
+
const err165 = { instancePath, schemaPath: "#/oneOf/14/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key14 }, message: "must NOT have additional properties" };
|
|
6950
|
+
if (vErrors === null) {
|
|
6951
|
+
vErrors = [err165];
|
|
6952
|
+
} else {
|
|
6953
|
+
vErrors.push(err165);
|
|
6954
|
+
}
|
|
6955
|
+
errors++;
|
|
6956
|
+
}
|
|
6957
|
+
}
|
|
6958
|
+
if (data.type !== void 0) {
|
|
6959
|
+
if ("stamp" !== data.type) {
|
|
6960
|
+
const err166 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/14/properties/type/const", keyword: "const", params: { allowedValue: "stamp" }, message: "must be equal to constant" };
|
|
6961
|
+
if (vErrors === null) {
|
|
6962
|
+
vErrors = [err166];
|
|
6963
|
+
} else {
|
|
6964
|
+
vErrors.push(err166);
|
|
6965
|
+
}
|
|
6966
|
+
errors++;
|
|
6967
|
+
}
|
|
6968
|
+
}
|
|
6969
|
+
if (data.box !== void 0) {
|
|
6970
|
+
let data57 = data.box;
|
|
6971
|
+
if (typeof data57 === "string") {
|
|
6972
|
+
if (!pattern0.test(data57)) {
|
|
6973
|
+
const err167 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
6974
|
+
if (vErrors === null) {
|
|
6975
|
+
vErrors = [err167];
|
|
6976
|
+
} else {
|
|
6977
|
+
vErrors.push(err167);
|
|
6978
|
+
}
|
|
6979
|
+
errors++;
|
|
6980
|
+
}
|
|
6981
|
+
} else {
|
|
6982
|
+
const err168 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6983
|
+
if (vErrors === null) {
|
|
6984
|
+
vErrors = [err168];
|
|
6985
|
+
} else {
|
|
6986
|
+
vErrors.push(err168);
|
|
6987
|
+
}
|
|
6988
|
+
errors++;
|
|
6989
|
+
}
|
|
6990
|
+
}
|
|
6991
|
+
if (data.text !== void 0) {
|
|
6992
|
+
let data58 = data.text;
|
|
6993
|
+
if (typeof data58 === "string") {
|
|
6994
|
+
if (func3(data58) < 1) {
|
|
6995
|
+
const err169 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
6996
|
+
if (vErrors === null) {
|
|
6997
|
+
vErrors = [err169];
|
|
6998
|
+
} else {
|
|
6999
|
+
vErrors.push(err169);
|
|
7000
|
+
}
|
|
7001
|
+
errors++;
|
|
7002
|
+
}
|
|
7003
|
+
} else {
|
|
7004
|
+
const err170 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
7005
|
+
if (vErrors === null) {
|
|
7006
|
+
vErrors = [err170];
|
|
7007
|
+
} else {
|
|
7008
|
+
vErrors.push(err170);
|
|
7009
|
+
}
|
|
7010
|
+
errors++;
|
|
7011
|
+
}
|
|
7012
|
+
}
|
|
7013
|
+
} else {
|
|
7014
|
+
const err171 = { instancePath, schemaPath: "#/oneOf/14/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
7015
|
+
if (vErrors === null) {
|
|
7016
|
+
vErrors = [err171];
|
|
7017
|
+
} else {
|
|
7018
|
+
vErrors.push(err171);
|
|
7019
|
+
}
|
|
7020
|
+
errors++;
|
|
7021
|
+
}
|
|
7022
|
+
} else if (tag0 === "strip") {
|
|
7023
|
+
const _errs185 = errors;
|
|
7024
|
+
let valid75 = false;
|
|
7025
|
+
const _errs186 = errors;
|
|
7026
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7027
|
+
if (data.value === void 0) {
|
|
7028
|
+
const err172 = { instancePath, schemaPath: "#/oneOf/15/anyOf/0/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
|
|
7029
|
+
if (vErrors === null) {
|
|
7030
|
+
vErrors = [err172];
|
|
7031
|
+
} else {
|
|
7032
|
+
vErrors.push(err172);
|
|
7033
|
+
}
|
|
7034
|
+
errors++;
|
|
7035
|
+
}
|
|
7036
|
+
}
|
|
7037
|
+
var _valid0 = _errs186 === errors;
|
|
7038
|
+
valid75 = valid75 || _valid0;
|
|
7039
|
+
if (!valid75) {
|
|
7040
|
+
const _errs187 = errors;
|
|
7041
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7042
|
+
if (data.tag === void 0) {
|
|
7043
|
+
const err173 = { instancePath, schemaPath: "#/oneOf/15/anyOf/1/required", keyword: "required", params: { missingProperty: "tag" }, message: "must have required property 'tag'" };
|
|
7044
|
+
if (vErrors === null) {
|
|
7045
|
+
vErrors = [err173];
|
|
7046
|
+
} else {
|
|
7047
|
+
vErrors.push(err173);
|
|
7048
|
+
}
|
|
7049
|
+
errors++;
|
|
7050
|
+
}
|
|
7051
|
+
}
|
|
7052
|
+
var _valid0 = _errs187 === errors;
|
|
7053
|
+
valid75 = valid75 || _valid0;
|
|
7054
|
+
}
|
|
7055
|
+
if (!valid75) {
|
|
7056
|
+
const err174 = { instancePath, schemaPath: "#/oneOf/15/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
7057
|
+
if (vErrors === null) {
|
|
7058
|
+
vErrors = [err174];
|
|
7059
|
+
} else {
|
|
7060
|
+
vErrors.push(err174);
|
|
7061
|
+
}
|
|
7062
|
+
errors++;
|
|
7063
|
+
} else {
|
|
7064
|
+
errors = _errs185;
|
|
7065
|
+
if (vErrors !== null) {
|
|
7066
|
+
if (_errs185) {
|
|
7067
|
+
vErrors.length = _errs185;
|
|
7068
|
+
} else {
|
|
7069
|
+
vErrors = null;
|
|
7070
|
+
}
|
|
7071
|
+
}
|
|
7072
|
+
}
|
|
7073
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7074
|
+
if (data.type === void 0) {
|
|
7075
|
+
const err175 = { instancePath, schemaPath: "#/oneOf/15/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
7076
|
+
if (vErrors === null) {
|
|
7077
|
+
vErrors = [err175];
|
|
7078
|
+
} else {
|
|
7079
|
+
vErrors.push(err175);
|
|
7080
|
+
}
|
|
7081
|
+
errors++;
|
|
7082
|
+
}
|
|
7083
|
+
if (data.field === void 0) {
|
|
7084
|
+
const err176 = { instancePath, schemaPath: "#/oneOf/15/required", keyword: "required", params: { missingProperty: "field" }, message: "must have required property 'field'" };
|
|
7085
|
+
if (vErrors === null) {
|
|
7086
|
+
vErrors = [err176];
|
|
7087
|
+
} else {
|
|
7088
|
+
vErrors.push(err176);
|
|
7089
|
+
}
|
|
7090
|
+
errors++;
|
|
7091
|
+
}
|
|
7092
|
+
for (const key15 in data) {
|
|
7093
|
+
if (!(key15 === "type" || key15 === "field" || key15 === "value" || key15 === "tag")) {
|
|
7094
|
+
const err177 = { instancePath, schemaPath: "#/oneOf/15/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key15 }, message: "must NOT have additional properties" };
|
|
7095
|
+
if (vErrors === null) {
|
|
7096
|
+
vErrors = [err177];
|
|
7097
|
+
} else {
|
|
7098
|
+
vErrors.push(err177);
|
|
7099
|
+
}
|
|
7100
|
+
errors++;
|
|
7101
|
+
}
|
|
7102
|
+
}
|
|
7103
|
+
if (data.type !== void 0) {
|
|
7104
|
+
if ("strip" !== data.type) {
|
|
7105
|
+
const err178 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/15/properties/type/const", keyword: "const", params: { allowedValue: "strip" }, message: "must be equal to constant" };
|
|
7106
|
+
if (vErrors === null) {
|
|
7107
|
+
vErrors = [err178];
|
|
7108
|
+
} else {
|
|
7109
|
+
vErrors.push(err178);
|
|
7110
|
+
}
|
|
7111
|
+
errors++;
|
|
7112
|
+
}
|
|
7113
|
+
}
|
|
7114
|
+
if (data.field !== void 0) {
|
|
7115
|
+
let data60 = data.field;
|
|
7116
|
+
if (typeof data60 === "string") {
|
|
7117
|
+
if (func3(data60) < 1) {
|
|
7118
|
+
const err179 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
7119
|
+
if (vErrors === null) {
|
|
7120
|
+
vErrors = [err179];
|
|
7121
|
+
} else {
|
|
7122
|
+
vErrors.push(err179);
|
|
7123
|
+
}
|
|
7124
|
+
errors++;
|
|
7125
|
+
}
|
|
7126
|
+
} else {
|
|
7127
|
+
const err180 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
7128
|
+
if (vErrors === null) {
|
|
7129
|
+
vErrors = [err180];
|
|
7130
|
+
} else {
|
|
7131
|
+
vErrors.push(err180);
|
|
7132
|
+
}
|
|
7133
|
+
errors++;
|
|
7134
|
+
}
|
|
7135
|
+
}
|
|
7136
|
+
if (data.value !== void 0) {
|
|
7137
|
+
let data61 = data.value;
|
|
7138
|
+
if (typeof data61 === "string") {
|
|
7139
|
+
if (func3(data61) < 1) {
|
|
7140
|
+
const err181 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
7141
|
+
if (vErrors === null) {
|
|
7142
|
+
vErrors = [err181];
|
|
7143
|
+
} else {
|
|
7144
|
+
vErrors.push(err181);
|
|
7145
|
+
}
|
|
7146
|
+
errors++;
|
|
7147
|
+
}
|
|
7148
|
+
} else {
|
|
7149
|
+
const err182 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
7150
|
+
if (vErrors === null) {
|
|
7151
|
+
vErrors = [err182];
|
|
7152
|
+
} else {
|
|
7153
|
+
vErrors.push(err182);
|
|
7154
|
+
}
|
|
7155
|
+
errors++;
|
|
7156
|
+
}
|
|
7157
|
+
}
|
|
7158
|
+
if (data.tag !== void 0) {
|
|
7159
|
+
let data62 = data.tag;
|
|
7160
|
+
if (typeof data62 === "string") {
|
|
7161
|
+
if (func3(data62) < 1) {
|
|
7162
|
+
const err183 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
7163
|
+
if (vErrors === null) {
|
|
7164
|
+
vErrors = [err183];
|
|
7165
|
+
} else {
|
|
7166
|
+
vErrors.push(err183);
|
|
7167
|
+
}
|
|
7168
|
+
errors++;
|
|
7169
|
+
}
|
|
7170
|
+
} else {
|
|
7171
|
+
const err184 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
7172
|
+
if (vErrors === null) {
|
|
7173
|
+
vErrors = [err184];
|
|
7174
|
+
} else {
|
|
7175
|
+
vErrors.push(err184);
|
|
7176
|
+
}
|
|
7177
|
+
errors++;
|
|
7178
|
+
}
|
|
7179
|
+
}
|
|
7180
|
+
} else {
|
|
7181
|
+
const err185 = { instancePath, schemaPath: "#/oneOf/15/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
7182
|
+
if (vErrors === null) {
|
|
7183
|
+
vErrors = [err185];
|
|
7184
|
+
} else {
|
|
7185
|
+
vErrors.push(err185);
|
|
7186
|
+
}
|
|
7187
|
+
errors++;
|
|
7188
|
+
}
|
|
7189
|
+
} else {
|
|
7190
|
+
const err186 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag0 }, message: 'value of tag "type" must be in oneOf' };
|
|
7191
|
+
if (vErrors === null) {
|
|
7192
|
+
vErrors = [err186];
|
|
7193
|
+
} else {
|
|
7194
|
+
vErrors.push(err186);
|
|
7195
|
+
}
|
|
7196
|
+
errors++;
|
|
7197
|
+
}
|
|
7198
|
+
} else {
|
|
7199
|
+
const err187 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag0 }, message: 'tag "type" must be string' };
|
|
7200
|
+
if (vErrors === null) {
|
|
7201
|
+
vErrors = [err187];
|
|
7202
|
+
} else {
|
|
7203
|
+
vErrors.push(err187);
|
|
7204
|
+
}
|
|
6194
7205
|
errors++;
|
|
6195
7206
|
}
|
|
6196
7207
|
} else {
|
|
6197
|
-
const
|
|
7208
|
+
const err188 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
6198
7209
|
if (vErrors === null) {
|
|
6199
|
-
vErrors = [
|
|
7210
|
+
vErrors = [err188];
|
|
6200
7211
|
} else {
|
|
6201
|
-
vErrors.push(
|
|
7212
|
+
vErrors.push(err188);
|
|
6202
7213
|
}
|
|
6203
7214
|
errors++;
|
|
6204
7215
|
}
|
|
6205
|
-
|
|
7216
|
+
validate41.errors = vErrors;
|
|
6206
7217
|
return errors === 0;
|
|
6207
7218
|
}
|
|
6208
|
-
function
|
|
7219
|
+
function validate38(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6209
7220
|
let vErrors = null;
|
|
6210
7221
|
let errors = 0;
|
|
6211
7222
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6327,8 +7338,8 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6327
7338
|
}
|
|
6328
7339
|
const len0 = data3.length;
|
|
6329
7340
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
6330
|
-
if (!
|
|
6331
|
-
vErrors = vErrors === null ?
|
|
7341
|
+
if (!validate39(data3[i0], { instancePath: instancePath + "/sources/" + i0, parentData: data3, parentDataProperty: i0, rootData })) {
|
|
7342
|
+
vErrors = vErrors === null ? validate39.errors : vErrors.concat(validate39.errors);
|
|
6332
7343
|
errors = vErrors.length;
|
|
6333
7344
|
}
|
|
6334
7345
|
}
|
|
@@ -6347,8 +7358,8 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6347
7358
|
if (Array.isArray(data5)) {
|
|
6348
7359
|
const len1 = data5.length;
|
|
6349
7360
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
6350
|
-
if (!
|
|
6351
|
-
vErrors = vErrors === null ?
|
|
7361
|
+
if (!validate41(data5[i1], { instancePath: instancePath + "/events/" + i1, parentData: data5, parentDataProperty: i1, rootData })) {
|
|
7362
|
+
vErrors = vErrors === null ? validate41.errors : vErrors.concat(validate41.errors);
|
|
6352
7363
|
errors = vErrors.length;
|
|
6353
7364
|
}
|
|
6354
7365
|
}
|
|
@@ -6371,10 +7382,10 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6371
7382
|
}
|
|
6372
7383
|
errors++;
|
|
6373
7384
|
}
|
|
6374
|
-
|
|
7385
|
+
validate38.errors = vErrors;
|
|
6375
7386
|
return errors === 0;
|
|
6376
7387
|
}
|
|
6377
|
-
function
|
|
7388
|
+
function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6378
7389
|
let vErrors = null;
|
|
6379
7390
|
let errors = 0;
|
|
6380
7391
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6452,10 +7463,10 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6452
7463
|
}
|
|
6453
7464
|
errors++;
|
|
6454
7465
|
}
|
|
6455
|
-
|
|
7466
|
+
validate46.errors = vErrors;
|
|
6456
7467
|
return errors === 0;
|
|
6457
7468
|
}
|
|
6458
|
-
function
|
|
7469
|
+
function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6459
7470
|
let vErrors = null;
|
|
6460
7471
|
let errors = 0;
|
|
6461
7472
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6563,10 +7574,10 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6563
7574
|
}
|
|
6564
7575
|
errors++;
|
|
6565
7576
|
}
|
|
6566
|
-
|
|
7577
|
+
validate49.errors = vErrors;
|
|
6567
7578
|
return errors === 0;
|
|
6568
7579
|
}
|
|
6569
|
-
function
|
|
7580
|
+
function validate48(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6570
7581
|
let vErrors = null;
|
|
6571
7582
|
let errors = 0;
|
|
6572
7583
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6604,8 +7615,8 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6604
7615
|
}
|
|
6605
7616
|
const len0 = data0.length;
|
|
6606
7617
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
6607
|
-
if (!
|
|
6608
|
-
vErrors = vErrors === null ?
|
|
7618
|
+
if (!validate49(data0[i0], { instancePath: instancePath + "/paths/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
|
|
7619
|
+
vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);
|
|
6609
7620
|
errors = vErrors.length;
|
|
6610
7621
|
}
|
|
6611
7622
|
}
|
|
@@ -6628,10 +7639,10 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6628
7639
|
}
|
|
6629
7640
|
errors++;
|
|
6630
7641
|
}
|
|
6631
|
-
|
|
7642
|
+
validate48.errors = vErrors;
|
|
6632
7643
|
return errors === 0;
|
|
6633
7644
|
}
|
|
6634
|
-
function
|
|
7645
|
+
function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6635
7646
|
let vErrors = null;
|
|
6636
7647
|
let errors = 0;
|
|
6637
7648
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6708,10 +7719,10 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6708
7719
|
}
|
|
6709
7720
|
errors++;
|
|
6710
7721
|
}
|
|
6711
|
-
|
|
7722
|
+
validate53.errors = vErrors;
|
|
6712
7723
|
return errors === 0;
|
|
6713
7724
|
}
|
|
6714
|
-
function
|
|
7725
|
+
function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6715
7726
|
let vErrors = null;
|
|
6716
7727
|
let errors = 0;
|
|
6717
7728
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6749,8 +7760,8 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6749
7760
|
}
|
|
6750
7761
|
const len0 = data0.length;
|
|
6751
7762
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
6752
|
-
if (!
|
|
6753
|
-
vErrors = vErrors === null ?
|
|
7763
|
+
if (!validate53(data0[i0], { instancePath: instancePath + "/branches/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
|
|
7764
|
+
vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);
|
|
6754
7765
|
errors = vErrors.length;
|
|
6755
7766
|
}
|
|
6756
7767
|
}
|
|
@@ -6773,11 +7784,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6773
7784
|
}
|
|
6774
7785
|
errors++;
|
|
6775
7786
|
}
|
|
6776
|
-
|
|
7787
|
+
validate52.errors = vErrors;
|
|
6777
7788
|
return errors === 0;
|
|
6778
7789
|
}
|
|
6779
|
-
var
|
|
6780
|
-
function
|
|
7790
|
+
var pattern33 = new RegExp("^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$", "u");
|
|
7791
|
+
function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6781
7792
|
let vErrors = null;
|
|
6782
7793
|
let errors = 0;
|
|
6783
7794
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6844,7 +7855,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6844
7855
|
if (data.length !== void 0) {
|
|
6845
7856
|
let data1 = data.length;
|
|
6846
7857
|
if (typeof data1 === "string") {
|
|
6847
|
-
if (!
|
|
7858
|
+
if (!pattern33.test(data1)) {
|
|
6848
7859
|
const err6 = { instancePath: instancePath + "/length", schemaPath: "#/definitions/duration/pattern", keyword: "pattern", params: { pattern: "^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$" }, message: 'must match pattern "^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$"' };
|
|
6849
7860
|
if (vErrors === null) {
|
|
6850
7861
|
vErrors = [err6];
|
|
@@ -6918,10 +7929,10 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6918
7929
|
}
|
|
6919
7930
|
errors++;
|
|
6920
7931
|
}
|
|
6921
|
-
|
|
7932
|
+
validate57.errors = vErrors;
|
|
6922
7933
|
return errors === 0;
|
|
6923
7934
|
}
|
|
6924
|
-
function
|
|
7935
|
+
function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6925
7936
|
let vErrors = null;
|
|
6926
7937
|
let errors = 0;
|
|
6927
7938
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -7031,10 +8042,10 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7031
8042
|
}
|
|
7032
8043
|
errors++;
|
|
7033
8044
|
}
|
|
7034
|
-
|
|
8045
|
+
validate59.errors = vErrors;
|
|
7035
8046
|
return errors === 0;
|
|
7036
8047
|
}
|
|
7037
|
-
function
|
|
8048
|
+
function validate61(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
7038
8049
|
let vErrors = null;
|
|
7039
8050
|
let errors = 0;
|
|
7040
8051
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -7114,7 +8125,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7114
8125
|
if (data.color !== void 0) {
|
|
7115
8126
|
let data2 = data.color;
|
|
7116
8127
|
if (!(data2 === "blue" || data2 === "amber" || data2 === "green" || data2 === "violet" || data2 === "rose" || data2 === "slate" || data2 === "coin")) {
|
|
7117
|
-
const err7 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
8128
|
+
const err7 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
|
|
7118
8129
|
if (vErrors === null) {
|
|
7119
8130
|
vErrors = [err7];
|
|
7120
8131
|
} else {
|
|
@@ -7169,10 +8180,10 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7169
8180
|
}
|
|
7170
8181
|
errors++;
|
|
7171
8182
|
}
|
|
7172
|
-
|
|
8183
|
+
validate61.errors = vErrors;
|
|
7173
8184
|
return errors === 0;
|
|
7174
8185
|
}
|
|
7175
|
-
function
|
|
8186
|
+
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
7176
8187
|
let vErrors = null;
|
|
7177
8188
|
let errors = 0;
|
|
7178
8189
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -7259,10 +8270,10 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7259
8270
|
}
|
|
7260
8271
|
errors++;
|
|
7261
8272
|
}
|
|
7262
|
-
|
|
8273
|
+
validate63.errors = vErrors;
|
|
7263
8274
|
return errors === 0;
|
|
7264
8275
|
}
|
|
7265
|
-
function
|
|
8276
|
+
function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
7266
8277
|
let vErrors = null;
|
|
7267
8278
|
let errors = 0;
|
|
7268
8279
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -7350,10 +8361,10 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7350
8361
|
}
|
|
7351
8362
|
errors++;
|
|
7352
8363
|
}
|
|
7353
|
-
|
|
8364
|
+
validate65.errors = vErrors;
|
|
7354
8365
|
return errors === 0;
|
|
7355
8366
|
}
|
|
7356
|
-
function
|
|
8367
|
+
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
7357
8368
|
let vErrors = null;
|
|
7358
8369
|
let errors = 0;
|
|
7359
8370
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -7387,14 +8398,14 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7387
8398
|
}
|
|
7388
8399
|
}
|
|
7389
8400
|
if (data.scale !== void 0) {
|
|
7390
|
-
if (!
|
|
7391
|
-
vErrors = vErrors === null ?
|
|
8401
|
+
if (!validate57(data.scale, { instancePath: instancePath + "/scale", parentData: data, parentDataProperty: "scale", rootData })) {
|
|
8402
|
+
vErrors = vErrors === null ? validate57.errors : vErrors.concat(validate57.errors);
|
|
7392
8403
|
errors = vErrors.length;
|
|
7393
8404
|
}
|
|
7394
8405
|
}
|
|
7395
8406
|
if (data.period !== void 0) {
|
|
7396
|
-
if (!
|
|
7397
|
-
vErrors = vErrors === null ?
|
|
8407
|
+
if (!validate59(data.period, { instancePath: instancePath + "/period", parentData: data, parentDataProperty: "period", rootData })) {
|
|
8408
|
+
vErrors = vErrors === null ? validate59.errors : vErrors.concat(validate59.errors);
|
|
7398
8409
|
errors = vErrors.length;
|
|
7399
8410
|
}
|
|
7400
8411
|
}
|
|
@@ -7412,8 +8423,8 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7412
8423
|
}
|
|
7413
8424
|
const len0 = data2.length;
|
|
7414
8425
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
7415
|
-
if (!
|
|
7416
|
-
vErrors = vErrors === null ?
|
|
8426
|
+
if (!validate61(data2[i0], { instancePath: instancePath + "/rows/" + i0, parentData: data2, parentDataProperty: i0, rootData })) {
|
|
8427
|
+
vErrors = vErrors === null ? validate61.errors : vErrors.concat(validate61.errors);
|
|
7417
8428
|
errors = vErrors.length;
|
|
7418
8429
|
}
|
|
7419
8430
|
}
|
|
@@ -7432,8 +8443,8 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7432
8443
|
if (Array.isArray(data4)) {
|
|
7433
8444
|
const len1 = data4.length;
|
|
7434
8445
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
7435
|
-
if (!
|
|
7436
|
-
vErrors = vErrors === null ?
|
|
8446
|
+
if (!validate63(data4[i1], { instancePath: instancePath + "/points/" + i1, parentData: data4, parentDataProperty: i1, rootData })) {
|
|
8447
|
+
vErrors = vErrors === null ? validate63.errors : vErrors.concat(validate63.errors);
|
|
7437
8448
|
errors = vErrors.length;
|
|
7438
8449
|
}
|
|
7439
8450
|
}
|
|
@@ -7448,8 +8459,8 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7448
8459
|
}
|
|
7449
8460
|
}
|
|
7450
8461
|
if (data.zoom !== void 0) {
|
|
7451
|
-
if (!
|
|
7452
|
-
vErrors = vErrors === null ?
|
|
8462
|
+
if (!validate65(data.zoom, { instancePath: instancePath + "/zoom", parentData: data, parentDataProperty: "zoom", rootData })) {
|
|
8463
|
+
vErrors = vErrors === null ? validate65.errors : vErrors.concat(validate65.errors);
|
|
7453
8464
|
errors = vErrors.length;
|
|
7454
8465
|
}
|
|
7455
8466
|
}
|
|
@@ -7462,7 +8473,173 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7462
8473
|
}
|
|
7463
8474
|
errors++;
|
|
7464
8475
|
}
|
|
7465
|
-
|
|
8476
|
+
validate56.errors = vErrors;
|
|
8477
|
+
return errors === 0;
|
|
8478
|
+
}
|
|
8479
|
+
function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
8480
|
+
let vErrors = null;
|
|
8481
|
+
let errors = 0;
|
|
8482
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
8483
|
+
if (data.id === void 0) {
|
|
8484
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
|
|
8485
|
+
if (vErrors === null) {
|
|
8486
|
+
vErrors = [err0];
|
|
8487
|
+
} else {
|
|
8488
|
+
vErrors.push(err0);
|
|
8489
|
+
}
|
|
8490
|
+
errors++;
|
|
8491
|
+
}
|
|
8492
|
+
for (const key0 in data) {
|
|
8493
|
+
if (!(key0 === "id" || key0 === "color" || key0 === "label")) {
|
|
8494
|
+
const err1 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
8495
|
+
if (vErrors === null) {
|
|
8496
|
+
vErrors = [err1];
|
|
8497
|
+
} else {
|
|
8498
|
+
vErrors.push(err1);
|
|
8499
|
+
}
|
|
8500
|
+
errors++;
|
|
8501
|
+
}
|
|
8502
|
+
}
|
|
8503
|
+
if (data.id !== void 0) {
|
|
8504
|
+
let data0 = data.id;
|
|
8505
|
+
if (typeof data0 === "string") {
|
|
8506
|
+
if (!pattern0.test(data0)) {
|
|
8507
|
+
const err2 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
8508
|
+
if (vErrors === null) {
|
|
8509
|
+
vErrors = [err2];
|
|
8510
|
+
} else {
|
|
8511
|
+
vErrors.push(err2);
|
|
8512
|
+
}
|
|
8513
|
+
errors++;
|
|
8514
|
+
}
|
|
8515
|
+
} else {
|
|
8516
|
+
const err3 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8517
|
+
if (vErrors === null) {
|
|
8518
|
+
vErrors = [err3];
|
|
8519
|
+
} else {
|
|
8520
|
+
vErrors.push(err3);
|
|
8521
|
+
}
|
|
8522
|
+
errors++;
|
|
8523
|
+
}
|
|
8524
|
+
}
|
|
8525
|
+
if (data.color !== void 0) {
|
|
8526
|
+
let data1 = data.color;
|
|
8527
|
+
if (!(data1 === "blue" || data1 === "amber" || data1 === "green" || data1 === "violet" || data1 === "rose" || data1 === "slate" || data1 === "coin")) {
|
|
8528
|
+
const err4 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
|
|
8529
|
+
if (vErrors === null) {
|
|
8530
|
+
vErrors = [err4];
|
|
8531
|
+
} else {
|
|
8532
|
+
vErrors.push(err4);
|
|
8533
|
+
}
|
|
8534
|
+
errors++;
|
|
8535
|
+
}
|
|
8536
|
+
}
|
|
8537
|
+
if (data.label !== void 0) {
|
|
8538
|
+
let data2 = data.label;
|
|
8539
|
+
if (typeof data2 === "string") {
|
|
8540
|
+
if (func3(data2) > 4) {
|
|
8541
|
+
const err5 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/maxLength", keyword: "maxLength", params: { limit: 4 }, message: "must NOT have more than 4 characters" };
|
|
8542
|
+
if (vErrors === null) {
|
|
8543
|
+
vErrors = [err5];
|
|
8544
|
+
} else {
|
|
8545
|
+
vErrors.push(err5);
|
|
8546
|
+
}
|
|
8547
|
+
errors++;
|
|
8548
|
+
}
|
|
8549
|
+
if (func3(data2) < 1) {
|
|
8550
|
+
const err6 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
8551
|
+
if (vErrors === null) {
|
|
8552
|
+
vErrors = [err6];
|
|
8553
|
+
} else {
|
|
8554
|
+
vErrors.push(err6);
|
|
8555
|
+
}
|
|
8556
|
+
errors++;
|
|
8557
|
+
}
|
|
8558
|
+
} else {
|
|
8559
|
+
const err7 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8560
|
+
if (vErrors === null) {
|
|
8561
|
+
vErrors = [err7];
|
|
8562
|
+
} else {
|
|
8563
|
+
vErrors.push(err7);
|
|
8564
|
+
}
|
|
8565
|
+
errors++;
|
|
8566
|
+
}
|
|
8567
|
+
}
|
|
8568
|
+
} else {
|
|
8569
|
+
const err8 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
8570
|
+
if (vErrors === null) {
|
|
8571
|
+
vErrors = [err8];
|
|
8572
|
+
} else {
|
|
8573
|
+
vErrors.push(err8);
|
|
8574
|
+
}
|
|
8575
|
+
errors++;
|
|
8576
|
+
}
|
|
8577
|
+
validate69.errors = vErrors;
|
|
8578
|
+
return errors === 0;
|
|
8579
|
+
}
|
|
8580
|
+
function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
8581
|
+
let vErrors = null;
|
|
8582
|
+
let errors = 0;
|
|
8583
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
8584
|
+
if (data.items === void 0) {
|
|
8585
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "items" }, message: "must have required property 'items'" };
|
|
8586
|
+
if (vErrors === null) {
|
|
8587
|
+
vErrors = [err0];
|
|
8588
|
+
} else {
|
|
8589
|
+
vErrors.push(err0);
|
|
8590
|
+
}
|
|
8591
|
+
errors++;
|
|
8592
|
+
}
|
|
8593
|
+
for (const key0 in data) {
|
|
8594
|
+
if (!(key0 === "items")) {
|
|
8595
|
+
const err1 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
8596
|
+
if (vErrors === null) {
|
|
8597
|
+
vErrors = [err1];
|
|
8598
|
+
} else {
|
|
8599
|
+
vErrors.push(err1);
|
|
8600
|
+
}
|
|
8601
|
+
errors++;
|
|
8602
|
+
}
|
|
8603
|
+
}
|
|
8604
|
+
if (data.items !== void 0) {
|
|
8605
|
+
let data0 = data.items;
|
|
8606
|
+
if (Array.isArray(data0)) {
|
|
8607
|
+
if (data0.length < 1) {
|
|
8608
|
+
const err2 = { instancePath: instancePath + "/items", schemaPath: "#/properties/items/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
8609
|
+
if (vErrors === null) {
|
|
8610
|
+
vErrors = [err2];
|
|
8611
|
+
} else {
|
|
8612
|
+
vErrors.push(err2);
|
|
8613
|
+
}
|
|
8614
|
+
errors++;
|
|
8615
|
+
}
|
|
8616
|
+
const len0 = data0.length;
|
|
8617
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
8618
|
+
if (!validate69(data0[i0], { instancePath: instancePath + "/items/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
|
|
8619
|
+
vErrors = vErrors === null ? validate69.errors : vErrors.concat(validate69.errors);
|
|
8620
|
+
errors = vErrors.length;
|
|
8621
|
+
}
|
|
8622
|
+
}
|
|
8623
|
+
} else {
|
|
8624
|
+
const err3 = { instancePath: instancePath + "/items", schemaPath: "#/properties/items/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
8625
|
+
if (vErrors === null) {
|
|
8626
|
+
vErrors = [err3];
|
|
8627
|
+
} else {
|
|
8628
|
+
vErrors.push(err3);
|
|
8629
|
+
}
|
|
8630
|
+
errors++;
|
|
8631
|
+
}
|
|
8632
|
+
}
|
|
8633
|
+
} else {
|
|
8634
|
+
const err4 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
8635
|
+
if (vErrors === null) {
|
|
8636
|
+
vErrors = [err4];
|
|
8637
|
+
} else {
|
|
8638
|
+
vErrors.push(err4);
|
|
8639
|
+
}
|
|
8640
|
+
errors++;
|
|
8641
|
+
}
|
|
8642
|
+
validate68.errors = vErrors;
|
|
7466
8643
|
return errors === 0;
|
|
7467
8644
|
}
|
|
7468
8645
|
var func2 = Object.prototype.hasOwnProperty;
|
|
@@ -7570,94 +8747,103 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7570
8747
|
}
|
|
7571
8748
|
errors++;
|
|
7572
8749
|
}
|
|
8750
|
+
if (data.lineup !== void 0) {
|
|
8751
|
+
const err7 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
8752
|
+
if (vErrors === null) {
|
|
8753
|
+
vErrors = [err7];
|
|
8754
|
+
} else {
|
|
8755
|
+
vErrors.push(err7);
|
|
8756
|
+
}
|
|
8757
|
+
errors++;
|
|
8758
|
+
}
|
|
7573
8759
|
}
|
|
7574
8760
|
var _valid0 = _errs4 === errors;
|
|
7575
8761
|
valid0 = _valid0;
|
|
7576
8762
|
ifClause0 = "then";
|
|
7577
8763
|
} else {
|
|
7578
|
-
const
|
|
7579
|
-
const
|
|
7580
|
-
let
|
|
7581
|
-
const
|
|
8764
|
+
const _errs20 = errors;
|
|
8765
|
+
const _errs21 = errors;
|
|
8766
|
+
let valid7 = true;
|
|
8767
|
+
const _errs22 = errors;
|
|
7582
8768
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7583
8769
|
if (data.kind === void 0 && ("kind")) {
|
|
7584
|
-
const
|
|
8770
|
+
const err8 = {};
|
|
7585
8771
|
if (vErrors === null) {
|
|
7586
|
-
vErrors = [
|
|
8772
|
+
vErrors = [err8];
|
|
7587
8773
|
} else {
|
|
7588
|
-
vErrors.push(
|
|
8774
|
+
vErrors.push(err8);
|
|
7589
8775
|
}
|
|
7590
8776
|
errors++;
|
|
7591
8777
|
} else {
|
|
7592
8778
|
if (data.kind !== void 0) {
|
|
7593
8779
|
if ("state" !== data.kind) {
|
|
7594
|
-
const
|
|
8780
|
+
const err9 = {};
|
|
7595
8781
|
if (vErrors === null) {
|
|
7596
|
-
vErrors = [
|
|
8782
|
+
vErrors = [err9];
|
|
7597
8783
|
} else {
|
|
7598
|
-
vErrors.push(
|
|
8784
|
+
vErrors.push(err9);
|
|
7599
8785
|
}
|
|
7600
8786
|
errors++;
|
|
7601
8787
|
}
|
|
7602
8788
|
}
|
|
7603
8789
|
}
|
|
7604
8790
|
}
|
|
7605
|
-
var _valid1 =
|
|
7606
|
-
errors =
|
|
8791
|
+
var _valid1 = _errs22 === errors;
|
|
8792
|
+
errors = _errs21;
|
|
7607
8793
|
if (vErrors !== null) {
|
|
7608
|
-
if (
|
|
7609
|
-
vErrors.length =
|
|
8794
|
+
if (_errs21) {
|
|
8795
|
+
vErrors.length = _errs21;
|
|
7610
8796
|
} else {
|
|
7611
8797
|
vErrors = null;
|
|
7612
8798
|
}
|
|
7613
8799
|
}
|
|
7614
8800
|
let ifClause1;
|
|
7615
8801
|
if (_valid1) {
|
|
7616
|
-
const
|
|
8802
|
+
const _errs24 = errors;
|
|
7617
8803
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7618
8804
|
if (data.boxes !== void 0) {
|
|
7619
|
-
let
|
|
7620
|
-
if (Array.isArray(
|
|
7621
|
-
if (
|
|
7622
|
-
const
|
|
8805
|
+
let data9 = data.boxes;
|
|
8806
|
+
if (Array.isArray(data9)) {
|
|
8807
|
+
if (data9.length < 1) {
|
|
8808
|
+
const err10 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/then/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
7623
8809
|
if (vErrors === null) {
|
|
7624
|
-
vErrors = [
|
|
8810
|
+
vErrors = [err10];
|
|
7625
8811
|
} else {
|
|
7626
|
-
vErrors.push(
|
|
8812
|
+
vErrors.push(err10);
|
|
7627
8813
|
}
|
|
7628
8814
|
errors++;
|
|
7629
8815
|
}
|
|
7630
|
-
const len0 =
|
|
8816
|
+
const len0 = data9.length;
|
|
7631
8817
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
7632
|
-
let
|
|
7633
|
-
if (
|
|
7634
|
-
if (
|
|
7635
|
-
let
|
|
7636
|
-
const
|
|
7637
|
-
const
|
|
7638
|
-
if (!(
|
|
7639
|
-
const
|
|
8818
|
+
let data10 = data9[i0];
|
|
8819
|
+
if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
|
|
8820
|
+
if (data10.id !== void 0) {
|
|
8821
|
+
let data11 = data10.id;
|
|
8822
|
+
const _errs28 = errors;
|
|
8823
|
+
const _errs29 = errors;
|
|
8824
|
+
if (!(data11 === "start" || data11 === "finish")) {
|
|
8825
|
+
const err11 = {};
|
|
7640
8826
|
if (vErrors === null) {
|
|
7641
|
-
vErrors = [
|
|
8827
|
+
vErrors = [err11];
|
|
7642
8828
|
} else {
|
|
7643
|
-
vErrors.push(
|
|
8829
|
+
vErrors.push(err11);
|
|
7644
8830
|
}
|
|
7645
8831
|
errors++;
|
|
7646
8832
|
}
|
|
7647
|
-
var
|
|
7648
|
-
if (
|
|
7649
|
-
const
|
|
8833
|
+
var valid13 = _errs29 === errors;
|
|
8834
|
+
if (valid13) {
|
|
8835
|
+
const err12 = { instancePath: instancePath + "/boxes/" + i0 + "/id", schemaPath: "#/else/then/properties/boxes/items/properties/id/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7650
8836
|
if (vErrors === null) {
|
|
7651
|
-
vErrors = [
|
|
8837
|
+
vErrors = [err12];
|
|
7652
8838
|
} else {
|
|
7653
|
-
vErrors.push(
|
|
8839
|
+
vErrors.push(err12);
|
|
7654
8840
|
}
|
|
7655
8841
|
errors++;
|
|
7656
8842
|
} else {
|
|
7657
|
-
errors =
|
|
8843
|
+
errors = _errs28;
|
|
7658
8844
|
if (vErrors !== null) {
|
|
7659
|
-
if (
|
|
7660
|
-
vErrors.length =
|
|
8845
|
+
if (_errs28) {
|
|
8846
|
+
vErrors.length = _errs28;
|
|
7661
8847
|
} else {
|
|
7662
8848
|
vErrors = null;
|
|
7663
8849
|
}
|
|
@@ -7680,75 +8866,84 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7680
8866
|
errors = vErrors.length;
|
|
7681
8867
|
}
|
|
7682
8868
|
}
|
|
7683
|
-
if (data.git !== void 0) {
|
|
7684
|
-
const
|
|
8869
|
+
if (data.git !== void 0) {
|
|
8870
|
+
const err13 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
8871
|
+
if (vErrors === null) {
|
|
8872
|
+
vErrors = [err13];
|
|
8873
|
+
} else {
|
|
8874
|
+
vErrors.push(err13);
|
|
8875
|
+
}
|
|
8876
|
+
errors++;
|
|
8877
|
+
}
|
|
8878
|
+
if (data.time !== void 0) {
|
|
8879
|
+
const err14 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7685
8880
|
if (vErrors === null) {
|
|
7686
|
-
vErrors = [
|
|
8881
|
+
vErrors = [err14];
|
|
7687
8882
|
} else {
|
|
7688
|
-
vErrors.push(
|
|
8883
|
+
vErrors.push(err14);
|
|
7689
8884
|
}
|
|
7690
8885
|
errors++;
|
|
7691
8886
|
}
|
|
7692
|
-
if (data.
|
|
7693
|
-
const
|
|
8887
|
+
if (data.lineup !== void 0) {
|
|
8888
|
+
const err15 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7694
8889
|
if (vErrors === null) {
|
|
7695
|
-
vErrors = [
|
|
8890
|
+
vErrors = [err15];
|
|
7696
8891
|
} else {
|
|
7697
|
-
vErrors.push(
|
|
8892
|
+
vErrors.push(err15);
|
|
7698
8893
|
}
|
|
7699
8894
|
errors++;
|
|
7700
8895
|
}
|
|
7701
8896
|
}
|
|
7702
|
-
var _valid1 =
|
|
7703
|
-
|
|
8897
|
+
var _valid1 = _errs24 === errors;
|
|
8898
|
+
valid7 = _valid1;
|
|
7704
8899
|
ifClause1 = "then";
|
|
7705
8900
|
} else {
|
|
7706
|
-
const
|
|
7707
|
-
const
|
|
7708
|
-
let
|
|
7709
|
-
const
|
|
8901
|
+
const _errs41 = errors;
|
|
8902
|
+
const _errs42 = errors;
|
|
8903
|
+
let valid17 = true;
|
|
8904
|
+
const _errs43 = errors;
|
|
7710
8905
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7711
8906
|
if (data.kind === void 0 && ("kind")) {
|
|
7712
|
-
const
|
|
8907
|
+
const err16 = {};
|
|
7713
8908
|
if (vErrors === null) {
|
|
7714
|
-
vErrors = [
|
|
8909
|
+
vErrors = [err16];
|
|
7715
8910
|
} else {
|
|
7716
|
-
vErrors.push(
|
|
8911
|
+
vErrors.push(err16);
|
|
7717
8912
|
}
|
|
7718
8913
|
errors++;
|
|
7719
8914
|
} else {
|
|
7720
8915
|
if (data.kind !== void 0) {
|
|
7721
8916
|
if ("git" !== data.kind) {
|
|
7722
|
-
const
|
|
8917
|
+
const err17 = {};
|
|
7723
8918
|
if (vErrors === null) {
|
|
7724
|
-
vErrors = [
|
|
8919
|
+
vErrors = [err17];
|
|
7725
8920
|
} else {
|
|
7726
|
-
vErrors.push(
|
|
8921
|
+
vErrors.push(err17);
|
|
7727
8922
|
}
|
|
7728
8923
|
errors++;
|
|
7729
8924
|
}
|
|
7730
8925
|
}
|
|
7731
8926
|
}
|
|
7732
8927
|
}
|
|
7733
|
-
var _valid2 =
|
|
7734
|
-
errors =
|
|
8928
|
+
var _valid2 = _errs43 === errors;
|
|
8929
|
+
errors = _errs42;
|
|
7735
8930
|
if (vErrors !== null) {
|
|
7736
|
-
if (
|
|
7737
|
-
vErrors.length =
|
|
8931
|
+
if (_errs42) {
|
|
8932
|
+
vErrors.length = _errs42;
|
|
7738
8933
|
} else {
|
|
7739
8934
|
vErrors = null;
|
|
7740
8935
|
}
|
|
7741
8936
|
}
|
|
7742
8937
|
let ifClause2;
|
|
7743
8938
|
if (_valid2) {
|
|
7744
|
-
const
|
|
8939
|
+
const _errs45 = errors;
|
|
7745
8940
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7746
8941
|
if (data.git === void 0) {
|
|
7747
|
-
const
|
|
8942
|
+
const err18 = { instancePath, schemaPath: "#/else/else/then/required", keyword: "required", params: { missingProperty: "git" }, message: "must have required property 'git'" };
|
|
7748
8943
|
if (vErrors === null) {
|
|
7749
|
-
vErrors = [
|
|
8944
|
+
vErrors = [err18];
|
|
7750
8945
|
} else {
|
|
7751
|
-
vErrors.push(
|
|
8946
|
+
vErrors.push(err18);
|
|
7752
8947
|
}
|
|
7753
8948
|
errors++;
|
|
7754
8949
|
}
|
|
@@ -7765,83 +8960,92 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7765
8960
|
}
|
|
7766
8961
|
}
|
|
7767
8962
|
if (data.state !== void 0) {
|
|
7768
|
-
const
|
|
8963
|
+
const err19 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7769
8964
|
if (vErrors === null) {
|
|
7770
|
-
vErrors = [
|
|
8965
|
+
vErrors = [err19];
|
|
7771
8966
|
} else {
|
|
7772
|
-
vErrors.push(
|
|
8967
|
+
vErrors.push(err19);
|
|
7773
8968
|
}
|
|
7774
8969
|
errors++;
|
|
7775
8970
|
}
|
|
7776
8971
|
if (data.regions !== void 0) {
|
|
7777
|
-
const
|
|
8972
|
+
const err20 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7778
8973
|
if (vErrors === null) {
|
|
7779
|
-
vErrors = [
|
|
8974
|
+
vErrors = [err20];
|
|
7780
8975
|
} else {
|
|
7781
|
-
vErrors.push(
|
|
8976
|
+
vErrors.push(err20);
|
|
7782
8977
|
}
|
|
7783
8978
|
errors++;
|
|
7784
8979
|
}
|
|
7785
8980
|
if (data.time !== void 0) {
|
|
7786
|
-
const
|
|
8981
|
+
const err21 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7787
8982
|
if (vErrors === null) {
|
|
7788
|
-
vErrors = [
|
|
8983
|
+
vErrors = [err21];
|
|
7789
8984
|
} else {
|
|
7790
|
-
vErrors.push(
|
|
8985
|
+
vErrors.push(err21);
|
|
8986
|
+
}
|
|
8987
|
+
errors++;
|
|
8988
|
+
}
|
|
8989
|
+
if (data.lineup !== void 0) {
|
|
8990
|
+
const err22 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
8991
|
+
if (vErrors === null) {
|
|
8992
|
+
vErrors = [err22];
|
|
8993
|
+
} else {
|
|
8994
|
+
vErrors.push(err22);
|
|
7791
8995
|
}
|
|
7792
8996
|
errors++;
|
|
7793
8997
|
}
|
|
7794
8998
|
}
|
|
7795
|
-
var _valid2 =
|
|
7796
|
-
|
|
8999
|
+
var _valid2 = _errs45 === errors;
|
|
9000
|
+
valid17 = _valid2;
|
|
7797
9001
|
ifClause2 = "then";
|
|
7798
9002
|
} else {
|
|
7799
|
-
const
|
|
7800
|
-
const
|
|
7801
|
-
let
|
|
7802
|
-
const
|
|
9003
|
+
const _errs60 = errors;
|
|
9004
|
+
const _errs61 = errors;
|
|
9005
|
+
let valid24 = true;
|
|
9006
|
+
const _errs62 = errors;
|
|
7803
9007
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7804
9008
|
if (data.kind === void 0 && ("kind")) {
|
|
7805
|
-
const
|
|
9009
|
+
const err23 = {};
|
|
7806
9010
|
if (vErrors === null) {
|
|
7807
|
-
vErrors = [
|
|
9011
|
+
vErrors = [err23];
|
|
7808
9012
|
} else {
|
|
7809
|
-
vErrors.push(
|
|
9013
|
+
vErrors.push(err23);
|
|
7810
9014
|
}
|
|
7811
9015
|
errors++;
|
|
7812
9016
|
} else {
|
|
7813
9017
|
if (data.kind !== void 0) {
|
|
7814
9018
|
if ("time" !== data.kind) {
|
|
7815
|
-
const
|
|
9019
|
+
const err24 = {};
|
|
7816
9020
|
if (vErrors === null) {
|
|
7817
|
-
vErrors = [
|
|
9021
|
+
vErrors = [err24];
|
|
7818
9022
|
} else {
|
|
7819
|
-
vErrors.push(
|
|
9023
|
+
vErrors.push(err24);
|
|
7820
9024
|
}
|
|
7821
9025
|
errors++;
|
|
7822
9026
|
}
|
|
7823
9027
|
}
|
|
7824
9028
|
}
|
|
7825
9029
|
}
|
|
7826
|
-
var _valid3 =
|
|
7827
|
-
errors =
|
|
9030
|
+
var _valid3 = _errs62 === errors;
|
|
9031
|
+
errors = _errs61;
|
|
7828
9032
|
if (vErrors !== null) {
|
|
7829
|
-
if (
|
|
7830
|
-
vErrors.length =
|
|
9033
|
+
if (_errs61) {
|
|
9034
|
+
vErrors.length = _errs61;
|
|
7831
9035
|
} else {
|
|
7832
9036
|
vErrors = null;
|
|
7833
9037
|
}
|
|
7834
9038
|
}
|
|
7835
9039
|
let ifClause3;
|
|
7836
9040
|
if (_valid3) {
|
|
7837
|
-
const
|
|
9041
|
+
const _errs64 = errors;
|
|
7838
9042
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7839
9043
|
if (data.time === void 0) {
|
|
7840
|
-
const
|
|
9044
|
+
const err25 = { instancePath, schemaPath: "#/else/else/else/then/required", keyword: "required", params: { missingProperty: "time" }, message: "must have required property 'time'" };
|
|
7841
9045
|
if (vErrors === null) {
|
|
7842
|
-
vErrors = [
|
|
9046
|
+
vErrors = [err25];
|
|
7843
9047
|
} else {
|
|
7844
|
-
vErrors.push(
|
|
9048
|
+
vErrors.push(err25);
|
|
7845
9049
|
}
|
|
7846
9050
|
errors++;
|
|
7847
9051
|
}
|
|
@@ -7852,76 +9056,85 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7852
9056
|
}
|
|
7853
9057
|
}
|
|
7854
9058
|
if (data.state !== void 0) {
|
|
7855
|
-
const
|
|
9059
|
+
const err26 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7856
9060
|
if (vErrors === null) {
|
|
7857
|
-
vErrors = [
|
|
9061
|
+
vErrors = [err26];
|
|
7858
9062
|
} else {
|
|
7859
|
-
vErrors.push(
|
|
9063
|
+
vErrors.push(err26);
|
|
7860
9064
|
}
|
|
7861
9065
|
errors++;
|
|
7862
9066
|
}
|
|
7863
9067
|
if (data.git !== void 0) {
|
|
7864
|
-
const
|
|
9068
|
+
const err27 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7865
9069
|
if (vErrors === null) {
|
|
7866
|
-
vErrors = [
|
|
9070
|
+
vErrors = [err27];
|
|
7867
9071
|
} else {
|
|
7868
|
-
vErrors.push(
|
|
9072
|
+
vErrors.push(err27);
|
|
7869
9073
|
}
|
|
7870
9074
|
errors++;
|
|
7871
9075
|
}
|
|
7872
9076
|
if (data.regions !== void 0) {
|
|
7873
|
-
const
|
|
9077
|
+
const err28 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7874
9078
|
if (vErrors === null) {
|
|
7875
|
-
vErrors = [
|
|
9079
|
+
vErrors = [err28];
|
|
7876
9080
|
} else {
|
|
7877
|
-
vErrors.push(
|
|
9081
|
+
vErrors.push(err28);
|
|
9082
|
+
}
|
|
9083
|
+
errors++;
|
|
9084
|
+
}
|
|
9085
|
+
if (data.lineup !== void 0) {
|
|
9086
|
+
const err29 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9087
|
+
if (vErrors === null) {
|
|
9088
|
+
vErrors = [err29];
|
|
9089
|
+
} else {
|
|
9090
|
+
vErrors.push(err29);
|
|
7878
9091
|
}
|
|
7879
9092
|
errors++;
|
|
7880
9093
|
}
|
|
7881
9094
|
}
|
|
7882
|
-
var _valid3 =
|
|
7883
|
-
|
|
9095
|
+
var _valid3 = _errs64 === errors;
|
|
9096
|
+
valid24 = _valid3;
|
|
7884
9097
|
ifClause3 = "then";
|
|
7885
9098
|
} else {
|
|
7886
|
-
const
|
|
7887
|
-
const
|
|
7888
|
-
let
|
|
7889
|
-
const
|
|
9099
|
+
const _errs78 = errors;
|
|
9100
|
+
const _errs79 = errors;
|
|
9101
|
+
let valid31 = true;
|
|
9102
|
+
const _errs80 = errors;
|
|
7890
9103
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7891
9104
|
if (data.kind === void 0 && ("kind")) {
|
|
7892
|
-
const
|
|
9105
|
+
const err30 = {};
|
|
7893
9106
|
if (vErrors === null) {
|
|
7894
|
-
vErrors = [
|
|
9107
|
+
vErrors = [err30];
|
|
7895
9108
|
} else {
|
|
7896
|
-
vErrors.push(
|
|
9109
|
+
vErrors.push(err30);
|
|
7897
9110
|
}
|
|
7898
9111
|
errors++;
|
|
7899
9112
|
} else {
|
|
7900
9113
|
if (data.kind !== void 0) {
|
|
7901
9114
|
if ("tree" !== data.kind) {
|
|
7902
|
-
const
|
|
9115
|
+
const err31 = {};
|
|
7903
9116
|
if (vErrors === null) {
|
|
7904
|
-
vErrors = [
|
|
9117
|
+
vErrors = [err31];
|
|
7905
9118
|
} else {
|
|
7906
|
-
vErrors.push(
|
|
9119
|
+
vErrors.push(err31);
|
|
7907
9120
|
}
|
|
7908
9121
|
errors++;
|
|
7909
9122
|
}
|
|
7910
9123
|
}
|
|
7911
9124
|
}
|
|
7912
9125
|
}
|
|
7913
|
-
var _valid4 =
|
|
7914
|
-
errors =
|
|
9126
|
+
var _valid4 = _errs80 === errors;
|
|
9127
|
+
errors = _errs79;
|
|
7915
9128
|
if (vErrors !== null) {
|
|
7916
|
-
if (
|
|
7917
|
-
vErrors.length =
|
|
9129
|
+
if (_errs79) {
|
|
9130
|
+
vErrors.length = _errs79;
|
|
7918
9131
|
} else {
|
|
7919
9132
|
vErrors = null;
|
|
7920
9133
|
}
|
|
7921
9134
|
}
|
|
7922
9135
|
let ifClause4;
|
|
7923
9136
|
if (_valid4) {
|
|
7924
|
-
const
|
|
9137
|
+
const _errs82 = errors;
|
|
7925
9138
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7926
9139
|
if (data.steps !== void 0) {
|
|
7927
9140
|
if (!validate22(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
|
|
@@ -7936,409 +9149,595 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7936
9149
|
}
|
|
7937
9150
|
}
|
|
7938
9151
|
if (data.state !== void 0) {
|
|
7939
|
-
const
|
|
9152
|
+
const err32 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7940
9153
|
if (vErrors === null) {
|
|
7941
|
-
vErrors = [
|
|
9154
|
+
vErrors = [err32];
|
|
7942
9155
|
} else {
|
|
7943
|
-
vErrors.push(
|
|
9156
|
+
vErrors.push(err32);
|
|
7944
9157
|
}
|
|
7945
9158
|
errors++;
|
|
7946
9159
|
}
|
|
7947
9160
|
if (data.git !== void 0) {
|
|
7948
|
-
const
|
|
9161
|
+
const err33 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7949
9162
|
if (vErrors === null) {
|
|
7950
|
-
vErrors = [
|
|
9163
|
+
vErrors = [err33];
|
|
7951
9164
|
} else {
|
|
7952
|
-
vErrors.push(
|
|
9165
|
+
vErrors.push(err33);
|
|
7953
9166
|
}
|
|
7954
9167
|
errors++;
|
|
7955
9168
|
}
|
|
7956
9169
|
if (data.time !== void 0) {
|
|
7957
|
-
const
|
|
9170
|
+
const err34 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7958
9171
|
if (vErrors === null) {
|
|
7959
|
-
vErrors = [
|
|
9172
|
+
vErrors = [err34];
|
|
7960
9173
|
} else {
|
|
7961
|
-
vErrors.push(
|
|
9174
|
+
vErrors.push(err34);
|
|
7962
9175
|
}
|
|
7963
9176
|
errors++;
|
|
7964
9177
|
}
|
|
7965
9178
|
if (data.regions !== void 0) {
|
|
7966
|
-
const
|
|
9179
|
+
const err35 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7967
9180
|
if (vErrors === null) {
|
|
7968
|
-
vErrors = [
|
|
9181
|
+
vErrors = [err35];
|
|
9182
|
+
} else {
|
|
9183
|
+
vErrors.push(err35);
|
|
9184
|
+
}
|
|
9185
|
+
errors++;
|
|
9186
|
+
}
|
|
9187
|
+
if (data.lineup !== void 0) {
|
|
9188
|
+
const err36 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9189
|
+
if (vErrors === null) {
|
|
9190
|
+
vErrors = [err36];
|
|
7969
9191
|
} else {
|
|
7970
|
-
vErrors.push(
|
|
9192
|
+
vErrors.push(err36);
|
|
7971
9193
|
}
|
|
7972
9194
|
errors++;
|
|
7973
9195
|
}
|
|
7974
9196
|
}
|
|
7975
|
-
var _valid4 =
|
|
7976
|
-
|
|
9197
|
+
var _valid4 = _errs82 === errors;
|
|
9198
|
+
valid31 = _valid4;
|
|
7977
9199
|
ifClause4 = "then";
|
|
7978
9200
|
} else {
|
|
7979
|
-
const
|
|
9201
|
+
const _errs100 = errors;
|
|
9202
|
+
const _errs101 = errors;
|
|
9203
|
+
let valid39 = true;
|
|
9204
|
+
const _errs102 = errors;
|
|
7980
9205
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7981
|
-
if (data.
|
|
7982
|
-
|
|
7983
|
-
if (
|
|
7984
|
-
|
|
7985
|
-
|
|
9206
|
+
if (data.kind === void 0 && ("kind")) {
|
|
9207
|
+
const err37 = {};
|
|
9208
|
+
if (vErrors === null) {
|
|
9209
|
+
vErrors = [err37];
|
|
9210
|
+
} else {
|
|
9211
|
+
vErrors.push(err37);
|
|
9212
|
+
}
|
|
9213
|
+
errors++;
|
|
9214
|
+
} else {
|
|
9215
|
+
if (data.kind !== void 0) {
|
|
9216
|
+
if ("lineup" !== data.kind) {
|
|
9217
|
+
const err38 = {};
|
|
7986
9218
|
if (vErrors === null) {
|
|
7987
|
-
vErrors = [
|
|
9219
|
+
vErrors = [err38];
|
|
7988
9220
|
} else {
|
|
7989
|
-
vErrors.push(
|
|
9221
|
+
vErrors.push(err38);
|
|
7990
9222
|
}
|
|
7991
9223
|
errors++;
|
|
7992
9224
|
}
|
|
7993
9225
|
}
|
|
7994
9226
|
}
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
|
|
7999
|
-
|
|
9227
|
+
}
|
|
9228
|
+
var _valid5 = _errs102 === errors;
|
|
9229
|
+
errors = _errs101;
|
|
9230
|
+
if (vErrors !== null) {
|
|
9231
|
+
if (_errs101) {
|
|
9232
|
+
vErrors.length = _errs101;
|
|
9233
|
+
} else {
|
|
9234
|
+
vErrors = null;
|
|
8000
9235
|
}
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
|
|
9236
|
+
}
|
|
9237
|
+
let ifClause5;
|
|
9238
|
+
if (_valid5) {
|
|
9239
|
+
const _errs104 = errors;
|
|
9240
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
9241
|
+
if (data.lineup === void 0) {
|
|
9242
|
+
const err39 = { instancePath, schemaPath: "#/else/else/else/else/else/then/required", keyword: "required", params: { missingProperty: "lineup" }, message: "must have required property 'lineup'" };
|
|
9243
|
+
if (vErrors === null) {
|
|
9244
|
+
vErrors = [err39];
|
|
9245
|
+
} else {
|
|
9246
|
+
vErrors.push(err39);
|
|
9247
|
+
}
|
|
9248
|
+
errors++;
|
|
8005
9249
|
}
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
9250
|
+
if (data.boxes !== void 0) {
|
|
9251
|
+
let data39 = data.boxes;
|
|
9252
|
+
if (Array.isArray(data39)) {
|
|
9253
|
+
if (data39.length < 1) {
|
|
9254
|
+
const err40 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/else/else/else/else/then/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
9255
|
+
if (vErrors === null) {
|
|
9256
|
+
vErrors = [err40];
|
|
9257
|
+
} else {
|
|
9258
|
+
vErrors.push(err40);
|
|
9259
|
+
}
|
|
9260
|
+
errors++;
|
|
9261
|
+
}
|
|
9262
|
+
const len1 = data39.length;
|
|
9263
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
9264
|
+
let data40 = data39[i1];
|
|
9265
|
+
if (data40 && typeof data40 == "object" && !Array.isArray(data40)) {
|
|
9266
|
+
if (data40.icon !== void 0) {
|
|
9267
|
+
const err41 = { instancePath: instancePath + "/boxes/" + i1 + "/icon", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9268
|
+
if (vErrors === null) {
|
|
9269
|
+
vErrors = [err41];
|
|
9270
|
+
} else {
|
|
9271
|
+
vErrors.push(err41);
|
|
9272
|
+
}
|
|
9273
|
+
errors++;
|
|
9274
|
+
}
|
|
9275
|
+
if (data40.link !== void 0) {
|
|
9276
|
+
const err42 = { instancePath: instancePath + "/boxes/" + i1 + "/link", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9277
|
+
if (vErrors === null) {
|
|
9278
|
+
vErrors = [err42];
|
|
9279
|
+
} else {
|
|
9280
|
+
vErrors.push(err42);
|
|
9281
|
+
}
|
|
9282
|
+
errors++;
|
|
9283
|
+
}
|
|
9284
|
+
if (data40.region !== void 0) {
|
|
9285
|
+
const err43 = { instancePath: instancePath + "/boxes/" + i1 + "/region", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9286
|
+
if (vErrors === null) {
|
|
9287
|
+
vErrors = [err43];
|
|
9288
|
+
} else {
|
|
9289
|
+
vErrors.push(err43);
|
|
9290
|
+
}
|
|
9291
|
+
errors++;
|
|
9292
|
+
}
|
|
9293
|
+
}
|
|
9294
|
+
}
|
|
9295
|
+
}
|
|
8013
9296
|
}
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
9297
|
+
if (data.steps !== void 0) {
|
|
9298
|
+
if (!validate25(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
|
|
9299
|
+
vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);
|
|
9300
|
+
errors = vErrors.length;
|
|
9301
|
+
}
|
|
9302
|
+
}
|
|
9303
|
+
if (data.strip !== void 0) {
|
|
9304
|
+
if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
|
|
9305
|
+
vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
|
|
9306
|
+
errors = vErrors.length;
|
|
9307
|
+
}
|
|
9308
|
+
}
|
|
9309
|
+
if (data.state !== void 0) {
|
|
9310
|
+
const err44 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9311
|
+
if (vErrors === null) {
|
|
9312
|
+
vErrors = [err44];
|
|
9313
|
+
} else {
|
|
9314
|
+
vErrors.push(err44);
|
|
9315
|
+
}
|
|
9316
|
+
errors++;
|
|
9317
|
+
}
|
|
9318
|
+
if (data.git !== void 0) {
|
|
9319
|
+
const err45 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9320
|
+
if (vErrors === null) {
|
|
9321
|
+
vErrors = [err45];
|
|
9322
|
+
} else {
|
|
9323
|
+
vErrors.push(err45);
|
|
9324
|
+
}
|
|
9325
|
+
errors++;
|
|
9326
|
+
}
|
|
9327
|
+
if (data.time !== void 0) {
|
|
9328
|
+
const err46 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9329
|
+
if (vErrors === null) {
|
|
9330
|
+
vErrors = [err46];
|
|
9331
|
+
} else {
|
|
9332
|
+
vErrors.push(err46);
|
|
9333
|
+
}
|
|
9334
|
+
errors++;
|
|
9335
|
+
}
|
|
9336
|
+
if (data.regions !== void 0) {
|
|
9337
|
+
const err47 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9338
|
+
if (vErrors === null) {
|
|
9339
|
+
vErrors = [err47];
|
|
9340
|
+
} else {
|
|
9341
|
+
vErrors.push(err47);
|
|
9342
|
+
}
|
|
9343
|
+
errors++;
|
|
8022
9344
|
}
|
|
8023
|
-
errors++;
|
|
8024
9345
|
}
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
9346
|
+
var _valid5 = _errs104 === errors;
|
|
9347
|
+
valid39 = _valid5;
|
|
9348
|
+
ifClause5 = "then";
|
|
9349
|
+
} else {
|
|
9350
|
+
const _errs130 = errors;
|
|
9351
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
9352
|
+
if (data.boxes !== void 0) {
|
|
9353
|
+
let data50 = data.boxes;
|
|
9354
|
+
if (Array.isArray(data50)) {
|
|
9355
|
+
if (data50.length < 1) {
|
|
9356
|
+
const err48 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/else/else/else/else/else/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
9357
|
+
if (vErrors === null) {
|
|
9358
|
+
vErrors = [err48];
|
|
9359
|
+
} else {
|
|
9360
|
+
vErrors.push(err48);
|
|
9361
|
+
}
|
|
9362
|
+
errors++;
|
|
9363
|
+
}
|
|
9364
|
+
}
|
|
8031
9365
|
}
|
|
8032
|
-
|
|
9366
|
+
if (data.steps !== void 0) {
|
|
9367
|
+
if (!validate11(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
|
|
9368
|
+
vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);
|
|
9369
|
+
errors = vErrors.length;
|
|
9370
|
+
}
|
|
9371
|
+
}
|
|
9372
|
+
if (data.strip !== void 0) {
|
|
9373
|
+
if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
|
|
9374
|
+
vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
|
|
9375
|
+
errors = vErrors.length;
|
|
9376
|
+
}
|
|
9377
|
+
}
|
|
9378
|
+
if (data.state !== void 0) {
|
|
9379
|
+
const err49 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9380
|
+
if (vErrors === null) {
|
|
9381
|
+
vErrors = [err49];
|
|
9382
|
+
} else {
|
|
9383
|
+
vErrors.push(err49);
|
|
9384
|
+
}
|
|
9385
|
+
errors++;
|
|
9386
|
+
}
|
|
9387
|
+
if (data.git !== void 0) {
|
|
9388
|
+
const err50 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9389
|
+
if (vErrors === null) {
|
|
9390
|
+
vErrors = [err50];
|
|
9391
|
+
} else {
|
|
9392
|
+
vErrors.push(err50);
|
|
9393
|
+
}
|
|
9394
|
+
errors++;
|
|
9395
|
+
}
|
|
9396
|
+
if (data.time !== void 0) {
|
|
9397
|
+
const err51 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9398
|
+
if (vErrors === null) {
|
|
9399
|
+
vErrors = [err51];
|
|
9400
|
+
} else {
|
|
9401
|
+
vErrors.push(err51);
|
|
9402
|
+
}
|
|
9403
|
+
errors++;
|
|
9404
|
+
}
|
|
9405
|
+
if (data.lineup !== void 0) {
|
|
9406
|
+
const err52 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9407
|
+
if (vErrors === null) {
|
|
9408
|
+
vErrors = [err52];
|
|
9409
|
+
} else {
|
|
9410
|
+
vErrors.push(err52);
|
|
9411
|
+
}
|
|
9412
|
+
errors++;
|
|
9413
|
+
}
|
|
9414
|
+
}
|
|
9415
|
+
var _valid5 = _errs130 === errors;
|
|
9416
|
+
valid39 = _valid5;
|
|
9417
|
+
ifClause5 = "else";
|
|
9418
|
+
}
|
|
9419
|
+
if (!valid39) {
|
|
9420
|
+
const err53 = { instancePath, schemaPath: "#/else/else/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause5 }, message: 'must match "' + ifClause5 + '" schema' };
|
|
9421
|
+
if (vErrors === null) {
|
|
9422
|
+
vErrors = [err53];
|
|
9423
|
+
} else {
|
|
9424
|
+
vErrors.push(err53);
|
|
8033
9425
|
}
|
|
9426
|
+
errors++;
|
|
8034
9427
|
}
|
|
8035
|
-
var _valid4 =
|
|
8036
|
-
|
|
9428
|
+
var _valid4 = _errs100 === errors;
|
|
9429
|
+
valid31 = _valid4;
|
|
8037
9430
|
ifClause4 = "else";
|
|
8038
9431
|
}
|
|
8039
|
-
if (!
|
|
8040
|
-
const
|
|
9432
|
+
if (!valid31) {
|
|
9433
|
+
const err54 = { instancePath, schemaPath: "#/else/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause4 }, message: 'must match "' + ifClause4 + '" schema' };
|
|
8041
9434
|
if (vErrors === null) {
|
|
8042
|
-
vErrors = [
|
|
9435
|
+
vErrors = [err54];
|
|
8043
9436
|
} else {
|
|
8044
|
-
vErrors.push(
|
|
9437
|
+
vErrors.push(err54);
|
|
8045
9438
|
}
|
|
8046
9439
|
errors++;
|
|
8047
9440
|
}
|
|
8048
|
-
var _valid3 =
|
|
8049
|
-
|
|
9441
|
+
var _valid3 = _errs78 === errors;
|
|
9442
|
+
valid24 = _valid3;
|
|
8050
9443
|
ifClause3 = "else";
|
|
8051
9444
|
}
|
|
8052
|
-
if (!
|
|
8053
|
-
const
|
|
9445
|
+
if (!valid24) {
|
|
9446
|
+
const err55 = { instancePath, schemaPath: "#/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause3 }, message: 'must match "' + ifClause3 + '" schema' };
|
|
8054
9447
|
if (vErrors === null) {
|
|
8055
|
-
vErrors = [
|
|
9448
|
+
vErrors = [err55];
|
|
8056
9449
|
} else {
|
|
8057
|
-
vErrors.push(
|
|
9450
|
+
vErrors.push(err55);
|
|
8058
9451
|
}
|
|
8059
9452
|
errors++;
|
|
8060
9453
|
}
|
|
8061
|
-
var _valid2 =
|
|
8062
|
-
|
|
9454
|
+
var _valid2 = _errs60 === errors;
|
|
9455
|
+
valid17 = _valid2;
|
|
8063
9456
|
ifClause2 = "else";
|
|
8064
9457
|
}
|
|
8065
|
-
if (!
|
|
8066
|
-
const
|
|
9458
|
+
if (!valid17) {
|
|
9459
|
+
const err56 = { instancePath, schemaPath: "#/else/else/if", keyword: "if", params: { failingKeyword: ifClause2 }, message: 'must match "' + ifClause2 + '" schema' };
|
|
8067
9460
|
if (vErrors === null) {
|
|
8068
|
-
vErrors = [
|
|
9461
|
+
vErrors = [err56];
|
|
8069
9462
|
} else {
|
|
8070
|
-
vErrors.push(
|
|
9463
|
+
vErrors.push(err56);
|
|
8071
9464
|
}
|
|
8072
9465
|
errors++;
|
|
8073
9466
|
}
|
|
8074
|
-
var _valid1 =
|
|
8075
|
-
|
|
9467
|
+
var _valid1 = _errs41 === errors;
|
|
9468
|
+
valid7 = _valid1;
|
|
8076
9469
|
ifClause1 = "else";
|
|
8077
9470
|
}
|
|
8078
|
-
if (!
|
|
8079
|
-
const
|
|
9471
|
+
if (!valid7) {
|
|
9472
|
+
const err57 = { instancePath, schemaPath: "#/else/if", keyword: "if", params: { failingKeyword: ifClause1 }, message: 'must match "' + ifClause1 + '" schema' };
|
|
8080
9473
|
if (vErrors === null) {
|
|
8081
|
-
vErrors = [
|
|
9474
|
+
vErrors = [err57];
|
|
8082
9475
|
} else {
|
|
8083
|
-
vErrors.push(
|
|
9476
|
+
vErrors.push(err57);
|
|
8084
9477
|
}
|
|
8085
9478
|
errors++;
|
|
8086
9479
|
}
|
|
8087
9480
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
8088
9481
|
if (data.sequence !== void 0) {
|
|
8089
|
-
const
|
|
9482
|
+
const err58 = { instancePath: instancePath + "/sequence", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
8090
9483
|
if (vErrors === null) {
|
|
8091
|
-
vErrors = [
|
|
9484
|
+
vErrors = [err58];
|
|
8092
9485
|
} else {
|
|
8093
|
-
vErrors.push(
|
|
9486
|
+
vErrors.push(err58);
|
|
8094
9487
|
}
|
|
8095
9488
|
errors++;
|
|
8096
9489
|
}
|
|
8097
9490
|
}
|
|
8098
|
-
var _valid0 =
|
|
9491
|
+
var _valid0 = _errs20 === errors;
|
|
8099
9492
|
valid0 = _valid0;
|
|
8100
9493
|
ifClause0 = "else";
|
|
8101
9494
|
}
|
|
8102
9495
|
if (!valid0) {
|
|
8103
|
-
const
|
|
9496
|
+
const err59 = { instancePath, schemaPath: "#/if", keyword: "if", params: { failingKeyword: ifClause0 }, message: 'must match "' + ifClause0 + '" schema' };
|
|
8104
9497
|
if (vErrors === null) {
|
|
8105
|
-
vErrors = [
|
|
9498
|
+
vErrors = [err59];
|
|
8106
9499
|
} else {
|
|
8107
|
-
vErrors.push(
|
|
9500
|
+
vErrors.push(err59);
|
|
8108
9501
|
}
|
|
8109
9502
|
errors++;
|
|
8110
9503
|
}
|
|
8111
9504
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
8112
9505
|
if (data.version === void 0) {
|
|
8113
|
-
const
|
|
9506
|
+
const err60 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "version" }, message: "must have required property 'version'" };
|
|
8114
9507
|
if (vErrors === null) {
|
|
8115
|
-
vErrors = [
|
|
9508
|
+
vErrors = [err60];
|
|
8116
9509
|
} else {
|
|
8117
|
-
vErrors.push(
|
|
9510
|
+
vErrors.push(err60);
|
|
8118
9511
|
}
|
|
8119
9512
|
errors++;
|
|
8120
9513
|
}
|
|
8121
9514
|
if (data.kind === void 0) {
|
|
8122
|
-
const
|
|
9515
|
+
const err61 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "kind" }, message: "must have required property 'kind'" };
|
|
8123
9516
|
if (vErrors === null) {
|
|
8124
|
-
vErrors = [
|
|
9517
|
+
vErrors = [err61];
|
|
8125
9518
|
} else {
|
|
8126
|
-
vErrors.push(
|
|
9519
|
+
vErrors.push(err61);
|
|
8127
9520
|
}
|
|
8128
9521
|
errors++;
|
|
8129
9522
|
}
|
|
8130
9523
|
if (data.title === void 0) {
|
|
8131
|
-
const
|
|
9524
|
+
const err62 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "title" }, message: "must have required property 'title'" };
|
|
8132
9525
|
if (vErrors === null) {
|
|
8133
|
-
vErrors = [
|
|
9526
|
+
vErrors = [err62];
|
|
8134
9527
|
} else {
|
|
8135
|
-
vErrors.push(
|
|
9528
|
+
vErrors.push(err62);
|
|
8136
9529
|
}
|
|
8137
9530
|
errors++;
|
|
8138
9531
|
}
|
|
8139
9532
|
if (data.boxes === void 0) {
|
|
8140
|
-
const
|
|
9533
|
+
const err63 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "boxes" }, message: "must have required property 'boxes'" };
|
|
8141
9534
|
if (vErrors === null) {
|
|
8142
|
-
vErrors = [
|
|
9535
|
+
vErrors = [err63];
|
|
8143
9536
|
} else {
|
|
8144
|
-
vErrors.push(
|
|
9537
|
+
vErrors.push(err63);
|
|
8145
9538
|
}
|
|
8146
9539
|
errors++;
|
|
8147
9540
|
}
|
|
8148
9541
|
if (data.steps === void 0) {
|
|
8149
|
-
const
|
|
9542
|
+
const err64 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "steps" }, message: "must have required property 'steps'" };
|
|
8150
9543
|
if (vErrors === null) {
|
|
8151
|
-
vErrors = [
|
|
9544
|
+
vErrors = [err64];
|
|
8152
9545
|
} else {
|
|
8153
|
-
vErrors.push(
|
|
9546
|
+
vErrors.push(err64);
|
|
8154
9547
|
}
|
|
8155
9548
|
errors++;
|
|
8156
9549
|
}
|
|
8157
9550
|
for (const key0 in data) {
|
|
8158
9551
|
if (!func2.call(schema11.properties, key0)) {
|
|
8159
|
-
const
|
|
9552
|
+
const err65 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
8160
9553
|
if (vErrors === null) {
|
|
8161
|
-
vErrors = [
|
|
9554
|
+
vErrors = [err65];
|
|
8162
9555
|
} else {
|
|
8163
|
-
vErrors.push(
|
|
9556
|
+
vErrors.push(err65);
|
|
8164
9557
|
}
|
|
8165
9558
|
errors++;
|
|
8166
9559
|
}
|
|
8167
9560
|
}
|
|
8168
9561
|
if (data.version !== void 0) {
|
|
8169
|
-
let
|
|
8170
|
-
if (!(typeof
|
|
8171
|
-
const
|
|
9562
|
+
let data58 = data.version;
|
|
9563
|
+
if (!(typeof data58 == "number" && (!(data58 % 1) && !isNaN(data58)) && isFinite(data58))) {
|
|
9564
|
+
const err66 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
8172
9565
|
if (vErrors === null) {
|
|
8173
|
-
vErrors = [
|
|
9566
|
+
vErrors = [err66];
|
|
8174
9567
|
} else {
|
|
8175
|
-
vErrors.push(
|
|
9568
|
+
vErrors.push(err66);
|
|
8176
9569
|
}
|
|
8177
9570
|
errors++;
|
|
8178
9571
|
}
|
|
8179
|
-
if (typeof
|
|
8180
|
-
if (
|
|
8181
|
-
const
|
|
9572
|
+
if (typeof data58 == "number" && isFinite(data58)) {
|
|
9573
|
+
if (data58 < 1 || isNaN(data58)) {
|
|
9574
|
+
const err67 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
8182
9575
|
if (vErrors === null) {
|
|
8183
|
-
vErrors = [
|
|
9576
|
+
vErrors = [err67];
|
|
8184
9577
|
} else {
|
|
8185
|
-
vErrors.push(
|
|
9578
|
+
vErrors.push(err67);
|
|
8186
9579
|
}
|
|
8187
9580
|
errors++;
|
|
8188
9581
|
}
|
|
8189
9582
|
}
|
|
8190
9583
|
}
|
|
8191
9584
|
if (data.kind !== void 0) {
|
|
8192
|
-
let
|
|
8193
|
-
if (!(
|
|
8194
|
-
const
|
|
9585
|
+
let data59 = data.kind;
|
|
9586
|
+
if (!(data59 === "sequence" || data59 === "architecture" || data59 === "state" || data59 === "git" || data59 === "time" || data59 === "tree" || data59 === "lineup")) {
|
|
9587
|
+
const err68 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema11.properties.kind.enum }, message: "must be equal to one of the allowed values" };
|
|
8195
9588
|
if (vErrors === null) {
|
|
8196
|
-
vErrors = [
|
|
9589
|
+
vErrors = [err68];
|
|
8197
9590
|
} else {
|
|
8198
|
-
vErrors.push(
|
|
9591
|
+
vErrors.push(err68);
|
|
8199
9592
|
}
|
|
8200
9593
|
errors++;
|
|
8201
9594
|
}
|
|
8202
9595
|
}
|
|
8203
9596
|
if (data.title !== void 0) {
|
|
8204
|
-
let
|
|
8205
|
-
if (typeof
|
|
8206
|
-
if (func3(
|
|
8207
|
-
const
|
|
9597
|
+
let data60 = data.title;
|
|
9598
|
+
if (typeof data60 === "string") {
|
|
9599
|
+
if (func3(data60) < 1) {
|
|
9600
|
+
const err69 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
8208
9601
|
if (vErrors === null) {
|
|
8209
|
-
vErrors = [
|
|
9602
|
+
vErrors = [err69];
|
|
8210
9603
|
} else {
|
|
8211
|
-
vErrors.push(
|
|
9604
|
+
vErrors.push(err69);
|
|
8212
9605
|
}
|
|
8213
9606
|
errors++;
|
|
8214
9607
|
}
|
|
8215
9608
|
} else {
|
|
8216
|
-
const
|
|
9609
|
+
const err70 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8217
9610
|
if (vErrors === null) {
|
|
8218
|
-
vErrors = [
|
|
9611
|
+
vErrors = [err70];
|
|
8219
9612
|
} else {
|
|
8220
|
-
vErrors.push(
|
|
9613
|
+
vErrors.push(err70);
|
|
8221
9614
|
}
|
|
8222
9615
|
errors++;
|
|
8223
9616
|
}
|
|
8224
9617
|
}
|
|
8225
9618
|
if (data.view !== void 0) {
|
|
8226
|
-
let
|
|
8227
|
-
if (!(
|
|
8228
|
-
const
|
|
9619
|
+
let data61 = data.view;
|
|
9620
|
+
if (!(data61 === "fixed" || data61 === "follow")) {
|
|
9621
|
+
const err71 = { instancePath: instancePath + "/view", schemaPath: "#/properties/view/enum", keyword: "enum", params: { allowedValues: schema11.properties.view.enum }, message: "must be equal to one of the allowed values" };
|
|
8229
9622
|
if (vErrors === null) {
|
|
8230
|
-
vErrors = [
|
|
9623
|
+
vErrors = [err71];
|
|
8231
9624
|
} else {
|
|
8232
|
-
vErrors.push(
|
|
9625
|
+
vErrors.push(err71);
|
|
8233
9626
|
}
|
|
8234
9627
|
errors++;
|
|
8235
9628
|
}
|
|
8236
9629
|
}
|
|
8237
9630
|
if (data.regions !== void 0) {
|
|
8238
|
-
let
|
|
8239
|
-
if (Array.isArray(
|
|
8240
|
-
const
|
|
8241
|
-
for (let
|
|
8242
|
-
if (!
|
|
8243
|
-
vErrors = vErrors === null ?
|
|
9631
|
+
let data62 = data.regions;
|
|
9632
|
+
if (Array.isArray(data62)) {
|
|
9633
|
+
const len2 = data62.length;
|
|
9634
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
9635
|
+
if (!validate30(data62[i2], { instancePath: instancePath + "/regions/" + i2, parentData: data62, parentDataProperty: i2, rootData })) {
|
|
9636
|
+
vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);
|
|
8244
9637
|
errors = vErrors.length;
|
|
8245
9638
|
}
|
|
8246
9639
|
}
|
|
8247
9640
|
} else {
|
|
8248
|
-
const
|
|
9641
|
+
const err72 = { instancePath: instancePath + "/regions", schemaPath: "#/properties/regions/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
8249
9642
|
if (vErrors === null) {
|
|
8250
|
-
vErrors = [
|
|
9643
|
+
vErrors = [err72];
|
|
8251
9644
|
} else {
|
|
8252
|
-
vErrors.push(
|
|
9645
|
+
vErrors.push(err72);
|
|
8253
9646
|
}
|
|
8254
9647
|
errors++;
|
|
8255
9648
|
}
|
|
8256
9649
|
}
|
|
8257
9650
|
if (data.boxes !== void 0) {
|
|
8258
|
-
let
|
|
8259
|
-
if (Array.isArray(
|
|
8260
|
-
const
|
|
8261
|
-
for (let
|
|
8262
|
-
if (!
|
|
8263
|
-
vErrors = vErrors === null ?
|
|
9651
|
+
let data64 = data.boxes;
|
|
9652
|
+
if (Array.isArray(data64)) {
|
|
9653
|
+
const len3 = data64.length;
|
|
9654
|
+
for (let i3 = 0; i3 < len3; i3++) {
|
|
9655
|
+
if (!validate32(data64[i3], { instancePath: instancePath + "/boxes/" + i3, parentData: data64, parentDataProperty: i3, rootData })) {
|
|
9656
|
+
vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);
|
|
8264
9657
|
errors = vErrors.length;
|
|
8265
9658
|
}
|
|
8266
9659
|
}
|
|
8267
9660
|
} else {
|
|
8268
|
-
const
|
|
9661
|
+
const err73 = { instancePath: instancePath + "/boxes", schemaPath: "#/properties/boxes/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
8269
9662
|
if (vErrors === null) {
|
|
8270
|
-
vErrors = [
|
|
9663
|
+
vErrors = [err73];
|
|
8271
9664
|
} else {
|
|
8272
|
-
vErrors.push(
|
|
9665
|
+
vErrors.push(err73);
|
|
8273
9666
|
}
|
|
8274
9667
|
errors++;
|
|
8275
9668
|
}
|
|
8276
9669
|
}
|
|
8277
9670
|
if (data.strip !== void 0) {
|
|
8278
|
-
if (!
|
|
8279
|
-
vErrors = vErrors === null ?
|
|
9671
|
+
if (!validate34(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
|
|
9672
|
+
vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);
|
|
8280
9673
|
errors = vErrors.length;
|
|
8281
9674
|
}
|
|
8282
9675
|
}
|
|
8283
9676
|
if (data.steps !== void 0) {
|
|
8284
|
-
let
|
|
8285
|
-
if (Array.isArray(
|
|
8286
|
-
if (
|
|
8287
|
-
const
|
|
9677
|
+
let data67 = data.steps;
|
|
9678
|
+
if (Array.isArray(data67)) {
|
|
9679
|
+
if (data67.length < 1) {
|
|
9680
|
+
const err74 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
8288
9681
|
if (vErrors === null) {
|
|
8289
|
-
vErrors = [
|
|
9682
|
+
vErrors = [err74];
|
|
8290
9683
|
} else {
|
|
8291
|
-
vErrors.push(
|
|
9684
|
+
vErrors.push(err74);
|
|
8292
9685
|
}
|
|
8293
9686
|
errors++;
|
|
8294
9687
|
}
|
|
8295
|
-
const
|
|
8296
|
-
for (let
|
|
8297
|
-
if (!
|
|
8298
|
-
vErrors = vErrors === null ?
|
|
9688
|
+
const len4 = data67.length;
|
|
9689
|
+
for (let i4 = 0; i4 < len4; i4++) {
|
|
9690
|
+
if (!validate38(data67[i4], { instancePath: instancePath + "/steps/" + i4, parentData: data67, parentDataProperty: i4, rootData })) {
|
|
9691
|
+
vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);
|
|
8299
9692
|
errors = vErrors.length;
|
|
8300
9693
|
}
|
|
8301
9694
|
}
|
|
8302
9695
|
} else {
|
|
8303
|
-
const
|
|
9696
|
+
const err75 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
8304
9697
|
if (vErrors === null) {
|
|
8305
|
-
vErrors = [
|
|
9698
|
+
vErrors = [err75];
|
|
8306
9699
|
} else {
|
|
8307
|
-
vErrors.push(
|
|
9700
|
+
vErrors.push(err75);
|
|
8308
9701
|
}
|
|
8309
9702
|
errors++;
|
|
8310
9703
|
}
|
|
8311
9704
|
}
|
|
8312
9705
|
if (data.sequence !== void 0) {
|
|
8313
|
-
if (!
|
|
8314
|
-
vErrors = vErrors === null ?
|
|
9706
|
+
if (!validate46(data.sequence, { instancePath: instancePath + "/sequence", parentData: data, parentDataProperty: "sequence", rootData })) {
|
|
9707
|
+
vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
|
|
8315
9708
|
errors = vErrors.length;
|
|
8316
9709
|
}
|
|
8317
9710
|
}
|
|
8318
9711
|
if (data.state !== void 0) {
|
|
8319
|
-
if (!
|
|
8320
|
-
vErrors = vErrors === null ?
|
|
9712
|
+
if (!validate48(data.state, { instancePath: instancePath + "/state", parentData: data, parentDataProperty: "state", rootData })) {
|
|
9713
|
+
vErrors = vErrors === null ? validate48.errors : vErrors.concat(validate48.errors);
|
|
8321
9714
|
errors = vErrors.length;
|
|
8322
9715
|
}
|
|
8323
9716
|
}
|
|
8324
9717
|
if (data.git !== void 0) {
|
|
8325
|
-
if (!
|
|
8326
|
-
vErrors = vErrors === null ?
|
|
9718
|
+
if (!validate52(data.git, { instancePath: instancePath + "/git", parentData: data, parentDataProperty: "git", rootData })) {
|
|
9719
|
+
vErrors = vErrors === null ? validate52.errors : vErrors.concat(validate52.errors);
|
|
8327
9720
|
errors = vErrors.length;
|
|
8328
9721
|
}
|
|
8329
9722
|
}
|
|
8330
9723
|
if (data.time !== void 0) {
|
|
8331
|
-
if (!
|
|
8332
|
-
vErrors = vErrors === null ?
|
|
9724
|
+
if (!validate56(data.time, { instancePath: instancePath + "/time", parentData: data, parentDataProperty: "time", rootData })) {
|
|
9725
|
+
vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);
|
|
9726
|
+
errors = vErrors.length;
|
|
9727
|
+
}
|
|
9728
|
+
}
|
|
9729
|
+
if (data.lineup !== void 0) {
|
|
9730
|
+
if (!validate68(data.lineup, { instancePath: instancePath + "/lineup", parentData: data, parentDataProperty: "lineup", rootData })) {
|
|
9731
|
+
vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
|
|
8333
9732
|
errors = vErrors.length;
|
|
8334
9733
|
}
|
|
8335
9734
|
}
|
|
8336
9735
|
} else {
|
|
8337
|
-
const
|
|
9736
|
+
const err76 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
8338
9737
|
if (vErrors === null) {
|
|
8339
|
-
vErrors = [
|
|
9738
|
+
vErrors = [err76];
|
|
8340
9739
|
} else {
|
|
8341
|
-
vErrors.push(
|
|
9740
|
+
vErrors.push(err76);
|
|
8342
9741
|
}
|
|
8343
9742
|
errors++;
|
|
8344
9743
|
}
|
|
@@ -8348,9 +9747,18 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8348
9747
|
|
|
8349
9748
|
// src/schema.ts
|
|
8350
9749
|
var COLORS = ["blue", "amber", "green", "violet", "rose", "slate", "coin"];
|
|
8351
|
-
var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span", "leaf", "node"];
|
|
9750
|
+
var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span", "leaf", "node", "line", "seal", "open", "pick", "stamp"];
|
|
8352
9751
|
var ABSENT = "#/definitions/absent/not";
|
|
8353
|
-
var ABSENT_KINDS = {
|
|
9752
|
+
var ABSENT_KINDS = {
|
|
9753
|
+
regions: "sequence / architecture / state",
|
|
9754
|
+
at: "time",
|
|
9755
|
+
into: "time",
|
|
9756
|
+
color: "time",
|
|
9757
|
+
meters: "time",
|
|
9758
|
+
region: "sequence / architecture / state",
|
|
9759
|
+
icon: "sequence / architecture / state / git / time / tree",
|
|
9760
|
+
link: "sequence / architecture / state / git / time / tree"
|
|
9761
|
+
};
|
|
8354
9762
|
var NOT_ALLOWED = {
|
|
8355
9763
|
carry: { field: "text", kind: "tag" }
|
|
8356
9764
|
};
|
|
@@ -8361,6 +9769,10 @@ var TIME_EVENT = /\/events\/items\/not$/u;
|
|
|
8361
9769
|
var TIME_EVENTS = ["now", "mark", "span"];
|
|
8362
9770
|
var TREE_EVENT = /\/events\/items\/allOf\/0\/not$/u;
|
|
8363
9771
|
var TREE_EVENTS = ["leaf", "node"];
|
|
9772
|
+
var LINEUP_EVENT = "#/definitions/notLineupEvent/not";
|
|
9773
|
+
var LINEUP_EVENTS = ["line", "seal", "open", "pick", "stamp"];
|
|
9774
|
+
var WIRED_EVENT = "#/definitions/notWiredEvent/not";
|
|
9775
|
+
var WIRED_EVENTS = ["edge", "action"];
|
|
8364
9776
|
var DURATION = /^\^\[0-9\]\+\(\\\.\[0-9\]\+\)\?\(([a-z|]+)\)\$$/u;
|
|
8365
9777
|
var RATIO = /%\)\$$/u;
|
|
8366
9778
|
var escape = (key) => key.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
@@ -8392,6 +9804,8 @@ function toFieldError(error, errors, m) {
|
|
|
8392
9804
|
if (GIT_EVENT.test(error.schemaPath)) return { pointer: at2, message: m.kindOnly(GIT_EVENTS, "git") };
|
|
8393
9805
|
if (TIME_EVENT.test(error.schemaPath)) return { pointer: `${at2}/type`, message: m.kindOnly(TIME_EVENTS, "time") };
|
|
8394
9806
|
if (TREE_EVENT.test(error.schemaPath)) return { pointer: `${at2}/type`, message: m.kindOnly(TREE_EVENTS, "tree") };
|
|
9807
|
+
if (error.schemaPath === LINEUP_EVENT) return { pointer: `${at2}/type`, message: m.kindOnly(LINEUP_EVENTS, "lineup") };
|
|
9808
|
+
if (error.schemaPath === WIRED_EVENT) return { pointer: `${at2}/type`, message: m.kindOnly(WIRED_EVENTS, "sequence / architecture / state / git / time / tree") };
|
|
8395
9809
|
const last = at2.slice(at2.lastIndexOf("/") + 1);
|
|
8396
9810
|
if (error.schemaPath === ABSENT) return { pointer: at2, message: m.not({ field: last, kind: ABSENT_KINDS[last] ?? last }) };
|
|
8397
9811
|
const allowed = NOT_ALLOWED[last];
|
|
@@ -8412,6 +9826,8 @@ function toFieldError(error, errors, m) {
|
|
|
8412
9826
|
return { pointer: at2, message: m.type(String(params.type)) };
|
|
8413
9827
|
case "minLength":
|
|
8414
9828
|
return { pointer: at2, message: m.minLength(Number(params.limit)) };
|
|
9829
|
+
case "maxLength":
|
|
9830
|
+
return { pointer: at2, message: m.maxLength(Number(params.limit)) };
|
|
8415
9831
|
case "pattern": {
|
|
8416
9832
|
if (error.schemaPath === URL_RULE) return { pointer: at2, message: m.url };
|
|
8417
9833
|
const pattern = String(params.pattern);
|
|
@@ -8424,6 +9840,8 @@ function toFieldError(error, errors, m) {
|
|
|
8424
9840
|
}
|
|
8425
9841
|
case "minItems":
|
|
8426
9842
|
return { pointer: at2, message: m.minItems(Number(params.limit)) };
|
|
9843
|
+
case "maxItems":
|
|
9844
|
+
return { pointer: at2, message: m.maxItems(Number(params.limit)) };
|
|
8427
9845
|
case "minimum":
|
|
8428
9846
|
return { pointer: at2, message: m.minimum(Number(params.limit)) };
|
|
8429
9847
|
case "const":
|
|
@@ -8463,6 +9881,7 @@ function readDiagram(input, options = {}) {
|
|
|
8463
9881
|
}
|
|
8464
9882
|
|
|
8465
9883
|
// src/timeline.ts
|
|
9884
|
+
var LINEUP_LENGTH = { line: MOTION.lineup.slide, seal: MOTION.lineup.seal, open: MOTION.fade, pick: MOTION.fade, stamp: MOTION.popFade };
|
|
8466
9885
|
function plan(step, needle) {
|
|
8467
9886
|
const out = { edges: [], events: [], busy: 0 };
|
|
8468
9887
|
let cursor = MOTION.edgeAt;
|
|
@@ -8503,6 +9922,16 @@ function plan(step, needle) {
|
|
|
8503
9922
|
return;
|
|
8504
9923
|
}
|
|
8505
9924
|
if (event.type === "now" || needle && pulled(event)) return;
|
|
9925
|
+
if (event.type === "line" || event.type === "seal" || event.type === "open" || event.type === "pick" || event.type === "stamp") {
|
|
9926
|
+
const a = cursor;
|
|
9927
|
+
const b = a + LINEUP_LENGTH[event.type];
|
|
9928
|
+
out.edges.push({ event: e, a, b, carries: false, coin: false, named: false });
|
|
9929
|
+
cursor = a + MOTION.lineup.stagger;
|
|
9930
|
+
arrived = b;
|
|
9931
|
+
changes = 0;
|
|
9932
|
+
out.busy = Math.max(out.busy, b);
|
|
9933
|
+
return;
|
|
9934
|
+
}
|
|
8506
9935
|
if (event.type === "commit" || event.type === "branch" || event.type === "leaf" || event.type === "node") {
|
|
8507
9936
|
const a = cursor;
|
|
8508
9937
|
const b = a + MOTION.draw;
|
|
@@ -8830,14 +10259,16 @@ function band(region, ink) {
|
|
|
8830
10259
|
const mark = region.icon && ICONS[region.icon] ? `<rect class="dg-bi" x="${r1(x)}" y="${r1(y)}" width="${icon}" height="${icon}" rx="${iconRadius}"/>${glyph(region.icon, x + icon / 2, y + icon / 2, iconScale)}` : "";
|
|
8831
10260
|
return `<g style="${cs(region.color)}"><rect class="dg-band" x="${r1(region.x + 0.5)}" y="${r1(region.y + 0.5)}" width="${r1(region.w - 1)}" height="${r1(region.h - 1)}" rx="${radius}"/>${mark}${lines}${note}</g>`;
|
|
8832
10261
|
}
|
|
8833
|
-
function subLines(box, m, changes, y, ink) {
|
|
10262
|
+
function subLines(box, m, changes, y, ink, right) {
|
|
8834
10263
|
const seq = [[0, box.sub ?? "", "dg-ss"], ...changes];
|
|
8835
10264
|
return seq.map(([t, text2, cls], k) => {
|
|
8836
10265
|
const next = seq[k + 1]?.[0];
|
|
8837
10266
|
const anim = k === 0 ? next === void 0 ? "" : m.until(next - MOTION.untilFade) : next === void 0 ? m.rise(t) : m.rise(t, next - MOTION.untilFade);
|
|
8838
10267
|
if (text2 === "") return "";
|
|
8839
10268
|
const shown = [[k === 0 ? 0 : t, next === void 0 ? Number.POSITIVE_INFINITY : next - MOTION.untilFade]];
|
|
8840
|
-
|
|
10269
|
+
const style = cls === "dg-ss" ? TYPE.boxSub : TYPE.boxSubStrong;
|
|
10270
|
+
const drawn = right === void 0 ? write(ink, cls, box.cx, y, text2, style, shown, "middle") : write(ink, cls, right - textWidth(text2, style), y, text2, style, shown);
|
|
10271
|
+
return `<g${anim ? ` class="dg-a" style="${anim}"` : ""}>${drawn}</g>`;
|
|
8841
10272
|
}).join("");
|
|
8842
10273
|
}
|
|
8843
10274
|
function cardFrame(box, ctx, act, y, h) {
|
|
@@ -8905,9 +10336,9 @@ function endMark(e, color, ink) {
|
|
|
8905
10336
|
function lifeline(x, y1, y2) {
|
|
8906
10337
|
return `<line class="dg-ll" x1="${r1(x)}" y1="${r1(y1)}" x2="${r1(x)}" y2="${r1(y2)}"/>`;
|
|
8907
10338
|
}
|
|
8908
|
-
function edge(e, time, ctx, past = false) {
|
|
10339
|
+
function edge(e, time, ctx, past = false, since = 0) {
|
|
8909
10340
|
const { m } = ctx;
|
|
8910
|
-
ctx.traces.push({ from: e.from, to: e.to, points: e.points, shown: ALWAYS });
|
|
10341
|
+
ctx.traces.push({ from: e.from, to: e.to, points: e.points, shown: since > 0 ? [[since, Number.POSITIVE_INFINITY]] : ALWAYS });
|
|
8911
10342
|
const d = pathOf(e.points);
|
|
8912
10343
|
const head = arrowHead(e.points);
|
|
8913
10344
|
const { start: a, drawn: b, end } = time;
|
|
@@ -8943,8 +10374,9 @@ function edge(e, time, ctx, past = false) {
|
|
|
8943
10374
|
[m.total, { opacity: 0, "stroke-dashoffset": run }]
|
|
8944
10375
|
]);
|
|
8945
10376
|
const grey = past ? m.kf([[0, { opacity: 0 }], [end, { opacity: 0 }, EASE.inOut], [end + 0.4, { opacity: 1 }], [m.last, { opacity: 1 }, EASE.inOut], [m.total, { opacity: 0 }]]) : "";
|
|
10377
|
+
const path2 = `<path class="dg-e" d="${d}"/><path class="dg-eh" d="${head}"/>`;
|
|
8946
10378
|
return {
|
|
8947
|
-
base: `<
|
|
10379
|
+
base: `${since > 0 ? `<g class="dg-a" style="${m.vis(since)}">${path2}</g>` : path2}${past ? `<path class="dg-e-past dg-a" d="${d}" style="${grey}"/><path class="dg-eh-past dg-a" d="${head}" style="${grey}"/>` : ""}`,
|
|
8948
10380
|
lit: `<g style="${cs(e.color)}"><path class="dg-e-on dg-a" pathLength="1" d="${d}" style="${line}"/><path class="dg-eh-on dg-a" d="${head}" style="${hk}"/><path class="dg-flow dg-a" d="${d}" style="${flow}"/></g>`
|
|
8949
10381
|
};
|
|
8950
10382
|
}
|
|
@@ -9239,8 +10671,133 @@ function tagMotion(ref, list2, timeOf, ctx) {
|
|
|
9239
10671
|
return `<g class="dg-a" data-ref="${esc(ref)}" style="${style}">${tagShape(ref, ctx.sh)}</g>`;
|
|
9240
10672
|
}
|
|
9241
10673
|
|
|
9242
|
-
// src/render/
|
|
10674
|
+
// src/render/lineup.ts
|
|
9243
10675
|
var r13 = (v) => Math.round(v * 100) / 100;
|
|
10676
|
+
var place = (dx, dy, scale = 1) => `translate(${r13(dx)}px,${r13(dy)}px) scale(${scale})`;
|
|
10677
|
+
var without = (span, holes) => holes.reduce((rest, [x, y]) => rest.flatMap(([a, b]) => y <= a || x >= b ? [[a, b]] : [...a < x ? [[a, x]] : [], ...y < b ? [[y, b]] : []]), [span]);
|
|
10678
|
+
function drawLineup(layout, diagram, timeline, ctx, subs) {
|
|
10679
|
+
const { m } = ctx;
|
|
10680
|
+
const N = LOOK.lineup;
|
|
10681
|
+
const cut = MOTION.lineup.cut;
|
|
10682
|
+
const timeOf = (at2) => timeline.edges.find((t) => t.step === at2.step && t.event === at2.event) ?? { start: 0, drawn: 0 };
|
|
10683
|
+
const items = new Map((diagram.lineup?.items ?? []).map((item) => [item.id, item]));
|
|
10684
|
+
const turns = new Map(layout.lanes.map((lane) => [lane.id, []]));
|
|
10685
|
+
const faint = /* @__PURE__ */ new Set();
|
|
10686
|
+
const turn = (id, at2, to) => {
|
|
10687
|
+
if (faint.has(id) === to) return;
|
|
10688
|
+
if (to) faint.add(id);
|
|
10689
|
+
else faint.delete(id);
|
|
10690
|
+
turns.get(id)?.push([at2, to]);
|
|
10691
|
+
};
|
|
10692
|
+
for (const time of [...timeline.edges].sort((a, b) => a.start - b.start)) {
|
|
10693
|
+
const e = diagram.steps[time.step]?.events[time.event];
|
|
10694
|
+
if (e?.type === "line") turn(e.box, time.start, false);
|
|
10695
|
+
if (e?.type === "pick") for (const lane of layout.lanes) turn(lane.id, time.start, lane.id !== e.box);
|
|
10696
|
+
}
|
|
10697
|
+
const fadeOf = (id) => {
|
|
10698
|
+
const list2 = turns.get(id) ?? [];
|
|
10699
|
+
if (list2.length === 0) return void 0;
|
|
10700
|
+
const frames = [[0, { opacity: 1 }]];
|
|
10701
|
+
let now = 1;
|
|
10702
|
+
for (const [t, to] of list2) {
|
|
10703
|
+
const next = to ? N.faint : 1;
|
|
10704
|
+
frames.push([t, { opacity: now }, EASE.inOut], [t + MOTION.fade, { opacity: next }]);
|
|
10705
|
+
now = next;
|
|
10706
|
+
}
|
|
10707
|
+
frames.push([m.last, { opacity: now }, EASE.inOut], [m.total, { opacity: 1 }]);
|
|
10708
|
+
return m.kf(frames);
|
|
10709
|
+
};
|
|
10710
|
+
const closedOf = (seal) => [timeOf(seal).drawn, seal.until ? timeOf(seal.until).start : Number.POSITIVE_INFINITY];
|
|
10711
|
+
const hideOf = (seals) => {
|
|
10712
|
+
if (seals.length === 0) return void 0;
|
|
10713
|
+
const frames = [[0, { opacity: 1 }]];
|
|
10714
|
+
for (const seal of seals) {
|
|
10715
|
+
const [a, b] = closedOf(seal);
|
|
10716
|
+
frames.push([a, { opacity: 1 }], [a + cut, { opacity: 0 }]);
|
|
10717
|
+
if (seal.until) frames.push([b, { opacity: 0 }], [b + cut, { opacity: 1 }]);
|
|
10718
|
+
}
|
|
10719
|
+
frames.push([m.total - cut, { opacity: seals.at(-1)?.until ? 1 : 0 }], [m.total, { opacity: 1 }]);
|
|
10720
|
+
return m.kf(frames);
|
|
10721
|
+
};
|
|
10722
|
+
const sealKf = (seal) => {
|
|
10723
|
+
const { start, drawn } = timeOf(seal);
|
|
10724
|
+
const none = { opacity: 0, transform: "scaleX(0)" };
|
|
10725
|
+
const end = seal.until ? [
|
|
10726
|
+
[timeOf(seal.until).start, { opacity: 1 }, EASE.inOut],
|
|
10727
|
+
[timeOf(seal.until).start + MOTION.fade, { opacity: 0 }],
|
|
10728
|
+
[m.total, { opacity: 0 }]
|
|
10729
|
+
] : [
|
|
10730
|
+
[m.last, { opacity: 1 }, EASE.inOut],
|
|
10731
|
+
[m.total, { opacity: 0 }]
|
|
10732
|
+
];
|
|
10733
|
+
return m.kf([[0, none], [start - cut, none], [start, { opacity: 1, transform: "scaleX(0)" }, EASE.inOut], [drawn, { transform: "scaleX(1)" }], ...end]);
|
|
10734
|
+
};
|
|
10735
|
+
const leaving = (c) => {
|
|
10736
|
+
if (!c.until) return void 0;
|
|
10737
|
+
const until = c.until;
|
|
10738
|
+
const next = layout.chips.find((n) => n !== c && n.id === c.id && n.step === until.step && n.from?.[0] === c.x && n.from?.[1] === c.y);
|
|
10739
|
+
return next ? { at: timeOf(next).start, moved: true } : { at: timeOf(until).start, moved: false };
|
|
10740
|
+
};
|
|
10741
|
+
const chipKf = (c) => {
|
|
10742
|
+
const a = timeOf(c).start;
|
|
10743
|
+
const rest = place(0, 0);
|
|
10744
|
+
const frames = [];
|
|
10745
|
+
if (c.from) {
|
|
10746
|
+
const off = place(c.from[0] - c.x, c.from[1] - c.y);
|
|
10747
|
+
frames.push([0, { opacity: 0, transform: off }], [a - cut, { opacity: 0, transform: off }], [a, { opacity: 1, transform: off }, EASE.inOut], [a + MOTION.lineup.slide, { transform: rest }]);
|
|
10748
|
+
} else {
|
|
10749
|
+
const off = place(0, 0, LOOK.popFrom);
|
|
10750
|
+
frames.push([0, { opacity: 0, transform: off }], [a, { opacity: 0, transform: off }, EASE.pop], [a + MOTION.popFade, { opacity: 1, transform: rest }]);
|
|
10751
|
+
}
|
|
10752
|
+
const leaves = leaving(c);
|
|
10753
|
+
if (leaves) {
|
|
10754
|
+
frames.push([leaves.at, { opacity: 1 }, EASE.inOut], [leaves.at + (leaves.moved ? cut : MOTION.fade), { opacity: 0 }], [m.total, { opacity: 0 }]);
|
|
10755
|
+
} else {
|
|
10756
|
+
frames.push([m.last, { opacity: 1 }, EASE.inOut], [m.total, { opacity: 0 }]);
|
|
10757
|
+
}
|
|
10758
|
+
return m.kf(frames);
|
|
10759
|
+
};
|
|
10760
|
+
const chip = (c, closed) => {
|
|
10761
|
+
const item = items.get(c.id);
|
|
10762
|
+
const color = item?.color;
|
|
10763
|
+
const rect = `<rect class="${color ? "dg-ln-chip" : "dg-ln-plain"}" x="${r13(c.x)}" y="${r13(c.y)}" width="${r13(c.w)}" height="${c.h}" rx="${N.chip.radius}"/>`;
|
|
10764
|
+
const shown = without([timeOf(c).start + MOTION.lineup.slide, leaving(c)?.at ?? Number.POSITIVE_INFINITY], closed);
|
|
10765
|
+
const text2 = item?.label === void 0 ? "" : write(ctx.ink, color ? "dg-ln-t" : "dg-ln-tp", c.x + c.w / 2, c.y + c.h / 2 + LOOK.baseline.tag, item.label, TYPE.chip, shown, "middle");
|
|
10766
|
+
return `<g class="dg-popc dg-a" data-lineup-chip="${esc(c.id)}" data-lineup-on="${esc(c.lane)}" data-lineup-seat="${c.index}" style="${color ? `${cs(color)};` : ""}${chipKf(c)}">${rect}${text2}</g>`;
|
|
10767
|
+
};
|
|
10768
|
+
const ring = (pick, next, frame) => `<g class="dg-a" data-lineup-ring="${esc(pick.lane)}" style="${m.vis(timeOf(pick).start, next ? timeOf(next).start : m.last)}">${frame}</g>`;
|
|
10769
|
+
const faded = new Map(layout.lanes.map((lane) => [lane.id, fadeOf(lane.id)]));
|
|
10770
|
+
const lanes = layout.lanes.map((lane) => {
|
|
10771
|
+
const rect = (cls, extra = "") => `<rect class="${cls}" x="${r13(lane.x)}" y="${r13(lane.y)}" width="${r13(lane.w)}" height="${lane.h}" rx="${N.radius}"${extra}/>`;
|
|
10772
|
+
const rings = layout.picks.flatMap((pick, k) => pick.lane === lane.id ? [ring(pick, layout.picks[k + 1], `${rect("dg-halo")}${rect("dg-on")}`)] : []).join("");
|
|
10773
|
+
const notes = subLines(lane, m, subs.get(lane.id) ?? [], lane.title.baseline, ctx.ink, lane.noteRight);
|
|
10774
|
+
const fade = faded.get(lane.id);
|
|
10775
|
+
return `<g${fade ? ' class="dg-a"' : ""} data-lineup-lane="${esc(lane.id)}" style="${cs(lane.color)}${fade ? `;${fade}` : ""}">${rect("dg-st", ` ${ctx.sh}`)}${rings}${write(ctx.ink, "dg-sn", lane.title.x, lane.title.baseline, lane.name, TYPE.boxName, ALWAYS)}${notes}</g>`;
|
|
10776
|
+
}).join("");
|
|
10777
|
+
const stripes = N.seal.stripe;
|
|
10778
|
+
const pattern = `<defs><pattern id="dg-seal-${ctx.id}" patternUnits="userSpaceOnUse" width="${stripes * 2}" height="${stripes * 2}" patternTransform="rotate(45)"><rect class="dg-ln-sl" width="${stripes * 2}" height="${stripes * 2}"/><rect class="dg-ln-sd" width="${stripes}" height="${stripes * 2}"/></pattern></defs>`;
|
|
10779
|
+
const chips = layout.lanes.map((lane) => {
|
|
10780
|
+
const seals = layout.seals.filter((s) => s.lane === lane.id);
|
|
10781
|
+
const closed = seals.map(closedOf);
|
|
10782
|
+
const seats = layout.chips.filter((c) => c.lane === lane.id).map((c) => chip(c, closed)).join("");
|
|
10783
|
+
const hide = hideOf(seals);
|
|
10784
|
+
const track = `<g${hide ? ' class="dg-a"' : ""} data-lineup-track="${esc(lane.id)}"${hide ? ` style="${hide}"` : ""}>${seats}</g>`;
|
|
10785
|
+
const covers = seals.map((s) => `<rect class="dg-ln-seal dg-a" data-lineup-seal="${esc(lane.id)}" x="${r13(s.x)}" y="${r13(s.y)}" width="${r13(s.w)}" height="${r13(s.h)}" rx="${N.seal.radius}" fill="url(#dg-seal-${ctx.id})" style="${sealKf(s)}"/>`).join("");
|
|
10786
|
+
const stamps = layout.stamps.filter((s) => s.lane === lane.id).map((s) => {
|
|
10787
|
+
const at2 = timeOf(s).start;
|
|
10788
|
+
const cx = s.x + s.w / 2;
|
|
10789
|
+
const cy = s.y + s.h / 2;
|
|
10790
|
+
const text2 = write(ctx.ink, "dg-ln-st", cx, cy + LOOK.baseline.tag, s.text, TYPE.stamp, [[at2, Number.POSITIVE_INFINITY]], "middle");
|
|
10791
|
+
return `<g class="dg-popc dg-a" data-lineup-stamp="${esc(lane.id)}" style="${cs(N.stamp.color)};${m.pop(at2)}"><g transform="rotate(${N.stamp.tilt} ${r13(cx)} ${r13(cy)})"><rect class="dg-ln-stamp" x="${r13(s.x)}" y="${r13(s.y)}" width="${r13(s.w)}" height="${s.h}" rx="${N.stamp.radius}"/>${text2}</g></g>`;
|
|
10792
|
+
}).join("");
|
|
10793
|
+
const fade = faded.get(lane.id);
|
|
10794
|
+
return `<g${fade ? ` class="dg-a" style="${fade}"` : ""}>${track}${covers}${stamps}</g>`;
|
|
10795
|
+
}).join("");
|
|
10796
|
+
return { lanes, chips: `${pattern}${chips}` };
|
|
10797
|
+
}
|
|
10798
|
+
|
|
10799
|
+
// src/render/time.ts
|
|
10800
|
+
var r14 = (v) => Math.round(v * 100) / 100;
|
|
9244
10801
|
var ja2 = (cls, text2) => hasWide(text2) ? `${cls} ${cls}j` : cls;
|
|
9245
10802
|
var sansOf = (t) => ({ ...t, family: "sans" });
|
|
9246
10803
|
function simplify(keys2) {
|
|
@@ -9291,18 +10848,18 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
9291
10848
|
const times = [passed.get(u), box ? arrivals.get(box) : void 0].filter((t) => t !== void 0);
|
|
9292
10849
|
return times.length > 0 ? Math.min(...times) : void 0;
|
|
9293
10850
|
};
|
|
9294
|
-
for (const p of layout.periods) if (p.index % 2 === 1) base.push(`<rect class="dg-tm-ep" x="${
|
|
10851
|
+
for (const p of layout.periods) if (p.index % 2 === 1) base.push(`<rect class="dg-tm-ep" x="${r14(p.x)}" y="${r14(rowsTop - T.shade)}" width="${r14(p.w)}" height="${r14(rowsBottom - rowsTop + T.shade * 2)}" rx="4"/>`);
|
|
9295
10852
|
if (layout.zoom) {
|
|
9296
10853
|
const z = layout.zoom;
|
|
9297
10854
|
z.columns.forEach((c, k) => {
|
|
9298
|
-
if (k > 0) base.push(`<line class="dg-tm-sep" x1="${
|
|
10855
|
+
if (k > 0) base.push(`<line class="dg-tm-sep" x1="${r14(c.x)}" y1="${r14(c.y + T.sep)}" x2="${r14(c.x)}" y2="${r14(c.y + c.h - T.sep)}"/>`);
|
|
9299
10856
|
base.push(write(ink, ja2("dg-tm-hd", c.head), c.x + c.w / 2, z.headY, c.head, TYPE.timeHead, ALWAYS, "middle"));
|
|
9300
10857
|
for (const box of c.boxes) node.push(columnBox(box, c.unit));
|
|
9301
10858
|
});
|
|
9302
10859
|
}
|
|
9303
10860
|
function columnBox(box, unit) {
|
|
9304
10861
|
const on = [...new Set(layout.wires.filter((w) => w.from === box || w.to === box).map((w) => w.step))].sort((a, b) => a - b);
|
|
9305
|
-
const frame = (cls) => `<rect class="${cls}" x="${
|
|
10862
|
+
const frame = (cls) => `<rect class="${cls}" x="${r14(box.x)}" y="${r14(box.y)}" width="${r14(box.w)}" height="${box.h}" rx="${LOOK.box.radius}"/>`;
|
|
9306
10863
|
if (box.empty) {
|
|
9307
10864
|
const shown2 = passed.get(unit);
|
|
9308
10865
|
const word = layout.zoom?.empty ?? "";
|
|
@@ -9318,11 +10875,11 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
9318
10875
|
for (const row of layout.rows) {
|
|
9319
10876
|
const parts = [];
|
|
9320
10877
|
for (const mark of layout.marks.filter((x2) => x2.row === row.id)) {
|
|
9321
|
-
const rect = (cls, extra = "") => `<rect class="${cls}" x="${
|
|
10878
|
+
const rect = (cls, extra = "") => `<rect class="${cls}" x="${r14(mark.x)}" y="${r14(mark.y)}" width="${r14(mark.w)}" height="${r14(mark.h)}" rx="${T.markRadius}"${extra}/>`;
|
|
9322
10879
|
parts.push(rect("dg-tm-slot"));
|
|
9323
10880
|
if (mark.empty) {
|
|
9324
10881
|
const shown2 = passed.get(mark.unit);
|
|
9325
|
-
if (shown2 !== void 0) parts.push(`<circle class="dg-tm-x dg-a" cx="${
|
|
10882
|
+
if (shown2 !== void 0) parts.push(`<circle class="dg-tm-x dg-a" cx="${r14(mark.x + mark.w / 2)}" cy="${r14(mark.y + mark.h / 2)}" r="${T.emptyR}" style="${m.vis(shown2, m.last, { f: 0.2 })}"/>`);
|
|
9326
10883
|
continue;
|
|
9327
10884
|
}
|
|
9328
10885
|
const shown = filled(row.id, mark.unit);
|
|
@@ -9342,13 +10899,13 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
9342
10899
|
const z = layout.zoom;
|
|
9343
10900
|
const hide = layout.spans.filter((s) => s.kind === "box" && s.from <= z.to && z.from <= s.to).map((s) => at2(s.step, s.event)).filter((t) => t !== void 0).sort((a, b) => a - b)[0];
|
|
9344
10901
|
const guides = z.guides.map((g) => `<path class="dg-tm-gd" d="${pathOf(g)}"/>`).join("");
|
|
9345
|
-
const lens = `<rect class="dg-tm-fr" x="${
|
|
10902
|
+
const lens = `<rect class="dg-tm-fr" x="${r14(z.frame.x)}" y="${r14(z.frame.y)}" width="${r14(z.frame.w)}" height="${r14(z.frame.h)}" rx="4"/>${guides}`;
|
|
9346
10903
|
base.push(hide === void 0 ? lens : `<g class="dg-a" style="${m.until(hide)}">${lens}</g>`);
|
|
9347
10904
|
}
|
|
9348
|
-
const x = (u) =>
|
|
9349
|
-
const majors = layout.ticks.map((t) => `M ${x(t.at)} ${
|
|
9350
|
-
const minors = layout.minor.map((u) => `M ${x(u)} ${
|
|
9351
|
-
base.push(`<path class="dg-tm-ax" d="M ${x(0)} ${
|
|
10905
|
+
const x = (u) => r14(axis.x + u * axis.unit);
|
|
10906
|
+
const majors = layout.ticks.map((t) => `M ${x(t.at)} ${r14(axis.line - T.major / 2)} V ${r14(axis.line + T.major / 2)}`);
|
|
10907
|
+
const minors = layout.minor.map((u) => `M ${x(u)} ${r14(axis.line - T.minor / 2)} V ${r14(axis.line + T.minor / 2)}`);
|
|
10908
|
+
base.push(`<path class="dg-tm-ax" d="M ${x(0)} ${r14(axis.line)} H ${x(axis.count)} ${[...majors, ...minors].join(" ")}"/>`);
|
|
9352
10909
|
for (const t of layout.ticks) base.push(write(ink, ja2("dg-tm-tk", t.text), t.left, t.y, t.text, TYPE.timeTick));
|
|
9353
10910
|
for (const p of layout.periods) {
|
|
9354
10911
|
base.push(write(ink, ja2("dg-tm-en", p.name), p.x + p.w / 2, p.nameY, p.name, TYPE.timePeriod, ALWAYS, "middle"));
|
|
@@ -9361,16 +10918,16 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
9361
10918
|
const shown = [[a, until ?? Number.POSITIVE_INFINITY]];
|
|
9362
10919
|
const vis = until === void 0 ? m.vis(a) : m.vis(a, until, { within: true });
|
|
9363
10920
|
if (span.kind === "bracket") {
|
|
9364
|
-
const [x0, x1, y0, y12] = [
|
|
10921
|
+
const [x0, x1, y0, y12] = [r14(span.x + 1), r14(span.x + span.w - 1), r14(span.y), r14(span.y + span.h)];
|
|
9365
10922
|
const words = write(ink, ja2("dg-tm-bt", span.text), span.textRect.x + span.textRect.w / 2, span.textY, span.text, TYPE.spanText, shown, "middle");
|
|
9366
10923
|
base.push(`<g class="dg-a" data-span="${span.step}" style="${cs(span.color)};${vis}"><path class="dg-tm-br" d="M ${x0} ${y0} L ${x0} ${y12} L ${x1} ${y12} L ${x1} ${y0}"/>${words}</g>`);
|
|
9367
10924
|
continue;
|
|
9368
10925
|
}
|
|
9369
|
-
base.push(`<g class="dg-a" data-span="${span.step}" style="${cs(span.color)};${vis}"><rect class="dg-tm-bx" x="${
|
|
10926
|
+
base.push(`<g class="dg-a" data-span="${span.step}" style="${cs(span.color)};${vis}"><rect class="dg-tm-bx" x="${r14(span.x)}" y="${r14(span.y)}" width="${r14(span.w)}" height="${r14(span.h)}" rx="6"/></g>`);
|
|
9370
10927
|
const tag = span.textRect;
|
|
9371
10928
|
ink.push({ text: span.text, rect: tag, shown, boxed: true });
|
|
9372
10929
|
top.push(
|
|
9373
|
-
`<g class="dg-tg dg-popc dg-a" style="${cs(span.color)};${until === void 0 ? m.pop(a) : m.pop(a, until)}"><rect x="${
|
|
10930
|
+
`<g class="dg-tg dg-popc dg-a" style="${cs(span.color)};${until === void 0 ? m.pop(a) : m.pop(a, until)}"><rect x="${r14(tag.x)}" y="${r14(tag.y)}" width="${r14(tag.w)}" height="${tag.h}" rx="${tag.h / 2}"/><text x="${r14(tag.x + tag.w / 2)}" y="${r14(span.textY)}" text-anchor="middle">${esc(span.text)}</text></g>`
|
|
9374
10931
|
);
|
|
9375
10932
|
}
|
|
9376
10933
|
const P = T.point;
|
|
@@ -9378,7 +10935,7 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
9378
10935
|
const { cx, cy, r } = point;
|
|
9379
10936
|
const times = point.changes.map((c) => at2(c.step, c.event) ?? Number.POSITIVE_INFINITY);
|
|
9380
10937
|
const first = times[0];
|
|
9381
|
-
base.push(`<path class="dg-tm-con" d="M ${
|
|
10938
|
+
base.push(`<path class="dg-tm-con" d="M ${r14(cx)} ${r14(rowsBottom + 3)} L ${r14(cx)} ${r14(cy - r - 2)}"/>`);
|
|
9382
10939
|
const tx = point.text.x;
|
|
9383
10940
|
const name = write(ink, ja2("dg-tm-pn", point.id), tx, cy + P.nameY, point.id, TYPE.pointName);
|
|
9384
10941
|
const grey = name.replace(/class="([^"]*)"/u, 'class="$1 dg-tm-pn-g"');
|
|
@@ -9394,9 +10951,9 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
9394
10951
|
const rings = point.changes.map((c, k) => {
|
|
9395
10952
|
const t = times[k];
|
|
9396
10953
|
if (!c.color || !Number.isFinite(t)) return "";
|
|
9397
|
-
return `<g class="dg-popc dg-a" style="${cs(c.color)};${m.pop(t)}"><circle class="dg-tm-pc" cx="${
|
|
10954
|
+
return `<g class="dg-popc dg-a" style="${cs(c.color)};${m.pop(t)}"><circle class="dg-tm-pc" cx="${r14(cx)}" cy="${r14(cy)}" r="${r + 0.5}"/>${glyph("flag", cx, cy, P.glyph, "dg-tm-pcg")}</g>`;
|
|
9398
10955
|
}).join("");
|
|
9399
|
-
node.push(`<g data-point="${esc(point.id)}"><circle class="dg-tm-pg" cx="${
|
|
10956
|
+
node.push(`<g data-point="${esc(point.id)}"><circle class="dg-tm-pg" cx="${r14(cx)}" cy="${r14(cy)}" r="${r}"/>${glyph("flag", cx, cy, P.glyph, "dg-tm-pgl")}${rings}${label2}${states}</g>`);
|
|
9400
10957
|
}
|
|
9401
10958
|
const wired = new Set(layout.wires.map((w) => `${w.step}/${w.event}`));
|
|
9402
10959
|
for (const e of layout.edges) {
|
|
@@ -9428,7 +10985,7 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
9428
10985
|
const { y1, y2 } = layout.needle;
|
|
9429
10986
|
const N = T.needle;
|
|
9430
10987
|
top.push(
|
|
9431
|
-
`<g class="dg-a" data-needle="" style="${m.move(path2)}"><line class="dg-tm-nd" x1="0" y1="${
|
|
10988
|
+
`<g class="dg-a" data-needle="" style="${m.move(path2)}"><line class="dg-tm-nd" x1="0" y1="${r14(y1)}" x2="0" y2="${r14(y2)}"/><path class="dg-tm-nh" d="M ${ -6 * 0.75} ${r14(y1 - N.head)} L ${N.head * 0.75} ${r14(y1 - N.head)} L 0 ${r14(y1)} Z"/><circle class="dg-tm-nh" cy="${r14(axis.line)}" r="${N.dot}"/></g>`
|
|
9432
10989
|
);
|
|
9433
10990
|
return { base: base.join(""), lit: lit.join(""), node: node.join(""), top: top.join("") };
|
|
9434
10991
|
}
|
|
@@ -9438,12 +10995,12 @@ function meterField(field, keys2, ctx) {
|
|
|
9438
10995
|
const { x, w, line, text: text2 } = field.meter;
|
|
9439
10996
|
const y = field.y + M.y;
|
|
9440
10997
|
const kf = m.kf([
|
|
9441
|
-
...simplify(keys2).map(([t, v]) => [t, { transform: `scaleX(${
|
|
9442
|
-
[m.last, { transform: `scaleX(${
|
|
10998
|
+
...simplify(keys2).map(([t, v]) => [t, { transform: `scaleX(${r14(v * 1e3) / 1e3})` }]),
|
|
10999
|
+
[m.last, { transform: `scaleX(${r14(valueAt(keys2, m.last) * 1e3) / 1e3})` }, EASE.inOut],
|
|
9443
11000
|
[m.total, { transform: "scaleX(0)" }]
|
|
9444
11001
|
]);
|
|
9445
11002
|
const lx = x + w * line;
|
|
9446
|
-
return `<rect class="dg-tm-mt" x="${
|
|
11003
|
+
return `<rect class="dg-tm-mt" x="${r14(x)}" y="${r14(y)}" width="${r14(w)}" height="${M.h}" rx="${M.h / 2}"/><rect class="dg-tm-mf dg-a" x="${r14(x)}" y="${r14(y)}" width="${r14(w)}" height="${M.h}" rx="${M.h / 2}" style="${cs(M.color)};${kf}"/><line class="dg-tm-mk" x1="${r14(lx)}" y1="${r14(y - M.mark)}" x2="${r14(lx)}" y2="${r14(y + M.h + M.mark)}"/>` + write(ctx.ink, "dg-tm-ml", lx, field.y + M.textY, text2, TYPE.meterLine, ALWAYS, "middle");
|
|
9447
11004
|
}
|
|
9448
11005
|
function timeFocus(layout, timeline, step, parts, vw, vh) {
|
|
9449
11006
|
const span = timeline.steps[step];
|
|
@@ -9465,7 +11022,7 @@ function timeFocus(layout, timeline, step, parts, vw, vh) {
|
|
|
9465
11022
|
}
|
|
9466
11023
|
|
|
9467
11024
|
// src/render/tree.ts
|
|
9468
|
-
var
|
|
11025
|
+
var r15 = (v) => Math.round(v * 100) / 100;
|
|
9469
11026
|
function drawTree(layout, diagram, timeline, ctx) {
|
|
9470
11027
|
const { m } = ctx;
|
|
9471
11028
|
const T = LOOK.tree;
|
|
@@ -9524,7 +11081,7 @@ function drawTree(layout, diagram, timeline, ctx) {
|
|
|
9524
11081
|
const ties = layout.nodes.flatMap((n) => {
|
|
9525
11082
|
if (!n.card) return [];
|
|
9526
11083
|
const at2 = drawnAt.get(n.id) ?? 0;
|
|
9527
|
-
const d = `M ${
|
|
11084
|
+
const d = `M ${r15(n.cx)} ${r15(n.y + n.h + LOOK.edge.inset)} V ${r15(n.card.y - LOOK.edge.inset)}`;
|
|
9528
11085
|
return [faded(n.id, `<path class="dg-tree-con dg-a" d="${d}" style="${m.vis(at2)}"/>`)];
|
|
9529
11086
|
}).join("");
|
|
9530
11087
|
const traced = /* @__PURE__ */ new Set();
|
|
@@ -9559,7 +11116,7 @@ function drawTree(layout, diagram, timeline, ctx) {
|
|
|
9559
11116
|
return [
|
|
9560
11117
|
faded(
|
|
9561
11118
|
n.id,
|
|
9562
|
-
`<rect class="dg-tree-card" x="${
|
|
11119
|
+
`<rect class="dg-tree-card" x="${r15(c.x)}" y="${r15(c.y)}" width="${r15(c.w)}" height="${c.h}" rx="${T.card.radius}"/>${glyph("doc", gx, cy, T.card.glyph, "dg-tree-cg")}${text2}`,
|
|
9563
11120
|
` data-tree-card="${esc(n.id)}"`
|
|
9564
11121
|
)
|
|
9565
11122
|
];
|
|
@@ -9569,10 +11126,10 @@ function drawTree(layout, diagram, timeline, ctx) {
|
|
|
9569
11126
|
const on = [...active.get(n.id) ?? []].sort((x, y) => x - y);
|
|
9570
11127
|
const act = on.length > 0 ? activeKf(ctx, on) : void 0;
|
|
9571
11128
|
const radius = n.root ? T.root.radius : T.radius;
|
|
9572
|
-
const rect = (cls, extra = "") => `<rect class="${cls}" x="${
|
|
11129
|
+
const rect = (cls, extra = "") => `<rect class="${cls}" x="${r15(n.x)}" y="${r15(n.y)}" width="${r15(n.w)}" height="${n.h}" rx="${radius}"${extra}/>`;
|
|
9573
11130
|
const frame = `${act ? `<g class="dg-a" style="${act}">${rect("dg-halo")}</g>` : ""}${rect("dg-st", ` ${ctx.sh}`)}${act ? `<g class="dg-a" style="${act}">${rect("dg-on")}</g>` : ""}`;
|
|
9574
11131
|
const ix = n.x + T.root.iconX + B.icon / 2;
|
|
9575
|
-
const mark = n.root ? `<rect class="dg-ic" x="${
|
|
11132
|
+
const mark = n.root ? `<rect class="dg-ic" x="${r15(ix - B.icon / 2)}" y="${r15(n.cy - B.icon / 2)}" width="${B.icon}" height="${B.icon}" rx="${B.iconRadius}"/>${glyph("tree", ix, n.cy, B.iconScale)}` : "";
|
|
9576
11133
|
const shown = [[at2, Number.POSITIVE_INFINITY]];
|
|
9577
11134
|
const texts = n.lines.map((line, k) => {
|
|
9578
11135
|
const style = n.styles[k] ?? TYPE.boxName;
|
|
@@ -9583,7 +11140,7 @@ function drawTree(layout, diagram, timeline, ctx) {
|
|
|
9583
11140
|
const inner = faded(n.id, `${frame}${mark}${texts}`, ` data-tree-node="${esc(n.id)}"${n.root ? ` data-tree-root="${esc(n.id)}"` : ""}`);
|
|
9584
11141
|
return `<g class="dg-popc dg-a" style="${cs(n.color)};${m.pop(at2)}">${inner}</g>`;
|
|
9585
11142
|
}).join("");
|
|
9586
|
-
return { links: links + ties, trails, nodes: cards + nodes };
|
|
11143
|
+
return { links: links + ties, trails, nodes: cards + nodes, appear: drawnAt };
|
|
9587
11144
|
}
|
|
9588
11145
|
|
|
9589
11146
|
// src/render/motion.ts
|
|
@@ -9777,6 +11334,16 @@ var PART_CSS = [
|
|
|
9777
11334
|
`.dg-tree-one{${font(TYPE.boxName)};fill:var(--ink)}`,
|
|
9778
11335
|
`.dg-tree-rh{${font(TYPE.rootHash)};fill:var(--ink)}`,
|
|
9779
11336
|
`.dg-tree-rn{${font(TYPE.rootName)};fill:var(--mute)}`,
|
|
11337
|
+
// 列の図 (#3239)。封は列の左端から右へ伸びる
|
|
11338
|
+
".dg-ln-chip{fill:var(--c)}",
|
|
11339
|
+
`.dg-ln-plain{fill:color-mix(in srgb,var(--mute) ${X.chipPlain}%,var(--surf))}`,
|
|
11340
|
+
`.dg-ln-t{${font(TYPE.chip)};fill:var(--on-c)}`,
|
|
11341
|
+
`.dg-ln-tp{${font(TYPE.chip)};fill:var(--ink)}`,
|
|
11342
|
+
".dg-ln-seal{transform-box:fill-box;transform-origin:0 50%}",
|
|
11343
|
+
`.dg-ln-sd{fill:color-mix(in srgb,var(--mute) ${X.sealDark}%,var(--surf))}`,
|
|
11344
|
+
`.dg-ln-sl{fill:color-mix(in srgb,var(--mute) ${X.sealLight}%,var(--surf))}`,
|
|
11345
|
+
`.dg-ln-stamp{fill:var(--surf);stroke:var(--c);stroke-width:${S.stamp}}`,
|
|
11346
|
+
`.dg-ln-st{${font(TYPE.stamp)};fill:var(--ct)}`,
|
|
9780
11347
|
// 時間軸の図 (#3165)。和文を含む字は、末尾に j を付けた class で同じ大きさと太さの和文の字にする
|
|
9781
11348
|
`.dg-tm-ep{fill:color-mix(in srgb,var(--ink) ${X.timeShade}%,transparent)}`,
|
|
9782
11349
|
`.dg-tm-sep{stroke:var(--hair);stroke-width:${S.hair};stroke-dasharray:2 4}`,
|
|
@@ -9915,7 +11482,7 @@ function drawSvg(diagram, layout, timeline, palette, theme, follow, ink = [], tr
|
|
|
9915
11482
|
const vars = paletteVars(palette, theme);
|
|
9916
11483
|
const id = nameOf(`${JSON.stringify(diagram)}|${vars}|${follow ? `${follow.width}|${follow.lang}` : ""}`);
|
|
9917
11484
|
const m = new Motion(`dg${id}`, timeline.total, timeline.last);
|
|
9918
|
-
const ctx = { m, t: timeline, sh: `filter="url(#dg-sh-${id})"`, end: timeline.steps[timeline.steps.length - 1].end, ink, traces };
|
|
11485
|
+
const ctx = { m, t: timeline, id, sh: `filter="url(#dg-sh-${id})"`, end: timeline.steps[timeline.steps.length - 1].end, ink, traces };
|
|
9919
11486
|
const on = involved(diagram);
|
|
9920
11487
|
const subs = subChanges(diagram, timeline, layout.kind !== "sequence");
|
|
9921
11488
|
const L = { band: [], base: [], lit: [], node: [], badge: [], top: [] };
|
|
@@ -9939,13 +11506,19 @@ function drawSvg(diagram, layout, timeline, palette, theme, follow, ink = [], tr
|
|
|
9939
11506
|
L.top.push(git.tags);
|
|
9940
11507
|
}
|
|
9941
11508
|
const treeLayout = isTreeLayout(layout) ? layout : void 0;
|
|
9942
|
-
|
|
9943
|
-
|
|
11509
|
+
const tree = treeLayout ? drawTree(treeLayout, diagram, timeline, ctx) : void 0;
|
|
11510
|
+
if (tree) {
|
|
9944
11511
|
L.base.push(tree.links);
|
|
9945
11512
|
L.lit.push(tree.trails);
|
|
9946
11513
|
L.node.push(tree.nodes);
|
|
9947
11514
|
}
|
|
9948
11515
|
const runs = new Set((treeLayout?.runs ?? []).map((r) => `${r.step}/${r.event}`));
|
|
11516
|
+
const lineupLayout = isLineupLayout(layout) ? layout : void 0;
|
|
11517
|
+
if (lineupLayout) {
|
|
11518
|
+
const lineup = drawLineup(lineupLayout, diagram, timeline, ctx, subs);
|
|
11519
|
+
L.base.push(lineup.lanes);
|
|
11520
|
+
L.node.push(lineup.chips);
|
|
11521
|
+
}
|
|
9949
11522
|
const timeLayout = isTimeLayout(layout) ? layout : void 0;
|
|
9950
11523
|
if (timeLayout) {
|
|
9951
11524
|
const drawn = drawTime(timeLayout, diagram, timeline, ctx, subs);
|
|
@@ -9958,14 +11531,15 @@ function drawSvg(diagram, layout, timeline, palette, theme, follow, ink = [], tr
|
|
|
9958
11531
|
for (const e of layout.edges) {
|
|
9959
11532
|
const time = timeline.edges.find((t) => t.step === e.step && t.event === e.event);
|
|
9960
11533
|
if (!time || timeLayout && !wired.has(`${e.step}/${e.event}`) || runs.has(`${e.step}/${e.event}`)) continue;
|
|
9961
|
-
const
|
|
11534
|
+
const since = Math.max(tree?.appear.get(e.from) ?? 0, tree?.appear.get(e.to) ?? 0);
|
|
11535
|
+
const drawn = edge(e, time, ctx, isState, since);
|
|
9962
11536
|
L.base.push(drawn.base);
|
|
9963
11537
|
L.lit.push(drawn.lit);
|
|
9964
11538
|
}
|
|
9965
11539
|
const states = new Map((timeline.states ?? []).map((s) => [s.box, s]));
|
|
9966
11540
|
const links = new Map(diagram.boxes.flatMap((b) => b.link === void 0 ? [] : [[b.id, b.link]]));
|
|
9967
11541
|
const linked = (id2, markup) => linkTo(links.get(id2), markup);
|
|
9968
|
-
for (const box of timeLayout ? [] : layout.boxes) {
|
|
11542
|
+
for (const box of timeLayout || lineupLayout ? [] : layout.boxes) {
|
|
9969
11543
|
if (box.ghost) {
|
|
9970
11544
|
L.node.push(linked(box.id, ghostCard(box, ink)));
|
|
9971
11545
|
continue;
|
|
@@ -10035,6 +11609,10 @@ function focusParts(layout, diagram, step) {
|
|
|
10035
11609
|
rects.push({ x: Math.min(...xs), y: Math.min(...ys), w: Math.max(...xs) - Math.min(...xs), h: Math.max(...ys) - Math.min(...ys) });
|
|
10036
11610
|
}
|
|
10037
11611
|
}
|
|
11612
|
+
if (isLineupLayout(layout)) {
|
|
11613
|
+
const changed = new Set((diagram.steps[step]?.events ?? []).flatMap((e) => "box" in e ? [e.box] : []));
|
|
11614
|
+
rects.push(...layout.lanes.filter((lane) => changed.has(lane.id)));
|
|
11615
|
+
}
|
|
10038
11616
|
for (const event of diagram.steps[step]?.events ?? []) {
|
|
10039
11617
|
const ids = event.type === "edge" ? [event.from, event.to] : event.type === "action" || event.type === "swap" ? [event.box] : [];
|
|
10040
11618
|
for (const id of ids) {
|
|
@@ -10134,7 +11712,7 @@ function renderDiagram(input, options = {}) {
|
|
|
10134
11712
|
const read2 = readDiagram(input, { lang });
|
|
10135
11713
|
if (!read2.ok) throw new Error(FIGURE_TEXT[lang].cannotDraw(read2.errors.map((e) => `${e.pointer} ${e.message}`).join(" / ")));
|
|
10136
11714
|
const diagram = read2.diagram;
|
|
10137
|
-
const layout = diagram.kind === "sequence" ? layoutSequence(diagram) : diagram.kind === "state" ? layoutState(diagram, lang) : diagram.kind === "git" ? layoutGit(diagram) : diagram.kind === "time" ? layoutTime(diagram, lang) : diagram.kind === "tree" ? layoutTree(diagram) : layoutArchitecture(diagram);
|
|
11715
|
+
const layout = diagram.kind === "sequence" ? layoutSequence(diagram) : diagram.kind === "state" ? layoutState(diagram, lang) : diagram.kind === "git" ? layoutGit(diagram) : diagram.kind === "time" ? layoutTime(diagram, lang) : diagram.kind === "tree" ? layoutTree(diagram) : diagram.kind === "lineup" ? layoutLineup(diagram) : layoutArchitecture(diagram);
|
|
10138
11716
|
return renderLayout(diagram, layout, buildTimeline(diagram, options.still === true), options);
|
|
10139
11717
|
}
|
|
10140
11718
|
function renderLayout(diagram, layout, timeline, options = {}) {
|
|
@@ -10619,6 +12197,22 @@ var ja3 = () => {
|
|
|
10619
12197
|
notTreeBox: (id) => `${id} \u306F box \u306E\u884C\u3067\u7F6E\u3044\u305F\u7BB1\u3067\u3001\u6728\u306E\u7BB1\u3067\u306A\u3044\u3002\u5B50\u306F leaf \u304B node \u3067\u66F8\u3044\u305F\u540D\u672D\u306B\u3059\u308B`,
|
|
10620
12198
|
twoParents: (id) => `${id} \u306F\u3082\u3046\u5225\u306E\u89AA\u306E\u5B50\u306B\u306A\u3063\u3066\u3044\u308B\u3002\u6728\u306E\u7BB1\u306E\u89AA\u306F 1 \u3064\u3060\u3051`,
|
|
10621
12199
|
manyRoots: (id, root) => `${id} \u304C\u89AA\u3092\u6301\u305F\u306A\u3044\u307E\u307E\u6B8B\u308B\u3002\u6728\u306E\u6839\u306F 1 \u3064\u3060\u3051\u3067\u3001${id} \u3082 ${root} \u3082\u6700\u5F8C\u306B 1 \u3064\u306E\u6839\u3078\u7D44\u3080`,
|
|
12200
|
+
lineupOnly: (word) => `${word} \u306E\u884C\u306F lineup (\u5217\u306E\u56F3) \u3067\u3060\u3051\u66F8\u3051\u308B`,
|
|
12201
|
+
lineupNoGroup: "lineup (\u5217\u306E\u56F3) \u306B\u306F group \u3092\u66F8\u3051\u306A\u3044\u3002\u5217\u306F box \u306E\u884C\u3067\u5BA3\u8A00\u3059\u308B",
|
|
12202
|
+
lineupNoEdge: "lineup (\u5217\u306E\u56F3) \u306B\u306F\u7DDA\u306E\u884C\u3092\u66F8\u3051\u306A\u3044\u3002\u30C1\u30C3\u30D7\u306F line \u306E\u884C\u3067\u5217\u306E\u4E26\u3073\u3092\u66F8\u304F\u3068\u52D5\u304F",
|
|
12203
|
+
lineupNoAct: "lineup (\u5217\u306E\u56F3) \u306B\u306F act \u306E\u884C\u3092\u66F8\u3051\u306A\u3044\u3002\u5217\u306E\u53F3\u4E0A\u306E\u5B57\u306F note \u306E\u884C\u3067\u66F8\u304D\u63DB\u3048\u308B",
|
|
12204
|
+
noItems: "item \u306E\u884C\u3067\u30C1\u30C3\u30D7\u3092 1 \u3064\u4EE5\u4E0A\u5BA3\u8A00\u3059\u308B",
|
|
12205
|
+
itemShape: "item \u306F item <\u540D\u672D>, <\u540D\u672D> [color: <\u8272>, label: <\u5B57>] \u306E\u5F62\u3067\u66F8\u304F",
|
|
12206
|
+
lineShape: "line \u306F line <\u5217>: <\u30C1\u30C3\u30D7>, <\u30C1\u30C3\u30D7> \u306E\u5F62\u3067\u66F8\u304F",
|
|
12207
|
+
laneShape: (word) => `${word} \u306F ${word} <\u5217> \u306E\u5F62\u3067\u66F8\u304F`,
|
|
12208
|
+
stampShape: "stamp \u306F stamp <\u5217>: <\u5B57> \u306E\u5F62\u3067\u66F8\u304F",
|
|
12209
|
+
labelTooLong: (limit) => `label \u306F ${limit} \u5B57\u307E\u3067\u306B\u3059\u308B`,
|
|
12210
|
+
noSuchItem: (id) => `${id} \u3068\u3044\u3046\u30C1\u30C3\u30D7\u306F\u5BA3\u8A00\u3057\u3066\u3044\u306A\u3044`,
|
|
12211
|
+
itemTwice: (id) => `${id} \u306F\u3053\u306E\u884C\u306B 2 \u5EA6\u66F8\u3044\u3066\u3044\u308B\u3002\u540C\u3058\u5217\u306B\u540C\u3058\u30C1\u30C3\u30D7\u306F 1 \u679A\u3060\u3051`,
|
|
12212
|
+
laneFull: (lane, limit) => `${lane} \u306E\u5217\u306B\u4E26\u3079\u3089\u308C\u308B\u30C1\u30C3\u30D7\u306F ${limit} \u679A\u307E\u3067`,
|
|
12213
|
+
lineOnSealed: (lane) => `${lane} \u306E\u5217\u306F\u5C01\u3092\u3057\u3066\u3044\u308B\u306E\u3067\u4E26\u3073\u3092\u66F8\u3051\u306A\u3044\u3002\u5148\u306B open \u3067\u958B\u3051\u308B`,
|
|
12214
|
+
sealTwice: (lane) => `${lane} \u306E\u5217\u306B\u306F\u3082\u3046\u5C01\u3092\u3057\u3066\u3044\u308B`,
|
|
12215
|
+
openUnsealed: (lane) => `${lane} \u306E\u5217\u306B\u306F\u5C01\u3092\u3057\u3066\u3044\u306A\u3044`,
|
|
10622
12216
|
timeTwice: (word) => `${word} \u306F 1 \u3064\u3060\u3051\u5BA3\u8A00\u3059\u308B`,
|
|
10623
12217
|
noScale: "scale \u306E\u884C\u3067\u76EE\u76DB\u308A\u3092\u5BA3\u8A00\u3059\u308B",
|
|
10624
12218
|
noRows: "row \u306E\u884C\u3067\u5370\u306E\u5217\u3092 1 \u3064\u4EE5\u4E0A\u5BA3\u8A00\u3059\u308B",
|
|
@@ -10741,6 +12335,22 @@ var en2 = () => {
|
|
|
10741
12335
|
notTreeBox: (id) => `${id} is a box from a box line, not a tree box. A child must be an id written with leaf or node`,
|
|
10742
12336
|
twoParents: (id) => `${id} is already a child of another node. A tree box has only one parent`,
|
|
10743
12337
|
manyRoots: (id, root) => `${id} is left without a parent. A tree has one root, so join ${id} and ${root} under one root by the end`,
|
|
12338
|
+
lineupOnly: (word) => `${word} lines can be written only in lineup diagrams`,
|
|
12339
|
+
lineupNoGroup: "A lineup diagram takes no group. Declare the lanes with box lines",
|
|
12340
|
+
lineupNoEdge: "A lineup diagram takes no edge lines. Chips move when a line line rewrites a lane",
|
|
12341
|
+
lineupNoAct: "A lineup diagram takes no act lines. Rewrite the text at the top right of a lane with a note line",
|
|
12342
|
+
noItems: "Declare at least one chip with an item line",
|
|
12343
|
+
itemShape: "Write an item as item <id>, <id> [color: <color>, label: <text>]",
|
|
12344
|
+
lineShape: "Write a line as line <lane>: <chip>, <chip>",
|
|
12345
|
+
laneShape: (word) => `Write ${word} as ${word} <lane>`,
|
|
12346
|
+
stampShape: "Write a stamp as stamp <lane>: <text>",
|
|
12347
|
+
labelTooLong: (limit) => `A label is at most ${limit} characters`,
|
|
12348
|
+
noSuchItem: (id) => `The chip ${id} is not declared`,
|
|
12349
|
+
itemTwice: (id) => `${id} is written twice on this line. A lane holds one of each chip`,
|
|
12350
|
+
laneFull: (lane, limit) => `The lane ${lane} holds at most ${limit} chips`,
|
|
12351
|
+
lineOnSealed: (lane) => `The lane ${lane} is sealed, so its order cannot be written. Open it first`,
|
|
12352
|
+
sealTwice: (lane) => `The lane ${lane} is already sealed`,
|
|
12353
|
+
openUnsealed: (lane) => `The lane ${lane} is not sealed`,
|
|
10744
12354
|
timeTwice: (word) => `Declare only one ${word}`,
|
|
10745
12355
|
noScale: "Declare the scale with a scale line",
|
|
10746
12356
|
noRows: "Declare at least one row with a row line",
|
|
@@ -10803,6 +12413,9 @@ var COMMIT = new RegExp(`^commit\\s+([^\\s[]+)(?:\\s+${ON}\\s+([^\\s[]+))?(?:\\s
|
|
|
10803
12413
|
var CUT = new RegExp(`^([^\\s[]+)\\s+${FROM}(?:\\s+([^\\s[]+))?\\s*$`, "du");
|
|
10804
12414
|
var LEAF = /^leaf\s+([^\s[]+)/du;
|
|
10805
12415
|
var NODE = new RegExp(`^node\\s+([^\\s[]+)\\s+${OF}\\s+`, "du");
|
|
12416
|
+
var ORDER = /^line\s+([^\s:[]+)\s*:/du;
|
|
12417
|
+
var STAMP = /^stamp\s+([^\s:[]+)\s*:/du;
|
|
12418
|
+
var ON_LANE = /^(?:seal|open|pick)\s+(\S+)\s*$/du;
|
|
10806
12419
|
var HASH = /^[0-9a-f]{4,40}$/u;
|
|
10807
12420
|
var URL_FORM = /^(\/|https?:\/\/)/u;
|
|
10808
12421
|
var SCALE2 = /^scale\s+(\S+)\s+(\S+)\s+([^\s[]+)/du;
|
|
@@ -10969,6 +12582,9 @@ function parseLines(lines, m) {
|
|
|
10969
12582
|
const isGit = kind === "git";
|
|
10970
12583
|
const isTime = kind === "time";
|
|
10971
12584
|
const isTree = kind === "tree";
|
|
12585
|
+
const isLineup = kind === "lineup";
|
|
12586
|
+
const items = [];
|
|
12587
|
+
const sealed = /* @__PURE__ */ new Set();
|
|
10972
12588
|
const trees = /* @__PURE__ */ new Map();
|
|
10973
12589
|
const parents = /* @__PURE__ */ new Map();
|
|
10974
12590
|
let scale;
|
|
@@ -11057,6 +12673,7 @@ function parseLines(lines, m) {
|
|
|
11057
12673
|
}
|
|
11058
12674
|
const edge2 = EDGE.exec(text2);
|
|
11059
12675
|
if (edge2) {
|
|
12676
|
+
if (isLineup) throw fail(source, 0, m.lineupNoEdge);
|
|
11060
12677
|
if (isState && !building) paths.push(readPath(source, edge2));
|
|
11061
12678
|
else inStep(source).events.push(readEdge(source, edge2));
|
|
11062
12679
|
continue;
|
|
@@ -11070,6 +12687,7 @@ function parseLines(lines, m) {
|
|
|
11070
12687
|
if (!isGit && (word === "branch" || word === "commit")) throw fail(source, 0, m.gitOnly(word));
|
|
11071
12688
|
if (!isTime && isOneOf(TIME_HEADS, word)) throw fail(source, 0, m.timeOnly(word));
|
|
11072
12689
|
if (!isTree && isOneOf(TREE_HEADS, word)) throw fail(source, 0, m.treeOnly(word));
|
|
12690
|
+
if (!isLineup && isOneOf(LINEUP_HEADS, word)) throw fail(source, 0, m.lineupOnly(word));
|
|
11073
12691
|
if (!isOneOf(HEADS, word)) {
|
|
11074
12692
|
const old = oldForm(text2, building !== void 0);
|
|
11075
12693
|
throw fail(source, 0, old ? m.oldForm(old.word, old.shape) : m.unknownHead(word));
|
|
@@ -11113,6 +12731,7 @@ function parseLines(lines, m) {
|
|
|
11113
12731
|
inStep(source).sources.push(readSource(source));
|
|
11114
12732
|
break;
|
|
11115
12733
|
case "act": {
|
|
12734
|
+
if (isLineup) throw fail(source, 0, m.lineupNoAct);
|
|
11116
12735
|
const step = inStep(source);
|
|
11117
12736
|
const on = readOnBox(source, word, m.actShape);
|
|
11118
12737
|
step.events.push({ type: "action", box: on.box, label: on.text });
|
|
@@ -11170,6 +12789,26 @@ function parseLines(lines, m) {
|
|
|
11170
12789
|
step.events.push(readNode(source));
|
|
11171
12790
|
break;
|
|
11172
12791
|
}
|
|
12792
|
+
case "item":
|
|
12793
|
+
readItem(source);
|
|
12794
|
+
break;
|
|
12795
|
+
case "line": {
|
|
12796
|
+
const step = inStep(source);
|
|
12797
|
+
step.events.push(readOrder(source));
|
|
12798
|
+
break;
|
|
12799
|
+
}
|
|
12800
|
+
case "seal":
|
|
12801
|
+
case "open":
|
|
12802
|
+
case "pick": {
|
|
12803
|
+
const step = inStep(source);
|
|
12804
|
+
step.events.push(readOnLane(source, word));
|
|
12805
|
+
break;
|
|
12806
|
+
}
|
|
12807
|
+
case "stamp": {
|
|
12808
|
+
const step = inStep(source);
|
|
12809
|
+
step.events.push(readStamp(source));
|
|
12810
|
+
break;
|
|
12811
|
+
}
|
|
11173
12812
|
}
|
|
11174
12813
|
}
|
|
11175
12814
|
if (group) throw fail(group.source, 0, m.unclosedGroup(group.id));
|
|
@@ -11177,6 +12816,7 @@ function parseLines(lines, m) {
|
|
|
11177
12816
|
finish();
|
|
11178
12817
|
if (isGit && branches.length === 0) throw fail(head, 0, m.noBranches);
|
|
11179
12818
|
if (isTree && trees.size === 0) throw fail(head, 0, m.noLeaves);
|
|
12819
|
+
if (isLineup && items.length === 0) throw fail(head, 0, m.noItems);
|
|
11180
12820
|
if (boxes.length === 0 && !isGit && !isTime && !isTree) throw fail(head, 0, m.noBoxes);
|
|
11181
12821
|
if (steps.length === 0) throw fail(head, 0, m.noSteps);
|
|
11182
12822
|
const roots = [...trees.keys()].filter((id) => !parents.has(id));
|
|
@@ -11195,6 +12835,7 @@ function parseLines(lines, m) {
|
|
|
11195
12835
|
...kind === "sequence" ? { sequence: { lifelines: boxes.map((box) => box.id) } } : {},
|
|
11196
12836
|
...paths.length > 0 ? { state: { paths } } : {},
|
|
11197
12837
|
...isGit ? { git: { branches } } : {},
|
|
12838
|
+
...isLineup ? { lineup: { items } } : {},
|
|
11198
12839
|
...isTime && scale ? {
|
|
11199
12840
|
time: {
|
|
11200
12841
|
scale,
|
|
@@ -11364,6 +13005,7 @@ function parseLines(lines, m) {
|
|
|
11364
13005
|
beforeSteps(source);
|
|
11365
13006
|
if (isGit) throw fail(source, 0, m.gitNoGroup);
|
|
11366
13007
|
if (isTree) throw fail(source, 0, m.treeNoGroup);
|
|
13008
|
+
if (isLineup) throw fail(source, 0, m.lineupNoGroup);
|
|
11367
13009
|
if (group) throw fail(source, 0, m.nestedGroup);
|
|
11368
13010
|
const declared = readDeclared(source, "group", ATTRS.group, m);
|
|
11369
13011
|
if (regions.some((region) => region.id === declared.id)) {
|
|
@@ -11377,7 +13019,7 @@ function parseLines(lines, m) {
|
|
|
11377
13019
|
}
|
|
11378
13020
|
function readBox(source) {
|
|
11379
13021
|
beforeSteps(source);
|
|
11380
|
-
const declared = readDeclared(source, "box", ATTRS.box, m);
|
|
13022
|
+
const declared = readDeclared(source, "box", isLineup ? LANE_ATTRS : ATTRS.box, m);
|
|
11381
13023
|
notReserved(source, declared.id, declared.idAt);
|
|
11382
13024
|
declare(source, declared.id, declared.idAt);
|
|
11383
13025
|
firstBox ??= source;
|
|
@@ -11505,6 +13147,74 @@ function parseLines(lines, m) {
|
|
|
11505
13147
|
if (hash && !HASH.test(hash.value)) throw fail(source, hash.at, m.badHash);
|
|
11506
13148
|
return hash?.value;
|
|
11507
13149
|
}
|
|
13150
|
+
function namesAt(source, from, to, shape) {
|
|
13151
|
+
const text2 = source.text;
|
|
13152
|
+
const names = [];
|
|
13153
|
+
for (let i = from; ; ) {
|
|
13154
|
+
const start = skipSpaces(text2, i);
|
|
13155
|
+
const comma = text2.indexOf(",", start);
|
|
13156
|
+
const end = comma < 0 || comma > to ? to : comma;
|
|
13157
|
+
const value = text2.slice(start, end).trim();
|
|
13158
|
+
if (value === "") throw fail(source, start, shape);
|
|
13159
|
+
if (!ID.test(value)) throw fail(source, start, m.badId(value));
|
|
13160
|
+
names.push({ value, at: start });
|
|
13161
|
+
if (end >= to) return names;
|
|
13162
|
+
i = end + 1;
|
|
13163
|
+
}
|
|
13164
|
+
}
|
|
13165
|
+
function readItem(source) {
|
|
13166
|
+
beforeSteps(source);
|
|
13167
|
+
const open = source.text.indexOf("[");
|
|
13168
|
+
const end = open < 0 ? source.text.length : open;
|
|
13169
|
+
const attrs = open < 0 ? /* @__PURE__ */ new Map() : readAttrs(source, open, ATTRS.item, m);
|
|
13170
|
+
const color = attrs.get("color");
|
|
13171
|
+
if (color && !isOneOf(COLORS, color.value)) throw fail(source, color.at, m.badColor);
|
|
13172
|
+
const label2 = attrs.get("label");
|
|
13173
|
+
if (label2 && [...label2.value].length > LABEL_MOST) throw fail(source, label2.at, m.labelTooLong(LABEL_MOST));
|
|
13174
|
+
for (const { value, at: at2 } of namesAt(source, "item".length, end, m.itemShape)) {
|
|
13175
|
+
declare(source, value, at2);
|
|
13176
|
+
items.push({ id: value, ...color ? { color: color.value } : {}, ...label2 ? { label: label2.value } : {} });
|
|
13177
|
+
}
|
|
13178
|
+
}
|
|
13179
|
+
function readOrder(source) {
|
|
13180
|
+
const found = ORDER.exec(source.text);
|
|
13181
|
+
const lane = found?.[1];
|
|
13182
|
+
if (!found || lane === void 0) throw fail(source, 0, m.lineShape);
|
|
13183
|
+
const at2 = found.indices?.[1]?.[0] ?? 0;
|
|
13184
|
+
const box = boxAt(source, lane, at2);
|
|
13185
|
+
if (sealed.has(box)) throw fail(source, at2, m.lineOnSealed(box));
|
|
13186
|
+
const chips = namesAt(source, found[0].length, source.text.length, m.lineShape);
|
|
13187
|
+
const seen = /* @__PURE__ */ new Set();
|
|
13188
|
+
chips.forEach(({ value, at: chipAt }, k) => {
|
|
13189
|
+
if (!items.some((item) => item.id === value)) throw fail(source, chipAt, m.noSuchItem(value));
|
|
13190
|
+
if (seen.has(value)) throw fail(source, chipAt, m.itemTwice(value));
|
|
13191
|
+
if (k >= LANE_MOST) throw fail(source, chipAt, m.laneFull(box, LANE_MOST));
|
|
13192
|
+
seen.add(value);
|
|
13193
|
+
});
|
|
13194
|
+
return { type: "line", box, items: chips.map((chip) => chip.value) };
|
|
13195
|
+
}
|
|
13196
|
+
function readOnLane(source, word) {
|
|
13197
|
+
const found = ON_LANE.exec(source.text);
|
|
13198
|
+
const lane = found?.[1];
|
|
13199
|
+
if (!found || lane === void 0) throw fail(source, 0, m.laneShape(word));
|
|
13200
|
+
const at2 = found.indices?.[1]?.[0] ?? 0;
|
|
13201
|
+
const box = boxAt(source, lane, at2);
|
|
13202
|
+
if (word === "seal") {
|
|
13203
|
+
if (sealed.has(box)) throw fail(source, at2, m.sealTwice(box));
|
|
13204
|
+
sealed.add(box);
|
|
13205
|
+
}
|
|
13206
|
+
if (word === "open" && !sealed.delete(box)) throw fail(source, at2, m.openUnsealed(box));
|
|
13207
|
+
return { type: word, box };
|
|
13208
|
+
}
|
|
13209
|
+
function readStamp(source) {
|
|
13210
|
+
const found = STAMP.exec(source.text);
|
|
13211
|
+
const lane = found?.[1];
|
|
13212
|
+
if (!found || lane === void 0) throw fail(source, 0, m.stampShape);
|
|
13213
|
+
const box = boxAt(source, lane, found.indices?.[1]?.[0] ?? 0);
|
|
13214
|
+
const named = readName(source, found[0].length, m);
|
|
13215
|
+
if (named.value === "" || named.rest < source.text.length) throw fail(source, 0, m.stampShape);
|
|
13216
|
+
return { type: "stamp", box, text: named.value };
|
|
13217
|
+
}
|
|
11508
13218
|
function readStrip(source) {
|
|
11509
13219
|
beforeSteps(source);
|
|
11510
13220
|
if (strip2) throw fail(source, 0, m.stripTwice);
|
|
@@ -11532,7 +13242,7 @@ function parseLines(lines, m) {
|
|
|
11532
13242
|
}
|
|
11533
13243
|
function readFields(source, at2) {
|
|
11534
13244
|
const text2 = source.text;
|
|
11535
|
-
const
|
|
13245
|
+
const items2 = [];
|
|
11536
13246
|
for (let i = at2; ; ) {
|
|
11537
13247
|
const start = skipSpaces(text2, i);
|
|
11538
13248
|
let value;
|
|
@@ -11560,8 +13270,8 @@ function parseLines(lines, m) {
|
|
|
11560
13270
|
end = skipSpaces(text2, close + 1);
|
|
11561
13271
|
}
|
|
11562
13272
|
if (end < text2.length && text2[end] !== ",") throw fail(source, end, m.afterQuote);
|
|
11563
|
-
|
|
11564
|
-
if (end >= text2.length) return
|
|
13273
|
+
items2.push(value);
|
|
13274
|
+
if (end >= text2.length) return items2;
|
|
11565
13275
|
i = end + 1;
|
|
11566
13276
|
}
|
|
11567
13277
|
}
|