"use strict";var domReady=function(e){"interactive"===document.readyState||"complete"===document.readyState?e():document.addEventListener("DOMContentLoaded",e)},hidePagination=function(){document.body.classList.add("toggle-hide")},loadMore=function(){var e=document.getElementById("more-link");if(e){if(null===document.getElementById("articles-more")){var t=document.createElement("div");e.parentNode.insertBefore(t,e),t.appendChild(e),t.setAttribute("id","articles-more")}t.addEventListener("click",function(e){var t=e.target;"A"==t.tagName&&t.classList.contains("more-link")&&(e.preventDefault(),t.innerHTML="Loading...",fetch(t.getAttribute("data-next")).then(function(e){return e.text()}).then(function(e){t.parentNode.insertAdjacentHTML("beforeend",e),t.parentNode.removeChild(t)}))})}};domReady(function(){loadMore(),hidePagination()});