-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripts.b73311b29b2da141.js
1 lines (1 loc) · 58.1 KB
/
scripts.b73311b29b2da141.js
1
!function(z,H){"object"==typeof exports&&typeof module<"u"?module.exports=H(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],H):(z=typeof globalThis<"u"?globalThis:z||self).bootstrap=H(z.Popper)}(this,function(z){"use strict";const Z=function H(i){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i)for(const t in i)if("default"!==t){const s=Object.getOwnPropertyDescriptor(i,t);Object.defineProperty(e,t,s.get?s:{enumerable:!0,get:()=>i[t]})}return e.default=i,Object.freeze(e)}(z),T=new Map,ge={set(i,e,t){T.has(i)||T.set(i,new Map);const s=T.get(i);s.has(e)||0===s.size?s.set(e,t):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(i,e)=>T.has(i)&&T.get(i).get(e)||null,remove(i,e){if(!T.has(i))return;const t=T.get(i);t.delete(e),0===t.size&&T.delete(i)}},fe="transitionend",De=i=>(i&&window.CSS&&window.CSS.escape&&(i=i.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),i),Ne=i=>{i.dispatchEvent(new Event(fe))},y=i=>!(!i||"object"!=typeof i)&&(void 0!==i.jquery&&(i=i[0]),void 0!==i.nodeType),k=i=>y(i)?i.jquery?i[0]:i:"string"==typeof i&&i.length>0?document.querySelector(De(i)):null,x=i=>{if(!y(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 s=i.closest("summary");if(s&&s.parentNode!==t||null===s)return!1}return e},S=i=>!i||i.nodeType!==Node.ELEMENT_NODE||!!i.classList.contains("disabled")||(void 0!==i.disabled?i.disabled:i.hasAttribute("disabled")&&"false"!==i.getAttribute("disabled")),Pe=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?Pe(i.parentNode):null},J=()=>{},xe=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,me=[],g=()=>"rtl"===document.documentElement.dir,f=i=>{var e;e=()=>{const t=xe();if(t){const s=i.NAME,n=t.fn[s];t.fn[s]=i.jQueryInterface,t.fn[s].Constructor=i,t.fn[s].noConflict=()=>(t.fn[s]=n,i.jQueryInterface)}},"loading"===document.readyState?(me.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of me)t()}),me.push(e)):e()},d=(i,e=[],t=i)=>"function"==typeof i?i(...e):t,Me=(i,e,t=!0)=>{if(!t)return void d(i);const s=(a=>{if(!a)return 0;let{transitionDuration:c,transitionDelay:h}=window.getComputedStyle(a);const u=Number.parseFloat(c),_=Number.parseFloat(h);return u||_?(c=c.split(",")[0],h=h.split(",")[0],1e3*(Number.parseFloat(c)+Number.parseFloat(h))):0})(e)+5;let n=!1;const r=({target:a})=>{a===e&&(n=!0,e.removeEventListener(fe,r),d(i))};e.addEventListener(fe,r),setTimeout(()=>{n||Ne(e)},s)},pe=(i,e,t,s)=>{const n=i.length;let r=i.indexOf(e);return-1===r?!t&&s?i[n-1]:i[0]:(r+=t?1:-1,s&&(r=(r+n)%n),i[Math.max(0,Math.min(r,n-1))])},Lt=/[^.]*(?=\..*)\.|.*/,Ot=/\..*/,It=/::\d+$/,be={};let je=1;const Fe={mouseenter:"mouseover",mouseleave:"mouseout"},Dt=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 $e(i,e){return e&&`${e}::${je++}`||i.uidEvent||je++}function ze(i){const e=$e(i);return i.uidEvent=e,be[e]=be[e]||{},be[e]}function He(i,e,t=null){return Object.values(i).find(s=>s.callable===e&&s.delegationSelector===t)}function qe(i,e,t){const s="string"==typeof e,n=s?t:e||t;let r=We(i);return Dt.has(r)||(r=i),[s,n,r]}function Be(i,e,t,s,n){if("string"!=typeof e||!i)return;let[r,a,c]=qe(e,t,s);var N;e in Fe&&(N=a,a=function(v){if(!v.relatedTarget||v.relatedTarget!==v.delegateTarget&&!v.delegateTarget.contains(v.relatedTarget))return N.call(this,v)});const h=ze(i),u=h[c]||(h[c]={}),_=He(u,a,r?t:null);if(_)return void(_.oneOff=_.oneOff&&n);const b=$e(a,e.replace(Lt,"")),E=r?function(C,N,v){return function U(_e){const Es=C.querySelectorAll(N);for(let{target:P}=_e;P&&P!==this;P=P.parentNode)for(const Cs of Es)if(Cs===P)return ye(_e,{delegateTarget:P}),U.oneOff&&o.off(C,_e.type,N,v),v.apply(P,[_e])}}(i,t,a):function(C,N){return function v(U){return ye(U,{delegateTarget:C}),v.oneOff&&o.off(C,U.type,N),N.apply(C,[U])}}(i,a);E.delegationSelector=r?t:null,E.callable=a,E.oneOff=n,E.uidEvent=b,u[b]=E,i.addEventListener(c,E,r)}function ve(i,e,t,s,n){const r=He(e[t],s,n);r&&(i.removeEventListener(t,r,!!n),delete e[t][r.uidEvent])}function Nt(i,e,t,s){const n=e[t]||{};for(const[r,a]of Object.entries(n))r.includes(s)&&ve(i,e,t,a.callable,a.delegationSelector)}function We(i){return i=i.replace(Ot,""),Fe[i]||i}const o={on(i,e,t,s){Be(i,e,t,s,!1)},one(i,e,t,s){Be(i,e,t,s,!0)},off(i,e,t,s){if("string"!=typeof e||!i)return;const[n,r,a]=qe(e,t,s),c=a!==e,h=ze(i),u=h[a]||{},_=e.startsWith(".");if(void 0===r){if(_)for(const b of Object.keys(h))Nt(i,h,b,e.slice(1));for(const[b,E]of Object.entries(u)){const C=b.replace(It,"");c&&!e.includes(C)||ve(i,h,a,E.callable,E.delegationSelector)}}else{if(!Object.keys(u).length)return;ve(i,h,a,r,n?t:null)}},trigger(i,e,t){if("string"!=typeof e||!i)return null;const s=xe();let n=null,r=!0,a=!0,c=!1;e!==We(e)&&s&&(n=s.Event(e,t),s(i).trigger(n),r=!n.isPropagationStopped(),a=!n.isImmediatePropagationStopped(),c=n.isDefaultPrevented());const h=ye(new Event(e,{bubbles:r,cancelable:!0}),t);return c&&h.preventDefault(),a&&i.dispatchEvent(h),h.defaultPrevented&&n&&n.preventDefault(),h}};function ye(i,e={}){for(const[t,s]of Object.entries(e))try{i[t]=s}catch{Object.defineProperty(i,t,{configurable:!0,get:()=>s})}return i}function Re(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 we(i){return i.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const w={setDataAttribute(i,e,t){i.setAttribute(`data-bs-${we(e)}`,t)},removeDataAttribute(i,e){i.removeAttribute(`data-bs-${we(e)}`)},getDataAttributes(i){if(!i)return{};const e={},t=Object.keys(i.dataset).filter(s=>s.startsWith("bs")&&!s.startsWith("bsConfig"));for(const s of t){let n=s.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),e[n]=Re(i.dataset[s])}return e},getDataAttribute:(i,e)=>Re(i.getAttribute(`data-bs-${we(e)}`))};class B{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 s=y(t)?w.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof s?s:{},...y(t)?w.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[n,r]of Object.entries(t)){const a=e[n],c=y(a)?"element":null==(s=a)?`${s}`:Object.prototype.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(c))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${c}" but expected type "${r}".`)}var s}}class m extends B{constructor(e,t){super(),(e=k(e))&&(this._element=e,this._config=this._getConfig(t),ge.set(this._element,this.constructor.DATA_KEY,this))}dispose(){ge.remove(this._element,this.constructor.DATA_KEY),o.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,s=!0){Me(e,t,s)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return ge.get(k(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 Ae=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 De(e)},l={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 s=i.parentNode.closest(e);for(;s;)t.push(s),s=s.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=>!S(t)&&x(t))},getSelectorFromElement(i){const e=Ae(i);return e&&l.findOne(e)?e:null},getElementFromSelector(i){const e=Ae(i);return e?l.findOne(e):null},getMultipleElementsFromSelector(i){const e=Ae(i);return e?l.find(e):[]}},G=(i,e="hide")=>{const s=i.NAME;o.on(document,`click.dismiss${i.EVENT_KEY}`,`[data-bs-dismiss="${s}"]`,function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),S(this))return;const r=l.getElementFromSelector(this)||this.closest(`.${s}`);i.getOrCreateInstance(r)[e]()})};class W extends m{static get NAME(){return"alert"}close(){if(o.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(),o.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=W.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)}})}}G(W,"close"),f(W);const Ke='[data-bs-toggle="button"]';class R extends m{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=R.getOrCreateInstance(this);"toggle"===e&&t[e]()})}}o.on(document,"click.bs.button.data-api",Ke,i=>{i.preventDefault();const e=i.target.closest(Ke);R.getOrCreateInstance(e).toggle()}),f(R);const Pt={endCallback:null,leftCallback:null,rightCallback:null},xt={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ee extends B{constructor(e,t){super(),this._element=e,e&&ee.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Pt}static get DefaultType(){return xt}static get NAME(){return"swipe"}dispose(){o.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(),d(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&&d(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(o.on(this._element,"pointerdown.bs.swipe",e=>this._start(e)),o.on(this._element,"pointerup.bs.swipe",e=>this._end(e)),this._element.classList.add("pointer-event")):(o.on(this._element,"touchstart.bs.swipe",e=>this._start(e)),o.on(this._element,"touchmove.bs.swipe",e=>this._move(e)),o.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 K="next",M="prev",j="left",te="right",Ee="slid.bs.carousel",Ve="carousel",se="active",Mt={ArrowLeft:te,ArrowRight:j},jt={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ft={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class F extends m{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=l.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===Ve&&this.cycle()}static get Default(){return jt}static get DefaultType(){return Ft}static get NAME(){return"carousel"}next(){this._slide(K)}nextWhenVisible(){!document.hidden&&x(this._element)&&this.next()}prev(){this._slide(M)}pause(){this._isSliding&&Ne(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?o.one(this._element,Ee,()=>this.cycle()):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void o.one(this._element,Ee,()=>this.to(e));const s=this._getItemIndex(this._getActive());s!==e&&this._slide(e>s?K:M,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&o.on(this._element,"keydown.bs.carousel",e=>this._keydown(e)),"hover"===this._config.pause&&(o.on(this._element,"mouseenter.bs.carousel",()=>this.pause()),o.on(this._element,"mouseleave.bs.carousel",()=>this._maybeEnableCycle())),this._config.touch&&ee.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of l.find(".carousel-item img",this._element))o.on(t,"dragstart.bs.carousel",s=>s.preventDefault());this._swipeHelper=new ee(this._element,{leftCallback:()=>this._slide(this._directionToOrder(j)),rightCallback:()=>this._slide(this._directionToOrder(te)),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=Mt[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=l.findOne(".active",this._indicatorsElement);t.classList.remove(se),t.removeAttribute("aria-current");const s=l.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);s&&(s.classList.add(se),s.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 s=this._getActive(),n=e===K,r=t||pe(this._getItems(),s,n,this._config.wrap);if(r===s)return;const a=this._getItemIndex(r),c=b=>o.trigger(this._element,b,{relatedTarget:r,direction:this._orderToDirection(e),from:this._getItemIndex(s),to:a});if(c("slide.bs.carousel").defaultPrevented||!s||!r)return;const h=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=r;const u=n?"carousel-item-start":"carousel-item-end",_=n?"carousel-item-next":"carousel-item-prev";r.classList.add(_),s.classList.add(u),r.classList.add(u),this._queueCallback(()=>{r.classList.remove(u,_),r.classList.add(se),s.classList.remove(se,_,u),this._isSliding=!1,c(Ee)},s,this._isAnimated()),h&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return l.findOne(".active.carousel-item",this._element)}_getItems(){return l.find(".carousel-item",this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return g()?e===j?M:K:e===j?K:M}_orderToDirection(e){return g()?e===M?j:te:e===M?te:j}static jQueryInterface(e){return this.each(function(){const t=F.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)})}}o.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",function(i){const e=l.getElementFromSelector(this);if(!e||!e.classList.contains(Ve))return;i.preventDefault();const t=F.getOrCreateInstance(e),s=this.getAttribute("data-bs-slide-to");return s?(t.to(s),void t._maybeEnableCycle()):"next"===w.getDataAttribute(this,"slide")?(t.next(),void t._maybeEnableCycle()):(t.prev(),void t._maybeEnableCycle())}),o.on(window,"load.bs.carousel.data-api",()=>{const i=l.find('[data-bs-ride="carousel"]');for(const e of i)F.getOrCreateInstance(e)}),f(F);const Ce="show",ie="collapse",ne="collapsing",Te='[data-bs-toggle="collapse"]',$t={parent:null,toggle:!0},zt={parent:"(null|element)",toggle:"boolean"};class $ extends m{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const s=l.find(Te);for(const n of s){const r=l.getSelectorFromElement(n),a=l.find(r).filter(c=>c===this._element);null!==r&&a.length&&this._triggerArray.push(n)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return $t}static get DefaultType(){return zt}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(n=>n!==this._element).map(n=>$.getOrCreateInstance(n,{toggle:!1}))),e.length&&e[0]._isTransitioning||o.trigger(this._element,"show.bs.collapse").defaultPrevented)return;for(const n of e)n.hide();const t=this._getDimension();this._element.classList.remove(ie),this._element.classList.add(ne),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ne),this._element.classList.add(ie,Ce),this._element.style[t]="",o.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[t]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||o.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(ne),this._element.classList.remove(ie,Ce);for(const t of this._triggerArray){const s=l.getElementFromSelector(t);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ne),this._element.classList.add(ie),o.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}_isShown(e=this._element){return e.classList.contains(Ce)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=k(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Te);for(const t of e){const s=l.getElementFromSelector(t);s&&this._addAriaAndCollapsedClass([t],this._isShown(s))}}_getFirstLevelChildren(e){const t=l.find(":scope .collapse .collapse",this._config.parent);return l.find(e,this._config.parent).filter(s=>!t.includes(s))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const s of e)s.classList.toggle("collapsed",!t),s.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const s=$.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===s[e])throw new TypeError(`No method named "${e}"`);s[e]()}})}}o.on(document,"click.bs.collapse.data-api",Te,function(i){("A"===i.target.tagName||i.delegateTarget&&"A"===i.delegateTarget.tagName)&&i.preventDefault();for(const e of l.getMultipleElementsFromSelector(this))$.getOrCreateInstance(e,{toggle:!1}).toggle()}),f($);const Qe="dropdown",Ht="ArrowUp",Xe="ArrowDown",Ye="click.bs.dropdown.data-api",Ue="keydown.bs.dropdown.data-api",V="show",L='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',qt=`${L}.show`,oe=".dropdown-menu",Bt=g()?"top-end":"top-start",Wt=g()?"top-start":"top-end",Rt=g()?"bottom-end":"bottom-start",Kt=g()?"bottom-start":"bottom-end",Vt=g()?"left-start":"right-start",Qt=g()?"right-start":"left-start",Xt={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Yt={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class p extends m{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=l.next(this._element,oe)[0]||l.prev(this._element,oe)[0]||l.findOne(oe,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Xt}static get DefaultType(){return Yt}static get NAME(){return Qe}toggle(){return this._isShown()?this.hide():this.show()}show(){if(S(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!o.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))o.on(t,"mouseover",J);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(V),this._element.classList.add(V),o.trigger(this._element,"shown.bs.dropdown",e)}}hide(){!S(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(!o.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))o.off(t,"mouseover",J);this._popper&&this._popper.destroy(),this._menu.classList.remove(V),this._element.classList.remove(V),this._element.setAttribute("aria-expanded","false"),w.removeDataAttribute(this._menu,"popper"),o.trigger(this._element,"hidden.bs.dropdown",e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!y(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Qe.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===Z)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:y(this._config.reference)?e=k(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=Z.createPopper(e,this._menu,t)}_isShown(){return this._menu.classList.contains(V)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Vt;if(e.classList.contains("dropstart"))return Qt;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?Wt:Bt:t?Kt:Rt}_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)&&(w.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...d(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const s=l.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(n=>x(n));s.length&&pe(s,t,e===Xe,!s.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=p.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=l.find(qt);for(const s of t){const n=p.getInstance(s);if(!n||!1===n._config.autoClose)continue;const r=e.composedPath(),a=r.includes(n._menu);if(r.includes(n._element)||"inside"===n._config.autoClose&&!a||"outside"===n._config.autoClose&&a||n._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const c={relatedTarget:n._element};"click"===e.type&&(c.clickEvent=e),n._completeHide(c)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),s="Escape"===e.key,n=[Ht,Xe].includes(e.key);if(!n&&!s||t&&!s)return;e.preventDefault();const r=this.matches(L)?this:l.prev(this,L)[0]||l.next(this,L)[0]||l.findOne(L,e.delegateTarget.parentNode),a=p.getOrCreateInstance(r);if(n)return e.stopPropagation(),a.show(),void a._selectMenuItem(e);a._isShown()&&(e.stopPropagation(),a.hide(),r.focus())}}o.on(document,Ue,L,p.dataApiKeydownHandler),o.on(document,Ue,oe,p.dataApiKeydownHandler),o.on(document,Ye,p.clearMenus),o.on(document,"keyup.bs.dropdown.data-api",p.clearMenus),o.on(document,Ye,L,function(i){i.preventDefault(),p.getOrCreateInstance(this).toggle()}),f(p);const Je="mousedown.bs.backdrop",Ut={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Zt={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ge extends B{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Ut}static get DefaultType(){return Zt}static get NAME(){return"backdrop"}show(e){if(!this._config.isVisible)return void d(e);this._append();this._getElement().classList.add("show"),this._emulateAnimation(()=>{d(e)})}hide(e){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),d(e)})):d(e)}dispose(){this._isAppended&&(o.off(this._element,Je),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=k(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),o.on(e,Je,()=>{d(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){Me(e,this._getElement(),this._config.isAnimated)}}const et=".bs.focustrap",tt="backward",Jt={autofocus:!0,trapElement:null},Gt={autofocus:"boolean",trapElement:"element"};class st extends B{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Jt}static get DefaultType(){return Gt}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),o.off(document,et),o.on(document,"focusin.bs.focustrap",e=>this._handleFocusin(e)),o.on(document,"keydown.tab.bs.focustrap",e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,o.off(document,et))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const s=l.focusableChildren(t);0===s.length?t.focus():this._lastTabNavDirection===tt?s[s.length-1].focus():s[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?tt:"forward")}}const it=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",nt=".sticky-top",re="padding-right",ot="margin-right";class ke{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,re,t=>t+e),this._setElementAttributes(it,re,t=>t+e),this._setElementAttributes(nt,ot,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,re),this._resetElementAttributes(it,re),this._resetElementAttributes(nt,ot)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,s){const n=this.getWidth();this._applyManipulationCallback(e,r=>{if(r!==this._element&&window.innerWidth>r.clientWidth+n)return;this._saveInitialAttribute(r,t);const a=window.getComputedStyle(r).getPropertyValue(t);r.style.setProperty(t,`${s(Number.parseFloat(a))}px`)})}_saveInitialAttribute(e,t){const s=e.style.getPropertyValue(t);s&&w.setDataAttribute(e,t,s)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,s=>{const n=w.getDataAttribute(s,t);null!==n?(w.removeDataAttribute(s,t),s.style.setProperty(t,n)):s.style.removeProperty(t)})}_applyManipulationCallback(e,t){if(y(e))t(e);else for(const s of l.find(e,this._element))t(s)}}const rt=".bs.modal",at="hidden.bs.modal",lt="show.bs.modal",ct="modal-open",Se="modal-static",es={backdrop:!0,focus:!0,keyboard:!0},ts={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class O extends m{constructor(e,t){super(e,t),this._dialog=l.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ke,this._addEventListeners()}static get Default(){return es}static get DefaultType(){return ts}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||o.trigger(this._element,lt,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(ct),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){this._isShown&&!this._isTransitioning&&(o.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(){o.off(window,rt),o.off(this._dialog,rt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ge({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new st({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=l.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,o.trigger(this._element,"shown.bs.modal",{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){o.on(this._element,"keydown.dismiss.bs.modal",e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),o.on(window,"resize.bs.modal",()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),o.on(this._element,"mousedown.dismiss.bs.modal",e=>{o.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(ct),this._resetAdjustments(),this._scrollBar.reset(),o.trigger(this._element,at)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(o.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(Se)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Se),this._queueCallback(()=>{this._element.classList.remove(Se),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(),s=t>0;if(s&&!e){const n=g()?"paddingLeft":"paddingRight";this._element.style[n]=`${t}px`}if(!s&&e){const n=g()?"paddingRight":"paddingLeft";this._element.style[n]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const s=O.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===s[e])throw new TypeError(`No method named "${e}"`);s[e](t)}})}}o.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',function(i){const e=l.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&i.preventDefault(),o.one(e,lt,s=>{s.defaultPrevented||o.one(e,at,()=>{x(this)&&this.focus()})});const t=l.findOne(".modal.show");t&&O.getInstance(t).hide(),O.getOrCreateInstance(e).toggle(this)}),G(O),f(O);const ut="showing",gt=".offcanvas.show",ft="hidePrevented.bs.offcanvas",mt="hidden.bs.offcanvas",ss={backdrop:!0,keyboard:!0,scroll:!1},is={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class A extends m{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return ss}static get DefaultType(){return is}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||o.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new ke).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ut),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add("show"),this._element.classList.remove(ut),o.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})},this._element,!0))}hide(){this._isShown&&(o.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 ke).reset(),o.trigger(this._element,mt)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=!!this._config.backdrop;return new Ge({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():o.trigger(this._element,ft)}:null})}_initializeFocusTrap(){return new st({trapElement:this._element})}_addEventListeners(){o.on(this._element,"keydown.dismiss.bs.offcanvas",e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():o.trigger(this._element,ft))})}static jQueryInterface(e){return this.each(function(){const t=A.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)}})}}o.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',function(i){const e=l.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),S(this))return;o.one(e,mt,()=>{x(this)&&this.focus()});const t=l.findOne(gt);t&&t!==e&&A.getInstance(t).hide(),A.getOrCreateInstance(e).toggle(this)}),o.on(window,"load.bs.offcanvas.data-api",()=>{for(const i of l.find(gt))A.getOrCreateInstance(i).show()}),o.on(window,"resize.bs.offcanvas",()=>{for(const i of l.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(i).position&&A.getOrCreateInstance(i).hide()}),G(A),f(A);const pt={"*":["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:[]},ns=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),os=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,rs=(i,e)=>{const t=i.nodeName.toLowerCase();return e.includes(t)?!ns.has(t)||!!os.test(i.nodeValue):e.filter(s=>s instanceof RegExp).some(s=>s.test(t))},as={allowList:pt,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},ls={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},cs={entry:"(string|element|function|null)",selector:"(string|element)"};class hs extends B{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return as}static get DefaultType(){return ls}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[n,r]of Object.entries(this._config.content))this._setContent(e,r,n);const t=e.children[0],s=this._resolvePossibleFunction(this._config.extraClass);return s&&t.classList.add(...s.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,s]of Object.entries(e))super._typeCheckConfig({selector:t,entry:s},cs)}_setContent(e,t,s){const n=l.findOne(s,e);n&&((t=this._resolvePossibleFunction(t))?y(t)?this._putElementInTemplate(k(t),n):this._config.html?n.innerHTML=this._maybeSanitize(t):n.textContent=t:n.remove())}_maybeSanitize(e){return this._config.sanitize?function(t,s,n){if(!t.length)return t;if(n&&"function"==typeof n)return n(t);const r=(new window.DOMParser).parseFromString(t,"text/html"),a=[].concat(...r.body.querySelectorAll("*"));for(const c of a){const h=c.nodeName.toLowerCase();if(!Object.keys(s).includes(h)){c.remove();continue}const u=[].concat(...c.attributes),_=[].concat(s["*"]||[],s[h]||[]);for(const b of u)rs(b,_)||c.removeAttribute(b.nodeName)}return r.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return d(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const ds=new Set(["sanitize","allowList","sanitizeFn"]),Le="fade",ae="show",vt="hide.bs.modal",le="hover",us={AUTO:"auto",TOP:"top",RIGHT:g()?"left":"right",BOTTOM:"bottom",LEFT:g()?"right":"left"},_s={allowList:pt,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"},gs={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 I extends m{constructor(e,t){if(void 0===Z)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 _s}static get DefaultType(){return gs}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),o.off(this._element.closest(".modal"),vt,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=o.trigger(this._element,this.constructor.eventName("show")),t=(Pe(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const s=this._getTipElement();this._element.setAttribute("aria-describedby",s.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(s),o.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(s),s.classList.add(ae),"ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))o.on(r,"mouseover",J);this._queueCallback(()=>{o.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!o.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(ae),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))o.off(e,"mouseover",J);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"),o.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Le,ae),t.classList.add(`bs-${this.constructor.NAME}-auto`);const s=(n=>{do{n+=Math.floor(1e6*Math.random())}while(document.getElementById(n));return n})(this.constructor.NAME).toString();return t.setAttribute("id",s),this._isAnimated()&&t.classList.add(Le),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new hs({...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(Le)}_isShown(){return this.tip&&this.tip.classList.contains(ae)}_createPopper(e){const t=d(this._config.placement,[this,e,this._element]),s=us[t.toUpperCase()];return Z.createPopper(this._element,e,this._getPopperConfig(s))}_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 d(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:s=>{this._getTipElement().setAttribute("data-popper-placement",s.state.placement)}}]};return{...t,...d(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)o.on(this._element,this.constructor.eventName("click"),this._config.selector,s=>{this._initializeOnDelegatedTarget(s).toggle()});else if("manual"!==t){const s=this.constructor.eventName(t===le?"mouseenter":"focusin"),n=this.constructor.eventName(t===le?"mouseleave":"focusout");o.on(this._element,s,this._config.selector,r=>{const a=this._initializeOnDelegatedTarget(r);a._activeTrigger["focusin"===r.type?"focus":le]=!0,a._enter()}),o.on(this._element,n,this._config.selector,r=>{const a=this._initializeOnDelegatedTarget(r);a._activeTrigger["focusout"===r.type?"focus":le]=a._element.contains(r.relatedTarget),a._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},o.on(this._element.closest(".modal"),vt,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=w.getDataAttributes(this._element);for(const s of Object.keys(t))ds.has(s)&&delete t[s];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:k(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,s]of Object.entries(this._config))this.constructor.Default[t]!==s&&(e[t]=s);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=I.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}f(I);const fs={...I.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"},ms={...I.DefaultType,content:"(null|string|element|function)"};class ce extends I{static get Default(){return fs}static get DefaultType(){return ms}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=ce.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}f(ce);const wt="click.bs.scrollspy",Q="active",ps={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},bs={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class X extends m{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 bs}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=k(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&&(o.off(this._config.target,wt),o.on(this._config.target,wt,"[href]",e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const s=this._rootElement||window,n=t.offsetTop-this._element.offsetTop;if(s.scrollTo)return void s.scrollTo({top:n,behavior:"smooth"});s.scrollTop=n}}))}_getNewObserver(){return new IntersectionObserver(t=>this._observerCallback(t),{root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin})}_observerCallback(e){const t=a=>this._targetLinks.get(`#${a.target.id}`),s=a=>{this._previousScrollData.visibleEntryTop=a.target.offsetTop,this._process(t(a))},n=(this._rootElement||document.documentElement).scrollTop,r=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(a));continue}const c=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&c){if(s(a),!n)return}else r||c||s(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=l.find("[href]",this._config.target);for(const t of e){if(!t.hash||S(t))continue;const s=l.findOne(decodeURI(t.hash),this._element);x(s)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,s))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Q),this._activateParents(e),o.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))l.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(Q);else for(const t of l.parents(e,".nav, .list-group"))for(const s of l.prev(t,".nav-link, .nav-item > .nav-link, .list-group-item"))s.classList.add(Q)}_clearActiveClass(e){e.classList.remove(Q);const t=l.find("[href].active",e);for(const s of t)s.classList.remove(Q)}static jQueryInterface(e){return this.each(function(){const t=X.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]()}})}}o.on(window,"load.bs.scrollspy.data-api",()=>{for(const i of l.find('[data-bs-spy="scroll"]'))X.getOrCreateInstance(i)}),f(X);const vs="ArrowLeft",Et="ArrowRight",ys="ArrowUp",Ct="ArrowDown",he="active",Oe="show",kt='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Ie=`.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), ${kt}`;class D extends m{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),o.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(),s=t?o.trigger(t,"hide.bs.tab",{relatedTarget:e}):null;o.trigger(e,"show.bs.tab",{relatedTarget:t}).defaultPrevented||s&&s.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(he),this._activate(l.getElementFromSelector(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),o.trigger(e,"shown.bs.tab",{relatedTarget:t})):e.classList.add(Oe)},e,e.classList.contains("fade")))}_deactivate(e,t){e&&(e.classList.remove(he),e.blur(),this._deactivate(l.getElementFromSelector(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),o.trigger(e,"hidden.bs.tab",{relatedTarget:t})):e.classList.remove(Oe)},e,e.classList.contains("fade")))}_keydown(e){if(![vs,Et,ys,Ct].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[Et,Ct].includes(e.key),s=pe(this._getChildren().filter(n=>!S(n)),e.target,t,!0);s&&(s.focus({preventScroll:!0}),D.getOrCreateInstance(s).show())}_getChildren(){return l.find(Ie,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const s of t)this._setInitialAttributesOnChild(s)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),s=this._getOuterElement(e);e.setAttribute("aria-selected",t),s!==e&&this._setAttributeIfNotExists(s,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=l.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const s=this._getOuterElement(e);if(!s.classList.contains("dropdown"))return;const n=(r,a)=>{const c=l.findOne(r,s);c&&c.classList.toggle(a,t)};n(".dropdown-toggle",he),n(".dropdown-menu",Oe),s.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,s){e.hasAttribute(t)||e.setAttribute(t,s)}_elemIsActive(e){return e.classList.contains(he)}_getInnerElement(e){return e.matches(Ie)?e:l.findOne(Ie,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each(function(){const t=D.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}})}}o.on(document,"click.bs.tab",kt,function(i){["A","AREA"].includes(this.tagName)&&i.preventDefault(),S(this)||D.getOrCreateInstance(this).show()}),o.on(window,"load.bs.tab",()=>{for(const i of l.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))D.getOrCreateInstance(i)}),f(D);const de="show",ue="showing",ws={animation:"boolean",autohide:"boolean",delay:"number"},As={animation:!0,autohide:!0,delay:5e3};class Y extends m{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return As}static get DefaultType(){return ws}static get NAME(){return"toast"}show(){o.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(de,ue),this._queueCallback(()=>{this._element.classList.remove(ue),o.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(o.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(ue),this._queueCallback(()=>{this._element.classList.add("hide"),this._element.classList.remove(ue,de),o.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(de),super.dispose()}isShown(){return this._element.classList.contains(de)}_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 s=e.relatedTarget;this._element===s||this._element.contains(s)||this._maybeScheduleHide()}_setListeners(){o.on(this._element,"mouseover.bs.toast",e=>this._onInteraction(e,!0)),o.on(this._element,"mouseout.bs.toast",e=>this._onInteraction(e,!1)),o.on(this._element,"focusin.bs.toast",e=>this._onInteraction(e,!0)),o.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=Y.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}})}}return G(Y),f(Y),{Alert:W,Button:R,Carousel:F,Collapse:$,Dropdown:p,Modal:O,Offcanvas:A,Popover:ce,ScrollSpy:X,Tab:D,Toast:Y,Tooltip:I}});