cdnjs.cloudflare.com Open in urlscan Pro
2606:4700::6811:190e  Public Scan

URL: https://cdnjs.cloudflare.com/ajax/libs/jQuery.mmenu/9.3.0/mmenu.min.js
Submission Tags: falconsandbox
Submission: On December 03 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

(()=>{"use strict";const s={hooks:{},navbar:{add:!0,title:"Menu",titleLink:"parent"},slidingSubmenus:!0},i={classNames:{divider:"Divider",nolistview:"NoListview",nopanel:"NoPanel",panel:"Panel",selected:"Selected",vertical:"Vertical"},language:null,panelNodetype:["ul","ol","div"],screenReader:{closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}},r=(e,t)=>{for(var n in"object"!=o(e)&&(e={}),t="object"!=o(t)?{}:t)t.hasOwnProperty(n)&&(void 0===e[n]?e[n]=t[n]:"object"==o(e[n])&&r(e[n],t[n]));return e},o=e=>({}).toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase(),a=()=>"mm-"+e++;let e=0;const l=e=>"mm-clone-"==e.slice(0,9)?e:"mm-clone-"+e,m=e=>"mm-clone-"==e.slice(0,9)?e.slice(9):e,n={},c=(e,t)=>{void 0===n[t]&&(n[t]={}),r(n[t],e)},d=e=>{const t=e.split("."),n=document.createElement(t.shift());return n.classList.add(...t),n},h=(e,t)=>t.length?[].slice.call(e.querySelectorAll(t)):[],p=(e,t)=>{const n=Array.prototype.slice.call(e.children);return t?n.filter(e=>e.matches(t)):n},u=(e,t)=>{let n=[],s=e.parentElement;for(;s;)n.push(s),s=s.parentElement;return t?n.filter(e=>e.matches(t)):n},f=e=>e.filter(e=>!e.matches(".mm-hidden")),b=e=>{let t=[];return f(e).forEach(e=>{t.push(...p(e,"a.mm-listitem__text"))}),t.filter(e=>!e.matches(".mm-btn--next"))},v=(e,t,n)=>{e.matches("."+t)&&e.classList.add(n)};let g={};const L=(e,t,n)=>{"number"==typeof e&&(e="(min-width: "+e+"px)"),g[e]=g[e]||[],g[e].push({yes:t,no:n})},_=(t,e)=>{var n=e.matches?"yes":"no";for(let e=0;e<g[t].length;e++)g[t][e][n]()};function t(e,t,n){if(t.has(e))return t.set(e,n);throw new TypeError("attempted to set private field on non-instance")}function E(e,t){if(t.has(e))return t.get(e);throw new TypeError("attempted to get private field on non-instance")}var w,P,y;c({"Close submenu":"Untermenü schließen",Menu:"Menü","Open submenu":"Untermenü öffnen","Toggle submenu":"Untermenü wechseln"},"de"),c({"Close submenu":"بستن زیرمنو",Menu:"منو","Open submenu":"بازکردن زیرمنو","Toggle submenu":"سوییچ زیرمنو"},"fa"),c({"Close submenu":"Submenu sluiten",Menu:"Menu","Open submenu":"Submenu openen","Toggle submenu":"Submenu wisselen"},"nl"),c({"Close submenu":"Fechar submenu",Menu:"Menu","Open submenu":"Abrir submenu","Toggle submenu":"Alternar submenu"},"pt_br"),c({"Close submenu":"Закрыть подменю",Menu:"Меню","Open submenu":"Открыть подменю","Toggle submenu":"Переключить подменю"},"ru"),c({"Close submenu":"Zatvoriť submenu",Menu:"Menu","Open submenu":"Otvoriť submenu","Toggle submenu":"Prepnúť submenu"},"sk"),c({"Close submenu":"Закрити підменю",Menu:"Меню","Open submenu":"Відкрити підменю","Toggle submenu":"Перемкнути підменю"},"uk");class S{constructor(e,t,n){w.set(this,void 0),P.set(this,void 0),y.set(this,void 0),this.opts=r(t,s),this.conf=r(n,i),this._api=["i18n","bind","openPanel","closePanel","setSelected"],this.node={},this.hook={},this.node.menu="string"==typeof e?document.querySelector(e):e,"function"==typeof this._deprecatedWarnings&&this._deprecatedWarnings(),this.trigger("init:before"),this._initObservers(),this._initAddons(),this._initHooks(),this._initAPI(),this._initMenu(),this._initPanels(),this._initOpened();for(let n in g){let t=window.matchMedia(n);_(n,t),t.onchange=e=>{_(n,t)}}return this.trigger("init:after"),this}openPanel(t,n=!0,s=!0){if(t){t=t.closest(".mm-panel"),this.trigger("openPanel:before",[t,{animation:n,setfocus:s}]);const i=t.closest(".mm-listitem--vertical");if(i){i.classList.add("mm-listitem--opened");const t=i.closest(".mm-panel");this.openPanel(t)}else{const s=p(this.node.pnls,".mm-panel--opened")[0],i=(t.matches(".mm-panel--parent")&&s&&s.classList.add("mm-panel--highest"),["mm-panel--opened","mm-panel--parent"]),a=[];(n?i:a).push("mm-panel--noanimation"),p(this.node.pnls,".mm-panel").forEach(e=>{e.classList.add(...a),e.classList.remove(...i),e!==s&&e.classList.remove("mm-panel--highest"),e===t?e.removeAttribute("inert"):e.setAttribute("inert","true")}),t.classList.add("mm-panel--opened");let e=h(this.node.pnls,"#"+t.dataset.mmParent)[0];for(;e;)(e=e.closest(".mm-panel")).classList.add("mm-panel--parent"),e=h(this.node.pnls,"#"+e.dataset.mmParent)[0]}this.trigger("openPanel:after",[t,{animation:n,setfocus:s}])}}closePanel(e,t=!0,n=!0){var s;e&&(e.matches(".mm-panel--opened")||e.parentElement.matches(".mm-listitem--opened"))&&(this.trigger("closePanel:before",[e]),e.parentElement.matches(".mm-listitem--vertical")?e.parentElement.classList.remove("mm-listitem--opened"):e.dataset.mmParent?(s=h(this.node.pnls,"#"+e.dataset.mmParent)[0],this.openPanel(s,t,n)):(s=p(this.node.pnls,".mm-panel--parent").pop())&&s!==e?this.openPanel(s,t,n):(s=p(this.node.pnls,".mm-panel")[0])&&s!==e&&this.openPanel(s,t,n),this.trigger("closePanel:after",[e]))}togglePanel(e){let t="openPanel";this[t=e.parentElement.matches(".mm-listitem--opened")||e.matches(".mm-panel--opened")?"closePanel":t](e)}setSelected(e){this.trigger("setSelected:before",[e]),h(this.node.menu,".mm-listitem--selected").forEach(e=>{e.classList.remove("mm-listitem--selected")}),e.classList.add("mm-listitem--selected"),this.trigger("setSelected:after",[e])}bind(e,t){this.hook[e]=this.hook[e]||[],this.hook[e].push(t)}trigger(e,t){if(this.hook[e])for(var n=0,s=this.hook[e].length;n<s;n++)this.hook[e][n].apply(this,t)}_initObservers(){t(this,w,new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{e.matches(this.conf.panelNodetype.join(", "))&&this._initListview(e)})})})),t(this,P,new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{this._initListitem(e)})})})),t(this,y,new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{null!=e&&e.matches(this.conf.panelNodetype.join(", "))&&this._initSubPanel(e)})})}))}_initAPI(){const t=this;this.API={},this._api.forEach(e=>{this.API[e]=function(){return t[e].apply(t,arguments)}}),this.node.menu.mmApi=this.API}_initHooks(){for(var e in this.opts.hooks)this.bind(e,this.opts.hooks[e])}_initAddons(){for(var e in this.trigger("initAddons:before"),S.addons)S.addons[e].call(this);this.trigger("initAddons:after")}_initMenu(){this.trigger("initMenu:before"),this.node.wrpr=this.node.wrpr||this.node.menu.parentElement,this.node.wrpr.classList.add("mm-wrapper"),this.node.menu.classList.add("mm-menu"),this.node.menu.id=this.node.menu.id||a(),this.node.menu.setAttribute("aria-label",this.i18n(this.opts.navbar.title||"Menu")),this.node.menu.setAttribute("aria-modal","true"),this.node.menu.setAttribute("role","dialog");const e=p(this.node.menu).filter(e=>e.matches(this.conf.panelNodetype.join(", ")));this.node.pnls=d("div.mm-panels"),this.node.menu.append(this.node.pnls),e.forEach(e=>{this._initPanel(e)}),this.trigger("initMenu:after")}_initPanels(){this.trigger("initPanels:before"),this.node.menu.addEventListener("click",e=>{var t;const n=(null==(t=null==(t=e.target)?void 0:t.closest("a[href]"))?void 0:t.getAttribute("href"))||"";if("#"===n.slice(0,1))try{const t=h(this.node.menu,n)[0];t&&(e.preventDefault(),this.togglePanel(t))}catch(e){}},{capture:!0}),this.trigger("initPanels:after")}_initPanel(t){var n;if(!t.matches(".mm-panel")&&(v(t,this.conf.classNames.panel,"mm-panel"),v(t,this.conf.classNames.nopanel,"mm-nopanel"),!t.matches(".mm-nopanel"))){if(this.trigger("initPanel:before",[t]),t.id=t.id||a(),t.matches("ul, ol")){const n=d("div");n.id=t.id,t.removeAttribute("id"),[].slice.call(t.classList).filter(e=>"mm-"===e.slice(0,3)).forEach(e=>{n.classList.add(e),t.classList.remove(e)}),Object.keys(t.dataset).filter(e=>"mm"===e.slice(0,2)).forEach(e=>{n.dataset[e]=t.dataset[e],delete t.dataset[e]}),t.before(n),n.append(t),t=n}return t.classList.add("mm-panel"),null!=(n=t.parentElement)&&n.matches(".mm-listitem--vertical")||this.node.pnls.append(t),this._initNavbar(t),p(t,"ul, ol").forEach(e=>{this._initListview(e)}),E(this,w).observe(t,{childList:!0}),this.trigger("initPanel:after",[t]),t}}_initNavbar(s){if(!p(s,".mm-navbar").length){let t=null,n=null;if(s.dataset.mmParent)for(t=h(this.node.pnls,"#"+s.dataset.mmParent)[0],n=t.closest(".mm-panel");n.closest(".mm-listitem--vertical");)n=n.parentElement.closest(".mm-panel");if(null==t||!t.matches(".mm-listitem--vertical")){this.trigger("initNavbar:before",[s]);const a=d("div.mm-navbar");if(this.opts.navbar.add||a.classList.add("mm-hidden"),n){const s=d("a.mm-btn.mm-btn--prev.mm-navbar__btn");s.href="#"+n.id,s.setAttribute("aria-label",this.i18n(this.conf.screenReader.closeSubmenu)),a.append(s)}let e=null;t?e=p(t,".mm-listitem__text")[0]:n&&(e=h(n,'a[href="#'+s.id+'"]')[0]);const o=d("a.mm-navbar__title");switch(o.tabIndex=-1,o.setAttribute("aria-hidden","true"),this.opts.navbar.titleLink){case"anchor":e&&(o.href=e.getAttribute("href"));break;case"parent":n&&(o.href="#"+n.id)}const r=d("span");var i;r.innerHTML=s.dataset.mmTitle||((i=e)?[].slice.call(i.childNodes).filter(e=>e.nodeType===Node.TEXT_NODE).map(e=>e.nodeValue.trim()).join(" "):"")||this.i18n(this.opts.navbar.title||"Menu"),s.prepend(a),a.append(o),o.append(r),this.trigger("initNavbar:after",[s])}}}_initListview(e){!["htmlulistelement","htmlolistelement"].includes(o(e))||e.matches(".mm-listview")||(v(e,this.conf.classNames.nolistview,"mm-nolistview"),e.matches(".mm-nolistview")||(this.trigger("initListview:before",[e]),e.classList.add("mm-listview"),p(e).forEach(e=>{this._initListitem(e)}),E(this,P).observe(e,{childList:!0}),this.trigger("initListview:after",[e])))}_initListitem(e){!["htmllielement"].includes(o(e))||e.matches(".mm-listitem")||(v(e,this.conf.classNames.divider,"mm-divider"),e.matches(".mm-divider")||(this.trigger("initListitem:before",[e]),e.classList.add("mm-listitem"),v(e,this.conf.classNames.selected,"mm-listitem--selected"),p(e,"a, span").forEach(e=>{e.classList.add("mm-listitem__text")}),p(e,this.conf.panelNodetype.join(", ")).forEach(e=>{this._initSubPanel(e)}),E(this,y).observe(e,{childList:!0}),this.trigger("initListitem:after",[e])))}_initSubPanel(e){if(!e.matches(".mm-panel")){const n=e.parentElement;!e.matches("."+this.conf.classNames.vertical)&&this.opts.slidingSubmenus||n.classList.add("mm-listitem--vertical"),n.id=n.id||a(),e.id=e.id||a(),n.dataset.mmChild=e.id,e.dataset.mmParent=n.id;let t=p(n,".mm-btn")[0];t||(t=d("a.mm-btn.mm-btn--next.mm-listitem__btn"),p(n,"a, span").forEach(e=>{e.matches("span")?(t.classList.add("mm-listitem__text"),t.innerHTML=e.innerHTML,n.insertBefore(t,e.nextElementSibling),e.remove()):n.insertBefore(t,e.nextElementSibling)}),t.setAttribute("aria-label",this.i18n(this.conf.screenReader[n.matches(".mm-listitem--vertical")?"toggleSubmenu":"openSubmenu"]))),t.href="#"+e.id,this._initPanel(e)}}_initOpened(){this.trigger("initOpened:before");const e=h(this.node.pnls,".mm-listitem--selected").pop();let t=p(this.node.pnls,".mm-panel")[0];e&&(this.setSelected(e),t=e.closest(".mm-panel")),this.openPanel(t,!1,!1),this.trigger("initOpened:after")}i18n(e){return e=e,"string"==typeof(t=this.conf.language)&&void 0!==n[t]&&n[t][e]||e;var t}static i18n(e={},t=""){if(!e||!t)return n;c(e,t)}}w=new WeakMap,P=new WeakMap,y=new WeakMap,S.addons={},S.node={},S.vars={};const M={use:!0,position:"left"},k={clone:!1,menu:{insertMethod:"append",insertSelector:"body"},page:{nodetype:"div",selector:null,noSelector:[]},screenReader:{closeMenu:"Close menu",openMenu:"Open menu"}},T=["left","left-front","right","right-front","top","bottom"],I=(S.prototype.open=function(){this.node.menu.matches(".mm-menu--opened")||(this.trigger("open:before"),this.node.wrpr.classList.add("mm-wrapper--opened","mm-wrapper--position-"+this.opts.offCanvas.position),this.node.menu.classList.add("mm-menu--opened"),this.node.menu.removeAttribute("inert"),S.node.blck.removeAttribute("inert"),S.node.page.setAttribute("inert","true"),this.node.open=document.activeElement,this.trigger("open:after"))},S.prototype.close=function(){var e;this.node.menu.matches(".mm-menu--opened")&&(this.trigger("close:before"),this.node.wrpr.classList.remove("mm-wrapper--opened","mm-wrapper--position-"+this.opts.offCanvas.position),this.node.menu.classList.remove("mm-menu--opened"),this.node.menu.setAttribute("inert","true"),S.node.blck.setAttribute("inert","true"),S.node.page.removeAttribute("inert"),null!=(e=this.node.open||document.querySelector(`[href="#${this.node.menu.id}"]`)||null)&&e.focus(),document.body.scrollLeft=0,document.documentElement.scrollLeft=0,this.trigger("close:after"))},S.prototype.setPage=function(t){const n=this.conf.offCanvas;if(!t){let e="string"==typeof n.page.selector?h(document.body,n.page.selector):p(document.body,n.page.nodetype);if(e=e.filter(e=>!e.matches(".mm-menu, .mm-wrapper__blocker")),1<(e=n.page.noSelector.length?e.filter(e=>!e.matches(n.page.noSelector.join(", "))):e).length){let t=d("div");e[0].before(t),e.forEach(e=>{t.append(e)}),e=[t]}t=e[0]}this.trigger("setPage:before",[t]),t.classList.add("mm-page","mm-slideout"),t.id=t.id||a(),S.node.blck.setAttribute("href","#"+t.id),S.node.page=t,this.trigger("setPage:after",[t])},{fix:!0}),x="ontouchstart"in window||!!navigator.msMaxTouchPoints||!1,A=["light","dark","white","black","light-contrast","dark-contrast","white-contrast","black-contrast"],j={close:!(S.prototype.theme=function(e=null){var t=this.opts.theme;if(!e)return t;A.includes(e)&&(this.node.menu.classList.remove("mm-menu--theme-"+t),this.node.menu.classList.add("mm-menu--theme-"+e),this.opts.theme=e)}),open:!1},B={add:!1},R={use:!1,top:[],bottom:[],position:"left",type:"default"},D={add:!1,blockPanel:!0,visible:3},$={breadcrumbs:{separator:"/",removeFirst:!1}};function C(){this.opts.navbars=this.opts.navbars||[],this.conf.navbars=this.conf.navbars||{},r(this.conf.navbars,$);let e=this.opts.navbars;var i;void 0!==e&&(e=e instanceof Array?e:[e]).length&&(i={},e.forEach(n=>{if(void 0===(t="object"!=typeof(t="boolean"==typeof(t=n)&&t?{}:t)?{}:t).content&&(t.content=["prev","title"]),t.content instanceof Array||(t.content=[t.content]),void 0===t.use&&(t.use=!0),(n=t).use){const s=d("div.mm-navbar");let e=n["position"];"bottom"!==e&&(e="top"),i[e]||(i[e]=d("div.mm-navbars.mm-navbars--"+e)),i[e].append(s);for(let e=0,t=n.content.length;e<t;e++){const t=n.content[e];if("string"==typeof t){const n=C.navbarContents[t];if("function"==typeof n)n.call(this,s);else{let e=d("span");e.innerHTML=t;const i=p(e);1==i.length&&(e=i[0]),s.append(e)}}else s.append(t)}if("string"==typeof n.type){const i=C.navbarTypes[n.type];"function"==typeof i&&i.call(this,s)}var t=()=>{s.classList.remove("mm-hidden")};"boolean"==typeof n.use?this.bind("initMenu:after",t):L(n.use,t,()=>{s.classList.add("mm-hidden")})}}),this.bind("initMenu:after",()=>{for(var e in i)this.node.pnls["bottom"==e?"after":"before"](i[e])}))}C.navbarContents={breadcrumbs:function(e){var t=d("div.mm-navbar__breadcrumbs");e.append(t),this.bind("initNavbar:after",e=>{if(!e.querySelector(".mm-navbar__breadcrumbs")){p(e,".mm-navbar")[0].classList.add("mm-hidden");for(var t,n=[],s=d("span.mm-navbar__breadcrumbs"),i=e,a=!0;i;)(i=i.closest(".mm-panel")).parentElement.matches(".mm-listitem--vertical")||((t=h(i,".mm-navbar__title span")[0])&&(t=t.textContent).length&&n.unshift(a?`<span>${t}</span>`:`<a 
                                    href="#${i.id}" 
                                    title="${this.i18n(this.conf.screenReader.openSubmenu)}"
                                    >${t}</a>`),a=!1),i=h(this.node.pnls,"#"+i.dataset.mmParent)[0];this.conf.navbars.breadcrumbs.removeFirst&&n.shift(),s.innerHTML=n.join('<span class="mm-separator">'+this.conf.navbars.breadcrumbs.separator+"</span>"),p(e,".mm-navbar")[0].append(s)}}),this.bind("openPanel:before",e=>{e=e.querySelector(".mm-navbar__breadcrumbs");t.innerHTML=e?e.innerHTML:""})},close:function(e){const t=d("a.mm-btn.mm-btn--close.mm-navbar__btn");t.setAttribute("aria-label",this.i18n(this.conf.offCanvas.screenReader.closeMenu)),e.append(t),this.bind("setPage:after",e=>{t.href="#"+e.id})},prev:function(e){let n=d("a.mm-btn.mm-hidden");e.append(n),this.bind("initNavbar:after",e=>{p(e,".mm-navbar")[0].classList.add("mm-hidden")}),this.bind("openPanel:before",e=>{if(!e.parentElement.matches(".mm-listitem--vertical")){n.classList.add("mm-hidden");const t=e.querySelector(".mm-navbar__btn.mm-btn--prev");if(t){const e=t.cloneNode(!0);n.after(e),n.remove(),n=e}}})},searchfield:function(e){let t=d("div.mm-navbar__searchfield");t.id=a(),e.append(t),this.opts.searchfield=this.opts.searchfield||{},this.opts.searchfield.add=!0,this.opts.searchfield.addTo="#"+t.id},title:function(e){let n=d("a.mm-navbar__title");e.append(n),this.bind("openPanel:before",e=>{if(!e.parentElement.matches(".mm-listitem--vertical")){const t=e.querySelector(".mm-navbar__title");if(t){const e=t.cloneNode(!0);n.after(e),n.remove(),n=e}}})}};function N(e){const t=this.opts.searchfield;if(e.matches(t.addTo)){const t=e.matches(".mm-panel--search");if(!h(e,".mm-searchfield").length){const n=O.call(this,t);t&&n.classList.add("mm-searchfield--cancelable"),e.prepend(n),H.call(this,n)}}if(t.splash.length&&e.matches(".mm-panel--search")&&!h(e,".mm-panel__splash").length){const s=d("div.mm-panel__splash");s.innerHTML=t.splash,e.append(s)}if(t.noResults.length&&!h(e,".mm-panel__noresults").length){const i=d("div.mm-panel__noresults");i.innerHTML=this.i18n(t.noResults),e.append(i)}}function O(e=!1){const t=this.opts.searchfield,n=this.conf.searchfield,s=d("form.mm-searchfield"),i=(q(s,n.form),d("div.mm-searchfield__input")),a=(s.append(i),d("input"));if(i.append(a),a.type="text",a.autocomplete="off",a.placeholder=this.i18n(t.placeholder),a.setAttribute("aria-label",this.i18n(t.placeholder)),q(a,n.input),n.submit){const e=d("button.mm-btnreset.mm-btn.mm-btn--next.mm-searchfield__btn");e.type="submit",i.append(e)}else if(n.clear){const e=d("button.mm-btnreset.mm-btn.mm-btn--close.mm-searchfield__btn");e.type="reset",e.setAttribute("aria-label",this.i18n("Clear searchfield")),i.append(e),s.addEventListener("reset",()=>{window.requestAnimationFrame(()=>{a.dispatchEvent(new Event("input"))})})}if(n.cancel&&e){const e=d("a.mm-searchfield__cancel");e.href="#",e.setAttribute("aria-label",this.i18n("Cancel searching")),e.textContent=this.i18n("cancel"),s.append(e),e.addEventListener("click",e=>{e.preventDefault(),this.closePanel(p(this.node.pnls,".mm-panel--search")[0],!1)})}return s}function H(s){const i=this.opts.searchfield,a=s.closest(".mm-panel")||h(this.node.pnls,".mm-panel--search")[0],o=h(s,"input")[0];let r=a.matches(".mm-panel--search")?p(this.node.pnls,i.searchIn):[a];r=r.filter(e=>!e.matches(".mm-panel--search"));var e=()=>{const n=o.value.toLowerCase().trim();if(n.length?s.classList.add("mm-searchfield--searching"):s.classList.remove("mm-searchfield--searching"),i.search){const t=[];var e;r.forEach(e=>{e.scrollTop=0,t.push(...h(e,".mm-listitem"))}),n.length?(this.trigger("search:before"),a.classList.add("mm-panel--searching"),t.forEach(e=>{var t=p(e,".mm-listitem__text")[0];(!t||-1<[].slice.call(t.childNodes).filter(e=>!e.ariaHidden).map(e=>e.textContent).join(" ").toLowerCase().indexOf(n))&&(e.dataset.mmSearchresult=n)}),e=0,e=a.matches(".mm-panel--search")?V(a,n,r):Y(n,r),a.classList[0==e?"add":"remove"]("mm-panel--noresults"),this.trigger("search:after")):(this.trigger("clear:before"),a.classList.remove("mm-panel--searching","mm-panel--noresults"),a.matches(".mm-panel--search")?(U(a),i.splash||this.closePanel(a,!1,!1)):G(r),this.trigger("clear:after"))}};o.addEventListener("input",e),e()}const F={scroll:!(C.navbarTypes={tabs:function(n){function s(e){const t=p(n,`.mm-navbar__tab[href="#${e.id}"]`)[0];if(t)t.classList.add("mm-navbar__tab--selected"),t.ariaExpanded="true";else{const n=h(this.node.pnls,"#"+e.dataset.mmParent)[0];n&&s.call(this,n.closest(".mm-panel"))}}n.classList.add("mm-navbar--tabs"),n.closest(".mm-navbars").classList.add("mm-navbars--has-tabs"),p(n,"a").forEach(e=>{e.classList.add("mm-navbar__tab")}),this.bind("openPanel:before",e=>{p(n,"a").forEach(e=>{e.classList.remove("mm-navbar__tab--selected"),e.ariaExpanded="false"}),s.call(this,e)}),this.bind("initPanels:after",()=>{n.addEventListener("click",e=>{var t,n=null==(n=null==(n=e.target)?void 0:n.closest(".mm-navbar__tab"))?void 0:n.getAttribute("href");try{null!=(t=h(this.node.pnls,n+".mm-panel")[0])&&t.classList.add("mm-panel--noanimation")}catch(e){}},{capture:!0})})}}),update:!1},Z={scrollOffset:0,updateOffset:50},W={add:!1,addTo:"panels",noResults:"No results found.",placeholder:"Search",search:!0,searchIn:"panels",splash:"",title:"Search"},z={cancel:!0,clear:!0,form:{},input:{},panel:{},submit:!1},V=(c({cancel:"abbrechen","Cancel searching":"Suche abbrechen","Clear searchfield":"Suchfeld löschen","No results found.":"Keine Ergebnisse gefunden.",Search:"Suche"},"de"),c({cancel:"انصراف","Cancel searching":"لغو جستجو","Clear searchfield":"پاک کردن فیلد جستجو","No results found.":"نتیجه‌ای یافت نشد.",Search:"جستجو"},"fa"),c({cancel:"annuleren","Cancel searching":"Zoeken annuleren","Clear searchfield":"Zoekveld leeg maken","No results found.":"Geen resultaten gevonden.",Search:"Zoeken"},"nl"),c({cancel:"cancelar","Cancel searching":"Cancelar pesquisa","Clear searchfield":"Limpar campo de pesquisa","No results found.":"Nenhum resultado encontrado.",Search:"Buscar"},"pt_br"),c({cancel:"отменить","Cancel searching":"Отменить поиск","Clear searchfield":"Очистить поле поиска","No results found.":"Ничего не найдено.",Search:"Найти"},"ru"),c({cancel:"zrušiť","Cancel searching":"Zrušiť vyhľadávanie","Clear searchfield":"Vymazať pole vyhľadávania","No results found.":"Neboli nájdené žiadne výsledky.",Search:"Vyhľadávanie"},"sk"),c({cancel:"скасувати","Cancel searching":"Скасувати пошук","Clear searchfield":"Очистити поле пошуку","No results found.":"Нічого не знайдено.",Search:"Пошук"},"uk"),(e,n,t)=>{const s=h(e,".mm-listview")[0];s.innerHTML="";let i=0;return t.forEach(e=>{const t=h(e,`[data-mm-searchresult="${n}"]`);if(i+=t.length,t.length){const n=h(e,".mm-navbar__title")[0];if(n){const e=d("li.mm-divider");e.innerHTML=n.innerHTML,s.append(e)}t.forEach(e=>{e=e.cloneNode(!0);s.append(e)})}}),h(s,".mm-panel").forEach(e=>{e.remove()}),["id","data-mm-parent","data-mm-child"].forEach(t=>{h(s,`[${t}]`).forEach(e=>{e.removeAttribute(t)})}),h(s,".mm-listitem--opened").forEach(e=>{e.classList.remove("mm-listitem--opened")}),i}),U=e=>{h(e,".mm-listview")[0].innerHTML=""},Y=(n,e)=>{let s=0;return e.forEach(e=>{const t=h(e,`[data-mm-searchresult="${n}"]`);s+=t.length,t.length&&t.forEach(s=>{const e=(e=>{let t=[],n=s.previousElementSibling;for(;n;)n.matches(e)&&t.push(n),n=n.previousElementSibling;return t})(".mm-divider")[0];e&&(e.dataset.mmSearchresult=n)}),h(e,".mm-listitem, .mm-divider").forEach(e=>{e.classList.add("mm-hidden"),e.dataset.mmSearchresult===n&&[e,...u(e,".mm-listitem")].forEach(e=>{e.classList.remove("mm-hidden")})})}),s},G=e=>{e.forEach(e=>{h(e,".mm-listitem, .mm-divider").forEach(e=>{e.classList.remove("mm-hidden")})})},q=(t,n)=>{n&&Object.keys(n).forEach(e=>{t[e]=n[e]})},K={add:!1,addTo:"panels"},X={current:!0,hover:!1,parent:!1},J={collapsed:{use:!1},expanded:{use:!1,initial:"open"}};S.addons={offcanvas:function(){this.opts.offCanvas=this.opts.offCanvas||{},this.conf.offCanvas=this.conf.offCanvas||{};const n=r(this.opts.offCanvas,M),t=r(this.conf.offCanvas,k);n.use&&(T.includes(n.position)||(n.position=T[0]),this._api.push("open","close","setPage","position"),t.clone&&(this.node.menu=this.node.menu.cloneNode(!0),this.node.menu.id&&(this.node.menu.id=l(this.node.menu.id)),h(this.node.menu,"[id]").forEach(e=>{e.id=l(e.id)})),this.bind("initMenu:before",()=>{this.node.wrpr=document.querySelector(t.menu.insertSelector),this.node.wrpr[t.menu.insertMethod](this.node.menu)}),S.node.blck||this.bind("initMenu:before",()=>{const e=d("a.mm-wrapper__blocker.mm-blocker.mm-slideout");e.id=a(),e.setAttribute("aria-label",this.i18n(t.screenReader.closeMenu)),e.setAttribute("inert","true"),document.querySelector(t.menu.insertSelector).append(e),S.node.blck=e}),this.bind("initMenu:after",()=>{this.setPage(S.node.page),this.node.menu.classList.add("mm-menu--offcanvas"),this.node.menu.setAttribute("inert","true"),T.includes(n.position)&&(this.node.wrpr.classList.add("mm-wrapper--position-"+n.position),this.node.menu.classList.add("mm-menu--position-"+n.position));let e=window.location.hash;var t;e&&(t=m(this.node.menu.id))&&t==e.slice(1)&&setTimeout(()=>{this.open()},1e3)}),document.addEventListener("click",e=>{var t;switch(null==(t=e.target.closest("a"))?void 0:t.getAttribute("href")){case"#"+m(this.node.menu.id):e.preventDefault(),this.open();break;case"#"+m(S.node.page.id):e.preventDefault(),this.close()}}),document.addEventListener("keyup",e=>{"Escape"==e.key&&this.close()}))},scrollBugFix:function(){if(x&&this.opts.offCanvas.use&&(this.opts.scrollBugFix=this.opts.scrollBugFix||{},r(this.opts.scrollBugFix,I).fix)){const n=(e=>{let t="",n=null;return e.addEventListener("touchstart",e=>{1===e.touches.length&&(t="",n=e.touches[0].pageY)}),e.addEventListener("touchend",e=>{0===e.touches.length&&(t="",n=null)}),e.addEventListener("touchmove",e=>{t="",n&&1===e.touches.length&&((e=e.changedTouches[0].pageY)>n?t="down":e<n&&(t="up"),n=e)}),{get:()=>t}})(this.node.menu);this.node.menu.addEventListener("scroll",e=>{e.preventDefault(),e.stopPropagation()},{passive:!1}),this.node.menu.addEventListener("touchmove",e=>{let t=e.target.closest(".mm-panel, .mm-iconbar__top, .mm-iconbar__bottom");(!(t=t&&t.closest(".mm-listitem--vertical")?u(t,".mm-panel").pop():t)||t.scrollHeight===t.offsetHeight||0==t.scrollTop&&"down"==n.get()||t.scrollHeight==t.scrollTop+t.offsetHeight&&"up"==n.get())&&e.stopPropagation()},{passive:!1}),this.bind("open:after",()=>{var e=p(this.node.pnls,".mm-panel--opened")[0];e&&(e.scrollTop=0)}),window.addEventListener("orientationchange",e=>{var t=p(this.node.pnls,".mm-panel--opened")[0];t&&(t.scrollTop=0,t.style["-webkit-overflow-scrolling"]="auto",t.style["-webkit-overflow-scrolling"]="touch")})}},theme:function(){this.opts.theme=this.opts.theme||"light";var e=this.opts.theme;A.includes(e)||(this.opts.theme=A[0]),this._api.push("theme"),this.bind("initMenu:after",()=>{this.theme(this.opts.theme)})},backButton:function(){if(this.opts.backButton=this.opts.backButton||{},this.opts.offCanvas.use){const e=r(this.opts.backButton,j),n="#"+this.node.menu.id;if(e.close){let t=[];const r=()=>{t=[n],p(this.node.pnls,".mm-panel--opened, .mm-panel--parent").forEach(e=>{t.push("#"+e.id)})};this.bind("open:after",()=>{history.pushState(null,"",location.pathname+location.search+n)}),this.bind("open:after",r),this.bind("openPanel:after",r),this.bind("close:after",()=>{t=[],history.back(),history.pushState(null,"",location.pathname+location.search)}),window.addEventListener("popstate",()=>{var e;this.node.menu.matches(".mm-menu--opened")&&t.length&&((e=(t=t.slice(0,-1))[t.length-1])==n?this.close():(this.openPanel(this.node.menu.querySelector(e)),history.pushState(null,"",location.pathname+location.search+n)))})}e.open&&window.addEventListener("popstate",e=>{this.node.menu.matches(".mm-menu--opened")||location.hash!=n||this.open()})}},counters:function(){if(this.opts.counters=this.opts.counters||{},r(this.opts.counters,B).add){const s=e=>{const t=this.node.pnls.querySelector("#"+e.dataset.mmParent);if(t){const n=t.querySelector(".mm-counter");if(n){const s=[];p(e,".mm-listview").forEach(e=>{s.push(...p(e,".mm-listitem"))}),n.innerHTML=f(s).length.toString()}}},n=new MutationObserver(e=>{e.forEach(e=>{"class"==e.attributeName&&s(e.target.closest(".mm-panel"))})});this.bind("initListview:after",e=>{var e=e.closest(".mm-panel"),t=this.node.pnls.querySelector("#"+e.dataset.mmParent);if(t){const n=p(t,".mm-btn")[0];if(n){if(!p(n,".mm-counter").length){const s=d("span.mm-counter");s.setAttribute("aria-hidden","true"),n.prepend(s)}s(e)}}}),this.bind("initListitem:after",e=>{var t=e.closest(".mm-panel");t&&this.node.pnls.querySelector("#"+t.dataset.mmParent)&&n.observe(e,{attributes:!0})})}},iconbar:function(){this.opts.iconbar=this.opts.iconbar||{};const a=r(this.opts.iconbar,R);if(a.use){let i;if(["top","bottom"].forEach((e,t)=>{let n=a[e];"array"!=o(n)&&(n=[n]);const s=d("div.mm-iconbar__"+e);for(let e=0,t=n.length;e<t;e++)"string"==typeof n[e]?s.innerHTML+=n[e]:s.append(n[e]);s.children.length&&(i=i||d("div.mm-iconbar")).append(s)}),i){this.bind("initMenu:after",()=>{this.node.menu.prepend(i)});let e="mm-menu--iconbar-"+a.position,t=()=>{this.node.menu.classList.add(e)},n=()=>{this.node.menu.classList.remove(e)};if("boolean"==typeof a.use?this.bind("initMenu:after",t):L(a.use,t,n),"tabs"==a.type){i.classList.add("mm-iconbar--tabs"),i.addEventListener("click",e=>{const t=e.target.closest(".mm-iconbar__tab");if(t)if(t.matches(".mm-iconbar__tab--selected"))e.stopImmediatePropagation();else try{var n=h(this.node.menu,t.getAttribute("href")+".mm-panel")[0];n&&(e.preventDefault(),e.stopImmediatePropagation(),this.openPanel(n,!1))}catch(e){}});const a=e=>{h(i,"a").forEach(e=>{e.classList.remove("mm-iconbar__tab--selected")});const t=h(i,'[href="#'+e.id+'"]')[0];if(t)t.classList.add("mm-iconbar__tab--selected");else{const i=h(this.node.pnls,"#"+e.dataset.mmParent)[0];i&&a(i.closest(".mm-panel"))}};this.bind("openPanel:before",a)}}}},iconPanels:function(){this.opts.iconPanels=this.opts.iconPanels||{};const n=r(this.opts.iconPanels,D);let e=!1;if("first"==n.visible&&(e=!0,n.visible=1),n.visible=Math.min(3,Math.max(1,n.visible)),n.visible++,n.add){this.bind("initMenu:after",()=>{this.node.menu.classList.add("mm-menu--iconpanel")});const r=["mm-panel--iconpanel-0","mm-panel--iconpanel-1","mm-panel--iconpanel-2","mm-panel--iconpanel-3"];e?this.bind("initMenu:after",()=>{var e;null!=(e=p(this.node.pnls,".mm-panel")[0])&&e.classList.add("mm-panel--iconpanel-first")}):this.bind("openPanel:after",t=>{if(!t.closest(".mm-listitem--vertical")){let e=p(this.node.pnls,".mm-panel");(e=e.filter(e=>e.matches(".mm-panel--parent"))).push(t),(e=e.slice(-n.visible)).forEach((e,t)=>{e.classList.remove("mm-panel--iconpanel-first",...r),e.classList.add("mm-panel--iconpanel-"+t)})}})}},navbars:C,pageScroll:function(){this.opts.pageScroll=this.opts.pageScroll||{},this.conf.pageScroll=this.conf.pageScroll||{};const e=r(this.opts.pageScroll,F),n=r(this.conf.pageScroll,Z);var s;function i(){s&&window.scrollTo({top:s.getBoundingClientRect().top+document.scrollingElement.scrollTop-n.scrollOffset,behavior:"smooth"}),s=null}function o(e){try{if("#"==e.slice(0,1))return h(S.node.page,e)[0]}catch(e){}return null}if(this.opts.offCanvas.use&&e.scroll&&(this.bind("close:after",()=>{i()}),this.node.menu.addEventListener("click",e=>{var t=(null==(t=null==(t=e.target)?void 0:t.closest("a[href]"))?void 0:t.getAttribute("href"))||"";(s=o(t))&&(e.preventDefault(),this.node.menu.matches(".mm-menu--sidebar-expanded")&&this.node.wrpr.matches(".mm-wrapper--sidebar-expanded")?i():this.close())})),e.update){let i=[],a=(this.bind("initListview:after",e=>{e=p(e,".mm-listitem");b(e).forEach(e=>{e=o(e.getAttribute("href"));e&&i.unshift(e)})}),-1);window.addEventListener("scroll",e=>{for(var t=window.scrollY,s=0;s<i.length;s++)if(i[s].offsetTop<t+n.updateOffset){if(a!==s){a=s;let e=p(this.node.pnls,".mm-panel--opened")[0],t=h(e,".mm-listitem"),n=b(t);(n=n.filter(e=>e.matches('[href="#'+i[s].id+'"]'))).length&&this.setSelected(n[0].parentElement)}break}},{passive:!0})}},searchfield:function(){this.opts.searchfield=this.opts.searchfield||{},this.conf.searchfield=this.conf.searchfield||{};const i=r(this.opts.searchfield,W);if(r(this.conf.searchfield,z),i.add){switch(i.addTo){case"panels":i.addTo=".mm-panel";break;case"searchpanel":i.addTo=".mm-panel--search"}"panels"===i.searchIn&&(i.searchIn=".mm-panel"),this.bind("initPanel:after",e=>{e.matches(i.addTo)&&!e.closest(".mm-listitem--vertical")&&N.call(this,e)}),this.bind("initMenu:after",()=>{const s=function(){var e=this.opts.searchfield,t=this.conf.searchfield;let n=p(this.node.pnls,".mm-panel--search")[0];return n||(n=d("div.mm-panel--search"),q(n,t.panel),e.title.length&&(n.dataset.mmTitle=this.i18n(e.title)),n.append(d("ul")),this._initPanel(n),n)}.call(this);N.call(this,s),h(this.node.menu,i.addTo).forEach(e=>{if(!e.matches(".mm-panel")){const t=O.call(this,!0),n=(e.append(t),h(t,"input")[0]);i.splash.length?(n.addEventListener("focusin",()=>{this.openPanel(s,!1,!1)}),this.bind("openPanel:after",e=>{e.matches(".mm-panel--search")?t.classList.add("mm-searchfield--cancelable"):t.classList.remove("mm-searchfield--cancelable")})):(this.bind("search:after",()=>{this.openPanel(s,!1,!1)}),n.addEventListener("focusout",()=>{n.value.length||this.closePanel(s,!1)})),H.call(this,t)}})}),this.bind("close:before",()=>{h(this.node.menu,".mm-searchfield input").forEach(e=>{e.blur()})})}},sectionIndexer:function(){this.opts.sectionIndexer=this.opts.sectionIndexer||{},r(this.opts.sectionIndexer,K).add&&this.bind("initPanels:after",()=>{if(!this.node.indx){let t="",e=("abcdefghijklmnopqrstuvwxyz".split("").forEach(e=>{t+='<a href="#">'+e+"</a>"}),d("div.mm-sectionindexer"));e.innerHTML=t,this.node.pnls.prepend(e),this.node.indx=e,this.node.indx.addEventListener("click",e=>{e.target.matches("a")&&e.preventDefault()});var n=n=>{if(n.target.matches("a")){const s=n.target.textContent,i=p(this.node.pnls,".mm-panel--opened")[0];let t=-1,e=i.scrollTop;i.scrollTop=0,h(i,".mm-divider").filter(e=>!e.matches(".mm-hidden")).forEach(e=>{t<0&&s==e.textContent.trim().slice(0,1).toLowerCase()&&(t=e.offsetTop)}),i.scrollTop=-1<t?t:e}};x?(this.node.indx.addEventListener("touchstart",n),this.node.indx.addEventListener("touchmove",n)):this.node.indx.addEventListener("mouseover",n)}this.bind("openPanel:before",e=>{e=h(e,".mm-divider").filter(e=>!e.matches(".mm-hidden")).length;this.node.indx.classList[e?"add":"remove"]("mm-sectionindexer--active")})})},setSelected:function(){this.opts.setSelected=this.opts.setSelected||{};const n=r(this.opts.setSelected,X);if("detect"==n.current){const n=e=>{e=e.split("?")[0].split("#")[0];const t=this.node.menu.querySelector('a[href="'+e+'"], a[href="'+e+'/"]');if(t)this.setSelected(t.parentElement);else{const t=e.split("/").slice(0,-1);t.length&&n(t.join("/"))}};this.bind("initMenu:after",()=>{n.call(this,window.location.href)})}else n.current||this.bind("initListview:after",e=>{p(e,".mm-listitem--selected").forEach(e=>{e.classList.remove("mm-listitem--selected")})});n.hover&&this.bind("initMenu:after",()=>{this.node.menu.classList.add("mm-menu--selected-hover")}),n.parent&&(this.bind("openPanel:after",e=>{h(this.node.pnls,".mm-listitem--selected-parent").forEach(e=>{e.classList.remove("mm-listitem--selected-parent")});let t=e;for(;t;){let e=h(this.node.pnls,"#"+t.dataset.mmParent)[0];t=null==e?void 0:e.closest(".mm-panel"),e&&!e.matches(".mm-listitem--vertical")&&e.classList.add("mm-listitem--selected-parent")}}),this.bind("initMenu:after",()=>{this.node.menu.classList.add("mm-menu--selected-parent")}))},sidebar:function(){if(this.opts.offCanvas.use){this.opts.sidebar=this.opts.sidebar||{};var e,i=r(this.opts.sidebar,J);if(i.collapsed.use&&(this.bind("initMenu:after",()=>{this.node.menu.classList.add("mm-menu--sidebar-collapsed")}),e=()=>{this.node.wrpr.classList.add("mm-wrapper--sidebar-collapsed")},"boolean"==typeof i.collapsed.use?this.bind("initMenu:after",e):L(i.collapsed.use,e,()=>{this.node.wrpr.classList.remove("mm-wrapper--sidebar-collapsed")})),i.expanded.use){this.bind("initMenu:after",()=>{this.node.menu.classList.add("mm-menu--sidebar-expanded")});let e=!1,t=()=>{e=!0,this.node.wrpr.classList.add("mm-wrapper--sidebar-expanded"),this.node.menu.removeAttribute("aria-modal"),this.open(),S.node.page.removeAttribute("inert")},n=()=>{e=!1,this.node.wrpr.classList.remove("mm-wrapper--sidebar-expanded"),this.node.menu.setAttribute("aria-modal","true"),this.close()},s=("boolean"==typeof i.expanded.use?this.bind("initMenu:after",t):L(i.expanded.use,t,n),this.bind("close:after",()=>{e&&window.sessionStorage.setItem("mmenuExpandedState","closed")}),this.bind("open:after",()=>{e&&(window.sessionStorage.setItem("mmenuExpandedState","open"),S.node.page.removeAttribute("inert"))}),i.expanded.initial);var a=window.sessionStorage.getItem("mmenuExpandedState");switch(a){case"open":case"closed":s=a}"closed"===s&&this.bind("init:after",()=>{this.close()})}}}},window&&(window.Mmenu=S)})();