if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(){var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||3
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:t},a.prototype.init=function(t,e,o){if(this.enabled=!0,this.type=t,this.$element=u(e),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&u(document).find(u.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 i=this.options.trigger.split(" "),n=i.length;n--;){var r,s=i[n];"click"==s?this.$element.on("click."+this.type,this.options.selector,u.proxy(this.toggle,this)):"manual"!=s&&(r="hover"==s?"mouseleave":"focusout",this.$element.on(("hover"==s?"mouseenter":"focusin")+"."+this.type,this.options.selector,u.proxy(this.enter,this)),this.$element.on(r+"."+this.type,this.options.selector,u.proxy(this.leave,this)))}this.options.selector?this._options=u.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},a.prototype.getDefaults=function(){return a.DEFAULTS},a.prototype.getOptions=function(t){var e,o=this.$element.data();for(e in o)o.hasOwnProperty(e)&&-1!==u.inArray(e,i)&&delete o[e];return(t=u.extend({},this.getDefaults(),o,t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=n(t.template,t.whiteList,t.sanitizeFn)),t},a.prototype.getDelegateOptions=function(){var o={},i=this.getDefaults();return this._options&&u.each(this._options,function(t,e){i[t]!=e&&(o[t]=e)}),o},a.prototype.enter=function(t){var e=t instanceof this.constructor?t:u(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),u(t.currentTarget).data("bs."+this.type,e)),t instanceof u.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},a.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},a.prototype.leave=function(t){var e=t instanceof this.constructor?t:u(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),u(t.currentTarget).data("bs."+this.type,e)),t instanceof u.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},a.prototype.show=function(){var e,t,o,i,n,r,s,p=u.Event("show.bs."+this.type);this.hasContent()&&this.enabled&&(this.$element.trigger(p),n=u.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),!p.isDefaultPrevented())&&n&&(p=(e=this).tip(),n=this.getUID(this.type),this.setContent(),p.attr("id",n),this.$element.attr("aria-describedby",n),this.options.animation&&p.addClass("fade"),n="function"==typeof this.options.placement?this.options.placement.call(this,p[0],this.$element[0]):this.options.placement,(s=(t=/\s?auto?\s?/i).test(n))&&(n=n.replace(t,"")||"top"),p.detach().css({top:0,left:0,display:"block"}).addClass(n).data("bs."+this.type,this),this.options.container?p.appendTo(u(document).find(this.options.container)):p.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type),t=this.getPosition(),o=p[0].offsetWidth,i=p[0].offsetHeight,s&&(s=n,r=this.getPosition(this.$viewport),n="bottom"==n&&t.bottom+i>r.bottom?"top":"top"==n&&t.top-ir.width?"left":"left"==n&&t.left-or.top+r.height&&(s.top=r.top+r.height-i)):(t=e.left-n,i=e.left+n+o,tr.right&&(s.left=r.left+r.width-i))),s},a.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},a.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},a.prototype.tip=function(){if(this.$tip||(this.$tip=u(this.options.template),1==this.$tip.length))return this.$tip;throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!")},a.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},a.prototype.enable=function(){this.enabled=!0},a.prototype.disable=function(){this.enabled=!1},a.prototype.toggleEnabled=function(){this.enabled=!this.enabled},a.prototype.toggle=function(t){var e=this;t&&!(e=u(t.currentTarget).data("bs."+this.type))&&(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),u(t.currentTarget).data("bs."+this.type,e)),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},a.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},a.prototype.sanitizeHtml=function(t){return n(t,this.options.whiteList,this.options.sanitizeFn)};var e=u.fn.tooltip;u.fn.tooltip=function(i){return this.each(function(){var t=u(this),e=t.data("bs.tooltip"),o="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.tooltip",e=new a(this,o)),"string"==typeof i&&e[i]())})},u.fn.tooltip.Constructor=a,u.fn.tooltip.noConflict=function(){return u.fn.tooltip=e,this}}(jQuery),function(n){function r(t,e){this.init("popover",t,e)}if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");r.VERSION="3.4.1",r.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),((r.prototype=n.extend({},n.fn.tooltip.Constructor.prototype)).constructor=r).prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.setContent=function(){var t,e=this.tip(),o=this.getTitle(),i=this.getContent();this.options.html?(t=typeof i,this.options.sanitize&&(o=this.sanitizeHtml(o),"string"==t)&&(i=this.sanitizeHtml(i)),e.find(".popover-title").html(o),e.find(".popover-content").children().detach().end()["string"==t?"html":"append"](i)):(e.find(".popover-title").text(o),e.find(".popover-content").children().detach().end().text(i)),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},r.prototype.hasContent=function(){return this.getTitle()||this.getContent()},r.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=n.fn.popover;n.fn.popover=function(i){return this.each(function(){var t=n(this),e=t.data("bs.popover"),o="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.popover",e=new r(this,o)),"string"==typeof i&&e[i]())})},n.fn.popover.Constructor=r,n.fn.popover.noConflict=function(){return n.fn.popover=t,this}}(jQuery);