").append(re.parseHTML(e)).find(i):e)}).complete(n&&function(e,t){a.each(n,r||[e.responseText,t,e])}),this},re.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){re.fn[t]=function(e){return this.on(t,e)}}),re.expr.filters.animated=function(e){return re.grep(re.timers,function(t){return e===t.elem}).length};var rn=e.document.documentElement;re.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,u,c=re.css(e,"position"),d=re(e),f={};"static"===c&&(e.style.position="relative"),s=d.offset(),o=re.css(e,"top"),l=re.css(e,"left"),u=("absolute"===c||"fixed"===c)&&re.inArray("auto",[o,l])>-1,u?(i=d.position(),a=i.top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),re.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+r),"using"in t?t.using.call(e,f):d.css(f)}},re.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){re.offset.setOffset(this,e,t)});var t,n,i={top:0,left:0},r=this[0],o=r&&r.ownerDocument;return o?(t=o.documentElement,re.contains(t,r)?(typeof r.getBoundingClientRect!==Ce&&(i=r.getBoundingClientRect()),n=Q(o),{top:i.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:i.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):i):void 0},position:function(){if(this[0]){var e,t,n={top:0,left:0},i=this[0];return"fixed"===re.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),re.nodeName(e[0],"html")||(n=e.offset()),n.top+=re.css(e[0],"borderTopWidth",!0),n.left+=re.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-re.css(i,"marginTop",!0),left:t.left-n.left-re.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||rn;e&&!re.nodeName(e,"html")&&"static"===re.css(e,"position");)e=e.offsetParent;return e||rn})}}),re.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);re.fn[e]=function(i){return Oe(this,function(e,i,r){var o=Q(e);return void 0===r?o?t in o?o[t]:o.document.documentElement[i]:e[i]:void(o?o.scrollTo(n?re(o).scrollLeft():r,n?r:re(o).scrollTop()):e[i]=r)},e,i,arguments.length,null)}}),re.each(["top","left"],function(e,t){re.cssHooks[t]=_(ne.pixelPosition,function(e,n){
return n?(n=tt(e,t),it.test(n)?re(e).position()[t]+"px":n):void 0})}),re.each({Height:"height",Width:"width"},function(e,t){re.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){re.fn[i]=function(i,r){var o=arguments.length&&(n||"boolean"!=typeof i),a=n||(i===!0||r===!0?"margin":"border");return Oe(this,function(t,n,i){var r;return re.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===i?re.css(t,n,a):re.style(t,n,i,a)},t,o?i:void 0,o,null)}})}),re.fn.size=function(){return this.length},re.fn.andSelf=re.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return re});var on=e.jQuery,an=e.$;return re.noConflict=function(t){return e.$===re&&(e.$=an),t&&e.jQuery===re&&(e.jQuery=on),re},typeof t===Ce&&(e.jQuery=e.$=re),re}),!function(e){function t(t,n,i){if("object"!=typeof t&&(t={}),i){if("boolean"!=typeof t.isMenu){var r=i.children();t.isMenu=1==r.length&&r.is(n.panelNodetype)}return t}if("object"!=typeof t.onClick&&(t.onClick={}),"undefined"!=typeof t.onClick.setLocationHref&&(e[s].deprecated("onClick.setLocationHref option","!onClick.preventDefault"),"boolean"==typeof t.onClick.setLocationHref&&(t.onClick.preventDefault=!t.onClick.setLocationHref)),t=e.extend(!0,{},e[s].defaults,t),e[s].useOverflowScrollingFallback()){switch(t.position){case"top":case"right":case"bottom":e[s].debug('position: "'+t.position+'" not supported when using the overflowScrolling-fallback.'),t.position="left"}switch(t.zposition){case"front":case"next":e[s].debug('z-position: "'+t.zposition+'" not supported when using the overflowScrolling-fallback.'),t.zposition="back"}}return t}function n(t){return"object"!=typeof t&&(t={}),"undefined"!=typeof t.panelNodeType&&(e[s].deprecated("panelNodeType configuration option","panelNodetype"),t.panelNodetype=t.panelNodeType),t=e.extend(!0,{},e[s].configuration,t),"string"!=typeof t.pageSelector&&(t.pageSelector="> "+t.pageNodetype),t}function i(){u.$wndw=e(window),u.$html=e("html"),u.$body=e("body"),u.$allMenus=e(),e.each([c,f,d],function(e,t){t.add=function(e){e=e.split(" ");for(var n in e)t[e[n]]=t.mm(e[n])}}),c.mm=function(e){return"mm-"+e},c.add("menu ismenu panel list subtitle selected label spacer current highest hidden page blocker modal background opened opening subopened subopen fullsubopen subclose nooverflowscrolling"),c.umm=function(e){return"mm-"==e.slice(0,3)&&(e=e.slice(3)),e},f.mm=function(e){return"mm-"+e},f.add("parent style scrollTop offetLeft"),d.mm=function(e){return e+".mm"},d.add("toggle open opening opened close closing closed update setPage setSelected transitionend touchstart touchend mousedown mouseup click keydown keyup resize"),e[s]._c=c,e[s]._d=f,e[s]._e=d,e[s].glbl=u,e[s].useOverflowScrollingFallback(h)}function r(t,n){if(t.hasClass(c.current))return!1;var i=e("."+c.panel,n),r=i.filter("."+c.current);return i.removeClass(c.highest).removeClass(c.current).not(t).not(r).addClass(c.hidden),t.hasClass(c.opened)?r.addClass(c.highest).removeClass(c.opened).removeClass(c.subopened):(t.addClass(c.highest),r.addClass(c.subopened)),t.removeClass(c.hidden).removeClass(c.subopened).addClass(c.current).addClass(c.opened),"open"}function o(){return u.$scrollTopNode||(0!=u.$html.scrollTop()?u.$scrollTopNode=u.$html:0!=u.$body.scrollTop()&&(u.$scrollTopNode=u.$body)),u.$scrollTopNode?u.$scrollTopNode.scrollTop():0}function a(t,n,i){var r=e[s].support.transition;"webkitTransition"==r?t.one("webkitTransitionEnd",n):r?t.one(d.transitionend,n):setTimeout(n,i)}var s="mmenu",l="4.1.7";if(!e[s]){var u={$wndw:null,$html:null,$body:null,$page:null,$blck:null,$allMenus:null,$scrollTopNode:null},c={},d={},f={},p=0;e[s]=function(e,t,n){return u.$allMenus=u.$allMenus.add(e),this.$menu=e,this.opts=t,this.conf=n,this.serialnr=p++,this._init(),this},e[s].prototype={open:function(){return this._openSetup(),this._openFinish(),"open"},_openSetup:function(){var e=o();this.$menu.addClass(c.current),u.$allMenus.not(this.$menu).trigger(d.close),u.$page.data(f.style,u.$page.attr("style")||"").data(f.scrollTop,e).data(f.offetLeft,u.$page.offset().left);var t=0;u.$wndw.off(d.resize).on(d.resize,function(e,n){if(n||u.$html.hasClass(c.opened)){var i=u.$wndw.width();i!=t&&(t=i,u.$page.width(i-u.$page.data(f.offetLeft)))}}).trigger(d.resize,[!0]),this.conf.preventTabbing&&u.$wndw.off(d.keydown).on(d.keydown,function(e){return 9==e.keyCode?(e.preventDefault(),!1):void 0}),this.opts.modal&&u.$html.addClass(c.modal),this.opts.moveBackground&&u.$html.addClass(c.background),"left"!=this.opts.position&&u.$html.addClass(c.mm(this.opts.position)),"back"!=this.opts.zposition&&u.$html.addClass(c.mm(this.opts.zposition)),this.opts.classes&&u.$html.addClass(this.opts.classes),u.$html.addClass(c.opened),this.$menu.addClass(c.opened),u.$page.scrollTop(e),this.$menu.scrollTop(0)},_openFinish:function(){var e=this;a(u.$page,function(){e.$menu.trigger(d.opened)},this.conf.transitionDuration),u.$html.addClass(c.opening),this.$menu.trigger(d.opening),window.scrollTo(0,1)},close:function(){var e=this;return a(u.$page,function(){e.$menu.removeClass(c.current).removeClass(c.opened),u.$html.removeClass(c.opened).removeClass(c.modal).removeClass(c.background).removeClass(c.mm(e.opts.position)).removeClass(c.mm(e.opts.zposition)),e.opts.classes&&u.$html.removeClass(e.opts.classes),u.$wndw.off(d.resize).off(d.keydown),u.$page.attr("style",u.$page.data(f.style)),u.$scrollTopNode&&u.$scrollTopNode.scrollTop(u.$page.data(f.scrollTop)),e.$menu.trigger(d.closed)},this.conf.transitionDuration),u.$html.removeClass(c.opening),this.$menu.trigger(d.closing),"close"},_init:function(){if(this.opts=t(this.opts,this.conf,this.$menu),this.direction=this.opts.slidingSubmenus?"horizontal":"vertical",this._initPage(u.$page),this._initMenu(),this._initBlocker(),this._initPanles(),this._initLinks(),this._initOpenClose(),this._bindCustomEvents(),e[s].addons)for(var n=0;n
').css("opacity",0).appendTo(u.$body)),u.$blck.off(d.touchstart).on(d.touchstart,function(e){e.preventDefault(),e.stopPropagation(),u.$blck.trigger(d.mousedown)}).on(d.mousedown,function(e){e.preventDefault(),u.$html.hasClass(c.modal)||t.$menu.trigger(d.close)})},_initPage:function(t){t||(t=e(this.conf.pageSelector,u.$body),t.length>1&&(e[s].debug("Multiple nodes found for the page-node, all nodes are wrapped in one <"+this.conf.pageNodetype+">."),t=t.wrapAll("<"+this.conf.pageNodetype+" />").parent())),t.addClass(c.page),u.$page=t},_initMenu:function(){this.conf.clone&&(this.$menu=this.$menu.clone(!0),this.$menu.add(this.$menu.find("*")).filter("[id]").each(function(){e(this).attr("id",c.mm(e(this).attr("id")))})),this.$menu.contents().each(function(){3==e(this)[0].nodeType&&e(this).remove()}),this.$menu.prependTo("body").addClass(c.menu),this.$menu.addClass(c.mm(this.direction)),this.opts.classes&&this.$menu.addClass(this.opts.classes),this.opts.isMenu&&this.$menu.addClass(c.ismenu),"left"!=this.opts.position&&this.$menu.addClass(c.mm(this.opts.position)),"back"!=this.opts.zposition&&this.$menu.addClass(c.mm(this.opts.zposition))},_initPanles:function(){var t=this;this.__refactorClass(e("."+this.conf.listClass,this.$menu),"list"),this.opts.isMenu&&e("ul, ol",this.$menu).not(".mm-nolist").addClass(c.list);var n=e("."+c.list+" > li",this.$menu);this.__refactorClass(n.filter("."+this.conf.selectedClass),"selected"),this.__refactorClass(n.filter("."+this.conf.labelClass),"label"),this.__refactorClass(n.filter("."+this.conf.spacerClass),"spacer"),n.off(d.setSelected).on(d.setSelected,function(t,i){t.stopPropagation(),n.removeClass(c.selected),"boolean"!=typeof i&&(i=!0),i&&e(this).addClass(c.selected)}),this.__refactorClass(e("."+this.conf.panelClass,this.$menu),"panel"),this.$menu.children().filter(this.conf.panelNodetype).add(this.$menu.find("."+c.list).children().children().filter(this.conf.panelNodetype)).addClass(c.panel);var i=e("."+c.panel,this.$menu);i.each(function(n){var i=e(this),r=i.attr("id")||c.mm("m"+t.serialnr+"-p"+n);i.attr("id",r)}),i.find("."+c.panel).each(function(){var n=e(this),i=n.is("ul, ol")?n:n.find("ul ,ol").first(),r=n.parent(),o=r.find("> a, > span"),a=r.closest("."+c.panel);if(n.data(f.parent,r),r.parent().is("."+c.list)){var s=e('
').insertBefore(o);o.is("a")||s.addClass(c.fullsubopen),"horizontal"==t.direction&&i.prepend('
'+o.text()+"")}});var r="horizontal"==this.direction?d.open:d.toggle;if(i.each(function(){var n=e(this),i=n.attr("id");e('a[href="#'+i+'"]',t.$menu).off(d.click).on(d.click,function(e){e.preventDefault(),n.trigger(r)})}),"horizontal"==this.direction){var o=e("."+c.list+" > li."+c.selected,this.$menu);o.add(o.parents("li")).parents("li").removeClass(c.selected).end().each(function(){var t=e(this),n=t.find("> ."+c.panel);n.length&&(t.parents("."+c.panel).addClass(c.subopened),n.addClass(c.opened))}).closest("."+c.panel).addClass(c.opened).parents("."+c.panel).addClass(c.subopened)}else e("li."+c.selected,this.$menu).addClass(c.opened).parents("."+c.selected).removeClass(c.selected);var a=i.filter("."+c.opened);a.length||(a=i.first()),a.addClass(c.opened).last().addClass(c.current),"horizontal"==this.direction&&i.find("."+c.panel).appendTo(this.$menu)},_initLinks:function(){var t=this;e("."+c.list+" > li > a",this.$menu).not("."+c.subopen).not("."+c.subclose).not('[rel="external"]').not('[target="_blank"]').off(d.click).on(d.click,function(n){var i=e(this),r=i.attr("href");t.__valueOrFn(t.opts.onClick.setSelected,i)&&i.parent().trigger(d.setSelected);var o=t.__valueOrFn(t.opts.onClick.preventDefault,i,"#"==r.slice(0,1));o&&n.preventDefault(),t.__valueOrFn(t.opts.onClick.blockUI,i,!o)&&u.$html.addClass(c.blocking),t.__valueOrFn(t.opts.onClick.close,i,o)&&t.$menu.triggerHandler(d.close)})},_initOpenClose:function(){var t=this,n=this.$menu.attr("id");n&&n.length&&(this.conf.clone&&(n=c.umm(n)),e('a[href="#'+n+'"]').off(d.click).on(d.click,function(e){e.preventDefault(),t.$menu.trigger(d.open)}));var n=u.$page.attr("id");n&&n.length&&e('a[href="#'+n+'"]').off(d.click).on(d.click,function(e){e.preventDefault(),t.$menu.trigger(d.close)})},__valueOrFn:function(e,t,n){return"function"==typeof e?e.call(t[0]):"undefined"==typeof e&&"undefined"!=typeof n?n:e},__refactorClass:function(e,t){e.removeClass(this.conf[t+"Class"]).addClass(c[t])}},e.fn[s]=function(r,o){return u.$wndw||i(),r=t(r,o),o=n(o),this.each(function(){var t=e(this);t.data(s)||t.data(s,new e[s](t,r,o))})},e[s].version=l,e[s].defaults={position:"left",zposition:"back",moveBackground:!0,slidingSubmenus:!0,modal:!1,classes:"",onClick:{setSelected:!0}},e[s].configuration={preventTabbing:!0,panelClass:"Panel",listClass:"List",selectedClass:"Selected",labelClass:"Label",spacerClass:"Spacer",pageNodetype:"div",panelNodetype:"ul, ol, div",transitionDuration:400},function(){var t=window.document,n=window.navigator.userAgent,i=document.createElement("div").style,r="ontouchstart"in t,o="WebkitOverflowScrolling"in t.documentElement.style,a=function(){return"webkitTransition"in i?"webkitTransition":"transition"in i}(),l=function(){return n.indexOf("Android")>=0?2.4>parseFloat(n.slice(n.indexOf("Android")+8)):!1}();e[s].support={touch:r,transition:a,oldAndroidBrowser:l,overflowscrolling:function(){return r?o?!0:l?!1:!0:!0}()}}(),e[s].useOverflowScrollingFallback=function(e){return u.$html?("boolean"==typeof e&&u.$html[e?"addClass":"removeClass"](c.nooverflowscrolling),u.$html.hasClass(c.nooverflowscrolling)):(h=e,e)},e[s].debug=function(){},e[s].deprecated=function(e,t){"undefined"!=typeof console&&"undefined"!=typeof console.warn&&console.warn("MMENU: "+e+" is deprecated, use "+t+" instead.")};var h=!e[s].support.overflowscrolling}}(jQuery),!function(e){var t="mmenu",n="counters";e[t].prototype["_addon_"+n]=function(){var i=this,r=this.opts[n],o=e[t]._c,a=e[t]._d,s=e[t]._e;o.add("counter noresults"),s.add("updatecounters"),"boolean"==typeof r&&(r={add:r,update:r}),"object"!=typeof r&&(r={}),r=e.extend(!0,{},e[t].defaults[n],r),r.count&&(e[t].deprecated('the option "count" for counters, the option "update"'),r.update=r.count),this.__refactorClass(e("em."+this.conf.counterClass,this.$menu),"counter");var l=e("."+o.panel,this.$menu);if(r.add&&l.each(function(){var t=e(this),n=t.data(a.parent);if(n){var i=e('
'),r=n.find("> a."+o.subopen);r.parent().find("em."+o.counter).length||r.before(i)}}),r.update){var u=e("em."+o.counter,this.$menu);u.off(s.updatecounters).on(s.updatecounters,function(e){e.stopPropagation()}).each(function(){var t=e(this),n=e(t.next().attr("href"),i.$menu);n.is("."+o.list)||(n=n.find("> ."+o.list)),n.length&&t.on(s.updatecounters,function(){var e=n.children().not("."+o.label).not("."+o.subtitle).not("."+o.hidden).not("."+o.noresults);t.html(e.length)})}).trigger(s.updatecounters),this.$menu.on(s.update,function(){u.trigger(s.updatecounters)})}},e[t].defaults[n]={add:!1,update:!1},e[t].configuration.counterClass="Counter",e[t].addons=e[t].addons||[],e[t].addons.push(n)}(jQuery),!function(e){function t(e,t,n){return t>e&&(e=t),e>n&&(e=n),e}var n="mmenu",i="dragOpen";e[n].prototype["_addon_"+i]=function(){var r=this,o=this.opts[i];if(e.fn.hammer){var a=e[n]._c,s=(e[n]._d,e[n]._e);a.add("dragging"),s.add("dragleft dragright dragup dragdown dragend");var l=e[n].glbl;if("boolean"==typeof o&&(o={open:o}),"object"!=typeof o&&(o={}),"number"!=typeof o.maxStartPos&&(o.maxStartPos="left"==this.opts.position||"right"==this.opts.position?150:50),o=e.extend(!0,{},e[n].defaults[i],o),o.open){var u=0,c=!1,d=0,f=0,p="width";switch(this.opts.position){case"left":case"right":p="width";break;default:p="height"}switch(this.opts.position){case"left":var h={events:s.dragleft+" "+s.dragright,open_dir:"right",close_dir:"left",delta:"deltaX",page:"pageX",negative:!1};break;case"right":var h={events:s.dragleft+" "+s.dragright,open_dir:"left",close_dir:"right",delta:"deltaX",page:"pageX",negative:!0};break;case"top":var h={events:s.dragup+" "+s.dragdown,open_dir:"down",close_dir:"up",delta:"deltaY",page:"pageY",negative:!1};break;case"bottom":var h={events:s.dragup+" "+s.dragdown,open_dir:"up",close_dir:"down",delta:"deltaY",page:"pageY",negative:!0}}$dragNode=this.__valueOrFn(o.pageNode,this.$menu,l.$page),"string"==typeof $dragNode&&($dragNode=e($dragNode)),$dragNode.hammer().on(s.touchstart+" "+s.mousedown,function(e){if("touchstart"==e.type)var t=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],n=t[h.page];else if("mousedown"==e.type)var n=e[h.page];switch(r.opts.position){case"right":case"bottom":n>=l.$wndw[p]()-o.maxStartPos&&(u=1);break;default:n<=o.maxStartPos&&(u=1)}}).on(h.events+" "+s.dragend,function(e){u>0&&(e.gesture.preventDefault(),e.stopPropagation())}).on(h.events,function(e){var n=h.negative?-e.gesture[h.delta]:e.gesture[h.delta];if(c=n>d?h.open_dir:h.close_dir,d=n,d>o.threshold&&1==u){if(l.$html.hasClass(a.opened))return;u=2,r._openSetup(),l.$html.addClass(a.dragging),f=t(l.$wndw[p]()*r.conf[i][p].perc,r.conf[i][p].min,r.conf[i][p].max)}if(2==u){var s=l.$page;switch(r.opts.zposition){case"front":s=r.$menu;break;case"next":s=s.add(r.$menu)}s.css(r.opts.position,t(d,10,f))}}).on(s.dragend,function(){if(2==u){var e=l.$page;switch(r.opts.zposition){case"front":e=r.$menu;break;case"next":e=e.add(r.$menu)}l.$html.removeClass(a.dragging),e.css(r.opts.position,""),c==h.open_dir?r._openFinish():r.close()}u=0})}}},e[n].defaults[i]={open:!1,threshold:50},e[n].configuration[i]={width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}},e[n].addons=e[n].addons||[],e[n].addons.push(i)}(jQuery),!function(e){var t="mmenu",n="header";e[t].prototype["_addon_"+n]=function(){var i=this,r=this.opts[n],o=this.conf[n],a=e[t]._c,s=(e[t]._d,e[t]._e);a.add("header hasheader prev next title titletext"),s.add("updateheader");var l=e[t].glbl;if("boolean"==typeof r&&(r={add:r,update:r}),"object"!=typeof r&&(r={}),r=e.extend(!0,{},e[t].defaults[n],r),r.add){var u=r.content?r.content:'
';e('').prependTo(this.$menu).append(u)}var c=e("div."+a.header,this.$menu);if(c.length&&this.$menu.addClass(a.hasheader),r.update&&c.length){var d=c.find("."+a.title),f=c.find("."+a.prev),p=c.find("."+a.next),h="#"+l.$page.attr("id");f.add(p).on(s.click,function(t){t.preventDefault(),t.stopPropagation();var n=e(this).attr("href");"#"!==n&&(n==h?i.$menu.trigger(s.close):e(n,i.$menu).trigger(s.open))}),e("."+a.panel,this.$menu).each(function(){var t=e(this),n=e("."+o.panelHeaderClass,t).text(),i=e("."+o.panelPrevClass,t).attr("href"),l=e("."+o.panelNextClass,t).attr("href");n||(n=e("."+a.subclose,t).text()),n||(n=r.title),i||(i=e("."+a.subclose,t).attr("href")),t.off(s.updateheader).on(s.updateheader,function(e){e.stopPropagation(),d[n?"show":"hide"]().text(n),f[i?"show":"hide"]().attr("href",i),p[l?"show":"hide"]().attr("href",l)}),t.on(s.open,function(){e(this).trigger(s.updateheader)})}).filter("."+a.current).trigger(s.updateheader)}},e[t].defaults[n]={add:!1,content:!1,update:!1,title:"Menu"},e[t].configuration[n]={panelHeaderClass:"Header",panelNextClass:"Next",panelPrevClass:"Prev"},e[t].addons=e[t].addons||[],e[t].addons.push(n)}(jQuery),!function(e){var t="mmenu",n="labels";e[t].prototype["_addon_"+n]=function(){function i(){var e=a.hassearch&&r.$menu.hasClass(a.hassearch),t=a.hasheader&&r.$menu.hasClass(a.hasheader);return e?t?100:50:t?60:0}var r=this,o=this.opts[n],a=e[t]._c,s=(e[t]._d,e[t]._e);if(a.add("collapsed"),a.add("fixedlabels original clone"),s.add("updatelabels position scroll"),e[t].support.touch&&(s.scroll+=" "+s.mm("touchmove")),"boolean"==typeof o&&(o={collapse:o}),"object"!=typeof o&&(o={}),o=e.extend(!0,{},e[t].defaults[n],o),o.collapse){this.__refactorClass(e("li."+this.conf.collapsedClass,this.$menu),"collapsed");var l=e("."+a.label,this.$menu);l.each(function(){var t=e(this),n=t.nextUntil("."+a.label,"all"==o.collapse?null:"."+a.collapsed);"all"==o.collapse&&(t.addClass(a.opened),n.removeClass(a.collapsed)),n.length&&(t.wrapInner("
"),e('
').prependTo(t).on(s.click,function(e){e.preventDefault(),t.toggleClass(a.opened),n[t.hasClass(a.opened)?"removeClass":"addClass"](a.collapsed)}))})}else if(o.fixed){if("horizontal"!=this.direction)return;this.$menu.addClass(a.fixedlabels);var u=e("."+a.panel,this.$menu),l=e("."+a.label,this.$menu);u.add(l).off(s.updatelabels+" "+s.position+" "+s.scroll).on(s.updatelabels+" "+s.position+" "+s.scroll,function(e){e.stopPropagation()});var c=i();u.each(function(){var t=e(this),n=t.find("."+a.label);if(n.length){var r=t.scrollTop();n.each(function(){var n=e(this);n.wrapInner("
").wrapInner("
");var i,o,l,u=n.find("> div"),d=e();n.on(s.updatelabels,function(){r=t.scrollTop(),n.hasClass(a.hidden)||(d=n.nextAll("."+a.label).not("."+a.hidden).first(),i=n.offset().top+r,o=d.length?d.offset().top+r:!1,l=u.height(),n.trigger(s.position))}),n.on(s.position,function(){var e=0;o&&r+c>o-l?e=o-i-l:r+c>i&&(e=r-i+c),u.css("top",e)})}),t.on(s.updatelabels,function(){r=t.scrollTop(),c=i(),n.trigger(s.position)}).on(s.scroll,function(){n.trigger(s.updatelabels)})}}),this.$menu.on(s.update,function(){u.trigger(s.updatelabels)}).on(s.opening,function(){u.trigger(s.updatelabels).trigger(s.scroll)})}},e[t].defaults[n]={fixed:!1,collapse:!1},e[t].configuration.collapsedClass="Collapsed",e[t].addons=e[t].addons||[],e[t].addons.push(n)}(jQuery),!function(e){function t(e){switch(e){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:return!0}return!1}var n="mmenu",i="searchfield";e[n].prototype["_addon_"+i]=function(){var r=this,o=this.opts[i],a=e[n]._c,s=e[n]._d,l=e[n]._e;if(a.add("search hassearch noresults nosubresults counter"),l.add("search reset change"),"boolean"==typeof o&&(o={add:o,search:o}),"object"!=typeof o&&(o={}),o=e.extend(!0,{},e[n].defaults[i],o),o.add&&(e('
').prependTo(this.$menu).append('
'),o.noResults&&e("ul, ol",this.$menu).first().append('
'+o.noResults+"")),e("div."+a.search,this.$menu).length&&this.$menu.addClass(a.hassearch),o.search){var u=e("div."+a.search,this.$menu).find("input");if(u.length){var c=e("."+a.panel,this.$menu),d=e("."+a.list+"> li."+a.label,this.$menu),f=e("."+a.list+"> li",this.$menu).not("."+a.subtitle).not("."+a.label).not("."+a.noresults),p="> a";o.showLinksOnly||(p+=", > span"),u.off(l.keyup+" "+l.change).on(l.keyup,function(e){t(e.keyCode)||r.$menu.trigger(l.search)}).on(l.change,function(){r.$menu.trigger(l.search)}),this.$menu.off(l.reset+" "+l.search).on(l.reset+" "+l.search,function(e){e.stopPropagation()}).on(l.reset,function(){r.$menu.trigger(l.search,[""])}).on(l.search,function(t,n){"string"==typeof n?u.val(n):n=u.val(),n=n.toLowerCase(),c.scrollTop(0),f.add(d).addClass(a.hidden),f.each(function(){var t=e(this);e(p,t).text().toLowerCase().indexOf(n)>-1&&t.add(t.prevAll("."+a.label).first()).removeClass(a.hidden)}),e(c.get().reverse()).each(function(){var t=e(this),n=t.data(s.parent);if(n){var i=t.add(t.find("> ."+a.list)).find("> li").not("."+a.subtitle).not("."+a.label).not("."+a.hidden);i.length?n.removeClass(a.hidden).removeClass(a.nosubresults).prevAll("."+a.label).first().removeClass(a.hidden):(t.hasClass(a.current)&&n.trigger(l.open),n.addClass(a.nosubresults))}}),r.$menu[f.not("."+a.hidden).length?"removeClass":"addClass"](a.noresults),r.$menu.trigger(l.update)})}}},e[n].defaults[i]={add:!1,search:!1,showLinksOnly:!0,placeholder:"Search",noResults:"No results found."},e[n].addons=e[n].addons||[],e[n].addons.push(i)}(jQuery),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,i=this;e(this).one("bsTransitionEnd",function(){n=!0});var r=function(){n||e(i).trigger(e.support.transition.end)};return setTimeout(r,t),this},e(function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){return e(t.target).is(this)?t.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var n=e(this),r=n.data("bs.alert");r||n.data("bs.alert",r=new i(this)),"string"==typeof t&&r[t].call(n)})}var n='[data-dismiss="alert"]',i=function(t){e(t).on("click",n,this.close)};i.VERSION="3.3.5",i.TRANSITION_DURATION=150,i.prototype.close=function(t){function n(){a.detach().trigger("closed.bs.alert").remove()}var r=e(this),o=r.attr("data-target");o||(o=r.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,""));var a=e(o);t&&t.preventDefault(),a.length||(a=r.closest(".alert")),a.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(a.removeClass("in"),e.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n())};var r=e.fn.alert;e.fn.alert=t,e.fn.alert.Constructor=i,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.bs.alert.data-api",n,i.prototype.close)}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.button"),o="object"==typeof t&&t;r||i.data("bs.button",r=new n(this,o)),"toggle"==t?r.toggle():t&&r.setState(t)})}var n=function(t,i){this.$element=e(t),this.options=e.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.3.5",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(t){var n="disabled",i=this.$element,r=i.is("input")?"val":"html",o=i.data();t+="Text",null==o.resetText&&i.data("resetText",i[r]()),setTimeout(e.proxy(function(){i[r](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,i.addClass(n).attr(n,n)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n))},this),0)},n.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=e.fn.button;e.fn.button=t,e.fn.button.Constructor=n,e.fn.button.noConflict=function(){return e.fn.button=i,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=e(n.target);i.hasClass("btn")||(i=i.closest(".btn")),t.call(i,"toggle"),e(n.target).is('input[type="radio"]')||e(n.target).is('input[type="checkbox"]')||n.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.carousel"),o=e.extend({},n.DEFAULTS,i.data(),"object"==typeof t&&t),a="string"==typeof t?t:o.slide;r||i.data("bs.carousel",r=new n(this,o)),"number"==typeof t?r.to(t):a?r[a]():o.interval&&r.pause().cycle()})}var n=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};n.VERSION="3.3.5",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},n.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},n.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t),i="prev"==e&&0===n||"next"==e&&n==this.$items.length-1;if(i&&!this.options.wrap)return t;var r="prev"==e?-1:1,o=(n+r)%this.$items.length;return this.$items.eq(o)},n.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},n.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){return this.sliding?void 0:this.slide("next")},n.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},n.prototype.slide=function(t,i){var r=this.$element.find(".item.active"),o=i||this.getItemForDirection(t,r),a=this.interval,s="next"==t?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var u=o[0],c=e.Event("slide.bs.carousel",{relatedTarget:u,direction:s});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=e(this.$indicators.children()[this.getItemIndex(o)]);d&&d.addClass("active")}var f=e.Event("slid.bs.carousel",{relatedTarget:u,direction:s});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(t),o[0].offsetWidth,r.addClass(s),o.addClass(s),r.one("bsTransitionEnd",function(){o.removeClass([t,s].join(" ")).addClass("active"),r.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(f)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(r.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(f)),a&&this.cycle(),this}};var i=e.fn.carousel;e.fn.carousel=t,e.fn.carousel.Constructor=n,e.fn.carousel.noConflict=function(){return e.fn.carousel=i,this};var r=function(n){var i,r=e(this),o=e(r.attr("data-target")||(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var a=e.extend({},o.data(),r.data()),s=r.attr("data-slide-to");s&&(a.interval=!1),t.call(o,a),s&&o.data("bs.carousel").to(s),n.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var n=e(this);t.call(n,n.data())})})}(jQuery),+function(e){"use strict";function t(t){var n,i=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(i)}function n(t){return this.each(function(){var n=e(this),r=n.data("bs.collapse"),o=e.extend({},i.DEFAULTS,n.data(),"object"==typeof t&&t);!r&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),r||n.data("bs.collapse",r=new i(this,o)),"string"==typeof t&&r[t]()})}var i=function(t,n){this.$element=e(t),this.options=e.extend({},i.DEFAULTS,n),this.$trigger=e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.3.5",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){var e=this.$element.hasClass("width");return e?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");
if(!(r&&r.length&&(t=r.data("bs.collapse"),t&&t.transitioning))){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){r&&r.length&&(n.call(r,"hide"),t||r.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var l=e.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[a](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return e.support.transition?void this.$element[n](0).one("bsTransitionEnd",e.proxy(r,this)).emulateTransitionEnd(i.TRANSITION_DURATION):r.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(n,i){var r=e(i);this.addAriaAndCollapsedClass(t(r),r)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var r=e.fn.collapse;e.fn.collapse=n,e.fn.collapse.Constructor=i,e.fn.collapse.noConflict=function(){return e.fn.collapse=r,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var r=e(this);r.attr("data-target")||i.preventDefault();var o=t(r),a=o.data("bs.collapse"),s=a?"toggle":r.data();n.call(o,s)})}(jQuery),+function(e){"use strict";function t(t){var n=t.attr("data-target");n||(n=t.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&e(n);return i&&i.length?i:t.parent()}function n(n){n&&3===n.which||(e(r).remove(),e(o).each(function(){var i=e(this),r=t(i),o={relatedTarget:this};r.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&e.contains(r[0],n.target)||(r.trigger(n=e.Event("hide.bs.dropdown",o)),n.isDefaultPrevented()||(i.attr("aria-expanded","false"),r.removeClass("open").trigger("hidden.bs.dropdown",o))))}))}function i(t){return this.each(function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new a(this)),"string"==typeof t&&i[t].call(n)})}var r=".dropdown-backdrop",o='[data-toggle="dropdown"]',a=function(t){e(t).on("click.bs.dropdown",this.toggle)};a.VERSION="3.3.5",a.prototype.toggle=function(i){var r=e(this);if(!r.is(".disabled, :disabled")){var o=t(r),a=o.hasClass("open");if(n(),!a){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",n);var s={relatedTarget:this};if(o.trigger(i=e.Event("show.bs.dropdown",s)),i.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger("shown.bs.dropdown",s)}return!1}},a.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var i=e(this);if(n.preventDefault(),n.stopPropagation(),!i.is(".disabled, :disabled")){var r=t(i),a=r.hasClass("open");if(!a&&27!=n.which||a&&27==n.which)return 27==n.which&&r.find(o).trigger("focus"),i.trigger("click");var s=" li:not(.disabled):visible a",l=r.find(".dropdown-menu"+s);if(l.length){var u=l.index(n.target);38==n.which&&u>0&&u--,40==n.which&&u
document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth ',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},n.prototype.init=function(t,n,i){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&e(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),o=r.length;o--;){var a=r[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(t){return t=e.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},n.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,function(e,i){n[e]!=i&&(t[e]=i)}),t},n.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},n.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},n.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),n.isInStateTrue()?void 0:(clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide())},n.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var i=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!i)return;var r=this,o=this.tip(),a=this.getUID(this.type);this.setContent(),o.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&o.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,u=l.test(s);u&&(s=s.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),d=o[0].offsetWidth,f=o[0].offsetHeight;if(u){var p=s,h=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+f>h.bottom?"top":"top"==s&&c.top-f