@castlabs/ui 7.10.0 → 7.12.0

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 oc=typeof global=="object"&&global&&global.Object===Object&&global,sc=typeof self=="object"&&self&&self.Object===Object&&self,fr=oc||sc||Function("return this")(),no=function(){return fr.Date.now()},rc=/\s/;function lc(e){for(var i=e.length;i--&&rc.test(e.charAt(i)););return i}var ac=/^\s+/;function cc(e){return e&&e.slice(0,lc(e)+1).replace(ac,"")}var pi=fr.Symbol,pr=Object.prototype,dc=pr.hasOwnProperty,uc=pr.toString,In=pi?pi.toStringTag:void 0;function fc(e){var i=dc.call(e,In),l=e[In];try{e[In]=void 0;var r=!0}catch{}var c=uc.call(e);return r&&(i?e[In]=l:delete e[In]),c}var pc=Object.prototype,hc=pc.toString;function mc(e){return hc.call(e)}var gc="[object Null]",vc="[object Undefined]",ir=pi?pi.toStringTag:void 0;function bc(e){return e==null?e===void 0?vc:gc:ir&&ir in Object(e)?fc(e):mc(e)}function yc(e){return e!=null&&typeof e=="object"}var _c="[object Symbol]";function Ec(e){return typeof e=="symbol"||yc(e)&&bc(e)==_c}var or=NaN,Cc=/^[-+]0x[0-9a-f]+$/i,kc=/^0b[01]+$/i,$c=/^0o[0-7]+$/i,Sc=parseInt;function sr(e){if(typeof e=="number")return e;if(Ec(e))return or;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=cc(e);var l=kc.test(e);return l||$c.test(e)?Sc(e.slice(2),l?2:8):Cc.test(e)?or:+e}var wc="Expected a function",Nc=Math.max,Tc=Math.min;function ai(e,i,l){var r,c,u,d,v,$,D=0,x=!1,I=!1,ee=!0;if(typeof e!="function")throw new TypeError(wc);i=sr(i)||0,fi(l)&&(x=!!l.leading,I="maxWait"in l,u=I?Nc(sr(l.maxWait)||0,i):u,ee="trailing"in l?!!l.trailing:ee);function K(W){var pe=r,he=c;return r=c=void 0,D=W,d=e.apply(he,pe),d}function re(W){return D=W,v=setTimeout(q,i),x?K(W):d}function Ee(W){var pe=W-$,he=W-D,st=i-pe;return I?Tc(st,u-he):st}function le(W){var pe=W-$,he=W-D;return $===void 0||pe>=i||pe<0||I&&he>=u}function q(){var W=no();if(le(W))return Y(W);v=setTimeout(q,Ee(W))}function Y(W){return v=void 0,ee&&r?K(W):(r=c=void 0,d)}function Q(){v!==void 0&&clearTimeout(v),D=0,r=$=c=v=void 0}function ot(){return v===void 0?d:Y(no())}function Ae(){var W=no(),pe=le(W);if(r=arguments,c=this,$=W,pe){if(v===void 0)return re($);if(I)return clearTimeout(v),v=setTimeout(q,i),K($)}return v===void 0&&(v=setTimeout(q,i)),d}return Ae.cancel=Q,Ae.flush=ot,Ae}var Oc="Expected a function";function Ac(e,i,l){var r=!0,c=!0;if(typeof e!="function")throw new TypeError(Oc);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 kt=function(){return kt=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},kt.apply(this,arguments)};function hr(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function mr(e){return!e||!e.ownerDocument?document:e.ownerDocument}var gr=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,$){return $.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 vr(e,i){var l;e&&(l=e.classList).add.apply(l,i.split(" "))}function br(e,i){e&&i.split(" ").forEach(function(l){e.classList.remove(l)})}function yr(e){return".".concat(e.split(" ").join("."))}var ao=!!(typeof window<"u"&&window.document&&window.document.createElement),Dc=Object.freeze({__proto__:null,addClasses:vr,canUseDOM:ao,classNamesToQuery:yr,getElementDocument:mr,getElementWindow:hr,getOptions:gr,removeClasses:br}),Ct=null,rr=null;ao&&window.addEventListener("resize",function(){rr!==window.devicePixelRatio&&(rr=window.devicePixelRatio,Ct=null)});function lr(){if(Ct===null){if(typeof document>"u")return Ct=0,Ct;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),Ct=l}return Ct}var Fe=hr,io=mr,Bc=gr,je=vr,We=br,se=yr,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(){We(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(){We(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,$,D,x,I,ee,K,re,Ee;if(!(!r.draggedAxis||!r.contentWrapperEl)){var le,q=r.axis[r.draggedAxis].track,Y=(d=(u=q.rect)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].sizeAttr])!==null&&d!==void 0?d:0,Q=r.axis[r.draggedAxis].scrollbar,ot=($=(v=r.contentWrapperEl)===null||v===void 0?void 0:v[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&$!==void 0?$:0,Ae=parseInt((x=(D=r.elStyles)===null||D===void 0?void 0:D[r.axis[r.draggedAxis].sizeAttr])!==null&&x!==void 0?x:"0px",10);c.preventDefault(),c.stopPropagation(),r.draggedAxis==="y"?le=c.pageY:le=c.pageX;var W=le-((ee=(I=q.rect)===null||I===void 0?void 0:I[r.axis[r.draggedAxis].offsetAttr])!==null&&ee!==void 0?ee:0)-r.axis[r.draggedAxis].dragOffset;W=r.draggedAxis==="x"&&r.isRtl?((re=(K=q.rect)===null||K===void 0?void 0:K[r.axis[r.draggedAxis].sizeAttr])!==null&&re!==void 0?re:0)-Q.size-W:W;var pe=W/(Y-Q.size),he=pe*(ot-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(),We(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=kt(kt({},e.defaultOptions),l),this.classNames=kt(kt({},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=Ac(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:lr()}catch{return lr()}},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 $=this.contentEl.scrollHeight,D=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=c?"".concat(l||D,"px"):"auto",this.placeholderEl.style.height="".concat($,"px");var x=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=l!==0&&D>l,this.axis.y.isOverflowing=$>x,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 I=this.axis.x.isOverflowing?this.scrollbarWidth:0,ee=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&D>u-ee,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&$>x-I,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,$=parseInt(this.elStyles[this.axis[i].sizeAttr],10),D=this.contentWrapperEl[this.axis[i].scrollOffsetAttr];D=i==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-D:D,i==="x"&&this.isRtl&&(D=!((c=e.getRtlHelpers())===null||c===void 0)&&c.isScrollingToNegative?D:-D);var x=D/(d-$),I=~~((v-u.size)*x);I=i==="x"&&this.isRtl?-I+(v-u.size):I,u.el.style.transform=i==="x"?"translate3d(".concat(I,"px, 0, 0)"):"translate3d(0, ".concat(I,"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&&(We(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):We(l.scrollbar.el,this.classNames.hover)):(We(l.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)))},e.prototype.onMouseLeaveForAxis=function(i){i===void 0&&(i="y"),We(this.axis[i].track.el,this.classNames.hover),We(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 $=this.axis[l];if(!(!this.options.clickOnTrack||!$.scrollbar.el||!this.contentWrapperEl)){i.preventDefault();var D=Fe(this.el);this.axis[l].scrollbar.rect=$.scrollbar.el.getBoundingClientRect();var x=this.axis[l].scrollbar,I=(u=(c=x.rect)===null||c===void 0?void 0:c[this.axis[l].offsetAttr])!==null&&u!==void 0?u:0,ee=parseInt((v=(d=this.elStyles)===null||d===void 0?void 0:d[this.axis[l].sizeAttr])!==null&&v!==void 0?v:"0px",10),K=this.contentWrapperEl[this.axis[l].scrollOffsetAttr],re=l==="y"?this.mouseY-I:this.mouseX-I,Ee=re<0?-1:1,le=Ee===-1?K-ee:K+ee,q=40,Y=function(){r.contentWrapperEl&&(Ee===-1?K>le&&(K-=q,r.contentWrapperEl[r.axis[l].scrollOffsetAttr]=K,D.requestAnimationFrame(Y)):K<le&&(K+=q,r.contentWrapperEl[r.axis[l].scrollOffsetAttr]=K,D.requestAnimationFrame(Y)))};Y()}},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=Bc,e.helpers=Dc,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 Vc(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,Mc=(function(e){Vc(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($){return $.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&&Mc.initHtmlApi();const Lc=n.defineComponent({name:"ClUI",methods:{VITE_APP_VERSION:()=>"7.10.0"}}),k=(e,i)=>{const l=e.__vccOpts||e;for(const[r,c]of i)l[r]=c;return l};function Rc(e,i,l,r,c,u){return n.toDisplayString(e.VITE_APP_VERSION())}const Pc=k(Lc,[["render",Rc]]),zc=n.defineComponent({name:"ClAlert",props:{type:{type:String,default:"info"}}});function Fc(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 St=k(zc,[["render",Fc]]);St.install=e=>{e.component(St.name??"ClNoName",St)};function jc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var di={exports:{}};var Wc=di.exports,ar;function Uc(){return ar||(ar=1,(function(e,i){(function(l,r){e.exports=r()})(Wc,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))},$=s=>!(!s||typeof s!="object")&&(s.jquery!==void 0&&(s=s[0]),s.nodeType!==void 0),D=s=>$(s)?s.jquery?s[0]:s:typeof s=="string"&&s.length>0?document.querySelector(u(s)):null,x=s=>{if(!$(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},I=s=>!s||s.nodeType!==Node.ELEMENT_NODE||!!s.classList.contains("disabled")||(s.disabled!==void 0?s.disabled:s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false"),ee=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?ee(s.parentNode):null},K=()=>{},re=s=>{s.offsetHeight},Ee=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,le=[],q=()=>document.documentElement.dir==="rtl",Y=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()},Q=(s,t=[],o=s)=>typeof s=="function"?s.call(...t):o,ot=(s,t,o=!0)=>{if(!o)return void Q(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),Q(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))])},W=/[^.]*(?=\..*)\.|.*/,pe=/\..*/,he=/::\d+$/,st={};let go=1;const vo={mouseenter:"mouseover",mouseleave:"mouseout"},Lr=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 bo(s,t){return t&&`${t}::${go++}`||s.uidEvent||go++}function yo(s){const t=bo(s);return s.uidEvent=t,st[t]=st[t]||{},st[t]}function _o(s,t,o=null){return Object.values(s).find(a=>a.callable===t&&a.delegationSelector===o)}function Eo(s,t,o){const a=typeof t=="string",f=a?o:t||o;let p=ko(s);return Lr.has(p)||(p=s),[a,f,p]}function Co(s,t,o,a,f){if(typeof t!="string"||!s)return;let[p,h,m]=Eo(t,o,a);t in vo&&(h=(N=>function(w){if(!w.relatedTarget||w.relatedTarget!==w.delegateTarget&&!w.delegateTarget.contains(w.relatedTarget))return N.call(this,w)})(h));const b=yo(s),_=b[m]||(b[m]={}),E=_o(_,h,p?o:null);if(E)return void(E.oneOff=E.oneOff&&f);const y=bo(h,t.replace(W,"")),O=p?(function(S,N,w){return function T(P){const U=S.querySelectorAll(N);for(let{target:B}=P;B&&B!==this;B=B.parentNode)for(const M of U)if(M===B)return yi(P,{delegateTarget:B}),T.oneOff&&g.off(S,P.type,N,w),w.apply(B,[P])}})(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=_o(t[o],a,f);p&&(s.removeEventListener(o,p,!!f),delete t[o][p.uidEvent])}function Rr(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 ko(s){return s=s.replace(pe,""),vo[s]||s}const g={on(s,t,o,a){Co(s,t,o,a,!1)},one(s,t,o,a){Co(s,t,o,a,!0)},off(s,t,o,a){if(typeof t!="string"||!s)return;const[f,p,h]=Eo(t,o,a),m=h!==t,b=yo(s),_=b[h]||{},E=t.startsWith(".");if(p===void 0){if(E)for(const y of Object.keys(b))Rr(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!==ko(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 $o(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]=$o(s.dataset[a])}return t},getDataAttribute:(s,t)=>$o(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=$(o)?De.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof a=="object"?a:{},...$(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=$(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=D(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){ot(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(D(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=>!I(o)&&x(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(),I(this))return;const p=C.getElementFromSelector(this)||this.closest(`.${a}`);s.getOrCreateInstance(p)[t]()})},So=".bs.alert",Pr=`close${So}`,zr=`closed${So}`;class $n extends Ce{static get NAME(){return"alert"}close(){if(g.trigger(this._element,Pr).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,zr),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"),Y($n);const wo='[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",wo,s=>{s.preventDefault();const t=s.target.closest(wo);Sn.getOrCreateInstance(t).toggle()}),Y(Sn);const rt=".bs.swipe",Fr=`touchstart${rt}`,jr=`touchmove${rt}`,Wr=`touchend${rt}`,Ur=`pointerdown${rt}`,xr=`pointerup${rt}`,qr={endCallback:null,leftCallback:null,rightCallback:null},Hr={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 qr}static get DefaultType(){return Hr}static get NAME(){return"swipe"}dispose(){g.off(this._element,rt)}_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(),Q(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&&Q(o>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(g.on(this._element,Ur,t=>this._start(t)),g.on(this._element,xr,t=>this._end(t)),this._element.classList.add("pointer-event")):(g.on(this._element,Fr,t=>this._start(t)),g.on(this._element,jr,t=>this._move(t)),g.on(this._element,Wr,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 Le=".bs.carousel",No=".data-api",Gr="ArrowLeft",Kr="ArrowRight",wn="next",lt="prev",at="left",Wn="right",Yr=`slide${Le}`,Ci=`slid${Le}`,Xr=`keydown${Le}`,Qr=`mouseenter${Le}`,Jr=`mouseleave${Le}`,Zr=`dragstart${Le}`,el=`load${Le}${No}`,tl=`click${Le}${No}`,To="carousel",Un="active",Oo=".active",Ao=".carousel-item",nl=Oo+Ao,il={[Gr]:Wn,[Kr]:at},ol={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},sl={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ct 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===To&&this.cycle()}static get Default(){return ol}static get DefaultType(){return sl}static get NAME(){return"carousel"}next(){this._slide(wn)}nextWhenVisible(){!document.hidden&&x(this._element)&&this.next()}prev(){this._slide(lt)}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:lt;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,Xr,t=>this._keydown(t)),this._config.pause==="hover"&&(g.on(this._element,Qr,()=>this.pause()),g.on(this._element,Jr,()=>this._maybeEnableCycle())),this._config.touch&&jn.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of C.find(".carousel-item img",this._element))g.on(o,Zr,a=>a.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(at)),rightCallback:()=>this._slide(this._directionToOrder(Wn)),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=il[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(Oo,this._indicatorsElement);o.classList.remove(Un),o.removeAttribute("aria-current");const a=C.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);a&&(a.classList.add(Un),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(Yr).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(Un),a.classList.remove(Un,E,_),this._isSliding=!1,m(Ci)},a,this._isAnimated()),b&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return C.findOne(nl,this._element)}_getItems(){return C.find(Ao,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return q()?t===at?lt:wn:t===at?wn:lt}_orderToDirection(t){return q()?t===lt?at:Wn:t===lt?Wn:at}static jQueryInterface(t){return this.each(function(){const o=ct.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,tl,"[data-bs-slide], [data-bs-slide-to]",function(s){const t=C.getElementFromSelector(this);if(!t||!t.classList.contains(To))return;s.preventDefault();const o=ct.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,el,()=>{const s=C.find('[data-bs-ride="carousel"]');for(const t of s)ct.getOrCreateInstance(t)}),Y(ct);const Nn=".bs.collapse",rl=`show${Nn}`,ll=`shown${Nn}`,al=`hide${Nn}`,cl=`hidden${Nn}`,dl=`click${Nn}.data-api`,ki="show",dt="collapse",xn="collapsing",ul=`:scope .${dt} .${dt}`,$i='[data-bs-toggle="collapse"]',fl={parent:null,toggle:!0},pl={parent:"(null|element)",toggle:"boolean"};class ut 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 fl}static get DefaultType(){return pl}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=>ut.getOrCreateInstance(f,{toggle:!1}))),t.length&&t[0]._isTransitioning||g.trigger(this._element,rl).defaultPrevented)return;for(const f of t)f.hide();const o=this._getDimension();this._element.classList.remove(dt),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(dt,ki),this._element.style[o]="",g.trigger(this._element,ll)},this._element,!0),this._element.style[o]=`${this._element[a]}px`}hide(){if(this._isTransitioning||!this._isShown()||g.trigger(this._element,al).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(dt,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(dt),g.trigger(this._element,cl)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(ki)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=D(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(ul,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=ut.getOrCreateInstance(this,o);if(typeof t=="string"){if(a[t]===void 0)throw new TypeError(`No method named "${t}"`);a[t]()}})}}g.on(document,dl,$i,function(s){(s.target.tagName==="A"||s.delegateTarget&&s.delegateTarget.tagName==="A")&&s.preventDefault();for(const t of C.getMultipleElementsFromSelector(this))ut.getOrCreateInstance(t,{toggle:!1}).toggle()}),Y(ut);var te="top",ae="bottom",ce="right",ne="left",qn="auto",ft=[te,ae,ce,ne],qe="start",pt="end",Do="clippingParents",Si="viewport",ht="popper",Bo="reference",wi=ft.reduce(function(s,t){return s.concat([t+"-"+qe,t+"-"+pt])},[]),Ni=[].concat(ft,[qn]).reduce(function(s,t){return s.concat([t,t+"-"+qe,t+"-"+pt])},[]),Vo="beforeRead",Io="read",Mo="afterRead",Lo="beforeMain",Ro="main",Po="afterMain",zo="beforeWrite",Fo="write",jo="afterWrite",Wo=[Vo,Io,Mo,Lo,Ro,Po,zo,Fo,jo];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 He(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 Ge=Math.max,Hn=Math.min,mt=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 Uo(){return!/^((?!chrome|android).)*safari/i.test(Ai())}function gt(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&&mt(a.width)/s.offsetWidth||1,p=s.offsetHeight>0&&mt(a.height)/s.offsetHeight||1);var h=(He(s)?de(s):window).visualViewport,m=!Uo()&&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=gt(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 xo(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 hl(s){return["table","td","th"].indexOf(Se(s))>=0}function Re(s){return((He(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)||Re(s)}function qo(s){return me(s)&&Be(s).position!=="fixed"?s.offsetParent:null}function Tn(s){for(var t=de(s),o=qo(s);o&&hl(o)&&Be(o).position==="static";)o=qo(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 Ge(s,Hn(t,o))}function Ho(s){return Object.assign({},{top:0,right:0,bottom:0,left:0},s)}function Go(s,t){return t.reduce(function(o,a){return o[a]=s,o},{})}const Ko={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(z,R){return Ho(typeof(z=typeof z=="function"?z(Object.assign({},R.rects,{placement:R.placement})):z)!="number"?z:Go(z,ft))})(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),P=T?b==="y"?T.clientHeight||0:T.clientWidth||0:0,U=N/2-w/2,B=E[O],M=P-y[_]-E[S],A=P/2-y[_]/2+U,V=On(B,A,M),L=b;o.modifiersData[a]=((t={})[L]=V,t.centerOffset=V-A,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)))&&xo(t.elements.popper,a)&&(t.elements.arrow=a)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vt(s){return s.split("-")[1]}var ml={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yo(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 P=h.hasOwnProperty("x"),U=h.hasOwnProperty("y"),B=ne,M=te,A=window;if(_){var V=Tn(o),L="clientHeight",z="clientWidth";V===de(o)&&Be(V=Re(o)).position!=="static"&&m==="absolute"&&(L="scrollHeight",z="scrollWidth"),(f===te||(f===ne||f===ce)&&p===pt)&&(M=ae,w-=(y&&V===A&&A.visualViewport?A.visualViewport.height:V[L])-a.height,w*=b?1:-1),f!==ne&&(f!==te&&f!==ae||p!==pt)||(B=ce,S-=(y&&V===A&&A.visualViewport?A.visualViewport.width:V[z])-a.width,S*=b?1:-1)}var R,X=Object.assign({position:m},_&&ml),ue=E===!0?(function($e,ie){var ve=$e.x,be=$e.y,G=ie.devicePixelRatio||1;return{x:mt(ve*G)/G||0,y:mt(be*G)/G||0}})({x:S,y:w},de(o)):{x:S,y:w};return S=ue.x,w=ue.y,b?Object.assign({},X,((R={})[M]=U?"0":"",R[B]=P?"0":"",R.transform=(A.devicePixelRatio||1)<=1?"translate("+S+"px, "+w+"px)":"translate3d("+S+"px, "+w+"px, 0)",R)):Object.assign({},X,((t={})[M]=U?w+"px":"",t[B]=P?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:vt(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,Yo(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,Yo(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 Ii={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 gl={left:"right",right:"left",bottom:"top",top:"bottom"};function Yn(s){return s.replace(/left|right|bottom|top/g,function(t){return gl[t]})}var vl={start:"end",end:"start"};function Xo(s){return s.replace(/start|end/g,function(t){return vl[t]})}function Mi(s){var t=de(s);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Li(s){return gt(Re(s)).left+Mi(s).scrollLeft}function Ri(s){var t=Be(s),o=t.overflow,a=t.overflowX,f=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+f+a)}function Qo(s){return["html","body","#document"].indexOf(Se(s))>=0?s.ownerDocument.body:me(s)&&Ri(s)?s:Qo(Gn(s))}function An(s,t){var o;t===void 0&&(t=[]);var a=Qo(s),f=a===((o=s.ownerDocument)==null?void 0:o.body),p=de(a),h=f?[p].concat(p.visualViewport||[],Ri(a)?a:[]):a,m=t.concat(h);return f?m:m.concat(An(Gn(h)))}function Pi(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function Jo(s,t,o){return t===Si?Pi((function(a,f){var p=de(a),h=Re(a),m=p.visualViewport,b=h.clientWidth,_=h.clientHeight,E=0,y=0;if(m){b=m.width,_=m.height;var O=Uo();(O||!O&&f==="fixed")&&(E=m.offsetLeft,y=m.offsetTop)}return{width:b,height:_,x:E+Li(a),y}})(s,o)):He(t)?(function(a,f){var p=gt(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):Pi((function(a){var f,p=Re(a),h=Mi(a),m=(f=a.ownerDocument)==null?void 0:f.body,b=Ge(p.scrollWidth,p.clientWidth,m?m.scrollWidth:0,m?m.clientWidth:0),_=Ge(p.scrollHeight,p.clientHeight,m?m.scrollHeight:0,m?m.clientHeight:0),E=-h.scrollLeft+Li(a),y=-h.scrollTop;return Be(m||p).direction==="rtl"&&(E+=Ge(p.clientWidth,m?m.clientWidth:0)-b),{width:b,height:_,x:E,y}})(Re(s)))}function Zo(s){var t,o=s.reference,a=s.element,f=s.placement,p=f?we(f):null,h=f?vt(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 qe:t[_]=t[_]-(o[E]/2-a[E]/2);break;case pt:t[_]=t[_]+(o[E]/2-a[E]/2)}}return t}function bt(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?Do:m,_=o.rootBoundary,E=_===void 0?Si:_,y=o.elementContext,O=y===void 0?ht:y,S=o.altBoundary,N=S!==void 0&&S,w=o.padding,T=w===void 0?0:w,P=Ho(typeof T!="number"?T:Go(T,ft)),U=O===ht?Bo:ht,B=s.rects.popper,M=s.elements[N?U:O],A=(function(ie,ve,be,G){var Ne=ve==="clippingParents"?(function(F){var oe=An(Gn(F)),ye=["absolute","fixed"].indexOf(Be(F).position)>=0&&me(F)?Tn(F):F;return He(ye)?oe.filter(function(ze){return He(ze)&&xo(ze,ye)&&Se(ze)!=="body"}):[]})(ie):[].concat(ve),Te=[].concat(Ne,[be]),Et=Te[0],J=Te.reduce(function(F,oe){var ye=Jo(ie,oe,G);return F.top=Ge(ye.top,F.top),F.right=Hn(ye.right,F.right),F.bottom=Hn(ye.bottom,F.bottom),F.left=Ge(ye.left,F.left),F},Jo(ie,Et,G));return J.width=J.right-J.left,J.height=J.bottom-J.top,J.x=J.left,J.y=J.top,J})(He(M)?M:M.contextElement||Re(s.elements.popper),b,E,h),V=gt(s.elements.reference),L=Zo({reference:V,element:B,placement:f}),z=Pi(Object.assign({},B,L)),R=O===ht?z:V,X={top:A.top-R.top+P.top,bottom:R.bottom-A.bottom+P.bottom,left:A.left-R.left+P.left,right:R.right-A.right+P.right},ue=s.modifiersData.offset;if(O===ht&&ue){var $e=ue[f];Object.keys(X).forEach(function(ie){var ve=[ce,ae].indexOf(ie)>=0?1:-1,be=[te,ae].indexOf(ie)>=0?"y":"x";X[ie]+=$e[be]*ve})}return X}function bl(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=vt(a),y=E?m?wi:wi.filter(function(N){return vt(N)===E}):ft,O=y.filter(function(N){return _.indexOf(N)>=0});O.length===0&&(O=y);var S=O.reduce(function(N,w){return N[w]=bt(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 es={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,P=we(T),U=b||(P!==T&&N?(function(F){if(we(F)===qn)return[];var oe=Yn(F);return[Xo(F),oe,Xo(oe)]})(T):[Yn(T)]),B=[T].concat(U).reduce(function(F,oe){return F.concat(we(oe)===qn?bl(t,{placement:oe,boundary:E,rootBoundary:y,padding:_,flipVariations:N,allowedAutoPlacements:w}):oe)},[]),M=t.rects.reference,A=t.rects.popper,V=new Map,L=!0,z=B[0],R=0;R<B.length;R++){var X=B[R],ue=we(X),$e=vt(X)===qe,ie=[te,ae].indexOf(ue)>=0,ve=ie?"width":"height",be=bt(t,{placement:X,boundary:E,rootBoundary:y,altBoundary:O,padding:_}),G=ie?$e?ce:ne:$e?ae:te;M[ve]>A[ve]&&(G=Yn(G));var Ne=Yn(G),Te=[];if(p&&Te.push(be[ue]<=0),m&&Te.push(be[G]<=0,be[Ne]<=0),Te.every(function(F){return F})){z=X,L=!1;break}V.set(X,Te)}if(L)for(var Et=function(F){var oe=B.find(function(ye){var ze=V.get(ye);if(ze)return ze.slice(0,F).every(function(oi){return oi})});if(oe)return z=oe,"break"},J=N?3:1;J>0&&Et(J)!=="break";J--);t.placement!==z&&(t.modifiersData[a]._skip=!0,t.placement=z,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ts(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 ns(s){return[te,ce,ae,ne].some(function(t){return s[t]>=0})}const is={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=bt(t,{elementContext:"reference"}),m=bt(t,{altBoundary:!0}),b=ts(h,a),_=ts(m,f,p),E=ns(b),y=ns(_);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})}},os={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,P=typeof N=="function"?N(Object.assign({},S,{placement:O})):N,U=P[0],B=P[1];return U=U||0,B=(B||0)*T,[ne,ce].indexOf(w)>=0?{x:B,y:U}:{x:U,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]=Zo({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},ss={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=bt(t,{boundary:b,rootBoundary:_,padding:y,altBoundary:E}),P=we(t.placement),U=vt(t.placement),B=!U,M=Bi(P),A=M==="x"?"y":"x",V=t.modifiersData.popperOffsets,L=t.rects.reference,z=t.rects.popper,R=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,X=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=M==="y"?te:ne,be=M==="y"?ae:ce,G=M==="y"?"height":"width",Ne=V[M],Te=Ne+T[ve],Et=Ne-T[be],J=S?-z[G]/2:0,F=U===qe?L[G]:z[G],oe=U===qe?-z[G]:-L[G],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},qs=oi[ve],Hs=oi[be],si=On(0,L[G],ze[G]),Xa=B?L[G]/2-J-si-qs-X.mainAxis:F-si-qs-X.mainAxis,Qa=B?-L[G]/2+J+si+Hs+X.mainAxis:oe+si+Hs+X.mainAxis,Zi=t.elements.arrow&&Tn(t.elements.arrow),Ja=Zi?M==="y"?Zi.clientTop||0:Zi.clientLeft||0:0,Gs=(ie=ue?.[M])!=null?ie:0,Za=Ne+Qa-Gs,Ks=On(S?Hn(Te,Ne+Xa-Gs-Ja):Te,Ne,S?Ge(Et,Za):Et);V[M]=Ks,$e[M]=Ks-Ne}if(m){var Ys,ec=M==="x"?te:ne,tc=M==="x"?ae:ce,tt=V[A],ri=A==="y"?"height":"width",Xs=tt+T[ec],Qs=tt-T[tc],eo=[te,ne].indexOf(P)!==-1,Js=(Ys=ue?.[A])!=null?Ys:0,Zs=eo?Xs:tt-L[ri]-z[ri]-Js+X.altAxis,er=eo?tt+L[ri]+z[ri]-Js-X.altAxis:Qs,tr=S&&eo?(function(nc,ic,to){var nr=On(nc,ic,to);return nr>to?to:nr})(Zs,tt,er):On(S?Zs:Xs,tt,S?er:Qs);V[A]=tr,$e[A]=tr-tt}t.modifiersData[a]=$e}},requiresIfExists:["offset"]};function yl(s,t,o){o===void 0&&(o=!1);var a,f,p=me(t),h=me(t)&&(function(y){var O=y.getBoundingClientRect(),S=mt(O.width)/y.offsetWidth||1,N=mt(O.height)/y.offsetHeight||1;return S!==1||N!==1})(t),m=Re(t),b=gt(s,h,o),_={scrollLeft:0,scrollTop:0},E={x:0,y:0};return(p||!p&&!o)&&((Se(t)!=="body"||Ri(m))&&(_=(a=t)!==de(a)&&me(a)?{scrollLeft:(f=a).scrollLeft,scrollTop:f.scrollTop}:Mi(a)),me(t)?((E=gt(t,!0)).x+=t.clientLeft,E.y+=t.clientTop):m&&(E.x=Li(m))),{x:b.left+_.scrollLeft-E.x,y:b.top+_.scrollTop-E.y,width:b.width,height:b.height}}function _l(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 rs={placement:"bottom",modifiers:[],strategy:"absolute"};function ls(){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?rs:f;return function(h,m,b){b===void 0&&(b=p);var _,E,y={placement:"bottom",orderedModifiers:[],options:Object.assign({},rs,p),modifiersData:{},elements:{reference:h,popper:m},attributes:{},styles:{}},O=[],S=!1,N={state:y,setOptions:function(T){var P=typeof T=="function"?T(y.options):T;w(),y.options=Object.assign({},p,y.options,P),y.scrollParents={reference:He(h)?An(h):h.contextElement?An(h.contextElement):[],popper:An(m)};var U,B,M=(function(A){var V=_l(A);return Wo.reduce(function(L,z){return L.concat(V.filter(function(R){return R.phase===z}))},[])})((U=[].concat(a,y.options.modifiers),B=U.reduce(function(A,V){var L=A[V.name];return A[V.name]=L?Object.assign({},L,V,{options:Object.assign({},L.options,V.options),data:Object.assign({},L.data,V.data)}):V,A},{}),Object.keys(B).map(function(A){return B[A]})));return y.orderedModifiers=M.filter(function(A){return A.enabled}),y.orderedModifiers.forEach(function(A){var V=A.name,L=A.options,z=L===void 0?{}:L,R=A.effect;if(typeof R=="function"){var X=R({state:y,name:V,instance:N,options:z});O.push(X||function(){})}}),N.update()},forceUpdate:function(){if(!S){var T=y.elements,P=T.reference,U=T.popper;if(ls(P,U)){y.rects={reference:yl(P,Tn(U),y.options.strategy==="fixed"),popper:Di(U)},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 M=y.orderedModifiers[B],A=M.fn,V=M.options,L=V===void 0?{}:V,z=M.name;typeof A=="function"&&(y=A({state:y,options:L,name:z,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(!ls(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 El=Xn(),Cl=Xn({defaultModifiers:[Ii,zi,Vi,Oi]}),Fi=Xn({defaultModifiers:[Ii,zi,Vi,Oi,os,es,ss,Ko,is]});const as=Object.freeze(Object.defineProperty({__proto__:null,afterMain:Po,afterRead:Mo,afterWrite:jo,applyStyles:Oi,arrow:Ko,auto:qn,basePlacements:ft,beforeMain:Lo,beforeRead:Vo,beforeWrite:zo,bottom:ae,clippingParents:Do,computeStyles:Vi,createPopper:Fi,createPopperBase:El,createPopperLite:Cl,detectOverflow:bt,end:pt,eventListeners:Ii,flip:es,hide:is,left:ne,main:Ro,modifierPhases:Wo,offset:os,placements:Ni,popper:ht,popperGenerator:Xn,popperOffsets:zi,preventOverflow:ss,read:Io,reference:Bo,right:ce,start:qe,top:te,variationPlacements:wi,viewport:Si,write:Fo},Symbol.toStringTag,{value:"Module"})),cs="dropdown",Ke=".bs.dropdown",ji=".data-api",kl="ArrowUp",ds="ArrowDown",$l=`hide${Ke}`,Sl=`hidden${Ke}`,wl=`show${Ke}`,Nl=`shown${Ke}`,us=`click${Ke}${ji}`,fs=`keydown${Ke}${ji}`,Tl=`keyup${Ke}${ji}`,yt="show",Ye='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ol=`${Ye}.${yt}`,Qn=".dropdown-menu",Al=q()?"top-end":"top-start",Dl=q()?"top-start":"top-end",Bl=q()?"bottom-end":"bottom-start",Vl=q()?"bottom-start":"bottom-end",Il=q()?"left-start":"right-start",Ml=q()?"right-start":"left-start",Ll={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Rl={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 Ll}static get DefaultType(){return Rl}static get NAME(){return cs}toggle(){return this._isShown()?this.hide():this.show()}show(){if(I(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!g.trigger(this._element,wl,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",K);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(yt),this._element.classList.add(yt),g.trigger(this._element,Nl,t)}}hide(){if(I(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,$l,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))g.off(o,"mouseover",K);this._popper&&this._popper.destroy(),this._menu.classList.remove(yt),this._element.classList.remove(yt),this._element.setAttribute("aria-expanded","false"),De.removeDataAttribute(this._menu,"popper"),g.trigger(this._element,Sl,t)}}_getConfig(t){if(typeof(t=super._getConfig(t)).reference=="object"&&!$(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${cs.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(as===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:$(this._config.reference)?t=D(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(yt)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Il;if(t.classList.contains("dropstart"))return Ml;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?Dl:Al:o?Vl:Bl}_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,...Q(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=>x(f));a.length&&Ae(a,o,t===ds,!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(Ol);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=[kl,ds].includes(t.key);if(!f&&!a||o&&!a)return;t.preventDefault();const p=this.matches(Ye)?this:C.prev(this,Ye)[0]||C.next(this,Ye)[0]||C.findOne(Ye,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,fs,Ye,ke.dataApiKeydownHandler),g.on(document,fs,Qn,ke.dataApiKeydownHandler),g.on(document,us,ke.clearMenus),g.on(document,Tl,ke.clearMenus),g.on(document,us,Ye,function(s){s.preventDefault(),ke.getOrCreateInstance(this).toggle()}),Y(ke);const ps="backdrop",hs="show",ms=`mousedown.bs.${ps}`,Pl={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},zl={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class gs extends kn{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Pl}static get DefaultType(){return zl}static get NAME(){return ps}show(t){if(!this._config.isVisible)return void Q(t);this._append();const o=this._getElement();this._config.isAnimated&&re(o),o.classList.add(hs),this._emulateAnimation(()=>{Q(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(hs),this._emulateAnimation(()=>{this.dispose(),Q(t)})):Q(t)}dispose(){this._isAppended&&(g.off(this._element,ms),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=D(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),g.on(t,ms,()=>{Q(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){ot(t,this._getElement(),this._config.isAnimated)}}const Jn=".bs.focustrap",Fl=`focusin${Jn}`,jl=`keydown.tab${Jn}`,vs="backward",Wl={autofocus:!0,trapElement:null},Ul={autofocus:"boolean",trapElement:"element"};class bs extends kn{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Wl}static get DefaultType(){return Ul}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),g.off(document,Jn),g.on(document,Fl,t=>this._handleFocusin(t)),g.on(document,jl,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===vs?a[a.length-1].focus():a[0].focus()}_handleKeydown(t){t.key==="Tab"&&(this._lastTabNavDirection=t.shiftKey?vs:"forward")}}const ys=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",_s=".sticky-top",Zn="padding-right",Es="margin-right";class Wi{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(ys,Zn,o=>o+t),this._setElementAttributes(_s,Es,o=>o-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Zn),this._resetElementAttributes(ys,Zn),this._resetElementAttributes(_s,Es)}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($(t))o(t);else for(const a of C.find(t,this._element))o(a)}}const ge=".bs.modal",xl=`hide${ge}`,ql=`hidePrevented${ge}`,Cs=`hidden${ge}`,ks=`show${ge}`,Hl=`shown${ge}`,Gl=`resize${ge}`,Kl=`click.dismiss${ge}`,Yl=`mousedown.dismiss${ge}`,Xl=`keydown.dismiss${ge}`,Ql=`click${ge}.data-api`,$s="modal-open",Ss="show",Ui="modal-static",Jl={backdrop:!0,focus:!0,keyboard:!0},Zl={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Xe 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 Wi,this._addEventListeners()}static get Default(){return Jl}static get DefaultType(){return Zl}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,ks,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add($s),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){this._isShown&&!this._isTransitioning&&(g.trigger(this._element,xl).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ss),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 gs({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new bs({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(Ss),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,g.trigger(this._element,Hl,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){g.on(this._element,Xl,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),g.on(window,Gl,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),g.on(this._element,Yl,t=>{g.one(this._element,Kl,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($s),this._resetAdjustments(),this._scrollBar.reset(),g.trigger(this._element,Cs)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(g.trigger(this._element,ql).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,o=this._element.style.overflowY;o==="hidden"||this._element.classList.contains(Ui)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Ui),this._queueCallback(()=>{this._element.classList.remove(Ui),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=q()?"paddingLeft":"paddingRight";this._element.style[f]=`${o}px`}if(!a&&t){const f=q()?"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=Xe.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,Ql,'[data-bs-toggle="modal"]',function(s){const t=C.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&s.preventDefault(),g.one(t,ks,a=>{a.defaultPrevented||g.one(t,Cs,()=>{x(this)&&this.focus()})});const o=C.findOne(".modal.show");o&&Xe.getInstance(o).hide(),Xe.getOrCreateInstance(t).toggle(this)}),Fn(Xe),Y(Xe);const Ve=".bs.offcanvas",ws=".data-api",ea=`load${Ve}${ws}`,Ns="show",Ts="showing",Os="hiding",As=".offcanvas.show",ta=`show${Ve}`,na=`shown${Ve}`,ia=`hide${Ve}`,Ds=`hidePrevented${Ve}`,Bs=`hidden${Ve}`,oa=`resize${Ve}`,sa=`click${Ve}${ws}`,ra=`keydown.dismiss${Ve}`,la={backdrop:!0,keyboard:!0,scroll:!1},aa={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ie 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 la}static get DefaultType(){return aa}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||g.trigger(this._element,ta,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new Wi().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ts),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Ns),this._element.classList.remove(Ts),g.trigger(this._element,na,{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(g.trigger(this._element,ia).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Os),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Ns,Os),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Wi().reset(),g.trigger(this._element,Bs)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=!!this._config.backdrop;return new gs({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{this._config.backdrop!=="static"?this.hide():g.trigger(this._element,Ds)}:null})}_initializeFocusTrap(){return new bs({trapElement:this._element})}_addEventListeners(){g.on(this._element,ra,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():g.trigger(this._element,Ds))})}static jQueryInterface(t){return this.each(function(){const o=Ie.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,sa,'[data-bs-toggle="offcanvas"]',function(s){const t=C.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),I(this))return;g.one(t,Bs,()=>{x(this)&&this.focus()});const o=C.findOne(As);o&&o!==t&&Ie.getInstance(o).hide(),Ie.getOrCreateInstance(t).toggle(this)}),g.on(window,ea,()=>{for(const s of C.find(As))Ie.getOrCreateInstance(s).show()}),g.on(window,oa,()=>{for(const s of C.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(s).position!=="fixed"&&Ie.getOrCreateInstance(s).hide()}),Fn(Ie),Y(Ie);const Vs={"*":["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:[]},ca=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),da=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,ua=(s,t)=>{const o=s.nodeName.toLowerCase();return t.includes(o)?!ca.has(o)||!!da.test(s.nodeValue):t.filter(a=>a instanceof RegExp).some(a=>a.test(o))},fa={allowList:Vs,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},pa={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ha={entry:"(string|element|function|null)",selector:"(string|element)"};class ma extends kn{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return fa}static get DefaultType(){return pa}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},ha)}_setContent(t,o,a){const f=C.findOne(a,t);f&&((o=this._resolvePossibleFunction(o))?$(o)?this._putElementInTemplate(D(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 _)ua(y,E)||m.removeAttribute(y.nodeName)}return p.body.innerHTML})(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Q(t,[void 0,this])}_putElementInTemplate(t,o){if(this._config.html)return o.innerHTML="",void o.append(t);o.textContent=t.textContent}}const ga=new Set(["sanitize","allowList","sanitizeFn"]),xi="fade",ei="show",va=".tooltip-inner",Is=".modal",Ms="hide.bs.modal",Dn="hover",qi="focus",Hi="click",ba={AUTO:"auto",TOP:"top",RIGHT:q()?"left":"right",BOTTOM:"bottom",LEFT:q()?"right":"left"},ya={allowList:Vs,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"},_a={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 Qe extends Ce{constructor(t,o){if(as===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 ya}static get DefaultType(){return _a}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(Is),Ms,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=(ee(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",K);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",K);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 ma({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[va]: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=Q(this._config.placement,[this,t,this._element]),a=ba[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 Q(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,...Q(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(Is),Ms,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))ga.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:D(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=Qe.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t]()}})}}Y(Qe);const Ea=".popover-header",Ca=".popover-body",ka={...Qe.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"},$a={...Qe.DefaultType,content:"(null|string|element|function)"};class ti extends Qe{static get Default(){return ka}static get DefaultType(){return $a}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Ea]:this._getTitle(),[Ca]: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]()}})}}Y(ti);const Gi=".bs.scrollspy",Sa=`activate${Gi}`,Ls=`click${Gi}`,wa=`load${Gi}.data-api`,_t="active",Ki="[href]",Rs=".nav-link",Na=`${Rs}, .nav-item > ${Rs}, .list-group-item`,Ta={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Oa={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 Ta}static get DefaultType(){return Oa}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=D(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,Ls),g.on(this._config.target,Ls,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||I(o))continue;const a=C.findOne(decodeURI(o.hash),this._element);x(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(_t),this._activateParents(t),g.trigger(this._element,Sa,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))C.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(_t);else for(const o of C.parents(t,".nav, .list-group"))for(const a of C.prev(o,Na))a.classList.add(_t)}_clearActiveClass(t){t.classList.remove(_t);const o=C.find(`${Ki}.${_t}`,t);for(const a of o)a.classList.remove(_t)}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,wa,()=>{for(const s of C.find('[data-bs-spy="scroll"]'))Bn.getOrCreateInstance(s)}),Y(Bn);const Je=".bs.tab",Aa=`hide${Je}`,Da=`hidden${Je}`,Ba=`show${Je}`,Va=`shown${Je}`,Ia=`click${Je}`,Ma=`keydown${Je}`,La=`load${Je}`,Ra="ArrowLeft",Ps="ArrowRight",Pa="ArrowUp",zs="ArrowDown",Yi="Home",Fs="End",Ze="active",js="fade",Xi="show",Ws=".dropdown-toggle",Qi=`:not(${Ws})`,Us='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Ji=`.nav-link${Qi}, .list-group-item${Qi}, [role="tab"]${Qi}, ${Us}`,za=`.${Ze}[data-bs-toggle="tab"], .${Ze}[data-bs-toggle="pill"], .${Ze}[data-bs-toggle="list"]`;class et 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,Ma,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,Aa,{relatedTarget:t}):null;g.trigger(t,Ba,{relatedTarget:o}).defaultPrevented||a&&a.defaultPrevented||(this._deactivate(o,t),this._activate(t,o))}_activate(t,o){t&&(t.classList.add(Ze),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,Va,{relatedTarget:o})):t.classList.add(Xi)},t,t.classList.contains(js)))}_deactivate(t,o){t&&(t.classList.remove(Ze),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,Da,{relatedTarget:o})):t.classList.remove(Xi)},t,t.classList.contains(js)))}_keydown(t){if(![Ra,Ps,Pa,zs,Yi,Fs].includes(t.key))return;t.stopPropagation(),t.preventDefault();const o=this._getChildren().filter(f=>!I(f));let a;if([Yi,Fs].includes(t.key))a=o[t.key===Yi?0:o.length-1];else{const f=[Ps,zs].includes(t.key);a=Ae(o,t.target,f,!0)}a&&(a.focus({preventScroll:!0}),et.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,Ze),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(Ze)}_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=et.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,Us,function(s){["A","AREA"].includes(this.tagName)&&s.preventDefault(),I(this)||et.getOrCreateInstance(this).show()}),g.on(window,La,()=>{for(const s of C.find(za))et.getOrCreateInstance(s)}),Y(et);const Pe=".bs.toast",Fa=`mouseover${Pe}`,ja=`mouseout${Pe}`,Wa=`focusin${Pe}`,Ua=`focusout${Pe}`,xa=`hide${Pe}`,qa=`hidden${Pe}`,Ha=`show${Pe}`,Ga=`shown${Pe}`,xs="hide",ni="show",ii="showing",Ka={animation:"boolean",autohide:"boolean",delay:"number"},Ya={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 Ya}static get DefaultType(){return Ka}static get NAME(){return"toast"}show(){g.trigger(this._element,Ha).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(xs),re(this._element),this._element.classList.add(ni,ii),this._queueCallback(()=>{this._element.classList.remove(ii),g.trigger(this._element,Ga),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(g.trigger(this._element,xa).defaultPrevented||(this._element.classList.add(ii),this._queueCallback(()=>{this._element.classList.add(xs),this._element.classList.remove(ii,ni),g.trigger(this._element,qa)},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,Fa,t=>this._onInteraction(t,!0)),g.on(this._element,ja,t=>this._onInteraction(t,!1)),g.on(this._element,Wa,t=>this._onInteraction(t,!0)),g.on(this._element,Ua,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),Y(Vn),{Alert:$n,Button:Sn,Carousel:ct,Collapse:ut,Dropdown:ke,Modal:Xe,Offcanvas:Ie,Popover:ti,ScrollSpy:Bn,Tab:et,Toast:Vn,Tooltip:Qe}})})(di)),di.exports}var xc=Uc();const uo=jc(xc);function _r(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 qc(e){return Oe?e?Oe.id===e&&Oe._isShown:Oe._isShown:!1}function Er(e,i=0,l=25){return e?.slice(i*l,i*l+l)??[]}function Hc(e="#invalid"){document.querySelector(e)?.focus()}function Cr(e,i=[]){for(const r of i)r.valid=!0;document.querySelector(`#${e} [autofocus]`)?.focus()}function kr(e,i){e&&(e.modelValue=i,e.valid=!0)}function $r(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 Sr(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 Gc(e){document.querySelector(`#${e} [autofocus]`)?.focus()}function po(e){document.querySelector(`#${e} :invalid, #${e} .invalid`)?.focus()}function Kc(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 wr(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 Nr(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 Yc(e,i=!1){return`${wr(e)} ${Nr(e,i)}`}function Xc(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 $=(""+c).padStart(2,"0");return r?`${$}:${v}:${d}.${u}`:l?`${$}:${v}:${d}`:`${$}:${v}`}function Qc(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 Jc(e,i,l=2){switch(i){case"EUR":i="€";break;case"USD":i="$";break}return`${i} ${hi(e/10**l,l)}`}function Zc(e,i){return`${hi(e)} - ${hi(i)}`}function Tr(e){return`**** **** **** ${e.replace(/ /g,"").substr(-4)}`}function ed(e,i,l=e.ID_FORM){if(l){if($r(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 td(e,i,l=e.ID_FORM){return e.submitting?Promise.resolve():Sr(l).then(r=>{if(r)return e.submitting=!0,i().finally(()=>{e.submitting=!1})})}function $t(e,i){const l=i.split("."),r=l.shift(),c=e[r];return[void 0,null].includes(c)?c:l.length>0?$t(c,l.join(".")):c}function Or(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=$t(d,i)??"",v=$t(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=$t(d,i)??"",v=$t(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 Ar(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 nd(e,i,l=0,r=()=>0,c=()=>Number.MAX_SAFE_INTEGER){return Ar((u,d)=>({sorted:Er(Or(e,i[u],d),r(),c()),sortedOrder:d}),l)}function id(e,i=500,l="none"){clearTimeout(cr.get(l)),cr.set(l,setTimeout(e,i))}const cr=new Map;function od(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 sd(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 rd(e){navigator.clipboard.writeText(e)}function ld(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 ad(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 cd(e){return new Promise(i=>setTimeout(i,e))}function dd(e){return e}function ud(e){return e}function fd(e){return e}const pd=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)}}}),hd={key:0},md={key:1},gd=["disabled"];function vd(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]=$=>e.abort())},[e.dirty?(n.openBlock(),n.createElementBlock("span",hd,n.toDisplayString(e.cancel),1)):(n.openBlock(),n.createElementBlock("span",md,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]=$=>e.$emit("ok"))},[n.createElementVNode("span",null,n.toDisplayString(e.ok),1)],10,gd))],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]=$=>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]=$=>e.clModalHide())}," Continue editing ")]),_:3},8,["id"])]),_:3})}const wt=k(pd,[["render",vd]]);wt.install=e=>{e.component(wt.name??"ClNoName",wt)};const bd=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(){for(const e of document?.cookie?.split(/; */)??[]){const[i,l]=e.split("=");if(i===this.cookie&&["-mtm","+mtm"].includes(l)){this.visible=!1;break}}},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)}}}),yd=["id"],_d={class:"card-body"},Ed={class:"cl-spacing-box text-center"};function Cd(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",_d,[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",Ed,[n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-color-primary it-ok",onClick:i[0]||(i[0]=d=>e.accept())}," Accept "),n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-color-secondary it-cancel",onClick:i[1]||(i[1]=d=>e.decline())}," Decline ")])])],10,yd)):n.createCommentVNode("",!0)}const Nt=k(bd,[["render",Cd]]);Nt.install=e=>{e.component(Nt.name??"ClNoName",Nt)};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)})}},kd=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()}}}),$d={key:0,ref:"content",class:"cl-copy"},Sd={ref:"content"};function wd(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",$d,[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",Sd,[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 Tt=k(kd,[["render",wd]]);Tt.install=e=>{e.component(Tt.name??"ClNoName",Tt)};const Nd=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:Tr}}),Td=["id"];function Od(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,Td),n.createTextVNode(", "+n.toDisplayString(e.validText)+" ",1),n.createElementVNode("code",null,n.toDisplayString(e.expires),1)],64)}const Ot=k(Nd,[["render",Od]]);Ot.install=e=>{e.component(Ot.name??"ClNoName",Ot)};function dr(e){e.preventDefault()}const Ad=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,dr)})},unmounted(){["dragenter","dragover","dragleave","drop"].forEach(e=>{document.body.removeEventListener(e,dr)})},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}}}),Dd=["id"],Bd=["id","accept"];function Vd(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,Dd)):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,Bd),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"},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"},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 At=k(Ad,[["render",Vd]]);At.install=e=>{e.component(At.name??"ClNoName",At)};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(){this.$nextTick(()=>{this.$refs.input?.focus()})},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)}}}),Md=["for"],Ld={key:0,class:"required"},Rd=["id","autofocus","disabled","maxlength","minlength","placeholder","required"],Pd=["id","autofocus","disabled","required"],zd=["id","autofocus","disabled","min","max","maxlength","minlength","pattern","placeholder","required","type"],Fd=["id","for"],jd={class:"invalid-feedback"},Wd={key:0,class:"valid-feedback"},Ud={key:1,class:"valid-feedback valid-feedback-none"};function xd(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",Ld,"*")):n.createCommentVNode("",!0)],8,Md)):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,Rd)),[[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,Pd)),[[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,zd)),[[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,Fd)):n.createCommentVNode("",!0),e.nofeedback?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:5},[n.createElementVNode("p",jd,n.toDisplayString(e.invalidMessage),1),e.help?(n.openBlock(),n.createElementBlock("p",Wd,n.toDisplayString(e.help),1)):(n.openBlock(),n.createElementBlock("p",Ud))],64))],64)}const Dt=k(Id,[["render",xd]]);Dt.install=e=>{e.component(Dt.name??"ClNoName",Dt)};const qd=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(){this.$nextTick(()=>{this.$refs.input.focus()})}}}),Hd=["id","disabled","indeterminate","autofocus"],Gd=["for"];function Kd(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,Hd),[[n.vModelCheckbox,e.modelValue]]),n.createElementVNode("label",{class:"form-check-label",for:e.id??e.$uid},[n.renderSlot(e.$slots,"default")],8,Gd)],2)}const Bt=k(qd,[["render",Kd]]);Bt.install=e=>{e.component(Bt.name??"ClNoName",Bt)};const Yd=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."}}}),Xd={key:0,class:"form-label"},Qd={key:0,class:"required"},Jd=["id"],Zd={class:"invalid-feedback"},eu={key:1,class:"valid-feedback"};function tu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.label?(n.openBlock(),n.createElementBlock("label",Xd,[n.createTextVNode(n.toDisplayString(e.label),1),e.required?(n.openBlock(),n.createElementBlock("span",Qd,"*")):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,Jd),n.createElementVNode("p",Zd,n.toDisplayString(e.invalidMessage),1),e.help?(n.openBlock(),n.createElementBlock("p",eu,n.toDisplayString(e.help),1)):n.createCommentVNode("",!0)],64)}const Vt=k(Yd,[["render",tu]]);Vt.install=e=>{e.component(Vt.name??"ClNoName",Vt)};const nu=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}`:"")}}}),iu={key:0,class:"cl-badge-derived"},ou=["id"],su=["id"];function ru(e,i,l,r,c,u){return e.derived?(n.openBlock(),n.createElementBlock("span",iu,[n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,ou)])):(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,su))}const It=k(nu,[["render",ru]]);It.install=e=>{e.component(It.name??"ClNoName",It)};const lu=n.defineComponent({name:"ClIconotron",props:{src:{type:String,default:void 0}}}),au={class:"container cl-container-iconotron"},cu={class:"row"},du={class:"col-12 col-md-3"},uu=["src"],fu={class:"col-12 col-md-9"};function pu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",au,[n.createElementVNode("div",cu,[n.createElementVNode("div",du,[n.createElementVNode("img",{src:e.src,alt:""},null,8,uu)]),n.createElementVNode("div",fu,[n.renderSlot(e.$slots,"default")])])])}const Mt=k(lu,[["render",pu]]);Mt.install=e=>{e.component(Mt.name??"ClNoName",Mt)};const hu=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 mu(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)},null,2)),[[d,e.info,"bottom"]]):e.left?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"left"]]):e.right?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"right"]]):n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:3,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"top"]])}const Lt=k(hu,[["render",mu]]);Lt.install=e=>{e.component(Lt.name??"ClNoName",Lt)};const gu=n.defineComponent({name:"ClLinkExternal",props:{noicon:{type:Boolean,default:!1}}});function vu(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 Rt=k(gu,[["render",vu]]);Rt.install=e=>{e.component(Rt.name??"ClNoName",Rt)};const bu=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");function ui(e){var i=typeof e;return e!=null&&(i=="object"||i=="function")}var oc=typeof global=="object"&&global&&global.Object===Object&&global,sc=typeof self=="object"&&self&&self.Object===Object&&self,fr=oc||sc||Function("return this")(),to=function(){return fr.Date.now()},rc=/\s/;function lc(e){for(var i=e.length;i--&&rc.test(e.charAt(i)););return i}var ac=/^\s+/;function cc(e){return e&&e.slice(0,lc(e)+1).replace(ac,"")}var fi=fr.Symbol,pr=Object.prototype,dc=pr.hasOwnProperty,uc=pr.toString,Vn=fi?fi.toStringTag:void 0;function fc(e){var i=dc.call(e,Vn),l=e[Vn];try{e[Vn]=void 0;var r=!0}catch{}var c=uc.call(e);return r&&(i?e[Vn]=l:delete e[Vn]),c}var pc=Object.prototype,hc=pc.toString;function mc(e){return hc.call(e)}var gc="[object Null]",vc="[object Undefined]",ir=fi?fi.toStringTag:void 0;function bc(e){return e==null?e===void 0?vc:gc:ir&&ir in Object(e)?fc(e):mc(e)}function yc(e){return e!=null&&typeof e=="object"}var _c="[object Symbol]";function Ec(e){return typeof e=="symbol"||yc(e)&&bc(e)==_c}var or=NaN,Cc=/^[-+]0x[0-9a-f]+$/i,kc=/^0b[01]+$/i,$c=/^0o[0-7]+$/i,Sc=parseInt;function sr(e){if(typeof e=="number")return e;if(Ec(e))return or;if(ui(e)){var i=typeof e.valueOf=="function"?e.valueOf():e;e=ui(i)?i+"":i}if(typeof e!="string")return e===0?e:+e;e=cc(e);var l=kc.test(e);return l||$c.test(e)?Sc(e.slice(2),l?2:8):Cc.test(e)?or:+e}var wc="Expected a function",Nc=Math.max,Tc=Math.min;function li(e,i,l){var r,c,u,d,v,$,D=0,q=!1,M=!1,ee=!0;if(typeof e!="function")throw new TypeError(wc);i=sr(i)||0,ui(l)&&(q=!!l.leading,M="maxWait"in l,u=M?Nc(sr(l.maxWait)||0,i):u,ee="trailing"in l?!!l.trailing:ee);function K(U){var pe=r,he=c;return r=c=void 0,D=U,d=e.apply(he,pe),d}function re(U){return D=U,v=setTimeout(H,i),q?K(U):d}function Ee(U){var pe=U-$,he=U-D,ot=i-pe;return M?Tc(ot,u-he):ot}function le(U){var pe=U-$,he=U-D;return $===void 0||pe>=i||pe<0||M&&he>=u}function H(){var U=to();if(le(U))return Y(U);v=setTimeout(H,Ee(U))}function Y(U){return v=void 0,ee&&r?K(U):(r=c=void 0,d)}function Q(){v!==void 0&&clearTimeout(v),D=0,r=$=c=v=void 0}function it(){return v===void 0?d:Y(to())}function Ae(){var U=to(),pe=le(U);if(r=arguments,c=this,$=U,pe){if(v===void 0)return re($);if(M)return clearTimeout(v),v=setTimeout(H,i),K($)}return v===void 0&&(v=setTimeout(H,i)),d}return Ae.cancel=Q,Ae.flush=it,Ae}var Oc="Expected a function";function Ac(e,i,l){var r=!0,c=!0;if(typeof e!="function")throw new TypeError(Oc);return ui(l)&&(r="leading"in l?!!l.leading:r,c="trailing"in l?!!l.trailing:c),li(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 hr(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function mr(e){return!e||!e.ownerDocument?document:e.ownerDocument}var gr=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,$){return $.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 vr(e,i){var l;e&&(l=e.classList).add.apply(l,i.split(" "))}function br(e,i){e&&i.split(" ").forEach(function(l){e.classList.remove(l)})}function yr(e){return".".concat(e.split(" ").join("."))}var lo=!!(typeof window<"u"&&window.document&&window.document.createElement),Dc=Object.freeze({__proto__:null,addClasses:vr,canUseDOM:lo,classNamesToQuery:yr,getElementDocument:mr,getElementWindow:hr,getOptions:gr,removeClasses:br}),Et=null,rr=null;lo&&window.addEventListener("resize",function(){rr!==window.devicePixelRatio&&(rr=window.devicePixelRatio,Et=null)});function lr(){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=hr,no=mr,Bc=gr,je=vr,We=br,se=yr,ai=(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(){We(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(){We(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,$,D,q,M,ee,K,re,Ee;if(!(!r.draggedAxis||!r.contentWrapperEl)){var le,H=r.axis[r.draggedAxis].track,Y=(d=(u=H.rect)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].sizeAttr])!==null&&d!==void 0?d:0,Q=r.axis[r.draggedAxis].scrollbar,it=($=(v=r.contentWrapperEl)===null||v===void 0?void 0:v[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&$!==void 0?$:0,Ae=parseInt((q=(D=r.elStyles)===null||D===void 0?void 0:D[r.axis[r.draggedAxis].sizeAttr])!==null&&q!==void 0?q:"0px",10);c.preventDefault(),c.stopPropagation(),r.draggedAxis==="y"?le=c.pageY:le=c.pageX;var U=le-((ee=(M=H.rect)===null||M===void 0?void 0:M[r.axis[r.draggedAxis].offsetAttr])!==null&&ee!==void 0?ee:0)-r.axis[r.draggedAxis].dragOffset;U=r.draggedAxis==="x"&&r.isRtl?((re=(K=H.rect)===null||K===void 0?void 0:K[r.axis[r.draggedAxis].sizeAttr])!==null&&re!==void 0?re:0)-Q.size-U:U;var pe=U/(Y-Q.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=no(r.el),d=Fe(r.el);c.preventDefault(),c.stopPropagation(),We(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=Ac(this._onMouseMove,64),this.onWindowResize=li(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=li(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=li(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:lr()}catch{return lr()}},e.getOffset=function(i){var l=i.getBoundingClientRect(),r=no(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(){lo&&(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 $=this.contentEl.scrollHeight,D=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=c?"".concat(l||D,"px"):"auto",this.placeholderEl.style.height="".concat($,"px");var q=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=l!==0&&D>l,this.axis.y.isOverflowing=$>q,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,ee=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&D>u-ee,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&$>q-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,$=parseInt(this.elStyles[this.axis[i].sizeAttr],10),D=this.contentWrapperEl[this.axis[i].scrollOffsetAttr];D=i==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-D:D,i==="x"&&this.isRtl&&(D=!((c=e.getRtlHelpers())===null||c===void 0)&&c.isScrollingToNegative?D:-D);var q=D/(d-$),M=~~((v-u.size)*q);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&&(We(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):We(l.scrollbar.el,this.classNames.hover)):(We(l.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)))},e.prototype.onMouseLeaveForAxis=function(i){i===void 0&&(i="y"),We(this.axis[i].track.el,this.classNames.hover),We(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=no(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 $=this.axis[l];if(!(!this.options.clickOnTrack||!$.scrollbar.el||!this.contentWrapperEl)){i.preventDefault();var D=Fe(this.el);this.axis[l].scrollbar.rect=$.scrollbar.el.getBoundingClientRect();var q=this.axis[l].scrollbar,M=(u=(c=q.rect)===null||c===void 0?void 0:c[this.axis[l].offsetAttr])!==null&&u!==void 0?u:0,ee=parseInt((v=(d=this.elStyles)===null||d===void 0?void 0:d[this.axis[l].sizeAttr])!==null&&v!==void 0?v:"0px",10),K=this.contentWrapperEl[this.axis[l].scrollOffsetAttr],re=l==="y"?this.mouseY-M:this.mouseX-M,Ee=re<0?-1:1,le=Ee===-1?K-ee:K+ee,H=40,Y=function(){r.contentWrapperEl&&(Ee===-1?K>le&&(K-=H,r.contentWrapperEl[r.axis[l].scrollOffsetAttr]=K,D.requestAnimationFrame(Y)):K<le&&(K+=H,r.contentWrapperEl[r.axis[l].scrollOffsetAttr]=K,D.requestAnimationFrame(Y)))};Y()}},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=Bc,e.helpers=Dc,e})(),so=function(e,i){return so=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])},so(e,i)};function Vc(e,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");so(e,i);function l(){this.constructor=e}e.prototype=i===null?Object.create(i):(l.prototype=i.prototype,new l)}var ao=ai.helpers,io=ao.getOptions,_e=ao.addClasses,Mc=ao.canUseDOM,Lc=(function(e){Vc(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,io(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($){return $.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)}ai.prototype.initDOM.call(this),this.el.setAttribute("data-simplebar","init")},i.prototype.unMount=function(){ai.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,io(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,io(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})(ai);Mc&&Lc.initHtmlApi();const Ic=n.defineComponent({name:"ClUI",methods:{VITE_APP_VERSION:()=>"7.12.0"}}),k=(e,i)=>{const l=e.__vccOpts||e;for(const[r,c]of i)l[r]=c;return l};function Pc(e,i,l,r,c,u){return n.toDisplayString(e.VITE_APP_VERSION())}const Rc=k(Ic,[["render",Pc]]),zc=n.defineComponent({name:"ClAlert",props:{type:{type:String,default:"info"}}});function Fc(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=k(zc,[["render",Fc]]);$t.install=e=>{e.component($t.name??"ClNoName",$t)};function jc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ci={exports:{}};var Wc=ci.exports,ar;function Uc(){return ar||(ar=1,(function(e,i){(function(l,r){e.exports=r()})(Wc,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))},$=s=>!(!s||typeof s!="object")&&(s.jquery!==void 0&&(s=s[0]),s.nodeType!==void 0),D=s=>$(s)?s.jquery?s[0]:s:typeof s=="string"&&s.length>0?document.querySelector(u(s)):null,q=s=>{if(!$(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"),ee=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?ee(s.parentNode):null},K=()=>{},re=s=>{s.offsetHeight},Ee=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,le=[],H=()=>document.documentElement.dir==="rtl",Y=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()},Q=(s,t=[],o=s)=>typeof s=="function"?s.call(...t):o,it=(s,t,o=!0)=>{if(!o)return void Q(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),Q(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))])},U=/[^.]*(?=\..*)\.|.*/,pe=/\..*/,he=/::\d+$/,ot={};let go=1;const vo={mouseenter:"mouseover",mouseleave:"mouseout"},Ir=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 bo(s,t){return t&&`${t}::${go++}`||s.uidEvent||go++}function yo(s){const t=bo(s);return s.uidEvent=t,ot[t]=ot[t]||{},ot[t]}function _o(s,t,o=null){return Object.values(s).find(a=>a.callable===t&&a.delegationSelector===o)}function Eo(s,t,o){const a=typeof t=="string",f=a?o:t||o;let p=ko(s);return Ir.has(p)||(p=s),[a,f,p]}function Co(s,t,o,a,f){if(typeof t!="string"||!s)return;let[p,h,m]=Eo(t,o,a);t in vo&&(h=(N=>function(w){if(!w.relatedTarget||w.relatedTarget!==w.delegateTarget&&!w.delegateTarget.contains(w.relatedTarget))return N.call(this,w)})(h));const b=yo(s),_=b[m]||(b[m]={}),E=_o(_,h,p?o:null);if(E)return void(E.oneOff=E.oneOff&&f);const y=bo(h,t.replace(U,"")),O=p?(function(S,N,w){return function T(z){const x=S.querySelectorAll(N);for(let{target:B}=z;B&&B!==this;B=B.parentNode)for(const L of x)if(L===B)return bi(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 bi(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 vi(s,t,o,a,f){const p=_o(t[o],a,f);p&&(s.removeEventListener(o,p,!!f),delete t[o][p.uidEvent])}function Pr(s,t,o,a){const f=t[o]||{};for(const[p,h]of Object.entries(f))p.includes(a)&&vi(s,t,o,h.callable,h.delegationSelector)}function ko(s){return s=s.replace(pe,""),vo[s]||s}const g={on(s,t,o,a){Co(s,t,o,a,!1)},one(s,t,o,a){Co(s,t,o,a,!0)},off(s,t,o,a){if(typeof t!="string"||!s)return;const[f,p,h]=Eo(t,o,a),m=h!==t,b=yo(s),_=b[h]||{},E=t.startsWith(".");if(p===void 0){if(E)for(const y of Object.keys(b))Pr(s,b,y,t.slice(1));for(const[y,O]of Object.entries(_)){const S=y.replace(he,"");m&&!t.includes(S)||vi(s,b,h,O.callable,O.delegationSelector)}}else{if(!Object.keys(_).length)return;vi(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!==ko(t)&&a&&(f=a.Event(t,o),a(s).trigger(f),p=!f.isPropagationStopped(),h=!f.isImmediatePropagationStopped(),m=f.isDefaultPrevented());const b=bi(new Event(t,{bubbles:p,cancelable:!0}),o);return m&&b.preventDefault(),h&&s.dispatchEvent(b),b.defaultPrevented&&f&&f.preventDefault(),b}};function bi(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 $o(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 yi(s){return s.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const De={setDataAttribute(s,t,o){s.setAttribute(`data-bs-${yi(t)}`,o)},removeDataAttribute(s,t){s.removeAttribute(`data-bs-${yi(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]=$o(s.dataset[a])}return t},getDataAttribute:(s,t)=>$o(s.getAttribute(`data-bs-${yi(t)}`))};class Cn{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=$(o)?De.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof a=="object"?a:{},...$(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=$(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 Cn{constructor(t,o){super(),(t=D(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(D(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 _i=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)&&q(o))},getSelectorFromElement(s){const t=_i(s);return t&&C.findOne(t)?t:null},getElementFromSelector(s){const t=_i(s);return t?C.findOne(t):null},getMultipleElementsFromSelector(s){const t=_i(s);return t?C.find(t):[]}},zn=(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]()})},So=".bs.alert",Rr=`close${So}`,zr=`closed${So}`;class kn extends Ce{static get NAME(){return"alert"}close(){if(g.trigger(this._element,Rr).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,zr),this.dispose()}static jQueryInterface(t){return this.each(function(){const o=kn.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)}})}}zn(kn,"close"),Y(kn);const wo='[data-bs-toggle="button"]';class $n 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=$n.getOrCreateInstance(this);t==="toggle"&&o[t]()})}}g.on(document,"click.bs.button.data-api",wo,s=>{s.preventDefault();const t=s.target.closest(wo);$n.getOrCreateInstance(t).toggle()}),Y($n);const st=".bs.swipe",Fr=`touchstart${st}`,jr=`touchmove${st}`,Wr=`touchend${st}`,Ur=`pointerdown${st}`,xr=`pointerup${st}`,qr={endCallback:null,leftCallback:null,rightCallback:null},Hr={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Fn extends Cn{constructor(t,o){super(),this._element=t,t&&Fn.isSupported()&&(this._config=this._getConfig(o),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return qr}static get DefaultType(){return Hr}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(),Q(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&&Q(o>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(g.on(this._element,Ur,t=>this._start(t)),g.on(this._element,xr,t=>this._end(t)),this._element.classList.add("pointer-event")):(g.on(this._element,Fr,t=>this._start(t)),g.on(this._element,jr,t=>this._move(t)),g.on(this._element,Wr,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",No=".data-api",Gr="ArrowLeft",Kr="ArrowRight",Sn="next",rt="prev",lt="left",jn="right",Yr=`slide${Ie}`,Ei=`slid${Ie}`,Xr=`keydown${Ie}`,Qr=`mouseenter${Ie}`,Jr=`mouseleave${Ie}`,Zr=`dragstart${Ie}`,el=`load${Ie}${No}`,tl=`click${Ie}${No}`,To="carousel",Wn="active",Oo=".active",Ao=".carousel-item",nl=Oo+Ao,il={[Gr]:jn,[Kr]:lt},ol={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},sl={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===To&&this.cycle()}static get Default(){return ol}static get DefaultType(){return sl}static get NAME(){return"carousel"}next(){this._slide(Sn)}nextWhenVisible(){!document.hidden&&q(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,Ei,()=>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,Ei,()=>this.to(t));const a=this._getItemIndex(this._getActive());if(a===t)return;const f=t>a?Sn: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,Xr,t=>this._keydown(t)),this._config.pause==="hover"&&(g.on(this._element,Qr,()=>this.pause()),g.on(this._element,Jr,()=>this._maybeEnableCycle())),this._config.touch&&Fn.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of C.find(".carousel-item img",this._element))g.on(o,Zr,a=>a.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(lt)),rightCallback:()=>this._slide(this._directionToOrder(jn)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new Fn(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const o=il[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(Oo,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===Sn,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(Yr).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(Ei)},a,this._isAnimated()),b&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return C.findOne(nl,this._element)}_getItems(){return C.find(Ao,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return H()?t===lt?rt:Sn:t===lt?Sn:rt}_orderToDirection(t){return H()?t===rt?lt:jn:t===rt?jn: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,tl,"[data-bs-slide], [data-bs-slide-to]",function(s){const t=C.getElementFromSelector(this);if(!t||!t.classList.contains(To))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,el,()=>{const s=C.find('[data-bs-ride="carousel"]');for(const t of s)at.getOrCreateInstance(t)}),Y(at);const wn=".bs.collapse",rl=`show${wn}`,ll=`shown${wn}`,al=`hide${wn}`,cl=`hidden${wn}`,dl=`click${wn}.data-api`,Ci="show",ct="collapse",Un="collapsing",ul=`:scope .${ct} .${ct}`,ki='[data-bs-toggle="collapse"]',fl={parent:null,toggle:!0},pl={parent:"(null|element)",toggle:"boolean"};class dt extends Ce{constructor(t,o){super(t,o),this._isTransitioning=!1,this._triggerArray=[];const a=C.find(ki);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 fl}static get DefaultType(){return pl}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,rl).defaultPrevented)return;for(const f of t)f.hide();const o=this._getDimension();this._element.classList.remove(ct),this._element.classList.add(Un),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(Un),this._element.classList.add(ct,Ci),this._element.style[o]="",g.trigger(this._element,ll)},this._element,!0),this._element.style[o]=`${this._element[a]}px`}hide(){if(this._isTransitioning||!this._isShown()||g.trigger(this._element,al).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,re(this._element),this._element.classList.add(Un),this._element.classList.remove(ct,Ci);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(Un),this._element.classList.add(ct),g.trigger(this._element,cl)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(Ci)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=D(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(ki);for(const o of t){const a=C.getElementFromSelector(o);a&&this._addAriaAndCollapsedClass([o],this._isShown(a))}}_getFirstLevelChildren(t){const o=C.find(ul,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,dl,ki,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()}),Y(dt);var te="top",ae="bottom",ce="right",ne="left",xn="auto",ut=[te,ae,ce,ne],xe="start",ft="end",Do="clippingParents",$i="viewport",pt="popper",Bo="reference",Si=ut.reduce(function(s,t){return s.concat([t+"-"+xe,t+"-"+ft])},[]),wi=[].concat(ut,[xn]).reduce(function(s,t){return s.concat([t,t+"-"+xe,t+"-"+ft])},[]),Vo="beforeRead",Mo="read",Lo="afterRead",Io="beforeMain",Po="main",Ro="afterMain",zo="beforeWrite",Fo="write",jo="afterWrite",Wo=[Vo,Mo,Lo,Io,Po,Ro,zo,Fo,jo];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 Ni(s){return typeof ShadowRoot<"u"&&(s instanceof de(s).ShadowRoot||s instanceof ShadowRoot)}const Ti={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,qn=Math.min,ht=Math.round;function Oi(){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 Uo(){return!/^((?!chrome|android).)*safari/i.test(Oi())}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=!Uo()&&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 Ai(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 xo(s,t){var o=t.getRootNode&&t.getRootNode();if(s.contains(t))return!0;if(o&&Ni(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 hl(s){return["table","td","th"].indexOf(Se(s))>=0}function Pe(s){return((qe(s)?s.ownerDocument:s.document)||window.document).documentElement}function Hn(s){return Se(s)==="html"?s:s.assignedSlot||s.parentNode||(Ni(s)?s.host:null)||Pe(s)}function qo(s){return me(s)&&Be(s).position!=="fixed"?s.offsetParent:null}function Nn(s){for(var t=de(s),o=qo(s);o&&hl(o)&&Be(o).position==="static";)o=qo(o);return o&&(Se(o)==="html"||Se(o)==="body"&&Be(o).position==="static")?t:o||(function(a){var f=/firefox/i.test(Oi());if(/Trident/i.test(Oi())&&me(a)&&Be(a).position==="fixed")return null;var p=Hn(a);for(Ni(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 Di(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function Tn(s,t,o){return He(s,qn(t,o))}function Ho(s){return Object.assign({},{top:0,right:0,bottom:0,left:0},s)}function Go(s,t){return t.reduce(function(o,a){return o[a]=s,o},{})}const Ko={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=Di(m),_=[ne,ce].indexOf(m)>=0?"height":"width";if(p&&h){var E=(function(F,R){return Ho(typeof(F=typeof F=="function"?F(Object.assign({},R.rects,{placement:R.placement})):F)!="number"?F:Go(F,ut))})(f.padding,o),y=Ai(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=Nn(p),z=T?b==="y"?T.clientHeight||0:T.clientWidth||0:0,x=N/2-w/2,B=E[O],L=z-y[_]-E[S],A=z/2-y[_]/2+x,V=Tn(B,A,L),P=b;o.modifiersData[a]=((t={})[P]=V,t.centerOffset=V-A,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)))&&xo(t.elements.popper,a)&&(t.elements.arrow=a)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gt(s){return s.split("-")[1]}var ml={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yo(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"),x=h.hasOwnProperty("y"),B=ne,L=te,A=window;if(_){var V=Nn(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===A&&A.visualViewport?A.visualViewport.height:V[P])-a.height,w*=b?1:-1),f!==ne&&(f!==te&&f!==ae||p!==ft)||(B=ce,S-=(y&&V===A&&A.visualViewport?A.visualViewport.width:V[F])-a.width,S*=b?1:-1)}var R,X=Object.assign({position:m},_&&ml),ue=E===!0?(function($e,ie){var ve=$e.x,be=$e.y,G=ie.devicePixelRatio||1;return{x:ht(ve*G)/G||0,y:ht(be*G)/G||0}})({x:S,y:w},de(o)):{x:S,y:w};return S=ue.x,w=ue.y,b?Object.assign({},X,((R={})[L]=x?"0":"",R[B]=z?"0":"",R.transform=(A.devicePixelRatio||1)<=1?"translate("+S+"px, "+w+"px)":"translate3d("+S+"px, "+w+"px, 0)",R)):Object.assign({},X,((t={})[L]=x?w+"px":"",t[B]=z?S+"px":"",t.transform="",t))}const Bi={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,Yo(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,Yo(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 Gn={passive:!0};const Vi={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,Gn)}),m&&b.addEventListener("resize",o.update,Gn),function(){p&&_.forEach(function(E){E.removeEventListener("scroll",o.update,Gn)}),m&&b.removeEventListener("resize",o.update,Gn)}},data:{}};var gl={left:"right",right:"left",bottom:"top",top:"bottom"};function Kn(s){return s.replace(/left|right|bottom|top/g,function(t){return gl[t]})}var vl={start:"end",end:"start"};function Xo(s){return s.replace(/start|end/g,function(t){return vl[t]})}function Mi(s){var t=de(s);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Li(s){return mt(Pe(s)).left+Mi(s).scrollLeft}function Ii(s){var t=Be(s),o=t.overflow,a=t.overflowX,f=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+f+a)}function Qo(s){return["html","body","#document"].indexOf(Se(s))>=0?s.ownerDocument.body:me(s)&&Ii(s)?s:Qo(Hn(s))}function On(s,t){var o;t===void 0&&(t=[]);var a=Qo(s),f=a===((o=s.ownerDocument)==null?void 0:o.body),p=de(a),h=f?[p].concat(p.visualViewport||[],Ii(a)?a:[]):a,m=t.concat(h);return f?m:m.concat(On(Hn(h)))}function Pi(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function Jo(s,t,o){return t===$i?Pi((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=Uo();(O||!O&&f==="fixed")&&(E=m.offsetLeft,y=m.offsetTop)}return{width:b,height:_,x:E+Li(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):Pi((function(a){var f,p=Pe(a),h=Mi(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+Li(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 Zo(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?Di(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?Do:m,_=o.rootBoundary,E=_===void 0?$i:_,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=Ho(typeof T!="number"?T:Go(T,ut)),x=O===pt?Bo:pt,B=s.rects.popper,L=s.elements[N?x:O],A=(function(ie,ve,be,G){var Ne=ve==="clippingParents"?(function(j){var oe=On(Hn(j)),ye=["absolute","fixed"].indexOf(Be(j).position)>=0&&me(j)?Nn(j):j;return qe(ye)?oe.filter(function(ze){return qe(ze)&&xo(ze,ye)&&Se(ze)!=="body"}):[]})(ie):[].concat(ve),Te=[].concat(Ne,[be]),_t=Te[0],J=Te.reduce(function(j,oe){var ye=Jo(ie,oe,G);return j.top=He(ye.top,j.top),j.right=qn(ye.right,j.right),j.bottom=qn(ye.bottom,j.bottom),j.left=He(ye.left,j.left),j},Jo(ie,_t,G));return J.width=J.right-J.left,J.height=J.bottom-J.top,J.x=J.left,J.y=J.top,J})(qe(L)?L:L.contextElement||Pe(s.elements.popper),b,E,h),V=mt(s.elements.reference),P=Zo({reference:V,element:B,placement:f}),F=Pi(Object.assign({},B,P)),R=O===pt?F:V,X={top:A.top-R.top+z.top,bottom:R.bottom-A.bottom+z.bottom,left:A.left-R.left+z.left,right:R.right-A.right+z.right},ue=s.modifiersData.offset;if(O===pt&&ue){var $e=ue[f];Object.keys(X).forEach(function(ie){var ve=[ce,ae].indexOf(ie)>=0?1:-1,be=[te,ae].indexOf(ie)>=0?"y":"x";X[ie]+=$e[be]*ve})}return X}function bl(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?wi:b,E=gt(a),y=E?m?Si:Si.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 es={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),x=b||(z!==T&&N?(function(j){if(we(j)===xn)return[];var oe=Kn(j);return[Xo(j),oe,Xo(oe)]})(T):[Kn(T)]),B=[T].concat(x).reduce(function(j,oe){return j.concat(we(oe)===xn?bl(t,{placement:oe,boundary:E,rootBoundary:y,padding:_,flipVariations:N,allowedAutoPlacements:w}):oe)},[]),L=t.rects.reference,A=t.rects.popper,V=new Map,P=!0,F=B[0],R=0;R<B.length;R++){var X=B[R],ue=we(X),$e=gt(X)===xe,ie=[te,ae].indexOf(ue)>=0,ve=ie?"width":"height",be=vt(t,{placement:X,boundary:E,rootBoundary:y,altBoundary:O,padding:_}),G=ie?$e?ce:ne:$e?ae:te;L[ve]>A[ve]&&(G=Kn(G));var Ne=Kn(G),Te=[];if(p&&Te.push(be[ue]<=0),m&&Te.push(be[G]<=0,be[Ne]<=0),Te.every(function(j){return j})){F=X,P=!1;break}V.set(X,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(ii){return ii})});if(oe)return F=oe,"break"},J=N?3:1;J>0&&_t(J)!=="break";J--);t.placement!==F&&(t.modifiersData[a]._skip=!0,t.placement=F,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ts(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 ns(s){return[te,ce,ae,ne].some(function(t){return s[t]>=0})}const is={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=ts(h,a),_=ts(m,f,p),E=ns(b),y=ns(_);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})}},os={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=wi.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,x=z[0],B=z[1];return x=x||0,B=(B||0)*T,[ne,ce].indexOf(w)>=0?{x:B,y:x}:{x,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}},Ri={name:"popperOffsets",enabled:!0,phase:"read",fn:function(s){var t=s.state,o=s.name;t.modifiersData[o]=Zo({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},ss={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),x=gt(t.placement),B=!x,L=Di(z),A=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,X=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,G=L==="y"?"height":"width",Ne=V[L],Te=Ne+T[ve],_t=Ne-T[be],J=S?-F[G]/2:0,j=x===xe?P[G]:F[G],oe=x===xe?-F[G]:-P[G],ye=t.elements.arrow,ze=S&&ye?Ai(ye):{width:0,height:0},ii=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},qs=ii[ve],Hs=ii[be],oi=Tn(0,P[G],ze[G]),Xa=B?P[G]/2-J-oi-qs-X.mainAxis:j-oi-qs-X.mainAxis,Qa=B?-P[G]/2+J+oi+Hs+X.mainAxis:oe+oi+Hs+X.mainAxis,Ji=t.elements.arrow&&Nn(t.elements.arrow),Ja=Ji?L==="y"?Ji.clientTop||0:Ji.clientLeft||0:0,Gs=(ie=ue?.[L])!=null?ie:0,Za=Ne+Qa-Gs,Ks=Tn(S?qn(Te,Ne+Xa-Gs-Ja):Te,Ne,S?He(_t,Za):_t);V[L]=Ks,$e[L]=Ks-Ne}if(m){var Ys,ec=L==="x"?te:ne,tc=L==="x"?ae:ce,et=V[A],si=A==="y"?"height":"width",Xs=et+T[ec],Qs=et-T[tc],Zi=[te,ne].indexOf(z)!==-1,Js=(Ys=ue?.[A])!=null?Ys:0,Zs=Zi?Xs:et-P[si]-F[si]-Js+X.altAxis,er=Zi?et+P[si]+F[si]-Js-X.altAxis:Qs,tr=S&&Zi?(function(nc,ic,eo){var nr=Tn(nc,ic,eo);return nr>eo?eo:nr})(Zs,et,er):Tn(S?Zs:Xs,et,S?er:Qs);V[A]=tr,$e[A]=tr-et}t.modifiersData[a]=$e}},requiresIfExists:["offset"]};function yl(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"||Ii(m))&&(_=(a=t)!==de(a)&&me(a)?{scrollLeft:(f=a).scrollLeft,scrollTop:f.scrollTop}:Mi(a)),me(t)?((E=mt(t,!0)).x+=t.clientLeft,E.y+=t.clientTop):m&&(E.x=Li(m))),{x:b.left+_.scrollLeft-E.x,y:b.top+_.scrollTop-E.y,width:b.width,height:b.height}}function _l(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 rs={placement:"bottom",modifiers:[],strategy:"absolute"};function ls(){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 Yn(s){s===void 0&&(s={});var t=s,o=t.defaultModifiers,a=o===void 0?[]:o,f=t.defaultOptions,p=f===void 0?rs:f;return function(h,m,b){b===void 0&&(b=p);var _,E,y={placement:"bottom",orderedModifiers:[],options:Object.assign({},rs,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)?On(h):h.contextElement?On(h.contextElement):[],popper:On(m)};var x,B,L=(function(A){var V=_l(A);return Wo.reduce(function(P,F){return P.concat(V.filter(function(R){return R.phase===F}))},[])})((x=[].concat(a,y.options.modifiers),B=x.reduce(function(A,V){var P=A[V.name];return A[V.name]=P?Object.assign({},P,V,{options:Object.assign({},P.options,V.options),data:Object.assign({},P.data,V.data)}):V,A},{}),Object.keys(B).map(function(A){return B[A]})));return y.orderedModifiers=L.filter(function(A){return A.enabled}),y.orderedModifiers.forEach(function(A){var V=A.name,P=A.options,F=P===void 0?{}:P,R=A.effect;if(typeof R=="function"){var X=R({state:y,name:V,instance:N,options:F});O.push(X||function(){})}}),N.update()},forceUpdate:function(){if(!S){var T=y.elements,z=T.reference,x=T.popper;if(ls(z,x)){y.rects={reference:yl(z,Nn(x),y.options.strategy==="fixed"),popper:Ai(x)},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],A=L.fn,V=L.options,P=V===void 0?{}:V,F=L.name;typeof A=="function"&&(y=A({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(!ls(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 El=Yn(),Cl=Yn({defaultModifiers:[Vi,Ri,Bi,Ti]}),zi=Yn({defaultModifiers:[Vi,Ri,Bi,Ti,os,es,ss,Ko,is]});const as=Object.freeze(Object.defineProperty({__proto__:null,afterMain:Ro,afterRead:Lo,afterWrite:jo,applyStyles:Ti,arrow:Ko,auto:xn,basePlacements:ut,beforeMain:Io,beforeRead:Vo,beforeWrite:zo,bottom:ae,clippingParents:Do,computeStyles:Bi,createPopper:zi,createPopperBase:El,createPopperLite:Cl,detectOverflow:vt,end:ft,eventListeners:Vi,flip:es,hide:is,left:ne,main:Po,modifierPhases:Wo,offset:os,placements:wi,popper:pt,popperGenerator:Yn,popperOffsets:Ri,preventOverflow:ss,read:Mo,reference:Bo,right:ce,start:xe,top:te,variationPlacements:Si,viewport:$i,write:Fo},Symbol.toStringTag,{value:"Module"})),cs="dropdown",Ge=".bs.dropdown",Fi=".data-api",kl="ArrowUp",ds="ArrowDown",$l=`hide${Ge}`,Sl=`hidden${Ge}`,wl=`show${Ge}`,Nl=`shown${Ge}`,us=`click${Ge}${Fi}`,fs=`keydown${Ge}${Fi}`,Tl=`keyup${Ge}${Fi}`,bt="show",Ke='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ol=`${Ke}.${bt}`,Xn=".dropdown-menu",Al=H()?"top-end":"top-start",Dl=H()?"top-start":"top-end",Bl=H()?"bottom-end":"bottom-start",Vl=H()?"bottom-start":"bottom-end",Ml=H()?"left-start":"right-start",Ll=H()?"right-start":"left-start",Il={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Pl={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,Xn)[0]||C.prev(this._element,Xn)[0]||C.findOne(Xn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Il}static get DefaultType(){return Pl}static get NAME(){return cs}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,wl,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",K);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(bt),this._element.classList.add(bt),g.trigger(this._element,Nl,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,$l,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))g.off(o,"mouseover",K);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,Sl,t)}}_getConfig(t){if(typeof(t=super._getConfig(t)).reference=="object"&&!$(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${cs.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(as===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:$(this._config.reference)?t=D(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const o=this._getPopperConfig();this._popper=zi(t,this._menu,o)}_isShown(){return this._menu.classList.contains(bt)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Ml;if(t.classList.contains("dropstart"))return Ll;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?Dl:Al:o?Vl:Bl}_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,...Q(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=>q(f));a.length&&Ae(a,o,t===ds,!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(Ol);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=[kl,ds].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,fs,Ke,ke.dataApiKeydownHandler),g.on(document,fs,Xn,ke.dataApiKeydownHandler),g.on(document,us,ke.clearMenus),g.on(document,Tl,ke.clearMenus),g.on(document,us,Ke,function(s){s.preventDefault(),ke.getOrCreateInstance(this).toggle()}),Y(ke);const ps="backdrop",hs="show",ms=`mousedown.bs.${ps}`,Rl={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},zl={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class gs extends Cn{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Rl}static get DefaultType(){return zl}static get NAME(){return ps}show(t){if(!this._config.isVisible)return void Q(t);this._append();const o=this._getElement();this._config.isAnimated&&re(o),o.classList.add(hs),this._emulateAnimation(()=>{Q(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(hs),this._emulateAnimation(()=>{this.dispose(),Q(t)})):Q(t)}dispose(){this._isAppended&&(g.off(this._element,ms),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=D(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),g.on(t,ms,()=>{Q(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){it(t,this._getElement(),this._config.isAnimated)}}const Qn=".bs.focustrap",Fl=`focusin${Qn}`,jl=`keydown.tab${Qn}`,vs="backward",Wl={autofocus:!0,trapElement:null},Ul={autofocus:"boolean",trapElement:"element"};class bs extends Cn{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Wl}static get DefaultType(){return Ul}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),g.off(document,Qn),g.on(document,Fl,t=>this._handleFocusin(t)),g.on(document,jl,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,g.off(document,Qn))}_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===vs?a[a.length-1].focus():a[0].focus()}_handleKeydown(t){t.key==="Tab"&&(this._lastTabNavDirection=t.shiftKey?vs:"forward")}}const ys=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",_s=".sticky-top",Jn="padding-right",Es="margin-right";class ji{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,Jn,o=>o+t),this._setElementAttributes(ys,Jn,o=>o+t),this._setElementAttributes(_s,Es,o=>o-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Jn),this._resetElementAttributes(ys,Jn),this._resetElementAttributes(_s,Es)}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($(t))o(t);else for(const a of C.find(t,this._element))o(a)}}const ge=".bs.modal",xl=`hide${ge}`,ql=`hidePrevented${ge}`,Cs=`hidden${ge}`,ks=`show${ge}`,Hl=`shown${ge}`,Gl=`resize${ge}`,Kl=`click.dismiss${ge}`,Yl=`mousedown.dismiss${ge}`,Xl=`keydown.dismiss${ge}`,Ql=`click${ge}.data-api`,$s="modal-open",Ss="show",Wi="modal-static",Jl={backdrop:!0,focus:!0,keyboard:!0},Zl={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 ji,this._addEventListeners()}static get Default(){return Jl}static get DefaultType(){return Zl}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,ks,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add($s),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){this._isShown&&!this._isTransitioning&&(g.trigger(this._element,xl).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ss),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 gs({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new bs({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(Ss),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,g.trigger(this._element,Hl,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){g.on(this._element,Xl,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),g.on(window,Gl,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),g.on(this._element,Yl,t=>{g.one(this._element,Kl,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($s),this._resetAdjustments(),this._scrollBar.reset(),g.trigger(this._element,Cs)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(g.trigger(this._element,ql).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,Ql,'[data-bs-toggle="modal"]',function(s){const t=C.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&s.preventDefault(),g.one(t,ks,a=>{a.defaultPrevented||g.one(t,Cs,()=>{q(this)&&this.focus()})});const o=C.findOne(".modal.show");o&&Ye.getInstance(o).hide(),Ye.getOrCreateInstance(t).toggle(this)}),zn(Ye),Y(Ye);const Ve=".bs.offcanvas",ws=".data-api",ea=`load${Ve}${ws}`,Ns="show",Ts="showing",Os="hiding",As=".offcanvas.show",ta=`show${Ve}`,na=`shown${Ve}`,ia=`hide${Ve}`,Ds=`hidePrevented${Ve}`,Bs=`hidden${Ve}`,oa=`resize${Ve}`,sa=`click${Ve}${ws}`,ra=`keydown.dismiss${Ve}`,la={backdrop:!0,keyboard:!0,scroll:!1},aa={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 la}static get DefaultType(){return aa}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||g.trigger(this._element,ta,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new ji().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ts),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Ns),this._element.classList.remove(Ts),g.trigger(this._element,na,{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(g.trigger(this._element,ia).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Os),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Ns,Os),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new ji().reset(),g.trigger(this._element,Bs)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=!!this._config.backdrop;return new gs({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{this._config.backdrop!=="static"?this.hide():g.trigger(this._element,Ds)}:null})}_initializeFocusTrap(){return new bs({trapElement:this._element})}_addEventListeners(){g.on(this._element,ra,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():g.trigger(this._element,Ds))})}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,sa,'[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,Bs,()=>{q(this)&&this.focus()});const o=C.findOne(As);o&&o!==t&&Me.getInstance(o).hide(),Me.getOrCreateInstance(t).toggle(this)}),g.on(window,ea,()=>{for(const s of C.find(As))Me.getOrCreateInstance(s).show()}),g.on(window,oa,()=>{for(const s of C.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(s).position!=="fixed"&&Me.getOrCreateInstance(s).hide()}),zn(Me),Y(Me);const Vs={"*":["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:[]},ca=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),da=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,ua=(s,t)=>{const o=s.nodeName.toLowerCase();return t.includes(o)?!ca.has(o)||!!da.test(s.nodeValue):t.filter(a=>a instanceof RegExp).some(a=>a.test(o))},fa={allowList:Vs,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},pa={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ha={entry:"(string|element|function|null)",selector:"(string|element)"};class ma extends Cn{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return fa}static get DefaultType(){return pa}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},ha)}_setContent(t,o,a){const f=C.findOne(a,t);f&&((o=this._resolvePossibleFunction(o))?$(o)?this._putElementInTemplate(D(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 _)ua(y,E)||m.removeAttribute(y.nodeName)}return p.body.innerHTML})(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Q(t,[void 0,this])}_putElementInTemplate(t,o){if(this._config.html)return o.innerHTML="",void o.append(t);o.textContent=t.textContent}}const ga=new Set(["sanitize","allowList","sanitizeFn"]),Ui="fade",Zn="show",va=".tooltip-inner",Ms=".modal",Ls="hide.bs.modal",An="hover",xi="focus",qi="click",ba={AUTO:"auto",TOP:"top",RIGHT:H()?"left":"right",BOTTOM:"bottom",LEFT:H()?"right":"left"},ya={allowList:Vs,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"},_a={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(as===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 ya}static get DefaultType(){return _a}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(Ms),Ls,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=(ee(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(Zn),"ontouchstart"in document.documentElement)for(const p of[].concat(...document.body.children))g.on(p,"mouseover",K);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(Zn),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))g.off(t,"mouseover",K);this._activeTrigger[qi]=!1,this._activeTrigger[xi]=!1,this._activeTrigger[An]=!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(Ui,Zn),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(Ui),o}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new ma({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[va]: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(Ui)}_isShown(){return this.tip&&this.tip.classList.contains(Zn)}_createPopper(t){const o=Q(this._config.placement,[this,t,this._element]),a=ba[o.toUpperCase()];return zi(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 Q(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,...Q(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[qi]=!(f._isShown()&&f._activeTrigger[qi]),f.toggle()});else if(o!=="manual"){const a=o===An?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),f=o===An?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"?xi:An]=!0,h._enter()}),g.on(this._element,f,this._config.selector,p=>{const h=this._initializeOnDelegatedTarget(p);h._activeTrigger[p.type==="focusout"?xi:An]=h._element.contains(p.relatedTarget),h._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},g.on(this._element.closest(Ms),Ls,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))ga.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:D(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]()}})}}Y(Xe);const Ea=".popover-header",Ca=".popover-body",ka={...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"},$a={...Xe.DefaultType,content:"(null|string|element|function)"};class ei extends Xe{static get Default(){return ka}static get DefaultType(){return $a}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Ea]:this._getTitle(),[Ca]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const o=ei.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t]()}})}}Y(ei);const Hi=".bs.scrollspy",Sa=`activate${Hi}`,Is=`click${Hi}`,wa=`load${Hi}.data-api`,yt="active",Gi="[href]",Ps=".nav-link",Na=`${Ps}, .nav-item > ${Ps}, .list-group-item`,Ta={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Oa={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Dn 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 Ta}static get DefaultType(){return Oa}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=D(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,Is),g.on(this._config.target,Is,Gi,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(Gi,this._config.target);for(const o of t){if(!o.hash||M(o))continue;const a=C.findOne(decodeURI(o.hash),this._element);q(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,Sa,{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,Na))a.classList.add(yt)}_clearActiveClass(t){t.classList.remove(yt);const o=C.find(`${Gi}.${yt}`,t);for(const a of o)a.classList.remove(yt)}static jQueryInterface(t){return this.each(function(){const o=Dn.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,wa,()=>{for(const s of C.find('[data-bs-spy="scroll"]'))Dn.getOrCreateInstance(s)}),Y(Dn);const Qe=".bs.tab",Aa=`hide${Qe}`,Da=`hidden${Qe}`,Ba=`show${Qe}`,Va=`shown${Qe}`,Ma=`click${Qe}`,La=`keydown${Qe}`,Ia=`load${Qe}`,Pa="ArrowLeft",Rs="ArrowRight",Ra="ArrowUp",zs="ArrowDown",Ki="Home",Fs="End",Je="active",js="fade",Yi="show",Ws=".dropdown-toggle",Xi=`:not(${Ws})`,Us='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Qi=`.nav-link${Xi}, .list-group-item${Xi}, [role="tab"]${Xi}, ${Us}`,za=`.${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,La,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,Aa,{relatedTarget:t}):null;g.trigger(t,Ba,{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,Va,{relatedTarget:o})):t.classList.add(Yi)},t,t.classList.contains(js)))}_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,Da,{relatedTarget:o})):t.classList.remove(Yi)},t,t.classList.contains(js)))}_keydown(t){if(![Pa,Rs,Ra,zs,Ki,Fs].includes(t.key))return;t.stopPropagation(),t.preventDefault();const o=this._getChildren().filter(f=>!M(f));let a;if([Ki,Fs].includes(t.key))a=o[t.key===Ki?0:o.length-1];else{const f=[Rs,zs].includes(t.key);a=Ae(o,t.target,f,!0)}a&&(a.focus({preventScroll:!0}),Ze.getOrCreateInstance(a).show())}_getChildren(){return C.find(Qi,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",Yi),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(Qi)?t:C.findOne(Qi,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,Ma,Us,function(s){["A","AREA"].includes(this.tagName)&&s.preventDefault(),M(this)||Ze.getOrCreateInstance(this).show()}),g.on(window,Ia,()=>{for(const s of C.find(za))Ze.getOrCreateInstance(s)}),Y(Ze);const Re=".bs.toast",Fa=`mouseover${Re}`,ja=`mouseout${Re}`,Wa=`focusin${Re}`,Ua=`focusout${Re}`,xa=`hide${Re}`,qa=`hidden${Re}`,Ha=`show${Re}`,Ga=`shown${Re}`,xs="hide",ti="show",ni="showing",Ka={animation:"boolean",autohide:"boolean",delay:"number"},Ya={animation:!0,autohide:!0,delay:5e3};class Bn extends Ce{constructor(t,o){super(t,o),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Ya}static get DefaultType(){return Ka}static get NAME(){return"toast"}show(){g.trigger(this._element,Ha).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(xs),re(this._element),this._element.classList.add(ti,ni),this._queueCallback(()=>{this._element.classList.remove(ni),g.trigger(this._element,Ga),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(g.trigger(this._element,xa).defaultPrevented||(this._element.classList.add(ni),this._queueCallback(()=>{this._element.classList.add(xs),this._element.classList.remove(ni,ti),g.trigger(this._element,qa)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ti),super.dispose()}isShown(){return this._element.classList.contains(ti)}_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,Fa,t=>this._onInteraction(t,!0)),g.on(this._element,ja,t=>this._onInteraction(t,!1)),g.on(this._element,Wa,t=>this._onInteraction(t,!0)),g.on(this._element,Ua,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const o=Bn.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t](this)}})}}return zn(Bn),Y(Bn),{Alert:kn,Button:$n,Carousel:at,Collapse:dt,Dropdown:ke,Modal:Ye,Offcanvas:Me,Popover:ei,ScrollSpy:Dn,Tab:Ze,Toast:Bn,Tooltip:Xe}})})(ci)),ci.exports}var xc=Uc();const co=jc(xc);function _r(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 yn(){Oe?.hide(),Oe=null}function uo(e,i){yn();const l=document.getElementById(e);if(l){Oe=new co.Modal(l,{backdrop:"static"}),Oe.value=i,Oe.id=e,Oe.show();const r=document.querySelector(`#${e} [autofocus]`);r&&r.focus()}}function di(e){return co.Modal.getInstance(document.getElementById(e))?.value}function qc(e){return Oe?e?Oe.id===e&&Oe._isShown:Oe._isShown:!1}function Er(e,i=0,l=25){return e?.slice(i*l,i*l+l)??[]}function Hc(e="#invalid"){document.querySelector(e)?.focus()}function Cr(e,i=[]){for(const r of i)r.valid=!0;document.querySelector(`#${e} [autofocus]`)?.focus()}function kr(e,i){e&&(e.modelValue=i,e.valid=!0)}function $r(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`)?(fo(e),!1):!0):(console.error("can’t find/validate form",e),!1)}async function Sr(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`)){fo(e),l(!1);return}l(!0)}))):(console.error("can’t find/validate form",e),Promise.resolve(!1))}function Gc(e){document.querySelector(`#${e} [autofocus]`)?.focus()}function fo(e){document.querySelector(`#${e} :invalid, #${e} .invalid`)?.focus()}function Kc(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 wr(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 Nr(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 Yc(e,i=!1){return`${wr(e)} ${Nr(e,i)}`}function Xc(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 $=(""+c).padStart(2,"0");return r?`${$}:${v}:${d}.${u}`:l?`${$}:${v}:${d}`:`${$}:${v}`}function Qc(e){const i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e);return`${new Intl.DateTimeFormat("en",{month:"short"}).format(e)} ${i}`}function pi(e,i=0){return e.toLocaleString("en",{minimumFractionDigits:i})}function Jc(e,i,l=2){switch(i){case"EUR":i="€";break;case"USD":i="$";break}return`${i} ${pi(e/10**l,l)}`}function Zc(e,i){return`${pi(e)} - ${pi(i)}`}function Tr(e){return`**** **** **** ${e.replace(/ /g,"").substr(-4)}`}function ed(e,i,l=e.ID_FORM){if(l){if($r(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 td(e,i,l=e.ID_FORM){return e.submitting?Promise.resolve():Sr(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 Or(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 Ar(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 nd(e,i,l=0,r=()=>0,c=()=>Number.MAX_SAFE_INTEGER){return Ar((u,d)=>({sorted:Er(Or(e,i[u],d),r(),c()),sortedOrder:d}),l)}function id(e,i=500,l="none"){clearTimeout(cr.get(l)),cr.set(l,setTimeout(e,i))}const cr=new Map;function od(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 sd(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 rd(e){navigator.clipboard.writeText(e)}function ld(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 ad(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 cd(e){return new Promise(i=>setTimeout(i,e))}const dd=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:yn,abort:function(){this.dirty?uo(this.ID_MODAL,{}):this.$emit("cancel")},emit:function(e){yn(),this.$emit(e)}}}),ud={key:0},fd={key:1},pd=["disabled"];function hd(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]=$=>e.abort())},[e.dirty?(n.openBlock(),n.createElementBlock("span",ud,n.toDisplayString(e.cancel),1)):(n.openBlock(),n.createElementBlock("span",fd,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]=$=>e.$emit("ok"))},[n.createElementVNode("span",null,n.toDisplayString(e.ok),1)],10,pd))],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]=$=>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]=$=>e.clModalHide())}," Continue editing ")]),_:3},8,["id"])]),_:3})}const St=k(dd,[["render",hd]]);St.install=e=>{e.component(St.name??"ClNoName",St)};const md=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)}}}),gd=["id"],vd={class:"card-body"},bd={class:"cl-spacing-box text-center"};function yd(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",vd,[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",bd,[n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-color-red it-ok",onClick:i[0]||(i[0]=d=>e.accept())}," Accept "),n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-color-secondary it-cancel",onClick:i[1]||(i[1]=d=>e.decline())}," Decline ")])])],10,gd)):n.createCommentVNode("",!0)}const wt=k(md,[["render",yd]]);wt.install=e=>{e.component(wt.name??"ClNoName",wt)};const En={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 co.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}}},po={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 _d(e){return e}function Ed(e){return e}function Cd(e){return e}function ho(e){n.nextTick(()=>{e?.focus()})}const kd=n.defineComponent({name:"ClCopy",directives:{tooltip:En,clipboard:po},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()}}}),$d={key:0,ref:"content",class:"cl-copy"},Sd={ref:"content"};function wd(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",$d,[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",Sd,[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=k(kd,[["render",wd]]);Nt.install=e=>{e.component(Nt.name??"ClNoName",Nt)};const Nd=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:Tr}}),Td=["id"];function Od(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,Td),n.createTextVNode(", "+n.toDisplayString(e.validText)+" ",1),n.createElementVNode("code",null,n.toDisplayString(e.expires),1)],64)}const Tt=k(Nd,[["render",Od]]);Tt.install=e=>{e.component(Tt.name??"ClNoName",Tt)};function dr(e){e.preventDefault()}const Ad=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,dr)})},unmounted(){["dragenter","dragover","dragleave","drop"].forEach(e=>{document.body.removeEventListener(e,dr)})},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}}}),Dd=["id"],Bd=["id","accept"];function Vd(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,Dd)):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,Bd),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"},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"},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=k(Ad,[["render",Vd]]);Ot.install=e=>{e.component(Ot.name??"ClNoName",Ot)};const Md=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(){ho(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)}}}),Ld=["for"],Id={key:0,class:"required"},Pd=["id","autofocus","disabled","maxlength","minlength","placeholder","required"],Rd=["id","autofocus","disabled","required"],zd=["id","autofocus","disabled","min","max","maxlength","minlength","pattern","placeholder","required","type"],Fd=["id","for"],jd={class:"invalid-feedback"},Wd={key:0,class:"valid-feedback"},Ud={key:1,class:"valid-feedback valid-feedback-none"};function xd(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",Id,"*")):n.createCommentVNode("",!0)],8,Ld)):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,Pd)),[[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,Rd)),[[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,zd)),[[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,Fd)):n.createCommentVNode("",!0),e.nofeedback?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:5},[n.createElementVNode("p",jd,n.toDisplayString(e.invalidMessage),1),e.help?(n.openBlock(),n.createElementBlock("p",Wd,n.toDisplayString(e.help),1)):(n.openBlock(),n.createElementBlock("p",Ud))],64))],64)}const At=k(Md,[["render",xd]]);At.install=e=>{e.component(At.name??"ClNoName",At)};const qd=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(){ho(this.$refs.input)}}}),Hd=["id","disabled","indeterminate","autofocus"],Gd=["for"];function Kd(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,Hd),[[n.vModelCheckbox,e.modelValue]]),n.createElementVNode("label",{class:"form-check-label",for:e.id??e.$uid},[n.renderSlot(e.$slots,"default")],8,Gd)],2)}const Dt=k(qd,[["render",Kd]]);Dt.install=e=>{e.component(Dt.name??"ClNoName",Dt)};const Yd=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."}}}),Xd={key:0,class:"form-label"},Qd={key:0,class:"required"},Jd=["id"],Zd={class:"invalid-feedback"},eu={key:1,class:"valid-feedback"};function tu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.label?(n.openBlock(),n.createElementBlock("label",Xd,[n.createTextVNode(n.toDisplayString(e.label),1),e.required?(n.openBlock(),n.createElementBlock("span",Qd,"*")):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,Jd),n.createElementVNode("p",Zd,n.toDisplayString(e.invalidMessage),1),e.help?(n.openBlock(),n.createElementBlock("p",eu,n.toDisplayString(e.help),1)):n.createCommentVNode("",!0)],64)}const Bt=k(Yd,[["render",tu]]);Bt.install=e=>{e.component(Bt.name??"ClNoName",Bt)};const nu=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}`:"")}}}),iu={key:0,class:"cl-badge-derived"},ou=["id"],su=["id"];function ru(e,i,l,r,c,u){return e.derived?(n.openBlock(),n.createElementBlock("span",iu,[n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,ou)])):(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,su))}const Vt=k(nu,[["render",ru]]);Vt.install=e=>{e.component(Vt.name??"ClNoName",Vt)};const lu=n.defineComponent({name:"ClIconotron",props:{src:{type:String,default:void 0}}}),au={class:"container cl-container-iconotron"},cu={class:"row"},du={class:"col-12 col-md-3"},uu=["src"],fu={class:"col-12 col-md-9"};function pu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",au,[n.createElementVNode("div",cu,[n.createElementVNode("div",du,[n.createElementVNode("img",{src:e.src,alt:""},null,8,uu)]),n.createElementVNode("div",fu,[n.renderSlot(e.$slots,"default")])])])}const Mt=k(lu,[["render",pu]]);Mt.install=e=>{e.component(Mt.name??"ClNoName",Mt)};const hu=n.defineComponent({name:"ClInfo",directives:{tooltip:En},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 mu(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)},null,2)),[[d,e.info,"bottom"]]):e.left?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"left"]]):e.right?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"right"]]):n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:3,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"top"]])}const Lt=k(hu,[["render",mu]]);Lt.install=e=>{e.component(Lt.name??"ClNoName",Lt)};const gu=n.defineComponent({name:"ClLinkExternal",props:{noicon:{type:Boolean,default:!1}}});function vu(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=k(gu,[["render",vu]]);It.install=e=>{e.component(It.name??"ClNoName",It)};const bu=`
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
@@ -22,5 +22,5 @@
22
22
  Congue eu consequat ac felis donec. Aliquam etiam erat velit scelerisque in
23
23
  dictum non. Dis parturient montes nascetur ridiculus mus mauris vitae ultricies.
24
24
  Morbi quis commodo odio aenean sed adipiscing diam donec adipiscing. Sit amet
25
- justo donec enim diam.`,_u=n.defineComponent({name:"ClLorem",props:{words:{type:Number,default:10},paragraphs:{type:Number,default:0}},methods:{lorem(e){return((e%2?yu:bu).trim().replace(/\s+/g," ").split(" ").splice(0,this.words).join(" ")+".").replace(/\.+/g,".")}}});function Eu(e,i,l,r,c,u){return e.paragraphs<=0?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.lorem(0)),1)],64)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(parseInt(e.paragraphs),d=>(n.openBlock(),n.createElementBlock("p",{key:d},n.toDisplayString(e.lorem(d)),1))),128))}const Pt=k(_u,[["render",Eu]]);Pt.install=e=>{e.component(Pt.name??"ClNoName",Pt)};const Cu=n.defineComponent({name:"ClMailto",props:{to:{type:String,default:"office@castlabs.com"}}}),ku=["href"];function $u(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("a",{class:"cl-a-email",href:`mailto:${e.to}`},n.toDisplayString(e.to),9,ku)}const zt=k(Cu,[["render",$u]]);zt.install=e=>{e.component(zt.name??"ClNoName",zt)};const Su=n.defineComponent({props:{to:{type:void 0,default:()=>({})},class:{type:String,default:""}},computed:{classes:function(){return this.class}},methods:{push:function(){this.$router.push(this.to)}}}),wu=["to","name","aid","bid","cid","did","eid","fid","gid","hid","iid","jid","kid","lid","mid","nid","oid","pid","qid","rid","sid","tid","uid","vid","wid","xid","yid","zid"];function Nu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("a",{class:n.normalizeClass(e.classes),to:JSON.stringify(e.to),name:e.to.name,aid:e.to.params?.aid,bid:e.to.params?.bid,cid:e.to.params?.cid,did:e.to.params?.did,eid:e.to.params?.eid,fid:e.to.params?.fid,gid:e.to.params?.gid,hid:e.to.params?.hid,iid:e.to.params?.iid,jid:e.to.params?.jid,kid:e.to.params?.kid,lid:e.to.params?.lid,mid:e.to.params?.mid,nid:e.to.params?.nid,oid:e.to.params?.oid,pid:e.to.params?.pid,qid:e.to.params?.qid,rid:e.to.params?.rid,sid:e.to.params?.sid,tid:e.to.params?.tid,uid:e.to.params?.uid,vid:e.to.params?.vid,wid:e.to.params?.wid,xid:e.to.params?.xid,yid:e.to.params?.yid,zid:e.to.params?.zid,onClick:i[0]||(i[0]=d=>e.push())},[n.renderSlot(e.$slots,"default")],10,wu)}const Pn=k(Su,[["render",Nu]]);Pn.install=e=>{e.component(Pn.name??"ClNoName",Pn)};const Tu=n.defineComponent({name:"ClModal",inheritAttrs:!1,props:{id:{type:String,default:null},form:{type:Boolean,default:!1},class:{type:String,default:null},helpUrl:{type:String,default:null},onClose:{type:Function,default:null},onOpen:{type:Function,default:null}},computed:{clazz:function(){return this.class}},mounted(){const e=document.getElementById(this.id||""),i=this;e&&(e.addEventListener("hidden.bs.modal",function(){i.onClose&&i.onClose()}),e.addEventListener("show.bs.modal",function(){i.onOpen&&i.onOpen()}))}}),Ou=["id"],Au={class:"modal-dialog"},Du={class:"modal-content"},Bu={class:"modal-header"},Vu=["href"],Iu=["id"],Mu={key:1,class:"modal-body"},Lu={class:"modal-footer"},Ru={class:"modal-footer-left cl-spacing-box cl-spacing-none"},Pu={class:"modal-footer-center cl-spacing-box cl-spacing-none"},zu={class:"modal-footer-right cl-spacing-box cl-spacing-none"};function Fu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",{id:e.id,class:n.normalizeClass(`modal ${e.clazz}`),tabindex:"-1","data-bs-backdrop":"static"},[n.createElementVNode("div",Au,[n.createElementVNode("div",Du,[n.createElementVNode("div",Bu,[n.renderSlot(e.$slots,"title",{},()=>[i[1]||(i[1]=n.createTextVNode("Information",-1))]),e.helpUrl?(n.openBlock(),n.createElementBlock("a",{key:0,class:"modal-help",href:e.helpUrl,target:"_blank",title:"Show help in new window."},[...i[2]||(i[2]=[n.createElementVNode("i",{class:"far fa-question-circle"},null,-1)])],8,Vu)):n.createCommentVNode("",!0)]),e.form?(n.openBlock(),n.createElementBlock("form",{key:0,id:`${e.id}-form`,class:"modal-body cl-form container",novalidate:"",onSubmit:i[0]||(i[0]=n.withModifiers(()=>{},["prevent"]))},[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")],40,Iu)):(n.openBlock(),n.createElementBlock("div",Mu,[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")])),n.createElementVNode("div",Lu,[n.createElementVNode("span",Ru,[n.renderSlot(e.$slots,"footer-left")]),n.createElementVNode("span",Pu,[n.renderSlot(e.$slots,"footer")]),n.createElementVNode("span",zu,[n.renderSlot(e.$slots,"footer-right")])])])])],10,Ou)}const Ft=k(Tu,[["render",Fu]]);Ft.install=e=>{e.component(Ft.name??"ClNoName",Ft)};const ju=n.defineComponent({name:"ClModalConfirm",inheritAttrs:!1,props:{id:{type:String,default:"modal-confirm"},class:{type:String,default:void 0},text:{type:String,default:"confirm"},title:{type:String,default:"Are you sure?"},ok:{type:String,default:void 0},button:{type:String,default:"OK"},spinner:{type:Boolean,default:!1}},data(){return{valid:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},emits:["ok"],methods:{reset:function(){this.valid=!1,kr(this.$refs.text,""),Cr(`${this.id}-form`)},validate:function(){this.valid=this.$refs.text?.validateSilent()}}});function Wu(e,i,l,r,c,u){const d=n.resolveComponent("cl-field"),v=n.resolveComponent("cl-modal-form");return n.openBlock(),n.createBlock(v,{id:e.id,class:n.normalizeClass(e.clazz),"on-open":e.reset,disabled:!e.valid,spinner:e.spinner,valid:e.valid,onOk:i[2]||(i[2]=$=>e.$emit("ok")),ok:e.ok??e.button},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),body:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.createElementVNode("p",null,[i[3]||(i[3]=n.createTextVNode(" To confirm your intention, please type ",-1)),n.createElementVNode("code",null,n.toDisplayString(e.text),1),i[4]||(i[4]=n.createTextVNode(" into this text field: ",-1))]),n.createVNode(d,{ref:"text",type:"text",required:"",pattern:`^${e.text}$`,class:"text-center cl-field-monospace it-confirm",autofocus:"",onChanged:i[0]||(i[0]=$=>e.validate()),onKeyup:i[1]||(i[1]=n.withKeys($=>e.submit(),["enter"]))},null,8,["pattern"])]),_:3},8,["id","class","on-open","disabled","spinner","valid","ok"])}const jt=k(ju,[["render",Wu]]);jt.install=e=>{e.component(jt.name??"ClNoName",jt)};const Uu=n.defineComponent({name:"ClModalForm",inheritAttrs:!1,props:{id:{type:String,default:"modal-form"},class:{type:String,default:void 0},title:{type:String,default:"Form"},ok:{type:String,default:"OK"},cancel:{type:String,default:"Cancel"},spinner:{type:Boolean,default:!1},valid:{type:Boolean,default:!0},onClose:{type:Function,default:null},onOpen:{type:Function,default:null}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},emits:["ok"],methods:{submit:function(){this.valid&&this.$emit("ok")}}}),xu={type:"button",class:"btn cl-color-secondary it-cancel","data-bs-dismiss":"modal"};function qu(e,i,l,r,c,u){const d=n.resolveComponent("cl-modal");return n.openBlock(),n.createBlock(d,{id:e.id,class:n.normalizeClass(e.clazz),form:"","on-open":e.onOpen,"on-close":e.onClose},n.createSlots({body:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")]),"footer-left":n.withCtx(()=>[n.createElementVNode("button",xu,[n.createElementVNode("span",null,n.toDisplayString(e.cancel),1)])]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:n.normalizeClass(["btn cl-color-primary it-ok",{disabled:!e.valid,"cl-btn-spinner":e.spinner}]),onClick:i[0]||(i[0]=v=>e.submit())},[n.createElementVNode("span",null,n.toDisplayString(e.ok),1)],2)]),_:2},[e.$slots.title?{name:"title",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"title")]),key:"0"}:{name:"title",fn:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),key:"1"}]),1032,["id","class","on-open","on-close"])}const Wt=k(Uu,[["render",qu]]);Wt.install=e=>{e.component(Wt.name??"ClNoName",Wt)};const Hu=n.defineComponent({name:"ClModalOk",inheritAttrs:!1,props:{id:{type:String,default:"modal-ok"},class:{type:String,default:void 0},title:{type:String,default:"Information"},form:{type:Boolean,default:!1},body:{type:String,default:void 0},ok:{type:String,default:void 0},button:{type:String,default:"OK"},cancel:{type:String,default:null},spinner:{type:Boolean,default:!1},onClose:{type:Function,default:null},onOpen:{type:Function,default:null}},emits:["ok","cancel"],data(){return{emitted:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},methods:{buttonOk:function(){this.emitted=!0,_n(),this.$emit("ok",ui(this.id))},buttonCancel:function(){this.emitted=!0,_n(),this.$emit("cancel",ui(this.id))},opened:function(){this.emitted=!1,this.onOpen&&this.onOpen()},closed:function(){this.emitted||this.$emit("cancel",ui(this.id)),this.onClose&&this.onClose()}}});function Gu(e,i,l,r,c,u){const d=n.resolveComponent("cl-modal");return n.openBlock(),n.createBlock(d,{id:e.id,class:n.normalizeClass(e.clazz),form:e.form,"on-open":e.opened,"on-close":e.closed},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),body:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.createTextVNode(n.toDisplayString(e.body),1)]),"footer-left":n.withCtx(()=>[e.cancel?(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"btn cl-color-secondary it-cancel",onClick:i[0]||(i[0]=(...v)=>e.buttonCancel&&e.buttonCancel(...v))},[n.createElementVNode("span",null,n.toDisplayString(e.cancel),1)])):n.createCommentVNode("",!0)]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:n.normalizeClass(["btn cl-color-primary it-ok",{"cl-btn-spinner":e.spinner}]),onClick:i[1]||(i[1]=(...v)=>e.buttonOk&&e.buttonOk(...v))},[n.createElementVNode("span",null,n.toDisplayString(e.ok??e.button),1)],2)]),_:3},8,["id","class","form","on-open","on-close"])}const Ut=k(Hu,[["render",Gu]]);Ut.install=e=>{e.component(Ut.name??"ClNoName",Ut)};function Dr(){const e=document.getElementById("cl-nav-side");if(e)if(e.checked){e.parentNode.classList.add("cl-nav-side-open");try{localStorage.setItem("sidenavOpen","true")}catch(i){i.ignore?.()}}else{e.parentNode.classList.remove("cl-nav-side-open");try{localStorage.setItem("sidenavOpen","false")}catch(i){i.ignore?.()}}}function Ku(){ur(Yu()),document.querySelectorAll(".cl-nav-drawer a").forEach(e=>{e.addEventListener("click",()=>{if(Br()){ur(!1);try{localStorage.setItem("sidenavOpen","false")}catch(i){i.ignore?.()}}})}),document.getElementById("cl-nav-side")?.addEventListener("change",function(){Dr()}),document.querySelectorAll(".cl-nav-drawer details[id]").forEach(e=>{e.addEventListener("toggle",i=>{try{localStorage.setItem(`cl-nav-${e.id}`,i.target.hasAttribute("open"))}catch(l){l.ignore?.()}});try{localStorage.getItem(`cl-nav-${e.id}`)==="true"&&(e.open=!0)}catch(i){i.ignore?.()}}),setTimeout(function(){document.querySelectorAll("body").forEach(e=>{e.classList.add("cl-animate")})},1e3)}function ur(e){const i=document.getElementById("cl-nav-side");i&&(i.checked=e)}function Br(){return Math.max(document?.documentElement?.clientWidth||0,window?.innerWidth||0)<1200}function Yu(){const e=localStorage.getItem("sidenavOpen");return e==null?!Br():JSON.parse(e)}const Xu=n.defineComponent({name:"ClNavSide",inheritAttrs:!1,props:{class:{type:String,default:void 0}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},mounted(){this.setup()},methods:{toggle:function(){Dr()},setup:function(){this.$nextTick(()=>{Ku()})}}}),Qu={class:"cl-nav-side"},Ju={class:"cl-nav-drawer"},Zu={"data-simplebar":""};function ef(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("input",{id:"cl-nav-side",type:"checkbox",class:n.normalizeClass(`cl-nav-checkbox${e.clazz}`),onChange:i[0]||(i[0]=(...d)=>e.toggle&&e.toggle(...d)),tabindex:"-1"},null,34),n.createElementVNode("nav",Qu,[i[1]||(i[1]=n.createElementVNode("label",{class:"cl-nav-backdrop",for:"cl-nav-side"},null,-1)),n.createElementVNode("div",Ju,[n.createElementVNode("div",Zu,[n.renderSlot(e.$slots,"default")])])])],64)}const xt=k(Xu,[["render",ef]]);xt.install=e=>{e.component(xt.name??"ClNoName",xt)};const tf=n.defineComponent({name:"ClNavTop",inheritAttrs:!1,props:{class:{type:String,default:void 0}},computed:{isFluid:function(){return this.$route.meta?.fluid},clazz:function(){return this.class?` ${this.class}`:""},containerClass:function(){return this.isFluid?"container-fluid":"container"}}}),nf={class:"row"},of={class:"col-12 cl-grid-flex-centered"};function sf(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("nav",{id:"cl-nav-top",class:n.normalizeClass(`cl-nav-top${e.clazz}`)},[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",nf,[n.createElementVNode("div",of,[i[0]||(i[0]=n.createElementVNode("label",{class:"cl-nav-side-burger",for:"cl-nav-side"},[n.createElementVNode("i",{class:"fas fa-bars"})],-1)),n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"title")])])],2)],2)}const qt=k(tf,[["render",sf]]);qt.install=e=>{e.component(qt.name??"ClNoName",qt)};const rf=n.defineComponent({name:"ClOrg",props:{name:{type:String,default:"No organization"}}}),lf={class:"cl-org"};function af(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("span",lf,[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")])}const Ht=k(rf,[["render",af]]);Ht.install=e=>{e.component(Ht.name??"ClNoName",Ht)};const cf=n.defineComponent({name:"ClPage",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},title:{type:String,default:void 0},loading:{type:Boolean,default:!1},notFound:{type:Boolean,default:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},mounted(){const e=this.$route?.query?.goto;e&&_r(e)},methods:{back(){history.go(-1)}}}),df={key:0,class:"cl-page-spinner"};function uf(e,i,l,r,c,u){const d=n.resolveComponent("cl-section-headline"),v=n.resolveComponent("cl-spinner"),$=n.resolveComponent("cl-section-main");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(d,{id:e.id??e.$route.name,title:e.title??e.$route.meta?.title??"Castlabs",class:n.normalizeClass(e.clazz),fluid:e.$route.meta?.fluid},null,8,["id","title","class","fluid"]),e.loading?(n.openBlock(),n.createElementBlock("div",df,[n.createVNode(v)])):e.notFound?n.renderSlot(e.$slots,"notFound",{key:1},()=>[n.createVNode($,{fluid:e.$route.meta?.fluid},{default:n.withCtx(()=>[i[2]||(i[2]=n.createElementVNode("p",{class:"cl-p-large"},"Hmm, it seems we can’t find what you’re looking for.",-1)),i[3]||(i[3]=n.createElementVNode("p",{class:"alert cl-alert-info"},"This resource may have been moved or it might have expired.",-1)),n.createElementVNode("button",{type:"button",class:"btn cl-color-secondary cl-spacing-large",onClick:i[0]||(i[0]=(...D)=>e.back&&e.back(...D))},[...i[1]||(i[1]=[n.createElementVNode("span",null,"Back",-1)])])]),_:1},8,["fluid"])]):n.renderSlot(e.$slots,"default",{key:2})],64)}const Gt=k(cf,[["render",uf]]);Gt.install=e=>{e.component(Gt.name??"ClNoName",Gt)};function ff(e,i,l,r){const c=[],u=Math.ceil(e/i);l<1&&(l=1),l>u&&(l=u);for(let d=1;d<=u;d++)(d>=l-r&&d<=l+r||d===1||d===u)&&c.push(d);return{previous:l>1?l-1:null,next:l<u?l+1:null,current:l,pages:c}}const pf=n.defineComponent({name:"ClPagination",props:{items:{type:Number,default:0},pagesize:{type:Number,default:25},current:{type:Number,default:1},window:{type:Number,default:3},test:{type:Boolean,default:!1}},emits:["page"],computed:{pager:function(){return ff(this.items,this.pagesize,this.current,this.window)}}}),hf={key:0,class:"col-12 cl-spacing-medium"},mf={class:"pagination"},gf={key:0,class:"page-item"},vf={key:1,class:"page-item disabled"},bf={key:0,class:"page-item disabled"},yf=["onClick"],_f={key:2,class:"page-item"},Ef={key:3,class:"page-item disabled"};function Cf(e,i,l,r,c,u){return e.pager?.pages?.length>1?(n.openBlock(),n.createElementBlock("nav",hf,[n.createElementVNode("ul",mf,[e.pager.previous?(n.openBlock(),n.createElementBlock("li",gf,[n.createElementVNode("button",{type:"button",class:"page-link",onClick:i[0]||(i[0]=d=>e.$emit("page",e.pager.previous))},[i[2]||(i[2]=n.createElementVNode("i",{class:"fas fa-arrow-left"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("P")],64)):n.createCommentVNode("",!0)])])):(n.openBlock(),n.createElementBlock("li",vf,[i[3]||(i[3]=n.createElementVNode("i",{class:"fas fa-arrow-left"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("P")],64)):n.createCommentVNode("",!0)])),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.pager.pages,(d,v)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[v>0&&e.pager.pages[v-1]!==d-1?(n.openBlock(),n.createElementBlock("li",bf," … ")):n.createCommentVNode("",!0),n.createElementVNode("li",{class:n.normalizeClass(["page-item",{active:d===e.pager.current}])},[n.createElementVNode("button",{class:"page-link",onClick:$=>e.$emit("page",d)},n.toDisplayString(d),9,yf)],2)],64))),128)),e.pager.next?(n.openBlock(),n.createElementBlock("li",_f,[n.createElementVNode("button",{type:"button",class:"page-link",onClick:i[1]||(i[1]=d=>e.$emit("page",e.pager.next))},[i[4]||(i[4]=n.createElementVNode("i",{class:"fas fa-arrow-right"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("N")],64)):n.createCommentVNode("",!0)])])):(n.openBlock(),n.createElementBlock("li",Ef,[i[5]||(i[5]=n.createElementVNode("i",{class:"fas fa-arrow-right"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("N")],64)):n.createCommentVNode("",!0)]))])])):n.createCommentVNode("",!0)}const Kt=k(pf,[["render",Cf]]);Kt.install=e=>{e.component(Kt.name??"ClNoName",Kt)};const kf=n.defineComponent({name:"ClPlan",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-plan ";return!this.primary&&!this.secondary?e+=" cl-color-ash":this.primary?e+=" cl-color-red":this.secondary&&(e+=" cl-color-steel"),e+(this.class?` ${this.class}`:"")}}}),$f={key:0,class:"cl-badge-derived"},Sf=["id"],wf=["id"];function Nf(e,i,l,r,c,u){return e.derived?(n.openBlock(),n.createElementBlock("span",$f,[n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,Sf)])):(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,wf))}const Yt=k(kf,[["render",Nf]]);Yt.install=e=>{e.component(Yt.name??"ClNoName",Yt)};const Tf=n.defineComponent({name:"ClRole",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-role ";return!this.primary&&!this.secondary?e+=" cl-color-ash":this.primary?e+=" cl-color-red":this.secondary&&(e+=" cl-role-steel"),e+(this.class?` ${this.class}`:"")}}}),Of={key:0,class:"cl-badge-derived"},Af=["id"],Df=["id"];function Bf(e,i,l,r,c,u){return e.derived?(n.openBlock(),n.createElementBlock("span",Of,[n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,Af)])):(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,Df))}const Xt=k(Tf,[["render",Bf]]);Xt.install=e=>{e.component(Xt.name??"ClNoName",Xt)};const Vf=n.defineComponent({name:"ClSectionForm",props:{id:{type:String,default:"FORM"},fluid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},noCol:{type:Boolean,default:!1}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},containerClass:function(){return this.isFluid?"cl-form container-fluid":"cl-form container"}}}),If={class:"cl-section cl-section-form cl-color-haze"},Mf=["id"],Lf=["disabled"],Rf={key:1,class:"col-12"};function Pf(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("section",If,[n.createElementVNode("form",{id:e.id,novalidate:"",class:n.normalizeClass(e.containerClass),onSubmit:i[0]||(i[0]=n.withModifiers(()=>{},["prevent"]))},[n.createElementVNode("fieldset",{class:"row",disabled:e.disabled},[e.noCol?n.renderSlot(e.$slots,"default",{key:0}):(n.openBlock(),n.createElementBlock("div",Rf,[n.renderSlot(e.$slots,"default")]))],8,Lf)],42,Mf)])}const Qt=k(Vf,[["render",Pf]]);Qt.install=e=>{e.component(Qt.name??"ClNoName",Qt)};const zf=n.defineComponent({name:"ClSectionHeadline",props:{fluid:{type:Boolean,default:!1},title:{type:String,default:void 0},href:{type:String,default:void 0}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},containerClass:function(){return this.isFluid?"container-fluid cl-container-spacing-small":"container cl-container-spacing-small"}}}),Ff={class:"cl-section cl-section-headline"},jf={class:"row"},Wf={class:"col-12"},Uf={key:0},xf=["href"];function qf(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("section",Ff,[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",jf,[n.createElementVNode("div",Wf,[e.title?(n.openBlock(),n.createElementBlock("h1",Uf,[n.createTextVNode(n.toDisplayString(e.title),1),e.href?(n.openBlock(),n.createElementBlock("a",{key:0,href:e.href,class:"cl-headline-help-icon",target:"_blank",rel:"noopener noreferrer",title:"Help"},[...i[0]||(i[0]=[n.createElementVNode("i",{class:"fas fa-question-circle"},null,-1)])],8,xf)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"default")])])],2)])}const Jt=k(zf,[["render",qf]]);Jt.install=e=>{e.component(Jt.name??"ClNoName",Jt)};const Hf=n.defineComponent({name:"ClSectionMain",props:{alternate:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},noCol:{type:Boolean,default:!1}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},sectionClass:function(){return this.alternate?"cl-section-alternate":"cl-section"},containerClass:function(){return this.isFluid?"container-fluid":"container"}}}),Gf={class:"row"},Kf={key:1,class:"col-12"};function Yf(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("section",{class:n.normalizeClass(e.sectionClass)},[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",Gf,[e.noCol?n.renderSlot(e.$slots,"default",{key:0}):(n.openBlock(),n.createElementBlock("div",Kf,[n.renderSlot(e.$slots,"default")]))])],2)],2)}const it=k(Hf,[["render",Yf]]);it.install=e=>{e.component(it.name??"ClNoName",it)};const Xf=n.defineComponent({name:"ClSectionMainSide",components:{ClSectionMain:it},props:{alternate:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},slim:{type:Boolean,default:!1}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},mainClass:function(){return"col-12 "+(this.slim?"col-lg-9":"col-lg-8")},sideClass:function(){return"col-12 "+(this.slim?"col-lg-3":"col-lg-4")},sectionClass:function(){return"cl-section-main-side "+(this.alternate?"cl-section-alternate":"")}}});function Qf(e,i,l,r,c,u){const d=n.resolveComponent("cl-section-main");return n.openBlock(),n.createBlock(d,{class:n.normalizeClass(e.sectionClass),"no-col":"",fluid:e.isFluid},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(e.mainClass)},[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"main")],2),e.$slots.side?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.sideClass)},[n.renderSlot(e.$slots,"side")],2)):n.createCommentVNode("",!0)]),_:3},8,["class","fluid"])}const Zt=k(Xf,[["render",Qf]]);Zt.install=e=>{e.component(Zt.name??"ClNoName",Zt)};const Jf=n.defineComponent({name:"ClSpinner",props:{title:{type:String,default:"Loading ..."}}}),Zf={class:"cl-spinner"};function ep(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",Zf,[n.createTextVNode(n.toDisplayString(e.title),1),i[0]||(i[0]=n.createElementVNode("i",{class:"fas fa-spinner fa-spin"},null,-1))])}const en=k(Jf,[["render",ep]]);en.install=e=>{e.component(en.name??"ClNoName",en)};function tp(e){document.querySelectorAll(`#${e} .cl-resizer`).forEach(i=>{np(i)})}let zn=0,En=null;function np(e){zn=0,En=null,e.addEventListener("mousedown",ip),document.addEventListener("mousemove",op),document.addEventListener("mouseup",sp)}const ip=e=>{e.preventDefault(),En=e.target?e.target.parentElement:null,zn=e.pageX},op=e=>{if(En!==null){e.preventDefault();const i=e.pageX-zn;zn=e.pageX;const l=rp(En),r=e.target?.closest("table")?.id??"unknown";!!document.querySelector(`#${r}.cl-table-nowrap`)?document.querySelectorAll(`#${r} tr th:nth-child(${l-1})`).forEach(u=>{const d=(u.style.maxWidth===""?u.offsetWidth:parseInt(u.style.maxWidth))+i;u.style.width=(d>32?d:32)+"px",u.style.maxWidth=(d>32?d:32)+"px"}):(document.querySelectorAll(`#${r} tr td:nth-child(${l-1})`).forEach(u=>{const d=u.offsetWidth+i;u.style.width=(d>32?d:32)+"px"}),document.querySelectorAll(`#${r} tr td:nth-child(${l})`).forEach(u=>{const d=u.offsetWidth-i;u.style.width=(d>32?d:32)+"px"}))}},sp=e=>{En!==null&&(e.preventDefault(),zn=0,En=null)};function rp(e){let i=0;for(;e;)i++,e=e.previousElementSibling;return i}const lp=n.defineComponent({name:"ClTable",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},nowrap:{type:Boolean,default:!1},noDataText:{type:String,default:"No data available."},rows:{type:Number,default:1},nonresponsive:{type:Boolean,default:!1},hideCols:{type:Array,default:void 0},fixed:{type:Boolean,default:!1}},data(){return{show:Array(32).fill(!0)}},computed:{clazz:function(){let e=this.class;this.nonresponsive&&(e+=" cl-table-nonresponsive"),this.nowrap&&(e+=" cl-table-nowrap"),this.fixed&&(e+=" cl-table-fixed");for(let i=1;i<=this.show.length;i++)this.show[i-1]||(e+=` cl-table-col-${i}-hide`);return e}},watch:{rows:function(){this.setupResizer()}},mounted(){this.setupResizer()},methods:{setupResizer:function(){this.$nextTick(()=>{tp(this.$uid)})}}}),ap=["id"],cp=["id"],dp={key:0},up={key:1},fp={class:"cl-tr-no-data"},pp={colspan:"100"},hp={key:2},mp={class:"cl-tr-no-data"},gp={colspan:"100"},vp={key:3};function bp(e,i,l,r,c,u){const d=n.resolveComponent("cl-spinner"),v=n.resolveComponent("cl-field-check"),$=n.resolveComponent("cl-modal-ok");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",{id:e.id,class:"cl-table-scroll"},[n.createElementVNode("table",{id:e.$uid,class:n.normalizeClass(`cl-table-data ${e.clazz}`)},[n.createElementVNode("thead",null,[n.createElementVNode("tr",null,[n.renderSlot(e.$slots,"header")])]),e.rows>=1?(n.openBlock(),n.createElementBlock("tbody",dp,[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")])):e.rows===0?(n.openBlock(),n.createElementBlock("tbody",up,[n.createElementVNode("tr",fp,[n.createElementVNode("td",pp,n.toDisplayString(e.noDataText),1)])])):(n.openBlock(),n.createElementBlock("tbody",hp,[n.createElementVNode("tr",mp,[n.createElementVNode("td",gp,[n.createVNode(d)])])])),e.$slots.footer?(n.openBlock(),n.createElementBlock("tfoot",vp,[n.createElementVNode("tr",null,[n.renderSlot(e.$slots,"footer")])])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"tfoot")],10,cp)],8,ap),e.hideCols?(n.openBlock(),n.createBlock($,{key:0,id:e.$uid+"-settings",title:"Configure table"},{default:n.withCtx(()=>[i[0]||(i[0]=n.createElementVNode("p",null,"Which of the following columns would you like to see?",-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.hideCols,(D,x)=>(n.openBlock(),n.createBlock(v,{key:D,value:e.show[x],modelValue:e.show[x],"onUpdate:modelValue":I=>e.show[x]=I},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(D),1)]),_:2},1032,["value","modelValue","onUpdate:modelValue"]))),128))]),_:1},8,["id"])):n.createCommentVNode("",!0)],64)}const tn=k(lp,[["render",bp]]);tn.install=e=>{e.component(tn.name??"ClNoName",tn)};const yp=n.defineComponent({name:"ClTableCel",props:{condensed:{type:Boolean,default:!1}}});function _p(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",{class:n.normalizeClass(e.condensed?"cl-font-condensed":"")},[n.renderSlot(e.$slots,"default")],2)}const nn=k(yp,[["render",_p]]);nn.install=e=>{e.component(nn.name??"ClNoName",nn)};const Ep=n.defineComponent({name:"ClTableCelActions",props:{content:{type:String,default:""}}}),Cp={class:"cl-td-actions"};function kp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Cp,[n.createTextVNode(n.toDisplayString(e.content),1),n.renderSlot(e.$slots,"default")])}const on=k(Ep,[["render",kp]]);on.install=e=>{e.component(on.name??"ClNoName",on)};const $p=n.defineComponent({name:"ClTableCelAudit",directives:{tooltip:Cn},props:{value:{type:String,default:"???"}}}),Sp={class:"cl-td-audit"},wp={class:"fas fa-info-circle"};function Np(e,i,l,r,c,u){const d=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("td",Sp,[n.withDirectives(n.createElementVNode("i",wp,null,512),[[d,e.value,"left"]])])}const sn=k($p,[["render",Np]]);sn.install=e=>{e.component(sn.name??"ClNoName",sn)};const Tp=n.defineComponent({name:"ClTableCelBoolean",props:{value:{type:Boolean,default:!1}}}),Op={class:"cl-td-boolean"};function Ap(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Op,[n.createElementVNode("i",{class:n.normalizeClass(`fas ${e.value?"fa-check":"fa-minus"}`)},null,2)])}const rn=k(Tp,[["render",Ap]]);rn.install=e=>{e.component(rn.name??"ClNoName",rn)};const Dp=n.defineComponent({name:"ClTableCelCheckbox",props:{id:{type:String,default:void 0},disabled:{type:Boolean,default:!1},value:{type:Boolean,default:!1}},emits:["update:modelValue","changed"],data(){return{modelValue:this.value}},watch:{value:function(e){this.modelValue=e}},methods:{emitAll:function(){this.$emit("update:modelValue",this.modelValue),this.$emit("changed",this.modelValue)}}}),Bp={class:"cl-td-checkbox"},Vp={class:"form-check text-center"},Ip=["id","disabled"];function Mp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Bp,[n.createElementVNode("div",Vp,[n.withDirectives(n.createElementVNode("input",{id:e.id??e.$uid,"onUpdate:modelValue":i[0]||(i[0]=d=>e.modelValue=d),class:"form-check-input",type:"checkbox",disabled:e.disabled,onChange:i[1]||(i[1]=d=>e.emitAll())},null,40,Ip),[[n.vModelCheckbox,e.modelValue]])])])}const ln=k(Dp,[["render",Mp]]);ln.install=e=>{e.component(ln.name??"ClNoName",ln)};const Lp=n.defineComponent({name:"ClTableCelCode"}),Rp={class:"cl-td-code"};function Pp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Rp,[n.renderSlot(e.$slots,"default")])}const an=k(Lp,[["render",Pp]]);an.install=e=>{e.component(an.name??"ClNoName",an)};const zp=n.defineComponent({name:"ClTableCelCurrency",props:{amount:{type:Number,default:0},currency:{type:String,default:"EUR"}}}),Fp={class:"cl-td-currency"};function jp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Fp,n.toDisplayString(e.currency)+" "+n.toDisplayString(new Intl.NumberFormat("en-US").format(e.amount)),1)}const cn=k(zp,[["render",jp]]);cn.install=e=>{e.component(cn.name??"ClNoName",cn)};const Wp=n.defineComponent({name:"ClTableCelDate",props:{value:{type:String,default:void 0}},computed:{content:function(){if(this.value){const e=new Date(this.value),i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),l=new Intl.DateTimeFormat("en",{month:"2-digit"}).format(e),r=new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e),c=new Intl.DateTimeFormat("en",{hour:"2-digit",hour12:!1}).format(e),u=new Intl.DateTimeFormat("en",{minute:"2-digit"}).format(e);return`${i}-${l}-${r} ${c}:${u}`}return"-"}}}),Up={class:"cl-td-date"};function xp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Up,n.toDisplayString(e.content),1)}const dn=k(Wp,[["render",xp]]);dn.install=e=>{e.component(dn.name??"ClNoName",dn)};const qp=n.defineComponent({name:"ClTableCelId",directives:{tooltip:Cn,clipboard:ho},props:{value:{type:String,default:"ABCDEF01"},full:{type:String,default:void 0}},computed:{tooltip:function(){return(this.full??this.value)+"<br><small>click-to-copy!</small>"}}}),Hp={class:"cl-td-id"};function Gp(e,i,l,r,c,u){const d=n.resolveDirective("tooltip"),v=n.resolveDirective("clipboard");return n.withDirectives((n.openBlock(),n.createElementBlock("td",Hp,[n.createTextVNode(n.toDisplayString(e.value),1)])),[[d,e.tooltip,"right"],[v,e.full??e.value]])}const un=k(qp,[["render",Gp]]);un.install=e=>{e.component(un.name??"ClNoName",un)};const Kp=n.defineComponent({name:"ClTableCelLinks",props:{content:{type:String,default:""}}}),Yp={class:"cl-td-links"};function Xp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Yp,[n.createTextVNode(n.toDisplayString(e.content),1),n.renderSlot(e.$slots,"default")])}const fn=k(Kp,[["render",Xp]]);fn.install=e=>{e.component(fn.name??"ClNoName",fn)};const Qp=n.defineComponent({name:"ClTableCelTime"}),Jp={class:"cl-td-time"};function Zp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Jp,[n.renderSlot(e.$slots,"default")])}const pn=k(Qp,[["render",Zp]]);pn.install=e=>{e.component(pn.name??"ClNoName",pn)};const eh=n.defineComponent({name:"ClTableCelUuid",props:{value:{type:String,default:"00000000-0000-0000-0000-000000000000"}}});function th(e,i,l,r,c,u){const d=n.resolveComponent("cl-table-cel-id");return n.openBlock(),n.createBlock(d,{value:e.value.substring(0,8),full:e.value},null,8,["value","full"])}const hn=k(eh,[["render",th]]);hn.install=e=>{e.component(hn.name??"ClNoName",hn)};const nh=n.defineComponent({name:"ClTableFootChecked",props:{checked:{type:Object,default:()=>({})}},computed:{any:function(){for(const e in this.checked)if(this.checked[e])return!0;return!1}}}),ih={key:0,class:"cl-table-foot-checked"},oh={class:"cl-td-links",colspan:"100"};function sh(e,i,l,r,c,u){return e.any?(n.openBlock(),n.createElementBlock("tfoot",ih,[n.createElementVNode("tr",null,[n.createElementVNode("td",oh,[i[0]||(i[0]=n.createElementVNode("small",null,[n.createElementVNode("i",{class:"fas fa-share fa-rotate-270 cl-faded"})],-1)),i[1]||(i[1]=n.createTextVNode("   ",-1)),n.renderSlot(e.$slots,"default")])])])):n.createCommentVNode("",!0)}const mn=k(nh,[["render",sh]]);mn.install=e=>{e.component(mn.name??"ClNoName",mn)};const rh=n.defineComponent({name:"ClTableHead",directives:{tooltip:Cn},props:{resize:{type:Boolean,default:!1},sort:{type:String,default:"OFF"},width:{type:String,default:""},checkbox:{type:Boolean,default:!1},initial:{type:String,default:"NONE"},sorter:{type:Object,default:null},col:{type:Number,default:0},settings:{type:Boolean,default:!1}},emits:["sort","all","none"],data(){return{checkState:this.initial,modelValue:this.initial==="ALL",mySorter:this.sorter}},watch:{initial:function(e,i){e!==i&&(this.checkState=e,this.modelValue=this.checkState==="ALL")}},mounted(){this.$nextTick(()=>{this.mySorter&&this.mySorter.col===this.col&&this.mySorter.sort()})},methods:{check(){switch(this.checkState){case"NONE":case"SOME":this.checkState="ALL",this.$emit("all");break;case"ALL":this.checkState="NONE",this.$emit("none");break}},openSettings(e){let i=e?.target;for(;i;){if(i.tagName==="TABLE"){fo(`${i.id}-settings`);return}i=i.parentElement}},sortCol(){let e="NONE";switch(this.mySorter.col===this.col&&(e=this.mySorter?this.mySorter.order.toUpperCase():this.sort.toUpperCase()),e){case"OFF":break;case"ASC":this.mySorter?this.mySorter.set(this.col,"DESC"):this.$emit("sort","DESC");break;case"DESC":default:this.mySorter?this.mySorter.set(this.col,"ASC"):this.$emit("sort","ASC")}}}}),lh=["id","width"],ah={class:"fas fa-cog cl-faded"},ch={key:0,class:"cl-resizer"},dh={key:1,class:"form-check text-center"},uh=["indeterminate"],fh={key:2,class:"cl-resizer"};function ph(e,i,l,r,c,u){const d=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("th",{id:e.$uid,class:n.normalizeClass(["cl-table-head",{"cl-table-head-sort":e.sort!==null,"cl-table-head-checkbox":e.checkbox,"cl-th-links":e.settings}]),width:e.settings?"1%":e.width},[e.settings?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("button",{type:"button",class:"cl-btn-ghost",onClick:i[0]||(i[0]=(...v)=>e.openSettings&&e.openSettings(...v))},[n.withDirectives(n.createElementVNode("i",ah,null,512),[[d,"Configure table","left"]])]),e.resize?(n.openBlock(),n.createElementBlock("div",ch)):n.createCommentVNode("",!0)],64)):e.checkbox?(n.openBlock(),n.createElementBlock("div",dh,[n.withDirectives(n.createElementVNode("input",{ref:"checkbox","onUpdate:modelValue":i[1]||(i[1]=v=>e.modelValue=v),class:"form-check-input",type:"checkbox",indeterminate:e.checkState==="SOME",onChange:i[2]||(i[2]=v=>e.check())},null,40,uh),[[n.vModelCheckbox,e.modelValue]])])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[e.sort?(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"cl-btn-ghost",onClick:i[3]||(i[3]=(...v)=>e.sortCol&&e.sortCol(...v))},[n.renderSlot(e.$slots,"default"),e.sorter?.col===e.col?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["fas fa-fw",{"fa-sort-up":e.sorter.order.toUpperCase()==="ASC","fa-sort-down":e.sorter.order.toUpperCase()==="DESC","fa-sort":!["ASC","DESC"].includes(e.sorter.order.toUpperCase())}])},null,2)):e.sort!==null?(n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(["fas fa-fw",{"fa-sort-up":e.sort.toUpperCase()==="ASC","fa-sort-down":e.sort.toUpperCase()==="DESC","fa-sort":!["ASC","DESC"].includes(e.sort.toUpperCase())}])},null,2)):n.createCommentVNode("",!0)])):n.renderSlot(e.$slots,"default",{key:1}),e.resize?(n.openBlock(),n.createElementBlock("div",fh)):n.createCommentVNode("",!0)],64))],10,lh)}const gn=k(rh,[["render",ph]]);gn.install=e=>{e.component(gn.name??"ClNoName",gn)};const hh=n.defineComponent({name:"ClTableRow",props:{id:{type:String,default:null},class:{type:String,default:null},highlight:{type:Boolean,default:!1}},computed:{clazz:function(){return this.highlight?this.class+" cl-highlight":this.class}}}),mh=["id"];function gh(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("tr",{id:e.id,class:n.normalizeClass(e.clazz)},[n.renderSlot(e.$slots,"default")],10,mh)}const vn=k(hh,[["render",gh]]);vn.install=e=>{e.component(vn.name??"ClNoName",vn)};const vh=n.defineComponent({name:"ClTabs",props:{index:{type:Number,default:0}},emits:["tab"],data(){return{tabs:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]}},methods:{slotExists(e){return this.$slots[`tabs-${e}-label`]!==void 0},emit(e){this.$emit("tab",e)}}}),bh={class:"cl-tabs"},yh=["id","name","checked","onChange"],_h=["for"];function Eh(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",bh,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,d=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[e.slotExists(d)?(n.openBlock(),n.createElementBlock("input",{key:0,id:`tabs-${e.$uid}-${d}`,class:n.normalizeClass(`cl-tab-${d}`),type:"radio",name:`tabs-${e.$uid}`,checked:e.index===d-1,onChange:v=>e.emit(d)},null,42,yh)):n.createCommentVNode("",!0)],64))),128)),n.createElementVNode("ul",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,d=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[e.slotExists(d)?(n.openBlock(),n.createElementBlock("li",{key:0,class:n.normalizeClass(`cl-tab-${d}`)},[n.createElementVNode("label",{for:`tabs-${e.$uid}-${d}`},[n.renderSlot(e.$slots,`tabs-${d}-label`)],8,_h)],2)):n.createCommentVNode("",!0)],64))),128))]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,d=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[e.slotExists(d)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(`cl-tab-${d} cl-tab-content`)},[n.renderSlot(e.$slots,`tabs-${d}-content`)],2)):n.createCommentVNode("",!0)],64))),128))])}const bn=k(vh,[["render",Eh]]);bn.install=e=>{e.component(bn.name??"ClNoName",bn)};const Ch=n.defineComponent({name:"ClToggle",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:void 0},modelValue:{type:Boolean,default:!1},enabled:{type:Boolean,default:!0},title:{type:String,default:""},iconOn:{type:String,default:"fas fa-check"},iconOff:{type:String,default:"fas fa-times"}},emits:["update:modelValue"],data(){return{clazz:"cl-badge "+(this.class??"")}},methods:{toggle:function(){if(this.enabled){const e=document.getElementById(this.$uid);e&&(this.$emit("update:modelValue",e.checked),e.focus(),e.blur(),e.focus())}}}}),kh=["id","checked","disabled"],$h=["id","for","disabled"];function Sh(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("input",{id:e.$uid,type:"checkbox",class:n.normalizeClass("cl-toggle-checkbox"),checked:e.modelValue,disabled:e.enabled?null:!0,onChange:i[0]||(i[0]=d=>e.toggle())},null,40,kh),n.createElementVNode("label",{id:e.id,class:n.normalizeClass(e.clazz),for:e.$uid,disabled:e.enabled?null:!0},[n.createElementVNode("i",{class:n.normalizeClass(`${e.iconOn} fa-fw`)},null,2),n.createElementVNode("i",{class:n.normalizeClass(`${e.iconOff} fa-fw`)},null,2),n.createTextVNode(n.toDisplayString(e.title),1)],10,$h)],64)}const yn=k(Ch,[["render",Sh]]);yn.install=e=>{e.component(yn.name??"ClNoName",yn)};const wh={COLOR:{ASH:"#6d5e5e",BERRY:"#6e1c3b",BRICK:"#ba4f4f",CLAY:"#cfc8c8",EGGSHELL:"#fbf9f2",HAZE:"#eeece6",HONEY:"#dc9404",LEAF:"#53965d",NIGHT:"#262a35",ORCHID:"#b271bf",PETROL:"#096174",RED:"#fa423c",SAND:"#fdf5cf",SEA:"#5d9dd1",SKY:"#71c0ff",STEEL:"#a0a0a0"},SPACING:{HUGE:"48px",LARGE:"32px",MEDIUM:"24px",SMALL:"16px",TINY:"8px",MICRO:"4px",NONE:"0px"}},lo={DEV:"DEV",TEST:"TEST",PROD:"PROD"},Z={CP:"Content Platform",CP_TAGLINE:"Access the Content Platform, manage, encode and watermark assets",CP_URN:"urn:janus:service:76b6e8558263431d9d766779987d6410",CS:"Castlabs hub",CS_TAGLINE:"Manage organizations, plans, downloads",CS_URN:"urn:janus:service:OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO",DT:"DRMtoday",DT_TAGLINE:"Cloud DRM & CAS licensing",DT_URN:"urn:janus:service:79a1092a0be44b1c95a4557b8d3ee2b7",DTO:"DRMtoday Onboard",DTO_TAGLINE:"DRMtoday Onboard",DTO_URN:"urn:janus:service:442f84ee6cc942188cb24486d7208289",DTS:"DRMtoday Staging",DTS_TAGLINE:"Cloud DRM & CAS licensing",DTS_URN:"urn:janus:service:17edeac267d84703ab0ddd7a33d85706",PP:"PRESTOplay",PP_TAGLINE:"Cross-platform video players (via Castlabs hub)",PP_URN:"urn:janus:service:a0682fd65f234a6793c526dc33131bab",PP_URN_ANDROID:"urn:janus:service:95841e63952149408c71c650c9659fb7",PP_URN_BROWSER:"urn:janus:service:852e1377df314c1a80003a9f67b98dfe",PP_URN_GSTREAMER:"urn:janus:service:76b6e8558263431d9d766779987d64c1",PP_URN_IOS:"urn:janus:service:2187beecaae44a01ac7eb353f5095f0f",PP_URN_REACTNATIVE:"urn:janus:service:6efecac3ac04477e9b36d3d14e0ae257",PP_URN_WEBRTC:"urn:janus:service:250402eb2e2d47118422ba4f2334ee54",VTK:"Video Toolkit",VTK_TAGLINE:"Cloud encoding, packaging, watermarking",VTK_URN:"urn:janus:service:a50e21d6a5e246809b636854abfbd34d",WM:"STARDUSTmark",WM_TAGLINE:"Video & image forensic watermarking",WM_URN:"urn:janus:service:76b6e8558263431d9d766779987d64c4"},j={CS_READONLY:"Read-Only",CS_READONLY_URN:"urn:janus:role:b9d0931a01034fa095aa1a18ec303bac",CS_ADMIN:"Admin",CS_ADMIN_URN:"urn:janus:role:ab0cc31ad04a4090b41b0e552f7a3742",CS_BILLING:"Billing",CS_BILLING_URN:"urn:janus:role:2f4a76d16c9a47609255a253d873135c",CS_REPORTS:"Reports",CS_REPORTS_URN:"urn:janus:role:076e6514fe1f4d5abf307dc9fee7bbeb",PP_ADMIN:"PRESTOplay admin",PP_ADMIN_URN:"urn:janus:role:b79b1a10741f43b2bc0d1302d61b5865",PP_USER:"PRESTOplay user",PP_USER_URN:"urn:janus:role:7f2c7c7ee74d46e8936461d57180a1d3",DT_MEMBERS:"Members",DT_MEMBERS_URN:"urn:janus:role:2e5cfd4579d1485ca7e5f8cc97bdfe32",DT_SUBORGS:"Sub-organizations",DT_SUBORGS_URN:"urn:janus:role:2042447e1ae944c5a2bb75c9dd7077f3",DT_CONFIGURATION:"Configuration",DT_CONFIGURATION_URN:"urn:janus:role:07ac6d78216e41528d1b04a0ad737bc6",DT_KEYS_DELETE:"Key delete",DT_KEYS_DELETE_URN:"urn:janus:role:a79f863667944cca89588f69ea9d61dc",DT_KEYS_INGEST:"Key ingest",DT_KEYS_INGEST_URN:"urn:janus:role:08b9f5a98f084dd59d766be7039b504d",DT_ASSETS:"Assets",DT_ASSETS_URN:"urn:janus:role:4a2551570d644c08abb2795ccb8474cc",DT_DELIVERIES:"Deliveries",DT_DELIVERIES_URN:"urn:janus:role:7e23400fa5b84a38bbeca2ee515e5c9d",DTO_DEVICES:"Devices",DTO_DEVICES_URN:"urn:janus:role:c4e5556c769f4b23af3e502f9c589511",DTO_KEYBOX:"Keyboxes",DTO_KEYBOX_URN:"urn:janus:role:0658721525624ccc8fa612add5152d03",DTO_DOWNLOAD:"Downloads",DTO_DOWNLOAD_URN:"urn:janus:role:50905ceedf494b5e8d4379c0edce4b00",DTO_REPORTS:"Reports",DTO_REPORTS_URN:"urn:janus:role:50905ceedf494b5e8d4379c0edce4b01",DTO_CONFIGURATION:"Configuration",DTO_CONFIGURATION_URN:"urn:janus:role:50905ceedf494b5e8d4379c0edce4b02",DTS_MEMBERS:"Members",DTS_MEMBERS_URN:"urn:janus:role:36f4f90309294ceaa4f94e56953c1726",DTS_SUBORGS:"Sub-organizations",DTS_SUBORGS_URN:"urn:janus:role:471fe9be7e5d46feb6d84dd52e308b71",DTS_CONFIGURATION:"Configuration",DTS_CONFIGURATION_URN:"urn:janus:role:ff16e9fd5acc48e8a9acc078d2b72e7d",DTS_KEYS_DELETE:"Key delete",DTS_KEYS_DELETE_URN:"urn:janus:role:3f8dc55d3dbb4a4e893ba33ced829642",DTS_KEYS_INGEST:"Key ingest",DTS_KEYS_INGEST_URN:"urn:janus:role:471c6826d37f4d3aaa43cb3a3fda63ae",DTS_ASSETS:"Assets",DTS_ASSETS_URN:"urn:janus:role:f7c9335c70f14e4bb15d3f30761b8626",DTS_DELIVERIES:"Deliveries",DTS_DELIVERIES_URN:"urn:janus:role:e79a8f99a96a45238283b3c049e7374b",VTK_ADMIN:"Video Toolkit admin",VTK_ADMIN_URN:"urn:janus:role:8ff40a162b834e96a36f7ddbfda475ef",VTK_USER:"Video Toolkit user",VTK_USER_URN:"urn:janus:role:33c9c2001ca14dde9c3b310d0748b8b4",CP_USER:"Content Platform user",CP_USER_URN:"urn:janus:role:33c9c2001ca14dde9c3b310d0748b871",WM_DEMO:"Demo",WM_DEMO_URN:"urn:janus:role:33c9c2001ca14dde9c3b310d0748b850",WM_EXTRACTION:"Extraction",WM_EXTRACTION_URN:"urn:janus:role:33c9c2001ca14dde9c3b310d0748b851"},Vr={UNKNOWN:null,ACTIVE:0,PENDING:1,DELETED:2,SUSPENDED:3},Nh={...Vr,APPROVAL_REQUIRED:4,APPROVAL_DENIED:5,APPROVAL_REVOKED:6},Th={UNKNOWN:null,TRIAL:0,STARTER:1,ENTERPRISE:2,CUSTOM:3},H={SERVICE:Z,ROLE:j,STATE:Vr,LICENSE_STATE:Nh,PLAN:Th};function Me(e,i,l){return mi(e,`https://account.test.cs.castlabs.com/o/${i??""}${l??""}`,`https://account.castlabs.com/o/${i??""}${l??""}`)}const fe={CP:{id:"CP",subtitle:Z.CP_TAGLINE,title:Z.CP,services:[H.SERVICE.CP_URN],roles:[j.CP_USER_URN],urlManage:(e,i)=>Ln(e,`https://platform.content.castlabs.com/#/o/${i??""}`,`https://platform.content-stag.castlabs.com/#/o/${i??""}`),urlPlan:(e,i)=>Me(e,i),sidenav:!1},CS:{id:"CS",subtitle:Z.CS_TAGLINE,title:Z.CS,services:[H.SERVICE.CS_URN],roles:[],urlManage:(e,i)=>Me(e,i),urlPlan:(e,i)=>Me(e,i),sidenav:!0},DT:{id:"DT",subtitle:Z.DT_TAGLINE,title:Z.DT,services:[H.SERVICE.DT_URN],roles:[j.DT_MEMBERS_URN,j.DT_SUBORGS_URN,j.DT_CONFIGURATION_URN,j.DT_KEYS_DELETE_URN,j.DT_KEYS_INGEST_URN,j.DT_ASSETS_URN,j.DT_DELIVERIES_URN],urlManage:(e,i)=>mi(e,`https://fe.test.drmtoday.com/dashboard/${i?`${i}/`:""}index`,`https://fe.drmtoday.com/dashboard/${i?`${i}/`:""}index`),urlPlan:(e,i)=>Me(e,i,"/plans/drmtoday"),sidenav:!0},DTO:{id:"DTO",subtitle:Z.DTO_TAGLINE,title:Z.DTO,services:[H.SERVICE.DTO_URN],roles:[j.DTO_DEVICES_URN,j.DTO_KEYBOX_URN,j.DTO_DOWNLOAD_URN,j.DTO_CONFIGURATION_URN,j.DTO_REPORTS_URN],urlManage:(e,i)=>`https://onboard.castlabs.com/o/${i??""}/devices`,urlPlan:(e,i)=>Me(e,i),sidenav:!1},DTS:{id:"DTS",subtitle:Z.DTS_TAGLINE,title:Z.DTS,services:[H.SERVICE.DTS_URN],roles:[j.DTS_MEMBERS_URN,j.DTS_SUBORGS_URN,j.DTS_CONFIGURATION_URN,j.DTS_KEYS_DELETE_URN,j.DTS_KEYS_INGEST_URN,j.DTS_ASSETS_URN,j.DTS_DELIVERIES_URN],urlManage:(e,i)=>mi(e,`https://fe.test.drmtoday.com/dashboard/${i?`${i}/`:""}index`,`https://fe.staging.drmtoday.com/dashboard/${i?`${i}/`:""}index`),urlPlan:(e,i)=>Me(e,i,"/plans/drmtoday"),sidenav:!1},PP:{id:"PP",subtitle:Z.PP_TAGLINE,title:Z.PP,services:[H.SERVICE.PP_URN,H.SERVICE.PP_URN_ANDROID,H.SERVICE.PP_URN_BROWSER,H.SERVICE.PP_URN_GSTREAMER,H.SERVICE.PP_URN_IOS,H.SERVICE.PP_URN_REACTNATIVE,H.SERVICE.PP_URN_WEBRTC],roles:[j.PP_USER_URN,j.PP_ADMIN_URN],urlManage:(e,i)=>Ln(e,`https://account.castlabs.com/o/${i}/prestoplay`,`https://account.test.cs.castlabs.com/o/${i}/prestoplay`),urlPlan:(e,i)=>Me(e,i,"/plans/prestoplay"),sidenav:!0},WM:{id:"WM",subtitle:Z.WM_TAGLINE,title:Z.WM,services:[H.SERVICE.WM_URN],roles:[j.WM_DEMO_URN,j.WM_EXTRACTION_URN],urlManage:(e,i)=>Ln(e,`https://watermark.castlabs.com/#/o/${i}`,`https://demo-stag.fwm.castlabs.com/#/o/${i}`),urlPlan:(e,i)=>Me(e,i,"/plans/wm"),sidenav:!0},VTK:{id:"VTK",subtitle:Z.VTK_TAGLINE,services:[H.SERVICE.VTK_URN],roles:[j.VTK_USER_URN,j.VTK_ADMIN_URN],title:Z.VTK,urlManage:(e,i)=>Ln(e,`https://vtk.castlabs.com/${i}`,`https://vtks.castlabs.com/${i}`),urlPlan:(e,i)=>Me(e,i,"/plans/vtk"),sidenav:!0}};function mi(e,i,l){return Ln(e,i,l,[lo.DEV,lo.TEST])}function Ln(e,i,l,r=[lo.PROD]){return r.includes(e)?i:l}function Oh(e,i){let l=null;for(const r of i){const c=Ah(e,r);c&&(l===null||l.status===H.LICENSE_STATE.APPROVAL_REQUIRED&&c.status===H.LICENSE_STATE.ACTIVE||l.plan===H.PLAN.TRIAL&&c.plan!==H.PLAN.TRIAL)&&(l=c)}return l}function Ah(e,i){for(const l of e.organization?.licenses??[])if(l.service===i&&[H.LICENSE_STATE.ACTIVE,H.LICENSE_STATE.APPROVAL_REQUIRED].includes(l.status))return l;return null}function gi(e){return{id:e.id,title:e.title,subtitle:e.subtitle,url:"#",locked:!1,disabled:!1,badge:void 0}}function Rn(e){return{...gi(e),locked:!0,disabled:!0}}function vi(e,i,l){return{...gi(e),url:e.urlManage(l,i)}}function Dh(e,i,l){return{...vi(e,i,l),badge:"Trial"}}function Bh(e,i,l){return{...gi(e),url:e.urlPlan(l,i),badge:"Subscribe",locked:!0}}function Vh(e,i,l){return{...gi(e),url:e.urlPlan(l,i),badge:"Pending",locked:!0}}function Ih(e,i,l,r,c){return i?[H.LICENSE_STATE.APPROVAL_REQUIRED].includes(i.status)?Vh(e,l,r):i.plan===H.PLAN.TRIAL?Dh(e,l,r):c?vi(e,l,r):Rn(e):[fe.DTS.id].includes(e.id)?null:Bh(e,l,r)}function Mn(e,i,l,r){const c=Oh(e,i.services);return Ih(i,c,l,r,!!e.roles.find(u=>i.roles.includes(u.role_urn)))}function Mh(e,i,l){const r=[vi(fe.CS,i,l)];r.push(Mn(e,fe.DT,i,l));const c=Mn(e,fe.DTS,i,l);return c&&r.push(c),r.push(Mn(e,fe.PP,i,l)),r.push(Mn(e,fe.WM,i,l)),r.push(Mn(e,fe.VTK,i,l)),r}function Lh(e,i,l){for(const r of e)if(r.organization?.organization_urn===i)return Mh(r,i,l);return[vi(fe.CS),Rn(fe.DT),Rn(fe.PP),Rn(fe.WM),Rn(fe.VTK)]}function Rh(e,i,l){let r=JSON.parse(JSON.stringify(e));return l&&(r=r.filter(c=>c.organization.licenses.find(u=>u.service===l))),i&&(r=r.filter(c=>c.roles.find(u=>u.role_urn===i))),r}function Ph(e){return mi(e,"https://account.test.cs.castlabs.com/account","https://account.castlabs.com/account")}function zh(){return[Ue.CS,Ue.CP,Ue.DT,Ue.DTS,Ue.DTO,Ue.PP,Ue.WM,Ue.VTK]}const Ue=fe,Ir="✺";let li={};function Fh(e,i="",l=!1){const r=li[i]??xe(Mr(i));return Object.keys(li).length>100&&(li={}),li[i]=r,nt(l?e.toLowerCase():e,r,l)}function nt(e,i,l){if(typeof i=="string"){const r=i.replaceAll(Ir," ");return r[0]==="-"?!nt(e,r.substring(1),l):l?e.includes(r):e.toLowerCase().includes(r.toLowerCase())}else switch(i[0]){case"&":return nt(e,i[1])&&nt(e,i[2]);case"|":return nt(e,i[1])||nt(e,i[2]);default:return!1}}function Mr(e){const i=[];let l=!1;for(let d=0;d<e.length;d++)l?e[d]===l?l=!1:i.push([" "].includes(e[d])?Ir:e[d]):["'",'"'].includes(e[d])?l=e[d]:i.push(e[d]);const r=i.join("").replace(/\s+/g," ").trim();if(r.length<=0)return"";const c=r.split(" ");if(c.length<=0)return"";const u=[];["NOT","-"].includes(c[0])||u.push(c.shift());for(let d=0;d<c.length;d++)switch(c[d]){case"AND":case"&":case"&&":switch(c[++d]){case"NOT":case"-":c[d+1]&&(u.push("&"),u.push("-"),u.push(c[++d]));break;case void 0:break;default:u.push("&"),u.push(c[d])}break;case"OR":case"|":case"||":switch(c[++d]){case"NOT":case"-":c[d+1]&&(u.push("|"),u.push("-"),u.push(c[++d]));break;case void 0:break;default:u.push("|"),u.push(c[d])}break;case"NOT":case"-":u.push("-"),u.push(c[++d]);break;default:u.push("&"),u.push(c[d])}return` ${u.join(" ")} `.replace(/ - /g," -").trim()}function xe(e){const i=e.indexOf(" | ");if(i>=0)return["|",xe(e.substring(0,i)),xe(e.substring(i+3))];const l=e.indexOf(" & ");if(l>=0)return["&",xe(e.substring(0,l)),xe(e.substring(l+3))];const r=e.indexOf(" ");return r>=0?["&",xe(e.substring(0,r)),xe(e.substring(r+1))]:e}const jh={install:e=>{let i=0;e.mixin({beforeCreate:function(){let r;const c="uid-"+i++;Object.defineProperties(this,(r={},r.$uid={get:function(){return c}},r))}})}};function Wh(){return{ClAlert:St,ClBackCancelOk:wt,ClCookieBanner:Nt,ClCopy:Tt,ClCreditcardNumber:Ot,ClDropzone:At,ClField:Dt,ClFieldCheck:Bt,ClFieldGroup:Vt,ClHashtag:It,ClIconotron:Mt,ClInfo:Lt,ClLinkExternal:Rt,ClLorem:Pt,ClMailto:zt,ClModal:Ft,ClModalConfirm:jt,ClModalForm:Wt,ClModalOk:Ut,ClNavSide:xt,ClNavTop:qt,ClOrg:Ht,ClPage:Gt,ClPagination:Kt,ClPlan:Yt,ClRole:Xt,ClSectionForm:Qt,ClSectionHeadline:Jt,ClSectionMain:it,ClSectionMainSide:Zt,ClSpinner:en,ClTable:tn,ClTableCel:nn,ClTableCelActions:on,ClTableCelAudit:sn,ClTableCelBoolean:rn,ClTableCelCheckbox:ln,ClTableCelCode:an,ClTableCelCurrency:cn,ClTableCelDate:dn,ClTableCelId:un,ClTableCelLinks:fn,ClTableCelTime:pn,ClTableCelUuid:hn,ClTableFootChecked:mn,ClTableHead:gn,ClTableRow:vn,ClTabs:bn,ClToggle:yn}}const Uh=[/[^a-z]don['`\s]*t/i,/do[\s]+not/i,/[^a-z]won['`\s]*t/i,/will[\s]+not/i,/[^a-z]aren['`\s]*t/i,/are[\s]+not/i,/[^a-z]isn['`\s]*t/i,/is[\s]+not/i,/you['`]*re/i,/you[\s]+are/i,/we['`\s]*re/i,/we[\s]+are/i,/we['`]+ll/i,/we[\s]+will/i,/[^a-z]shouldn['`\s]*t/i,/should[\s]+not/i,/[^a-z]mustn['`\s]*t/i,/must[\s]+not/i,/[^a-z]didn['`\s]*t/i,/did[\s]+not/i,/[^a-z]wasn['`\s]*t/i,/was[\s]+not/i,/[^a-z]hasn['`\s]*t/i,/has[\s]+not/i,/[^a-z]can['`]+t/i,/can[\s]+not/i,/[a-z]n['`]+t/i];function xh(){return[jh]}function mo(e,i){const l=JSON.parse(JSON.stringify(e));for(const r in i)typeof i[r]=="object"&&!Array.isArray(i[r])?l[r]=mo(e[r]??{},i[r]):l[r]=i[r];return l}function qh(e,i){return{store:mo(e,i)}}const so={ClAlert:St,ClBackCancelOk:wt,ClCookieBanner:Nt,ClCopy:Tt,ClCreditcardNumber:Ot,ClDropzone:At,ClField:Dt,ClFieldCheck:Bt,ClFieldGroup:Vt,ClHashtag:It,ClIconotron:Mt,ClInfo:Lt,ClLinkExternal:Rt,ClLorem:Pt,ClMailto:zt,ClModal:Ft,ClModalConfirm:jt,ClModalForm:Wt,ClModalOk:Ut,ClNavSide:xt,ClNavTop:qt,ClOrg:Ht,ClPage:Gt,ClPagination:Kt,ClPlan:Yt,ClRole:Xt,ClSectionForm:Qt,ClSectionHeadline:Jt,ClSectionMain:it,ClSectionMainSide:Zt,ClSpinner:en,ClTable:tn,ClTableCel:nn,ClTableCelActions:on,ClTableCelAudit:sn,ClTableCelBoolean:rn,ClTableCelCheckbox:ln,ClTableCelCode:an,ClTableCelCurrency:cn,ClTableCelDate:dn,ClTableCelId:un,ClTableCelLinks:fn,ClTableCelTime:pn,ClTableCelUuid:hn,ClTableFootChecked:mn,ClTableHead:gn,ClTableRow:vn,ClTabs:bn,ClToggle:yn,ClMockRouterLink:Pn,ClUI:Pc};function Hh(e){for(const i in so)e.component(so[i].name,so[i])}exports.CONST=wh;exports.CS=H;exports.ClAlert=St;exports.ClBackCancelOk=wt;exports.ClCookieBanner=Nt;exports.ClCopy=Tt;exports.ClCreditcardNumber=Ot;exports.ClDropzone=At;exports.ClField=Dt;exports.ClFieldCheck=Bt;exports.ClFieldGroup=Vt;exports.ClHashtag=It;exports.ClIconotron=Mt;exports.ClInfo=Lt;exports.ClLinkExternal=Rt;exports.ClLorem=Pt;exports.ClMailto=zt;exports.ClMockRouterLink=Pn;exports.ClModal=Ft;exports.ClModalConfirm=jt;exports.ClModalForm=Wt;exports.ClModalOk=Ut;exports.ClNavSide=xt;exports.ClNavTop=qt;exports.ClOrg=Ht;exports.ClPage=Gt;exports.ClPagination=Kt;exports.ClPlan=Yt;exports.ClRole=Xt;exports.ClSectionForm=Qt;exports.ClSectionHeadline=Jt;exports.ClSectionMain=it;exports.ClSectionMainSide=Zt;exports.ClSpinner=en;exports.ClTable=tn;exports.ClTableCel=nn;exports.ClTableCelActions=on;exports.ClTableCelAudit=sn;exports.ClTableCelBoolean=rn;exports.ClTableCelCheckbox=ln;exports.ClTableCelCode=an;exports.ClTableCelCurrency=cn;exports.ClTableCelDate=dn;exports.ClTableCelId=un;exports.ClTableCelLinks=fn;exports.ClTableCelTime=pn;exports.ClTableCelUuid=hn;exports.ClTableFootChecked=mn;exports.ClTableHead=gn;exports.ClTableRow=vn;exports.ClTabs=bn;exports.ClToggle=yn;exports.FLECTIONS=Uh;exports._getProperty=$t;exports._sanitize=Mr;exports._tokenize=xe;exports.clCopyData=rd;exports.clDebounce=id;exports.clFocus=Hc;exports.clFormAutofocus=Gc;exports.clFormFieldFocusFirstInvalid=po;exports.clFormFieldReset=kr;exports.clFormIsValid=$r;exports.clFormIsValidAsync=Sr;exports.clFormReset=Cr;exports.clFormatAmount=Jc;exports.clFormatCardNumber=Tr;exports.clFormatDate=wr;exports.clFormatDateTimeUTC=Yc;exports.clFormatDuration=Xc;exports.clFormatFilesize=Kc;exports.clFormatNumber=hi;exports.clFormatPeriod=Qc;exports.clFormatRange=Zc;exports.clFormatTimeUTC=Nr;exports.clGetAllComponents=Wh;exports.clGetAllPlugins=xh;exports.clGetServices=zh;exports.clMatch=Fh;exports.clModalHide=_n;exports.clModalIsShown=qc;exports.clModalShow=fo;exports.clModalValue=ui;exports.clPaginate=Er;exports.clPatch=mo;exports.clPatchStore=qh;exports.clRandomList=sd;exports.clRandomString=od;exports.clRefClField=dd;exports.clRefClFieldGroup=ud;exports.clRefHTMLElement=fd;exports.clReload=ad;exports.clReloadStore=ld;exports.clScrollToId=_r;exports.clSleep=cd;exports.clSort=Or;exports.clSynchronizedSubmit=ed;exports.clSynchronizedSubmitAsync=td;exports.clTableSorter=Ar;exports.clTableSorterObjects=nd;exports.clUi=Hh;exports.clVClipboard=ho;exports.clVTooltip=Cn;exports.csFilterMemberships=Rh;exports.csGetAccountUrl=Ph;exports.csGetNav=Lh;
25
+ justo donec enim diam.`,_u=n.defineComponent({name:"ClLorem",props:{words:{type:Number,default:10},paragraphs:{type:Number,default:0}},methods:{lorem(e){return((e%2?yu:bu).trim().replace(/\s+/g," ").split(" ").splice(0,this.words).join(" ")+".").replace(/\.+/g,".")}}});function Eu(e,i,l,r,c,u){return e.paragraphs<=0?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.lorem(0)),1)],64)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(parseInt(e.paragraphs),d=>(n.openBlock(),n.createElementBlock("p",{key:d},n.toDisplayString(e.lorem(d)),1))),128))}const Pt=k(_u,[["render",Eu]]);Pt.install=e=>{e.component(Pt.name??"ClNoName",Pt)};const Cu=n.defineComponent({name:"ClMailto",props:{to:{type:String,default:"office@castlabs.com"}}}),ku=["href"];function $u(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("a",{class:"cl-a-email",href:`mailto:${e.to}`},n.toDisplayString(e.to),9,ku)}const Rt=k(Cu,[["render",$u]]);Rt.install=e=>{e.component(Rt.name??"ClNoName",Rt)};const Su=n.defineComponent({props:{to:{type:void 0,default:()=>({})},class:{type:String,default:""}},computed:{classes:function(){return this.class}},methods:{push:function(){this.$router.push(this.to)}}}),wu=["to","name","aid","bid","cid","did","eid","fid","gid","hid","iid","jid","kid","lid","mid","nid","oid","pid","qid","rid","sid","tid","uid","vid","wid","xid","yid","zid"];function Nu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("a",{class:n.normalizeClass(e.classes),to:JSON.stringify(e.to),name:e.to.name,aid:e.to.params?.aid,bid:e.to.params?.bid,cid:e.to.params?.cid,did:e.to.params?.did,eid:e.to.params?.eid,fid:e.to.params?.fid,gid:e.to.params?.gid,hid:e.to.params?.hid,iid:e.to.params?.iid,jid:e.to.params?.jid,kid:e.to.params?.kid,lid:e.to.params?.lid,mid:e.to.params?.mid,nid:e.to.params?.nid,oid:e.to.params?.oid,pid:e.to.params?.pid,qid:e.to.params?.qid,rid:e.to.params?.rid,sid:e.to.params?.sid,tid:e.to.params?.tid,uid:e.to.params?.uid,vid:e.to.params?.vid,wid:e.to.params?.wid,xid:e.to.params?.xid,yid:e.to.params?.yid,zid:e.to.params?.zid,onClick:i[0]||(i[0]=d=>e.push())},[n.renderSlot(e.$slots,"default")],10,wu)}const Pn=k(Su,[["render",Nu]]);Pn.install=e=>{e.component(Pn.name??"ClNoName",Pn)};const Tu=n.defineComponent({name:"ClModal",inheritAttrs:!1,props:{id:{type:String,default:null},form:{type:Boolean,default:!1},class:{type:String,default:null},helpUrl:{type:String,default:null},onClose:{type:Function,default:null},onOpen:{type:Function,default:null}},computed:{clazz:function(){return this.class}},mounted(){const e=document.getElementById(this.id||""),i=this;e&&(e.addEventListener("hidden.bs.modal",function(){i.onClose&&i.onClose()}),e.addEventListener("show.bs.modal",function(){i.onOpen&&i.onOpen()}))}}),Ou=["id"],Au={class:"modal-dialog"},Du={class:"modal-content"},Bu={class:"modal-header"},Vu=["href"],Mu=["id"],Lu={key:1,class:"modal-body"},Iu={class:"modal-footer"},Pu={class:"modal-footer-left cl-spacing-box cl-spacing-none"},Ru={class:"modal-footer-center cl-spacing-box cl-spacing-none"},zu={class:"modal-footer-right cl-spacing-box cl-spacing-none"};function Fu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",{id:e.id,class:n.normalizeClass(`modal ${e.clazz}`),tabindex:"-1","data-bs-backdrop":"static"},[n.createElementVNode("div",Au,[n.createElementVNode("div",Du,[n.createElementVNode("div",Bu,[n.renderSlot(e.$slots,"title",{},()=>[i[1]||(i[1]=n.createTextVNode("Information",-1))]),e.helpUrl?(n.openBlock(),n.createElementBlock("a",{key:0,class:"modal-help",href:e.helpUrl,target:"_blank",title:"Show help in new window."},[...i[2]||(i[2]=[n.createElementVNode("i",{class:"far fa-question-circle"},null,-1)])],8,Vu)):n.createCommentVNode("",!0)]),e.form?(n.openBlock(),n.createElementBlock("form",{key:0,id:`${e.id}-form`,class:"modal-body cl-form container",novalidate:"",onSubmit:i[0]||(i[0]=n.withModifiers(()=>{},["prevent"]))},[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")],40,Mu)):(n.openBlock(),n.createElementBlock("div",Lu,[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")])),n.createElementVNode("div",Iu,[n.createElementVNode("span",Pu,[n.renderSlot(e.$slots,"footer-left")]),n.createElementVNode("span",Ru,[n.renderSlot(e.$slots,"footer")]),n.createElementVNode("span",zu,[n.renderSlot(e.$slots,"footer-right")])])])])],10,Ou)}const zt=k(Tu,[["render",Fu]]);zt.install=e=>{e.component(zt.name??"ClNoName",zt)};const ju=n.defineComponent({name:"ClModalConfirm",inheritAttrs:!1,props:{id:{type:String,default:"modal-confirm"},class:{type:String,default:void 0},text:{type:String,default:"confirm"},title:{type:String,default:"Are you sure?"},ok:{type:String,default:void 0},button:{type:String,default:"OK"},spinner:{type:Boolean,default:!1}},data(){return{valid:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},emits:["ok"],methods:{reset:function(){this.valid=!1,kr(this.$refs.text,""),Cr(`${this.id}-form`)},validate:function(){this.valid=this.$refs.text?.validateSilent()}}});function Wu(e,i,l,r,c,u){const d=n.resolveComponent("cl-field"),v=n.resolveComponent("cl-modal-form");return n.openBlock(),n.createBlock(v,{id:e.id,class:n.normalizeClass(e.clazz),"on-open":e.reset,disabled:!e.valid,spinner:e.spinner,valid:e.valid,onOk:i[2]||(i[2]=$=>e.$emit("ok")),ok:e.ok??e.button},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),body:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.createElementVNode("p",null,[i[3]||(i[3]=n.createTextVNode(" To confirm your intention, please type ",-1)),n.createElementVNode("code",null,n.toDisplayString(e.text),1),i[4]||(i[4]=n.createTextVNode(" into this text field: ",-1))]),n.createVNode(d,{ref:"text",type:"text",required:"",pattern:`^${e.text}$`,class:"text-center cl-field-monospace it-confirm",autofocus:"",onChanged:i[0]||(i[0]=$=>e.validate()),onKeyup:i[1]||(i[1]=n.withKeys($=>e.submit(),["enter"]))},null,8,["pattern"])]),_:3},8,["id","class","on-open","disabled","spinner","valid","ok"])}const Ft=k(ju,[["render",Wu]]);Ft.install=e=>{e.component(Ft.name??"ClNoName",Ft)};const Uu=n.defineComponent({name:"ClModalForm",inheritAttrs:!1,props:{id:{type:String,default:"modal-form"},class:{type:String,default:void 0},title:{type:String,default:"Form"},ok:{type:String,default:"OK"},cancel:{type:String,default:"Cancel"},spinner:{type:Boolean,default:!1},valid:{type:Boolean,default:!0},onClose:{type:Function,default:null},onOpen:{type:Function,default:null}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},emits:["ok"],methods:{submit:function(){this.valid&&this.$emit("ok")}}}),xu={type:"button",class:"btn cl-color-secondary it-cancel","data-bs-dismiss":"modal"};function qu(e,i,l,r,c,u){const d=n.resolveComponent("cl-modal");return n.openBlock(),n.createBlock(d,{id:e.id,class:n.normalizeClass(e.clazz),form:"","on-open":e.onOpen,"on-close":e.onClose},n.createSlots({body:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")]),"footer-left":n.withCtx(()=>[n.createElementVNode("button",xu,[n.createElementVNode("span",null,n.toDisplayString(e.cancel),1)])]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:n.normalizeClass(["btn cl-color-primary it-ok",{disabled:!e.valid,"cl-btn-spinner":e.spinner}]),onClick:i[0]||(i[0]=v=>e.submit())},[n.createElementVNode("span",null,n.toDisplayString(e.ok),1)],2)]),_:2},[e.$slots.title?{name:"title",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"title")]),key:"0"}:{name:"title",fn:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),key:"1"}]),1032,["id","class","on-open","on-close"])}const jt=k(Uu,[["render",qu]]);jt.install=e=>{e.component(jt.name??"ClNoName",jt)};const Hu=n.defineComponent({name:"ClModalOk",inheritAttrs:!1,props:{id:{type:String,default:"modal-ok"},class:{type:String,default:void 0},title:{type:String,default:"Information"},form:{type:Boolean,default:!1},body:{type:String,default:void 0},ok:{type:String,default:void 0},button:{type:String,default:"OK"},cancel:{type:String,default:null},spinner:{type:Boolean,default:!1},onClose:{type:Function,default:null},onOpen:{type:Function,default:null}},emits:["ok","cancel"],data(){return{emitted:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},methods:{buttonOk:function(){this.emitted=!0,yn(),this.$emit("ok",di(this.id))},buttonCancel:function(){this.emitted=!0,yn(),this.$emit("cancel",di(this.id))},opened:function(){this.emitted=!1,this.onOpen&&this.onOpen()},closed:function(){this.emitted||this.$emit("cancel",di(this.id)),this.onClose&&this.onClose()}}});function Gu(e,i,l,r,c,u){const d=n.resolveComponent("cl-modal");return n.openBlock(),n.createBlock(d,{id:e.id,class:n.normalizeClass(e.clazz),form:e.form,"on-open":e.opened,"on-close":e.closed},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),body:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.createTextVNode(n.toDisplayString(e.body),1)]),"footer-left":n.withCtx(()=>[e.cancel?(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"btn cl-color-secondary it-cancel",onClick:i[0]||(i[0]=(...v)=>e.buttonCancel&&e.buttonCancel(...v))},[n.createElementVNode("span",null,n.toDisplayString(e.cancel),1)])):n.createCommentVNode("",!0)]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:n.normalizeClass(["btn cl-color-primary it-ok",{"cl-btn-spinner":e.spinner}]),onClick:i[1]||(i[1]=(...v)=>e.buttonOk&&e.buttonOk(...v))},[n.createElementVNode("span",null,n.toDisplayString(e.ok??e.button),1)],2)]),_:3},8,["id","class","form","on-open","on-close"])}const Wt=k(Hu,[["render",Gu]]);Wt.install=e=>{e.component(Wt.name??"ClNoName",Wt)};function Dr(){const e=document.getElementById("cl-nav-side");if(e)if(e.checked){e.parentNode.classList.add("cl-nav-side-open");try{localStorage.setItem("sidenavOpen","true")}catch(i){i.ignore?.()}}else{e.parentNode.classList.remove("cl-nav-side-open");try{localStorage.setItem("sidenavOpen","false")}catch(i){i.ignore?.()}}}function Ku(){ur(Yu()),document.querySelectorAll(".cl-nav-drawer a").forEach(e=>{e.addEventListener("click",()=>{if(Br()){ur(!1);try{localStorage.setItem("sidenavOpen","false")}catch(i){i.ignore?.()}}})}),document.getElementById("cl-nav-side")?.addEventListener("change",function(){Dr()}),document.querySelectorAll(".cl-nav-drawer details[id]").forEach(e=>{e.addEventListener("toggle",i=>{try{localStorage.setItem(`cl-nav-${e.id}`,i.target.hasAttribute("open"))}catch(l){l.ignore?.()}});try{localStorage.getItem(`cl-nav-${e.id}`)==="true"&&(e.open=!0)}catch(i){i.ignore?.()}}),setTimeout(function(){document.querySelectorAll("body").forEach(e=>{e.classList.add("cl-animate")})},1e3)}function ur(e){const i=document.getElementById("cl-nav-side");i&&(i.checked=e)}function Br(){return Math.max(document?.documentElement?.clientWidth||0,window?.innerWidth||0)<1200}function Yu(){const e=localStorage.getItem("sidenavOpen");return e==null?!Br():JSON.parse(e)}const Xu=n.defineComponent({name:"ClNavSide",inheritAttrs:!1,props:{class:{type:String,default:void 0}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},mounted(){this.setup()},methods:{toggle:function(){Dr()},setup:function(){this.$nextTick(()=>{Ku()})}}}),Qu={class:"cl-nav-side"},Ju={class:"cl-nav-drawer"},Zu={"data-simplebar":""};function ef(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("input",{id:"cl-nav-side",type:"checkbox",class:n.normalizeClass(`cl-nav-checkbox${e.clazz}`),onChange:i[0]||(i[0]=(...d)=>e.toggle&&e.toggle(...d)),tabindex:"-1"},null,34),n.createElementVNode("nav",Qu,[i[1]||(i[1]=n.createElementVNode("label",{class:"cl-nav-backdrop",for:"cl-nav-side"},null,-1)),n.createElementVNode("div",Ju,[n.createElementVNode("div",Zu,[n.renderSlot(e.$slots,"default")])])])],64)}const Ut=k(Xu,[["render",ef]]);Ut.install=e=>{e.component(Ut.name??"ClNoName",Ut)};const tf=n.defineComponent({name:"ClNavTop",inheritAttrs:!1,props:{class:{type:String,default:void 0}},computed:{isFluid:function(){return this.$route.meta?.fluid},clazz:function(){return this.class?` ${this.class}`:""},containerClass:function(){return this.isFluid?"container-fluid":"container"}}}),nf={class:"row"},of={class:"col-12 cl-grid-flex-centered"};function sf(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("nav",{id:"cl-nav-top",class:n.normalizeClass(`cl-nav-top${e.clazz}`)},[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",nf,[n.createElementVNode("div",of,[i[0]||(i[0]=n.createElementVNode("label",{class:"cl-nav-side-burger",for:"cl-nav-side"},[n.createElementVNode("i",{class:"fas fa-bars"})],-1)),n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"title")])])],2)],2)}const xt=k(tf,[["render",sf]]);xt.install=e=>{e.component(xt.name??"ClNoName",xt)};const rf=n.defineComponent({name:"ClOrg",props:{name:{type:String,default:"No organization"}}}),lf={class:"cl-org"};function af(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("span",lf,[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")])}const qt=k(rf,[["render",af]]);qt.install=e=>{e.component(qt.name??"ClNoName",qt)};const cf=n.defineComponent({name:"ClPage",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},title:{type:String,default:void 0},loading:{type:Boolean,default:!1},notFound:{type:Boolean,default:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},mounted(){const e=this.$route?.query?.goto;e&&_r(e)},methods:{back(){history.go(-1)}}}),df={key:0,class:"cl-page-spinner"};function uf(e,i,l,r,c,u){const d=n.resolveComponent("cl-section-headline"),v=n.resolveComponent("cl-spinner"),$=n.resolveComponent("cl-section-main");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(d,{id:e.id??e.$route.name,title:e.title??e.$route.meta?.title??"Castlabs",class:n.normalizeClass(e.clazz),fluid:e.$route.meta?.fluid},null,8,["id","title","class","fluid"]),e.loading?(n.openBlock(),n.createElementBlock("div",df,[n.createVNode(v)])):e.notFound?n.renderSlot(e.$slots,"notFound",{key:1},()=>[n.createVNode($,{fluid:e.$route.meta?.fluid},{default:n.withCtx(()=>[i[2]||(i[2]=n.createElementVNode("p",{class:"cl-p-large"},"Hmm, it seems we can’t find what you’re looking for.",-1)),i[3]||(i[3]=n.createElementVNode("p",{class:"alert cl-alert-info"},"This resource may have been moved or it might have expired.",-1)),n.createElementVNode("button",{type:"button",class:"btn cl-color-secondary cl-spacing-large",onClick:i[0]||(i[0]=(...D)=>e.back&&e.back(...D))},[...i[1]||(i[1]=[n.createElementVNode("span",null,"Back",-1)])])]),_:1},8,["fluid"])]):n.renderSlot(e.$slots,"default",{key:2})],64)}const Ht=k(cf,[["render",uf]]);Ht.install=e=>{e.component(Ht.name??"ClNoName",Ht)};function ff(e,i,l,r){const c=[],u=Math.ceil(e/i);l<1&&(l=1),l>u&&(l=u);for(let d=1;d<=u;d++)(d>=l-r&&d<=l+r||d===1||d===u)&&c.push(d);return{previous:l>1?l-1:null,next:l<u?l+1:null,current:l,pages:c}}const pf=n.defineComponent({name:"ClPagination",props:{items:{type:Number,default:0},pagesize:{type:Number,default:25},current:{type:Number,default:1},window:{type:Number,default:3},test:{type:Boolean,default:!1}},emits:["page"],computed:{pager:function(){return ff(this.items,this.pagesize,this.current,this.window)}}}),hf={key:0,class:"col-12 cl-spacing-medium"},mf={class:"pagination"},gf={key:0,class:"page-item"},vf={key:1,class:"page-item disabled"},bf={key:0,class:"page-item disabled"},yf=["onClick"],_f={key:2,class:"page-item"},Ef={key:3,class:"page-item disabled"};function Cf(e,i,l,r,c,u){return e.pager?.pages?.length>1?(n.openBlock(),n.createElementBlock("nav",hf,[n.createElementVNode("ul",mf,[e.pager.previous?(n.openBlock(),n.createElementBlock("li",gf,[n.createElementVNode("button",{type:"button",class:"page-link",onClick:i[0]||(i[0]=d=>e.$emit("page",e.pager.previous))},[i[2]||(i[2]=n.createElementVNode("i",{class:"fas fa-arrow-left"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("P")],64)):n.createCommentVNode("",!0)])])):(n.openBlock(),n.createElementBlock("li",vf,[i[3]||(i[3]=n.createElementVNode("i",{class:"fas fa-arrow-left"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("P")],64)):n.createCommentVNode("",!0)])),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.pager.pages,(d,v)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[v>0&&e.pager.pages[v-1]!==d-1?(n.openBlock(),n.createElementBlock("li",bf," … ")):n.createCommentVNode("",!0),n.createElementVNode("li",{class:n.normalizeClass(["page-item",{active:d===e.pager.current}])},[n.createElementVNode("button",{class:"page-link",onClick:$=>e.$emit("page",d)},n.toDisplayString(d),9,yf)],2)],64))),128)),e.pager.next?(n.openBlock(),n.createElementBlock("li",_f,[n.createElementVNode("button",{type:"button",class:"page-link",onClick:i[1]||(i[1]=d=>e.$emit("page",e.pager.next))},[i[4]||(i[4]=n.createElementVNode("i",{class:"fas fa-arrow-right"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("N")],64)):n.createCommentVNode("",!0)])])):(n.openBlock(),n.createElementBlock("li",Ef,[i[5]||(i[5]=n.createElementVNode("i",{class:"fas fa-arrow-right"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("N")],64)):n.createCommentVNode("",!0)]))])])):n.createCommentVNode("",!0)}const Gt=k(pf,[["render",Cf]]);Gt.install=e=>{e.component(Gt.name??"ClNoName",Gt)};const kf=n.defineComponent({name:"ClPlan",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-plan ";return!this.primary&&!this.secondary?e+=" cl-color-ash":this.primary?e+=" cl-color-red":this.secondary&&(e+=" cl-color-steel"),e+(this.class?` ${this.class}`:"")}}}),$f={key:0,class:"cl-badge-derived"},Sf=["id"],wf=["id"];function Nf(e,i,l,r,c,u){return e.derived?(n.openBlock(),n.createElementBlock("span",$f,[n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,Sf)])):(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,wf))}const Kt=k(kf,[["render",Nf]]);Kt.install=e=>{e.component(Kt.name??"ClNoName",Kt)};const Tf=n.defineComponent({name:"ClRole",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-role ";return!this.primary&&!this.secondary?e+=" cl-color-ash":this.primary?e+=" cl-color-red":this.secondary&&(e+=" cl-role-steel"),e+(this.class?` ${this.class}`:"")}}}),Of={key:0,class:"cl-badge-derived"},Af=["id"],Df=["id"];function Bf(e,i,l,r,c,u){return e.derived?(n.openBlock(),n.createElementBlock("span",Of,[n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,Af)])):(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,Df))}const Yt=k(Tf,[["render",Bf]]);Yt.install=e=>{e.component(Yt.name??"ClNoName",Yt)};const Vf=n.defineComponent({name:"ClSectionForm",props:{id:{type:String,default:"FORM"},fluid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},noCol:{type:Boolean,default:!1}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},containerClass:function(){return this.isFluid?"cl-form container-fluid":"cl-form container"}}}),Mf={class:"cl-section cl-section-form cl-color-haze"},Lf=["id"],If=["disabled"],Pf={key:1,class:"col-12"};function Rf(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("section",Mf,[n.createElementVNode("form",{id:e.id,novalidate:"",class:n.normalizeClass(e.containerClass),onSubmit:i[0]||(i[0]=n.withModifiers(()=>{},["prevent"]))},[n.createElementVNode("fieldset",{class:"row",disabled:e.disabled},[e.noCol?n.renderSlot(e.$slots,"default",{key:0}):(n.openBlock(),n.createElementBlock("div",Pf,[n.renderSlot(e.$slots,"default")]))],8,If)],42,Lf)])}const Xt=k(Vf,[["render",Rf]]);Xt.install=e=>{e.component(Xt.name??"ClNoName",Xt)};const zf=n.defineComponent({name:"ClSectionHeadline",props:{fluid:{type:Boolean,default:!1},title:{type:String,default:void 0},href:{type:String,default:void 0}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},containerClass:function(){return this.isFluid?"container-fluid cl-container-spacing-small":"container cl-container-spacing-small"}}}),Ff={class:"cl-section cl-section-headline"},jf={class:"row"},Wf={class:"col-12"},Uf={key:0},xf=["href"];function qf(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("section",Ff,[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",jf,[n.createElementVNode("div",Wf,[e.title?(n.openBlock(),n.createElementBlock("h1",Uf,[n.createTextVNode(n.toDisplayString(e.title),1),e.href?(n.openBlock(),n.createElementBlock("a",{key:0,href:e.href,class:"cl-headline-help-icon",target:"_blank",rel:"noopener noreferrer",title:"Help"},[...i[0]||(i[0]=[n.createElementVNode("i",{class:"fas fa-question-circle"},null,-1)])],8,xf)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"default")])])],2)])}const Qt=k(zf,[["render",qf]]);Qt.install=e=>{e.component(Qt.name??"ClNoName",Qt)};const Hf=n.defineComponent({name:"ClSectionMain",props:{alternate:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},noCol:{type:Boolean,default:!1}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},sectionClass:function(){return this.alternate?"cl-section-alternate":"cl-section"},containerClass:function(){return this.isFluid?"container-fluid":"container"}}}),Gf={class:"row"},Kf={key:1,class:"col-12"};function Yf(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("section",{class:n.normalizeClass(e.sectionClass)},[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",Gf,[e.noCol?n.renderSlot(e.$slots,"default",{key:0}):(n.openBlock(),n.createElementBlock("div",Kf,[n.renderSlot(e.$slots,"default")]))])],2)],2)}const nt=k(Hf,[["render",Yf]]);nt.install=e=>{e.component(nt.name??"ClNoName",nt)};const Xf=n.defineComponent({name:"ClSectionMainSide",components:{ClSectionMain:nt},props:{alternate:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},slim:{type:Boolean,default:!1}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},mainClass:function(){return"col-12 "+(this.slim?"col-lg-9":"col-lg-8")},sideClass:function(){return"col-12 "+(this.slim?"col-lg-3":"col-lg-4")},sectionClass:function(){return"cl-section-main-side "+(this.alternate?"cl-section-alternate":"")}}});function Qf(e,i,l,r,c,u){const d=n.resolveComponent("cl-section-main");return n.openBlock(),n.createBlock(d,{class:n.normalizeClass(e.sectionClass),"no-col":"",fluid:e.isFluid},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(e.mainClass)},[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"main")],2),e.$slots.side?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.sideClass)},[n.renderSlot(e.$slots,"side")],2)):n.createCommentVNode("",!0)]),_:3},8,["class","fluid"])}const Jt=k(Xf,[["render",Qf]]);Jt.install=e=>{e.component(Jt.name??"ClNoName",Jt)};const Jf=n.defineComponent({name:"ClSpinner",props:{title:{type:String,default:"Loading ..."}}}),Zf={class:"cl-spinner"};function ep(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",Zf,[n.createTextVNode(n.toDisplayString(e.title),1),i[0]||(i[0]=n.createElementVNode("i",{class:"fas fa-spinner fa-spin"},null,-1))])}const Zt=k(Jf,[["render",ep]]);Zt.install=e=>{e.component(Zt.name??"ClNoName",Zt)};function tp(e){document.querySelectorAll(`#${e} .cl-resizer`).forEach(i=>{np(i)})}let Rn=0,_n=null;function np(e){Rn=0,_n=null,e.addEventListener("mousedown",ip),document.addEventListener("mousemove",op),document.addEventListener("mouseup",sp)}const ip=e=>{e.preventDefault(),_n=e.target?e.target.parentElement:null,Rn=e.pageX},op=e=>{if(_n!==null){e.preventDefault();const i=e.pageX-Rn;Rn=e.pageX;const l=rp(_n),r=e.target?.closest("table")?.id??"unknown";!!document.querySelector(`#${r}.cl-table-nowrap`)?document.querySelectorAll(`#${r} tr th:nth-child(${l-1})`).forEach(u=>{const d=(u.style.maxWidth===""?u.offsetWidth:parseInt(u.style.maxWidth))+i;u.style.width=(d>32?d:32)+"px",u.style.maxWidth=(d>32?d:32)+"px"}):(document.querySelectorAll(`#${r} tr td:nth-child(${l-1})`).forEach(u=>{const d=u.offsetWidth+i;u.style.width=(d>32?d:32)+"px"}),document.querySelectorAll(`#${r} tr td:nth-child(${l})`).forEach(u=>{const d=u.offsetWidth-i;u.style.width=(d>32?d:32)+"px"}))}},sp=e=>{_n!==null&&(e.preventDefault(),Rn=0,_n=null)};function rp(e){let i=0;for(;e;)i++,e=e.previousElementSibling;return i}const lp=n.defineComponent({name:"ClTable",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},nowrap:{type:Boolean,default:!1},noDataText:{type:String,default:"No data available."},rows:{type:Number,default:1},nonresponsive:{type:Boolean,default:!1},hideCols:{type:Array,default:void 0},fixed:{type:Boolean,default:!1}},data(){return{show:Array(32).fill(!0)}},computed:{clazz:function(){let e=this.class;this.nonresponsive&&(e+=" cl-table-nonresponsive"),this.nowrap&&(e+=" cl-table-nowrap"),this.fixed&&(e+=" cl-table-fixed");for(let i=1;i<=this.show.length;i++)this.show[i-1]||(e+=` cl-table-col-${i}-hide`);return e}},watch:{rows:function(){this.setupResizer()}},mounted(){this.setupResizer()},methods:{setupResizer:function(){this.$nextTick(()=>{tp(this.$uid)})}}}),ap=["id"],cp=["id"],dp={key:0},up={key:1},fp={class:"cl-tr-no-data"},pp={colspan:"100"},hp={key:2},mp={class:"cl-tr-no-data"},gp={colspan:"100"},vp={key:3};function bp(e,i,l,r,c,u){const d=n.resolveComponent("cl-spinner"),v=n.resolveComponent("cl-field-check"),$=n.resolveComponent("cl-modal-ok");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",{id:e.id,class:"cl-table-scroll"},[n.createElementVNode("table",{id:e.$uid,class:n.normalizeClass(`cl-table-data ${e.clazz}`)},[n.createElementVNode("thead",null,[n.createElementVNode("tr",null,[n.renderSlot(e.$slots,"header")])]),e.rows>=1?(n.openBlock(),n.createElementBlock("tbody",dp,[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")])):e.rows===0?(n.openBlock(),n.createElementBlock("tbody",up,[n.createElementVNode("tr",fp,[n.createElementVNode("td",pp,n.toDisplayString(e.noDataText),1)])])):(n.openBlock(),n.createElementBlock("tbody",hp,[n.createElementVNode("tr",mp,[n.createElementVNode("td",gp,[n.createVNode(d)])])])),e.$slots.footer?(n.openBlock(),n.createElementBlock("tfoot",vp,[n.createElementVNode("tr",null,[n.renderSlot(e.$slots,"footer")])])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"tfoot")],10,cp)],8,ap),e.hideCols?(n.openBlock(),n.createBlock($,{key:0,id:e.$uid+"-settings",title:"Configure table"},{default:n.withCtx(()=>[i[0]||(i[0]=n.createElementVNode("p",null,"Which of the following columns would you like to see?",-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.hideCols,(D,q)=>(n.openBlock(),n.createBlock(v,{key:D,value:e.show[q],modelValue:e.show[q],"onUpdate:modelValue":M=>e.show[q]=M},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(D),1)]),_:2},1032,["value","modelValue","onUpdate:modelValue"]))),128))]),_:1},8,["id"])):n.createCommentVNode("",!0)],64)}const en=k(lp,[["render",bp]]);en.install=e=>{e.component(en.name??"ClNoName",en)};const yp=n.defineComponent({name:"ClTableCel",props:{condensed:{type:Boolean,default:!1}}});function _p(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",{class:n.normalizeClass(e.condensed?"cl-font-condensed":"")},[n.renderSlot(e.$slots,"default")],2)}const tn=k(yp,[["render",_p]]);tn.install=e=>{e.component(tn.name??"ClNoName",tn)};const Ep=n.defineComponent({name:"ClTableCelActions",props:{content:{type:String,default:""}}}),Cp={class:"cl-td-actions"};function kp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Cp,[n.createTextVNode(n.toDisplayString(e.content),1),n.renderSlot(e.$slots,"default")])}const nn=k(Ep,[["render",kp]]);nn.install=e=>{e.component(nn.name??"ClNoName",nn)};const $p=n.defineComponent({name:"ClTableCelAudit",directives:{tooltip:En},props:{value:{type:String,default:"???"}}}),Sp={class:"cl-td-audit"},wp={class:"fas fa-info-circle"};function Np(e,i,l,r,c,u){const d=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("td",Sp,[n.withDirectives(n.createElementVNode("i",wp,null,512),[[d,e.value,"left"]])])}const on=k($p,[["render",Np]]);on.install=e=>{e.component(on.name??"ClNoName",on)};const Tp=n.defineComponent({name:"ClTableCelBoolean",props:{value:{type:Boolean,default:!1}}}),Op={class:"cl-td-boolean"};function Ap(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Op,[n.createElementVNode("i",{class:n.normalizeClass(`fas ${e.value?"fa-check":"fa-minus"}`)},null,2)])}const sn=k(Tp,[["render",Ap]]);sn.install=e=>{e.component(sn.name??"ClNoName",sn)};const Dp=n.defineComponent({name:"ClTableCelCheckbox",props:{id:{type:String,default:void 0},disabled:{type:Boolean,default:!1},value:{type:Boolean,default:!1}},emits:["update:modelValue","changed"],data(){return{modelValue:this.value}},watch:{value:function(e){this.modelValue=e}},methods:{emitAll:function(){this.$emit("update:modelValue",this.modelValue),this.$emit("changed",this.modelValue)}}}),Bp={class:"cl-td-checkbox"},Vp={class:"form-check text-center"},Mp=["id","disabled"];function Lp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Bp,[n.createElementVNode("div",Vp,[n.withDirectives(n.createElementVNode("input",{id:e.id??e.$uid,"onUpdate:modelValue":i[0]||(i[0]=d=>e.modelValue=d),class:"form-check-input",type:"checkbox",disabled:e.disabled,onChange:i[1]||(i[1]=d=>e.emitAll())},null,40,Mp),[[n.vModelCheckbox,e.modelValue]])])])}const rn=k(Dp,[["render",Lp]]);rn.install=e=>{e.component(rn.name??"ClNoName",rn)};const Ip=n.defineComponent({name:"ClTableCelCode"}),Pp={class:"cl-td-code"};function Rp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Pp,[n.renderSlot(e.$slots,"default")])}const ln=k(Ip,[["render",Rp]]);ln.install=e=>{e.component(ln.name??"ClNoName",ln)};const zp=n.defineComponent({name:"ClTableCelCurrency",props:{amount:{type:Number,default:0},currency:{type:String,default:"EUR"}}}),Fp={class:"cl-td-currency"};function jp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Fp,n.toDisplayString(e.currency)+" "+n.toDisplayString(new Intl.NumberFormat("en-US").format(e.amount)),1)}const an=k(zp,[["render",jp]]);an.install=e=>{e.component(an.name??"ClNoName",an)};const Wp=n.defineComponent({name:"ClTableCelDate",props:{value:{type:String,default:void 0}},computed:{content:function(){if(this.value){const e=new Date(this.value),i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),l=new Intl.DateTimeFormat("en",{month:"2-digit"}).format(e),r=new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e),c=new Intl.DateTimeFormat("en",{hour:"2-digit",hour12:!1}).format(e),u=new Intl.DateTimeFormat("en",{minute:"2-digit"}).format(e);return`${i}-${l}-${r} ${c}:${u}`}return"-"}}}),Up={class:"cl-td-date"};function xp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Up,n.toDisplayString(e.content),1)}const cn=k(Wp,[["render",xp]]);cn.install=e=>{e.component(cn.name??"ClNoName",cn)};const qp=n.defineComponent({name:"ClTableCelId",directives:{tooltip:En,clipboard:po},props:{value:{type:String,default:"ABCDEF01"},full:{type:String,default:void 0}},computed:{tooltip:function(){return(this.full??this.value)+"<br><small>click-to-copy!</small>"}}}),Hp={class:"cl-td-id"};function Gp(e,i,l,r,c,u){const d=n.resolveDirective("tooltip"),v=n.resolveDirective("clipboard");return n.withDirectives((n.openBlock(),n.createElementBlock("td",Hp,[n.createTextVNode(n.toDisplayString(e.value),1)])),[[d,e.tooltip,"right"],[v,e.full??e.value]])}const dn=k(qp,[["render",Gp]]);dn.install=e=>{e.component(dn.name??"ClNoName",dn)};const Kp=n.defineComponent({name:"ClTableCelLinks",props:{content:{type:String,default:""}}}),Yp={class:"cl-td-links"};function Xp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Yp,[n.createTextVNode(n.toDisplayString(e.content),1),n.renderSlot(e.$slots,"default")])}const un=k(Kp,[["render",Xp]]);un.install=e=>{e.component(un.name??"ClNoName",un)};const Qp=n.defineComponent({name:"ClTableCelTime"}),Jp={class:"cl-td-time"};function Zp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Jp,[n.renderSlot(e.$slots,"default")])}const fn=k(Qp,[["render",Zp]]);fn.install=e=>{e.component(fn.name??"ClNoName",fn)};const eh=n.defineComponent({name:"ClTableCelUuid",props:{value:{type:String,default:"00000000-0000-0000-0000-000000000000"}}});function th(e,i,l,r,c,u){const d=n.resolveComponent("cl-table-cel-id");return n.openBlock(),n.createBlock(d,{value:e.value.substring(0,8),full:e.value},null,8,["value","full"])}const pn=k(eh,[["render",th]]);pn.install=e=>{e.component(pn.name??"ClNoName",pn)};const nh=n.defineComponent({name:"ClTableFootChecked",props:{checked:{type:Object,default:()=>({})}},computed:{any:function(){for(const e in this.checked)if(this.checked[e])return!0;return!1}}}),ih={key:0,class:"cl-table-foot-checked"},oh={class:"cl-td-links",colspan:"100"};function sh(e,i,l,r,c,u){return e.any?(n.openBlock(),n.createElementBlock("tfoot",ih,[n.createElementVNode("tr",null,[n.createElementVNode("td",oh,[i[0]||(i[0]=n.createElementVNode("small",null,[n.createElementVNode("i",{class:"fas fa-share fa-rotate-270 cl-faded"})],-1)),i[1]||(i[1]=n.createTextVNode("   ",-1)),n.renderSlot(e.$slots,"default")])])])):n.createCommentVNode("",!0)}const hn=k(nh,[["render",sh]]);hn.install=e=>{e.component(hn.name??"ClNoName",hn)};const rh=n.defineComponent({name:"ClTableHead",directives:{tooltip:En},props:{resize:{type:Boolean,default:!1},sort:{type:String,default:"OFF"},width:{type:String,default:""},checkbox:{type:Boolean,default:!1},initial:{type:String,default:"NONE"},sorter:{type:Object,default:null},col:{type:Number,default:0},settings:{type:Boolean,default:!1}},emits:["sort","all","none"],data(){return{checkState:this.initial,modelValue:this.initial==="ALL",mySorter:this.sorter}},watch:{initial:function(e,i){e!==i&&(this.checkState=e,this.modelValue=this.checkState==="ALL")}},mounted(){this.$nextTick(()=>{this.mySorter&&this.mySorter.col===this.col&&this.mySorter.sort()})},methods:{check(){switch(this.checkState){case"NONE":case"SOME":this.checkState="ALL",this.$emit("all");break;case"ALL":this.checkState="NONE",this.$emit("none");break}},openSettings(e){let i=e?.target;for(;i;){if(i.tagName==="TABLE"){uo(`${i.id}-settings`);return}i=i.parentElement}},sortCol(){let e="NONE";switch(this.mySorter.col===this.col&&(e=this.mySorter?this.mySorter.order.toUpperCase():this.sort.toUpperCase()),e){case"OFF":break;case"ASC":this.mySorter?this.mySorter.set(this.col,"DESC"):this.$emit("sort","DESC");break;default:this.mySorter?this.mySorter.set(this.col,"ASC"):this.$emit("sort","ASC")}}}}),lh=["id","width"],ah={class:"fas fa-cog cl-faded"},ch={key:0,class:"cl-resizer"},dh={key:1,class:"form-check text-center"},uh=["indeterminate"],fh={key:2,class:"cl-resizer"};function ph(e,i,l,r,c,u){const d=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("th",{id:e.$uid,class:n.normalizeClass(["cl-table-head",{"cl-table-head-sort":e.sort!==null,"cl-table-head-checkbox":e.checkbox,"cl-th-links":e.settings}]),width:e.settings?"1%":e.width},[e.settings?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("button",{type:"button",class:"cl-btn-ghost",onClick:i[0]||(i[0]=(...v)=>e.openSettings&&e.openSettings(...v))},[n.withDirectives(n.createElementVNode("i",ah,null,512),[[d,"Configure table","left"]])]),e.resize?(n.openBlock(),n.createElementBlock("div",ch)):n.createCommentVNode("",!0)],64)):e.checkbox?(n.openBlock(),n.createElementBlock("div",dh,[n.withDirectives(n.createElementVNode("input",{ref:"checkbox","onUpdate:modelValue":i[1]||(i[1]=v=>e.modelValue=v),class:"form-check-input",type:"checkbox",indeterminate:e.checkState==="SOME",onChange:i[2]||(i[2]=v=>e.check())},null,40,uh),[[n.vModelCheckbox,e.modelValue]])])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[e.sort?(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"cl-btn-ghost",onClick:i[3]||(i[3]=(...v)=>e.sortCol&&e.sortCol(...v))},[n.renderSlot(e.$slots,"default"),e.sorter?.col===e.col?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["fas fa-fw",{"fa-sort-up":e.sorter.order.toUpperCase()==="ASC","fa-sort-down":e.sorter.order.toUpperCase()==="DESC","fa-sort":!["ASC","DESC"].includes(e.sorter.order.toUpperCase())}])},null,2)):e.sort!==null?(n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(["fas fa-fw",{"fa-sort-up":e.sort.toUpperCase()==="ASC","fa-sort-down":e.sort.toUpperCase()==="DESC","fa-sort":!["ASC","DESC"].includes(e.sort.toUpperCase())}])},null,2)):n.createCommentVNode("",!0)])):n.renderSlot(e.$slots,"default",{key:1}),e.resize?(n.openBlock(),n.createElementBlock("div",fh)):n.createCommentVNode("",!0)],64))],10,lh)}const mn=k(rh,[["render",ph]]);mn.install=e=>{e.component(mn.name??"ClNoName",mn)};const hh=n.defineComponent({name:"ClTableRow",props:{id:{type:String,default:null},class:{type:String,default:null},highlight:{type:Boolean,default:!1}},computed:{clazz:function(){return this.highlight?this.class+" cl-highlight":this.class}}}),mh=["id"];function gh(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("tr",{id:e.id,class:n.normalizeClass(e.clazz)},[n.renderSlot(e.$slots,"default")],10,mh)}const gn=k(hh,[["render",gh]]);gn.install=e=>{e.component(gn.name??"ClNoName",gn)};const vh=n.defineComponent({name:"ClTabs",props:{index:{type:Number,default:0}},emits:["tab"],data(){return{tabs:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]}},methods:{slotExists(e){return this.$slots[`tabs-${e}-label`]!==void 0},emit(e){this.$emit("tab",e)}}}),bh={class:"cl-tabs"},yh=["id","name","checked","onChange"],_h=["for"];function Eh(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",bh,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,d=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[e.slotExists(d)?(n.openBlock(),n.createElementBlock("input",{key:0,id:`tabs-${e.$uid}-${d}`,class:n.normalizeClass(`cl-tab-${d}`),type:"radio",name:`tabs-${e.$uid}`,checked:e.index===d-1,onChange:v=>e.emit(d)},null,42,yh)):n.createCommentVNode("",!0)],64))),128)),n.createElementVNode("ul",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,d=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[e.slotExists(d)?(n.openBlock(),n.createElementBlock("li",{key:0,class:n.normalizeClass(`cl-tab-${d}`)},[n.createElementVNode("label",{for:`tabs-${e.$uid}-${d}`},[n.renderSlot(e.$slots,`tabs-${d}-label`)],8,_h)],2)):n.createCommentVNode("",!0)],64))),128))]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,d=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[e.slotExists(d)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(`cl-tab-${d} cl-tab-content`)},[n.renderSlot(e.$slots,`tabs-${d}-content`)],2)):n.createCommentVNode("",!0)],64))),128))])}const vn=k(vh,[["render",Eh]]);vn.install=e=>{e.component(vn.name??"ClNoName",vn)};const Ch=n.defineComponent({name:"ClToggle",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:void 0},modelValue:{type:Boolean,default:!1},enabled:{type:Boolean,default:!0},title:{type:String,default:""},iconOn:{type:String,default:"fas fa-check"},iconOff:{type:String,default:"fas fa-times"}},emits:["update:modelValue"],data(){return{clazz:"cl-badge "+(this.class??"")}},methods:{toggle:function(){if(this.enabled){const e=document.getElementById(this.$uid);e&&(this.$emit("update:modelValue",e.checked),e.focus(),e.blur(),e.focus())}}}}),kh=["id","checked","disabled"],$h=["id","for","disabled"];function Sh(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("input",{id:e.$uid,type:"checkbox",class:n.normalizeClass("cl-toggle-checkbox"),checked:e.modelValue,disabled:e.enabled?null:!0,onChange:i[0]||(i[0]=d=>e.toggle())},null,40,kh),n.createElementVNode("label",{id:e.id,class:n.normalizeClass(e.clazz),for:e.$uid,disabled:e.enabled?null:!0},[n.createElementVNode("i",{class:n.normalizeClass(`${e.iconOn} fa-fw`)},null,2),n.createElementVNode("i",{class:n.normalizeClass(`${e.iconOff} fa-fw`)},null,2),n.createTextVNode(n.toDisplayString(e.title),1)],10,$h)],64)}const bn=k(Ch,[["render",Sh]]);bn.install=e=>{e.component(bn.name??"ClNoName",bn)};const wh={COLOR:{ASH:"#6d5e5e",BERRY:"#6e1c3b",BRICK:"#ba4f4f",CLAY:"#cfc8c8",EGGSHELL:"#fbf9f2",HAZE:"#eeece6",HONEY:"#dc9404",LEAF:"#53965d",NIGHT:"#262a35",ORCHID:"#b271bf",PETROL:"#096174",RED:"#fa423c",SAND:"#fdf5cf",SEA:"#5d9dd1",SKY:"#71c0ff",STEEL:"#a0a0a0"},SPACING:{HUGE:"48px",LARGE:"32px",MEDIUM:"24px",SMALL:"16px",TINY:"8px",MICRO:"4px",NONE:"0px"}},ro={DEV:"DEV",TEST:"TEST",PROD:"PROD"},I={CP:"Content Platform",CP_TAGLINE:"Access the Content Platform, manage, encode and watermark assets",CP_URN:"urn:janus:service:76b6e8558263431d9d766779987d6410",CS:"Castlabs hub",CS_TAGLINE:"Manage organizations, plans, downloads",CS_URN:"urn:janus:service:OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO",DT:"DRMtoday",DT_TAGLINE:"Cloud DRM & CAS licensing",DT_URN:"urn:janus:service:79a1092a0be44b1c95a4557b8d3ee2b7",DTO:"DRMtoday Onboard",DTO_TAGLINE:"DRMtoday Onboard",DTO_URN:"urn:janus:service:442f84ee6cc942188cb24486d7208289",DTS:"DRMtoday Staging",DTS_TAGLINE:"Cloud DRM & CAS licensing",DTS_URN:"urn:janus:service:17edeac267d84703ab0ddd7a33d85706",PP:"PRESTOplay",PP_TAGLINE:"Cross-platform video players (via Castlabs hub)",PP_URN:"urn:janus:service:a0682fd65f234a6793c526dc33131bab",PP_URN_ANDROID:"urn:janus:service:95841e63952149408c71c650c9659fb7",PP_URN_BROWSER:"urn:janus:service:852e1377df314c1a80003a9f67b98dfe",PP_URN_GSTREAMER:"urn:janus:service:76b6e8558263431d9d766779987d64c1",PP_URN_IOS:"urn:janus:service:2187beecaae44a01ac7eb353f5095f0f",PP_URN_REACTNATIVE:"urn:janus:service:6efecac3ac04477e9b36d3d14e0ae257",PP_URN_WEBRTC:"urn:janus:service:250402eb2e2d47118422ba4f2334ee54",VTK:"Video Toolkit",VTK_TAGLINE:"Cloud encoding, packaging, watermarking",VTK_URN:"urn:janus:service:a50e21d6a5e246809b636854abfbd34d",WM:"STARDUSTmark",WM_TAGLINE:"Video & image forensic watermarking",WM_URN:"urn:janus:service:76b6e8558263431d9d766779987d64c4"},W={CS_READONLY:"Read-Only",CS_READONLY_URN:"urn:janus:role:b9d0931a01034fa095aa1a18ec303bac",CS_ADMIN:"Admin",CS_ADMIN_URN:"urn:janus:role:ab0cc31ad04a4090b41b0e552f7a3742",CS_BILLING:"Billing",CS_BILLING_URN:"urn:janus:role:2f4a76d16c9a47609255a253d873135c",CS_REPORTS:"Reports",CS_REPORTS_URN:"urn:janus:role:076e6514fe1f4d5abf307dc9fee7bbeb",PP_ADMIN:"PRESTOplay admin",PP_ADMIN_URN:"urn:janus:role:b79b1a10741f43b2bc0d1302d61b5865",PP_USER:"PRESTOplay user",PP_USER_URN:"urn:janus:role:7f2c7c7ee74d46e8936461d57180a1d3",DT_MEMBERS:"Members",DT_MEMBERS_URN:"urn:janus:role:2e5cfd4579d1485ca7e5f8cc97bdfe32",DT_SUBORGS:"Sub-organizations",DT_SUBORGS_URN:"urn:janus:role:2042447e1ae944c5a2bb75c9dd7077f3",DT_CONFIGURATION:"Configuration",DT_CONFIGURATION_URN:"urn:janus:role:07ac6d78216e41528d1b04a0ad737bc6",DT_KEYS_DELETE:"Key delete",DT_KEYS_DELETE_URN:"urn:janus:role:a79f863667944cca89588f69ea9d61dc",DT_KEYS_INGEST:"Key ingest",DT_KEYS_INGEST_URN:"urn:janus:role:08b9f5a98f084dd59d766be7039b504d",DT_ASSETS:"Assets",DT_ASSETS_URN:"urn:janus:role:4a2551570d644c08abb2795ccb8474cc",DT_DELIVERIES:"Deliveries",DT_DELIVERIES_URN:"urn:janus:role:7e23400fa5b84a38bbeca2ee515e5c9d",DTO_DEVICES:"Devices",DTO_DEVICES_URN:"urn:janus:role:c4e5556c769f4b23af3e502f9c589511",DTO_KEYBOX:"Keyboxes",DTO_KEYBOX_URN:"urn:janus:role:0658721525624ccc8fa612add5152d03",DTO_DOWNLOAD:"Downloads",DTO_DOWNLOAD_URN:"urn:janus:role:50905ceedf494b5e8d4379c0edce4b00",DTO_REPORTS:"Reports",DTO_REPORTS_URN:"urn:janus:role:50905ceedf494b5e8d4379c0edce4b01",DTO_CONFIGURATION:"Configuration",DTO_CONFIGURATION_URN:"urn:janus:role:50905ceedf494b5e8d4379c0edce4b02",DTS_MEMBERS:"Members",DTS_MEMBERS_URN:"urn:janus:role:36f4f90309294ceaa4f94e56953c1726",DTS_SUBORGS:"Sub-organizations",DTS_SUBORGS_URN:"urn:janus:role:471fe9be7e5d46feb6d84dd52e308b71",DTS_CONFIGURATION:"Configuration",DTS_CONFIGURATION_URN:"urn:janus:role:ff16e9fd5acc48e8a9acc078d2b72e7d",DTS_KEYS_DELETE:"Key delete",DTS_KEYS_DELETE_URN:"urn:janus:role:3f8dc55d3dbb4a4e893ba33ced829642",DTS_KEYS_INGEST:"Key ingest",DTS_KEYS_INGEST_URN:"urn:janus:role:471c6826d37f4d3aaa43cb3a3fda63ae",DTS_ASSETS:"Assets",DTS_ASSETS_URN:"urn:janus:role:f7c9335c70f14e4bb15d3f30761b8626",DTS_DELIVERIES:"Deliveries",DTS_DELIVERIES_URN:"urn:janus:role:e79a8f99a96a45238283b3c049e7374b",VTK_ADMIN:"Video Toolkit admin",VTK_ADMIN_URN:"urn:janus:role:8ff40a162b834e96a36f7ddbfda475ef",VTK_USER:"Video Toolkit user",VTK_USER_URN:"urn:janus:role:33c9c2001ca14dde9c3b310d0748b8b4",CP_USER:"Content Platform user",CP_USER_URN:"urn:janus:role:33c9c2001ca14dde9c3b310d0748b871",WM_DEMO:"Demo",WM_DEMO_URN:"urn:janus:role:33c9c2001ca14dde9c3b310d0748b850",WM_EXTRACTION:"Extraction",WM_EXTRACTION_URN:"urn:janus:role:33c9c2001ca14dde9c3b310d0748b851"},Vr={UNKNOWN:null,ACTIVE:0,PENDING:1,DELETED:2,SUSPENDED:3},Nh={...Vr,APPROVAL_REQUIRED:4,APPROVAL_DENIED:5,APPROVAL_REVOKED:6},Th={UNKNOWN:null,TRIAL:0,STARTER:1,ENTERPRISE:2,CUSTOM:3},fe={CP:{id:"CP",subtitle:I.CP_TAGLINE,title:I.CP,services:[I.CP_URN],roles:[W.CP_USER_URN],urlManage:(e,i)=>Ln(e,`https://platform.content.castlabs.com/#/o/${i??""}`,`https://platform.content-stag.castlabs.com/#/o/${i??""}`),urlPlan:(e,i)=>Le(e,i),sidenav:!1},CS:{id:"CS",subtitle:I.CS_TAGLINE,title:I.CS,services:[I.CS_URN],roles:[],urlManage:(e,i)=>Le(e,i),urlPlan:(e,i)=>Le(e,i),sidenav:!0},DT:{id:"DT",subtitle:I.DT_TAGLINE,title:I.DT,services:[I.DT_URN],roles:[W.DT_MEMBERS_URN,W.DT_SUBORGS_URN,W.DT_CONFIGURATION_URN,W.DT_KEYS_DELETE_URN,W.DT_KEYS_INGEST_URN,W.DT_ASSETS_URN,W.DT_DELIVERIES_URN],urlManage:(e,i)=>hi(e,`https://fe.test.drmtoday.com/dashboard/${i?`${i}/`:""}index`,`https://fe.drmtoday.com/dashboard/${i?`${i}/`:""}index`),urlPlan:(e,i)=>Le(e,i,"/plans/drmtoday"),sidenav:!0},DTO:{id:"DTO",subtitle:I.DTO_TAGLINE,title:I.DTO,services:[I.DTO_URN],roles:[W.DTO_DEVICES_URN,W.DTO_KEYBOX_URN,W.DTO_DOWNLOAD_URN,W.DTO_CONFIGURATION_URN,W.DTO_REPORTS_URN],urlManage:(e,i)=>`https://onboard.castlabs.com/o/${i??""}/devices`,urlPlan:(e,i)=>Le(e,i),sidenav:!1},DTS:{id:"DTS",subtitle:I.DTS_TAGLINE,title:I.DTS,services:[I.DTS_URN],roles:[W.DTS_MEMBERS_URN,W.DTS_SUBORGS_URN,W.DTS_CONFIGURATION_URN,W.DTS_KEYS_DELETE_URN,W.DTS_KEYS_INGEST_URN,W.DTS_ASSETS_URN,W.DTS_DELIVERIES_URN],urlManage:(e,i)=>hi(e,`https://fe.test.drmtoday.com/dashboard/${i?`${i}/`:""}index`,`https://fe.staging.drmtoday.com/dashboard/${i?`${i}/`:""}index`),urlPlan:(e,i)=>Le(e,i,"/plans/drmtoday"),sidenav:!1},PP:{id:"PP",subtitle:I.PP_TAGLINE,title:I.PP,services:[I.PP_URN,I.PP_URN_ANDROID,I.PP_URN_BROWSER,I.PP_URN_GSTREAMER,I.PP_URN_IOS,I.PP_URN_REACTNATIVE,I.PP_URN_WEBRTC],roles:[W.PP_USER_URN,W.PP_ADMIN_URN],urlManage:(e,i)=>Ln(e,`https://account.castlabs.com/o/${i}/prestoplay`,`https://account.test.cs.castlabs.com/o/${i}/prestoplay`),urlPlan:(e,i)=>Le(e,i,"/plans/prestoplay"),sidenav:!0},WM:{id:"WM",subtitle:I.WM_TAGLINE,title:I.WM,services:[I.WM_URN],roles:[W.WM_DEMO_URN,W.WM_EXTRACTION_URN],urlManage:(e,i)=>Ln(e,`https://watermark.castlabs.com/#/o/${i}`,`https://demo-stag.fwm.castlabs.com/#/o/${i}`),urlPlan:(e,i)=>Le(e,i,"/plans/wm"),sidenav:!0},VTK:{id:"VTK",subtitle:I.VTK_TAGLINE,services:[I.VTK_URN],roles:[W.VTK_USER_URN,W.VTK_ADMIN_URN],title:I.VTK,urlManage:(e,i)=>Ln(e,`https://vtk.castlabs.com/${i}`,`https://vtks.castlabs.com/${i}`),urlPlan:(e,i)=>Le(e,i,"/plans/vtk"),sidenav:!0}},Z={SERVICE:I,ROLE:W,STATE:Vr,LICENSE_STATE:Nh,PLAN:Th,APPS:fe};function Le(e,i,l){return hi(e,`https://account.test.cs.castlabs.com/o/${i??""}${l??""}`,`https://account.castlabs.com/o/${i??""}${l??""}`)}function hi(e,i,l){return Ln(e,i,l,[ro.DEV,ro.TEST])}function Ln(e,i,l,r=[ro.PROD]){return r.includes(e)?i:l}function Oh(e,i){let l=null;for(const r of i){const c=Ah(e,r);c&&(l===null||l.status===Z.LICENSE_STATE.APPROVAL_REQUIRED&&c.status===Z.LICENSE_STATE.ACTIVE||l.plan===Z.PLAN.TRIAL&&c.plan!==Z.PLAN.TRIAL)&&(l=c)}return l}function Ah(e,i){for(const l of e.organization?.licenses??[])if(l.service===i&&[Z.LICENSE_STATE.ACTIVE,Z.LICENSE_STATE.APPROVAL_REQUIRED].includes(l.status))return l;return null}function mi(e){return{id:e.id,title:e.title,subtitle:e.subtitle,url:"#",locked:!1,disabled:!1,badge:void 0}}function In(e){return{...mi(e),locked:!0,disabled:!0}}function gi(e,i,l){return{...mi(e),url:e.urlManage(l,i)}}function Dh(e,i,l){return{...gi(e,i,l),badge:"Trial"}}function Bh(e,i,l){return{...mi(e),url:e.urlPlan(l,i),badge:"Subscribe",locked:!0}}function Vh(e,i,l){return{...mi(e),url:e.urlPlan(l,i),badge:"Pending",locked:!0}}function Mh(e,i,l,r,c){return i?[Z.LICENSE_STATE.APPROVAL_REQUIRED].includes(i.status)?Vh(e,l,r):i.plan===Z.PLAN.TRIAL?Dh(e,l,r):c?gi(e,l,r):In(e):[fe.DTS.id].includes(e.id)?null:Bh(e,l,r)}function Mn(e,i,l,r){const c=Oh(e,i.services);return Mh(i,c,l,r,!!e.roles.find(u=>i.roles.includes(u.role_urn)))}function Lh(e,i,l){const r=[gi(fe.CS,i,l)];r.push(Mn(e,fe.DT,i,l));const c=Mn(e,fe.DTS,i,l);return c&&r.push(c),r.push(Mn(e,fe.PP,i,l)),r.push(Mn(e,fe.WM,i,l)),r.push(Mn(e,fe.VTK,i,l)),r}function Ih(e,i,l){for(const r of e)if(r.organization?.organization_urn===i)return Lh(r,i,l);return[gi(fe.CS),In(fe.DT),In(fe.PP),In(fe.WM),In(fe.VTK)]}function Ph(e,i,l){let r=JSON.parse(JSON.stringify(e));return l&&(r=r.filter(c=>c.organization.licenses.find(u=>u.service===l))),i&&(r=r.filter(c=>c.roles.find(u=>u.role_urn===i))),r}function Rh(e){return hi(e,"https://account.test.cs.castlabs.com/account","https://account.castlabs.com/account")}function zh(){return[Z.APPS.CS,Z.APPS.CP,Z.APPS.DT,Z.APPS.DTS,Z.APPS.DTO,Z.APPS.PP,Z.APPS.WM,Z.APPS.VTK]}const Fh=Z.APPS,Mr="✺";let ri={};function jh(e,i="",l=!1){const r=ri[i]??Ue(Lr(i));return Object.keys(ri).length>100&&(ri={}),ri[i]=r,tt(l?e.toLowerCase():e,r,l)}function tt(e,i,l){if(typeof i=="string"){const r=i.replaceAll(Mr," ");return r[0]==="-"?!tt(e,r.substring(1),l):l?e.includes(r):e.toLowerCase().includes(r.toLowerCase())}else switch(i[0]){case"&":return tt(e,i[1])&&tt(e,i[2]);case"|":return tt(e,i[1])||tt(e,i[2]);default:return!1}}function Lr(e){const i=[];let l=!1;for(let d=0;d<e.length;d++)l?e[d]===l?l=!1:i.push([" "].includes(e[d])?Mr:e[d]):["'",'"'].includes(e[d])?l=e[d]:i.push(e[d]);const r=i.join("").replace(/\s+/g," ").trim();if(r.length<=0)return"";const c=r.split(" ");if(c.length<=0)return"";const u=[];["NOT","-"].includes(c[0])||u.push(c.shift());for(let d=0;d<c.length;d++)switch(c[d]){case"AND":case"&":case"&&":switch(c[++d]){case"NOT":case"-":c[d+1]&&(u.push("&"),u.push("-"),u.push(c[++d]));break;case void 0:break;default:u.push("&"),u.push(c[d])}break;case"OR":case"|":case"||":switch(c[++d]){case"NOT":case"-":c[d+1]&&(u.push("|"),u.push("-"),u.push(c[++d]));break;case void 0:break;default:u.push("|"),u.push(c[d])}break;case"NOT":case"-":u.push("-"),u.push(c[++d]);break;default:u.push("&"),u.push(c[d])}return` ${u.join(" ")} `.replace(/ - /g," -").trim()}function Ue(e){const i=e.indexOf(" | ");if(i>=0)return["|",Ue(e.substring(0,i)),Ue(e.substring(i+3))];const l=e.indexOf(" & ");if(l>=0)return["&",Ue(e.substring(0,l)),Ue(e.substring(l+3))];const r=e.indexOf(" ");return r>=0?["&",Ue(e.substring(0,r)),Ue(e.substring(r+1))]:e}const Wh={install:e=>{let i=0;e.mixin({beforeCreate:function(){let r;const c="uid-"+i++;Object.defineProperties(this,(r={},r.$uid={get:function(){return c}},r))}})}};function Uh(){return{ClAlert:$t,ClBackCancelOk:St,ClCookieBanner:wt,ClCopy:Nt,ClCreditcardNumber:Tt,ClDropzone:Ot,ClField:At,ClFieldCheck:Dt,ClFieldGroup:Bt,ClHashtag:Vt,ClIconotron:Mt,ClInfo:Lt,ClLinkExternal:It,ClLorem:Pt,ClMailto:Rt,ClModal:zt,ClModalConfirm:Ft,ClModalForm:jt,ClModalOk:Wt,ClNavSide:Ut,ClNavTop:xt,ClOrg:qt,ClPage:Ht,ClPagination:Gt,ClPlan:Kt,ClRole:Yt,ClSectionForm:Xt,ClSectionHeadline:Qt,ClSectionMain:nt,ClSectionMainSide:Jt,ClSpinner:Zt,ClTable:en,ClTableCel:tn,ClTableCelActions:nn,ClTableCelAudit:on,ClTableCelBoolean:sn,ClTableCelCheckbox:rn,ClTableCelCode:ln,ClTableCelCurrency:an,ClTableCelDate:cn,ClTableCelId:dn,ClTableCelLinks:un,ClTableCelTime:fn,ClTableCelUuid:pn,ClTableFootChecked:hn,ClTableHead:mn,ClTableRow:gn,ClTabs:vn,ClToggle:bn}}const xh=[/[^a-z]don['`\s]*t/i,/do[\s]+not/i,/[^a-z]won['`\s]*t/i,/will[\s]+not/i,/[^a-z]aren['`\s]*t/i,/are[\s]+not/i,/[^a-z]isn['`\s]*t/i,/is[\s]+not/i,/you['`]*re/i,/you[\s]+are/i,/we['`\s]*re/i,/we[\s]+are/i,/we['`]+ll/i,/we[\s]+will/i,/[^a-z]shouldn['`\s]*t/i,/should[\s]+not/i,/[^a-z]mustn['`\s]*t/i,/must[\s]+not/i,/[^a-z]didn['`\s]*t/i,/did[\s]+not/i,/[^a-z]wasn['`\s]*t/i,/was[\s]+not/i,/[^a-z]hasn['`\s]*t/i,/has[\s]+not/i,/[^a-z]can['`]+t/i,/can[\s]+not/i,/[a-z]n['`]+t/i];function qh(){return[Wh]}function mo(e,i){const l=JSON.parse(JSON.stringify(e));for(const r in i)typeof i[r]=="object"&&!Array.isArray(i[r])?l[r]=mo(e[r]??{},i[r]):l[r]=i[r];return l}function Hh(e,i){return{store:mo(e,i)}}const oo={ClAlert:$t,ClBackCancelOk:St,ClCookieBanner:wt,ClCopy:Nt,ClCreditcardNumber:Tt,ClDropzone:Ot,ClField:At,ClFieldCheck:Dt,ClFieldGroup:Bt,ClHashtag:Vt,ClIconotron:Mt,ClInfo:Lt,ClLinkExternal:It,ClLorem:Pt,ClMailto:Rt,ClModal:zt,ClModalConfirm:Ft,ClModalForm:jt,ClModalOk:Wt,ClNavSide:Ut,ClNavTop:xt,ClOrg:qt,ClPage:Ht,ClPagination:Gt,ClPlan:Kt,ClRole:Yt,ClSectionForm:Xt,ClSectionHeadline:Qt,ClSectionMain:nt,ClSectionMainSide:Jt,ClSpinner:Zt,ClTable:en,ClTableCel:tn,ClTableCelActions:nn,ClTableCelAudit:on,ClTableCelBoolean:sn,ClTableCelCheckbox:rn,ClTableCelCode:ln,ClTableCelCurrency:an,ClTableCelDate:cn,ClTableCelId:dn,ClTableCelLinks:un,ClTableCelTime:fn,ClTableCelUuid:pn,ClTableFootChecked:hn,ClTableHead:mn,ClTableRow:gn,ClTabs:vn,ClToggle:bn,ClMockRouterLink:Pn,ClUI:Rc};function Gh(e){for(const i in oo)e.component(oo[i].name,oo[i])}exports.CONST=wh;exports.CS=Z;exports.ClAlert=$t;exports.ClBackCancelOk=St;exports.ClCookieBanner=wt;exports.ClCopy=Nt;exports.ClCreditcardNumber=Tt;exports.ClDropzone=Ot;exports.ClField=At;exports.ClFieldCheck=Dt;exports.ClFieldGroup=Bt;exports.ClHashtag=Vt;exports.ClIconotron=Mt;exports.ClInfo=Lt;exports.ClLinkExternal=It;exports.ClLorem=Pt;exports.ClMailto=Rt;exports.ClMockRouterLink=Pn;exports.ClModal=zt;exports.ClModalConfirm=Ft;exports.ClModalForm=jt;exports.ClModalOk=Wt;exports.ClNavSide=Ut;exports.ClNavTop=xt;exports.ClOrg=qt;exports.ClPage=Ht;exports.ClPagination=Gt;exports.ClPlan=Kt;exports.ClRole=Yt;exports.ClSectionForm=Xt;exports.ClSectionHeadline=Qt;exports.ClSectionMain=nt;exports.ClSectionMainSide=Jt;exports.ClSpinner=Zt;exports.ClTable=en;exports.ClTableCel=tn;exports.ClTableCelActions=nn;exports.ClTableCelAudit=on;exports.ClTableCelBoolean=sn;exports.ClTableCelCheckbox=rn;exports.ClTableCelCode=ln;exports.ClTableCelCurrency=an;exports.ClTableCelDate=cn;exports.ClTableCelId=dn;exports.ClTableCelLinks=un;exports.ClTableCelTime=fn;exports.ClTableCelUuid=pn;exports.ClTableFootChecked=hn;exports.ClTableHead=mn;exports.ClTableRow=gn;exports.ClTabs=vn;exports.ClToggle=bn;exports.FLECTIONS=xh;exports.NAV=Fh;exports._getProperty=kt;exports._sanitize=Lr;exports._tokenize=Ue;exports.clCopyData=rd;exports.clDebounce=id;exports.clFocus=Hc;exports.clFormAutofocus=Gc;exports.clFormFieldFocusFirstInvalid=fo;exports.clFormFieldReset=kr;exports.clFormIsValid=$r;exports.clFormIsValidAsync=Sr;exports.clFormReset=Cr;exports.clFormatAmount=Jc;exports.clFormatCardNumber=Tr;exports.clFormatDate=wr;exports.clFormatDateTimeUTC=Yc;exports.clFormatDuration=Xc;exports.clFormatFilesize=Kc;exports.clFormatNumber=pi;exports.clFormatPeriod=Qc;exports.clFormatRange=Zc;exports.clFormatTimeUTC=Nr;exports.clGetAllComponents=Uh;exports.clGetAllPlugins=qh;exports.clGetServices=zh;exports.clMatch=jh;exports.clModalHide=yn;exports.clModalIsShown=qc;exports.clModalShow=uo;exports.clModalValue=di;exports.clPaginate=Er;exports.clPatch=mo;exports.clPatchStore=Hh;exports.clRandomList=sd;exports.clRandomString=od;exports.clRefClField=_d;exports.clRefClFieldGroup=Ed;exports.clRefFocus=ho;exports.clRefHTMLElement=Cd;exports.clReload=ad;exports.clReloadStore=ld;exports.clScrollToId=_r;exports.clSleep=cd;exports.clSort=Or;exports.clSynchronizedSubmit=ed;exports.clSynchronizedSubmitAsync=td;exports.clTableSorter=Ar;exports.clTableSorterObjects=nd;exports.clUi=Gh;exports.clVClipboard=po;exports.clVTooltip=En;exports.csFilterMemberships=Ph;exports.csGetAccountUrl=Rh;exports.csGetNav=Ih;
26
26
  //# sourceMappingURL=castlabs-ui.common.js.map