'),r=Object.entries(a).sort(function(a,e){return a[1]>e[1]?-1:a[1]",{"class":"domain-tag","data-domain":n,text:n+" ("+i[1]+")",click:function(a,e){return function(){filterPapersByDomain(a,e)}}(e,n)});t.append(o)}t.insertAfter("#area-tab")}function filterPapersByDomain(a,e){$(".paper").each(function(){var t=$(this),r="all"===a||t.data("area")===a,i=t.data("domain")===e;t.toggle(r&&i)}),showYear(),$(".domain-tag").removeClass("active"),$('.domain-tag[data-domain="'+e+'"]').addClass("active")}$(document).ready(filterPapers("all"));