import{P as ue,c as _e}from"./index-8746c87e.js";/*! * Bootstrap v5.3.0 (https://getbootstrap.com/) * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */const v=new Map,pt={set(s,t,e){v.has(s)||v.set(s,new Map);const n=v.get(s);if(!n.has(t)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(t,e)},get(s,t){return v.has(s)&&v.get(s).get(t)||null},remove(s,t){if(!v.has(s))return;const e=v.get(s);e.delete(t),e.size===0&&v.delete(s)}},Fe=1e6,Ye=1e3,wt="transitionend",de=s=>(s&&window.CSS&&window.CSS.escape&&(s=s.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),s),Be=s=>s==null?`${s}`:Object.prototype.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase(),Ue=s=>{do s+=Math.floor(Math.random()*Fe);while(document.getElementById(s));return s},je=s=>{if(!s)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(s);const n=Number.parseFloat(t),i=Number.parseFloat(e);return!n&&!i?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*Ye)},fe=s=>{s.dispatchEvent(new Event(wt))},b=s=>!s||typeof s!="object"?!1:(typeof s.jquery<"u"&&(s=s[0]),typeof s.nodeType<"u"),S=s=>b(s)?s.jquery?s[0]:s:typeof s=="string"&&s.length>0?document.querySelector(de(s)):null,F=s=>{if(!b(s)||s.getClientRects().length===0)return!1;const t=getComputedStyle(s).getPropertyValue("visibility")==="visible",e=s.closest("details:not([open])");if(!e)return t;if(e!==s){const n=s.closest("summary");if(n&&n.parentNode!==e||n===null)return!1}return t},y=s=>!s||s.nodeType!==Node.ELEMENT_NODE||s.classList.contains("disabled")?!0:typeof s.disabled<"u"?s.disabled:s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false",pe=s=>{if(!document.documentElement.attachShadow)return null;if(typeof s.getRootNode=="function"){const t=s.getRootNode();return t instanceof ShadowRoot?t:null}return s instanceof ShadowRoot?s:s.parentNode?pe(s.parentNode):null},at=()=>{},z=s=>{s.offsetHeight},Ee=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Et=[],Ge=s=>{document.readyState==="loading"?(Et.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of Et)t()}),Et.push(s)):s()},f=()=>document.documentElement.dir==="rtl",E=s=>{Ge(()=>{const t=Ee();if(t){const e=s.NAME,n=t.fn[e];t.fn[e]=s.jQueryInterface,t.fn[e].Constructor=s,t.fn[e].noConflict=()=>(t.fn[e]=n,s.jQueryInterface)}})},_=(s,t=[],e=s)=>typeof s=="function"?s(...t):e,me=(s,t,e=!0)=>{if(!e){_(s);return}const n=5,i=je(t)+n;let a=!1;const r=({target:c})=>{c===t&&(a=!0,t.removeEventListener(wt,r),_(s))};t.addEventListener(wt,r),setTimeout(()=>{a||fe(t)},i)},Mt=(s,t,e,n)=>{const i=s.length;let a=s.indexOf(t);return a===-1?!e&&n?s[i-1]:s[0]:(a+=e?1:-1,n&&(a=(a+i)%i),s[Math.max(0,Math.min(a,i-1))])},ze=/[^.]*(?=\..*)\.|.*/,qe=/\..*/,Qe=/::\d+$/,mt={};let Ht=1;const ge={mouseenter:"mouseover",mouseleave:"mouseout"},Xe=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 Ae(s,t){return t&&`${t}::${Ht++}`||s.uidEvent||Ht++}function Te(s){const t=Ae(s);return s.uidEvent=t,mt[t]=mt[t]||{},mt[t]}function Ze(s,t){return function e(n){return Rt(n,{delegateTarget:s}),e.oneOff&&o.off(s,n.type,t),t.apply(s,[n])}}function Je(s,t,e){return function n(i){const a=s.querySelectorAll(t);for(let{target:r}=i;r&&r!==this;r=r.parentNode)for(const c of a)if(c===r)return Rt(i,{delegateTarget:r}),n.oneOff&&o.off(s,i.type,t,e),e.apply(r,[i])}}function be(s,t,e=null){return Object.values(s).find(n=>n.callable===t&&n.delegationSelector===e)}function Ne(s,t,e){const n=typeof t=="string",i=n?e:t||e;let a=Ce(s);return Xe.has(a)||(a=s),[n,i,a]}function xt(s,t,e,n,i){if(typeof t!="string"||!s)return;let[a,r,c]=Ne(t,e,n);t in ge&&(r=(We=>function(R){if(!R.relatedTarget||R.relatedTarget!==R.delegateTarget&&!R.delegateTarget.contains(R.relatedTarget))return We.call(this,R)})(r));const u=Te(s),d=u[c]||(u[c]={}),h=be(d,r,a?e:null);if(h){h.oneOff=h.oneOff&&i;return}const A=Ae(r,t.replace(ze,"")),m=a?Je(s,e,r):Ze(s,r);m.delegationSelector=a?e:null,m.callable=r,m.oneOff=i,m.uidEvent=A,d[A]=m,s.addEventListener(c,m,a)}function Lt(s,t,e,n,i){const a=be(t[e],n,i);a&&(s.removeEventListener(e,a,!!i),delete t[e][a.uidEvent])}function ts(s,t,e,n){const i=t[e]||{};for(const[a,r]of Object.entries(i))a.includes(n)&&Lt(s,t,e,r.callable,r.delegationSelector)}function Ce(s){return s=s.replace(qe,""),ge[s]||s}const o={on(s,t,e,n){xt(s,t,e,n,!1)},one(s,t,e,n){xt(s,t,e,n,!0)},off(s,t,e,n){if(typeof t!="string"||!s)return;const[i,a,r]=Ne(t,e,n),c=r!==t,u=Te(s),d=u[r]||{},h=t.startsWith(".");if(typeof a<"u"){if(!Object.keys(d).length)return;Lt(s,u,r,a,i?e:null);return}if(h)for(const A of Object.keys(u))ts(s,u,A,t.slice(1));for(const[A,m]of Object.entries(d)){const Z=A.replace(Qe,"");(!c||t.includes(Z))&&Lt(s,u,r,m.callable,m.delegationSelector)}},trigger(s,t,e){if(typeof t!="string"||!s)return null;const n=Ee(),i=Ce(t),a=t!==i;let r=null,c=!0,u=!0,d=!1;a&&n&&(r=n.Event(t,e),n(s).trigger(r),c=!r.isPropagationStopped(),u=!r.isImmediatePropagationStopped(),d=r.isDefaultPrevented());const h=Rt(new Event(t,{bubbles:c,cancelable:!0}),e);return d&&h.preventDefault(),u&&s.dispatchEvent(h),h.defaultPrevented&&r&&r.preventDefault(),h}};function Rt(s,t={}){for(const[e,n]of Object.entries(t))try{s[e]=n}catch{Object.defineProperty(s,e,{configurable:!0,get(){return n}})}return s}function Kt(s){if(s==="true")return!0;if(s==="false")return!1;if(s===Number(s).toString())return Number(s);if(s===""||s==="null")return null;if(typeof s!="string")return s;try{return JSON.parse(decodeURIComponent(s))}catch{return s}}function gt(s){return s.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const N={setDataAttribute(s,t,e){s.setAttribute(`data-bs-${gt(t)}`,e)},removeDataAttribute(s,t){s.removeAttribute(`data-bs-${gt(t)}`)},getDataAttributes(s){if(!s)return{};const t={},e=Object.keys(s.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of e){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=Kt(s.dataset[n])}return t},getDataAttribute(s,t){return Kt(s.getAttribute(`data-bs-${gt(t)}`))}};class q{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const n=b(e)?N.getDataAttribute(e,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...b(e)?N.getDataAttributes(e):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[n,i]of Object.entries(e)){const a=t[n],r=b(a)?"element":Be(a);if(!new RegExp(i).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${i}".`)}}}const es="5.3.0";class g extends q{constructor(t,e){super(),t=S(t),t&&(this._element=t,this._config=this._getConfig(e),pt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){pt.remove(this._element,this.constructor.DATA_KEY),o.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,n=!0){me(t,e,n)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return pt.get(S(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return es}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const At=s=>{let t=s.getAttribute("data-bs-target");if(!t||t==="#"){let e=s.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?e.trim():null}return de(t)},l={find(s,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,s))},findOne(s,t=document.documentElement){return Element.prototype.querySelector.call(t,s)},children(s,t){return[].concat(...s.children).filter(e=>e.matches(t))},parents(s,t){const e=[];let n=s.parentNode.closest(t);for(;n;)e.push(n),n=n.parentNode.closest(t);return e},prev(s,t){let e=s.previousElementSibling;for(;e;){if(e.matches(t))return[e];e=e.previousElementSibling}return[]},next(s,t){let e=s.nextElementSibling;for(;e;){if(e.matches(t))return[e];e=e.nextElementSibling}return[]},focusableChildren(s){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,s).filter(e=>!y(e)&&F(e))},getSelectorFromElement(s){const t=At(s);return t&&l.findOne(t)?t:null},getElementFromSelector(s){const t=At(s);return t?l.findOne(t):null},getMultipleElementsFromSelector(s){const t=At(s);return t?l.find(t):[]}},ht=(s,t="hide")=>{const e=`click.dismiss${s.EVENT_KEY}`,n=s.NAME;o.on(document,e,`[data-bs-dismiss="${n}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),y(this))return;const a=l.getElementFromSelector(this)||this.closest(`.${n}`);s.getOrCreateInstance(a)[t]()})},ss="alert",ns="bs.alert",ve=`.${ns}`,is=`close${ve}`,os=`closed${ve}`,rs="fade",as="show";class ut extends g{static get NAME(){return ss}close(){if(o.trigger(this._element,is).defaultPrevented)return;this._element.classList.remove(as);const e=this._element.classList.contains(rs);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),o.trigger(this._element,os),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=ut.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}ht(ut,"close");E(ut);const ls="button",cs="bs.button",hs=`.${cs}`,us=".data-api",_s="active",Wt='[data-bs-toggle="button"]',ds=`click${hs}${us}`;class _t extends g{static get NAME(){return ls}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(_s))}static jQueryInterface(t){return this.each(function(){const e=_t.getOrCreateInstance(this);t==="toggle"&&e[t]()})}}o.on(document,ds,Wt,s=>{s.preventDefault();const t=s.target.closest(Wt);_t.getOrCreateInstance(t).toggle()});E(_t);const fs="swipe",Y=".bs.swipe",ps=`touchstart${Y}`,Es=`touchmove${Y}`,ms=`touchend${Y}`,gs=`pointerdown${Y}`,As=`pointerup${Y}`,Ts="touch",bs="pen",Ns="pointer-event",Cs=40,vs={endCallback:null,leftCallback:null,rightCallback:null},Ss={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class lt extends q{constructor(t,e){super(),this._element=t,!(!t||!lt.isSupported())&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return vs}static get DefaultType(){return Ss}static get NAME(){return fs}dispose(){o.off(this._element,Y)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),_(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=Cs)return;const e=t/this._deltaX;this._deltaX=0,e&&_(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(o.on(this._element,gs,t=>this._start(t)),o.on(this._element,As,t=>this._end(t)),this._element.classList.add(Ns)):(o.on(this._element,ps,t=>this._start(t)),o.on(this._element,Es,t=>this._move(t)),o.on(this._element,ms,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===bs||t.pointerType===Ts)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const ys="carousel",Os="bs.carousel",D=`.${Os}`,Se=".data-api",Ds="ArrowLeft",ws="ArrowRight",Ls=500,U="next",P="prev",V="left",ot="right",$s=`slide${D}`,Tt=`slid${D}`,Is=`keydown${D}`,Ms=`mouseenter${D}`,Rs=`mouseleave${D}`,Ps=`dragstart${D}`,ks=`load${D}${Se}`,Vs=`click${D}${Se}`,ye="carousel",J="active",Hs="slide",xs="carousel-item-end",Ks="carousel-item-start",Ws="carousel-item-next",Fs="carousel-item-prev",Oe=".active",De=".carousel-item",Ys=Oe+De,Bs=".carousel-item img",Us=".carousel-indicators",js="[data-bs-slide], [data-bs-slide-to]",Gs='[data-bs-ride="carousel"]',zs={[Ds]:ot,[ws]:V},qs={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Qs={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Q extends g{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=l.findOne(Us,this._element),this._addEventListeners(),this._config.ride===ye&&this.cycle()}static get Default(){return qs}static get DefaultType(){return Qs}static get NAME(){return ys}next(){this._slide(U)}nextWhenVisible(){!document.hidden&&F(this._element)&&this.next()}prev(){this._slide(P)}pause(){this._isSliding&&fe(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){o.one(this._element,Tt,()=>this.cycle());return}this.cycle()}}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding){o.one(this._element,Tt,()=>this.to(t));return}const n=this._getItemIndex(this._getActive());if(n===t)return;const i=t>n?U:P;this._slide(i,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&o.on(this._element,Is,t=>this._keydown(t)),this._config.pause==="hover"&&(o.on(this._element,Ms,()=>this.pause()),o.on(this._element,Rs,()=>this._maybeEnableCycle())),this._config.touch&<.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const n of l.find(Bs,this._element))o.on(n,Ps,i=>i.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(V)),rightCallback:()=>this._slide(this._directionToOrder(ot)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Ls+this._config.interval))}};this._swipeHelper=new lt(this._element,e)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=zs[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=l.findOne(Oe,this._indicatorsElement);e.classList.remove(J),e.removeAttribute("aria-current");const n=l.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);n&&(n.classList.add(J),n.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const n=this._getActive(),i=t===U,a=e||Mt(this._getItems(),n,i,this._config.wrap);if(a===n)return;const r=this._getItemIndex(a),c=Z=>o.trigger(this._element,Z,{relatedTarget:a,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:r});if(c($s).defaultPrevented||!n||!a)return;const d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=a;const h=i?Ks:xs,A=i?Ws:Fs;a.classList.add(A),z(a),n.classList.add(h),a.classList.add(h);const m=()=>{a.classList.remove(h,A),a.classList.add(J),n.classList.remove(J,A,h),this._isSliding=!1,c(Tt)};this._queueCallback(m,n,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(Hs)}_getActive(){return l.findOne(Ys,this._element)}_getItems(){return l.find(De,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return f()?t===V?P:U:t===V?U:P}_orderToDirection(t){return f()?t===P?V:ot:t===P?ot:V}static jQueryInterface(t){return this.each(function(){const e=Q.getOrCreateInstance(this,t);if(typeof t=="number"){e.to(t);return}if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}o.on(document,Vs,js,function(s){const t=l.getElementFromSelector(this);if(!t||!t.classList.contains(ye))return;s.preventDefault();const e=Q.getOrCreateInstance(t),n=this.getAttribute("data-bs-slide-to");if(n){e.to(n),e._maybeEnableCycle();return}if(N.getDataAttribute(this,"slide")==="next"){e.next(),e._maybeEnableCycle();return}e.prev(),e._maybeEnableCycle()});o.on(window,ks,()=>{const s=l.find(Gs);for(const t of s)Q.getOrCreateInstance(t)});E(Q);const Xs="collapse",Zs="bs.collapse",X=`.${Zs}`,Js=".data-api",tn=`show${X}`,en=`shown${X}`,sn=`hide${X}`,nn=`hidden${X}`,on=`click${X}${Js}`,bt="show",x="collapse",tt="collapsing",rn="collapsed",an=`:scope .${x} .${x}`,ln="collapse-horizontal",cn="width",hn="height",un=".collapse.show, .collapse.collapsing",$t='[data-bs-toggle="collapse"]',_n={parent:null,toggle:!0},dn={parent:"(null|element)",toggle:"boolean"};class G extends g{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=l.find($t);for(const i of n){const a=l.getSelectorFromElement(i),r=l.find(a).filter(c=>c===this._element);a!==null&&r.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return _n}static get DefaultType(){return dn}static get NAME(){return Xs}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(un).filter(c=>c!==this._element).map(c=>G.getOrCreateInstance(c,{toggle:!1}))),t.length&&t[0]._isTransitioning||o.trigger(this._element,tn).defaultPrevented)return;for(const c of t)c.hide();const n=this._getDimension();this._element.classList.remove(x),this._element.classList.add(tt),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(tt),this._element.classList.add(x,bt),this._element.style[n]="",o.trigger(this._element,en)},r=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[n]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||o.trigger(this._element,sn).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,z(this._element),this._element.classList.add(tt),this._element.classList.remove(x,bt);for(const i of this._triggerArray){const a=l.getElementFromSelector(i);a&&!this._isShown(a)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(tt),this._element.classList.add(x),o.trigger(this._element,nn)};this._element.style[e]="",this._queueCallback(n,this._element,!0)}_isShown(t=this._element){return t.classList.contains(bt)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=S(t.parent),t}_getDimension(){return this._element.classList.contains(ln)?cn:hn}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren($t);for(const e of t){const n=l.getElementFromSelector(e);n&&this._addAriaAndCollapsedClass([e],this._isShown(n))}}_getFirstLevelChildren(t){const e=l.find(an,this._config.parent);return l.find(t,this._config.parent).filter(n=>!e.includes(n))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const n of t)n.classList.toggle(rn,!e),n.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return typeof t=="string"&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const n=G.getOrCreateInstance(this,e);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}o.on(document,on,$t,function(s){(s.target.tagName==="A"||s.delegateTarget&&s.delegateTarget.tagName==="A")&&s.preventDefault();for(const t of l.getMultipleElementsFromSelector(this))G.getOrCreateInstance(t,{toggle:!1}).toggle()});E(G);const Ft="dropdown",fn="bs.dropdown",I=`.${fn}`,Pt=".data-api",pn="Escape",Yt="Tab",En="ArrowUp",Bt="ArrowDown",mn=2,gn=`hide${I}`,An=`hidden${I}`,Tn=`show${I}`,bn=`shown${I}`,we=`click${I}${Pt}`,Le=`keydown${I}${Pt}`,Nn=`keyup${I}${Pt}`,H="show",Cn="dropup",vn="dropend",Sn="dropstart",yn="dropup-center",On="dropdown-center",L='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Dn=`${L}.${H}`,rt=".dropdown-menu",wn=".navbar",Ln=".navbar-nav",$n=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",In=f()?"top-end":"top-start",Mn=f()?"top-start":"top-end",Rn=f()?"bottom-end":"bottom-start",Pn=f()?"bottom-start":"bottom-end",kn=f()?"left-start":"right-start",Vn=f()?"right-start":"left-start",Hn="top",xn="bottom",Kn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Wn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class T extends g{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=l.next(this._element,rt)[0]||l.prev(this._element,rt)[0]||l.findOne(rt,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Kn}static get DefaultType(){return Wn}static get NAME(){return Ft}toggle(){return this._isShown()?this.hide():this.show()}show(){if(y(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!o.trigger(this._element,Tn,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Ln))for(const n of[].concat(...document.body.children))o.on(n,"mouseover",at);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(H),this._element.classList.add(H),o.trigger(this._element,bn,t)}}hide(){if(y(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!o.trigger(this._element,gn,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))o.off(n,"mouseover",at);this._popper&&this._popper.destroy(),this._menu.classList.remove(H),this._element.classList.remove(H),this._element.setAttribute("aria-expanded","false"),N.removeDataAttribute(this._menu,"popper"),o.trigger(this._element,An,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!b(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Ft.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof ue>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:b(this._config.reference)?t=S(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=_e(t,this._menu,e)}_isShown(){return this._menu.classList.contains(H)}_getPlacement(){const t=this._parent;if(t.classList.contains(vn))return kn;if(t.classList.contains(Sn))return Vn;if(t.classList.contains(yn))return Hn;if(t.classList.contains(On))return xn;const e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(Cn)?e?Mn:In:e?Pn:Rn}_detectNavbar(){return this._element.closest(wn)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(N.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..._(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const n=l.find($n,this._menu).filter(i=>F(i));n.length&&Mt(n,e,t===Bt,!n.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=T.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t.button===mn||t.type==="keyup"&&t.key!==Yt)return;const e=l.find(Dn);for(const n of e){const i=T.getInstance(n);if(!i||i._config.autoClose===!1)continue;const a=t.composedPath(),r=a.includes(i._menu);if(a.includes(i._element)||i._config.autoClose==="inside"&&!r||i._config.autoClose==="outside"&&r||i._menu.contains(t.target)&&(t.type==="keyup"&&t.key===Yt||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const c={relatedTarget:i._element};t.type==="click"&&(c.clickEvent=t),i._completeHide(c)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),n=t.key===pn,i=[En,Bt].includes(t.key);if(!i&&!n||e&&!n)return;t.preventDefault();const a=this.matches(L)?this:l.prev(this,L)[0]||l.next(this,L)[0]||l.findOne(L,t.delegateTarget.parentNode),r=T.getOrCreateInstance(a);if(i){t.stopPropagation(),r.show(),r._selectMenuItem(t);return}r._isShown()&&(t.stopPropagation(),r.hide(),a.focus())}}o.on(document,Le,L,T.dataApiKeydownHandler);o.on(document,Le,rt,T.dataApiKeydownHandler);o.on(document,we,T.clearMenus);o.on(document,Nn,T.clearMenus);o.on(document,we,L,function(s){s.preventDefault(),T.getOrCreateInstance(this).toggle()});E(T);const $e="backdrop",Fn="fade",Ut="show",jt=`mousedown.bs.${$e}`,Yn={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Bn={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ie extends q{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Yn}static get DefaultType(){return Bn}static get NAME(){return $e}show(t){if(!this._config.isVisible){_(t);return}this._append();const e=this._getElement();this._config.isAnimated&&z(e),e.classList.add(Ut),this._emulateAnimation(()=>{_(t)})}hide(t){if(!this._config.isVisible){_(t);return}this._getElement().classList.remove(Ut),this._emulateAnimation(()=>{this.dispose(),_(t)})}dispose(){this._isAppended&&(o.off(this._element,jt),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(Fn),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=S(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),o.on(t,jt,()=>{_(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){me(t,this._getElement(),this._config.isAnimated)}}const Un="focustrap",jn="bs.focustrap",ct=`.${jn}`,Gn=`focusin${ct}`,zn=`keydown.tab${ct}`,qn="Tab",Qn="forward",Gt="backward",Xn={autofocus:!0,trapElement:null},Zn={autofocus:"boolean",trapElement:"element"};class Me extends q{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Xn}static get DefaultType(){return Zn}static get NAME(){return Un}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),o.off(document,ct),o.on(document,Gn,t=>this._handleFocusin(t)),o.on(document,zn,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,o.off(document,ct))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const n=l.focusableChildren(e);n.length===0?e.focus():this._lastTabNavDirection===Gt?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){t.key===qn&&(this._lastTabNavDirection=t.shiftKey?Gt:Qn)}}const zt=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",qt=".sticky-top",et="padding-right",Qt="margin-right";class It{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,et,e=>e+t),this._setElementAttributes(zt,et,e=>e+t),this._setElementAttributes(qt,Qt,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,et),this._resetElementAttributes(zt,et),this._resetElementAttributes(qt,Qt)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){const i=this.getWidth(),a=r=>{if(r!==this._element&&window.innerWidth>r.clientWidth+i)return;this._saveInitialAttribute(r,e);const c=window.getComputedStyle(r).getPropertyValue(e);r.style.setProperty(e,`${n(Number.parseFloat(c))}px`)};this._applyManipulationCallback(t,a)}_saveInitialAttribute(t,e){const n=t.style.getPropertyValue(e);n&&N.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){const n=i=>{const a=N.getDataAttribute(i,e);if(a===null){i.style.removeProperty(e);return}N.removeDataAttribute(i,e),i.style.setProperty(e,a)};this._applyManipulationCallback(t,n)}_applyManipulationCallback(t,e){if(b(t)){e(t);return}for(const n of l.find(t,this._element))e(n)}}const Jn="modal",ti="bs.modal",p=`.${ti}`,ei=".data-api",si="Escape",ni=`hide${p}`,ii=`hidePrevented${p}`,Re=`hidden${p}`,Pe=`show${p}`,oi=`shown${p}`,ri=`resize${p}`,ai=`click.dismiss${p}`,li=`mousedown.dismiss${p}`,ci=`keydown.dismiss${p}`,hi=`click${p}${ei}`,Xt="modal-open",ui="fade",Zt="show",Nt="modal-static",_i=".modal.show",di=".modal-dialog",fi=".modal-body",pi='[data-bs-toggle="modal"]',Ei={backdrop:!0,focus:!0,keyboard:!0},mi={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class K extends g{constructor(t,e){super(t,e),this._dialog=l.findOne(di,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new It,this._addEventListeners()}static get Default(){return Ei}static get DefaultType(){return mi}static get NAME(){return Jn}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||o.trigger(this._element,Pe,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Xt),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||o.trigger(this._element,ni).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Zt),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){o.off(window,p),o.off(this._dialog,p),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ie({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Me({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(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;const e=l.findOne(fi,this._dialog);e&&(e.scrollTop=0),z(this._element),this._element.classList.add(Zt);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,o.trigger(this._element,oi,{relatedTarget:t})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){o.on(this._element,ci,t=>{if(t.key===si){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),o.on(window,ri,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),o.on(this._element,li,t=>{o.one(this._element,ai,e=>{if(!(this._element!==t.target||this._element!==e.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_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(Xt),this._resetAdjustments(),this._scrollBar.reset(),o.trigger(this._element,Re)})}_isAnimated(){return this._element.classList.contains(ui)}_triggerBackdropTransition(){if(o.trigger(this._element,ii).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;n==="hidden"||this._element.classList.contains(Nt)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Nt),this._queueCallback(()=>{this._element.classList.remove(Nt),this._queueCallback(()=>{this._element.style.overflowY=n},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),n=e>0;if(n&&!t){const i=f()?"paddingLeft":"paddingRight";this._element.style[i]=`${e}px`}if(!n&&t){const i=f()?"paddingRight":"paddingLeft";this._element.style[i]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const n=K.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](e)}})}}o.on(document,hi,pi,function(s){const t=l.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&s.preventDefault(),o.one(t,Pe,i=>{i.defaultPrevented||o.one(t,Re,()=>{F(this)&&this.focus()})});const e=l.findOne(_i);e&&K.getInstance(e).hide(),K.getOrCreateInstance(t).toggle(this)});ht(K);E(K);const gi="offcanvas",Ai="bs.offcanvas",C=`.${Ai}`,ke=".data-api",Ti=`load${C}${ke}`,bi="Escape",Jt="show",te="showing",ee="hiding",Ni="offcanvas-backdrop",Ve=".offcanvas.show",Ci=`show${C}`,vi=`shown${C}`,Si=`hide${C}`,se=`hidePrevented${C}`,He=`hidden${C}`,yi=`resize${C}`,Oi=`click${C}${ke}`,Di=`keydown.dismiss${C}`,wi='[data-bs-toggle="offcanvas"]',Li={backdrop:!0,keyboard:!0,scroll:!1},$i={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class O extends g{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Li}static get DefaultType(){return $i}static get NAME(){return gi}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||o.trigger(this._element,Ci,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new It().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(te);const n=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Jt),this._element.classList.remove(te),o.trigger(this._element,vi,{relatedTarget:t})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||o.trigger(this._element,Si).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(ee),this._backdrop.hide();const e=()=>{this._element.classList.remove(Jt,ee),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new It().reset(),o.trigger(this._element,He)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){o.trigger(this._element,se);return}this.hide()},e=!!this._config.backdrop;return new Ie({className:Ni,isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new Me({trapElement:this._element})}_addEventListeners(){o.on(this._element,Di,t=>{if(t.key===bi){if(this._config.keyboard){this.hide();return}o.trigger(this._element,se)}})}static jQueryInterface(t){return this.each(function(){const e=O.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}o.on(document,Oi,wi,function(s){const t=l.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),y(this))return;o.one(t,He,()=>{F(this)&&this.focus()});const e=l.findOne(Ve);e&&e!==t&&O.getInstance(e).hide(),O.getOrCreateInstance(t).toggle(this)});o.on(window,Ti,()=>{for(const s of l.find(Ve))O.getOrCreateInstance(s).show()});o.on(window,yi,()=>{for(const s of l.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(s).position!=="fixed"&&O.getOrCreateInstance(s).hide()});ht(O);E(O);const Ii=/^aria-[\w-]*$/i,xe={"*":["class","dir","id","lang","role",Ii],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:[]},Mi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ri=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Pi=(s,t)=>{const e=s.nodeName.toLowerCase();return t.includes(e)?Mi.has(e)?!!Ri.test(s.nodeValue):!0:t.filter(n=>n instanceof RegExp).some(n=>n.test(e))};function ki(s,t,e){if(!s.length)return s;if(e&&typeof e=="function")return e(s);const i=new window.DOMParser().parseFromString(s,"text/html"),a=[].concat(...i.body.querySelectorAll("*"));for(const r of a){const c=r.nodeName.toLowerCase();if(!Object.keys(t).includes(c)){r.remove();continue}const u=[].concat(...r.attributes),d=[].concat(t["*"]||[],t[c]||[]);for(const h of u)Pi(h,d)||r.removeAttribute(h.nodeName)}return i.body.innerHTML}const Vi="TemplateFactory",Hi={allowList:xe,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},xi={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Ki={entry:"(string|element|function|null)",selector:"(string|element)"};class Wi extends q{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Hi}static get DefaultType(){return xi}static get NAME(){return Vi}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[i,a]of Object.entries(this._config.content))this._setContent(t,a,i);const e=t.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&e.classList.add(...n.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,n]of Object.entries(t))super._typeCheckConfig({selector:e,entry:n},Ki)}_setContent(t,e,n){const i=l.findOne(n,t);if(i){if(e=this._resolvePossibleFunction(e),!e){i.remove();return}if(b(e)){this._putElementInTemplate(S(e),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(e);return}i.textContent=e}}_maybeSanitize(t){return this._config.sanitize?ki(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return _(t,[this])}_putElementInTemplate(t,e){if(this._config.html){e.innerHTML="",e.append(t);return}e.textContent=t.textContent}}const Fi="tooltip",Yi=new Set(["sanitize","allowList","sanitizeFn"]),Ct="fade",Bi="modal",st="show",Ui=".tooltip-inner",ne=`.${Bi}`,ie="hide.bs.modal",j="hover",vt="focus",ji="click",Gi="manual",zi="hide",qi="hidden",Qi="show",Xi="shown",Zi="inserted",Ji="click",to="focusin",eo="focusout",so="mouseenter",no="mouseleave",io={AUTO:"auto",TOP:"top",RIGHT:f()?"left":"right",BOTTOM:"bottom",LEFT:f()?"right":"left"},oo={allowList:xe,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},ro={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class B extends g{constructor(t,e){if(typeof ue>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return oo}static get DefaultType(){return ro}static get NAME(){return Fi}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),o.off(this._element.closest(ne),ie,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),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 t=o.trigger(this._element,this.constructor.eventName(Qi)),n=(pe(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!n)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:a}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(a.append(i),o.trigger(this._element,this.constructor.eventName(Zi))),this._popper=this._createPopper(i),i.classList.add(st),"ontouchstart"in document.documentElement)for(const c of[].concat(...document.body.children))o.on(c,"mouseover",at);const r=()=>{o.trigger(this._element,this.constructor.eventName(Xi)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(r,this.tip,this._isAnimated())}hide(){if(!this._isShown()||o.trigger(this._element,this.constructor.eventName(zi)).defaultPrevented)return;if(this._getTipElement().classList.remove(st),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))o.off(i,"mouseover",at);this._activeTrigger[ji]=!1,this._activeTrigger[vt]=!1,this._activeTrigger[j]=!1,this._isHovered=null;const n=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),o.trigger(this._element,this.constructor.eventName(qi)))};this._queueCallback(n,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Ct,st),e.classList.add(`bs-${this.constructor.NAME}-auto`);const n=Ue(this.constructor.NAME).toString();return e.setAttribute("id",n),this._isAnimated()&&e.classList.add(Ct),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Wi({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Ui]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ct)}_isShown(){return this.tip&&this.tip.classList.contains(st)}_createPopper(t){const e=_(this._config.placement,[this,t,this._element]),n=io[e.toUpperCase()];return _e(this._element,t,this._getPopperConfig(n))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_resolvePossibleFunction(t){return _(t,[this._element])}_getPopperConfig(t){const e={placement:t,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:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...e,..._(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if(e==="click")o.on(this._element,this.constructor.eventName(Ji),this._config.selector,n=>{this._initializeOnDelegatedTarget(n).toggle()});else if(e!==Gi){const n=e===j?this.constructor.eventName(so):this.constructor.eventName(to),i=e===j?this.constructor.eventName(no):this.constructor.eventName(eo);o.on(this._element,n,this._config.selector,a=>{const r=this._initializeOnDelegatedTarget(a);r._activeTrigger[a.type==="focusin"?vt:j]=!0,r._enter()}),o.on(this._element,i,this._config.selector,a=>{const r=this._initializeOnDelegatedTarget(a);r._activeTrigger[a.type==="focusout"?vt:j]=r._element.contains(a.relatedTarget),r._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},o.on(this._element.closest(ne),ie,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=N.getDataAttributes(this._element);for(const n of Object.keys(e))Yi.has(n)&&delete e[n];return t={...e,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:S(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,n]of Object.entries(this._config))this.constructor.Default[e]!==n&&(t[e]=n);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const e=B.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}E(B);const ao="popover",lo=".popover-header",co=".popover-body",ho={...B.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},uo={...B.DefaultType,content:"(null|string|element|function)"};class kt extends B{static get Default(){return ho}static get DefaultType(){return uo}static get NAME(){return ao}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[lo]:this._getTitle(),[co]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const e=kt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}E(kt);const _o="scrollspy",fo="bs.scrollspy",Vt=`.${fo}`,po=".data-api",Eo=`activate${Vt}`,oe=`click${Vt}`,mo=`load${Vt}${po}`,go="dropdown-item",k="active",Ao='[data-bs-spy="scroll"]',St="[href]",To=".nav, .list-group",re=".nav-link",bo=".nav-item",No=".list-group-item",Co=`${re}, ${bo} > ${re}, ${No}`,vo=".dropdown",So=".dropdown-toggle",yo={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Oo={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class dt extends g{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return yo}static get DefaultType(){return Oo}static get NAME(){return _o}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=S(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(e=>Number.parseFloat(e))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(o.off(this._config.target,oe),o.on(this._config.target,oe,St,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const n=this._rootElement||window,i=e.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:i,behavior:"smooth"});return}n.scrollTop=i}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),t)}_observerCallback(t){const e=r=>this._targetLinks.get(`#${r.target.id}`),n=r=>{this._previousScrollData.visibleEntryTop=r.target.offsetTop,this._process(e(r))},i=(this._rootElement||document.documentElement).scrollTop,a=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const r of t){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(r));continue}const c=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(a&&c){if(n(r),!i)return;continue}!a&&!c&&n(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=l.find(St,this._config.target);for(const e of t){if(!e.hash||y(e))continue;const n=l.findOne(decodeURI(e.hash),this._element);F(n)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,n))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(k),this._activateParents(t),o.trigger(this._element,Eo,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(go)){l.findOne(So,t.closest(vo)).classList.add(k);return}for(const e of l.parents(t,To))for(const n of l.prev(e,Co))n.classList.add(k)}_clearActiveClass(t){t.classList.remove(k);const e=l.find(`${St}.${k}`,t);for(const n of e)n.classList.remove(k)}static jQueryInterface(t){return this.each(function(){const e=dt.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}o.on(window,mo,()=>{for(const s of l.find(Ao))dt.getOrCreateInstance(s)});E(dt);const Do="tab",wo="bs.tab",M=`.${wo}`,Lo=`hide${M}`,$o=`hidden${M}`,Io=`show${M}`,Mo=`shown${M}`,Ro=`click${M}`,Po=`keydown${M}`,ko=`load${M}`,Vo="ArrowLeft",ae="ArrowRight",Ho="ArrowUp",le="ArrowDown",$="active",ce="fade",yt="show",xo="dropdown",Ko=".dropdown-toggle",Wo=".dropdown-menu",Ot=":not(.dropdown-toggle)",Fo='.list-group, .nav, [role="tablist"]',Yo=".nav-item, .list-group-item",Bo=`.nav-link${Ot}, .list-group-item${Ot}, [role="tab"]${Ot}`,Ke='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Dt=`${Bo}, ${Ke}`,Uo=`.${$}[data-bs-toggle="tab"], .${$}[data-bs-toggle="pill"], .${$}[data-bs-toggle="list"]`;class W extends g{constructor(t){super(t),this._parent=this._element.closest(Fo),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),o.on(this._element,Po,e=>this._keydown(e)))}static get NAME(){return Do}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),n=e?o.trigger(e,Lo,{relatedTarget:t}):null;o.trigger(t,Io,{relatedTarget:e}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add($),this._activate(l.getElementFromSelector(t));const n=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(yt);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),o.trigger(t,Mo,{relatedTarget:e})};this._queueCallback(n,t,t.classList.contains(ce))}_deactivate(t,e){if(!t)return;t.classList.remove($),t.blur(),this._deactivate(l.getElementFromSelector(t));const n=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(yt);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),o.trigger(t,$o,{relatedTarget:e})};this._queueCallback(n,t,t.classList.contains(ce))}_keydown(t){if(![Vo,ae,Ho,le].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=[ae,le].includes(t.key),n=Mt(this._getChildren().filter(i=>!y(i)),t.target,e,!0);n&&(n.focus({preventScroll:!0}),W.getOrCreateInstance(n).show())}_getChildren(){return l.find(Dt,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const n of e)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),n=this._getOuterElement(t);t.setAttribute("aria-selected",e),n!==t&&this._setAttributeIfNotExists(n,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=l.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const n=this._getOuterElement(t);if(!n.classList.contains(xo))return;const i=(a,r)=>{const c=l.findOne(a,n);c&&c.classList.toggle(r,e)};i(Ko,$),i(Wo,yt),n.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,n){t.hasAttribute(e)||t.setAttribute(e,n)}_elemIsActive(t){return t.classList.contains($)}_getInnerElement(t){return t.matches(Dt)?t:l.findOne(Dt,t)}_getOuterElement(t){return t.closest(Yo)||t}static jQueryInterface(t){return this.each(function(){const e=W.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}o.on(document,Ro,Ke,function(s){["A","AREA"].includes(this.tagName)&&s.preventDefault(),!y(this)&&W.getOrCreateInstance(this).show()});o.on(window,ko,()=>{for(const s of l.find(Uo))W.getOrCreateInstance(s)});E(W);const jo="toast",Go="bs.toast",w=`.${Go}`,zo=`mouseover${w}`,qo=`mouseout${w}`,Qo=`focusin${w}`,Xo=`focusout${w}`,Zo=`hide${w}`,Jo=`hidden${w}`,tr=`show${w}`,er=`shown${w}`,sr="fade",he="hide",nt="show",it="showing",nr={animation:"boolean",autohide:"boolean",delay:"number"},ir={animation:!0,autohide:!0,delay:5e3};class ft extends g{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ir}static get DefaultType(){return nr}static get NAME(){return jo}show(){if(o.trigger(this._element,tr).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(sr);const e=()=>{this._element.classList.remove(it),o.trigger(this._element,er),this._maybeScheduleHide()};this._element.classList.remove(he),z(this._element),this._element.classList.add(nt,it),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||o.trigger(this._element,Zo).defaultPrevented)return;const e=()=>{this._element.classList.add(he),this._element.classList.remove(it,nt),o.trigger(this._element,Jo)};this._element.classList.add(it),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(nt),super.dispose()}isShown(){return this._element.classList.contains(nt)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=e;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=e;break}}if(e){this._clearTimeout();return}const n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){o.on(this._element,zo,t=>this._onInteraction(t,!0)),o.on(this._element,qo,t=>this._onInteraction(t,!1)),o.on(this._element,Qo,t=>this._onInteraction(t,!0)),o.on(this._element,Xo,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=ft.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}ht(ft);E(ft);