!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()}(this,function(){"use strict";const d={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){const n=[];let i=e.parentNode;for(;i&&i.nodeType===Node.ELEMENT_NODE&&3!==i.nodeType;)i.matches(t)&&n.push(i),i=i.parentNode;return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]}},o=1e3,r="transitionend",t=t=>{let n=t.getAttribute("data-bs-target");if(!n||"#"===n){let e=t.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e="#"+e.split("#")[1]),n=e&&"#"!==e?e.trim():null}return n},a=e=>{e=t(e);return e&&document.querySelector(e)?e:null},s=e=>{e=t(e);return e?document.querySelector(e):null},l=e=>{e.dispatchEvent(new Event(r))},c=e=>!(!e||"object"!=typeof e)&&void 0!==(e=void 0!==e.jquery?e[0]:e).nodeType,u=e=>c(e)?e.jquery?e[0]:e:"string"==typeof e&&0{Object.keys(r).forEach(e=>{var t=r[e],n=o[e],i=n&&c(n)?"element":null==(i=n)?""+i:{}.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(t).test(i))throw new TypeError(s.toUpperCase()+`: Option "${e}" provided type "${i}" but expected type "${t}".`)})},i=e=>!(!c(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility"),h=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),f=e=>{if(!document.documentElement.attachShadow)return null;if("function"!=typeof e.getRootNode)return e instanceof ShadowRoot?e:e.parentNode?f(e.parentNode):null;e=e.getRootNode();return e instanceof ShadowRoot?e:null},p=()=>{},g=e=>e.offsetHeight;const m=()=>"rtl"===document.documentElement.dir,_=e=>{"function"==typeof e&&e()},v=(n,i,e=!0)=>{if(e){e=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);var i=Number.parseFloat(t),e=Number.parseFloat(n);return i||e?(t=t.split(",")[0],n=n.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(n))*o):0})(i)+5;let t=!1;const s=({target:e})=>{e===i&&(t=!0,i.removeEventListener(r,s),_(n))};i.addEventListener(r,s),setTimeout(()=>{t||l(i)},e)}else _(n)},b=(e,t,n,i)=>{let s=e.indexOf(t);if(-1===s)return e[!n&&i?e.length-1:0];t=e.length;return s+=n?1:-1,i&&(s=(s+t)%t),e[Math.max(0,Math.min(s,t-1))]},y=/[^.]*(?=\..*)\.|.*/,w=/\..*/,E=/::\d+$/,O={};let T=1;const A={mouseenter:"mouseover",mouseleave:"mouseout"},x=/^(mouseenter|mouseleave)/i,L=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function C(e,t){return t&&t+"::"+T++||e.uidEvent||T++}function D(e){var t=C(e);return e.uidEvent=t,O[t]=O[t]||{},O[t]}function N(n,i,s=null){var o=Object.keys(n);for(let e=0,t=o.length;efunction(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)},i?i=a(i):n=a(n));var[o,r,a]=S(t,n,i);const f=D(e),p=f[a]||(f[a]={}),g=N(p,r,o?n:null);if(g)g.oneOff=g.oneOff&&s;else{var l,c,u,d,h,t=C(r,t.replace(y,""));const m=o?(u=e,d=n,h=i,function n(i){var s=u.querySelectorAll(d);for(let t=i["target"];t&&t!==this;t=t.parentNode)for(let e=s.length;e--;)if(s[e]===t)return i.delegateTarget=t,n.oneOff&&j.off(u,i.type,d,h),h.apply(t,[i]);return null}):(l=e,c=n,function e(t){return t.delegateTarget=l,e.oneOff&&j.off(l,t.type,c),c.apply(l,[t])});m.delegationSelector=o?n:null,m.originalHandler=r,m.oneOff=s,m.uidEvent=t,p[t]=m,e.addEventListener(a,m,o)}}}function I(e,t,n,i,s){i=N(t[n],i,s);i&&(e.removeEventListener(n,i,Boolean(s)),delete t[n][i.uidEvent])}function P(e){return e=e.replace(w,""),A[e]||e}const j={on(e,t,n,i){k(e,t,n,i,!1)},one(e,t,n,i){k(e,t,n,i,!0)},off(n,i,e,t){if("string"==typeof i&&n){const[s,o,r]=S(i,e,t),a=r!==i,l=D(n);t=i.startsWith(".");if(void 0!==o)return l&&l[r]?void I(n,l,r,o,s?e:null):void 0;t&&Object.keys(l).forEach(e=>{!function(t,n,i,s){const o=n[i]||{};Object.keys(o).forEach(e=>{e.includes(s)&&(e=o[e],I(t,n,i,e.originalHandler,e.delegationSelector))})}(n,l,e,i.slice(1))});const c=l[r]||{};Object.keys(c).forEach(e=>{var t=e.replace(E,"");a&&!i.includes(t)||(e=c[e],I(n,l,r,e.originalHandler,e.delegationSelector))})}},trigger(e,t,n){if("string"!=typeof t||!e)return null;const i=(r=window.jQuery)&&!document.body.hasAttribute("data-bs-no-jquery")?r:null;var s=P(t),o=t!==s,r=L.has(s);let a,l=!0,c=!0,u=!1,d=null;return o&&i&&(a=i.Event(t,n),i(e).trigger(a),l=!a.isPropagationStopped(),c=!a.isImmediatePropagationStopped(),u=a.isDefaultPrevented()),r?(d=document.createEvent("HTMLEvents"),d.initEvent(s,l,!0)):d=new CustomEvent(t,{bubbles:l,cancelable:!0}),void 0!==n&&Object.keys(n).forEach(e=>{Object.defineProperty(d,e,{get(){return n[e]}})}),u&&d.preventDefault(),c&&e.dispatchEvent(d),d.defaultPrevented&&void 0!==a&&a.preventDefault(),d}},M=new Map;var H=function(e,t,n){M.has(e)||M.set(e,new Map);const i=M.get(e);i.has(t)||0===i.size?i.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},R=function(e,t){return M.has(e)&&M.get(e).get(t)||null},e=function(e,t){if(M.has(e)){const n=M.get(e);n.delete(t),0===n.size&&M.delete(e)}};class B{constructor(e){(e=u(e))&&(this._element=e,H(this._element,this.constructor.DATA_KEY,this))}dispose(){e(this._element,this.constructor.DATA_KEY),j.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(e=>{this[e]=null})}_queueCallback(e,t,n=!0){v(e,t,n)}static getInstance(e){return R(e,this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.0.2"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return"bs."+this.NAME}static get EVENT_KEY(){return"."+this.DATA_KEY}}class W extends B{static get NAME(){return"alert"}close(e){var t=e?this._getRootElement(e):this._element,e=this._triggerCloseEvent(t);null===e||e.defaultPrevented||this._removeElement(t)}_getRootElement(e){return s(e)||e.closest(".alert")}_triggerCloseEvent(e){return j.trigger(e,"close.bs.alert")}_removeElement(e){e.classList.remove("show");var t=e.classList.contains("fade");this._queueCallback(()=>this._destroyElement(e),e,t)}_destroyElement(e){e.remove(),j.trigger(e,"closed.bs.alert")}static jQueryInterface(t){return this.each(function(){const e=W.getOrCreateInstance(this);"close"===t&&e[t](this)})}static handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}}j.on(document,"click.bs.alert.data-api",'[data-bs-dismiss="alert"]',W.handleDismiss(new W));const q='[data-bs-toggle="button"]';class z extends B{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){const e=z.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}function U(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function F(e){return e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}j.on(document,"click.bs.button.data-api",q,e=>{e.preventDefault();e=e.target.closest(q);const t=z.getOrCreateInstance(e);t.toggle()});const $={setDataAttribute(e,t,n){e.setAttribute("data-bs-"+F(t),n)},removeDataAttribute(e,t){e.removeAttribute("data-bs-"+F(t))},getDataAttributes(n){if(!n)return{};const i={};return Object.keys(n.dataset).filter(e=>e.startsWith("bs")).forEach(e=>{let t=e.replace(/^bs/,"");t=t.charAt(0).toLowerCase()+t.slice(1,t.length),i[t]=U(n.dataset[e])}),i},getDataAttribute(e,t){return U(e.getAttribute("data-bs-"+F(t)))},offset(e){e=e.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},position(e){return{top:e.offsetTop,left:e.offsetLeft}}},V="carousel";var X=".bs.carousel";const K={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Y={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Q="next",G="prev",Z="left",J="right",ee={ArrowLeft:J,ArrowRight:Z},te="slid"+X;const ne="active",ie=".active.carousel-item";class se extends B{constructor(e,t){super(e),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._indicatorsElement=d.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||0this._items.length-1||e<0))if(this._isSliding)j.one(this._element,te,()=>this.to(e));else{if(t===e)return this.pause(),void this.cycle();t=tthis._keydown(e)),"hover"===this._config.pause&&(j.on(this._element,"mouseenter.bs.carousel",e=>this.pause(e)),j.on(this._element,"mouseleave.bs.carousel",e=>this.cycle(e))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const t=e=>{!this._pointerEvent||"pen"!==e.pointerType&&"touch"!==e.pointerType?this._pointerEvent||(this.touchStartX=e.touches[0].clientX):this.touchStartX=e.clientX},n=e=>{this.touchDeltaX=e.touches&&1{!this._pointerEvent||"pen"!==e.pointerType&&"touch"!==e.pointerType||(this.touchDeltaX=e.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(e=>this.cycle(e),500+this._config.interval))};d.find(".carousel-item img",this._element).forEach(e=>{j.on(e,"dragstart.bs.carousel",e=>e.preventDefault())}),this._pointerEvent?(j.on(this._element,"pointerdown.bs.carousel",e=>t(e)),j.on(this._element,"pointerup.bs.carousel",e=>i(e)),this._element.classList.add("pointer-event")):(j.on(this._element,"touchstart.bs.carousel",e=>t(e)),j.on(this._element,"touchmove.bs.carousel",e=>n(e)),j.on(this._element,"touchend.bs.carousel",e=>i(e)))}_keydown(e){var t;/input|textarea/i.test(e.target.tagName)||(t=ee[e.key])&&(e.preventDefault(),this._slide(t))}_getItemIndex(e){return this._items=e&&e.parentNode?d.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}_getItemByOrder(e,t){e=e===Q;return b(this._items,t,e,this._config.wrap)}_triggerSlideEvent(e,t){var n=this._getItemIndex(e),i=this._getItemIndex(d.findOne(ie,this._element));return j.trigger(this._element,"slide.bs.carousel",{relatedTarget:e,direction:t,from:i,to:n})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=d.findOne(".active",this._indicatorsElement);e.classList.remove(ne),e.removeAttribute("aria-current");const n=d.find("[data-bs-target]",this._indicatorsElement);for(let e=0;e{j.trigger(this._element,te,{relatedTarget:o,direction:c,from:s,to:r})};this._element.classList.contains("slide")?(o.classList.add(l),g(o),i.classList.add(a),o.classList.add(a),this._queueCallback(()=>{o.classList.remove(a,l),o.classList.add(ne),i.classList.remove(ne,l,a),this._isSliding=!1,setTimeout(u,0)},i,!0)):(i.classList.remove(ne),o.classList.add(ne),this._isSliding=!1,u()),e&&this.cycle()}}}_directionToOrder(e){return[J,Z].includes(e)?m()?e===Z?G:Q:e===Z?Q:G:e}_orderToDirection(e){return[Q,G].includes(e)?m()?e===G?Z:J:e===G?J:Z:e}static carouselInterface(e,t){const n=se.getOrCreateInstance(e,t);let i=n["_config"];"object"==typeof t&&(i={...i,...t});e="string"==typeof t?t:i.slide;if("number"==typeof t)n.to(t);else if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}else i.interval&&i.ride&&(n.pause(),n.cycle())}static jQueryInterface(e){return this.each(function(){se.carouselInterface(this,e)})}static dataApiClickHandler(e){const t=s(this);if(t&&t.classList.contains("carousel")){const i={...$.getDataAttributes(t),...$.getDataAttributes(this)};var n=this.getAttribute("data-bs-slide-to");n&&(i.interval=!1),se.carouselInterface(t,i),n&&se.getInstance(t).to(n),e.preventDefault()}}}j.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",se.dataApiClickHandler),j.on(window,"load.bs.carousel.data-api",()=>{var n=d.find('[data-bs-ride="carousel"]');for(let e=0,t=n.length;ee===this._element);null!==s&&o.length&&(this._selector=s,this._triggerArray.push(i))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}static get Default(){return ae}static get NAME(){return oe}toggle(){this._element.classList.contains(ce)?this.hide():this.show()}show(){if(!this._isTransitioning&&!this._element.classList.contains(ce)){let e,t;this._parent&&(e=d.find(".show, .collapsing",this._parent).filter(e=>"string"==typeof this._config.parent?e.getAttribute("data-bs-parent")===this._config.parent:e.classList.contains(ue)),0===e.length&&(e=null));const i=d.findOne(this._selector);if(e){var n=e.find(e=>i!==e);if(t=n?pe.getInstance(n):null,t&&t._isTransitioning)return}if(!j.trigger(this._element,"show.bs.collapse").defaultPrevented){e&&e.forEach(e=>{i!==e&&pe.collapseInterface(e,"hide"),t||H(e,re,null)});const s=this._getDimension();this._element.classList.remove(ue),this._element.classList.add(de),this._element.style[s]=0,this._triggerArray.length&&this._triggerArray.forEach(e=>{e.classList.remove(he),e.setAttribute("aria-expanded",!0)}),this.setTransitioning(!0);n="scroll"+(s[0].toUpperCase()+s.slice(1));this._queueCallback(()=>{this._element.classList.remove(de),this._element.classList.add(ue,ce),this._element.style[s]="",this.setTransitioning(!1),j.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[s]=this._element[n]+"px"}}}hide(){if(!this._isTransitioning&&this._element.classList.contains(ce)&&!j.trigger(this._element,"hide.bs.collapse").defaultPrevented){var e=this._getDimension();this._element.style[e]=this._element.getBoundingClientRect()[e]+"px",g(this._element),this._element.classList.add(de),this._element.classList.remove(ue,ce);var t=this._triggerArray.length;if(0{this.setTransitioning(!1),this._element.classList.remove(de),this._element.classList.add(ue),j.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}}setTransitioning(e){this._isTransitioning=e}_getConfig(e){return(e={...ae,...e}).toggle=Boolean(e.toggle),n(oe,e,le),e}_getDimension(){return this._element.classList.contains("width")?"width":"height"}_getParent(){var e=this._config["parent"],e=u(e),t=fe+`[data-bs-parent="${e}"]`;return d.find(t,e).forEach(e=>{var t=s(e);this._addAriaAndCollapsedClass(t,[e])}),e}_addAriaAndCollapsedClass(e,t){if(e&&t.length){const n=e.classList.contains(ce);t.forEach(e=>{n?e.classList.remove(he):e.classList.add(he),e.setAttribute("aria-expanded",n)})}}static collapseInterface(e,t){let n=pe.getInstance(e);const i={...ae,...$.getDataAttributes(e),..."object"==typeof t&&t?t:{}};if(!n&&i.toggle&&"string"==typeof t&&/show|hide/.test(t)&&(i.toggle=!1),n=n||new pe(e,i),"string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}static jQueryInterface(e){return this.each(function(){pe.collapseInterface(this,e)})}}j.on(document,"click.bs.collapse.data-api",fe,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();const i=$.getDataAttributes(this);e=a(this);const t=d.find(e);t.forEach(e=>{const t=pe.getInstance(e);let n;n=t?(null===t._parent&&"string"==typeof i.parent&&(t._config.parent=i.parent,t._parent=t._getParent()),"toggle"):i,pe.collapseInterface(e,n)})});var ge="top",me="bottom",_e="right",ve="left",be="auto",ye=[ge,me,_e,ve],we="start",Ee="end",Oe="clippingParents",Te="viewport",Ae="popper",xe="reference",Le=ye.reduce(function(e,t){return e.concat([t+"-"+we,t+"-"+Ee])},[]),Ce=[].concat(ye,[be]).reduce(function(e,t){return e.concat([t,t+"-"+we,t+"-"+Ee])},[]),De="beforeRead",Ne="afterRead",Se="beforeMain",ke="afterMain",Ie="beforeWrite",Pe="afterWrite",je=[De,"read",Ne,Se,"main",ke,Ie,"write",Pe];function Me(e){return e?(e.nodeName||"").toLowerCase():null}function He(e){if(null==e)return window;if("[object Window]"===e.toString())return e;e=e.ownerDocument;return e&&e.defaultView||window}function Re(e){return e instanceof He(e).Element||e instanceof Element}function Be(e){return e instanceof He(e).HTMLElement||e instanceof HTMLElement}function We(e){return"undefined"!=typeof ShadowRoot&&(e instanceof He(e).ShadowRoot||e instanceof ShadowRoot)}var qe={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var s=e.state;Object.keys(s.elements).forEach(function(e){var t=s.styles[e]||{},n=s.attributes[e]||{},i=s.elements[e];Be(i)&&Me(i)&&(Object.assign(i.style,t),Object.keys(n).forEach(function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var i=e.state,s={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(i.elements.popper.style,s.popper),i.styles=s,i.elements.arrow&&Object.assign(i.elements.arrow.style,s.arrow),function(){Object.keys(i.elements).forEach(function(e){var t=i.elements[e],n=i.attributes[e]||{},e=Object.keys((i.styles.hasOwnProperty(e)?i.styles:s)[e]).reduce(function(e,t){return e[t]="",e},{});Be(t)&&Me(t)&&(Object.assign(t.style,e),Object.keys(n).forEach(function(e){t.removeAttribute(e)}))})}},requires:["computeStyles"]};function ze(e){return e.split("-")[0]}function Ue(e){e=e.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function Fe(e){var t=Ue(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function $e(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&We(n)){var i=t;do{if(i&&e.isSameNode(i))return!0}while(i=i.parentNode||i.host)}return!1}function Ve(e){return He(e).getComputedStyle(e)}function Xe(e){return((Re(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ke(e){return"html"===Me(e)?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||Xe(e)}function Ye(e){return Be(e)&&"fixed"!==Ve(e).position?e.offsetParent:null}function Qe(e){for(var t,n=He(e),i=Ye(e);i&&(t=i,0<=["table","td","th"].indexOf(Me(t)))&&"static"===Ve(i).position;)i=Ye(i);return(!i||"html"!==Me(i)&&("body"!==Me(i)||"static"!==Ve(i).position))&&(i||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),n=-1!==navigator.userAgent.indexOf("Trident");if(n&&Be(e)&&"fixed"===Ve(e).position)return null;for(var i=Ke(e);Be(i)&&["html","body"].indexOf(Me(i))<0;){var s=Ve(i);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||t&&"filter"===s.willChange||t&&s.filter&&"none"!==s.filter)return i;i=i.parentNode}return null}(e))||n}function Ge(e){return 0<=["top","bottom"].indexOf(e)?"x":"y"}var Ze=Math.max,Je=Math.min,et=Math.round;function tt(e,t,n){return Ze(e,Je(t,n))}function nt(){return{top:0,right:0,bottom:0,left:0}}function it(e){return Object.assign({},nt(),e)}function st(n,e){return e.reduce(function(e,t){return e[t]=n,e},{})}var ot={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,i=e.state,s=e.name,o=e.options,r=i.elements.arrow,a=i.modifiersData.popperOffsets,l=ze(i.placement),c=Ge(l),u=0<=[ve,_e].indexOf(l)?"height":"width";r&&a&&(t=o.padding,n=i,e=it("number"!=typeof(t="function"==typeof t?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:st(t,ye)),l=Fe(r),o="y"===c?ge:ve,n="y"===c?me:_e,t=i.rects.reference[u]+i.rects.reference[c]-a[c]-i.rects.popper[u],a=a[c]-i.rects.reference[c],r=(r=Qe(r))?"y"===c?r.clientHeight||0:r.clientWidth||0:0,o=e[o],n=r-l[u]-e[n],n=tt(o,a=r/2-l[u]/2+(t/2-a/2),n),i.modifiersData[s]=((s={})[c]=n,s.centerOffset=n-a,s))},effect:function(e){var t=e.state;null!=(e=void 0===(e=e.options.element)?"[data-popper-arrow]":e)&&("string"!=typeof e||(e=t.elements.popper.querySelector(e)))&&$e(t.elements.popper,e)&&(t.elements.arrow=e)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},rt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function at(e){var t=e.popper,n=e.popperRect,i=e.placement,s=e.offsets,o=e.position,r=e.gpuAcceleration,a=e.adaptive,l=e.roundOffsets,c=!0===l?(f=(g=s).x,p=g.y,g=window.devicePixelRatio||1,{x:et(et(f*g)/g)||0,y:et(et(p*g)/g)||0}):"function"==typeof l?l(s):s,u=c.x,d=void 0===u?0:u,h=c.y,e=void 0===h?0:h,f=s.hasOwnProperty("x"),p=s.hasOwnProperty("y"),g=ve,l=ge,u=window;a&&(c="clientHeight",h="clientWidth",(s=Qe(t))===He(t)&&"static"!==Ve(s=Xe(t)).position&&(c="scrollHeight",h="scrollWidth"),i===ge&&(l=me,e-=s[c]-n.height,e*=r?1:-1),i===ve&&(g=_e,d-=s[h]-n.width,d*=r?1:-1));var a=Object.assign({position:o},a&&rt);return r?Object.assign({},a,((r={})[l]=p?"0":"",r[g]=f?"0":"",r.transform=(u.devicePixelRatio||1)<2?"translate("+d+"px, "+e+"px)":"translate3d("+d+"px, "+e+"px, 0)",r)):Object.assign({},a,((a={})[l]=p?e+"px":"",a[g]=f?d+"px":"",a.transform="",a))}var lt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,e=void 0===(i=n.gpuAcceleration)||i,i=void 0===(i=n.adaptive)||i,n=void 0===(n=n.roundOffsets)||n,e={placement:ze(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:e};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,at(Object.assign({},e,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:n})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,at(Object.assign({},e,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:n})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ct={passive:!0};var ut={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=void 0===(e=i.scroll)||e,o=void 0===(i=i.resize)||i,r=He(t.elements.popper),a=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&a.forEach(function(e){e.addEventListener("scroll",n.update,ct)}),o&&r.addEventListener("resize",n.update,ct),function(){s&&a.forEach(function(e){e.removeEventListener("scroll",n.update,ct)}),o&&r.removeEventListener("resize",n.update,ct)}},data:{}},dt={left:"right",right:"left",bottom:"top",top:"bottom"};function ht(e){return e.replace(/left|right|bottom|top/g,function(e){return dt[e]})}var ft={start:"end",end:"start"};function pt(e){return e.replace(/start|end/g,function(e){return ft[e]})}function gt(e){e=He(e);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function mt(e){return Ue(Xe(e)).left+gt(e).scrollLeft}function _t(e){var t=Ve(e),n=t.overflow,e=t.overflowX,t=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+t+e)}function vt(e,t){void 0===t&&(t=[]);var n=function e(t){return 0<=["html","body","#document"].indexOf(Me(t))?t.ownerDocument.body:Be(t)&&_t(t)?t:e(Ke(t))}(e),e=n===(null==(i=e.ownerDocument)?void 0:i.body),i=He(n),n=e?[i].concat(i.visualViewport||[],_t(n)?n:[]):n,t=t.concat(n);return e?t:t.concat(vt(Ke(n)))}function bt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function yt(e,t){return t===Te?bt((o=He(s=e),r=Xe(s),a=o.visualViewport,l=r.clientWidth,c=r.clientHeight,r=o=0,a&&(l=a.width,c=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=a.offsetLeft,r=a.offsetTop)),{width:l,height:c,x:o+mt(s),y:r})):Be(t)?((i=Ue(n=t)).top=i.top+n.clientTop,i.left=i.left+n.clientLeft,i.bottom=i.top+n.clientHeight,i.right=i.left+n.clientWidth,i.width=n.clientWidth,i.height=n.clientHeight,i.x=i.left,i.y=i.top,i):bt((s=Xe(e),r=Xe(s),t=gt(s),i=null==(n=s.ownerDocument)?void 0:n.body,e=Ze(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),n=Ze(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-t.scrollLeft+mt(s),t=-t.scrollTop,"rtl"===Ve(i||r).direction&&(s+=Ze(r.clientWidth,i?i.clientWidth:0)-e),{width:e,height:n,x:s,y:t}));var n,i,s,o,r,a,l,c}function wt(n,e,t){var i,s,o,e="clippingParents"===e?(s=vt(Ke(i=n)),Re(o=0<=["absolute","fixed"].indexOf(Ve(i).position)&&Be(i)?Qe(i):i)?s.filter(function(e){return Re(e)&&$e(e,o)&&"body"!==Me(e)}):[]):[].concat(e),e=[].concat(e,[t]),t=e[0],t=e.reduce(function(e,t){t=yt(n,t);return e.top=Ze(t.top,e.top),e.right=Je(t.right,e.right),e.bottom=Je(t.bottom,e.bottom),e.left=Ze(t.left,e.left),e},yt(n,t));return t.width=t.right-t.left,t.height=t.bottom-t.top,t.x=t.left,t.y=t.top,t}function Et(e){return e.split("-")[1]}function Ot(e){var t,n=e.reference,i=e.element,s=e.placement,e=s?ze(s):null,s=s?Et(s):null,o=n.x+n.width/2-i.width/2,r=n.y+n.height/2-i.height/2;switch(e){case ge:t={x:o,y:n.y-i.height};break;case me:t={x:o,y:n.y+n.height};break;case _e:t={x:n.x+n.width,y:r};break;case ve:t={x:n.x-i.width,y:r};break;default:t={x:n.x,y:n.y}}var a=e?Ge(e):null;if(null!=a){var l="y"===a?"height":"width";switch(s){case we:t[a]=t[a]-(n[l]/2-i[l]/2);break;case Ee:t[a]=t[a]+(n[l]/2-i[l]/2)}}return t}function Tt(e,t){var i,n=t=void 0===t?{}:t,s=n.placement,o=void 0===s?e.placement:s,r=n.boundary,a=void 0===r?Oe:r,l=n.rootBoundary,c=void 0===l?Te:l,t=n.elementContext,s=void 0===t?Ae:t,r=n.altBoundary,l=void 0!==r&&r,t=n.padding,r=void 0===t?0:t,n=it("number"!=typeof r?r:st(r,ye)),t=e.elements.reference,r=e.rects.popper,l=e.elements[l?s===Ae?xe:Ae:s],a=wt(Re(l)?l:l.contextElement||Xe(e.elements.popper),a,c),c=Ue(t),t=Ot({reference:c,element:r,strategy:"absolute",placement:o}),t=bt(Object.assign({},r,t)),c=s===Ae?t:c,u={top:a.top-c.top+n.top,bottom:c.bottom-a.bottom+n.bottom,left:a.left-c.left+n.left,right:c.right-a.right+n.right},e=e.modifiersData.offset;return s===Ae&&e&&(i=e[o],Object.keys(u).forEach(function(e){var t=0<=[_e,me].indexOf(e)?1:-1,n=0<=[ge,me].indexOf(e)?"y":"x";u[e]+=i[n]*t})),u}var At={name:"flip",enabled:!0,phase:"main",fn:function(e){var d=e.state,t=e.options,n=e.name;if(!d.modifiersData[n]._skip){for(var i=t.mainAxis,s=void 0===i||i,e=t.altAxis,o=void 0===e||e,i=t.fallbackPlacements,h=t.padding,f=t.boundary,p=t.rootBoundary,r=t.altBoundary,e=t.flipVariations,g=void 0===e||e,m=t.allowedAutoPlacements,e=d.options.placement,t=ze(e),t=i||(t===e||!g?[ht(e)]:function(e){if(ze(e)===be)return[];var t=ht(e);return[pt(e),t,pt(t)]}(e)),a=[e].concat(t).reduce(function(e,t){return e.concat(ze(t)===be?(n=d,s=i=void 0===(i={placement:t,boundary:f,rootBoundary:p,padding:h,flipVariations:g,allowedAutoPlacements:m})?{}:i,e=s.placement,o=s.boundary,r=s.rootBoundary,a=s.padding,i=s.flipVariations,l=void 0===(s=s.allowedAutoPlacements)?Ce:s,c=Et(e),e=c?i?Le:Le.filter(function(e){return Et(e)===c}):ye,u=(i=0===(i=e.filter(function(e){return 0<=l.indexOf(e)})).length?e:i).reduce(function(e,t){return e[t]=Tt(n,{placement:t,boundary:o,rootBoundary:r,padding:a})[ze(t)],e},{}),Object.keys(u).sort(function(e,t){return u[e]-u[t]})):t);var n,i,s,o,r,a,l,c,u},[]),l=d.rects.reference,c=d.rects.popper,u=new Map,_=!0,v=a[0],b=0;bc[T]&&(O=ht(O));E=ht(O),T=[];if(s&&T.push(A[w]<=0),o&&T.push(A[O]<=0,A[E]<=0),T.every(function(e){return e})){v=y,_=!1;break}u.set(y,T)}if(_)for(var x=g?3:1;0"applyStyles"===e.name&&!1===e.enabled);this._popper=Mt(e,this._menu,i),t&&$.setDataAttribute(this._menu,"popper","static")}"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav")&&[].concat(...document.body.children).forEach(e=>j.on(e,"mouseover",p)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle(Ut),this._element.classList.toggle(Ut),j.trigger(this._element,"shown.bs.dropdown",e)}}}hide(){var e;!h(this._element)&&this._menu.classList.contains(Ut)&&(e={relatedTarget:this._element},this._completeHide(e))}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_addEventListeners(){j.on(this._element,"click.bs.dropdown",e=>{e.preventDefault(),this.toggle()})}_completeHide(e){j.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(e=>j.off(e,"mouseover",p)),this._popper&&this._popper.destroy(),this._menu.classList.remove(Ut),this._element.classList.remove(Ut),this._element.setAttribute("aria-expanded","false"),$.removeDataAttribute(this._menu,"popper"),j.trigger(this._element,"hidden.bs.dropdown",e))}_getConfig(e){if(e={...this.constructor.Default,...$.getDataAttributes(this._element),...e},n(Rt,e,this.constructor.DefaultType),"object"==typeof e.reference&&!c(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(Rt.toUpperCase()+': Option "reference" provided type "object" without a required "getBoundingClientRect" method.');return e}_getMenuElement(){return d.next(this._element,$t)[0]}_getPlacement(){const e=this._element.parentNode;if(e.classList.contains("dropend"))return Qt;if(e.classList.contains("dropstart"))return Gt;var t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Xt:Vt:t?Yt:Kt}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const t=this._config["offset"];return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_selectMenuItem({key:e,target:t}){const n=d.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(i);n.length&&b(n,t,e===qt,!n.includes(t)).focus()}static dropdownInterface(e,t){const n=en.getOrCreateInstance(e,t);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}static jQueryInterface(e){return this.each(function(){en.dropdownInterface(this,e)})}static clearMenus(n){if(!n||2!==n.button&&("keyup"!==n.type||"Tab"===n.key)){var i=d.find(Ft);for(let e=0,t=i.length;ethis.matches(Ft)?this:d.prev(this,Ft)[0];return e.key===Bt?(n().focus(),void en.clearMenus()):e.key===Wt||e.key===qt?(t||n().click(),void en.getInstance(n())._selectMenuItem(e)):void(t&&"Space"!==e.key||en.clearMenus())}}}}j.on(document,Nt,Ft,en.dataApiKeydownHandler),j.on(document,Nt,$t,en.dataApiKeydownHandler),j.on(document,X,en.clearMenus),j.on(document,"keyup.bs.dropdown.data-api",en.clearMenus),j.on(document,X,Ft,function(e){e.preventDefault(),en.dropdownInterface(this)});const tn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]);const nn=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,sn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;Nt={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function on(e,n,t){if(!e.length)return e;if(t&&"function"==typeof t)return t(e);const i=new window.DOMParser,s=i.parseFromString(e,"text/html"),o=Object.keys(n);var r=[].concat(...s.body.querySelectorAll("*"));for(let e=0,t=r.length;e{((e,t)=>{var n=e.nodeName.toLowerCase();if(t.includes(n))return!tn.has(n)||Boolean(nn.test(e.nodeValue)||sn.test(e.nodeValue));const i=t.filter(e=>e instanceof RegExp);for(let e=0,t=i.length;e
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:Nt,popperConfig:null},fn={HIDE:"hide"+X,HIDDEN:"hidden"+X,SHOW:"show"+X,SHOWN:"shown"+X,INSERTED:"inserted"+X,CLICK:"click"+X,FOCUSIN:"focusin"+X,FOCUSOUT:"focusout"+X,MOUSEENTER:"mouseenter"+X,MOUSELEAVE:"mouseleave"+X},pn="fade",gn="show",mn="show",_n="hover",vn="focus";class bn extends B{constructor(e,t){if(void 0===Ht)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(t),this.tip=null,this._setListeners()}static get Default(){return hn}static get NAME(){return rn}static get Event(){return fn}static get DefaultType(){return un}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(e){if(this._isEnabled)if(e){const t=this._initializeOnDelegatedTarget(e);t._activeTrigger.click=!t._activeTrigger.click,t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else this.getTipElement().classList.contains(gn)?this._leave(null,this):this._enter(null,this)}dispose(){clearTimeout(this._timeout),j.off(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.remove(),this._popper&&this._popper.destroy(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this._isEnabled){var e=j.trigger(this._element,this.constructor.Event.SHOW);const n=f(this._element);var t=(null===n?this._element.ownerDocument.documentElement:n).contains(this._element);if(!e.defaultPrevented&&t){const i=this.getTipElement();t=(e=>{for(;e+=Math.floor(1e6*Math.random()),document.getElementById(e););return e})(this.constructor.NAME);i.setAttribute("id",t),this._element.setAttribute("aria-describedby",t),this.setContent(),this._config.animation&&i.classList.add(pn);t="function"==typeof this._config.placement?this._config.placement.call(this,i,this._element):this._config.placement,t=this._getAttachment(t);this._addAttachmentClass(t);const s=this._config["container"];H(i,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(s.appendChild(i),j.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Mt(this._element,i,this._getPopperConfig(t)),i.classList.add(gn);const o="function"==typeof this._config.customClass?this._config.customClass():this._config.customClass;o&&i.classList.add(...o.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(e=>{j.on(e,"mouseover",p)});t=this.tip.classList.contains(pn);this._queueCallback(()=>{var e=this._hoverState;this._hoverState=null,j.trigger(this._element,this.constructor.Event.SHOWN),"out"===e&&this._leave(null,this)},this.tip,t)}}}hide(){if(this._popper){const t=this.getTipElement();var e;j.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented||(t.classList.remove(gn),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(e=>j.off(e,"mouseover",p)),this._activeTrigger.click=!1,this._activeTrigger[vn]=!1,this._activeTrigger[_n]=!1,e=this.tip.classList.contains(pn),this._queueCallback(()=>{this._isWithActiveTrigger()||(this._hoverState!==mn&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),j.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null))},this.tip,e),this._hoverState="")}}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const e=document.createElement("div");return e.innerHTML=this._config.template,this.tip=e.children[0],this.tip}setContent(){const e=this.getTipElement();this.setElementContent(d.findOne(".tooltip-inner",e),this.getTitle()),e.classList.remove(pn,gn)}setElementContent(e,t){if(null!==e)return c(t)?(t=u(t),void(this._config.html?t.parentNode!==e&&(e.innerHTML="",e.appendChild(t)):e.textContent=t.textContent)):void(this._config.html?(this._config.sanitize&&(t=on(t,this._config.allowList,this._config.sanitizeFn)),e.innerHTML=t):e.textContent=t)}getTitle(){let e=this._element.getAttribute("data-bs-original-title");return e=e||("function"==typeof this._config.title?this._config.title.call(this._element):this._config.title),e}updateAttachment(e){return"right"===e?"end":"left"===e?"start":e}_initializeOnDelegatedTarget(e,t){var n=this.constructor.DATA_KEY;return(t=t||R(e.delegateTarget,n))||(t=new this.constructor(e.delegateTarget,this._getDelegateConfig()),H(e.delegateTarget,n,t)),t}_getOffset(){const t=this._config["offset"];return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(e){e={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:e=>this._handlePopperPlacementChange(e)}],onFirstUpdate:e=>{e.options.placement!==e.placement&&this._handlePopperPlacementChange(e)}};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_addAttachmentClass(e){this.getTipElement().classList.add(an+"-"+this.updateAttachment(e))}_getAttachment(e){return dn[e.toUpperCase()]}_setListeners(){const e=this._config.trigger.split(" ");e.forEach(e=>{var t;"click"===e?j.on(this._element,this.constructor.Event.CLICK,this._config.selector,e=>this.toggle(e)):"manual"!==e&&(t=e===_n?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,e=e===_n?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT,j.on(this._element,t,this._config.selector,e=>this._enter(e)),j.on(this._element,e,this._config.selector,e=>this._leave(e)))}),this._hideModalHandler=()=>{this._element&&this.hide()},j.on(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){var e=this._element.getAttribute("title"),t=typeof this._element.getAttribute("data-bs-original-title");!e&&"string"==t||(this._element.setAttribute("data-bs-original-title",e||""),!e||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}_enter(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusin"===e.type?vn:_n]=!0),t.getTipElement().classList.contains(gn)||t._hoverState===mn?t._hoverState=mn:(clearTimeout(t._timeout),t._hoverState=mn,t._config.delay&&t._config.delay.show?t._timeout=setTimeout(()=>{t._hoverState===mn&&t.show()},t._config.delay.show):t.show())}_leave(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusout"===e.type?vn:_n]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState="out",t._config.delay&&t._config.delay.hide?t._timeout=setTimeout(()=>{"out"===t._hoverState&&t.hide()},t._config.delay.hide):t.hide())}_isWithActiveTrigger(){for(const e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}_getConfig(e){const t=$.getDataAttributes(this._element);return Object.keys(t).forEach(e=>{cn.has(e)&&delete t[e]}),(e={...this.constructor.Default,...t,..."object"==typeof e&&e?e:{}}).container=!1===e.container?document.body:u(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),n(rn,e,this.constructor.DefaultType),e.sanitize&&(e.template=on(e.template,e.allowList,e.sanitizeFn)),e}_getDelegateConfig(){const e={};if(this._config)for(const t in this._config)this.constructor.Default[t]!==this._config[t]&&(e[t]=this._config[t]);return e}_cleanTipClass(){const t=this.getTipElement(),e=t.getAttribute("class").match(ln);null!==e&&0e.trim()).forEach(e=>t.classList.remove(e))}_handlePopperPlacementChange(e){e=e.state;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}static jQueryInterface(t){return this.each(function(){const e=bn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}const yn="active",wn=".active",En=":scope > li > .active";class On extends B{static get NAME(){return"tab"}show(){if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE||!this._element.classList.contains(yn)){let e;var t=s(this._element),n=this._element.closest(".nav, .list-group");n&&(i="UL"===n.nodeName||"OL"===n.nodeName?En:wn,e=d.find(i,n),e=e[e.length-1]);var i=e?j.trigger(e,"hide.bs.tab",{relatedTarget:this._element}):null;j.trigger(this._element,"show.bs.tab",{relatedTarget:e}).defaultPrevented||null!==i&&i.defaultPrevented||(this._activate(this._element,n),n=()=>{j.trigger(e,"hidden.bs.tab",{relatedTarget:this._element}),j.trigger(this._element,"shown.bs.tab",{relatedTarget:e})},t?this._activate(t,t.parentNode,n):n())}}_activate(e,t,n){const i=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?d.children(t,wn):d.find(En,t))[0];var s=n&&i&&i.classList.contains("fade"),t=()=>this._transitionComplete(e,i,n);i&&s?(i.classList.remove("show"),this._queueCallback(t,e,!0)):t()}_transitionComplete(e,t,n){if(t){t.classList.remove(yn);const s=d.findOne(":scope > .dropdown-menu .active",t.parentNode);s&&s.classList.remove(yn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}e.classList.add(yn),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),g(e),e.classList.contains("fade")&&e.classList.add("show");let i=e.parentNode;i&&"LI"===i.nodeName&&(i=i.parentNode),i&&i.classList.contains("dropdown-menu")&&((t=e.closest(".dropdown"))&&d.find(".dropdown-toggle",t).forEach(e=>e.classList.add(yn)),e.setAttribute("aria-expanded",!0)),n&&n()}static jQueryInterface(t){return this.each(function(){const e=On.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}return j.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',function(e){if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),!h(this)){const t=On.getOrCreateInstance(this);t.show()}}),{Alert:W,Button:z,Carousel:se,Collapse:pe,Dropdown:en,Tab:On,Tooltip:bn}});