-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripts.4e6d6f582996c29b.js
1 lines (1 loc) · 77.5 KB
/
scripts.4e6d6f582996c29b.js
1
!function(X,ce){"object"==typeof exports&&typeof module<"u"?module.exports=ce():"function"==typeof define&&define.amd?define(ce):(X=typeof globalThis<"u"?globalThis:X||self).bootstrap=ce()}(this,function(){"use strict";const X=new Map,ce={set(i,e,t){X.has(i)||X.set(i,new Map);const n=X.get(i);n.has(e)||0===n.size?n.set(e,t):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(i,e)=>X.has(i)&&X.get(i).get(e)||null,remove(i,e){if(!X.has(i))return;const t=X.get(i);t.delete(e),0===t.size&&X.delete(i)}},ft="transitionend",Ut=i=>(i&&window.CSS&&window.CSS.escape&&(i=i.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),i),Qt=i=>{i.dispatchEvent(new Event(ft))},te=i=>!(!i||"object"!=typeof i)&&(void 0!==i.jquery&&(i=i[0]),void 0!==i.nodeType),oe=i=>te(i)?i.jquery?i[0]:i:"string"==typeof i&&i.length>0?document.querySelector(Ut(i)):null,be=i=>{if(!te(i)||0===i.getClientRects().length)return!1;const e="visible"===getComputedStyle(i).getPropertyValue("visibility"),t=i.closest("details:not([open])");if(!t)return e;if(t!==i){const n=i.closest("summary");if(n&&n.parentNode!==t||null===n)return!1}return e},re=i=>!i||i.nodeType!==Node.ELEMENT_NODE||!!i.classList.contains("disabled")||(void 0!==i.disabled?i.disabled:i.hasAttribute("disabled")&&"false"!==i.getAttribute("disabled")),Yt=i=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof i.getRootNode){const e=i.getRootNode();return e instanceof ShadowRoot?e:null}return i instanceof ShadowRoot?i:i.parentNode?Yt(i.parentNode):null},Re=()=>{},Gt=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,pt=[],B=()=>"rtl"===document.documentElement.dir,z=i=>{var e;e=()=>{const t=Gt();if(t){const n=i.NAME,s=t.fn[n];t.fn[n]=i.jQueryInterface,t.fn[n].Constructor=i,t.fn[n].noConflict=()=>(t.fn[n]=s,i.jQueryInterface)}},"loading"===document.readyState?(pt.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of pt)t()}),pt.push(e)):e()},j=(i,e=[],t=i)=>"function"==typeof i?i(...e):t,Zt=(i,e,t=!0)=>{if(!t)return void j(i);const n=(r=>{if(!r)return 0;let{transitionDuration:a,transitionDelay:c}=window.getComputedStyle(r);const d=Number.parseFloat(a),u=Number.parseFloat(c);return d||u?(a=a.split(",")[0],c=c.split(",")[0],1e3*(Number.parseFloat(a)+Number.parseFloat(c))):0})(e)+5;let s=!1;const o=({target:r})=>{r===e&&(s=!0,e.removeEventListener(ft,o),j(i))};e.addEventListener(ft,o),setTimeout(()=>{s||Qt(e)},n)},mt=(i,e,t,n)=>{const s=i.length;let o=i.indexOf(e);return-1===o?!t&&n?i[s-1]:i[0]:(o+=t?1:-1,n&&(o=(o+s)%s),i[Math.max(0,Math.min(o,s-1))])},jn=/[^.]*(?=\..*)\.|.*/,Fn=/\..*/,Hn=/::\d+$/,gt={};let Jt=1;const ei={mouseenter:"mouseover",mouseleave:"mouseout"},$n=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 ti(i,e){return e&&`${e}::${Jt++}`||i.uidEvent||Jt++}function ii(i){const e=ti(i);return i.uidEvent=e,gt[e]=gt[e]||{},gt[e]}function ni(i,e,t=null){return Object.values(i).find(n=>n.callable===e&&n.delegationSelector===t)}function si(i,e,t){const n="string"==typeof e,s=n?t:e||t;let o=ri(i);return $n.has(o)||(o=i),[n,s,o]}function oi(i,e,t,n,s){if("string"!=typeof e||!i)return;let[o,r,a]=si(e,t,n);var g;e in ei&&(g=r,r=function(m){if(!m.relatedTarget||m.relatedTarget!==m.delegateTarget&&!m.delegateTarget.contains(m.relatedTarget))return g.call(this,m)});const c=ii(i),d=c[a]||(c[a]={}),u=ni(d,r,o?t:null);if(u)return void(u.oneOff=u.oneOff&&s);const h=ti(r,e.replace(jn,"")),b=o?function(p,g,m){return function _(C){const k=p.querySelectorAll(g);for(let{target:y}=C;y&&y!==this;y=y.parentNode)for(const E of k)if(E===y)return bt(C,{delegateTarget:y}),_.oneOff&&l.off(p,C.type,g,m),m.apply(y,[C])}}(i,t,r):function(p,g){return function m(_){return bt(_,{delegateTarget:p}),m.oneOff&&l.off(p,_.type,g),g.apply(p,[_])}}(i,r);b.delegationSelector=o?t:null,b.callable=r,b.oneOff=s,b.uidEvent=h,d[h]=b,i.addEventListener(a,b,o)}function _t(i,e,t,n,s){const o=ni(e[t],n,s);o&&(i.removeEventListener(t,o,Boolean(s)),delete e[t][o.uidEvent])}function Wn(i,e,t,n){const s=e[t]||{};for(const[o,r]of Object.entries(s))o.includes(n)&&_t(i,e,t,r.callable,r.delegationSelector)}function ri(i){return i=i.replace(Fn,""),ei[i]||i}const l={on(i,e,t,n){oi(i,e,t,n,!1)},one(i,e,t,n){oi(i,e,t,n,!0)},off(i,e,t,n){if("string"!=typeof e||!i)return;const[s,o,r]=si(e,t,n),a=r!==e,c=ii(i),d=c[r]||{},u=e.startsWith(".");if(void 0===o){if(u)for(const h of Object.keys(c))Wn(i,c,h,e.slice(1));for(const[h,b]of Object.entries(d)){const p=h.replace(Hn,"");a&&!e.includes(p)||_t(i,c,r,b.callable,b.delegationSelector)}}else{if(!Object.keys(d).length)return;_t(i,c,r,o,s?t:null)}},trigger(i,e,t){if("string"!=typeof e||!i)return null;const n=Gt();let s=null,o=!0,r=!0,a=!1;e!==ri(e)&&n&&(s=n.Event(e,t),n(i).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const c=bt(new Event(e,{bubbles:o,cancelable:!0}),t);return a&&c.preventDefault(),r&&i.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function bt(i,e={}){for(const[t,n]of Object.entries(e))try{i[t]=n}catch{Object.defineProperty(i,t,{configurable:!0,get:()=>n})}return i}function ai(i){if("true"===i)return!0;if("false"===i)return!1;if(i===Number(i).toString())return Number(i);if(""===i||"null"===i)return null;if("string"!=typeof i)return i;try{return JSON.parse(decodeURIComponent(i))}catch{return i}}function vt(i){return i.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const ie={setDataAttribute(i,e,t){i.setAttribute(`data-bs-${vt(e)}`,t)},removeDataAttribute(i,e){i.removeAttribute(`data-bs-${vt(e)}`)},getDataAttributes(i){if(!i)return{};const e={},t=Object.keys(i.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of t){let s=n.replace(/^bs/,"");s=s.charAt(0).toLowerCase()+s.slice(1,s.length),e[s]=ai(i.dataset[n])}return e},getDataAttribute:(i,e)=>ai(i.getAttribute(`data-bs-${vt(e)}`))};class Ie{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(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const n=te(t)?ie.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...te(t)?ie.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[s,o]of Object.entries(t)){const r=e[s],a=te(r)?"element":null==(n=r)?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(a))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${s}" provided type "${a}" but expected type "${o}".`)}var n}}class U extends Ie{constructor(e,t){super(),(e=oe(e))&&(this._element=e,this._config=this._getConfig(t),ce.set(this._element,this.constructor.DATA_KEY,this))}dispose(){ce.remove(this._element,this.constructor.DATA_KEY),l.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){Zt(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return ce.get(oe(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.0"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const yt=i=>{let e=i.getAttribute("data-bs-target");if(!e||"#"===e){let t=i.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 Ut(e)},f={find:(i,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,i)),findOne:(i,e=document.documentElement)=>Element.prototype.querySelector.call(e,i),children:(i,e)=>[].concat(...i.children).filter(t=>t.matches(e)),parents(i,e){const t=[];let n=i.parentNode.closest(e);for(;n;)t.push(n),n=n.parentNode.closest(e);return t},prev(i,e){let t=i.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(i,e){let t=i.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(i){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,i).filter(t=>!re(t)&&be(t))},getSelectorFromElement(i){const e=yt(i);return e&&f.findOne(e)?e:null},getElementFromSelector(i){const e=yt(i);return e?f.findOne(e):null},getMultipleElementsFromSelector(i){const e=yt(i);return e?f.find(e):[]}},qe=(i,e="hide")=>{const n=i.NAME;l.on(document,`click.dismiss${i.EVENT_KEY}`,`[data-bs-dismiss="${n}"]`,function(s){if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),re(this))return;const o=f.getElementFromSelector(this)||this.closest(`.${n}`);i.getOrCreateInstance(o)[e]()})};class Ne extends U{static get NAME(){return"alert"}close(){if(l.trigger(this._element,"close.bs.alert").defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),l.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Ne.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}qe(Ne,"close"),z(Ne);const li='[data-bs-toggle="button"]';class Pe extends U{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=Pe.getOrCreateInstance(this);"toggle"===e&&t[e]()})}}l.on(document,"click.bs.button.data-api",li,i=>{i.preventDefault();const e=i.target.closest(li);Pe.getOrCreateInstance(e).toggle()}),z(Pe);const Bn={endCallback:null,leftCallback:null,rightCallback:null},zn={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Ve extends Ie{constructor(e,t){super(),this._element=e,e&&Ve.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Bn}static get DefaultType(){return zn}static get NAME(){return"swipe"}dispose(){l.off(this._element,".bs.swipe")}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),j(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&j(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(l.on(this._element,"pointerdown.bs.swipe",e=>this._start(e)),l.on(this._element,"pointerup.bs.swipe",e=>this._end(e)),this._element.classList.add("pointer-event")):(l.on(this._element,"touchstart.bs.swipe",e=>this._start(e)),l.on(this._element,"touchmove.bs.swipe",e=>this._move(e)),l.on(this._element,"touchend.bs.swipe",e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Me="next",ve="prev",ye="left",Ke="right",wt="slid.bs.carousel",ci="carousel",Xe="active",Rn={ArrowLeft:Ke,ArrowRight:ye},qn={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Vn={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class we extends U{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=f.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ci&&this.cycle()}static get Default(){return qn}static get DefaultType(){return Vn}static get NAME(){return"carousel"}next(){this._slide(Me)}nextWhenVisible(){!document.hidden&&be(this._element)&&this.next()}prev(){this._slide(ve)}pause(){this._isSliding&&Qt(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?l.one(this._element,wt,()=>this.cycle()):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void l.one(this._element,wt,()=>this.to(e));const n=this._getItemIndex(this._getActive());n!==e&&this._slide(e>n?Me:ve,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&l.on(this._element,"keydown.bs.carousel",e=>this._keydown(e)),"hover"===this._config.pause&&(l.on(this._element,"mouseenter.bs.carousel",()=>this.pause()),l.on(this._element,"mouseleave.bs.carousel",()=>this._maybeEnableCycle())),this._config.touch&&Ve.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of f.find(".carousel-item img",this._element))l.on(t,"dragstart.bs.carousel",n=>n.preventDefault());this._swipeHelper=new Ve(this._element,{leftCallback:()=>this._slide(this._directionToOrder(ye)),rightCallback:()=>this._slide(this._directionToOrder(Ke)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}})}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=Rn[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=f.findOne(".active",this._indicatorsElement);t.classList.remove(Xe),t.removeAttribute("aria-current");const n=f.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(Xe),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const n=this._getActive(),s=e===Me,o=t||mt(this._getItems(),n,s,this._config.wrap);if(o===n)return;const r=this._getItemIndex(o),a=h=>l.trigger(this._element,h,{relatedTarget:o,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:r});if(a("slide.bs.carousel").defaultPrevented||!n||!o)return;const c=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=o;const d=s?"carousel-item-start":"carousel-item-end",u=s?"carousel-item-next":"carousel-item-prev";o.classList.add(u),n.classList.add(d),o.classList.add(d),this._queueCallback(()=>{o.classList.remove(d,u),o.classList.add(Xe),n.classList.remove(Xe,u,d),this._isSliding=!1,a(wt)},n,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return f.findOne(".active.carousel-item",this._element)}_getItems(){return f.find(".carousel-item",this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return B()?e===ye?ve:Me:e===ye?Me:ve}_orderToDirection(e){return B()?e===ve?ye:Ke:e===ve?Ke:ye}static jQueryInterface(e){return this.each(function(){const t=we.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)})}}l.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",function(i){const e=f.getElementFromSelector(this);if(!e||!e.classList.contains(ci))return;i.preventDefault();const t=we.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");return n?(t.to(n),void t._maybeEnableCycle()):"next"===ie.getDataAttribute(this,"slide")?(t.next(),void t._maybeEnableCycle()):(t.prev(),void t._maybeEnableCycle())}),l.on(window,"load.bs.carousel.data-api",()=>{const i=f.find('[data-bs-ride="carousel"]');for(const e of i)we.getOrCreateInstance(e)}),z(we);const Et="show",Ue="collapse",Qe="collapsing",At='[data-bs-toggle="collapse"]',Kn={parent:null,toggle:!0},Xn={parent:"(null|element)",toggle:"boolean"};class Ee extends U{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=f.find(At);for(const s of n){const o=f.getSelectorFromElement(s),r=f.find(o).filter(a=>a===this._element);null!==o&&r.length&&this._triggerArray.push(s)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Kn}static get DefaultType(){return Xn}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(s=>s!==this._element).map(s=>Ee.getOrCreateInstance(s,{toggle:!1}))),e.length&&e[0]._isTransitioning||l.trigger(this._element,"show.bs.collapse").defaultPrevented)return;for(const s of e)s.hide();const t=this._getDimension();this._element.classList.remove(Ue),this._element.classList.add(Qe),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Qe),this._element.classList.add(Ue,Et),this._element.style[t]="",l.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown()||l.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,this._element.classList.add(Qe),this._element.classList.remove(Ue,Et);for(const t of this._triggerArray){const n=f.getElementFromSelector(t);n&&!this._isShown(n)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Qe),this._element.classList.add(Ue),l.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}_isShown(e=this._element){return e.classList.contains(Et)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=oe(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(At);for(const t of e){const n=f.getElementFromSelector(t);n&&this._addAriaAndCollapsedClass([t],this._isShown(n))}}_getFirstLevelChildren(e){const t=f.find(":scope .collapse .collapse",this._config.parent);return f.find(e,this._config.parent).filter(n=>!t.includes(n))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const n=Ee.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}})}}l.on(document,"click.bs.collapse.data-api",At,function(i){("A"===i.target.tagName||i.delegateTarget&&"A"===i.delegateTarget.tagName)&&i.preventDefault();for(const e of f.getMultipleElementsFromSelector(this))Ee.getOrCreateInstance(e,{toggle:!1}).toggle()}),z(Ee);var I="top",F="bottom",H="right",N="left",Ye="auto",Ae=[I,F,H,N],he="start",Te="end",hi="clippingParents",Tt="viewport",Ce="popper",di="reference",Ct=Ae.reduce(function(i,e){return i.concat([e+"-"+he,e+"-"+Te])},[]),Ot=[].concat(Ae,[Ye]).reduce(function(i,e){return i.concat([e,e+"-"+he,e+"-"+Te])},[]),ui="beforeRead",pi="afterRead",mi="beforeMain",_i="afterMain",bi="beforeWrite",yi="afterWrite",wi=[ui,"read",pi,mi,"main",_i,bi,"write",yi];function G(i){return i?(i.nodeName||"").toLowerCase():null}function $(i){if(null==i)return window;if("[object Window]"!==i.toString()){var e=i.ownerDocument;return e&&e.defaultView||window}return i}function de(i){return i instanceof $(i).Element||i instanceof Element}function R(i){return i instanceof $(i).HTMLElement||i instanceof HTMLElement}function xt(i){return typeof ShadowRoot<"u"&&(i instanceof $(i).ShadowRoot||i instanceof ShadowRoot)}const kt={name:"applyStyles",enabled:!0,phase:"write",fn:function(i){var e=i.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},s=e.attributes[t]||{},o=e.elements[t];R(o)&&G(o)&&(Object.assign(o.style,n),Object.keys(s).forEach(function(r){var a=s[r];!1===a?o.removeAttribute(r):o.setAttribute(r,!0===a?"":a)}))})},effect:function(i){var e=i.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(n){var s=e.elements[n],o=e.attributes[n]||{},r=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce(function(a,c){return a[c]="",a},{});R(s)&&G(s)&&(Object.assign(s.style,r),Object.keys(o).forEach(function(a){s.removeAttribute(a)}))})}},requires:["computeStyles"]};function Z(i){return i.split("-")[0]}var ue=Math.max,Ge=Math.min,Oe=Math.round;function Lt(){var i=navigator.userAgentData;return null!=i&&i.brands&&Array.isArray(i.brands)?i.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Ei(){return!/^((?!chrome|android).)*safari/i.test(Lt())}function xe(i,e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var n=i.getBoundingClientRect(),s=1,o=1;e&&R(i)&&(s=i.offsetWidth>0&&Oe(n.width)/i.offsetWidth||1,o=i.offsetHeight>0&&Oe(n.height)/i.offsetHeight||1);var r=(de(i)?$(i):window).visualViewport,a=!Ei()&&t,c=(n.left+(a&&r?r.offsetLeft:0))/s,d=(n.top+(a&&r?r.offsetTop:0))/o,u=n.width/s,h=n.height/o;return{width:u,height:h,top:d,right:c+u,bottom:d+h,left:c,x:c,y:d}}function St(i){var e=xe(i),t=i.offsetWidth,n=i.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:i.offsetLeft,y:i.offsetTop,width:t,height:n}}function Ai(i,e){var t=e.getRootNode&&e.getRootNode();if(i.contains(e))return!0;if(t&&xt(t)){var n=e;do{if(n&&i.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ne(i){return $(i).getComputedStyle(i)}function Un(i){return["table","td","th"].indexOf(G(i))>=0}function ae(i){return((de(i)?i.ownerDocument:i.document)||window.document).documentElement}function Ze(i){return"html"===G(i)?i:i.assignedSlot||i.parentNode||(xt(i)?i.host:null)||ae(i)}function Ti(i){return R(i)&&"fixed"!==ne(i).position?i.offsetParent:null}function je(i){for(var e=$(i),t=Ti(i);t&&Un(t)&&"static"===ne(t).position;)t=Ti(t);return t&&("html"===G(t)||"body"===G(t)&&"static"===ne(t).position)?e:t||function(n){var s=/firefox/i.test(Lt());if(/Trident/i.test(Lt())&&R(n)&&"fixed"===ne(n).position)return null;var o=Ze(n);for(xt(o)&&(o=o.host);R(o)&&["html","body"].indexOf(G(o))<0;){var r=ne(o);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||s&&"filter"===r.willChange||s&&r.filter&&"none"!==r.filter)return o;o=o.parentNode}return null}(i)||e}function Dt(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function Fe(i,e,t){return ue(i,Ge(e,t))}function Ci(i){return Object.assign({},{top:0,right:0,bottom:0,left:0},i)}function Oi(i,e){return e.reduce(function(t,n){return t[n]=i,t},{})}const xi={name:"arrow",enabled:!0,phase:"main",fn:function(i){var e,O,T,t=i.state,n=i.name,s=i.options,o=t.elements.arrow,r=t.modifiersData.popperOffsets,a=Z(t.placement),c=Dt(a),d=[N,H].indexOf(a)>=0?"height":"width";if(o&&r){var u=(T=t,Ci("number"!=typeof(O="function"==typeof(O=s.padding)?O(Object.assign({},T.rects,{placement:T.placement})):O)?O:Oi(O,Ae))),h=St(o),b="y"===c?I:N,p="y"===c?F:H,g=t.rects.reference[d]+t.rects.reference[c]-r[c]-t.rects.popper[d],m=r[c]-t.rects.reference[c],_=je(o),C=_?"y"===c?_.clientHeight||0:_.clientWidth||0:0,v=C/2-h[d]/2+(g/2-m/2),w=Fe(u[b],v,C-h[d]-u[p]);t.modifiersData[n]=((e={})[c]=w,e.centerOffset=w-v,e)}},effect:function(i){var e=i.state,t=i.options.element,n=void 0===t?"[data-popper-arrow]":t;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&Ai(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ke(i){return i.split("-")[1]}var Qn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ki(i){var e,t=i.popper,n=i.popperRect,s=i.placement,o=i.variation,r=i.offsets,a=i.position,c=i.gpuAcceleration,d=i.adaptive,u=i.roundOffsets,h=i.isFixed,b=r.x,p=void 0===b?0:b,g=r.y,m=void 0===g?0:g,_="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=_.x,m=_.y;var C=r.hasOwnProperty("x"),k=r.hasOwnProperty("y"),y=N,E=I,v=window;if(d){var w=je(t),A="clientHeight",O="clientWidth";w===$(t)&&"static"!==ne(w=ae(t)).position&&"absolute"===a&&(A="scrollHeight",O="scrollWidth"),(s===I||(s===N||s===H)&&o===Te)&&(E=F,m-=(h&&w===v&&v.visualViewport?v.visualViewport.height:w[A])-n.height,m*=c?1:-1),s!==N&&(s!==I&&s!==F||o!==Te)||(y=H,p-=(h&&w===v&&v.visualViewport?v.visualViewport.width:w[O])-n.width,p*=c?1:-1)}var T,Y,P,V,L,S=Object.assign({position:a},d&&Qn),W=!0===u?(Y={x:p,y:m},P=$(t),V=Y.y,{x:Oe(Y.x*(L=P.devicePixelRatio||1))/L||0,y:Oe(V*L)/L||0}):{x:p,y:m};return p=W.x,m=W.y,Object.assign({},S,c?((T={})[E]=k?"0":"",T[y]=C?"0":"",T.transform=(v.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",T):((e={})[E]=k?m+"px":"",e[y]=C?p+"px":"",e.transform="",e))}const It={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(i){var e=i.state,t=i.options,n=t.gpuAcceleration,s=void 0===n||n,o=t.adaptive,r=void 0===o||o,a=t.roundOffsets,c=void 0===a||a,d={placement:Z(e.placement),variation:ke(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,ki(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,ki(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:{}};var Je={passive:!0};const Nt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(i){var e=i.state,t=i.instance,n=i.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,c=$(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&d.forEach(function(u){u.addEventListener("scroll",t.update,Je)}),a&&c.addEventListener("resize",t.update,Je),function(){o&&d.forEach(function(u){u.removeEventListener("scroll",t.update,Je)}),a&&c.removeEventListener("resize",t.update,Je)}},data:{}};var Yn={left:"right",right:"left",bottom:"top",top:"bottom"};function et(i){return i.replace(/left|right|bottom|top/g,function(e){return Yn[e]})}var Gn={start:"end",end:"start"};function Li(i){return i.replace(/start|end/g,function(e){return Gn[e]})}function Pt(i){var e=$(i);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Mt(i){return xe(ae(i)).left+Pt(i).scrollLeft}function jt(i){var e=ne(i);return/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function Si(i){return["html","body","#document"].indexOf(G(i))>=0?i.ownerDocument.body:R(i)&&jt(i)?i:Si(Ze(i))}function He(i,e){var t;void 0===e&&(e=[]);var n=Si(i),s=n===(null==(t=i.ownerDocument)?void 0:t.body),o=$(n),r=s?[o].concat(o.visualViewport||[],jt(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(He(Ze(r)))}function Ft(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function Di(i,e,t){return e===Tt?Ft(function(n,s){var o=$(n),r=ae(n),a=o.visualViewport,c=r.clientWidth,d=r.clientHeight,u=0,h=0;if(a){c=a.width,d=a.height;var b=Ei();(b||!b&&"fixed"===s)&&(u=a.offsetLeft,h=a.offsetTop)}return{width:c,height:d,x:u+Mt(n),y:h}}(i,t)):de(e)?((o=xe(n=e,!1,"fixed"===t)).top=o.top+n.clientTop,o.left=o.left+n.clientLeft,o.bottom=o.top+n.clientHeight,o.right=o.left+n.clientWidth,o.width=n.clientWidth,o.height=n.clientHeight,o.x=o.left,o.y=o.top,o):Ft(function(n){var s,o=ae(n),r=Pt(n),a=null==(s=n.ownerDocument)?void 0:s.body,c=ue(o.scrollWidth,o.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),d=ue(o.scrollHeight,o.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),u=-r.scrollLeft+Mt(n),h=-r.scrollTop;return"rtl"===ne(a||o).direction&&(u+=ue(o.clientWidth,a?a.clientWidth:0)-c),{width:c,height:d,x:u,y:h}}(ae(i)));var n,o}function Ii(i){var e,t=i.reference,n=i.element,s=i.placement,o=s?Z(s):null,r=s?ke(s):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2;switch(o){case I:e={x:a,y:t.y-n.height};break;case F:e={x:a,y:t.y+t.height};break;case H:e={x:t.x+t.width,y:c};break;case N:e={x:t.x-n.width,y:c};break;default:e={x:t.x,y:t.y}}var d=o?Dt(o):null;if(null!=d){var u="y"===d?"height":"width";switch(r){case he:e[d]=e[d]-(t[u]/2-n[u]/2);break;case Te:e[d]=e[d]+(t[u]/2-n[u]/2)}}return e}function Le(i,e){void 0===e&&(e={});var P,q,V,L,x,M,K,J,ee,D,n=e.placement,s=void 0===n?i.placement:n,o=e.strategy,r=void 0===o?i.strategy:o,a=e.boundary,c=void 0===a?hi:a,d=e.rootBoundary,u=void 0===d?Tt:d,h=e.elementContext,b=void 0===h?Ce:h,p=e.altBoundary,g=void 0!==p&&p,m=e.padding,_=void 0===m?0:m,C=Ci("number"!=typeof _?_:Oi(_,Ae)),y=i.rects.popper,E=i.elements[g?b===Ce?di:Ce:b],v=(P=de(E)?E:E.contextElement||ae(i.elements.popper),V=u,L=r,J="clippingParents"===(q=c)?(M=He(Ze(x=P)),de(K=["absolute","fixed"].indexOf(ne(x).position)>=0&&R(x)?je(x):x)?M.filter(function(le){return de(le)&&Ai(le,K)&&"body"!==G(le)}):[]):[].concat(q),D=(ee=[].concat(J,[V])).reduce(function(x,M){var K=Di(P,M,L);return x.top=ue(K.top,x.top),x.right=Ge(K.right,x.right),x.bottom=Ge(K.bottom,x.bottom),x.left=ue(K.left,x.left),x},Di(P,ee[0],L)),D.width=D.right-D.left,D.height=D.bottom-D.top,D.x=D.left,D.y=D.top,D),w=xe(i.elements.reference),A=Ii({reference:w,element:y,strategy:"absolute",placement:s}),O=Ft(Object.assign({},y,A)),T=b===Ce?O:w,S={top:v.top-T.top+C.top,bottom:T.bottom-v.bottom+C.bottom,left:v.left-T.left+C.left,right:T.right-v.right+C.right},W=i.modifiersData.offset;if(b===Ce&&W){var Y=W[s];Object.keys(S).forEach(function(P){var q=[H,F].indexOf(P)>=0?1:-1,V=[I,F].indexOf(P)>=0?"y":"x";S[P]+=Y[V]*q})}return S}const Ni={name:"flip",enabled:!0,phase:"main",fn:function(i){var e=i.state,t=i.options,n=i.name;if(!e.modifiersData[n]._skip){for(var s=t.mainAxis,o=void 0===s||s,r=t.altAxis,a=void 0===r||r,c=t.fallbackPlacements,d=t.padding,u=t.boundary,h=t.rootBoundary,b=t.altBoundary,p=t.flipVariations,g=void 0===p||p,m=t.allowedAutoPlacements,_=e.options.placement,C=Z(_),k=c||(C!==_&&g?function(x){if(Z(x)===Ye)return[];var M=et(x);return[Li(x),M,Li(M)]}(_):[et(_)]),y=[_].concat(k).reduce(function(x,M){return x.concat(Z(M)===Ye?function Zn(i,e){void 0===e&&(e={});var s=e.boundary,o=e.rootBoundary,r=e.padding,a=e.flipVariations,c=e.allowedAutoPlacements,d=void 0===c?Ot:c,u=ke(e.placement),h=u?a?Ct:Ct.filter(function(g){return ke(g)===u}):Ae,b=h.filter(function(g){return d.indexOf(g)>=0});0===b.length&&(b=h);var p=b.reduce(function(g,m){return g[m]=Le(i,{placement:m,boundary:s,rootBoundary:o,padding:r})[Z(m)],g},{});return Object.keys(p).sort(function(g,m){return p[g]-p[m]})}(e,{placement:M,boundary:u,rootBoundary:h,padding:d,flipVariations:g,allowedAutoPlacements:m}):M)},[]),E=e.rects.reference,v=e.rects.popper,w=new Map,A=!0,O=y[0],T=0;T<y.length;T++){var S=y[T],W=Z(S),Y=ke(S)===he,P=[I,F].indexOf(W)>=0,q=P?"width":"height",V=Le(e,{placement:S,boundary:u,rootBoundary:h,altBoundary:b,padding:d}),L=P?Y?H:N:Y?F:I;E[q]>v[q]&&(L=et(L));var J=et(L),ee=[];if(o&&ee.push(V[W]<=0),a&&ee.push(V[L]<=0,V[J]<=0),ee.every(function(x){return x})){O=S,A=!1;break}w.set(S,ee)}if(A)for(var Se=function(x){var M=y.find(function(K){var le=w.get(K);if(le)return le.slice(0,x).every(function(ht){return ht})});if(M)return O=M,"break"},D=g?3:1;D>0&&"break"!==Se(D);D--);e.placement!==O&&(e.modifiersData[n]._skip=!0,e.placement=O,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Pi(i,e,t){return void 0===t&&(t={x:0,y:0}),{top:i.top-e.height-t.y,right:i.right-e.width+t.x,bottom:i.bottom-e.height+t.y,left:i.left-e.width-t.x}}function Mi(i){return[I,H,F,N].some(function(e){return i[e]>=0})}const ji={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(i){var e=i.state,t=i.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=Le(e,{elementContext:"reference"}),a=Le(e,{altBoundary:!0}),c=Pi(r,n),d=Pi(a,s,o),u=Mi(c),h=Mi(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})}},Fi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(i){var e=i.state,n=i.name,s=i.options.offset,o=void 0===s?[0,0]:s,r=Ot.reduce(function(u,h){return u[h]=(p=e.rects,g=o,m=Z(b=h),_=[N,I].indexOf(m)>=0?-1:1,k=(k=(C="function"==typeof g?g(Object.assign({},p,{placement:b})):g)[0])||0,y=((y=C[1])||0)*_,[N,H].indexOf(m)>=0?{x:y,y:k}:{x:k,y}),u;var b,p,g,m,_,C,k,y},{}),a=r[e.placement],d=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=a.x,e.modifiersData.popperOffsets.y+=d),e.modifiersData[n]=r}},Ht={name:"popperOffsets",enabled:!0,phase:"read",fn:function(i){var e=i.state;e.modifiersData[i.name]=Ii({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Hi={name:"preventOverflow",enabled:!0,phase:"main",fn:function(i){var Xt,Mn,e=i.state,t=i.options,n=i.name,s=t.mainAxis,o=void 0===s||s,r=t.altAxis,a=void 0!==r&&r,b=t.tether,p=void 0===b||b,g=t.tetherOffset,m=void 0===g?0:g,_=Le(e,{boundary:t.boundary,rootBoundary:t.rootBoundary,padding:t.padding,altBoundary:t.altBoundary}),C=Z(e.placement),k=ke(e.placement),y=!k,E=Dt(C),v="x"===E?"y":"x",w=e.modifiersData.popperOffsets,A=e.rects.reference,O=e.rects.popper,T="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,S="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),W=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Y={x:0,y:0};if(w){if(o){var P,q="y"===E?I:N,V="y"===E?F:H,L="y"===E?"height":"width",J=w[E],ee=J+_[q],Se=J-_[V],D=p?-O[L]/2:0,x=k===he?A[L]:O[L],M=k===he?-O[L]:-A[L],K=e.elements.arrow,le=p&&K?St(K):{width:0,height:0},ht=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Tn=ht[q],Cn=ht[V],dt=Fe(0,A[L],le[L]),Ws=y?A[L]/2-D-dt-Tn-S.mainAxis:x-dt-Tn-S.mainAxis,Bs=y?-A[L]/2+D+dt+Cn+S.mainAxis:M+dt+Cn+S.mainAxis,Vt=e.elements.arrow&&je(e.elements.arrow),On=null!=(P=W?.[E])?P:0,Rs=J+Bs-On,xn=Fe(p?Ge(ee,J+Ws-On-(Vt?"y"===E?Vt.clientTop||0:Vt.clientLeft||0:0)):ee,J,p?ue(Se,Rs):Se);w[E]=xn,Y[E]=xn-J}if(a){var kn,_e=w[v],ut="y"===v?"height":"width",Ln=_e+_["x"===E?I:N],Sn=_e-_["x"===E?F:H],Kt=-1!==[I,N].indexOf(C),Dn=null!=(kn=W?.[v])?kn:0,In=Kt?Ln:_e-A[ut]-O[ut]-Dn+S.altAxis,Nn=Kt?_e+A[ut]+O[ut]-Dn-S.altAxis:Sn,Pn=p&&Kt?(Mn=Fe(In,_e,Xt=Nn))>Xt?Xt:Mn:Fe(p?In:Ln,_e,p?Nn:Sn);w[v]=Pn,Y[v]=Pn-_e}e.modifiersData[n]=Y}},requiresIfExists:["offset"]};function Jn(i,e,t){void 0===t&&(t=!1);var n,s,h,b,p,g,o=R(e),r=R(e)&&(b=(h=e).getBoundingClientRect(),p=Oe(b.width)/h.offsetWidth||1,g=Oe(b.height)/h.offsetHeight||1,1!==p||1!==g),a=ae(e),c=xe(i,r,t),d={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!t)&&(("body"!==G(e)||jt(a))&&(d=(n=e)!==$(n)&&R(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:Pt(n)),R(e)?((u=xe(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=Mt(a))),{x:c.left+d.scrollLeft-u.x,y:c.top+d.scrollTop-u.y,width:c.width,height:c.height}}function es(i){var e=new Map,t=new Set,n=[];function s(o){t.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(r){if(!t.has(r)){var a=e.get(r);a&&s(a)}}),n.push(o)}return i.forEach(function(o){e.set(o.name,o)}),i.forEach(function(o){t.has(o.name)||s(o)}),n}var $i={placement:"bottom",modifiers:[],strategy:"absolute"};function Wi(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];return!e.some(function(n){return!(n&&"function"==typeof n.getBoundingClientRect)})}function tt(i){void 0===i&&(i={});var t=i.defaultModifiers,n=void 0===t?[]:t,s=i.defaultOptions,o=void 0===s?$i:s;return function(r,a,c){void 0===c&&(c=o);var d,u,h={placement:"bottom",orderedModifiers:[],options:Object.assign({},$i,o),modifiersData:{},elements:{reference:r,popper:a},attributes:{},styles:{}},b=[],p=!1,g={state:h,setOptions:function(_){var C="function"==typeof _?_(h.options):_;m(),h.options=Object.assign({},o,h.options,C),h.scrollParents={reference:de(r)?He(r):r.contextElement?He(r.contextElement):[],popper:He(a)};var k,y,v,w,E=(k=[].concat(n,h.options.modifiers),y=k.reduce(function(v,w){var A=v[w.name];return v[w.name]=A?Object.assign({},A,w,{options:Object.assign({},A.options,w.options),data:Object.assign({},A.data,w.data)}):w,v},{}),v=Object.keys(y).map(function(v){return y[v]}),w=es(v),wi.reduce(function(A,O){return A.concat(w.filter(function(T){return T.phase===O}))},[]));return h.orderedModifiers=E.filter(function(v){return v.enabled}),h.orderedModifiers.forEach(function(v){var A=v.options,T=v.effect;if("function"==typeof T){var S=T({state:h,name:v.name,instance:g,options:void 0===A?{}:A});b.push(S||function(){})}}),g.update()},forceUpdate:function(){if(!p){var _=h.elements,C=_.reference,k=_.popper;if(Wi(C,k)){h.rects={reference:Jn(C,je(k),"fixed"===h.options.strategy),popper:St(k)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(T){return h.modifiersData[T.name]=Object.assign({},T.data)});for(var y=0;y<h.orderedModifiers.length;y++)if(!0!==h.reset){var E=h.orderedModifiers[y],v=E.fn,w=E.options;"function"==typeof v&&(h=v({state:h,options:void 0===w?{}:w,name:E.name,instance:g})||h)}else h.reset=!1,y=-1}}},update:(d=function(){return new Promise(function(_){g.forceUpdate(),_(h)})},function(){return u||(u=new Promise(function(_){Promise.resolve().then(function(){u=void 0,_(d())})})),u}),destroy:function(){m(),p=!0}};if(!Wi(r,a))return g;function m(){b.forEach(function(_){return _()}),b=[]}return g.setOptions(c).then(function(_){!p&&c.onFirstUpdate&&c.onFirstUpdate(_)}),g}}var ts=tt(),is=tt({defaultModifiers:[Nt,Ht,It,kt]}),$t=tt({defaultModifiers:[Nt,Ht,It,kt,Fi,Ni,Hi,xi,ji]});const Bi=Object.freeze(Object.defineProperty({__proto__:null,afterMain:_i,afterRead:pi,afterWrite:yi,applyStyles:kt,arrow:xi,auto:Ye,basePlacements:Ae,beforeMain:mi,beforeRead:ui,beforeWrite:bi,bottom:F,clippingParents:hi,computeStyles:It,createPopper:$t,createPopperBase:ts,createPopperLite:is,detectOverflow:Le,end:Te,eventListeners:Nt,flip:Ni,hide:ji,left:N,main:"main",modifierPhases:wi,offset:Fi,placements:Ot,popper:Ce,popperGenerator:tt,popperOffsets:Ht,preventOverflow:Hi,read:"read",reference:di,right:H,start:he,top:I,variationPlacements:Ct,viewport:Tt,write:"write"},Symbol.toStringTag,{value:"Module"})),zi="dropdown",ns="ArrowUp",Ri="ArrowDown",qi="click.bs.dropdown.data-api",Vi="keydown.bs.dropdown.data-api",$e="show",fe='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',ss=`${fe}.show`,it=".dropdown-menu",os=B()?"top-end":"top-start",rs=B()?"top-start":"top-end",as=B()?"bottom-end":"bottom-start",ls=B()?"bottom-start":"bottom-end",cs=B()?"left-start":"right-start",hs=B()?"right-start":"left-start",ds={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},us={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Q extends U{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=f.next(this._element,it)[0]||f.prev(this._element,it)[0]||f.findOne(it,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return ds}static get DefaultType(){return us}static get NAME(){return zi}toggle(){return this._isShown()?this.hide():this.show()}show(){if(re(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!l.trigger(this._element,"show.bs.dropdown",e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))l.on(t,"mouseover",Re);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add($e),this._element.classList.add($e),l.trigger(this._element,"shown.bs.dropdown",e)}}hide(){!re(this._element)&&this._isShown()&&this._completeHide({relatedTarget:this._element})}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!l.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))l.off(t,"mouseover",Re);this._popper&&this._popper.destroy(),this._menu.classList.remove($e),this._element.classList.remove($e),this._element.setAttribute("aria-expanded","false"),ie.removeDataAttribute(this._menu,"popper"),l.trigger(this._element,"hidden.bs.dropdown",e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!te(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${zi.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===Bi)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:te(this._config.reference)?e=oe(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=$t(e,this._menu,t)}_isShown(){return this._menu.classList.contains($e)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return cs;if(e.classList.contains("dropstart"))return hs;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?rs:os:t?ls:as}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof e?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._inNavbar||"static"===this._config.display)&&(ie.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...j(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const n=f.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(s=>be(s));n.length&&mt(n,t,e===Ri,!n.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=Q.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=f.find(ss);for(const n of t){const s=Q.getInstance(n);if(!s||!1===s._config.autoClose)continue;const o=e.composedPath(),r=o.includes(s._menu);if(o.includes(s._element)||"inside"===s._config.autoClose&&!r||"outside"===s._config.autoClose&&r||s._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:s._element};"click"===e.type&&(a.clickEvent=e),s._completeHide(a)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,s=[ns,Ri].includes(e.key);if(!s&&!n||t&&!n)return;e.preventDefault();const o=this.matches(fe)?this:f.prev(this,fe)[0]||f.next(this,fe)[0]||f.findOne(fe,e.delegateTarget.parentNode),r=Q.getOrCreateInstance(o);if(s)return e.stopPropagation(),r.show(),void r._selectMenuItem(e);r._isShown()&&(e.stopPropagation(),r.hide(),o.focus())}}l.on(document,Vi,fe,Q.dataApiKeydownHandler),l.on(document,Vi,it,Q.dataApiKeydownHandler),l.on(document,qi,Q.clearMenus),l.on(document,"keyup.bs.dropdown.data-api",Q.clearMenus),l.on(document,qi,fe,function(i){i.preventDefault(),Q.getOrCreateInstance(this).toggle()}),z(Q);const Xi="mousedown.bs.backdrop",fs={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ps={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ui extends Ie{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return fs}static get DefaultType(){return ps}static get NAME(){return"backdrop"}show(e){if(!this._config.isVisible)return void j(e);this._append();this._getElement().classList.add("show"),this._emulateAnimation(()=>{j(e)})}hide(e){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),j(e)})):j(e)}dispose(){this._isAppended&&(l.off(this._element,Xi),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=oe(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),l.on(e,Xi,()=>{j(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){Zt(e,this._getElement(),this._config.isAnimated)}}const Qi=".bs.focustrap",Yi="backward",ms={autofocus:!0,trapElement:null},gs={autofocus:"boolean",trapElement:"element"};class Gi extends Ie{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ms}static get DefaultType(){return gs}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),l.off(document,Qi),l.on(document,"focusin.bs.focustrap",e=>this._handleFocusin(e)),l.on(document,"keydown.tab.bs.focustrap",e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,l.off(document,Qi))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const n=f.focusableChildren(t);0===n.length?t.focus():this._lastTabNavDirection===Yi?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?Yi:"forward")}}const Zi=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Ji=".sticky-top",nt="padding-right",en="margin-right";class Wt{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,nt,t=>t+e),this._setElementAttributes(Zi,nt,t=>t+e),this._setElementAttributes(Ji,en,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,nt),this._resetElementAttributes(Zi,nt),this._resetElementAttributes(Ji,en)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){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).getPropertyValue(t);o.style.setProperty(t,`${n(Number.parseFloat(r))}px`)})}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&&ie.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,n=>{const s=ie.getDataAttribute(n,t);null!==s?(ie.removeDataAttribute(n,t),n.style.setProperty(t,s)):n.style.removeProperty(t)})}_applyManipulationCallback(e,t){if(te(e))t(e);else for(const n of f.find(e,this._element))t(n)}}const tn=".bs.modal",nn="hidden.bs.modal",sn="show.bs.modal",on="modal-open",Bt="modal-static",_s={backdrop:!0,focus:!0,keyboard:!0},bs={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class pe extends U{constructor(e,t){super(e,t),this._dialog=f.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Wt,this._addEventListeners()}static get Default(){return _s}static get DefaultType(){return bs}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||l.trigger(this._element,sn,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(on),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){this._isShown&&!this._isTransitioning&&(l.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove("show"),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){l.off(window,tn),l.off(this._dialog,tn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ui({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Gi({trapElement:this._element})}_showElement(e){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 t=f.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),this._element.classList.add("show"),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,l.trigger(this._element,"shown.bs.modal",{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){l.on(this._element,"keydown.dismiss.bs.modal",e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),l.on(window,"resize.bs.modal",()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),l.on(this._element,"mousedown.dismiss.bs.modal",e=>{l.one(this._element,"click.dismiss.bs.modal",t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_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(on),this._resetAdjustments(),this._scrollBar.reset(),l.trigger(this._element,nn)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(l.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(Bt)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Bt),this._queueCallback(()=>{this._element.classList.remove(Bt),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){const s=B()?"paddingLeft":"paddingRight";this._element.style[s]=`${t}px`}if(!n&&e){const s=B()?"paddingRight":"paddingLeft";this._element.style[s]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const n=pe.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}})}}l.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',function(i){const e=f.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&i.preventDefault(),l.one(e,sn,n=>{n.defaultPrevented||l.one(e,nn,()=>{be(this)&&this.focus()})});const t=f.findOne(".modal.show");t&&pe.getInstance(t).hide(),pe.getOrCreateInstance(e).toggle(this)}),qe(pe),z(pe);const ln="showing",hn=".offcanvas.show",dn="hidePrevented.bs.offcanvas",un="hidden.bs.offcanvas",vs={backdrop:!0,keyboard:!0,scroll:!1},ys={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class se extends U{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return vs}static get DefaultType(){return ys}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||l.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Wt).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ln),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add("show"),this._element.classList.remove(ln),l.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})},this._element,!0))}hide(){this._isShown&&(l.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add("hiding"),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove("show","hiding"),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Wt).reset(),l.trigger(this._element,un)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Ui({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():l.trigger(this._element,dn)}:null})}_initializeFocusTrap(){return new Gi({trapElement:this._element})}_addEventListeners(){l.on(this._element,"keydown.dismiss.bs.offcanvas",e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():l.trigger(this._element,dn))})}static jQueryInterface(e){return this.each(function(){const t=se.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}l.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',function(i){const e=f.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),re(this))return;l.one(e,un,()=>{be(this)&&this.focus()});const t=f.findOne(hn);t&&t!==e&&se.getInstance(t).hide(),se.getOrCreateInstance(e).toggle(this)}),l.on(window,"load.bs.offcanvas.data-api",()=>{for(const i of f.find(hn))se.getOrCreateInstance(i).show()}),l.on(window,"resize.bs.offcanvas",()=>{for(const i of f.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(i).position&&se.getOrCreateInstance(i).hide()}),qe(se),z(se);const fn={"*":["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:[]},ws=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Es=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,As=(i,e)=>{const t=i.nodeName.toLowerCase();return e.includes(t)?!ws.has(t)||Boolean(Es.test(i.nodeValue)):e.filter(n=>n instanceof RegExp).some(n=>n.test(t))},Ts={allowList:fn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Cs={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Os={entry:"(string|element|function|null)",selector:"(string|element)"};class xs extends Ie{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Ts}static get DefaultType(){return Cs}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[s,o]of Object.entries(this._config.content))this._setContent(e,o,s);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},Os)}_setContent(e,t,n){const s=f.findOne(n,e);s&&((t=this._resolvePossibleFunction(t))?te(t)?this._putElementInTemplate(oe(t),s):this._config.html?s.innerHTML=this._maybeSanitize(t):s.textContent=t:s.remove())}_maybeSanitize(e){return this._config.sanitize?function(t,n,s){if(!t.length)return t;if(s&&"function"==typeof s)return s(t);const o=(new window.DOMParser).parseFromString(t,"text/html"),r=[].concat(...o.body.querySelectorAll("*"));for(const a of r){const c=a.nodeName.toLowerCase();if(!Object.keys(n).includes(c)){a.remove();continue}const d=[].concat(...a.attributes),u=[].concat(n["*"]||[],n[c]||[]);for(const h of d)As(h,u)||a.removeAttribute(h.nodeName)}return o.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return j(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const ks=new Set(["sanitize","allowList","sanitizeFn"]),zt="fade",st="show",mn="hide.bs.modal",ot="hover",Ls={AUTO:"auto",TOP:"top",RIGHT:B()?"left":"right",BOTTOM:"bottom",LEFT:B()?"right":"left"},Ss={allowList:fn,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:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Ds={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 me extends U{constructor(e,t){if(void 0===Bi)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),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 Ss}static get DefaultType(){return Ds}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),l.off(this._element.closest(".modal"),mn,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("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=l.trigger(this._element,this.constructor.eventName("show")),t=(Yt(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(n),l.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(st),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))l.on(o,"mouseover",Re);this._queueCallback(()=>{l.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!l.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(st),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))l.off(e,"mouseover",Re);this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),l.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(zt,st),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(s=>{do{s+=Math.floor(1e6*Math.random())}while(document.getElementById(s));return s})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(zt),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new xs({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(zt)}_isShown(){return this.tip&&this.tip.classList.contains(st)}_createPopper(e){const t=j(this._config.placement,[this,e,this._element]),n=Ls[t.toUpperCase()];return $t(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return j(e,[this._element])}_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:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...t,...j(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)l.on(this._element,this.constructor.eventName("click"),this._config.selector,n=>{this._initializeOnDelegatedTarget(n).toggle()});else if("manual"!==t){const n=this.constructor.eventName(t===ot?"mouseenter":"focusin"),s=this.constructor.eventName(t===ot?"mouseleave":"focusout");l.on(this._element,n,this._config.selector,o=>{const r=this._initializeOnDelegatedTarget(o);r._activeTrigger["focusin"===o.type?"focus":ot]=!0,r._enter()}),l.on(this._element,s,this._config.selector,o=>{const r=this._initializeOnDelegatedTarget(o);r._activeTrigger["focusout"===o.type?"focus":ot]=r._element.contains(o.relatedTarget),r._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},l.on(this._element.closest(".modal"),mn,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(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(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=ie.getDataAttributes(this._element);for(const n of Object.keys(t))ks.has(n)&&delete t[n];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:oe(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=me.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}z(me);const Is={...me.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Ns={...me.DefaultType,content:"(null|string|element|function)"};class rt extends me{static get Default(){return Is}static get DefaultType(){return Ns}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=rt.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}z(rt);const _n="click.bs.scrollspy",We="active",Ps={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Ms={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Be extends U{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Ps}static get DefaultType(){return Ms}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=oe(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(l.off(this._config.target,_n),l.on(this._config.target,_n,"[href]",e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const n=this._rootElement||window,s=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:s,behavior:"smooth"});n.scrollTop=s}}))}_getNewObserver(){return new IntersectionObserver(t=>this._observerCallback(t),{root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin})}_observerCallback(e){const t=r=>this._targetLinks.get(`#${r.target.id}`),n=r=>{this._previousScrollData.visibleEntryTop=r.target.offsetTop,this._process(t(r))},s=(this._rootElement||document.documentElement).scrollTop,o=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const r of e){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(r));continue}const a=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&a){if(n(r),!s)return}else o||a||n(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=f.find("[href]",this._config.target);for(const t of e){if(!t.hash||re(t))continue;const n=f.findOne(decodeURI(t.hash),this._element);be(n)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(We),this._activateParents(e),l.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))f.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(We);else for(const t of f.parents(e,".nav, .list-group"))for(const n of f.prev(t,".nav-link, .nav-item > .nav-link, .list-group-item"))n.classList.add(We)}_clearActiveClass(e){e.classList.remove(We);const t=f.find("[href].active",e);for(const n of t)n.classList.remove(We)}static jQueryInterface(e){return this.each(function(){const t=Be.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}})}}l.on(window,"load.bs.scrollspy.data-api",()=>{for(const i of f.find('[data-bs-spy="scroll"]'))Be.getOrCreateInstance(i)}),z(Be);const js="ArrowLeft",vn="ArrowRight",Fs="ArrowUp",yn="ArrowDown",at="active",Rt="show",En='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',qt=`.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), ${En}`;class ge extends U{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),l.on(this._element,"keydown.bs.tab",t=>this._keydown(t)))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),n=t?l.trigger(t,"hide.bs.tab",{relatedTarget:e}):null;l.trigger(e,"show.bs.tab",{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(at),this._activate(f.getElementFromSelector(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),l.trigger(e,"shown.bs.tab",{relatedTarget:t})):e.classList.add(Rt)},e,e.classList.contains("fade")))}_deactivate(e,t){e&&(e.classList.remove(at),e.blur(),this._deactivate(f.getElementFromSelector(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),l.trigger(e,"hidden.bs.tab",{relatedTarget:t})):e.classList.remove(Rt)},e,e.classList.contains("fade")))}_keydown(e){if(![js,vn,Fs,yn].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[vn,yn].includes(e.key),n=mt(this._getChildren().filter(s=>!re(s)),e.target,t,!0);n&&(n.focus({preventScroll:!0}),ge.getOrCreateInstance(n).show())}_getChildren(){return f.find(qt,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const n of t)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=f.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const n=this._getOuterElement(e);if(!n.classList.contains("dropdown"))return;const s=(o,r)=>{const a=f.findOne(o,n);a&&a.classList.toggle(r,t)};s(".dropdown-toggle",at),s(".dropdown-menu",Rt),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(at)}_getInnerElement(e){return e.matches(qt)?e:f.findOne(qt,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each(function(){const t=ge.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}})}}l.on(document,"click.bs.tab",En,function(i){["A","AREA"].includes(this.tagName)&&i.preventDefault(),re(this)||ge.getOrCreateInstance(this).show()}),l.on(window,"load.bs.tab",()=>{for(const i of f.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))ge.getOrCreateInstance(i)}),z(ge);const lt="show",ct="showing",Hs={animation:"boolean",autohide:"boolean",delay:"number"},$s={animation:!0,autohide:!0,delay:5e3};class ze extends U{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return $s}static get DefaultType(){return Hs}static get NAME(){return"toast"}show(){l.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),this._element.classList.add(lt,ct),this._queueCallback(()=>{this._element.classList.remove(ct),l.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(l.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(ct),this._queueCallback(()=>{this._element.classList.add("hide"),this._element.classList.remove(ct,lt),l.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(lt),super.dispose()}isShown(){return this._element.classList.contains(lt)}_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 n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){l.on(this._element,"mouseover.bs.toast",e=>this._onInteraction(e,!0)),l.on(this._element,"mouseout.bs.toast",e=>this._onInteraction(e,!1)),l.on(this._element,"focusin.bs.toast",e=>this._onInteraction(e,!0)),l.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=ze.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}})}}return qe(ze),z(ze),{Alert:Ne,Button:Pe,Carousel:we,Collapse:Ee,Dropdown:Q,Modal:pe,Offcanvas:se,Popover:rt,ScrollSpy:Be,Tab:ge,Toast:ze,Tooltip:me}});