UNPKG

@ipscape/ips-input

Version:
7 lines 93.6 kB
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["ips-input"]=t():e["ips-input"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(n,s,function(t){return e[t]}.bind(null,s));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s="77c0")}({"1a14":function(e,t,i){"use strict";i("b1ff")},"24de":function(e,t,i){},"77c0":function(e,t,i){"use strict";i.r(t);var n={};if(i.r(n),i.d(n,"top",(function(){return b})),i.d(n,"bottom",(function(){return v})),i.d(n,"right",(function(){return y})),i.d(n,"left",(function(){return w})),i.d(n,"auto",(function(){return A})),i.d(n,"basePlacements",(function(){return E})),i.d(n,"start",(function(){return T})),i.d(n,"end",(function(){return C})),i.d(n,"clippingParents",(function(){return x})),i.d(n,"viewport",(function(){return O})),i.d(n,"popper",(function(){return k})),i.d(n,"reference",(function(){return S})),i.d(n,"variationPlacements",(function(){return L})),i.d(n,"placements",(function(){return D})),i.d(n,"beforeRead",(function(){return I})),i.d(n,"read",(function(){return P})),i.d(n,"afterRead",(function(){return N})),i.d(n,"beforeMain",(function(){return j})),i.d(n,"main",(function(){return M})),i.d(n,"afterMain",(function(){return $})),i.d(n,"beforeWrite",(function(){return q})),i.d(n,"write",(function(){return F})),i.d(n,"afterWrite",(function(){return H})),i.d(n,"modifierPhases",(function(){return B})),i.d(n,"applyStyles",(function(){return Q})),i.d(n,"arrow",(function(){return we})),i.d(n,"computeStyles",(function(){return Oe})),i.d(n,"eventListeners",(function(){return Le})),i.d(n,"flip",(function(){return Je})),i.d(n,"hide",(function(){return it})),i.d(n,"offset",(function(){return rt})),i.d(n,"popperOffsets",(function(){return at})),i.d(n,"preventOverflow",(function(){return ut})),i.d(n,"popperGenerator",(function(){return wt})),i.d(n,"detectOverflow",(function(){return Ue})),i.d(n,"createPopperBase",(function(){return At})),i.d(n,"createPopper",(function(){return Tt})),i.d(n,"createPopperLite",(function(){return xt})),"undefined"!==typeof window){var s=window.document.currentScript,r=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(i.p=r[1])}var o=function(){var e=this,t=e._self._c;return t("div",[t("label",{class:e.labelComputedClasses,attrs:{for:e.id}},[e._t("label",(function(){return[t("span",[e._v(e._s(e.label))]),e.tooltipProps?t("ips-tooltip",e._b({},"ips-tooltip",e.tooltipProps,!1),[t("template",{slot:"tip"},[t("ips-icon",{attrs:{icon:"ico-help"}})],1)],2):e._e()]}))],2),t("div",{class:e.formComputedClasses},[e.icon?t("ips-icon",{staticClass:"ips-form-icon--prepend",attrs:{icon:e.icon}}):e._e(),"search"===e.type?t("ips-icon",{staticClass:"ips-form-icon--search",attrs:{icon:"ico-search"}}):e._e(),t("input",{staticClass:"form-control",class:e.inputComputedClasses,attrs:{id:e.id,type:e.inputType,disabled:e.disabled,required:e.required,placeholder:e.placeholder,tabindex:e.tabindex,readonly:e.readonly,autocomplete:e.autocomplete,maxlength:e.maxlength},domProps:{value:e.value},on:{input:function(t){return e.$emit("input",t.target.value)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.enterPressed.apply(null,arguments)}}}),e.iconAppend?t("ips-icon",{staticClass:"ips-form-icon--append",attrs:{icon:e.iconAppend},on:{click:e.appendIconClicked}}):e._e(),t("ips-icon",{directives:[{name:"show",rawName:"v-show",value:e.clearable&&e.isDirty,expression:"clearable && isDirty"}],staticClass:"ips-form-icon--clear",attrs:{icon:"ico-delete"},on:{click:e.clearInputValue}}),e.passwordReveal&&e.isDirty?t("ips-tooltip",{staticClass:"ips-form-icon--password",attrs:{tooltip:e.showPassword?"Hide password":"Show password",placement:"top"}},[t("template",{slot:"tip"},[t("ips-icon",{attrs:{icon:e.showPassword?"ico-eye-off":"ico-eye"},on:{click:e.togglePassword}})],1)],2):e._e(),e.error?t("small",{staticClass:"ips-validation form-text text-danger"},[t("ips-icon",{attrs:{icon:"ico-danger",size:"sm"}}),e._t("errorText")],2):e._e()],1)])},a=[],l=function(){var e=this,t=e._self._c;return t("i",{staticClass:"ips ips-icon",class:e.iconClasses,on:{click:e.handleClick}})},c=[],u={name:"IpsIcon",props:{icon:{name:"icon",description:"The name of the icon",type:String,default:"",required:!0},size:{name:"size",description:"The icon size",type:String,default:"md",required:!1,validator:e=>-1!==["","sm","md","lg"].indexOf(e)}},computed:{iconClasses(){const e=[this.icon];return e.push("ips-icon-"+this.size),e}},methods:{handleClick(e){this.$emit("click",e)}}},d=u;function h(e,t,i,n,s,r,o,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):s&&(l=a?function(){s.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:s),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var f=h(d,l,c,!1,null,null,null),p=f.exports,m=(i("24de"),p),g=function(){var e=this,t=e._self._c;return t("span",{ref:"ipsTip",staticClass:"ips-tooltip",attrs:{"data-bs-toggle":"tooltip",title:e.tooltip,"data-bs-container":"body"}},[e._t("tip",null,{hide:e.hide,toggle:e.toggleEnabled,destroy:e.destroy})],2)},_=[],b="top",v="bottom",y="right",w="left",A="auto",E=[b,v,y,w],T="start",C="end",x="clippingParents",O="viewport",k="popper",S="reference",L=E.reduce((function(e,t){return e.concat([t+"-"+T,t+"-"+C])}),[]),D=[].concat(E,[A]).reduce((function(e,t){return e.concat([t,t+"-"+T,t+"-"+C])}),[]),I="beforeRead",P="read",N="afterRead",j="beforeMain",M="main",$="afterMain",q="beforeWrite",F="write",H="afterWrite",B=[I,P,N,j,M,$,q,F,H];function z(e){return e?(e.nodeName||"").toLowerCase():null}function R(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function W(e){var t=R(e).Element;return e instanceof t||e instanceof Element}function V(e){var t=R(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function K(e){if("undefined"===typeof ShadowRoot)return!1;var t=R(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function X(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},s=t.elements[e];V(s)&&z(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))}function U(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],s=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]),o=r.reduce((function(e,t){return e[t]="",e}),{});V(n)&&z(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(e){n.removeAttribute(e)})))}))}}var Q={name:"applyStyles",enabled:!0,phase:"write",fn:X,effect:U,requires:["computeStyles"]};function Y(e){return e.split("-")[0]}var G=Math.max,J=Math.min,Z=Math.round;function ee(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function te(){return!/^((?!chrome|android).)*safari/i.test(ee())}function ie(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,r=1;t&&V(e)&&(s=e.offsetWidth>0&&Z(n.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Z(n.height)/e.offsetHeight||1);var o=W(e)?R(e):window,a=o.visualViewport,l=!te()&&i,c=(n.left+(l&&a?a.offsetLeft:0))/s,u=(n.top+(l&&a?a.offsetTop:0))/r,d=n.width/s,h=n.height/r;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function ne(e){var t=ie(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function se(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&K(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function re(e){return R(e).getComputedStyle(e)}function oe(e){return["table","td","th"].indexOf(z(e))>=0}function ae(e){return((W(e)?e.ownerDocument:e.document)||window.document).documentElement}function le(e){return"html"===z(e)?e:e.assignedSlot||e.parentNode||(K(e)?e.host:null)||ae(e)}function ce(e){return V(e)&&"fixed"!==re(e).position?e.offsetParent:null}function ue(e){var t=/firefox/i.test(ee()),i=/Trident/i.test(ee());if(i&&V(e)){var n=re(e);if("fixed"===n.position)return null}var s=le(e);K(s)&&(s=s.host);while(V(s)&&["html","body"].indexOf(z(s))<0){var r=re(s);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return s;s=s.parentNode}return null}function de(e){var t=R(e),i=ce(e);while(i&&oe(i)&&"static"===re(i).position)i=ce(i);return i&&("html"===z(i)||"body"===z(i)&&"static"===re(i).position)?t:i||ue(e)||t}function he(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fe(e,t,i){return G(e,J(t,i))}function pe(e,t,i){var n=fe(e,t,i);return n>i?i:n}function me(){return{top:0,right:0,bottom:0,left:0}}function ge(e){return Object.assign({},me(),e)}function _e(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}var be=function(e,t){return e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,ge("number"!==typeof e?e:_e(e,E))};function ve(e){var t,i=e.state,n=e.name,s=e.options,r=i.elements.arrow,o=i.modifiersData.popperOffsets,a=Y(i.placement),l=he(a),c=[w,y].indexOf(a)>=0,u=c?"height":"width";if(r&&o){var d=be(s.padding,i),h=ne(r),f="y"===l?b:w,p="y"===l?v:y,m=i.rects.reference[u]+i.rects.reference[l]-o[l]-i.rects.popper[u],g=o[l]-i.rects.reference[l],_=de(r),A=_?"y"===l?_.clientHeight||0:_.clientWidth||0:0,E=m/2-g/2,T=d[f],C=A-h[u]-d[p],x=A/2-h[u]/2+E,O=fe(T,x,C),k=l;i.modifiersData[n]=(t={},t[k]=O,t.centerOffset=O-x,t)}}function ye(e){var t=e.state,i=e.options,n=i.element,s=void 0===n?"[data-popper-arrow]":n;null!=s&&("string"!==typeof s||(s=t.elements.popper.querySelector(s),s))&&se(t.elements.popper,s)&&(t.elements.arrow=s)}var we={name:"arrow",enabled:!0,phase:"main",fn:ve,effect:ye,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ae(e){return e.split("-")[1]}var Ee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Te(e,t){var i=e.x,n=e.y,s=t.devicePixelRatio||1;return{x:Z(i*s)/s||0,y:Z(n*s)/s||0}}function Ce(e){var t,i=e.popper,n=e.popperRect,s=e.placement,r=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=o.x,f=void 0===h?0:h,p=o.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 _=o.hasOwnProperty("x"),A=o.hasOwnProperty("y"),E=w,T=b,x=window;if(c){var O=de(i),k="clientHeight",S="clientWidth";if(O===R(i)&&(O=ae(i),"static"!==re(O).position&&"absolute"===a&&(k="scrollHeight",S="scrollWidth")),O=O,s===b||(s===w||s===y)&&r===C){T=v;var L=d&&O===x&&x.visualViewport?x.visualViewport.height:O[k];m-=L-n.height,m*=l?1:-1}if(s===w||(s===b||s===v)&&r===C){E=y;var D=d&&O===x&&x.visualViewport?x.visualViewport.width:O[S];f-=D-n.width,f*=l?1:-1}}var I,P=Object.assign({position:a},c&&Ee),N=!0===u?Te({x:f,y:m},R(i)):{x:f,y:m};return f=N.x,m=N.y,l?Object.assign({},P,(I={},I[T]=A?"0":"",I[E]=_?"0":"",I.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",I)):Object.assign({},P,(t={},t[T]=A?m+"px":"",t[E]=_?f+"px":"",t.transform="",t))}function xe(e){var t=e.state,i=e.options,n=i.gpuAcceleration,s=void 0===n||n,r=i.adaptive,o=void 0===r||r,a=i.roundOffsets,l=void 0===a||a,c={placement:Y(t.placement),variation:Ae(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ce(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ce(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Oe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:xe,data:{}},ke={passive:!0};function Se(e){var t=e.state,i=e.instance,n=e.options,s=n.scroll,r=void 0===s||s,o=n.resize,a=void 0===o||o,l=R(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",i.update,ke)})),a&&l.addEventListener("resize",i.update,ke),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",i.update,ke)})),a&&l.removeEventListener("resize",i.update,ke)}}var Le={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Se,data:{}},De={left:"right",right:"left",bottom:"top",top:"bottom"};function Ie(e){return e.replace(/left|right|bottom|top/g,(function(e){return De[e]}))}var Pe={start:"end",end:"start"};function Ne(e){return e.replace(/start|end/g,(function(e){return Pe[e]}))}function je(e){var t=R(e),i=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:i,scrollTop:n}}function Me(e){return ie(ae(e)).left+je(e).scrollLeft}function $e(e,t){var i=R(e),n=ae(e),s=i.visualViewport,r=n.clientWidth,o=n.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var c=te();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+Me(e),y:l}}function qe(e){var t,i=ae(e),n=je(e),s=null==(t=e.ownerDocument)?void 0:t.body,r=G(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=G(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+Me(e),l=-n.scrollTop;return"rtl"===re(s||i).direction&&(a+=G(i.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}function Fe(e){var t=re(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function He(e){return["html","body","#document"].indexOf(z(e))>=0?e.ownerDocument.body:V(e)&&Fe(e)?e:He(le(e))}function Be(e,t){var i;void 0===t&&(t=[]);var n=He(e),s=n===(null==(i=e.ownerDocument)?void 0:i.body),r=R(n),o=s?[r].concat(r.visualViewport||[],Fe(n)?n:[]):n,a=t.concat(o);return s?a:a.concat(Be(le(o)))}function ze(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Re(e,t){var i=ie(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}function We(e,t,i){return t===O?ze($e(e,i)):W(t)?Re(t,i):ze(qe(ae(e)))}function Ve(e){var t=Be(le(e)),i=["absolute","fixed"].indexOf(re(e).position)>=0,n=i&&V(e)?de(e):e;return W(n)?t.filter((function(e){return W(e)&&se(e,n)&&"body"!==z(e)})):[]}function Ke(e,t,i,n){var s="clippingParents"===t?Ve(e):[].concat(t),r=[].concat(s,[i]),o=r[0],a=r.reduce((function(t,i){var s=We(e,i,n);return t.top=G(s.top,t.top),t.right=J(s.right,t.right),t.bottom=J(s.bottom,t.bottom),t.left=G(s.left,t.left),t}),We(e,o,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Xe(e){var t,i=e.reference,n=e.element,s=e.placement,r=s?Y(s):null,o=s?Ae(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case b:t={x:a,y:i.y-n.height};break;case v:t={x:a,y:i.y+i.height};break;case y:t={x:i.x+i.width,y:l};break;case w:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=r?he(r):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case T:t[c]=t[c]-(i[u]/2-n[u]/2);break;case C:t[c]=t[c]+(i[u]/2-n[u]/2);break;default:}}return t}function Ue(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=void 0===n?e.placement:n,r=i.strategy,o=void 0===r?e.strategy:r,a=i.boundary,l=void 0===a?x:a,c=i.rootBoundary,u=void 0===c?O:c,d=i.elementContext,h=void 0===d?k: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,E)),w=h===k?S:k,A=e.rects.popper,T=e.elements[p?w:h],C=Ke(W(T)?T:T.contextElement||ae(e.elements.popper),l,u,o),L=ie(e.elements.reference),D=Xe({reference:L,element:A,strategy:"absolute",placement:s}),I=ze(Object.assign({},A,D)),P=h===k?I:L,N={top:C.top-P.top+_.top,bottom:P.bottom-C.bottom+_.bottom,left:C.left-P.left+_.left,right:P.right-C.right+_.right},j=e.modifiersData.offset;if(h===k&&j){var M=j[s];Object.keys(N).forEach((function(e){var t=[y,v].indexOf(e)>=0?1:-1,i=[b,v].indexOf(e)>=0?"y":"x";N[e]+=M[i]*t}))}return N}function Qe(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,r=i.rootBoundary,o=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?D:l,u=Ae(n),d=u?a?L:L.filter((function(e){return Ae(e)===u})):E,h=d.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=d);var f=h.reduce((function(t,i){return t[i]=Ue(e,{placement:i,boundary:s,rootBoundary:r,padding:o})[Y(i)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}function Ye(e){if(Y(e)===A)return[];var t=Ie(e);return[Ne(e),t,Ne(t)]}function Ge(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var s=i.mainAxis,r=void 0===s||s,o=i.altAxis,a=void 0===o||o,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=t.options.placement,_=Y(g),E=_===g,C=l||(E||!p?[Ie(g)]:Ye(g)),x=[g].concat(C).reduce((function(e,i){return e.concat(Y(i)===A?Qe(t,{placement:i,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)}),[]),O=t.rects.reference,k=t.rects.popper,S=new Map,L=!0,D=x[0],I=0;I<x.length;I++){var P=x[I],N=Y(P),j=Ae(P)===T,M=[b,v].indexOf(N)>=0,$=M?"width":"height",q=Ue(t,{placement:P,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),F=M?j?y:w:j?v:b;O[$]>k[$]&&(F=Ie(F));var H=Ie(F),B=[];if(r&&B.push(q[N]<=0),a&&B.push(q[F]<=0,q[H]<=0),B.every((function(e){return e}))){D=P,L=!1;break}S.set(P,B)}if(L)for(var z=p?3:1,R=function(e){var t=x.find((function(t){var i=S.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return D=t,"break"},W=z;W>0;W--){var V=R(W);if("break"===V)break}t.placement!==D&&(t.modifiersData[n]._skip=!0,t.placement=D,t.reset=!0)}}var Je={name:"flip",enabled:!0,phase:"main",fn:Ge,requiresIfExists:["offset"],data:{_skip:!1}};function Ze(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function et(e){return[b,y,v,w].some((function(t){return e[t]>=0}))}function tt(e){var t=e.state,i=e.name,n=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,o=Ue(t,{elementContext:"reference"}),a=Ue(t,{altBoundary:!0}),l=Ze(o,n),c=Ze(a,s,r),u=et(l),d=et(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var it={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tt};function nt(e,t,i){var n=Y(e),s=[w,b].indexOf(n)>=0?-1:1,r="function"===typeof i?i(Object.assign({},t,{placement:e})):i,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[w,y].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}function st(e){var t=e.state,i=e.options,n=e.name,s=i.offset,r=void 0===s?[0,0]:s,o=D.reduce((function(e,i){return e[i]=nt(i,t.rects,r),e}),{}),a=o[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=o}var rt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:st};function ot(e){var t=e.state,i=e.name;t.modifiersData[i]=Xe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var at={name:"popperOffsets",enabled:!0,phase:"read",fn:ot,data:{}};function lt(e){return"x"===e?"y":"x"}function ct(e){var t=e.state,i=e.options,n=e.name,s=i.mainAxis,r=void 0===s||s,o=i.altAxis,a=void 0!==o&&o,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=Ue(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),_=Y(t.placement),A=Ae(t.placement),E=!A,C=he(_),x=lt(C),O=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,L="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,D="number"===typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(O){if(r){var N,j="y"===C?b:w,M="y"===C?v:y,$="y"===C?"height":"width",q=O[C],F=q+g[j],H=q-g[M],B=f?-S[$]/2:0,z=A===T?k[$]:S[$],R=A===T?-S[$]:-k[$],W=t.elements.arrow,V=f&&W?ne(W):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:me(),X=K[j],U=K[M],Q=fe(0,k[$],V[$]),Z=E?k[$]/2-B-Q-X-D.mainAxis:z-Q-X-D.mainAxis,ee=E?-k[$]/2+B+Q+U+D.mainAxis:R+Q+U+D.mainAxis,te=t.elements.arrow&&de(t.elements.arrow),ie=te?"y"===C?te.clientTop||0:te.clientLeft||0:0,se=null!=(N=null==I?void 0:I[C])?N:0,re=q+Z-se-ie,oe=q+ee-se,ae=fe(f?J(F,re):F,q,f?G(H,oe):H);O[C]=ae,P[C]=ae-q}if(a){var le,ce="x"===C?b:w,ue="x"===C?v:y,ge=O[x],_e="y"===x?"height":"width",be=ge+g[ce],ve=ge-g[ue],ye=-1!==[b,w].indexOf(_),we=null!=(le=null==I?void 0:I[x])?le:0,Ee=ye?be:ge-k[_e]-S[_e]-we+D.altAxis,Te=ye?ge+k[_e]+S[_e]-we-D.altAxis:ve,Ce=f&&ye?pe(Ee,ge,Te):fe(f?Ee:be,ge,f?Te:ve);O[x]=Ce,P[x]=Ce-ge}t.modifiersData[n]=P}}var ut={name:"preventOverflow",enabled:!0,phase:"main",fn:ct,requiresIfExists:["offset"]};function dt(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ht(e){return e!==R(e)&&V(e)?dt(e):je(e)}function ft(e){var t=e.getBoundingClientRect(),i=Z(t.width)/e.offsetWidth||1,n=Z(t.height)/e.offsetHeight||1;return 1!==i||1!==n}function pt(e,t,i){void 0===i&&(i=!1);var n=V(t),s=V(t)&&ft(t),r=ae(t),o=ie(e,s,i),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!i)&&(("body"!==z(t)||Fe(r))&&(a=ht(t)),V(t)?(l=ie(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=Me(r))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function mt(e){var t=new Map,i=new Set,n=[];function s(e){i.add(e.name);var r=[].concat(e.requires||[],e.requiresIfExists||[]);r.forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&s(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||s(e)})),n}function gt(e){var t=mt(e);return B.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}function _t(e){var t;return function(){return t||(t=new Promise((function(i){Promise.resolve().then((function(){t=void 0,i(e())}))}))),t}}function bt(e){var t=e.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}var vt={placement:"bottom",modifiers:[],strategy:"absolute"};function yt(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function wt(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,s=t.defaultOptions,r=void 0===s?vt:s;return function(e,t,i){void 0===i&&(i=r);var s={placement:"bottom",orderedModifiers:[],options:Object.assign({},vt,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],a=!1,l={state:s,setOptions:function(i){var o="function"===typeof i?i(s.options):i;u(),s.options=Object.assign({},r,s.options,o),s.scrollParents={reference:W(e)?Be(e):e.contextElement?Be(e.contextElement):[],popper:Be(t)};var a=gt(bt([].concat(n,s.options.modifiers)));return s.orderedModifiers=a.filter((function(e){return e.enabled})),c(),l.update()},forceUpdate:function(){if(!a){var e=s.elements,t=e.reference,i=e.popper;if(yt(t,i)){s.rects={reference:pt(t,de(i),"fixed"===s.options.strategy),popper:ne(i)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var r=s.orderedModifiers[n],o=r.fn,c=r.options,u=void 0===c?{}:c,d=r.name;"function"===typeof o&&(s=o({state:s,options:u,name:d,instance:l})||s)}else s.reset=!1,n=-1}}},update:_t((function(){return new Promise((function(e){l.forceUpdate(),e(s)}))})),destroy:function(){u(),a=!0}};if(!yt(e,t))return l;function c(){s.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,r=e.effect;if("function"===typeof r){var a=r({state:s,name:t,instance:l,options:n}),c=function(){};o.push(a||c)}}))}function u(){o.forEach((function(e){return e()})),o=[]}return l.setOptions(i).then((function(e){!a&&i.onFirstUpdate&&i.onFirstUpdate(e)})),l}}var At=wt(),Et=[Le,at,Oe,Q,rt,Je,ut,we,it],Tt=wt({defaultModifiers:Et}),Ct=[Le,at,Oe,Q],xt=wt({defaultModifiers:Ct}); /*! * Bootstrap v5.3.2 (https://getbootstrap.com/) * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ const Ot=new Map,kt={set(e,t,i){Ot.has(e)||Ot.set(e,new Map);const n=Ot.get(e);n.has(t)||0===n.size?n.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get(e,t){return Ot.has(e)&&Ot.get(e).get(t)||null},remove(e,t){if(!Ot.has(e))return;const i=Ot.get(e);i.delete(t),0===i.size&&Ot.delete(e)}},St=1e6,Lt=1e3,Dt="transitionend",It=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>"#"+CSS.escape(t))),e),Pt=e=>null===e||void 0===e?""+e:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),Nt=e=>{do{e+=Math.floor(Math.random()*St)}while(document.getElementById(e));return e},jt=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const n=Number.parseFloat(t),s=Number.parseFloat(i);return n||s?(t=t.split(",")[0],i=i.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(i))*Lt):0},Mt=e=>{e.dispatchEvent(new Event(Dt))},$t=e=>!(!e||"object"!==typeof e)&&("undefined"!==typeof e.jquery&&(e=e[0]),"undefined"!==typeof e.nodeType),qt=e=>$t(e)?e.jquery?e[0]:e:"string"===typeof e&&e.length>0?document.querySelector(It(e)):null,Ft=e=>{if(!$t(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){const t=e.closest("summary");if(t&&t.parentNode!==i)return!1;if(null===t)return!1}return t},Ht=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||("undefined"!==typeof e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),Bt=e=>{if(!document.documentElement.attachShadow)return null;if("function"===typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?Bt(e.parentNode):null},zt=()=>{},Rt=e=>{e.offsetHeight},Wt=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Vt=[],Kt=e=>{"loading"===document.readyState?(Vt.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Vt)e()}),Vt.push(e)):e()},Xt=()=>"rtl"===document.documentElement.dir,Ut=e=>{Kt(()=>{const t=Wt();if(t){const i=e.NAME,n=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=n,e.jQueryInterface)}})},Qt=(e,t=[],i=e)=>"function"===typeof e?e(...t):i,Yt=(e,t,i=!0)=>{if(!i)return void Qt(e);const n=5,s=jt(t)+n;let r=!1;const o=({target:i})=>{i===t&&(r=!0,t.removeEventListener(Dt,o),Qt(e))};t.addEventListener(Dt,o),setTimeout(()=>{r||Mt(t)},s)},Gt=(e,t,i,n)=>{const s=e.length;let r=e.indexOf(t);return-1===r?!i&&n?e[s-1]:e[0]:(r+=i?1:-1,n&&(r=(r+s)%s),e[Math.max(0,Math.min(r,s-1))])},Jt=/[^.]*(?=\..*)\.|.*/,Zt=/\..*/,ei=/::\d+$/,ti={};let ii=1;const ni={mouseenter:"mouseover",mouseleave:"mouseout"},si=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 ri(e,t){return t&&`${t}::${ii++}`||e.uidEvent||ii++}function oi(e){const t=ri(e);return e.uidEvent=t,ti[t]=ti[t]||{},ti[t]}function ai(e,t){return function i(n){return gi(n,{delegateTarget:e}),i.oneOff&&mi.off(e,n.type,t),t.apply(e,[n])}}function li(e,t,i){return function n(s){const r=e.querySelectorAll(t);for(let{target:o}=s;o&&o!==this;o=o.parentNode)for(const a of r)if(a===o)return gi(s,{delegateTarget:o}),n.oneOff&&mi.off(e,s.type,t,i),i.apply(o,[s])}}function ci(e,t,i=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===i)}function ui(e,t,i){const n="string"===typeof t,s=n?i:t||i;let r=pi(e);return si.has(r)||(r=e),[n,s,r]}function di(e,t,i,n,s){if("string"!==typeof t||!e)return;let[r,o,a]=ui(t,i,n);if(t in ni){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};o=e(o)}const l=oi(e),c=l[a]||(l[a]={}),u=ci(c,o,r?i:null);if(u)return void(u.oneOff=u.oneOff&&s);const d=ri(o,t.replace(Jt,"")),h=r?li(e,i,o):ai(e,o);h.delegationSelector=r?i:null,h.callable=o,h.oneOff=s,h.uidEvent=d,c[d]=h,e.addEventListener(a,h,r)}function hi(e,t,i,n,s){const r=ci(t[i],n,s);r&&(e.removeEventListener(i,r,Boolean(s)),delete t[i][r.uidEvent])}function fi(e,t,i,n){const s=t[i]||{};for(const[r,o]of Object.entries(s))r.includes(n)&&hi(e,t,i,o.callable,o.delegationSelector)}function pi(e){return e=e.replace(Zt,""),ni[e]||e}const mi={on(e,t,i,n){di(e,t,i,n,!1)},one(e,t,i,n){di(e,t,i,n,!0)},off(e,t,i,n){if("string"!==typeof t||!e)return;const[s,r,o]=ui(t,i,n),a=o!==t,l=oi(e),c=l[o]||{},u=t.startsWith(".");if("undefined"===typeof r){if(u)for(const i of Object.keys(l))fi(e,l,i,t.slice(1));for(const[i,n]of Object.entries(c)){const s=i.replace(ei,"");a&&!t.includes(s)||hi(e,l,o,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;hi(e,l,o,r,s?i:null)}},trigger(e,t,i){if("string"!==typeof t||!e)return null;const n=Wt(),s=pi(t),r=t!==s;let o=null,a=!0,l=!0,c=!1;r&&n&&(o=n.Event(t,i),n(e).trigger(o),a=!o.isPropagationStopped(),l=!o.isImmediatePropagationStopped(),c=o.isDefaultPrevented());const u=gi(new Event(t,{bubbles:a,cancelable:!0}),i);return c&&u.preventDefault(),l&&e.dispatchEvent(u),u.defaultPrevented&&o&&o.preventDefault(),u}};function gi(e,t={}){for(const[n,s]of Object.entries(t))try{e[n]=s}catch(i){Object.defineProperty(e,n,{configurable:!0,get(){return s}})}return e}function _i(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!==typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function bi(e){return e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}const vi={setDataAttribute(e,t,i){e.setAttribute("data-bs-"+bi(t),i)},removeDataAttribute(e,t){e.removeAttribute("data-bs-"+bi(t))},getDataAttributes(e){if(!e)return{};const t={},i=Object.keys(e.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=_i(e.dataset[n])}return t},getDataAttribute(e,t){return _i(e.getAttribute("data-bs-"+bi(t)))}};class yi{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 i=$t(t)?vi.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"===typeof i?i:{},...$t(t)?vi.getDataAttributes(t):{},..."object"===typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[i,n]of Object.entries(t)){const t=e[i],s=$t(t)?"element":Pt(t);if(!new RegExp(n).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${s}" but expected type "${n}".`)}}}const wi="5.3.2";class Ai extends yi{constructor(e,t){super(),e=qt(e),e&&(this._element=e,this._config=this._getConfig(t),kt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){kt.remove(this._element,this.constructor.DATA_KEY),mi.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){Yt(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return kt.get(qt(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"===typeof t?t:null)}static get VERSION(){return wi}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 Ei=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?It(i.trim()):null}return t},Ti={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){const i=[];let n=e.parentNode.closest(t);while(n)i.push(n),n=n.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;while(i){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;while(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=>!Ht(e)&&Ft(e))},getSelectorFromElement(e){const t=Ei(e);return t&&Ti.findOne(t)?t:null},getElementFromSelector(e){const t=Ei(e);return t?Ti.findOne(t):null},getMultipleElementsFromSelector(e){const t=Ei(e);return t?Ti.find(t):[]}},Ci=(e,t="hide")=>{const i="click.dismiss"+e.EVENT_KEY,n=e.NAME;mi.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),Ht(this))return;const s=Ti.getElementFromSelector(this)||this.closest("."+n),r=e.getOrCreateInstance(s);r[t]()}))},xi="alert",Oi="bs.alert",ki="."+Oi,Si="close"+ki,Li="closed"+ki,Di="fade",Ii="show";class Pi extends Ai{static get NAME(){return xi}close(){const e=mi.trigger(this._element,Si);if(e.defaultPrevented)return;this._element.classList.remove(Ii);const t=this._element.classList.contains(Di);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),mi.trigger(this._element,Li),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=Pi.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)}}))}}Ci(Pi,"close"),Ut(Pi);const Ni="button",ji="bs.button",Mi="."+ji,$i=".data-api",qi="active",Fi='[data-bs-toggle="button"]',Hi=`click${Mi}${$i}`;class Bi extends Ai{static get NAME(){return Ni}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(qi))}static jQueryInterface(e){return this.each((function(){const t=Bi.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}mi.on(document,Hi,Fi,e=>{e.preventDefault();const t=e.target.closest(Fi),i=Bi.getOrCreateInstance(t);i.toggle()}),Ut(Bi);const zi="swipe",Ri=".bs.swipe",Wi="touchstart"+Ri,Vi="touchmove"+Ri,Ki="touchend"+Ri,Xi="pointerdown"+Ri,Ui="pointerup"+Ri,Qi="touch",Yi="pen",Gi="pointer-event",Ji=40,Zi={endCallback:null,leftCallback:null,rightCallback:null},en={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class tn extends yi{constructor(e,t){super(),this._element=e,e&&tn.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Zi}static get DefaultType(){return en}static get NAME(){return zi}dispose(){mi.off(this._element,Ri)}_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(),Qt(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<=Ji)return;const t=e/this._deltaX;this._deltaX=0,t&&Qt(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(mi.on(this._element,Xi,e=>this._start(e)),mi.on(this._element,Ui,e=>this._end(e)),this._element.classList.add(Gi)):(mi.on(this._element,Wi,e=>this._start(e)),mi.on(this._element,Vi,e=>this._move(e)),mi.on(this._element,Ki,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===Yi||e.pointerType===Qi)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const nn="carousel",sn="bs.carousel",rn="."+sn,on=".data-api",an="ArrowLeft",ln="ArrowRight",cn=500,un="next",dn="prev",hn="left",fn="right",pn="slide"+rn,mn="slid"+rn,gn="keydown"+rn,_n="mouseenter"+rn,bn="mouseleave"+rn,vn="dragstart"+rn,yn=`load${rn}${on}`,wn=`click${rn}${on}`,An="carousel",En="active",Tn="slide",Cn="carousel-item-end",xn="carousel-item-start",On="carousel-item-next",kn="carousel-item-prev",Sn=".active",Ln=".carousel-item",Dn=Sn+Ln,In=".carousel-item img",Pn=".carousel-indicators",Nn="[data-bs-slide], [data-bs-slide-to]",jn='[data-bs-ride="carousel"]',Mn={[an]:fn,[ln]:hn},$n={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},qn={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Fn extends Ai{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Ti.findOne(Pn,this._element),this._addEventListeners(),this._config.ride===An&&this.cycle()}static get Default(){return $n}static get DefaultType(){return qn}static get NAME(){return nn}next(){this._slide(un)}nextWhenVisible(){!document.hidden&&Ft(this._element)&&this.next()}prev(){this._slide(dn)}pause(){this._isSliding&&Mt(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?mi.one(this._element,mn,()=>this.cycle()):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void mi.one(this._element,mn,()=>this.to(e));const i=this._getItemIndex(this._getActive());if(i===e)return;const n=e>i?un:dn;this._slide(n,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&mi.on(this._element,gn,e=>this._keydown(e)),"hover"===this._config.pause&&(mi.on(this._element,_n,()=>this.pause()),mi.on(this._element,bn,()=>this._maybeEnableCycle())),this._config.touch&&tn.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const i of Ti.find(In,this._element))mi.on(i,vn,e=>e.preventDefault());const e=()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),cn+this._config.interval))},t={leftCallback:()=>this._slide(this._directionToOrder(hn)),rightCallback:()=>this._slide(this._directionToOrder(fn)),endCallback:e};this._swipeHelper=new tn(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=Mn[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=Ti.findOne(Sn,this._indicatorsElement);t.classList.remove(En),t.removeAttribute("aria-current");const i=Ti.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);i&&(i.classList.add(En),i.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 i=this._getActive(),n=e===un,s=t||Gt(this._getItems(),i,n,this._config.wrap);if(s===i)return;const r=this._getItemIndex(s),o=t=>mi.trigger(this._element,t,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:r}),a=o(pn);if(a.defaultPrevented)return;if(!i||!s)return;const l=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=s;const c=n?xn:Cn,u=n?On:kn;s.classList.add(u),Rt(s),i.classList.add(c),s.classList.add(c);const d=()=>{s.classList.remove(c,u),s.classList.add(En),i.classList.remove(En,u,c),this._isSliding=!1,o(mn)};this._queueCallback(d,i,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains(Tn)}_getActive(){return Ti.findOne(Dn,this._element)}_getItems(){return Ti.find(Ln,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Xt()?e===hn?dn:un:e===hn?un:dn}_orderToDirection(e){return Xt()?e===dn?hn:fn:e===dn?fn:hn}static jQueryInterface(e){return this.each((function(){const t=Fn.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)}))}}mi.on(document,wn,Nn,(function(e){const t=Ti.getElementFromSelector(this);if(!t||!t.classList.contains(An))return;e.preventDefault();const i=Fn.getOrCreateInstance(t),n=this.getAttribute("data-bs-slide-to");return n?(i.to(n),void i._maybeEnableCycle()):"next"===vi.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),mi.on(window,yn,()=>{const e=Ti.find(jn);for(const t of e)Fn.getOrCreateInstance(t)}),Ut(Fn);const Hn="collapse",Bn="bs.collapse",zn="."+Bn,Rn=".data-api",Wn="show"+zn,Vn="shown"+zn,Kn="hide"+zn,Xn="hidden"+zn,Un=`click${zn}${Rn}`,Qn="show",Yn="collapse",Gn="collapsing",Jn="collapsed",Zn=`:scope .${Yn} .${Yn}`,es="collapse-horizontal",ts="width",is="height",ns=".collapse.show, .collapse.collapsing",ss='[data-bs-toggle="collapse"]',rs={parent:null,toggle:!0},os={parent:"(null|element)",toggle:"boolean"};class as extends Ai{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const i=Ti.find(ss);for(const n of i){const e=Ti.getSelectorFromElement(n),t=Ti.find(e).filter(e=>e===this._element);null!==e&&t.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 rs}static get DefaultType(){return os}static get NAME(){return Hn}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(ns).filter(e=>e!==this._element).map(e=>as.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning)return;const t=mi.trigger(this._element,Wn);if(t.defaultPrevented)return;for(const o of e)o.hide();const i=this._getDimension();this._element.classList.remove(Yn),this._element.classList.add(Gn),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(Gn),this._element.classList.add(Yn,Qn),this._element.style[i]="",mi.trigger(this._element,Vn)},s=i[0].toUpperCase()+i.slice(1),r="scroll"+s;this._queueCallback(n,this._element,!0),this._element.style[i]=this._element[r]+"px"}hide(){if(this._isTransitioning||!this._isShown())return;const e=mi.trigger(this._element,Kn);if(e.defaultPrevented)return;const t=this._getDimension();this._element.style[t]=this._element.getBoundingClientRect()[t]+"px",Rt(this._element),this._element.classList.add(Gn),this._element.classList.remove(Yn,Qn);for(const n of this._triggerArray){const e=Ti.getElementFromSelector(n);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([n],!1)}this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(Gn),this._element.classList.add(Yn),mi.trigger(this._element,Xn)};this._element.style[t]="",this._queueCallback(i,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Qn)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=qt(e.parent),e}_getDimension(){return this._element.classList.contains(es)?ts:is}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(ss);for(const t of e){const e=Ti.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=Ti.find(Zn,this._config.parent);return Ti.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const i of e)i.classList.toggle(Jn,!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"===typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const i=as.getOrCreateInstance(this,t);if("string"===typeof e){if("undefined"===typeof i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}))}}mi.on(document,Un,ss,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const t of Ti.getMultipleElementsFromSelector(this))as.getOrCreateInstance(t,{toggle:!1}).toggle()})),Ut(as);const ls="dropdown",cs="bs.dropdown",us="."+cs,ds=".data-api",hs="Escape",fs="Tab",ps="ArrowUp",ms="ArrowDown",gs=2,_s="hide"+us,bs="hidden"+us,vs="show"+us,ys="shown"+us,ws=`click${us}${ds}`,As=`keydown${us}${ds}`,Es=`keyup${us}${ds}`,Ts="show",Cs="dropup",xs="dropend",Os="dropstart",ks="dropup-center",Ss="dropdown-center",Ls='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ds=`${Ls}.${Ts}`,Is=".dropdown-menu",Ps=".navbar",Ns=".navbar-nav",js=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Ms=Xt()?"top-end":"top-start",$s=Xt()?"top-start":"top-end",qs=Xt()?"bottom-end":"bottom-start",Fs=Xt()?"bottom-start":"bottom-end",Hs=Xt()?"left-start":"right-start",Bs=Xt()?"right-start":"left-start",zs="top",Rs="bottom",Ws={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Vs={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ks extends Ai{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=Ti.next(this._element,Is)[0]||Ti.prev(this._element,Is)[0]||Ti.findOne(Is,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Ws}static get DefaultType(){return Vs}static get NAME(){return ls}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Ht(this._element)||this._isShown())return;const e={relatedTarget:this._element},t=mi.trigger(this._element,vs,e);if(!t.defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Ns))for(const e of[].concat(...docume