text: function Accordion(e,l){var t,n,i=this;l?(t=l,n={container:e,panel:".panel"}):(t={hideAll:!1,showAll:!1,showFirst:!1,panelId:null},n={container:".accordion-container",panel:".panel"}),i.settings=t,i.classes=n;var s=document.querySelectorAll(i.classes.panel);s.forEach(function(e){e.addEventListener("click",function(){i.togglePanel(e)})}),this.togglePanel=function(e){e.classList.toggle("active");var l=e.children[1];l.style.maxHeight?l.style.maxHeight=null:l.style.maxHeight=l.scrollHeight+"px"},this.togglePanelById=function(e){var l=document.querySelectorAll(".panel")[e];i.togglePanel(l)},this.showAll=function(){s.forEach(function(e){e.classList.add("active");var l=e.children[1];l.style.maxHeight=l.scrollHeight+"px"})},this.hideAll=function(){s.forEach(function(e){e.classList.remove("active"),e.children[1].style.maxHeight=null})},i.settings.showAll&&i.showAll(),i.settings.hideAll&&i.hideAll(),i.settings.showFirst&&i.togglePanelById(parseInt(i.settings.panelId))}