@quandis/qbo4.ui 4.0.1-CI-20240507-201707 → 4.0.1-CI-20240507-231949
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/qbo/qbo-form-edit.d.ts +9 -0
- package/src/qbo/qbo-form-edit.js +55 -10
- package/src/qbo/qbo-form-edit.ts +37 -10
- package/wwwroot/js/qbo4.ui.js +56 -11
- package/wwwroot/js/qbo4.ui.min.js +12 -12
- package/wwwroot/js/qbo4.ui.min.js.map +1 -1
|
@@ -222,39 +222,39 @@
|
|
|
222
222
|
<span>${XT(t.UpdatedDate)}</span>
|
|
223
223
|
<br/>
|
|
224
224
|
<span>${t.UpdatedPerson}</span>
|
|
225
|
-
</div>`));let Hw=class extends Bt{constructor(){super(...arguments),this.buttonPrimaryClass="qbo-primary",this.data={},this.divButtonGroupClass="qbo-btn-group",this.divFormActionClass="qbo-form-actions",this.divSectionHeaderClass="qbo-header",this.editLabel="Edit",this.infoButtonClass="qbo-btn-light",this.infoIconClass="qbo-icon-info",this.infoTitle="Last Updated",this.popoverClass="qbo-float-end",this.spanEditClass="qbo-icon-edit",this.type="defaultLayout",this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){this.closest("*[apiendpoint]"),null==this.type&&(this.type="createdLayout");const t=qw.has(this.type)?qw.get(this.type)(this.data):null;return At`<slot>
|
|
225
|
+
</div>`));let Hw=class extends Bt{constructor(){super(...arguments),this.aDropdownClass="dropdown-item",this.buttonPrimaryClass="qbo-primary",this.buttonPrimaryDropdownClass="qbo-primary-dropdown",this.buttonType="button",this.data={},this.divButtonGroupClass="qbo-btn-group",this.divFormActionClass="qbo-form-actions",this.divSectionHeaderClass="qbo-header",this.dropdownToggle="dropdown",this.editLabel="Edit",this.helpIcon="qbo-icon-question",this.helpText="Help",this.historyIcon="qbo-icon-clock-history",this.historyText="History",this.infoButtonClass="qbo-btn-light",this.infoIconClass="qbo-icon-info",this.infoTitle="Last Updated",this.popoverClass="qbo-float-end",this.spanEditClass="qbo-icon-edit",this.ulDropdownClass="dropdown-menu",this.type="defaultLayout",this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){this.closest("*[apiendpoint]"),null==this.type&&(this.type="createdLayout");const t=qw.has(this.type)?qw.get(this.type)(this.data):null;return At`<slot>
|
|
226
226
|
<div class="${this.divSectionHeaderClass}">
|
|
227
227
|
<hr />
|
|
228
228
|
</div>
|
|
229
229
|
<div class="${this.divFormActionClass}">
|
|
230
230
|
<div class="${this.divButtonGroupClass}">
|
|
231
|
-
<button type="
|
|
231
|
+
<button type="${this.buttonType}" class="${this.buttonPrimaryClass}">
|
|
232
232
|
<span class="${this.spanEditClass}"> ${this.editLabel}</span>
|
|
233
233
|
</button>
|
|
234
|
-
<button type="
|
|
235
|
-
<ul class="
|
|
234
|
+
<button type="${this.buttonType}" class="${this.buttonPrimaryDropdownClass}" data-bs-toggle="${this.dropdownToggle}"></button>
|
|
235
|
+
<ul class="${this.ulDropdownClass}">
|
|
236
236
|
<li>
|
|
237
|
-
<a class="
|
|
238
|
-
<i class="
|
|
239
|
-
<span
|
|
237
|
+
<a class="${this.aDropdownClass}" style="cursor:pointer;" onclick="alert('Show History');">
|
|
238
|
+
<i class="${this.historyIcon}"></i>
|
|
239
|
+
<span>${this.historyText}</span>
|
|
240
240
|
</a>
|
|
241
241
|
</li>
|
|
242
242
|
<li>
|
|
243
|
-
<a class="
|
|
244
|
-
<i class="
|
|
245
|
-
<span
|
|
243
|
+
<a class="${this.aDropdownClass}" style="cursor:pointer;" onclick="alert('Show Help');">
|
|
244
|
+
<i class="${this.helpIcon}"></i>
|
|
245
|
+
<span>${this.helpText}</span>
|
|
246
246
|
</a>
|
|
247
247
|
</li>
|
|
248
248
|
</ul>
|
|
249
249
|
</div>
|
|
250
250
|
<qbo-popover class="${this.popoverClass}">
|
|
251
|
-
<button type="
|
|
251
|
+
<button type="${this.buttonType}" class="${this.infoButtonClass}" title="${this.infoTitle}">
|
|
252
252
|
<i class="${this.infoIconClass}"></i>
|
|
253
253
|
</button>
|
|
254
254
|
${t}
|
|
255
255
|
</qbo-popover>
|
|
256
256
|
</div>
|
|
257
|
-
</slot>`}};Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"buttonPrimaryClass",void 0),Nw([Jt({type:Object,attribute:!1}),zw("design:type",Object)],Hw.prototype,"data",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"divButtonGroupClass",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"divFormActionClass",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"divSectionHeaderClass",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"editLabel",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"infoButtonClass",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"infoIconClass",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"infoTitle",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"popoverClass",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"spanEditClass",void 0),Nw([Jt(),zw("design:type",Object)],Hw.prototype,"type",void 0),Nw([Jt({type:Boolean}),zw("design:type",Object)],Hw.prototype,"renderInHost",void 0),Hw=Nw([Kt("qbo-form-edit")],Hw);var Vw,Uw=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Fw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Bw=class extends Bt{static{Vw=this}static{this.formAssociated=!0}constructor(){super(),this.value=new FormData,this.template="",this.name="",this.data=null,this.templateNode=null,this.handleFormChange=t=>{const e=t.target;e.matches("input, select, textarea")&&e.name&&!e.assignedSlot&&(this.value.set(`${this.name}${e.name}`,e.value),this.logger.logTrace(`${this.name}${e.name} was set to ${e.value}`)),this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.augment=t=>{if(t.stopPropagation(),console.log(t),t instanceof CustomEvent&&t.detail.formData instanceof FormData)for(let[e,r]of t.detail.formData.entries())this.value.set(e,r),console.log(`Added ${e}=${r} to ${this.name}`);this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.internals=this.attachInternals(),this.logger=I.container.resolve(ee)}connectedCallback(){super.connectedCallback(),this.templateNode=document.getElementById(this.template),this.templateNode&&(this.appendChild(this.templateNode.content.cloneNode(!0)),this.innerHTML=nw(this.innerHTML,this.data)),this.shadowRoot?.addEventListener("change",this.handleFormChange),this.shadowRoot?.addEventListener("qbo-form-update",this.augment)}disconnectedCallback(){super.disconnectedCallback(),this.shadowRoot?.removeEventListener("change",this.handleFormChange),this.shadowRoot?.removeEventListener("qbo-form-update",this.augment)}updated(t){super.updated(t),this.establishFormData()}render(){return At`<slot></slot>`}establishFormData(){const t=this.shadowRoot?.querySelectorAll("input, select, textarea");if(!t||0===t?.length)return;const e=Array.from(t).filter((t=>!t.assignedSlot&&(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof Vw)&&t.name));e.forEach((t=>{const e=t;if(e instanceof HTMLSelectElement)this.value.set(`${this.name}${e.name}`,e.value);else if(e instanceof HTMLTextAreaElement)this.value.set(`${this.name}${e.name}`,e.value);else if(e instanceof Vw)for(let[t,r]of e.value.entries())this.value.set(`${this.name}${t}`,r);else e instanceof HTMLInputElement&&("checkbox"===e.type||"radio"===e.type?e.checked&&this.value.set(`${this.name}${e.name}`,e.value):this.value.set(`${this.name}${e.name}`,e.value))})),this.internals.setFormValue(this.value),this.logger.logTrace(`Set ${this.name} values to `,this.value)}};Uw([Jt({type:FormData}),Fw("design:type",FormData)],Bw.prototype,"value",void 0),Uw([Jt({type:String}),Fw("design:type",Object)],Bw.prototype,"template",void 0),Uw([Jt({type:String}),Fw("design:type",Object)],Bw.prototype,"name",void 0),Uw([Jt({type:Object}),Fw("design:type",Object)],Bw.prototype,"data",void 0),Bw=Vw=Uw([Kt("qbo-form-element"),Fw("design:paramtypes",[])],Bw);var Ww="top",Kw="bottom",Xw="right",Gw="left",Jw="auto",Qw=[Ww,Kw,Xw,Gw],Yw="start",Zw="end",t_="clippingParents",e_="viewport",r_="popper",o_="reference",n_=Qw.reduce((function(t,e){return t.concat([e+"-"+Yw,e+"-"+Zw])}),[]),i_=[].concat(Qw,[Jw]).reduce((function(t,e){return t.concat([e,e+"-"+Yw,e+"-"+Zw])}),[]),s_="beforeRead",a_="read",l_="afterRead",c_="beforeMain",d_="main",u_="afterMain",p_="beforeWrite",b_="write",f_="afterWrite",h_=[s_,a_,l_,c_,d_,u_,p_,b_,f_];function g_(t){return t?(t.nodeName||"").toLowerCase():null}function v_(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function m_(t){return t instanceof v_(t).Element||t instanceof Element}function y_(t){return t instanceof v_(t).HTMLElement||t instanceof HTMLElement}function w_(t){return"undefined"!=typeof ShadowRoot&&(t instanceof v_(t).ShadowRoot||t instanceof ShadowRoot)}const __={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var r=e.styles[t]||{},o=e.attributes[t]||{},n=e.elements[t];y_(n)&&g_(n)&&(Object.assign(n.style,r),Object.keys(o).forEach((function(t){var e=o[t];!1===e?n.removeAttribute(t):n.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach((function(t){var o=e.elements[t],n=e.attributes[t]||{},i=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:r[t]).reduce((function(t,e){return t[e]="",t}),{});y_(o)&&g_(o)&&(Object.assign(o.style,i),Object.keys(n).forEach((function(t){o.removeAttribute(t)})))}))}},requires:["computeStyles"]};function x_(t){return t.split("-")[0]}var C_=Math.max,k_=Math.min,S_=Math.round;function E_(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function T_(){return!/^((?!chrome|android).)*safari/i.test(E_())}function A_(t,e,r){void 0===e&&(e=!1),void 0===r&&(r=!1);var o=t.getBoundingClientRect(),n=1,i=1;e&&y_(t)&&(n=t.offsetWidth>0&&S_(o.width)/t.offsetWidth||1,i=t.offsetHeight>0&&S_(o.height)/t.offsetHeight||1);var s=(m_(t)?v_(t):window).visualViewport,a=!T_()&&r,l=(o.left+(a&&s?s.offsetLeft:0))/n,c=(o.top+(a&&s?s.offsetTop:0))/i,d=o.width/n,u=o.height/i;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function O_(t){var e=A_(t),r=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:o}}function $_(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&w_(r)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function I_(t){return v_(t).getComputedStyle(t)}function j_(t){return["table","td","th"].indexOf(g_(t))>=0}function R_(t){return((m_(t)?t.ownerDocument:t.document)||window.document).documentElement}function D_(t){return"html"===g_(t)?t:t.assignedSlot||t.parentNode||(w_(t)?t.host:null)||R_(t)}function L_(t){return y_(t)&&"fixed"!==I_(t).position?t.offsetParent:null}function P_(t){for(var e=v_(t),r=L_(t);r&&j_(r)&&"static"===I_(r).position;)r=L_(r);return r&&("html"===g_(r)||"body"===g_(r)&&"static"===I_(r).position)?e:r||function(t){var e=/firefox/i.test(E_());if(/Trident/i.test(E_())&&y_(t)&&"fixed"===I_(t).position)return null;var r=D_(t);for(w_(r)&&(r=r.host);y_(r)&&["html","body"].indexOf(g_(r))<0;){var o=I_(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(t)||e}function M_(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function N_(t,e,r){return C_(t,k_(e,r))}function z_(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function q_(t,e){return e.reduce((function(e,r){return e[r]=t,e}),{})}const H_={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,r=t.state,o=t.name,n=t.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=x_(r.placement),l=M_(a),c=[Gw,Xw].indexOf(a)>=0?"height":"width";if(i&&s){var d=function(t,e){return z_("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:q_(t,Qw))}(n.padding,r),u=O_(i),p="y"===l?Ww:Gw,b="y"===l?Kw:Xw,f=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],h=s[l]-r.rects.reference[l],g=P_(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,m=f/2-h/2,y=d[p],w=v-u[c]-d[b],_=v/2-u[c]/2+m,x=N_(y,_,w),C=l;r.modifiersData[o]=((e={})[C]=x,e.centerOffset=x-_,e)}},effect:function(t){var e=t.state,r=t.options.element,o=void 0===r?"[data-popper-arrow]":r;null!=o&&("string"!=typeof o||(o=e.elements.popper.querySelector(o)))&&$_(e.elements.popper,o)&&(e.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function V_(t){return t.split("-")[1]}var U_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function F_(t){var e,r=t.popper,o=t.popperRect,n=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,u=t.isFixed,p=s.x,b=void 0===p?0:p,f=s.y,h=void 0===f?0:f,g="function"==typeof d?d({x:b,y:h}):{x:b,y:h};b=g.x,h=g.y;var v=s.hasOwnProperty("x"),m=s.hasOwnProperty("y"),y=Gw,w=Ww,_=window;if(c){var x=P_(r),C="clientHeight",k="clientWidth";x===v_(r)&&"static"!==I_(x=R_(r)).position&&"absolute"===a&&(C="scrollHeight",k="scrollWidth"),(n===Ww||(n===Gw||n===Xw)&&i===Zw)&&(w=Kw,h-=(u&&x===_&&_.visualViewport?_.visualViewport.height:x[C])-o.height,h*=l?1:-1),n!==Gw&&(n!==Ww&&n!==Kw||i!==Zw)||(y=Xw,b-=(u&&x===_&&_.visualViewport?_.visualViewport.width:x[k])-o.width,b*=l?1:-1)}var S,E=Object.assign({position:a},c&&U_),T=!0===d?function(t,e){var r=t.x,o=t.y,n=e.devicePixelRatio||1;return{x:S_(r*n)/n||0,y:S_(o*n)/n||0}}({x:b,y:h},v_(r)):{x:b,y:h};return b=T.x,h=T.y,l?Object.assign({},E,((S={})[w]=m?"0":"",S[y]=v?"0":"",S.transform=(_.devicePixelRatio||1)<=1?"translate("+b+"px, "+h+"px)":"translate3d("+b+"px, "+h+"px, 0)",S)):Object.assign({},E,((e={})[w]=m?h+"px":"",e[y]=v?b+"px":"",e.transform="",e))}const B_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,r=t.options,o=r.gpuAcceleration,n=void 0===o||o,i=r.adaptive,s=void 0===i||i,a=r.roundOffsets,l=void 0===a||a,c={placement:x_(e.placement),variation:V_(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,F_(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,F_(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var W_={passive:!0};const K_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,r=t.instance,o=t.options,n=o.scroll,i=void 0===n||n,s=o.resize,a=void 0===s||s,l=v_(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach((function(t){t.addEventListener("scroll",r.update,W_)})),a&&l.addEventListener("resize",r.update,W_),function(){i&&c.forEach((function(t){t.removeEventListener("scroll",r.update,W_)})),a&&l.removeEventListener("resize",r.update,W_)}},data:{}};var X_={left:"right",right:"left",bottom:"top",top:"bottom"};function G_(t){return t.replace(/left|right|bottom|top/g,(function(t){return X_[t]}))}var J_={start:"end",end:"start"};function Q_(t){return t.replace(/start|end/g,(function(t){return J_[t]}))}function Y_(t){var e=v_(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Z_(t){return A_(R_(t)).left+Y_(t).scrollLeft}function tx(t){var e=I_(t),r=e.overflow,o=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function ex(t){return["html","body","#document"].indexOf(g_(t))>=0?t.ownerDocument.body:y_(t)&&tx(t)?t:ex(D_(t))}function rx(t,e){var r;void 0===e&&(e=[]);var o=ex(t),n=o===(null==(r=t.ownerDocument)?void 0:r.body),i=v_(o),s=n?[i].concat(i.visualViewport||[],tx(o)?o:[]):o,a=e.concat(s);return n?a:a.concat(rx(D_(s)))}function ox(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function nx(t,e,r){return e===e_?ox(function(t,e){var r=v_(t),o=R_(t),n=r.visualViewport,i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(n){i=n.width,s=n.height;var c=T_();(c||!c&&"fixed"===e)&&(a=n.offsetLeft,l=n.offsetTop)}return{width:i,height:s,x:a+Z_(t),y:l}}(t,r)):m_(e)?function(t,e){var r=A_(t,!1,"fixed"===e);return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}(e,r):ox(function(t){var e,r=R_(t),o=Y_(t),n=null==(e=t.ownerDocument)?void 0:e.body,i=C_(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=C_(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-o.scrollLeft+Z_(t),l=-o.scrollTop;return"rtl"===I_(n||r).direction&&(a+=C_(r.clientWidth,n?n.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(R_(t)))}function ix(t){var e,r=t.reference,o=t.element,n=t.placement,i=n?x_(n):null,s=n?V_(n):null,a=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2;switch(i){case Ww:e={x:a,y:r.y-o.height};break;case Kw:e={x:a,y:r.y+r.height};break;case Xw:e={x:r.x+r.width,y:l};break;case Gw:e={x:r.x-o.width,y:l};break;default:e={x:r.x,y:r.y}}var c=i?M_(i):null;if(null!=c){var d="y"===c?"height":"width";switch(s){case Yw:e[c]=e[c]-(r[d]/2-o[d]/2);break;case Zw:e[c]=e[c]+(r[d]/2-o[d]/2)}}return e}function sx(t,e){void 0===e&&(e={});var r=e,o=r.placement,n=void 0===o?t.placement:o,i=r.strategy,s=void 0===i?t.strategy:i,a=r.boundary,l=void 0===a?t_:a,c=r.rootBoundary,d=void 0===c?e_:c,u=r.elementContext,p=void 0===u?r_:u,b=r.altBoundary,f=void 0!==b&&b,h=r.padding,g=void 0===h?0:h,v=z_("number"!=typeof g?g:q_(g,Qw)),m=p===r_?o_:r_,y=t.rects.popper,w=t.elements[f?m:p],_=function(t,e,r,o){var n="clippingParents"===e?function(t){var e=rx(D_(t)),r=["absolute","fixed"].indexOf(I_(t).position)>=0&&y_(t)?P_(t):t;return m_(r)?e.filter((function(t){return m_(t)&&$_(t,r)&&"body"!==g_(t)})):[]}(t):[].concat(e),i=[].concat(n,[r]),s=i[0],a=i.reduce((function(e,r){var n=nx(t,r,o);return e.top=C_(n.top,e.top),e.right=k_(n.right,e.right),e.bottom=k_(n.bottom,e.bottom),e.left=C_(n.left,e.left),e}),nx(t,s,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(m_(w)?w:w.contextElement||R_(t.elements.popper),l,d,s),x=A_(t.elements.reference),C=ix({reference:x,element:y,strategy:"absolute",placement:n}),k=ox(Object.assign({},y,C)),S=p===r_?k:x,E={top:_.top-S.top+v.top,bottom:S.bottom-_.bottom+v.bottom,left:_.left-S.left+v.left,right:S.right-_.right+v.right},T=t.modifiersData.offset;if(p===r_&&T){var A=T[n];Object.keys(E).forEach((function(t){var e=[Xw,Kw].indexOf(t)>=0?1:-1,r=[Ww,Kw].indexOf(t)>=0?"y":"x";E[t]+=A[r]*e}))}return E}const ax={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var n=r.mainAxis,i=void 0===n||n,s=r.altAxis,a=void 0===s||s,l=r.fallbackPlacements,c=r.padding,d=r.boundary,u=r.rootBoundary,p=r.altBoundary,b=r.flipVariations,f=void 0===b||b,h=r.allowedAutoPlacements,g=e.options.placement,v=x_(g),m=l||(v!==g&&f?function(t){if(x_(t)===Jw)return[];var e=G_(t);return[Q_(t),e,Q_(e)]}(g):[G_(g)]),y=[g].concat(m).reduce((function(t,r){return t.concat(x_(r)===Jw?function(t,e){void 0===e&&(e={});var r=e,o=r.placement,n=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?i_:l,d=V_(o),u=d?a?n_:n_.filter((function(t){return V_(t)===d})):Qw,p=u.filter((function(t){return c.indexOf(t)>=0}));0===p.length&&(p=u);var b=p.reduce((function(e,r){return e[r]=sx(t,{placement:r,boundary:n,rootBoundary:i,padding:s})[x_(r)],e}),{});return Object.keys(b).sort((function(t,e){return b[t]-b[e]}))}(e,{placement:r,boundary:d,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:h}):r)}),[]),w=e.rects.reference,_=e.rects.popper,x=new Map,C=!0,k=y[0],S=0;S<y.length;S++){var E=y[S],T=x_(E),A=V_(E)===Yw,O=[Ww,Kw].indexOf(T)>=0,$=O?"width":"height",I=sx(e,{placement:E,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),j=O?A?Xw:Gw:A?Kw:Ww;w[$]>_[$]&&(j=G_(j));var R=G_(j),D=[];if(i&&D.push(I[T]<=0),a&&D.push(I[j]<=0,I[R]<=0),D.every((function(t){return t}))){k=E,C=!1;break}x.set(E,D)}if(C)for(var L=function(t){var e=y.find((function(e){var r=x.get(e);if(r)return r.slice(0,t).every((function(t){return t}))}));if(e)return k=e,"break"},P=f?3:1;P>0&&"break"!==L(P);P--);e.placement!==k&&(e.modifiersData[o]._skip=!0,e.placement=k,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function lx(t,e,r){return void 0===r&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function cx(t){return[Ww,Xw,Kw,Gw].some((function(e){return t[e]>=0}))}const dx={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,r=t.name,o=e.rects.reference,n=e.rects.popper,i=e.modifiersData.preventOverflow,s=sx(e,{elementContext:"reference"}),a=sx(e,{altBoundary:!0}),l=lx(s,o),c=lx(a,n,i),d=cx(l),u=cx(c);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},ux={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,r=t.options,o=t.name,n=r.offset,i=void 0===n?[0,0]:n,s=i_.reduce((function(t,r){return t[r]=function(t,e,r){var o=x_(t),n=[Gw,Ww].indexOf(o)>=0?-1:1,i="function"==typeof r?r(Object.assign({},e,{placement:t})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*n,[Gw,Xw].indexOf(o)>=0?{x:a,y:s}:{x:s,y:a}}(r,e.rects,i),t}),{}),a=s[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=s}},px={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,r=t.name;e.modifiersData[r]=ix({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},bx={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,o=t.name,n=r.mainAxis,i=void 0===n||n,s=r.altAxis,a=void 0!==s&&s,l=r.boundary,c=r.rootBoundary,d=r.altBoundary,u=r.padding,p=r.tether,b=void 0===p||p,f=r.tetherOffset,h=void 0===f?0:f,g=sx(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=x_(e.placement),m=V_(e.placement),y=!m,w=M_(v),_="x"===w?"y":"x",x=e.modifiersData.popperOffsets,C=e.rects.reference,k=e.rects.popper,S="function"==typeof h?h(Object.assign({},e.rects,{placement:e.placement})):h,E="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(x){if(i){var O,$="y"===w?Ww:Gw,I="y"===w?Kw:Xw,j="y"===w?"height":"width",R=x[w],D=R+g[$],L=R-g[I],P=b?-k[j]/2:0,M=m===Yw?C[j]:k[j],N=m===Yw?-k[j]:-C[j],z=e.elements.arrow,q=b&&z?O_(z):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=H[$],U=H[I],F=N_(0,C[j],q[j]),B=y?C[j]/2-P-F-V-E.mainAxis:M-F-V-E.mainAxis,W=y?-C[j]/2+P+F+U+E.mainAxis:N+F+U+E.mainAxis,K=e.elements.arrow&&P_(e.elements.arrow),X=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,G=null!=(O=null==T?void 0:T[w])?O:0,J=R+W-G,Q=N_(b?k_(D,R+B-G-X):D,R,b?C_(L,J):L);x[w]=Q,A[w]=Q-R}if(a){var Y,Z="x"===w?Ww:Gw,tt="x"===w?Kw:Xw,et=x[_],rt="y"===_?"height":"width",ot=et+g[Z],nt=et-g[tt],it=-1!==[Ww,Gw].indexOf(v),st=null!=(Y=null==T?void 0:T[_])?Y:0,at=it?ot:et-C[rt]-k[rt]-st+E.altAxis,lt=it?et+C[rt]+k[rt]-st-E.altAxis:nt,ct=b&&it?function(t,e,r){var o=N_(t,e,r);return o>r?r:o}(at,et,lt):N_(b?at:ot,et,b?lt:nt);x[_]=ct,A[_]=ct-et}e.modifiersData[o]=A}},requiresIfExists:["offset"]};function fx(t,e,r){void 0===r&&(r=!1);var o,n,i=y_(e),s=y_(e)&&function(t){var e=t.getBoundingClientRect(),r=S_(e.width)/t.offsetWidth||1,o=S_(e.height)/t.offsetHeight||1;return 1!==r||1!==o}(e),a=R_(e),l=A_(t,s,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!r)&&(("body"!==g_(e)||tx(a))&&(c=(o=e)!==v_(o)&&y_(o)?{scrollLeft:(n=o).scrollLeft,scrollTop:n.scrollTop}:Y_(o)),y_(e)?((d=A_(e,!0)).x+=e.clientLeft,d.y+=e.clientTop):a&&(d.x=Z_(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function hx(t){var e=new Map,r=new Set,o=[];function n(t){r.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!r.has(t)){var o=e.get(t);o&&n(o)}})),o.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){r.has(t.name)||n(t)})),o}var gx={placement:"bottom",modifiers:[],strategy:"absolute"};function vx(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function mx(t){void 0===t&&(t={});var e=t,r=e.defaultModifiers,o=void 0===r?[]:r,n=e.defaultOptions,i=void 0===n?gx:n;return function(t,e,r){void 0===r&&(r=i);var n,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},gx,i),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(r){var n="function"==typeof r?r(a.options):r;u(),a.options=Object.assign({},i,a.options,n),a.scrollParents={reference:m_(t)?rx(t):t.contextElement?rx(t.contextElement):[],popper:rx(e)};var s,c,p=function(t){var e=hx(t);return h_.reduce((function(t,r){return t.concat(e.filter((function(t){return t.phase===r})))}),[])}((s=[].concat(o,a.options.modifiers),c=s.reduce((function(t,e){var r=t[e.name];return t[e.name]=r?Object.assign({},r,e,{options:Object.assign({},r.options,e.options),data:Object.assign({},r.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return a.orderedModifiers=p.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,r=t.options,o=void 0===r?{}:r,n=t.effect;if("function"==typeof n){var i=n({state:a,name:e,instance:d,options:o});l.push(i||function(){})}})),d.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,r=t.popper;if(vx(e,r)){a.rects={reference:fx(e,P_(r),"fixed"===a.options.strategy),popper:O_(r)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var o=0;o<a.orderedModifiers.length;o++)if(!0!==a.reset){var n=a.orderedModifiers[o],i=n.fn,s=n.options,l=void 0===s?{}:s,u=n.name;"function"==typeof i&&(a=i({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,o=-1}}},update:(n=function(){return new Promise((function(t){d.forceUpdate(),t(a)}))},function(){return s||(s=new Promise((function(t){Promise.resolve().then((function(){s=void 0,t(n())}))}))),s}),destroy:function(){u(),c=!0}};if(!vx(t,e))return d;function u(){l.forEach((function(t){return t()})),l=[]}return d.setOptions(r).then((function(t){!c&&r.onFirstUpdate&&r.onFirstUpdate(t)})),d}}var yx=mx(),wx=mx({defaultModifiers:[K_,px,B_,__,ux,ax,bx,H_,dx]}),_x=mx({defaultModifiers:[K_,px,B_,__]});const xx=new Map,Cx={set(t,e,r){xx.has(t)||xx.set(t,new Map);const o=xx.get(t);o.has(e)||0===o.size?o.set(e,r):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`)},get:(t,e)=>xx.has(t)&&xx.get(t).get(e)||null,remove(t,e){if(!xx.has(t))return;const r=xx.get(t);r.delete(e),0===r.size&&xx.delete(t)}},kx="transitionend",Sx=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),Ex=t=>{t.dispatchEvent(new Event(kx))},Tx=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),Ax=t=>Tx(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(Sx(t)):null,Ox=t=>{if(!Tx(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),r=t.closest("details:not([open])");if(!r)return e;if(r!==t){const e=t.closest("summary");if(e&&e.parentNode!==r)return!1;if(null===e)return!1}return e},$x=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),Ix=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?Ix(t.parentNode):null},jx=()=>{},Rx=t=>{t.offsetHeight},Dx=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Lx=[],Px=()=>"rtl"===document.documentElement.dir,Mx=t=>{var e;e=()=>{const e=Dx();if(e){const r=t.NAME,o=e.fn[r];e.fn[r]=t.jQueryInterface,e.fn[r].Constructor=t,e.fn[r].noConflict=()=>(e.fn[r]=o,t.jQueryInterface)}},"loading"===document.readyState?(Lx.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of Lx)t()})),Lx.push(e)):e()},Nx=(t,e=[],r=t)=>"function"==typeof t?t(...e):r,zx=(t,e,r=!0)=>{if(!r)return void Nx(t);const o=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:r}=window.getComputedStyle(t);const o=Number.parseFloat(e),n=Number.parseFloat(r);return o||n?(e=e.split(",")[0],r=r.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(r))):0})(e)+5;let n=!1;const i=({target:r})=>{r===e&&(n=!0,e.removeEventListener(kx,i),Nx(t))};e.addEventListener(kx,i),setTimeout((()=>{n||Ex(e)}),o)},qx=(t,e,r,o)=>{const n=t.length;let i=t.indexOf(e);return-1===i?!r&&o?t[n-1]:t[0]:(i+=r?1:-1,o&&(i=(i+n)%n),t[Math.max(0,Math.min(i,n-1))])},Hx=/[^.]*(?=\..*)\.|.*/,Vx=/\..*/,Ux=/::\d+$/,Fx={};let Bx=1;const Wx={mouseenter:"mouseover",mouseleave:"mouseout"},Kx=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 Xx(t,e){return e&&`${e}::${Bx++}`||t.uidEvent||Bx++}function Gx(t){const e=Xx(t);return t.uidEvent=e,Fx[e]=Fx[e]||{},Fx[e]}function Jx(t,e,r=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===r))}function Qx(t,e,r){const o="string"==typeof e,n=o?r:e||r;let i=eC(t);return Kx.has(i)||(i=t),[o,n,i]}function Yx(t,e,r,o,n){if("string"!=typeof e||!t)return;let[i,s,a]=Qx(e,r,o);if(e in Wx){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};s=t(s)}const l=Gx(t),c=l[a]||(l[a]={}),d=Jx(c,s,i?r:null);if(d)return void(d.oneOff=d.oneOff&&n);const u=Xx(s,e.replace(Hx,"")),p=i?function(t,e,r){return function o(n){const i=t.querySelectorAll(e);for(let{target:s}=n;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return oC(n,{delegateTarget:s}),o.oneOff&&rC.off(t,n.type,e,r),r.apply(s,[n])}}(t,r,s):function(t,e){return function r(o){return oC(o,{delegateTarget:t}),r.oneOff&&rC.off(t,o.type,e),e.apply(t,[o])}}(t,s);p.delegationSelector=i?r:null,p.callable=s,p.oneOff=n,p.uidEvent=u,c[u]=p,t.addEventListener(a,p,i)}function Zx(t,e,r,o,n){const i=Jx(e[r],o,n);i&&(t.removeEventListener(r,i,Boolean(n)),delete e[r][i.uidEvent])}function tC(t,e,r,o){const n=e[r]||{};for(const[i,s]of Object.entries(n))i.includes(o)&&Zx(t,e,r,s.callable,s.delegationSelector)}function eC(t){return t=t.replace(Vx,""),Wx[t]||t}const rC={on(t,e,r,o){Yx(t,e,r,o,!1)},one(t,e,r,o){Yx(t,e,r,o,!0)},off(t,e,r,o){if("string"!=typeof e||!t)return;const[n,i,s]=Qx(e,r,o),a=s!==e,l=Gx(t),c=l[s]||{},d=e.startsWith(".");if(void 0===i){if(d)for(const r of Object.keys(l))tC(t,l,r,e.slice(1));for(const[r,o]of Object.entries(c)){const n=r.replace(Ux,"");a&&!e.includes(n)||Zx(t,l,s,o.callable,o.delegationSelector)}}else{if(!Object.keys(c).length)return;Zx(t,l,s,i,n?r:null)}},trigger(t,e,r){if("string"!=typeof e||!t)return null;const o=Dx();let n=null,i=!0,s=!0,a=!1;e!==eC(e)&&o&&(n=o.Event(e,r),o(t).trigger(n),i=!n.isPropagationStopped(),s=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());const l=oC(new Event(e,{bubbles:i,cancelable:!0}),r);return a&&l.preventDefault(),s&&t.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function oC(t,e={}){for(const[r,o]of Object.entries(e))try{t[r]=o}catch(e){Object.defineProperty(t,r,{configurable:!0,get:()=>o})}return t}function nC(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function iC(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const sC={setDataAttribute(t,e,r){t.setAttribute(`data-bs-${iC(e)}`,r)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${iC(e)}`)},getDataAttributes(t){if(!t)return{};const e={},r=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const o of r){let r=o.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),e[r]=nC(t.dataset[o])}return e},getDataAttribute:(t,e)=>nC(t.getAttribute(`data-bs-${iC(e)}`))};class aC{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const r=Tx(e)?sC.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof r?r:{},...Tx(e)?sC.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[o,n]of Object.entries(e)){const e=t[o],i=Tx(e)?"element":null==(r=e)?`${r}`:Object.prototype.toString.call(r).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(i))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${o}" provided type "${i}" but expected type "${n}".`)}var r}}class lC extends aC{constructor(t,e){super(),(t=Ax(t))&&(this._element=t,this._config=this._getConfig(e),Cx.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Cx.remove(this._element,this.constructor.DATA_KEY),rC.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,r=!0){zx(t,e,r)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Cx.get(Ax(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const cC=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let r=t.getAttribute("href");if(!r||!r.includes("#")&&!r.startsWith("."))return null;r.includes("#")&&!r.startsWith("#")&&(r=`#${r.split("#")[1]}`),e=r&&"#"!==r?r.trim():null}return e?e.split(",").map((t=>Sx(t))).join(","):null},dC={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const r=[];let o=t.parentNode.closest(e);for(;o;)r.push(o),o=o.parentNode.closest(e);return r},prev(t,e){let r=t.previousElementSibling;for(;r;){if(r.matches(e))return[r];r=r.previousElementSibling}return[]},next(t,e){let r=t.nextElementSibling;for(;r;){if(r.matches(e))return[r];r=r.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!$x(t)&&Ox(t)))},getSelectorFromElement(t){const e=cC(t);return e&&dC.findOne(e)?e:null},getElementFromSelector(t){const e=cC(t);return e?dC.findOne(e):null},getMultipleElementsFromSelector(t){const e=cC(t);return e?dC.find(e):[]}},uC=(t,e="hide")=>{const r=`click.dismiss${t.EVENT_KEY}`,o=t.NAME;rC.on(document,r,`[data-bs-dismiss="${o}"]`,(function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),$x(this))return;const n=dC.getElementFromSelector(this)||this.closest(`.${o}`);t.getOrCreateInstance(n)[e]()}))},pC=".bs.alert",bC=`close${pC}`,fC=`closed${pC}`;class hC extends lC{static get NAME(){return"alert"}close(){if(rC.trigger(this._element,bC).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),rC.trigger(this._element,fC),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=hC.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}uC(hC,"close"),Mx(hC);const gC='[data-bs-toggle="button"]';class vC extends lC{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=vC.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}rC.on(document,"click.bs.button.data-api",gC,(t=>{t.preventDefault();const e=t.target.closest(gC);vC.getOrCreateInstance(e).toggle()})),Mx(vC);const mC=".bs.swipe",yC=`touchstart${mC}`,wC=`touchmove${mC}`,_C=`touchend${mC}`,xC=`pointerdown${mC}`,CC=`pointerup${mC}`,kC={endCallback:null,leftCallback:null,rightCallback:null},SC={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class EC extends aC{constructor(t,e){super(),this._element=t,t&&EC.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return kC}static get DefaultType(){return SC}static get NAME(){return"swipe"}dispose(){rC.off(this._element,mC)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),Nx(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&Nx(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(rC.on(this._element,xC,(t=>this._start(t))),rC.on(this._element,CC,(t=>this._end(t))),this._element.classList.add("pointer-event")):(rC.on(this._element,yC,(t=>this._start(t))),rC.on(this._element,wC,(t=>this._move(t))),rC.on(this._element,_C,(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const TC=".bs.carousel",AC=".data-api",OC="ArrowLeft",$C="ArrowRight",IC="next",jC="prev",RC="left",DC="right",LC=`slide${TC}`,PC=`slid${TC}`,MC=`keydown${TC}`,NC=`mouseenter${TC}`,zC=`mouseleave${TC}`,qC=`dragstart${TC}`,HC=`load${TC}${AC}`,VC=`click${TC}${AC}`,UC="carousel",FC="active",BC=".active",WC=".carousel-item",KC=BC+WC,XC={[OC]:DC,[$C]:RC},GC={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},JC={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class QC extends lC{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=dC.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===UC&&this.cycle()}static get Default(){return GC}static get DefaultType(){return JC}static get NAME(){return"carousel"}next(){this._slide(IC)}nextWhenVisible(){!document.hidden&&Ox(this._element)&&this.next()}prev(){this._slide(jC)}pause(){this._isSliding&&Ex(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?rC.one(this._element,PC,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void rC.one(this._element,PC,(()=>this.to(t)));const r=this._getItemIndex(this._getActive());if(r===t)return;const o=t>r?IC:jC;this._slide(o,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&rC.on(this._element,MC,(t=>this._keydown(t))),"hover"===this._config.pause&&(rC.on(this._element,NC,(()=>this.pause())),rC.on(this._element,zC,(()=>this._maybeEnableCycle()))),this._config.touch&&EC.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of dC.find(".carousel-item img",this._element))rC.on(t,qC,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(RC)),rightCallback:()=>this._slide(this._directionToOrder(DC)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new EC(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=XC[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=dC.findOne(BC,this._indicatorsElement);e.classList.remove(FC),e.removeAttribute("aria-current");const r=dC.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);r&&(r.classList.add(FC),r.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const r=this._getActive(),o=t===IC,n=e||qx(this._getItems(),r,o,this._config.wrap);if(n===r)return;const i=this._getItemIndex(n),s=e=>rC.trigger(this._element,e,{relatedTarget:n,direction:this._orderToDirection(t),from:this._getItemIndex(r),to:i});if(s(LC).defaultPrevented)return;if(!r||!n)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(i),this._activeElement=n;const l=o?"carousel-item-start":"carousel-item-end",c=o?"carousel-item-next":"carousel-item-prev";n.classList.add(c),Rx(n),r.classList.add(l),n.classList.add(l),this._queueCallback((()=>{n.classList.remove(l,c),n.classList.add(FC),r.classList.remove(FC,c,l),this._isSliding=!1,s(PC)}),r,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return dC.findOne(KC,this._element)}_getItems(){return dC.find(WC,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Px()?t===RC?jC:IC:t===RC?IC:jC}_orderToDirection(t){return Px()?t===jC?RC:DC:t===jC?DC:RC}static jQueryInterface(t){return this.each((function(){const e=QC.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}rC.on(document,VC,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=dC.getElementFromSelector(this);if(!e||!e.classList.contains(UC))return;t.preventDefault();const r=QC.getOrCreateInstance(e),o=this.getAttribute("data-bs-slide-to");return o?(r.to(o),void r._maybeEnableCycle()):"next"===sC.getDataAttribute(this,"slide")?(r.next(),void r._maybeEnableCycle()):(r.prev(),void r._maybeEnableCycle())})),rC.on(window,HC,(()=>{const t=dC.find('[data-bs-ride="carousel"]');for(const e of t)QC.getOrCreateInstance(e)})),Mx(QC);const YC=".bs.collapse",ZC=`show${YC}`,tk=`shown${YC}`,ek=`hide${YC}`,rk=`hidden${YC}`,ok=`click${YC}.data-api`,nk="show",ik="collapse",sk="collapsing",ak=`:scope .${ik} .${ik}`,lk='[data-bs-toggle="collapse"]',ck={parent:null,toggle:!0},dk={parent:"(null|element)",toggle:"boolean"};class uk extends lC{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const r=dC.find(lk);for(const t of r){const e=dC.getSelectorFromElement(t),r=dC.find(e).filter((t=>t===this._element));null!==e&&r.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ck}static get DefaultType(){return dk}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>uk.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(rC.trigger(this._element,ZC).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(ik),this._element.classList.add(sk),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(sk),this._element.classList.add(ik,nk),this._element.style[e]="",rC.trigger(this._element,tk)}),this._element,!0),this._element.style[e]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(rC.trigger(this._element,ek).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Rx(this._element),this._element.classList.add(sk),this._element.classList.remove(ik,nk);for(const t of this._triggerArray){const e=dC.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(sk),this._element.classList.add(ik),rC.trigger(this._element,rk)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(nk)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=Ax(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(lk);for(const e of t){const t=dC.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=dC.find(ak,this._config.parent);return dC.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const r of t)r.classList.toggle("collapsed",!e),r.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const r=uk.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===r[t])throw new TypeError(`No method named "${t}"`);r[t]()}}))}}rC.on(document,ok,lk,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of dC.getMultipleElementsFromSelector(this))uk.getOrCreateInstance(t,{toggle:!1}).toggle()})),Mx(uk);const pk="dropdown",bk=".bs.dropdown",fk=".data-api",hk="ArrowUp",gk="ArrowDown",vk=`hide${bk}`,mk=`hidden${bk}`,yk=`show${bk}`,wk=`shown${bk}`,_k=`click${bk}${fk}`,xk=`keydown${bk}${fk}`,Ck=`keyup${bk}${fk}`,kk="show",Sk='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ek=`${Sk}.${kk}`,Tk=".dropdown-menu",Ak=Px()?"top-end":"top-start",Ok=Px()?"top-start":"top-end",$k=Px()?"bottom-end":"bottom-start",Ik=Px()?"bottom-start":"bottom-end",jk=Px()?"left-start":"right-start",Rk=Px()?"right-start":"left-start",Dk={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Lk={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Pk extends lC{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=dC.next(this._element,Tk)[0]||dC.prev(this._element,Tk)[0]||dC.findOne(Tk,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Dk}static get DefaultType(){return Lk}static get NAME(){return pk}toggle(){return this._isShown()?this.hide():this.show()}show(){if($x(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!rC.trigger(this._element,yk,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))rC.on(t,"mouseover",jx);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(kk),this._element.classList.add(kk),rC.trigger(this._element,wk,t)}}hide(){if($x(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!rC.trigger(this._element,vk,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))rC.off(t,"mouseover",jx);this._popper&&this._popper.destroy(),this._menu.classList.remove(kk),this._element.classList.remove(kk),this._element.setAttribute("aria-expanded","false"),sC.removeDataAttribute(this._menu,"popper"),rC.trigger(this._element,mk,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!Tx(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${pk.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===e)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:Tx(this._config.reference)?t=Ax(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const r=this._getPopperConfig();this._popper=wx(t,this._menu,r)}_isShown(){return this._menu.classList.contains(kk)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return jk;if(t.classList.contains("dropstart"))return Rk;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Ok:Ak:e?Ik:$k}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(sC.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Nx(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const r=dC.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>Ox(t)));r.length&&qx(r,e,t===gk,!r.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=Pk.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=dC.find(Ek);for(const r of e){const e=Pk.getInstance(r);if(!e||!1===e._config.autoClose)continue;const o=t.composedPath(),n=o.includes(e._menu);if(o.includes(e._element)||"inside"===e._config.autoClose&&!n||"outside"===e._config.autoClose&&n)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const i={relatedTarget:e._element};"click"===t.type&&(i.clickEvent=t),e._completeHide(i)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),r="Escape"===t.key,o=[hk,gk].includes(t.key);if(!o&&!r)return;if(e&&!r)return;t.preventDefault();const n=this.matches(Sk)?this:dC.prev(this,Sk)[0]||dC.next(this,Sk)[0]||dC.findOne(Sk,t.delegateTarget.parentNode),i=Pk.getOrCreateInstance(n);if(o)return t.stopPropagation(),i.show(),void i._selectMenuItem(t);i._isShown()&&(t.stopPropagation(),i.hide(),n.focus())}}rC.on(document,xk,Sk,Pk.dataApiKeydownHandler),rC.on(document,xk,Tk,Pk.dataApiKeydownHandler),rC.on(document,_k,Pk.clearMenus),rC.on(document,Ck,Pk.clearMenus),rC.on(document,_k,Sk,(function(t){t.preventDefault(),Pk.getOrCreateInstance(this).toggle()})),Mx(Pk);const Mk="backdrop",Nk="show",zk=`mousedown.bs.${Mk}`,qk={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Hk={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Vk extends aC{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return qk}static get DefaultType(){return Hk}static get NAME(){return Mk}show(t){if(!this._config.isVisible)return void Nx(t);this._append();const e=this._getElement();this._config.isAnimated&&Rx(e),e.classList.add(Nk),this._emulateAnimation((()=>{Nx(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Nk),this._emulateAnimation((()=>{this.dispose(),Nx(t)}))):Nx(t)}dispose(){this._isAppended&&(rC.off(this._element,zk),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=Ax(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),rC.on(t,zk,(()=>{Nx(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){zx(t,this._getElement(),this._config.isAnimated)}}const Uk=".bs.focustrap",Fk=`focusin${Uk}`,Bk=`keydown.tab${Uk}`,Wk="backward",Kk={autofocus:!0,trapElement:null},Xk={autofocus:"boolean",trapElement:"element"};class Gk extends aC{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Kk}static get DefaultType(){return Xk}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),rC.off(document,Uk),rC.on(document,Fk,(t=>this._handleFocusin(t))),rC.on(document,Bk,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,rC.off(document,Uk))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const r=dC.focusableChildren(e);0===r.length?e.focus():this._lastTabNavDirection===Wk?r[r.length-1].focus():r[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?Wk:"forward")}}const Jk=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Qk=".sticky-top",Yk="padding-right",Zk="margin-right";class tS{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Yk,(e=>e+t)),this._setElementAttributes(Jk,Yk,(e=>e+t)),this._setElementAttributes(Qk,Zk,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Yk),this._resetElementAttributes(Jk,Yk),this._resetElementAttributes(Qk,Zk)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,r){const o=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+o)return;this._saveInitialAttribute(t,e);const n=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${r(Number.parseFloat(n))}px`)}))}_saveInitialAttribute(t,e){const r=t.style.getPropertyValue(e);r&&sC.setDataAttribute(t,e,r)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const r=sC.getDataAttribute(t,e);null!==r?(sC.removeDataAttribute(t,e),t.style.setProperty(e,r)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(Tx(t))e(t);else for(const r of dC.find(t,this._element))e(r)}}const eS=".bs.modal",rS=`hide${eS}`,oS=`hidePrevented${eS}`,nS=`hidden${eS}`,iS=`show${eS}`,sS=`shown${eS}`,aS=`resize${eS}`,lS=`click.dismiss${eS}`,cS=`mousedown.dismiss${eS}`,dS=`keydown.dismiss${eS}`,uS=`click${eS}.data-api`,pS="modal-open",bS="show",fS="modal-static",hS={backdrop:!0,focus:!0,keyboard:!0},gS={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class vS extends lC{constructor(t,e){super(t,e),this._dialog=dC.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new tS,this._addEventListeners()}static get Default(){return hS}static get DefaultType(){return gS}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||rC.trigger(this._element,iS,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(pS),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(rC.trigger(this._element,rS).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(bS),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){rC.off(window,eS),rC.off(this._dialog,eS),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Vk({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Gk({trapElement:this._element})}_showElement(t){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 e=dC.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),Rx(this._element),this._element.classList.add(bS),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,rC.trigger(this._element,sS,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){rC.on(this._element,dS,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),rC.on(window,aS,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),rC.on(this._element,cS,(t=>{rC.one(this._element,lS,(e=>{this._element===t.target&&this._element===e.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(pS),this._resetAdjustments(),this._scrollBar.reset(),rC.trigger(this._element,nS)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(rC.trigger(this._element,oS).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(fS)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(fS),this._queueCallback((()=>{this._element.classList.remove(fS),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),r=e>0;if(r&&!t){const t=Px()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!r&&t){const t=Px()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const r=vS.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===r[t])throw new TypeError(`No method named "${t}"`);r[t](e)}}))}}rC.on(document,uS,'[data-bs-toggle="modal"]',(function(t){const e=dC.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),rC.one(e,iS,(t=>{t.defaultPrevented||rC.one(e,nS,(()=>{Ox(this)&&this.focus()}))}));const r=dC.findOne(".modal.show");r&&vS.getInstance(r).hide(),vS.getOrCreateInstance(e).toggle(this)})),uC(vS),Mx(vS);const mS=".bs.offcanvas",yS=".data-api",wS=`load${mS}${yS}`,_S="show",xS="showing",CS="hiding",kS=".offcanvas.show",SS=`show${mS}`,ES=`shown${mS}`,TS=`hide${mS}`,AS=`hidePrevented${mS}`,OS=`hidden${mS}`,$S=`resize${mS}`,IS=`click${mS}${yS}`,jS=`keydown.dismiss${mS}`,RS={backdrop:!0,keyboard:!0,scroll:!1},DS={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class LS extends lC{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return RS}static get DefaultType(){return DS}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||rC.trigger(this._element,SS,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new tS).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(xS),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(_S),this._element.classList.remove(xS),rC.trigger(this._element,ES,{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(rC.trigger(this._element,TS).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(CS),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(_S,CS),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new tS).reset(),rC.trigger(this._element,OS)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new Vk({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():rC.trigger(this._element,AS)}:null})}_initializeFocusTrap(){return new Gk({trapElement:this._element})}_addEventListeners(){rC.on(this._element,jS,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():rC.trigger(this._element,AS))}))}static jQueryInterface(t){return this.each((function(){const e=LS.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}rC.on(document,IS,'[data-bs-toggle="offcanvas"]',(function(t){const e=dC.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),$x(this))return;rC.one(e,OS,(()=>{Ox(this)&&this.focus()}));const r=dC.findOne(kS);r&&r!==e&&LS.getInstance(r).hide(),LS.getOrCreateInstance(e).toggle(this)})),rC.on(window,wS,(()=>{for(const t of dC.find(kS))LS.getOrCreateInstance(t).show()})),rC.on(window,$S,(()=>{for(const t of dC.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&LS.getOrCreateInstance(t).hide()})),uC(LS),Mx(LS);const PS={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},MS=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),NS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,zS=(t,e)=>{const r=t.nodeName.toLowerCase();return e.includes(r)?!MS.has(r)||Boolean(NS.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(r)))},qS={allowList:PS,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},HS={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},VS={entry:"(string|element|function|null)",selector:"(string|element)"};class US extends aC{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return qS}static get DefaultType(){return HS}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,r]of Object.entries(this._config.content))this._setContent(t,r,e);const e=t.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&e.classList.add(...r.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,r]of Object.entries(t))super._typeCheckConfig({selector:e,entry:r},VS)}_setContent(t,e,r){const o=dC.findOne(r,t);o&&((e=this._resolvePossibleFunction(e))?Tx(e)?this._putElementInTemplate(Ax(e),o):this._config.html?o.innerHTML=this._maybeSanitize(e):o.textContent=e:o.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,r){if(!t.length)return t;if(r&&"function"==typeof r)return r(t);const o=(new window.DOMParser).parseFromString(t,"text/html"),n=[].concat(...o.body.querySelectorAll("*"));for(const t of n){const r=t.nodeName.toLowerCase();if(!Object.keys(e).includes(r)){t.remove();continue}const o=[].concat(...t.attributes),n=[].concat(e["*"]||[],e[r]||[]);for(const e of o)zS(e,n)||t.removeAttribute(e.nodeName)}return o.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Nx(t,[this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const FS=new Set(["sanitize","allowList","sanitizeFn"]),BS="fade",WS="show",KS=".tooltip-inner",XS=".modal",GS="hide.bs.modal",JS="hover",QS="focus",YS={AUTO:"auto",TOP:"top",RIGHT:Px()?"left":"right",BOTTOM:"bottom",LEFT:Px()?"right":"left"},ZS={allowList:PS,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"},tE={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 eE extends lC{constructor(t,r){if(void 0===e)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,r),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 ZS}static get DefaultType(){return tE}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),rC.off(this._element.closest(XS),GS,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 t=rC.trigger(this._element,this.constructor.eventName("show")),e=(Ix(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const r=this._getTipElement();this._element.setAttribute("aria-describedby",r.getAttribute("id"));const{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(r),rC.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(r),r.classList.add(WS),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))rC.on(t,"mouseover",jx);this._queueCallback((()=>{rC.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!rC.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(WS),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))rC.off(t,"mouseover",jx);this._activeTrigger.click=!1,this._activeTrigger[QS]=!1,this._activeTrigger[JS]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),rC.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(BS,WS),e.classList.add(`bs-${this.constructor.NAME}-auto`);const r=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",r),this._isAnimated()&&e.classList.add(BS),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new US({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[KS]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(BS)}_isShown(){return this.tip&&this.tip.classList.contains(WS)}_createPopper(t){const e=Nx(this._config.placement,[this,t,this._element]),r=YS[e.toUpperCase()];return wx(this._element,t,this._getPopperConfig(r))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return Nx(t,[this._element])}_getPopperConfig(t){const e={placement:t,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:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...Nx(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)rC.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===JS?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),r=e===JS?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");rC.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?QS:JS]=!0,e._enter()})),rC.on(this._element,r,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?QS:JS]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},rC.on(this._element.closest(XS),GS,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),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(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=sC.getDataAttributes(this._element);for(const t of Object.keys(e))FS.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:Ax(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,r]of Object.entries(this._config))this.constructor.Default[e]!==r&&(t[e]=r);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each((function(){const e=eE.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Mx(eE);const rE=".popover-header",oE=".popover-body",nE={...eE.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"},iE={...eE.DefaultType,content:"(null|string|element|function)"};class sE extends eE{static get Default(){return nE}static get DefaultType(){return iE}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[rE]:this._getTitle(),[oE]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=sE.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Mx(sE);const aE=".bs.scrollspy",lE=`activate${aE}`,cE=`click${aE}`,dE=`load${aE}.data-api`,uE="active",pE="[href]",bE=".nav-link",fE=`${bE}, .nav-item > ${bE}, .list-group-item`,hE={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},gE={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class vE extends lC{constructor(t,e){super(t,e),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 hE}static get DefaultType(){return gE}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=Ax(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(rC.off(this._config.target,cE),rC.on(this._config.target,cE,pE,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const r=this._rootElement||window,o=e.offsetTop-this._element.offsetTop;if(r.scrollTo)return void r.scrollTo({top:o,behavior:"smooth"});r.scrollTop=o}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),r=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},o=(this._rootElement||document.documentElement).scrollTop,n=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const i of t){if(!i.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(i));continue}const t=i.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&t){if(r(i),!o)return}else n||t||r(i)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=dC.find(pE,this._config.target);for(const e of t){if(!e.hash||$x(e))continue;const t=dC.findOne(decodeURI(e.hash),this._element);Ox(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(uE),this._activateParents(t),rC.trigger(this._element,lE,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))dC.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(uE);else for(const e of dC.parents(t,".nav, .list-group"))for(const t of dC.prev(e,fE))t.classList.add(uE)}_clearActiveClass(t){t.classList.remove(uE);const e=dC.find(`${pE}.${uE}`,t);for(const t of e)t.classList.remove(uE)}static jQueryInterface(t){return this.each((function(){const e=vE.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}rC.on(window,dE,(()=>{for(const t of dC.find('[data-bs-spy="scroll"]'))vE.getOrCreateInstance(t)})),Mx(vE);const mE=".bs.tab",yE=`hide${mE}`,wE=`hidden${mE}`,_E=`show${mE}`,xE=`shown${mE}`,CE=`click${mE}`,kE=`keydown${mE}`,SE=`load${mE}`,EE="ArrowLeft",TE="ArrowRight",AE="ArrowUp",OE="ArrowDown",$E="Home",IE="End",jE="active",RE="fade",DE="show",LE=".dropdown-toggle",PE=`:not(${LE})`,ME='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',NE=`.nav-link${PE}, .list-group-item${PE}, [role="tab"]${PE}, ${ME}`,zE=`.${jE}[data-bs-toggle="tab"], .${jE}[data-bs-toggle="pill"], .${jE}[data-bs-toggle="list"]`;class qE extends lC{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),rC.on(this._element,kE,(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),r=e?rC.trigger(e,yE,{relatedTarget:t}):null;rC.trigger(t,_E,{relatedTarget:e}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(jE),this._activate(dC.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),rC.trigger(t,xE,{relatedTarget:e})):t.classList.add(DE)}),t,t.classList.contains(RE)))}_deactivate(t,e){t&&(t.classList.remove(jE),t.blur(),this._deactivate(dC.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),rC.trigger(t,wE,{relatedTarget:e})):t.classList.remove(DE)}),t,t.classList.contains(RE)))}_keydown(t){if(![EE,TE,AE,OE,$E,IE].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!$x(t)));let r;if([$E,IE].includes(t.key))r=e[t.key===$E?0:e.length-1];else{const o=[TE,OE].includes(t.key);r=qx(e,t.target,o,!0)}r&&(r.focus({preventScroll:!0}),qE.getOrCreateInstance(r).show())}_getChildren(){return dC.find(NE,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),r=this._getOuterElement(t);t.setAttribute("aria-selected",e),r!==t&&this._setAttributeIfNotExists(r,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=dC.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const r=this._getOuterElement(t);if(!r.classList.contains("dropdown"))return;const o=(t,o)=>{const n=dC.findOne(t,r);n&&n.classList.toggle(o,e)};o(LE,jE),o(".dropdown-menu",DE),r.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,r){t.hasAttribute(e)||t.setAttribute(e,r)}_elemIsActive(t){return t.classList.contains(jE)}_getInnerElement(t){return t.matches(NE)?t:dC.findOne(NE,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=qE.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}rC.on(document,CE,ME,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),$x(this)||qE.getOrCreateInstance(this).show()})),rC.on(window,SE,(()=>{for(const t of dC.find(zE))qE.getOrCreateInstance(t)})),Mx(qE);const HE=".bs.toast",VE=`mouseover${HE}`,UE=`mouseout${HE}`,FE=`focusin${HE}`,BE=`focusout${HE}`,WE=`hide${HE}`,KE=`hidden${HE}`,XE=`show${HE}`,GE=`shown${HE}`,JE="hide",QE="show",YE="showing",ZE={animation:"boolean",autohide:"boolean",delay:"number"},tT={animation:!0,autohide:!0,delay:5e3};class eT extends lC{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return tT}static get DefaultType(){return ZE}static get NAME(){return"toast"}show(){rC.trigger(this._element,XE).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(JE),Rx(this._element),this._element.classList.add(QE,YE),this._queueCallback((()=>{this._element.classList.remove(YE),rC.trigger(this._element,GE),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(rC.trigger(this._element,WE).defaultPrevented||(this._element.classList.add(YE),this._queueCallback((()=>{this._element.classList.add(JE),this._element.classList.remove(YE,QE),rC.trigger(this._element,KE)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(QE),super.dispose()}isShown(){return this._element.classList.contains(QE)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const r=t.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){rC.on(this._element,VE,(t=>this._onInteraction(t,!0))),rC.on(this._element,UE,(t=>this._onInteraction(t,!1))),rC.on(this._element,FE,(t=>this._onInteraction(t,!0))),rC.on(this._element,BE,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=eT.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}uC(eT),Mx(eT);var rT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},oT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let nT=class extends Sw{constructor(){super(...arguments),this.ariaExpanded="false",this.ariaLabel="Toggle menu",this.buttonType="button",this.collapseToggle="collapse",this.dblClickClass="qbo-doubleclick",this.dropdownId="qboMainMenu",this.dropdownToggle="dropdown",this.iconClass="qbo-icon",this.liLinkToggleClass="qbo-dropdown",this.liLinkClass="qbo-nav-item",this.liAMenuClass="qbo-dropdown-item",this.navClass="qbo-mainmenu",this.popoverContainer="body",this.popoverHtml="false",this.popoverPlacement="bottom",this.popoverToggle="popover",this.popoverTrigger="hover",this.spanMenuClass="qbo-submenuexpand",this.spanMenuValue=">",this.ulMainMenuToggleClass="qbo-dropdown-mainmenu",this.ulSubMenuClass="submenu",this.ulSubMenuToggleClass="dropdown-menu",this.apiEndpoint=new URL("config/mainmenu",this.baseURI),this.renderInHost=!0,this.targetElement=null,this.handleResize=()=>{window.innerWidth<992?this.renderRoot.querySelectorAll("button").forEach((function(t){null!=t&&t instanceof HTMLElement&&t.hasAttribute("aria-expanded")&&"true"==t.getAttribute("aria-expanded")&&t.click()})):this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass} .${this.ulSubMenuClass}`).forEach((function(t){null!=t&&t instanceof HTMLElement&&t.hasAttribute("style")&&t.removeAttribute("style")}))}}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize)}disconnectedCallback(){window.removeEventListener("resize",this.handleResize),super.disconnectedCallback()}updated(t){if(super.updated(t),null!=t.get("jsonData")){this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass}`).forEach((t=>{t.addEventListener("click",(function(t){t.stopPropagation()}))}));const t=this.ulSubMenuClass;this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass} a`).forEach((function(e){e.addEventListener("click",(e=>{if(null!=e.currentTarget&&e.currentTarget instanceof HTMLElement&&window.innerWidth<992){const r=e.currentTarget.nextElementSibling;null!=r&&r instanceof HTMLElement&&r.classList.contains(t)&&(e.preventDefault(),r.style.display="block"==r.style.display?"none":"block")}}))})),this.renderRoot.querySelectorAll(`[data-bs-toggle="${this.popoverToggle}"]`).forEach((function(t){new sE(t)}))}}renderImage(t){return null!=t?At`<img src="${t}"/><span/>`:At``}renderMenu(t,e,r){let o=At``;const n=null!=t&&null!=t.Menu?t.Menu:t;return null!=n&&(n.forEach?n.forEach((t=>{o=null!=t.Menu?At`${o}${this.renderMenuDropdown(t,r)}`:"Divider"==t.Type?At`${o}${this.renderMenuDivider()}`:e?At`${o}${this.renderMenuDropdownLink(t.URL,t.Text,t.Icon)}`:At`${o}${this.renderMenuLink(t)}`})):o=null!=n.Menu?At`${o}${this.renderMenuDropdown(n,r)}`:"Divider"==n.Type?At`${o}${this.renderMenuDivider()}`:e?At`${o}${this.renderMenuDropdownLink(n.URL,n.Text,n.Icon)}`:At`${o}${this.renderMenuLink(n)}`),At`${o}`}renderMenuDivider(){return At`<li><hr/></li>`}renderMenuDropdown(t,e){const r=null!=t.Icon&&""!=t.Icon?At`<i class="${t.Icon} ${this.iconClass}" />`:"";return e?At`<li>
|
|
257
|
+
</slot>`}};Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"aDropdownClass",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"buttonPrimaryClass",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"buttonPrimaryDropdownClass",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"buttonType",void 0),Nw([Jt({type:Object,attribute:!1}),zw("design:type",Object)],Hw.prototype,"data",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"divButtonGroupClass",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"divFormActionClass",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"divSectionHeaderClass",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"dropdownToggle",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"editLabel",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"helpIcon",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"helpText",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"historyIcon",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"historyText",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"infoButtonClass",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"infoIconClass",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"infoTitle",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"popoverClass",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"spanEditClass",void 0),Nw([Jt({type:String}),zw("design:type",Object)],Hw.prototype,"ulDropdownClass",void 0),Nw([Jt(),zw("design:type",Object)],Hw.prototype,"type",void 0),Nw([Jt({type:Boolean}),zw("design:type",Object)],Hw.prototype,"renderInHost",void 0),Hw=Nw([Kt("qbo-form-edit")],Hw);var Vw,Uw=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Fw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Bw=class extends Bt{static{Vw=this}static{this.formAssociated=!0}constructor(){super(),this.value=new FormData,this.template="",this.name="",this.data=null,this.templateNode=null,this.handleFormChange=t=>{const e=t.target;e.matches("input, select, textarea")&&e.name&&!e.assignedSlot&&(this.value.set(`${this.name}${e.name}`,e.value),this.logger.logTrace(`${this.name}${e.name} was set to ${e.value}`)),this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.augment=t=>{if(t.stopPropagation(),console.log(t),t instanceof CustomEvent&&t.detail.formData instanceof FormData)for(let[e,r]of t.detail.formData.entries())this.value.set(e,r),console.log(`Added ${e}=${r} to ${this.name}`);this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.internals=this.attachInternals(),this.logger=I.container.resolve(ee)}connectedCallback(){super.connectedCallback(),this.templateNode=document.getElementById(this.template),this.templateNode&&(this.appendChild(this.templateNode.content.cloneNode(!0)),this.innerHTML=nw(this.innerHTML,this.data)),this.shadowRoot?.addEventListener("change",this.handleFormChange),this.shadowRoot?.addEventListener("qbo-form-update",this.augment)}disconnectedCallback(){super.disconnectedCallback(),this.shadowRoot?.removeEventListener("change",this.handleFormChange),this.shadowRoot?.removeEventListener("qbo-form-update",this.augment)}updated(t){super.updated(t),this.establishFormData()}render(){return At`<slot></slot>`}establishFormData(){const t=this.shadowRoot?.querySelectorAll("input, select, textarea");if(!t||0===t?.length)return;const e=Array.from(t).filter((t=>!t.assignedSlot&&(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof Vw)&&t.name));e.forEach((t=>{const e=t;if(e instanceof HTMLSelectElement)this.value.set(`${this.name}${e.name}`,e.value);else if(e instanceof HTMLTextAreaElement)this.value.set(`${this.name}${e.name}`,e.value);else if(e instanceof Vw)for(let[t,r]of e.value.entries())this.value.set(`${this.name}${t}`,r);else e instanceof HTMLInputElement&&("checkbox"===e.type||"radio"===e.type?e.checked&&this.value.set(`${this.name}${e.name}`,e.value):this.value.set(`${this.name}${e.name}`,e.value))})),this.internals.setFormValue(this.value),this.logger.logTrace(`Set ${this.name} values to `,this.value)}};Uw([Jt({type:FormData}),Fw("design:type",FormData)],Bw.prototype,"value",void 0),Uw([Jt({type:String}),Fw("design:type",Object)],Bw.prototype,"template",void 0),Uw([Jt({type:String}),Fw("design:type",Object)],Bw.prototype,"name",void 0),Uw([Jt({type:Object}),Fw("design:type",Object)],Bw.prototype,"data",void 0),Bw=Vw=Uw([Kt("qbo-form-element"),Fw("design:paramtypes",[])],Bw);var Ww="top",Kw="bottom",Xw="right",Gw="left",Jw="auto",Qw=[Ww,Kw,Xw,Gw],Yw="start",Zw="end",t_="clippingParents",e_="viewport",r_="popper",o_="reference",n_=Qw.reduce((function(t,e){return t.concat([e+"-"+Yw,e+"-"+Zw])}),[]),i_=[].concat(Qw,[Jw]).reduce((function(t,e){return t.concat([e,e+"-"+Yw,e+"-"+Zw])}),[]),s_="beforeRead",a_="read",l_="afterRead",c_="beforeMain",d_="main",u_="afterMain",p_="beforeWrite",b_="write",f_="afterWrite",h_=[s_,a_,l_,c_,d_,u_,p_,b_,f_];function g_(t){return t?(t.nodeName||"").toLowerCase():null}function v_(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function m_(t){return t instanceof v_(t).Element||t instanceof Element}function y_(t){return t instanceof v_(t).HTMLElement||t instanceof HTMLElement}function w_(t){return"undefined"!=typeof ShadowRoot&&(t instanceof v_(t).ShadowRoot||t instanceof ShadowRoot)}const __={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var r=e.styles[t]||{},o=e.attributes[t]||{},n=e.elements[t];y_(n)&&g_(n)&&(Object.assign(n.style,r),Object.keys(o).forEach((function(t){var e=o[t];!1===e?n.removeAttribute(t):n.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach((function(t){var o=e.elements[t],n=e.attributes[t]||{},i=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:r[t]).reduce((function(t,e){return t[e]="",t}),{});y_(o)&&g_(o)&&(Object.assign(o.style,i),Object.keys(n).forEach((function(t){o.removeAttribute(t)})))}))}},requires:["computeStyles"]};function x_(t){return t.split("-")[0]}var C_=Math.max,k_=Math.min,S_=Math.round;function E_(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function T_(){return!/^((?!chrome|android).)*safari/i.test(E_())}function A_(t,e,r){void 0===e&&(e=!1),void 0===r&&(r=!1);var o=t.getBoundingClientRect(),n=1,i=1;e&&y_(t)&&(n=t.offsetWidth>0&&S_(o.width)/t.offsetWidth||1,i=t.offsetHeight>0&&S_(o.height)/t.offsetHeight||1);var s=(m_(t)?v_(t):window).visualViewport,a=!T_()&&r,l=(o.left+(a&&s?s.offsetLeft:0))/n,c=(o.top+(a&&s?s.offsetTop:0))/i,d=o.width/n,u=o.height/i;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function O_(t){var e=A_(t),r=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:o}}function $_(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&w_(r)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function I_(t){return v_(t).getComputedStyle(t)}function j_(t){return["table","td","th"].indexOf(g_(t))>=0}function R_(t){return((m_(t)?t.ownerDocument:t.document)||window.document).documentElement}function D_(t){return"html"===g_(t)?t:t.assignedSlot||t.parentNode||(w_(t)?t.host:null)||R_(t)}function L_(t){return y_(t)&&"fixed"!==I_(t).position?t.offsetParent:null}function P_(t){for(var e=v_(t),r=L_(t);r&&j_(r)&&"static"===I_(r).position;)r=L_(r);return r&&("html"===g_(r)||"body"===g_(r)&&"static"===I_(r).position)?e:r||function(t){var e=/firefox/i.test(E_());if(/Trident/i.test(E_())&&y_(t)&&"fixed"===I_(t).position)return null;var r=D_(t);for(w_(r)&&(r=r.host);y_(r)&&["html","body"].indexOf(g_(r))<0;){var o=I_(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(t)||e}function M_(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function N_(t,e,r){return C_(t,k_(e,r))}function z_(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function q_(t,e){return e.reduce((function(e,r){return e[r]=t,e}),{})}const H_={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,r=t.state,o=t.name,n=t.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=x_(r.placement),l=M_(a),c=[Gw,Xw].indexOf(a)>=0?"height":"width";if(i&&s){var d=function(t,e){return z_("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:q_(t,Qw))}(n.padding,r),u=O_(i),p="y"===l?Ww:Gw,b="y"===l?Kw:Xw,f=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],h=s[l]-r.rects.reference[l],g=P_(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,m=f/2-h/2,y=d[p],w=v-u[c]-d[b],_=v/2-u[c]/2+m,x=N_(y,_,w),C=l;r.modifiersData[o]=((e={})[C]=x,e.centerOffset=x-_,e)}},effect:function(t){var e=t.state,r=t.options.element,o=void 0===r?"[data-popper-arrow]":r;null!=o&&("string"!=typeof o||(o=e.elements.popper.querySelector(o)))&&$_(e.elements.popper,o)&&(e.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function V_(t){return t.split("-")[1]}var U_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function F_(t){var e,r=t.popper,o=t.popperRect,n=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,u=t.isFixed,p=s.x,b=void 0===p?0:p,f=s.y,h=void 0===f?0:f,g="function"==typeof d?d({x:b,y:h}):{x:b,y:h};b=g.x,h=g.y;var v=s.hasOwnProperty("x"),m=s.hasOwnProperty("y"),y=Gw,w=Ww,_=window;if(c){var x=P_(r),C="clientHeight",k="clientWidth";x===v_(r)&&"static"!==I_(x=R_(r)).position&&"absolute"===a&&(C="scrollHeight",k="scrollWidth"),(n===Ww||(n===Gw||n===Xw)&&i===Zw)&&(w=Kw,h-=(u&&x===_&&_.visualViewport?_.visualViewport.height:x[C])-o.height,h*=l?1:-1),n!==Gw&&(n!==Ww&&n!==Kw||i!==Zw)||(y=Xw,b-=(u&&x===_&&_.visualViewport?_.visualViewport.width:x[k])-o.width,b*=l?1:-1)}var S,E=Object.assign({position:a},c&&U_),T=!0===d?function(t,e){var r=t.x,o=t.y,n=e.devicePixelRatio||1;return{x:S_(r*n)/n||0,y:S_(o*n)/n||0}}({x:b,y:h},v_(r)):{x:b,y:h};return b=T.x,h=T.y,l?Object.assign({},E,((S={})[w]=m?"0":"",S[y]=v?"0":"",S.transform=(_.devicePixelRatio||1)<=1?"translate("+b+"px, "+h+"px)":"translate3d("+b+"px, "+h+"px, 0)",S)):Object.assign({},E,((e={})[w]=m?h+"px":"",e[y]=v?b+"px":"",e.transform="",e))}const B_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,r=t.options,o=r.gpuAcceleration,n=void 0===o||o,i=r.adaptive,s=void 0===i||i,a=r.roundOffsets,l=void 0===a||a,c={placement:x_(e.placement),variation:V_(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,F_(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,F_(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var W_={passive:!0};const K_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,r=t.instance,o=t.options,n=o.scroll,i=void 0===n||n,s=o.resize,a=void 0===s||s,l=v_(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach((function(t){t.addEventListener("scroll",r.update,W_)})),a&&l.addEventListener("resize",r.update,W_),function(){i&&c.forEach((function(t){t.removeEventListener("scroll",r.update,W_)})),a&&l.removeEventListener("resize",r.update,W_)}},data:{}};var X_={left:"right",right:"left",bottom:"top",top:"bottom"};function G_(t){return t.replace(/left|right|bottom|top/g,(function(t){return X_[t]}))}var J_={start:"end",end:"start"};function Q_(t){return t.replace(/start|end/g,(function(t){return J_[t]}))}function Y_(t){var e=v_(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Z_(t){return A_(R_(t)).left+Y_(t).scrollLeft}function tx(t){var e=I_(t),r=e.overflow,o=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function ex(t){return["html","body","#document"].indexOf(g_(t))>=0?t.ownerDocument.body:y_(t)&&tx(t)?t:ex(D_(t))}function rx(t,e){var r;void 0===e&&(e=[]);var o=ex(t),n=o===(null==(r=t.ownerDocument)?void 0:r.body),i=v_(o),s=n?[i].concat(i.visualViewport||[],tx(o)?o:[]):o,a=e.concat(s);return n?a:a.concat(rx(D_(s)))}function ox(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function nx(t,e,r){return e===e_?ox(function(t,e){var r=v_(t),o=R_(t),n=r.visualViewport,i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(n){i=n.width,s=n.height;var c=T_();(c||!c&&"fixed"===e)&&(a=n.offsetLeft,l=n.offsetTop)}return{width:i,height:s,x:a+Z_(t),y:l}}(t,r)):m_(e)?function(t,e){var r=A_(t,!1,"fixed"===e);return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}(e,r):ox(function(t){var e,r=R_(t),o=Y_(t),n=null==(e=t.ownerDocument)?void 0:e.body,i=C_(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=C_(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-o.scrollLeft+Z_(t),l=-o.scrollTop;return"rtl"===I_(n||r).direction&&(a+=C_(r.clientWidth,n?n.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(R_(t)))}function ix(t){var e,r=t.reference,o=t.element,n=t.placement,i=n?x_(n):null,s=n?V_(n):null,a=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2;switch(i){case Ww:e={x:a,y:r.y-o.height};break;case Kw:e={x:a,y:r.y+r.height};break;case Xw:e={x:r.x+r.width,y:l};break;case Gw:e={x:r.x-o.width,y:l};break;default:e={x:r.x,y:r.y}}var c=i?M_(i):null;if(null!=c){var d="y"===c?"height":"width";switch(s){case Yw:e[c]=e[c]-(r[d]/2-o[d]/2);break;case Zw:e[c]=e[c]+(r[d]/2-o[d]/2)}}return e}function sx(t,e){void 0===e&&(e={});var r=e,o=r.placement,n=void 0===o?t.placement:o,i=r.strategy,s=void 0===i?t.strategy:i,a=r.boundary,l=void 0===a?t_:a,c=r.rootBoundary,d=void 0===c?e_:c,u=r.elementContext,p=void 0===u?r_:u,b=r.altBoundary,f=void 0!==b&&b,h=r.padding,g=void 0===h?0:h,v=z_("number"!=typeof g?g:q_(g,Qw)),m=p===r_?o_:r_,y=t.rects.popper,w=t.elements[f?m:p],_=function(t,e,r,o){var n="clippingParents"===e?function(t){var e=rx(D_(t)),r=["absolute","fixed"].indexOf(I_(t).position)>=0&&y_(t)?P_(t):t;return m_(r)?e.filter((function(t){return m_(t)&&$_(t,r)&&"body"!==g_(t)})):[]}(t):[].concat(e),i=[].concat(n,[r]),s=i[0],a=i.reduce((function(e,r){var n=nx(t,r,o);return e.top=C_(n.top,e.top),e.right=k_(n.right,e.right),e.bottom=k_(n.bottom,e.bottom),e.left=C_(n.left,e.left),e}),nx(t,s,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(m_(w)?w:w.contextElement||R_(t.elements.popper),l,d,s),x=A_(t.elements.reference),C=ix({reference:x,element:y,strategy:"absolute",placement:n}),k=ox(Object.assign({},y,C)),S=p===r_?k:x,E={top:_.top-S.top+v.top,bottom:S.bottom-_.bottom+v.bottom,left:_.left-S.left+v.left,right:S.right-_.right+v.right},T=t.modifiersData.offset;if(p===r_&&T){var A=T[n];Object.keys(E).forEach((function(t){var e=[Xw,Kw].indexOf(t)>=0?1:-1,r=[Ww,Kw].indexOf(t)>=0?"y":"x";E[t]+=A[r]*e}))}return E}const ax={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var n=r.mainAxis,i=void 0===n||n,s=r.altAxis,a=void 0===s||s,l=r.fallbackPlacements,c=r.padding,d=r.boundary,u=r.rootBoundary,p=r.altBoundary,b=r.flipVariations,f=void 0===b||b,h=r.allowedAutoPlacements,g=e.options.placement,v=x_(g),m=l||(v!==g&&f?function(t){if(x_(t)===Jw)return[];var e=G_(t);return[Q_(t),e,Q_(e)]}(g):[G_(g)]),y=[g].concat(m).reduce((function(t,r){return t.concat(x_(r)===Jw?function(t,e){void 0===e&&(e={});var r=e,o=r.placement,n=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?i_:l,d=V_(o),u=d?a?n_:n_.filter((function(t){return V_(t)===d})):Qw,p=u.filter((function(t){return c.indexOf(t)>=0}));0===p.length&&(p=u);var b=p.reduce((function(e,r){return e[r]=sx(t,{placement:r,boundary:n,rootBoundary:i,padding:s})[x_(r)],e}),{});return Object.keys(b).sort((function(t,e){return b[t]-b[e]}))}(e,{placement:r,boundary:d,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:h}):r)}),[]),w=e.rects.reference,_=e.rects.popper,x=new Map,C=!0,k=y[0],S=0;S<y.length;S++){var E=y[S],T=x_(E),A=V_(E)===Yw,O=[Ww,Kw].indexOf(T)>=0,$=O?"width":"height",I=sx(e,{placement:E,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),j=O?A?Xw:Gw:A?Kw:Ww;w[$]>_[$]&&(j=G_(j));var R=G_(j),D=[];if(i&&D.push(I[T]<=0),a&&D.push(I[j]<=0,I[R]<=0),D.every((function(t){return t}))){k=E,C=!1;break}x.set(E,D)}if(C)for(var L=function(t){var e=y.find((function(e){var r=x.get(e);if(r)return r.slice(0,t).every((function(t){return t}))}));if(e)return k=e,"break"},P=f?3:1;P>0&&"break"!==L(P);P--);e.placement!==k&&(e.modifiersData[o]._skip=!0,e.placement=k,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function lx(t,e,r){return void 0===r&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function cx(t){return[Ww,Xw,Kw,Gw].some((function(e){return t[e]>=0}))}const dx={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,r=t.name,o=e.rects.reference,n=e.rects.popper,i=e.modifiersData.preventOverflow,s=sx(e,{elementContext:"reference"}),a=sx(e,{altBoundary:!0}),l=lx(s,o),c=lx(a,n,i),d=cx(l),u=cx(c);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},ux={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,r=t.options,o=t.name,n=r.offset,i=void 0===n?[0,0]:n,s=i_.reduce((function(t,r){return t[r]=function(t,e,r){var o=x_(t),n=[Gw,Ww].indexOf(o)>=0?-1:1,i="function"==typeof r?r(Object.assign({},e,{placement:t})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*n,[Gw,Xw].indexOf(o)>=0?{x:a,y:s}:{x:s,y:a}}(r,e.rects,i),t}),{}),a=s[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=s}},px={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,r=t.name;e.modifiersData[r]=ix({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},bx={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,o=t.name,n=r.mainAxis,i=void 0===n||n,s=r.altAxis,a=void 0!==s&&s,l=r.boundary,c=r.rootBoundary,d=r.altBoundary,u=r.padding,p=r.tether,b=void 0===p||p,f=r.tetherOffset,h=void 0===f?0:f,g=sx(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=x_(e.placement),m=V_(e.placement),y=!m,w=M_(v),_="x"===w?"y":"x",x=e.modifiersData.popperOffsets,C=e.rects.reference,k=e.rects.popper,S="function"==typeof h?h(Object.assign({},e.rects,{placement:e.placement})):h,E="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(x){if(i){var O,$="y"===w?Ww:Gw,I="y"===w?Kw:Xw,j="y"===w?"height":"width",R=x[w],D=R+g[$],L=R-g[I],P=b?-k[j]/2:0,M=m===Yw?C[j]:k[j],N=m===Yw?-k[j]:-C[j],z=e.elements.arrow,q=b&&z?O_(z):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=H[$],U=H[I],F=N_(0,C[j],q[j]),B=y?C[j]/2-P-F-V-E.mainAxis:M-F-V-E.mainAxis,W=y?-C[j]/2+P+F+U+E.mainAxis:N+F+U+E.mainAxis,K=e.elements.arrow&&P_(e.elements.arrow),X=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,G=null!=(O=null==T?void 0:T[w])?O:0,J=R+W-G,Q=N_(b?k_(D,R+B-G-X):D,R,b?C_(L,J):L);x[w]=Q,A[w]=Q-R}if(a){var Y,Z="x"===w?Ww:Gw,tt="x"===w?Kw:Xw,et=x[_],rt="y"===_?"height":"width",ot=et+g[Z],nt=et-g[tt],it=-1!==[Ww,Gw].indexOf(v),st=null!=(Y=null==T?void 0:T[_])?Y:0,at=it?ot:et-C[rt]-k[rt]-st+E.altAxis,lt=it?et+C[rt]+k[rt]-st-E.altAxis:nt,ct=b&&it?function(t,e,r){var o=N_(t,e,r);return o>r?r:o}(at,et,lt):N_(b?at:ot,et,b?lt:nt);x[_]=ct,A[_]=ct-et}e.modifiersData[o]=A}},requiresIfExists:["offset"]};function fx(t,e,r){void 0===r&&(r=!1);var o,n,i=y_(e),s=y_(e)&&function(t){var e=t.getBoundingClientRect(),r=S_(e.width)/t.offsetWidth||1,o=S_(e.height)/t.offsetHeight||1;return 1!==r||1!==o}(e),a=R_(e),l=A_(t,s,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!r)&&(("body"!==g_(e)||tx(a))&&(c=(o=e)!==v_(o)&&y_(o)?{scrollLeft:(n=o).scrollLeft,scrollTop:n.scrollTop}:Y_(o)),y_(e)?((d=A_(e,!0)).x+=e.clientLeft,d.y+=e.clientTop):a&&(d.x=Z_(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function hx(t){var e=new Map,r=new Set,o=[];function n(t){r.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!r.has(t)){var o=e.get(t);o&&n(o)}})),o.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){r.has(t.name)||n(t)})),o}var gx={placement:"bottom",modifiers:[],strategy:"absolute"};function vx(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function mx(t){void 0===t&&(t={});var e=t,r=e.defaultModifiers,o=void 0===r?[]:r,n=e.defaultOptions,i=void 0===n?gx:n;return function(t,e,r){void 0===r&&(r=i);var n,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},gx,i),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(r){var n="function"==typeof r?r(a.options):r;u(),a.options=Object.assign({},i,a.options,n),a.scrollParents={reference:m_(t)?rx(t):t.contextElement?rx(t.contextElement):[],popper:rx(e)};var s,c,p=function(t){var e=hx(t);return h_.reduce((function(t,r){return t.concat(e.filter((function(t){return t.phase===r})))}),[])}((s=[].concat(o,a.options.modifiers),c=s.reduce((function(t,e){var r=t[e.name];return t[e.name]=r?Object.assign({},r,e,{options:Object.assign({},r.options,e.options),data:Object.assign({},r.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return a.orderedModifiers=p.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,r=t.options,o=void 0===r?{}:r,n=t.effect;if("function"==typeof n){var i=n({state:a,name:e,instance:d,options:o});l.push(i||function(){})}})),d.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,r=t.popper;if(vx(e,r)){a.rects={reference:fx(e,P_(r),"fixed"===a.options.strategy),popper:O_(r)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var o=0;o<a.orderedModifiers.length;o++)if(!0!==a.reset){var n=a.orderedModifiers[o],i=n.fn,s=n.options,l=void 0===s?{}:s,u=n.name;"function"==typeof i&&(a=i({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,o=-1}}},update:(n=function(){return new Promise((function(t){d.forceUpdate(),t(a)}))},function(){return s||(s=new Promise((function(t){Promise.resolve().then((function(){s=void 0,t(n())}))}))),s}),destroy:function(){u(),c=!0}};if(!vx(t,e))return d;function u(){l.forEach((function(t){return t()})),l=[]}return d.setOptions(r).then((function(t){!c&&r.onFirstUpdate&&r.onFirstUpdate(t)})),d}}var yx=mx(),wx=mx({defaultModifiers:[K_,px,B_,__,ux,ax,bx,H_,dx]}),_x=mx({defaultModifiers:[K_,px,B_,__]});const xx=new Map,Cx={set(t,e,r){xx.has(t)||xx.set(t,new Map);const o=xx.get(t);o.has(e)||0===o.size?o.set(e,r):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`)},get:(t,e)=>xx.has(t)&&xx.get(t).get(e)||null,remove(t,e){if(!xx.has(t))return;const r=xx.get(t);r.delete(e),0===r.size&&xx.delete(t)}},kx="transitionend",Sx=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),Ex=t=>{t.dispatchEvent(new Event(kx))},Tx=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),Ax=t=>Tx(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(Sx(t)):null,Ox=t=>{if(!Tx(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),r=t.closest("details:not([open])");if(!r)return e;if(r!==t){const e=t.closest("summary");if(e&&e.parentNode!==r)return!1;if(null===e)return!1}return e},$x=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),Ix=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?Ix(t.parentNode):null},jx=()=>{},Rx=t=>{t.offsetHeight},Dx=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Lx=[],Px=()=>"rtl"===document.documentElement.dir,Mx=t=>{var e;e=()=>{const e=Dx();if(e){const r=t.NAME,o=e.fn[r];e.fn[r]=t.jQueryInterface,e.fn[r].Constructor=t,e.fn[r].noConflict=()=>(e.fn[r]=o,t.jQueryInterface)}},"loading"===document.readyState?(Lx.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of Lx)t()})),Lx.push(e)):e()},Nx=(t,e=[],r=t)=>"function"==typeof t?t(...e):r,zx=(t,e,r=!0)=>{if(!r)return void Nx(t);const o=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:r}=window.getComputedStyle(t);const o=Number.parseFloat(e),n=Number.parseFloat(r);return o||n?(e=e.split(",")[0],r=r.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(r))):0})(e)+5;let n=!1;const i=({target:r})=>{r===e&&(n=!0,e.removeEventListener(kx,i),Nx(t))};e.addEventListener(kx,i),setTimeout((()=>{n||Ex(e)}),o)},qx=(t,e,r,o)=>{const n=t.length;let i=t.indexOf(e);return-1===i?!r&&o?t[n-1]:t[0]:(i+=r?1:-1,o&&(i=(i+n)%n),t[Math.max(0,Math.min(i,n-1))])},Hx=/[^.]*(?=\..*)\.|.*/,Vx=/\..*/,Ux=/::\d+$/,Fx={};let Bx=1;const Wx={mouseenter:"mouseover",mouseleave:"mouseout"},Kx=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 Xx(t,e){return e&&`${e}::${Bx++}`||t.uidEvent||Bx++}function Gx(t){const e=Xx(t);return t.uidEvent=e,Fx[e]=Fx[e]||{},Fx[e]}function Jx(t,e,r=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===r))}function Qx(t,e,r){const o="string"==typeof e,n=o?r:e||r;let i=eC(t);return Kx.has(i)||(i=t),[o,n,i]}function Yx(t,e,r,o,n){if("string"!=typeof e||!t)return;let[i,s,a]=Qx(e,r,o);if(e in Wx){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};s=t(s)}const l=Gx(t),c=l[a]||(l[a]={}),d=Jx(c,s,i?r:null);if(d)return void(d.oneOff=d.oneOff&&n);const u=Xx(s,e.replace(Hx,"")),p=i?function(t,e,r){return function o(n){const i=t.querySelectorAll(e);for(let{target:s}=n;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return oC(n,{delegateTarget:s}),o.oneOff&&rC.off(t,n.type,e,r),r.apply(s,[n])}}(t,r,s):function(t,e){return function r(o){return oC(o,{delegateTarget:t}),r.oneOff&&rC.off(t,o.type,e),e.apply(t,[o])}}(t,s);p.delegationSelector=i?r:null,p.callable=s,p.oneOff=n,p.uidEvent=u,c[u]=p,t.addEventListener(a,p,i)}function Zx(t,e,r,o,n){const i=Jx(e[r],o,n);i&&(t.removeEventListener(r,i,Boolean(n)),delete e[r][i.uidEvent])}function tC(t,e,r,o){const n=e[r]||{};for(const[i,s]of Object.entries(n))i.includes(o)&&Zx(t,e,r,s.callable,s.delegationSelector)}function eC(t){return t=t.replace(Vx,""),Wx[t]||t}const rC={on(t,e,r,o){Yx(t,e,r,o,!1)},one(t,e,r,o){Yx(t,e,r,o,!0)},off(t,e,r,o){if("string"!=typeof e||!t)return;const[n,i,s]=Qx(e,r,o),a=s!==e,l=Gx(t),c=l[s]||{},d=e.startsWith(".");if(void 0===i){if(d)for(const r of Object.keys(l))tC(t,l,r,e.slice(1));for(const[r,o]of Object.entries(c)){const n=r.replace(Ux,"");a&&!e.includes(n)||Zx(t,l,s,o.callable,o.delegationSelector)}}else{if(!Object.keys(c).length)return;Zx(t,l,s,i,n?r:null)}},trigger(t,e,r){if("string"!=typeof e||!t)return null;const o=Dx();let n=null,i=!0,s=!0,a=!1;e!==eC(e)&&o&&(n=o.Event(e,r),o(t).trigger(n),i=!n.isPropagationStopped(),s=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());const l=oC(new Event(e,{bubbles:i,cancelable:!0}),r);return a&&l.preventDefault(),s&&t.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function oC(t,e={}){for(const[r,o]of Object.entries(e))try{t[r]=o}catch(e){Object.defineProperty(t,r,{configurable:!0,get:()=>o})}return t}function nC(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function iC(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const sC={setDataAttribute(t,e,r){t.setAttribute(`data-bs-${iC(e)}`,r)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${iC(e)}`)},getDataAttributes(t){if(!t)return{};const e={},r=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const o of r){let r=o.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),e[r]=nC(t.dataset[o])}return e},getDataAttribute:(t,e)=>nC(t.getAttribute(`data-bs-${iC(e)}`))};class aC{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const r=Tx(e)?sC.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof r?r:{},...Tx(e)?sC.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[o,n]of Object.entries(e)){const e=t[o],i=Tx(e)?"element":null==(r=e)?`${r}`:Object.prototype.toString.call(r).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(i))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${o}" provided type "${i}" but expected type "${n}".`)}var r}}class lC extends aC{constructor(t,e){super(),(t=Ax(t))&&(this._element=t,this._config=this._getConfig(e),Cx.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Cx.remove(this._element,this.constructor.DATA_KEY),rC.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,r=!0){zx(t,e,r)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Cx.get(Ax(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const cC=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let r=t.getAttribute("href");if(!r||!r.includes("#")&&!r.startsWith("."))return null;r.includes("#")&&!r.startsWith("#")&&(r=`#${r.split("#")[1]}`),e=r&&"#"!==r?r.trim():null}return e?e.split(",").map((t=>Sx(t))).join(","):null},dC={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const r=[];let o=t.parentNode.closest(e);for(;o;)r.push(o),o=o.parentNode.closest(e);return r},prev(t,e){let r=t.previousElementSibling;for(;r;){if(r.matches(e))return[r];r=r.previousElementSibling}return[]},next(t,e){let r=t.nextElementSibling;for(;r;){if(r.matches(e))return[r];r=r.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!$x(t)&&Ox(t)))},getSelectorFromElement(t){const e=cC(t);return e&&dC.findOne(e)?e:null},getElementFromSelector(t){const e=cC(t);return e?dC.findOne(e):null},getMultipleElementsFromSelector(t){const e=cC(t);return e?dC.find(e):[]}},uC=(t,e="hide")=>{const r=`click.dismiss${t.EVENT_KEY}`,o=t.NAME;rC.on(document,r,`[data-bs-dismiss="${o}"]`,(function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),$x(this))return;const n=dC.getElementFromSelector(this)||this.closest(`.${o}`);t.getOrCreateInstance(n)[e]()}))},pC=".bs.alert",bC=`close${pC}`,fC=`closed${pC}`;class hC extends lC{static get NAME(){return"alert"}close(){if(rC.trigger(this._element,bC).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),rC.trigger(this._element,fC),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=hC.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}uC(hC,"close"),Mx(hC);const gC='[data-bs-toggle="button"]';class vC extends lC{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=vC.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}rC.on(document,"click.bs.button.data-api",gC,(t=>{t.preventDefault();const e=t.target.closest(gC);vC.getOrCreateInstance(e).toggle()})),Mx(vC);const mC=".bs.swipe",yC=`touchstart${mC}`,wC=`touchmove${mC}`,_C=`touchend${mC}`,xC=`pointerdown${mC}`,CC=`pointerup${mC}`,kC={endCallback:null,leftCallback:null,rightCallback:null},SC={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class EC extends aC{constructor(t,e){super(),this._element=t,t&&EC.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return kC}static get DefaultType(){return SC}static get NAME(){return"swipe"}dispose(){rC.off(this._element,mC)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),Nx(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&Nx(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(rC.on(this._element,xC,(t=>this._start(t))),rC.on(this._element,CC,(t=>this._end(t))),this._element.classList.add("pointer-event")):(rC.on(this._element,yC,(t=>this._start(t))),rC.on(this._element,wC,(t=>this._move(t))),rC.on(this._element,_C,(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const TC=".bs.carousel",AC=".data-api",OC="ArrowLeft",$C="ArrowRight",IC="next",jC="prev",RC="left",DC="right",LC=`slide${TC}`,PC=`slid${TC}`,MC=`keydown${TC}`,NC=`mouseenter${TC}`,zC=`mouseleave${TC}`,qC=`dragstart${TC}`,HC=`load${TC}${AC}`,VC=`click${TC}${AC}`,UC="carousel",FC="active",BC=".active",WC=".carousel-item",KC=BC+WC,XC={[OC]:DC,[$C]:RC},GC={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},JC={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class QC extends lC{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=dC.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===UC&&this.cycle()}static get Default(){return GC}static get DefaultType(){return JC}static get NAME(){return"carousel"}next(){this._slide(IC)}nextWhenVisible(){!document.hidden&&Ox(this._element)&&this.next()}prev(){this._slide(jC)}pause(){this._isSliding&&Ex(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?rC.one(this._element,PC,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void rC.one(this._element,PC,(()=>this.to(t)));const r=this._getItemIndex(this._getActive());if(r===t)return;const o=t>r?IC:jC;this._slide(o,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&rC.on(this._element,MC,(t=>this._keydown(t))),"hover"===this._config.pause&&(rC.on(this._element,NC,(()=>this.pause())),rC.on(this._element,zC,(()=>this._maybeEnableCycle()))),this._config.touch&&EC.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of dC.find(".carousel-item img",this._element))rC.on(t,qC,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(RC)),rightCallback:()=>this._slide(this._directionToOrder(DC)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new EC(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=XC[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=dC.findOne(BC,this._indicatorsElement);e.classList.remove(FC),e.removeAttribute("aria-current");const r=dC.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);r&&(r.classList.add(FC),r.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const r=this._getActive(),o=t===IC,n=e||qx(this._getItems(),r,o,this._config.wrap);if(n===r)return;const i=this._getItemIndex(n),s=e=>rC.trigger(this._element,e,{relatedTarget:n,direction:this._orderToDirection(t),from:this._getItemIndex(r),to:i});if(s(LC).defaultPrevented)return;if(!r||!n)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(i),this._activeElement=n;const l=o?"carousel-item-start":"carousel-item-end",c=o?"carousel-item-next":"carousel-item-prev";n.classList.add(c),Rx(n),r.classList.add(l),n.classList.add(l),this._queueCallback((()=>{n.classList.remove(l,c),n.classList.add(FC),r.classList.remove(FC,c,l),this._isSliding=!1,s(PC)}),r,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return dC.findOne(KC,this._element)}_getItems(){return dC.find(WC,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Px()?t===RC?jC:IC:t===RC?IC:jC}_orderToDirection(t){return Px()?t===jC?RC:DC:t===jC?DC:RC}static jQueryInterface(t){return this.each((function(){const e=QC.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}rC.on(document,VC,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=dC.getElementFromSelector(this);if(!e||!e.classList.contains(UC))return;t.preventDefault();const r=QC.getOrCreateInstance(e),o=this.getAttribute("data-bs-slide-to");return o?(r.to(o),void r._maybeEnableCycle()):"next"===sC.getDataAttribute(this,"slide")?(r.next(),void r._maybeEnableCycle()):(r.prev(),void r._maybeEnableCycle())})),rC.on(window,HC,(()=>{const t=dC.find('[data-bs-ride="carousel"]');for(const e of t)QC.getOrCreateInstance(e)})),Mx(QC);const YC=".bs.collapse",ZC=`show${YC}`,tk=`shown${YC}`,ek=`hide${YC}`,rk=`hidden${YC}`,ok=`click${YC}.data-api`,nk="show",ik="collapse",sk="collapsing",ak=`:scope .${ik} .${ik}`,lk='[data-bs-toggle="collapse"]',ck={parent:null,toggle:!0},dk={parent:"(null|element)",toggle:"boolean"};class uk extends lC{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const r=dC.find(lk);for(const t of r){const e=dC.getSelectorFromElement(t),r=dC.find(e).filter((t=>t===this._element));null!==e&&r.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ck}static get DefaultType(){return dk}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>uk.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(rC.trigger(this._element,ZC).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(ik),this._element.classList.add(sk),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(sk),this._element.classList.add(ik,nk),this._element.style[e]="",rC.trigger(this._element,tk)}),this._element,!0),this._element.style[e]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(rC.trigger(this._element,ek).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Rx(this._element),this._element.classList.add(sk),this._element.classList.remove(ik,nk);for(const t of this._triggerArray){const e=dC.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(sk),this._element.classList.add(ik),rC.trigger(this._element,rk)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(nk)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=Ax(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(lk);for(const e of t){const t=dC.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=dC.find(ak,this._config.parent);return dC.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const r of t)r.classList.toggle("collapsed",!e),r.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const r=uk.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===r[t])throw new TypeError(`No method named "${t}"`);r[t]()}}))}}rC.on(document,ok,lk,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of dC.getMultipleElementsFromSelector(this))uk.getOrCreateInstance(t,{toggle:!1}).toggle()})),Mx(uk);const pk="dropdown",bk=".bs.dropdown",fk=".data-api",hk="ArrowUp",gk="ArrowDown",vk=`hide${bk}`,mk=`hidden${bk}`,yk=`show${bk}`,wk=`shown${bk}`,_k=`click${bk}${fk}`,xk=`keydown${bk}${fk}`,Ck=`keyup${bk}${fk}`,kk="show",Sk='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ek=`${Sk}.${kk}`,Tk=".dropdown-menu",Ak=Px()?"top-end":"top-start",Ok=Px()?"top-start":"top-end",$k=Px()?"bottom-end":"bottom-start",Ik=Px()?"bottom-start":"bottom-end",jk=Px()?"left-start":"right-start",Rk=Px()?"right-start":"left-start",Dk={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Lk={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Pk extends lC{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=dC.next(this._element,Tk)[0]||dC.prev(this._element,Tk)[0]||dC.findOne(Tk,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Dk}static get DefaultType(){return Lk}static get NAME(){return pk}toggle(){return this._isShown()?this.hide():this.show()}show(){if($x(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!rC.trigger(this._element,yk,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))rC.on(t,"mouseover",jx);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(kk),this._element.classList.add(kk),rC.trigger(this._element,wk,t)}}hide(){if($x(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!rC.trigger(this._element,vk,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))rC.off(t,"mouseover",jx);this._popper&&this._popper.destroy(),this._menu.classList.remove(kk),this._element.classList.remove(kk),this._element.setAttribute("aria-expanded","false"),sC.removeDataAttribute(this._menu,"popper"),rC.trigger(this._element,mk,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!Tx(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${pk.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===e)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:Tx(this._config.reference)?t=Ax(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const r=this._getPopperConfig();this._popper=wx(t,this._menu,r)}_isShown(){return this._menu.classList.contains(kk)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return jk;if(t.classList.contains("dropstart"))return Rk;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Ok:Ak:e?Ik:$k}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(sC.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Nx(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const r=dC.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>Ox(t)));r.length&&qx(r,e,t===gk,!r.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=Pk.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=dC.find(Ek);for(const r of e){const e=Pk.getInstance(r);if(!e||!1===e._config.autoClose)continue;const o=t.composedPath(),n=o.includes(e._menu);if(o.includes(e._element)||"inside"===e._config.autoClose&&!n||"outside"===e._config.autoClose&&n)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const i={relatedTarget:e._element};"click"===t.type&&(i.clickEvent=t),e._completeHide(i)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),r="Escape"===t.key,o=[hk,gk].includes(t.key);if(!o&&!r)return;if(e&&!r)return;t.preventDefault();const n=this.matches(Sk)?this:dC.prev(this,Sk)[0]||dC.next(this,Sk)[0]||dC.findOne(Sk,t.delegateTarget.parentNode),i=Pk.getOrCreateInstance(n);if(o)return t.stopPropagation(),i.show(),void i._selectMenuItem(t);i._isShown()&&(t.stopPropagation(),i.hide(),n.focus())}}rC.on(document,xk,Sk,Pk.dataApiKeydownHandler),rC.on(document,xk,Tk,Pk.dataApiKeydownHandler),rC.on(document,_k,Pk.clearMenus),rC.on(document,Ck,Pk.clearMenus),rC.on(document,_k,Sk,(function(t){t.preventDefault(),Pk.getOrCreateInstance(this).toggle()})),Mx(Pk);const Mk="backdrop",Nk="show",zk=`mousedown.bs.${Mk}`,qk={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Hk={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Vk extends aC{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return qk}static get DefaultType(){return Hk}static get NAME(){return Mk}show(t){if(!this._config.isVisible)return void Nx(t);this._append();const e=this._getElement();this._config.isAnimated&&Rx(e),e.classList.add(Nk),this._emulateAnimation((()=>{Nx(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Nk),this._emulateAnimation((()=>{this.dispose(),Nx(t)}))):Nx(t)}dispose(){this._isAppended&&(rC.off(this._element,zk),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=Ax(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),rC.on(t,zk,(()=>{Nx(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){zx(t,this._getElement(),this._config.isAnimated)}}const Uk=".bs.focustrap",Fk=`focusin${Uk}`,Bk=`keydown.tab${Uk}`,Wk="backward",Kk={autofocus:!0,trapElement:null},Xk={autofocus:"boolean",trapElement:"element"};class Gk extends aC{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Kk}static get DefaultType(){return Xk}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),rC.off(document,Uk),rC.on(document,Fk,(t=>this._handleFocusin(t))),rC.on(document,Bk,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,rC.off(document,Uk))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const r=dC.focusableChildren(e);0===r.length?e.focus():this._lastTabNavDirection===Wk?r[r.length-1].focus():r[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?Wk:"forward")}}const Jk=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Qk=".sticky-top",Yk="padding-right",Zk="margin-right";class tS{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Yk,(e=>e+t)),this._setElementAttributes(Jk,Yk,(e=>e+t)),this._setElementAttributes(Qk,Zk,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Yk),this._resetElementAttributes(Jk,Yk),this._resetElementAttributes(Qk,Zk)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,r){const o=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+o)return;this._saveInitialAttribute(t,e);const n=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${r(Number.parseFloat(n))}px`)}))}_saveInitialAttribute(t,e){const r=t.style.getPropertyValue(e);r&&sC.setDataAttribute(t,e,r)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const r=sC.getDataAttribute(t,e);null!==r?(sC.removeDataAttribute(t,e),t.style.setProperty(e,r)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(Tx(t))e(t);else for(const r of dC.find(t,this._element))e(r)}}const eS=".bs.modal",rS=`hide${eS}`,oS=`hidePrevented${eS}`,nS=`hidden${eS}`,iS=`show${eS}`,sS=`shown${eS}`,aS=`resize${eS}`,lS=`click.dismiss${eS}`,cS=`mousedown.dismiss${eS}`,dS=`keydown.dismiss${eS}`,uS=`click${eS}.data-api`,pS="modal-open",bS="show",fS="modal-static",hS={backdrop:!0,focus:!0,keyboard:!0},gS={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class vS extends lC{constructor(t,e){super(t,e),this._dialog=dC.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new tS,this._addEventListeners()}static get Default(){return hS}static get DefaultType(){return gS}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||rC.trigger(this._element,iS,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(pS),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(rC.trigger(this._element,rS).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(bS),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){rC.off(window,eS),rC.off(this._dialog,eS),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Vk({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Gk({trapElement:this._element})}_showElement(t){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 e=dC.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),Rx(this._element),this._element.classList.add(bS),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,rC.trigger(this._element,sS,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){rC.on(this._element,dS,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),rC.on(window,aS,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),rC.on(this._element,cS,(t=>{rC.one(this._element,lS,(e=>{this._element===t.target&&this._element===e.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(pS),this._resetAdjustments(),this._scrollBar.reset(),rC.trigger(this._element,nS)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(rC.trigger(this._element,oS).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(fS)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(fS),this._queueCallback((()=>{this._element.classList.remove(fS),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),r=e>0;if(r&&!t){const t=Px()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!r&&t){const t=Px()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const r=vS.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===r[t])throw new TypeError(`No method named "${t}"`);r[t](e)}}))}}rC.on(document,uS,'[data-bs-toggle="modal"]',(function(t){const e=dC.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),rC.one(e,iS,(t=>{t.defaultPrevented||rC.one(e,nS,(()=>{Ox(this)&&this.focus()}))}));const r=dC.findOne(".modal.show");r&&vS.getInstance(r).hide(),vS.getOrCreateInstance(e).toggle(this)})),uC(vS),Mx(vS);const mS=".bs.offcanvas",yS=".data-api",wS=`load${mS}${yS}`,_S="show",xS="showing",CS="hiding",kS=".offcanvas.show",SS=`show${mS}`,ES=`shown${mS}`,TS=`hide${mS}`,AS=`hidePrevented${mS}`,OS=`hidden${mS}`,$S=`resize${mS}`,IS=`click${mS}${yS}`,jS=`keydown.dismiss${mS}`,RS={backdrop:!0,keyboard:!0,scroll:!1},DS={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class LS extends lC{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return RS}static get DefaultType(){return DS}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||rC.trigger(this._element,SS,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new tS).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(xS),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(_S),this._element.classList.remove(xS),rC.trigger(this._element,ES,{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(rC.trigger(this._element,TS).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(CS),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(_S,CS),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new tS).reset(),rC.trigger(this._element,OS)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new Vk({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():rC.trigger(this._element,AS)}:null})}_initializeFocusTrap(){return new Gk({trapElement:this._element})}_addEventListeners(){rC.on(this._element,jS,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():rC.trigger(this._element,AS))}))}static jQueryInterface(t){return this.each((function(){const e=LS.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}rC.on(document,IS,'[data-bs-toggle="offcanvas"]',(function(t){const e=dC.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),$x(this))return;rC.one(e,OS,(()=>{Ox(this)&&this.focus()}));const r=dC.findOne(kS);r&&r!==e&&LS.getInstance(r).hide(),LS.getOrCreateInstance(e).toggle(this)})),rC.on(window,wS,(()=>{for(const t of dC.find(kS))LS.getOrCreateInstance(t).show()})),rC.on(window,$S,(()=>{for(const t of dC.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&LS.getOrCreateInstance(t).hide()})),uC(LS),Mx(LS);const PS={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},MS=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),NS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,zS=(t,e)=>{const r=t.nodeName.toLowerCase();return e.includes(r)?!MS.has(r)||Boolean(NS.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(r)))},qS={allowList:PS,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},HS={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},VS={entry:"(string|element|function|null)",selector:"(string|element)"};class US extends aC{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return qS}static get DefaultType(){return HS}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,r]of Object.entries(this._config.content))this._setContent(t,r,e);const e=t.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&e.classList.add(...r.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,r]of Object.entries(t))super._typeCheckConfig({selector:e,entry:r},VS)}_setContent(t,e,r){const o=dC.findOne(r,t);o&&((e=this._resolvePossibleFunction(e))?Tx(e)?this._putElementInTemplate(Ax(e),o):this._config.html?o.innerHTML=this._maybeSanitize(e):o.textContent=e:o.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,r){if(!t.length)return t;if(r&&"function"==typeof r)return r(t);const o=(new window.DOMParser).parseFromString(t,"text/html"),n=[].concat(...o.body.querySelectorAll("*"));for(const t of n){const r=t.nodeName.toLowerCase();if(!Object.keys(e).includes(r)){t.remove();continue}const o=[].concat(...t.attributes),n=[].concat(e["*"]||[],e[r]||[]);for(const e of o)zS(e,n)||t.removeAttribute(e.nodeName)}return o.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Nx(t,[this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const FS=new Set(["sanitize","allowList","sanitizeFn"]),BS="fade",WS="show",KS=".tooltip-inner",XS=".modal",GS="hide.bs.modal",JS="hover",QS="focus",YS={AUTO:"auto",TOP:"top",RIGHT:Px()?"left":"right",BOTTOM:"bottom",LEFT:Px()?"right":"left"},ZS={allowList:PS,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"},tE={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 eE extends lC{constructor(t,r){if(void 0===e)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,r),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 ZS}static get DefaultType(){return tE}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),rC.off(this._element.closest(XS),GS,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 t=rC.trigger(this._element,this.constructor.eventName("show")),e=(Ix(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const r=this._getTipElement();this._element.setAttribute("aria-describedby",r.getAttribute("id"));const{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(r),rC.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(r),r.classList.add(WS),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))rC.on(t,"mouseover",jx);this._queueCallback((()=>{rC.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!rC.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(WS),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))rC.off(t,"mouseover",jx);this._activeTrigger.click=!1,this._activeTrigger[QS]=!1,this._activeTrigger[JS]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),rC.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(BS,WS),e.classList.add(`bs-${this.constructor.NAME}-auto`);const r=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",r),this._isAnimated()&&e.classList.add(BS),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new US({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[KS]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(BS)}_isShown(){return this.tip&&this.tip.classList.contains(WS)}_createPopper(t){const e=Nx(this._config.placement,[this,t,this._element]),r=YS[e.toUpperCase()];return wx(this._element,t,this._getPopperConfig(r))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return Nx(t,[this._element])}_getPopperConfig(t){const e={placement:t,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:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...Nx(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)rC.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===JS?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),r=e===JS?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");rC.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?QS:JS]=!0,e._enter()})),rC.on(this._element,r,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?QS:JS]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},rC.on(this._element.closest(XS),GS,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),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(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=sC.getDataAttributes(this._element);for(const t of Object.keys(e))FS.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:Ax(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,r]of Object.entries(this._config))this.constructor.Default[e]!==r&&(t[e]=r);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each((function(){const e=eE.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Mx(eE);const rE=".popover-header",oE=".popover-body",nE={...eE.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"},iE={...eE.DefaultType,content:"(null|string|element|function)"};class sE extends eE{static get Default(){return nE}static get DefaultType(){return iE}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[rE]:this._getTitle(),[oE]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=sE.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Mx(sE);const aE=".bs.scrollspy",lE=`activate${aE}`,cE=`click${aE}`,dE=`load${aE}.data-api`,uE="active",pE="[href]",bE=".nav-link",fE=`${bE}, .nav-item > ${bE}, .list-group-item`,hE={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},gE={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class vE extends lC{constructor(t,e){super(t,e),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 hE}static get DefaultType(){return gE}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=Ax(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(rC.off(this._config.target,cE),rC.on(this._config.target,cE,pE,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const r=this._rootElement||window,o=e.offsetTop-this._element.offsetTop;if(r.scrollTo)return void r.scrollTo({top:o,behavior:"smooth"});r.scrollTop=o}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),r=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},o=(this._rootElement||document.documentElement).scrollTop,n=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const i of t){if(!i.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(i));continue}const t=i.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&t){if(r(i),!o)return}else n||t||r(i)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=dC.find(pE,this._config.target);for(const e of t){if(!e.hash||$x(e))continue;const t=dC.findOne(decodeURI(e.hash),this._element);Ox(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(uE),this._activateParents(t),rC.trigger(this._element,lE,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))dC.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(uE);else for(const e of dC.parents(t,".nav, .list-group"))for(const t of dC.prev(e,fE))t.classList.add(uE)}_clearActiveClass(t){t.classList.remove(uE);const e=dC.find(`${pE}.${uE}`,t);for(const t of e)t.classList.remove(uE)}static jQueryInterface(t){return this.each((function(){const e=vE.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}rC.on(window,dE,(()=>{for(const t of dC.find('[data-bs-spy="scroll"]'))vE.getOrCreateInstance(t)})),Mx(vE);const mE=".bs.tab",yE=`hide${mE}`,wE=`hidden${mE}`,_E=`show${mE}`,xE=`shown${mE}`,CE=`click${mE}`,kE=`keydown${mE}`,SE=`load${mE}`,EE="ArrowLeft",TE="ArrowRight",AE="ArrowUp",OE="ArrowDown",$E="Home",IE="End",jE="active",RE="fade",DE="show",LE=".dropdown-toggle",PE=`:not(${LE})`,ME='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',NE=`.nav-link${PE}, .list-group-item${PE}, [role="tab"]${PE}, ${ME}`,zE=`.${jE}[data-bs-toggle="tab"], .${jE}[data-bs-toggle="pill"], .${jE}[data-bs-toggle="list"]`;class qE extends lC{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),rC.on(this._element,kE,(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),r=e?rC.trigger(e,yE,{relatedTarget:t}):null;rC.trigger(t,_E,{relatedTarget:e}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(jE),this._activate(dC.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),rC.trigger(t,xE,{relatedTarget:e})):t.classList.add(DE)}),t,t.classList.contains(RE)))}_deactivate(t,e){t&&(t.classList.remove(jE),t.blur(),this._deactivate(dC.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),rC.trigger(t,wE,{relatedTarget:e})):t.classList.remove(DE)}),t,t.classList.contains(RE)))}_keydown(t){if(![EE,TE,AE,OE,$E,IE].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!$x(t)));let r;if([$E,IE].includes(t.key))r=e[t.key===$E?0:e.length-1];else{const o=[TE,OE].includes(t.key);r=qx(e,t.target,o,!0)}r&&(r.focus({preventScroll:!0}),qE.getOrCreateInstance(r).show())}_getChildren(){return dC.find(NE,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),r=this._getOuterElement(t);t.setAttribute("aria-selected",e),r!==t&&this._setAttributeIfNotExists(r,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=dC.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const r=this._getOuterElement(t);if(!r.classList.contains("dropdown"))return;const o=(t,o)=>{const n=dC.findOne(t,r);n&&n.classList.toggle(o,e)};o(LE,jE),o(".dropdown-menu",DE),r.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,r){t.hasAttribute(e)||t.setAttribute(e,r)}_elemIsActive(t){return t.classList.contains(jE)}_getInnerElement(t){return t.matches(NE)?t:dC.findOne(NE,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=qE.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}rC.on(document,CE,ME,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),$x(this)||qE.getOrCreateInstance(this).show()})),rC.on(window,SE,(()=>{for(const t of dC.find(zE))qE.getOrCreateInstance(t)})),Mx(qE);const HE=".bs.toast",VE=`mouseover${HE}`,UE=`mouseout${HE}`,FE=`focusin${HE}`,BE=`focusout${HE}`,WE=`hide${HE}`,KE=`hidden${HE}`,XE=`show${HE}`,GE=`shown${HE}`,JE="hide",QE="show",YE="showing",ZE={animation:"boolean",autohide:"boolean",delay:"number"},tT={animation:!0,autohide:!0,delay:5e3};class eT extends lC{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return tT}static get DefaultType(){return ZE}static get NAME(){return"toast"}show(){rC.trigger(this._element,XE).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(JE),Rx(this._element),this._element.classList.add(QE,YE),this._queueCallback((()=>{this._element.classList.remove(YE),rC.trigger(this._element,GE),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(rC.trigger(this._element,WE).defaultPrevented||(this._element.classList.add(YE),this._queueCallback((()=>{this._element.classList.add(JE),this._element.classList.remove(YE,QE),rC.trigger(this._element,KE)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(QE),super.dispose()}isShown(){return this._element.classList.contains(QE)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const r=t.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){rC.on(this._element,VE,(t=>this._onInteraction(t,!0))),rC.on(this._element,UE,(t=>this._onInteraction(t,!1))),rC.on(this._element,FE,(t=>this._onInteraction(t,!0))),rC.on(this._element,BE,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=eT.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}uC(eT),Mx(eT);var rT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},oT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let nT=class extends Sw{constructor(){super(...arguments),this.ariaExpanded="false",this.ariaLabel="Toggle menu",this.buttonType="button",this.collapseToggle="collapse",this.dblClickClass="qbo-doubleclick",this.dropdownId="qboMainMenu",this.dropdownToggle="dropdown",this.iconClass="qbo-icon",this.liLinkToggleClass="qbo-dropdown",this.liLinkClass="qbo-nav-item",this.liAMenuClass="qbo-dropdown-item",this.navClass="qbo-mainmenu",this.popoverContainer="body",this.popoverHtml="false",this.popoverPlacement="bottom",this.popoverToggle="popover",this.popoverTrigger="hover",this.spanMenuClass="qbo-submenuexpand",this.spanMenuValue=">",this.ulMainMenuToggleClass="qbo-dropdown-mainmenu",this.ulSubMenuClass="submenu",this.ulSubMenuToggleClass="dropdown-menu",this.apiEndpoint=new URL("config/mainmenu",this.baseURI),this.renderInHost=!0,this.targetElement=null,this.handleResize=()=>{window.innerWidth<992?this.renderRoot.querySelectorAll("button").forEach((function(t){null!=t&&t instanceof HTMLElement&&t.hasAttribute("aria-expanded")&&"true"==t.getAttribute("aria-expanded")&&t.click()})):this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass} .${this.ulSubMenuClass}`).forEach((function(t){null!=t&&t instanceof HTMLElement&&t.hasAttribute("style")&&t.removeAttribute("style")}))}}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize)}disconnectedCallback(){window.removeEventListener("resize",this.handleResize),super.disconnectedCallback()}updated(t){if(super.updated(t),null!=t.get("jsonData")){this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass}`).forEach((t=>{t.addEventListener("click",(function(t){t.stopPropagation()}))}));const t=this.ulSubMenuClass;this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass} a`).forEach((function(e){e.addEventListener("click",(e=>{if(null!=e.currentTarget&&e.currentTarget instanceof HTMLElement&&window.innerWidth<992){const r=e.currentTarget.nextElementSibling;null!=r&&r instanceof HTMLElement&&r.classList.contains(t)&&(e.preventDefault(),r.style.display="block"==r.style.display?"none":"block")}}))})),this.renderRoot.querySelectorAll(`[data-bs-toggle="${this.popoverToggle}"]`).forEach((function(t){new sE(t)}))}}renderImage(t){return null!=t?At`<img src="${t}"/><span/>`:At``}renderMenu(t,e,r){let o=At``;const n=null!=t&&null!=t.Menu?t.Menu:t;return null!=n&&(n.forEach?n.forEach((t=>{o=null!=t.Menu?At`${o}${this.renderMenuDropdown(t,r)}`:"Divider"==t.Type?At`${o}${this.renderMenuDivider()}`:e?At`${o}${this.renderMenuDropdownLink(t.URL,t.Text,t.Icon)}`:At`${o}${this.renderMenuLink(t)}`})):o=null!=n.Menu?At`${o}${this.renderMenuDropdown(n,r)}`:"Divider"==n.Type?At`${o}${this.renderMenuDivider()}`:e?At`${o}${this.renderMenuDropdownLink(n.URL,n.Text,n.Icon)}`:At`${o}${this.renderMenuLink(n)}`),At`${o}`}renderMenuDivider(){return At`<li><hr/></li>`}renderMenuDropdown(t,e){const r=null!=t.Icon&&""!=t.Icon?At`<i class="${t.Icon} ${this.iconClass}" />`:"";return e?At`<li>
|
|
258
258
|
<a class="${this.liAMenuClass}" href="${t.URL}">
|
|
259
259
|
${r}<span>${t.Text}</span>
|
|
260
260
|
<span class="${this.spanMenuClass}">${this.spanMenuValue}</span>
|