import{g as ui}from"./CqkleIqs.js";function fi(ke,Je){for(var f=0;fX[ie]})}}}return Object.freeze(Object.defineProperty(ke,Symbol.toStringTag,{value:"Module"}))}var Ge={exports:{}};/*! * Bootstrap v5.0.2 (https://getbootstrap.com/) * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */var pi=Ge.exports,pn;function mi(){return pn||(pn=1,function(ke,Je){(function(f,X){ke.exports=X()})(pi,function(){const f={find:(n,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,n)),findOne:(n,e=document.documentElement)=>Element.prototype.querySelector.call(e,n),children:(n,e)=>[].concat(...n.children).filter(t=>t.matches(e)),parents(n,e){const t=[];let i=n.parentNode;for(;i&&i.nodeType===Node.ELEMENT_NODE&&i.nodeType!==3;)i.matches(e)&&t.push(i),i=i.parentNode;return t},prev(n,e){let t=n.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(n,e){let t=n.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]}},X=n=>{do n+=Math.floor(1e6*Math.random());while(document.getElementById(n));return n},ie=n=>{let e=n.getAttribute("data-bs-target");if(!e||e==="#"){let t=n.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t="#"+t.split("#")[1]),e=t&&t!=="#"?t.trim():null}return e},de=n=>{const e=ie(n);return e&&document.querySelector(e)?e:null},se=n=>{const e=ie(n);return e?document.querySelector(e):null},vt=n=>{n.dispatchEvent(new Event("transitionend"))},oe=n=>!(!n||typeof n!="object")&&(n.jquery!==void 0&&(n=n[0]),n.nodeType!==void 0),be=n=>oe(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?f.findOne(n):null,te=(n,e,t)=>{Object.keys(t).forEach(i=>{const s=t[i],o=e[i],r=o&&oe(o)?"element":(l=o)==null?""+l:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();var l;if(!new RegExp(s).test(r))throw new TypeError(`${n.toUpperCase()}: Option "${i}" provided type "${r}" but expected type "${s}".`)})},Be=n=>!(!oe(n)||n.getClientRects().length===0)&&getComputedStyle(n).getPropertyValue("visibility")==="visible",ve=n=>!n||n.nodeType!==Node.ELEMENT_NODE||!!n.classList.contains("disabled")||(n.disabled!==void 0?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false"),yt=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){const e=n.getRootNode();return e instanceof ShadowRoot?e:null}return n instanceof ShadowRoot?n:n.parentNode?yt(n.parentNode):null},We=()=>{},ye=n=>n.offsetHeight,wt=()=>{const{jQuery:n}=window;return n&&!document.body.hasAttribute("data-bs-no-jquery")?n:null},Ze=[],H=()=>document.documentElement.dir==="rtl",W=n=>{var e;e=()=>{const t=wt();if(t){const i=n.NAME,s=t.fn[i];t.fn[i]=n.jQueryInterface,t.fn[i].Constructor=n,t.fn[i].noConflict=()=>(t.fn[i]=s,n.jQueryInterface)}},document.readyState==="loading"?(Ze.length||document.addEventListener("DOMContentLoaded",()=>{Ze.forEach(t=>t())}),Ze.push(e)):e()},he=n=>{typeof n=="function"&&n()},Et=(n,e,t=!0)=>{if(!t)return void he(n);const i=(r=>{if(!r)return 0;let{transitionDuration:l,transitionDelay:c}=window.getComputedStyle(r);const d=Number.parseFloat(l),u=Number.parseFloat(c);return d||u?(l=l.split(",")[0],c=c.split(",")[0],1e3*(Number.parseFloat(l)+Number.parseFloat(c))):0})(e)+5;let s=!1;const o=({target:r})=>{r===e&&(s=!0,e.removeEventListener("transitionend",o),he(n))};e.addEventListener("transitionend",o),setTimeout(()=>{s||vt(e)},i)},At=(n,e,t,i)=>{let s=n.indexOf(e);if(s===-1)return n[!t&&i?n.length-1:0];const o=n.length;return s+=t?1:-1,i&&(s=(s+o)%o),n[Math.max(0,Math.min(s,o-1))]},gn=/[^.]*(?=\..*)\.|.*/,_n=/\..*/,bn=/::\d+$/,et={};let Tt=1;const vn={mouseenter:"mouseover",mouseleave:"mouseout"},yn=/^(mouseenter|mouseleave)/i,Ot=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 Ct(n,e){return e&&`${e}::${Tt++}`||n.uidEvent||Tt++}function kt(n){const e=Ct(n);return n.uidEvent=e,et[e]=et[e]||{},et[e]}function Lt(n,e,t=null){const i=Object.keys(n);for(let s=0,o=i.length;sfunction(v){if(!v.relatedTarget||v.relatedTarget!==v.delegateTarget&&!v.delegateTarget.contains(v.relatedTarget))return p.call(this,v)};i?i=g(i):t=g(t)}const[o,r,l]=xt(e,t,i),c=kt(n),d=c[l]||(c[l]={}),u=Lt(d,r,o?t:null);if(u)return void(u.oneOff=u.oneOff&&s);const h=Ct(r,e.replace(gn,"")),_=o?function(g,p,v){return function b(T){const A=g.querySelectorAll(p);for(let{target:w}=T;w&&w!==this;w=w.parentNode)for(let m=A.length;m--;)if(A[m]===w)return T.delegateTarget=w,b.oneOff&&a.off(g,T.type,p,v),v.apply(w,[T]);return null}}(n,t,i):function(g,p){return function v(b){return b.delegateTarget=g,v.oneOff&&a.off(g,b.type,p),p.apply(g,[b])}}(n,t);_.delegationSelector=o?t:null,_.originalHandler=r,_.oneOff=s,_.uidEvent=h,d[h]=_,n.addEventListener(l,_,o)}function tt(n,e,t,i,s){const o=Lt(e[t],i,s);o&&(n.removeEventListener(t,o,!!s),delete e[t][o.uidEvent])}function St(n){return n=n.replace(_n,""),vn[n]||n}const a={on(n,e,t,i){Dt(n,e,t,i,!1)},one(n,e,t,i){Dt(n,e,t,i,!0)},off(n,e,t,i){if(typeof e!="string"||!n)return;const[s,o,r]=xt(e,t,i),l=r!==e,c=kt(n),d=e.startsWith(".");if(o!==void 0)return!c||!c[r]?void 0:void tt(n,c,r,o,s?t:null);d&&Object.keys(c).forEach(h=>{(function(_,g,p,v){const b=g[p]||{};Object.keys(b).forEach(T=>{if(T.includes(v)){const A=b[T];tt(_,g,p,A.originalHandler,A.delegationSelector)}})})(n,c,h,e.slice(1))});const u=c[r]||{};Object.keys(u).forEach(h=>{const _=h.replace(bn,"");if(!l||e.includes(_)){const g=u[h];tt(n,c,r,g.originalHandler,g.delegationSelector)}})},trigger(n,e,t){if(typeof e!="string"||!n)return null;const i=wt(),s=St(e),o=e!==s,r=Ot.has(s);let l,c=!0,d=!0,u=!1,h=null;return o&&i&&(l=i.Event(e,t),i(n).trigger(l),c=!l.isPropagationStopped(),d=!l.isImmediatePropagationStopped(),u=l.isDefaultPrevented()),r?(h=document.createEvent("HTMLEvents"),h.initEvent(s,c,!0)):h=new CustomEvent(e,{bubbles:c,cancelable:!0}),t!==void 0&&Object.keys(t).forEach(_=>{Object.defineProperty(h,_,{get:()=>t[_]})}),u&&h.preventDefault(),d&&n.dispatchEvent(h),h.defaultPrevented&&l!==void 0&&l.preventDefault(),h}},re=new Map;var ue={set(n,e,t){re.has(n)||re.set(n,new Map);const i=re.get(n);i.has(e)||i.size===0?i.set(e,t):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(n,e)=>re.has(n)&&re.get(n).get(e)||null,remove(n,e){if(!re.has(n))return;const t=re.get(n);t.delete(e),t.size===0&&re.delete(n)}};class F{constructor(e){(e=be(e))&&(this._element=e,ue.set(this._element,this.constructor.DATA_KEY,this))}dispose(){ue.remove(this._element,this.constructor.DATA_KEY),a.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(e=>{this[e]=null})}_queueCallback(e,t,i=!0){Et(e,t,i)}static getInstance(e){return ue.get(e,this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?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 we extends F{static get NAME(){return"alert"}close(e){const t=e?this._getRootElement(e):this._element,i=this._triggerCloseEvent(t);i===null||i.defaultPrevented||this._removeElement(t)}_getRootElement(e){return se(e)||e.closest(".alert")}_triggerCloseEvent(e){return a.trigger(e,"close.bs.alert")}_removeElement(e){e.classList.remove("show");const t=e.classList.contains("fade");this._queueCallback(()=>this._destroyElement(e),e,t)}_destroyElement(e){e.remove(),a.trigger(e,"closed.bs.alert")}static jQueryInterface(e){return this.each(function(){const t=we.getOrCreateInstance(this);e==="close"&&t[e](this)})}static handleDismiss(e){return function(t){t&&t.preventDefault(),e.close(this)}}}a.on(document,"click.bs.alert.data-api",'[data-bs-dismiss="alert"]',we.handleDismiss(new we)),W(we);class Le extends F{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each(function(){const t=Le.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}function Nt(n){return n==="true"||n!=="false"&&(n===Number(n).toString()?Number(n):n===""||n==="null"?null:n)}function nt(n){return n.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}a.on(document,"click.bs.button.data-api",'[data-bs-toggle="button"]',n=>{n.preventDefault();const e=n.target.closest('[data-bs-toggle="button"]');Le.getOrCreateInstance(e).toggle()}),W(Le);const I={setDataAttribute(n,e,t){n.setAttribute("data-bs-"+nt(e),t)},removeDataAttribute(n,e){n.removeAttribute("data-bs-"+nt(e))},getDataAttributes(n){if(!n)return{};const e={};return Object.keys(n.dataset).filter(t=>t.startsWith("bs")).forEach(t=>{let i=t.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=Nt(n.dataset[t])}),e},getDataAttribute:(n,e)=>Nt(n.getAttribute("data-bs-"+nt(e))),offset(n){const e=n.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},position:n=>({top:n.offsetTop,left:n.offsetLeft})},It={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},wn={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},fe="next",pe="prev",me="left",xe="right",En={ArrowLeft:xe,ArrowRight:me};class Y extends F{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=f.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=!!window.PointerEvent,this._addEventListeners()}static get Default(){return It}static get NAME(){return"carousel"}next(){this._slide(fe)}nextWhenVisible(){!document.hidden&&Be(this._element)&&this.next()}prev(){this._slide(pe)}pause(e){e||(this._isPaused=!0),f.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(vt(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(e){this._activeElement=f.findOne(".active.carousel-item",this._element);const t=this._getItemIndex(this._activeElement);if(e>this._items.length-1||e<0)return;if(this._isSliding)return void a.one(this._element,"slid.bs.carousel",()=>this.to(e));if(t===e)return this.pause(),void this.cycle();const i=e>t?fe:pe;this._slide(i,this._items[e])}_getConfig(e){return e={...It,...I.getDataAttributes(this._element),...typeof e=="object"?e:{}},te("carousel",e,wn),e}_handleSwipe(){const e=Math.abs(this.touchDeltaX);if(e<=40)return;const t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?xe:me)}_addEventListeners(){this._config.keyboard&&a.on(this._element,"keydown.bs.carousel",e=>this._keydown(e)),this._config.pause==="hover"&&(a.on(this._element,"mouseenter.bs.carousel",e=>this.pause(e)),a.on(this._element,"mouseleave.bs.carousel",e=>this.cycle(e))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const e=s=>{!this._pointerEvent||s.pointerType!=="pen"&&s.pointerType!=="touch"?this._pointerEvent||(this.touchStartX=s.touches[0].clientX):this.touchStartX=s.clientX},t=s=>{this.touchDeltaX=s.touches&&s.touches.length>1?0:s.touches[0].clientX-this.touchStartX},i=s=>{!this._pointerEvent||s.pointerType!=="pen"&&s.pointerType!=="touch"||(this.touchDeltaX=s.clientX-this.touchStartX),this._handleSwipe(),this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(o=>this.cycle(o),500+this._config.interval))};f.find(".carousel-item img",this._element).forEach(s=>{a.on(s,"dragstart.bs.carousel",o=>o.preventDefault())}),this._pointerEvent?(a.on(this._element,"pointerdown.bs.carousel",s=>e(s)),a.on(this._element,"pointerup.bs.carousel",s=>i(s)),this._element.classList.add("pointer-event")):(a.on(this._element,"touchstart.bs.carousel",s=>e(s)),a.on(this._element,"touchmove.bs.carousel",s=>t(s)),a.on(this._element,"touchend.bs.carousel",s=>i(s)))}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=En[e.key];t&&(e.preventDefault(),this._slide(t))}_getItemIndex(e){return this._items=e&&e.parentNode?f.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}_getItemByOrder(e,t){const i=e===fe;return At(this._items,t,i,this._config.wrap)}_triggerSlideEvent(e,t){const i=this._getItemIndex(e),s=this._getItemIndex(f.findOne(".active.carousel-item",this._element));return a.trigger(this._element,"slide.bs.carousel",{relatedTarget:e,direction:t,from:s,to:i})}_setActiveIndicatorElement(e){if(this._indicatorsElement){const t=f.findOne(".active",this._indicatorsElement);t.classList.remove("active"),t.removeAttribute("aria-current");const i=f.find("[data-bs-target]",this._indicatorsElement);for(let s=0;s{a.trigger(this._element,"slid.bs.carousel",{relatedTarget:r,direction:_,from:o,to:l})};if(this._element.classList.contains("slide")){r.classList.add(h),ye(r),s.classList.add(u),r.classList.add(u);const p=()=>{r.classList.remove(u,h),r.classList.add("active"),s.classList.remove("active",h,u),this._isSliding=!1,setTimeout(g,0)};this._queueCallback(p,s,!0)}else s.classList.remove("active"),r.classList.add("active"),this._isSliding=!1,g();c&&this.cycle()}_directionToOrder(e){return[xe,me].includes(e)?H()?e===me?pe:fe:e===me?fe:pe:e}_orderToDirection(e){return[fe,pe].includes(e)?H()?e===pe?me:xe:e===pe?xe:me:e}static carouselInterface(e,t){const i=Y.getOrCreateInstance(e,t);let{_config:s}=i;typeof t=="object"&&(s={...s,...t});const o=typeof t=="string"?t:s.slide;if(typeof t=="number")i.to(t);else if(typeof o=="string"){if(i[o]===void 0)throw new TypeError(`No method named "${o}"`);i[o]()}else s.interval&&s.ride&&(i.pause(),i.cycle())}static jQueryInterface(e){return this.each(function(){Y.carouselInterface(this,e)})}static dataApiClickHandler(e){const t=se(this);if(!t||!t.classList.contains("carousel"))return;const i={...I.getDataAttributes(t),...I.getDataAttributes(this)},s=this.getAttribute("data-bs-slide-to");s&&(i.interval=!1),Y.carouselInterface(t,i),s&&Y.getInstance(t).to(s),e.preventDefault()}}a.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",Y.dataApiClickHandler),a.on(window,"load.bs.carousel.data-api",()=>{const n=f.find('[data-bs-ride="carousel"]');for(let e=0,t=n.length;ed===this._element);l!==null&&c.length&&(this._selector=l,this._triggerArray.push(r))}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 it}static get NAME(){return"collapse"}toggle(){this._element.classList.contains("show")?this.hide():this.show()}show(){if(this._isTransitioning||this._element.classList.contains("show"))return;let e,t;this._parent&&(e=f.find(".show, .collapsing",this._parent).filter(r=>typeof this._config.parent=="string"?r.getAttribute("data-bs-parent")===this._config.parent:r.classList.contains("collapse")),e.length===0&&(e=null));const i=f.findOne(this._selector);if(e){const r=e.find(l=>i!==l);if(t=r?Q.getInstance(r):null,t&&t._isTransitioning)return}if(a.trigger(this._element,"show.bs.collapse").defaultPrevented)return;e&&e.forEach(r=>{i!==r&&Q.collapseInterface(r,"hide"),t||ue.set(r,"bs.collapse",null)});const s=this._getDimension();this._element.classList.remove("collapse"),this._element.classList.add("collapsing"),this._element.style[s]=0,this._triggerArray.length&&this._triggerArray.forEach(r=>{r.classList.remove("collapsed"),r.setAttribute("aria-expanded",!0)}),this.setTransitioning(!0);const o="scroll"+(s[0].toUpperCase()+s.slice(1));this._queueCallback(()=>{this._element.classList.remove("collapsing"),this._element.classList.add("collapse","show"),this._element.style[s]="",this.setTransitioning(!1),a.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[s]=this._element[o]+"px"}hide(){if(this._isTransitioning||!this._element.classList.contains("show")||a.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const e=this._getDimension();this._element.style[e]=this._element.getBoundingClientRect()[e]+"px",ye(this._element),this._element.classList.add("collapsing"),this._element.classList.remove("collapse","show");const t=this._triggerArray.length;if(t>0)for(let i=0;i{this.setTransitioning(!1),this._element.classList.remove("collapsing"),this._element.classList.add("collapse"),a.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}setTransitioning(e){this._isTransitioning=e}_getConfig(e){return(e={...it,...e}).toggle=!!e.toggle,te("collapse",e,An),e}_getDimension(){return this._element.classList.contains("width")?"width":"height"}_getParent(){let{parent:e}=this._config;e=be(e);const t=`[data-bs-toggle="collapse"][data-bs-parent="${e}"]`;return f.find(t,e).forEach(i=>{const s=se(i);this._addAriaAndCollapsedClass(s,[i])}),e}_addAriaAndCollapsedClass(e,t){if(!e||!t.length)return;const i=e.classList.contains("show");t.forEach(s=>{i?s.classList.remove("collapsed"):s.classList.add("collapsed"),s.setAttribute("aria-expanded",i)})}static collapseInterface(e,t){let i=Q.getInstance(e);const s={...it,...I.getDataAttributes(e),...typeof t=="object"&&t?t:{}};if(!i&&s.toggle&&typeof t=="string"&&/show|hide/.test(t)&&(s.toggle=!1),i||(i=new Q(e,s)),typeof t=="string"){if(i[t]===void 0)throw new TypeError(`No method named "${t}"`);i[t]()}}static jQueryInterface(e){return this.each(function(){Q.collapseInterface(this,e)})}}a.on(document,"click.bs.collapse.data-api",'[data-bs-toggle="collapse"]',function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();const e=I.getDataAttributes(this),t=de(this);f.find(t).forEach(i=>{const s=Q.getInstance(i);let o;s?(s._parent===null&&typeof e.parent=="string"&&(s._config.parent=e.parent,s._parent=s._getParent()),o="toggle"):o=e,Q.collapseInterface(i,o)})}),W(Q);var R="top",q="bottom",$="right",B="left",Ee=[R,q,$,B],st=Ee.reduce(function(n,e){return n.concat([e+"-start",e+"-end"])},[]),ot=[].concat(Ee,["auto"]).reduce(function(n,e){return n.concat([e,e+"-start",e+"-end"])},[]),jt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function G(n){return n?(n.nodeName||"").toLowerCase():null}function U(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function De(n){return n instanceof U(n).Element||n instanceof Element}function V(n){return n instanceof U(n).HTMLElement||n instanceof HTMLElement}function Mt(n){return typeof ShadowRoot<"u"&&(n instanceof U(n).ShadowRoot||n instanceof ShadowRoot)}var rt={name:"applyStyles",enabled:!0,phase:"write",fn:function(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},s=e.attributes[t]||{},o=e.elements[t];V(o)&&G(o)&&(Object.assign(o.style,i),Object.keys(s).forEach(function(r){var l=s[r];l===!1?o.removeAttribute(r):o.setAttribute(r,l===!0?"":l)}))})},effect:function(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var s=e.elements[i],o=e.attributes[i]||{},r=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]).reduce(function(l,c){return l[c]="",l},{});V(s)&&G(s)&&(Object.assign(s.style,r),Object.keys(o).forEach(function(l){s.removeAttribute(l)}))})}},requires:["computeStyles"]};function J(n){return n.split("-")[0]}function Ae(n){var e=n.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 at(n){var e=Ae(n),t=n.offsetWidth,i=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:i}}function Pt(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&Mt(t)){var i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function ne(n){return U(n).getComputedStyle(n)}function Tn(n){return["table","td","th"].indexOf(G(n))>=0}function ae(n){return((De(n)?n.ownerDocument:n.document)||window.document).documentElement}function qe(n){return G(n)==="html"?n:n.assignedSlot||n.parentNode||(Mt(n)?n.host:null)||ae(n)}function Ht(n){return V(n)&&ne(n).position!=="fixed"?n.offsetParent:null}function Se(n){for(var e=U(n),t=Ht(n);t&&Tn(t)&&ne(t).position==="static";)t=Ht(t);return t&&(G(t)==="html"||G(t)==="body"&&ne(t).position==="static")?e:t||function(i){var s=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1;if(navigator.userAgent.indexOf("Trident")!==-1&&V(i)&&ne(i).position==="fixed")return null;for(var o=qe(i);V(o)&&["html","body"].indexOf(G(o))<0;){var r=ne(o);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||s&&r.willChange==="filter"||s&&r.filter&&r.filter!=="none")return o;o=o.parentNode}return null}(n)||e}function lt(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}var le=Math.max,Ne=Math.min,$e=Math.round;function ze(n,e,t){return le(n,Ne(e,t))}function Rt(n){return Object.assign({},{top:0,right:0,bottom:0,left:0},n)}function Bt(n,e){return e.reduce(function(t,i){return t[i]=n,t},{})}var Wt={name:"arrow",enabled:!0,phase:"main",fn:function(n){var e,t=n.state,i=n.name,s=n.options,o=t.elements.arrow,r=t.modifiersData.popperOffsets,l=J(t.placement),c=lt(l),d=[B,$].indexOf(l)>=0?"height":"width";if(o&&r){var u=function(E,k){return Rt(typeof(E=typeof E=="function"?E(Object.assign({},k.rects,{placement:k.placement})):E)!="number"?E:Bt(E,Ee))}(s.padding,t),h=at(o),_=c==="y"?R:B,g=c==="y"?q:$,p=t.rects.reference[d]+t.rects.reference[c]-r[c]-t.rects.popper[d],v=r[c]-t.rects.reference[c],b=Se(o),T=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,A=p/2-v/2,w=u[_],m=T-h[d]-u[g],O=T/2-h[d]/2+A,y=ze(w,O,m),C=c;t.modifiersData[i]=((e={})[C]=y,e.centerOffset=y-O,e)}},effect:function(n){var e=n.state,t=n.options.element,i=t===void 0?"[data-popper-arrow]":t;i!=null&&(typeof i!="string"||(i=e.elements.popper.querySelector(i)))&&Pt(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},On={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qt(n){var e,t=n.popper,i=n.popperRect,s=n.placement,o=n.offsets,r=n.position,l=n.gpuAcceleration,c=n.adaptive,d=n.roundOffsets,u=d===!0?function(k){var x=k.x,K=k.y,L=window.devicePixelRatio||1;return{x:$e($e(x*L)/L)||0,y:$e($e(K*L)/L)||0}}(o):typeof d=="function"?d(o):o,h=u.x,_=h===void 0?0:h,g=u.y,p=g===void 0?0:g,v=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),T=B,A=R,w=window;if(c){var m=Se(t),O="clientHeight",y="clientWidth";m===U(t)&&ne(m=ae(t)).position!=="static"&&(O="scrollHeight",y="scrollWidth"),m=m,s===R&&(A=q,p-=m[O]-i.height,p*=l?1:-1),s===B&&(T=$,_-=m[y]-i.width,_*=l?1:-1)}var C,E=Object.assign({position:r},c&&On);return l?Object.assign({},E,((C={})[A]=b?"0":"",C[T]=v?"0":"",C.transform=(w.devicePixelRatio||1)<2?"translate("+_+"px, "+p+"px)":"translate3d("+_+"px, "+p+"px, 0)",C)):Object.assign({},E,((e={})[A]=b?p+"px":"",e[T]=v?_+"px":"",e.transform="",e))}var ct={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(n){var e=n.state,t=n.options,i=t.gpuAcceleration,s=i===void 0||i,o=t.adaptive,r=o===void 0||o,l=t.roundOffsets,c=l===void 0||l,d={placement:J(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,qt(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,qt(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},Fe={passive:!0},dt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(n){var e=n.state,t=n.instance,i=n.options,s=i.scroll,o=s===void 0||s,r=i.resize,l=r===void 0||r,c=U(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&d.forEach(function(u){u.addEventListener("scroll",t.update,Fe)}),l&&c.addEventListener("resize",t.update,Fe),function(){o&&d.forEach(function(u){u.removeEventListener("scroll",t.update,Fe)}),l&&c.removeEventListener("resize",t.update,Fe)}},data:{}},Cn={left:"right",right:"left",bottom:"top",top:"bottom"};function Ue(n){return n.replace(/left|right|bottom|top/g,function(e){return Cn[e]})}var kn={start:"end",end:"start"};function $t(n){return n.replace(/start|end/g,function(e){return kn[e]})}function ht(n){var e=U(n);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ut(n){return Ae(ae(n)).left+ht(n).scrollLeft}function ft(n){var e=ne(n),t=e.overflow,i=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+s+i)}function Ie(n,e){var t;e===void 0&&(e=[]);var i=function c(d){return["html","body","#document"].indexOf(G(d))>=0?d.ownerDocument.body:V(d)&&ft(d)?d:c(qe(d))}(n),s=i===((t=n.ownerDocument)==null?void 0:t.body),o=U(i),r=s?[o].concat(o.visualViewport||[],ft(i)?i:[]):i,l=e.concat(r);return s?l:l.concat(Ie(qe(r)))}function pt(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function zt(n,e){return e==="viewport"?pt(function(t){var i=U(t),s=ae(t),o=i.visualViewport,r=s.clientWidth,l=s.clientHeight,c=0,d=0;return o&&(r=o.width,l=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(c=o.offsetLeft,d=o.offsetTop)),{width:r,height:l,x:c+ut(t),y:d}}(n)):V(e)?function(t){var i=Ae(t);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e):pt(function(t){var i,s=ae(t),o=ht(t),r=(i=t.ownerDocument)==null?void 0:i.body,l=le(s.scrollWidth,s.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),c=le(s.scrollHeight,s.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),d=-o.scrollLeft+ut(t),u=-o.scrollTop;return ne(r||s).direction==="rtl"&&(d+=le(s.clientWidth,r?r.clientWidth:0)-l),{width:l,height:c,x:d,y:u}}(ae(n)))}function je(n){return n.split("-")[1]}function Ft(n){var e,t=n.reference,i=n.element,s=n.placement,o=s?J(s):null,r=s?je(s):null,l=t.x+t.width/2-i.width/2,c=t.y+t.height/2-i.height/2;switch(o){case R:e={x:l,y:t.y-i.height};break;case q:e={x:l,y:t.y+t.height};break;case $:e={x:t.x+t.width,y:c};break;case B:e={x:t.x-i.width,y:c};break;default:e={x:t.x,y:t.y}}var d=o?lt(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(r){case"start":e[d]=e[d]-(t[u]/2-i[u]/2);break;case"end":e[d]=e[d]+(t[u]/2-i[u]/2)}}return e}function Te(n,e){e===void 0&&(e={});var t=e,i=t.placement,s=i===void 0?n.placement:i,o=t.boundary,r=o===void 0?"clippingParents":o,l=t.rootBoundary,c=l===void 0?"viewport":l,d=t.elementContext,u=d===void 0?"popper":d,h=t.altBoundary,_=h!==void 0&&h,g=t.padding,p=g===void 0?0:g,v=Rt(typeof p!="number"?p:Bt(p,Ee)),b=u==="popper"?"reference":"popper",T=n.elements.reference,A=n.rects.popper,w=n.elements[_?b:u],m=function(L,D,z){var ce=D==="clippingParents"?function(S){var ee=Ie(qe(S)),N=["absolute","fixed"].indexOf(ne(S).position)>=0&&V(S)?Se(S):S;return De(N)?ee.filter(function(M){return De(M)&&Pt(M,N)&&G(M)!=="body"}):[]}(L):[].concat(D),Z=[].concat(ce,[z]),Oe=Z[0],j=Z.reduce(function(S,ee){var N=zt(L,ee);return S.top=le(N.top,S.top),S.right=Ne(N.right,S.right),S.bottom=Ne(N.bottom,S.bottom),S.left=le(N.left,S.left),S},zt(L,Oe));return j.width=j.right-j.left,j.height=j.bottom-j.top,j.x=j.left,j.y=j.top,j}(De(w)?w:w.contextElement||ae(n.elements.popper),r,c),O=Ae(T),y=Ft({reference:O,element:A,strategy:"absolute",placement:s}),C=pt(Object.assign({},A,y)),E=u==="popper"?C:O,k={top:m.top-E.top+v.top,bottom:E.bottom-m.bottom+v.bottom,left:m.left-E.left+v.left,right:E.right-m.right+v.right},x=n.modifiersData.offset;if(u==="popper"&&x){var K=x[s];Object.keys(k).forEach(function(L){var D=[$,q].indexOf(L)>=0?1:-1,z=[R,q].indexOf(L)>=0?"y":"x";k[L]+=K[z]*D})}return k}function Ln(n,e){e===void 0&&(e={});var t=e,i=t.placement,s=t.boundary,o=t.rootBoundary,r=t.padding,l=t.flipVariations,c=t.allowedAutoPlacements,d=c===void 0?ot:c,u=je(i),h=u?l?st:st.filter(function(p){return je(p)===u}):Ee,_=h.filter(function(p){return d.indexOf(p)>=0});_.length===0&&(_=h);var g=_.reduce(function(p,v){return p[v]=Te(n,{placement:v,boundary:s,rootBoundary:o,padding:r})[J(v)],p},{});return Object.keys(g).sort(function(p,v){return g[p]-g[v]})}var Ut={name:"flip",enabled:!0,phase:"main",fn:function(n){var e=n.state,t=n.options,i=n.name;if(!e.modifiersData[i]._skip){for(var s=t.mainAxis,o=s===void 0||s,r=t.altAxis,l=r===void 0||r,c=t.fallbackPlacements,d=t.padding,u=t.boundary,h=t.rootBoundary,_=t.altBoundary,g=t.flipVariations,p=g===void 0||g,v=t.allowedAutoPlacements,b=e.options.placement,T=J(b),A=c||(T!==b&&p?function(N){if(J(N)==="auto")return[];var M=Ue(N);return[$t(N),M,$t(M)]}(b):[Ue(b)]),w=[b].concat(A).reduce(function(N,M){return N.concat(J(M)==="auto"?Ln(e,{placement:M,boundary:u,rootBoundary:h,padding:d,flipVariations:p,allowedAutoPlacements:v}):M)},[]),m=e.rects.reference,O=e.rects.popper,y=new Map,C=!0,E=w[0],k=0;k=0,z=D?"width":"height",ce=Te(e,{placement:x,boundary:u,rootBoundary:h,altBoundary:_,padding:d}),Z=D?L?$:B:L?q:R;m[z]>O[z]&&(Z=Ue(Z));var Oe=Ue(Z),j=[];if(o&&j.push(ce[K]<=0),l&&j.push(ce[Z]<=0,ce[Oe]<=0),j.every(function(N){return N})){E=x,C=!1;break}y.set(x,j)}if(C)for(var S=function(N){var M=w.find(function(Ye){var Re=y.get(Ye);if(Re)return Re.slice(0,N).every(function(Ce){return Ce})});if(M)return E=M,"break"},ee=p?3:1;ee>0&&S(ee)!=="break";ee--);e.placement!==E&&(e.modifiersData[i]._skip=!0,e.placement=E,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Vt(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Kt(n){return[R,$,q,B].some(function(e){return n[e]>=0})}var Xt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(n){var e=n.state,t=n.name,i=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=Te(e,{elementContext:"reference"}),l=Te(e,{altBoundary:!0}),c=Vt(r,i),d=Vt(l,s,o),u=Kt(c),h=Kt(d);e.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}},Yt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(n){var e=n.state,t=n.options,i=n.name,s=t.offset,o=s===void 0?[0,0]:s,r=ot.reduce(function(u,h){return u[h]=function(_,g,p){var v=J(_),b=[B,R].indexOf(v)>=0?-1:1,T=typeof p=="function"?p(Object.assign({},g,{placement:_})):p,A=T[0],w=T[1];return A=A||0,w=(w||0)*b,[B,$].indexOf(v)>=0?{x:w,y:A}:{x:A,y:w}}(h,e.rects,o),u},{}),l=r[e.placement],c=l.x,d=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=d),e.modifiersData[i]=r}},mt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(n){var e=n.state,t=n.name;e.modifiersData[t]=Ft({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Qt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(n){var e=n.state,t=n.options,i=n.name,s=t.mainAxis,o=s===void 0||s,r=t.altAxis,l=r!==void 0&&r,c=t.boundary,d=t.rootBoundary,u=t.altBoundary,h=t.padding,_=t.tether,g=_===void 0||_,p=t.tetherOffset,v=p===void 0?0:p,b=Te(e,{boundary:c,rootBoundary:d,padding:h,altBoundary:u}),T=J(e.placement),A=je(e.placement),w=!A,m=lt(T),O=m==="x"?"y":"x",y=e.modifiersData.popperOffsets,C=e.rects.reference,E=e.rects.popper,k=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,x={x:0,y:0};if(y){if(o||l){var K=m==="y"?R:B,L=m==="y"?q:$,D=m==="y"?"height":"width",z=y[m],ce=y[m]+b[K],Z=y[m]-b[L],Oe=g?-E[D]/2:0,j=A==="start"?C[D]:E[D],S=A==="start"?-E[D]:-C[D],ee=e.elements.arrow,N=g&&ee?at(ee):{width:0,height:0},M=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Ye=M[K],Re=M[L],Ce=ze(0,C[D],N[D]),ai=w?C[D]/2-Oe-Ce-Ye-k:j-Ce-Ye-k,li=w?-C[D]/2+Oe+Ce+Re+k:S+Ce+Re+k,bt=e.elements.arrow&&Se(e.elements.arrow),ci=bt?m==="y"?bt.clientTop||0:bt.clientLeft||0:0,an=e.modifiersData.offset?e.modifiersData.offset[e.placement][m]:0,ln=y[m]+ai-an-ci,cn=y[m]+li-an;if(o){var dn=ze(g?Ne(ce,ln):ce,z,g?le(Z,cn):Z);y[m]=dn,x[m]=dn-z}if(l){var di=m==="x"?R:B,hi=m==="x"?q:$,Qe=y[O],hn=Qe+b[di],un=Qe-b[hi],fn=ze(g?Ne(hn,ln):hn,Qe,g?le(un,cn):un);y[O]=fn,x[O]=fn-Qe}}e.modifiersData[i]=x}},requiresIfExists:["offset"]};function xn(n,e,t){t===void 0&&(t=!1);var i,s,o=ae(e),r=Ae(n),l=V(e),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(l||!l&&!t)&&((G(e)!=="body"||ft(o))&&(c=(i=e)!==U(i)&&V(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:ht(i)),V(e)?((d=Ae(e)).x+=e.clientLeft,d.y+=e.clientTop):o&&(d.x=ut(o))),{x:r.left+c.scrollLeft-d.x,y:r.top+c.scrollTop-d.y,width:r.width,height:r.height}}var Gt={placement:"bottom",modifiers:[],strategy:"absolute"};function Jt(){for(var n=arguments.length,e=new Array(n),t=0;tr.name==="applyStyles"&&r.enabled===!1);this._popper=gt(i,this._menu,s),o&&I.setDataAttribute(this._menu,"popper","static")}"ontouchstart"in document.documentElement&&!e.closest(".navbar-nav")&&[].concat(...document.body.children).forEach(i=>a.on(i,"mouseover",We)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle("show"),this._element.classList.toggle("show"),a.trigger(this._element,"shown.bs.dropdown",t)}}hide(){if(ve(this._element)||!this._menu.classList.contains("show"))return;const 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(){a.on(this._element,"click.bs.dropdown",e=>{e.preventDefault(),this.toggle()})}_completeHide(e){a.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>a.off(t,"mouseover",We)),this._popper&&this._popper.destroy(),this._menu.classList.remove("show"),this._element.classList.remove("show"),this._element.setAttribute("aria-expanded","false"),I.removeDataAttribute(this._menu,"popper"),a.trigger(this._element,"hidden.bs.dropdown",e))}_getConfig(e){if(e={...this.constructor.Default,...I.getDataAttributes(this._element),...e},te("dropdown",e,this.constructor.DefaultType),typeof e.reference=="object"&&!oe(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError("dropdown".toUpperCase()+': Option "reference" provided type "object" without a required "getBoundingClientRect" method.');return e}_getMenuElement(){return f.next(this._element,".dropdown-menu")[0]}_getPlacement(){const e=this._element.parentNode;if(e.classList.contains("dropend"))return Hn;if(e.classList.contains("dropstart"))return Rn;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains("dropup")?t?jn:In:t?Pn:Mn}_detectNavbar(){return this._element.closest(".navbar")!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return this._config.display==="static"&&(e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...typeof this._config.popperConfig=="function"?this._config.popperConfig(e):this._config.popperConfig}}_selectMenuItem({key:e,target:t}){const i=f.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(Be);i.length&&At(i,t,e==="ArrowDown",!i.includes(t)).focus()}static dropdownInterface(e,t){const i=P.getOrCreateInstance(e,t);if(typeof t=="string"){if(i[t]===void 0)throw new TypeError(`No method named "${t}"`);i[t]()}}static jQueryInterface(e){return this.each(function(){P.dropdownInterface(this,e)})}static clearMenus(e){if(e&&(e.button===2||e.type==="keyup"&&e.key!=="Tab"))return;const t=f.find('[data-bs-toggle="dropdown"]');for(let i=0,s=t.length;ithis.matches('[data-bs-toggle="dropdown"]')?this:f.prev(this,'[data-bs-toggle="dropdown"]')[0];return e.key==="Escape"?(i().focus(),void P.clearMenus()):e.key==="ArrowUp"||e.key==="ArrowDown"?(t||i().click(),void P.getInstance(i())._selectMenuItem(e)):void(t&&e.key!=="Space"||P.clearMenus())}}a.on(document,"keydown.bs.dropdown.data-api",'[data-bs-toggle="dropdown"]',P.dataApiKeydownHandler),a.on(document,"keydown.bs.dropdown.data-api",".dropdown-menu",P.dataApiKeydownHandler),a.on(document,"click.bs.dropdown.data-api",P.clearMenus),a.on(document,"keyup.bs.dropdown.data-api",P.clearMenus),a.on(document,"click.bs.dropdown.data-api",'[data-bs-toggle="dropdown"]',function(n){n.preventDefault(),P.dropdownInterface(this)}),W(P);class _t{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",t=>t+e),this._setElementAttributes(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top","paddingRight",t=>t+e),this._setElementAttributes(".sticky-top","marginRight",t=>t-e)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){const s=this.getWidth();this._applyManipulationCallback(e,o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+s)return;this._saveInitialAttribute(o,t);const r=window.getComputedStyle(o)[t];o.style[t]=i(Number.parseFloat(r))+"px"})}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top","paddingRight"),this._resetElementAttributes(".sticky-top","marginRight")}_saveInitialAttribute(e,t){const i=e.style[t];i&&I.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,i=>{const s=I.getDataAttribute(i,t);s===void 0?i.style.removeProperty(t):(I.removeDataAttribute(i,t),i.style[t]=s)})}_applyManipulationCallback(e,t){oe(e)?t(e):f.find(e,this._element).forEach(t)}isOverflowing(){return this.getWidth()>0}}const qn={isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},$n={isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"};class en{constructor(e){this._config=this._getConfig(e),this._isAppended=!1,this._element=null}show(e){this._config.isVisible?(this._append(),this._config.isAnimated&&ye(this._getElement()),this._getElement().classList.add("show"),this._emulateAnimation(()=>{he(e)})):he(e)}hide(e){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),he(e)})):he(e)}_getElement(){if(!this._element){const e=document.createElement("div");e.className="modal-backdrop",this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_getConfig(e){return(e={...qn,...typeof e=="object"?e:{}}).rootElement=be(e.rootElement),te("backdrop",e,$n),e}_append(){this._isAppended||(this._config.rootElement.appendChild(this._getElement()),a.on(this._getElement(),"mousedown.bs.backdrop",()=>{he(this._config.clickCallback)}),this._isAppended=!0)}dispose(){this._isAppended&&(a.off(this._element,"mousedown.bs.backdrop"),this._element.remove(),this._isAppended=!1)}_emulateAnimation(e){Et(e,this._getElement(),this._config.isAnimated)}}const tn={backdrop:!0,keyboard:!0,focus:!0},zn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"};class Me extends F{constructor(e,t){super(e),this._config=this._getConfig(t),this._dialog=f.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new _t}static get Default(){return tn}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||a.trigger(this._element,"show.bs.modal",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add("modal-open"),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),a.on(this._element,"click.dismiss.bs.modal",'[data-bs-dismiss="modal"]',t=>this.hide(t)),a.on(this._dialog,"mousedown.dismiss.bs.modal",()=>{a.one(this._element,"mouseup.dismiss.bs.modal",t=>{t.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(e)))}hide(e){if(e&&["A","AREA"].includes(e.target.tagName)&&e.preventDefault(),!this._isShown||this._isTransitioning||a.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),a.off(document,"focusin.bs.modal"),this._element.classList.remove("show"),a.off(this._element,"click.dismiss.bs.modal"),a.off(this._dialog,"mousedown.dismiss.bs.modal"),this._queueCallback(()=>this._hideModal(),this._element,t)}dispose(){[window,this._dialog].forEach(e=>a.off(e,".bs.modal")),this._backdrop.dispose(),super.dispose(),a.off(document,"focusin.bs.modal")}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new en({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_getConfig(e){return e={...tn,...I.getDataAttributes(this._element),...typeof e=="object"?e:{}},te("modal",e,zn),e}_showElement(e){const t=this._isAnimated(),i=f.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,i&&(i.scrollTop=0),t&&ye(this._element),this._element.classList.add("show"),this._config.focus&&this._enforceFocus(),this._queueCallback(()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,a.trigger(this._element,"shown.bs.modal",{relatedTarget:e})},this._dialog,t)}_enforceFocus(){a.off(document,"focusin.bs.modal"),a.on(document,"focusin.bs.modal",e=>{document===e.target||this._element===e.target||this._element.contains(e.target)||this._element.focus()})}_setEscapeEvent(){this._isShown?a.on(this._element,"keydown.dismiss.bs.modal",e=>{this._config.keyboard&&e.key==="Escape"?(e.preventDefault(),this.hide()):this._config.keyboard||e.key!=="Escape"||this._triggerBackdropTransition()}):a.off(this._element,"keydown.dismiss.bs.modal")}_setResizeEvent(){this._isShown?a.on(window,"resize.bs.modal",()=>this._adjustDialog()):a.off(window,"resize.bs.modal")}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove("modal-open"),this._resetAdjustments(),this._scrollBar.reset(),a.trigger(this._element,"hidden.bs.modal")})}_showBackdrop(e){a.on(this._element,"click.dismiss.bs.modal",t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&(this._config.backdrop===!0?this.hide():this._config.backdrop==="static"&&this._triggerBackdropTransition())}),this._backdrop.show(e)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(a.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const{classList:e,scrollHeight:t,style:i}=this._element,s=t>document.documentElement.clientHeight;!s&&i.overflowY==="hidden"||e.contains("modal-static")||(s||(i.overflowY="hidden"),e.add("modal-static"),this._queueCallback(()=>{e.remove("modal-static"),s||this._queueCallback(()=>{i.overflowY=""},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=t>0;(!i&&e&&!H()||i&&!e&&H())&&(this._element.style.paddingLeft=t+"px"),(i&&!e&&!H()||!i&&e&&H())&&(this._element.style.paddingRight=t+"px")}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const i=Me.getOrCreateInstance(this,e);if(typeof e=="string"){if(i[e]===void 0)throw new TypeError(`No method named "${e}"`);i[e](t)}})}}a.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',function(n){const e=se(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),a.one(e,"show.bs.modal",t=>{t.defaultPrevented||a.one(e,"hidden.bs.modal",()=>{Be(this)&&this.focus()})}),Me.getOrCreateInstance(e).toggle(this)}),W(Me);const nn={backdrop:!0,keyboard:!0,scroll:!1},Fn={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"};class ge extends F{constructor(e,t){super(e),this._config=this._getConfig(t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._addEventListeners()}static get NAME(){return"offcanvas"}static get Default(){return nn}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||a.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new _t().hide(),this._enforceFocusOnElement(this._element)),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add("show"),this._queueCallback(()=>{a.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})},this._element,!0))}hide(){this._isShown&&(a.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(a.off(document,"focusin.bs.offcanvas"),this._element.blur(),this._isShown=!1,this._element.classList.remove("show"),this._backdrop.hide(),this._queueCallback(()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||new _t().reset(),a.trigger(this._element,"hidden.bs.offcanvas")},this._element,!0)))}dispose(){this._backdrop.dispose(),super.dispose(),a.off(document,"focusin.bs.offcanvas")}_getConfig(e){return e={...nn,...I.getDataAttributes(this._element),...typeof e=="object"?e:{}},te("offcanvas",e,Fn),e}_initializeBackDrop(){return new en({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_enforceFocusOnElement(e){a.off(document,"focusin.bs.offcanvas"),a.on(document,"focusin.bs.offcanvas",t=>{document===t.target||e===t.target||e.contains(t.target)||e.focus()}),e.focus()}_addEventListeners(){a.on(this._element,"click.dismiss.bs.offcanvas",'[data-bs-dismiss="offcanvas"]',()=>this.hide()),a.on(this._element,"keydown.dismiss.bs.offcanvas",e=>{this._config.keyboard&&e.key==="Escape"&&this.hide()})}static jQueryInterface(e){return this.each(function(){const t=ge.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}a.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',function(n){const e=se(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),ve(this))return;a.one(e,"hidden.bs.offcanvas",()=>{Be(this)&&this.focus()});const t=f.findOne(".offcanvas.show");t&&t!==e&&ge.getInstance(t).hide(),ge.getOrCreateInstance(e).toggle(this)}),a.on(window,"load.bs.offcanvas.data-api",()=>f.find(".offcanvas.show").forEach(n=>ge.getOrCreateInstance(n).show())),W(ge);const Un=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Vn=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,Kn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Xn=(n,e)=>{const t=n.nodeName.toLowerCase();if(e.includes(t))return!Un.has(t)||!!(Vn.test(n.nodeValue)||Kn.test(n.nodeValue));const i=e.filter(s=>s instanceof RegExp);for(let s=0,o=i.length;s{Xn(_,h)||c.removeAttribute(_.nodeName)})}return i.body.innerHTML}const Yn=new RegExp("(^|\\s)bs-tooltip\\S+","g"),Qn=new Set(["sanitize","allowList","sanitizeFn"]),Gn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Jn={AUTO:"auto",TOP:"top",RIGHT:H()?"left":"right",BOTTOM:"bottom",LEFT:H()?"right":"left"},Zn={animation:!0,template:'',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:{"*":["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:[]},popperConfig:null},ei={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"};class _e extends F{constructor(e,t){if(Zt===void 0)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 Zn}static get NAME(){return"tooltip"}static get Event(){return ei}static get DefaultType(){return Gn}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{if(this.getTipElement().classList.contains("show"))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),a.off(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.remove(),this._popper&&this._popper.destroy(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const e=a.trigger(this._element,this.constructor.Event.SHOW),t=yt(this._element),i=t===null?this._element.ownerDocument.documentElement.contains(this._element):t.contains(this._element);if(e.defaultPrevented||!i)return;const s=this.getTipElement(),o=X(this.constructor.NAME);s.setAttribute("id",o),this._element.setAttribute("aria-describedby",o),this.setContent(),this._config.animation&&s.classList.add("fade");const r=typeof this._config.placement=="function"?this._config.placement.call(this,s,this._element):this._config.placement,l=this._getAttachment(r);this._addAttachmentClass(l);const{container:c}=this._config;ue.set(s,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(c.appendChild(s),a.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=gt(this._element,s,this._getPopperConfig(l)),s.classList.add("show");const d=typeof this._config.customClass=="function"?this._config.customClass():this._config.customClass;d&&s.classList.add(...d.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(h=>{a.on(h,"mouseover",We)});const u=this.tip.classList.contains("fade");this._queueCallback(()=>{const h=this._hoverState;this._hoverState=null,a.trigger(this._element,this.constructor.Event.SHOWN),h==="out"&&this._leave(null,this)},this.tip,u)}hide(){if(!this._popper)return;const e=this.getTipElement();if(a.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;e.classList.remove("show"),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(i=>a.off(i,"mouseover",We)),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const t=this.tip.classList.contains("fade");this._queueCallback(()=>{this._isWithActiveTrigger()||(this._hoverState!=="show"&&e.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),a.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null))},this.tip,t),this._hoverState=""}update(){this._popper!==null&&this._popper.update()}isWithContent(){return!!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(f.findOne(".tooltip-inner",e),this.getTitle()),e.classList.remove("fade","show")}setElementContent(e,t){if(e!==null)return oe(t)?(t=be(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=sn(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=typeof this._config.title=="function"?this._config.title.call(this._element):this._config.title),e}updateAttachment(e){return e==="right"?"end":e==="left"?"start":e}_initializeOnDelegatedTarget(e,t){const i=this.constructor.DATA_KEY;return(t=t||ue.get(e.delegateTarget,i))||(t=new this.constructor(e.delegateTarget,this._getDelegateConfig()),ue.set(e.delegateTarget,i,t)),t}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(e){const t={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:i=>this._handlePopperPlacementChange(i)}],onFirstUpdate:i=>{i.options.placement!==i.placement&&this._handlePopperPlacementChange(i)}};return{...t,...typeof this._config.popperConfig=="function"?this._config.popperConfig(t):this._config.popperConfig}}_addAttachmentClass(e){this.getTipElement().classList.add("bs-tooltip-"+this.updateAttachment(e))}_getAttachment(e){return Jn[e.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach(e=>{if(e==="click")a.on(this._element,this.constructor.Event.CLICK,this._config.selector,t=>this.toggle(t));else if(e!=="manual"){const t=e==="hover"?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,i=e==="hover"?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;a.on(this._element,t,this._config.selector,s=>this._enter(s)),a.on(this._element,i,this._config.selector,s=>this._leave(s))}}),this._hideModalHandler=()=>{this._element&&this.hide()},a.on(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const e=this._element.getAttribute("title"),t=typeof this._element.getAttribute("data-bs-original-title");(e||t!=="string")&&(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[e.type==="focusin"?"focus":"hover"]=!0),t.getTipElement().classList.contains("show")||t._hoverState==="show"?t._hoverState="show":(clearTimeout(t._timeout),t._hoverState="show",t._config.delay&&t._config.delay.show?t._timeout=setTimeout(()=>{t._hoverState==="show"&&t.show()},t._config.delay.show):t.show())}_leave(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger[e.type==="focusout"?"focus":"hover"]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState="out",t._config.delay&&t._config.delay.hide?t._timeout=setTimeout(()=>{t._hoverState==="out"&&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=I.getDataAttributes(this._element);return Object.keys(t).forEach(i=>{Qn.has(i)&&delete t[i]}),(e={...this.constructor.Default,...t,...typeof e=="object"&&e?e:{}}).container=e.container===!1?document.body:be(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),te("tooltip",e,this.constructor.DefaultType),e.sanitize&&(e.template=sn(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 e=this.getTipElement(),t=e.getAttribute("class").match(Yn);t!==null&&t.length>0&&t.map(i=>i.trim()).forEach(i=>e.classList.remove(i))}_handlePopperPlacementChange(e){const{state:t}=e;t&&(this.tip=t.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement)))}static jQueryInterface(e){return this.each(function(){const t=_e.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e]()}})}}W(_e);const ti=new RegExp("(^|\\s)bs-popover\\S+","g"),ni={..._e.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:''},ii={..._e.DefaultType,content:"(string|element|function)"},si={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class Ke extends _e{static get Default(){return ni}static get NAME(){return"popover"}static get Event(){return si}static get DefaultType(){return ii}isWithContent(){return this.getTitle()||this._getContent()}getTipElement(){return this.tip||(this.tip=super.getTipElement(),this.getTitle()||f.findOne(".popover-header",this.tip).remove(),this._getContent()||f.findOne(".popover-body",this.tip).remove()),this.tip}setContent(){const e=this.getTipElement();this.setElementContent(f.findOne(".popover-header",e),this.getTitle());let t=this._getContent();typeof t=="function"&&(t=t.call(this._element)),this.setElementContent(f.findOne(".popover-body",e),t),e.classList.remove("fade","show")}_addAttachmentClass(e){this.getTipElement().classList.add("bs-popover-"+this.updateAttachment(e))}_getContent(){return this._element.getAttribute("data-bs-content")||this._config.content}_cleanTipClass(){const e=this.getTipElement(),t=e.getAttribute("class").match(ti);t!==null&&t.length>0&&t.map(i=>i.trim()).forEach(i=>e.classList.remove(i))}static jQueryInterface(e){return this.each(function(){const t=Ke.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e]()}})}}W(Ke);const on={offset:10,method:"auto",target:""},oi={offset:"number",method:"string",target:"(string|element)"};class Pe extends F{constructor(e,t){super(e),this._scrollElement=this._element.tagName==="BODY"?window:this._element,this._config=this._getConfig(t),this._selector=`${this._config.target} .nav-link, ${this._config.target} .list-group-item, ${this._config.target} .dropdown-item`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,a.on(this._scrollElement,"scroll.bs.scrollspy",()=>this._process()),this.refresh(),this._process()}static get Default(){return on}static get NAME(){return"scrollspy"}refresh(){const e=this._scrollElement===this._scrollElement.window?"offset":"position",t=this._config.method==="auto"?e:this._config.method,i=t==="position"?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),f.find(this._selector).map(s=>{const o=de(s),r=o?f.findOne(o):null;if(r){const l=r.getBoundingClientRect();if(l.width||l.height)return[I[t](r).top+i,o]}return null}).filter(s=>s).sort((s,o)=>s[0]-o[0]).forEach(s=>{this._offsets.push(s[0]),this._targets.push(s[1])})}dispose(){a.off(this._scrollElement,".bs.scrollspy"),super.dispose()}_getConfig(e){if(typeof(e={...on,...I.getDataAttributes(this._element),...typeof e=="object"&&e?e:{}}).target!="string"&&oe(e.target)){let{id:t}=e.target;t||(t=X("scrollspy"),e.target.id=t),e.target="#"+t}return te("scrollspy",e,oi),e}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),i=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=i){const s=this._targets[this._targets.length-1];this._activeTarget!==s&&this._activate(s)}else{if(this._activeTarget&&e0)return this._activeTarget=null,void this._clear();for(let s=this._offsets.length;s--;)this._activeTarget!==this._targets[s]&&e>=this._offsets[s]&&(this._offsets[s+1]===void 0||e`${s}[data-bs-target="${e}"],${s}[href="${e}"]`),i=f.findOne(t.join(","));i.classList.contains("dropdown-item")?(f.findOne(".dropdown-toggle",i.closest(".dropdown")).classList.add("active"),i.classList.add("active")):(i.classList.add("active"),f.parents(i,".nav, .list-group").forEach(s=>{f.prev(s,".nav-link, .list-group-item").forEach(o=>o.classList.add("active")),f.prev(s,".nav-item").forEach(o=>{f.children(o,".nav-link").forEach(r=>r.classList.add("active"))})})),a.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:e})}_clear(){f.find(this._selector).filter(e=>e.classList.contains("active")).forEach(e=>e.classList.remove("active"))}static jQueryInterface(e){return this.each(function(){const t=Pe.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e]()}})}}a.on(window,"load.bs.scrollspy.data-api",()=>{f.find('[data-bs-spy="scroll"]').forEach(n=>new Pe(n))}),W(Pe);class He extends F{static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains("active"))return;let e;const t=se(this._element),i=this._element.closest(".nav, .list-group");if(i){const r=i.nodeName==="UL"||i.nodeName==="OL"?":scope > li > .active":".active";e=f.find(r,i),e=e[e.length-1]}const s=e?a.trigger(e,"hide.bs.tab",{relatedTarget:this._element}):null;if(a.trigger(this._element,"show.bs.tab",{relatedTarget:e}).defaultPrevented||s!==null&&s.defaultPrevented)return;this._activate(this._element,i);const o=()=>{a.trigger(e,"hidden.bs.tab",{relatedTarget:this._element}),a.trigger(this._element,"shown.bs.tab",{relatedTarget:e})};t?this._activate(t,t.parentNode,o):o()}_activate(e,t,i){const s=(!t||t.nodeName!=="UL"&&t.nodeName!=="OL"?f.children(t,".active"):f.find(":scope > li > .active",t))[0],o=i&&s&&s.classList.contains("fade"),r=()=>this._transitionComplete(e,s,i);s&&o?(s.classList.remove("show"),this._queueCallback(r,e,!0)):r()}_transitionComplete(e,t,i){if(t){t.classList.remove("active");const o=f.findOne(":scope > .dropdown-menu .active",t.parentNode);o&&o.classList.remove("active"),t.getAttribute("role")==="tab"&&t.setAttribute("aria-selected",!1)}e.classList.add("active"),e.getAttribute("role")==="tab"&&e.setAttribute("aria-selected",!0),ye(e),e.classList.contains("fade")&&e.classList.add("show");let s=e.parentNode;if(s&&s.nodeName==="LI"&&(s=s.parentNode),s&&s.classList.contains("dropdown-menu")){const o=e.closest(".dropdown");o&&f.find(".dropdown-toggle",o).forEach(r=>r.classList.add("active")),e.setAttribute("aria-expanded",!0)}i&&i()}static jQueryInterface(e){return this.each(function(){const t=He.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e]()}})}}a.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),ve(this)||He.getOrCreateInstance(this).show()}),W(He);const ri={animation:"boolean",autohide:"boolean",delay:"number"},rn={animation:!0,autohide:!0,delay:5e3};class Xe extends F{constructor(e,t){super(e),this._config=this._getConfig(t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return ri}static get Default(){return rn}static get NAME(){return"toast"}show(){a.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),ye(this._element),this._element.classList.add("showing"),this._queueCallback(()=>{this._element.classList.remove("showing"),this._element.classList.add("show"),a.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this._element.classList.contains("show")&&(a.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.remove("show"),this._queueCallback(()=>{this._element.classList.add("hide"),a.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),super.dispose()}_getConfig(e){return e={...rn,...I.getDataAttributes(this._element),...typeof e=="object"&&e?e:{}},te("toast",e,this.constructor.DefaultType),e}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const i=e.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){a.on(this._element,"click.dismiss.bs.toast",'[data-bs-dismiss="toast"]',()=>this.hide()),a.on(this._element,"mouseover.bs.toast",e=>this._onInteraction(e,!0)),a.on(this._element,"mouseout.bs.toast",e=>this._onInteraction(e,!1)),a.on(this._element,"focusin.bs.toast",e=>this._onInteraction(e,!0)),a.on(this._element,"focusout.bs.toast",e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=Xe.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}return W(Xe),{Alert:we,Button:Le,Carousel:Y,Collapse:Q,Dropdown:P,Modal:Me,Offcanvas:ge,Popover:Ke,ScrollSpy:Pe,Tab:He,Toast:Xe,Tooltip:_e}})}(Ge)),Ge.exports}var mn=mi();const gi=ui(mn),bi=fi({__proto__:null,default:gi},[mn]);export{bi as b};