| 1020 | : n; |
| 1021 | } |
| 1022 | function In(e, t) { |
| 1023 | const n = e.value, |
| 1024 | i = t.value; |
| 1025 | if (null == n || null === i) return { explicit: e.explicit, value: null }; |
| 1026 | if (($n(n) || wn(n)) && ($n(i) || wn(i))) |
| 1027 | return { explicit: e.explicit, value: Wn(n, i) }; |
| 1028 | if ($n(n) || wn(n)) return { explicit: e.explicit, value: n }; |
| 1029 | if ($n(i) || wn(i)) return { explicit: e.explicit, value: i }; |
| 1030 | if (!($n(n) || wn(n) || $n(i) || wn(i))) |
| 1031 | return { explicit: e.explicit, value: Un(n, i) }; |
| 1032 | throw new Error("It should never reach here"); |
| 1033 | } |
| 1034 | function Bn(e) { |
| 1035 | return `Invalid specification ${Q(e)}. Make sure the specification includes at least one of the following properties: "mark", "layer", "facet", "hconcat", "vconcat", "concat", or "repeat".`; |
| 1036 | } |