// Extract// Extract the parameters of an URL string// @param string s, string to decodeexportdefault (str, match_params, formatFunction = x => x) => {
const a = {};
let m;
while ((m = match_params.exec(str))) {
a[m[1]] = formatFunction(m[2]);
}
return a;
};