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