@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/export.cjs CHANGED
@@ -294,6 +294,9 @@ var TYPE = {
294
294
  rootHash: text(15, 700, "mono"),
295
295
  rootName: text(11, 700),
296
296
  treeCard: text(11.5, 650),
297
+ /** 列の図 (#3239) の、チップの字と札の字 */
298
+ chip: text(10.5, 700, "mono"),
299
+ stamp: text(11, 700),
297
300
  /**
298
301
  * 時間軸の図 (#3165)。拡大の帯の列の上の字、印の列の名前、時刻の字、区切りの名前と目盛りの番号の範囲、
299
302
  * 節目の名札と状態、範囲の括弧の字、空きの枠の字、物差しの線の字。和文を含む字は同じ大きさと太さの和文の字で描く
@@ -416,6 +419,26 @@ var LOOK = {
416
419
  color: "violet",
417
420
  rootColor: "green"
418
421
  },
422
+ /**
423
+ * 列の図 (#3239)。step 2 で本人が選んだ見本の「列の図」の形で、1 列 12 枚の図の幅が携帯の幅で全体を見せられる 400 に収まる寸法にする。
424
+ * 列は左右の余白 `padX`、高さ `h`、角の丸み `radius`。列の名前と右上の字の基準線は列の上端から `textY`、チップの上端は列の上端から `trackY`、
425
+ * 名前と右上の字の間の下限は `textGap`、選ばなかった列の濃さは `faint`。
426
+ * `chip` はチップの幅の下限 `w`、高さ `h`、隣のチップとの間 `gap`、角の丸み `radius`、字の左右の余白 `padX`。字が幅を超える図は全てのチップの幅を広げる。
427
+ * `seal` は封で、チップの並びの外へ `over` 広げ、角の丸み `radius`、縞の幅 `stripe`。
428
+ * `stamp` は札で、高さ `h`、字の左右の余白 `padX`、角の丸み `radius`、傾き `tilt`、色 `color`
429
+ */
430
+ lineup: {
431
+ padX: 12,
432
+ h: 61,
433
+ radius: 10,
434
+ textY: 20,
435
+ trackY: 33,
436
+ textGap: 10,
437
+ faint: 0.35,
438
+ chip: { w: 25, h: 18, gap: 4, radius: 4, padX: 3 },
439
+ seal: { over: 3, radius: 5, stripe: 7 },
440
+ stamp: { h: 22, padX: 8, radius: 5, tilt: -4, color: "green" }
441
+ },
419
442
  /**
420
443
  * 時間軸の図 (#3165)。見本帳の試作 (`scenes/finality.js`) の寸法を写す。
421
444
  * 図の幅は `width` で、時間軸は左の `axisX` から右の余白 `right` の手前まで。印の列の名前が長い時は、名前の右に `gutterGap` を空けて軸を右へ寄せる。
@@ -519,7 +542,8 @@ var LOOK = {
519
542
  timeMeter: 1.25,
520
543
  tree: 1.5,
521
544
  treeTrail: 2.6,
522
- treeCon: 1.3
545
+ treeCon: 1.3,
546
+ stamp: 2
523
547
  },
524
548
  shadow: { near: 0.8, far: 4, nearY: 1, farY: 3 },
525
549
  mini: { w: 168, pad: 8, title: 14, inset: 12, radius: 10 },
@@ -534,8 +558,8 @@ var LOOK = {
534
558
  */
535
559
  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 } },
536
560
  /** 色を混ぜる割合 (%) */
537
- /** `time` から始まる値は時間軸の図 (#3165) の、区切りの地、範囲の囲みの地、空きの枠の地、拡大の点線の濃さ */
538
- 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 },
561
+ /** `time` から始まる値は時間軸の図 (#3165) の、区切りの地、範囲の囲みの地、空きの枠の地、拡大の点線の濃さ。`chip` と `seal` から始まる値は列の図 (#3239) の、色を持たないチップの地と封の縞の濃さ */
562
+ 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 },
539
563
  /** 字の並びの基準線を、置きたい高さの真ん中からどれだけ下げるか */
540
564
  baseline: { label: 3.8, badge: 3.5, carrier: 3.7, stripTitle: 4.5, tag: 3.6, action: 3.8, mark: 4 },
541
565
  /** 浮いて出る物が下から上がる長さと、弾んで出る物の始まりの大きさ */
@@ -579,7 +603,12 @@ var MOTION = {
579
603
  * 拡大した目盛りでは、その段のその列の線を引き終えてから `wait` 秒待って次の目盛りへ進む。
580
604
  * `after` は針が止まってから次の出来事を起こすまで、`reset` は区切りが替わって物差しが 0 に戻る長さ
581
605
  */
582
- time: { axis: 11.5, unitMin: 0.12, unitMax: 0.4, wait: 0.15, after: 0.15, reset: 0.05 }
606
+ time: { axis: 11.5, unitMin: 0.12, unitMax: 0.4, wait: 0.15, after: 0.15, reset: 0.05 },
607
+ /**
608
+ * 列の図 (#3239)。`slide` はチップが滑る長さ、`seal` は封が列を覆う長さ、`stagger` は同じ段の出来事を起こす間、
609
+ * `cut` はチップと封が一瞬で入れ替わる長さ
610
+ */
611
+ lineup: { slide: 0.7, seal: 0.6, stagger: 0.2, cut: 0.01 }
583
612
  };
584
613
  var READABLE_PX = 10.5;
585
614
  var EASE = {
@@ -972,7 +1001,7 @@ function layoutStrip(diagram, x, y, width, trail) {
972
1001
  const fields = [];
973
1002
  let cx = start;
974
1003
  let row = 0;
975
- const place = (w) => {
1004
+ const place2 = (w) => {
976
1005
  if (cx > start && cx + w > width - pad2) {
977
1006
  cx = start;
978
1007
  row++;
@@ -983,12 +1012,12 @@ function layoutStrip(diagram, x, y, width, trail) {
983
1012
  };
984
1013
  for (const name of diagram.strip.fields) {
985
1014
  const w = fieldWidth(diagram, name);
986
- const at2 = place(w);
1015
+ const at2 = place2(w);
987
1016
  const meter = meterOf(diagram, name);
988
1017
  const line2 = meter ? ratioOf(meter.line) : void 0;
989
1018
  fields.push({ name, ...at2, w, ...meter && line2 !== void 0 ? { meter: { line: line2, text: meter.line, x: at2.x, w: LOOK.time.meter.w } } : {} });
990
1019
  }
991
- const laidTrail = trail ? { ...trail, ...place(trailWidth(trail)), w: trailWidth(trail) } : void 0;
1020
+ const laidTrail = trail ? { ...trail, ...place2(trailWidth(trail)), w: trailWidth(trail) } : void 0;
992
1021
  return { x, y, w: width, h: h + row * line, title: diagram.strip.title, fields, ...laidTrail ? { trail: laidTrail } : {} };
993
1022
  }
994
1023
  function shiftContent(layout, dx, dy) {
@@ -1413,6 +1442,7 @@ function grow(layout, groups, slots, rooms) {
1413
1442
  return grown;
1414
1443
  }
1415
1444
  var STATE_ENDS = ["start", "finish"];
1445
+ var LANE_MOST = 12;
1416
1446
  var HEAD = "HEAD";
1417
1447
 
1418
1448
  // src/layout/git.ts
@@ -1901,6 +1931,138 @@ function labelsOf(diagram, layout) {
1901
1931
  return labels;
1902
1932
  }
1903
1933
 
1934
+ // src/layout/lineup.ts
1935
+ var isLineupLayout = (layout) => layout.kind === "lineup";
1936
+ function notesOf(diagram, id, sub) {
1937
+ const written = diagram.steps.flatMap((step) => step.events.flatMap((e) => e.type === "swap" && e.box === id ? [textWidth(e.text, TYPE.boxSubStrong)] : []));
1938
+ return sub === void 0 ? written : [textWidth(sub, TYPE.boxSub), ...written];
1939
+ }
1940
+ function layoutLineup(diagram) {
1941
+ const { margin, gap, lineup: N } = LOOK;
1942
+ const items = diagram.lineup?.items ?? [];
1943
+ const known = new Set(items.map((item) => item.id));
1944
+ const chipW = Math.max(N.chip.w, ...items.map((item) => item.label === void 0 ? 0 : textWidth(item.label, TYPE.chip) + N.chip.padX * 2));
1945
+ const pitch = chipW + N.chip.gap;
1946
+ const trackW = pitch * LANE_MOST - N.chip.gap;
1947
+ const titled = diagram.boxes.map((b) => textWidth(b.name, TYPE.boxName) + N.textGap + Math.max(0, ...notesOf(diagram, b.id, b.sub)));
1948
+ const laneW = Math.max(trackW + N.padX * 2, ...titled.map((w) => w + N.padX * 2), stripNeed(diagram));
1949
+ const colors = boxColors(diagram);
1950
+ const lanes = diagram.boxes.map((b, i) => {
1951
+ const y = margin + i * (N.h + gap);
1952
+ const baseline = y + N.textY;
1953
+ const noteRight = margin + laneW - N.padX;
1954
+ return {
1955
+ id: b.id,
1956
+ name: b.name,
1957
+ ...b.sub !== void 0 ? { sub: b.sub } : {},
1958
+ color: colors.get(b.id) ?? "slate",
1959
+ x: margin,
1960
+ y,
1961
+ w: laneW,
1962
+ h: N.h,
1963
+ cx: margin + laneW / 2,
1964
+ cy: y + N.h / 2,
1965
+ title: { ...textBox(b.name, margin + N.padX, baseline, TYPE.boxName), text: b.name, baseline },
1966
+ ...b.sub !== void 0 ? { note: { ...textBox(b.sub, noteRight - textWidth(b.sub, TYPE.boxSub), baseline, TYPE.boxSub), text: b.sub, baseline } } : {},
1967
+ noteRight,
1968
+ track: { x: margin + N.padX, y: y + N.trackY, w: trackW, h: N.chip.h }
1969
+ };
1970
+ });
1971
+ const laneOf = new Map(lanes.map((lane) => [lane.id, lane]));
1972
+ const chips = [];
1973
+ const seals = [];
1974
+ const stamps = [];
1975
+ const picks = [];
1976
+ const seated = /* @__PURE__ */ new Map();
1977
+ const open = /* @__PURE__ */ new Map();
1978
+ let picked;
1979
+ diagram.steps.forEach((step, s) => {
1980
+ const before = [...seated.values()].flat();
1981
+ step.events.forEach((e, k) => {
1982
+ if (e.type !== "line" && e.type !== "seal" && e.type !== "open" && e.type !== "pick" && e.type !== "stamp") return;
1983
+ const lane = laneOf.get(e.box);
1984
+ if (!lane) return;
1985
+ const at2 = { step: s, event: k };
1986
+ if (e.type === "seal" && !open.has(lane.id)) {
1987
+ const { over } = N.seal;
1988
+ 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 };
1989
+ seals.push(seal);
1990
+ open.set(lane.id, seal);
1991
+ } else if (e.type === "open") {
1992
+ const seal = open.get(lane.id);
1993
+ if (seal) seal.until = at2;
1994
+ open.delete(lane.id);
1995
+ } else if (e.type === "pick" && picked !== lane.id) {
1996
+ picks.push({ ...at2, lane: lane.id });
1997
+ picked = lane.id;
1998
+ } else if (e.type === "stamp") {
1999
+ const w = textWidth(e.text, TYPE.stamp) + N.stamp.padX * 2;
2000
+ 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 });
2001
+ } else if (e.type === "line") {
2002
+ const old = seated.get(lane.id) ?? [];
2003
+ const order = [...new Set(e.items)].filter((id) => known.has(id)).slice(0, LANE_MOST);
2004
+ const placed = order.map((id, index) => {
2005
+ const same2 = old.find((c) => c.id === id);
2006
+ if (same2?.index === index) return same2;
2007
+ const others = before.filter((c) => c.id === id);
2008
+ const source = same2 ?? others.find((c) => c.lane === picked) ?? others.at(-1);
2009
+ 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] } : {} };
2010
+ chips.push(seat2);
2011
+ return seat2;
2012
+ });
2013
+ for (const c of old) if (!placed.includes(c)) c.until = at2;
2014
+ seated.set(lane.id, placed);
2015
+ }
2016
+ });
2017
+ });
2018
+ const layout = {
2019
+ kind: "lineup",
2020
+ width: 0,
2021
+ height: 0,
2022
+ regions: [],
2023
+ boxes: lanes,
2024
+ lifelines: [],
2025
+ edges: [],
2026
+ labels: [],
2027
+ actions: [],
2028
+ badges: [],
2029
+ paths: [],
2030
+ ends: [],
2031
+ lanes,
2032
+ chips,
2033
+ seals,
2034
+ stamps,
2035
+ picks
2036
+ };
2037
+ const bottom = Math.max(...lanes.map((lane) => lane.y + lane.h), margin);
2038
+ const width = laneW + margin * 2;
2039
+ const strip2 = layoutStrip(diagram, margin, bottom + gap, width - margin * 2);
2040
+ layout.width = width;
2041
+ layout.height = (strip2 ? strip2.y + strip2.h : bottom) + margin;
2042
+ if (strip2) layout.strip = strip2;
2043
+ layout.badges = badgesOf2(diagram, layout);
2044
+ return layout;
2045
+ }
2046
+ function badgesOf2(diagram, layout) {
2047
+ const { inset } = LOOK.badge;
2048
+ const out = [];
2049
+ const put = (step, x, y, color) => {
2050
+ out.push({ step, x, y, color });
2051
+ };
2052
+ diagram.steps.forEach((step, s) => {
2053
+ const lane = step.events.flatMap((e) => "box" in e ? [e.box] : []).flatMap((id) => layout.lanes.filter((l) => l.id === id))[0];
2054
+ if (lane) {
2055
+ put(s, lane.x, lane.track.y + lane.track.h / 2, lane.color);
2056
+ return;
2057
+ }
2058
+ const before = out[out.length - 1];
2059
+ if (layout.strip && step.events.some((e) => e.type === "strip")) put(s, layout.strip.x + inset, layout.strip.y + inset, "slate");
2060
+ else if (before) out.push({ ...before, step: s });
2061
+ else put(s, LOOK.margin, LOOK.margin, layout.lanes[0]?.color ?? "slate");
2062
+ });
2063
+ return replaceSameSpot(out);
2064
+ }
2065
+
1904
2066
  // src/layout/sequence.ts
1905
2067
  function layoutSequence(diagram) {
1906
2068
  const { box: B, sequence: Q, label: L, margin, gap } = LOOK;
@@ -2612,7 +2774,7 @@ function layoutTime(diagram, lang = "ja") {
2612
2774
  } 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 });
2613
2775
  }
2614
2776
  layout.spans = spans;
2615
- layout.badges = badgesOf2(diagram, layout, needleSteps(diagram));
2777
+ layout.badges = badgesOf3(diagram, layout, needleSteps(diagram));
2616
2778
  layout.labels = labelsOf2(diagram, layout);
2617
2779
  y = Math.max(y, ...layout.labels.map((l) => l.y + l.h + LOOK.label.soft));
2618
2780
  const lanes = [];
@@ -2681,7 +2843,7 @@ function layoutTime(diagram, lang = "ja") {
2681
2843
  const strip2 = layoutStrip(diagram, margin, axisBottom + gap, width - margin * 2);
2682
2844
  if (strip2) layout.strip = strip2;
2683
2845
  layout.height = (strip2 ? strip2.y + strip2.h : axisBottom) + margin;
2684
- layout.badges = badgesOf2(diagram, layout, needleSteps(diagram));
2846
+ layout.badges = badgesOf3(diagram, layout, needleSteps(diagram));
2685
2847
  return layout;
2686
2848
  }
2687
2849
  function wire(event, zoom) {
@@ -2723,7 +2885,7 @@ function seat(edge2, from, to, rooms) {
2723
2885
  if (arrive.settle) edge2.settle = arrive.settle;
2724
2886
  if (leave.wait) edge2.wait = leave.wait;
2725
2887
  }
2726
- function badgesOf2(diagram, layout, needle) {
2888
+ function badgesOf3(diagram, layout, needle) {
2727
2889
  const { r, inset } = LOOK.badge;
2728
2890
  const { axis } = layout;
2729
2891
  const taken = [];
@@ -3016,7 +3178,7 @@ function layoutTree(diagram) {
3016
3178
  links,
3017
3179
  runs
3018
3180
  };
3019
- layout.badges = badgesOf3(diagram, layout);
3181
+ layout.badges = badgesOf4(diagram, layout);
3020
3182
  layout.labels = labelsOf3(diagram, layout);
3021
3183
  const cards = nodes.flatMap((n) => n.card ? [n.card] : []);
3022
3184
  const solids = [...nodes, ...cards, ...boxes, ...layout.labels];
@@ -3028,10 +3190,10 @@ function layoutTree(diagram) {
3028
3190
  layout.width = width;
3029
3191
  layout.height = (strip2 ? strip2.y + strip2.h : bottom) + margin;
3030
3192
  if (strip2) layout.strip = strip2;
3031
- layout.badges = badgesOf3(diagram, layout);
3193
+ layout.badges = badgesOf4(diagram, layout);
3032
3194
  return layout;
3033
3195
  }
3034
- function badgesOf3(diagram, layout) {
3196
+ function badgesOf4(diagram, layout) {
3035
3197
  const { r, inset } = LOOK.badge;
3036
3198
  const apart = r * 2 + inset;
3037
3199
  const taken = [];
@@ -3147,8 +3309,10 @@ var ja = {
3147
3309
  enum: (values) => `${values.join(" / ")} \u306E\u3069\u308C\u304B\u306B\u3059\u308B`,
3148
3310
  type: (type) => TYPES_JA[type] ?? `${type} \u306B\u3059\u308B`,
3149
3311
  minLength: (limit) => `${limit} \u5B57\u4EE5\u4E0A\u66F8\u304F`,
3312
+ maxLength: (limit) => `${limit} \u5B57\u307E\u3067\u306B\u3059\u308B`,
3150
3313
  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",
3151
3314
  minItems: (limit) => `${limit} \u3064\u4EE5\u4E0A\u66F8\u304F`,
3315
+ maxItems: (limit) => `${limit} \u3064\u307E\u3067\u306B\u3059\u308B`,
3152
3316
  minimum: (limit) => `${limit} \u4EE5\u4E0A\u306B\u3059\u308B`,
3153
3317
  const: (value) => `${value} \u306B\u3059\u308B`,
3154
3318
  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",
@@ -3169,8 +3333,10 @@ var en = {
3169
3333
  enum: (values) => `Use one of ${values.join(" / ")}`,
3170
3334
  type: (type) => TYPES_EN[type] ?? `Use ${type}`,
3171
3335
  minLength: (limit) => `Write at least ${plural(limit, "character")}`,
3336
+ maxLength: (limit) => `Write at most ${plural(limit, "character")}`,
3172
3337
  pattern: (forbidden) => forbidden ? `Cannot contain ${forbidden.space ? "spaces or " : ""}${forbidden.chars.join(" ")}` : "Contains characters that are not allowed",
3173
3338
  minItems: (limit) => `Write at least ${plural(limit, "item")}`,
3339
+ maxItems: (limit) => `Write at most ${plural(limit, "item")}`,
3174
3340
  minimum: (limit) => `Use ${limit} or greater`,
3175
3341
  const: (value) => `Use ${value}`,
3176
3342
  not: (allowed) => allowed ? `The ${allowed.field} field is allowed only when kind is ${allowed.kind}` : "This combination of fields is not allowed",
@@ -3194,7 +3360,7 @@ function ucs2length(str) {
3194
3360
  return length;
3195
3361
  }
3196
3362
  var validate_diagram_default = validate10;
3197
- 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" } }};
3363
+ 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" } }};
3198
3364
  function validate11(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3199
3365
  let vErrors = null;
3200
3366
  let errors = 0;
@@ -3299,34 +3465,79 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
3299
3465
  }
3300
3466
  }
3301
3467
  }
3468
+ const _errs14 = errors;
3469
+ const _errs15 = errors;
3470
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
3471
+ if (data2.type === void 0 && ("type")) {
3472
+ const err6 = {};
3473
+ if (vErrors === null) {
3474
+ vErrors = [err6];
3475
+ } else {
3476
+ vErrors.push(err6);
3477
+ }
3478
+ errors++;
3479
+ } else {
3480
+ if (data2.type !== void 0) {
3481
+ let data5 = data2.type;
3482
+ if (!(data5 === "line" || data5 === "seal" || data5 === "open" || data5 === "pick" || data5 === "stamp")) {
3483
+ const err7 = {};
3484
+ if (vErrors === null) {
3485
+ vErrors = [err7];
3486
+ } else {
3487
+ vErrors.push(err7);
3488
+ }
3489
+ errors++;
3490
+ }
3491
+ }
3492
+ }
3493
+ }
3494
+ var valid13 = _errs15 === errors;
3495
+ if (valid13) {
3496
+ const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
3497
+ if (vErrors === null) {
3498
+ vErrors = [err8];
3499
+ } else {
3500
+ vErrors.push(err8);
3501
+ }
3502
+ errors++;
3503
+ } else {
3504
+ errors = _errs14;
3505
+ if (vErrors !== null) {
3506
+ if (_errs14) {
3507
+ vErrors.length = _errs14;
3508
+ } else {
3509
+ vErrors = null;
3510
+ }
3511
+ }
3512
+ }
3302
3513
  if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
3303
3514
  if (data2.type !== void 0) {
3304
- let data5 = data2.type;
3305
- const _errs13 = errors;
3306
- const _errs14 = errors;
3307
- if (!(data5 === "commit" || data5 === "branch")) {
3308
- const err6 = {};
3515
+ let data6 = data2.type;
3516
+ const _errs18 = errors;
3517
+ const _errs19 = errors;
3518
+ if (!(data6 === "commit" || data6 === "branch")) {
3519
+ const err9 = {};
3309
3520
  if (vErrors === null) {
3310
- vErrors = [err6];
3521
+ vErrors = [err9];
3311
3522
  } else {
3312
- vErrors.push(err6);
3523
+ vErrors.push(err9);
3313
3524
  }
3314
3525
  errors++;
3315
3526
  }
3316
- var valid13 = _errs14 === errors;
3317
- if (valid13) {
3318
- const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
3527
+ var valid16 = _errs19 === errors;
3528
+ if (valid16) {
3529
+ const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
3319
3530
  if (vErrors === null) {
3320
- vErrors = [err7];
3531
+ vErrors = [err10];
3321
3532
  } else {
3322
- vErrors.push(err7);
3533
+ vErrors.push(err10);
3323
3534
  }
3324
3535
  errors++;
3325
3536
  } else {
3326
- errors = _errs13;
3537
+ errors = _errs18;
3327
3538
  if (vErrors !== null) {
3328
- if (_errs13) {
3329
- vErrors.length = _errs13;
3539
+ if (_errs18) {
3540
+ vErrors.length = _errs18;
3330
3541
  } else {
3331
3542
  vErrors = null;
3332
3543
  }
@@ -3334,29 +3545,29 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
3334
3545
  }
3335
3546
  }
3336
3547
  if (data2.at !== void 0) {
3337
- const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
3548
+ const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
3338
3549
  if (vErrors === null) {
3339
- vErrors = [err8];
3550
+ vErrors = [err11];
3340
3551
  } else {
3341
- vErrors.push(err8);
3552
+ vErrors.push(err11);
3342
3553
  }
3343
3554
  errors++;
3344
3555
  }
3345
3556
  if (data2.into !== void 0) {
3346
- const err9 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
3557
+ const err12 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
3347
3558
  if (vErrors === null) {
3348
- vErrors = [err9];
3559
+ vErrors = [err12];
3349
3560
  } else {
3350
- vErrors.push(err9);
3561
+ vErrors.push(err12);
3351
3562
  }
3352
3563
  errors++;
3353
3564
  }
3354
3565
  if (data2.color !== void 0) {
3355
- const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
3566
+ const err13 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
3356
3567
  if (vErrors === null) {
3357
- vErrors = [err10];
3568
+ vErrors = [err13];
3358
3569
  } else {
3359
- vErrors.push(err10);
3570
+ vErrors.push(err13);
3360
3571
  }
3361
3572
  errors++;
3362
3573
  }
@@ -3491,31 +3702,76 @@ function validate17(data, { instancePath = "", parentData, parentDataProperty, r
3491
3702
  }
3492
3703
  }
3493
3704
  }
3705
+ const _errs14 = errors;
3706
+ const _errs15 = errors;
3494
3707
  if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
3495
- if (data2.at !== void 0) {
3496
- const err6 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
3708
+ if (data2.type === void 0 && ("type")) {
3709
+ const err6 = {};
3497
3710
  if (vErrors === null) {
3498
3711
  vErrors = [err6];
3499
3712
  } else {
3500
3713
  vErrors.push(err6);
3501
3714
  }
3502
3715
  errors++;
3716
+ } else {
3717
+ if (data2.type !== void 0) {
3718
+ let data5 = data2.type;
3719
+ if (!(data5 === "line" || data5 === "seal" || data5 === "open" || data5 === "pick" || data5 === "stamp")) {
3720
+ const err7 = {};
3721
+ if (vErrors === null) {
3722
+ vErrors = [err7];
3723
+ } else {
3724
+ vErrors.push(err7);
3725
+ }
3726
+ errors++;
3727
+ }
3728
+ }
3729
+ }
3730
+ }
3731
+ var valid13 = _errs15 === errors;
3732
+ if (valid13) {
3733
+ const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
3734
+ if (vErrors === null) {
3735
+ vErrors = [err8];
3736
+ } else {
3737
+ vErrors.push(err8);
3738
+ }
3739
+ errors++;
3740
+ } else {
3741
+ errors = _errs14;
3742
+ if (vErrors !== null) {
3743
+ if (_errs14) {
3744
+ vErrors.length = _errs14;
3745
+ } else {
3746
+ vErrors = null;
3747
+ }
3748
+ }
3749
+ }
3750
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
3751
+ if (data2.at !== void 0) {
3752
+ const err9 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
3753
+ if (vErrors === null) {
3754
+ vErrors = [err9];
3755
+ } else {
3756
+ vErrors.push(err9);
3757
+ }
3758
+ errors++;
3503
3759
  }
3504
3760
  if (data2.into !== void 0) {
3505
- const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
3761
+ const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
3506
3762
  if (vErrors === null) {
3507
- vErrors = [err7];
3763
+ vErrors = [err10];
3508
3764
  } else {
3509
- vErrors.push(err7);
3765
+ vErrors.push(err10);
3510
3766
  }
3511
3767
  errors++;
3512
3768
  }
3513
3769
  if (data2.color !== void 0) {
3514
- const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
3770
+ const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
3515
3771
  if (vErrors === null) {
3516
- vErrors = [err8];
3772
+ vErrors = [err11];
3517
3773
  } else {
3518
- vErrors.push(err8);
3774
+ vErrors.push(err11);
3519
3775
  }
3520
3776
  errors++;
3521
3777
  }
@@ -3588,34 +3844,79 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
3588
3844
  }
3589
3845
  }
3590
3846
  }
3847
+ const _errs10 = errors;
3848
+ const _errs11 = errors;
3849
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
3850
+ if (data2.type === void 0 && ("type")) {
3851
+ const err3 = {};
3852
+ if (vErrors === null) {
3853
+ vErrors = [err3];
3854
+ } else {
3855
+ vErrors.push(err3);
3856
+ }
3857
+ errors++;
3858
+ } else {
3859
+ if (data2.type !== void 0) {
3860
+ let data4 = data2.type;
3861
+ if (!(data4 === "line" || data4 === "seal" || data4 === "open" || data4 === "pick" || data4 === "stamp")) {
3862
+ const err4 = {};
3863
+ if (vErrors === null) {
3864
+ vErrors = [err4];
3865
+ } else {
3866
+ vErrors.push(err4);
3867
+ }
3868
+ errors++;
3869
+ }
3870
+ }
3871
+ }
3872
+ }
3873
+ var valid10 = _errs11 === errors;
3874
+ if (valid10) {
3875
+ const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
3876
+ if (vErrors === null) {
3877
+ vErrors = [err5];
3878
+ } else {
3879
+ vErrors.push(err5);
3880
+ }
3881
+ errors++;
3882
+ } else {
3883
+ errors = _errs10;
3884
+ if (vErrors !== null) {
3885
+ if (_errs10) {
3886
+ vErrors.length = _errs10;
3887
+ } else {
3888
+ vErrors = null;
3889
+ }
3890
+ }
3891
+ }
3591
3892
  if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
3592
3893
  if (data2.type !== void 0) {
3593
- let data4 = data2.type;
3594
- const _errs9 = errors;
3595
- const _errs10 = errors;
3596
- if (!(data4 === "commit" || data4 === "branch")) {
3597
- const err3 = {};
3894
+ let data5 = data2.type;
3895
+ const _errs14 = errors;
3896
+ const _errs15 = errors;
3897
+ if (!(data5 === "commit" || data5 === "branch")) {
3898
+ const err6 = {};
3598
3899
  if (vErrors === null) {
3599
- vErrors = [err3];
3900
+ vErrors = [err6];
3600
3901
  } else {
3601
- vErrors.push(err3);
3902
+ vErrors.push(err6);
3602
3903
  }
3603
3904
  errors++;
3604
3905
  }
3605
- var valid10 = _errs10 === errors;
3606
- if (valid10) {
3607
- const err4 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
3906
+ var valid13 = _errs15 === errors;
3907
+ if (valid13) {
3908
+ const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
3608
3909
  if (vErrors === null) {
3609
- vErrors = [err4];
3910
+ vErrors = [err7];
3610
3911
  } else {
3611
- vErrors.push(err4);
3912
+ vErrors.push(err7);
3612
3913
  }
3613
3914
  errors++;
3614
3915
  } else {
3615
- errors = _errs9;
3916
+ errors = _errs14;
3616
3917
  if (vErrors !== null) {
3617
- if (_errs9) {
3618
- vErrors.length = _errs9;
3918
+ if (_errs14) {
3919
+ vErrors.length = _errs14;
3619
3920
  } else {
3620
3921
  vErrors = null;
3621
3922
  }
@@ -3691,34 +3992,79 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
3691
3992
  }
3692
3993
  }
3693
3994
  }
3995
+ const _errs9 = errors;
3996
+ const _errs10 = errors;
3997
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
3998
+ if (data2.type === void 0 && ("type")) {
3999
+ const err3 = {};
4000
+ if (vErrors === null) {
4001
+ vErrors = [err3];
4002
+ } else {
4003
+ vErrors.push(err3);
4004
+ }
4005
+ errors++;
4006
+ } else {
4007
+ if (data2.type !== void 0) {
4008
+ let data4 = data2.type;
4009
+ if (!(data4 === "line" || data4 === "seal" || data4 === "open" || data4 === "pick" || data4 === "stamp")) {
4010
+ const err4 = {};
4011
+ if (vErrors === null) {
4012
+ vErrors = [err4];
4013
+ } else {
4014
+ vErrors.push(err4);
4015
+ }
4016
+ errors++;
4017
+ }
4018
+ }
4019
+ }
4020
+ }
4021
+ var valid10 = _errs10 === errors;
4022
+ if (valid10) {
4023
+ const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4024
+ if (vErrors === null) {
4025
+ vErrors = [err5];
4026
+ } else {
4027
+ vErrors.push(err5);
4028
+ }
4029
+ errors++;
4030
+ } else {
4031
+ errors = _errs9;
4032
+ if (vErrors !== null) {
4033
+ if (_errs9) {
4034
+ vErrors.length = _errs9;
4035
+ } else {
4036
+ vErrors = null;
4037
+ }
4038
+ }
4039
+ }
3694
4040
  if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
3695
4041
  if (data2.type !== void 0) {
3696
- let data4 = data2.type;
3697
- const _errs8 = errors;
3698
- const _errs9 = errors;
3699
- if (!(data4 === "commit" || data4 === "branch")) {
3700
- const err3 = {};
4042
+ let data5 = data2.type;
4043
+ const _errs13 = errors;
4044
+ const _errs14 = errors;
4045
+ if (!(data5 === "commit" || data5 === "branch")) {
4046
+ const err6 = {};
3701
4047
  if (vErrors === null) {
3702
- vErrors = [err3];
4048
+ vErrors = [err6];
3703
4049
  } else {
3704
- vErrors.push(err3);
4050
+ vErrors.push(err6);
3705
4051
  }
3706
4052
  errors++;
3707
4053
  }
3708
- var valid9 = _errs9 === errors;
3709
- if (valid9) {
3710
- const err4 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
4054
+ var valid13 = _errs14 === errors;
4055
+ if (valid13) {
4056
+ const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
3711
4057
  if (vErrors === null) {
3712
- vErrors = [err4];
4058
+ vErrors = [err7];
3713
4059
  } else {
3714
- vErrors.push(err4);
4060
+ vErrors.push(err7);
3715
4061
  }
3716
4062
  errors++;
3717
4063
  } else {
3718
- errors = _errs8;
4064
+ errors = _errs13;
3719
4065
  if (vErrors !== null) {
3720
- if (_errs8) {
3721
- vErrors.length = _errs8;
4066
+ if (_errs13) {
4067
+ vErrors.length = _errs13;
3722
4068
  } else {
3723
4069
  vErrors = null;
3724
4070
  }
@@ -3726,29 +4072,29 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
3726
4072
  }
3727
4073
  }
3728
4074
  if (data2.at !== void 0) {
3729
- const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4075
+ const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
3730
4076
  if (vErrors === null) {
3731
- vErrors = [err5];
4077
+ vErrors = [err8];
3732
4078
  } else {
3733
- vErrors.push(err5);
4079
+ vErrors.push(err8);
3734
4080
  }
3735
4081
  errors++;
3736
4082
  }
3737
4083
  if (data2.into !== void 0) {
3738
- const err6 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4084
+ const err9 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
3739
4085
  if (vErrors === null) {
3740
- vErrors = [err6];
4086
+ vErrors = [err9];
3741
4087
  } else {
3742
- vErrors.push(err6);
4088
+ vErrors.push(err9);
3743
4089
  }
3744
4090
  errors++;
3745
4091
  }
3746
4092
  if (data2.color !== void 0) {
3747
- const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4093
+ const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
3748
4094
  if (vErrors === null) {
3749
- vErrors = [err7];
4095
+ vErrors = [err10];
3750
4096
  } else {
3751
- vErrors.push(err7);
4097
+ vErrors.push(err10);
3752
4098
  }
3753
4099
  errors++;
3754
4100
  }
@@ -3762,15 +4108,217 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
3762
4108
  validate22.errors = vErrors;
3763
4109
  return errors === 0;
3764
4110
  }
3765
- var schema57 = { "enum": ["blue", "amber", "green", "violet", "rose", "slate", "coin"] };
3766
- var pattern0 = new RegExp("^[^\\s\\[\\]\u300C\u300D=:]+$", "u");
3767
- var func3 = ucs2length;
3768
- function validate27(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4111
+ function validate25(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3769
4112
  let vErrors = null;
3770
4113
  let errors = 0;
3771
- if (data && typeof data == "object" && !Array.isArray(data)) {
3772
- if (data.id === void 0) {
3773
- const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
4114
+ if (Array.isArray(data)) {
4115
+ const len0 = data.length;
4116
+ for (let i0 = 0; i0 < len0; i0++) {
4117
+ let data0 = data[i0];
4118
+ if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
4119
+ if (data0.events !== void 0) {
4120
+ let data1 = data0.events;
4121
+ if (Array.isArray(data1)) {
4122
+ const len1 = data1.length;
4123
+ for (let i1 = 0; i1 < len1; i1++) {
4124
+ let data2 = data1[i1];
4125
+ const _errs3 = errors;
4126
+ const _errs4 = errors;
4127
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
4128
+ if (data2.type === void 0 && ("type")) {
4129
+ const err0 = {};
4130
+ if (vErrors === null) {
4131
+ vErrors = [err0];
4132
+ } else {
4133
+ vErrors.push(err0);
4134
+ }
4135
+ errors++;
4136
+ } else {
4137
+ if (data2.type !== void 0) {
4138
+ let data3 = data2.type;
4139
+ if (!(data3 === "now" || data3 === "mark" || data3 === "span")) {
4140
+ const err1 = {};
4141
+ if (vErrors === null) {
4142
+ vErrors = [err1];
4143
+ } else {
4144
+ vErrors.push(err1);
4145
+ }
4146
+ errors++;
4147
+ }
4148
+ }
4149
+ }
4150
+ }
4151
+ var valid5 = _errs4 === errors;
4152
+ if (valid5) {
4153
+ const err2 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/not", keyword: "not", params: {}, message: "must NOT be valid" };
4154
+ if (vErrors === null) {
4155
+ vErrors = [err2];
4156
+ } else {
4157
+ vErrors.push(err2);
4158
+ }
4159
+ errors++;
4160
+ } else {
4161
+ errors = _errs3;
4162
+ if (vErrors !== null) {
4163
+ if (_errs3) {
4164
+ vErrors.length = _errs3;
4165
+ } else {
4166
+ vErrors = null;
4167
+ }
4168
+ }
4169
+ }
4170
+ const _errs8 = errors;
4171
+ const _errs9 = errors;
4172
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
4173
+ if (data2.type === void 0 && ("type")) {
4174
+ const err3 = {};
4175
+ if (vErrors === null) {
4176
+ vErrors = [err3];
4177
+ } else {
4178
+ vErrors.push(err3);
4179
+ }
4180
+ errors++;
4181
+ } else {
4182
+ if (data2.type !== void 0) {
4183
+ let data4 = data2.type;
4184
+ if (!(data4 === "leaf" || data4 === "node")) {
4185
+ const err4 = {};
4186
+ if (vErrors === null) {
4187
+ vErrors = [err4];
4188
+ } else {
4189
+ vErrors.push(err4);
4190
+ }
4191
+ errors++;
4192
+ }
4193
+ }
4194
+ }
4195
+ }
4196
+ var valid9 = _errs9 === errors;
4197
+ if (valid9) {
4198
+ const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/allOf/0/not", keyword: "not", params: {}, message: "must NOT be valid" };
4199
+ if (vErrors === null) {
4200
+ vErrors = [err5];
4201
+ } else {
4202
+ vErrors.push(err5);
4203
+ }
4204
+ errors++;
4205
+ } else {
4206
+ errors = _errs8;
4207
+ if (vErrors !== null) {
4208
+ if (_errs8) {
4209
+ vErrors.length = _errs8;
4210
+ } else {
4211
+ vErrors = null;
4212
+ }
4213
+ }
4214
+ }
4215
+ const _errs14 = errors;
4216
+ const _errs15 = errors;
4217
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
4218
+ if (data2.type === void 0 && ("type")) {
4219
+ const err6 = {};
4220
+ if (vErrors === null) {
4221
+ vErrors = [err6];
4222
+ } else {
4223
+ vErrors.push(err6);
4224
+ }
4225
+ errors++;
4226
+ } else {
4227
+ if (data2.type !== void 0) {
4228
+ let data5 = data2.type;
4229
+ if (!(data5 === "edge" || data5 === "action")) {
4230
+ const err7 = {};
4231
+ if (vErrors === null) {
4232
+ vErrors = [err7];
4233
+ } else {
4234
+ vErrors.push(err7);
4235
+ }
4236
+ errors++;
4237
+ }
4238
+ }
4239
+ }
4240
+ }
4241
+ var valid13 = _errs15 === errors;
4242
+ if (valid13) {
4243
+ const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notWiredEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4244
+ if (vErrors === null) {
4245
+ vErrors = [err8];
4246
+ } else {
4247
+ vErrors.push(err8);
4248
+ }
4249
+ errors++;
4250
+ } else {
4251
+ errors = _errs14;
4252
+ if (vErrors !== null) {
4253
+ if (_errs14) {
4254
+ vErrors.length = _errs14;
4255
+ } else {
4256
+ vErrors = null;
4257
+ }
4258
+ }
4259
+ }
4260
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
4261
+ if (data2.type !== void 0) {
4262
+ let data6 = data2.type;
4263
+ const _errs18 = errors;
4264
+ const _errs19 = errors;
4265
+ if (!(data6 === "commit" || data6 === "branch")) {
4266
+ const err9 = {};
4267
+ if (vErrors === null) {
4268
+ vErrors = [err9];
4269
+ } else {
4270
+ vErrors.push(err9);
4271
+ }
4272
+ errors++;
4273
+ }
4274
+ var valid16 = _errs19 === errors;
4275
+ if (valid16) {
4276
+ const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
4277
+ if (vErrors === null) {
4278
+ vErrors = [err10];
4279
+ } else {
4280
+ vErrors.push(err10);
4281
+ }
4282
+ errors++;
4283
+ } else {
4284
+ errors = _errs18;
4285
+ if (vErrors !== null) {
4286
+ if (_errs18) {
4287
+ vErrors.length = _errs18;
4288
+ } else {
4289
+ vErrors = null;
4290
+ }
4291
+ }
4292
+ }
4293
+ }
4294
+ if (data2.color !== void 0) {
4295
+ const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4296
+ if (vErrors === null) {
4297
+ vErrors = [err11];
4298
+ } else {
4299
+ vErrors.push(err11);
4300
+ }
4301
+ errors++;
4302
+ }
4303
+ }
4304
+ }
4305
+ }
4306
+ }
4307
+ }
4308
+ }
4309
+ }
4310
+ validate25.errors = vErrors;
4311
+ return errors === 0;
4312
+ }
4313
+ var schema79 = { "enum": ["blue", "amber", "green", "violet", "rose", "slate", "coin"] };
4314
+ var pattern0 = new RegExp("^[^\\s\\[\\]\u300C\u300D=:]+$", "u");
4315
+ var func3 = ucs2length;
4316
+ function validate30(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4317
+ let vErrors = null;
4318
+ let errors = 0;
4319
+ if (data && typeof data == "object" && !Array.isArray(data)) {
4320
+ if (data.id === void 0) {
4321
+ const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
3774
4322
  if (vErrors === null) {
3775
4323
  vErrors = [err0];
3776
4324
  } else {
@@ -3867,7 +4415,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
3867
4415
  if (data.color !== void 0) {
3868
4416
  let data3 = data.color;
3869
4417
  if (!(data3 === "blue" || data3 === "amber" || data3 === "green" || data3 === "violet" || data3 === "rose" || data3 === "slate" || data3 === "coin")) {
3870
- const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
4418
+ 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" };
3871
4419
  if (vErrors === null) {
3872
4420
  vErrors = [err9];
3873
4421
  } else {
@@ -3907,11 +4455,11 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
3907
4455
  }
3908
4456
  errors++;
3909
4457
  }
3910
- validate27.errors = vErrors;
4458
+ validate30.errors = vErrors;
3911
4459
  return errors === 0;
3912
4460
  }
3913
4461
  var pattern3 = new RegExp("^(/|https?://)", "u");
3914
- function validate29(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4462
+ function validate32(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3915
4463
  let vErrors = null;
3916
4464
  let errors = 0;
3917
4465
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -4013,7 +4561,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4013
4561
  if (data.color !== void 0) {
4014
4562
  let data3 = data.color;
4015
4563
  if (!(data3 === "blue" || data3 === "amber" || data3 === "green" || data3 === "violet" || data3 === "rose" || data3 === "slate" || data3 === "coin")) {
4016
- const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
4564
+ 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" };
4017
4565
  if (vErrors === null) {
4018
4566
  vErrors = [err9];
4019
4567
  } else {
@@ -4097,11 +4645,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4097
4645
  }
4098
4646
  errors++;
4099
4647
  }
4100
- validate29.errors = vErrors;
4648
+ validate32.errors = vErrors;
4101
4649
  return errors === 0;
4102
4650
  }
4103
4651
  var pattern4 = new RegExp("^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$", "u");
4104
- function validate32(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4652
+ function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4105
4653
  let vErrors = null;
4106
4654
  let errors = 0;
4107
4655
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -4187,10 +4735,10 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
4187
4735
  }
4188
4736
  errors++;
4189
4737
  }
4190
- validate32.errors = vErrors;
4738
+ validate35.errors = vErrors;
4191
4739
  return errors === 0;
4192
4740
  }
4193
- function validate31(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4741
+ function validate34(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4194
4742
  let vErrors = null;
4195
4743
  let errors = 0;
4196
4744
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -4304,8 +4852,8 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
4304
4852
  }
4305
4853
  const len1 = data3.length;
4306
4854
  for (let i1 = 0; i1 < len1; i1++) {
4307
- if (!validate32(data3[i1], { instancePath: instancePath + "/meters/" + i1, parentData: data3, parentDataProperty: i1, rootData })) {
4308
- vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);
4855
+ if (!validate35(data3[i1], { instancePath: instancePath + "/meters/" + i1, parentData: data3, parentDataProperty: i1, rootData })) {
4856
+ vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
4309
4857
  errors = vErrors.length;
4310
4858
  }
4311
4859
  }
@@ -4328,10 +4876,10 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
4328
4876
  }
4329
4877
  errors++;
4330
4878
  }
4331
- validate31.errors = vErrors;
4879
+ validate34.errors = vErrors;
4332
4880
  return errors === 0;
4333
4881
  }
4334
- function validate36(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4882
+ function validate39(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4335
4883
  let vErrors = null;
4336
4884
  let errors = 0;
4337
4885
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -4417,13 +4965,13 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
4417
4965
  }
4418
4966
  errors++;
4419
4967
  }
4420
- validate36.errors = vErrors;
4968
+ validate39.errors = vErrors;
4421
4969
  return errors === 0;
4422
4970
  }
4423
- var schema80 = { "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": "\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" } } }] };
4971
+ 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" } } }] };
4424
4972
  var pattern14 = new RegExp("^[0-9a-f]{4,40}$", "u");
4425
- var schema84 = { "properties": { "kind": { "enum": ["envelope", "tag", "coin", "none"] }}};
4426
- function validate39(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4973
+ var schema106 = { "properties": { "kind": { "enum": ["envelope", "tag", "coin", "none"] }}};
4974
+ function validate42(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4427
4975
  let vErrors = null;
4428
4976
  let errors = 0;
4429
4977
  const _errs1 = errors;
@@ -4549,7 +5097,7 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
4549
5097
  if (data.kind !== void 0) {
4550
5098
  let data1 = data.kind;
4551
5099
  if (!(data1 === "envelope" || data1 === "tag" || data1 === "coin" || data1 === "none")) {
4552
- const err8 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema84.properties.kind.enum }, message: "must be equal to one of the allowed values" };
5100
+ 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" };
4553
5101
  if (vErrors === null) {
4554
5102
  vErrors = [err8];
4555
5103
  } else {
@@ -4589,10 +5137,10 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
4589
5137
  }
4590
5138
  errors++;
4591
5139
  }
4592
- validate39.errors = vErrors;
5140
+ validate42.errors = vErrors;
4593
5141
  return errors === 0;
4594
5142
  }
4595
- function validate38(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
5143
+ function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4596
5144
  let vErrors = null;
4597
5145
  let errors = 0;
4598
5146
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -4734,15 +5282,15 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
4734
5282
  }
4735
5283
  }
4736
5284
  if (data.carry !== void 0) {
4737
- if (!validate39(data.carry, { instancePath: instancePath + "/carry", parentData: data, parentDataProperty: "carry", rootData })) {
4738
- vErrors = vErrors === null ? validate39.errors : vErrors.concat(validate39.errors);
5285
+ if (!validate42(data.carry, { instancePath: instancePath + "/carry", parentData: data, parentDataProperty: "carry", rootData })) {
5286
+ vErrors = vErrors === null ? validate42.errors : vErrors.concat(validate42.errors);
4739
5287
  errors = vErrors.length;
4740
5288
  }
4741
5289
  }
4742
5290
  if (data.labelSide !== void 0) {
4743
5291
  let data5 = data.labelSide;
4744
5292
  if (!(data5 === "above" || data5 === "below" || data5 === "left" || data5 === "right")) {
4745
- const err13 = { instancePath: instancePath + "/labelSide", schemaPath: "#/oneOf/0/properties/labelSide/enum", keyword: "enum", params: { allowedValues: schema80.oneOf[0].properties.labelSide.enum }, message: "must be equal to one of the allowed values" };
5293
+ 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" };
4746
5294
  if (vErrors === null) {
4747
5295
  vErrors = [err13];
4748
5296
  } else {
@@ -5008,7 +5556,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
5008
5556
  if (data.color !== void 0) {
5009
5557
  let data14 = data.color;
5010
5558
  if (!(data14 === "blue" || data14 === "amber" || data14 === "green" || data14 === "violet" || data14 === "rose" || data14 === "slate" || data14 === "coin")) {
5011
- const err38 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
5559
+ 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" };
5012
5560
  if (vErrors === null) {
5013
5561
  vErrors = [err38];
5014
5562
  } else {
@@ -5536,7 +6084,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
5536
6084
  if (data.color !== void 0) {
5537
6085
  let data31 = data.color;
5538
6086
  if (!(data31 === "blue" || data31 === "amber" || data31 === "green" || data31 === "violet" || data31 === "rose" || data31 === "slate" || data31 === "coin")) {
5539
- const err88 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
6087
+ 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" };
5540
6088
  if (vErrors === null) {
5541
6089
  vErrors = [err88];
5542
6090
  } else {
@@ -5684,7 +6232,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
5684
6232
  }
5685
6233
  if (data.shape !== void 0) {
5686
6234
  if (!(data.shape === "box")) {
5687
- const err102 = { instancePath: instancePath + "/shape", schemaPath: "#/oneOf/7/properties/shape/enum", keyword: "enum", params: { allowedValues: schema80.oneOf[7].properties.shape.enum }, message: "must be equal to one of the allowed values" };
6235
+ 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" };
5688
6236
  if (vErrors === null) {
5689
6237
  vErrors = [err102];
5690
6238
  } else {
@@ -5696,7 +6244,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
5696
6244
  if (data.color !== void 0) {
5697
6245
  let data37 = data.color;
5698
6246
  if (!(data37 === "blue" || data37 === "amber" || data37 === "green" || data37 === "violet" || data37 === "rose" || data37 === "slate" || data37 === "coin")) {
5699
- const err103 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
6247
+ 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" };
5700
6248
  if (vErrors === null) {
5701
6249
  vErrors = [err103];
5702
6250
  } else {
@@ -5958,13 +6506,10 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
5958
6506
  }
5959
6507
  errors++;
5960
6508
  }
5961
- } else if (tag0 === "strip") {
5962
- const _errs142 = errors;
5963
- let valid56 = false;
5964
- const _errs143 = errors;
6509
+ } else if (tag0 === "line") {
5965
6510
  if (data && typeof data == "object" && !Array.isArray(data)) {
5966
- if (data.value === void 0) {
5967
- const err128 = { instancePath, schemaPath: "#/oneOf/10/anyOf/0/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
6511
+ if (data.type === void 0) {
6512
+ const err128 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
5968
6513
  if (vErrors === null) {
5969
6514
  vErrors = [err128];
5970
6515
  } else {
@@ -5972,190 +6517,652 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
5972
6517
  }
5973
6518
  errors++;
5974
6519
  }
5975
- }
5976
- var _valid0 = _errs143 === errors;
5977
- valid56 = valid56 || _valid0;
5978
- if (!valid56) {
5979
- const _errs144 = errors;
5980
- if (data && typeof data == "object" && !Array.isArray(data)) {
5981
- if (data.tag === void 0) {
5982
- const err129 = { instancePath, schemaPath: "#/oneOf/10/anyOf/1/required", keyword: "required", params: { missingProperty: "tag" }, message: "must have required property 'tag'" };
5983
- if (vErrors === null) {
5984
- vErrors = [err129];
5985
- } else {
5986
- vErrors.push(err129);
5987
- }
5988
- errors++;
5989
- }
5990
- }
5991
- var _valid0 = _errs144 === errors;
5992
- valid56 = valid56 || _valid0;
5993
- }
5994
- if (!valid56) {
5995
- const err130 = { instancePath, schemaPath: "#/oneOf/10/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
5996
- if (vErrors === null) {
5997
- vErrors = [err130];
5998
- } else {
5999
- vErrors.push(err130);
6000
- }
6001
- errors++;
6002
- } else {
6003
- errors = _errs142;
6004
- if (vErrors !== null) {
6005
- if (_errs142) {
6006
- vErrors.length = _errs142;
6007
- } else {
6008
- vErrors = null;
6009
- }
6010
- }
6011
- }
6012
- if (data && typeof data == "object" && !Array.isArray(data)) {
6013
- if (data.type === void 0) {
6014
- const err131 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
6520
+ if (data.box === void 0) {
6521
+ const err129 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
6015
6522
  if (vErrors === null) {
6016
- vErrors = [err131];
6523
+ vErrors = [err129];
6017
6524
  } else {
6018
- vErrors.push(err131);
6525
+ vErrors.push(err129);
6019
6526
  }
6020
6527
  errors++;
6021
6528
  }
6022
- if (data.field === void 0) {
6023
- const err132 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "field" }, message: "must have required property 'field'" };
6529
+ if (data.items === void 0) {
6530
+ const err130 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "items" }, message: "must have required property 'items'" };
6024
6531
  if (vErrors === null) {
6025
- vErrors = [err132];
6532
+ vErrors = [err130];
6026
6533
  } else {
6027
- vErrors.push(err132);
6534
+ vErrors.push(err130);
6028
6535
  }
6029
6536
  errors++;
6030
6537
  }
6031
6538
  for (const key10 in data) {
6032
- if (!(key10 === "type" || key10 === "field" || key10 === "value" || key10 === "tag")) {
6033
- const err133 = { instancePath, schemaPath: "#/oneOf/10/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key10 }, message: "must NOT have additional properties" };
6539
+ if (!(key10 === "type" || key10 === "box" || key10 === "items")) {
6540
+ const err131 = { instancePath, schemaPath: "#/oneOf/10/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key10 }, message: "must NOT have additional properties" };
6034
6541
  if (vErrors === null) {
6035
- vErrors = [err133];
6542
+ vErrors = [err131];
6036
6543
  } else {
6037
- vErrors.push(err133);
6544
+ vErrors.push(err131);
6038
6545
  }
6039
6546
  errors++;
6040
6547
  }
6041
6548
  }
6042
6549
  if (data.type !== void 0) {
6043
- if ("strip" !== data.type) {
6044
- const err134 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/10/properties/type/const", keyword: "const", params: { allowedValue: "strip" }, message: "must be equal to constant" };
6550
+ if ("line" !== data.type) {
6551
+ const err132 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/10/properties/type/const", keyword: "const", params: { allowedValue: "line" }, message: "must be equal to constant" };
6045
6552
  if (vErrors === null) {
6046
- vErrors = [err134];
6553
+ vErrors = [err132];
6047
6554
  } else {
6048
- vErrors.push(err134);
6555
+ vErrors.push(err132);
6049
6556
  }
6050
6557
  errors++;
6051
6558
  }
6052
6559
  }
6053
- if (data.field !== void 0) {
6054
- let data47 = data.field;
6560
+ if (data.box !== void 0) {
6561
+ let data47 = data.box;
6055
6562
  if (typeof data47 === "string") {
6056
- if (func3(data47) < 1) {
6057
- const err135 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
6563
+ if (!pattern0.test(data47)) {
6564
+ const err133 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
6058
6565
  if (vErrors === null) {
6059
- vErrors = [err135];
6566
+ vErrors = [err133];
6060
6567
  } else {
6061
- vErrors.push(err135);
6568
+ vErrors.push(err133);
6062
6569
  }
6063
6570
  errors++;
6064
6571
  }
6065
6572
  } else {
6066
- const err136 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6573
+ const err134 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6067
6574
  if (vErrors === null) {
6068
- vErrors = [err136];
6575
+ vErrors = [err134];
6069
6576
  } else {
6070
- vErrors.push(err136);
6577
+ vErrors.push(err134);
6071
6578
  }
6072
6579
  errors++;
6073
6580
  }
6074
6581
  }
6075
- if (data.value !== void 0) {
6076
- let data48 = data.value;
6077
- if (typeof data48 === "string") {
6078
- if (func3(data48) < 1) {
6079
- const err137 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
6582
+ if (data.items !== void 0) {
6583
+ let data48 = data.items;
6584
+ if (Array.isArray(data48)) {
6585
+ if (data48.length > 12) {
6586
+ const err135 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/maxItems", keyword: "maxItems", params: { limit: 12 }, message: "must NOT have more than 12 items" };
6080
6587
  if (vErrors === null) {
6081
- vErrors = [err137];
6588
+ vErrors = [err135];
6082
6589
  } else {
6083
- vErrors.push(err137);
6590
+ vErrors.push(err135);
6084
6591
  }
6085
6592
  errors++;
6086
6593
  }
6087
- } else {
6088
- const err138 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6089
- if (vErrors === null) {
6090
- vErrors = [err138];
6091
- } else {
6092
- vErrors.push(err138);
6093
- }
6094
- errors++;
6095
- }
6096
- }
6097
- if (data.tag !== void 0) {
6098
- let data49 = data.tag;
6099
- if (typeof data49 === "string") {
6100
- if (func3(data49) < 1) {
6101
- const err139 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
6594
+ if (data48.length < 1) {
6595
+ const err136 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
6102
6596
  if (vErrors === null) {
6103
- vErrors = [err139];
6597
+ vErrors = [err136];
6104
6598
  } else {
6105
- vErrors.push(err139);
6599
+ vErrors.push(err136);
6106
6600
  }
6107
6601
  errors++;
6108
6602
  }
6603
+ const len1 = data48.length;
6604
+ for (let i1 = 0; i1 < len1; i1++) {
6605
+ let data49 = data48[i1];
6606
+ if (typeof data49 === "string") {
6607
+ if (!pattern0.test(data49)) {
6608
+ const err137 = { instancePath: instancePath + "/items/" + i1, schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
6609
+ if (vErrors === null) {
6610
+ vErrors = [err137];
6611
+ } else {
6612
+ vErrors.push(err137);
6613
+ }
6614
+ errors++;
6615
+ }
6616
+ } else {
6617
+ const err138 = { instancePath: instancePath + "/items/" + i1, schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6618
+ if (vErrors === null) {
6619
+ vErrors = [err138];
6620
+ } else {
6621
+ vErrors.push(err138);
6622
+ }
6623
+ errors++;
6624
+ }
6625
+ }
6109
6626
  } else {
6110
- const err140 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6627
+ const err139 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/type", keyword: "type", params: { type: "array" }, message: "must be array" };
6111
6628
  if (vErrors === null) {
6112
- vErrors = [err140];
6629
+ vErrors = [err139];
6113
6630
  } else {
6114
- vErrors.push(err140);
6631
+ vErrors.push(err139);
6115
6632
  }
6116
6633
  errors++;
6117
6634
  }
6118
6635
  }
6119
6636
  } else {
6120
- const err141 = { instancePath, schemaPath: "#/oneOf/10/type", keyword: "type", params: { type: "object" }, message: "must be object" };
6637
+ const err140 = { instancePath, schemaPath: "#/oneOf/10/type", keyword: "type", params: { type: "object" }, message: "must be object" };
6121
6638
  if (vErrors === null) {
6122
- vErrors = [err141];
6639
+ vErrors = [err140];
6123
6640
  } else {
6124
- vErrors.push(err141);
6641
+ vErrors.push(err140);
6125
6642
  }
6126
6643
  errors++;
6127
6644
  }
6128
- } else {
6129
- const err142 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag0 }, message: 'value of tag "type" must be in oneOf' };
6130
- if (vErrors === null) {
6131
- vErrors = [err142];
6132
- } else {
6133
- vErrors.push(err142);
6134
- }
6135
- errors++;
6136
- }
6137
- } else {
6138
- const err143 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag0 }, message: 'tag "type" must be string' };
6139
- if (vErrors === null) {
6140
- vErrors = [err143];
6141
- } else {
6142
- vErrors.push(err143);
6143
- }
6645
+ } else if (tag0 === "seal") {
6646
+ if (data && typeof data == "object" && !Array.isArray(data)) {
6647
+ if (data.type === void 0) {
6648
+ const err141 = { instancePath, schemaPath: "#/oneOf/11/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
6649
+ if (vErrors === null) {
6650
+ vErrors = [err141];
6651
+ } else {
6652
+ vErrors.push(err141);
6653
+ }
6654
+ errors++;
6655
+ }
6656
+ if (data.box === void 0) {
6657
+ const err142 = { instancePath, schemaPath: "#/oneOf/11/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
6658
+ if (vErrors === null) {
6659
+ vErrors = [err142];
6660
+ } else {
6661
+ vErrors.push(err142);
6662
+ }
6663
+ errors++;
6664
+ }
6665
+ for (const key11 in data) {
6666
+ if (!(key11 === "type" || key11 === "box")) {
6667
+ const err143 = { instancePath, schemaPath: "#/oneOf/11/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key11 }, message: "must NOT have additional properties" };
6668
+ if (vErrors === null) {
6669
+ vErrors = [err143];
6670
+ } else {
6671
+ vErrors.push(err143);
6672
+ }
6673
+ errors++;
6674
+ }
6675
+ }
6676
+ if (data.type !== void 0) {
6677
+ if ("seal" !== data.type) {
6678
+ const err144 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/11/properties/type/const", keyword: "const", params: { allowedValue: "seal" }, message: "must be equal to constant" };
6679
+ if (vErrors === null) {
6680
+ vErrors = [err144];
6681
+ } else {
6682
+ vErrors.push(err144);
6683
+ }
6684
+ errors++;
6685
+ }
6686
+ }
6687
+ if (data.box !== void 0) {
6688
+ let data51 = data.box;
6689
+ if (typeof data51 === "string") {
6690
+ if (!pattern0.test(data51)) {
6691
+ const err145 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
6692
+ if (vErrors === null) {
6693
+ vErrors = [err145];
6694
+ } else {
6695
+ vErrors.push(err145);
6696
+ }
6697
+ errors++;
6698
+ }
6699
+ } else {
6700
+ const err146 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6701
+ if (vErrors === null) {
6702
+ vErrors = [err146];
6703
+ } else {
6704
+ vErrors.push(err146);
6705
+ }
6706
+ errors++;
6707
+ }
6708
+ }
6709
+ } else {
6710
+ const err147 = { instancePath, schemaPath: "#/oneOf/11/type", keyword: "type", params: { type: "object" }, message: "must be object" };
6711
+ if (vErrors === null) {
6712
+ vErrors = [err147];
6713
+ } else {
6714
+ vErrors.push(err147);
6715
+ }
6716
+ errors++;
6717
+ }
6718
+ } else if (tag0 === "open") {
6719
+ if (data && typeof data == "object" && !Array.isArray(data)) {
6720
+ if (data.type === void 0) {
6721
+ const err148 = { instancePath, schemaPath: "#/oneOf/12/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
6722
+ if (vErrors === null) {
6723
+ vErrors = [err148];
6724
+ } else {
6725
+ vErrors.push(err148);
6726
+ }
6727
+ errors++;
6728
+ }
6729
+ if (data.box === void 0) {
6730
+ const err149 = { instancePath, schemaPath: "#/oneOf/12/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
6731
+ if (vErrors === null) {
6732
+ vErrors = [err149];
6733
+ } else {
6734
+ vErrors.push(err149);
6735
+ }
6736
+ errors++;
6737
+ }
6738
+ for (const key12 in data) {
6739
+ if (!(key12 === "type" || key12 === "box")) {
6740
+ const err150 = { instancePath, schemaPath: "#/oneOf/12/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key12 }, message: "must NOT have additional properties" };
6741
+ if (vErrors === null) {
6742
+ vErrors = [err150];
6743
+ } else {
6744
+ vErrors.push(err150);
6745
+ }
6746
+ errors++;
6747
+ }
6748
+ }
6749
+ if (data.type !== void 0) {
6750
+ if ("open" !== data.type) {
6751
+ const err151 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/12/properties/type/const", keyword: "const", params: { allowedValue: "open" }, message: "must be equal to constant" };
6752
+ if (vErrors === null) {
6753
+ vErrors = [err151];
6754
+ } else {
6755
+ vErrors.push(err151);
6756
+ }
6757
+ errors++;
6758
+ }
6759
+ }
6760
+ if (data.box !== void 0) {
6761
+ let data53 = data.box;
6762
+ if (typeof data53 === "string") {
6763
+ if (!pattern0.test(data53)) {
6764
+ const err152 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
6765
+ if (vErrors === null) {
6766
+ vErrors = [err152];
6767
+ } else {
6768
+ vErrors.push(err152);
6769
+ }
6770
+ errors++;
6771
+ }
6772
+ } else {
6773
+ const err153 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6774
+ if (vErrors === null) {
6775
+ vErrors = [err153];
6776
+ } else {
6777
+ vErrors.push(err153);
6778
+ }
6779
+ errors++;
6780
+ }
6781
+ }
6782
+ } else {
6783
+ const err154 = { instancePath, schemaPath: "#/oneOf/12/type", keyword: "type", params: { type: "object" }, message: "must be object" };
6784
+ if (vErrors === null) {
6785
+ vErrors = [err154];
6786
+ } else {
6787
+ vErrors.push(err154);
6788
+ }
6789
+ errors++;
6790
+ }
6791
+ } else if (tag0 === "pick") {
6792
+ if (data && typeof data == "object" && !Array.isArray(data)) {
6793
+ if (data.type === void 0) {
6794
+ const err155 = { instancePath, schemaPath: "#/oneOf/13/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
6795
+ if (vErrors === null) {
6796
+ vErrors = [err155];
6797
+ } else {
6798
+ vErrors.push(err155);
6799
+ }
6800
+ errors++;
6801
+ }
6802
+ if (data.box === void 0) {
6803
+ const err156 = { instancePath, schemaPath: "#/oneOf/13/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
6804
+ if (vErrors === null) {
6805
+ vErrors = [err156];
6806
+ } else {
6807
+ vErrors.push(err156);
6808
+ }
6809
+ errors++;
6810
+ }
6811
+ for (const key13 in data) {
6812
+ if (!(key13 === "type" || key13 === "box")) {
6813
+ const err157 = { instancePath, schemaPath: "#/oneOf/13/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key13 }, message: "must NOT have additional properties" };
6814
+ if (vErrors === null) {
6815
+ vErrors = [err157];
6816
+ } else {
6817
+ vErrors.push(err157);
6818
+ }
6819
+ errors++;
6820
+ }
6821
+ }
6822
+ if (data.type !== void 0) {
6823
+ if ("pick" !== data.type) {
6824
+ const err158 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/13/properties/type/const", keyword: "const", params: { allowedValue: "pick" }, message: "must be equal to constant" };
6825
+ if (vErrors === null) {
6826
+ vErrors = [err158];
6827
+ } else {
6828
+ vErrors.push(err158);
6829
+ }
6830
+ errors++;
6831
+ }
6832
+ }
6833
+ if (data.box !== void 0) {
6834
+ let data55 = data.box;
6835
+ if (typeof data55 === "string") {
6836
+ if (!pattern0.test(data55)) {
6837
+ const err159 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
6838
+ if (vErrors === null) {
6839
+ vErrors = [err159];
6840
+ } else {
6841
+ vErrors.push(err159);
6842
+ }
6843
+ errors++;
6844
+ }
6845
+ } else {
6846
+ const err160 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6847
+ if (vErrors === null) {
6848
+ vErrors = [err160];
6849
+ } else {
6850
+ vErrors.push(err160);
6851
+ }
6852
+ errors++;
6853
+ }
6854
+ }
6855
+ } else {
6856
+ const err161 = { instancePath, schemaPath: "#/oneOf/13/type", keyword: "type", params: { type: "object" }, message: "must be object" };
6857
+ if (vErrors === null) {
6858
+ vErrors = [err161];
6859
+ } else {
6860
+ vErrors.push(err161);
6861
+ }
6862
+ errors++;
6863
+ }
6864
+ } else if (tag0 === "stamp") {
6865
+ if (data && typeof data == "object" && !Array.isArray(data)) {
6866
+ if (data.type === void 0) {
6867
+ const err162 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
6868
+ if (vErrors === null) {
6869
+ vErrors = [err162];
6870
+ } else {
6871
+ vErrors.push(err162);
6872
+ }
6873
+ errors++;
6874
+ }
6875
+ if (data.box === void 0) {
6876
+ const err163 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
6877
+ if (vErrors === null) {
6878
+ vErrors = [err163];
6879
+ } else {
6880
+ vErrors.push(err163);
6881
+ }
6882
+ errors++;
6883
+ }
6884
+ if (data.text === void 0) {
6885
+ const err164 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "text" }, message: "must have required property 'text'" };
6886
+ if (vErrors === null) {
6887
+ vErrors = [err164];
6888
+ } else {
6889
+ vErrors.push(err164);
6890
+ }
6891
+ errors++;
6892
+ }
6893
+ for (const key14 in data) {
6894
+ if (!(key14 === "type" || key14 === "box" || key14 === "text")) {
6895
+ const err165 = { instancePath, schemaPath: "#/oneOf/14/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key14 }, message: "must NOT have additional properties" };
6896
+ if (vErrors === null) {
6897
+ vErrors = [err165];
6898
+ } else {
6899
+ vErrors.push(err165);
6900
+ }
6901
+ errors++;
6902
+ }
6903
+ }
6904
+ if (data.type !== void 0) {
6905
+ if ("stamp" !== data.type) {
6906
+ const err166 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/14/properties/type/const", keyword: "const", params: { allowedValue: "stamp" }, message: "must be equal to constant" };
6907
+ if (vErrors === null) {
6908
+ vErrors = [err166];
6909
+ } else {
6910
+ vErrors.push(err166);
6911
+ }
6912
+ errors++;
6913
+ }
6914
+ }
6915
+ if (data.box !== void 0) {
6916
+ let data57 = data.box;
6917
+ if (typeof data57 === "string") {
6918
+ if (!pattern0.test(data57)) {
6919
+ const err167 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
6920
+ if (vErrors === null) {
6921
+ vErrors = [err167];
6922
+ } else {
6923
+ vErrors.push(err167);
6924
+ }
6925
+ errors++;
6926
+ }
6927
+ } else {
6928
+ const err168 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6929
+ if (vErrors === null) {
6930
+ vErrors = [err168];
6931
+ } else {
6932
+ vErrors.push(err168);
6933
+ }
6934
+ errors++;
6935
+ }
6936
+ }
6937
+ if (data.text !== void 0) {
6938
+ let data58 = data.text;
6939
+ if (typeof data58 === "string") {
6940
+ if (func3(data58) < 1) {
6941
+ const err169 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
6942
+ if (vErrors === null) {
6943
+ vErrors = [err169];
6944
+ } else {
6945
+ vErrors.push(err169);
6946
+ }
6947
+ errors++;
6948
+ }
6949
+ } else {
6950
+ const err170 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6951
+ if (vErrors === null) {
6952
+ vErrors = [err170];
6953
+ } else {
6954
+ vErrors.push(err170);
6955
+ }
6956
+ errors++;
6957
+ }
6958
+ }
6959
+ } else {
6960
+ const err171 = { instancePath, schemaPath: "#/oneOf/14/type", keyword: "type", params: { type: "object" }, message: "must be object" };
6961
+ if (vErrors === null) {
6962
+ vErrors = [err171];
6963
+ } else {
6964
+ vErrors.push(err171);
6965
+ }
6966
+ errors++;
6967
+ }
6968
+ } else if (tag0 === "strip") {
6969
+ const _errs185 = errors;
6970
+ let valid75 = false;
6971
+ const _errs186 = errors;
6972
+ if (data && typeof data == "object" && !Array.isArray(data)) {
6973
+ if (data.value === void 0) {
6974
+ const err172 = { instancePath, schemaPath: "#/oneOf/15/anyOf/0/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
6975
+ if (vErrors === null) {
6976
+ vErrors = [err172];
6977
+ } else {
6978
+ vErrors.push(err172);
6979
+ }
6980
+ errors++;
6981
+ }
6982
+ }
6983
+ var _valid0 = _errs186 === errors;
6984
+ valid75 = valid75 || _valid0;
6985
+ if (!valid75) {
6986
+ const _errs187 = errors;
6987
+ if (data && typeof data == "object" && !Array.isArray(data)) {
6988
+ if (data.tag === void 0) {
6989
+ const err173 = { instancePath, schemaPath: "#/oneOf/15/anyOf/1/required", keyword: "required", params: { missingProperty: "tag" }, message: "must have required property 'tag'" };
6990
+ if (vErrors === null) {
6991
+ vErrors = [err173];
6992
+ } else {
6993
+ vErrors.push(err173);
6994
+ }
6995
+ errors++;
6996
+ }
6997
+ }
6998
+ var _valid0 = _errs187 === errors;
6999
+ valid75 = valid75 || _valid0;
7000
+ }
7001
+ if (!valid75) {
7002
+ const err174 = { instancePath, schemaPath: "#/oneOf/15/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
7003
+ if (vErrors === null) {
7004
+ vErrors = [err174];
7005
+ } else {
7006
+ vErrors.push(err174);
7007
+ }
7008
+ errors++;
7009
+ } else {
7010
+ errors = _errs185;
7011
+ if (vErrors !== null) {
7012
+ if (_errs185) {
7013
+ vErrors.length = _errs185;
7014
+ } else {
7015
+ vErrors = null;
7016
+ }
7017
+ }
7018
+ }
7019
+ if (data && typeof data == "object" && !Array.isArray(data)) {
7020
+ if (data.type === void 0) {
7021
+ const err175 = { instancePath, schemaPath: "#/oneOf/15/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
7022
+ if (vErrors === null) {
7023
+ vErrors = [err175];
7024
+ } else {
7025
+ vErrors.push(err175);
7026
+ }
7027
+ errors++;
7028
+ }
7029
+ if (data.field === void 0) {
7030
+ const err176 = { instancePath, schemaPath: "#/oneOf/15/required", keyword: "required", params: { missingProperty: "field" }, message: "must have required property 'field'" };
7031
+ if (vErrors === null) {
7032
+ vErrors = [err176];
7033
+ } else {
7034
+ vErrors.push(err176);
7035
+ }
7036
+ errors++;
7037
+ }
7038
+ for (const key15 in data) {
7039
+ if (!(key15 === "type" || key15 === "field" || key15 === "value" || key15 === "tag")) {
7040
+ const err177 = { instancePath, schemaPath: "#/oneOf/15/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key15 }, message: "must NOT have additional properties" };
7041
+ if (vErrors === null) {
7042
+ vErrors = [err177];
7043
+ } else {
7044
+ vErrors.push(err177);
7045
+ }
7046
+ errors++;
7047
+ }
7048
+ }
7049
+ if (data.type !== void 0) {
7050
+ if ("strip" !== data.type) {
7051
+ const err178 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/15/properties/type/const", keyword: "const", params: { allowedValue: "strip" }, message: "must be equal to constant" };
7052
+ if (vErrors === null) {
7053
+ vErrors = [err178];
7054
+ } else {
7055
+ vErrors.push(err178);
7056
+ }
7057
+ errors++;
7058
+ }
7059
+ }
7060
+ if (data.field !== void 0) {
7061
+ let data60 = data.field;
7062
+ if (typeof data60 === "string") {
7063
+ if (func3(data60) < 1) {
7064
+ const err179 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
7065
+ if (vErrors === null) {
7066
+ vErrors = [err179];
7067
+ } else {
7068
+ vErrors.push(err179);
7069
+ }
7070
+ errors++;
7071
+ }
7072
+ } else {
7073
+ const err180 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7074
+ if (vErrors === null) {
7075
+ vErrors = [err180];
7076
+ } else {
7077
+ vErrors.push(err180);
7078
+ }
7079
+ errors++;
7080
+ }
7081
+ }
7082
+ if (data.value !== void 0) {
7083
+ let data61 = data.value;
7084
+ if (typeof data61 === "string") {
7085
+ if (func3(data61) < 1) {
7086
+ const err181 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
7087
+ if (vErrors === null) {
7088
+ vErrors = [err181];
7089
+ } else {
7090
+ vErrors.push(err181);
7091
+ }
7092
+ errors++;
7093
+ }
7094
+ } else {
7095
+ const err182 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7096
+ if (vErrors === null) {
7097
+ vErrors = [err182];
7098
+ } else {
7099
+ vErrors.push(err182);
7100
+ }
7101
+ errors++;
7102
+ }
7103
+ }
7104
+ if (data.tag !== void 0) {
7105
+ let data62 = data.tag;
7106
+ if (typeof data62 === "string") {
7107
+ if (func3(data62) < 1) {
7108
+ const err183 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
7109
+ if (vErrors === null) {
7110
+ vErrors = [err183];
7111
+ } else {
7112
+ vErrors.push(err183);
7113
+ }
7114
+ errors++;
7115
+ }
7116
+ } else {
7117
+ const err184 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7118
+ if (vErrors === null) {
7119
+ vErrors = [err184];
7120
+ } else {
7121
+ vErrors.push(err184);
7122
+ }
7123
+ errors++;
7124
+ }
7125
+ }
7126
+ } else {
7127
+ const err185 = { instancePath, schemaPath: "#/oneOf/15/type", keyword: "type", params: { type: "object" }, message: "must be object" };
7128
+ if (vErrors === null) {
7129
+ vErrors = [err185];
7130
+ } else {
7131
+ vErrors.push(err185);
7132
+ }
7133
+ errors++;
7134
+ }
7135
+ } else {
7136
+ const err186 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag0 }, message: 'value of tag "type" must be in oneOf' };
7137
+ if (vErrors === null) {
7138
+ vErrors = [err186];
7139
+ } else {
7140
+ vErrors.push(err186);
7141
+ }
7142
+ errors++;
7143
+ }
7144
+ } else {
7145
+ const err187 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag0 }, message: 'tag "type" must be string' };
7146
+ if (vErrors === null) {
7147
+ vErrors = [err187];
7148
+ } else {
7149
+ vErrors.push(err187);
7150
+ }
6144
7151
  errors++;
6145
7152
  }
6146
7153
  } else {
6147
- const err144 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
7154
+ const err188 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
6148
7155
  if (vErrors === null) {
6149
- vErrors = [err144];
7156
+ vErrors = [err188];
6150
7157
  } else {
6151
- vErrors.push(err144);
7158
+ vErrors.push(err188);
6152
7159
  }
6153
7160
  errors++;
6154
7161
  }
6155
- validate38.errors = vErrors;
7162
+ validate41.errors = vErrors;
6156
7163
  return errors === 0;
6157
7164
  }
6158
- function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
7165
+ function validate38(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
6159
7166
  let vErrors = null;
6160
7167
  let errors = 0;
6161
7168
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -6277,8 +7284,8 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
6277
7284
  }
6278
7285
  const len0 = data3.length;
6279
7286
  for (let i0 = 0; i0 < len0; i0++) {
6280
- if (!validate36(data3[i0], { instancePath: instancePath + "/sources/" + i0, parentData: data3, parentDataProperty: i0, rootData })) {
6281
- vErrors = vErrors === null ? validate36.errors : vErrors.concat(validate36.errors);
7287
+ if (!validate39(data3[i0], { instancePath: instancePath + "/sources/" + i0, parentData: data3, parentDataProperty: i0, rootData })) {
7288
+ vErrors = vErrors === null ? validate39.errors : vErrors.concat(validate39.errors);
6282
7289
  errors = vErrors.length;
6283
7290
  }
6284
7291
  }
@@ -6297,8 +7304,8 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
6297
7304
  if (Array.isArray(data5)) {
6298
7305
  const len1 = data5.length;
6299
7306
  for (let i1 = 0; i1 < len1; i1++) {
6300
- if (!validate38(data5[i1], { instancePath: instancePath + "/events/" + i1, parentData: data5, parentDataProperty: i1, rootData })) {
6301
- vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);
7307
+ if (!validate41(data5[i1], { instancePath: instancePath + "/events/" + i1, parentData: data5, parentDataProperty: i1, rootData })) {
7308
+ vErrors = vErrors === null ? validate41.errors : vErrors.concat(validate41.errors);
6302
7309
  errors = vErrors.length;
6303
7310
  }
6304
7311
  }
@@ -6321,10 +7328,10 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
6321
7328
  }
6322
7329
  errors++;
6323
7330
  }
6324
- validate35.errors = vErrors;
7331
+ validate38.errors = vErrors;
6325
7332
  return errors === 0;
6326
7333
  }
6327
- function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
7334
+ function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
6328
7335
  let vErrors = null;
6329
7336
  let errors = 0;
6330
7337
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -6402,10 +7409,10 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
6402
7409
  }
6403
7410
  errors++;
6404
7411
  }
6405
- validate43.errors = vErrors;
7412
+ validate46.errors = vErrors;
6406
7413
  return errors === 0;
6407
7414
  }
6408
- function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
7415
+ function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
6409
7416
  let vErrors = null;
6410
7417
  let errors = 0;
6411
7418
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -6513,10 +7520,10 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
6513
7520
  }
6514
7521
  errors++;
6515
7522
  }
6516
- validate46.errors = vErrors;
7523
+ validate49.errors = vErrors;
6517
7524
  return errors === 0;
6518
7525
  }
6519
- function validate45(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
7526
+ function validate48(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
6520
7527
  let vErrors = null;
6521
7528
  let errors = 0;
6522
7529
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -6554,8 +7561,8 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
6554
7561
  }
6555
7562
  const len0 = data0.length;
6556
7563
  for (let i0 = 0; i0 < len0; i0++) {
6557
- if (!validate46(data0[i0], { instancePath: instancePath + "/paths/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
6558
- vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
7564
+ if (!validate49(data0[i0], { instancePath: instancePath + "/paths/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
7565
+ vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);
6559
7566
  errors = vErrors.length;
6560
7567
  }
6561
7568
  }
@@ -6578,10 +7585,10 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
6578
7585
  }
6579
7586
  errors++;
6580
7587
  }
6581
- validate45.errors = vErrors;
7588
+ validate48.errors = vErrors;
6582
7589
  return errors === 0;
6583
7590
  }
6584
- function validate50(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
7591
+ function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
6585
7592
  let vErrors = null;
6586
7593
  let errors = 0;
6587
7594
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -6658,10 +7665,10 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
6658
7665
  }
6659
7666
  errors++;
6660
7667
  }
6661
- validate50.errors = vErrors;
7668
+ validate53.errors = vErrors;
6662
7669
  return errors === 0;
6663
7670
  }
6664
- function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
7671
+ function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
6665
7672
  let vErrors = null;
6666
7673
  let errors = 0;
6667
7674
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -6699,8 +7706,8 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
6699
7706
  }
6700
7707
  const len0 = data0.length;
6701
7708
  for (let i0 = 0; i0 < len0; i0++) {
6702
- if (!validate50(data0[i0], { instancePath: instancePath + "/branches/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
6703
- vErrors = vErrors === null ? validate50.errors : vErrors.concat(validate50.errors);
7709
+ if (!validate53(data0[i0], { instancePath: instancePath + "/branches/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
7710
+ vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);
6704
7711
  errors = vErrors.length;
6705
7712
  }
6706
7713
  }
@@ -6723,11 +7730,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
6723
7730
  }
6724
7731
  errors++;
6725
7732
  }
6726
- validate49.errors = vErrors;
7733
+ validate52.errors = vErrors;
6727
7734
  return errors === 0;
6728
7735
  }
6729
- var pattern27 = new RegExp("^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$", "u");
6730
- function validate54(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
7736
+ var pattern33 = new RegExp("^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$", "u");
7737
+ function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
6731
7738
  let vErrors = null;
6732
7739
  let errors = 0;
6733
7740
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -6794,7 +7801,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
6794
7801
  if (data.length !== void 0) {
6795
7802
  let data1 = data.length;
6796
7803
  if (typeof data1 === "string") {
6797
- if (!pattern27.test(data1)) {
7804
+ if (!pattern33.test(data1)) {
6798
7805
  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)$"' };
6799
7806
  if (vErrors === null) {
6800
7807
  vErrors = [err6];
@@ -6868,10 +7875,10 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
6868
7875
  }
6869
7876
  errors++;
6870
7877
  }
6871
- validate54.errors = vErrors;
7878
+ validate57.errors = vErrors;
6872
7879
  return errors === 0;
6873
7880
  }
6874
- function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
7881
+ function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
6875
7882
  let vErrors = null;
6876
7883
  let errors = 0;
6877
7884
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -6981,10 +7988,10 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
6981
7988
  }
6982
7989
  errors++;
6983
7990
  }
6984
- validate56.errors = vErrors;
7991
+ validate59.errors = vErrors;
6985
7992
  return errors === 0;
6986
7993
  }
6987
- function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
7994
+ function validate61(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
6988
7995
  let vErrors = null;
6989
7996
  let errors = 0;
6990
7997
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -7064,7 +8071,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
7064
8071
  if (data.color !== void 0) {
7065
8072
  let data2 = data.color;
7066
8073
  if (!(data2 === "blue" || data2 === "amber" || data2 === "green" || data2 === "violet" || data2 === "rose" || data2 === "slate" || data2 === "coin")) {
7067
- const err7 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
8074
+ 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" };
7068
8075
  if (vErrors === null) {
7069
8076
  vErrors = [err7];
7070
8077
  } else {
@@ -7119,10 +8126,10 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
7119
8126
  }
7120
8127
  errors++;
7121
8128
  }
7122
- validate58.errors = vErrors;
8129
+ validate61.errors = vErrors;
7123
8130
  return errors === 0;
7124
8131
  }
7125
- function validate60(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
8132
+ function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
7126
8133
  let vErrors = null;
7127
8134
  let errors = 0;
7128
8135
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -7209,10 +8216,10 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
7209
8216
  }
7210
8217
  errors++;
7211
8218
  }
7212
- validate60.errors = vErrors;
8219
+ validate63.errors = vErrors;
7213
8220
  return errors === 0;
7214
8221
  }
7215
- function validate62(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
8222
+ function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
7216
8223
  let vErrors = null;
7217
8224
  let errors = 0;
7218
8225
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -7300,10 +8307,10 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
7300
8307
  }
7301
8308
  errors++;
7302
8309
  }
7303
- validate62.errors = vErrors;
8310
+ validate65.errors = vErrors;
7304
8311
  return errors === 0;
7305
8312
  }
7306
- function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
8313
+ function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
7307
8314
  let vErrors = null;
7308
8315
  let errors = 0;
7309
8316
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -7337,14 +8344,14 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
7337
8344
  }
7338
8345
  }
7339
8346
  if (data.scale !== void 0) {
7340
- if (!validate54(data.scale, { instancePath: instancePath + "/scale", parentData: data, parentDataProperty: "scale", rootData })) {
7341
- vErrors = vErrors === null ? validate54.errors : vErrors.concat(validate54.errors);
8347
+ if (!validate57(data.scale, { instancePath: instancePath + "/scale", parentData: data, parentDataProperty: "scale", rootData })) {
8348
+ vErrors = vErrors === null ? validate57.errors : vErrors.concat(validate57.errors);
7342
8349
  errors = vErrors.length;
7343
8350
  }
7344
8351
  }
7345
8352
  if (data.period !== void 0) {
7346
- if (!validate56(data.period, { instancePath: instancePath + "/period", parentData: data, parentDataProperty: "period", rootData })) {
7347
- vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);
8353
+ if (!validate59(data.period, { instancePath: instancePath + "/period", parentData: data, parentDataProperty: "period", rootData })) {
8354
+ vErrors = vErrors === null ? validate59.errors : vErrors.concat(validate59.errors);
7348
8355
  errors = vErrors.length;
7349
8356
  }
7350
8357
  }
@@ -7362,8 +8369,8 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
7362
8369
  }
7363
8370
  const len0 = data2.length;
7364
8371
  for (let i0 = 0; i0 < len0; i0++) {
7365
- if (!validate58(data2[i0], { instancePath: instancePath + "/rows/" + i0, parentData: data2, parentDataProperty: i0, rootData })) {
7366
- vErrors = vErrors === null ? validate58.errors : vErrors.concat(validate58.errors);
8372
+ if (!validate61(data2[i0], { instancePath: instancePath + "/rows/" + i0, parentData: data2, parentDataProperty: i0, rootData })) {
8373
+ vErrors = vErrors === null ? validate61.errors : vErrors.concat(validate61.errors);
7367
8374
  errors = vErrors.length;
7368
8375
  }
7369
8376
  }
@@ -7382,8 +8389,8 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
7382
8389
  if (Array.isArray(data4)) {
7383
8390
  const len1 = data4.length;
7384
8391
  for (let i1 = 0; i1 < len1; i1++) {
7385
- if (!validate60(data4[i1], { instancePath: instancePath + "/points/" + i1, parentData: data4, parentDataProperty: i1, rootData })) {
7386
- vErrors = vErrors === null ? validate60.errors : vErrors.concat(validate60.errors);
8392
+ if (!validate63(data4[i1], { instancePath: instancePath + "/points/" + i1, parentData: data4, parentDataProperty: i1, rootData })) {
8393
+ vErrors = vErrors === null ? validate63.errors : vErrors.concat(validate63.errors);
7387
8394
  errors = vErrors.length;
7388
8395
  }
7389
8396
  }
@@ -7398,8 +8405,8 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
7398
8405
  }
7399
8406
  }
7400
8407
  if (data.zoom !== void 0) {
7401
- if (!validate62(data.zoom, { instancePath: instancePath + "/zoom", parentData: data, parentDataProperty: "zoom", rootData })) {
7402
- vErrors = vErrors === null ? validate62.errors : vErrors.concat(validate62.errors);
8408
+ if (!validate65(data.zoom, { instancePath: instancePath + "/zoom", parentData: data, parentDataProperty: "zoom", rootData })) {
8409
+ vErrors = vErrors === null ? validate65.errors : vErrors.concat(validate65.errors);
7403
8410
  errors = vErrors.length;
7404
8411
  }
7405
8412
  }
@@ -7412,7 +8419,173 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
7412
8419
  }
7413
8420
  errors++;
7414
8421
  }
7415
- validate53.errors = vErrors;
8422
+ validate56.errors = vErrors;
8423
+ return errors === 0;
8424
+ }
8425
+ function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
8426
+ let vErrors = null;
8427
+ let errors = 0;
8428
+ if (data && typeof data == "object" && !Array.isArray(data)) {
8429
+ if (data.id === void 0) {
8430
+ const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
8431
+ if (vErrors === null) {
8432
+ vErrors = [err0];
8433
+ } else {
8434
+ vErrors.push(err0);
8435
+ }
8436
+ errors++;
8437
+ }
8438
+ for (const key0 in data) {
8439
+ if (!(key0 === "id" || key0 === "color" || key0 === "label")) {
8440
+ const err1 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
8441
+ if (vErrors === null) {
8442
+ vErrors = [err1];
8443
+ } else {
8444
+ vErrors.push(err1);
8445
+ }
8446
+ errors++;
8447
+ }
8448
+ }
8449
+ if (data.id !== void 0) {
8450
+ let data0 = data.id;
8451
+ if (typeof data0 === "string") {
8452
+ if (!pattern0.test(data0)) {
8453
+ const err2 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
8454
+ if (vErrors === null) {
8455
+ vErrors = [err2];
8456
+ } else {
8457
+ vErrors.push(err2);
8458
+ }
8459
+ errors++;
8460
+ }
8461
+ } else {
8462
+ const err3 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8463
+ if (vErrors === null) {
8464
+ vErrors = [err3];
8465
+ } else {
8466
+ vErrors.push(err3);
8467
+ }
8468
+ errors++;
8469
+ }
8470
+ }
8471
+ if (data.color !== void 0) {
8472
+ let data1 = data.color;
8473
+ if (!(data1 === "blue" || data1 === "amber" || data1 === "green" || data1 === "violet" || data1 === "rose" || data1 === "slate" || data1 === "coin")) {
8474
+ 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" };
8475
+ if (vErrors === null) {
8476
+ vErrors = [err4];
8477
+ } else {
8478
+ vErrors.push(err4);
8479
+ }
8480
+ errors++;
8481
+ }
8482
+ }
8483
+ if (data.label !== void 0) {
8484
+ let data2 = data.label;
8485
+ if (typeof data2 === "string") {
8486
+ if (func3(data2) > 4) {
8487
+ const err5 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/maxLength", keyword: "maxLength", params: { limit: 4 }, message: "must NOT have more than 4 characters" };
8488
+ if (vErrors === null) {
8489
+ vErrors = [err5];
8490
+ } else {
8491
+ vErrors.push(err5);
8492
+ }
8493
+ errors++;
8494
+ }
8495
+ if (func3(data2) < 1) {
8496
+ const err6 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
8497
+ if (vErrors === null) {
8498
+ vErrors = [err6];
8499
+ } else {
8500
+ vErrors.push(err6);
8501
+ }
8502
+ errors++;
8503
+ }
8504
+ } else {
8505
+ const err7 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8506
+ if (vErrors === null) {
8507
+ vErrors = [err7];
8508
+ } else {
8509
+ vErrors.push(err7);
8510
+ }
8511
+ errors++;
8512
+ }
8513
+ }
8514
+ } else {
8515
+ const err8 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8516
+ if (vErrors === null) {
8517
+ vErrors = [err8];
8518
+ } else {
8519
+ vErrors.push(err8);
8520
+ }
8521
+ errors++;
8522
+ }
8523
+ validate69.errors = vErrors;
8524
+ return errors === 0;
8525
+ }
8526
+ function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
8527
+ let vErrors = null;
8528
+ let errors = 0;
8529
+ if (data && typeof data == "object" && !Array.isArray(data)) {
8530
+ if (data.items === void 0) {
8531
+ const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "items" }, message: "must have required property 'items'" };
8532
+ if (vErrors === null) {
8533
+ vErrors = [err0];
8534
+ } else {
8535
+ vErrors.push(err0);
8536
+ }
8537
+ errors++;
8538
+ }
8539
+ for (const key0 in data) {
8540
+ if (!(key0 === "items")) {
8541
+ const err1 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
8542
+ if (vErrors === null) {
8543
+ vErrors = [err1];
8544
+ } else {
8545
+ vErrors.push(err1);
8546
+ }
8547
+ errors++;
8548
+ }
8549
+ }
8550
+ if (data.items !== void 0) {
8551
+ let data0 = data.items;
8552
+ if (Array.isArray(data0)) {
8553
+ if (data0.length < 1) {
8554
+ const err2 = { instancePath: instancePath + "/items", schemaPath: "#/properties/items/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
8555
+ if (vErrors === null) {
8556
+ vErrors = [err2];
8557
+ } else {
8558
+ vErrors.push(err2);
8559
+ }
8560
+ errors++;
8561
+ }
8562
+ const len0 = data0.length;
8563
+ for (let i0 = 0; i0 < len0; i0++) {
8564
+ if (!validate69(data0[i0], { instancePath: instancePath + "/items/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
8565
+ vErrors = vErrors === null ? validate69.errors : vErrors.concat(validate69.errors);
8566
+ errors = vErrors.length;
8567
+ }
8568
+ }
8569
+ } else {
8570
+ const err3 = { instancePath: instancePath + "/items", schemaPath: "#/properties/items/type", keyword: "type", params: { type: "array" }, message: "must be array" };
8571
+ if (vErrors === null) {
8572
+ vErrors = [err3];
8573
+ } else {
8574
+ vErrors.push(err3);
8575
+ }
8576
+ errors++;
8577
+ }
8578
+ }
8579
+ } else {
8580
+ const err4 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8581
+ if (vErrors === null) {
8582
+ vErrors = [err4];
8583
+ } else {
8584
+ vErrors.push(err4);
8585
+ }
8586
+ errors++;
8587
+ }
8588
+ validate68.errors = vErrors;
7416
8589
  return errors === 0;
7417
8590
  }
7418
8591
  var func2 = Object.prototype.hasOwnProperty;
@@ -7520,94 +8693,103 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
7520
8693
  }
7521
8694
  errors++;
7522
8695
  }
8696
+ if (data.lineup !== void 0) {
8697
+ const err7 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
8698
+ if (vErrors === null) {
8699
+ vErrors = [err7];
8700
+ } else {
8701
+ vErrors.push(err7);
8702
+ }
8703
+ errors++;
8704
+ }
7523
8705
  }
7524
8706
  var _valid0 = _errs4 === errors;
7525
8707
  valid0 = _valid0;
7526
8708
  ifClause0 = "then";
7527
8709
  } else {
7528
- const _errs17 = errors;
7529
- const _errs18 = errors;
7530
- let valid6 = true;
7531
- const _errs19 = errors;
8710
+ const _errs20 = errors;
8711
+ const _errs21 = errors;
8712
+ let valid7 = true;
8713
+ const _errs22 = errors;
7532
8714
  if (data && typeof data == "object" && !Array.isArray(data)) {
7533
8715
  if (data.kind === void 0 && ("kind")) {
7534
- const err7 = {};
8716
+ const err8 = {};
7535
8717
  if (vErrors === null) {
7536
- vErrors = [err7];
8718
+ vErrors = [err8];
7537
8719
  } else {
7538
- vErrors.push(err7);
8720
+ vErrors.push(err8);
7539
8721
  }
7540
8722
  errors++;
7541
8723
  } else {
7542
8724
  if (data.kind !== void 0) {
7543
8725
  if ("state" !== data.kind) {
7544
- const err8 = {};
8726
+ const err9 = {};
7545
8727
  if (vErrors === null) {
7546
- vErrors = [err8];
8728
+ vErrors = [err9];
7547
8729
  } else {
7548
- vErrors.push(err8);
8730
+ vErrors.push(err9);
7549
8731
  }
7550
8732
  errors++;
7551
8733
  }
7552
8734
  }
7553
8735
  }
7554
8736
  }
7555
- var _valid1 = _errs19 === errors;
7556
- errors = _errs18;
8737
+ var _valid1 = _errs22 === errors;
8738
+ errors = _errs21;
7557
8739
  if (vErrors !== null) {
7558
- if (_errs18) {
7559
- vErrors.length = _errs18;
8740
+ if (_errs21) {
8741
+ vErrors.length = _errs21;
7560
8742
  } else {
7561
8743
  vErrors = null;
7562
8744
  }
7563
8745
  }
7564
8746
  let ifClause1;
7565
8747
  if (_valid1) {
7566
- const _errs21 = errors;
8748
+ const _errs24 = errors;
7567
8749
  if (data && typeof data == "object" && !Array.isArray(data)) {
7568
8750
  if (data.boxes !== void 0) {
7569
- let data8 = data.boxes;
7570
- if (Array.isArray(data8)) {
7571
- if (data8.length < 1) {
7572
- const err9 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/then/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
8751
+ let data9 = data.boxes;
8752
+ if (Array.isArray(data9)) {
8753
+ if (data9.length < 1) {
8754
+ const err10 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/then/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
7573
8755
  if (vErrors === null) {
7574
- vErrors = [err9];
8756
+ vErrors = [err10];
7575
8757
  } else {
7576
- vErrors.push(err9);
8758
+ vErrors.push(err10);
7577
8759
  }
7578
8760
  errors++;
7579
8761
  }
7580
- const len0 = data8.length;
8762
+ const len0 = data9.length;
7581
8763
  for (let i0 = 0; i0 < len0; i0++) {
7582
- let data9 = data8[i0];
7583
- if (data9 && typeof data9 == "object" && !Array.isArray(data9)) {
7584
- if (data9.id !== void 0) {
7585
- let data10 = data9.id;
7586
- const _errs25 = errors;
7587
- const _errs26 = errors;
7588
- if (!(data10 === "start" || data10 === "finish")) {
7589
- const err10 = {};
8764
+ let data10 = data9[i0];
8765
+ if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
8766
+ if (data10.id !== void 0) {
8767
+ let data11 = data10.id;
8768
+ const _errs28 = errors;
8769
+ const _errs29 = errors;
8770
+ if (!(data11 === "start" || data11 === "finish")) {
8771
+ const err11 = {};
7590
8772
  if (vErrors === null) {
7591
- vErrors = [err10];
8773
+ vErrors = [err11];
7592
8774
  } else {
7593
- vErrors.push(err10);
8775
+ vErrors.push(err11);
7594
8776
  }
7595
8777
  errors++;
7596
8778
  }
7597
- var valid12 = _errs26 === errors;
7598
- if (valid12) {
7599
- const err11 = { instancePath: instancePath + "/boxes/" + i0 + "/id", schemaPath: "#/else/then/properties/boxes/items/properties/id/not", keyword: "not", params: {}, message: "must NOT be valid" };
8779
+ var valid13 = _errs29 === errors;
8780
+ if (valid13) {
8781
+ const err12 = { instancePath: instancePath + "/boxes/" + i0 + "/id", schemaPath: "#/else/then/properties/boxes/items/properties/id/not", keyword: "not", params: {}, message: "must NOT be valid" };
7600
8782
  if (vErrors === null) {
7601
- vErrors = [err11];
8783
+ vErrors = [err12];
7602
8784
  } else {
7603
- vErrors.push(err11);
8785
+ vErrors.push(err12);
7604
8786
  }
7605
8787
  errors++;
7606
8788
  } else {
7607
- errors = _errs25;
8789
+ errors = _errs28;
7608
8790
  if (vErrors !== null) {
7609
- if (_errs25) {
7610
- vErrors.length = _errs25;
8791
+ if (_errs28) {
8792
+ vErrors.length = _errs28;
7611
8793
  } else {
7612
8794
  vErrors = null;
7613
8795
  }
@@ -7631,74 +8813,83 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
7631
8813
  }
7632
8814
  }
7633
8815
  if (data.git !== void 0) {
7634
- const err12 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
8816
+ const err13 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
7635
8817
  if (vErrors === null) {
7636
- vErrors = [err12];
8818
+ vErrors = [err13];
7637
8819
  } else {
7638
- vErrors.push(err12);
8820
+ vErrors.push(err13);
7639
8821
  }
7640
8822
  errors++;
7641
8823
  }
7642
8824
  if (data.time !== void 0) {
7643
- const err13 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
8825
+ const err14 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
7644
8826
  if (vErrors === null) {
7645
- vErrors = [err13];
8827
+ vErrors = [err14];
7646
8828
  } else {
7647
- vErrors.push(err13);
8829
+ vErrors.push(err14);
8830
+ }
8831
+ errors++;
8832
+ }
8833
+ if (data.lineup !== void 0) {
8834
+ const err15 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
8835
+ if (vErrors === null) {
8836
+ vErrors = [err15];
8837
+ } else {
8838
+ vErrors.push(err15);
7648
8839
  }
7649
8840
  errors++;
7650
8841
  }
7651
8842
  }
7652
- var _valid1 = _errs21 === errors;
7653
- valid6 = _valid1;
8843
+ var _valid1 = _errs24 === errors;
8844
+ valid7 = _valid1;
7654
8845
  ifClause1 = "then";
7655
8846
  } else {
7656
- const _errs35 = errors;
7657
- const _errs36 = errors;
7658
- let valid15 = true;
7659
- const _errs37 = errors;
8847
+ const _errs41 = errors;
8848
+ const _errs42 = errors;
8849
+ let valid17 = true;
8850
+ const _errs43 = errors;
7660
8851
  if (data && typeof data == "object" && !Array.isArray(data)) {
7661
8852
  if (data.kind === void 0 && ("kind")) {
7662
- const err14 = {};
8853
+ const err16 = {};
7663
8854
  if (vErrors === null) {
7664
- vErrors = [err14];
8855
+ vErrors = [err16];
7665
8856
  } else {
7666
- vErrors.push(err14);
8857
+ vErrors.push(err16);
7667
8858
  }
7668
8859
  errors++;
7669
8860
  } else {
7670
8861
  if (data.kind !== void 0) {
7671
8862
  if ("git" !== data.kind) {
7672
- const err15 = {};
8863
+ const err17 = {};
7673
8864
  if (vErrors === null) {
7674
- vErrors = [err15];
8865
+ vErrors = [err17];
7675
8866
  } else {
7676
- vErrors.push(err15);
8867
+ vErrors.push(err17);
7677
8868
  }
7678
8869
  errors++;
7679
8870
  }
7680
8871
  }
7681
8872
  }
7682
8873
  }
7683
- var _valid2 = _errs37 === errors;
7684
- errors = _errs36;
8874
+ var _valid2 = _errs43 === errors;
8875
+ errors = _errs42;
7685
8876
  if (vErrors !== null) {
7686
- if (_errs36) {
7687
- vErrors.length = _errs36;
8877
+ if (_errs42) {
8878
+ vErrors.length = _errs42;
7688
8879
  } else {
7689
8880
  vErrors = null;
7690
8881
  }
7691
8882
  }
7692
8883
  let ifClause2;
7693
8884
  if (_valid2) {
7694
- const _errs39 = errors;
8885
+ const _errs45 = errors;
7695
8886
  if (data && typeof data == "object" && !Array.isArray(data)) {
7696
8887
  if (data.git === void 0) {
7697
- const err16 = { instancePath, schemaPath: "#/else/else/then/required", keyword: "required", params: { missingProperty: "git" }, message: "must have required property 'git'" };
8888
+ const err18 = { instancePath, schemaPath: "#/else/else/then/required", keyword: "required", params: { missingProperty: "git" }, message: "must have required property 'git'" };
7698
8889
  if (vErrors === null) {
7699
- vErrors = [err16];
8890
+ vErrors = [err18];
7700
8891
  } else {
7701
- vErrors.push(err16);
8892
+ vErrors.push(err18);
7702
8893
  }
7703
8894
  errors++;
7704
8895
  }
@@ -7715,83 +8906,92 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
7715
8906
  }
7716
8907
  }
7717
8908
  if (data.state !== void 0) {
7718
- const err17 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
8909
+ const err19 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
7719
8910
  if (vErrors === null) {
7720
- vErrors = [err17];
8911
+ vErrors = [err19];
7721
8912
  } else {
7722
- vErrors.push(err17);
8913
+ vErrors.push(err19);
7723
8914
  }
7724
8915
  errors++;
7725
8916
  }
7726
8917
  if (data.regions !== void 0) {
7727
- const err18 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
8918
+ const err20 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
7728
8919
  if (vErrors === null) {
7729
- vErrors = [err18];
8920
+ vErrors = [err20];
7730
8921
  } else {
7731
- vErrors.push(err18);
8922
+ vErrors.push(err20);
7732
8923
  }
7733
8924
  errors++;
7734
8925
  }
7735
8926
  if (data.time !== void 0) {
7736
- const err19 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
8927
+ const err21 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
7737
8928
  if (vErrors === null) {
7738
- vErrors = [err19];
8929
+ vErrors = [err21];
7739
8930
  } else {
7740
- vErrors.push(err19);
8931
+ vErrors.push(err21);
8932
+ }
8933
+ errors++;
8934
+ }
8935
+ if (data.lineup !== void 0) {
8936
+ const err22 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
8937
+ if (vErrors === null) {
8938
+ vErrors = [err22];
8939
+ } else {
8940
+ vErrors.push(err22);
7741
8941
  }
7742
8942
  errors++;
7743
8943
  }
7744
8944
  }
7745
- var _valid2 = _errs39 === errors;
7746
- valid15 = _valid2;
8945
+ var _valid2 = _errs45 === errors;
8946
+ valid17 = _valid2;
7747
8947
  ifClause2 = "then";
7748
8948
  } else {
7749
- const _errs51 = errors;
7750
- const _errs52 = errors;
7751
- let valid21 = true;
7752
- const _errs53 = errors;
8949
+ const _errs60 = errors;
8950
+ const _errs61 = errors;
8951
+ let valid24 = true;
8952
+ const _errs62 = errors;
7753
8953
  if (data && typeof data == "object" && !Array.isArray(data)) {
7754
8954
  if (data.kind === void 0 && ("kind")) {
7755
- const err20 = {};
8955
+ const err23 = {};
7756
8956
  if (vErrors === null) {
7757
- vErrors = [err20];
8957
+ vErrors = [err23];
7758
8958
  } else {
7759
- vErrors.push(err20);
8959
+ vErrors.push(err23);
7760
8960
  }
7761
8961
  errors++;
7762
8962
  } else {
7763
8963
  if (data.kind !== void 0) {
7764
8964
  if ("time" !== data.kind) {
7765
- const err21 = {};
8965
+ const err24 = {};
7766
8966
  if (vErrors === null) {
7767
- vErrors = [err21];
8967
+ vErrors = [err24];
7768
8968
  } else {
7769
- vErrors.push(err21);
8969
+ vErrors.push(err24);
7770
8970
  }
7771
8971
  errors++;
7772
8972
  }
7773
8973
  }
7774
8974
  }
7775
8975
  }
7776
- var _valid3 = _errs53 === errors;
7777
- errors = _errs52;
8976
+ var _valid3 = _errs62 === errors;
8977
+ errors = _errs61;
7778
8978
  if (vErrors !== null) {
7779
- if (_errs52) {
7780
- vErrors.length = _errs52;
8979
+ if (_errs61) {
8980
+ vErrors.length = _errs61;
7781
8981
  } else {
7782
8982
  vErrors = null;
7783
8983
  }
7784
8984
  }
7785
8985
  let ifClause3;
7786
8986
  if (_valid3) {
7787
- const _errs55 = errors;
8987
+ const _errs64 = errors;
7788
8988
  if (data && typeof data == "object" && !Array.isArray(data)) {
7789
8989
  if (data.time === void 0) {
7790
- const err22 = { instancePath, schemaPath: "#/else/else/else/then/required", keyword: "required", params: { missingProperty: "time" }, message: "must have required property 'time'" };
8990
+ const err25 = { instancePath, schemaPath: "#/else/else/else/then/required", keyword: "required", params: { missingProperty: "time" }, message: "must have required property 'time'" };
7791
8991
  if (vErrors === null) {
7792
- vErrors = [err22];
8992
+ vErrors = [err25];
7793
8993
  } else {
7794
- vErrors.push(err22);
8994
+ vErrors.push(err25);
7795
8995
  }
7796
8996
  errors++;
7797
8997
  }
@@ -7802,76 +9002,85 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
7802
9002
  }
7803
9003
  }
7804
9004
  if (data.state !== void 0) {
7805
- const err23 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
9005
+ const err26 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
7806
9006
  if (vErrors === null) {
7807
- vErrors = [err23];
9007
+ vErrors = [err26];
7808
9008
  } else {
7809
- vErrors.push(err23);
9009
+ vErrors.push(err26);
7810
9010
  }
7811
9011
  errors++;
7812
9012
  }
7813
9013
  if (data.git !== void 0) {
7814
- const err24 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
9014
+ const err27 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
7815
9015
  if (vErrors === null) {
7816
- vErrors = [err24];
9016
+ vErrors = [err27];
7817
9017
  } else {
7818
- vErrors.push(err24);
9018
+ vErrors.push(err27);
7819
9019
  }
7820
9020
  errors++;
7821
9021
  }
7822
9022
  if (data.regions !== void 0) {
7823
- const err25 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
9023
+ const err28 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
7824
9024
  if (vErrors === null) {
7825
- vErrors = [err25];
9025
+ vErrors = [err28];
7826
9026
  } else {
7827
- vErrors.push(err25);
9027
+ vErrors.push(err28);
9028
+ }
9029
+ errors++;
9030
+ }
9031
+ if (data.lineup !== void 0) {
9032
+ const err29 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
9033
+ if (vErrors === null) {
9034
+ vErrors = [err29];
9035
+ } else {
9036
+ vErrors.push(err29);
7828
9037
  }
7829
9038
  errors++;
7830
9039
  }
7831
9040
  }
7832
- var _valid3 = _errs55 === errors;
7833
- valid21 = _valid3;
9041
+ var _valid3 = _errs64 === errors;
9042
+ valid24 = _valid3;
7834
9043
  ifClause3 = "then";
7835
9044
  } else {
7836
- const _errs66 = errors;
7837
- const _errs67 = errors;
7838
- let valid27 = true;
7839
- const _errs68 = errors;
9045
+ const _errs78 = errors;
9046
+ const _errs79 = errors;
9047
+ let valid31 = true;
9048
+ const _errs80 = errors;
7840
9049
  if (data && typeof data == "object" && !Array.isArray(data)) {
7841
9050
  if (data.kind === void 0 && ("kind")) {
7842
- const err26 = {};
9051
+ const err30 = {};
7843
9052
  if (vErrors === null) {
7844
- vErrors = [err26];
9053
+ vErrors = [err30];
7845
9054
  } else {
7846
- vErrors.push(err26);
9055
+ vErrors.push(err30);
7847
9056
  }
7848
9057
  errors++;
7849
9058
  } else {
7850
9059
  if (data.kind !== void 0) {
7851
9060
  if ("tree" !== data.kind) {
7852
- const err27 = {};
9061
+ const err31 = {};
7853
9062
  if (vErrors === null) {
7854
- vErrors = [err27];
9063
+ vErrors = [err31];
7855
9064
  } else {
7856
- vErrors.push(err27);
9065
+ vErrors.push(err31);
7857
9066
  }
7858
9067
  errors++;
7859
9068
  }
7860
9069
  }
7861
9070
  }
7862
9071
  }
7863
- var _valid4 = _errs68 === errors;
7864
- errors = _errs67;
9072
+ var _valid4 = _errs80 === errors;
9073
+ errors = _errs79;
7865
9074
  if (vErrors !== null) {
7866
- if (_errs67) {
7867
- vErrors.length = _errs67;
9075
+ if (_errs79) {
9076
+ vErrors.length = _errs79;
7868
9077
  } else {
7869
9078
  vErrors = null;
7870
9079
  }
7871
9080
  }
7872
9081
  let ifClause4;
7873
9082
  if (_valid4) {
7874
- const _errs70 = errors;
9083
+ const _errs82 = errors;
7875
9084
  if (data && typeof data == "object" && !Array.isArray(data)) {
7876
9085
  if (data.steps !== void 0) {
7877
9086
  if (!validate22(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
@@ -7886,409 +9095,595 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
7886
9095
  }
7887
9096
  }
7888
9097
  if (data.state !== void 0) {
7889
- const err28 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
9098
+ const err32 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
7890
9099
  if (vErrors === null) {
7891
- vErrors = [err28];
9100
+ vErrors = [err32];
7892
9101
  } else {
7893
- vErrors.push(err28);
9102
+ vErrors.push(err32);
7894
9103
  }
7895
9104
  errors++;
7896
9105
  }
7897
9106
  if (data.git !== void 0) {
7898
- const err29 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
9107
+ const err33 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
7899
9108
  if (vErrors === null) {
7900
- vErrors = [err29];
9109
+ vErrors = [err33];
7901
9110
  } else {
7902
- vErrors.push(err29);
9111
+ vErrors.push(err33);
7903
9112
  }
7904
9113
  errors++;
7905
9114
  }
7906
9115
  if (data.time !== void 0) {
7907
- const err30 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
9116
+ const err34 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
7908
9117
  if (vErrors === null) {
7909
- vErrors = [err30];
9118
+ vErrors = [err34];
7910
9119
  } else {
7911
- vErrors.push(err30);
9120
+ vErrors.push(err34);
7912
9121
  }
7913
9122
  errors++;
7914
9123
  }
7915
9124
  if (data.regions !== void 0) {
7916
- const err31 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
9125
+ const err35 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
9126
+ if (vErrors === null) {
9127
+ vErrors = [err35];
9128
+ } else {
9129
+ vErrors.push(err35);
9130
+ }
9131
+ errors++;
9132
+ }
9133
+ if (data.lineup !== void 0) {
9134
+ const err36 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
7917
9135
  if (vErrors === null) {
7918
- vErrors = [err31];
9136
+ vErrors = [err36];
7919
9137
  } else {
7920
- vErrors.push(err31);
9138
+ vErrors.push(err36);
7921
9139
  }
7922
9140
  errors++;
7923
9141
  }
7924
9142
  }
7925
- var _valid4 = _errs70 === errors;
7926
- valid27 = _valid4;
9143
+ var _valid4 = _errs82 === errors;
9144
+ valid31 = _valid4;
7927
9145
  ifClause4 = "then";
7928
9146
  } else {
7929
- const _errs85 = errors;
9147
+ const _errs100 = errors;
9148
+ const _errs101 = errors;
9149
+ let valid39 = true;
9150
+ const _errs102 = errors;
7930
9151
  if (data && typeof data == "object" && !Array.isArray(data)) {
7931
- if (data.boxes !== void 0) {
7932
- let data33 = data.boxes;
7933
- if (Array.isArray(data33)) {
7934
- if (data33.length < 1) {
7935
- const err32 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/else/else/else/else/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
9152
+ if (data.kind === void 0 && ("kind")) {
9153
+ const err37 = {};
9154
+ if (vErrors === null) {
9155
+ vErrors = [err37];
9156
+ } else {
9157
+ vErrors.push(err37);
9158
+ }
9159
+ errors++;
9160
+ } else {
9161
+ if (data.kind !== void 0) {
9162
+ if ("lineup" !== data.kind) {
9163
+ const err38 = {};
7936
9164
  if (vErrors === null) {
7937
- vErrors = [err32];
9165
+ vErrors = [err38];
7938
9166
  } else {
7939
- vErrors.push(err32);
9167
+ vErrors.push(err38);
7940
9168
  }
7941
9169
  errors++;
7942
9170
  }
7943
9171
  }
7944
9172
  }
7945
- if (data.steps !== void 0) {
7946
- if (!validate11(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
7947
- vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);
7948
- errors = vErrors.length;
7949
- }
9173
+ }
9174
+ var _valid5 = _errs102 === errors;
9175
+ errors = _errs101;
9176
+ if (vErrors !== null) {
9177
+ if (_errs101) {
9178
+ vErrors.length = _errs101;
9179
+ } else {
9180
+ vErrors = null;
7950
9181
  }
7951
- if (data.strip !== void 0) {
7952
- if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
7953
- vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
7954
- errors = vErrors.length;
9182
+ }
9183
+ let ifClause5;
9184
+ if (_valid5) {
9185
+ const _errs104 = errors;
9186
+ if (data && typeof data == "object" && !Array.isArray(data)) {
9187
+ if (data.lineup === void 0) {
9188
+ const err39 = { instancePath, schemaPath: "#/else/else/else/else/else/then/required", keyword: "required", params: { missingProperty: "lineup" }, message: "must have required property 'lineup'" };
9189
+ if (vErrors === null) {
9190
+ vErrors = [err39];
9191
+ } else {
9192
+ vErrors.push(err39);
9193
+ }
9194
+ errors++;
7955
9195
  }
7956
- }
7957
- if (data.state !== void 0) {
7958
- const err33 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
7959
- if (vErrors === null) {
7960
- vErrors = [err33];
7961
- } else {
7962
- vErrors.push(err33);
9196
+ if (data.boxes !== void 0) {
9197
+ let data39 = data.boxes;
9198
+ if (Array.isArray(data39)) {
9199
+ if (data39.length < 1) {
9200
+ 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" };
9201
+ if (vErrors === null) {
9202
+ vErrors = [err40];
9203
+ } else {
9204
+ vErrors.push(err40);
9205
+ }
9206
+ errors++;
9207
+ }
9208
+ const len1 = data39.length;
9209
+ for (let i1 = 0; i1 < len1; i1++) {
9210
+ let data40 = data39[i1];
9211
+ if (data40 && typeof data40 == "object" && !Array.isArray(data40)) {
9212
+ if (data40.icon !== void 0) {
9213
+ const err41 = { instancePath: instancePath + "/boxes/" + i1 + "/icon", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
9214
+ if (vErrors === null) {
9215
+ vErrors = [err41];
9216
+ } else {
9217
+ vErrors.push(err41);
9218
+ }
9219
+ errors++;
9220
+ }
9221
+ if (data40.link !== void 0) {
9222
+ const err42 = { instancePath: instancePath + "/boxes/" + i1 + "/link", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
9223
+ if (vErrors === null) {
9224
+ vErrors = [err42];
9225
+ } else {
9226
+ vErrors.push(err42);
9227
+ }
9228
+ errors++;
9229
+ }
9230
+ if (data40.region !== void 0) {
9231
+ const err43 = { instancePath: instancePath + "/boxes/" + i1 + "/region", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
9232
+ if (vErrors === null) {
9233
+ vErrors = [err43];
9234
+ } else {
9235
+ vErrors.push(err43);
9236
+ }
9237
+ errors++;
9238
+ }
9239
+ }
9240
+ }
9241
+ }
7963
9242
  }
7964
- errors++;
7965
- }
7966
- if (data.git !== void 0) {
7967
- const err34 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
7968
- if (vErrors === null) {
7969
- vErrors = [err34];
7970
- } else {
7971
- vErrors.push(err34);
9243
+ if (data.steps !== void 0) {
9244
+ if (!validate25(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
9245
+ vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);
9246
+ errors = vErrors.length;
9247
+ }
9248
+ }
9249
+ if (data.strip !== void 0) {
9250
+ if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
9251
+ vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
9252
+ errors = vErrors.length;
9253
+ }
9254
+ }
9255
+ if (data.state !== void 0) {
9256
+ const err44 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
9257
+ if (vErrors === null) {
9258
+ vErrors = [err44];
9259
+ } else {
9260
+ vErrors.push(err44);
9261
+ }
9262
+ errors++;
9263
+ }
9264
+ if (data.git !== void 0) {
9265
+ const err45 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
9266
+ if (vErrors === null) {
9267
+ vErrors = [err45];
9268
+ } else {
9269
+ vErrors.push(err45);
9270
+ }
9271
+ errors++;
9272
+ }
9273
+ if (data.time !== void 0) {
9274
+ const err46 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
9275
+ if (vErrors === null) {
9276
+ vErrors = [err46];
9277
+ } else {
9278
+ vErrors.push(err46);
9279
+ }
9280
+ errors++;
9281
+ }
9282
+ if (data.regions !== void 0) {
9283
+ const err47 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
9284
+ if (vErrors === null) {
9285
+ vErrors = [err47];
9286
+ } else {
9287
+ vErrors.push(err47);
9288
+ }
9289
+ errors++;
7972
9290
  }
7973
- errors++;
7974
9291
  }
7975
- if (data.time !== void 0) {
7976
- const err35 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
7977
- if (vErrors === null) {
7978
- vErrors = [err35];
7979
- } else {
7980
- vErrors.push(err35);
9292
+ var _valid5 = _errs104 === errors;
9293
+ valid39 = _valid5;
9294
+ ifClause5 = "then";
9295
+ } else {
9296
+ const _errs130 = errors;
9297
+ if (data && typeof data == "object" && !Array.isArray(data)) {
9298
+ if (data.boxes !== void 0) {
9299
+ let data50 = data.boxes;
9300
+ if (Array.isArray(data50)) {
9301
+ if (data50.length < 1) {
9302
+ 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" };
9303
+ if (vErrors === null) {
9304
+ vErrors = [err48];
9305
+ } else {
9306
+ vErrors.push(err48);
9307
+ }
9308
+ errors++;
9309
+ }
9310
+ }
7981
9311
  }
7982
- errors++;
9312
+ if (data.steps !== void 0) {
9313
+ if (!validate11(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
9314
+ vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);
9315
+ errors = vErrors.length;
9316
+ }
9317
+ }
9318
+ if (data.strip !== void 0) {
9319
+ if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
9320
+ vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
9321
+ errors = vErrors.length;
9322
+ }
9323
+ }
9324
+ if (data.state !== void 0) {
9325
+ const err49 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
9326
+ if (vErrors === null) {
9327
+ vErrors = [err49];
9328
+ } else {
9329
+ vErrors.push(err49);
9330
+ }
9331
+ errors++;
9332
+ }
9333
+ if (data.git !== void 0) {
9334
+ const err50 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
9335
+ if (vErrors === null) {
9336
+ vErrors = [err50];
9337
+ } else {
9338
+ vErrors.push(err50);
9339
+ }
9340
+ errors++;
9341
+ }
9342
+ if (data.time !== void 0) {
9343
+ const err51 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
9344
+ if (vErrors === null) {
9345
+ vErrors = [err51];
9346
+ } else {
9347
+ vErrors.push(err51);
9348
+ }
9349
+ errors++;
9350
+ }
9351
+ if (data.lineup !== void 0) {
9352
+ const err52 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
9353
+ if (vErrors === null) {
9354
+ vErrors = [err52];
9355
+ } else {
9356
+ vErrors.push(err52);
9357
+ }
9358
+ errors++;
9359
+ }
9360
+ }
9361
+ var _valid5 = _errs130 === errors;
9362
+ valid39 = _valid5;
9363
+ ifClause5 = "else";
9364
+ }
9365
+ if (!valid39) {
9366
+ const err53 = { instancePath, schemaPath: "#/else/else/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause5 }, message: 'must match "' + ifClause5 + '" schema' };
9367
+ if (vErrors === null) {
9368
+ vErrors = [err53];
9369
+ } else {
9370
+ vErrors.push(err53);
7983
9371
  }
9372
+ errors++;
7984
9373
  }
7985
- var _valid4 = _errs85 === errors;
7986
- valid27 = _valid4;
9374
+ var _valid4 = _errs100 === errors;
9375
+ valid31 = _valid4;
7987
9376
  ifClause4 = "else";
7988
9377
  }
7989
- if (!valid27) {
7990
- const err36 = { instancePath, schemaPath: "#/else/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause4 }, message: 'must match "' + ifClause4 + '" schema' };
9378
+ if (!valid31) {
9379
+ const err54 = { instancePath, schemaPath: "#/else/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause4 }, message: 'must match "' + ifClause4 + '" schema' };
7991
9380
  if (vErrors === null) {
7992
- vErrors = [err36];
9381
+ vErrors = [err54];
7993
9382
  } else {
7994
- vErrors.push(err36);
9383
+ vErrors.push(err54);
7995
9384
  }
7996
9385
  errors++;
7997
9386
  }
7998
- var _valid3 = _errs66 === errors;
7999
- valid21 = _valid3;
9387
+ var _valid3 = _errs78 === errors;
9388
+ valid24 = _valid3;
8000
9389
  ifClause3 = "else";
8001
9390
  }
8002
- if (!valid21) {
8003
- const err37 = { instancePath, schemaPath: "#/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause3 }, message: 'must match "' + ifClause3 + '" schema' };
9391
+ if (!valid24) {
9392
+ const err55 = { instancePath, schemaPath: "#/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause3 }, message: 'must match "' + ifClause3 + '" schema' };
8004
9393
  if (vErrors === null) {
8005
- vErrors = [err37];
9394
+ vErrors = [err55];
8006
9395
  } else {
8007
- vErrors.push(err37);
9396
+ vErrors.push(err55);
8008
9397
  }
8009
9398
  errors++;
8010
9399
  }
8011
- var _valid2 = _errs51 === errors;
8012
- valid15 = _valid2;
9400
+ var _valid2 = _errs60 === errors;
9401
+ valid17 = _valid2;
8013
9402
  ifClause2 = "else";
8014
9403
  }
8015
- if (!valid15) {
8016
- const err38 = { instancePath, schemaPath: "#/else/else/if", keyword: "if", params: { failingKeyword: ifClause2 }, message: 'must match "' + ifClause2 + '" schema' };
9404
+ if (!valid17) {
9405
+ const err56 = { instancePath, schemaPath: "#/else/else/if", keyword: "if", params: { failingKeyword: ifClause2 }, message: 'must match "' + ifClause2 + '" schema' };
8017
9406
  if (vErrors === null) {
8018
- vErrors = [err38];
9407
+ vErrors = [err56];
8019
9408
  } else {
8020
- vErrors.push(err38);
9409
+ vErrors.push(err56);
8021
9410
  }
8022
9411
  errors++;
8023
9412
  }
8024
- var _valid1 = _errs35 === errors;
8025
- valid6 = _valid1;
9413
+ var _valid1 = _errs41 === errors;
9414
+ valid7 = _valid1;
8026
9415
  ifClause1 = "else";
8027
9416
  }
8028
- if (!valid6) {
8029
- const err39 = { instancePath, schemaPath: "#/else/if", keyword: "if", params: { failingKeyword: ifClause1 }, message: 'must match "' + ifClause1 + '" schema' };
9417
+ if (!valid7) {
9418
+ const err57 = { instancePath, schemaPath: "#/else/if", keyword: "if", params: { failingKeyword: ifClause1 }, message: 'must match "' + ifClause1 + '" schema' };
8030
9419
  if (vErrors === null) {
8031
- vErrors = [err39];
9420
+ vErrors = [err57];
8032
9421
  } else {
8033
- vErrors.push(err39);
9422
+ vErrors.push(err57);
8034
9423
  }
8035
9424
  errors++;
8036
9425
  }
8037
9426
  if (data && typeof data == "object" && !Array.isArray(data)) {
8038
9427
  if (data.sequence !== void 0) {
8039
- const err40 = { instancePath: instancePath + "/sequence", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
9428
+ const err58 = { instancePath: instancePath + "/sequence", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
8040
9429
  if (vErrors === null) {
8041
- vErrors = [err40];
9430
+ vErrors = [err58];
8042
9431
  } else {
8043
- vErrors.push(err40);
9432
+ vErrors.push(err58);
8044
9433
  }
8045
9434
  errors++;
8046
9435
  }
8047
9436
  }
8048
- var _valid0 = _errs17 === errors;
9437
+ var _valid0 = _errs20 === errors;
8049
9438
  valid0 = _valid0;
8050
9439
  ifClause0 = "else";
8051
9440
  }
8052
9441
  if (!valid0) {
8053
- const err41 = { instancePath, schemaPath: "#/if", keyword: "if", params: { failingKeyword: ifClause0 }, message: 'must match "' + ifClause0 + '" schema' };
9442
+ const err59 = { instancePath, schemaPath: "#/if", keyword: "if", params: { failingKeyword: ifClause0 }, message: 'must match "' + ifClause0 + '" schema' };
8054
9443
  if (vErrors === null) {
8055
- vErrors = [err41];
9444
+ vErrors = [err59];
8056
9445
  } else {
8057
- vErrors.push(err41);
9446
+ vErrors.push(err59);
8058
9447
  }
8059
9448
  errors++;
8060
9449
  }
8061
9450
  if (data && typeof data == "object" && !Array.isArray(data)) {
8062
9451
  if (data.version === void 0) {
8063
- const err42 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "version" }, message: "must have required property 'version'" };
9452
+ const err60 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "version" }, message: "must have required property 'version'" };
8064
9453
  if (vErrors === null) {
8065
- vErrors = [err42];
9454
+ vErrors = [err60];
8066
9455
  } else {
8067
- vErrors.push(err42);
9456
+ vErrors.push(err60);
8068
9457
  }
8069
9458
  errors++;
8070
9459
  }
8071
9460
  if (data.kind === void 0) {
8072
- const err43 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "kind" }, message: "must have required property 'kind'" };
9461
+ const err61 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "kind" }, message: "must have required property 'kind'" };
8073
9462
  if (vErrors === null) {
8074
- vErrors = [err43];
9463
+ vErrors = [err61];
8075
9464
  } else {
8076
- vErrors.push(err43);
9465
+ vErrors.push(err61);
8077
9466
  }
8078
9467
  errors++;
8079
9468
  }
8080
9469
  if (data.title === void 0) {
8081
- const err44 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "title" }, message: "must have required property 'title'" };
9470
+ const err62 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "title" }, message: "must have required property 'title'" };
8082
9471
  if (vErrors === null) {
8083
- vErrors = [err44];
9472
+ vErrors = [err62];
8084
9473
  } else {
8085
- vErrors.push(err44);
9474
+ vErrors.push(err62);
8086
9475
  }
8087
9476
  errors++;
8088
9477
  }
8089
9478
  if (data.boxes === void 0) {
8090
- const err45 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "boxes" }, message: "must have required property 'boxes'" };
9479
+ const err63 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "boxes" }, message: "must have required property 'boxes'" };
8091
9480
  if (vErrors === null) {
8092
- vErrors = [err45];
9481
+ vErrors = [err63];
8093
9482
  } else {
8094
- vErrors.push(err45);
9483
+ vErrors.push(err63);
8095
9484
  }
8096
9485
  errors++;
8097
9486
  }
8098
9487
  if (data.steps === void 0) {
8099
- const err46 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "steps" }, message: "must have required property 'steps'" };
9488
+ const err64 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "steps" }, message: "must have required property 'steps'" };
8100
9489
  if (vErrors === null) {
8101
- vErrors = [err46];
9490
+ vErrors = [err64];
8102
9491
  } else {
8103
- vErrors.push(err46);
9492
+ vErrors.push(err64);
8104
9493
  }
8105
9494
  errors++;
8106
9495
  }
8107
9496
  for (const key0 in data) {
8108
9497
  if (!func2.call(schema11.properties, key0)) {
8109
- const err47 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
9498
+ const err65 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
8110
9499
  if (vErrors === null) {
8111
- vErrors = [err47];
9500
+ vErrors = [err65];
8112
9501
  } else {
8113
- vErrors.push(err47);
9502
+ vErrors.push(err65);
8114
9503
  }
8115
9504
  errors++;
8116
9505
  }
8117
9506
  }
8118
9507
  if (data.version !== void 0) {
8119
- let data40 = data.version;
8120
- if (!(typeof data40 == "number" && (!(data40 % 1) && !isNaN(data40)) && isFinite(data40))) {
8121
- const err48 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
9508
+ let data58 = data.version;
9509
+ if (!(typeof data58 == "number" && (!(data58 % 1) && !isNaN(data58)) && isFinite(data58))) {
9510
+ const err66 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
8122
9511
  if (vErrors === null) {
8123
- vErrors = [err48];
9512
+ vErrors = [err66];
8124
9513
  } else {
8125
- vErrors.push(err48);
9514
+ vErrors.push(err66);
8126
9515
  }
8127
9516
  errors++;
8128
9517
  }
8129
- if (typeof data40 == "number" && isFinite(data40)) {
8130
- if (data40 < 1 || isNaN(data40)) {
8131
- const err49 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
9518
+ if (typeof data58 == "number" && isFinite(data58)) {
9519
+ if (data58 < 1 || isNaN(data58)) {
9520
+ const err67 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
8132
9521
  if (vErrors === null) {
8133
- vErrors = [err49];
9522
+ vErrors = [err67];
8134
9523
  } else {
8135
- vErrors.push(err49);
9524
+ vErrors.push(err67);
8136
9525
  }
8137
9526
  errors++;
8138
9527
  }
8139
9528
  }
8140
9529
  }
8141
9530
  if (data.kind !== void 0) {
8142
- let data41 = data.kind;
8143
- if (!(data41 === "sequence" || data41 === "architecture" || data41 === "state" || data41 === "git" || data41 === "time" || data41 === "tree")) {
8144
- const err50 = { 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" };
9531
+ let data59 = data.kind;
9532
+ if (!(data59 === "sequence" || data59 === "architecture" || data59 === "state" || data59 === "git" || data59 === "time" || data59 === "tree" || data59 === "lineup")) {
9533
+ 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" };
8145
9534
  if (vErrors === null) {
8146
- vErrors = [err50];
9535
+ vErrors = [err68];
8147
9536
  } else {
8148
- vErrors.push(err50);
9537
+ vErrors.push(err68);
8149
9538
  }
8150
9539
  errors++;
8151
9540
  }
8152
9541
  }
8153
9542
  if (data.title !== void 0) {
8154
- let data42 = data.title;
8155
- if (typeof data42 === "string") {
8156
- if (func3(data42) < 1) {
8157
- const err51 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
9543
+ let data60 = data.title;
9544
+ if (typeof data60 === "string") {
9545
+ if (func3(data60) < 1) {
9546
+ const err69 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
8158
9547
  if (vErrors === null) {
8159
- vErrors = [err51];
9548
+ vErrors = [err69];
8160
9549
  } else {
8161
- vErrors.push(err51);
9550
+ vErrors.push(err69);
8162
9551
  }
8163
9552
  errors++;
8164
9553
  }
8165
9554
  } else {
8166
- const err52 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
9555
+ const err70 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8167
9556
  if (vErrors === null) {
8168
- vErrors = [err52];
9557
+ vErrors = [err70];
8169
9558
  } else {
8170
- vErrors.push(err52);
9559
+ vErrors.push(err70);
8171
9560
  }
8172
9561
  errors++;
8173
9562
  }
8174
9563
  }
8175
9564
  if (data.view !== void 0) {
8176
- let data43 = data.view;
8177
- if (!(data43 === "fixed" || data43 === "follow")) {
8178
- const err53 = { 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" };
9565
+ let data61 = data.view;
9566
+ if (!(data61 === "fixed" || data61 === "follow")) {
9567
+ 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" };
8179
9568
  if (vErrors === null) {
8180
- vErrors = [err53];
9569
+ vErrors = [err71];
8181
9570
  } else {
8182
- vErrors.push(err53);
9571
+ vErrors.push(err71);
8183
9572
  }
8184
9573
  errors++;
8185
9574
  }
8186
9575
  }
8187
9576
  if (data.regions !== void 0) {
8188
- let data44 = data.regions;
8189
- if (Array.isArray(data44)) {
8190
- const len1 = data44.length;
8191
- for (let i1 = 0; i1 < len1; i1++) {
8192
- if (!validate27(data44[i1], { instancePath: instancePath + "/regions/" + i1, parentData: data44, parentDataProperty: i1, rootData })) {
8193
- vErrors = vErrors === null ? validate27.errors : vErrors.concat(validate27.errors);
9577
+ let data62 = data.regions;
9578
+ if (Array.isArray(data62)) {
9579
+ const len2 = data62.length;
9580
+ for (let i2 = 0; i2 < len2; i2++) {
9581
+ if (!validate30(data62[i2], { instancePath: instancePath + "/regions/" + i2, parentData: data62, parentDataProperty: i2, rootData })) {
9582
+ vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);
8194
9583
  errors = vErrors.length;
8195
9584
  }
8196
9585
  }
8197
9586
  } else {
8198
- const err54 = { instancePath: instancePath + "/regions", schemaPath: "#/properties/regions/type", keyword: "type", params: { type: "array" }, message: "must be array" };
9587
+ const err72 = { instancePath: instancePath + "/regions", schemaPath: "#/properties/regions/type", keyword: "type", params: { type: "array" }, message: "must be array" };
8199
9588
  if (vErrors === null) {
8200
- vErrors = [err54];
9589
+ vErrors = [err72];
8201
9590
  } else {
8202
- vErrors.push(err54);
9591
+ vErrors.push(err72);
8203
9592
  }
8204
9593
  errors++;
8205
9594
  }
8206
9595
  }
8207
9596
  if (data.boxes !== void 0) {
8208
- let data46 = data.boxes;
8209
- if (Array.isArray(data46)) {
8210
- const len2 = data46.length;
8211
- for (let i2 = 0; i2 < len2; i2++) {
8212
- if (!validate29(data46[i2], { instancePath: instancePath + "/boxes/" + i2, parentData: data46, parentDataProperty: i2, rootData })) {
8213
- vErrors = vErrors === null ? validate29.errors : vErrors.concat(validate29.errors);
9597
+ let data64 = data.boxes;
9598
+ if (Array.isArray(data64)) {
9599
+ const len3 = data64.length;
9600
+ for (let i3 = 0; i3 < len3; i3++) {
9601
+ if (!validate32(data64[i3], { instancePath: instancePath + "/boxes/" + i3, parentData: data64, parentDataProperty: i3, rootData })) {
9602
+ vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);
8214
9603
  errors = vErrors.length;
8215
9604
  }
8216
9605
  }
8217
9606
  } else {
8218
- const err55 = { instancePath: instancePath + "/boxes", schemaPath: "#/properties/boxes/type", keyword: "type", params: { type: "array" }, message: "must be array" };
9607
+ const err73 = { instancePath: instancePath + "/boxes", schemaPath: "#/properties/boxes/type", keyword: "type", params: { type: "array" }, message: "must be array" };
8219
9608
  if (vErrors === null) {
8220
- vErrors = [err55];
9609
+ vErrors = [err73];
8221
9610
  } else {
8222
- vErrors.push(err55);
9611
+ vErrors.push(err73);
8223
9612
  }
8224
9613
  errors++;
8225
9614
  }
8226
9615
  }
8227
9616
  if (data.strip !== void 0) {
8228
- if (!validate31(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
8229
- vErrors = vErrors === null ? validate31.errors : vErrors.concat(validate31.errors);
9617
+ if (!validate34(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
9618
+ vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);
8230
9619
  errors = vErrors.length;
8231
9620
  }
8232
9621
  }
8233
9622
  if (data.steps !== void 0) {
8234
- let data49 = data.steps;
8235
- if (Array.isArray(data49)) {
8236
- if (data49.length < 1) {
8237
- const err56 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
9623
+ let data67 = data.steps;
9624
+ if (Array.isArray(data67)) {
9625
+ if (data67.length < 1) {
9626
+ const err74 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
8238
9627
  if (vErrors === null) {
8239
- vErrors = [err56];
9628
+ vErrors = [err74];
8240
9629
  } else {
8241
- vErrors.push(err56);
9630
+ vErrors.push(err74);
8242
9631
  }
8243
9632
  errors++;
8244
9633
  }
8245
- const len3 = data49.length;
8246
- for (let i3 = 0; i3 < len3; i3++) {
8247
- if (!validate35(data49[i3], { instancePath: instancePath + "/steps/" + i3, parentData: data49, parentDataProperty: i3, rootData })) {
8248
- vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
9634
+ const len4 = data67.length;
9635
+ for (let i4 = 0; i4 < len4; i4++) {
9636
+ if (!validate38(data67[i4], { instancePath: instancePath + "/steps/" + i4, parentData: data67, parentDataProperty: i4, rootData })) {
9637
+ vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);
8249
9638
  errors = vErrors.length;
8250
9639
  }
8251
9640
  }
8252
9641
  } else {
8253
- const err57 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/type", keyword: "type", params: { type: "array" }, message: "must be array" };
9642
+ const err75 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/type", keyword: "type", params: { type: "array" }, message: "must be array" };
8254
9643
  if (vErrors === null) {
8255
- vErrors = [err57];
9644
+ vErrors = [err75];
8256
9645
  } else {
8257
- vErrors.push(err57);
9646
+ vErrors.push(err75);
8258
9647
  }
8259
9648
  errors++;
8260
9649
  }
8261
9650
  }
8262
9651
  if (data.sequence !== void 0) {
8263
- if (!validate43(data.sequence, { instancePath: instancePath + "/sequence", parentData: data, parentDataProperty: "sequence", rootData })) {
8264
- vErrors = vErrors === null ? validate43.errors : vErrors.concat(validate43.errors);
9652
+ if (!validate46(data.sequence, { instancePath: instancePath + "/sequence", parentData: data, parentDataProperty: "sequence", rootData })) {
9653
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
8265
9654
  errors = vErrors.length;
8266
9655
  }
8267
9656
  }
8268
9657
  if (data.state !== void 0) {
8269
- if (!validate45(data.state, { instancePath: instancePath + "/state", parentData: data, parentDataProperty: "state", rootData })) {
8270
- vErrors = vErrors === null ? validate45.errors : vErrors.concat(validate45.errors);
9658
+ if (!validate48(data.state, { instancePath: instancePath + "/state", parentData: data, parentDataProperty: "state", rootData })) {
9659
+ vErrors = vErrors === null ? validate48.errors : vErrors.concat(validate48.errors);
8271
9660
  errors = vErrors.length;
8272
9661
  }
8273
9662
  }
8274
9663
  if (data.git !== void 0) {
8275
- if (!validate49(data.git, { instancePath: instancePath + "/git", parentData: data, parentDataProperty: "git", rootData })) {
8276
- vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);
9664
+ if (!validate52(data.git, { instancePath: instancePath + "/git", parentData: data, parentDataProperty: "git", rootData })) {
9665
+ vErrors = vErrors === null ? validate52.errors : vErrors.concat(validate52.errors);
8277
9666
  errors = vErrors.length;
8278
9667
  }
8279
9668
  }
8280
9669
  if (data.time !== void 0) {
8281
- if (!validate53(data.time, { instancePath: instancePath + "/time", parentData: data, parentDataProperty: "time", rootData })) {
8282
- vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);
9670
+ if (!validate56(data.time, { instancePath: instancePath + "/time", parentData: data, parentDataProperty: "time", rootData })) {
9671
+ vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);
9672
+ errors = vErrors.length;
9673
+ }
9674
+ }
9675
+ if (data.lineup !== void 0) {
9676
+ if (!validate68(data.lineup, { instancePath: instancePath + "/lineup", parentData: data, parentDataProperty: "lineup", rootData })) {
9677
+ vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
8283
9678
  errors = vErrors.length;
8284
9679
  }
8285
9680
  }
8286
9681
  } else {
8287
- const err58 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
9682
+ const err76 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8288
9683
  if (vErrors === null) {
8289
- vErrors = [err58];
9684
+ vErrors = [err76];
8290
9685
  } else {
8291
- vErrors.push(err58);
9686
+ vErrors.push(err76);
8292
9687
  }
8293
9688
  errors++;
8294
9689
  }
@@ -8297,9 +9692,18 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8297
9692
  }
8298
9693
 
8299
9694
  // src/schema.ts
8300
- var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span", "leaf", "node"];
9695
+ var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span", "leaf", "node", "line", "seal", "open", "pick", "stamp"];
8301
9696
  var ABSENT = "#/definitions/absent/not";
8302
- var ABSENT_KINDS = { regions: "sequence / architecture / state", at: "time", into: "time", color: "time", meters: "time" };
9697
+ var ABSENT_KINDS = {
9698
+ regions: "sequence / architecture / state",
9699
+ at: "time",
9700
+ into: "time",
9701
+ color: "time",
9702
+ meters: "time",
9703
+ region: "sequence / architecture / state",
9704
+ icon: "sequence / architecture / state / git / time / tree",
9705
+ link: "sequence / architecture / state / git / time / tree"
9706
+ };
8303
9707
  var NOT_ALLOWED = {
8304
9708
  carry: { field: "text", kind: "tag" }
8305
9709
  };
@@ -8310,6 +9714,10 @@ var TIME_EVENT = /\/events\/items\/not$/u;
8310
9714
  var TIME_EVENTS = ["now", "mark", "span"];
8311
9715
  var TREE_EVENT = /\/events\/items\/allOf\/0\/not$/u;
8312
9716
  var TREE_EVENTS = ["leaf", "node"];
9717
+ var LINEUP_EVENT = "#/definitions/notLineupEvent/not";
9718
+ var LINEUP_EVENTS = ["line", "seal", "open", "pick", "stamp"];
9719
+ var WIRED_EVENT = "#/definitions/notWiredEvent/not";
9720
+ var WIRED_EVENTS = ["edge", "action"];
8313
9721
  var DURATION = /^\^\[0-9\]\+\(\\\.\[0-9\]\+\)\?\(([a-z|]+)\)\$$/u;
8314
9722
  var RATIO = /%\)\$$/u;
8315
9723
  var escape = (key) => key.replaceAll("~", "~0").replaceAll("/", "~1");
@@ -8341,6 +9749,8 @@ function toFieldError(error, errors, m) {
8341
9749
  if (GIT_EVENT.test(error.schemaPath)) return { pointer: at2, message: m.kindOnly(GIT_EVENTS, "git") };
8342
9750
  if (TIME_EVENT.test(error.schemaPath)) return { pointer: `${at2}/type`, message: m.kindOnly(TIME_EVENTS, "time") };
8343
9751
  if (TREE_EVENT.test(error.schemaPath)) return { pointer: `${at2}/type`, message: m.kindOnly(TREE_EVENTS, "tree") };
9752
+ if (error.schemaPath === LINEUP_EVENT) return { pointer: `${at2}/type`, message: m.kindOnly(LINEUP_EVENTS, "lineup") };
9753
+ if (error.schemaPath === WIRED_EVENT) return { pointer: `${at2}/type`, message: m.kindOnly(WIRED_EVENTS, "sequence / architecture / state / git / time / tree") };
8344
9754
  const last = at2.slice(at2.lastIndexOf("/") + 1);
8345
9755
  if (error.schemaPath === ABSENT) return { pointer: at2, message: m.not({ field: last, kind: ABSENT_KINDS[last] ?? last }) };
8346
9756
  const allowed = NOT_ALLOWED[last];
@@ -8361,6 +9771,8 @@ function toFieldError(error, errors, m) {
8361
9771
  return { pointer: at2, message: m.type(String(params.type)) };
8362
9772
  case "minLength":
8363
9773
  return { pointer: at2, message: m.minLength(Number(params.limit)) };
9774
+ case "maxLength":
9775
+ return { pointer: at2, message: m.maxLength(Number(params.limit)) };
8364
9776
  case "pattern": {
8365
9777
  if (error.schemaPath === URL_RULE) return { pointer: at2, message: m.url };
8366
9778
  const pattern = String(params.pattern);
@@ -8373,6 +9785,8 @@ function toFieldError(error, errors, m) {
8373
9785
  }
8374
9786
  case "minItems":
8375
9787
  return { pointer: at2, message: m.minItems(Number(params.limit)) };
9788
+ case "maxItems":
9789
+ return { pointer: at2, message: m.maxItems(Number(params.limit)) };
8376
9790
  case "minimum":
8377
9791
  return { pointer: at2, message: m.minimum(Number(params.limit)) };
8378
9792
  case "const":
@@ -8412,6 +9826,7 @@ function readDiagram(input, options = {}) {
8412
9826
  }
8413
9827
 
8414
9828
  // src/timeline.ts
9829
+ var LINEUP_LENGTH = { line: MOTION.lineup.slide, seal: MOTION.lineup.seal, open: MOTION.fade, pick: MOTION.fade, stamp: MOTION.popFade };
8415
9830
  function plan(step, needle) {
8416
9831
  const out = { edges: [], events: [], busy: 0 };
8417
9832
  let cursor = MOTION.edgeAt;
@@ -8452,6 +9867,16 @@ function plan(step, needle) {
8452
9867
  return;
8453
9868
  }
8454
9869
  if (event.type === "now" || needle && pulled(event)) return;
9870
+ if (event.type === "line" || event.type === "seal" || event.type === "open" || event.type === "pick" || event.type === "stamp") {
9871
+ const a = cursor;
9872
+ const b = a + LINEUP_LENGTH[event.type];
9873
+ out.edges.push({ event: e, a, b, carries: false, coin: false, named: false });
9874
+ cursor = a + MOTION.lineup.stagger;
9875
+ arrived = b;
9876
+ changes = 0;
9877
+ out.busy = Math.max(out.busy, b);
9878
+ return;
9879
+ }
8455
9880
  if (event.type === "commit" || event.type === "branch" || event.type === "leaf" || event.type === "node") {
8456
9881
  const a = cursor;
8457
9882
  const b = a + MOTION.draw;
@@ -8772,14 +10197,16 @@ function band(region, ink) {
8772
10197
  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)}` : "";
8773
10198
  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>`;
8774
10199
  }
8775
- function subLines(box, m, changes, y, ink) {
10200
+ function subLines(box, m, changes, y, ink, right) {
8776
10201
  const seq = [[0, box.sub ?? "", "dg-ss"], ...changes];
8777
10202
  return seq.map(([t, text2, cls], k) => {
8778
10203
  const next = seq[k + 1]?.[0];
8779
10204
  const anim = k === 0 ? next === void 0 ? "" : m.until(next - MOTION.untilFade) : next === void 0 ? m.rise(t) : m.rise(t, next - MOTION.untilFade);
8780
10205
  if (text2 === "") return "";
8781
10206
  const shown = [[k === 0 ? 0 : t, next === void 0 ? Number.POSITIVE_INFINITY : next - MOTION.untilFade]];
8782
- return `<g${anim ? ` class="dg-a" style="${anim}"` : ""}>${write(ink, cls, box.cx, y, text2, cls === "dg-ss" ? TYPE.boxSub : TYPE.boxSubStrong, shown, "middle")}</g>`;
10207
+ const style = cls === "dg-ss" ? TYPE.boxSub : TYPE.boxSubStrong;
10208
+ 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);
10209
+ return `<g${anim ? ` class="dg-a" style="${anim}"` : ""}>${drawn}</g>`;
8783
10210
  }).join("");
8784
10211
  }
8785
10212
  function cardFrame(box, ctx, act, y, h) {
@@ -8847,9 +10274,9 @@ function endMark(e, color, ink) {
8847
10274
  function lifeline(x, y1, y2) {
8848
10275
  return `<line class="dg-ll" x1="${r1(x)}" y1="${r1(y1)}" x2="${r1(x)}" y2="${r1(y2)}"/>`;
8849
10276
  }
8850
- function edge(e, time, ctx, past = false) {
10277
+ function edge(e, time, ctx, past = false, since = 0) {
8851
10278
  const { m } = ctx;
8852
- ctx.traces.push({ from: e.from, to: e.to, points: e.points, shown: ALWAYS });
10279
+ ctx.traces.push({ from: e.from, to: e.to, points: e.points, shown: since > 0 ? [[since, Number.POSITIVE_INFINITY]] : ALWAYS });
8853
10280
  const d = pathOf(e.points);
8854
10281
  const head = arrowHead(e.points);
8855
10282
  const { start: a, drawn: b, end } = time;
@@ -8885,8 +10312,9 @@ function edge(e, time, ctx, past = false) {
8885
10312
  [m.total, { opacity: 0, "stroke-dashoffset": run }]
8886
10313
  ]);
8887
10314
  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 }]]) : "";
10315
+ const path2 = `<path class="dg-e" d="${d}"/><path class="dg-eh" d="${head}"/>`;
8888
10316
  return {
8889
- base: `<path class="dg-e" d="${d}"/><path class="dg-eh" d="${head}"/>${past ? `<path class="dg-e-past dg-a" d="${d}" style="${grey}"/><path class="dg-eh-past dg-a" d="${head}" style="${grey}"/>` : ""}`,
10317
+ 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}"/>` : ""}`,
8890
10318
  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>`
8891
10319
  };
8892
10320
  }
@@ -9181,8 +10609,133 @@ function tagMotion(ref, list, timeOf, ctx) {
9181
10609
  return `<g class="dg-a" data-ref="${esc(ref)}" style="${style}">${tagShape(ref, ctx.sh)}</g>`;
9182
10610
  }
9183
10611
 
9184
- // src/render/time.ts
10612
+ // src/render/lineup.ts
9185
10613
  var r13 = (v) => Math.round(v * 100) / 100;
10614
+ var place = (dx, dy, scale = 1) => `translate(${r13(dx)}px,${r13(dy)}px) scale(${scale})`;
10615
+ 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]);
10616
+ function drawLineup(layout, diagram, timeline, ctx, subs) {
10617
+ const { m } = ctx;
10618
+ const N = LOOK.lineup;
10619
+ const cut = MOTION.lineup.cut;
10620
+ const timeOf = (at2) => timeline.edges.find((t) => t.step === at2.step && t.event === at2.event) ?? { start: 0, drawn: 0 };
10621
+ const items = new Map((diagram.lineup?.items ?? []).map((item) => [item.id, item]));
10622
+ const turns = new Map(layout.lanes.map((lane) => [lane.id, []]));
10623
+ const faint = /* @__PURE__ */ new Set();
10624
+ const turn = (id, at2, to) => {
10625
+ if (faint.has(id) === to) return;
10626
+ if (to) faint.add(id);
10627
+ else faint.delete(id);
10628
+ turns.get(id)?.push([at2, to]);
10629
+ };
10630
+ for (const time of [...timeline.edges].sort((a, b) => a.start - b.start)) {
10631
+ const e = diagram.steps[time.step]?.events[time.event];
10632
+ if (e?.type === "line") turn(e.box, time.start, false);
10633
+ if (e?.type === "pick") for (const lane of layout.lanes) turn(lane.id, time.start, lane.id !== e.box);
10634
+ }
10635
+ const fadeOf = (id) => {
10636
+ const list = turns.get(id) ?? [];
10637
+ if (list.length === 0) return void 0;
10638
+ const frames = [[0, { opacity: 1 }]];
10639
+ let now = 1;
10640
+ for (const [t, to] of list) {
10641
+ const next = to ? N.faint : 1;
10642
+ frames.push([t, { opacity: now }, EASE.inOut], [t + MOTION.fade, { opacity: next }]);
10643
+ now = next;
10644
+ }
10645
+ frames.push([m.last, { opacity: now }, EASE.inOut], [m.total, { opacity: 1 }]);
10646
+ return m.kf(frames);
10647
+ };
10648
+ const closedOf = (seal) => [timeOf(seal).drawn, seal.until ? timeOf(seal.until).start : Number.POSITIVE_INFINITY];
10649
+ const hideOf = (seals) => {
10650
+ if (seals.length === 0) return void 0;
10651
+ const frames = [[0, { opacity: 1 }]];
10652
+ for (const seal of seals) {
10653
+ const [a, b] = closedOf(seal);
10654
+ frames.push([a, { opacity: 1 }], [a + cut, { opacity: 0 }]);
10655
+ if (seal.until) frames.push([b, { opacity: 0 }], [b + cut, { opacity: 1 }]);
10656
+ }
10657
+ frames.push([m.total - cut, { opacity: seals.at(-1)?.until ? 1 : 0 }], [m.total, { opacity: 1 }]);
10658
+ return m.kf(frames);
10659
+ };
10660
+ const sealKf = (seal) => {
10661
+ const { start, drawn } = timeOf(seal);
10662
+ const none = { opacity: 0, transform: "scaleX(0)" };
10663
+ const end = seal.until ? [
10664
+ [timeOf(seal.until).start, { opacity: 1 }, EASE.inOut],
10665
+ [timeOf(seal.until).start + MOTION.fade, { opacity: 0 }],
10666
+ [m.total, { opacity: 0 }]
10667
+ ] : [
10668
+ [m.last, { opacity: 1 }, EASE.inOut],
10669
+ [m.total, { opacity: 0 }]
10670
+ ];
10671
+ return m.kf([[0, none], [start - cut, none], [start, { opacity: 1, transform: "scaleX(0)" }, EASE.inOut], [drawn, { transform: "scaleX(1)" }], ...end]);
10672
+ };
10673
+ const leaving = (c) => {
10674
+ if (!c.until) return void 0;
10675
+ const until = c.until;
10676
+ 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);
10677
+ return next ? { at: timeOf(next).start, moved: true } : { at: timeOf(until).start, moved: false };
10678
+ };
10679
+ const chipKf = (c) => {
10680
+ const a = timeOf(c).start;
10681
+ const rest = place(0, 0);
10682
+ const frames = [];
10683
+ if (c.from) {
10684
+ const off = place(c.from[0] - c.x, c.from[1] - c.y);
10685
+ 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 }]);
10686
+ } else {
10687
+ const off = place(0, 0, LOOK.popFrom);
10688
+ frames.push([0, { opacity: 0, transform: off }], [a, { opacity: 0, transform: off }, EASE.pop], [a + MOTION.popFade, { opacity: 1, transform: rest }]);
10689
+ }
10690
+ const leaves = leaving(c);
10691
+ if (leaves) {
10692
+ frames.push([leaves.at, { opacity: 1 }, EASE.inOut], [leaves.at + (leaves.moved ? cut : MOTION.fade), { opacity: 0 }], [m.total, { opacity: 0 }]);
10693
+ } else {
10694
+ frames.push([m.last, { opacity: 1 }, EASE.inOut], [m.total, { opacity: 0 }]);
10695
+ }
10696
+ return m.kf(frames);
10697
+ };
10698
+ const chip = (c, closed) => {
10699
+ const item = items.get(c.id);
10700
+ const color = item?.color;
10701
+ 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}"/>`;
10702
+ const shown = without([timeOf(c).start + MOTION.lineup.slide, leaving(c)?.at ?? Number.POSITIVE_INFINITY], closed);
10703
+ 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");
10704
+ 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>`;
10705
+ };
10706
+ 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>`;
10707
+ const faded = new Map(layout.lanes.map((lane) => [lane.id, fadeOf(lane.id)]));
10708
+ const lanes = layout.lanes.map((lane) => {
10709
+ 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}/>`;
10710
+ const rings = layout.picks.flatMap((pick, k) => pick.lane === lane.id ? [ring(pick, layout.picks[k + 1], `${rect("dg-halo")}${rect("dg-on")}`)] : []).join("");
10711
+ const notes = subLines(lane, m, subs.get(lane.id) ?? [], lane.title.baseline, ctx.ink, lane.noteRight);
10712
+ const fade = faded.get(lane.id);
10713
+ 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>`;
10714
+ }).join("");
10715
+ const stripes = N.seal.stripe;
10716
+ 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>`;
10717
+ const chips = layout.lanes.map((lane) => {
10718
+ const seals = layout.seals.filter((s) => s.lane === lane.id);
10719
+ const closed = seals.map(closedOf);
10720
+ const seats = layout.chips.filter((c) => c.lane === lane.id).map((c) => chip(c, closed)).join("");
10721
+ const hide = hideOf(seals);
10722
+ const track = `<g${hide ? ' class="dg-a"' : ""} data-lineup-track="${esc(lane.id)}"${hide ? ` style="${hide}"` : ""}>${seats}</g>`;
10723
+ 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("");
10724
+ const stamps = layout.stamps.filter((s) => s.lane === lane.id).map((s) => {
10725
+ const at2 = timeOf(s).start;
10726
+ const cx = s.x + s.w / 2;
10727
+ const cy = s.y + s.h / 2;
10728
+ const text2 = write(ctx.ink, "dg-ln-st", cx, cy + LOOK.baseline.tag, s.text, TYPE.stamp, [[at2, Number.POSITIVE_INFINITY]], "middle");
10729
+ 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>`;
10730
+ }).join("");
10731
+ const fade = faded.get(lane.id);
10732
+ return `<g${fade ? ` class="dg-a" style="${fade}"` : ""}>${track}${covers}${stamps}</g>`;
10733
+ }).join("");
10734
+ return { lanes, chips: `${pattern}${chips}` };
10735
+ }
10736
+
10737
+ // src/render/time.ts
10738
+ var r14 = (v) => Math.round(v * 100) / 100;
9186
10739
  var ja2 = (cls, text2) => hasWide(text2) ? `${cls} ${cls}j` : cls;
9187
10740
  var sansOf = (t) => ({ ...t, family: "sans" });
9188
10741
  function simplify(keys2) {
@@ -9233,18 +10786,18 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
9233
10786
  const times = [passed.get(u), box ? arrivals.get(box) : void 0].filter((t) => t !== void 0);
9234
10787
  return times.length > 0 ? Math.min(...times) : void 0;
9235
10788
  };
9236
- for (const p of layout.periods) if (p.index % 2 === 1) base.push(`<rect class="dg-tm-ep" x="${r13(p.x)}" y="${r13(rowsTop - T.shade)}" width="${r13(p.w)}" height="${r13(rowsBottom - rowsTop + T.shade * 2)}" rx="4"/>`);
10789
+ 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"/>`);
9237
10790
  if (layout.zoom) {
9238
10791
  const z = layout.zoom;
9239
10792
  z.columns.forEach((c, k) => {
9240
- if (k > 0) base.push(`<line class="dg-tm-sep" x1="${r13(c.x)}" y1="${r13(c.y + T.sep)}" x2="${r13(c.x)}" y2="${r13(c.y + c.h - T.sep)}"/>`);
10793
+ 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)}"/>`);
9241
10794
  base.push(write(ink, ja2("dg-tm-hd", c.head), c.x + c.w / 2, z.headY, c.head, TYPE.timeHead, ALWAYS, "middle"));
9242
10795
  for (const box of c.boxes) node.push(columnBox(box, c.unit));
9243
10796
  });
9244
10797
  }
9245
10798
  function columnBox(box, unit) {
9246
10799
  const on = [...new Set(layout.wires.filter((w) => w.from === box || w.to === box).map((w) => w.step))].sort((a, b) => a - b);
9247
- const frame = (cls) => `<rect class="${cls}" x="${r13(box.x)}" y="${r13(box.y)}" width="${r13(box.w)}" height="${box.h}" rx="${LOOK.box.radius}"/>`;
10800
+ 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}"/>`;
9248
10801
  if (box.empty) {
9249
10802
  const shown2 = passed.get(unit);
9250
10803
  const word = layout.zoom?.empty ?? "";
@@ -9260,11 +10813,11 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
9260
10813
  for (const row of layout.rows) {
9261
10814
  const parts = [];
9262
10815
  for (const mark of layout.marks.filter((x2) => x2.row === row.id)) {
9263
- const rect = (cls, extra = "") => `<rect class="${cls}" x="${r13(mark.x)}" y="${r13(mark.y)}" width="${r13(mark.w)}" height="${r13(mark.h)}" rx="${T.markRadius}"${extra}/>`;
10816
+ 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}/>`;
9264
10817
  parts.push(rect("dg-tm-slot"));
9265
10818
  if (mark.empty) {
9266
10819
  const shown2 = passed.get(mark.unit);
9267
- if (shown2 !== void 0) parts.push(`<circle class="dg-tm-x dg-a" cx="${r13(mark.x + mark.w / 2)}" cy="${r13(mark.y + mark.h / 2)}" r="${T.emptyR}" style="${m.vis(shown2, m.last, { f: 0.2 })}"/>`);
10820
+ 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 })}"/>`);
9268
10821
  continue;
9269
10822
  }
9270
10823
  const shown = filled(row.id, mark.unit);
@@ -9284,13 +10837,13 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
9284
10837
  const z = layout.zoom;
9285
10838
  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];
9286
10839
  const guides = z.guides.map((g) => `<path class="dg-tm-gd" d="${pathOf(g)}"/>`).join("");
9287
- const lens = `<rect class="dg-tm-fr" x="${r13(z.frame.x)}" y="${r13(z.frame.y)}" width="${r13(z.frame.w)}" height="${r13(z.frame.h)}" rx="4"/>${guides}`;
10840
+ 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}`;
9288
10841
  base.push(hide === void 0 ? lens : `<g class="dg-a" style="${m.until(hide)}">${lens}</g>`);
9289
10842
  }
9290
- const x = (u) => r13(axis.x + u * axis.unit);
9291
- const majors = layout.ticks.map((t) => `M ${x(t.at)} ${r13(axis.line - T.major / 2)} V ${r13(axis.line + T.major / 2)}`);
9292
- const minors = layout.minor.map((u) => `M ${x(u)} ${r13(axis.line - T.minor / 2)} V ${r13(axis.line + T.minor / 2)}`);
9293
- base.push(`<path class="dg-tm-ax" d="M ${x(0)} ${r13(axis.line)} H ${x(axis.count)} ${[...majors, ...minors].join(" ")}"/>`);
10843
+ const x = (u) => r14(axis.x + u * axis.unit);
10844
+ const majors = layout.ticks.map((t) => `M ${x(t.at)} ${r14(axis.line - T.major / 2)} V ${r14(axis.line + T.major / 2)}`);
10845
+ const minors = layout.minor.map((u) => `M ${x(u)} ${r14(axis.line - T.minor / 2)} V ${r14(axis.line + T.minor / 2)}`);
10846
+ base.push(`<path class="dg-tm-ax" d="M ${x(0)} ${r14(axis.line)} H ${x(axis.count)} ${[...majors, ...minors].join(" ")}"/>`);
9294
10847
  for (const t of layout.ticks) base.push(write(ink, ja2("dg-tm-tk", t.text), t.left, t.y, t.text, TYPE.timeTick));
9295
10848
  for (const p of layout.periods) {
9296
10849
  base.push(write(ink, ja2("dg-tm-en", p.name), p.x + p.w / 2, p.nameY, p.name, TYPE.timePeriod, ALWAYS, "middle"));
@@ -9303,16 +10856,16 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
9303
10856
  const shown = [[a, until ?? Number.POSITIVE_INFINITY]];
9304
10857
  const vis = until === void 0 ? m.vis(a) : m.vis(a, until, { within: true });
9305
10858
  if (span.kind === "bracket") {
9306
- const [x0, x1, y0, y12] = [r13(span.x + 1), r13(span.x + span.w - 1), r13(span.y), r13(span.y + span.h)];
10859
+ const [x0, x1, y0, y12] = [r14(span.x + 1), r14(span.x + span.w - 1), r14(span.y), r14(span.y + span.h)];
9307
10860
  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");
9308
10861
  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>`);
9309
10862
  continue;
9310
10863
  }
9311
- base.push(`<g class="dg-a" data-span="${span.step}" style="${cs(span.color)};${vis}"><rect class="dg-tm-bx" x="${r13(span.x)}" y="${r13(span.y)}" width="${r13(span.w)}" height="${r13(span.h)}" rx="6"/></g>`);
10864
+ 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>`);
9312
10865
  const tag = span.textRect;
9313
10866
  ink.push({ text: span.text, rect: tag, shown, boxed: true });
9314
10867
  top.push(
9315
- `<g class="dg-tg dg-popc dg-a" style="${cs(span.color)};${until === void 0 ? m.pop(a) : m.pop(a, until)}"><rect x="${r13(tag.x)}" y="${r13(tag.y)}" width="${r13(tag.w)}" height="${tag.h}" rx="${tag.h / 2}"/><text x="${r13(tag.x + tag.w / 2)}" y="${r13(span.textY)}" text-anchor="middle">${esc(span.text)}</text></g>`
10868
+ `<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>`
9316
10869
  );
9317
10870
  }
9318
10871
  const P = T.point;
@@ -9320,7 +10873,7 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
9320
10873
  const { cx, cy, r } = point;
9321
10874
  const times = point.changes.map((c) => at2(c.step, c.event) ?? Number.POSITIVE_INFINITY);
9322
10875
  const first = times[0];
9323
- base.push(`<path class="dg-tm-con" d="M ${r13(cx)} ${r13(rowsBottom + 3)} L ${r13(cx)} ${r13(cy - r - 2)}"/>`);
10876
+ base.push(`<path class="dg-tm-con" d="M ${r14(cx)} ${r14(rowsBottom + 3)} L ${r14(cx)} ${r14(cy - r - 2)}"/>`);
9324
10877
  const tx = point.text.x;
9325
10878
  const name = write(ink, ja2("dg-tm-pn", point.id), tx, cy + P.nameY, point.id, TYPE.pointName);
9326
10879
  const grey = name.replace(/class="([^"]*)"/u, 'class="$1 dg-tm-pn-g"');
@@ -9336,9 +10889,9 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
9336
10889
  const rings = point.changes.map((c, k) => {
9337
10890
  const t = times[k];
9338
10891
  if (!c.color || !Number.isFinite(t)) return "";
9339
- return `<g class="dg-popc dg-a" style="${cs(c.color)};${m.pop(t)}"><circle class="dg-tm-pc" cx="${r13(cx)}" cy="${r13(cy)}" r="${r + 0.5}"/>${glyph("flag", cx, cy, P.glyph, "dg-tm-pcg")}</g>`;
10892
+ 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>`;
9340
10893
  }).join("");
9341
- node.push(`<g data-point="${esc(point.id)}"><circle class="dg-tm-pg" cx="${r13(cx)}" cy="${r13(cy)}" r="${r}"/>${glyph("flag", cx, cy, P.glyph, "dg-tm-pgl")}${rings}${label2}${states}</g>`);
10894
+ 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>`);
9342
10895
  }
9343
10896
  const wired = new Set(layout.wires.map((w) => `${w.step}/${w.event}`));
9344
10897
  for (const e of layout.edges) {
@@ -9370,7 +10923,7 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
9370
10923
  const { y1, y2 } = layout.needle;
9371
10924
  const N = T.needle;
9372
10925
  top.push(
9373
- `<g class="dg-a" data-needle="" style="${m.move(path2)}"><line class="dg-tm-nd" x1="0" y1="${r13(y1)}" x2="0" y2="${r13(y2)}"/><path class="dg-tm-nh" d="M ${ -6 * 0.75} ${r13(y1 - N.head)} L ${N.head * 0.75} ${r13(y1 - N.head)} L 0 ${r13(y1)} Z"/><circle class="dg-tm-nh" cy="${r13(axis.line)}" r="${N.dot}"/></g>`
10926
+ `<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>`
9374
10927
  );
9375
10928
  return { base: base.join(""), lit: lit.join(""), node: node.join(""), top: top.join("") };
9376
10929
  }
@@ -9380,12 +10933,12 @@ function meterField(field, keys2, ctx) {
9380
10933
  const { x, w, line, text: text2 } = field.meter;
9381
10934
  const y = field.y + M.y;
9382
10935
  const kf = m.kf([
9383
- ...simplify(keys2).map(([t, v]) => [t, { transform: `scaleX(${r13(v * 1e3) / 1e3})` }]),
9384
- [m.last, { transform: `scaleX(${r13(valueAt(keys2, m.last) * 1e3) / 1e3})` }, EASE.inOut],
10936
+ ...simplify(keys2).map(([t, v]) => [t, { transform: `scaleX(${r14(v * 1e3) / 1e3})` }]),
10937
+ [m.last, { transform: `scaleX(${r14(valueAt(keys2, m.last) * 1e3) / 1e3})` }, EASE.inOut],
9385
10938
  [m.total, { transform: "scaleX(0)" }]
9386
10939
  ]);
9387
10940
  const lx = x + w * line;
9388
- return `<rect class="dg-tm-mt" x="${r13(x)}" y="${r13(y)}" width="${r13(w)}" height="${M.h}" rx="${M.h / 2}"/><rect class="dg-tm-mf dg-a" x="${r13(x)}" y="${r13(y)}" width="${r13(w)}" height="${M.h}" rx="${M.h / 2}" style="${cs(M.color)};${kf}"/><line class="dg-tm-mk" x1="${r13(lx)}" y1="${r13(y - M.mark)}" x2="${r13(lx)}" y2="${r13(y + M.h + M.mark)}"/>` + write(ctx.ink, "dg-tm-ml", lx, field.y + M.textY, text2, TYPE.meterLine, ALWAYS, "middle");
10941
+ 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");
9389
10942
  }
9390
10943
  function timeFocus(layout, timeline, step, parts, vw, vh) {
9391
10944
  const span = timeline.steps[step];
@@ -9407,7 +10960,7 @@ function timeFocus(layout, timeline, step, parts, vw, vh) {
9407
10960
  }
9408
10961
 
9409
10962
  // src/render/tree.ts
9410
- var r14 = (v) => Math.round(v * 100) / 100;
10963
+ var r15 = (v) => Math.round(v * 100) / 100;
9411
10964
  function drawTree(layout, diagram, timeline, ctx) {
9412
10965
  const { m } = ctx;
9413
10966
  const T = LOOK.tree;
@@ -9466,7 +11019,7 @@ function drawTree(layout, diagram, timeline, ctx) {
9466
11019
  const ties = layout.nodes.flatMap((n) => {
9467
11020
  if (!n.card) return [];
9468
11021
  const at2 = drawnAt.get(n.id) ?? 0;
9469
- const d = `M ${r14(n.cx)} ${r14(n.y + n.h + LOOK.edge.inset)} V ${r14(n.card.y - LOOK.edge.inset)}`;
11022
+ const d = `M ${r15(n.cx)} ${r15(n.y + n.h + LOOK.edge.inset)} V ${r15(n.card.y - LOOK.edge.inset)}`;
9470
11023
  return [faded(n.id, `<path class="dg-tree-con dg-a" d="${d}" style="${m.vis(at2)}"/>`)];
9471
11024
  }).join("");
9472
11025
  const traced = /* @__PURE__ */ new Set();
@@ -9501,7 +11054,7 @@ function drawTree(layout, diagram, timeline, ctx) {
9501
11054
  return [
9502
11055
  faded(
9503
11056
  n.id,
9504
- `<rect class="dg-tree-card" x="${r14(c.x)}" y="${r14(c.y)}" width="${r14(c.w)}" height="${c.h}" rx="${T.card.radius}"/>${glyph("doc", gx, cy, T.card.glyph, "dg-tree-cg")}${text2}`,
11057
+ `<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}`,
9505
11058
  ` data-tree-card="${esc(n.id)}"`
9506
11059
  )
9507
11060
  ];
@@ -9511,10 +11064,10 @@ function drawTree(layout, diagram, timeline, ctx) {
9511
11064
  const on = [...active.get(n.id) ?? []].sort((x, y) => x - y);
9512
11065
  const act = on.length > 0 ? activeKf(ctx, on) : void 0;
9513
11066
  const radius = n.root ? T.root.radius : T.radius;
9514
- const rect = (cls, extra = "") => `<rect class="${cls}" x="${r14(n.x)}" y="${r14(n.y)}" width="${r14(n.w)}" height="${n.h}" rx="${radius}"${extra}/>`;
11067
+ 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}/>`;
9515
11068
  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>` : ""}`;
9516
11069
  const ix = n.x + T.root.iconX + B.icon / 2;
9517
- const mark = n.root ? `<rect class="dg-ic" x="${r14(ix - B.icon / 2)}" y="${r14(n.cy - B.icon / 2)}" width="${B.icon}" height="${B.icon}" rx="${B.iconRadius}"/>${glyph("tree", ix, n.cy, B.iconScale)}` : "";
11070
+ 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)}` : "";
9518
11071
  const shown = [[at2, Number.POSITIVE_INFINITY]];
9519
11072
  const texts = n.lines.map((line, k) => {
9520
11073
  const style = n.styles[k] ?? TYPE.boxName;
@@ -9525,7 +11078,7 @@ function drawTree(layout, diagram, timeline, ctx) {
9525
11078
  const inner = faded(n.id, `${frame}${mark}${texts}`, ` data-tree-node="${esc(n.id)}"${n.root ? ` data-tree-root="${esc(n.id)}"` : ""}`);
9526
11079
  return `<g class="dg-popc dg-a" style="${cs(n.color)};${m.pop(at2)}">${inner}</g>`;
9527
11080
  }).join("");
9528
- return { links: links + ties, trails, nodes: cards + nodes };
11081
+ return { links: links + ties, trails, nodes: cards + nodes, appear: drawnAt };
9529
11082
  }
9530
11083
 
9531
11084
  // src/render/motion.ts
@@ -9719,6 +11272,16 @@ var PART_CSS = [
9719
11272
  `.dg-tree-one{${font(TYPE.boxName)};fill:var(--ink)}`,
9720
11273
  `.dg-tree-rh{${font(TYPE.rootHash)};fill:var(--ink)}`,
9721
11274
  `.dg-tree-rn{${font(TYPE.rootName)};fill:var(--mute)}`,
11275
+ // 列の図 (#3239)。封は列の左端から右へ伸びる
11276
+ ".dg-ln-chip{fill:var(--c)}",
11277
+ `.dg-ln-plain{fill:color-mix(in srgb,var(--mute) ${X.chipPlain}%,var(--surf))}`,
11278
+ `.dg-ln-t{${font(TYPE.chip)};fill:var(--on-c)}`,
11279
+ `.dg-ln-tp{${font(TYPE.chip)};fill:var(--ink)}`,
11280
+ ".dg-ln-seal{transform-box:fill-box;transform-origin:0 50%}",
11281
+ `.dg-ln-sd{fill:color-mix(in srgb,var(--mute) ${X.sealDark}%,var(--surf))}`,
11282
+ `.dg-ln-sl{fill:color-mix(in srgb,var(--mute) ${X.sealLight}%,var(--surf))}`,
11283
+ `.dg-ln-stamp{fill:var(--surf);stroke:var(--c);stroke-width:${S.stamp}}`,
11284
+ `.dg-ln-st{${font(TYPE.stamp)};fill:var(--ct)}`,
9722
11285
  // 時間軸の図 (#3165)。和文を含む字は、末尾に j を付けた class で同じ大きさと太さの和文の字にする
9723
11286
  `.dg-tm-ep{fill:color-mix(in srgb,var(--ink) ${X.timeShade}%,transparent)}`,
9724
11287
  `.dg-tm-sep{stroke:var(--hair);stroke-width:${S.hair};stroke-dasharray:2 4}`,
@@ -9857,7 +11420,7 @@ function drawSvg(diagram, layout, timeline, palette, theme, follow, ink = [], tr
9857
11420
  const vars = paletteVars(palette, theme);
9858
11421
  const id = nameOf(`${JSON.stringify(diagram)}|${vars}|${follow ? `${follow.width}|${follow.lang}` : ""}`);
9859
11422
  const m = new Motion(`dg${id}`, timeline.total, timeline.last);
9860
- const ctx = { m, t: timeline, sh: `filter="url(#dg-sh-${id})"`, end: timeline.steps[timeline.steps.length - 1].end, ink, traces };
11423
+ const ctx = { m, t: timeline, id, sh: `filter="url(#dg-sh-${id})"`, end: timeline.steps[timeline.steps.length - 1].end, ink, traces };
9861
11424
  const on = involved(diagram);
9862
11425
  const subs = subChanges(diagram, timeline, layout.kind !== "sequence");
9863
11426
  const L = { band: [], base: [], lit: [], node: [], badge: [], top: [] };
@@ -9881,13 +11444,19 @@ function drawSvg(diagram, layout, timeline, palette, theme, follow, ink = [], tr
9881
11444
  L.top.push(git.tags);
9882
11445
  }
9883
11446
  const treeLayout = isTreeLayout(layout) ? layout : void 0;
9884
- if (treeLayout) {
9885
- const tree = drawTree(treeLayout, diagram, timeline, ctx);
11447
+ const tree = treeLayout ? drawTree(treeLayout, diagram, timeline, ctx) : void 0;
11448
+ if (tree) {
9886
11449
  L.base.push(tree.links);
9887
11450
  L.lit.push(tree.trails);
9888
11451
  L.node.push(tree.nodes);
9889
11452
  }
9890
11453
  const runs = new Set((treeLayout?.runs ?? []).map((r) => `${r.step}/${r.event}`));
11454
+ const lineupLayout = isLineupLayout(layout) ? layout : void 0;
11455
+ if (lineupLayout) {
11456
+ const lineup = drawLineup(lineupLayout, diagram, timeline, ctx, subs);
11457
+ L.base.push(lineup.lanes);
11458
+ L.node.push(lineup.chips);
11459
+ }
9891
11460
  const timeLayout = isTimeLayout(layout) ? layout : void 0;
9892
11461
  if (timeLayout) {
9893
11462
  const drawn = drawTime(timeLayout, diagram, timeline, ctx, subs);
@@ -9900,14 +11469,15 @@ function drawSvg(diagram, layout, timeline, palette, theme, follow, ink = [], tr
9900
11469
  for (const e of layout.edges) {
9901
11470
  const time = timeline.edges.find((t) => t.step === e.step && t.event === e.event);
9902
11471
  if (!time || timeLayout && !wired.has(`${e.step}/${e.event}`) || runs.has(`${e.step}/${e.event}`)) continue;
9903
- const drawn = edge(e, time, ctx, isState);
11472
+ const since = Math.max(tree?.appear.get(e.from) ?? 0, tree?.appear.get(e.to) ?? 0);
11473
+ const drawn = edge(e, time, ctx, isState, since);
9904
11474
  L.base.push(drawn.base);
9905
11475
  L.lit.push(drawn.lit);
9906
11476
  }
9907
11477
  const states = new Map((timeline.states ?? []).map((s) => [s.box, s]));
9908
11478
  const links = new Map(diagram.boxes.flatMap((b) => b.link === void 0 ? [] : [[b.id, b.link]]));
9909
11479
  const linked = (id2, markup) => linkTo(links.get(id2), markup);
9910
- for (const box of timeLayout ? [] : layout.boxes) {
11480
+ for (const box of timeLayout || lineupLayout ? [] : layout.boxes) {
9911
11481
  if (box.ghost) {
9912
11482
  L.node.push(linked(box.id, ghostCard(box, ink)));
9913
11483
  continue;
@@ -9977,6 +11547,10 @@ function focusParts(layout, diagram, step) {
9977
11547
  rects.push({ x: Math.min(...xs), y: Math.min(...ys), w: Math.max(...xs) - Math.min(...xs), h: Math.max(...ys) - Math.min(...ys) });
9978
11548
  }
9979
11549
  }
11550
+ if (isLineupLayout(layout)) {
11551
+ const changed = new Set((diagram.steps[step]?.events ?? []).flatMap((e) => "box" in e ? [e.box] : []));
11552
+ rects.push(...layout.lanes.filter((lane) => changed.has(lane.id)));
11553
+ }
9980
11554
  for (const event of diagram.steps[step]?.events ?? []) {
9981
11555
  const ids = event.type === "edge" ? [event.from, event.to] : event.type === "action" || event.type === "swap" ? [event.box] : [];
9982
11556
  for (const id of ids) {
@@ -10076,7 +11650,7 @@ function renderDiagram(input, options = {}) {
10076
11650
  const read = readDiagram(input, { lang });
10077
11651
  if (!read.ok) throw new Error(FIGURE_TEXT[lang].cannotDraw(read.errors.map((e) => `${e.pointer} ${e.message}`).join(" / ")));
10078
11652
  const diagram = read.diagram;
10079
- 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);
11653
+ 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);
10080
11654
  return renderLayout(diagram, layout, buildTimeline(diagram, options.still === true), options);
10081
11655
  }
10082
11656
  function renderLayout(diagram, layout, timeline, options = {}) {