@dicebear/core 10.7.0 → 11.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2570,6 +2570,689 @@ const validate = (function () {
2570
2570
  }
2571
2571
  return errorCount === 0;
2572
2572
  };
2573
+ const ref16 = function validate(data) {
2574
+ validate.errors = null;
2575
+ let errorCount = 0;
2576
+ let suberr170 = null;
2577
+ const sub27 = (() => {
2578
+ let errorCount = 0;
2579
+ if (!(data === "linear" || data === "ease" || data === "easeIn" || data === "easeOut" || data === "easeInOut" || data === "hold")) {
2580
+ if (suberr170 === null)
2581
+ suberr170 = [];
2582
+ suberr170.push({ keywordLocation: "#/anyOf/0/enum", instanceLocation: "#" });
2583
+ errorCount++;
2584
+ }
2585
+ return errorCount === 0;
2586
+ })();
2587
+ if (!sub27) {
2588
+ const sub28 = (() => {
2589
+ let errorCount = 0;
2590
+ if (!(typeof data === "object" && data && !Array.isArray(data))) {
2591
+ if (suberr170 === null)
2592
+ suberr170 = [];
2593
+ suberr170.push({ keywordLocation: "#/anyOf/1/type", instanceLocation: "#" });
2594
+ errorCount++;
2595
+ }
2596
+ else {
2597
+ if (!(data.x1 !== undefined && hasOwn(data, "x1"))) {
2598
+ if (suberr170 === null)
2599
+ suberr170 = [];
2600
+ suberr170.push({ keywordLocation: "#/anyOf/1/required", instanceLocation: "#/x1" });
2601
+ errorCount++;
2602
+ }
2603
+ if (!(data.y1 !== undefined && hasOwn(data, "y1"))) {
2604
+ if (suberr170 === null)
2605
+ suberr170 = [];
2606
+ suberr170.push({ keywordLocation: "#/anyOf/1/required", instanceLocation: "#/y1" });
2607
+ errorCount++;
2608
+ }
2609
+ if (!(data.x2 !== undefined && hasOwn(data, "x2"))) {
2610
+ if (suberr170 === null)
2611
+ suberr170 = [];
2612
+ suberr170.push({ keywordLocation: "#/anyOf/1/required", instanceLocation: "#/x2" });
2613
+ errorCount++;
2614
+ }
2615
+ if (!(data.y2 !== undefined && hasOwn(data, "y2"))) {
2616
+ if (suberr170 === null)
2617
+ suberr170 = [];
2618
+ suberr170.push({ keywordLocation: "#/anyOf/1/required", instanceLocation: "#/y2" });
2619
+ errorCount++;
2620
+ }
2621
+ if (data.x1 !== undefined && hasOwn(data, "x1")) {
2622
+ if (!(typeof data.x1 === "number")) {
2623
+ if (suberr170 === null)
2624
+ suberr170 = [];
2625
+ suberr170.push({ keywordLocation: "#/anyOf/1/properties/x1/type", instanceLocation: "#/x1" });
2626
+ errorCount++;
2627
+ }
2628
+ else {
2629
+ if (!(0 <= data.x1)) {
2630
+ if (suberr170 === null)
2631
+ suberr170 = [];
2632
+ suberr170.push({ keywordLocation: "#/anyOf/1/properties/x1/minimum", instanceLocation: "#/x1" });
2633
+ errorCount++;
2634
+ }
2635
+ if (!(1 >= data.x1)) {
2636
+ if (suberr170 === null)
2637
+ suberr170 = [];
2638
+ suberr170.push({ keywordLocation: "#/anyOf/1/properties/x1/maximum", instanceLocation: "#/x1" });
2639
+ errorCount++;
2640
+ }
2641
+ }
2642
+ }
2643
+ if (data.y1 !== undefined && hasOwn(data, "y1")) {
2644
+ if (!(typeof data.y1 === "number")) {
2645
+ if (suberr170 === null)
2646
+ suberr170 = [];
2647
+ suberr170.push({ keywordLocation: "#/anyOf/1/properties/y1/type", instanceLocation: "#/y1" });
2648
+ errorCount++;
2649
+ }
2650
+ else {
2651
+ if (!(-4 <= data.y1)) {
2652
+ if (suberr170 === null)
2653
+ suberr170 = [];
2654
+ suberr170.push({ keywordLocation: "#/anyOf/1/properties/y1/minimum", instanceLocation: "#/y1" });
2655
+ errorCount++;
2656
+ }
2657
+ if (!(4 >= data.y1)) {
2658
+ if (suberr170 === null)
2659
+ suberr170 = [];
2660
+ suberr170.push({ keywordLocation: "#/anyOf/1/properties/y1/maximum", instanceLocation: "#/y1" });
2661
+ errorCount++;
2662
+ }
2663
+ }
2664
+ }
2665
+ if (data.x2 !== undefined && hasOwn(data, "x2")) {
2666
+ if (!(typeof data.x2 === "number")) {
2667
+ if (suberr170 === null)
2668
+ suberr170 = [];
2669
+ suberr170.push({ keywordLocation: "#/anyOf/1/properties/x2/type", instanceLocation: "#/x2" });
2670
+ errorCount++;
2671
+ }
2672
+ else {
2673
+ if (!(0 <= data.x2)) {
2674
+ if (suberr170 === null)
2675
+ suberr170 = [];
2676
+ suberr170.push({ keywordLocation: "#/anyOf/1/properties/x2/minimum", instanceLocation: "#/x2" });
2677
+ errorCount++;
2678
+ }
2679
+ if (!(1 >= data.x2)) {
2680
+ if (suberr170 === null)
2681
+ suberr170 = [];
2682
+ suberr170.push({ keywordLocation: "#/anyOf/1/properties/x2/maximum", instanceLocation: "#/x2" });
2683
+ errorCount++;
2684
+ }
2685
+ }
2686
+ }
2687
+ if (data.y2 !== undefined && hasOwn(data, "y2")) {
2688
+ if (!(typeof data.y2 === "number")) {
2689
+ if (suberr170 === null)
2690
+ suberr170 = [];
2691
+ suberr170.push({ keywordLocation: "#/anyOf/1/properties/y2/type", instanceLocation: "#/y2" });
2692
+ errorCount++;
2693
+ }
2694
+ else {
2695
+ if (!(-4 <= data.y2)) {
2696
+ if (suberr170 === null)
2697
+ suberr170 = [];
2698
+ suberr170.push({ keywordLocation: "#/anyOf/1/properties/y2/minimum", instanceLocation: "#/y2" });
2699
+ errorCount++;
2700
+ }
2701
+ if (!(4 >= data.y2)) {
2702
+ if (suberr170 === null)
2703
+ suberr170 = [];
2704
+ suberr170.push({ keywordLocation: "#/anyOf/1/properties/y2/maximum", instanceLocation: "#/y2" });
2705
+ errorCount++;
2706
+ }
2707
+ }
2708
+ }
2709
+ for (const key10 of Object.keys(data)) {
2710
+ if (key10 !== "x1" && key10 !== "y1" && key10 !== "x2" && key10 !== "y2") {
2711
+ if (suberr170 === null)
2712
+ suberr170 = [];
2713
+ suberr170.push({ keywordLocation: "#/anyOf/1/additionalProperties", instanceLocation: "#/" + pointerPart(key10) });
2714
+ errorCount++;
2715
+ }
2716
+ }
2717
+ }
2718
+ return errorCount === 0;
2719
+ })();
2720
+ if (!sub28) {
2721
+ if (validate.errors === null)
2722
+ validate.errors = [];
2723
+ validate.errors.push({ keywordLocation: "#/anyOf", instanceLocation: "#" });
2724
+ if (suberr170)
2725
+ validate.errors.push(...suberr170);
2726
+ errorCount++;
2727
+ }
2728
+ }
2729
+ return errorCount === 0;
2730
+ };
2731
+ const ref18 = function validate(data) {
2732
+ validate.errors = null;
2733
+ let errorCount = 0;
2734
+ if (!(typeof data === "object" && data && !Array.isArray(data))) {
2735
+ if (validate.errors === null)
2736
+ validate.errors = [];
2737
+ validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
2738
+ errorCount++;
2739
+ }
2740
+ else {
2741
+ if (!(data.at !== undefined && hasOwn(data, "at"))) {
2742
+ if (validate.errors === null)
2743
+ validate.errors = [];
2744
+ validate.errors.push({ keywordLocation: "#/required", instanceLocation: "#/at" });
2745
+ errorCount++;
2746
+ }
2747
+ if (!(data.value !== undefined && hasOwn(data, "value"))) {
2748
+ if (validate.errors === null)
2749
+ validate.errors = [];
2750
+ validate.errors.push({ keywordLocation: "#/required", instanceLocation: "#/value" });
2751
+ errorCount++;
2752
+ }
2753
+ if (data.at !== undefined && hasOwn(data, "at")) {
2754
+ if (!(typeof data.at === "number")) {
2755
+ if (validate.errors === null)
2756
+ validate.errors = [];
2757
+ validate.errors.push({ keywordLocation: "#/properties/at/type", instanceLocation: "#/at" });
2758
+ errorCount++;
2759
+ }
2760
+ else {
2761
+ if (!(0 <= data.at)) {
2762
+ if (validate.errors === null)
2763
+ validate.errors = [];
2764
+ validate.errors.push({ keywordLocation: "#/properties/at/minimum", instanceLocation: "#/at" });
2765
+ errorCount++;
2766
+ }
2767
+ if (!(100 >= data.at)) {
2768
+ if (validate.errors === null)
2769
+ validate.errors = [];
2770
+ validate.errors.push({ keywordLocation: "#/properties/at/maximum", instanceLocation: "#/at" });
2771
+ errorCount++;
2772
+ }
2773
+ }
2774
+ }
2775
+ if (data.value !== undefined && hasOwn(data, "value")) {
2776
+ if (!(typeof data.value === "number")) {
2777
+ if (validate.errors === null)
2778
+ validate.errors = [];
2779
+ validate.errors.push({ keywordLocation: "#/properties/value/type", instanceLocation: "#/value" });
2780
+ errorCount++;
2781
+ }
2782
+ else {
2783
+ if (!(-36000 <= data.value)) {
2784
+ if (validate.errors === null)
2785
+ validate.errors = [];
2786
+ validate.errors.push({ keywordLocation: "#/properties/value/minimum", instanceLocation: "#/value" });
2787
+ errorCount++;
2788
+ }
2789
+ if (!(36000 >= data.value)) {
2790
+ if (validate.errors === null)
2791
+ validate.errors = [];
2792
+ validate.errors.push({ keywordLocation: "#/properties/value/maximum", instanceLocation: "#/value" });
2793
+ errorCount++;
2794
+ }
2795
+ }
2796
+ }
2797
+ if (data.easing !== undefined && hasOwn(data, "easing")) {
2798
+ const err162 = validate.errors;
2799
+ const res162 = ref16(data.easing);
2800
+ const suberr172 = ref16.errors;
2801
+ validate.errors = err162;
2802
+ if (!res162) {
2803
+ if (validate.errors === null)
2804
+ validate.errors = [];
2805
+ validate.errors.push(...suberr172.map(e => errorMerge(e, "#/properties/easing/$ref", "#/easing")));
2806
+ errorCount++;
2807
+ }
2808
+ }
2809
+ for (const key12 of Object.keys(data)) {
2810
+ if (key12 !== "at" && key12 !== "value" && key12 !== "easing") {
2811
+ if (validate.errors === null)
2812
+ validate.errors = [];
2813
+ validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key12) });
2814
+ errorCount++;
2815
+ }
2816
+ }
2817
+ }
2818
+ return errorCount === 0;
2819
+ };
2820
+ const ref17 = function validate(data) {
2821
+ validate.errors = null;
2822
+ let errorCount = 0;
2823
+ if (!(typeof data === "object" && data && !Array.isArray(data))) {
2824
+ if (validate.errors === null)
2825
+ validate.errors = [];
2826
+ validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
2827
+ errorCount++;
2828
+ }
2829
+ else {
2830
+ if (!(data.keyframes !== undefined && hasOwn(data, "keyframes"))) {
2831
+ if (validate.errors === null)
2832
+ validate.errors = [];
2833
+ validate.errors.push({ keywordLocation: "#/required", instanceLocation: "#/keyframes" });
2834
+ errorCount++;
2835
+ }
2836
+ if (data.keyframes !== undefined && hasOwn(data, "keyframes")) {
2837
+ if (!Array.isArray(data.keyframes)) {
2838
+ if (validate.errors === null)
2839
+ validate.errors = [];
2840
+ validate.errors.push({ keywordLocation: "#/properties/keyframes/type", instanceLocation: "#/keyframes" });
2841
+ errorCount++;
2842
+ }
2843
+ else {
2844
+ if (data.keyframes.length > 64) {
2845
+ if (validate.errors === null)
2846
+ validate.errors = [];
2847
+ validate.errors.push({ keywordLocation: "#/properties/keyframes/maxItems", instanceLocation: "#/keyframes" });
2848
+ errorCount++;
2849
+ }
2850
+ if (data.keyframes.length < 1) {
2851
+ if (validate.errors === null)
2852
+ validate.errors = [];
2853
+ validate.errors.push({ keywordLocation: "#/properties/keyframes/minItems", instanceLocation: "#/keyframes" });
2854
+ errorCount++;
2855
+ }
2856
+ for (let k = 0; k < data.keyframes.length; k++) {
2857
+ if (data.keyframes[k] !== undefined && hasOwn(data.keyframes, k)) {
2858
+ const err163 = validate.errors;
2859
+ const res163 = ref18(data.keyframes[k]);
2860
+ const suberr173 = ref18.errors;
2861
+ validate.errors = err163;
2862
+ if (!res163) {
2863
+ if (validate.errors === null)
2864
+ validate.errors = [];
2865
+ validate.errors.push(...suberr173.map(e => errorMerge(e, "#/properties/keyframes/items/$ref", "#/keyframes/" + k)));
2866
+ errorCount++;
2867
+ }
2868
+ }
2869
+ }
2870
+ }
2871
+ }
2872
+ for (const key13 of Object.keys(data)) {
2873
+ if (key13 !== "keyframes") {
2874
+ if (validate.errors === null)
2875
+ validate.errors = [];
2876
+ validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key13) });
2877
+ errorCount++;
2878
+ }
2879
+ }
2880
+ }
2881
+ return errorCount === 0;
2882
+ };
2883
+ const ref15 = function validate(data) {
2884
+ validate.errors = null;
2885
+ let errorCount = 0;
2886
+ if (!(typeof data === "object" && data && !Array.isArray(data))) {
2887
+ if (validate.errors === null)
2888
+ validate.errors = [];
2889
+ validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
2890
+ errorCount++;
2891
+ }
2892
+ else {
2893
+ if (!(data.duration !== undefined && hasOwn(data, "duration"))) {
2894
+ if (validate.errors === null)
2895
+ validate.errors = [];
2896
+ validate.errors.push({ keywordLocation: "#/required", instanceLocation: "#/duration" });
2897
+ errorCount++;
2898
+ }
2899
+ if (!(data.tracks !== undefined && hasOwn(data, "tracks"))) {
2900
+ if (validate.errors === null)
2901
+ validate.errors = [];
2902
+ validate.errors.push({ keywordLocation: "#/required", instanceLocation: "#/tracks" });
2903
+ errorCount++;
2904
+ }
2905
+ if (data.name !== undefined && hasOwn(data, "name")) {
2906
+ const err160 = validate.errors;
2907
+ const res160 = ref7(data.name);
2908
+ const suberr168 = ref7.errors;
2909
+ validate.errors = err160;
2910
+ if (!res160) {
2911
+ if (validate.errors === null)
2912
+ validate.errors = [];
2913
+ validate.errors.push(...suberr168.map(e => errorMerge(e, "#/properties/name/allOf/0/$ref", "#/name")));
2914
+ errorCount++;
2915
+ }
2916
+ }
2917
+ if (data.duration !== undefined && hasOwn(data, "duration")) {
2918
+ if (!(typeof data.duration === "number")) {
2919
+ if (validate.errors === null)
2920
+ validate.errors = [];
2921
+ validate.errors.push({ keywordLocation: "#/properties/duration/type", instanceLocation: "#/duration" });
2922
+ errorCount++;
2923
+ }
2924
+ else {
2925
+ if (!(0 < data.duration)) {
2926
+ if (validate.errors === null)
2927
+ validate.errors = [];
2928
+ validate.errors.push({ keywordLocation: "#/properties/duration/exclusiveMinimum", instanceLocation: "#/duration" });
2929
+ errorCount++;
2930
+ }
2931
+ if (!(3600 >= data.duration)) {
2932
+ if (validate.errors === null)
2933
+ validate.errors = [];
2934
+ validate.errors.push({ keywordLocation: "#/properties/duration/maximum", instanceLocation: "#/duration" });
2935
+ errorCount++;
2936
+ }
2937
+ }
2938
+ }
2939
+ if (data.delay !== undefined && hasOwn(data, "delay")) {
2940
+ if (!(typeof data.delay === "number")) {
2941
+ if (validate.errors === null)
2942
+ validate.errors = [];
2943
+ validate.errors.push({ keywordLocation: "#/properties/delay/type", instanceLocation: "#/delay" });
2944
+ errorCount++;
2945
+ }
2946
+ else {
2947
+ if (!(-3600 <= data.delay)) {
2948
+ if (validate.errors === null)
2949
+ validate.errors = [];
2950
+ validate.errors.push({ keywordLocation: "#/properties/delay/minimum", instanceLocation: "#/delay" });
2951
+ errorCount++;
2952
+ }
2953
+ if (!(3600 >= data.delay)) {
2954
+ if (validate.errors === null)
2955
+ validate.errors = [];
2956
+ validate.errors.push({ keywordLocation: "#/properties/delay/maximum", instanceLocation: "#/delay" });
2957
+ errorCount++;
2958
+ }
2959
+ }
2960
+ }
2961
+ if (data.iterations !== undefined && hasOwn(data, "iterations")) {
2962
+ let suberr169 = null;
2963
+ const sub25 = (() => {
2964
+ let errorCount = 0;
2965
+ if (!(data.iterations === "infinite")) {
2966
+ if (suberr169 === null)
2967
+ suberr169 = [];
2968
+ suberr169.push({ keywordLocation: "#/properties/iterations/anyOf/0/const", instanceLocation: "#/iterations" });
2969
+ errorCount++;
2970
+ }
2971
+ return errorCount === 0;
2972
+ })();
2973
+ if (!sub25) {
2974
+ const sub26 = (() => {
2975
+ let errorCount = 0;
2976
+ if (!(typeof data.iterations === "number")) {
2977
+ if (suberr169 === null)
2978
+ suberr169 = [];
2979
+ suberr169.push({ keywordLocation: "#/properties/iterations/anyOf/1/type", instanceLocation: "#/iterations" });
2980
+ errorCount++;
2981
+ }
2982
+ else {
2983
+ if (!(0 < data.iterations)) {
2984
+ if (suberr169 === null)
2985
+ suberr169 = [];
2986
+ suberr169.push({ keywordLocation: "#/properties/iterations/anyOf/1/exclusiveMinimum", instanceLocation: "#/iterations" });
2987
+ errorCount++;
2988
+ }
2989
+ if (!(10000 >= data.iterations)) {
2990
+ if (suberr169 === null)
2991
+ suberr169 = [];
2992
+ suberr169.push({ keywordLocation: "#/properties/iterations/anyOf/1/maximum", instanceLocation: "#/iterations" });
2993
+ errorCount++;
2994
+ }
2995
+ }
2996
+ return errorCount === 0;
2997
+ })();
2998
+ if (!sub26) {
2999
+ if (validate.errors === null)
3000
+ validate.errors = [];
3001
+ validate.errors.push({ keywordLocation: "#/properties/iterations/anyOf", instanceLocation: "#/iterations" });
3002
+ if (suberr169)
3003
+ validate.errors.push(...suberr169);
3004
+ errorCount++;
3005
+ }
3006
+ }
3007
+ }
3008
+ if (data.direction !== undefined && hasOwn(data, "direction")) {
3009
+ if (!(data.direction === "normal" || data.direction === "reverse" || data.direction === "alternate" || data.direction === "alternateReverse")) {
3010
+ if (validate.errors === null)
3011
+ validate.errors = [];
3012
+ validate.errors.push({ keywordLocation: "#/properties/direction/enum", instanceLocation: "#/direction" });
3013
+ errorCount++;
3014
+ }
3015
+ }
3016
+ if (data.fill !== undefined && hasOwn(data, "fill")) {
3017
+ if (!(data.fill === "none" || data.fill === "forwards")) {
3018
+ if (validate.errors === null)
3019
+ validate.errors = [];
3020
+ validate.errors.push({ keywordLocation: "#/properties/fill/enum", instanceLocation: "#/fill" });
3021
+ errorCount++;
3022
+ }
3023
+ }
3024
+ if (data.easing !== undefined && hasOwn(data, "easing")) {
3025
+ const err161 = validate.errors;
3026
+ const res161 = ref16(data.easing);
3027
+ const suberr171 = ref16.errors;
3028
+ validate.errors = err161;
3029
+ if (!res161) {
3030
+ if (validate.errors === null)
3031
+ validate.errors = [];
3032
+ validate.errors.push(...suberr171.map(e => errorMerge(e, "#/properties/easing/allOf/0/$ref", "#/easing")));
3033
+ errorCount++;
3034
+ }
3035
+ }
3036
+ if (data.origin !== undefined && hasOwn(data, "origin")) {
3037
+ if (!(typeof data.origin === "object" && data.origin && !Array.isArray(data.origin))) {
3038
+ if (validate.errors === null)
3039
+ validate.errors = [];
3040
+ validate.errors.push({ keywordLocation: "#/properties/origin/type", instanceLocation: "#/origin" });
3041
+ errorCount++;
3042
+ }
3043
+ else {
3044
+ if (!(data.origin.x !== undefined && hasOwn(data.origin, "x"))) {
3045
+ if (validate.errors === null)
3046
+ validate.errors = [];
3047
+ validate.errors.push({ keywordLocation: "#/properties/origin/required", instanceLocation: "#/origin/x" });
3048
+ errorCount++;
3049
+ }
3050
+ if (!(data.origin.y !== undefined && hasOwn(data.origin, "y"))) {
3051
+ if (validate.errors === null)
3052
+ validate.errors = [];
3053
+ validate.errors.push({ keywordLocation: "#/properties/origin/required", instanceLocation: "#/origin/y" });
3054
+ errorCount++;
3055
+ }
3056
+ if (data.origin.x !== undefined && hasOwn(data.origin, "x")) {
3057
+ if (!(typeof data.origin.x === "number")) {
3058
+ if (validate.errors === null)
3059
+ validate.errors = [];
3060
+ validate.errors.push({ keywordLocation: "#/properties/origin/properties/x/type", instanceLocation: "#/origin/x" });
3061
+ errorCount++;
3062
+ }
3063
+ else {
3064
+ if (!(-1000 <= data.origin.x)) {
3065
+ if (validate.errors === null)
3066
+ validate.errors = [];
3067
+ validate.errors.push({ keywordLocation: "#/properties/origin/properties/x/minimum", instanceLocation: "#/origin/x" });
3068
+ errorCount++;
3069
+ }
3070
+ if (!(1000 >= data.origin.x)) {
3071
+ if (validate.errors === null)
3072
+ validate.errors = [];
3073
+ validate.errors.push({ keywordLocation: "#/properties/origin/properties/x/maximum", instanceLocation: "#/origin/x" });
3074
+ errorCount++;
3075
+ }
3076
+ }
3077
+ }
3078
+ if (data.origin.y !== undefined && hasOwn(data.origin, "y")) {
3079
+ if (!(typeof data.origin.y === "number")) {
3080
+ if (validate.errors === null)
3081
+ validate.errors = [];
3082
+ validate.errors.push({ keywordLocation: "#/properties/origin/properties/y/type", instanceLocation: "#/origin/y" });
3083
+ errorCount++;
3084
+ }
3085
+ else {
3086
+ if (!(-1000 <= data.origin.y)) {
3087
+ if (validate.errors === null)
3088
+ validate.errors = [];
3089
+ validate.errors.push({ keywordLocation: "#/properties/origin/properties/y/minimum", instanceLocation: "#/origin/y" });
3090
+ errorCount++;
3091
+ }
3092
+ if (!(1000 >= data.origin.y)) {
3093
+ if (validate.errors === null)
3094
+ validate.errors = [];
3095
+ validate.errors.push({ keywordLocation: "#/properties/origin/properties/y/maximum", instanceLocation: "#/origin/y" });
3096
+ errorCount++;
3097
+ }
3098
+ }
3099
+ }
3100
+ for (const key11 of Object.keys(data.origin)) {
3101
+ if (key11 !== "x" && key11 !== "y") {
3102
+ if (validate.errors === null)
3103
+ validate.errors = [];
3104
+ validate.errors.push({ keywordLocation: "#/properties/origin/additionalProperties", instanceLocation: "#/origin/" + pointerPart(key11) });
3105
+ errorCount++;
3106
+ }
3107
+ }
3108
+ }
3109
+ }
3110
+ if (data.tracks !== undefined && hasOwn(data, "tracks")) {
3111
+ if (!(typeof data.tracks === "object" && data.tracks && !Array.isArray(data.tracks))) {
3112
+ if (validate.errors === null)
3113
+ validate.errors = [];
3114
+ validate.errors.push({ keywordLocation: "#/properties/tracks/type", instanceLocation: "#/tracks" });
3115
+ errorCount++;
3116
+ }
3117
+ else {
3118
+ if (Object.keys(data.tracks).length < 1) {
3119
+ if (validate.errors === null)
3120
+ validate.errors = [];
3121
+ validate.errors.push({ keywordLocation: "#/properties/tracks/minProperties", instanceLocation: "#/tracks" });
3122
+ errorCount++;
3123
+ }
3124
+ if (data.tracks.translateX !== undefined && hasOwn(data.tracks, "translateX")) {
3125
+ const err164 = validate.errors;
3126
+ const res164 = ref17(data.tracks.translateX);
3127
+ const suberr174 = ref17.errors;
3128
+ validate.errors = err164;
3129
+ if (!res164) {
3130
+ if (validate.errors === null)
3131
+ validate.errors = [];
3132
+ validate.errors.push(...suberr174.map(e => errorMerge(e, "#/properties/tracks/properties/translateX/allOf/0/$ref", "#/tracks/translateX")));
3133
+ errorCount++;
3134
+ }
3135
+ }
3136
+ if (data.tracks.translateY !== undefined && hasOwn(data.tracks, "translateY")) {
3137
+ const err165 = validate.errors;
3138
+ const res165 = ref17(data.tracks.translateY);
3139
+ const suberr175 = ref17.errors;
3140
+ validate.errors = err165;
3141
+ if (!res165) {
3142
+ if (validate.errors === null)
3143
+ validate.errors = [];
3144
+ validate.errors.push(...suberr175.map(e => errorMerge(e, "#/properties/tracks/properties/translateY/allOf/0/$ref", "#/tracks/translateY")));
3145
+ errorCount++;
3146
+ }
3147
+ }
3148
+ if (data.tracks.rotate !== undefined && hasOwn(data.tracks, "rotate")) {
3149
+ const err166 = validate.errors;
3150
+ const res166 = ref17(data.tracks.rotate);
3151
+ const suberr176 = ref17.errors;
3152
+ validate.errors = err166;
3153
+ if (!res166) {
3154
+ if (validate.errors === null)
3155
+ validate.errors = [];
3156
+ validate.errors.push(...suberr176.map(e => errorMerge(e, "#/properties/tracks/properties/rotate/allOf/0/$ref", "#/tracks/rotate")));
3157
+ errorCount++;
3158
+ }
3159
+ }
3160
+ if (data.tracks.scaleX !== undefined && hasOwn(data.tracks, "scaleX")) {
3161
+ const err167 = validate.errors;
3162
+ const res167 = ref17(data.tracks.scaleX);
3163
+ const suberr177 = ref17.errors;
3164
+ validate.errors = err167;
3165
+ if (!res167) {
3166
+ if (validate.errors === null)
3167
+ validate.errors = [];
3168
+ validate.errors.push(...suberr177.map(e => errorMerge(e, "#/properties/tracks/properties/scaleX/allOf/0/$ref", "#/tracks/scaleX")));
3169
+ errorCount++;
3170
+ }
3171
+ }
3172
+ if (data.tracks.scaleY !== undefined && hasOwn(data.tracks, "scaleY")) {
3173
+ const err168 = validate.errors;
3174
+ const res168 = ref17(data.tracks.scaleY);
3175
+ const suberr178 = ref17.errors;
3176
+ validate.errors = err168;
3177
+ if (!res168) {
3178
+ if (validate.errors === null)
3179
+ validate.errors = [];
3180
+ validate.errors.push(...suberr178.map(e => errorMerge(e, "#/properties/tracks/properties/scaleY/allOf/0/$ref", "#/tracks/scaleY")));
3181
+ errorCount++;
3182
+ }
3183
+ }
3184
+ if (data.tracks.opacity !== undefined && hasOwn(data.tracks, "opacity")) {
3185
+ const err169 = validate.errors;
3186
+ const res169 = ref17(data.tracks.opacity);
3187
+ const suberr179 = ref17.errors;
3188
+ validate.errors = err169;
3189
+ if (!res169) {
3190
+ if (validate.errors === null)
3191
+ validate.errors = [];
3192
+ validate.errors.push(...suberr179.map(e => errorMerge(e, "#/properties/tracks/properties/opacity/allOf/0/$ref", "#/tracks/opacity")));
3193
+ errorCount++;
3194
+ }
3195
+ }
3196
+ for (const key14 of Object.keys(data.tracks)) {
3197
+ if (key14 !== "translateX" && key14 !== "translateY" && key14 !== "rotate" && key14 !== "scaleX" && key14 !== "scaleY" && key14 !== "opacity") {
3198
+ if (validate.errors === null)
3199
+ validate.errors = [];
3200
+ validate.errors.push({ keywordLocation: "#/properties/tracks/additionalProperties", instanceLocation: "#/tracks/" + pointerPart(key14) });
3201
+ errorCount++;
3202
+ }
3203
+ }
3204
+ }
3205
+ }
3206
+ for (const key15 of Object.keys(data)) {
3207
+ if (key15 !== "name" && key15 !== "duration" && key15 !== "delay" && key15 !== "iterations" && key15 !== "direction" && key15 !== "fill" && key15 !== "easing" && key15 !== "origin" && key15 !== "tracks") {
3208
+ if (validate.errors === null)
3209
+ validate.errors = [];
3210
+ validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key15) });
3211
+ errorCount++;
3212
+ }
3213
+ }
3214
+ }
3215
+ return errorCount === 0;
3216
+ };
3217
+ const ref14 = function validate(data) {
3218
+ validate.errors = null;
3219
+ let errorCount = 0;
3220
+ if (!Array.isArray(data)) {
3221
+ if (validate.errors === null)
3222
+ validate.errors = [];
3223
+ validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
3224
+ errorCount++;
3225
+ }
3226
+ else {
3227
+ if (data.length > 8) {
3228
+ if (validate.errors === null)
3229
+ validate.errors = [];
3230
+ validate.errors.push({ keywordLocation: "#/maxItems", instanceLocation: "#" });
3231
+ errorCount++;
3232
+ }
3233
+ if (data.length < 1) {
3234
+ if (validate.errors === null)
3235
+ validate.errors = [];
3236
+ validate.errors.push({ keywordLocation: "#/minItems", instanceLocation: "#" });
3237
+ errorCount++;
3238
+ }
3239
+ for (let j = 0; j < data.length; j++) {
3240
+ if (data[j] !== undefined && hasOwn(data, j)) {
3241
+ const err170 = validate.errors;
3242
+ const res170 = ref15(data[j]);
3243
+ const suberr180 = ref15.errors;
3244
+ validate.errors = err170;
3245
+ if (!res170) {
3246
+ if (validate.errors === null)
3247
+ validate.errors = [];
3248
+ validate.errors.push(...suberr180.map(e => errorMerge(e, "#/items/$ref", "#/" + j)));
3249
+ errorCount++;
3250
+ }
3251
+ }
3252
+ }
3253
+ }
3254
+ return errorCount === 0;
3255
+ };
2573
3256
  const ref12 = function validate(data) {
2574
3257
  validate.errors = null;
2575
3258
  let errorCount = 0;
@@ -2624,18 +3307,30 @@ const validate = (function () {
2624
3307
  errorCount++;
2625
3308
  }
2626
3309
  }
2627
- for (const key10 of Object.keys(data)) {
2628
- if (key10 !== "type" && key10 !== "name" && key10 !== "attributes") {
3310
+ if (data.animations !== undefined && hasOwn(data, "animations")) {
3311
+ const err171 = validate.errors;
3312
+ const res171 = ref14(data.animations);
3313
+ const suberr181 = ref14.errors;
3314
+ validate.errors = err171;
3315
+ if (!res171) {
3316
+ if (validate.errors === null)
3317
+ validate.errors = [];
3318
+ validate.errors.push(...suberr181.map(e => errorMerge(e, "#/properties/animations/$ref", "#/animations")));
3319
+ errorCount++;
3320
+ }
3321
+ }
3322
+ for (const key16 of Object.keys(data)) {
3323
+ if (key16 !== "type" && key16 !== "name" && key16 !== "attributes" && key16 !== "animations") {
2629
3324
  if (validate.errors === null)
2630
3325
  validate.errors = [];
2631
- validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key10) });
3326
+ validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key16) });
2632
3327
  errorCount++;
2633
3328
  }
2634
3329
  }
2635
3330
  }
2636
3331
  return errorCount === 0;
2637
3332
  };
2638
- const ref14 = function validate(data) {
3333
+ const ref19 = function validate(data) {
2639
3334
  validate.errors = null;
2640
3335
  let errorCount = 0;
2641
3336
  if (!(typeof data === "object" && data && !Array.isArray(data))) {
@@ -2674,14 +3369,14 @@ const validate = (function () {
2674
3369
  }
2675
3370
  }
2676
3371
  if (data.attributes !== undefined && hasOwn(data, "attributes")) {
2677
- const err161 = validate.errors;
2678
- const res161 = ref2(data.attributes);
2679
- const suberr169 = ref2.errors;
2680
- validate.errors = err161;
2681
- if (!res161) {
3372
+ const err173 = validate.errors;
3373
+ const res173 = ref2(data.attributes);
3374
+ const suberr183 = ref2.errors;
3375
+ validate.errors = err173;
3376
+ if (!res173) {
2682
3377
  if (validate.errors === null)
2683
3378
  validate.errors = [];
2684
- validate.errors.push(...suberr169.map(e => errorMerge(e, "#/properties/attributes/$ref", "#/attributes")));
3379
+ validate.errors.push(...suberr183.map(e => errorMerge(e, "#/properties/attributes/$ref", "#/attributes")));
2685
3380
  errorCount++;
2686
3381
  }
2687
3382
  }
@@ -2699,52 +3394,52 @@ const validate = (function () {
2699
3394
  validate.errors.push({ keywordLocation: "#/properties/children/maxItems", instanceLocation: "#/children" });
2700
3395
  errorCount++;
2701
3396
  }
2702
- for (let j = 0; j < data.children.length; j++) {
2703
- if (data.children[j] !== undefined && hasOwn(data.children, j)) {
2704
- if (!(typeof data.children[j] === "object" && data.children[j] && !Array.isArray(data.children[j]))) {
3397
+ for (let l = 0; l < data.children.length; l++) {
3398
+ if (data.children[l] !== undefined && hasOwn(data.children, l)) {
3399
+ if (!(typeof data.children[l] === "object" && data.children[l] && !Array.isArray(data.children[l]))) {
2705
3400
  if (validate.errors === null)
2706
3401
  validate.errors = [];
2707
- validate.errors.push({ keywordLocation: "#/properties/children/items/type", instanceLocation: "#/children/" + j });
3402
+ validate.errors.push({ keywordLocation: "#/properties/children/items/type", instanceLocation: "#/children/" + l });
2708
3403
  errorCount++;
2709
3404
  }
2710
3405
  else {
2711
- if (!(data.children[j].type !== undefined && hasOwn(data.children[j], "type"))) {
3406
+ if (!(data.children[l].type !== undefined && hasOwn(data.children[l], "type"))) {
2712
3407
  if (validate.errors === null)
2713
3408
  validate.errors = [];
2714
- validate.errors.push({ keywordLocation: "#/properties/children/items/required", instanceLocation: "#/children/" + j + "/type" });
3409
+ validate.errors.push({ keywordLocation: "#/properties/children/items/required", instanceLocation: "#/children/" + l + "/type" });
2715
3410
  errorCount++;
2716
3411
  }
2717
- if (!(data.children[j].value !== undefined && hasOwn(data.children[j], "value"))) {
3412
+ if (!(data.children[l].value !== undefined && hasOwn(data.children[l], "value"))) {
2718
3413
  if (validate.errors === null)
2719
3414
  validate.errors = [];
2720
- validate.errors.push({ keywordLocation: "#/properties/children/items/required", instanceLocation: "#/children/" + j + "/value" });
3415
+ validate.errors.push({ keywordLocation: "#/properties/children/items/required", instanceLocation: "#/children/" + l + "/value" });
2721
3416
  errorCount++;
2722
3417
  }
2723
- if (data.children[j].type !== undefined && hasOwn(data.children[j], "type")) {
2724
- if (!(data.children[j].type === "text")) {
3418
+ if (data.children[l].type !== undefined && hasOwn(data.children[l], "type")) {
3419
+ if (!(data.children[l].type === "text")) {
2725
3420
  if (validate.errors === null)
2726
3421
  validate.errors = [];
2727
- validate.errors.push({ keywordLocation: "#/properties/children/items/properties/type/const", instanceLocation: "#/children/" + j + "/type" });
3422
+ validate.errors.push({ keywordLocation: "#/properties/children/items/properties/type/const", instanceLocation: "#/children/" + l + "/type" });
2728
3423
  errorCount++;
2729
3424
  }
2730
3425
  }
2731
- if (data.children[j].value !== undefined && hasOwn(data.children[j], "value")) {
2732
- const err162 = validate.errors;
2733
- const res162 = ref9(data.children[j].value);
2734
- const suberr170 = ref9.errors;
2735
- validate.errors = err162;
2736
- if (!res162) {
3426
+ if (data.children[l].value !== undefined && hasOwn(data.children[l], "value")) {
3427
+ const err174 = validate.errors;
3428
+ const res174 = ref9(data.children[l].value);
3429
+ const suberr184 = ref9.errors;
3430
+ validate.errors = err174;
3431
+ if (!res174) {
2737
3432
  if (validate.errors === null)
2738
3433
  validate.errors = [];
2739
- validate.errors.push(...suberr170.map(e => errorMerge(e, "#/properties/children/items/properties/value/$ref", "#/children/" + j + "/value")));
3434
+ validate.errors.push(...suberr184.map(e => errorMerge(e, "#/properties/children/items/properties/value/$ref", "#/children/" + l + "/value")));
2740
3435
  errorCount++;
2741
3436
  }
2742
3437
  }
2743
- for (const key11 of Object.keys(data.children[j])) {
2744
- if (key11 !== "type" && key11 !== "value") {
3438
+ for (const key17 of Object.keys(data.children[l])) {
3439
+ if (key17 !== "type" && key17 !== "value") {
2745
3440
  if (validate.errors === null)
2746
3441
  validate.errors = [];
2747
- validate.errors.push({ keywordLocation: "#/properties/children/items/additionalProperties", instanceLocation: "#/children/" + j + "/" + pointerPart(key11) });
3442
+ validate.errors.push({ keywordLocation: "#/properties/children/items/additionalProperties", instanceLocation: "#/children/" + l + "/" + pointerPart(key17) });
2748
3443
  errorCount++;
2749
3444
  }
2750
3445
  }
@@ -2753,18 +3448,59 @@ const validate = (function () {
2753
3448
  }
2754
3449
  }
2755
3450
  }
2756
- for (const key12 of Object.keys(data)) {
2757
- if (key12 !== "type" && key12 !== "name" && key12 !== "attributes" && key12 !== "children") {
3451
+ for (const key18 of Object.keys(data)) {
3452
+ if (key18 !== "type" && key18 !== "name" && key18 !== "attributes" && key18 !== "children") {
2758
3453
  if (validate.errors === null)
2759
3454
  validate.errors = [];
2760
- validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key12) });
3455
+ validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key18) });
2761
3456
  errorCount++;
2762
3457
  }
2763
3458
  }
2764
3459
  }
2765
3460
  return errorCount === 0;
2766
3461
  };
2767
- const ref15 = function validate(data) {
3462
+ const ref21 = function validate(data) {
3463
+ validate.errors = null;
3464
+ let errorCount = 0;
3465
+ const err179 = validate.errors;
3466
+ const res179 = ref10(data);
3467
+ const suberr189 = ref10.errors;
3468
+ validate.errors = err179;
3469
+ if (!res179) {
3470
+ if (validate.errors === null)
3471
+ validate.errors = [];
3472
+ validate.errors.push(...suberr189.map(e => errorMerge(e, "#/allOf/0/$ref", "#")));
3473
+ errorCount++;
3474
+ }
3475
+ if (typeof data === "object" && data && !Array.isArray(data)) {
3476
+ if (data.animations !== undefined && hasOwn(data, "animations")) {
3477
+ if (validate.errors === null)
3478
+ validate.errors = [];
3479
+ validate.errors.push({ keywordLocation: "#/allOf/1/properties/animations", instanceLocation: "#/animations" });
3480
+ errorCount++;
3481
+ }
3482
+ if (data.children !== undefined && hasOwn(data, "children")) {
3483
+ if (Array.isArray(data.children)) {
3484
+ for (let o = 0; o < data.children.length; o++) {
3485
+ if (data.children[o] !== undefined && hasOwn(data.children, o)) {
3486
+ const err180 = validate.errors;
3487
+ const res180 = validate(data.children[o]);
3488
+ const suberr190 = validate.errors;
3489
+ validate.errors = err180;
3490
+ if (!res180) {
3491
+ if (validate.errors === null)
3492
+ validate.errors = [];
3493
+ validate.errors.push(...suberr190.map(e => errorMerge(e, "#/allOf/1/properties/children/items/$ref", "#/children/" + o)));
3494
+ errorCount++;
3495
+ }
3496
+ }
3497
+ }
3498
+ }
3499
+ }
3500
+ }
3501
+ return errorCount === 0;
3502
+ };
3503
+ const ref20 = function validate(data) {
2768
3504
  validate.errors = null;
2769
3505
  let errorCount = 0;
2770
3506
  if (!(typeof data === "object" && data && !Array.isArray(data))) {
@@ -2803,14 +3539,26 @@ const validate = (function () {
2803
3539
  }
2804
3540
  }
2805
3541
  if (data.attributes !== undefined && hasOwn(data, "attributes")) {
2806
- const err164 = validate.errors;
2807
- const res164 = ref2(data.attributes);
2808
- const suberr172 = ref2.errors;
2809
- validate.errors = err164;
2810
- if (!res164) {
3542
+ const err176 = validate.errors;
3543
+ const res176 = ref2(data.attributes);
3544
+ const suberr186 = ref2.errors;
3545
+ validate.errors = err176;
3546
+ if (!res176) {
3547
+ if (validate.errors === null)
3548
+ validate.errors = [];
3549
+ validate.errors.push(...suberr186.map(e => errorMerge(e, "#/properties/attributes/$ref", "#/attributes")));
3550
+ errorCount++;
3551
+ }
3552
+ }
3553
+ if (data.animations !== undefined && hasOwn(data, "animations")) {
3554
+ const err177 = validate.errors;
3555
+ const res177 = ref14(data.animations);
3556
+ const suberr187 = ref14.errors;
3557
+ validate.errors = err177;
3558
+ if (!res177) {
2811
3559
  if (validate.errors === null)
2812
3560
  validate.errors = [];
2813
- validate.errors.push(...suberr172.map(e => errorMerge(e, "#/properties/attributes/$ref", "#/attributes")));
3561
+ validate.errors.push(...suberr187.map(e => errorMerge(e, "#/properties/animations/$ref", "#/animations")));
2814
3562
  errorCount++;
2815
3563
  }
2816
3564
  }
@@ -2828,27 +3576,75 @@ const validate = (function () {
2828
3576
  validate.errors.push({ keywordLocation: "#/properties/children/maxItems", instanceLocation: "#/children" });
2829
3577
  errorCount++;
2830
3578
  }
2831
- for (let k = 0; k < data.children.length; k++) {
2832
- if (data.children[k] !== undefined && hasOwn(data.children, k)) {
2833
- const err165 = validate.errors;
2834
- const res165 = ref10(data.children[k]);
2835
- const suberr173 = ref10.errors;
2836
- validate.errors = err165;
2837
- if (!res165) {
3579
+ for (let m = 0; m < data.children.length; m++) {
3580
+ if (data.children[m] !== undefined && hasOwn(data.children, m)) {
3581
+ const err178 = validate.errors;
3582
+ const res178 = ref10(data.children[m]);
3583
+ const suberr188 = ref10.errors;
3584
+ validate.errors = err178;
3585
+ if (!res178) {
2838
3586
  if (validate.errors === null)
2839
3587
  validate.errors = [];
2840
- validate.errors.push(...suberr173.map(e => errorMerge(e, "#/properties/children/items/$ref", "#/children/" + k)));
3588
+ validate.errors.push(...suberr188.map(e => errorMerge(e, "#/properties/children/items/$ref", "#/children/" + m)));
2841
3589
  errorCount++;
2842
3590
  }
2843
3591
  }
2844
3592
  }
2845
3593
  }
2846
3594
  }
2847
- for (const key13 of Object.keys(data)) {
2848
- if (key13 !== "type" && key13 !== "name" && key13 !== "attributes" && key13 !== "children") {
3595
+ for (const key19 of Object.keys(data)) {
3596
+ if (key19 !== "type" && key19 !== "name" && key19 !== "attributes" && key19 !== "animations" && key19 !== "children") {
2849
3597
  if (validate.errors === null)
2850
3598
  validate.errors = [];
2851
- validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key13) });
3599
+ validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key19) });
3600
+ errorCount++;
3601
+ }
3602
+ }
3603
+ const sub31 = (() => {
3604
+ let errorCount = 0;
3605
+ if (!(data.name !== undefined && hasOwn(data, "name")))
3606
+ errorCount++;
3607
+ if (data.name !== undefined && hasOwn(data, "name")) {
3608
+ if (!(data.name === "clipPath" || data.name === "defs"))
3609
+ errorCount++;
3610
+ }
3611
+ return errorCount === 0;
3612
+ })();
3613
+ if (sub31) {
3614
+ if (data.children !== undefined && hasOwn(data, "children")) {
3615
+ if (Array.isArray(data.children)) {
3616
+ for (let n = 0; n < data.children.length; n++) {
3617
+ if (data.children[n] !== undefined && hasOwn(data.children, n)) {
3618
+ const err181 = validate.errors;
3619
+ const res181 = ref21(data.children[n]);
3620
+ const suberr191 = ref21.errors;
3621
+ validate.errors = err181;
3622
+ if (!res181) {
3623
+ if (validate.errors === null)
3624
+ validate.errors = [];
3625
+ validate.errors.push(...suberr191.map(e => errorMerge(e, "#/allOf/0/then/properties/children/items/$ref", "#/children/" + n)));
3626
+ errorCount++;
3627
+ }
3628
+ }
3629
+ }
3630
+ }
3631
+ }
3632
+ }
3633
+ const sub32 = (() => {
3634
+ let errorCount = 0;
3635
+ if (!(data.name !== undefined && hasOwn(data, "name")))
3636
+ errorCount++;
3637
+ if (data.name !== undefined && hasOwn(data, "name")) {
3638
+ if (!(data.name === "feBlend" || data.name === "feColorMatrix" || data.name === "feComponentTransfer" || data.name === "feComposite" || data.name === "feConvolveMatrix" || data.name === "feDiffuseLighting" || data.name === "feDisplacementMap" || data.name === "feDistantLight" || data.name === "feDropShadow" || data.name === "feFlood" || data.name === "feFuncA" || data.name === "feFuncB" || data.name === "feFuncG" || data.name === "feFuncR" || data.name === "feGaussianBlur" || data.name === "feImage" || data.name === "feMerge" || data.name === "feMergeNode" || data.name === "feMorphology" || data.name === "feOffset" || data.name === "fePointLight" || data.name === "feSpecularLighting" || data.name === "feSpotLight" || data.name === "feTile" || data.name === "feTurbulence" || data.name === "mpath" || data.name === "stop" || data.name === "textPath" || data.name === "tspan"))
3639
+ errorCount++;
3640
+ }
3641
+ return errorCount === 0;
3642
+ })();
3643
+ if (sub32) {
3644
+ if (data.animations !== undefined && hasOwn(data, "animations")) {
3645
+ if (validate.errors === null)
3646
+ validate.errors = [];
3647
+ validate.errors.push({ keywordLocation: "#/allOf/1/then/properties/animations", instanceLocation: "#/animations" });
2852
3648
  errorCount++;
2853
3649
  }
2854
3650
  }
@@ -2876,49 +3672,49 @@ const validate = (function () {
2876
3672
  if (!sub21) {
2877
3673
  const sub24 = (() => {
2878
3674
  let errorCount = 0;
2879
- const err160 = validate.errors;
2880
- const res160 = ref12(data);
2881
- const suberr168 = ref12.errors;
2882
- validate.errors = err160;
2883
- if (!res160) {
3675
+ const err172 = validate.errors;
3676
+ const res172 = ref12(data);
3677
+ const suberr182 = ref12.errors;
3678
+ validate.errors = err172;
3679
+ if (!res172) {
2884
3680
  if (validate.errors === null)
2885
3681
  validate.errors = [];
2886
- validate.errors.push(...suberr168.map(e => errorMerge(e, "#/anyOf/1/$ref", "#")));
3682
+ validate.errors.push(...suberr182.map(e => errorMerge(e, "#/anyOf/1/$ref", "#")));
2887
3683
  errorCount++;
2888
3684
  }
2889
3685
  return errorCount === 0;
2890
3686
  })();
2891
3687
  if (!sub24) {
2892
- const sub25 = (() => {
3688
+ const sub29 = (() => {
2893
3689
  let errorCount = 0;
2894
- const err163 = validate.errors;
2895
- const res163 = ref14(data);
2896
- const suberr171 = ref14.errors;
2897
- validate.errors = err163;
2898
- if (!res163) {
3690
+ const err175 = validate.errors;
3691
+ const res175 = ref19(data);
3692
+ const suberr185 = ref19.errors;
3693
+ validate.errors = err175;
3694
+ if (!res175) {
2899
3695
  if (validate.errors === null)
2900
3696
  validate.errors = [];
2901
- validate.errors.push(...suberr171.map(e => errorMerge(e, "#/anyOf/2/$ref", "#")));
3697
+ validate.errors.push(...suberr185.map(e => errorMerge(e, "#/anyOf/2/$ref", "#")));
2902
3698
  errorCount++;
2903
3699
  }
2904
3700
  return errorCount === 0;
2905
3701
  })();
2906
- if (!sub25) {
2907
- const sub26 = (() => {
3702
+ if (!sub29) {
3703
+ const sub30 = (() => {
2908
3704
  let errorCount = 0;
2909
- const err166 = validate.errors;
2910
- const res166 = ref15(data);
2911
- const suberr174 = ref15.errors;
2912
- validate.errors = err166;
2913
- if (!res166) {
3705
+ const err182 = validate.errors;
3706
+ const res182 = ref20(data);
3707
+ const suberr192 = ref20.errors;
3708
+ validate.errors = err182;
3709
+ if (!res182) {
2914
3710
  if (validate.errors === null)
2915
3711
  validate.errors = [];
2916
- validate.errors.push(...suberr174.map(e => errorMerge(e, "#/anyOf/3/$ref", "#")));
3712
+ validate.errors.push(...suberr192.map(e => errorMerge(e, "#/anyOf/3/$ref", "#")));
2917
3713
  errorCount++;
2918
3714
  }
2919
3715
  return errorCount === 0;
2920
3716
  })();
2921
- if (!sub26) {
3717
+ if (!sub30) {
2922
3718
  if (validate.errors === null)
2923
3719
  validate.errors = [];
2924
3720
  validate.errors.push({ keywordLocation: "#/anyOf", instanceLocation: "#" });
@@ -2931,7 +3727,7 @@ const validate = (function () {
2931
3727
  }
2932
3728
  return errorCount === 0;
2933
3729
  };
2934
- const ref17 = function validate(data) {
3730
+ const ref23 = function validate(data) {
2935
3731
  validate.errors = null;
2936
3732
  let errorCount = 0;
2937
3733
  if (!(typeof data === "number")) {
@@ -2956,7 +3752,7 @@ const validate = (function () {
2956
3752
  }
2957
3753
  return errorCount === 0;
2958
3754
  };
2959
- const ref18 = function validate(data) {
3755
+ const ref24 = function validate(data) {
2960
3756
  validate.errors = null;
2961
3757
  let errorCount = 0;
2962
3758
  if (!(typeof data === "object" && data && !Array.isArray(data))) {
@@ -3044,18 +3840,18 @@ const validate = (function () {
3044
3840
  }
3045
3841
  }
3046
3842
  }
3047
- for (const key17 of Object.keys(data)) {
3048
- if (key17 !== "min" && key17 !== "max" && key17 !== "step") {
3843
+ for (const key23 of Object.keys(data)) {
3844
+ if (key23 !== "min" && key23 !== "max" && key23 !== "step") {
3049
3845
  if (validate.errors === null)
3050
3846
  validate.errors = [];
3051
- validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key17) });
3847
+ validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key23) });
3052
3848
  errorCount++;
3053
3849
  }
3054
3850
  }
3055
3851
  }
3056
3852
  return errorCount === 0;
3057
3853
  };
3058
- const ref19 = function validate(data) {
3854
+ const ref25 = function validate(data) {
3059
3855
  validate.errors = null;
3060
3856
  let errorCount = 0;
3061
3857
  if (!(typeof data === "object" && data && !Array.isArray(data))) {
@@ -3143,18 +3939,18 @@ const validate = (function () {
3143
3939
  }
3144
3940
  }
3145
3941
  }
3146
- for (const key18 of Object.keys(data)) {
3147
- if (key18 !== "min" && key18 !== "max" && key18 !== "step") {
3942
+ for (const key24 of Object.keys(data)) {
3943
+ if (key24 !== "min" && key24 !== "max" && key24 !== "step") {
3148
3944
  if (validate.errors === null)
3149
3945
  validate.errors = [];
3150
- validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key18) });
3946
+ validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key24) });
3151
3947
  errorCount++;
3152
3948
  }
3153
3949
  }
3154
3950
  }
3155
3951
  return errorCount === 0;
3156
3952
  };
3157
- const ref21 = function validate(data) {
3953
+ const ref27 = function validate(data) {
3158
3954
  validate.errors = null;
3159
3955
  let errorCount = 0;
3160
3956
  if (!(typeof data === "object" && data && !Array.isArray(data))) {
@@ -3242,18 +4038,18 @@ const validate = (function () {
3242
4038
  }
3243
4039
  }
3244
4040
  }
3245
- for (const key19 of Object.keys(data)) {
3246
- if (key19 !== "min" && key19 !== "max" && key19 !== "step") {
4041
+ for (const key25 of Object.keys(data)) {
4042
+ if (key25 !== "min" && key25 !== "max" && key25 !== "step") {
3247
4043
  if (validate.errors === null)
3248
4044
  validate.errors = [];
3249
- validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key19) });
4045
+ validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key25) });
3250
4046
  errorCount++;
3251
4047
  }
3252
4048
  }
3253
4049
  }
3254
4050
  return errorCount === 0;
3255
4051
  };
3256
- const ref20 = function validate(data) {
4052
+ const ref26 = function validate(data) {
3257
4053
  validate.errors = null;
3258
4054
  let errorCount = 0;
3259
4055
  if (!(typeof data === "object" && data && !Array.isArray(data))) {
@@ -3264,34 +4060,34 @@ const validate = (function () {
3264
4060
  }
3265
4061
  else {
3266
4062
  if (data.x !== undefined && hasOwn(data, "x")) {
3267
- const err172 = validate.errors;
3268
- const res172 = ref21(data.x);
3269
- const suberr181 = ref21.errors;
3270
- validate.errors = err172;
3271
- if (!res172) {
4063
+ const err188 = validate.errors;
4064
+ const res188 = ref27(data.x);
4065
+ const suberr199 = ref27.errors;
4066
+ validate.errors = err188;
4067
+ if (!res188) {
3272
4068
  if (validate.errors === null)
3273
4069
  validate.errors = [];
3274
- validate.errors.push(...suberr181.map(e => errorMerge(e, "#/properties/x/$ref", "#/x")));
4070
+ validate.errors.push(...suberr199.map(e => errorMerge(e, "#/properties/x/$ref", "#/x")));
3275
4071
  errorCount++;
3276
4072
  }
3277
4073
  }
3278
4074
  if (data.y !== undefined && hasOwn(data, "y")) {
3279
- const err173 = validate.errors;
3280
- const res173 = ref21(data.y);
3281
- const suberr182 = ref21.errors;
3282
- validate.errors = err173;
3283
- if (!res173) {
4075
+ const err189 = validate.errors;
4076
+ const res189 = ref27(data.y);
4077
+ const suberr200 = ref27.errors;
4078
+ validate.errors = err189;
4079
+ if (!res189) {
3284
4080
  if (validate.errors === null)
3285
4081
  validate.errors = [];
3286
- validate.errors.push(...suberr182.map(e => errorMerge(e, "#/properties/y/$ref", "#/y")));
4082
+ validate.errors.push(...suberr200.map(e => errorMerge(e, "#/properties/y/$ref", "#/y")));
3287
4083
  errorCount++;
3288
4084
  }
3289
4085
  }
3290
- for (const key20 of Object.keys(data)) {
3291
- if (key20 !== "x" && key20 !== "y") {
4086
+ for (const key26 of Object.keys(data)) {
4087
+ if (key26 !== "x" && key26 !== "y") {
3292
4088
  if (validate.errors === null)
3293
4089
  validate.errors = [];
3294
- validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key20) });
4090
+ validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key26) });
3295
4091
  errorCount++;
3296
4092
  }
3297
4093
  }
@@ -3355,7 +4151,7 @@ const validate = (function () {
3355
4151
  }
3356
4152
  return false;
3357
4153
  };
3358
- const ref16 = function validate(data) {
4154
+ const ref22 = function validate(data) {
3359
4155
  validate.errors = null;
3360
4156
  let errorCount = 0;
3361
4157
  if (!(typeof data === "object" && data && !Array.isArray(data))) {
@@ -3428,50 +4224,50 @@ const validate = (function () {
3428
4224
  }
3429
4225
  }
3430
4226
  if (data.probability !== undefined && hasOwn(data, "probability")) {
3431
- const err169 = validate.errors;
3432
- const res169 = ref17(data.probability);
3433
- const suberr178 = ref17.errors;
3434
- validate.errors = err169;
3435
- if (!res169) {
4227
+ const err185 = validate.errors;
4228
+ const res185 = ref23(data.probability);
4229
+ const suberr196 = ref23.errors;
4230
+ validate.errors = err185;
4231
+ if (!res185) {
3436
4232
  if (validate.errors === null)
3437
4233
  validate.errors = [];
3438
- validate.errors.push(...suberr178.map(e => errorMerge(e, "#/properties/probability/$ref", "#/probability")));
4234
+ validate.errors.push(...suberr196.map(e => errorMerge(e, "#/properties/probability/$ref", "#/probability")));
3439
4235
  errorCount++;
3440
4236
  }
3441
4237
  }
3442
4238
  if (data.rotate !== undefined && hasOwn(data, "rotate")) {
3443
- const err170 = validate.errors;
3444
- const res170 = ref18(data.rotate);
3445
- const suberr179 = ref18.errors;
3446
- validate.errors = err170;
3447
- if (!res170) {
4239
+ const err186 = validate.errors;
4240
+ const res186 = ref24(data.rotate);
4241
+ const suberr197 = ref24.errors;
4242
+ validate.errors = err186;
4243
+ if (!res186) {
3448
4244
  if (validate.errors === null)
3449
4245
  validate.errors = [];
3450
- validate.errors.push(...suberr179.map(e => errorMerge(e, "#/properties/rotate/$ref", "#/rotate")));
4246
+ validate.errors.push(...suberr197.map(e => errorMerge(e, "#/properties/rotate/$ref", "#/rotate")));
3451
4247
  errorCount++;
3452
4248
  }
3453
4249
  }
3454
4250
  if (data.scale !== undefined && hasOwn(data, "scale")) {
3455
- const err171 = validate.errors;
3456
- const res171 = ref19(data.scale);
3457
- const suberr180 = ref19.errors;
3458
- validate.errors = err171;
3459
- if (!res171) {
4251
+ const err187 = validate.errors;
4252
+ const res187 = ref25(data.scale);
4253
+ const suberr198 = ref25.errors;
4254
+ validate.errors = err187;
4255
+ if (!res187) {
3460
4256
  if (validate.errors === null)
3461
4257
  validate.errors = [];
3462
- validate.errors.push(...suberr180.map(e => errorMerge(e, "#/properties/scale/$ref", "#/scale")));
4258
+ validate.errors.push(...suberr198.map(e => errorMerge(e, "#/properties/scale/$ref", "#/scale")));
3463
4259
  errorCount++;
3464
4260
  }
3465
4261
  }
3466
4262
  if (data.translate !== undefined && hasOwn(data, "translate")) {
3467
- const err174 = validate.errors;
3468
- const res174 = ref20(data.translate);
3469
- const suberr183 = ref20.errors;
3470
- validate.errors = err174;
3471
- if (!res174) {
4263
+ const err190 = validate.errors;
4264
+ const res190 = ref26(data.translate);
4265
+ const suberr201 = ref26.errors;
4266
+ validate.errors = err190;
4267
+ if (!res190) {
3472
4268
  if (validate.errors === null)
3473
4269
  validate.errors = [];
3474
- validate.errors.push(...suberr183.map(e => errorMerge(e, "#/properties/translate/$ref", "#/translate")));
4270
+ validate.errors.push(...suberr201.map(e => errorMerge(e, "#/properties/translate/$ref", "#/translate")));
3475
4271
  errorCount++;
3476
4272
  }
3477
4273
  }
@@ -3489,120 +4285,120 @@ const validate = (function () {
3489
4285
  validate.errors.push({ keywordLocation: "#/properties/variants/maxProperties", instanceLocation: "#/variants" });
3490
4286
  errorCount++;
3491
4287
  }
3492
- for (const key21 of Object.keys(data.variants)) {
3493
- const err175 = validate.errors;
3494
- const res175 = ref7(key21);
3495
- const suberr184 = ref7.errors;
3496
- validate.errors = err175;
3497
- if (!res175) {
4288
+ for (const key27 of Object.keys(data.variants)) {
4289
+ const err191 = validate.errors;
4290
+ const res191 = ref7(key27);
4291
+ const suberr202 = ref7.errors;
4292
+ validate.errors = err191;
4293
+ if (!res191) {
3498
4294
  if (validate.errors === null)
3499
4295
  validate.errors = [];
3500
- validate.errors.push(...suberr184.map(e => errorMerge(e, "#/properties/variants/propertyNames/$ref", "#/variants/" + pointerPart(key21))));
4296
+ validate.errors.push(...suberr202.map(e => errorMerge(e, "#/properties/variants/propertyNames/$ref", "#/variants/" + pointerPart(key27))));
3501
4297
  errorCount++;
3502
4298
  }
3503
4299
  }
3504
- for (const key22 of Object.keys(data.variants)) {
3505
- if (!(typeof data.variants[key22] === "object" && data.variants[key22] && !Array.isArray(data.variants[key22]))) {
4300
+ for (const key28 of Object.keys(data.variants)) {
4301
+ if (!(typeof data.variants[key28] === "object" && data.variants[key28] && !Array.isArray(data.variants[key28]))) {
3506
4302
  if (validate.errors === null)
3507
4303
  validate.errors = [];
3508
- validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/type", instanceLocation: "#/variants/" + pointerPart(key22) });
4304
+ validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/type", instanceLocation: "#/variants/" + pointerPart(key28) });
3509
4305
  errorCount++;
3510
4306
  }
3511
4307
  else {
3512
- if (!(data.variants[key22].elements !== undefined && hasOwn(data.variants[key22], "elements"))) {
4308
+ if (!(data.variants[key28].elements !== undefined && hasOwn(data.variants[key28], "elements"))) {
3513
4309
  if (validate.errors === null)
3514
4310
  validate.errors = [];
3515
- validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/required", instanceLocation: "#/variants/" + pointerPart(key22) + "/elements" });
4311
+ validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/required", instanceLocation: "#/variants/" + pointerPart(key28) + "/elements" });
3516
4312
  errorCount++;
3517
4313
  }
3518
- if (data.variants[key22].elements !== undefined && hasOwn(data.variants[key22], "elements")) {
3519
- if (!(Array.isArray(data.variants[key22].elements))) {
4314
+ if (data.variants[key28].elements !== undefined && hasOwn(data.variants[key28], "elements")) {
4315
+ if (!(Array.isArray(data.variants[key28].elements))) {
3520
4316
  if (validate.errors === null)
3521
4317
  validate.errors = [];
3522
- validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/elements/type", instanceLocation: "#/variants/" + pointerPart(key22) + "/elements" });
4318
+ validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/elements/type", instanceLocation: "#/variants/" + pointerPart(key28) + "/elements" });
3523
4319
  errorCount++;
3524
4320
  }
3525
4321
  else {
3526
- if (data.variants[key22].elements.length > 1024) {
4322
+ if (data.variants[key28].elements.length > 1024) {
3527
4323
  if (validate.errors === null)
3528
4324
  validate.errors = [];
3529
- validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/elements/maxItems", instanceLocation: "#/variants/" + pointerPart(key22) + "/elements" });
4325
+ validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/elements/maxItems", instanceLocation: "#/variants/" + pointerPart(key28) + "/elements" });
3530
4326
  errorCount++;
3531
4327
  }
3532
- for (let l = 0; l < data.variants[key22].elements.length; l++) {
3533
- if (data.variants[key22].elements[l] !== undefined && hasOwn(data.variants[key22].elements, l)) {
3534
- const err176 = validate.errors;
3535
- const res176 = ref10(data.variants[key22].elements[l]);
3536
- const suberr185 = ref10.errors;
3537
- validate.errors = err176;
3538
- if (!res176) {
4328
+ for (let p = 0; p < data.variants[key28].elements.length; p++) {
4329
+ if (data.variants[key28].elements[p] !== undefined && hasOwn(data.variants[key28].elements, p)) {
4330
+ const err192 = validate.errors;
4331
+ const res192 = ref10(data.variants[key28].elements[p]);
4332
+ const suberr203 = ref10.errors;
4333
+ validate.errors = err192;
4334
+ if (!res192) {
3539
4335
  if (validate.errors === null)
3540
4336
  validate.errors = [];
3541
- validate.errors.push(...suberr185.map(e => errorMerge(e, "#/properties/variants/additionalProperties/properties/elements/items/$ref", "#/variants/" + pointerPart(key22) + "elements/" + l)));
4337
+ validate.errors.push(...suberr203.map(e => errorMerge(e, "#/properties/variants/additionalProperties/properties/elements/items/$ref", "#/variants/" + pointerPart(key28) + "elements/" + p)));
3542
4338
  errorCount++;
3543
4339
  }
3544
4340
  }
3545
4341
  }
3546
4342
  }
3547
4343
  }
3548
- if (data.variants[key22].weight !== undefined && hasOwn(data.variants[key22], "weight")) {
3549
- if (!(typeof data.variants[key22].weight === "number")) {
4344
+ if (data.variants[key28].weight !== undefined && hasOwn(data.variants[key28], "weight")) {
4345
+ if (!(typeof data.variants[key28].weight === "number")) {
3550
4346
  if (validate.errors === null)
3551
4347
  validate.errors = [];
3552
- validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/weight/type", instanceLocation: "#/variants/" + pointerPart(key22) + "/weight" });
4348
+ validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/weight/type", instanceLocation: "#/variants/" + pointerPart(key28) + "/weight" });
3553
4349
  errorCount++;
3554
4350
  }
3555
4351
  else {
3556
- if (!(0 <= data.variants[key22].weight)) {
4352
+ if (!(0 <= data.variants[key28].weight)) {
3557
4353
  if (validate.errors === null)
3558
4354
  validate.errors = [];
3559
- validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/weight/minimum", instanceLocation: "#/variants/" + pointerPart(key22) + "/weight" });
4355
+ validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/weight/minimum", instanceLocation: "#/variants/" + pointerPart(key28) + "/weight" });
3560
4356
  errorCount++;
3561
4357
  }
3562
- if (!(1000000 >= data.variants[key22].weight)) {
4358
+ if (!(1000000 >= data.variants[key28].weight)) {
3563
4359
  if (validate.errors === null)
3564
4360
  validate.errors = [];
3565
- validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/weight/maximum", instanceLocation: "#/variants/" + pointerPart(key22) + "/weight" });
4361
+ validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/weight/maximum", instanceLocation: "#/variants/" + pointerPart(key28) + "/weight" });
3566
4362
  errorCount++;
3567
4363
  }
3568
4364
  }
3569
4365
  }
3570
- if (data.variants[key22].tags !== undefined && hasOwn(data.variants[key22], "tags")) {
3571
- if (!(Array.isArray(data.variants[key22].tags))) {
4366
+ if (data.variants[key28].tags !== undefined && hasOwn(data.variants[key28], "tags")) {
4367
+ if (!(Array.isArray(data.variants[key28].tags))) {
3572
4368
  if (validate.errors === null)
3573
4369
  validate.errors = [];
3574
- validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/type", instanceLocation: "#/variants/" + pointerPart(key22) + "/tags" });
4370
+ validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/type", instanceLocation: "#/variants/" + pointerPart(key28) + "/tags" });
3575
4371
  errorCount++;
3576
4372
  }
3577
4373
  else {
3578
4374
  const prev15 = errorCount;
3579
- if (data.variants[key22].tags.length > 32) {
4375
+ if (data.variants[key28].tags.length > 32) {
3580
4376
  if (validate.errors === null)
3581
4377
  validate.errors = [];
3582
- validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/maxItems", instanceLocation: "#/variants/" + pointerPart(key22) + "/tags" });
4378
+ validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/maxItems", instanceLocation: "#/variants/" + pointerPart(key28) + "/tags" });
3583
4379
  errorCount++;
3584
4380
  }
3585
- for (let m = 0; m < data.variants[key22].tags.length; m++) {
3586
- if (data.variants[key22].tags[m] !== undefined && hasOwn(data.variants[key22].tags, m)) {
3587
- if (!(typeof data.variants[key22].tags[m] === "string")) {
4381
+ for (let q = 0; q < data.variants[key28].tags.length; q++) {
4382
+ if (data.variants[key28].tags[q] !== undefined && hasOwn(data.variants[key28].tags, q)) {
4383
+ if (!(typeof data.variants[key28].tags[q] === "string")) {
3588
4384
  if (validate.errors === null)
3589
4385
  validate.errors = [];
3590
- validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/items/type", instanceLocation: "#/variants/" + pointerPart(key22) + "tags/" + m });
4386
+ validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/items/type", instanceLocation: "#/variants/" + pointerPart(key28) + "tags/" + q });
3591
4387
  errorCount++;
3592
4388
  }
3593
4389
  else {
3594
4390
  const prev16 = errorCount;
3595
- if (data.variants[key22].tags[m].length > 129 && stringLength(data.variants[key22].tags[m]) > 129) {
4391
+ if (data.variants[key28].tags[q].length > 129 && stringLength(data.variants[key28].tags[q]) > 129) {
3596
4392
  if (validate.errors === null)
3597
4393
  validate.errors = [];
3598
- validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/items/maxLength", instanceLocation: "#/variants/" + pointerPart(key22) + "tags/" + m });
4394
+ validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/items/maxLength", instanceLocation: "#/variants/" + pointerPart(key28) + "tags/" + q });
3599
4395
  errorCount++;
3600
4396
  }
3601
4397
  if (errorCount === prev16) {
3602
- if (!(pattern15.test(data.variants[key22].tags[m]))) {
4398
+ if (!(pattern15.test(data.variants[key28].tags[q]))) {
3603
4399
  if (validate.errors === null)
3604
4400
  validate.errors = [];
3605
- validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/items/pattern", instanceLocation: "#/variants/" + pointerPart(key22) + "tags/" + m });
4401
+ validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/items/pattern", instanceLocation: "#/variants/" + pointerPart(key28) + "tags/" + q });
3606
4402
  errorCount++;
3607
4403
  }
3608
4404
  }
@@ -3610,20 +4406,20 @@ const validate = (function () {
3610
4406
  }
3611
4407
  }
3612
4408
  if (errorCount === prev15) {
3613
- if (!unique(data.variants[key22].tags)) {
4409
+ if (!unique(data.variants[key28].tags)) {
3614
4410
  if (validate.errors === null)
3615
4411
  validate.errors = [];
3616
- validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/uniqueItems", instanceLocation: "#/variants/" + pointerPart(key22) + "/tags" });
4412
+ validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/uniqueItems", instanceLocation: "#/variants/" + pointerPart(key28) + "/tags" });
3617
4413
  errorCount++;
3618
4414
  }
3619
4415
  }
3620
4416
  }
3621
4417
  }
3622
- for (const key23 of Object.keys(data.variants[key22])) {
3623
- if (key23 !== "elements" && key23 !== "weight" && key23 !== "tags") {
4418
+ for (const key29 of Object.keys(data.variants[key28])) {
4419
+ if (key29 !== "elements" && key29 !== "weight" && key29 !== "tags") {
3624
4420
  if (validate.errors === null)
3625
4421
  validate.errors = [];
3626
- validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/additionalProperties", instanceLocation: "#/variants/" + pointerPart(key22) + "/" + pointerPart(key23) });
4422
+ validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/additionalProperties", instanceLocation: "#/variants/" + pointerPart(key28) + "/" + pointerPart(key29) });
3627
4423
  errorCount++;
3628
4424
  }
3629
4425
  }
@@ -3631,18 +4427,18 @@ const validate = (function () {
3631
4427
  }
3632
4428
  }
3633
4429
  }
3634
- for (const key24 of Object.keys(data)) {
3635
- if (key24 !== "width" && key24 !== "height" && key24 !== "probability" && key24 !== "rotate" && key24 !== "scale" && key24 !== "translate" && key24 !== "variants") {
4430
+ for (const key30 of Object.keys(data)) {
4431
+ if (key30 !== "width" && key30 !== "height" && key30 !== "probability" && key30 !== "rotate" && key30 !== "scale" && key30 !== "translate" && key30 !== "variants") {
3636
4432
  if (validate.errors === null)
3637
4433
  validate.errors = [];
3638
- validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key24) });
4434
+ validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key30) });
3639
4435
  errorCount++;
3640
4436
  }
3641
4437
  }
3642
4438
  }
3643
4439
  return errorCount === 0;
3644
4440
  };
3645
- const ref22 = function validate(data) {
4441
+ const ref28 = function validate(data) {
3646
4442
  validate.errors = null;
3647
4443
  let errorCount = 0;
3648
4444
  if (!(typeof data === "object" && data && !Array.isArray(data))) {
@@ -3659,22 +4455,22 @@ const validate = (function () {
3659
4455
  errorCount++;
3660
4456
  }
3661
4457
  if (data.extends !== undefined && hasOwn(data, "extends")) {
3662
- const err178 = validate.errors;
3663
- const res178 = ref13(data.extends);
3664
- const suberr187 = ref13.errors;
3665
- validate.errors = err178;
3666
- if (!res178) {
4458
+ const err194 = validate.errors;
4459
+ const res194 = ref13(data.extends);
4460
+ const suberr205 = ref13.errors;
4461
+ validate.errors = err194;
4462
+ if (!res194) {
3667
4463
  if (validate.errors === null)
3668
4464
  validate.errors = [];
3669
- validate.errors.push(...suberr187.map(e => errorMerge(e, "#/properties/extends/$ref", "#/extends")));
4465
+ validate.errors.push(...suberr205.map(e => errorMerge(e, "#/properties/extends/$ref", "#/extends")));
3670
4466
  errorCount++;
3671
4467
  }
3672
4468
  }
3673
- for (const key25 of Object.keys(data)) {
3674
- if (key25 !== "extends") {
4469
+ for (const key31 of Object.keys(data)) {
4470
+ if (key31 !== "extends") {
3675
4471
  if (validate.errors === null)
3676
4472
  validate.errors = [];
3677
- validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key25) });
4473
+ validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key31) });
3678
4474
  errorCount++;
3679
4475
  }
3680
4476
  }
@@ -3682,7 +4478,7 @@ const validate = (function () {
3682
4478
  return errorCount === 0;
3683
4479
  };
3684
4480
  const pattern16 = new RegExp("^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$", "u");
3685
- const ref23 = function validate(data) {
4481
+ const ref29 = function validate(data) {
3686
4482
  validate.errors = null;
3687
4483
  let errorCount = 0;
3688
4484
  if (!(typeof data === "string")) {
@@ -4000,14 +4796,14 @@ const validate = (function () {
4000
4796
  }
4001
4797
  for (let i = 0; i < data.canvas.elements.length; i++) {
4002
4798
  if (data.canvas.elements[i] !== undefined && hasOwn(data.canvas.elements, i)) {
4003
- const err167 = validate.errors;
4004
- const res167 = ref10(data.canvas.elements[i]);
4005
- const suberr175 = ref10.errors;
4006
- validate.errors = err167;
4007
- if (!res167) {
4799
+ const err183 = validate.errors;
4800
+ const res183 = ref10(data.canvas.elements[i]);
4801
+ const suberr193 = ref10.errors;
4802
+ validate.errors = err183;
4803
+ if (!res183) {
4008
4804
  if (validate.errors === null)
4009
4805
  validate.errors = [];
4010
- validate.errors.push(...suberr175.map(e => errorMerge(e, "#/properties/canvas/properties/elements/items/$ref", "#/canvas/elements/" + i)));
4806
+ validate.errors.push(...suberr193.map(e => errorMerge(e, "#/properties/canvas/properties/elements/items/$ref", "#/canvas/elements/" + i)));
4011
4807
  errorCount++;
4012
4808
  }
4013
4809
  }
@@ -4058,11 +4854,11 @@ const validate = (function () {
4058
4854
  }
4059
4855
  }
4060
4856
  }
4061
- for (const key14 of Object.keys(data.canvas)) {
4062
- if (key14 !== "elements" && key14 !== "width" && key14 !== "height") {
4857
+ for (const key20 of Object.keys(data.canvas)) {
4858
+ if (key20 !== "elements" && key20 !== "width" && key20 !== "height") {
4063
4859
  if (validate.errors === null)
4064
4860
  validate.errors = [];
4065
- validate.errors.push({ keywordLocation: "#/properties/canvas/additionalProperties", instanceLocation: "#/canvas/" + pointerPart(key14) });
4861
+ validate.errors.push({ keywordLocation: "#/properties/canvas/additionalProperties", instanceLocation: "#/canvas/" + pointerPart(key20) });
4066
4862
  errorCount++;
4067
4863
  }
4068
4864
  }
@@ -4082,55 +4878,55 @@ const validate = (function () {
4082
4878
  validate.errors.push({ keywordLocation: "#/properties/components/maxProperties", instanceLocation: "#/components" });
4083
4879
  errorCount++;
4084
4880
  }
4085
- for (const key15 of Object.keys(data.components)) {
4086
- const err168 = validate.errors;
4087
- const res168 = ref7(key15);
4088
- const suberr176 = ref7.errors;
4089
- validate.errors = err168;
4090
- if (!res168) {
4881
+ for (const key21 of Object.keys(data.components)) {
4882
+ const err184 = validate.errors;
4883
+ const res184 = ref7(key21);
4884
+ const suberr194 = ref7.errors;
4885
+ validate.errors = err184;
4886
+ if (!res184) {
4091
4887
  if (validate.errors === null)
4092
4888
  validate.errors = [];
4093
- validate.errors.push(...suberr176.map(e => errorMerge(e, "#/properties/components/propertyNames/$ref", "#/components/" + pointerPart(key15))));
4889
+ validate.errors.push(...suberr194.map(e => errorMerge(e, "#/properties/components/propertyNames/$ref", "#/components/" + pointerPart(key21))));
4094
4890
  errorCount++;
4095
4891
  }
4096
4892
  }
4097
- for (const key16 of Object.keys(data.components)) {
4098
- let suberr177 = null;
4099
- const sub27 = (() => {
4893
+ for (const key22 of Object.keys(data.components)) {
4894
+ let suberr195 = null;
4895
+ const sub33 = (() => {
4100
4896
  let errorCount = 0;
4101
- const err177 = validate.errors;
4102
- const res177 = ref16(data.components[key16]);
4103
- const suberr186 = ref16.errors;
4104
- validate.errors = err177;
4105
- if (!res177) {
4897
+ const err193 = validate.errors;
4898
+ const res193 = ref22(data.components[key22]);
4899
+ const suberr204 = ref22.errors;
4900
+ validate.errors = err193;
4901
+ if (!res193) {
4106
4902
  if (validate.errors === null)
4107
4903
  validate.errors = [];
4108
- validate.errors.push(...suberr186.map(e => errorMerge(e, "#/properties/components/additionalProperties/anyOf/0/$ref", "#/components/" + pointerPart(key16))));
4904
+ validate.errors.push(...suberr204.map(e => errorMerge(e, "#/properties/components/additionalProperties/anyOf/0/$ref", "#/components/" + pointerPart(key22))));
4109
4905
  errorCount++;
4110
4906
  }
4111
4907
  return errorCount === 0;
4112
4908
  })();
4113
- if (!sub27) {
4114
- const sub28 = (() => {
4909
+ if (!sub33) {
4910
+ const sub34 = (() => {
4115
4911
  let errorCount = 0;
4116
- const err179 = validate.errors;
4117
- const res179 = ref22(data.components[key16]);
4118
- const suberr188 = ref22.errors;
4119
- validate.errors = err179;
4120
- if (!res179) {
4912
+ const err195 = validate.errors;
4913
+ const res195 = ref28(data.components[key22]);
4914
+ const suberr206 = ref28.errors;
4915
+ validate.errors = err195;
4916
+ if (!res195) {
4121
4917
  if (validate.errors === null)
4122
4918
  validate.errors = [];
4123
- validate.errors.push(...suberr188.map(e => errorMerge(e, "#/properties/components/additionalProperties/anyOf/1/$ref", "#/components/" + pointerPart(key16))));
4919
+ validate.errors.push(...suberr206.map(e => errorMerge(e, "#/properties/components/additionalProperties/anyOf/1/$ref", "#/components/" + pointerPart(key22))));
4124
4920
  errorCount++;
4125
4921
  }
4126
4922
  return errorCount === 0;
4127
4923
  })();
4128
- if (!sub28) {
4924
+ if (!sub34) {
4129
4925
  if (validate.errors === null)
4130
4926
  validate.errors = [];
4131
- validate.errors.push({ keywordLocation: "#/properties/components/additionalProperties/anyOf", instanceLocation: "#/components/" + pointerPart(key16) });
4132
- if (suberr177)
4133
- validate.errors.push(...suberr177);
4927
+ validate.errors.push({ keywordLocation: "#/properties/components/additionalProperties/anyOf", instanceLocation: "#/components/" + pointerPart(key22) });
4928
+ if (suberr195)
4929
+ validate.errors.push(...suberr195);
4134
4930
  errorCount++;
4135
4931
  }
4136
4932
  }
@@ -4151,115 +4947,115 @@ const validate = (function () {
4151
4947
  validate.errors.push({ keywordLocation: "#/properties/colors/maxProperties", instanceLocation: "#/colors" });
4152
4948
  errorCount++;
4153
4949
  }
4154
- for (const key26 of Object.keys(data.colors)) {
4155
- const err180 = validate.errors;
4156
- const res180 = ref7(key26);
4157
- const suberr189 = ref7.errors;
4158
- validate.errors = err180;
4159
- if (!res180) {
4950
+ for (const key32 of Object.keys(data.colors)) {
4951
+ const err196 = validate.errors;
4952
+ const res196 = ref7(key32);
4953
+ const suberr207 = ref7.errors;
4954
+ validate.errors = err196;
4955
+ if (!res196) {
4160
4956
  if (validate.errors === null)
4161
4957
  validate.errors = [];
4162
- validate.errors.push(...suberr189.map(e => errorMerge(e, "#/properties/colors/propertyNames/$ref", "#/colors/" + pointerPart(key26))));
4958
+ validate.errors.push(...suberr207.map(e => errorMerge(e, "#/properties/colors/propertyNames/$ref", "#/colors/" + pointerPart(key32))));
4163
4959
  errorCount++;
4164
4960
  }
4165
4961
  }
4166
- for (const key27 of Object.keys(data.colors)) {
4167
- if (!(typeof data.colors[key27] === "object" && data.colors[key27] && !Array.isArray(data.colors[key27]))) {
4962
+ for (const key33 of Object.keys(data.colors)) {
4963
+ if (!(typeof data.colors[key33] === "object" && data.colors[key33] && !Array.isArray(data.colors[key33]))) {
4168
4964
  if (validate.errors === null)
4169
4965
  validate.errors = [];
4170
- validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/type", instanceLocation: "#/colors/" + pointerPart(key27) });
4966
+ validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/type", instanceLocation: "#/colors/" + pointerPart(key33) });
4171
4967
  errorCount++;
4172
4968
  }
4173
4969
  else {
4174
- if (!(data.colors[key27].values !== undefined && hasOwn(data.colors[key27], "values"))) {
4970
+ if (!(data.colors[key33].values !== undefined && hasOwn(data.colors[key33], "values"))) {
4175
4971
  if (validate.errors === null)
4176
4972
  validate.errors = [];
4177
- validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/required", instanceLocation: "#/colors/" + pointerPart(key27) + "/values" });
4973
+ validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/required", instanceLocation: "#/colors/" + pointerPart(key33) + "/values" });
4178
4974
  errorCount++;
4179
4975
  }
4180
- if (data.colors[key27].values !== undefined && hasOwn(data.colors[key27], "values")) {
4181
- if (!(Array.isArray(data.colors[key27].values))) {
4976
+ if (data.colors[key33].values !== undefined && hasOwn(data.colors[key33], "values")) {
4977
+ if (!(Array.isArray(data.colors[key33].values))) {
4182
4978
  if (validate.errors === null)
4183
4979
  validate.errors = [];
4184
- validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/properties/values/type", instanceLocation: "#/colors/" + pointerPart(key27) + "/values" });
4980
+ validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/properties/values/type", instanceLocation: "#/colors/" + pointerPart(key33) + "/values" });
4185
4981
  errorCount++;
4186
4982
  }
4187
4983
  else {
4188
- if (data.colors[key27].values.length > 128) {
4984
+ if (data.colors[key33].values.length > 128) {
4189
4985
  if (validate.errors === null)
4190
4986
  validate.errors = [];
4191
- validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/properties/values/maxItems", instanceLocation: "#/colors/" + pointerPart(key27) + "/values" });
4987
+ validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/properties/values/maxItems", instanceLocation: "#/colors/" + pointerPart(key33) + "/values" });
4192
4988
  errorCount++;
4193
4989
  }
4194
- if (data.colors[key27].values.length < 1) {
4990
+ if (data.colors[key33].values.length < 1) {
4195
4991
  if (validate.errors === null)
4196
4992
  validate.errors = [];
4197
- validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/properties/values/minItems", instanceLocation: "#/colors/" + pointerPart(key27) + "/values" });
4993
+ validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/properties/values/minItems", instanceLocation: "#/colors/" + pointerPart(key33) + "/values" });
4198
4994
  errorCount++;
4199
4995
  }
4200
- for (let n = 0; n < data.colors[key27].values.length; n++) {
4201
- if (data.colors[key27].values[n] !== undefined && hasOwn(data.colors[key27].values, n)) {
4202
- const err181 = validate.errors;
4203
- const res181 = ref23(data.colors[key27].values[n]);
4204
- const suberr190 = ref23.errors;
4205
- validate.errors = err181;
4206
- if (!res181) {
4996
+ for (let r = 0; r < data.colors[key33].values.length; r++) {
4997
+ if (data.colors[key33].values[r] !== undefined && hasOwn(data.colors[key33].values, r)) {
4998
+ const err197 = validate.errors;
4999
+ const res197 = ref29(data.colors[key33].values[r]);
5000
+ const suberr208 = ref29.errors;
5001
+ validate.errors = err197;
5002
+ if (!res197) {
4207
5003
  if (validate.errors === null)
4208
5004
  validate.errors = [];
4209
- validate.errors.push(...suberr190.map(e => errorMerge(e, "#/properties/colors/additionalProperties/properties/values/items/$ref", "#/colors/" + pointerPart(key27) + "values/" + n)));
5005
+ validate.errors.push(...suberr208.map(e => errorMerge(e, "#/properties/colors/additionalProperties/properties/values/items/$ref", "#/colors/" + pointerPart(key33) + "values/" + r)));
4210
5006
  errorCount++;
4211
5007
  }
4212
5008
  }
4213
5009
  }
4214
5010
  }
4215
5011
  }
4216
- if (data.colors[key27].notEqualTo !== undefined && hasOwn(data.colors[key27], "notEqualTo")) {
4217
- if (!(Array.isArray(data.colors[key27].notEqualTo))) {
5012
+ if (data.colors[key33].notEqualTo !== undefined && hasOwn(data.colors[key33], "notEqualTo")) {
5013
+ if (!(Array.isArray(data.colors[key33].notEqualTo))) {
4218
5014
  if (validate.errors === null)
4219
5015
  validate.errors = [];
4220
- validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/properties/notEqualTo/type", instanceLocation: "#/colors/" + pointerPart(key27) + "/notEqualTo" });
5016
+ validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/properties/notEqualTo/type", instanceLocation: "#/colors/" + pointerPart(key33) + "/notEqualTo" });
4221
5017
  errorCount++;
4222
5018
  }
4223
5019
  else {
4224
- if (data.colors[key27].notEqualTo.length > 64) {
5020
+ if (data.colors[key33].notEqualTo.length > 64) {
4225
5021
  if (validate.errors === null)
4226
5022
  validate.errors = [];
4227
- validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/properties/notEqualTo/maxItems", instanceLocation: "#/colors/" + pointerPart(key27) + "/notEqualTo" });
5023
+ validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/properties/notEqualTo/maxItems", instanceLocation: "#/colors/" + pointerPart(key33) + "/notEqualTo" });
4228
5024
  errorCount++;
4229
5025
  }
4230
- for (let o = 0; o < data.colors[key27].notEqualTo.length; o++) {
4231
- if (data.colors[key27].notEqualTo[o] !== undefined && hasOwn(data.colors[key27].notEqualTo, o)) {
4232
- const err182 = validate.errors;
4233
- const res182 = ref6(data.colors[key27].notEqualTo[o]);
4234
- const suberr191 = ref6.errors;
4235
- validate.errors = err182;
4236
- if (!res182) {
5026
+ for (let s = 0; s < data.colors[key33].notEqualTo.length; s++) {
5027
+ if (data.colors[key33].notEqualTo[s] !== undefined && hasOwn(data.colors[key33].notEqualTo, s)) {
5028
+ const err198 = validate.errors;
5029
+ const res198 = ref6(data.colors[key33].notEqualTo[s]);
5030
+ const suberr209 = ref6.errors;
5031
+ validate.errors = err198;
5032
+ if (!res198) {
4237
5033
  if (validate.errors === null)
4238
5034
  validate.errors = [];
4239
- validate.errors.push(...suberr191.map(e => errorMerge(e, "#/properties/colors/additionalProperties/properties/notEqualTo/items/$ref", "#/colors/" + pointerPart(key27) + "notEqualTo/" + o)));
5035
+ validate.errors.push(...suberr209.map(e => errorMerge(e, "#/properties/colors/additionalProperties/properties/notEqualTo/items/$ref", "#/colors/" + pointerPart(key33) + "notEqualTo/" + s)));
4240
5036
  errorCount++;
4241
5037
  }
4242
5038
  }
4243
5039
  }
4244
5040
  }
4245
5041
  }
4246
- if (data.colors[key27].contrastTo !== undefined && hasOwn(data.colors[key27], "contrastTo")) {
4247
- const err183 = validate.errors;
4248
- const res183 = ref6(data.colors[key27].contrastTo);
4249
- const suberr192 = ref6.errors;
4250
- validate.errors = err183;
4251
- if (!res183) {
5042
+ if (data.colors[key33].contrastTo !== undefined && hasOwn(data.colors[key33], "contrastTo")) {
5043
+ const err199 = validate.errors;
5044
+ const res199 = ref6(data.colors[key33].contrastTo);
5045
+ const suberr210 = ref6.errors;
5046
+ validate.errors = err199;
5047
+ if (!res199) {
4252
5048
  if (validate.errors === null)
4253
5049
  validate.errors = [];
4254
- validate.errors.push(...suberr192.map(e => errorMerge(e, "#/properties/colors/additionalProperties/properties/contrastTo/$ref", "#/colors/" + pointerPart(key27) + "/contrastTo")));
5050
+ validate.errors.push(...suberr210.map(e => errorMerge(e, "#/properties/colors/additionalProperties/properties/contrastTo/$ref", "#/colors/" + pointerPart(key33) + "/contrastTo")));
4255
5051
  errorCount++;
4256
5052
  }
4257
5053
  }
4258
- for (const key28 of Object.keys(data.colors[key27])) {
4259
- if (key28 !== "values" && key28 !== "notEqualTo" && key28 !== "contrastTo") {
5054
+ for (const key34 of Object.keys(data.colors[key33])) {
5055
+ if (key34 !== "values" && key34 !== "notEqualTo" && key34 !== "contrastTo") {
4260
5056
  if (validate.errors === null)
4261
5057
  validate.errors = [];
4262
- validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/additionalProperties", instanceLocation: "#/colors/" + pointerPart(key27) + "/" + pointerPart(key28) });
5058
+ validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/additionalProperties", instanceLocation: "#/colors/" + pointerPart(key33) + "/" + pointerPart(key34) });
4263
5059
  errorCount++;
4264
5060
  }
4265
5061
  }
@@ -4267,11 +5063,11 @@ const validate = (function () {
4267
5063
  }
4268
5064
  }
4269
5065
  }
4270
- for (const key29 of Object.keys(data)) {
4271
- if (key29 !== "$id" && key29 !== "$schema" && key29 !== "$comment" && key29 !== "meta" && key29 !== "attributes" && key29 !== "canvas" && key29 !== "components" && key29 !== "colors") {
5066
+ for (const key35 of Object.keys(data)) {
5067
+ if (key35 !== "$id" && key35 !== "$schema" && key35 !== "$comment" && key35 !== "meta" && key35 !== "attributes" && key35 !== "canvas" && key35 !== "components" && key35 !== "colors") {
4272
5068
  if (validate.errors === null)
4273
5069
  validate.errors = [];
4274
- validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key29) });
5070
+ validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key35) });
4275
5071
  errorCount++;
4276
5072
  }
4277
5073
  }