First line is an integer $T$, indicating the number of test cases. For each test case:
First line is 2 integers $n,q$, indicating the length of initial list and the number of operations.
Next line is $n$ integers $a_1,a_2,\ldots,a_n$, indicating the initial list.
Next $q$ line, one operation per line. The $i$-th line could be 3 integers ($1,l_i,r_i$), indicating the first type operation, or 2 integers ($2,x_i$), indicating the second type operation.
$1\le T \le 10,$ $1\le n,q\le 10^5,$ $1\le a_i\le 10^9,$ $\sum n \le 10^5,$ $\sum q \le 10^5,$ $1\le x_i,l_i,r_i \le n,$ the sum of the number of first type operations (all test cases together) not exceeds $20000$.