You are the proud... never mind, just solve this problem.
There are $$$n$$$ intervals $$$[l_1, r_1], [l_2, r_2], \ldots [l_n, r_n]$$$. For each $$$x$$$ from $$$0$$$ to $$$2^m - 1$$$, find the number, modulo $$$998\,244\,353$$$, of sequences $$$a_1, a_2, \ldots a_n$$$ such that:
Each test contains multiple test cases. The first line contains the number of test cases $$$t$$$ ($$$1 \le t \le 10^4$$$). The description of the test cases follows.
The first line contains two integers $$$n$$$ and $$$m$$$ ($$$1 \leq n \leq 2 \cdot 10^5$$$, $$$1 \leq m \leq 18$$$).
The $$$i$$$-th of the next $$$n$$$ lines contains two integers $$$l_i$$$ and $$$r_i$$$ ($$$0 \leq l_i \leq r_i \lt 2^m$$$).
It is guaranteed that the sum of $$$n$$$ over all test cases does not exceed $$$2 \cdot 10^5$$$, and the sum of $$$2^m$$$ over all test cases does not exceed $$$2^{18}$$$.
For each $$$x$$$ from $$$0$$$ to $$$2^m - 1$$$, let:
Here, $$$f_x$$$ and $$$g_x$$$ are both integers in the interval $$$[0, 998\,244\,352]$$$.
Let $$$h = g_0 \oplus g_1 \oplus \ldots \oplus g_{2^m - 1}$$$.
Output a single integer — the value of $$$h$$$ itself. Do not perform a modulo operation.
42 20 21 35 33 71 30 21 53 610 14314 1592653 5897932 3846264 3383279 5028841 9716939 9375105 8209749 4459230 78161 50 29
22 9812 75032210 1073741823
For the first test case, the values of $$$f_x$$$ are as follows:
The values of $$$g_x$$$ are as follows:
Thus, the value to output is $$$2 \oplus 4 \oplus 8 \oplus 24 = 22$$$.
For the second test case, the values of $$$f_x$$$ are as follows:
| Name |
|---|


