/*! * bootstrap v4.0.0-alpha.6 (https://getbootstrap.com) * copyright 2011-2017 the bootstrap authors (https://github.com/twbs/bootstrap/graphs/contributors) * licensed under mit (https://github.com/twbs/bootstrap/blob/master/license) */ if("undefined"==typeof jquery)throw new error("bootstrap's javascript requires jquery. jquery must be included before bootstrap's javascript.");+function(t){var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>=4)throw new error("bootstrap's javascript requires at least jquery v1.9.1 but less than v4.0.0")}(jquery),+function(){function t(t,e){if(!t)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function e(t,e){if("function"!=typeof e&&null!==e)throw new typeerror("super expression must either be null or a function, not "+typeof e);t.prototype=object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(object.setprototypeof?object.setprototypeof(t,e):t.__proto__=e)}function n(t,e){if(!(t instanceof e))throw new typeerror("cannot call a class as a function")}var i="function"==typeof symbol&&"symbol"==typeof symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof symbol&&t.constructor===symbol&&t!==symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;nthis._items.length-1||e<0)){if(this._issliding)return void t(this._element).one(m.slid,function(){return n.to(e)});if(i===e)return this.pause(),void this.cycle();var o=e>i?p.next:p.previous;this._slide(o,this._items[e])}},h.prototype.dispose=function(){t(this._element).off(l),t.removedata(this._element,a),this._items=null,this._config=null,this._element=null,this._interval=null,this._ispaused=null,this._issliding=null,this._activeelement=null,this._indicatorselement=null},h.prototype._getconfig=function(n){return n=t.extend({},_,n),r.typecheckconfig(e,n,g),n},h.prototype._addeventlisteners=function(){var e=this;this._config.keyboard&&t(this._element).on(m.keydown,function(t){return e._keydown(t)}),"hover"!==this._config.pause||"ontouchstart"in document.documentelement||t(this._element).on(m.mouseenter,function(t){return e.pause(t)}).on(m.mouseleave,function(t){return e.cycle(t)})},h.prototype._keydown=function(t){if(!/input|textarea/i.test(t.target.tagname))switch(t.which){case d:t.preventdefault(),this.prev();break;case f:t.preventdefault(),this.next();break;default:return}},h.prototype._getitemindex=function(e){return this._items=t.makearray(t(e).parent().find(v.item)),this._items.indexof(e)},h.prototype._getitembydirection=function(t,e){var n=t===p.next,i=t===p.previous,o=this._getitemindex(e),r=this._items.length-1,s=i&&0===o||n&&o===r;if(s&&!this._config.wrap)return e;var a=t===p.previous?-1:1,l=(o+a)%this._items.length;return l===-1?this._items[this._items.length-1]:this._items[l]},h.prototype._triggerslideevent=function(e,n){var i=t.event(m.slide,{relatedtarget:e,direction:n});return t(this._element).trigger(i),i},h.prototype._setactiveindicatorelement=function(e){if(this._indicatorselement){t(this._indicatorselement).find(v.active).removeclass(e.active);var n=this._indicatorselement.children[this._getitemindex(e)];n&&t(n).addclass(e.active)}},h.prototype._slide=function(e,n){var i=this,o=t(this._element).find(v.active_item)[0],s=n||o&&this._getitembydirection(e,o),a=boolean(this._interval),l=void 0,h=void 0,c=void 0;if(e===p.next?(l=e.left,h=e.next,c=p.left):(l=e.right,h=e.prev,c=p.right),s&&t(s).hasclass(e.active))return void(this._issliding=!1);var d=this._triggerslideevent(s,c);if(!d.isdefaultprevented()&&o&&s){this._issliding=!0,a&&this.pause(),this._setactiveindicatorelement(s);var f=t.event(m.slid,{relatedtarget:s,direction:c});r.supportstransitionend()&&t(this._element).hasclass(e.slide)?(t(s).addclass(h),r.reflow(s),t(o).addclass(l),t(s).addclass(l),t(o).one(r.transition_end,function(){t(s).removeclass(l+" "+h).addclass(e.active),t(o).removeclass(e.active+" "+h+" "+l),i._issliding=!1,settimeout(function(){return t(i._element).trigger(f)},0)}).emulatetransitionend(u)):(t(o).removeclass(e.active),t(s).addclass(e.active),this._issliding=!1,t(this._element).trigger(f)),a&&this.cycle()}},h._jqueryinterface=function(e){return this.each(function(){var n=t(this).data(a),o=t.extend({},_,t(this).data());"object"===("undefined"==typeof e?"undefined":i(e))&&t.extend(o,e);var r="string"==typeof e?e:o.slide;if(n||(n=new h(this,o),t(this).data(a,n)),"number"==typeof e)n.to(e);else if("string"==typeof r){if(void 0===n[r])throw new error('no method named "'+r+'"');n[r]()}else o.interval&&(n.pause(),n.cycle())})},h._dataapiclickhandler=function(e){var n=r.getselectorfromelement(this);if(n){var i=t(n)[0];if(i&&t(i).hasclass(e.carousel)){var o=t.extend({},t(i).data(),t(this).data()),s=this.getattribute("data-slide-to");s&&(o.interval=!1),h._jqueryinterface.call(t(i),o),s&&t(i).data(a).to(s),e.preventdefault()}}},o(h,null,[{key:"version",get:function(){return s}},{key:"default",get:function(){return _}}]),h}();return t(document).on(m.click_data_api,v.data_slide,t._dataapiclickhandler),t(window).on(m.load_data_api,function(){t(v.data_ride).each(function(){var e=t(this);t._jqueryinterface.call(e,e.data())})}),t.fn[e]=t._jqueryinterface,t.fn[e].constructor=t,t.fn[e].noconflict=function(){return t.fn[e]=c,t._jqueryinterface},t}(jquery),function(t){var e="collapse",s="4.0.0-alpha.6",a="bs.collapse",l="."+a,h=".data-api",c=t.fn[e],u=600,d={toggle:!0,parent:""},f={toggle:"boolean",parent:"string"},_={show:"show"+l,shown:"shown"+l,hide:"hide"+l,hidden:"hidden"+l,click_data_api:"click"+l+h},g={show:"show",collapse:"collapse",collapsing:"collapsing",collapsed:"collapsed"},p={width:"width",height:"height"},m={actives:".card >.show, .card > .collapsing",data_toggle:'[data-toggle="collapse"]'},e=function(){function l(e,i){n(this,l),this._istransitioning=!1,this._element=e,this._config=this._getconfig(i),this._triggerarray=t.makearray(t('[data-toggle="collapse"][href="#'+e.id+'"],'+('[data-toggle="collapse"][data-target="#'+e.id+'"]'))),this._parent=this._config.parent?this._getparent():null,this._config.parent||this._addariaandcollapsedclass(this._element,this._triggerarray),this._config.toggle&&this.toggle()}return l.prototype.toggle=function(){t(this._element).hasclass(g.show)?this.hide():this.show()},l.prototype.show=function(){var e=this;if(this._istransitioning)throw new error("collapse is transitioning");if(!t(this._element).hasclass(g.show)){var n=void 0,i=void 0;if(this._parent&&(n=t.makearray(t(this._parent).find(m.actives)),n.length||(n=null)),!(n&&(i=t(n).data(a),i&&i._istransitioning))){var o=t.event(_.show);if(t(this._element).trigger(o),!o.isdefaultprevented()){n&&(l._jqueryinterface.call(t(n),"hide"),i||t(n).data(a,null));var s=this._getdimension();t(this._element).removeclass(g.collapse).addclass(g.collapsing),this._element.style[s]=0,this._element.setattribute("aria-expanded",!0),this._triggerarray.length&&t(this._triggerarray).removeclass(g.collapsed).attr("aria-expanded",!0),this.settransitioning(!0);var h=function(){t(e._element).removeclass(g.collapsing).addclass(g.collapse).addclass(g.show),e._element.style[s]="",e.settransitioning(!1),t(e._element).trigger(_.shown)};if(!r.supportstransitionend())return void h();var c=s[0].touppercase()+s.slice(1),d="scroll"+c;t(this._element).one(r.transition_end,h).emulatetransitionend(u),this._element.style[s]=this._element[d]+"px"}}}},l.prototype.hide=function(){var e=this;if(this._istransitioning)throw new error("collapse is transitioning");if(t(this._element).hasclass(g.show)){var n=t.event(_.hide);if(t(this._element).trigger(n),!n.isdefaultprevented()){var i=this._getdimension(),o=i===p.width?"offsetwidth":"offsetheight";this._element.style[i]=this._element[o]+"px",r.reflow(this._element),t(this._element).addclass(g.collapsing).removeclass(g.collapse).removeclass(g.show),this._element.setattribute("aria-expanded",!1),this._triggerarray.length&&t(this._triggerarray).addclass(g.collapsed).attr("aria-expanded",!1),this.settransitioning(!0);var s=function(){e.settransitioning(!1),t(e._element).removeclass(g.collapsing).addclass(g.collapse).trigger(_.hidden)};return this._element.style[i]="",r.supportstransitionend()?void t(this._element).one(r.transition_end,s).emulatetransitionend(u):void s()}}},l.prototype.settransitioning=function(t){this._istransitioning=t},l.prototype.dispose=function(){t.removedata(this._element,a),this._config=null,this._parent=null,this._element=null,this._triggerarray=null,this._istransitioning=null},l.prototype._getconfig=function(n){return n=t.extend({},d,n),n.toggle=boolean(n.toggle),r.typecheckconfig(e,n,f),n},l.prototype._getdimension=function(){var e=t(this._element).hasclass(p.width);return e?p.width:p.height},l.prototype._getparent=function(){var e=this,n=t(this._config.parent)[0],i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return t(n).find(i).each(function(t,n){e._addariaandcollapsedclass(l._gettargetfromelement(n),[n])}),n},l.prototype._addariaandcollapsedclass=function(e,n){if(e){var i=t(e).hasclass(g.show);e.setattribute("aria-expanded",i),n.length&&t(n).toggleclass(g.collapsed,!i).attr("aria-expanded",i)}},l._gettargetfromelement=function(e){var n=r.getselectorfromelement(e);return n?t(n)[0]:null},l._jqueryinterface=function(e){return this.each(function(){var n=t(this),o=n.data(a),r=t.extend({},d,n.data(),"object"===("undefined"==typeof e?"undefined":i(e))&&e);if(!o&&r.toggle&&/show|hide/.test(e)&&(r.toggle=!1),o||(o=new l(this,r),n.data(a,o)),"string"==typeof e){if(void 0===o[e])throw new error('no method named "'+e+'"');o[e]()}})},o(l,null,[{key:"version",get:function(){return s}},{key:"default",get:function(){return d}}]),l}();return t(document).on(_.click_data_api,m.data_toggle,function(e){e.preventdefault();var n=e._gettargetfromelement(this),i=t(n).data(a),o=i?"toggle":t(this).data();e._jqueryinterface.call(t(n),o)}),t.fn[e]=e._jqueryinterface,t.fn[e].constructor=e,t.fn[e].noconflict=function(){return t.fn[e]=c,e._jqueryinterface},e}(jquery),function(t){var e="dropdown",i="4.0.0-alpha.6",s="bs.dropdown",a="."+s,l=".data-api",h=t.fn[e],c=27,u=38,d=40,f=3,_={hide:"hide"+a,hidden:"hidden"+a,show:"show"+a,shown:"shown"+a,click:"click"+a,click_data_api:"click"+a+l,focusin_data_api:"focusin"+a+l,keydown_data_api:"keydown"+a+l},g={backdrop:"dropdown-backdrop",disabled:"disabled",show:"show"},p={backdrop:".dropdown-backdrop",data_toggle:'[data-toggle="dropdown"]',form_child:".dropdown form",role_menu:'[role="menu"]',role_listbox:'[role="listbox"]',navbar_nav:".navbar-nav",visible_items:'[role="menu"] li:not(.disabled) a, [role="listbox"] li:not(.disabled) a'},m=function(){function e(t){n(this,e),this._element=t,this._addeventlisteners()}return e.prototype.toggle=function(){if(this.disabled||t(this).hasclass(g.disabled))return!1;var n=e._getparentfromelement(this),i=t(n).hasclass(g.show);if(e._clearmenus(),i)return!1;if("ontouchstart"in document.documentelement&&!t(n).closest(p.navbar_nav).length){var o=document.createelement("div");o.classname=g.backdrop,t(o).insertbefore(this),t(o).on("click",e._clearmenus)}var r={relatedtarget:this},s=t.event(_.show,r);return t(n).trigger(s),!s.isdefaultprevented()&&(this.focus(),this.setattribute("aria-expanded",!0),t(n).toggleclass(g.show),t(n).trigger(t.event(_.shown,r)),!1)},e.prototype.dispose=function(){t.removedata(this._element,s),t(this._element).off(a),this._element=null},e.prototype._addeventlisteners=function(){t(this._element).on(_.click,this.toggle)},e._jqueryinterface=function(n){return this.each(function(){var i=t(this).data(s);if(i||(i=new e(this),t(this).data(s,i)),"string"==typeof n){if(void 0===i[n])throw new error('no method named "'+n+'"');i[n].call(this)}})},e._clearmenus=function(n){if(!n||n.which!==f){var i=t(p.backdrop)[0];i&&i.parentnode.removechild(i);for(var o=t.makearray(t(p.data_toggle)),r=0;r0&&a--,n.which===d&&adocument.documentelement.clientheight;!this._isbodyoverflowing&&t&&(this._element.style.paddingleft=this._scrollbarwidth+"px"),this._isbodyoverflowing&&!t&&(this._element.style.paddingright=this._scrollbarwidth+"px")},h.prototype._resetadjustments=function(){this._element.style.paddingleft="",this._element.style.paddingright=""},h.prototype._checkscrollbar=function(){this._isbodyoverflowing=document.body.clientwidth=n){var i=this._targets[this._targets.length-1];return void(this._activetarget!==i&&this._activate(i))}if(this._activetarget&&t0)return this._activetarget=null,void this._clear();for(var o=this._offsets.length;o--;){var r=this._activetarget!==this._targets[o]&&t>=this._offsets[o]&&(void 0===this._offsets[o+1]||t "+g.nav_links).addclass(_.active),t(this._scrollelement).trigger(f.activate,{relatedtarget:e})},h.prototype._clear=function(){t(this._selector).filter(g.active).removeclass(_.active)},h._jqueryinterface=function(e){return this.each(function(){var n=t(this).data(a),o="object"===("undefined"==typeof e?"undefined":i(e))&&e; if(n||(n=new h(this,o),t(this).data(a,n)),"string"==typeof e){if(void 0===n[e])throw new error('no method named "'+e+'"');n[e]()}})},o(h,null,[{key:"version",get:function(){return s}},{key:"default",get:function(){return u}}]),h}();return t(window).on(f.load_data_api,function(){for(var e=t.makearray(t(g.data_spy)),n=e.length;n--;){var i=t(e[n]);m._jqueryinterface.call(i,i.data())}}),t.fn[e]=m._jqueryinterface,t.fn[e].constructor=m,t.fn[e].noconflict=function(){return t.fn[e]=c,m._jqueryinterface},m}(jquery),function(t){var e="tab",i="4.0.0-alpha.6",s="bs.tab",a="."+s,l=".data-api",h=t.fn[e],c=150,u={hide:"hide"+a,hidden:"hidden"+a,show:"show"+a,shown:"shown"+a,click_data_api:"click"+a+l},d={dropdown_menu:"dropdown-menu",active:"active",disabled:"disabled",fade:"fade",show:"show"},f={a:"a",li:"li",dropdown:".dropdown",list:"ul:not(.dropdown-menu), ol:not(.dropdown-menu), nav:not(.dropdown-menu)",fade_child:"> .nav-item .fade, >.fade",active:".active",active_child:"> .nav-item > .active, > .active",data_toggle:'[data-toggle="tab"], [data-toggle="pill"]',dropdown_toggle:".dropdown-toggle",dropdown_active_child:"> .dropdown-menu .active"},_=function(){function e(t){n(this,e),this._element=t}return e.prototype.show=function(){var e=this;if(!(this._element.parentnode&&this._element.parentnode.nodetype===node.element_node&&t(this._element).hasclass(d.active)||t(this._element).hasclass(d.disabled))){var n=void 0,i=void 0,o=t(this._element).closest(f.list)[0],s=r.getselectorfromelement(this._element);o&&(i=t.makearray(t(o).find(f.active)),i=i[i.length-1]);var a=t.event(u.hide,{relatedtarget:this._element}),l=t.event(u.show,{relatedtarget:i});if(i&&t(i).trigger(a),t(this._element).trigger(l),!l.isdefaultprevented()&&!a.isdefaultprevented()){s&&(n=t(s)[0]),this._activate(this._element,o);var h=function(){var n=t.event(u.hidden,{relatedtarget:e._element}),o=t.event(u.shown,{relatedtarget:i});t(i).trigger(n),t(e._element).trigger(o)};n?this._activate(n,n.parentnode,h):h()}}},e.prototype.dispose=function(){t.removeclass(this._element,s),this._element=null},e.prototype._activate=function(e,n,i){var o=this,s=t(n).find(f.active_child)[0],a=i&&r.supportstransitionend()&&(s&&t(s).hasclass(d.fade)||boolean(t(n).find(f.fade_child)[0])),l=function(){return o._transitioncomplete(e,s,a,i)};s&&a?t(s).one(r.transition_end,l).emulatetransitionend(c):l(),s&&t(s).removeclass(d.show)},e.prototype._transitioncomplete=function(e,n,i,o){if(n){t(n).removeclass(d.active);var s=t(n.parentnode).find(f.dropdown_active_child)[0];s&&t(s).removeclass(d.active),n.setattribute("aria-expanded",!1)}if(t(e).addclass(d.active),e.setattribute("aria-expanded",!0),i?(r.reflow(e),t(e).addclass(d.show)):t(e).removeclass(d.fade),e.parentnode&&t(e.parentnode).hasclass(d.dropdown_menu)){var a=t(e).closest(f.dropdown)[0];a&&t(a).find(f.dropdown_toggle).addclass(d.active),e.setattribute("aria-expanded",!0)}o&&o()},e._jqueryinterface=function(n){return this.each(function(){var i=t(this),o=i.data(s);if(o||(o=new e(this),i.data(s,o)),"string"==typeof n){if(void 0===o[n])throw new error('no method named "'+n+'"');o[n]()}})},o(e,null,[{key:"version",get:function(){return i}}]),e}();return t(document).on(u.click_data_api,f.data_toggle,function(e){e.preventdefault(),_._jqueryinterface.call(t(this),"show")}),t.fn[e]=_._jqueryinterface,t.fn[e].constructor=_,t.fn[e].noconflict=function(){return t.fn[e]=h,_._jqueryinterface},_}(jquery),function(t){if("undefined"==typeof tether)throw new error("bootstrap tooltips require tether (http://tether.io/)");var e="tooltip",s="4.0.0-alpha.6",a="bs.tooltip",l="."+a,h=t.fn[e],c=150,u="bs-tether",d={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:"0 0",constraints:[],container:!1},f={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"string",constraints:"array",container:"(string|element|boolean)"},_={top:"bottom center",right:"middle left",bottom:"top center",left:"middle right"},g={show:"show",out:"out"},p={hide:"hide"+l,hidden:"hidden"+l,show:"show"+l,shown:"shown"+l,inserted:"inserted"+l,click:"click"+l,focusin:"focusin"+l,focusout:"focusout"+l,mouseenter:"mouseenter"+l,mouseleave:"mouseleave"+l},m={fade:"fade",show:"show"},e={tooltip:".tooltip",tooltip_inner:".tooltip-inner"},v={element:!1,enabled:!1},t={hover:"hover",focus:"focus",click:"click",manual:"manual"},i=function(){function h(t,e){n(this,h),this._isenabled=!0,this._timeout=0,this._hoverstate="",this._activetrigger={},this._istransitioning=!1,this._tether=null,this.element=t,this.config=this._getconfig(e),this.tip=null,this._setlisteners()}return h.prototype.enable=function(){this._isenabled=!0},h.prototype.disable=function(){this._isenabled=!1},h.prototype.toggleenabled=function(){this._isenabled=!this._isenabled},h.prototype.toggle=function(e){if(e){var n=this.constructor.data_key,i=t(e.currenttarget).data(n);i||(i=new this.constructor(e.currenttarget,this._getdelegateconfig()),t(e.currenttarget).data(n,i)),i._activetrigger.click=!i._activetrigger.click,i._iswithactivetrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.gettipelement()).hasclass(m.show))return void this._leave(null,this);this._enter(null,this)}},h.prototype.dispose=function(){cleartimeout(this._timeout),this.cleanuptether(),t.removedata(this.element,this.constructor.data_key),t(this.element).off(this.constructor.event_key),t(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&t(this.tip).remove(),this._isenabled=null,this._timeout=null,this._hoverstate=null,this._activetrigger=null,this._tether=null,this.element=null,this.config=null,this.tip=null},h.prototype.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new error("please use show on visible elements");var n=t.event(this.constructor.event.show);if(this.iswithcontent()&&this._isenabled){if(this._istransitioning)throw new error("tooltip is transitioning");t(this.element).trigger(n);var i=t.contains(this.element.ownerdocument.documentelement,this.element);if(n.isdefaultprevented()||!i)return;var o=this.gettipelement(),s=r.getuid(this.constructor.name);o.setattribute("id",s),this.element.setattribute("aria-describedby",s),this.setcontent(),this.config.animation&&t(o).addclass(m.fade);var a="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,l=this._getattachment(a),c=this.config.container===!1?document.body:t(this.config.container);t(o).data(this.constructor.data_key,this).appendto(c),t(this.element).trigger(this.constructor.event.inserted),this._tether=new tether({attachment:l,element:o,target:this.element,classes:v,classprefix:u,offset:this.config.offset,constraints:this.config.constraints,addtargetclasses:!1}),r.reflow(o),this._tether.position(),t(o).addclass(m.show);var d=function(){var n=e._hoverstate;e._hoverstate=null,e._istransitioning=!1,t(e.element).trigger(e.constructor.event.shown),n===g.out&&e._leave(null,e)};if(r.supportstransitionend()&&t(this.tip).hasclass(m.fade))return this._istransitioning=!0,void t(this.tip).one(r.transition_end,d).emulatetransitionend(h._transition_duration);d()}},h.prototype.hide=function(e){var n=this,i=this.gettipelement(),o=t.event(this.constructor.event.hide);if(this._istransitioning)throw new error("tooltip is transitioning");var s=function(){n._hoverstate!==g.show&&i.parentnode&&i.parentnode.removechild(i),n.element.removeattribute("aria-describedby"),t(n.element).trigger(n.constructor.event.hidden),n._istransitioning=!1,n.cleanuptether(),e&&e()};t(this.element).trigger(o),o.isdefaultprevented()||(t(i).removeclass(m.show),this._activetrigger[t.click]=!1,this._activetrigger[t.focus]=!1,this._activetrigger[t.hover]=!1,r.supportstransitionend()&&t(this.tip).hasclass(m.fade)?(this._istransitioning=!0,t(i).one(r.transition_end,s).emulatetransitionend(c)):s(),this._hoverstate="")},h.prototype.iswithcontent=function(){return boolean(this.gettitle())},h.prototype.gettipelement=function(){return this.tip=this.tip||t(this.config.template)[0]},h.prototype.setcontent=function(){var e=t(this.gettipelement());this.setelementcontent(e.find(e.tooltip_inner),this.gettitle()),e.removeclass(m.fade+" "+m.show),this.cleanuptether()},h.prototype.setelementcontent=function(e,n){var o=this.config.html;"object"===("undefined"==typeof n?"undefined":i(n))&&(n.nodetype||n.jquery)?o?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text()):e[o?"html":"text"](n)},h.prototype.gettitle=function(){var t=this.element.getattribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},h.prototype.cleanuptether=function(){this._tether&&this._tether.destroy()},h.prototype._getattachment=function(t){return _[t.touppercase()]},h.prototype._setlisteners=function(){var e=this,n=this.config.trigger.split(" ");n.foreach(function(n){if("click"===n)t(e.element).on(e.constructor.event.click,e.config.selector,function(t){return e.toggle(t)});else if(n!==t.manual){var i=n===t.hover?e.constructor.event.mouseenter:e.constructor.event.focusin,o=n===t.hover?e.constructor.event.mouseleave:e.constructor.event.focusout;t(e.element).on(i,e.config.selector,function(t){return e._enter(t)}).on(o,e.config.selector,function(t){return e._leave(t)})}t(e.element).closest(".modal").on("hide.bs.modal",function(){return e.hide()})}),this.config.selector?this.config=t.extend({},this.config,{trigger:"manual",selector:""}):this._fixtitle()},h.prototype._fixtitle=function(){var t=i(this.element.getattribute("data-original-title"));(this.element.getattribute("title")||"string"!==t)&&(this.element.setattribute("data-original-title",this.element.getattribute("title")||""),this.element.setattribute("title",""))},h.prototype._enter=function(e,n){var i=this.constructor.data_key;return n=n||t(e.currenttarget).data(i),n||(n=new this.constructor(e.currenttarget,this._getdelegateconfig()),t(e.currenttarget).data(i,n)),e&&(n._activetrigger["focusin"===e.type?t.focus:t.hover]=!0),t(n.gettipelement()).hasclass(m.show)||n._hoverstate===g.show?void(n._hoverstate=g.show):(cleartimeout(n._timeout),n._hoverstate=g.show,n.config.delay&&n.config.delay.show?void(n._timeout=settimeout(function(){n._hoverstate===g.show&&n.show()},n.config.delay.show)):void n.show())},h.prototype._leave=function(e,n){var i=this.constructor.data_key;if(n=n||t(e.currenttarget).data(i),n||(n=new this.constructor(e.currenttarget,this._getdelegateconfig()),t(e.currenttarget).data(i,n)),e&&(n._activetrigger["focusout"===e.type?t.focus:t.hover]=!1),!n._iswithactivetrigger())return cleartimeout(n._timeout),n._hoverstate=g.out,n.config.delay&&n.config.delay.hide?void(n._timeout=settimeout(function(){n._hoverstate===g.out&&n.hide()},n.config.delay.hide)):void n.hide()},h.prototype._iswithactivetrigger=function(){for(var t in this._activetrigger)if(this._activetrigger[t])return!0;return!1},h.prototype._getconfig=function(n){return n=t.extend({},this.constructor.default,t(this.element).data(),n),n.delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),r.typecheckconfig(e,n,this.constructor.defaulttype),n},h.prototype._getdelegateconfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},h._jqueryinterface=function(e){return this.each(function(){var n=t(this).data(a),o="object"===("undefined"==typeof e?"undefined":i(e))&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new h(this,o),t(this).data(a,n)),"string"==typeof e)){if(void 0===n[e])throw new error('no method named "'+e+'"');n[e]()}})},o(h,null,[{key:"version",get:function(){return s}},{key:"default",get:function(){return d}},{key:"name",get:function(){return e}},{key:"data_key",get:function(){return a}},{key:"event",get:function(){return p}},{key:"event_key",get:function(){return l}},{key:"defaulttype",get:function(){return f}}]),h}();return t.fn[e]=i._jqueryinterface,t.fn[e].constructor=i,t.fn[e].noconflict=function(){return t.fn[e]=h,i._jqueryinterface},i}(jquery));(function(r){var a="popover",l="4.0.0-alpha.6",h="bs.popover",c="."+h,u=r.fn[a],d=r.extend({},s.default,{placement:"right",trigger:"click",content:"",template:''}),f=r.extend({},s.defaulttype,{content:"(string|element|function)"}),_={fade:"fade",show:"show"},g={title:".popover-title",content:".popover-content"},p={hide:"hide"+c,hidden:"hidden"+c,show:"show"+c,shown:"shown"+c,inserted:"inserted"+c,click:"click"+c,focusin:"focusin"+c,focusout:"focusout"+c,mouseenter:"mouseenter"+c,mouseleave:"mouseleave"+c},m=function(s){function u(){return n(this,u),t(this,s.apply(this,arguments))}return e(u,s),u.prototype.iswithcontent=function(){return this.gettitle()||this._getcontent()},u.prototype.gettipelement=function(){return this.tip=this.tip||r(this.config.template)[0]},u.prototype.setcontent=function(){var t=r(this.gettipelement());this.setelementcontent(t.find(g.title),this.gettitle()),this.setelementcontent(t.find(g.content),this._getcontent()),t.removeclass(_.fade+" "+_.show),this.cleanuptether()},u.prototype._getcontent=function(){return this.element.getattribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},u._jqueryinterface=function(t){return this.each(function(){var e=r(this).data(h),n="object"===("undefined"==typeof t?"undefined":i(t))?t:null;if((e||!/destroy|hide/.test(t))&&(e||(e=new u(this,n),r(this).data(h,e)),"string"==typeof t)){if(void 0===e[t])throw new error('no method named "'+t+'"');e[t]()}})},o(u,null,[{key:"version",get:function(){return l}},{key:"default",get:function(){return d}},{key:"name",get:function(){return a}},{key:"data_key",get:function(){return h}},{key:"event",get:function(){return p}},{key:"event_key",get:function(){return c}},{key:"defaulttype",get:function(){return f}}]),u}(s);return r.fn[a]=m._jqueryinterface,r.fn[a].constructor=m,r.fn[a].noconflict=function(){return r.fn[a]=u,m._jqueryinterface},m})(jquery)}();