text: (window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"o5Q/":function(t,e,n){"use strict";
  /*!
    * Native JavaScript for Bootstrap v4.0.4 (https://thednp.github.io/bootstrap.native/)
    * Copyright 2015-2021 © dnp_theme
    * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)
    */const o="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",i="webkitTransition"in document.head.style||"transition"in document.head.style,s="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",a="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty";function r(t){const e=getComputedStyle(t),n=e[a],o=e[s],r=o.includes("ms")?1:1e3,l=i&&n&&"none"!==n?parseFloat(o)*r:0;return Number.isNaN(l)?0:l}function l(t,e){let n=0;const i=new Event(o),s=r(t);s?(t.addEventListener(o,(function i(s){s.target===t&&(e.apply(t,[s]),t.removeEventListener(o,i),n=1)})),setTimeout(()=>{n||t.dispatchEvent(i)},s+17)):e.apply(t,[i])}function c(t,e){const n=e&&e instanceof Element?e:document;return t instanceof Element?t:n.querySelector(t)}function d(t,e){return t.classList.contains(e)}function u(t,e){t.classList.remove(e)}const h="addEventListener";function p(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 m(t){return"true"===t||"false"!==t&&(Number.isNaN(+t)?""===t||"null"===t?null:t:+t)}class f{constructor(t,e,n,o){const i=this,s=c(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]=m(a[t])}),Object.keys(n).forEach(t=>{n[t]=m(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 g=p("close.bs.alert"),v=p("closed.bs.alert");function b(t){const{element:e,relatedTarget:n}=t;w(t),n&&(v.relatedTarget=n),e.dispatchEvent(v),t.dispose(),e.parentNode.removeChild(e)}function w(t,e){const n=e?h:"removeEventListener";t.dismiss&&t.dismiss[n]("click",t.close)}class y extends f{constructor(t){super("Alert",t);const{element:e}=this;this.dismiss=c('[data-bs-dismiss="alert"]',e),this.relatedTarget=null,w(this,1)}close(t){const e=t?t.target:null,n=t?t.target.closest(".alert").Alert:this,{element:o}=n;if(n&&o&&d(o,"show")){if(e&&(g.relatedTarget=e,n.relatedTarget=e),o.dispatchEvent(g),g.defaultPrevented)return;u(o,"show"),d(o,"fade")?l(o,()=>b(n)):b(n)}}dispose(){w(this),super.dispose("Alert")}}function E(t,e){t.classList.add(e)}y.init={component:"Alert",selector:".alert",constructor:y};const A="data-bs-toggle",T=`[${A}="button"]`;function C(t,e){const n=e?h:"removeEventListener";t.element[n]("click",t.toggle)}class x extends f{constructor(t){super("Button",t);const{element:e}=this;this.isActive=d(e,"active"),e.setAttribute("aria-pressed",!!this.isActive),C(this,1)}toggle(t){t&&t.preventDefault();const e=t?this.Button:this,{element:n}=e;if(d(n,"disabled"))return;e.isActive=d(n,"active");const{isActive:o}=e,i=o?"false":"true";(o?u:E)(n,"active"),n.setAttribute("aria-pressed",i)}dispose(){C(this),super.dispose("Button")}}x.init={component:"Button",selector:T,constructor:x};var k=!!(()=>{let t=!1;try{const e=Object.defineProperty({},"passive",{get:()=>(t=!0,t)});document[h]("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){throw Error("Passive events are not supported")}return t})()&&{passive:!0};function H(t){return t.offsetHeight}function L(t){const e=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;return e.top<=n&&e.bottom>=0}const N='[data-bs-ride="carousel"]',P={pause:"hover",keyboard:!1,touch:!0,interval:5e3};let O=0,S=0,D=0;const M=p("slide.bs.carousel"),B=p("slid.bs.carousel");function I(t){const e=t.target.closest(N).Carousel,{element:n,isAnimating:o}=e;d(n,"paused")||(E(n,"paused"),o||(clearInterval(e.timer),e.timer=null))}function W(t){const e=t.target.closest(N).Carousel,{isPaused:n,isAnimating:o,element:i}=e;!n&&d(i,"paused")&&(u(i,"paused"),o||(clearInterval(e.timer),e.timer=null,e.cycle()))}function R(t){t.preventDefault();const{target:e}=t,n=e.closest(N).Carousel;if(n.isAnimating)return;const o=e.getAttribute("data-bs-slide-to");e&&!d(e,"active")&&o&&n.to(+o)}function j(t){t.preventDefault();const e=this.closest(N).Carousel,{controls:n}=e;n[1]&&this===n[1]?e.next():n[1]&&this===n[0]&&e.prev()}function $({which:t}){const[e]=Array.from(document.querySelectorAll(N)).filter(t=>L(t));if(!e)return;const n=e.Carousel;switch(t){case 39:n.next();break;case 37:n.prev()}}function F(t){const e=this.Carousel;e&&!e.isTouch&&(O=t.changedTouches[0].pageX,this.contains(t.target)&&(e.isTouch=!0,Y(e,1)))}function z(t){const{changedTouches:e,type:n}=t,o=this.Carousel;o&&o.isTouch&&(S=e[0].pageX,"touchmove"===n&&e.length>1&&t.preventDefault())}function q(t){const e=this,n=e.Carousel;if(n&&n.isTouch&&(D=S||t.changedTouches[0].pageX,n.isTouch)){if((!e.contains(t.target)||!e.contains(t.relatedTarget))&&Math.abs(O-D)<75)return;S<O?n.index+=1:S>O&&(n.index-=1),n.isTouch=!1,n.to(n.index),Y(n)}}function X(t,e){const{indicators:n}=t;Array.from(n).forEach(t=>u(t,"active")),t.indicators[e]&&E(n[e],"active")}function Y(t,e){const{element:n}=t,o=e?h:"removeEventListener";n[o]("touchmove",z,k),n[o]("touchend",q,k)}function J(t,e){const{element:n,options:o,slides:i,controls:s,indicator:a}=t,{touch:r,pause:l,interval:c,keyboard:d}=o,u=e?h:"removeEventListener";l&&c&&(n[u]("mouseenter",I),n[u]("mouseleave",W),n[u]("touchstart",I,k),n[u]("touchend",W,k)),r&&i.length>1&&n[u]("touchstart",F,k),s.forEach(t=>{t&&t[u]("click",j)}),a&&a[u]("click",R),d&&window[u]("keydown",$)}function V(t){const{slides:e,element:n}=t;return Array.from(e).indexOf(n.getElementsByClassName("carousel-item active")[0])||0}class G extends f{constructor(t,e){super("Carousel",t,P,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=[c(".carousel-control-prev",o),c(".carousel-control-next",o)],n.indicator=c(".carousel-indicators",o),n.indicators=n.indicator&&n.indicator.querySelectorAll("[data-bs-slide-to]")||[];const{options:s}=n;n.options.interval=!0===s.interval?P.interval:s.interval,V(n)<0&&(i.length&&E(i[0],"active"),n.indicators.length&&X(n,0)),J(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&&(u(n,"paused"),t.isPaused=!e),t.timer=setInterval(()=>{L(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,E(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:i,options:s}=e,a=V(e);let c=t;if(o||a===c)return;a<c||0===a&&c===i.length-1?e.direction="left":(a>c||a===i.length-1&&0===c)&&(e.direction="right");const{direction:h}=e;c<0?c=i.length-1:c>=i.length&&(c=0);const p="left"===h?"next":"prev",m="left"===h?"start":"end",f={relatedTarget:i[c],direction:h,from:a,to:c};Object.keys(f).forEach(t=>{M[t]=f[t],B[t]=f[t]}),n.dispatchEvent(M),M.defaultPrevented||(e.index=c,clearInterval(e.timer),e.timer=null,e.isAnimating=!0,X(e,c),r(i[c])&&d(n,"slide")?(E(i[c],"carousel-item-"+p),H(i[c]),E(i[c],"carousel-item-"+m),E(i[a],"carousel-item-"+m),l(i[c],()=>function(t){const{index:e,direction:n,element:o,slides:i,options:s,isAnimating:a}=t;if(a&&o.Carousel){const a=V(t),r="left"===n?"next":"prev",l="left"===n?"start":"end";t.isAnimating=!1,E(i[e],"active"),u(i[a],"active"),u(i[e],"carousel-item-"+r),u(i[e],"carousel-item-"+l),u(i[a],"carousel-item-"+l),o.dispatchEvent(B),document.hidden||!s.interval||d(o,"paused")||t.cycle()}}(e))):(E(i[c],"active"),u(i[a],"active"),setTimeout(()=>{e.isAnimating=!1,n&&s.interval&&!d(n,"paused")&&e.cycle(),n.dispatchEvent(B)},100)))}dispose(){const t=this,{slides:e}=t,n=["start","end","prev","next"];Array.from(e).forEach((e,o)=>{d(e,"active")&&X(t,o),n.forEach(t=>u(e,"carousel-item-"+t))}),J(t),clearInterval(t.timer),super.dispose("Carousel")}}G.init={component:"Carousel",selector:N,constructor:G};function Q(t){return c(t.getAttribute("data-bs-target")||t.getAttribute("href"))||t.closest(t.getAttribute("data-bs-parent"))||c(t.getAttribute("data-bs-container"))}const U=`[${A}="collapse"]`,Z=p("show.bs.collapse"),K=p("shown.bs.collapse"),_=p("hide.bs.collapse"),tt=p("hidden.bs.collapse");function et(t){const{element:e,parent:n,triggers:o}=t;e.dispatchEvent(_),_.defaultPrevented||(t.isAnimating=!0,n&&(n.isAnimating=!0),e.style.height=e.scrollHeight+"px",u(e,"collapse"),u(e,"show"),E(e,"collapsing"),H(e),e.style.height="0px",l(e,()=>{t.isAnimating=!1,n&&(n.isAnimating=!1),o.forEach(t=>t.setAttribute("aria-expanded","false")),u(e,"collapsing"),E(e,"collapse"),e.style.height="",e.dispatchEvent(tt)}))}function nt(t,e){const n=e?h:"removeEventListener",{triggers:o}=t;o.length&&o.forEach(t=>t[n]("click",ot))}function ot(t){const{target:e}=t,n=e.closest(U),o=Q(n),i=o&&o.Collapse;i&&i.toggle(e),n&&"A"===n.tagName&&t.preventDefault()}class it extends f{constructor(t,e){super("Collapse",t,{parent:null},e);const{element:n,options:o}=this;this.triggers=Array.from(document.querySelectorAll(U)).filter(t=>Q(t)===n),this.parent=c(o.parent);const{parent:i}=this;this.isAnimating=!1,i&&(i.isAnimating=!1),nt(this,1)}toggle(t){d(this.element,"show")?this.hide(t):this.show(t)}hide(){const{triggers:t,isAnimating:e}=this;e||(et(this),t.length&&t.forEach(t=>E(t,"collapsed")))}show(){const t=this,{element:e,parent:n,triggers:o,isAnimating:i}=t;let s,a;n&&(s=Array.from(n.querySelectorAll(".collapse.show")).find(t=>t.Collapse),a=s&&s.Collapse),n&&(!n||n.isAnimating)||i||(a&&s!==e&&(et(a),a.triggers.forEach(t=>{E(t,"collapsed")})),function(t){const{element:e,parent:n,triggers:o}=t;e.dispatchEvent(Z),Z.defaultPrevented||(t.isAnimating=!0,n&&(n.isAnimating=!0),E(e,"collapsing"),u(e,"collapse"),e.style.height=e.scrollHeight+"px",l(e,()=>{t.isAnimating=!1,n&&(n.isAnimating=!1),o.forEach(t=>t.setAttribute("aria-expanded","true")),u(e,"collapsing"),E(e,"collapse"),E(e,"show"),e.style.height="",e.dispatchEvent(K)}))}(t),o.length&&o.forEach(t=>u(t,"collapsed")))}dispose(){const{parent:t}=this;nt(this),t&&delete t.isAnimating,super.dispose("Collapse")}}it.init={component:"Collapse",selector:".collapse",constructor:it};const st=["dropdown","dropup","dropstart","dropend"];function at(t){const e=t.closest("A");return t&&(t.href&&"#"===t.href.slice(-1)||e&&e.href&&"#"===e.href.slice(-1))}function rt(t){t.focus()}const[lt]=st,ct=`[${A}="${lt}"]`,dt=st[1],ut=st[2],ht=st[3],pt=["d-block","invisible"],mt=[lt,dt],ft=[ut,ht],gt={offset:5,display:"dynamic"},vt=p("show.bs."+lt),bt=p("shown.bs."+lt),wt=p("hide.bs."+lt),yt=p("hidden.bs."+lt);function Et(t,e){const{element:n,menu:o,originalClass:i,menuEnd:s,options:a}=t,{offset:r}=a,l=n.parentElement;if(["margin","top","bottom","left","right"].forEach(t=>{o.style[t]=""}),u(l,"position-static"),!e){const t=d(o,"dropdown-menu-end");return l.className=i.join(" "),void(t&&!s?u(o,"dropdown-menu-end"):!t&&s&&E(o,"dropdown-menu-end"))}let c=st.find(t=>i.includes(t))||lt,h={dropdown:[r,0,0],dropup:[0,0,r],dropstart:[-1,r,0],dropend:[-1,0,0,r]};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"}};pt.forEach(t=>E(o,t));const m=new RegExp(`\\b(${lt}|${dt}|${ut}|${ht})+`),f=n.offsetWidth,g=n.offsetHeight,v=o.offsetWidth,b=o.offsetHeight,w=document.documentElement,y=document.body,A=w.clientWidth||y.clientWidth,T=w.clientHeight||y.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+b>=T,P=C.top+b+g>=T,O=C.top-b<0;ft.includes(c)&&k&&L&&(c=lt),ft.includes(c)&&N&&(c=dt),c===ut&&k&&!N&&(c=ht),c===ht&&L&&!N&&(c=ut),c===dt&&O&&!P&&(c=lt),c===lt&&P&&!O&&(c=dt),h=h[c],o.style.margin=""+h.map(t=>t?t+"px":t).join(" "),Object.keys(p[c]).forEach(t=>{o.style[t]=p[c][t]}),d(l,c)||(l.className=l.className.replace(m,c)),mt.includes(c)&&(!s&&H?E(o,"dropdown-menu-end"):s&&x&&u(o,"dropdown-menu-end"),d(o,"dropdown-menu-end")&&Object.keys(p.menuEnd).forEach(t=>{o.style[t]=p.menuEnd[t]})),pt.forEach(t=>u(o,t))}function At(t){const e=t.open?h:"removeEventListener";document[e]("click",xt),document[e]("focus",xt),document[e]("keydown",Ht),document[e]("keyup",Lt),"dynamic"===t.options.display&&(window[e]("scroll",Nt,k),window[e]("resize",Nt,k))}function Tt(t,e){const n=e?h:"removeEventListener";t.element[n]("click",kt)}function Ct(){const t=st.concat("btn-group").map(t=>document.getElementsByClassName(t+" show")).find(t=>t.length);return t&&t.length?Array.from(t[0].children).find(t=>t.hasAttribute(A)):null}function xt(t){const{target:e,type:n}=t;if(!e.closest)return;const o=Ct(),i=o&&o.parentNode,s=o&&o.Dropdown,a=s&&s.menu,r=null!==e.closest(ct),l=i&&i.contains(e)&&("form"===e.tagName||null!==e.closest("form"));"click"===n&&at(e)&&t.preventDefault(),("focus"!==n||e!==o&&e!==a&&!a.contains(e))&&(l||r||s&&s.hide(o))}function kt(t){this.Dropdown.toggle(this),at(t.target)&&t.preventDefault()}function Ht(t){38!==t.which&&40!==t.which||t.preventDefault()}function Lt({which:t}){const e=Ct(),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<i.length-1?d+1:d),i[d]&&rt(i[d])),(i.length&&c||!i.length&&(l||r)||!l)&&s&&27===t&&n.toggle()}function Nt(){const t=Ct(),e=t&&t.Dropdown;e&&e.open&&Et(e,1)}class Pt extends f{constructor(t,e){super("Dropdown",t,gt,e);const n=this,{element:o}=n,i=o.parentElement;n.menu=c(".dropdown-menu",i);const{menu:s}=n;n.originalClass=Array.from(i.classList),n.menuEnd=d(s,"dropdown-menu-end"),n.menuItems=[],Array.from(s.children).forEach(t=>{t.children.length&&"A"===t.children[0].tagName&&n.menuItems.push(t.children[0]),"A"===t.tagName&&n.menuItems.push(t)}),n.open=!1,Tt(n,1)}toggle(t){const{open:e}=this;e?this.hide(t):this.show(t)}show(t){const e=this,n=c(st.concat("btn-group").map(t=>`.${t}.show`).join(",")),o=n&&c(ct,n);o&&o.Dropdown.hide();const{element:i,menu:s,open:a}=e,r=i.parentNode;vt.relatedTarget=t||null,r.dispatchEvent(vt),vt.defaultPrevented||(Et(e,1),E(s,"show"),E(r,"show"),i.setAttribute("aria-expanded",!0),e.open=!a,setTimeout(()=>{rt(s.getElementsByTagName("INPUT")[0]||i),At(e),bt.relatedTarget=t||null,r.dispatchEvent(bt)},1))}hide(t){const e=this,{element:n,menu:o,open:i}=e,s=n.parentNode;wt.relatedTarget=t||null,s.dispatchEvent(wt),wt.defaultPrevented||(u(o,"show"),u(s,"show"),Et(e),n.setAttribute("aria-expanded",!1),e.open=!i,rt(n),setTimeout(()=>At(e),1),yt.relatedTarget=t||null,s.dispatchEvent(yt))}dispose(){const{element:t}=this;d(t.parentNode,"show")&&this.open&&this.hide(),Tt(this),super.dispose("Dropdown")}}Pt.init={component:"Dropdown",selector:ct,constructor:Pt};const Ot=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 St(){const t=document.body;t.style.paddingRight="",t.style.overflow="",Ot.length&&Ot.forEach(t=>{t.style.paddingRight="",t.style.marginRight=""})}function Dt(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Mt(t,e){const n=document.body,o=getComputedStyle(n),i=parseInt(o.paddingRight,10),s="hidden"===o.overflow&&i?0:t;e&&(n.style.overflow="hidden",n.style.paddingRight=i+s+"px",Ot.length&&Ot.forEach(t=>{const e=d(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 Bt=document.createElement("div");function It(){return c(".modal.show,.offcanvas.show")}function Wt(t){document.body.appendChild(Bt),t&&E(Bt,"fade")}function Rt(){E(Bt,"show"),H(Bt)}function jt(){u(Bt,"show")}function $t(){const t=document.body;It()||(u(Bt,"fade"),u(t,"modal-open"),t.removeChild(Bt),St())}function Ft(t){return"hidden"!==getComputedStyle(t).visibility&&null!==t.offsetParent}Bt.setAttribute("class","modal-backdrop");const zt=`[${A}="modal"]`,qt={backdrop:!0,keyboard:!0},Xt=p("show.bs.modal"),Yt=p("shown.bs.modal"),Jt=p("hide.bs.modal"),Vt=p("hidden.bs.modal");function Gt(t){const{element:e,scrollbarWidth:n}=t,o=document.body,i=document.documentElement,s=i.clientHeight!==i.scrollHeight||o.clientHeight!==o.scrollHeight,a=e.clientHeight!==e.scrollHeight;!a&&n&&(e.style.paddingRight=n+"px"),Mt(n,a||s)}function Qt(t,e){const n=e?h:"removeEventListener";window[n]("resize",t.update,k),t.element[n]("click",oe),document[n]("keydown",ne)}function Ut(t,e){const n=e?h:"removeEventListener",{triggers:o}=t;o.length&&o.forEach(t=>t[n]("click",ee))}function Zt(t){const{triggers:e}=t;if($t(),t.element.style.paddingRight="",t.isAnimating=!1,e.length){const t=e.find(t=>Ft(t));t&&rt(t)}}function Kt(t){const{element:e,relatedTarget:n}=t;rt(e),t.isAnimating=!1,Qt(t,1),Yt.relatedTarget=n,e.dispatchEvent(Yt)}function _t(t){const{element:e,hasFade:n}=t;e.style.display="block",Gt(t),c(".modal.show")||(document.body.style.overflow="hidden",E(document.body,"modal-open")),E(e,"show"),e.removeAttribute("aria-hidden"),e.setAttribute("aria-modal",!0),n?l(e,()=>Kt(t)):Kt(t)}function te(t,e){const{element:n,relatedTarget:o,hasFade:i}=t,s=It();n.style.display="",!e&&i&&d(Bt,"show")&&!s?(jt(),l(Bt,()=>Zt(t))):Zt(t),Qt(t),Vt.relatedTarget=o,n.dispatchEvent(Vt)}function ee(t){const{target:e}=t,n=e.closest(zt),o=Q(n),i=o&&o.Modal;"A"===n.tagName&&t.preventDefault(),i.isAnimating||(i.relatedTarget=n,i.toggle())}function ne({which:t}){const e=c(".modal.show"),n=e.Modal,{options:o,isAnimating:i}=n;!i&&o.keyboard&&27===t&&d(e,"show")&&(n.relatedTarget=null,n.hide())}function oe(t){const e=this,n=e.Modal;if(n.isAnimating)return;const{isStatic:o,modalDialog:i}=n,{target:s}=t,a=document.getSelection().toString().length,c=i.contains(s),d=s.closest('[data-bs-dismiss="modal"]');o&&!c?(E(e,"modal-static"),n.isAnimating=!0,l(i,()=>function(t){const e=r(t.modalDialog)+17;u(t.element,"modal-static"),setTimeout(()=>{t.isAnimating=!1},e)}(n))):!d&&(a||o||c)||(n.relatedTarget=d||null,n.hide(),t.preventDefault())}class ie extends f{constructor(t,e){super("Modal",t,qt,e);const{element:n}=this;this.modalDialog=c(".modal-dialog",n),this.triggers=Array.from(document.querySelectorAll(zt)).filter(t=>Q(t)===n),this.isStatic="static"===this.options.backdrop,this.hasFade=d(n,"fade"),this.isAnimating=!1,this.scrollbarWidth=Dt(),this.relatedTarget=null,Ut(this,1),this.update=this.update.bind(this)}toggle(){d(this.element,"show")?this.hide():this.show()}show(){const t=this,{element:e,isAnimating:n,hasFade:o,relatedTarget:i}=t;let s=0;if(d(e,"show")&&!n)return;if(Xt.relatedTarget=i||null,e.dispatchEvent(Xt),Xt.defaultPrevented)return;t.isAnimating=!0;const a=It();if(a&&a!==e){(a.Modal?a.Modal:a.Offcanvas).hide()}c(".modal-backdrop")||Wt(o),s=r(Bt),d(Bt,"show")||Rt(),a?_t(t):setTimeout(()=>_t(t),s)}hide(t){const e=this,{element:n,isAnimating:o,hasFade:i,relatedTarget:s}=e;(d(n,"show")||o)&&(Jt.relatedTarget=s||null,n.dispatchEvent(Jt),Jt.defaultPrevented||(e.isAnimating=!0,u(n,"show"),n.setAttribute("aria-hidden",!0),n.removeAttribute("aria-modal"),i&&1!==t?l(n,()=>te(e)):te(e,t)))}update(){d(this.element,"show")&&Gt(this)}dispose(){this.hide(1),Ut(this),super.dispose("Modal")}}ie.init={component:"Modal",selector:".modal",constructor:ie};const se=`[${A}="offcanvas"]`,ae={backdrop:!0,keyboard:!0,scroll:!1},re=p("show.bs.offcanvas"),le=p("shown.bs.offcanvas"),ce=p("hide.bs.offcanvas"),de=p("hidden.bs.offcanvas");function ue(t,e){const n=e?h:"removeEventListener";t.triggers.forEach(t=>t[n]("click",fe))}function he(t){const e=t?h:"removeEventListener";document[e]("keydown",ve),document[e]("click",ge)}function pe(t){const{element:e,options:n}=t;n.scroll||(E(document.body,"modal-open"),document.body.style.overflow="hidden",function(t){const e=document.body,n=document.documentElement,o=n.clientHeight!==n.scrollHeight||e.clientHeight!==e.scrollHeight;Mt(t.scrollbarWidth,o)}(t)),E(e,"offcanvas-toggling"),E(e,"show"),e.style.visibility="visible",l(e,()=>function(t){const{element:e,triggers:n,relatedTarget:o}=t;u(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));le.relatedTarget=o||null,e.dispatchEvent(le),he(1),rt(e)}(t))}function me(t){const{element:e,options:n}=t,o=It();e.blur(),!o&&n.backdrop&&d(Bt,"show")?(jt(),l(Bt,()=>be(t))):be(t)}function fe(t){const e=this.closest(se),n=Q(e),o=n&&n.Offcanvas;"A"===e.tagName&&t.preventDefault(),o&&(o.relatedTarget=e,o.toggle())}function ge(t){const e=c(".offcanvas.show");if(!e)return;const n=c('[data-bs-dismiss="offcanvas"]',e),o=e.Offcanvas;if(!o)return;const{options:i,open:s,triggers:a}=o,{target:r}=t,l=r.closest(se);l&&"A"===l.tagName&&t.preventDefault(),s&&(!e.contains(r)&&i.backdrop&&(!l||l&&!a.includes(l))||n.contains(r))&&(o.relatedTarget=r===n?n:null,o.hide())}function ve({which:t}){const e=c(".offcanvas.show");if(!e)return;const n=e.Offcanvas;n&&n.options.keyboard&&27===t&&(n.relatedTarget=null,n.hide())}function be(t){const{element:e,options:n,relatedTarget:o,triggers:i}=t,s=It();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=>Ft(t));t&&rt(t)}s||(n.backdrop&&$t(),n.scroll||(St(),u(document.body,"modal-open"))),de.relatedTarget=o||null,e.dispatchEvent(de),u(e,"offcanvas-toggling"),he()}class we extends f{constructor(t,e){super("Offcanvas",t,ae,e);const{element:n}=this;this.triggers=Array.from(document.querySelectorAll(se)).filter(t=>Q(t)===n),this.open=!1,this.isAnimating=!1,this.scrollbarWidth=Dt(),ue(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:i}=t;let s=0;if(t.open||o)return;if(re.relatedTarget=i||null,e.dispatchEvent(re),re.defaultPrevented)return;const a=It();if(a&&a!==e){(a.Offcanvas?a.Offcanvas:a.Modal).hide()}t.open=!0,t.isAnimating=!0,n.backdrop?(c(".modal-backdrop")||Wt(1),s=r(Bt),d(Bt,"show")||Rt(),setTimeout(()=>pe(t),s)):pe(t)}hide(t){const e=this,{element:n,isAnimating:o,relatedTarget:i}=e;e.open&&!o&&(ce.relatedTarget=i||null,n.dispatchEvent(ce),ce.defaultPrevented||(e.isAnimating=!0,E(n,"offcanvas-toggling"),u(n,"show"),t?me(e):l(n,()=>me(e))))}dispose(){this.hide(1),ue(this),super.dispose("Offcanvas")}}we.init={component:"Offcanvas",selector:".offcanvas",constructor:we};var ye={top:"top",bottom:"bottom",left:"start",right:"end"};function Ee(t,e){return e.contains(t)}function Ae(t){return[SVGElement,HTMLImageElement,HTMLVideoElement].some(e=>t instanceof e)}function Te(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 w=u.getBoundingClientRect(),y=v?w.left:0,E=v?w.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,L=v?l.offsetLeft:T.left;let N,P,O,S,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<y,R=T.left+s.w+x>=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<y:W,R=["top","bottom"].includes(h)?T.left+s.w/2+x/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,ye[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?L+C.x-s.w-(i?j:0):L+C.x+x+(i?j:0),B?(N=H+C.y,S=k/2-j):I?(N=H+C.y-s.h+k,S=s.h-k/2-j):(N=H+C.y-s.h/2+k/2,S=s.h/2-$/2);else if(["top","bottom"].includes(h))if(e&&Ae(l)){const t=v?e.layerX+(A?l.offsetLeft:0):e.pageX,n=v?e.layerY+(A?l.offsetTop:0):e.pageY;N="top"===h?n-s.h-(i?j:$):n+$,e.clientX-s.w/2<y?(P=0,D=t-F):e.clientX+.51*s.w>=E?(P="auto",O=0,D=s.w-(E-t)-F):(P=t-s.w/2,D=s.w/2-F)}else N="top"===h?H+C.y-s.h-(i?$:0):H+C.y+k+(i?$:0),W?(P=0,D=L+x/2-F):R?(P="auto",O=0,M=x/2+(w.right-T.right)-F):(P=L+C.x-s.w/2+x/2,D=s.w/2-F);o.style.top=N+"px",o.style.left="auto"===P?P:P+"px",o.style.right=void 0!==O?O+"px":"",void 0!==S&&(d.style.top=S+"px"),void 0!==D?d.style.left=D+"px":void 0!==M&&(d.style.right=M+"px")}let Ce=1;function xe(t,e){return Ce+=1,t[e]||Ce}function ke(t){const e=t.closest(".modal"),n=t.closest(".fixed-top,.fixed-bottom");return e||n||document.body}const He=`[${A}="popover"],[data-tip="popover"]`,Le={template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',title:null,content:null,sanitizeFn:null,customClass:null,dismissible:!1,animation:!0,trigger:"hover",placement:"top",delay:200},Ne=/(iPhone|iPod|iPad)/,Pe=navigator.userAgentData?navigator.userAgentData.brands.some(t=>Ne.test(t.brand)):Ne.test(navigator.userAgent);let Oe='<button type="button" class="btn-close"></button>';const Se=p("show.bs.popover"),De=p("shown.bs.popover"),Me=p("hide.bs.popover"),Be=p("hidden.bs.popover");function Ie(){rt(this)}function We({target:t}){const e=this,{popover:n,element:o}=e;n&&n.contains(t)||t===o||o.contains(t)||e.hide()}function Re(t,e){const n=e?h:"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),Ae(o)&&o[n]("mousemove",t.update,k),a||o[n]("mouseleave",t.hide)):"click"===s?o[n](s,t.toggle):"focus"===s&&(Pe&&o[n]("click",Ie),o[n]("focusin",t.show))}function je(t,e){const n=e?h:"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",We,k);Ae(i)||(window[n]("scroll",t.update,k),window[n]("resize",t.update,k))}function $e(t){je(t,1),t.element.dispatchEvent(De)}function Fe(t){je(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(Be)}class ze extends f{constructor(t,e){Le.container=ke(c(t)),super("Popover",t,Le,e);const{element:n}=this;this.timer=null,this.popover=null,this.arrow=null,this.enabled=!1,this.id="popover-"+xe(n);const{options:o}=this;this.options.container=Ae(n)?Le.container:c(o.container),Le.container=null,o.content&&(!function(t){const{id:e,options:n}=t,{animation:o,customClass:i,sanitizeFn:s,placement:a,dismissible:r}=n;let{title:l,content:u,template:h}=n;const p="bs-popover-"+ye[a];l=l?l.trim():null,u=u?u.trim():null,s&&(l=l?s(l):null,u=u?s(u):null,h=h?s(h):null,Oe=s(Oe)),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=c(".popover-header",m),v=c(".popover-body",m);t.arrow=c(".popover-arrow",m),r&&(l=l?l+Oe:l,u=null===l?+Oe:u),l&&g&&(g.innerHTML=l.trim()),u&&v&&(v.innerHTML=u.trim()),d(m,"popover")||E(m,"popover"),o&&!d(m,"fade")&&E(m,"fade"),i&&!d(m,i)&&E(m,i),d(m,p)||E(m,p)}(this),this.update=this.update.bind(this),Re(this,1))}update(t){Te(this,t)}toggle(t){const e=t?this.Popover:this,{popover:n,options:o}=e;Ee(n,o.container)?e.hide():e.show()}show(t){const e=t?this.Popover:this,{element:n,popover:o,options:i,id:s}=e,{container:a}=i;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(!Ee(o,a)){if(n.dispatchEvent(Se),Se.defaultPrevented)return;a.appendChild(o),n.setAttribute("aria-describedby",s),e.update(t),d(o,"show")||E(o,"show"),i.animation?l(o,()=>$e(e)):$e(e)}},17)}hide(t){let e;if(t&&this.Popover)e=this.Popover;else if(t){const t=this.closest(".popover"),n=t&&c(`[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(Ee(o,i.container)){if(n.dispatchEvent(Me),Me.defaultPrevented)return;u(o,"show"),i.animation?l(o,()=>Fe(e)):Fe(e)}},i.delay+17)}enable(){const t=this,{enabled:e}=t;e||(Re(t,1),t.enabled=!e)}disable(){const t=this,{enabled:e,popover:n,options:o}=t;e&&(Ee(n,o.container)&&o.animation?(t.hide(),setTimeout(()=>Re(t),r(n)+o.delay+17)):Re(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&&Ee(e,o)?(n.delay=0,t.hide(),l(e,()=>Re(t))):Re(t),super.dispose("Popover")}}ze.init={component:"Popover",selector:He,constructor:ze};const qe={offset:10,target:null},Xe=p("activate.bs.scrollspy");function Ye(t){const{target:e,scrollTarget:n,isWindow:o,options:i,itemsLength:s,scrollHeight:a}=t,{offset:r}=i,l=e.getElementsByTagName("A");if(t.scrollTop=o?n.pageYOffset:n.scrollTop,s!==l.length||Je(n)!==a){let e,i,s;t.items=[],t.offsets=[],t.scrollHeight=Je(n),t.maxScroll=t.scrollHeight-function({element:t,isWindow:e}){return e?window.innerHeight:t.getBoundingClientRect().height}(t),Array.from(l).forEach(n=>{e=n.getAttribute("href"),i=e&&"#"===e.charAt(0)&&"#"!==e.slice(-1)&&c(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 Je(t){return t.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}function Ve(t){Array.from(t.getElementsByTagName("A")).forEach(t=>{d(t,"active")&&u(t,"active")})}function Ge(t,e){const{target:n,element:o}=t;Ve(n),t.activeItem=e,E(e,"active");const i=[];let s=e;for(;s!==document.body;)s=s.parentNode,(d(s,"nav")||d(s,"dropdown-menu"))&&i.push(s);i.forEach(t=>{const e=t.previousElementSibling;e&&!d(e,"active")&&E(e,"active")}),Xe.relatedTarget=e,o.dispatchEvent(Xe)}function Qe(t,e){const n=e?h:"removeEventListener";t.scrollTarget[n]("scroll",t.refresh,k)}class Ue extends f{constructor(t,e){super("ScrollSpy",t,qe,e);const{element:n,options:o}=this;this.target=c(o.target),this.target&&(this.scrollTarget=n.clientHeight<n.scrollHeight?n:window,this.isWindow=this.scrollTarget===window,this.scrollTop=0,this.maxScroll=0,this.scrollHeight=0,this.activeItem=null,this.items=[],this.offsets=[],this.refresh=this.refresh.bind(this),Qe(this,1),this.refresh())}refresh(){const t=this,{target:e}=t;if(0===e.offsetHeight)return;Ye(t);const{scrollTop:n,maxScroll:o,itemsLength:i,items:s,activeItem:a}=t;if(n>=o){const e=s[i-1];return void(a!==e&&Ge(t,e))}const{offsets:r}=t;if(a&&n<r[0]&&r[0]>0)return t.activeItem=null,void Ve(e);s.forEach((e,o)=>{a!==e&&n>=r[o]&&(void 0===r[o+1]||n<r[o+1])&&Ge(t,e)})}dispose(){Qe(this),super.dispose("ScrollSpy")}}Ue.init={component:"ScrollSpy",selector:'[data-bs-spy="scroll"]',constructor:Ue};const Ze=`[${A}="tab"]`,Ke=p("show.bs.tab"),_e=p("shown.bs.tab"),tn=p("hide.bs.tab"),en=p("hidden.bs.tab");let nn,on,sn,an,rn,ln,cn;function dn(t){const{tabContent:e,nav:n}=t;e.style.height="",u(e,"collapsing"),n.isAnimating=!1}function un(t){const{tabContent:e,nav:n}=t;e?cn?dn(t):setTimeout(()=>{e.style.height=sn+"px",H(e),l(e,()=>dn(t))},50):n.isAnimating=!1,_e.relatedTarget=an,nn.dispatchEvent(_e)}function hn(t){const{tabContent:e}=t;e&&(rn.style.float="left",on.style.float="left",ln=rn.scrollHeight),Ke.relatedTarget=an,en.relatedTarget=nn,nn.dispatchEvent(Ke),Ke.defaultPrevented||(E(on,"active"),u(rn,"active"),e&&(sn=on.scrollHeight,cn=sn===ln,E(e,"collapsing"),e.style.height=ln+"px",H(e),rn.style.float="",on.style.float=""),d(on,"fade")?setTimeout(()=>{E(on,"show"),l(on,()=>{un(t)})},20):un(t),an.dispatchEvent(en))}function pn({nav:t}){const e=t.getElementsByClassName("active");return 1!==e.length||st.some(t=>d(e[0].parentNode,t))?e.length>1&&(an=e[e.length-1]):[an]=e,an}function mn(t){return c(pn(t).getAttribute("href"))}function fn(t,e){const n=e?h:"removeEventListener";t.element[n]("click",gn)}function gn(t){const e=this.Tab;t.preventDefault(),e.nav.isAnimating||e.show()}class vn extends f{constructor(t){super("Tab",t);const{element:e}=this;this.nav=e.closest(".nav");const{nav:n}=this;this.dropdown=n&&c(`.${st[0]}-toggle`,n),rn=mn(this),this.tabContent=i&&rn.closest(".tab-content"),ln=rn.scrollHeight,n.isAnimating=!1,fn(this,1)}show(){const t=this,{element:e,nav:n,dropdown:o}=t;if(nn=e,!d(nn,"active")){if(on=c(nn.getAttribute("href")),an=pn({nav:n}),rn=mn({nav:n}),tn.relatedTarget=nn,an.dispatchEvent(tn),tn.defaultPrevented)return;n.isAnimating=!0,u(an,"active"),an.setAttribute("aria-selected","false"),E(nn,"active"),nn.setAttribute("aria-selected","true"),o&&(d(e.parentNode,"dropdown-menu")?d(o,"active")||E(o,"active"):d(o,"active")&&u(o,"active")),d(rn,"fade")?(u(rn,"show"),l(rn,()=>hn(t))):hn(t)}}dispose(){fn(this),super.dispose("Tab")}}vn.init={component:"Tab",selector:Ze,constructor:vn};const bn={animation:!0,autohide:!0,delay:500},wn=p("show.bs.toast"),yn=p("hide.bs.toast"),En=p("shown.bs.toast"),An=p("hidden.bs.toast");function Tn(t){const{element:e,options:n}=t;n.animation||(u(e,"showing"),E(e,"show")),e.dispatchEvent(En),n.autohide&&t.hide()}function Cn(t){const{element:e}=t;E(e,"hide"),e.dispatchEvent(An)}function xn(t,e){const n=e?h:"removeEventListener";t.dismiss&&t.dismiss[n]("click",t.hide)}function kn(t){clearTimeout(t.timer),xn(t)}class Hn extends f{constructor(t,e){super("Toast",t,bn,e);this.dismiss=c('[data-bs-dismiss="toast"]',this.element),this.show=this.show.bind(this),this.hide=this.hide.bind(this),xn(this,1)}show(){const t=this,{element:e}=t;if(e&&d(e,"hide")){if(e.dispatchEvent(wn),wn.defaultPrevented)return;E(e,"fade"),clearTimeout(t.timer),t.timer=setTimeout(()=>function(t){const{element:e,options:n}=t;u(e,"hide"),n.animation?(H(e),E(e,"showing"),E(e,"show"),l(e,()=>Tn(t))):Tn(t)}(t),10)}}hide(t){const e=this,{element:n,options:o}=e;if(n&&d(n,"show")){if(n.dispatchEvent(yn),yn.defaultPrevented)return;clearTimeout(e.timer),e.timer=setTimeout(()=>function(t){const{element:e,options:n}=t;u(e,"show"),n.animation?(H(e),l(e,()=>Cn(t))):Cn(t)}(e),t?10:o.delay)}}dispose(){const t=this,{element:e,options:n}=t;t.hide(),n.animation?l(e,()=>kn(t)):kn(t),super.dispose("Toast")}}Hn.init={component:"Toast",selector:".toast",constructor:Hn};const Ln=`[${A}="tooltip"],[data-tip="tooltip"]`,Nn={title:null,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',placement:"top",animation:!0,customClass:null,delay:200,sanitizeFn:null},Pn=p("show.bs.tooltip"),On=p("shown.bs.tooltip"),Sn=p("hide.bs.tooltip"),Dn=p("hidden.bs.tooltip");function Mn(t){const{element:e}=t;Rn(t),e.hasAttribute("data-original-title")&&jn(t)}function Bn(t,e){const n=e?h:"removeEventListener";document[n]("touchstart",$n,k),Ae(t.element)||(window[n]("scroll",t.update,k),window[n]("resize",t.update,k))}function In(t){Bn(t,1),t.element.dispatchEvent(On)}function Wn(t){Bn(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(Dn)}function Rn(t,e){const n=e?h:"removeEventListener",{element:o}=t;Ae(o)&&o[n]("mousemove",t.update,k),o[n]("mousedown",t.show),o[n]("mouseenter",t.show),o[n]("mouseleave",t.hide)}function jn(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 $n({target:t}){const{tooltip:e,element:n}=this;e.contains(t)||t===n||n.contains(t)||this.hide()}class Fn extends f{constructor(t,e){const n=c(t);Nn.title=n.getAttribute("title"),Nn.container=ke(n),super("Tooltip",n,Nn,e);this.tooltip=null,this.arrow=null,this.timer=null,this.enabled=!1;const{options:o}=this;this.options.container=Ae(n)?Nn.container:c(o.container),Nn.container=null,Nn.title=null,o.title&&($n.bind(this),this.update=this.update.bind(this),n.hasAttribute("title")&&jn(this,o.title),this.id="tooltip-"+xe(n),function(t){const{options:e,id:n}=t,o="bs-tooltip-"+ye[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 a=document.createElement("div");a.innerHTML=e.template.trim(),s.className=a.firstChild.className,s.innerHTML=a.firstChild.innerHTML,c(".tooltip-inner",s).innerHTML=i,t.arrow=c(".tooltip-arrow",s),s.setAttribute("role","tooltip"),d(s,"tooltip")||E(s,"tooltip"),e.animation&&!d(s,"fade")&&E(s,"fade"),e.customClass&&!d(s,e.customClass)&&E(s,e.customClass),d(s,o)||E(s,o)}(this),Rn(this,1))}show(t){const e=t?this.Tooltip:this,{options:n,tooltip:o,element:i,id:s}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(!Ee(o,n.container)){if(i.dispatchEvent(Pn),Pn.defaultPrevented)return;n.container.appendChild(o),i.setAttribute("aria-describedby",s),e.update(t),d(o,"show")||E(o,"show"),n.animation?l(o,()=>In(e)):In(e)}},20)}hide(t){const e=t?this.Tooltip:this,{options:n,tooltip:o,element:i}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(Ee(o,n.container)){if(i.dispatchEvent(Sn),Sn.defaultPrevented)return;u(o,"show"),n.animation?l(o,()=>Wn(e)):Wn(e)}},n.delay)}update(t){Te(this,t)}toggle(){const{tooltip:t,options:e}=this;Ee(t,e.container)?this.hide():this.show()}enable(){const t=this,{enabled:e}=t;e||(Rn(t,1),t.enabled=!e)}disable(){const t=this,{tooltip:e,options:n,enabled:o}=t;o&&(!Ee(e,n.container)&&n.animation?(t.hide(),setTimeout(()=>Rn(t),r(e)+n.delay+17)):Rn(t),t.enabled=!o)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const t=this,{tooltip:e,options:n}=t;n.animation&&Ee(e,n.container)?(n.delay=0,t.hide(),l(e,()=>Mn(t))):Mn(t),super.dispose("Tooltip")}}Fn.init={component:"Tooltip",selector:Ln,constructor:Fn};const zn={Alert:y.init,Button:x.init,Carousel:G.init,Collapse:it.init,Dropdown:Pt.init,Modal:ie.init,Offcanvas:we.init,Popover:ze.init,ScrollSpy:Ue.init,Tab:vn.init,Toast:Hn.init,Tooltip:Fn.init};function qn(t){const e=t instanceof Element?t:document;Object.keys(zn).forEach(t=>{const{constructor:n,selector:o}=zn[t];var i,s;i=n,s=e.querySelectorAll(o),Array.from(s).forEach(t=>new i(t))})}document.body?qn():document.addEventListener("DOMContentLoaded",()=>qn(),{once:!0})}}]);
  //# sourceMappingURL=vendors.97dbe26162e82c024363.js.map