!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e(t.bootstrap={},t.jQuery)}(this,function(t,e){"use strict";function O(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function C(){return(C=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,o=arguments[e];for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t}).apply(this,arguments)}e=e&&e.hasOwnProperty("default")?e.default:e;o=e,n=!1,s={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");"#"===(e=e&&"#"!==e?e:t.getAttribute("href")||"").charAt(0)&&(t=e,e=t="function"==typeof o.escapeSelector?o.escapeSelector(t).substr(1):t.replace(/(:|\.|\[|\]|,|=|@)/g,"\\$1"));try{return 0<o(document).find(e).length?e:null}catch(t){return null}},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){o(t).trigger(n.end)},supportsTransitionEnd:function(){return Boolean(n)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var i=n[o],r=e[o],r=r&&s.isElement(r)?"element":{}.toString.call(r).match(/\s([a-zA-Z]+)/)[1].toLowerCase();if(!new RegExp(i).test(r))throw new Error(t.toUpperCase()+': Option "'+o+'" provided type "'+r+'" but expected type "'+i+'".')}}},n=("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"},o.fn.emulateTransitionEnd=M,s.supportsTransitionEnd()&&(o.event.special[s.TRANSITION_END]={bindType:n.end,delegateType:n.end,handle:function(t){if(o(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}});var o,n,s,A=s;function M(t){var e=this,n=!1;return o(this).one(s.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||s.triggerTransitionEnd(e)},t),this}for(var i="undefined"!=typeof window&&"undefined"!=typeof document,r=["Edge","Trident","Firefox"],a=0,l=0;l<r.length;l+=1)if(i&&0<=navigator.userAgent.indexOf(r[l])){a=1;break}var H=i&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},a))}};function U(t){return t&&"[object Function]"==={}.toString.call(t)}function u(t,e){if(1!==t.nodeType)return[];t=getComputedStyle(t,null);return e?t[e]:t}function p(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function h(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=u(t),n=e.overflow,o=e.overflowX,e=e.overflowY;return/(auto|scroll)/.test(n+e+o)?t:h(p(t))}function c(t){var e=t&&t.offsetParent,n=e&&e.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(e.nodeName)&&"static"===u(e,"position")?c(e):e:(t?t.ownerDocument:document).documentElement}function f(t){return null!==t.parentNode?f(t.parentNode):t}function d(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?t:e,n=n?e:t,i=document.createRange(),i=(i.setStart(o,0),i.setEnd(n,0),i.commonAncestorContainer);if(t!==i&&e!==i||o.contains(n))return"BODY"===(n=(o=i).nodeName)||"HTML"!==n&&c(o.firstElementChild)!==o?c(i):i;n=f(t);return n.host?d(n.host,e):d(t,f(e).host)}function m(t,e){var e="top"===(1<arguments.length&&void 0!==e?e:"top")?"scrollTop":"scrollLeft",n=t.nodeName;return"BODY"===n||"HTML"===n?(n=t.ownerDocument.documentElement,(t.ownerDocument.scrollingElement||n)[e]):t[e]}function W(t,e){var e="x"===e?"Left":"Top",n="Left"==e?"Right":"Bottom";return parseFloat(t["border"+e+"Width"],10)+parseFloat(t["border"+n+"Width"],10)}var g=void 0,v=function(){return g=void 0===g?-1!==navigator.appVersion.indexOf("MSIE 10"):g};function B(t,e,n,o){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],v()?n["offset"+t]+o["margin"+("Height"===t?"Top":"Left")]+o["margin"+("Height"===t?"Bottom":"Right")]:0)}function F(){var t=document.body,e=document.documentElement,n=v()&&getComputedStyle(e);return{height:B("Height",t,e,n),width:B("Width",t,e,n)}}var b=function(t,e,n){return e&&R(t.prototype,e),n&&R(t,n),t};function R(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var E=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,o=arguments[e];for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t};function w(t){return E({},t,{right:t.left+t.width,bottom:t.top+t.height})}function T(t){var e={};if(v())try{var e=t.getBoundingClientRect(),n=m(t,"top"),o=m(t,"left");e.top+=n,e.left+=o,e.bottom+=n,e.right+=o}catch(t){}else e=t.getBoundingClientRect();n={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?F():{},e=o.width||t.clientWidth||n.right-n.left,o=o.height||t.clientHeight||n.bottom-n.top,e=t.offsetWidth-e,o=t.offsetHeight-o;return(e||o)&&(e-=W(t=u(t),"x"),o-=W(t,"y"),n.width-=e,n.height-=o),w(n)}function _(t,e){var n=v(),o="HTML"===e.nodeName,i=T(t),r=T(e),t=h(t),s=u(e),a=parseFloat(s.borderTopWidth,10),l=parseFloat(s.borderLeftWidth,10),r=w({top:i.top-r.top-a,left:i.left-r.left-l,width:i.width,height:i.height});return r.marginTop=0,r.marginLeft=0,!n&&o&&(i=parseFloat(s.marginTop,10),o=parseFloat(s.marginLeft,10),r.top-=a-i,r.bottom-=a-i,r.left-=l-o,r.right-=l-o,r.marginTop=i,r.marginLeft=o),r=(n?e.contains(t):e===t&&"BODY"!==t.nodeName)?function(t,e,n){var n=2<arguments.length&&void 0!==n&&n,o=m(e,"top"),e=m(e,"left"),n=n?-1:1;return t.top+=o*n,t.bottom+=o*n,t.left+=e*n,t.right+=e*n,t}(r,e):r}function D(t,e,n,o){var i,r,s,a,l,f={top:0,left:0},c=d(t,e);return"viewport"===o?(r=(i=c).ownerDocument.documentElement,i=_(i,r),s=Math.max(r.clientWidth,window.innerWidth||0),a=Math.max(r.clientHeight,window.innerHeight||0),l=m(r),r=m(r,"left"),f=w({top:l-i.top+i.marginTop,left:r-i.left+i.marginLeft,width:s,height:a})):(l=void 0,"scrollParent"===o?"BODY"===(l=h(p(e))).nodeName&&(l=t.ownerDocument.documentElement):l="window"===o?t.ownerDocument.documentElement:o,r=_(l,c),"HTML"!==l.nodeName||function t(e){var n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===u(e,"position")||t(p(e)))}(c)?f=r:(s=(i=F()).height,a=i.width,f.top+=r.top-r.marginTop,f.bottom=s+r.top,f.left+=r.left-r.marginLeft,f.right=a+r.left)),f.left+=n,f.top+=n,f.right-=n,f.bottom-=n,f}function Y(t,e,n,o,i,r){r=5<arguments.length&&void 0!==r?r:0;if(-1===t.indexOf("auto"))return t;var o=D(n,o,r,i),s={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},r=Object.keys(s).map(function(t){return E({key:t},s[t],{area:(t=s[t]).width*t.height})}).sort(function(t,e){return e.area-t.area}),i=r.filter(function(t){var e=t.width,t=t.height;return e>=n.clientWidth&&t>=n.clientHeight}),e=(0<i.length?i:r)[0].key,o=t.split("-")[1];return e+(o?"-"+o:"")}function q(t,e,n){return _(n,d(e,n))}function K(t){var e=getComputedStyle(t),n=parseFloat(e.marginTop)+parseFloat(e.marginBottom),e=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+e,height:t.offsetHeight+n}}function N(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function V(t,e,n){n=n.split("-")[0];var t=K(t),o={width:t.width,height:t.height},i=-1!==["right","left"].indexOf(n),r=i?"top":"left",s=i?"left":"top",a=i?"height":"width",i=i?"width":"height";return o[r]=e[r]+e[a]/2-t[a]/2,o[s]=n===s?e[s]-t[i]:e[N(s)],o}function S(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function Q(t,n,e){return(void 0===e?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var o=S(t,function(t){return t[e]===n});return t.indexOf(o)}(t,"name",e))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var e=t.function||t.fn;t.enabled&&U(e)&&(n.offsets.popper=w(n.offsets.popper),n.offsets.reference=w(n.offsets.reference),n=e(n,t))}),n}function z(t,n){return t.some(function(t){var e=t.name;return t.enabled&&e===n})}function G(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),o=0;o<e.length-1;o++){var i=e[o],i=i?""+i+n:t;if(void 0!==document.body.style[i])return i}return null}function J(t){t=t.ownerDocument;return t?t.defaultView:window}function X(t,e,n,o){n.updateBound=o,J(t).addEventListener("resize",n.updateBound,{passive:!0});o=h(t);return function t(e,n,o,i){var r="BODY"===e.nodeName,e=r?e.ownerDocument.defaultView:e;e.addEventListener(n,o,{passive:!0}),r||t(h(e.parentNode),n,o,i),i.push(e)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Z(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,J(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function x(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function L(n,o){Object.keys(o).forEach(function(t){var e="";-1!==["width","height","top","right","bottom","left"].indexOf(t)&&x(o[t])&&(e="px"),n.style[t]=o[t]+e})}function $(t,e,n){var o,i=S(t,function(t){return t.name===e}),t=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});return t||(o="`"+e+"`",console.warn("`"+n+"`"+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")),t}var k=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],I=k.slice(3);function tt(t,e){e=1<arguments.length&&void 0!==e&&e,t=I.indexOf(t),t=I.slice(t+1).concat(I.slice(0,t));return e?t.reverse():t}var et="flip",nt="clockwise",ot="counterclockwise";function it(t,a,l,e){var i=[0,0],o=-1!==["right","left"].indexOf(e),e=t.split(/(\+|\-)/).map(function(t){return t.trim()}),t=e.indexOf(S(e,function(t){return-1!==t.search(/,|\s/)})),n=(e[t]&&-1===e[t].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),/\s*,\s*|\s+/);return(-1!==t?[e.slice(0,t).concat([e[t].split(n)[0]]),[e[t].split(n)[1]].concat(e.slice(t+1))]:[e]).map(function(t,e){var s=(1===e?!o:o)?"height":"width",n=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,n=!0,t):n?(t[t.length-1]+=e,n=!1,t):t.concat(e)},[]).map(function(t){return e=s,n=a,o=l,i=+(r=(t=t).match(/((?:\-|\+)?\d*\.?\d*)(.*)/))[1],r=r[2],i?0===r.indexOf("%")?w("%p"===r?n:o)[e]/100*i:"vh"===r||"vw"===r?("vh"===r?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i:i:t;var e,n,o,i,r})}).forEach(function(n,o){n.forEach(function(t,e){x(t)&&(i[o]+=t*("-"===n[e-1]?-1:1))})}),i}var rt={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e,n,o,i=t.placement,r=i.split("-")[0];return(i=i.split("-")[1])&&(e=(n=t.offsets).reference,n=n.popper,o=(r=-1!==["bottom","top"].indexOf(r))?"width":"height",r={start:y({},r=r?"left":"top",e[r]),end:y({},r,e[r]+e[o]-n[o])},t.offsets.popper=E({},n,r[i])),t}},offset:{order:200,enabled:!0,fn:function(t,e){var e=e.offset,n=t.placement,o=(i=t.offsets).popper,i=i.reference,n=n.split("-")[0],r=void 0,r=x(+e)?[+e,0]:it(e,o,i,n);return"left"===n?(o.top+=r[0],o.left-=r[1]):"right"===n?(o.top+=r[0],o.left+=r[1]):"top"===n?(o.left+=r[0],o.top-=r[1]):"bottom"===n&&(o.left+=r[0],o.top+=r[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,o){var e=o.boundariesElement||c(t.instance.popper),i=(t.instance.reference===e&&(e=c(e)),D(t.instance.popper,t.instance.reference,o.padding,e)),e=(o.boundaries=i,o.priority),r=t.offsets.popper,n={primary:function(t){var e=r[t];return r[t]<i[t]&&!o.escapeWithReference&&(e=Math.max(r[t],i[t])),y({},t,e)},secondary:function(t){var e="right"===t?"left":"top",n=r[e];return r[t]>i[t]&&!o.escapeWithReference&&(n=Math.min(r[e],i[t]-("right"===t?r.width:r.height))),y({},e,n)}};return e.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";r=E({},r,n[e](t))}),t.offsets.popper=r,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=(n=t.offsets).popper,n=n.reference,o=t.placement.split("-")[0],i=Math.floor,r=(o=-1!==["top","bottom"].indexOf(o))?"right":"bottom",s=o?"left":"top",o=o?"width":"height";return e[r]<i(n[s])&&(t.offsets.popper[s]=i(n[s])-e[o]),e[s]>i(n[r])&&(t.offsets.popper[s]=i(n[r])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){if(!$(t.instance.modifiers,"arrow","keepTogether"))return t;if("string"==typeof(e=e.element)){if(!(e=t.instance.popper.querySelector(e)))return t}else if(!t.instance.popper.contains(e))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var n=t.placement.split("-")[0],o=(i=t.offsets).popper,i=i.reference,r=(n=-1!==["left","right"].indexOf(n))?"height":"width",s=(c=n?"Top":"Left").toLowerCase(),a=n?"left":"top",n=n?"bottom":"right",l=K(e)[r],n=(i[n]-l<o[s]&&(t.offsets.popper[s]-=o[s]-(i[n]-l)),i[s]+l>o[n]&&(t.offsets.popper[s]+=i[s]+l-o[n]),t.offsets.popper=w(t.offsets.popper),i[s]+i[r]/2-l/2),i=u(t.instance.popper),f=parseFloat(i["margin"+c],10),i=parseFloat(i["border"+c+"Width"],10),c=n-t.offsets.popper[s]-f-i,c=Math.max(Math.min(o[r]-l,c),0);return t.arrowElement=e,t.offsets.arrow=(y(n={},s,Math.round(c)),y(n,a,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(l,f){if(z(l.instance.modifiers,"inner"))return l;if(l.flipped&&l.placement===l.originalPlacement)return l;var c=D(l.instance.popper,l.instance.reference,f.padding,f.boundariesElement),u=l.placement.split("-")[0],p=N(u),h=l.placement.split("-")[1]||"",d=[];switch(f.behavior){case et:d=[u,p];break;case nt:d=tt(u);break;case ot:d=tt(u,!0);break;default:d=f.behavior}return d.forEach(function(t,e){if(u!==t||d.length===e+1)return l;u=l.placement.split("-")[0],p=N(u);var t=l.offsets.popper,n=l.offsets.reference,o=Math.floor,n="left"===u&&o(t.right)>o(n.left)||"right"===u&&o(t.left)<o(n.right)||"top"===u&&o(t.bottom)>o(n.top)||"bottom"===u&&o(t.top)<o(n.bottom),i=o(t.left)<o(c.left),r=o(t.right)>o(c.right),s=o(t.top)<o(c.top),t=o(t.bottom)>o(c.bottom),o="left"===u&&i||"right"===u&&r||"top"===u&&s||"bottom"===u&&t,a=-1!==["top","bottom"].indexOf(u),i=!!f.flipVariations&&(a&&"start"===h&&i||a&&"end"===h&&r||!a&&"start"===h&&s||!a&&"end"===h&&t);(n||o||i)&&(l.flipped=!0,(n||o)&&(u=d[e+1]),i&&(h="end"===(r=h)?"start":"start"===r?"end":r),l.placement=u+(h?"-"+h:""),l.offsets.popper=E({},l.offsets.popper,V(l.instance.popper,l.offsets.reference,l.placement)),l=Q(l.instance.modifiers,l,"flip"))}),l},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],o=(i=t.offsets).popper,i=i.reference,r=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[r?"left":"top"]=i[n]-(s?o[r?"width":"height"]:0),t.placement=N(e),t.offsets.popper=w(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!$(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=S(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,o=e.y,i=t.offsets.popper,r=(void 0!==(r=S(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration)&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!"),void 0!==r?r:e.gpuAcceleration),e=T(c(t.instance.popper)),s={position:i.position},i={left:Math.floor(i.left),top:Math.floor(i.top),bottom:Math.floor(i.bottom),right:Math.floor(i.right)},n="bottom"===n?"top":"bottom",o="right"===o?"left":"right",a=G("transform"),l=void 0,f=void 0,f="bottom"==n?-e.height+i.bottom:i.top,l="right"==o?-e.width+i.right:i.left,i=(r&&a?(s[a]="translate3d("+l+"px, "+f+"px, 0)",s[n]=0,s[o]=0,s.willChange="transform"):(e="right"==o?-1:1,s[n]=f*("bottom"==n?-1:1),s[o]=l*e,s.willChange=n+", "+o),{"x-placement":t.placement});return t.attributes=E({},i,t.attributes),t.styles=E({},s,t.styles),t.arrowStyles=E({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return L(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach(function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)}),t.arrowElement&&Object.keys(t.arrowStyles).length&&L(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,o,i){var r=q(0,e,t),r=Y(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",r),L(e,{position:"absolute"}),n},gpuAcceleration:void 0}}},P=(b(j,[{key:"update",value:function(){return function(){var t;this.state.isDestroyed||((t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}}).offsets.reference=q(this.state,this.popper,this.reference),t.placement=Y(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.offsets.popper=V(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position="absolute",t=Q(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t)))}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,z(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[G("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=X(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return Z.call(this)}}]),j);function j(t,e){var n=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=this,r=j;if(!(i instanceof r))throw new TypeError("Cannot call a class as a function");this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=H(this.update.bind(this)),this.options=E({},j.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=e&&e.jquery?e[0]:e,this.options.modifiers={},Object.keys(E({},j.Defaults.modifiers,o.modifiers)).forEach(function(t){n.options.modifiers[t]=E({},j.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return E({name:t},n.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&U(t.onLoad)&&t.onLoad(n.reference,n.popper,n.options,t,n.state)}),this.update();i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}P.Utils=("undefined"!=typeof window?window:global).PopperUtils,P.placements=k,P.Defaults=rt;b=function(r){var o="tooltip",s="bs.tooltip",a="."+s,t=r.fn[o],l="bs-tooltip",f=new RegExp("(^|\\s)"+l+"\\S+","g"),c={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"},u={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},p={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},h="show",d="out",m={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,INSERTED:"inserted"+a,CLICK:"click"+a,FOCUSIN:"focusin"+a,FOCUSOUT:"focusout"+a,MOUSEENTER:"mouseenter"+a,MOUSELEAVE:"mouseleave"+a},g="fade",v="show",b=".tooltip-inner",y=".arrow",E="hover",w="focus",T="click",_="manual",e=function(){function i(t,e){if(void 0===P)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t,e,n=i.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(t){var e,n;this._isEnabled&&(t?(e=this.constructor.DATA_KEY,(n=r(t.currentTarget).data(e))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),r(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)):r(this.getTipElement()).hasClass(v)?this._leave(null,this):this._enter(null,this))},n.dispose=function(){clearTimeout(this._timeout),r.removeData(this.element,this.constructor.DATA_KEY),r(this.element).off(this.constructor.EVENT_KEY),r(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&r(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},n.show=function(){var e=this;if("none"===r(this.element).css("display"))throw new Error("Please use show on visible elements");var t,n,o=r.Event(this.constructor.Event.SHOW);this.isWithContent()&&this._isEnabled&&(r(this.element).trigger(o),t=r.contains(this.element.ownerDocument.documentElement,this.element),!o.isDefaultPrevented()&&t&&(o=this.getTipElement(),t=A.getUID(this.constructor.NAME),o.setAttribute("id",t),this.element.setAttribute("aria-describedby",t),this.setContent(),this.config.animation&&r(o).addClass(g),t="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,t=this._getAttachment(t),this.addAttachmentClass(t),n=!1===this.config.container?document.body:r(this.config.container),r(o).data(this.constructor.DATA_KEY,this),r.contains(this.element.ownerDocument.documentElement,this.tip)||r(o).appendTo(n),r(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new P(this.element,o,{placement:t,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:y},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),r(o).addClass(v),"ontouchstart"in document.documentElement&&r("body").children().on("mouseover",null,r.noop),n=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,r(e.element).trigger(e.constructor.Event.SHOWN),t===d&&e._leave(null,e)},A.supportsTransitionEnd()&&r(this.tip).hasClass(g)?r(this.tip).one(A.TRANSITION_END,n).emulateTransitionEnd(i._TRANSITION_DURATION):n()))},n.hide=function(t){function e(){n._hoverState!==h&&o.parentNode&&o.parentNode.removeChild(o),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),r(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),t&&t()}var n=this,o=this.getTipElement(),i=r.Event(this.constructor.Event.HIDE);r(this.element).trigger(i),i.isDefaultPrevented()||(r(o).removeClass(v),"ontouchstart"in document.documentElement&&r("body").children().off("mouseover",null,r.noop),this._activeTrigger[T]=!1,this._activeTrigger[w]=!1,this._activeTrigger[E]=!1,A.supportsTransitionEnd()&&r(this.tip).hasClass(g)?r(o).one(A.TRANSITION_END,e).emulateTransitionEnd(150):e(),this._hoverState="")},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(t){r(this.getTipElement()).addClass(l+"-"+t)},n.getTipElement=function(){return this.tip=this.tip||r(this.config.template)[0],this.tip},n.setContent=function(){var t=r(this.getTipElement());this.setElementContent(t.find(b),this.getTitle()),t.removeClass(g+" "+v)},n.setElementContent=function(t,e){var n=this.config.html;"object"==typeof e&&(e.nodeType||e.jquery)?n?r(e).parent().is(t)||t.empty().append(e):t.text(r(e).text()):t[n?"html":"text"](e)},n.getTitle=function(){return this.element.getAttribute("data-original-title")||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},n._getAttachment=function(t){return u[t.toUpperCase()]},n._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(t){var e;"click"===t?r(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)}):t!==_&&(e=t===E?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,t=t===E?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT,r(n.element).on(e,n.config.selector,function(t){return n._enter(t)}).on(t,n.config.selector,function(t){return n._leave(t)})),r(n.element).closest(".modal").on("hide.bs.modal",function(){return n.hide()})}),this.config.selector?this.config=C({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},n._fixTitle=function(){var t=typeof 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",""))},n._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||r(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),r(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?w:E]=!0),r(e.getTipElement()).hasClass(v)||e._hoverState===h?e._hoverState=h:(clearTimeout(e._timeout),e._hoverState=h,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===h&&e.show()},e.config.delay.show):e.show())},n._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||r(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),r(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?w:E]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=d,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===d&&e.hide()},e.config.delay.hide):e.hide())},n._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},n._getConfig=function(t){return"number"==typeof(t=C({},this.constructor.Default,r(this.element).data(),t)).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),A.typeCheckConfig(o,t,this.constructor.DefaultType),t},n._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},n._cleanTipClass=function(){var t=r(this.getTipElement()),e=t.attr("class").match(f);null!==e&&0<e.length&&t.removeClass(e.join(""))},n._handlePopperPlacementChange=function(t){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},n._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(r(t).removeClass(g),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},i._jQueryInterface=function(n){return this.each(function(){var t=r(this).data(s),e="object"==typeof n&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),r(this).data(s,t)),"string"==typeof n)){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},n=i,e=[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return p}},{key:"NAME",get:function(){return o}},{key:"DATA_KEY",get:function(){return s}},{key:"Event",get:function(){return m}},{key:"EVENT_KEY",get:function(){return a}},{key:"DefaultType",get:function(){return c}}],(t=null)&&O(n.prototype,t),e&&O(n,e),i}();return r.fn[o]=e._jQueryInterface,r.fn[o].Constructor=e,r.fn[o].noConflict=function(){return r.fn[o]=t,e._jQueryInterface},e}(e),k=e;if(void 0===k)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");if((k=k.fn.jquery.split(" ")[0].split("."))[0]<2&&k[1]<9||1===k[0]&&9===k[1]&&k[2]<1||4<=k[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");t.Util=A,t.Tooltip=b,Object.defineProperty(t,"__esModule",{value:!0})});