Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bootstrap.native

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap.native - npm Package Compare versions

Comparing version 2.0.17 to 2.0.18

dist/bsn-new.js

237

dist/bootstrap-native-v4.js

@@ -1,2 +0,2 @@

// Native Javascript for Bootstrap 4 v2.0.17 | © dnp_theme | MIT-License
// Native Javascript for Bootstrap 4 v2.0.18 | © dnp_theme | MIT-License
(function (root, factory) {

@@ -31,3 +31,3 @@ if (typeof define === 'function' && define.amd) {

var globalObject = typeof global !== 'undefined' ? global : this||window,
doc = document.documentElement, body = document.body,
HTML = document.documentElement, DOC = document, body = 'body', // allow the library to be used in <head>

@@ -118,2 +118,3 @@ // function toggle attributes

parentNode = 'parentNode',
preventDefault = 'preventDefault',
length = 'length',

@@ -142,7 +143,7 @@ toLowerCase = 'toLowerCase',

// modal
modalOverlayRefCount = 0,
modalOverlay = 0,
// transitionEnd since 2.0.4
supportTransitions = Webkit+Transition in doc[style] || Transition[toLowerCase]() in doc[style],
transitionEndEvent = Webkit+Transition in doc[style] ? Webkit[toLowerCase]()+Transition+'End' : Transition[toLowerCase]()+'end',
supportTransitions = Webkit+Transition in HTML[style] || Transition[toLowerCase]() in HTML[style],
transitionEndEvent = Webkit+Transition in HTML[style] ? Webkit[toLowerCase]()+Transition+'End' : Transition[toLowerCase]()+'end',

@@ -223,9 +224,9 @@ // set new focus element since 2.0.3

return ( rect[top] >= 0 && rect[left] >= 0 &&
rect[bottom] <= (globalObject[innerHeight] || doc[clientHeight]) &&
rect[right] <= (globalObject[innerWidth] || doc[clientWidth]) )
rect[bottom] <= (globalObject[innerHeight] || HTML[clientHeight]) &&
rect[right] <= (globalObject[innerWidth] || HTML[clientWidth]) )
},
getScroll = function() { // also Affix and ScrollSpy uses it
return {
y : globalObject.pageYOffset || doc[scrollTop],
x : globalObject.pageXOffset || doc[scrollLeft]
y : globalObject.pageYOffset || HTML[scrollTop],
x : globalObject.pageXOffset || HTML[scrollLeft]
}

@@ -237,3 +238,3 @@ },

arrowWidth = arrow[offsetWidth], isPopover = hasClass(element,'popover'),
scroll = parent === body ? getScroll() : { x: parent[offsetLeft] + parent[scrollLeft], y: parent[offsetTop] + parent[scrollTop] },
scroll = parent === DOC[body] ? getScroll() : { x: parent[offsetLeft] + parent[scrollLeft], y: parent[offsetTop] + parent[scrollTop] },
linkDimensions = { w: rect[right] - rect[left], h: rect[bottom] - rect[top] },

@@ -317,3 +318,3 @@ elementDimensions = { w : element[offsetWidth], h: element[offsetHeight] };

// ==============
initializeDataAPI ( stringAlert, Alert, doc[querySelectorAll]('['+dataDismiss+'="alert"]') );
initializeDataAPI ( stringAlert, Alert, DOC[querySelectorAll]('['+dataDismiss+'="alert"]') );

@@ -398,8 +399,13 @@

// init
if ( hasClass(element,'btn-group') ) {
if ( !( stringButton in element ) ) { // prevent adding event handlers twice
on( element, clickEvent, toggle );
}
element[stringButton] = this;
if ( !( stringButton in element ) ) { // prevent adding event handlers twice
on( element, clickEvent, toggle );
}
// activate items on load
var labelsToACtivate = getElementsByClassName(element, 'btn'), lbll = labelsToACtivate[length];
for (var i=0; i<lbll; i++) {
!hasClass(labelsToACtivate[i],active) && queryElement('input:checked',labelsToACtivate[i])
&& addClass(labelsToACtivate[i],active);
}
element[stringButton] = this;
};

@@ -409,3 +415,3 @@

// =================
initializeDataAPI( stringButton, Button, doc[querySelectorAll]('['+dataToggle+'="buttons"]') );
initializeDataAPI( stringButton, Button, DOC[querySelectorAll]('['+dataToggle+'="buttons"]') );

@@ -626,3 +632,3 @@

// =================
initializeDataAPI( stringCarousel, Carousel, doc[querySelectorAll]('['+dataRide+'="carousel"]') );
initializeDataAPI( stringCarousel, Carousel, DOC[querySelectorAll]('['+dataRide+'="carousel"]') );

@@ -736,3 +742,3 @@

// =================
initializeDataAPI(stringCollapse, Collapse, doc[querySelectorAll]('['+dataToggle+'="collapse"]'));
initializeDataAPI(stringCollapse, Collapse, DOC[querySelectorAll]('['+dataToggle+'="collapse"]'));

@@ -754,27 +760,43 @@

// constants, event targets, strings
var self = this, isOpen = false,
var self = this,
parent = element[parentNode],
component = 'dropdown',
component = 'dropdown', open = 'open',
relatedTarget = null,
menu = queryElement('.dropdown-menu', parent),
// preventDefault on empty anchor links
preventEmptyAnchor = function(anchor){
(/\#$/.test(anchor.href) || anchor[parentNode] && /\#$/.test(anchor[parentNode].href)) && this[preventDefault](); // should be here to prevent jumps
},
// toggle dismissible events
toggleDismiss = function(){
var type = element[open] ? on : off;
type(DOC, keydownEvent, keyHandler);
type(DOC, clickEvent, dismissHandler);
},
// handlers
dismissHandler = function(e) {
var eventTarget = e[target],
hasData = eventTarget && (eventTarget[getAttribute](dataToggle)
|| eventTarget[parentNode] && getAttribute in eventTarget[parentNode]
&& eventTarget[parentNode][getAttribute](dataToggle));
if ( (eventTarget === menu || menu.contains(eventTarget)) && (self.persist || hasData) ) { return; }
else {
relatedTarget = eventTarget === element || element.contains(eventTarget) ? element : null;
hide();
}
preventEmptyAnchor.call(e,eventTarget);
},
keyHandler = function(e) {
if (isOpen && (e.which == 27 || e.keyCode == 27)) { relatedTarget = null; hide(); } // e.keyCode for IE8
if ( element[open] && e.which === 27 ) { relatedTarget = null; hide(); }
},
clickHandler = function(e) {
var eventTarget = e[target],
hasData = eventTarget && (eventTarget[getAttribute](dataToggle) || eventTarget[parentNode] && getAttribute in eventTarget[parentNode] && eventTarget[parentNode][getAttribute](dataToggle));
relatedTarget = element;
show();
preventEmptyAnchor.call(e,e[target]);
},
if ( eventTarget === element || eventTarget === parent || eventTarget[parentNode] === element ) {
e.preventDefault(); // comment this line to stop preventing navigation when click target is a link
relatedTarget = element;
self.toggle();
} else if ( isOpen ) {
if ( eventTarget === menu || menu.contains(eventTarget) && ( self.persist || hasData ) ) {
return;
} else { relatedTarget = null; hide(); }
}
(/\#$/.test(eventTarget.href) || eventTarget[parentNode] && /\#$/.test(eventTarget[parentNode].href)) && e.preventDefault(); // should be here to prevent jumps
},
// private methods

@@ -787,4 +809,5 @@ show = function() {

bootstrapCustomEvent.call(parent, shownEvent, component, relatedTarget);
on(document, keydownEvent, keyHandler);
isOpen = true;
element[open] = true;
off(element, clickEvent, clickHandler);
setTimeout(function(){ toggleDismiss(); },1);
},

@@ -797,9 +820,13 @@ hide = function() {

bootstrapCustomEvent.call(parent, hiddenEvent, component, relatedTarget);
off(document, keydownEvent, keyHandler);
isOpen = false;
element[open] = false;
toggleDismiss();
setTimeout(function(){ on(element, clickEvent, clickHandler); },1);
};
// set initial state to closed
element[open] = false;
// public methods
this.toggle = function() {
if (hasClass(parent,showClass) && isOpen) { hide(); }
if (hasClass(parent,showClass) && element[open]) { hide(); }
else { show(); }

@@ -811,4 +838,5 @@ };

menu[setAttribute]('tabindex', '0'); // Fix onblur on Chrome | Safari
on(document, clickEvent, clickHandler);
on(element, clickEvent, clickHandler);
}
element[stringDropdown] = this;

@@ -819,3 +847,3 @@ };

// =================
initializeDataAPI( stringDropdown, Dropdown, doc[querySelectorAll]('['+dataToggle+'="dropdown"]') );
initializeDataAPI( stringDropdown, Dropdown, DOC[querySelectorAll]('['+dataToggle+'="dropdown"]') );

@@ -858,18 +886,18 @@

// bind, constants, event targets and other vars
var self = this, open = this.open = false, relatedTarget = null,
var self = this, relatedTarget = null,
bodyIsOverflowing, modalIsOverflowing, scrollbarWidth, overlay,
// also find fixed-top / fixed-bottom items
fixedItems = getElementsByClassName(doc,fixedTop).concat(getElementsByClassName(doc,fixedBottom)),
fixedItems = getElementsByClassName(HTML,fixedTop).concat(getElementsByClassName(HTML,fixedBottom)),
// private methods
getWindowWidth = function() {
var htmlRect = doc[getBoundingClientRect]();
var htmlRect = HTML[getBoundingClientRect]();
return globalObject[innerWidth] || (htmlRect[right] - Math.abs(htmlRect[left]));
},
setScrollbar = function () {
var bodyStyle = globalObject.getComputedStyle(body),
var bodyStyle = globalObject.getComputedStyle(DOC[body]),
bodyPad = parseInt((bodyStyle[paddingRight]), 10), itemPad;
if (bodyIsOverflowing) {
body[style][paddingRight] = (bodyPad + scrollbarWidth) + 'px';
DOC[body][style][paddingRight] = (bodyPad + scrollbarWidth) + 'px';
if (fixedItems[length]){

@@ -884,3 +912,3 @@ for (var i = 0; i < fixedItems[length]; i++) {

resetScrollbar = function () {
body[style][paddingRight] = '';
DOC[body][style][paddingRight] = '';
if (fixedItems[length]){

@@ -895,10 +923,10 @@ for (var i = 0; i < fixedItems[length]; i++) {

scrollDiv.className = component+'-scrollbar-measure'; // this is here to stay
body.appendChild(scrollDiv);
DOC[body].appendChild(scrollDiv);
scrollBarWidth = scrollDiv[offsetWidth] - scrollDiv[clientWidth];
body.removeChild(scrollDiv);
DOC[body].removeChild(scrollDiv);
return scrollBarWidth;
},
checkScrollbar = function () {
bodyIsOverflowing = body[clientWidth] < getWindowWidth();
modalIsOverflowing = modal[scrollHeight] > doc[clientHeight];
bodyIsOverflowing = DOC[body][clientWidth] < getWindowWidth();
modalIsOverflowing = modal[scrollHeight] > HTML[clientHeight];
scrollbarWidth = measureScrollbar();

@@ -915,6 +943,4 @@ },

createOverlay = function() {
if ( modalOverlayRefCount > 1 ) { return; }
modalOverlay = 1;
modalOverlayRefCount += 1;
var newOverlay = document.createElement('div');

@@ -926,17 +952,15 @@ overlay = queryElement('.'+modalBackdropString);

overlay = newOverlay;
body.appendChild(overlay);
DOC[body].appendChild(overlay);
}
},
removeOverlay = function() {
if (modalOverlayRefCount === 0) { return; }
modalOverlayRefCount -= 1;
overlay = queryElement('.'+modalBackdropString);
if ( overlay && overlay !== null && typeof overlay === 'object' ) {
body.removeChild(overlay); overlay = null;
modalOverlay = 0;
DOC[body].removeChild(overlay); overlay = null;
}
bootstrapCustomEvent.call(modal, hiddenEvent, component);
},
keydownHandlerToggle = function() {
if (!hasClass(modal,showClass)) {
if (hasClass(modal,showClass)) {
on(document, keydownEvent, keyHandler);

@@ -948,3 +972,3 @@ } else {

resizeHandlerToggle = function() {
if (!hasClass(modal,showClass)) {
if (hasClass(modal,showClass)) {
on(globalObject, resizeEvent, self.update);

@@ -956,3 +980,3 @@ } else {

dismissHandlerToggle = function() {
if (!hasClass(modal,showClass)) {
if (hasClass(modal,showClass)) {
on(modal, clickEvent, dismissHandler);

@@ -965,3 +989,2 @@ } else {

triggerShow = function() {
open = self.open = true;
setFocus(modal);

@@ -971,11 +994,5 @@ bootstrapCustomEvent.call(modal, shownEvent, component, relatedTarget);

triggerHide = function() {
resizeHandlerToggle();
dismissHandlerToggle();
keydownHandlerToggle();
modal[style].display = '';
open = self.open = false;
element && (setFocus(element));
bootstrapCustomEvent.call(modal, hiddenEvent, component);
setTimeout(function(){

@@ -985,6 +1002,9 @@ if (!getElementsByClassName(document,component+' '+showClass)[0]) {

resetScrollbar();
removeClass(body,component+'-open');
if (self[backdrop]){
hasClass(overlay,'fade') ? (removeClass(overlay,showClass), emulateTransitionEnd(overlay,removeOverlay)) : removeOverlay();
}
removeClass(DOC[body],component+'-open');
overlay && hasClass(overlay,'fade') ? (removeClass(overlay,showClass), emulateTransitionEnd(overlay,removeOverlay))
: removeOverlay();
resizeHandlerToggle();
dismissHandlerToggle();
keydownHandlerToggle();
}

@@ -997,3 +1017,3 @@ }, 50);

clickTarget = clickTarget[hasAttribute](dataTarget) || clickTarget[hasAttribute]('href') ? clickTarget : clickTarget[parentNode];
if ( !open && clickTarget === element && !hasClass(modal,showClass) ) {
if ( clickTarget === element && !hasClass(modal,showClass) ) {
modal.modalTrigger = element;

@@ -1006,4 +1026,3 @@ relatedTarget = element;

keyHandler = function(e) {
var key = e.which || e.keyCode; // keyCode for IE8
if (self[keyboard] && key == 27 && open) {
if (self[keyboard] && e.which == 27 && hasClass(modal,showClass)) {
self.hide();

@@ -1014,3 +1033,3 @@ }

var clickTarget = e[target];
if ( open && (clickTarget[parentNode][getAttribute](dataDismiss) === component
if ( hasClass(modal,showClass) && (clickTarget[parentNode][getAttribute](dataDismiss) === component
|| clickTarget[getAttribute](dataDismiss) === component

@@ -1025,3 +1044,3 @@ || (clickTarget === modal && self[backdrop] !== staticString) ) ) {

this.toggle = function() {
if (open && hasClass(modal,showClass)) {this.hide();} else {this.show();}
if ( hasClass(modal,showClass) ) {this.hide();} else {this.show();}
};

@@ -1036,7 +1055,8 @@ this.show = function() {

if ( this[backdrop] ) {
createOverlay();
!modalOverlay && createOverlay();
}
if ( overlay && !hasClass(overlay,showClass)) {
setTimeout( function() { addClass(overlay, showClass); },0);
if ( overlay && modalOverlay && !hasClass(overlay,showClass)) {
overlay[offsetWidth]; // force reflow to enable trasition
addClass(overlay, showClass);
}

@@ -1051,2 +1071,6 @@

addClass(DOC[body],component+'-open');
addClass(modal,showClass);
modal[setAttribute](ariaHidden, false);
resizeHandlerToggle();

@@ -1056,6 +1080,2 @@ dismissHandlerToggle();

addClass(body,component+'-open');
addClass(modal,showClass);
modal[setAttribute](ariaHidden, false);
hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerShow) : triggerShow();

@@ -1079,3 +1099,3 @@ }, supportTransitions ? 150 : 0);

this.update = function() {
if (open) {
if (hasClass(modal,showClass)) {
checkScrollbar();

@@ -1098,3 +1118,3 @@ setScrollbar();

// DATA API
initializeDataAPI(stringModal, Modal, doc[querySelectorAll]('['+dataToggle+'="modal"]'));
initializeDataAPI(stringModal, Modal, DOC[querySelectorAll]('['+dataToggle+'="modal"]'));

@@ -1150,3 +1170,3 @@ /* Native Javascript for Bootstrap 4 | Popover

: navbarFixedBottom ? navbarFixedBottom
: modal ? modal : body;
: modal ? modal : DOC[body];

@@ -1225,8 +1245,19 @@ // bind, content

},
// event toggle
dismissHandlerToggle = function(type){
if (/^(click|focus)$/.test(self[trigger])) {
!self[dismissible] && type( element, 'blur', self.hide );
}
self[dismissible] && type( document, clickEvent, dismissibleHandler );
type( globalObject, resizeEvent, self.hide );
},
// triggers
showTrigger = function() {
dismissHandlerToggle(on);
bootstrapCustomEvent.call(element, shownEvent, component);
},
hideTrigger = function() {
dismissHandlerToggle(off);
removePopover();

@@ -1272,10 +1303,3 @@ bootstrapCustomEvent.call(element, hiddenEvent, component);

on( element, self[trigger], self.toggle );
if (!self[dismissible]) { on( element, 'blur', self.hide ); }
}
if (self[dismissible]) { on( document, clickEvent, dismissibleHandler ); }
// dismiss on window resize
on( globalObject, resizeEvent, self.hide );
}

@@ -1287,3 +1311,3 @@ element[stringPopover] = self;

// ================
initializeDataAPI(stringPopover, Popover, doc[querySelectorAll]('['+dataToggle+'="popover"]'));
initializeDataAPI(stringPopover, Popover, DOC[querySelectorAll]('['+dataToggle+'="popover"]'));

@@ -1329,3 +1353,2 @@

var updateItem = function(index) {
// var parent = items[index][parentNode], // item's item LI element
var item = items[index],

@@ -1388,3 +1411,3 @@ targetItem = targetItems[index], // the menu item targets this element

// ==================
initializeDataAPI(stringScrollSpy, ScrollSpy, doc[querySelectorAll]('['+dataSpy+'="scroll"]'));
initializeDataAPI(stringScrollSpy, ScrollSpy, DOC[querySelectorAll]('['+dataSpy+'="scroll"]'));

@@ -1532,3 +1555,3 @@

// ============
initializeDataAPI(stringTab, Tab, doc[querySelectorAll]('['+dataToggle+'="tab"]'));
initializeDataAPI(stringTab, Tab, DOC[querySelectorAll]('['+dataToggle+'="tab"]'));

@@ -1575,3 +1598,3 @@

: navbarFixedBottom ? navbarFixedBottom
: modal ? modal : body;
: modal ? modal : DOC[body];

@@ -1620,5 +1643,7 @@ // bind, event targets, title and constants

showTrigger = function() {
on( globalObject, resizeEvent, self.hide );
bootstrapCustomEvent.call(element, shownEvent, component);
},
hideTrigger = function() {
off( globalObject, resizeEvent, self.hide );
removeToolTip();

@@ -1669,3 +1694,3 @@ bootstrapCustomEvent.call(element, hiddenEvent, component);

// =================
initializeDataAPI(stringTooltip, Tooltip, doc[querySelectorAll]('['+dataToggle+'="tooltip"]'));
initializeDataAPI(stringTooltip, Tooltip, DOC[querySelectorAll]('['+dataToggle+'="tooltip"]'));

@@ -1672,0 +1697,0 @@

@@ -1,2 +0,2 @@

// Native Javascript for Bootstrap 4 v2.0.17 | © dnp_theme | MIT-License
!function(t,e){if("function"==typeof define&&define.amd)define([],e);else if("object"==typeof module&&module.exports)module.exports=e();else{var n=e();t.Alert=n.Alert,t.Button=n.Button,t.Carousel=n.Carousel,t.Collapse=n.Collapse,t.Dropdown=n.Dropdown,t.Modal=n.Modal,t.Popover=n.Popover,t.ScrollSpy=n.ScrollSpy,t.Tab=n.Tab,t.Tooltip=n.Tooltip}}(this,function(){"use strict";var t="undefined"!=typeof global?global:this||window,e=document.documentElement,n=document.body,i="data-toggle",o="data-dismiss",l="data-spy",a="data-ride",r="Alert",c="Button",s="Carousel",u="Collapse",f="Dropdown",d="Modal",h="Popover",p="ScrollSpy",v="Tab",m="Tooltip",g="data-backdrop",b="data-keyboard",w="data-target",T="data-interval",y="data-height",x="data-pause",C="data-title",A="data-original-title",E="data-dismissible",L="data-trigger",I="data-animation",k="data-container",D="data-placement",M="data-delay",S="backdrop",H="keyboard",N="delay",B="content",P="target",W="interval",$="pause",j="animation",O="placement",q="container",R="offsetTop",z="offsetLeft",U="scrollTop",X="scrollLeft",Y="clientWidth",F="clientHeight",G="offsetWidth",J="offsetHeight",K="innerWidth",Q="innerHeight",V="scrollHeight",Z="height",_="aria-expanded",tt="aria-hidden",et="click",nt="hover",it="keydown",ot="resize",lt="scroll",at="show",rt="shown",ct="hide",st="hidden",ut="close",ft="closed",dt="slid",ht="slide",pt="change",vt="getAttribute",mt="setAttribute",gt="hasAttribute",bt="getElementsByTagName",wt="getBoundingClientRect",Tt="querySelectorAll",yt="getElementsByClassName",xt="indexOf",Ct="parentNode",At="length",Et="toLowerCase",Lt="Transition",It="Webkit",kt="style",Dt="active",Mt="show",St="collapsing",Ht="left",Nt="right",Bt="top",Pt="bottom",Wt="fixed-top",$t="fixed-bottom",jt="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Ot=/\b(top|bottom|left|top)+/,qt=0,Rt=It+Lt in e[kt]||Lt[Et]()in e[kt],zt=It+Lt in e[kt]?It[Et]()+Lt+"End":Lt[Et]()+"end",Ut=function(t){t.focus?t.focus():t.setActive()},Xt=function(t,e){t.classList.add(e)},Yt=function(t,e){t.classList.remove(e)},Ft=function(t,e){return t.classList.contains(e)},Gt=function(t,e){return[].slice.call(t[yt](e))},Jt=function(t,e){var n=e?e:document;return"object"==typeof t?t:n.querySelector(t)},Kt=function(t,e){for(var n=e.charAt(0);t&&t!==document;t=t[Ct])if("."===n){if(null!==Jt(e,t[Ct])&&Ft(t,e.replace(".","")))return t}else if("#"===n&&t.id===e.substr(1))return t;return!1},Qt=function(t,e,n){t.addEventListener(e,n,!1)},Vt=function(t,e,n){t.removeEventListener(e,n,!1)},Zt=function(t,e,n){Qt(t,e,function i(o){n(o),Vt(t,e,i)})},_t=function(t,e){Rt?Zt(t,zt,function(t){e(t)}):e()},te=function(t,e,n){var i=new CustomEvent(t+".bs."+e);i.relatedTarget=n,this.dispatchEvent(i)},ee=function(t,e,n){for(var i=0;i<n[At];i++)new e(n[i])},ne=/^\#(.)+$/,ie=function(n){var i=n[wt]();return i[Bt]>=0&&i[Ht]>=0&&i[Pt]<=(t[Q]||e[F])&&i[Nt]<=(t[K]||e[Y])},oe=function(){return{y:t.pageYOffset||e[U],x:t.pageXOffset||e[X]}},le=function(t,e,i,o){var l=t[wt](),a=Jt(".arrow",e),r=a[G],c=Ft(e,"popover"),s=o===n?oe():{x:o[z]+o[X],y:o[R]+o[U]},u={w:l[Nt]-l[Ht],h:l[Pt]-l[Bt]},f={w:e[G],h:e[J]};i===Bt?(e[kt][Bt]=l[Bt]+s.y-f.h-(c?r:0)+"px",e[kt][Ht]=l[Ht]+s.x-f.w/2+u.w/2+"px",a[kt][Ht]=f.w/2-r/2+"px"):i===Pt?(e[kt][Bt]=l[Bt]+s.y+u.h+"px",e[kt][Ht]=l[Ht]+s.x-f.w/2+u.w/2+"px",a[kt][Ht]=f.w/2-r/2+"px"):i===Ht?(e[kt][Bt]=l[Bt]+s.y-f.h/2+u.h/2+"px",e[kt][Ht]=l[Ht]+s.x-f.w-(c?r:0)+"px",a[kt][Bt]=f.h/2-r/2+"px"):i===Nt&&(e[kt][Bt]=l[Bt]+s.y-f.h/2+u.h/2+"px",e[kt][Ht]=l[Ht]+s.x+u.w+"px",a[kt][Bt]=f.h/2-r/2+"px"),e.className[xt](i)===-1&&(e.className=e.className.replace(Ot,i))},ae=function(t){return t===Bt?Pt:t===Pt?Bt:t===Ht?Nt:t===Nt?Ht:t},re=function(t){t=Jt(t);var e=this,n="alert",i=Kt(t,"."+n),l=function(){Ft(i,"fade")?_t(i,c):c()},a=function(l){i=Kt(l[P],"."+n),t=Jt("["+o+'="'+n+'"]',i),t&&i&&(t===l[P]||t.contains(l[P]))&&e.close()},c=function(){te.call(i,ft,n),Vt(t,et,a),i[Ct].removeChild(i)};this.close=function(){i&&t&&Ft(i,Mt)&&(te.call(i,ut,n),Yt(i,Mt),i&&l())},r in t||Qt(t,et,a),t[r]=this};ee(r,re,e[Tt]("["+o+'="alert"]'));var ce=function(t){t=Jt(t);var e=!1,n="button",i="checked",o="LABEL",l="INPUT",a=function(a){var r=a[P].tagName===o?a[P]:a[P][Ct].tagName===o?a[P][Ct]:null;if(r){var c=this,s=Gt(c,"btn"),u=r[bt](l)[0];if(u){if("checkbox"===u.type&&(u[i]?(Yt(r,Dt),u[vt](i),u.removeAttribute(i),u[i]=!1):(Xt(r,Dt),u[vt](i),u[mt](i,i),u[i]=!0),e||(e=!0,te.call(u,pt,n),te.call(t,pt,n))),"radio"===u.type&&!e&&!u[i]){Xt(r,Dt),u[mt](i,i),u[i]=!0,te.call(u,pt,n),te.call(t,pt,n),e=!0;for(var f=0,d=s[At];f<d;f++){var h=s[f],p=h[bt](l)[0];h!==r&&Ft(h,Dt)&&(Yt(h,Dt),p.removeAttribute(i),p[i]=!1,te.call(p,pt,n))}}setTimeout(function(){e=!1},50)}}};Ft(t,"btn-group")&&(c in t||Qt(t,et,a),t[c]=this)};ee(c,ce,e[Tt]("["+i+'="buttons"]'));var se=function(e,n){e=Jt(e),n=n||{};var i="false"!==e[vt](T)&&(parseInt(e[vt](T))||5e3),o=e[vt](x)===nt||!1,l="true"===e[vt](b)||!1,a="carousel",r="paused",c="direction",u="carousel-item",f="data-slide-to";this[H]=n[H]===!0||l,this[$]=!(n[$]!==nt&&!o)&&nt,n[W]||i?this[W]=parseInt(n[W])||i:this[W]=!1;var d=this,h=e.index=0,p=e.timer=0,v=!1,m=Gt(e,u),g=m[At],w=this[c]=Ht,y=Gt(e,a+"-control-prev")[0],C=Gt(e,a+"-control-next")[0],A=Jt("."+a+"-indicators",e),E=A&&A[bt]("LI")||[],L=function(){d[W]===!1||Ft(e,r)||(Xt(e,r),!v&&clearInterval(p))},I=function(){d[W]!==!1&&Ft(e,r)&&(Yt(e,r),!v&&clearInterval(p),!v&&d.cycle())},k=function(t){if(t.preventDefault(),!v){var e=t[P];d.getActiveIndex();if(!e||Ft(e,Dt)||!e[vt](f))return!1;h=parseInt(e[vt](f),10),d.slideTo(h)}},D=function(t){if(t.preventDefault(),!v){var e=t.currentTarget||t.srcElement;e===C?h++:e===y&&h--,d.slideTo(h)}},M=function(t){if(!v){switch(t.which){case 39:h++;break;case 37:h--;break;default:return}d.slideTo(h)}},S=function(t){for(var e=0,n=E[At];e<n;e++)Yt(E[e],Dt);E[t]&&Xt(E[t],Dt)};this.cycle=function(){p=setInterval(function(){h++,d.slideTo(h)},this[W])},this.slideTo=function(t){if(!v){var n,i=this.getActiveIndex();i<t||0===i&&t===g-1?w=d[c]=Ht:(i>t||i===g-1&&0===t)&&(w=d[c]=Nt),t<0?t=g-1:t===g&&(t=0),h=t,n=w===Ht?"next":"prev",te.call(e,ht,a,m[t]),v=!0,clearInterval(p),S(t),Rt&&Ft(e,"slide")?(Xt(m[t],u+"-"+n),m[t][G],Xt(m[t],u+"-"+w),Xt(m[i],u+"-"+w),Zt(m[i],zt,function(o){var l=o[P]!==m[i]?1e3*o.elapsedTime:0;setTimeout(function(){v=!1,Xt(m[t],Dt),Yt(m[i],Dt),Yt(m[t],u+"-"+n),Yt(m[t],u+"-"+w),Yt(m[i],u+"-"+w),te.call(e,dt,a,m[t]),document.hidden||!d[W]||Ft(e,r)||d.cycle()},l+100)})):(Xt(m[t],Dt),m[t][G],Yt(m[i],Dt),setTimeout(function(){v=!1,d[W]&&!Ft(e,r)&&d.cycle(),te.call(e,dt,a,m[t])},100))}},this.getActiveIndex=function(){return m[xt](Gt(e,u+" active")[0])||0},s in e||(this[$]&&this[W]&&(Qt(e,jt[0],L),Qt(e,jt[1],I),Qt(e,"touchstart",L),Qt(e,"touchend",I)),C&&Qt(C,et,D),y&&Qt(y,et,D),A&&Qt(A,et,k,!1),this[H]===!0&&Qt(t,it,M,!1)),this.getActiveIndex()<0&&(m[At]&&Xt(m[0],Dt),E[At]&&S(0)),this[W]&&this.cycle(),e[s]=this};ee(s,se,e[Tt]("["+a+'="carousel"]'));var ue=function(t,e){t=Jt(t),e=e||{};var n=null,o=null,l=this,a=!1,r=t[vt]("data-parent"),c="collapse",s="collapsed",f=function(t){te.call(t,at,c),a=!0,Xt(t,St),Yt(t,c),t[kt][Z]=t[V]+"px",_t(t,function(){a=!1,t[mt](_,"true"),Yt(t,St),Xt(t,c),Xt(t,Mt),t[kt][Z]="",te.call(t,rt,c)})},d=function(t){te.call(t,ct,c),a=!0,t[kt][Z]=t[V]+"px",Yt(t,c),Yt(t,Mt),Xt(t,St),t[G],t[kt][Z]="0px",_t(t,function(){a=!1,t[mt](_,"false"),Yt(t,St),Xt(t,c),t[kt][Z]="",te.call(t,st,c)})},h=function(){var e=t.href&&t[vt]("href"),n=t[vt](w),i=e||n&&ne.test(n)&&n;return i&&Jt(i)};this.toggle=function(t){t.preventDefault(),a||(Ft(o,Mt)?l.hide():l.show())},this.hide=function(){d(o),Xt(t,s)},this.show=function(){if(n){var e=Jt("."+c+"."+Mt,n),l=e&&(Jt("["+i+'="'+c+'"]['+w+'="#'+e.id+'"]',n)||Jt("["+i+'="'+c+'"][href="#'+e.id+'"]',n)),a=l&&(l[vt](w)||l.href);e&&l&&e!==o&&(d(e),a.split("#")[1]!==o.id?Xt(l,s):Yt(l,s))}f(o),Yt(t,s)},u in t||Qt(t,et,this.toggle),o=h(),n=Jt(e.parent)||r&&Kt(t,r),t[u]=this};ee(u,ue,e[Tt]("["+i+'="collapse"]'));var fe=function(t,e){t=Jt(t),this.persist=e===!0||"true"===t[vt]("data-persist")||!1;var n=this,o=!1,l=t[Ct],a="dropdown",r=null,c=Jt(".dropdown-menu",l),s=function(t){!o||27!=t.which&&27!=t.keyCode||(r=null,h())},u=function(e){var a=e[P],s=a&&(a[vt](i)||a[Ct]&&vt in a[Ct]&&a[Ct][vt](i));if(a===t||a===l||a[Ct]===t)e.preventDefault(),r=t,n.toggle();else if(o){if(a===c||c.contains(a)&&(n.persist||s))return;r=null,h()}(/\#$/.test(a.href)||a[Ct]&&/\#$/.test(a[Ct].href))&&e.preventDefault()},d=function(){te.call(l,at,a,r),Xt(c,Mt),Xt(l,Mt),c[mt](_,!0),te.call(l,rt,a,r),Qt(document,it,s),o=!0},h=function(){te.call(l,ct,a,r),Yt(c,Mt),Yt(l,Mt),c[mt](_,!1),te.call(l,st,a,r),Vt(document,it,s),o=!1};this.toggle=function(){Ft(l,Mt)&&o?h():d()},f in t||(c[mt]("tabindex","0"),Qt(document,et,u)),t[f]=this};ee(f,fe,e[Tt]("["+i+'="dropdown"]'));var de=function(i,l){i=Jt(i);var a=i[vt](w)||i[vt]("href"),r=Jt(a),c=Ft(i,"modal")?i:r,s="modal",u="static",f="paddingLeft",h="paddingRight",p="modal-backdrop";if(Ft(i,"modal")&&(i=null),c){l=l||{},this[H]=l[H]!==!1&&"false"!==c[vt](b),this[S]=l[S]!==u&&c[vt](g)!==u||u,this[S]=l[S]!==!1&&"false"!==c[vt](g)&&this[S],this[B]=l[B];var v,m,T,y,x=this,C=this.open=!1,A=null,E=Gt(e,Wt).concat(Gt(e,$t)),L=function(){var n=e[wt]();return t[K]||n[Nt]-Math.abs(n[Ht])},I=function(){var e,i=t.getComputedStyle(n),o=parseInt(i[h],10);if(v&&(n[kt][h]=o+T+"px",E[At]))for(var l=0;l<E[At];l++)e=t.getComputedStyle(E[l])[h],E[l][kt][h]=parseInt(e)+T+"px"},k=function(){if(n[kt][h]="",E[At])for(var t=0;t<E[At];t++)E[t][kt][h]=""},D=function(){var t,e=document.createElement("div");return e.className=s+"-scrollbar-measure",n.appendChild(e),t=e[G]-e[Y],n.removeChild(e),t},M=function(){v=n[Y]<L(),m=c[V]>e[F],T=D()},N=function(){c[kt][f]=!v&&m?T+"px":"",c[kt][h]=v&&!m?T+"px":""},W=function(){c[kt][f]="",c[kt][h]=""},$=function(){if(!(qt>1)){qt+=1;var t=document.createElement("div");y=Jt("."+p),null===y&&(t[mt]("class",p+" fade"),y=t,n.appendChild(y))}},j=function(){0!==qt&&(qt-=1,y=Jt("."+p),y&&null!==y&&"object"==typeof y&&(n.removeChild(y),y=null))},O=function(){Ft(c,Mt)?Vt(document,it,J):Qt(document,it,J)},q=function(){Ft(c,Mt)?Vt(t,ot,x.update):Qt(t,ot,x.update)},R=function(){Ft(c,Mt)?Vt(c,et,Q):Qt(c,et,Q)},z=function(){C=x.open=!0,Ut(c),te.call(c,rt,s,A)},U=function(){q(),R(),O(),c[kt].display="",C=x.open=!1,i&&Ut(i),te.call(c,st,s),setTimeout(function(){Gt(document,s+" "+Mt)[0]||(W(),k(),Yt(n,s+"-open"),x[S]&&(Ft(y,"fade")?(Yt(y,Mt),_t(y,j)):j()))},50)},X=function(t){var e=t[P];e=e[gt](w)||e[gt]("href")?e:e[Ct],C||e!==i||Ft(c,Mt)||(c.modalTrigger=i,A=i,x.show(),t.preventDefault())},J=function(t){var e=t.which||t.keyCode;x[H]&&27==e&&C&&x.hide()},Q=function(t){var e=t[P];C&&(e[Ct][vt](o)===s||e[vt](o)===s||e===c&&x[S]!==u)&&(x.hide(),A=null,t.preventDefault())};this.toggle=function(){C&&Ft(c,Mt)?this.hide():this.show()},this.show=function(){te.call(c,at,s,A);var t=Gt(document,s+" "+Mt)[0];t&&t!==c&&t.modalTrigger[d].hide(),this[S]&&$(),y&&!Ft(y,Mt)&&setTimeout(function(){Xt(y,Mt)},0),setTimeout(function(){c[kt].display="block",M(),I(),N(),q(),R(),O(),Xt(n,s+"-open"),Xt(c,Mt),c[mt](tt,!1),Ft(c,"fade")?_t(c,z):z()},Rt?150:0)},this.hide=function(){te.call(c,ct,s),y=Jt("."+p),Yt(c,Mt),c[mt](tt,!0),setTimeout(function(){Ft(c,"fade")?_t(c,U):U()},Rt?150:0)},this.setContent=function(t){Jt("."+s+"-content",c).innerHTML=t},this.update=function(){C&&(M(),I(),N())},!i||d in i||Qt(i,et,X),this[B]&&this.setContent(this[B]),!!i&&(i[d]=this)}};ee(d,de,e[Tt]("["+i+'="modal"]'));var he=function(e,i){e=Jt(e);var o=e[vt](L),l=e[vt](I),a=e[vt](D),r=e[vt](E),c=e[vt](M),s=e[vt](k),u="popover",f="template",d="trigger",p="class",v="div",m="fade",g="data-content",b="dismissible",w='<button type="button" class="close">×</button>',T=Kt(e,".modal"),y=Kt(e,"."+Wt),x=Kt(e,"."+$t);i=i||{},this[f]=i[f]?i[f]:null,this[d]=i[d]?i[d]:o||nt,this[j]=i[j]&&i[j]!==m?i[j]:l||m,this[O]=i[O]?i[O]:a||Bt,this[N]=parseInt(i[N]||c)||200,this[b]=!(!i[b]&&"true"!==r),this[q]=Jt(i[q])?Jt(i[q]):Jt(s)?Jt(s):y?y:x?x:T?T:n;var A=this,S=e[vt](C)||null,H=e[vt](g)||null;if(H||this[f]){var B=null,W=0,$=this[O],R=function(t){null!==B&&t[P]===Jt(".close",B)&&A.hide()},z=function(){A[q].removeChild(B),W=null,B=null},U=function(){S=e[vt](C),H=e[vt](g),B=document.createElement(v);var t=document.createElement(v);if(t[mt](p,"arrow"),B.appendChild(t),null!==H&&null===A[f]){if(B[mt]("role","tooltip"),null!==S){var n=document.createElement("h3");n[mt](p,u+"-header"),n.innerHTML=A[b]?S+w:S,B.appendChild(n)}var i=document.createElement(v);i[mt](p,u+"-body"),i.innerHTML=A[b]&&null===S?H+w:H,B.appendChild(i)}else{var o=document.createElement(v);o.innerHTML=A[f],B.innerHTML=o.firstChild.innerHTML}A[q].appendChild(B),B[kt].display="block",B[mt](p,u+" bs-"+u+"-"+$+" "+A[j])},X=function(){!Ft(B,Mt)&&Xt(B,Mt)},Y=function(){le(e,B,$,A[q]),ie(B)||($=ae($),le(e,B,$,A[q]))},F=function(){te.call(e,rt,u)},G=function(){z(),te.call(e,st,u)};this.toggle=function(){null===B?A.show():A.hide()},this.show=function(){clearTimeout(W),W=setTimeout(function(){null===B&&($=A[O],U(),Y(),X(),te.call(e,at,u),A[j]?_t(B,F):F())},20)},this.hide=function(){clearTimeout(W),W=setTimeout(function(){B&&null!==B&&Ft(B,Mt)&&(te.call(e,ct,u),Yt(B,Mt),A[j]?_t(B,G):G())},A[N])},h in e||(A[d]===nt?(Qt(e,jt[0],A.show),A[b]||Qt(e,jt[1],A.hide)):/^(click|focus)$/.test(A[d])&&(Qt(e,A[d],A.toggle),A[b]||Qt(e,"blur",A.hide)),A[b]&&Qt(document,et,R),Qt(t,ot,A.hide)),e[h]=A}};ee(h,he,e[Tt]("["+i+'="popover"]'));var pe=function(e,n){e=Jt(e);var i=Jt(e[vt](w)),o=e[vt]("data-offset");if(n=n||{},n[P]||i){for(var l,a=n[P]&&Jt(n[P])||i,r=a&&a[bt]("A"),c=parseInt(o||n.offset)||10,s=[],u=[],f=e[J]<e[V]?e:t,d=f===t,h=0,v=r[At];h<v;h++){var m=r[h][vt]("href"),g=m&&ne.test(m)&&Jt(m);g&&(s.push(r[h]),u.push(g))}var b=function(t){var n=s[t],i=u[t],o=n[Ct][Ct],a=Ft(o,"dropdown")&&o[bt]("A")[0],r=d&&i[wt](),f=Ft(n,Dt)||!1,h=(d?r[Bt]+l:i[R])-c,p=d?r[Pt]+l-c:u[t+1]?u[t+1][R]-c:e[V],v=l>=h&&p>l;if(!f&&v)Ft(n,Dt)||(Xt(n,Dt),f=!0,a&&!Ft(a,Dt)&&Xt(a,Dt),te.call(e,"activate","scrollspy",s[t]));else if(v){if(!v&&!f||f&&v)return}else Ft(n,Dt)&&(Yt(n,Dt),f=!1,a&&Ft(a,Dt)&&!Gt(n[Ct],Dt).length&&Yt(a,Dt))},T=function(){l=d?oe().y:e[U];for(var t=0,n=s[At];t<n;t++)b(t)};this.refresh=function(){T()},p in e||(Qt(f,lt,this.refresh),Qt(t,ot,this.refresh)),this.refresh(),e[p]=this}};ee(p,pe,e[Tt]("["+l+'="scroll"]'));var ve=function(t,e){t=Jt(t);var n=t[vt](y),o="tab",l="height",a="float",r="isAnimating";e=e||{},this[l]=!!Rt&&(e[l]||"true"===n);var c,s,u,f,d,h,p,m=this,g=Kt(t,".nav"),b=!1,w=g&&Jt(".dropdown-toggle",g),T=function(){b[kt][l]="",Yt(b,St),g[r]=!1},x=function(){b?h?T():setTimeout(function(){b[kt][l]=p+"px",b[G],_t(b,T)},1):g[r]=!1,te.call(c,rt,o,s)},C=function(){b&&(u[kt][a]="left",f[kt][a]="left",d=u[V]),Xt(f,Dt),te.call(c,at,o,s),Yt(u,Dt),te.call(s,st,o,c),b&&(p=f[V],h=p===d,Xt(b,St),b[kt][l]=d+"px",b[J],u[kt][a]="",f[kt][a]=""),Ft(f,"fade")?(Xt(f,Mt),_t(f,x)):x()};if(g){g[r]=!1;var A=function(){var t,e=Gt(g,Dt);return 1!==e[At]||Ft(e[0][Ct],"dropdown")?e[At]>1&&(t=e[e[At]-1]):t=e[0],t},E=function(){return Jt(A()[vt]("href"))},L=function(t){t.preventDefault(),c=t[P][vt](i)===o||ne.test(t[P][vt]("href"))?t[P]:t[P][Ct],!g[r]&&!Ft(c,Dt)&&m.show()};this.show=function(){c=c||t,f=Jt(c[vt]("href")),s=A(),u=E(),g[r]=!0,Yt(s,Dt),Xt(c,Dt),w&&(Ft(t[Ct],"dropdown-menu")?Ft(w,Dt)||Xt(w,Dt):Ft(w,Dt)&&Yt(w,Dt)),te.call(s,ct,o,c),Ft(u,"fade")?(Yt(u,Mt),_t(u,C)):C()},v in t||Qt(t,et,L),this[l]&&(b=E()[Ct]),t[v]=this}};ee(v,ve,e[Tt]("["+i+'="tab"]'));var me=function(t,e){t=Jt(t);var i=t[vt](I),o=t[vt](D),l=t[vt](M),a=t[vt](k),r="tooltip",c="class",s="title",u="fade",f="div",d=Kt(t,".modal"),h=Kt(t,"."+Wt),p=Kt(t,"."+$t);e=e||{},this[j]=e[j]&&e[j]!==u?e[j]:i||u,this[O]=e[O]?e[O]:o||Bt,this[N]=parseInt(e[N]||l)||200,this[q]=Jt(e[q])?Jt(e[q]):Jt(a)?Jt(a):h?h:p?p:d?d:n;var v=this,g=0,b=this[O],w=null,T=t[vt](s)||t[vt](C)||t[vt](A);if(T&&""!=T){var y=function(){v[q].removeChild(w),w=null,g=null},x=function(){if(T=t[vt](s)||t[vt](C)||t[vt](A),!T||""==T)return!1;w=document.createElement(f),w[mt]("role",r);var e=document.createElement(f);e[mt](c,"arrow"),w.appendChild(e);var n=document.createElement(f);n[mt](c,r+"-inner"),w.appendChild(n),n.innerHTML=T,v[q].appendChild(w),w[mt](c,r+" bs-"+r+"-"+b+" "+v[j])},E=function(){le(t,w,b,v[q]),ie(w)||(b=ae(b),le(t,w,b,v[q]))},L=function(){!Ft(w,Mt)&&Xt(w,Mt)},S=function(){te.call(t,rt,r)},H=function(){y(),te.call(t,st,r)};this.show=function(){clearTimeout(g),g=setTimeout(function(){if(null===w){if(b=v[O],0==x())return;E(),L(),te.call(t,at,r),v[j]?_t(w,S):S()}},20)},this.hide=function(){clearTimeout(g),g=setTimeout(function(){w&&null!==w&&Ft(w,Mt)&&(te.call(t,ct,r),Yt(w,Mt),v[j]?_t(w,H):H())},v[N])},this.toggle=function(){w?v.hide():v.show()},m in t||(t[mt](A,T),t.removeAttribute(s),Qt(t,jt[0],this.show),Qt(t,jt[1],this.hide)),t[m]=this}};return ee(m,me,e[Tt]("["+i+'="tooltip"]')),{Alert:re,Button:ce,Carousel:se,Collapse:ue,Dropdown:fe,Modal:de,Popover:he,ScrollSpy:pe,Tab:ve,Tooltip:me}});
// Native Javascript for Bootstrap 4 v2.0.18 | © dnp_theme | MIT-License
!function(t,e){if("function"==typeof define&&define.amd)define([],e);else if("object"==typeof module&&module.exports)module.exports=e();else{var n=e();t.Alert=n.Alert,t.Button=n.Button,t.Carousel=n.Carousel,t.Collapse=n.Collapse,t.Dropdown=n.Dropdown,t.Modal=n.Modal,t.Popover=n.Popover,t.ScrollSpy=n.ScrollSpy,t.Tab=n.Tab,t.Tooltip=n.Tooltip}}(this,function(){"use strict";var t="undefined"!=typeof global?global:this||window,e=document.documentElement,n=document,i="body",o="data-toggle",l="data-dismiss",a="data-spy",r="data-ride",c="Alert",s="Button",u="Carousel",f="Collapse",d="Dropdown",h="Modal",p="Popover",v="ScrollSpy",m="Tab",g="Tooltip",b="data-backdrop",w="data-keyboard",T="data-target",y="data-interval",x="data-height",C="data-pause",A="data-title",E="data-original-title",L="data-dismissible",I="data-trigger",k="data-animation",M="data-container",S="data-placement",D="data-delay",H="backdrop",N="keyboard",B="delay",P="content",$="target",W="interval",j="pause",O="animation",q="placement",R="container",z="offsetTop",U="offsetLeft",X="scrollTop",Y="scrollLeft",F="clientWidth",G="clientHeight",J="offsetWidth",K="offsetHeight",Q="innerWidth",V="innerHeight",Z="scrollHeight",_="height",tt="aria-expanded",et="aria-hidden",nt="click",it="hover",ot="keydown",lt="resize",at="scroll",rt="show",ct="shown",st="hide",ut="hidden",ft="close",dt="closed",ht="slid",pt="slide",vt="change",mt="getAttribute",gt="setAttribute",bt="hasAttribute",wt="getElementsByTagName",Tt="getBoundingClientRect",yt="querySelectorAll",xt="getElementsByClassName",Ct="indexOf",At="parentNode",Et="preventDefault",Lt="length",It="toLowerCase",kt="Transition",Mt="Webkit",St="style",Dt="active",Ht="show",Nt="collapsing",Bt="left",Pt="right",$t="top",Wt="bottom",jt="fixed-top",Ot="fixed-bottom",qt="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Rt=/\b(top|bottom|left|top)+/,zt=0,Ut=Mt+kt in e[St]||kt[It]()in e[St],Xt=Mt+kt in e[St]?Mt[It]()+kt+"End":kt[It]()+"end",Yt=function(t){t.focus?t.focus():t.setActive()},Ft=function(t,e){t.classList.add(e)},Gt=function(t,e){t.classList.remove(e)},Jt=function(t,e){return t.classList.contains(e)},Kt=function(t,e){return[].slice.call(t[xt](e))},Qt=function(t,e){var n=e?e:document;return"object"==typeof t?t:n.querySelector(t)},Vt=function(t,e){for(var n=e.charAt(0);t&&t!==document;t=t[At])if("."===n){if(null!==Qt(e,t[At])&&Jt(t,e.replace(".","")))return t}else if("#"===n&&t.id===e.substr(1))return t;return!1},Zt=function(t,e,n){t.addEventListener(e,n,!1)},_t=function(t,e,n){t.removeEventListener(e,n,!1)},te=function(t,e,n){Zt(t,e,function i(o){n(o),_t(t,e,i)})},ee=function(t,e){Ut?te(t,Xt,function(t){e(t)}):e()},ne=function(t,e,n){var i=new CustomEvent(t+".bs."+e);i.relatedTarget=n,this.dispatchEvent(i)},ie=function(t,e,n){for(var i=0;i<n[Lt];i++)new e(n[i])},oe=/^\#(.)+$/,le=function(n){var i=n[Tt]();return i[$t]>=0&&i[Bt]>=0&&i[Wt]<=(t[V]||e[G])&&i[Pt]<=(t[Q]||e[F])},ae=function(){return{y:t.pageYOffset||e[X],x:t.pageXOffset||e[Y]}},re=function(t,e,o,l){var a=t[Tt](),r=Qt(".arrow",e),c=r[J],s=Jt(e,"popover"),u=l===n[i]?ae():{x:l[U]+l[Y],y:l[z]+l[X]},f={w:a[Pt]-a[Bt],h:a[Wt]-a[$t]},d={w:e[J],h:e[K]};o===$t?(e[St][$t]=a[$t]+u.y-d.h-(s?c:0)+"px",e[St][Bt]=a[Bt]+u.x-d.w/2+f.w/2+"px",r[St][Bt]=d.w/2-c/2+"px"):o===Wt?(e[St][$t]=a[$t]+u.y+f.h+"px",e[St][Bt]=a[Bt]+u.x-d.w/2+f.w/2+"px",r[St][Bt]=d.w/2-c/2+"px"):o===Bt?(e[St][$t]=a[$t]+u.y-d.h/2+f.h/2+"px",e[St][Bt]=a[Bt]+u.x-d.w-(s?c:0)+"px",r[St][$t]=d.h/2-c/2+"px"):o===Pt&&(e[St][$t]=a[$t]+u.y-d.h/2+f.h/2+"px",e[St][Bt]=a[Bt]+u.x+f.w+"px",r[St][$t]=d.h/2-c/2+"px"),e.className[Ct](o)===-1&&(e.className=e.className.replace(Rt,o))},ce=function(t){return t===$t?Wt:t===Wt?$t:t===Bt?Pt:t===Pt?Bt:t},se=function(t){t=Qt(t);var e=this,n="alert",i=Vt(t,"."+n),o=function(){Jt(i,"fade")?ee(i,r):r()},a=function(o){i=Vt(o[$],"."+n),t=Qt("["+l+'="'+n+'"]',i),t&&i&&(t===o[$]||t.contains(o[$]))&&e.close()},r=function(){ne.call(i,dt,n),_t(t,nt,a),i[At].removeChild(i)};this.close=function(){i&&t&&Jt(i,Ht)&&(ne.call(i,ft,n),Gt(i,Ht),i&&o())},c in t||Zt(t,nt,a),t[c]=this};ie(c,se,n[yt]("["+l+'="alert"]'));var ue=function(t){t=Qt(t);var e=!1,n="button",i="checked",o="LABEL",l="INPUT",a=function(a){var r=a[$].tagName===o?a[$]:a[$][At].tagName===o?a[$][At]:null;if(r){var c=this,s=Kt(c,"btn"),u=r[wt](l)[0];if(u){if("checkbox"===u.type&&(u[i]?(Gt(r,Dt),u[mt](i),u.removeAttribute(i),u[i]=!1):(Ft(r,Dt),u[mt](i),u[gt](i,i),u[i]=!0),e||(e=!0,ne.call(u,vt,n),ne.call(t,vt,n))),"radio"===u.type&&!e&&!u[i]){Ft(r,Dt),u[gt](i,i),u[i]=!0,ne.call(u,vt,n),ne.call(t,vt,n),e=!0;for(var f=0,d=s[Lt];f<d;f++){var h=s[f],p=h[wt](l)[0];h!==r&&Jt(h,Dt)&&(Gt(h,Dt),p.removeAttribute(i),p[i]=!1,ne.call(p,vt,n))}}setTimeout(function(){e=!1},50)}}};s in t||Zt(t,nt,a);for(var r=Kt(t,"btn"),c=r[Lt],u=0;u<c;u++)!Jt(r[u],Dt)&&Qt("input:checked",r[u])&&Ft(r[u],Dt);t[s]=this};ie(s,ue,n[yt]("["+o+'="buttons"]'));var fe=function(e,n){e=Qt(e),n=n||{};var i="false"!==e[mt](y)&&(parseInt(e[mt](y))||5e3),o=e[mt](C)===it||!1,l="true"===e[mt](w)||!1,a="carousel",r="paused",c="direction",s="carousel-item",f="data-slide-to";this[N]=n[N]===!0||l,this[j]=!(n[j]!==it&&!o)&&it,n[W]||i?this[W]=parseInt(n[W])||i:this[W]=!1;var d=this,h=e.index=0,p=e.timer=0,v=!1,m=Kt(e,s),g=m[Lt],b=this[c]=Bt,T=Kt(e,a+"-control-prev")[0],x=Kt(e,a+"-control-next")[0],A=Qt("."+a+"-indicators",e),E=A&&A[wt]("LI")||[],L=function(){d[W]===!1||Jt(e,r)||(Ft(e,r),!v&&clearInterval(p))},I=function(){d[W]!==!1&&Jt(e,r)&&(Gt(e,r),!v&&clearInterval(p),!v&&d.cycle())},k=function(t){if(t.preventDefault(),!v){var e=t[$];d.getActiveIndex();if(!e||Jt(e,Dt)||!e[mt](f))return!1;h=parseInt(e[mt](f),10),d.slideTo(h)}},M=function(t){if(t.preventDefault(),!v){var e=t.currentTarget||t.srcElement;e===x?h++:e===T&&h--,d.slideTo(h)}},S=function(t){if(!v){switch(t.which){case 39:h++;break;case 37:h--;break;default:return}d.slideTo(h)}},D=function(t){for(var e=0,n=E[Lt];e<n;e++)Gt(E[e],Dt);E[t]&&Ft(E[t],Dt)};this.cycle=function(){p=setInterval(function(){h++,d.slideTo(h)},this[W])},this.slideTo=function(t){if(!v){var n,i=this.getActiveIndex();i<t||0===i&&t===g-1?b=d[c]=Bt:(i>t||i===g-1&&0===t)&&(b=d[c]=Pt),t<0?t=g-1:t===g&&(t=0),h=t,n=b===Bt?"next":"prev",ne.call(e,pt,a,m[t]),v=!0,clearInterval(p),D(t),Ut&&Jt(e,"slide")?(Ft(m[t],s+"-"+n),m[t][J],Ft(m[t],s+"-"+b),Ft(m[i],s+"-"+b),te(m[i],Xt,function(o){var l=o[$]!==m[i]?1e3*o.elapsedTime:0;setTimeout(function(){v=!1,Ft(m[t],Dt),Gt(m[i],Dt),Gt(m[t],s+"-"+n),Gt(m[t],s+"-"+b),Gt(m[i],s+"-"+b),ne.call(e,ht,a,m[t]),document.hidden||!d[W]||Jt(e,r)||d.cycle()},l+100)})):(Ft(m[t],Dt),m[t][J],Gt(m[i],Dt),setTimeout(function(){v=!1,d[W]&&!Jt(e,r)&&d.cycle(),ne.call(e,ht,a,m[t])},100))}},this.getActiveIndex=function(){return m[Ct](Kt(e,s+" active")[0])||0},u in e||(this[j]&&this[W]&&(Zt(e,qt[0],L),Zt(e,qt[1],I),Zt(e,"touchstart",L),Zt(e,"touchend",I)),x&&Zt(x,nt,M),T&&Zt(T,nt,M),A&&Zt(A,nt,k,!1),this[N]===!0&&Zt(t,ot,S,!1)),this.getActiveIndex()<0&&(m[Lt]&&Ft(m[0],Dt),E[Lt]&&D(0)),this[W]&&this.cycle(),e[u]=this};ie(u,fe,n[yt]("["+r+'="carousel"]'));var de=function(t,e){t=Qt(t),e=e||{};var n=null,i=null,l=this,a=!1,r=t[mt]("data-parent"),c="collapse",s="collapsed",u=function(t){ne.call(t,rt,c),a=!0,Ft(t,Nt),Gt(t,c),t[St][_]=t[Z]+"px",ee(t,function(){a=!1,t[gt](tt,"true"),Gt(t,Nt),Ft(t,c),Ft(t,Ht),t[St][_]="",ne.call(t,ct,c)})},d=function(t){ne.call(t,st,c),a=!0,t[St][_]=t[Z]+"px",Gt(t,c),Gt(t,Ht),Ft(t,Nt),t[J],t[St][_]="0px",ee(t,function(){a=!1,t[gt](tt,"false"),Gt(t,Nt),Ft(t,c),t[St][_]="",ne.call(t,ut,c)})},h=function(){var e=t.href&&t[mt]("href"),n=t[mt](T),i=e||n&&oe.test(n)&&n;return i&&Qt(i)};this.toggle=function(t){t.preventDefault(),a||(Jt(i,Ht)?l.hide():l.show())},this.hide=function(){d(i),Ft(t,s)},this.show=function(){if(n){var e=Qt("."+c+"."+Ht,n),l=e&&(Qt("["+o+'="'+c+'"]['+T+'="#'+e.id+'"]',n)||Qt("["+o+'="'+c+'"][href="#'+e.id+'"]',n)),a=l&&(l[mt](T)||l.href);e&&l&&e!==i&&(d(e),a.split("#")[1]!==i.id?Ft(l,s):Gt(l,s))}u(i),Gt(t,s)},f in t||Zt(t,nt,this.toggle),i=h(),n=Qt(e.parent)||r&&Vt(t,r),t[f]=this};ie(f,de,n[yt]("["+o+'="collapse"]'));var he=function(t,e){t=Qt(t),this.persist=e===!0||"true"===t[mt]("data-persist")||!1;var i=this,l=t[At],a="dropdown",r="open",c=null,s=Qt(".dropdown-menu",l),u=function(t){(/\#$/.test(t.href)||t[At]&&/\#$/.test(t[At].href))&&this[Et]()},f=function(){var e=t[r]?Zt:_t;e(n,ot,p),e(n,nt,h)},h=function(e){var n=e[$],l=n&&(n[mt](o)||n[At]&&mt in n[At]&&n[At][mt](o));(n!==s&&!s.contains(n)||!i.persist&&!l)&&(c=n===t||t.contains(n)?t:null,g(),u.call(e,n))},p=function(e){t[r]&&27===e.which&&(c=null,g())},v=function(e){c=t,m(),u.call(e,e[$])},m=function(){ne.call(l,rt,a,c),Ft(s,Ht),Ft(l,Ht),s[gt](tt,!0),ne.call(l,ct,a,c),t[r]=!0,_t(t,nt,v),setTimeout(function(){f()},1)},g=function(){ne.call(l,st,a,c),Gt(s,Ht),Gt(l,Ht),s[gt](tt,!1),ne.call(l,ut,a,c),t[r]=!1,f(),setTimeout(function(){Zt(t,nt,v)},1)};t[r]=!1,this.toggle=function(){Jt(l,Ht)&&t[r]?g():m()},d in t||(s[gt]("tabindex","0"),Zt(t,nt,v)),t[d]=this};ie(d,he,n[yt]("["+o+'="dropdown"]'));var pe=function(o,a){o=Qt(o);var r=o[mt](T)||o[mt]("href"),c=Qt(r),s=Jt(o,"modal")?o:c,u="modal",f="static",d="paddingLeft",p="paddingRight",v="modal-backdrop";if(Jt(o,"modal")&&(o=null),s){a=a||{},this[N]=a[N]!==!1&&"false"!==s[mt](w),this[H]=a[H]!==f&&s[mt](b)!==f||f,this[H]=a[H]!==!1&&"false"!==s[mt](b)&&this[H],this[P]=a[P];var m,g,y,x,C=this,A=null,E=Kt(e,jt).concat(Kt(e,Ot)),L=function(){var n=e[Tt]();return t[Q]||n[Pt]-Math.abs(n[Bt])},I=function(){var e,o=t.getComputedStyle(n[i]),l=parseInt(o[p],10);if(m&&(n[i][St][p]=l+y+"px",E[Lt]))for(var a=0;a<E[Lt];a++)e=t.getComputedStyle(E[a])[p],E[a][St][p]=parseInt(e)+y+"px"},k=function(){if(n[i][St][p]="",E[Lt])for(var t=0;t<E[Lt];t++)E[t][St][p]=""},M=function(){var t,e=document.createElement("div");return e.className=u+"-scrollbar-measure",n[i].appendChild(e),t=e[J]-e[F],n[i].removeChild(e),t},S=function(){m=n[i][F]<L(),g=s[Z]>e[G],y=M()},D=function(){s[St][d]=!m&&g?y+"px":"",s[St][p]=m&&!g?y+"px":""},B=function(){s[St][d]="",s[St][p]=""},W=function(){zt=1;var t=document.createElement("div");x=Qt("."+v),null===x&&(t[gt]("class",v+" fade"),x=t,n[i].appendChild(x))},j=function(){x=Qt("."+v),x&&null!==x&&"object"==typeof x&&(zt=0,n[i].removeChild(x),x=null),ne.call(s,ut,u)},O=function(){Jt(s,Ht)?Zt(document,ot,Y):_t(document,ot,Y)},q=function(){Jt(s,Ht)?Zt(t,lt,C.update):_t(t,lt,C.update)},R=function(){Jt(s,Ht)?Zt(s,nt,K):_t(s,nt,K)},z=function(){Yt(s),ne.call(s,ct,u,A)},U=function(){s[St].display="",o&&Yt(o),setTimeout(function(){Kt(document,u+" "+Ht)[0]||(B(),k(),Gt(n[i],u+"-open"),x&&Jt(x,"fade")?(Gt(x,Ht),ee(x,j)):j(),q(),R(),O())},50)},X=function(t){var e=t[$];e=e[bt](T)||e[bt]("href")?e:e[At],e!==o||Jt(s,Ht)||(s.modalTrigger=o,A=o,C.show(),t.preventDefault())},Y=function(t){C[N]&&27==t.which&&Jt(s,Ht)&&C.hide()},K=function(t){var e=t[$];Jt(s,Ht)&&(e[At][mt](l)===u||e[mt](l)===u||e===s&&C[H]!==f)&&(C.hide(),A=null,t.preventDefault())};this.toggle=function(){Jt(s,Ht)?this.hide():this.show()},this.show=function(){ne.call(s,rt,u,A);var t=Kt(document,u+" "+Ht)[0];t&&t!==s&&t.modalTrigger[h].hide(),this[H]&&!zt&&W(),x&&zt&&!Jt(x,Ht)&&(x[J],Ft(x,Ht)),setTimeout(function(){s[St].display="block",S(),I(),D(),Ft(n[i],u+"-open"),Ft(s,Ht),s[gt](et,!1),q(),R(),O(),Jt(s,"fade")?ee(s,z):z()},Ut?150:0)},this.hide=function(){ne.call(s,st,u),x=Qt("."+v),Gt(s,Ht),s[gt](et,!0),setTimeout(function(){Jt(s,"fade")?ee(s,U):U()},Ut?150:0)},this.setContent=function(t){Qt("."+u+"-content",s).innerHTML=t},this.update=function(){Jt(s,Ht)&&(S(),I(),D())},!o||h in o||Zt(o,nt,X),this[P]&&this.setContent(this[P]),!!o&&(o[h]=this)}};ie(h,pe,n[yt]("["+o+'="modal"]'));var ve=function(e,o){e=Qt(e);var l=e[mt](I),a=e[mt](k),r=e[mt](S),c=e[mt](L),s=e[mt](D),u=e[mt](M),f="popover",d="template",h="trigger",v="class",m="div",g="fade",b="data-content",w="dismissible",T='<button type="button" class="close">×</button>',y=Vt(e,".modal"),x=Vt(e,"."+jt),C=Vt(e,"."+Ot);o=o||{},this[d]=o[d]?o[d]:null,this[h]=o[h]?o[h]:l||it,this[O]=o[O]&&o[O]!==g?o[O]:a||g,this[q]=o[q]?o[q]:r||$t,this[B]=parseInt(o[B]||s)||200,this[w]=!(!o[w]&&"true"!==c),this[R]=Qt(o[R])?Qt(o[R]):Qt(u)?Qt(u):x?x:C?C:y?y:n[i];var E=this,H=e[mt](A)||null,N=e[mt](b)||null;if(N||this[d]){var P=null,W=0,j=this[q],z=function(t){null!==P&&t[$]===Qt(".close",P)&&E.hide()},U=function(){E[R].removeChild(P),W=null,P=null},X=function(){H=e[mt](A),N=e[mt](b),P=document.createElement(m);var t=document.createElement(m);if(t[gt](v,"arrow"),P.appendChild(t),null!==N&&null===E[d]){if(P[gt]("role","tooltip"),null!==H){var n=document.createElement("h3");n[gt](v,f+"-header"),n.innerHTML=E[w]?H+T:H,P.appendChild(n)}var i=document.createElement(m);i[gt](v,f+"-body"),i.innerHTML=E[w]&&null===H?N+T:N,P.appendChild(i)}else{var o=document.createElement(m);o.innerHTML=E[d],P.innerHTML=o.firstChild.innerHTML}E[R].appendChild(P),P[St].display="block",P[gt](v,f+" bs-"+f+"-"+j+" "+E[O])},Y=function(){!Jt(P,Ht)&&Ft(P,Ht)},F=function(){re(e,P,j,E[R]),le(P)||(j=ce(j),re(e,P,j,E[R]))},G=function(n){/^(click|focus)$/.test(E[h])&&!E[w]&&n(e,"blur",E.hide),E[w]&&n(document,nt,z),n(t,lt,E.hide)},J=function(){G(Zt),ne.call(e,ct,f)},K=function(){G(_t),U(),ne.call(e,ut,f)};this.toggle=function(){null===P?E.show():E.hide()},this.show=function(){clearTimeout(W),W=setTimeout(function(){null===P&&(j=E[q],X(),F(),Y(),ne.call(e,rt,f),E[O]?ee(P,J):J())},20)},this.hide=function(){clearTimeout(W),W=setTimeout(function(){P&&null!==P&&Jt(P,Ht)&&(ne.call(e,st,f),Gt(P,Ht),E[O]?ee(P,K):K())},E[B])},p in e||(E[h]===it?(Zt(e,qt[0],E.show),E[w]||Zt(e,qt[1],E.hide)):/^(click|focus)$/.test(E[h])&&Zt(e,E[h],E.toggle)),e[p]=E}};ie(p,ve,n[yt]("["+o+'="popover"]'));var me=function(e,n){e=Qt(e);var i=Qt(e[mt](T)),o=e[mt]("data-offset");if(n=n||{},n[$]||i){for(var l,a=n[$]&&Qt(n[$])||i,r=a&&a[wt]("A"),c=parseInt(o||n.offset)||10,s=[],u=[],f=e[K]<e[Z]?e:t,d=f===t,h=0,p=r[Lt];h<p;h++){var m=r[h][mt]("href"),g=m&&oe.test(m)&&Qt(m);g&&(s.push(r[h]),u.push(g))}var b=function(t){var n=s[t],i=u[t],o=n[At][At],a=Jt(o,"dropdown")&&o[wt]("A")[0],r=d&&i[Tt](),f=Jt(n,Dt)||!1,h=(d?r[$t]+l:i[z])-c,p=d?r[Wt]+l-c:u[t+1]?u[t+1][z]-c:e[Z],v=l>=h&&p>l;if(!f&&v)Jt(n,Dt)||(Ft(n,Dt),f=!0,a&&!Jt(a,Dt)&&Ft(a,Dt),ne.call(e,"activate","scrollspy",s[t]));else if(v){if(!v&&!f||f&&v)return}else Jt(n,Dt)&&(Gt(n,Dt),f=!1,a&&Jt(a,Dt)&&!Kt(n[At],Dt).length&&Gt(a,Dt))},w=function(){l=d?ae().y:e[X];for(var t=0,n=s[Lt];t<n;t++)b(t)};this.refresh=function(){w()},v in e||(Zt(f,at,this.refresh),Zt(t,lt,this.refresh)),this.refresh(),e[v]=this}};ie(v,me,n[yt]("["+a+'="scroll"]'));var ge=function(t,e){t=Qt(t);var n=t[mt](x),i="tab",l="height",a="float",r="isAnimating";e=e||{},this[l]=!!Ut&&(e[l]||"true"===n);var c,s,u,f,d,h,p,v=this,g=Vt(t,".nav"),b=!1,w=g&&Qt(".dropdown-toggle",g),T=function(){b[St][l]="",Gt(b,Nt),g[r]=!1},y=function(){b?h?T():setTimeout(function(){b[St][l]=p+"px",b[J],ee(b,T)},1):g[r]=!1,ne.call(c,ct,i,s)},C=function(){b&&(u[St][a]="left",f[St][a]="left",d=u[Z]),Ft(f,Dt),ne.call(c,rt,i,s),Gt(u,Dt),ne.call(s,ut,i,c),b&&(p=f[Z],h=p===d,Ft(b,Nt),b[St][l]=d+"px",b[K],u[St][a]="",f[St][a]=""),Jt(f,"fade")?(Ft(f,Ht),ee(f,y)):y()};if(g){g[r]=!1;var A=function(){var t,e=Kt(g,Dt);return 1!==e[Lt]||Jt(e[0][At],"dropdown")?e[Lt]>1&&(t=e[e[Lt]-1]):t=e[0],t},E=function(){return Qt(A()[mt]("href"))},L=function(t){t.preventDefault(),c=t[$][mt](o)===i||oe.test(t[$][mt]("href"))?t[$]:t[$][At],!g[r]&&!Jt(c,Dt)&&v.show()};this.show=function(){c=c||t,f=Qt(c[mt]("href")),s=A(),u=E(),g[r]=!0,Gt(s,Dt),Ft(c,Dt),w&&(Jt(t[At],"dropdown-menu")?Jt(w,Dt)||Ft(w,Dt):Jt(w,Dt)&&Gt(w,Dt)),ne.call(s,st,i,c),Jt(u,"fade")?(Gt(u,Ht),ee(u,C)):C()},m in t||Zt(t,nt,L),this[l]&&(b=E()[At]),t[m]=this}};ie(m,ge,n[yt]("["+o+'="tab"]'));var be=function(e,o){e=Qt(e);var l=e[mt](k),a=e[mt](S),r=e[mt](D),c=e[mt](M),s="tooltip",u="class",f="title",d="fade",h="div",p=Vt(e,".modal"),v=Vt(e,"."+jt),m=Vt(e,"."+Ot);o=o||{},this[O]=o[O]&&o[O]!==d?o[O]:l||d,this[q]=o[q]?o[q]:a||$t,this[B]=parseInt(o[B]||r)||200,this[R]=Qt(o[R])?Qt(o[R]):Qt(c)?Qt(c):v?v:m?m:p?p:n[i];var b=this,w=0,T=this[q],y=null,x=e[mt](f)||e[mt](A)||e[mt](E);if(x&&""!=x){var C=function(){b[R].removeChild(y),y=null,w=null},L=function(){if(x=e[mt](f)||e[mt](A)||e[mt](E),!x||""==x)return!1;y=document.createElement(h),y[gt]("role",s);var t=document.createElement(h);t[gt](u,"arrow"),y.appendChild(t);var n=document.createElement(h);n[gt](u,s+"-inner"),y.appendChild(n),n.innerHTML=x,b[R].appendChild(y),y[gt](u,s+" bs-"+s+"-"+T+" "+b[O])},I=function(){re(e,y,T,b[R]),le(y)||(T=ce(T),re(e,y,T,b[R]))},H=function(){!Jt(y,Ht)&&Ft(y,Ht)},N=function(){Zt(t,lt,b.hide),ne.call(e,ct,s)},P=function(){_t(t,lt,b.hide),C(),ne.call(e,ut,s)};this.show=function(){clearTimeout(w),w=setTimeout(function(){if(null===y){if(T=b[q],0==L())return;I(),H(),ne.call(e,rt,s),b[O]?ee(y,N):N()}},20)},this.hide=function(){clearTimeout(w),w=setTimeout(function(){y&&null!==y&&Jt(y,Ht)&&(ne.call(e,st,s),Gt(y,Ht),b[O]?ee(y,P):P())},b[B])},this.toggle=function(){y?b.hide():b.show()},g in e||(e[gt](E,x),e.removeAttribute(f),Zt(e,qt[0],this.show),Zt(e,qt[1],this.hide)),e[g]=this}};return ie(g,be,n[yt]("["+o+'="tooltip"]')),{Alert:se,Button:ue,Carousel:fe,Collapse:de,Dropdown:he,Modal:pe,Popover:ve,ScrollSpy:me,Tab:ge,Tooltip:be}});

@@ -1,2 +0,2 @@

// Native Javascript for Bootstrap 3 v2.0.17 | © dnp_theme | MIT-License
!function(t,e){if("function"==typeof define&&define.amd)define([],e);else if("object"==typeof module&&module.exports)module.exports=e();else{var n=e();t.Affix=n.Affix,t.Alert=n.Alert,t.Button=n.Button,t.Carousel=n.Carousel,t.Collapse=n.Collapse,t.Dropdown=n.Dropdown,t.Modal=n.Modal,t.Popover=n.Popover,t.ScrollSpy=n.ScrollSpy,t.Tab=n.Tab,t.Tooltip=n.Tooltip}}(this,function(){"use strict";var t="undefined"!=typeof global?global:this||window,e=document.documentElement,n=document.body,i="data-toggle",o="data-dismiss",a="data-spy",l="data-ride",r="Affix",c="Alert",u="Button",s="Carousel",f="Collapse",d="Dropdown",h="Modal",p="Popover",v="ScrollSpy",m="Tab",g="Tooltip",b="data-backdrop",x="data-keyboard",y="data-target",T="data-interval",w="data-height",C="data-pause",I="data-title",A="data-original-title",L="data-original-text",E="data-dismissible",k="data-trigger",M="data-animation",H="data-container",S="data-placement",D="data-delay",N="data-offset-top",B="data-offset-bottom",P="backdrop",$="keyboard",W="delay",j="content",O="target",q="interval",z="pause",R="animation",U="placement",X="container",Y="offsetTop",F="offsetBottom",G="offsetLeft",J="scrollTop",K="scrollLeft",Q="clientWidth",V="clientHeight",Z="offsetWidth",_="offsetHeight",tt="innerWidth",et="innerHeight",nt="scrollHeight",it="height",ot="aria-expanded",at="aria-hidden",lt="click",rt="hover",ct="keydown",ut="resize",st="scroll",ft="show",dt="shown",ht="hide",pt="hidden",vt="close",mt="closed",gt="slid",bt="slide",xt="change",yt="getAttribute",Tt="setAttribute",wt="hasAttribute",Ct="getElementsByTagName",It="getBoundingClientRect",At="querySelectorAll",Lt="getElementsByClassName",Et="indexOf",kt="parentNode",Mt="length",Ht="toLowerCase",St="Transition",Dt="Webkit",Nt="style",Bt="active",Pt="in",$t="collapsing",Wt="disabled",jt="loading",Ot="left",qt="right",zt="top",Rt="bottom",Ut=!("opacity"in n[Nt]),Xt="navbar-fixed-top",Yt="navbar-fixed-bottom",Ft="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Gt=/\b(top|bottom|left|top)+/,Jt=0,Kt=Dt+St in e[Nt]||St[Ht]()in e[Nt],Qt=Dt+St in e[Nt]?Dt[Ht]()+St+"End":St[Ht]()+"end",Vt=function(t){t.focus?t.focus():t.setActive()},Zt=function(t,e){t.classList.add(e)},_t=function(t,e){t.classList.remove(e)},te=function(t,e){return t.classList.contains(e)},ee=function(t){for(var e=[],n=0,i=t[Mt];n<i;n++)e.push(t[n]);return e},ne=function(t,e){var n=Ut?At:Lt;return ee(t[n](Ut?"."+e.replace(/\s(?=[a-z])/g,"."):e))},ie=function(t,e){var n=e?e:document;return"object"==typeof t?t:n.querySelector(t)},oe=function(t,e){for(var n=e.charAt(0);t&&t!==document;t=t[kt])if("."===n){if(null!==ie(e,t[kt])&&te(t,e.replace(".","")))return t}else if("#"===n&&t.id===e.substr(1))return t;return!1},ae=function(t,e,n){t.addEventListener(e,n,!1)},le=function(t,e,n){t.removeEventListener(e,n,!1)},re=function(t,e,n){ae(t,e,function i(o){n(o),le(t,e,i)})},ce=function(t,e){Kt?re(t,Qt,function(t){e(t)}):e()},ue=function(t,e,n){var i=new CustomEvent(t+".bs."+e);i.relatedTarget=n,this.dispatchEvent(i)},se=function(t,e,n){for(var i=0;i<n[Mt];i++)new e(n[i])},fe=/^\#(.)+$/,de=function(n){var i=n[It]();return i[zt]>=0&&i[Ot]>=0&&i[Rt]<=(t[et]||e[V])&&i[qt]<=(t[tt]||e[Q])},he=function(){return{y:t.pageYOffset||e[J],x:t.pageXOffset||e[K]}},pe=function(t,e,i,o){var a=t[It](),l=o===n?he():{x:o[G]+o[K],y:o[Y]+o[J]},r={w:a[qt]-a[Ot],h:a[Rt]-a[zt]},c={w:e[Z],h:e[_]};i===zt?(e[Nt][zt]=a[zt]+l.y-c.h+"px",e[Nt][Ot]=a[Ot]+l.x-c.w/2+r.w/2+"px"):i===Rt?(e[Nt][zt]=a[zt]+l.y+r.h+"px",e[Nt][Ot]=a[Ot]+l.x-c.w/2+r.w/2+"px"):i===Ot?(e[Nt][zt]=a[zt]+l.y-c.h/2+r.h/2+"px",e[Nt][Ot]=a[Ot]+l.x-c.w+"px"):i===qt&&(e[Nt][zt]=a[zt]+l.y-c.h/2+r.h/2+"px",e[Nt][Ot]=a[Ot]+l.x+r.w+"px"),e.className[Et](i)===-1&&(e.className=e.className.replace(Gt,i))},ve=function(t){return t===zt?Rt:t===Rt?zt:t===Ot?qt:t===qt?Ot:t},me=function(i,o){i=ie(i),o=o||{};var a=i[yt](y),l=i[yt](N),c=i[yt](B),u="affix",s="affixed",f="function",d="update",h="affix-top",p="affixed-top",v="affix-bottom",m="affixed-bottom";if(this[O]=o[O]?ie(o[O]):ie(a)||null,this[Y]=o[Y]?o[Y]:parseInt(l)||0,this[F]=o[F]?o[F]:parseInt(c)||0,this[O]||this[Y]||this[F]){var g,b,x,T,w,C,I=this,A=Kt?50:500,L=!1,E=!1,k=function(){return Math.max(n[nt],n[_],e[V],e[nt],e[_])},M=function(){return null!==I[O]?I[O][It]()[zt]+T:I[Y]?parseInt(typeof I[Y]===f?I[Y]():I[Y]||0):void 0},H=function(){if(I[F])return x-i[_]-parseInt(typeof I[F]===f?I[F]():I[F]||0)},S=function(){x=k(),T=parseInt(he().y,0),g=M(),b=H(),w=parseInt(g)-T<0&&T>parseInt(g),C=parseInt(b)-T<0&&T>parseInt(b)},D=function(){L||te(i,u)||(ue.call(i,u,u),ue.call(i,h,u),Zt(i,u),L=!0,ue.call(i,s,u),ue.call(i,p,u))},P=function(){L&&te(i,u)&&(_t(i,u),L=!1)},$=function(){E||te(i,v)||(ue.call(i,u,u),ue.call(i,v,u),Zt(i,v),E=!0,ue.call(i,s,u),ue.call(i,m,u))},W=function(){E&&te(i,v)&&(_t(i,v),E=!1)},j=function(){C?(w&&P(),$()):(W(),w?D():P())};this[d]=function(){S(),j()},r in i||(ae(t,st,this[d]),ae(t,ut,function(){setTimeout(function(){I[d]()},A)})),i[r]=this,this[d]()}};se(r,me,e[At]("["+a+'="affix"]'));var ge=function(t){t=ie(t);var e=this,n="alert",i=oe(t,"."+n),a=function(){te(i,"fade")?ce(i,r):r()},l=function(a){i=oe(a[O],"."+n),t=ie("["+o+'="'+n+'"]',i),t&&i&&(t===a[O]||t.contains(a[O]))&&e.close()},r=function(){ue.call(i,mt,n),le(t,lt,l),i[kt].removeChild(i)};this.close=function(){i&&t&&te(i,Pt)&&(ue.call(i,vt,n),_t(i,Pt),i&&a())},c in t||ae(t,lt,l),t[c]=this};se(c,ge,e[At]("["+o+'="alert"]'));var be=function(t,e){t=ie(t),e=e||null;var n=!1,i="button",o="checked",a="reset",l="LABEL",r="INPUT",c=function(){e&&e!==a&&(e===jt&&(Zt(t,Wt),t[Tt](Wt,Wt)),t[Tt](L,t.innerHTML.replace(/^\s+|\s+$/g,"")),t.innerHTML=t[yt]("data-"+e+"-text"))},s=function(){t[yt](L)&&((te(t,Wt)||t[yt](Wt)===Wt)&&(_t(t,Wt),t.removeAttribute(Wt)),t.innerHTML=t[yt](L))},f=function(e){var a=e[O].tagName===l?e[O]:e[O][kt].tagName===l?e[O][kt]:null;if(a){var c=this,u=ne(c,"btn"),s=a[Ct](r)[0];if(s){if("checkbox"===s.type&&(s[o]?(_t(a,Bt),s[yt](o),s.removeAttribute(o),s[o]=!1):(Zt(a,Bt),s[yt](o),s[Tt](o,o),s[o]=!0),n||(n=!0,ue.call(s,xt,i),ue.call(t,xt,i))),"radio"===s.type&&!n&&!s[o]){Zt(a,Bt),s[Tt](o,o),s[o]=!0,ue.call(s,xt,i),ue.call(t,xt,i),n=!0;for(var f=0,d=u[Mt];f<d;f++){var h=u[f],p=h[Ct](r)[0];h!==a&&te(h,Bt)&&(_t(h,Bt),p.removeAttribute(o),p[o]=!1,ue.call(p,xt,i))}}setTimeout(function(){n=!1},50)}}};te(t,"btn")&&null!==e&&(e!==a?c():s()),te(t,"btn-group")&&(u in t||ae(t,lt,f),t[u]=this)};se(u,be,e[At]("["+i+'="buttons"]'));var xe=function(e,n){e=ie(e),n=n||{};var i="false"!==e[yt](T)&&(parseInt(e[yt](T))||5e3),o=e[yt](C)===rt||!1,a="true"===e[yt](x)||!1,l="carousel",r="paused",c="direction",u="data-slide-to";this[$]=n[$]===!0||a,this[z]=!(n[z]!==rt&&!o)&&rt,n[q]||i?this[q]=parseInt(n[q])||i:this[q]=!1;var f=this,d=e.index=0,h=e.timer=0,p=!1,v=ne(e,"item"),m=v[Mt],g=this[c]=Ot,b=ne(e,l+"-control"),y=b[0],w=b[1],I=ie("."+l+"-indicators",e),A=I&&I[Ct]("LI")||[],L=function(){f[q]===!1||te(e,r)||(Zt(e,r),!p&&clearInterval(h))},E=function(){f[q]!==!1&&te(e,r)&&(_t(e,r),!p&&clearInterval(h),!p&&f.cycle())},k=function(t){if(t.preventDefault(),!p){var e=t[O];f.getActiveIndex();if(!e||te(e,Bt)||!e[yt](u))return!1;d=parseInt(e[yt](u),10),f.slideTo(d)}},M=function(t){if(t.preventDefault(),!p){var e=t.currentTarget||t.srcElement;e===w?d++:e===y&&d--,f.slideTo(d)}},H=function(t){if(!p){switch(t.which){case 39:d++;break;case 37:d--;break;default:return}f.slideTo(d)}},S=function(t){for(var e=0,n=A[Mt];e<n;e++)_t(A[e],Bt);A[t]&&Zt(A[t],Bt)};this.cycle=function(){h=setInterval(function(){d++,f.slideTo(d)},this[q])},this.slideTo=function(t){if(!p){var n,i=this.getActiveIndex();i<t||0===i&&t===m-1?g=f[c]=Ot:(i>t||i===m-1&&0===t)&&(g=f[c]=qt),t<0?t=m-1:t===m&&(t=0),d=t,n=g===Ot?"next":"prev",ue.call(e,bt,l,v[t]),p=!0,clearInterval(h),S(t),Kt&&te(e,"slide")?(Zt(v[t],n),v[t][Z],Zt(v[t],g),Zt(v[i],g),re(v[i],Qt,function(o){var a=o[O]!==v[i]?1e3*o.elapsedTime:0;setTimeout(function(){p=!1,Zt(v[t],Bt),_t(v[i],Bt),_t(v[t],n),_t(v[t],g),_t(v[i],g),ue.call(e,gt,l,v[t]),f[q]&&!te(e,r)&&f.cycle()},a+100)})):(Zt(v[t],Bt),v[t][Z],_t(v[i],Bt),setTimeout(function(){p=!1,f[q]&&!te(e,r)&&f.cycle(),ue.call(e,gt,l,v[t])},100))}},this.getActiveIndex=function(){return v[Et](ne(e,"item active")[0])||0},s in e||(this[z]&&this[q]&&(ae(e,Ft[0],L),ae(e,Ft[1],E),ae(e,"touchstart",L),ae(e,"touchend",E)),w&&ae(w,lt,M),y&&ae(y,lt,M),I&&ae(I,lt,k,!1),this[$]===!0&&ae(t,ct,H,!1)),this.getActiveIndex()<0&&(v[Mt]&&Zt(v[0],Bt),A[Mt]&&S(0)),this[q]&&this.cycle(),e[s]=this};se(s,xe,e[At]("["+l+'="carousel"]'));var ye=function(t,e){t=ie(t),e=e||{};var n=null,o=null,a=this,l=!1,r=t[yt]("data-parent"),c="collapse",u="collapsed",s=function(t){ue.call(t,ft,c),l=!0,Zt(t,$t),_t(t,c),t[Nt][it]=t[nt]+"px",ce(t,function(){l=!1,t[Tt](ot,"true"),_t(t,$t),Zt(t,c),Zt(t,Pt),t[Nt][it]="",ue.call(t,dt,c)})},d=function(t){ue.call(t,ht,c),l=!0,t[Nt][it]=t[nt]+"px",_t(t,c),_t(t,Pt),Zt(t,$t),t[Z],t[Nt][it]="0px",ce(t,function(){l=!1,t[Tt](ot,"false"),_t(t,$t),Zt(t,c),t[Nt][it]="",ue.call(t,pt,c)})},h=function(){var e=t.href&&t[yt]("href"),n=t[yt](y),i=e||n&&fe.test(n)&&n;return i&&ie(i)};this.toggle=function(t){t.preventDefault(),l||(te(o,Pt)?a.hide():a.show())},this.hide=function(){d(o),Zt(t,u)},this.show=function(){if(n){var e=ie("."+c+"."+Pt,n),a=e&&(ie("["+i+'="'+c+'"]['+y+'="#'+e.id+'"]',n)||ie("["+i+'="'+c+'"][href="#'+e.id+'"]',n)),l=a&&(a[yt](y)||a.href);e&&a&&e!==o&&(d(e),l.split("#")[1]!==o.id?Zt(a,u):_t(a,u))}s(o),_t(t,u)},f in t||ae(t,lt,this.toggle),o=h(),n=ie(e.parent)||r&&oe(t,r),t[f]=this};se(f,ye,e[At]("["+i+'="collapse"]'));var Te=function(t,e){t=ie(t),this.persist=e===!0||"true"===t[yt]("data-persist")||!1;var n=this,o=!1,a=t[kt],l="dropdown",r="open",c=null,u=ie(".dropdown-menu",a),s=function(t){!o||27!=t.which&&27!=t.keyCode||(c=null,p())},f=function(e){var l=e[O],r=l&&(l[yt](i)||l[kt]&&yt in l[kt]&&l[kt][yt](i));if(l===t||l===a||l[kt]===t)e.preventDefault(),c=t,n.toggle();else if(o){if(l===u||u.contains(l)&&(n.persist||r))return;c=null,p()}(/\#$/.test(l.href)||l[kt]&&/\#$/.test(l[kt].href))&&e.preventDefault()},h=function(){ue.call(a,ft,l,c),Zt(a,r),u[Tt](ot,!0),ue.call(a,dt,l,c),ae(document,ct,s),o=!0},p=function(){ue.call(a,ht,l,c),_t(a,r),u[Tt](ot,!1),ue.call(a,pt,l,c),le(document,ct,s),o=!1};this.toggle=function(){te(a,r)&&o?p():h()},d in t||(u[Tt]("tabindex","0"),ae(document,lt,f)),t[d]=this};se(d,Te,e[At]("["+i+'="dropdown"]'));var we=function(i,a){i=ie(i);var l=i[yt](y)||i[yt]("href"),r=ie(l),c=te(i,"modal")?i:r,u="modal",s="static",f="paddingLeft",d="paddingRight",p="modal-backdrop";if(te(i,"modal")&&(i=null),c){a=a||{},this[$]=a[$]!==!1&&"false"!==c[yt](x),this[P]=a[P]!==s&&c[yt](b)!==s||s,this[P]=a[P]!==!1&&"false"!==c[yt](b)&&this[P],this[j]=a[j];var v,m,g,T,w=this,C=this.open=!1,I=null,A=ne(e,Xt).concat(ne(e,Yt)),L=function(){var n=e[It]();return t[tt]||n[qt]-Math.abs(n[Ot])},E=function(){var e,i=n.currentStyle||t.getComputedStyle(n),o=parseInt(i[d],10);if(v&&(n[Nt][d]=o+g+"px",A[Mt]))for(var a=0;a<A[Mt];a++)e=(A[a].currentStyle||t.getComputedStyle(A[a]))[d],A[a][Nt][d]=parseInt(e)+g+"px"},k=function(){if(n[Nt][d]="",A[Mt])for(var t=0;t<A[Mt];t++)A[t][Nt][d]=""},M=function(){var t,e=document.createElement("div");return e.className=u+"-scrollbar-measure",n.appendChild(e),t=e[Z]-e[Q],n.removeChild(e),t},H=function(){v=n[Q]<L(),m=c[nt]>e[V],g=M()},S=function(){c[Nt][f]=!v&&m?g+"px":"",c[Nt][d]=v&&!m?g+"px":""},D=function(){c[Nt][f]="",c[Nt][d]=""},N=function(){if(!(Jt>1)){Jt+=1;var t=document.createElement("div");T=ie("."+p),null===T&&(t[Tt]("class",p+" fade"),T=t,n.appendChild(T))}},B=function(){0!==Jt&&(Jt-=1,T=ie("."+p),T&&null!==T&&"object"==typeof T&&(n.removeChild(T),T=null))},W=function(){te(c,Pt)?le(document,ct,Y):ae(document,ct,Y)},q=function(){te(c,Pt)?le(t,ut,w.update):ae(t,ut,w.update)},z=function(){te(c,Pt)?le(c,lt,F):ae(c,lt,F)},R=function(){C=w.open=!0,Vt(c),ue.call(c,dt,u,I)},U=function(){q(),z(),W(),c[Nt].display="",C=w.open=!1,i&&Vt(i),ue.call(c,pt,u),setTimeout(function(){ne(document,u+" "+Pt)[0]||(D(),k(),_t(n,u+"-open"),w[P]&&(te(T,"fade")?(_t(T,Pt),ce(T,B)):B()))},50)},X=function(t){var e=t[O];e=e[wt](y)||e[wt]("href")?e:e[kt],C||e!==i||te(c,Pt)||(c.modalTrigger=i,I=i,w.show(),t.preventDefault())},Y=function(t){var e=t.which||t.keyCode;w[$]&&27==e&&C&&w.hide()},F=function(t){var e=t[O];C&&(e[kt][yt](o)===u||e[yt](o)===u||e===c&&w[P]!==s)&&(w.hide(),I=null,t.preventDefault())};this.toggle=function(){C&&te(c,Pt)?this.hide():this.show()},this.show=function(){ue.call(c,ft,u,I);var t=ne(document,u+" in")[0];t&&t!==c&&t.modalTrigger[h].hide(),this[P]&&N(),T&&!te(T,Pt)&&setTimeout(function(){Zt(T,Pt)},0),setTimeout(function(){c[Nt].display="block",H(),E(),S(),q(),z(),W(),Zt(n,u+"-open"),Zt(c,Pt),c[Tt](at,!1),te(c,"fade")?ce(c,R):R()},Kt?150:0)},this.hide=function(){ue.call(c,ht,u),T=ie("."+p),_t(c,Pt),c[Tt](at,!0),setTimeout(function(){te(c,"fade")?ce(c,U):U()},Kt?150:0)},this.setContent=function(t){ie("."+u+"-content",c).innerHTML=t},this.update=function(){C&&(H(),E(),S())},!i||h in i||ae(i,lt,X),this[j]&&this.setContent(this[j]),!!i&&(i[h]=this)}};se(h,we,e[At]("["+i+'="modal"]'));var Ce=function(e,i){e=ie(e);var o=e[yt](k),a=e[yt](M),l=e[yt](S),r=e[yt](E),c=e[yt](D),u=e[yt](H),s="popover",f="template",d="trigger",h="class",v="div",m="fade",g="data-content",b="dismissible",x='<button type="button" class="close">×</button>',y=oe(e,".modal"),T=oe(e,"."+Xt),w=oe(e,"."+Yt);i=i||{},this[f]=i[f]?i[f]:null,this[d]=i[d]?i[d]:o||rt,this[R]=i[R]&&i[R]!==m?i[R]:a||m,this[U]=i[U]?i[U]:l||zt,this[W]=parseInt(i[W]||c)||200,this[b]=!(!i[b]&&"true"!==r),this[X]=ie(i[X])?ie(i[X]):ie(u)?ie(u):T?T:w?w:y?y:n;var C=this,A=e[yt](I)||null,L=e[yt](g)||null;if(L||this[f]){var N=null,B=0,P=this[U],$=function(t){null!==N&&t[O]===ie(".close",N)&&C.hide()},j=function(){C[X].removeChild(N),B=null,N=null},q=function(){if(A=e[yt](I),L=e[yt](g),N=document.createElement(v),null!==L&&null===C[f]){if(N[Tt]("role","tooltip"),null!==A){var t=document.createElement("h3");t[Tt](h,s+"-title"),t.innerHTML=C[b]?A+x:A,N.appendChild(t)}var n=document.createElement(v),i=document.createElement(v);n[Tt](h,"arrow"),i[Tt](h,s+"-content"),N.appendChild(n),N.appendChild(i),i.innerHTML=C[b]&&null===A?L+x:L}else{var o=document.createElement(v);o.innerHTML=C[f],N.innerHTML=o.firstChild.innerHTML}C[X].appendChild(N),N[Nt].display="block",N[Tt](h,s+" "+P+" "+C[R])},z=function(){!te(N,Pt)&&Zt(N,Pt)},Y=function(){pe(e,N,P,C[X]),de(N)||(P=ve(P),pe(e,N,P,C[X]))},F=function(){ue.call(e,dt,s)},G=function(){j(),ue.call(e,pt,s)};this.toggle=function(){null===N?C.show():C.hide()},this.show=function(){clearTimeout(B),B=setTimeout(function(){null===N&&(P=C[U],q(),Y(),z(),ue.call(e,ft,s),C[R]?ce(N,F):F())},20)},this.hide=function(){clearTimeout(B),B=setTimeout(function(){N&&null!==N&&te(N,Pt)&&(ue.call(e,ht,s),_t(N,Pt),C[R]?ce(N,G):G())},C[W])},p in e||(C[d]===rt?(ae(e,Ft[0],C.show),C[b]||ae(e,Ft[1],C.hide)):/^(click|focus)$/.test(C[d])&&(ae(e,C[d],C.toggle),C[b]||ae(e,"blur",C.hide)),C[b]&&ae(document,lt,$),!Ut&&ae(t,ut,C.hide)),e[p]=C}};se(p,Ce,e[At]("["+i+'="popover"]'));var Ie=function(e,n){e=ie(e);var i=ie(e[yt](y)),o=e[yt]("data-offset");if(n=n||{},n[O]||i){for(var a,l=n[O]&&ie(n[O])||i,r=l&&l[Ct]("A"),c=parseInt(o||n.offset)||10,u=[],s=[],f=e[_]<e[nt]?e:t,d=f===t,h=0,p=r[Mt];h<p;h++){var m=r[h][yt]("href"),g=m&&fe.test(m)&&ie(m);g&&(u.push(r[h]),s.push(g))}var b=function(t){var n=u[t][kt],i=s[t],o=oe(n,".dropdown"),l=d&&i[It](),r=te(n,Bt)||!1,f=(d?l[zt]+a:i[Y])-c,h=d?l[Rt]+a-c:s[t+1]?s[t+1][Y]-c:e[nt],p=a>=f&&h>a;if(!r&&p)"LI"!==n.tagName||te(n,Bt)||(Zt(n,Bt),r=!0,o&&!te(o,Bt)&&Zt(o,Bt),ue.call(e,"activate","scrollspy",u[t]));else if(p){if(!p&&!r||r&&p)return}else"LI"===n.tagName&&te(n,Bt)&&(_t(n,Bt),r=!1,o&&te(o,Bt)&&!ne(n[kt],Bt).length&&_t(o,Bt))},x=function(){a=d?he().y:e[J];for(var t=0,n=u[Mt];t<n;t++)b(t)};this.refresh=function(){x()},v in e||(ae(f,st,this.refresh),!Ut&&ae(t,ut,this.refresh)),this.refresh(),e[v]=this}};se(v,Ie,e[At]("["+a+'="scroll"]'));var Ae=function(t,e){t=ie(t);var n=t[yt](w),o="tab",a="height",l="float",r="isAnimating";e=e||{},this[a]=!!Kt&&(e[a]||"true"===n);var c,u,s,f,d,h,p,v=this,g=oe(t,".nav"),b=!1,x=g&&ie(".dropdown",g),y=function(){b[Nt][a]="",_t(b,$t),g[r]=!1},T=function(){b?h?y():setTimeout(function(){b[Nt][a]=p+"px",b[Z],ce(b,y)},1):g[r]=!1,ue.call(c,dt,o,u)},C=function(){b&&(s[Nt][l]="left",f[Nt][l]="left",d=s[nt]),Zt(f,Bt),ue.call(c,ft,o,u),_t(s,Bt),ue.call(u,pt,o,c),b&&(p=f[nt],h=p===d,Zt(b,$t),b[Nt][a]=d+"px",b[_],s[Nt][l]="",f[Nt][l]=""),te(f,"fade")?(Zt(f,Pt),ce(f,T)):T()};if(g){g[r]=!1;var I=function(){var t,e=ne(g,Bt);return 1!==e[Mt]||te(e[0],"dropdown")?e[Mt]>1&&(t=e[e[Mt]-1]):t=e[0],t[Ct]("A")[0]},A=function(){return ie(I()[yt]("href"))},L=function(t){t.preventDefault(),c=t[O][yt](i)===o||fe.test(t[O][yt]("href"))?t[O]:t[O][kt],!g[r]&&!te(c[kt],Bt)&&v.show()};this.show=function(){c=c||t,f=ie(c[yt]("href")),u=I(),s=A(),g[r]=!0,_t(u[kt],Bt),Zt(c[kt],Bt),x&&(te(t[kt][kt],"dropdown-menu")?te(x,Bt)||Zt(x,Bt):te(x,Bt)&&_t(x,Bt)),ue.call(u,ht,o,c),te(s,"fade")?(_t(s,Pt),ce(s,C)):C()},m in t||ae(t,lt,L),this[a]&&(b=A()[kt]),t[m]=this}};se(m,Ae,e[At]("["+i+'="tab"]'));var Le=function(t,e){t=ie(t);var i=t[yt](M),o=t[yt](S),a=t[yt](D),l=t[yt](H),r="tooltip",c="class",u="title",s="fade",f="div",d=oe(t,".modal"),h=oe(t,"."+Xt),p=oe(t,"."+Yt);e=e||{},this[R]=e[R]&&e[R]!==s?e[R]:i||s,this[U]=e[U]?e[U]:o||zt,this[W]=parseInt(e[W]||a)||200,this[X]=ie(e[X])?ie(e[X]):ie(l)?ie(l):h?h:p?p:d?d:n;var v=this,m=0,b=this[U],x=null,y=t[yt](u)||t[yt](I)||t[yt](A);if(y&&""!=y){var T=function(){v[X].removeChild(x),x=null,m=null},w=function(){if(y=t[yt](u)||t[yt](I)||t[yt](A),!y||""==y)return!1;x=document.createElement(f),x[Tt]("role",r);var e=document.createElement(f),n=document.createElement(f);e[Tt](c,r+"-arrow"),n[Tt](c,r+"-inner"),x.appendChild(e),x.appendChild(n),n.innerHTML=y,v[X].appendChild(x),x[Tt](c,r+" "+b+" "+v[R])},C=function(){pe(t,x,b,v[X]),de(x)||(b=ve(b),pe(t,x,b,v[X]))},L=function(){!te(x,Pt)&&Zt(x,Pt)},E=function(){ue.call(t,dt,r)},k=function(){T(),ue.call(t,pt,r)};this.show=function(){clearTimeout(m),m=setTimeout(function(){if(null===x){if(b=v[U],0==w())return;C(),L(),ue.call(t,ft,r),v[R]?ce(x,E):E()}},20)},this.hide=function(){clearTimeout(m),m=setTimeout(function(){x&&null!==x&&te(x,Pt)&&(ue.call(t,ht,r),_t(x,Pt),v[R]?ce(x,k):k())},v[W])},this.toggle=function(){x?v.hide():v.show()},g in t||(t[Tt](A,y),t.removeAttribute(u),ae(t,Ft[0],this.show),ae(t,Ft[1],this.hide)),t[g]=this}};return se(g,Le,e[At]("["+i+'="tooltip"]')),{Affix:me,Alert:ge,Button:be,Carousel:xe,Collapse:ye,Dropdown:Te,Modal:we,Popover:Ce,ScrollSpy:Ie,Tab:Ae,Tooltip:Le}});
// Native Javascript for Bootstrap 3 v2.0.18 | © dnp_theme | MIT-License
!function(t,e){if("function"==typeof define&&define.amd)define([],e);else if("object"==typeof module&&module.exports)module.exports=e();else{var n=e();t.Affix=n.Affix,t.Alert=n.Alert,t.Button=n.Button,t.Carousel=n.Carousel,t.Collapse=n.Collapse,t.Dropdown=n.Dropdown,t.Modal=n.Modal,t.Popover=n.Popover,t.ScrollSpy=n.ScrollSpy,t.Tab=n.Tab,t.Tooltip=n.Tooltip}}(this,function(){"use strict";var t="undefined"!=typeof global?global:this||window,e=document.documentElement,n=document,i="body",o="data-toggle",a="data-dismiss",l="data-spy",r="data-ride",c="Affix",s="Alert",u="Button",f="Carousel",d="Collapse",h="Dropdown",p="Modal",v="Popover",m="ScrollSpy",g="Tab",b="Tooltip",x="data-backdrop",y="data-keyboard",T="data-target",w="data-interval",C="data-height",I="data-pause",A="data-title",L="data-original-title",E="data-original-text",k="data-dismissible",M="data-trigger",H="data-animation",S="data-container",N="data-placement",D="data-delay",B="data-offset-top",$="data-offset-bottom",P="backdrop",W="keyboard",j="delay",O="content",q="target",z="interval",R="pause",U="animation",X="placement",Y="container",F="offsetTop",G="offsetBottom",J="offsetLeft",K="scrollTop",Q="scrollLeft",V="clientWidth",Z="clientHeight",_="offsetWidth",tt="offsetHeight",et="innerWidth",nt="innerHeight",it="scrollHeight",ot="height",at="aria-expanded",lt="aria-hidden",rt="click",ct="hover",st="keydown",ut="resize",ft="scroll",dt="show",ht="shown",pt="hide",vt="hidden",mt="close",gt="closed",bt="slid",xt="slide",yt="change",Tt="getAttribute",wt="setAttribute",Ct="hasAttribute",It="getElementsByTagName",At="preventDefault",Lt="getBoundingClientRect",Et="querySelectorAll",kt="getElementsByClassName",Mt="indexOf",Ht="parentNode",St="length",Nt="toLowerCase",Dt="Transition",Bt="Webkit",$t="style",Pt="active",Wt="in",jt="collapsing",Ot="disabled",qt="loading",zt="left",Rt="right",Ut="top",Xt="bottom",Yt=!("opacity"in e[$t]),Ft="navbar-fixed-top",Gt="navbar-fixed-bottom",Jt="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Kt=/\b(top|bottom|left|top)+/,Qt=0,Vt=Bt+Dt in e[$t]||Dt[Nt]()in e[$t],Zt=Bt+Dt in e[$t]?Bt[Nt]()+Dt+"End":Dt[Nt]()+"end",_t=function(t){t.focus?t.focus():t.setActive()},te=function(t,e){t.classList.add(e)},ee=function(t,e){t.classList.remove(e)},ne=function(t,e){return t.classList.contains(e)},ie=function(t){for(var e=[],n=0,i=t[St];n<i;n++)e.push(t[n]);return e},oe=function(t,e){var n=Yt?Et:kt;return ie(t[n](Yt?"."+e.replace(/\s(?=[a-z])/g,"."):e))},ae=function(t,e){var n=e?e:document;return"object"==typeof t?t:n.querySelector(t)},le=function(t,e){for(var n=e.charAt(0);t&&t!==document;t=t[Ht])if("."===n){if(null!==ae(e,t[Ht])&&ne(t,e.replace(".","")))return t}else if("#"===n&&t.id===e.substr(1))return t;return!1},re=function(t,e,n){t.addEventListener(e,n,!1)},ce=function(t,e,n){t.removeEventListener(e,n,!1)},se=function(t,e,n){re(t,e,function i(o){n(o),ce(t,e,i)})},ue=function(t,e){Vt?se(t,Zt,function(t){e(t)}):e()},fe=function(t,e,n){var i=new CustomEvent(t+".bs."+e);i.relatedTarget=n,this.dispatchEvent(i)},de=function(t,e,n){for(var i=0;i<n[St];i++)new e(n[i])},he=/^\#(.)+$/,pe=function(n){var i=n[Lt]();return i[Ut]>=0&&i[zt]>=0&&i[Xt]<=(t[nt]||e[Z])&&i[Rt]<=(t[et]||e[V])},ve=function(){return{y:t.pageYOffset||e[K],x:t.pageXOffset||e[Q]}},me=function(t,e,o,a){var l=t[Lt](),r=a===n[i]?ve():{x:a[J]+a[Q],y:a[F]+a[K]},c={w:l[Rt]-l[zt],h:l[Xt]-l[Ut]},s={w:e[_],h:e[tt]};o===Ut?(e[$t][Ut]=l[Ut]+r.y-s.h+"px",e[$t][zt]=l[zt]+r.x-s.w/2+c.w/2+"px"):o===Xt?(e[$t][Ut]=l[Ut]+r.y+c.h+"px",e[$t][zt]=l[zt]+r.x-s.w/2+c.w/2+"px"):o===zt?(e[$t][Ut]=l[Ut]+r.y-s.h/2+c.h/2+"px",e[$t][zt]=l[zt]+r.x-s.w+"px"):o===Rt&&(e[$t][Ut]=l[Ut]+r.y-s.h/2+c.h/2+"px",e[$t][zt]=l[zt]+r.x+c.w+"px"),e.className[Mt](o)===-1&&(e.className=e.className.replace(Kt,o))},ge=function(t){return t===Ut?Xt:t===Xt?Ut:t===zt?Rt:t===Rt?zt:t},be=function(o,a){o=ae(o),a=a||{};var l=o[Tt](T),r=o[Tt](B),s=o[Tt]($),u="affix",f="affixed",d="function",h="update",p="affix-top",v="affixed-top",m="affix-bottom",g="affixed-bottom";if(this[q]=a[q]?ae(a[q]):ae(l)||null,this[F]=a[F]?a[F]:parseInt(r)||0,this[G]=a[G]?a[G]:parseInt(s)||0,this[q]||this[F]||this[G]){var b,x,y,w,C,I,A=this,L=!1,E=!1,k=function(){return Math.max(n[i][it],n[i][tt],e[Z],e[it],e[tt])},M=function(){return null!==A[q]?A[q][Lt]()[Ut]+w:A[F]?parseInt(typeof A[F]===d?A[F]():A[F]||0):void 0},H=function(){if(A[G])return y-o[tt]-parseInt(typeof A[G]===d?A[G]():A[G]||0)},S=function(){y=k(),w=parseInt(ve().y,0),b=M(),x=H(),C=parseInt(b)-w<0&&w>parseInt(b),I=parseInt(x)-w<0&&w>parseInt(x)},N=function(){L||ne(o,u)||(fe.call(o,u,u),fe.call(o,p,u),te(o,u),L=!0,fe.call(o,f,u),fe.call(o,v,u))},D=function(){L&&ne(o,u)&&(ee(o,u),L=!1)},P=function(){E||ne(o,m)||(fe.call(o,u,u),fe.call(o,m,u),te(o,m),E=!0,fe.call(o,f,u),fe.call(o,g,u))},W=function(){E&&ne(o,m)&&(ee(o,m),E=!1)},j=function(){I?(C&&D(),P()):(W(),C?N():D())};this[h]=function(){S(),j()},c in o||(re(t,ft,A[h]),!Yt&&re(t,ut,A[h])),o[c]=this,this[h]()}};de(c,be,n[Et]("["+l+'="affix"]'));var xe=function(t){t=ae(t);var e=this,n="alert",i=le(t,"."+n),o=function(){ne(i,"fade")?ue(i,r):r()},l=function(o){i=le(o[q],"."+n),t=ae("["+a+'="'+n+'"]',i),t&&i&&(t===o[q]||t.contains(o[q]))&&e.close()},r=function(){fe.call(i,gt,n),ce(t,rt,l),i[Ht].removeChild(i)};this.close=function(){i&&t&&ne(i,Wt)&&(fe.call(i,mt,n),ee(i,Wt),i&&o())},s in t||re(t,rt,l),t[s]=this};de(s,xe,n[Et]("["+a+'="alert"]'));var ye=function(t,e){t=ae(t),e=e||null;var n=!1,i="button",o="checked",a="reset",l="LABEL",r="INPUT",c=function(){e&&e!==a&&(e===qt&&(te(t,Ot),t[wt](Ot,Ot),t[wt](E,t.innerHTML.replace(/^\s+|\s+$/g,""))),t.innerHTML=t[Tt]("data-"+e+"-text"))},s=function(){t[Tt](E)&&((ne(t,Ot)||t[Tt](Ot)===Ot)&&(ee(t,Ot),t.removeAttribute(Ot)),t.innerHTML=t[Tt](E))},f=function(e){var a=e[q].tagName===l?e[q]:e[q][Ht].tagName===l?e[q][Ht]:null;if(a){var c=this,s=oe(c,"btn"),u=a[It](r)[0];if(u){if("checkbox"===u.type&&(u[o]?(ee(a,Pt),u[Tt](o),u.removeAttribute(o),u[o]=!1):(te(a,Pt),u[Tt](o),u[wt](o,o),u[o]=!0),n||(n=!0,fe.call(u,yt,i),fe.call(t,yt,i))),"radio"===u.type&&!n&&!u[o]){te(a,Pt),u[wt](o,o),u[o]=!0,fe.call(u,yt,i),fe.call(t,yt,i),n=!0;for(var f=0,d=s[St];f<d;f++){var h=s[f],p=h[It](r)[0];h!==a&&ne(h,Pt)&&(ee(h,Pt),p.removeAttribute(o),p[o]=!1,fe.call(p,yt,i))}}setTimeout(function(){n=!1},50)}}};if(ne(t,"btn"))null!==e&&(e!==a?c():s());else{u in t||re(t,rt,f);for(var d=oe(t,"btn"),h=d[St],p=0;p<h;p++)!ne(d[p],Pt)&&ae("input",d[p])[Tt](o)&&te(d[p],Pt);t[u]=this}};de(u,ye,n[Et]("["+o+'="buttons"]'));var Te=function(e,n){e=ae(e),n=n||{};var i="false"!==e[Tt](w)&&(parseInt(e[Tt](w))||5e3),o=e[Tt](I)===ct||!1,a="true"===e[Tt](y)||!1,l="carousel",r="paused",c="direction",s="data-slide-to";this[W]=n[W]===!0||a,this[R]=!(n[R]!==ct&&!o)&&ct,n[z]||i?this[z]=parseInt(n[z])||i:this[z]=!1;var u=this,d=e.index=0,h=e.timer=0,p=!1,v=oe(e,"item"),m=v[St],g=this[c]=zt,b=oe(e,l+"-control"),x=b[0],T=b[1],C=ae("."+l+"-indicators",e),A=C&&C[It]("LI")||[],L=function(){u[z]===!1||ne(e,r)||(te(e,r),!p&&clearInterval(h))},E=function(){u[z]!==!1&&ne(e,r)&&(ee(e,r),!p&&clearInterval(h),!p&&u.cycle())},k=function(t){if(t.preventDefault(),!p){var e=t[q];u.getActiveIndex();if(!e||ne(e,Pt)||!e[Tt](s))return!1;d=parseInt(e[Tt](s),10),u.slideTo(d)}},M=function(t){if(t.preventDefault(),!p){var e=t.currentTarget||t.srcElement;e===T?d++:e===x&&d--,u.slideTo(d)}},H=function(t){if(!p){switch(t.which){case 39:d++;break;case 37:d--;break;default:return}u.slideTo(d)}},S=function(t){for(var e=0,n=A[St];e<n;e++)ee(A[e],Pt);A[t]&&te(A[t],Pt)};this.cycle=function(){h=setInterval(function(){d++,u.slideTo(d)},this[z])},this.slideTo=function(t){if(!p){var n,i=this.getActiveIndex();i<t||0===i&&t===m-1?g=u[c]=zt:(i>t||i===m-1&&0===t)&&(g=u[c]=Rt),t<0?t=m-1:t===m&&(t=0),d=t,n=g===zt?"next":"prev",fe.call(e,xt,l,v[t]),p=!0,clearInterval(h),S(t),Vt&&ne(e,"slide")?(te(v[t],n),v[t][_],te(v[t],g),te(v[i],g),se(v[i],Zt,function(o){var a=o[q]!==v[i]?1e3*o.elapsedTime:0;setTimeout(function(){p=!1,te(v[t],Pt),ee(v[i],Pt),ee(v[t],n),ee(v[t],g),ee(v[i],g),fe.call(e,bt,l,v[t]),u[z]&&!ne(e,r)&&u.cycle()},a+100)})):(te(v[t],Pt),v[t][_],ee(v[i],Pt),setTimeout(function(){p=!1,u[z]&&!ne(e,r)&&u.cycle(),fe.call(e,bt,l,v[t])},100))}},this.getActiveIndex=function(){return v[Mt](oe(e,"item active")[0])||0},f in e||(this[R]&&this[z]&&(re(e,Jt[0],L),re(e,Jt[1],E),re(e,"touchstart",L),re(e,"touchend",E)),T&&re(T,rt,M),x&&re(x,rt,M),C&&re(C,rt,k,!1),this[W]===!0&&re(t,st,H,!1)),this.getActiveIndex()<0&&(v[St]&&te(v[0],Pt),A[St]&&S(0)),this[z]&&this.cycle(),e[f]=this};de(f,Te,n[Et]("["+r+'="carousel"]'));var we=function(t,e){t=ae(t),e=e||{};var n=null,i=null,a=this,l=!1,r=t[Tt]("data-parent"),c="collapse",s="collapsed",u=function(t){fe.call(t,dt,c),l=!0,te(t,jt),ee(t,c),t[$t][ot]=t[it]+"px",ue(t,function(){l=!1,t[wt](at,"true"),ee(t,jt),te(t,c),te(t,Wt),t[$t][ot]="",fe.call(t,ht,c)})},f=function(t){fe.call(t,pt,c),l=!0,t[$t][ot]=t[it]+"px",ee(t,c),ee(t,Wt),te(t,jt),t[_],t[$t][ot]="0px",ue(t,function(){l=!1,t[wt](at,"false"),ee(t,jt),te(t,c),t[$t][ot]="",fe.call(t,vt,c)})},h=function(){var e=t.href&&t[Tt]("href"),n=t[Tt](T),i=e||n&&he.test(n)&&n;return i&&ae(i)};this.toggle=function(t){t.preventDefault(),l||(ne(i,Wt)?a.hide():a.show())},this.hide=function(){f(i),te(t,s)},this.show=function(){if(n){var e=ae("."+c+"."+Wt,n),a=e&&(ae("["+o+'="'+c+'"]['+T+'="#'+e.id+'"]',n)||ae("["+o+'="'+c+'"][href="#'+e.id+'"]',n)),l=a&&(a[Tt](T)||a.href);e&&a&&e!==i&&(f(e),l.split("#")[1]!==i.id?te(a,s):ee(a,s))}u(i),ee(t,s)},d in t||re(t,rt,this.toggle),i=h(),n=ae(e.parent)||r&&le(t,r),t[d]=this};de(d,we,n[Et]("["+o+'="collapse"]'));var Ce=function(t,e){t=ae(t),this.persist=e===!0||"true"===t[Tt]("data-persist")||!1;var i=this,a=t[Ht],l="dropdown",r="open",c=null,s=ae(".dropdown-menu",a),u=function(t){(/\#$/.test(t.href)||t[Ht]&&/\#$/.test(t[Ht].href))&&this[At]()},f=function(){var e=t[r]?re:ce;e(n,st,p),e(n,rt,d)},d=function(e){var n=e[q],a=n&&(n[Tt](o)||n[Ht]&&Tt in n[Ht]&&n[Ht][Tt](o));(n!==s&&!s.contains(n)||!i.persist&&!a)&&(c=n===t||t.contains(n)?t:null,g(),u.call(e,n))},p=function(e){!t[r]||27!==e.which&&27!==e.keyCode||(c=null,g())},v=function(e){c=t,m(),u.call(e,e[q])},m=function(){fe.call(a,dt,l,c),te(a,r),s[wt](at,!0),fe.call(a,ht,l,c),t[r]=!0,ce(t,rt,v),setTimeout(function(){f()},1)},g=function(){fe.call(a,pt,l,c),ee(a,r),s[wt](at,!1),fe.call(a,vt,l,c),t[r]=!1,f(),setTimeout(function(){re(t,rt,v)},1)};t[r]=!1,this.toggle=function(){ne(a,r)&&t[r]?g():m()},h in t||(s[wt]("tabindex","0"),re(t,rt,v)),t[h]=this};de(h,Ce,n[Et]("["+o+'="dropdown"]'));var Ie=function(o,l){o=ae(o);var r=o[Tt](T)||o[Tt]("href"),c=ae(r),s=ne(o,"modal")?o:c,u="modal",f="static",d="paddingLeft",h="paddingRight",v="modal-backdrop";if(ne(o,"modal")&&(o=null),s){l=l||{},this[W]=l[W]!==!1&&"false"!==s[Tt](y),this[P]=l[P]!==f&&s[Tt](x)!==f||f,this[P]=l[P]!==!1&&"false"!==s[Tt](x)&&this[P],this[O]=l[O];var m,g,b,w,C=this,I=null,A=oe(e,Ft).concat(oe(e,Gt)),L=function(){var n=e[Lt]();return t[et]||n[Rt]-Math.abs(n[zt])},E=function(){var e,o=n[i].currentStyle||t.getComputedStyle(n[i]),a=parseInt(o[h],10);if(m&&(n[i][$t][h]=a+b+"px",A[St]))for(var l=0;l<A[St];l++)e=(A[l].currentStyle||t.getComputedStyle(A[l]))[h],A[l][$t][h]=parseInt(e)+b+"px"},k=function(){if(n[i][$t][h]="",A[St])for(var t=0;t<A[St];t++)A[t][$t][h]=""},M=function(){var t,e=document.createElement("div");return e.className=u+"-scrollbar-measure",n[i].appendChild(e),t=e[_]-e[V],n[i].removeChild(e),t},H=function(){m=n[i][V]<L(),g=s[it]>e[Z],b=M()},S=function(){s[$t][d]=!m&&g?b+"px":"",s[$t][h]=m&&!g?b+"px":""},N=function(){s[$t][d]="",s[$t][h]=""},D=function(){Qt=1;var t=document.createElement("div");w=ae("."+v),null===w&&(t[wt]("class",v+" fade"),w=t,n[i].appendChild(w))},B=function(){w=ae("."+v),w&&null!==w&&"object"==typeof w&&(Qt=0,n[i].removeChild(w),w=null),fe.call(s,vt,u)},$=function(){ne(s,Wt)?re(document,st,Y):ce(document,st,Y)},j=function(){ne(s,Wt)?re(t,ut,C.update):ce(t,ut,C.update)},z=function(){ne(s,Wt)?re(s,rt,F):ce(s,rt,F)},R=function(){_t(s),fe.call(s,ht,u,I)},U=function(){s[$t].display="",o&&_t(o),setTimeout(function(){oe(document,u+" "+Wt)[0]||(N(),k(),ee(n[i],u+"-open"),w&&ne(w,"fade")?(ee(w,Wt),ue(w,B)):B(),j(),z(),$())},50)},X=function(t){var e=t[q];e=e[Ct](T)||e[Ct]("href")?e:e[Ht],e!==o||ne(s,Wt)||(s.modalTrigger=o,I=o,C.show(),t.preventDefault())},Y=function(t){var e=t.which||t.keyCode;C[W]&&27==e&&ne(s,Wt)&&C.hide()},F=function(t){var e=t[q];ne(s,Wt)&&(e[Ht][Tt](a)===u||e[Tt](a)===u||e===s&&C[P]!==f)&&(C.hide(),I=null,t.preventDefault())};this.toggle=function(){ne(s,Wt)?this.hide():this.show()},this.show=function(){fe.call(s,dt,u,I);var t=oe(document,u+" in")[0];t&&t!==s&&t.modalTrigger[p].hide(),this[P]&&!Qt&&D(),w&&Qt&&!ne(w,Wt)&&(w[_],te(w,Wt)),setTimeout(function(){s[$t].display="block",H(),E(),S(),te(n[i],u+"-open"),te(s,Wt),s[wt](lt,!1),j(),z(),$(),ne(s,"fade")?ue(s,R):R()},Vt?150:0)},this.hide=function(){fe.call(s,pt,u),w=ae("."+v),ee(s,Wt),s[wt](lt,!0),setTimeout(function(){ne(s,"fade")?ue(s,U):U()},Vt?150:0)},this.setContent=function(t){ae("."+u+"-content",s).innerHTML=t},this.update=function(){ne(s,Wt)&&(H(),E(),S())},!o||p in o||re(o,rt,X),this[O]&&this.setContent(this[O]),!!o&&(o[p]=this)}};de(p,Ie,n[Et]("["+o+'="modal"]'));var Ae=function(e,o){e=ae(e);var a=e[Tt](M),l=e[Tt](H),r=e[Tt](N),c=e[Tt](k),s=e[Tt](D),u=e[Tt](S),f="popover",d="template",h="trigger",p="class",m="div",g="fade",b="data-content",x="dismissible",y='<button type="button" class="close">×</button>',T=le(e,".modal"),w=le(e,"."+Ft),C=le(e,"."+Gt);o=o||{},this[d]=o[d]?o[d]:null,this[h]=o[h]?o[h]:a||ct,this[U]=o[U]&&o[U]!==g?o[U]:l||g,this[X]=o[X]?o[X]:r||Ut,this[j]=parseInt(o[j]||s)||200,this[x]=!(!o[x]&&"true"!==c),this[Y]=ae(o[Y])?ae(o[Y]):ae(u)?ae(u):w?w:C?C:T?T:n[i];var I=this,L=e[Tt](A)||null,E=e[Tt](b)||null;if(E||this[d]){var B=null,$=0,P=this[X],W=function(t){null!==B&&t[q]===ae(".close",B)&&I.hide()},O=function(){I[Y].removeChild(B),$=null,B=null},z=function(){if(L=e[Tt](A),E=e[Tt](b),B=document.createElement(m),null!==E&&null===I[d]){if(B[wt]("role","tooltip"),null!==L){var t=document.createElement("h3");t[wt](p,f+"-title"),t.innerHTML=I[x]?L+y:L,B.appendChild(t)}var n=document.createElement(m),i=document.createElement(m);n[wt](p,"arrow"),i[wt](p,f+"-content"),B.appendChild(n),B.appendChild(i),i.innerHTML=I[x]&&null===L?E+y:E}else{var o=document.createElement(m);o.innerHTML=I[d],B.innerHTML=o.firstChild.innerHTML}I[Y].appendChild(B),B[$t].display="block",B[wt](p,f+" "+P+" "+I[U])},R=function(){!ne(B,Wt)&&te(B,Wt)},F=function(){me(e,B,P,I[Y]),pe(B)||(P=ge(P),me(e,B,P,I[Y]))},G=function(n){/^(click|focus)$/.test(I[h])&&!I[x]&&n(e,"blur",I.hide),I[x]&&n(document,rt,W),!Yt&&n(t,ut,I.hide)},J=function(){G(re),fe.call(e,ht,f)},K=function(){G(ce),O(),fe.call(e,vt,f)};this.toggle=function(){null===B?I.show():I.hide()},this.show=function(){clearTimeout($),$=setTimeout(function(){null===B&&(P=I[X],z(),F(),R(),fe.call(e,dt,f),I[U]?ue(B,J):J())},20)},this.hide=function(){clearTimeout($),$=setTimeout(function(){B&&null!==B&&ne(B,Wt)&&(fe.call(e,pt,f),ee(B,Wt),I[U]?ue(B,K):K())},I[j])},v in e||(I[h]===ct?(re(e,Jt[0],I.show),I[x]||re(e,Jt[1],I.hide)):/^(click|focus)$/.test(I[h])&&re(e,I[h],I.toggle)),e[v]=I}};de(v,Ae,n[Et]("["+o+'="popover"]'));var Le=function(e,n){e=ae(e);var i=ae(e[Tt](T)),o=e[Tt]("data-offset");if(n=n||{},n[q]||i){for(var a,l=n[q]&&ae(n[q])||i,r=l&&l[It]("A"),c=parseInt(o||n.offset)||10,s=[],u=[],f=e[tt]<e[it]?e:t,d=f===t,h=0,p=r[St];h<p;h++){var v=r[h][Tt]("href"),g=v&&he.test(v)&&ae(v);g&&(s.push(r[h]),u.push(g))}var b=function(t){var n=s[t][Ht],i=u[t],o=le(n,".dropdown"),l=d&&i[Lt](),r=ne(n,Pt)||!1,f=(d?l[Ut]+a:i[F])-c,h=d?l[Xt]+a-c:u[t+1]?u[t+1][F]-c:e[it],p=a>=f&&h>a;if(!r&&p)"LI"!==n.tagName||ne(n,Pt)||(te(n,Pt),r=!0,o&&!ne(o,Pt)&&te(o,Pt),fe.call(e,"activate","scrollspy",s[t]));else if(p){if(!p&&!r||r&&p)return}else"LI"===n.tagName&&ne(n,Pt)&&(ee(n,Pt),r=!1,o&&ne(o,Pt)&&!oe(n[Ht],Pt).length&&ee(o,Pt))},x=function(){a=d?ve().y:e[K];for(var t=0,n=s[St];t<n;t++)b(t)};this.refresh=function(){x()},m in e||(re(f,ft,this.refresh),!Yt&&re(t,ut,this.refresh)),this.refresh(),e[m]=this}};de(m,Le,n[Et]("["+l+'="scroll"]'));var Ee=function(t,e){t=ae(t);var n=t[Tt](C),i="tab",a="height",l="float",r="isAnimating";e=e||{},this[a]=!!Vt&&(e[a]||"true"===n);var c,s,u,f,d,h,p,v=this,m=le(t,".nav"),b=!1,x=m&&ae(".dropdown",m),y=function(){b[$t][a]="",ee(b,jt),m[r]=!1},T=function(){b?h?y():setTimeout(function(){b[$t][a]=p+"px",b[_],ue(b,y)},1):m[r]=!1,fe.call(c,ht,i,s)},w=function(){b&&(u[$t][l]="left",f[$t][l]="left",d=u[it]),te(f,Pt),fe.call(c,dt,i,s),ee(u,Pt),fe.call(s,vt,i,c),b&&(p=f[it],h=p===d,te(b,jt),b[$t][a]=d+"px",b[tt],u[$t][l]="",f[$t][l]=""),ne(f,"fade")?(te(f,Wt),ue(f,T)):T()};if(m){m[r]=!1;var I=function(){var t,e=oe(m,Pt);return 1!==e[St]||ne(e[0],"dropdown")?e[St]>1&&(t=e[e[St]-1]):t=e[0],t[It]("A")[0]},A=function(){return ae(I()[Tt]("href"))},L=function(t){t.preventDefault(),c=t[q][Tt](o)===i||he.test(t[q][Tt]("href"))?t[q]:t[q][Ht],!m[r]&&!ne(c[Ht],Pt)&&v.show()};this.show=function(){c=c||t,f=ae(c[Tt]("href")),s=I(),u=A(),m[r]=!0,ee(s[Ht],Pt),te(c[Ht],Pt),x&&(ne(t[Ht][Ht],"dropdown-menu")?ne(x,Pt)||te(x,Pt):ne(x,Pt)&&ee(x,Pt)),fe.call(s,pt,i,c),ne(u,"fade")?(ee(u,Wt),ue(u,w)):w()},g in t||re(t,rt,L),this[a]&&(b=A()[Ht]),t[g]=this}};de(g,Ee,n[Et]("["+o+'="tab"]'));var ke=function(e,o){e=ae(e);var a=e[Tt](H),l=e[Tt](N),r=e[Tt](D),c=e[Tt](S),s="tooltip",u="class",f="title",d="fade",h="div",p=le(e,".modal"),v=le(e,"."+Ft),m=le(e,"."+Gt);o=o||{},this[U]=o[U]&&o[U]!==d?o[U]:a||d,this[X]=o[X]?o[X]:l||Ut,this[j]=parseInt(o[j]||r)||200,this[Y]=ae(o[Y])?ae(o[Y]):ae(c)?ae(c):v?v:m?m:p?p:n[i];var g=this,x=0,y=this[X],T=null,w=e[Tt](f)||e[Tt](A)||e[Tt](L);if(w&&""!=w){var C=function(){g[Y].removeChild(T),T=null,x=null},I=function(){if(w=e[Tt](f)||e[Tt](A)||e[Tt](L),!w||""==w)return!1;T=document.createElement(h),T[wt]("role",s);var t=document.createElement(h),n=document.createElement(h);t[wt](u,s+"-arrow"),n[wt](u,s+"-inner"),T.appendChild(t),T.appendChild(n),n.innerHTML=w,g[Y].appendChild(T),T[wt](u,s+" "+y+" "+g[U])},E=function(){me(e,T,y,g[Y]),pe(T)||(y=ge(y),me(e,T,y,g[Y]))},k=function(){!ne(T,Wt)&&te(T,Wt)},M=function(){fe.call(e,ht,s),!Yt&&re(t,ut,g.hide)},B=function(){!Yt&&ce(t,ut,g.hide),C(),fe.call(e,vt,s)};this.show=function(){clearTimeout(x),x=setTimeout(function(){if(null===T){if(y=g[X],0==I())return;E(),k(),fe.call(e,dt,s),g[U]?ue(T,M):M()}},20)},this.hide=function(){clearTimeout(x),x=setTimeout(function(){T&&null!==T&&ne(T,Wt)&&(fe.call(e,pt,s),ee(T,Wt),g[U]?ue(T,B):B())},g[j])},this.toggle=function(){T?g.hide():g.show()},b in e||(e[wt](L,w),e.removeAttribute(f),re(e,Jt[0],this.show),re(e,Jt[1],this.hide)),e[b]=this}};return de(b,ke,n[Et]("["+o+'="tooltip"]')),{Affix:be,Alert:xe,Button:ye,Carousel:Te,Collapse:we,Dropdown:Ce,Modal:Ie,Popover:Ae,ScrollSpy:Le,Tab:Ee,Tooltip:ke}});

@@ -34,3 +34,2 @@

// constants
resizeDelay = !supportTransitions ? 500 : 50, // for legacy browsers we try to limit the interval for updating the Affix
pinOffsetTop, pinOffsetBottom, maxScroll, scrollY, pinnedTop, pinnedBottom,

@@ -41,3 +40,3 @@ affixedToTop = false, affixedToBottom = false,

getMaxScroll = function(){
return Math.max( body[scrollHeight], body[offsetHeight], doc[clientHeight], doc[scrollHeight], doc[offsetHeight] );
return Math.max( DOC[body][scrollHeight], DOC[body][offsetHeight], HTML[clientHeight], HTML[scrollHeight], HTML[offsetHeight] );
},

@@ -115,4 +114,4 @@ getOffsetTop = function () {

if ( !(stringAffix in element ) ) { // prevent adding event handlers twice
on( globalObject, scrollEvent, this[update] );
on( globalObject, resizeEvent, function() { setTimeout(function(){ self[update](); }, resizeDelay); });
on( globalObject, scrollEvent, self[update] );
!isIE8 && on( globalObject, resizeEvent, self[update] );
}

@@ -126,3 +125,3 @@ element[stringAffix] = this;

// =================
initializeDataAPI( stringAffix, Affix, doc[querySelectorAll]('['+dataSpy+'="affix"]') );
initializeDataAPI( stringAffix, Affix, DOC[querySelectorAll]('['+dataSpy+'="affix"]') );

@@ -46,3 +46,4 @@

// ==============
initializeDataAPI ( stringAlert, Alert, doc[querySelectorAll]('['+dataDismiss+'="alert"]') );
initializeDataAPI ( stringAlert, Alert, DOC[querySelectorAll]('['+dataDismiss+'="alert"]') );

@@ -31,4 +31,4 @@

element[setAttribute](disabled,disabled);
element[setAttribute](dataOriginalText, element.innerHTML.replace(/^\s+|\s+$/g, '')); // trim the text
}
element[setAttribute](dataOriginalText, element.innerHTML.replace(/^\s+|\s+$/g, '')); // trim the text
element.innerHTML = element[getAttribute]('data-'+option+'-text');

@@ -107,7 +107,14 @@ }

}
}
if ( hasClass(element,'btn-group') ) {
} else { // if ( hasClass(element,'btn-group') ) // we allow the script to work outside btn-group component
if ( !( stringButton in element ) ) { // prevent adding event handlers twice
on( element, clickEvent, toggle );
}
// activate items on load
var labelsToACtivate = getElementsByClassName(element, 'btn'), lbll = labelsToACtivate[length];
for (var i=0; i<lbll; i++) {
!hasClass(labelsToACtivate[i],active) && queryElement('input',labelsToACtivate[i])[getAttribute](checked)
&& addClass(labelsToACtivate[i],active);
}
element[stringButton] = this;

@@ -119,3 +126,3 @@ }

// =================
initializeDataAPI( stringButton, Button, doc[querySelectorAll]('['+dataToggle+'="buttons"]') );
initializeDataAPI( stringButton, Button, DOC[querySelectorAll]('['+dataToggle+'="buttons"]') );

@@ -212,3 +212,3 @@

// =================
initializeDataAPI( stringCarousel, Carousel, doc[querySelectorAll]('['+dataRide+'="carousel"]') );
initializeDataAPI( stringCarousel, Carousel, DOC[querySelectorAll]('['+dataRide+'="carousel"]') );

@@ -108,3 +108,3 @@

// =================
initializeDataAPI(stringCollapse, Collapse, doc[querySelectorAll]('['+dataToggle+'="collapse"]'));
initializeDataAPI(stringCollapse, Collapse, DOC[querySelectorAll]('['+dataToggle+'="collapse"]'));

@@ -16,3 +16,3 @@

// constants, event targets, strings
var self = this, isOpen = false,
var self = this,
parent = element[parentNode],

@@ -23,20 +23,37 @@ component = 'dropdown', open = 'open',

// preventDefault on empty anchor links
preventEmptyAnchor = function(anchor){
(/\#$/.test(anchor.href) || anchor[parentNode] && /\#$/.test(anchor[parentNode].href)) && this[preventDefault](); // should be here to prevent jumps
},
// toggle dismissible events
toggleDismiss = function(){
var type = element[open] ? on : off;
type(DOC, keydownEvent, keyHandler);
type(DOC, clickEvent, dismissHandler);
},
// handlers
dismissHandler = function(e) {
var eventTarget = e[target],
hasData = eventTarget && (eventTarget[getAttribute](dataToggle)
|| eventTarget[parentNode] && getAttribute in eventTarget[parentNode]
&& eventTarget[parentNode][getAttribute](dataToggle));
if ( (eventTarget === menu || menu.contains(eventTarget)) && (self.persist || hasData) ) { return; }
else {
relatedTarget = eventTarget === element || element.contains(eventTarget) ? element : null;
hide();
}
preventEmptyAnchor.call(e,eventTarget);
},
keyHandler = function(e) {
if (isOpen && (e.which == 27 || e.keyCode == 27)) { relatedTarget = null; hide(); } // e.keyCode for IE8
if (element[open] && (e.which === 27 || e.keyCode === 27)) { relatedTarget = null; hide(); } // e.keyCode for IE8
},
clickHandler = function(e) {
var eventTarget = e[target],
hasData = eventTarget && (eventTarget[getAttribute](dataToggle) || eventTarget[parentNode] && getAttribute in eventTarget[parentNode] && eventTarget[parentNode][getAttribute](dataToggle));
if ( eventTarget === element || eventTarget === parent || eventTarget[parentNode] === element ) {
e.preventDefault(); // comment this line to stop preventing navigation when click target is a link
relatedTarget = element;
self.toggle();
} else if ( isOpen ) {
if ( eventTarget === menu || menu.contains(eventTarget) && (self.persist || hasData) ) {
return;
} else { relatedTarget = null; hide(); }
}
(/\#$/.test(eventTarget.href) || eventTarget[parentNode] && /\#$/.test(eventTarget[parentNode].href)) && e.preventDefault(); // should be here to prevent jumps
relatedTarget = element;
show();
preventEmptyAnchor.call(e,e[target]);
},
// private methods

@@ -48,4 +65,5 @@ show = function() {

bootstrapCustomEvent.call(parent, shownEvent, component, relatedTarget);
on(document, keydownEvent, keyHandler);
isOpen = true;
element[open] = true;
off(element, clickEvent, clickHandler);
setTimeout(function(){ toggleDismiss(); },1);
},

@@ -57,9 +75,13 @@ hide = function() {

bootstrapCustomEvent.call(parent, hiddenEvent, component, relatedTarget);
off(document, keydownEvent, keyHandler);
isOpen = false;
element[open] = false;
toggleDismiss();
setTimeout(function(){ on(element, clickEvent, clickHandler); },1);
};
// set initial state to closed
element[open] = false;
// public methods
this.toggle = function() {
if (hasClass(parent,open) && isOpen) { hide(); }
if (hasClass(parent,open) && element[open]) { hide(); }
else { show(); }

@@ -71,4 +93,5 @@ };

menu[setAttribute]('tabindex', '0'); // Fix onblur on Chrome | Safari
on(document, clickEvent, clickHandler);
on(element, clickEvent, clickHandler);
}
element[stringDropdown] = this;

@@ -79,3 +102,3 @@ };

// =================
initializeDataAPI( stringDropdown, Dropdown, doc[querySelectorAll]('['+dataToggle+'="dropdown"]') );
initializeDataAPI( stringDropdown, Dropdown, DOC[querySelectorAll]('['+dataToggle+'="dropdown"]') );

@@ -37,18 +37,18 @@

// bind, constants, event targets and other vars
var self = this, open = this.open = false, relatedTarget = null,
var self = this, relatedTarget = null,
bodyIsOverflowing, modalIsOverflowing, scrollbarWidth, overlay,
// also find fixed-top / fixed-bottom items
fixedItems = getElementsByClassName(doc,fixedTop).concat(getElementsByClassName(doc,fixedBottom)),
fixedItems = getElementsByClassName(HTML,fixedTop).concat(getElementsByClassName(HTML,fixedBottom)),
// private methods
getWindowWidth = function() {
var htmlRect = doc[getBoundingClientRect]();
var htmlRect = HTML[getBoundingClientRect]();
return globalObject[innerWidth] || (htmlRect[right] - Math.abs(htmlRect[left]));
},
setScrollbar = function () {
var bodyStyle = body.currentStyle || globalObject.getComputedStyle(body),
var bodyStyle = DOC[body].currentStyle || globalObject.getComputedStyle(DOC[body]),
bodyPad = parseInt((bodyStyle[paddingRight]), 10), itemPad;
if (bodyIsOverflowing) {
body[style][paddingRight] = (bodyPad + scrollbarWidth) + 'px';
DOC[body][style][paddingRight] = (bodyPad + scrollbarWidth) + 'px';
if (fixedItems[length]){

@@ -63,3 +63,3 @@ for (var i = 0; i < fixedItems[length]; i++) {

resetScrollbar = function () {
body[style][paddingRight] = '';
DOC[body][style][paddingRight] = '';
if (fixedItems[length]){

@@ -74,10 +74,10 @@ for (var i = 0; i < fixedItems[length]; i++) {

scrollDiv.className = component+'-scrollbar-measure'; // this is here to stay
body.appendChild(scrollDiv);
DOC[body].appendChild(scrollDiv);
scrollBarWidth = scrollDiv[offsetWidth] - scrollDiv[clientWidth];
body.removeChild(scrollDiv);
return scrollBarWidth;
DOC[body].removeChild(scrollDiv);
return scrollBarWidth;
},
checkScrollbar = function () {
bodyIsOverflowing = body[clientWidth] < getWindowWidth();
modalIsOverflowing = modal[scrollHeight] > doc[clientHeight];
bodyIsOverflowing = DOC[body][clientWidth] < getWindowWidth();
modalIsOverflowing = modal[scrollHeight] > HTML[clientHeight];
scrollbarWidth = measureScrollbar();

@@ -94,6 +94,4 @@ },

createOverlay = function() {
if ( modalOverlayRefCount > 1 ) { return; }
modalOverlayRefCount += 1;
modalOverlay = 1;
var newOverlay = document.createElement('div');

@@ -105,17 +103,15 @@ overlay = queryElement('.'+modalBackdropString);

overlay = newOverlay;
body.appendChild(overlay);
DOC[body].appendChild(overlay);
}
},
removeOverlay = function() {
if (modalOverlayRefCount === 0) { return; }
modalOverlayRefCount -= 1;
overlay = queryElement('.'+modalBackdropString);
if ( overlay && overlay !== null && typeof overlay === 'object' ) {
body.removeChild(overlay); overlay = null;
modalOverlay = 0;
DOC[body].removeChild(overlay); overlay = null;
}
bootstrapCustomEvent.call(modal, hiddenEvent, component);
},
keydownHandlerToggle = function() {
if (!hasClass(modal,inClass)) {
if (hasClass(modal,inClass)) {
on(document, keydownEvent, keyHandler);

@@ -127,3 +123,3 @@ } else {

resizeHandlerToggle = function() {
if (!hasClass(modal,inClass)) {
if (hasClass(modal,inClass)) {
on(globalObject, resizeEvent, self.update);

@@ -135,3 +131,3 @@ } else {

dismissHandlerToggle = function() {
if (!hasClass(modal,inClass)) {
if (hasClass(modal,inClass)) {
on(modal, clickEvent, dismissHandler);

@@ -144,3 +140,2 @@ } else {

triggerShow = function() {
open = self.open = true;
setFocus(modal);

@@ -150,11 +145,5 @@ bootstrapCustomEvent.call(modal, shownEvent, component, relatedTarget);

triggerHide = function() {
resizeHandlerToggle();
dismissHandlerToggle();
keydownHandlerToggle();
modal[style].display = '';
open = self.open = false;
element && (setFocus(element));
bootstrapCustomEvent.call(modal, hiddenEvent, component);
setTimeout(function(){

@@ -164,6 +153,9 @@ if (!getElementsByClassName(document,component+' '+inClass)[0]) {

resetScrollbar();
removeClass(body,component+'-open');
if (self[backdrop]){
hasClass(overlay,'fade') ? (removeClass(overlay,inClass), emulateTransitionEnd(overlay,removeOverlay)) : removeOverlay();
}
removeClass(DOC[body],component+'-open');
overlay && hasClass(overlay,'fade') ? (removeClass(overlay,inClass), emulateTransitionEnd(overlay,removeOverlay))
: removeOverlay();
resizeHandlerToggle();
dismissHandlerToggle();
keydownHandlerToggle();
}

@@ -176,3 +168,3 @@ }, 50);

clickTarget = clickTarget[hasAttribute](dataTarget) || clickTarget[hasAttribute]('href') ? clickTarget : clickTarget[parentNode];
if ( !open && clickTarget === element && !hasClass(modal,inClass) ) {
if ( clickTarget === element && !hasClass(modal,inClass) ) {
modal.modalTrigger = element;

@@ -186,3 +178,3 @@ relatedTarget = element;

var key = e.which || e.keyCode; // keyCode for IE8
if (self[keyboard] && key == 27 && open) {
if (self[keyboard] && key == 27 && hasClass(modal,inClass)) {
self.hide();

@@ -193,3 +185,3 @@ }

var clickTarget = e[target];
if ( open && (clickTarget[parentNode][getAttribute](dataDismiss) === component
if ( hasClass(modal,inClass) && (clickTarget[parentNode][getAttribute](dataDismiss) === component
|| clickTarget[getAttribute](dataDismiss) === component

@@ -204,3 +196,3 @@ || (clickTarget === modal && self[backdrop] !== staticString) ) ) {

this.toggle = function() {
if (open && hasClass(modal,inClass)) {this.hide();} else {this.show();}
if ( hasClass(modal,inClass) ) {this.hide();} else {this.show();}
};

@@ -215,7 +207,8 @@ this.show = function() {

if ( this[backdrop] ) {
createOverlay();
!modalOverlay && createOverlay();
}
if ( overlay && !hasClass(overlay,inClass)) {
setTimeout( function() { addClass(overlay,inClass); },0);
if ( overlay && modalOverlay && !hasClass(overlay,inClass)) {
overlay[offsetWidth]; // force reflow to enable trasition
addClass(overlay,inClass);
}

@@ -230,2 +223,6 @@

addClass(DOC[body],component+'-open');
addClass(modal,inClass);
modal[setAttribute](ariaHidden, false);
resizeHandlerToggle();

@@ -235,6 +232,2 @@ dismissHandlerToggle();

addClass(body,component+'-open');
addClass(modal,inClass);
modal[setAttribute](ariaHidden, false);
hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerShow) : triggerShow();

@@ -258,3 +251,3 @@ }, supportTransitions ? 150 : 0);

this.update = function() {
if (open) {
if (hasClass(modal,inClass)) {
checkScrollbar();

@@ -277,2 +270,2 @@ setScrollbar();

// DATA API
initializeDataAPI(stringModal, Modal, doc[querySelectorAll]('['+dataToggle+'="modal"]'));
initializeDataAPI(stringModal, Modal, DOC[querySelectorAll]('['+dataToggle+'="modal"]'));

@@ -51,3 +51,3 @@

: navbarFixedBottom ? navbarFixedBottom
: modal ? modal : body;
: modal ? modal : DOC[body];

@@ -123,7 +123,18 @@ // bind, content

// event toggle
dismissHandlerToggle = function(type){
if (/^(click|focus)$/.test(self[trigger])) {
!self[dismissible] && type( element, 'blur', self.hide );
}
self[dismissible] && type( document, clickEvent, dismissibleHandler );
!isIE8 && type( globalObject, resizeEvent, self.hide );
},
// triggers
showTrigger = function() {
dismissHandlerToggle(on);
bootstrapCustomEvent.call(element, shownEvent, component);
},
hideTrigger = function() {
dismissHandlerToggle(off);
removePopover();

@@ -169,10 +180,3 @@ bootstrapCustomEvent.call(element, hiddenEvent, component);

on( element, self[trigger], self.toggle );
if (!self[dismissible]) { on( element, 'blur', self.hide ); }
}
if (self[dismissible]) { on( document, clickEvent, dismissibleHandler ); }
// dismiss on window resize
!isIE8 && on( globalObject, resizeEvent, self.hide );
}
}

@@ -184,3 +188,3 @@ element[stringPopover] = self;

// ================
initializeDataAPI(stringPopover, Popover, doc[querySelectorAll]('['+dataToggle+'="popover"]'));
initializeDataAPI(stringPopover, Popover, DOC[querySelectorAll]('['+dataToggle+'="popover"]'));

@@ -40,3 +40,3 @@

var updateItem = function(index) {
var parent = items[index][parentNode], // item's parent LI element
var parent = items[index][parentNode], // item's parent LI element
targetItem = targetItems[index], // the menu item targets this element

@@ -97,3 +97,3 @@ dropdown = getClosest(parent,'.dropdown'),

// ==================
initializeDataAPI(stringScrollSpy, ScrollSpy, doc[querySelectorAll]('['+dataSpy+'="scroll"]'));
initializeDataAPI(stringScrollSpy, ScrollSpy, DOC[querySelectorAll]('['+dataSpy+'="scroll"]'));

@@ -142,3 +142,3 @@

// ============
initializeDataAPI(stringTab, Tab, doc[querySelectorAll]('['+dataToggle+'="tab"]'));
initializeDataAPI(stringTab, Tab, DOC[querySelectorAll]('['+dataToggle+'="tab"]'));

@@ -41,3 +41,3 @@

: navbarFixedBottom ? navbarFixedBottom
: modal ? modal : body;
: modal ? modal : DOC[body];

@@ -85,4 +85,6 @@ // bind, event targets, title and constants

bootstrapCustomEvent.call(element, shownEvent, component);
!isIE8 && on( globalObject, resizeEvent, self.hide );
},
hideTrigger = function() {
!isIE8 && off( globalObject, resizeEvent, self.hide );
removeToolTip();

@@ -133,3 +135,3 @@ bootstrapCustomEvent.call(element, hiddenEvent, component);

// =================
initializeDataAPI(stringTooltip, Tooltip, doc[querySelectorAll]('['+dataToggle+'="tooltip"]'));
initializeDataAPI(stringTooltip, Tooltip, DOC[querySelectorAll]('['+dataToggle+'="tooltip"]'));

@@ -8,3 +8,3 @@

var globalObject = typeof global !== 'undefined' ? global : this||window,
doc = document.documentElement, body = document.body,
HTML = document.documentElement, DOC = document, body = 'body', // allow the library to be used in <head>

@@ -90,2 +90,3 @@ // function toggle attributes

getElementsByTagName = 'getElementsByTagName',
preventDefault = 'preventDefault',
getBoundingClientRect= 'getBoundingClientRect',

@@ -114,3 +115,3 @@ querySelectorAll = 'querySelectorAll',

// IE8 browser detect
isIE8 = !('opacity' in body[style]),
isIE8 = !('opacity' in HTML[style]),

@@ -124,7 +125,7 @@ // tooltip / popover

// modal
modalOverlayRefCount = 0,
modalOverlay = 0,
// transitionEnd since 2.0.4
supportTransitions = Webkit+Transition in doc[style] || Transition[toLowerCase]() in doc[style],
transitionEndEvent = Webkit+Transition in doc[style] ? Webkit[toLowerCase]()+Transition+'End' : Transition[toLowerCase]()+'end',
supportTransitions = Webkit+Transition in HTML[style] || Transition[toLowerCase]() in HTML[style],
transitionEndEvent = Webkit+Transition in HTML[style] ? Webkit[toLowerCase]()+Transition+'End' : Transition[toLowerCase]()+'end',

@@ -210,9 +211,9 @@ // set new focus element since 2.0.3

return ( rect[top] >= 0 && rect[left] >= 0 &&
rect[bottom] <= (globalObject[innerHeight] || doc[clientHeight]) &&
rect[right] <= (globalObject[innerWidth] || doc[clientWidth]) )
rect[bottom] <= (globalObject[innerHeight] || HTML[clientHeight]) &&
rect[right] <= (globalObject[innerWidth] || HTML[clientWidth]) )
},
getScroll = function() { // also Affix and ScrollSpy uses it
return {
y : globalObject.pageYOffset || doc[scrollTop],
x : globalObject.pageXOffset || doc[scrollLeft]
y : globalObject.pageYOffset || HTML[scrollTop],
x : globalObject.pageXOffset || HTML[scrollLeft]
}

@@ -222,3 +223,3 @@ },

var rect = link[getBoundingClientRect](),
scroll = parent === body ? getScroll() : { x: parent[offsetLeft] + parent[scrollLeft], y: parent[offsetTop] + parent[scrollTop] },
scroll = parent === DOC[body] ? getScroll() : { x: parent[offsetLeft] + parent[scrollLeft], y: parent[offsetTop] + parent[scrollTop] },
linkDimensions = { w: rect[right] - rect[left], h: rect[bottom] - rect[top] },

@@ -225,0 +226,0 @@ elementDimensions = { w : element[offsetWidth], h: element[offsetHeight] };

@@ -46,3 +46,3 @@

// ==============
initializeDataAPI ( stringAlert, Alert, doc[querySelectorAll]('['+dataDismiss+'="alert"]') );
initializeDataAPI ( stringAlert, Alert, DOC[querySelectorAll]('['+dataDismiss+'="alert"]') );

@@ -79,8 +79,13 @@

// init
if ( hasClass(element,'btn-group') ) {
if ( !( stringButton in element ) ) { // prevent adding event handlers twice
on( element, clickEvent, toggle );
}
element[stringButton] = this;
if ( !( stringButton in element ) ) { // prevent adding event handlers twice
on( element, clickEvent, toggle );
}
// activate items on load
var labelsToACtivate = getElementsByClassName(element, 'btn'), lbll = labelsToACtivate[length];
for (var i=0; i<lbll; i++) {
!hasClass(labelsToACtivate[i],active) && queryElement('input:checked',labelsToACtivate[i])
&& addClass(labelsToACtivate[i],active);
}
element[stringButton] = this;
};

@@ -90,3 +95,3 @@

// =================
initializeDataAPI( stringButton, Button, doc[querySelectorAll]('['+dataToggle+'="buttons"]') );
initializeDataAPI( stringButton, Button, DOC[querySelectorAll]('['+dataToggle+'="buttons"]') );

@@ -215,3 +215,3 @@

// =================
initializeDataAPI( stringCarousel, Carousel, doc[querySelectorAll]('['+dataRide+'="carousel"]') );
initializeDataAPI( stringCarousel, Carousel, DOC[querySelectorAll]('['+dataRide+'="carousel"]') );

@@ -108,3 +108,3 @@

// =================
initializeDataAPI(stringCollapse, Collapse, doc[querySelectorAll]('['+dataToggle+'="collapse"]'));
initializeDataAPI(stringCollapse, Collapse, DOC[querySelectorAll]('['+dataToggle+'="collapse"]'));

@@ -16,27 +16,43 @@

// constants, event targets, strings
var self = this, isOpen = false,
var self = this,
parent = element[parentNode],
component = 'dropdown',
component = 'dropdown', open = 'open',
relatedTarget = null,
menu = queryElement('.dropdown-menu', parent),
// preventDefault on empty anchor links
preventEmptyAnchor = function(anchor){
(/\#$/.test(anchor.href) || anchor[parentNode] && /\#$/.test(anchor[parentNode].href)) && this[preventDefault](); // should be here to prevent jumps
},
// toggle dismissible events
toggleDismiss = function(){
var type = element[open] ? on : off;
type(DOC, keydownEvent, keyHandler);
type(DOC, clickEvent, dismissHandler);
},
// handlers
dismissHandler = function(e) {
var eventTarget = e[target],
hasData = eventTarget && (eventTarget[getAttribute](dataToggle)
|| eventTarget[parentNode] && getAttribute in eventTarget[parentNode]
&& eventTarget[parentNode][getAttribute](dataToggle));
if ( (eventTarget === menu || menu.contains(eventTarget)) && (self.persist || hasData) ) { return; }
else {
relatedTarget = eventTarget === element || element.contains(eventTarget) ? element : null;
hide();
}
preventEmptyAnchor.call(e,eventTarget);
},
keyHandler = function(e) {
if (isOpen && (e.which == 27 || e.keyCode == 27)) { relatedTarget = null; hide(); } // e.keyCode for IE8
if ( element[open] && e.which === 27 ) { relatedTarget = null; hide(); }
},
clickHandler = function(e) {
var eventTarget = e[target],
hasData = eventTarget && (eventTarget[getAttribute](dataToggle) || eventTarget[parentNode] && getAttribute in eventTarget[parentNode] && eventTarget[parentNode][getAttribute](dataToggle));
relatedTarget = element;
show();
preventEmptyAnchor.call(e,e[target]);
},
if ( eventTarget === element || eventTarget === parent || eventTarget[parentNode] === element ) {
e.preventDefault(); // comment this line to stop preventing navigation when click target is a link
relatedTarget = element;
self.toggle();
} else if ( isOpen ) {
if ( eventTarget === menu || menu.contains(eventTarget) && ( self.persist || hasData ) ) {
return;
} else { relatedTarget = null; hide(); }
}
(/\#$/.test(eventTarget.href) || eventTarget[parentNode] && /\#$/.test(eventTarget[parentNode].href)) && e.preventDefault(); // should be here to prevent jumps
},
// private methods

@@ -49,4 +65,5 @@ show = function() {

bootstrapCustomEvent.call(parent, shownEvent, component, relatedTarget);
on(document, keydownEvent, keyHandler);
isOpen = true;
element[open] = true;
off(element, clickEvent, clickHandler);
setTimeout(function(){ toggleDismiss(); },1);
},

@@ -59,9 +76,13 @@ hide = function() {

bootstrapCustomEvent.call(parent, hiddenEvent, component, relatedTarget);
off(document, keydownEvent, keyHandler);
isOpen = false;
element[open] = false;
toggleDismiss();
setTimeout(function(){ on(element, clickEvent, clickHandler); },1);
};
// set initial state to closed
element[open] = false;
// public methods
this.toggle = function() {
if (hasClass(parent,showClass) && isOpen) { hide(); }
if (hasClass(parent,showClass) && element[open]) { hide(); }
else { show(); }

@@ -73,4 +94,5 @@ };

menu[setAttribute]('tabindex', '0'); // Fix onblur on Chrome | Safari
on(document, clickEvent, clickHandler);
on(element, clickEvent, clickHandler);
}
element[stringDropdown] = this;

@@ -81,3 +103,3 @@ };

// =================
initializeDataAPI( stringDropdown, Dropdown, doc[querySelectorAll]('['+dataToggle+'="dropdown"]') );
initializeDataAPI( stringDropdown, Dropdown, DOC[querySelectorAll]('['+dataToggle+'="dropdown"]') );

@@ -37,18 +37,18 @@

// bind, constants, event targets and other vars
var self = this, open = this.open = false, relatedTarget = null,
var self = this, relatedTarget = null,
bodyIsOverflowing, modalIsOverflowing, scrollbarWidth, overlay,
// also find fixed-top / fixed-bottom items
fixedItems = getElementsByClassName(doc,fixedTop).concat(getElementsByClassName(doc,fixedBottom)),
fixedItems = getElementsByClassName(HTML,fixedTop).concat(getElementsByClassName(HTML,fixedBottom)),
// private methods
getWindowWidth = function() {
var htmlRect = doc[getBoundingClientRect]();
var htmlRect = HTML[getBoundingClientRect]();
return globalObject[innerWidth] || (htmlRect[right] - Math.abs(htmlRect[left]));
},
setScrollbar = function () {
var bodyStyle = globalObject.getComputedStyle(body),
var bodyStyle = globalObject.getComputedStyle(DOC[body]),
bodyPad = parseInt((bodyStyle[paddingRight]), 10), itemPad;
if (bodyIsOverflowing) {
body[style][paddingRight] = (bodyPad + scrollbarWidth) + 'px';
DOC[body][style][paddingRight] = (bodyPad + scrollbarWidth) + 'px';
if (fixedItems[length]){

@@ -63,3 +63,3 @@ for (var i = 0; i < fixedItems[length]; i++) {

resetScrollbar = function () {
body[style][paddingRight] = '';
DOC[body][style][paddingRight] = '';
if (fixedItems[length]){

@@ -74,10 +74,10 @@ for (var i = 0; i < fixedItems[length]; i++) {

scrollDiv.className = component+'-scrollbar-measure'; // this is here to stay
body.appendChild(scrollDiv);
DOC[body].appendChild(scrollDiv);
scrollBarWidth = scrollDiv[offsetWidth] - scrollDiv[clientWidth];
body.removeChild(scrollDiv);
DOC[body].removeChild(scrollDiv);
return scrollBarWidth;
},
checkScrollbar = function () {
bodyIsOverflowing = body[clientWidth] < getWindowWidth();
modalIsOverflowing = modal[scrollHeight] > doc[clientHeight];
bodyIsOverflowing = DOC[body][clientWidth] < getWindowWidth();
modalIsOverflowing = modal[scrollHeight] > HTML[clientHeight];
scrollbarWidth = measureScrollbar();

@@ -94,6 +94,4 @@ },

createOverlay = function() {
if ( modalOverlayRefCount > 1 ) { return; }
modalOverlay = 1;
modalOverlayRefCount += 1;
var newOverlay = document.createElement('div');

@@ -105,17 +103,15 @@ overlay = queryElement('.'+modalBackdropString);

overlay = newOverlay;
body.appendChild(overlay);
DOC[body].appendChild(overlay);
}
},
removeOverlay = function() {
if (modalOverlayRefCount === 0) { return; }
modalOverlayRefCount -= 1;
overlay = queryElement('.'+modalBackdropString);
if ( overlay && overlay !== null && typeof overlay === 'object' ) {
body.removeChild(overlay); overlay = null;
modalOverlay = 0;
DOC[body].removeChild(overlay); overlay = null;
}
bootstrapCustomEvent.call(modal, hiddenEvent, component);
},
keydownHandlerToggle = function() {
if (!hasClass(modal,showClass)) {
if (hasClass(modal,showClass)) {
on(document, keydownEvent, keyHandler);

@@ -127,3 +123,3 @@ } else {

resizeHandlerToggle = function() {
if (!hasClass(modal,showClass)) {
if (hasClass(modal,showClass)) {
on(globalObject, resizeEvent, self.update);

@@ -135,3 +131,3 @@ } else {

dismissHandlerToggle = function() {
if (!hasClass(modal,showClass)) {
if (hasClass(modal,showClass)) {
on(modal, clickEvent, dismissHandler);

@@ -144,3 +140,2 @@ } else {

triggerShow = function() {
open = self.open = true;
setFocus(modal);

@@ -150,11 +145,5 @@ bootstrapCustomEvent.call(modal, shownEvent, component, relatedTarget);

triggerHide = function() {
resizeHandlerToggle();
dismissHandlerToggle();
keydownHandlerToggle();
modal[style].display = '';
open = self.open = false;
element && (setFocus(element));
bootstrapCustomEvent.call(modal, hiddenEvent, component);
setTimeout(function(){

@@ -164,6 +153,9 @@ if (!getElementsByClassName(document,component+' '+showClass)[0]) {

resetScrollbar();
removeClass(body,component+'-open');
if (self[backdrop]){
hasClass(overlay,'fade') ? (removeClass(overlay,showClass), emulateTransitionEnd(overlay,removeOverlay)) : removeOverlay();
}
removeClass(DOC[body],component+'-open');
overlay && hasClass(overlay,'fade') ? (removeClass(overlay,showClass), emulateTransitionEnd(overlay,removeOverlay))
: removeOverlay();
resizeHandlerToggle();
dismissHandlerToggle();
keydownHandlerToggle();
}

@@ -176,3 +168,3 @@ }, 50);

clickTarget = clickTarget[hasAttribute](dataTarget) || clickTarget[hasAttribute]('href') ? clickTarget : clickTarget[parentNode];
if ( !open && clickTarget === element && !hasClass(modal,showClass) ) {
if ( clickTarget === element && !hasClass(modal,showClass) ) {
modal.modalTrigger = element;

@@ -185,4 +177,3 @@ relatedTarget = element;

keyHandler = function(e) {
var key = e.which || e.keyCode; // keyCode for IE8
if (self[keyboard] && key == 27 && open) {
if (self[keyboard] && e.which == 27 && hasClass(modal,showClass)) {
self.hide();

@@ -193,3 +184,3 @@ }

var clickTarget = e[target];
if ( open && (clickTarget[parentNode][getAttribute](dataDismiss) === component
if ( hasClass(modal,showClass) && (clickTarget[parentNode][getAttribute](dataDismiss) === component
|| clickTarget[getAttribute](dataDismiss) === component

@@ -204,3 +195,3 @@ || (clickTarget === modal && self[backdrop] !== staticString) ) ) {

this.toggle = function() {
if (open && hasClass(modal,showClass)) {this.hide();} else {this.show();}
if ( hasClass(modal,showClass) ) {this.hide();} else {this.show();}
};

@@ -215,7 +206,8 @@ this.show = function() {

if ( this[backdrop] ) {
createOverlay();
!modalOverlay && createOverlay();
}
if ( overlay && !hasClass(overlay,showClass)) {
setTimeout( function() { addClass(overlay, showClass); },0);
if ( overlay && modalOverlay && !hasClass(overlay,showClass)) {
overlay[offsetWidth]; // force reflow to enable trasition
addClass(overlay, showClass);
}

@@ -230,2 +222,6 @@

addClass(DOC[body],component+'-open');
addClass(modal,showClass);
modal[setAttribute](ariaHidden, false);
resizeHandlerToggle();

@@ -235,6 +231,2 @@ dismissHandlerToggle();

addClass(body,component+'-open');
addClass(modal,showClass);
modal[setAttribute](ariaHidden, false);
hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerShow) : triggerShow();

@@ -258,3 +250,3 @@ }, supportTransitions ? 150 : 0);

this.update = function() {
if (open) {
if (hasClass(modal,showClass)) {
checkScrollbar();

@@ -277,2 +269,2 @@ setScrollbar();

// DATA API
initializeDataAPI(stringModal, Modal, doc[querySelectorAll]('['+dataToggle+'="modal"]'));
initializeDataAPI(stringModal, Modal, DOC[querySelectorAll]('['+dataToggle+'="modal"]'));

@@ -51,3 +51,3 @@

: navbarFixedBottom ? navbarFixedBottom
: modal ? modal : body;
: modal ? modal : DOC[body];

@@ -126,8 +126,19 @@ // bind, content

},
// event toggle
dismissHandlerToggle = function(type){
if (/^(click|focus)$/.test(self[trigger])) {
!self[dismissible] && type( element, 'blur', self.hide );
}
self[dismissible] && type( document, clickEvent, dismissibleHandler );
type( globalObject, resizeEvent, self.hide );
},
// triggers
showTrigger = function() {
dismissHandlerToggle(on);
bootstrapCustomEvent.call(element, shownEvent, component);
},
hideTrigger = function() {
dismissHandlerToggle(off);
removePopover();

@@ -173,10 +184,3 @@ bootstrapCustomEvent.call(element, hiddenEvent, component);

on( element, self[trigger], self.toggle );
if (!self[dismissible]) { on( element, 'blur', self.hide ); }
}
if (self[dismissible]) { on( document, clickEvent, dismissibleHandler ); }
// dismiss on window resize
on( globalObject, resizeEvent, self.hide );
}

@@ -188,3 +192,3 @@ element[stringPopover] = self;

// ================
initializeDataAPI(stringPopover, Popover, doc[querySelectorAll]('['+dataToggle+'="popover"]'));
initializeDataAPI(stringPopover, Popover, DOC[querySelectorAll]('['+dataToggle+'="popover"]'));

@@ -40,3 +40,2 @@

var updateItem = function(index) {
// var parent = items[index][parentNode], // item's item LI element
var item = items[index],

@@ -99,3 +98,3 @@ targetItem = targetItems[index], // the menu item targets this element

// ==================
initializeDataAPI(stringScrollSpy, ScrollSpy, doc[querySelectorAll]('['+dataSpy+'="scroll"]'));
initializeDataAPI(stringScrollSpy, ScrollSpy, DOC[querySelectorAll]('['+dataSpy+'="scroll"]'));

@@ -142,3 +142,3 @@

// ============
initializeDataAPI(stringTab, Tab, doc[querySelectorAll]('['+dataToggle+'="tab"]'));
initializeDataAPI(stringTab, Tab, DOC[querySelectorAll]('['+dataToggle+'="tab"]'));

@@ -41,3 +41,3 @@

: navbarFixedBottom ? navbarFixedBottom
: modal ? modal : body;
: modal ? modal : DOC[body];

@@ -86,5 +86,7 @@ // bind, event targets, title and constants

showTrigger = function() {
on( globalObject, resizeEvent, self.hide );
bootstrapCustomEvent.call(element, shownEvent, component);
},
hideTrigger = function() {
off( globalObject, resizeEvent, self.hide );
removeToolTip();

@@ -135,3 +137,3 @@ bootstrapCustomEvent.call(element, hiddenEvent, component);

// =================
initializeDataAPI(stringTooltip, Tooltip, doc[querySelectorAll]('['+dataToggle+'="tooltip"]'));
initializeDataAPI(stringTooltip, Tooltip, DOC[querySelectorAll]('['+dataToggle+'="tooltip"]'));

@@ -8,3 +8,3 @@

var globalObject = typeof global !== 'undefined' ? global : this||window,
doc = document.documentElement, body = document.body,
HTML = document.documentElement, DOC = document, body = 'body', // allow the library to be used in <head>

@@ -95,2 +95,3 @@ // function toggle attributes

parentNode = 'parentNode',
preventDefault = 'preventDefault',
length = 'length',

@@ -119,7 +120,7 @@ toLowerCase = 'toLowerCase',

// modal
modalOverlayRefCount = 0,
modalOverlay = 0,
// transitionEnd since 2.0.4
supportTransitions = Webkit+Transition in doc[style] || Transition[toLowerCase]() in doc[style],
transitionEndEvent = Webkit+Transition in doc[style] ? Webkit[toLowerCase]()+Transition+'End' : Transition[toLowerCase]()+'end',
supportTransitions = Webkit+Transition in HTML[style] || Transition[toLowerCase]() in HTML[style],
transitionEndEvent = Webkit+Transition in HTML[style] ? Webkit[toLowerCase]()+Transition+'End' : Transition[toLowerCase]()+'end',

@@ -200,9 +201,9 @@ // set new focus element since 2.0.3

return ( rect[top] >= 0 && rect[left] >= 0 &&
rect[bottom] <= (globalObject[innerHeight] || doc[clientHeight]) &&
rect[right] <= (globalObject[innerWidth] || doc[clientWidth]) )
rect[bottom] <= (globalObject[innerHeight] || HTML[clientHeight]) &&
rect[right] <= (globalObject[innerWidth] || HTML[clientWidth]) )
},
getScroll = function() { // also Affix and ScrollSpy uses it
return {
y : globalObject.pageYOffset || doc[scrollTop],
x : globalObject.pageXOffset || doc[scrollLeft]
y : globalObject.pageYOffset || HTML[scrollTop],
x : globalObject.pageXOffset || HTML[scrollLeft]
}

@@ -214,3 +215,3 @@ },

arrowWidth = arrow[offsetWidth], isPopover = hasClass(element,'popover'),
scroll = parent === body ? getScroll() : { x: parent[offsetLeft] + parent[scrollLeft], y: parent[offsetTop] + parent[scrollTop] },
scroll = parent === DOC[body] ? getScroll() : { x: parent[offsetLeft] + parent[scrollLeft], y: parent[offsetTop] + parent[scrollTop] },
linkDimensions = { w: rect[right] - rect[left], h: rect[bottom] - rect[top] },

@@ -217,0 +218,0 @@ elementDimensions = { w : element[offsetWidth], h: element[offsetHeight] };

{
"name": "bootstrap.native",
"version": "2.0.17",
"version": "2.0.18",
"description": "Native Javascript for Bootstrap, the sweetest Javascript library without jQuery.",

@@ -5,0 +5,0 @@ "main": "dist/bootstrap-native.js",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc