diff --git a/dist/htdocs/js/bootstrap-native-v4.js b/dist/htdocs/js/bootstrap-native-v4.js index ce42869..6812105 100644 --- a/dist/htdocs/js/bootstrap-native-v4.js +++ b/dist/htdocs/js/bootstrap-native-v4.js @@ -1,4 +1,4 @@ -// Native Javascript for Bootstrap 4 v2.0.23 | © dnp_theme | MIT-License +// Native Javascript for Bootstrap 4 v2.0.24 | © dnp_theme | MIT-License (function (root, factory) { if (typeof define === 'function' && define.amd) { // AMD support: @@ -315,7 +315,7 @@ arrowLeft && (arrow[style][left] = arrowLeft + 'px'); }; - BSN.version = '2.0.23'; + BSN.version = '2.0.24'; /* Native Javascript for Bootstrap 4 | Alert -------------------------------------------*/ @@ -501,7 +501,8 @@ this[interval] = typeof intervalOption === 'number' ? intervalOption : intervalOption === false || intervalData === 0 || intervalData === false ? 0 - : 5000; // bootstrap carousel default interval + : isNaN(intervalData) ? 5000 // bootstrap carousel default interval + : intervalData; // bind, event targets var self = this, index = element.index = 0, timer = element.timer = 0, @@ -592,8 +593,11 @@ var activeItem = this.getActiveIndex(), // the current active orientation; - // determine slideDirection first - if ( (activeItem < next ) || (activeItem === 0 && next === total -1 ) ) { + // first return if we're on the same item #227 + if ( activeItem === next ) { + return; + // or determine slideDirection + } else if ( (activeItem < next ) || (activeItem === 0 && next === total -1 ) ) { slideDirection = self[direction] = left; // next } else if ( (activeItem > next) || (activeItem === total - 1 && next === 0 ) ) { slideDirection = self[direction] = right; // prev diff --git a/dist/htdocs/js/bootstrap-native-v4.min.js b/dist/htdocs/js/bootstrap-native-v4.min.js index db7cc62..fecb8e2 100644 --- a/dist/htdocs/js/bootstrap-native-v4.min.js +++ b/dist/htdocs/js/bootstrap-native-v4.min.js @@ -1,42 +1,2 @@ -(function(z,g){"function"===typeof define&&define.amd?define([],g):"object"===typeof module&&module.exports?module.exports=g():(g=g(),z.Alert=g.Alert,z.Button=g.Button,z.Carousel=g.Carousel,z.Collapse=g.Collapse,z.Dropdown=g.Dropdown,z.Modal=g.Modal,z.Popover=g.Popover,z.ScrollSpy=g.ScrollSpy,z.Tab=g.Tab,z.Tooltip=g.Tooltip)})(this,function(){var z="undefined"!==typeof global?global:this||window,g=document,E=g.documentElement,Q=z.BSN={},D=Q.supports=[],K="onmouseleave"in g?["mouseenter","mouseleave"]: -["mouseover","mouseout"],ja=/\b(top|bottom|left|right)+/,P=0,N="WebkitTransition"in E.style||"transition"in E.style,T="WebkitTransition"in E.style?"webkitTransitionEnd":"transitionend",ka="WebkitDuration"in E.style?"webkitTransitionDuration":"transitionDuration",O=function(a){a.focus?a.focus():a.setActive()},w=function(a,c){a.classList.add(c)},y=function(a,c){a.classList.remove(c)},p=function(a,c){return a.classList.contains(c)},I=function(a,c){return[].slice.call(a.getElementsByClassName(c))},q= -function(a,c){c=c?c:g;return"object"===typeof a?a:c.querySelector(a)},G=function(a,c){var e=c.charAt(0),b=c.substr(1);if("."===e)for(;a&&a!==g;a=a.parentNode){if(null!==q(c,a.parentNode)&&p(a,b))return a}else if("#"===e)for(;a&&a!==g;a=a.parentNode)if(a.id===b)return a;return!1},u=function(a,c,e){a.addEventListener(c,e,!1)},L=function(a,c,e){a.removeEventListener(c,e,!1)},U=function(a,c,e){u(a,c,function f(m){e(m);L(a,c,f)})},R=function(a){a=z.getComputedStyle(a)[ka];a=parseFloat(a);a="number"!== -typeof a||isNaN(a)?0:1E3*a;return a+50},H=function(a,c){var e=0,b=R(a);N&&U(a,T,function(a){c(a);e=1});setTimeout(function(){!e&&c()},b)},x=function(a,c,e){a=new CustomEvent(a+".bs."+c);a.relatedTarget=e;this.dispatchEvent(a)},V=function(){return{y:z.pageYOffset||E.scrollTop,x:z.pageXOffset||E.scrollLeft}},W=function(a,c,e,b){var m=c.offsetWidth,f=c.offsetHeight,h=E.clientWidth||g.body.clientWidth,n=E.clientHeight||g.body.clientHeight;a=a.getBoundingClientRect();b=b===g.body?V():{x:b.offsetLeft+b.scrollLeft, -y:b.offsetTop+b.scrollTop};var v=a.right-a.left,k=a.bottom-a.top,d=p(c,"popover"),A=q(".arrow",c),l=0>a.top+k/2-f/2,r=0>a.left+v/2-m/2,x=a.left+m/2+v/2>=h,t=a.top+f/2+k/2>=n;var C=0>a.top-f;var F=0>a.left-m;n=a.top+f+k>=n;var M=a.left+m+v>=h;e=("left"===e||"right"===e)&&F&&M?"top":e;e="top"===e&&C?"bottom":e;e="bottom"===e&&n?"top":e;e="left"===e&&F?"right":e;e="right"===e&&M?"left":e;-1===c.className.indexOf(e)&&(c.className=c.className.replace(ja,e));n=A.offsetWidth;C=A.offsetHeight;if("left"=== -e||"right"===e){var J="left"===e?a.left+b.x-m-(d?n:0):a.left+b.x+v;if(l){var w=a.top+b.y;var u=k/2-n}else t?(w=a.top+b.y-f+k,u=f-k/2-n):(w=a.top+b.y-f/2+k/2,u=f/2-(d?.9*C:C/2))}else if("top"===e||"bottom"===e)if(w="top"===e?a.top+b.y-f-(d?C:0):a.top+b.y+k,r){J=0;var y=a.left+v/2-n}else x?(J=h-1.01*m,y=m-(h-a.left)+v/2-n/2):(J=a.left+b.x-m/2+v/2,y=m/2-n/2);c.style.top=w+"px";c.style.left=J+"px";u&&(A.style.top=u+"px");y&&(A.style.left=y+"px")};Q.version="2.0.23";var X=function(a){a=q(a);var c=this, -e=G(a,".alert"),b=function(b){e=G(b.target,".alert");(a=q('[data-dismiss="alert"]',e))&&e&&(a===b.target||a.contains(b.target))&&c.close()},m=function(){x.call(e,"closed","alert");L(a,"click",b);e.parentNode.removeChild(e)};this.close=function(){e&&a&&p(e,"show")&&(x.call(e,"close","alert"),y(e,"show"),e&&(p(e,"fade")?H(e,m):m()))};"Alert"in a||u(a,"click",b);a.Alert=c};D.push(["Alert",X,'[data-dismiss="alert"]']);var Y=function(a){a=q(a);var c=!1,e=function(a){32===(a.which||a.keyCode)&&a.target=== -g.activeElement&&m(a)},b=function(a){32===(a.which||a.keyCode)&&a.preventDefault()},m=function(b){var e="LABEL"===b.target.tagName?b.target:"LABEL"===b.target.parentNode.tagName?b.target.parentNode:null;if(e){b=I(b.target.parentNode,"btn");var f=e.getElementsByTagName("INPUT")[0];if(f){"checkbox"===f.type&&(f.checked?(y(e,"active"),f.getAttribute("checked"),f.removeAttribute("checked"),f.checked=!1):(w(e,"active"),f.getAttribute("checked"),f.setAttribute("checked","checked"),f.checked=!0),c||(c=!0, -x.call(f,"change","button"),x.call(a,"change","button")));if("radio"===f.type&&!c&&!f.checked){w(e,"active");f.setAttribute("checked","checked");f.checked=!0;x.call(f,"change","button");x.call(a,"change","button");c=!0;f=0;for(var h=b.length;fb||c===A-1&&0===b)l=h.direction="right";0>b?b=A-1:b===A&&(b=0);n=b;var e="left"===l?"next":"prev";x.call(a,"slide","carousel",d[b]);k=!0;clearInterval(v);F(b);N&&p(a,"slide")?(w(d[b],"carousel-item-"+e),d[b].offsetWidth,w(d[b],"carousel-item-"+l),w(d[c],"carousel-item-"+l),U(d[b],T,function(f){f=f.target!== -d[b]?1E3*f.elapsedTime+100:20;k&&setTimeout(function(){k=!1;w(d[b],"active");y(d[c],"active");y(d[b],"carousel-item-"+e);y(d[b],"carousel-item-"+l);y(d[c],"carousel-item-"+l);x.call(a,"slid","carousel",d[b]);g.hidden||!h.interval||p(a,"paused")||h.cycle()},f)})):(w(d[b],"active"),d[b].offsetWidth,y(d[c],"active"),setTimeout(function(){k=!1;h.interval&&!p(a,"paused")&&h.cycle();x.call(a,"slid","carousel",d[b])},100))}};this.getActiveIndex=function(){return d.indexOf(I(a,"carousel-item active")[0])|| -0};"Carousel"in a||(h.pause&&h.interval&&(u(a,K[0],b),u(a,K[1],e),u(a,"touchstart",b),u(a,"touchend",e)),B&&u(B,"click",f),r&&u(r,"click",f),c&&u(c,"click",m),!0===h.keyboard&&u(z,"keydown",C));0>h.getActiveIndex()&&(d.length&&w(d[0],"active"),t.length&&F(0));h.interval&&h.cycle();a.Carousel=h};D.push(["Carousel",Z,'[data-ride="carousel"]']);var aa=function(a,c){a=q(a);c=c||{};var e=null,b=null,m=this,f=a.getAttribute("data-parent"),h,g,v=function(a,b){x.call(a,"show","collapse");a.isAnimating=!0; -w(a,"collapsing");y(a,"collapse");a.style.height=a.scrollHeight+"px";H(a,function(){a.isAnimating=!1;a.setAttribute("aria-expanded","true");b.setAttribute("aria-expanded","true");y(a,"collapsing");w(a,"collapse");w(a,"show");a.style.height="";x.call(a,"shown","collapse")})},k=function(a,b){x.call(a,"hide","collapse");a.isAnimating=!0;a.style.height=a.scrollHeight+"px";y(a,"collapse");y(a,"show");w(a,"collapsing");a.offsetWidth;a.style.height="0px";H(a,function(){a.isAnimating=!1;a.setAttribute("aria-expanded", -"false");b.setAttribute("aria-expanded","false");y(a,"collapsing");w(a,"collapse");a.style.height="";x.call(a,"hidden","collapse")})};this.toggle=function(a){a.preventDefault();p(b,"show")?m.hide():m.show()};this.hide=function(){b.isAnimating||(k(b,a),w(a,"collapsed"))};this.show=function(){e&&(g=(h=q(".collapse.show",e))&&(q('[data-toggle="collapse"][data-target="#'+h.id+'"]',e)||q('[data-toggle="collapse"][href="#'+h.id+'"]',e)));if(!b.isAnimating||h&&!h.isAnimating)g&&h!==b&&(k(h,g),w(g,"collapsed")), -v(b,a),y(a,"collapsed")};"Collapse"in a||u(a,"click",m.toggle);b=function(){var b=a.href&&a.getAttribute("href"),c=a.getAttribute("data-target");return(b=b||c&&"#"===c.charAt(0)&&c)&&q(b)}();b.isAnimating=!1;e=q(c.parent)||f&&G(a,f);a.Collapse=m};D.push(["Collapse",aa,'[data-toggle="collapse"]']);var ba=function(a,c){a=q(a);this.persist=!0===c||"true"===a.getAttribute("data-persist")||!1;var e=this,b=a.parentNode,m=null,f=q(".dropdown-menu",b),h=function(){for(var a=f.children,b=[],c=0;cE.clientHeight;a=g.createElement("div");a.className="modal-scrollbar-measure";g.body.appendChild(a);c=a.offsetWidth-a.clientWidth;g.body.removeChild(a); -k=c},B=function(){b.style.paddingLeft=!n&&v?k+"px":"";b.style.paddingRight=n&&!v?k+"px":""},t=function(){P=1;var a=g.createElement("div");d=q(".modal-backdrop");null===d&&(a.setAttribute("class","modal-backdrop fade"),d=a,g.body.appendChild(d))},C=function(){(d=q(".modal-backdrop"))&&null!==d&&"object"===typeof d&&(P=0,g.body.removeChild(d),d=null);x.call(b,"hidden","modal")},F=function(){p(b,"show")?u(g,"keydown",S):L(g,"keydown",S)},M=function(){p(b,"show")?u(z,"resize",f.update):L(z,"resize",f.update)}, -J=function(){p(b,"show")?u(b,"click",K):L(b,"click",K)},D=function(){O(b);x.call(b,"shown","modal",h)},G=function(){b.style.display="";a&&O(a);if(!I(g,"modal show")[0]){b.style.paddingLeft="";b.style.paddingRight="";g.body.style.paddingRight="";if(A.length)for(var c=0;c\u00d7':r,t.appendChild(b)),b=g.createElement("div"),b.setAttribute("class","popover-body"),b.innerHTML=l.dismissible&&null===r?B+'':B,t.appendChild(b)):(b=g.createElement("div"), -b.innerHTML=l.template,t.innerHTML=b.firstChild.innerHTML);l.container.appendChild(t);t.style.display="block";t.setAttribute("class","popover bs-popover-"+F+" "+l.animation);W(a,t,F,l.container);!p(t,"show")&&w(t,"show");x.call(a,"show","popover");l.animation?H(t,D):D()}},20)};this.hide=function(){clearTimeout(C);C=setTimeout(function(){t&&null!==t&&p(t,"show")&&(x.call(a,"hide","popover"),y(t,"show"),l.animation?H(t,E):E())},l.delay)};"Popover"in a||("hover"===l.trigger?(u(a,K[0],l.show),l.dismissible|| -u(a,K[1],l.hide)):"click"!=l.trigger&&"focus"!=l.trigger||u(a,l.trigger,l.toggle));a.Popover=l}};D.push(["Popover",da,'[data-toggle="popover"]']);var ea=function(a,c){a=q(a);var e=q(a.getAttribute("data-target")),b=a.getAttribute("data-offset");c=c||{};if(c.target||e){e=(e=c.target&&q(c.target)||e)&&e.getElementsByTagName("A");var m=parseInt(b||c.offset)||10,f=[],h=[],g;c=a.offsetHeight=(v?q.top+g:n.offsetTop)-m&&z>g;!u&&n?p(e,"active")||(w(e,"active"),k&&!p(k,"active")&&w(k,"active"),x.call(a,"activate","scrollspy",f[d])):!n&&p(e,"active")&&(y(e, -"active"),k&&p(k,"active")&&!I(e.parentNode,"active").length&&y(k,"active"))}};"ScrollSpy"in a||(u(c,"scroll",this.refresh),u(z,"resize",this.refresh));this.refresh();a.ScrollSpy=this}};D.push(["ScrollSpy",ea,'[data-spy="scroll"]']);var fa=function(a,c){a=q(a);var e=a.getAttribute("data-height");c=c||{};this.height=N?c.height||"true"===e:!1;var b=this,g,f=G(a,".nav"),h=!1,n=f&&q(".dropdown-toggle",f),v,k,d,A,l,r,z=function(){h.style.height="";y(h,"collapsing");f.isAnimating=!1},t=function(){h?l?z(): -setTimeout(function(){h.style.height=r+"px";h.offsetWidth;H(h,z)},50):f.isAnimating=!1;x.call(g,"shown","tab",v)},C=function(){h&&(k.style["float"]="left",d.style["float"]="left",A=k.scrollHeight);w(d,"active");x.call(g,"show","tab",v);y(k,"active");x.call(v,"hidden","tab",g);h&&(r=d.scrollHeight,l=r===A,w(h,"collapsing"),h.style.height=A+"px",h.offsetHeight,k.style["float"]="",d.style["float"]="");p(d,"fade")?setTimeout(function(){w(d,"show");H(d,t)},20):t()};if(f){f.isAnimating=!1;var F=function(){var a= -I(f,"active"),b;1!==a.length||p(a[0].parentNode,"dropdown")?1=v,A=m[Jt]+d.h/2+w.h/2>=p,k=m[Jt]-d.h<0,I=m[Yt]-d.w<0,N=m[Jt]+d.h+w.h>=p,L=m[Yt]+d.w+w.w>=v;a=(a===Yt||a===Gt)&&I&&L?Jt:a,a=a===Jt&&k?Kt:a,a=a===Kt&&N?Jt:a,a=a===Yt&&I?Gt:a,a=a===Gt&&L?Yt:a,o.className[Bt](a)===-1&&(o.className=o.className.replace(Vt,a)),f=y[V],h=y[Z],a===Yt||a===Gt?(c=a===Yt?m[Yt]+g.x-d.w-(b?f:0):m[Yt]+g.x+w.w,T?(r=m[Jt]+g.y,u=w.h/2-f):A?(r=m[Jt]+g.y-d.h+w.h,u=d.h-w.h/2-f):(r=m[Jt]+g.y-d.h/2+w.h/2,u=d.h/2-(b?.9*h:h/2))):a!==Jt&&a!==Kt||(r=a===Jt?m[Jt]+g.y-d.h-(b?h:0):m[Jt]+g.y+w.h,x?(c=0,s=m[Yt]+w.w/2-f):C?(c=v-1.01*d.w,s=d.w-(v-m[Yt])+w.w/2-f/2):(c=m[Yt]+g.x-d.w/2+w.w/2,s=d.w/2-f/2)),o[jt][Jt]=r+"px",o[jt][Yt]=c+"px",u&&(y[jt][Jt]=u+"px"),s&&(y[jt][Yt]=s+"px")};o.version="2.0.24";var we=function(t){t=ce(t);var e=this,n="alert",i=ue(t,"."+n),o=function(){le(i,"fade")?ve(i,l):l()},a=function(o){i=ue(o[j],"."+n),t=ce("["+r+'="'+n+'"]',i),t&&i&&(t===o[j]||t[Ut](o[j]))&&e.close()},l=function(){pe.call(i,pt,n),fe(t,ot,a),i[Dt].removeChild(i)};this.close=function(){i&&t&&le(i,Ft)&&(pe.call(i,vt,n),ae(i,Ft),i&&o())},s in t||se(t,ot,a),t[s]=e};a[qt]([s,we,"["+r+'="alert"]']);var be=function(t){t=ce(t);var n=!1,i="button",o="checked",a="LABEL",l="INPUT",r=function(t){var n=t.which||t.keyCode;32===n&&t[j]===e.activeElement&&u(t)},c=function(t){var e=t.which||t.keyCode;32===e&&t[It]()},u=function(e){var r=e[j].tagName===a?e[j]:e[j][Dt].tagName===a?e[j][Dt]:null;if(r){var c=e[j],u=re(c[Dt],"btn"),s=r[kt](l)[0];if(s){if("checkbox"===s.type&&(s[o]?(ae(r,zt),s[bt](o),s.removeAttribute(o),s[o]=!1):(oe(r,zt),s[bt](o),s[yt](o,o),s[o]=!0),n||(n=!0,pe.call(s,wt,i),pe.call(t,wt,i))),"radio"===s.type&&!n&&!s[o]){oe(r,zt),s[yt](o,o),s[o]=!0,pe.call(s,wt,i),pe.call(t,wt,i),n=!0;for(var f=0,h=u[Mt];f=0},W=function(t){for(var e=0,n=E[Mt];et||o===x-1&&0===t)&&(A=m[d]=Gt),t<0?t=x-1:t===x&&(t=0),g=t,n=A===Yt?"next":"prev",pe.call(i,gt,s,y[t]),b=!0,clearInterval(w),W(t),te&&le(i,"slide")?(oe(y[t],v+"-"+n),y[t][V],oe(y[t],v+"-"+A),oe(y[o],v+"-"+A),he(y[t],ee,function(a){var l=a[j]!==y[t]?1e3*a.elapsedTime+100:20;b&&setTimeout(function(){b=!1,oe(y[t],zt),ae(y[o],zt),ae(y[t],v+"-"+n),ae(y[t],v+"-"+A),ae(y[o],v+"-"+A),pe.call(i,mt,s,y[t]),e.hidden||!m[q]||le(i,f)||m.cycle()},l)})):(oe(y[t],zt),y[t][V],ae(y[o],zt),setTimeout(function(){b=!1,m[q]&&!le(i,f)&&m.cycle(),pe.call(i,mt,s,y[t])},100)))}},this.getActiveIndex=function(){return y[Bt](re(i,v+" active")[0])||0},h in i||(m[R]&&m[q]&&(se(i,Qt[0],S),se(i,Qt[1],B),se(i,"touchstart",S),se(i,"touchend",B)),N&&se(N,ot,M),I&&se(I,ot,M),L&&se(L,ot,D),m[H]===!0&&se(t,lt,P)),m.getActiveIndex()<0&&(y[Mt]&&oe(y[0],zt),E[Mt]&&W(0)),m[q]&&m.cycle(),i[h]=m};a[qt]([h,ye,"["+u+'="carousel"]']);var Te=function(t,e){t=ce(t),e=e||{};var n,i,o=null,a=null,r=this,c=t[bt]("data-parent"),u="collapse",s="collapsed",f="isAnimating",h=function(t,e){pe.call(t,st,u),t[f]=!0,oe(t,Xt),ae(t,u),t[jt][et]=t[tt]+"px",ve(t,function(){t[f]=!1,t[yt](nt,"true"),e[yt](nt,"true"),ae(t,Xt),oe(t,u),oe(t,Ft),t[jt][et]="",pe.call(t,ft,u)})},v=function(t,e){pe.call(t,ht,u),t[f]=!0,t[jt][et]=t[tt]+"px",ae(t,u),ae(t,Ft),oe(t,Xt),t[V],t[jt][et]="0px",ve(t,function(){t[f]=!1,t[yt](nt,"false"),e[yt](nt,"false"),ae(t,Xt),oe(t,u),t[jt][et]="",pe.call(t,dt,u)})},p=function(){var e=t.href&&t[bt]("href"),n=t[bt](x),i=e||n&&"#"===n.charAt(0)&&n;return i&&ce(i)};this.toggle=function(t){t[It](),le(a,Ft)?r.hide():r.show()},this.hide=function(){a[f]||(v(a,t),oe(t,s))},this.show=function(){o&&(n=ce("."+u+"."+Ft,o),i=n&&(ce("["+l+'="'+u+'"]['+x+'="#'+n.id+'"]',o)||ce("["+l+'="'+u+'"][href="#'+n.id+'"]',o))),(!a[f]||n&&!n[f])&&(i&&n!==a&&(v(n,i),oe(i,s)),h(a,t),ae(t,s))},d in t||se(t,ot,r.toggle),a=p(),a[f]=!1,o=ce(e.parent)||c&&ue(t,c),t[d]=r};a[qt]([d,Te,"["+l+'="collapse"]']);var xe=function(t,n){t=ce(t),this.persist=n===!0||"true"===t[bt]("data-persist")||!1;var i=this,o="children",a=t[Dt],l="dropdown",r="open",c=null,u=ce(".dropdown-menu",a),s=function(){for(var t=u[o],e=[],n=0;n1?l-1:0:40===o&&ln[Q],b=S()},D=function(){s[jt][d]=!g&&w?b+"px":"",s[jt][v]=g&&!w?b+"px":""},M=function(){s[jt][d]="",s[jt][v]=""},O=function(){Zt=1;var t=e[xt]("div");C=ce("."+m),null===C&&(t[yt]("class",m+" fade"),C=t,e[i][Ct](C))},q=function(){C=ce("."+m),C&&null!==C&&"object"==typeof C&&(Zt=0,e[i].removeChild(C),C=null),pe.call(s,dt,f)},R=function(){le(s,Ft)?se(e,lt,G):fe(e,lt,G)},U=function(){le(s,Ft)?se(t,ct,A.update):fe(t,ct,A.update)},z=function(){le(s,Ft)?se(s,ot,J):fe(s,ot,J)},F=function(){ie(s),pe.call(s,ft,f,k)},X=function(){s[jt].display="",o&&ie(o),function(){re(e,f+" "+Ft)[0]||(M(),E(),ae(e[i],f+"-open"),C&&le(C,"fade")?(ae(C,Ft),ve(C,q)):q(),U(),z(),R())}()},Y=function(t){var e=t[j];e=e[Tt](x)||e[Tt]("href")?e:e[Dt],e!==o||le(s,Ft)||(s.modalTrigger=o,k=o,A.show(),t[It]())},G=function(t){A[H]&&27==t.which&&le(s,Ft)&&A.hide()},J=function(t){var e=t[j];le(s,Ft)&&(e[Dt][bt](r)===f||e[bt](r)===f||e===s&&A[P]!==h)&&(A.hide(),k=null,t[It]())};this.toggle=function(){le(s,Ft)?this.hide():this.show()},this.show=function(){pe.call(s,st,f,k);var t=re(e,f+" "+Ft)[0];t&&t!==s&&t.modalTrigger[p].hide(),this[P]&&!Zt&&O(),C&&Zt&&!le(C,Ft)&&(C[V],l=de(C),oe(C,Ft)),setTimeout(function(){s[jt].display="block",B(),L(),D(),oe(e[i],f+"-open"),oe(s,Ft),s[yt](it,!1),U(),z(),R(),le(s,"fade")?ve(s,F):F()},te&&C?l:0)},this.hide=function(){pe.call(s,ht,f),C=ce("."+m),l=C&&de(C),ae(s,Ft),s[yt](it,!0),setTimeout(function(){le(s,"fade")?ve(s,X):X()},te&&C?l:0)},this.setContent=function(t){ce("."+f+"-content",s)[At]=t},this.update=function(){le(s,Ft)&&(B(),L(),D())},!o||p in o||se(o,ot,Y),A[W]&&A.setContent(A[W]),!!o&&(o[p]=A)}};a[qt]([p,Ce,"["+l+'="modal"]']);var Ae=function(n,o){n=ce(n),o=o||{};var a=n[bt](E),l=n[bt](S),r=n[bt](D),c=n[bt](L),u=n[bt](M),s=n[bt](B),f="popover",h="template",d="trigger",v="class",p="div",g="fade",w="data-content",b="dismissible",y='',T=ce(o[F]),x=ce(s),C=ue(n,".modal"),A=ue(n,"."+$t),k=ue(n,"."+_t);this[h]=o[h]?o[h]:null,this[d]=o[d]?o[d]:a||at,this[U]=o[U]&&o[U]!==g?o[U]:l||g,this[z]=o[z]?o[z]:r||Jt,this[O]=parseInt(o[O]||u)||200,this[b]=!(!o[b]&&"true"!==c),this[F]=T?T:x?x:A?A:k?k:C?C:e[i];var N=this,P=n[bt](I)||null,H=n[bt](w)||null;if(H||this[h]){var W=null,q=0,R=this[z],X=function(t){null!==W&&t[j]===ce(".close",W)&&N.hide()},Y=function(){N[F].removeChild(W),q=null,W=null},G=function(){P=n[bt](I),H=n[bt](w),W=e[xt](p);var t=e[xt](p);if(t[yt](v,"arrow"),W[Ct](t),null!==H&&null===N[h]){if(W[yt]("role","tooltip"),null!==P){var i=e[xt]("h3");i[yt](v,f+"-header"),i[At]=N[b]?P+y:P,W[Ct](i)}var o=e[xt](p);o[yt](v,f+"-body"),o[At]=N[b]&&null===P?H+y:H,W[Ct](o)}else{var a=e[xt](p);a[At]=N[h],W[At]=a.firstChild[At]}N[F][Ct](W),W[jt].display="block",W[yt](v,f+" bs-"+f+"-"+R+" "+N[U])},J=function(){!le(W,Ft)&&oe(W,Ft)},K=function(){ge(n,W,R,N[F])},Q=function(i){ot!=N[d]&&"focus"!=N[d]||!N[b]&&i(n,"blur",N.hide),N[b]&&i(e,ot,X),i(t,ct,N.hide)},V=function(){Q(se),pe.call(n,ft,f)},Z=function(){Q(fe),Y(),pe.call(n,dt,f)};this.toggle=function(){null===W?N.show():N.hide()},this.show=function(){clearTimeout(q),q=setTimeout(function(){null===W&&(R=N[z],G(),K(),J(),pe.call(n,st,f),N[U]?ve(W,V):V())},20)},this.hide=function(){clearTimeout(q),q=setTimeout(function(){W&&null!==W&&le(W,Ft)&&(pe.call(n,ht,f),ae(W,Ft),N[U]?ve(W,Z):Z())},N[O])},m in n||(N[d]===at?(se(n,Qt[0],N.show),N[b]||se(n,Qt[1],N.hide)):ot!=N[d]&&"focus"!=N[d]||se(n,N[d],N.toggle)),n[m]=N}};a[qt]([m,Ae,"["+l+'="popover"]']);var ke=function(e,n){e=ce(e);var i=ce(e[bt](x)),o=e[bt]("data-offset");if(n=n||{},n[j]||i){for(var a,l=this,r=n[j]&&ce(n[j])||i,c=r&&r[kt]("A"),u=parseInt(o||n.offset)||10,s=[],f=[],h=e[Z]=h&&v>a;if(!c&&p)le(n,zt)||(oe(n,zt),l&&!le(l,zt)&&oe(l,zt),pe.call(e,"activate","scrollspy",s[t]));else if(p){if(!p&&!c||c&&p)return}else le(n,zt)&&(ae(n,zt),l&&le(l,zt)&&!re(n[Dt],zt).length&&ae(l,zt))},y=function(){a=d?me().y:e[G];for(var t=0,n=s[Mt];t1&&(t=e[e[Mt]-1]):t=e[0],t},k=function(){return ce(C()[bt]("href"))},I=function(t){var e=t[j][bt]("href");t[It](),c=t[j][bt](l)===i||e&&"#"===e.charAt(0)?t[j]:t[j][Dt],!m[r]&&!le(c,zt)&&p.show()};this.show=function(){c=c||t,f=ce(c[bt]("href")),u=C(),s=k(),m[r]=!0,ae(u,zt),oe(c,zt),b&&(le(t[Dt],"dropdown-menu")?le(b,zt)||oe(b,zt):le(b,zt)&&ae(b,zt)),pe.call(u,ht,i,c),le(s,"fade")?(ae(s,Ft),ve(s,x)):x()},w in t||se(t,ot,I),p[o]&&(g=k()[Dt]),t[w]=p}};a[qt]([w,Ie,"["+l+'="tab"]']);var Ne=function(n,o){n=ce(n),o=o||{};var a=n[bt](S),l=n[bt](D),r=n[bt](M),c=n[bt](B),u="tooltip",s="class",f="title",h="fade",d="div",v=ce(o[F]),p=ce(c),m=ue(n,".modal"),g=ue(n,"."+$t),w=ue(n,"."+_t);this[U]=o[U]&&o[U]!==h?o[U]:a||h,this[z]=o[z]?o[z]:l||Jt,this[O]=parseInt(o[O]||r)||200,this[F]=v?v:p?p:g?g:w?w:m?m:e[i];var y=this,T=0,x=this[z],C=null,A=n[bt](f)||n[bt](I)||n[bt](N);if(A&&""!=A){var k=function(){y[F].removeChild(C),C=null,T=null},L=function(){if(A=n[bt](f)||n[bt](I)||n[bt](N),!A||""==A)return!1;C=e[xt](d),C[yt]("role",u);var t=e[xt](d);t[yt](s,"arrow"),C[Ct](t);var i=e[xt](d);i[yt](s,u+"-inner"),C[Ct](i),i[At]=A,y[F][Ct](C),C[yt](s,u+" bs-"+u+"-"+x+" "+y[U])},E=function(){ge(n,C,x,y[F])},P=function(){!le(C,Ft)&&oe(C,Ft)},H=function(){se(t,ct,y.hide),pe.call(n,ft,u)},W=function(){fe(t,ct,y.hide),k(),pe.call(n,dt,u)};this.show=function(){clearTimeout(T),T=setTimeout(function(){if(null===C){if(x=y[z],0==L())return;E(),P(),pe.call(n,st,u),y[U]?ve(C,H):H()}},20)},this.hide=function(){clearTimeout(T),T=setTimeout(function(){C&&le(C,Ft)&&(pe.call(n,ht,u),ae(C,Ft),y[U]?ve(C,W):W())},y[O])},this.toggle=function(){C?y.hide():y.show()},b in n||(n[yt](N,A),n.removeAttribute(f),se(n,Qt[0],y.show),se(n,Qt[1],y.hide)),n[b]=y}};a[qt]([b,Ne,"["+l+'="tooltip"]']);var Le=function(t,e){for(var n=0,i=e[Mt];n