get_default = () => {
const params = new URL(document.URL).searchParams;
const defaults = {
lang: "en",
property: "P21",
term: "Q114425478"
};
if (params.has("property")) {
defaults.property = params.get("property");
}
if (params.has("term")) {
defaults.term = params.get("term");
}
if (params.has("lang")) {
defaults.lang = params.get("lang");
}
return defaults;
}