diff --git a/dist/bootstrap-native-v4-esm.js b/dist/bootstrap-native-v4-esm.js index be4e5810..750e9e43 100644 --- a/dist/bootstrap-native-v4-esm.js +++ b/dist/bootstrap-native-v4-esm.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ @@ -2385,7 +2385,7 @@ function removeDataAPI(context) { }); } -var version = "3.0.15"; +var version = "4.0.0"; var indexV4 = { Alert: Alert, diff --git a/dist/bootstrap-native-v4-esm.min.js b/dist/bootstrap-native-v4-esm.min.js index 96d9827d..70157795 100644 --- a/dist/bootstrap-native-v4-esm.min.js +++ b/dist/bootstrap-native-v4-esm.min.js @@ -1,2 +1,2 @@ -// Native JavaScript for Bootstrap v3.0.15 | 2021 © dnp_theme | MIT-License -var t="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",e="webkitTransition"in document.head.style||"transition"in document.head.style,i="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",n="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty";function a(t){var a=getComputedStyle(t),o=a[n],s=a[i],l=s.includes("ms")?1:1e3,c=e&&o&&"none"!==o?parseFloat(s)*l:0;return Number.isNaN(c)?0:c}function o(e,i){var n=0,o=new Event(t),s=a(e);s?(e.addEventListener(t,(function a(o){o.target===e&&(i.apply(e,[o]),e.removeEventListener(t,a),n=1)})),setTimeout((function(){n||e.dispatchEvent(o)}),s+17)):i.apply(e,[o])}function s(t,e){var i=e&&e instanceof Element?e:document;return t instanceof Element?t:i.querySelector(t)}function l(t,e,i){var n=new CustomEvent(t+".bs."+e,{cancelable:!0});return void 0!==i&&Object.keys(i).forEach((function(t){Object.defineProperty(n,t,{value:i[t]})})),n}function c(t){this&&this.dispatchEvent(t)}function r(t){var e,i,n=this,a=l("close","alert"),r=l("closed","alert");function d(t){e[t?"addEventListener":"removeEventListener"]("click",u,!1)}function u(t){i=t&&t.target.closest(".alert"),(e=s('[data-dismiss="alert"]',i))&&i&&(e===t.target||e.contains(t.target))&&n.close()}function m(){d(),i.parentNode.removeChild(i),c.call(i,r)}n.close=function(){if(i&&e&&i.classList.contains("show")){if(c.call(i,a),a.defaultPrevented)return;n.dispose(),i.classList.remove("show"),i.classList.contains("fade")?o(i,m):m()}},n.dispose=function(){d(),delete e.Alert},e=s(t),i=e.closest(".alert"),e.Alert&&e.Alert.dispose(),e.Alert||d(1),n.element=e,e.Alert=n}function d(t){var e,i,n=l("change","button");function a(t){var a=t.target,o=a.closest("LABEL"),s=null;"LABEL"===a.tagName?s=a:o&&(s=o);var l=s&&s.getElementsByTagName("INPUT")[0];if(l){if(c.call(l,n),c.call(e,n),"checkbox"===l.type){if(n.defaultPrevented)return;l.checked?(s.classList.remove("active"),l.getAttribute("checked"),l.removeAttribute("checked"),l.checked=!1):(s.classList.add("active"),l.getAttribute("checked"),l.setAttribute("checked","checked"),l.checked=!0),e.toggled||(e.toggled=!0)}if("radio"===l.type&&!e.toggled){if(n.defaultPrevented)return;(!l.checked||0===t.screenX&&0===t.screenY)&&(s.classList.add("active"),s.classList.add("focus"),l.setAttribute("checked","checked"),l.checked=!0,e.toggled=!0,Array.from(i).forEach((function(t){var e=t.getElementsByTagName("INPUT")[0];t!==s&&t.classList.contains("active")&&(c.call(e,n),t.classList.remove("active"),e.removeAttribute("checked"),e.checked=!1)})))}setTimeout((function(){e.toggled=!1}),50)}}function o(t){32===(t.which||t.keyCode)&&t.target===document.activeElement&&a(t)}function r(t){32===(t.which||t.keyCode)&&t.preventDefault()}function d(t){if("INPUT"===t.target.tagName){var e="focusin"===t.type?"add":"remove";t.target.closest(".btn").classList[e]("focus")}}function u(t){var i=t?"addEventListener":"removeEventListener";e[i]("click",a,!1),e[i]("keyup",o,!1),e[i]("keydown",r,!1),e[i]("focusin",d,!1),e[i]("focusout",d,!1)}this.dispose=function(){u(),delete e.Button},(e=s(t)).Button&&e.Button.dispose(),(i=e.getElementsByClassName("btn")).length&&(e.Button||u(1),e.toggled=!1,e.Button=this,Array.from(i).forEach((function(t){var e=s("input:checked",t);!t.classList.contains("active")&&e&&t.classList.add("active"),t.classList.contains("active")&&!e&&t.classList.remove("active")})))}var u="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],m=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0}});document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){throw Error("Passive events are not supported")}return t}()&&{passive:!0};function f(t){return t.offsetHeight}function h(t,e){var i,n,r,d,h,g,p,v,L,b,y,w,A,T=e||{},E=this;function k(){!1===g.interval||d.classList.contains("paused")||(d.classList.add("paused"),h.isSliding||(clearInterval(h.timer),h.timer=null))}function x(){!1!==g.interval&&d.classList.contains("paused")&&(d.classList.remove("paused"),h.isSliding||(clearInterval(h.timer),h.timer=null,E.cycle()))}function C(t){if(t.preventDefault(),!h.isSliding){var e=t.target;e&&!e.classList.contains("active")&&e.getAttribute("data-slide-to")&&(h.index=+e.getAttribute("data-slide-to"),E.slideTo(h.index))}}function N(t){if(t.preventDefault(),!h.isSliding){var e=t.currentTarget||t.srcElement;e===y?h.index+=1:e===b&&(h.index-=1),E.slideTo(h.index)}}function P(t){var e=t.which;if(!h.isSliding){switch(e){case 39:h.index+=1;break;case 37:h.index-=1;break;default:return}E.slideTo(h.index)}}function H(t){var e=t?"addEventListener":"removeEventListener";g.pause&&g.interval&&(d[e](u[0],k,!1),d[e](u[1],x,!1),d[e]("touchstart",k,m),d[e]("touchend",x,m)),g.touch&&L.length>1&&d[e]("touchstart",B,m),y&&y[e]("click",N,!1),b&&b[e]("click",N,!1),w&&w[e]("click",C,!1),g.keyboard&&window[e]("keydown",P,!1)}function S(t){var e=t?"addEventListener":"removeEventListener";d[e]("touchmove",M,m),d[e]("touchend",I,m)}function B(t){h.isTouch||(h.touchPosition.startX=t.changedTouches[0].pageX,d.contains(t.target)&&(h.isTouch=!0,S(1)))}function M(t){h.isTouch?(h.touchPosition.currentX=t.changedTouches[0].pageX,"touchmove"===t.type&&t.changedTouches.length>1&&t.preventDefault()):t.preventDefault()}function I(t){if(h.isTouch&&!h.isSliding&&(h.touchPosition.endX=h.touchPosition.currentX||t.changedTouches[0].pageX,h.isTouch)){if((!d.contains(t.target)||!d.contains(t.relatedTarget))&&Math.abs(h.touchPosition.startX-h.touchPosition.endX)<75)return;h.touchPosition.currentXh.touchPosition.startX&&(h.index-=1),h.isTouch=!1,E.slideTo(h.index),S()}}function D(t){Array.from(A).forEach((function(t){return t.classList.remove("active")})),A[t]&&A[t].classList.add("active")}function X(t){if(h.touchPosition){var e=h.index,i=t&&t.target!==L[e]?1e3*t.elapsedTime+100:20,n=E.getActiveIndex(),a="left"===h.direction?"next":"prev";h.isSliding&&setTimeout((function(){h.touchPosition&&(h.isSliding=!1,L[e].classList.add("active"),L[n].classList.remove("active"),L[e].classList.remove("carousel-item-"+a),L[e].classList.remove("carousel-item-"+h.direction),L[n].classList.remove("carousel-item-"+h.direction),c.call(d,v),document.hidden||!g.interval||d.classList.contains("paused")||E.cycle())}),i)}}if(E.cycle=function(){h.timer&&(clearInterval(h.timer),h.timer=null),h.timer=setInterval((function(){var t=h.index||E.getActiveIndex();(function(t){var e=t.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight;return e.top<=i&&e.bottom>=0})(d)&&(t+=1,E.slideTo(t))}),g.interval)},E.slideTo=function(t){if(!h.isSliding){var e=E.getActiveIndex(),i=t;if(e!==i){ei||e===L.length-1&&0===i)&&(h.direction="right"),i<0?i=L.length-1:i>=L.length&&(i=0);var n="left"===h.direction?"next":"prev",s={relatedTarget:L[i],direction:h.direction,from:e,to:i};p=l("slide","carousel",s),v=l("slid","carousel",s),c.call(d,p),p.defaultPrevented||(h.index=i,h.isSliding=!0,clearInterval(h.timer),h.timer=null,D(i),a(L[i])&&d.classList.contains("slide")?(L[i].classList.add("carousel-item-"+n),f(L[i]),L[i].classList.add("carousel-item-"+h.direction),L[e].classList.add("carousel-item-"+h.direction),o(L[i],X)):(L[i].classList.add("active"),f(L[i]),L[e].classList.remove("active"),setTimeout((function(){h.isSliding=!1,g.interval&&d&&!d.classList.contains("paused")&&E.cycle(),c.call(d,v)}),100)))}}},E.getActiveIndex=function(){return Array.from(L).indexOf(d.getElementsByClassName("carousel-item active")[0])||0},E.dispose=function(){var t=["left","right","prev","next"];Array.from(L).forEach((function(e,i){e.classList.contains("active")&&D(i),t.forEach((function(t){return e.classList.remove("carousel-item-"+t)}))})),clearInterval(h.timer),H(),h={},g={},delete d.Carousel},(d=s(t)).Carousel&&d.Carousel.dispose(),L=d.getElementsByClassName("carousel-item"),i=d.getElementsByClassName("carousel-control-prev"),b=i[0],n=d.getElementsByClassName("carousel-control-next"),y=n[0],r=d.getElementsByClassName("carousel-indicators"),w=r[0],A=w&&w.getElementsByTagName("LI")||[],!(L.length<2)){var O=d.getAttribute("data-interval"),R="false"===O?0:+O,W="false"===d.getAttribute("data-touch")?0:1,j="hover"===d.getAttribute("data-pause")||!1,z="true"===d.getAttribute("data-keyboard")||!1,U=T.interval,q=T.touch;(g={}).keyboard=!0===T.keyboard||z,g.pause=!("hover"!==T.pause&&!j)&&"hover",g.touch=q||W,g.interval=5e3,"number"==typeof U?g.interval=U:!1===U||0===R||!1===R?g.interval=0:Number.isNaN(R)||(g.interval=R),E.getActiveIndex()<0&&(L.length&&L[0].classList.add("active"),A.length&&D(0)),(h={}).direction="left",h.index=0,h.timer=null,h.isSliding=!1,h.isTouch=!1,h.touchPosition={startX:0,currentX:0,endX:0},H(1),g.interval&&E.cycle(),d.Carousel=E}}function g(t,e){var i,n,a,r,d,u,m,h=e||{},g=this,p=null,v=null;function L(t,e){c.call(t,u),u.defaultPrevented||(t.isAnimating=!0,t.style.height=t.scrollHeight+"px",t.classList.remove("collapse"),t.classList.remove("show"),t.classList.add("collapsing"),f(t),t.style.height="0px",o(t,(function(){t.isAnimating=!1,t.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded","false"),t.classList.remove("collapsing"),t.classList.add("collapse"),t.style.height="",c.call(t,m)})))}g.toggle=function(t){(t&&"A"===t.target.tagName||"A"===i.tagName)&&t.preventDefault(),(i.contains(t.target)||t.target===i)&&(v.classList.contains("show")?g.hide():g.show())},g.hide=function(){v.isAnimating||(L(v,i),i.classList.add("collapsed"))},g.show=function(){var t,e,l;p&&(t=p.getElementsByClassName("collapse show"),n=t[0],a=n&&(s('[data-target="#'+n.id+'"]',p)||s('[href="#'+n.id+'"]',p))),v.isAnimating||(a&&n!==v&&(L(n,a),a.classList.add("collapsed")),e=v,l=i,c.call(e,r),r.defaultPrevented||(e.isAnimating=!0,e.classList.add("collapsing"),e.classList.remove("collapse"),e.style.height=e.scrollHeight+"px",o(e,(function(){e.isAnimating=!1,e.setAttribute("aria-expanded","true"),l.setAttribute("aria-expanded","true"),e.classList.remove("collapsing"),e.classList.add("collapse"),e.classList.add("show"),e.style.height="",c.call(e,d)}))),i.classList.remove("collapsed"))},g.dispose=function(){i.removeEventListener("click",g.toggle,!1),delete i.Collapse},(i=s(t)).Collapse&&i.Collapse.dispose();var b=i.getAttribute("data-parent");r=l("show","collapse"),d=l("shown","collapse"),u=l("hide","collapse"),m=l("hidden","collapse"),null!==(v=s(h.target||i.getAttribute("data-target")||i.getAttribute("href")))&&(v.isAnimating=!1),p=i.closest(h.parent||b),i.Collapse||i.addEventListener("click",g.toggle,!1),i.Collapse=g}function p(t){t.focus()}function v(t,e){var i,n,a,o,r,d,u,m,f=this,h=null,g=[];function v(t){(t.href&&"#"===t.href.slice(-1)||t.parentNode&&t.parentNode.href&&"#"===t.parentNode.href.slice(-1))&&this.preventDefault()}function L(){var t=i.open?"addEventListener":"removeEventListener";document[t]("click",b,!1),document[t]("keydown",w,!1),document[t]("keyup",A,!1),document[t]("focus",b,!1)}function b(t){var e=t.target;if(e.getAttribute){var n=e&&e.getAttribute("data-toggle")||e.parentNode&&e.parentNode.getAttribute&&e.parentNode.getAttribute("data-toggle");("focus"!==t.type||e!==i&&e!==u&&!u.contains(e))&&(e!==u&&!u.contains(e)||!m&&!n)&&(h=e===i||i.contains(e)?i:null,f.hide(),v.call(t,e))}}function y(t){h=i,f.show(),v.call(t,t.target)}function w(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()}function A(t){var e=t.which||t.keyCode,n=document.activeElement,a=n===i,o=u.contains(n),s=n.parentNode===u||n.parentNode.parentNode===u,l=g.indexOf(n);s&&(a?l=0:38===e?l=l>1?l-1:0:40===e&&(l=l=d,A=m.top+r/2+g/2>=u,T=m.top-r<0,E=m.left-c<0,k=m.top+r+g>=u,x=m.left+c+h>=d,C=i;C="right"===(C="left"===(C="bottom"===(C="top"===(C=("left"===C||"right"===C)&&E&&x?"top":C)&&T?"bottom":C)&&k?"top":C)&&E?"right":C)&&x?"left":C,-1===e.className.indexOf(C)&&(e.className=e.className.replace(/\b(top|bottom|left|right)+/,C));var N=v.offsetWidth,P=v.offsetHeight;"left"===C||"right"===C?(o="left"===C?m.left+f.x-c-(p?N:0):m.left+f.x+h,L?(a=m.top+f.y,s=g/2-N):A?(a=m.top+f.y-r+g,s=r-g/2-N):(a=m.top+f.y-r/2+g/2,s=r/2-(p?.9*P:P/2))):"top"!==C&&"bottom"!==C||(a="top"===C?m.top+f.y-r-(p?P:0):m.top+f.y+g,b?(o=0,l=m.left+h/2-N):w?(o=d-1.01*c,l=c-(d-m.left)+h/2-N/2):(o=m.left+f.x-c/2+h/2,l=c/2-(p?N:N/2))),e.style.top=a+"px",e.style.left=o+"px",s&&(v.style.top=s+"px"),l&&(v.style.left=l+"px")}function A(t,e){var i,n,a,r,d,f,h,g,p,v,L=e||{},y=this,A=null,T=0,E=/(iPhone|iPod|iPad)/.test(navigator.userAgent),k={};function x(t){null!==A&&t.target===s(".close",A)&&y.hide()}function C(){return{0:L.title||n.getAttribute("data-title")||null,1:L.content||n.getAttribute("data-content")||null}}function N(){null===A&&n.focus()}function P(t){var e=t?"addEventListener":"removeEventListener";"hover"===k.trigger?(n[e](b,y.show),n[e](u[0],y.show),k.dismissible||n[e](u[1],y.hide)):"click"===k.trigger?n[e](k.trigger,y.toggle):"focus"===k.trigger&&(E&&n[e]("click",N,!1),n[e](k.trigger,y.toggle))}function H(t){A&&A.contains(t.target)||t.target===n||n.contains(t.target)||y.hide()}function S(t){var e=t?"addEventListener":"removeEventListener";k.dismissible?document[e]("click",x,!1):("focus"===k.trigger&&n[e]("blur",y.hide),"hover"===k.trigger&&document[e]("touchstart",H,m)),window[e]("resize",y.hide,m)}function B(){S(1),c.call(n,g)}function M(){S(),k.container.removeChild(A),T=null,A=null,c.call(n,v)}y.toggle=function(){null===A?y.show():y.hide()},y.show=function(){clearTimeout(T),T=setTimeout((function(){if(null===A){if(c.call(n,h),h.defaultPrevented)return;!function(){var t;t=C(),a=t[0],r=(r=t[1])?r.trim():null,A=document.createElement("div");var e=document.createElement("div");if(e.classList.add("arrow"),A.appendChild(e),null!==r&&null===k.template){if(A.setAttribute("role","tooltip"),null!==a){var i=document.createElement("h3");i.classList.add("popover-header"),i.innerHTML=k.dismissible?a+f:a,A.appendChild(i)}var n=document.createElement("div");n.classList.add("popover-body"),n.innerHTML=k.dismissible&&null===a?r+f:r,A.appendChild(n)}else{var o=document.createElement("div");o.innerHTML=k.template.trim(),A.className=o.firstChild.className,A.innerHTML=o.firstChild.innerHTML;var l=s(".popover-header",A),c=s(".popover-body",A);a&&l&&(l.innerHTML=a.trim()),r&&c&&(c.innerHTML=r.trim())}k.container.appendChild(A),A.style.display="block",A.classList.contains("popover")||A.classList.add("popover"),A.classList.contains(k.animation)||A.classList.add(k.animation),A.classList.contains(d)||A.classList.add(d)}(),w(n,A,k.placement,k.container),A.classList.contains("show")||A.classList.add("show"),k.animation?o(A,B):B()}}),20)},y.hide=function(){clearTimeout(T),T=setTimeout((function(){if(A&&null!==A&&A.classList.contains("show")){if(c.call(n,p),p.defaultPrevented)return;A.classList.remove("show"),k.animation?o(A,M):M()}}),k.delay)},y.dispose=function(){y.hide(),P(),delete n.Popover},(n=s(t)).Popover&&n.Popover.dispose();var I=n.getAttribute("data-trigger"),D=n.getAttribute("data-animation"),X=n.getAttribute("data-placement"),O=n.getAttribute("data-dismissible"),R=n.getAttribute("data-delay"),W=n.getAttribute("data-container");f='',h=l("show","popover"),g=l("shown","popover"),p=l("hide","popover"),v=l("hidden","popover");var j=s(L.container),z=s(W),U=n.closest(".modal"),q=n.closest(".fixed-top"),Y=n.closest(".fixed-bottom");k.template=L.template?L.template:null,k.trigger=L.trigger?L.trigger:I||"hover",k.animation=L.animation&&"fade"!==L.animation?L.animation:D||"fade",k.placement=L.placement?L.placement:X||"top",k.delay=parseInt(L.delay||R,10)||200,k.dismissible=!(!L.dismissible&&"true"!==O),k.container=j||z||q||Y||U||document.body,d="bs-popover-"+k.placement,i=C(),a=i[0],((r=i[1])||k.template)&&(n.Popover||P(1),n.Popover=y)}function T(t,e){var i,n,a,o,r,d=e||{},u=this,f={};function h(){var t,e,l;(a=o.getElementsByTagName("A"),n.scrollTop=n.isWindow?y().y:i.scrollTop,n.length!==a.length||p()!==n.scrollHeight)&&(n.items=[],n.offsets=[],n.scrollHeight=p(),n.maxScroll=n.scrollHeight-(n.isWindow?window.innerHeight:i.getBoundingClientRect().height),Array.from(a).forEach((function(i){t=i.getAttribute("href"),(e=t&&"#"===t.charAt(0)&&"#"!==t.slice(-1)&&s(t))&&(n.items.push(i),l=e.getBoundingClientRect(),n.offsets.push((n.isWindow?l.top+n.scrollTop:e.offsetTop)-f.offset))})),n.length=n.items.length)}function g(t){var e=t?"addEventListener":"removeEventListener";r[e]("scroll",u.refresh,m),window[e]("resize",u.refresh,m)}function p(){return r.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}function v(){Array.from(a).map((function(t){return t.classList.contains("active")&&t.classList.remove("active")}))}function L(t){var e,a=t;v(),n.activeItem=a,a.classList.add("active");for(var o=[];a.parentNode!==document.body;)((e=(a=a.parentNode).classList).contains("dropdown-menu")||e.contains("nav"))&&o.push(a);o.forEach((function(t){var e=t.previousElementSibling;e&&!e.classList.contains("active")&&e.classList.add("active")})),c.call(i,l("activate","scrollspy",{relatedTarget:n.activeItem}))}u.refresh=function(){if(h(),n.scrollTop>=n.maxScroll){var t=n.items[n.length-1];n.activeItem!==t&&L(t)}else{if(n.activeItem&&n.scrollTop0)return n.activeItem=null,void v();for(var e=n.length;e>-1;)n.activeItem!==n.items[e]&&n.scrollTop>=n.offsets[e]&&(void 0===n.offsets[e+1]||n.scrollTop1&&(p=t[t.length-1]):p=t[0],p}function P(){return s(N().getAttribute("href"))}function H(t){t.preventDefault(),g=t.currentTarget,a.isAnimating||T.show()}T.show=function(){if(!(g=g||n).classList.contains("active")){if(L=s(g.getAttribute("href")),p=N(),v=P(),m=l("hide","tab",{relatedTarget:g}),c.call(p,m),m.defaultPrevented)return;a.isAnimating=!0,p.classList.remove("active"),p.setAttribute("aria-selected","false"),g.classList.add("active"),g.setAttribute("aria-selected","true"),r&&(n.parentNode.classList.contains("dropdown-menu")?r.classList.contains("active")||r.classList.add("active"):r.classList.contains("active")&&r.classList.remove("active")),v.classList.contains("fade")?(v.classList.remove("show"),o(v,C)):C()}},T.dispose=function(){n.removeEventListener("click",H,!1),delete n.Tab},(n=s(t)).Tab&&n.Tab.dispose();var S=n.getAttribute("data-height");a=n.closest(".nav"),r=a&&s(".dropdown-toggle",a);var B=!(!e||!1===A.height||"false"===S);a.isAnimating=!1,n.Tab||n.addEventListener("click",H,!1),B&&(E=P().parentNode),n.Tab=T}function k(t,e){var i,n,a,r,d,u,m=e||{},h=this,g=0,p={};function v(){n.classList.remove("showing"),n.classList.add("show"),c.call(n,d),p.autohide&&h.hide()}function L(){n.classList.add("hide"),c.call(n,u)}function b(){n.classList.remove("show"),p.animation?o(n,L):L()}function y(){clearTimeout(g),i.removeEventListener("click",h.hide,!1),delete i.Toast}h.show=function(){if(n&&!n.classList.contains("show")){if(c.call(n,a),a.defaultPrevented)return;p.animation&&n.classList.add("fade"),n.classList.remove("hide"),f(n),n.classList.add("showing"),p.animation?o(n,v):v()}},h.hide=function(t){if(n&&n.classList.contains("show")){if(c.call(n,r),r.defaultPrevented)return;t?b():g=setTimeout(b,p.delay)}},h.dispose=function(){p.animation?o(n,y):y()},(i=s(t)).Toast&&i.Toast.dispose(),n=i.closest(".toast");var w=i.getAttribute("data-animation"),A=i.getAttribute("data-autohide"),T=i.getAttribute("data-delay");a=l("show","toast"),r=l("hide","toast"),d=l("shown","toast"),u=l("hidden","toast"),p.animation=!1===m.animation||"false"===w?0:1,p.autohide=!1===m.autohide||"false"===A?0:1,p.delay=parseInt(m.delay||T,10)||500,i.Toast||i.addEventListener("click",h.hide,!1),i.Toast=h}function x(t,e){var i,n,a,r,d,f,h,g=e||{},p=this,v=null,L=0,y={};function A(){return i.getAttribute("title")||i.getAttribute("data-title")||i.getAttribute("data-original-title")}function T(t){v&&v.contains(t.target)||t.target===i||i.contains(t.target)||p.hide()}function E(t){var e=t?"addEventListener":"removeEventListener";document[e]("touchstart",T,m),window[e]("resize",p.hide,m)}function k(){E(1),c.call(i,d)}function x(){E(),y.container.removeChild(v),v=null,L=null,c.call(i,h)}function C(t){var e=t?"addEventListener":"removeEventListener";i[e](b,p.show,!1),i[e](u[0],p.show,!1),i[e](u[1],p.hide,!1)}p.show=function(){clearTimeout(L),L=setTimeout((function(){if(null===v){if(c.call(i,r),r.defaultPrevented)return;!1!==function(){if(n=A()){if(v=document.createElement("div"),y.template){var t=document.createElement("div");t.innerHTML=y.template.trim(),v.className=t.firstChild.className,v.innerHTML=t.firstChild.innerHTML,s(".tooltip-inner",v).innerHTML=n.trim()}else{var e=document.createElement("div");e.classList.add("arrow"),v.appendChild(e);var i=document.createElement("div");i.classList.add("tooltip-inner"),v.appendChild(i),i.innerHTML=n}v.style.left="0",v.style.top="0",v.setAttribute("role","tooltip"),v.classList.contains("tooltip")||v.classList.add("tooltip"),v.classList.contains(y.animation)||v.classList.add(y.animation),v.classList.contains(a)||v.classList.add(a),y.container.appendChild(v)}}()&&(w(i,v,y.placement,y.container),v.classList.contains("show")||v.classList.add("show"),y.animation?o(v,k):k())}}),20)},p.hide=function(){clearTimeout(L),L=setTimeout((function(){if(v&&v.classList.contains("show")){if(c.call(i,f),f.defaultPrevented)return;v.classList.remove("show"),y.animation?o(v,x):x()}}),y.delay)},p.toggle=function(){v?p.hide():p.show()},p.dispose=function(){C(),p.hide(),i.setAttribute("title",i.getAttribute("data-original-title")),i.removeAttribute("data-original-title"),delete i.Tooltip},(i=s(t)).Tooltip&&i.Tooltip.dispose();var N=i.getAttribute("data-animation"),P=i.getAttribute("data-placement"),H=i.getAttribute("data-delay"),S=i.getAttribute("data-container"),B=s(g.container),M=s(S),I=i.closest(".modal");r=l("show","tooltip"),d=l("shown","tooltip"),f=l("hide","tooltip"),h=l("hidden","tooltip");var D=i.closest(".fixed-top"),X=i.closest(".fixed-bottom");y.animation=g.animation&&"fade"!==g.animation?g.animation:N||"fade",y.placement=g.placement?g.placement:P||"top",y.template=g.template?g.template:null,y.delay=parseInt(g.delay||H,10)||200,y.container=B||M||D||X||I||document.body,a="bs-tooltip-"+y.placement,(n=A())&&(i.Tooltip||(i.setAttribute("data-original-title",n),i.removeAttribute("title"),C(1)),i.Tooltip=p)}var C={};function N(t){var e=t instanceof Element?t:document;Object.keys(C).forEach((function(t){var i,n;i=C[t][0],n=e.querySelectorAll(C[t][1]),Array.from(n).map((function(t){return new i(t)}))}))}C.Alert=[r,'[data-dismiss="alert"]'],C.Button=[d,'[data-toggle="buttons"]'],C.Carousel=[h,'[data-ride="carousel"]'],C.Collapse=[g,'[data-toggle="collapse"]'],C.Dropdown=[v,'[data-toggle="dropdown"]'],C.Modal=[L,'[data-toggle="modal"]'],C.Popover=[A,'[data-toggle="popover"],[data-tip="popover"]'],C.ScrollSpy=[T,'[data-spy="scroll"]'],C.Tab=[E,'[data-toggle="tab"]'],C.Toast=[k,'[data-dismiss="toast"]'],C.Tooltip=[x,'[data-toggle="tooltip"],[data-tip="tooltip"]'],document.body?N():document.addEventListener("DOMContentLoaded",(function t(){N(),document.removeEventListener("DOMContentLoaded",t,!1)}),!1);var P={Alert:r,Button:d,Carousel:h,Collapse:g,Dropdown:v,Modal:L,Popover:A,ScrollSpy:T,Tab:E,Toast:k,Tooltip:x,initCallback:N,removeDataAPI:function(t){var e=t instanceof Element?t:document;Object.keys(C).forEach((function(t){var i,n;i=t,n=e.querySelectorAll(C[t][1]),Array.from(n).map((function(t){return t[i].dispose()}))}))},componentsInit:C,Version:"3.0.15"};export default P; +// Native JavaScript for Bootstrap v4.0.0 | 2021 © dnp_theme | MIT-License +var t="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",e="webkitTransition"in document.head.style||"transition"in document.head.style,i="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",n="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty";function a(t){var a=getComputedStyle(t),o=a[n],s=a[i],l=s.includes("ms")?1:1e3,c=e&&o&&"none"!==o?parseFloat(s)*l:0;return Number.isNaN(c)?0:c}function o(e,i){var n=0,o=new Event(t),s=a(e);s?(e.addEventListener(t,(function a(o){o.target===e&&(i.apply(e,[o]),e.removeEventListener(t,a),n=1)})),setTimeout((function(){n||e.dispatchEvent(o)}),s+17)):i.apply(e,[o])}function s(t,e){var i=e&&e instanceof Element?e:document;return t instanceof Element?t:i.querySelector(t)}function l(t,e,i){var n=new CustomEvent(t+".bs."+e,{cancelable:!0});return void 0!==i&&Object.keys(i).forEach((function(t){Object.defineProperty(n,t,{value:i[t]})})),n}function c(t){this&&this.dispatchEvent(t)}function r(t){var e,i,n=this,a=l("close","alert"),r=l("closed","alert");function d(t){e[t?"addEventListener":"removeEventListener"]("click",u,!1)}function u(t){i=t&&t.target.closest(".alert"),(e=s('[data-dismiss="alert"]',i))&&i&&(e===t.target||e.contains(t.target))&&n.close()}function m(){d(),i.parentNode.removeChild(i),c.call(i,r)}n.close=function(){if(i&&e&&i.classList.contains("show")){if(c.call(i,a),a.defaultPrevented)return;n.dispose(),i.classList.remove("show"),i.classList.contains("fade")?o(i,m):m()}},n.dispose=function(){d(),delete e.Alert},e=s(t),i=e.closest(".alert"),e.Alert&&e.Alert.dispose(),e.Alert||d(1),n.element=e,e.Alert=n}function d(t){var e,i,n=l("change","button");function a(t){var a=t.target,o=a.closest("LABEL"),s=null;"LABEL"===a.tagName?s=a:o&&(s=o);var l=s&&s.getElementsByTagName("INPUT")[0];if(l){if(c.call(l,n),c.call(e,n),"checkbox"===l.type){if(n.defaultPrevented)return;l.checked?(s.classList.remove("active"),l.getAttribute("checked"),l.removeAttribute("checked"),l.checked=!1):(s.classList.add("active"),l.getAttribute("checked"),l.setAttribute("checked","checked"),l.checked=!0),e.toggled||(e.toggled=!0)}if("radio"===l.type&&!e.toggled){if(n.defaultPrevented)return;(!l.checked||0===t.screenX&&0===t.screenY)&&(s.classList.add("active"),s.classList.add("focus"),l.setAttribute("checked","checked"),l.checked=!0,e.toggled=!0,Array.from(i).forEach((function(t){var e=t.getElementsByTagName("INPUT")[0];t!==s&&t.classList.contains("active")&&(c.call(e,n),t.classList.remove("active"),e.removeAttribute("checked"),e.checked=!1)})))}setTimeout((function(){e.toggled=!1}),50)}}function o(t){32===(t.which||t.keyCode)&&t.target===document.activeElement&&a(t)}function r(t){32===(t.which||t.keyCode)&&t.preventDefault()}function d(t){if("INPUT"===t.target.tagName){var e="focusin"===t.type?"add":"remove";t.target.closest(".btn").classList[e]("focus")}}function u(t){var i=t?"addEventListener":"removeEventListener";e[i]("click",a,!1),e[i]("keyup",o,!1),e[i]("keydown",r,!1),e[i]("focusin",d,!1),e[i]("focusout",d,!1)}this.dispose=function(){u(),delete e.Button},(e=s(t)).Button&&e.Button.dispose(),(i=e.getElementsByClassName("btn")).length&&(e.Button||u(1),e.toggled=!1,e.Button=this,Array.from(i).forEach((function(t){var e=s("input:checked",t);!t.classList.contains("active")&&e&&t.classList.add("active"),t.classList.contains("active")&&!e&&t.classList.remove("active")})))}var u="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],m=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0}});document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){throw Error("Passive events are not supported")}return t}()&&{passive:!0};function f(t){return t.offsetHeight}function h(t,e){var i,n,r,d,h,g,p,v,L,b,y,w,A,T=e||{},E=this;function k(){!1===g.interval||d.classList.contains("paused")||(d.classList.add("paused"),h.isSliding||(clearInterval(h.timer),h.timer=null))}function x(){!1!==g.interval&&d.classList.contains("paused")&&(d.classList.remove("paused"),h.isSliding||(clearInterval(h.timer),h.timer=null,E.cycle()))}function C(t){if(t.preventDefault(),!h.isSliding){var e=t.target;e&&!e.classList.contains("active")&&e.getAttribute("data-slide-to")&&(h.index=+e.getAttribute("data-slide-to"),E.slideTo(h.index))}}function N(t){if(t.preventDefault(),!h.isSliding){var e=t.currentTarget||t.srcElement;e===y?h.index+=1:e===b&&(h.index-=1),E.slideTo(h.index)}}function P(t){var e=t.which;if(!h.isSliding){switch(e){case 39:h.index+=1;break;case 37:h.index-=1;break;default:return}E.slideTo(h.index)}}function H(t){var e=t?"addEventListener":"removeEventListener";g.pause&&g.interval&&(d[e](u[0],k,!1),d[e](u[1],x,!1),d[e]("touchstart",k,m),d[e]("touchend",x,m)),g.touch&&L.length>1&&d[e]("touchstart",B,m),y&&y[e]("click",N,!1),b&&b[e]("click",N,!1),w&&w[e]("click",C,!1),g.keyboard&&window[e]("keydown",P,!1)}function S(t){var e=t?"addEventListener":"removeEventListener";d[e]("touchmove",M,m),d[e]("touchend",I,m)}function B(t){h.isTouch||(h.touchPosition.startX=t.changedTouches[0].pageX,d.contains(t.target)&&(h.isTouch=!0,S(1)))}function M(t){h.isTouch?(h.touchPosition.currentX=t.changedTouches[0].pageX,"touchmove"===t.type&&t.changedTouches.length>1&&t.preventDefault()):t.preventDefault()}function I(t){if(h.isTouch&&!h.isSliding&&(h.touchPosition.endX=h.touchPosition.currentX||t.changedTouches[0].pageX,h.isTouch)){if((!d.contains(t.target)||!d.contains(t.relatedTarget))&&Math.abs(h.touchPosition.startX-h.touchPosition.endX)<75)return;h.touchPosition.currentXh.touchPosition.startX&&(h.index-=1),h.isTouch=!1,E.slideTo(h.index),S()}}function D(t){Array.from(A).forEach((function(t){return t.classList.remove("active")})),A[t]&&A[t].classList.add("active")}function X(t){if(h.touchPosition){var e=h.index,i=t&&t.target!==L[e]?1e3*t.elapsedTime+100:20,n=E.getActiveIndex(),a="left"===h.direction?"next":"prev";h.isSliding&&setTimeout((function(){h.touchPosition&&(h.isSliding=!1,L[e].classList.add("active"),L[n].classList.remove("active"),L[e].classList.remove("carousel-item-"+a),L[e].classList.remove("carousel-item-"+h.direction),L[n].classList.remove("carousel-item-"+h.direction),c.call(d,v),document.hidden||!g.interval||d.classList.contains("paused")||E.cycle())}),i)}}if(E.cycle=function(){h.timer&&(clearInterval(h.timer),h.timer=null),h.timer=setInterval((function(){var t=h.index||E.getActiveIndex();(function(t){var e=t.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight;return e.top<=i&&e.bottom>=0})(d)&&(t+=1,E.slideTo(t))}),g.interval)},E.slideTo=function(t){if(!h.isSliding){var e=E.getActiveIndex(),i=t;if(e!==i){ei||e===L.length-1&&0===i)&&(h.direction="right"),i<0?i=L.length-1:i>=L.length&&(i=0);var n="left"===h.direction?"next":"prev",s={relatedTarget:L[i],direction:h.direction,from:e,to:i};p=l("slide","carousel",s),v=l("slid","carousel",s),c.call(d,p),p.defaultPrevented||(h.index=i,h.isSliding=!0,clearInterval(h.timer),h.timer=null,D(i),a(L[i])&&d.classList.contains("slide")?(L[i].classList.add("carousel-item-"+n),f(L[i]),L[i].classList.add("carousel-item-"+h.direction),L[e].classList.add("carousel-item-"+h.direction),o(L[i],X)):(L[i].classList.add("active"),f(L[i]),L[e].classList.remove("active"),setTimeout((function(){h.isSliding=!1,g.interval&&d&&!d.classList.contains("paused")&&E.cycle(),c.call(d,v)}),100)))}}},E.getActiveIndex=function(){return Array.from(L).indexOf(d.getElementsByClassName("carousel-item active")[0])||0},E.dispose=function(){var t=["left","right","prev","next"];Array.from(L).forEach((function(e,i){e.classList.contains("active")&&D(i),t.forEach((function(t){return e.classList.remove("carousel-item-"+t)}))})),clearInterval(h.timer),H(),h={},g={},delete d.Carousel},(d=s(t)).Carousel&&d.Carousel.dispose(),L=d.getElementsByClassName("carousel-item"),i=d.getElementsByClassName("carousel-control-prev"),b=i[0],n=d.getElementsByClassName("carousel-control-next"),y=n[0],r=d.getElementsByClassName("carousel-indicators"),w=r[0],A=w&&w.getElementsByTagName("LI")||[],!(L.length<2)){var O=d.getAttribute("data-interval"),R="false"===O?0:+O,W="false"===d.getAttribute("data-touch")?0:1,j="hover"===d.getAttribute("data-pause")||!1,z="true"===d.getAttribute("data-keyboard")||!1,U=T.interval,q=T.touch;(g={}).keyboard=!0===T.keyboard||z,g.pause=!("hover"!==T.pause&&!j)&&"hover",g.touch=q||W,g.interval=5e3,"number"==typeof U?g.interval=U:!1===U||0===R||!1===R?g.interval=0:Number.isNaN(R)||(g.interval=R),E.getActiveIndex()<0&&(L.length&&L[0].classList.add("active"),A.length&&D(0)),(h={}).direction="left",h.index=0,h.timer=null,h.isSliding=!1,h.isTouch=!1,h.touchPosition={startX:0,currentX:0,endX:0},H(1),g.interval&&E.cycle(),d.Carousel=E}}function g(t,e){var i,n,a,r,d,u,m,h=e||{},g=this,p=null,v=null;function L(t,e){c.call(t,u),u.defaultPrevented||(t.isAnimating=!0,t.style.height=t.scrollHeight+"px",t.classList.remove("collapse"),t.classList.remove("show"),t.classList.add("collapsing"),f(t),t.style.height="0px",o(t,(function(){t.isAnimating=!1,t.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded","false"),t.classList.remove("collapsing"),t.classList.add("collapse"),t.style.height="",c.call(t,m)})))}g.toggle=function(t){(t&&"A"===t.target.tagName||"A"===i.tagName)&&t.preventDefault(),(i.contains(t.target)||t.target===i)&&(v.classList.contains("show")?g.hide():g.show())},g.hide=function(){v.isAnimating||(L(v,i),i.classList.add("collapsed"))},g.show=function(){var t,e,l;p&&(t=p.getElementsByClassName("collapse show"),n=t[0],a=n&&(s('[data-target="#'+n.id+'"]',p)||s('[href="#'+n.id+'"]',p))),v.isAnimating||(a&&n!==v&&(L(n,a),a.classList.add("collapsed")),e=v,l=i,c.call(e,r),r.defaultPrevented||(e.isAnimating=!0,e.classList.add("collapsing"),e.classList.remove("collapse"),e.style.height=e.scrollHeight+"px",o(e,(function(){e.isAnimating=!1,e.setAttribute("aria-expanded","true"),l.setAttribute("aria-expanded","true"),e.classList.remove("collapsing"),e.classList.add("collapse"),e.classList.add("show"),e.style.height="",c.call(e,d)}))),i.classList.remove("collapsed"))},g.dispose=function(){i.removeEventListener("click",g.toggle,!1),delete i.Collapse},(i=s(t)).Collapse&&i.Collapse.dispose();var b=i.getAttribute("data-parent");r=l("show","collapse"),d=l("shown","collapse"),u=l("hide","collapse"),m=l("hidden","collapse"),null!==(v=s(h.target||i.getAttribute("data-target")||i.getAttribute("href")))&&(v.isAnimating=!1),p=i.closest(h.parent||b),i.Collapse||i.addEventListener("click",g.toggle,!1),i.Collapse=g}function p(t){t.focus()}function v(t,e){var i,n,a,o,r,d,u,m,f=this,h=null,g=[];function v(t){(t.href&&"#"===t.href.slice(-1)||t.parentNode&&t.parentNode.href&&"#"===t.parentNode.href.slice(-1))&&this.preventDefault()}function L(){var t=i.open?"addEventListener":"removeEventListener";document[t]("click",b,!1),document[t]("keydown",w,!1),document[t]("keyup",A,!1),document[t]("focus",b,!1)}function b(t){var e=t.target;if(e.getAttribute){var n=e&&e.getAttribute("data-toggle")||e.parentNode&&e.parentNode.getAttribute&&e.parentNode.getAttribute("data-toggle");("focus"!==t.type||e!==i&&e!==u&&!u.contains(e))&&(e!==u&&!u.contains(e)||!m&&!n)&&(h=e===i||i.contains(e)?i:null,f.hide(),v.call(t,e))}}function y(t){h=i,f.show(),v.call(t,t.target)}function w(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()}function A(t){var e=t.which||t.keyCode,n=document.activeElement,a=n===i,o=u.contains(n),s=n.parentNode===u||n.parentNode.parentNode===u,l=g.indexOf(n);s&&(a?l=0:38===e?l=l>1?l-1:0:40===e&&(l=l=d,A=m.top+r/2+g/2>=u,T=m.top-r<0,E=m.left-c<0,k=m.top+r+g>=u,x=m.left+c+h>=d,C=i;C="right"===(C="left"===(C="bottom"===(C="top"===(C=("left"===C||"right"===C)&&E&&x?"top":C)&&T?"bottom":C)&&k?"top":C)&&E?"right":C)&&x?"left":C,-1===e.className.indexOf(C)&&(e.className=e.className.replace(/\b(top|bottom|left|right)+/,C));var N=v.offsetWidth,P=v.offsetHeight;"left"===C||"right"===C?(o="left"===C?m.left+f.x-c-(p?N:0):m.left+f.x+h,L?(a=m.top+f.y,s=g/2-N):A?(a=m.top+f.y-r+g,s=r-g/2-N):(a=m.top+f.y-r/2+g/2,s=r/2-(p?.9*P:P/2))):"top"!==C&&"bottom"!==C||(a="top"===C?m.top+f.y-r-(p?P:0):m.top+f.y+g,b?(o=0,l=m.left+h/2-N):w?(o=d-1.01*c,l=c-(d-m.left)+h/2-N/2):(o=m.left+f.x-c/2+h/2,l=c/2-(p?N:N/2))),e.style.top=a+"px",e.style.left=o+"px",s&&(v.style.top=s+"px"),l&&(v.style.left=l+"px")}function A(t,e){var i,n,a,r,d,f,h,g,p,v,L=e||{},y=this,A=null,T=0,E=/(iPhone|iPod|iPad)/.test(navigator.userAgent),k={};function x(t){null!==A&&t.target===s(".close",A)&&y.hide()}function C(){return{0:L.title||n.getAttribute("data-title")||null,1:L.content||n.getAttribute("data-content")||null}}function N(){null===A&&n.focus()}function P(t){var e=t?"addEventListener":"removeEventListener";"hover"===k.trigger?(n[e](b,y.show),n[e](u[0],y.show),k.dismissible||n[e](u[1],y.hide)):"click"===k.trigger?n[e](k.trigger,y.toggle):"focus"===k.trigger&&(E&&n[e]("click",N,!1),n[e](k.trigger,y.toggle))}function H(t){A&&A.contains(t.target)||t.target===n||n.contains(t.target)||y.hide()}function S(t){var e=t?"addEventListener":"removeEventListener";k.dismissible?document[e]("click",x,!1):("focus"===k.trigger&&n[e]("blur",y.hide),"hover"===k.trigger&&document[e]("touchstart",H,m)),window[e]("resize",y.hide,m)}function B(){S(1),c.call(n,g)}function M(){S(),k.container.removeChild(A),T=null,A=null,c.call(n,v)}y.toggle=function(){null===A?y.show():y.hide()},y.show=function(){clearTimeout(T),T=setTimeout((function(){if(null===A){if(c.call(n,h),h.defaultPrevented)return;!function(){var t;t=C(),a=t[0],r=(r=t[1])?r.trim():null,A=document.createElement("div");var e=document.createElement("div");if(e.classList.add("arrow"),A.appendChild(e),null!==r&&null===k.template){if(A.setAttribute("role","tooltip"),null!==a){var i=document.createElement("h3");i.classList.add("popover-header"),i.innerHTML=k.dismissible?a+f:a,A.appendChild(i)}var n=document.createElement("div");n.classList.add("popover-body"),n.innerHTML=k.dismissible&&null===a?r+f:r,A.appendChild(n)}else{var o=document.createElement("div");o.innerHTML=k.template.trim(),A.className=o.firstChild.className,A.innerHTML=o.firstChild.innerHTML;var l=s(".popover-header",A),c=s(".popover-body",A);a&&l&&(l.innerHTML=a.trim()),r&&c&&(c.innerHTML=r.trim())}k.container.appendChild(A),A.style.display="block",A.classList.contains("popover")||A.classList.add("popover"),A.classList.contains(k.animation)||A.classList.add(k.animation),A.classList.contains(d)||A.classList.add(d)}(),w(n,A,k.placement,k.container),A.classList.contains("show")||A.classList.add("show"),k.animation?o(A,B):B()}}),20)},y.hide=function(){clearTimeout(T),T=setTimeout((function(){if(A&&null!==A&&A.classList.contains("show")){if(c.call(n,p),p.defaultPrevented)return;A.classList.remove("show"),k.animation?o(A,M):M()}}),k.delay)},y.dispose=function(){y.hide(),P(),delete n.Popover},(n=s(t)).Popover&&n.Popover.dispose();var I=n.getAttribute("data-trigger"),D=n.getAttribute("data-animation"),X=n.getAttribute("data-placement"),O=n.getAttribute("data-dismissible"),R=n.getAttribute("data-delay"),W=n.getAttribute("data-container");f='',h=l("show","popover"),g=l("shown","popover"),p=l("hide","popover"),v=l("hidden","popover");var j=s(L.container),z=s(W),U=n.closest(".modal"),q=n.closest(".fixed-top"),Y=n.closest(".fixed-bottom");k.template=L.template?L.template:null,k.trigger=L.trigger?L.trigger:I||"hover",k.animation=L.animation&&"fade"!==L.animation?L.animation:D||"fade",k.placement=L.placement?L.placement:X||"top",k.delay=parseInt(L.delay||R,10)||200,k.dismissible=!(!L.dismissible&&"true"!==O),k.container=j||z||q||Y||U||document.body,d="bs-popover-"+k.placement,i=C(),a=i[0],((r=i[1])||k.template)&&(n.Popover||P(1),n.Popover=y)}function T(t,e){var i,n,a,o,r,d=e||{},u=this,f={};function h(){var t,e,l;(a=o.getElementsByTagName("A"),n.scrollTop=n.isWindow?y().y:i.scrollTop,n.length!==a.length||p()!==n.scrollHeight)&&(n.items=[],n.offsets=[],n.scrollHeight=p(),n.maxScroll=n.scrollHeight-(n.isWindow?window.innerHeight:i.getBoundingClientRect().height),Array.from(a).forEach((function(i){t=i.getAttribute("href"),(e=t&&"#"===t.charAt(0)&&"#"!==t.slice(-1)&&s(t))&&(n.items.push(i),l=e.getBoundingClientRect(),n.offsets.push((n.isWindow?l.top+n.scrollTop:e.offsetTop)-f.offset))})),n.length=n.items.length)}function g(t){var e=t?"addEventListener":"removeEventListener";r[e]("scroll",u.refresh,m),window[e]("resize",u.refresh,m)}function p(){return r.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}function v(){Array.from(a).map((function(t){return t.classList.contains("active")&&t.classList.remove("active")}))}function L(t){var e,a=t;v(),n.activeItem=a,a.classList.add("active");for(var o=[];a.parentNode!==document.body;)((e=(a=a.parentNode).classList).contains("dropdown-menu")||e.contains("nav"))&&o.push(a);o.forEach((function(t){var e=t.previousElementSibling;e&&!e.classList.contains("active")&&e.classList.add("active")})),c.call(i,l("activate","scrollspy",{relatedTarget:n.activeItem}))}u.refresh=function(){if(h(),n.scrollTop>=n.maxScroll){var t=n.items[n.length-1];n.activeItem!==t&&L(t)}else{if(n.activeItem&&n.scrollTop0)return n.activeItem=null,void v();for(var e=n.length;e>-1;)n.activeItem!==n.items[e]&&n.scrollTop>=n.offsets[e]&&(void 0===n.offsets[e+1]||n.scrollTop1&&(p=t[t.length-1]):p=t[0],p}function P(){return s(N().getAttribute("href"))}function H(t){t.preventDefault(),g=t.currentTarget,a.isAnimating||T.show()}T.show=function(){if(!(g=g||n).classList.contains("active")){if(L=s(g.getAttribute("href")),p=N(),v=P(),m=l("hide","tab",{relatedTarget:g}),c.call(p,m),m.defaultPrevented)return;a.isAnimating=!0,p.classList.remove("active"),p.setAttribute("aria-selected","false"),g.classList.add("active"),g.setAttribute("aria-selected","true"),r&&(n.parentNode.classList.contains("dropdown-menu")?r.classList.contains("active")||r.classList.add("active"):r.classList.contains("active")&&r.classList.remove("active")),v.classList.contains("fade")?(v.classList.remove("show"),o(v,C)):C()}},T.dispose=function(){n.removeEventListener("click",H,!1),delete n.Tab},(n=s(t)).Tab&&n.Tab.dispose();var S=n.getAttribute("data-height");a=n.closest(".nav"),r=a&&s(".dropdown-toggle",a);var B=!(!e||!1===A.height||"false"===S);a.isAnimating=!1,n.Tab||n.addEventListener("click",H,!1),B&&(E=P().parentNode),n.Tab=T}function k(t,e){var i,n,a,r,d,u,m=e||{},h=this,g=0,p={};function v(){n.classList.remove("showing"),n.classList.add("show"),c.call(n,d),p.autohide&&h.hide()}function L(){n.classList.add("hide"),c.call(n,u)}function b(){n.classList.remove("show"),p.animation?o(n,L):L()}function y(){clearTimeout(g),i.removeEventListener("click",h.hide,!1),delete i.Toast}h.show=function(){if(n&&!n.classList.contains("show")){if(c.call(n,a),a.defaultPrevented)return;p.animation&&n.classList.add("fade"),n.classList.remove("hide"),f(n),n.classList.add("showing"),p.animation?o(n,v):v()}},h.hide=function(t){if(n&&n.classList.contains("show")){if(c.call(n,r),r.defaultPrevented)return;t?b():g=setTimeout(b,p.delay)}},h.dispose=function(){p.animation?o(n,y):y()},(i=s(t)).Toast&&i.Toast.dispose(),n=i.closest(".toast");var w=i.getAttribute("data-animation"),A=i.getAttribute("data-autohide"),T=i.getAttribute("data-delay");a=l("show","toast"),r=l("hide","toast"),d=l("shown","toast"),u=l("hidden","toast"),p.animation=!1===m.animation||"false"===w?0:1,p.autohide=!1===m.autohide||"false"===A?0:1,p.delay=parseInt(m.delay||T,10)||500,i.Toast||i.addEventListener("click",h.hide,!1),i.Toast=h}function x(t,e){var i,n,a,r,d,f,h,g=e||{},p=this,v=null,L=0,y={};function A(){return i.getAttribute("title")||i.getAttribute("data-title")||i.getAttribute("data-original-title")}function T(t){v&&v.contains(t.target)||t.target===i||i.contains(t.target)||p.hide()}function E(t){var e=t?"addEventListener":"removeEventListener";document[e]("touchstart",T,m),window[e]("resize",p.hide,m)}function k(){E(1),c.call(i,d)}function x(){E(),y.container.removeChild(v),v=null,L=null,c.call(i,h)}function C(t){var e=t?"addEventListener":"removeEventListener";i[e](b,p.show,!1),i[e](u[0],p.show,!1),i[e](u[1],p.hide,!1)}p.show=function(){clearTimeout(L),L=setTimeout((function(){if(null===v){if(c.call(i,r),r.defaultPrevented)return;!1!==function(){if(n=A()){if(v=document.createElement("div"),y.template){var t=document.createElement("div");t.innerHTML=y.template.trim(),v.className=t.firstChild.className,v.innerHTML=t.firstChild.innerHTML,s(".tooltip-inner",v).innerHTML=n.trim()}else{var e=document.createElement("div");e.classList.add("arrow"),v.appendChild(e);var i=document.createElement("div");i.classList.add("tooltip-inner"),v.appendChild(i),i.innerHTML=n}v.style.left="0",v.style.top="0",v.setAttribute("role","tooltip"),v.classList.contains("tooltip")||v.classList.add("tooltip"),v.classList.contains(y.animation)||v.classList.add(y.animation),v.classList.contains(a)||v.classList.add(a),y.container.appendChild(v)}}()&&(w(i,v,y.placement,y.container),v.classList.contains("show")||v.classList.add("show"),y.animation?o(v,k):k())}}),20)},p.hide=function(){clearTimeout(L),L=setTimeout((function(){if(v&&v.classList.contains("show")){if(c.call(i,f),f.defaultPrevented)return;v.classList.remove("show"),y.animation?o(v,x):x()}}),y.delay)},p.toggle=function(){v?p.hide():p.show()},p.dispose=function(){C(),p.hide(),i.setAttribute("title",i.getAttribute("data-original-title")),i.removeAttribute("data-original-title"),delete i.Tooltip},(i=s(t)).Tooltip&&i.Tooltip.dispose();var N=i.getAttribute("data-animation"),P=i.getAttribute("data-placement"),H=i.getAttribute("data-delay"),S=i.getAttribute("data-container"),B=s(g.container),M=s(S),I=i.closest(".modal");r=l("show","tooltip"),d=l("shown","tooltip"),f=l("hide","tooltip"),h=l("hidden","tooltip");var D=i.closest(".fixed-top"),X=i.closest(".fixed-bottom");y.animation=g.animation&&"fade"!==g.animation?g.animation:N||"fade",y.placement=g.placement?g.placement:P||"top",y.template=g.template?g.template:null,y.delay=parseInt(g.delay||H,10)||200,y.container=B||M||D||X||I||document.body,a="bs-tooltip-"+y.placement,(n=A())&&(i.Tooltip||(i.setAttribute("data-original-title",n),i.removeAttribute("title"),C(1)),i.Tooltip=p)}var C={};function N(t){var e=t instanceof Element?t:document;Object.keys(C).forEach((function(t){var i,n;i=C[t][0],n=e.querySelectorAll(C[t][1]),Array.from(n).map((function(t){return new i(t)}))}))}C.Alert=[r,'[data-dismiss="alert"]'],C.Button=[d,'[data-toggle="buttons"]'],C.Carousel=[h,'[data-ride="carousel"]'],C.Collapse=[g,'[data-toggle="collapse"]'],C.Dropdown=[v,'[data-toggle="dropdown"]'],C.Modal=[L,'[data-toggle="modal"]'],C.Popover=[A,'[data-toggle="popover"],[data-tip="popover"]'],C.ScrollSpy=[T,'[data-spy="scroll"]'],C.Tab=[E,'[data-toggle="tab"]'],C.Toast=[k,'[data-dismiss="toast"]'],C.Tooltip=[x,'[data-toggle="tooltip"],[data-tip="tooltip"]'],document.body?N():document.addEventListener("DOMContentLoaded",(function t(){N(),document.removeEventListener("DOMContentLoaded",t,!1)}),!1);var P={Alert:r,Button:d,Carousel:h,Collapse:g,Dropdown:v,Modal:L,Popover:A,ScrollSpy:T,Tab:E,Toast:k,Tooltip:x,initCallback:N,removeDataAPI:function(t){var e=t instanceof Element?t:document;Object.keys(C).forEach((function(t){var i,n;i=t,n=e.querySelectorAll(C[t][1]),Array.from(n).map((function(t){return t[i].dispose()}))}))},componentsInit:C,Version:"4.0.0"};export default P; diff --git a/dist/bootstrap-native-v4.js b/dist/bootstrap-native-v4.js index 36802913..8da34d64 100644 --- a/dist/bootstrap-native-v4.js +++ b/dist/bootstrap-native-v4.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ @@ -2391,7 +2391,7 @@ }); } - var version = "3.0.15"; + var version = "4.0.0"; var indexV4 = { Alert: Alert, diff --git a/dist/bootstrap-native-v4.min.js b/dist/bootstrap-native-v4.min.js index 74664b69..112c7ab1 100644 --- a/dist/bootstrap-native-v4.min.js +++ b/dist/bootstrap-native-v4.min.js @@ -1,2 +1,2 @@ -// Native JavaScript for Bootstrap v3.0.15 | 2021 © dnp_theme | MIT-License -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).BSN=e()}(this,(function(){"use strict";var t="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",e="webkitTransition"in document.head.style||"transition"in document.head.style,i="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",n="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty";function a(t){var a=getComputedStyle(t),o=a[n],s=a[i],l=s.includes("ms")?1:1e3,c=e&&o&&"none"!==o?parseFloat(s)*l:0;return Number.isNaN(c)?0:c}function o(e,i){var n=0,o=new Event(t),s=a(e);s?(e.addEventListener(t,(function a(o){o.target===e&&(i.apply(e,[o]),e.removeEventListener(t,a),n=1)})),setTimeout((function(){n||e.dispatchEvent(o)}),s+17)):i.apply(e,[o])}function s(t,e){var i=e&&e instanceof Element?e:document;return t instanceof Element?t:i.querySelector(t)}function l(t,e,i){var n=new CustomEvent(t+".bs."+e,{cancelable:!0});return void 0!==i&&Object.keys(i).forEach((function(t){Object.defineProperty(n,t,{value:i[t]})})),n}function c(t){this&&this.dispatchEvent(t)}function r(t){var e,i,n=this,a=l("close","alert"),r=l("closed","alert");function d(t){e[t?"addEventListener":"removeEventListener"]("click",u,!1)}function u(t){i=t&&t.target.closest(".alert"),(e=s('[data-dismiss="alert"]',i))&&i&&(e===t.target||e.contains(t.target))&&n.close()}function m(){d(),i.parentNode.removeChild(i),c.call(i,r)}n.close=function(){if(i&&e&&i.classList.contains("show")){if(c.call(i,a),a.defaultPrevented)return;n.dispose(),i.classList.remove("show"),i.classList.contains("fade")?o(i,m):m()}},n.dispose=function(){d(),delete e.Alert},e=s(t),i=e.closest(".alert"),e.Alert&&e.Alert.dispose(),e.Alert||d(1),n.element=e,e.Alert=n}function d(t){var e,i,n=l("change","button");function a(t){var a=t.target,o=a.closest("LABEL"),s=null;"LABEL"===a.tagName?s=a:o&&(s=o);var l=s&&s.getElementsByTagName("INPUT")[0];if(l){if(c.call(l,n),c.call(e,n),"checkbox"===l.type){if(n.defaultPrevented)return;l.checked?(s.classList.remove("active"),l.getAttribute("checked"),l.removeAttribute("checked"),l.checked=!1):(s.classList.add("active"),l.getAttribute("checked"),l.setAttribute("checked","checked"),l.checked=!0),e.toggled||(e.toggled=!0)}if("radio"===l.type&&!e.toggled){if(n.defaultPrevented)return;(!l.checked||0===t.screenX&&0===t.screenY)&&(s.classList.add("active"),s.classList.add("focus"),l.setAttribute("checked","checked"),l.checked=!0,e.toggled=!0,Array.from(i).forEach((function(t){var e=t.getElementsByTagName("INPUT")[0];t!==s&&t.classList.contains("active")&&(c.call(e,n),t.classList.remove("active"),e.removeAttribute("checked"),e.checked=!1)})))}setTimeout((function(){e.toggled=!1}),50)}}function o(t){32===(t.which||t.keyCode)&&t.target===document.activeElement&&a(t)}function r(t){32===(t.which||t.keyCode)&&t.preventDefault()}function d(t){if("INPUT"===t.target.tagName){var e="focusin"===t.type?"add":"remove";t.target.closest(".btn").classList[e]("focus")}}function u(t){var i=t?"addEventListener":"removeEventListener";e[i]("click",a,!1),e[i]("keyup",o,!1),e[i]("keydown",r,!1),e[i]("focusin",d,!1),e[i]("focusout",d,!1)}this.dispose=function(){u(),delete e.Button},(e=s(t)).Button&&e.Button.dispose(),(i=e.getElementsByClassName("btn")).length&&(e.Button||u(1),e.toggled=!1,e.Button=this,Array.from(i).forEach((function(t){var e=s("input:checked",t);!t.classList.contains("active")&&e&&t.classList.add("active"),t.classList.contains("active")&&!e&&t.classList.remove("active")})))}var u="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],m=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0}});document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){throw Error("Passive events are not supported")}return t}()&&{passive:!0};function f(t){return t.offsetHeight}function h(t,e){var i,n,r,d,h,g,p,v,L,b,y,w,A,T=e||{},E=this;function k(){!1===g.interval||d.classList.contains("paused")||(d.classList.add("paused"),h.isSliding||(clearInterval(h.timer),h.timer=null))}function x(){!1!==g.interval&&d.classList.contains("paused")&&(d.classList.remove("paused"),h.isSliding||(clearInterval(h.timer),h.timer=null,E.cycle()))}function C(t){if(t.preventDefault(),!h.isSliding){var e=t.target;e&&!e.classList.contains("active")&&e.getAttribute("data-slide-to")&&(h.index=+e.getAttribute("data-slide-to"),E.slideTo(h.index))}}function N(t){if(t.preventDefault(),!h.isSliding){var e=t.currentTarget||t.srcElement;e===y?h.index+=1:e===b&&(h.index-=1),E.slideTo(h.index)}}function P(t){var e=t.which;if(!h.isSliding){switch(e){case 39:h.index+=1;break;case 37:h.index-=1;break;default:return}E.slideTo(h.index)}}function H(t){var e=t?"addEventListener":"removeEventListener";g.pause&&g.interval&&(d[e](u[0],k,!1),d[e](u[1],x,!1),d[e]("touchstart",k,m),d[e]("touchend",x,m)),g.touch&&L.length>1&&d[e]("touchstart",B,m),y&&y[e]("click",N,!1),b&&b[e]("click",N,!1),w&&w[e]("click",C,!1),g.keyboard&&window[e]("keydown",P,!1)}function S(t){var e=t?"addEventListener":"removeEventListener";d[e]("touchmove",M,m),d[e]("touchend",I,m)}function B(t){h.isTouch||(h.touchPosition.startX=t.changedTouches[0].pageX,d.contains(t.target)&&(h.isTouch=!0,S(1)))}function M(t){h.isTouch?(h.touchPosition.currentX=t.changedTouches[0].pageX,"touchmove"===t.type&&t.changedTouches.length>1&&t.preventDefault()):t.preventDefault()}function I(t){if(h.isTouch&&!h.isSliding&&(h.touchPosition.endX=h.touchPosition.currentX||t.changedTouches[0].pageX,h.isTouch)){if((!d.contains(t.target)||!d.contains(t.relatedTarget))&&Math.abs(h.touchPosition.startX-h.touchPosition.endX)<75)return;h.touchPosition.currentXh.touchPosition.startX&&(h.index-=1),h.isTouch=!1,E.slideTo(h.index),S()}}function D(t){Array.from(A).forEach((function(t){return t.classList.remove("active")})),A[t]&&A[t].classList.add("active")}function X(t){if(h.touchPosition){var e=h.index,i=t&&t.target!==L[e]?1e3*t.elapsedTime+100:20,n=E.getActiveIndex(),a="left"===h.direction?"next":"prev";h.isSliding&&setTimeout((function(){h.touchPosition&&(h.isSliding=!1,L[e].classList.add("active"),L[n].classList.remove("active"),L[e].classList.remove("carousel-item-"+a),L[e].classList.remove("carousel-item-"+h.direction),L[n].classList.remove("carousel-item-"+h.direction),c.call(d,v),document.hidden||!g.interval||d.classList.contains("paused")||E.cycle())}),i)}}if(E.cycle=function(){h.timer&&(clearInterval(h.timer),h.timer=null),h.timer=setInterval((function(){var t=h.index||E.getActiveIndex();(function(t){var e=t.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight;return e.top<=i&&e.bottom>=0})(d)&&(t+=1,E.slideTo(t))}),g.interval)},E.slideTo=function(t){if(!h.isSliding){var e=E.getActiveIndex(),i=t;if(e!==i){ei||e===L.length-1&&0===i)&&(h.direction="right"),i<0?i=L.length-1:i>=L.length&&(i=0);var n="left"===h.direction?"next":"prev",s={relatedTarget:L[i],direction:h.direction,from:e,to:i};p=l("slide","carousel",s),v=l("slid","carousel",s),c.call(d,p),p.defaultPrevented||(h.index=i,h.isSliding=!0,clearInterval(h.timer),h.timer=null,D(i),a(L[i])&&d.classList.contains("slide")?(L[i].classList.add("carousel-item-"+n),f(L[i]),L[i].classList.add("carousel-item-"+h.direction),L[e].classList.add("carousel-item-"+h.direction),o(L[i],X)):(L[i].classList.add("active"),f(L[i]),L[e].classList.remove("active"),setTimeout((function(){h.isSliding=!1,g.interval&&d&&!d.classList.contains("paused")&&E.cycle(),c.call(d,v)}),100)))}}},E.getActiveIndex=function(){return Array.from(L).indexOf(d.getElementsByClassName("carousel-item active")[0])||0},E.dispose=function(){var t=["left","right","prev","next"];Array.from(L).forEach((function(e,i){e.classList.contains("active")&&D(i),t.forEach((function(t){return e.classList.remove("carousel-item-"+t)}))})),clearInterval(h.timer),H(),h={},g={},delete d.Carousel},(d=s(t)).Carousel&&d.Carousel.dispose(),L=d.getElementsByClassName("carousel-item"),i=d.getElementsByClassName("carousel-control-prev"),b=i[0],n=d.getElementsByClassName("carousel-control-next"),y=n[0],r=d.getElementsByClassName("carousel-indicators"),w=r[0],A=w&&w.getElementsByTagName("LI")||[],!(L.length<2)){var O=d.getAttribute("data-interval"),R="false"===O?0:+O,W="false"===d.getAttribute("data-touch")?0:1,j="hover"===d.getAttribute("data-pause")||!1,z="true"===d.getAttribute("data-keyboard")||!1,U=T.interval,q=T.touch;(g={}).keyboard=!0===T.keyboard||z,g.pause=!("hover"!==T.pause&&!j)&&"hover",g.touch=q||W,g.interval=5e3,"number"==typeof U?g.interval=U:!1===U||0===R||!1===R?g.interval=0:Number.isNaN(R)||(g.interval=R),E.getActiveIndex()<0&&(L.length&&L[0].classList.add("active"),A.length&&D(0)),(h={}).direction="left",h.index=0,h.timer=null,h.isSliding=!1,h.isTouch=!1,h.touchPosition={startX:0,currentX:0,endX:0},H(1),g.interval&&E.cycle(),d.Carousel=E}}function g(t,e){var i,n,a,r,d,u,m,h=e||{},g=this,p=null,v=null;function L(t,e){c.call(t,u),u.defaultPrevented||(t.isAnimating=!0,t.style.height=t.scrollHeight+"px",t.classList.remove("collapse"),t.classList.remove("show"),t.classList.add("collapsing"),f(t),t.style.height="0px",o(t,(function(){t.isAnimating=!1,t.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded","false"),t.classList.remove("collapsing"),t.classList.add("collapse"),t.style.height="",c.call(t,m)})))}g.toggle=function(t){(t&&"A"===t.target.tagName||"A"===i.tagName)&&t.preventDefault(),(i.contains(t.target)||t.target===i)&&(v.classList.contains("show")?g.hide():g.show())},g.hide=function(){v.isAnimating||(L(v,i),i.classList.add("collapsed"))},g.show=function(){var t,e,l;p&&(t=p.getElementsByClassName("collapse show"),n=t[0],a=n&&(s('[data-target="#'+n.id+'"]',p)||s('[href="#'+n.id+'"]',p))),v.isAnimating||(a&&n!==v&&(L(n,a),a.classList.add("collapsed")),e=v,l=i,c.call(e,r),r.defaultPrevented||(e.isAnimating=!0,e.classList.add("collapsing"),e.classList.remove("collapse"),e.style.height=e.scrollHeight+"px",o(e,(function(){e.isAnimating=!1,e.setAttribute("aria-expanded","true"),l.setAttribute("aria-expanded","true"),e.classList.remove("collapsing"),e.classList.add("collapse"),e.classList.add("show"),e.style.height="",c.call(e,d)}))),i.classList.remove("collapsed"))},g.dispose=function(){i.removeEventListener("click",g.toggle,!1),delete i.Collapse},(i=s(t)).Collapse&&i.Collapse.dispose();var b=i.getAttribute("data-parent");r=l("show","collapse"),d=l("shown","collapse"),u=l("hide","collapse"),m=l("hidden","collapse"),null!==(v=s(h.target||i.getAttribute("data-target")||i.getAttribute("href")))&&(v.isAnimating=!1),p=i.closest(h.parent||b),i.Collapse||i.addEventListener("click",g.toggle,!1),i.Collapse=g}function p(t){t.focus()}function v(t,e){var i,n,a,o,r,d,u,m,f=this,h=null,g=[];function v(t){(t.href&&"#"===t.href.slice(-1)||t.parentNode&&t.parentNode.href&&"#"===t.parentNode.href.slice(-1))&&this.preventDefault()}function L(){var t=i.open?"addEventListener":"removeEventListener";document[t]("click",b,!1),document[t]("keydown",w,!1),document[t]("keyup",A,!1),document[t]("focus",b,!1)}function b(t){var e=t.target;if(e.getAttribute){var n=e&&e.getAttribute("data-toggle")||e.parentNode&&e.parentNode.getAttribute&&e.parentNode.getAttribute("data-toggle");("focus"!==t.type||e!==i&&e!==u&&!u.contains(e))&&(e!==u&&!u.contains(e)||!m&&!n)&&(h=e===i||i.contains(e)?i:null,f.hide(),v.call(t,e))}}function y(t){h=i,f.show(),v.call(t,t.target)}function w(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()}function A(t){var e=t.which||t.keyCode,n=document.activeElement,a=n===i,o=u.contains(n),s=n.parentNode===u||n.parentNode.parentNode===u,l=g.indexOf(n);s&&(a?l=0:38===e?l=l>1?l-1:0:40===e&&(l=l=d,A=m.top+r/2+g/2>=u,T=m.top-r<0,E=m.left-c<0,k=m.top+r+g>=u,x=m.left+c+h>=d,C=i;C="right"===(C="left"===(C="bottom"===(C="top"===(C=("left"===C||"right"===C)&&E&&x?"top":C)&&T?"bottom":C)&&k?"top":C)&&E?"right":C)&&x?"left":C,-1===e.className.indexOf(C)&&(e.className=e.className.replace(/\b(top|bottom|left|right)+/,C));var N=v.offsetWidth,P=v.offsetHeight;"left"===C||"right"===C?(o="left"===C?m.left+f.x-c-(p?N:0):m.left+f.x+h,L?(a=m.top+f.y,s=g/2-N):A?(a=m.top+f.y-r+g,s=r-g/2-N):(a=m.top+f.y-r/2+g/2,s=r/2-(p?.9*P:P/2))):"top"!==C&&"bottom"!==C||(a="top"===C?m.top+f.y-r-(p?P:0):m.top+f.y+g,b?(o=0,l=m.left+h/2-N):w?(o=d-1.01*c,l=c-(d-m.left)+h/2-N/2):(o=m.left+f.x-c/2+h/2,l=c/2-(p?N:N/2))),e.style.top=a+"px",e.style.left=o+"px",s&&(v.style.top=s+"px"),l&&(v.style.left=l+"px")}function A(t,e){var i,n,a,r,d,f,h,g,p,v,L=e||{},y=this,A=null,T=0,E=/(iPhone|iPod|iPad)/.test(navigator.userAgent),k={};function x(t){null!==A&&t.target===s(".close",A)&&y.hide()}function C(){return{0:L.title||n.getAttribute("data-title")||null,1:L.content||n.getAttribute("data-content")||null}}function N(){null===A&&n.focus()}function P(t){var e=t?"addEventListener":"removeEventListener";"hover"===k.trigger?(n[e](b,y.show),n[e](u[0],y.show),k.dismissible||n[e](u[1],y.hide)):"click"===k.trigger?n[e](k.trigger,y.toggle):"focus"===k.trigger&&(E&&n[e]("click",N,!1),n[e](k.trigger,y.toggle))}function H(t){A&&A.contains(t.target)||t.target===n||n.contains(t.target)||y.hide()}function S(t){var e=t?"addEventListener":"removeEventListener";k.dismissible?document[e]("click",x,!1):("focus"===k.trigger&&n[e]("blur",y.hide),"hover"===k.trigger&&document[e]("touchstart",H,m)),window[e]("resize",y.hide,m)}function B(){S(1),c.call(n,g)}function M(){S(),k.container.removeChild(A),T=null,A=null,c.call(n,v)}y.toggle=function(){null===A?y.show():y.hide()},y.show=function(){clearTimeout(T),T=setTimeout((function(){if(null===A){if(c.call(n,h),h.defaultPrevented)return;!function(){var t;t=C(),a=t[0],r=(r=t[1])?r.trim():null,A=document.createElement("div");var e=document.createElement("div");if(e.classList.add("arrow"),A.appendChild(e),null!==r&&null===k.template){if(A.setAttribute("role","tooltip"),null!==a){var i=document.createElement("h3");i.classList.add("popover-header"),i.innerHTML=k.dismissible?a+f:a,A.appendChild(i)}var n=document.createElement("div");n.classList.add("popover-body"),n.innerHTML=k.dismissible&&null===a?r+f:r,A.appendChild(n)}else{var o=document.createElement("div");o.innerHTML=k.template.trim(),A.className=o.firstChild.className,A.innerHTML=o.firstChild.innerHTML;var l=s(".popover-header",A),c=s(".popover-body",A);a&&l&&(l.innerHTML=a.trim()),r&&c&&(c.innerHTML=r.trim())}k.container.appendChild(A),A.style.display="block",A.classList.contains("popover")||A.classList.add("popover"),A.classList.contains(k.animation)||A.classList.add(k.animation),A.classList.contains(d)||A.classList.add(d)}(),w(n,A,k.placement,k.container),A.classList.contains("show")||A.classList.add("show"),k.animation?o(A,B):B()}}),20)},y.hide=function(){clearTimeout(T),T=setTimeout((function(){if(A&&null!==A&&A.classList.contains("show")){if(c.call(n,p),p.defaultPrevented)return;A.classList.remove("show"),k.animation?o(A,M):M()}}),k.delay)},y.dispose=function(){y.hide(),P(),delete n.Popover},(n=s(t)).Popover&&n.Popover.dispose();var I=n.getAttribute("data-trigger"),D=n.getAttribute("data-animation"),X=n.getAttribute("data-placement"),O=n.getAttribute("data-dismissible"),R=n.getAttribute("data-delay"),W=n.getAttribute("data-container");f='',h=l("show","popover"),g=l("shown","popover"),p=l("hide","popover"),v=l("hidden","popover");var j=s(L.container),z=s(W),U=n.closest(".modal"),q=n.closest(".fixed-top"),Y=n.closest(".fixed-bottom");k.template=L.template?L.template:null,k.trigger=L.trigger?L.trigger:I||"hover",k.animation=L.animation&&"fade"!==L.animation?L.animation:D||"fade",k.placement=L.placement?L.placement:X||"top",k.delay=parseInt(L.delay||R,10)||200,k.dismissible=!(!L.dismissible&&"true"!==O),k.container=j||z||q||Y||U||document.body,d="bs-popover-"+k.placement,i=C(),a=i[0],((r=i[1])||k.template)&&(n.Popover||P(1),n.Popover=y)}function T(t,e){var i,n,a,o,r,d=e||{},u=this,f={};function h(){var t,e,l;(a=o.getElementsByTagName("A"),n.scrollTop=n.isWindow?y().y:i.scrollTop,n.length!==a.length||p()!==n.scrollHeight)&&(n.items=[],n.offsets=[],n.scrollHeight=p(),n.maxScroll=n.scrollHeight-(n.isWindow?window.innerHeight:i.getBoundingClientRect().height),Array.from(a).forEach((function(i){t=i.getAttribute("href"),(e=t&&"#"===t.charAt(0)&&"#"!==t.slice(-1)&&s(t))&&(n.items.push(i),l=e.getBoundingClientRect(),n.offsets.push((n.isWindow?l.top+n.scrollTop:e.offsetTop)-f.offset))})),n.length=n.items.length)}function g(t){var e=t?"addEventListener":"removeEventListener";r[e]("scroll",u.refresh,m),window[e]("resize",u.refresh,m)}function p(){return r.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}function v(){Array.from(a).map((function(t){return t.classList.contains("active")&&t.classList.remove("active")}))}function L(t){var e,a=t;v(),n.activeItem=a,a.classList.add("active");for(var o=[];a.parentNode!==document.body;)((e=(a=a.parentNode).classList).contains("dropdown-menu")||e.contains("nav"))&&o.push(a);o.forEach((function(t){var e=t.previousElementSibling;e&&!e.classList.contains("active")&&e.classList.add("active")})),c.call(i,l("activate","scrollspy",{relatedTarget:n.activeItem}))}u.refresh=function(){if(h(),n.scrollTop>=n.maxScroll){var t=n.items[n.length-1];n.activeItem!==t&&L(t)}else{if(n.activeItem&&n.scrollTop0)return n.activeItem=null,void v();for(var e=n.length;e>-1;)n.activeItem!==n.items[e]&&n.scrollTop>=n.offsets[e]&&(void 0===n.offsets[e+1]||n.scrollTop1&&(p=t[t.length-1]):p=t[0],p}function P(){return s(N().getAttribute("href"))}function H(t){t.preventDefault(),g=t.currentTarget,a.isAnimating||T.show()}T.show=function(){if(!(g=g||n).classList.contains("active")){if(L=s(g.getAttribute("href")),p=N(),v=P(),m=l("hide","tab",{relatedTarget:g}),c.call(p,m),m.defaultPrevented)return;a.isAnimating=!0,p.classList.remove("active"),p.setAttribute("aria-selected","false"),g.classList.add("active"),g.setAttribute("aria-selected","true"),r&&(n.parentNode.classList.contains("dropdown-menu")?r.classList.contains("active")||r.classList.add("active"):r.classList.contains("active")&&r.classList.remove("active")),v.classList.contains("fade")?(v.classList.remove("show"),o(v,C)):C()}},T.dispose=function(){n.removeEventListener("click",H,!1),delete n.Tab},(n=s(t)).Tab&&n.Tab.dispose();var S=n.getAttribute("data-height");a=n.closest(".nav"),r=a&&s(".dropdown-toggle",a);var B=!(!e||!1===A.height||"false"===S);a.isAnimating=!1,n.Tab||n.addEventListener("click",H,!1),B&&(E=P().parentNode),n.Tab=T}function k(t,e){var i,n,a,r,d,u,m=e||{},h=this,g=0,p={};function v(){n.classList.remove("showing"),n.classList.add("show"),c.call(n,d),p.autohide&&h.hide()}function L(){n.classList.add("hide"),c.call(n,u)}function b(){n.classList.remove("show"),p.animation?o(n,L):L()}function y(){clearTimeout(g),i.removeEventListener("click",h.hide,!1),delete i.Toast}h.show=function(){if(n&&!n.classList.contains("show")){if(c.call(n,a),a.defaultPrevented)return;p.animation&&n.classList.add("fade"),n.classList.remove("hide"),f(n),n.classList.add("showing"),p.animation?o(n,v):v()}},h.hide=function(t){if(n&&n.classList.contains("show")){if(c.call(n,r),r.defaultPrevented)return;t?b():g=setTimeout(b,p.delay)}},h.dispose=function(){p.animation?o(n,y):y()},(i=s(t)).Toast&&i.Toast.dispose(),n=i.closest(".toast");var w=i.getAttribute("data-animation"),A=i.getAttribute("data-autohide"),T=i.getAttribute("data-delay");a=l("show","toast"),r=l("hide","toast"),d=l("shown","toast"),u=l("hidden","toast"),p.animation=!1===m.animation||"false"===w?0:1,p.autohide=!1===m.autohide||"false"===A?0:1,p.delay=parseInt(m.delay||T,10)||500,i.Toast||i.addEventListener("click",h.hide,!1),i.Toast=h}function x(t,e){var i,n,a,r,d,f,h,g=e||{},p=this,v=null,L=0,y={};function A(){return i.getAttribute("title")||i.getAttribute("data-title")||i.getAttribute("data-original-title")}function T(t){v&&v.contains(t.target)||t.target===i||i.contains(t.target)||p.hide()}function E(t){var e=t?"addEventListener":"removeEventListener";document[e]("touchstart",T,m),window[e]("resize",p.hide,m)}function k(){E(1),c.call(i,d)}function x(){E(),y.container.removeChild(v),v=null,L=null,c.call(i,h)}function C(t){var e=t?"addEventListener":"removeEventListener";i[e](b,p.show,!1),i[e](u[0],p.show,!1),i[e](u[1],p.hide,!1)}p.show=function(){clearTimeout(L),L=setTimeout((function(){if(null===v){if(c.call(i,r),r.defaultPrevented)return;!1!==function(){if(n=A()){if(v=document.createElement("div"),y.template){var t=document.createElement("div");t.innerHTML=y.template.trim(),v.className=t.firstChild.className,v.innerHTML=t.firstChild.innerHTML,s(".tooltip-inner",v).innerHTML=n.trim()}else{var e=document.createElement("div");e.classList.add("arrow"),v.appendChild(e);var i=document.createElement("div");i.classList.add("tooltip-inner"),v.appendChild(i),i.innerHTML=n}v.style.left="0",v.style.top="0",v.setAttribute("role","tooltip"),v.classList.contains("tooltip")||v.classList.add("tooltip"),v.classList.contains(y.animation)||v.classList.add(y.animation),v.classList.contains(a)||v.classList.add(a),y.container.appendChild(v)}}()&&(w(i,v,y.placement,y.container),v.classList.contains("show")||v.classList.add("show"),y.animation?o(v,k):k())}}),20)},p.hide=function(){clearTimeout(L),L=setTimeout((function(){if(v&&v.classList.contains("show")){if(c.call(i,f),f.defaultPrevented)return;v.classList.remove("show"),y.animation?o(v,x):x()}}),y.delay)},p.toggle=function(){v?p.hide():p.show()},p.dispose=function(){C(),p.hide(),i.setAttribute("title",i.getAttribute("data-original-title")),i.removeAttribute("data-original-title"),delete i.Tooltip},(i=s(t)).Tooltip&&i.Tooltip.dispose();var N=i.getAttribute("data-animation"),P=i.getAttribute("data-placement"),H=i.getAttribute("data-delay"),S=i.getAttribute("data-container"),B=s(g.container),M=s(S),I=i.closest(".modal");r=l("show","tooltip"),d=l("shown","tooltip"),f=l("hide","tooltip"),h=l("hidden","tooltip");var D=i.closest(".fixed-top"),X=i.closest(".fixed-bottom");y.animation=g.animation&&"fade"!==g.animation?g.animation:N||"fade",y.placement=g.placement?g.placement:P||"top",y.template=g.template?g.template:null,y.delay=parseInt(g.delay||H,10)||200,y.container=B||M||D||X||I||document.body,a="bs-tooltip-"+y.placement,(n=A())&&(i.Tooltip||(i.setAttribute("data-original-title",n),i.removeAttribute("title"),C(1)),i.Tooltip=p)}var C={};function N(t){var e=t instanceof Element?t:document;Object.keys(C).forEach((function(t){var i,n;i=C[t][0],n=e.querySelectorAll(C[t][1]),Array.from(n).map((function(t){return new i(t)}))}))}C.Alert=[r,'[data-dismiss="alert"]'],C.Button=[d,'[data-toggle="buttons"]'],C.Carousel=[h,'[data-ride="carousel"]'],C.Collapse=[g,'[data-toggle="collapse"]'],C.Dropdown=[v,'[data-toggle="dropdown"]'],C.Modal=[L,'[data-toggle="modal"]'],C.Popover=[A,'[data-toggle="popover"],[data-tip="popover"]'],C.ScrollSpy=[T,'[data-spy="scroll"]'],C.Tab=[E,'[data-toggle="tab"]'],C.Toast=[k,'[data-dismiss="toast"]'],C.Tooltip=[x,'[data-toggle="tooltip"],[data-tip="tooltip"]'],document.body?N():document.addEventListener("DOMContentLoaded",(function t(){N(),document.removeEventListener("DOMContentLoaded",t,!1)}),!1);return{Alert:r,Button:d,Carousel:h,Collapse:g,Dropdown:v,Modal:L,Popover:A,ScrollSpy:T,Tab:E,Toast:k,Tooltip:x,initCallback:N,removeDataAPI:function(t){var e=t instanceof Element?t:document;Object.keys(C).forEach((function(t){var i,n;i=t,n=e.querySelectorAll(C[t][1]),Array.from(n).map((function(t){return t[i].dispose()}))}))},componentsInit:C,Version:"3.0.15"}})); +// Native JavaScript for Bootstrap v4.0.0 | 2021 © dnp_theme | MIT-License +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).BSN=e()}(this,(function(){"use strict";var t="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",e="webkitTransition"in document.head.style||"transition"in document.head.style,i="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",n="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty";function a(t){var a=getComputedStyle(t),o=a[n],s=a[i],l=s.includes("ms")?1:1e3,c=e&&o&&"none"!==o?parseFloat(s)*l:0;return Number.isNaN(c)?0:c}function o(e,i){var n=0,o=new Event(t),s=a(e);s?(e.addEventListener(t,(function a(o){o.target===e&&(i.apply(e,[o]),e.removeEventListener(t,a),n=1)})),setTimeout((function(){n||e.dispatchEvent(o)}),s+17)):i.apply(e,[o])}function s(t,e){var i=e&&e instanceof Element?e:document;return t instanceof Element?t:i.querySelector(t)}function l(t,e,i){var n=new CustomEvent(t+".bs."+e,{cancelable:!0});return void 0!==i&&Object.keys(i).forEach((function(t){Object.defineProperty(n,t,{value:i[t]})})),n}function c(t){this&&this.dispatchEvent(t)}function r(t){var e,i,n=this,a=l("close","alert"),r=l("closed","alert");function d(t){e[t?"addEventListener":"removeEventListener"]("click",u,!1)}function u(t){i=t&&t.target.closest(".alert"),(e=s('[data-dismiss="alert"]',i))&&i&&(e===t.target||e.contains(t.target))&&n.close()}function m(){d(),i.parentNode.removeChild(i),c.call(i,r)}n.close=function(){if(i&&e&&i.classList.contains("show")){if(c.call(i,a),a.defaultPrevented)return;n.dispose(),i.classList.remove("show"),i.classList.contains("fade")?o(i,m):m()}},n.dispose=function(){d(),delete e.Alert},e=s(t),i=e.closest(".alert"),e.Alert&&e.Alert.dispose(),e.Alert||d(1),n.element=e,e.Alert=n}function d(t){var e,i,n=l("change","button");function a(t){var a=t.target,o=a.closest("LABEL"),s=null;"LABEL"===a.tagName?s=a:o&&(s=o);var l=s&&s.getElementsByTagName("INPUT")[0];if(l){if(c.call(l,n),c.call(e,n),"checkbox"===l.type){if(n.defaultPrevented)return;l.checked?(s.classList.remove("active"),l.getAttribute("checked"),l.removeAttribute("checked"),l.checked=!1):(s.classList.add("active"),l.getAttribute("checked"),l.setAttribute("checked","checked"),l.checked=!0),e.toggled||(e.toggled=!0)}if("radio"===l.type&&!e.toggled){if(n.defaultPrevented)return;(!l.checked||0===t.screenX&&0===t.screenY)&&(s.classList.add("active"),s.classList.add("focus"),l.setAttribute("checked","checked"),l.checked=!0,e.toggled=!0,Array.from(i).forEach((function(t){var e=t.getElementsByTagName("INPUT")[0];t!==s&&t.classList.contains("active")&&(c.call(e,n),t.classList.remove("active"),e.removeAttribute("checked"),e.checked=!1)})))}setTimeout((function(){e.toggled=!1}),50)}}function o(t){32===(t.which||t.keyCode)&&t.target===document.activeElement&&a(t)}function r(t){32===(t.which||t.keyCode)&&t.preventDefault()}function d(t){if("INPUT"===t.target.tagName){var e="focusin"===t.type?"add":"remove";t.target.closest(".btn").classList[e]("focus")}}function u(t){var i=t?"addEventListener":"removeEventListener";e[i]("click",a,!1),e[i]("keyup",o,!1),e[i]("keydown",r,!1),e[i]("focusin",d,!1),e[i]("focusout",d,!1)}this.dispose=function(){u(),delete e.Button},(e=s(t)).Button&&e.Button.dispose(),(i=e.getElementsByClassName("btn")).length&&(e.Button||u(1),e.toggled=!1,e.Button=this,Array.from(i).forEach((function(t){var e=s("input:checked",t);!t.classList.contains("active")&&e&&t.classList.add("active"),t.classList.contains("active")&&!e&&t.classList.remove("active")})))}var u="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],m=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0}});document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){throw Error("Passive events are not supported")}return t}()&&{passive:!0};function f(t){return t.offsetHeight}function h(t,e){var i,n,r,d,h,g,p,v,L,b,y,w,A,T=e||{},E=this;function k(){!1===g.interval||d.classList.contains("paused")||(d.classList.add("paused"),h.isSliding||(clearInterval(h.timer),h.timer=null))}function x(){!1!==g.interval&&d.classList.contains("paused")&&(d.classList.remove("paused"),h.isSliding||(clearInterval(h.timer),h.timer=null,E.cycle()))}function C(t){if(t.preventDefault(),!h.isSliding){var e=t.target;e&&!e.classList.contains("active")&&e.getAttribute("data-slide-to")&&(h.index=+e.getAttribute("data-slide-to"),E.slideTo(h.index))}}function N(t){if(t.preventDefault(),!h.isSliding){var e=t.currentTarget||t.srcElement;e===y?h.index+=1:e===b&&(h.index-=1),E.slideTo(h.index)}}function P(t){var e=t.which;if(!h.isSliding){switch(e){case 39:h.index+=1;break;case 37:h.index-=1;break;default:return}E.slideTo(h.index)}}function H(t){var e=t?"addEventListener":"removeEventListener";g.pause&&g.interval&&(d[e](u[0],k,!1),d[e](u[1],x,!1),d[e]("touchstart",k,m),d[e]("touchend",x,m)),g.touch&&L.length>1&&d[e]("touchstart",B,m),y&&y[e]("click",N,!1),b&&b[e]("click",N,!1),w&&w[e]("click",C,!1),g.keyboard&&window[e]("keydown",P,!1)}function S(t){var e=t?"addEventListener":"removeEventListener";d[e]("touchmove",M,m),d[e]("touchend",I,m)}function B(t){h.isTouch||(h.touchPosition.startX=t.changedTouches[0].pageX,d.contains(t.target)&&(h.isTouch=!0,S(1)))}function M(t){h.isTouch?(h.touchPosition.currentX=t.changedTouches[0].pageX,"touchmove"===t.type&&t.changedTouches.length>1&&t.preventDefault()):t.preventDefault()}function I(t){if(h.isTouch&&!h.isSliding&&(h.touchPosition.endX=h.touchPosition.currentX||t.changedTouches[0].pageX,h.isTouch)){if((!d.contains(t.target)||!d.contains(t.relatedTarget))&&Math.abs(h.touchPosition.startX-h.touchPosition.endX)<75)return;h.touchPosition.currentXh.touchPosition.startX&&(h.index-=1),h.isTouch=!1,E.slideTo(h.index),S()}}function D(t){Array.from(A).forEach((function(t){return t.classList.remove("active")})),A[t]&&A[t].classList.add("active")}function X(t){if(h.touchPosition){var e=h.index,i=t&&t.target!==L[e]?1e3*t.elapsedTime+100:20,n=E.getActiveIndex(),a="left"===h.direction?"next":"prev";h.isSliding&&setTimeout((function(){h.touchPosition&&(h.isSliding=!1,L[e].classList.add("active"),L[n].classList.remove("active"),L[e].classList.remove("carousel-item-"+a),L[e].classList.remove("carousel-item-"+h.direction),L[n].classList.remove("carousel-item-"+h.direction),c.call(d,v),document.hidden||!g.interval||d.classList.contains("paused")||E.cycle())}),i)}}if(E.cycle=function(){h.timer&&(clearInterval(h.timer),h.timer=null),h.timer=setInterval((function(){var t=h.index||E.getActiveIndex();(function(t){var e=t.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight;return e.top<=i&&e.bottom>=0})(d)&&(t+=1,E.slideTo(t))}),g.interval)},E.slideTo=function(t){if(!h.isSliding){var e=E.getActiveIndex(),i=t;if(e!==i){ei||e===L.length-1&&0===i)&&(h.direction="right"),i<0?i=L.length-1:i>=L.length&&(i=0);var n="left"===h.direction?"next":"prev",s={relatedTarget:L[i],direction:h.direction,from:e,to:i};p=l("slide","carousel",s),v=l("slid","carousel",s),c.call(d,p),p.defaultPrevented||(h.index=i,h.isSliding=!0,clearInterval(h.timer),h.timer=null,D(i),a(L[i])&&d.classList.contains("slide")?(L[i].classList.add("carousel-item-"+n),f(L[i]),L[i].classList.add("carousel-item-"+h.direction),L[e].classList.add("carousel-item-"+h.direction),o(L[i],X)):(L[i].classList.add("active"),f(L[i]),L[e].classList.remove("active"),setTimeout((function(){h.isSliding=!1,g.interval&&d&&!d.classList.contains("paused")&&E.cycle(),c.call(d,v)}),100)))}}},E.getActiveIndex=function(){return Array.from(L).indexOf(d.getElementsByClassName("carousel-item active")[0])||0},E.dispose=function(){var t=["left","right","prev","next"];Array.from(L).forEach((function(e,i){e.classList.contains("active")&&D(i),t.forEach((function(t){return e.classList.remove("carousel-item-"+t)}))})),clearInterval(h.timer),H(),h={},g={},delete d.Carousel},(d=s(t)).Carousel&&d.Carousel.dispose(),L=d.getElementsByClassName("carousel-item"),i=d.getElementsByClassName("carousel-control-prev"),b=i[0],n=d.getElementsByClassName("carousel-control-next"),y=n[0],r=d.getElementsByClassName("carousel-indicators"),w=r[0],A=w&&w.getElementsByTagName("LI")||[],!(L.length<2)){var O=d.getAttribute("data-interval"),R="false"===O?0:+O,W="false"===d.getAttribute("data-touch")?0:1,j="hover"===d.getAttribute("data-pause")||!1,z="true"===d.getAttribute("data-keyboard")||!1,U=T.interval,q=T.touch;(g={}).keyboard=!0===T.keyboard||z,g.pause=!("hover"!==T.pause&&!j)&&"hover",g.touch=q||W,g.interval=5e3,"number"==typeof U?g.interval=U:!1===U||0===R||!1===R?g.interval=0:Number.isNaN(R)||(g.interval=R),E.getActiveIndex()<0&&(L.length&&L[0].classList.add("active"),A.length&&D(0)),(h={}).direction="left",h.index=0,h.timer=null,h.isSliding=!1,h.isTouch=!1,h.touchPosition={startX:0,currentX:0,endX:0},H(1),g.interval&&E.cycle(),d.Carousel=E}}function g(t,e){var i,n,a,r,d,u,m,h=e||{},g=this,p=null,v=null;function L(t,e){c.call(t,u),u.defaultPrevented||(t.isAnimating=!0,t.style.height=t.scrollHeight+"px",t.classList.remove("collapse"),t.classList.remove("show"),t.classList.add("collapsing"),f(t),t.style.height="0px",o(t,(function(){t.isAnimating=!1,t.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded","false"),t.classList.remove("collapsing"),t.classList.add("collapse"),t.style.height="",c.call(t,m)})))}g.toggle=function(t){(t&&"A"===t.target.tagName||"A"===i.tagName)&&t.preventDefault(),(i.contains(t.target)||t.target===i)&&(v.classList.contains("show")?g.hide():g.show())},g.hide=function(){v.isAnimating||(L(v,i),i.classList.add("collapsed"))},g.show=function(){var t,e,l;p&&(t=p.getElementsByClassName("collapse show"),n=t[0],a=n&&(s('[data-target="#'+n.id+'"]',p)||s('[href="#'+n.id+'"]',p))),v.isAnimating||(a&&n!==v&&(L(n,a),a.classList.add("collapsed")),e=v,l=i,c.call(e,r),r.defaultPrevented||(e.isAnimating=!0,e.classList.add("collapsing"),e.classList.remove("collapse"),e.style.height=e.scrollHeight+"px",o(e,(function(){e.isAnimating=!1,e.setAttribute("aria-expanded","true"),l.setAttribute("aria-expanded","true"),e.classList.remove("collapsing"),e.classList.add("collapse"),e.classList.add("show"),e.style.height="",c.call(e,d)}))),i.classList.remove("collapsed"))},g.dispose=function(){i.removeEventListener("click",g.toggle,!1),delete i.Collapse},(i=s(t)).Collapse&&i.Collapse.dispose();var b=i.getAttribute("data-parent");r=l("show","collapse"),d=l("shown","collapse"),u=l("hide","collapse"),m=l("hidden","collapse"),null!==(v=s(h.target||i.getAttribute("data-target")||i.getAttribute("href")))&&(v.isAnimating=!1),p=i.closest(h.parent||b),i.Collapse||i.addEventListener("click",g.toggle,!1),i.Collapse=g}function p(t){t.focus()}function v(t,e){var i,n,a,o,r,d,u,m,f=this,h=null,g=[];function v(t){(t.href&&"#"===t.href.slice(-1)||t.parentNode&&t.parentNode.href&&"#"===t.parentNode.href.slice(-1))&&this.preventDefault()}function L(){var t=i.open?"addEventListener":"removeEventListener";document[t]("click",b,!1),document[t]("keydown",w,!1),document[t]("keyup",A,!1),document[t]("focus",b,!1)}function b(t){var e=t.target;if(e.getAttribute){var n=e&&e.getAttribute("data-toggle")||e.parentNode&&e.parentNode.getAttribute&&e.parentNode.getAttribute("data-toggle");("focus"!==t.type||e!==i&&e!==u&&!u.contains(e))&&(e!==u&&!u.contains(e)||!m&&!n)&&(h=e===i||i.contains(e)?i:null,f.hide(),v.call(t,e))}}function y(t){h=i,f.show(),v.call(t,t.target)}function w(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()}function A(t){var e=t.which||t.keyCode,n=document.activeElement,a=n===i,o=u.contains(n),s=n.parentNode===u||n.parentNode.parentNode===u,l=g.indexOf(n);s&&(a?l=0:38===e?l=l>1?l-1:0:40===e&&(l=l=d,A=m.top+r/2+g/2>=u,T=m.top-r<0,E=m.left-c<0,k=m.top+r+g>=u,x=m.left+c+h>=d,C=i;C="right"===(C="left"===(C="bottom"===(C="top"===(C=("left"===C||"right"===C)&&E&&x?"top":C)&&T?"bottom":C)&&k?"top":C)&&E?"right":C)&&x?"left":C,-1===e.className.indexOf(C)&&(e.className=e.className.replace(/\b(top|bottom|left|right)+/,C));var N=v.offsetWidth,P=v.offsetHeight;"left"===C||"right"===C?(o="left"===C?m.left+f.x-c-(p?N:0):m.left+f.x+h,L?(a=m.top+f.y,s=g/2-N):A?(a=m.top+f.y-r+g,s=r-g/2-N):(a=m.top+f.y-r/2+g/2,s=r/2-(p?.9*P:P/2))):"top"!==C&&"bottom"!==C||(a="top"===C?m.top+f.y-r-(p?P:0):m.top+f.y+g,b?(o=0,l=m.left+h/2-N):w?(o=d-1.01*c,l=c-(d-m.left)+h/2-N/2):(o=m.left+f.x-c/2+h/2,l=c/2-(p?N:N/2))),e.style.top=a+"px",e.style.left=o+"px",s&&(v.style.top=s+"px"),l&&(v.style.left=l+"px")}function A(t,e){var i,n,a,r,d,f,h,g,p,v,L=e||{},y=this,A=null,T=0,E=/(iPhone|iPod|iPad)/.test(navigator.userAgent),k={};function x(t){null!==A&&t.target===s(".close",A)&&y.hide()}function C(){return{0:L.title||n.getAttribute("data-title")||null,1:L.content||n.getAttribute("data-content")||null}}function N(){null===A&&n.focus()}function P(t){var e=t?"addEventListener":"removeEventListener";"hover"===k.trigger?(n[e](b,y.show),n[e](u[0],y.show),k.dismissible||n[e](u[1],y.hide)):"click"===k.trigger?n[e](k.trigger,y.toggle):"focus"===k.trigger&&(E&&n[e]("click",N,!1),n[e](k.trigger,y.toggle))}function H(t){A&&A.contains(t.target)||t.target===n||n.contains(t.target)||y.hide()}function S(t){var e=t?"addEventListener":"removeEventListener";k.dismissible?document[e]("click",x,!1):("focus"===k.trigger&&n[e]("blur",y.hide),"hover"===k.trigger&&document[e]("touchstart",H,m)),window[e]("resize",y.hide,m)}function B(){S(1),c.call(n,g)}function M(){S(),k.container.removeChild(A),T=null,A=null,c.call(n,v)}y.toggle=function(){null===A?y.show():y.hide()},y.show=function(){clearTimeout(T),T=setTimeout((function(){if(null===A){if(c.call(n,h),h.defaultPrevented)return;!function(){var t;t=C(),a=t[0],r=(r=t[1])?r.trim():null,A=document.createElement("div");var e=document.createElement("div");if(e.classList.add("arrow"),A.appendChild(e),null!==r&&null===k.template){if(A.setAttribute("role","tooltip"),null!==a){var i=document.createElement("h3");i.classList.add("popover-header"),i.innerHTML=k.dismissible?a+f:a,A.appendChild(i)}var n=document.createElement("div");n.classList.add("popover-body"),n.innerHTML=k.dismissible&&null===a?r+f:r,A.appendChild(n)}else{var o=document.createElement("div");o.innerHTML=k.template.trim(),A.className=o.firstChild.className,A.innerHTML=o.firstChild.innerHTML;var l=s(".popover-header",A),c=s(".popover-body",A);a&&l&&(l.innerHTML=a.trim()),r&&c&&(c.innerHTML=r.trim())}k.container.appendChild(A),A.style.display="block",A.classList.contains("popover")||A.classList.add("popover"),A.classList.contains(k.animation)||A.classList.add(k.animation),A.classList.contains(d)||A.classList.add(d)}(),w(n,A,k.placement,k.container),A.classList.contains("show")||A.classList.add("show"),k.animation?o(A,B):B()}}),20)},y.hide=function(){clearTimeout(T),T=setTimeout((function(){if(A&&null!==A&&A.classList.contains("show")){if(c.call(n,p),p.defaultPrevented)return;A.classList.remove("show"),k.animation?o(A,M):M()}}),k.delay)},y.dispose=function(){y.hide(),P(),delete n.Popover},(n=s(t)).Popover&&n.Popover.dispose();var I=n.getAttribute("data-trigger"),D=n.getAttribute("data-animation"),X=n.getAttribute("data-placement"),O=n.getAttribute("data-dismissible"),R=n.getAttribute("data-delay"),W=n.getAttribute("data-container");f='',h=l("show","popover"),g=l("shown","popover"),p=l("hide","popover"),v=l("hidden","popover");var j=s(L.container),z=s(W),U=n.closest(".modal"),q=n.closest(".fixed-top"),Y=n.closest(".fixed-bottom");k.template=L.template?L.template:null,k.trigger=L.trigger?L.trigger:I||"hover",k.animation=L.animation&&"fade"!==L.animation?L.animation:D||"fade",k.placement=L.placement?L.placement:X||"top",k.delay=parseInt(L.delay||R,10)||200,k.dismissible=!(!L.dismissible&&"true"!==O),k.container=j||z||q||Y||U||document.body,d="bs-popover-"+k.placement,i=C(),a=i[0],((r=i[1])||k.template)&&(n.Popover||P(1),n.Popover=y)}function T(t,e){var i,n,a,o,r,d=e||{},u=this,f={};function h(){var t,e,l;(a=o.getElementsByTagName("A"),n.scrollTop=n.isWindow?y().y:i.scrollTop,n.length!==a.length||p()!==n.scrollHeight)&&(n.items=[],n.offsets=[],n.scrollHeight=p(),n.maxScroll=n.scrollHeight-(n.isWindow?window.innerHeight:i.getBoundingClientRect().height),Array.from(a).forEach((function(i){t=i.getAttribute("href"),(e=t&&"#"===t.charAt(0)&&"#"!==t.slice(-1)&&s(t))&&(n.items.push(i),l=e.getBoundingClientRect(),n.offsets.push((n.isWindow?l.top+n.scrollTop:e.offsetTop)-f.offset))})),n.length=n.items.length)}function g(t){var e=t?"addEventListener":"removeEventListener";r[e]("scroll",u.refresh,m),window[e]("resize",u.refresh,m)}function p(){return r.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}function v(){Array.from(a).map((function(t){return t.classList.contains("active")&&t.classList.remove("active")}))}function L(t){var e,a=t;v(),n.activeItem=a,a.classList.add("active");for(var o=[];a.parentNode!==document.body;)((e=(a=a.parentNode).classList).contains("dropdown-menu")||e.contains("nav"))&&o.push(a);o.forEach((function(t){var e=t.previousElementSibling;e&&!e.classList.contains("active")&&e.classList.add("active")})),c.call(i,l("activate","scrollspy",{relatedTarget:n.activeItem}))}u.refresh=function(){if(h(),n.scrollTop>=n.maxScroll){var t=n.items[n.length-1];n.activeItem!==t&&L(t)}else{if(n.activeItem&&n.scrollTop0)return n.activeItem=null,void v();for(var e=n.length;e>-1;)n.activeItem!==n.items[e]&&n.scrollTop>=n.offsets[e]&&(void 0===n.offsets[e+1]||n.scrollTop1&&(p=t[t.length-1]):p=t[0],p}function P(){return s(N().getAttribute("href"))}function H(t){t.preventDefault(),g=t.currentTarget,a.isAnimating||T.show()}T.show=function(){if(!(g=g||n).classList.contains("active")){if(L=s(g.getAttribute("href")),p=N(),v=P(),m=l("hide","tab",{relatedTarget:g}),c.call(p,m),m.defaultPrevented)return;a.isAnimating=!0,p.classList.remove("active"),p.setAttribute("aria-selected","false"),g.classList.add("active"),g.setAttribute("aria-selected","true"),r&&(n.parentNode.classList.contains("dropdown-menu")?r.classList.contains("active")||r.classList.add("active"):r.classList.contains("active")&&r.classList.remove("active")),v.classList.contains("fade")?(v.classList.remove("show"),o(v,C)):C()}},T.dispose=function(){n.removeEventListener("click",H,!1),delete n.Tab},(n=s(t)).Tab&&n.Tab.dispose();var S=n.getAttribute("data-height");a=n.closest(".nav"),r=a&&s(".dropdown-toggle",a);var B=!(!e||!1===A.height||"false"===S);a.isAnimating=!1,n.Tab||n.addEventListener("click",H,!1),B&&(E=P().parentNode),n.Tab=T}function k(t,e){var i,n,a,r,d,u,m=e||{},h=this,g=0,p={};function v(){n.classList.remove("showing"),n.classList.add("show"),c.call(n,d),p.autohide&&h.hide()}function L(){n.classList.add("hide"),c.call(n,u)}function b(){n.classList.remove("show"),p.animation?o(n,L):L()}function y(){clearTimeout(g),i.removeEventListener("click",h.hide,!1),delete i.Toast}h.show=function(){if(n&&!n.classList.contains("show")){if(c.call(n,a),a.defaultPrevented)return;p.animation&&n.classList.add("fade"),n.classList.remove("hide"),f(n),n.classList.add("showing"),p.animation?o(n,v):v()}},h.hide=function(t){if(n&&n.classList.contains("show")){if(c.call(n,r),r.defaultPrevented)return;t?b():g=setTimeout(b,p.delay)}},h.dispose=function(){p.animation?o(n,y):y()},(i=s(t)).Toast&&i.Toast.dispose(),n=i.closest(".toast");var w=i.getAttribute("data-animation"),A=i.getAttribute("data-autohide"),T=i.getAttribute("data-delay");a=l("show","toast"),r=l("hide","toast"),d=l("shown","toast"),u=l("hidden","toast"),p.animation=!1===m.animation||"false"===w?0:1,p.autohide=!1===m.autohide||"false"===A?0:1,p.delay=parseInt(m.delay||T,10)||500,i.Toast||i.addEventListener("click",h.hide,!1),i.Toast=h}function x(t,e){var i,n,a,r,d,f,h,g=e||{},p=this,v=null,L=0,y={};function A(){return i.getAttribute("title")||i.getAttribute("data-title")||i.getAttribute("data-original-title")}function T(t){v&&v.contains(t.target)||t.target===i||i.contains(t.target)||p.hide()}function E(t){var e=t?"addEventListener":"removeEventListener";document[e]("touchstart",T,m),window[e]("resize",p.hide,m)}function k(){E(1),c.call(i,d)}function x(){E(),y.container.removeChild(v),v=null,L=null,c.call(i,h)}function C(t){var e=t?"addEventListener":"removeEventListener";i[e](b,p.show,!1),i[e](u[0],p.show,!1),i[e](u[1],p.hide,!1)}p.show=function(){clearTimeout(L),L=setTimeout((function(){if(null===v){if(c.call(i,r),r.defaultPrevented)return;!1!==function(){if(n=A()){if(v=document.createElement("div"),y.template){var t=document.createElement("div");t.innerHTML=y.template.trim(),v.className=t.firstChild.className,v.innerHTML=t.firstChild.innerHTML,s(".tooltip-inner",v).innerHTML=n.trim()}else{var e=document.createElement("div");e.classList.add("arrow"),v.appendChild(e);var i=document.createElement("div");i.classList.add("tooltip-inner"),v.appendChild(i),i.innerHTML=n}v.style.left="0",v.style.top="0",v.setAttribute("role","tooltip"),v.classList.contains("tooltip")||v.classList.add("tooltip"),v.classList.contains(y.animation)||v.classList.add(y.animation),v.classList.contains(a)||v.classList.add(a),y.container.appendChild(v)}}()&&(w(i,v,y.placement,y.container),v.classList.contains("show")||v.classList.add("show"),y.animation?o(v,k):k())}}),20)},p.hide=function(){clearTimeout(L),L=setTimeout((function(){if(v&&v.classList.contains("show")){if(c.call(i,f),f.defaultPrevented)return;v.classList.remove("show"),y.animation?o(v,x):x()}}),y.delay)},p.toggle=function(){v?p.hide():p.show()},p.dispose=function(){C(),p.hide(),i.setAttribute("title",i.getAttribute("data-original-title")),i.removeAttribute("data-original-title"),delete i.Tooltip},(i=s(t)).Tooltip&&i.Tooltip.dispose();var N=i.getAttribute("data-animation"),P=i.getAttribute("data-placement"),H=i.getAttribute("data-delay"),S=i.getAttribute("data-container"),B=s(g.container),M=s(S),I=i.closest(".modal");r=l("show","tooltip"),d=l("shown","tooltip"),f=l("hide","tooltip"),h=l("hidden","tooltip");var D=i.closest(".fixed-top"),X=i.closest(".fixed-bottom");y.animation=g.animation&&"fade"!==g.animation?g.animation:N||"fade",y.placement=g.placement?g.placement:P||"top",y.template=g.template?g.template:null,y.delay=parseInt(g.delay||H,10)||200,y.container=B||M||D||X||I||document.body,a="bs-tooltip-"+y.placement,(n=A())&&(i.Tooltip||(i.setAttribute("data-original-title",n),i.removeAttribute("title"),C(1)),i.Tooltip=p)}var C={};function N(t){var e=t instanceof Element?t:document;Object.keys(C).forEach((function(t){var i,n;i=C[t][0],n=e.querySelectorAll(C[t][1]),Array.from(n).map((function(t){return new i(t)}))}))}C.Alert=[r,'[data-dismiss="alert"]'],C.Button=[d,'[data-toggle="buttons"]'],C.Carousel=[h,'[data-ride="carousel"]'],C.Collapse=[g,'[data-toggle="collapse"]'],C.Dropdown=[v,'[data-toggle="dropdown"]'],C.Modal=[L,'[data-toggle="modal"]'],C.Popover=[A,'[data-toggle="popover"],[data-tip="popover"]'],C.ScrollSpy=[T,'[data-spy="scroll"]'],C.Tab=[E,'[data-toggle="tab"]'],C.Toast=[k,'[data-dismiss="toast"]'],C.Tooltip=[x,'[data-toggle="tooltip"],[data-tip="tooltip"]'],document.body?N():document.addEventListener("DOMContentLoaded",(function t(){N(),document.removeEventListener("DOMContentLoaded",t,!1)}),!1);return{Alert:r,Button:d,Carousel:h,Collapse:g,Dropdown:v,Modal:L,Popover:A,ScrollSpy:T,Tab:E,Toast:k,Tooltip:x,initCallback:N,removeDataAPI:function(t){var e=t instanceof Element?t:document;Object.keys(C).forEach((function(t){var i,n;i=t,n=e.querySelectorAll(C[t][1]),Array.from(n).map((function(t){return t[i].dispose()}))}))},componentsInit:C,Version:"4.0.0"}})); diff --git a/dist/bootstrap-native.esm.js b/dist/bootstrap-native.esm.js index 6a771946..285d8287 100644 --- a/dist/bootstrap-native.esm.js +++ b/dist/bootstrap-native.esm.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ @@ -3473,7 +3473,7 @@ Tooltip.init = { constructor: Tooltip, }; -var version = "3.0.15"; +var version = "4.0.0"; // import { alertInit } from '../components/alert-native.js'; // import { buttonInit } from '../components/button-native.js'; diff --git a/dist/bootstrap-native.esm.min.js b/dist/bootstrap-native.esm.min.js index bd680ea8..68ea90bd 100644 --- a/dist/bootstrap-native.esm.min.js +++ b/dist/bootstrap-native.esm.min.js @@ -1,2 +1,2 @@ -// Native JavaScript for Bootstrap v3.0.15 | 2021 © dnp_theme | MIT-License -const t="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",e="webkitTransition"in document.head.style||"transition"in document.head.style,n="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",o="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty";function i(t){const i=getComputedStyle(t),s=i[o],a=i[n],l=a.includes("ms")?1:1e3,r=e&&s&&"none"!==s?parseFloat(a)*l:0;return Number.isNaN(r)?0:r}function s(e,n){let o=0;const s=new Event(t),a=i(e);a?(e.addEventListener(t,(function i(s){s.target===e&&(n.apply(e,[s]),e.removeEventListener(t,i),o=1)})),setTimeout(()=>{o||e.dispatchEvent(s)},a+17)):n.apply(e,[s])}function a(t,e){const n=e&&e instanceof Element?e:document;return t instanceof Element?t:n.querySelector(t)}function l(t,e){return t.classList.contains(e)}function r(t,e){t.classList.remove(e)}const c="addEventListener";function d(t,e){const n=new CustomEvent(t,{cancelable:!0});return e instanceof Object&&Object.keys(e).forEach(t=>{Object.defineProperty(n,t,{value:e[t]})}),n}function h(t){return"true"===t||"false"!==t&&(Number.isNaN(+t)?""===t||"null"===t?null:t:+t)}class u{constructor(t,e,n,o){const i=this,s=a(e);s[t]&&s[t].dispose(),i.element=s,n&&Object.keys(n).length&&(i.options=function(t,e,n,o){const i={},s={},a={...t.dataset};return Object.keys(a).forEach(t=>{const e=t.includes(o)?t.replace(o,"").replace(/[A-Z]/,t=>t.toLowerCase()):t;s[e]=h(a[t])}),Object.keys(n).forEach(t=>{n[t]=h(n[t])}),Object.keys(e).forEach(t=>{i[t]=t in n?n[t]:t in s?s[t]:e[t]}),i}(s,n,o||{},"bs")),s[t]=i}dispose(t){const e=this;e.element[t]=null,Object.keys(e).forEach(t=>{e[t]=null})}}const p=d("close.bs.alert"),m=d("closed.bs.alert");function f(t){const{element:e,relatedTarget:n}=t;g(t),n&&(m.relatedTarget=n),e.dispatchEvent(m),t.dispose(),e.parentNode.removeChild(e)}function g(t,e){const n=e?c:"removeEventListener";t.dismiss&&t.dismiss[n]("click",t.close)}class v extends u{constructor(t){super("Alert",t);const{element:e}=this;this.dismiss=a('[data-bs-dismiss="alert"]',e),this.relatedTarget=null,g(this,1)}close(t){const e=t?t.target:null,n=t?t.target.closest(".alert").Alert:this,{element:o}=n;if(n&&o&&l(o,"show")){if(e&&(p.relatedTarget=e,n.relatedTarget=e),o.dispatchEvent(p),p.defaultPrevented)return;r(o,"show"),l(o,"fade")?s(o,()=>f(n)):f(n)}}dispose(){g(this),super.dispose("Alert")}}function b(t,e){t.classList.add(e)}v.init={component:"Alert",selector:".alert",constructor:v};const w="data-bs-toggle";function y(t,e){const n=e?c:"removeEventListener";t.element[n]("click",t.toggle)}class E extends u{constructor(t){super("Button",t);const{element:e}=this;this.isActive=l(e,"active"),e.setAttribute("aria-pressed",!!this.isActive),y(this,1)}toggle(t){t&&t.preventDefault();const e=t?this.Button:this,{element:n}=e;if(l(n,"disabled"))return;e.isActive=l(n,"active");const{isActive:o}=e,i=o?"false":"true";(o?r:b)(n,"active"),n.setAttribute("aria-pressed",i)}dispose(){y(this),super.dispose("Button")}}E.init={component:"Button",selector:'[data-bs-toggle="button"]',constructor:E};var A=!!(()=>{let t=!1;try{const e=Object.defineProperty({},"passive",{get:()=>(t=!0,t)});document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){throw Error("Passive events are not supported")}return t})()&&{passive:!0};function T(t){return t.offsetHeight}function C(t){const e=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;return e.top<=n&&e.bottom>=0}const x='[data-bs-ride="carousel"]',k={pause:"hover",keyboard:!1,touch:!0,interval:5e3};let H=0,L=0,N=0;const P=d("slide.bs.carousel"),S=d("slid.bs.carousel");function O(t){const e=t.target.closest(x).Carousel,{element:n,isAnimating:o}=e;l(n,"paused")||(b(n,"paused"),o||(clearInterval(e.timer),e.timer=null))}function D(t){const e=t.target.closest(x).Carousel,{isPaused:n,isAnimating:o,element:i}=e;!n&&l(i,"paused")&&(r(i,"paused"),o||(clearInterval(e.timer),e.timer=null,e.cycle()))}function M(t){t.preventDefault();const{target:e}=t,n=e.closest(x).Carousel;if(n.isAnimating)return;const o=e.getAttribute("data-bs-slide-to");e&&!l(e,"active")&&o&&n.to(+o)}function B(t){t.preventDefault();const e=this.closest(x).Carousel,{controls:n}=e;n[1]&&this===n[1]?e.next():n[1]&&this===n[0]&&e.prev()}function I({which:t}){const[e]=Array.from(document.querySelectorAll(x)).filter(t=>C(t));if(!e)return;const n=e.Carousel;switch(t){case 39:n.next();break;case 37:n.prev()}}function W(t){const e=this.Carousel;e&&!e.isTouch&&(H=t.changedTouches[0].pageX,this.contains(t.target)&&(e.isTouch=!0,z(e,1)))}function R(t){const{changedTouches:e,type:n}=t,o=this.Carousel;o&&o.isTouch&&(L=e[0].pageX,"touchmove"===n&&e.length>1&&t.preventDefault())}function j(t){const e=this,n=e.Carousel;if(n&&n.isTouch&&(N=L||t.changedTouches[0].pageX,n.isTouch)){if((!e.contains(t.target)||!e.contains(t.relatedTarget))&&Math.abs(H-N)<75)return;LH&&(n.index-=1),n.isTouch=!1,n.to(n.index),z(n)}}function F(t,e){const{indicators:n}=t;Array.from(n).forEach(t=>r(t,"active")),t.indicators[e]&&b(n[e],"active")}function z(t,e){const{element:n}=t,o=e?c:"removeEventListener";n[o]("touchmove",R,A),n[o]("touchend",j,A)}function q(t,e){const{element:n,options:o,slides:i,controls:s,indicator:a}=t,{touch:l,pause:r,interval:d,keyboard:h}=o,u=e?c:"removeEventListener";r&&d&&(n[u]("mouseenter",O),n[u]("mouseleave",D),n[u]("touchstart",O,A),n[u]("touchend",D,A)),l&&i.length>1&&n[u]("touchstart",W,A),s.forEach(t=>{t&&t[u]("click",B)}),a&&a[u]("click",M),h&&window[u]("keydown",I)}function X(t){const{slides:e,element:n}=t;return Array.from(e).indexOf(n.getElementsByClassName("carousel-item active")[0])||0}class $ extends u{constructor(t,e){super("Carousel",t,k,e);const n=this;n.timer=null,n.direction="left",n.isPaused=!1,n.isAnimating=!1,n.index=0,n.timer=null,n.isTouch=!1;const{element:o}=n;n.slides=o.getElementsByClassName("carousel-item");const{slides:i}=n;if(i.length<2)return;n.controls=[a(".carousel-control-prev",o),a(".carousel-control-next",o)],n.indicator=a(".carousel-indicators",o),n.indicators=n.indicator&&n.indicator.querySelectorAll("[data-bs-slide-to]")||[];const{options:s}=n;n.options.interval=!0===s.interval?k.interval:s.interval,X(n)<0&&(i.length&&b(i[0],"active"),n.indicators.length&&F(n,0)),q(n,1),s.interval&&n.cycle()}cycle(){const t=this,{isPaused:e,element:n,options:o}=t;t.timer&&(clearInterval(t.timer),t.timer=null),e&&(r(n,"paused"),t.isPaused=!e),t.timer=setInterval(()=>{C(n)&&(t.index+=1,t.to(t.index))},o.interval)}pause(){const t=this,{element:e,options:n,isPaused:o}=t;n.interval&&!o&&(clearInterval(t.timer),t.timer=null,b(e,"paused"),t.isPaused=!o)}next(){const t=this;t.isAnimating||(t.index+=1,t.to(t.index))}prev(){const t=this;t.isAnimating||(t.index-=1,t.to(t.index))}to(t){const e=this,{element:n,isAnimating:o,slides:a,options:c}=e,d=X(e);let h=t;if(o||d===h)return;dh||d===a.length-1&&0===h)&&(e.direction="right");const{direction:u}=e;h<0?h=a.length-1:h>=a.length&&(h=0);const p="left"===u?"next":"prev",m="left"===u?"start":"end",f={relatedTarget:a[h],direction:u,from:d,to:h};Object.keys(f).forEach(t=>{P[t]=f[t],S[t]=f[t]}),n.dispatchEvent(P),P.defaultPrevented||(e.index=h,clearInterval(e.timer),e.timer=null,e.isAnimating=!0,F(e,h),i(a[h])&&l(n,"slide")?(b(a[h],"carousel-item-"+p),T(a[h]),b(a[h],"carousel-item-"+m),b(a[d],"carousel-item-"+m),s(a[h],()=>function(t){const{index:e,direction:n,element:o,slides:i,options:s,isAnimating:a}=t;if(a&&o.Carousel){const a=X(t),c="left"===n?"next":"prev",d="left"===n?"start":"end";t.isAnimating=!1,b(i[e],"active"),r(i[a],"active"),r(i[e],"carousel-item-"+c),r(i[e],"carousel-item-"+d),r(i[a],"carousel-item-"+d),o.dispatchEvent(S),document.hidden||!s.interval||l(o,"paused")||t.cycle()}}(e))):(b(a[h],"active"),r(a[d],"active"),setTimeout(()=>{e.isAnimating=!1,n&&c.interval&&!l(n,"paused")&&e.cycle(),n.dispatchEvent(S)},100)))}dispose(){const t=this,{slides:e}=t,n=["start","end","prev","next"];Array.from(e).forEach((e,o)=>{l(e,"active")&&F(t,o),n.forEach(t=>r(e,"carousel-item-"+t))}),q(t),clearInterval(t.timer),super.dispose("Carousel")}}$.init={component:"Carousel",selector:x,constructor:$};function Y(t){return a(t.getAttribute("data-bs-target")||t.getAttribute("href"))||t.closest(t.getAttribute("data-bs-parent"))||a(t.getAttribute("data-bs-container"))}const V=d("show.bs.collapse"),G=d("shown.bs.collapse"),U=d("hide.bs.collapse"),Z=d("hidden.bs.collapse");function J(t){const{element:e,parent:n,triggers:o}=t;e.dispatchEvent(U),U.defaultPrevented||(t.isAnimating=!0,n&&(n.isAnimating=!0),e.style.height=e.scrollHeight+"px",r(e,"collapse"),r(e,"show"),b(e,"collapsing"),T(e),e.style.height="0px",s(e,()=>{t.isAnimating=!1,n&&(n.isAnimating=!1),o.forEach(t=>t.setAttribute("aria-expanded","false")),r(e,"collapsing"),b(e,"collapse"),e.style.height="",e.dispatchEvent(Z)}))}function K(t,e){const n=e?c:"removeEventListener",{triggers:o}=t;o.length&&o.forEach(t=>t[n]("click",Q))}function Q(t){const{target:e}=t,n=e.closest('[data-bs-toggle="collapse"]'),o=Y(n),i=o&&o.Collapse;i&&i.toggle(e),n&&"A"===n.tagName&&t.preventDefault()}class _ extends u{constructor(t,e){super("Collapse",t,{parent:null},e);const{element:n}=this;this.triggers=Array.from(document.querySelectorAll('[data-bs-toggle="collapse"]')).filter(t=>Y(t)===n),this.parent=a(this.options.parent);const{parent:o}=this;this.isAnimating=!1,o&&(o.isAnimating=!1),K(this,1)}toggle(t){l(this.element,"show")?this.hide(t):this.show(t)}hide(){const{triggers:t,isAnimating:e}=this;e||(J(this),t.length&&t.forEach(t=>b(t,"collapsed")))}show(){const t=this,{element:e,parent:n,triggers:o,isAnimating:i}=t;let a,l;n&&(a=Array.from(n.querySelectorAll(".collapse.show")).find(t=>t.Collapse),l=a&&a.Collapse),n&&(!n||n.isAnimating)||i||(l&&a!==e&&(J(l),l.triggers.forEach(t=>{b(t,"collapsed")})),function(t){const{element:e,parent:n,triggers:o}=t;e.dispatchEvent(V),V.defaultPrevented||(t.isAnimating=!0,n&&(n.isAnimating=!0),b(e,"collapsing"),r(e,"collapse"),e.style.height=e.scrollHeight+"px",s(e,()=>{t.isAnimating=!1,n&&(n.isAnimating=!1),o.forEach(t=>t.setAttribute("aria-expanded","true")),r(e,"collapsing"),b(e,"collapse"),b(e,"show"),e.style.height="",e.dispatchEvent(G)}))}(t),o.length&&o.forEach(t=>r(t,"collapsed")))}dispose(){const{parent:t}=this;K(this),t&&delete t.isAnimating,super.dispose("Collapse")}}_.init={component:"Collapse",selector:".collapse",constructor:_};const tt=["dropdown","dropup","dropstart","dropend"];function et(t){const e=t.closest("A");return t&&(t.href&&"#"===t.href.slice(-1)||e&&e.href&&"#"===e.href.slice(-1))}function nt(t){t.focus()}const[ot]=tt,it=`[data-bs-toggle="${ot}"]`,st=tt[1],at=tt[2],lt=tt[3],rt=["d-block","invisible"],ct=[ot,st],dt=[at,lt],ht={offset:5,display:"dynamic"},ut=d("show.bs."+ot),pt=d("shown.bs."+ot),mt=d("hide.bs."+ot),ft=d("hidden.bs."+ot);function gt(t,e){const{element:n,menu:o,originalClass:i,menuEnd:s,options:a}=t,c=n.parentElement;if(["margin","top","bottom","left","right"].forEach(t=>{o.style[t]=""}),r(c,"position-static"),!e){c.className=i.join(" ");return void(s&&!l(o,"dropdown-menu-end")?b:r)(o,"dropdown-menu-end")}const{offset:d}=a;let h=tt.find(t=>i.includes(t)),u={dropdown:[d,0,0],dropup:[0,0,d],dropstart:[-1,d,0],dropend:[-1,0,0,d]};const p={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:{left:"auto",right:"100%"},dropend:{left:"100%",right:"auto"},menuEnd:{right:0,left:"auto"}};rt.forEach(t=>b(o,t));const m=new RegExp(`\\b(${ot}|${st}|${at}|${lt})+`),f=n.offsetWidth,g=n.offsetHeight,v=o.offsetWidth,w=o.offsetHeight,y=document.documentElement,E=document.body,A=y.clientWidth||E.clientWidth,T=y.clientHeight||E.clientHeight,C=n.getBoundingClientRect(),x=C.left+f-v<0,k=C.left-v<0,H=C.left+v>=A,L=C.left+v+f>=A,N=C.top+w>=T,P=C.top+w+g>=T,S=C.top-w<0,O=c.parentNode.closest(".btn-group,.btn-group-vertical");if(dt.includes(h)&&k&&L&&(h=ot),dt.includes(h)&&N&&(h=st),h===at&&k&&!N&&(h=lt),h===lt&&L&&!N&&(h=at),h===st&&S&&!P&&(h=ot),h===ot&&P&&!S&&(h=st),u=u[h],o.style.margin=""+u.map(t=>t?t+"px":t).join(" "),Object.keys(p[h]).forEach(t=>{o.style[t]=p[h][t]}),l(c,h)||(c.className=c.className.replace(m,h)),ct.includes(h)){const t=H?b:r;O?x&&b(c,"position-static"):t(o,"dropdown-menu-end"),l(o,"dropdown-menu-end")&&Object.keys(p.menuEnd).forEach(t=>{o.style[t]=p.menuEnd[t]})}rt.forEach(t=>r(o,t))}function vt(t){const e=t.open?c:"removeEventListener";document[e]("click",yt),document[e]("focus",yt),document[e]("keydown",At),document[e]("keyup",Tt),"dynamic"===t.options.display&&(window[e]("scroll",Ct,A),window[e]("resize",Ct,A))}function bt(t,e){const n=e?c:"removeEventListener";t.element[n]("click",Et)}function wt(){const t=tt.map(t=>document.getElementsByClassName(t+" show")).find(t=>t.length);return t&&t.length?Array.from(t[0].children).find(t=>t.hasAttribute(w)):null}function yt(t){const{target:e,type:n}=t;if(!e.closest)return;const o=wt(),i=o&&o.parentNode,s=o&&o.Dropdown,a=s&&s.menu,l=null!==e.closest(it),r=i&&i.contains(e)&&("form"===e.tagName||null!==e.closest("form"));"click"===n&&et(e)&&t.preventDefault(),("focus"!==n||e!==o&&e!==a&&!a.contains(e))&&(r||l||s&&s.hide(o))}function Et(t){this.Dropdown.toggle(this),et(t.target)&&t.preventDefault()}function At(t){38!==t.which&&40!==t.which||t.preventDefault()}function Tt({which:t}){const e=wt(),n=e.Dropdown,{menu:o,menuItems:i,open:s}=n,a=document.activeElement,l=a===e,r=o.contains(a),c=a.parentNode===o||a.parentNode.parentNode===o;let d=i.indexOf(a);c&&(l?d=0:38===t?d=d>1?d-1:0:40===t&&(d=d{t.children.length&&"A"===t.children[0].tagName&&n.menuItems.push(t.children[0]),"A"===t.tagName&&n.menuItems.push(t)}),n.open=!1,bt(n,1)}toggle(t){const{open:e}=this;e?this.hide(t):this.show(t)}show(t){const e=this,n=a(tt.map(t=>`.${t}.show`).join(",")),o=n&&a(it,n);o&&o.Dropdown.hide();const{element:i,menu:s,open:l}=e,r=i.parentNode;ut.relatedTarget=t||null,r.dispatchEvent(ut),ut.defaultPrevented||(gt(e,1),b(s,"show"),b(r,"show"),i.setAttribute("aria-expanded",!0),e.open=!l,setTimeout(()=>{nt(s.getElementsByTagName("INPUT")[0]||i),vt(e),pt.relatedTarget=t||null,r.dispatchEvent(pt)},1))}hide(t){const e=this,{element:n,menu:o,open:i}=e,s=n.parentNode;mt.relatedTarget=t||null,s.dispatchEvent(mt),mt.defaultPrevented||(r(o,"show"),r(s,"show"),gt(e),n.setAttribute("aria-expanded",!1),e.open=!i,nt(n),setTimeout(()=>vt(e),1),ft.relatedTarget=t||null,s.dispatchEvent(ft))}dispose(){const{element:t}=this;l(t.parentNode,"show")&&this.open&&this.hide(),bt(this),super.dispose("Dropdown")}}xt.init={component:"Dropdown",selector:it,constructor:xt};const kt=Array.from(document.getElementsByClassName("fixed-top")).concat(Array.from(document.getElementsByClassName("fixed-bottom"))).concat(Array.from(document.getElementsByClassName("sticky-top"))).concat(Array.from(document.getElementsByClassName("is-fixed")));function Ht(){const t=document.body;t.style.paddingRight="",t.style.overflow="",kt.length&&kt.forEach(t=>{t.style.paddingRight="",t.style.marginRight=""})}function Lt(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Nt(t,e,n){const o=document.body,i=parseInt(getComputedStyle(o).paddingRight,10),s=n&&i?0:t;e&&(o.style.paddingRight=i+s+"px",kt.length&&kt.forEach(t=>{const e=l(t,"sticky-top"),n=getComputedStyle(t).paddingRight;if(t.style.paddingRight=parseInt(n,10)+s+"px",e){const e=getComputedStyle(t).marginRight;t.style.marginRight=parseInt(e,10)-s+"px"}}))}const Pt=document.createElement("div");function St(){return a(".modal.show,.offcanvas.show")}function Ot(t){document.body.appendChild(Pt),t&&b(Pt,"fade")}function Dt(){b(Pt,"show"),T(Pt)}function Mt(){r(Pt,"show")}function Bt(){const t=document.body;St()||(r(Pt,"fade"),r(t,"modal-open"),t.removeChild(Pt),Ht())}function It(t){return"hidden"!==getComputedStyle(t).visibility&&null!==t.offsetParent}Pt.setAttribute("class","modal-backdrop");const Wt={backdrop:!0,keyboard:!0},Rt=d("show.bs.modal"),jt=d("shown.bs.modal"),Ft=d("hide.bs.modal"),zt=d("hidden.bs.modal");function qt(t){const{element:e,scrollbarWidth:n}=t,o=document.body,i=document.documentElement,s=l(o,"modal-open"),a=i.clientHeight!==i.scrollHeight||o.clientHeight!==o.scrollHeight,r=e.clientHeight!==e.scrollHeight;!r&&n&&(e.style.paddingRight=n+"px"),Nt(n,r||a,s)}function Xt(t,e){const n=e?c:"removeEventListener";window[n]("resize",t.update,A),t.element[n]("click",Kt),document[n]("keydown",Jt)}function $t(t,e){const n=e?c:"removeEventListener",{triggers:o}=t;o.length&&o.forEach(t=>t[n]("click",Zt))}function Yt(t){const{triggers:e}=t;if(Bt(),t.element.style.paddingRight="",t.isAnimating=!1,e.length){const t=e.find(t=>It(t));t&&nt(t)}}function Vt(t){const{element:e,relatedTarget:n}=t;nt(e),t.isAnimating=!1,Xt(t,1),jt.relatedTarget=n,e.dispatchEvent(jt)}function Gt(t){const{element:e,hasFade:n}=t;e.style.display="block",qt(t),a(".modal.show")||b(document.body,"modal-open"),b(e,"show"),e.removeAttribute("aria-hidden"),e.setAttribute("aria-modal",!0),n?s(e,()=>Vt(t)):Vt(t)}function Ut(t,e){const{element:n,relatedTarget:o,hasFade:i}=t,a=St();n.style.display="",!e&&i&&l(Pt,"show")&&!a?(Mt(),s(Pt,()=>Yt(t))):Yt(t),Xt(t),zt.relatedTarget=o,n.dispatchEvent(zt)}function Zt(t){const{target:e}=t,n=e.closest('[data-bs-toggle="modal"]'),o=Y(n),i=o&&o.Modal;"A"===n.tagName&&t.preventDefault(),i.isAnimating||(i.relatedTarget=n,i.toggle())}function Jt({which:t}){const e=a(".modal.show"),n=e.Modal,{options:o,isAnimating:i}=n;!i&&o.keyboard&&27===t&&l(e,"show")&&(n.relatedTarget=null,n.hide())}function Kt(t){const e=this,n=e.Modal;if(n.isAnimating)return;const{isStatic:o,modalDialog:a}=n,{target:l}=t,c=document.getSelection().toString().length,d=a.contains(l),h=l.closest('[data-bs-dismiss="modal"]');o&&!d?(b(e,"modal-static"),n.isAnimating=!0,s(a,()=>function(t){const e=i(t.modalDialog)+17;r(t.element,"modal-static"),setTimeout(()=>{t.isAnimating=!1},e)}(n))):!h&&(c||o||d)||(n.relatedTarget=h||null,n.hide(),t.preventDefault())}class Qt extends u{constructor(t,e){super("Modal",t,Wt,e);const{element:n}=this;this.modalDialog=a(".modal-dialog",n),this.triggers=Array.from(document.querySelectorAll('[data-bs-toggle="modal"]')).filter(t=>Y(t)===n),this.isStatic="static"===this.options.backdrop,this.hasFade=l(n,"fade"),this.isAnimating=!1,this.scrollbarWidth=Lt(),this.relatedTarget=null,$t(this,1),this.update=this.update.bind(this)}toggle(){l(this.element,"show")?this.hide():this.show()}show(){const t=this,{element:e,isAnimating:n,hasFade:o,relatedTarget:s}=t;let r=0;if(l(e,"show")&&!n)return;if(Rt.relatedTarget=s||null,e.dispatchEvent(Rt),Rt.defaultPrevented)return;t.isAnimating=!0;const c=St();if(c&&c!==e){(c.Modal?c.Modal:c.Offcanvas).hide()}a(".modal-backdrop")||Ot(o),r=i(Pt),l(Pt,"show")||Dt(),c?Gt(t):setTimeout(()=>Gt(t),r)}hide(t){const e=this,{element:n,isAnimating:o,hasFade:i,relatedTarget:a}=e;(l(n,"show")||o)&&(Ft.relatedTarget=a||null,n.dispatchEvent(Ft),Ft.defaultPrevented||(e.isAnimating=!0,r(n,"show"),n.setAttribute("aria-hidden",!0),n.removeAttribute("aria-modal"),i&&1!==t?s(n,()=>Ut(e)):Ut(e,t)))}update(){l(this.element,"show")&&qt(this)}dispose(){this.hide(1),$t(this),super.dispose("Modal")}}Qt.init={component:"Modal",selector:".modal",constructor:Qt};const _t={backdrop:!0,keyboard:!0,scroll:!1},te=d("show.bs.offcanvas"),ee=d("shown.bs.offcanvas"),ne=d("hide.bs.offcanvas"),oe=d("hidden.bs.offcanvas");function ie(t,e){const n=e?c:"removeEventListener";t.triggers.forEach(t=>t[n]("click",re))}function se(t){const e=t?c:"removeEventListener";document[e]("keydown",de),document[e]("click",ce)}function ae(t){const{element:e,options:n}=t;n.scroll||(b(document.body,"modal-open"),function(t){const e=document.body,n=document.documentElement,o=l(e,"modal-open"),i=n.clientHeight!==n.scrollHeight||e.clientHeight!==e.scrollHeight;Nt(t.scrollbarWidth,i,o)}(t)),b(e,"offcanvas-toggling"),b(e,"show"),e.style.visibility="visible",s(e,()=>function(t){const{element:e,triggers:n,relatedTarget:o}=t;r(e,"offcanvas-toggling"),e.removeAttribute("aria-hidden"),e.setAttribute("aria-modal",!0),e.setAttribute("role","dialog"),t.isAnimating=!1,n.length&&n.forEach(t=>t.setAttribute("aria-expanded",!0));ee.relatedTarget=o||null,e.dispatchEvent(ee),se(1),nt(e)}(t))}function le(t){const{element:e,options:n}=t,o=St();e.blur(),!o&&n.backdrop&&l(Pt,"show")?(Mt(),s(Pt,()=>he(t))):he(t)}function re(t){const e=this.closest('[data-bs-toggle="offcanvas"]'),n=Y(e),o=n&&n.Offcanvas;"A"===e.tagName&&t.preventDefault(),o&&(o.relatedTarget=e,o.toggle())}function ce(t){const e=a(".offcanvas.show");if(!e)return;const n=a('[data-bs-dismiss="offcanvas"]',e),o=e.Offcanvas;if(!o)return;const{options:i,open:s,triggers:l}=o,{target:r}=t,c=r.closest('[data-bs-toggle="offcanvas"]');c&&"A"===c.tagName&&t.preventDefault(),s&&(!e.contains(r)&&i.backdrop&&(!c||c&&!l.includes(c))||n.contains(r))&&(o.relatedTarget=r===n?n:null,o.hide())}function de({which:t}){const e=a(".offcanvas.show");if(!e)return;const n=e.Offcanvas;n&&n.options.keyboard&&27===t&&(n.relatedTarget=null,n.hide())}function he(t){const{element:e,options:n,relatedTarget:o,triggers:i}=t,s=St();if(e.setAttribute("aria-hidden",!0),e.removeAttribute("aria-modal"),e.removeAttribute("role"),e.style.visibility="",t.open=!1,t.isAnimating=!1,i.length){i.forEach(t=>t.setAttribute("aria-expanded",!1));const t=i.find(t=>It(t));t&&nt(t)}s||(n.backdrop&&Bt(),n.scroll||(Ht(),r(document.body,"modal-open"))),oe.relatedTarget=o||null,e.dispatchEvent(oe),r(e,"offcanvas-toggling"),se()}class ue extends u{constructor(t,e){super("Offcanvas",t,_t,e);const{element:n}=this;this.triggers=Array.from(document.querySelectorAll('[data-bs-toggle="offcanvas"]')).filter(t=>Y(t)===n),this.open=!1,this.isAnimating=!1,this.scrollbarWidth=Lt(),ie(this,1)}toggle(){return this.open?this.hide():this.show()}show(){const t=this.Offcanvas?this.Offcanvas:this,{element:e,options:n,isAnimating:o,relatedTarget:s}=t;let r=0;if(t.open||o)return;if(te.relatedTarget=s||null,e.dispatchEvent(te),te.defaultPrevented)return;const c=St();if(c&&c!==e){(c.Offcanvas?c.Offcanvas:c.Modal).hide()}t.open=!0,t.isAnimating=!0,n.backdrop?(a(".modal-backdrop")||Ot(1),r=i(Pt),l(Pt,"show")||Dt(),setTimeout(()=>ae(t),r)):ae(t)}hide(t){const e=this,{element:n,isAnimating:o,relatedTarget:i}=e;e.open&&!o&&(ne.relatedTarget=i||null,n.dispatchEvent(ne),ne.defaultPrevented||(e.isAnimating=!0,b(n,"offcanvas-toggling"),r(n,"show"),t?le(e):s(n,()=>le(e))))}dispose(){this.hide(1),ie(this),super.dispose("Offcanvas")}}ue.init={component:"Offcanvas",selector:".offcanvas",constructor:ue};var pe={top:"top",bottom:"bottom",left:"start",right:"end"};function me(t,e){return e.contains(t)}function fe(t){return[SVGElement,HTMLImageElement,HTMLVideoElement].some(e=>t instanceof e)}function ge(t,e){const n=/\b(top|bottom|start|end)+/,o=t.tooltip||t.popover;o.style.top="",o.style.left="",o.style.right="";const i=!!t.popover;let s={w:o.offsetWidth,h:o.offsetHeight};const a=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight,{element:r,options:c,arrow:d}=t;let{container:h,placement:u}=c,p=h===document.body;const m=getComputedStyle(r).position,f=getComputedStyle(h).position,g=!p&&"static"===f;let v=!p&&"relative"===f;const b=g&&function(t){let e=null,n=t;for(;n!==document.body;)if(n=n.parentElement,"relative"===getComputedStyle(n).position){e=n;break}return e}(h);h=b||h,v=g&&b?1:v,p=h===document.body;const w=h.getBoundingClientRect(),y=v?w.left:0,E=v?w.right:a,A="absolute"===m,T=r.getBoundingClientRect(),C=p?{x:window.pageXOffset,y:window.pageYOffset}:{x:h.scrollLeft,y:h.scrollTop},x=r.offsetWidth,k=r.offsetHeight,H=v?r.offsetTop:T.top,L=v?r.offsetLeft:T.left;let N,P,S,O,D,M;d.style.top="",d.style.left="",d.style.right="";let B=T.top-s.h<0,I=T.top+s.h+k>=l,W=T.left-s.w=E;B=["left","right"].includes(u)?T.top+k/2-s.h/2<0:B,I=["left","right"].includes(u)?T.top+s.h/2+k/2>=l:I,W=["top","bottom"].includes(u)?T.left+x/2-s.w/2=E:R,u=["left","right"].includes(u)&&W&&R?"top":u,u="top"===u&&B?"bottom":u,u="bottom"===u&&I?"top":u,u="left"===u&&W?"right":u,u="right"===u&&R?"left":u,o.className.includes(u)||(o.className=o.className.replace(n,pe[u])),s={w:o.offsetWidth,h:o.offsetHeight};const j=d.offsetWidth||0,F=d.offsetHeight||0,z=j/2;if(["left","right"].includes(u))P="left"===u?L+C.x-s.w-(i?j:0):L+C.x+x+(i?j:0),B?(N=H+C.y,O=k/2-j):I?(N=H+C.y-s.h+k,O=s.h-k/2-j):(N=H+C.y-s.h/2+k/2,O=s.h/2-F/2);else if(["top","bottom"].includes(u))if(e&&fe(r)){const t=v?e.layerX+(A?r.offsetLeft:0):e.pageX,n=v?e.layerY+(A?r.offsetTop:0):e.pageY;N="top"===u?n-s.h-(i?j:F):n+F,e.clientX-s.w/2=E?(P="auto",S=0,D=s.w-(E-t)-z):(P=t-s.w/2,D=s.w/2-z)}else N="top"===u?H+C.y-s.h-(i?F:0):H+C.y+k+(i?F:0),W?(P=0,D=L+x/2-z):R?(P="auto",S=0,M=x/2+(w.right-T.right)-z):(P=L+C.x-s.w/2+x/2,D=s.w/2-z);o.style.top=N+"px",o.style.left="auto"===P?P:P+"px",o.style.right=void 0!==S?S+"px":"",void 0!==O&&(d.style.top=O+"px"),void 0!==D?d.style.left=D+"px":void 0!==M&&(d.style.right=M+"px")}let ve=1;function be(t,e){return ve+=1,t[e]||ve}function we(t){const e=t.closest(".modal"),n=t.closest(".fixed-top,.fixed-bottom");return e||n||document.body}const ye={template:'',title:null,content:null,sanitizeFn:null,customClass:null,dismissible:!1,animation:!0,trigger:"hover",placement:"top",delay:200},Ee=/(iPhone|iPod|iPad)/.test(navigator.userAgent);let Ae='';const Te=d("show.bs.popover"),Ce=d("shown.bs.popover"),xe=d("hide.bs.popover"),ke=d("hidden.bs.popover");function He(){nt(this)}function Le({target:t}){const e=this,{popover:n,element:o}=e;n&&n.contains(t)||t===o||o.contains(t)||e.hide()}function Ne(t,e){const n=e?c:"removeEventListener",{element:o,options:i}=t,{trigger:s,dismissible:a}=i;t.enabled=!!e,"hover"===s?(o[n]("mousedown",t.show),o[n]("mouseenter",t.show),fe(o)&&o[n]("mousemove",t.update,A),a||o[n]("mouseleave",t.hide)):"click"===s?o[n](s,t.toggle):"focus"===s&&(Ee&&o[n]("click",He),o[n]("focusin",t.show))}function Pe(t,e){const n=e?c:"removeEventListener",{options:o,element:i,popover:s}=t,{trigger:a,dismissible:l}=o;if(l){const[e]=s.getElementsByClassName("btn-close");e&&e[n]("click",t.hide)}else"focus"===a&&i[n]("focusout",t.hide),"hover"===a&&document[n]("touchstart",Le,A);fe(i)||(window[n]("scroll",t.update,A),window[n]("resize",t.update,A))}function Se(t){Pe(t,1),t.element.dispatchEvent(Ce)}function Oe(t){Pe(t),function(t){const{element:e,popover:n,options:o}=t;e.removeAttribute("aria-describedby"),o.container.removeChild(n),t.timer=null}(t),t.element.dispatchEvent(ke)}class De extends u{constructor(t,e){ye.container=we(a(t)),super("Popover",t,ye,e);const{element:n}=this;this.timer=null,this.popover=null,this.arrow=null,this.enabled=!1,this.id="popover-"+be(n);const{options:o}=this;this.options.container=fe(n)?ye.container:a(o.container),ye.container=null,o.content&&(!function(t){const{id:e,options:n}=t,{animation:o,customClass:i,sanitizeFn:s,placement:r,dismissible:c}=n;let{title:d,content:h,template:u}=n;const p="bs-popover-"+pe[r];d=d?d.trim():null,h=h?h.trim():null,s&&(d=d?s(d):null,h=h?s(h):null,u=u?s(u):null,Ae=s(Ae)),t.popover=document.createElement("div");const{popover:m}=t;m.setAttribute("id",e),m.setAttribute("role","tooltip");const f=document.createElement("div");f.innerHTML=u.trim(),m.className=f.firstChild.className,m.innerHTML=f.firstChild.innerHTML;const g=a(".popover-header",m),v=a(".popover-body",m);t.arrow=a(".popover-arrow",m),c&&(d=d?d+Ae:d,h=null===d?+Ae:h),d&&g&&(g.innerHTML=d.trim()),h&&v&&(v.innerHTML=h.trim()),l(m,"popover")||b(m,"popover"),o&&!l(m,"fade")&&b(m,"fade"),i&&!l(m,i)&&b(m,i),l(m,p)||b(m,p)}(this),this.update=this.update.bind(this),Ne(this,1))}update(t){ge(this,t)}toggle(t){const e=t?this.Popover:this,{popover:n,options:o}=e;me(n,o.container)?e.hide():e.show()}show(t){const e=t?this.Popover:this,{element:n,popover:o,options:i,id:a}=e,{container:r}=i;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(!me(o,r)){if(n.dispatchEvent(Te),Te.defaultPrevented)return;r.appendChild(o),n.setAttribute("aria-describedby",a),e.update(t),l(o,"show")||b(o,"show"),i.animation?s(o,()=>Se(e)):Se(e)}},17)}hide(t){let e;if(t&&this.Popover)e=this.Popover;else if(t){const t=this.closest(".popover"),n=t&&a(`[aria-describedby="${t.id}"]`);e=n.Popover}else e=this;const{element:n,popover:o,options:i}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(me(o,i.container)){if(n.dispatchEvent(xe),xe.defaultPrevented)return;r(o,"show"),i.animation?s(o,()=>Oe(e)):Oe(e)}},i.delay+17)}enable(){const t=this,{enabled:e}=t;e||(Ne(t,1),t.enabled=!e)}disable(){const t=this,{enabled:e,popover:n,options:o}=t;e&&(me(n,o.container)&&o.animation?(t.hide(),setTimeout(()=>Ne(t),i(n)+o.delay+17)):Ne(t),t.enabled=!e)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const t=this,{popover:e,options:n}=t,{container:o,animation:i}=n;i&&me(e,o)?(n.delay=0,t.hide(),s(e,()=>Ne(t))):Ne(t),super.dispose("Popover")}}De.init={component:"Popover",selector:'[data-bs-toggle="popover"],[data-tip="popover"]',constructor:De};const Me={offset:10,target:null},Be=d("activate.bs.scrollspy");function Ie(t){const{target:e,scrollTarget:n,isWindow:o,options:i,itemsLength:s,scrollHeight:l}=t,{offset:r}=i,c=e.getElementsByTagName("A");if(t.scrollTop=o?n.pageYOffset:n.scrollTop,s!==c.length||We(n)!==l){let e,i,s;t.items=[],t.offsets=[],t.scrollHeight=We(n),t.maxScroll=t.scrollHeight-function({element:t,isWindow:e}){return e?window.innerHeight:t.getBoundingClientRect().height}(t),Array.from(c).forEach(n=>{e=n.getAttribute("href"),i=e&&"#"===e.charAt(0)&&"#"!==e.slice(-1)&&a(e),i&&(t.items.push(n),s=i.getBoundingClientRect(),t.offsets.push((o?s.top+t.scrollTop:i.offsetTop)-r))}),t.itemsLength=t.items.length}}function We(t){return t.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}function Re(t){Array.from(t.getElementsByTagName("A")).forEach(t=>{l(t,"active")&&r(t,"active")})}function je(t,e){const{target:n,element:o}=t;Re(n),t.activeItem=e,b(e,"active");const i=[];let s=e;for(;s!==document.body;)s=s.parentNode,(l(s,"nav")||l(s,"dropdown-menu"))&&i.push(s);i.forEach(t=>{const e=t.previousElementSibling;e&&!l(e,"active")&&b(e,"active")}),Be.relatedTarget=e,o.dispatchEvent(Be)}function Fe(t,e){const n=e?c:"removeEventListener";t.scrollTarget[n]("scroll",t.refresh,A)}class ze extends u{constructor(t,e){super("ScrollSpy",t,Me,e);const{element:n,options:o}=this;this.target=a(o.target),this.target&&(this.scrollTarget=n.clientHeight=o){const e=s[i-1];return void(a!==e&&je(t,e))}const{offsets:l}=t;if(a&&n0)return t.activeItem=null,void Re(e);s.forEach((e,o)=>{a!==e&&n>=l[o]&&(void 0===l[o+1]||n{e.style.height=Ue+"px",T(e),s(e,()=>_e(t))},50):n.isAnimating=!1,Xe.relatedTarget=Ze,Ve.dispatchEvent(Xe)}function en(t){const{tabContent:e}=t;e&&(Je.style.float="left",Ge.style.float="left",Ke=Je.scrollHeight),qe.relatedTarget=Ze,Ye.relatedTarget=Ve,Ve.dispatchEvent(qe),qe.defaultPrevented||(b(Ge,"active"),r(Je,"active"),e&&(Ue=Ge.scrollHeight,Qe=Ue===Ke,b(e,"collapsing"),e.style.height=Ke+"px",T(e),Je.style.float="",Ge.style.float=""),l(Ge,"fade")?setTimeout(()=>{b(Ge,"show"),s(Ge,()=>{tn(t)})},20):tn(t),Ze.dispatchEvent(Ye))}function nn({nav:t}){const e=t.getElementsByClassName("active");return 1!==e.length||tt.some(t=>l(e[0].parentNode,t))?e.length>1&&(Ze=e[e.length-1]):[Ze]=e,Ze}function on(t){return a(nn(t).getAttribute("href"))}function sn(t,e){const n=e?c:"removeEventListener";t.element[n]("click",an)}function an(t){const e=this.Tab;t.preventDefault(),e.nav.isAnimating||e.show()}class ln extends u{constructor(t){super("Tab",t);const{element:n}=this;this.nav=n.closest(".nav");const{nav:o}=this;this.dropdown=o&&a(`.${tt[0]}-toggle`,o),Je=on(this),this.tabContent=e&&Je.closest(".tab-content"),Ke=Je.scrollHeight,o.isAnimating=!1,sn(this,1)}show(){const t=this,{element:e,nav:n,dropdown:o}=t;if(Ve=e,!l(Ve,"active")){if(Ge=a(Ve.getAttribute("href")),Ze=nn({nav:n}),Je=on({nav:n}),$e.relatedTarget=Ve,Ze.dispatchEvent($e),$e.defaultPrevented)return;n.isAnimating=!0,r(Ze,"active"),Ze.setAttribute("aria-selected","false"),b(Ve,"active"),Ve.setAttribute("aria-selected","true"),o&&(l(e.parentNode,"dropdown-menu")?l(o,"active")||b(o,"active"):l(o,"active")&&r(o,"active")),l(Je,"fade")?(r(Je,"show"),s(Je,()=>en(t))):en(t)}}dispose(){sn(this),super.dispose("Tab")}}ln.init={component:"Tab",selector:'[data-bs-toggle="tab"]',constructor:ln};const rn={animation:!0,autohide:!0,delay:500},cn=d("show.bs.toast"),dn=d("hide.bs.toast"),hn=d("shown.bs.toast"),un=d("hidden.bs.toast");function pn(t){const{element:e,options:n}=t;n.animation||(r(e,"showing"),b(e,"show")),e.dispatchEvent(hn),n.autohide&&t.hide()}function mn(t){const{element:e}=t;b(e,"hide"),e.dispatchEvent(un)}function fn(t,e){const n=e?c:"removeEventListener";t.dismiss&&t.dismiss[n]("click",t.hide)}function gn(t){clearTimeout(t.timer),fn(t)}class vn extends u{constructor(t,e){super("Toast",t,rn,e);this.dismiss=a('[data-bs-dismiss="toast"]',this.element),this.show=this.show.bind(this),this.hide=this.hide.bind(this),fn(this,1)}show(){const t=this,{element:e}=t;if(e&&l(e,"hide")){if(e.dispatchEvent(cn),cn.defaultPrevented)return;b(e,"fade"),clearTimeout(t.timer),t.timer=setTimeout(()=>function(t){const{element:e,options:n}=t;r(e,"hide"),n.animation?(T(e),b(e,"showing"),b(e,"show"),s(e,()=>pn(t))):pn(t)}(t),10)}}hide(t){const e=this,{element:n,options:o}=e;if(n&&l(n,"show")){if(n.dispatchEvent(dn),dn.defaultPrevented)return;clearTimeout(e.timer),e.timer=setTimeout(function(t){const{element:e,options:n}=t;r(e,"show"),n.animation?(T(e),s(e,()=>mn(t))):mn(t)}(e),t?10:o.delay)}}dispose(){const t=this,{element:e,options:n}=t;t.hide(),n.animation?s(e,()=>gn(t)):gn(t),super.dispose("Toast")}}vn.init={component:"Toast",selector:".toast",constructor:vn};const bn={title:null,template:'',placement:"top",animation:!0,customClass:null,delay:200,sanitizeFn:null},wn=d("show.bs.tooltip"),yn=d("shown.bs.tooltip"),En=d("hide.bs.tooltip"),An=d("hidden.bs.tooltip");function Tn(t){const{element:e}=t;Hn(t),e.hasAttribute("data-original-title")&&Ln(t)}function Cn(t,e){const n=e?c:"removeEventListener";document[n]("touchstart",Nn,A),fe(t.element)||(window[n]("scroll",t.update,A),window[n]("resize",t.update,A))}function xn(t){Cn(t,1),t.element.dispatchEvent(yn)}function kn(t){Cn(t),function(t){const{element:e,options:n,tooltip:o}=t;e.removeAttribute("aria-describedby"),n.container.removeChild(o),t.timer=null}(t),t.element.dispatchEvent(An)}function Hn(t,e){const n=e?c:"removeEventListener",{element:o}=t;fe(o)&&o[n]("mousemove",t.update,A),o[n]("mousedown",t.show),o[n]("mouseenter",t.show),o[n]("mouseleave",t.hide)}function Ln(t,e){const n=["data-original-title","title"],{element:o}=t;o.setAttribute(n[e?0:1],e||o.getAttribute(n[0])),o.removeAttribute(n[e?1:0])}function Nn({target:t}){const{tooltip:e,element:n}=this;e.contains(t)||t===n||n.contains(t)||this.hide()}class Pn extends u{constructor(t,e){const n=a(t);bn.title=n.getAttribute("title"),bn.container=we(n),super("Tooltip",n,bn,e);this.tooltip=null,this.arrow=null,this.timer=null,this.enabled=!1;const{options:o}=this;this.options.container=fe(n)?bn.container:a(o.container),bn.container=null,bn.title=null,o.title&&(Nn.bind(this),this.update=this.update.bind(this),n.hasAttribute("title")&&Ln(this,o.title),this.id="tooltip-"+be(n),function(t){const{options:e,id:n}=t,o="bs-tooltip-"+pe[e.placement];let i=e.title.trim();if(e.sanitizeFn&&(i=e.sanitizeFn(i),e.template=e.sanitizeFn(e.template)),!i)return;t.tooltip=document.createElement("div");const{tooltip:s}=t;s.setAttribute("id",n);const r=document.createElement("div");r.innerHTML=e.template.trim(),s.className=r.firstChild.className,s.innerHTML=r.firstChild.innerHTML,a(".tooltip-inner",s).innerHTML=i,t.arrow=a(".tooltip-arrow",s),s.setAttribute("role","tooltip"),l(s,"tooltip")||b(s,"tooltip"),e.animation&&!l(s,"fade")&&b(s,"fade"),e.customClass&&!l(s,e.customClass)&&b(s,e.customClass),l(s,o)||b(s,o)}(this),Hn(this,1))}show(t){const e=t?this.Tooltip:this,{options:n,tooltip:o,element:i,id:a}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(!me(o,n.container)){if(i.dispatchEvent(wn),wn.defaultPrevented)return;n.container.appendChild(o),i.setAttribute("aria-describedby",a),e.update(t),l(o,"show")||b(o,"show"),n.animation?s(o,()=>xn(e)):xn(e)}},20)}hide(t){const e=t?this.Tooltip:this,{options:n,tooltip:o,element:i}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(me(o,n.container)){if(i.dispatchEvent(En),En.defaultPrevented)return;r(o,"show"),n.animation?s(o,()=>kn(e)):kn(e)}},n.delay)}update(t){ge(this,t)}toggle(){const{tooltip:t,options:e}=this;me(t,e.container)?this.hide():this.show()}enable(){const t=this,{enabled:e}=t;e||(Hn(t,1),t.enabled=!e)}disable(){const t=this,{tooltip:e,options:n,enabled:o}=t;o&&(!me(e,n.container)&&n.animation?(t.hide(),setTimeout(()=>Hn(t),i(e)+n.delay+17)):Hn(t),t.enabled=!o)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const t=this,{tooltip:e,options:n}=t;n.animation&&me(e,n.container)?(n.delay=0,t.hide(),s(e,()=>Tn(t))):Tn(t),super.dispose("Tooltip")}}Pn.init={component:"Tooltip",selector:'[data-bs-toggle="tooltip"],[data-tip="tooltip"]',constructor:Pn};const Sn={Alert:v.init,Button:E.init,Carousel:$.init,Collapse:_.init,Dropdown:xt.init,Modal:Qt.init,Offcanvas:ue.init,Popover:De.init,ScrollSpy:ze.init,Tab:ln.init,Toast:vn.init,Tooltip:Pn.init};function On(t){const e=t instanceof Element?t:document;Object.keys(Sn).forEach(t=>{const{constructor:n,selector:o}=Sn[t];var i,s;i=n,s=e.querySelectorAll(o),Array.from(s).forEach(t=>new i(t))})}document.body?On():document.addEventListener("DOMContentLoaded",()=>On(),{once:!0});var Dn={Alert:v,Button:E,Carousel:$,Collapse:_,Dropdown:xt,Modal:Qt,Offcanvas:ue,Popover:De,ScrollSpy:ze,Tab:ln,Toast:vn,Tooltip:Pn,initCallback:On,Version:"3.0.15"};export default Dn; +// Native JavaScript for Bootstrap v4.0.0 | 2021 © dnp_theme | MIT-License +const t="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",e="webkitTransition"in document.head.style||"transition"in document.head.style,n="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",o="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty";function i(t){const i=getComputedStyle(t),s=i[o],a=i[n],l=a.includes("ms")?1:1e3,r=e&&s&&"none"!==s?parseFloat(a)*l:0;return Number.isNaN(r)?0:r}function s(e,n){let o=0;const s=new Event(t),a=i(e);a?(e.addEventListener(t,(function i(s){s.target===e&&(n.apply(e,[s]),e.removeEventListener(t,i),o=1)})),setTimeout(()=>{o||e.dispatchEvent(s)},a+17)):n.apply(e,[s])}function a(t,e){const n=e&&e instanceof Element?e:document;return t instanceof Element?t:n.querySelector(t)}function l(t,e){return t.classList.contains(e)}function r(t,e){t.classList.remove(e)}const c="addEventListener";function d(t,e){const n=new CustomEvent(t,{cancelable:!0});return e instanceof Object&&Object.keys(e).forEach(t=>{Object.defineProperty(n,t,{value:e[t]})}),n}function h(t){return"true"===t||"false"!==t&&(Number.isNaN(+t)?""===t||"null"===t?null:t:+t)}class u{constructor(t,e,n,o){const i=this,s=a(e);s[t]&&s[t].dispose(),i.element=s,n&&Object.keys(n).length&&(i.options=function(t,e,n,o){const i={},s={},a={...t.dataset};return Object.keys(a).forEach(t=>{const e=t.includes(o)?t.replace(o,"").replace(/[A-Z]/,t=>t.toLowerCase()):t;s[e]=h(a[t])}),Object.keys(n).forEach(t=>{n[t]=h(n[t])}),Object.keys(e).forEach(t=>{i[t]=t in n?n[t]:t in s?s[t]:e[t]}),i}(s,n,o||{},"bs")),s[t]=i}dispose(t){const e=this;e.element[t]=null,Object.keys(e).forEach(t=>{e[t]=null})}}const p=d("close.bs.alert"),m=d("closed.bs.alert");function f(t){const{element:e,relatedTarget:n}=t;g(t),n&&(m.relatedTarget=n),e.dispatchEvent(m),t.dispose(),e.parentNode.removeChild(e)}function g(t,e){const n=e?c:"removeEventListener";t.dismiss&&t.dismiss[n]("click",t.close)}class v extends u{constructor(t){super("Alert",t);const{element:e}=this;this.dismiss=a('[data-bs-dismiss="alert"]',e),this.relatedTarget=null,g(this,1)}close(t){const e=t?t.target:null,n=t?t.target.closest(".alert").Alert:this,{element:o}=n;if(n&&o&&l(o,"show")){if(e&&(p.relatedTarget=e,n.relatedTarget=e),o.dispatchEvent(p),p.defaultPrevented)return;r(o,"show"),l(o,"fade")?s(o,()=>f(n)):f(n)}}dispose(){g(this),super.dispose("Alert")}}function b(t,e){t.classList.add(e)}v.init={component:"Alert",selector:".alert",constructor:v};const w="data-bs-toggle";function y(t,e){const n=e?c:"removeEventListener";t.element[n]("click",t.toggle)}class E extends u{constructor(t){super("Button",t);const{element:e}=this;this.isActive=l(e,"active"),e.setAttribute("aria-pressed",!!this.isActive),y(this,1)}toggle(t){t&&t.preventDefault();const e=t?this.Button:this,{element:n}=e;if(l(n,"disabled"))return;e.isActive=l(n,"active");const{isActive:o}=e,i=o?"false":"true";(o?r:b)(n,"active"),n.setAttribute("aria-pressed",i)}dispose(){y(this),super.dispose("Button")}}E.init={component:"Button",selector:'[data-bs-toggle="button"]',constructor:E};var A=!!(()=>{let t=!1;try{const e=Object.defineProperty({},"passive",{get:()=>(t=!0,t)});document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){throw Error("Passive events are not supported")}return t})()&&{passive:!0};function T(t){return t.offsetHeight}function C(t){const e=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;return e.top<=n&&e.bottom>=0}const x='[data-bs-ride="carousel"]',k={pause:"hover",keyboard:!1,touch:!0,interval:5e3};let H=0,L=0,N=0;const P=d("slide.bs.carousel"),S=d("slid.bs.carousel");function O(t){const e=t.target.closest(x).Carousel,{element:n,isAnimating:o}=e;l(n,"paused")||(b(n,"paused"),o||(clearInterval(e.timer),e.timer=null))}function D(t){const e=t.target.closest(x).Carousel,{isPaused:n,isAnimating:o,element:i}=e;!n&&l(i,"paused")&&(r(i,"paused"),o||(clearInterval(e.timer),e.timer=null,e.cycle()))}function M(t){t.preventDefault();const{target:e}=t,n=e.closest(x).Carousel;if(n.isAnimating)return;const o=e.getAttribute("data-bs-slide-to");e&&!l(e,"active")&&o&&n.to(+o)}function B(t){t.preventDefault();const e=this.closest(x).Carousel,{controls:n}=e;n[1]&&this===n[1]?e.next():n[1]&&this===n[0]&&e.prev()}function I({which:t}){const[e]=Array.from(document.querySelectorAll(x)).filter(t=>C(t));if(!e)return;const n=e.Carousel;switch(t){case 39:n.next();break;case 37:n.prev()}}function W(t){const e=this.Carousel;e&&!e.isTouch&&(H=t.changedTouches[0].pageX,this.contains(t.target)&&(e.isTouch=!0,z(e,1)))}function R(t){const{changedTouches:e,type:n}=t,o=this.Carousel;o&&o.isTouch&&(L=e[0].pageX,"touchmove"===n&&e.length>1&&t.preventDefault())}function j(t){const e=this,n=e.Carousel;if(n&&n.isTouch&&(N=L||t.changedTouches[0].pageX,n.isTouch)){if((!e.contains(t.target)||!e.contains(t.relatedTarget))&&Math.abs(H-N)<75)return;LH&&(n.index-=1),n.isTouch=!1,n.to(n.index),z(n)}}function F(t,e){const{indicators:n}=t;Array.from(n).forEach(t=>r(t,"active")),t.indicators[e]&&b(n[e],"active")}function z(t,e){const{element:n}=t,o=e?c:"removeEventListener";n[o]("touchmove",R,A),n[o]("touchend",j,A)}function q(t,e){const{element:n,options:o,slides:i,controls:s,indicator:a}=t,{touch:l,pause:r,interval:d,keyboard:h}=o,u=e?c:"removeEventListener";r&&d&&(n[u]("mouseenter",O),n[u]("mouseleave",D),n[u]("touchstart",O,A),n[u]("touchend",D,A)),l&&i.length>1&&n[u]("touchstart",W,A),s.forEach(t=>{t&&t[u]("click",B)}),a&&a[u]("click",M),h&&window[u]("keydown",I)}function X(t){const{slides:e,element:n}=t;return Array.from(e).indexOf(n.getElementsByClassName("carousel-item active")[0])||0}class $ extends u{constructor(t,e){super("Carousel",t,k,e);const n=this;n.timer=null,n.direction="left",n.isPaused=!1,n.isAnimating=!1,n.index=0,n.timer=null,n.isTouch=!1;const{element:o}=n;n.slides=o.getElementsByClassName("carousel-item");const{slides:i}=n;if(i.length<2)return;n.controls=[a(".carousel-control-prev",o),a(".carousel-control-next",o)],n.indicator=a(".carousel-indicators",o),n.indicators=n.indicator&&n.indicator.querySelectorAll("[data-bs-slide-to]")||[];const{options:s}=n;n.options.interval=!0===s.interval?k.interval:s.interval,X(n)<0&&(i.length&&b(i[0],"active"),n.indicators.length&&F(n,0)),q(n,1),s.interval&&n.cycle()}cycle(){const t=this,{isPaused:e,element:n,options:o}=t;t.timer&&(clearInterval(t.timer),t.timer=null),e&&(r(n,"paused"),t.isPaused=!e),t.timer=setInterval(()=>{C(n)&&(t.index+=1,t.to(t.index))},o.interval)}pause(){const t=this,{element:e,options:n,isPaused:o}=t;n.interval&&!o&&(clearInterval(t.timer),t.timer=null,b(e,"paused"),t.isPaused=!o)}next(){const t=this;t.isAnimating||(t.index+=1,t.to(t.index))}prev(){const t=this;t.isAnimating||(t.index-=1,t.to(t.index))}to(t){const e=this,{element:n,isAnimating:o,slides:a,options:c}=e,d=X(e);let h=t;if(o||d===h)return;dh||d===a.length-1&&0===h)&&(e.direction="right");const{direction:u}=e;h<0?h=a.length-1:h>=a.length&&(h=0);const p="left"===u?"next":"prev",m="left"===u?"start":"end",f={relatedTarget:a[h],direction:u,from:d,to:h};Object.keys(f).forEach(t=>{P[t]=f[t],S[t]=f[t]}),n.dispatchEvent(P),P.defaultPrevented||(e.index=h,clearInterval(e.timer),e.timer=null,e.isAnimating=!0,F(e,h),i(a[h])&&l(n,"slide")?(b(a[h],"carousel-item-"+p),T(a[h]),b(a[h],"carousel-item-"+m),b(a[d],"carousel-item-"+m),s(a[h],()=>function(t){const{index:e,direction:n,element:o,slides:i,options:s,isAnimating:a}=t;if(a&&o.Carousel){const a=X(t),c="left"===n?"next":"prev",d="left"===n?"start":"end";t.isAnimating=!1,b(i[e],"active"),r(i[a],"active"),r(i[e],"carousel-item-"+c),r(i[e],"carousel-item-"+d),r(i[a],"carousel-item-"+d),o.dispatchEvent(S),document.hidden||!s.interval||l(o,"paused")||t.cycle()}}(e))):(b(a[h],"active"),r(a[d],"active"),setTimeout(()=>{e.isAnimating=!1,n&&c.interval&&!l(n,"paused")&&e.cycle(),n.dispatchEvent(S)},100)))}dispose(){const t=this,{slides:e}=t,n=["start","end","prev","next"];Array.from(e).forEach((e,o)=>{l(e,"active")&&F(t,o),n.forEach(t=>r(e,"carousel-item-"+t))}),q(t),clearInterval(t.timer),super.dispose("Carousel")}}$.init={component:"Carousel",selector:x,constructor:$};function Y(t){return a(t.getAttribute("data-bs-target")||t.getAttribute("href"))||t.closest(t.getAttribute("data-bs-parent"))||a(t.getAttribute("data-bs-container"))}const V=d("show.bs.collapse"),G=d("shown.bs.collapse"),U=d("hide.bs.collapse"),Z=d("hidden.bs.collapse");function J(t){const{element:e,parent:n,triggers:o}=t;e.dispatchEvent(U),U.defaultPrevented||(t.isAnimating=!0,n&&(n.isAnimating=!0),e.style.height=e.scrollHeight+"px",r(e,"collapse"),r(e,"show"),b(e,"collapsing"),T(e),e.style.height="0px",s(e,()=>{t.isAnimating=!1,n&&(n.isAnimating=!1),o.forEach(t=>t.setAttribute("aria-expanded","false")),r(e,"collapsing"),b(e,"collapse"),e.style.height="",e.dispatchEvent(Z)}))}function K(t,e){const n=e?c:"removeEventListener",{triggers:o}=t;o.length&&o.forEach(t=>t[n]("click",Q))}function Q(t){const{target:e}=t,n=e.closest('[data-bs-toggle="collapse"]'),o=Y(n),i=o&&o.Collapse;i&&i.toggle(e),n&&"A"===n.tagName&&t.preventDefault()}class _ extends u{constructor(t,e){super("Collapse",t,{parent:null},e);const{element:n}=this;this.triggers=Array.from(document.querySelectorAll('[data-bs-toggle="collapse"]')).filter(t=>Y(t)===n),this.parent=a(this.options.parent);const{parent:o}=this;this.isAnimating=!1,o&&(o.isAnimating=!1),K(this,1)}toggle(t){l(this.element,"show")?this.hide(t):this.show(t)}hide(){const{triggers:t,isAnimating:e}=this;e||(J(this),t.length&&t.forEach(t=>b(t,"collapsed")))}show(){const t=this,{element:e,parent:n,triggers:o,isAnimating:i}=t;let a,l;n&&(a=Array.from(n.querySelectorAll(".collapse.show")).find(t=>t.Collapse),l=a&&a.Collapse),n&&(!n||n.isAnimating)||i||(l&&a!==e&&(J(l),l.triggers.forEach(t=>{b(t,"collapsed")})),function(t){const{element:e,parent:n,triggers:o}=t;e.dispatchEvent(V),V.defaultPrevented||(t.isAnimating=!0,n&&(n.isAnimating=!0),b(e,"collapsing"),r(e,"collapse"),e.style.height=e.scrollHeight+"px",s(e,()=>{t.isAnimating=!1,n&&(n.isAnimating=!1),o.forEach(t=>t.setAttribute("aria-expanded","true")),r(e,"collapsing"),b(e,"collapse"),b(e,"show"),e.style.height="",e.dispatchEvent(G)}))}(t),o.length&&o.forEach(t=>r(t,"collapsed")))}dispose(){const{parent:t}=this;K(this),t&&delete t.isAnimating,super.dispose("Collapse")}}_.init={component:"Collapse",selector:".collapse",constructor:_};const tt=["dropdown","dropup","dropstart","dropend"];function et(t){const e=t.closest("A");return t&&(t.href&&"#"===t.href.slice(-1)||e&&e.href&&"#"===e.href.slice(-1))}function nt(t){t.focus()}const[ot]=tt,it=`[data-bs-toggle="${ot}"]`,st=tt[1],at=tt[2],lt=tt[3],rt=["d-block","invisible"],ct=[ot,st],dt=[at,lt],ht={offset:5,display:"dynamic"},ut=d("show.bs."+ot),pt=d("shown.bs."+ot),mt=d("hide.bs."+ot),ft=d("hidden.bs."+ot);function gt(t,e){const{element:n,menu:o,originalClass:i,menuEnd:s,options:a}=t,c=n.parentElement;if(["margin","top","bottom","left","right"].forEach(t=>{o.style[t]=""}),r(c,"position-static"),!e){c.className=i.join(" ");return void(s&&!l(o,"dropdown-menu-end")?b:r)(o,"dropdown-menu-end")}const{offset:d}=a;let h=tt.find(t=>i.includes(t)),u={dropdown:[d,0,0],dropup:[0,0,d],dropstart:[-1,d,0],dropend:[-1,0,0,d]};const p={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:{left:"auto",right:"100%"},dropend:{left:"100%",right:"auto"},menuEnd:{right:0,left:"auto"}};rt.forEach(t=>b(o,t));const m=new RegExp(`\\b(${ot}|${st}|${at}|${lt})+`),f=n.offsetWidth,g=n.offsetHeight,v=o.offsetWidth,w=o.offsetHeight,y=document.documentElement,E=document.body,A=y.clientWidth||E.clientWidth,T=y.clientHeight||E.clientHeight,C=n.getBoundingClientRect(),x=C.left+f-v<0,k=C.left-v<0,H=C.left+v>=A,L=C.left+v+f>=A,N=C.top+w>=T,P=C.top+w+g>=T,S=C.top-w<0,O=c.parentNode.closest(".btn-group,.btn-group-vertical");if(dt.includes(h)&&k&&L&&(h=ot),dt.includes(h)&&N&&(h=st),h===at&&k&&!N&&(h=lt),h===lt&&L&&!N&&(h=at),h===st&&S&&!P&&(h=ot),h===ot&&P&&!S&&(h=st),u=u[h],o.style.margin=""+u.map(t=>t?t+"px":t).join(" "),Object.keys(p[h]).forEach(t=>{o.style[t]=p[h][t]}),l(c,h)||(c.className=c.className.replace(m,h)),ct.includes(h)){const t=H?b:r;O?x&&b(c,"position-static"):t(o,"dropdown-menu-end"),l(o,"dropdown-menu-end")&&Object.keys(p.menuEnd).forEach(t=>{o.style[t]=p.menuEnd[t]})}rt.forEach(t=>r(o,t))}function vt(t){const e=t.open?c:"removeEventListener";document[e]("click",yt),document[e]("focus",yt),document[e]("keydown",At),document[e]("keyup",Tt),"dynamic"===t.options.display&&(window[e]("scroll",Ct,A),window[e]("resize",Ct,A))}function bt(t,e){const n=e?c:"removeEventListener";t.element[n]("click",Et)}function wt(){const t=tt.map(t=>document.getElementsByClassName(t+" show")).find(t=>t.length);return t&&t.length?Array.from(t[0].children).find(t=>t.hasAttribute(w)):null}function yt(t){const{target:e,type:n}=t;if(!e.closest)return;const o=wt(),i=o&&o.parentNode,s=o&&o.Dropdown,a=s&&s.menu,l=null!==e.closest(it),r=i&&i.contains(e)&&("form"===e.tagName||null!==e.closest("form"));"click"===n&&et(e)&&t.preventDefault(),("focus"!==n||e!==o&&e!==a&&!a.contains(e))&&(r||l||s&&s.hide(o))}function Et(t){this.Dropdown.toggle(this),et(t.target)&&t.preventDefault()}function At(t){38!==t.which&&40!==t.which||t.preventDefault()}function Tt({which:t}){const e=wt(),n=e.Dropdown,{menu:o,menuItems:i,open:s}=n,a=document.activeElement,l=a===e,r=o.contains(a),c=a.parentNode===o||a.parentNode.parentNode===o;let d=i.indexOf(a);c&&(l?d=0:38===t?d=d>1?d-1:0:40===t&&(d=d{t.children.length&&"A"===t.children[0].tagName&&n.menuItems.push(t.children[0]),"A"===t.tagName&&n.menuItems.push(t)}),n.open=!1,bt(n,1)}toggle(t){const{open:e}=this;e?this.hide(t):this.show(t)}show(t){const e=this,n=a(tt.map(t=>`.${t}.show`).join(",")),o=n&&a(it,n);o&&o.Dropdown.hide();const{element:i,menu:s,open:l}=e,r=i.parentNode;ut.relatedTarget=t||null,r.dispatchEvent(ut),ut.defaultPrevented||(gt(e,1),b(s,"show"),b(r,"show"),i.setAttribute("aria-expanded",!0),e.open=!l,setTimeout(()=>{nt(s.getElementsByTagName("INPUT")[0]||i),vt(e),pt.relatedTarget=t||null,r.dispatchEvent(pt)},1))}hide(t){const e=this,{element:n,menu:o,open:i}=e,s=n.parentNode;mt.relatedTarget=t||null,s.dispatchEvent(mt),mt.defaultPrevented||(r(o,"show"),r(s,"show"),gt(e),n.setAttribute("aria-expanded",!1),e.open=!i,nt(n),setTimeout(()=>vt(e),1),ft.relatedTarget=t||null,s.dispatchEvent(ft))}dispose(){const{element:t}=this;l(t.parentNode,"show")&&this.open&&this.hide(),bt(this),super.dispose("Dropdown")}}xt.init={component:"Dropdown",selector:it,constructor:xt};const kt=Array.from(document.getElementsByClassName("fixed-top")).concat(Array.from(document.getElementsByClassName("fixed-bottom"))).concat(Array.from(document.getElementsByClassName("sticky-top"))).concat(Array.from(document.getElementsByClassName("is-fixed")));function Ht(){const t=document.body;t.style.paddingRight="",t.style.overflow="",kt.length&&kt.forEach(t=>{t.style.paddingRight="",t.style.marginRight=""})}function Lt(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Nt(t,e,n){const o=document.body,i=parseInt(getComputedStyle(o).paddingRight,10),s=n&&i?0:t;e&&(o.style.paddingRight=i+s+"px",kt.length&&kt.forEach(t=>{const e=l(t,"sticky-top"),n=getComputedStyle(t).paddingRight;if(t.style.paddingRight=parseInt(n,10)+s+"px",e){const e=getComputedStyle(t).marginRight;t.style.marginRight=parseInt(e,10)-s+"px"}}))}const Pt=document.createElement("div");function St(){return a(".modal.show,.offcanvas.show")}function Ot(t){document.body.appendChild(Pt),t&&b(Pt,"fade")}function Dt(){b(Pt,"show"),T(Pt)}function Mt(){r(Pt,"show")}function Bt(){const t=document.body;St()||(r(Pt,"fade"),r(t,"modal-open"),t.removeChild(Pt),Ht())}function It(t){return"hidden"!==getComputedStyle(t).visibility&&null!==t.offsetParent}Pt.setAttribute("class","modal-backdrop");const Wt={backdrop:!0,keyboard:!0},Rt=d("show.bs.modal"),jt=d("shown.bs.modal"),Ft=d("hide.bs.modal"),zt=d("hidden.bs.modal");function qt(t){const{element:e,scrollbarWidth:n}=t,o=document.body,i=document.documentElement,s=l(o,"modal-open"),a=i.clientHeight!==i.scrollHeight||o.clientHeight!==o.scrollHeight,r=e.clientHeight!==e.scrollHeight;!r&&n&&(e.style.paddingRight=n+"px"),Nt(n,r||a,s)}function Xt(t,e){const n=e?c:"removeEventListener";window[n]("resize",t.update,A),t.element[n]("click",Kt),document[n]("keydown",Jt)}function $t(t,e){const n=e?c:"removeEventListener",{triggers:o}=t;o.length&&o.forEach(t=>t[n]("click",Zt))}function Yt(t){const{triggers:e}=t;if(Bt(),t.element.style.paddingRight="",t.isAnimating=!1,e.length){const t=e.find(t=>It(t));t&&nt(t)}}function Vt(t){const{element:e,relatedTarget:n}=t;nt(e),t.isAnimating=!1,Xt(t,1),jt.relatedTarget=n,e.dispatchEvent(jt)}function Gt(t){const{element:e,hasFade:n}=t;e.style.display="block",qt(t),a(".modal.show")||b(document.body,"modal-open"),b(e,"show"),e.removeAttribute("aria-hidden"),e.setAttribute("aria-modal",!0),n?s(e,()=>Vt(t)):Vt(t)}function Ut(t,e){const{element:n,relatedTarget:o,hasFade:i}=t,a=St();n.style.display="",!e&&i&&l(Pt,"show")&&!a?(Mt(),s(Pt,()=>Yt(t))):Yt(t),Xt(t),zt.relatedTarget=o,n.dispatchEvent(zt)}function Zt(t){const{target:e}=t,n=e.closest('[data-bs-toggle="modal"]'),o=Y(n),i=o&&o.Modal;"A"===n.tagName&&t.preventDefault(),i.isAnimating||(i.relatedTarget=n,i.toggle())}function Jt({which:t}){const e=a(".modal.show"),n=e.Modal,{options:o,isAnimating:i}=n;!i&&o.keyboard&&27===t&&l(e,"show")&&(n.relatedTarget=null,n.hide())}function Kt(t){const e=this,n=e.Modal;if(n.isAnimating)return;const{isStatic:o,modalDialog:a}=n,{target:l}=t,c=document.getSelection().toString().length,d=a.contains(l),h=l.closest('[data-bs-dismiss="modal"]');o&&!d?(b(e,"modal-static"),n.isAnimating=!0,s(a,()=>function(t){const e=i(t.modalDialog)+17;r(t.element,"modal-static"),setTimeout(()=>{t.isAnimating=!1},e)}(n))):!h&&(c||o||d)||(n.relatedTarget=h||null,n.hide(),t.preventDefault())}class Qt extends u{constructor(t,e){super("Modal",t,Wt,e);const{element:n}=this;this.modalDialog=a(".modal-dialog",n),this.triggers=Array.from(document.querySelectorAll('[data-bs-toggle="modal"]')).filter(t=>Y(t)===n),this.isStatic="static"===this.options.backdrop,this.hasFade=l(n,"fade"),this.isAnimating=!1,this.scrollbarWidth=Lt(),this.relatedTarget=null,$t(this,1),this.update=this.update.bind(this)}toggle(){l(this.element,"show")?this.hide():this.show()}show(){const t=this,{element:e,isAnimating:n,hasFade:o,relatedTarget:s}=t;let r=0;if(l(e,"show")&&!n)return;if(Rt.relatedTarget=s||null,e.dispatchEvent(Rt),Rt.defaultPrevented)return;t.isAnimating=!0;const c=St();if(c&&c!==e){(c.Modal?c.Modal:c.Offcanvas).hide()}a(".modal-backdrop")||Ot(o),r=i(Pt),l(Pt,"show")||Dt(),c?Gt(t):setTimeout(()=>Gt(t),r)}hide(t){const e=this,{element:n,isAnimating:o,hasFade:i,relatedTarget:a}=e;(l(n,"show")||o)&&(Ft.relatedTarget=a||null,n.dispatchEvent(Ft),Ft.defaultPrevented||(e.isAnimating=!0,r(n,"show"),n.setAttribute("aria-hidden",!0),n.removeAttribute("aria-modal"),i&&1!==t?s(n,()=>Ut(e)):Ut(e,t)))}update(){l(this.element,"show")&&qt(this)}dispose(){this.hide(1),$t(this),super.dispose("Modal")}}Qt.init={component:"Modal",selector:".modal",constructor:Qt};const _t={backdrop:!0,keyboard:!0,scroll:!1},te=d("show.bs.offcanvas"),ee=d("shown.bs.offcanvas"),ne=d("hide.bs.offcanvas"),oe=d("hidden.bs.offcanvas");function ie(t,e){const n=e?c:"removeEventListener";t.triggers.forEach(t=>t[n]("click",re))}function se(t){const e=t?c:"removeEventListener";document[e]("keydown",de),document[e]("click",ce)}function ae(t){const{element:e,options:n}=t;n.scroll||(b(document.body,"modal-open"),function(t){const e=document.body,n=document.documentElement,o=l(e,"modal-open"),i=n.clientHeight!==n.scrollHeight||e.clientHeight!==e.scrollHeight;Nt(t.scrollbarWidth,i,o)}(t)),b(e,"offcanvas-toggling"),b(e,"show"),e.style.visibility="visible",s(e,()=>function(t){const{element:e,triggers:n,relatedTarget:o}=t;r(e,"offcanvas-toggling"),e.removeAttribute("aria-hidden"),e.setAttribute("aria-modal",!0),e.setAttribute("role","dialog"),t.isAnimating=!1,n.length&&n.forEach(t=>t.setAttribute("aria-expanded",!0));ee.relatedTarget=o||null,e.dispatchEvent(ee),se(1),nt(e)}(t))}function le(t){const{element:e,options:n}=t,o=St();e.blur(),!o&&n.backdrop&&l(Pt,"show")?(Mt(),s(Pt,()=>he(t))):he(t)}function re(t){const e=this.closest('[data-bs-toggle="offcanvas"]'),n=Y(e),o=n&&n.Offcanvas;"A"===e.tagName&&t.preventDefault(),o&&(o.relatedTarget=e,o.toggle())}function ce(t){const e=a(".offcanvas.show");if(!e)return;const n=a('[data-bs-dismiss="offcanvas"]',e),o=e.Offcanvas;if(!o)return;const{options:i,open:s,triggers:l}=o,{target:r}=t,c=r.closest('[data-bs-toggle="offcanvas"]');c&&"A"===c.tagName&&t.preventDefault(),s&&(!e.contains(r)&&i.backdrop&&(!c||c&&!l.includes(c))||n.contains(r))&&(o.relatedTarget=r===n?n:null,o.hide())}function de({which:t}){const e=a(".offcanvas.show");if(!e)return;const n=e.Offcanvas;n&&n.options.keyboard&&27===t&&(n.relatedTarget=null,n.hide())}function he(t){const{element:e,options:n,relatedTarget:o,triggers:i}=t,s=St();if(e.setAttribute("aria-hidden",!0),e.removeAttribute("aria-modal"),e.removeAttribute("role"),e.style.visibility="",t.open=!1,t.isAnimating=!1,i.length){i.forEach(t=>t.setAttribute("aria-expanded",!1));const t=i.find(t=>It(t));t&&nt(t)}s||(n.backdrop&&Bt(),n.scroll||(Ht(),r(document.body,"modal-open"))),oe.relatedTarget=o||null,e.dispatchEvent(oe),r(e,"offcanvas-toggling"),se()}class ue extends u{constructor(t,e){super("Offcanvas",t,_t,e);const{element:n}=this;this.triggers=Array.from(document.querySelectorAll('[data-bs-toggle="offcanvas"]')).filter(t=>Y(t)===n),this.open=!1,this.isAnimating=!1,this.scrollbarWidth=Lt(),ie(this,1)}toggle(){return this.open?this.hide():this.show()}show(){const t=this.Offcanvas?this.Offcanvas:this,{element:e,options:n,isAnimating:o,relatedTarget:s}=t;let r=0;if(t.open||o)return;if(te.relatedTarget=s||null,e.dispatchEvent(te),te.defaultPrevented)return;const c=St();if(c&&c!==e){(c.Offcanvas?c.Offcanvas:c.Modal).hide()}t.open=!0,t.isAnimating=!0,n.backdrop?(a(".modal-backdrop")||Ot(1),r=i(Pt),l(Pt,"show")||Dt(),setTimeout(()=>ae(t),r)):ae(t)}hide(t){const e=this,{element:n,isAnimating:o,relatedTarget:i}=e;e.open&&!o&&(ne.relatedTarget=i||null,n.dispatchEvent(ne),ne.defaultPrevented||(e.isAnimating=!0,b(n,"offcanvas-toggling"),r(n,"show"),t?le(e):s(n,()=>le(e))))}dispose(){this.hide(1),ie(this),super.dispose("Offcanvas")}}ue.init={component:"Offcanvas",selector:".offcanvas",constructor:ue};var pe={top:"top",bottom:"bottom",left:"start",right:"end"};function me(t,e){return e.contains(t)}function fe(t){return[SVGElement,HTMLImageElement,HTMLVideoElement].some(e=>t instanceof e)}function ge(t,e){const n=/\b(top|bottom|start|end)+/,o=t.tooltip||t.popover;o.style.top="",o.style.left="",o.style.right="";const i=!!t.popover;let s={w:o.offsetWidth,h:o.offsetHeight};const a=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight,{element:r,options:c,arrow:d}=t;let{container:h,placement:u}=c,p=h===document.body;const m=getComputedStyle(r).position,f=getComputedStyle(h).position,g=!p&&"static"===f;let v=!p&&"relative"===f;const b=g&&function(t){let e=null,n=t;for(;n!==document.body;)if(n=n.parentElement,"relative"===getComputedStyle(n).position){e=n;break}return e}(h);h=b||h,v=g&&b?1:v,p=h===document.body;const w=h.getBoundingClientRect(),y=v?w.left:0,E=v?w.right:a,A="absolute"===m,T=r.getBoundingClientRect(),C=p?{x:window.pageXOffset,y:window.pageYOffset}:{x:h.scrollLeft,y:h.scrollTop},x=r.offsetWidth,k=r.offsetHeight,H=v?r.offsetTop:T.top,L=v?r.offsetLeft:T.left;let N,P,S,O,D,M;d.style.top="",d.style.left="",d.style.right="";let B=T.top-s.h<0,I=T.top+s.h+k>=l,W=T.left-s.w=E;B=["left","right"].includes(u)?T.top+k/2-s.h/2<0:B,I=["left","right"].includes(u)?T.top+s.h/2+k/2>=l:I,W=["top","bottom"].includes(u)?T.left+x/2-s.w/2=E:R,u=["left","right"].includes(u)&&W&&R?"top":u,u="top"===u&&B?"bottom":u,u="bottom"===u&&I?"top":u,u="left"===u&&W?"right":u,u="right"===u&&R?"left":u,o.className.includes(u)||(o.className=o.className.replace(n,pe[u])),s={w:o.offsetWidth,h:o.offsetHeight};const j=d.offsetWidth||0,F=d.offsetHeight||0,z=j/2;if(["left","right"].includes(u))P="left"===u?L+C.x-s.w-(i?j:0):L+C.x+x+(i?j:0),B?(N=H+C.y,O=k/2-j):I?(N=H+C.y-s.h+k,O=s.h-k/2-j):(N=H+C.y-s.h/2+k/2,O=s.h/2-F/2);else if(["top","bottom"].includes(u))if(e&&fe(r)){const t=v?e.layerX+(A?r.offsetLeft:0):e.pageX,n=v?e.layerY+(A?r.offsetTop:0):e.pageY;N="top"===u?n-s.h-(i?j:F):n+F,e.clientX-s.w/2=E?(P="auto",S=0,D=s.w-(E-t)-z):(P=t-s.w/2,D=s.w/2-z)}else N="top"===u?H+C.y-s.h-(i?F:0):H+C.y+k+(i?F:0),W?(P=0,D=L+x/2-z):R?(P="auto",S=0,M=x/2+(w.right-T.right)-z):(P=L+C.x-s.w/2+x/2,D=s.w/2-z);o.style.top=N+"px",o.style.left="auto"===P?P:P+"px",o.style.right=void 0!==S?S+"px":"",void 0!==O&&(d.style.top=O+"px"),void 0!==D?d.style.left=D+"px":void 0!==M&&(d.style.right=M+"px")}let ve=1;function be(t,e){return ve+=1,t[e]||ve}function we(t){const e=t.closest(".modal"),n=t.closest(".fixed-top,.fixed-bottom");return e||n||document.body}const ye={template:'',title:null,content:null,sanitizeFn:null,customClass:null,dismissible:!1,animation:!0,trigger:"hover",placement:"top",delay:200},Ee=/(iPhone|iPod|iPad)/.test(navigator.userAgent);let Ae='';const Te=d("show.bs.popover"),Ce=d("shown.bs.popover"),xe=d("hide.bs.popover"),ke=d("hidden.bs.popover");function He(){nt(this)}function Le({target:t}){const e=this,{popover:n,element:o}=e;n&&n.contains(t)||t===o||o.contains(t)||e.hide()}function Ne(t,e){const n=e?c:"removeEventListener",{element:o,options:i}=t,{trigger:s,dismissible:a}=i;t.enabled=!!e,"hover"===s?(o[n]("mousedown",t.show),o[n]("mouseenter",t.show),fe(o)&&o[n]("mousemove",t.update,A),a||o[n]("mouseleave",t.hide)):"click"===s?o[n](s,t.toggle):"focus"===s&&(Ee&&o[n]("click",He),o[n]("focusin",t.show))}function Pe(t,e){const n=e?c:"removeEventListener",{options:o,element:i,popover:s}=t,{trigger:a,dismissible:l}=o;if(l){const[e]=s.getElementsByClassName("btn-close");e&&e[n]("click",t.hide)}else"focus"===a&&i[n]("focusout",t.hide),"hover"===a&&document[n]("touchstart",Le,A);fe(i)||(window[n]("scroll",t.update,A),window[n]("resize",t.update,A))}function Se(t){Pe(t,1),t.element.dispatchEvent(Ce)}function Oe(t){Pe(t),function(t){const{element:e,popover:n,options:o}=t;e.removeAttribute("aria-describedby"),o.container.removeChild(n),t.timer=null}(t),t.element.dispatchEvent(ke)}class De extends u{constructor(t,e){ye.container=we(a(t)),super("Popover",t,ye,e);const{element:n}=this;this.timer=null,this.popover=null,this.arrow=null,this.enabled=!1,this.id="popover-"+be(n);const{options:o}=this;this.options.container=fe(n)?ye.container:a(o.container),ye.container=null,o.content&&(!function(t){const{id:e,options:n}=t,{animation:o,customClass:i,sanitizeFn:s,placement:r,dismissible:c}=n;let{title:d,content:h,template:u}=n;const p="bs-popover-"+pe[r];d=d?d.trim():null,h=h?h.trim():null,s&&(d=d?s(d):null,h=h?s(h):null,u=u?s(u):null,Ae=s(Ae)),t.popover=document.createElement("div");const{popover:m}=t;m.setAttribute("id",e),m.setAttribute("role","tooltip");const f=document.createElement("div");f.innerHTML=u.trim(),m.className=f.firstChild.className,m.innerHTML=f.firstChild.innerHTML;const g=a(".popover-header",m),v=a(".popover-body",m);t.arrow=a(".popover-arrow",m),c&&(d=d?d+Ae:d,h=null===d?+Ae:h),d&&g&&(g.innerHTML=d.trim()),h&&v&&(v.innerHTML=h.trim()),l(m,"popover")||b(m,"popover"),o&&!l(m,"fade")&&b(m,"fade"),i&&!l(m,i)&&b(m,i),l(m,p)||b(m,p)}(this),this.update=this.update.bind(this),Ne(this,1))}update(t){ge(this,t)}toggle(t){const e=t?this.Popover:this,{popover:n,options:o}=e;me(n,o.container)?e.hide():e.show()}show(t){const e=t?this.Popover:this,{element:n,popover:o,options:i,id:a}=e,{container:r}=i;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(!me(o,r)){if(n.dispatchEvent(Te),Te.defaultPrevented)return;r.appendChild(o),n.setAttribute("aria-describedby",a),e.update(t),l(o,"show")||b(o,"show"),i.animation?s(o,()=>Se(e)):Se(e)}},17)}hide(t){let e;if(t&&this.Popover)e=this.Popover;else if(t){const t=this.closest(".popover"),n=t&&a(`[aria-describedby="${t.id}"]`);e=n.Popover}else e=this;const{element:n,popover:o,options:i}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(me(o,i.container)){if(n.dispatchEvent(xe),xe.defaultPrevented)return;r(o,"show"),i.animation?s(o,()=>Oe(e)):Oe(e)}},i.delay+17)}enable(){const t=this,{enabled:e}=t;e||(Ne(t,1),t.enabled=!e)}disable(){const t=this,{enabled:e,popover:n,options:o}=t;e&&(me(n,o.container)&&o.animation?(t.hide(),setTimeout(()=>Ne(t),i(n)+o.delay+17)):Ne(t),t.enabled=!e)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const t=this,{popover:e,options:n}=t,{container:o,animation:i}=n;i&&me(e,o)?(n.delay=0,t.hide(),s(e,()=>Ne(t))):Ne(t),super.dispose("Popover")}}De.init={component:"Popover",selector:'[data-bs-toggle="popover"],[data-tip="popover"]',constructor:De};const Me={offset:10,target:null},Be=d("activate.bs.scrollspy");function Ie(t){const{target:e,scrollTarget:n,isWindow:o,options:i,itemsLength:s,scrollHeight:l}=t,{offset:r}=i,c=e.getElementsByTagName("A");if(t.scrollTop=o?n.pageYOffset:n.scrollTop,s!==c.length||We(n)!==l){let e,i,s;t.items=[],t.offsets=[],t.scrollHeight=We(n),t.maxScroll=t.scrollHeight-function({element:t,isWindow:e}){return e?window.innerHeight:t.getBoundingClientRect().height}(t),Array.from(c).forEach(n=>{e=n.getAttribute("href"),i=e&&"#"===e.charAt(0)&&"#"!==e.slice(-1)&&a(e),i&&(t.items.push(n),s=i.getBoundingClientRect(),t.offsets.push((o?s.top+t.scrollTop:i.offsetTop)-r))}),t.itemsLength=t.items.length}}function We(t){return t.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}function Re(t){Array.from(t.getElementsByTagName("A")).forEach(t=>{l(t,"active")&&r(t,"active")})}function je(t,e){const{target:n,element:o}=t;Re(n),t.activeItem=e,b(e,"active");const i=[];let s=e;for(;s!==document.body;)s=s.parentNode,(l(s,"nav")||l(s,"dropdown-menu"))&&i.push(s);i.forEach(t=>{const e=t.previousElementSibling;e&&!l(e,"active")&&b(e,"active")}),Be.relatedTarget=e,o.dispatchEvent(Be)}function Fe(t,e){const n=e?c:"removeEventListener";t.scrollTarget[n]("scroll",t.refresh,A)}class ze extends u{constructor(t,e){super("ScrollSpy",t,Me,e);const{element:n,options:o}=this;this.target=a(o.target),this.target&&(this.scrollTarget=n.clientHeight=o){const e=s[i-1];return void(a!==e&&je(t,e))}const{offsets:l}=t;if(a&&n0)return t.activeItem=null,void Re(e);s.forEach((e,o)=>{a!==e&&n>=l[o]&&(void 0===l[o+1]||n{e.style.height=Ue+"px",T(e),s(e,()=>_e(t))},50):n.isAnimating=!1,Xe.relatedTarget=Ze,Ve.dispatchEvent(Xe)}function en(t){const{tabContent:e}=t;e&&(Je.style.float="left",Ge.style.float="left",Ke=Je.scrollHeight),qe.relatedTarget=Ze,Ye.relatedTarget=Ve,Ve.dispatchEvent(qe),qe.defaultPrevented||(b(Ge,"active"),r(Je,"active"),e&&(Ue=Ge.scrollHeight,Qe=Ue===Ke,b(e,"collapsing"),e.style.height=Ke+"px",T(e),Je.style.float="",Ge.style.float=""),l(Ge,"fade")?setTimeout(()=>{b(Ge,"show"),s(Ge,()=>{tn(t)})},20):tn(t),Ze.dispatchEvent(Ye))}function nn({nav:t}){const e=t.getElementsByClassName("active");return 1!==e.length||tt.some(t=>l(e[0].parentNode,t))?e.length>1&&(Ze=e[e.length-1]):[Ze]=e,Ze}function on(t){return a(nn(t).getAttribute("href"))}function sn(t,e){const n=e?c:"removeEventListener";t.element[n]("click",an)}function an(t){const e=this.Tab;t.preventDefault(),e.nav.isAnimating||e.show()}class ln extends u{constructor(t){super("Tab",t);const{element:n}=this;this.nav=n.closest(".nav");const{nav:o}=this;this.dropdown=o&&a(`.${tt[0]}-toggle`,o),Je=on(this),this.tabContent=e&&Je.closest(".tab-content"),Ke=Je.scrollHeight,o.isAnimating=!1,sn(this,1)}show(){const t=this,{element:e,nav:n,dropdown:o}=t;if(Ve=e,!l(Ve,"active")){if(Ge=a(Ve.getAttribute("href")),Ze=nn({nav:n}),Je=on({nav:n}),$e.relatedTarget=Ve,Ze.dispatchEvent($e),$e.defaultPrevented)return;n.isAnimating=!0,r(Ze,"active"),Ze.setAttribute("aria-selected","false"),b(Ve,"active"),Ve.setAttribute("aria-selected","true"),o&&(l(e.parentNode,"dropdown-menu")?l(o,"active")||b(o,"active"):l(o,"active")&&r(o,"active")),l(Je,"fade")?(r(Je,"show"),s(Je,()=>en(t))):en(t)}}dispose(){sn(this),super.dispose("Tab")}}ln.init={component:"Tab",selector:'[data-bs-toggle="tab"]',constructor:ln};const rn={animation:!0,autohide:!0,delay:500},cn=d("show.bs.toast"),dn=d("hide.bs.toast"),hn=d("shown.bs.toast"),un=d("hidden.bs.toast");function pn(t){const{element:e,options:n}=t;n.animation||(r(e,"showing"),b(e,"show")),e.dispatchEvent(hn),n.autohide&&t.hide()}function mn(t){const{element:e}=t;b(e,"hide"),e.dispatchEvent(un)}function fn(t,e){const n=e?c:"removeEventListener";t.dismiss&&t.dismiss[n]("click",t.hide)}function gn(t){clearTimeout(t.timer),fn(t)}class vn extends u{constructor(t,e){super("Toast",t,rn,e);this.dismiss=a('[data-bs-dismiss="toast"]',this.element),this.show=this.show.bind(this),this.hide=this.hide.bind(this),fn(this,1)}show(){const t=this,{element:e}=t;if(e&&l(e,"hide")){if(e.dispatchEvent(cn),cn.defaultPrevented)return;b(e,"fade"),clearTimeout(t.timer),t.timer=setTimeout(()=>function(t){const{element:e,options:n}=t;r(e,"hide"),n.animation?(T(e),b(e,"showing"),b(e,"show"),s(e,()=>pn(t))):pn(t)}(t),10)}}hide(t){const e=this,{element:n,options:o}=e;if(n&&l(n,"show")){if(n.dispatchEvent(dn),dn.defaultPrevented)return;clearTimeout(e.timer),e.timer=setTimeout(function(t){const{element:e,options:n}=t;r(e,"show"),n.animation?(T(e),s(e,()=>mn(t))):mn(t)}(e),t?10:o.delay)}}dispose(){const t=this,{element:e,options:n}=t;t.hide(),n.animation?s(e,()=>gn(t)):gn(t),super.dispose("Toast")}}vn.init={component:"Toast",selector:".toast",constructor:vn};const bn={title:null,template:'',placement:"top",animation:!0,customClass:null,delay:200,sanitizeFn:null},wn=d("show.bs.tooltip"),yn=d("shown.bs.tooltip"),En=d("hide.bs.tooltip"),An=d("hidden.bs.tooltip");function Tn(t){const{element:e}=t;Hn(t),e.hasAttribute("data-original-title")&&Ln(t)}function Cn(t,e){const n=e?c:"removeEventListener";document[n]("touchstart",Nn,A),fe(t.element)||(window[n]("scroll",t.update,A),window[n]("resize",t.update,A))}function xn(t){Cn(t,1),t.element.dispatchEvent(yn)}function kn(t){Cn(t),function(t){const{element:e,options:n,tooltip:o}=t;e.removeAttribute("aria-describedby"),n.container.removeChild(o),t.timer=null}(t),t.element.dispatchEvent(An)}function Hn(t,e){const n=e?c:"removeEventListener",{element:o}=t;fe(o)&&o[n]("mousemove",t.update,A),o[n]("mousedown",t.show),o[n]("mouseenter",t.show),o[n]("mouseleave",t.hide)}function Ln(t,e){const n=["data-original-title","title"],{element:o}=t;o.setAttribute(n[e?0:1],e||o.getAttribute(n[0])),o.removeAttribute(n[e?1:0])}function Nn({target:t}){const{tooltip:e,element:n}=this;e.contains(t)||t===n||n.contains(t)||this.hide()}class Pn extends u{constructor(t,e){const n=a(t);bn.title=n.getAttribute("title"),bn.container=we(n),super("Tooltip",n,bn,e);this.tooltip=null,this.arrow=null,this.timer=null,this.enabled=!1;const{options:o}=this;this.options.container=fe(n)?bn.container:a(o.container),bn.container=null,bn.title=null,o.title&&(Nn.bind(this),this.update=this.update.bind(this),n.hasAttribute("title")&&Ln(this,o.title),this.id="tooltip-"+be(n),function(t){const{options:e,id:n}=t,o="bs-tooltip-"+pe[e.placement];let i=e.title.trim();if(e.sanitizeFn&&(i=e.sanitizeFn(i),e.template=e.sanitizeFn(e.template)),!i)return;t.tooltip=document.createElement("div");const{tooltip:s}=t;s.setAttribute("id",n);const r=document.createElement("div");r.innerHTML=e.template.trim(),s.className=r.firstChild.className,s.innerHTML=r.firstChild.innerHTML,a(".tooltip-inner",s).innerHTML=i,t.arrow=a(".tooltip-arrow",s),s.setAttribute("role","tooltip"),l(s,"tooltip")||b(s,"tooltip"),e.animation&&!l(s,"fade")&&b(s,"fade"),e.customClass&&!l(s,e.customClass)&&b(s,e.customClass),l(s,o)||b(s,o)}(this),Hn(this,1))}show(t){const e=t?this.Tooltip:this,{options:n,tooltip:o,element:i,id:a}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(!me(o,n.container)){if(i.dispatchEvent(wn),wn.defaultPrevented)return;n.container.appendChild(o),i.setAttribute("aria-describedby",a),e.update(t),l(o,"show")||b(o,"show"),n.animation?s(o,()=>xn(e)):xn(e)}},20)}hide(t){const e=t?this.Tooltip:this,{options:n,tooltip:o,element:i}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(me(o,n.container)){if(i.dispatchEvent(En),En.defaultPrevented)return;r(o,"show"),n.animation?s(o,()=>kn(e)):kn(e)}},n.delay)}update(t){ge(this,t)}toggle(){const{tooltip:t,options:e}=this;me(t,e.container)?this.hide():this.show()}enable(){const t=this,{enabled:e}=t;e||(Hn(t,1),t.enabled=!e)}disable(){const t=this,{tooltip:e,options:n,enabled:o}=t;o&&(!me(e,n.container)&&n.animation?(t.hide(),setTimeout(()=>Hn(t),i(e)+n.delay+17)):Hn(t),t.enabled=!o)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const t=this,{tooltip:e,options:n}=t;n.animation&&me(e,n.container)?(n.delay=0,t.hide(),s(e,()=>Tn(t))):Tn(t),super.dispose("Tooltip")}}Pn.init={component:"Tooltip",selector:'[data-bs-toggle="tooltip"],[data-tip="tooltip"]',constructor:Pn};const Sn={Alert:v.init,Button:E.init,Carousel:$.init,Collapse:_.init,Dropdown:xt.init,Modal:Qt.init,Offcanvas:ue.init,Popover:De.init,ScrollSpy:ze.init,Tab:ln.init,Toast:vn.init,Tooltip:Pn.init};function On(t){const e=t instanceof Element?t:document;Object.keys(Sn).forEach(t=>{const{constructor:n,selector:o}=Sn[t];var i,s;i=n,s=e.querySelectorAll(o),Array.from(s).forEach(t=>new i(t))})}document.body?On():document.addEventListener("DOMContentLoaded",()=>On(),{once:!0});var Dn={Alert:v,Button:E,Carousel:$,Collapse:_,Dropdown:xt,Modal:Qt,Offcanvas:ue,Popover:De,ScrollSpy:ze,Tab:ln,Toast:vn,Tooltip:Pn,initCallback:On,Version:"4.0.0"};export default Dn; diff --git a/dist/bootstrap-native.js b/dist/bootstrap-native.js index b7709cd4..08da3f39 100644 --- a/dist/bootstrap-native.js +++ b/dist/bootstrap-native.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ @@ -3479,7 +3479,7 @@ constructor: Tooltip, }; - var version = "3.0.15"; + var version = "4.0.0"; // import { alertInit } from '../components/alert-native.js'; // import { buttonInit } from '../components/button-native.js'; diff --git a/dist/bootstrap-native.min.js b/dist/bootstrap-native.min.js index 54347475..1d17862c 100644 --- a/dist/bootstrap-native.min.js +++ b/dist/bootstrap-native.min.js @@ -1,2 +1,2 @@ -// Native JavaScript for Bootstrap v3.0.15 | 2021 © dnp_theme | MIT-License -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).BSN=e()}(this,(function(){"use strict";const t="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",e="webkitTransition"in document.head.style||"transition"in document.head.style,n="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",o="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty";function i(t){const i=getComputedStyle(t),s=i[o],a=i[n],r=a.includes("ms")?1:1e3,l=e&&s&&"none"!==s?parseFloat(a)*r:0;return Number.isNaN(l)?0:l}function s(e,n){let o=0;const s=new Event(t),a=i(e);a?(e.addEventListener(t,(function i(s){s.target===e&&(n.apply(e,[s]),e.removeEventListener(t,i),o=1)})),setTimeout(()=>{o||e.dispatchEvent(s)},a+17)):n.apply(e,[s])}function a(t,e){const n=e&&e instanceof Element?e:document;return t instanceof Element?t:n.querySelector(t)}function r(t,e){return t.classList.contains(e)}function l(t,e){t.classList.remove(e)}const c="addEventListener";function d(t,e){const n=new CustomEvent(t,{cancelable:!0});return e instanceof Object&&Object.keys(e).forEach(t=>{Object.defineProperty(n,t,{value:e[t]})}),n}function u(t){return"true"===t||"false"!==t&&(Number.isNaN(+t)?""===t||"null"===t?null:t:+t)}class h{constructor(t,e,n,o){const i=this,s=a(e);s[t]&&s[t].dispose(),i.element=s,n&&Object.keys(n).length&&(i.options=function(t,e,n,o){const i={},s={},a={...t.dataset};return Object.keys(a).forEach(t=>{const e=t.includes(o)?t.replace(o,"").replace(/[A-Z]/,t=>t.toLowerCase()):t;s[e]=u(a[t])}),Object.keys(n).forEach(t=>{n[t]=u(n[t])}),Object.keys(e).forEach(t=>{i[t]=t in n?n[t]:t in s?s[t]:e[t]}),i}(s,n,o||{},"bs")),s[t]=i}dispose(t){const e=this;e.element[t]=null,Object.keys(e).forEach(t=>{e[t]=null})}}const p=d("close.bs.alert"),m=d("closed.bs.alert");function f(t){const{element:e,relatedTarget:n}=t;g(t),n&&(m.relatedTarget=n),e.dispatchEvent(m),t.dispose(),e.parentNode.removeChild(e)}function g(t,e){const n=e?c:"removeEventListener";t.dismiss&&t.dismiss[n]("click",t.close)}class v extends h{constructor(t){super("Alert",t);const{element:e}=this;this.dismiss=a('[data-bs-dismiss="alert"]',e),this.relatedTarget=null,g(this,1)}close(t){const e=t?t.target:null,n=t?t.target.closest(".alert").Alert:this,{element:o}=n;if(n&&o&&r(o,"show")){if(e&&(p.relatedTarget=e,n.relatedTarget=e),o.dispatchEvent(p),p.defaultPrevented)return;l(o,"show"),r(o,"fade")?s(o,()=>f(n)):f(n)}}dispose(){g(this),super.dispose("Alert")}}function b(t,e){t.classList.add(e)}v.init={component:"Alert",selector:".alert",constructor:v};const y="data-bs-toggle",w=`[${y}="button"]`;function E(t,e){const n=e?c:"removeEventListener";t.element[n]("click",t.toggle)}class A extends h{constructor(t){super("Button",t);const{element:e}=this;this.isActive=r(e,"active"),e.setAttribute("aria-pressed",!!this.isActive),E(this,1)}toggle(t){t&&t.preventDefault();const e=t?this.Button:this,{element:n}=e;if(r(n,"disabled"))return;e.isActive=r(n,"active");const{isActive:o}=e,i=o?"false":"true";(o?l:b)(n,"active"),n.setAttribute("aria-pressed",i)}dispose(){E(this),super.dispose("Button")}}A.init={component:"Button",selector:w,constructor:A};var T=!!(()=>{let t=!1;try{const e=Object.defineProperty({},"passive",{get:()=>(t=!0,t)});document[c]("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){throw Error("Passive events are not supported")}return t})()&&{passive:!0};function C(t){return t.offsetHeight}function x(t){const e=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;return e.top<=n&&e.bottom>=0}const k='[data-bs-ride="carousel"]',H={pause:"hover",keyboard:!1,touch:!0,interval:5e3};let N=0,L=0,P=0;const S=d("slide.bs.carousel"),O=d("slid.bs.carousel");function D(t){const e=t.target.closest(k).Carousel,{element:n,isAnimating:o}=e;r(n,"paused")||(b(n,"paused"),o||(clearInterval(e.timer),e.timer=null))}function M(t){const e=t.target.closest(k).Carousel,{isPaused:n,isAnimating:o,element:i}=e;!n&&r(i,"paused")&&(l(i,"paused"),o||(clearInterval(e.timer),e.timer=null,e.cycle()))}function B(t){t.preventDefault();const{target:e}=t,n=e.closest(k).Carousel;if(n.isAnimating)return;const o=e.getAttribute("data-bs-slide-to");e&&!r(e,"active")&&o&&n.to(+o)}function I(t){t.preventDefault();const e=this.closest(k).Carousel,{controls:n}=e;n[1]&&this===n[1]?e.next():n[1]&&this===n[0]&&e.prev()}function W({which:t}){const[e]=Array.from(document.querySelectorAll(k)).filter(t=>x(t));if(!e)return;const n=e.Carousel;switch(t){case 39:n.next();break;case 37:n.prev()}}function R(t){const e=this.Carousel;e&&!e.isTouch&&(N=t.changedTouches[0].pageX,this.contains(t.target)&&(e.isTouch=!0,z(e,1)))}function j(t){const{changedTouches:e,type:n}=t,o=this.Carousel;o&&o.isTouch&&(L=e[0].pageX,"touchmove"===n&&e.length>1&&t.preventDefault())}function $(t){const e=this,n=e.Carousel;if(n&&n.isTouch&&(P=L||t.changedTouches[0].pageX,n.isTouch)){if((!e.contains(t.target)||!e.contains(t.relatedTarget))&&Math.abs(N-P)<75)return;LN&&(n.index-=1),n.isTouch=!1,n.to(n.index),z(n)}}function F(t,e){const{indicators:n}=t;Array.from(n).forEach(t=>l(t,"active")),t.indicators[e]&&b(n[e],"active")}function z(t,e){const{element:n}=t,o=e?c:"removeEventListener";n[o]("touchmove",j,T),n[o]("touchend",$,T)}function q(t,e){const{element:n,options:o,slides:i,controls:s,indicator:a}=t,{touch:r,pause:l,interval:d,keyboard:u}=o,h=e?c:"removeEventListener";l&&d&&(n[h]("mouseenter",D),n[h]("mouseleave",M),n[h]("touchstart",D,T),n[h]("touchend",M,T)),r&&i.length>1&&n[h]("touchstart",R,T),s.forEach(t=>{t&&t[h]("click",I)}),a&&a[h]("click",B),u&&window[h]("keydown",W)}function X(t){const{slides:e,element:n}=t;return Array.from(e).indexOf(n.getElementsByClassName("carousel-item active")[0])||0}class Y extends h{constructor(t,e){super("Carousel",t,H,e);const n=this;n.timer=null,n.direction="left",n.isPaused=!1,n.isAnimating=!1,n.index=0,n.timer=null,n.isTouch=!1;const{element:o}=n;n.slides=o.getElementsByClassName("carousel-item");const{slides:i}=n;if(i.length<2)return;n.controls=[a(".carousel-control-prev",o),a(".carousel-control-next",o)],n.indicator=a(".carousel-indicators",o),n.indicators=n.indicator&&n.indicator.querySelectorAll("[data-bs-slide-to]")||[];const{options:s}=n;n.options.interval=!0===s.interval?H.interval:s.interval,X(n)<0&&(i.length&&b(i[0],"active"),n.indicators.length&&F(n,0)),q(n,1),s.interval&&n.cycle()}cycle(){const t=this,{isPaused:e,element:n,options:o}=t;t.timer&&(clearInterval(t.timer),t.timer=null),e&&(l(n,"paused"),t.isPaused=!e),t.timer=setInterval(()=>{x(n)&&(t.index+=1,t.to(t.index))},o.interval)}pause(){const t=this,{element:e,options:n,isPaused:o}=t;n.interval&&!o&&(clearInterval(t.timer),t.timer=null,b(e,"paused"),t.isPaused=!o)}next(){const t=this;t.isAnimating||(t.index+=1,t.to(t.index))}prev(){const t=this;t.isAnimating||(t.index-=1,t.to(t.index))}to(t){const e=this,{element:n,isAnimating:o,slides:a,options:c}=e,d=X(e);let u=t;if(o||d===u)return;du||d===a.length-1&&0===u)&&(e.direction="right");const{direction:h}=e;u<0?u=a.length-1:u>=a.length&&(u=0);const p="left"===h?"next":"prev",m="left"===h?"start":"end",f={relatedTarget:a[u],direction:h,from:d,to:u};Object.keys(f).forEach(t=>{S[t]=f[t],O[t]=f[t]}),n.dispatchEvent(S),S.defaultPrevented||(e.index=u,clearInterval(e.timer),e.timer=null,e.isAnimating=!0,F(e,u),i(a[u])&&r(n,"slide")?(b(a[u],"carousel-item-"+p),C(a[u]),b(a[u],"carousel-item-"+m),b(a[d],"carousel-item-"+m),s(a[u],()=>function(t){const{index:e,direction:n,element:o,slides:i,options:s,isAnimating:a}=t;if(a&&o.Carousel){const a=X(t),c="left"===n?"next":"prev",d="left"===n?"start":"end";t.isAnimating=!1,b(i[e],"active"),l(i[a],"active"),l(i[e],"carousel-item-"+c),l(i[e],"carousel-item-"+d),l(i[a],"carousel-item-"+d),o.dispatchEvent(O),document.hidden||!s.interval||r(o,"paused")||t.cycle()}}(e))):(b(a[u],"active"),l(a[d],"active"),setTimeout(()=>{e.isAnimating=!1,n&&c.interval&&!r(n,"paused")&&e.cycle(),n.dispatchEvent(O)},100)))}dispose(){const t=this,{slides:e}=t,n=["start","end","prev","next"];Array.from(e).forEach((e,o)=>{r(e,"active")&&F(t,o),n.forEach(t=>l(e,"carousel-item-"+t))}),q(t),clearInterval(t.timer),super.dispose("Carousel")}}Y.init={component:"Carousel",selector:k,constructor:Y};function V(t){return a(t.getAttribute("data-bs-target")||t.getAttribute("href"))||t.closest(t.getAttribute("data-bs-parent"))||a(t.getAttribute("data-bs-container"))}const G=`[${y}="collapse"]`,U=d("show.bs.collapse"),Z=d("shown.bs.collapse"),J=d("hide.bs.collapse"),K=d("hidden.bs.collapse");function Q(t){const{element:e,parent:n,triggers:o}=t;e.dispatchEvent(J),J.defaultPrevented||(t.isAnimating=!0,n&&(n.isAnimating=!0),e.style.height=e.scrollHeight+"px",l(e,"collapse"),l(e,"show"),b(e,"collapsing"),C(e),e.style.height="0px",s(e,()=>{t.isAnimating=!1,n&&(n.isAnimating=!1),o.forEach(t=>t.setAttribute("aria-expanded","false")),l(e,"collapsing"),b(e,"collapse"),e.style.height="",e.dispatchEvent(K)}))}function _(t,e){const n=e?c:"removeEventListener",{triggers:o}=t;o.length&&o.forEach(t=>t[n]("click",tt))}function tt(t){const{target:e}=t,n=e.closest(G),o=V(n),i=o&&o.Collapse;i&&i.toggle(e),n&&"A"===n.tagName&&t.preventDefault()}class et extends h{constructor(t,e){super("Collapse",t,{parent:null},e);const{element:n}=this;this.triggers=Array.from(document.querySelectorAll(G)).filter(t=>V(t)===n),this.parent=a(this.options.parent);const{parent:o}=this;this.isAnimating=!1,o&&(o.isAnimating=!1),_(this,1)}toggle(t){r(this.element,"show")?this.hide(t):this.show(t)}hide(){const{triggers:t,isAnimating:e}=this;e||(Q(this),t.length&&t.forEach(t=>b(t,"collapsed")))}show(){const t=this,{element:e,parent:n,triggers:o,isAnimating:i}=t;let a,r;n&&(a=Array.from(n.querySelectorAll(".collapse.show")).find(t=>t.Collapse),r=a&&a.Collapse),n&&(!n||n.isAnimating)||i||(r&&a!==e&&(Q(r),r.triggers.forEach(t=>{b(t,"collapsed")})),function(t){const{element:e,parent:n,triggers:o}=t;e.dispatchEvent(U),U.defaultPrevented||(t.isAnimating=!0,n&&(n.isAnimating=!0),b(e,"collapsing"),l(e,"collapse"),e.style.height=e.scrollHeight+"px",s(e,()=>{t.isAnimating=!1,n&&(n.isAnimating=!1),o.forEach(t=>t.setAttribute("aria-expanded","true")),l(e,"collapsing"),b(e,"collapse"),b(e,"show"),e.style.height="",e.dispatchEvent(Z)}))}(t),o.length&&o.forEach(t=>l(t,"collapsed")))}dispose(){const{parent:t}=this;_(this),t&&delete t.isAnimating,super.dispose("Collapse")}}et.init={component:"Collapse",selector:".collapse",constructor:et};const nt=["dropdown","dropup","dropstart","dropend"];function ot(t){const e=t.closest("A");return t&&(t.href&&"#"===t.href.slice(-1)||e&&e.href&&"#"===e.href.slice(-1))}function it(t){t.focus()}const[st]=nt,at=`[${y}="${st}"]`,rt=nt[1],lt=nt[2],ct=nt[3],dt=["d-block","invisible"],ut=[st,rt],ht=[lt,ct],pt={offset:5,display:"dynamic"},mt=d("show.bs."+st),ft=d("shown.bs."+st),gt=d("hide.bs."+st),vt=d("hidden.bs."+st);function bt(t,e){const{element:n,menu:o,originalClass:i,menuEnd:s,options:a}=t,c=n.parentElement;if(["margin","top","bottom","left","right"].forEach(t=>{o.style[t]=""}),l(c,"position-static"),!e){c.className=i.join(" ");return void(s&&!r(o,"dropdown-menu-end")?b:l)(o,"dropdown-menu-end")}const{offset:d}=a;let u=nt.find(t=>i.includes(t)),h={dropdown:[d,0,0],dropup:[0,0,d],dropstart:[-1,d,0],dropend:[-1,0,0,d]};const p={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:{left:"auto",right:"100%"},dropend:{left:"100%",right:"auto"},menuEnd:{right:0,left:"auto"}};dt.forEach(t=>b(o,t));const m=new RegExp(`\\b(${st}|${rt}|${lt}|${ct})+`),f=n.offsetWidth,g=n.offsetHeight,v=o.offsetWidth,y=o.offsetHeight,w=document.documentElement,E=document.body,A=w.clientWidth||E.clientWidth,T=w.clientHeight||E.clientHeight,C=n.getBoundingClientRect(),x=C.left+f-v<0,k=C.left-v<0,H=C.left+v>=A,N=C.left+v+f>=A,L=C.top+y>=T,P=C.top+y+g>=T,S=C.top-y<0,O=c.parentNode.closest(".btn-group,.btn-group-vertical");if(ht.includes(u)&&k&&N&&(u=st),ht.includes(u)&&L&&(u=rt),u===lt&&k&&!L&&(u=ct),u===ct&&N&&!L&&(u=lt),u===rt&&S&&!P&&(u=st),u===st&&P&&!S&&(u=rt),h=h[u],o.style.margin=""+h.map(t=>t?t+"px":t).join(" "),Object.keys(p[u]).forEach(t=>{o.style[t]=p[u][t]}),r(c,u)||(c.className=c.className.replace(m,u)),ut.includes(u)){const t=H?b:l;O?x&&b(c,"position-static"):t(o,"dropdown-menu-end"),r(o,"dropdown-menu-end")&&Object.keys(p.menuEnd).forEach(t=>{o.style[t]=p.menuEnd[t]})}dt.forEach(t=>l(o,t))}function yt(t){const e=t.open?c:"removeEventListener";document[e]("click",At),document[e]("focus",At),document[e]("keydown",Ct),document[e]("keyup",xt),"dynamic"===t.options.display&&(window[e]("scroll",kt,T),window[e]("resize",kt,T))}function wt(t,e){const n=e?c:"removeEventListener";t.element[n]("click",Tt)}function Et(){const t=nt.map(t=>document.getElementsByClassName(t+" show")).find(t=>t.length);return t&&t.length?Array.from(t[0].children).find(t=>t.hasAttribute(y)):null}function At(t){const{target:e,type:n}=t;if(!e.closest)return;const o=Et(),i=o&&o.parentNode,s=o&&o.Dropdown,a=s&&s.menu,r=null!==e.closest(at),l=i&&i.contains(e)&&("form"===e.tagName||null!==e.closest("form"));"click"===n&&ot(e)&&t.preventDefault(),("focus"!==n||e!==o&&e!==a&&!a.contains(e))&&(l||r||s&&s.hide(o))}function Tt(t){this.Dropdown.toggle(this),ot(t.target)&&t.preventDefault()}function Ct(t){38!==t.which&&40!==t.which||t.preventDefault()}function xt({which:t}){const e=Et(),n=e.Dropdown,{menu:o,menuItems:i,open:s}=n,a=document.activeElement,r=a===e,l=o.contains(a),c=a.parentNode===o||a.parentNode.parentNode===o;let d=i.indexOf(a);c&&(r?d=0:38===t?d=d>1?d-1:0:40===t&&(d=d{t.children.length&&"A"===t.children[0].tagName&&n.menuItems.push(t.children[0]),"A"===t.tagName&&n.menuItems.push(t)}),n.open=!1,wt(n,1)}toggle(t){const{open:e}=this;e?this.hide(t):this.show(t)}show(t){const e=this,n=a(nt.map(t=>`.${t}.show`).join(",")),o=n&&a(at,n);o&&o.Dropdown.hide();const{element:i,menu:s,open:r}=e,l=i.parentNode;mt.relatedTarget=t||null,l.dispatchEvent(mt),mt.defaultPrevented||(bt(e,1),b(s,"show"),b(l,"show"),i.setAttribute("aria-expanded",!0),e.open=!r,setTimeout(()=>{it(s.getElementsByTagName("INPUT")[0]||i),yt(e),ft.relatedTarget=t||null,l.dispatchEvent(ft)},1))}hide(t){const e=this,{element:n,menu:o,open:i}=e,s=n.parentNode;gt.relatedTarget=t||null,s.dispatchEvent(gt),gt.defaultPrevented||(l(o,"show"),l(s,"show"),bt(e),n.setAttribute("aria-expanded",!1),e.open=!i,it(n),setTimeout(()=>yt(e),1),vt.relatedTarget=t||null,s.dispatchEvent(vt))}dispose(){const{element:t}=this;r(t.parentNode,"show")&&this.open&&this.hide(),wt(this),super.dispose("Dropdown")}}Ht.init={component:"Dropdown",selector:at,constructor:Ht};const Nt=Array.from(document.getElementsByClassName("fixed-top")).concat(Array.from(document.getElementsByClassName("fixed-bottom"))).concat(Array.from(document.getElementsByClassName("sticky-top"))).concat(Array.from(document.getElementsByClassName("is-fixed")));function Lt(){const t=document.body;t.style.paddingRight="",t.style.overflow="",Nt.length&&Nt.forEach(t=>{t.style.paddingRight="",t.style.marginRight=""})}function Pt(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function St(t,e,n){const o=document.body,i=parseInt(getComputedStyle(o).paddingRight,10),s=n&&i?0:t;e&&(o.style.paddingRight=i+s+"px",Nt.length&&Nt.forEach(t=>{const e=r(t,"sticky-top"),n=getComputedStyle(t).paddingRight;if(t.style.paddingRight=parseInt(n,10)+s+"px",e){const e=getComputedStyle(t).marginRight;t.style.marginRight=parseInt(e,10)-s+"px"}}))}const Ot=document.createElement("div");function Dt(){return a(".modal.show,.offcanvas.show")}function Mt(t){document.body.appendChild(Ot),t&&b(Ot,"fade")}function Bt(){b(Ot,"show"),C(Ot)}function It(){l(Ot,"show")}function Wt(){const t=document.body;Dt()||(l(Ot,"fade"),l(t,"modal-open"),t.removeChild(Ot),Lt())}function Rt(t){return"hidden"!==getComputedStyle(t).visibility&&null!==t.offsetParent}Ot.setAttribute("class","modal-backdrop");const jt=`[${y}="modal"]`,$t={backdrop:!0,keyboard:!0},Ft=d("show.bs.modal"),zt=d("shown.bs.modal"),qt=d("hide.bs.modal"),Xt=d("hidden.bs.modal");function Yt(t){const{element:e,scrollbarWidth:n}=t,o=document.body,i=document.documentElement,s=r(o,"modal-open"),a=i.clientHeight!==i.scrollHeight||o.clientHeight!==o.scrollHeight,l=e.clientHeight!==e.scrollHeight;!l&&n&&(e.style.paddingRight=n+"px"),St(n,l||a,s)}function Vt(t,e){const n=e?c:"removeEventListener";window[n]("resize",t.update,T),t.element[n]("click",te),document[n]("keydown",_t)}function Gt(t,e){const n=e?c:"removeEventListener",{triggers:o}=t;o.length&&o.forEach(t=>t[n]("click",Qt))}function Ut(t){const{triggers:e}=t;if(Wt(),t.element.style.paddingRight="",t.isAnimating=!1,e.length){const t=e.find(t=>Rt(t));t&&it(t)}}function Zt(t){const{element:e,relatedTarget:n}=t;it(e),t.isAnimating=!1,Vt(t,1),zt.relatedTarget=n,e.dispatchEvent(zt)}function Jt(t){const{element:e,hasFade:n}=t;e.style.display="block",Yt(t),a(".modal.show")||b(document.body,"modal-open"),b(e,"show"),e.removeAttribute("aria-hidden"),e.setAttribute("aria-modal",!0),n?s(e,()=>Zt(t)):Zt(t)}function Kt(t,e){const{element:n,relatedTarget:o,hasFade:i}=t,a=Dt();n.style.display="",!e&&i&&r(Ot,"show")&&!a?(It(),s(Ot,()=>Ut(t))):Ut(t),Vt(t),Xt.relatedTarget=o,n.dispatchEvent(Xt)}function Qt(t){const{target:e}=t,n=e.closest(jt),o=V(n),i=o&&o.Modal;"A"===n.tagName&&t.preventDefault(),i.isAnimating||(i.relatedTarget=n,i.toggle())}function _t({which:t}){const e=a(".modal.show"),n=e.Modal,{options:o,isAnimating:i}=n;!i&&o.keyboard&&27===t&&r(e,"show")&&(n.relatedTarget=null,n.hide())}function te(t){const e=this,n=e.Modal;if(n.isAnimating)return;const{isStatic:o,modalDialog:a}=n,{target:r}=t,c=document.getSelection().toString().length,d=a.contains(r),u=r.closest('[data-bs-dismiss="modal"]');o&&!d?(b(e,"modal-static"),n.isAnimating=!0,s(a,()=>function(t){const e=i(t.modalDialog)+17;l(t.element,"modal-static"),setTimeout(()=>{t.isAnimating=!1},e)}(n))):!u&&(c||o||d)||(n.relatedTarget=u||null,n.hide(),t.preventDefault())}class ee extends h{constructor(t,e){super("Modal",t,$t,e);const{element:n}=this;this.modalDialog=a(".modal-dialog",n),this.triggers=Array.from(document.querySelectorAll(jt)).filter(t=>V(t)===n),this.isStatic="static"===this.options.backdrop,this.hasFade=r(n,"fade"),this.isAnimating=!1,this.scrollbarWidth=Pt(),this.relatedTarget=null,Gt(this,1),this.update=this.update.bind(this)}toggle(){r(this.element,"show")?this.hide():this.show()}show(){const t=this,{element:e,isAnimating:n,hasFade:o,relatedTarget:s}=t;let l=0;if(r(e,"show")&&!n)return;if(Ft.relatedTarget=s||null,e.dispatchEvent(Ft),Ft.defaultPrevented)return;t.isAnimating=!0;const c=Dt();if(c&&c!==e){(c.Modal?c.Modal:c.Offcanvas).hide()}a(".modal-backdrop")||Mt(o),l=i(Ot),r(Ot,"show")||Bt(),c?Jt(t):setTimeout(()=>Jt(t),l)}hide(t){const e=this,{element:n,isAnimating:o,hasFade:i,relatedTarget:a}=e;(r(n,"show")||o)&&(qt.relatedTarget=a||null,n.dispatchEvent(qt),qt.defaultPrevented||(e.isAnimating=!0,l(n,"show"),n.setAttribute("aria-hidden",!0),n.removeAttribute("aria-modal"),i&&1!==t?s(n,()=>Kt(e)):Kt(e,t)))}update(){r(this.element,"show")&&Yt(this)}dispose(){this.hide(1),Gt(this),super.dispose("Modal")}}ee.init={component:"Modal",selector:".modal",constructor:ee};const ne=`[${y}="offcanvas"]`,oe={backdrop:!0,keyboard:!0,scroll:!1},ie=d("show.bs.offcanvas"),se=d("shown.bs.offcanvas"),ae=d("hide.bs.offcanvas"),re=d("hidden.bs.offcanvas");function le(t,e){const n=e?c:"removeEventListener";t.triggers.forEach(t=>t[n]("click",he))}function ce(t){const e=t?c:"removeEventListener";document[e]("keydown",me),document[e]("click",pe)}function de(t){const{element:e,options:n}=t;n.scroll||(b(document.body,"modal-open"),function(t){const e=document.body,n=document.documentElement,o=r(e,"modal-open"),i=n.clientHeight!==n.scrollHeight||e.clientHeight!==e.scrollHeight;St(t.scrollbarWidth,i,o)}(t)),b(e,"offcanvas-toggling"),b(e,"show"),e.style.visibility="visible",s(e,()=>function(t){const{element:e,triggers:n,relatedTarget:o}=t;l(e,"offcanvas-toggling"),e.removeAttribute("aria-hidden"),e.setAttribute("aria-modal",!0),e.setAttribute("role","dialog"),t.isAnimating=!1,n.length&&n.forEach(t=>t.setAttribute("aria-expanded",!0));se.relatedTarget=o||null,e.dispatchEvent(se),ce(1),it(e)}(t))}function ue(t){const{element:e,options:n}=t,o=Dt();e.blur(),!o&&n.backdrop&&r(Ot,"show")?(It(),s(Ot,()=>fe(t))):fe(t)}function he(t){const e=this.closest(ne),n=V(e),o=n&&n.Offcanvas;"A"===e.tagName&&t.preventDefault(),o&&(o.relatedTarget=e,o.toggle())}function pe(t){const e=a(".offcanvas.show");if(!e)return;const n=a('[data-bs-dismiss="offcanvas"]',e),o=e.Offcanvas;if(!o)return;const{options:i,open:s,triggers:r}=o,{target:l}=t,c=l.closest(ne);c&&"A"===c.tagName&&t.preventDefault(),s&&(!e.contains(l)&&i.backdrop&&(!c||c&&!r.includes(c))||n.contains(l))&&(o.relatedTarget=l===n?n:null,o.hide())}function me({which:t}){const e=a(".offcanvas.show");if(!e)return;const n=e.Offcanvas;n&&n.options.keyboard&&27===t&&(n.relatedTarget=null,n.hide())}function fe(t){const{element:e,options:n,relatedTarget:o,triggers:i}=t,s=Dt();if(e.setAttribute("aria-hidden",!0),e.removeAttribute("aria-modal"),e.removeAttribute("role"),e.style.visibility="",t.open=!1,t.isAnimating=!1,i.length){i.forEach(t=>t.setAttribute("aria-expanded",!1));const t=i.find(t=>Rt(t));t&&it(t)}s||(n.backdrop&&Wt(),n.scroll||(Lt(),l(document.body,"modal-open"))),re.relatedTarget=o||null,e.dispatchEvent(re),l(e,"offcanvas-toggling"),ce()}class ge extends h{constructor(t,e){super("Offcanvas",t,oe,e);const{element:n}=this;this.triggers=Array.from(document.querySelectorAll(ne)).filter(t=>V(t)===n),this.open=!1,this.isAnimating=!1,this.scrollbarWidth=Pt(),le(this,1)}toggle(){return this.open?this.hide():this.show()}show(){const t=this.Offcanvas?this.Offcanvas:this,{element:e,options:n,isAnimating:o,relatedTarget:s}=t;let l=0;if(t.open||o)return;if(ie.relatedTarget=s||null,e.dispatchEvent(ie),ie.defaultPrevented)return;const c=Dt();if(c&&c!==e){(c.Offcanvas?c.Offcanvas:c.Modal).hide()}t.open=!0,t.isAnimating=!0,n.backdrop?(a(".modal-backdrop")||Mt(1),l=i(Ot),r(Ot,"show")||Bt(),setTimeout(()=>de(t),l)):de(t)}hide(t){const e=this,{element:n,isAnimating:o,relatedTarget:i}=e;e.open&&!o&&(ae.relatedTarget=i||null,n.dispatchEvent(ae),ae.defaultPrevented||(e.isAnimating=!0,b(n,"offcanvas-toggling"),l(n,"show"),t?ue(e):s(n,()=>ue(e))))}dispose(){this.hide(1),le(this),super.dispose("Offcanvas")}}ge.init={component:"Offcanvas",selector:".offcanvas",constructor:ge};var ve={top:"top",bottom:"bottom",left:"start",right:"end"};function be(t,e){return e.contains(t)}function ye(t){return[SVGElement,HTMLImageElement,HTMLVideoElement].some(e=>t instanceof e)}function we(t,e){const n=/\b(top|bottom|start|end)+/,o=t.tooltip||t.popover;o.style.top="",o.style.left="",o.style.right="";const i=!!t.popover;let s={w:o.offsetWidth,h:o.offsetHeight};const a=document.documentElement.clientWidth||document.body.clientWidth,r=document.documentElement.clientHeight||document.body.clientHeight,{element:l,options:c,arrow:d}=t;let{container:u,placement:h}=c,p=u===document.body;const m=getComputedStyle(l).position,f=getComputedStyle(u).position,g=!p&&"static"===f;let v=!p&&"relative"===f;const b=g&&function(t){let e=null,n=t;for(;n!==document.body;)if(n=n.parentElement,"relative"===getComputedStyle(n).position){e=n;break}return e}(u);u=b||u,v=g&&b?1:v,p=u===document.body;const y=u.getBoundingClientRect(),w=v?y.left:0,E=v?y.right:a,A="absolute"===m,T=l.getBoundingClientRect(),C=p?{x:window.pageXOffset,y:window.pageYOffset}:{x:u.scrollLeft,y:u.scrollTop},x=l.offsetWidth,k=l.offsetHeight,H=v?l.offsetTop:T.top,N=v?l.offsetLeft:T.left;let L,P,S,O,D,M;d.style.top="",d.style.left="",d.style.right="";let B=T.top-s.h<0,I=T.top+s.h+k>=r,W=T.left-s.w=E;B=["left","right"].includes(h)?T.top+k/2-s.h/2<0:B,I=["left","right"].includes(h)?T.top+s.h/2+k/2>=r:I,W=["top","bottom"].includes(h)?T.left+x/2-s.w/2=E:R,h=["left","right"].includes(h)&&W&&R?"top":h,h="top"===h&&B?"bottom":h,h="bottom"===h&&I?"top":h,h="left"===h&&W?"right":h,h="right"===h&&R?"left":h,o.className.includes(h)||(o.className=o.className.replace(n,ve[h])),s={w:o.offsetWidth,h:o.offsetHeight};const j=d.offsetWidth||0,$=d.offsetHeight||0,F=j/2;if(["left","right"].includes(h))P="left"===h?N+C.x-s.w-(i?j:0):N+C.x+x+(i?j:0),B?(L=H+C.y,O=k/2-j):I?(L=H+C.y-s.h+k,O=s.h-k/2-j):(L=H+C.y-s.h/2+k/2,O=s.h/2-$/2);else if(["top","bottom"].includes(h))if(e&&ye(l)){const t=v?e.layerX+(A?l.offsetLeft:0):e.pageX,n=v?e.layerY+(A?l.offsetTop:0):e.pageY;L="top"===h?n-s.h-(i?j:$):n+$,e.clientX-s.w/2=E?(P="auto",S=0,D=s.w-(E-t)-F):(P=t-s.w/2,D=s.w/2-F)}else L="top"===h?H+C.y-s.h-(i?$:0):H+C.y+k+(i?$:0),W?(P=0,D=N+x/2-F):R?(P="auto",S=0,M=x/2+(y.right-T.right)-F):(P=N+C.x-s.w/2+x/2,D=s.w/2-F);o.style.top=L+"px",o.style.left="auto"===P?P:P+"px",o.style.right=void 0!==S?S+"px":"",void 0!==O&&(d.style.top=O+"px"),void 0!==D?d.style.left=D+"px":void 0!==M&&(d.style.right=M+"px")}let Ee=1;function Ae(t,e){return Ee+=1,t[e]||Ee}function Te(t){const e=t.closest(".modal"),n=t.closest(".fixed-top,.fixed-bottom");return e||n||document.body}const Ce=`[${y}="popover"],[data-tip="popover"]`,xe={template:'',title:null,content:null,sanitizeFn:null,customClass:null,dismissible:!1,animation:!0,trigger:"hover",placement:"top",delay:200},ke=/(iPhone|iPod|iPad)/.test(navigator.userAgent);let He='';const Ne=d("show.bs.popover"),Le=d("shown.bs.popover"),Pe=d("hide.bs.popover"),Se=d("hidden.bs.popover");function Oe(){it(this)}function De({target:t}){const e=this,{popover:n,element:o}=e;n&&n.contains(t)||t===o||o.contains(t)||e.hide()}function Me(t,e){const n=e?c:"removeEventListener",{element:o,options:i}=t,{trigger:s,dismissible:a}=i;t.enabled=!!e,"hover"===s?(o[n]("mousedown",t.show),o[n]("mouseenter",t.show),ye(o)&&o[n]("mousemove",t.update,T),a||o[n]("mouseleave",t.hide)):"click"===s?o[n](s,t.toggle):"focus"===s&&(ke&&o[n]("click",Oe),o[n]("focusin",t.show))}function Be(t,e){const n=e?c:"removeEventListener",{options:o,element:i,popover:s}=t,{trigger:a,dismissible:r}=o;if(r){const[e]=s.getElementsByClassName("btn-close");e&&e[n]("click",t.hide)}else"focus"===a&&i[n]("focusout",t.hide),"hover"===a&&document[n]("touchstart",De,T);ye(i)||(window[n]("scroll",t.update,T),window[n]("resize",t.update,T))}function Ie(t){Be(t,1),t.element.dispatchEvent(Le)}function We(t){Be(t),function(t){const{element:e,popover:n,options:o}=t;e.removeAttribute("aria-describedby"),o.container.removeChild(n),t.timer=null}(t),t.element.dispatchEvent(Se)}class Re extends h{constructor(t,e){xe.container=Te(a(t)),super("Popover",t,xe,e);const{element:n}=this;this.timer=null,this.popover=null,this.arrow=null,this.enabled=!1,this.id="popover-"+Ae(n);const{options:o}=this;this.options.container=ye(n)?xe.container:a(o.container),xe.container=null,o.content&&(!function(t){const{id:e,options:n}=t,{animation:o,customClass:i,sanitizeFn:s,placement:l,dismissible:c}=n;let{title:d,content:u,template:h}=n;const p="bs-popover-"+ve[l];d=d?d.trim():null,u=u?u.trim():null,s&&(d=d?s(d):null,u=u?s(u):null,h=h?s(h):null,He=s(He)),t.popover=document.createElement("div");const{popover:m}=t;m.setAttribute("id",e),m.setAttribute("role","tooltip");const f=document.createElement("div");f.innerHTML=h.trim(),m.className=f.firstChild.className,m.innerHTML=f.firstChild.innerHTML;const g=a(".popover-header",m),v=a(".popover-body",m);t.arrow=a(".popover-arrow",m),c&&(d=d?d+He:d,u=null===d?+He:u),d&&g&&(g.innerHTML=d.trim()),u&&v&&(v.innerHTML=u.trim()),r(m,"popover")||b(m,"popover"),o&&!r(m,"fade")&&b(m,"fade"),i&&!r(m,i)&&b(m,i),r(m,p)||b(m,p)}(this),this.update=this.update.bind(this),Me(this,1))}update(t){we(this,t)}toggle(t){const e=t?this.Popover:this,{popover:n,options:o}=e;be(n,o.container)?e.hide():e.show()}show(t){const e=t?this.Popover:this,{element:n,popover:o,options:i,id:a}=e,{container:l}=i;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(!be(o,l)){if(n.dispatchEvent(Ne),Ne.defaultPrevented)return;l.appendChild(o),n.setAttribute("aria-describedby",a),e.update(t),r(o,"show")||b(o,"show"),i.animation?s(o,()=>Ie(e)):Ie(e)}},17)}hide(t){let e;if(t&&this.Popover)e=this.Popover;else if(t){const t=this.closest(".popover"),n=t&&a(`[aria-describedby="${t.id}"]`);e=n.Popover}else e=this;const{element:n,popover:o,options:i}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(be(o,i.container)){if(n.dispatchEvent(Pe),Pe.defaultPrevented)return;l(o,"show"),i.animation?s(o,()=>We(e)):We(e)}},i.delay+17)}enable(){const t=this,{enabled:e}=t;e||(Me(t,1),t.enabled=!e)}disable(){const t=this,{enabled:e,popover:n,options:o}=t;e&&(be(n,o.container)&&o.animation?(t.hide(),setTimeout(()=>Me(t),i(n)+o.delay+17)):Me(t),t.enabled=!e)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const t=this,{popover:e,options:n}=t,{container:o,animation:i}=n;i&&be(e,o)?(n.delay=0,t.hide(),s(e,()=>Me(t))):Me(t),super.dispose("Popover")}}Re.init={component:"Popover",selector:Ce,constructor:Re};const je={offset:10,target:null},$e=d("activate.bs.scrollspy");function Fe(t){const{target:e,scrollTarget:n,isWindow:o,options:i,itemsLength:s,scrollHeight:r}=t,{offset:l}=i,c=e.getElementsByTagName("A");if(t.scrollTop=o?n.pageYOffset:n.scrollTop,s!==c.length||ze(n)!==r){let e,i,s;t.items=[],t.offsets=[],t.scrollHeight=ze(n),t.maxScroll=t.scrollHeight-function({element:t,isWindow:e}){return e?window.innerHeight:t.getBoundingClientRect().height}(t),Array.from(c).forEach(n=>{e=n.getAttribute("href"),i=e&&"#"===e.charAt(0)&&"#"!==e.slice(-1)&&a(e),i&&(t.items.push(n),s=i.getBoundingClientRect(),t.offsets.push((o?s.top+t.scrollTop:i.offsetTop)-l))}),t.itemsLength=t.items.length}}function ze(t){return t.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}function qe(t){Array.from(t.getElementsByTagName("A")).forEach(t=>{r(t,"active")&&l(t,"active")})}function Xe(t,e){const{target:n,element:o}=t;qe(n),t.activeItem=e,b(e,"active");const i=[];let s=e;for(;s!==document.body;)s=s.parentNode,(r(s,"nav")||r(s,"dropdown-menu"))&&i.push(s);i.forEach(t=>{const e=t.previousElementSibling;e&&!r(e,"active")&&b(e,"active")}),$e.relatedTarget=e,o.dispatchEvent($e)}function Ye(t,e){const n=e?c:"removeEventListener";t.scrollTarget[n]("scroll",t.refresh,T)}class Ve extends h{constructor(t,e){super("ScrollSpy",t,je,e);const{element:n,options:o}=this;this.target=a(o.target),this.target&&(this.scrollTarget=n.clientHeight=o){const e=s[i-1];return void(a!==e&&Xe(t,e))}const{offsets:r}=t;if(a&&n0)return t.activeItem=null,void qe(e);s.forEach((e,o)=>{a!==e&&n>=r[o]&&(void 0===r[o+1]||n{e.style.height=tn+"px",C(e),s(e,()=>an(t))},50):n.isAnimating=!1,Ze.relatedTarget=en,Qe.dispatchEvent(Ze)}function ln(t){const{tabContent:e}=t;e&&(nn.style.float="left",_e.style.float="left",on=nn.scrollHeight),Ue.relatedTarget=en,Ke.relatedTarget=Qe,Qe.dispatchEvent(Ue),Ue.defaultPrevented||(b(_e,"active"),l(nn,"active"),e&&(tn=_e.scrollHeight,sn=tn===on,b(e,"collapsing"),e.style.height=on+"px",C(e),nn.style.float="",_e.style.float=""),r(_e,"fade")?setTimeout(()=>{b(_e,"show"),s(_e,()=>{rn(t)})},20):rn(t),en.dispatchEvent(Ke))}function cn({nav:t}){const e=t.getElementsByClassName("active");return 1!==e.length||nt.some(t=>r(e[0].parentNode,t))?e.length>1&&(en=e[e.length-1]):[en]=e,en}function dn(t){return a(cn(t).getAttribute("href"))}function un(t,e){const n=e?c:"removeEventListener";t.element[n]("click",hn)}function hn(t){const e=this.Tab;t.preventDefault(),e.nav.isAnimating||e.show()}class pn extends h{constructor(t){super("Tab",t);const{element:n}=this;this.nav=n.closest(".nav");const{nav:o}=this;this.dropdown=o&&a(`.${nt[0]}-toggle`,o),nn=dn(this),this.tabContent=e&&nn.closest(".tab-content"),on=nn.scrollHeight,o.isAnimating=!1,un(this,1)}show(){const t=this,{element:e,nav:n,dropdown:o}=t;if(Qe=e,!r(Qe,"active")){if(_e=a(Qe.getAttribute("href")),en=cn({nav:n}),nn=dn({nav:n}),Je.relatedTarget=Qe,en.dispatchEvent(Je),Je.defaultPrevented)return;n.isAnimating=!0,l(en,"active"),en.setAttribute("aria-selected","false"),b(Qe,"active"),Qe.setAttribute("aria-selected","true"),o&&(r(e.parentNode,"dropdown-menu")?r(o,"active")||b(o,"active"):r(o,"active")&&l(o,"active")),r(nn,"fade")?(l(nn,"show"),s(nn,()=>ln(t))):ln(t)}}dispose(){un(this),super.dispose("Tab")}}pn.init={component:"Tab",selector:Ge,constructor:pn};const mn={animation:!0,autohide:!0,delay:500},fn=d("show.bs.toast"),gn=d("hide.bs.toast"),vn=d("shown.bs.toast"),bn=d("hidden.bs.toast");function yn(t){const{element:e,options:n}=t;n.animation||(l(e,"showing"),b(e,"show")),e.dispatchEvent(vn),n.autohide&&t.hide()}function wn(t){const{element:e}=t;b(e,"hide"),e.dispatchEvent(bn)}function En(t,e){const n=e?c:"removeEventListener";t.dismiss&&t.dismiss[n]("click",t.hide)}function An(t){clearTimeout(t.timer),En(t)}class Tn extends h{constructor(t,e){super("Toast",t,mn,e);this.dismiss=a('[data-bs-dismiss="toast"]',this.element),this.show=this.show.bind(this),this.hide=this.hide.bind(this),En(this,1)}show(){const t=this,{element:e}=t;if(e&&r(e,"hide")){if(e.dispatchEvent(fn),fn.defaultPrevented)return;b(e,"fade"),clearTimeout(t.timer),t.timer=setTimeout(()=>function(t){const{element:e,options:n}=t;l(e,"hide"),n.animation?(C(e),b(e,"showing"),b(e,"show"),s(e,()=>yn(t))):yn(t)}(t),10)}}hide(t){const e=this,{element:n,options:o}=e;if(n&&r(n,"show")){if(n.dispatchEvent(gn),gn.defaultPrevented)return;clearTimeout(e.timer),e.timer=setTimeout(function(t){const{element:e,options:n}=t;l(e,"show"),n.animation?(C(e),s(e,()=>wn(t))):wn(t)}(e),t?10:o.delay)}}dispose(){const t=this,{element:e,options:n}=t;t.hide(),n.animation?s(e,()=>An(t)):An(t),super.dispose("Toast")}}Tn.init={component:"Toast",selector:".toast",constructor:Tn};const Cn=`[${y}="tooltip"],[data-tip="tooltip"]`,xn={title:null,template:'',placement:"top",animation:!0,customClass:null,delay:200,sanitizeFn:null},kn=d("show.bs.tooltip"),Hn=d("shown.bs.tooltip"),Nn=d("hide.bs.tooltip"),Ln=d("hidden.bs.tooltip");function Pn(t){const{element:e}=t;Mn(t),e.hasAttribute("data-original-title")&&Bn(t)}function Sn(t,e){const n=e?c:"removeEventListener";document[n]("touchstart",In,T),ye(t.element)||(window[n]("scroll",t.update,T),window[n]("resize",t.update,T))}function On(t){Sn(t,1),t.element.dispatchEvent(Hn)}function Dn(t){Sn(t),function(t){const{element:e,options:n,tooltip:o}=t;e.removeAttribute("aria-describedby"),n.container.removeChild(o),t.timer=null}(t),t.element.dispatchEvent(Ln)}function Mn(t,e){const n=e?c:"removeEventListener",{element:o}=t;ye(o)&&o[n]("mousemove",t.update,T),o[n]("mousedown",t.show),o[n]("mouseenter",t.show),o[n]("mouseleave",t.hide)}function Bn(t,e){const n=["data-original-title","title"],{element:o}=t;o.setAttribute(n[e?0:1],e||o.getAttribute(n[0])),o.removeAttribute(n[e?1:0])}function In({target:t}){const{tooltip:e,element:n}=this;e.contains(t)||t===n||n.contains(t)||this.hide()}class Wn extends h{constructor(t,e){const n=a(t);xn.title=n.getAttribute("title"),xn.container=Te(n),super("Tooltip",n,xn,e);this.tooltip=null,this.arrow=null,this.timer=null,this.enabled=!1;const{options:o}=this;this.options.container=ye(n)?xn.container:a(o.container),xn.container=null,xn.title=null,o.title&&(In.bind(this),this.update=this.update.bind(this),n.hasAttribute("title")&&Bn(this,o.title),this.id="tooltip-"+Ae(n),function(t){const{options:e,id:n}=t,o="bs-tooltip-"+ve[e.placement];let i=e.title.trim();if(e.sanitizeFn&&(i=e.sanitizeFn(i),e.template=e.sanitizeFn(e.template)),!i)return;t.tooltip=document.createElement("div");const{tooltip:s}=t;s.setAttribute("id",n);const l=document.createElement("div");l.innerHTML=e.template.trim(),s.className=l.firstChild.className,s.innerHTML=l.firstChild.innerHTML,a(".tooltip-inner",s).innerHTML=i,t.arrow=a(".tooltip-arrow",s),s.setAttribute("role","tooltip"),r(s,"tooltip")||b(s,"tooltip"),e.animation&&!r(s,"fade")&&b(s,"fade"),e.customClass&&!r(s,e.customClass)&&b(s,e.customClass),r(s,o)||b(s,o)}(this),Mn(this,1))}show(t){const e=t?this.Tooltip:this,{options:n,tooltip:o,element:i,id:a}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(!be(o,n.container)){if(i.dispatchEvent(kn),kn.defaultPrevented)return;n.container.appendChild(o),i.setAttribute("aria-describedby",a),e.update(t),r(o,"show")||b(o,"show"),n.animation?s(o,()=>On(e)):On(e)}},20)}hide(t){const e=t?this.Tooltip:this,{options:n,tooltip:o,element:i}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(be(o,n.container)){if(i.dispatchEvent(Nn),Nn.defaultPrevented)return;l(o,"show"),n.animation?s(o,()=>Dn(e)):Dn(e)}},n.delay)}update(t){we(this,t)}toggle(){const{tooltip:t,options:e}=this;be(t,e.container)?this.hide():this.show()}enable(){const t=this,{enabled:e}=t;e||(Mn(t,1),t.enabled=!e)}disable(){const t=this,{tooltip:e,options:n,enabled:o}=t;o&&(!be(e,n.container)&&n.animation?(t.hide(),setTimeout(()=>Mn(t),i(e)+n.delay+17)):Mn(t),t.enabled=!o)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const t=this,{tooltip:e,options:n}=t;n.animation&&be(e,n.container)?(n.delay=0,t.hide(),s(e,()=>Pn(t))):Pn(t),super.dispose("Tooltip")}}Wn.init={component:"Tooltip",selector:Cn,constructor:Wn};const Rn={Alert:v.init,Button:A.init,Carousel:Y.init,Collapse:et.init,Dropdown:Ht.init,Modal:ee.init,Offcanvas:ge.init,Popover:Re.init,ScrollSpy:Ve.init,Tab:pn.init,Toast:Tn.init,Tooltip:Wn.init};function jn(t){const e=t instanceof Element?t:document;Object.keys(Rn).forEach(t=>{const{constructor:n,selector:o}=Rn[t];var i,s;i=n,s=e.querySelectorAll(o),Array.from(s).forEach(t=>new i(t))})}return document.body?jn():document.addEventListener("DOMContentLoaded",()=>jn(),{once:!0}),{Alert:v,Button:A,Carousel:Y,Collapse:et,Dropdown:Ht,Modal:ee,Offcanvas:ge,Popover:Re,ScrollSpy:Ve,Tab:pn,Toast:Tn,Tooltip:Wn,initCallback:jn,Version:"3.0.15"}})); +// Native JavaScript for Bootstrap v4.0.0 | 2021 © dnp_theme | MIT-License +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).BSN=e()}(this,(function(){"use strict";const t="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",e="webkitTransition"in document.head.style||"transition"in document.head.style,n="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",o="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty";function i(t){const i=getComputedStyle(t),s=i[o],a=i[n],r=a.includes("ms")?1:1e3,l=e&&s&&"none"!==s?parseFloat(a)*r:0;return Number.isNaN(l)?0:l}function s(e,n){let o=0;const s=new Event(t),a=i(e);a?(e.addEventListener(t,(function i(s){s.target===e&&(n.apply(e,[s]),e.removeEventListener(t,i),o=1)})),setTimeout(()=>{o||e.dispatchEvent(s)},a+17)):n.apply(e,[s])}function a(t,e){const n=e&&e instanceof Element?e:document;return t instanceof Element?t:n.querySelector(t)}function r(t,e){return t.classList.contains(e)}function l(t,e){t.classList.remove(e)}const c="addEventListener";function d(t,e){const n=new CustomEvent(t,{cancelable:!0});return e instanceof Object&&Object.keys(e).forEach(t=>{Object.defineProperty(n,t,{value:e[t]})}),n}function u(t){return"true"===t||"false"!==t&&(Number.isNaN(+t)?""===t||"null"===t?null:t:+t)}class h{constructor(t,e,n,o){const i=this,s=a(e);s[t]&&s[t].dispose(),i.element=s,n&&Object.keys(n).length&&(i.options=function(t,e,n,o){const i={},s={},a={...t.dataset};return Object.keys(a).forEach(t=>{const e=t.includes(o)?t.replace(o,"").replace(/[A-Z]/,t=>t.toLowerCase()):t;s[e]=u(a[t])}),Object.keys(n).forEach(t=>{n[t]=u(n[t])}),Object.keys(e).forEach(t=>{i[t]=t in n?n[t]:t in s?s[t]:e[t]}),i}(s,n,o||{},"bs")),s[t]=i}dispose(t){const e=this;e.element[t]=null,Object.keys(e).forEach(t=>{e[t]=null})}}const p=d("close.bs.alert"),m=d("closed.bs.alert");function f(t){const{element:e,relatedTarget:n}=t;g(t),n&&(m.relatedTarget=n),e.dispatchEvent(m),t.dispose(),e.parentNode.removeChild(e)}function g(t,e){const n=e?c:"removeEventListener";t.dismiss&&t.dismiss[n]("click",t.close)}class v extends h{constructor(t){super("Alert",t);const{element:e}=this;this.dismiss=a('[data-bs-dismiss="alert"]',e),this.relatedTarget=null,g(this,1)}close(t){const e=t?t.target:null,n=t?t.target.closest(".alert").Alert:this,{element:o}=n;if(n&&o&&r(o,"show")){if(e&&(p.relatedTarget=e,n.relatedTarget=e),o.dispatchEvent(p),p.defaultPrevented)return;l(o,"show"),r(o,"fade")?s(o,()=>f(n)):f(n)}}dispose(){g(this),super.dispose("Alert")}}function b(t,e){t.classList.add(e)}v.init={component:"Alert",selector:".alert",constructor:v};const y="data-bs-toggle",w=`[${y}="button"]`;function E(t,e){const n=e?c:"removeEventListener";t.element[n]("click",t.toggle)}class A extends h{constructor(t){super("Button",t);const{element:e}=this;this.isActive=r(e,"active"),e.setAttribute("aria-pressed",!!this.isActive),E(this,1)}toggle(t){t&&t.preventDefault();const e=t?this.Button:this,{element:n}=e;if(r(n,"disabled"))return;e.isActive=r(n,"active");const{isActive:o}=e,i=o?"false":"true";(o?l:b)(n,"active"),n.setAttribute("aria-pressed",i)}dispose(){E(this),super.dispose("Button")}}A.init={component:"Button",selector:w,constructor:A};var T=!!(()=>{let t=!1;try{const e=Object.defineProperty({},"passive",{get:()=>(t=!0,t)});document[c]("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){throw Error("Passive events are not supported")}return t})()&&{passive:!0};function C(t){return t.offsetHeight}function x(t){const e=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;return e.top<=n&&e.bottom>=0}const k='[data-bs-ride="carousel"]',H={pause:"hover",keyboard:!1,touch:!0,interval:5e3};let N=0,L=0,P=0;const S=d("slide.bs.carousel"),O=d("slid.bs.carousel");function D(t){const e=t.target.closest(k).Carousel,{element:n,isAnimating:o}=e;r(n,"paused")||(b(n,"paused"),o||(clearInterval(e.timer),e.timer=null))}function M(t){const e=t.target.closest(k).Carousel,{isPaused:n,isAnimating:o,element:i}=e;!n&&r(i,"paused")&&(l(i,"paused"),o||(clearInterval(e.timer),e.timer=null,e.cycle()))}function B(t){t.preventDefault();const{target:e}=t,n=e.closest(k).Carousel;if(n.isAnimating)return;const o=e.getAttribute("data-bs-slide-to");e&&!r(e,"active")&&o&&n.to(+o)}function I(t){t.preventDefault();const e=this.closest(k).Carousel,{controls:n}=e;n[1]&&this===n[1]?e.next():n[1]&&this===n[0]&&e.prev()}function W({which:t}){const[e]=Array.from(document.querySelectorAll(k)).filter(t=>x(t));if(!e)return;const n=e.Carousel;switch(t){case 39:n.next();break;case 37:n.prev()}}function R(t){const e=this.Carousel;e&&!e.isTouch&&(N=t.changedTouches[0].pageX,this.contains(t.target)&&(e.isTouch=!0,z(e,1)))}function j(t){const{changedTouches:e,type:n}=t,o=this.Carousel;o&&o.isTouch&&(L=e[0].pageX,"touchmove"===n&&e.length>1&&t.preventDefault())}function $(t){const e=this,n=e.Carousel;if(n&&n.isTouch&&(P=L||t.changedTouches[0].pageX,n.isTouch)){if((!e.contains(t.target)||!e.contains(t.relatedTarget))&&Math.abs(N-P)<75)return;LN&&(n.index-=1),n.isTouch=!1,n.to(n.index),z(n)}}function F(t,e){const{indicators:n}=t;Array.from(n).forEach(t=>l(t,"active")),t.indicators[e]&&b(n[e],"active")}function z(t,e){const{element:n}=t,o=e?c:"removeEventListener";n[o]("touchmove",j,T),n[o]("touchend",$,T)}function q(t,e){const{element:n,options:o,slides:i,controls:s,indicator:a}=t,{touch:r,pause:l,interval:d,keyboard:u}=o,h=e?c:"removeEventListener";l&&d&&(n[h]("mouseenter",D),n[h]("mouseleave",M),n[h]("touchstart",D,T),n[h]("touchend",M,T)),r&&i.length>1&&n[h]("touchstart",R,T),s.forEach(t=>{t&&t[h]("click",I)}),a&&a[h]("click",B),u&&window[h]("keydown",W)}function X(t){const{slides:e,element:n}=t;return Array.from(e).indexOf(n.getElementsByClassName("carousel-item active")[0])||0}class Y extends h{constructor(t,e){super("Carousel",t,H,e);const n=this;n.timer=null,n.direction="left",n.isPaused=!1,n.isAnimating=!1,n.index=0,n.timer=null,n.isTouch=!1;const{element:o}=n;n.slides=o.getElementsByClassName("carousel-item");const{slides:i}=n;if(i.length<2)return;n.controls=[a(".carousel-control-prev",o),a(".carousel-control-next",o)],n.indicator=a(".carousel-indicators",o),n.indicators=n.indicator&&n.indicator.querySelectorAll("[data-bs-slide-to]")||[];const{options:s}=n;n.options.interval=!0===s.interval?H.interval:s.interval,X(n)<0&&(i.length&&b(i[0],"active"),n.indicators.length&&F(n,0)),q(n,1),s.interval&&n.cycle()}cycle(){const t=this,{isPaused:e,element:n,options:o}=t;t.timer&&(clearInterval(t.timer),t.timer=null),e&&(l(n,"paused"),t.isPaused=!e),t.timer=setInterval(()=>{x(n)&&(t.index+=1,t.to(t.index))},o.interval)}pause(){const t=this,{element:e,options:n,isPaused:o}=t;n.interval&&!o&&(clearInterval(t.timer),t.timer=null,b(e,"paused"),t.isPaused=!o)}next(){const t=this;t.isAnimating||(t.index+=1,t.to(t.index))}prev(){const t=this;t.isAnimating||(t.index-=1,t.to(t.index))}to(t){const e=this,{element:n,isAnimating:o,slides:a,options:c}=e,d=X(e);let u=t;if(o||d===u)return;du||d===a.length-1&&0===u)&&(e.direction="right");const{direction:h}=e;u<0?u=a.length-1:u>=a.length&&(u=0);const p="left"===h?"next":"prev",m="left"===h?"start":"end",f={relatedTarget:a[u],direction:h,from:d,to:u};Object.keys(f).forEach(t=>{S[t]=f[t],O[t]=f[t]}),n.dispatchEvent(S),S.defaultPrevented||(e.index=u,clearInterval(e.timer),e.timer=null,e.isAnimating=!0,F(e,u),i(a[u])&&r(n,"slide")?(b(a[u],"carousel-item-"+p),C(a[u]),b(a[u],"carousel-item-"+m),b(a[d],"carousel-item-"+m),s(a[u],()=>function(t){const{index:e,direction:n,element:o,slides:i,options:s,isAnimating:a}=t;if(a&&o.Carousel){const a=X(t),c="left"===n?"next":"prev",d="left"===n?"start":"end";t.isAnimating=!1,b(i[e],"active"),l(i[a],"active"),l(i[e],"carousel-item-"+c),l(i[e],"carousel-item-"+d),l(i[a],"carousel-item-"+d),o.dispatchEvent(O),document.hidden||!s.interval||r(o,"paused")||t.cycle()}}(e))):(b(a[u],"active"),l(a[d],"active"),setTimeout(()=>{e.isAnimating=!1,n&&c.interval&&!r(n,"paused")&&e.cycle(),n.dispatchEvent(O)},100)))}dispose(){const t=this,{slides:e}=t,n=["start","end","prev","next"];Array.from(e).forEach((e,o)=>{r(e,"active")&&F(t,o),n.forEach(t=>l(e,"carousel-item-"+t))}),q(t),clearInterval(t.timer),super.dispose("Carousel")}}Y.init={component:"Carousel",selector:k,constructor:Y};function V(t){return a(t.getAttribute("data-bs-target")||t.getAttribute("href"))||t.closest(t.getAttribute("data-bs-parent"))||a(t.getAttribute("data-bs-container"))}const G=`[${y}="collapse"]`,U=d("show.bs.collapse"),Z=d("shown.bs.collapse"),J=d("hide.bs.collapse"),K=d("hidden.bs.collapse");function Q(t){const{element:e,parent:n,triggers:o}=t;e.dispatchEvent(J),J.defaultPrevented||(t.isAnimating=!0,n&&(n.isAnimating=!0),e.style.height=e.scrollHeight+"px",l(e,"collapse"),l(e,"show"),b(e,"collapsing"),C(e),e.style.height="0px",s(e,()=>{t.isAnimating=!1,n&&(n.isAnimating=!1),o.forEach(t=>t.setAttribute("aria-expanded","false")),l(e,"collapsing"),b(e,"collapse"),e.style.height="",e.dispatchEvent(K)}))}function _(t,e){const n=e?c:"removeEventListener",{triggers:o}=t;o.length&&o.forEach(t=>t[n]("click",tt))}function tt(t){const{target:e}=t,n=e.closest(G),o=V(n),i=o&&o.Collapse;i&&i.toggle(e),n&&"A"===n.tagName&&t.preventDefault()}class et extends h{constructor(t,e){super("Collapse",t,{parent:null},e);const{element:n}=this;this.triggers=Array.from(document.querySelectorAll(G)).filter(t=>V(t)===n),this.parent=a(this.options.parent);const{parent:o}=this;this.isAnimating=!1,o&&(o.isAnimating=!1),_(this,1)}toggle(t){r(this.element,"show")?this.hide(t):this.show(t)}hide(){const{triggers:t,isAnimating:e}=this;e||(Q(this),t.length&&t.forEach(t=>b(t,"collapsed")))}show(){const t=this,{element:e,parent:n,triggers:o,isAnimating:i}=t;let a,r;n&&(a=Array.from(n.querySelectorAll(".collapse.show")).find(t=>t.Collapse),r=a&&a.Collapse),n&&(!n||n.isAnimating)||i||(r&&a!==e&&(Q(r),r.triggers.forEach(t=>{b(t,"collapsed")})),function(t){const{element:e,parent:n,triggers:o}=t;e.dispatchEvent(U),U.defaultPrevented||(t.isAnimating=!0,n&&(n.isAnimating=!0),b(e,"collapsing"),l(e,"collapse"),e.style.height=e.scrollHeight+"px",s(e,()=>{t.isAnimating=!1,n&&(n.isAnimating=!1),o.forEach(t=>t.setAttribute("aria-expanded","true")),l(e,"collapsing"),b(e,"collapse"),b(e,"show"),e.style.height="",e.dispatchEvent(Z)}))}(t),o.length&&o.forEach(t=>l(t,"collapsed")))}dispose(){const{parent:t}=this;_(this),t&&delete t.isAnimating,super.dispose("Collapse")}}et.init={component:"Collapse",selector:".collapse",constructor:et};const nt=["dropdown","dropup","dropstart","dropend"];function ot(t){const e=t.closest("A");return t&&(t.href&&"#"===t.href.slice(-1)||e&&e.href&&"#"===e.href.slice(-1))}function it(t){t.focus()}const[st]=nt,at=`[${y}="${st}"]`,rt=nt[1],lt=nt[2],ct=nt[3],dt=["d-block","invisible"],ut=[st,rt],ht=[lt,ct],pt={offset:5,display:"dynamic"},mt=d("show.bs."+st),ft=d("shown.bs."+st),gt=d("hide.bs."+st),vt=d("hidden.bs."+st);function bt(t,e){const{element:n,menu:o,originalClass:i,menuEnd:s,options:a}=t,c=n.parentElement;if(["margin","top","bottom","left","right"].forEach(t=>{o.style[t]=""}),l(c,"position-static"),!e){c.className=i.join(" ");return void(s&&!r(o,"dropdown-menu-end")?b:l)(o,"dropdown-menu-end")}const{offset:d}=a;let u=nt.find(t=>i.includes(t)),h={dropdown:[d,0,0],dropup:[0,0,d],dropstart:[-1,d,0],dropend:[-1,0,0,d]};const p={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:{left:"auto",right:"100%"},dropend:{left:"100%",right:"auto"},menuEnd:{right:0,left:"auto"}};dt.forEach(t=>b(o,t));const m=new RegExp(`\\b(${st}|${rt}|${lt}|${ct})+`),f=n.offsetWidth,g=n.offsetHeight,v=o.offsetWidth,y=o.offsetHeight,w=document.documentElement,E=document.body,A=w.clientWidth||E.clientWidth,T=w.clientHeight||E.clientHeight,C=n.getBoundingClientRect(),x=C.left+f-v<0,k=C.left-v<0,H=C.left+v>=A,N=C.left+v+f>=A,L=C.top+y>=T,P=C.top+y+g>=T,S=C.top-y<0,O=c.parentNode.closest(".btn-group,.btn-group-vertical");if(ht.includes(u)&&k&&N&&(u=st),ht.includes(u)&&L&&(u=rt),u===lt&&k&&!L&&(u=ct),u===ct&&N&&!L&&(u=lt),u===rt&&S&&!P&&(u=st),u===st&&P&&!S&&(u=rt),h=h[u],o.style.margin=""+h.map(t=>t?t+"px":t).join(" "),Object.keys(p[u]).forEach(t=>{o.style[t]=p[u][t]}),r(c,u)||(c.className=c.className.replace(m,u)),ut.includes(u)){const t=H?b:l;O?x&&b(c,"position-static"):t(o,"dropdown-menu-end"),r(o,"dropdown-menu-end")&&Object.keys(p.menuEnd).forEach(t=>{o.style[t]=p.menuEnd[t]})}dt.forEach(t=>l(o,t))}function yt(t){const e=t.open?c:"removeEventListener";document[e]("click",At),document[e]("focus",At),document[e]("keydown",Ct),document[e]("keyup",xt),"dynamic"===t.options.display&&(window[e]("scroll",kt,T),window[e]("resize",kt,T))}function wt(t,e){const n=e?c:"removeEventListener";t.element[n]("click",Tt)}function Et(){const t=nt.map(t=>document.getElementsByClassName(t+" show")).find(t=>t.length);return t&&t.length?Array.from(t[0].children).find(t=>t.hasAttribute(y)):null}function At(t){const{target:e,type:n}=t;if(!e.closest)return;const o=Et(),i=o&&o.parentNode,s=o&&o.Dropdown,a=s&&s.menu,r=null!==e.closest(at),l=i&&i.contains(e)&&("form"===e.tagName||null!==e.closest("form"));"click"===n&&ot(e)&&t.preventDefault(),("focus"!==n||e!==o&&e!==a&&!a.contains(e))&&(l||r||s&&s.hide(o))}function Tt(t){this.Dropdown.toggle(this),ot(t.target)&&t.preventDefault()}function Ct(t){38!==t.which&&40!==t.which||t.preventDefault()}function xt({which:t}){const e=Et(),n=e.Dropdown,{menu:o,menuItems:i,open:s}=n,a=document.activeElement,r=a===e,l=o.contains(a),c=a.parentNode===o||a.parentNode.parentNode===o;let d=i.indexOf(a);c&&(r?d=0:38===t?d=d>1?d-1:0:40===t&&(d=d{t.children.length&&"A"===t.children[0].tagName&&n.menuItems.push(t.children[0]),"A"===t.tagName&&n.menuItems.push(t)}),n.open=!1,wt(n,1)}toggle(t){const{open:e}=this;e?this.hide(t):this.show(t)}show(t){const e=this,n=a(nt.map(t=>`.${t}.show`).join(",")),o=n&&a(at,n);o&&o.Dropdown.hide();const{element:i,menu:s,open:r}=e,l=i.parentNode;mt.relatedTarget=t||null,l.dispatchEvent(mt),mt.defaultPrevented||(bt(e,1),b(s,"show"),b(l,"show"),i.setAttribute("aria-expanded",!0),e.open=!r,setTimeout(()=>{it(s.getElementsByTagName("INPUT")[0]||i),yt(e),ft.relatedTarget=t||null,l.dispatchEvent(ft)},1))}hide(t){const e=this,{element:n,menu:o,open:i}=e,s=n.parentNode;gt.relatedTarget=t||null,s.dispatchEvent(gt),gt.defaultPrevented||(l(o,"show"),l(s,"show"),bt(e),n.setAttribute("aria-expanded",!1),e.open=!i,it(n),setTimeout(()=>yt(e),1),vt.relatedTarget=t||null,s.dispatchEvent(vt))}dispose(){const{element:t}=this;r(t.parentNode,"show")&&this.open&&this.hide(),wt(this),super.dispose("Dropdown")}}Ht.init={component:"Dropdown",selector:at,constructor:Ht};const Nt=Array.from(document.getElementsByClassName("fixed-top")).concat(Array.from(document.getElementsByClassName("fixed-bottom"))).concat(Array.from(document.getElementsByClassName("sticky-top"))).concat(Array.from(document.getElementsByClassName("is-fixed")));function Lt(){const t=document.body;t.style.paddingRight="",t.style.overflow="",Nt.length&&Nt.forEach(t=>{t.style.paddingRight="",t.style.marginRight=""})}function Pt(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function St(t,e,n){const o=document.body,i=parseInt(getComputedStyle(o).paddingRight,10),s=n&&i?0:t;e&&(o.style.paddingRight=i+s+"px",Nt.length&&Nt.forEach(t=>{const e=r(t,"sticky-top"),n=getComputedStyle(t).paddingRight;if(t.style.paddingRight=parseInt(n,10)+s+"px",e){const e=getComputedStyle(t).marginRight;t.style.marginRight=parseInt(e,10)-s+"px"}}))}const Ot=document.createElement("div");function Dt(){return a(".modal.show,.offcanvas.show")}function Mt(t){document.body.appendChild(Ot),t&&b(Ot,"fade")}function Bt(){b(Ot,"show"),C(Ot)}function It(){l(Ot,"show")}function Wt(){const t=document.body;Dt()||(l(Ot,"fade"),l(t,"modal-open"),t.removeChild(Ot),Lt())}function Rt(t){return"hidden"!==getComputedStyle(t).visibility&&null!==t.offsetParent}Ot.setAttribute("class","modal-backdrop");const jt=`[${y}="modal"]`,$t={backdrop:!0,keyboard:!0},Ft=d("show.bs.modal"),zt=d("shown.bs.modal"),qt=d("hide.bs.modal"),Xt=d("hidden.bs.modal");function Yt(t){const{element:e,scrollbarWidth:n}=t,o=document.body,i=document.documentElement,s=r(o,"modal-open"),a=i.clientHeight!==i.scrollHeight||o.clientHeight!==o.scrollHeight,l=e.clientHeight!==e.scrollHeight;!l&&n&&(e.style.paddingRight=n+"px"),St(n,l||a,s)}function Vt(t,e){const n=e?c:"removeEventListener";window[n]("resize",t.update,T),t.element[n]("click",te),document[n]("keydown",_t)}function Gt(t,e){const n=e?c:"removeEventListener",{triggers:o}=t;o.length&&o.forEach(t=>t[n]("click",Qt))}function Ut(t){const{triggers:e}=t;if(Wt(),t.element.style.paddingRight="",t.isAnimating=!1,e.length){const t=e.find(t=>Rt(t));t&&it(t)}}function Zt(t){const{element:e,relatedTarget:n}=t;it(e),t.isAnimating=!1,Vt(t,1),zt.relatedTarget=n,e.dispatchEvent(zt)}function Jt(t){const{element:e,hasFade:n}=t;e.style.display="block",Yt(t),a(".modal.show")||b(document.body,"modal-open"),b(e,"show"),e.removeAttribute("aria-hidden"),e.setAttribute("aria-modal",!0),n?s(e,()=>Zt(t)):Zt(t)}function Kt(t,e){const{element:n,relatedTarget:o,hasFade:i}=t,a=Dt();n.style.display="",!e&&i&&r(Ot,"show")&&!a?(It(),s(Ot,()=>Ut(t))):Ut(t),Vt(t),Xt.relatedTarget=o,n.dispatchEvent(Xt)}function Qt(t){const{target:e}=t,n=e.closest(jt),o=V(n),i=o&&o.Modal;"A"===n.tagName&&t.preventDefault(),i.isAnimating||(i.relatedTarget=n,i.toggle())}function _t({which:t}){const e=a(".modal.show"),n=e.Modal,{options:o,isAnimating:i}=n;!i&&o.keyboard&&27===t&&r(e,"show")&&(n.relatedTarget=null,n.hide())}function te(t){const e=this,n=e.Modal;if(n.isAnimating)return;const{isStatic:o,modalDialog:a}=n,{target:r}=t,c=document.getSelection().toString().length,d=a.contains(r),u=r.closest('[data-bs-dismiss="modal"]');o&&!d?(b(e,"modal-static"),n.isAnimating=!0,s(a,()=>function(t){const e=i(t.modalDialog)+17;l(t.element,"modal-static"),setTimeout(()=>{t.isAnimating=!1},e)}(n))):!u&&(c||o||d)||(n.relatedTarget=u||null,n.hide(),t.preventDefault())}class ee extends h{constructor(t,e){super("Modal",t,$t,e);const{element:n}=this;this.modalDialog=a(".modal-dialog",n),this.triggers=Array.from(document.querySelectorAll(jt)).filter(t=>V(t)===n),this.isStatic="static"===this.options.backdrop,this.hasFade=r(n,"fade"),this.isAnimating=!1,this.scrollbarWidth=Pt(),this.relatedTarget=null,Gt(this,1),this.update=this.update.bind(this)}toggle(){r(this.element,"show")?this.hide():this.show()}show(){const t=this,{element:e,isAnimating:n,hasFade:o,relatedTarget:s}=t;let l=0;if(r(e,"show")&&!n)return;if(Ft.relatedTarget=s||null,e.dispatchEvent(Ft),Ft.defaultPrevented)return;t.isAnimating=!0;const c=Dt();if(c&&c!==e){(c.Modal?c.Modal:c.Offcanvas).hide()}a(".modal-backdrop")||Mt(o),l=i(Ot),r(Ot,"show")||Bt(),c?Jt(t):setTimeout(()=>Jt(t),l)}hide(t){const e=this,{element:n,isAnimating:o,hasFade:i,relatedTarget:a}=e;(r(n,"show")||o)&&(qt.relatedTarget=a||null,n.dispatchEvent(qt),qt.defaultPrevented||(e.isAnimating=!0,l(n,"show"),n.setAttribute("aria-hidden",!0),n.removeAttribute("aria-modal"),i&&1!==t?s(n,()=>Kt(e)):Kt(e,t)))}update(){r(this.element,"show")&&Yt(this)}dispose(){this.hide(1),Gt(this),super.dispose("Modal")}}ee.init={component:"Modal",selector:".modal",constructor:ee};const ne=`[${y}="offcanvas"]`,oe={backdrop:!0,keyboard:!0,scroll:!1},ie=d("show.bs.offcanvas"),se=d("shown.bs.offcanvas"),ae=d("hide.bs.offcanvas"),re=d("hidden.bs.offcanvas");function le(t,e){const n=e?c:"removeEventListener";t.triggers.forEach(t=>t[n]("click",he))}function ce(t){const e=t?c:"removeEventListener";document[e]("keydown",me),document[e]("click",pe)}function de(t){const{element:e,options:n}=t;n.scroll||(b(document.body,"modal-open"),function(t){const e=document.body,n=document.documentElement,o=r(e,"modal-open"),i=n.clientHeight!==n.scrollHeight||e.clientHeight!==e.scrollHeight;St(t.scrollbarWidth,i,o)}(t)),b(e,"offcanvas-toggling"),b(e,"show"),e.style.visibility="visible",s(e,()=>function(t){const{element:e,triggers:n,relatedTarget:o}=t;l(e,"offcanvas-toggling"),e.removeAttribute("aria-hidden"),e.setAttribute("aria-modal",!0),e.setAttribute("role","dialog"),t.isAnimating=!1,n.length&&n.forEach(t=>t.setAttribute("aria-expanded",!0));se.relatedTarget=o||null,e.dispatchEvent(se),ce(1),it(e)}(t))}function ue(t){const{element:e,options:n}=t,o=Dt();e.blur(),!o&&n.backdrop&&r(Ot,"show")?(It(),s(Ot,()=>fe(t))):fe(t)}function he(t){const e=this.closest(ne),n=V(e),o=n&&n.Offcanvas;"A"===e.tagName&&t.preventDefault(),o&&(o.relatedTarget=e,o.toggle())}function pe(t){const e=a(".offcanvas.show");if(!e)return;const n=a('[data-bs-dismiss="offcanvas"]',e),o=e.Offcanvas;if(!o)return;const{options:i,open:s,triggers:r}=o,{target:l}=t,c=l.closest(ne);c&&"A"===c.tagName&&t.preventDefault(),s&&(!e.contains(l)&&i.backdrop&&(!c||c&&!r.includes(c))||n.contains(l))&&(o.relatedTarget=l===n?n:null,o.hide())}function me({which:t}){const e=a(".offcanvas.show");if(!e)return;const n=e.Offcanvas;n&&n.options.keyboard&&27===t&&(n.relatedTarget=null,n.hide())}function fe(t){const{element:e,options:n,relatedTarget:o,triggers:i}=t,s=Dt();if(e.setAttribute("aria-hidden",!0),e.removeAttribute("aria-modal"),e.removeAttribute("role"),e.style.visibility="",t.open=!1,t.isAnimating=!1,i.length){i.forEach(t=>t.setAttribute("aria-expanded",!1));const t=i.find(t=>Rt(t));t&&it(t)}s||(n.backdrop&&Wt(),n.scroll||(Lt(),l(document.body,"modal-open"))),re.relatedTarget=o||null,e.dispatchEvent(re),l(e,"offcanvas-toggling"),ce()}class ge extends h{constructor(t,e){super("Offcanvas",t,oe,e);const{element:n}=this;this.triggers=Array.from(document.querySelectorAll(ne)).filter(t=>V(t)===n),this.open=!1,this.isAnimating=!1,this.scrollbarWidth=Pt(),le(this,1)}toggle(){return this.open?this.hide():this.show()}show(){const t=this.Offcanvas?this.Offcanvas:this,{element:e,options:n,isAnimating:o,relatedTarget:s}=t;let l=0;if(t.open||o)return;if(ie.relatedTarget=s||null,e.dispatchEvent(ie),ie.defaultPrevented)return;const c=Dt();if(c&&c!==e){(c.Offcanvas?c.Offcanvas:c.Modal).hide()}t.open=!0,t.isAnimating=!0,n.backdrop?(a(".modal-backdrop")||Mt(1),l=i(Ot),r(Ot,"show")||Bt(),setTimeout(()=>de(t),l)):de(t)}hide(t){const e=this,{element:n,isAnimating:o,relatedTarget:i}=e;e.open&&!o&&(ae.relatedTarget=i||null,n.dispatchEvent(ae),ae.defaultPrevented||(e.isAnimating=!0,b(n,"offcanvas-toggling"),l(n,"show"),t?ue(e):s(n,()=>ue(e))))}dispose(){this.hide(1),le(this),super.dispose("Offcanvas")}}ge.init={component:"Offcanvas",selector:".offcanvas",constructor:ge};var ve={top:"top",bottom:"bottom",left:"start",right:"end"};function be(t,e){return e.contains(t)}function ye(t){return[SVGElement,HTMLImageElement,HTMLVideoElement].some(e=>t instanceof e)}function we(t,e){const n=/\b(top|bottom|start|end)+/,o=t.tooltip||t.popover;o.style.top="",o.style.left="",o.style.right="";const i=!!t.popover;let s={w:o.offsetWidth,h:o.offsetHeight};const a=document.documentElement.clientWidth||document.body.clientWidth,r=document.documentElement.clientHeight||document.body.clientHeight,{element:l,options:c,arrow:d}=t;let{container:u,placement:h}=c,p=u===document.body;const m=getComputedStyle(l).position,f=getComputedStyle(u).position,g=!p&&"static"===f;let v=!p&&"relative"===f;const b=g&&function(t){let e=null,n=t;for(;n!==document.body;)if(n=n.parentElement,"relative"===getComputedStyle(n).position){e=n;break}return e}(u);u=b||u,v=g&&b?1:v,p=u===document.body;const y=u.getBoundingClientRect(),w=v?y.left:0,E=v?y.right:a,A="absolute"===m,T=l.getBoundingClientRect(),C=p?{x:window.pageXOffset,y:window.pageYOffset}:{x:u.scrollLeft,y:u.scrollTop},x=l.offsetWidth,k=l.offsetHeight,H=v?l.offsetTop:T.top,N=v?l.offsetLeft:T.left;let L,P,S,O,D,M;d.style.top="",d.style.left="",d.style.right="";let B=T.top-s.h<0,I=T.top+s.h+k>=r,W=T.left-s.w=E;B=["left","right"].includes(h)?T.top+k/2-s.h/2<0:B,I=["left","right"].includes(h)?T.top+s.h/2+k/2>=r:I,W=["top","bottom"].includes(h)?T.left+x/2-s.w/2=E:R,h=["left","right"].includes(h)&&W&&R?"top":h,h="top"===h&&B?"bottom":h,h="bottom"===h&&I?"top":h,h="left"===h&&W?"right":h,h="right"===h&&R?"left":h,o.className.includes(h)||(o.className=o.className.replace(n,ve[h])),s={w:o.offsetWidth,h:o.offsetHeight};const j=d.offsetWidth||0,$=d.offsetHeight||0,F=j/2;if(["left","right"].includes(h))P="left"===h?N+C.x-s.w-(i?j:0):N+C.x+x+(i?j:0),B?(L=H+C.y,O=k/2-j):I?(L=H+C.y-s.h+k,O=s.h-k/2-j):(L=H+C.y-s.h/2+k/2,O=s.h/2-$/2);else if(["top","bottom"].includes(h))if(e&&ye(l)){const t=v?e.layerX+(A?l.offsetLeft:0):e.pageX,n=v?e.layerY+(A?l.offsetTop:0):e.pageY;L="top"===h?n-s.h-(i?j:$):n+$,e.clientX-s.w/2=E?(P="auto",S=0,D=s.w-(E-t)-F):(P=t-s.w/2,D=s.w/2-F)}else L="top"===h?H+C.y-s.h-(i?$:0):H+C.y+k+(i?$:0),W?(P=0,D=N+x/2-F):R?(P="auto",S=0,M=x/2+(y.right-T.right)-F):(P=N+C.x-s.w/2+x/2,D=s.w/2-F);o.style.top=L+"px",o.style.left="auto"===P?P:P+"px",o.style.right=void 0!==S?S+"px":"",void 0!==O&&(d.style.top=O+"px"),void 0!==D?d.style.left=D+"px":void 0!==M&&(d.style.right=M+"px")}let Ee=1;function Ae(t,e){return Ee+=1,t[e]||Ee}function Te(t){const e=t.closest(".modal"),n=t.closest(".fixed-top,.fixed-bottom");return e||n||document.body}const Ce=`[${y}="popover"],[data-tip="popover"]`,xe={template:'',title:null,content:null,sanitizeFn:null,customClass:null,dismissible:!1,animation:!0,trigger:"hover",placement:"top",delay:200},ke=/(iPhone|iPod|iPad)/.test(navigator.userAgent);let He='';const Ne=d("show.bs.popover"),Le=d("shown.bs.popover"),Pe=d("hide.bs.popover"),Se=d("hidden.bs.popover");function Oe(){it(this)}function De({target:t}){const e=this,{popover:n,element:o}=e;n&&n.contains(t)||t===o||o.contains(t)||e.hide()}function Me(t,e){const n=e?c:"removeEventListener",{element:o,options:i}=t,{trigger:s,dismissible:a}=i;t.enabled=!!e,"hover"===s?(o[n]("mousedown",t.show),o[n]("mouseenter",t.show),ye(o)&&o[n]("mousemove",t.update,T),a||o[n]("mouseleave",t.hide)):"click"===s?o[n](s,t.toggle):"focus"===s&&(ke&&o[n]("click",Oe),o[n]("focusin",t.show))}function Be(t,e){const n=e?c:"removeEventListener",{options:o,element:i,popover:s}=t,{trigger:a,dismissible:r}=o;if(r){const[e]=s.getElementsByClassName("btn-close");e&&e[n]("click",t.hide)}else"focus"===a&&i[n]("focusout",t.hide),"hover"===a&&document[n]("touchstart",De,T);ye(i)||(window[n]("scroll",t.update,T),window[n]("resize",t.update,T))}function Ie(t){Be(t,1),t.element.dispatchEvent(Le)}function We(t){Be(t),function(t){const{element:e,popover:n,options:o}=t;e.removeAttribute("aria-describedby"),o.container.removeChild(n),t.timer=null}(t),t.element.dispatchEvent(Se)}class Re extends h{constructor(t,e){xe.container=Te(a(t)),super("Popover",t,xe,e);const{element:n}=this;this.timer=null,this.popover=null,this.arrow=null,this.enabled=!1,this.id="popover-"+Ae(n);const{options:o}=this;this.options.container=ye(n)?xe.container:a(o.container),xe.container=null,o.content&&(!function(t){const{id:e,options:n}=t,{animation:o,customClass:i,sanitizeFn:s,placement:l,dismissible:c}=n;let{title:d,content:u,template:h}=n;const p="bs-popover-"+ve[l];d=d?d.trim():null,u=u?u.trim():null,s&&(d=d?s(d):null,u=u?s(u):null,h=h?s(h):null,He=s(He)),t.popover=document.createElement("div");const{popover:m}=t;m.setAttribute("id",e),m.setAttribute("role","tooltip");const f=document.createElement("div");f.innerHTML=h.trim(),m.className=f.firstChild.className,m.innerHTML=f.firstChild.innerHTML;const g=a(".popover-header",m),v=a(".popover-body",m);t.arrow=a(".popover-arrow",m),c&&(d=d?d+He:d,u=null===d?+He:u),d&&g&&(g.innerHTML=d.trim()),u&&v&&(v.innerHTML=u.trim()),r(m,"popover")||b(m,"popover"),o&&!r(m,"fade")&&b(m,"fade"),i&&!r(m,i)&&b(m,i),r(m,p)||b(m,p)}(this),this.update=this.update.bind(this),Me(this,1))}update(t){we(this,t)}toggle(t){const e=t?this.Popover:this,{popover:n,options:o}=e;be(n,o.container)?e.hide():e.show()}show(t){const e=t?this.Popover:this,{element:n,popover:o,options:i,id:a}=e,{container:l}=i;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(!be(o,l)){if(n.dispatchEvent(Ne),Ne.defaultPrevented)return;l.appendChild(o),n.setAttribute("aria-describedby",a),e.update(t),r(o,"show")||b(o,"show"),i.animation?s(o,()=>Ie(e)):Ie(e)}},17)}hide(t){let e;if(t&&this.Popover)e=this.Popover;else if(t){const t=this.closest(".popover"),n=t&&a(`[aria-describedby="${t.id}"]`);e=n.Popover}else e=this;const{element:n,popover:o,options:i}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(be(o,i.container)){if(n.dispatchEvent(Pe),Pe.defaultPrevented)return;l(o,"show"),i.animation?s(o,()=>We(e)):We(e)}},i.delay+17)}enable(){const t=this,{enabled:e}=t;e||(Me(t,1),t.enabled=!e)}disable(){const t=this,{enabled:e,popover:n,options:o}=t;e&&(be(n,o.container)&&o.animation?(t.hide(),setTimeout(()=>Me(t),i(n)+o.delay+17)):Me(t),t.enabled=!e)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const t=this,{popover:e,options:n}=t,{container:o,animation:i}=n;i&&be(e,o)?(n.delay=0,t.hide(),s(e,()=>Me(t))):Me(t),super.dispose("Popover")}}Re.init={component:"Popover",selector:Ce,constructor:Re};const je={offset:10,target:null},$e=d("activate.bs.scrollspy");function Fe(t){const{target:e,scrollTarget:n,isWindow:o,options:i,itemsLength:s,scrollHeight:r}=t,{offset:l}=i,c=e.getElementsByTagName("A");if(t.scrollTop=o?n.pageYOffset:n.scrollTop,s!==c.length||ze(n)!==r){let e,i,s;t.items=[],t.offsets=[],t.scrollHeight=ze(n),t.maxScroll=t.scrollHeight-function({element:t,isWindow:e}){return e?window.innerHeight:t.getBoundingClientRect().height}(t),Array.from(c).forEach(n=>{e=n.getAttribute("href"),i=e&&"#"===e.charAt(0)&&"#"!==e.slice(-1)&&a(e),i&&(t.items.push(n),s=i.getBoundingClientRect(),t.offsets.push((o?s.top+t.scrollTop:i.offsetTop)-l))}),t.itemsLength=t.items.length}}function ze(t){return t.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}function qe(t){Array.from(t.getElementsByTagName("A")).forEach(t=>{r(t,"active")&&l(t,"active")})}function Xe(t,e){const{target:n,element:o}=t;qe(n),t.activeItem=e,b(e,"active");const i=[];let s=e;for(;s!==document.body;)s=s.parentNode,(r(s,"nav")||r(s,"dropdown-menu"))&&i.push(s);i.forEach(t=>{const e=t.previousElementSibling;e&&!r(e,"active")&&b(e,"active")}),$e.relatedTarget=e,o.dispatchEvent($e)}function Ye(t,e){const n=e?c:"removeEventListener";t.scrollTarget[n]("scroll",t.refresh,T)}class Ve extends h{constructor(t,e){super("ScrollSpy",t,je,e);const{element:n,options:o}=this;this.target=a(o.target),this.target&&(this.scrollTarget=n.clientHeight=o){const e=s[i-1];return void(a!==e&&Xe(t,e))}const{offsets:r}=t;if(a&&n0)return t.activeItem=null,void qe(e);s.forEach((e,o)=>{a!==e&&n>=r[o]&&(void 0===r[o+1]||n{e.style.height=tn+"px",C(e),s(e,()=>an(t))},50):n.isAnimating=!1,Ze.relatedTarget=en,Qe.dispatchEvent(Ze)}function ln(t){const{tabContent:e}=t;e&&(nn.style.float="left",_e.style.float="left",on=nn.scrollHeight),Ue.relatedTarget=en,Ke.relatedTarget=Qe,Qe.dispatchEvent(Ue),Ue.defaultPrevented||(b(_e,"active"),l(nn,"active"),e&&(tn=_e.scrollHeight,sn=tn===on,b(e,"collapsing"),e.style.height=on+"px",C(e),nn.style.float="",_e.style.float=""),r(_e,"fade")?setTimeout(()=>{b(_e,"show"),s(_e,()=>{rn(t)})},20):rn(t),en.dispatchEvent(Ke))}function cn({nav:t}){const e=t.getElementsByClassName("active");return 1!==e.length||nt.some(t=>r(e[0].parentNode,t))?e.length>1&&(en=e[e.length-1]):[en]=e,en}function dn(t){return a(cn(t).getAttribute("href"))}function un(t,e){const n=e?c:"removeEventListener";t.element[n]("click",hn)}function hn(t){const e=this.Tab;t.preventDefault(),e.nav.isAnimating||e.show()}class pn extends h{constructor(t){super("Tab",t);const{element:n}=this;this.nav=n.closest(".nav");const{nav:o}=this;this.dropdown=o&&a(`.${nt[0]}-toggle`,o),nn=dn(this),this.tabContent=e&&nn.closest(".tab-content"),on=nn.scrollHeight,o.isAnimating=!1,un(this,1)}show(){const t=this,{element:e,nav:n,dropdown:o}=t;if(Qe=e,!r(Qe,"active")){if(_e=a(Qe.getAttribute("href")),en=cn({nav:n}),nn=dn({nav:n}),Je.relatedTarget=Qe,en.dispatchEvent(Je),Je.defaultPrevented)return;n.isAnimating=!0,l(en,"active"),en.setAttribute("aria-selected","false"),b(Qe,"active"),Qe.setAttribute("aria-selected","true"),o&&(r(e.parentNode,"dropdown-menu")?r(o,"active")||b(o,"active"):r(o,"active")&&l(o,"active")),r(nn,"fade")?(l(nn,"show"),s(nn,()=>ln(t))):ln(t)}}dispose(){un(this),super.dispose("Tab")}}pn.init={component:"Tab",selector:Ge,constructor:pn};const mn={animation:!0,autohide:!0,delay:500},fn=d("show.bs.toast"),gn=d("hide.bs.toast"),vn=d("shown.bs.toast"),bn=d("hidden.bs.toast");function yn(t){const{element:e,options:n}=t;n.animation||(l(e,"showing"),b(e,"show")),e.dispatchEvent(vn),n.autohide&&t.hide()}function wn(t){const{element:e}=t;b(e,"hide"),e.dispatchEvent(bn)}function En(t,e){const n=e?c:"removeEventListener";t.dismiss&&t.dismiss[n]("click",t.hide)}function An(t){clearTimeout(t.timer),En(t)}class Tn extends h{constructor(t,e){super("Toast",t,mn,e);this.dismiss=a('[data-bs-dismiss="toast"]',this.element),this.show=this.show.bind(this),this.hide=this.hide.bind(this),En(this,1)}show(){const t=this,{element:e}=t;if(e&&r(e,"hide")){if(e.dispatchEvent(fn),fn.defaultPrevented)return;b(e,"fade"),clearTimeout(t.timer),t.timer=setTimeout(()=>function(t){const{element:e,options:n}=t;l(e,"hide"),n.animation?(C(e),b(e,"showing"),b(e,"show"),s(e,()=>yn(t))):yn(t)}(t),10)}}hide(t){const e=this,{element:n,options:o}=e;if(n&&r(n,"show")){if(n.dispatchEvent(gn),gn.defaultPrevented)return;clearTimeout(e.timer),e.timer=setTimeout(function(t){const{element:e,options:n}=t;l(e,"show"),n.animation?(C(e),s(e,()=>wn(t))):wn(t)}(e),t?10:o.delay)}}dispose(){const t=this,{element:e,options:n}=t;t.hide(),n.animation?s(e,()=>An(t)):An(t),super.dispose("Toast")}}Tn.init={component:"Toast",selector:".toast",constructor:Tn};const Cn=`[${y}="tooltip"],[data-tip="tooltip"]`,xn={title:null,template:'',placement:"top",animation:!0,customClass:null,delay:200,sanitizeFn:null},kn=d("show.bs.tooltip"),Hn=d("shown.bs.tooltip"),Nn=d("hide.bs.tooltip"),Ln=d("hidden.bs.tooltip");function Pn(t){const{element:e}=t;Mn(t),e.hasAttribute("data-original-title")&&Bn(t)}function Sn(t,e){const n=e?c:"removeEventListener";document[n]("touchstart",In,T),ye(t.element)||(window[n]("scroll",t.update,T),window[n]("resize",t.update,T))}function On(t){Sn(t,1),t.element.dispatchEvent(Hn)}function Dn(t){Sn(t),function(t){const{element:e,options:n,tooltip:o}=t;e.removeAttribute("aria-describedby"),n.container.removeChild(o),t.timer=null}(t),t.element.dispatchEvent(Ln)}function Mn(t,e){const n=e?c:"removeEventListener",{element:o}=t;ye(o)&&o[n]("mousemove",t.update,T),o[n]("mousedown",t.show),o[n]("mouseenter",t.show),o[n]("mouseleave",t.hide)}function Bn(t,e){const n=["data-original-title","title"],{element:o}=t;o.setAttribute(n[e?0:1],e||o.getAttribute(n[0])),o.removeAttribute(n[e?1:0])}function In({target:t}){const{tooltip:e,element:n}=this;e.contains(t)||t===n||n.contains(t)||this.hide()}class Wn extends h{constructor(t,e){const n=a(t);xn.title=n.getAttribute("title"),xn.container=Te(n),super("Tooltip",n,xn,e);this.tooltip=null,this.arrow=null,this.timer=null,this.enabled=!1;const{options:o}=this;this.options.container=ye(n)?xn.container:a(o.container),xn.container=null,xn.title=null,o.title&&(In.bind(this),this.update=this.update.bind(this),n.hasAttribute("title")&&Bn(this,o.title),this.id="tooltip-"+Ae(n),function(t){const{options:e,id:n}=t,o="bs-tooltip-"+ve[e.placement];let i=e.title.trim();if(e.sanitizeFn&&(i=e.sanitizeFn(i),e.template=e.sanitizeFn(e.template)),!i)return;t.tooltip=document.createElement("div");const{tooltip:s}=t;s.setAttribute("id",n);const l=document.createElement("div");l.innerHTML=e.template.trim(),s.className=l.firstChild.className,s.innerHTML=l.firstChild.innerHTML,a(".tooltip-inner",s).innerHTML=i,t.arrow=a(".tooltip-arrow",s),s.setAttribute("role","tooltip"),r(s,"tooltip")||b(s,"tooltip"),e.animation&&!r(s,"fade")&&b(s,"fade"),e.customClass&&!r(s,e.customClass)&&b(s,e.customClass),r(s,o)||b(s,o)}(this),Mn(this,1))}show(t){const e=t?this.Tooltip:this,{options:n,tooltip:o,element:i,id:a}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(!be(o,n.container)){if(i.dispatchEvent(kn),kn.defaultPrevented)return;n.container.appendChild(o),i.setAttribute("aria-describedby",a),e.update(t),r(o,"show")||b(o,"show"),n.animation?s(o,()=>On(e)):On(e)}},20)}hide(t){const e=t?this.Tooltip:this,{options:n,tooltip:o,element:i}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(be(o,n.container)){if(i.dispatchEvent(Nn),Nn.defaultPrevented)return;l(o,"show"),n.animation?s(o,()=>Dn(e)):Dn(e)}},n.delay)}update(t){we(this,t)}toggle(){const{tooltip:t,options:e}=this;be(t,e.container)?this.hide():this.show()}enable(){const t=this,{enabled:e}=t;e||(Mn(t,1),t.enabled=!e)}disable(){const t=this,{tooltip:e,options:n,enabled:o}=t;o&&(!be(e,n.container)&&n.animation?(t.hide(),setTimeout(()=>Mn(t),i(e)+n.delay+17)):Mn(t),t.enabled=!o)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const t=this,{tooltip:e,options:n}=t;n.animation&&be(e,n.container)?(n.delay=0,t.hide(),s(e,()=>Pn(t))):Pn(t),super.dispose("Tooltip")}}Wn.init={component:"Tooltip",selector:Cn,constructor:Wn};const Rn={Alert:v.init,Button:A.init,Carousel:Y.init,Collapse:et.init,Dropdown:Ht.init,Modal:ee.init,Offcanvas:ge.init,Popover:Re.init,ScrollSpy:Ve.init,Tab:pn.init,Toast:Tn.init,Tooltip:Wn.init};function jn(t){const e=t instanceof Element?t:document;Object.keys(Rn).forEach(t=>{const{constructor:n,selector:o}=Rn[t];var i,s;i=n,s=e.querySelectorAll(o),Array.from(s).forEach(t=>new i(t))})}return document.body?jn():document.addEventListener("DOMContentLoaded",()=>jn(),{once:!0}),{Alert:v,Button:A,Carousel:Y,Collapse:et,Dropdown:Ht,Modal:ee,Offcanvas:ge,Popover:Re,ScrollSpy:Ve,Tab:pn,Toast:Tn,Tooltip:Wn,initCallback:jn,Version:"4.0.0"}})); diff --git a/dist/components/alert-native.esm.js b/dist/components/alert-native.esm.js index 0d9f7278..7766121c 100644 --- a/dist/components/alert-native.esm.js +++ b/dist/components/alert-native.esm.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Alert v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Alert v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/alert-native.js b/dist/components/alert-native.js index 19c2b8af..9028a8f0 100644 --- a/dist/components/alert-native.js +++ b/dist/components/alert-native.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Alert v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Alert v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/button-native.esm.js b/dist/components/button-native.esm.js index 9bc52c8e..1e7b9fc3 100644 --- a/dist/components/button-native.esm.js +++ b/dist/components/button-native.esm.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Button v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Button v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/button-native.js b/dist/components/button-native.js index 0c238087..a401e630 100644 --- a/dist/components/button-native.js +++ b/dist/components/button-native.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Button v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Button v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/carousel-native.esm.js b/dist/components/carousel-native.esm.js index 984ea79e..0e19e8fa 100644 --- a/dist/components/carousel-native.esm.js +++ b/dist/components/carousel-native.esm.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Carousel v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Carousel v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/carousel-native.js b/dist/components/carousel-native.js index dc0525c0..bd58015e 100644 --- a/dist/components/carousel-native.js +++ b/dist/components/carousel-native.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Carousel v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Carousel v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/collapse-native.esm.js b/dist/components/collapse-native.esm.js index d138220a..aa3838d6 100644 --- a/dist/components/collapse-native.esm.js +++ b/dist/components/collapse-native.esm.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Collapse v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Collapse v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/collapse-native.js b/dist/components/collapse-native.js index 7015e8b0..ef30ef66 100644 --- a/dist/components/collapse-native.js +++ b/dist/components/collapse-native.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Collapse v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Collapse v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/dropdown-native.esm.js b/dist/components/dropdown-native.esm.js index de85a924..85af56f1 100644 --- a/dist/components/dropdown-native.esm.js +++ b/dist/components/dropdown-native.esm.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Dropdown v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Dropdown v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/dropdown-native.js b/dist/components/dropdown-native.js index 4fa8319f..d0d288e9 100644 --- a/dist/components/dropdown-native.js +++ b/dist/components/dropdown-native.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Dropdown v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Dropdown v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/modal-native.esm.js b/dist/components/modal-native.esm.js index 73b81237..a0793ca1 100644 --- a/dist/components/modal-native.esm.js +++ b/dist/components/modal-native.esm.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Modal v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Modal v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/modal-native.js b/dist/components/modal-native.js index f6cc420a..c74b7cc3 100644 --- a/dist/components/modal-native.js +++ b/dist/components/modal-native.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Modal v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Modal v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/offcanvas-native.esm.js b/dist/components/offcanvas-native.esm.js index 2f30fc14..e6fc19a7 100644 --- a/dist/components/offcanvas-native.esm.js +++ b/dist/components/offcanvas-native.esm.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Offcanvas v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Offcanvas v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/offcanvas-native.js b/dist/components/offcanvas-native.js index 1fc17947..7b5dee58 100644 --- a/dist/components/offcanvas-native.js +++ b/dist/components/offcanvas-native.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Offcanvas v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Offcanvas v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/popover-native.esm.js b/dist/components/popover-native.esm.js index 761c6056..de0cb032 100644 --- a/dist/components/popover-native.esm.js +++ b/dist/components/popover-native.esm.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Popover v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Popover v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/popover-native.js b/dist/components/popover-native.js index 019ed617..4ad18503 100644 --- a/dist/components/popover-native.js +++ b/dist/components/popover-native.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Popover v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Popover v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/scrollspy-native.esm.js b/dist/components/scrollspy-native.esm.js index 8db3eb6b..631992f4 100644 --- a/dist/components/scrollspy-native.esm.js +++ b/dist/components/scrollspy-native.esm.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap ScrollSpy v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap ScrollSpy v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/scrollspy-native.js b/dist/components/scrollspy-native.js index 69663d06..f13a2577 100644 --- a/dist/components/scrollspy-native.js +++ b/dist/components/scrollspy-native.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap ScrollSpy v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap ScrollSpy v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/tab-native.esm.js b/dist/components/tab-native.esm.js index 31304513..167210e8 100644 --- a/dist/components/tab-native.esm.js +++ b/dist/components/tab-native.esm.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Tab v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Tab v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/tab-native.js b/dist/components/tab-native.js index e2730f03..dc326619 100644 --- a/dist/components/tab-native.js +++ b/dist/components/tab-native.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Tab v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Tab v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/toast-native.esm.js b/dist/components/toast-native.esm.js index 77f4114b..07dda0a2 100644 --- a/dist/components/toast-native.esm.js +++ b/dist/components/toast-native.esm.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Toast v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Toast v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/toast-native.js b/dist/components/toast-native.js index d92c430d..26df9762 100644 --- a/dist/components/toast-native.js +++ b/dist/components/toast-native.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Toast v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Toast v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/tooltip-native.esm.js b/dist/components/tooltip-native.esm.js index d8baf166..7f62fc7d 100644 --- a/dist/components/tooltip-native.esm.js +++ b/dist/components/tooltip-native.esm.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Tooltip v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Tooltip v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/dist/components/tooltip-native.js b/dist/components/tooltip-native.js index 03087507..de001ae3 100644 --- a/dist/components/tooltip-native.js +++ b/dist/components/tooltip-native.js @@ -1,5 +1,5 @@ /*! - * Native JavaScript for Bootstrap Tooltip v3.0.15 (https://thednp.github.io/bootstrap.native/) + * Native JavaScript for Bootstrap Tooltip v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ diff --git a/package.json b/package.json index a741d756..e4531831 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bootstrap.native", - "version": "3.0.15", + "version": "4.0.0", "description": "Native JavaScript for Bootstrap, the sweetest JavaScript library without jQuery.", "main": "dist/bootstrap-native.min.js", "types": "src/index.d.ts",