/*! * Bootstrap v5.1.0 (https://getbootstrap.com/) * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()}(this,(function(){"use strict";const e=e=>{const t=(e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i="#"+i.split("#")[1]),t=i&&"#"!==i?i.trim():null}return t})(e);return t?document.querySelector(t):null},t=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),i=e=>t(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(e):null,s=(e,i,s)=>{Object.keys(s).forEach(n=>{const o=s[n],r=i[n],a=r&&t(r)?"element":null==(l=r)?""+l:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();var l;if(!new RegExp(o).test(a))throw new TypeError(`${e.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${o}".`)})},n=e=>!(!t(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility"),o=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),r=e=>{e.offsetHeight},a=()=>{const{jQuery:e}=window;return e&&!document.body.hasAttribute("data-bs-no-jquery")?e:null},l=[],c=()=>"rtl"===document.documentElement.dir,d=e=>{"function"==typeof e&&e()},h=(e,t,i=!0)=>{if(!i)return void d(e);const s=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const s=Number.parseFloat(t),n=Number.parseFloat(i);return s||n?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0})(t)+5;let n=!1;const o=({target:i})=>{i===t&&(n=!0,t.removeEventListener("transitionend",o),d(e))};t.addEventListener("transitionend",o),setTimeout(()=>{n||t.dispatchEvent(new Event("transitionend"))},s)},u=/[^.]*(?=\..*)\.|.*/,m=/\..*/,f=/::\d+$/,g={};let p=1;const _={mouseenter:"mouseover",mouseleave:"mouseout"},b=/^(mouseenter|mouseleave)/i,E=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 v(e,t){return t&&`${t}::${p++}`||e.uidEvent||p++}function y(e){const t=v(e);return e.uidEvent=t,g[t]=g[t]||{},g[t]}function w(e,t,i=null){const s=Object.keys(e);for(let n=0,o=s.length;nfunction(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};s?s=e(s):i=e(i)}const[o,r,a]=A(t,i,s),l=y(e),c=l[a]||(l[a]={}),d=w(c,r,o?i:null);if(d)return void(d.oneOff=d.oneOff&&n);const h=v(r,t.replace(u,"")),m=o?function(e,t,i){return function s(n){const o=e.querySelectorAll(t);for(let{target:r}=n;r&&r!==this;r=r.parentNode)for(let a=o.length;a--;)if(o[a]===r)return n.delegateTarget=r,s.oneOff&&C.off(e,n.type,t,i),i.apply(r,[n]);return null}}(e,i,s):function(e,t){return function i(s){return s.delegateTarget=e,i.oneOff&&C.off(e,s.type,t),t.apply(e,[s])}}(e,i);m.delegationSelector=o?i:null,m.originalHandler=r,m.oneOff=n,m.uidEvent=h,c[h]=m,e.addEventListener(a,m,o)}function T(e,t,i,s,n){const o=w(t[i],s,n);o&&(e.removeEventListener(i,o,Boolean(n)),delete t[i][o.uidEvent])}function N(e){return e=e.replace(m,""),_[e]||e}const C={on(e,t,i,s){k(e,t,i,s,!1)},one(e,t,i,s){k(e,t,i,s,!0)},off(e,t,i,s){if("string"!=typeof t||!e)return;const[n,o,r]=A(t,i,s),a=r!==t,l=y(e),c=t.startsWith(".");if(void 0!==o){if(!l||!l[r])return;return void T(e,l,r,o,n?i:null)}c&&Object.keys(l).forEach(i=>{!function(e,t,i,s){const n=t[i]||{};Object.keys(n).forEach(o=>{if(o.includes(s)){const s=n[o];T(e,t,i,s.originalHandler,s.delegationSelector)}})}(e,l,i,t.slice(1))});const d=l[r]||{};Object.keys(d).forEach(i=>{const s=i.replace(f,"");if(!a||t.includes(s)){const t=d[i];T(e,l,r,t.originalHandler,t.delegationSelector)}})},trigger(e,t,i){if("string"!=typeof t||!e)return null;const s=a(),n=N(t),o=t!==n,r=E.has(n);let l,c=!0,d=!0,h=!1,u=null;return o&&s&&(l=s.Event(t,i),s(e).trigger(l),c=!l.isPropagationStopped(),d=!l.isImmediatePropagationStopped(),h=l.isDefaultPrevented()),r?(u=document.createEvent("HTMLEvents"),u.initEvent(n,c,!0)):u=new CustomEvent(t,{bubbles:c,cancelable:!0}),void 0!==i&&Object.keys(i).forEach(e=>{Object.defineProperty(u,e,{get:()=>i[e]})}),h&&u.preventDefault(),d&&e.dispatchEvent(u),u.defaultPrevented&&void 0!==l&&l.preventDefault(),u}};function D(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function O(e){return e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}const S={setDataAttribute(e,t,i){e.setAttribute("data-bs-"+O(t),i)},removeDataAttribute(e,t){e.removeAttribute("data-bs-"+O(t))},getDataAttributes(e){if(!e)return{};const t={};return Object.keys(e.dataset).filter(e=>e.startsWith("bs")).forEach(i=>{let s=i.replace(/^bs/,"");s=s.charAt(0).toLowerCase()+s.slice(1,s.length),t[s]=D(e.dataset[i])}),t},getDataAttribute:(e,t)=>D(e.getAttribute("data-bs-"+O(t))),offset(e){const t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}},position:e=>({top:e.offsetTop,left:e.offsetLeft})},j={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter(e=>e.matches(t)),parents(e,t){const i=[];let s=e.parentNode;for(;s&&s.nodeType===Node.ELEMENT_NODE&&3!==s.nodeType;)s.matches(t)&&i.push(s),s=s.parentNode;return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>e+':not([tabindex^="-"])').join(", ");return this.find(t,e).filter(e=>!o(e)&&n(e))}};class L{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",t=>t+e),this._setElementAttributes(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top","paddingRight",t=>t+e),this._setElementAttributes(".sticky-top","marginRight",t=>t-e)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){const s=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+s)return;this._saveInitialAttribute(e,t);const n=window.getComputedStyle(e)[t];e.style[t]=i(Number.parseFloat(n))+"px"})}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top","paddingRight"),this._resetElementAttributes(".sticky-top","marginRight")}_saveInitialAttribute(e,t){const i=e.style[t];i&&S.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{const i=S.getDataAttribute(e,t);void 0===i?e.style.removeProperty(t):(S.removeDataAttribute(e,t),e.style[t]=i)})}_applyManipulationCallback(e,i){t(e)?i(e):j.find(e,this._element).forEach(i)}isOverflowing(){return this.getWidth()>0}}const M=new Map;var x={set(e,t,i){M.has(e)||M.set(e,new Map);const s=M.get(e);s.has(t)||0===s.size?s.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(e,t)=>M.has(e)&&M.get(e).get(t)||null,remove(e,t){if(!M.has(e))return;const i=M.get(e);i.delete(t),0===i.size&&M.delete(e)}};const B={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},R={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"};class I{constructor(e){this._config=this._getConfig(e),this._isAppended=!1,this._element=null}show(e){this._config.isVisible?(this._append(),this._config.isAnimated&&r(this._getElement()),this._getElement().classList.add("show"),this._emulateAnimation(()=>{d(e)})):d(e)}hide(e){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),d(e)})):d(e)}_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}_getConfig(e){return(e={...B,..."object"==typeof e?e:{}}).rootElement=i(e.rootElement),s("backdrop",e,R),e}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),C.on(this._getElement(),"mousedown.bs.backdrop",()=>{d(this._config.clickCallback)}),this._isAppended=!0)}dispose(){this._isAppended&&(C.off(this._element,"mousedown.bs.backdrop"),this._element.remove(),this._isAppended=!1)}_emulateAnimation(e){h(e,this._getElement(),this._config.isAnimated)}}const q={trapElement:null,autofocus:!0},z={trapElement:"element",autofocus:"boolean"};class P{constructor(e){this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:e,autofocus:t}=this._config;this._isActive||(t&&e.focus(),C.off(document,".bs.focustrap"),C.on(document,"focusin.bs.focustrap",e=>this._handleFocusin(e)),C.on(document,"keydown.tab.bs.focustrap",e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,C.off(document,".bs.focustrap"))}_handleFocusin(e){const{target:t}=e,{trapElement:i}=this._config;if(t===document||t===i||i.contains(t))return;const s=j.focusableChildren(i);0===s.length?i.focus():"backward"===this._lastTabNavDirection?s[s.length-1].focus():s[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?"backward":"forward")}_getConfig(e){return e={...q,..."object"==typeof e?e:{}},s("focustrap",e,z),e}}const W={backdrop:!0,keyboard:!0,focus:!0},Y={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"};class F extends class{constructor(e){(e=i(e))&&(this._element=e,x.set(this._element,this.constructor.DATA_KEY,this))}dispose(){x.remove(this._element,this.constructor.DATA_KEY),C.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(e=>{this[e]=null})}_queueCallback(e,t,i=!0){h(e,t,i)}static getInstance(e){return x.get(i(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.1.0"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return"bs."+this.NAME}static get EVENT_KEY(){return"."+this.DATA_KEY}}{constructor(e,t){super(e),this._config=this._getConfig(t),this._dialog=j.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new L}static get Default(){return W}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||C.trigger(this._element,"show.bs.modal",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add("modal-open"),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),C.on(this._dialog,"mousedown.dismiss.bs.modal",()=>{C.one(this._element,"mouseup.dismiss.bs.modal",e=>{e.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(e)))}hide(){if(!this._isShown||this._isTransitioning)return;if(C.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove("show"),C.off(this._element,"click.dismiss.bs.modal"),C.off(this._dialog,"mousedown.dismiss.bs.modal"),this._queueCallback(()=>this._hideModal(),this._element,e)}dispose(){[window,this._dialog].forEach(e=>C.off(e,".bs.modal")),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new I({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new P({trapElement:this._element})}_getConfig(e){return e={...W,...S.getDataAttributes(this._element),..."object"==typeof e?e:{}},s("modal",e,Y),e}_showElement(e){const t=this._isAnimated(),i=j.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||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,i&&(i.scrollTop=0),t&&r(this._element),this._element.classList.add("show"),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,C.trigger(this._element,"shown.bs.modal",{relatedTarget:e})},this._dialog,t)}_setEscapeEvent(){this._isShown?C.on(this._element,"keydown.dismiss.bs.modal",e=>{this._config.keyboard&&"Escape"===e.key?(e.preventDefault(),this.hide()):this._config.keyboard||"Escape"!==e.key||this._triggerBackdropTransition()}):C.off(this._element,"keydown.dismiss.bs.modal")}_setResizeEvent(){this._isShown?C.on(window,"resize.bs.modal",()=>this._adjustDialog()):C.off(window,"resize.bs.modal")}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove("modal-open"),this._resetAdjustments(),this._scrollBar.reset(),C.trigger(this._element,"hidden.bs.modal")})}_showBackdrop(e){C.on(this._element,"click.dismiss.bs.modal",e=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:e.target===e.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())}),this._backdrop.show(e)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(C.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const{classList:e,scrollHeight:t,style:i}=this._element,s=t>document.documentElement.clientHeight;!s&&"hidden"===i.overflowY||e.contains("modal-static")||(s||(i.overflowY="hidden"),e.add("modal-static"),this._queueCallback(()=>{e.remove("modal-static"),s||this._queueCallback(()=>{i.overflowY=""},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=t>0;(!i&&e&&!c()||i&&!e&&c())&&(this._element.style.paddingLeft=t+"px"),(i&&!e&&!c()||!i&&e&&c())&&(this._element.style.paddingRight=t+"px")}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const i=F.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](t)}}))}}var K,H;return C.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(t){const i=e(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),C.one(i,"show.bs.modal",e=>{e.defaultPrevented||C.one(i,"hidden.bs.modal",()=>{n(this)&&this.focus()})}),F.getOrCreateInstance(i).toggle(this)})),((t,i="hide")=>{const s="click.dismiss"+t.EVENT_KEY,n=t.NAME;C.on(document,s,`[data-bs-dismiss="${n}"]`,(function(s){if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),o(this))return;const r=e(this)||this.closest("."+n);t.getOrCreateInstance(r)[i]()}))})(F),K=F,H=()=>{const e=a();if(e){const t=K.NAME,i=e.fn[t];e.fn[t]=K.jQueryInterface,e.fn[t].Constructor=K,e.fn[t].noConflict=()=>(e.fn[t]=i,K.jQueryInterface)}},"loading"===document.readyState?(l.length||document.addEventListener("DOMContentLoaded",()=>{l.forEach(e=>e())}),l.push(H)):H(),{Modal:F}})); //# sourceMappingURL=bootstrap.bundle.min.js.map