jekyll-theme-clean-blog 0.1.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/assets/vendor/bootstrap/css/bootstrap-grid.css +772 -289
- data/assets/vendor/bootstrap/css/bootstrap-grid.min.css +4 -4
- data/assets/vendor/bootstrap/css/bootstrap-reboot.css +8 -20
- data/assets/vendor/bootstrap/css/bootstrap-reboot.min.css +4 -4
- data/assets/vendor/bootstrap/css/bootstrap.css +1792 -1191
- data/assets/vendor/bootstrap/css/bootstrap.min.css +4 -4
- data/assets/vendor/bootstrap/js/bootstrap.bundle.js +724 -683
- data/assets/vendor/bootstrap/js/bootstrap.bundle.min.js +3 -3
- data/assets/vendor/bootstrap/js/bootstrap.js +650 -606
- data/assets/vendor/bootstrap/js/bootstrap.min.js +3 -3
- data/assets/vendor/jquery/jquery.js +453 -342
- data/assets/vendor/jquery/jquery.min.js +2 -4
- data/assets/vendor/startbootstrap-clean-blog/js/clean-blog.min.js +0 -5
- data/assets/vendor/startbootstrap-clean-blog/scss/_global.scss +0 -4
- metadata +2 -2
@@ -1,7 +1,7 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap v4.0.0
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap v4.0.0 (https://getbootstrap.com)
|
3
|
+
* Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
4
4
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
5
5
|
*/
|
6
|
-
var bootstrap=function(t,e){"use strict";function n(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function i(t){return t&&"[object Function]"==={}.toString.call(t)}function r(t,e){if(1!==t.nodeType)return[];var n=window.getComputedStyle(t,null);return e?n[e]:n}function o(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function s(t){if(!t||-1!==["HTML","BODY","#document"].indexOf(t.nodeName))return window.document.body;var e=r(t),n=e.overflow,i=e.overflowX;return/(auto|scroll)/.test(n+e.overflowY+i)?t:s(o(t))}function a(t){var e=t&&t.offsetParent,n=e&&e.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(e.nodeName)&&"static"===r(e,"position")?a(e):e:window.document.documentElement}function l(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||a(t.firstElementChild)===t)}function c(t){return null!==t.parentNode?c(t.parentNode):t}function f(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return window.document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var s=o.commonAncestorContainer;if(t!==s&&e!==s||i.contains(r))return l(s)?s:a(s);var h=c(t);return h.host?f(h.host,e):f(t,c(e).host)}function h(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var i=window.document.documentElement;return(window.document.scrollingElement||i)[e]}return t[e]}function u(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=h(e,"top"),r=h(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}function d(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return+t["border"+n+"Width"].split("px")[0]+ +t["border"+i+"Width"].split("px")[0]}function p(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],lt()?n["offset"+t]+i["margin"+("Height"===t?"Top":"Left")]+i["margin"+("Height"===t?"Bottom":"Right")]:0)}function g(){var t=window.document.body,e=window.document.documentElement,n=lt()&&window.getComputedStyle(e);return{height:p("Height",t,e,n),width:p("Width",t,e,n)}}function m(t){return ut({},t,{right:t.left+t.width,bottom:t.top+t.height})}function _(t){var e={};if(lt())try{e=t.getBoundingClientRect();var n=h(t,"top"),i=h(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}catch(t){}else e=t.getBoundingClientRect();var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},s="HTML"===t.nodeName?g():{},a=s.width||t.clientWidth||o.right-o.left,l=s.height||t.clientHeight||o.bottom-o.top,c=t.offsetWidth-a,f=t.offsetHeight-l;if(c||f){var u=r(t);c-=d(u,"x"),f-=d(u,"y"),o.width-=c,o.height-=f}return m(o)}function v(t,e){var n=lt(),i="HTML"===e.nodeName,o=_(t),a=_(e),l=s(t),c=r(e),f=+c.borderTopWidth.split("px")[0],h=+c.borderLeftWidth.split("px")[0],d=m({top:o.top-a.top-f,left:o.left-a.left-h,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!n&&i){var p=+c.marginTop.split("px")[0],g=+c.marginLeft.split("px")[0];d.top-=f-p,d.bottom-=f-p,d.left-=h-g,d.right-=h-g,d.marginTop=p,d.marginLeft=g}return(n?e.contains(l):e===l&&"BODY"!==l.nodeName)&&(d=u(d,e)),d}function E(t){var e=window.document.documentElement,n=v(t,e),i=Math.max(e.clientWidth,window.innerWidth||0),r=Math.max(e.clientHeight,window.innerHeight||0),o=h(e),s=h(e,"left");return m({top:o-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:i,height:r})}function T(t){var e=t.nodeName;return"BODY"!==e&&"HTML"!==e&&("fixed"===r(t,"position")||T(o(t)))}function b(t,e,n,i){var r={top:0,left:0},a=f(t,e);if("viewport"===i)r=E(a);else{var l=void 0;"scrollParent"===i?"BODY"===(l=s(o(t))).nodeName&&(l=window.document.documentElement):l="window"===i?window.document.documentElement:i;var c=v(l,a);if("HTML"!==l.nodeName||T(a))r=c;else{var h=g(),u=h.height,d=h.width;r.top+=c.top-c.marginTop,r.bottom=u+c.top,r.left+=c.left-c.marginLeft,r.right=d+c.left}}return r.left+=n,r.top+=n,r.right-=n,r.bottom-=n,r}function C(t){return t.width*t.height}function A(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=b(n,i,o,r),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map(function(t){return ut({key:t},a[t],{area:C(a[t])})}).sort(function(t,e){return e.area-t.area}),c=l.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),f=c.length>0?c[0].key:l[0].key,h=t.split("-")[1];return f+(h?"-"+h:"")}function I(t,e,n){return v(n,f(e,n))}function O(t){var e=window.getComputedStyle(t),n=parseFloat(e.marginTop)+parseFloat(e.marginBottom),i=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function y(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 D(t,e,n){n=n.split("-")[0];var i=O(t),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",a=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return r[s]=e[s]+e[l]/2-i[l]/2,r[a]=n===a?e[a]-i[c]:e[y(a)],r}function S(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function w(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=S(t,function(t){return t[e]===n});return t.indexOf(i)}function N(t,e,n){return(void 0===n?t:t.slice(0,w(t,"name",n))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&i(n)&&(e.offsets.popper=m(e.offsets.popper),e.offsets.reference=m(e.offsets.reference),e=n(e,t))}),e}function L(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=I(this.state,this.popper,this.reference),t.placement=A(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=D(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position="absolute",t=N(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function P(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function R(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length-1;i++){var r=e[i],o=r?""+r+n:t;if("undefined"!=typeof window.document.body.style[o])return o}return null}function H(){return this.state.isDestroyed=!0,P(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[R("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function k(t,e,n,i){var r="BODY"===t.nodeName,o=r?window:t;o.addEventListener(e,n,{passive:!0}),r||k(s(o.parentNode),e,n,i),i.push(o)}function W(t,e,n,i){n.updateBound=i,window.addEventListener("resize",n.updateBound,{passive:!0});var r=s(t);return k(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function x(){this.state.eventsEnabled||(this.state=W(this.reference,this.options,this.state,this.scheduleUpdate))}function M(t,e){return window.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 U(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=M(this.reference,this.state))}function V(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function F(t,e){Object.keys(e).forEach(function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&V(e[n])&&(i="px"),t.style[n]=e[n]+i})}function j(t,e){Object.keys(e).forEach(function(n){!1!==e[n]?t.setAttribute(n,e[n]):t.removeAttribute(n)})}function B(t,e,n){var i=S(t,function(t){return t.name===e}),r=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});if(!r){var o="`"+e+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}function G(t){return"end"===t?"start":"start"===t?"end":t}function K(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=pt.indexOf(t),i=pt.slice(n+1).concat(pt.slice(0,n));return e?i.reverse():i}function Q(t,e,n,i){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],s=r[2];if(!o)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=i}return m(a)[e]/100*o}if("vh"===s||"vw"===s){return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}function Y(t,e,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),s=t.split(/(\+|\-)/).map(function(t){return t.trim()}),a=s.indexOf(S(s,function(t){return-1!==t.search(/,|\s/)}));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return(c=c.map(function(t,i){var r=(1===i?!o:o)?"height":"width",s=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)},[]).map(function(t){return Q(t,r,e,n)})})).forEach(function(t,e){t.forEach(function(n,i){V(n)&&(r[e]+=n*("-"===t[i-1]?-1:1))})}),r}e=e&&e.hasOwnProperty("default")?e.default:e;for(var X=function(){function t(t){return{}.toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function n(){return{bindType:o.end,delegateType:o.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}}function i(){if(window.QUnit)return!1;var t=document.createElement("bootstrap");for(var e in s)if("undefined"!=typeof t.style[e])return{end:s[e]};return!1}function r(t){var n=this,i=!1;return e(this).one(a.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||a.triggerTransitionEnd(n)},t),this}var o=!1,s={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},a={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var n=t.getAttribute("data-target");n&&"#"!==n||(n=t.getAttribute("href")||"");try{return e(document).find(n).length>0?n:null}catch(t){return null}},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){e(t).trigger(o.end)},supportsTransitionEnd:function(){return Boolean(o)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(e,n,i){for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r)){var o=i[r],s=n[r],l=s&&a.isElement(s)?"element":t(s);if(!new RegExp(o).test(l))throw new Error(e.toUpperCase()+': Option "'+r+'" provided type "'+l+'" but expected type "'+o+'".')}}};return o=i(),e.fn.emulateTransitionEnd=r,a.supportsTransitionEnd()&&(e.event.special[a.TRANSITION_END]=n()),a}(),q=function(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t},z=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e},Z=function(){var t="alert",n=e.fn[t],i={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},r={ALERT:"alert",FADE:"fade",SHOW:"show"},o=function(){function t(t){this._element=t}var n=t.prototype;return n.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},n.dispose=function(){e.removeData(this._element,"bs.alert"),this._element=null},n._getRootElement=function(t){var n=X.getSelectorFromElement(t),i=!1;return n&&(i=e(n)[0]),i||(i=e(t).closest("."+r.ALERT)[0]),i},n._triggerCloseEvent=function(t){var n=e.Event(i.CLOSE);return e(t).trigger(n),n},n._removeElement=function(t){var n=this;e(t).removeClass(r.SHOW),X.supportsTransitionEnd()&&e(t).hasClass(r.FADE)?e(t).one(X.TRANSITION_END,function(e){return n._destroyElement(t,e)}).emulateTransitionEnd(150):this._destroyElement(t)},n._destroyElement=function(t){e(t).detach().trigger(i.CLOSED).remove()},t._jQueryInterface=function(n){return this.each(function(){var i=e(this),r=i.data("bs.alert");r||(r=new t(this),i.data("bs.alert",r)),"close"===n&&r[n](this)})},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},q(t,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}}]),t}();return e(document).on(i.CLICK_DATA_API,{DISMISS:'[data-dismiss="alert"]'}.DISMISS,o._handleDismiss(new o)),e.fn[t]=o._jQueryInterface,e.fn[t].Constructor=o,e.fn[t].noConflict=function(){return e.fn[t]=n,o._jQueryInterface},o}(),J=function(){var t="button",n=e.fn[t],i={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},r={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},o={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api"},s=function(){function t(t){this._element=t}var n=t.prototype;return n.toggle=function(){var t=!0,n=!0,o=e(this._element).closest(r.DATA_TOGGLE)[0];if(o){var s=e(this._element).find(r.INPUT)[0];if(s){if("radio"===s.type)if(s.checked&&e(this._element).hasClass(i.ACTIVE))t=!1;else{var a=e(o).find(r.ACTIVE)[0];a&&e(a).removeClass(i.ACTIVE)}if(t){if(s.hasAttribute("disabled")||o.hasAttribute("disabled")||s.classList.contains("disabled")||o.classList.contains("disabled"))return;s.checked=!e(this._element).hasClass(i.ACTIVE),e(s).trigger("change")}s.focus(),n=!1}}n&&this._element.setAttribute("aria-pressed",!e(this._element).hasClass(i.ACTIVE)),t&&e(this._element).toggleClass(i.ACTIVE)},n.dispose=function(){e.removeData(this._element,"bs.button"),this._element=null},t._jQueryInterface=function(n){return this.each(function(){var i=e(this).data("bs.button");i||(i=new t(this),e(this).data("bs.button",i)),"toggle"===n&&i[n]()})},q(t,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}}]),t}();return e(document).on(o.CLICK_DATA_API,r.DATA_TOGGLE_CARROT,function(t){t.preventDefault();var n=t.target;e(n).hasClass(i.BUTTON)||(n=e(n).closest(r.BUTTON)),s._jQueryInterface.call(e(n),"toggle")}).on(o.FOCUS_BLUR_DATA_API,r.DATA_TOGGLE_CARROT,function(t){var n=e(t.target).closest(r.BUTTON)[0];e(n).toggleClass(i.FOCUS,/^focus(in)?$/.test(t.type))}),e.fn[t]=s._jQueryInterface,e.fn[t].Constructor=s,e.fn[t].noConflict=function(){return e.fn[t]=n,s._jQueryInterface},s}(),$=function(){var t="carousel",n="bs.carousel",i="."+n,r=e.fn[t],o={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},s={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},a={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},l={SLIDE:"slide"+i,SLID:"slid"+i,KEYDOWN:"keydown"+i,MOUSEENTER:"mouseenter"+i,MOUSELEAVE:"mouseleave"+i,TOUCHEND:"touchend"+i,LOAD_DATA_API:"load.bs.carousel.data-api",CLICK_DATA_API:"click.bs.carousel.data-api"},c={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},f={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},h=function(){function r(t,n){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(n),this._element=e(t)[0],this._indicatorsElement=e(this._element).find(f.INDICATORS)[0],this._addEventListeners()}var h=r.prototype;return h.next=function(){this._isSliding||this._slide(a.NEXT)},h.nextWhenVisible=function(){!document.hidden&&e(this._element).is(":visible")&&"hidden"!==e(this._element).css("visibility")&&this.next()},h.prev=function(){this._isSliding||this._slide(a.PREV)},h.pause=function(t){t||(this._isPaused=!0),e(this._element).find(f.NEXT_PREV)[0]&&X.supportsTransitionEnd()&&(X.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},h.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},h.to=function(t){var n=this;this._activeElement=e(this._element).find(f.ACTIVE_ITEM)[0];var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)e(this._element).one(l.SLID,function(){return n.to(t)});else{if(i===t)return this.pause(),void this.cycle();var r=t>i?a.NEXT:a.PREV;this._slide(r,this._items[t])}},h.dispose=function(){e(this._element).off(i),e.removeData(this._element,n),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._getConfig=function(n){return n=e.extend({},o,n),X.typeCheckConfig(t,n,s),n},h._addEventListeners=function(){var t=this;this._config.keyboard&&e(this._element).on(l.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&(e(this._element).on(l.MOUSEENTER,function(e){return t.pause(e)}).on(l.MOUSELEAVE,function(e){return t.cycle(e)}),"ontouchstart"in document.documentElement&&e(this._element).on(l.TOUCHEND,function(){t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},500+t._config.interval)}))},h._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next();break;default:return}},h._getItemIndex=function(t){return this._items=e.makeArray(e(t).parent().find(f.ITEM)),this._items.indexOf(t)},h._getItemByDirection=function(t,e){var n=t===a.NEXT,i=t===a.PREV,r=this._getItemIndex(e),o=this._items.length-1;if((i&&0===r||n&&r===o)&&!this._config.wrap)return e;var s=(r+(t===a.PREV?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},h._triggerSlideEvent=function(t,n){var i=this._getItemIndex(t),r=this._getItemIndex(e(this._element).find(f.ACTIVE_ITEM)[0]),o=e.Event(l.SLIDE,{relatedTarget:t,direction:n,from:r,to:i});return e(this._element).trigger(o),o},h._setActiveIndicatorElement=function(t){if(this._indicatorsElement){e(this._indicatorsElement).find(f.ACTIVE).removeClass(c.ACTIVE);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&e(n).addClass(c.ACTIVE)}},h._slide=function(t,n){var i,r,o,s=this,h=e(this._element).find(f.ACTIVE_ITEM)[0],u=this._getItemIndex(h),d=n||h&&this._getItemByDirection(t,h),p=this._getItemIndex(d),g=Boolean(this._interval);if(t===a.NEXT?(i=c.LEFT,r=c.NEXT,o=a.LEFT):(i=c.RIGHT,r=c.PREV,o=a.RIGHT),d&&e(d).hasClass(c.ACTIVE))this._isSliding=!1;else if(!this._triggerSlideEvent(d,o).isDefaultPrevented()&&h&&d){this._isSliding=!0,g&&this.pause(),this._setActiveIndicatorElement(d);var m=e.Event(l.SLID,{relatedTarget:d,direction:o,from:u,to:p});X.supportsTransitionEnd()&&e(this._element).hasClass(c.SLIDE)?(e(d).addClass(r),X.reflow(d),e(h).addClass(i),e(d).addClass(i),e(h).one(X.TRANSITION_END,function(){e(d).removeClass(i+" "+r).addClass(c.ACTIVE),e(h).removeClass(c.ACTIVE+" "+r+" "+i),s._isSliding=!1,setTimeout(function(){return e(s._element).trigger(m)},0)}).emulateTransitionEnd(600)):(e(h).removeClass(c.ACTIVE),e(d).addClass(c.ACTIVE),this._isSliding=!1,e(this._element).trigger(m)),g&&this.cycle()}},r._jQueryInterface=function(t){return this.each(function(){var i=e(this).data(n),s=e.extend({},o,e(this).data());"object"==typeof t&&e.extend(s,t);var a="string"==typeof t?t:s.slide;if(i||(i=new r(this,s),e(this).data(n,i)),"number"==typeof t)i.to(t);else if("string"==typeof a){if("undefined"==typeof i[a])throw new Error('No method named "'+a+'"');i[a]()}else s.interval&&(i.pause(),i.cycle())})},r._dataApiClickHandler=function(t){var i=X.getSelectorFromElement(this);if(i){var o=e(i)[0];if(o&&e(o).hasClass(c.CAROUSEL)){var s=e.extend({},e(o).data(),e(this).data()),a=this.getAttribute("data-slide-to");a&&(s.interval=!1),r._jQueryInterface.call(e(o),s),a&&e(o).data(n).to(a),t.preventDefault()}}},q(r,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return o}}]),r}();return e(document).on(l.CLICK_DATA_API,f.DATA_SLIDE,h._dataApiClickHandler),e(window).on(l.LOAD_DATA_API,function(){e(f.DATA_RIDE).each(function(){var t=e(this);h._jQueryInterface.call(t,t.data())})}),e.fn[t]=h._jQueryInterface,e.fn[t].Constructor=h,e.fn[t].noConflict=function(){return e.fn[t]=r,h._jQueryInterface},h}(),tt=function(){var t="collapse",n="bs.collapse",i=e.fn[t],r={toggle:!0,parent:""},o={toggle:"boolean",parent:"(string|element)"},s={SHOW:"show.bs.collapse",SHOWN:"shown.bs.collapse",HIDE:"hide.bs.collapse",HIDDEN:"hidden.bs.collapse",CLICK_DATA_API:"click.bs.collapse.data-api"},a={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},l={WIDTH:"width",HEIGHT:"height"},c={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},f=function(){function i(t,n){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(n),this._triggerArray=e.makeArray(e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var i=e(c.DATA_TOGGLE),r=0;r<i.length;r++){var o=i[r],s=X.getSelectorFromElement(o);null!==s&&e(s).filter(t).length>0&&this._triggerArray.push(o)}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var f=i.prototype;return f.toggle=function(){e(this._element).hasClass(a.SHOW)?this.hide():this.show()},f.show=function(){var t=this;if(!this._isTransitioning&&!e(this._element).hasClass(a.SHOW)){var r,o;if(this._parent&&((r=e.makeArray(e(this._parent).children().children(c.ACTIVES))).length||(r=null)),!(r&&(o=e(r).data(n))&&o._isTransitioning)){var l=e.Event(s.SHOW);if(e(this._element).trigger(l),!l.isDefaultPrevented()){r&&(i._jQueryInterface.call(e(r),"hide"),o||e(r).data(n,null));var f=this._getDimension();e(this._element).removeClass(a.COLLAPSE).addClass(a.COLLAPSING),this._element.style[f]=0,this._triggerArray.length&&e(this._triggerArray).removeClass(a.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var h=function(){e(t._element).removeClass(a.COLLAPSING).addClass(a.COLLAPSE).addClass(a.SHOW),t._element.style[f]="",t.setTransitioning(!1),e(t._element).trigger(s.SHOWN)};if(X.supportsTransitionEnd()){var u="scroll"+(f[0].toUpperCase()+f.slice(1));e(this._element).one(X.TRANSITION_END,h).emulateTransitionEnd(600),this._element.style[f]=this._element[u]+"px"}else h()}}}},f.hide=function(){var t=this;if(!this._isTransitioning&&e(this._element).hasClass(a.SHOW)){var n=e.Event(s.HIDE);if(e(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension();if(this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",X.reflow(this._element),e(this._element).addClass(a.COLLAPSING).removeClass(a.COLLAPSE).removeClass(a.SHOW),this._triggerArray.length)for(var r=0;r<this._triggerArray.length;r++){var o=this._triggerArray[r],l=X.getSelectorFromElement(o);null!==l&&(e(l).hasClass(a.SHOW)||e(o).addClass(a.COLLAPSED).attr("aria-expanded",!1))}this.setTransitioning(!0);var c=function(){t.setTransitioning(!1),e(t._element).removeClass(a.COLLAPSING).addClass(a.COLLAPSE).trigger(s.HIDDEN)};this._element.style[i]="",X.supportsTransitionEnd()?e(this._element).one(X.TRANSITION_END,c).emulateTransitionEnd(600):c()}}},f.setTransitioning=function(t){this._isTransitioning=t},f.dispose=function(){e.removeData(this._element,n),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},f._getConfig=function(n){return n=e.extend({},r,n),n.toggle=Boolean(n.toggle),X.typeCheckConfig(t,n,o),n},f._getDimension=function(){return e(this._element).hasClass(l.WIDTH)?l.WIDTH:l.HEIGHT},f._getParent=function(){var t=this,n=null;X.isElement(this._config.parent)?(n=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=e(this._config.parent)[0];var r='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return e(n).find(r).each(function(e,n){t._addAriaAndCollapsedClass(i._getTargetFromElement(n),[n])}),n},f._addAriaAndCollapsedClass=function(t,n){if(t){var i=e(t).hasClass(a.SHOW);n.length&&e(n).toggleClass(a.COLLAPSED,!i).attr("aria-expanded",i)}},i._getTargetFromElement=function(t){var n=X.getSelectorFromElement(t);return n?e(n)[0]:null},i._jQueryInterface=function(t){return this.each(function(){var o=e(this),s=o.data(n),a=e.extend({},r,o.data(),"object"==typeof t&&t);if(!s&&a.toggle&&/show|hide/.test(t)&&(a.toggle=!1),s||(s=new i(this,a),o.data(n,s)),"string"==typeof t){if("undefined"==typeof s[t])throw new Error('No method named "'+t+'"');s[t]()}})},q(i,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return r}}]),i}();return e(document).on(s.CLICK_DATA_API,c.DATA_TOGGLE,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var i=e(this),r=X.getSelectorFromElement(this);e(r).each(function(){var t=e(this),r=t.data(n)?"toggle":i.data();f._jQueryInterface.call(t,r)})}),e.fn[t]=f._jQueryInterface,e.fn[t].Constructor=f,e.fn[t].noConflict=function(){return e.fn[t]=i,f._jQueryInterface},f}(),et=["native code","[object MutationObserverConstructor]"],nt="undefined"!=typeof window,it=["Edge","Trident","Firefox"],rt=0,ot=0;ot<it.length;ot+=1)if(nt&&navigator.userAgent.indexOf(it[ot])>=0){rt=1;break}var st=nt&&function(t){return et.some(function(e){return(t||"").toString().indexOf(e)>-1})}(window.MutationObserver)?function(t){var e=!1,n=0,i=document.createElement("span");return new MutationObserver(function(){t(),e=!1}).observe(i,{attributes:!0}),function(){e||(e=!0,i.setAttribute("x-index",n),n+=1)}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},rt))}},at=void 0,lt=function(){return void 0===at&&(at=-1!==navigator.appVersion.indexOf("MSIE 10")),at},ct=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},ft=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),ht=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},ut=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},dt=["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"],pt=dt.slice(3),gt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},mt={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var r=t.offsets,o=r.reference,s=r.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",f={start:ht({},l,o[l]),end:ht({},l,o[l]+o[c]-s[c])};t.offsets.popper=ut({},s,f[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,r=t.offsets,o=r.popper,s=r.reference,a=i.split("-")[0],l=void 0;return l=V(+n)?[+n,0]:Y(n,o,s,a),"left"===a?(o.top+=l[0],o.left-=l[1]):"right"===a?(o.top+=l[0],o.left+=l[1]):"top"===a?(o.left+=l[0],o.top-=l[1]):"bottom"===a&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||a(t.instance.popper);t.instance.reference===n&&(n=a(n));var i=b(t.instance.popper,t.instance.reference,e.padding,n);e.boundaries=i;var r=e.priority,o=t.offsets.popper,s={primary:function(t){var n=o[t];return o[t]<i[t]&&!e.escapeWithReference&&(n=Math.max(o[t],i[t])),ht({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=o[n];return o[t]>i[t]&&!e.escapeWithReference&&(r=Math.min(o[n],i[t]-("right"===t?o.width:o.height))),ht({},n,r)}};return r.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";o=ut({},o,s[e](t))}),t.offsets.popper=o,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,r=t.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<o(i[l])&&(t.offsets.popper[l]=o(i[l])-n[c]),n[l]>o(i[a])&&(t.offsets.popper[l]=o(i[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){if(!B(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],o=t.offsets,s=o.popper,a=o.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",f=l?"Top":"Left",h=f.toLowerCase(),u=l?"left":"top",d=l?"bottom":"right",p=O(n)[c];a[d]-p<s[h]&&(t.offsets.popper[h]-=s[h]-(a[d]-p)),a[h]+p>s[d]&&(t.offsets.popper[h]+=a[h]+p-s[d]);var g=a[h]+a[c]/2-p/2,_=r(t.instance.popper,"margin"+f).replace("px",""),v=g-m(t.offsets.popper)[h]-_;return v=Math.max(Math.min(s[c]-p,v),0),t.arrowElement=n,t.offsets.arrow={},t.offsets.arrow[h]=Math.round(v),t.offsets.arrow[u]="",t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(P(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=b(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),i=t.placement.split("-")[0],r=y(i),o=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case gt.FLIP:s=[i,r];break;case gt.CLOCKWISE:s=K(i);break;case gt.COUNTERCLOCKWISE:s=K(i,!0);break;default:s=e.behavior}return s.forEach(function(a,l){if(i!==a||s.length===l+1)return t;i=t.placement.split("-")[0],r=y(i);var c=t.offsets.popper,f=t.offsets.reference,h=Math.floor,u="left"===i&&h(c.right)>h(f.left)||"right"===i&&h(c.left)<h(f.right)||"top"===i&&h(c.bottom)>h(f.top)||"bottom"===i&&h(c.top)<h(f.bottom),d=h(c.left)<h(n.left),p=h(c.right)>h(n.right),g=h(c.top)<h(n.top),m=h(c.bottom)>h(n.bottom),_="left"===i&&d||"right"===i&&p||"top"===i&&g||"bottom"===i&&m,v=-1!==["top","bottom"].indexOf(i),E=!!e.flipVariations&&(v&&"start"===o&&d||v&&"end"===o&&p||!v&&"start"===o&&g||!v&&"end"===o&&m);(u||_||E)&&(t.flipped=!0,(u||_)&&(i=s[l+1]),E&&(o=G(o)),t.placement=i+(o?"-"+o:""),t.offsets.popper=ut({},t.offsets.popper,D(t.instance.popper,t.offsets.reference,t.placement)),t=N(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,r=i.popper,o=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=o[n]-(a?r[s?"width":"height"]:0),t.placement=y(e),t.offsets.popper=m(r),t}},hide:{order:800,enabled:!0,fn:function(t){if(!B(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,i=e.y,r=t.offsets.popper,o=S(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==o?o:e.gpuAcceleration,l=_(a(t.instance.popper)),c={position:r.position},f={left:Math.floor(r.left),top:Math.floor(r.top),bottom:Math.floor(r.bottom),right:Math.floor(r.right)},h="bottom"===n?"top":"bottom",u="right"===i?"left":"right",d=R("transform"),p=void 0,g=void 0;if(g="bottom"===h?-l.height+f.bottom:f.top,p="right"===u?-l.width+f.right:f.left,s&&d)c[d]="translate3d("+p+"px, "+g+"px, 0)",c[h]=0,c[u]=0,c.willChange="transform";else{var m="bottom"===h?-1:1,v="right"===u?-1:1;c[h]=g*m,c[u]=p*v,c.willChange=h+", "+u}var E={"x-placement":t.placement};return t.attributes=ut({},E,t.attributes),t.styles=ut({},c,t.styles),t.arrowStyles=ut({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){return F(t.instance.popper,t.styles),j(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&F(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,r){var o=I(r,e,t),s=A(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",s),F(e,{position:"absolute"}),n},gpuAcceleration:void 0}}},_t=function(){function t(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ct(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=st(this.update.bind(this)),this.options=ut({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e.jquery?e[0]:e,this.popper=n.jquery?n[0]:n,this.options.modifiers={},Object.keys(ut({},t.Defaults.modifiers,o.modifiers)).forEach(function(e){r.options.modifiers[e]=ut({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return ut({name:t},r.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&i(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return ft(t,[{key:"update",value:function(){return L.call(this)}},{key:"destroy",value:function(){return H.call(this)}},{key:"enableEventListeners",value:function(){return x.call(this)}},{key:"disableEventListeners",value:function(){return U.call(this)}}]),t}();_t.Utils=("undefined"!=typeof window?window:global).PopperUtils,_t.placements=dt,_t.Defaults=mt;var vt=function(){if("undefined"==typeof _t)throw new Error("Bootstrap dropdown require Popper.js (https://popper.js.org)");var t="dropdown",n="bs.dropdown",i="."+n,r=e.fn[t],o=new RegExp("38|40|27"),s={HIDE:"hide"+i,HIDDEN:"hidden"+i,SHOW:"show"+i,SHOWN:"shown"+i,CLICK:"click"+i,CLICK_DATA_API:"click.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api",KEYUP_DATA_API:"keyup.bs.dropdown.data-api"},a={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left"},l={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled)"},c={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end"},f={offset:0,flip:!0},h={offset:"(number|string|function)",flip:"boolean"},u=function(){function r(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var u=r.prototype;return u.toggle=function(){if(!this._element.disabled&&!e(this._element).hasClass(a.DISABLED)){var t=r._getParentFromElement(this._element),n=e(this._menu).hasClass(a.SHOW);if(r._clearMenus(),!n){var i={relatedTarget:this._element},o=e.Event(s.SHOW,i);if(e(t).trigger(o),!o.isDefaultPrevented()){var c=this._element;e(t).hasClass(a.DROPUP)&&(e(this._menu).hasClass(a.MENULEFT)||e(this._menu).hasClass(a.MENURIGHT))&&(c=t),this._popper=new _t(c,this._menu,this._getPopperConfig()),"ontouchstart"in document.documentElement&&!e(t).closest(l.NAVBAR_NAV).length&&e("body").children().on("mouseover",null,e.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),e(this._menu).toggleClass(a.SHOW),e(t).toggleClass(a.SHOW).trigger(e.Event(s.SHOWN,i))}}}},u.dispose=function(){e.removeData(this._element,n),e(this._element).off(i),this._element=null,this._menu=null,null!==this._popper&&this._popper.destroy(),this._popper=null},u.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},u._addEventListeners=function(){var t=this;e(this._element).on(s.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},u._getConfig=function(n){return n=e.extend({},this.constructor.Default,e(this._element).data(),n),X.typeCheckConfig(t,n,this.constructor.DefaultType),n},u._getMenuElement=function(){if(!this._menu){var t=r._getParentFromElement(this._element);this._menu=e(t).find(l.MENU)[0]}return this._menu},u._getPlacement=function(){var t=e(this._element).parent(),n=c.BOTTOM;return t.hasClass(a.DROPUP)?(n=c.TOP,e(this._menu).hasClass(a.MENURIGHT)&&(n=c.TOPEND)):e(this._menu).hasClass(a.MENURIGHT)&&(n=c.BOTTOMEND),n},u._detectNavbar=function(){return e(this._element).closest(".navbar").length>0},u._getPopperConfig=function(){var t=this,n={};"function"==typeof this._config.offset?n.fn=function(n){return n.offsets=e.extend({},n.offsets,t._config.offset(n.offsets)||{}),n}:n.offset=this._config.offset;var i={placement:this._getPlacement(),modifiers:{offset:n,flip:{enabled:this._config.flip}}};return this._inNavbar&&(i.modifiers.applyStyle={enabled:!this._inNavbar}),i},r._jQueryInterface=function(t){return this.each(function(){var i=e(this).data(n),o="object"==typeof t?t:null;if(i||(i=new r(this,o),e(this).data(n,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new Error('No method named "'+t+'"');i[t]()}})},r._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var i=e.makeArray(e(l.DATA_TOGGLE)),o=0;o<i.length;o++){var c=r._getParentFromElement(i[o]),f=e(i[o]).data(n),h={relatedTarget:i[o]};if(f){var u=f._menu;if(e(c).hasClass(a.SHOW)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&e.contains(c,t.target))){var d=e.Event(s.HIDE,h);e(c).trigger(d),d.isDefaultPrevented()||("ontouchstart"in document.documentElement&&e("body").children().off("mouseover",null,e.noop),i[o].setAttribute("aria-expanded","false"),e(u).removeClass(a.SHOW),e(c).removeClass(a.SHOW).trigger(e.Event(s.HIDDEN,h)))}}}},r._getParentFromElement=function(t){var n,i=X.getSelectorFromElement(t);return i&&(n=e(i)[0]),n||t.parentNode},r._dataApiKeydownHandler=function(t){if(!(!o.test(t.which)||/button/i.test(t.target.tagName)&&32===t.which||/input|textarea/i.test(t.target.tagName)||(t.preventDefault(),t.stopPropagation(),this.disabled||e(this).hasClass(a.DISABLED)))){var n=r._getParentFromElement(this),i=e(n).hasClass(a.SHOW);if((i||27===t.which&&32===t.which)&&(!i||27!==t.which&&32!==t.which)){var s=e(n).find(l.VISIBLE_ITEMS).get();if(s.length){var c=s.indexOf(t.target);38===t.which&&c>0&&c--,40===t.which&&c<s.length-1&&c++,c<0&&(c=0),s[c].focus()}}else{if(27===t.which){var f=e(n).find(l.DATA_TOGGLE)[0];e(f).trigger("focus")}e(this).trigger("click")}}},q(r,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return f}},{key:"DefaultType",get:function(){return h}}]),r}();return e(document).on(s.KEYDOWN_DATA_API,l.DATA_TOGGLE,u._dataApiKeydownHandler).on(s.KEYDOWN_DATA_API,l.MENU,u._dataApiKeydownHandler).on(s.CLICK_DATA_API+" "+s.KEYUP_DATA_API,u._clearMenus).on(s.CLICK_DATA_API,l.DATA_TOGGLE,function(t){t.preventDefault(),t.stopPropagation(),u._jQueryInterface.call(e(this),"toggle")}).on(s.CLICK_DATA_API,l.FORM_CHILD,function(t){t.stopPropagation()}),e.fn[t]=u._jQueryInterface,e.fn[t].Constructor=u,e.fn[t].noConflict=function(){return e.fn[t]=r,u._jQueryInterface},u}(),Et=function(){var t="modal",n=".bs.modal",i=e.fn[t],r={backdrop:!0,keyboard:!0,focus:!0,show:!0},o={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},s={HIDE:"hide.bs.modal",HIDDEN:"hidden.bs.modal",SHOW:"show.bs.modal",SHOWN:"shown.bs.modal",FOCUSIN:"focusin.bs.modal",RESIZE:"resize.bs.modal",CLICK_DISMISS:"click.dismiss.bs.modal",KEYDOWN_DISMISS:"keydown.dismiss.bs.modal",MOUSEUP_DISMISS:"mouseup.dismiss.bs.modal",MOUSEDOWN_DISMISS:"mousedown.dismiss.bs.modal",CLICK_DATA_API:"click.bs.modal.data-api"},a={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},l={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},c=function(){function i(t,n){this._config=this._getConfig(n),this._element=t,this._dialog=e(t).find(l.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}var c=i.prototype;return c.toggle=function(t){return this._isShown?this.hide():this.show(t)},c.show=function(t){var n=this;if(!this._isTransitioning&&!this._isShown){X.supportsTransitionEnd()&&e(this._element).hasClass(a.FADE)&&(this._isTransitioning=!0);var i=e.Event(s.SHOW,{relatedTarget:t});e(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),e(document.body).addClass(a.OPEN),this._setEscapeEvent(),this._setResizeEvent(),e(this._element).on(s.CLICK_DISMISS,l.DATA_DISMISS,function(t){return n.hide(t)}),e(this._dialog).on(s.MOUSEDOWN_DISMISS,function(){e(n._element).one(s.MOUSEUP_DISMISS,function(t){e(t.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return n._showElement(t)}))}},c.hide=function(t){var n=this;if(t&&t.preventDefault(),!this._isTransitioning&&this._isShown){var i=e.Event(s.HIDE);if(e(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var r=X.supportsTransitionEnd()&&e(this._element).hasClass(a.FADE);r&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),e(document).off(s.FOCUSIN),e(this._element).removeClass(a.SHOW),e(this._element).off(s.CLICK_DISMISS),e(this._dialog).off(s.MOUSEDOWN_DISMISS),r?e(this._element).one(X.TRANSITION_END,function(t){return n._hideModal(t)}).emulateTransitionEnd(300):this._hideModal()}}},c.dispose=function(){e.removeData(this._element,"bs.modal"),e(window,document,this._element,this._backdrop).off(n),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},c.handleUpdate=function(){this._adjustDialog()},c._getConfig=function(n){return n=e.extend({},r,n),X.typeCheckConfig(t,n,o),n},c._showElement=function(t){var n=this,i=X.supportsTransitionEnd()&&e(this._element).hasClass(a.FADE);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,i&&X.reflow(this._element),e(this._element).addClass(a.SHOW),this._config.focus&&this._enforceFocus();var r=e.Event(s.SHOWN,{relatedTarget:t}),o=function(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,e(n._element).trigger(r)};i?e(this._dialog).one(X.TRANSITION_END,o).emulateTransitionEnd(300):o()},c._enforceFocus=function(){var t=this;e(document).off(s.FOCUSIN).on(s.FOCUSIN,function(n){document===n.target||t._element===n.target||e(t._element).has(n.target).length||t._element.focus()})},c._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?e(this._element).on(s.KEYDOWN_DISMISS,function(e){27===e.which&&(e.preventDefault(),t.hide())}):this._isShown||e(this._element).off(s.KEYDOWN_DISMISS)},c._setResizeEvent=function(){var t=this;this._isShown?e(window).on(s.RESIZE,function(e){return t.handleUpdate(e)}):e(window).off(s.RESIZE)},c._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){e(document.body).removeClass(a.OPEN),t._resetAdjustments(),t._resetScrollbar(),e(t._element).trigger(s.HIDDEN)})},c._removeBackdrop=function(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)},c._showBackdrop=function(t){var n=this,i=e(this._element).hasClass(a.FADE)?a.FADE:"";if(this._isShown&&this._config.backdrop){var r=X.supportsTransitionEnd()&&i;if(this._backdrop=document.createElement("div"),this._backdrop.className=a.BACKDROP,i&&e(this._backdrop).addClass(i),e(this._backdrop).appendTo(document.body),e(this._element).on(s.CLICK_DISMISS,function(t){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide())}),r&&X.reflow(this._backdrop),e(this._backdrop).addClass(a.SHOW),!t)return;if(!r)return void t();e(this._backdrop).one(X.TRANSITION_END,t).emulateTransitionEnd(150)}else if(!this._isShown&&this._backdrop){e(this._backdrop).removeClass(a.SHOW);var o=function(){n._removeBackdrop(),t&&t()};X.supportsTransitionEnd()&&e(this._element).hasClass(a.FADE)?e(this._backdrop).one(X.TRANSITION_END,o).emulateTransitionEnd(150):o()}else t&&t()},c._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},c._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},c._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},c._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){e(l.FIXED_CONTENT).each(function(n,i){var r=e(i)[0].style.paddingRight,o=e(i).css("padding-right");e(i).data("padding-right",r).css("padding-right",parseFloat(o)+t._scrollbarWidth+"px")}),e(l.STICKY_CONTENT).each(function(n,i){var r=e(i)[0].style.marginRight,o=e(i).css("margin-right");e(i).data("margin-right",r).css("margin-right",parseFloat(o)-t._scrollbarWidth+"px")}),e(l.NAVBAR_TOGGLER).each(function(n,i){var r=e(i)[0].style.marginRight,o=e(i).css("margin-right");e(i).data("margin-right",r).css("margin-right",parseFloat(o)+t._scrollbarWidth+"px")});var n=document.body.style.paddingRight,i=e("body").css("padding-right");e("body").data("padding-right",n).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}},c._resetScrollbar=function(){e(l.FIXED_CONTENT).each(function(t,n){var i=e(n).data("padding-right");"undefined"!=typeof i&&e(n).css("padding-right",i).removeData("padding-right")}),e(l.STICKY_CONTENT+", "+l.NAVBAR_TOGGLER).each(function(t,n){var i=e(n).data("margin-right");"undefined"!=typeof i&&e(n).css("margin-right",i).removeData("margin-right")});var t=e("body").data("padding-right");"undefined"!=typeof t&&e("body").css("padding-right",t).removeData("padding-right")},c._getScrollbarWidth=function(){var t=document.createElement("div");t.className=a.SCROLLBAR_MEASURER,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},i._jQueryInterface=function(t,n){return this.each(function(){var r=e(this).data("bs.modal"),o=e.extend({},i.Default,e(this).data(),"object"==typeof t&&t);if(r||(r=new i(this,o),e(this).data("bs.modal",r)),"string"==typeof t){if("undefined"==typeof r[t])throw new Error('No method named "'+t+'"');r[t](n)}else o.show&&r.show(n)})},q(i,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return r}}]),i}();return e(document).on(s.CLICK_DATA_API,l.DATA_TOGGLE,function(t){var n,i=this,r=X.getSelectorFromElement(this);r&&(n=e(r)[0]);var o=e(n).data("bs.modal")?"toggle":e.extend({},e(n).data(),e(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var a=e(n).one(s.SHOW,function(t){t.isDefaultPrevented()||a.one(s.HIDDEN,function(){e(i).is(":visible")&&i.focus()})});c._jQueryInterface.call(e(n),o,this)}),e.fn[t]=c._jQueryInterface,e.fn[t].Constructor=c,e.fn[t].noConflict=function(){return e.fn[t]=i,c._jQueryInterface},c}(),Tt=function(){if("undefined"==typeof _t)throw new Error("Bootstrap tooltips require Popper.js (https://popper.js.org)");var t="tooltip",n=".bs.tooltip",i=e.fn[t],r=new RegExp("(^|\\s)bs-tooltip\\S+","g"),o={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)"},s={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},a={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"},l={SHOW:"show",OUT:"out"},c={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,INSERTED:"inserted"+n,CLICK:"click"+n,FOCUSIN:"focusin"+n,FOCUSOUT:"focusout"+n,MOUSEENTER:"mouseenter"+n,MOUSELEAVE:"mouseleave"+n},f={FADE:"fade",SHOW:"show"},h={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},u={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},d=function(){function i(t,e){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 d=i.prototype;return d.enable=function(){this._isEnabled=!0},d.disable=function(){this._isEnabled=!1},d.toggleEnabled=function(){this._isEnabled=!this._isEnabled},d.toggle=function(t){if(this._isEnabled)if(t){var n=this.constructor.DATA_KEY,i=e(t.currentTarget).data(n);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(e(this.getTipElement()).hasClass(f.SHOW))return void this._leave(null,this);this._enter(null,this)}},d.dispose=function(){clearTimeout(this._timeout),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},d.show=function(){var t=this;if("none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");var n=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(n);var r=e.contains(this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!r)return;var o=this.getTipElement(),s=X.getUID(this.constructor.NAME);o.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&e(o).addClass(f.FADE);var a="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,c=this._getAttachment(a);this.addAttachmentClass(c);var u=!1===this.config.container?document.body:e(this.config.container);e(o).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(o).appendTo(u),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new _t(this.element,o,{placement:c,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:h.ARROW}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){t._handlePopperPlacementChange(e)}}),e(o).addClass(f.SHOW),"ontouchstart"in document.documentElement&&e("body").children().on("mouseover",null,e.noop);var d=function(){t.config.animation&&t._fixTransition();var n=t._hoverState;t._hoverState=null,e(t.element).trigger(t.constructor.Event.SHOWN),n===l.OUT&&t._leave(null,t)};X.supportsTransitionEnd()&&e(this.tip).hasClass(f.FADE)?e(this.tip).one(X.TRANSITION_END,d).emulateTransitionEnd(i._TRANSITION_DURATION):d()}},d.hide=function(t){var n=this,i=this.getTipElement(),r=e.Event(this.constructor.Event.HIDE),o=function(){n._hoverState!==l.SHOW&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),e(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),t&&t()};e(this.element).trigger(r),r.isDefaultPrevented()||(e(i).removeClass(f.SHOW),"ontouchstart"in document.documentElement&&e("body").children().off("mouseover",null,e.noop),this._activeTrigger[u.CLICK]=!1,this._activeTrigger[u.FOCUS]=!1,this._activeTrigger[u.HOVER]=!1,X.supportsTransitionEnd()&&e(this.tip).hasClass(f.FADE)?e(i).one(X.TRANSITION_END,o).emulateTransitionEnd(150):o(),this._hoverState="")},d.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},d.isWithContent=function(){return Boolean(this.getTitle())},d.addAttachmentClass=function(t){e(this.getTipElement()).addClass("bs-tooltip-"+t)},d.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},d.setContent=function(){var t=e(this.getTipElement());this.setElementContent(t.find(h.TOOLTIP_INNER),this.getTitle()),t.removeClass(f.FADE+" "+f.SHOW)},d.setElementContent=function(t,n){var i=this.config.html;"object"==typeof n&&(n.nodeType||n.jquery)?i?e(n).parent().is(t)||t.empty().append(n):t.text(e(n).text()):t[i?"html":"text"](n)},d.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},d._getAttachment=function(t){return s[t.toUpperCase()]},d._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)e(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if(n!==u.MANUAL){var i=n===u.HOVER?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,r=n===u.HOVER?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;e(t.element).on(i,t.config.selector,function(e){return t._enter(e)}).on(r,t.config.selector,function(e){return t._leave(e)})}e(t.element).closest(".modal").on("hide.bs.modal",function(){return t.hide()})}),this.config.selector?this.config=e.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},d._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",""))},d._enter=function(t,n){var i=this.constructor.DATA_KEY;(n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusin"===t.type?u.FOCUS:u.HOVER]=!0),e(n.getTipElement()).hasClass(f.SHOW)||n._hoverState===l.SHOW?n._hoverState=l.SHOW:(clearTimeout(n._timeout),n._hoverState=l.SHOW,n.config.delay&&n.config.delay.show?n._timeout=setTimeout(function(){n._hoverState===l.SHOW&&n.show()},n.config.delay.show):n.show())},d._leave=function(t,n){var i=this.constructor.DATA_KEY;(n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusout"===t.type?u.FOCUS:u.HOVER]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=l.OUT,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout(function(){n._hoverState===l.OUT&&n.hide()},n.config.delay.hide):n.hide())},d._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},d._getConfig=function(n){return"number"==typeof(n=e.extend({},this.constructor.Default,e(this.element).data(),n)).delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),X.typeCheckConfig(t,n,this.constructor.DefaultType),n},d._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},d._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(r);null!==n&&n.length>0&&t.removeClass(n.join(""))},d._handlePopperPlacementChange=function(t){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},d._fixTransition=function(){var t=this.getTipElement(),n=this.config.animation;null===t.getAttribute("x-placement")&&(e(t).removeClass(f.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},i._jQueryInterface=function(t){return this.each(function(){var n=e(this).data("bs.tooltip"),r="object"==typeof t&&t;if((n||!/dispose|hide/.test(t))&&(n||(n=new i(this,r),e(this).data("bs.tooltip",n)),"string"==typeof t)){if("undefined"==typeof n[t])throw new Error('No method named "'+t+'"');n[t]()}})},q(i,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return a}},{key:"NAME",get:function(){return t}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return c}},{key:"EVENT_KEY",get:function(){return n}},{key:"DefaultType",get:function(){return o}}]),i}();return e.fn[t]=d._jQueryInterface,e.fn[t].Constructor=d,e.fn[t].noConflict=function(){return e.fn[t]=i,d._jQueryInterface},d}(),bt=function(){var t="popover",n=".bs.popover",i=e.fn[t],r=new RegExp("(^|\\s)bs-popover\\S+","g"),o=e.extend({},Tt.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),s=e.extend({},Tt.DefaultType,{content:"(string|element|function)"}),a={FADE:"fade",SHOW:"show"},l={TITLE:".popover-header",CONTENT:".popover-body"},c={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,INSERTED:"inserted"+n,CLICK:"click"+n,FOCUSIN:"focusin"+n,FOCUSOUT:"focusout"+n,MOUSEENTER:"mouseenter"+n,MOUSELEAVE:"mouseleave"+n},f=function(i){function f(){return i.apply(this,arguments)||this}z(f,i);var h=f.prototype;return h.isWithContent=function(){return this.getTitle()||this._getContent()},h.addAttachmentClass=function(t){e(this.getTipElement()).addClass("bs-popover-"+t)},h.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},h.setContent=function(){var t=e(this.getTipElement());this.setElementContent(t.find(l.TITLE),this.getTitle()),this.setElementContent(t.find(l.CONTENT),this._getContent()),t.removeClass(a.FADE+" "+a.SHOW)},h._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},h._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(r);null!==n&&n.length>0&&t.removeClass(n.join(""))},f._jQueryInterface=function(t){return this.each(function(){var n=e(this).data("bs.popover"),i="object"==typeof t?t:null;if((n||!/destroy|hide/.test(t))&&(n||(n=new f(this,i),e(this).data("bs.popover",n)),"string"==typeof t)){if("undefined"==typeof n[t])throw new Error('No method named "'+t+'"');n[t]()}})},q(f,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return o}},{key:"NAME",get:function(){return t}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return c}},{key:"EVENT_KEY",get:function(){return n}},{key:"DefaultType",get:function(){return s}}]),f}(Tt);return e.fn[t]=f._jQueryInterface,e.fn[t].Constructor=f,e.fn[t].noConflict=function(){return e.fn[t]=i,f._jQueryInterface},f}(),Ct=function(){var t="scrollspy",n=e.fn[t],i={offset:10,method:"auto",target:""},r={offset:"number",method:"string",target:"(string|element)"},o={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},s={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},a={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},l={OFFSET:"offset",POSITION:"position"},c=function(){function n(t,n){var i=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(n),this._selector=this._config.target+" "+a.NAV_LINKS+","+this._config.target+" "+a.LIST_ITEMS+","+this._config.target+" "+a.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on(o.SCROLL,function(t){return i._process(t)}),this.refresh(),this._process()}var c=n.prototype;return c.refresh=function(){var t=this,n=this._scrollElement!==this._scrollElement.window?l.POSITION:l.OFFSET,i="auto"===this._config.method?n:this._config.method,r=i===l.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),e.makeArray(e(this._selector)).map(function(t){var n,o=X.getSelectorFromElement(t);if(o&&(n=e(o)[0]),n){var s=n.getBoundingClientRect();if(s.width||s.height)return[e(n)[i]().top+r,o]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},c.dispose=function(){e.removeData(this._element,"bs.scrollspy"),e(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},c._getConfig=function(n){if("string"!=typeof(n=e.extend({},i,n)).target){var o=e(n.target).attr("id");o||(o=X.getUID(t),e(n.target).attr("id",o)),n.target="#"+o}return X.typeCheckConfig(t,n,r),n},c._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},c._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},c._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},c._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;)this._activeTarget!==this._targets[r]&&t>=this._offsets[r]&&("undefined"==typeof this._offsets[r+1]||t<this._offsets[r+1])&&this._activate(this._targets[r])}},c._activate=function(t){this._activeTarget=t,this._clear();var n=this._selector.split(",");n=n.map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'});var i=e(n.join(","));i.hasClass(s.DROPDOWN_ITEM)?(i.closest(a.DROPDOWN).find(a.DROPDOWN_TOGGLE).addClass(s.ACTIVE),i.addClass(s.ACTIVE)):(i.addClass(s.ACTIVE),i.parents(a.NAV_LIST_GROUP).prev(a.NAV_LINKS+", "+a.LIST_ITEMS).addClass(s.ACTIVE),i.parents(a.NAV_LIST_GROUP).prev(a.NAV_ITEMS).children(a.NAV_LINKS).addClass(s.ACTIVE)),e(this._scrollElement).trigger(o.ACTIVATE,{relatedTarget:t})},c._clear=function(){e(this._selector).filter(a.ACTIVE).removeClass(s.ACTIVE)},n._jQueryInterface=function(t){return this.each(function(){var i=e(this).data("bs.scrollspy"),r="object"==typeof t&&t;if(i||(i=new n(this,r),e(this).data("bs.scrollspy",i)),"string"==typeof t){if("undefined"==typeof i[t])throw new Error('No method named "'+t+'"');i[t]()}})},q(n,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return i}}]),n}();return e(window).on(o.LOAD_DATA_API,function(){for(var t=e.makeArray(e(a.DATA_SPY)),n=t.length;n--;){var i=e(t[n]);c._jQueryInterface.call(i,i.data())}}),e.fn[t]=c._jQueryInterface,e.fn[t].Constructor=c,e.fn[t].noConflict=function(){return e.fn[t]=n,c._jQueryInterface},c}(),At=function(){var t=e.fn.tab,n={HIDE:"hide.bs.tab",HIDDEN:"hidden.bs.tab",SHOW:"show.bs.tab",SHOWN:"shown.bs.tab",CLICK_DATA_API:"click.bs.tab.data-api"},i={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},r={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",ACTIVE_UL:"> li > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},o=function(){function t(t){this._element=t}var o=t.prototype;return o.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass(i.ACTIVE)||e(this._element).hasClass(i.DISABLED))){var o,s,a=e(this._element).closest(r.NAV_LIST_GROUP)[0],l=X.getSelectorFromElement(this._element);if(a){var c="UL"===a.nodeName?r.ACTIVE_UL:r.ACTIVE;s=e.makeArray(e(a).find(c)),s=s[s.length-1]}var f=e.Event(n.HIDE,{relatedTarget:this._element}),h=e.Event(n.SHOW,{relatedTarget:s});if(s&&e(s).trigger(f),e(this._element).trigger(h),!h.isDefaultPrevented()&&!f.isDefaultPrevented()){l&&(o=e(l)[0]),this._activate(this._element,a);var u=function(){var i=e.Event(n.HIDDEN,{relatedTarget:t._element}),r=e.Event(n.SHOWN,{relatedTarget:s});e(s).trigger(i),e(t._element).trigger(r)};o?this._activate(o,o.parentNode,u):u()}}},o.dispose=function(){e.removeData(this._element,"bs.tab"),this._element=null},o._activate=function(t,n,o){var s,a=this,l=(s="UL"===n.nodeName?e(n).find(r.ACTIVE_UL):e(n).children(r.ACTIVE))[0],c=o&&X.supportsTransitionEnd()&&l&&e(l).hasClass(i.FADE),f=function(){return a._transitionComplete(t,l,c,o)};l&&c?e(l).one(X.TRANSITION_END,f).emulateTransitionEnd(150):f(),l&&e(l).removeClass(i.SHOW)},o._transitionComplete=function(t,n,o,s){if(n){e(n).removeClass(i.ACTIVE);var a=e(n.parentNode).find(r.DROPDOWN_ACTIVE_CHILD)[0];a&&e(a).removeClass(i.ACTIVE),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(e(t).addClass(i.ACTIVE),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),o?(X.reflow(t),e(t).addClass(i.SHOW)):e(t).removeClass(i.FADE),t.parentNode&&e(t.parentNode).hasClass(i.DROPDOWN_MENU)){var l=e(t).closest(r.DROPDOWN)[0];l&&e(l).find(r.DROPDOWN_TOGGLE).addClass(i.ACTIVE),t.setAttribute("aria-expanded",!0)}s&&s()},t._jQueryInterface=function(n){return this.each(function(){var i=e(this),r=i.data("bs.tab");if(r||(r=new t(this),i.data("bs.tab",r)),"string"==typeof n){if("undefined"==typeof r[n])throw new Error('No method named "'+n+'"');r[n]()}})},q(t,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}}]),t}();return e(document).on(n.CLICK_DATA_API,r.DATA_TOGGLE,function(t){t.preventDefault(),o._jQueryInterface.call(e(this),"show")}),e.fn.tab=o._jQueryInterface,e.fn.tab.Constructor=o,e.fn.tab.noConflict=function(){return e.fn.tab=t,o._jQueryInterface},o}();return function(){if("undefined"==typeof e)throw new Error("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),t.Util=X,t.Alert=Z,t.Button=J,t.Carousel=$,t.Collapse=tt,t.Dropdown=vt,t.Modal=Et,t.Popover=bt,t.Scrollspy=Ct,t.Tab=At,t.Tooltip=Tt,t}({},$);
|
6
|
+
!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 n(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function i(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}for(var o,s,a,l,c,h,f,u,d,p,g,m,_,v,E,y,b,T,C,w,I,A,D,S,O,N,k=function(t){var e=!1;function n(e){var n=this,r=!1;return t(this).one(i.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||i.triggerTransitionEnd(n)},e),this}var i={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(e){var n,i=e.getAttribute("data-target");i&&"#"!==i||(i=e.getAttribute("href")||""),"#"===i.charAt(0)&&(n=i,i=n="function"==typeof t.escapeSelector?t.escapeSelector(n).substr(1):n.replace(/(:|\.|\[|\]|,|=|@)/g,"\\$1"));try{return t(document).find(i).length>0?i:null}catch(t){return null}},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(n){t(n).trigger(e.end)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var o=n[r],s=e[r],a=s&&i.isElement(s)?"element":(l=s,{}.toString.call(l).match(/\s([a-zA-Z]+)/)[1].toLowerCase());if(!new RegExp(o).test(a))throw new Error(t.toUpperCase()+': Option "'+r+'" provided type "'+a+'" but expected type "'+o+'".')}var l}};return e=("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"},t.fn.emulateTransitionEnd=n,i.supportsTransitionEnd()&&(t.event.special[i.TRANSITION_END]={bindType:e.end,delegateType:e.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}),i}(e=e&&e.hasOwnProperty("default")?e.default:e),L=(s="alert",l="."+(a="bs.alert"),c=(o=e).fn[s],h={CLOSE:"close"+l,CLOSED:"closed"+l,CLICK_DATA_API:"click"+l+".data-api"},f="alert",u="fade",d="show",p=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){o.removeData(this._element,a),this._element=null},e._getRootElement=function(t){var e=k.getSelectorFromElement(t),n=!1;return e&&(n=o(e)[0]),n||(n=o(t).closest("."+f)[0]),n},e._triggerCloseEvent=function(t){var e=o.Event(h.CLOSE);return o(t).trigger(e),e},e._removeElement=function(t){var e=this;o(t).removeClass(d),k.supportsTransitionEnd()&&o(t).hasClass(u)?o(t).one(k.TRANSITION_END,function(n){return e._destroyElement(t,n)}).emulateTransitionEnd(150):this._destroyElement(t)},e._destroyElement=function(t){o(t).detach().trigger(h.CLOSED).remove()},t._jQueryInterface=function(e){return this.each(function(){var n=o(this),i=n.data(a);i||(i=new t(this),n.data(a,i)),"close"===e&&i[e](this)})},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},i(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),o(document).on(h.CLICK_DATA_API,'[data-dismiss="alert"]',p._handleDismiss(new p)),o.fn[s]=p._jQueryInterface,o.fn[s].Constructor=p,o.fn[s].noConflict=function(){return o.fn[s]=c,p._jQueryInterface},p),P=(m="button",v="."+(_="bs.button"),E=".data-api",y=(g=e).fn[m],b="active",T="btn",C="focus",w='[data-toggle^="button"]',I='[data-toggle="buttons"]',A="input",D=".active",S=".btn",O={CLICK_DATA_API:"click"+v+E,FOCUS_BLUR_DATA_API:"focus"+v+E+" blur"+v+E},N=function(){function t(t){this._element=t}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=g(this._element).closest(I)[0];if(n){var i=g(this._element).find(A)[0];if(i){if("radio"===i.type)if(i.checked&&g(this._element).hasClass(b))t=!1;else{var r=g(n).find(D)[0];r&&g(r).removeClass(b)}if(t){if(i.hasAttribute("disabled")||n.hasAttribute("disabled")||i.classList.contains("disabled")||n.classList.contains("disabled"))return;i.checked=!g(this._element).hasClass(b),g(i).trigger("change")}i.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!g(this._element).hasClass(b)),t&&g(this._element).toggleClass(b)},e.dispose=function(){g.removeData(this._element,_),this._element=null},t._jQueryInterface=function(e){return this.each(function(){var n=g(this).data(_);n||(n=new t(this),g(this).data(_,n)),"toggle"===e&&n[e]()})},i(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),g(document).on(O.CLICK_DATA_API,w,function(t){t.preventDefault();var e=t.target;g(e).hasClass(T)||(e=g(e).closest(S)),N._jQueryInterface.call(g(e),"toggle")}).on(O.FOCUS_BLUR_DATA_API,w,function(t){var e=g(t.target).closest(S)[0];g(e).toggleClass(C,/^focus(in)?$/.test(t.type))}),g.fn[m]=N._jQueryInterface,g.fn[m].Constructor=N,g.fn[m].noConflict=function(){return g.fn[m]=y,N._jQueryInterface},N),x=function(t){var e="carousel",n="bs.carousel",o="."+n,s=t.fn[e],a={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},l={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},c="next",h="prev",f="left",u="right",d={SLIDE:"slide"+o,SLID:"slid"+o,KEYDOWN:"keydown"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o,TOUCHEND:"touchend"+o,LOAD_DATA_API:"load"+o+".data-api",CLICK_DATA_API:"click"+o+".data-api"},p="carousel",g="active",m="slide",_="carousel-item-right",v="carousel-item-left",E="carousel-item-next",y="carousel-item-prev",b={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},T=function(){function s(e,n){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(n),this._element=t(e)[0],this._indicatorsElement=t(this._element).find(b.INDICATORS)[0],this._addEventListeners()}var T=s.prototype;return T.next=function(){this._isSliding||this._slide(c)},T.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},T.prev=function(){this._isSliding||this._slide(h)},T.pause=function(e){e||(this._isPaused=!0),t(this._element).find(b.NEXT_PREV)[0]&&k.supportsTransitionEnd()&&(k.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},T.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},T.to=function(e){var n=this;this._activeElement=t(this._element).find(b.ACTIVE_ITEM)[0];var i=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)t(this._element).one(d.SLID,function(){return n.to(e)});else{if(i===e)return this.pause(),void this.cycle();var r=e>i?c:h;this._slide(r,this._items[e])}},T.dispose=function(){t(this._element).off(o),t.removeData(this._element,n),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},T._getConfig=function(t){return t=r({},a,t),k.typeCheckConfig(e,t,l),t},T._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(d.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&(t(this._element).on(d.MOUSEENTER,function(t){return e.pause(t)}).on(d.MOUSELEAVE,function(t){return e.cycle(t)}),"ontouchstart"in document.documentElement&&t(this._element).on(d.TOUCHEND,function(){e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval)}))},T._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},T._getItemIndex=function(e){return this._items=t.makeArray(t(e).parent().find(b.ITEM)),this._items.indexOf(e)},T._getItemByDirection=function(t,e){var n=t===c,i=t===h,r=this._getItemIndex(e),o=this._items.length-1;if((i&&0===r||n&&r===o)&&!this._config.wrap)return e;var s=(r+(t===h?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},T._triggerSlideEvent=function(e,n){var i=this._getItemIndex(e),r=this._getItemIndex(t(this._element).find(b.ACTIVE_ITEM)[0]),o=t.Event(d.SLIDE,{relatedTarget:e,direction:n,from:r,to:i});return t(this._element).trigger(o),o},T._setActiveIndicatorElement=function(e){if(this._indicatorsElement){t(this._indicatorsElement).find(b.ACTIVE).removeClass(g);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&t(n).addClass(g)}},T._slide=function(e,n){var i,r,o,s=this,a=t(this._element).find(b.ACTIVE_ITEM)[0],l=this._getItemIndex(a),h=n||a&&this._getItemByDirection(e,a),p=this._getItemIndex(h),T=Boolean(this._interval);if(e===c?(i=v,r=E,o=f):(i=_,r=y,o=u),h&&t(h).hasClass(g))this._isSliding=!1;else if(!this._triggerSlideEvent(h,o).isDefaultPrevented()&&a&&h){this._isSliding=!0,T&&this.pause(),this._setActiveIndicatorElement(h);var C=t.Event(d.SLID,{relatedTarget:h,direction:o,from:l,to:p});k.supportsTransitionEnd()&&t(this._element).hasClass(m)?(t(h).addClass(r),k.reflow(h),t(a).addClass(i),t(h).addClass(i),t(a).one(k.TRANSITION_END,function(){t(h).removeClass(i+" "+r).addClass(g),t(a).removeClass(g+" "+r+" "+i),s._isSliding=!1,setTimeout(function(){return t(s._element).trigger(C)},0)}).emulateTransitionEnd(600)):(t(a).removeClass(g),t(h).addClass(g),this._isSliding=!1,t(this._element).trigger(C)),T&&this.cycle()}},s._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n),o=r({},a,t(this).data());"object"==typeof e&&(o=r({},o,e));var l="string"==typeof e?e:o.slide;if(i||(i=new s(this,o),t(this).data(n,i)),"number"==typeof e)i.to(e);else if("string"==typeof l){if("undefined"==typeof i[l])throw new TypeError('No method named "'+l+'"');i[l]()}else o.interval&&(i.pause(),i.cycle())})},s._dataApiClickHandler=function(e){var i=k.getSelectorFromElement(this);if(i){var o=t(i)[0];if(o&&t(o).hasClass(p)){var a=r({},t(o).data(),t(this).data()),l=this.getAttribute("data-slide-to");l&&(a.interval=!1),s._jQueryInterface.call(t(o),a),l&&t(o).data(n).to(l),e.preventDefault()}}},i(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return a}}]),s}();return t(document).on(d.CLICK_DATA_API,b.DATA_SLIDE,T._dataApiClickHandler),t(window).on(d.LOAD_DATA_API,function(){t(b.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]=s,T._jQueryInterface},T}(e),R=function(t){var e="collapse",n="bs.collapse",o="."+n,s=t.fn[e],a={toggle:!0,parent:""},l={toggle:"boolean",parent:"(string|element)"},c={SHOW:"show"+o,SHOWN:"shown"+o,HIDE:"hide"+o,HIDDEN:"hidden"+o,CLICK_DATA_API:"click"+o+".data-api"},h="show",f="collapse",u="collapsing",d="collapsed",p="width",g="height",m={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},_=function(){function o(e,n){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(n),this._triggerArray=t.makeArray(t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var i=t(m.DATA_TOGGLE),r=0;r<i.length;r++){var o=i[r],s=k.getSelectorFromElement(o);null!==s&&t(s).filter(e).length>0&&(this._selector=s,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var s=o.prototype;return s.toggle=function(){t(this._element).hasClass(h)?this.hide():this.show()},s.show=function(){var e,i,r=this;if(!this._isTransitioning&&!t(this._element).hasClass(h)&&(this._parent&&0===(e=t.makeArray(t(this._parent).find(m.ACTIVES).filter('[data-parent="'+this._config.parent+'"]'))).length&&(e=null),!(e&&(i=t(e).not(this._selector).data(n))&&i._isTransitioning))){var s=t.Event(c.SHOW);if(t(this._element).trigger(s),!s.isDefaultPrevented()){e&&(o._jQueryInterface.call(t(e).not(this._selector),"hide"),i||t(e).data(n,null));var a=this._getDimension();t(this._element).removeClass(f).addClass(u),this._element.style[a]=0,this._triggerArray.length>0&&t(this._triggerArray).removeClass(d).attr("aria-expanded",!0),this.setTransitioning(!0);var l=function(){t(r._element).removeClass(u).addClass(f).addClass(h),r._element.style[a]="",r.setTransitioning(!1),t(r._element).trigger(c.SHOWN)};if(k.supportsTransitionEnd()){var p="scroll"+(a[0].toUpperCase()+a.slice(1));t(this._element).one(k.TRANSITION_END,l).emulateTransitionEnd(600),this._element.style[a]=this._element[p]+"px"}else l()}}},s.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(h)){var n=t.Event(c.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension();if(this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",k.reflow(this._element),t(this._element).addClass(u).removeClass(f).removeClass(h),this._triggerArray.length>0)for(var r=0;r<this._triggerArray.length;r++){var o=this._triggerArray[r],s=k.getSelectorFromElement(o);if(null!==s)t(s).hasClass(h)||t(o).addClass(d).attr("aria-expanded",!1)}this.setTransitioning(!0);var a=function(){e.setTransitioning(!1),t(e._element).removeClass(u).addClass(f).trigger(c.HIDDEN)};this._element.style[i]="",k.supportsTransitionEnd()?t(this._element).one(k.TRANSITION_END,a).emulateTransitionEnd(600):a()}}},s.setTransitioning=function(t){this._isTransitioning=t},s.dispose=function(){t.removeData(this._element,n),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},s._getConfig=function(t){return(t=r({},a,t)).toggle=Boolean(t.toggle),k.typeCheckConfig(e,t,l),t},s._getDimension=function(){return t(this._element).hasClass(p)?p:g},s._getParent=function(){var e=this,n=null;k.isElement(this._config.parent)?(n=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=t(this._config.parent)[0];var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return t(n).find(i).each(function(t,n){e._addAriaAndCollapsedClass(o._getTargetFromElement(n),[n])}),n},s._addAriaAndCollapsedClass=function(e,n){if(e){var i=t(e).hasClass(h);n.length>0&&t(n).toggleClass(d,!i).attr("aria-expanded",i)}},o._getTargetFromElement=function(e){var n=k.getSelectorFromElement(e);return n?t(n)[0]:null},o._jQueryInterface=function(e){return this.each(function(){var i=t(this),s=i.data(n),l=r({},a,i.data(),"object"==typeof e&&e);if(!s&&l.toggle&&/show|hide/.test(e)&&(l.toggle=!1),s||(s=new o(this,l),i.data(n,s)),"string"==typeof e){if("undefined"==typeof s[e])throw new TypeError('No method named "'+e+'"');s[e]()}})},i(o,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return a}}]),o}();return t(document).on(c.CLICK_DATA_API,m.DATA_TOGGLE,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var i=t(this),r=k.getSelectorFromElement(this);t(r).each(function(){var e=t(this),r=e.data(n)?"toggle":i.data();_._jQueryInterface.call(e,r)})}),t.fn[e]=_._jQueryInterface,t.fn[e].Constructor=_,t.fn[e].noConflict=function(){return t.fn[e]=s,_._jQueryInterface},_}(e),j="undefined"!=typeof window&&"undefined"!=typeof document,H=["Edge","Trident","Firefox"],M=0,W=0;W<H.length;W+=1)if(j&&navigator.userAgent.indexOf(H[W])>=0){M=1;break}var U=j&&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()},M))}};function B(t){return t&&"[object Function]"==={}.toString.call(t)}function F(t,e){if(1!==t.nodeType)return[];var n=getComputedStyle(t,null);return e?n[e]:n}function K(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function V(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=F(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/(auto|scroll)/.test(n+r+i)?t:V(K(t))}function Q(t){var e=t&&t.offsetParent,n=e&&e.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(e.nodeName)&&"static"===F(e,"position")?Q(e):e:t?t.ownerDocument.documentElement:document.documentElement}function Y(t){return null!==t.parentNode?Y(t.parentNode):t}function G(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var s,a,l=o.commonAncestorContainer;if(t!==l&&e!==l||i.contains(r))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&Q(s.firstElementChild)!==s?Q(l):l;var c=Y(t);return c.host?G(c.host,e):G(t,Y(e).host)}function q(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var i=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||i)[e]}return t[e]}function z(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+i+"Width"],10)}var X=void 0,Z=function(){return void 0===X&&(X=-1!==navigator.appVersion.indexOf("MSIE 10")),X};function J(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],Z()?n["offset"+t]+i["margin"+("Height"===t?"Top":"Left")]+i["margin"+("Height"===t?"Bottom":"Right")]:0)}function $(){var t=document.body,e=document.documentElement,n=Z()&&getComputedStyle(e);return{height:J("Height",t,e,n),width:J("Width",t,e,n)}}var tt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},et=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),nt=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},it=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function rt(t){return it({},t,{right:t.left+t.width,bottom:t.top+t.height})}function ot(t){var e={};if(Z())try{e=t.getBoundingClientRect();var n=q(t,"top"),i=q(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}catch(t){}else e=t.getBoundingClientRect();var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?$():{},s=o.width||t.clientWidth||r.right-r.left,a=o.height||t.clientHeight||r.bottom-r.top,l=t.offsetWidth-s,c=t.offsetHeight-a;if(l||c){var h=F(t);l-=z(h,"x"),c-=z(h,"y"),r.width-=l,r.height-=c}return rt(r)}function st(t,e){var n=Z(),i="HTML"===e.nodeName,r=ot(t),o=ot(e),s=V(t),a=F(e),l=parseFloat(a.borderTopWidth,10),c=parseFloat(a.borderLeftWidth,10),h=rt({top:r.top-o.top-l,left:r.left-o.left-c,width:r.width,height:r.height});if(h.marginTop=0,h.marginLeft=0,!n&&i){var f=parseFloat(a.marginTop,10),u=parseFloat(a.marginLeft,10);h.top-=l-f,h.bottom-=l-f,h.left-=c-u,h.right-=c-u,h.marginTop=f,h.marginLeft=u}return(n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(h=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=q(e,"top"),r=q(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}(h,e)),h}function at(t,e,n,i){var r,o,s,a,l,c,h,f={top:0,left:0},u=G(t,e);if("viewport"===i)o=(r=u).ownerDocument.documentElement,s=st(r,o),a=Math.max(o.clientWidth,window.innerWidth||0),l=Math.max(o.clientHeight,window.innerHeight||0),c=q(o),h=q(o,"left"),f=rt({top:c-s.top+s.marginTop,left:h-s.left+s.marginLeft,width:a,height:l});else{var d=void 0;"scrollParent"===i?"BODY"===(d=V(K(e))).nodeName&&(d=t.ownerDocument.documentElement):d="window"===i?t.ownerDocument.documentElement:i;var p=st(d,u);if("HTML"!==d.nodeName||function t(e){var n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===F(e,"position")||t(K(e)))}(u))f=p;else{var g=$(),m=g.height,_=g.width;f.top+=p.top-p.marginTop,f.bottom=m+p.top,f.left+=p.left-p.marginLeft,f.right=_+p.left}}return f.left+=n,f.top+=n,f.right-=n,f.bottom-=n,f}function lt(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=at(n,i,o,r),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map(function(t){return it({key:t},a[t],{area:(e=a[t],e.width*e.height)});var e}).sort(function(t,e){return e.area-t.area}),c=l.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),h=c.length>0?c[0].key:l[0].key,f=t.split("-")[1];return h+(f?"-"+f:"")}function ct(t,e,n){return st(n,G(e,n))}function ht(t){var e=getComputedStyle(t),n=parseFloat(e.marginTop)+parseFloat(e.marginBottom),i=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function ft(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 ut(t,e,n){n=n.split("-")[0];var i=ht(t),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",a=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return r[s]=e[s]+e[l]/2-i[l]/2,r[a]=n===a?e[a]-i[c]:e[ft(a)],r}function dt(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function pt(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=dt(t,function(t){return t[e]===n});return t.indexOf(i)}(t,"name",n))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&B(n)&&(e.offsets.popper=rt(e.offsets.popper),e.offsets.reference=rt(e.offsets.reference),e=n(e,t))}),e}function gt(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function mt(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length-1;i++){var r=e[i],o=r?""+r+n:t;if("undefined"!=typeof document.body.style[o])return o}return null}function _t(t){var e=t.ownerDocument;return e?e.defaultView:window}function vt(t,e,n,i){n.updateBound=i,_t(t).addEventListener("resize",n.updateBound,{passive:!0});var r=V(t);return function t(e,n,i,r){var o="BODY"===e.nodeName,s=o?e.ownerDocument.defaultView:e;s.addEventListener(n,i,{passive:!0}),o||t(V(s.parentNode),n,i,r),r.push(s)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function Et(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,_t(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 yt(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function bt(t,e){Object.keys(e).forEach(function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&yt(e[n])&&(i="px"),t.style[n]=e[n]+i})}function Tt(t,e,n){var i=dt(t,function(t){return t.name===e}),r=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});if(!r){var o="`"+e+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}var Ct=["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"],wt=Ct.slice(3);function It(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=wt.indexOf(t),i=wt.slice(n+1).concat(wt.slice(0,n));return e?i.reverse():i}var At={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Dt(t,e,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),s=t.split(/(\+|\-)/).map(function(t){return t.trim()}),a=s.indexOf(dt(s,function(t){return-1!==t.search(/,|\s/)}));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return(c=c.map(function(t,i){var r=(1===i?!o:o)?"height":"width",s=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,n,i){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],s=r[2];if(!o)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=i}return rt(a)[e]/100*o}if("vh"===s||"vw"===s)return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(t,r,e,n)})})).forEach(function(t,e){t.forEach(function(n,i){yt(n)&&(r[e]+=n*("-"===t[i-1]?-1:1))})}),r}var St={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var r=t.offsets,o=r.reference,s=r.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",h={start:nt({},l,o[l]),end:nt({},l,o[l]+o[c]-s[c])};t.offsets.popper=it({},s,h[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,r=t.offsets,o=r.popper,s=r.reference,a=i.split("-")[0],l=void 0;return l=yt(+n)?[+n,0]:Dt(n,o,s,a),"left"===a?(o.top+=l[0],o.left-=l[1]):"right"===a?(o.top+=l[0],o.left+=l[1]):"top"===a?(o.left+=l[0],o.top-=l[1]):"bottom"===a&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||Q(t.instance.popper);t.instance.reference===n&&(n=Q(n));var i=at(t.instance.popper,t.instance.reference,e.padding,n);e.boundaries=i;var r=e.priority,o=t.offsets.popper,s={primary:function(t){var n=o[t];return o[t]<i[t]&&!e.escapeWithReference&&(n=Math.max(o[t],i[t])),nt({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=o[n];return o[t]>i[t]&&!e.escapeWithReference&&(r=Math.min(o[n],i[t]-("right"===t?o.width:o.height))),nt({},n,r)}};return r.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";o=it({},o,s[e](t))}),t.offsets.popper=o,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,r=t.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<o(i[l])&&(t.offsets.popper[l]=o(i[l])-n[c]),n[l]>o(i[a])&&(t.offsets.popper[l]=o(i[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Tt(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var r=t.placement.split("-")[0],o=t.offsets,s=o.popper,a=o.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",h=l?"Top":"Left",f=h.toLowerCase(),u=l?"left":"top",d=l?"bottom":"right",p=ht(i)[c];a[d]-p<s[f]&&(t.offsets.popper[f]-=s[f]-(a[d]-p)),a[f]+p>s[d]&&(t.offsets.popper[f]+=a[f]+p-s[d]),t.offsets.popper=rt(t.offsets.popper);var g=a[f]+a[c]/2-p/2,m=F(t.instance.popper),_=parseFloat(m["margin"+h],10),v=parseFloat(m["border"+h+"Width"],10),E=g-t.offsets.popper[f]-_-v;return E=Math.max(Math.min(s[c]-p,E),0),t.arrowElement=i,t.offsets.arrow=(nt(n={},f,Math.round(E)),nt(n,u,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(gt(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=at(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),i=t.placement.split("-")[0],r=ft(i),o=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case At.FLIP:s=[i,r];break;case At.CLOCKWISE:s=It(i);break;case At.COUNTERCLOCKWISE:s=It(i,!0);break;default:s=e.behavior}return s.forEach(function(a,l){if(i!==a||s.length===l+1)return t;i=t.placement.split("-")[0],r=ft(i);var c,h=t.offsets.popper,f=t.offsets.reference,u=Math.floor,d="left"===i&&u(h.right)>u(f.left)||"right"===i&&u(h.left)<u(f.right)||"top"===i&&u(h.bottom)>u(f.top)||"bottom"===i&&u(h.top)<u(f.bottom),p=u(h.left)<u(n.left),g=u(h.right)>u(n.right),m=u(h.top)<u(n.top),_=u(h.bottom)>u(n.bottom),v="left"===i&&p||"right"===i&&g||"top"===i&&m||"bottom"===i&&_,E=-1!==["top","bottom"].indexOf(i),y=!!e.flipVariations&&(E&&"start"===o&&p||E&&"end"===o&&g||!E&&"start"===o&&m||!E&&"end"===o&&_);(d||v||y)&&(t.flipped=!0,(d||v)&&(i=s[l+1]),y&&(o="end"===(c=o)?"start":"start"===c?"end":c),t.placement=i+(o?"-"+o:""),t.offsets.popper=it({},t.offsets.popper,ut(t.instance.popper,t.offsets.reference,t.placement)),t=pt(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,r=i.popper,o=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=o[n]-(a?r[s?"width":"height"]:0),t.placement=ft(e),t.offsets.popper=rt(r),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Tt(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=dt(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,i=e.y,r=t.offsets.popper,o=dt(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==o?o:e.gpuAcceleration,a=ot(Q(t.instance.popper)),l={position:r.position},c={left:Math.floor(r.left),top:Math.floor(r.top),bottom:Math.floor(r.bottom),right:Math.floor(r.right)},h="bottom"===n?"top":"bottom",f="right"===i?"left":"right",u=mt("transform"),d=void 0,p=void 0;if(p="bottom"===h?-a.height+c.bottom:c.top,d="right"===f?-a.width+c.right:c.left,s&&u)l[u]="translate3d("+d+"px, "+p+"px, 0)",l[h]=0,l[f]=0,l.willChange="transform";else{var g="bottom"===h?-1:1,m="right"===f?-1:1;l[h]=p*g,l[f]=d*m,l.willChange=h+", "+f}var _={"x-placement":t.placement};return t.attributes=it({},_,t.attributes),t.styles=it({},l,t.styles),t.arrowStyles=it({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return bt(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&&bt(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,r){var o=ct(0,e,t),s=lt(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",s),bt(e,{position:"absolute"}),n},gpuAcceleration:void 0}}},Ot=function(){function t(e,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};tt(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=U(this.update.bind(this)),this.options=it({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(it({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){i.options.modifiers[e]=it({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return it({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&B(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return et(t,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=ct(this.state,this.popper,this.reference),t.placement=lt(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=ut(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position="absolute",t=pt(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,gt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[mt("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=vt(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return Et.call(this)}}]),t}();Ot.Utils=("undefined"!=typeof window?window:global).PopperUtils,Ot.placements=Ct,Ot.Defaults=St;var Nt=function(t){var e="dropdown",n="bs.dropdown",o="."+n,s=t.fn[e],a=new RegExp("38|40|27"),l={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,CLICK:"click"+o,CLICK_DATA_API:"click"+o+".data-api",KEYDOWN_DATA_API:"keydown"+o+".data-api",KEYUP_DATA_API:"keyup"+o+".data-api"},c="disabled",h="show",f="dropup",u="dropright",d="dropleft",p="dropdown-menu-right",g="dropdown-menu-left",m="position-static",_='[data-toggle="dropdown"]',v=".dropdown form",E=".dropdown-menu",y=".navbar-nav",b=".dropdown-menu .dropdown-item:not(.disabled)",T="top-start",C="top-end",w="bottom-start",I="bottom-end",A="right-start",D="left-start",S={offset:0,flip:!0,boundary:"scrollParent"},O={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)"},N=function(){function s(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var v=s.prototype;return v.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass(c)){var e=s._getParentFromElement(this._element),n=t(this._menu).hasClass(h);if(s._clearMenus(),!n){var i={relatedTarget:this._element},r=t.Event(l.SHOW,i);if(t(e).trigger(r),!r.isDefaultPrevented()){if(!this._inNavbar){if("undefined"==typeof Ot)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var o=this._element;t(e).hasClass(f)&&(t(this._menu).hasClass(g)||t(this._menu).hasClass(p))&&(o=e),"scrollParent"!==this._config.boundary&&t(e).addClass(m),this._popper=new Ot(o,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(e).closest(y).length&&t("body").children().on("mouseover",null,t.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t(this._menu).toggleClass(h),t(e).toggleClass(h).trigger(t.Event(l.SHOWN,i))}}}},v.dispose=function(){t.removeData(this._element,n),t(this._element).off(o),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},v.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},v._addEventListeners=function(){var e=this;t(this._element).on(l.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},v._getConfig=function(n){return n=r({},this.constructor.Default,t(this._element).data(),n),k.typeCheckConfig(e,n,this.constructor.DefaultType),n},v._getMenuElement=function(){if(!this._menu){var e=s._getParentFromElement(this._element);this._menu=t(e).find(E)[0]}return this._menu},v._getPlacement=function(){var e=t(this._element).parent(),n=w;return e.hasClass(f)?(n=T,t(this._menu).hasClass(p)&&(n=C)):e.hasClass(u)?n=A:e.hasClass(d)?n=D:t(this._menu).hasClass(p)&&(n=I),n},v._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},v._getPopperConfig=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t._config.offset(e.offsets)||{}),e}:e.offset=this._config.offset,{placement:this._getPlacement(),modifiers:{offset:e,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}}},s._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n);if(i||(i=new s(this,"object"==typeof e?e:null),t(this).data(n,i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},s._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var i=t.makeArray(t(_)),r=0;r<i.length;r++){var o=s._getParentFromElement(i[r]),a=t(i[r]).data(n),c={relatedTarget:i[r]};if(a){var f=a._menu;if(t(o).hasClass(h)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&t.contains(o,e.target))){var u=t.Event(l.HIDE,c);t(o).trigger(u),u.isDefaultPrevented()||("ontouchstart"in document.documentElement&&t("body").children().off("mouseover",null,t.noop),i[r].setAttribute("aria-expanded","false"),t(f).removeClass(h),t(o).removeClass(h).trigger(t.Event(l.HIDDEN,c)))}}}},s._getParentFromElement=function(e){var n,i=k.getSelectorFromElement(e);return i&&(n=t(i)[0]),n||e.parentNode},s._dataApiKeydownHandler=function(e){if((/input|textarea/i.test(e.target.tagName)?!(32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||t(e.target).closest(E).length)):a.test(e.which))&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!t(this).hasClass(c))){var n=s._getParentFromElement(this),i=t(n).hasClass(h);if((i||27===e.which&&32===e.which)&&(!i||27!==e.which&&32!==e.which)){var r=t(n).find(b).get();if(0!==r.length){var o=r.indexOf(e.target);38===e.which&&o>0&&o--,40===e.which&&o<r.length-1&&o++,o<0&&(o=0),r[o].focus()}}else{if(27===e.which){var l=t(n).find(_)[0];t(l).trigger("focus")}t(this).trigger("click")}}},i(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return S}},{key:"DefaultType",get:function(){return O}}]),s}();return t(document).on(l.KEYDOWN_DATA_API,_,N._dataApiKeydownHandler).on(l.KEYDOWN_DATA_API,E,N._dataApiKeydownHandler).on(l.CLICK_DATA_API+" "+l.KEYUP_DATA_API,N._clearMenus).on(l.CLICK_DATA_API,_,function(e){e.preventDefault(),e.stopPropagation(),N._jQueryInterface.call(t(this),"toggle")}).on(l.CLICK_DATA_API,v,function(t){t.stopPropagation()}),t.fn[e]=N._jQueryInterface,t.fn[e].Constructor=N,t.fn[e].noConflict=function(){return t.fn[e]=s,N._jQueryInterface},N}(e),kt=function(t){var e="bs.modal",n="."+e,o=t.fn.modal,s={backdrop:!0,keyboard:!0,focus:!0,show:!0},a={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},l={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,FOCUSIN:"focusin"+n,RESIZE:"resize"+n,CLICK_DISMISS:"click.dismiss"+n,KEYDOWN_DISMISS:"keydown.dismiss"+n,MOUSEUP_DISMISS:"mouseup.dismiss"+n,MOUSEDOWN_DISMISS:"mousedown.dismiss"+n,CLICK_DATA_API:"click.bs.modal.data-api"},c="modal-scrollbar-measure",h="modal-backdrop",f="modal-open",u="fade",d="show",p={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},g=function(){function o(e,n){this._config=this._getConfig(n),this._element=e,this._dialog=t(e).find(p.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}var g=o.prototype;return g.toggle=function(t){return this._isShown?this.hide():this.show(t)},g.show=function(e){var n=this;if(!this._isTransitioning&&!this._isShown){k.supportsTransitionEnd()&&t(this._element).hasClass(u)&&(this._isTransitioning=!0);var i=t.Event(l.SHOW,{relatedTarget:e});t(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),t(document.body).addClass(f),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(l.CLICK_DISMISS,p.DATA_DISMISS,function(t){return n.hide(t)}),t(this._dialog).on(l.MOUSEDOWN_DISMISS,function(){t(n._element).one(l.MOUSEUP_DISMISS,function(e){t(e.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return n._showElement(e)}))}},g.hide=function(e){var n=this;if(e&&e.preventDefault(),!this._isTransitioning&&this._isShown){var i=t.Event(l.HIDE);if(t(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var r=k.supportsTransitionEnd()&&t(this._element).hasClass(u);r&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t(document).off(l.FOCUSIN),t(this._element).removeClass(d),t(this._element).off(l.CLICK_DISMISS),t(this._dialog).off(l.MOUSEDOWN_DISMISS),r?t(this._element).one(k.TRANSITION_END,function(t){return n._hideModal(t)}).emulateTransitionEnd(300):this._hideModal()}}},g.dispose=function(){t.removeData(this._element,e),t(window,document,this._element,this._backdrop).off(n),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},g.handleUpdate=function(){this._adjustDialog()},g._getConfig=function(t){return t=r({},s,t),k.typeCheckConfig("modal",t,a),t},g._showElement=function(e){var n=this,i=k.supportsTransitionEnd()&&t(this._element).hasClass(u);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,i&&k.reflow(this._element),t(this._element).addClass(d),this._config.focus&&this._enforceFocus();var r=t.Event(l.SHOWN,{relatedTarget:e}),o=function(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,t(n._element).trigger(r)};i?t(this._dialog).one(k.TRANSITION_END,o).emulateTransitionEnd(300):o()},g._enforceFocus=function(){var e=this;t(document).off(l.FOCUSIN).on(l.FOCUSIN,function(n){document!==n.target&&e._element!==n.target&&0===t(e._element).has(n.target).length&&e._element.focus()})},g._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?t(this._element).on(l.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||t(this._element).off(l.KEYDOWN_DISMISS)},g._setResizeEvent=function(){var e=this;this._isShown?t(window).on(l.RESIZE,function(t){return e.handleUpdate(t)}):t(window).off(l.RESIZE)},g._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){t(document.body).removeClass(f),e._resetAdjustments(),e._resetScrollbar(),t(e._element).trigger(l.HIDDEN)})},g._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},g._showBackdrop=function(e){var n=this,i=t(this._element).hasClass(u)?u:"";if(this._isShown&&this._config.backdrop){var r=k.supportsTransitionEnd()&&i;if(this._backdrop=document.createElement("div"),this._backdrop.className=h,i&&t(this._backdrop).addClass(i),t(this._backdrop).appendTo(document.body),t(this._element).on(l.CLICK_DISMISS,function(t){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide())}),r&&k.reflow(this._backdrop),t(this._backdrop).addClass(d),!e)return;if(!r)return void e();t(this._backdrop).one(k.TRANSITION_END,e).emulateTransitionEnd(150)}else if(!this._isShown&&this._backdrop){t(this._backdrop).removeClass(d);var o=function(){n._removeBackdrop(),e&&e()};k.supportsTransitionEnd()&&t(this._element).hasClass(u)?t(this._backdrop).one(k.TRANSITION_END,o).emulateTransitionEnd(150):o()}else e&&e()},g._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},g._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},g._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},g._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){t(p.FIXED_CONTENT).each(function(n,i){var r=t(i)[0].style.paddingRight,o=t(i).css("padding-right");t(i).data("padding-right",r).css("padding-right",parseFloat(o)+e._scrollbarWidth+"px")}),t(p.STICKY_CONTENT).each(function(n,i){var r=t(i)[0].style.marginRight,o=t(i).css("margin-right");t(i).data("margin-right",r).css("margin-right",parseFloat(o)-e._scrollbarWidth+"px")}),t(p.NAVBAR_TOGGLER).each(function(n,i){var r=t(i)[0].style.marginRight,o=t(i).css("margin-right");t(i).data("margin-right",r).css("margin-right",parseFloat(o)+e._scrollbarWidth+"px")});var n=document.body.style.paddingRight,i=t("body").css("padding-right");t("body").data("padding-right",n).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}},g._resetScrollbar=function(){t(p.FIXED_CONTENT).each(function(e,n){var i=t(n).data("padding-right");"undefined"!=typeof i&&t(n).css("padding-right",i).removeData("padding-right")}),t(p.STICKY_CONTENT+", "+p.NAVBAR_TOGGLER).each(function(e,n){var i=t(n).data("margin-right");"undefined"!=typeof i&&t(n).css("margin-right",i).removeData("margin-right")});var e=t("body").data("padding-right");"undefined"!=typeof e&&t("body").css("padding-right",e).removeData("padding-right")},g._getScrollbarWidth=function(){var t=document.createElement("div");t.className=c,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},o._jQueryInterface=function(n,i){return this.each(function(){var s=t(this).data(e),a=r({},o.Default,t(this).data(),"object"==typeof n&&n);if(s||(s=new o(this,a),t(this).data(e,s)),"string"==typeof n){if("undefined"==typeof s[n])throw new TypeError('No method named "'+n+'"');s[n](i)}else a.show&&s.show(i)})},i(o,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return s}}]),o}();return t(document).on(l.CLICK_DATA_API,p.DATA_TOGGLE,function(n){var i,o=this,s=k.getSelectorFromElement(this);s&&(i=t(s)[0]);var a=t(i).data(e)?"toggle":r({},t(i).data(),t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||n.preventDefault();var c=t(i).one(l.SHOW,function(e){e.isDefaultPrevented()||c.one(l.HIDDEN,function(){t(o).is(":visible")&&o.focus()})});g._jQueryInterface.call(t(i),a,this)}),t.fn.modal=g._jQueryInterface,t.fn.modal.Constructor=g,t.fn.modal.noConflict=function(){return t.fn.modal=o,g._jQueryInterface},g}(e),Lt=function(t){var e="tooltip",n="bs.tooltip",o="."+n,s=t.fn[e],a=new RegExp("(^|\\s)bs-tooltip\\S+","g"),l={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)"},c={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},h={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"},f="show",u="out",d={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,INSERTED:"inserted"+o,CLICK:"click"+o,FOCUSIN:"focusin"+o,FOCUSOUT:"focusout"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o},p="fade",g="show",m=".tooltip-inner",_=".arrow",v="hover",E="focus",y="click",b="manual",T=function(){function s(t,e){if("undefined"==typeof Ot)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=s.prototype;return T.enable=function(){this._isEnabled=!0},T.disable=function(){this._isEnabled=!1},T.toggleEnabled=function(){this._isEnabled=!this._isEnabled},T.toggle=function(e){if(this._isEnabled)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(g))return void this._leave(null,this);this._enter(null,this)}},T.dispose=function(){clearTimeout(this._timeout),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,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},T.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){t(this.element).trigger(n);var i=t.contains(this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!i)return;var r=this.getTipElement(),o=k.getUID(this.constructor.NAME);r.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&t(r).addClass(p);var a="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,l=this._getAttachment(a);this.addAttachmentClass(l);var c=!1===this.config.container?document.body:t(this.config.container);t(r).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(r).appendTo(c),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Ot(this.element,r,{placement:l,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:_},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),t(r).addClass(g),"ontouchstart"in document.documentElement&&t("body").children().on("mouseover",null,t.noop);var h=function(){e.config.animation&&e._fixTransition();var n=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),n===u&&e._leave(null,e)};k.supportsTransitionEnd()&&t(this.tip).hasClass(p)?t(this.tip).one(k.TRANSITION_END,h).emulateTransitionEnd(s._TRANSITION_DURATION):h()}},T.hide=function(e){var n=this,i=this.getTipElement(),r=t.Event(this.constructor.Event.HIDE),o=function(){n._hoverState!==f&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()};t(this.element).trigger(r),r.isDefaultPrevented()||(t(i).removeClass(g),"ontouchstart"in document.documentElement&&t("body").children().off("mouseover",null,t.noop),this._activeTrigger[y]=!1,this._activeTrigger[E]=!1,this._activeTrigger[v]=!1,k.supportsTransitionEnd()&&t(this.tip).hasClass(p)?t(i).one(k.TRANSITION_END,o).emulateTransitionEnd(150):o(),this._hoverState="")},T.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},T.isWithContent=function(){return Boolean(this.getTitle())},T.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-tooltip-"+e)},T.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},T.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(m),this.getTitle()),e.removeClass(p+" "+g)},T.setElementContent=function(e,n){var i=this.config.html;"object"==typeof n&&(n.nodeType||n.jquery)?i?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text()):e[i?"html":"text"](n)},T.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},T._getAttachment=function(t){return c[t.toUpperCase()]},T._setListeners=function(){var e=this;this.config.trigger.split(" ").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!==b){var i=n===v?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,r=n===v?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(i,e.config.selector,function(t){return e._enter(t)}).on(r,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=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},T._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",""))},T._enter=function(e,n){var i=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(i))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusin"===e.type?E:v]=!0),t(n.getTipElement()).hasClass(g)||n._hoverState===f?n._hoverState=f:(clearTimeout(n._timeout),n._hoverState=f,n.config.delay&&n.config.delay.show?n._timeout=setTimeout(function(){n._hoverState===f&&n.show()},n.config.delay.show):n.show())},T._leave=function(e,n){var i=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(i))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusout"===e.type?E:v]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=u,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout(function(){n._hoverState===u&&n.hide()},n.config.delay.hide):n.hide())},T._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},T._getConfig=function(n){return"number"==typeof(n=r({},this.constructor.Default,t(this.element).data(),n)).delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),k.typeCheckConfig(e,n,this.constructor.DefaultType),n},T._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},T._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(a);null!==n&&n.length>0&&e.removeClass(n.join(""))},T._handlePopperPlacementChange=function(t){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},T._fixTransition=function(){var e=this.getTipElement(),n=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass(p),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},s._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n),r="object"==typeof e&&e;if((i||!/dispose|hide/.test(e))&&(i||(i=new s(this,r),t(this).data(n,i)),"string"==typeof e)){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},i(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return h}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return n}},{key:"Event",get:function(){return d}},{key:"EVENT_KEY",get:function(){return o}},{key:"DefaultType",get:function(){return l}}]),s}();return t.fn[e]=T._jQueryInterface,t.fn[e].Constructor=T,t.fn[e].noConflict=function(){return t.fn[e]=s,T._jQueryInterface},T}(e),Pt=function(t){var e="popover",n="bs.popover",o="."+n,s=t.fn[e],a=new RegExp("(^|\\s)bs-popover\\S+","g"),l=r({},Lt.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),c=r({},Lt.DefaultType,{content:"(string|element|function)"}),h="fade",f="show",u=".popover-header",d=".popover-body",p={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,INSERTED:"inserted"+o,CLICK:"click"+o,FOCUSIN:"focusin"+o,FOCUSOUT:"focusout"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o},g=function(r){var s,g;function m(){return r.apply(this,arguments)||this}g=r,(s=m).prototype=Object.create(g.prototype),s.prototype.constructor=s,s.__proto__=g;var _=m.prototype;return _.isWithContent=function(){return this.getTitle()||this._getContent()},_.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-popover-"+e)},_.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},_.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(u),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(e.find(d),n),e.removeClass(h+" "+f)},_._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},_._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(a);null!==n&&n.length>0&&e.removeClass(n.join(""))},m._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n),r="object"==typeof e?e:null;if((i||!/destroy|hide/.test(e))&&(i||(i=new m(this,r),t(this).data(n,i)),"string"==typeof e)){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},i(m,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return l}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return n}},{key:"Event",get:function(){return p}},{key:"EVENT_KEY",get:function(){return o}},{key:"DefaultType",get:function(){return c}}]),m}(Lt);return t.fn[e]=g._jQueryInterface,t.fn[e].Constructor=g,t.fn[e].noConflict=function(){return t.fn[e]=s,g._jQueryInterface},g}(e),xt=function(t){var e="scrollspy",n="bs.scrollspy",o="."+n,s=t.fn[e],a={offset:10,method:"auto",target:""},l={offset:"number",method:"string",target:"(string|element)"},c={ACTIVATE:"activate"+o,SCROLL:"scroll"+o,LOAD_DATA_API:"load"+o+".data-api"},h="dropdown-item",f="active",u={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},d="offset",p="position",g=function(){function s(e,n){var i=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(n),this._selector=this._config.target+" "+u.NAV_LINKS+","+this._config.target+" "+u.LIST_ITEMS+","+this._config.target+" "+u.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(c.SCROLL,function(t){return i._process(t)}),this.refresh(),this._process()}var g=s.prototype;return g.refresh=function(){var e=this,n=this._scrollElement===this._scrollElement.window?d:p,i="auto"===this._config.method?n:this._config.method,r=i===p?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),t.makeArray(t(this._selector)).map(function(e){var n,o=k.getSelectorFromElement(e);if(o&&(n=t(o)[0]),n){var s=n.getBoundingClientRect();if(s.width||s.height)return[t(n)[i]().top+r,o]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},g.dispose=function(){t.removeData(this._element,n),t(this._scrollElement).off(o),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},g._getConfig=function(n){if("string"!=typeof(n=r({},a,n)).target){var i=t(n.target).attr("id");i||(i=k.getUID(e),t(n.target).attr("id",i)),n.target="#"+i}return k.typeCheckConfig(e,n,l),n},g._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},g._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},g._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},g._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;){this._activeTarget!==this._targets[r]&&t>=this._offsets[r]&&("undefined"==typeof this._offsets[r+1]||t<this._offsets[r+1])&&this._activate(this._targets[r])}}},g._activate=function(e){this._activeTarget=e,this._clear();var n=this._selector.split(",");n=n.map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'});var i=t(n.join(","));i.hasClass(h)?(i.closest(u.DROPDOWN).find(u.DROPDOWN_TOGGLE).addClass(f),i.addClass(f)):(i.addClass(f),i.parents(u.NAV_LIST_GROUP).prev(u.NAV_LINKS+", "+u.LIST_ITEMS).addClass(f),i.parents(u.NAV_LIST_GROUP).prev(u.NAV_ITEMS).children(u.NAV_LINKS).addClass(f)),t(this._scrollElement).trigger(c.ACTIVATE,{relatedTarget:e})},g._clear=function(){t(this._selector).filter(u.ACTIVE).removeClass(f)},s._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n);if(i||(i=new s(this,"object"==typeof e&&e),t(this).data(n,i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},i(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return a}}]),s}();return t(window).on(c.LOAD_DATA_API,function(){for(var e=t.makeArray(t(u.DATA_SPY)),n=e.length;n--;){var i=t(e[n]);g._jQueryInterface.call(i,i.data())}}),t.fn[e]=g._jQueryInterface,t.fn[e].Constructor=g,t.fn[e].noConflict=function(){return t.fn[e]=s,g._jQueryInterface},g}(e),Rt=function(t){var e=".bs.tab",n=t.fn.tab,r={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,CLICK_DATA_API:"click.bs.tab.data-api"},o="dropdown-menu",s="active",a="disabled",l="fade",c="show",h=".dropdown",f=".nav, .list-group",u=".active",d="> li > .active",p='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',g=".dropdown-toggle",m="> .dropdown-menu .active",_=function(){function e(t){this._element=t}var n=e.prototype;return n.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(s)||t(this._element).hasClass(a))){var n,i,o=t(this._element).closest(f)[0],l=k.getSelectorFromElement(this._element);if(o){var c="UL"===o.nodeName?d:u;i=(i=t.makeArray(t(o).find(c)))[i.length-1]}var h=t.Event(r.HIDE,{relatedTarget:this._element}),p=t.Event(r.SHOW,{relatedTarget:i});if(i&&t(i).trigger(h),t(this._element).trigger(p),!p.isDefaultPrevented()&&!h.isDefaultPrevented()){l&&(n=t(l)[0]),this._activate(this._element,o);var g=function(){var n=t.Event(r.HIDDEN,{relatedTarget:e._element}),o=t.Event(r.SHOWN,{relatedTarget:i});t(i).trigger(n),t(e._element).trigger(o)};n?this._activate(n,n.parentNode,g):g()}}},n.dispose=function(){t.removeData(this._element,"bs.tab"),this._element=null},n._activate=function(e,n,i){var r=this,o=("UL"===n.nodeName?t(n).find(d):t(n).children(u))[0],s=i&&k.supportsTransitionEnd()&&o&&t(o).hasClass(l),a=function(){return r._transitionComplete(e,o,i)};o&&s?t(o).one(k.TRANSITION_END,a).emulateTransitionEnd(150):a()},n._transitionComplete=function(e,n,i){if(n){t(n).removeClass(c+" "+s);var r=t(n.parentNode).find(m)[0];r&&t(r).removeClass(s),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(t(e).addClass(s),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),k.reflow(e),t(e).addClass(c),e.parentNode&&t(e.parentNode).hasClass(o)){var a=t(e).closest(h)[0];a&&t(a).find(g).addClass(s),e.setAttribute("aria-expanded",!0)}i&&i()},e._jQueryInterface=function(n){return this.each(function(){var i=t(this),r=i.data("bs.tab");if(r||(r=new e(this),i.data("bs.tab",r)),"string"==typeof n){if("undefined"==typeof r[n])throw new TypeError('No method named "'+n+'"');r[n]()}})},i(e,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),e}();return t(document).on(r.CLICK_DATA_API,p,function(e){e.preventDefault(),_._jQueryInterface.call(t(this),"show")}),t.fn.tab=_._jQueryInterface,t.fn.tab.Constructor=_,t.fn.tab.noConflict=function(){return t.fn.tab=n,_._jQueryInterface},_}(e);!function(t){if("undefined"==typeof t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");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")}(e),t.Util=k,t.Alert=L,t.Button=P,t.Carousel=x,t.Collapse=R,t.Dropdown=Nt,t.Modal=kt,t.Popover=Pt,t.Scrollspy=xt,t.Tab=Rt,t.Tooltip=Lt,Object.defineProperty(t,"__esModule",{value:!0})});
|
7
7
|
//# sourceMappingURL=bootstrap.bundle.min.js.map
|
@@ -1,36 +1,72 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap v4.0.0
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap v4.0.0 (https://getbootstrap.com)
|
3
|
+
* Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
4
4
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
5
5
|
*/
|
6
|
-
|
7
|
-
'
|
6
|
+
(function (global, factory) {
|
7
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jquery'), require('popper.js')) :
|
8
|
+
typeof define === 'function' && define.amd ? define(['exports', 'jquery', 'popper.js'], factory) :
|
9
|
+
(factory((global.bootstrap = {}),global.jQuery,global.Popper));
|
10
|
+
}(this, (function (exports,$,Popper) { 'use strict';
|
8
11
|
|
9
12
|
$ = $ && $.hasOwnProperty('default') ? $['default'] : $;
|
10
13
|
Popper = Popper && Popper.hasOwnProperty('default') ? Popper['default'] : Popper;
|
11
14
|
|
15
|
+
function _defineProperties(target, props) {
|
16
|
+
for (var i = 0; i < props.length; i++) {
|
17
|
+
var descriptor = props[i];
|
18
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
19
|
+
descriptor.configurable = true;
|
20
|
+
if ("value" in descriptor) descriptor.writable = true;
|
21
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
26
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
27
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
28
|
+
return Constructor;
|
29
|
+
}
|
30
|
+
|
31
|
+
function _extends() {
|
32
|
+
_extends = Object.assign || function (target) {
|
33
|
+
for (var i = 1; i < arguments.length; i++) {
|
34
|
+
var source = arguments[i];
|
35
|
+
|
36
|
+
for (var key in source) {
|
37
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
38
|
+
target[key] = source[key];
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
return target;
|
44
|
+
};
|
45
|
+
|
46
|
+
return _extends.apply(this, arguments);
|
47
|
+
}
|
48
|
+
|
49
|
+
function _inheritsLoose(subClass, superClass) {
|
50
|
+
subClass.prototype = Object.create(superClass.prototype);
|
51
|
+
subClass.prototype.constructor = subClass;
|
52
|
+
subClass.__proto__ = superClass;
|
53
|
+
}
|
54
|
+
|
12
55
|
/**
|
13
56
|
* --------------------------------------------------------------------------
|
14
|
-
* Bootstrap (v4.0.0
|
57
|
+
* Bootstrap (v4.0.0): util.js
|
15
58
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
16
59
|
* --------------------------------------------------------------------------
|
17
60
|
*/
|
18
61
|
|
19
|
-
var Util = function () {
|
62
|
+
var Util = function ($$$1) {
|
20
63
|
/**
|
21
64
|
* ------------------------------------------------------------------------
|
22
65
|
* Private TransitionEnd Helpers
|
23
66
|
* ------------------------------------------------------------------------
|
24
67
|
*/
|
25
68
|
var transition = false;
|
26
|
-
var MAX_UID = 1000000;
|
27
|
-
var TransitionEndEvent = {
|
28
|
-
WebkitTransition: 'webkitTransitionEnd',
|
29
|
-
MozTransition: 'transitionend',
|
30
|
-
OTransition: 'oTransitionEnd otransitionend',
|
31
|
-
transition: 'transitionend' // shoutout AngusCroll (https://goo.gl/pxwQGp)
|
32
|
-
|
33
|
-
};
|
69
|
+
var MAX_UID = 1000000; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
34
70
|
|
35
71
|
function toType(obj) {
|
36
72
|
return {}.toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase();
|
@@ -41,7 +77,7 @@ var Util = function () {
|
|
41
77
|
bindType: transition.end,
|
42
78
|
delegateType: transition.end,
|
43
79
|
handle: function handle(event) {
|
44
|
-
if (
|
80
|
+
if ($$$1(event.target).is(this)) {
|
45
81
|
return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
|
46
82
|
}
|
47
83
|
|
@@ -51,28 +87,20 @@ var Util = function () {
|
|
51
87
|
}
|
52
88
|
|
53
89
|
function transitionEndTest() {
|
54
|
-
if (window.QUnit) {
|
90
|
+
if (typeof window !== 'undefined' && window.QUnit) {
|
55
91
|
return false;
|
56
92
|
}
|
57
93
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
if (typeof el.style[name] !== 'undefined') {
|
62
|
-
return {
|
63
|
-
end: TransitionEndEvent[name]
|
64
|
-
};
|
65
|
-
}
|
66
|
-
}
|
67
|
-
|
68
|
-
return false;
|
94
|
+
return {
|
95
|
+
end: 'transitionend'
|
96
|
+
};
|
69
97
|
}
|
70
98
|
|
71
99
|
function transitionEndEmulator(duration) {
|
72
100
|
var _this = this;
|
73
101
|
|
74
102
|
var called = false;
|
75
|
-
|
103
|
+
$$$1(this).one(Util.TRANSITION_END, function () {
|
76
104
|
called = true;
|
77
105
|
});
|
78
106
|
setTimeout(function () {
|
@@ -85,12 +113,19 @@ var Util = function () {
|
|
85
113
|
|
86
114
|
function setTransitionEndSupport() {
|
87
115
|
transition = transitionEndTest();
|
88
|
-
|
116
|
+
$$$1.fn.emulateTransitionEnd = transitionEndEmulator;
|
89
117
|
|
90
118
|
if (Util.supportsTransitionEnd()) {
|
91
|
-
|
119
|
+
$$$1.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
|
92
120
|
}
|
93
121
|
}
|
122
|
+
|
123
|
+
function escapeId(selector) {
|
124
|
+
// We escape IDs in case of special selectors (selector = '#myId:something')
|
125
|
+
// $.escapeSelector does not exist in jQuery < 3
|
126
|
+
selector = typeof $$$1.escapeSelector === 'function' ? $$$1.escapeSelector(selector).substr(1) : selector.replace(/(:|\.|\[|\]|,|=|@)/g, '\\$1');
|
127
|
+
return selector;
|
128
|
+
}
|
94
129
|
/**
|
95
130
|
* --------------------------------------------------------------------------
|
96
131
|
* Public Util Api
|
@@ -113,12 +148,17 @@ var Util = function () {
|
|
113
148
|
|
114
149
|
if (!selector || selector === '#') {
|
115
150
|
selector = element.getAttribute('href') || '';
|
151
|
+
} // If it's an ID
|
152
|
+
|
153
|
+
|
154
|
+
if (selector.charAt(0) === '#') {
|
155
|
+
selector = escapeId(selector);
|
116
156
|
}
|
117
157
|
|
118
158
|
try {
|
119
|
-
var $selector =
|
159
|
+
var $selector = $$$1(document).find(selector);
|
120
160
|
return $selector.length > 0 ? selector : null;
|
121
|
-
} catch (
|
161
|
+
} catch (err) {
|
122
162
|
return null;
|
123
163
|
}
|
124
164
|
},
|
@@ -126,7 +166,7 @@ var Util = function () {
|
|
126
166
|
return element.offsetHeight;
|
127
167
|
},
|
128
168
|
triggerTransitionEnd: function triggerTransitionEnd(element) {
|
129
|
-
|
169
|
+
$$$1(element).trigger(transition.end);
|
130
170
|
},
|
131
171
|
supportsTransitionEnd: function supportsTransitionEnd() {
|
132
172
|
return Boolean(transition);
|
@@ -152,51 +192,25 @@ var Util = function () {
|
|
152
192
|
return Util;
|
153
193
|
}($);
|
154
194
|
|
155
|
-
function _defineProperties(target, props) {
|
156
|
-
for (var i = 0; i < props.length; i++) {
|
157
|
-
var descriptor = props[i];
|
158
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
159
|
-
descriptor.configurable = true;
|
160
|
-
if ("value" in descriptor) descriptor.writable = true;
|
161
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
162
|
-
}
|
163
|
-
}
|
164
|
-
|
165
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
166
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
167
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
168
|
-
return Constructor;
|
169
|
-
}
|
170
|
-
|
171
|
-
var createClass = _createClass;
|
172
|
-
|
173
|
-
function _inheritsLoose(subClass, superClass) {
|
174
|
-
subClass.prototype = Object.create(superClass.prototype);
|
175
|
-
subClass.prototype.constructor = subClass;
|
176
|
-
subClass.__proto__ = superClass;
|
177
|
-
}
|
178
|
-
|
179
|
-
var inheritsLoose = _inheritsLoose;
|
180
|
-
|
181
195
|
/**
|
182
196
|
* --------------------------------------------------------------------------
|
183
|
-
* Bootstrap (v4.0.0
|
197
|
+
* Bootstrap (v4.0.0): alert.js
|
184
198
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
185
199
|
* --------------------------------------------------------------------------
|
186
200
|
*/
|
187
201
|
|
188
|
-
var Alert = function () {
|
202
|
+
var Alert = function ($$$1) {
|
189
203
|
/**
|
190
204
|
* ------------------------------------------------------------------------
|
191
205
|
* Constants
|
192
206
|
* ------------------------------------------------------------------------
|
193
207
|
*/
|
194
208
|
var NAME = 'alert';
|
195
|
-
var VERSION = '4.0.0
|
209
|
+
var VERSION = '4.0.0';
|
196
210
|
var DATA_KEY = 'bs.alert';
|
197
211
|
var EVENT_KEY = "." + DATA_KEY;
|
198
212
|
var DATA_API_KEY = '.data-api';
|
199
|
-
var JQUERY_NO_CONFLICT =
|
213
|
+
var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
|
200
214
|
var TRANSITION_DURATION = 150;
|
201
215
|
var Selector = {
|
202
216
|
DISMISS: '[data-dismiss="alert"]'
|
@@ -223,12 +237,12 @@ var Alert = function () {
|
|
223
237
|
function () {
|
224
238
|
function Alert(element) {
|
225
239
|
this._element = element;
|
226
|
-
} //
|
240
|
+
} // Getters
|
227
241
|
|
228
242
|
|
229
243
|
var _proto = Alert.prototype;
|
230
244
|
|
231
|
-
//
|
245
|
+
// Public
|
232
246
|
_proto.close = function close(element) {
|
233
247
|
element = element || this._element;
|
234
248
|
|
@@ -244,9 +258,9 @@ var Alert = function () {
|
|
244
258
|
};
|
245
259
|
|
246
260
|
_proto.dispose = function dispose() {
|
247
|
-
|
261
|
+
$$$1.removeData(this._element, DATA_KEY);
|
248
262
|
this._element = null;
|
249
|
-
}; //
|
263
|
+
}; // Private
|
250
264
|
|
251
265
|
|
252
266
|
_proto._getRootElement = function _getRootElement(element) {
|
@@ -254,46 +268,46 @@ var Alert = function () {
|
|
254
268
|
var parent = false;
|
255
269
|
|
256
270
|
if (selector) {
|
257
|
-
parent =
|
271
|
+
parent = $$$1(selector)[0];
|
258
272
|
}
|
259
273
|
|
260
274
|
if (!parent) {
|
261
|
-
parent =
|
275
|
+
parent = $$$1(element).closest("." + ClassName.ALERT)[0];
|
262
276
|
}
|
263
277
|
|
264
278
|
return parent;
|
265
279
|
};
|
266
280
|
|
267
281
|
_proto._triggerCloseEvent = function _triggerCloseEvent(element) {
|
268
|
-
var closeEvent =
|
269
|
-
|
282
|
+
var closeEvent = $$$1.Event(Event.CLOSE);
|
283
|
+
$$$1(element).trigger(closeEvent);
|
270
284
|
return closeEvent;
|
271
285
|
};
|
272
286
|
|
273
287
|
_proto._removeElement = function _removeElement(element) {
|
274
288
|
var _this = this;
|
275
289
|
|
276
|
-
|
290
|
+
$$$1(element).removeClass(ClassName.SHOW);
|
277
291
|
|
278
|
-
if (!Util.supportsTransitionEnd() ||
|
292
|
+
if (!Util.supportsTransitionEnd() || !$$$1(element).hasClass(ClassName.FADE)) {
|
279
293
|
this._destroyElement(element);
|
280
294
|
|
281
295
|
return;
|
282
296
|
}
|
283
297
|
|
284
|
-
|
298
|
+
$$$1(element).one(Util.TRANSITION_END, function (event) {
|
285
299
|
return _this._destroyElement(element, event);
|
286
300
|
}).emulateTransitionEnd(TRANSITION_DURATION);
|
287
301
|
};
|
288
302
|
|
289
303
|
_proto._destroyElement = function _destroyElement(element) {
|
290
|
-
|
291
|
-
}; //
|
304
|
+
$$$1(element).detach().trigger(Event.CLOSED).remove();
|
305
|
+
}; // Static
|
292
306
|
|
293
307
|
|
294
308
|
Alert._jQueryInterface = function _jQueryInterface(config) {
|
295
309
|
return this.each(function () {
|
296
|
-
var $element =
|
310
|
+
var $element = $$$1(this);
|
297
311
|
var data = $element.data(DATA_KEY);
|
298
312
|
|
299
313
|
if (!data) {
|
@@ -317,7 +331,7 @@ var Alert = function () {
|
|
317
331
|
};
|
318
332
|
};
|
319
333
|
|
320
|
-
|
334
|
+
_createClass(Alert, null, [{
|
321
335
|
key: "VERSION",
|
322
336
|
get: function get() {
|
323
337
|
return VERSION;
|
@@ -332,18 +346,18 @@ var Alert = function () {
|
|
332
346
|
*/
|
333
347
|
|
334
348
|
|
335
|
-
|
349
|
+
$$$1(document).on(Event.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert()));
|
336
350
|
/**
|
337
351
|
* ------------------------------------------------------------------------
|
338
352
|
* jQuery
|
339
353
|
* ------------------------------------------------------------------------
|
340
354
|
*/
|
341
355
|
|
342
|
-
|
343
|
-
|
356
|
+
$$$1.fn[NAME] = Alert._jQueryInterface;
|
357
|
+
$$$1.fn[NAME].Constructor = Alert;
|
344
358
|
|
345
|
-
|
346
|
-
|
359
|
+
$$$1.fn[NAME].noConflict = function () {
|
360
|
+
$$$1.fn[NAME] = JQUERY_NO_CONFLICT;
|
347
361
|
return Alert._jQueryInterface;
|
348
362
|
};
|
349
363
|
|
@@ -352,23 +366,23 @@ var Alert = function () {
|
|
352
366
|
|
353
367
|
/**
|
354
368
|
* --------------------------------------------------------------------------
|
355
|
-
* Bootstrap (v4.0.0
|
369
|
+
* Bootstrap (v4.0.0): button.js
|
356
370
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
357
371
|
* --------------------------------------------------------------------------
|
358
372
|
*/
|
359
373
|
|
360
|
-
var Button = function () {
|
374
|
+
var Button = function ($$$1) {
|
361
375
|
/**
|
362
376
|
* ------------------------------------------------------------------------
|
363
377
|
* Constants
|
364
378
|
* ------------------------------------------------------------------------
|
365
379
|
*/
|
366
380
|
var NAME = 'button';
|
367
|
-
var VERSION = '4.0.0
|
381
|
+
var VERSION = '4.0.0';
|
368
382
|
var DATA_KEY = 'bs.button';
|
369
383
|
var EVENT_KEY = "." + DATA_KEY;
|
370
384
|
var DATA_API_KEY = '.data-api';
|
371
|
-
var JQUERY_NO_CONFLICT =
|
385
|
+
var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
|
372
386
|
var ClassName = {
|
373
387
|
ACTIVE: 'active',
|
374
388
|
BUTTON: 'btn',
|
@@ -397,29 +411,29 @@ var Button = function () {
|
|
397
411
|
function () {
|
398
412
|
function Button(element) {
|
399
413
|
this._element = element;
|
400
|
-
} //
|
414
|
+
} // Getters
|
401
415
|
|
402
416
|
|
403
417
|
var _proto = Button.prototype;
|
404
418
|
|
405
|
-
//
|
419
|
+
// Public
|
406
420
|
_proto.toggle = function toggle() {
|
407
421
|
var triggerChangeEvent = true;
|
408
422
|
var addAriaPressed = true;
|
409
|
-
var rootElement =
|
423
|
+
var rootElement = $$$1(this._element).closest(Selector.DATA_TOGGLE)[0];
|
410
424
|
|
411
425
|
if (rootElement) {
|
412
|
-
var input =
|
426
|
+
var input = $$$1(this._element).find(Selector.INPUT)[0];
|
413
427
|
|
414
428
|
if (input) {
|
415
429
|
if (input.type === 'radio') {
|
416
|
-
if (input.checked &&
|
430
|
+
if (input.checked && $$$1(this._element).hasClass(ClassName.ACTIVE)) {
|
417
431
|
triggerChangeEvent = false;
|
418
432
|
} else {
|
419
|
-
var activeElement =
|
433
|
+
var activeElement = $$$1(rootElement).find(Selector.ACTIVE)[0];
|
420
434
|
|
421
435
|
if (activeElement) {
|
422
|
-
|
436
|
+
$$$1(activeElement).removeClass(ClassName.ACTIVE);
|
423
437
|
}
|
424
438
|
}
|
425
439
|
}
|
@@ -429,8 +443,8 @@ var Button = function () {
|
|
429
443
|
return;
|
430
444
|
}
|
431
445
|
|
432
|
-
input.checked =
|
433
|
-
|
446
|
+
input.checked = !$$$1(this._element).hasClass(ClassName.ACTIVE);
|
447
|
+
$$$1(input).trigger('change');
|
434
448
|
}
|
435
449
|
|
436
450
|
input.focus();
|
@@ -439,27 +453,27 @@ var Button = function () {
|
|
439
453
|
}
|
440
454
|
|
441
455
|
if (addAriaPressed) {
|
442
|
-
this._element.setAttribute('aria-pressed',
|
456
|
+
this._element.setAttribute('aria-pressed', !$$$1(this._element).hasClass(ClassName.ACTIVE));
|
443
457
|
}
|
444
458
|
|
445
459
|
if (triggerChangeEvent) {
|
446
|
-
|
460
|
+
$$$1(this._element).toggleClass(ClassName.ACTIVE);
|
447
461
|
}
|
448
462
|
};
|
449
463
|
|
450
464
|
_proto.dispose = function dispose() {
|
451
|
-
|
465
|
+
$$$1.removeData(this._element, DATA_KEY);
|
452
466
|
this._element = null;
|
453
|
-
}; //
|
467
|
+
}; // Static
|
454
468
|
|
455
469
|
|
456
470
|
Button._jQueryInterface = function _jQueryInterface(config) {
|
457
471
|
return this.each(function () {
|
458
|
-
var data =
|
472
|
+
var data = $$$1(this).data(DATA_KEY);
|
459
473
|
|
460
474
|
if (!data) {
|
461
475
|
data = new Button(this);
|
462
|
-
|
476
|
+
$$$1(this).data(DATA_KEY, data);
|
463
477
|
}
|
464
478
|
|
465
479
|
if (config === 'toggle') {
|
@@ -468,7 +482,7 @@ var Button = function () {
|
|
468
482
|
});
|
469
483
|
};
|
470
484
|
|
471
|
-
|
485
|
+
_createClass(Button, null, [{
|
472
486
|
key: "VERSION",
|
473
487
|
get: function get() {
|
474
488
|
return VERSION;
|
@@ -483,18 +497,18 @@ var Button = function () {
|
|
483
497
|
*/
|
484
498
|
|
485
499
|
|
486
|
-
|
500
|
+
$$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) {
|
487
501
|
event.preventDefault();
|
488
502
|
var button = event.target;
|
489
503
|
|
490
|
-
if (
|
491
|
-
button =
|
504
|
+
if (!$$$1(button).hasClass(ClassName.BUTTON)) {
|
505
|
+
button = $$$1(button).closest(Selector.BUTTON);
|
492
506
|
}
|
493
507
|
|
494
|
-
Button._jQueryInterface.call(
|
508
|
+
Button._jQueryInterface.call($$$1(button), 'toggle');
|
495
509
|
}).on(Event.FOCUS_BLUR_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) {
|
496
|
-
var button =
|
497
|
-
|
510
|
+
var button = $$$1(event.target).closest(Selector.BUTTON)[0];
|
511
|
+
$$$1(button).toggleClass(ClassName.FOCUS, /^focus(in)?$/.test(event.type));
|
498
512
|
});
|
499
513
|
/**
|
500
514
|
* ------------------------------------------------------------------------
|
@@ -502,11 +516,11 @@ var Button = function () {
|
|
502
516
|
* ------------------------------------------------------------------------
|
503
517
|
*/
|
504
518
|
|
505
|
-
|
506
|
-
|
519
|
+
$$$1.fn[NAME] = Button._jQueryInterface;
|
520
|
+
$$$1.fn[NAME].Constructor = Button;
|
507
521
|
|
508
|
-
|
509
|
-
|
522
|
+
$$$1.fn[NAME].noConflict = function () {
|
523
|
+
$$$1.fn[NAME] = JQUERY_NO_CONFLICT;
|
510
524
|
return Button._jQueryInterface;
|
511
525
|
};
|
512
526
|
|
@@ -515,23 +529,23 @@ var Button = function () {
|
|
515
529
|
|
516
530
|
/**
|
517
531
|
* --------------------------------------------------------------------------
|
518
|
-
* Bootstrap (v4.0.0
|
532
|
+
* Bootstrap (v4.0.0): carousel.js
|
519
533
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
520
534
|
* --------------------------------------------------------------------------
|
521
535
|
*/
|
522
536
|
|
523
|
-
var Carousel = function () {
|
537
|
+
var Carousel = function ($$$1) {
|
524
538
|
/**
|
525
539
|
* ------------------------------------------------------------------------
|
526
540
|
* Constants
|
527
541
|
* ------------------------------------------------------------------------
|
528
542
|
*/
|
529
543
|
var NAME = 'carousel';
|
530
|
-
var VERSION = '4.0.0
|
544
|
+
var VERSION = '4.0.0';
|
531
545
|
var DATA_KEY = 'bs.carousel';
|
532
546
|
var EVENT_KEY = "." + DATA_KEY;
|
533
547
|
var DATA_API_KEY = '.data-api';
|
534
|
-
var JQUERY_NO_CONFLICT =
|
548
|
+
var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
|
535
549
|
var TRANSITION_DURATION = 600;
|
536
550
|
var ARROW_LEFT_KEYCODE = 37; // KeyboardEvent.which value for left arrow key
|
537
551
|
|
@@ -606,16 +620,16 @@ var Carousel = function () {
|
|
606
620
|
this._isSliding = false;
|
607
621
|
this.touchTimeout = null;
|
608
622
|
this._config = this._getConfig(config);
|
609
|
-
this._element =
|
610
|
-
this._indicatorsElement =
|
623
|
+
this._element = $$$1(element)[0];
|
624
|
+
this._indicatorsElement = $$$1(this._element).find(Selector.INDICATORS)[0];
|
611
625
|
|
612
626
|
this._addEventListeners();
|
613
|
-
} //
|
627
|
+
} // Getters
|
614
628
|
|
615
629
|
|
616
630
|
var _proto = Carousel.prototype;
|
617
631
|
|
618
|
-
//
|
632
|
+
// Public
|
619
633
|
_proto.next = function next() {
|
620
634
|
if (!this._isSliding) {
|
621
635
|
this._slide(Direction.NEXT);
|
@@ -625,7 +639,7 @@ var Carousel = function () {
|
|
625
639
|
_proto.nextWhenVisible = function nextWhenVisible() {
|
626
640
|
// Don't call next when the page isn't visible
|
627
641
|
// or the carousel or its parent isn't visible
|
628
|
-
if (!document.hidden &&
|
642
|
+
if (!document.hidden && $$$1(this._element).is(':visible') && $$$1(this._element).css('visibility') !== 'hidden') {
|
629
643
|
this.next();
|
630
644
|
}
|
631
645
|
};
|
@@ -641,7 +655,7 @@ var Carousel = function () {
|
|
641
655
|
this._isPaused = true;
|
642
656
|
}
|
643
657
|
|
644
|
-
if (
|
658
|
+
if ($$$1(this._element).find(Selector.NEXT_PREV)[0] && Util.supportsTransitionEnd()) {
|
645
659
|
Util.triggerTransitionEnd(this._element);
|
646
660
|
this.cycle(true);
|
647
661
|
}
|
@@ -668,7 +682,7 @@ var Carousel = function () {
|
|
668
682
|
_proto.to = function to(index) {
|
669
683
|
var _this = this;
|
670
684
|
|
671
|
-
this._activeElement =
|
685
|
+
this._activeElement = $$$1(this._element).find(Selector.ACTIVE_ITEM)[0];
|
672
686
|
|
673
687
|
var activeIndex = this._getItemIndex(this._activeElement);
|
674
688
|
|
@@ -677,7 +691,7 @@ var Carousel = function () {
|
|
677
691
|
}
|
678
692
|
|
679
693
|
if (this._isSliding) {
|
680
|
-
|
694
|
+
$$$1(this._element).one(Event.SLID, function () {
|
681
695
|
return _this.to(index);
|
682
696
|
});
|
683
697
|
return;
|
@@ -695,8 +709,8 @@ var Carousel = function () {
|
|
695
709
|
};
|
696
710
|
|
697
711
|
_proto.dispose = function dispose() {
|
698
|
-
|
699
|
-
|
712
|
+
$$$1(this._element).off(EVENT_KEY);
|
713
|
+
$$$1.removeData(this._element, DATA_KEY);
|
700
714
|
this._items = null;
|
701
715
|
this._config = null;
|
702
716
|
this._element = null;
|
@@ -705,11 +719,11 @@ var Carousel = function () {
|
|
705
719
|
this._isSliding = null;
|
706
720
|
this._activeElement = null;
|
707
721
|
this._indicatorsElement = null;
|
708
|
-
}; //
|
722
|
+
}; // Private
|
709
723
|
|
710
724
|
|
711
725
|
_proto._getConfig = function _getConfig(config) {
|
712
|
-
config =
|
726
|
+
config = _extends({}, Default, config);
|
713
727
|
Util.typeCheckConfig(NAME, config, DefaultType);
|
714
728
|
return config;
|
715
729
|
};
|
@@ -718,27 +732,27 @@ var Carousel = function () {
|
|
718
732
|
var _this2 = this;
|
719
733
|
|
720
734
|
if (this._config.keyboard) {
|
721
|
-
|
735
|
+
$$$1(this._element).on(Event.KEYDOWN, function (event) {
|
722
736
|
return _this2._keydown(event);
|
723
737
|
});
|
724
738
|
}
|
725
739
|
|
726
740
|
if (this._config.pause === 'hover') {
|
727
|
-
|
741
|
+
$$$1(this._element).on(Event.MOUSEENTER, function (event) {
|
728
742
|
return _this2.pause(event);
|
729
743
|
}).on(Event.MOUSELEAVE, function (event) {
|
730
744
|
return _this2.cycle(event);
|
731
745
|
});
|
732
746
|
|
733
747
|
if ('ontouchstart' in document.documentElement) {
|
734
|
-
//
|
748
|
+
// If it's a touch-enabled device, mouseenter/leave are fired as
|
735
749
|
// part of the mouse compatibility events on first tap - the carousel
|
736
750
|
// would stop cycling until user tapped out of it;
|
737
751
|
// here, we listen for touchend, explicitly pause the carousel
|
738
752
|
// (as if it's the second time we tap on it, mouseenter compat event
|
739
753
|
// is NOT fired) and after a timeout (to allow for mouse compatibility
|
740
754
|
// events to fire) we explicitly restart cycling
|
741
|
-
|
755
|
+
$$$1(this._element).on(Event.TOUCHEND, function () {
|
742
756
|
_this2.pause();
|
743
757
|
|
744
758
|
if (_this2.touchTimeout) {
|
@@ -770,12 +784,11 @@ var Carousel = function () {
|
|
770
784
|
break;
|
771
785
|
|
772
786
|
default:
|
773
|
-
return;
|
774
787
|
}
|
775
788
|
};
|
776
789
|
|
777
790
|
_proto._getItemIndex = function _getItemIndex(element) {
|
778
|
-
this._items =
|
791
|
+
this._items = $$$1.makeArray($$$1(element).parent().find(Selector.ITEM));
|
779
792
|
return this._items.indexOf(element);
|
780
793
|
};
|
781
794
|
|
@@ -800,26 +813,26 @@ var Carousel = function () {
|
|
800
813
|
_proto._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, eventDirectionName) {
|
801
814
|
var targetIndex = this._getItemIndex(relatedTarget);
|
802
815
|
|
803
|
-
var fromIndex = this._getItemIndex(
|
816
|
+
var fromIndex = this._getItemIndex($$$1(this._element).find(Selector.ACTIVE_ITEM)[0]);
|
804
817
|
|
805
|
-
var slideEvent =
|
818
|
+
var slideEvent = $$$1.Event(Event.SLIDE, {
|
806
819
|
relatedTarget: relatedTarget,
|
807
820
|
direction: eventDirectionName,
|
808
821
|
from: fromIndex,
|
809
822
|
to: targetIndex
|
810
823
|
});
|
811
|
-
|
824
|
+
$$$1(this._element).trigger(slideEvent);
|
812
825
|
return slideEvent;
|
813
826
|
};
|
814
827
|
|
815
828
|
_proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
|
816
829
|
if (this._indicatorsElement) {
|
817
|
-
|
830
|
+
$$$1(this._indicatorsElement).find(Selector.ACTIVE).removeClass(ClassName.ACTIVE);
|
818
831
|
|
819
832
|
var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)];
|
820
833
|
|
821
834
|
if (nextIndicator) {
|
822
|
-
|
835
|
+
$$$1(nextIndicator).addClass(ClassName.ACTIVE);
|
823
836
|
}
|
824
837
|
}
|
825
838
|
};
|
@@ -827,7 +840,7 @@ var Carousel = function () {
|
|
827
840
|
_proto._slide = function _slide(direction, element) {
|
828
841
|
var _this3 = this;
|
829
842
|
|
830
|
-
var activeElement =
|
843
|
+
var activeElement = $$$1(this._element).find(Selector.ACTIVE_ITEM)[0];
|
831
844
|
|
832
845
|
var activeElementIndex = this._getItemIndex(activeElement);
|
833
846
|
|
@@ -850,7 +863,7 @@ var Carousel = function () {
|
|
850
863
|
eventDirectionName = Direction.RIGHT;
|
851
864
|
}
|
852
865
|
|
853
|
-
if (nextElement &&
|
866
|
+
if (nextElement && $$$1(nextElement).hasClass(ClassName.ACTIVE)) {
|
854
867
|
this._isSliding = false;
|
855
868
|
return;
|
856
869
|
}
|
@@ -862,7 +875,7 @@ var Carousel = function () {
|
|
862
875
|
}
|
863
876
|
|
864
877
|
if (!activeElement || !nextElement) {
|
865
|
-
//
|
878
|
+
// Some weirdness is happening, so we bail
|
866
879
|
return;
|
867
880
|
}
|
868
881
|
|
@@ -874,61 +887,61 @@ var Carousel = function () {
|
|
874
887
|
|
875
888
|
this._setActiveIndicatorElement(nextElement);
|
876
889
|
|
877
|
-
var slidEvent =
|
890
|
+
var slidEvent = $$$1.Event(Event.SLID, {
|
878
891
|
relatedTarget: nextElement,
|
879
892
|
direction: eventDirectionName,
|
880
893
|
from: activeElementIndex,
|
881
894
|
to: nextElementIndex
|
882
895
|
});
|
883
896
|
|
884
|
-
if (Util.supportsTransitionEnd() &&
|
885
|
-
|
897
|
+
if (Util.supportsTransitionEnd() && $$$1(this._element).hasClass(ClassName.SLIDE)) {
|
898
|
+
$$$1(nextElement).addClass(orderClassName);
|
886
899
|
Util.reflow(nextElement);
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
900
|
+
$$$1(activeElement).addClass(directionalClassName);
|
901
|
+
$$$1(nextElement).addClass(directionalClassName);
|
902
|
+
$$$1(activeElement).one(Util.TRANSITION_END, function () {
|
903
|
+
$$$1(nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(ClassName.ACTIVE);
|
904
|
+
$$$1(activeElement).removeClass(ClassName.ACTIVE + " " + orderClassName + " " + directionalClassName);
|
892
905
|
_this3._isSliding = false;
|
893
906
|
setTimeout(function () {
|
894
|
-
return
|
907
|
+
return $$$1(_this3._element).trigger(slidEvent);
|
895
908
|
}, 0);
|
896
909
|
}).emulateTransitionEnd(TRANSITION_DURATION);
|
897
910
|
} else {
|
898
|
-
|
899
|
-
|
911
|
+
$$$1(activeElement).removeClass(ClassName.ACTIVE);
|
912
|
+
$$$1(nextElement).addClass(ClassName.ACTIVE);
|
900
913
|
this._isSliding = false;
|
901
|
-
|
914
|
+
$$$1(this._element).trigger(slidEvent);
|
902
915
|
}
|
903
916
|
|
904
917
|
if (isCycling) {
|
905
918
|
this.cycle();
|
906
919
|
}
|
907
|
-
}; //
|
920
|
+
}; // Static
|
908
921
|
|
909
922
|
|
910
923
|
Carousel._jQueryInterface = function _jQueryInterface(config) {
|
911
924
|
return this.each(function () {
|
912
|
-
var data =
|
925
|
+
var data = $$$1(this).data(DATA_KEY);
|
913
926
|
|
914
|
-
var _config =
|
927
|
+
var _config = _extends({}, Default, $$$1(this).data());
|
915
928
|
|
916
929
|
if (typeof config === 'object') {
|
917
|
-
|
930
|
+
_config = _extends({}, _config, config);
|
918
931
|
}
|
919
932
|
|
920
933
|
var action = typeof config === 'string' ? config : _config.slide;
|
921
934
|
|
922
935
|
if (!data) {
|
923
936
|
data = new Carousel(this, _config);
|
924
|
-
|
937
|
+
$$$1(this).data(DATA_KEY, data);
|
925
938
|
}
|
926
939
|
|
927
940
|
if (typeof config === 'number') {
|
928
941
|
data.to(config);
|
929
942
|
} else if (typeof action === 'string') {
|
930
943
|
if (typeof data[action] === 'undefined') {
|
931
|
-
throw new
|
944
|
+
throw new TypeError("No method named \"" + action + "\"");
|
932
945
|
}
|
933
946
|
|
934
947
|
data[action]();
|
@@ -946,29 +959,29 @@ var Carousel = function () {
|
|
946
959
|
return;
|
947
960
|
}
|
948
961
|
|
949
|
-
var target =
|
962
|
+
var target = $$$1(selector)[0];
|
950
963
|
|
951
|
-
if (!target ||
|
964
|
+
if (!target || !$$$1(target).hasClass(ClassName.CAROUSEL)) {
|
952
965
|
return;
|
953
966
|
}
|
954
967
|
|
955
|
-
var config =
|
968
|
+
var config = _extends({}, $$$1(target).data(), $$$1(this).data());
|
956
969
|
var slideIndex = this.getAttribute('data-slide-to');
|
957
970
|
|
958
971
|
if (slideIndex) {
|
959
972
|
config.interval = false;
|
960
973
|
}
|
961
974
|
|
962
|
-
Carousel._jQueryInterface.call(
|
975
|
+
Carousel._jQueryInterface.call($$$1(target), config);
|
963
976
|
|
964
977
|
if (slideIndex) {
|
965
|
-
|
978
|
+
$$$1(target).data(DATA_KEY).to(slideIndex);
|
966
979
|
}
|
967
980
|
|
968
981
|
event.preventDefault();
|
969
982
|
};
|
970
983
|
|
971
|
-
|
984
|
+
_createClass(Carousel, null, [{
|
972
985
|
key: "VERSION",
|
973
986
|
get: function get() {
|
974
987
|
return VERSION;
|
@@ -988,10 +1001,10 @@ var Carousel = function () {
|
|
988
1001
|
*/
|
989
1002
|
|
990
1003
|
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
var $carousel =
|
1004
|
+
$$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_SLIDE, Carousel._dataApiClickHandler);
|
1005
|
+
$$$1(window).on(Event.LOAD_DATA_API, function () {
|
1006
|
+
$$$1(Selector.DATA_RIDE).each(function () {
|
1007
|
+
var $carousel = $$$1(this);
|
995
1008
|
|
996
1009
|
Carousel._jQueryInterface.call($carousel, $carousel.data());
|
997
1010
|
});
|
@@ -1002,11 +1015,11 @@ var Carousel = function () {
|
|
1002
1015
|
* ------------------------------------------------------------------------
|
1003
1016
|
*/
|
1004
1017
|
|
1005
|
-
|
1006
|
-
|
1018
|
+
$$$1.fn[NAME] = Carousel._jQueryInterface;
|
1019
|
+
$$$1.fn[NAME].Constructor = Carousel;
|
1007
1020
|
|
1008
|
-
|
1009
|
-
|
1021
|
+
$$$1.fn[NAME].noConflict = function () {
|
1022
|
+
$$$1.fn[NAME] = JQUERY_NO_CONFLICT;
|
1010
1023
|
return Carousel._jQueryInterface;
|
1011
1024
|
};
|
1012
1025
|
|
@@ -1015,23 +1028,23 @@ var Carousel = function () {
|
|
1015
1028
|
|
1016
1029
|
/**
|
1017
1030
|
* --------------------------------------------------------------------------
|
1018
|
-
* Bootstrap (v4.0.0
|
1031
|
+
* Bootstrap (v4.0.0): collapse.js
|
1019
1032
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
1020
1033
|
* --------------------------------------------------------------------------
|
1021
1034
|
*/
|
1022
1035
|
|
1023
|
-
var Collapse = function () {
|
1036
|
+
var Collapse = function ($$$1) {
|
1024
1037
|
/**
|
1025
1038
|
* ------------------------------------------------------------------------
|
1026
1039
|
* Constants
|
1027
1040
|
* ------------------------------------------------------------------------
|
1028
1041
|
*/
|
1029
1042
|
var NAME = 'collapse';
|
1030
|
-
var VERSION = '4.0.0
|
1043
|
+
var VERSION = '4.0.0';
|
1031
1044
|
var DATA_KEY = 'bs.collapse';
|
1032
1045
|
var EVENT_KEY = "." + DATA_KEY;
|
1033
1046
|
var DATA_API_KEY = '.data-api';
|
1034
|
-
var JQUERY_NO_CONFLICT =
|
1047
|
+
var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
|
1035
1048
|
var TRANSITION_DURATION = 600;
|
1036
1049
|
var Default = {
|
1037
1050
|
toggle: true,
|
@@ -1076,14 +1089,16 @@ var Collapse = function () {
|
|
1076
1089
|
this._isTransitioning = false;
|
1077
1090
|
this._element = element;
|
1078
1091
|
this._config = this._getConfig(config);
|
1079
|
-
this._triggerArray =
|
1080
|
-
var tabToggles =
|
1092
|
+
this._triggerArray = $$$1.makeArray($$$1("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]")));
|
1093
|
+
var tabToggles = $$$1(Selector.DATA_TOGGLE);
|
1081
1094
|
|
1082
1095
|
for (var i = 0; i < tabToggles.length; i++) {
|
1083
1096
|
var elem = tabToggles[i];
|
1084
1097
|
var selector = Util.getSelectorFromElement(elem);
|
1085
1098
|
|
1086
|
-
if (selector !== null &&
|
1099
|
+
if (selector !== null && $$$1(selector).filter(element).length > 0) {
|
1100
|
+
this._selector = selector;
|
1101
|
+
|
1087
1102
|
this._triggerArray.push(elem);
|
1088
1103
|
}
|
1089
1104
|
}
|
@@ -1097,14 +1112,14 @@ var Collapse = function () {
|
|
1097
1112
|
if (this._config.toggle) {
|
1098
1113
|
this.toggle();
|
1099
1114
|
}
|
1100
|
-
} //
|
1115
|
+
} // Getters
|
1101
1116
|
|
1102
1117
|
|
1103
1118
|
var _proto = Collapse.prototype;
|
1104
1119
|
|
1105
|
-
//
|
1120
|
+
// Public
|
1106
1121
|
_proto.toggle = function toggle() {
|
1107
|
-
if (
|
1122
|
+
if ($$$1(this._element).hasClass(ClassName.SHOW)) {
|
1108
1123
|
this.hide();
|
1109
1124
|
} else {
|
1110
1125
|
this.show();
|
@@ -1114,7 +1129,7 @@ var Collapse = function () {
|
|
1114
1129
|
_proto.show = function show() {
|
1115
1130
|
var _this = this;
|
1116
1131
|
|
1117
|
-
if (this._isTransitioning ||
|
1132
|
+
if (this._isTransitioning || $$$1(this._element).hasClass(ClassName.SHOW)) {
|
1118
1133
|
return;
|
1119
1134
|
}
|
1120
1135
|
|
@@ -1122,54 +1137,54 @@ var Collapse = function () {
|
|
1122
1137
|
var activesData;
|
1123
1138
|
|
1124
1139
|
if (this._parent) {
|
1125
|
-
actives =
|
1140
|
+
actives = $$$1.makeArray($$$1(this._parent).find(Selector.ACTIVES).filter("[data-parent=\"" + this._config.parent + "\"]"));
|
1126
1141
|
|
1127
|
-
if (
|
1142
|
+
if (actives.length === 0) {
|
1128
1143
|
actives = null;
|
1129
1144
|
}
|
1130
1145
|
}
|
1131
1146
|
|
1132
1147
|
if (actives) {
|
1133
|
-
activesData =
|
1148
|
+
activesData = $$$1(actives).not(this._selector).data(DATA_KEY);
|
1134
1149
|
|
1135
1150
|
if (activesData && activesData._isTransitioning) {
|
1136
1151
|
return;
|
1137
1152
|
}
|
1138
1153
|
}
|
1139
1154
|
|
1140
|
-
var startEvent =
|
1141
|
-
|
1155
|
+
var startEvent = $$$1.Event(Event.SHOW);
|
1156
|
+
$$$1(this._element).trigger(startEvent);
|
1142
1157
|
|
1143
1158
|
if (startEvent.isDefaultPrevented()) {
|
1144
1159
|
return;
|
1145
1160
|
}
|
1146
1161
|
|
1147
1162
|
if (actives) {
|
1148
|
-
Collapse._jQueryInterface.call(
|
1163
|
+
Collapse._jQueryInterface.call($$$1(actives).not(this._selector), 'hide');
|
1149
1164
|
|
1150
1165
|
if (!activesData) {
|
1151
|
-
|
1166
|
+
$$$1(actives).data(DATA_KEY, null);
|
1152
1167
|
}
|
1153
1168
|
}
|
1154
1169
|
|
1155
1170
|
var dimension = this._getDimension();
|
1156
1171
|
|
1157
|
-
|
1172
|
+
$$$1(this._element).removeClass(ClassName.COLLAPSE).addClass(ClassName.COLLAPSING);
|
1158
1173
|
this._element.style[dimension] = 0;
|
1159
1174
|
|
1160
|
-
if (this._triggerArray.length) {
|
1161
|
-
|
1175
|
+
if (this._triggerArray.length > 0) {
|
1176
|
+
$$$1(this._triggerArray).removeClass(ClassName.COLLAPSED).attr('aria-expanded', true);
|
1162
1177
|
}
|
1163
1178
|
|
1164
1179
|
this.setTransitioning(true);
|
1165
1180
|
|
1166
1181
|
var complete = function complete() {
|
1167
|
-
|
1182
|
+
$$$1(_this._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).addClass(ClassName.SHOW);
|
1168
1183
|
_this._element.style[dimension] = '';
|
1169
1184
|
|
1170
1185
|
_this.setTransitioning(false);
|
1171
1186
|
|
1172
|
-
|
1187
|
+
$$$1(_this._element).trigger(Event.SHOWN);
|
1173
1188
|
};
|
1174
1189
|
|
1175
1190
|
if (!Util.supportsTransitionEnd()) {
|
@@ -1179,19 +1194,19 @@ var Collapse = function () {
|
|
1179
1194
|
|
1180
1195
|
var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
|
1181
1196
|
var scrollSize = "scroll" + capitalizedDimension;
|
1182
|
-
|
1197
|
+
$$$1(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION);
|
1183
1198
|
this._element.style[dimension] = this._element[scrollSize] + "px";
|
1184
1199
|
};
|
1185
1200
|
|
1186
1201
|
_proto.hide = function hide() {
|
1187
1202
|
var _this2 = this;
|
1188
1203
|
|
1189
|
-
if (this._isTransitioning ||
|
1204
|
+
if (this._isTransitioning || !$$$1(this._element).hasClass(ClassName.SHOW)) {
|
1190
1205
|
return;
|
1191
1206
|
}
|
1192
1207
|
|
1193
|
-
var startEvent =
|
1194
|
-
|
1208
|
+
var startEvent = $$$1.Event(Event.HIDE);
|
1209
|
+
$$$1(this._element).trigger(startEvent);
|
1195
1210
|
|
1196
1211
|
if (startEvent.isDefaultPrevented()) {
|
1197
1212
|
return;
|
@@ -1201,18 +1216,18 @@ var Collapse = function () {
|
|
1201
1216
|
|
1202
1217
|
this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px";
|
1203
1218
|
Util.reflow(this._element);
|
1204
|
-
|
1219
|
+
$$$1(this._element).addClass(ClassName.COLLAPSING).removeClass(ClassName.COLLAPSE).removeClass(ClassName.SHOW);
|
1205
1220
|
|
1206
|
-
if (this._triggerArray.length) {
|
1221
|
+
if (this._triggerArray.length > 0) {
|
1207
1222
|
for (var i = 0; i < this._triggerArray.length; i++) {
|
1208
1223
|
var trigger = this._triggerArray[i];
|
1209
1224
|
var selector = Util.getSelectorFromElement(trigger);
|
1210
1225
|
|
1211
1226
|
if (selector !== null) {
|
1212
|
-
var $elem =
|
1227
|
+
var $elem = $$$1(selector);
|
1213
1228
|
|
1214
1229
|
if (!$elem.hasClass(ClassName.SHOW)) {
|
1215
|
-
|
1230
|
+
$$$1(trigger).addClass(ClassName.COLLAPSED).attr('aria-expanded', false);
|
1216
1231
|
}
|
1217
1232
|
}
|
1218
1233
|
}
|
@@ -1223,7 +1238,7 @@ var Collapse = function () {
|
|
1223
1238
|
var complete = function complete() {
|
1224
1239
|
_this2.setTransitioning(false);
|
1225
1240
|
|
1226
|
-
|
1241
|
+
$$$1(_this2._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).trigger(Event.HIDDEN);
|
1227
1242
|
};
|
1228
1243
|
|
1229
1244
|
this._element.style[dimension] = '';
|
@@ -1233,7 +1248,7 @@ var Collapse = function () {
|
|
1233
1248
|
return;
|
1234
1249
|
}
|
1235
1250
|
|
1236
|
-
|
1251
|
+
$$$1(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION);
|
1237
1252
|
};
|
1238
1253
|
|
1239
1254
|
_proto.setTransitioning = function setTransitioning(isTransitioning) {
|
@@ -1241,25 +1256,25 @@ var Collapse = function () {
|
|
1241
1256
|
};
|
1242
1257
|
|
1243
1258
|
_proto.dispose = function dispose() {
|
1244
|
-
|
1259
|
+
$$$1.removeData(this._element, DATA_KEY);
|
1245
1260
|
this._config = null;
|
1246
1261
|
this._parent = null;
|
1247
1262
|
this._element = null;
|
1248
1263
|
this._triggerArray = null;
|
1249
1264
|
this._isTransitioning = null;
|
1250
|
-
}; //
|
1265
|
+
}; // Private
|
1251
1266
|
|
1252
1267
|
|
1253
1268
|
_proto._getConfig = function _getConfig(config) {
|
1254
|
-
config =
|
1255
|
-
config.toggle = Boolean(config.toggle); //
|
1269
|
+
config = _extends({}, Default, config);
|
1270
|
+
config.toggle = Boolean(config.toggle); // Coerce string values
|
1256
1271
|
|
1257
1272
|
Util.typeCheckConfig(NAME, config, DefaultType);
|
1258
1273
|
return config;
|
1259
1274
|
};
|
1260
1275
|
|
1261
1276
|
_proto._getDimension = function _getDimension() {
|
1262
|
-
var hasWidth =
|
1277
|
+
var hasWidth = $$$1(this._element).hasClass(Dimension.WIDTH);
|
1263
1278
|
return hasWidth ? Dimension.WIDTH : Dimension.HEIGHT;
|
1264
1279
|
};
|
1265
1280
|
|
@@ -1269,17 +1284,17 @@ var Collapse = function () {
|
|
1269
1284
|
var parent = null;
|
1270
1285
|
|
1271
1286
|
if (Util.isElement(this._config.parent)) {
|
1272
|
-
parent = this._config.parent; //
|
1287
|
+
parent = this._config.parent; // It's a jQuery object
|
1273
1288
|
|
1274
1289
|
if (typeof this._config.parent.jquery !== 'undefined') {
|
1275
1290
|
parent = this._config.parent[0];
|
1276
1291
|
}
|
1277
1292
|
} else {
|
1278
|
-
parent =
|
1293
|
+
parent = $$$1(this._config.parent)[0];
|
1279
1294
|
}
|
1280
1295
|
|
1281
1296
|
var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]";
|
1282
|
-
|
1297
|
+
$$$1(parent).find(selector).each(function (i, element) {
|
1283
1298
|
_this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);
|
1284
1299
|
});
|
1285
1300
|
return parent;
|
@@ -1287,26 +1302,26 @@ var Collapse = function () {
|
|
1287
1302
|
|
1288
1303
|
_proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
|
1289
1304
|
if (element) {
|
1290
|
-
var isOpen =
|
1305
|
+
var isOpen = $$$1(element).hasClass(ClassName.SHOW);
|
1291
1306
|
|
1292
|
-
if (triggerArray.length) {
|
1293
|
-
|
1307
|
+
if (triggerArray.length > 0) {
|
1308
|
+
$$$1(triggerArray).toggleClass(ClassName.COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
|
1294
1309
|
}
|
1295
1310
|
}
|
1296
|
-
}; //
|
1311
|
+
}; // Static
|
1297
1312
|
|
1298
1313
|
|
1299
1314
|
Collapse._getTargetFromElement = function _getTargetFromElement(element) {
|
1300
1315
|
var selector = Util.getSelectorFromElement(element);
|
1301
|
-
return selector ?
|
1316
|
+
return selector ? $$$1(selector)[0] : null;
|
1302
1317
|
};
|
1303
1318
|
|
1304
1319
|
Collapse._jQueryInterface = function _jQueryInterface(config) {
|
1305
1320
|
return this.each(function () {
|
1306
|
-
var $this =
|
1321
|
+
var $this = $$$1(this);
|
1307
1322
|
var data = $this.data(DATA_KEY);
|
1308
1323
|
|
1309
|
-
var _config =
|
1324
|
+
var _config = _extends({}, Default, $this.data(), typeof config === 'object' && config);
|
1310
1325
|
|
1311
1326
|
if (!data && _config.toggle && /show|hide/.test(config)) {
|
1312
1327
|
_config.toggle = false;
|
@@ -1319,7 +1334,7 @@ var Collapse = function () {
|
|
1319
1334
|
|
1320
1335
|
if (typeof config === 'string') {
|
1321
1336
|
if (typeof data[config] === 'undefined') {
|
1322
|
-
throw new
|
1337
|
+
throw new TypeError("No method named \"" + config + "\"");
|
1323
1338
|
}
|
1324
1339
|
|
1325
1340
|
data[config]();
|
@@ -1327,7 +1342,7 @@ var Collapse = function () {
|
|
1327
1342
|
});
|
1328
1343
|
};
|
1329
1344
|
|
1330
|
-
|
1345
|
+
_createClass(Collapse, null, [{
|
1331
1346
|
key: "VERSION",
|
1332
1347
|
get: function get() {
|
1333
1348
|
return VERSION;
|
@@ -1347,16 +1362,16 @@ var Collapse = function () {
|
|
1347
1362
|
*/
|
1348
1363
|
|
1349
1364
|
|
1350
|
-
|
1365
|
+
$$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
|
1351
1366
|
// preventDefault only for <a> elements (which change the URL) not inside the collapsible element
|
1352
1367
|
if (event.currentTarget.tagName === 'A') {
|
1353
1368
|
event.preventDefault();
|
1354
1369
|
}
|
1355
1370
|
|
1356
|
-
var $trigger =
|
1371
|
+
var $trigger = $$$1(this);
|
1357
1372
|
var selector = Util.getSelectorFromElement(this);
|
1358
|
-
|
1359
|
-
var $target =
|
1373
|
+
$$$1(selector).each(function () {
|
1374
|
+
var $target = $$$1(this);
|
1360
1375
|
var data = $target.data(DATA_KEY);
|
1361
1376
|
var config = data ? 'toggle' : $trigger.data();
|
1362
1377
|
|
@@ -1369,11 +1384,11 @@ var Collapse = function () {
|
|
1369
1384
|
* ------------------------------------------------------------------------
|
1370
1385
|
*/
|
1371
1386
|
|
1372
|
-
|
1373
|
-
|
1387
|
+
$$$1.fn[NAME] = Collapse._jQueryInterface;
|
1388
|
+
$$$1.fn[NAME].Constructor = Collapse;
|
1374
1389
|
|
1375
|
-
|
1376
|
-
|
1390
|
+
$$$1.fn[NAME].noConflict = function () {
|
1391
|
+
$$$1.fn[NAME] = JQUERY_NO_CONFLICT;
|
1377
1392
|
return Collapse._jQueryInterface;
|
1378
1393
|
};
|
1379
1394
|
|
@@ -1382,32 +1397,23 @@ var Collapse = function () {
|
|
1382
1397
|
|
1383
1398
|
/**
|
1384
1399
|
* --------------------------------------------------------------------------
|
1385
|
-
* Bootstrap (v4.0.0
|
1400
|
+
* Bootstrap (v4.0.0): dropdown.js
|
1386
1401
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
1387
1402
|
* --------------------------------------------------------------------------
|
1388
1403
|
*/
|
1389
1404
|
|
1390
|
-
var Dropdown = function () {
|
1391
|
-
/**
|
1392
|
-
* Check for Popper dependency
|
1393
|
-
* Popper - https://popper.js.org
|
1394
|
-
*/
|
1395
|
-
if (typeof Popper === 'undefined') {
|
1396
|
-
throw new Error('Bootstrap dropdown require Popper.js (https://popper.js.org)');
|
1397
|
-
}
|
1405
|
+
var Dropdown = function ($$$1) {
|
1398
1406
|
/**
|
1399
1407
|
* ------------------------------------------------------------------------
|
1400
1408
|
* Constants
|
1401
1409
|
* ------------------------------------------------------------------------
|
1402
1410
|
*/
|
1403
|
-
|
1404
|
-
|
1405
1411
|
var NAME = 'dropdown';
|
1406
|
-
var VERSION = '4.0.0
|
1412
|
+
var VERSION = '4.0.0';
|
1407
1413
|
var DATA_KEY = 'bs.dropdown';
|
1408
1414
|
var EVENT_KEY = "." + DATA_KEY;
|
1409
1415
|
var DATA_API_KEY = '.data-api';
|
1410
|
-
var JQUERY_NO_CONFLICT =
|
1416
|
+
var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
|
1411
1417
|
var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
|
1412
1418
|
|
1413
1419
|
var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key
|
@@ -1435,8 +1441,11 @@ var Dropdown = function () {
|
|
1435
1441
|
DISABLED: 'disabled',
|
1436
1442
|
SHOW: 'show',
|
1437
1443
|
DROPUP: 'dropup',
|
1444
|
+
DROPRIGHT: 'dropright',
|
1445
|
+
DROPLEFT: 'dropleft',
|
1438
1446
|
MENURIGHT: 'dropdown-menu-right',
|
1439
|
-
MENULEFT: 'dropdown-menu-left'
|
1447
|
+
MENULEFT: 'dropdown-menu-left',
|
1448
|
+
POSITION_STATIC: 'position-static'
|
1440
1449
|
};
|
1441
1450
|
var Selector = {
|
1442
1451
|
DATA_TOGGLE: '[data-toggle="dropdown"]',
|
@@ -1449,15 +1458,21 @@ var Dropdown = function () {
|
|
1449
1458
|
TOP: 'top-start',
|
1450
1459
|
TOPEND: 'top-end',
|
1451
1460
|
BOTTOM: 'bottom-start',
|
1452
|
-
BOTTOMEND: 'bottom-end'
|
1461
|
+
BOTTOMEND: 'bottom-end',
|
1462
|
+
RIGHT: 'right-start',
|
1463
|
+
RIGHTEND: 'right-end',
|
1464
|
+
LEFT: 'left-start',
|
1465
|
+
LEFTEND: 'left-end'
|
1453
1466
|
};
|
1454
1467
|
var Default = {
|
1455
1468
|
offset: 0,
|
1456
|
-
flip: true
|
1469
|
+
flip: true,
|
1470
|
+
boundary: 'scrollParent'
|
1457
1471
|
};
|
1458
1472
|
var DefaultType = {
|
1459
1473
|
offset: '(number|string|function)',
|
1460
|
-
flip: 'boolean'
|
1474
|
+
flip: 'boolean',
|
1475
|
+
boundary: '(string|element)'
|
1461
1476
|
/**
|
1462
1477
|
* ------------------------------------------------------------------------
|
1463
1478
|
* Class Definition
|
@@ -1477,20 +1492,20 @@ var Dropdown = function () {
|
|
1477
1492
|
this._inNavbar = this._detectNavbar();
|
1478
1493
|
|
1479
1494
|
this._addEventListeners();
|
1480
|
-
} //
|
1495
|
+
} // Getters
|
1481
1496
|
|
1482
1497
|
|
1483
1498
|
var _proto = Dropdown.prototype;
|
1484
1499
|
|
1485
|
-
//
|
1500
|
+
// Public
|
1486
1501
|
_proto.toggle = function toggle() {
|
1487
|
-
if (this._element.disabled ||
|
1502
|
+
if (this._element.disabled || $$$1(this._element).hasClass(ClassName.DISABLED)) {
|
1488
1503
|
return;
|
1489
1504
|
}
|
1490
1505
|
|
1491
1506
|
var parent = Dropdown._getParentFromElement(this._element);
|
1492
1507
|
|
1493
|
-
var isActive =
|
1508
|
+
var isActive = $$$1(this._menu).hasClass(ClassName.SHOW);
|
1494
1509
|
|
1495
1510
|
Dropdown._clearMenus();
|
1496
1511
|
|
@@ -1501,49 +1516,68 @@ var Dropdown = function () {
|
|
1501
1516
|
var relatedTarget = {
|
1502
1517
|
relatedTarget: this._element
|
1503
1518
|
};
|
1504
|
-
var showEvent =
|
1505
|
-
|
1519
|
+
var showEvent = $$$1.Event(Event.SHOW, relatedTarget);
|
1520
|
+
$$$1(parent).trigger(showEvent);
|
1506
1521
|
|
1507
1522
|
if (showEvent.isDefaultPrevented()) {
|
1508
1523
|
return;
|
1509
|
-
}
|
1524
|
+
} // Disable totally Popper.js for Dropdown in Navbar
|
1510
1525
|
|
1511
|
-
var element = this._element; // for dropup with alignment we use the parent as popper container
|
1512
1526
|
|
1513
|
-
if (
|
1514
|
-
|
1515
|
-
|
1527
|
+
if (!this._inNavbar) {
|
1528
|
+
/**
|
1529
|
+
* Check for Popper dependency
|
1530
|
+
* Popper - https://popper.js.org
|
1531
|
+
*/
|
1532
|
+
if (typeof Popper === 'undefined') {
|
1533
|
+
throw new TypeError('Bootstrap dropdown require Popper.js (https://popper.js.org)');
|
1516
1534
|
}
|
1517
|
-
}
|
1518
1535
|
|
1519
|
-
|
1536
|
+
var element = this._element; // For dropup with alignment we use the parent as popper container
|
1537
|
+
|
1538
|
+
if ($$$1(parent).hasClass(ClassName.DROPUP)) {
|
1539
|
+
if ($$$1(this._menu).hasClass(ClassName.MENULEFT) || $$$1(this._menu).hasClass(ClassName.MENURIGHT)) {
|
1540
|
+
element = parent;
|
1541
|
+
}
|
1542
|
+
} // If boundary is not `scrollParent`, then set position to `static`
|
1543
|
+
// to allow the menu to "escape" the scroll parent's boundaries
|
1544
|
+
// https://github.com/twbs/bootstrap/issues/24251
|
1545
|
+
|
1546
|
+
|
1547
|
+
if (this._config.boundary !== 'scrollParent') {
|
1548
|
+
$$$1(parent).addClass(ClassName.POSITION_STATIC);
|
1549
|
+
}
|
1550
|
+
|
1551
|
+
this._popper = new Popper(element, this._menu, this._getPopperConfig());
|
1552
|
+
} // If this is a touch-enabled device we add extra
|
1520
1553
|
// empty mouseover listeners to the body's immediate children;
|
1521
1554
|
// only needed because of broken event delegation on iOS
|
1522
1555
|
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
|
1523
1556
|
|
1524
|
-
|
1525
|
-
|
1557
|
+
|
1558
|
+
if ('ontouchstart' in document.documentElement && $$$1(parent).closest(Selector.NAVBAR_NAV).length === 0) {
|
1559
|
+
$$$1('body').children().on('mouseover', null, $$$1.noop);
|
1526
1560
|
}
|
1527
1561
|
|
1528
1562
|
this._element.focus();
|
1529
1563
|
|
1530
1564
|
this._element.setAttribute('aria-expanded', true);
|
1531
1565
|
|
1532
|
-
|
1533
|
-
|
1566
|
+
$$$1(this._menu).toggleClass(ClassName.SHOW);
|
1567
|
+
$$$1(parent).toggleClass(ClassName.SHOW).trigger($$$1.Event(Event.SHOWN, relatedTarget));
|
1534
1568
|
};
|
1535
1569
|
|
1536
1570
|
_proto.dispose = function dispose() {
|
1537
|
-
|
1538
|
-
|
1571
|
+
$$$1.removeData(this._element, DATA_KEY);
|
1572
|
+
$$$1(this._element).off(EVENT_KEY);
|
1539
1573
|
this._element = null;
|
1540
1574
|
this._menu = null;
|
1541
1575
|
|
1542
1576
|
if (this._popper !== null) {
|
1543
1577
|
this._popper.destroy();
|
1544
|
-
}
|
1545
1578
|
|
1546
|
-
|
1579
|
+
this._popper = null;
|
1580
|
+
}
|
1547
1581
|
};
|
1548
1582
|
|
1549
1583
|
_proto.update = function update() {
|
@@ -1552,13 +1586,13 @@ var Dropdown = function () {
|
|
1552
1586
|
if (this._popper !== null) {
|
1553
1587
|
this._popper.scheduleUpdate();
|
1554
1588
|
}
|
1555
|
-
}; //
|
1589
|
+
}; // Private
|
1556
1590
|
|
1557
1591
|
|
1558
1592
|
_proto._addEventListeners = function _addEventListeners() {
|
1559
1593
|
var _this = this;
|
1560
1594
|
|
1561
|
-
|
1595
|
+
$$$1(this._element).on(Event.CLICK, function (event) {
|
1562
1596
|
event.preventDefault();
|
1563
1597
|
event.stopPropagation();
|
1564
1598
|
|
@@ -1567,7 +1601,7 @@ var Dropdown = function () {
|
|
1567
1601
|
};
|
1568
1602
|
|
1569
1603
|
_proto._getConfig = function _getConfig(config) {
|
1570
|
-
config =
|
1604
|
+
config = _extends({}, this.constructor.Default, $$$1(this._element).data(), config);
|
1571
1605
|
Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);
|
1572
1606
|
return config;
|
1573
1607
|
};
|
@@ -1576,23 +1610,27 @@ var Dropdown = function () {
|
|
1576
1610
|
if (!this._menu) {
|
1577
1611
|
var parent = Dropdown._getParentFromElement(this._element);
|
1578
1612
|
|
1579
|
-
this._menu =
|
1613
|
+
this._menu = $$$1(parent).find(Selector.MENU)[0];
|
1580
1614
|
}
|
1581
1615
|
|
1582
1616
|
return this._menu;
|
1583
1617
|
};
|
1584
1618
|
|
1585
1619
|
_proto._getPlacement = function _getPlacement() {
|
1586
|
-
var $parentDropdown =
|
1620
|
+
var $parentDropdown = $$$1(this._element).parent();
|
1587
1621
|
var placement = AttachmentMap.BOTTOM; // Handle dropup
|
1588
1622
|
|
1589
1623
|
if ($parentDropdown.hasClass(ClassName.DROPUP)) {
|
1590
1624
|
placement = AttachmentMap.TOP;
|
1591
1625
|
|
1592
|
-
if (
|
1626
|
+
if ($$$1(this._menu).hasClass(ClassName.MENURIGHT)) {
|
1593
1627
|
placement = AttachmentMap.TOPEND;
|
1594
1628
|
}
|
1595
|
-
} else if ($
|
1629
|
+
} else if ($parentDropdown.hasClass(ClassName.DROPRIGHT)) {
|
1630
|
+
placement = AttachmentMap.RIGHT;
|
1631
|
+
} else if ($parentDropdown.hasClass(ClassName.DROPLEFT)) {
|
1632
|
+
placement = AttachmentMap.LEFT;
|
1633
|
+
} else if ($$$1(this._menu).hasClass(ClassName.MENURIGHT)) {
|
1596
1634
|
placement = AttachmentMap.BOTTOMEND;
|
1597
1635
|
}
|
1598
1636
|
|
@@ -1600,7 +1638,7 @@ var Dropdown = function () {
|
|
1600
1638
|
};
|
1601
1639
|
|
1602
1640
|
_proto._detectNavbar = function _detectNavbar() {
|
1603
|
-
return
|
1641
|
+
return $$$1(this._element).closest('.navbar').length > 0;
|
1604
1642
|
};
|
1605
1643
|
|
1606
1644
|
_proto._getPopperConfig = function _getPopperConfig() {
|
@@ -1610,7 +1648,7 @@ var Dropdown = function () {
|
|
1610
1648
|
|
1611
1649
|
if (typeof this._config.offset === 'function') {
|
1612
1650
|
offsetConf.fn = function (data) {
|
1613
|
-
data.offsets =
|
1651
|
+
data.offsets = _extends({}, data.offsets, _this2._config.offset(data.offsets) || {});
|
1614
1652
|
return data;
|
1615
1653
|
};
|
1616
1654
|
} else {
|
@@ -1623,35 +1661,30 @@ var Dropdown = function () {
|
|
1623
1661
|
offset: offsetConf,
|
1624
1662
|
flip: {
|
1625
1663
|
enabled: this._config.flip
|
1664
|
+
},
|
1665
|
+
preventOverflow: {
|
1666
|
+
boundariesElement: this._config.boundary
|
1626
1667
|
}
|
1627
|
-
}
|
1628
|
-
|
1668
|
+
}
|
1629
1669
|
};
|
1630
|
-
|
1631
|
-
if (this._inNavbar) {
|
1632
|
-
popperConfig.modifiers.applyStyle = {
|
1633
|
-
enabled: !this._inNavbar
|
1634
|
-
};
|
1635
|
-
}
|
1636
|
-
|
1637
1670
|
return popperConfig;
|
1638
|
-
}; //
|
1671
|
+
}; // Static
|
1639
1672
|
|
1640
1673
|
|
1641
1674
|
Dropdown._jQueryInterface = function _jQueryInterface(config) {
|
1642
1675
|
return this.each(function () {
|
1643
|
-
var data =
|
1676
|
+
var data = $$$1(this).data(DATA_KEY);
|
1644
1677
|
|
1645
1678
|
var _config = typeof config === 'object' ? config : null;
|
1646
1679
|
|
1647
1680
|
if (!data) {
|
1648
1681
|
data = new Dropdown(this, _config);
|
1649
|
-
|
1682
|
+
$$$1(this).data(DATA_KEY, data);
|
1650
1683
|
}
|
1651
1684
|
|
1652
1685
|
if (typeof config === 'string') {
|
1653
1686
|
if (typeof data[config] === 'undefined') {
|
1654
|
-
throw new
|
1687
|
+
throw new TypeError("No method named \"" + config + "\"");
|
1655
1688
|
}
|
1656
1689
|
|
1657
1690
|
data[config]();
|
@@ -1664,12 +1697,12 @@ var Dropdown = function () {
|
|
1664
1697
|
return;
|
1665
1698
|
}
|
1666
1699
|
|
1667
|
-
var toggles =
|
1700
|
+
var toggles = $$$1.makeArray($$$1(Selector.DATA_TOGGLE));
|
1668
1701
|
|
1669
1702
|
for (var i = 0; i < toggles.length; i++) {
|
1670
1703
|
var parent = Dropdown._getParentFromElement(toggles[i]);
|
1671
1704
|
|
1672
|
-
var context =
|
1705
|
+
var context = $$$1(toggles[i]).data(DATA_KEY);
|
1673
1706
|
var relatedTarget = {
|
1674
1707
|
relatedTarget: toggles[i]
|
1675
1708
|
};
|
@@ -1680,30 +1713,30 @@ var Dropdown = function () {
|
|
1680
1713
|
|
1681
1714
|
var dropdownMenu = context._menu;
|
1682
1715
|
|
1683
|
-
if (
|
1716
|
+
if (!$$$1(parent).hasClass(ClassName.SHOW)) {
|
1684
1717
|
continue;
|
1685
1718
|
}
|
1686
1719
|
|
1687
|
-
if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) &&
|
1720
|
+
if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $$$1.contains(parent, event.target)) {
|
1688
1721
|
continue;
|
1689
1722
|
}
|
1690
1723
|
|
1691
|
-
var hideEvent =
|
1692
|
-
|
1724
|
+
var hideEvent = $$$1.Event(Event.HIDE, relatedTarget);
|
1725
|
+
$$$1(parent).trigger(hideEvent);
|
1693
1726
|
|
1694
1727
|
if (hideEvent.isDefaultPrevented()) {
|
1695
1728
|
continue;
|
1696
|
-
} //
|
1729
|
+
} // If this is a touch-enabled device we remove the extra
|
1697
1730
|
// empty mouseover listeners we added for iOS support
|
1698
1731
|
|
1699
1732
|
|
1700
1733
|
if ('ontouchstart' in document.documentElement) {
|
1701
|
-
|
1734
|
+
$$$1('body').children().off('mouseover', null, $$$1.noop);
|
1702
1735
|
}
|
1703
1736
|
|
1704
1737
|
toggles[i].setAttribute('aria-expanded', 'false');
|
1705
|
-
|
1706
|
-
|
1738
|
+
$$$1(dropdownMenu).removeClass(ClassName.SHOW);
|
1739
|
+
$$$1(parent).removeClass(ClassName.SHOW).trigger($$$1.Event(Event.HIDDEN, relatedTarget));
|
1707
1740
|
}
|
1708
1741
|
};
|
1709
1742
|
|
@@ -1712,53 +1745,61 @@ var Dropdown = function () {
|
|
1712
1745
|
var selector = Util.getSelectorFromElement(element);
|
1713
1746
|
|
1714
1747
|
if (selector) {
|
1715
|
-
parent =
|
1748
|
+
parent = $$$1(selector)[0];
|
1716
1749
|
}
|
1717
1750
|
|
1718
1751
|
return parent || element.parentNode;
|
1719
|
-
};
|
1752
|
+
}; // eslint-disable-next-line complexity
|
1753
|
+
|
1720
1754
|
|
1721
1755
|
Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) {
|
1722
|
-
|
1756
|
+
// If not input/textarea:
|
1757
|
+
// - And not a key in REGEXP_KEYDOWN => not a dropdown command
|
1758
|
+
// If input/textarea:
|
1759
|
+
// - If space key => not a dropdown command
|
1760
|
+
// - If key is other than escape
|
1761
|
+
// - If key is not up or down => not a dropdown command
|
1762
|
+
// - If trigger inside the menu => not a dropdown command
|
1763
|
+
if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $$$1(event.target).closest(Selector.MENU).length) : !REGEXP_KEYDOWN.test(event.which)) {
|
1723
1764
|
return;
|
1724
1765
|
}
|
1725
1766
|
|
1726
1767
|
event.preventDefault();
|
1727
1768
|
event.stopPropagation();
|
1728
1769
|
|
1729
|
-
if (this.disabled ||
|
1770
|
+
if (this.disabled || $$$1(this).hasClass(ClassName.DISABLED)) {
|
1730
1771
|
return;
|
1731
1772
|
}
|
1732
1773
|
|
1733
1774
|
var parent = Dropdown._getParentFromElement(this);
|
1734
1775
|
|
1735
|
-
var isActive =
|
1776
|
+
var isActive = $$$1(parent).hasClass(ClassName.SHOW);
|
1736
1777
|
|
1737
1778
|
if (!isActive && (event.which !== ESCAPE_KEYCODE || event.which !== SPACE_KEYCODE) || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
|
1738
1779
|
if (event.which === ESCAPE_KEYCODE) {
|
1739
|
-
var toggle =
|
1740
|
-
|
1780
|
+
var toggle = $$$1(parent).find(Selector.DATA_TOGGLE)[0];
|
1781
|
+
$$$1(toggle).trigger('focus');
|
1741
1782
|
}
|
1742
1783
|
|
1743
|
-
|
1784
|
+
$$$1(this).trigger('click');
|
1744
1785
|
return;
|
1745
1786
|
}
|
1746
1787
|
|
1747
|
-
var items =
|
1788
|
+
var items = $$$1(parent).find(Selector.VISIBLE_ITEMS).get();
|
1748
1789
|
|
1749
|
-
if (
|
1790
|
+
if (items.length === 0) {
|
1750
1791
|
return;
|
1751
1792
|
}
|
1752
1793
|
|
1753
1794
|
var index = items.indexOf(event.target);
|
1754
1795
|
|
1755
1796
|
if (event.which === ARROW_UP_KEYCODE && index > 0) {
|
1756
|
-
//
|
1797
|
+
// Up
|
1757
1798
|
index--;
|
1758
1799
|
}
|
1759
1800
|
|
1760
1801
|
if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) {
|
1761
|
-
//
|
1802
|
+
// Down
|
1762
1803
|
index++;
|
1763
1804
|
}
|
1764
1805
|
|
@@ -1769,7 +1810,7 @@ var Dropdown = function () {
|
|
1769
1810
|
items[index].focus();
|
1770
1811
|
};
|
1771
1812
|
|
1772
|
-
|
1813
|
+
_createClass(Dropdown, null, [{
|
1773
1814
|
key: "VERSION",
|
1774
1815
|
get: function get() {
|
1775
1816
|
return VERSION;
|
@@ -1794,11 +1835,11 @@ var Dropdown = function () {
|
|
1794
1835
|
*/
|
1795
1836
|
|
1796
1837
|
|
1797
|
-
|
1838
|
+
$$$1(document).on(Event.KEYDOWN_DATA_API, Selector.DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(Event.KEYDOWN_DATA_API, Selector.MENU, Dropdown._dataApiKeydownHandler).on(Event.CLICK_DATA_API + " " + Event.KEYUP_DATA_API, Dropdown._clearMenus).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
|
1798
1839
|
event.preventDefault();
|
1799
1840
|
event.stopPropagation();
|
1800
1841
|
|
1801
|
-
Dropdown._jQueryInterface.call(
|
1842
|
+
Dropdown._jQueryInterface.call($$$1(this), 'toggle');
|
1802
1843
|
}).on(Event.CLICK_DATA_API, Selector.FORM_CHILD, function (e) {
|
1803
1844
|
e.stopPropagation();
|
1804
1845
|
});
|
@@ -1808,11 +1849,11 @@ var Dropdown = function () {
|
|
1808
1849
|
* ------------------------------------------------------------------------
|
1809
1850
|
*/
|
1810
1851
|
|
1811
|
-
|
1812
|
-
|
1852
|
+
$$$1.fn[NAME] = Dropdown._jQueryInterface;
|
1853
|
+
$$$1.fn[NAME].Constructor = Dropdown;
|
1813
1854
|
|
1814
|
-
|
1815
|
-
|
1855
|
+
$$$1.fn[NAME].noConflict = function () {
|
1856
|
+
$$$1.fn[NAME] = JQUERY_NO_CONFLICT;
|
1816
1857
|
return Dropdown._jQueryInterface;
|
1817
1858
|
};
|
1818
1859
|
|
@@ -1821,23 +1862,23 @@ var Dropdown = function () {
|
|
1821
1862
|
|
1822
1863
|
/**
|
1823
1864
|
* --------------------------------------------------------------------------
|
1824
|
-
* Bootstrap (v4.0.0
|
1865
|
+
* Bootstrap (v4.0.0): modal.js
|
1825
1866
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
1826
1867
|
* --------------------------------------------------------------------------
|
1827
1868
|
*/
|
1828
1869
|
|
1829
|
-
var Modal = function () {
|
1870
|
+
var Modal = function ($$$1) {
|
1830
1871
|
/**
|
1831
1872
|
* ------------------------------------------------------------------------
|
1832
1873
|
* Constants
|
1833
1874
|
* ------------------------------------------------------------------------
|
1834
1875
|
*/
|
1835
1876
|
var NAME = 'modal';
|
1836
|
-
var VERSION = '4.0.0
|
1877
|
+
var VERSION = '4.0.0';
|
1837
1878
|
var DATA_KEY = 'bs.modal';
|
1838
1879
|
var EVENT_KEY = "." + DATA_KEY;
|
1839
1880
|
var DATA_API_KEY = '.data-api';
|
1840
|
-
var JQUERY_NO_CONFLICT =
|
1881
|
+
var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
|
1841
1882
|
var TRANSITION_DURATION = 300;
|
1842
1883
|
var BACKDROP_TRANSITION_DURATION = 150;
|
1843
1884
|
var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
|
@@ -1895,19 +1936,19 @@ var Modal = function () {
|
|
1895
1936
|
function Modal(element, config) {
|
1896
1937
|
this._config = this._getConfig(config);
|
1897
1938
|
this._element = element;
|
1898
|
-
this._dialog =
|
1939
|
+
this._dialog = $$$1(element).find(Selector.DIALOG)[0];
|
1899
1940
|
this._backdrop = null;
|
1900
1941
|
this._isShown = false;
|
1901
1942
|
this._isBodyOverflowing = false;
|
1902
1943
|
this._ignoreBackdropClick = false;
|
1903
1944
|
this._originalBodyPadding = 0;
|
1904
1945
|
this._scrollbarWidth = 0;
|
1905
|
-
} //
|
1946
|
+
} // Getters
|
1906
1947
|
|
1907
1948
|
|
1908
1949
|
var _proto = Modal.prototype;
|
1909
1950
|
|
1910
|
-
//
|
1951
|
+
// Public
|
1911
1952
|
_proto.toggle = function toggle(relatedTarget) {
|
1912
1953
|
return this._isShown ? this.hide() : this.show(relatedTarget);
|
1913
1954
|
};
|
@@ -1919,14 +1960,14 @@ var Modal = function () {
|
|
1919
1960
|
return;
|
1920
1961
|
}
|
1921
1962
|
|
1922
|
-
if (Util.supportsTransitionEnd() &&
|
1963
|
+
if (Util.supportsTransitionEnd() && $$$1(this._element).hasClass(ClassName.FADE)) {
|
1923
1964
|
this._isTransitioning = true;
|
1924
1965
|
}
|
1925
1966
|
|
1926
|
-
var showEvent =
|
1967
|
+
var showEvent = $$$1.Event(Event.SHOW, {
|
1927
1968
|
relatedTarget: relatedTarget
|
1928
1969
|
});
|
1929
|
-
|
1970
|
+
$$$1(this._element).trigger(showEvent);
|
1930
1971
|
|
1931
1972
|
if (this._isShown || showEvent.isDefaultPrevented()) {
|
1932
1973
|
return;
|
@@ -1940,18 +1981,18 @@ var Modal = function () {
|
|
1940
1981
|
|
1941
1982
|
this._adjustDialog();
|
1942
1983
|
|
1943
|
-
|
1984
|
+
$$$1(document.body).addClass(ClassName.OPEN);
|
1944
1985
|
|
1945
1986
|
this._setEscapeEvent();
|
1946
1987
|
|
1947
1988
|
this._setResizeEvent();
|
1948
1989
|
|
1949
|
-
|
1990
|
+
$$$1(this._element).on(Event.CLICK_DISMISS, Selector.DATA_DISMISS, function (event) {
|
1950
1991
|
return _this.hide(event);
|
1951
1992
|
});
|
1952
|
-
|
1953
|
-
|
1954
|
-
if (
|
1993
|
+
$$$1(this._dialog).on(Event.MOUSEDOWN_DISMISS, function () {
|
1994
|
+
$$$1(_this._element).one(Event.MOUSEUP_DISMISS, function (event) {
|
1995
|
+
if ($$$1(event.target).is(_this._element)) {
|
1955
1996
|
_this._ignoreBackdropClick = true;
|
1956
1997
|
}
|
1957
1998
|
});
|
@@ -1973,15 +2014,15 @@ var Modal = function () {
|
|
1973
2014
|
return;
|
1974
2015
|
}
|
1975
2016
|
|
1976
|
-
var hideEvent =
|
1977
|
-
|
2017
|
+
var hideEvent = $$$1.Event(Event.HIDE);
|
2018
|
+
$$$1(this._element).trigger(hideEvent);
|
1978
2019
|
|
1979
2020
|
if (!this._isShown || hideEvent.isDefaultPrevented()) {
|
1980
2021
|
return;
|
1981
2022
|
}
|
1982
2023
|
|
1983
2024
|
this._isShown = false;
|
1984
|
-
var transition = Util.supportsTransitionEnd() &&
|
2025
|
+
var transition = Util.supportsTransitionEnd() && $$$1(this._element).hasClass(ClassName.FADE);
|
1985
2026
|
|
1986
2027
|
if (transition) {
|
1987
2028
|
this._isTransitioning = true;
|
@@ -1991,13 +2032,13 @@ var Modal = function () {
|
|
1991
2032
|
|
1992
2033
|
this._setResizeEvent();
|
1993
2034
|
|
1994
|
-
|
1995
|
-
|
1996
|
-
|
1997
|
-
|
2035
|
+
$$$1(document).off(Event.FOCUSIN);
|
2036
|
+
$$$1(this._element).removeClass(ClassName.SHOW);
|
2037
|
+
$$$1(this._element).off(Event.CLICK_DISMISS);
|
2038
|
+
$$$1(this._dialog).off(Event.MOUSEDOWN_DISMISS);
|
1998
2039
|
|
1999
2040
|
if (transition) {
|
2000
|
-
|
2041
|
+
$$$1(this._element).one(Util.TRANSITION_END, function (event) {
|
2001
2042
|
return _this2._hideModal(event);
|
2002
2043
|
}).emulateTransitionEnd(TRANSITION_DURATION);
|
2003
2044
|
} else {
|
@@ -2006,8 +2047,8 @@ var Modal = function () {
|
|
2006
2047
|
};
|
2007
2048
|
|
2008
2049
|
_proto.dispose = function dispose() {
|
2009
|
-
|
2010
|
-
|
2050
|
+
$$$1.removeData(this._element, DATA_KEY);
|
2051
|
+
$$$1(window, document, this._element, this._backdrop).off(EVENT_KEY);
|
2011
2052
|
this._config = null;
|
2012
2053
|
this._element = null;
|
2013
2054
|
this._dialog = null;
|
@@ -2020,11 +2061,11 @@ var Modal = function () {
|
|
2020
2061
|
|
2021
2062
|
_proto.handleUpdate = function handleUpdate() {
|
2022
2063
|
this._adjustDialog();
|
2023
|
-
}; //
|
2064
|
+
}; // Private
|
2024
2065
|
|
2025
2066
|
|
2026
2067
|
_proto._getConfig = function _getConfig(config) {
|
2027
|
-
config =
|
2068
|
+
config = _extends({}, Default, config);
|
2028
2069
|
Util.typeCheckConfig(NAME, config, DefaultType);
|
2029
2070
|
return config;
|
2030
2071
|
};
|
@@ -2032,10 +2073,10 @@ var Modal = function () {
|
|
2032
2073
|
_proto._showElement = function _showElement(relatedTarget) {
|
2033
2074
|
var _this3 = this;
|
2034
2075
|
|
2035
|
-
var transition = Util.supportsTransitionEnd() &&
|
2076
|
+
var transition = Util.supportsTransitionEnd() && $$$1(this._element).hasClass(ClassName.FADE);
|
2036
2077
|
|
2037
2078
|
if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
|
2038
|
-
//
|
2079
|
+
// Don't move modal's DOM position
|
2039
2080
|
document.body.appendChild(this._element);
|
2040
2081
|
}
|
2041
2082
|
|
@@ -2049,13 +2090,13 @@ var Modal = function () {
|
|
2049
2090
|
Util.reflow(this._element);
|
2050
2091
|
}
|
2051
2092
|
|
2052
|
-
|
2093
|
+
$$$1(this._element).addClass(ClassName.SHOW);
|
2053
2094
|
|
2054
2095
|
if (this._config.focus) {
|
2055
2096
|
this._enforceFocus();
|
2056
2097
|
}
|
2057
2098
|
|
2058
|
-
var shownEvent =
|
2099
|
+
var shownEvent = $$$1.Event(Event.SHOWN, {
|
2059
2100
|
relatedTarget: relatedTarget
|
2060
2101
|
});
|
2061
2102
|
|
@@ -2065,11 +2106,11 @@ var Modal = function () {
|
|
2065
2106
|
}
|
2066
2107
|
|
2067
2108
|
_this3._isTransitioning = false;
|
2068
|
-
|
2109
|
+
$$$1(_this3._element).trigger(shownEvent);
|
2069
2110
|
};
|
2070
2111
|
|
2071
2112
|
if (transition) {
|
2072
|
-
|
2113
|
+
$$$1(this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(TRANSITION_DURATION);
|
2073
2114
|
} else {
|
2074
2115
|
transitionComplete();
|
2075
2116
|
}
|
@@ -2078,9 +2119,9 @@ var Modal = function () {
|
|
2078
2119
|
_proto._enforceFocus = function _enforceFocus() {
|
2079
2120
|
var _this4 = this;
|
2080
2121
|
|
2081
|
-
|
2122
|
+
$$$1(document).off(Event.FOCUSIN) // Guard against infinite focus loop
|
2082
2123
|
.on(Event.FOCUSIN, function (event) {
|
2083
|
-
if (document !== event.target && _this4._element !== event.target &&
|
2124
|
+
if (document !== event.target && _this4._element !== event.target && $$$1(_this4._element).has(event.target).length === 0) {
|
2084
2125
|
_this4._element.focus();
|
2085
2126
|
}
|
2086
2127
|
});
|
@@ -2090,7 +2131,7 @@ var Modal = function () {
|
|
2090
2131
|
var _this5 = this;
|
2091
2132
|
|
2092
2133
|
if (this._isShown && this._config.keyboard) {
|
2093
|
-
|
2134
|
+
$$$1(this._element).on(Event.KEYDOWN_DISMISS, function (event) {
|
2094
2135
|
if (event.which === ESCAPE_KEYCODE) {
|
2095
2136
|
event.preventDefault();
|
2096
2137
|
|
@@ -2098,7 +2139,7 @@ var Modal = function () {
|
|
2098
2139
|
}
|
2099
2140
|
});
|
2100
2141
|
} else if (!this._isShown) {
|
2101
|
-
|
2142
|
+
$$$1(this._element).off(Event.KEYDOWN_DISMISS);
|
2102
2143
|
}
|
2103
2144
|
};
|
2104
2145
|
|
@@ -2106,11 +2147,11 @@ var Modal = function () {
|
|
2106
2147
|
var _this6 = this;
|
2107
2148
|
|
2108
2149
|
if (this._isShown) {
|
2109
|
-
|
2150
|
+
$$$1(window).on(Event.RESIZE, function (event) {
|
2110
2151
|
return _this6.handleUpdate(event);
|
2111
2152
|
});
|
2112
2153
|
} else {
|
2113
|
-
|
2154
|
+
$$$1(window).off(Event.RESIZE);
|
2114
2155
|
}
|
2115
2156
|
};
|
2116
2157
|
|
@@ -2124,19 +2165,19 @@ var Modal = function () {
|
|
2124
2165
|
this._isTransitioning = false;
|
2125
2166
|
|
2126
2167
|
this._showBackdrop(function () {
|
2127
|
-
|
2168
|
+
$$$1(document.body).removeClass(ClassName.OPEN);
|
2128
2169
|
|
2129
2170
|
_this7._resetAdjustments();
|
2130
2171
|
|
2131
2172
|
_this7._resetScrollbar();
|
2132
2173
|
|
2133
|
-
|
2174
|
+
$$$1(_this7._element).trigger(Event.HIDDEN);
|
2134
2175
|
});
|
2135
2176
|
};
|
2136
2177
|
|
2137
2178
|
_proto._removeBackdrop = function _removeBackdrop() {
|
2138
2179
|
if (this._backdrop) {
|
2139
|
-
|
2180
|
+
$$$1(this._backdrop).remove();
|
2140
2181
|
this._backdrop = null;
|
2141
2182
|
}
|
2142
2183
|
};
|
@@ -2144,7 +2185,7 @@ var Modal = function () {
|
|
2144
2185
|
_proto._showBackdrop = function _showBackdrop(callback) {
|
2145
2186
|
var _this8 = this;
|
2146
2187
|
|
2147
|
-
var animate =
|
2188
|
+
var animate = $$$1(this._element).hasClass(ClassName.FADE) ? ClassName.FADE : '';
|
2148
2189
|
|
2149
2190
|
if (this._isShown && this._config.backdrop) {
|
2150
2191
|
var doAnimate = Util.supportsTransitionEnd() && animate;
|
@@ -2152,11 +2193,11 @@ var Modal = function () {
|
|
2152
2193
|
this._backdrop.className = ClassName.BACKDROP;
|
2153
2194
|
|
2154
2195
|
if (animate) {
|
2155
|
-
|
2196
|
+
$$$1(this._backdrop).addClass(animate);
|
2156
2197
|
}
|
2157
2198
|
|
2158
|
-
|
2159
|
-
|
2199
|
+
$$$1(this._backdrop).appendTo(document.body);
|
2200
|
+
$$$1(this._element).on(Event.CLICK_DISMISS, function (event) {
|
2160
2201
|
if (_this8._ignoreBackdropClick) {
|
2161
2202
|
_this8._ignoreBackdropClick = false;
|
2162
2203
|
return;
|
@@ -2177,7 +2218,7 @@ var Modal = function () {
|
|
2177
2218
|
Util.reflow(this._backdrop);
|
2178
2219
|
}
|
2179
2220
|
|
2180
|
-
|
2221
|
+
$$$1(this._backdrop).addClass(ClassName.SHOW);
|
2181
2222
|
|
2182
2223
|
if (!callback) {
|
2183
2224
|
return;
|
@@ -2188,9 +2229,9 @@ var Modal = function () {
|
|
2188
2229
|
return;
|
2189
2230
|
}
|
2190
2231
|
|
2191
|
-
|
2232
|
+
$$$1(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(BACKDROP_TRANSITION_DURATION);
|
2192
2233
|
} else if (!this._isShown && this._backdrop) {
|
2193
|
-
|
2234
|
+
$$$1(this._backdrop).removeClass(ClassName.SHOW);
|
2194
2235
|
|
2195
2236
|
var callbackRemove = function callbackRemove() {
|
2196
2237
|
_this8._removeBackdrop();
|
@@ -2200,8 +2241,8 @@ var Modal = function () {
|
|
2200
2241
|
}
|
2201
2242
|
};
|
2202
2243
|
|
2203
|
-
if (Util.supportsTransitionEnd() &&
|
2204
|
-
|
2244
|
+
if (Util.supportsTransitionEnd() && $$$1(this._element).hasClass(ClassName.FADE)) {
|
2245
|
+
$$$1(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(BACKDROP_TRANSITION_DURATION);
|
2205
2246
|
} else {
|
2206
2247
|
callbackRemove();
|
2207
2248
|
}
|
@@ -2244,52 +2285,52 @@ var Modal = function () {
|
|
2244
2285
|
// Note: DOMNode.style.paddingRight returns the actual value or '' if not set
|
2245
2286
|
// while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set
|
2246
2287
|
// Adjust fixed content padding
|
2247
|
-
|
2248
|
-
var actualPadding =
|
2249
|
-
var calculatedPadding =
|
2250
|
-
|
2288
|
+
$$$1(Selector.FIXED_CONTENT).each(function (index, element) {
|
2289
|
+
var actualPadding = $$$1(element)[0].style.paddingRight;
|
2290
|
+
var calculatedPadding = $$$1(element).css('padding-right');
|
2291
|
+
$$$1(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px");
|
2251
2292
|
}); // Adjust sticky content margin
|
2252
2293
|
|
2253
|
-
|
2254
|
-
var actualMargin =
|
2255
|
-
var calculatedMargin =
|
2256
|
-
|
2294
|
+
$$$1(Selector.STICKY_CONTENT).each(function (index, element) {
|
2295
|
+
var actualMargin = $$$1(element)[0].style.marginRight;
|
2296
|
+
var calculatedMargin = $$$1(element).css('margin-right');
|
2297
|
+
$$$1(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px");
|
2257
2298
|
}); // Adjust navbar-toggler margin
|
2258
2299
|
|
2259
|
-
|
2260
|
-
var actualMargin =
|
2261
|
-
var calculatedMargin =
|
2262
|
-
|
2300
|
+
$$$1(Selector.NAVBAR_TOGGLER).each(function (index, element) {
|
2301
|
+
var actualMargin = $$$1(element)[0].style.marginRight;
|
2302
|
+
var calculatedMargin = $$$1(element).css('margin-right');
|
2303
|
+
$$$1(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) + _this9._scrollbarWidth + "px");
|
2263
2304
|
}); // Adjust body padding
|
2264
2305
|
|
2265
2306
|
var actualPadding = document.body.style.paddingRight;
|
2266
|
-
var calculatedPadding =
|
2267
|
-
|
2307
|
+
var calculatedPadding = $$$1('body').css('padding-right');
|
2308
|
+
$$$1('body').data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
|
2268
2309
|
}
|
2269
2310
|
};
|
2270
2311
|
|
2271
2312
|
_proto._resetScrollbar = function _resetScrollbar() {
|
2272
2313
|
// Restore fixed content padding
|
2273
|
-
|
2274
|
-
var padding =
|
2314
|
+
$$$1(Selector.FIXED_CONTENT).each(function (index, element) {
|
2315
|
+
var padding = $$$1(element).data('padding-right');
|
2275
2316
|
|
2276
2317
|
if (typeof padding !== 'undefined') {
|
2277
|
-
|
2318
|
+
$$$1(element).css('padding-right', padding).removeData('padding-right');
|
2278
2319
|
}
|
2279
2320
|
}); // Restore sticky content and navbar-toggler margin
|
2280
2321
|
|
2281
|
-
|
2282
|
-
var margin =
|
2322
|
+
$$$1(Selector.STICKY_CONTENT + ", " + Selector.NAVBAR_TOGGLER).each(function (index, element) {
|
2323
|
+
var margin = $$$1(element).data('margin-right');
|
2283
2324
|
|
2284
2325
|
if (typeof margin !== 'undefined') {
|
2285
|
-
|
2326
|
+
$$$1(element).css('margin-right', margin).removeData('margin-right');
|
2286
2327
|
}
|
2287
2328
|
}); // Restore body padding
|
2288
2329
|
|
2289
|
-
var padding =
|
2330
|
+
var padding = $$$1('body').data('padding-right');
|
2290
2331
|
|
2291
2332
|
if (typeof padding !== 'undefined') {
|
2292
|
-
|
2333
|
+
$$$1('body').css('padding-right', padding).removeData('padding-right');
|
2293
2334
|
}
|
2294
2335
|
};
|
2295
2336
|
|
@@ -2301,23 +2342,23 @@ var Modal = function () {
|
|
2301
2342
|
var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth;
|
2302
2343
|
document.body.removeChild(scrollDiv);
|
2303
2344
|
return scrollbarWidth;
|
2304
|
-
}; //
|
2345
|
+
}; // Static
|
2305
2346
|
|
2306
2347
|
|
2307
2348
|
Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
|
2308
2349
|
return this.each(function () {
|
2309
|
-
var data =
|
2350
|
+
var data = $$$1(this).data(DATA_KEY);
|
2310
2351
|
|
2311
|
-
var _config =
|
2352
|
+
var _config = _extends({}, Modal.Default, $$$1(this).data(), typeof config === 'object' && config);
|
2312
2353
|
|
2313
2354
|
if (!data) {
|
2314
2355
|
data = new Modal(this, _config);
|
2315
|
-
|
2356
|
+
$$$1(this).data(DATA_KEY, data);
|
2316
2357
|
}
|
2317
2358
|
|
2318
2359
|
if (typeof config === 'string') {
|
2319
2360
|
if (typeof data[config] === 'undefined') {
|
2320
|
-
throw new
|
2361
|
+
throw new TypeError("No method named \"" + config + "\"");
|
2321
2362
|
}
|
2322
2363
|
|
2323
2364
|
data[config](relatedTarget);
|
@@ -2327,7 +2368,7 @@ var Modal = function () {
|
|
2327
2368
|
});
|
2328
2369
|
};
|
2329
2370
|
|
2330
|
-
|
2371
|
+
_createClass(Modal, null, [{
|
2331
2372
|
key: "VERSION",
|
2332
2373
|
get: function get() {
|
2333
2374
|
return VERSION;
|
@@ -2347,36 +2388,36 @@ var Modal = function () {
|
|
2347
2388
|
*/
|
2348
2389
|
|
2349
2390
|
|
2350
|
-
|
2391
|
+
$$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
|
2351
2392
|
var _this10 = this;
|
2352
2393
|
|
2353
2394
|
var target;
|
2354
2395
|
var selector = Util.getSelectorFromElement(this);
|
2355
2396
|
|
2356
2397
|
if (selector) {
|
2357
|
-
target =
|
2398
|
+
target = $$$1(selector)[0];
|
2358
2399
|
}
|
2359
2400
|
|
2360
|
-
var config =
|
2401
|
+
var config = $$$1(target).data(DATA_KEY) ? 'toggle' : _extends({}, $$$1(target).data(), $$$1(this).data());
|
2361
2402
|
|
2362
2403
|
if (this.tagName === 'A' || this.tagName === 'AREA') {
|
2363
2404
|
event.preventDefault();
|
2364
2405
|
}
|
2365
2406
|
|
2366
|
-
var $target =
|
2407
|
+
var $target = $$$1(target).one(Event.SHOW, function (showEvent) {
|
2367
2408
|
if (showEvent.isDefaultPrevented()) {
|
2368
|
-
//
|
2409
|
+
// Only register focus restorer if modal will actually get shown
|
2369
2410
|
return;
|
2370
2411
|
}
|
2371
2412
|
|
2372
2413
|
$target.one(Event.HIDDEN, function () {
|
2373
|
-
if (
|
2414
|
+
if ($$$1(_this10).is(':visible')) {
|
2374
2415
|
_this10.focus();
|
2375
2416
|
}
|
2376
2417
|
});
|
2377
2418
|
});
|
2378
2419
|
|
2379
|
-
Modal._jQueryInterface.call(
|
2420
|
+
Modal._jQueryInterface.call($$$1(target), config, this);
|
2380
2421
|
});
|
2381
2422
|
/**
|
2382
2423
|
* ------------------------------------------------------------------------
|
@@ -2384,11 +2425,11 @@ var Modal = function () {
|
|
2384
2425
|
* ------------------------------------------------------------------------
|
2385
2426
|
*/
|
2386
2427
|
|
2387
|
-
|
2388
|
-
|
2428
|
+
$$$1.fn[NAME] = Modal._jQueryInterface;
|
2429
|
+
$$$1.fn[NAME].Constructor = Modal;
|
2389
2430
|
|
2390
|
-
|
2391
|
-
|
2431
|
+
$$$1.fn[NAME].noConflict = function () {
|
2432
|
+
$$$1.fn[NAME] = JQUERY_NO_CONFLICT;
|
2392
2433
|
return Modal._jQueryInterface;
|
2393
2434
|
};
|
2394
2435
|
|
@@ -2397,31 +2438,22 @@ var Modal = function () {
|
|
2397
2438
|
|
2398
2439
|
/**
|
2399
2440
|
* --------------------------------------------------------------------------
|
2400
|
-
* Bootstrap (v4.0.0
|
2441
|
+
* Bootstrap (v4.0.0): tooltip.js
|
2401
2442
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
2402
2443
|
* --------------------------------------------------------------------------
|
2403
2444
|
*/
|
2404
2445
|
|
2405
|
-
var Tooltip = function () {
|
2406
|
-
/**
|
2407
|
-
* Check for Popper dependency
|
2408
|
-
* Popper - https://popper.js.org
|
2409
|
-
*/
|
2410
|
-
if (typeof Popper === 'undefined') {
|
2411
|
-
throw new Error('Bootstrap tooltips require Popper.js (https://popper.js.org)');
|
2412
|
-
}
|
2446
|
+
var Tooltip = function ($$$1) {
|
2413
2447
|
/**
|
2414
2448
|
* ------------------------------------------------------------------------
|
2415
2449
|
* Constants
|
2416
2450
|
* ------------------------------------------------------------------------
|
2417
2451
|
*/
|
2418
|
-
|
2419
|
-
|
2420
2452
|
var NAME = 'tooltip';
|
2421
|
-
var VERSION = '4.0.0
|
2453
|
+
var VERSION = '4.0.0';
|
2422
2454
|
var DATA_KEY = 'bs.tooltip';
|
2423
2455
|
var EVENT_KEY = "." + DATA_KEY;
|
2424
|
-
var JQUERY_NO_CONFLICT =
|
2456
|
+
var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
|
2425
2457
|
var TRANSITION_DURATION = 150;
|
2426
2458
|
var CLASS_PREFIX = 'bs-tooltip';
|
2427
2459
|
var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
|
@@ -2436,7 +2468,8 @@ var Tooltip = function () {
|
|
2436
2468
|
placement: '(string|function)',
|
2437
2469
|
offset: '(number|string)',
|
2438
2470
|
container: '(string|element|boolean)',
|
2439
|
-
fallbackPlacement: '(string|array)'
|
2471
|
+
fallbackPlacement: '(string|array)',
|
2472
|
+
boundary: '(string|element)'
|
2440
2473
|
};
|
2441
2474
|
var AttachmentMap = {
|
2442
2475
|
AUTO: 'auto',
|
@@ -2456,7 +2489,8 @@ var Tooltip = function () {
|
|
2456
2489
|
placement: 'top',
|
2457
2490
|
offset: 0,
|
2458
2491
|
container: false,
|
2459
|
-
fallbackPlacement: 'flip'
|
2492
|
+
fallbackPlacement: 'flip',
|
2493
|
+
boundary: 'scrollParent'
|
2460
2494
|
};
|
2461
2495
|
var HoverState = {
|
2462
2496
|
SHOW: 'show',
|
@@ -2500,24 +2534,32 @@ var Tooltip = function () {
|
|
2500
2534
|
/*#__PURE__*/
|
2501
2535
|
function () {
|
2502
2536
|
function Tooltip(element, config) {
|
2503
|
-
|
2537
|
+
/**
|
2538
|
+
* Check for Popper dependency
|
2539
|
+
* Popper - https://popper.js.org
|
2540
|
+
*/
|
2541
|
+
if (typeof Popper === 'undefined') {
|
2542
|
+
throw new TypeError('Bootstrap tooltips require Popper.js (https://popper.js.org)');
|
2543
|
+
} // private
|
2544
|
+
|
2545
|
+
|
2504
2546
|
this._isEnabled = true;
|
2505
2547
|
this._timeout = 0;
|
2506
2548
|
this._hoverState = '';
|
2507
2549
|
this._activeTrigger = {};
|
2508
|
-
this._popper = null; //
|
2550
|
+
this._popper = null; // Protected
|
2509
2551
|
|
2510
2552
|
this.element = element;
|
2511
2553
|
this.config = this._getConfig(config);
|
2512
2554
|
this.tip = null;
|
2513
2555
|
|
2514
2556
|
this._setListeners();
|
2515
|
-
} //
|
2557
|
+
} // Getters
|
2516
2558
|
|
2517
2559
|
|
2518
2560
|
var _proto = Tooltip.prototype;
|
2519
2561
|
|
2520
|
-
//
|
2562
|
+
// Public
|
2521
2563
|
_proto.enable = function enable() {
|
2522
2564
|
this._isEnabled = true;
|
2523
2565
|
};
|
@@ -2537,11 +2579,11 @@ var Tooltip = function () {
|
|
2537
2579
|
|
2538
2580
|
if (event) {
|
2539
2581
|
var dataKey = this.constructor.DATA_KEY;
|
2540
|
-
var context =
|
2582
|
+
var context = $$$1(event.currentTarget).data(dataKey);
|
2541
2583
|
|
2542
2584
|
if (!context) {
|
2543
2585
|
context = new this.constructor(event.currentTarget, this._getDelegateConfig());
|
2544
|
-
|
2586
|
+
$$$1(event.currentTarget).data(dataKey, context);
|
2545
2587
|
}
|
2546
2588
|
|
2547
2589
|
context._activeTrigger.click = !context._activeTrigger.click;
|
@@ -2552,7 +2594,7 @@ var Tooltip = function () {
|
|
2552
2594
|
context._leave(null, context);
|
2553
2595
|
}
|
2554
2596
|
} else {
|
2555
|
-
if (
|
2597
|
+
if ($$$1(this.getTipElement()).hasClass(ClassName.SHOW)) {
|
2556
2598
|
this._leave(null, this);
|
2557
2599
|
|
2558
2600
|
return;
|
@@ -2564,12 +2606,12 @@ var Tooltip = function () {
|
|
2564
2606
|
|
2565
2607
|
_proto.dispose = function dispose() {
|
2566
2608
|
clearTimeout(this._timeout);
|
2567
|
-
|
2568
|
-
|
2569
|
-
|
2609
|
+
$$$1.removeData(this.element, this.constructor.DATA_KEY);
|
2610
|
+
$$$1(this.element).off(this.constructor.EVENT_KEY);
|
2611
|
+
$$$1(this.element).closest('.modal').off('hide.bs.modal');
|
2570
2612
|
|
2571
2613
|
if (this.tip) {
|
2572
|
-
|
2614
|
+
$$$1(this.tip).remove();
|
2573
2615
|
}
|
2574
2616
|
|
2575
2617
|
this._isEnabled = null;
|
@@ -2590,15 +2632,15 @@ var Tooltip = function () {
|
|
2590
2632
|
_proto.show = function show() {
|
2591
2633
|
var _this = this;
|
2592
2634
|
|
2593
|
-
if (
|
2635
|
+
if ($$$1(this.element).css('display') === 'none') {
|
2594
2636
|
throw new Error('Please use show on visible elements');
|
2595
2637
|
}
|
2596
2638
|
|
2597
|
-
var showEvent =
|
2639
|
+
var showEvent = $$$1.Event(this.constructor.Event.SHOW);
|
2598
2640
|
|
2599
2641
|
if (this.isWithContent() && this._isEnabled) {
|
2600
|
-
|
2601
|
-
var isInTheDom =
|
2642
|
+
$$$1(this.element).trigger(showEvent);
|
2643
|
+
var isInTheDom = $$$1.contains(this.element.ownerDocument.documentElement, this.element);
|
2602
2644
|
|
2603
2645
|
if (showEvent.isDefaultPrevented() || !isInTheDom) {
|
2604
2646
|
return;
|
@@ -2611,7 +2653,7 @@ var Tooltip = function () {
|
|
2611
2653
|
this.setContent();
|
2612
2654
|
|
2613
2655
|
if (this.config.animation) {
|
2614
|
-
|
2656
|
+
$$$1(tip).addClass(ClassName.FADE);
|
2615
2657
|
}
|
2616
2658
|
|
2617
2659
|
var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;
|
@@ -2619,14 +2661,14 @@ var Tooltip = function () {
|
|
2619
2661
|
var attachment = this._getAttachment(placement);
|
2620
2662
|
|
2621
2663
|
this.addAttachmentClass(attachment);
|
2622
|
-
var container = this.config.container === false ? document.body :
|
2623
|
-
|
2664
|
+
var container = this.config.container === false ? document.body : $$$1(this.config.container);
|
2665
|
+
$$$1(tip).data(this.constructor.DATA_KEY, this);
|
2624
2666
|
|
2625
|
-
if (
|
2626
|
-
|
2667
|
+
if (!$$$1.contains(this.element.ownerDocument.documentElement, this.tip)) {
|
2668
|
+
$$$1(tip).appendTo(container);
|
2627
2669
|
}
|
2628
2670
|
|
2629
|
-
|
2671
|
+
$$$1(this.element).trigger(this.constructor.Event.INSERTED);
|
2630
2672
|
this._popper = new Popper(this.element, tip, {
|
2631
2673
|
placement: attachment,
|
2632
2674
|
modifiers: {
|
@@ -2638,6 +2680,9 @@ var Tooltip = function () {
|
|
2638
2680
|
},
|
2639
2681
|
arrow: {
|
2640
2682
|
element: Selector.ARROW
|
2683
|
+
},
|
2684
|
+
preventOverflow: {
|
2685
|
+
boundariesElement: this.config.boundary
|
2641
2686
|
}
|
2642
2687
|
},
|
2643
2688
|
onCreate: function onCreate(data) {
|
@@ -2649,13 +2694,13 @@ var Tooltip = function () {
|
|
2649
2694
|
_this._handlePopperPlacementChange(data);
|
2650
2695
|
}
|
2651
2696
|
});
|
2652
|
-
|
2697
|
+
$$$1(tip).addClass(ClassName.SHOW); // If this is a touch-enabled device we add extra
|
2653
2698
|
// empty mouseover listeners to the body's immediate children;
|
2654
2699
|
// only needed because of broken event delegation on iOS
|
2655
2700
|
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
|
2656
2701
|
|
2657
2702
|
if ('ontouchstart' in document.documentElement) {
|
2658
|
-
|
2703
|
+
$$$1('body').children().on('mouseover', null, $$$1.noop);
|
2659
2704
|
}
|
2660
2705
|
|
2661
2706
|
var complete = function complete() {
|
@@ -2665,15 +2710,15 @@ var Tooltip = function () {
|
|
2665
2710
|
|
2666
2711
|
var prevHoverState = _this._hoverState;
|
2667
2712
|
_this._hoverState = null;
|
2668
|
-
|
2713
|
+
$$$1(_this.element).trigger(_this.constructor.Event.SHOWN);
|
2669
2714
|
|
2670
2715
|
if (prevHoverState === HoverState.OUT) {
|
2671
2716
|
_this._leave(null, _this);
|
2672
2717
|
}
|
2673
2718
|
};
|
2674
2719
|
|
2675
|
-
if (Util.supportsTransitionEnd() &&
|
2676
|
-
|
2720
|
+
if (Util.supportsTransitionEnd() && $$$1(this.tip).hasClass(ClassName.FADE)) {
|
2721
|
+
$$$1(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(Tooltip._TRANSITION_DURATION);
|
2677
2722
|
} else {
|
2678
2723
|
complete();
|
2679
2724
|
}
|
@@ -2684,7 +2729,7 @@ var Tooltip = function () {
|
|
2684
2729
|
var _this2 = this;
|
2685
2730
|
|
2686
2731
|
var tip = this.getTipElement();
|
2687
|
-
var hideEvent =
|
2732
|
+
var hideEvent = $$$1.Event(this.constructor.Event.HIDE);
|
2688
2733
|
|
2689
2734
|
var complete = function complete() {
|
2690
2735
|
if (_this2._hoverState !== HoverState.SHOW && tip.parentNode) {
|
@@ -2695,7 +2740,7 @@ var Tooltip = function () {
|
|
2695
2740
|
|
2696
2741
|
_this2.element.removeAttribute('aria-describedby');
|
2697
2742
|
|
2698
|
-
|
2743
|
+
$$$1(_this2.element).trigger(_this2.constructor.Event.HIDDEN);
|
2699
2744
|
|
2700
2745
|
if (_this2._popper !== null) {
|
2701
2746
|
_this2._popper.destroy();
|
@@ -2706,25 +2751,25 @@ var Tooltip = function () {
|
|
2706
2751
|
}
|
2707
2752
|
};
|
2708
2753
|
|
2709
|
-
|
2754
|
+
$$$1(this.element).trigger(hideEvent);
|
2710
2755
|
|
2711
2756
|
if (hideEvent.isDefaultPrevented()) {
|
2712
2757
|
return;
|
2713
2758
|
}
|
2714
2759
|
|
2715
|
-
|
2760
|
+
$$$1(tip).removeClass(ClassName.SHOW); // If this is a touch-enabled device we remove the extra
|
2716
2761
|
// empty mouseover listeners we added for iOS support
|
2717
2762
|
|
2718
2763
|
if ('ontouchstart' in document.documentElement) {
|
2719
|
-
|
2764
|
+
$$$1('body').children().off('mouseover', null, $$$1.noop);
|
2720
2765
|
}
|
2721
2766
|
|
2722
2767
|
this._activeTrigger[Trigger.CLICK] = false;
|
2723
2768
|
this._activeTrigger[Trigger.FOCUS] = false;
|
2724
2769
|
this._activeTrigger[Trigger.HOVER] = false;
|
2725
2770
|
|
2726
|
-
if (Util.supportsTransitionEnd() &&
|
2727
|
-
|
2771
|
+
if (Util.supportsTransitionEnd() && $$$1(this.tip).hasClass(ClassName.FADE)) {
|
2772
|
+
$$$1(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION);
|
2728
2773
|
} else {
|
2729
2774
|
complete();
|
2730
2775
|
}
|
@@ -2736,7 +2781,7 @@ var Tooltip = function () {
|
|
2736
2781
|
if (this._popper !== null) {
|
2737
2782
|
this._popper.scheduleUpdate();
|
2738
2783
|
}
|
2739
|
-
}; //
|
2784
|
+
}; // Protected
|
2740
2785
|
|
2741
2786
|
|
2742
2787
|
_proto.isWithContent = function isWithContent() {
|
@@ -2744,16 +2789,16 @@ var Tooltip = function () {
|
|
2744
2789
|
};
|
2745
2790
|
|
2746
2791
|
_proto.addAttachmentClass = function addAttachmentClass(attachment) {
|
2747
|
-
|
2792
|
+
$$$1(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
|
2748
2793
|
};
|
2749
2794
|
|
2750
2795
|
_proto.getTipElement = function getTipElement() {
|
2751
|
-
this.tip = this.tip ||
|
2796
|
+
this.tip = this.tip || $$$1(this.config.template)[0];
|
2752
2797
|
return this.tip;
|
2753
2798
|
};
|
2754
2799
|
|
2755
2800
|
_proto.setContent = function setContent() {
|
2756
|
-
var $tip =
|
2801
|
+
var $tip = $$$1(this.getTipElement());
|
2757
2802
|
this.setElementContent($tip.find(Selector.TOOLTIP_INNER), this.getTitle());
|
2758
2803
|
$tip.removeClass(ClassName.FADE + " " + ClassName.SHOW);
|
2759
2804
|
};
|
@@ -2762,13 +2807,13 @@ var Tooltip = function () {
|
|
2762
2807
|
var html = this.config.html;
|
2763
2808
|
|
2764
2809
|
if (typeof content === 'object' && (content.nodeType || content.jquery)) {
|
2765
|
-
//
|
2810
|
+
// Content is a DOM node or a jQuery
|
2766
2811
|
if (html) {
|
2767
|
-
if (
|
2812
|
+
if (!$$$1(content).parent().is($element)) {
|
2768
2813
|
$element.empty().append(content);
|
2769
2814
|
}
|
2770
2815
|
} else {
|
2771
|
-
$element.text(
|
2816
|
+
$element.text($$$1(content).text());
|
2772
2817
|
}
|
2773
2818
|
} else {
|
2774
2819
|
$element[html ? 'html' : 'text'](content);
|
@@ -2783,7 +2828,7 @@ var Tooltip = function () {
|
|
2783
2828
|
}
|
2784
2829
|
|
2785
2830
|
return title;
|
2786
|
-
}; //
|
2831
|
+
}; // Private
|
2787
2832
|
|
2788
2833
|
|
2789
2834
|
_proto._getAttachment = function _getAttachment(placement) {
|
@@ -2796,26 +2841,26 @@ var Tooltip = function () {
|
|
2796
2841
|
var triggers = this.config.trigger.split(' ');
|
2797
2842
|
triggers.forEach(function (trigger) {
|
2798
2843
|
if (trigger === 'click') {
|
2799
|
-
|
2844
|
+
$$$1(_this3.element).on(_this3.constructor.Event.CLICK, _this3.config.selector, function (event) {
|
2800
2845
|
return _this3.toggle(event);
|
2801
2846
|
});
|
2802
2847
|
} else if (trigger !== Trigger.MANUAL) {
|
2803
2848
|
var eventIn = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSEENTER : _this3.constructor.Event.FOCUSIN;
|
2804
2849
|
var eventOut = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSELEAVE : _this3.constructor.Event.FOCUSOUT;
|
2805
|
-
|
2850
|
+
$$$1(_this3.element).on(eventIn, _this3.config.selector, function (event) {
|
2806
2851
|
return _this3._enter(event);
|
2807
2852
|
}).on(eventOut, _this3.config.selector, function (event) {
|
2808
2853
|
return _this3._leave(event);
|
2809
2854
|
});
|
2810
2855
|
}
|
2811
2856
|
|
2812
|
-
|
2857
|
+
$$$1(_this3.element).closest('.modal').on('hide.bs.modal', function () {
|
2813
2858
|
return _this3.hide();
|
2814
2859
|
});
|
2815
2860
|
});
|
2816
2861
|
|
2817
2862
|
if (this.config.selector) {
|
2818
|
-
this.config =
|
2863
|
+
this.config = _extends({}, this.config, {
|
2819
2864
|
trigger: 'manual',
|
2820
2865
|
selector: ''
|
2821
2866
|
});
|
@@ -2835,18 +2880,18 @@ var Tooltip = function () {
|
|
2835
2880
|
|
2836
2881
|
_proto._enter = function _enter(event, context) {
|
2837
2882
|
var dataKey = this.constructor.DATA_KEY;
|
2838
|
-
context = context ||
|
2883
|
+
context = context || $$$1(event.currentTarget).data(dataKey);
|
2839
2884
|
|
2840
2885
|
if (!context) {
|
2841
2886
|
context = new this.constructor(event.currentTarget, this._getDelegateConfig());
|
2842
|
-
|
2887
|
+
$$$1(event.currentTarget).data(dataKey, context);
|
2843
2888
|
}
|
2844
2889
|
|
2845
2890
|
if (event) {
|
2846
2891
|
context._activeTrigger[event.type === 'focusin' ? Trigger.FOCUS : Trigger.HOVER] = true;
|
2847
2892
|
}
|
2848
2893
|
|
2849
|
-
if (
|
2894
|
+
if ($$$1(context.getTipElement()).hasClass(ClassName.SHOW) || context._hoverState === HoverState.SHOW) {
|
2850
2895
|
context._hoverState = HoverState.SHOW;
|
2851
2896
|
return;
|
2852
2897
|
}
|
@@ -2868,11 +2913,11 @@ var Tooltip = function () {
|
|
2868
2913
|
|
2869
2914
|
_proto._leave = function _leave(event, context) {
|
2870
2915
|
var dataKey = this.constructor.DATA_KEY;
|
2871
|
-
context = context ||
|
2916
|
+
context = context || $$$1(event.currentTarget).data(dataKey);
|
2872
2917
|
|
2873
2918
|
if (!context) {
|
2874
2919
|
context = new this.constructor(event.currentTarget, this._getDelegateConfig());
|
2875
|
-
|
2920
|
+
$$$1(event.currentTarget).data(dataKey, context);
|
2876
2921
|
}
|
2877
2922
|
|
2878
2923
|
if (event) {
|
@@ -2909,7 +2954,7 @@ var Tooltip = function () {
|
|
2909
2954
|
};
|
2910
2955
|
|
2911
2956
|
_proto._getConfig = function _getConfig(config) {
|
2912
|
-
config =
|
2957
|
+
config = _extends({}, this.constructor.Default, $$$1(this.element).data(), config);
|
2913
2958
|
|
2914
2959
|
if (typeof config.delay === 'number') {
|
2915
2960
|
config.delay = {
|
@@ -2945,7 +2990,7 @@ var Tooltip = function () {
|
|
2945
2990
|
};
|
2946
2991
|
|
2947
2992
|
_proto._cleanTipClass = function _cleanTipClass() {
|
2948
|
-
var $tip =
|
2993
|
+
var $tip = $$$1(this.getTipElement());
|
2949
2994
|
var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
|
2950
2995
|
|
2951
2996
|
if (tabClass !== null && tabClass.length > 0) {
|
@@ -2967,17 +3012,17 @@ var Tooltip = function () {
|
|
2967
3012
|
return;
|
2968
3013
|
}
|
2969
3014
|
|
2970
|
-
|
3015
|
+
$$$1(tip).removeClass(ClassName.FADE);
|
2971
3016
|
this.config.animation = false;
|
2972
3017
|
this.hide();
|
2973
3018
|
this.show();
|
2974
3019
|
this.config.animation = initConfigAnimation;
|
2975
|
-
}; //
|
3020
|
+
}; // Static
|
2976
3021
|
|
2977
3022
|
|
2978
3023
|
Tooltip._jQueryInterface = function _jQueryInterface(config) {
|
2979
3024
|
return this.each(function () {
|
2980
|
-
var data =
|
3025
|
+
var data = $$$1(this).data(DATA_KEY);
|
2981
3026
|
|
2982
3027
|
var _config = typeof config === 'object' && config;
|
2983
3028
|
|
@@ -2987,12 +3032,12 @@ var Tooltip = function () {
|
|
2987
3032
|
|
2988
3033
|
if (!data) {
|
2989
3034
|
data = new Tooltip(this, _config);
|
2990
|
-
|
3035
|
+
$$$1(this).data(DATA_KEY, data);
|
2991
3036
|
}
|
2992
3037
|
|
2993
3038
|
if (typeof config === 'string') {
|
2994
3039
|
if (typeof data[config] === 'undefined') {
|
2995
|
-
throw new
|
3040
|
+
throw new TypeError("No method named \"" + config + "\"");
|
2996
3041
|
}
|
2997
3042
|
|
2998
3043
|
data[config]();
|
@@ -3000,7 +3045,7 @@ var Tooltip = function () {
|
|
3000
3045
|
});
|
3001
3046
|
};
|
3002
3047
|
|
3003
|
-
|
3048
|
+
_createClass(Tooltip, null, [{
|
3004
3049
|
key: "VERSION",
|
3005
3050
|
get: function get() {
|
3006
3051
|
return VERSION;
|
@@ -3045,11 +3090,11 @@ var Tooltip = function () {
|
|
3045
3090
|
*/
|
3046
3091
|
|
3047
3092
|
|
3048
|
-
|
3049
|
-
|
3093
|
+
$$$1.fn[NAME] = Tooltip._jQueryInterface;
|
3094
|
+
$$$1.fn[NAME].Constructor = Tooltip;
|
3050
3095
|
|
3051
|
-
|
3052
|
-
|
3096
|
+
$$$1.fn[NAME].noConflict = function () {
|
3097
|
+
$$$1.fn[NAME] = JQUERY_NO_CONFLICT;
|
3053
3098
|
return Tooltip._jQueryInterface;
|
3054
3099
|
};
|
3055
3100
|
|
@@ -3058,31 +3103,31 @@ var Tooltip = function () {
|
|
3058
3103
|
|
3059
3104
|
/**
|
3060
3105
|
* --------------------------------------------------------------------------
|
3061
|
-
* Bootstrap (v4.0.0
|
3106
|
+
* Bootstrap (v4.0.0): popover.js
|
3062
3107
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
3063
3108
|
* --------------------------------------------------------------------------
|
3064
3109
|
*/
|
3065
3110
|
|
3066
|
-
var Popover = function () {
|
3111
|
+
var Popover = function ($$$1) {
|
3067
3112
|
/**
|
3068
3113
|
* ------------------------------------------------------------------------
|
3069
3114
|
* Constants
|
3070
3115
|
* ------------------------------------------------------------------------
|
3071
3116
|
*/
|
3072
3117
|
var NAME = 'popover';
|
3073
|
-
var VERSION = '4.0.0
|
3118
|
+
var VERSION = '4.0.0';
|
3074
3119
|
var DATA_KEY = 'bs.popover';
|
3075
3120
|
var EVENT_KEY = "." + DATA_KEY;
|
3076
|
-
var JQUERY_NO_CONFLICT =
|
3121
|
+
var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
|
3077
3122
|
var CLASS_PREFIX = 'bs-popover';
|
3078
3123
|
var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
|
3079
|
-
var Default =
|
3124
|
+
var Default = _extends({}, Tooltip.Default, {
|
3080
3125
|
placement: 'right',
|
3081
3126
|
trigger: 'click',
|
3082
3127
|
content: '',
|
3083
3128
|
template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
|
3084
3129
|
});
|
3085
|
-
var DefaultType =
|
3130
|
+
var DefaultType = _extends({}, Tooltip.DefaultType, {
|
3086
3131
|
content: '(string|element|function)'
|
3087
3132
|
});
|
3088
3133
|
var ClassName = {
|
@@ -3115,7 +3160,7 @@ var Popover = function () {
|
|
3115
3160
|
var Popover =
|
3116
3161
|
/*#__PURE__*/
|
3117
3162
|
function (_Tooltip) {
|
3118
|
-
|
3163
|
+
_inheritsLoose(Popover, _Tooltip);
|
3119
3164
|
|
3120
3165
|
function Popover() {
|
3121
3166
|
return _Tooltip.apply(this, arguments) || this;
|
@@ -3123,46 +3168,53 @@ var Popover = function () {
|
|
3123
3168
|
|
3124
3169
|
var _proto = Popover.prototype;
|
3125
3170
|
|
3126
|
-
//
|
3171
|
+
// Overrides
|
3127
3172
|
_proto.isWithContent = function isWithContent() {
|
3128
3173
|
return this.getTitle() || this._getContent();
|
3129
3174
|
};
|
3130
3175
|
|
3131
3176
|
_proto.addAttachmentClass = function addAttachmentClass(attachment) {
|
3132
|
-
|
3177
|
+
$$$1(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
|
3133
3178
|
};
|
3134
3179
|
|
3135
3180
|
_proto.getTipElement = function getTipElement() {
|
3136
|
-
this.tip = this.tip ||
|
3181
|
+
this.tip = this.tip || $$$1(this.config.template)[0];
|
3137
3182
|
return this.tip;
|
3138
3183
|
};
|
3139
3184
|
|
3140
3185
|
_proto.setContent = function setContent() {
|
3141
|
-
var $tip =
|
3186
|
+
var $tip = $$$1(this.getTipElement()); // We use append for html objects to maintain js events
|
3142
3187
|
|
3143
3188
|
this.setElementContent($tip.find(Selector.TITLE), this.getTitle());
|
3144
|
-
|
3189
|
+
|
3190
|
+
var content = this._getContent();
|
3191
|
+
|
3192
|
+
if (typeof content === 'function') {
|
3193
|
+
content = content.call(this.element);
|
3194
|
+
}
|
3195
|
+
|
3196
|
+
this.setElementContent($tip.find(Selector.CONTENT), content);
|
3145
3197
|
$tip.removeClass(ClassName.FADE + " " + ClassName.SHOW);
|
3146
|
-
}; //
|
3198
|
+
}; // Private
|
3147
3199
|
|
3148
3200
|
|
3149
3201
|
_proto._getContent = function _getContent() {
|
3150
|
-
return this.element.getAttribute('data-content') ||
|
3202
|
+
return this.element.getAttribute('data-content') || this.config.content;
|
3151
3203
|
};
|
3152
3204
|
|
3153
3205
|
_proto._cleanTipClass = function _cleanTipClass() {
|
3154
|
-
var $tip =
|
3206
|
+
var $tip = $$$1(this.getTipElement());
|
3155
3207
|
var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
|
3156
3208
|
|
3157
3209
|
if (tabClass !== null && tabClass.length > 0) {
|
3158
3210
|
$tip.removeClass(tabClass.join(''));
|
3159
3211
|
}
|
3160
|
-
}; //
|
3212
|
+
}; // Static
|
3161
3213
|
|
3162
3214
|
|
3163
3215
|
Popover._jQueryInterface = function _jQueryInterface(config) {
|
3164
3216
|
return this.each(function () {
|
3165
|
-
var data =
|
3217
|
+
var data = $$$1(this).data(DATA_KEY);
|
3166
3218
|
|
3167
3219
|
var _config = typeof config === 'object' ? config : null;
|
3168
3220
|
|
@@ -3172,12 +3224,12 @@ var Popover = function () {
|
|
3172
3224
|
|
3173
3225
|
if (!data) {
|
3174
3226
|
data = new Popover(this, _config);
|
3175
|
-
|
3227
|
+
$$$1(this).data(DATA_KEY, data);
|
3176
3228
|
}
|
3177
3229
|
|
3178
3230
|
if (typeof config === 'string') {
|
3179
3231
|
if (typeof data[config] === 'undefined') {
|
3180
|
-
throw new
|
3232
|
+
throw new TypeError("No method named \"" + config + "\"");
|
3181
3233
|
}
|
3182
3234
|
|
3183
3235
|
data[config]();
|
@@ -3185,9 +3237,9 @@ var Popover = function () {
|
|
3185
3237
|
});
|
3186
3238
|
};
|
3187
3239
|
|
3188
|
-
|
3240
|
+
_createClass(Popover, null, [{
|
3189
3241
|
key: "VERSION",
|
3190
|
-
//
|
3242
|
+
// Getters
|
3191
3243
|
get: function get() {
|
3192
3244
|
return VERSION;
|
3193
3245
|
}
|
@@ -3231,11 +3283,11 @@ var Popover = function () {
|
|
3231
3283
|
*/
|
3232
3284
|
|
3233
3285
|
|
3234
|
-
|
3235
|
-
|
3286
|
+
$$$1.fn[NAME] = Popover._jQueryInterface;
|
3287
|
+
$$$1.fn[NAME].Constructor = Popover;
|
3236
3288
|
|
3237
|
-
|
3238
|
-
|
3289
|
+
$$$1.fn[NAME].noConflict = function () {
|
3290
|
+
$$$1.fn[NAME] = JQUERY_NO_CONFLICT;
|
3239
3291
|
return Popover._jQueryInterface;
|
3240
3292
|
};
|
3241
3293
|
|
@@ -3244,23 +3296,23 @@ var Popover = function () {
|
|
3244
3296
|
|
3245
3297
|
/**
|
3246
3298
|
* --------------------------------------------------------------------------
|
3247
|
-
* Bootstrap (v4.0.0
|
3299
|
+
* Bootstrap (v4.0.0): scrollspy.js
|
3248
3300
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
3249
3301
|
* --------------------------------------------------------------------------
|
3250
3302
|
*/
|
3251
3303
|
|
3252
|
-
var ScrollSpy = function () {
|
3304
|
+
var ScrollSpy = function ($$$1) {
|
3253
3305
|
/**
|
3254
3306
|
* ------------------------------------------------------------------------
|
3255
3307
|
* Constants
|
3256
3308
|
* ------------------------------------------------------------------------
|
3257
3309
|
*/
|
3258
3310
|
var NAME = 'scrollspy';
|
3259
|
-
var VERSION = '4.0.0
|
3311
|
+
var VERSION = '4.0.0';
|
3260
3312
|
var DATA_KEY = 'bs.scrollspy';
|
3261
3313
|
var EVENT_KEY = "." + DATA_KEY;
|
3262
3314
|
var DATA_API_KEY = '.data-api';
|
3263
|
-
var JQUERY_NO_CONFLICT =
|
3315
|
+
var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
|
3264
3316
|
var Default = {
|
3265
3317
|
offset: 10,
|
3266
3318
|
method: 'auto',
|
@@ -3317,42 +3369,42 @@ var ScrollSpy = function () {
|
|
3317
3369
|
this._targets = [];
|
3318
3370
|
this._activeTarget = null;
|
3319
3371
|
this._scrollHeight = 0;
|
3320
|
-
|
3372
|
+
$$$1(this._scrollElement).on(Event.SCROLL, function (event) {
|
3321
3373
|
return _this._process(event);
|
3322
3374
|
});
|
3323
3375
|
this.refresh();
|
3324
3376
|
|
3325
3377
|
this._process();
|
3326
|
-
} //
|
3378
|
+
} // Getters
|
3327
3379
|
|
3328
3380
|
|
3329
3381
|
var _proto = ScrollSpy.prototype;
|
3330
3382
|
|
3331
|
-
//
|
3383
|
+
// Public
|
3332
3384
|
_proto.refresh = function refresh() {
|
3333
3385
|
var _this2 = this;
|
3334
3386
|
|
3335
|
-
var autoMethod = this._scrollElement
|
3387
|
+
var autoMethod = this._scrollElement === this._scrollElement.window ? OffsetMethod.OFFSET : OffsetMethod.POSITION;
|
3336
3388
|
var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method;
|
3337
3389
|
var offsetBase = offsetMethod === OffsetMethod.POSITION ? this._getScrollTop() : 0;
|
3338
3390
|
this._offsets = [];
|
3339
3391
|
this._targets = [];
|
3340
3392
|
this._scrollHeight = this._getScrollHeight();
|
3341
|
-
var targets =
|
3393
|
+
var targets = $$$1.makeArray($$$1(this._selector));
|
3342
3394
|
targets.map(function (element) {
|
3343
3395
|
var target;
|
3344
3396
|
var targetSelector = Util.getSelectorFromElement(element);
|
3345
3397
|
|
3346
3398
|
if (targetSelector) {
|
3347
|
-
target =
|
3399
|
+
target = $$$1(targetSelector)[0];
|
3348
3400
|
}
|
3349
3401
|
|
3350
3402
|
if (target) {
|
3351
3403
|
var targetBCR = target.getBoundingClientRect();
|
3352
3404
|
|
3353
3405
|
if (targetBCR.width || targetBCR.height) {
|
3354
|
-
//
|
3355
|
-
return [
|
3406
|
+
// TODO (fat): remove sketch reliance on jQuery position/offset
|
3407
|
+
return [$$$1(target)[offsetMethod]().top + offsetBase, targetSelector];
|
3356
3408
|
}
|
3357
3409
|
}
|
3358
3410
|
|
@@ -3369,8 +3421,8 @@ var ScrollSpy = function () {
|
|
3369
3421
|
};
|
3370
3422
|
|
3371
3423
|
_proto.dispose = function dispose() {
|
3372
|
-
|
3373
|
-
|
3424
|
+
$$$1.removeData(this._element, DATA_KEY);
|
3425
|
+
$$$1(this._scrollElement).off(EVENT_KEY);
|
3374
3426
|
this._element = null;
|
3375
3427
|
this._scrollElement = null;
|
3376
3428
|
this._config = null;
|
@@ -3379,18 +3431,18 @@ var ScrollSpy = function () {
|
|
3379
3431
|
this._targets = null;
|
3380
3432
|
this._activeTarget = null;
|
3381
3433
|
this._scrollHeight = null;
|
3382
|
-
}; //
|
3434
|
+
}; // Private
|
3383
3435
|
|
3384
3436
|
|
3385
3437
|
_proto._getConfig = function _getConfig(config) {
|
3386
|
-
config =
|
3438
|
+
config = _extends({}, Default, config);
|
3387
3439
|
|
3388
3440
|
if (typeof config.target !== 'string') {
|
3389
|
-
var id =
|
3441
|
+
var id = $$$1(config.target).attr('id');
|
3390
3442
|
|
3391
3443
|
if (!id) {
|
3392
3444
|
id = Util.getUID(NAME);
|
3393
|
-
|
3445
|
+
$$$1(config.target).attr('id', id);
|
3394
3446
|
}
|
3395
3447
|
|
3396
3448
|
config.target = "#" + id;
|
@@ -3461,7 +3513,7 @@ var ScrollSpy = function () {
|
|
3461
3513
|
queries = queries.map(function (selector) {
|
3462
3514
|
return selector + "[data-target=\"" + target + "\"]," + (selector + "[href=\"" + target + "\"]");
|
3463
3515
|
});
|
3464
|
-
var $link =
|
3516
|
+
var $link = $$$1(queries.join(','));
|
3465
3517
|
|
3466
3518
|
if ($link.hasClass(ClassName.DROPDOWN_ITEM)) {
|
3467
3519
|
$link.closest(Selector.DROPDOWN).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE);
|
@@ -3476,30 +3528,30 @@ var ScrollSpy = function () {
|
|
3476
3528
|
$link.parents(Selector.NAV_LIST_GROUP).prev(Selector.NAV_ITEMS).children(Selector.NAV_LINKS).addClass(ClassName.ACTIVE);
|
3477
3529
|
}
|
3478
3530
|
|
3479
|
-
|
3531
|
+
$$$1(this._scrollElement).trigger(Event.ACTIVATE, {
|
3480
3532
|
relatedTarget: target
|
3481
3533
|
});
|
3482
3534
|
};
|
3483
3535
|
|
3484
3536
|
_proto._clear = function _clear() {
|
3485
|
-
|
3486
|
-
}; //
|
3537
|
+
$$$1(this._selector).filter(Selector.ACTIVE).removeClass(ClassName.ACTIVE);
|
3538
|
+
}; // Static
|
3487
3539
|
|
3488
3540
|
|
3489
3541
|
ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
|
3490
3542
|
return this.each(function () {
|
3491
|
-
var data =
|
3543
|
+
var data = $$$1(this).data(DATA_KEY);
|
3492
3544
|
|
3493
3545
|
var _config = typeof config === 'object' && config;
|
3494
3546
|
|
3495
3547
|
if (!data) {
|
3496
3548
|
data = new ScrollSpy(this, _config);
|
3497
|
-
|
3549
|
+
$$$1(this).data(DATA_KEY, data);
|
3498
3550
|
}
|
3499
3551
|
|
3500
3552
|
if (typeof config === 'string') {
|
3501
3553
|
if (typeof data[config] === 'undefined') {
|
3502
|
-
throw new
|
3554
|
+
throw new TypeError("No method named \"" + config + "\"");
|
3503
3555
|
}
|
3504
3556
|
|
3505
3557
|
data[config]();
|
@@ -3507,7 +3559,7 @@ var ScrollSpy = function () {
|
|
3507
3559
|
});
|
3508
3560
|
};
|
3509
3561
|
|
3510
|
-
|
3562
|
+
_createClass(ScrollSpy, null, [{
|
3511
3563
|
key: "VERSION",
|
3512
3564
|
get: function get() {
|
3513
3565
|
return VERSION;
|
@@ -3527,11 +3579,11 @@ var ScrollSpy = function () {
|
|
3527
3579
|
*/
|
3528
3580
|
|
3529
3581
|
|
3530
|
-
|
3531
|
-
var scrollSpys =
|
3582
|
+
$$$1(window).on(Event.LOAD_DATA_API, function () {
|
3583
|
+
var scrollSpys = $$$1.makeArray($$$1(Selector.DATA_SPY));
|
3532
3584
|
|
3533
3585
|
for (var i = scrollSpys.length; i--;) {
|
3534
|
-
var $spy =
|
3586
|
+
var $spy = $$$1(scrollSpys[i]);
|
3535
3587
|
|
3536
3588
|
ScrollSpy._jQueryInterface.call($spy, $spy.data());
|
3537
3589
|
}
|
@@ -3542,11 +3594,11 @@ var ScrollSpy = function () {
|
|
3542
3594
|
* ------------------------------------------------------------------------
|
3543
3595
|
*/
|
3544
3596
|
|
3545
|
-
|
3546
|
-
|
3597
|
+
$$$1.fn[NAME] = ScrollSpy._jQueryInterface;
|
3598
|
+
$$$1.fn[NAME].Constructor = ScrollSpy;
|
3547
3599
|
|
3548
|
-
|
3549
|
-
|
3600
|
+
$$$1.fn[NAME].noConflict = function () {
|
3601
|
+
$$$1.fn[NAME] = JQUERY_NO_CONFLICT;
|
3550
3602
|
return ScrollSpy._jQueryInterface;
|
3551
3603
|
};
|
3552
3604
|
|
@@ -3555,23 +3607,23 @@ var ScrollSpy = function () {
|
|
3555
3607
|
|
3556
3608
|
/**
|
3557
3609
|
* --------------------------------------------------------------------------
|
3558
|
-
* Bootstrap (v4.0.0
|
3610
|
+
* Bootstrap (v4.0.0): tab.js
|
3559
3611
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
3560
3612
|
* --------------------------------------------------------------------------
|
3561
3613
|
*/
|
3562
3614
|
|
3563
|
-
var Tab = function () {
|
3615
|
+
var Tab = function ($$$1) {
|
3564
3616
|
/**
|
3565
3617
|
* ------------------------------------------------------------------------
|
3566
3618
|
* Constants
|
3567
3619
|
* ------------------------------------------------------------------------
|
3568
3620
|
*/
|
3569
3621
|
var NAME = 'tab';
|
3570
|
-
var VERSION = '4.0.0
|
3622
|
+
var VERSION = '4.0.0';
|
3571
3623
|
var DATA_KEY = 'bs.tab';
|
3572
3624
|
var EVENT_KEY = "." + DATA_KEY;
|
3573
3625
|
var DATA_API_KEY = '.data-api';
|
3574
|
-
var JQUERY_NO_CONFLICT =
|
3626
|
+
var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
|
3575
3627
|
var TRANSITION_DURATION = 150;
|
3576
3628
|
var Event = {
|
3577
3629
|
HIDE: "hide" + EVENT_KEY,
|
@@ -3608,62 +3660,62 @@ var Tab = function () {
|
|
3608
3660
|
function () {
|
3609
3661
|
function Tab(element) {
|
3610
3662
|
this._element = element;
|
3611
|
-
} //
|
3663
|
+
} // Getters
|
3612
3664
|
|
3613
3665
|
|
3614
3666
|
var _proto = Tab.prototype;
|
3615
3667
|
|
3616
|
-
//
|
3668
|
+
// Public
|
3617
3669
|
_proto.show = function show() {
|
3618
3670
|
var _this = this;
|
3619
3671
|
|
3620
|
-
if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE &&
|
3672
|
+
if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $$$1(this._element).hasClass(ClassName.ACTIVE) || $$$1(this._element).hasClass(ClassName.DISABLED)) {
|
3621
3673
|
return;
|
3622
3674
|
}
|
3623
3675
|
|
3624
3676
|
var target;
|
3625
3677
|
var previous;
|
3626
|
-
var listElement =
|
3678
|
+
var listElement = $$$1(this._element).closest(Selector.NAV_LIST_GROUP)[0];
|
3627
3679
|
var selector = Util.getSelectorFromElement(this._element);
|
3628
3680
|
|
3629
3681
|
if (listElement) {
|
3630
3682
|
var itemSelector = listElement.nodeName === 'UL' ? Selector.ACTIVE_UL : Selector.ACTIVE;
|
3631
|
-
previous =
|
3683
|
+
previous = $$$1.makeArray($$$1(listElement).find(itemSelector));
|
3632
3684
|
previous = previous[previous.length - 1];
|
3633
3685
|
}
|
3634
3686
|
|
3635
|
-
var hideEvent =
|
3687
|
+
var hideEvent = $$$1.Event(Event.HIDE, {
|
3636
3688
|
relatedTarget: this._element
|
3637
3689
|
});
|
3638
|
-
var showEvent =
|
3690
|
+
var showEvent = $$$1.Event(Event.SHOW, {
|
3639
3691
|
relatedTarget: previous
|
3640
3692
|
});
|
3641
3693
|
|
3642
3694
|
if (previous) {
|
3643
|
-
|
3695
|
+
$$$1(previous).trigger(hideEvent);
|
3644
3696
|
}
|
3645
3697
|
|
3646
|
-
|
3698
|
+
$$$1(this._element).trigger(showEvent);
|
3647
3699
|
|
3648
3700
|
if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) {
|
3649
3701
|
return;
|
3650
3702
|
}
|
3651
3703
|
|
3652
3704
|
if (selector) {
|
3653
|
-
target =
|
3705
|
+
target = $$$1(selector)[0];
|
3654
3706
|
}
|
3655
3707
|
|
3656
3708
|
this._activate(this._element, listElement);
|
3657
3709
|
|
3658
3710
|
var complete = function complete() {
|
3659
|
-
var hiddenEvent =
|
3711
|
+
var hiddenEvent = $$$1.Event(Event.HIDDEN, {
|
3660
3712
|
relatedTarget: _this._element
|
3661
3713
|
});
|
3662
|
-
var shownEvent =
|
3714
|
+
var shownEvent = $$$1.Event(Event.SHOWN, {
|
3663
3715
|
relatedTarget: previous
|
3664
3716
|
});
|
3665
|
-
|
3666
|
-
|
3717
|
+
$$$1(previous).trigger(hiddenEvent);
|
3718
|
+
$$$1(_this._element).trigger(shownEvent);
|
3667
3719
|
};
|
3668
3720
|
|
3669
3721
|
if (target) {
|
@@ -3674,9 +3726,9 @@ var Tab = function () {
|
|
3674
3726
|
};
|
3675
3727
|
|
3676
3728
|
_proto.dispose = function dispose() {
|
3677
|
-
|
3729
|
+
$$$1.removeData(this._element, DATA_KEY);
|
3678
3730
|
this._element = null;
|
3679
|
-
}; //
|
3731
|
+
}; // Private
|
3680
3732
|
|
3681
3733
|
|
3682
3734
|
_proto._activate = function _activate(element, container, callback) {
|
@@ -3685,36 +3737,32 @@ var Tab = function () {
|
|
3685
3737
|
var activeElements;
|
3686
3738
|
|
3687
3739
|
if (container.nodeName === 'UL') {
|
3688
|
-
activeElements =
|
3740
|
+
activeElements = $$$1(container).find(Selector.ACTIVE_UL);
|
3689
3741
|
} else {
|
3690
|
-
activeElements =
|
3742
|
+
activeElements = $$$1(container).children(Selector.ACTIVE);
|
3691
3743
|
}
|
3692
3744
|
|
3693
3745
|
var active = activeElements[0];
|
3694
|
-
var isTransitioning = callback && Util.supportsTransitionEnd() && active &&
|
3746
|
+
var isTransitioning = callback && Util.supportsTransitionEnd() && active && $$$1(active).hasClass(ClassName.FADE);
|
3695
3747
|
|
3696
3748
|
var complete = function complete() {
|
3697
|
-
return _this2._transitionComplete(element, active,
|
3749
|
+
return _this2._transitionComplete(element, active, callback);
|
3698
3750
|
};
|
3699
3751
|
|
3700
3752
|
if (active && isTransitioning) {
|
3701
|
-
|
3753
|
+
$$$1(active).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION);
|
3702
3754
|
} else {
|
3703
3755
|
complete();
|
3704
3756
|
}
|
3705
|
-
|
3706
|
-
if (active) {
|
3707
|
-
$(active).removeClass(ClassName.SHOW);
|
3708
|
-
}
|
3709
3757
|
};
|
3710
3758
|
|
3711
|
-
_proto._transitionComplete = function _transitionComplete(element, active,
|
3759
|
+
_proto._transitionComplete = function _transitionComplete(element, active, callback) {
|
3712
3760
|
if (active) {
|
3713
|
-
|
3714
|
-
var dropdownChild =
|
3761
|
+
$$$1(active).removeClass(ClassName.SHOW + " " + ClassName.ACTIVE);
|
3762
|
+
var dropdownChild = $$$1(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0];
|
3715
3763
|
|
3716
3764
|
if (dropdownChild) {
|
3717
|
-
|
3765
|
+
$$$1(dropdownChild).removeClass(ClassName.ACTIVE);
|
3718
3766
|
}
|
3719
3767
|
|
3720
3768
|
if (active.getAttribute('role') === 'tab') {
|
@@ -3722,24 +3770,20 @@ var Tab = function () {
|
|
3722
3770
|
}
|
3723
3771
|
}
|
3724
3772
|
|
3725
|
-
|
3773
|
+
$$$1(element).addClass(ClassName.ACTIVE);
|
3726
3774
|
|
3727
3775
|
if (element.getAttribute('role') === 'tab') {
|
3728
3776
|
element.setAttribute('aria-selected', true);
|
3729
3777
|
}
|
3730
3778
|
|
3731
|
-
|
3732
|
-
|
3733
|
-
$(element).addClass(ClassName.SHOW);
|
3734
|
-
} else {
|
3735
|
-
$(element).removeClass(ClassName.FADE);
|
3736
|
-
}
|
3779
|
+
Util.reflow(element);
|
3780
|
+
$$$1(element).addClass(ClassName.SHOW);
|
3737
3781
|
|
3738
|
-
if (element.parentNode &&
|
3739
|
-
var dropdownElement =
|
3782
|
+
if (element.parentNode && $$$1(element.parentNode).hasClass(ClassName.DROPDOWN_MENU)) {
|
3783
|
+
var dropdownElement = $$$1(element).closest(Selector.DROPDOWN)[0];
|
3740
3784
|
|
3741
3785
|
if (dropdownElement) {
|
3742
|
-
|
3786
|
+
$$$1(dropdownElement).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE);
|
3743
3787
|
}
|
3744
3788
|
|
3745
3789
|
element.setAttribute('aria-expanded', true);
|
@@ -3748,12 +3792,12 @@ var Tab = function () {
|
|
3748
3792
|
if (callback) {
|
3749
3793
|
callback();
|
3750
3794
|
}
|
3751
|
-
}; //
|
3795
|
+
}; // Static
|
3752
3796
|
|
3753
3797
|
|
3754
3798
|
Tab._jQueryInterface = function _jQueryInterface(config) {
|
3755
3799
|
return this.each(function () {
|
3756
|
-
var $this =
|
3800
|
+
var $this = $$$1(this);
|
3757
3801
|
var data = $this.data(DATA_KEY);
|
3758
3802
|
|
3759
3803
|
if (!data) {
|
@@ -3763,7 +3807,7 @@ var Tab = function () {
|
|
3763
3807
|
|
3764
3808
|
if (typeof config === 'string') {
|
3765
3809
|
if (typeof data[config] === 'undefined') {
|
3766
|
-
throw new
|
3810
|
+
throw new TypeError("No method named \"" + config + "\"");
|
3767
3811
|
}
|
3768
3812
|
|
3769
3813
|
data[config]();
|
@@ -3771,7 +3815,7 @@ var Tab = function () {
|
|
3771
3815
|
});
|
3772
3816
|
};
|
3773
3817
|
|
3774
|
-
|
3818
|
+
_createClass(Tab, null, [{
|
3775
3819
|
key: "VERSION",
|
3776
3820
|
get: function get() {
|
3777
3821
|
return VERSION;
|
@@ -3786,10 +3830,10 @@ var Tab = function () {
|
|
3786
3830
|
*/
|
3787
3831
|
|
3788
3832
|
|
3789
|
-
|
3833
|
+
$$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
|
3790
3834
|
event.preventDefault();
|
3791
3835
|
|
3792
|
-
Tab._jQueryInterface.call(
|
3836
|
+
Tab._jQueryInterface.call($$$1(this), 'show');
|
3793
3837
|
});
|
3794
3838
|
/**
|
3795
3839
|
* ------------------------------------------------------------------------
|
@@ -3797,11 +3841,11 @@ var Tab = function () {
|
|
3797
3841
|
* ------------------------------------------------------------------------
|
3798
3842
|
*/
|
3799
3843
|
|
3800
|
-
|
3801
|
-
|
3844
|
+
$$$1.fn[NAME] = Tab._jQueryInterface;
|
3845
|
+
$$$1.fn[NAME].Constructor = Tab;
|
3802
3846
|
|
3803
|
-
|
3804
|
-
|
3847
|
+
$$$1.fn[NAME].noConflict = function () {
|
3848
|
+
$$$1.fn[NAME] = JQUERY_NO_CONFLICT;
|
3805
3849
|
return Tab._jQueryInterface;
|
3806
3850
|
};
|
3807
3851
|
|
@@ -3815,12 +3859,12 @@ var Tab = function () {
|
|
3815
3859
|
* --------------------------------------------------------------------------
|
3816
3860
|
*/
|
3817
3861
|
|
3818
|
-
(function () {
|
3819
|
-
if (typeof
|
3820
|
-
throw new
|
3862
|
+
(function ($$$1) {
|
3863
|
+
if (typeof $$$1 === 'undefined') {
|
3864
|
+
throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
|
3821
3865
|
}
|
3822
3866
|
|
3823
|
-
var version =
|
3867
|
+
var version = $$$1.fn.jquery.split(' ')[0].split('.');
|
3824
3868
|
var minMajor = 1;
|
3825
3869
|
var ltMajor = 2;
|
3826
3870
|
var minMinor = 9;
|
@@ -3844,7 +3888,7 @@ exports.Scrollspy = ScrollSpy;
|
|
3844
3888
|
exports.Tab = Tab;
|
3845
3889
|
exports.Tooltip = Tooltip;
|
3846
3890
|
|
3847
|
-
|
3891
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
3848
3892
|
|
3849
|
-
}
|
3893
|
+
})));
|
3850
3894
|
//# sourceMappingURL=bootstrap.js.map
|