"use strict";!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.Breadcrumbs=t()}(window,function(){return function(t,e){let n=t.querySelector("ol, ul"),d=t.querySelectorAll("li"),r;const i=e=>{var t=document.createElement("a");t.textContent="...",t.href="#",t.addEventListener("click",c),(r=document.createElement("li")).classList.add("expandable"),r.appendChild(t),n.insertBefore(r,n.children[e]),n.tabIndex=-1},a=e=>{o(),(e.matches&&5<d.length||!e.matches&&2<d.length)&&(t.setAttribute("aria-expanded",!1),i(d.length-2))},o=()=>{r&&r.parentNode.removeChild(r)},c=e=>{o(),t.setAttribute("aria-expanded",!0),n.focus()};var l;return l=window.matchMedia("(min-width: 768px)"),a(l),l.addListener(a),{}}});