@cardenelabs/dragon 0.45.5 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +90 -99
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +90 -99
- package/dist/cli.js.map +1 -1
- package/dist/export.cjs +84 -99
- package/dist/export.cjs.map +1 -1
- package/dist/export.js +84 -99
- package/dist/export.js.map +1 -1
- package/dist/index.cjs +48 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +48 -57
- package/dist/index.js.map +1 -1
- package/dist/light/chunk-CLS6JVKK.cjs.map +1 -1
- package/dist/light/{chunk-EHTQUCW4.js → chunk-DVGDEPCV.js} +6 -2
- package/dist/light/chunk-DVGDEPCV.js.map +1 -0
- package/dist/light/{chunk-5OQV42W3.cjs → chunk-SUL4AJLI.cjs} +6 -2
- package/dist/light/chunk-SUL4AJLI.cjs.map +1 -0
- package/dist/light/{chunk-JCEKXALJ.cjs → chunk-V34DCH34.cjs} +90 -87
- package/dist/light/chunk-V34DCH34.cjs.map +1 -0
- package/dist/light/{chunk-YEQSLVIN.js → chunk-YO3UBEC3.js} +12 -9
- package/dist/light/chunk-YO3UBEC3.js.map +1 -0
- package/dist/light/{git-K3KAAAWW.cjs → git-WBGFDRBD.cjs} +59 -59
- package/dist/light/git-WBGFDRBD.cjs.map +1 -0
- package/dist/light/{git-GESUYKGR.js → git-WEJL6VAY.js} +3 -3
- package/dist/light/index.cjs +358 -372
- package/dist/light/index.cjs.map +1 -1
- package/dist/light/index.js +43 -57
- package/dist/light/index.js.map +1 -1
- package/dist/light/{lineup-2V2U7HZH.js → lineup-6LN6Z5T2.js} +3 -3
- package/dist/light/{lineup-623J25LU.cjs → lineup-WLGNGTFX.cjs} +40 -40
- package/dist/light/lineup-WLGNGTFX.cjs.map +1 -0
- package/dist/light/{state-T4OTVING.js → state-DFYTMQI7.js} +2 -2
- package/dist/light/{state-OZVCHX7H.cjs → state-JVAH4TSM.cjs} +41 -41
- package/dist/light/state-JVAH4TSM.cjs.map +1 -0
- package/dist/light/{time-KVMZIKYF.cjs → time-EXRPI34B.cjs} +84 -84
- package/dist/light/time-EXRPI34B.cjs.map +1 -0
- package/dist/light/{time-O4CMTUV5.js → time-M3EGEFDU.js} +3 -3
- package/dist/light/{tree-6D7KI57H.cjs → tree-DECHTXFU.cjs} +62 -62
- package/dist/light/tree-DECHTXFU.cjs.map +1 -0
- package/dist/light/{tree-ZJZQI5QT.js → tree-MFU54QKY.js} +3 -3
- package/dist/node.cjs +27 -48
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +27 -48
- package/dist/node.js.map +1 -1
- package/dist/player.global.js +3 -3
- package/package.json +1 -1
- package/src/look/values.ts +5 -1
- package/src/messages.ts +4 -1
- package/src/parser.ts +4 -2
- package/src/render/draw.ts +2 -1
- package/src/render/parts.ts +28 -7
- package/src/schema.ts +6 -0
- package/src/schemas/diagram.schema.json +3 -2
- package/src/schemas/validate-diagram.js +1 -1
- package/dist/light/chunk-5OQV42W3.cjs.map +0 -1
- package/dist/light/chunk-EHTQUCW4.js.map +0 -1
- package/dist/light/chunk-JCEKXALJ.cjs.map +0 -1
- package/dist/light/chunk-YEQSLVIN.js.map +0 -1
- package/dist/light/git-K3KAAAWW.cjs.map +0 -1
- package/dist/light/lineup-623J25LU.cjs.map +0 -1
- package/dist/light/state-OZVCHX7H.cjs.map +0 -1
- package/dist/light/time-KVMZIKYF.cjs.map +0 -1
- package/dist/light/tree-6D7KI57H.cjs.map +0 -1
- /package/dist/light/{git-GESUYKGR.js.map → git-WEJL6VAY.js.map} +0 -0
- /package/dist/light/{lineup-2V2U7HZH.js.map → lineup-6LN6Z5T2.js.map} +0 -0
- /package/dist/light/{state-T4OTVING.js.map → state-DFYTMQI7.js.map} +0 -0
- /package/dist/light/{time-O4CMTUV5.js.map → time-M3EGEFDU.js.map} +0 -0
- /package/dist/light/{tree-ZJZQI5QT.js.map → tree-MFU54QKY.js.map} +0 -0
|
@@ -5,4 +5,4 @@ function ucs2length(str) {
|
|
|
5
5
|
for (const _ of str) length++;
|
|
6
6
|
return length;
|
|
7
7
|
}
|
|
8
|
-
export const validate = validate10;export default validate10;const schema11 = {"title":"dragon の図の原本","description":"区画、箱、線、運ぶ物、段、中身の帯の 6 部品を共通の骨組みに置き、図の種類だけの物は種類の欄に置く。座標は持たない。箱は枝分かれの図と時間軸の図と木の図だけが持たなくてよい。列の図の箱は列になる。","type":"object","additionalProperties":false,"required":["version","kind","title","boxes","steps"],"properties":{"version":{"description":"形式の版","type":"integer","minimum":1},"kind":{"description":"図の種類","enum":["sequence","architecture","state","git","time","tree","lineup"]},"title":{"$ref":"#/definitions/text"},"view":{"description":"見せ方。書かなければ字の大きさで選ぶ。fixed は全体を止めて中だけ動かし、follow は寄って動かし全体図で今どこかを示す","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"}},"if":{"required":["kind"],"properties":{"kind":{"const":"sequence"}}},"then":{"required":["sequence"],"properties":{"boxes":{"minItems":1},"steps":{"$ref":"#/definitions/plainSteps"},"strip":{"$ref":"#/definitions/plainStrip"},"state":{"$ref":"#/definitions/absent"},"git":{"$ref":"#/definitions/absent"},"time":{"$ref":"#/definitions/absent"},"lineup":{"$ref":"#/definitions/absent"}}},"else":{"properties":{"sequence":{"$ref":"#/definitions/absent"}},"if":{"required":["kind"],"properties":{"kind":{"const":"state"}}},"then":{"properties":{"boxes":{"minItems":1,"items":{"properties":{"id":{"description":"始まりと終わりの印の名前は箱の名札に使えない","not":{"enum":["start","finish"]}}}}},"steps":{"$ref":"#/definitions/plainSteps"},"strip":{"$ref":"#/definitions/plainStrip"},"git":{"$ref":"#/definitions/absent"},"time":{"$ref":"#/definitions/absent"},"lineup":{"$ref":"#/definitions/absent"}}},"else":{"if":{"required":["kind"],"properties":{"kind":{"const":"git"}}},"then":{"required":["git"],"properties":{"steps":{"$ref":"#/definitions/gitSteps"},"strip":{"$ref":"#/definitions/plainStrip"},"state":{"$ref":"#/definitions/absent"},"regions":{"$ref":"#/definitions/absent"},"time":{"$ref":"#/definitions/absent"},"lineup":{"$ref":"#/definitions/absent"}}},"else":{"if":{"required":["kind"],"properties":{"kind":{"const":"time"}}},"then":{"required":["time"],"properties":{"steps":{"$ref":"#/definitions/timeSteps"},"state":{"$ref":"#/definitions/absent"},"git":{"$ref":"#/definitions/absent"},"regions":{"$ref":"#/definitions/absent"},"lineup":{"$ref":"#/definitions/absent"}}},"else":{"if":{"required":["kind"],"properties":{"kind":{"const":"tree"}}},"then":{"properties":{"steps":{"$ref":"#/definitions/treeSteps"},"strip":{"$ref":"#/definitions/plainStrip"},"state":{"$ref":"#/definitions/absent"},"git":{"$ref":"#/definitions/absent"},"time":{"$ref":"#/definitions/absent"},"regions":{"$ref":"#/definitions/absent"},"lineup":{"$ref":"#/definitions/absent"}}},"else":{"if":{"required":["kind"],"properties":{"kind":{"const":"lineup"}}},"then":{"required":["lineup"],"properties":{"boxes":{"minItems":1,"items":{"properties":{"icon":{"$ref":"#/definitions/absent"},"link":{"$ref":"#/definitions/absent"},"region":{"$ref":"#/definitions/absent"}}}},"steps":{"$ref":"#/definitions/lineupSteps"},"strip":{"$ref":"#/definitions/plainStrip"},"state":{"$ref":"#/definitions/absent"},"git":{"$ref":"#/definitions/absent"},"time":{"$ref":"#/definitions/absent"},"regions":{"$ref":"#/definitions/absent"}}},"else":{"properties":{"boxes":{"minItems":1},"steps":{"$ref":"#/definitions/plainSteps"},"strip":{"$ref":"#/definitions/plainStrip"},"state":{"$ref":"#/definitions/absent"},"git":{"$ref":"#/definitions/absent"},"time":{"$ref":"#/definitions/absent"},"lineup":{"$ref":"#/definitions/absent"}}}}}}}},"definitions":{"text":{"type":"string","minLength":1},"absent":{"description":"この図の種類では書けない欄","not":{}},"plainSteps":{"description":"枝分かれの図でも時間軸の図でも木の図でも列の図でもない図の段。枝分かれの図だけの出来事 (commit と branch) と、時間軸の図だけの出来事 (now と mark と span) と欄 (at と into と color) と、木の図だけの出来事 (leaf と node) と、列の図だけの出来事 (line と seal と open と pick と stamp) を書けない","items":{"properties":{"events":{"items":{"not":{"$ref":"#/definitions/timeEvent"},"allOf":[{"not":{"$ref":"#/definitions/treeEvent"}},{"$ref":"#/definitions/notLineupEvent"}],"properties":{"type":{"not":{"enum":["commit","branch"]}},"at":{"$ref":"#/definitions/absent"},"into":{"$ref":"#/definitions/absent"},"color":{"$ref":"#/definitions/absent"}}}}}}},"gitSteps":{"description":"枝分かれの図の段。時間軸の図だけの出来事 (now と mark と span) と欄 (at と into と color) と、木の図だけの出来事 (leaf と node) と、列の図だけの出来事 (line と seal と open と pick と stamp) を書けない","items":{"properties":{"events":{"items":{"not":{"$ref":"#/definitions/timeEvent"},"allOf":[{"not":{"$ref":"#/definitions/treeEvent"}},{"$ref":"#/definitions/notLineupEvent"}],"properties":{"at":{"$ref":"#/definitions/absent"},"into":{"$ref":"#/definitions/absent"},"color":{"$ref":"#/definitions/absent"}}}}}}},"timeSteps":{"description":"時間軸の図の段。枝分かれの図だけの出来事 (commit と branch) と、木の図だけの出来事 (leaf と node) と、列の図だけの出来事 (line と seal と open と pick と stamp) を書けない","items":{"properties":{"events":{"items":{"allOf":[{"not":{"$ref":"#/definitions/treeEvent"}},{"$ref":"#/definitions/notLineupEvent"}],"properties":{"type":{"not":{"enum":["commit","branch"]}}}}}}}},"treeSteps":{"description":"木の図の段。枝分かれの図だけの出来事 (commit と branch) と、時間軸の図だけの出来事 (now と mark と span) と欄 (at と into と color) と、列の図だけの出来事 (line と seal と open と pick と stamp) を書けない","items":{"properties":{"events":{"items":{"not":{"$ref":"#/definitions/timeEvent"},"allOf":[{"$ref":"#/definitions/notLineupEvent"}],"properties":{"type":{"not":{"enum":["commit","branch"]}},"at":{"$ref":"#/definitions/absent"},"into":{"$ref":"#/definitions/absent"},"color":{"$ref":"#/definitions/absent"}}}}}}},"lineupSteps":{"description":"列の図の段。線と処理と、枝分かれの図だけの出来事 (commit と branch) と、時間軸の図だけの出来事 (now と mark と span) と欄 (color) と、木の図だけの出来事 (leaf と node) を書けない","items":{"properties":{"events":{"items":{"not":{"$ref":"#/definitions/timeEvent"},"allOf":[{"not":{"$ref":"#/definitions/treeEvent"}},{"$ref":"#/definitions/notWiredEvent"}],"properties":{"type":{"not":{"enum":["commit","branch"]}},"color":{"$ref":"#/definitions/absent"}}}}}}},"treeEvent":{"description":"木の図だけが書ける出来事","required":["type"],"properties":{"type":{"enum":["leaf","node"]}}},"notLineupEvent":{"description":"列の図だけが書ける出来事を書けない","not":{"required":["type"],"properties":{"type":{"enum":["line","seal","open","pick","stamp"]}}}},"notWiredEvent":{"description":"箱と線の図の出来事を書けない","not":{"required":["type"],"properties":{"type":{"enum":["edge","action"]}}}},"timeEvent":{"description":"時間軸の図だけが書ける出来事","required":["type"],"properties":{"type":{"enum":["now","mark","span"]}}},"plainStrip":{"description":"時間軸の図でない図の中身の帯。物差しを書けない","properties":{"meters":{"$ref":"#/definitions/absent"}}},"id":{"type":"string","pattern":"^[^\\s\\[\\]「」=:]+$"},"color":{"enum":["blue","amber","green","violet","rose","slate","coin"]},"region":{"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"note":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"icon":{"$ref":"#/definitions/text"}}},"box":{"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"sub":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"icon":{"$ref":"#/definitions/text"},"region":{"$ref":"#/definitions/id"},"link":{"description":"飛び先。描いた図ではこの箱がここへの link になる","$ref":"#/definitions/url"}}},"strip":{"type":"object","additionalProperties":false,"required":["title","fields"],"properties":{"title":{"$ref":"#/definitions/text"},"fields":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/text"}},"meters":{"description":"物差しにする欄。時間軸の図だけが書ける","type":"array","minItems":1,"items":{"$ref":"#/definitions/meter"}}}},"meter":{"description":"物差しの欄。line の割合の所に線を引き、set の値まで針と一緒に満ちる","type":"object","additionalProperties":false,"required":["field","line"],"properties":{"field":{"$ref":"#/definitions/text"},"line":{"$ref":"#/definitions/ratio"}}},"ratio":{"description":"割合。分数 (2/3) か百分率 (97%)","type":"string","pattern":"^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$"},"step":{"type":"object","additionalProperties":false,"required":["title","body","events"],"properties":{"title":{"$ref":"#/definitions/text"},"body":{"$ref":"#/definitions/text"},"code":{"$ref":"#/definitions/text"},"sources":{"description":"段の出典。読み上げの段の一覧に、名前を URL への link にして書いた順に出す","type":"array","minItems":1,"items":{"$ref":"#/definitions/source"}},"events":{"type":"array","items":{"$ref":"#/definitions/event"}}}},"source":{"type":"object","additionalProperties":false,"required":["name","url"],"properties":{"name":{"$ref":"#/definitions/text"},"url":{"$ref":"#/definitions/url"}}},"url":{"description":"頁を移る形。/ で始まる path か、http:// か https:// で始まる URL","type":"string","pattern":"^(/|https?://)"},"event":{"description":"段の中で起きること。起きる順に並べる","type":"object","required":["type"],"discriminator":{"propertyName":"type"},"oneOf":[{"description":"線。運ぶ物を載せて送る側から受ける側へ走る","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":"線の名前を置く側 (寄せの指示)","enum":["above","below","left","right"]},"at":{"description":"時間軸の図の拡大の帯で、線を引く列の目盛り","$ref":"#/definitions/unit"},"into":{"description":"時間軸の図の拡大の帯で、受ける箱を選ぶ列の目盛り。書かなければ at の列","$ref":"#/definitions/unit"}}},{"description":"箱の中の処理","type":"object","additionalProperties":false,"required":["type","box","label"],"properties":{"type":{"const":"action"},"box":{"$ref":"#/definitions/id"},"label":{"$ref":"#/definitions/text"}}},{"description":"箱の下の小さな字の書き換え","type":"object","additionalProperties":false,"required":["type","box","text"],"properties":{"type":{"const":"swap"},"box":{"$ref":"#/definitions/id"},"text":{"$ref":"#/definitions/text"},"color":{"description":"時間軸の図の節目の丸の色","$ref":"#/definitions/color"}}},{"description":"commit を積む。枝分かれの図だけが書ける。積んだ枝の札と、その枝を指す HEAD が進む。当て直し (copy) は枝の札を動かさず、merge commit (merge) は取り込む枝の先端も親に持つ","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":"枝を切る。枝分かれの図だけが書ける。枝の札を from の commit へ置き、HEAD をその枝へ移す","type":"object","additionalProperties":false,"required":["type","branch","from"],"properties":{"type":{"const":"branch"},"branch":{"$ref":"#/definitions/id"},"from":{"$ref":"#/definitions/id"}}},{"description":"時間軸の図の今の時刻の針を、to の目盛りの終わりまで進める","type":"object","additionalProperties":false,"required":["type","to"],"properties":{"type":{"const":"now"},"to":{"$ref":"#/definitions/unit"}}},{"description":"時間軸の図の印の列 row の、from から to の目盛りの印の色を変える","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":"時間軸の図の from から to の目盛りに、括弧と字を出す。shape が box なら印の列を囲み、字を縁の札にする","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":"葉を出す。木の図だけが書ける。書いた段で葉の箱が現れる。hash を書くと箱に値を出し、名札を葉の下の札に出す","type":"object","additionalProperties":false,"required":["type","id"],"properties":{"type":{"const":"leaf"},"id":{"$ref":"#/definitions/id"},"hash":{"$ref":"#/definitions/hash"}}},{"description":"1 つ以上の子から親を組む。木の図だけが書ける。書いた段で親の箱と、子から親への木の線が現れる","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":"列の box の並びを items に書き換える。列の図だけが書ける。チップは前に居た列から滑り、どの列にも居なかったチップは弾んで現れ、列から外れたチップは消える","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":"列 box に封をして、チップを隠す。列の図だけが書ける","type":"object","additionalProperties":false,"required":["type","box"],"properties":{"type":{"const":"seal"},"box":{"$ref":"#/definitions/id"}}},{"description":"列 box の封を開ける。列の図だけが書ける","type":"object","additionalProperties":false,"required":["type","box"],"properties":{"type":{"const":"open"},"box":{"$ref":"#/definitions/id"}}},{"description":"列 box を選ぶ。列の図だけが書ける。列の縁に色が付き、ほかの列が薄くなる","type":"object","additionalProperties":false,"required":["type","box"],"properties":{"type":{"const":"pick"},"box":{"$ref":"#/definitions/id"}}},{"description":"列 box の右に text の札を押す。列の図だけが書ける","type":"object","additionalProperties":false,"required":["type","box","text"],"properties":{"type":{"const":"stamp"},"box":{"$ref":"#/definitions/id"},"text":{"$ref":"#/definitions/text"}}},{"description":"中身の帯の欄の値と札","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"}}}]},"carry":{"description":"線の上を走る物。封筒 (メッセージや要求)、札 (名前のある値)、硬貨 (価値)、無し","type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"enum":["envelope","tag","coin","none"]},"text":{"$ref":"#/definitions/text"}},"if":{"required":["kind"],"properties":{"kind":{"const":"tag"}}},"then":{"required":["text"]},"else":{"not":{"required":["text"]}}},"sequence":{"description":"時系列図の種類の欄。生存線を左から並べる順","type":"object","additionalProperties":false,"required":["lifelines"],"properties":{"lifelines":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/id"}}}},"state":{"description":"状態遷移図の種類の欄。最初の段より前に書いた、移れるが段で通るとは限らない線","type":"object","additionalProperties":false,"required":["paths"],"properties":{"paths":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/path"}}}},"git":{"description":"枝分かれの図の種類の欄。枝を上から帯に並べる順","type":"object","additionalProperties":false,"required":["branches"],"properties":{"branches":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/branch"}}}},"branch":{"description":"枝。帯の左に名札と添え書きを置く","type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"$ref":"#/definitions/id"},"note":{"$ref":"#/definitions/text"}}},"hash":{"description":"commit と木の箱の hash。16 進の字で 4 から 40 字","type":"string","pattern":"^[0-9a-f]{4,40}$"},"lineup":{"description":"列の図の種類の欄。列に並べるチップ","type":"object","additionalProperties":false,"required":["items"],"properties":{"items":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/item"}}}},"item":{"description":"チップ。color を書かないチップは薄い色で、label を書かないチップは色だけで出す","type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"$ref":"#/definitions/id"},"color":{"$ref":"#/definitions/color"},"label":{"description":"チップに載せる字","type":"string","minLength":1,"maxLength":4}}},"time":{"description":"時間軸の図の種類の欄。目盛り、区切り、印の列、節目、拡大の範囲","type":"object","additionalProperties":false,"required":["scale","rows"],"properties":{"scale":{"$ref":"#/definitions/scale"},"period":{"$ref":"#/definitions/period"},"rows":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/row"}},"points":{"type":"array","items":{"$ref":"#/definitions/point"}},"zoom":{"$ref":"#/definitions/zoom"}}},"scale":{"description":"目盛り。unit の名前の目盛りを length の長さで count 個並べ、最初の目盛りの番号を from にする","type":"object","additionalProperties":false,"required":["unit","length","count"],"properties":{"unit":{"$ref":"#/definitions/text"},"length":{"$ref":"#/definitions/duration"},"count":{"type":"integer","minimum":1},"from":{"type":"integer","minimum":0}}},"duration":{"description":"長さ。数と単位 (ms、s、min、h、d) の組","type":"string","pattern":"^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$"},"unit":{"description":"目盛りの位置。0 から数える","type":"integer","minimum":0},"period":{"description":"区切り。目盛り length 個ごとに name の区切りを置き、最初の区切りの番号を from にする","type":"object","additionalProperties":false,"required":["name","length"],"properties":{"name":{"$ref":"#/definitions/text"},"length":{"type":"integer","minimum":1},"from":{"type":"integer","minimum":0}}},"row":{"description":"印の列。目盛りごとに印を 1 つ置き、empty の目盛りは空きの印にする","type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"empty":{"type":"array","items":{"$ref":"#/definitions/unit"}}}},"point":{"description":"節目。at の目盛りの印の下に旗の丸と名札を置く","type":"object","additionalProperties":false,"required":["id","at"],"properties":{"id":{"$ref":"#/definitions/id"},"at":{"$ref":"#/definitions/unit"}}},"zoom":{"description":"拡大の範囲。from から to の目盛りごとに拡大の帯に列を作る","type":"object","additionalProperties":false,"required":["from","to"],"properties":{"from":{"$ref":"#/definitions/unit"},"to":{"$ref":"#/definitions/unit"}}},"path":{"description":"移れる道。送る側に始まりの印 start、受ける側に終わりの印 finish を書ける。どの段にも出ない道は点線で描き、運ぶ物を走らせない","type":"object","additionalProperties":false,"required":["from","to"],"properties":{"from":{"$ref":"#/definitions/id"},"to":{"$ref":"#/definitions/id"},"label":{"$ref":"#/definitions/text"}}}}};const schema16 = {"description":"この図の種類では書けない欄","not":{}};const schema74 = {"type":"string","minLength":1};const schema12 = {"description":"枝分かれの図でも時間軸の図でも木の図でも列の図でもない図の段。枝分かれの図だけの出来事 (commit と branch) と、時間軸の図だけの出来事 (now と mark と span) と欄 (at と into と color) と、木の図だけの出来事 (leaf と node) と、列の図だけの出来事 (line と seal と open と pick と stamp) を書けない","items":{"properties":{"events":{"items":{"not":{"$ref":"#/definitions/timeEvent"},"allOf":[{"not":{"$ref":"#/definitions/treeEvent"}},{"$ref":"#/definitions/notLineupEvent"}],"properties":{"type":{"not":{"enum":["commit","branch"]}},"at":{"$ref":"#/definitions/absent"},"into":{"$ref":"#/definitions/absent"},"color":{"$ref":"#/definitions/absent"}}}}}}};const schema13 = {"description":"時間軸の図だけが書ける出来事","required":["type"],"properties":{"type":{"enum":["now","mark","span"]}}};const schema14 = {"description":"木の図だけが書ける出来事","required":["type"],"properties":{"type":{"enum":["leaf","node"]}}};const schema15 = {"description":"列の図だけが書ける出来事を書けない","not":{"required":["type"],"properties":{"type":{"enum":["line","seal","open","pick","stamp"]}}}};function validate11(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.events !== undefined){let data1 = data0.events;if(Array.isArray(data1)){const len1 = data1.length;for(let i1=0; i1<len1; i1++){let data2 = data1[i1];const _errs3 = errors;const _errs4 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing0;if((data2.type === undefined) && (missing0 = "type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data2.type !== undefined){let data3 = data2.type;if(!(((data3 === "now") || (data3 === "mark")) || (data3 === "span"))){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var valid5 = _errs4 === errors;if(valid5){const err2 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/items/properties/events/items/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}const _errs8 = errors;const _errs9 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((data2.type === undefined) && (missing1 = "type")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(data2.type !== undefined){let data4 = data2.type;if(!((data4 === "leaf") || (data4 === "node"))){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}}var valid9 = _errs9 === errors;if(valid9){const err5 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/items/properties/events/items/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}const _errs14 = errors;const _errs15 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing2;if((data2.type === undefined) && (missing2 = "type")){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data2.type !== undefined){let data5 = data2.type;if(!(((((data5 === "line") || (data5 === "seal")) || (data5 === "open")) || (data5 === "pick")) || (data5 === "stamp"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}var valid13 = _errs15 === errors;if(valid13){const err8 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/definitions/notLineupEvent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs14;if(vErrors !== null){if(_errs14){vErrors.length = _errs14;}else {vErrors = null;}}}if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.type !== undefined){let data6 = data2.type;const _errs18 = errors;const _errs19 = errors;if(!((data6 === "commit") || (data6 === "branch"))){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid16 = _errs19 === errors;if(valid16){const err10 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/type",schemaPath:"#/items/properties/events/items/properties/type/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}}if(data2.at !== undefined){const err11 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/at",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data2.into !== undefined){const err12 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/into",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(data2.color !== undefined){const err13 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/color",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}}}}}}validate11.errors = vErrors;return errors === 0;}const schema19 = {"description":"時間軸の図でない図の中身の帯。物差しを書けない","properties":{"meters":{"$ref":"#/definitions/absent"}}};function validate13(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.meters !== undefined){const err0 = {instancePath:instancePath+"/meters",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}validate13.errors = vErrors;return errors === 0;}const schema28 = {"description":"枝分かれの図の段。時間軸の図だけの出来事 (now と mark と span) と欄 (at と into と color) と、木の図だけの出来事 (leaf と node) と、列の図だけの出来事 (line と seal と open と pick と stamp) を書けない","items":{"properties":{"events":{"items":{"not":{"$ref":"#/definitions/timeEvent"},"allOf":[{"not":{"$ref":"#/definitions/treeEvent"}},{"$ref":"#/definitions/notLineupEvent"}],"properties":{"at":{"$ref":"#/definitions/absent"},"into":{"$ref":"#/definitions/absent"},"color":{"$ref":"#/definitions/absent"}}}}}}};function validate17(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.events !== undefined){let data1 = data0.events;if(Array.isArray(data1)){const len1 = data1.length;for(let i1=0; i1<len1; i1++){let data2 = data1[i1];const _errs3 = errors;const _errs4 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing0;if((data2.type === undefined) && (missing0 = "type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data2.type !== undefined){let data3 = data2.type;if(!(((data3 === "now") || (data3 === "mark")) || (data3 === "span"))){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var valid5 = _errs4 === errors;if(valid5){const err2 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/items/properties/events/items/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}const _errs8 = errors;const _errs9 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((data2.type === undefined) && (missing1 = "type")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(data2.type !== undefined){let data4 = data2.type;if(!((data4 === "leaf") || (data4 === "node"))){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}}var valid9 = _errs9 === errors;if(valid9){const err5 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/items/properties/events/items/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}const _errs14 = errors;const _errs15 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing2;if((data2.type === undefined) && (missing2 = "type")){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data2.type !== undefined){let data5 = data2.type;if(!(((((data5 === "line") || (data5 === "seal")) || (data5 === "open")) || (data5 === "pick")) || (data5 === "stamp"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}var valid13 = _errs15 === errors;if(valid13){const err8 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/definitions/notLineupEvent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs14;if(vErrors !== null){if(_errs14){vErrors.length = _errs14;}else {vErrors = null;}}}if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.at !== undefined){const err9 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/at",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data2.into !== undefined){const err10 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/into",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data2.color !== undefined){const err11 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/color",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}}}}}}validate17.errors = vErrors;return errors === 0;}const schema39 = {"description":"時間軸の図の段。枝分かれの図だけの出来事 (commit と branch) と、木の図だけの出来事 (leaf と node) と、列の図だけの出来事 (line と seal と open と pick と stamp) を書けない","items":{"properties":{"events":{"items":{"allOf":[{"not":{"$ref":"#/definitions/treeEvent"}},{"$ref":"#/definitions/notLineupEvent"}],"properties":{"type":{"not":{"enum":["commit","branch"]}}}}}}}};function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.events !== undefined){let data1 = data0.events;if(Array.isArray(data1)){const len1 = data1.length;for(let i1=0; i1<len1; i1++){let data2 = data1[i1];const _errs4 = errors;const _errs5 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing0;if((data2.type === undefined) && (missing0 = "type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data2.type !== undefined){let data3 = data2.type;if(!((data3 === "leaf") || (data3 === "node"))){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var valid6 = _errs5 === errors;if(valid6){const err2 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/items/properties/events/items/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs4;if(vErrors !== null){if(_errs4){vErrors.length = _errs4;}else {vErrors = null;}}}const _errs10 = errors;const _errs11 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((data2.type === undefined) && (missing1 = "type")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(data2.type !== undefined){let data4 = data2.type;if(!(((((data4 === "line") || (data4 === "seal")) || (data4 === "open")) || (data4 === "pick")) || (data4 === "stamp"))){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}}var valid10 = _errs11 === errors;if(valid10){const err5 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/definitions/notLineupEvent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}}if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.type !== undefined){let data5 = data2.type;const _errs14 = errors;const _errs15 = errors;if(!((data5 === "commit") || (data5 === "branch"))){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var valid13 = _errs15 === errors;if(valid13){const err7 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/type",schemaPath:"#/items/properties/events/items/properties/type/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {errors = _errs14;if(vErrors !== null){if(_errs14){vErrors.length = _errs14;}else {vErrors = null;}}}}}}}}}}}validate20.errors = vErrors;return errors === 0;}const schema46 = {"description":"木の図の段。枝分かれの図だけの出来事 (commit と branch) と、時間軸の図だけの出来事 (now と mark と span) と欄 (at と into と color) と、列の図だけの出来事 (line と seal と open と pick と stamp) を書けない","items":{"properties":{"events":{"items":{"not":{"$ref":"#/definitions/timeEvent"},"allOf":[{"$ref":"#/definitions/notLineupEvent"}],"properties":{"type":{"not":{"enum":["commit","branch"]}},"at":{"$ref":"#/definitions/absent"},"into":{"$ref":"#/definitions/absent"},"color":{"$ref":"#/definitions/absent"}}}}}}};function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.events !== undefined){let data1 = data0.events;if(Array.isArray(data1)){const len1 = data1.length;for(let i1=0; i1<len1; i1++){let data2 = data1[i1];const _errs3 = errors;const _errs4 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing0;if((data2.type === undefined) && (missing0 = "type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data2.type !== undefined){let data3 = data2.type;if(!(((data3 === "now") || (data3 === "mark")) || (data3 === "span"))){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var valid5 = _errs4 === errors;if(valid5){const err2 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/items/properties/events/items/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}const _errs9 = errors;const _errs10 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((data2.type === undefined) && (missing1 = "type")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(data2.type !== undefined){let data4 = data2.type;if(!(((((data4 === "line") || (data4 === "seal")) || (data4 === "open")) || (data4 === "pick")) || (data4 === "stamp"))){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}}var valid10 = _errs10 === errors;if(valid10){const err5 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/definitions/notLineupEvent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.type !== undefined){let data5 = data2.type;const _errs13 = errors;const _errs14 = errors;if(!((data5 === "commit") || (data5 === "branch"))){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var valid13 = _errs14 === errors;if(valid13){const err7 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/type",schemaPath:"#/items/properties/events/items/properties/type/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}}}if(data2.at !== undefined){const err8 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/at",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data2.into !== undefined){const err9 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/into",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data2.color !== undefined){const err10 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/color",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}}}}}}validate22.errors = vErrors;return errors === 0;}const schema60 = {"description":"列の図の段。線と処理と、枝分かれの図だけの出来事 (commit と branch) と、時間軸の図だけの出来事 (now と mark と span) と欄 (color) と、木の図だけの出来事 (leaf と node) を書けない","items":{"properties":{"events":{"items":{"not":{"$ref":"#/definitions/timeEvent"},"allOf":[{"not":{"$ref":"#/definitions/treeEvent"}},{"$ref":"#/definitions/notWiredEvent"}],"properties":{"type":{"not":{"enum":["commit","branch"]}},"color":{"$ref":"#/definitions/absent"}}}}}}};const schema63 = {"description":"箱と線の図の出来事を書けない","not":{"required":["type"],"properties":{"type":{"enum":["edge","action"]}}}};function validate25(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.events !== undefined){let data1 = data0.events;if(Array.isArray(data1)){const len1 = data1.length;for(let i1=0; i1<len1; i1++){let data2 = data1[i1];const _errs3 = errors;const _errs4 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing0;if((data2.type === undefined) && (missing0 = "type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data2.type !== undefined){let data3 = data2.type;if(!(((data3 === "now") || (data3 === "mark")) || (data3 === "span"))){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var valid5 = _errs4 === errors;if(valid5){const err2 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/items/properties/events/items/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}const _errs8 = errors;const _errs9 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((data2.type === undefined) && (missing1 = "type")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(data2.type !== undefined){let data4 = data2.type;if(!((data4 === "leaf") || (data4 === "node"))){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}}var valid9 = _errs9 === errors;if(valid9){const err5 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/items/properties/events/items/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}const _errs14 = errors;const _errs15 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing2;if((data2.type === undefined) && (missing2 = "type")){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data2.type !== undefined){let data5 = data2.type;if(!((data5 === "edge") || (data5 === "action"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}var valid13 = _errs15 === errors;if(valid13){const err8 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/definitions/notWiredEvent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs14;if(vErrors !== null){if(_errs14){vErrors.length = _errs14;}else {vErrors = null;}}}if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.type !== undefined){let data6 = data2.type;const _errs18 = errors;const _errs19 = errors;if(!((data6 === "commit") || (data6 === "branch"))){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid16 = _errs19 === errors;if(valid16){const err10 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/type",schemaPath:"#/items/properties/events/items/properties/type/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}}if(data2.color !== undefined){const err11 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/color",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}}}}}}validate25.errors = vErrors;return errors === 0;}const schema75 = {"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"note":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"icon":{"$ref":"#/definitions/text"}}};const schema76 = {"type":"string","pattern":"^[^\\s\\[\\]「」=:]+$"};const schema79 = {"enum":["blue","amber","green","violet","rose","slate","coin"]};const pattern0 = new RegExp("^[^\\s\\[\\]「」=:]+$", "u");const func3 = ucs2length;function validate30(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.name === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((((key0 === "id") || (key0 === "name")) || (key0 === "note")) || (key0 === "color")) || (key0 === "icon"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err3 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.name !== undefined){let data1 = data.name;if(typeof data1 === "string"){if(func3(data1) < 1){const err5 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.note !== undefined){let data2 = data.note;if(typeof data2 === "string"){if(func3(data2) < 1){const err7 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.color !== undefined){let data3 = data.color;if(!(((((((data3 === "blue") || (data3 === "amber")) || (data3 === "green")) || (data3 === "violet")) || (data3 === "rose")) || (data3 === "slate")) || (data3 === "coin"))){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"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.icon !== undefined){let data4 = data.icon;if(typeof data4 === "string"){if(func3(data4) < 1){const err10 = {instancePath:instancePath+"/icon",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/icon",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}else {const err12 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}validate30.errors = vErrors;return errors === 0;}const schema81 = {"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"sub":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"icon":{"$ref":"#/definitions/text"},"region":{"$ref":"#/definitions/id"},"link":{"description":"飛び先。描いた図ではこの箱がここへの link になる","$ref":"#/definitions/url"}}};const schema88 = {"description":"頁を移る形。/ で始まる path か、http:// か https:// で始まる URL","type":"string","pattern":"^(/|https?://)"};const pattern3 = new RegExp("^(/|https?://)", "u");function validate32(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.name === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((((((key0 === "id") || (key0 === "name")) || (key0 === "sub")) || (key0 === "color")) || (key0 === "icon")) || (key0 === "region")) || (key0 === "link"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err3 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.name !== undefined){let data1 = data.name;if(typeof data1 === "string"){if(func3(data1) < 1){const err5 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.sub !== undefined){let data2 = data.sub;if(typeof data2 === "string"){if(func3(data2) < 1){const err7 = {instancePath:instancePath+"/sub",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/sub",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.color !== undefined){let data3 = data.color;if(!(((((((data3 === "blue") || (data3 === "amber")) || (data3 === "green")) || (data3 === "violet")) || (data3 === "rose")) || (data3 === "slate")) || (data3 === "coin"))){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"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.icon !== undefined){let data4 = data.icon;if(typeof data4 === "string"){if(func3(data4) < 1){const err10 = {instancePath:instancePath+"/icon",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/icon",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.region !== undefined){let data5 = data.region;if(typeof data5 === "string"){if(!pattern0.test(data5)){const err12 = {instancePath:instancePath+"/region",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/region",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data.link !== undefined){let data6 = data.link;if(typeof data6 === "string"){if(!pattern3.test(data6)){const err14 = {instancePath:instancePath+"/link",schemaPath:"#/definitions/url/pattern",keyword:"pattern",params:{pattern: "^(/|https?://)"},message:"must match pattern \""+"^(/|https?://)"+"\""};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/link",schemaPath:"#/definitions/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}validate32.errors = vErrors;return errors === 0;}const schema89 = {"type":"object","additionalProperties":false,"required":["title","fields"],"properties":{"title":{"$ref":"#/definitions/text"},"fields":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/text"}},"meters":{"description":"物差しにする欄。時間軸の図だけが書ける","type":"array","minItems":1,"items":{"$ref":"#/definitions/meter"}}}};const schema92 = {"description":"物差しの欄。line の割合の所に線を引き、set の値まで針と一緒に満ちる","type":"object","additionalProperties":false,"required":["field","line"],"properties":{"field":{"$ref":"#/definitions/text"},"line":{"$ref":"#/definitions/ratio"}}};const schema94 = {"description":"割合。分数 (2/3) か百分率 (97%)","type":"string","pattern":"^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$"};const pattern4 = new RegExp("^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$", "u");function validate35(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.field === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "field"},message:"must have required property '"+"field"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.line === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "line"},message:"must have required property '"+"line"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "field") || (key0 === "line"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.field !== undefined){let data0 = data.field;if(typeof data0 === "string"){if(func3(data0) < 1){const err3 = {instancePath:instancePath+"/field",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/field",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.line !== undefined){let data1 = data.line;if(typeof data1 === "string"){if(!pattern4.test(data1)){const err5 = {instancePath:instancePath+"/line",schemaPath:"#/definitions/ratio/pattern",keyword:"pattern",params:{pattern: "^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$"},message:"must match pattern \""+"^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/line",schemaPath:"#/definitions/ratio/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}else {const err7 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}validate35.errors = vErrors;return errors === 0;}function validate34(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.title === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.fields === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "fields"},message:"must have required property '"+"fields"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((key0 === "title") || (key0 === "fields")) || (key0 === "meters"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.title !== undefined){let data0 = data.title;if(typeof data0 === "string"){if(func3(data0) < 1){const err3 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.fields !== undefined){let data1 = data.fields;if(Array.isArray(data1)){if(data1.length < 1){const err5 = {instancePath:instancePath+"/fields",schemaPath:"#/properties/fields/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if(typeof data2 === "string"){if(func3(data2) < 1){const err6 = {instancePath:instancePath+"/fields/" + i0,schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/fields/" + i0,schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath:instancePath+"/fields",schemaPath:"#/properties/fields/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.meters !== undefined){let data3 = data.meters;if(Array.isArray(data3)){if(data3.length < 1){const err9 = {instancePath:instancePath+"/meters",schemaPath:"#/properties/meters/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){if(!(validate35(data3[i1], {instancePath:instancePath+"/meters/" + i1,parentData:data3,parentDataProperty:i1,rootData}))){vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);errors = vErrors.length;}}}else {const err10 = {instancePath:instancePath+"/meters",schemaPath:"#/properties/meters/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}validate34.errors = vErrors;return errors === 0;}const schema95 = {"type":"object","additionalProperties":false,"required":["title","body","events"],"properties":{"title":{"$ref":"#/definitions/text"},"body":{"$ref":"#/definitions/text"},"code":{"$ref":"#/definitions/text"},"sources":{"description":"段の出典。読み上げの段の一覧に、名前を URL への link にして書いた順に出す","type":"array","minItems":1,"items":{"$ref":"#/definitions/source"}},"events":{"type":"array","items":{"$ref":"#/definitions/event"}}}};const schema99 = {"type":"object","additionalProperties":false,"required":["name","url"],"properties":{"name":{"$ref":"#/definitions/text"},"url":{"$ref":"#/definitions/url"}}};function validate39(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.url === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "name") || (key0 === "url"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.name !== undefined){let data0 = data.name;if(typeof data0 === "string"){if(func3(data0) < 1){const err3 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.url !== undefined){let data1 = data.url;if(typeof data1 === "string"){if(!pattern3.test(data1)){const err5 = {instancePath:instancePath+"/url",schemaPath:"#/definitions/url/pattern",keyword:"pattern",params:{pattern: "^(/|https?://)"},message:"must match pattern \""+"^(/|https?://)"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/url",schemaPath:"#/definitions/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}else {const err7 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}validate39.errors = vErrors;return errors === 0;}const schema102 = {"description":"段の中で起きること。起きる順に並べる","type":"object","required":["type"],"discriminator":{"propertyName":"type"},"oneOf":[{"description":"線。運ぶ物を載せて送る側から受ける側へ走る","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":"線の名前を置く側 (寄せの指示)","enum":["above","below","left","right"]},"at":{"description":"時間軸の図の拡大の帯で、線を引く列の目盛り","$ref":"#/definitions/unit"},"into":{"description":"時間軸の図の拡大の帯で、受ける箱を選ぶ列の目盛り。書かなければ at の列","$ref":"#/definitions/unit"}}},{"description":"箱の中の処理","type":"object","additionalProperties":false,"required":["type","box","label"],"properties":{"type":{"const":"action"},"box":{"$ref":"#/definitions/id"},"label":{"$ref":"#/definitions/text"}}},{"description":"箱の下の小さな字の書き換え","type":"object","additionalProperties":false,"required":["type","box","text"],"properties":{"type":{"const":"swap"},"box":{"$ref":"#/definitions/id"},"text":{"$ref":"#/definitions/text"},"color":{"description":"時間軸の図の節目の丸の色","$ref":"#/definitions/color"}}},{"description":"commit を積む。枝分かれの図だけが書ける。積んだ枝の札と、その枝を指す HEAD が進む。当て直し (copy) は枝の札を動かさず、merge commit (merge) は取り込む枝の先端も親に持つ","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":"枝を切る。枝分かれの図だけが書ける。枝の札を from の commit へ置き、HEAD をその枝へ移す","type":"object","additionalProperties":false,"required":["type","branch","from"],"properties":{"type":{"const":"branch"},"branch":{"$ref":"#/definitions/id"},"from":{"$ref":"#/definitions/id"}}},{"description":"時間軸の図の今の時刻の針を、to の目盛りの終わりまで進める","type":"object","additionalProperties":false,"required":["type","to"],"properties":{"type":{"const":"now"},"to":{"$ref":"#/definitions/unit"}}},{"description":"時間軸の図の印の列 row の、from から to の目盛りの印の色を変える","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":"時間軸の図の from から to の目盛りに、括弧と字を出す。shape が box なら印の列を囲み、字を縁の札にする","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":"葉を出す。木の図だけが書ける。書いた段で葉の箱が現れる。hash を書くと箱に値を出し、名札を葉の下の札に出す","type":"object","additionalProperties":false,"required":["type","id"],"properties":{"type":{"const":"leaf"},"id":{"$ref":"#/definitions/id"},"hash":{"$ref":"#/definitions/hash"}}},{"description":"1 つ以上の子から親を組む。木の図だけが書ける。書いた段で親の箱と、子から親への木の線が現れる","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":"列の box の並びを items に書き換える。列の図だけが書ける。チップは前に居た列から滑り、どの列にも居なかったチップは弾んで現れ、列から外れたチップは消える","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":"列 box に封をして、チップを隠す。列の図だけが書ける","type":"object","additionalProperties":false,"required":["type","box"],"properties":{"type":{"const":"seal"},"box":{"$ref":"#/definitions/id"}}},{"description":"列 box の封を開ける。列の図だけが書ける","type":"object","additionalProperties":false,"required":["type","box"],"properties":{"type":{"const":"open"},"box":{"$ref":"#/definitions/id"}}},{"description":"列 box を選ぶ。列の図だけが書ける。列の縁に色が付き、ほかの列が薄くなる","type":"object","additionalProperties":false,"required":["type","box"],"properties":{"type":{"const":"pick"},"box":{"$ref":"#/definitions/id"}}},{"description":"列 box の右に text の札を押す。列の図だけが書ける","type":"object","additionalProperties":false,"required":["type","box","text"],"properties":{"type":{"const":"stamp"},"box":{"$ref":"#/definitions/id"},"text":{"$ref":"#/definitions/text"}}},{"description":"中身の帯の欄の値と札","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"}}}]};const schema108 = {"description":"目盛りの位置。0 から数える","type":"integer","minimum":0};const schema119 = {"description":"commit と木の箱の hash。16 進の字で 4 から 40 字","type":"string","pattern":"^[0-9a-f]{4,40}$"};const pattern14 = new RegExp("^[0-9a-f]{4,40}$", "u");const schema106 = {"description":"線の上を走る物。封筒 (メッセージや要求)、札 (名前のある値)、硬貨 (価値)、無し","type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"enum":["envelope","tag","coin","none"]},"text":{"$ref":"#/definitions/text"}},"if":{"required":["kind"],"properties":{"kind":{"const":"tag"}}},"then":{"required":["text"]},"else":{"not":{"required":["text"]}}};function validate42(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs1 = errors;let valid0 = true;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.kind === undefined) && (missing0 = "kind")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.kind !== undefined){if("tag" !== data.kind){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs2 === errors;errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs4 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.text === undefined){const err2 = {instancePath,schemaPath:"#/then/required",keyword:"required",params:{missingProperty: "text"},message:"must have required property '"+"text"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}var _valid0 = _errs4 === errors;valid0 = _valid0;ifClause0 = "then";}else {const _errs5 = errors;const _errs6 = errors;const _errs7 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.text === undefined) && (missing1 = "text")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}var valid2 = _errs7 === errors;if(valid2){const err4 = {instancePath,schemaPath:"#/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {errors = _errs6;if(vErrors !== null){if(_errs6){vErrors.length = _errs6;}else {vErrors = null;}}}var _valid0 = _errs5 === errors;valid0 = _valid0;ifClause0 = "else";}if(!valid0){const err5 = {instancePath,schemaPath:"#/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind === undefined){const err6 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}for(const key0 in data){if(!((key0 === "kind") || (key0 === "text"))){const err7 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.kind !== undefined){let data1 = data.kind;if(!((((data1 === "envelope") || (data1 === "tag")) || (data1 === "coin")) || (data1 === "none"))){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"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.text !== undefined){let data2 = data.text;if(typeof data2 === "string"){if(func3(data2) < 1){const err9 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}validate42.errors = vErrors;return errors === 0;}function validate41(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const tag0 = data.type;if(typeof tag0 == "string"){if(tag0 === "edge"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.from === undefined){const err2 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.to === undefined){const err3 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.carry === undefined){const err4 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "carry"},message:"must have required property '"+"carry"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}for(const key0 in data){if(!((((((((key0 === "type") || (key0 === "from")) || (key0 === "to")) || (key0 === "label")) || (key0 === "carry")) || (key0 === "labelSide")) || (key0 === "at")) || (key0 === "into"))){const err5 = {instancePath,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.type !== undefined){if("edge" !== data.type){const err6 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/0/properties/type/const",keyword:"const",params:{allowedValue: "edge"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.from !== undefined){let data1 = data.from;if(typeof data1 === "string"){if(!pattern0.test(data1)){const err7 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.to !== undefined){let data2 = data.to;if(typeof data2 === "string"){if(!pattern0.test(data2)){const err9 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.label !== undefined){let data3 = data.label;if(typeof data3 === "string"){if(func3(data3) < 1){const err11 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.carry !== undefined){if(!(validate42(data.carry, {instancePath:instancePath+"/carry",parentData:data,parentDataProperty:"carry",rootData}))){vErrors = vErrors === null ? validate42.errors : vErrors.concat(validate42.errors);errors = vErrors.length;}}if(data.labelSide !== undefined){let data5 = data.labelSide;if(!((((data5 === "above") || (data5 === "below")) || (data5 === "left")) || (data5 === "right"))){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"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data.at !== undefined){let data6 = data.at;if(!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))){const err14 = {instancePath:instancePath+"/at",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if((typeof data6 == "number") && (isFinite(data6))){if(data6 < 0 || isNaN(data6)){const err15 = {instancePath:instancePath+"/at",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}if(data.into !== undefined){let data7 = data.into;if(!(((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7))) && (isFinite(data7)))){const err16 = {instancePath:instancePath+"/into",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if((typeof data7 == "number") && (isFinite(data7))){if(data7 < 0 || isNaN(data7)){const err17 = {instancePath:instancePath+"/into",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}}else {const err18 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}else if(tag0 === "action"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err19 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data.box === undefined){const err20 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "box"},message:"must have required property '"+"box"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data.label === undefined){const err21 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}for(const key1 in data){if(!(((key1 === "type") || (key1 === "box")) || (key1 === "label"))){const err22 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data.type !== undefined){if("action" !== data.type){const err23 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/1/properties/type/const",keyword:"const",params:{allowedValue: "action"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data.box !== undefined){let data9 = data.box;if(typeof data9 === "string"){if(!pattern0.test(data9)){const err24 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}else {const err25 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data.label !== undefined){let data10 = data.label;if(typeof data10 === "string"){if(func3(data10) < 1){const err26 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}else {const err27 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}else {const err28 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}else if(tag0 === "swap"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err29 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(data.box === undefined){const err30 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "box"},message:"must have required property '"+"box"+"'"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(data.text === undefined){const err31 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "text"},message:"must have required property '"+"text"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}for(const key2 in data){if(!((((key2 === "type") || (key2 === "box")) || (key2 === "text")) || (key2 === "color"))){const err32 = {instancePath,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data.type !== undefined){if("swap" !== data.type){const err33 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/2/properties/type/const",keyword:"const",params:{allowedValue: "swap"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data.box !== undefined){let data12 = data.box;if(typeof data12 === "string"){if(!pattern0.test(data12)){const err34 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}else {const err35 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data.text !== undefined){let data13 = data.text;if(typeof data13 === "string"){if(func3(data13) < 1){const err36 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}else {const err37 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data.color !== undefined){let data14 = data.color;if(!(((((((data14 === "blue") || (data14 === "amber")) || (data14 === "green")) || (data14 === "violet")) || (data14 === "rose")) || (data14 === "slate")) || (data14 === "coin"))){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"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}else if(tag0 === "commit"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err40 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(data.id === undefined){const err41 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data.branch === undefined){const err42 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "branch"},message:"must have required property '"+"branch"+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}for(const key3 in data){if(!(((((((key3 === "type") || (key3 === "id")) || (key3 === "branch")) || (key3 === "copy")) || (key3 === "merge")) || (key3 === "hash")) || (key3 === "note"))){const err43 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data.type !== undefined){if("commit" !== data.type){const err44 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/3/properties/type/const",keyword:"const",params:{allowedValue: "commit"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data.id !== undefined){let data16 = data.id;if(typeof data16 === "string"){if(!pattern0.test(data16)){const err45 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}else {const err46 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}if(data.branch !== undefined){let data17 = data.branch;if(typeof data17 === "string"){if(!pattern0.test(data17)){const err47 = {instancePath:instancePath+"/branch",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}else {const err48 = {instancePath:instancePath+"/branch",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data.copy !== undefined){let data18 = data.copy;if(typeof data18 === "string"){if(!pattern0.test(data18)){const err49 = {instancePath:instancePath+"/copy",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}else {const err50 = {instancePath:instancePath+"/copy",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data.merge !== undefined){let data19 = data.merge;if(typeof data19 === "string"){if(!pattern0.test(data19)){const err51 = {instancePath:instancePath+"/merge",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}else {const err52 = {instancePath:instancePath+"/merge",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}if(data.hash !== undefined){let data20 = data.hash;if(typeof data20 === "string"){if(!pattern14.test(data20)){const err53 = {instancePath:instancePath+"/hash",schemaPath:"#/definitions/hash/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{4,40}$"},message:"must match pattern \""+"^[0-9a-f]{4,40}$"+"\""};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}else {const err54 = {instancePath:instancePath+"/hash",schemaPath:"#/definitions/hash/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data.note !== undefined){let data21 = data.note;if(typeof data21 === "string"){if(func3(data21) < 1){const err55 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}else {const err56 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}else {const err57 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}else if(tag0 === "branch"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err58 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(data.branch === undefined){const err59 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "branch"},message:"must have required property '"+"branch"+"'"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if(data.from === undefined){const err60 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}for(const key4 in data){if(!(((key4 === "type") || (key4 === "branch")) || (key4 === "from"))){const err61 = {instancePath,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(data.type !== undefined){if("branch" !== data.type){const err62 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/4/properties/type/const",keyword:"const",params:{allowedValue: "branch"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}if(data.branch !== undefined){let data23 = data.branch;if(typeof data23 === "string"){if(!pattern0.test(data23)){const err63 = {instancePath:instancePath+"/branch",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}else {const err64 = {instancePath:instancePath+"/branch",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data.from !== undefined){let data24 = data.from;if(typeof data24 === "string"){if(!pattern0.test(data24)){const err65 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}else {const err66 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}else {const err67 = {instancePath,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}else if(tag0 === "now"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err68 = {instancePath,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(data.to === undefined){const err69 = {instancePath,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}for(const key5 in data){if(!((key5 === "type") || (key5 === "to"))){const err70 = {instancePath,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data.type !== undefined){if("now" !== data.type){const err71 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/5/properties/type/const",keyword:"const",params:{allowedValue: "now"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}if(data.to !== undefined){let data26 = data.to;if(!(((typeof data26 == "number") && (!(data26 % 1) && !isNaN(data26))) && (isFinite(data26)))){const err72 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if((typeof data26 == "number") && (isFinite(data26))){if(data26 < 0 || isNaN(data26)){const err73 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}}}else {const err74 = {instancePath,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}else if(tag0 === "mark"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err75 = {instancePath,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(data.row === undefined){const err76 = {instancePath,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty: "row"},message:"must have required property '"+"row"+"'"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(data.from === undefined){const err77 = {instancePath,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}if(data.to === undefined){const err78 = {instancePath,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if(data.color === undefined){const err79 = {instancePath,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty: "color"},message:"must have required property '"+"color"+"'"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}for(const key6 in data){if(!(((((key6 === "type") || (key6 === "row")) || (key6 === "from")) || (key6 === "to")) || (key6 === "color"))){const err80 = {instancePath,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}if(data.type !== undefined){if("mark" !== data.type){const err81 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/6/properties/type/const",keyword:"const",params:{allowedValue: "mark"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data.row !== undefined){let data28 = data.row;if(typeof data28 === "string"){if(!pattern0.test(data28)){const err82 = {instancePath:instancePath+"/row",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}else {const err83 = {instancePath:instancePath+"/row",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(data.from !== undefined){let data29 = data.from;if(!(((typeof data29 == "number") && (!(data29 % 1) && !isNaN(data29))) && (isFinite(data29)))){const err84 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if((typeof data29 == "number") && (isFinite(data29))){if(data29 < 0 || isNaN(data29)){const err85 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}if(data.to !== undefined){let data30 = data.to;if(!(((typeof data30 == "number") && (!(data30 % 1) && !isNaN(data30))) && (isFinite(data30)))){const err86 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if((typeof data30 == "number") && (isFinite(data30))){if(data30 < 0 || isNaN(data30)){const err87 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}}if(data.color !== undefined){let data31 = data.color;if(!(((((((data31 === "blue") || (data31 === "amber")) || (data31 === "green")) || (data31 === "violet")) || (data31 === "rose")) || (data31 === "slate")) || (data31 === "coin"))){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"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}}else {const err89 = {instancePath,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}else if(tag0 === "span"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err90 = {instancePath,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if(data.from === undefined){const err91 = {instancePath,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(data.to === undefined){const err92 = {instancePath,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(data.text === undefined){const err93 = {instancePath,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty: "text"},message:"must have required property '"+"text"+"'"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}for(const key7 in data){if(!((((((key7 === "type") || (key7 === "from")) || (key7 === "to")) || (key7 === "text")) || (key7 === "shape")) || (key7 === "color"))){const err94 = {instancePath,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}if(data.type !== undefined){if("span" !== data.type){const err95 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/7/properties/type/const",keyword:"const",params:{allowedValue: "span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(data.from !== undefined){let data33 = data.from;if(!(((typeof data33 == "number") && (!(data33 % 1) && !isNaN(data33))) && (isFinite(data33)))){const err96 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if((typeof data33 == "number") && (isFinite(data33))){if(data33 < 0 || isNaN(data33)){const err97 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}if(data.to !== undefined){let data34 = data.to;if(!(((typeof data34 == "number") && (!(data34 % 1) && !isNaN(data34))) && (isFinite(data34)))){const err98 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if((typeof data34 == "number") && (isFinite(data34))){if(data34 < 0 || isNaN(data34)){const err99 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}if(data.text !== undefined){let data35 = data.text;if(typeof data35 === "string"){if(func3(data35) < 1){const err100 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}else {const err101 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}if(data.shape !== undefined){if(!(data.shape === "box")){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"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}if(data.color !== undefined){let data37 = data.color;if(!(((((((data37 === "blue") || (data37 === "amber")) || (data37 === "green")) || (data37 === "violet")) || (data37 === "rose")) || (data37 === "slate")) || (data37 === "coin"))){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"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}else {const err104 = {instancePath,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}else if(tag0 === "leaf"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err105 = {instancePath,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(data.id === undefined){const err106 = {instancePath,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}for(const key8 in data){if(!(((key8 === "type") || (key8 === "id")) || (key8 === "hash"))){const err107 = {instancePath,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}if(data.type !== undefined){if("leaf" !== data.type){const err108 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/8/properties/type/const",keyword:"const",params:{allowedValue: "leaf"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}if(data.id !== undefined){let data39 = data.id;if(typeof data39 === "string"){if(!pattern0.test(data39)){const err109 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}else {const err110 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}if(data.hash !== undefined){let data40 = data.hash;if(typeof data40 === "string"){if(!pattern14.test(data40)){const err111 = {instancePath:instancePath+"/hash",schemaPath:"#/definitions/hash/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{4,40}$"},message:"must match pattern \""+"^[0-9a-f]{4,40}$"+"\""};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}else {const err112 = {instancePath:instancePath+"/hash",schemaPath:"#/definitions/hash/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}else {const err113 = {instancePath,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}else if(tag0 === "node"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err114 = {instancePath,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if(data.id === undefined){const err115 = {instancePath,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}if(data.children === undefined){const err116 = {instancePath,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty: "children"},message:"must have required property '"+"children"+"'"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}for(const key9 in data){if(!((((key9 === "type") || (key9 === "id")) || (key9 === "children")) || (key9 === "hash"))){const err117 = {instancePath,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}if(data.type !== undefined){if("node" !== data.type){const err118 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/9/properties/type/const",keyword:"const",params:{allowedValue: "node"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}if(data.id !== undefined){let data42 = data.id;if(typeof data42 === "string"){if(!pattern0.test(data42)){const err119 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}else {const err120 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(data.children !== undefined){let data43 = data.children;if(Array.isArray(data43)){if(data43.length < 1){const err121 = {instancePath:instancePath+"/children",schemaPath:"#/oneOf/9/properties/children/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}const len0 = data43.length;for(let i0=0; i0<len0; i0++){let data44 = data43[i0];if(typeof data44 === "string"){if(!pattern0.test(data44)){const err122 = {instancePath:instancePath+"/children/" + i0,schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}else {const err123 = {instancePath:instancePath+"/children/" + i0,schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}}else {const err124 = {instancePath:instancePath+"/children",schemaPath:"#/oneOf/9/properties/children/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}if(data.hash !== undefined){let data45 = data.hash;if(typeof data45 === "string"){if(!pattern14.test(data45)){const err125 = {instancePath:instancePath+"/hash",schemaPath:"#/definitions/hash/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{4,40}$"},message:"must match pattern \""+"^[0-9a-f]{4,40}$"+"\""};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}else {const err126 = {instancePath:instancePath+"/hash",schemaPath:"#/definitions/hash/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}}else {const err127 = {instancePath,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}else if(tag0 === "line"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err128 = {instancePath,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(data.box === undefined){const err129 = {instancePath,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty: "box"},message:"must have required property '"+"box"+"'"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}if(data.items === undefined){const err130 = {instancePath,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}for(const key10 in data){if(!(((key10 === "type") || (key10 === "box")) || (key10 === "items"))){const err131 = {instancePath,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}if(data.type !== undefined){if("line" !== data.type){const err132 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/10/properties/type/const",keyword:"const",params:{allowedValue: "line"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}if(data.box !== undefined){let data47 = data.box;if(typeof data47 === "string"){if(!pattern0.test(data47)){const err133 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}else {const err134 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}if(data.items !== undefined){let data48 = data.items;if(Array.isArray(data48)){if(data48.length > 12){const err135 = {instancePath:instancePath+"/items",schemaPath:"#/oneOf/10/properties/items/maxItems",keyword:"maxItems",params:{limit: 12},message:"must NOT have more than 12 items"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if(data48.length < 1){const err136 = {instancePath:instancePath+"/items",schemaPath:"#/oneOf/10/properties/items/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}const len1 = data48.length;for(let i1=0; i1<len1; i1++){let data49 = data48[i1];if(typeof data49 === "string"){if(!pattern0.test(data49)){const err137 = {instancePath:instancePath+"/items/" + i1,schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}else {const err138 = {instancePath:instancePath+"/items/" + i1,schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}}else {const err139 = {instancePath:instancePath+"/items",schemaPath:"#/oneOf/10/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}}else {const err140 = {instancePath,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}else if(tag0 === "seal"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err141 = {instancePath,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}if(data.box === undefined){const err142 = {instancePath,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty: "box"},message:"must have required property '"+"box"+"'"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}for(const key11 in data){if(!((key11 === "type") || (key11 === "box"))){const err143 = {instancePath,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data.type !== undefined){if("seal" !== data.type){const err144 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/11/properties/type/const",keyword:"const",params:{allowedValue: "seal"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}if(data.box !== undefined){let data51 = data.box;if(typeof data51 === "string"){if(!pattern0.test(data51)){const err145 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}else {const err146 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}else {const err147 = {instancePath,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}else if(tag0 === "open"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err148 = {instancePath,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if(data.box === undefined){const err149 = {instancePath,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty: "box"},message:"must have required property '"+"box"+"'"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}for(const key12 in data){if(!((key12 === "type") || (key12 === "box"))){const err150 = {instancePath,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}if(data.type !== undefined){if("open" !== data.type){const err151 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/12/properties/type/const",keyword:"const",params:{allowedValue: "open"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}if(data.box !== undefined){let data53 = data.box;if(typeof data53 === "string"){if(!pattern0.test(data53)){const err152 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}else {const err153 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}else {const err154 = {instancePath,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}else if(tag0 === "pick"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err155 = {instancePath,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}if(data.box === undefined){const err156 = {instancePath,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty: "box"},message:"must have required property '"+"box"+"'"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}for(const key13 in data){if(!((key13 === "type") || (key13 === "box"))){const err157 = {instancePath,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}if(data.type !== undefined){if("pick" !== data.type){const err158 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/13/properties/type/const",keyword:"const",params:{allowedValue: "pick"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}if(data.box !== undefined){let data55 = data.box;if(typeof data55 === "string"){if(!pattern0.test(data55)){const err159 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}else {const err160 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}}else {const err161 = {instancePath,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}else if(tag0 === "stamp"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err162 = {instancePath,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}if(data.box === undefined){const err163 = {instancePath,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty: "box"},message:"must have required property '"+"box"+"'"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if(data.text === undefined){const err164 = {instancePath,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty: "text"},message:"must have required property '"+"text"+"'"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}for(const key14 in data){if(!(((key14 === "type") || (key14 === "box")) || (key14 === "text"))){const err165 = {instancePath,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}if(data.type !== undefined){if("stamp" !== data.type){const err166 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/14/properties/type/const",keyword:"const",params:{allowedValue: "stamp"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}if(data.box !== undefined){let data57 = data.box;if(typeof data57 === "string"){if(!pattern0.test(data57)){const err167 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}else {const err168 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}if(data.text !== undefined){let data58 = data.text;if(typeof data58 === "string"){if(func3(data58) < 1){const err169 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}else {const err170 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}}else {const err171 = {instancePath,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}else if(tag0 === "strip"){const _errs185 = errors;let valid75 = false;const _errs186 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.value === undefined){const err172 = {instancePath,schemaPath:"#/oneOf/15/anyOf/0/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}var _valid0 = _errs186 === errors;valid75 = valid75 || _valid0;if(!valid75){const _errs187 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag === undefined){const err173 = {instancePath,schemaPath:"#/oneOf/15/anyOf/1/required",keyword:"required",params:{missingProperty: "tag"},message:"must have required property '"+"tag"+"'"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}var _valid0 = _errs187 === errors;valid75 = valid75 || _valid0;}if(!valid75){const err174 = {instancePath,schemaPath:"#/oneOf/15/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}else {errors = _errs185;if(vErrors !== null){if(_errs185){vErrors.length = _errs185;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err175 = {instancePath,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}if(data.field === undefined){const err176 = {instancePath,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty: "field"},message:"must have required property '"+"field"+"'"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}for(const key15 in data){if(!((((key15 === "type") || (key15 === "field")) || (key15 === "value")) || (key15 === "tag"))){const err177 = {instancePath,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}if(data.type !== undefined){if("strip" !== data.type){const err178 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/15/properties/type/const",keyword:"const",params:{allowedValue: "strip"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data.field !== undefined){let data60 = data.field;if(typeof data60 === "string"){if(func3(data60) < 1){const err179 = {instancePath:instancePath+"/field",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}else {const err180 = {instancePath:instancePath+"/field",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}if(data.value !== undefined){let data61 = data.value;if(typeof data61 === "string"){if(func3(data61) < 1){const err181 = {instancePath:instancePath+"/value",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}else {const err182 = {instancePath:instancePath+"/value",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}if(data.tag !== undefined){let data62 = data.tag;if(typeof data62 === "string"){if(func3(data62) < 1){const err183 = {instancePath:instancePath+"/tag",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}else {const err184 = {instancePath:instancePath+"/tag",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}}else {const err185 = {instancePath,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}else {const err186 = {instancePath,schemaPath:"#/discriminator",keyword:"discriminator",params:{error: "mapping", tag: "type", tagValue: tag0},message:"value of tag \"type\" must be in oneOf"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}else {const err187 = {instancePath,schemaPath:"#/discriminator",keyword:"discriminator",params:{error: "tag", tag: "type", tagValue: tag0},message:"tag \"type\" must be string"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}else {const err188 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}validate41.errors = vErrors;return errors === 0;}function validate38(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.title === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.body === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "body"},message:"must have required property '"+"body"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.events === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "events"},message:"must have required property '"+"events"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key0 in data){if(!(((((key0 === "title") || (key0 === "body")) || (key0 === "code")) || (key0 === "sources")) || (key0 === "events"))){const err3 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.title !== undefined){let data0 = data.title;if(typeof data0 === "string"){if(func3(data0) < 1){const err4 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.body !== undefined){let data1 = data.body;if(typeof data1 === "string"){if(func3(data1) < 1){const err6 = {instancePath:instancePath+"/body",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/body",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.code !== undefined){let data2 = data.code;if(typeof data2 === "string"){if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/code",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/code",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.sources !== undefined){let data3 = data.sources;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/sources",schemaPath:"#/properties/sources/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len0 = data3.length;for(let i0=0; i0<len0; i0++){if(!(validate39(data3[i0], {instancePath:instancePath+"/sources/" + i0,parentData:data3,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate39.errors : vErrors.concat(validate39.errors);errors = vErrors.length;}}}else {const err11 = {instancePath:instancePath+"/sources",schemaPath:"#/properties/sources/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.events !== undefined){let data5 = data.events;if(Array.isArray(data5)){const len1 = data5.length;for(let i1=0; i1<len1; i1++){if(!(validate41(data5[i1], {instancePath:instancePath+"/events/" + i1,parentData:data5,parentDataProperty:i1,rootData}))){vErrors = vErrors === null ? validate41.errors : vErrors.concat(validate41.errors);errors = vErrors.length;}}}else {const err12 = {instancePath:instancePath+"/events",schemaPath:"#/properties/events/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}validate38.errors = vErrors;return errors === 0;}const schema147 = {"description":"時系列図の種類の欄。生存線を左から並べる順","type":"object","additionalProperties":false,"required":["lifelines"],"properties":{"lifelines":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/id"}}}};function validate46(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.lifelines === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "lifelines"},message:"must have required property '"+"lifelines"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(key0 === "lifelines")){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.lifelines !== undefined){let data0 = data.lifelines;if(Array.isArray(data0)){if(data0.length < 1){const err2 = {instancePath:instancePath+"/lifelines",schemaPath:"#/properties/lifelines/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}const len0 = data0.length;for(let i0=0; i0<len0; i0++){let data1 = data0[i0];if(typeof data1 === "string"){if(!pattern0.test(data1)){const err3 = {instancePath:instancePath+"/lifelines/" + i0,schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/lifelines/" + i0,schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath:instancePath+"/lifelines",schemaPath:"#/properties/lifelines/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}else {const err6 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}validate46.errors = vErrors;return errors === 0;}const schema149 = {"description":"状態遷移図の種類の欄。最初の段より前に書いた、移れるが段で通るとは限らない線","type":"object","additionalProperties":false,"required":["paths"],"properties":{"paths":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/path"}}}};const schema150 = {"description":"移れる道。送る側に始まりの印 start、受ける側に終わりの印 finish を書ける。どの段にも出ない道は点線で描き、運ぶ物を走らせない","type":"object","additionalProperties":false,"required":["from","to"],"properties":{"from":{"$ref":"#/definitions/id"},"to":{"$ref":"#/definitions/id"},"label":{"$ref":"#/definitions/text"}}};function validate49(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.from === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.to === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((key0 === "from") || (key0 === "to")) || (key0 === "label"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.from !== undefined){let data0 = data.from;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err3 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.to !== undefined){let data1 = data.to;if(typeof data1 === "string"){if(!pattern0.test(data1)){const err5 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.label !== undefined){let data2 = data.label;if(typeof data2 === "string"){if(func3(data2) < 1){const err7 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}}else {const err9 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}validate49.errors = vErrors;return errors === 0;}function validate48(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.paths === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "paths"},message:"must have required property '"+"paths"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(key0 === "paths")){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.paths !== undefined){let data0 = data.paths;if(Array.isArray(data0)){if(data0.length < 1){const err2 = {instancePath:instancePath+"/paths",schemaPath:"#/properties/paths/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}const len0 = data0.length;for(let i0=0; i0<len0; i0++){if(!(validate49(data0[i0], {instancePath:instancePath+"/paths/" + i0,parentData:data0,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);errors = vErrors.length;}}}else {const err3 = {instancePath:instancePath+"/paths",schemaPath:"#/properties/paths/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}else {const err4 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}validate48.errors = vErrors;return errors === 0;}const schema154 = {"description":"枝分かれの図の種類の欄。枝を上から帯に並べる順","type":"object","additionalProperties":false,"required":["branches"],"properties":{"branches":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/branch"}}}};const schema155 = {"description":"枝。帯の左に名札と添え書きを置く","type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"$ref":"#/definitions/id"},"note":{"$ref":"#/definitions/text"}}};function validate53(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((key0 === "id") || (key0 === "note"))){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err2 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}else {const err3 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.note !== undefined){let data1 = data.note;if(typeof data1 === "string"){if(func3(data1) < 1){const err4 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}else {const err6 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}validate53.errors = vErrors;return errors === 0;}function validate52(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.branches === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "branches"},message:"must have required property '"+"branches"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(key0 === "branches")){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.branches !== undefined){let data0 = data.branches;if(Array.isArray(data0)){if(data0.length < 1){const err2 = {instancePath:instancePath+"/branches",schemaPath:"#/properties/branches/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}const len0 = data0.length;for(let i0=0; i0<len0; i0++){if(!(validate53(data0[i0], {instancePath:instancePath+"/branches/" + i0,parentData:data0,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);errors = vErrors.length;}}}else {const err3 = {instancePath:instancePath+"/branches",schemaPath:"#/properties/branches/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}else {const err4 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}validate52.errors = vErrors;return errors === 0;}const schema158 = {"description":"時間軸の図の種類の欄。目盛り、区切り、印の列、節目、拡大の範囲","type":"object","additionalProperties":false,"required":["scale","rows"],"properties":{"scale":{"$ref":"#/definitions/scale"},"period":{"$ref":"#/definitions/period"},"rows":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/row"}},"points":{"type":"array","items":{"$ref":"#/definitions/point"}},"zoom":{"$ref":"#/definitions/zoom"}}};const schema159 = {"description":"目盛り。unit の名前の目盛りを length の長さで count 個並べ、最初の目盛りの番号を from にする","type":"object","additionalProperties":false,"required":["unit","length","count"],"properties":{"unit":{"$ref":"#/definitions/text"},"length":{"$ref":"#/definitions/duration"},"count":{"type":"integer","minimum":1},"from":{"type":"integer","minimum":0}}};const schema161 = {"description":"長さ。数と単位 (ms、s、min、h、d) の組","type":"string","pattern":"^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$"};const pattern33 = new RegExp("^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$", "u");function validate57(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.unit === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "unit"},message:"must have required property '"+"unit"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.length === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "length"},message:"must have required property '"+"length"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.count === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "count"},message:"must have required property '"+"count"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key0 in data){if(!((((key0 === "unit") || (key0 === "length")) || (key0 === "count")) || (key0 === "from"))){const err3 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.unit !== undefined){let data0 = data.unit;if(typeof data0 === "string"){if(func3(data0) < 1){const err4 = {instancePath:instancePath+"/unit",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/unit",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.length !== undefined){let data1 = data.length;if(typeof data1 === "string"){if(!pattern33.test(data1)){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)$"+"\""};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/length",schemaPath:"#/definitions/duration/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.count !== undefined){let data2 = data.count;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err8 = {instancePath:instancePath+"/count",schemaPath:"#/properties/count/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 1 || isNaN(data2)){const err9 = {instancePath:instancePath+"/count",schemaPath:"#/properties/count/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}if(data.from !== undefined){let data3 = data.from;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err10 = {instancePath:instancePath+"/from",schemaPath:"#/properties/from/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 0 || isNaN(data3)){const err11 = {instancePath:instancePath+"/from",schemaPath:"#/properties/from/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}}else {const err12 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}validate57.errors = vErrors;return errors === 0;}const schema162 = {"description":"区切り。目盛り length 個ごとに name の区切りを置き、最初の区切りの番号を from にする","type":"object","additionalProperties":false,"required":["name","length"],"properties":{"name":{"$ref":"#/definitions/text"},"length":{"type":"integer","minimum":1},"from":{"type":"integer","minimum":0}}};function validate59(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.length === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "length"},message:"must have required property '"+"length"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((key0 === "name") || (key0 === "length")) || (key0 === "from"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.name !== undefined){let data0 = data.name;if(typeof data0 === "string"){if(func3(data0) < 1){const err3 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.length !== undefined){let data1 = data.length;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err5 = {instancePath:instancePath+"/length",schemaPath:"#/properties/length/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 1 || isNaN(data1)){const err6 = {instancePath:instancePath+"/length",schemaPath:"#/properties/length/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}if(data.from !== undefined){let data2 = data.from;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err7 = {instancePath:instancePath+"/from",schemaPath:"#/properties/from/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 0 || isNaN(data2)){const err8 = {instancePath:instancePath+"/from",schemaPath:"#/properties/from/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}}}else {const err9 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}validate59.errors = vErrors;return errors === 0;}const schema164 = {"description":"印の列。目盛りごとに印を 1 つ置き、empty の目盛りは空きの印にする","type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"empty":{"type":"array","items":{"$ref":"#/definitions/unit"}}}};function validate61(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.name === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((((key0 === "id") || (key0 === "name")) || (key0 === "color")) || (key0 === "empty"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err3 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.name !== undefined){let data1 = data.name;if(typeof data1 === "string"){if(func3(data1) < 1){const err5 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.color !== undefined){let data2 = data.color;if(!(((((((data2 === "blue") || (data2 === "amber")) || (data2 === "green")) || (data2 === "violet")) || (data2 === "rose")) || (data2 === "slate")) || (data2 === "coin"))){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"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.empty !== undefined){let data3 = data.empty;if(Array.isArray(data3)){const len0 = data3.length;for(let i0=0; i0<len0; i0++){let data4 = data3[i0];if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){const err8 = {instancePath:instancePath+"/empty/" + i0,schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if((typeof data4 == "number") && (isFinite(data4))){if(data4 < 0 || isNaN(data4)){const err9 = {instancePath:instancePath+"/empty/" + i0,schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}else {const err10 = {instancePath:instancePath+"/empty",schemaPath:"#/properties/empty/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}validate61.errors = vErrors;return errors === 0;}const schema169 = {"description":"節目。at の目盛りの印の下に旗の丸と名札を置く","type":"object","additionalProperties":false,"required":["id","at"],"properties":{"id":{"$ref":"#/definitions/id"},"at":{"$ref":"#/definitions/unit"}}};function validate63(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.at === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "at"},message:"must have required property '"+"at"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "id") || (key0 === "at"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err3 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.at !== undefined){let data1 = data.at;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err5 = {instancePath:instancePath+"/at",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 0 || isNaN(data1)){const err6 = {instancePath:instancePath+"/at",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}}else {const err7 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}validate63.errors = vErrors;return errors === 0;}const schema172 = {"description":"拡大の範囲。from から to の目盛りごとに拡大の帯に列を作る","type":"object","additionalProperties":false,"required":["from","to"],"properties":{"from":{"$ref":"#/definitions/unit"},"to":{"$ref":"#/definitions/unit"}}};function validate65(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.from === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.to === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "from") || (key0 === "to"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.from !== undefined){let data0 = data.from;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err3 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if((typeof data0 == "number") && (isFinite(data0))){if(data0 < 0 || isNaN(data0)){const err4 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}if(data.to !== undefined){let data1 = data.to;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err5 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 0 || isNaN(data1)){const err6 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}}else {const err7 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}validate65.errors = vErrors;return errors === 0;}function validate56(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.scale === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "scale"},message:"must have required property '"+"scale"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.rows === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "rows"},message:"must have required property '"+"rows"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((((key0 === "scale") || (key0 === "period")) || (key0 === "rows")) || (key0 === "points")) || (key0 === "zoom"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.scale !== undefined){if(!(validate57(data.scale, {instancePath:instancePath+"/scale",parentData:data,parentDataProperty:"scale",rootData}))){vErrors = vErrors === null ? validate57.errors : vErrors.concat(validate57.errors);errors = vErrors.length;}}if(data.period !== undefined){if(!(validate59(data.period, {instancePath:instancePath+"/period",parentData:data,parentDataProperty:"period",rootData}))){vErrors = vErrors === null ? validate59.errors : vErrors.concat(validate59.errors);errors = vErrors.length;}}if(data.rows !== undefined){let data2 = data.rows;if(Array.isArray(data2)){if(data2.length < 1){const err3 = {instancePath:instancePath+"/rows",schemaPath:"#/properties/rows/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}const len0 = data2.length;for(let i0=0; i0<len0; i0++){if(!(validate61(data2[i0], {instancePath:instancePath+"/rows/" + i0,parentData:data2,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate61.errors : vErrors.concat(validate61.errors);errors = vErrors.length;}}}else {const err4 = {instancePath:instancePath+"/rows",schemaPath:"#/properties/rows/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.points !== undefined){let data4 = data.points;if(Array.isArray(data4)){const len1 = data4.length;for(let i1=0; i1<len1; i1++){if(!(validate63(data4[i1], {instancePath:instancePath+"/points/" + i1,parentData:data4,parentDataProperty:i1,rootData}))){vErrors = vErrors === null ? validate63.errors : vErrors.concat(validate63.errors);errors = vErrors.length;}}}else {const err5 = {instancePath:instancePath+"/points",schemaPath:"#/properties/points/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.zoom !== undefined){if(!(validate65(data.zoom, {instancePath:instancePath+"/zoom",parentData:data,parentDataProperty:"zoom",rootData}))){vErrors = vErrors === null ? validate65.errors : vErrors.concat(validate65.errors);errors = vErrors.length;}}}else {const err6 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}validate56.errors = vErrors;return errors === 0;}const schema175 = {"description":"列の図の種類の欄。列に並べるチップ","type":"object","additionalProperties":false,"required":["items"],"properties":{"items":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/item"}}}};const schema176 = {"description":"チップ。color を書かないチップは薄い色で、label を書かないチップは色だけで出す","type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"$ref":"#/definitions/id"},"color":{"$ref":"#/definitions/color"},"label":{"description":"チップに載せる字","type":"string","minLength":1,"maxLength":4}}};function validate69(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(((key0 === "id") || (key0 === "color")) || (key0 === "label"))){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err2 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}else {const err3 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.color !== undefined){let data1 = data.color;if(!(((((((data1 === "blue") || (data1 === "amber")) || (data1 === "green")) || (data1 === "violet")) || (data1 === "rose")) || (data1 === "slate")) || (data1 === "coin"))){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"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.label !== undefined){let data2 = data.label;if(typeof data2 === "string"){if(func3(data2) > 4){const err5 = {instancePath:instancePath+"/label",schemaPath:"#/properties/label/maxLength",keyword:"maxLength",params:{limit: 4},message:"must NOT have more than 4 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(func3(data2) < 1){const err6 = {instancePath:instancePath+"/label",schemaPath:"#/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}validate69.errors = vErrors;return errors === 0;}function validate68(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.items === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(key0 === "items")){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.items !== undefined){let data0 = data.items;if(Array.isArray(data0)){if(data0.length < 1){const err2 = {instancePath:instancePath+"/items",schemaPath:"#/properties/items/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}const len0 = data0.length;for(let i0=0; i0<len0; i0++){if(!(validate69(data0[i0], {instancePath:instancePath+"/items/" + i0,parentData:data0,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate69.errors : vErrors.concat(validate69.errors);errors = vErrors.length;}}}else {const err3 = {instancePath:instancePath+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}else {const err4 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}validate68.errors = vErrors;return errors === 0;}const func2 = Object.prototype.hasOwnProperty;function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs1 = errors;let valid0 = true;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.kind === undefined) && (missing0 = "kind")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.kind !== undefined){if("sequence" !== data.kind){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs2 === errors;errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs4 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.sequence === undefined){const err2 = {instancePath,schemaPath:"#/then/required",keyword:"required",params:{missingProperty: "sequence"},message:"must have required property '"+"sequence"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.boxes !== undefined){let data1 = data.boxes;if(Array.isArray(data1)){if(data1.length < 1){const err3 = {instancePath:instancePath+"/boxes",schemaPath:"#/then/properties/boxes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}if(data.steps !== undefined){if(!(validate11(data.steps, {instancePath:instancePath+"/steps",parentData:data,parentDataProperty:"steps",rootData}))){vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);errors = vErrors.length;}}if(data.strip !== undefined){if(!(validate13(data.strip, {instancePath:instancePath+"/strip",parentData:data,parentDataProperty:"strip",rootData}))){vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);errors = vErrors.length;}}if(data.state !== undefined){const err4 = {instancePath:instancePath+"/state",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.git !== undefined){const err5 = {instancePath:instancePath+"/git",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data.time !== undefined){const err6 = {instancePath:instancePath+"/time",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.lineup !== undefined){const err7 = {instancePath:instancePath+"/lineup",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}var _valid0 = _errs4 === errors;valid0 = _valid0;ifClause0 = "then";}else {const _errs20 = errors;const _errs21 = errors;let valid7 = true;const _errs22 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.kind === undefined) && (missing1 = "kind")){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data.kind !== undefined){if("state" !== data.kind){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}var _valid1 = _errs22 === errors;errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}let ifClause1;if(_valid1){const _errs24 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.boxes !== undefined){let data9 = data.boxes;if(Array.isArray(data9)){if(data9.length < 1){const err10 = {instancePath:instancePath+"/boxes",schemaPath:"#/else/then/properties/boxes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len0 = data9.length;for(let i0=0; i0<len0; i0++){let data10 = data9[i0];if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.id !== undefined){let data11 = data10.id;const _errs28 = errors;const _errs29 = errors;if(!((data11 === "start") || (data11 === "finish"))){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid13 = _errs29 === errors;if(valid13){const err12 = {instancePath:instancePath+"/boxes/" + i0+"/id",schemaPath:"#/else/then/properties/boxes/items/properties/id/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}else {errors = _errs28;if(vErrors !== null){if(_errs28){vErrors.length = _errs28;}else {vErrors = null;}}}}}}}}if(data.steps !== undefined){if(!(validate11(data.steps, {instancePath:instancePath+"/steps",parentData:data,parentDataProperty:"steps",rootData}))){vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);errors = vErrors.length;}}if(data.strip !== undefined){if(!(validate13(data.strip, {instancePath:instancePath+"/strip",parentData:data,parentDataProperty:"strip",rootData}))){vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);errors = vErrors.length;}}if(data.git !== undefined){const err13 = {instancePath:instancePath+"/git",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data.time !== undefined){const err14 = {instancePath:instancePath+"/time",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data.lineup !== undefined){const err15 = {instancePath:instancePath+"/lineup",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid1 = _errs24 === errors;valid7 = _valid1;ifClause1 = "then";}else {const _errs41 = errors;const _errs42 = errors;let valid17 = true;const _errs43 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((data.kind === undefined) && (missing2 = "kind")){const err16 = {};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.kind !== undefined){if("git" !== data.kind){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}}var _valid2 = _errs43 === errors;errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}let ifClause2;if(_valid2){const _errs45 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.git === undefined){const err18 = {instancePath,schemaPath:"#/else/else/then/required",keyword:"required",params:{missingProperty: "git"},message:"must have required property '"+"git"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data.steps !== undefined){if(!(validate17(data.steps, {instancePath:instancePath+"/steps",parentData:data,parentDataProperty:"steps",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}if(data.strip !== undefined){if(!(validate13(data.strip, {instancePath:instancePath+"/strip",parentData:data,parentDataProperty:"strip",rootData}))){vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);errors = vErrors.length;}}if(data.state !== undefined){const err19 = {instancePath:instancePath+"/state",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data.regions !== undefined){const err20 = {instancePath:instancePath+"/regions",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data.time !== undefined){const err21 = {instancePath:instancePath+"/time",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(data.lineup !== undefined){const err22 = {instancePath:instancePath+"/lineup",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}var _valid2 = _errs45 === errors;valid17 = _valid2;ifClause2 = "then";}else {const _errs60 = errors;const _errs61 = errors;let valid24 = true;const _errs62 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((data.kind === undefined) && (missing3 = "kind")){const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}else {if(data.kind !== undefined){if("time" !== data.kind){const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}}var _valid3 = _errs62 === errors;errors = _errs61;if(vErrors !== null){if(_errs61){vErrors.length = _errs61;}else {vErrors = null;}}let ifClause3;if(_valid3){const _errs64 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.time === undefined){const err25 = {instancePath,schemaPath:"#/else/else/else/then/required",keyword:"required",params:{missingProperty: "time"},message:"must have required property '"+"time"+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(data.steps !== undefined){if(!(validate20(data.steps, {instancePath:instancePath+"/steps",parentData:data,parentDataProperty:"steps",rootData}))){vErrors = vErrors === null ? validate20.errors : vErrors.concat(validate20.errors);errors = vErrors.length;}}if(data.state !== undefined){const err26 = {instancePath:instancePath+"/state",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data.git !== undefined){const err27 = {instancePath:instancePath+"/git",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data.regions !== undefined){const err28 = {instancePath:instancePath+"/regions",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if(data.lineup !== undefined){const err29 = {instancePath:instancePath+"/lineup",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}var _valid3 = _errs64 === errors;valid24 = _valid3;ifClause3 = "then";}else {const _errs78 = errors;const _errs79 = errors;let valid31 = true;const _errs80 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((data.kind === undefined) && (missing4 = "kind")){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}else {if(data.kind !== undefined){if("tree" !== data.kind){const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}}var _valid4 = _errs80 === errors;errors = _errs79;if(vErrors !== null){if(_errs79){vErrors.length = _errs79;}else {vErrors = null;}}let ifClause4;if(_valid4){const _errs82 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.steps !== undefined){if(!(validate22(data.steps, {instancePath:instancePath+"/steps",parentData:data,parentDataProperty:"steps",rootData}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}}if(data.strip !== undefined){if(!(validate13(data.strip, {instancePath:instancePath+"/strip",parentData:data,parentDataProperty:"strip",rootData}))){vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);errors = vErrors.length;}}if(data.state !== undefined){const err32 = {instancePath:instancePath+"/state",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(data.git !== undefined){const err33 = {instancePath:instancePath+"/git",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data.time !== undefined){const err34 = {instancePath:instancePath+"/time",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if(data.regions !== undefined){const err35 = {instancePath:instancePath+"/regions",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data.lineup !== undefined){const err36 = {instancePath:instancePath+"/lineup",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}var _valid4 = _errs82 === errors;valid31 = _valid4;ifClause4 = "then";}else {const _errs100 = errors;const _errs101 = errors;let valid39 = true;const _errs102 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if((data.kind === undefined) && (missing5 = "kind")){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {if(data.kind !== undefined){if("lineup" !== data.kind){const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}}var _valid5 = _errs102 === errors;errors = _errs101;if(vErrors !== null){if(_errs101){vErrors.length = _errs101;}else {vErrors = null;}}let ifClause5;if(_valid5){const _errs104 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.lineup === undefined){const err39 = {instancePath,schemaPath:"#/else/else/else/else/else/then/required",keyword:"required",params:{missingProperty: "lineup"},message:"must have required property '"+"lineup"+"'"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if(data.boxes !== undefined){let data39 = data.boxes;if(Array.isArray(data39)){if(data39.length < 1){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"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}const len1 = data39.length;for(let i1=0; i1<len1; i1++){let data40 = data39[i1];if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.icon !== undefined){const err41 = {instancePath:instancePath+"/boxes/" + i1+"/icon",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data40.link !== undefined){const err42 = {instancePath:instancePath+"/boxes/" + i1+"/link",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if(data40.region !== undefined){const err43 = {instancePath:instancePath+"/boxes/" + i1+"/region",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}}}if(data.steps !== undefined){if(!(validate25(data.steps, {instancePath:instancePath+"/steps",parentData:data,parentDataProperty:"steps",rootData}))){vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);errors = vErrors.length;}}if(data.strip !== undefined){if(!(validate13(data.strip, {instancePath:instancePath+"/strip",parentData:data,parentDataProperty:"strip",rootData}))){vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);errors = vErrors.length;}}if(data.state !== undefined){const err44 = {instancePath:instancePath+"/state",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(data.git !== undefined){const err45 = {instancePath:instancePath+"/git",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(data.time !== undefined){const err46 = {instancePath:instancePath+"/time",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data.regions !== undefined){const err47 = {instancePath:instancePath+"/regions",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}var _valid5 = _errs104 === errors;valid39 = _valid5;ifClause5 = "then";}else {const _errs130 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.boxes !== undefined){let data50 = data.boxes;if(Array.isArray(data50)){if(data50.length < 1){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"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}if(data.steps !== undefined){if(!(validate11(data.steps, {instancePath:instancePath+"/steps",parentData:data,parentDataProperty:"steps",rootData}))){vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);errors = vErrors.length;}}if(data.strip !== undefined){if(!(validate13(data.strip, {instancePath:instancePath+"/strip",parentData:data,parentDataProperty:"strip",rootData}))){vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);errors = vErrors.length;}}if(data.state !== undefined){const err49 = {instancePath:instancePath+"/state",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}if(data.git !== undefined){const err50 = {instancePath:instancePath+"/git",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if(data.time !== undefined){const err51 = {instancePath:instancePath+"/time",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}if(data.lineup !== undefined){const err52 = {instancePath:instancePath+"/lineup",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}var _valid5 = _errs130 === errors;valid39 = _valid5;ifClause5 = "else";}if(!valid39){const err53 = {instancePath,schemaPath:"#/else/else/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause5},message:"must match \""+ifClause5+"\" schema"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var _valid4 = _errs100 === errors;valid31 = _valid4;ifClause4 = "else";}if(!valid31){const err54 = {instancePath,schemaPath:"#/else/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause4},message:"must match \""+ifClause4+"\" schema"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}var _valid3 = _errs78 === errors;valid24 = _valid3;ifClause3 = "else";}if(!valid24){const err55 = {instancePath,schemaPath:"#/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause3},message:"must match \""+ifClause3+"\" schema"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var _valid2 = _errs60 === errors;valid17 = _valid2;ifClause2 = "else";}if(!valid17){const err56 = {instancePath,schemaPath:"#/else/else/if",keyword:"if",params:{failingKeyword: ifClause2},message:"must match \""+ifClause2+"\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var _valid1 = _errs41 === errors;valid7 = _valid1;ifClause1 = "else";}if(!valid7){const err57 = {instancePath,schemaPath:"#/else/if",keyword:"if",params:{failingKeyword: ifClause1},message:"must match \""+ifClause1+"\" schema"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.sequence !== undefined){const err58 = {instancePath:instancePath+"/sequence",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}var _valid0 = _errs20 === errors;valid0 = _valid0;ifClause0 = "else";}if(!valid0){const err59 = {instancePath,schemaPath:"#/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.version === undefined){const err60 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "version"},message:"must have required property '"+"version"+"'"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(data.kind === undefined){const err61 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(data.title === undefined){const err62 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if(data.boxes === undefined){const err63 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "boxes"},message:"must have required property '"+"boxes"+"'"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if(data.steps === undefined){const err64 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "steps"},message:"must have required property '"+"steps"+"'"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}for(const key0 in data){if(!(func2.call(schema11.properties, key0))){const err65 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data.version !== undefined){let data58 = data.version;if(!(((typeof data58 == "number") && (!(data58 % 1) && !isNaN(data58))) && (isFinite(data58)))){const err66 = {instancePath:instancePath+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}if((typeof data58 == "number") && (isFinite(data58))){if(data58 < 1 || isNaN(data58)){const err67 = {instancePath:instancePath+"/version",schemaPath:"#/properties/version/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}if(data.kind !== undefined){let data59 = data.kind;if(!(((((((data59 === "sequence") || (data59 === "architecture")) || (data59 === "state")) || (data59 === "git")) || (data59 === "time")) || (data59 === "tree")) || (data59 === "lineup"))){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"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data.title !== undefined){let data60 = data.title;if(typeof data60 === "string"){if(func3(data60) < 1){const err69 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}else {const err70 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data.view !== undefined){let data61 = data.view;if(!((data61 === "fixed") || (data61 === "follow"))){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"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}if(data.regions !== undefined){let data62 = data.regions;if(Array.isArray(data62)){const len2 = data62.length;for(let i2=0; i2<len2; i2++){if(!(validate30(data62[i2], {instancePath:instancePath+"/regions/" + i2,parentData:data62,parentDataProperty:i2,rootData}))){vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);errors = vErrors.length;}}}else {const err72 = {instancePath:instancePath+"/regions",schemaPath:"#/properties/regions/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data.boxes !== undefined){let data64 = data.boxes;if(Array.isArray(data64)){const len3 = data64.length;for(let i3=0; i3<len3; i3++){if(!(validate32(data64[i3], {instancePath:instancePath+"/boxes/" + i3,parentData:data64,parentDataProperty:i3,rootData}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}}else {const err73 = {instancePath:instancePath+"/boxes",schemaPath:"#/properties/boxes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data.strip !== undefined){if(!(validate34(data.strip, {instancePath:instancePath+"/strip",parentData:data,parentDataProperty:"strip",rootData}))){vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);errors = vErrors.length;}}if(data.steps !== undefined){let data67 = data.steps;if(Array.isArray(data67)){if(data67.length < 1){const err74 = {instancePath:instancePath+"/steps",schemaPath:"#/properties/steps/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}const len4 = data67.length;for(let i4=0; i4<len4; i4++){if(!(validate38(data67[i4], {instancePath:instancePath+"/steps/" + i4,parentData:data67,parentDataProperty:i4,rootData}))){vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);errors = vErrors.length;}}}else {const err75 = {instancePath:instancePath+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}if(data.sequence !== undefined){if(!(validate46(data.sequence, {instancePath:instancePath+"/sequence",parentData:data,parentDataProperty:"sequence",rootData}))){vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);errors = vErrors.length;}}if(data.state !== undefined){if(!(validate48(data.state, {instancePath:instancePath+"/state",parentData:data,parentDataProperty:"state",rootData}))){vErrors = vErrors === null ? validate48.errors : vErrors.concat(validate48.errors);errors = vErrors.length;}}if(data.git !== undefined){if(!(validate52(data.git, {instancePath:instancePath+"/git",parentData:data,parentDataProperty:"git",rootData}))){vErrors = vErrors === null ? validate52.errors : vErrors.concat(validate52.errors);errors = vErrors.length;}}if(data.time !== undefined){if(!(validate56(data.time, {instancePath:instancePath+"/time",parentData:data,parentDataProperty:"time",rootData}))){vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);errors = vErrors.length;}}if(data.lineup !== undefined){if(!(validate68(data.lineup, {instancePath:instancePath+"/lineup",parentData:data,parentDataProperty:"lineup",rootData}))){vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);errors = vErrors.length;}}}else {const err76 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}validate10.errors = vErrors;return errors === 0;}
|
|
8
|
+
export const validate = validate10;export default validate10;const schema11 = {"title":"dragon の図の原本","description":"区画、箱、線、運ぶ物、段、中身の帯の 6 部品を共通の骨組みに置き、図の種類だけの物は種類の欄に置く。座標は持たない。箱は枝分かれの図と時間軸の図と木の図だけが持たなくてよい。列の図の箱は列になる。","type":"object","additionalProperties":false,"required":["version","kind","title","boxes","steps"],"properties":{"version":{"description":"形式の版","type":"integer","minimum":1},"kind":{"description":"図の種類","enum":["sequence","architecture","state","git","time","tree","lineup"]},"title":{"$ref":"#/definitions/text"},"view":{"description":"見せ方。書かなければ字の大きさで選ぶ。fixed は全体を止めて中だけ動かし、follow は寄って動かし全体図で今どこかを示す","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"}},"if":{"required":["kind"],"properties":{"kind":{"const":"sequence"}}},"then":{"required":["sequence"],"properties":{"boxes":{"minItems":1},"steps":{"$ref":"#/definitions/plainSteps"},"strip":{"$ref":"#/definitions/plainStrip"},"state":{"$ref":"#/definitions/absent"},"git":{"$ref":"#/definitions/absent"},"time":{"$ref":"#/definitions/absent"},"lineup":{"$ref":"#/definitions/absent"}}},"else":{"properties":{"sequence":{"$ref":"#/definitions/absent"}},"if":{"required":["kind"],"properties":{"kind":{"const":"state"}}},"then":{"properties":{"boxes":{"minItems":1,"items":{"properties":{"id":{"description":"始まりと終わりの印の名前は箱の名札に使えない","not":{"enum":["start","finish"]}}}}},"steps":{"$ref":"#/definitions/plainSteps"},"strip":{"$ref":"#/definitions/plainStrip"},"git":{"$ref":"#/definitions/absent"},"time":{"$ref":"#/definitions/absent"},"lineup":{"$ref":"#/definitions/absent"}}},"else":{"if":{"required":["kind"],"properties":{"kind":{"const":"git"}}},"then":{"required":["git"],"properties":{"steps":{"$ref":"#/definitions/gitSteps"},"strip":{"$ref":"#/definitions/plainStrip"},"state":{"$ref":"#/definitions/absent"},"regions":{"$ref":"#/definitions/absent"},"time":{"$ref":"#/definitions/absent"},"lineup":{"$ref":"#/definitions/absent"}}},"else":{"if":{"required":["kind"],"properties":{"kind":{"const":"time"}}},"then":{"required":["time"],"properties":{"steps":{"$ref":"#/definitions/timeSteps"},"state":{"$ref":"#/definitions/absent"},"git":{"$ref":"#/definitions/absent"},"regions":{"$ref":"#/definitions/absent"},"lineup":{"$ref":"#/definitions/absent"}}},"else":{"if":{"required":["kind"],"properties":{"kind":{"const":"tree"}}},"then":{"properties":{"steps":{"$ref":"#/definitions/treeSteps"},"strip":{"$ref":"#/definitions/plainStrip"},"state":{"$ref":"#/definitions/absent"},"git":{"$ref":"#/definitions/absent"},"time":{"$ref":"#/definitions/absent"},"regions":{"$ref":"#/definitions/absent"},"lineup":{"$ref":"#/definitions/absent"}}},"else":{"if":{"required":["kind"],"properties":{"kind":{"const":"lineup"}}},"then":{"required":["lineup"],"properties":{"boxes":{"minItems":1,"items":{"properties":{"icon":{"$ref":"#/definitions/absent"},"link":{"$ref":"#/definitions/absent"},"region":{"$ref":"#/definitions/absent"}}}},"steps":{"$ref":"#/definitions/lineupSteps"},"strip":{"$ref":"#/definitions/plainStrip"},"state":{"$ref":"#/definitions/absent"},"git":{"$ref":"#/definitions/absent"},"time":{"$ref":"#/definitions/absent"},"regions":{"$ref":"#/definitions/absent"}}},"else":{"properties":{"boxes":{"minItems":1},"steps":{"$ref":"#/definitions/plainSteps"},"strip":{"$ref":"#/definitions/plainStrip"},"state":{"$ref":"#/definitions/absent"},"git":{"$ref":"#/definitions/absent"},"time":{"$ref":"#/definitions/absent"},"lineup":{"$ref":"#/definitions/absent"}}}}}}}},"definitions":{"text":{"type":"string","minLength":1},"absent":{"description":"この図の種類では書けない欄","not":{}},"plainSteps":{"description":"枝分かれの図でも時間軸の図でも木の図でも列の図でもない図の段。枝分かれの図だけの出来事 (commit と branch) と、時間軸の図だけの出来事 (now と mark と span) と欄 (at と into と color) と、木の図だけの出来事 (leaf と node) と、列の図だけの出来事 (line と seal と open と pick と stamp) を書けない","items":{"properties":{"events":{"items":{"not":{"$ref":"#/definitions/timeEvent"},"allOf":[{"not":{"$ref":"#/definitions/treeEvent"}},{"$ref":"#/definitions/notLineupEvent"}],"properties":{"type":{"not":{"enum":["commit","branch"]}},"at":{"$ref":"#/definitions/absent"},"into":{"$ref":"#/definitions/absent"},"color":{"$ref":"#/definitions/absent"}}}}}}},"gitSteps":{"description":"枝分かれの図の段。時間軸の図だけの出来事 (now と mark と span) と欄 (at と into と color) と、木の図だけの出来事 (leaf と node) と、列の図だけの出来事 (line と seal と open と pick と stamp) を書けない","items":{"properties":{"events":{"items":{"not":{"$ref":"#/definitions/timeEvent"},"allOf":[{"not":{"$ref":"#/definitions/treeEvent"}},{"$ref":"#/definitions/notLineupEvent"}],"properties":{"at":{"$ref":"#/definitions/absent"},"into":{"$ref":"#/definitions/absent"},"color":{"$ref":"#/definitions/absent"}}}}}}},"timeSteps":{"description":"時間軸の図の段。枝分かれの図だけの出来事 (commit と branch) と、木の図だけの出来事 (leaf と node) と、列の図だけの出来事 (line と seal と open と pick と stamp) を書けない","items":{"properties":{"events":{"items":{"allOf":[{"not":{"$ref":"#/definitions/treeEvent"}},{"$ref":"#/definitions/notLineupEvent"}],"properties":{"type":{"not":{"enum":["commit","branch"]}}}}}}}},"treeSteps":{"description":"木の図の段。枝分かれの図だけの出来事 (commit と branch) と、時間軸の図だけの出来事 (now と mark と span) と欄 (at と into と color) と、列の図だけの出来事 (line と seal と open と pick と stamp) を書けない","items":{"properties":{"events":{"items":{"not":{"$ref":"#/definitions/timeEvent"},"allOf":[{"$ref":"#/definitions/notLineupEvent"}],"properties":{"type":{"not":{"enum":["commit","branch"]}},"at":{"$ref":"#/definitions/absent"},"into":{"$ref":"#/definitions/absent"},"color":{"$ref":"#/definitions/absent"}}}}}}},"lineupSteps":{"description":"列の図の段。線と処理と、枝分かれの図だけの出来事 (commit と branch) と、時間軸の図だけの出来事 (now と mark と span) と欄 (color) と、木の図だけの出来事 (leaf と node) を書けない","items":{"properties":{"events":{"items":{"not":{"$ref":"#/definitions/timeEvent"},"allOf":[{"not":{"$ref":"#/definitions/treeEvent"}},{"$ref":"#/definitions/notWiredEvent"}],"properties":{"type":{"not":{"enum":["commit","branch"]}},"color":{"$ref":"#/definitions/absent"}}}}}}},"treeEvent":{"description":"木の図だけが書ける出来事","required":["type"],"properties":{"type":{"enum":["leaf","node"]}}},"notLineupEvent":{"description":"列の図だけが書ける出来事を書けない","not":{"required":["type"],"properties":{"type":{"enum":["line","seal","open","pick","stamp"]}}}},"notWiredEvent":{"description":"箱と線の図の出来事を書けない","not":{"required":["type"],"properties":{"type":{"enum":["edge","action"]}}}},"timeEvent":{"description":"時間軸の図だけが書ける出来事","required":["type"],"properties":{"type":{"enum":["now","mark","span"]}}},"plainStrip":{"description":"時間軸の図でない図の中身の帯。物差しを書けない","properties":{"meters":{"$ref":"#/definitions/absent"}}},"id":{"type":"string","pattern":"^[^\\s\\[\\]「」=:]+$"},"color":{"enum":["blue","amber","green","violet","rose","slate","coin"]},"icon":{"description":"箱と区画のアイコン名。描く部品のアイコンの表 (ICONS) に在る名前だけ","enum":["app","router","on","off","pool","db","exe","idx","sign","env","lock","check","flag","x","chain","net","user","server","key","shield","globe","bolt","doc","box","truck","card","cart","clock","branch","cloud","refresh","undo","yen","layers","code","paint","tree","block"]},"region":{"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"note":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"icon":{"$ref":"#/definitions/icon"}}},"box":{"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"sub":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"icon":{"$ref":"#/definitions/icon"},"region":{"$ref":"#/definitions/id"},"link":{"description":"飛び先。描いた図ではこの箱がここへの link になる","$ref":"#/definitions/url"}}},"strip":{"type":"object","additionalProperties":false,"required":["title","fields"],"properties":{"title":{"$ref":"#/definitions/text"},"fields":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/text"}},"meters":{"description":"物差しにする欄。時間軸の図だけが書ける","type":"array","minItems":1,"items":{"$ref":"#/definitions/meter"}}}},"meter":{"description":"物差しの欄。line の割合の所に線を引き、set の値まで針と一緒に満ちる","type":"object","additionalProperties":false,"required":["field","line"],"properties":{"field":{"$ref":"#/definitions/text"},"line":{"$ref":"#/definitions/ratio"}}},"ratio":{"description":"割合。分数 (2/3) か百分率 (97%)","type":"string","pattern":"^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$"},"step":{"type":"object","additionalProperties":false,"required":["title","body","events"],"properties":{"title":{"$ref":"#/definitions/text"},"body":{"$ref":"#/definitions/text"},"code":{"$ref":"#/definitions/text"},"sources":{"description":"段の出典。読み上げの段の一覧に、名前を URL への link にして書いた順に出す","type":"array","minItems":1,"items":{"$ref":"#/definitions/source"}},"events":{"type":"array","items":{"$ref":"#/definitions/event"}}}},"source":{"type":"object","additionalProperties":false,"required":["name","url"],"properties":{"name":{"$ref":"#/definitions/text"},"url":{"$ref":"#/definitions/url"}}},"url":{"description":"頁を移る形。/ で始まる path か、http:// か https:// で始まる URL","type":"string","pattern":"^(/|https?://)"},"event":{"description":"段の中で起きること。起きる順に並べる","type":"object","required":["type"],"discriminator":{"propertyName":"type"},"oneOf":[{"description":"線。運ぶ物を載せて送る側から受ける側へ走る","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":"線の名前を置く側 (寄せの指示)","enum":["above","below","left","right"]},"at":{"description":"時間軸の図の拡大の帯で、線を引く列の目盛り","$ref":"#/definitions/unit"},"into":{"description":"時間軸の図の拡大の帯で、受ける箱を選ぶ列の目盛り。書かなければ at の列","$ref":"#/definitions/unit"}}},{"description":"箱の中の処理","type":"object","additionalProperties":false,"required":["type","box","label"],"properties":{"type":{"const":"action"},"box":{"$ref":"#/definitions/id"},"label":{"$ref":"#/definitions/text"}}},{"description":"箱の下の小さな字の書き換え","type":"object","additionalProperties":false,"required":["type","box","text"],"properties":{"type":{"const":"swap"},"box":{"$ref":"#/definitions/id"},"text":{"$ref":"#/definitions/text"},"color":{"description":"時間軸の図の節目の丸の色","$ref":"#/definitions/color"}}},{"description":"commit を積む。枝分かれの図だけが書ける。積んだ枝の札と、その枝を指す HEAD が進む。当て直し (copy) は枝の札を動かさず、merge commit (merge) は取り込む枝の先端も親に持つ","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":"枝を切る。枝分かれの図だけが書ける。枝の札を from の commit へ置き、HEAD をその枝へ移す","type":"object","additionalProperties":false,"required":["type","branch","from"],"properties":{"type":{"const":"branch"},"branch":{"$ref":"#/definitions/id"},"from":{"$ref":"#/definitions/id"}}},{"description":"時間軸の図の今の時刻の針を、to の目盛りの終わりまで進める","type":"object","additionalProperties":false,"required":["type","to"],"properties":{"type":{"const":"now"},"to":{"$ref":"#/definitions/unit"}}},{"description":"時間軸の図の印の列 row の、from から to の目盛りの印の色を変える","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":"時間軸の図の from から to の目盛りに、括弧と字を出す。shape が box なら印の列を囲み、字を縁の札にする","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":"葉を出す。木の図だけが書ける。書いた段で葉の箱が現れる。hash を書くと箱に値を出し、名札を葉の下の札に出す","type":"object","additionalProperties":false,"required":["type","id"],"properties":{"type":{"const":"leaf"},"id":{"$ref":"#/definitions/id"},"hash":{"$ref":"#/definitions/hash"}}},{"description":"1 つ以上の子から親を組む。木の図だけが書ける。書いた段で親の箱と、子から親への木の線が現れる","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":"列の box の並びを items に書き換える。列の図だけが書ける。チップは前に居た列から滑り、どの列にも居なかったチップは弾んで現れ、列から外れたチップは消える","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":"列 box に封をして、チップを隠す。列の図だけが書ける","type":"object","additionalProperties":false,"required":["type","box"],"properties":{"type":{"const":"seal"},"box":{"$ref":"#/definitions/id"}}},{"description":"列 box の封を開ける。列の図だけが書ける","type":"object","additionalProperties":false,"required":["type","box"],"properties":{"type":{"const":"open"},"box":{"$ref":"#/definitions/id"}}},{"description":"列 box を選ぶ。列の図だけが書ける。列の縁に色が付き、ほかの列が薄くなる","type":"object","additionalProperties":false,"required":["type","box"],"properties":{"type":{"const":"pick"},"box":{"$ref":"#/definitions/id"}}},{"description":"列 box の右に text の札を押す。列の図だけが書ける","type":"object","additionalProperties":false,"required":["type","box","text"],"properties":{"type":{"const":"stamp"},"box":{"$ref":"#/definitions/id"},"text":{"$ref":"#/definitions/text"}}},{"description":"中身の帯の欄の値と札","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"}}}]},"carry":{"description":"線の上を走る物。封筒 (メッセージや要求)、札 (名前のある値)、硬貨 (価値)、無し","type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"enum":["envelope","tag","coin","none"]},"text":{"$ref":"#/definitions/text"}},"if":{"required":["kind"],"properties":{"kind":{"const":"tag"}}},"then":{"required":["text"]},"else":{"not":{"required":["text"]}}},"sequence":{"description":"時系列図の種類の欄。生存線を左から並べる順","type":"object","additionalProperties":false,"required":["lifelines"],"properties":{"lifelines":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/id"}}}},"state":{"description":"状態遷移図の種類の欄。最初の段より前に書いた、移れるが段で通るとは限らない線","type":"object","additionalProperties":false,"required":["paths"],"properties":{"paths":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/path"}}}},"git":{"description":"枝分かれの図の種類の欄。枝を上から帯に並べる順","type":"object","additionalProperties":false,"required":["branches"],"properties":{"branches":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/branch"}}}},"branch":{"description":"枝。帯の左に名札と添え書きを置く","type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"$ref":"#/definitions/id"},"note":{"$ref":"#/definitions/text"}}},"hash":{"description":"commit と木の箱の hash。16 進の字で 4 から 40 字","type":"string","pattern":"^[0-9a-f]{4,40}$"},"lineup":{"description":"列の図の種類の欄。列に並べるチップ","type":"object","additionalProperties":false,"required":["items"],"properties":{"items":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/item"}}}},"item":{"description":"チップ。color を書かないチップは薄い色で、label を書かないチップは色だけで出す","type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"$ref":"#/definitions/id"},"color":{"$ref":"#/definitions/color"},"label":{"description":"チップに載せる字","type":"string","minLength":1,"maxLength":4}}},"time":{"description":"時間軸の図の種類の欄。目盛り、区切り、印の列、節目、拡大の範囲","type":"object","additionalProperties":false,"required":["scale","rows"],"properties":{"scale":{"$ref":"#/definitions/scale"},"period":{"$ref":"#/definitions/period"},"rows":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/row"}},"points":{"type":"array","items":{"$ref":"#/definitions/point"}},"zoom":{"$ref":"#/definitions/zoom"}}},"scale":{"description":"目盛り。unit の名前の目盛りを length の長さで count 個並べ、最初の目盛りの番号を from にする","type":"object","additionalProperties":false,"required":["unit","length","count"],"properties":{"unit":{"$ref":"#/definitions/text"},"length":{"$ref":"#/definitions/duration"},"count":{"type":"integer","minimum":1},"from":{"type":"integer","minimum":0}}},"duration":{"description":"長さ。数と単位 (ms、s、min、h、d) の組","type":"string","pattern":"^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$"},"unit":{"description":"目盛りの位置。0 から数える","type":"integer","minimum":0},"period":{"description":"区切り。目盛り length 個ごとに name の区切りを置き、最初の区切りの番号を from にする","type":"object","additionalProperties":false,"required":["name","length"],"properties":{"name":{"$ref":"#/definitions/text"},"length":{"type":"integer","minimum":1},"from":{"type":"integer","minimum":0}}},"row":{"description":"印の列。目盛りごとに印を 1 つ置き、empty の目盛りは空きの印にする","type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"empty":{"type":"array","items":{"$ref":"#/definitions/unit"}}}},"point":{"description":"節目。at の目盛りの印の下に旗の丸と名札を置く","type":"object","additionalProperties":false,"required":["id","at"],"properties":{"id":{"$ref":"#/definitions/id"},"at":{"$ref":"#/definitions/unit"}}},"zoom":{"description":"拡大の範囲。from から to の目盛りごとに拡大の帯に列を作る","type":"object","additionalProperties":false,"required":["from","to"],"properties":{"from":{"$ref":"#/definitions/unit"},"to":{"$ref":"#/definitions/unit"}}},"path":{"description":"移れる道。送る側に始まりの印 start、受ける側に終わりの印 finish を書ける。どの段にも出ない道は点線で描き、運ぶ物を走らせない","type":"object","additionalProperties":false,"required":["from","to"],"properties":{"from":{"$ref":"#/definitions/id"},"to":{"$ref":"#/definitions/id"},"label":{"$ref":"#/definitions/text"}}}}};const schema16 = {"description":"この図の種類では書けない欄","not":{}};const schema74 = {"type":"string","minLength":1};const schema12 = {"description":"枝分かれの図でも時間軸の図でも木の図でも列の図でもない図の段。枝分かれの図だけの出来事 (commit と branch) と、時間軸の図だけの出来事 (now と mark と span) と欄 (at と into と color) と、木の図だけの出来事 (leaf と node) と、列の図だけの出来事 (line と seal と open と pick と stamp) を書けない","items":{"properties":{"events":{"items":{"not":{"$ref":"#/definitions/timeEvent"},"allOf":[{"not":{"$ref":"#/definitions/treeEvent"}},{"$ref":"#/definitions/notLineupEvent"}],"properties":{"type":{"not":{"enum":["commit","branch"]}},"at":{"$ref":"#/definitions/absent"},"into":{"$ref":"#/definitions/absent"},"color":{"$ref":"#/definitions/absent"}}}}}}};const schema13 = {"description":"時間軸の図だけが書ける出来事","required":["type"],"properties":{"type":{"enum":["now","mark","span"]}}};const schema14 = {"description":"木の図だけが書ける出来事","required":["type"],"properties":{"type":{"enum":["leaf","node"]}}};const schema15 = {"description":"列の図だけが書ける出来事を書けない","not":{"required":["type"],"properties":{"type":{"enum":["line","seal","open","pick","stamp"]}}}};function validate11(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.events !== undefined){let data1 = data0.events;if(Array.isArray(data1)){const len1 = data1.length;for(let i1=0; i1<len1; i1++){let data2 = data1[i1];const _errs3 = errors;const _errs4 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing0;if((data2.type === undefined) && (missing0 = "type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data2.type !== undefined){let data3 = data2.type;if(!(((data3 === "now") || (data3 === "mark")) || (data3 === "span"))){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var valid5 = _errs4 === errors;if(valid5){const err2 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/items/properties/events/items/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}const _errs8 = errors;const _errs9 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((data2.type === undefined) && (missing1 = "type")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(data2.type !== undefined){let data4 = data2.type;if(!((data4 === "leaf") || (data4 === "node"))){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}}var valid9 = _errs9 === errors;if(valid9){const err5 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/items/properties/events/items/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}const _errs14 = errors;const _errs15 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing2;if((data2.type === undefined) && (missing2 = "type")){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data2.type !== undefined){let data5 = data2.type;if(!(((((data5 === "line") || (data5 === "seal")) || (data5 === "open")) || (data5 === "pick")) || (data5 === "stamp"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}var valid13 = _errs15 === errors;if(valid13){const err8 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/definitions/notLineupEvent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs14;if(vErrors !== null){if(_errs14){vErrors.length = _errs14;}else {vErrors = null;}}}if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.type !== undefined){let data6 = data2.type;const _errs18 = errors;const _errs19 = errors;if(!((data6 === "commit") || (data6 === "branch"))){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid16 = _errs19 === errors;if(valid16){const err10 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/type",schemaPath:"#/items/properties/events/items/properties/type/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}}if(data2.at !== undefined){const err11 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/at",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data2.into !== undefined){const err12 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/into",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(data2.color !== undefined){const err13 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/color",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}}}}}}validate11.errors = vErrors;return errors === 0;}const schema19 = {"description":"時間軸の図でない図の中身の帯。物差しを書けない","properties":{"meters":{"$ref":"#/definitions/absent"}}};function validate13(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.meters !== undefined){const err0 = {instancePath:instancePath+"/meters",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}validate13.errors = vErrors;return errors === 0;}const schema28 = {"description":"枝分かれの図の段。時間軸の図だけの出来事 (now と mark と span) と欄 (at と into と color) と、木の図だけの出来事 (leaf と node) と、列の図だけの出来事 (line と seal と open と pick と stamp) を書けない","items":{"properties":{"events":{"items":{"not":{"$ref":"#/definitions/timeEvent"},"allOf":[{"not":{"$ref":"#/definitions/treeEvent"}},{"$ref":"#/definitions/notLineupEvent"}],"properties":{"at":{"$ref":"#/definitions/absent"},"into":{"$ref":"#/definitions/absent"},"color":{"$ref":"#/definitions/absent"}}}}}}};function validate17(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.events !== undefined){let data1 = data0.events;if(Array.isArray(data1)){const len1 = data1.length;for(let i1=0; i1<len1; i1++){let data2 = data1[i1];const _errs3 = errors;const _errs4 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing0;if((data2.type === undefined) && (missing0 = "type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data2.type !== undefined){let data3 = data2.type;if(!(((data3 === "now") || (data3 === "mark")) || (data3 === "span"))){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var valid5 = _errs4 === errors;if(valid5){const err2 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/items/properties/events/items/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}const _errs8 = errors;const _errs9 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((data2.type === undefined) && (missing1 = "type")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(data2.type !== undefined){let data4 = data2.type;if(!((data4 === "leaf") || (data4 === "node"))){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}}var valid9 = _errs9 === errors;if(valid9){const err5 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/items/properties/events/items/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}const _errs14 = errors;const _errs15 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing2;if((data2.type === undefined) && (missing2 = "type")){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data2.type !== undefined){let data5 = data2.type;if(!(((((data5 === "line") || (data5 === "seal")) || (data5 === "open")) || (data5 === "pick")) || (data5 === "stamp"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}var valid13 = _errs15 === errors;if(valid13){const err8 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/definitions/notLineupEvent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs14;if(vErrors !== null){if(_errs14){vErrors.length = _errs14;}else {vErrors = null;}}}if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.at !== undefined){const err9 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/at",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data2.into !== undefined){const err10 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/into",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data2.color !== undefined){const err11 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/color",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}}}}}}validate17.errors = vErrors;return errors === 0;}const schema39 = {"description":"時間軸の図の段。枝分かれの図だけの出来事 (commit と branch) と、木の図だけの出来事 (leaf と node) と、列の図だけの出来事 (line と seal と open と pick と stamp) を書けない","items":{"properties":{"events":{"items":{"allOf":[{"not":{"$ref":"#/definitions/treeEvent"}},{"$ref":"#/definitions/notLineupEvent"}],"properties":{"type":{"not":{"enum":["commit","branch"]}}}}}}}};function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.events !== undefined){let data1 = data0.events;if(Array.isArray(data1)){const len1 = data1.length;for(let i1=0; i1<len1; i1++){let data2 = data1[i1];const _errs4 = errors;const _errs5 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing0;if((data2.type === undefined) && (missing0 = "type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data2.type !== undefined){let data3 = data2.type;if(!((data3 === "leaf") || (data3 === "node"))){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var valid6 = _errs5 === errors;if(valid6){const err2 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/items/properties/events/items/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs4;if(vErrors !== null){if(_errs4){vErrors.length = _errs4;}else {vErrors = null;}}}const _errs10 = errors;const _errs11 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((data2.type === undefined) && (missing1 = "type")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(data2.type !== undefined){let data4 = data2.type;if(!(((((data4 === "line") || (data4 === "seal")) || (data4 === "open")) || (data4 === "pick")) || (data4 === "stamp"))){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}}var valid10 = _errs11 === errors;if(valid10){const err5 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/definitions/notLineupEvent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}}if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.type !== undefined){let data5 = data2.type;const _errs14 = errors;const _errs15 = errors;if(!((data5 === "commit") || (data5 === "branch"))){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var valid13 = _errs15 === errors;if(valid13){const err7 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/type",schemaPath:"#/items/properties/events/items/properties/type/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {errors = _errs14;if(vErrors !== null){if(_errs14){vErrors.length = _errs14;}else {vErrors = null;}}}}}}}}}}}validate20.errors = vErrors;return errors === 0;}const schema46 = {"description":"木の図の段。枝分かれの図だけの出来事 (commit と branch) と、時間軸の図だけの出来事 (now と mark と span) と欄 (at と into と color) と、列の図だけの出来事 (line と seal と open と pick と stamp) を書けない","items":{"properties":{"events":{"items":{"not":{"$ref":"#/definitions/timeEvent"},"allOf":[{"$ref":"#/definitions/notLineupEvent"}],"properties":{"type":{"not":{"enum":["commit","branch"]}},"at":{"$ref":"#/definitions/absent"},"into":{"$ref":"#/definitions/absent"},"color":{"$ref":"#/definitions/absent"}}}}}}};function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.events !== undefined){let data1 = data0.events;if(Array.isArray(data1)){const len1 = data1.length;for(let i1=0; i1<len1; i1++){let data2 = data1[i1];const _errs3 = errors;const _errs4 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing0;if((data2.type === undefined) && (missing0 = "type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data2.type !== undefined){let data3 = data2.type;if(!(((data3 === "now") || (data3 === "mark")) || (data3 === "span"))){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var valid5 = _errs4 === errors;if(valid5){const err2 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/items/properties/events/items/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}const _errs9 = errors;const _errs10 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((data2.type === undefined) && (missing1 = "type")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(data2.type !== undefined){let data4 = data2.type;if(!(((((data4 === "line") || (data4 === "seal")) || (data4 === "open")) || (data4 === "pick")) || (data4 === "stamp"))){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}}var valid10 = _errs10 === errors;if(valid10){const err5 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/definitions/notLineupEvent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.type !== undefined){let data5 = data2.type;const _errs13 = errors;const _errs14 = errors;if(!((data5 === "commit") || (data5 === "branch"))){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var valid13 = _errs14 === errors;if(valid13){const err7 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/type",schemaPath:"#/items/properties/events/items/properties/type/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}}}if(data2.at !== undefined){const err8 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/at",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data2.into !== undefined){const err9 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/into",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data2.color !== undefined){const err10 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/color",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}}}}}}validate22.errors = vErrors;return errors === 0;}const schema60 = {"description":"列の図の段。線と処理と、枝分かれの図だけの出来事 (commit と branch) と、時間軸の図だけの出来事 (now と mark と span) と欄 (color) と、木の図だけの出来事 (leaf と node) を書けない","items":{"properties":{"events":{"items":{"not":{"$ref":"#/definitions/timeEvent"},"allOf":[{"not":{"$ref":"#/definitions/treeEvent"}},{"$ref":"#/definitions/notWiredEvent"}],"properties":{"type":{"not":{"enum":["commit","branch"]}},"color":{"$ref":"#/definitions/absent"}}}}}}};const schema63 = {"description":"箱と線の図の出来事を書けない","not":{"required":["type"],"properties":{"type":{"enum":["edge","action"]}}}};function validate25(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.events !== undefined){let data1 = data0.events;if(Array.isArray(data1)){const len1 = data1.length;for(let i1=0; i1<len1; i1++){let data2 = data1[i1];const _errs3 = errors;const _errs4 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing0;if((data2.type === undefined) && (missing0 = "type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data2.type !== undefined){let data3 = data2.type;if(!(((data3 === "now") || (data3 === "mark")) || (data3 === "span"))){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var valid5 = _errs4 === errors;if(valid5){const err2 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/items/properties/events/items/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}const _errs8 = errors;const _errs9 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((data2.type === undefined) && (missing1 = "type")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(data2.type !== undefined){let data4 = data2.type;if(!((data4 === "leaf") || (data4 === "node"))){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}}var valid9 = _errs9 === errors;if(valid9){const err5 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/items/properties/events/items/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}const _errs14 = errors;const _errs15 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing2;if((data2.type === undefined) && (missing2 = "type")){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data2.type !== undefined){let data5 = data2.type;if(!((data5 === "edge") || (data5 === "action"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}var valid13 = _errs15 === errors;if(valid13){const err8 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/definitions/notWiredEvent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs14;if(vErrors !== null){if(_errs14){vErrors.length = _errs14;}else {vErrors = null;}}}if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.type !== undefined){let data6 = data2.type;const _errs18 = errors;const _errs19 = errors;if(!((data6 === "commit") || (data6 === "branch"))){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid16 = _errs19 === errors;if(valid16){const err10 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/type",schemaPath:"#/items/properties/events/items/properties/type/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}}if(data2.color !== undefined){const err11 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/color",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}}}}}}validate25.errors = vErrors;return errors === 0;}const schema75 = {"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"note":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"icon":{"$ref":"#/definitions/icon"}}};const schema76 = {"type":"string","pattern":"^[^\\s\\[\\]「」=:]+$"};const schema79 = {"enum":["blue","amber","green","violet","rose","slate","coin"]};const schema80 = {"description":"箱と区画のアイコン名。描く部品のアイコンの表 (ICONS) に在る名前だけ","enum":["app","router","on","off","pool","db","exe","idx","sign","env","lock","check","flag","x","chain","net","user","server","key","shield","globe","bolt","doc","box","truck","card","cart","clock","branch","cloud","refresh","undo","yen","layers","code","paint","tree","block"]};const pattern0 = new RegExp("^[^\\s\\[\\]「」=:]+$", "u");const func3 = ucs2length;function validate30(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.name === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((((key0 === "id") || (key0 === "name")) || (key0 === "note")) || (key0 === "color")) || (key0 === "icon"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err3 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.name !== undefined){let data1 = data.name;if(typeof data1 === "string"){if(func3(data1) < 1){const err5 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.note !== undefined){let data2 = data.note;if(typeof data2 === "string"){if(func3(data2) < 1){const err7 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.color !== undefined){let data3 = data.color;if(!(((((((data3 === "blue") || (data3 === "amber")) || (data3 === "green")) || (data3 === "violet")) || (data3 === "rose")) || (data3 === "slate")) || (data3 === "coin"))){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"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.icon !== undefined){let data4 = data.icon;if(!((((((((((((((((((((((((((((((((((((((data4 === "app") || (data4 === "router")) || (data4 === "on")) || (data4 === "off")) || (data4 === "pool")) || (data4 === "db")) || (data4 === "exe")) || (data4 === "idx")) || (data4 === "sign")) || (data4 === "env")) || (data4 === "lock")) || (data4 === "check")) || (data4 === "flag")) || (data4 === "x")) || (data4 === "chain")) || (data4 === "net")) || (data4 === "user")) || (data4 === "server")) || (data4 === "key")) || (data4 === "shield")) || (data4 === "globe")) || (data4 === "bolt")) || (data4 === "doc")) || (data4 === "box")) || (data4 === "truck")) || (data4 === "card")) || (data4 === "cart")) || (data4 === "clock")) || (data4 === "branch")) || (data4 === "cloud")) || (data4 === "refresh")) || (data4 === "undo")) || (data4 === "yen")) || (data4 === "layers")) || (data4 === "code")) || (data4 === "paint")) || (data4 === "tree")) || (data4 === "block"))){const err10 = {instancePath:instancePath+"/icon",schemaPath:"#/definitions/icon/enum",keyword:"enum",params:{allowedValues: schema80.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}validate30.errors = vErrors;return errors === 0;}const schema81 = {"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"sub":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"icon":{"$ref":"#/definitions/icon"},"region":{"$ref":"#/definitions/id"},"link":{"description":"飛び先。描いた図ではこの箱がここへの link になる","$ref":"#/definitions/url"}}};const schema88 = {"description":"頁を移る形。/ で始まる path か、http:// か https:// で始まる URL","type":"string","pattern":"^(/|https?://)"};const pattern3 = new RegExp("^(/|https?://)", "u");function validate32(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.name === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((((((key0 === "id") || (key0 === "name")) || (key0 === "sub")) || (key0 === "color")) || (key0 === "icon")) || (key0 === "region")) || (key0 === "link"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err3 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.name !== undefined){let data1 = data.name;if(typeof data1 === "string"){if(func3(data1) < 1){const err5 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.sub !== undefined){let data2 = data.sub;if(typeof data2 === "string"){if(func3(data2) < 1){const err7 = {instancePath:instancePath+"/sub",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/sub",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.color !== undefined){let data3 = data.color;if(!(((((((data3 === "blue") || (data3 === "amber")) || (data3 === "green")) || (data3 === "violet")) || (data3 === "rose")) || (data3 === "slate")) || (data3 === "coin"))){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"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.icon !== undefined){let data4 = data.icon;if(!((((((((((((((((((((((((((((((((((((((data4 === "app") || (data4 === "router")) || (data4 === "on")) || (data4 === "off")) || (data4 === "pool")) || (data4 === "db")) || (data4 === "exe")) || (data4 === "idx")) || (data4 === "sign")) || (data4 === "env")) || (data4 === "lock")) || (data4 === "check")) || (data4 === "flag")) || (data4 === "x")) || (data4 === "chain")) || (data4 === "net")) || (data4 === "user")) || (data4 === "server")) || (data4 === "key")) || (data4 === "shield")) || (data4 === "globe")) || (data4 === "bolt")) || (data4 === "doc")) || (data4 === "box")) || (data4 === "truck")) || (data4 === "card")) || (data4 === "cart")) || (data4 === "clock")) || (data4 === "branch")) || (data4 === "cloud")) || (data4 === "refresh")) || (data4 === "undo")) || (data4 === "yen")) || (data4 === "layers")) || (data4 === "code")) || (data4 === "paint")) || (data4 === "tree")) || (data4 === "block"))){const err10 = {instancePath:instancePath+"/icon",schemaPath:"#/definitions/icon/enum",keyword:"enum",params:{allowedValues: schema80.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.region !== undefined){let data5 = data.region;if(typeof data5 === "string"){if(!pattern0.test(data5)){const err11 = {instancePath:instancePath+"/region",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/region",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.link !== undefined){let data6 = data.link;if(typeof data6 === "string"){if(!pattern3.test(data6)){const err13 = {instancePath:instancePath+"/link",schemaPath:"#/definitions/url/pattern",keyword:"pattern",params:{pattern: "^(/|https?://)"},message:"must match pattern \""+"^(/|https?://)"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/link",schemaPath:"#/definitions/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}else {const err15 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}validate32.errors = vErrors;return errors === 0;}const schema89 = {"type":"object","additionalProperties":false,"required":["title","fields"],"properties":{"title":{"$ref":"#/definitions/text"},"fields":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/text"}},"meters":{"description":"物差しにする欄。時間軸の図だけが書ける","type":"array","minItems":1,"items":{"$ref":"#/definitions/meter"}}}};const schema92 = {"description":"物差しの欄。line の割合の所に線を引き、set の値まで針と一緒に満ちる","type":"object","additionalProperties":false,"required":["field","line"],"properties":{"field":{"$ref":"#/definitions/text"},"line":{"$ref":"#/definitions/ratio"}}};const schema94 = {"description":"割合。分数 (2/3) か百分率 (97%)","type":"string","pattern":"^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$"};const pattern4 = new RegExp("^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$", "u");function validate35(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.field === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "field"},message:"must have required property '"+"field"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.line === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "line"},message:"must have required property '"+"line"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "field") || (key0 === "line"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.field !== undefined){let data0 = data.field;if(typeof data0 === "string"){if(func3(data0) < 1){const err3 = {instancePath:instancePath+"/field",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/field",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.line !== undefined){let data1 = data.line;if(typeof data1 === "string"){if(!pattern4.test(data1)){const err5 = {instancePath:instancePath+"/line",schemaPath:"#/definitions/ratio/pattern",keyword:"pattern",params:{pattern: "^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$"},message:"must match pattern \""+"^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/line",schemaPath:"#/definitions/ratio/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}else {const err7 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}validate35.errors = vErrors;return errors === 0;}function validate34(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.title === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.fields === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "fields"},message:"must have required property '"+"fields"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((key0 === "title") || (key0 === "fields")) || (key0 === "meters"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.title !== undefined){let data0 = data.title;if(typeof data0 === "string"){if(func3(data0) < 1){const err3 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.fields !== undefined){let data1 = data.fields;if(Array.isArray(data1)){if(data1.length < 1){const err5 = {instancePath:instancePath+"/fields",schemaPath:"#/properties/fields/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if(typeof data2 === "string"){if(func3(data2) < 1){const err6 = {instancePath:instancePath+"/fields/" + i0,schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/fields/" + i0,schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath:instancePath+"/fields",schemaPath:"#/properties/fields/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.meters !== undefined){let data3 = data.meters;if(Array.isArray(data3)){if(data3.length < 1){const err9 = {instancePath:instancePath+"/meters",schemaPath:"#/properties/meters/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){if(!(validate35(data3[i1], {instancePath:instancePath+"/meters/" + i1,parentData:data3,parentDataProperty:i1,rootData}))){vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);errors = vErrors.length;}}}else {const err10 = {instancePath:instancePath+"/meters",schemaPath:"#/properties/meters/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}validate34.errors = vErrors;return errors === 0;}const schema95 = {"type":"object","additionalProperties":false,"required":["title","body","events"],"properties":{"title":{"$ref":"#/definitions/text"},"body":{"$ref":"#/definitions/text"},"code":{"$ref":"#/definitions/text"},"sources":{"description":"段の出典。読み上げの段の一覧に、名前を URL への link にして書いた順に出す","type":"array","minItems":1,"items":{"$ref":"#/definitions/source"}},"events":{"type":"array","items":{"$ref":"#/definitions/event"}}}};const schema99 = {"type":"object","additionalProperties":false,"required":["name","url"],"properties":{"name":{"$ref":"#/definitions/text"},"url":{"$ref":"#/definitions/url"}}};function validate39(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.url === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "name") || (key0 === "url"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.name !== undefined){let data0 = data.name;if(typeof data0 === "string"){if(func3(data0) < 1){const err3 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.url !== undefined){let data1 = data.url;if(typeof data1 === "string"){if(!pattern3.test(data1)){const err5 = {instancePath:instancePath+"/url",schemaPath:"#/definitions/url/pattern",keyword:"pattern",params:{pattern: "^(/|https?://)"},message:"must match pattern \""+"^(/|https?://)"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/url",schemaPath:"#/definitions/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}else {const err7 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}validate39.errors = vErrors;return errors === 0;}const schema102 = {"description":"段の中で起きること。起きる順に並べる","type":"object","required":["type"],"discriminator":{"propertyName":"type"},"oneOf":[{"description":"線。運ぶ物を載せて送る側から受ける側へ走る","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":"線の名前を置く側 (寄せの指示)","enum":["above","below","left","right"]},"at":{"description":"時間軸の図の拡大の帯で、線を引く列の目盛り","$ref":"#/definitions/unit"},"into":{"description":"時間軸の図の拡大の帯で、受ける箱を選ぶ列の目盛り。書かなければ at の列","$ref":"#/definitions/unit"}}},{"description":"箱の中の処理","type":"object","additionalProperties":false,"required":["type","box","label"],"properties":{"type":{"const":"action"},"box":{"$ref":"#/definitions/id"},"label":{"$ref":"#/definitions/text"}}},{"description":"箱の下の小さな字の書き換え","type":"object","additionalProperties":false,"required":["type","box","text"],"properties":{"type":{"const":"swap"},"box":{"$ref":"#/definitions/id"},"text":{"$ref":"#/definitions/text"},"color":{"description":"時間軸の図の節目の丸の色","$ref":"#/definitions/color"}}},{"description":"commit を積む。枝分かれの図だけが書ける。積んだ枝の札と、その枝を指す HEAD が進む。当て直し (copy) は枝の札を動かさず、merge commit (merge) は取り込む枝の先端も親に持つ","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":"枝を切る。枝分かれの図だけが書ける。枝の札を from の commit へ置き、HEAD をその枝へ移す","type":"object","additionalProperties":false,"required":["type","branch","from"],"properties":{"type":{"const":"branch"},"branch":{"$ref":"#/definitions/id"},"from":{"$ref":"#/definitions/id"}}},{"description":"時間軸の図の今の時刻の針を、to の目盛りの終わりまで進める","type":"object","additionalProperties":false,"required":["type","to"],"properties":{"type":{"const":"now"},"to":{"$ref":"#/definitions/unit"}}},{"description":"時間軸の図の印の列 row の、from から to の目盛りの印の色を変える","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":"時間軸の図の from から to の目盛りに、括弧と字を出す。shape が box なら印の列を囲み、字を縁の札にする","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":"葉を出す。木の図だけが書ける。書いた段で葉の箱が現れる。hash を書くと箱に値を出し、名札を葉の下の札に出す","type":"object","additionalProperties":false,"required":["type","id"],"properties":{"type":{"const":"leaf"},"id":{"$ref":"#/definitions/id"},"hash":{"$ref":"#/definitions/hash"}}},{"description":"1 つ以上の子から親を組む。木の図だけが書ける。書いた段で親の箱と、子から親への木の線が現れる","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":"列の box の並びを items に書き換える。列の図だけが書ける。チップは前に居た列から滑り、どの列にも居なかったチップは弾んで現れ、列から外れたチップは消える","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":"列 box に封をして、チップを隠す。列の図だけが書ける","type":"object","additionalProperties":false,"required":["type","box"],"properties":{"type":{"const":"seal"},"box":{"$ref":"#/definitions/id"}}},{"description":"列 box の封を開ける。列の図だけが書ける","type":"object","additionalProperties":false,"required":["type","box"],"properties":{"type":{"const":"open"},"box":{"$ref":"#/definitions/id"}}},{"description":"列 box を選ぶ。列の図だけが書ける。列の縁に色が付き、ほかの列が薄くなる","type":"object","additionalProperties":false,"required":["type","box"],"properties":{"type":{"const":"pick"},"box":{"$ref":"#/definitions/id"}}},{"description":"列 box の右に text の札を押す。列の図だけが書ける","type":"object","additionalProperties":false,"required":["type","box","text"],"properties":{"type":{"const":"stamp"},"box":{"$ref":"#/definitions/id"},"text":{"$ref":"#/definitions/text"}}},{"description":"中身の帯の欄の値と札","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"}}}]};const schema108 = {"description":"目盛りの位置。0 から数える","type":"integer","minimum":0};const schema119 = {"description":"commit と木の箱の hash。16 進の字で 4 から 40 字","type":"string","pattern":"^[0-9a-f]{4,40}$"};const pattern14 = new RegExp("^[0-9a-f]{4,40}$", "u");const schema106 = {"description":"線の上を走る物。封筒 (メッセージや要求)、札 (名前のある値)、硬貨 (価値)、無し","type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"enum":["envelope","tag","coin","none"]},"text":{"$ref":"#/definitions/text"}},"if":{"required":["kind"],"properties":{"kind":{"const":"tag"}}},"then":{"required":["text"]},"else":{"not":{"required":["text"]}}};function validate42(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs1 = errors;let valid0 = true;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.kind === undefined) && (missing0 = "kind")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.kind !== undefined){if("tag" !== data.kind){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs2 === errors;errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs4 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.text === undefined){const err2 = {instancePath,schemaPath:"#/then/required",keyword:"required",params:{missingProperty: "text"},message:"must have required property '"+"text"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}var _valid0 = _errs4 === errors;valid0 = _valid0;ifClause0 = "then";}else {const _errs5 = errors;const _errs6 = errors;const _errs7 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.text === undefined) && (missing1 = "text")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}var valid2 = _errs7 === errors;if(valid2){const err4 = {instancePath,schemaPath:"#/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {errors = _errs6;if(vErrors !== null){if(_errs6){vErrors.length = _errs6;}else {vErrors = null;}}}var _valid0 = _errs5 === errors;valid0 = _valid0;ifClause0 = "else";}if(!valid0){const err5 = {instancePath,schemaPath:"#/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind === undefined){const err6 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}for(const key0 in data){if(!((key0 === "kind") || (key0 === "text"))){const err7 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.kind !== undefined){let data1 = data.kind;if(!((((data1 === "envelope") || (data1 === "tag")) || (data1 === "coin")) || (data1 === "none"))){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"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.text !== undefined){let data2 = data.text;if(typeof data2 === "string"){if(func3(data2) < 1){const err9 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}validate42.errors = vErrors;return errors === 0;}function validate41(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const tag0 = data.type;if(typeof tag0 == "string"){if(tag0 === "edge"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.from === undefined){const err2 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.to === undefined){const err3 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.carry === undefined){const err4 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "carry"},message:"must have required property '"+"carry"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}for(const key0 in data){if(!((((((((key0 === "type") || (key0 === "from")) || (key0 === "to")) || (key0 === "label")) || (key0 === "carry")) || (key0 === "labelSide")) || (key0 === "at")) || (key0 === "into"))){const err5 = {instancePath,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.type !== undefined){if("edge" !== data.type){const err6 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/0/properties/type/const",keyword:"const",params:{allowedValue: "edge"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.from !== undefined){let data1 = data.from;if(typeof data1 === "string"){if(!pattern0.test(data1)){const err7 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.to !== undefined){let data2 = data.to;if(typeof data2 === "string"){if(!pattern0.test(data2)){const err9 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.label !== undefined){let data3 = data.label;if(typeof data3 === "string"){if(func3(data3) < 1){const err11 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.carry !== undefined){if(!(validate42(data.carry, {instancePath:instancePath+"/carry",parentData:data,parentDataProperty:"carry",rootData}))){vErrors = vErrors === null ? validate42.errors : vErrors.concat(validate42.errors);errors = vErrors.length;}}if(data.labelSide !== undefined){let data5 = data.labelSide;if(!((((data5 === "above") || (data5 === "below")) || (data5 === "left")) || (data5 === "right"))){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"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data.at !== undefined){let data6 = data.at;if(!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))){const err14 = {instancePath:instancePath+"/at",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if((typeof data6 == "number") && (isFinite(data6))){if(data6 < 0 || isNaN(data6)){const err15 = {instancePath:instancePath+"/at",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}if(data.into !== undefined){let data7 = data.into;if(!(((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7))) && (isFinite(data7)))){const err16 = {instancePath:instancePath+"/into",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if((typeof data7 == "number") && (isFinite(data7))){if(data7 < 0 || isNaN(data7)){const err17 = {instancePath:instancePath+"/into",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}}else {const err18 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}else if(tag0 === "action"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err19 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data.box === undefined){const err20 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "box"},message:"must have required property '"+"box"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data.label === undefined){const err21 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}for(const key1 in data){if(!(((key1 === "type") || (key1 === "box")) || (key1 === "label"))){const err22 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data.type !== undefined){if("action" !== data.type){const err23 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/1/properties/type/const",keyword:"const",params:{allowedValue: "action"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data.box !== undefined){let data9 = data.box;if(typeof data9 === "string"){if(!pattern0.test(data9)){const err24 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}else {const err25 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data.label !== undefined){let data10 = data.label;if(typeof data10 === "string"){if(func3(data10) < 1){const err26 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}else {const err27 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}else {const err28 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}else if(tag0 === "swap"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err29 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(data.box === undefined){const err30 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "box"},message:"must have required property '"+"box"+"'"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(data.text === undefined){const err31 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "text"},message:"must have required property '"+"text"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}for(const key2 in data){if(!((((key2 === "type") || (key2 === "box")) || (key2 === "text")) || (key2 === "color"))){const err32 = {instancePath,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data.type !== undefined){if("swap" !== data.type){const err33 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/2/properties/type/const",keyword:"const",params:{allowedValue: "swap"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data.box !== undefined){let data12 = data.box;if(typeof data12 === "string"){if(!pattern0.test(data12)){const err34 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}else {const err35 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data.text !== undefined){let data13 = data.text;if(typeof data13 === "string"){if(func3(data13) < 1){const err36 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}else {const err37 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data.color !== undefined){let data14 = data.color;if(!(((((((data14 === "blue") || (data14 === "amber")) || (data14 === "green")) || (data14 === "violet")) || (data14 === "rose")) || (data14 === "slate")) || (data14 === "coin"))){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"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}else if(tag0 === "commit"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err40 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(data.id === undefined){const err41 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data.branch === undefined){const err42 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "branch"},message:"must have required property '"+"branch"+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}for(const key3 in data){if(!(((((((key3 === "type") || (key3 === "id")) || (key3 === "branch")) || (key3 === "copy")) || (key3 === "merge")) || (key3 === "hash")) || (key3 === "note"))){const err43 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data.type !== undefined){if("commit" !== data.type){const err44 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/3/properties/type/const",keyword:"const",params:{allowedValue: "commit"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data.id !== undefined){let data16 = data.id;if(typeof data16 === "string"){if(!pattern0.test(data16)){const err45 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}else {const err46 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}if(data.branch !== undefined){let data17 = data.branch;if(typeof data17 === "string"){if(!pattern0.test(data17)){const err47 = {instancePath:instancePath+"/branch",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}else {const err48 = {instancePath:instancePath+"/branch",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data.copy !== undefined){let data18 = data.copy;if(typeof data18 === "string"){if(!pattern0.test(data18)){const err49 = {instancePath:instancePath+"/copy",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}else {const err50 = {instancePath:instancePath+"/copy",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data.merge !== undefined){let data19 = data.merge;if(typeof data19 === "string"){if(!pattern0.test(data19)){const err51 = {instancePath:instancePath+"/merge",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}else {const err52 = {instancePath:instancePath+"/merge",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}if(data.hash !== undefined){let data20 = data.hash;if(typeof data20 === "string"){if(!pattern14.test(data20)){const err53 = {instancePath:instancePath+"/hash",schemaPath:"#/definitions/hash/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{4,40}$"},message:"must match pattern \""+"^[0-9a-f]{4,40}$"+"\""};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}else {const err54 = {instancePath:instancePath+"/hash",schemaPath:"#/definitions/hash/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data.note !== undefined){let data21 = data.note;if(typeof data21 === "string"){if(func3(data21) < 1){const err55 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}else {const err56 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}else {const err57 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}else if(tag0 === "branch"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err58 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(data.branch === undefined){const err59 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "branch"},message:"must have required property '"+"branch"+"'"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if(data.from === undefined){const err60 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}for(const key4 in data){if(!(((key4 === "type") || (key4 === "branch")) || (key4 === "from"))){const err61 = {instancePath,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(data.type !== undefined){if("branch" !== data.type){const err62 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/4/properties/type/const",keyword:"const",params:{allowedValue: "branch"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}if(data.branch !== undefined){let data23 = data.branch;if(typeof data23 === "string"){if(!pattern0.test(data23)){const err63 = {instancePath:instancePath+"/branch",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}else {const err64 = {instancePath:instancePath+"/branch",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data.from !== undefined){let data24 = data.from;if(typeof data24 === "string"){if(!pattern0.test(data24)){const err65 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}else {const err66 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}else {const err67 = {instancePath,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}else if(tag0 === "now"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err68 = {instancePath,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(data.to === undefined){const err69 = {instancePath,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}for(const key5 in data){if(!((key5 === "type") || (key5 === "to"))){const err70 = {instancePath,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data.type !== undefined){if("now" !== data.type){const err71 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/5/properties/type/const",keyword:"const",params:{allowedValue: "now"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}if(data.to !== undefined){let data26 = data.to;if(!(((typeof data26 == "number") && (!(data26 % 1) && !isNaN(data26))) && (isFinite(data26)))){const err72 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if((typeof data26 == "number") && (isFinite(data26))){if(data26 < 0 || isNaN(data26)){const err73 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}}}else {const err74 = {instancePath,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}else if(tag0 === "mark"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err75 = {instancePath,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(data.row === undefined){const err76 = {instancePath,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty: "row"},message:"must have required property '"+"row"+"'"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(data.from === undefined){const err77 = {instancePath,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}if(data.to === undefined){const err78 = {instancePath,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if(data.color === undefined){const err79 = {instancePath,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty: "color"},message:"must have required property '"+"color"+"'"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}for(const key6 in data){if(!(((((key6 === "type") || (key6 === "row")) || (key6 === "from")) || (key6 === "to")) || (key6 === "color"))){const err80 = {instancePath,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}if(data.type !== undefined){if("mark" !== data.type){const err81 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/6/properties/type/const",keyword:"const",params:{allowedValue: "mark"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data.row !== undefined){let data28 = data.row;if(typeof data28 === "string"){if(!pattern0.test(data28)){const err82 = {instancePath:instancePath+"/row",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}else {const err83 = {instancePath:instancePath+"/row",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(data.from !== undefined){let data29 = data.from;if(!(((typeof data29 == "number") && (!(data29 % 1) && !isNaN(data29))) && (isFinite(data29)))){const err84 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if((typeof data29 == "number") && (isFinite(data29))){if(data29 < 0 || isNaN(data29)){const err85 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}if(data.to !== undefined){let data30 = data.to;if(!(((typeof data30 == "number") && (!(data30 % 1) && !isNaN(data30))) && (isFinite(data30)))){const err86 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if((typeof data30 == "number") && (isFinite(data30))){if(data30 < 0 || isNaN(data30)){const err87 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}}if(data.color !== undefined){let data31 = data.color;if(!(((((((data31 === "blue") || (data31 === "amber")) || (data31 === "green")) || (data31 === "violet")) || (data31 === "rose")) || (data31 === "slate")) || (data31 === "coin"))){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"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}}else {const err89 = {instancePath,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}else if(tag0 === "span"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err90 = {instancePath,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if(data.from === undefined){const err91 = {instancePath,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(data.to === undefined){const err92 = {instancePath,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(data.text === undefined){const err93 = {instancePath,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty: "text"},message:"must have required property '"+"text"+"'"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}for(const key7 in data){if(!((((((key7 === "type") || (key7 === "from")) || (key7 === "to")) || (key7 === "text")) || (key7 === "shape")) || (key7 === "color"))){const err94 = {instancePath,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}if(data.type !== undefined){if("span" !== data.type){const err95 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/7/properties/type/const",keyword:"const",params:{allowedValue: "span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(data.from !== undefined){let data33 = data.from;if(!(((typeof data33 == "number") && (!(data33 % 1) && !isNaN(data33))) && (isFinite(data33)))){const err96 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if((typeof data33 == "number") && (isFinite(data33))){if(data33 < 0 || isNaN(data33)){const err97 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}if(data.to !== undefined){let data34 = data.to;if(!(((typeof data34 == "number") && (!(data34 % 1) && !isNaN(data34))) && (isFinite(data34)))){const err98 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if((typeof data34 == "number") && (isFinite(data34))){if(data34 < 0 || isNaN(data34)){const err99 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}if(data.text !== undefined){let data35 = data.text;if(typeof data35 === "string"){if(func3(data35) < 1){const err100 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}else {const err101 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}if(data.shape !== undefined){if(!(data.shape === "box")){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"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}if(data.color !== undefined){let data37 = data.color;if(!(((((((data37 === "blue") || (data37 === "amber")) || (data37 === "green")) || (data37 === "violet")) || (data37 === "rose")) || (data37 === "slate")) || (data37 === "coin"))){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"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}else {const err104 = {instancePath,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}else if(tag0 === "leaf"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err105 = {instancePath,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(data.id === undefined){const err106 = {instancePath,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}for(const key8 in data){if(!(((key8 === "type") || (key8 === "id")) || (key8 === "hash"))){const err107 = {instancePath,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}if(data.type !== undefined){if("leaf" !== data.type){const err108 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/8/properties/type/const",keyword:"const",params:{allowedValue: "leaf"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}if(data.id !== undefined){let data39 = data.id;if(typeof data39 === "string"){if(!pattern0.test(data39)){const err109 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}else {const err110 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}if(data.hash !== undefined){let data40 = data.hash;if(typeof data40 === "string"){if(!pattern14.test(data40)){const err111 = {instancePath:instancePath+"/hash",schemaPath:"#/definitions/hash/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{4,40}$"},message:"must match pattern \""+"^[0-9a-f]{4,40}$"+"\""};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}else {const err112 = {instancePath:instancePath+"/hash",schemaPath:"#/definitions/hash/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}else {const err113 = {instancePath,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}else if(tag0 === "node"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err114 = {instancePath,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if(data.id === undefined){const err115 = {instancePath,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}if(data.children === undefined){const err116 = {instancePath,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty: "children"},message:"must have required property '"+"children"+"'"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}for(const key9 in data){if(!((((key9 === "type") || (key9 === "id")) || (key9 === "children")) || (key9 === "hash"))){const err117 = {instancePath,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}if(data.type !== undefined){if("node" !== data.type){const err118 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/9/properties/type/const",keyword:"const",params:{allowedValue: "node"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}if(data.id !== undefined){let data42 = data.id;if(typeof data42 === "string"){if(!pattern0.test(data42)){const err119 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}else {const err120 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(data.children !== undefined){let data43 = data.children;if(Array.isArray(data43)){if(data43.length < 1){const err121 = {instancePath:instancePath+"/children",schemaPath:"#/oneOf/9/properties/children/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}const len0 = data43.length;for(let i0=0; i0<len0; i0++){let data44 = data43[i0];if(typeof data44 === "string"){if(!pattern0.test(data44)){const err122 = {instancePath:instancePath+"/children/" + i0,schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}else {const err123 = {instancePath:instancePath+"/children/" + i0,schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}}else {const err124 = {instancePath:instancePath+"/children",schemaPath:"#/oneOf/9/properties/children/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}if(data.hash !== undefined){let data45 = data.hash;if(typeof data45 === "string"){if(!pattern14.test(data45)){const err125 = {instancePath:instancePath+"/hash",schemaPath:"#/definitions/hash/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{4,40}$"},message:"must match pattern \""+"^[0-9a-f]{4,40}$"+"\""};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}else {const err126 = {instancePath:instancePath+"/hash",schemaPath:"#/definitions/hash/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}}else {const err127 = {instancePath,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}else if(tag0 === "line"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err128 = {instancePath,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(data.box === undefined){const err129 = {instancePath,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty: "box"},message:"must have required property '"+"box"+"'"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}if(data.items === undefined){const err130 = {instancePath,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}for(const key10 in data){if(!(((key10 === "type") || (key10 === "box")) || (key10 === "items"))){const err131 = {instancePath,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}if(data.type !== undefined){if("line" !== data.type){const err132 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/10/properties/type/const",keyword:"const",params:{allowedValue: "line"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}if(data.box !== undefined){let data47 = data.box;if(typeof data47 === "string"){if(!pattern0.test(data47)){const err133 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}else {const err134 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}if(data.items !== undefined){let data48 = data.items;if(Array.isArray(data48)){if(data48.length > 12){const err135 = {instancePath:instancePath+"/items",schemaPath:"#/oneOf/10/properties/items/maxItems",keyword:"maxItems",params:{limit: 12},message:"must NOT have more than 12 items"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if(data48.length < 1){const err136 = {instancePath:instancePath+"/items",schemaPath:"#/oneOf/10/properties/items/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}const len1 = data48.length;for(let i1=0; i1<len1; i1++){let data49 = data48[i1];if(typeof data49 === "string"){if(!pattern0.test(data49)){const err137 = {instancePath:instancePath+"/items/" + i1,schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}else {const err138 = {instancePath:instancePath+"/items/" + i1,schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}}else {const err139 = {instancePath:instancePath+"/items",schemaPath:"#/oneOf/10/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}}else {const err140 = {instancePath,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}else if(tag0 === "seal"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err141 = {instancePath,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}if(data.box === undefined){const err142 = {instancePath,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty: "box"},message:"must have required property '"+"box"+"'"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}for(const key11 in data){if(!((key11 === "type") || (key11 === "box"))){const err143 = {instancePath,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data.type !== undefined){if("seal" !== data.type){const err144 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/11/properties/type/const",keyword:"const",params:{allowedValue: "seal"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}if(data.box !== undefined){let data51 = data.box;if(typeof data51 === "string"){if(!pattern0.test(data51)){const err145 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}else {const err146 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}else {const err147 = {instancePath,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}else if(tag0 === "open"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err148 = {instancePath,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if(data.box === undefined){const err149 = {instancePath,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty: "box"},message:"must have required property '"+"box"+"'"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}for(const key12 in data){if(!((key12 === "type") || (key12 === "box"))){const err150 = {instancePath,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}if(data.type !== undefined){if("open" !== data.type){const err151 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/12/properties/type/const",keyword:"const",params:{allowedValue: "open"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}if(data.box !== undefined){let data53 = data.box;if(typeof data53 === "string"){if(!pattern0.test(data53)){const err152 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}else {const err153 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}else {const err154 = {instancePath,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}else if(tag0 === "pick"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err155 = {instancePath,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}if(data.box === undefined){const err156 = {instancePath,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty: "box"},message:"must have required property '"+"box"+"'"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}for(const key13 in data){if(!((key13 === "type") || (key13 === "box"))){const err157 = {instancePath,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}if(data.type !== undefined){if("pick" !== data.type){const err158 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/13/properties/type/const",keyword:"const",params:{allowedValue: "pick"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}if(data.box !== undefined){let data55 = data.box;if(typeof data55 === "string"){if(!pattern0.test(data55)){const err159 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}else {const err160 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}}else {const err161 = {instancePath,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}else if(tag0 === "stamp"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err162 = {instancePath,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}if(data.box === undefined){const err163 = {instancePath,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty: "box"},message:"must have required property '"+"box"+"'"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if(data.text === undefined){const err164 = {instancePath,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty: "text"},message:"must have required property '"+"text"+"'"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}for(const key14 in data){if(!(((key14 === "type") || (key14 === "box")) || (key14 === "text"))){const err165 = {instancePath,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}if(data.type !== undefined){if("stamp" !== data.type){const err166 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/14/properties/type/const",keyword:"const",params:{allowedValue: "stamp"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}if(data.box !== undefined){let data57 = data.box;if(typeof data57 === "string"){if(!pattern0.test(data57)){const err167 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}else {const err168 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}if(data.text !== undefined){let data58 = data.text;if(typeof data58 === "string"){if(func3(data58) < 1){const err169 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}else {const err170 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}}else {const err171 = {instancePath,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}else if(tag0 === "strip"){const _errs185 = errors;let valid75 = false;const _errs186 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.value === undefined){const err172 = {instancePath,schemaPath:"#/oneOf/15/anyOf/0/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}var _valid0 = _errs186 === errors;valid75 = valid75 || _valid0;if(!valid75){const _errs187 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag === undefined){const err173 = {instancePath,schemaPath:"#/oneOf/15/anyOf/1/required",keyword:"required",params:{missingProperty: "tag"},message:"must have required property '"+"tag"+"'"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}var _valid0 = _errs187 === errors;valid75 = valid75 || _valid0;}if(!valid75){const err174 = {instancePath,schemaPath:"#/oneOf/15/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}else {errors = _errs185;if(vErrors !== null){if(_errs185){vErrors.length = _errs185;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err175 = {instancePath,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}if(data.field === undefined){const err176 = {instancePath,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty: "field"},message:"must have required property '"+"field"+"'"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}for(const key15 in data){if(!((((key15 === "type") || (key15 === "field")) || (key15 === "value")) || (key15 === "tag"))){const err177 = {instancePath,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}if(data.type !== undefined){if("strip" !== data.type){const err178 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/15/properties/type/const",keyword:"const",params:{allowedValue: "strip"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data.field !== undefined){let data60 = data.field;if(typeof data60 === "string"){if(func3(data60) < 1){const err179 = {instancePath:instancePath+"/field",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}else {const err180 = {instancePath:instancePath+"/field",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}if(data.value !== undefined){let data61 = data.value;if(typeof data61 === "string"){if(func3(data61) < 1){const err181 = {instancePath:instancePath+"/value",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}else {const err182 = {instancePath:instancePath+"/value",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}if(data.tag !== undefined){let data62 = data.tag;if(typeof data62 === "string"){if(func3(data62) < 1){const err183 = {instancePath:instancePath+"/tag",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}else {const err184 = {instancePath:instancePath+"/tag",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}}else {const err185 = {instancePath,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}else {const err186 = {instancePath,schemaPath:"#/discriminator",keyword:"discriminator",params:{error: "mapping", tag: "type", tagValue: tag0},message:"value of tag \"type\" must be in oneOf"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}else {const err187 = {instancePath,schemaPath:"#/discriminator",keyword:"discriminator",params:{error: "tag", tag: "type", tagValue: tag0},message:"tag \"type\" must be string"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}else {const err188 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}validate41.errors = vErrors;return errors === 0;}function validate38(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.title === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.body === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "body"},message:"must have required property '"+"body"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.events === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "events"},message:"must have required property '"+"events"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key0 in data){if(!(((((key0 === "title") || (key0 === "body")) || (key0 === "code")) || (key0 === "sources")) || (key0 === "events"))){const err3 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.title !== undefined){let data0 = data.title;if(typeof data0 === "string"){if(func3(data0) < 1){const err4 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.body !== undefined){let data1 = data.body;if(typeof data1 === "string"){if(func3(data1) < 1){const err6 = {instancePath:instancePath+"/body",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/body",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.code !== undefined){let data2 = data.code;if(typeof data2 === "string"){if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/code",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/code",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.sources !== undefined){let data3 = data.sources;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/sources",schemaPath:"#/properties/sources/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len0 = data3.length;for(let i0=0; i0<len0; i0++){if(!(validate39(data3[i0], {instancePath:instancePath+"/sources/" + i0,parentData:data3,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate39.errors : vErrors.concat(validate39.errors);errors = vErrors.length;}}}else {const err11 = {instancePath:instancePath+"/sources",schemaPath:"#/properties/sources/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.events !== undefined){let data5 = data.events;if(Array.isArray(data5)){const len1 = data5.length;for(let i1=0; i1<len1; i1++){if(!(validate41(data5[i1], {instancePath:instancePath+"/events/" + i1,parentData:data5,parentDataProperty:i1,rootData}))){vErrors = vErrors === null ? validate41.errors : vErrors.concat(validate41.errors);errors = vErrors.length;}}}else {const err12 = {instancePath:instancePath+"/events",schemaPath:"#/properties/events/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}validate38.errors = vErrors;return errors === 0;}const schema147 = {"description":"時系列図の種類の欄。生存線を左から並べる順","type":"object","additionalProperties":false,"required":["lifelines"],"properties":{"lifelines":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/id"}}}};function validate46(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.lifelines === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "lifelines"},message:"must have required property '"+"lifelines"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(key0 === "lifelines")){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.lifelines !== undefined){let data0 = data.lifelines;if(Array.isArray(data0)){if(data0.length < 1){const err2 = {instancePath:instancePath+"/lifelines",schemaPath:"#/properties/lifelines/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}const len0 = data0.length;for(let i0=0; i0<len0; i0++){let data1 = data0[i0];if(typeof data1 === "string"){if(!pattern0.test(data1)){const err3 = {instancePath:instancePath+"/lifelines/" + i0,schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/lifelines/" + i0,schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath:instancePath+"/lifelines",schemaPath:"#/properties/lifelines/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}else {const err6 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}validate46.errors = vErrors;return errors === 0;}const schema149 = {"description":"状態遷移図の種類の欄。最初の段より前に書いた、移れるが段で通るとは限らない線","type":"object","additionalProperties":false,"required":["paths"],"properties":{"paths":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/path"}}}};const schema150 = {"description":"移れる道。送る側に始まりの印 start、受ける側に終わりの印 finish を書ける。どの段にも出ない道は点線で描き、運ぶ物を走らせない","type":"object","additionalProperties":false,"required":["from","to"],"properties":{"from":{"$ref":"#/definitions/id"},"to":{"$ref":"#/definitions/id"},"label":{"$ref":"#/definitions/text"}}};function validate49(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.from === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.to === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((key0 === "from") || (key0 === "to")) || (key0 === "label"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.from !== undefined){let data0 = data.from;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err3 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.to !== undefined){let data1 = data.to;if(typeof data1 === "string"){if(!pattern0.test(data1)){const err5 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.label !== undefined){let data2 = data.label;if(typeof data2 === "string"){if(func3(data2) < 1){const err7 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}}else {const err9 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}validate49.errors = vErrors;return errors === 0;}function validate48(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.paths === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "paths"},message:"must have required property '"+"paths"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(key0 === "paths")){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.paths !== undefined){let data0 = data.paths;if(Array.isArray(data0)){if(data0.length < 1){const err2 = {instancePath:instancePath+"/paths",schemaPath:"#/properties/paths/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}const len0 = data0.length;for(let i0=0; i0<len0; i0++){if(!(validate49(data0[i0], {instancePath:instancePath+"/paths/" + i0,parentData:data0,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);errors = vErrors.length;}}}else {const err3 = {instancePath:instancePath+"/paths",schemaPath:"#/properties/paths/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}else {const err4 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}validate48.errors = vErrors;return errors === 0;}const schema154 = {"description":"枝分かれの図の種類の欄。枝を上から帯に並べる順","type":"object","additionalProperties":false,"required":["branches"],"properties":{"branches":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/branch"}}}};const schema155 = {"description":"枝。帯の左に名札と添え書きを置く","type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"$ref":"#/definitions/id"},"note":{"$ref":"#/definitions/text"}}};function validate53(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((key0 === "id") || (key0 === "note"))){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err2 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}else {const err3 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.note !== undefined){let data1 = data.note;if(typeof data1 === "string"){if(func3(data1) < 1){const err4 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}else {const err6 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}validate53.errors = vErrors;return errors === 0;}function validate52(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.branches === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "branches"},message:"must have required property '"+"branches"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(key0 === "branches")){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.branches !== undefined){let data0 = data.branches;if(Array.isArray(data0)){if(data0.length < 1){const err2 = {instancePath:instancePath+"/branches",schemaPath:"#/properties/branches/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}const len0 = data0.length;for(let i0=0; i0<len0; i0++){if(!(validate53(data0[i0], {instancePath:instancePath+"/branches/" + i0,parentData:data0,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);errors = vErrors.length;}}}else {const err3 = {instancePath:instancePath+"/branches",schemaPath:"#/properties/branches/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}else {const err4 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}validate52.errors = vErrors;return errors === 0;}const schema158 = {"description":"時間軸の図の種類の欄。目盛り、区切り、印の列、節目、拡大の範囲","type":"object","additionalProperties":false,"required":["scale","rows"],"properties":{"scale":{"$ref":"#/definitions/scale"},"period":{"$ref":"#/definitions/period"},"rows":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/row"}},"points":{"type":"array","items":{"$ref":"#/definitions/point"}},"zoom":{"$ref":"#/definitions/zoom"}}};const schema159 = {"description":"目盛り。unit の名前の目盛りを length の長さで count 個並べ、最初の目盛りの番号を from にする","type":"object","additionalProperties":false,"required":["unit","length","count"],"properties":{"unit":{"$ref":"#/definitions/text"},"length":{"$ref":"#/definitions/duration"},"count":{"type":"integer","minimum":1},"from":{"type":"integer","minimum":0}}};const schema161 = {"description":"長さ。数と単位 (ms、s、min、h、d) の組","type":"string","pattern":"^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$"};const pattern33 = new RegExp("^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$", "u");function validate57(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.unit === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "unit"},message:"must have required property '"+"unit"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.length === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "length"},message:"must have required property '"+"length"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.count === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "count"},message:"must have required property '"+"count"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key0 in data){if(!((((key0 === "unit") || (key0 === "length")) || (key0 === "count")) || (key0 === "from"))){const err3 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.unit !== undefined){let data0 = data.unit;if(typeof data0 === "string"){if(func3(data0) < 1){const err4 = {instancePath:instancePath+"/unit",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/unit",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.length !== undefined){let data1 = data.length;if(typeof data1 === "string"){if(!pattern33.test(data1)){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)$"+"\""};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/length",schemaPath:"#/definitions/duration/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.count !== undefined){let data2 = data.count;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err8 = {instancePath:instancePath+"/count",schemaPath:"#/properties/count/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 1 || isNaN(data2)){const err9 = {instancePath:instancePath+"/count",schemaPath:"#/properties/count/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}if(data.from !== undefined){let data3 = data.from;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err10 = {instancePath:instancePath+"/from",schemaPath:"#/properties/from/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 0 || isNaN(data3)){const err11 = {instancePath:instancePath+"/from",schemaPath:"#/properties/from/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}}else {const err12 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}validate57.errors = vErrors;return errors === 0;}const schema162 = {"description":"区切り。目盛り length 個ごとに name の区切りを置き、最初の区切りの番号を from にする","type":"object","additionalProperties":false,"required":["name","length"],"properties":{"name":{"$ref":"#/definitions/text"},"length":{"type":"integer","minimum":1},"from":{"type":"integer","minimum":0}}};function validate59(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.length === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "length"},message:"must have required property '"+"length"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((key0 === "name") || (key0 === "length")) || (key0 === "from"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.name !== undefined){let data0 = data.name;if(typeof data0 === "string"){if(func3(data0) < 1){const err3 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.length !== undefined){let data1 = data.length;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err5 = {instancePath:instancePath+"/length",schemaPath:"#/properties/length/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 1 || isNaN(data1)){const err6 = {instancePath:instancePath+"/length",schemaPath:"#/properties/length/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}if(data.from !== undefined){let data2 = data.from;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err7 = {instancePath:instancePath+"/from",schemaPath:"#/properties/from/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 0 || isNaN(data2)){const err8 = {instancePath:instancePath+"/from",schemaPath:"#/properties/from/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}}}else {const err9 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}validate59.errors = vErrors;return errors === 0;}const schema164 = {"description":"印の列。目盛りごとに印を 1 つ置き、empty の目盛りは空きの印にする","type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"empty":{"type":"array","items":{"$ref":"#/definitions/unit"}}}};function validate61(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.name === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((((key0 === "id") || (key0 === "name")) || (key0 === "color")) || (key0 === "empty"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err3 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.name !== undefined){let data1 = data.name;if(typeof data1 === "string"){if(func3(data1) < 1){const err5 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.color !== undefined){let data2 = data.color;if(!(((((((data2 === "blue") || (data2 === "amber")) || (data2 === "green")) || (data2 === "violet")) || (data2 === "rose")) || (data2 === "slate")) || (data2 === "coin"))){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"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.empty !== undefined){let data3 = data.empty;if(Array.isArray(data3)){const len0 = data3.length;for(let i0=0; i0<len0; i0++){let data4 = data3[i0];if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){const err8 = {instancePath:instancePath+"/empty/" + i0,schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if((typeof data4 == "number") && (isFinite(data4))){if(data4 < 0 || isNaN(data4)){const err9 = {instancePath:instancePath+"/empty/" + i0,schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}else {const err10 = {instancePath:instancePath+"/empty",schemaPath:"#/properties/empty/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}validate61.errors = vErrors;return errors === 0;}const schema169 = {"description":"節目。at の目盛りの印の下に旗の丸と名札を置く","type":"object","additionalProperties":false,"required":["id","at"],"properties":{"id":{"$ref":"#/definitions/id"},"at":{"$ref":"#/definitions/unit"}}};function validate63(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.at === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "at"},message:"must have required property '"+"at"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "id") || (key0 === "at"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err3 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.at !== undefined){let data1 = data.at;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err5 = {instancePath:instancePath+"/at",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 0 || isNaN(data1)){const err6 = {instancePath:instancePath+"/at",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}}else {const err7 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}validate63.errors = vErrors;return errors === 0;}const schema172 = {"description":"拡大の範囲。from から to の目盛りごとに拡大の帯に列を作る","type":"object","additionalProperties":false,"required":["from","to"],"properties":{"from":{"$ref":"#/definitions/unit"},"to":{"$ref":"#/definitions/unit"}}};function validate65(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.from === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.to === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "from") || (key0 === "to"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.from !== undefined){let data0 = data.from;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err3 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if((typeof data0 == "number") && (isFinite(data0))){if(data0 < 0 || isNaN(data0)){const err4 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}if(data.to !== undefined){let data1 = data.to;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err5 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 0 || isNaN(data1)){const err6 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}}else {const err7 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}validate65.errors = vErrors;return errors === 0;}function validate56(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.scale === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "scale"},message:"must have required property '"+"scale"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.rows === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "rows"},message:"must have required property '"+"rows"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((((key0 === "scale") || (key0 === "period")) || (key0 === "rows")) || (key0 === "points")) || (key0 === "zoom"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.scale !== undefined){if(!(validate57(data.scale, {instancePath:instancePath+"/scale",parentData:data,parentDataProperty:"scale",rootData}))){vErrors = vErrors === null ? validate57.errors : vErrors.concat(validate57.errors);errors = vErrors.length;}}if(data.period !== undefined){if(!(validate59(data.period, {instancePath:instancePath+"/period",parentData:data,parentDataProperty:"period",rootData}))){vErrors = vErrors === null ? validate59.errors : vErrors.concat(validate59.errors);errors = vErrors.length;}}if(data.rows !== undefined){let data2 = data.rows;if(Array.isArray(data2)){if(data2.length < 1){const err3 = {instancePath:instancePath+"/rows",schemaPath:"#/properties/rows/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}const len0 = data2.length;for(let i0=0; i0<len0; i0++){if(!(validate61(data2[i0], {instancePath:instancePath+"/rows/" + i0,parentData:data2,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate61.errors : vErrors.concat(validate61.errors);errors = vErrors.length;}}}else {const err4 = {instancePath:instancePath+"/rows",schemaPath:"#/properties/rows/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.points !== undefined){let data4 = data.points;if(Array.isArray(data4)){const len1 = data4.length;for(let i1=0; i1<len1; i1++){if(!(validate63(data4[i1], {instancePath:instancePath+"/points/" + i1,parentData:data4,parentDataProperty:i1,rootData}))){vErrors = vErrors === null ? validate63.errors : vErrors.concat(validate63.errors);errors = vErrors.length;}}}else {const err5 = {instancePath:instancePath+"/points",schemaPath:"#/properties/points/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.zoom !== undefined){if(!(validate65(data.zoom, {instancePath:instancePath+"/zoom",parentData:data,parentDataProperty:"zoom",rootData}))){vErrors = vErrors === null ? validate65.errors : vErrors.concat(validate65.errors);errors = vErrors.length;}}}else {const err6 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}validate56.errors = vErrors;return errors === 0;}const schema175 = {"description":"列の図の種類の欄。列に並べるチップ","type":"object","additionalProperties":false,"required":["items"],"properties":{"items":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/item"}}}};const schema176 = {"description":"チップ。color を書かないチップは薄い色で、label を書かないチップは色だけで出す","type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"$ref":"#/definitions/id"},"color":{"$ref":"#/definitions/color"},"label":{"description":"チップに載せる字","type":"string","minLength":1,"maxLength":4}}};function validate69(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(((key0 === "id") || (key0 === "color")) || (key0 === "label"))){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err2 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}else {const err3 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.color !== undefined){let data1 = data.color;if(!(((((((data1 === "blue") || (data1 === "amber")) || (data1 === "green")) || (data1 === "violet")) || (data1 === "rose")) || (data1 === "slate")) || (data1 === "coin"))){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"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.label !== undefined){let data2 = data.label;if(typeof data2 === "string"){if(func3(data2) > 4){const err5 = {instancePath:instancePath+"/label",schemaPath:"#/properties/label/maxLength",keyword:"maxLength",params:{limit: 4},message:"must NOT have more than 4 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(func3(data2) < 1){const err6 = {instancePath:instancePath+"/label",schemaPath:"#/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}validate69.errors = vErrors;return errors === 0;}function validate68(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.items === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(key0 === "items")){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.items !== undefined){let data0 = data.items;if(Array.isArray(data0)){if(data0.length < 1){const err2 = {instancePath:instancePath+"/items",schemaPath:"#/properties/items/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}const len0 = data0.length;for(let i0=0; i0<len0; i0++){if(!(validate69(data0[i0], {instancePath:instancePath+"/items/" + i0,parentData:data0,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate69.errors : vErrors.concat(validate69.errors);errors = vErrors.length;}}}else {const err3 = {instancePath:instancePath+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}else {const err4 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}validate68.errors = vErrors;return errors === 0;}const func2 = Object.prototype.hasOwnProperty;function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs1 = errors;let valid0 = true;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.kind === undefined) && (missing0 = "kind")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.kind !== undefined){if("sequence" !== data.kind){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs2 === errors;errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs4 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.sequence === undefined){const err2 = {instancePath,schemaPath:"#/then/required",keyword:"required",params:{missingProperty: "sequence"},message:"must have required property '"+"sequence"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.boxes !== undefined){let data1 = data.boxes;if(Array.isArray(data1)){if(data1.length < 1){const err3 = {instancePath:instancePath+"/boxes",schemaPath:"#/then/properties/boxes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}if(data.steps !== undefined){if(!(validate11(data.steps, {instancePath:instancePath+"/steps",parentData:data,parentDataProperty:"steps",rootData}))){vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);errors = vErrors.length;}}if(data.strip !== undefined){if(!(validate13(data.strip, {instancePath:instancePath+"/strip",parentData:data,parentDataProperty:"strip",rootData}))){vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);errors = vErrors.length;}}if(data.state !== undefined){const err4 = {instancePath:instancePath+"/state",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.git !== undefined){const err5 = {instancePath:instancePath+"/git",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data.time !== undefined){const err6 = {instancePath:instancePath+"/time",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.lineup !== undefined){const err7 = {instancePath:instancePath+"/lineup",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}var _valid0 = _errs4 === errors;valid0 = _valid0;ifClause0 = "then";}else {const _errs20 = errors;const _errs21 = errors;let valid7 = true;const _errs22 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.kind === undefined) && (missing1 = "kind")){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data.kind !== undefined){if("state" !== data.kind){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}var _valid1 = _errs22 === errors;errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}let ifClause1;if(_valid1){const _errs24 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.boxes !== undefined){let data9 = data.boxes;if(Array.isArray(data9)){if(data9.length < 1){const err10 = {instancePath:instancePath+"/boxes",schemaPath:"#/else/then/properties/boxes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len0 = data9.length;for(let i0=0; i0<len0; i0++){let data10 = data9[i0];if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.id !== undefined){let data11 = data10.id;const _errs28 = errors;const _errs29 = errors;if(!((data11 === "start") || (data11 === "finish"))){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid13 = _errs29 === errors;if(valid13){const err12 = {instancePath:instancePath+"/boxes/" + i0+"/id",schemaPath:"#/else/then/properties/boxes/items/properties/id/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}else {errors = _errs28;if(vErrors !== null){if(_errs28){vErrors.length = _errs28;}else {vErrors = null;}}}}}}}}if(data.steps !== undefined){if(!(validate11(data.steps, {instancePath:instancePath+"/steps",parentData:data,parentDataProperty:"steps",rootData}))){vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);errors = vErrors.length;}}if(data.strip !== undefined){if(!(validate13(data.strip, {instancePath:instancePath+"/strip",parentData:data,parentDataProperty:"strip",rootData}))){vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);errors = vErrors.length;}}if(data.git !== undefined){const err13 = {instancePath:instancePath+"/git",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data.time !== undefined){const err14 = {instancePath:instancePath+"/time",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data.lineup !== undefined){const err15 = {instancePath:instancePath+"/lineup",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid1 = _errs24 === errors;valid7 = _valid1;ifClause1 = "then";}else {const _errs41 = errors;const _errs42 = errors;let valid17 = true;const _errs43 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((data.kind === undefined) && (missing2 = "kind")){const err16 = {};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.kind !== undefined){if("git" !== data.kind){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}}var _valid2 = _errs43 === errors;errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}let ifClause2;if(_valid2){const _errs45 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.git === undefined){const err18 = {instancePath,schemaPath:"#/else/else/then/required",keyword:"required",params:{missingProperty: "git"},message:"must have required property '"+"git"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data.steps !== undefined){if(!(validate17(data.steps, {instancePath:instancePath+"/steps",parentData:data,parentDataProperty:"steps",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}if(data.strip !== undefined){if(!(validate13(data.strip, {instancePath:instancePath+"/strip",parentData:data,parentDataProperty:"strip",rootData}))){vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);errors = vErrors.length;}}if(data.state !== undefined){const err19 = {instancePath:instancePath+"/state",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data.regions !== undefined){const err20 = {instancePath:instancePath+"/regions",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data.time !== undefined){const err21 = {instancePath:instancePath+"/time",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(data.lineup !== undefined){const err22 = {instancePath:instancePath+"/lineup",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}var _valid2 = _errs45 === errors;valid17 = _valid2;ifClause2 = "then";}else {const _errs60 = errors;const _errs61 = errors;let valid24 = true;const _errs62 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((data.kind === undefined) && (missing3 = "kind")){const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}else {if(data.kind !== undefined){if("time" !== data.kind){const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}}var _valid3 = _errs62 === errors;errors = _errs61;if(vErrors !== null){if(_errs61){vErrors.length = _errs61;}else {vErrors = null;}}let ifClause3;if(_valid3){const _errs64 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.time === undefined){const err25 = {instancePath,schemaPath:"#/else/else/else/then/required",keyword:"required",params:{missingProperty: "time"},message:"must have required property '"+"time"+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(data.steps !== undefined){if(!(validate20(data.steps, {instancePath:instancePath+"/steps",parentData:data,parentDataProperty:"steps",rootData}))){vErrors = vErrors === null ? validate20.errors : vErrors.concat(validate20.errors);errors = vErrors.length;}}if(data.state !== undefined){const err26 = {instancePath:instancePath+"/state",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data.git !== undefined){const err27 = {instancePath:instancePath+"/git",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data.regions !== undefined){const err28 = {instancePath:instancePath+"/regions",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if(data.lineup !== undefined){const err29 = {instancePath:instancePath+"/lineup",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}var _valid3 = _errs64 === errors;valid24 = _valid3;ifClause3 = "then";}else {const _errs78 = errors;const _errs79 = errors;let valid31 = true;const _errs80 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((data.kind === undefined) && (missing4 = "kind")){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}else {if(data.kind !== undefined){if("tree" !== data.kind){const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}}var _valid4 = _errs80 === errors;errors = _errs79;if(vErrors !== null){if(_errs79){vErrors.length = _errs79;}else {vErrors = null;}}let ifClause4;if(_valid4){const _errs82 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.steps !== undefined){if(!(validate22(data.steps, {instancePath:instancePath+"/steps",parentData:data,parentDataProperty:"steps",rootData}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}}if(data.strip !== undefined){if(!(validate13(data.strip, {instancePath:instancePath+"/strip",parentData:data,parentDataProperty:"strip",rootData}))){vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);errors = vErrors.length;}}if(data.state !== undefined){const err32 = {instancePath:instancePath+"/state",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(data.git !== undefined){const err33 = {instancePath:instancePath+"/git",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data.time !== undefined){const err34 = {instancePath:instancePath+"/time",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if(data.regions !== undefined){const err35 = {instancePath:instancePath+"/regions",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data.lineup !== undefined){const err36 = {instancePath:instancePath+"/lineup",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}var _valid4 = _errs82 === errors;valid31 = _valid4;ifClause4 = "then";}else {const _errs100 = errors;const _errs101 = errors;let valid39 = true;const _errs102 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if((data.kind === undefined) && (missing5 = "kind")){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {if(data.kind !== undefined){if("lineup" !== data.kind){const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}}var _valid5 = _errs102 === errors;errors = _errs101;if(vErrors !== null){if(_errs101){vErrors.length = _errs101;}else {vErrors = null;}}let ifClause5;if(_valid5){const _errs104 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.lineup === undefined){const err39 = {instancePath,schemaPath:"#/else/else/else/else/else/then/required",keyword:"required",params:{missingProperty: "lineup"},message:"must have required property '"+"lineup"+"'"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if(data.boxes !== undefined){let data39 = data.boxes;if(Array.isArray(data39)){if(data39.length < 1){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"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}const len1 = data39.length;for(let i1=0; i1<len1; i1++){let data40 = data39[i1];if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.icon !== undefined){const err41 = {instancePath:instancePath+"/boxes/" + i1+"/icon",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data40.link !== undefined){const err42 = {instancePath:instancePath+"/boxes/" + i1+"/link",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if(data40.region !== undefined){const err43 = {instancePath:instancePath+"/boxes/" + i1+"/region",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}}}if(data.steps !== undefined){if(!(validate25(data.steps, {instancePath:instancePath+"/steps",parentData:data,parentDataProperty:"steps",rootData}))){vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);errors = vErrors.length;}}if(data.strip !== undefined){if(!(validate13(data.strip, {instancePath:instancePath+"/strip",parentData:data,parentDataProperty:"strip",rootData}))){vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);errors = vErrors.length;}}if(data.state !== undefined){const err44 = {instancePath:instancePath+"/state",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(data.git !== undefined){const err45 = {instancePath:instancePath+"/git",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(data.time !== undefined){const err46 = {instancePath:instancePath+"/time",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data.regions !== undefined){const err47 = {instancePath:instancePath+"/regions",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}var _valid5 = _errs104 === errors;valid39 = _valid5;ifClause5 = "then";}else {const _errs130 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.boxes !== undefined){let data50 = data.boxes;if(Array.isArray(data50)){if(data50.length < 1){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"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}if(data.steps !== undefined){if(!(validate11(data.steps, {instancePath:instancePath+"/steps",parentData:data,parentDataProperty:"steps",rootData}))){vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);errors = vErrors.length;}}if(data.strip !== undefined){if(!(validate13(data.strip, {instancePath:instancePath+"/strip",parentData:data,parentDataProperty:"strip",rootData}))){vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);errors = vErrors.length;}}if(data.state !== undefined){const err49 = {instancePath:instancePath+"/state",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}if(data.git !== undefined){const err50 = {instancePath:instancePath+"/git",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if(data.time !== undefined){const err51 = {instancePath:instancePath+"/time",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}if(data.lineup !== undefined){const err52 = {instancePath:instancePath+"/lineup",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}var _valid5 = _errs130 === errors;valid39 = _valid5;ifClause5 = "else";}if(!valid39){const err53 = {instancePath,schemaPath:"#/else/else/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause5},message:"must match \""+ifClause5+"\" schema"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var _valid4 = _errs100 === errors;valid31 = _valid4;ifClause4 = "else";}if(!valid31){const err54 = {instancePath,schemaPath:"#/else/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause4},message:"must match \""+ifClause4+"\" schema"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}var _valid3 = _errs78 === errors;valid24 = _valid3;ifClause3 = "else";}if(!valid24){const err55 = {instancePath,schemaPath:"#/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause3},message:"must match \""+ifClause3+"\" schema"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var _valid2 = _errs60 === errors;valid17 = _valid2;ifClause2 = "else";}if(!valid17){const err56 = {instancePath,schemaPath:"#/else/else/if",keyword:"if",params:{failingKeyword: ifClause2},message:"must match \""+ifClause2+"\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var _valid1 = _errs41 === errors;valid7 = _valid1;ifClause1 = "else";}if(!valid7){const err57 = {instancePath,schemaPath:"#/else/if",keyword:"if",params:{failingKeyword: ifClause1},message:"must match \""+ifClause1+"\" schema"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.sequence !== undefined){const err58 = {instancePath:instancePath+"/sequence",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}var _valid0 = _errs20 === errors;valid0 = _valid0;ifClause0 = "else";}if(!valid0){const err59 = {instancePath,schemaPath:"#/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.version === undefined){const err60 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "version"},message:"must have required property '"+"version"+"'"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(data.kind === undefined){const err61 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(data.title === undefined){const err62 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if(data.boxes === undefined){const err63 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "boxes"},message:"must have required property '"+"boxes"+"'"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if(data.steps === undefined){const err64 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "steps"},message:"must have required property '"+"steps"+"'"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}for(const key0 in data){if(!(func2.call(schema11.properties, key0))){const err65 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data.version !== undefined){let data58 = data.version;if(!(((typeof data58 == "number") && (!(data58 % 1) && !isNaN(data58))) && (isFinite(data58)))){const err66 = {instancePath:instancePath+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}if((typeof data58 == "number") && (isFinite(data58))){if(data58 < 1 || isNaN(data58)){const err67 = {instancePath:instancePath+"/version",schemaPath:"#/properties/version/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}if(data.kind !== undefined){let data59 = data.kind;if(!(((((((data59 === "sequence") || (data59 === "architecture")) || (data59 === "state")) || (data59 === "git")) || (data59 === "time")) || (data59 === "tree")) || (data59 === "lineup"))){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"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data.title !== undefined){let data60 = data.title;if(typeof data60 === "string"){if(func3(data60) < 1){const err69 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}else {const err70 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data.view !== undefined){let data61 = data.view;if(!((data61 === "fixed") || (data61 === "follow"))){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"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}if(data.regions !== undefined){let data62 = data.regions;if(Array.isArray(data62)){const len2 = data62.length;for(let i2=0; i2<len2; i2++){if(!(validate30(data62[i2], {instancePath:instancePath+"/regions/" + i2,parentData:data62,parentDataProperty:i2,rootData}))){vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);errors = vErrors.length;}}}else {const err72 = {instancePath:instancePath+"/regions",schemaPath:"#/properties/regions/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data.boxes !== undefined){let data64 = data.boxes;if(Array.isArray(data64)){const len3 = data64.length;for(let i3=0; i3<len3; i3++){if(!(validate32(data64[i3], {instancePath:instancePath+"/boxes/" + i3,parentData:data64,parentDataProperty:i3,rootData}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}}else {const err73 = {instancePath:instancePath+"/boxes",schemaPath:"#/properties/boxes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data.strip !== undefined){if(!(validate34(data.strip, {instancePath:instancePath+"/strip",parentData:data,parentDataProperty:"strip",rootData}))){vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);errors = vErrors.length;}}if(data.steps !== undefined){let data67 = data.steps;if(Array.isArray(data67)){if(data67.length < 1){const err74 = {instancePath:instancePath+"/steps",schemaPath:"#/properties/steps/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}const len4 = data67.length;for(let i4=0; i4<len4; i4++){if(!(validate38(data67[i4], {instancePath:instancePath+"/steps/" + i4,parentData:data67,parentDataProperty:i4,rootData}))){vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);errors = vErrors.length;}}}else {const err75 = {instancePath:instancePath+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}if(data.sequence !== undefined){if(!(validate46(data.sequence, {instancePath:instancePath+"/sequence",parentData:data,parentDataProperty:"sequence",rootData}))){vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);errors = vErrors.length;}}if(data.state !== undefined){if(!(validate48(data.state, {instancePath:instancePath+"/state",parentData:data,parentDataProperty:"state",rootData}))){vErrors = vErrors === null ? validate48.errors : vErrors.concat(validate48.errors);errors = vErrors.length;}}if(data.git !== undefined){if(!(validate52(data.git, {instancePath:instancePath+"/git",parentData:data,parentDataProperty:"git",rootData}))){vErrors = vErrors === null ? validate52.errors : vErrors.concat(validate52.errors);errors = vErrors.length;}}if(data.time !== undefined){if(!(validate56(data.time, {instancePath:instancePath+"/time",parentData:data,parentDataProperty:"time",rootData}))){vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);errors = vErrors.length;}}if(data.lineup !== undefined){if(!(validate68(data.lineup, {instancePath:instancePath+"/lineup",parentData:data,parentDataProperty:"lineup",rootData}))){vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);errors = vErrors.length;}}}else {const err76 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}validate10.errors = vErrors;return errors === 0;}
|