In the first line contains a single positive integer T, indicating number of test case.
In the second line there are two numbers n,m.n is the size of Duoladuo.m is the number of Liao's questions.
The next line contains n integers A1, A2, ...AN, means the value of i point.
In the next n-1 line contains tow numbers u,v.It means there is a edge between point u and point v.
The next m lines will be the Liao's question:
1 u v a b.
2 u v a b.
$1\le T\le 10,1\le n\le 100000,1\le m\le 100000,1\le op\le 2,1\le u,v\le n,1\le a,b\le n,1\leq A[i] \leq 1000000000$.