aspnetcore/samples/StandaloneApp/wwwroot/css/bootstrap/bootstrap-native.min.js

3 lines
19 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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