bootstrap.native
Advanced tools
Comparing version 2.0.25 to 2.0.26
@@ -1,2 +0,2 @@ | ||
// Native Javascript for Bootstrap 4 v2.0.25 | © 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 i=e();t.Alert=i.Alert,t.Button=i.Button,t.Carousel=i.Carousel,t.Collapse=i.Collapse,t.Dropdown=i.Dropdown,t.Modal=i.Modal,t.Popover=i.Popover,t.ScrollSpy=i.ScrollSpy,t.Tab=i.Tab,t.Toast=i.Toast,t.Tooltip=i.Tooltip}}(this,function(){"use strict";var t="undefined"!=typeof global?global:this||window,e=document,i=e.documentElement,o="body",n=t.BSN={},a=n.supports=[],l="delay",r="target",s="animation",c="getAttribute",d="setAttribute",h="parentNode",u="length",f="Transition",p="Webkit",g="style",m="push",v="active",w="left",b="top",T="onmouseleave"in e?["mouseenter","mouseleave"]:["mouseover","mouseout"],y=/\b(top|bottom|left|right)+/,k=0,C=p+f in i[g]||f.toLowerCase()in i[g],x=p+f in i[g]?p.toLowerCase()+f+"End":f.toLowerCase()+"end",A=p+"Duration"in i[g]?p.toLowerCase()+f+"Duration":f.toLowerCase()+"Duration",E=function(t){t.focus?t.focus():t.setActive()},L=function(t,e){t.classList.add(e)},N=function(t,e){t.classList.remove(e)},D=function(t,e){return t.classList.contains(e)},H=function(t,e){return[].slice.call(t.getElementsByClassName(e))},B=function(t,i){var o=i||e;return"object"==typeof t?t:o.querySelector(t)},I=function(t,i){var o=i.charAt(0),n=i.substr(1);if("."===o){for(;t&&t!==e;t=t[h])if(null!==B(i,t[h])&&D(t,n))return t}else if("#"===o)for(;t&&t!==e;t=t[h])if(t.id===n)return t;return!1},M=function(t,e,i){t.addEventListener(e,i,!1)},S=function(t,e,i){t.removeEventListener(e,i,!1)},W=function(t,e,i){M(t,e,function o(n){i(n),S(t,e,o)})},R=function(e){var i=C?t.getComputedStyle(e)[A]:0;return i=parseFloat(i),(i="number"!=typeof i||isNaN(i)?0:1e3*i)+17},P=function(t,e){var i=0,o=R(t);C&&W(t,x,function(t){e(t),i=1}),setTimeout(function(){!i&&e()},o+17)},z=function(t,e,i){var o=new CustomEvent(t+".bs."+e);o.relatedTarget=i,this.dispatchEvent(o)},O=function(){return{y:t.pageYOffset||i.scrollTop,x:t.pageXOffset||i.scrollLeft}},j=function(t,n,a,l){var r,s,c,d,h,u,f={w:n.offsetWidth,h:n.offsetHeight},p=i.clientWidth||e[o].clientWidth,m=i.clientHeight||e[o].clientHeight,v=t.getBoundingClientRect(),T=l===e[o]?O():{x:l.offsetLeft+l.scrollLeft,y:l.offsetTop+l.scrollTop},k={w:v.right-v[w],h:v.bottom-v[b]},C=D(n,"popover"),x=B(".arrow",n),A=v[b]+k.h/2-f.h/2<0,E=v[w]+k.w/2-f.w/2<0,L=v[w]+f.w/2+k.w/2>=p,N=v[b]+f.h/2+k.h/2>=m,H=v[b]-f.h<0,I=v[w]-f.w<0,M=v[b]+f.h+k.h>=m,S=v[w]+f.w+k.w>=p;a=(a===w||"right"===a)&&I&&S?b:a,a=a===b&&H?"bottom":a,a="bottom"===a&&M?b:a,a=a===w&&I?"right":a,a="right"===a&&S?w:a,-1===n.className.indexOf(a)&&(n.className=n.className.replace(y,a)),h=x.offsetWidth,u=x.offsetHeight,a===w||"right"===a?(s=a===w?v[w]+T.x-f.w-(C?h:0):v[w]+T.x+k.w,A?(r=v[b]+T.y,c=k.h/2-h):N?(r=v[b]+T.y-f.h+k.h,c=f.h-k.h/2-h):(r=v[b]+T.y-f.h/2+k.h/2,c=f.h/2-(C?.9*u:u/2))):a!==b&&"bottom"!==a||(r=a===b?v[b]+T.y-f.h-(C?u:0):v[b]+T.y+k.h,E?(s=0,d=v[w]+k.w/2-h):L?(s=p-1.01*f.w,d=f.w-(p-v[w])+k.w/2-h/2):(s=v[w]+T.x-f.w/2+k.w/2,d=f.w/2-h/2)),n[g][b]=r+"px",n[g][w]=s+"px",c&&(x[g][b]=c+"px"),d&&(x[g][w]=d+"px")};n.version="2.0.25";var U=function(t){t=B(t);var e=this,i=I(t,".alert"),o=function(){D(i,"fade")?P(i,a):a()},n=function(o){i=I(o[r],".alert"),(t=B('[data-dismiss="alert"]',i))&&i&&(t===o[r]||t.contains(o[r]))&&e.close()},a=function(){z.call(i,"closed","alert"),S(t,"click",n),i[h].removeChild(i)};this.close=function(){i&&t&&D(i,"show")&&(z.call(i,"close","alert"),N(i,"show"),i&&o())},"Alert"in t||M(t,"click",n),t.Alert=e};a[m](["Alert",U,'[data-dismiss="alert"]']);var q=function(t){t=B(t);var i=!1,o="checked",n=function(t){32===(t.which||t.keyCode)&&t[r]===e.activeElement&&l(t)},a=function(t){32===(t.which||t.keyCode)&&t.preventDefault()},l=function(e){var n="LABEL"===e[r].tagName?e[r]:"LABEL"===e[r][h].tagName?e[r][h]:null;if(n){var a=e[r],l=H(a[h],"btn"),s=n.getElementsByTagName("INPUT")[0];if(s){if("checkbox"===s.type&&(s[o]?(N(n,v),s[c](o),s.removeAttribute(o),s[o]=!1):(L(n,v),s[c](o),s[d](o,o),s[o]=!0),i||(i=!0,z.call(s,"change","button"),z.call(t,"change","button"))),"radio"===s.type&&!i&&!s[o]){L(n,v),s[d](o,o),s[o]=!0,z.call(s,"change","button"),z.call(t,"change","button"),i=!0;for(var f=0,p=l[u];f<p;f++){var g=l[f],m=g.getElementsByTagName("INPUT")[0];g!==n&&D(g,v)&&(N(g,v),m.removeAttribute(o),m[o]=!1,z.call(m,"change","button"))}}setTimeout(function(){i=!1},50)}}};"Button"in t||(M(t,"click",l),B("[tabindex]",t)&&M(t,"keyup",n),M(t,"keydown",a));for(var s=H(t,"btn"),f=s[u],p=0;p<f;p++)!D(s[p],v)&&B("input:checked",s[p])&&L(s[p],v);t.Button=this};a[m](["Button",q,'[data-toggle="buttons"]']);var F=function(o,n){o=B(o),n=n||{};var a=o[c]("data-interval"),l=n.interval,s="false"===a?0:parseInt(a),d="hover"===o[c]("data-pause")||!1,h="true"===o[c]("data-keyboard")||!1;this.keyboard=!0===n.keyboard||h,this.pause=!("hover"!==n.pause&&!d)&&"hover",this.interval="number"==typeof l?l:!1===l||0===s||!1===s?0:isNaN(s)?5e3:s;var f=this,p=o.index=0,g=o.timer=0,m=!1,y=H(o,"carousel-item"),k=y[u],x=this.direction=w,A=H(o,"carousel-control-prev")[0],E=H(o,"carousel-control-next")[0],I=B(".carousel-indicators",o),S=I&&I.getElementsByTagName("LI")||[];if(!(k<2)){var W=function(){!1===f.interval||D(o,"paused")||(L(o,"paused"),!m&&(clearInterval(g),g=null))},R=function(){!1!==f.interval&&D(o,"paused")&&(N(o,"paused"),!m&&(clearInterval(g),g=null),!m&&f.cycle())},O=function(t){if(t.preventDefault(),!m){var e=t[r];if(!e||D(e,v)||!e[c]("data-slide-to"))return!1;p=parseInt(e[c]("data-slide-to"),10),f.slideTo(p)}},j=function(t){if(t.preventDefault(),!m){var e=t.currentTarget||t.srcElement;e===E?p++:e===A&&p--,f.slideTo(p)}},U=function(t){if(!m){switch(t.which){case 39:p++;break;case 37:p--;break;default:return}f.slideTo(p)}},q=function(){var e=o.getBoundingClientRect(),n=t.innerHeight||i.clientHeight;return e[b]<=n&&e.bottom>=0},F=function(t){for(var e=0,i=S[u];e<i;e++)N(S[e],v);S[t]&&L(S[t],v)};this.cycle=function(){g&&(clearInterval(g),g=null),g=setInterval(function(){q()&&(p++,f.slideTo(p))},this.interval)},this.slideTo=function(t){if(!m){var i,n=this.getActiveIndex();n!==t&&(n<t||0===n&&t===k-1?x=f.direction=w:(n>t||n===k-1&&0===t)&&(x=f.direction="right"),t<0?t=k-1:t>=k&&(t=0),p=t,i=x===w?"next":"prev",z.call(o,"slide","carousel",y[t]),m=!0,clearInterval(g),g=null,F(t),C&&D(o,"slide")?(L(y[t],"carousel-item-"+i),y[t].offsetWidth,L(y[t],"carousel-item-"+x),L(y[n],"carousel-item-"+x),P(y[t],function(a){var l=a&&a[r]!==y[t]?1e3*a.elapsedTime+100:20;m&&setTimeout(function(){m=!1,L(y[t],v),N(y[n],v),N(y[t],"carousel-item-"+i),N(y[t],"carousel-item-"+x),N(y[n],"carousel-item-"+x),z.call(o,"slid","carousel",y[t]),e.hidden||!f.interval||D(o,"paused")||f.cycle()},l)})):(L(y[t],v),y[t].offsetWidth,N(y[n],v),setTimeout(function(){m=!1,f.interval&&!D(o,"paused")&&f.cycle(),z.call(o,"slid","carousel",y[t])},100)))}},this.getActiveIndex=function(){return y.indexOf(H(o,"carousel-item active")[0])||0},"Carousel"in o||(f.pause&&f.interval&&(M(o,T[0],W),M(o,T[1],R),M(o,"touchstart",W),M(o,"touchend",R)),E&&M(E,"click",j),A&&M(A,"click",j),I&&M(I,"click",O),!0===f.keyboard&&M(t,"keydown",U)),f.getActiveIndex()<0&&(y[u]&&L(y[0],v),S[u]&&F(0)),f.interval&&f.cycle(),o.Carousel=f}};a[m](["Carousel",F,'[data-ride="carousel"]']);var X=function(t,e){t=B(t),e=e||{};var i,o,n=null,a=null,l=this,r=t[c]("data-parent"),s=function(t,e){z.call(t,"show","collapse"),t.isAnimating=!0,L(t,"collapsing"),N(t,"collapse"),t[g].height=t.scrollHeight+"px",P(t,function(){t.isAnimating=!1,t[d]("aria-expanded","true"),e[d]("aria-expanded","true"),N(t,"collapsing"),L(t,"collapse"),L(t,"show"),t[g].height="",z.call(t,"shown","collapse")})},h=function(t,e){z.call(t,"hide","collapse"),t.isAnimating=!0,t[g].height=t.scrollHeight+"px",N(t,"collapse"),N(t,"show"),L(t,"collapsing"),t.offsetWidth,t[g].height="0px",P(t,function(){t.isAnimating=!1,t[d]("aria-expanded","false"),e[d]("aria-expanded","false"),N(t,"collapsing"),L(t,"collapse"),t[g].height="",z.call(t,"hidden","collapse")})};this.toggle=function(t){t.preventDefault(),D(a,"show")?l.hide():l.show()},this.hide=function(){a.isAnimating||(h(a,t),L(t,"collapsed"))},this.show=function(){n&&(i=B(".collapse.show",n),o=i&&(B('[data-toggle="collapse"][data-target="#'+i.id+'"]',n)||B('[data-toggle="collapse"][href="#'+i.id+'"]',n))),(!a.isAnimating||i&&!i.isAnimating)&&(o&&i!==a&&(h(i,o),L(o,"collapsed")),s(a,t),N(t,"collapsed"))},"Collapse"in t||M(t,"click",l.toggle),a=function(){var e=t.href&&t[c]("href"),i=t[c]("data-target"),o=e||i&&"#"===i.charAt(0)&&i;return o&&B(o)}(),a.isAnimating=!1,n=B(e.parent)||r&&I(t,r),t.Collapse=l};a[m](["Collapse",X,'[data-toggle="collapse"]']);var Y=function(t,i){t=B(t),this.persist=!0===i||"true"===t[c]("data-persist")||!1;var o=this,n=t[h],a=null,l=B(".dropdown-menu",n),s=function(){for(var t=l.children,e=[],i=0;i<t[u];i++)t[i].children[u]&&"A"===t[i].children[0].tagName&&e[m](t[i].children[0]),"A"===t[i].tagName&&e[m](t[i]);return e}(),f=function(t){(t.href&&"#"===t.href.slice(-1)||t[h]&&t[h].href&&"#"===t[h].href.slice(-1))&&this.preventDefault()},p=function(){var i=t.open?M:S;i(e,"click",g),i(e,"keydown",w),i(e,"keyup",b)},g=function(e){var i=e[r],n=i&&("Dropdown"in i||"Dropdown"in i[h]);(i!==l&&!l.contains(i)||!o.persist&&!n)&&(a=i===t||t.contains(i)?t:null,y(),f.call(e,i))},v=function(e){a=t,T(),f.call(e,e[r])},w=function(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()},b=function(i){var n=i.which||i.keyCode,r=e.activeElement,c=s.indexOf(r),d=r===t,f=l.contains(r),p=r[h]===l||r[h][h]===l;(p||d)&&(c=d?0:38===n?c>1?c-1:0:40===n&&c<s[u]-1?c+1:c,s[c]&&E(s[c])),(s[u]&&p||!s[u]&&(f||d)||!f)&&t.open&&27===n&&(o.toggle(),a=null)},T=function(){z.call(n,"show","dropdown",a),L(l,"show"),L(n,"show"),t[d]("aria-expanded",!0),z.call(n,"shown","dropdown",a),t.open=!0,S(t,"click",v),setTimeout(function(){E(l.getElementsByTagName("INPUT")[0]||t),p()},1)},y=function(){z.call(n,"hide","dropdown",a),N(l,"show"),N(n,"show"),t[d]("aria-expanded",!1),z.call(n,"hidden","dropdown",a),t.open=!1,p(),E(t),setTimeout(function(){M(t,"click",v)},1)};t.open=!1,this.toggle=function(){D(n,"show")&&t.open?y():T()},"Dropdown"in t||(!1 in l&&l[d]("tabindex","0"),M(t,"click",v)),t.Dropdown=o};a[m](["Dropdown",Y,'[data-toggle="dropdown"]']);var G=function(n,a){n=B(n);var l=n[c]("data-target")||n[c]("href"),s=B(l),f=D(n,"modal")?n:s;if(D(n,"modal")&&(n=null),f){a=a||{},this.keyboard=!1!==a.keyboard&&"false"!==f[c]("data-keyboard"),this.backdrop="static"!==a.backdrop&&"static"!==f[c]("data-backdrop")||"static",this.backdrop=!1!==a.backdrop&&"false"!==f[c]("data-backdrop")&&this.backdrop,this.content=a.content;var p,m,v,b,T=this,y=null,x=H(i,"fixed-top").concat(H(i,"fixed-bottom")),A=function(){var e=i.getBoundingClientRect();return t.innerWidth||e.right-Math.abs(e[w])},I=function(){var i,n=t.getComputedStyle(e[o]),a=parseInt(n.paddingRight,10);if(p&&(e[o][g].paddingRight=a+m+"px",f[g].paddingRight=m+"px",x[u]))for(var l=0;l<x[u];l++)i=t.getComputedStyle(x[l]).paddingRight,x[l][g].paddingRight=parseInt(i)+m+"px"},W=function(){if(e[o][g].paddingRight="",f[g].paddingRight="",x[u])for(var t=0;t<x[u];t++)x[t][g].paddingRight=""},O=function(){var t,i=e.createElement("div");return i.className="modal-scrollbar-measure",e[o].appendChild(i),t=i.offsetWidth-i.clientWidth,e[o].removeChild(i),t},j=function(){p=e[o].clientWidth<A(),m=O()},U=function(){k=1;var t=e.createElement("div");null===(v=B(".modal-backdrop"))&&(t[d]("class","modal-backdrop fade"),v=t,e[o].appendChild(v))},q=function(){v=B(".modal-backdrop"),v&&null!==v&&"object"==typeof v&&(k=0,e[o].removeChild(v),v=null),z.call(f,"hidden","modal")},F=function(){D(f,"show")?M(e,"keydown",Q):S(e,"keydown",Q)},X=function(){D(f,"show")?M(t,"resize",T.update):S(t,"resize",T.update)},Y=function(){D(f,"show")?M(f,"click",V):S(f,"click",V)},G=function(){X(),Y(),F(),E(f),z.call(f,"shown","modal",y)},J=function(){f[g].display="",n&&E(n),function(){H(e,"modal show")[0]||(W(),N(e[o],"modal-open"),v&&D(v,"fade")?(N(v,"show"),P(v,q)):q(),X(),Y(),F())}()},K=function(t){var e=t[r];(e=e.hasAttribute("data-target")||e.hasAttribute("href")?e:e[h])!==n||D(f,"show")||(f.modalTrigger=n,y=n,T.show(),t.preventDefault())},Q=function(t){T.keyboard&&27==t.which&&D(f,"show")&&T.hide()},V=function(t){var e=t[r];D(f,"show")&&("modal"===e[h][c]("data-dismiss")||"modal"===e[c]("data-dismiss")||e===f&&"static"!==T.backdrop)&&(T.hide(),y=null,t.preventDefault())};this.toggle=function(){D(f,"show")?this.hide():this.show()},this.show=function(){z.call(f,"show","modal",y);var t=H(e,"modal show")[0];t&&t!==f&&("modalTrigger"in t&&t.modalTrigger.Modal.hide(),"Modal"in t&&t.Modal.hide()),this.backdrop&&!k&&U(),v&&k&&!D(v,"show")&&(v.offsetWidth,b=R(v),L(v,"show")),setTimeout(function(){f[g].display="block",j(),I(),L(e[o],"modal-open"),L(f,"show"),f[d]("aria-hidden",!1),D(f,"fade")?P(f,G):G()},C&&v?b:0)},this.hide=function(){z.call(f,"hide","modal"),v=B(".modal-backdrop"),b=v&&R(v),N(f,"show"),f[d]("aria-hidden",!0),setTimeout(function(){D(f,"fade")?P(f,J):J()},C&&v?b:0)},this.setContent=function(t){B(".modal-content",f).innerHTML=t},this.update=function(){D(f,"show")&&(j(),I())},!n||"Modal"in n||M(n,"click",K),T.content&&T.setContent(T.content),n?(n.Modal=T,f.modalTrigger=n):f.Modal=T}};a[m](["Modal",G,'[data-toggle="modal"]']);var J=function(i,n){i=B(i),n=n||{};var a=i[c]("data-trigger"),h=i[c]("data-animation"),u=i[c]("data-placement"),f=i[c]("data-dismissible"),p=i[c]("data-delay"),m=i[c]("data-container"),v='<button type="button" class="close">×</button>',w=B(n.container),y=B(m),k=I(i,".modal"),C=I(i,".fixed-top"),x=I(i,".fixed-bottom");this.template=n.template?n.template:null,this.trigger=n.trigger?n.trigger:a||"hover",this[s]=n[s]&&"fade"!==n[s]?n[s]:h||"fade",this.placement=n.placement?n.placement:u||b,this[l]=parseInt(n[l]||p)||200,this.dismissible=!(!n.dismissible&&"true"!==f),this.container=w||(y||(C||(x||(k||e[o]))));var A=this,E=i[c]("data-title")||null,H=i[c]("data-content")||null;if(H||this.template){var W=null,R=0,O=this.placement,U=function(t){null!==W&&t[r]===B(".close",W)&&A.hide()},q=function(){A.container.removeChild(W),R=null,W=null},F=function(){E=i[c]("data-title"),H=i[c]("data-content"),W=e.createElement("div");var t=e.createElement("div");if(t[d]("class","arrow"),W.appendChild(t),null!==H&&null===A.template){if(W[d]("role","tooltip"),null!==E){var o=e.createElement("h3");o[d]("class","popover-header"),o.innerHTML=A.dismissible?E+v:E,W.appendChild(o)}var n=e.createElement("div");n[d]("class","popover-body"),n.innerHTML=A.dismissible&&null===E?H+v:H,W.appendChild(n)}else{var a=e.createElement("div");a.innerHTML=A.template,W.innerHTML=a.firstChild.innerHTML}A.container.appendChild(W),W[g].display="block",W[d]("class","popover bs-popover-"+O+" "+A[s])},X=function(){!D(W,"show")&&L(W,"show")},Y=function(){j(i,W,O,A.container)},G=function(o){"click"!=A.trigger&&"focus"!=A.trigger||!A.dismissible&&o(i,"blur",A.hide),A.dismissible&&o(e,"click",U),o(t,"resize",A.hide)},J=function(){G(M),z.call(i,"shown","popover")},K=function(){G(S),q(),z.call(i,"hidden","popover")};this.toggle=function(){null===W?A.show():A.hide()},this.show=function(){clearTimeout(R),R=setTimeout(function(){null===W&&(O=A.placement,F(),Y(),X(),z.call(i,"show","popover"),A[s]?P(W,J):J())},20)},this.hide=function(){clearTimeout(R),R=setTimeout(function(){W&&null!==W&&D(W,"show")&&(z.call(i,"hide","popover"),N(W,"show"),A[s]?P(W,K):K())},A[l])},"Popover"in i||("hover"===A.trigger?(M(i,T[0],A.show),A.dismissible||M(i,T[1],A.hide)):"click"!=A.trigger&&"focus"!=A.trigger||M(i,A.trigger,A.toggle)),i.Popover=A}};a[m](["Popover",J,'[data-toggle="popover"]']);var K=function(e,i){e=B(e);var o=B(e[c]("data-target")),n=e[c]("data-offset");if(i=i||{},i[r]||o){for(var a,l=this,s=i[r]&&B(i[r])||o,d=s&&s.getElementsByTagName("A"),f=parseInt(n||i.offset)||10,p=[],g=[],w=e.offsetHeight<e.scrollHeight?e:t,T=w===t,y=0,k=d[u];y<k;y++){var C=d[y][c]("href"),x=C&&"#"===C.charAt(0)&&"#"!==C.slice(-1)&&B(C);x&&(p[m](d[y]),g[m](x))}var A=function(t){var i=p[t],o=g[t],n=i[h][h],l=D(n,"dropdown")&&n.getElementsByTagName("A")[0],r=T&&o.getBoundingClientRect(),s=D(i,v)||!1,c=(T?r[b]+a:o.offsetTop)-f,d=T?r.bottom+a-f:g[t+1]?g[t+1].offsetTop-f:e.scrollHeight,u=a>=c&&d>a;if(!s&&u)D(i,v)||(L(i,v),l&&!D(l,v)&&L(l,v),z.call(e,"activate","scrollspy",p[t]));else if(u){if(!u&&!s||s&&u)return}else D(i,v)&&(N(i,v),l&&D(l,v)&&!H(i[h],v).length&&N(l,v))},E=function(){a=T?O().y:e.scrollTop;for(var t=0,i=p[u];t<i;t++)A(t)};this.refresh=function(){E()},"ScrollSpy"in e||(M(w,"scroll",l.refresh),M(t,"resize",l.refresh)),l.refresh(),e.ScrollSpy=l}};a[m](["ScrollSpy",K,'[data-spy="scroll"]']);var Q=function(t,e){t=B(t);var i=t[c]("data-height");e=e||{},this.height=!!C&&(e.height||"true"===i);var o,n,a,l,r,s,f,p=this,m=I(t,".nav"),b=!1,T=m&&B(".dropdown-toggle",m),y=function(){b[g].height="",N(b,"collapsing"),m.isAnimating=!1},k=function(){b?s?y():setTimeout(function(){b[g].height=f+"px",b.offsetWidth,P(b,y)},50):m.isAnimating=!1,z.call(o,"shown","tab",n)},x=function(){b&&(a[g].float=w,l[g].float=w,r=a.scrollHeight),L(l,v),z.call(o,"show","tab",n),N(a,v),z.call(n,"hidden","tab",o),b&&(f=l.scrollHeight,s=f===r,L(b,"collapsing"),b[g].height=r+"px",b.offsetHeight,a[g].float="",l[g].float=""),D(l,"fade")?setTimeout(function(){L(l,"show"),P(l,k)},20):k()};if(m){m.isAnimating=!1;var A=function(){var t,e=H(m,v);return 1!==e[u]||D(e[0][h],"dropdown")?e[u]>1&&(t=e[e[u]-1]):t=e[0],t},E=function(){return B(A()[c]("href"))},S=function(t){t.preventDefault(),o=t.currentTarget,!m.isAnimating&&!D(o,v)&&p.show()};this.show=function(){o=o||t,l=B(o[c]("href")),n=A(),a=E(),m.isAnimating=!0,N(n,v),n[d]("aria-selected","false"),L(o,v),o[d]("aria-selected","true"),T&&(D(t[h],"dropdown-menu")?D(T,v)||L(T,v):D(T,v)&&N(T,v)),z.call(n,"hide","tab",o),D(a,"fade")?(N(a,"show"),P(a,x)):x()},"Tab"in t||M(t,"click",S),p.height&&(b=E()[h]),t.Tab=p}};a[m](["Tab",Q,'[data-toggle="tab"]']);var V=function(t,e){t=B(t),e=e||{};var i=t[c]("data-animation"),o=t[c]("data-autohide"),n=t[c]("data-delay");this.animation=!1===e.animation||"false"===i?0:1,this.autohide=!1===e.autohide||"false"===o?0:1,this[l]=parseInt(e[l]||n)||500;var a=this,r=0,s=I(t,".toast"),d=function(){N(s,"showing"),L(s,"show"),z.call(s,"shown","toast"),a.autohide&&a.hide()},h=function(){L(s,"hide"),z.call(s,"hidden","toast")},u=function(){N(s,"show"),a.animation?P(s,h):h()},f=function(){clearTimeout(r),r=null,L(s,"hide"),S(t,"click",a.hide),t.Toast=null,t=null,s=null};this.show=function(){s&&(z.call(s,"show","toast"),a.animation&&L(s,"fade"),N(s,"hide"),L(s,"showing"),a.animation?P(s,d):d())},this.hide=function(t){s&&D(s,"show")&&(z.call(s,"hide","toast"),t?u():r=setTimeout(u,a[l]))},this.dispose=function(){s&&D(s,"show")&&(N(s,"show"),a.animation?P(s,f):f())},"Toast"in t||M(t,"click",a.hide),t.Toast=a};a[m](["Toast",V,'[data-dismiss="toast"]']);var Z=function(i,n){i=B(i),n=n||{};var a=i[c]("data-animation"),r=i[c]("data-placement"),h=i[c]("data-delay"),u=i[c]("data-container"),f=B(n.container),p=B(u),g=I(i,".modal"),m=I(i,".fixed-top"),v=I(i,".fixed-bottom");this[s]=n[s]&&"fade"!==n[s]?n[s]:a||"fade",this.placement=n.placement?n.placement:r||b,this[l]=parseInt(n[l]||h)||200,this.container=f||(p||(m||(v||(g||e[o]))));var w=this,y=0,k=this.placement,C=null,x=i[c]("title")||i[c]("data-title")||i[c]("data-original-title");if(x&&""!=x){var A=function(){w.container.removeChild(C),C=null,y=null},E=function(){if(!(x=i[c]("title")||i[c]("data-title")||i[c]("data-original-title"))||""==x)return!1;C=e.createElement("div"),C[d]("role","tooltip");var t=e.createElement("div");t[d]("class","arrow"),C.appendChild(t);var o=e.createElement("div");o[d]("class","tooltip-inner"),C.appendChild(o),o.innerHTML=x,w.container.appendChild(C),C[d]("class","tooltip bs-tooltip-"+k+" "+w[s])},H=function(){j(i,C,k,w.container)},W=function(){!D(C,"show")&&L(C,"show")},R=function(){M(t,"resize",w.hide),z.call(i,"shown","tooltip")},O=function(){S(t,"resize",w.hide),A(),z.call(i,"hidden","tooltip")};this.show=function(){clearTimeout(y),y=setTimeout(function(){if(null===C){if(k=w.placement,0==E())return;H(),W(),z.call(i,"show","tooltip"),w[s]?P(C,R):R()}},20)},this.hide=function(){clearTimeout(y),y=setTimeout(function(){C&&D(C,"show")&&(z.call(i,"hide","tooltip"),N(C,"show"),w[s]?P(C,O):O())},w[l])},this.toggle=function(){C?w.hide():w.show()},"Tooltip"in i||(i[d]("data-original-title",x),i.removeAttribute("title"),M(i,T[0],w.show),M(i,T[1],w.hide)),i.Tooltip=w}};a[m](["Tooltip",Z,'[data-toggle="tooltip"]']);var $=function(t,e){for(var i=0,o=e[u];i<o;i++)new t(e[i])},_=n.initCallback=function(t){t=t||e;for(var i=0,o=a[u];i<o;i++)$(a[i][1],t.querySelectorAll(a[i][2]))};return e[o]?_():M(e,"DOMContentLoaded",function(){_()}),{Alert:U,Button:q,Carousel:F,Collapse:X,Dropdown:Y,Modal:G,Popover:J,ScrollSpy:K,Tab:Q,Toast:V,Tooltip:Z}}); | ||
// Native Javascript for Bootstrap 4 v2.0.26 | © 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 i=e();t.Alert=i.Alert,t.Button=i.Button,t.Carousel=i.Carousel,t.Collapse=i.Collapse,t.Dropdown=i.Dropdown,t.Modal=i.Modal,t.Popover=i.Popover,t.ScrollSpy=i.ScrollSpy,t.Tab=i.Tab,t.Toast=i.Toast,t.Tooltip=i.Tooltip}}(this,function(){"use strict";var t="undefined"!=typeof global?global:this||window,e=document,i=e.documentElement,n="body",o=t.BSN={},a=o.supports=[],l="delay",r="target",s="animation",c="getAttribute",d="setAttribute",u="parentNode",h="length",f="Transition",p="Webkit",g="style",m="push",v="active",w="left",b="top",T="onmouseleave"in e?["mouseenter","mouseleave"]:["mouseover","mouseout"],y=/\b(top|bottom|left|right)+/,k=0,C=p+f in i[g]||f.toLowerCase()in i[g],x=p+f in i[g]?p.toLowerCase()+f+"End":f.toLowerCase()+"end",A=p+"Duration"in i[g]?p.toLowerCase()+f+"Duration":f.toLowerCase()+"Duration",E={start:"touchstart",end:"touchend",move:"touchmove"},L=function(t){t.focus?t.focus():t.setActive()},N=function(t,e){t.classList.add(e)},D=function(t,e){t.classList.remove(e)},I=function(t,e){return t.classList.contains(e)},H=function(t,e){return[].slice.call(t.getElementsByClassName(e))},B=function(t,i){var n=i||e;return"object"==typeof t?t:n.querySelector(t)},M=function(t,i){var n=i.charAt(0),o=i.substr(1);if("."===n){for(;t&&t!==e;t=t[u])if(null!==B(i,t[u])&&I(t,o))return t}else if("#"===n)for(;t&&t!==e;t=t[u])if(t.id===o)return t;return!1},S=function(t,e,i){t.addEventListener(e,i,!1)},W=function(t,e,i){t.removeEventListener(e,i,!1)},R=function(t,e,i){S(t,e,function n(o){i(o),W(t,e,n)})},P=function(e){var i=C?t.getComputedStyle(e)[A]:0;return i=parseFloat(i),i="number"!=typeof i||isNaN(i)?0:1e3*i},z=function(t,e){var i=0;P(t)?R(t,x,function(t){!i&&e(t),i=1}):setTimeout(function(){!i&&e(),i=1},17)},O=function(t,e,i){var n=new CustomEvent(t+".bs."+e);n.relatedTarget=i,this.dispatchEvent(n)},X=function(){return{y:t.pageYOffset||i.scrollTop,x:t.pageXOffset||i.scrollLeft}},j=function(t,o,a,l){var r,s,c,d,u,h,f={w:o.offsetWidth,h:o.offsetHeight},p=i.clientWidth||e[n].clientWidth,m=i.clientHeight||e[n].clientHeight,v=t.getBoundingClientRect(),T=l===e[n]?X():{x:l.offsetLeft+l.scrollLeft,y:l.offsetTop+l.scrollTop},k={w:v.right-v[w],h:v.bottom-v[b]},C=I(o,"popover"),x=B(".arrow",o),A=v[b]+k.h/2-f.h/2<0,E=v[w]+k.w/2-f.w/2<0,L=v[w]+f.w/2+k.w/2>=p,N=v[b]+f.h/2+k.h/2>=m,D=v[b]-f.h<0,H=v[w]-f.w<0,M=v[b]+f.h+k.h>=m,S=v[w]+f.w+k.w>=p;a=(a===w||"right"===a)&&H&&S?b:a,a=a===b&&D?"bottom":a,a="bottom"===a&&M?b:a,a=a===w&&H?"right":a,a="right"===a&&S?w:a,-1===o.className.indexOf(a)&&(o.className=o.className.replace(y,a)),u=x.offsetWidth,h=x.offsetHeight,a===w||"right"===a?(s=a===w?v[w]+T.x-f.w-(C?u:0):v[w]+T.x+k.w,A?(r=v[b]+T.y,c=k.h/2-u):N?(r=v[b]+T.y-f.h+k.h,c=f.h-k.h/2-u):(r=v[b]+T.y-f.h/2+k.h/2,c=f.h/2-(C?.9*h:h/2))):a!==b&&"bottom"!==a||(r=a===b?v[b]+T.y-f.h-(C?h:0):v[b]+T.y+k.h,E?(s=0,d=v[w]+k.w/2-u):L?(s=p-1.01*f.w,d=f.w-(p-v[w])+k.w/2-u/2):(s=v[w]+T.x-f.w/2+k.w/2,d=f.w/2-u/2)),o[g][b]=r+"px",o[g][w]=s+"px",c&&(x[g][b]=c+"px"),d&&(x[g][w]=d+"px")};o.version="2.0.26";var U=function(t){t=B(t);var e=this,i=M(t,".alert"),n=function(){I(i,"fade")?z(i,a):a()},o=function(n){i=M(n[r],".alert"),(t=B('[data-dismiss="alert"]',i))&&i&&(t===n[r]||t.contains(n[r]))&&e.close()},a=function(){O.call(i,"closed","alert"),W(t,"click",o),i[u].removeChild(i)};this.close=function(){i&&t&&I(i,"show")&&(O.call(i,"close","alert"),D(i,"show"),i&&n())},"Alert"in t||S(t,"click",o),t.Alert=e};a[m](["Alert",U,'[data-dismiss="alert"]']);var q=function(t){t=B(t);var i=!1,n="checked",o=function(t){32===(t.which||t.keyCode)&&t[r]===e.activeElement&&l(t)},a=function(t){32===(t.which||t.keyCode)&&t.preventDefault()},l=function(e){var o="LABEL"===e[r].tagName?e[r]:"LABEL"===e[r][u].tagName?e[r][u]:null;if(o){var a=e[r],l=H(a[u],"btn"),s=o.getElementsByTagName("INPUT")[0];if(s){if("checkbox"===s.type&&(s[n]?(D(o,v),s[c](n),s.removeAttribute(n),s[n]=!1):(N(o,v),s[c](n),s[d](n,n),s[n]=!0),i||(i=!0,O.call(s,"change","button"),O.call(t,"change","button"))),"radio"===s.type&&!i&&!s[n]){N(o,v),s[d](n,n),s[n]=!0,O.call(s,"change","button"),O.call(t,"change","button"),i=!0;for(var f=0,p=l[h];f<p;f++){var g=l[f],m=g.getElementsByTagName("INPUT")[0];g!==o&&I(g,v)&&(D(g,v),m.removeAttribute(n),m[n]=!1,O.call(m,"change","button"))}}setTimeout(function(){i=!1},50)}}};"Button"in t||(S(t,"click",l),B("[tabindex]",t)&&S(t,"keyup",o),S(t,"keydown",a));for(var s=H(t,"btn"),f=s[h],p=0;p<f;p++)!I(s[p],v)&&B("input:checked",s[p])&&N(s[p],v);t.Button=this};a[m](["Button",q,'[data-toggle="buttons"]']);var F=function(n,o){n=B(n),o=o||{};var a=n[c]("data-interval"),l=o.interval,s="false"===a?0:parseInt(a),d="hover"===n[c]("data-pause")||!1,u="true"===n[c]("data-keyboard")||!1;this.keyboard=!0===o.keyboard||u,this.pause=!("hover"!==o.pause&&!d)&&"hover",this.interval="number"==typeof l?l:!1===l||0===s||!1===s?0:isNaN(s)?5e3:s;var f=this,p=n.index=0,g=n.timer=0,m=!1,y=!1,k=null,x=null,A=null,L=H(n,"carousel-item"),M=L[h],R=this.direction=w,P=H(n,"carousel-control-prev")[0],X=H(n,"carousel-control-next")[0],j=B(".carousel-indicators",n),U=j&&j.getElementsByTagName("LI")||[];if(!(M<2)){var q=function(){!1===f.interval||I(n,"paused")||(N(n,"paused"),!m&&(clearInterval(g),g=null))},F=function(){!1!==f.interval&&I(n,"paused")&&(D(n,"paused"),!m&&(clearInterval(g),g=null),!m&&f.cycle())},Y=function(t){if(t.preventDefault(),!m){var e=t[r];if(!e||I(e,v)||!e[c]("data-slide-to"))return!1;p=parseInt(e[c]("data-slide-to"),10),f.slideTo(p)}},G=function(t){if(t.preventDefault(),!m){var e=t.currentTarget||t.srcElement;e===X?p++:e===P&&p--,f.slideTo(p)}},J=function(t){if(!m){switch(t.which){case 39:p++;break;case 37:p--;break;default:return}f.slideTo(p)}},K=function(t){t(n,E.move,V),t(n,E.end,Z)},Q=function(t){y||(k=parseInt(t.touches[0].pageX),n.contains(t[r])&&(y=!0,K(S)))},V=function(t){return y?(x=parseInt(t.touches[0].pageX),"touchmove"===t.type&&t.touches[h]>1?(t.preventDefault(),!1):void 0):void t.preventDefault()},Z=function(t){if(y&&!m&&(A=x||parseInt(t.touches[0].pageX),y)){if((!n.contains(t[r])||!n.contains(t.relatedTarget))&&Math.abs(k-A)<75)return!1;x<k?p++:x>k&&p--,y=!1,f.slideTo(p),K(W)}},$=function(){var e=n.getBoundingClientRect(),o=t.innerHeight||i.clientHeight;return e[b]<=o&&e.bottom>=0},_=function(t){for(var e=0,i=U[h];e<i;e++)D(U[e],v);U[t]&&N(U[t],v)};this.cycle=function(){g&&(clearInterval(g),g=null),g=setInterval(function(){$()&&(p++,f.slideTo(p))},this.interval)},this.slideTo=function(t){if(!m){var i,o=this.getActiveIndex();o!==t&&(o<t||0===o&&t===M-1?R=f.direction=w:(o>t||o===M-1&&0===t)&&(R=f.direction="right"),t<0?t=M-1:t>=M&&(t=0),p=t,i=R===w?"next":"prev",O.call(n,"slide","carousel",L[t]),m=!0,clearInterval(g),g=null,_(t),C&&I(n,"slide")?(N(L[t],"carousel-item-"+i),L[t].offsetWidth,N(L[t],"carousel-item-"+R),N(L[o],"carousel-item-"+R),z(L[t],function(a){var l=a&&a[r]!==L[t]?1e3*a.elapsedTime+100:20;m&&setTimeout(function(){m=!1,N(L[t],v),D(L[o],v),D(L[t],"carousel-item-"+i),D(L[t],"carousel-item-"+R),D(L[o],"carousel-item-"+R),O.call(n,"slid","carousel",L[t]),e.hidden||!f.interval||I(n,"paused")||f.cycle()},l)})):(N(L[t],v),L[t].offsetWidth,D(L[o],v),setTimeout(function(){m=!1,f.interval&&!I(n,"paused")&&f.cycle(),O.call(n,"slid","carousel",L[t])},100)))}},this.getActiveIndex=function(){return L.indexOf(H(n,"carousel-item active")[0])||0},"Carousel"in n||(f.pause&&f.interval&&(S(n,T[0],q),S(n,T[1],F),S(n,E.start,q),S(n,E.end,F)),L[h]>1&&S(n,E.start,Q),X&&S(X,"click",G),P&&S(P,"click",G),j&&S(j,"click",Y),!0===f.keyboard&&S(t,"keydown",J)),f.getActiveIndex()<0&&(L[h]&&N(L[0],v),U[h]&&_(0)),f.interval&&f.cycle(),n.Carousel=f}};a[m](["Carousel",F,'[data-ride="carousel"]']);var Y=function(t,e){t=B(t),e=e||{};var i,n,o=null,a=null,l=this,r=t[c]("data-parent"),s=function(t,e){O.call(t,"show","collapse"),t.isAnimating=!0,N(t,"collapsing"),D(t,"collapse"),t[g].height=t.scrollHeight+"px",z(t,function(){t.isAnimating=!1,t[d]("aria-expanded","true"),e[d]("aria-expanded","true"),D(t,"collapsing"),N(t,"collapse"),N(t,"show"),t[g].height="",O.call(t,"shown","collapse")})},u=function(t,e){O.call(t,"hide","collapse"),t.isAnimating=!0,t[g].height=t.scrollHeight+"px",D(t,"collapse"),D(t,"show"),N(t,"collapsing"),t.offsetWidth,t[g].height="0px",z(t,function(){t.isAnimating=!1,t[d]("aria-expanded","false"),e[d]("aria-expanded","false"),D(t,"collapsing"),N(t,"collapse"),t[g].height="",O.call(t,"hidden","collapse")})};this.toggle=function(t){t.preventDefault(),I(a,"show")?l.hide():l.show()},this.hide=function(){a.isAnimating||(u(a,t),N(t,"collapsed"))},this.show=function(){o&&(i=B(".collapse.show",o),n=i&&(B('[data-target="#'+i.id+'"]',o)||B('[href="#'+i.id+'"]',o))),(!a.isAnimating||i&&!i.isAnimating)&&(n&&i!==a&&(u(i,n),N(n,"collapsed")),s(a,t),D(t,"collapsed"))},"Collapse"in t||S(t,"click",l.toggle),a=function(){var e=t.href&&t[c]("href"),i=t[c]("data-target"),n=e||i&&"#"===i.charAt(0)&&i;return n&&B(n)}(),a.isAnimating=!1,o=B(e.parent)||r&&M(t,r),t.Collapse=l};a[m](["Collapse",Y,'[data-toggle="collapse"]']);var G=function(t,i){t=B(t),this.persist=!0===i||"true"===t[c]("data-persist")||!1;var n=this,o=t[u],a=null,l=B(".dropdown-menu",o),s=function(){for(var t=l.children,e=[],i=0;i<t[h];i++)t[i].children[h]&&"A"===t[i].children[0].tagName&&e[m](t[i].children[0]),"A"===t[i].tagName&&e[m](t[i]);return e}(),f=function(t){(t.href&&"#"===t.href.slice(-1)||t[u]&&t[u].href&&"#"===t[u].href.slice(-1))&&this.preventDefault()},p=function(){var i=t.open?S:W;i(e,"click",g),i(e,"keydown",w),i(e,"keyup",b)},g=function(e){var i=e[r],o=i&&("Dropdown"in i||"Dropdown"in i[u]);(i!==l&&!l.contains(i)||!n.persist&&!o)&&(a=i===t||t.contains(i)?t:null,y(),f.call(e,i))},v=function(e){a=t,T(),f.call(e,e[r])},w=function(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()},b=function(i){var o=i.which||i.keyCode,r=e.activeElement,c=s.indexOf(r),d=r===t,f=l.contains(r),p=r[u]===l||r[u][u]===l;(p||d)&&(c=d?0:38===o?c>1?c-1:0:40===o&&c<s[h]-1?c+1:c,s[c]&&L(s[c])),(s[h]&&p||!s[h]&&(f||d)||!f)&&t.open&&27===o&&(n.toggle(),a=null)},T=function(){O.call(o,"show","dropdown",a),N(l,"show"),N(o,"show"),t[d]("aria-expanded",!0),O.call(o,"shown","dropdown",a),t.open=!0,W(t,"click",v),setTimeout(function(){L(l.getElementsByTagName("INPUT")[0]||t),p()},1)},y=function(){O.call(o,"hide","dropdown",a),D(l,"show"),D(o,"show"),t[d]("aria-expanded",!1),O.call(o,"hidden","dropdown",a),t.open=!1,p(),L(t),setTimeout(function(){S(t,"click",v)},1)};t.open=!1,this.toggle=function(){I(o,"show")&&t.open?y():T()},"Dropdown"in t||(!1 in l&&l[d]("tabindex","0"),S(t,"click",v)),t.Dropdown=n};a[m](["Dropdown",G,'[data-toggle="dropdown"]']);var J=function(o,a){o=B(o);var l=o[c]("data-target")||o[c]("href"),s=B(l),f=I(o,"modal")?o:s;if(I(o,"modal")&&(o=null),f){a=a||{},this.keyboard=!1!==a.keyboard&&"false"!==f[c]("data-keyboard"),this.backdrop="static"!==a.backdrop&&"static"!==f[c]("data-backdrop")||"static",this.backdrop=!1!==a.backdrop&&"false"!==f[c]("data-backdrop")&&this.backdrop,this.content=a.content;var p,m,v,b,T=this,y=null,x=H(i,"fixed-top").concat(H(i,"fixed-bottom")),A=function(){var e=i.getBoundingClientRect();return t.innerWidth||e.right-Math.abs(e[w])},E=function(){var i,o=t.getComputedStyle(e[n]),a=parseInt(o.paddingRight,10);if(p&&(e[n][g].paddingRight=a+m+"px",f[g].paddingRight=m+"px",x[h]))for(var l=0;l<x[h];l++)i=t.getComputedStyle(x[l]).paddingRight,x[l][g].paddingRight=parseInt(i)+m+"px"},M=function(){if(e[n][g].paddingRight="",f[g].paddingRight="",x[h])for(var t=0;t<x[h];t++)x[t][g].paddingRight=""},R=function(){var t,i=e.createElement("div");return i.className="modal-scrollbar-measure",e[n].appendChild(i),t=i.offsetWidth-i.clientWidth,e[n].removeChild(i),t},X=function(){p=e[n].clientWidth<A(),m=R()},j=function(){k=1;var t=e.createElement("div");null===(v=B(".modal-backdrop"))&&(t[d]("class","modal-backdrop fade"),v=t,e[n].appendChild(v))},U=function(){v=B(".modal-backdrop"),v&&null!==v&&"object"==typeof v&&(k=0,e[n].removeChild(v),v=null),O.call(f,"hidden","modal")},q=function(){I(f,"show")?S(e,"keydown",Q):W(e,"keydown",Q)},F=function(){I(f,"show")?S(t,"resize",T.update):W(t,"resize",T.update)},Y=function(){I(f,"show")?S(f,"click",V):W(f,"click",V)},G=function(){F(),Y(),q(),L(f),O.call(f,"shown","modal",y)},J=function(){f[g].display="",o&&L(o),function(){H(e,"modal show")[0]||(M(),D(e[n],"modal-open"),v&&I(v,"fade")?(D(v,"show"),z(v,U)):U(),F(),Y(),q())}()},K=function(t){var e=t[r];(e=e.hasAttribute("data-target")||e.hasAttribute("href")?e:e[u])!==o||I(f,"show")||(f.modalTrigger=o,y=o,T.show(),t.preventDefault())},Q=function(t){T.keyboard&&27==t.which&&I(f,"show")&&T.hide()},V=function(t){var e=t[r];I(f,"show")&&("modal"===e[u][c]("data-dismiss")||"modal"===e[c]("data-dismiss")||e===f&&"static"!==T.backdrop)&&(T.hide(),y=null,t.preventDefault())};this.toggle=function(){I(f,"show")?this.hide():this.show()},this.show=function(){O.call(f,"show","modal",y);var t=H(e,"modal show")[0];t&&t!==f&&("modalTrigger"in t&&t.modalTrigger.Modal.hide(),"Modal"in t&&t.Modal.hide()),this.backdrop&&!k&&j(),v&&k&&!I(v,"show")&&(v.offsetWidth,b=P(v),N(v,"show")),setTimeout(function(){f[g].display="block",X(),E(),N(e[n],"modal-open"),N(f,"show"),f[d]("aria-hidden",!1),I(f,"fade")?z(f,G):G()},C&&v?b:0)},this.hide=function(){O.call(f,"hide","modal"),v=B(".modal-backdrop"),b=v&&P(v),D(f,"show"),f[d]("aria-hidden",!0),setTimeout(function(){I(f,"fade")?z(f,J):J()},C&&v?b:0)},this.setContent=function(t){B(".modal-content",f).innerHTML=t},this.update=function(){I(f,"show")&&(X(),E())},!o||"Modal"in o||S(o,"click",K),T.content&&T.setContent(T.content),o?(o.Modal=T,f.modalTrigger=o):f.Modal=T}};a[m](["Modal",J,'[data-toggle="modal"]']);var K=function(i,o){i=B(i),o=o||{};var a=i[c]("data-trigger"),u=i[c]("data-animation"),h=i[c]("data-placement"),f=i[c]("data-dismissible"),p=i[c]("data-delay"),m=i[c]("data-container"),v='<button type="button" class="close">×</button>',w=B(o.container),y=B(m),k=M(i,".modal"),C=M(i,".fixed-top"),x=M(i,".fixed-bottom");this.template=o.template?o.template:null,this.trigger=o.trigger?o.trigger:a||"hover",this[s]=o[s]&&"fade"!==o[s]?o[s]:u||"fade",this.placement=o.placement?o.placement:h||b,this[l]=parseInt(o[l]||p)||200,this.dismissible=!(!o.dismissible&&"true"!==f),this.container=w||(y||(C||(x||(k||e[n]))));var A=this,E=i[c]("data-title")||null,L=i[c]("data-content")||null;if(L||this.template){var H=null,R=0,P=this.placement,X=function(t){null!==H&&t[r]===B(".close",H)&&A.hide()},U=function(){A.container.removeChild(H),R=null,H=null},q=function(){E=o.title||i[c]("data-title")||null,L=o.content||i[c]("data-content")||null,H=e.createElement("div");var t=e.createElement("div");if(t[d]("class","arrow"),H.appendChild(t),null!==L&&null===A.template){if(H[d]("role","tooltip"),null!==E){var n=e.createElement("h3");n[d]("class","popover-header"),n.innerHTML=A.dismissible?E+v:E,H.appendChild(n)}var a=e.createElement("div");a[d]("class","popover-body"),a.innerHTML=A.dismissible&&null===E?L+v:L,H.appendChild(a)}else{var l=e.createElement("div");l.innerHTML=A.template,H.innerHTML=l.firstChild.innerHTML}A.container.appendChild(H),H[g].display="block",H[d]("class","popover bs-popover-"+P+" "+A[s])},F=function(){!I(H,"show")&&N(H,"show")},Y=function(){j(i,H,P,A.container)},G=function(n){"click"!=A.trigger&&"focus"!=A.trigger||!A.dismissible&&n(i,"blur",A.hide),A.dismissible&&n(e,"click",X),n(t,"resize",A.hide)},J=function(){G(S),O.call(i,"shown","popover")},K=function(){G(W),U(),O.call(i,"hidden","popover")};this.toggle=function(){null===H?A.show():A.hide()},this.show=function(){clearTimeout(R),R=setTimeout(function(){null===H&&(P=A.placement,q(),Y(),F(),O.call(i,"show","popover"),A[s]?z(H,J):J())},20)},this.hide=function(){clearTimeout(R),R=setTimeout(function(){H&&null!==H&&I(H,"show")&&(O.call(i,"hide","popover"),D(H,"show"),A[s]?z(H,K):K())},A[l])},"Popover"in i||("hover"===A.trigger?(S(i,T[0],A.show),A.dismissible||S(i,T[1],A.hide)):"click"!=A.trigger&&"focus"!=A.trigger||S(i,A.trigger,A.toggle)),i.Popover=A}};a[m](["Popover",K,'[data-toggle="popover"]']);var Q=function(e,i){e=B(e);var n=B(e[c]("data-target")),o=e[c]("data-offset");if(i=i||{},i[r]||n){for(var a,l=this,s=i[r]&&B(i[r])||n,d=s&&s.getElementsByTagName("A"),f=parseInt(i.offset||o)||10,p=[],g=[],w=e.offsetHeight<e.scrollHeight?e:t,T=w===t,y=0,k=d[h];y<k;y++){var C=d[y][c]("href"),x=C&&"#"===C.charAt(0)&&"#"!==C.slice(-1)&&B(C);x&&(p[m](d[y]),g[m](x))}var A=function(t){var i=p[t],n=g[t],o=i[u][u],l=I(o,"dropdown")&&o.getElementsByTagName("A")[0],r=T&&n.getBoundingClientRect(),s=I(i,v)||!1,c=(T?r[b]+a:n.offsetTop)-f,d=T?r.bottom+a-f:g[t+1]?g[t+1].offsetTop-f:e.scrollHeight,h=a>=c&&d>a;if(!s&&h)I(i,v)||(N(i,v),l&&!I(l,v)&&N(l,v),O.call(e,"activate","scrollspy",p[t]));else if(h){if(!h&&!s||s&&h)return}else I(i,v)&&(D(i,v),l&&I(l,v)&&!H(i[u],v).length&&D(l,v))},E=function(){a=T?X().y:e.scrollTop;for(var t=0,i=p[h];t<i;t++)A(t)};this.refresh=function(){E()},"ScrollSpy"in e||(S(w,"scroll",l.refresh),S(t,"resize",l.refresh)),l.refresh(),e.ScrollSpy=l}};a[m](["ScrollSpy",Q,'[data-spy="scroll"]']);var V=function(t,e){t=B(t);var i=t[c]("data-height");e=e||{},this.height=!!C&&(e.height||"true"===i);var n,o,a,l,r,s,f,p=this,m=M(t,".nav"),b=!1,T=m&&B(".dropdown-toggle",m),y=function(){b[g].height="",D(b,"collapsing"),m.isAnimating=!1},k=function(){b?s?y():setTimeout(function(){b[g].height=f+"px",b.offsetWidth,z(b,y)},50):m.isAnimating=!1,O.call(n,"shown","tab",o)},x=function(){b&&(a[g].float=w,l[g].float=w,r=a.scrollHeight),N(l,v),O.call(n,"show","tab",o),D(a,v),O.call(o,"hidden","tab",n),b&&(f=l.scrollHeight,s=f===r,N(b,"collapsing"),b[g].height=r+"px",b.offsetHeight,a[g].float="",l[g].float=""),I(l,"fade")?setTimeout(function(){N(l,"show"),z(l,k)},20):k()};if(m){m.isAnimating=!1;var A=function(){var t,e=H(m,v);return 1!==e[h]||I(e[0][u],"dropdown")?e[h]>1&&(t=e[e[h]-1]):t=e[0],t},E=function(){return B(A()[c]("href"))},L=function(t){t.preventDefault(),n=t.currentTarget,!m.isAnimating&&!I(n,v)&&p.show()};this.show=function(){n=n||t,l=B(n[c]("href")),o=A(),a=E(),m.isAnimating=!0,D(o,v),o[d]("aria-selected","false"),N(n,v),n[d]("aria-selected","true"),T&&(I(t[u],"dropdown-menu")?I(T,v)||N(T,v):I(T,v)&&D(T,v)),O.call(o,"hide","tab",n),I(a,"fade")?(D(a,"show"),z(a,x)):x()},"Tab"in t||S(t,"click",L),p.height&&(b=E()[u]),t.Tab=p}};a[m](["Tab",V,'[data-toggle="tab"]']);var Z=function(t,e){t=B(t),e=e||{};var i=t[c]("data-animation"),n=t[c]("data-autohide"),o=t[c]("data-delay");this.animation=!1===e.animation||"false"===i?0:1,this.autohide=!1===e.autohide||"false"===n?0:1,this[l]=parseInt(e[l]||o)||500;var a=this,r=0,s=M(t,".toast"),d=function(){D(s,"showing"),N(s,"show"),O.call(s,"shown","toast"),a.autohide&&a.hide()},u=function(){N(s,"hide"),O.call(s,"hidden","toast")},h=function(){D(s,"show"),a.animation?z(s,u):u()},f=function(){clearTimeout(r),r=null,N(s,"hide"),W(t,"click",a.hide),t.Toast=null,t=null,s=null};this.show=function(){s&&(O.call(s,"show","toast"),a.animation&&N(s,"fade"),D(s,"hide"),N(s,"showing"),a.animation?z(s,d):d())},this.hide=function(t){s&&I(s,"show")&&(O.call(s,"hide","toast"),t?h():r=setTimeout(h,a[l]))},this.dispose=function(){s&&I(s,"show")&&(D(s,"show"),a.animation?z(s,f):f())},"Toast"in t||S(t,"click",a.hide),t.Toast=a};a[m](["Toast",Z,'[data-dismiss="toast"]']);var $=function(i,o){i=B(i),o=o||{};var a=i[c]("data-animation"),r=i[c]("data-placement"),u=i[c]("data-delay"),h=i[c]("data-container"),f=B(o.container),p=B(h),g=M(i,".modal"),m=M(i,".fixed-top"),v=M(i,".fixed-bottom");this[s]=o[s]&&"fade"!==o[s]?o[s]:a||"fade",this.placement=o.placement?o.placement:r||b,this[l]=parseInt(o[l]||u)||200,this.container=f||(p||(m||(v||(g||e[n]))));var w=this,y=0,k=this.placement,C=null,x=i[c]("title")||i[c]("data-title")||i[c]("data-original-title");if(x&&""!=x){var A=function(){w.container.removeChild(C),C=null,y=null},E=function(){if(!(x=i[c]("title")||i[c]("data-title")||i[c]("data-original-title"))||""==x)return!1;C=e.createElement("div"),C[d]("role","tooltip");var t=e.createElement("div");t[d]("class","arrow"),C.appendChild(t);var n=e.createElement("div");n[d]("class","tooltip-inner"),C.appendChild(n),n.innerHTML=x,w.container.appendChild(C),C[d]("class","tooltip bs-tooltip-"+k+" "+w[s])},L=function(){j(i,C,k,w.container)},H=function(){!I(C,"show")&&N(C,"show")},R=function(){S(t,"resize",w.hide),O.call(i,"shown","tooltip")},P=function(){W(t,"resize",w.hide),A(),O.call(i,"hidden","tooltip")};this.show=function(){clearTimeout(y),y=setTimeout(function(){if(null===C){if(k=w.placement,0==E())return;L(),H(),O.call(i,"show","tooltip"),w[s]?z(C,R):R()}},20)},this.hide=function(){clearTimeout(y),y=setTimeout(function(){C&&I(C,"show")&&(O.call(i,"hide","tooltip"),D(C,"show"),w[s]?z(C,P):P())},w[l])},this.toggle=function(){C?w.hide():w.show()},"Tooltip"in i||(i[d]("data-original-title",x),i.removeAttribute("title"),S(i,T[0],w.show),S(i,T[1],w.hide)),i.Tooltip=w}};a[m](["Tooltip",$,'[data-toggle="tooltip"]']);var _=function(t,e){for(var i=0,n=e[h];i<n;i++)new t(e[i])},tt=o.initCallback=function(t){t=t||e;for(var i=0,n=a[h];i<n;i++)_(a[i][1],t.querySelectorAll(a[i][2]))};return e[n]?tt():S(e,"DOMContentLoaded",function(){tt()}),{Alert:U,Button:q,Carousel:F,Collapse:Y,Dropdown:G,Modal:J,Popover:K,ScrollSpy:Q,Tab:V,Toast:Z,Tooltip:$}}); |
@@ -1,2 +0,2 @@ | ||
// Native Javascript for Bootstrap 3 v2.0.25 | © 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 i=e();t.Affix=i.Affix,t.Alert=i.Alert,t.Button=i.Button,t.Carousel=i.Carousel,t.Collapse=i.Collapse,t.Dropdown=i.Dropdown,t.Modal=i.Modal,t.Popover=i.Popover,t.ScrollSpy=i.ScrollSpy,t.Tab=i.Tab,t.Tooltip=i.Tooltip}}(this,function(){"use strict";var t="undefined"!=typeof global?global:this||window,e=document,i=e.documentElement,n="body",o=t.BSN={},a=o.supports=[],l="target",r="animation",c="getAttribute",s="setAttribute",d="parentNode",f="length",u="Transition",h="Webkit",p="style",g="push",m="active",v="left",b="top",w=!("opacity"in i[p]),y="onmouseleave"in e?["mouseenter","mouseleave"]:["mouseover","mouseout"],T=/\b(top|bottom|left|right)+/,x=0,k="navbar-fixed-top",C=h+u in i[p]||u.toLowerCase()in i[p],A=h+u in i[p]?h.toLowerCase()+u+"End":u.toLowerCase()+"end",L=h+"Duration"in i[p]?h.toLowerCase()+u+"Duration":u.toLowerCase()+"Duration",I=function(t){t.focus?t.focus():t.setActive()},B=function(t,e){t.classList.add(e)},H=function(t,e){t.classList.remove(e)},E=function(t,e){return t.classList.contains(e)},N=function(t){for(var e=[],i=0,n=t[f];i<n;i++)e[g](t[i]);return e},M=function(t,e){return N(t[w?"querySelectorAll":"getElementsByClassName"](w?"."+e.replace(/\s(?=[a-z])/g,"."):e))},D=function(t,i){var n=i||e;return"object"==typeof t?t:n.querySelector(t)},S=function(t,i){var n=i.charAt(0),o=i.substr(1);if("."===n){for(;t&&t!==e;t=t[d])if(null!==D(i,t[d])&&E(t,o))return t}else if("#"===n)for(;t&&t!==e;t=t[d])if(t.id===o)return t;return!1},R=function(t,e,i){t.addEventListener(e,i,!1)},W=function(t,e,i){t.removeEventListener(e,i,!1)},P=function(t,e,i){R(t,e,function n(o){i(o),W(t,e,n)})},z=function(e){var i=C?t.getComputedStyle(e)[L]:0;return i=parseFloat(i),(i="number"!=typeof i||isNaN(i)?0:1e3*i)+17},O=function(t,e){var i=0,n=z(t);C&&P(t,A,function(t){e(t),i=1}),setTimeout(function(){!i&&e()},n+17)},j=function(t,e,i){var n=new CustomEvent(t+".bs."+e);n.relatedTarget=i,this.dispatchEvent(n)},q=function(){return{y:t.pageYOffset||i.scrollTop,x:t.pageXOffset||i.scrollLeft}},U=function(t,o,a,l){var r,c,s,d,f={w:o.offsetWidth,h:o.offsetHeight},u=i.clientWidth||e[n].clientWidth,h=i.clientHeight||e[n].clientHeight,g=t.getBoundingClientRect(),m=l===e[n]?q():{x:l.offsetLeft+l.scrollLeft,y:l.offsetTop+l.scrollTop},w={w:g.right-g[v],h:g.bottom-g[b]},y=D('[class*="arrow"]',o),x=g[b]+w.h/2-f.h/2<0,k=g[v]+w.w/2-f.w/2<0,C=g[v]+f.w/2+w.w/2>=u,A=g[b]+f.h/2+w.h/2>=h,L=g[b]-f.h<0,I=g[v]-f.w<0,B=g[b]+f.h+w.h>=h,H=g[v]+f.w+w.w>=u;a=(a===v||"right"===a)&&I&&H?b:a,a=a===b&&L?"bottom":a,a="bottom"===a&&B?b:a,a=a===v&&I?"right":a,a="right"===a&&H?v:a,a===v||"right"===a?(c=a===v?g[v]+m.x-f.w:g[v]+m.x+w.w,x?(r=g[b]+m.y,s=w.h/2):A?(r=g[b]+m.y-f.h+w.h,s=f.h-w.h/2):r=g[b]+m.y-f.h/2+w.h/2):a!==b&&"bottom"!==a||(r=a===b?g[b]+m.y-f.h:g[b]+m.y+w.h,k?(c=0,d=g[v]+w.w/2):C?(c=u-1.01*f.w,d=f.w-(u-g[v])+w.w/2):c=g[v]+m.x-f.w/2+w.w/2),o[p][b]=r+"px",o[p][v]=c+"px",s&&(y[p][b]=s+"px"),d&&(y[p][v]=d+"px"),-1===o.className.indexOf(a)&&(o.className=o.className.replace(T,a))};o.version="2.0.25";var F=function(o,a){o=D(o),a=a||{};var r=o[c]("data-target"),s=o[c]("data-offset-top"),d=o[c]("data-offset-bottom"),f="affix",u="function";if(this[l]=a[l]?D(a[l]):D(r)||null,this.offsetTop=a.offsetTop?a.offsetTop:parseInt(s)||0,this.offsetBottom=a.offsetBottom?a.offsetBottom:parseInt(d)||0,this[l]||this.offsetTop||this.offsetBottom){var h,p,g,m,v,y,T=this,x=!1,k=!1,C=function(){return Math.max(e[n].scrollHeight,e[n].offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight)},A=function(){return null!==T[l]?T[l].getBoundingClientRect()[b]+m:T.offsetTop?parseInt(typeof T.offsetTop===u?T.offsetTop():T.offsetTop||0):void 0},L=function(){if(T.offsetBottom)return g-o.offsetHeight-parseInt(typeof T.offsetBottom===u?T.offsetBottom():T.offsetBottom||0)},I=function(){g=C(),m=parseInt(q().y,0),h=A(),p=L(),v=parseInt(h)-m<0&&m>parseInt(h),y=parseInt(p)-m<0&&m>parseInt(p)},N=function(){x||E(o,f)||(j.call(o,f,f),j.call(o,"affix-top",f),B(o,f),x=!0,j.call(o,"affixed",f),j.call(o,"affixed-top",f))},M=function(){x&&E(o,f)&&(H(o,f),x=!1)},S=function(){k||E(o,"affix-bottom")||(j.call(o,f,f),j.call(o,"affix-bottom",f),B(o,"affix-bottom"),k=!0,j.call(o,"affixed",f),j.call(o,"affixed-bottom",f))},W=function(){k&&E(o,"affix-bottom")&&(H(o,"affix-bottom"),k=!1)},P=function(){y?(v&&M(),S()):(W(),v?N():M())};this.update=function(){I(),P()},"Affix"in o||(R(t,"scroll",T.update),!w&&R(t,"resize",T.update)),o.Affix=T,T.update()}};a[g](["Affix",F,'[data-spy="affix"]']);var X=function(t){t=D(t);var e=this,i=S(t,".alert"),n=function(){E(i,"fade")?O(i,a):a()},o=function(n){i=S(n[l],".alert"),(t=D('[data-dismiss="alert"]',i))&&i&&(t===n[l]||t.contains(n[l]))&&e.close()},a=function(){j.call(i,"closed","alert"),W(t,"click",o),i[d].removeChild(i)};this.close=function(){i&&t&&E(i,"in")&&(j.call(i,"close","alert"),H(i,"in"),i&&n())},"Alert"in t||R(t,"click",o),t.Alert=e};a[g](["Alert",X,'[data-dismiss="alert"]']);var Y=function(t,i){t=D(t),i=i||null;var n=!1,o="checked",a=function(t){32===(t.which||t.keyCode)&&t[l]===e.activeElement&&u(t)},r=function(t){32===(t.which||t.keyCode)&&t.preventDefault()},u=function(e){var i="LABEL"===e[l].tagName?e[l]:"LABEL"===e[l][d].tagName?e[l][d]:null;if(i){var a=e[l],r=M(a[d],"btn"),u=i.getElementsByTagName("INPUT")[0];if(u){if("checkbox"===u.type&&(u[o]?(H(i,m),u[c](o),u.removeAttribute(o),u[o]=!1):(B(i,m),u[c](o),u[s](o,o),u[o]=!0),n||(n=!0,j.call(u,"change","button"),j.call(t,"change","button"))),"radio"===u.type&&!n&&!u[o]){B(i,m),u[s](o,o),u[o]=!0,j.call(u,"change","button"),j.call(t,"change","button"),n=!0;for(var h=0,p=r[f];h<p;h++){var g=r[h],v=g.getElementsByTagName("INPUT")[0];g!==i&&E(g,m)&&(H(g,m),v.removeAttribute(o),v[o]=!1,j.call(v,"change","button"))}}setTimeout(function(){n=!1},50)}}};if(E(t,"btn"))null!==i&&("reset"!==i?function(){i&&"reset"!==i&&("loading"===i&&(B(t,"disabled"),t[s]("disabled","disabled"),t[s]("data-original-text",t.innerHTML.trim())),t.innerHTML=t[c]("data-"+i+"-text"))}():function(){t[c]("data-original-text")&&((E(t,"disabled")||"disabled"===t[c]("disabled"))&&(H(t,"disabled"),t.removeAttribute("disabled")),t.innerHTML=t[c]("data-original-text"))}());else{"Button"in t||(R(t,"click",u),D("[tabindex]",t)&&R(t,"keyup",a),R(t,"keydown",r));for(var h=M(t,"btn"),p=h[f],g=0;g<p;g++)!E(h[g],m)&&D("input",h[g])[c](o)&&B(h[g],m);t.Button=this}};a[g](["Button",Y,'[data-toggle="buttons"]']);var G=function(e,n){e=D(e),n=n||{};var o=e[c]("data-interval"),a=n.interval,r="false"===o?0:parseInt(o),s="hover"===e[c]("data-pause")||!1,d="true"===e[c]("data-keyboard")||!1;this.keyboard=!0===n.keyboard||d,this.pause=!("hover"!==n.pause&&!s)&&"hover",this.interval="number"==typeof a?a:!1===a||0===r||!1===r?0:isNaN(r)?5e3:r;var u=this,h=e.index=0,p=e.timer=0,g=!1,w=M(e,"item"),T=w[f],x=this.direction=v,k=M(e,"carousel-control"),A=k[0],L=k[1],I=D(".carousel-indicators",e),N=I&&I.getElementsByTagName("LI")||[];if(!(T<2)){var S=function(){!1===u.interval||E(e,"paused")||(B(e,"paused"),!g&&(clearInterval(p),p=null))},W=function(){!1!==u.interval&&E(e,"paused")&&(H(e,"paused"),!g&&(clearInterval(p),p=null),!g&&u.cycle())},P=function(t){if(t.preventDefault(),!g){var e=t[l];if(!e||E(e,m)||!e[c]("data-slide-to"))return!1;h=parseInt(e[c]("data-slide-to"),10),u.slideTo(h)}},z=function(t){if(t.preventDefault(),!g){var e=t.currentTarget||t.srcElement;e===L?h++:e===A&&h--,u.slideTo(h)}},q=function(t){if(!g){switch(t.which){case 39:h++;break;case 37:h--;break;default:return}u.slideTo(h)}},U=function(){var n=e.getBoundingClientRect(),o=t.innerHeight||i.clientHeight;return n[b]<=o&&n.bottom>=0},F=function(t){for(var e=0,i=N[f];e<i;e++)H(N[e],m);N[t]&&B(N[t],m)};this.cycle=function(){p&&(clearInterval(p),p=null),p=setInterval(function(){U()&&(h++,u.slideTo(h))},this.interval)},this.slideTo=function(t){if(!g){var i,n=this.getActiveIndex();n!==t&&(n<t||0===n&&t===T-1?x=u.direction=v:(n>t||n===T-1&&0===t)&&(x=u.direction="right"),t<0?t=T-1:t>=T&&(t=0),h=t,i=x===v?"next":"prev",j.call(e,"slide","carousel",w[t]),g=!0,clearInterval(p),p=null,F(t),C&&E(e,"slide")?(B(w[t],i),w[t].offsetWidth,B(w[t],x),B(w[n],x),O(w[t],function(o){var a=o&&o[l]!==w[t]?1e3*o.elapsedTime+100:20;g&&setTimeout(function(){g=!1,B(w[t],m),H(w[n],m),H(w[t],i),H(w[t],x),H(w[n],x),j.call(e,"slid","carousel",w[t]),u.interval&&!E(e,"paused")&&u.cycle()},a)})):(B(w[t],m),w[t].offsetWidth,H(w[n],m),setTimeout(function(){g=!1,u.interval&&!E(e,"paused")&&u.cycle(),j.call(e,"slid","carousel",w[t])},100)))}},this.getActiveIndex=function(){return w.indexOf(M(e,"item active")[0])||0},"Carousel"in e||(u.pause&&u.interval&&(R(e,y[0],S),R(e,y[1],W),R(e,"touchstart",S),R(e,"touchend",W)),L&&R(L,"click",z),A&&R(A,"click",z),I&&R(I,"click",P),u.keyboard&&R(t,"keydown",q)),u.getActiveIndex()<0&&(w[f]&&B(w[0],m),N[f]&&F(0)),u.interval&&u.cycle(),e.Carousel=u}};a[g](["Carousel",G,'[data-ride="carousel"]']);var J=function(t,e){t=D(t),e=e||{};var i,n,o=null,a=null,l=this,r=t[c]("data-parent"),d=function(t,e){j.call(t,"show","collapse"),t.isAnimating=!0,B(t,"collapsing"),H(t,"collapse"),t[p].height=t.scrollHeight+"px",O(t,function(){t.isAnimating=!1,t[s]("aria-expanded","true"),e[s]("aria-expanded","true"),H(t,"collapsing"),B(t,"collapse"),B(t,"in"),t[p].height="",j.call(t,"shown","collapse")})},f=function(t,e){j.call(t,"hide","collapse"),t.isAnimating=!0,t[p].height=t.scrollHeight+"px",H(t,"collapse"),H(t,"in"),B(t,"collapsing"),t.offsetWidth,t[p].height="0px",O(t,function(){t.isAnimating=!1,t[s]("aria-expanded","false"),e[s]("aria-expanded","false"),H(t,"collapsing"),B(t,"collapse"),t[p].height="",j.call(t,"hidden","collapse")})};this.toggle=function(t){t.preventDefault(),E(a,"in")?l.hide():l.show()},this.hide=function(){a.isAnimating||(f(a,t),B(t,"collapsed"))},this.show=function(){o&&(i=D(".collapse.in",o),n=i&&(D('[data-toggle="collapse"][data-target="#'+i.id+'"]',o)||D('[data-toggle="collapse"][href="#'+i.id+'"]',o))),(!a.isAnimating||i&&!i.isAnimating)&&(n&&i!==a&&(f(i,n),B(n,"collapsed")),d(a,t),H(t,"collapsed"))},"Collapse"in t||R(t,"click",l.toggle),a=function(){var e=t.href&&t[c]("href"),i=t[c]("data-target"),n=e||i&&"#"===i.charAt(0)&&i;return n&&D(n)}(),a.isAnimating=!1,o=D(e.parent)||r&&S(t,r),t.Collapse=l};a[g](["Collapse",J,'[data-toggle="collapse"]']);var K=function(t,i){t=D(t),this.persist=!0===i||"true"===t[c]("data-persist")||!1;var n=this,o=t[d],a="open",r=null,u=D(".dropdown-menu",o),h=function(){for(var t=u.children,e=[],i=0;i<t[f];i++)t[i].children[f]&&"A"===t[i].children[0].tagName&&e[g](t[i]);return e}(),p=function(t){(t.href&&"#"===t.href.slice(-1)||t[d]&&t[d].href&&"#"===t[d].href.slice(-1))&&this.preventDefault()},m=function(){var i=t[a]?R:W;i(e,"click",v),i(e,"keydown",w),i(e,"keyup",y)},v=function(e){var i=e[l],o=i&&("Dropdown"in i||"Dropdown"in i[d]);(i!==u&&!u.contains(i)||!n.persist&&!o)&&(r=i===t||t.contains(i)?t:null,x(),p.call(e,i))},b=function(e){r=t,T(),p.call(e,e[l])},w=function(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()},y=function(i){var o=i.which||i.keyCode,l=e.activeElement,c=h.indexOf(l[d]),s=l===t,p=u.contains(l),g=l[d][d]===u;(g||s)&&(c=s?0:38===o?c>1?c-1:0:40===o&&c<h[f]-1?c+1:c,h[c]&&I(h[c].children[0])),(h[f]&&g||!h[f]&&(p||s)||!p)&&t[a]&&27===o&&(n.toggle(),r=null)},T=function(){j.call(o,"show","dropdown",r),B(o,a),t[s]("aria-expanded",!0),j.call(o,"shown","dropdown",r),t[a]=!0,W(t,"click",b),setTimeout(function(){I(u.getElementsByTagName("INPUT")[0]||t),m()},1)},x=function(){j.call(o,"hide","dropdown",r),H(o,a),t[s]("aria-expanded",!1),j.call(o,"hidden","dropdown",r),t[a]=!1,m(),I(t),setTimeout(function(){R(t,"click",b)},1)};t[a]=!1,this.toggle=function(){E(o,a)&&t[a]?x():T()},"Dropdown"in t||(!1 in u&&u[s]("tabindex","0"),R(t,"click",b)),t.Dropdown=n};a[g](["Dropdown",K,'[data-toggle="dropdown"]']);var Q=function(o,a){o=D(o);var r=o[c]("data-target")||o[c]("href"),u=D(r),h=E(o,"modal")?o:u;if(E(o,"modal")&&(o=null),h){a=a||{},this.keyboard=!1!==a.keyboard&&"false"!==h[c]("data-keyboard"),this.backdrop="static"!==a.backdrop&&"static"!==h[c]("data-backdrop")||"static",this.backdrop=!1!==a.backdrop&&"false"!==h[c]("data-backdrop")&&this.backdrop,this.content=a.content;var g,m,b,w,y=this,T=null,A=M(i,k).concat(M(i,"navbar-fixed-bottom")),L=function(){var e=i.getBoundingClientRect();return t.innerWidth||e.right-Math.abs(e[v])},N=function(){var i,o=e[n].currentStyle||t.getComputedStyle(e[n]),a=parseInt(o.paddingRight,10);if(g&&(e[n][p].paddingRight=a+m+"px",h[p].paddingRight=m+"px",A[f]))for(var l=0;l<A[f];l++)i=(A[l].currentStyle||t.getComputedStyle(A[l])).paddingRight,A[l][p].paddingRight=parseInt(i)+m+"px"},S=function(){if(e[n][p].paddingRight="",h[p].paddingRight="",A[f])for(var t=0;t<A[f];t++)A[t][p].paddingRight=""},P=function(){var t,i=e.createElement("div");return i.className="modal-scrollbar-measure",e[n].appendChild(i),t=i.offsetWidth-i.clientWidth,e[n].removeChild(i),t},q=function(){g=e[n].clientWidth<L(),m=P()},U=function(){x=1;var t=e.createElement("div");null===(b=D(".modal-backdrop"))&&(t[s]("class","modal-backdrop fade"),b=t,e[n].appendChild(b))},F=function(){b=D(".modal-backdrop"),b&&null!==b&&"object"==typeof b&&(x=0,e[n].removeChild(b),b=null),j.call(h,"hidden","modal")},X=function(){E(h,"in")?R(e,"keydown",V):W(e,"keydown",V)},Y=function(){E(h,"in")?R(t,"resize",y.update):W(t,"resize",y.update)},G=function(){E(h,"in")?R(h,"click",Z):W(h,"click",Z)},J=function(){Y(),G(),X(),I(h),j.call(h,"shown","modal",T)},K=function(){h[p].display="",o&&I(o),function(){M(e,"modal in")[0]||(S(),H(e[n],"modal-open"),b&&E(b,"fade")?(H(b,"in"),O(b,F)):F(),Y(),G(),X())}()},Q=function(t){var e=t[l];(e=e.hasAttribute("data-target")||e.hasAttribute("href")?e:e[d])!==o||E(h,"in")||(h.modalTrigger=o,T=o,y.show(),t.preventDefault())},V=function(t){var e=t.which||t.keyCode;y.keyboard&&27==e&&E(h,"in")&&y.hide()},Z=function(t){var e=t[l];E(h,"in")&&("modal"===e[d][c]("data-dismiss")||"modal"===e[c]("data-dismiss")||e===h&&"static"!==y.backdrop)&&(y.hide(),T=null,t.preventDefault())};this.toggle=function(){E(h,"in")?this.hide():this.show()},this.show=function(){j.call(h,"show","modal",T);var t=M(e,"modal in")[0];t&&t!==h&&("modalTrigger"in t&&t.modalTrigger.Modal.hide(),"Modal"in t&&t.Modal.hide()),this.backdrop&&!x&&U(),b&&x&&!E(b,"in")&&(b.offsetWidth,w=z(b),B(b,"in")),setTimeout(function(){h[p].display="block",q(),N(),B(e[n],"modal-open"),B(h,"in"),h[s]("aria-hidden",!1),E(h,"fade")?O(h,J):J()},C&&b?w:0)},this.hide=function(){j.call(h,"hide","modal"),b=D(".modal-backdrop"),w=b&&z(b),H(h,"in"),h[s]("aria-hidden",!0),setTimeout(function(){E(h,"fade")?O(h,K):K()},C&&b?w:0)},this.setContent=function(t){D(".modal-content",h).innerHTML=t},this.update=function(){E(h,"in")&&(q(),N())},!o||"Modal"in o||R(o,"click",Q),y.content&&y.setContent(y.content),o?(o.Modal=y,h.modalTrigger=o):h.Modal=y}};a[g](["Modal",Q,'[data-toggle="modal"]']);var V=function(i,o){i=D(i),o=o||{};var a=i[c]("data-trigger"),d=i[c]("data-animation"),f=i[c]("data-placement"),u=i[c]("data-dismissible"),h=i[c]("data-delay"),g=i[c]("data-container"),m='<button type="button" class="close">×</button>',v=D(o.container),T=D(g),x=S(i,".modal"),C=S(i,"."+k),A=S(i,".navbar-fixed-bottom");this.template=o.template?o.template:null,this.trigger=o.trigger?o.trigger:a||"hover",this[r]=o[r]&&"fade"!==o[r]?o[r]:d||"fade",this.placement=o.placement?o.placement:f||b,this.delay=parseInt(o.delay||h)||200,this.dismissible=!(!o.dismissible&&"true"!==u),this.container=v||(T||(C||(A||(x||e[n]))));var L=this,I=i[c]("data-title")||null,N=i[c]("data-content")||null;if(N||this.template){var M=null,P=0,z=this.placement,q=function(t){null!==M&&t[l]===D(".close",M)&&L.hide()},F=function(){L.container.removeChild(M),P=null,M=null},X=function(){if(I=i[c]("data-title"),N=i[c]("data-content"),M=e.createElement("div"),null!==N&&null===L.template){if(M[s]("role","tooltip"),null!==I){var t=e.createElement("h3");t[s]("class","popover-title"),t.innerHTML=L.dismissible?I+m:I,M.appendChild(t)}var n=e.createElement("div"),o=e.createElement("div");n[s]("class","arrow"),o[s]("class","popover-content"),M.appendChild(n),M.appendChild(o),o.innerHTML=L.dismissible&&null===I?N+m:N}else{var a=e.createElement("div");a.innerHTML=L.template,M.innerHTML=a.firstChild.innerHTML}L.container.appendChild(M),M[p].display="block",M[s]("class","popover "+z+" "+L[r])},Y=function(){!E(M,"in")&&B(M,"in")},G=function(){U(i,M,z,L.container)},J=function(n){"click"!=L.trigger&&"focus"!=L.trigger||!L.dismissible&&n(i,"blur",L.hide),L.dismissible&&n(e,"click",q),!w&&n(t,"resize",L.hide)},K=function(){J(R),j.call(i,"shown","popover")},Q=function(){J(W),F(),j.call(i,"hidden","popover")};this.toggle=function(){null===M?L.show():L.hide()},this.show=function(){clearTimeout(P),P=setTimeout(function(){null===M&&(z=L.placement,X(),G(),Y(),j.call(i,"show","popover"),L[r]?O(M,K):K())},20)},this.hide=function(){clearTimeout(P),P=setTimeout(function(){M&&null!==M&&E(M,"in")&&(j.call(i,"hide","popover"),H(M,"in"),L[r]?O(M,Q):Q())},L.delay)},"Popover"in i||("hover"===L.trigger?(R(i,y[0],L.show),L.dismissible||R(i,y[1],L.hide)):"click"!=L.trigger&&"focus"!=L.trigger||R(i,L.trigger,L.toggle)),i.Popover=L}};a[g](["Popover",V,'[data-toggle="popover"]']);var Z=function(e,i){e=D(e);var n=D(e[c]("data-target")),o=e[c]("data-offset");if(i=i||{},i[l]||n){for(var a,r=this,s=i[l]&&D(i[l])||n,u=s&&s.getElementsByTagName("A"),h=parseInt(o||i.offset)||10,p=[],v=[],y=e.offsetHeight<e.scrollHeight?e:t,T=y===t,x=0,k=u[f];x<k;x++){var C=u[x][c]("href"),A=C&&"#"===C.charAt(0)&&"#"!==C.slice(-1)&&D(C);A&&(p[g](u[x]),v[g](A))}var L=function(t){var i=p[t][d],n=v[t],o=S(i,".dropdown"),l=T&&n.getBoundingClientRect(),r=E(i,m)||!1,c=(T?l[b]+a:n.offsetTop)-h,s=T?l.bottom+a-h:v[t+1]?v[t+1].offsetTop-h:e.scrollHeight,f=a>=c&&s>a;if(!r&&f)"LI"!==i.tagName||E(i,m)||(B(i,m),o&&!E(o,m)&&B(o,m),j.call(e,"activate","scrollspy",p[t]));else if(f){if(!f&&!r||r&&f)return}else"LI"===i.tagName&&E(i,m)&&(H(i,m),o&&E(o,m)&&!M(i[d],m).length&&H(o,m))},I=function(){a=T?q().y:e.scrollTop;for(var t=0,i=p[f];t<i;t++)L(t)};this.refresh=function(){I()},"ScrollSpy"in e||(R(y,"scroll",r.refresh),!w&&R(t,"resize",r.refresh)),r.refresh(),e.ScrollSpy=r}};a[g](["ScrollSpy",Z,'[data-spy="scroll"]']);var $=function(t,e){t=D(t);var i=t[c]("data-height");e=e||{},this.height=!!C&&(e.height||"true"===i);var n,o,a,l,r,u,h,g=this,b=S(t,".nav"),w=!1,y=b&&D(".dropdown",b),T=function(){w[p].height="",H(w,"collapsing"),b.isAnimating=!1},x=function(){w?u?T():setTimeout(function(){w[p].height=h+"px",w.offsetWidth,O(w,T)},50):b.isAnimating=!1,j.call(n,"shown","tab",o)},k=function(){w&&(a[p].float=v,l[p].float=v,r=a.scrollHeight),B(l,m),j.call(n,"show","tab",o),H(a,m),j.call(o,"hidden","tab",n),w&&(h=l.scrollHeight,u=h===r,B(w,"collapsing"),w[p].height=r+"px",w.offsetHeight,a[p].float="",l[p].float=""),E(l,"fade")?setTimeout(function(){B(l,"in"),O(l,x)},20):x()};if(b){b.isAnimating=!1;var A=function(){var t,e=M(b,m);return 1!==e[f]||E(e[0],"dropdown")?e[f]>1&&(t=e[e[f]-1]):t=e[0],t.getElementsByTagName("A")[0]},L=function(){return D(A()[c]("href"))},I=function(t){t.preventDefault(),n=t.currentTarget||this,!b.isAnimating&&!E(n[d],m)&&g.show()};this.show=function(){n=n||t,l=D(n[c]("href")),o=A(),a=L(),b.isAnimating=!0,H(o[d],m),o[s]("aria-expanded","false"),B(n[d],m),n[s]("aria-expanded","true"),y&&(E(t[d][d],"dropdown-menu")?E(y,m)||B(y,m):E(y,m)&&H(y,m)),j.call(o,"hide","tab",n),E(a,"fade")?(H(a,"in"),O(a,k)):k()},"Tab"in t||R(t,"click",I),g.height&&(w=L()[d]),t.Tab=g}};a[g](["Tab",$,'[data-toggle="tab"]']);var _=function(i,o){i=D(i),o=o||{};var a=i[c]("data-animation"),l=i[c]("data-placement"),d=i[c]("data-delay"),f=i[c]("data-container"),u=D(o.container),h=D(f),p=S(i,".modal"),g=S(i,"."+k),m=S(i,".navbar-fixed-bottom");this[r]=o[r]&&"fade"!==o[r]?o[r]:a||"fade",this.placement=o.placement?o.placement:l||b,this.delay=parseInt(o.delay||d)||200,this.container=u||(h||(g||(m||(p||e[n]))));var v=this,T=0,x=this.placement,C=null,A=i[c]("title")||i[c]("data-title")||i[c]("data-original-title");if(A&&""!=A){var L=function(){v.container.removeChild(C),C=null,T=null},I=function(){if(!(A=i[c]("title")||i[c]("data-title")||i[c]("data-original-title"))||""==A)return!1;C=e.createElement("div"),C[s]("role","tooltip");var t=e.createElement("div"),n=e.createElement("div");t[s]("class","tooltip-arrow"),n[s]("class","tooltip-inner"),C.appendChild(t),C.appendChild(n),n.innerHTML=A,v.container.appendChild(C),C[s]("class","tooltip "+x+" "+v[r])},N=function(){U(i,C,x,v.container)},M=function(){!E(C,"in")&&B(C,"in")},P=function(){j.call(i,"shown","tooltip"),!w&&R(t,"resize",v.hide)},z=function(){!w&&W(t,"resize",v.hide),L(),j.call(i,"hidden","tooltip")};this.show=function(){clearTimeout(T),T=setTimeout(function(){if(null===C){if(x=v.placement,0==I())return;N(),M(),j.call(i,"show","tooltip"),v[r]?O(C,P):P()}},20)},this.hide=function(){clearTimeout(T),T=setTimeout(function(){C&&E(C,"in")&&(j.call(i,"hide","tooltip"),H(C,"in"),v[r]?O(C,z):z())},v.delay)},this.toggle=function(){C?v.hide():v.show()},"Tooltip"in i||(i[s]("data-original-title",A),i.removeAttribute("title"),R(i,y[0],v.show),R(i,y[1],v.hide)),i.Tooltip=v}};a[g](["Tooltip",_,'[data-toggle="tooltip"]']);var tt=function(t,e){for(var i=0,n=e[f];i<n;i++)new t(e[i])},et=o.initCallback=function(t){t=t||e;for(var i=0,n=a[f];i<n;i++)tt(a[i][1],t.querySelectorAll(a[i][2]))};return e[n]?et():R(e,"DOMContentLoaded",function(){et()}),{Affix:F,Alert:X,Button:Y,Carousel:G,Collapse:J,Dropdown:K,Modal:Q,Popover:V,ScrollSpy:Z,Tab:$,Tooltip:_}}); | ||
// Native Javascript for Bootstrap 3 v2.0.26 | © 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 i=e();t.Affix=i.Affix,t.Alert=i.Alert,t.Button=i.Button,t.Carousel=i.Carousel,t.Collapse=i.Collapse,t.Dropdown=i.Dropdown,t.Modal=i.Modal,t.Popover=i.Popover,t.ScrollSpy=i.ScrollSpy,t.Tab=i.Tab,t.Tooltip=i.Tooltip}}(this,function(){"use strict";var t="undefined"!=typeof global?global:this||window,e=document,i=e.documentElement,n="body",o=t.BSN={},a=o.supports=[],l="target",r="animation",c="getAttribute",s="setAttribute",d="parentNode",f="length",u="Transition",h="Webkit",p="style",g="push",m="active",v="left",b="top",y=!("opacity"in i[p]),w="onmouseleave"in e?["mouseenter","mouseleave"]:["mouseover","mouseout"],T=/\b(top|bottom|left|right)+/,x=0,k="navbar-fixed-top",C=h+u in i[p]||u.toLowerCase()in i[p],A=h+u in i[p]?h.toLowerCase()+u+"End":u.toLowerCase()+"end",I=h+"Duration"in i[p]?h.toLowerCase()+u+"Duration":u.toLowerCase()+"Duration",L={start:"touchstart",end:"touchend",move:"touchmove"},B=function(t){t.focus?t.focus():t.setActive()},H=function(t,e){t.classList.add(e)},E=function(t,e){t.classList.remove(e)},N=function(t,e){return t.classList.contains(e)},M=function(t){for(var e=[],i=0,n=t[f];i<n;i++)e[g](t[i]);return e},D=function(t,e){return M(t[y?"querySelectorAll":"getElementsByClassName"](y?"."+e.replace(/\s(?=[a-z])/g,"."):e))},S=function(t,i){var n=i||e;return"object"==typeof t?t:n.querySelector(t)},R=function(t,i){var n=i.charAt(0),o=i.substr(1);if("."===n){for(;t&&t!==e;t=t[d])if(null!==S(i,t[d])&&N(t,o))return t}else if("#"===n)for(;t&&t!==e;t=t[d])if(t.id===o)return t;return!1},W=function(t,e,i){t.addEventListener(e,i,!1)},P=function(t,e,i){t.removeEventListener(e,i,!1)},z=function(t,e,i){W(t,e,function n(o){i(o),P(t,e,n)})},O=function(e){var i=C?t.getComputedStyle(e)[I]:0;return i=parseFloat(i),i="number"!=typeof i||isNaN(i)?0:1e3*i},X=function(t,e){var i=0;O(t)?z(t,A,function(t){!i&&e(t),i=1}):setTimeout(function(){!i&&e(),i=1},17)},j=function(t,e,i){var n=new CustomEvent(t+".bs."+e);n.relatedTarget=i,this.dispatchEvent(n)},q=function(){return{y:t.pageYOffset||i.scrollTop,x:t.pageXOffset||i.scrollLeft}},U=function(t,o,a,l){var r,c,s,d,f={w:o.offsetWidth,h:o.offsetHeight},u=i.clientWidth||e[n].clientWidth,h=i.clientHeight||e[n].clientHeight,g=t.getBoundingClientRect(),m=l===e[n]?q():{x:l.offsetLeft+l.scrollLeft,y:l.offsetTop+l.scrollTop},y={w:g.right-g[v],h:g.bottom-g[b]},w=S('[class*="arrow"]',o),x=g[b]+y.h/2-f.h/2<0,k=g[v]+y.w/2-f.w/2<0,C=g[v]+f.w/2+y.w/2>=u,A=g[b]+f.h/2+y.h/2>=h,I=g[b]-f.h<0,L=g[v]-f.w<0,B=g[b]+f.h+y.h>=h,H=g[v]+f.w+y.w>=u;a=(a===v||"right"===a)&&L&&H?b:a,a=a===b&&I?"bottom":a,a="bottom"===a&&B?b:a,a=a===v&&L?"right":a,a="right"===a&&H?v:a,a===v||"right"===a?(c=a===v?g[v]+m.x-f.w:g[v]+m.x+y.w,x?(r=g[b]+m.y,s=y.h/2):A?(r=g[b]+m.y-f.h+y.h,s=f.h-y.h/2):r=g[b]+m.y-f.h/2+y.h/2):a!==b&&"bottom"!==a||(r=a===b?g[b]+m.y-f.h:g[b]+m.y+y.h,k?(c=0,d=g[v]+y.w/2):C?(c=u-1.01*f.w,d=f.w-(u-g[v])+y.w/2):c=g[v]+m.x-f.w/2+y.w/2),o[p][b]=r+"px",o[p][v]=c+"px",s&&(w[p][b]=s+"px"),d&&(w[p][v]=d+"px"),-1===o.className.indexOf(a)&&(o.className=o.className.replace(T,a))};o.version="2.0.26";var F=function(o,a){o=S(o),a=a||{};var r=o[c]("data-target"),s=o[c]("data-offset-top"),d=o[c]("data-offset-bottom"),f="affix",u="function";if(this[l]=a[l]?S(a[l]):S(r)||null,this.offsetTop=a.offsetTop?a.offsetTop:parseInt(s)||0,this.offsetBottom=a.offsetBottom?a.offsetBottom:parseInt(d)||0,this[l]||this.offsetTop||this.offsetBottom){var h,p,g,m,v,w,T=this,x=!1,k=!1,C=function(){return Math.max(e[n].scrollHeight,e[n].offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight)},A=function(){return null!==T[l]?T[l].getBoundingClientRect()[b]+m:T.offsetTop?parseInt(typeof T.offsetTop===u?T.offsetTop():T.offsetTop||0):void 0},I=function(){if(T.offsetBottom)return g-o.offsetHeight-parseInt(typeof T.offsetBottom===u?T.offsetBottom():T.offsetBottom||0)},L=function(){g=C(),m=parseInt(q().y,0),h=A(),p=I(),v=parseInt(h)-m<0&&m>parseInt(h),w=parseInt(p)-m<0&&m>parseInt(p)},B=function(){x||N(o,f)||(j.call(o,f,f),j.call(o,"affix-top",f),H(o,f),x=!0,j.call(o,"affixed",f),j.call(o,"affixed-top",f))},M=function(){x&&N(o,f)&&(E(o,f),x=!1)},D=function(){k||N(o,"affix-bottom")||(j.call(o,f,f),j.call(o,"affix-bottom",f),H(o,"affix-bottom"),k=!0,j.call(o,"affixed",f),j.call(o,"affixed-bottom",f))},R=function(){k&&N(o,"affix-bottom")&&(E(o,"affix-bottom"),k=!1)},P=function(){w?(v&&M(),D()):(R(),v?B():M())};this.update=function(){L(),P()},"Affix"in o||(W(t,"scroll",T.update),!y&&W(t,"resize",T.update)),o.Affix=T,T.update()}};a[g](["Affix",F,'[data-spy="affix"]']);var Y=function(t){t=S(t);var e=this,i=R(t,".alert"),n=function(){N(i,"fade")?X(i,a):a()},o=function(n){i=R(n[l],".alert"),(t=S('[data-dismiss="alert"]',i))&&i&&(t===n[l]||t.contains(n[l]))&&e.close()},a=function(){j.call(i,"closed","alert"),P(t,"click",o),i[d].removeChild(i)};this.close=function(){i&&t&&N(i,"in")&&(j.call(i,"close","alert"),E(i,"in"),i&&n())},"Alert"in t||W(t,"click",o),t.Alert=e};a[g](["Alert",Y,'[data-dismiss="alert"]']);var G=function(t,i){t=S(t),i=i||null;var n=!1,o="checked",a=function(t){32===(t.which||t.keyCode)&&t[l]===e.activeElement&&u(t)},r=function(t){32===(t.which||t.keyCode)&&t.preventDefault()},u=function(e){var i="LABEL"===e[l].tagName?e[l]:"LABEL"===e[l][d].tagName?e[l][d]:null;if(i){var a=e[l],r=D(a[d],"btn"),u=i.getElementsByTagName("INPUT")[0];if(u){if("checkbox"===u.type&&(u[o]?(E(i,m),u[c](o),u.removeAttribute(o),u[o]=!1):(H(i,m),u[c](o),u[s](o,o),u[o]=!0),n||(n=!0,j.call(u,"change","button"),j.call(t,"change","button"))),"radio"===u.type&&!n&&!u[o]){H(i,m),u[s](o,o),u[o]=!0,j.call(u,"change","button"),j.call(t,"change","button"),n=!0;for(var h=0,p=r[f];h<p;h++){var g=r[h],v=g.getElementsByTagName("INPUT")[0];g!==i&&N(g,m)&&(E(g,m),v.removeAttribute(o),v[o]=!1,j.call(v,"change","button"))}}setTimeout(function(){n=!1},50)}}};if(N(t,"btn"))null!==i&&("reset"!==i?function(){i&&"reset"!==i&&("loading"===i&&(H(t,"disabled"),t[s]("disabled","disabled"),t[s]("data-original-text",t.innerHTML.trim())),t.innerHTML=t[c]("data-"+i+"-text"))}():function(){t[c]("data-original-text")&&((N(t,"disabled")||"disabled"===t[c]("disabled"))&&(E(t,"disabled"),t.removeAttribute("disabled")),t.innerHTML=t[c]("data-original-text"))}());else{"Button"in t||(W(t,"click",u),S("[tabindex]",t)&&W(t,"keyup",a),W(t,"keydown",r));for(var h=D(t,"btn"),p=h[f],g=0;g<p;g++)!N(h[g],m)&&S("input",h[g])[c](o)&&H(h[g],m);t.Button=this}};a[g](["Button",G,'[data-toggle="buttons"]']);var J=function(e,n){e=S(e),n=n||{};var o=e[c]("data-interval"),a=n.interval,r="false"===o?0:parseInt(o),s="hover"===e[c]("data-pause")||!1,d="true"===e[c]("data-keyboard")||!1;this.keyboard=!0===n.keyboard||d,this.pause=!("hover"!==n.pause&&!s)&&"hover",this.interval="number"==typeof a?a:!1===a||0===r||!1===r?0:isNaN(r)?5e3:r;var u=this,h=e.index=0,p=e.timer=0,g=!1,y=!1,T=null,x=null,k=null,A=D(e,"item"),I=A[f],B=this.direction=v,M=D(e,"carousel-control"),R=M[0],z=M[1],O=S(".carousel-indicators",e),q=O&&O.getElementsByTagName("LI")||[];if(!(I<2)){var U=function(){!1===u.interval||N(e,"paused")||(H(e,"paused"),!g&&(clearInterval(p),p=null))},F=function(){!1!==u.interval&&N(e,"paused")&&(E(e,"paused"),!g&&(clearInterval(p),p=null),!g&&u.cycle())},Y=function(t){if(t.preventDefault(),!g){var e=t[l];if(!e||N(e,m)||!e[c]("data-slide-to"))return!1;h=parseInt(e[c]("data-slide-to"),10),u.slideTo(h)}},G=function(t){if(t.preventDefault(),!g){var e=t.currentTarget||t.srcElement;e===z?h++:e===R&&h--,u.slideTo(h)}},J=function(t){if(!g){switch(t.which){case 39:h++;break;case 37:h--;break;default:return}u.slideTo(h)}},K=function(t){t(e,L.move,V),t(e,L.end,Z)},Q=function(t){y||(T=parseInt(t.touches[0].pageX),e.contains(t[l])&&(y=!0,K(W)))},V=function(t){return y?(x=parseInt(t.touches[0].pageX),"touchmove"===t.type&&t.touches[f]>1?(t.preventDefault(),!1):void 0):void t.preventDefault()},Z=function(t){if(y&&!g&&(k=x||parseInt(t.touches[0].pageX),y)){if((!e.contains(t[l])||!e.contains(t.relatedTarget))&&Math.abs(T-k)<75)return!1;x<T?h++:x>T&&h--,y=!1,u.slideTo(h),K(P)}},$=function(){var n=e.getBoundingClientRect(),o=t.innerHeight||i.clientHeight;return n[b]<=o&&n.bottom>=0},_=function(t){for(var e=0,i=q[f];e<i;e++)E(q[e],m);q[t]&&H(q[t],m)};this.cycle=function(){p&&(clearInterval(p),p=null),p=setInterval(function(){$()&&(h++,u.slideTo(h))},this.interval)},this.slideTo=function(t){if(!g){var i,n=this.getActiveIndex();n!==t&&(n<t||0===n&&t===I-1?B=u.direction=v:(n>t||n===I-1&&0===t)&&(B=u.direction="right"),t<0?t=I-1:t>=I&&(t=0),h=t,i=B===v?"next":"prev",j.call(e,"slide","carousel",A[t]),g=!0,clearInterval(p),p=null,_(t),C&&N(e,"slide")?(H(A[t],i),A[t].offsetWidth,H(A[t],B),H(A[n],B),X(A[t],function(o){var a=o&&o[l]!==A[t]?1e3*o.elapsedTime+100:20;g&&setTimeout(function(){g=!1,H(A[t],m),E(A[n],m),E(A[t],i),E(A[t],B),E(A[n],B),j.call(e,"slid","carousel",A[t]),u.interval&&!N(e,"paused")&&u.cycle()},a)})):(H(A[t],m),A[t].offsetWidth,E(A[n],m),setTimeout(function(){g=!1,u.interval&&!N(e,"paused")&&u.cycle(),j.call(e,"slid","carousel",A[t])},100)))}},this.getActiveIndex=function(){return A.indexOf(D(e,"item active")[0])||0},"Carousel"in e||(u.pause&&u.interval&&(W(e,w[0],U),W(e,w[1],F),W(e,L.start,U),W(e,L.end,F)),A[f]>1&&W(e,L.start,Q),z&&W(z,"click",G),R&&W(R,"click",G),O&&W(O,"click",Y),u.keyboard&&W(t,"keydown",J)),u.getActiveIndex()<0&&(A[f]&&H(A[0],m),q[f]&&_(0)),u.interval&&u.cycle(),e.Carousel=u}};a[g](["Carousel",J,'[data-ride="carousel"]']);var K=function(t,e){t=S(t),e=e||{};var i,n,o=null,a=null,l=this,r=t[c]("data-parent"),d=function(t,e){j.call(t,"show","collapse"),t.isAnimating=!0,H(t,"collapsing"),E(t,"collapse"),t[p].height=t.scrollHeight+"px",X(t,function(){t.isAnimating=!1,t[s]("aria-expanded","true"),e[s]("aria-expanded","true"),E(t,"collapsing"),H(t,"collapse"),H(t,"in"),t[p].height="",j.call(t,"shown","collapse")})},f=function(t,e){j.call(t,"hide","collapse"),t.isAnimating=!0,t[p].height=t.scrollHeight+"px",E(t,"collapse"),E(t,"in"),H(t,"collapsing"),t.offsetWidth,t[p].height="0px",X(t,function(){t.isAnimating=!1,t[s]("aria-expanded","false"),e[s]("aria-expanded","false"),E(t,"collapsing"),H(t,"collapse"),t[p].height="",j.call(t,"hidden","collapse")})};this.toggle=function(t){t.preventDefault(),N(a,"in")?l.hide():l.show()},this.hide=function(){a.isAnimating||(f(a,t),H(t,"collapsed"))},this.show=function(){o&&(i=S(".collapse.in",o),n=i&&(S('[data-target="#'+i.id+'"]',o)||S('[href="#'+i.id+'"]',o))),(!a.isAnimating||i&&!i.isAnimating)&&(n&&i!==a&&(f(i,n),H(n,"collapsed")),d(a,t),E(t,"collapsed"))},"Collapse"in t||W(t,"click",l.toggle),a=function(){var e=t.href&&t[c]("href"),i=t[c]("data-target"),n=e||i&&"#"===i.charAt(0)&&i;return n&&S(n)}(),a.isAnimating=!1,o=S(e.parent)||r&&R(t,r),t.Collapse=l};a[g](["Collapse",K,'[data-toggle="collapse"]']);var Q=function(t,i){t=S(t),this.persist=!0===i||"true"===t[c]("data-persist")||!1;var n=this,o=t[d],a="open",r=null,u=S(".dropdown-menu",o),h=function(){for(var t=u.children,e=[],i=0;i<t[f];i++)t[i].children[f]&&"A"===t[i].children[0].tagName&&e[g](t[i]);return e}(),p=function(t){(t.href&&"#"===t.href.slice(-1)||t[d]&&t[d].href&&"#"===t[d].href.slice(-1))&&this.preventDefault()},m=function(){var i=t[a]?W:P;i(e,"click",v),i(e,"keydown",y),i(e,"keyup",w)},v=function(e){var i=e[l],o=i&&("Dropdown"in i||"Dropdown"in i[d]);(i!==u&&!u.contains(i)||!n.persist&&!o)&&(r=i===t||t.contains(i)?t:null,x(),p.call(e,i))},b=function(e){r=t,T(),p.call(e,e[l])},y=function(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()},w=function(i){var o=i.which||i.keyCode,l=e.activeElement,c=h.indexOf(l[d]),s=l===t,p=u.contains(l),g=l[d][d]===u;(g||s)&&(c=s?0:38===o?c>1?c-1:0:40===o&&c<h[f]-1?c+1:c,h[c]&&B(h[c].children[0])),(h[f]&&g||!h[f]&&(p||s)||!p)&&t[a]&&27===o&&(n.toggle(),r=null)},T=function(){j.call(o,"show","dropdown",r),H(o,a),t[s]("aria-expanded",!0),j.call(o,"shown","dropdown",r),t[a]=!0,P(t,"click",b),setTimeout(function(){B(u.getElementsByTagName("INPUT")[0]||t),m()},1)},x=function(){j.call(o,"hide","dropdown",r),E(o,a),t[s]("aria-expanded",!1),j.call(o,"hidden","dropdown",r),t[a]=!1,m(),B(t),setTimeout(function(){W(t,"click",b)},1)};t[a]=!1,this.toggle=function(){N(o,a)&&t[a]?x():T()},"Dropdown"in t||(!1 in u&&u[s]("tabindex","0"),W(t,"click",b)),t.Dropdown=n};a[g](["Dropdown",Q,'[data-toggle="dropdown"]']);var V=function(o,a){o=S(o);var r=o[c]("data-target")||o[c]("href"),u=S(r),h=N(o,"modal")?o:u;if(N(o,"modal")&&(o=null),h){a=a||{},this.keyboard=!1!==a.keyboard&&"false"!==h[c]("data-keyboard"),this.backdrop="static"!==a.backdrop&&"static"!==h[c]("data-backdrop")||"static",this.backdrop=!1!==a.backdrop&&"false"!==h[c]("data-backdrop")&&this.backdrop,this.content=a.content;var g,m,b,y,w=this,T=null,A=D(i,k).concat(D(i,"navbar-fixed-bottom")),I=function(){var e=i.getBoundingClientRect();return t.innerWidth||e.right-Math.abs(e[v])},L=function(){var i,o=e[n].currentStyle||t.getComputedStyle(e[n]),a=parseInt(o.paddingRight,10);if(g&&(e[n][p].paddingRight=a+m+"px",h[p].paddingRight=m+"px",A[f]))for(var l=0;l<A[f];l++)i=(A[l].currentStyle||t.getComputedStyle(A[l])).paddingRight,A[l][p].paddingRight=parseInt(i)+m+"px"},M=function(){if(e[n][p].paddingRight="",h[p].paddingRight="",A[f])for(var t=0;t<A[f];t++)A[t][p].paddingRight=""},R=function(){var t,i=e.createElement("div");return i.className="modal-scrollbar-measure",e[n].appendChild(i),t=i.offsetWidth-i.clientWidth,e[n].removeChild(i),t},z=function(){g=e[n].clientWidth<I(),m=R()},q=function(){x=1;var t=e.createElement("div");null===(b=S(".modal-backdrop"))&&(t[s]("class","modal-backdrop fade"),b=t,e[n].appendChild(b))},U=function(){b=S(".modal-backdrop"),b&&null!==b&&"object"==typeof b&&(x=0,e[n].removeChild(b),b=null),j.call(h,"hidden","modal")},F=function(){N(h,"in")?W(e,"keydown",V):P(e,"keydown",V)},Y=function(){N(h,"in")?W(t,"resize",w.update):P(t,"resize",w.update)},G=function(){N(h,"in")?W(h,"click",Z):P(h,"click",Z)},J=function(){Y(),G(),F(),B(h),j.call(h,"shown","modal",T)},K=function(){h[p].display="",o&&B(o),function(){D(e,"modal in")[0]||(M(),E(e[n],"modal-open"),b&&N(b,"fade")?(E(b,"in"),X(b,U)):U(),Y(),G(),F())}()},Q=function(t){var e=t[l];(e=e.hasAttribute("data-target")||e.hasAttribute("href")?e:e[d])!==o||N(h,"in")||(h.modalTrigger=o,T=o,w.show(),t.preventDefault())},V=function(t){var e=t.which||t.keyCode;w.keyboard&&27==e&&N(h,"in")&&w.hide()},Z=function(t){var e=t[l];N(h,"in")&&("modal"===e[d][c]("data-dismiss")||"modal"===e[c]("data-dismiss")||e===h&&"static"!==w.backdrop)&&(w.hide(),T=null,t.preventDefault())};this.toggle=function(){N(h,"in")?this.hide():this.show()},this.show=function(){j.call(h,"show","modal",T);var t=D(e,"modal in")[0];t&&t!==h&&("modalTrigger"in t&&t.modalTrigger.Modal.hide(),"Modal"in t&&t.Modal.hide()),this.backdrop&&!x&&q(),b&&x&&!N(b,"in")&&(b.offsetWidth,y=O(b),H(b,"in")),setTimeout(function(){h[p].display="block",z(),L(),H(e[n],"modal-open"),H(h,"in"),h[s]("aria-hidden",!1),N(h,"fade")?X(h,J):J()},C&&b?y:0)},this.hide=function(){j.call(h,"hide","modal"),b=S(".modal-backdrop"),y=b&&O(b),E(h,"in"),h[s]("aria-hidden",!0),setTimeout(function(){N(h,"fade")?X(h,K):K()},C&&b?y:0)},this.setContent=function(t){S(".modal-content",h).innerHTML=t},this.update=function(){N(h,"in")&&(z(),L())},!o||"Modal"in o||W(o,"click",Q),w.content&&w.setContent(w.content),o?(o.Modal=w,h.modalTrigger=o):h.Modal=w}};a[g](["Modal",V,'[data-toggle="modal"]']);var Z=function(i,o){i=S(i),o=o||{};var a=i[c]("data-trigger"),d=i[c]("data-animation"),f=i[c]("data-placement"),u=i[c]("data-dismissible"),h=i[c]("data-delay"),g=i[c]("data-container"),m='<button type="button" class="close">×</button>',v=S(o.container),T=S(g),x=R(i,".modal"),C=R(i,"."+k),A=R(i,".navbar-fixed-bottom");this.template=o.template?o.template:null,this.trigger=o.trigger?o.trigger:a||"hover",this[r]=o[r]&&"fade"!==o[r]?o[r]:d||"fade",this.placement=o.placement?o.placement:f||b,this.delay=parseInt(o.delay||h)||200,this.dismissible=!(!o.dismissible&&"true"!==u),this.container=v||(T||(C||(A||(x||e[n]))));var I=this,L=o.title||i[c]("data-title")||null,B=o.content||i[c]("data-content")||null;if(B||this.template){var M=null,D=0,z=this.placement,O=function(t){null!==M&&t[l]===S(".close",M)&&I.hide()},q=function(){I.container.removeChild(M),D=null,M=null},F=function(){if(L=i[c]("data-title"),B=i[c]("data-content"),M=e.createElement("div"),null!==B&&null===I.template){if(M[s]("role","tooltip"),null!==L){var t=e.createElement("h3");t[s]("class","popover-title"),t.innerHTML=I.dismissible?L+m:L,M.appendChild(t)}var n=e.createElement("div"),o=e.createElement("div");n[s]("class","arrow"),o[s]("class","popover-content"),M.appendChild(n),M.appendChild(o),o.innerHTML=I.dismissible&&null===L?B+m:B}else{var a=e.createElement("div");a.innerHTML=I.template,M.innerHTML=a.firstChild.innerHTML}I.container.appendChild(M),M[p].display="block",M[s]("class","popover "+z+" "+I[r])},Y=function(){!N(M,"in")&&H(M,"in")},G=function(){U(i,M,z,I.container)},J=function(n){"click"!=I.trigger&&"focus"!=I.trigger||!I.dismissible&&n(i,"blur",I.hide),I.dismissible&&n(e,"click",O),!y&&n(t,"resize",I.hide)},K=function(){J(W),j.call(i,"shown","popover")},Q=function(){J(P),q(),j.call(i,"hidden","popover")};this.toggle=function(){null===M?I.show():I.hide()},this.show=function(){clearTimeout(D),D=setTimeout(function(){null===M&&(z=I.placement,F(),G(),Y(),j.call(i,"show","popover"),I[r]?X(M,K):K())},20)},this.hide=function(){clearTimeout(D),D=setTimeout(function(){M&&null!==M&&N(M,"in")&&(j.call(i,"hide","popover"),E(M,"in"),I[r]?X(M,Q):Q())},I.delay)},"Popover"in i||("hover"===I.trigger?(W(i,w[0],I.show),I.dismissible||W(i,w[1],I.hide)):"click"!=I.trigger&&"focus"!=I.trigger||W(i,I.trigger,I.toggle)),i.Popover=I}};a[g](["Popover",Z,'[data-toggle="popover"]']);var $=function(e,i){e=S(e);var n=S(e[c]("data-target")),o=e[c]("data-offset");if(i=i||{},i[l]||n){for(var a,r=this,s=i[l]&&S(i[l])||n,u=s&&s.getElementsByTagName("A"),h=parseInt(i.offset||o)||10,p=[],v=[],w=e.offsetHeight<e.scrollHeight?e:t,T=w===t,x=0,k=u[f];x<k;x++){var C=u[x][c]("href"),A=C&&"#"===C.charAt(0)&&"#"!==C.slice(-1)&&S(C);A&&(p[g](u[x]),v[g](A))}var I=function(t){var i=p[t][d],n=v[t],o=R(i,".dropdown"),l=T&&n.getBoundingClientRect(),r=N(i,m)||!1,c=(T?l[b]+a:n.offsetTop)-h,s=T?l.bottom+a-h:v[t+1]?v[t+1].offsetTop-h:e.scrollHeight,f=a>=c&&s>a;if(!r&&f)"LI"!==i.tagName||N(i,m)||(H(i,m),o&&!N(o,m)&&H(o,m),j.call(e,"activate","scrollspy",p[t]));else if(f){if(!f&&!r||r&&f)return}else"LI"===i.tagName&&N(i,m)&&(E(i,m),o&&N(o,m)&&!D(i[d],m).length&&E(o,m))},L=function(){a=T?q().y:e.scrollTop;for(var t=0,i=p[f];t<i;t++)I(t)};this.refresh=function(){L()},"ScrollSpy"in e||(W(w,"scroll",r.refresh),!y&&W(t,"resize",r.refresh)),r.refresh(),e.ScrollSpy=r}};a[g](["ScrollSpy",$,'[data-spy="scroll"]']);var _=function(t,e){t=S(t);var i=t[c]("data-height");e=e||{},this.height=!!C&&(e.height||"true"===i);var n,o,a,l,r,u,h,g=this,b=R(t,".nav"),y=!1,w=b&&S(".dropdown",b),T=function(){y[p].height="",E(y,"collapsing"),b.isAnimating=!1},x=function(){y?u?T():setTimeout(function(){y[p].height=h+"px",y.offsetWidth,X(y,T)},50):b.isAnimating=!1,j.call(n,"shown","tab",o)},k=function(){y&&(a[p].float=v,l[p].float=v,r=a.scrollHeight),H(l,m),j.call(n,"show","tab",o),E(a,m),j.call(o,"hidden","tab",n),y&&(h=l.scrollHeight,u=h===r,H(y,"collapsing"),y[p].height=r+"px",y.offsetHeight,a[p].float="",l[p].float=""),N(l,"fade")?setTimeout(function(){H(l,"in"),X(l,x)},20):x()};if(b){b.isAnimating=!1;var A=function(){var t,e=D(b,m);return 1!==e[f]||N(e[0],"dropdown")?e[f]>1&&(t=e[e[f]-1]):t=e[0],t.getElementsByTagName("A")[0]},I=function(){return S(A()[c]("href"))},L=function(t){t.preventDefault(),n=t.currentTarget||this,!b.isAnimating&&!N(n[d],m)&&g.show()};this.show=function(){n=n||t,l=S(n[c]("href")),o=A(),a=I(),b.isAnimating=!0,E(o[d],m),o[s]("aria-expanded","false"),H(n[d],m),n[s]("aria-expanded","true"),w&&(N(t[d][d],"dropdown-menu")?N(w,m)||H(w,m):N(w,m)&&E(w,m)),j.call(o,"hide","tab",n),N(a,"fade")?(E(a,"in"),X(a,k)):k()},"Tab"in t||W(t,"click",L),g.height&&(y=I()[d]),t.Tab=g}};a[g](["Tab",_,'[data-toggle="tab"]']);var tt=function(i,o){i=S(i),o=o||{};var a=i[c]("data-animation"),l=i[c]("data-placement"),d=i[c]("data-delay"),f=i[c]("data-container"),u=S(o.container),h=S(f),p=R(i,".modal"),g=R(i,"."+k),m=R(i,".navbar-fixed-bottom");this[r]=o[r]&&"fade"!==o[r]?o[r]:a||"fade",this.placement=o.placement?o.placement:l||b,this.delay=parseInt(o.delay||d)||200,this.container=u||(h||(g||(m||(p||e[n]))));var v=this,T=0,x=this.placement,C=null,A=i[c]("title")||i[c]("data-title")||i[c]("data-original-title");if(A&&""!=A){var I=function(){v.container.removeChild(C),C=null,T=null},L=function(){if(!(A=i[c]("title")||i[c]("data-title")||i[c]("data-original-title"))||""==A)return!1;C=e.createElement("div"),C[s]("role","tooltip");var t=e.createElement("div"),n=e.createElement("div");t[s]("class","tooltip-arrow"),n[s]("class","tooltip-inner"),C.appendChild(t),C.appendChild(n),n.innerHTML=A,v.container.appendChild(C),C[s]("class","tooltip "+x+" "+v[r])},B=function(){U(i,C,x,v.container)},M=function(){!N(C,"in")&&H(C,"in")},D=function(){j.call(i,"shown","tooltip"),!y&&W(t,"resize",v.hide)},z=function(){!y&&P(t,"resize",v.hide),I(),j.call(i,"hidden","tooltip")};this.show=function(){clearTimeout(T),T=setTimeout(function(){if(null===C){if(x=v.placement,0==L())return;B(),M(),j.call(i,"show","tooltip"),v[r]?X(C,D):D()}},20)},this.hide=function(){clearTimeout(T),T=setTimeout(function(){C&&N(C,"in")&&(j.call(i,"hide","tooltip"),E(C,"in"),v[r]?X(C,z):z())},v.delay)},this.toggle=function(){C?v.hide():v.show()},"Tooltip"in i||(i[s]("data-original-title",A),i.removeAttribute("title"),W(i,w[0],v.show),W(i,w[1],v.hide)),i.Tooltip=v}};a[g](["Tooltip",tt,'[data-toggle="tooltip"]']);var et=function(t,e){for(var i=0,n=e[f];i<n;i++)new t(e[i])},it=o.initCallback=function(t){t=t||e;for(var i=0,n=a[f];i<n;i++)et(a[i][1],t.querySelectorAll(a[i][2]))};return e[n]?it():W(e,"DOMContentLoaded",function(){it()}),{Affix:F,Alert:Y,Button:G,Carousel:J,Collapse:K,Dropdown:Q,Modal:V,Popover:Z,ScrollSpy:$,Tab:_,Tooltip:tt}}); |
@@ -5,3 +5,3 @@ | ||
//AFFIX DEFINITION | ||
// AFFIX DEFINITION | ||
var Affix = function(element, options) { | ||
@@ -8,0 +8,0 @@ |
@@ -39,2 +39,3 @@ | ||
isSliding = false, // isSliding prevents click event handlers when animation is running | ||
isTouch = false, startXPosition = null, currentXPosition = null, endXPosition = null, // touch and event coordinates | ||
slides = getElementsByClassName(element,'item'), total = slides[length], | ||
@@ -103,2 +104,49 @@ slideDirection = this[direction] = left, | ||
}, | ||
// touch events | ||
toggleTouchEvents = function(toggle){ | ||
toggle( element, touchEvents.move, touchMoveHandler ); | ||
toggle( element, touchEvents.end, touchEndHandler ); | ||
}, | ||
touchDownHandler = function(e) { | ||
if ( isTouch ) { return; } | ||
startXPosition = parseInt(e.touches[0].pageX); | ||
if ( element.contains(e[target]) ) { | ||
isTouch = true; | ||
toggleTouchEvents(on); | ||
} | ||
}, | ||
touchMoveHandler = function(e) { | ||
if ( !isTouch ) { e.preventDefault(); return; } | ||
currentXPosition = parseInt(e.touches[0].pageX); | ||
//cancel touch if more than one touches detected | ||
if ( e.type === 'touchmove' && e.touches[length] > 1 ) { | ||
e.preventDefault(); | ||
return false; | ||
} | ||
}, | ||
touchEndHandler = function(e) { | ||
if ( !isTouch || isSliding ) { return } | ||
endXPosition = currentXPosition || parseInt( e.touches[0].pageX ); | ||
if ( isTouch ) { | ||
if ( (!element.contains(e[target]) || !element.contains(e.relatedTarget) ) && Math.abs(startXPosition - endXPosition) < 75 ) { | ||
return false; | ||
} else { | ||
if ( currentXPosition < startXPosition ) { | ||
index++; | ||
} else if ( currentXPosition > startXPosition ) { | ||
index--; | ||
} | ||
isTouch = false; | ||
self.slideTo(index); | ||
} | ||
toggleTouchEvents(off); | ||
} | ||
}, | ||
// private methods | ||
@@ -209,5 +257,7 @@ isElementInScrollRange = function () { | ||
on( element, mouseHover[1], resumeHandler ); | ||
on( element, 'touchstart', pauseHandler ); | ||
on( element, 'touchend', resumeHandler ); | ||
on( element, touchEvents.start, pauseHandler ); | ||
on( element, touchEvents.end, resumeHandler ); | ||
} | ||
slides[length] > 1 && on( element, touchEvents.start, touchDownHandler ); | ||
@@ -214,0 +264,0 @@ rightArrow && on( rightArrow, clickEvent, controlsHandler ); |
@@ -85,4 +85,4 @@ | ||
activeCollapse = queryElement('.'+component+'.'+inClass,accordion); | ||
activeElement = activeCollapse && (queryElement('['+dataToggle+'="'+component+'"]['+dataTarget+'="#'+activeCollapse.id+'"]', accordion) | ||
|| queryElement('['+dataToggle+'="'+component+'"][href="#'+activeCollapse.id+'"]',accordion) ); | ||
activeElement = activeCollapse && (queryElement('['+dataTarget+'="#'+activeCollapse.id+'"]', accordion) | ||
|| queryElement('[href="#'+activeCollapse.id+'"]',accordion) ); | ||
} | ||
@@ -89,0 +89,0 @@ |
@@ -30,3 +30,2 @@ | ||
fade = 'fade', | ||
content = 'content', | ||
dataContent = 'data-content', | ||
@@ -62,4 +61,4 @@ dismissible = 'dismissible', | ||
var self = this, | ||
titleString = element[getAttribute](dataTitle) || null, | ||
contentString = element[getAttribute](dataContent) || null; | ||
titleString = options.title || element[getAttribute](dataTitle) || null, | ||
contentString = options.content || element[getAttribute](dataContent) || null; | ||
@@ -66,0 +65,0 @@ if ( !contentString && !this[template] ) return; // invalidate |
@@ -18,8 +18,10 @@ | ||
options = options || {}; | ||
if ( !options[target] && !targetData ) { return; } // invalidate | ||
// invalidate | ||
if ( !options[target] && !targetData ) { return; } | ||
// event targets, constants | ||
var self = this, spyTarget = options[target] && queryElement(options[target]) || targetData, | ||
links = spyTarget && spyTarget[getElementsByTagName]('A'), | ||
offset = parseInt(offsetData || options['offset']) || 10, | ||
offset = parseInt(options['offset'] || offsetData) || 10, | ||
items = [], targetItems = [], scrollOffset, | ||
@@ -26,0 +28,0 @@ scrollTarget = element[offsetHeight] < element[scrollHeight] ? element : globalObject, // determine which is the real scrollTarget |
@@ -142,2 +142,5 @@ | ||
// touch since 2.0.26 | ||
touchEvents = { start: 'touchstart', end: 'touchend', move:'touchmove' }, | ||
// set new focus element since 2.0.3 | ||
@@ -204,8 +207,8 @@ setFocus = function(element){ | ||
duration = typeof duration === 'number' && !isNaN(duration) ? duration * 1000 : 0; | ||
return duration + 17; // we take a short offset to make sure we fire on the next frame after animation | ||
return duration; // we take a short offset to make sure we fire on the next frame after animation | ||
}, | ||
emulateTransitionEnd = function(element,handler){ // emulateTransitionEnd since 2.0.4 | ||
var called = 0, duration = getTransitionDurationFromElement(element); | ||
supportTransitions && one(element, transitionEndEvent, function(e){ handler(e); called = 1; }); | ||
setTimeout(function() { !called && handler(); }, duration + 17); | ||
duration ? one(element, transitionEndEvent, function(e){ !called && handler(e), called = 1; }) | ||
: setTimeout(function() { !called && handler(), called = 1; }, 17); | ||
}, | ||
@@ -212,0 +215,0 @@ bootstrapCustomEvent = function (eventName, componentName, related) { |
@@ -40,2 +40,3 @@ | ||
isSliding = false, // isSliding prevents click event handlers when animation is running | ||
isTouch = false, startXPosition = null, currentXPosition = null, endXPosition = null, // touch and event coordinates | ||
slides = getElementsByClassName(element,carouselItem), total = slides[length], | ||
@@ -104,2 +105,49 @@ slideDirection = this[direction] = left, | ||
}, | ||
// touch events | ||
toggleTouchEvents = function(toggle){ | ||
toggle( element, touchEvents.move, touchMoveHandler ); | ||
toggle( element, touchEvents.end, touchEndHandler ); | ||
}, | ||
touchDownHandler = function(e) { | ||
if ( isTouch ) { return; } | ||
startXPosition = parseInt(e.touches[0].pageX); | ||
if ( element.contains(e[target]) ) { | ||
isTouch = true; | ||
toggleTouchEvents(on); | ||
} | ||
}, | ||
touchMoveHandler = function(e) { | ||
if ( !isTouch ) { e.preventDefault(); return; } | ||
currentXPosition = parseInt(e.touches[0].pageX); | ||
//cancel touch if more than one touches detected | ||
if ( e.type === 'touchmove' && e.touches[length] > 1 ) { | ||
e.preventDefault(); | ||
return false; | ||
} | ||
}, | ||
touchEndHandler = function(e) { | ||
if ( !isTouch || isSliding ) { return } | ||
endXPosition = currentXPosition || parseInt( e.touches[0].pageX ); | ||
if ( isTouch ) { | ||
if ( (!element.contains(e[target]) || !element.contains(e.relatedTarget) ) && Math.abs(startXPosition - endXPosition) < 75 ) { | ||
return false; | ||
} else { | ||
if ( currentXPosition < startXPosition ) { | ||
index++; | ||
} else if ( currentXPosition > startXPosition ) { | ||
index--; | ||
} | ||
isTouch = false; | ||
self.slideTo(index); | ||
} | ||
toggleTouchEvents(off); | ||
} | ||
}, | ||
// private methods | ||
@@ -212,6 +260,8 @@ isElementInScrollRange = function () { | ||
on( element, mouseHover[1], resumeHandler ); | ||
on( element, 'touchstart', pauseHandler ); | ||
on( element, 'touchend', resumeHandler ); | ||
} | ||
on( element, touchEvents.start, pauseHandler ); | ||
on( element, touchEvents.end, resumeHandler ); | ||
} | ||
slides[length] > 1 && on( element, touchEvents.start, touchDownHandler ); | ||
rightArrow && on( rightArrow, clickEvent, controlsHandler ); | ||
@@ -218,0 +268,0 @@ leftArrow && on( leftArrow, clickEvent, controlsHandler ); |
@@ -85,4 +85,4 @@ | ||
activeCollapse = queryElement('.'+component+'.'+showClass,accordion); | ||
activeElement = activeCollapse && (queryElement('['+dataToggle+'="'+component+'"]['+dataTarget+'="#'+activeCollapse.id+'"]',accordion) | ||
|| queryElement('['+dataToggle+'="'+component+'"][href="#'+activeCollapse.id+'"]',accordion) ); | ||
activeElement = activeCollapse && (queryElement('['+dataTarget+'="#'+activeCollapse.id+'"]',accordion) | ||
|| queryElement('[href="#'+activeCollapse.id+'"]',accordion) ); | ||
} | ||
@@ -89,0 +89,0 @@ |
@@ -30,3 +30,2 @@ | ||
fade = 'fade', | ||
content = 'content', | ||
dataContent = 'data-content', | ||
@@ -83,4 +82,4 @@ dismissible = 'dismissible', | ||
createPopover = function() { | ||
titleString = element[getAttribute](dataTitle); // check content again | ||
contentString = element[getAttribute](dataContent); | ||
titleString = options.title || element[getAttribute](dataTitle) || null, | ||
contentString = options.content || element[getAttribute](dataContent) || null; | ||
@@ -87,0 +86,0 @@ popover = DOC[createElement](div); |
@@ -23,3 +23,3 @@ | ||
links = spyTarget && spyTarget[getElementsByTagName]('A'), | ||
offset = parseInt(offsetData || options['offset']) || 10, | ||
offset = parseInt(options['offset'] || offsetData) || 10, | ||
items = [], targetItems = [], scrollOffset, | ||
@@ -26,0 +26,0 @@ scrollTarget = element[offsetHeight] < element[scrollHeight] ? element : globalObject, // determine which is the real scrollTarget |
@@ -43,3 +43,2 @@ | ||
dataOriginalTitle = 'data-original-title', | ||
dataOriginalText = 'data-original-text', | ||
dataDismissible = 'data-dismissible', | ||
@@ -51,4 +50,2 @@ dataTrigger = 'data-trigger', | ||
dataDelay = 'data-delay', | ||
dataOffsetTop = 'data-offset-top', | ||
dataOffsetBottom = 'data-offset-bottom', | ||
@@ -143,2 +140,5 @@ // option keys | ||
// touch since 2.0.26 | ||
touchEvents = { start: 'touchstart', end: 'touchend', move:'touchmove' }, | ||
// set new focus element since 2.0.3 | ||
@@ -200,8 +200,8 @@ setFocus = function(element){ | ||
duration = typeof duration === 'number' && !isNaN(duration) ? duration * 1000 : 0; | ||
return duration + 17; // we take a short offset to make sure we fire on the next frame after animation | ||
return duration; // we take a short offset to make sure we fire on the next frame after animation | ||
}, | ||
emulateTransitionEnd = function(element,handler){ // emulateTransitionEnd since 2.0.4 | ||
var called = 0, duration = getTransitionDurationFromElement(element); | ||
supportTransitions && one(element, transitionEndEvent, function(e){ handler(e); called = 1; }); | ||
setTimeout(function() { !called && handler(); }, duration + 17); | ||
duration ? one(element, transitionEndEvent, function(e){ !called && handler(e), called = 1; }) | ||
: setTimeout(function() { !called && handler(), called = 1; }, 17); | ||
}, | ||
@@ -208,0 +208,0 @@ bootstrapCustomEvent = function (eventName, componentName, related) { |
{ | ||
"name": "bootstrap.native", | ||
"version": "2.0.25", | ||
"description": "Native Javascript for Bootstrap, the sweetest Javascript library without jQuery.", | ||
"version": "2.0.26", | ||
"description": "Native JavaScript for Bootstrap, the sweetest JavaScript library without jQuery.", | ||
"main": "dist/bootstrap-native.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "node build.js > dist/bootstrap-native.js && npm run build-min", | ||
"build-v4": "node build-v4.js > dist/bootstrap-native-v4.js && npm run build-v4-min", | ||
"build-min": "node build.js -m > dist/bootstrap-native.min.js", | ||
"build-v4-min": "node build-v4.js -m > dist/bootstrap-native-v4.min.js", | ||
"help": "node lib/build.js --help", | ||
"build": "node lib/build.js -v 3 > dist/bootstrap-native.js && npm run build-min", | ||
"build-v4": "node lib/build.js -v 4 > dist/bootstrap-native-v4.js && npm run build-v4-min", | ||
"build-min": "node lib/build.js -m -v 3 > dist/bootstrap-native.min.js", | ||
"build-v4-min": "node lib/build.js -m -v 4 > dist/bootstrap-native-v4.min.js", | ||
"watch": "onchange \"lib/*/**\" -i -- npm run build && npm run build-v4" | ||
@@ -36,2 +38,2 @@ }, | ||
} | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
359979
7274
1
37