text: !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){!function(e){function l(l){return"boolean"==typeof l&&(l={collapse:l}),"object"!=typeof l&&(l={}),l=e.extend(!0,{},e[c].defaults[p],l)}function a(e){return e}function s(){i=!0,o=e[c]._c,n=e[c]._d,t=e[c]._e,o.add("collapsed"),n.add("updatelabel"),d=e[c].glbl}var o,n,t,d,c="mmenu",p="labels",i=!1;e[c].prototype["_init_"+p]=function(d){i||s();var c=this.vars[p+"_added"];this.vars[p+"_added"]=!0,c||(this.opts[p]=l(this.opts[p]),this.conf[p]=a(this.conf[p]));var f=this.opts[p];this.conf[p],f.collapse&&(this.__refactorClass(e("li",this.$menu),this.conf.classNames[p].collapsed,"collapsed"),e("."+o.label,d).each(function(){var l=e(this),a=l.nextUntil("."+o.label,"all"==f.collapse?null:"."+o.collapsed);"all"==f.collapse&&(l.addClass(o.opened),a.removeClass(o.collapsed)),a.length&&(l.data(n.updatelabel)||(l.data(n.updatelabel,!0),l.wrapInner("<span />"),l.prepend('<a href="#" class="'+o.subopen+" "+o.fullsubopen+'" />')),l.find("a."+o.subopen).off(t.click).on(t.click,function(e){e.preventDefault(),l.toggleClass(o.opened),a[l.hasClass(o.opened)?"removeClass":"addClass"](o.collapsed)}))}))},e[c].addons.push(p),e[c].defaults[p]={collapse:!1},e[c].configuration.classNames[p]={collapsed:"Collapsed"}}(e)});