@castlabs/ui 7.15.0 → 7.15.1
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");function fi(e){var i=typeof e;return e!=null&&(i=="object"||i=="function")}var rc=typeof global=="object"&&global&&global.Object===Object&&global,lc=typeof self=="object"&&self&&self.Object===Object&&self,pr=rc||lc||Function("return this")(),no=function(){return pr.Date.now()},ac=/\s/;function cc(e){for(var i=e.length;i--&&ac.test(e.charAt(i)););return i}var dc=/^\s+/;function uc(e){return e&&e.slice(0,cc(e)+1).replace(dc,"")}var pi=pr.Symbol,hr=Object.prototype,fc=hr.hasOwnProperty,pc=hr.toString,Mn=pi?pi.toStringTag:void 0;function hc(e){var i=fc.call(e,Mn),l=e[Mn];try{e[Mn]=void 0;var r=!0}catch{}var c=pc.call(e);return r&&(i?e[Mn]=l:delete e[Mn]),c}var mc=Object.prototype,gc=mc.toString;function vc(e){return gc.call(e)}var bc="[object Null]",yc="[object Undefined]",or=pi?pi.toStringTag:void 0;function _c(e){return e==null?e===void 0?yc:bc:or&&or in Object(e)?hc(e):vc(e)}function Ec(e){return e!=null&&typeof e=="object"}var Cc="[object Symbol]";function kc(e){return typeof e=="symbol"||Ec(e)&&_c(e)==Cc}var sr=NaN,$c=/^[-+]0x[0-9a-f]+$/i,Sc=/^0b[01]+$/i,wc=/^0o[0-7]+$/i,Nc=parseInt;function rr(e){if(typeof e=="number")return e;if(kc(e))return sr;if(fi(e)){var i=typeof e.valueOf=="function"?e.valueOf():e;e=fi(i)?i+"":i}if(typeof e!="string")return e===0?e:+e;e=uc(e);var l=Sc.test(e);return l||wc.test(e)?Nc(e.slice(2),l?2:8):$c.test(e)?sr:+e}var Tc="Expected a function",Oc=Math.max,Ac=Math.min;function ai(e,i,l){var r,c,u,d,v,k,A=0,W=!1,M=!1,G=!0;if(typeof e!="function")throw new TypeError(Tc);i=rr(i)||0,fi(l)&&(W=!!l.leading,M="maxWait"in l,u=M?Oc(rr(l.maxWait)||0,i):u,G="trailing"in l?!!l.trailing:G);function Y(x){var pe=r,he=c;return r=c=void 0,A=x,d=e.apply(he,pe),d}function re(x){return A=x,v=setTimeout(H,i),W?Y(x):d}function Ee(x){var pe=x-k,he=x-A,ot=i-pe;return M?Ac(ot,u-he):ot}function le(x){var pe=x-k,he=x-A;return k===void 0||pe>=i||pe<0||M&&he>=u}function H(){var x=no();if(le(x))return X(x);v=setTimeout(H,Ee(x))}function X(x){return v=void 0,G&&r?Y(x):(r=c=void 0,d)}function J(){v!==void 0&&clearTimeout(v),A=0,r=k=c=v=void 0}function it(){return v===void 0?d:X(no())}function Ae(){var x=no(),pe=le(x);if(r=arguments,c=this,k=x,pe){if(v===void 0)return re(k);if(M)return clearTimeout(v),v=setTimeout(H,i),Y(k)}return v===void 0&&(v=setTimeout(H,i)),d}return Ae.cancel=J,Ae.flush=it,Ae}var Dc="Expected a function";function Bc(e,i,l){var r=!0,c=!0;if(typeof e!="function")throw new TypeError(Dc);return fi(l)&&(r="leading"in l?!!l.leading:r,c="trailing"in l?!!l.trailing:c),ai(e,i,{leading:r,maxWait:i,trailing:c})}var Ct=function(){return Ct=Object.assign||function(i){for(var l,r=1,c=arguments.length;r<c;r++){l=arguments[r];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(i[u]=l[u])}return i},Ct.apply(this,arguments)};function mr(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function gr(e){return!e||!e.ownerDocument?document:e.ownerDocument}var vr=function(e){var i={},l=Array.prototype.reduce.call(e,function(r,c){var u=c.name.match(/data-simplebar-(.+)/);if(u){var d=u[1].replace(/\W+(.)/g,function(v,k){return k.toUpperCase()});switch(c.value){case"true":r[d]=!0;break;case"false":r[d]=!1;break;case void 0:r[d]=!0;break;default:r[d]=c.value}}return r},i);return l};function br(e,i){var l;e&&(l=e.classList).add.apply(l,i.split(" "))}function yr(e,i){e&&i.split(" ").forEach(function(l){e.classList.remove(l)})}function _r(e){return".".concat(e.split(" ").join("."))}var ao=!!(typeof window<"u"&&window.document&&window.document.createElement),Vc=Object.freeze({__proto__:null,addClasses:br,canUseDOM:ao,classNamesToQuery:_r,getElementDocument:gr,getElementWindow:mr,getOptions:vr,removeClasses:yr}),Et=null,lr=null;ao&&window.addEventListener("resize",function(){lr!==window.devicePixelRatio&&(lr=window.devicePixelRatio,Et=null)});function ar(){if(Et===null){if(typeof document>"u")return Et=0,Et;var e=document.body,i=document.createElement("div");i.classList.add("simplebar-hide-scrollbar"),e.appendChild(i);var l=i.getBoundingClientRect().right;e.removeChild(i),Et=l}return Et}var Fe=mr,io=gr,Mc=vr,je=br,Ue=yr,se=_r,ci=(function(){function e(i,l){l===void 0&&(l={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var c=Fe(r.el);r.scrollXTicking||(c.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(c.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,je(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){Ue(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(je(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){Ue(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(c){r.mouseX=c.clientX,r.mouseY=c.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(c){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var u,d;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(u=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(d=r.isWithinBounds(r.axis.y.track.rect)),(u||d)&&(c.stopPropagation(),c.type==="pointerdown"&&c.pointerType!=="touch"&&(u&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(c,"x"):r.onTrackClick(c,"x")),d&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(c,"y"):r.onTrackClick(c,"y"))))}},this.drag=function(c){var u,d,v,k,A,W,M,G,Y,re,Ee;if(!(!r.draggedAxis||!r.contentWrapperEl)){var le,H=r.axis[r.draggedAxis].track,X=(d=(u=H.rect)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].sizeAttr])!==null&&d!==void 0?d:0,J=r.axis[r.draggedAxis].scrollbar,it=(k=(v=r.contentWrapperEl)===null||v===void 0?void 0:v[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&k!==void 0?k:0,Ae=parseInt((W=(A=r.elStyles)===null||A===void 0?void 0:A[r.axis[r.draggedAxis].sizeAttr])!==null&&W!==void 0?W:"0px",10);c.preventDefault(),c.stopPropagation(),r.draggedAxis==="y"?le=c.pageY:le=c.pageX;var x=le-((G=(M=H.rect)===null||M===void 0?void 0:M[r.axis[r.draggedAxis].offsetAttr])!==null&&G!==void 0?G:0)-r.axis[r.draggedAxis].dragOffset;x=r.draggedAxis==="x"&&r.isRtl?((re=(Y=H.rect)===null||Y===void 0?void 0:Y[r.axis[r.draggedAxis].sizeAttr])!==null&&re!==void 0?re:0)-J.size-x:x;var pe=x/(X-J.size),he=pe*(it-Ae);r.draggedAxis==="x"&&r.isRtl&&(he=!((Ee=e.getRtlHelpers())===null||Ee===void 0)&&Ee.isScrollingToNegative?-he:he),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=he}},this.onEndDrag=function(c){r.isDragging=!1;var u=io(r.el),d=Fe(r.el);c.preventDefault(),c.stopPropagation(),Ue(r.el,r.classNames.dragging),r.onStopScrolling(),u.removeEventListener("mousemove",r.drag,!0),u.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=d.setTimeout(function(){u.removeEventListener("click",r.preventClick,!0),u.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(c){c.preventDefault(),c.stopPropagation()},this.el=i,this.options=Ct(Ct({},e.defaultOptions),l),this.classNames=Ct(Ct({},e.defaultOptions.classNames),l.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Bc(this._onMouseMove,64),this.onWindowResize=ai(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=ai(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=ai(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var i=document.createElement("div");i.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var l=i.firstElementChild,r=l?.firstElementChild;if(!r)return null;document.body.appendChild(l),l.scrollLeft=0;var c=e.getOffset(l),u=e.getOffset(r);l.scrollLeft=-999;var d=e.getOffset(r);return document.body.removeChild(l),e.rtlHelpers={isScrollOriginAtZero:c.left!==u.left,isScrollingToNegative:u.left!==d.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:ar()}catch{return ar()}},e.getOffset=function(i){var l=i.getBoundingClientRect(),r=io(i),c=Fe(i);return{top:l.top+(c.pageYOffset||r.documentElement.scrollTop),left:l.left+(c.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){ao&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var i,l;this.wrapperEl=this.el.querySelector(se(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(se(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(se(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(se(this.classNames.offset)),this.maskEl=this.el.querySelector(se(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,se(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(se(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(se(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(se(this.classNames.track)).concat(se(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(se(this.classNames.track)).concat(se(this.classNames.vertical))),this.axis.x.scrollbar.el=((i=this.axis.x.track.el)===null||i===void 0?void 0:i.querySelector(se(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((l=this.axis.y.track.el)===null||l===void 0?void 0:l.querySelector(se(this.classNames.scrollbar)))||null,this.options.autoHide||(je(this.axis.x.scrollbar.el,this.classNames.visible),je(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var i=this,l,r=Fe(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(l=this.contentWrapperEl)===null||l===void 0||l.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var c=!1,u=r.ResizeObserver||ResizeObserver;this.resizeObserver=new u(function(){c&&r.requestAnimationFrame(function(){i.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){c=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){i.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var i=Fe(this.el);this.elStyles=i.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var l=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,c=this.heightAutoObserverEl.offsetWidth<=1||l>0,u=this.contentWrapperEl.offsetWidth,d=this.elStyles.overflowX,v=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var k=this.contentEl.scrollHeight,A=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=c?"".concat(l||A,"px"):"auto",this.placeholderEl.style.height="".concat(k,"px");var W=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=l!==0&&A>l,this.axis.y.isOverflowing=k>W,this.axis.x.isOverflowing=d==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=v==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var M=this.axis.x.isOverflowing?this.scrollbarWidth:0,G=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&A>u-G,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&k>W-M,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(i){var l,r;if(i===void 0&&(i="y"),!this.axis[i].isOverflowing||!this.contentEl)return 0;var c=this.contentEl[this.axis[i].scrollSizeAttr],u=(r=(l=this.axis[i].track.el)===null||l===void 0?void 0:l[this.axis[i].offsetSizeAttr])!==null&&r!==void 0?r:0,d=u/c,v;return v=Math.max(~~(d*u),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(v=Math.min(v,this.options.scrollbarMaxSize)),v},e.prototype.positionScrollbar=function(i){var l,r,c;i===void 0&&(i="y");var u=this.axis[i].scrollbar;if(!(!this.axis[i].isOverflowing||!this.contentWrapperEl||!u.el||!this.elStyles)){var d=this.contentWrapperEl[this.axis[i].scrollSizeAttr],v=((l=this.axis[i].track.el)===null||l===void 0?void 0:l[this.axis[i].offsetSizeAttr])||0,k=parseInt(this.elStyles[this.axis[i].sizeAttr],10),A=this.contentWrapperEl[this.axis[i].scrollOffsetAttr];A=i==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-A:A,i==="x"&&this.isRtl&&(A=!((c=e.getRtlHelpers())===null||c===void 0)&&c.isScrollingToNegative?A:-A);var W=A/(d-k),M=~~((v-u.size)*W);M=i==="x"&&this.isRtl?-M+(v-u.size):M,u.el.style.transform=i==="x"?"translate3d(".concat(M,"px, 0, 0)"):"translate3d(0, ".concat(M,"px, 0)")}},e.prototype.toggleTrackVisibility=function(i){i===void 0&&(i="y");var l=this.axis[i].track.el,r=this.axis[i].scrollbar.el;!l||!r||!this.contentWrapperEl||(this.axis[i].isOverflowing||this.axis[i].forceVisible?(l.style.visibility="visible",this.contentWrapperEl.style[this.axis[i].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(i))):(l.style.visibility="hidden",this.contentWrapperEl.style[this.axis[i].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(i))),this.axis[i].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(i){i===void 0&&(i="y"),this.axis[i].isOverflowing&&!this.axis[i].scrollbar.isVisible&&(je(this.axis[i].scrollbar.el,this.classNames.visible),this.axis[i].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(i){i===void 0&&(i="y"),!this.isDragging&&this.axis[i].isOverflowing&&this.axis[i].scrollbar.isVisible&&(Ue(this.axis[i].scrollbar.el,this.classNames.visible),this.axis[i].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(i){i===void 0&&(i="y");var l=this.axis[i];!l.track.el||!l.scrollbar.el||(l.track.rect=l.track.el.getBoundingClientRect(),l.scrollbar.rect=l.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(l.track.rect)?(this.showScrollbar(i),je(l.track.el,this.classNames.hover),this.isWithinBounds(l.scrollbar.rect)?je(l.scrollbar.el,this.classNames.hover):Ue(l.scrollbar.el,this.classNames.hover)):(Ue(l.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)))},e.prototype.onMouseLeaveForAxis=function(i){i===void 0&&(i="y"),Ue(this.axis[i].track.el,this.classNames.hover),Ue(this.axis[i].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)},e.prototype.onDragStart=function(i,l){var r;l===void 0&&(l="y"),this.isDragging=!0;var c=io(this.el),u=Fe(this.el),d=this.axis[l].scrollbar,v=l==="y"?i.pageY:i.pageX;this.axis[l].dragOffset=v-(((r=d.rect)===null||r===void 0?void 0:r[this.axis[l].offsetAttr])||0),this.draggedAxis=l,je(this.el,this.classNames.dragging),c.addEventListener("mousemove",this.drag,!0),c.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(c.addEventListener("click",this.preventClick,!0),c.addEventListener("dblclick",this.preventClick,!0)):(u.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(i,l){var r=this,c,u,d,v;l===void 0&&(l="y");var k=this.axis[l];if(!(!this.options.clickOnTrack||!k.scrollbar.el||!this.contentWrapperEl)){i.preventDefault();var A=Fe(this.el);this.axis[l].scrollbar.rect=k.scrollbar.el.getBoundingClientRect();var W=this.axis[l].scrollbar,M=(u=(c=W.rect)===null||c===void 0?void 0:c[this.axis[l].offsetAttr])!==null&&u!==void 0?u:0,G=parseInt((v=(d=this.elStyles)===null||d===void 0?void 0:d[this.axis[l].sizeAttr])!==null&&v!==void 0?v:"0px",10),Y=this.contentWrapperEl[this.axis[l].scrollOffsetAttr],re=l==="y"?this.mouseY-M:this.mouseX-M,Ee=re<0?-1:1,le=Ee===-1?Y-G:Y+G,H=40,X=function(){r.contentWrapperEl&&(Ee===-1?Y>le&&(Y-=H,r.contentWrapperEl[r.axis[l].scrollOffsetAttr]=Y,A.requestAnimationFrame(X)):Y<le&&(Y+=H,r.contentWrapperEl[r.axis[l].scrollOffsetAttr]=Y,A.requestAnimationFrame(X)))};X()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var i=Fe(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),i.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(i){return this.mouseX>=i.left&&this.mouseX<=i.left+i.width&&this.mouseY>=i.top&&this.mouseY<=i.top+i.height},e.prototype.findChild=function(i,l){var r=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector;return Array.prototype.filter.call(i.children,function(c){return r.call(c,l)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=Mc,e.helpers=Vc,e})(),ro=function(e,i){return ro=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,r){l.__proto__=r}||function(l,r){for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(l[c]=r[c])},ro(e,i)};function Lc(e,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");ro(e,i);function l(){this.constructor=e}e.prototype=i===null?Object.create(i):(l.prototype=i.prototype,new l)}var co=ci.helpers,oo=co.getOptions,_e=co.addClasses,Ic=co.canUseDOM,Pc=(function(e){Lc(i,e);function i(){for(var l=[],r=0;r<arguments.length;r++)l[r]=arguments[r];var c=e.apply(this,l)||this;return i.instances.set(l[0],c),c}return i.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(l){l.getAttribute("data-simplebar")!=="init"&&!i.instances.has(l)&&new i(l,oo(l.attributes))})},i.removeObserver=function(){var l;(l=i.globalObserver)===null||l===void 0||l.disconnect()},i.prototype.initDOM=function(){var l=this,r,c,u;if(!Array.prototype.filter.call(this.el.children,function(k){return k.classList.contains(l.classNames.wrapper)}).length){for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),_e(this.wrapperEl,this.classNames.wrapper),_e(this.contentWrapperEl,this.classNames.contentWrapper),_e(this.offsetEl,this.classNames.offset),_e(this.maskEl,this.classNames.mask),_e(this.contentEl,this.classNames.contentEl),_e(this.placeholderEl,this.classNames.placeholder),_e(this.heightAutoObserverWrapperEl,this.classNames.heightAutoObserverWrapperEl),_e(this.heightAutoObserverEl,this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl),(r=this.contentWrapperEl)===null||r===void 0||r.setAttribute("tabindex",this.options.tabIndex.toString()),(c=this.contentWrapperEl)===null||c===void 0||c.setAttribute("role","region"),(u=this.contentWrapperEl)===null||u===void 0||u.setAttribute("aria-label",this.options.ariaLabel)}if(!this.axis.x.track.el||!this.axis.y.track.el){var d=document.createElement("div"),v=document.createElement("div");_e(d,this.classNames.track),_e(v,this.classNames.scrollbar),d.appendChild(v),this.axis.x.track.el=d.cloneNode(!0),_e(this.axis.x.track.el,this.classNames.horizontal),this.axis.y.track.el=d.cloneNode(!0),_e(this.axis.y.track.el,this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}ci.prototype.initDOM.call(this),this.el.setAttribute("data-simplebar","init")},i.prototype.unMount=function(){ci.prototype.unMount.call(this),i.instances.delete(this.el)},i.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),typeof MutationObserver<"u"&&(this.globalObserver=new MutationObserver(i.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),document.readyState==="complete"||document.readyState!=="loading"&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},i.handleMutations=function(l){l.forEach(function(r){r.addedNodes.forEach(function(c){c.nodeType===1&&(c.hasAttribute("data-simplebar")?!i.instances.has(c)&&document.documentElement.contains(c)&&new i(c,oo(c.attributes)):c.querySelectorAll("[data-simplebar]").forEach(function(u){u.getAttribute("data-simplebar")!=="init"&&!i.instances.has(u)&&document.documentElement.contains(u)&&new i(u,oo(u.attributes))}))}),r.removedNodes.forEach(function(c){var u;c.nodeType===1&&(c.getAttribute("data-simplebar")==="init"?!document.documentElement.contains(c)&&((u=i.instances.get(c))===null||u===void 0||u.unMount()):Array.prototype.forEach.call(c.querySelectorAll('[data-simplebar="init"]'),function(d){var v;!document.documentElement.contains(d)&&((v=i.instances.get(d))===null||v===void 0||v.unMount())}))})})},i.instances=new WeakMap,i})(ci);Ic&&Pc.initHtmlApi();const Rc=n.defineComponent({name:"ClUI",methods:{VITE_APP_VERSION:()=>"7.15.0"}}),$=(e,i)=>{const l=e.__vccOpts||e;for(const[r,c]of i)l[r]=c;return l};function zc(e,i,l,r,c,u){return n.toDisplayString(e.VITE_APP_VERSION())}const Fc=$(Rc,[["render",zc]]),jc=n.defineComponent({name:"ClAlert",props:{type:{type:String,default:"info"}}});function Uc(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("p",{class:n.normalizeClass(["alert",`cl-alert-${e.type}`]),role:"alert"},[n.renderSlot(e.$slots,"default")],2)}const $t=$(jc,[["render",Uc]]);$t.install=e=>{e.component($t.name??"ClNoName",$t)};function Wc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var di={exports:{}};var xc=di.exports,cr;function qc(){return cr||(cr=1,(function(e,i){(function(l,r){e.exports=r()})(xc,function(){const l=new Map,r={set(s,t,o){l.has(s)||l.set(s,new Map);const a=l.get(s);a.has(t)||a.size===0?a.set(t,o):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(a.keys())[0]}.`)},get:(s,t)=>l.has(s)&&l.get(s).get(t)||null,remove(s,t){if(!l.has(s))return;const o=l.get(s);o.delete(t),o.size===0&&l.delete(s)}},c="transitionend",u=s=>(s&&window.CSS&&window.CSS.escape&&(s=s.replace(/#([^\s"#']+)/g,(t,o)=>`#${CSS.escape(o)}`)),s),d=s=>s==null?`${s}`:Object.prototype.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase(),v=s=>{s.dispatchEvent(new Event(c))},k=s=>!(!s||typeof s!="object")&&(s.jquery!==void 0&&(s=s[0]),s.nodeType!==void 0),A=s=>k(s)?s.jquery?s[0]:s:typeof s=="string"&&s.length>0?document.querySelector(u(s)):null,W=s=>{if(!k(s)||s.getClientRects().length===0)return!1;const t=getComputedStyle(s).getPropertyValue("visibility")==="visible",o=s.closest("details:not([open])");if(!o)return t;if(o!==s){const a=s.closest("summary");if(a&&a.parentNode!==o||a===null)return!1}return t},M=s=>!s||s.nodeType!==Node.ELEMENT_NODE||!!s.classList.contains("disabled")||(s.disabled!==void 0?s.disabled:s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false"),G=s=>{if(!document.documentElement.attachShadow)return null;if(typeof s.getRootNode=="function"){const t=s.getRootNode();return t instanceof ShadowRoot?t:null}return s instanceof ShadowRoot?s:s.parentNode?G(s.parentNode):null},Y=()=>{},re=s=>{s.offsetHeight},Ee=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,le=[],H=()=>document.documentElement.dir==="rtl",X=s=>{var t;t=()=>{const o=Ee();if(o){const a=s.NAME,f=o.fn[a];o.fn[a]=s.jQueryInterface,o.fn[a].Constructor=s,o.fn[a].noConflict=()=>(o.fn[a]=f,s.jQueryInterface)}},document.readyState==="loading"?(le.length||document.addEventListener("DOMContentLoaded",()=>{for(const o of le)o()}),le.push(t)):t()},J=(s,t=[],o=s)=>typeof s=="function"?s.call(...t):o,it=(s,t,o=!0)=>{if(!o)return void J(s);const a=(h=>{if(!h)return 0;let{transitionDuration:m,transitionDelay:b}=window.getComputedStyle(h);const _=Number.parseFloat(m),E=Number.parseFloat(b);return _||E?(m=m.split(",")[0],b=b.split(",")[0],1e3*(Number.parseFloat(m)+Number.parseFloat(b))):0})(t)+5;let f=!1;const p=({target:h})=>{h===t&&(f=!0,t.removeEventListener(c,p),J(s))};t.addEventListener(c,p),setTimeout(()=>{f||v(t)},a)},Ae=(s,t,o,a)=>{const f=s.length;let p=s.indexOf(t);return p===-1?!o&&a?s[f-1]:s[0]:(p+=o?1:-1,a&&(p=(p+f)%f),s[Math.max(0,Math.min(p,f-1))])},x=/[^.]*(?=\..*)\.|.*/,pe=/\..*/,he=/::\d+$/,ot={};let vo=1;const bo={mouseenter:"mouseover",mouseleave:"mouseout"},Rr=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 yo(s,t){return t&&`${t}::${vo++}`||s.uidEvent||vo++}function _o(s){const t=yo(s);return s.uidEvent=t,ot[t]=ot[t]||{},ot[t]}function Eo(s,t,o=null){return Object.values(s).find(a=>a.callable===t&&a.delegationSelector===o)}function Co(s,t,o){const a=typeof t=="string",f=a?o:t||o;let p=$o(s);return Rr.has(p)||(p=s),[a,f,p]}function ko(s,t,o,a,f){if(typeof t!="string"||!s)return;let[p,h,m]=Co(t,o,a);t in bo&&(h=(N=>function(w){if(!w.relatedTarget||w.relatedTarget!==w.delegateTarget&&!w.delegateTarget.contains(w.relatedTarget))return N.call(this,w)})(h));const b=_o(s),_=b[m]||(b[m]={}),E=Eo(_,h,p?o:null);if(E)return void(E.oneOff=E.oneOff&&f);const y=yo(h,t.replace(x,"")),O=p?(function(S,N,w){return function T(z){const q=S.querySelectorAll(N);for(let{target:B}=z;B&&B!==this;B=B.parentNode)for(const L of q)if(L===B)return yi(z,{delegateTarget:B}),T.oneOff&&g.off(S,z.type,N,w),w.apply(B,[z])}})(s,o,h):(function(S,N){return function w(T){return yi(T,{delegateTarget:S}),w.oneOff&&g.off(S,T.type,N),N.apply(S,[T])}})(s,h);O.delegationSelector=p?o:null,O.callable=h,O.oneOff=f,O.uidEvent=y,_[y]=O,s.addEventListener(m,O,p)}function bi(s,t,o,a,f){const p=Eo(t[o],a,f);p&&(s.removeEventListener(o,p,!!f),delete t[o][p.uidEvent])}function zr(s,t,o,a){const f=t[o]||{};for(const[p,h]of Object.entries(f))p.includes(a)&&bi(s,t,o,h.callable,h.delegationSelector)}function $o(s){return s=s.replace(pe,""),bo[s]||s}const g={on(s,t,o,a){ko(s,t,o,a,!1)},one(s,t,o,a){ko(s,t,o,a,!0)},off(s,t,o,a){if(typeof t!="string"||!s)return;const[f,p,h]=Co(t,o,a),m=h!==t,b=_o(s),_=b[h]||{},E=t.startsWith(".");if(p===void 0){if(E)for(const y of Object.keys(b))zr(s,b,y,t.slice(1));for(const[y,O]of Object.entries(_)){const S=y.replace(he,"");m&&!t.includes(S)||bi(s,b,h,O.callable,O.delegationSelector)}}else{if(!Object.keys(_).length)return;bi(s,b,h,p,f?o:null)}},trigger(s,t,o){if(typeof t!="string"||!s)return null;const a=Ee();let f=null,p=!0,h=!0,m=!1;t!==$o(t)&&a&&(f=a.Event(t,o),a(s).trigger(f),p=!f.isPropagationStopped(),h=!f.isImmediatePropagationStopped(),m=f.isDefaultPrevented());const b=yi(new Event(t,{bubbles:p,cancelable:!0}),o);return m&&b.preventDefault(),h&&s.dispatchEvent(b),b.defaultPrevented&&f&&f.preventDefault(),b}};function yi(s,t={}){for(const[o,a]of Object.entries(t))try{s[o]=a}catch{Object.defineProperty(s,o,{configurable:!0,get:()=>a})}return s}function So(s){if(s==="true")return!0;if(s==="false")return!1;if(s===Number(s).toString())return Number(s);if(s===""||s==="null")return null;if(typeof s!="string")return s;try{return JSON.parse(decodeURIComponent(s))}catch{return s}}function _i(s){return s.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const De={setDataAttribute(s,t,o){s.setAttribute(`data-bs-${_i(t)}`,o)},removeDataAttribute(s,t){s.removeAttribute(`data-bs-${_i(t)}`)},getDataAttributes(s){if(!s)return{};const t={},o=Object.keys(s.dataset).filter(a=>a.startsWith("bs")&&!a.startsWith("bsConfig"));for(const a of o){let f=a.replace(/^bs/,"");f=f.charAt(0).toLowerCase()+f.slice(1),t[f]=So(s.dataset[a])}return t},getDataAttribute:(s,t)=>So(s.getAttribute(`data-bs-${_i(t)}`))};class kn{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,o){const a=k(o)?De.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof a=="object"?a:{},...k(o)?De.getDataAttributes(o):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,o=this.constructor.DefaultType){for(const[a,f]of Object.entries(o)){const p=t[a],h=k(p)?"element":d(p);if(!new RegExp(f).test(h))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${a}" provided type "${h}" but expected type "${f}".`)}}}class Ce extends kn{constructor(t,o){super(),(t=A(t))&&(this._element=t,this._config=this._getConfig(o),r.set(this._element,this.constructor.DATA_KEY,this))}dispose(){r.remove(this._element,this.constructor.DATA_KEY),g.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,o,a=!0){it(t,o,a)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return r.get(A(t),this.DATA_KEY)}static getOrCreateInstance(t,o={}){return this.getInstance(t)||new this(t,typeof o=="object"?o:null)}static get VERSION(){return"5.3.8"}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 Ei=s=>{let t=s.getAttribute("data-bs-target");if(!t||t==="#"){let o=s.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),t=o&&o!=="#"?o.trim():null}return t?t.split(",").map(o=>u(o)).join(","):null},C={find:(s,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,s)),findOne:(s,t=document.documentElement)=>Element.prototype.querySelector.call(t,s),children:(s,t)=>[].concat(...s.children).filter(o=>o.matches(t)),parents(s,t){const o=[];let a=s.parentNode.closest(t);for(;a;)o.push(a),a=a.parentNode.closest(t);return o},prev(s,t){let o=s.previousElementSibling;for(;o;){if(o.matches(t))return[o];o=o.previousElementSibling}return[]},next(s,t){let o=s.nextElementSibling;for(;o;){if(o.matches(t))return[o];o=o.nextElementSibling}return[]},focusableChildren(s){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(t,s).filter(o=>!M(o)&&W(o))},getSelectorFromElement(s){const t=Ei(s);return t&&C.findOne(t)?t:null},getElementFromSelector(s){const t=Ei(s);return t?C.findOne(t):null},getMultipleElementsFromSelector(s){const t=Ei(s);return t?C.find(t):[]}},Fn=(s,t="hide")=>{const o=`click.dismiss${s.EVENT_KEY}`,a=s.NAME;g.on(document,o,`[data-bs-dismiss="${a}"]`,function(f){if(["A","AREA"].includes(this.tagName)&&f.preventDefault(),M(this))return;const p=C.getElementFromSelector(this)||this.closest(`.${a}`);s.getOrCreateInstance(p)[t]()})},wo=".bs.alert",Fr=`close${wo}`,jr=`closed${wo}`;class $n extends Ce{static get NAME(){return"alert"}close(){if(g.trigger(this._element,Fr).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(),g.trigger(this._element,jr),this.dispose()}static jQueryInterface(t){return this.each(function(){const o=$n.getOrCreateInstance(this);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t](this)}})}}Fn($n,"close"),X($n);const No='[data-bs-toggle="button"]';class Sn extends Ce{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){const o=Sn.getOrCreateInstance(this);t==="toggle"&&o[t]()})}}g.on(document,"click.bs.button.data-api",No,s=>{s.preventDefault();const t=s.target.closest(No);Sn.getOrCreateInstance(t).toggle()}),X(Sn);const st=".bs.swipe",Ur=`touchstart${st}`,Wr=`touchmove${st}`,xr=`touchend${st}`,qr=`pointerdown${st}`,Hr=`pointerup${st}`,Gr={endCallback:null,leftCallback:null,rightCallback:null},Kr={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class jn extends kn{constructor(t,o){super(),this._element=t,t&&jn.isSupported()&&(this._config=this._getConfig(o),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Gr}static get DefaultType(){return Kr}static get NAME(){return"swipe"}dispose(){g.off(this._element,st)}_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(),J(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 o=t/this._deltaX;this._deltaX=0,o&&J(o>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(g.on(this._element,qr,t=>this._start(t)),g.on(this._element,Hr,t=>this._end(t)),this._element.classList.add("pointer-event")):(g.on(this._element,Ur,t=>this._start(t)),g.on(this._element,Wr,t=>this._move(t)),g.on(this._element,xr,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType==="pen"||t.pointerType==="touch")}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Ie=".bs.carousel",To=".data-api",Yr="ArrowLeft",Xr="ArrowRight",wn="next",rt="prev",lt="left",Un="right",Qr=`slide${Ie}`,Ci=`slid${Ie}`,Jr=`keydown${Ie}`,Zr=`mouseenter${Ie}`,el=`mouseleave${Ie}`,tl=`dragstart${Ie}`,nl=`load${Ie}${To}`,il=`click${Ie}${To}`,Oo="carousel",Wn="active",Ao=".active",Do=".carousel-item",ol=Ao+Do,sl={[Yr]:Un,[Xr]:lt},rl={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ll={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class at extends Ce{constructor(t,o){super(t,o),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=C.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===Oo&&this.cycle()}static get Default(){return rl}static get DefaultType(){return ll}static get NAME(){return"carousel"}next(){this._slide(wn)}nextWhenVisible(){!document.hidden&&W(this._element)&&this.next()}prev(){this._slide(rt)}pause(){this._isSliding&&v(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?g.one(this._element,Ci,()=>this.cycle()):this.cycle())}to(t){const o=this._getItems();if(t>o.length-1||t<0)return;if(this._isSliding)return void g.one(this._element,Ci,()=>this.to(t));const a=this._getItemIndex(this._getActive());if(a===t)return;const f=t>a?wn:rt;this._slide(f,o[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&g.on(this._element,Jr,t=>this._keydown(t)),this._config.pause==="hover"&&(g.on(this._element,Zr,()=>this.pause()),g.on(this._element,el,()=>this._maybeEnableCycle())),this._config.touch&&jn.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of C.find(".carousel-item img",this._element))g.on(o,tl,a=>a.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(lt)),rightCallback:()=>this._slide(this._directionToOrder(Un)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new jn(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const o=sl[t.key];o&&(t.preventDefault(),this._slide(this._directionToOrder(o)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const o=C.findOne(Ao,this._indicatorsElement);o.classList.remove(Wn),o.removeAttribute("aria-current");const a=C.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);a&&(a.classList.add(Wn),a.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const o=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=o||this._config.defaultInterval}_slide(t,o=null){if(this._isSliding)return;const a=this._getActive(),f=t===wn,p=o||Ae(this._getItems(),a,f,this._config.wrap);if(p===a)return;const h=this._getItemIndex(p),m=y=>g.trigger(this._element,y,{relatedTarget:p,direction:this._orderToDirection(t),from:this._getItemIndex(a),to:h});if(m(Qr).defaultPrevented||!a||!p)return;const b=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(h),this._activeElement=p;const _=f?"carousel-item-start":"carousel-item-end",E=f?"carousel-item-next":"carousel-item-prev";p.classList.add(E),re(p),a.classList.add(_),p.classList.add(_),this._queueCallback(()=>{p.classList.remove(_,E),p.classList.add(Wn),a.classList.remove(Wn,E,_),this._isSliding=!1,m(Ci)},a,this._isAnimated()),b&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return C.findOne(ol,this._element)}_getItems(){return C.find(Do,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return H()?t===lt?rt:wn:t===lt?wn:rt}_orderToDirection(t){return H()?t===rt?lt:Un:t===rt?Un:lt}static jQueryInterface(t){return this.each(function(){const o=at.getOrCreateInstance(this,t);if(typeof t!="number"){if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}}else o.to(t)})}}g.on(document,il,"[data-bs-slide], [data-bs-slide-to]",function(s){const t=C.getElementFromSelector(this);if(!t||!t.classList.contains(Oo))return;s.preventDefault();const o=at.getOrCreateInstance(t),a=this.getAttribute("data-bs-slide-to");return a?(o.to(a),void o._maybeEnableCycle()):De.getDataAttribute(this,"slide")==="next"?(o.next(),void o._maybeEnableCycle()):(o.prev(),void o._maybeEnableCycle())}),g.on(window,nl,()=>{const s=C.find('[data-bs-ride="carousel"]');for(const t of s)at.getOrCreateInstance(t)}),X(at);const Nn=".bs.collapse",al=`show${Nn}`,cl=`shown${Nn}`,dl=`hide${Nn}`,ul=`hidden${Nn}`,fl=`click${Nn}.data-api`,ki="show",ct="collapse",xn="collapsing",pl=`:scope .${ct} .${ct}`,$i='[data-bs-toggle="collapse"]',hl={parent:null,toggle:!0},ml={parent:"(null|element)",toggle:"boolean"};class dt extends Ce{constructor(t,o){super(t,o),this._isTransitioning=!1,this._triggerArray=[];const a=C.find($i);for(const f of a){const p=C.getSelectorFromElement(f),h=C.find(p).filter(m=>m===this._element);p!==null&&h.length&&this._triggerArray.push(f)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return hl}static get DefaultType(){return ml}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(f=>f!==this._element).map(f=>dt.getOrCreateInstance(f,{toggle:!1}))),t.length&&t[0]._isTransitioning||g.trigger(this._element,al).defaultPrevented)return;for(const f of t)f.hide();const o=this._getDimension();this._element.classList.remove(ct),this._element.classList.add(xn),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const a=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(xn),this._element.classList.add(ct,ki),this._element.style[o]="",g.trigger(this._element,cl)},this._element,!0),this._element.style[o]=`${this._element[a]}px`}hide(){if(this._isTransitioning||!this._isShown()||g.trigger(this._element,dl).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,re(this._element),this._element.classList.add(xn),this._element.classList.remove(ct,ki);for(const o of this._triggerArray){const a=C.getElementFromSelector(o);a&&!this._isShown(a)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(xn),this._element.classList.add(ct),g.trigger(this._element,ul)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(ki)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=A(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren($i);for(const o of t){const a=C.getElementFromSelector(o);a&&this._addAriaAndCollapsedClass([o],this._isShown(a))}}_getFirstLevelChildren(t){const o=C.find(pl,this._config.parent);return C.find(t,this._config.parent).filter(a=>!o.includes(a))}_addAriaAndCollapsedClass(t,o){if(t.length)for(const a of t)a.classList.toggle("collapsed",!o),a.setAttribute("aria-expanded",o)}static jQueryInterface(t){const o={};return typeof t=="string"&&/show|hide/.test(t)&&(o.toggle=!1),this.each(function(){const a=dt.getOrCreateInstance(this,o);if(typeof t=="string"){if(a[t]===void 0)throw new TypeError(`No method named "${t}"`);a[t]()}})}}g.on(document,fl,$i,function(s){(s.target.tagName==="A"||s.delegateTarget&&s.delegateTarget.tagName==="A")&&s.preventDefault();for(const t of C.getMultipleElementsFromSelector(this))dt.getOrCreateInstance(t,{toggle:!1}).toggle()}),X(dt);var te="top",ae="bottom",ce="right",ne="left",qn="auto",ut=[te,ae,ce,ne],xe="start",ft="end",Bo="clippingParents",Si="viewport",pt="popper",Vo="reference",wi=ut.reduce(function(s,t){return s.concat([t+"-"+xe,t+"-"+ft])},[]),Ni=[].concat(ut,[qn]).reduce(function(s,t){return s.concat([t,t+"-"+xe,t+"-"+ft])},[]),Mo="beforeRead",Lo="read",Io="afterRead",Po="beforeMain",Ro="main",zo="afterMain",Fo="beforeWrite",jo="write",Uo="afterWrite",Wo=[Mo,Lo,Io,Po,Ro,zo,Fo,jo,Uo];function Se(s){return s?(s.nodeName||"").toLowerCase():null}function de(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var t=s.ownerDocument;return t&&t.defaultView||window}return s}function qe(s){return s instanceof de(s).Element||s instanceof Element}function me(s){return s instanceof de(s).HTMLElement||s instanceof HTMLElement}function Ti(s){return typeof ShadowRoot<"u"&&(s instanceof de(s).ShadowRoot||s instanceof ShadowRoot)}const Oi={name:"applyStyles",enabled:!0,phase:"write",fn:function(s){var t=s.state;Object.keys(t.elements).forEach(function(o){var a=t.styles[o]||{},f=t.attributes[o]||{},p=t.elements[o];me(p)&&Se(p)&&(Object.assign(p.style,a),Object.keys(f).forEach(function(h){var m=f[h];m===!1?p.removeAttribute(h):p.setAttribute(h,m===!0?"":m)}))})},effect:function(s){var t=s.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(a){var f=t.elements[a],p=t.attributes[a]||{},h=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:o[a]).reduce(function(m,b){return m[b]="",m},{});me(f)&&Se(f)&&(Object.assign(f.style,h),Object.keys(p).forEach(function(m){f.removeAttribute(m)}))})}},requires:["computeStyles"]};function we(s){return s.split("-")[0]}var He=Math.max,Hn=Math.min,ht=Math.round;function Ai(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function xo(){return!/^((?!chrome|android).)*safari/i.test(Ai())}function mt(s,t,o){t===void 0&&(t=!1),o===void 0&&(o=!1);var a=s.getBoundingClientRect(),f=1,p=1;t&&me(s)&&(f=s.offsetWidth>0&&ht(a.width)/s.offsetWidth||1,p=s.offsetHeight>0&&ht(a.height)/s.offsetHeight||1);var h=(qe(s)?de(s):window).visualViewport,m=!xo()&&o,b=(a.left+(m&&h?h.offsetLeft:0))/f,_=(a.top+(m&&h?h.offsetTop:0))/p,E=a.width/f,y=a.height/p;return{width:E,height:y,top:_,right:b+E,bottom:_+y,left:b,x:b,y:_}}function Di(s){var t=mt(s),o=s.offsetWidth,a=s.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:s.offsetLeft,y:s.offsetTop,width:o,height:a}}function qo(s,t){var o=t.getRootNode&&t.getRootNode();if(s.contains(t))return!0;if(o&&Ti(o)){var a=t;do{if(a&&s.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Be(s){return de(s).getComputedStyle(s)}function gl(s){return["table","td","th"].indexOf(Se(s))>=0}function Pe(s){return((qe(s)?s.ownerDocument:s.document)||window.document).documentElement}function Gn(s){return Se(s)==="html"?s:s.assignedSlot||s.parentNode||(Ti(s)?s.host:null)||Pe(s)}function Ho(s){return me(s)&&Be(s).position!=="fixed"?s.offsetParent:null}function Tn(s){for(var t=de(s),o=Ho(s);o&&gl(o)&&Be(o).position==="static";)o=Ho(o);return o&&(Se(o)==="html"||Se(o)==="body"&&Be(o).position==="static")?t:o||(function(a){var f=/firefox/i.test(Ai());if(/Trident/i.test(Ai())&&me(a)&&Be(a).position==="fixed")return null;var p=Gn(a);for(Ti(p)&&(p=p.host);me(p)&&["html","body"].indexOf(Se(p))<0;){var h=Be(p);if(h.transform!=="none"||h.perspective!=="none"||h.contain==="paint"||["transform","perspective"].indexOf(h.willChange)!==-1||f&&h.willChange==="filter"||f&&h.filter&&h.filter!=="none")return p;p=p.parentNode}return null})(s)||t}function Bi(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function On(s,t,o){return He(s,Hn(t,o))}function Go(s){return Object.assign({},{top:0,right:0,bottom:0,left:0},s)}function Ko(s,t){return t.reduce(function(o,a){return o[a]=s,o},{})}const Yo={name:"arrow",enabled:!0,phase:"main",fn:function(s){var t,o=s.state,a=s.name,f=s.options,p=o.elements.arrow,h=o.modifiersData.popperOffsets,m=we(o.placement),b=Bi(m),_=[ne,ce].indexOf(m)>=0?"height":"width";if(p&&h){var E=(function(F,R){return Go(typeof(F=typeof F=="function"?F(Object.assign({},R.rects,{placement:R.placement})):F)!="number"?F:Ko(F,ut))})(f.padding,o),y=Di(p),O=b==="y"?te:ne,S=b==="y"?ae:ce,N=o.rects.reference[_]+o.rects.reference[b]-h[b]-o.rects.popper[_],w=h[b]-o.rects.reference[b],T=Tn(p),z=T?b==="y"?T.clientHeight||0:T.clientWidth||0:0,q=N/2-w/2,B=E[O],L=z-y[_]-E[S],D=z/2-y[_]/2+q,V=On(B,D,L),P=b;o.modifiersData[a]=((t={})[P]=V,t.centerOffset=V-D,t)}},effect:function(s){var t=s.state,o=s.options.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a!="string"||(a=t.elements.popper.querySelector(a)))&&qo(t.elements.popper,a)&&(t.elements.arrow=a)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gt(s){return s.split("-")[1]}var vl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xo(s){var t,o=s.popper,a=s.popperRect,f=s.placement,p=s.variation,h=s.offsets,m=s.position,b=s.gpuAcceleration,_=s.adaptive,E=s.roundOffsets,y=s.isFixed,O=h.x,S=O===void 0?0:O,N=h.y,w=N===void 0?0:N,T=typeof E=="function"?E({x:S,y:w}):{x:S,y:w};S=T.x,w=T.y;var z=h.hasOwnProperty("x"),q=h.hasOwnProperty("y"),B=ne,L=te,D=window;if(_){var V=Tn(o),P="clientHeight",F="clientWidth";V===de(o)&&Be(V=Pe(o)).position!=="static"&&m==="absolute"&&(P="scrollHeight",F="scrollWidth"),(f===te||(f===ne||f===ce)&&p===ft)&&(L=ae,w-=(y&&V===D&&D.visualViewport?D.visualViewport.height:V[P])-a.height,w*=b?1:-1),f!==ne&&(f!==te&&f!==ae||p!==ft)||(B=ce,S-=(y&&V===D&&D.visualViewport?D.visualViewport.width:V[F])-a.width,S*=b?1:-1)}var R,Q=Object.assign({position:m},_&&vl),ue=E===!0?(function($e,ie){var ve=$e.x,be=$e.y,K=ie.devicePixelRatio||1;return{x:ht(ve*K)/K||0,y:ht(be*K)/K||0}})({x:S,y:w},de(o)):{x:S,y:w};return S=ue.x,w=ue.y,b?Object.assign({},Q,((R={})[L]=q?"0":"",R[B]=z?"0":"",R.transform=(D.devicePixelRatio||1)<=1?"translate("+S+"px, "+w+"px)":"translate3d("+S+"px, "+w+"px, 0)",R)):Object.assign({},Q,((t={})[L]=q?w+"px":"",t[B]=z?S+"px":"",t.transform="",t))}const Vi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(s){var t=s.state,o=s.options,a=o.gpuAcceleration,f=a===void 0||a,p=o.adaptive,h=p===void 0||p,m=o.roundOffsets,b=m===void 0||m,_={placement:we(t.placement),variation:gt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:f,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Xo(Object.assign({},_,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:h,roundOffsets:b})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Xo(Object.assign({},_,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:b})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Kn={passive:!0};const Mi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(s){var t=s.state,o=s.instance,a=s.options,f=a.scroll,p=f===void 0||f,h=a.resize,m=h===void 0||h,b=de(t.elements.popper),_=[].concat(t.scrollParents.reference,t.scrollParents.popper);return p&&_.forEach(function(E){E.addEventListener("scroll",o.update,Kn)}),m&&b.addEventListener("resize",o.update,Kn),function(){p&&_.forEach(function(E){E.removeEventListener("scroll",o.update,Kn)}),m&&b.removeEventListener("resize",o.update,Kn)}},data:{}};var bl={left:"right",right:"left",bottom:"top",top:"bottom"};function Yn(s){return s.replace(/left|right|bottom|top/g,function(t){return bl[t]})}var yl={start:"end",end:"start"};function Qo(s){return s.replace(/start|end/g,function(t){return yl[t]})}function Li(s){var t=de(s);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ii(s){return mt(Pe(s)).left+Li(s).scrollLeft}function Pi(s){var t=Be(s),o=t.overflow,a=t.overflowX,f=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+f+a)}function Jo(s){return["html","body","#document"].indexOf(Se(s))>=0?s.ownerDocument.body:me(s)&&Pi(s)?s:Jo(Gn(s))}function An(s,t){var o;t===void 0&&(t=[]);var a=Jo(s),f=a===((o=s.ownerDocument)==null?void 0:o.body),p=de(a),h=f?[p].concat(p.visualViewport||[],Pi(a)?a:[]):a,m=t.concat(h);return f?m:m.concat(An(Gn(h)))}function Ri(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function Zo(s,t,o){return t===Si?Ri((function(a,f){var p=de(a),h=Pe(a),m=p.visualViewport,b=h.clientWidth,_=h.clientHeight,E=0,y=0;if(m){b=m.width,_=m.height;var O=xo();(O||!O&&f==="fixed")&&(E=m.offsetLeft,y=m.offsetTop)}return{width:b,height:_,x:E+Ii(a),y}})(s,o)):qe(t)?(function(a,f){var p=mt(a,!1,f==="fixed");return p.top=p.top+a.clientTop,p.left=p.left+a.clientLeft,p.bottom=p.top+a.clientHeight,p.right=p.left+a.clientWidth,p.width=a.clientWidth,p.height=a.clientHeight,p.x=p.left,p.y=p.top,p})(t,o):Ri((function(a){var f,p=Pe(a),h=Li(a),m=(f=a.ownerDocument)==null?void 0:f.body,b=He(p.scrollWidth,p.clientWidth,m?m.scrollWidth:0,m?m.clientWidth:0),_=He(p.scrollHeight,p.clientHeight,m?m.scrollHeight:0,m?m.clientHeight:0),E=-h.scrollLeft+Ii(a),y=-h.scrollTop;return Be(m||p).direction==="rtl"&&(E+=He(p.clientWidth,m?m.clientWidth:0)-b),{width:b,height:_,x:E,y}})(Pe(s)))}function es(s){var t,o=s.reference,a=s.element,f=s.placement,p=f?we(f):null,h=f?gt(f):null,m=o.x+o.width/2-a.width/2,b=o.y+o.height/2-a.height/2;switch(p){case te:t={x:m,y:o.y-a.height};break;case ae:t={x:m,y:o.y+o.height};break;case ce:t={x:o.x+o.width,y:b};break;case ne:t={x:o.x-a.width,y:b};break;default:t={x:o.x,y:o.y}}var _=p?Bi(p):null;if(_!=null){var E=_==="y"?"height":"width";switch(h){case xe:t[_]=t[_]-(o[E]/2-a[E]/2);break;case ft:t[_]=t[_]+(o[E]/2-a[E]/2)}}return t}function vt(s,t){t===void 0&&(t={});var o=t,a=o.placement,f=a===void 0?s.placement:a,p=o.strategy,h=p===void 0?s.strategy:p,m=o.boundary,b=m===void 0?Bo:m,_=o.rootBoundary,E=_===void 0?Si:_,y=o.elementContext,O=y===void 0?pt:y,S=o.altBoundary,N=S!==void 0&&S,w=o.padding,T=w===void 0?0:w,z=Go(typeof T!="number"?T:Ko(T,ut)),q=O===pt?Vo:pt,B=s.rects.popper,L=s.elements[N?q:O],D=(function(ie,ve,be,K){var Ne=ve==="clippingParents"?(function(j){var oe=An(Gn(j)),ye=["absolute","fixed"].indexOf(Be(j).position)>=0&&me(j)?Tn(j):j;return qe(ye)?oe.filter(function(ze){return qe(ze)&&qo(ze,ye)&&Se(ze)!=="body"}):[]})(ie):[].concat(ve),Te=[].concat(Ne,[be]),_t=Te[0],Z=Te.reduce(function(j,oe){var ye=Zo(ie,oe,K);return j.top=He(ye.top,j.top),j.right=Hn(ye.right,j.right),j.bottom=Hn(ye.bottom,j.bottom),j.left=He(ye.left,j.left),j},Zo(ie,_t,K));return Z.width=Z.right-Z.left,Z.height=Z.bottom-Z.top,Z.x=Z.left,Z.y=Z.top,Z})(qe(L)?L:L.contextElement||Pe(s.elements.popper),b,E,h),V=mt(s.elements.reference),P=es({reference:V,element:B,placement:f}),F=Ri(Object.assign({},B,P)),R=O===pt?F:V,Q={top:D.top-R.top+z.top,bottom:R.bottom-D.bottom+z.bottom,left:D.left-R.left+z.left,right:R.right-D.right+z.right},ue=s.modifiersData.offset;if(O===pt&&ue){var $e=ue[f];Object.keys(Q).forEach(function(ie){var ve=[ce,ae].indexOf(ie)>=0?1:-1,be=[te,ae].indexOf(ie)>=0?"y":"x";Q[ie]+=$e[be]*ve})}return Q}function _l(s,t){t===void 0&&(t={});var o=t,a=o.placement,f=o.boundary,p=o.rootBoundary,h=o.padding,m=o.flipVariations,b=o.allowedAutoPlacements,_=b===void 0?Ni:b,E=gt(a),y=E?m?wi:wi.filter(function(N){return gt(N)===E}):ut,O=y.filter(function(N){return _.indexOf(N)>=0});O.length===0&&(O=y);var S=O.reduce(function(N,w){return N[w]=vt(s,{placement:w,boundary:f,rootBoundary:p,padding:h})[we(w)],N},{});return Object.keys(S).sort(function(N,w){return S[N]-S[w]})}const ts={name:"flip",enabled:!0,phase:"main",fn:function(s){var t=s.state,o=s.options,a=s.name;if(!t.modifiersData[a]._skip){for(var f=o.mainAxis,p=f===void 0||f,h=o.altAxis,m=h===void 0||h,b=o.fallbackPlacements,_=o.padding,E=o.boundary,y=o.rootBoundary,O=o.altBoundary,S=o.flipVariations,N=S===void 0||S,w=o.allowedAutoPlacements,T=t.options.placement,z=we(T),q=b||(z!==T&&N?(function(j){if(we(j)===qn)return[];var oe=Yn(j);return[Qo(j),oe,Qo(oe)]})(T):[Yn(T)]),B=[T].concat(q).reduce(function(j,oe){return j.concat(we(oe)===qn?_l(t,{placement:oe,boundary:E,rootBoundary:y,padding:_,flipVariations:N,allowedAutoPlacements:w}):oe)},[]),L=t.rects.reference,D=t.rects.popper,V=new Map,P=!0,F=B[0],R=0;R<B.length;R++){var Q=B[R],ue=we(Q),$e=gt(Q)===xe,ie=[te,ae].indexOf(ue)>=0,ve=ie?"width":"height",be=vt(t,{placement:Q,boundary:E,rootBoundary:y,altBoundary:O,padding:_}),K=ie?$e?ce:ne:$e?ae:te;L[ve]>D[ve]&&(K=Yn(K));var Ne=Yn(K),Te=[];if(p&&Te.push(be[ue]<=0),m&&Te.push(be[K]<=0,be[Ne]<=0),Te.every(function(j){return j})){F=Q,P=!1;break}V.set(Q,Te)}if(P)for(var _t=function(j){var oe=B.find(function(ye){var ze=V.get(ye);if(ze)return ze.slice(0,j).every(function(oi){return oi})});if(oe)return F=oe,"break"},Z=N?3:1;Z>0&&_t(Z)!=="break";Z--);t.placement!==F&&(t.modifiersData[a]._skip=!0,t.placement=F,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ns(s,t,o){return o===void 0&&(o={x:0,y:0}),{top:s.top-t.height-o.y,right:s.right-t.width+o.x,bottom:s.bottom-t.height+o.y,left:s.left-t.width-o.x}}function is(s){return[te,ce,ae,ne].some(function(t){return s[t]>=0})}const os={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(s){var t=s.state,o=s.name,a=t.rects.reference,f=t.rects.popper,p=t.modifiersData.preventOverflow,h=vt(t,{elementContext:"reference"}),m=vt(t,{altBoundary:!0}),b=ns(h,a),_=ns(m,f,p),E=is(b),y=is(_);t.modifiersData[o]={referenceClippingOffsets:b,popperEscapeOffsets:_,isReferenceHidden:E,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":E,"data-popper-escaped":y})}},ss={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(s){var t=s.state,o=s.options,a=s.name,f=o.offset,p=f===void 0?[0,0]:f,h=Ni.reduce(function(E,y){return E[y]=(function(O,S,N){var w=we(O),T=[ne,te].indexOf(w)>=0?-1:1,z=typeof N=="function"?N(Object.assign({},S,{placement:O})):N,q=z[0],B=z[1];return q=q||0,B=(B||0)*T,[ne,ce].indexOf(w)>=0?{x:B,y:q}:{x:q,y:B}})(y,t.rects,p),E},{}),m=h[t.placement],b=m.x,_=m.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=b,t.modifiersData.popperOffsets.y+=_),t.modifiersData[a]=h}},zi={name:"popperOffsets",enabled:!0,phase:"read",fn:function(s){var t=s.state,o=s.name;t.modifiersData[o]=es({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},rs={name:"preventOverflow",enabled:!0,phase:"main",fn:function(s){var t=s.state,o=s.options,a=s.name,f=o.mainAxis,p=f===void 0||f,h=o.altAxis,m=h!==void 0&&h,b=o.boundary,_=o.rootBoundary,E=o.altBoundary,y=o.padding,O=o.tether,S=O===void 0||O,N=o.tetherOffset,w=N===void 0?0:N,T=vt(t,{boundary:b,rootBoundary:_,padding:y,altBoundary:E}),z=we(t.placement),q=gt(t.placement),B=!q,L=Bi(z),D=L==="x"?"y":"x",V=t.modifiersData.popperOffsets,P=t.rects.reference,F=t.rects.popper,R=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,Q=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),ue=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$e={x:0,y:0};if(V){if(p){var ie,ve=L==="y"?te:ne,be=L==="y"?ae:ce,K=L==="y"?"height":"width",Ne=V[L],Te=Ne+T[ve],_t=Ne-T[be],Z=S?-F[K]/2:0,j=q===xe?P[K]:F[K],oe=q===xe?-F[K]:-P[K],ye=t.elements.arrow,ze=S&&ye?Di(ye):{width:0,height:0},oi=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Hs=oi[ve],Gs=oi[be],si=On(0,P[K],ze[K]),Ja=B?P[K]/2-Z-si-Hs-Q.mainAxis:j-si-Hs-Q.mainAxis,Za=B?-P[K]/2+Z+si+Gs+Q.mainAxis:oe+si+Gs+Q.mainAxis,Zi=t.elements.arrow&&Tn(t.elements.arrow),ec=Zi?L==="y"?Zi.clientTop||0:Zi.clientLeft||0:0,Ks=(ie=ue?.[L])!=null?ie:0,tc=Ne+Za-Ks,Ys=On(S?Hn(Te,Ne+Ja-Ks-ec):Te,Ne,S?He(_t,tc):_t);V[L]=Ys,$e[L]=Ys-Ne}if(m){var Xs,nc=L==="x"?te:ne,ic=L==="x"?ae:ce,et=V[D],ri=D==="y"?"height":"width",Qs=et+T[nc],Js=et-T[ic],eo=[te,ne].indexOf(z)!==-1,Zs=(Xs=ue?.[D])!=null?Xs:0,er=eo?Qs:et-P[ri]-F[ri]-Zs+Q.altAxis,tr=eo?et+P[ri]+F[ri]-Zs-Q.altAxis:Js,nr=S&&eo?(function(oc,sc,to){var ir=On(oc,sc,to);return ir>to?to:ir})(er,et,tr):On(S?er:Qs,et,S?tr:Js);V[D]=nr,$e[D]=nr-et}t.modifiersData[a]=$e}},requiresIfExists:["offset"]};function El(s,t,o){o===void 0&&(o=!1);var a,f,p=me(t),h=me(t)&&(function(y){var O=y.getBoundingClientRect(),S=ht(O.width)/y.offsetWidth||1,N=ht(O.height)/y.offsetHeight||1;return S!==1||N!==1})(t),m=Pe(t),b=mt(s,h,o),_={scrollLeft:0,scrollTop:0},E={x:0,y:0};return(p||!p&&!o)&&((Se(t)!=="body"||Pi(m))&&(_=(a=t)!==de(a)&&me(a)?{scrollLeft:(f=a).scrollLeft,scrollTop:f.scrollTop}:Li(a)),me(t)?((E=mt(t,!0)).x+=t.clientLeft,E.y+=t.clientTop):m&&(E.x=Ii(m))),{x:b.left+_.scrollLeft-E.x,y:b.top+_.scrollTop-E.y,width:b.width,height:b.height}}function Cl(s){var t=new Map,o=new Set,a=[];function f(p){o.add(p.name),[].concat(p.requires||[],p.requiresIfExists||[]).forEach(function(h){if(!o.has(h)){var m=t.get(h);m&&f(m)}}),a.push(p)}return s.forEach(function(p){t.set(p.name,p)}),s.forEach(function(p){o.has(p.name)||f(p)}),a}var ls={placement:"bottom",modifiers:[],strategy:"absolute"};function as(){for(var s=arguments.length,t=new Array(s),o=0;o<s;o++)t[o]=arguments[o];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function Xn(s){s===void 0&&(s={});var t=s,o=t.defaultModifiers,a=o===void 0?[]:o,f=t.defaultOptions,p=f===void 0?ls:f;return function(h,m,b){b===void 0&&(b=p);var _,E,y={placement:"bottom",orderedModifiers:[],options:Object.assign({},ls,p),modifiersData:{},elements:{reference:h,popper:m},attributes:{},styles:{}},O=[],S=!1,N={state:y,setOptions:function(T){var z=typeof T=="function"?T(y.options):T;w(),y.options=Object.assign({},p,y.options,z),y.scrollParents={reference:qe(h)?An(h):h.contextElement?An(h.contextElement):[],popper:An(m)};var q,B,L=(function(D){var V=Cl(D);return Wo.reduce(function(P,F){return P.concat(V.filter(function(R){return R.phase===F}))},[])})((q=[].concat(a,y.options.modifiers),B=q.reduce(function(D,V){var P=D[V.name];return D[V.name]=P?Object.assign({},P,V,{options:Object.assign({},P.options,V.options),data:Object.assign({},P.data,V.data)}):V,D},{}),Object.keys(B).map(function(D){return B[D]})));return y.orderedModifiers=L.filter(function(D){return D.enabled}),y.orderedModifiers.forEach(function(D){var V=D.name,P=D.options,F=P===void 0?{}:P,R=D.effect;if(typeof R=="function"){var Q=R({state:y,name:V,instance:N,options:F});O.push(Q||function(){})}}),N.update()},forceUpdate:function(){if(!S){var T=y.elements,z=T.reference,q=T.popper;if(as(z,q)){y.rects={reference:El(z,Tn(q),y.options.strategy==="fixed"),popper:Di(q)},y.reset=!1,y.placement=y.options.placement,y.orderedModifiers.forEach(function(R){return y.modifiersData[R.name]=Object.assign({},R.data)});for(var B=0;B<y.orderedModifiers.length;B++)if(y.reset!==!0){var L=y.orderedModifiers[B],D=L.fn,V=L.options,P=V===void 0?{}:V,F=L.name;typeof D=="function"&&(y=D({state:y,options:P,name:F,instance:N})||y)}else y.reset=!1,B=-1}}},update:(_=function(){return new Promise(function(T){N.forceUpdate(),T(y)})},function(){return E||(E=new Promise(function(T){Promise.resolve().then(function(){E=void 0,T(_())})})),E}),destroy:function(){w(),S=!0}};if(!as(h,m))return N;function w(){O.forEach(function(T){return T()}),O=[]}return N.setOptions(b).then(function(T){!S&&b.onFirstUpdate&&b.onFirstUpdate(T)}),N}}var kl=Xn(),$l=Xn({defaultModifiers:[Mi,zi,Vi,Oi]}),Fi=Xn({defaultModifiers:[Mi,zi,Vi,Oi,ss,ts,rs,Yo,os]});const cs=Object.freeze(Object.defineProperty({__proto__:null,afterMain:zo,afterRead:Io,afterWrite:Uo,applyStyles:Oi,arrow:Yo,auto:qn,basePlacements:ut,beforeMain:Po,beforeRead:Mo,beforeWrite:Fo,bottom:ae,clippingParents:Bo,computeStyles:Vi,createPopper:Fi,createPopperBase:kl,createPopperLite:$l,detectOverflow:vt,end:ft,eventListeners:Mi,flip:ts,hide:os,left:ne,main:Ro,modifierPhases:Wo,offset:ss,placements:Ni,popper:pt,popperGenerator:Xn,popperOffsets:zi,preventOverflow:rs,read:Lo,reference:Vo,right:ce,start:xe,top:te,variationPlacements:wi,viewport:Si,write:jo},Symbol.toStringTag,{value:"Module"})),ds="dropdown",Ge=".bs.dropdown",ji=".data-api",Sl="ArrowUp",us="ArrowDown",wl=`hide${Ge}`,Nl=`hidden${Ge}`,Tl=`show${Ge}`,Ol=`shown${Ge}`,fs=`click${Ge}${ji}`,ps=`keydown${Ge}${ji}`,Al=`keyup${Ge}${ji}`,bt="show",Ke='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Dl=`${Ke}.${bt}`,Qn=".dropdown-menu",Bl=H()?"top-end":"top-start",Vl=H()?"top-start":"top-end",Ml=H()?"bottom-end":"bottom-start",Ll=H()?"bottom-start":"bottom-end",Il=H()?"left-start":"right-start",Pl=H()?"right-start":"left-start",Rl={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},zl={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class ke extends Ce{constructor(t,o){super(t,o),this._popper=null,this._parent=this._element.parentNode,this._menu=C.next(this._element,Qn)[0]||C.prev(this._element,Qn)[0]||C.findOne(Qn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Rl}static get DefaultType(){return zl}static get NAME(){return ds}toggle(){return this._isShown()?this.hide():this.show()}show(){if(M(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!g.trigger(this._element,Tl,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const o of[].concat(...document.body.children))g.on(o,"mouseover",Y);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(bt),this._element.classList.add(bt),g.trigger(this._element,Ol,t)}}hide(){if(M(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(!g.trigger(this._element,wl,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))g.off(o,"mouseover",Y);this._popper&&this._popper.destroy(),this._menu.classList.remove(bt),this._element.classList.remove(bt),this._element.setAttribute("aria-expanded","false"),De.removeDataAttribute(this._menu,"popper"),g.trigger(this._element,Nl,t)}}_getConfig(t){if(typeof(t=super._getConfig(t)).reference=="object"&&!k(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${ds.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(cs===void 0)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;this._config.reference==="parent"?t=this._parent:k(this._config.reference)?t=A(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const o=this._getPopperConfig();this._popper=Fi(t,this._menu,o)}_isShown(){return this._menu.classList.contains(bt)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Il;if(t.classList.contains("dropstart"))return Pl;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const o=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains("dropup")?o?Vl:Bl:o?Ll:Ml}_detectNavbar(){return this._element.closest(".navbar")!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(o=>Number.parseInt(o,10)):typeof t=="function"?o=>t(o,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||this._config.display==="static")&&(De.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...J(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:o}){const a=C.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(f=>W(f));a.length&&Ae(a,o,t===us,!a.includes(o)).focus()}static jQueryInterface(t){return this.each(function(){const o=ke.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t]()}})}static clearMenus(t){if(t.button===2||t.type==="keyup"&&t.key!=="Tab")return;const o=C.find(Dl);for(const a of o){const f=ke.getInstance(a);if(!f||f._config.autoClose===!1)continue;const p=t.composedPath(),h=p.includes(f._menu);if(p.includes(f._element)||f._config.autoClose==="inside"&&!h||f._config.autoClose==="outside"&&h||f._menu.contains(t.target)&&(t.type==="keyup"&&t.key==="Tab"||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const m={relatedTarget:f._element};t.type==="click"&&(m.clickEvent=t),f._completeHide(m)}}static dataApiKeydownHandler(t){const o=/input|textarea/i.test(t.target.tagName),a=t.key==="Escape",f=[Sl,us].includes(t.key);if(!f&&!a||o&&!a)return;t.preventDefault();const p=this.matches(Ke)?this:C.prev(this,Ke)[0]||C.next(this,Ke)[0]||C.findOne(Ke,t.delegateTarget.parentNode),h=ke.getOrCreateInstance(p);if(f)return t.stopPropagation(),h.show(),void h._selectMenuItem(t);h._isShown()&&(t.stopPropagation(),h.hide(),p.focus())}}g.on(document,ps,Ke,ke.dataApiKeydownHandler),g.on(document,ps,Qn,ke.dataApiKeydownHandler),g.on(document,fs,ke.clearMenus),g.on(document,Al,ke.clearMenus),g.on(document,fs,Ke,function(s){s.preventDefault(),ke.getOrCreateInstance(this).toggle()}),X(ke);const hs="backdrop",ms="show",gs=`mousedown.bs.${hs}`,Fl={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},jl={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class vs extends kn{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Fl}static get DefaultType(){return jl}static get NAME(){return hs}show(t){if(!this._config.isVisible)return void J(t);this._append();const o=this._getElement();this._config.isAnimated&&re(o),o.classList.add(ms),this._emulateAnimation(()=>{J(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(ms),this._emulateAnimation(()=>{this.dispose(),J(t)})):J(t)}dispose(){this._isAppended&&(g.off(this._element,gs),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=A(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),g.on(t,gs,()=>{J(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){it(t,this._getElement(),this._config.isAnimated)}}const Jn=".bs.focustrap",Ul=`focusin${Jn}`,Wl=`keydown.tab${Jn}`,bs="backward",xl={autofocus:!0,trapElement:null},ql={autofocus:"boolean",trapElement:"element"};class ys extends kn{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return xl}static get DefaultType(){return ql}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),g.off(document,Jn),g.on(document,Ul,t=>this._handleFocusin(t)),g.on(document,Wl,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,g.off(document,Jn))}_handleFocusin(t){const{trapElement:o}=this._config;if(t.target===document||t.target===o||o.contains(t.target))return;const a=C.focusableChildren(o);a.length===0?o.focus():this._lastTabNavDirection===bs?a[a.length-1].focus():a[0].focus()}_handleKeydown(t){t.key==="Tab"&&(this._lastTabNavDirection=t.shiftKey?bs:"forward")}}const _s=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Es=".sticky-top",Zn="padding-right",Cs="margin-right";class Ui{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,Zn,o=>o+t),this._setElementAttributes(_s,Zn,o=>o+t),this._setElementAttributes(Es,Cs,o=>o-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Zn),this._resetElementAttributes(_s,Zn),this._resetElementAttributes(Es,Cs)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,o,a){const f=this.getWidth();this._applyManipulationCallback(t,p=>{if(p!==this._element&&window.innerWidth>p.clientWidth+f)return;this._saveInitialAttribute(p,o);const h=window.getComputedStyle(p).getPropertyValue(o);p.style.setProperty(o,`${a(Number.parseFloat(h))}px`)})}_saveInitialAttribute(t,o){const a=t.style.getPropertyValue(o);a&&De.setDataAttribute(t,o,a)}_resetElementAttributes(t,o){this._applyManipulationCallback(t,a=>{const f=De.getDataAttribute(a,o);f!==null?(De.removeDataAttribute(a,o),a.style.setProperty(o,f)):a.style.removeProperty(o)})}_applyManipulationCallback(t,o){if(k(t))o(t);else for(const a of C.find(t,this._element))o(a)}}const ge=".bs.modal",Hl=`hide${ge}`,Gl=`hidePrevented${ge}`,ks=`hidden${ge}`,$s=`show${ge}`,Kl=`shown${ge}`,Yl=`resize${ge}`,Xl=`click.dismiss${ge}`,Ql=`mousedown.dismiss${ge}`,Jl=`keydown.dismiss${ge}`,Zl=`click${ge}.data-api`,Ss="modal-open",ws="show",Wi="modal-static",ea={backdrop:!0,focus:!0,keyboard:!0},ta={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Ye extends Ce{constructor(t,o){super(t,o),this._dialog=C.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ui,this._addEventListeners()}static get Default(){return ea}static get DefaultType(){return ta}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||g.trigger(this._element,$s,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ss),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){this._isShown&&!this._isTransitioning&&(g.trigger(this._element,Hl).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ws),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){g.off(window,ge),g.off(this._dialog,ge),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new vs({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ys({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 o=C.findOne(".modal-body",this._dialog);o&&(o.scrollTop=0),re(this._element),this._element.classList.add(ws),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,g.trigger(this._element,Kl,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){g.on(this._element,Jl,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),g.on(window,Yl,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),g.on(this._element,Ql,t=>{g.one(this._element,Xl,o=>{this._element===t.target&&this._element===o.target&&(this._config.backdrop!=="static"?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(Ss),this._resetAdjustments(),this._scrollBar.reset(),g.trigger(this._element,ks)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(g.trigger(this._element,Gl).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,o=this._element.style.overflowY;o==="hidden"||this._element.classList.contains(Wi)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Wi),this._queueCallback(()=>{this._element.classList.remove(Wi),this._queueCallback(()=>{this._element.style.overflowY=o},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,o=this._scrollBar.getWidth(),a=o>0;if(a&&!t){const f=H()?"paddingLeft":"paddingRight";this._element.style[f]=`${o}px`}if(!a&&t){const f=H()?"paddingRight":"paddingLeft";this._element.style[f]=`${o}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,o){return this.each(function(){const a=Ye.getOrCreateInstance(this,t);if(typeof t=="string"){if(a[t]===void 0)throw new TypeError(`No method named "${t}"`);a[t](o)}})}}g.on(document,Zl,'[data-bs-toggle="modal"]',function(s){const t=C.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&s.preventDefault(),g.one(t,$s,a=>{a.defaultPrevented||g.one(t,ks,()=>{W(this)&&this.focus()})});const o=C.findOne(".modal.show");o&&Ye.getInstance(o).hide(),Ye.getOrCreateInstance(t).toggle(this)}),Fn(Ye),X(Ye);const Ve=".bs.offcanvas",Ns=".data-api",na=`load${Ve}${Ns}`,Ts="show",Os="showing",As="hiding",Ds=".offcanvas.show",ia=`show${Ve}`,oa=`shown${Ve}`,sa=`hide${Ve}`,Bs=`hidePrevented${Ve}`,Vs=`hidden${Ve}`,ra=`resize${Ve}`,la=`click${Ve}${Ns}`,aa=`keydown.dismiss${Ve}`,ca={backdrop:!0,keyboard:!0,scroll:!1},da={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Me extends Ce{constructor(t,o){super(t,o),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return ca}static get DefaultType(){return da}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||g.trigger(this._element,ia,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new Ui().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Os),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Ts),this._element.classList.remove(Os),g.trigger(this._element,oa,{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(g.trigger(this._element,sa).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(As),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Ts,As),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Ui().reset(),g.trigger(this._element,Vs)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=!!this._config.backdrop;return new vs({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{this._config.backdrop!=="static"?this.hide():g.trigger(this._element,Bs)}:null})}_initializeFocusTrap(){return new ys({trapElement:this._element})}_addEventListeners(){g.on(this._element,aa,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():g.trigger(this._element,Bs))})}static jQueryInterface(t){return this.each(function(){const o=Me.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t](this)}})}}g.on(document,la,'[data-bs-toggle="offcanvas"]',function(s){const t=C.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),M(this))return;g.one(t,Vs,()=>{W(this)&&this.focus()});const o=C.findOne(Ds);o&&o!==t&&Me.getInstance(o).hide(),Me.getOrCreateInstance(t).toggle(this)}),g.on(window,na,()=>{for(const s of C.find(Ds))Me.getOrCreateInstance(s).show()}),g.on(window,ra,()=>{for(const s of C.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(s).position!=="fixed"&&Me.getOrCreateInstance(s).hide()}),Fn(Me),X(Me);const Ms={"*":["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:[]},ua=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),fa=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,pa=(s,t)=>{const o=s.nodeName.toLowerCase();return t.includes(o)?!ua.has(o)||!!fa.test(s.nodeValue):t.filter(a=>a instanceof RegExp).some(a=>a.test(o))},ha={allowList:Ms,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},ma={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ga={entry:"(string|element|function|null)",selector:"(string|element)"};class va extends kn{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return ha}static get DefaultType(){return ma}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[f,p]of Object.entries(this._config.content))this._setContent(t,p,f);const o=t.children[0],a=this._resolvePossibleFunction(this._config.extraClass);return a&&o.classList.add(...a.split(" ")),o}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[o,a]of Object.entries(t))super._typeCheckConfig({selector:o,entry:a},ga)}_setContent(t,o,a){const f=C.findOne(a,t);f&&((o=this._resolvePossibleFunction(o))?k(o)?this._putElementInTemplate(A(o),f):this._config.html?f.innerHTML=this._maybeSanitize(o):f.textContent=o:f.remove())}_maybeSanitize(t){return this._config.sanitize?(function(o,a,f){if(!o.length)return o;if(f&&typeof f=="function")return f(o);const p=new window.DOMParser().parseFromString(o,"text/html"),h=[].concat(...p.body.querySelectorAll("*"));for(const m of h){const b=m.nodeName.toLowerCase();if(!Object.keys(a).includes(b)){m.remove();continue}const _=[].concat(...m.attributes),E=[].concat(a["*"]||[],a[b]||[]);for(const y of _)pa(y,E)||m.removeAttribute(y.nodeName)}return p.body.innerHTML})(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return J(t,[void 0,this])}_putElementInTemplate(t,o){if(this._config.html)return o.innerHTML="",void o.append(t);o.textContent=t.textContent}}const ba=new Set(["sanitize","allowList","sanitizeFn"]),xi="fade",ei="show",ya=".tooltip-inner",Ls=".modal",Is="hide.bs.modal",Dn="hover",qi="focus",Hi="click",_a={AUTO:"auto",TOP:"top",RIGHT:H()?"left":"right",BOTTOM:"bottom",LEFT:H()?"right":"left"},Ea={allowList:Ms,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"},Ca={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 Xe extends Ce{constructor(t,o){if(cs===void 0)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,o),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 Ea}static get DefaultType(){return Ca}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),g.off(this._element.closest(Ls),Is,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(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=g.trigger(this._element,this.constructor.eventName("show")),o=(G(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!o)return;this._disposePopper();const a=this._getTipElement();this._element.setAttribute("aria-describedby",a.getAttribute("id"));const{container:f}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(f.append(a),g.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(a),a.classList.add(ei),"ontouchstart"in document.documentElement)for(const p of[].concat(...document.body.children))g.on(p,"mouseover",Y);this._queueCallback(()=>{g.trigger(this._element,this.constructor.eventName("shown")),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!g.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(ei),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))g.off(t,"mouseover",Y);this._activeTrigger[Hi]=!1,this._activeTrigger[qi]=!1,this._activeTrigger[Dn]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),g.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const o=this._getTemplateFactory(t).toHtml();if(!o)return null;o.classList.remove(xi,ei),o.classList.add(`bs-${this.constructor.NAME}-auto`);const a=(f=>{do f+=Math.floor(1e6*Math.random());while(document.getElementById(f));return f})(this.constructor.NAME).toString();return o.setAttribute("id",a),this._isAnimated()&&o.classList.add(xi),o}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new va({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[ya]: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(xi)}_isShown(){return this.tip&&this.tip.classList.contains(ei)}_createPopper(t){const o=J(this._config.placement,[this,t,this._element]),a=_a[o.toUpperCase()];return Fi(this._element,t,this._getPopperConfig(a))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(o=>Number.parseInt(o,10)):typeof t=="function"?o=>t(o,this._element):t}_resolvePossibleFunction(t){return J(t,[this._element,this._element])}_getPopperConfig(t){const o={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:a=>{this._getTipElement().setAttribute("data-popper-placement",a.state.placement)}}]};return{...o,...J(this._config.popperConfig,[void 0,o])}}_setListeners(){const t=this._config.trigger.split(" ");for(const o of t)if(o==="click")g.on(this._element,this.constructor.eventName("click"),this._config.selector,a=>{const f=this._initializeOnDelegatedTarget(a);f._activeTrigger[Hi]=!(f._isShown()&&f._activeTrigger[Hi]),f.toggle()});else if(o!=="manual"){const a=o===Dn?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),f=o===Dn?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");g.on(this._element,a,this._config.selector,p=>{const h=this._initializeOnDelegatedTarget(p);h._activeTrigger[p.type==="focusin"?qi:Dn]=!0,h._enter()}),g.on(this._element,f,this._config.selector,p=>{const h=this._initializeOnDelegatedTarget(p);h._activeTrigger[p.type==="focusout"?qi:Dn]=h._element.contains(p.relatedTarget),h._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},g.on(this._element.closest(Ls),Is,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,o){clearTimeout(this._timeout),this._timeout=setTimeout(t,o)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const o=De.getDataAttributes(this._element);for(const a of Object.keys(o))ba.has(a)&&delete o[a];return t={...o,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:A(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[o,a]of Object.entries(this._config))this.constructor.Default[o]!==a&&(t[o]=a);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 o=Xe.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t]()}})}}X(Xe);const ka=".popover-header",$a=".popover-body",Sa={...Xe.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"},wa={...Xe.DefaultType,content:"(null|string|element|function)"};class ti extends Xe{static get Default(){return Sa}static get DefaultType(){return wa}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ka]:this._getTitle(),[$a]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const o=ti.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t]()}})}}X(ti);const Gi=".bs.scrollspy",Na=`activate${Gi}`,Ps=`click${Gi}`,Ta=`load${Gi}.data-api`,yt="active",Ki="[href]",Rs=".nav-link",Oa=`${Rs}, .nav-item > ${Rs}, .list-group-item`,Aa={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Da={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Bn extends Ce{constructor(t,o){super(t,o),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Aa}static get DefaultType(){return Da}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=A(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(o=>Number.parseFloat(o))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(g.off(this._config.target,Ps),g.on(this._config.target,Ps,Ki,t=>{const o=this._observableSections.get(t.target.hash);if(o){t.preventDefault();const a=this._rootElement||window,f=o.offsetTop-this._element.offsetTop;if(a.scrollTo)return void a.scrollTo({top:f,behavior:"smooth"});a.scrollTop=f}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(o=>this._observerCallback(o),t)}_observerCallback(t){const o=h=>this._targetLinks.get(`#${h.target.id}`),a=h=>{this._previousScrollData.visibleEntryTop=h.target.offsetTop,this._process(o(h))},f=(this._rootElement||document.documentElement).scrollTop,p=f>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=f;for(const h of t){if(!h.isIntersecting){this._activeTarget=null,this._clearActiveClass(o(h));continue}const m=h.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(p&&m){if(a(h),!f)return}else p||m||a(h)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=C.find(Ki,this._config.target);for(const o of t){if(!o.hash||M(o))continue;const a=C.findOne(decodeURI(o.hash),this._element);W(a)&&(this._targetLinks.set(decodeURI(o.hash),o),this._observableSections.set(o.hash,a))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(yt),this._activateParents(t),g.trigger(this._element,Na,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))C.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(yt);else for(const o of C.parents(t,".nav, .list-group"))for(const a of C.prev(o,Oa))a.classList.add(yt)}_clearActiveClass(t){t.classList.remove(yt);const o=C.find(`${Ki}.${yt}`,t);for(const a of o)a.classList.remove(yt)}static jQueryInterface(t){return this.each(function(){const o=Bn.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}})}}g.on(window,Ta,()=>{for(const s of C.find('[data-bs-spy="scroll"]'))Bn.getOrCreateInstance(s)}),X(Bn);const Qe=".bs.tab",Ba=`hide${Qe}`,Va=`hidden${Qe}`,Ma=`show${Qe}`,La=`shown${Qe}`,Ia=`click${Qe}`,Pa=`keydown${Qe}`,Ra=`load${Qe}`,za="ArrowLeft",zs="ArrowRight",Fa="ArrowUp",Fs="ArrowDown",Yi="Home",js="End",Je="active",Us="fade",Xi="show",Ws=".dropdown-toggle",Qi=`:not(${Ws})`,xs='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Ji=`.nav-link${Qi}, .list-group-item${Qi}, [role="tab"]${Qi}, ${xs}`,ja=`.${Je}[data-bs-toggle="tab"], .${Je}[data-bs-toggle="pill"], .${Je}[data-bs-toggle="list"]`;class Ze extends Ce{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),g.on(this._element,Pa,o=>this._keydown(o)))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const o=this._getActiveElem(),a=o?g.trigger(o,Ba,{relatedTarget:t}):null;g.trigger(t,Ma,{relatedTarget:o}).defaultPrevented||a&&a.defaultPrevented||(this._deactivate(o,t),this._activate(t,o))}_activate(t,o){t&&(t.classList.add(Je),this._activate(C.getElementFromSelector(t)),this._queueCallback(()=>{t.getAttribute("role")==="tab"?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),g.trigger(t,La,{relatedTarget:o})):t.classList.add(Xi)},t,t.classList.contains(Us)))}_deactivate(t,o){t&&(t.classList.remove(Je),t.blur(),this._deactivate(C.getElementFromSelector(t)),this._queueCallback(()=>{t.getAttribute("role")==="tab"?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),g.trigger(t,Va,{relatedTarget:o})):t.classList.remove(Xi)},t,t.classList.contains(Us)))}_keydown(t){if(![za,zs,Fa,Fs,Yi,js].includes(t.key))return;t.stopPropagation(),t.preventDefault();const o=this._getChildren().filter(f=>!M(f));let a;if([Yi,js].includes(t.key))a=o[t.key===Yi?0:o.length-1];else{const f=[zs,Fs].includes(t.key);a=Ae(o,t.target,f,!0)}a&&(a.focus({preventScroll:!0}),Ze.getOrCreateInstance(a).show())}_getChildren(){return C.find(Ji,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,o){this._setAttributeIfNotExists(t,"role","tablist");for(const a of o)this._setInitialAttributesOnChild(a)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const o=this._elemIsActive(t),a=this._getOuterElement(t);t.setAttribute("aria-selected",o),a!==t&&this._setAttributeIfNotExists(a,"role","presentation"),o||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const o=C.getElementFromSelector(t);o&&(this._setAttributeIfNotExists(o,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(o,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,o){const a=this._getOuterElement(t);if(!a.classList.contains("dropdown"))return;const f=(p,h)=>{const m=C.findOne(p,a);m&&m.classList.toggle(h,o)};f(Ws,Je),f(".dropdown-menu",Xi),a.setAttribute("aria-expanded",o)}_setAttributeIfNotExists(t,o,a){t.hasAttribute(o)||t.setAttribute(o,a)}_elemIsActive(t){return t.classList.contains(Je)}_getInnerElement(t){return t.matches(Ji)?t:C.findOne(Ji,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each(function(){const o=Ze.getOrCreateInstance(this);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}})}}g.on(document,Ia,xs,function(s){["A","AREA"].includes(this.tagName)&&s.preventDefault(),M(this)||Ze.getOrCreateInstance(this).show()}),g.on(window,Ra,()=>{for(const s of C.find(ja))Ze.getOrCreateInstance(s)}),X(Ze);const Re=".bs.toast",Ua=`mouseover${Re}`,Wa=`mouseout${Re}`,xa=`focusin${Re}`,qa=`focusout${Re}`,Ha=`hide${Re}`,Ga=`hidden${Re}`,Ka=`show${Re}`,Ya=`shown${Re}`,qs="hide",ni="show",ii="showing",Xa={animation:"boolean",autohide:"boolean",delay:"number"},Qa={animation:!0,autohide:!0,delay:5e3};class Vn extends Ce{constructor(t,o){super(t,o),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Qa}static get DefaultType(){return Xa}static get NAME(){return"toast"}show(){g.trigger(this._element,Ka).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(qs),re(this._element),this._element.classList.add(ni,ii),this._queueCallback(()=>{this._element.classList.remove(ii),g.trigger(this._element,Ya),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(g.trigger(this._element,Ha).defaultPrevented||(this._element.classList.add(ii),this._queueCallback(()=>{this._element.classList.add(qs),this._element.classList.remove(ii,ni),g.trigger(this._element,Ga)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ni),super.dispose()}isShown(){return this._element.classList.contains(ni)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,o){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=o;break;case"focusin":case"focusout":this._hasKeyboardInteraction=o}if(o)return void this._clearTimeout();const a=t.relatedTarget;this._element===a||this._element.contains(a)||this._maybeScheduleHide()}_setListeners(){g.on(this._element,Ua,t=>this._onInteraction(t,!0)),g.on(this._element,Wa,t=>this._onInteraction(t,!1)),g.on(this._element,xa,t=>this._onInteraction(t,!0)),g.on(this._element,qa,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const o=Vn.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t](this)}})}}return Fn(Vn),X(Vn),{Alert:$n,Button:Sn,Carousel:at,Collapse:dt,Dropdown:ke,Modal:Ye,Offcanvas:Me,Popover:ti,ScrollSpy:Bn,Tab:Ze,Toast:Vn,Tooltip:Xe}})})(di)),di.exports}var Hc=qc();const uo=Wc(Hc);function Er(e,i=!0){const l=document.getElementById(e);let r=l?.parentElement;for(;r;){const c=(r.getAttribute("class")??"").match(/cl-tab-[0-9]+/);if(c){const u=document.querySelector(`input.${c}`);if(u){u.checked=!0;break}}r=r.parentElement}setTimeout(()=>{i?l?.scrollIntoView({behavior:"smooth"}):l?.scrollIntoView()},0)}let Oe=null;function _n(){Oe?.hide(),Oe=null}function fo(e,i){_n();const l=document.getElementById(e);if(l){Oe=new uo.Modal(l,{backdrop:"static"}),Oe.value=i,Oe.id=e,Oe.show();const r=document.querySelector(`#${e} [autofocus]`);r&&r.focus()}}function ui(e){return uo.Modal.getInstance(document.getElementById(e))?.value}function Gc(e){return Oe?e?Oe.id===e&&Oe._isShown:Oe._isShown:!1}function Cr(e,i=0,l=25){return e?.slice(i*l,i*l+l)??[]}function Kc(e="#invalid"){document.querySelector(e)?.focus()}function kr(e,i=[]){for(const r of i)r.valid=!0;document.querySelector(`#${e} [autofocus]`)?.focus()}function $r(e,i){e&&(e.modelValue=i,e.valid=!0)}function Sr(e){const i=document.querySelector(`#${e}`);return i?(document.querySelectorAll(`#${e} input, #${e} .form-control`).forEach(l=>{l.focus(),l.blur()}),i.checkValidity()===!1||document.querySelector(`#${e} :invalid, #${e} .invalid`)?(po(e),!1):!0):(console.error("can’t find/validate form",e),!1)}async function wr(e){const i=document.getElementById(e);return i?(document.querySelectorAll(`#${e} input, #${e} .form-control`).forEach(l=>{l.focus(),l.blur()}),document.querySelectorAll(`#${e} .ace_editor`).forEach(l=>{l.click()}),new Promise(l=>setTimeout(()=>{if(i.checkValidity()===!1||document.querySelector(`#${e} :invalid, #${e} .invalid`)){po(e),l(!1);return}l(!0)}))):(console.error("can’t find/validate form",e),Promise.resolve(!1))}function Yc(e){document.querySelector(`#${e} [autofocus]`)?.focus()}function po(e){document.querySelector(`#${e} :invalid, #${e} .invalid`)?.focus()}function Xc(e){return e<1024?`${e}B`:e<1024*1024?`${Math.floor(e/1024)}kB`:e<1024*1024*1024?`${Math.floor(e/1024/1024)}MB`:`${Math.floor(e/1024/1024/1024)}GB`}function Nr(e){const i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),l=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${l} ${i}`}function Tr(e,i=!1){const[l,r,c]=[(""+e.getUTCHours()).padStart(2,"0"),(""+e.getUTCMinutes()).padStart(2,"0"),(""+e.getUTCSeconds()).padStart(2,"0")];return i?`${l}:${r}:${c}`:`${l}:${r}`}function Or(e,i=!1){return`${Nr(e)} ${Tr(e,i)}`}function Qc(e,i=!0,l=!0,r=!0,c=!0,u=!1){const d=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),v=new Intl.DateTimeFormat("en",{month:"2-digit"}).format(e),k=new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e),[A,W,M]=[(""+e.getUTCHours()).padStart(2,"0"),(""+e.getUTCMinutes()).padStart(2,"0"),(""+e.getUTCSeconds()).padStart(2,"0")];let G="";return i&&(G+=` ${d}`),l&&(G+=`-${v}`),r&&(G+=`-${k}`),c&&(G+=` ${A}:${W}`),u&&(G+=`:${M}`),G.trim()}function Jc(e,i,l=!0,r=!1){let c=i.getTime()-e.getTime();r?c+=1:l?c+=1e3:c+=60*1e3;const u=(""+c%1e3).padStart(3,"0");c=Math.floor(c/1e3);const d=(""+c%60).padStart(2,"0");c=Math.floor(c/60);const v=(""+c%60).padStart(2,"0");c=Math.floor(c/60);const k=(""+c).padStart(2,"0");return r?`${k}:${v}:${d}.${u}`:l?`${k}:${v}:${d}`:`${k}:${v}`}function Zc(e){const i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e);return`${new Intl.DateTimeFormat("en",{month:"short"}).format(e)} ${i}`}function hi(e,i=0){return e.toLocaleString("en",{minimumFractionDigits:i})}function ed(e,i,l=2){switch(i){case"EUR":i="€";break;case"USD":i="$";break}return`${i} ${hi(e/10**l,l)}`}function td(e,i){return`${hi(e)} - ${hi(i)}`}function Ar(e){return`**** **** **** ${e.replace(/ /g,"").substr(-4)}`}function nd(e,i,l=e.ID_FORM){if(l){if(Sr(l)&&!e.submitting)return e.submitting=!0,i().finally(()=>{e.submitting=!1})}else if(!e.submitting)return e.submitting=!0,i().finally(()=>{e.submitting=!1});return Promise.resolve()}function id(e,i,l=e.ID_FORM){return e.submitting?Promise.resolve():wr(l).then(r=>{if(r)return e.submitting=!0,i().finally(()=>{e.submitting=!1})})}function kt(e,i){const l=i.split("."),r=l.shift(),c=e[r];return[void 0,null].includes(c)?c:l.length>0?kt(c,l.join(".")):c}function Dr(e,i,l="ASC",r=!1){if(!e)return[];const c=typeof e=="function"?[...e()]:[...e],u=(d,v)=>d.localeCompare(v,void 0,{ignorePunctuation:!0});return l==="ASC"?c.sort((d,v)=>(d=kt(d,i)??"",v=kt(v,i)??"",typeof d=="string"&&typeof v=="string"?r?u(d.toUpperCase(),v.toUpperCase()):u(d,v):d>v?1:d<v?-1:0)):c.sort((d,v)=>(d=kt(d,i)??"",v=kt(v,i)??"",typeof d=="string"&&typeof v=="string"?r?u(v.toUpperCase(),d.toUpperCase()):u(v,d):d<v?1:d>v?-1:0))}function Br(e,i=0,l="ASC"){return{col:i,order:l,set:function(r,c){const u=this.sort(r,c);this.col=r,this.order=u},get:function(r){return this.col===r?this.order:"NONE"},sorted:[],sorter:e,sort:function(r=this.col,c=this.order){const{sorted:u,sortedOrder:d}=this.sorter(r,c);return this.sorted=u,d}}}function od(e,i,l=0,r=()=>0,c=()=>Number.MAX_SAFE_INTEGER){return Br((u,d)=>({sorted:Cr(Dr(e,i[u],d),r(),c()),sortedOrder:d}),l)}function sd(e,i=500,l="none"){clearTimeout(dr.get(l)),dr.set(l,setTimeout(e,i))}const dr=new Map;function rd(e=3,i=["lorem","ipsum","dolor","sit","amet","consectetur","adipiscing","elit","eiusmod","tempor","incididunt","labore","et","dolore","magna","aliqua"]){let l="";for(let r=0;r<e;r++)l+=" "+i[Math.floor(Math.random()*i.length)];return l.substr(1)}function ld(e=3,i=["alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","omicorn"]){const l=[];for(let r=0;r<e;r++)l.push(i[Math.floor(Math.random()*i.length)]);return l}function ad(e){navigator.clipboard.writeText(e)}function cd(e,i=[],l=[],r=!0){const c=[];for(const u of i)if(typeof u=="function")c.push(u());else if(u){const d=u.shift();c.push(d(...u))}for(const u of l)if(typeof u=="function")c.push(u(!1));else if(u){const d=u.shift();c.push(d(u.shift(),!1))}return r?(e.loading=Promise.all(c).finally(()=>{r&&(e.loading=null)}),e.loading):Promise.all(c)}function dd(e,i=[],l=[],r=!0){const c=[];for(const u of i)if(typeof u=="function")c.push(u(!0));else if(u){const d=u.shift();c.push(d(!0,...u))}for(const u of l)if(typeof u=="function")c.push(u(!1));else if(u){const d=u.shift();c.push(d(!1,...u))}return r?(e.loading=Promise.all(c).finally(()=>{r&&(e.loading=null)}),e.loading):Promise.all(c)}function ud(e){return new Promise(i=>setTimeout(i,e))}const fd=n.defineComponent({name:"ClBackCancelOk",props:{ok:{type:String,default:"Ok"},back:{type:String,default:"Back"},cancel:{type:String,default:"Cancel"},disabled:{type:Boolean,default:!1},dirty:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},backHidden:{type:Boolean,default:!1},spinner:{type:Boolean,default:!1}},emits:["ok","cancel"],data(){return{ID_MODAL:"cl-modal-back-cancel-ok"}},methods:{clModalHide:_n,abort:function(){this.dirty?fo(this.ID_MODAL,{}):this.$emit("cancel")},emit:function(e){_n(),this.$emit(e)}}}),pd={key:0},hd={key:1},md=["disabled"];function gd(e,i,l,r,c,u){const d=n.resolveComponent("cl-modal"),v=n.resolveComponent("cl-section-main");return n.openBlock(),n.createBlock(v,{class:"cl-back-cancel-ok"},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.createElementVNode("div",{class:n.normalizeClass(["cl-spacing-box cl-spacing-medium it-buttons",[e.backHidden?"text-end":"cl-spread"]])},[e.backHidden?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"btn cl-color-secondary it-cancel",onClick:i[0]||(i[0]=k=>e.abort())},[e.dirty?(n.openBlock(),n.createElementBlock("span",pd,n.toDisplayString(e.cancel),1)):(n.openBlock(),n.createElementBlock("span",hd,n.toDisplayString(e.back),1))])),e.hidden?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:1,type:"button",class:n.normalizeClass(["btn cl-color-primary it-ok",{"cl-btn-spinner":e.spinner}]),disabled:e.disabled||!e.dirty,onClick:i[1]||(i[1]=k=>e.$emit("ok"))},[n.createElementVNode("span",null,n.toDisplayString(e.ok),1)],10,md))],2),n.createVNode(d,{id:e.ID_MODAL},{title:n.withCtx(()=>[...i[4]||(i[4]=[n.createTextVNode(" Unsaved changes ",-1)])]),body:n.withCtx(()=>[n.renderSlot(e.$slots,"modal",{},()=>[i[5]||(i[5]=n.createElementVNode("p",null,"There are unsaved changes. Do you want to discard them or continue editing?",-1))])]),"footer-left":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:"btn cl-color-secondary it-cancel",onClick:i[2]||(i[2]=k=>e.emit("cancel",!0))}," Discard changes ")]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:"btn cl-color-primary it-ok",onClick:i[3]||(i[3]=k=>e.clModalHide())}," Continue editing ")]),_:3},8,["id"])]),_:3})}const St=$(fd,[["render",gd]]);St.install=e=>{e.component(St.name??"ClNoName",St)};const vd=n.defineComponent({name:"ClCookieBanner",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},local:{type:Boolean,default:!1}},emits:["consent"],data(){return{fade:!1,visible:!0,cookie:"cl_banner_nok"}},computed:{clazz:function(){return(this.fade?" cl-fade-away":"")+(this.class?` ${this.class}`:"")}},created(){if(!this.local&&!window.location.hostname.match(/castlabs.com$/)){this.visible=!1;return}for(const e of document?.cookie?.split(/; */)??[]){const[i,l]=e.split("=");if(i===this.cookie&&["-mtm","+mtm"].includes(l??"unknown")){this.visible=!1;return}}},methods:{accept:function(){document.cookie=this.cookieString("+mtm"),this.hide(),this.$emit("consent")},decline:function(){document.cookie=this.cookieString("-mtm"),this.hide()},cookieString:function(e){return this.local?`${this.cookie}=${e}; max-age=${3600*24*395}; path=/; SameSite=Lax;`:`${this.cookie}=${e}; max-age=${3600*24*395}; domain=.castlabs.com; path=/; SameSite=Lax;`},hide:function(){this.fade=!0,setTimeout(()=>{this.visible=!1},500)}}}),bd=["id"],yd={class:"card-body"},_d={class:"cl-spacing-box cl-spread"};function Ed(e,i,l,r,c,u){return e.visible?(n.openBlock(),n.createElementBlock("div",{key:0,id:e.id,class:n.normalizeClass(["card cl-card cl-cookie-banner",e.clazz])},[n.createElementVNode("div",yd,[n.renderSlot(e.$slots,"default",{},()=>[i[2]||(i[2]=n.createElementVNode("p",{class:"cl-p-small"},[n.createTextVNode(" For our services to work, we use essential cookies which we control. We'd also like to include others to analyze how our site is used to help improve it - but only if you accept. Learn more in our "),n.createElementVNode("a",{class:"cl-a-text",href:"https://castlabs.com/privacy-cookie-policy/"},"privacy policy"),n.createTextVNode(". ")],-1))]),n.createElementVNode("div",_d,[n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-color-secondary it-cancel",onClick:i[0]||(i[0]=d=>e.decline())}," Decline "),n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-color-red it-ok",onClick:i[1]||(i[1]=d=>e.accept())}," Accept ")])])],10,bd)):n.createCommentVNode("",!0)}const wt=$(vd,[["render",Ed]]);wt.install=e=>{e.component(wt.name??"ClNoName",wt)};const Cn={mounted(e,i){let l="";for(const c of["cl-tooltip-primary","cl-tooltip-secondary","cl-tooltip-light","cl-tooltip-dark"])e.classList.contains(c)&&(l+=` ${c}`);const r=new uo.Tooltip(e,{title:i.value,placement:i.arg,html:!0,trigger:"hover",delay:{show:65,hide:0},template:`<div class="tooltip cl-tooltip${l}" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>`});return e.__tooltipInstance=r,e.addEventListener("show.bs.tooltip",function(){document.querySelectorAll(".cl-tooltip").forEach(u=>u.remove())}),r},unmounted(e){const i=e.__tooltipInstance;if(i){typeof i.dispose=="function"&&i.dispose();const l=document.querySelector(".cl-tooltip");l&&l.remove(),delete e.__tooltipInstance}}},ho={mounted(e,i){e.addEventListener("click",function(){const l=typeof i.value=="function"?i.value():i.value;i.value!==""&&navigator.clipboard?.writeText(l),e.classList.add("cl-animation-flash-text"),setTimeout(()=>{e.classList.remove("cl-animation-flash-text")},1500)})}};function Cd(e){return e}function kd(e){return e}function $d(e){return e}function mo(e){n.nextTick(()=>{e?.focus()})}const Sd=n.defineComponent({name:"ClCopy",directives:{tooltip:Cn,clipboard:ho},props:{show:{type:String,default:void 0},copy:{type:String,default:void 0},underline:{type:Boolean,default:!1},code:{type:Boolean,default:!1},unstyled:{type:Boolean,default:!1}},methods:{tooltip:function(){return this.show&&this.contentToCopy()!==this.show?`${this.contentToCopy()}<br><small>Click-to-copy!</small>`:"<small>Click-to-copy!</small>"},contentToCopy:function(){return this.copy??this.$refs.content?.textContent.trim()}}}),wd={key:0,ref:"content",class:"cl-copy"},Nd={ref:"content"};function Td(e,i,l,r,c,u){const d=n.resolveDirective("tooltip"),v=n.resolveDirective("clipboard");return e.unstyled?n.withDirectives((n.openBlock(),n.createElementBlock("span",wd,[e.show?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.show),1)],64)):e.$slots.default?n.renderSlot(e.$slots,"default",{key:1}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString(e.copy??"?"),1)],64))])),[[d,e.tooltip,"top"],[v,e.contentToCopy]]):e.code?n.withDirectives((n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass(e.underline?"cl-copy cl-copy-text":"cl-copy cl-copy-transparent")},[n.createElementVNode("code",Nd,[e.show?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.show),1)],64)):e.$slots.default?n.renderSlot(e.$slots,"default",{key:1}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString(e.copy??"?"),1)],64))],512)],2)),[[d,e.tooltip,"top"],[v,e.contentToCopy]]):n.withDirectives((n.openBlock(),n.createElementBlock("span",{key:2,ref:"content",class:n.normalizeClass(e.underline?"cl-copy cl-copy-text":"cl-copy cl-copy-transparent")},[e.show?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.show),1)],64)):e.$slots.default?n.renderSlot(e.$slots,"default",{key:1}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString(e.copy??"?"),1)],64))],2)),[[d,e.tooltip,"top"],[v,e.contentToCopy]])}const Nt=$(Sd,[["render",Td]]);Nt.install=e=>{e.component(Nt.name??"ClNoName",Nt)};const Od=n.defineComponent({name:"ClCreditcardNumber",props:{id:{type:String,default:void 0},class:{type:String,default:""},number:{type:String,default:"0000000000000000"},expires:{type:String,default:"MM/YYYY"},expired:{type:Boolean,default:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""},validText:function(){return this.expired?"expired":"valid until"}},methods:{clFormatCardNumber:Ar}}),Ad=["id"];function Dd(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("code",{id:e.id,class:n.normalizeClass(e.clazz)},n.toDisplayString(e.clFormatCardNumber(e.number)),11,Ad),n.createTextVNode(", "+n.toDisplayString(e.validText)+" ",1),n.createElementVNode("code",null,n.toDisplayString(e.expires),1)],64)}const Tt=$(Od,[["render",Dd]]);Tt.install=e=>{e.component(Tt.name??"ClNoName",Tt)};function ur(e){e.preventDefault()}const Bd=n.defineComponent({name:"ClDropzone",props:{what:{type:String,default:"a file"},why:{type:String,default:"to add"},accept:{type:String,default:void 0},camera:{type:Boolean,default:!1},emitContent:{type:Boolean,default:!1}},emits:["file","content"],data(){return{$uid:0,dragging:!1}},mounted(){["dragenter","dragover","dragleave","drop"].forEach(e=>{document.body.addEventListener(e,ur)})},unmounted(){["dragenter","dragover","dragleave","drop"].forEach(e=>{document.body.removeEventListener(e,ur)})},methods:{browse:function(){const e=document.getElementById(`cl-dropzone-file-${this.$uid}`);if(e&&document.createEvent){const i=document.createEvent("MouseEvents");i.initEvent("click",!0,!1),e.dispatchEvent(i)}},browsed:function(){const i=document.getElementById(`cl-dropzone-file-${this.$uid}`).files??[];i.length>0&&this.loadFile(i[0])},mock:function(e){this.$emit("file",e)},loadFile:function(e){const i=this.$emit;if(i("file",e),this.emitContent){const l=new FileReader;l.onload=function(r){i("content",r.target?.result)},l.readAsText(e)}},onDrop:function(e){e.dataTransfer&&this.loadFile(e.dataTransfer.files[0]),this.dragging=!1},onDrag:function(e){this.dragging=e}}}),Vd=["id"],Md=["id","accept"];function Ld(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["cl-spacing-small",e.dragging?"cl-dragging":""]),onDragover:i[6]||(i[6]=d=>e.onDrag(!0)),onDragleave:i[7]||(i[7]=d=>e.onDrag(!1)),onDrop:i[8]||(i[8]=n.withModifiers((...d)=>e.onDrop&&e.onDrop(...d),["prevent"]))},[e.camera?(n.openBlock(),n.createElementBlock("input",{key:0,id:`cl-dropzone-file-${e.$uid}`,type:"file",accept:"image/*",class:"cl-dropzone-file",capture:"environment",onChange:i[0]||(i[0]=(...d)=>e.browsed&&e.browsed(...d)),tabindex:"-1"},null,40,Vd)):n.createCommentVNode("",!0),n.createElementVNode("input",{id:`cl-dropzone-file-${e.$uid}`,type:"file",accept:e.accept,class:"cl-dropzone-file",onChange:i[1]||(i[1]=(...d)=>e.browsed&&e.browsed(...d)),tabindex:"-1"},null,40,Md),e.camera?(n.openBlock(),n.createElementBlock("div",{key:1,class:"cl-dropzone",onClick:i[3]||(i[3]=d=>e.browse())},[i[9]||(i[9]=n.createElementVNode("i",{class:"fas fa-camera","aria-hidden":"true"},null,-1)),i[10]||(i[10]=n.createTextVNode("Use your ",-1)),n.createElementVNode("a",{href:"#",onClick:i[2]||(i[2]=n.withModifiers(()=>{},["prevent"]))},"camera"),n.createTextVNode(" to take a picture "+n.toDisplayString(e.why)+". ",1)])):(n.openBlock(),n.createElementBlock("div",{key:2,class:"cl-dropzone",onClick:i[5]||(i[5]=d=>e.browse())},[i[11]||(i[11]=n.createElementVNode("i",{class:"fas fa-file-upload","aria-hidden":"true"},null,-1)),i[12]||(i[12]=n.createTextVNode("Drop or ",-1)),n.createElementVNode("a",{href:"#",onClick:i[4]||(i[4]=n.withModifiers(()=>{},["prevent"]))},"browse"),n.createTextVNode(" "+n.toDisplayString(e.what)+" "+n.toDisplayString(e.why)+". ",1)])),n.renderSlot(e.$slots,"default")],34)}const Ot=$(Bd,[["render",Ld]]);Ot.install=e=>{e.component(Ot.name??"ClNoName",Ot)};const Id=n.defineComponent({name:"ClField",inheritAttrs:!1,props:{value:{type:String,default:void 0},type:{type:String,default:"text"},label:{type:String,default:void 0},placeholder:{type:String,default:void 0},class:{type:String,default:""},help:{type:String,default:void 0},error:{type:String,default:void 0},nofeedback:{type:Boolean,default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},autotrim:{type:Boolean,default:!1},prevalidate:{type:Boolean,default:!1},minlength:{type:String,default:void 0},maxlength:{type:String,default:void 0},min:{type:String,default:void 0},max:{type:String,default:void 0},pattern:{type:String,default:void 0}},emits:["valid","invalid","changed","update:modelValue"],data(){return{valid:!0,modelValue:this.value??"",invalidMessage:this.error??"Input invalid.",filePlaceholder:this.placeholder??"Please select ..."}},computed:{clazz:function(){return this.type==="file"?this.class+" cl-file"+(this.valid?"":" invalid"):this.class+" form-control"+(this.valid?"":" invalid")}},watch:{value(e){this.modelValue!==e&&(this.modelValue=e)}},mounted:function(){this.prevalidate&&this.validate()},methods:{runAutotrim:function(){if(this.autotrim||["number"].includes(this.type)){const e=this.$refs.input;e.value=e.value.trim(),this.modelValue=e.value}},focus:function(){mo(this.$refs.input)},validate:function(e=!1){if(this.valid=!0,e&&this.runAutotrim(),this.type==="file"&&this.modelValue!==""&&(this.filePlaceholder=this.modelValue.replace(/.*[/\\]/,"")),this.required&&(this.modelValue?.length??0)<=0)this.setInvalid("This field may not be blank.");else switch(this.type){case"number":this.validateNumber();break;case"email":this.validateEMail();break;default:this.validateText()}this.valid&&this.setValid(this.modelValue)},validateSilent:function(){if(this.required&&(this.modelValue?.length??0)<=0)return!1;switch(this.type){case"number":if(!this.validateNumber(!0))return!1;break;case"email":if(!this.validateEMail(!0))return!1;break;default:if(!this.validateText(!0))return!1}return!0},validateText:function(e=!1){const i=Number(this.minlength),l=Number(this.maxlength);return this.minlength&&(this.modelValue?.length??0)<i?(e||this.setInvalid(this.error??`Please enter at least ${i} character`+(i>1?"s.":".")),!1):this.maxlength&&(this.modelValue?.length??0)>l?(e||this.setInvalid(this.error??`Please enter at most ${l} character`+(i>1?"s.":".")),!1):this.pattern&&!new RegExp(this.pattern,"g").test(this.modelValue)?(e||this.setInvalid(this.error),!1):!0},validateNumber:function(e=!1){const i=this.modelValue.trim();if(!/^-?[0-9]*$/.test(i.trim()))return e||this.setInvalid("Please enter a number."),!1;const l=parseInt(i.trim());if(l.toString()!==i)return e||this.setInvalid("Please enter a number."),!1;if(this.min!==void 0&&this.max!==void 0){if(l<parseInt(this.min)||l>parseInt(this.max))return e||this.setInvalid(`Please enter a number between ${this.min} and ${this.max}.`),!1}else if(this.min!==void 0){if(l<parseInt(this.min))return e||this.setInvalid(`Please enter a number >= ${this.min}.`),!1}else if(this.max!==void 0&&l>parseInt(this.max))return e||this.setInvalid(`Please enter a number <= ${this.max}.`),!1;return!0},validateEMail:function(e=!1){return/^[^\s@]+@[^\s@]+\.[^\s@]+[^\s@.]$/.test(this.modelValue)?!0:(e||this.setInvalid("Please enter a valid email address."),!1)},setValid:function(e=""){this.valid=!0,this.modelValue=e,this.$emit("update:modelValue",this.modelValue),this.$emit("valid",this.help??""),this.$emit("changed",this.modelValue)},setInvalid:function(e){this.valid=!1,this.invalidMessage=e??"Input invalid.",this.$emit("update:modelValue",this.modelValue),this.$emit("invalid",this.invalidMessage),this.$emit("changed",this.modelValue)}}}),Pd=["for"],Rd={key:0,class:"required"},zd=["id","autofocus","disabled","maxlength","minlength","placeholder","required"],Fd=["id","autofocus","disabled","required"],jd=["id","autofocus","disabled","min","max","maxlength","minlength","pattern","placeholder","required","type"],Ud=["id","for"],Wd={class:"invalid-feedback"},xd={key:0,class:"valid-feedback"},qd={key:1,class:"valid-feedback valid-feedback-none"};function Hd(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.label?(n.openBlock(),n.createElementBlock("label",{key:0,for:e.$uid,class:"form-label"},[n.createTextVNode(n.toDisplayString(e.label),1),e.required?(n.openBlock(),n.createElementBlock("span",Rd,"*")):n.createCommentVNode("",!0)],8,Pd)):n.createCommentVNode("",!0),e.type==="textarea"?n.withDirectives((n.openBlock(),n.createElementBlock("textarea",n.mergeProps({key:1,id:e.$uid},e.$attrs,{ref:"input","onUpdate:modelValue":i[0]||(i[0]=d=>e.modelValue=d),autofocus:e.autofocus,class:e.clazz,disabled:e.disabled,maxlength:e.maxlength,minlength:e.minlength,placeholder:e.placeholder,required:e.required,onBlur:i[1]||(i[1]=d=>e.validate(!0)),onChange:i[2]||(i[2]=d=>e.validate()),onInput:i[3]||(i[3]=d=>e.validate())}),null,16,zd)),[[n.vModelText,e.modelValue]]):e.type==="select"?n.withDirectives((n.openBlock(),n.createElementBlock("select",n.mergeProps({key:2,id:e.$uid,"onUpdate:modelValue":i[4]||(i[4]=d=>e.modelValue=d),class:["form-select",e.clazz],autofocus:e.autofocus,disabled:e.disabled,required:e.required},e.$attrs,{onBlur:i[5]||(i[5]=d=>e.validate(!0)),onChange:i[6]||(i[6]=d=>e.validate())}),[n.renderSlot(e.$slots,"default")],16,Fd)),[[n.vModelSelect,e.modelValue]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",n.mergeProps({key:3,id:e.$uid},e.$attrs,{ref:"input","onUpdate:modelValue":i[7]||(i[7]=d=>e.modelValue=d),autofocus:e.autofocus,class:e.clazz,disabled:e.disabled,min:e.min,max:e.max,maxlength:e.maxlength,minlength:e.minlength,pattern:e.pattern,placeholder:e.placeholder,required:e.required,type:["number"].includes(e.type)?"text":e.type,onBlur:i[8]||(i[8]=d=>e.validate(!0)),onChange:i[9]||(i[9]=d=>e.validate()),onInput:i[10]||(i[10]=d=>e.validate())}),null,16,jd)),[[n.vModelDynamic,e.modelValue]]),e.type==="file"?(n.openBlock(),n.createElementBlock("label",{key:4,id:`${e.$uid}-companion`,for:e.$uid,class:"cl-file-companion"},n.toDisplayString(e.filePlaceholder),9,Ud)):n.createCommentVNode("",!0),e.nofeedback?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:5},[n.createElementVNode("p",Wd,n.toDisplayString(e.invalidMessage),1),e.help?(n.openBlock(),n.createElementBlock("p",xd,n.toDisplayString(e.help),1)):(n.openBlock(),n.createElementBlock("p",qd))],64))],64)}const At=$(Id,[["render",Hd]]);At.install=e=>{e.component(At.name??"ClNoName",At)};const Gd=n.defineComponent({name:"ClFieldCheck",inheritAttrs:!1,props:{id:{type:String,default:void 0},value:{type:Boolean,default:!1},label:{type:String,default:void 0},class:{type:String,default:""},inline:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{modelValue:this.value}},computed:{clazz:function(){return`form-check${this.inline?" form-check-inline":""} ${this.class}`}},watch:{value(e){this.modelValue!==e&&(this.modelValue=e)}},methods:{check:function(e=!1){this.modelValue=e,this.$refs.input.checked=e},focus:function(){mo(this.$refs.input)}}}),Kd=["id","disabled","indeterminate","autofocus"],Yd=["for"];function Xd(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.clazz)},[n.withDirectives(n.createElementVNode("input",n.mergeProps({id:e.id??e.$uid,"onUpdate:modelValue":i[0]||(i[0]=d=>e.modelValue=d),class:"form-check-input",type:"checkbox",disabled:e.disabled,indeterminate:e.indeterminate,autofocus:e.autofocus},e.$attrs,{onChange:i[1]||(i[1]=d=>e.$emit("update:modelValue",e.modelValue))}),null,16,Kd),[[n.vModelCheckbox,e.modelValue]]),n.createElementVNode("label",{class:"form-check-label",for:e.id??e.$uid},[n.renderSlot(e.$slots,"default")],8,Yd)],2)}const Dt=$(Gd,[["render",Xd]]);Dt.install=e=>{e.component(Dt.name??"ClNoName",Dt)};const Qd=n.defineComponent({name:"ClFieldGroup",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:void 0},label:{type:String,default:void 0},help:{type:String,default:void 0},error:{type:String,default:void 0},required:{type:Boolean,default:!1}},data(){return{valid:!0,invalidMessage:this.error??"Input invalid."}},computed:{clazz:function(){return(this.valid?"":" invalid")+(this.class?` ${this.class}`:"")}},methods:{setValid:function(){this.valid=!0,this.invalidMessage="Input invalid."},setInvalid:function(e){this.valid=!1,this.invalidMessage=e??"Input invalid."}}}),Jd={key:0,class:"form-label"},Zd={key:0,class:"required"},eu=["id"],tu={class:"invalid-feedback"},nu={key:1,class:"valid-feedback"};function iu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.label?(n.openBlock(),n.createElementBlock("label",Jd,[n.createTextVNode(n.toDisplayString(e.label),1),e.required?(n.openBlock(),n.createElementBlock("span",Zd,"*")):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(`input-group${e.clazz}`),id:e.id},[n.renderSlot(e.$slots,"default")],10,eu),n.createElementVNode("p",tu,n.toDisplayString(e.invalidMessage),1),e.help?(n.openBlock(),n.createElementBlock("p",nu,n.toDisplayString(e.help),1)):n.createCommentVNode("",!0)],64)}const Bt=$(Qd,[["render",iu]]);Bt.install=e=>{e.component(Bt.name??"ClNoName",Bt)};const ou=n.defineComponent({name:"ClHashtag",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},name:{type:String,default:""},primary:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},derived:{type:Boolean,default:!1}},computed:{clazz:function(){let e="cl-hashtag ";return!this.primary&&!this.secondary?this.class.includes("cl-color")||(e+=" cl-color-ash"):this.primary?e+=" cl-color-red":this.secondary&&(e+=" cl-color-steel"),e+(this.class?` ${this.class}`:"")}}}),su={key:0,class:"cl-badge-derived"},ru=["id"],lu=["id"];function au(e,i,l,r,c,u){return e.derived?(n.openBlock(),n.createElementBlock("span",su,[n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,ru)])):(n.openBlock(),n.createElementBlock("span",{key:1,id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,lu))}const Vt=$(ou,[["render",au]]);Vt.install=e=>{e.component(Vt.name??"ClNoName",Vt)};const cu=n.defineComponent({name:"ClIconotron",props:{src:{type:String,default:void 0}}}),du={class:"container cl-container-iconotron"},uu={class:"row"},fu={class:"col-12 col-md-3"},pu=["src"],hu={class:"col-12 col-md-9"};function mu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",du,[n.createElementVNode("div",uu,[n.createElementVNode("div",fu,[n.createElementVNode("img",{src:e.src,alt:""},null,8,pu)]),n.createElementVNode("div",hu,[n.renderSlot(e.$slots,"default")])])])}const Mt=$(cu,[["render",mu]]);Mt.install=e=>{e.component(Mt.name??"ClNoName",Mt)};const gu=n.defineComponent({name:"ClInfo",directives:{tooltip:Cn},props:{bottom:{type:Boolean,default:!1},left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},top:{type:Boolean,default:!0},info:{type:String,default:"Tooltip"},faded:{type:Boolean,default:!0},icon:{type:String,default:"far fa-question-circle"}},computed:{classes:function(){return this.icon+(this.faded?" cl-faded":"")}}});function vu(e,i,l,r,c,u){const d=n.resolveDirective("tooltip");return e.bottom?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(e.classes),"aria-hidden":"true"},null,2)),[[d,e.info,"bottom"]]):e.left?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(e.classes),"aria-hidden":"true"},null,2)),[[d,e.info,"left"]]):e.right?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(e.classes),"aria-hidden":"true"},null,2)),[[d,e.info,"right"]]):n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:3,class:n.normalizeClass(e.classes),"aria-hidden":"true"},null,2)),[[d,e.info,"top"]])}const Lt=$(gu,[["render",vu]]);Lt.install=e=>{e.component(Lt.name??"ClNoName",Lt)};const bu=n.defineComponent({name:"ClLinkExternal",props:{noicon:{type:Boolean,default:!1}}});function yu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("a",{class:n.normalizeClass({"cl-a-external":!e.noicon}),target:"_blank",rel:"noopener noreferrer"},[n.renderSlot(e.$slots,"default")],2)}const It=$(bu,[["render",yu]]);It.install=e=>{e.component(It.name??"ClNoName",It)};const _u=`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");function fi(e){var i=typeof e;return e!=null&&(i=="object"||i=="function")}var rc=typeof global=="object"&&global&&global.Object===Object&&global,lc=typeof self=="object"&&self&&self.Object===Object&&self,pr=rc||lc||Function("return this")(),no=function(){return pr.Date.now()},ac=/\s/;function cc(e){for(var i=e.length;i--&&ac.test(e.charAt(i)););return i}var dc=/^\s+/;function uc(e){return e&&e.slice(0,cc(e)+1).replace(dc,"")}var pi=pr.Symbol,hr=Object.prototype,fc=hr.hasOwnProperty,pc=hr.toString,Mn=pi?pi.toStringTag:void 0;function hc(e){var i=fc.call(e,Mn),l=e[Mn];try{e[Mn]=void 0;var r=!0}catch{}var c=pc.call(e);return r&&(i?e[Mn]=l:delete e[Mn]),c}var mc=Object.prototype,gc=mc.toString;function vc(e){return gc.call(e)}var bc="[object Null]",yc="[object Undefined]",or=pi?pi.toStringTag:void 0;function _c(e){return e==null?e===void 0?yc:bc:or&&or in Object(e)?hc(e):vc(e)}function Ec(e){return e!=null&&typeof e=="object"}var Cc="[object Symbol]";function kc(e){return typeof e=="symbol"||Ec(e)&&_c(e)==Cc}var sr=NaN,$c=/^[-+]0x[0-9a-f]+$/i,Sc=/^0b[01]+$/i,wc=/^0o[0-7]+$/i,Nc=parseInt;function rr(e){if(typeof e=="number")return e;if(kc(e))return sr;if(fi(e)){var i=typeof e.valueOf=="function"?e.valueOf():e;e=fi(i)?i+"":i}if(typeof e!="string")return e===0?e:+e;e=uc(e);var l=Sc.test(e);return l||wc.test(e)?Nc(e.slice(2),l?2:8):$c.test(e)?sr:+e}var Tc="Expected a function",Oc=Math.max,Ac=Math.min;function ai(e,i,l){var r,c,u,d,v,k,A=0,W=!1,M=!1,G=!0;if(typeof e!="function")throw new TypeError(Tc);i=rr(i)||0,fi(l)&&(W=!!l.leading,M="maxWait"in l,u=M?Oc(rr(l.maxWait)||0,i):u,G="trailing"in l?!!l.trailing:G);function Y(x){var pe=r,he=c;return r=c=void 0,A=x,d=e.apply(he,pe),d}function re(x){return A=x,v=setTimeout(H,i),W?Y(x):d}function Ee(x){var pe=x-k,he=x-A,ot=i-pe;return M?Ac(ot,u-he):ot}function le(x){var pe=x-k,he=x-A;return k===void 0||pe>=i||pe<0||M&&he>=u}function H(){var x=no();if(le(x))return X(x);v=setTimeout(H,Ee(x))}function X(x){return v=void 0,G&&r?Y(x):(r=c=void 0,d)}function J(){v!==void 0&&clearTimeout(v),A=0,r=k=c=v=void 0}function it(){return v===void 0?d:X(no())}function Ae(){var x=no(),pe=le(x);if(r=arguments,c=this,k=x,pe){if(v===void 0)return re(k);if(M)return clearTimeout(v),v=setTimeout(H,i),Y(k)}return v===void 0&&(v=setTimeout(H,i)),d}return Ae.cancel=J,Ae.flush=it,Ae}var Dc="Expected a function";function Bc(e,i,l){var r=!0,c=!0;if(typeof e!="function")throw new TypeError(Dc);return fi(l)&&(r="leading"in l?!!l.leading:r,c="trailing"in l?!!l.trailing:c),ai(e,i,{leading:r,maxWait:i,trailing:c})}var Ct=function(){return Ct=Object.assign||function(i){for(var l,r=1,c=arguments.length;r<c;r++){l=arguments[r];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(i[u]=l[u])}return i},Ct.apply(this,arguments)};function mr(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function gr(e){return!e||!e.ownerDocument?document:e.ownerDocument}var vr=function(e){var i={},l=Array.prototype.reduce.call(e,function(r,c){var u=c.name.match(/data-simplebar-(.+)/);if(u){var d=u[1].replace(/\W+(.)/g,function(v,k){return k.toUpperCase()});switch(c.value){case"true":r[d]=!0;break;case"false":r[d]=!1;break;case void 0:r[d]=!0;break;default:r[d]=c.value}}return r},i);return l};function br(e,i){var l;e&&(l=e.classList).add.apply(l,i.split(" "))}function yr(e,i){e&&i.split(" ").forEach(function(l){e.classList.remove(l)})}function _r(e){return".".concat(e.split(" ").join("."))}var ao=!!(typeof window<"u"&&window.document&&window.document.createElement),Vc=Object.freeze({__proto__:null,addClasses:br,canUseDOM:ao,classNamesToQuery:_r,getElementDocument:gr,getElementWindow:mr,getOptions:vr,removeClasses:yr}),Et=null,lr=null;ao&&window.addEventListener("resize",function(){lr!==window.devicePixelRatio&&(lr=window.devicePixelRatio,Et=null)});function ar(){if(Et===null){if(typeof document>"u")return Et=0,Et;var e=document.body,i=document.createElement("div");i.classList.add("simplebar-hide-scrollbar"),e.appendChild(i);var l=i.getBoundingClientRect().right;e.removeChild(i),Et=l}return Et}var Fe=mr,io=gr,Mc=vr,je=br,Ue=yr,se=_r,ci=(function(){function e(i,l){l===void 0&&(l={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var c=Fe(r.el);r.scrollXTicking||(c.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(c.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,je(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){Ue(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(je(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){Ue(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(c){r.mouseX=c.clientX,r.mouseY=c.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(c){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var u,d;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(u=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(d=r.isWithinBounds(r.axis.y.track.rect)),(u||d)&&(c.stopPropagation(),c.type==="pointerdown"&&c.pointerType!=="touch"&&(u&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(c,"x"):r.onTrackClick(c,"x")),d&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(c,"y"):r.onTrackClick(c,"y"))))}},this.drag=function(c){var u,d,v,k,A,W,M,G,Y,re,Ee;if(!(!r.draggedAxis||!r.contentWrapperEl)){var le,H=r.axis[r.draggedAxis].track,X=(d=(u=H.rect)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].sizeAttr])!==null&&d!==void 0?d:0,J=r.axis[r.draggedAxis].scrollbar,it=(k=(v=r.contentWrapperEl)===null||v===void 0?void 0:v[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&k!==void 0?k:0,Ae=parseInt((W=(A=r.elStyles)===null||A===void 0?void 0:A[r.axis[r.draggedAxis].sizeAttr])!==null&&W!==void 0?W:"0px",10);c.preventDefault(),c.stopPropagation(),r.draggedAxis==="y"?le=c.pageY:le=c.pageX;var x=le-((G=(M=H.rect)===null||M===void 0?void 0:M[r.axis[r.draggedAxis].offsetAttr])!==null&&G!==void 0?G:0)-r.axis[r.draggedAxis].dragOffset;x=r.draggedAxis==="x"&&r.isRtl?((re=(Y=H.rect)===null||Y===void 0?void 0:Y[r.axis[r.draggedAxis].sizeAttr])!==null&&re!==void 0?re:0)-J.size-x:x;var pe=x/(X-J.size),he=pe*(it-Ae);r.draggedAxis==="x"&&r.isRtl&&(he=!((Ee=e.getRtlHelpers())===null||Ee===void 0)&&Ee.isScrollingToNegative?-he:he),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=he}},this.onEndDrag=function(c){r.isDragging=!1;var u=io(r.el),d=Fe(r.el);c.preventDefault(),c.stopPropagation(),Ue(r.el,r.classNames.dragging),r.onStopScrolling(),u.removeEventListener("mousemove",r.drag,!0),u.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=d.setTimeout(function(){u.removeEventListener("click",r.preventClick,!0),u.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(c){c.preventDefault(),c.stopPropagation()},this.el=i,this.options=Ct(Ct({},e.defaultOptions),l),this.classNames=Ct(Ct({},e.defaultOptions.classNames),l.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Bc(this._onMouseMove,64),this.onWindowResize=ai(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=ai(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=ai(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var i=document.createElement("div");i.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var l=i.firstElementChild,r=l?.firstElementChild;if(!r)return null;document.body.appendChild(l),l.scrollLeft=0;var c=e.getOffset(l),u=e.getOffset(r);l.scrollLeft=-999;var d=e.getOffset(r);return document.body.removeChild(l),e.rtlHelpers={isScrollOriginAtZero:c.left!==u.left,isScrollingToNegative:u.left!==d.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:ar()}catch{return ar()}},e.getOffset=function(i){var l=i.getBoundingClientRect(),r=io(i),c=Fe(i);return{top:l.top+(c.pageYOffset||r.documentElement.scrollTop),left:l.left+(c.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){ao&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var i,l;this.wrapperEl=this.el.querySelector(se(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(se(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(se(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(se(this.classNames.offset)),this.maskEl=this.el.querySelector(se(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,se(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(se(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(se(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(se(this.classNames.track)).concat(se(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(se(this.classNames.track)).concat(se(this.classNames.vertical))),this.axis.x.scrollbar.el=((i=this.axis.x.track.el)===null||i===void 0?void 0:i.querySelector(se(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((l=this.axis.y.track.el)===null||l===void 0?void 0:l.querySelector(se(this.classNames.scrollbar)))||null,this.options.autoHide||(je(this.axis.x.scrollbar.el,this.classNames.visible),je(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var i=this,l,r=Fe(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(l=this.contentWrapperEl)===null||l===void 0||l.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var c=!1,u=r.ResizeObserver||ResizeObserver;this.resizeObserver=new u(function(){c&&r.requestAnimationFrame(function(){i.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){c=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){i.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var i=Fe(this.el);this.elStyles=i.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var l=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,c=this.heightAutoObserverEl.offsetWidth<=1||l>0,u=this.contentWrapperEl.offsetWidth,d=this.elStyles.overflowX,v=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var k=this.contentEl.scrollHeight,A=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=c?"".concat(l||A,"px"):"auto",this.placeholderEl.style.height="".concat(k,"px");var W=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=l!==0&&A>l,this.axis.y.isOverflowing=k>W,this.axis.x.isOverflowing=d==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=v==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var M=this.axis.x.isOverflowing?this.scrollbarWidth:0,G=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&A>u-G,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&k>W-M,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(i){var l,r;if(i===void 0&&(i="y"),!this.axis[i].isOverflowing||!this.contentEl)return 0;var c=this.contentEl[this.axis[i].scrollSizeAttr],u=(r=(l=this.axis[i].track.el)===null||l===void 0?void 0:l[this.axis[i].offsetSizeAttr])!==null&&r!==void 0?r:0,d=u/c,v;return v=Math.max(~~(d*u),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(v=Math.min(v,this.options.scrollbarMaxSize)),v},e.prototype.positionScrollbar=function(i){var l,r,c;i===void 0&&(i="y");var u=this.axis[i].scrollbar;if(!(!this.axis[i].isOverflowing||!this.contentWrapperEl||!u.el||!this.elStyles)){var d=this.contentWrapperEl[this.axis[i].scrollSizeAttr],v=((l=this.axis[i].track.el)===null||l===void 0?void 0:l[this.axis[i].offsetSizeAttr])||0,k=parseInt(this.elStyles[this.axis[i].sizeAttr],10),A=this.contentWrapperEl[this.axis[i].scrollOffsetAttr];A=i==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-A:A,i==="x"&&this.isRtl&&(A=!((c=e.getRtlHelpers())===null||c===void 0)&&c.isScrollingToNegative?A:-A);var W=A/(d-k),M=~~((v-u.size)*W);M=i==="x"&&this.isRtl?-M+(v-u.size):M,u.el.style.transform=i==="x"?"translate3d(".concat(M,"px, 0, 0)"):"translate3d(0, ".concat(M,"px, 0)")}},e.prototype.toggleTrackVisibility=function(i){i===void 0&&(i="y");var l=this.axis[i].track.el,r=this.axis[i].scrollbar.el;!l||!r||!this.contentWrapperEl||(this.axis[i].isOverflowing||this.axis[i].forceVisible?(l.style.visibility="visible",this.contentWrapperEl.style[this.axis[i].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(i))):(l.style.visibility="hidden",this.contentWrapperEl.style[this.axis[i].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(i))),this.axis[i].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(i){i===void 0&&(i="y"),this.axis[i].isOverflowing&&!this.axis[i].scrollbar.isVisible&&(je(this.axis[i].scrollbar.el,this.classNames.visible),this.axis[i].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(i){i===void 0&&(i="y"),!this.isDragging&&this.axis[i].isOverflowing&&this.axis[i].scrollbar.isVisible&&(Ue(this.axis[i].scrollbar.el,this.classNames.visible),this.axis[i].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(i){i===void 0&&(i="y");var l=this.axis[i];!l.track.el||!l.scrollbar.el||(l.track.rect=l.track.el.getBoundingClientRect(),l.scrollbar.rect=l.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(l.track.rect)?(this.showScrollbar(i),je(l.track.el,this.classNames.hover),this.isWithinBounds(l.scrollbar.rect)?je(l.scrollbar.el,this.classNames.hover):Ue(l.scrollbar.el,this.classNames.hover)):(Ue(l.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)))},e.prototype.onMouseLeaveForAxis=function(i){i===void 0&&(i="y"),Ue(this.axis[i].track.el,this.classNames.hover),Ue(this.axis[i].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)},e.prototype.onDragStart=function(i,l){var r;l===void 0&&(l="y"),this.isDragging=!0;var c=io(this.el),u=Fe(this.el),d=this.axis[l].scrollbar,v=l==="y"?i.pageY:i.pageX;this.axis[l].dragOffset=v-(((r=d.rect)===null||r===void 0?void 0:r[this.axis[l].offsetAttr])||0),this.draggedAxis=l,je(this.el,this.classNames.dragging),c.addEventListener("mousemove",this.drag,!0),c.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(c.addEventListener("click",this.preventClick,!0),c.addEventListener("dblclick",this.preventClick,!0)):(u.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(i,l){var r=this,c,u,d,v;l===void 0&&(l="y");var k=this.axis[l];if(!(!this.options.clickOnTrack||!k.scrollbar.el||!this.contentWrapperEl)){i.preventDefault();var A=Fe(this.el);this.axis[l].scrollbar.rect=k.scrollbar.el.getBoundingClientRect();var W=this.axis[l].scrollbar,M=(u=(c=W.rect)===null||c===void 0?void 0:c[this.axis[l].offsetAttr])!==null&&u!==void 0?u:0,G=parseInt((v=(d=this.elStyles)===null||d===void 0?void 0:d[this.axis[l].sizeAttr])!==null&&v!==void 0?v:"0px",10),Y=this.contentWrapperEl[this.axis[l].scrollOffsetAttr],re=l==="y"?this.mouseY-M:this.mouseX-M,Ee=re<0?-1:1,le=Ee===-1?Y-G:Y+G,H=40,X=function(){r.contentWrapperEl&&(Ee===-1?Y>le&&(Y-=H,r.contentWrapperEl[r.axis[l].scrollOffsetAttr]=Y,A.requestAnimationFrame(X)):Y<le&&(Y+=H,r.contentWrapperEl[r.axis[l].scrollOffsetAttr]=Y,A.requestAnimationFrame(X)))};X()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var i=Fe(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),i.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(i){return this.mouseX>=i.left&&this.mouseX<=i.left+i.width&&this.mouseY>=i.top&&this.mouseY<=i.top+i.height},e.prototype.findChild=function(i,l){var r=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector;return Array.prototype.filter.call(i.children,function(c){return r.call(c,l)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=Mc,e.helpers=Vc,e})(),ro=function(e,i){return ro=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,r){l.__proto__=r}||function(l,r){for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(l[c]=r[c])},ro(e,i)};function Lc(e,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");ro(e,i);function l(){this.constructor=e}e.prototype=i===null?Object.create(i):(l.prototype=i.prototype,new l)}var co=ci.helpers,oo=co.getOptions,_e=co.addClasses,Ic=co.canUseDOM,Pc=(function(e){Lc(i,e);function i(){for(var l=[],r=0;r<arguments.length;r++)l[r]=arguments[r];var c=e.apply(this,l)||this;return i.instances.set(l[0],c),c}return i.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(l){l.getAttribute("data-simplebar")!=="init"&&!i.instances.has(l)&&new i(l,oo(l.attributes))})},i.removeObserver=function(){var l;(l=i.globalObserver)===null||l===void 0||l.disconnect()},i.prototype.initDOM=function(){var l=this,r,c,u;if(!Array.prototype.filter.call(this.el.children,function(k){return k.classList.contains(l.classNames.wrapper)}).length){for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),_e(this.wrapperEl,this.classNames.wrapper),_e(this.contentWrapperEl,this.classNames.contentWrapper),_e(this.offsetEl,this.classNames.offset),_e(this.maskEl,this.classNames.mask),_e(this.contentEl,this.classNames.contentEl),_e(this.placeholderEl,this.classNames.placeholder),_e(this.heightAutoObserverWrapperEl,this.classNames.heightAutoObserverWrapperEl),_e(this.heightAutoObserverEl,this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl),(r=this.contentWrapperEl)===null||r===void 0||r.setAttribute("tabindex",this.options.tabIndex.toString()),(c=this.contentWrapperEl)===null||c===void 0||c.setAttribute("role","region"),(u=this.contentWrapperEl)===null||u===void 0||u.setAttribute("aria-label",this.options.ariaLabel)}if(!this.axis.x.track.el||!this.axis.y.track.el){var d=document.createElement("div"),v=document.createElement("div");_e(d,this.classNames.track),_e(v,this.classNames.scrollbar),d.appendChild(v),this.axis.x.track.el=d.cloneNode(!0),_e(this.axis.x.track.el,this.classNames.horizontal),this.axis.y.track.el=d.cloneNode(!0),_e(this.axis.y.track.el,this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}ci.prototype.initDOM.call(this),this.el.setAttribute("data-simplebar","init")},i.prototype.unMount=function(){ci.prototype.unMount.call(this),i.instances.delete(this.el)},i.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),typeof MutationObserver<"u"&&(this.globalObserver=new MutationObserver(i.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),document.readyState==="complete"||document.readyState!=="loading"&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},i.handleMutations=function(l){l.forEach(function(r){r.addedNodes.forEach(function(c){c.nodeType===1&&(c.hasAttribute("data-simplebar")?!i.instances.has(c)&&document.documentElement.contains(c)&&new i(c,oo(c.attributes)):c.querySelectorAll("[data-simplebar]").forEach(function(u){u.getAttribute("data-simplebar")!=="init"&&!i.instances.has(u)&&document.documentElement.contains(u)&&new i(u,oo(u.attributes))}))}),r.removedNodes.forEach(function(c){var u;c.nodeType===1&&(c.getAttribute("data-simplebar")==="init"?!document.documentElement.contains(c)&&((u=i.instances.get(c))===null||u===void 0||u.unMount()):Array.prototype.forEach.call(c.querySelectorAll('[data-simplebar="init"]'),function(d){var v;!document.documentElement.contains(d)&&((v=i.instances.get(d))===null||v===void 0||v.unMount())}))})})},i.instances=new WeakMap,i})(ci);Ic&&Pc.initHtmlApi();const Rc=n.defineComponent({name:"ClUI",methods:{VITE_APP_VERSION:()=>"7.15.1"}}),$=(e,i)=>{const l=e.__vccOpts||e;for(const[r,c]of i)l[r]=c;return l};function zc(e,i,l,r,c,u){return n.toDisplayString(e.VITE_APP_VERSION())}const Fc=$(Rc,[["render",zc]]),jc=n.defineComponent({name:"ClAlert",props:{type:{type:String,default:"info"}}});function Uc(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("p",{class:n.normalizeClass(["alert",`cl-alert-${e.type}`]),role:"alert"},[n.renderSlot(e.$slots,"default")],2)}const $t=$(jc,[["render",Uc]]);$t.install=e=>{e.component($t.name??"ClNoName",$t)};function Wc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var di={exports:{}};var xc=di.exports,cr;function qc(){return cr||(cr=1,(function(e,i){(function(l,r){e.exports=r()})(xc,function(){const l=new Map,r={set(s,t,o){l.has(s)||l.set(s,new Map);const a=l.get(s);a.has(t)||a.size===0?a.set(t,o):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(a.keys())[0]}.`)},get:(s,t)=>l.has(s)&&l.get(s).get(t)||null,remove(s,t){if(!l.has(s))return;const o=l.get(s);o.delete(t),o.size===0&&l.delete(s)}},c="transitionend",u=s=>(s&&window.CSS&&window.CSS.escape&&(s=s.replace(/#([^\s"#']+)/g,(t,o)=>`#${CSS.escape(o)}`)),s),d=s=>s==null?`${s}`:Object.prototype.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase(),v=s=>{s.dispatchEvent(new Event(c))},k=s=>!(!s||typeof s!="object")&&(s.jquery!==void 0&&(s=s[0]),s.nodeType!==void 0),A=s=>k(s)?s.jquery?s[0]:s:typeof s=="string"&&s.length>0?document.querySelector(u(s)):null,W=s=>{if(!k(s)||s.getClientRects().length===0)return!1;const t=getComputedStyle(s).getPropertyValue("visibility")==="visible",o=s.closest("details:not([open])");if(!o)return t;if(o!==s){const a=s.closest("summary");if(a&&a.parentNode!==o||a===null)return!1}return t},M=s=>!s||s.nodeType!==Node.ELEMENT_NODE||!!s.classList.contains("disabled")||(s.disabled!==void 0?s.disabled:s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false"),G=s=>{if(!document.documentElement.attachShadow)return null;if(typeof s.getRootNode=="function"){const t=s.getRootNode();return t instanceof ShadowRoot?t:null}return s instanceof ShadowRoot?s:s.parentNode?G(s.parentNode):null},Y=()=>{},re=s=>{s.offsetHeight},Ee=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,le=[],H=()=>document.documentElement.dir==="rtl",X=s=>{var t;t=()=>{const o=Ee();if(o){const a=s.NAME,f=o.fn[a];o.fn[a]=s.jQueryInterface,o.fn[a].Constructor=s,o.fn[a].noConflict=()=>(o.fn[a]=f,s.jQueryInterface)}},document.readyState==="loading"?(le.length||document.addEventListener("DOMContentLoaded",()=>{for(const o of le)o()}),le.push(t)):t()},J=(s,t=[],o=s)=>typeof s=="function"?s.call(...t):o,it=(s,t,o=!0)=>{if(!o)return void J(s);const a=(h=>{if(!h)return 0;let{transitionDuration:m,transitionDelay:b}=window.getComputedStyle(h);const _=Number.parseFloat(m),E=Number.parseFloat(b);return _||E?(m=m.split(",")[0],b=b.split(",")[0],1e3*(Number.parseFloat(m)+Number.parseFloat(b))):0})(t)+5;let f=!1;const p=({target:h})=>{h===t&&(f=!0,t.removeEventListener(c,p),J(s))};t.addEventListener(c,p),setTimeout(()=>{f||v(t)},a)},Ae=(s,t,o,a)=>{const f=s.length;let p=s.indexOf(t);return p===-1?!o&&a?s[f-1]:s[0]:(p+=o?1:-1,a&&(p=(p+f)%f),s[Math.max(0,Math.min(p,f-1))])},x=/[^.]*(?=\..*)\.|.*/,pe=/\..*/,he=/::\d+$/,ot={};let vo=1;const bo={mouseenter:"mouseover",mouseleave:"mouseout"},Rr=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 yo(s,t){return t&&`${t}::${vo++}`||s.uidEvent||vo++}function _o(s){const t=yo(s);return s.uidEvent=t,ot[t]=ot[t]||{},ot[t]}function Eo(s,t,o=null){return Object.values(s).find(a=>a.callable===t&&a.delegationSelector===o)}function Co(s,t,o){const a=typeof t=="string",f=a?o:t||o;let p=$o(s);return Rr.has(p)||(p=s),[a,f,p]}function ko(s,t,o,a,f){if(typeof t!="string"||!s)return;let[p,h,m]=Co(t,o,a);t in bo&&(h=(N=>function(w){if(!w.relatedTarget||w.relatedTarget!==w.delegateTarget&&!w.delegateTarget.contains(w.relatedTarget))return N.call(this,w)})(h));const b=_o(s),_=b[m]||(b[m]={}),E=Eo(_,h,p?o:null);if(E)return void(E.oneOff=E.oneOff&&f);const y=yo(h,t.replace(x,"")),O=p?(function(S,N,w){return function T(z){const q=S.querySelectorAll(N);for(let{target:B}=z;B&&B!==this;B=B.parentNode)for(const L of q)if(L===B)return yi(z,{delegateTarget:B}),T.oneOff&&g.off(S,z.type,N,w),w.apply(B,[z])}})(s,o,h):(function(S,N){return function w(T){return yi(T,{delegateTarget:S}),w.oneOff&&g.off(S,T.type,N),N.apply(S,[T])}})(s,h);O.delegationSelector=p?o:null,O.callable=h,O.oneOff=f,O.uidEvent=y,_[y]=O,s.addEventListener(m,O,p)}function bi(s,t,o,a,f){const p=Eo(t[o],a,f);p&&(s.removeEventListener(o,p,!!f),delete t[o][p.uidEvent])}function zr(s,t,o,a){const f=t[o]||{};for(const[p,h]of Object.entries(f))p.includes(a)&&bi(s,t,o,h.callable,h.delegationSelector)}function $o(s){return s=s.replace(pe,""),bo[s]||s}const g={on(s,t,o,a){ko(s,t,o,a,!1)},one(s,t,o,a){ko(s,t,o,a,!0)},off(s,t,o,a){if(typeof t!="string"||!s)return;const[f,p,h]=Co(t,o,a),m=h!==t,b=_o(s),_=b[h]||{},E=t.startsWith(".");if(p===void 0){if(E)for(const y of Object.keys(b))zr(s,b,y,t.slice(1));for(const[y,O]of Object.entries(_)){const S=y.replace(he,"");m&&!t.includes(S)||bi(s,b,h,O.callable,O.delegationSelector)}}else{if(!Object.keys(_).length)return;bi(s,b,h,p,f?o:null)}},trigger(s,t,o){if(typeof t!="string"||!s)return null;const a=Ee();let f=null,p=!0,h=!0,m=!1;t!==$o(t)&&a&&(f=a.Event(t,o),a(s).trigger(f),p=!f.isPropagationStopped(),h=!f.isImmediatePropagationStopped(),m=f.isDefaultPrevented());const b=yi(new Event(t,{bubbles:p,cancelable:!0}),o);return m&&b.preventDefault(),h&&s.dispatchEvent(b),b.defaultPrevented&&f&&f.preventDefault(),b}};function yi(s,t={}){for(const[o,a]of Object.entries(t))try{s[o]=a}catch{Object.defineProperty(s,o,{configurable:!0,get:()=>a})}return s}function So(s){if(s==="true")return!0;if(s==="false")return!1;if(s===Number(s).toString())return Number(s);if(s===""||s==="null")return null;if(typeof s!="string")return s;try{return JSON.parse(decodeURIComponent(s))}catch{return s}}function _i(s){return s.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const De={setDataAttribute(s,t,o){s.setAttribute(`data-bs-${_i(t)}`,o)},removeDataAttribute(s,t){s.removeAttribute(`data-bs-${_i(t)}`)},getDataAttributes(s){if(!s)return{};const t={},o=Object.keys(s.dataset).filter(a=>a.startsWith("bs")&&!a.startsWith("bsConfig"));for(const a of o){let f=a.replace(/^bs/,"");f=f.charAt(0).toLowerCase()+f.slice(1),t[f]=So(s.dataset[a])}return t},getDataAttribute:(s,t)=>So(s.getAttribute(`data-bs-${_i(t)}`))};class kn{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,o){const a=k(o)?De.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof a=="object"?a:{},...k(o)?De.getDataAttributes(o):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,o=this.constructor.DefaultType){for(const[a,f]of Object.entries(o)){const p=t[a],h=k(p)?"element":d(p);if(!new RegExp(f).test(h))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${a}" provided type "${h}" but expected type "${f}".`)}}}class Ce extends kn{constructor(t,o){super(),(t=A(t))&&(this._element=t,this._config=this._getConfig(o),r.set(this._element,this.constructor.DATA_KEY,this))}dispose(){r.remove(this._element,this.constructor.DATA_KEY),g.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,o,a=!0){it(t,o,a)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return r.get(A(t),this.DATA_KEY)}static getOrCreateInstance(t,o={}){return this.getInstance(t)||new this(t,typeof o=="object"?o:null)}static get VERSION(){return"5.3.8"}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 Ei=s=>{let t=s.getAttribute("data-bs-target");if(!t||t==="#"){let o=s.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),t=o&&o!=="#"?o.trim():null}return t?t.split(",").map(o=>u(o)).join(","):null},C={find:(s,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,s)),findOne:(s,t=document.documentElement)=>Element.prototype.querySelector.call(t,s),children:(s,t)=>[].concat(...s.children).filter(o=>o.matches(t)),parents(s,t){const o=[];let a=s.parentNode.closest(t);for(;a;)o.push(a),a=a.parentNode.closest(t);return o},prev(s,t){let o=s.previousElementSibling;for(;o;){if(o.matches(t))return[o];o=o.previousElementSibling}return[]},next(s,t){let o=s.nextElementSibling;for(;o;){if(o.matches(t))return[o];o=o.nextElementSibling}return[]},focusableChildren(s){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(t,s).filter(o=>!M(o)&&W(o))},getSelectorFromElement(s){const t=Ei(s);return t&&C.findOne(t)?t:null},getElementFromSelector(s){const t=Ei(s);return t?C.findOne(t):null},getMultipleElementsFromSelector(s){const t=Ei(s);return t?C.find(t):[]}},Fn=(s,t="hide")=>{const o=`click.dismiss${s.EVENT_KEY}`,a=s.NAME;g.on(document,o,`[data-bs-dismiss="${a}"]`,function(f){if(["A","AREA"].includes(this.tagName)&&f.preventDefault(),M(this))return;const p=C.getElementFromSelector(this)||this.closest(`.${a}`);s.getOrCreateInstance(p)[t]()})},wo=".bs.alert",Fr=`close${wo}`,jr=`closed${wo}`;class $n extends Ce{static get NAME(){return"alert"}close(){if(g.trigger(this._element,Fr).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(),g.trigger(this._element,jr),this.dispose()}static jQueryInterface(t){return this.each(function(){const o=$n.getOrCreateInstance(this);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t](this)}})}}Fn($n,"close"),X($n);const No='[data-bs-toggle="button"]';class Sn extends Ce{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){const o=Sn.getOrCreateInstance(this);t==="toggle"&&o[t]()})}}g.on(document,"click.bs.button.data-api",No,s=>{s.preventDefault();const t=s.target.closest(No);Sn.getOrCreateInstance(t).toggle()}),X(Sn);const st=".bs.swipe",Ur=`touchstart${st}`,Wr=`touchmove${st}`,xr=`touchend${st}`,qr=`pointerdown${st}`,Hr=`pointerup${st}`,Gr={endCallback:null,leftCallback:null,rightCallback:null},Kr={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class jn extends kn{constructor(t,o){super(),this._element=t,t&&jn.isSupported()&&(this._config=this._getConfig(o),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Gr}static get DefaultType(){return Kr}static get NAME(){return"swipe"}dispose(){g.off(this._element,st)}_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(),J(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 o=t/this._deltaX;this._deltaX=0,o&&J(o>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(g.on(this._element,qr,t=>this._start(t)),g.on(this._element,Hr,t=>this._end(t)),this._element.classList.add("pointer-event")):(g.on(this._element,Ur,t=>this._start(t)),g.on(this._element,Wr,t=>this._move(t)),g.on(this._element,xr,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType==="pen"||t.pointerType==="touch")}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Ie=".bs.carousel",To=".data-api",Yr="ArrowLeft",Xr="ArrowRight",wn="next",rt="prev",lt="left",Un="right",Qr=`slide${Ie}`,Ci=`slid${Ie}`,Jr=`keydown${Ie}`,Zr=`mouseenter${Ie}`,el=`mouseleave${Ie}`,tl=`dragstart${Ie}`,nl=`load${Ie}${To}`,il=`click${Ie}${To}`,Oo="carousel",Wn="active",Ao=".active",Do=".carousel-item",ol=Ao+Do,sl={[Yr]:Un,[Xr]:lt},rl={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ll={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class at extends Ce{constructor(t,o){super(t,o),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=C.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===Oo&&this.cycle()}static get Default(){return rl}static get DefaultType(){return ll}static get NAME(){return"carousel"}next(){this._slide(wn)}nextWhenVisible(){!document.hidden&&W(this._element)&&this.next()}prev(){this._slide(rt)}pause(){this._isSliding&&v(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?g.one(this._element,Ci,()=>this.cycle()):this.cycle())}to(t){const o=this._getItems();if(t>o.length-1||t<0)return;if(this._isSliding)return void g.one(this._element,Ci,()=>this.to(t));const a=this._getItemIndex(this._getActive());if(a===t)return;const f=t>a?wn:rt;this._slide(f,o[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&g.on(this._element,Jr,t=>this._keydown(t)),this._config.pause==="hover"&&(g.on(this._element,Zr,()=>this.pause()),g.on(this._element,el,()=>this._maybeEnableCycle())),this._config.touch&&jn.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of C.find(".carousel-item img",this._element))g.on(o,tl,a=>a.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(lt)),rightCallback:()=>this._slide(this._directionToOrder(Un)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new jn(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const o=sl[t.key];o&&(t.preventDefault(),this._slide(this._directionToOrder(o)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const o=C.findOne(Ao,this._indicatorsElement);o.classList.remove(Wn),o.removeAttribute("aria-current");const a=C.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);a&&(a.classList.add(Wn),a.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const o=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=o||this._config.defaultInterval}_slide(t,o=null){if(this._isSliding)return;const a=this._getActive(),f=t===wn,p=o||Ae(this._getItems(),a,f,this._config.wrap);if(p===a)return;const h=this._getItemIndex(p),m=y=>g.trigger(this._element,y,{relatedTarget:p,direction:this._orderToDirection(t),from:this._getItemIndex(a),to:h});if(m(Qr).defaultPrevented||!a||!p)return;const b=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(h),this._activeElement=p;const _=f?"carousel-item-start":"carousel-item-end",E=f?"carousel-item-next":"carousel-item-prev";p.classList.add(E),re(p),a.classList.add(_),p.classList.add(_),this._queueCallback(()=>{p.classList.remove(_,E),p.classList.add(Wn),a.classList.remove(Wn,E,_),this._isSliding=!1,m(Ci)},a,this._isAnimated()),b&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return C.findOne(ol,this._element)}_getItems(){return C.find(Do,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return H()?t===lt?rt:wn:t===lt?wn:rt}_orderToDirection(t){return H()?t===rt?lt:Un:t===rt?Un:lt}static jQueryInterface(t){return this.each(function(){const o=at.getOrCreateInstance(this,t);if(typeof t!="number"){if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}}else o.to(t)})}}g.on(document,il,"[data-bs-slide], [data-bs-slide-to]",function(s){const t=C.getElementFromSelector(this);if(!t||!t.classList.contains(Oo))return;s.preventDefault();const o=at.getOrCreateInstance(t),a=this.getAttribute("data-bs-slide-to");return a?(o.to(a),void o._maybeEnableCycle()):De.getDataAttribute(this,"slide")==="next"?(o.next(),void o._maybeEnableCycle()):(o.prev(),void o._maybeEnableCycle())}),g.on(window,nl,()=>{const s=C.find('[data-bs-ride="carousel"]');for(const t of s)at.getOrCreateInstance(t)}),X(at);const Nn=".bs.collapse",al=`show${Nn}`,cl=`shown${Nn}`,dl=`hide${Nn}`,ul=`hidden${Nn}`,fl=`click${Nn}.data-api`,ki="show",ct="collapse",xn="collapsing",pl=`:scope .${ct} .${ct}`,$i='[data-bs-toggle="collapse"]',hl={parent:null,toggle:!0},ml={parent:"(null|element)",toggle:"boolean"};class dt extends Ce{constructor(t,o){super(t,o),this._isTransitioning=!1,this._triggerArray=[];const a=C.find($i);for(const f of a){const p=C.getSelectorFromElement(f),h=C.find(p).filter(m=>m===this._element);p!==null&&h.length&&this._triggerArray.push(f)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return hl}static get DefaultType(){return ml}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(f=>f!==this._element).map(f=>dt.getOrCreateInstance(f,{toggle:!1}))),t.length&&t[0]._isTransitioning||g.trigger(this._element,al).defaultPrevented)return;for(const f of t)f.hide();const o=this._getDimension();this._element.classList.remove(ct),this._element.classList.add(xn),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const a=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(xn),this._element.classList.add(ct,ki),this._element.style[o]="",g.trigger(this._element,cl)},this._element,!0),this._element.style[o]=`${this._element[a]}px`}hide(){if(this._isTransitioning||!this._isShown()||g.trigger(this._element,dl).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,re(this._element),this._element.classList.add(xn),this._element.classList.remove(ct,ki);for(const o of this._triggerArray){const a=C.getElementFromSelector(o);a&&!this._isShown(a)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(xn),this._element.classList.add(ct),g.trigger(this._element,ul)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(ki)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=A(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren($i);for(const o of t){const a=C.getElementFromSelector(o);a&&this._addAriaAndCollapsedClass([o],this._isShown(a))}}_getFirstLevelChildren(t){const o=C.find(pl,this._config.parent);return C.find(t,this._config.parent).filter(a=>!o.includes(a))}_addAriaAndCollapsedClass(t,o){if(t.length)for(const a of t)a.classList.toggle("collapsed",!o),a.setAttribute("aria-expanded",o)}static jQueryInterface(t){const o={};return typeof t=="string"&&/show|hide/.test(t)&&(o.toggle=!1),this.each(function(){const a=dt.getOrCreateInstance(this,o);if(typeof t=="string"){if(a[t]===void 0)throw new TypeError(`No method named "${t}"`);a[t]()}})}}g.on(document,fl,$i,function(s){(s.target.tagName==="A"||s.delegateTarget&&s.delegateTarget.tagName==="A")&&s.preventDefault();for(const t of C.getMultipleElementsFromSelector(this))dt.getOrCreateInstance(t,{toggle:!1}).toggle()}),X(dt);var te="top",ae="bottom",ce="right",ne="left",qn="auto",ut=[te,ae,ce,ne],xe="start",ft="end",Bo="clippingParents",Si="viewport",pt="popper",Vo="reference",wi=ut.reduce(function(s,t){return s.concat([t+"-"+xe,t+"-"+ft])},[]),Ni=[].concat(ut,[qn]).reduce(function(s,t){return s.concat([t,t+"-"+xe,t+"-"+ft])},[]),Mo="beforeRead",Lo="read",Io="afterRead",Po="beforeMain",Ro="main",zo="afterMain",Fo="beforeWrite",jo="write",Uo="afterWrite",Wo=[Mo,Lo,Io,Po,Ro,zo,Fo,jo,Uo];function Se(s){return s?(s.nodeName||"").toLowerCase():null}function de(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var t=s.ownerDocument;return t&&t.defaultView||window}return s}function qe(s){return s instanceof de(s).Element||s instanceof Element}function me(s){return s instanceof de(s).HTMLElement||s instanceof HTMLElement}function Ti(s){return typeof ShadowRoot<"u"&&(s instanceof de(s).ShadowRoot||s instanceof ShadowRoot)}const Oi={name:"applyStyles",enabled:!0,phase:"write",fn:function(s){var t=s.state;Object.keys(t.elements).forEach(function(o){var a=t.styles[o]||{},f=t.attributes[o]||{},p=t.elements[o];me(p)&&Se(p)&&(Object.assign(p.style,a),Object.keys(f).forEach(function(h){var m=f[h];m===!1?p.removeAttribute(h):p.setAttribute(h,m===!0?"":m)}))})},effect:function(s){var t=s.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(a){var f=t.elements[a],p=t.attributes[a]||{},h=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:o[a]).reduce(function(m,b){return m[b]="",m},{});me(f)&&Se(f)&&(Object.assign(f.style,h),Object.keys(p).forEach(function(m){f.removeAttribute(m)}))})}},requires:["computeStyles"]};function we(s){return s.split("-")[0]}var He=Math.max,Hn=Math.min,ht=Math.round;function Ai(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function xo(){return!/^((?!chrome|android).)*safari/i.test(Ai())}function mt(s,t,o){t===void 0&&(t=!1),o===void 0&&(o=!1);var a=s.getBoundingClientRect(),f=1,p=1;t&&me(s)&&(f=s.offsetWidth>0&&ht(a.width)/s.offsetWidth||1,p=s.offsetHeight>0&&ht(a.height)/s.offsetHeight||1);var h=(qe(s)?de(s):window).visualViewport,m=!xo()&&o,b=(a.left+(m&&h?h.offsetLeft:0))/f,_=(a.top+(m&&h?h.offsetTop:0))/p,E=a.width/f,y=a.height/p;return{width:E,height:y,top:_,right:b+E,bottom:_+y,left:b,x:b,y:_}}function Di(s){var t=mt(s),o=s.offsetWidth,a=s.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:s.offsetLeft,y:s.offsetTop,width:o,height:a}}function qo(s,t){var o=t.getRootNode&&t.getRootNode();if(s.contains(t))return!0;if(o&&Ti(o)){var a=t;do{if(a&&s.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Be(s){return de(s).getComputedStyle(s)}function gl(s){return["table","td","th"].indexOf(Se(s))>=0}function Pe(s){return((qe(s)?s.ownerDocument:s.document)||window.document).documentElement}function Gn(s){return Se(s)==="html"?s:s.assignedSlot||s.parentNode||(Ti(s)?s.host:null)||Pe(s)}function Ho(s){return me(s)&&Be(s).position!=="fixed"?s.offsetParent:null}function Tn(s){for(var t=de(s),o=Ho(s);o&&gl(o)&&Be(o).position==="static";)o=Ho(o);return o&&(Se(o)==="html"||Se(o)==="body"&&Be(o).position==="static")?t:o||(function(a){var f=/firefox/i.test(Ai());if(/Trident/i.test(Ai())&&me(a)&&Be(a).position==="fixed")return null;var p=Gn(a);for(Ti(p)&&(p=p.host);me(p)&&["html","body"].indexOf(Se(p))<0;){var h=Be(p);if(h.transform!=="none"||h.perspective!=="none"||h.contain==="paint"||["transform","perspective"].indexOf(h.willChange)!==-1||f&&h.willChange==="filter"||f&&h.filter&&h.filter!=="none")return p;p=p.parentNode}return null})(s)||t}function Bi(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function On(s,t,o){return He(s,Hn(t,o))}function Go(s){return Object.assign({},{top:0,right:0,bottom:0,left:0},s)}function Ko(s,t){return t.reduce(function(o,a){return o[a]=s,o},{})}const Yo={name:"arrow",enabled:!0,phase:"main",fn:function(s){var t,o=s.state,a=s.name,f=s.options,p=o.elements.arrow,h=o.modifiersData.popperOffsets,m=we(o.placement),b=Bi(m),_=[ne,ce].indexOf(m)>=0?"height":"width";if(p&&h){var E=(function(F,R){return Go(typeof(F=typeof F=="function"?F(Object.assign({},R.rects,{placement:R.placement})):F)!="number"?F:Ko(F,ut))})(f.padding,o),y=Di(p),O=b==="y"?te:ne,S=b==="y"?ae:ce,N=o.rects.reference[_]+o.rects.reference[b]-h[b]-o.rects.popper[_],w=h[b]-o.rects.reference[b],T=Tn(p),z=T?b==="y"?T.clientHeight||0:T.clientWidth||0:0,q=N/2-w/2,B=E[O],L=z-y[_]-E[S],D=z/2-y[_]/2+q,V=On(B,D,L),P=b;o.modifiersData[a]=((t={})[P]=V,t.centerOffset=V-D,t)}},effect:function(s){var t=s.state,o=s.options.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a!="string"||(a=t.elements.popper.querySelector(a)))&&qo(t.elements.popper,a)&&(t.elements.arrow=a)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gt(s){return s.split("-")[1]}var vl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xo(s){var t,o=s.popper,a=s.popperRect,f=s.placement,p=s.variation,h=s.offsets,m=s.position,b=s.gpuAcceleration,_=s.adaptive,E=s.roundOffsets,y=s.isFixed,O=h.x,S=O===void 0?0:O,N=h.y,w=N===void 0?0:N,T=typeof E=="function"?E({x:S,y:w}):{x:S,y:w};S=T.x,w=T.y;var z=h.hasOwnProperty("x"),q=h.hasOwnProperty("y"),B=ne,L=te,D=window;if(_){var V=Tn(o),P="clientHeight",F="clientWidth";V===de(o)&&Be(V=Pe(o)).position!=="static"&&m==="absolute"&&(P="scrollHeight",F="scrollWidth"),(f===te||(f===ne||f===ce)&&p===ft)&&(L=ae,w-=(y&&V===D&&D.visualViewport?D.visualViewport.height:V[P])-a.height,w*=b?1:-1),f!==ne&&(f!==te&&f!==ae||p!==ft)||(B=ce,S-=(y&&V===D&&D.visualViewport?D.visualViewport.width:V[F])-a.width,S*=b?1:-1)}var R,Q=Object.assign({position:m},_&&vl),ue=E===!0?(function($e,ie){var ve=$e.x,be=$e.y,K=ie.devicePixelRatio||1;return{x:ht(ve*K)/K||0,y:ht(be*K)/K||0}})({x:S,y:w},de(o)):{x:S,y:w};return S=ue.x,w=ue.y,b?Object.assign({},Q,((R={})[L]=q?"0":"",R[B]=z?"0":"",R.transform=(D.devicePixelRatio||1)<=1?"translate("+S+"px, "+w+"px)":"translate3d("+S+"px, "+w+"px, 0)",R)):Object.assign({},Q,((t={})[L]=q?w+"px":"",t[B]=z?S+"px":"",t.transform="",t))}const Vi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(s){var t=s.state,o=s.options,a=o.gpuAcceleration,f=a===void 0||a,p=o.adaptive,h=p===void 0||p,m=o.roundOffsets,b=m===void 0||m,_={placement:we(t.placement),variation:gt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:f,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Xo(Object.assign({},_,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:h,roundOffsets:b})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Xo(Object.assign({},_,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:b})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Kn={passive:!0};const Mi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(s){var t=s.state,o=s.instance,a=s.options,f=a.scroll,p=f===void 0||f,h=a.resize,m=h===void 0||h,b=de(t.elements.popper),_=[].concat(t.scrollParents.reference,t.scrollParents.popper);return p&&_.forEach(function(E){E.addEventListener("scroll",o.update,Kn)}),m&&b.addEventListener("resize",o.update,Kn),function(){p&&_.forEach(function(E){E.removeEventListener("scroll",o.update,Kn)}),m&&b.removeEventListener("resize",o.update,Kn)}},data:{}};var bl={left:"right",right:"left",bottom:"top",top:"bottom"};function Yn(s){return s.replace(/left|right|bottom|top/g,function(t){return bl[t]})}var yl={start:"end",end:"start"};function Qo(s){return s.replace(/start|end/g,function(t){return yl[t]})}function Li(s){var t=de(s);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ii(s){return mt(Pe(s)).left+Li(s).scrollLeft}function Pi(s){var t=Be(s),o=t.overflow,a=t.overflowX,f=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+f+a)}function Jo(s){return["html","body","#document"].indexOf(Se(s))>=0?s.ownerDocument.body:me(s)&&Pi(s)?s:Jo(Gn(s))}function An(s,t){var o;t===void 0&&(t=[]);var a=Jo(s),f=a===((o=s.ownerDocument)==null?void 0:o.body),p=de(a),h=f?[p].concat(p.visualViewport||[],Pi(a)?a:[]):a,m=t.concat(h);return f?m:m.concat(An(Gn(h)))}function Ri(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function Zo(s,t,o){return t===Si?Ri((function(a,f){var p=de(a),h=Pe(a),m=p.visualViewport,b=h.clientWidth,_=h.clientHeight,E=0,y=0;if(m){b=m.width,_=m.height;var O=xo();(O||!O&&f==="fixed")&&(E=m.offsetLeft,y=m.offsetTop)}return{width:b,height:_,x:E+Ii(a),y}})(s,o)):qe(t)?(function(a,f){var p=mt(a,!1,f==="fixed");return p.top=p.top+a.clientTop,p.left=p.left+a.clientLeft,p.bottom=p.top+a.clientHeight,p.right=p.left+a.clientWidth,p.width=a.clientWidth,p.height=a.clientHeight,p.x=p.left,p.y=p.top,p})(t,o):Ri((function(a){var f,p=Pe(a),h=Li(a),m=(f=a.ownerDocument)==null?void 0:f.body,b=He(p.scrollWidth,p.clientWidth,m?m.scrollWidth:0,m?m.clientWidth:0),_=He(p.scrollHeight,p.clientHeight,m?m.scrollHeight:0,m?m.clientHeight:0),E=-h.scrollLeft+Ii(a),y=-h.scrollTop;return Be(m||p).direction==="rtl"&&(E+=He(p.clientWidth,m?m.clientWidth:0)-b),{width:b,height:_,x:E,y}})(Pe(s)))}function es(s){var t,o=s.reference,a=s.element,f=s.placement,p=f?we(f):null,h=f?gt(f):null,m=o.x+o.width/2-a.width/2,b=o.y+o.height/2-a.height/2;switch(p){case te:t={x:m,y:o.y-a.height};break;case ae:t={x:m,y:o.y+o.height};break;case ce:t={x:o.x+o.width,y:b};break;case ne:t={x:o.x-a.width,y:b};break;default:t={x:o.x,y:o.y}}var _=p?Bi(p):null;if(_!=null){var E=_==="y"?"height":"width";switch(h){case xe:t[_]=t[_]-(o[E]/2-a[E]/2);break;case ft:t[_]=t[_]+(o[E]/2-a[E]/2)}}return t}function vt(s,t){t===void 0&&(t={});var o=t,a=o.placement,f=a===void 0?s.placement:a,p=o.strategy,h=p===void 0?s.strategy:p,m=o.boundary,b=m===void 0?Bo:m,_=o.rootBoundary,E=_===void 0?Si:_,y=o.elementContext,O=y===void 0?pt:y,S=o.altBoundary,N=S!==void 0&&S,w=o.padding,T=w===void 0?0:w,z=Go(typeof T!="number"?T:Ko(T,ut)),q=O===pt?Vo:pt,B=s.rects.popper,L=s.elements[N?q:O],D=(function(ie,ve,be,K){var Ne=ve==="clippingParents"?(function(j){var oe=An(Gn(j)),ye=["absolute","fixed"].indexOf(Be(j).position)>=0&&me(j)?Tn(j):j;return qe(ye)?oe.filter(function(ze){return qe(ze)&&qo(ze,ye)&&Se(ze)!=="body"}):[]})(ie):[].concat(ve),Te=[].concat(Ne,[be]),_t=Te[0],Z=Te.reduce(function(j,oe){var ye=Zo(ie,oe,K);return j.top=He(ye.top,j.top),j.right=Hn(ye.right,j.right),j.bottom=Hn(ye.bottom,j.bottom),j.left=He(ye.left,j.left),j},Zo(ie,_t,K));return Z.width=Z.right-Z.left,Z.height=Z.bottom-Z.top,Z.x=Z.left,Z.y=Z.top,Z})(qe(L)?L:L.contextElement||Pe(s.elements.popper),b,E,h),V=mt(s.elements.reference),P=es({reference:V,element:B,placement:f}),F=Ri(Object.assign({},B,P)),R=O===pt?F:V,Q={top:D.top-R.top+z.top,bottom:R.bottom-D.bottom+z.bottom,left:D.left-R.left+z.left,right:R.right-D.right+z.right},ue=s.modifiersData.offset;if(O===pt&&ue){var $e=ue[f];Object.keys(Q).forEach(function(ie){var ve=[ce,ae].indexOf(ie)>=0?1:-1,be=[te,ae].indexOf(ie)>=0?"y":"x";Q[ie]+=$e[be]*ve})}return Q}function _l(s,t){t===void 0&&(t={});var o=t,a=o.placement,f=o.boundary,p=o.rootBoundary,h=o.padding,m=o.flipVariations,b=o.allowedAutoPlacements,_=b===void 0?Ni:b,E=gt(a),y=E?m?wi:wi.filter(function(N){return gt(N)===E}):ut,O=y.filter(function(N){return _.indexOf(N)>=0});O.length===0&&(O=y);var S=O.reduce(function(N,w){return N[w]=vt(s,{placement:w,boundary:f,rootBoundary:p,padding:h})[we(w)],N},{});return Object.keys(S).sort(function(N,w){return S[N]-S[w]})}const ts={name:"flip",enabled:!0,phase:"main",fn:function(s){var t=s.state,o=s.options,a=s.name;if(!t.modifiersData[a]._skip){for(var f=o.mainAxis,p=f===void 0||f,h=o.altAxis,m=h===void 0||h,b=o.fallbackPlacements,_=o.padding,E=o.boundary,y=o.rootBoundary,O=o.altBoundary,S=o.flipVariations,N=S===void 0||S,w=o.allowedAutoPlacements,T=t.options.placement,z=we(T),q=b||(z!==T&&N?(function(j){if(we(j)===qn)return[];var oe=Yn(j);return[Qo(j),oe,Qo(oe)]})(T):[Yn(T)]),B=[T].concat(q).reduce(function(j,oe){return j.concat(we(oe)===qn?_l(t,{placement:oe,boundary:E,rootBoundary:y,padding:_,flipVariations:N,allowedAutoPlacements:w}):oe)},[]),L=t.rects.reference,D=t.rects.popper,V=new Map,P=!0,F=B[0],R=0;R<B.length;R++){var Q=B[R],ue=we(Q),$e=gt(Q)===xe,ie=[te,ae].indexOf(ue)>=0,ve=ie?"width":"height",be=vt(t,{placement:Q,boundary:E,rootBoundary:y,altBoundary:O,padding:_}),K=ie?$e?ce:ne:$e?ae:te;L[ve]>D[ve]&&(K=Yn(K));var Ne=Yn(K),Te=[];if(p&&Te.push(be[ue]<=0),m&&Te.push(be[K]<=0,be[Ne]<=0),Te.every(function(j){return j})){F=Q,P=!1;break}V.set(Q,Te)}if(P)for(var _t=function(j){var oe=B.find(function(ye){var ze=V.get(ye);if(ze)return ze.slice(0,j).every(function(oi){return oi})});if(oe)return F=oe,"break"},Z=N?3:1;Z>0&&_t(Z)!=="break";Z--);t.placement!==F&&(t.modifiersData[a]._skip=!0,t.placement=F,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ns(s,t,o){return o===void 0&&(o={x:0,y:0}),{top:s.top-t.height-o.y,right:s.right-t.width+o.x,bottom:s.bottom-t.height+o.y,left:s.left-t.width-o.x}}function is(s){return[te,ce,ae,ne].some(function(t){return s[t]>=0})}const os={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(s){var t=s.state,o=s.name,a=t.rects.reference,f=t.rects.popper,p=t.modifiersData.preventOverflow,h=vt(t,{elementContext:"reference"}),m=vt(t,{altBoundary:!0}),b=ns(h,a),_=ns(m,f,p),E=is(b),y=is(_);t.modifiersData[o]={referenceClippingOffsets:b,popperEscapeOffsets:_,isReferenceHidden:E,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":E,"data-popper-escaped":y})}},ss={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(s){var t=s.state,o=s.options,a=s.name,f=o.offset,p=f===void 0?[0,0]:f,h=Ni.reduce(function(E,y){return E[y]=(function(O,S,N){var w=we(O),T=[ne,te].indexOf(w)>=0?-1:1,z=typeof N=="function"?N(Object.assign({},S,{placement:O})):N,q=z[0],B=z[1];return q=q||0,B=(B||0)*T,[ne,ce].indexOf(w)>=0?{x:B,y:q}:{x:q,y:B}})(y,t.rects,p),E},{}),m=h[t.placement],b=m.x,_=m.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=b,t.modifiersData.popperOffsets.y+=_),t.modifiersData[a]=h}},zi={name:"popperOffsets",enabled:!0,phase:"read",fn:function(s){var t=s.state,o=s.name;t.modifiersData[o]=es({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},rs={name:"preventOverflow",enabled:!0,phase:"main",fn:function(s){var t=s.state,o=s.options,a=s.name,f=o.mainAxis,p=f===void 0||f,h=o.altAxis,m=h!==void 0&&h,b=o.boundary,_=o.rootBoundary,E=o.altBoundary,y=o.padding,O=o.tether,S=O===void 0||O,N=o.tetherOffset,w=N===void 0?0:N,T=vt(t,{boundary:b,rootBoundary:_,padding:y,altBoundary:E}),z=we(t.placement),q=gt(t.placement),B=!q,L=Bi(z),D=L==="x"?"y":"x",V=t.modifiersData.popperOffsets,P=t.rects.reference,F=t.rects.popper,R=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,Q=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),ue=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$e={x:0,y:0};if(V){if(p){var ie,ve=L==="y"?te:ne,be=L==="y"?ae:ce,K=L==="y"?"height":"width",Ne=V[L],Te=Ne+T[ve],_t=Ne-T[be],Z=S?-F[K]/2:0,j=q===xe?P[K]:F[K],oe=q===xe?-F[K]:-P[K],ye=t.elements.arrow,ze=S&&ye?Di(ye):{width:0,height:0},oi=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Hs=oi[ve],Gs=oi[be],si=On(0,P[K],ze[K]),Ja=B?P[K]/2-Z-si-Hs-Q.mainAxis:j-si-Hs-Q.mainAxis,Za=B?-P[K]/2+Z+si+Gs+Q.mainAxis:oe+si+Gs+Q.mainAxis,Zi=t.elements.arrow&&Tn(t.elements.arrow),ec=Zi?L==="y"?Zi.clientTop||0:Zi.clientLeft||0:0,Ks=(ie=ue?.[L])!=null?ie:0,tc=Ne+Za-Ks,Ys=On(S?Hn(Te,Ne+Ja-Ks-ec):Te,Ne,S?He(_t,tc):_t);V[L]=Ys,$e[L]=Ys-Ne}if(m){var Xs,nc=L==="x"?te:ne,ic=L==="x"?ae:ce,et=V[D],ri=D==="y"?"height":"width",Qs=et+T[nc],Js=et-T[ic],eo=[te,ne].indexOf(z)!==-1,Zs=(Xs=ue?.[D])!=null?Xs:0,er=eo?Qs:et-P[ri]-F[ri]-Zs+Q.altAxis,tr=eo?et+P[ri]+F[ri]-Zs-Q.altAxis:Js,nr=S&&eo?(function(oc,sc,to){var ir=On(oc,sc,to);return ir>to?to:ir})(er,et,tr):On(S?er:Qs,et,S?tr:Js);V[D]=nr,$e[D]=nr-et}t.modifiersData[a]=$e}},requiresIfExists:["offset"]};function El(s,t,o){o===void 0&&(o=!1);var a,f,p=me(t),h=me(t)&&(function(y){var O=y.getBoundingClientRect(),S=ht(O.width)/y.offsetWidth||1,N=ht(O.height)/y.offsetHeight||1;return S!==1||N!==1})(t),m=Pe(t),b=mt(s,h,o),_={scrollLeft:0,scrollTop:0},E={x:0,y:0};return(p||!p&&!o)&&((Se(t)!=="body"||Pi(m))&&(_=(a=t)!==de(a)&&me(a)?{scrollLeft:(f=a).scrollLeft,scrollTop:f.scrollTop}:Li(a)),me(t)?((E=mt(t,!0)).x+=t.clientLeft,E.y+=t.clientTop):m&&(E.x=Ii(m))),{x:b.left+_.scrollLeft-E.x,y:b.top+_.scrollTop-E.y,width:b.width,height:b.height}}function Cl(s){var t=new Map,o=new Set,a=[];function f(p){o.add(p.name),[].concat(p.requires||[],p.requiresIfExists||[]).forEach(function(h){if(!o.has(h)){var m=t.get(h);m&&f(m)}}),a.push(p)}return s.forEach(function(p){t.set(p.name,p)}),s.forEach(function(p){o.has(p.name)||f(p)}),a}var ls={placement:"bottom",modifiers:[],strategy:"absolute"};function as(){for(var s=arguments.length,t=new Array(s),o=0;o<s;o++)t[o]=arguments[o];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function Xn(s){s===void 0&&(s={});var t=s,o=t.defaultModifiers,a=o===void 0?[]:o,f=t.defaultOptions,p=f===void 0?ls:f;return function(h,m,b){b===void 0&&(b=p);var _,E,y={placement:"bottom",orderedModifiers:[],options:Object.assign({},ls,p),modifiersData:{},elements:{reference:h,popper:m},attributes:{},styles:{}},O=[],S=!1,N={state:y,setOptions:function(T){var z=typeof T=="function"?T(y.options):T;w(),y.options=Object.assign({},p,y.options,z),y.scrollParents={reference:qe(h)?An(h):h.contextElement?An(h.contextElement):[],popper:An(m)};var q,B,L=(function(D){var V=Cl(D);return Wo.reduce(function(P,F){return P.concat(V.filter(function(R){return R.phase===F}))},[])})((q=[].concat(a,y.options.modifiers),B=q.reduce(function(D,V){var P=D[V.name];return D[V.name]=P?Object.assign({},P,V,{options:Object.assign({},P.options,V.options),data:Object.assign({},P.data,V.data)}):V,D},{}),Object.keys(B).map(function(D){return B[D]})));return y.orderedModifiers=L.filter(function(D){return D.enabled}),y.orderedModifiers.forEach(function(D){var V=D.name,P=D.options,F=P===void 0?{}:P,R=D.effect;if(typeof R=="function"){var Q=R({state:y,name:V,instance:N,options:F});O.push(Q||function(){})}}),N.update()},forceUpdate:function(){if(!S){var T=y.elements,z=T.reference,q=T.popper;if(as(z,q)){y.rects={reference:El(z,Tn(q),y.options.strategy==="fixed"),popper:Di(q)},y.reset=!1,y.placement=y.options.placement,y.orderedModifiers.forEach(function(R){return y.modifiersData[R.name]=Object.assign({},R.data)});for(var B=0;B<y.orderedModifiers.length;B++)if(y.reset!==!0){var L=y.orderedModifiers[B],D=L.fn,V=L.options,P=V===void 0?{}:V,F=L.name;typeof D=="function"&&(y=D({state:y,options:P,name:F,instance:N})||y)}else y.reset=!1,B=-1}}},update:(_=function(){return new Promise(function(T){N.forceUpdate(),T(y)})},function(){return E||(E=new Promise(function(T){Promise.resolve().then(function(){E=void 0,T(_())})})),E}),destroy:function(){w(),S=!0}};if(!as(h,m))return N;function w(){O.forEach(function(T){return T()}),O=[]}return N.setOptions(b).then(function(T){!S&&b.onFirstUpdate&&b.onFirstUpdate(T)}),N}}var kl=Xn(),$l=Xn({defaultModifiers:[Mi,zi,Vi,Oi]}),Fi=Xn({defaultModifiers:[Mi,zi,Vi,Oi,ss,ts,rs,Yo,os]});const cs=Object.freeze(Object.defineProperty({__proto__:null,afterMain:zo,afterRead:Io,afterWrite:Uo,applyStyles:Oi,arrow:Yo,auto:qn,basePlacements:ut,beforeMain:Po,beforeRead:Mo,beforeWrite:Fo,bottom:ae,clippingParents:Bo,computeStyles:Vi,createPopper:Fi,createPopperBase:kl,createPopperLite:$l,detectOverflow:vt,end:ft,eventListeners:Mi,flip:ts,hide:os,left:ne,main:Ro,modifierPhases:Wo,offset:ss,placements:Ni,popper:pt,popperGenerator:Xn,popperOffsets:zi,preventOverflow:rs,read:Lo,reference:Vo,right:ce,start:xe,top:te,variationPlacements:wi,viewport:Si,write:jo},Symbol.toStringTag,{value:"Module"})),ds="dropdown",Ge=".bs.dropdown",ji=".data-api",Sl="ArrowUp",us="ArrowDown",wl=`hide${Ge}`,Nl=`hidden${Ge}`,Tl=`show${Ge}`,Ol=`shown${Ge}`,fs=`click${Ge}${ji}`,ps=`keydown${Ge}${ji}`,Al=`keyup${Ge}${ji}`,bt="show",Ke='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Dl=`${Ke}.${bt}`,Qn=".dropdown-menu",Bl=H()?"top-end":"top-start",Vl=H()?"top-start":"top-end",Ml=H()?"bottom-end":"bottom-start",Ll=H()?"bottom-start":"bottom-end",Il=H()?"left-start":"right-start",Pl=H()?"right-start":"left-start",Rl={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},zl={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class ke extends Ce{constructor(t,o){super(t,o),this._popper=null,this._parent=this._element.parentNode,this._menu=C.next(this._element,Qn)[0]||C.prev(this._element,Qn)[0]||C.findOne(Qn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Rl}static get DefaultType(){return zl}static get NAME(){return ds}toggle(){return this._isShown()?this.hide():this.show()}show(){if(M(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!g.trigger(this._element,Tl,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const o of[].concat(...document.body.children))g.on(o,"mouseover",Y);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(bt),this._element.classList.add(bt),g.trigger(this._element,Ol,t)}}hide(){if(M(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(!g.trigger(this._element,wl,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))g.off(o,"mouseover",Y);this._popper&&this._popper.destroy(),this._menu.classList.remove(bt),this._element.classList.remove(bt),this._element.setAttribute("aria-expanded","false"),De.removeDataAttribute(this._menu,"popper"),g.trigger(this._element,Nl,t)}}_getConfig(t){if(typeof(t=super._getConfig(t)).reference=="object"&&!k(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${ds.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(cs===void 0)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;this._config.reference==="parent"?t=this._parent:k(this._config.reference)?t=A(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const o=this._getPopperConfig();this._popper=Fi(t,this._menu,o)}_isShown(){return this._menu.classList.contains(bt)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Il;if(t.classList.contains("dropstart"))return Pl;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const o=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains("dropup")?o?Vl:Bl:o?Ll:Ml}_detectNavbar(){return this._element.closest(".navbar")!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(o=>Number.parseInt(o,10)):typeof t=="function"?o=>t(o,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||this._config.display==="static")&&(De.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...J(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:o}){const a=C.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(f=>W(f));a.length&&Ae(a,o,t===us,!a.includes(o)).focus()}static jQueryInterface(t){return this.each(function(){const o=ke.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t]()}})}static clearMenus(t){if(t.button===2||t.type==="keyup"&&t.key!=="Tab")return;const o=C.find(Dl);for(const a of o){const f=ke.getInstance(a);if(!f||f._config.autoClose===!1)continue;const p=t.composedPath(),h=p.includes(f._menu);if(p.includes(f._element)||f._config.autoClose==="inside"&&!h||f._config.autoClose==="outside"&&h||f._menu.contains(t.target)&&(t.type==="keyup"&&t.key==="Tab"||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const m={relatedTarget:f._element};t.type==="click"&&(m.clickEvent=t),f._completeHide(m)}}static dataApiKeydownHandler(t){const o=/input|textarea/i.test(t.target.tagName),a=t.key==="Escape",f=[Sl,us].includes(t.key);if(!f&&!a||o&&!a)return;t.preventDefault();const p=this.matches(Ke)?this:C.prev(this,Ke)[0]||C.next(this,Ke)[0]||C.findOne(Ke,t.delegateTarget.parentNode),h=ke.getOrCreateInstance(p);if(f)return t.stopPropagation(),h.show(),void h._selectMenuItem(t);h._isShown()&&(t.stopPropagation(),h.hide(),p.focus())}}g.on(document,ps,Ke,ke.dataApiKeydownHandler),g.on(document,ps,Qn,ke.dataApiKeydownHandler),g.on(document,fs,ke.clearMenus),g.on(document,Al,ke.clearMenus),g.on(document,fs,Ke,function(s){s.preventDefault(),ke.getOrCreateInstance(this).toggle()}),X(ke);const hs="backdrop",ms="show",gs=`mousedown.bs.${hs}`,Fl={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},jl={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class vs extends kn{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Fl}static get DefaultType(){return jl}static get NAME(){return hs}show(t){if(!this._config.isVisible)return void J(t);this._append();const o=this._getElement();this._config.isAnimated&&re(o),o.classList.add(ms),this._emulateAnimation(()=>{J(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(ms),this._emulateAnimation(()=>{this.dispose(),J(t)})):J(t)}dispose(){this._isAppended&&(g.off(this._element,gs),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=A(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),g.on(t,gs,()=>{J(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){it(t,this._getElement(),this._config.isAnimated)}}const Jn=".bs.focustrap",Ul=`focusin${Jn}`,Wl=`keydown.tab${Jn}`,bs="backward",xl={autofocus:!0,trapElement:null},ql={autofocus:"boolean",trapElement:"element"};class ys extends kn{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return xl}static get DefaultType(){return ql}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),g.off(document,Jn),g.on(document,Ul,t=>this._handleFocusin(t)),g.on(document,Wl,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,g.off(document,Jn))}_handleFocusin(t){const{trapElement:o}=this._config;if(t.target===document||t.target===o||o.contains(t.target))return;const a=C.focusableChildren(o);a.length===0?o.focus():this._lastTabNavDirection===bs?a[a.length-1].focus():a[0].focus()}_handleKeydown(t){t.key==="Tab"&&(this._lastTabNavDirection=t.shiftKey?bs:"forward")}}const _s=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Es=".sticky-top",Zn="padding-right",Cs="margin-right";class Ui{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,Zn,o=>o+t),this._setElementAttributes(_s,Zn,o=>o+t),this._setElementAttributes(Es,Cs,o=>o-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Zn),this._resetElementAttributes(_s,Zn),this._resetElementAttributes(Es,Cs)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,o,a){const f=this.getWidth();this._applyManipulationCallback(t,p=>{if(p!==this._element&&window.innerWidth>p.clientWidth+f)return;this._saveInitialAttribute(p,o);const h=window.getComputedStyle(p).getPropertyValue(o);p.style.setProperty(o,`${a(Number.parseFloat(h))}px`)})}_saveInitialAttribute(t,o){const a=t.style.getPropertyValue(o);a&&De.setDataAttribute(t,o,a)}_resetElementAttributes(t,o){this._applyManipulationCallback(t,a=>{const f=De.getDataAttribute(a,o);f!==null?(De.removeDataAttribute(a,o),a.style.setProperty(o,f)):a.style.removeProperty(o)})}_applyManipulationCallback(t,o){if(k(t))o(t);else for(const a of C.find(t,this._element))o(a)}}const ge=".bs.modal",Hl=`hide${ge}`,Gl=`hidePrevented${ge}`,ks=`hidden${ge}`,$s=`show${ge}`,Kl=`shown${ge}`,Yl=`resize${ge}`,Xl=`click.dismiss${ge}`,Ql=`mousedown.dismiss${ge}`,Jl=`keydown.dismiss${ge}`,Zl=`click${ge}.data-api`,Ss="modal-open",ws="show",Wi="modal-static",ea={backdrop:!0,focus:!0,keyboard:!0},ta={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Ye extends Ce{constructor(t,o){super(t,o),this._dialog=C.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ui,this._addEventListeners()}static get Default(){return ea}static get DefaultType(){return ta}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||g.trigger(this._element,$s,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ss),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){this._isShown&&!this._isTransitioning&&(g.trigger(this._element,Hl).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ws),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){g.off(window,ge),g.off(this._dialog,ge),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new vs({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ys({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 o=C.findOne(".modal-body",this._dialog);o&&(o.scrollTop=0),re(this._element),this._element.classList.add(ws),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,g.trigger(this._element,Kl,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){g.on(this._element,Jl,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),g.on(window,Yl,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),g.on(this._element,Ql,t=>{g.one(this._element,Xl,o=>{this._element===t.target&&this._element===o.target&&(this._config.backdrop!=="static"?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(Ss),this._resetAdjustments(),this._scrollBar.reset(),g.trigger(this._element,ks)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(g.trigger(this._element,Gl).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,o=this._element.style.overflowY;o==="hidden"||this._element.classList.contains(Wi)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Wi),this._queueCallback(()=>{this._element.classList.remove(Wi),this._queueCallback(()=>{this._element.style.overflowY=o},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,o=this._scrollBar.getWidth(),a=o>0;if(a&&!t){const f=H()?"paddingLeft":"paddingRight";this._element.style[f]=`${o}px`}if(!a&&t){const f=H()?"paddingRight":"paddingLeft";this._element.style[f]=`${o}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,o){return this.each(function(){const a=Ye.getOrCreateInstance(this,t);if(typeof t=="string"){if(a[t]===void 0)throw new TypeError(`No method named "${t}"`);a[t](o)}})}}g.on(document,Zl,'[data-bs-toggle="modal"]',function(s){const t=C.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&s.preventDefault(),g.one(t,$s,a=>{a.defaultPrevented||g.one(t,ks,()=>{W(this)&&this.focus()})});const o=C.findOne(".modal.show");o&&Ye.getInstance(o).hide(),Ye.getOrCreateInstance(t).toggle(this)}),Fn(Ye),X(Ye);const Ve=".bs.offcanvas",Ns=".data-api",na=`load${Ve}${Ns}`,Ts="show",Os="showing",As="hiding",Ds=".offcanvas.show",ia=`show${Ve}`,oa=`shown${Ve}`,sa=`hide${Ve}`,Bs=`hidePrevented${Ve}`,Vs=`hidden${Ve}`,ra=`resize${Ve}`,la=`click${Ve}${Ns}`,aa=`keydown.dismiss${Ve}`,ca={backdrop:!0,keyboard:!0,scroll:!1},da={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Me extends Ce{constructor(t,o){super(t,o),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return ca}static get DefaultType(){return da}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||g.trigger(this._element,ia,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new Ui().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Os),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Ts),this._element.classList.remove(Os),g.trigger(this._element,oa,{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(g.trigger(this._element,sa).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(As),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Ts,As),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Ui().reset(),g.trigger(this._element,Vs)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=!!this._config.backdrop;return new vs({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{this._config.backdrop!=="static"?this.hide():g.trigger(this._element,Bs)}:null})}_initializeFocusTrap(){return new ys({trapElement:this._element})}_addEventListeners(){g.on(this._element,aa,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():g.trigger(this._element,Bs))})}static jQueryInterface(t){return this.each(function(){const o=Me.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t](this)}})}}g.on(document,la,'[data-bs-toggle="offcanvas"]',function(s){const t=C.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),M(this))return;g.one(t,Vs,()=>{W(this)&&this.focus()});const o=C.findOne(Ds);o&&o!==t&&Me.getInstance(o).hide(),Me.getOrCreateInstance(t).toggle(this)}),g.on(window,na,()=>{for(const s of C.find(Ds))Me.getOrCreateInstance(s).show()}),g.on(window,ra,()=>{for(const s of C.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(s).position!=="fixed"&&Me.getOrCreateInstance(s).hide()}),Fn(Me),X(Me);const Ms={"*":["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:[]},ua=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),fa=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,pa=(s,t)=>{const o=s.nodeName.toLowerCase();return t.includes(o)?!ua.has(o)||!!fa.test(s.nodeValue):t.filter(a=>a instanceof RegExp).some(a=>a.test(o))},ha={allowList:Ms,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},ma={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ga={entry:"(string|element|function|null)",selector:"(string|element)"};class va extends kn{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return ha}static get DefaultType(){return ma}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[f,p]of Object.entries(this._config.content))this._setContent(t,p,f);const o=t.children[0],a=this._resolvePossibleFunction(this._config.extraClass);return a&&o.classList.add(...a.split(" ")),o}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[o,a]of Object.entries(t))super._typeCheckConfig({selector:o,entry:a},ga)}_setContent(t,o,a){const f=C.findOne(a,t);f&&((o=this._resolvePossibleFunction(o))?k(o)?this._putElementInTemplate(A(o),f):this._config.html?f.innerHTML=this._maybeSanitize(o):f.textContent=o:f.remove())}_maybeSanitize(t){return this._config.sanitize?(function(o,a,f){if(!o.length)return o;if(f&&typeof f=="function")return f(o);const p=new window.DOMParser().parseFromString(o,"text/html"),h=[].concat(...p.body.querySelectorAll("*"));for(const m of h){const b=m.nodeName.toLowerCase();if(!Object.keys(a).includes(b)){m.remove();continue}const _=[].concat(...m.attributes),E=[].concat(a["*"]||[],a[b]||[]);for(const y of _)pa(y,E)||m.removeAttribute(y.nodeName)}return p.body.innerHTML})(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return J(t,[void 0,this])}_putElementInTemplate(t,o){if(this._config.html)return o.innerHTML="",void o.append(t);o.textContent=t.textContent}}const ba=new Set(["sanitize","allowList","sanitizeFn"]),xi="fade",ei="show",ya=".tooltip-inner",Ls=".modal",Is="hide.bs.modal",Dn="hover",qi="focus",Hi="click",_a={AUTO:"auto",TOP:"top",RIGHT:H()?"left":"right",BOTTOM:"bottom",LEFT:H()?"right":"left"},Ea={allowList:Ms,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"},Ca={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 Xe extends Ce{constructor(t,o){if(cs===void 0)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,o),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 Ea}static get DefaultType(){return Ca}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),g.off(this._element.closest(Ls),Is,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(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=g.trigger(this._element,this.constructor.eventName("show")),o=(G(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!o)return;this._disposePopper();const a=this._getTipElement();this._element.setAttribute("aria-describedby",a.getAttribute("id"));const{container:f}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(f.append(a),g.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(a),a.classList.add(ei),"ontouchstart"in document.documentElement)for(const p of[].concat(...document.body.children))g.on(p,"mouseover",Y);this._queueCallback(()=>{g.trigger(this._element,this.constructor.eventName("shown")),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!g.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(ei),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))g.off(t,"mouseover",Y);this._activeTrigger[Hi]=!1,this._activeTrigger[qi]=!1,this._activeTrigger[Dn]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),g.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const o=this._getTemplateFactory(t).toHtml();if(!o)return null;o.classList.remove(xi,ei),o.classList.add(`bs-${this.constructor.NAME}-auto`);const a=(f=>{do f+=Math.floor(1e6*Math.random());while(document.getElementById(f));return f})(this.constructor.NAME).toString();return o.setAttribute("id",a),this._isAnimated()&&o.classList.add(xi),o}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new va({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[ya]: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(xi)}_isShown(){return this.tip&&this.tip.classList.contains(ei)}_createPopper(t){const o=J(this._config.placement,[this,t,this._element]),a=_a[o.toUpperCase()];return Fi(this._element,t,this._getPopperConfig(a))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(o=>Number.parseInt(o,10)):typeof t=="function"?o=>t(o,this._element):t}_resolvePossibleFunction(t){return J(t,[this._element,this._element])}_getPopperConfig(t){const o={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:a=>{this._getTipElement().setAttribute("data-popper-placement",a.state.placement)}}]};return{...o,...J(this._config.popperConfig,[void 0,o])}}_setListeners(){const t=this._config.trigger.split(" ");for(const o of t)if(o==="click")g.on(this._element,this.constructor.eventName("click"),this._config.selector,a=>{const f=this._initializeOnDelegatedTarget(a);f._activeTrigger[Hi]=!(f._isShown()&&f._activeTrigger[Hi]),f.toggle()});else if(o!=="manual"){const a=o===Dn?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),f=o===Dn?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");g.on(this._element,a,this._config.selector,p=>{const h=this._initializeOnDelegatedTarget(p);h._activeTrigger[p.type==="focusin"?qi:Dn]=!0,h._enter()}),g.on(this._element,f,this._config.selector,p=>{const h=this._initializeOnDelegatedTarget(p);h._activeTrigger[p.type==="focusout"?qi:Dn]=h._element.contains(p.relatedTarget),h._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},g.on(this._element.closest(Ls),Is,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,o){clearTimeout(this._timeout),this._timeout=setTimeout(t,o)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const o=De.getDataAttributes(this._element);for(const a of Object.keys(o))ba.has(a)&&delete o[a];return t={...o,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:A(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[o,a]of Object.entries(this._config))this.constructor.Default[o]!==a&&(t[o]=a);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 o=Xe.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t]()}})}}X(Xe);const ka=".popover-header",$a=".popover-body",Sa={...Xe.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"},wa={...Xe.DefaultType,content:"(null|string|element|function)"};class ti extends Xe{static get Default(){return Sa}static get DefaultType(){return wa}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ka]:this._getTitle(),[$a]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const o=ti.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t]()}})}}X(ti);const Gi=".bs.scrollspy",Na=`activate${Gi}`,Ps=`click${Gi}`,Ta=`load${Gi}.data-api`,yt="active",Ki="[href]",Rs=".nav-link",Oa=`${Rs}, .nav-item > ${Rs}, .list-group-item`,Aa={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Da={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Bn extends Ce{constructor(t,o){super(t,o),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Aa}static get DefaultType(){return Da}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=A(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(o=>Number.parseFloat(o))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(g.off(this._config.target,Ps),g.on(this._config.target,Ps,Ki,t=>{const o=this._observableSections.get(t.target.hash);if(o){t.preventDefault();const a=this._rootElement||window,f=o.offsetTop-this._element.offsetTop;if(a.scrollTo)return void a.scrollTo({top:f,behavior:"smooth"});a.scrollTop=f}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(o=>this._observerCallback(o),t)}_observerCallback(t){const o=h=>this._targetLinks.get(`#${h.target.id}`),a=h=>{this._previousScrollData.visibleEntryTop=h.target.offsetTop,this._process(o(h))},f=(this._rootElement||document.documentElement).scrollTop,p=f>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=f;for(const h of t){if(!h.isIntersecting){this._activeTarget=null,this._clearActiveClass(o(h));continue}const m=h.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(p&&m){if(a(h),!f)return}else p||m||a(h)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=C.find(Ki,this._config.target);for(const o of t){if(!o.hash||M(o))continue;const a=C.findOne(decodeURI(o.hash),this._element);W(a)&&(this._targetLinks.set(decodeURI(o.hash),o),this._observableSections.set(o.hash,a))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(yt),this._activateParents(t),g.trigger(this._element,Na,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))C.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(yt);else for(const o of C.parents(t,".nav, .list-group"))for(const a of C.prev(o,Oa))a.classList.add(yt)}_clearActiveClass(t){t.classList.remove(yt);const o=C.find(`${Ki}.${yt}`,t);for(const a of o)a.classList.remove(yt)}static jQueryInterface(t){return this.each(function(){const o=Bn.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}})}}g.on(window,Ta,()=>{for(const s of C.find('[data-bs-spy="scroll"]'))Bn.getOrCreateInstance(s)}),X(Bn);const Qe=".bs.tab",Ba=`hide${Qe}`,Va=`hidden${Qe}`,Ma=`show${Qe}`,La=`shown${Qe}`,Ia=`click${Qe}`,Pa=`keydown${Qe}`,Ra=`load${Qe}`,za="ArrowLeft",zs="ArrowRight",Fa="ArrowUp",Fs="ArrowDown",Yi="Home",js="End",Je="active",Us="fade",Xi="show",Ws=".dropdown-toggle",Qi=`:not(${Ws})`,xs='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Ji=`.nav-link${Qi}, .list-group-item${Qi}, [role="tab"]${Qi}, ${xs}`,ja=`.${Je}[data-bs-toggle="tab"], .${Je}[data-bs-toggle="pill"], .${Je}[data-bs-toggle="list"]`;class Ze extends Ce{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),g.on(this._element,Pa,o=>this._keydown(o)))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const o=this._getActiveElem(),a=o?g.trigger(o,Ba,{relatedTarget:t}):null;g.trigger(t,Ma,{relatedTarget:o}).defaultPrevented||a&&a.defaultPrevented||(this._deactivate(o,t),this._activate(t,o))}_activate(t,o){t&&(t.classList.add(Je),this._activate(C.getElementFromSelector(t)),this._queueCallback(()=>{t.getAttribute("role")==="tab"?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),g.trigger(t,La,{relatedTarget:o})):t.classList.add(Xi)},t,t.classList.contains(Us)))}_deactivate(t,o){t&&(t.classList.remove(Je),t.blur(),this._deactivate(C.getElementFromSelector(t)),this._queueCallback(()=>{t.getAttribute("role")==="tab"?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),g.trigger(t,Va,{relatedTarget:o})):t.classList.remove(Xi)},t,t.classList.contains(Us)))}_keydown(t){if(![za,zs,Fa,Fs,Yi,js].includes(t.key))return;t.stopPropagation(),t.preventDefault();const o=this._getChildren().filter(f=>!M(f));let a;if([Yi,js].includes(t.key))a=o[t.key===Yi?0:o.length-1];else{const f=[zs,Fs].includes(t.key);a=Ae(o,t.target,f,!0)}a&&(a.focus({preventScroll:!0}),Ze.getOrCreateInstance(a).show())}_getChildren(){return C.find(Ji,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,o){this._setAttributeIfNotExists(t,"role","tablist");for(const a of o)this._setInitialAttributesOnChild(a)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const o=this._elemIsActive(t),a=this._getOuterElement(t);t.setAttribute("aria-selected",o),a!==t&&this._setAttributeIfNotExists(a,"role","presentation"),o||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const o=C.getElementFromSelector(t);o&&(this._setAttributeIfNotExists(o,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(o,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,o){const a=this._getOuterElement(t);if(!a.classList.contains("dropdown"))return;const f=(p,h)=>{const m=C.findOne(p,a);m&&m.classList.toggle(h,o)};f(Ws,Je),f(".dropdown-menu",Xi),a.setAttribute("aria-expanded",o)}_setAttributeIfNotExists(t,o,a){t.hasAttribute(o)||t.setAttribute(o,a)}_elemIsActive(t){return t.classList.contains(Je)}_getInnerElement(t){return t.matches(Ji)?t:C.findOne(Ji,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each(function(){const o=Ze.getOrCreateInstance(this);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}})}}g.on(document,Ia,xs,function(s){["A","AREA"].includes(this.tagName)&&s.preventDefault(),M(this)||Ze.getOrCreateInstance(this).show()}),g.on(window,Ra,()=>{for(const s of C.find(ja))Ze.getOrCreateInstance(s)}),X(Ze);const Re=".bs.toast",Ua=`mouseover${Re}`,Wa=`mouseout${Re}`,xa=`focusin${Re}`,qa=`focusout${Re}`,Ha=`hide${Re}`,Ga=`hidden${Re}`,Ka=`show${Re}`,Ya=`shown${Re}`,qs="hide",ni="show",ii="showing",Xa={animation:"boolean",autohide:"boolean",delay:"number"},Qa={animation:!0,autohide:!0,delay:5e3};class Vn extends Ce{constructor(t,o){super(t,o),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Qa}static get DefaultType(){return Xa}static get NAME(){return"toast"}show(){g.trigger(this._element,Ka).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(qs),re(this._element),this._element.classList.add(ni,ii),this._queueCallback(()=>{this._element.classList.remove(ii),g.trigger(this._element,Ya),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(g.trigger(this._element,Ha).defaultPrevented||(this._element.classList.add(ii),this._queueCallback(()=>{this._element.classList.add(qs),this._element.classList.remove(ii,ni),g.trigger(this._element,Ga)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ni),super.dispose()}isShown(){return this._element.classList.contains(ni)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,o){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=o;break;case"focusin":case"focusout":this._hasKeyboardInteraction=o}if(o)return void this._clearTimeout();const a=t.relatedTarget;this._element===a||this._element.contains(a)||this._maybeScheduleHide()}_setListeners(){g.on(this._element,Ua,t=>this._onInteraction(t,!0)),g.on(this._element,Wa,t=>this._onInteraction(t,!1)),g.on(this._element,xa,t=>this._onInteraction(t,!0)),g.on(this._element,qa,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const o=Vn.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t](this)}})}}return Fn(Vn),X(Vn),{Alert:$n,Button:Sn,Carousel:at,Collapse:dt,Dropdown:ke,Modal:Ye,Offcanvas:Me,Popover:ti,ScrollSpy:Bn,Tab:Ze,Toast:Vn,Tooltip:Xe}})})(di)),di.exports}var Hc=qc();const uo=Wc(Hc);function Er(e,i=!0){const l=document.getElementById(e);let r=l?.parentElement;for(;r;){const c=(r.getAttribute("class")??"").match(/cl-tab-[0-9]+/);if(c){const u=document.querySelector(`input.${c}`);if(u){u.checked=!0;break}}r=r.parentElement}setTimeout(()=>{i?l?.scrollIntoView({behavior:"smooth"}):l?.scrollIntoView()},0)}let Oe=null;function _n(){Oe?.hide(),Oe=null}function fo(e,i){_n();const l=document.getElementById(e);if(l){Oe=new uo.Modal(l,{backdrop:"static"}),Oe.value=i,Oe.id=e,Oe.show();const r=document.querySelector(`#${e} [autofocus]`);r&&r.focus()}}function ui(e){return uo.Modal.getInstance(document.getElementById(e))?.value}function Gc(e){return Oe?e?Oe.id===e&&Oe._isShown:Oe._isShown:!1}function Cr(e,i=0,l=25){return e?.slice(i*l,i*l+l)??[]}function Kc(e="#invalid"){document.querySelector(e)?.focus()}function kr(e,i=[]){for(const r of i)r.valid=!0;document.querySelector(`#${e} [autofocus]`)?.focus()}function $r(e,i){e&&(e.modelValue=i,e.valid=!0)}function Sr(e){const i=document.querySelector(`#${e}`);return i?(document.querySelectorAll(`#${e} input, #${e} .form-control`).forEach(l=>{l.focus(),l.blur()}),i.checkValidity()===!1||document.querySelector(`#${e} :invalid, #${e} .invalid`)?(po(e),!1):!0):(console.error("can’t find/validate form",e),!1)}async function wr(e){const i=document.getElementById(e);return i?(document.querySelectorAll(`#${e} input, #${e} .form-control`).forEach(l=>{l.focus(),l.blur()}),document.querySelectorAll(`#${e} .ace_editor`).forEach(l=>{l.click()}),new Promise(l=>setTimeout(()=>{if(i.checkValidity()===!1||document.querySelector(`#${e} :invalid, #${e} .invalid`)){po(e),l(!1);return}l(!0)}))):(console.error("can’t find/validate form",e),Promise.resolve(!1))}function Yc(e){document.querySelector(`#${e} [autofocus]`)?.focus()}function po(e){document.querySelector(`#${e} :invalid, #${e} .invalid`)?.focus()}function Xc(e){return e<1024?`${e}B`:e<1024*1024?`${Math.floor(e/1024)}kB`:e<1024*1024*1024?`${Math.floor(e/1024/1024)}MB`:`${Math.floor(e/1024/1024/1024)}GB`}function Nr(e){const i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),l=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${l} ${i}`}function Tr(e,i=!1){const[l,r,c]=[(""+e.getUTCHours()).padStart(2,"0"),(""+e.getUTCMinutes()).padStart(2,"0"),(""+e.getUTCSeconds()).padStart(2,"0")];return i?`${l}:${r}:${c}`:`${l}:${r}`}function Or(e,i=!1){return`${Nr(e)} ${Tr(e,i)}`}function Qc(e,i=!0,l=!0,r=!0,c=!0,u=!1){const d=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),v=new Intl.DateTimeFormat("en",{month:"2-digit"}).format(e),k=new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e),[A,W,M]=[(""+e.getUTCHours()).padStart(2,"0"),(""+e.getUTCMinutes()).padStart(2,"0"),(""+e.getUTCSeconds()).padStart(2,"0")];let G="";return i&&(G+=` ${d}`),l&&(G+=`-${v}`),r&&(G+=`-${k}`),c&&(G+=` ${A}:${W}`),u&&(G+=`:${M}`),G.trim()}function Jc(e,i,l=!0,r=!1){let c=i.getTime()-e.getTime();r?c+=1:l?c+=1e3:c+=60*1e3;const u=(""+c%1e3).padStart(3,"0");c=Math.floor(c/1e3);const d=(""+c%60).padStart(2,"0");c=Math.floor(c/60);const v=(""+c%60).padStart(2,"0");c=Math.floor(c/60);const k=(""+c).padStart(2,"0");return r?`${k}:${v}:${d}.${u}`:l?`${k}:${v}:${d}`:`${k}:${v}`}function Zc(e){const i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e);return`${new Intl.DateTimeFormat("en",{month:"short"}).format(e)} ${i}`}function hi(e,i=0){return e.toLocaleString("en",{minimumFractionDigits:i})}function ed(e,i,l=2){switch(i){case"EUR":i="€";break;case"USD":i="$";break}return`${i} ${hi(e/10**l,l)}`}function td(e,i){return`${hi(e)} - ${hi(i)}`}function Ar(e){return`**** **** **** ${e.replace(/ /g,"").substr(-4)}`}function nd(e,i,l=e.ID_FORM){if(l){if(Sr(l)&&!e.submitting)return e.submitting=!0,i().finally(()=>{e.submitting=!1})}else if(!e.submitting)return e.submitting=!0,i().finally(()=>{e.submitting=!1});return Promise.resolve()}function id(e,i,l=e.ID_FORM){return e.submitting?Promise.resolve():wr(l).then(r=>{if(r)return e.submitting=!0,i().finally(()=>{e.submitting=!1})})}function kt(e,i){const l=i.split("."),r=l.shift(),c=e[r];return[void 0,null].includes(c)?c:l.length>0?kt(c,l.join(".")):c}function Dr(e,i,l="ASC",r=!1){if(!e)return[];const c=typeof e=="function"?[...e()]:[...e],u=(d,v)=>d.localeCompare(v,void 0,{ignorePunctuation:!0});return l==="ASC"?c.sort((d,v)=>(d=kt(d,i)??"",v=kt(v,i)??"",typeof d=="string"&&typeof v=="string"?r?u(d.toUpperCase(),v.toUpperCase()):u(d,v):d>v?1:d<v?-1:0)):c.sort((d,v)=>(d=kt(d,i)??"",v=kt(v,i)??"",typeof d=="string"&&typeof v=="string"?r?u(v.toUpperCase(),d.toUpperCase()):u(v,d):d<v?1:d>v?-1:0))}function Br(e,i=0,l="ASC"){return{col:i,order:l,set:function(r,c){const u=this.sort(r,c);this.col=r,this.order=u},get:function(r){return this.col===r?this.order:"NONE"},sorted:[],sorter:e,sort:function(r=this.col,c=this.order){const{sorted:u,sortedOrder:d}=this.sorter(r,c);return this.sorted=u,d}}}function od(e,i,l=0,r=()=>0,c=()=>Number.MAX_SAFE_INTEGER){return Br((u,d)=>({sorted:Cr(Dr(e,i[u],d),r(),c()),sortedOrder:d}),l)}function sd(e,i=500,l="none"){clearTimeout(dr.get(l)),dr.set(l,setTimeout(e,i))}const dr=new Map;function rd(e=3,i=["lorem","ipsum","dolor","sit","amet","consectetur","adipiscing","elit","eiusmod","tempor","incididunt","labore","et","dolore","magna","aliqua"]){let l="";for(let r=0;r<e;r++)l+=" "+i[Math.floor(Math.random()*i.length)];return l.substr(1)}function ld(e=3,i=["alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","omicorn"]){const l=[];for(let r=0;r<e;r++)l.push(i[Math.floor(Math.random()*i.length)]);return l}function ad(e){navigator.clipboard.writeText(e)}function cd(e,i=[],l=[],r=!0){const c=[];for(const u of i)if(typeof u=="function")c.push(u());else if(u){const d=u.shift();c.push(d(...u))}for(const u of l)if(typeof u=="function")c.push(u(!1));else if(u){const d=u.shift();c.push(d(u.shift(),!1))}return r?(e.loading=Promise.all(c).finally(()=>{r&&(e.loading=null)}),e.loading):Promise.all(c)}function dd(e,i=[],l=[],r=!0){const c=[];for(const u of i)if(typeof u=="function")c.push(u(!0));else if(u){const d=u.shift();c.push(d(!0,...u))}for(const u of l)if(typeof u=="function")c.push(u(!1));else if(u){const d=u.shift();c.push(d(!1,...u))}return r?(e.loading=Promise.all(c).finally(()=>{r&&(e.loading=null)}),e.loading):Promise.all(c)}function ud(e){return new Promise(i=>setTimeout(i,e))}const fd=n.defineComponent({name:"ClBackCancelOk",props:{ok:{type:String,default:"Ok"},back:{type:String,default:"Back"},cancel:{type:String,default:"Cancel"},disabled:{type:Boolean,default:!1},dirty:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},backHidden:{type:Boolean,default:!1},spinner:{type:Boolean,default:!1}},emits:["ok","cancel"],data(){return{ID_MODAL:"cl-modal-back-cancel-ok"}},methods:{clModalHide:_n,abort:function(){this.dirty?fo(this.ID_MODAL,{}):this.$emit("cancel")},emit:function(e){_n(),this.$emit(e)}}}),pd={key:0},hd={key:1},md=["disabled"];function gd(e,i,l,r,c,u){const d=n.resolveComponent("cl-modal"),v=n.resolveComponent("cl-section-main");return n.openBlock(),n.createBlock(v,{class:"cl-back-cancel-ok"},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.createElementVNode("div",{class:n.normalizeClass(["cl-spacing-box cl-spacing-medium it-buttons",[e.backHidden?"text-end":"cl-spread"]])},[e.backHidden?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"btn cl-color-secondary it-cancel",onClick:i[0]||(i[0]=k=>e.abort())},[e.dirty?(n.openBlock(),n.createElementBlock("span",pd,n.toDisplayString(e.cancel),1)):(n.openBlock(),n.createElementBlock("span",hd,n.toDisplayString(e.back),1))])),e.hidden?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:1,type:"button",class:n.normalizeClass(["btn cl-color-primary it-ok",{"cl-btn-spinner":e.spinner}]),disabled:e.disabled||!e.dirty,onClick:i[1]||(i[1]=k=>e.$emit("ok"))},[n.createElementVNode("span",null,n.toDisplayString(e.ok),1)],10,md))],2),n.createVNode(d,{id:e.ID_MODAL},{title:n.withCtx(()=>[...i[4]||(i[4]=[n.createTextVNode(" Unsaved changes ",-1)])]),body:n.withCtx(()=>[n.renderSlot(e.$slots,"modal",{},()=>[i[5]||(i[5]=n.createElementVNode("p",null,"There are unsaved changes. Do you want to discard them or continue editing?",-1))])]),"footer-left":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:"btn cl-color-secondary it-cancel",onClick:i[2]||(i[2]=k=>e.emit("cancel",!0))}," Discard changes ")]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:"btn cl-color-primary it-ok",onClick:i[3]||(i[3]=k=>e.clModalHide())}," Continue editing ")]),_:3},8,["id"])]),_:3})}const St=$(fd,[["render",gd]]);St.install=e=>{e.component(St.name??"ClNoName",St)};const vd=n.defineComponent({name:"ClCookieBanner",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},local:{type:Boolean,default:!1}},emits:["consent"],data(){return{fade:!1,visible:!0,cookie:"cl_banner_nok"}},computed:{clazz:function(){return(this.fade?" cl-fade-away":"")+(this.class?` ${this.class}`:"")}},created(){if(!this.local&&!window.location.hostname.match(/castlabs.com$/)){this.visible=!1;return}for(const e of document?.cookie?.split(/; */)??[]){const[i,l]=e.split("=");if(i===this.cookie&&["-mtm","+mtm"].includes(l??"unknown")){this.visible=!1;return}}},methods:{accept:function(){document.cookie=this.cookieString("+mtm"),this.hide(),this.$emit("consent")},decline:function(){document.cookie=this.cookieString("-mtm"),this.hide()},cookieString:function(e){return this.local?`${this.cookie}=${e}; max-age=${3600*24*395}; path=/; SameSite=Lax;`:`${this.cookie}=${e}; max-age=${3600*24*395}; domain=.castlabs.com; path=/; SameSite=Lax;`},hide:function(){this.fade=!0,setTimeout(()=>{this.visible=!1},500)}}}),bd=["id"],yd={class:"card-body"},_d={class:"cl-spacing-box cl-spread"};function Ed(e,i,l,r,c,u){return e.visible?(n.openBlock(),n.createElementBlock("div",{key:0,id:e.id,class:n.normalizeClass(["card cl-card cl-cookie-banner",e.clazz])},[n.createElementVNode("div",yd,[n.renderSlot(e.$slots,"default",{},()=>[i[2]||(i[2]=n.createElementVNode("p",{class:"cl-p-small"},[n.createTextVNode(" For our services to work, we use essential cookies which we control. We'd also like to include others to analyze how our site is used to help improve it - but only if you accept. Learn more in our "),n.createElementVNode("a",{class:"cl-a-text",href:"https://castlabs.com/privacy-cookie-policy/"},"privacy policy"),n.createTextVNode(". ")],-1))]),n.createElementVNode("div",_d,[n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-color-secondary it-cancel",onClick:i[0]||(i[0]=d=>e.decline())}," Decline "),n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-color-red it-ok",onClick:i[1]||(i[1]=d=>e.accept())}," Accept ")])])],10,bd)):n.createCommentVNode("",!0)}const wt=$(vd,[["render",Ed]]);wt.install=e=>{e.component(wt.name??"ClNoName",wt)};const Cn={mounted(e,i){let l="";for(const c of["cl-tooltip-primary","cl-tooltip-secondary","cl-tooltip-light","cl-tooltip-dark"])e.classList.contains(c)&&(l+=` ${c}`);const r=new uo.Tooltip(e,{title:i.value,placement:i.arg,html:!0,trigger:"hover",delay:{show:65,hide:0},template:`<div class="tooltip cl-tooltip${l}" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>`});return e.__tooltipInstance=r,e.addEventListener("show.bs.tooltip",function(){document.querySelectorAll(".cl-tooltip").forEach(u=>u.remove())}),r},unmounted(e){const i=e.__tooltipInstance;if(i){typeof i.dispose=="function"&&i.dispose();const l=document.querySelector(".cl-tooltip");l&&l.remove(),delete e.__tooltipInstance}}},ho={mounted(e,i){e.addEventListener("click",function(){const l=typeof i.value=="function"?i.value():i.value;i.value!==""&&navigator.clipboard?.writeText(l),e.classList.add("cl-animation-flash-text"),setTimeout(()=>{e.classList.remove("cl-animation-flash-text")},1500)})}};function Cd(e){return e}function kd(e){return e}function $d(e){return e}function mo(e){n.nextTick(()=>{e?.focus()})}const Sd=n.defineComponent({name:"ClCopy",directives:{tooltip:Cn,clipboard:ho},props:{show:{type:String,default:void 0},copy:{type:String,default:void 0},underline:{type:Boolean,default:!1},code:{type:Boolean,default:!1},unstyled:{type:Boolean,default:!1}},methods:{tooltip:function(){return this.show&&this.contentToCopy()!==this.show?`${this.contentToCopy()}<br><small>Click-to-copy!</small>`:"<small>Click-to-copy!</small>"},contentToCopy:function(){return this.copy??this.$refs.content?.textContent.trim()}}}),wd={key:0,ref:"content",class:"cl-copy"},Nd={ref:"content"};function Td(e,i,l,r,c,u){const d=n.resolveDirective("tooltip"),v=n.resolveDirective("clipboard");return e.unstyled?n.withDirectives((n.openBlock(),n.createElementBlock("span",wd,[e.show?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.show),1)],64)):e.$slots.default?n.renderSlot(e.$slots,"default",{key:1}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString(e.copy??"?"),1)],64))])),[[d,e.tooltip,"top"],[v,e.contentToCopy]]):e.code?n.withDirectives((n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass(e.underline?"cl-copy cl-copy-text":"cl-copy cl-copy-transparent")},[n.createElementVNode("code",Nd,[e.show?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.show),1)],64)):e.$slots.default?n.renderSlot(e.$slots,"default",{key:1}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString(e.copy??"?"),1)],64))],512)],2)),[[d,e.tooltip,"top"],[v,e.contentToCopy]]):n.withDirectives((n.openBlock(),n.createElementBlock("span",{key:2,ref:"content",class:n.normalizeClass(e.underline?"cl-copy cl-copy-text":"cl-copy cl-copy-transparent")},[e.show?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.show),1)],64)):e.$slots.default?n.renderSlot(e.$slots,"default",{key:1}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString(e.copy??"?"),1)],64))],2)),[[d,e.tooltip,"top"],[v,e.contentToCopy]])}const Nt=$(Sd,[["render",Td]]);Nt.install=e=>{e.component(Nt.name??"ClNoName",Nt)};const Od=n.defineComponent({name:"ClCreditcardNumber",props:{id:{type:String,default:void 0},class:{type:String,default:""},number:{type:String,default:"0000000000000000"},expires:{type:String,default:"MM/YYYY"},expired:{type:Boolean,default:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""},validText:function(){return this.expired?"expired":"valid until"}},methods:{clFormatCardNumber:Ar}}),Ad=["id"];function Dd(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("code",{id:e.id,class:n.normalizeClass(e.clazz)},n.toDisplayString(e.clFormatCardNumber(e.number)),11,Ad),n.createTextVNode(", "+n.toDisplayString(e.validText)+" ",1),n.createElementVNode("code",null,n.toDisplayString(e.expires),1)],64)}const Tt=$(Od,[["render",Dd]]);Tt.install=e=>{e.component(Tt.name??"ClNoName",Tt)};function ur(e){e.preventDefault()}const Bd=n.defineComponent({name:"ClDropzone",props:{what:{type:String,default:"a file"},why:{type:String,default:"to add"},accept:{type:String,default:void 0},camera:{type:Boolean,default:!1},emitContent:{type:Boolean,default:!1}},emits:["file","content"],data(){return{$uid:0,dragging:!1}},mounted(){["dragenter","dragover","dragleave","drop"].forEach(e=>{document.body.addEventListener(e,ur)})},unmounted(){["dragenter","dragover","dragleave","drop"].forEach(e=>{document.body.removeEventListener(e,ur)})},methods:{browse:function(){const e=document.getElementById(`cl-dropzone-file-${this.$uid}`);if(e&&document.createEvent){const i=document.createEvent("MouseEvents");i.initEvent("click",!0,!1),e.dispatchEvent(i)}},browsed:function(){const i=document.getElementById(`cl-dropzone-file-${this.$uid}`).files??[];i.length>0&&this.loadFile(i[0])},mock:function(e){this.$emit("file",e)},loadFile:function(e){const i=this.$emit;if(i("file",e),this.emitContent){const l=new FileReader;l.onload=function(r){i("content",r.target?.result)},l.readAsText(e)}},onDrop:function(e){e.dataTransfer&&this.loadFile(e.dataTransfer.files[0]),this.dragging=!1},onDrag:function(e){this.dragging=e}}}),Vd=["id"],Md=["id","accept"];function Ld(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["cl-spacing-small",e.dragging?"cl-dragging":""]),onDragover:i[6]||(i[6]=d=>e.onDrag(!0)),onDragleave:i[7]||(i[7]=d=>e.onDrag(!1)),onDrop:i[8]||(i[8]=n.withModifiers((...d)=>e.onDrop&&e.onDrop(...d),["prevent"]))},[e.camera?(n.openBlock(),n.createElementBlock("input",{key:0,id:`cl-dropzone-file-${e.$uid}`,type:"file",accept:"image/*",class:"cl-dropzone-file",capture:"environment",onChange:i[0]||(i[0]=(...d)=>e.browsed&&e.browsed(...d)),tabindex:"-1"},null,40,Vd)):n.createCommentVNode("",!0),n.createElementVNode("input",{id:`cl-dropzone-file-${e.$uid}`,type:"file",accept:e.accept,class:"cl-dropzone-file",onChange:i[1]||(i[1]=(...d)=>e.browsed&&e.browsed(...d)),tabindex:"-1"},null,40,Md),e.camera?(n.openBlock(),n.createElementBlock("div",{key:1,class:"cl-dropzone",onClick:i[3]||(i[3]=d=>e.browse())},[i[9]||(i[9]=n.createElementVNode("i",{class:"fas fa-camera","aria-hidden":"true"},null,-1)),i[10]||(i[10]=n.createTextVNode("Use your ",-1)),n.createElementVNode("a",{href:"#",onClick:i[2]||(i[2]=n.withModifiers(()=>{},["prevent"]))},"camera"),n.createTextVNode(" to take a picture "+n.toDisplayString(e.why)+". ",1)])):(n.openBlock(),n.createElementBlock("div",{key:2,class:"cl-dropzone",onClick:i[5]||(i[5]=d=>e.browse())},[i[11]||(i[11]=n.createElementVNode("i",{class:"fas fa-file-upload","aria-hidden":"true"},null,-1)),i[12]||(i[12]=n.createTextVNode("Drop or ",-1)),n.createElementVNode("a",{href:"#",onClick:i[4]||(i[4]=n.withModifiers(()=>{},["prevent"]))},"browse"),n.createTextVNode(" "+n.toDisplayString(e.what)+" "+n.toDisplayString(e.why)+". ",1)])),n.renderSlot(e.$slots,"default")],34)}const Ot=$(Bd,[["render",Ld]]);Ot.install=e=>{e.component(Ot.name??"ClNoName",Ot)};const Id=n.defineComponent({name:"ClField",inheritAttrs:!1,props:{value:{type:String,default:void 0},type:{type:String,default:"text"},label:{type:String,default:void 0},placeholder:{type:String,default:void 0},class:{type:String,default:""},help:{type:String,default:void 0},error:{type:String,default:void 0},nofeedback:{type:Boolean,default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},autotrim:{type:Boolean,default:!1},prevalidate:{type:Boolean,default:!1},minlength:{type:String,default:void 0},maxlength:{type:String,default:void 0},min:{type:String,default:void 0},max:{type:String,default:void 0},pattern:{type:String,default:void 0}},emits:["valid","invalid","changed","update:modelValue"],data(){return{valid:!0,modelValue:this.value??"",invalidMessage:this.error??"Input invalid.",filePlaceholder:this.placeholder??"Please select ..."}},computed:{clazz:function(){return this.type==="file"?this.class+" cl-file"+(this.valid?"":" invalid"):this.class+" form-control"+(this.valid?"":" invalid")}},watch:{value(e){this.modelValue!==e&&(this.modelValue=e)}},mounted:function(){this.prevalidate&&this.validate()},methods:{runAutotrim:function(){if(this.autotrim||["number"].includes(this.type)){const e=this.$refs.input;e.value=e.value.trim(),this.modelValue=e.value}},focus:function(){mo(this.$refs.input)},validate:function(e=!1){if(this.valid=!0,e&&this.runAutotrim(),this.type==="file"&&this.modelValue!==""&&(this.filePlaceholder=this.modelValue.replace(/.*[/\\]/,"")),this.required&&(this.modelValue?.length??0)<=0)this.setInvalid("This field may not be blank.");else switch(this.type){case"number":this.validateNumber();break;case"email":this.validateEMail();break;default:this.validateText()}this.valid&&this.setValid(this.modelValue)},validateSilent:function(){if(this.required&&(this.modelValue?.length??0)<=0)return!1;switch(this.type){case"number":if(!this.validateNumber(!0))return!1;break;case"email":if(!this.validateEMail(!0))return!1;break;default:if(!this.validateText(!0))return!1}return!0},validateText:function(e=!1){const i=Number(this.minlength),l=Number(this.maxlength);return this.minlength&&(this.modelValue?.length??0)<i?(e||this.setInvalid(this.error??`Please enter at least ${i} character`+(i>1?"s.":".")),!1):this.maxlength&&(this.modelValue?.length??0)>l?(e||this.setInvalid(this.error??`Please enter at most ${l} character`+(i>1?"s.":".")),!1):this.pattern&&!new RegExp(this.pattern,"g").test(this.modelValue)?(e||this.setInvalid(this.error),!1):!0},validateNumber:function(e=!1){const i=this.modelValue.trim();if(!/^-?[0-9]*$/.test(i.trim()))return e||this.setInvalid("Please enter a number."),!1;const l=parseInt(i.trim());if(l.toString()!==i)return e||this.setInvalid("Please enter a number."),!1;if(this.min!==void 0&&this.max!==void 0){if(l<parseInt(this.min)||l>parseInt(this.max))return e||this.setInvalid(`Please enter a number between ${this.min} and ${this.max}.`),!1}else if(this.min!==void 0){if(l<parseInt(this.min))return e||this.setInvalid(`Please enter a number >= ${this.min}.`),!1}else if(this.max!==void 0&&l>parseInt(this.max))return e||this.setInvalid(`Please enter a number <= ${this.max}.`),!1;return!0},validateEMail:function(e=!1){return/^[^\s@]+@[^\s@]+\.[^\s@]+[^\s@.]$/.test(this.modelValue)?!0:(e||this.setInvalid("Please enter a valid email address."),!1)},setValid:function(e=""){this.valid=!0,this.modelValue=e,this.$emit("update:modelValue",this.modelValue),this.$emit("valid",this.help??""),this.$emit("changed",this.modelValue)},setInvalid:function(e){this.valid=!1,this.invalidMessage=e??"Input invalid.",this.$emit("update:modelValue",this.modelValue),this.$emit("invalid",this.invalidMessage),this.$emit("changed",this.modelValue)}}}),Pd=["for"],Rd={key:0,class:"required"},zd=["id","autofocus","disabled","maxlength","minlength","placeholder","required"],Fd=["id","autofocus","disabled","required"],jd=["id","autofocus","disabled","min","max","maxlength","minlength","pattern","placeholder","required","type"],Ud=["id","for"],Wd={class:"invalid-feedback"},xd={key:0,class:"valid-feedback"},qd={key:1,class:"valid-feedback valid-feedback-none"};function Hd(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.label?(n.openBlock(),n.createElementBlock("label",{key:0,for:e.$uid,class:"form-label"},[n.createTextVNode(n.toDisplayString(e.label),1),e.required?(n.openBlock(),n.createElementBlock("span",Rd,"*")):n.createCommentVNode("",!0)],8,Pd)):n.createCommentVNode("",!0),e.type==="textarea"?n.withDirectives((n.openBlock(),n.createElementBlock("textarea",n.mergeProps({key:1,id:e.$uid},e.$attrs,{ref:"input","onUpdate:modelValue":i[0]||(i[0]=d=>e.modelValue=d),autofocus:e.autofocus,class:e.clazz,disabled:e.disabled,maxlength:e.maxlength,minlength:e.minlength,placeholder:e.placeholder,required:e.required,onBlur:i[1]||(i[1]=d=>e.validate(!0)),onChange:i[2]||(i[2]=d=>e.validate()),onInput:i[3]||(i[3]=d=>e.validate())}),null,16,zd)),[[n.vModelText,e.modelValue]]):e.type==="select"?n.withDirectives((n.openBlock(),n.createElementBlock("select",n.mergeProps({key:2,id:e.$uid,"onUpdate:modelValue":i[4]||(i[4]=d=>e.modelValue=d),class:["form-select",e.clazz],autofocus:e.autofocus,disabled:e.disabled,required:e.required},e.$attrs,{onBlur:i[5]||(i[5]=d=>e.validate(!0)),onChange:i[6]||(i[6]=d=>e.validate())}),[n.renderSlot(e.$slots,"default")],16,Fd)),[[n.vModelSelect,e.modelValue]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",n.mergeProps({key:3,id:e.$uid},e.$attrs,{ref:"input","onUpdate:modelValue":i[7]||(i[7]=d=>e.modelValue=d),autofocus:e.autofocus,class:e.clazz,disabled:e.disabled,min:e.min,max:e.max,maxlength:e.maxlength,minlength:e.minlength,pattern:e.pattern,placeholder:e.placeholder,required:e.required,type:["number"].includes(e.type)?"text":e.type,onBlur:i[8]||(i[8]=d=>e.validate(!0)),onChange:i[9]||(i[9]=d=>e.validate()),onInput:i[10]||(i[10]=d=>e.validate())}),null,16,jd)),[[n.vModelDynamic,e.modelValue]]),e.type==="file"?(n.openBlock(),n.createElementBlock("label",{key:4,id:`${e.$uid}-companion`,for:e.$uid,class:"cl-file-companion"},n.toDisplayString(e.filePlaceholder),9,Ud)):n.createCommentVNode("",!0),e.nofeedback?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:5},[n.createElementVNode("p",Wd,n.toDisplayString(e.invalidMessage),1),e.help?(n.openBlock(),n.createElementBlock("p",xd,n.toDisplayString(e.help),1)):(n.openBlock(),n.createElementBlock("p",qd))],64))],64)}const At=$(Id,[["render",Hd]]);At.install=e=>{e.component(At.name??"ClNoName",At)};const Gd=n.defineComponent({name:"ClFieldCheck",inheritAttrs:!1,props:{id:{type:String,default:void 0},value:{type:Boolean,default:!1},label:{type:String,default:void 0},class:{type:String,default:""},inline:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{modelValue:this.value}},computed:{clazz:function(){return`form-check${this.inline?" form-check-inline":""} ${this.class}`}},watch:{value(e){this.modelValue!==e&&(this.modelValue=e)}},methods:{check:function(e=!1){this.modelValue=e,this.$refs.input.checked=e},focus:function(){mo(this.$refs.input)}}}),Kd=["id","disabled","indeterminate","autofocus"],Yd=["for"];function Xd(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.clazz)},[n.withDirectives(n.createElementVNode("input",n.mergeProps({id:e.id??e.$uid,"onUpdate:modelValue":i[0]||(i[0]=d=>e.modelValue=d),class:"form-check-input",type:"checkbox",disabled:e.disabled,indeterminate:e.indeterminate,autofocus:e.autofocus},e.$attrs,{onChange:i[1]||(i[1]=d=>e.$emit("update:modelValue",e.modelValue))}),null,16,Kd),[[n.vModelCheckbox,e.modelValue]]),n.createElementVNode("label",{class:"form-check-label",for:e.id??e.$uid},[n.renderSlot(e.$slots,"default")],8,Yd)],2)}const Dt=$(Gd,[["render",Xd]]);Dt.install=e=>{e.component(Dt.name??"ClNoName",Dt)};const Qd=n.defineComponent({name:"ClFieldGroup",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:void 0},label:{type:String,default:void 0},help:{type:String,default:void 0},error:{type:String,default:void 0},required:{type:Boolean,default:!1}},data(){return{valid:!0,invalidMessage:this.error??"Input invalid."}},computed:{clazz:function(){return(this.valid?"":" invalid")+(this.class?` ${this.class}`:"")}},methods:{setValid:function(){this.valid=!0,this.invalidMessage="Input invalid."},setInvalid:function(e){this.valid=!1,this.invalidMessage=e??"Input invalid."}}}),Jd={key:0,class:"form-label"},Zd={key:0,class:"required"},eu=["id"],tu={class:"invalid-feedback"},nu={key:1,class:"valid-feedback"};function iu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.label?(n.openBlock(),n.createElementBlock("label",Jd,[n.createTextVNode(n.toDisplayString(e.label),1),e.required?(n.openBlock(),n.createElementBlock("span",Zd,"*")):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(`input-group${e.clazz}`),id:e.id},[n.renderSlot(e.$slots,"default")],10,eu),n.createElementVNode("p",tu,n.toDisplayString(e.invalidMessage),1),e.help?(n.openBlock(),n.createElementBlock("p",nu,n.toDisplayString(e.help),1)):n.createCommentVNode("",!0)],64)}const Bt=$(Qd,[["render",iu]]);Bt.install=e=>{e.component(Bt.name??"ClNoName",Bt)};const ou=n.defineComponent({name:"ClHashtag",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},name:{type:String,default:""},primary:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},derived:{type:Boolean,default:!1}},computed:{clazz:function(){let e="cl-hashtag ";return!this.primary&&!this.secondary?this.class.includes("cl-color")||(e+=" cl-color-ash"):this.primary?e+=" cl-color-red":this.secondary&&(e+=" cl-color-steel"),e+(this.class?` ${this.class}`:"")}}}),su={key:0,class:"cl-badge-derived"},ru=["id"],lu=["id"];function au(e,i,l,r,c,u){return e.derived?(n.openBlock(),n.createElementBlock("span",su,[n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,ru)])):(n.openBlock(),n.createElementBlock("span",{key:1,id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,lu))}const Vt=$(ou,[["render",au]]);Vt.install=e=>{e.component(Vt.name??"ClNoName",Vt)};const cu=n.defineComponent({name:"ClIconotron",props:{src:{type:String,default:void 0}}}),du={class:"container cl-container-iconotron"},uu={class:"row"},fu={class:"col-12 col-md-3"},pu=["src"],hu={class:"col-12 col-md-9"};function mu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",du,[n.createElementVNode("div",uu,[n.createElementVNode("div",fu,[n.createElementVNode("img",{src:e.src,alt:""},null,8,pu)]),n.createElementVNode("div",hu,[n.renderSlot(e.$slots,"default")])])])}const Mt=$(cu,[["render",mu]]);Mt.install=e=>{e.component(Mt.name??"ClNoName",Mt)};const gu=n.defineComponent({name:"ClInfo",directives:{tooltip:Cn},props:{bottom:{type:Boolean,default:!1},left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},top:{type:Boolean,default:!0},info:{type:String,default:"Tooltip"},faded:{type:Boolean,default:!0},icon:{type:String,default:"far fa-question-circle"}},computed:{classes:function(){return this.icon+(this.faded?" cl-faded":"")}}});function vu(e,i,l,r,c,u){const d=n.resolveDirective("tooltip");return e.bottom?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(e.classes),"aria-hidden":"true"},null,2)),[[d,e.info,"bottom"]]):e.left?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(e.classes),"aria-hidden":"true"},null,2)),[[d,e.info,"left"]]):e.right?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(e.classes),"aria-hidden":"true"},null,2)),[[d,e.info,"right"]]):n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:3,class:n.normalizeClass(e.classes),"aria-hidden":"true"},null,2)),[[d,e.info,"top"]])}const Lt=$(gu,[["render",vu]]);Lt.install=e=>{e.component(Lt.name??"ClNoName",Lt)};const bu=n.defineComponent({name:"ClLinkExternal",props:{noicon:{type:Boolean,default:!1}}});function yu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("a",{class:n.normalizeClass({"cl-a-external":!e.noicon}),target:"_blank",rel:"noopener noreferrer"},[n.renderSlot(e.$slots,"default")],2)}const It=$(bu,[["render",yu]]);It.install=e=>{e.component(It.name??"ClNoName",It)};const _u=`
|
|
2
2
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
|
|
3
3
|
incididunt ut labore et dolore magna aliqua. Sed ullamcorper morbi tincidunt
|
|
4
4
|
ornare massa eget egestas purus viverra. Faucibus in ornare quam viverra orci
|