boosted
Version:
Orange Boosted with Bootstrap is a Bootstrap based, Orange branded accessible and ergonomic components library.
11 lines • 89.1 kB
JavaScript
/*!
* Boosted v5.2.3 (https://boosted.orange.com/)
* Copyright 2015-2022 The Boosted Authors
* Copyright 2015-2022 Orange
* Licensed under MIT (https://github.com/orange-opensource/orange-boosted-bootstrap/blob/main/LICENSE)
* This a fork of Bootstrap : Initial license below
* Bootstrap v5.2.3 (https://boosted.orange.com/)
* Copyright 2011-2022 The Boosted Authors (https://github.com/Orange-OpenSource/Orange-Boosted-Bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).boosted=e()}(this,(function(){"use strict";const t="transitionend",e=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},i=t=>{const i=e(t);return i&&document.querySelector(i)?i:null},n=t=>{const i=e(t);return i?document.querySelector(i):null},s=e=>{e.dispatchEvent(new Event(t))},o=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),r=t=>o(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,a=t=>{if(!o(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},l=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),c=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?c(t.parentNode):null},u=()=>{},d=t=>{t.offsetHeight},h=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,f=[],p=()=>"rtl"===document.documentElement.dir,m=t=>{var e;e=()=>{const e=h();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}},"loading"===document.readyState?(f.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of f)t()})),f.push(e)):e()},g=t=>{"function"==typeof t&&t()},_=(e,i,n=!0)=>{if(!n)return void g(e);const o=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(i)+5;let r=!1;const a=({target:n})=>{n===i&&(r=!0,i.removeEventListener(t,a),g(e))};i.addEventListener(t,a),setTimeout((()=>{r||s(i)}),o)},b=(t,e,i,n)=>{const s=t.length;let o=t.indexOf(e);return-1===o?!i&&n?t[s-1]:t[0]:(o+=i?1:-1,n&&(o=(o+s)%s),t[Math.max(0,Math.min(o,s-1))])},v=/[^.]*(?=\..*)\.|.*/,y=/\..*/,w=/::\d+$/,A={};let E=1;const C={mouseenter:"mouseover",mouseleave:"mouseout"},T=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 O(t,e){return e&&`${e}::${E++}`||t.uidEvent||E++}function L(t){const e=O(t);return t.uidEvent=e,A[e]=A[e]||{},A[e]}function x(t,e,i=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===i))}function k(t,e,i){const n="string"==typeof e,s=n?i:e||i;let o=P(t);return T.has(o)||(o=t),[n,s,o]}function N(t,e,i,n,s){if("string"!=typeof e||!t)return;let[o,r,a]=k(e,i,n);if(e in C){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=L(t),c=l[a]||(l[a]={}),u=x(c,r,o?i:null);if(u)return void(u.oneOff=u.oneOff&&s);const d=O(r,e.replace(v,"")),h=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return M(s,{delegateTarget:r}),n.oneOff&&I.off(t,s.type,e,i),i.apply(r,[s])}}(t,i,r):function(t,e){return function i(n){return M(n,{delegateTarget:t}),i.oneOff&&I.off(t,n.type,e),e.apply(t,[n])}}(t,r);h.delegationSelector=o?i:null,h.callable=r,h.oneOff=s,h.uidEvent=d,c[d]=h,t.addEventListener(a,h,o)}function D(t,e,i,n,s){const o=x(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function S(t,e,i,n){const s=e[i]||{};for(const o of Object.keys(s))if(o.includes(n)){const n=s[o];D(t,e,i,n.callable,n.delegationSelector)}}function P(t){return t=t.replace(y,""),C[t]||t}const I={on(t,e,i,n){N(t,e,i,n,!1)},one(t,e,i,n){N(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=k(e,i,n),a=r!==e,l=L(t),c=l[r]||{},u=e.startsWith(".");if(void 0===o){if(u)for(const i of Object.keys(l))S(t,l,i,e.slice(1));for(const i of Object.keys(c)){const n=i.replace(w,"");if(!a||e.includes(n)){const e=c[i];D(t,l,r,e.callable,e.delegationSelector)}}}else{if(!Object.keys(c).length)return;D(t,l,r,o,s?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=h();let s=null,o=!0,r=!0,a=!1;e!==P(e)&&n&&(s=n.Event(e,i),n(t).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());let l=new Event(e,{bubbles:o,cancelable:!0});return l=M(l,i),a&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function M(t,e){for(const[i,n]of Object.entries(e||{}))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}const j=new Map,B={set(t,e,i){j.has(t)||j.set(t,new Map);const n=j.get(t);n.has(e)||0===n.size?n.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(t,e)=>j.has(t)&&j.get(t).get(e)||null,remove(t,e){if(!j.has(t))return;const i=j.get(t);i.delete(e),0===i.size&&j.delete(t)}};function $(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function H(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const q={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${H(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${H(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=$(t.dataset[n])}return e},getDataAttribute:(t,e)=>$(t.getAttribute(`data-bs-${H(e)}`))};class F{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 i=o(e)?q.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...o(e)?q.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const n of Object.keys(e)){const s=e[n],r=t[n],a=o(r)?"element":null==(i=r)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(a))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${s}".`)}var i}}class W extends F{constructor(t,e){super(),(t=r(t))&&(this._element=t,this._config=this._getConfig(e),B.set(this._element,this.constructor.DATA_KEY,this))}dispose(){B.remove(this._element,this.constructor.DATA_KEY),I.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){_(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return B.get(r(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.2.3"}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 z=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,s=t.NAME;I.on(document,i,`[data-bs-dismiss="${s}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),l(this))return;const o=n(this)||this.closest(`.${s}`);t.getOrCreateInstance(o)[e]()}))};class R extends W{static get NAME(){return"alert"}close(){if(I.trigger(this._element,"close.bs.alert").defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),I.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=R.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}z(R,"close"),m(R);const V='[data-bs-toggle="button"]';class K extends W{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=K.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}I.on(document,"click.bs.button.data-api",V,(t=>{t.preventDefault();const e=t.target.closest(V);K.getOrCreateInstance(e).toggle()})),m(K);const U={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let n=t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!l(t)&&a(t)))}},Q={endCallback:null,leftCallback:null,rightCallback:null},Y={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class X extends F{constructor(t,e){super(),this._element=t,t&&X.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Q}static get DefaultType(){return Y}static get NAME(){return"swipe"}dispose(){I.off(this._element,".bs.swipe")}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),g(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<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&g(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(I.on(this._element,"pointerdown.bs.swipe",(t=>this._start(t))),I.on(this._element,"pointerup.bs.swipe",(t=>this._end(t))),this._element.classList.add("pointer-event")):(I.on(this._element,"touchstart.bs.swipe",(t=>this._start(t))),I.on(this._element,"touchmove.bs.swipe",(t=>this._move(t))),I.on(this._element,"touchend.bs.swipe",(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const G="next",J="prev",Z="left",tt="right",et="slid.bs.carousel",it="click.bs.carousel.data-api",nt="carousel",st="active",ot="is-paused",rt="is-done",at=".carousel-control-play-pause",lt="data-bs-play-text",ct="data-bs-pause-text",ut="Play Carousel",dt="Pause Carousel",ht={ArrowLeft:tt,ArrowRight:Z},ft={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},pt={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class mt extends W{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=U.findOne(".carousel-indicators",this._element),this._playPauseButton=U.findOne(`${at}[data-bs-target="#${this._element.id}"]`),this._addEventListeners(),this._config.ride===nt&&this.cycle()}static get Default(){return ft}static get DefaultType(){return pt}static get NAME(){return"carousel"}next(){this._slide(G)}nextWhenVisible(){!document.hidden&&a(this._element)&&this.next()}prev(){this._slide(J)}pause(){this._indicatorsElement&&this._element.classList.add(ot),null!==this._playPauseButton&&this._playPauseButton.classList.contains("pause")&&(this._playPauseButton.classList.remove("pause"),this._playPauseButton.classList.add("play"),this._playPauseButton.getAttribute(lt)?(this._playPauseButton.setAttribute("title",this._playPauseButton.getAttribute(lt)),this._playPauseButton.querySelector("span.visually-hidden").innerHTML=this._playPauseButton.getAttribute(lt)):(this._playPauseButton.setAttribute("title",ut),this._playPauseButton.querySelector("span.visually-hidden").innerHTML=ut),this._stayPaused=!0),this._isSliding&&s(this._element),this._clearInterval()}cycle(){this._indicatorsElement&&this._element.classList.remove(ot),null!==this._playPauseButton&&this._playPauseButton.classList.contains("play")&&(this._playPauseButton.classList.remove("play"),this._playPauseButton.classList.add("pause"),this._playPauseButton.getAttribute(ct)?(this._playPauseButton.setAttribute("title",this._playPauseButton.getAttribute(ct)),this._playPauseButton.querySelector("span.visually-hidden").innerHTML=this._playPauseButton.getAttribute(ct)):(this._playPauseButton.setAttribute("title",dt),this._playPauseButton.querySelector("span.visually-hidden").innerHTML=dt),this._stayPaused=!1),this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?I.one(this._element,et,(()=>this.cycle())):this.cycle())}to(t){this._indicatorsElement&&this._element.classList.remove(rt);const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void I.one(this._element,et,(()=>this.to(t)));const i=this._getItemIndex(this._getActive());if(i===t)return;const n=t>i?G:J;this._slide(n,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&I.on(this._element,"keydown.bs.carousel",(t=>this._keydown(t))),"hover"===this._config.pause&&(I.on(this._element,"mouseenter.bs.carousel",(()=>this.pause())),I.on(this._element,"mouseleave.bs.carousel",(()=>this._maybeEnableCycle()))),this._config.touch&&X.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of U.find(".carousel-item img",this._element))I.on(t,"dragstart.bs.carousel",(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(Z)),rightCallback:()=>this._slide(this._directionToOrder(tt)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new X(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=ht[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_disableControl(t){"BUTTON"===t.nodeName?t.disabled=!0:(t.setAttribute("aria-disabled",!0),t.setAttribute("tabindex","-1"))}_enableControl(t){"BUTTON"===t.nodeName?t.disabled=!1:(t.removeAttribute("aria-disabled"),t.removeAttribute("tabindex"))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=U.findOne(".active",this._indicatorsElement);e.classList.remove(st),e.removeAttribute("aria-current");const i=U.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(st),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);if(this._config.interval=e||this._config.defaultInterval,this._indicatorsElement&&this._config.interval!==ft.interval){const e=this._getItemIndex(t);U.findOne(`:nth-child(${e+1})`,this._indicatorsElement).style.setProperty("--o-carousel-interval",`${this._config.interval}ms`)}}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),n=t===G;if(!this._config.wrap){const e=t===J,s=this._getItemIndex(i),o=this._getItems().length-1;if(e&&0===s||n&&s===o)return n&&this._indicatorsElement&&!this._element.hasAttribute("data-bs-slide")&&this._element.classList.add(rt),i;this._indicatorsElement&&this._element.classList.remove(rt)}const s=e||b(this._getItems(),i,n,this._config.wrap);if(s===i)return;const o=this._getItemIndex(s),r=e=>I.trigger(this._element,e,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o});if(r("slide.bs.carousel").defaultPrevented)return;if(!i||!s)return;const a=Boolean(this._interval);if(this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s,!this._config.wrap){const t=U.findOne(".carousel-control-prev",this._element),e=U.findOne(".carousel-control-next",this._element);this._enableControl(t),this._enableControl(e),0===o?this._disableControl(t):o===this._getItems().length-1&&this._disableControl(e)}const l=n?"carousel-item-start":"carousel-item-end",c=n?"carousel-item-next":"carousel-item-prev";s.classList.add(c),d(s),i.classList.add(l),s.classList.add(l),this._queueCallback((()=>{s.classList.remove(l,c),s.classList.add(st),i.classList.remove(st,c,l),this._isSliding=!1,r(et)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return U.findOne(".active.carousel-item",this._element)}_getItems(){return U.find(".carousel-item",this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return p()?t===Z?J:G:t===Z?G:J}_orderToDirection(t){return p()?t===J?Z:tt:t===J?tt:Z}static PauseCarousel(t){const e=t.target,i=e.getAttribute("data-bs-target"),n=mt.getOrCreateInstance(document.querySelector(i));e.classList.contains("pause")?n.pause():n.cycle()}static jQueryInterface(t){return this.each((function(){const e=mt.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}I.on(document,it,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=n(this);if(!e||!e.classList.contains(nt))return;t.preventDefault();const i=mt.getOrCreateInstance(e),s=this.getAttribute("data-bs-slide-to");return s?(i.to(s),void i._maybeEnableCycle()):"next"===q.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),I.on(document,it,at,mt.PauseCarousel),I.on(window,"load.bs.carousel.data-api",(()=>{const t=U.find('[data-bs-ride="carousel"]');for(const e of t)mt.getOrCreateInstance(e)})),m(mt);const gt="show",_t="collapse",bt="collapsing",vt='[data-bs-toggle="collapse"]',yt={parent:null,toggle:!0},wt={parent:"(null|element)",toggle:"boolean"};class At extends W{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=U.find(vt);for(const t of n){const e=i(t),n=U.find(e).filter((t=>t===this._element));null!==e&&n.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return yt}static get DefaultType(){return wt}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>At.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(I.trigger(this._element,"show.bs.collapse").defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(_t),this._element.classList.add(bt),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(bt),this._element.classList.add(_t,gt),this._element.style[e]="",I.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(I.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,d(this._element),this._element.classList.add(bt),this._element.classList.remove(_t,gt),this._isTransitioning=!0,this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(bt),this._element.classList.add(_t);for(const t of this._triggerArray){const e=n(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}I.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(gt)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=r(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(vt);for(const e of t){const t=n(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=U.find(":scope .collapse .collapse",this._config.parent);return U.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const i=At.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}I.on(document,"click.bs.collapse.data-api",vt,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=i(this),n=U.find(e);for(const t of n)At.getOrCreateInstance(t,{toggle:!1}).toggle()})),m(At);var Et="top",Ct="bottom",Tt="right",Ot="left",Lt="auto",xt=[Et,Ct,Tt,Ot],kt="start",Nt="end",Dt="clippingParents",St="viewport",Pt="popper",It="reference",Mt=xt.reduce((function(t,e){return t.concat([e+"-"+kt,e+"-"+Nt])}),[]),jt=[].concat(xt,[Lt]).reduce((function(t,e){return t.concat([e,e+"-"+kt,e+"-"+Nt])}),[]),Bt="beforeRead",$t="read",Ht="afterRead",qt="beforeMain",Ft="main",Wt="afterMain",zt="beforeWrite",Rt="write",Vt="afterWrite",Kt=[Bt,$t,Ht,qt,Ft,Wt,zt,Rt,Vt];function Ut(t){return t?(t.nodeName||"").toLowerCase():null}function Qt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Yt(t){return t instanceof Qt(t).Element||t instanceof Element}function Xt(t){return t instanceof Qt(t).HTMLElement||t instanceof HTMLElement}function Gt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Qt(t).ShadowRoot||t instanceof ShadowRoot)}const Jt={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];Xt(s)&&Ut(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});Xt(n)&&Ut(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};function Zt(t){return t.split("-")[0]}var te=Math.max,ee=Math.min,ie=Math.round;function ne(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function se(){return!/^((?!chrome|android).)*safari/i.test(ne())}function oe(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),s=1,o=1;e&&Xt(t)&&(s=t.offsetWidth>0&&ie(n.width)/t.offsetWidth||1,o=t.offsetHeight>0&&ie(n.height)/t.offsetHeight||1);var r=(Yt(t)?Qt(t):window).visualViewport,a=!se()&&i,l=(n.left+(a&&r?r.offsetLeft:0))/s,c=(n.top+(a&&r?r.offsetTop:0))/o,u=n.width/s,d=n.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function re(t){var e=oe(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function ae(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Gt(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function le(t){return Qt(t).getComputedStyle(t)}function ce(t){return["table","td","th"].indexOf(Ut(t))>=0}function ue(t){return((Yt(t)?t.ownerDocument:t.document)||window.document).documentElement}function de(t){return"html"===Ut(t)?t:t.assignedSlot||t.parentNode||(Gt(t)?t.host:null)||ue(t)}function he(t){return Xt(t)&&"fixed"!==le(t).position?t.offsetParent:null}function fe(t){for(var e=Qt(t),i=he(t);i&&ce(i)&&"static"===le(i).position;)i=he(i);return i&&("html"===Ut(i)||"body"===Ut(i)&&"static"===le(i).position)?e:i||function(t){var e=/firefox/i.test(ne());if(/Trident/i.test(ne())&&Xt(t)&&"fixed"===le(t).position)return null;var i=de(t);for(Gt(i)&&(i=i.host);Xt(i)&&["html","body"].indexOf(Ut(i))<0;){var n=le(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function pe(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function me(t,e,i){return te(t,ee(e,i))}function ge(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function _e(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}const be={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=t.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,a=Zt(i.placement),l=pe(a),c=[Ot,Tt].indexOf(a)>=0?"height":"width";if(o&&r){var u=function(t,e){return ge("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:_e(t,xt))}(s.padding,i),d=re(o),h="y"===l?Et:Ot,f="y"===l?Ct:Tt,p=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],m=r[l]-i.rects.reference[l],g=fe(o),_=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=p/2-m/2,v=u[h],y=_-d[c]-u[f],w=_/2-d[c]/2+b,A=me(v,w,y),E=l;i.modifiersData[n]=((e={})[E]=A,e.centerOffset=A-w,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&ae(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ve(t){return t.split("-")[1]}var ye={top:"auto",right:"auto",bottom:"auto",left:"auto"};function we(t){var e,i=t.popper,n=t.popperRect,s=t.placement,o=t.variation,r=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.isFixed,h=r.x,f=void 0===h?0:h,p=r.y,m=void 0===p?0:p,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var _=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),v=Ot,y=Et,w=window;if(c){var A=fe(i),E="clientHeight",C="clientWidth";A===Qt(i)&&"static"!==le(A=ue(i)).position&&"absolute"===a&&(E="scrollHeight",C="scrollWidth"),(s===Et||(s===Ot||s===Tt)&&o===Nt)&&(y=Ct,m-=(d&&A===w&&w.visualViewport?w.visualViewport.height:A[E])-n.height,m*=l?1:-1),s!==Ot&&(s!==Et&&s!==Ct||o!==Nt)||(v=Tt,f-=(d&&A===w&&w.visualViewport?w.visualViewport.width:A[C])-n.width,f*=l?1:-1)}var T,O=Object.assign({position:a},c&&ye),L=!0===u?function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:ie(e*n)/n||0,y:ie(i*n)/n||0}}({x:f,y:m}):{x:f,y:m};return f=L.x,m=L.y,l?Object.assign({},O,((T={})[y]=b?"0":"",T[v]=_?"0":"",T.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",T)):Object.assign({},O,((e={})[y]=b?m+"px":"",e[v]=_?f+"px":"",e.transform="",e))}const Ae={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:Zt(e.placement),variation:ve(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,we(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,we(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var Ee={passive:!0};const Ce={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=Qt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,Ee)})),a&&l.addEventListener("resize",i.update,Ee),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,Ee)})),a&&l.removeEventListener("resize",i.update,Ee)}},data:{}};var Te={left:"right",right:"left",bottom:"top",top:"bottom"};function Oe(t){return t.replace(/left|right|bottom|top/g,(function(t){return Te[t]}))}var Le={start:"end",end:"start"};function xe(t){return t.replace(/start|end/g,(function(t){return Le[t]}))}function ke(t){var e=Qt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ne(t){return oe(ue(t)).left+ke(t).scrollLeft}function De(t){var e=le(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Se(t){return["html","body","#document"].indexOf(Ut(t))>=0?t.ownerDocument.body:Xt(t)&&De(t)?t:Se(de(t))}function Pe(t,e){var i;void 0===e&&(e=[]);var n=Se(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),o=Qt(n),r=s?[o].concat(o.visualViewport||[],De(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(Pe(de(r)))}function Ie(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Me(t,e,i){return e===St?Ie(function(t,e){var i=Qt(t),n=ue(t),s=i.visualViewport,o=n.clientWidth,r=n.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=se();(c||!c&&"fixed"===e)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+Ne(t),y:l}}(t,i)):Yt(e)?function(t,e){var i=oe(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):Ie(function(t){var e,i=ue(t),n=ke(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=te(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=te(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+Ne(t),l=-n.scrollTop;return"rtl"===le(s||i).direction&&(a+=te(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(ue(t)))}function je(t){var e,i=t.reference,n=t.element,s=t.placement,o=s?Zt(s):null,r=s?ve(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case Et:e={x:a,y:i.y-n.height};break;case Ct:e={x:a,y:i.y+i.height};break;case Tt:e={x:i.x+i.width,y:l};break;case Ot:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?pe(o):null;if(null!=c){var u="y"===c?"height":"width";switch(r){case kt:e[c]=e[c]-(i[u]/2-n[u]/2);break;case Nt:e[c]=e[c]+(i[u]/2-n[u]/2)}}return e}function Be(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,o=i.strategy,r=void 0===o?t.strategy:o,a=i.boundary,l=void 0===a?Dt:a,c=i.rootBoundary,u=void 0===c?St:c,d=i.elementContext,h=void 0===d?Pt:d,f=i.altBoundary,p=void 0!==f&&f,m=i.padding,g=void 0===m?0:m,_=ge("number"!=typeof g?g:_e(g,xt)),b=h===Pt?It:Pt,v=t.rects.popper,y=t.elements[p?b:h],w=function(t,e,i,n){var s="clippingParents"===e?function(t){var e=Pe(de(t)),i=["absolute","fixed"].indexOf(le(t).position)>=0&&Xt(t)?fe(t):t;return Yt(i)?e.filter((function(t){return Yt(t)&&ae(t,i)&&"body"!==Ut(t)})):[]}(t):[].concat(e),o=[].concat(s,[i]),r=o[0],a=o.reduce((function(e,i){var s=Me(t,i,n);return e.top=te(s.top,e.top),e.right=ee(s.right,e.right),e.bottom=ee(s.bottom,e.bottom),e.left=te(s.left,e.left),e}),Me(t,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Yt(y)?y:y.contextElement||ue(t.elements.popper),l,u,r),A=oe(t.elements.reference),E=je({reference:A,element:v,strategy:"absolute",placement:s}),C=Ie(Object.assign({},v,E)),T=h===Pt?C:A,O={top:w.top-T.top+_.top,bottom:T.bottom-w.bottom+_.bottom,left:w.left-T.left+_.left,right:T.right-w.right+_.right},L=t.modifiersData.offset;if(h===Pt&&L){var x=L[s];Object.keys(O).forEach((function(t){var e=[Tt,Ct].indexOf(t)>=0?1:-1,i=[Et,Ct].indexOf(t)>=0?"y":"x";O[t]+=x[i]*e}))}return O}function $e(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?jt:l,u=ve(n),d=u?a?Mt:Mt.filter((function(t){return ve(t)===u})):xt,h=d.filter((function(t){return c.indexOf(t)>=0}));0===h.length&&(h=d);var f=h.reduce((function(e,i){return e[i]=Be(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[Zt(i)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}const He={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,u=i.boundary,d=i.rootBoundary,h=i.altBoundary,f=i.flipVariations,p=void 0===f||f,m=i.allowedAutoPlacements,g=e.options.placement,_=Zt(g),b=l||(_!==g&&p?function(t){if(Zt(t)===Lt)return[];var e=Oe(t);return[xe(t),e,xe(e)]}(g):[Oe(g)]),v=[g].concat(b).reduce((function(t,i){return t.concat(Zt(i)===Lt?$e(e,{placement:i,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)}),[]),y=e.rects.reference,w=e.rects.popper,A=new Map,E=!0,C=v[0],T=0;T<v.length;T++){var O=v[T],L=Zt(O),x=ve(O)===kt,k=[Et,Ct].indexOf(L)>=0,N=k?"width":"height",D=Be(e,{placement:O,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),S=k?x?Tt:Ot:x?Ct:Et;y[N]>w[N]&&(S=Oe(S));var P=Oe(S),I=[];if(o&&I.push(D[L]<=0),a&&I.push(D[S]<=0,D[P]<=0),I.every((function(t){return t}))){C=O,E=!1;break}A.set(O,I)}if(E)for(var M=function(t){var e=v.find((function(e){var i=A.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return C=e,"break"},j=p?3:1;j>0&&"break"!==M(j);j--);e.placement!==C&&(e.modifiersData[n]._skip=!0,e.placement=C,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function qe(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Fe(t){return[Et,Tt,Ct,Ot].some((function(e){return t[e]>=0}))}const We={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=Be(e,{elementContext:"reference"}),a=Be(e,{altBoundary:!0}),l=qe(r,n),c=qe(a,s,o),u=Fe(l),d=Fe(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},ze={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,o=void 0===s?[0,0]:s,r=jt.reduce((function(t,i){return t[i]=function(t,e,i){var n=Zt(t),s=[Ot,Et].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[Ot,Tt].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,e.rects,o),t}),{}),a=r[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=r}},Re={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=je({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Ve={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,u=i.altBoundary,d=i.padding,h=i.tether,f=void 0===h||h,p=i.tetherOffset,m=void 0===p?0:p,g=Be(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),_=Zt(e.placement),b=ve(e.placement),v=!b,y=pe(_),w="x"===y?"y":"x",A=e.modifiersData.popperOffsets,E=e.rects.reference,C=e.rects.popper,T="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,O="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,x={x:0,y:0};if(A){if(o){var k,N="y"===y?Et:Ot,D="y"===y?Ct:Tt,S="y"===y?"height":"width",P=A[y],I=P+g[N],M=P-g[D],j=f?-C[S]/2:0,B=b===kt?E[S]:C[S],$=b===kt?-C[S]:-E[S],H=e.elements.arrow,q=f&&H?re(H):{width:0,height:0},F=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=F[N],z=F[D],R=me(0,E[S],q[S]),V=v?E[S]/2-j-R-W-O.mainAxis:B-R-W-O.mainAxis,K=v?-E[S]/2+j+R+z+O.mainAxis:$+R+z+O.mainAxis,U=e.elements.arrow&&fe(e.elements.arrow),Q=U?"y"===y?U.clientTop||0:U.clientLeft||0:0,Y=null!=(k=null==L?void 0:L[y])?k:0,X=P+K-Y,G=me(f?ee(I,P+V-Y-Q):I,P,f?te(M,X):M);A[y]=G,x[y]=G-P}if(a){var J,Z="x"===y?Et:Ot,tt="x"===y?Ct:Tt,et=A[w],it="y"===w?"height":"width",nt=et+g[Z],st=et-g[tt],ot=-1!==[Et,Ot].indexOf(_),rt=null!=(J=null==L?void 0:L[w])?J:0,at=ot?nt:et-E[it]-C[it]-rt+O.altAxis,lt=ot?et+E[it]+C[it]-rt-O.altAxis:st,ct=f&&ot?function(t,e,i){var n=me(t,e,i);return n>i?i:n}(at,et,lt):me(f?at:nt,et,f?lt:st);A[w]=ct,x[w]=ct-et}e.modifiersData[n]=x}},requiresIfExists:["offset"]};function Ke(t,e,i){void 0===i&&(i=!1);var n,s,o=Xt(e),r=Xt(e)&&function(t){var e=t.getBoundingClientRect(),i=ie(e.width)/t.offsetWidth||1,n=ie(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=ue(e),l=oe(t,r,i),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!i)&&(("body"!==Ut(e)||De(a))&&(c=(n=e)!==Qt(n)&&Xt(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:ke(n)),Xt(e)?((u=oe(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=Ne(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Ue(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||s(t)})),n}var Qe={placement:"bottom",modifiers:[],strategy:"absolute"};function Ye(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Xe(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,s=e.defaultOptions,o=void 0===s?Qe:s;return function(t,e,i){void 0===i&&(i=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Qe,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(i){var s="function"==typeof i?i(a.options):i;d(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:Yt(t)?Pe(t):t.contextElement?Pe(t.contextElement):[],popper:Pe(e)};var r,c,h=function(t){var e=Ue(t);return Kt.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}((r=[].concat(n,a.options.modifiers),c=r.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return a.orderedModifiers=h.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,s=t.effect;if("function"==typeof s){var o=s({state:a,name:e,instance:u,options:n});l.push(o||function(){})}})),u.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,i=t.popper;if(Ye(e,i)){a.rects={reference:Ke(e,fe(i),"fixed"===a.options.strategy),popper:re(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var s=a.orderedModifiers[n],o=s.fn,r=s.options,l=void 0===r?{}:r,d=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:d,instance:u})||a)}else a.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(t){u.forceUpdate(),t(a)}))},function(){return r||(r=new Promise((function(t){Promise.resolve().then((function(){r=void 0,t(s())}))}))),r}),destroy:function(){d(),c=!0}};if(!Ye(t,e))return u;function d(){l.forEach((function(t){return t()})),l=[]}return u.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),u}}var Ge=Xe(),Je=Xe({defaultModifiers:[Ce,Re,Ae,Jt]}),Ze=Xe({defaultModifiers:[Ce,Re,Ae,Jt,ze,He,Ve,be,We]});const ti=Object.freeze(Object.defineProperty({__proto__:null,popperGenerator:Xe,detectOverflow:Be,createPopperBase:Ge,createPopper:Ze,createPopperLite:Je,top:Et,bottom:Ct,right:Tt,left:Ot,auto:Lt,basePlacements:xt,start:kt,end:Nt,clippingParents:Dt,viewport:St,popper:Pt,reference:It,variationPlacements:Mt,placements:jt,beforeRead:Bt,read:$t,afterRead:Ht,beforeMain:qt,main:Ft,afterMain:Wt,beforeWrite:zt,write:Rt,afterWrite:Vt,modifierPhases:Kt,applyStyles:Jt,arrow:be,computeStyles:Ae,eventListeners:Ce,flip:He,hide:We,offset:ze,popperOffsets:Re,preventOverflow:Ve},Symbol.toStringTag,{value:"Module"})),ei="dropdown",ii="ArrowUp",ni="ArrowDown",si="click.bs.dropdown.data-api",oi="keydown.bs.dropdown.data-api",ri="show",ai='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',li=`${ai}.show`,ci=".dropdown-menu",ui=p()?"top-end":"top-start",di=p()?"top-start":"top-end",hi=p()?"bottom-end":"bottom-start",fi=p()?"bottom-start":"bottom-end",pi=p()?"left-start":"right-start",mi=p()?"right-start":"left-start",gi={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,0],popperConfig:null,reference:"toggle"},_i={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class bi extends W{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=U.next(this._element,ci)[0]||U.prev(this._element,ci)[0]||U.findOne(ci,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return gi}static get DefaultType(){return _i}static get NAME(){return ei}toggle(){return this._isShown()?this.hide():this.show()}show(){if(l(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!I.trigger(this._element,"show.bs.dropdown",t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))I.on(t,"mouseover",u);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ri),this._element.classList.add(ri),I.trigger(this._element,"shown.bs.dropdown",t)}}hide(){if(l(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(!I.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))I.off(t,"mouseover",u);this._popper&&this._popper.destroy(),this._menu.classList.remove(ri),this._element.classList.remove(ri),this._element.setAttribute("aria-expanded","false"),q.removeDataAttribute(this._menu,"popper"),I.trigger(this._element,"hidden.bs.dropdown",t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!o(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${ei.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===ti)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:o(this._config.reference)?t=r(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Ze(t,this._menu,e)}_isShown(){return this._menu.classList.contains(ri)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return pi;if(t.classList.contains("dropstart"))return mi;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?di:ui:e?fi:hi}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?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||"static"===this._config.display)&&(q.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const i=U.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>a(t)));i.length&&b(i,e,t===ni,!i.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=bi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=U.find(li);for(const i of e){const e=bi.getInstance(i);if(!e||!1===e._config.autoClose)continue;const n=t.composedPath(),s=n.includes(e._menu);if(n.includes(e._element)||"inside"===e._config.autoClose&&!s||"outside"===e._config.autoClose&&s)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i="Escape"===t.key,n=[ii,ni].includes(t.key);if(!n&&!i)return;if(e&&!i)return;t.preventDefault();const s=this.matches(ai)?this:U.prev(this,ai)[0]||U.next(this,ai)[0]||U.findOne(ai,t.delegateTarget.parentNode),o=bi.getOrCreateInstance(s);if(n)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),s.focus())}}I.on(document,oi,ai,bi.dataApiKeydownHandler),I.on(document,oi,ci,bi.dataApiKeydownHandler),I.on(document,si,bi.clearMenus),I.on(document,"keyup.bs.dropdown.data-api",bi.clearMenus),I.on(document