@castlabs/ui 6.0.0 → 6.0.2
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,8 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");var Qs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ka(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Js={},Zs;function $a(){return Zs||(Zs=1,function(){var e=function(m,f){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,l){h.__proto__=l}||function(h,l){for(var _ in l)Object.prototype.hasOwnProperty.call(l,_)&&(h[_]=l[_])},e(m,f)},s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Qs<"u"?Qs:typeof self<"u"?self:{},c=function(m){var f=typeof m;return m!=null&&(f=="object"||f=="function")},p=typeof s=="object"&&s&&s.Object===Object&&s,b=typeof self=="object"&&self&&self.Object===Object&&self,v=p||b||Function("return this")(),u=v,S=function(){return u.Date.now()},Y=/\s/,ve=function(m){for(var f=m.length;f--&&Y.test(m.charAt(f)););return f},pe=/^\s+/,_t=function(m){return m&&m.slice(0,ve(m)+1).replace(pe,"")},Xe=v.Symbol,Ye=Xe,Mn=Object.prototype,Ln=Mn.hasOwnProperty,he=Mn.toString,te=Ye?Ye.toStringTag:void 0,oe=function(m){var f=Ln.call(m,te),h=m[te];try{m[te]=void 0;var l=!0}catch{}var _=he.call(m);return l&&(f?m[te]=h:delete m[te]),_},Jn=Object.prototype.toString,zn=oe,Di=function(m){return Jn.call(m)},Zn=Xe?Xe.toStringTag:void 0,Vi=function(m){return m==null?m===void 0?"[object Undefined]":"[object Null]":Zn&&Zn in Object(m)?zn(m):Di(m)},In=function(m){return m!=null&&typeof m=="object"},ei=_t,Fn=c,Mi=function(m){return typeof m=="symbol"||In(m)&&Vi(m)=="[object Symbol]"},ti=/^[-+]0x[0-9a-f]+$/i,ni=/^0b[01]+$/i,ii=/^0o[0-7]+$/i,oi=parseInt,si=c,ot=S,ri=function(m){if(typeof m=="number")return m;if(Mi(m))return NaN;if(Fn(m)){var f=typeof m.valueOf=="function"?m.valueOf():m;m=Fn(f)?f+"":f}if(typeof m!="string")return m===0?m:+m;m=ei(m);var h=ni.test(m);return h||ii.test(m)?oi(m.slice(2),h?2:8):ti.test(m)?NaN:+m},li=Math.max,C=Math.min,Ke=function(m,f,h){var l,_,T,M,z,K,U=0,re=!1,Q=!1,J=!0;if(typeof m!="function")throw new TypeError("Expected a function");function ae(ee){var ne=l,ge=_;return l=_=void 0,U=ee,M=m.apply(ge,ne)}function Oe(ee){return U=ee,z=setTimeout(Ie,f),re?ae(ee):M}function be(ee){var ne=ee-K;return K===void 0||ne>=f||ne<0||Q&&ee-U>=T}function Ie(){var ee=ot();if(be(ee))return $t(ee);z=setTimeout(Ie,function(ne){var ge=f-(ne-K);return Q?C(ge,T-(ne-U)):ge}(ee))}function $t(ee){return z=void 0,J&&l?ae(ee):(l=_=void 0,M)}function Ze(){var ee=ot(),ne=be(ee);if(l=arguments,_=this,K=ee,ne){if(z===void 0)return Oe(K);if(Q)return clearTimeout(z),z=setTimeout(Ie,f),ae(K)}return z===void 0&&(z=setTimeout(Ie,f)),M}return f=ri(f)||0,si(h)&&(re=!!h.leading,T=(Q="maxWait"in h)?li(ri(h.maxWait)||0,f):T,J="trailing"in h?!!h.trailing:J),Ze.cancel=function(){z!==void 0&&clearTimeout(z),U=0,l=K=_=z=void 0},Ze.flush=function(){return z===void 0?M:$t(ot())},Ze},ai=Ke,xn=c,Be=function(m,f,h){var l=!0,_=!0;if(typeof m!="function")throw new TypeError("Expected a function");return xn(h)&&(l="leading"in h?!!h.leading:l,_="trailing"in h?!!h.trailing:_),ai(m,f,{leading:l,maxWait:f,trailing:_})},$e=function(){return $e=Object.assign||function(m){for(var f,h=1,l=arguments.length;h<l;h++)for(var _ in f=arguments[h])Object.prototype.hasOwnProperty.call(f,_)&&(m[_]=f[_]);return m},$e.apply(this,arguments)};function me(m){return m&&m.ownerDocument&&m.ownerDocument.defaultView?m.ownerDocument.defaultView:window}function Ct(m){return m&&m.ownerDocument?m.ownerDocument:document}var N=function(m){return Array.prototype.reduce.call(m,function(f,h){var l=h.name.match(/data-simplebar-(.+)/);if(l){var _=l[1].replace(/\W+(.)/g,function(T,M){return M.toUpperCase()});switch(h.value){case"true":f[_]=!0;break;case"false":f[_]=!1;break;case void 0:f[_]=!0;break;default:f[_]=h.value}}return f},{})};function st(m,f){var h;m&&(h=m.classList).add.apply(h,f.split(" "))}function Pn(m,f){m&&f.split(" ").forEach(function(h){m.classList.remove(h)})}function ci(m){return".".concat(m.split(" ").join("."))}var jn=!(typeof window>"u"||!window.document||!window.document.createElement),rt=Object.freeze({__proto__:null,addClasses:st,canUseDOM:jn,classNamesToQuery:ci,getElementDocument:Ct,getElementWindow:me,getOptions:N,removeClasses:Pn}),Ge=null,Qe=null;function Re(){if(Ge===null){if(typeof document>"u")return Ge=0;var m=document.body,f=document.createElement("div");f.classList.add("simplebar-hide-scrollbar"),m.appendChild(f);var h=f.getBoundingClientRect().right;m.removeChild(f),Ge=h}return Ge}jn&&window.addEventListener("resize",function(){Qe!==window.devicePixelRatio&&(Qe=window.devicePixelRatio,Ge=null)});var Me=me,Wn=Ct,Li=N,Le=st,ze=Pn,se=ci,kt=function(){function m(f,h){h===void 0&&(h={});var l=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 _=Me(l.el);l.scrollXTicking||(_.requestAnimationFrame(l.scrollX),l.scrollXTicking=!0),l.scrollYTicking||(_.requestAnimationFrame(l.scrollY),l.scrollYTicking=!0),l.isScrolling||(l.isScrolling=!0,Le(l.el,l.classNames.scrolling)),l.showScrollbar("x"),l.showScrollbar("y"),l.onStopScrolling()},this.scrollX=function(){l.axis.x.isOverflowing&&l.positionScrollbar("x"),l.scrollXTicking=!1},this.scrollY=function(){l.axis.y.isOverflowing&&l.positionScrollbar("y"),l.scrollYTicking=!1},this._onStopScrolling=function(){ze(l.el,l.classNames.scrolling),l.options.autoHide&&(l.hideScrollbar("x"),l.hideScrollbar("y")),l.isScrolling=!1},this.onMouseEnter=function(){l.isMouseEntering||(Le(l.el,l.classNames.mouseEntered),l.showScrollbar("x"),l.showScrollbar("y"),l.isMouseEntering=!0),l.onMouseEntered()},this._onMouseEntered=function(){ze(l.el,l.classNames.mouseEntered),l.options.autoHide&&(l.hideScrollbar("x"),l.hideScrollbar("y")),l.isMouseEntering=!1},this._onMouseMove=function(_){l.mouseX=_.clientX,l.mouseY=_.clientY,(l.axis.x.isOverflowing||l.axis.x.forceVisible)&&l.onMouseMoveForAxis("x"),(l.axis.y.isOverflowing||l.axis.y.forceVisible)&&l.onMouseMoveForAxis("y")},this.onMouseLeave=function(){l.onMouseMove.cancel(),(l.axis.x.isOverflowing||l.axis.x.forceVisible)&&l.onMouseLeaveForAxis("x"),(l.axis.y.isOverflowing||l.axis.y.forceVisible)&&l.onMouseLeaveForAxis("y"),l.mouseX=-1,l.mouseY=-1},this._onWindowResize=function(){l.scrollbarWidth=l.getScrollbarWidth(),l.hideNativeScrollbar()},this.onPointerEvent=function(_){var T,M;l.axis.x.track.el&&l.axis.y.track.el&&l.axis.x.scrollbar.el&&l.axis.y.scrollbar.el&&(l.axis.x.track.rect=l.axis.x.track.el.getBoundingClientRect(),l.axis.y.track.rect=l.axis.y.track.el.getBoundingClientRect(),(l.axis.x.isOverflowing||l.axis.x.forceVisible)&&(T=l.isWithinBounds(l.axis.x.track.rect)),(l.axis.y.isOverflowing||l.axis.y.forceVisible)&&(M=l.isWithinBounds(l.axis.y.track.rect)),(T||M)&&(_.stopPropagation(),_.type==="pointerdown"&&_.pointerType!=="touch"&&(T&&(l.axis.x.scrollbar.rect=l.axis.x.scrollbar.el.getBoundingClientRect(),l.isWithinBounds(l.axis.x.scrollbar.rect)?l.onDragStart(_,"x"):l.onTrackClick(_,"x")),M&&(l.axis.y.scrollbar.rect=l.axis.y.scrollbar.el.getBoundingClientRect(),l.isWithinBounds(l.axis.y.scrollbar.rect)?l.onDragStart(_,"y"):l.onTrackClick(_,"y")))))},this.drag=function(_){var T,M,z,K,U,re,Q,J,ae,Oe,be;if(l.draggedAxis&&l.contentWrapperEl){var Ie=l.axis[l.draggedAxis].track,$t=(M=(T=Ie.rect)===null||T===void 0?void 0:T[l.axis[l.draggedAxis].sizeAttr])!==null&&M!==void 0?M:0,Ze=l.axis[l.draggedAxis].scrollbar,ee=(K=(z=l.contentWrapperEl)===null||z===void 0?void 0:z[l.axis[l.draggedAxis].scrollSizeAttr])!==null&&K!==void 0?K:0,ne=parseInt((re=(U=l.elStyles)===null||U===void 0?void 0:U[l.axis[l.draggedAxis].sizeAttr])!==null&&re!==void 0?re:"0px",10);_.preventDefault(),_.stopPropagation();var ge=(l.draggedAxis==="y"?_.pageY:_.pageX)-((J=(Q=Ie.rect)===null||Q===void 0?void 0:Q[l.axis[l.draggedAxis].offsetAttr])!==null&&J!==void 0?J:0)-l.axis[l.draggedAxis].dragOffset,Et=(ge=l.draggedAxis==="x"&&l.isRtl?((Oe=(ae=Ie.rect)===null||ae===void 0?void 0:ae[l.axis[l.draggedAxis].sizeAttr])!==null&&Oe!==void 0?Oe:0)-Ze.size-ge:ge)/($t-Ze.size)*(ee-ne);l.draggedAxis==="x"&&l.isRtl&&(Et=!((be=m.getRtlHelpers())===null||be===void 0)&&be.isScrollingToNegative?-Et:Et),l.contentWrapperEl[l.axis[l.draggedAxis].scrollOffsetAttr]=Et}},this.onEndDrag=function(_){l.isDragging=!1;var T=Wn(l.el),M=Me(l.el);_.preventDefault(),_.stopPropagation(),ze(l.el,l.classNames.dragging),l.onStopScrolling(),T.removeEventListener("mousemove",l.drag,!0),T.removeEventListener("mouseup",l.onEndDrag,!0),l.removePreventClickId=M.setTimeout(function(){T.removeEventListener("click",l.preventClick,!0),T.removeEventListener("dblclick",l.preventClick,!0),l.removePreventClickId=null})},this.preventClick=function(_){_.preventDefault(),_.stopPropagation()},this.el=f,this.options=$e($e({},m.defaultOptions),h),this.classNames=$e($e({},m.defaultOptions.classNames),h.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=Be(this._onMouseMove,64),this.onWindowResize=Ke(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Ke(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Ke(this._onMouseEntered,this.stopScrollDelay),this.init()}return m.getRtlHelpers=function(){if(m.rtlHelpers)return m.rtlHelpers;var f=document.createElement("div");f.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var h=f.firstElementChild,l=h?.firstElementChild;if(!l)return null;document.body.appendChild(h),h.scrollLeft=0;var _=m.getOffset(h),T=m.getOffset(l);h.scrollLeft=-999;var M=m.getOffset(l);return document.body.removeChild(h),m.rtlHelpers={isScrollOriginAtZero:_.left!==T.left,isScrollingToNegative:T.left!==M.left},m.rtlHelpers},m.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:Re()}catch{return Re()}},m.getOffset=function(f){var h=f.getBoundingClientRect(),l=Wn(f),_=Me(f);return{top:h.top+(_.pageYOffset||l.documentElement.scrollTop),left:h.left+(_.pageXOffset||l.documentElement.scrollLeft)}},m.prototype.init=function(){jn&&(this.initDOM(),this.rtlHelpers=m.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},m.prototype.initDOM=function(){var f,h;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=((f=this.axis.x.track.el)===null||f===void 0?void 0:f.querySelector(se(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((h=this.axis.y.track.el)===null||h===void 0?void 0:h.querySelector(se(this.classNames.scrollbar)))||null,this.options.autoHide||(Le(this.axis.x.scrollbar.el,this.classNames.visible),Le(this.axis.y.scrollbar.el,this.classNames.visible))},m.prototype.initListeners=function(){var f,h=this,l=Me(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),(f=this.contentWrapperEl)===null||f===void 0||f.addEventListener("scroll",this.onScroll),l.addEventListener("resize",this.onWindowResize),this.contentEl){if(window.ResizeObserver){var _=!1,T=l.ResizeObserver||ResizeObserver;this.resizeObserver=new T(function(){_&&l.requestAnimationFrame(function(){h.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),l.requestAnimationFrame(function(){_=!0})}this.mutationObserver=new l.MutationObserver(function(){l.requestAnimationFrame(function(){h.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},m.prototype.recalculate=function(){if(this.heightAutoObserverEl&&this.contentEl&&this.contentWrapperEl&&this.wrapperEl&&this.placeholderEl){var f=Me(this.el);this.elStyles=f.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var h=this.contentEl.offsetWidth,l=this.heightAutoObserverEl.offsetHeight<=1,_=this.heightAutoObserverEl.offsetWidth<=1||h>0,T=this.contentWrapperEl.offsetWidth,M=this.elStyles.overflowX,z=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var K=this.contentEl.scrollHeight,U=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=l?"auto":"100%",this.placeholderEl.style.width=_?"".concat(h||U,"px"):"auto",this.placeholderEl.style.height="".concat(K,"px");var re=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=h!==0&&U>h,this.axis.y.isOverflowing=K>re,this.axis.x.isOverflowing=M!=="hidden"&&this.axis.x.isOverflowing,this.axis.y.isOverflowing=z!=="hidden"&&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 Q=this.axis.x.isOverflowing?this.scrollbarWidth:0,J=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&U>T-J,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&K>re-Q,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")}},m.prototype.getScrollbarSize=function(f){var h,l;if(f===void 0&&(f="y"),!this.axis[f].isOverflowing||!this.contentEl)return 0;var _,T=this.contentEl[this.axis[f].scrollSizeAttr],M=(l=(h=this.axis[f].track.el)===null||h===void 0?void 0:h[this.axis[f].offsetSizeAttr])!==null&&l!==void 0?l:0,z=M/T;return _=Math.max(~~(z*M),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(_=Math.min(_,this.options.scrollbarMaxSize)),_},m.prototype.positionScrollbar=function(f){var h,l,_;f===void 0&&(f="y");var T=this.axis[f].scrollbar;if(this.axis[f].isOverflowing&&this.contentWrapperEl&&T.el&&this.elStyles){var M=this.contentWrapperEl[this.axis[f].scrollSizeAttr],z=((h=this.axis[f].track.el)===null||h===void 0?void 0:h[this.axis[f].offsetSizeAttr])||0,K=parseInt(this.elStyles[this.axis[f].sizeAttr],10),U=this.contentWrapperEl[this.axis[f].scrollOffsetAttr];U=f==="x"&&this.isRtl&&(!((l=m.getRtlHelpers())===null||l===void 0)&&l.isScrollOriginAtZero)?-U:U,f==="x"&&this.isRtl&&(U=!((_=m.getRtlHelpers())===null||_===void 0)&&_.isScrollingToNegative?U:-U);var re=U/(M-K),Q=~~((z-T.size)*re);Q=f==="x"&&this.isRtl?-Q+(z-T.size):Q,T.el.style.transform=f==="x"?"translate3d(".concat(Q,"px, 0, 0)"):"translate3d(0, ".concat(Q,"px, 0)")}},m.prototype.toggleTrackVisibility=function(f){f===void 0&&(f="y");var h=this.axis[f].track.el,l=this.axis[f].scrollbar.el;h&&l&&this.contentWrapperEl&&(this.axis[f].isOverflowing||this.axis[f].forceVisible?(h.style.visibility="visible",this.contentWrapperEl.style[this.axis[f].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(f))):(h.style.visibility="hidden",this.contentWrapperEl.style[this.axis[f].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(f))),this.axis[f].isOverflowing?l.style.display="block":l.style.display="none")},m.prototype.showScrollbar=function(f){f===void 0&&(f="y"),this.axis[f].isOverflowing&&!this.axis[f].scrollbar.isVisible&&(Le(this.axis[f].scrollbar.el,this.classNames.visible),this.axis[f].scrollbar.isVisible=!0)},m.prototype.hideScrollbar=function(f){f===void 0&&(f="y"),this.isDragging||this.axis[f].isOverflowing&&this.axis[f].scrollbar.isVisible&&(ze(this.axis[f].scrollbar.el,this.classNames.visible),this.axis[f].scrollbar.isVisible=!1)},m.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")},m.prototype.onMouseMoveForAxis=function(f){f===void 0&&(f="y");var h=this.axis[f];h.track.el&&h.scrollbar.el&&(h.track.rect=h.track.el.getBoundingClientRect(),h.scrollbar.rect=h.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(h.track.rect)?(this.showScrollbar(f),Le(h.track.el,this.classNames.hover),this.isWithinBounds(h.scrollbar.rect)?Le(h.scrollbar.el,this.classNames.hover):ze(h.scrollbar.el,this.classNames.hover)):(ze(h.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(f)))},m.prototype.onMouseLeaveForAxis=function(f){f===void 0&&(f="y"),ze(this.axis[f].track.el,this.classNames.hover),ze(this.axis[f].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(f)},m.prototype.onDragStart=function(f,h){var l;h===void 0&&(h="y"),this.isDragging=!0;var _=Wn(this.el),T=Me(this.el),M=this.axis[h].scrollbar,z=h==="y"?f.pageY:f.pageX;this.axis[h].dragOffset=z-(((l=M.rect)===null||l===void 0?void 0:l[this.axis[h].offsetAttr])||0),this.draggedAxis=h,Le(this.el,this.classNames.dragging),_.addEventListener("mousemove",this.drag,!0),_.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(_.addEventListener("click",this.preventClick,!0),_.addEventListener("dblclick",this.preventClick,!0)):(T.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},m.prototype.onTrackClick=function(f,h){var l,_,T,M,z=this;h===void 0&&(h="y");var K=this.axis[h];if(this.options.clickOnTrack&&K.scrollbar.el&&this.contentWrapperEl){f.preventDefault();var U=Me(this.el);this.axis[h].scrollbar.rect=K.scrollbar.el.getBoundingClientRect();var re=(_=(l=this.axis[h].scrollbar.rect)===null||l===void 0?void 0:l[this.axis[h].offsetAttr])!==null&&_!==void 0?_:0,Q=parseInt((M=(T=this.elStyles)===null||T===void 0?void 0:T[this.axis[h].sizeAttr])!==null&&M!==void 0?M:"0px",10),J=this.contentWrapperEl[this.axis[h].scrollOffsetAttr],ae=(h==="y"?this.mouseY-re:this.mouseX-re)<0?-1:1,Oe=ae===-1?J-Q:J+Q,be=function(){z.contentWrapperEl&&(ae===-1?J>Oe&&(J-=40,z.contentWrapperEl[z.axis[h].scrollOffsetAttr]=J,U.requestAnimationFrame(be)):J<Oe&&(J+=40,z.contentWrapperEl[z.axis[h].scrollOffsetAttr]=J,U.requestAnimationFrame(be)))};be()}},m.prototype.getContentElement=function(){return this.contentEl},m.prototype.getScrollElement=function(){return this.contentWrapperEl},m.prototype.removeListeners=function(){var f=Me(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),f.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()},m.prototype.unMount=function(){this.removeListeners()},m.prototype.isWithinBounds=function(f){return this.mouseX>=f.left&&this.mouseX<=f.left+f.width&&this.mouseY>=f.top&&this.mouseY<=f.top+f.height},m.prototype.findChild=function(f,h){var l=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.msMatchesSelector;return Array.prototype.filter.call(f.children,function(_){return l.call(_,h)})[0]},m.rtlHelpers=null,m.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},m.getOptions=Li,m.helpers=rt,m}(),Je=kt.helpers,Ee=Je.getOptions,le=Je.addClasses,zi=Je.canUseDOM,di=function(m){function f(){for(var h=[],l=0;l<arguments.length;l++)h[l]=arguments[l];var _=m.apply(this,h)||this;return f.instances.set(h[0],_),_}return function(h,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function _(){this.constructor=h}e(h,l),h.prototype=l===null?Object.create(l):(_.prototype=l.prototype,new _)}(f,m),f.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(h){h.getAttribute("data-simplebar")==="init"||f.instances.has(h)||new f(h,Ee(h.attributes))})},f.removeObserver=function(){var h;(h=f.globalObserver)===null||h===void 0||h.disconnect()},f.prototype.initDOM=function(){var h,l,_,T=this;if(!Array.prototype.filter.call(this.el.children,function(K){return K.classList.contains(T.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"),le(this.wrapperEl,this.classNames.wrapper),le(this.contentWrapperEl,this.classNames.contentWrapper),le(this.offsetEl,this.classNames.offset),le(this.maskEl,this.classNames.mask),le(this.contentEl,this.classNames.contentEl),le(this.placeholderEl,this.classNames.placeholder),le(this.heightAutoObserverWrapperEl,this.classNames.heightAutoObserverWrapperEl),le(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),(h=this.contentWrapperEl)===null||h===void 0||h.setAttribute("tabindex",this.options.tabIndex.toString()),(l=this.contentWrapperEl)===null||l===void 0||l.setAttribute("role","region"),(_=this.contentWrapperEl)===null||_===void 0||_.setAttribute("aria-label",this.options.ariaLabel)}if(!this.axis.x.track.el||!this.axis.y.track.el){var M=document.createElement("div"),z=document.createElement("div");le(M,this.classNames.track),le(z,this.classNames.scrollbar),M.appendChild(z),this.axis.x.track.el=M.cloneNode(!0),le(this.axis.x.track.el,this.classNames.horizontal),this.axis.y.track.el=M.cloneNode(!0),le(this.axis.y.track.el,this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}kt.prototype.initDOM.call(this),this.el.setAttribute("data-simplebar","init")},f.prototype.unMount=function(){kt.prototype.unMount.call(this),f.instances.delete(this.el)},f.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),typeof MutationObserver<"u"&&(this.globalObserver=new MutationObserver(f.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))},f.handleMutations=function(h){h.forEach(function(l){l.addedNodes.forEach(function(_){_.nodeType===1&&(_.hasAttribute("data-simplebar")?!f.instances.has(_)&&document.documentElement.contains(_)&&new f(_,Ee(_.attributes)):_.querySelectorAll("[data-simplebar]").forEach(function(T){T.getAttribute("data-simplebar")!=="init"&&!f.instances.has(T)&&document.documentElement.contains(T)&&new f(T,Ee(T.attributes))}))}),l.removedNodes.forEach(function(_){var T;_.nodeType===1&&(_.getAttribute("data-simplebar")==="init"?!document.documentElement.contains(_)&&((T=f.instances.get(_))===null||T===void 0||T.unMount()):Array.prototype.forEach.call(_.querySelectorAll('[data-simplebar="init"]'),function(M){var z;!document.documentElement.contains(M)&&((z=f.instances.get(M))===null||z===void 0||z.unMount())}))})})},f.instances=new WeakMap,f}(kt);return zi&&di.initHtmlApi(),di}()),Js}$a();const Ea=n.defineComponent({name:"ClUI",methods:{VITE_APP_VERSION:()=>"6.0.0"}}),B=(e,s)=>{const c=e.__vccOpts||e;for(const[p,b]of s)c[p]=b;return c};function wa(e,s,c,p,b,v){return n.toDisplayString(e.VITE_APP_VERSION())}const Sa=B(Ea,[["render",wa]]),Na=n.defineComponent({name:"ClAlert",props:{type:{type:String,default:"info"}}});function Ta(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("p",{class:n.normalizeClass(["alert",`cl-alert-${e.type}`]),role:"alert"},[n.renderSlot(e.$slots,"default")],2)}const Ft=B(Na,[["render",Ta]]);Ft.install=e=>{e.component(Ft.name??"ClNoName",Ft)};var Ai={exports:{}};/*!
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");var Qs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ka(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Js={},Zs;function $a(){return Zs||(Zs=1,function(){var e=function(m,f){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,l){h.__proto__=l}||function(h,l){for(var _ in l)Object.prototype.hasOwnProperty.call(l,_)&&(h[_]=l[_])},e(m,f)},o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Qs<"u"?Qs:typeof self<"u"?self:{},c=function(m){var f=typeof m;return m!=null&&(f=="object"||f=="function")},p=typeof o=="object"&&o&&o.Object===Object&&o,b=typeof self=="object"&&self&&self.Object===Object&&self,v=p||b||Function("return this")(),u=v,S=function(){return u.Date.now()},Y=/\s/,ve=function(m){for(var f=m.length;f--&&Y.test(m.charAt(f)););return f},pe=/^\s+/,Ct=function(m){return m&&m.slice(0,ve(m)+1).replace(pe,"")},Xe=v.Symbol,Ye=Xe,Ln=Object.prototype,zn=Ln.hasOwnProperty,he=Ln.toString,te=Ye?Ye.toStringTag:void 0,oe=function(m){var f=zn.call(m,te),h=m[te];try{m[te]=void 0;var l=!0}catch{}var _=he.call(m);return l&&(f?m[te]=h:delete m[te]),_},Jn=Object.prototype.toString,In=oe,Di=function(m){return Jn.call(m)},Zn=Xe?Xe.toStringTag:void 0,Vi=function(m){return m==null?m===void 0?"[object Undefined]":"[object Null]":Zn&&Zn in Object(m)?In(m):Di(m)},Fn=function(m){return m!=null&&typeof m=="object"},ei=Ct,xn=c,Mi=function(m){return typeof m=="symbol"||Fn(m)&&Vi(m)=="[object Symbol]"},ti=/^[-+]0x[0-9a-f]+$/i,ni=/^0b[01]+$/i,ii=/^0o[0-7]+$/i,oi=parseInt,si=c,ot=S,ri=function(m){if(typeof m=="number")return m;if(Mi(m))return NaN;if(xn(m)){var f=typeof m.valueOf=="function"?m.valueOf():m;m=xn(f)?f+"":f}if(typeof m!="string")return m===0?m:+m;m=ei(m);var h=ni.test(m);return h||ii.test(m)?oi(m.slice(2),h?2:8):ti.test(m)?NaN:+m},li=Math.max,C=Math.min,Ke=function(m,f,h){var l,_,T,M,z,K,U=0,re=!1,Q=!1,J=!0;if(typeof m!="function")throw new TypeError("Expected a function");function ae(ee){var ne=l,ge=_;return l=_=void 0,U=ee,M=m.apply(ge,ne)}function Oe(ee){return U=ee,z=setTimeout(Ie,f),re?ae(ee):M}function be(ee){var ne=ee-K;return K===void 0||ne>=f||ne<0||Q&&ee-U>=T}function Ie(){var ee=ot();if(be(ee))return Et(ee);z=setTimeout(Ie,function(ne){var ge=f-(ne-K);return Q?C(ge,T-(ne-U)):ge}(ee))}function Et(ee){return z=void 0,J&&l?ae(ee):(l=_=void 0,M)}function Ze(){var ee=ot(),ne=be(ee);if(l=arguments,_=this,K=ee,ne){if(z===void 0)return Oe(K);if(Q)return clearTimeout(z),z=setTimeout(Ie,f),ae(K)}return z===void 0&&(z=setTimeout(Ie,f)),M}return f=ri(f)||0,si(h)&&(re=!!h.leading,T=(Q="maxWait"in h)?li(ri(h.maxWait)||0,f):T,J="trailing"in h?!!h.trailing:J),Ze.cancel=function(){z!==void 0&&clearTimeout(z),U=0,l=K=_=z=void 0},Ze.flush=function(){return z===void 0?M:Et(ot())},Ze},ai=Ke,Pn=c,Be=function(m,f,h){var l=!0,_=!0;if(typeof m!="function")throw new TypeError("Expected a function");return Pn(h)&&(l="leading"in h?!!h.leading:l,_="trailing"in h?!!h.trailing:_),ai(m,f,{leading:l,maxWait:f,trailing:_})},$e=function(){return $e=Object.assign||function(m){for(var f,h=1,l=arguments.length;h<l;h++)for(var _ in f=arguments[h])Object.prototype.hasOwnProperty.call(f,_)&&(m[_]=f[_]);return m},$e.apply(this,arguments)};function me(m){return m&&m.ownerDocument&&m.ownerDocument.defaultView?m.ownerDocument.defaultView:window}function kt(m){return m&&m.ownerDocument?m.ownerDocument:document}var N=function(m){return Array.prototype.reduce.call(m,function(f,h){var l=h.name.match(/data-simplebar-(.+)/);if(l){var _=l[1].replace(/\W+(.)/g,function(T,M){return M.toUpperCase()});switch(h.value){case"true":f[_]=!0;break;case"false":f[_]=!1;break;case void 0:f[_]=!0;break;default:f[_]=h.value}}return f},{})};function st(m,f){var h;m&&(h=m.classList).add.apply(h,f.split(" "))}function jn(m,f){m&&f.split(" ").forEach(function(h){m.classList.remove(h)})}function ci(m){return".".concat(m.split(" ").join("."))}var Wn=!(typeof window>"u"||!window.document||!window.document.createElement),rt=Object.freeze({__proto__:null,addClasses:st,canUseDOM:Wn,classNamesToQuery:ci,getElementDocument:kt,getElementWindow:me,getOptions:N,removeClasses:jn}),Ge=null,Qe=null;function Re(){if(Ge===null){if(typeof document>"u")return Ge=0;var m=document.body,f=document.createElement("div");f.classList.add("simplebar-hide-scrollbar"),m.appendChild(f);var h=f.getBoundingClientRect().right;m.removeChild(f),Ge=h}return Ge}Wn&&window.addEventListener("resize",function(){Qe!==window.devicePixelRatio&&(Qe=window.devicePixelRatio,Ge=null)});var Me=me,Rn=kt,Li=N,Le=st,ze=jn,se=ci,$t=function(){function m(f,h){h===void 0&&(h={});var l=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 _=Me(l.el);l.scrollXTicking||(_.requestAnimationFrame(l.scrollX),l.scrollXTicking=!0),l.scrollYTicking||(_.requestAnimationFrame(l.scrollY),l.scrollYTicking=!0),l.isScrolling||(l.isScrolling=!0,Le(l.el,l.classNames.scrolling)),l.showScrollbar("x"),l.showScrollbar("y"),l.onStopScrolling()},this.scrollX=function(){l.axis.x.isOverflowing&&l.positionScrollbar("x"),l.scrollXTicking=!1},this.scrollY=function(){l.axis.y.isOverflowing&&l.positionScrollbar("y"),l.scrollYTicking=!1},this._onStopScrolling=function(){ze(l.el,l.classNames.scrolling),l.options.autoHide&&(l.hideScrollbar("x"),l.hideScrollbar("y")),l.isScrolling=!1},this.onMouseEnter=function(){l.isMouseEntering||(Le(l.el,l.classNames.mouseEntered),l.showScrollbar("x"),l.showScrollbar("y"),l.isMouseEntering=!0),l.onMouseEntered()},this._onMouseEntered=function(){ze(l.el,l.classNames.mouseEntered),l.options.autoHide&&(l.hideScrollbar("x"),l.hideScrollbar("y")),l.isMouseEntering=!1},this._onMouseMove=function(_){l.mouseX=_.clientX,l.mouseY=_.clientY,(l.axis.x.isOverflowing||l.axis.x.forceVisible)&&l.onMouseMoveForAxis("x"),(l.axis.y.isOverflowing||l.axis.y.forceVisible)&&l.onMouseMoveForAxis("y")},this.onMouseLeave=function(){l.onMouseMove.cancel(),(l.axis.x.isOverflowing||l.axis.x.forceVisible)&&l.onMouseLeaveForAxis("x"),(l.axis.y.isOverflowing||l.axis.y.forceVisible)&&l.onMouseLeaveForAxis("y"),l.mouseX=-1,l.mouseY=-1},this._onWindowResize=function(){l.scrollbarWidth=l.getScrollbarWidth(),l.hideNativeScrollbar()},this.onPointerEvent=function(_){var T,M;l.axis.x.track.el&&l.axis.y.track.el&&l.axis.x.scrollbar.el&&l.axis.y.scrollbar.el&&(l.axis.x.track.rect=l.axis.x.track.el.getBoundingClientRect(),l.axis.y.track.rect=l.axis.y.track.el.getBoundingClientRect(),(l.axis.x.isOverflowing||l.axis.x.forceVisible)&&(T=l.isWithinBounds(l.axis.x.track.rect)),(l.axis.y.isOverflowing||l.axis.y.forceVisible)&&(M=l.isWithinBounds(l.axis.y.track.rect)),(T||M)&&(_.stopPropagation(),_.type==="pointerdown"&&_.pointerType!=="touch"&&(T&&(l.axis.x.scrollbar.rect=l.axis.x.scrollbar.el.getBoundingClientRect(),l.isWithinBounds(l.axis.x.scrollbar.rect)?l.onDragStart(_,"x"):l.onTrackClick(_,"x")),M&&(l.axis.y.scrollbar.rect=l.axis.y.scrollbar.el.getBoundingClientRect(),l.isWithinBounds(l.axis.y.scrollbar.rect)?l.onDragStart(_,"y"):l.onTrackClick(_,"y")))))},this.drag=function(_){var T,M,z,K,U,re,Q,J,ae,Oe,be;if(l.draggedAxis&&l.contentWrapperEl){var Ie=l.axis[l.draggedAxis].track,Et=(M=(T=Ie.rect)===null||T===void 0?void 0:T[l.axis[l.draggedAxis].sizeAttr])!==null&&M!==void 0?M:0,Ze=l.axis[l.draggedAxis].scrollbar,ee=(K=(z=l.contentWrapperEl)===null||z===void 0?void 0:z[l.axis[l.draggedAxis].scrollSizeAttr])!==null&&K!==void 0?K:0,ne=parseInt((re=(U=l.elStyles)===null||U===void 0?void 0:U[l.axis[l.draggedAxis].sizeAttr])!==null&&re!==void 0?re:"0px",10);_.preventDefault(),_.stopPropagation();var ge=(l.draggedAxis==="y"?_.pageY:_.pageX)-((J=(Q=Ie.rect)===null||Q===void 0?void 0:Q[l.axis[l.draggedAxis].offsetAttr])!==null&&J!==void 0?J:0)-l.axis[l.draggedAxis].dragOffset,wt=(ge=l.draggedAxis==="x"&&l.isRtl?((Oe=(ae=Ie.rect)===null||ae===void 0?void 0:ae[l.axis[l.draggedAxis].sizeAttr])!==null&&Oe!==void 0?Oe:0)-Ze.size-ge:ge)/(Et-Ze.size)*(ee-ne);l.draggedAxis==="x"&&l.isRtl&&(wt=!((be=m.getRtlHelpers())===null||be===void 0)&&be.isScrollingToNegative?-wt:wt),l.contentWrapperEl[l.axis[l.draggedAxis].scrollOffsetAttr]=wt}},this.onEndDrag=function(_){l.isDragging=!1;var T=Rn(l.el),M=Me(l.el);_.preventDefault(),_.stopPropagation(),ze(l.el,l.classNames.dragging),l.onStopScrolling(),T.removeEventListener("mousemove",l.drag,!0),T.removeEventListener("mouseup",l.onEndDrag,!0),l.removePreventClickId=M.setTimeout(function(){T.removeEventListener("click",l.preventClick,!0),T.removeEventListener("dblclick",l.preventClick,!0),l.removePreventClickId=null})},this.preventClick=function(_){_.preventDefault(),_.stopPropagation()},this.el=f,this.options=$e($e({},m.defaultOptions),h),this.classNames=$e($e({},m.defaultOptions.classNames),h.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=Be(this._onMouseMove,64),this.onWindowResize=Ke(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Ke(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Ke(this._onMouseEntered,this.stopScrollDelay),this.init()}return m.getRtlHelpers=function(){if(m.rtlHelpers)return m.rtlHelpers;var f=document.createElement("div");f.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var h=f.firstElementChild,l=h?.firstElementChild;if(!l)return null;document.body.appendChild(h),h.scrollLeft=0;var _=m.getOffset(h),T=m.getOffset(l);h.scrollLeft=-999;var M=m.getOffset(l);return document.body.removeChild(h),m.rtlHelpers={isScrollOriginAtZero:_.left!==T.left,isScrollingToNegative:T.left!==M.left},m.rtlHelpers},m.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:Re()}catch{return Re()}},m.getOffset=function(f){var h=f.getBoundingClientRect(),l=Rn(f),_=Me(f);return{top:h.top+(_.pageYOffset||l.documentElement.scrollTop),left:h.left+(_.pageXOffset||l.documentElement.scrollLeft)}},m.prototype.init=function(){Wn&&(this.initDOM(),this.rtlHelpers=m.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},m.prototype.initDOM=function(){var f,h;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=((f=this.axis.x.track.el)===null||f===void 0?void 0:f.querySelector(se(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((h=this.axis.y.track.el)===null||h===void 0?void 0:h.querySelector(se(this.classNames.scrollbar)))||null,this.options.autoHide||(Le(this.axis.x.scrollbar.el,this.classNames.visible),Le(this.axis.y.scrollbar.el,this.classNames.visible))},m.prototype.initListeners=function(){var f,h=this,l=Me(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),(f=this.contentWrapperEl)===null||f===void 0||f.addEventListener("scroll",this.onScroll),l.addEventListener("resize",this.onWindowResize),this.contentEl){if(window.ResizeObserver){var _=!1,T=l.ResizeObserver||ResizeObserver;this.resizeObserver=new T(function(){_&&l.requestAnimationFrame(function(){h.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),l.requestAnimationFrame(function(){_=!0})}this.mutationObserver=new l.MutationObserver(function(){l.requestAnimationFrame(function(){h.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},m.prototype.recalculate=function(){if(this.heightAutoObserverEl&&this.contentEl&&this.contentWrapperEl&&this.wrapperEl&&this.placeholderEl){var f=Me(this.el);this.elStyles=f.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var h=this.contentEl.offsetWidth,l=this.heightAutoObserverEl.offsetHeight<=1,_=this.heightAutoObserverEl.offsetWidth<=1||h>0,T=this.contentWrapperEl.offsetWidth,M=this.elStyles.overflowX,z=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var K=this.contentEl.scrollHeight,U=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=l?"auto":"100%",this.placeholderEl.style.width=_?"".concat(h||U,"px"):"auto",this.placeholderEl.style.height="".concat(K,"px");var re=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=h!==0&&U>h,this.axis.y.isOverflowing=K>re,this.axis.x.isOverflowing=M!=="hidden"&&this.axis.x.isOverflowing,this.axis.y.isOverflowing=z!=="hidden"&&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 Q=this.axis.x.isOverflowing?this.scrollbarWidth:0,J=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&U>T-J,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&K>re-Q,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")}},m.prototype.getScrollbarSize=function(f){var h,l;if(f===void 0&&(f="y"),!this.axis[f].isOverflowing||!this.contentEl)return 0;var _,T=this.contentEl[this.axis[f].scrollSizeAttr],M=(l=(h=this.axis[f].track.el)===null||h===void 0?void 0:h[this.axis[f].offsetSizeAttr])!==null&&l!==void 0?l:0,z=M/T;return _=Math.max(~~(z*M),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(_=Math.min(_,this.options.scrollbarMaxSize)),_},m.prototype.positionScrollbar=function(f){var h,l,_;f===void 0&&(f="y");var T=this.axis[f].scrollbar;if(this.axis[f].isOverflowing&&this.contentWrapperEl&&T.el&&this.elStyles){var M=this.contentWrapperEl[this.axis[f].scrollSizeAttr],z=((h=this.axis[f].track.el)===null||h===void 0?void 0:h[this.axis[f].offsetSizeAttr])||0,K=parseInt(this.elStyles[this.axis[f].sizeAttr],10),U=this.contentWrapperEl[this.axis[f].scrollOffsetAttr];U=f==="x"&&this.isRtl&&(!((l=m.getRtlHelpers())===null||l===void 0)&&l.isScrollOriginAtZero)?-U:U,f==="x"&&this.isRtl&&(U=!((_=m.getRtlHelpers())===null||_===void 0)&&_.isScrollingToNegative?U:-U);var re=U/(M-K),Q=~~((z-T.size)*re);Q=f==="x"&&this.isRtl?-Q+(z-T.size):Q,T.el.style.transform=f==="x"?"translate3d(".concat(Q,"px, 0, 0)"):"translate3d(0, ".concat(Q,"px, 0)")}},m.prototype.toggleTrackVisibility=function(f){f===void 0&&(f="y");var h=this.axis[f].track.el,l=this.axis[f].scrollbar.el;h&&l&&this.contentWrapperEl&&(this.axis[f].isOverflowing||this.axis[f].forceVisible?(h.style.visibility="visible",this.contentWrapperEl.style[this.axis[f].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(f))):(h.style.visibility="hidden",this.contentWrapperEl.style[this.axis[f].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(f))),this.axis[f].isOverflowing?l.style.display="block":l.style.display="none")},m.prototype.showScrollbar=function(f){f===void 0&&(f="y"),this.axis[f].isOverflowing&&!this.axis[f].scrollbar.isVisible&&(Le(this.axis[f].scrollbar.el,this.classNames.visible),this.axis[f].scrollbar.isVisible=!0)},m.prototype.hideScrollbar=function(f){f===void 0&&(f="y"),this.isDragging||this.axis[f].isOverflowing&&this.axis[f].scrollbar.isVisible&&(ze(this.axis[f].scrollbar.el,this.classNames.visible),this.axis[f].scrollbar.isVisible=!1)},m.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")},m.prototype.onMouseMoveForAxis=function(f){f===void 0&&(f="y");var h=this.axis[f];h.track.el&&h.scrollbar.el&&(h.track.rect=h.track.el.getBoundingClientRect(),h.scrollbar.rect=h.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(h.track.rect)?(this.showScrollbar(f),Le(h.track.el,this.classNames.hover),this.isWithinBounds(h.scrollbar.rect)?Le(h.scrollbar.el,this.classNames.hover):ze(h.scrollbar.el,this.classNames.hover)):(ze(h.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(f)))},m.prototype.onMouseLeaveForAxis=function(f){f===void 0&&(f="y"),ze(this.axis[f].track.el,this.classNames.hover),ze(this.axis[f].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(f)},m.prototype.onDragStart=function(f,h){var l;h===void 0&&(h="y"),this.isDragging=!0;var _=Rn(this.el),T=Me(this.el),M=this.axis[h].scrollbar,z=h==="y"?f.pageY:f.pageX;this.axis[h].dragOffset=z-(((l=M.rect)===null||l===void 0?void 0:l[this.axis[h].offsetAttr])||0),this.draggedAxis=h,Le(this.el,this.classNames.dragging),_.addEventListener("mousemove",this.drag,!0),_.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(_.addEventListener("click",this.preventClick,!0),_.addEventListener("dblclick",this.preventClick,!0)):(T.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},m.prototype.onTrackClick=function(f,h){var l,_,T,M,z=this;h===void 0&&(h="y");var K=this.axis[h];if(this.options.clickOnTrack&&K.scrollbar.el&&this.contentWrapperEl){f.preventDefault();var U=Me(this.el);this.axis[h].scrollbar.rect=K.scrollbar.el.getBoundingClientRect();var re=(_=(l=this.axis[h].scrollbar.rect)===null||l===void 0?void 0:l[this.axis[h].offsetAttr])!==null&&_!==void 0?_:0,Q=parseInt((M=(T=this.elStyles)===null||T===void 0?void 0:T[this.axis[h].sizeAttr])!==null&&M!==void 0?M:"0px",10),J=this.contentWrapperEl[this.axis[h].scrollOffsetAttr],ae=(h==="y"?this.mouseY-re:this.mouseX-re)<0?-1:1,Oe=ae===-1?J-Q:J+Q,be=function(){z.contentWrapperEl&&(ae===-1?J>Oe&&(J-=40,z.contentWrapperEl[z.axis[h].scrollOffsetAttr]=J,U.requestAnimationFrame(be)):J<Oe&&(J+=40,z.contentWrapperEl[z.axis[h].scrollOffsetAttr]=J,U.requestAnimationFrame(be)))};be()}},m.prototype.getContentElement=function(){return this.contentEl},m.prototype.getScrollElement=function(){return this.contentWrapperEl},m.prototype.removeListeners=function(){var f=Me(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),f.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()},m.prototype.unMount=function(){this.removeListeners()},m.prototype.isWithinBounds=function(f){return this.mouseX>=f.left&&this.mouseX<=f.left+f.width&&this.mouseY>=f.top&&this.mouseY<=f.top+f.height},m.prototype.findChild=function(f,h){var l=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.msMatchesSelector;return Array.prototype.filter.call(f.children,function(_){return l.call(_,h)})[0]},m.rtlHelpers=null,m.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},m.getOptions=Li,m.helpers=rt,m}(),Je=$t.helpers,Ee=Je.getOptions,le=Je.addClasses,zi=Je.canUseDOM,di=function(m){function f(){for(var h=[],l=0;l<arguments.length;l++)h[l]=arguments[l];var _=m.apply(this,h)||this;return f.instances.set(h[0],_),_}return function(h,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function _(){this.constructor=h}e(h,l),h.prototype=l===null?Object.create(l):(_.prototype=l.prototype,new _)}(f,m),f.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(h){h.getAttribute("data-simplebar")==="init"||f.instances.has(h)||new f(h,Ee(h.attributes))})},f.removeObserver=function(){var h;(h=f.globalObserver)===null||h===void 0||h.disconnect()},f.prototype.initDOM=function(){var h,l,_,T=this;if(!Array.prototype.filter.call(this.el.children,function(K){return K.classList.contains(T.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"),le(this.wrapperEl,this.classNames.wrapper),le(this.contentWrapperEl,this.classNames.contentWrapper),le(this.offsetEl,this.classNames.offset),le(this.maskEl,this.classNames.mask),le(this.contentEl,this.classNames.contentEl),le(this.placeholderEl,this.classNames.placeholder),le(this.heightAutoObserverWrapperEl,this.classNames.heightAutoObserverWrapperEl),le(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),(h=this.contentWrapperEl)===null||h===void 0||h.setAttribute("tabindex",this.options.tabIndex.toString()),(l=this.contentWrapperEl)===null||l===void 0||l.setAttribute("role","region"),(_=this.contentWrapperEl)===null||_===void 0||_.setAttribute("aria-label",this.options.ariaLabel)}if(!this.axis.x.track.el||!this.axis.y.track.el){var M=document.createElement("div"),z=document.createElement("div");le(M,this.classNames.track),le(z,this.classNames.scrollbar),M.appendChild(z),this.axis.x.track.el=M.cloneNode(!0),le(this.axis.x.track.el,this.classNames.horizontal),this.axis.y.track.el=M.cloneNode(!0),le(this.axis.y.track.el,this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}$t.prototype.initDOM.call(this),this.el.setAttribute("data-simplebar","init")},f.prototype.unMount=function(){$t.prototype.unMount.call(this),f.instances.delete(this.el)},f.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),typeof MutationObserver<"u"&&(this.globalObserver=new MutationObserver(f.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))},f.handleMutations=function(h){h.forEach(function(l){l.addedNodes.forEach(function(_){_.nodeType===1&&(_.hasAttribute("data-simplebar")?!f.instances.has(_)&&document.documentElement.contains(_)&&new f(_,Ee(_.attributes)):_.querySelectorAll("[data-simplebar]").forEach(function(T){T.getAttribute("data-simplebar")!=="init"&&!f.instances.has(T)&&document.documentElement.contains(T)&&new f(T,Ee(T.attributes))}))}),l.removedNodes.forEach(function(_){var T;_.nodeType===1&&(_.getAttribute("data-simplebar")==="init"?!document.documentElement.contains(_)&&((T=f.instances.get(_))===null||T===void 0||T.unMount()):Array.prototype.forEach.call(_.querySelectorAll('[data-simplebar="init"]'),function(M){var z;!document.documentElement.contains(M)&&((z=f.instances.get(M))===null||z===void 0||z.unMount())}))})})},f.instances=new WeakMap,f}($t);return zi&&di.initHtmlApi(),di}()),Js}$a();const Ea=n.defineComponent({name:"ClUI",methods:{VITE_APP_VERSION:()=>"6.0.2"}}),B=(e,o)=>{const c=e.__vccOpts||e;for(const[p,b]of o)c[p]=b;return c};function wa(e,o,c,p,b,v){return n.toDisplayString(e.VITE_APP_VERSION())}const Sa=B(Ea,[["render",wa]]),Na=n.defineComponent({name:"ClAlert",props:{type:{type:String,default:"info"}}});function Ta(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("p",{class:n.normalizeClass(["alert",`cl-alert-${e.type}`]),role:"alert"},[n.renderSlot(e.$slots,"default")],2)}const xt=B(Na,[["render",Ta]]);xt.install=e=>{e.component(xt.name??"ClNoName",xt)};var Ai={exports:{}};/*!
|
|
2
2
|
* Bootstrap v5.3.7 (https://getbootstrap.com/)
|
|
3
3
|
* Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
|
4
4
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
5
|
-
*/var Aa=Ai.exports,er;function Ba(){return er||(er=1,function(e,s){(function(c,p){e.exports=p()})(Aa,function(){const c=new Map,p={set(o,t,i){c.has(o)||c.set(o,new Map);const r=c.get(o);r.has(t)||r.size===0?r.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(o,t)=>c.has(o)&&c.get(o).get(t)||null,remove(o,t){if(!c.has(o))return;const i=c.get(o);i.delete(t),i.size===0&&c.delete(o)}},b="transitionend",v=o=>(o&&window.CSS&&window.CSS.escape&&(o=o.replace(/#([^\s"#']+)/g,(t,i)=>`#${CSS.escape(i)}`)),o),u=o=>{o.dispatchEvent(new Event(b))},S=o=>!(!o||typeof o!="object")&&(o.jquery!==void 0&&(o=o[0]),o.nodeType!==void 0),Y=o=>S(o)?o.jquery?o[0]:o:typeof o=="string"&&o.length>0?document.querySelector(v(o)):null,ve=o=>{if(!S(o)||o.getClientRects().length===0)return!1;const t=getComputedStyle(o).getPropertyValue("visibility")==="visible",i=o.closest("details:not([open])");if(!i)return t;if(i!==o){const r=o.closest("summary");if(r&&r.parentNode!==i||r===null)return!1}return t},pe=o=>!o||o.nodeType!==Node.ELEMENT_NODE||!!o.classList.contains("disabled")||(o.disabled!==void 0?o.disabled:o.hasAttribute("disabled")&&o.getAttribute("disabled")!=="false"),_t=o=>{if(!document.documentElement.attachShadow)return null;if(typeof o.getRootNode=="function"){const t=o.getRootNode();return t instanceof ShadowRoot?t:null}return o instanceof ShadowRoot?o:o.parentNode?_t(o.parentNode):null},Xe=()=>{},Ye=o=>{o.offsetHeight},Mn=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Ln=[],he=()=>document.documentElement.dir==="rtl",te=o=>{var t;t=()=>{const i=Mn();if(i){const r=o.NAME,a=i.fn[r];i.fn[r]=o.jQueryInterface,i.fn[r].Constructor=o,i.fn[r].noConflict=()=>(i.fn[r]=a,o.jQueryInterface)}},document.readyState==="loading"?(Ln.length||document.addEventListener("DOMContentLoaded",()=>{for(const i of Ln)i()}),Ln.push(t)):t()},oe=(o,t=[],i=o)=>typeof o=="function"?o.call(...t):i,Jn=(o,t,i=!0)=>{if(!i)return void oe(o);const r=(g=>{if(!g)return 0;let{transitionDuration:y,transitionDelay:k}=window.getComputedStyle(g);const E=Number.parseFloat(y),w=Number.parseFloat(k);return E||w?(y=y.split(",")[0],k=k.split(",")[0],1e3*(Number.parseFloat(y)+Number.parseFloat(k))):0})(t)+5;let a=!1;const d=({target:g})=>{g===t&&(a=!0,t.removeEventListener(b,d),oe(o))};t.addEventListener(b,d),setTimeout(()=>{a||u(t)},r)},zn=(o,t,i,r)=>{const a=o.length;let d=o.indexOf(t);return d===-1?!i&&r?o[a-1]:o[0]:(d+=i?1:-1,r&&(d=(d+a)%a),o[Math.max(0,Math.min(d,a-1))])},Di=/[^.]*(?=\..*)\.|.*/,Zn=/\..*/,Vi=/::\d+$/,In={};let ei=1;const Fn={mouseenter:"mouseover",mouseleave:"mouseout"},Mi=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 ti(o,t){return t&&`${t}::${ei++}`||o.uidEvent||ei++}function ni(o){const t=ti(o);return o.uidEvent=t,In[t]=In[t]||{},In[t]}function ii(o,t,i=null){return Object.values(o).find(r=>r.callable===t&&r.delegationSelector===i)}function oi(o,t,i){const r=typeof t=="string",a=r?i:t||i;let d=li(o);return Mi.has(d)||(d=o),[r,a,d]}function si(o,t,i,r,a){if(typeof t!="string"||!o)return;let[d,g,y]=oi(t,i,r);t in Fn&&(g=(D=>function(O){if(!O.relatedTarget||O.relatedTarget!==O.delegateTarget&&!O.delegateTarget.contains(O.relatedTarget))return D.call(this,O)})(g));const k=ni(o),E=k[y]||(k[y]={}),w=ii(E,g,d?i:null);if(w)return void(w.oneOff=w.oneOff&&a);const $=ti(g,t.replace(Di,"")),L=d?function(A,D,O){return function V(R){const X=A.querySelectorAll(D);for(let{target:F}=R;F&&F!==this;F=F.parentNode)for(const P of X)if(P===F)return Ke(R,{delegateTarget:F}),V.oneOff&&C.off(A,R.type,D,O),O.apply(F,[R])}}(o,i,g):function(A,D){return function O(V){return Ke(V,{delegateTarget:A}),O.oneOff&&C.off(A,V.type,D),D.apply(A,[V])}}(o,g);L.delegationSelector=d?i:null,L.callable=g,L.oneOff=a,L.uidEvent=$,E[$]=L,o.addEventListener(y,L,d)}function ot(o,t,i,r,a){const d=ii(t[i],r,a);d&&(o.removeEventListener(i,d,!!a),delete t[i][d.uidEvent])}function ri(o,t,i,r){const a=t[i]||{};for(const[d,g]of Object.entries(a))d.includes(r)&&ot(o,t,i,g.callable,g.delegationSelector)}function li(o){return o=o.replace(Zn,""),Fn[o]||o}const C={on(o,t,i,r){si(o,t,i,r,!1)},one(o,t,i,r){si(o,t,i,r,!0)},off(o,t,i,r){if(typeof t!="string"||!o)return;const[a,d,g]=oi(t,i,r),y=g!==t,k=ni(o),E=k[g]||{},w=t.startsWith(".");if(d===void 0){if(w)for(const $ of Object.keys(k))ri(o,k,$,t.slice(1));for(const[$,L]of Object.entries(E)){const A=$.replace(Vi,"");y&&!t.includes(A)||ot(o,k,g,L.callable,L.delegationSelector)}}else{if(!Object.keys(E).length)return;ot(o,k,g,d,a?i:null)}},trigger(o,t,i){if(typeof t!="string"||!o)return null;const r=Mn();let a=null,d=!0,g=!0,y=!1;t!==li(t)&&r&&(a=r.Event(t,i),r(o).trigger(a),d=!a.isPropagationStopped(),g=!a.isImmediatePropagationStopped(),y=a.isDefaultPrevented());const k=Ke(new Event(t,{bubbles:d,cancelable:!0}),i);return y&&k.preventDefault(),g&&o.dispatchEvent(k),k.defaultPrevented&&a&&a.preventDefault(),k}};function Ke(o,t={}){for(const[i,r]of Object.entries(t))try{o[i]=r}catch{Object.defineProperty(o,i,{configurable:!0,get:()=>r})}return o}function ai(o){if(o==="true")return!0;if(o==="false")return!1;if(o===Number(o).toString())return Number(o);if(o===""||o==="null")return null;if(typeof o!="string")return o;try{return JSON.parse(decodeURIComponent(o))}catch{return o}}function xn(o){return o.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const Be={setDataAttribute(o,t,i){o.setAttribute(`data-bs-${xn(t)}`,i)},removeDataAttribute(o,t){o.removeAttribute(`data-bs-${xn(t)}`)},getDataAttributes(o){if(!o)return{};const t={},i=Object.keys(o.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of i){let a=r.replace(/^bs/,"");a=a.charAt(0).toLowerCase()+a.slice(1),t[a]=ai(o.dataset[r])}return t},getDataAttribute:(o,t)=>ai(o.getAttribute(`data-bs-${xn(t)}`))};class $e{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,i){const r=S(i)?Be.getDataAttribute(i,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...S(i)?Be.getDataAttributes(i):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,i=this.constructor.DefaultType){for(const[a,d]of Object.entries(i)){const g=t[a],y=S(g)?"element":(r=g)==null?`${r}`:Object.prototype.toString.call(r).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(d).test(y))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${a}" provided type "${y}" but expected type "${d}".`)}var r}}class me extends $e{constructor(t,i){super(),(t=Y(t))&&(this._element=t,this._config=this._getConfig(i),p.set(this._element,this.constructor.DATA_KEY,this))}dispose(){p.remove(this._element,this.constructor.DATA_KEY),C.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,i,r=!0){Jn(t,i,r)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return p.get(Y(t),this.DATA_KEY)}static getOrCreateInstance(t,i={}){return this.getInstance(t)||new this(t,typeof i=="object"?i:null)}static get VERSION(){return"5.3.7"}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 Ct=o=>{let t=o.getAttribute("data-bs-target");if(!t||t==="#"){let i=o.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&i!=="#"?i.trim():null}return t?t.split(",").map(i=>v(i)).join(","):null},N={find:(o,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,o)),findOne:(o,t=document.documentElement)=>Element.prototype.querySelector.call(t,o),children:(o,t)=>[].concat(...o.children).filter(i=>i.matches(t)),parents(o,t){const i=[];let r=o.parentNode.closest(t);for(;r;)i.push(r),r=r.parentNode.closest(t);return i},prev(o,t){let i=o.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(o,t){let i=o.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(o){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(i=>`${i}:not([tabindex^="-"])`).join(",");return this.find(t,o).filter(i=>!pe(i)&&ve(i))},getSelectorFromElement(o){const t=Ct(o);return t&&N.findOne(t)?t:null},getElementFromSelector(o){const t=Ct(o);return t?N.findOne(t):null},getMultipleElementsFromSelector(o){const t=Ct(o);return t?N.find(t):[]}},st=(o,t="hide")=>{const i=`click.dismiss${o.EVENT_KEY}`,r=o.NAME;C.on(document,i,`[data-bs-dismiss="${r}"]`,function(a){if(["A","AREA"].includes(this.tagName)&&a.preventDefault(),pe(this))return;const d=N.getElementFromSelector(this)||this.closest(`.${r}`);o.getOrCreateInstance(d)[t]()})},Pn=".bs.alert",ci=`close${Pn}`,jn=`closed${Pn}`;class rt extends me{static get NAME(){return"alert"}close(){if(C.trigger(this._element,ci).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(),C.trigger(this._element,jn),this.dispose()}static jQueryInterface(t){return this.each(function(){const i=rt.getOrCreateInstance(this);if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t](this)}})}}st(rt,"close"),te(rt);const Ge='[data-bs-toggle="button"]';class Qe extends me{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){const i=Qe.getOrCreateInstance(this);t==="toggle"&&i[t]()})}}C.on(document,"click.bs.button.data-api",Ge,o=>{o.preventDefault();const t=o.target.closest(Ge);Qe.getOrCreateInstance(t).toggle()}),te(Qe);const Re=".bs.swipe",Me=`touchstart${Re}`,Wn=`touchmove${Re}`,Li=`touchend${Re}`,Le=`pointerdown${Re}`,ze=`pointerup${Re}`,se={endCallback:null,leftCallback:null,rightCallback:null},kt={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Je extends $e{constructor(t,i){super(),this._element=t,t&&Je.isSupported()&&(this._config=this._getConfig(i),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return se}static get DefaultType(){return kt}static get NAME(){return"swipe"}dispose(){C.off(this._element,Re)}_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(),oe(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 i=t/this._deltaX;this._deltaX=0,i&&oe(i>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(C.on(this._element,Le,t=>this._start(t)),C.on(this._element,ze,t=>this._end(t)),this._element.classList.add("pointer-event")):(C.on(this._element,Me,t=>this._start(t)),C.on(this._element,Wn,t=>this._move(t)),C.on(this._element,Li,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 Ee=".bs.carousel",le=".data-api",zi="ArrowLeft",di="ArrowRight",m="next",f="prev",h="left",l="right",_=`slide${Ee}`,T=`slid${Ee}`,M=`keydown${Ee}`,z=`mouseenter${Ee}`,K=`mouseleave${Ee}`,U=`dragstart${Ee}`,re=`load${Ee}${le}`,Q=`click${Ee}${le}`,J="carousel",ae="active",Oe=".active",be=".carousel-item",Ie=Oe+be,$t={[zi]:l,[di]:h},Ze={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ee={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ne extends me{constructor(t,i){super(t,i),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=N.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===J&&this.cycle()}static get Default(){return Ze}static get DefaultType(){return ee}static get NAME(){return"carousel"}next(){this._slide(m)}nextWhenVisible(){!document.hidden&&ve(this._element)&&this.next()}prev(){this._slide(f)}pause(){this._isSliding&&u(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?C.one(this._element,T,()=>this.cycle()):this.cycle())}to(t){const i=this._getItems();if(t>i.length-1||t<0)return;if(this._isSliding)return void C.one(this._element,T,()=>this.to(t));const r=this._getItemIndex(this._getActive());if(r===t)return;const a=t>r?m:f;this._slide(a,i[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&C.on(this._element,M,t=>this._keydown(t)),this._config.pause==="hover"&&(C.on(this._element,z,()=>this.pause()),C.on(this._element,K,()=>this._maybeEnableCycle())),this._config.touch&&Je.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const i of N.find(".carousel-item img",this._element))C.on(i,U,r=>r.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(h)),rightCallback:()=>this._slide(this._directionToOrder(l)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new Je(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const i=$t[t.key];i&&(t.preventDefault(),this._slide(this._directionToOrder(i)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const i=N.findOne(Oe,this._indicatorsElement);i.classList.remove(ae),i.removeAttribute("aria-current");const r=N.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);r&&(r.classList.add(ae),r.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const i=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=i||this._config.defaultInterval}_slide(t,i=null){if(this._isSliding)return;const r=this._getActive(),a=t===m,d=i||zn(this._getItems(),r,a,this._config.wrap);if(d===r)return;const g=this._getItemIndex(d),y=$=>C.trigger(this._element,$,{relatedTarget:d,direction:this._orderToDirection(t),from:this._getItemIndex(r),to:g});if(y(_).defaultPrevented||!r||!d)return;const k=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(g),this._activeElement=d;const E=a?"carousel-item-start":"carousel-item-end",w=a?"carousel-item-next":"carousel-item-prev";d.classList.add(w),Ye(d),r.classList.add(E),d.classList.add(E),this._queueCallback(()=>{d.classList.remove(E,w),d.classList.add(ae),r.classList.remove(ae,w,E),this._isSliding=!1,y(T)},r,this._isAnimated()),k&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return N.findOne(Ie,this._element)}_getItems(){return N.find(be,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return he()?t===h?f:m:t===h?m:f}_orderToDirection(t){return he()?t===f?h:l:t===f?l:h}static jQueryInterface(t){return this.each(function(){const i=ne.getOrCreateInstance(this,t);if(typeof t!="number"){if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t]()}}else i.to(t)})}}C.on(document,Q,"[data-bs-slide], [data-bs-slide-to]",function(o){const t=N.getElementFromSelector(this);if(!t||!t.classList.contains(J))return;o.preventDefault();const i=ne.getOrCreateInstance(t),r=this.getAttribute("data-bs-slide-to");return r?(i.to(r),void i._maybeEnableCycle()):Be.getDataAttribute(this,"slide")==="next"?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())}),C.on(window,re,()=>{const o=N.find('[data-bs-ride="carousel"]');for(const t of o)ne.getOrCreateInstance(t)}),te(ne);const ge=".bs.collapse",Et=`show${ge}`,wr=`shown${ge}`,Sr=`hide${ge}`,Nr=`hidden${ge}`,Tr=`click${ge}.data-api`,Ii="show",wt="collapse",ui="collapsing",Ar=`:scope .${wt} .${wt}`,Fi='[data-bs-toggle="collapse"]',Br={parent:null,toggle:!0},Or={parent:"(null|element)",toggle:"boolean"};class St extends me{constructor(t,i){super(t,i),this._isTransitioning=!1,this._triggerArray=[];const r=N.find(Fi);for(const a of r){const d=N.getSelectorFromElement(a),g=N.find(d).filter(y=>y===this._element);d!==null&&g.length&&this._triggerArray.push(a)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Br}static get DefaultType(){return Or}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(a=>a!==this._element).map(a=>St.getOrCreateInstance(a,{toggle:!1}))),t.length&&t[0]._isTransitioning||C.trigger(this._element,Et).defaultPrevented)return;for(const a of t)a.hide();const i=this._getDimension();this._element.classList.remove(wt),this._element.classList.add(ui),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ui),this._element.classList.add(wt,Ii),this._element.style[i]="",C.trigger(this._element,wr)},this._element,!0),this._element.style[i]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||C.trigger(this._element,Sr).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Ye(this._element),this._element.classList.add(ui),this._element.classList.remove(wt,Ii);for(const i of this._triggerArray){const r=N.getElementFromSelector(i);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ui),this._element.classList.add(wt),C.trigger(this._element,Nr)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(Ii)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=Y(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Fi);for(const i of t){const r=N.getElementFromSelector(i);r&&this._addAriaAndCollapsedClass([i],this._isShown(r))}}_getFirstLevelChildren(t){const i=N.find(Ar,this._config.parent);return N.find(t,this._config.parent).filter(r=>!i.includes(r))}_addAriaAndCollapsedClass(t,i){if(t.length)for(const r of t)r.classList.toggle("collapsed",!i),r.setAttribute("aria-expanded",i)}static jQueryInterface(t){const i={};return typeof t=="string"&&/show|hide/.test(t)&&(i.toggle=!1),this.each(function(){const r=St.getOrCreateInstance(this,i);if(typeof t=="string"){if(r[t]===void 0)throw new TypeError(`No method named "${t}"`);r[t]()}})}}C.on(document,Tr,Fi,function(o){(o.target.tagName==="A"||o.delegateTarget&&o.delegateTarget.tagName==="A")&&o.preventDefault();for(const t of N.getMultipleElementsFromSelector(this))St.getOrCreateInstance(t,{toggle:!1}).toggle()}),te(St);var ce="top",ye="bottom",_e="right",de="left",fi="auto",Nt=[ce,ye,_e,de],lt="start",Tt="end",wo="clippingParents",xi="viewport",At="popper",So="reference",Pi=Nt.reduce(function(o,t){return o.concat([t+"-"+lt,t+"-"+Tt])},[]),ji=[].concat(Nt,[fi]).reduce(function(o,t){return o.concat([t,t+"-"+lt,t+"-"+Tt])},[]),No="beforeRead",To="read",Ao="afterRead",Bo="beforeMain",Oo="main",Do="afterMain",Vo="beforeWrite",Mo="write",Lo="afterWrite",zo=[No,To,Ao,Bo,Oo,Do,Vo,Mo,Lo];function Fe(o){return o?(o.nodeName||"").toLowerCase():null}function Ce(o){if(o==null)return window;if(o.toString()!=="[object Window]"){var t=o.ownerDocument;return t&&t.defaultView||window}return o}function at(o){return o instanceof Ce(o).Element||o instanceof Element}function we(o){return o instanceof Ce(o).HTMLElement||o instanceof HTMLElement}function Wi(o){return typeof ShadowRoot<"u"&&(o instanceof Ce(o).ShadowRoot||o instanceof ShadowRoot)}const Ri={name:"applyStyles",enabled:!0,phase:"write",fn:function(o){var t=o.state;Object.keys(t.elements).forEach(function(i){var r=t.styles[i]||{},a=t.attributes[i]||{},d=t.elements[i];we(d)&&Fe(d)&&(Object.assign(d.style,r),Object.keys(a).forEach(function(g){var y=a[g];y===!1?d.removeAttribute(g):d.setAttribute(g,y===!0?"":y)}))})},effect:function(o){var t=o.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],d=t.attributes[r]||{},g=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:i[r]).reduce(function(y,k){return y[k]="",y},{});we(a)&&Fe(a)&&(Object.assign(a.style,g),Object.keys(d).forEach(function(y){a.removeAttribute(y)}))})}},requires:["computeStyles"]};function xe(o){return o.split("-")[0]}var ct=Math.max,pi=Math.min,Bt=Math.round;function qi(){var o=navigator.userAgentData;return o!=null&&o.brands&&Array.isArray(o.brands)?o.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Io(){return!/^((?!chrome|android).)*safari/i.test(qi())}function Ot(o,t,i){t===void 0&&(t=!1),i===void 0&&(i=!1);var r=o.getBoundingClientRect(),a=1,d=1;t&&we(o)&&(a=o.offsetWidth>0&&Bt(r.width)/o.offsetWidth||1,d=o.offsetHeight>0&&Bt(r.height)/o.offsetHeight||1);var g=(at(o)?Ce(o):window).visualViewport,y=!Io()&&i,k=(r.left+(y&&g?g.offsetLeft:0))/a,E=(r.top+(y&&g?g.offsetTop:0))/d,w=r.width/a,$=r.height/d;return{width:w,height:$,top:E,right:k+w,bottom:E+$,left:k,x:k,y:E}}function Hi(o){var t=Ot(o),i=o.offsetWidth,r=o.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:o.offsetLeft,y:o.offsetTop,width:i,height:r}}function Fo(o,t){var i=t.getRootNode&&t.getRootNode();if(o.contains(t))return!0;if(i&&Wi(i)){var r=t;do{if(r&&o.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function qe(o){return Ce(o).getComputedStyle(o)}function Dr(o){return["table","td","th"].indexOf(Fe(o))>=0}function et(o){return((at(o)?o.ownerDocument:o.document)||window.document).documentElement}function hi(o){return Fe(o)==="html"?o:o.assignedSlot||o.parentNode||(Wi(o)?o.host:null)||et(o)}function xo(o){return we(o)&&qe(o).position!=="fixed"?o.offsetParent:null}function Rn(o){for(var t=Ce(o),i=xo(o);i&&Dr(i)&&qe(i).position==="static";)i=xo(i);return i&&(Fe(i)==="html"||Fe(i)==="body"&&qe(i).position==="static")?t:i||function(r){var a=/firefox/i.test(qi());if(/Trident/i.test(qi())&&we(r)&&qe(r).position==="fixed")return null;var d=hi(r);for(Wi(d)&&(d=d.host);we(d)&&["html","body"].indexOf(Fe(d))<0;){var g=qe(d);if(g.transform!=="none"||g.perspective!=="none"||g.contain==="paint"||["transform","perspective"].indexOf(g.willChange)!==-1||a&&g.willChange==="filter"||a&&g.filter&&g.filter!=="none")return d;d=d.parentNode}return null}(o)||t}function Ui(o){return["top","bottom"].indexOf(o)>=0?"x":"y"}function qn(o,t,i){return ct(o,pi(t,i))}function Po(o){return Object.assign({},{top:0,right:0,bottom:0,left:0},o)}function jo(o,t){return t.reduce(function(i,r){return i[r]=o,i},{})}const Wo={name:"arrow",enabled:!0,phase:"main",fn:function(o){var t,i=o.state,r=o.name,a=o.options,d=i.elements.arrow,g=i.modifiersData.popperOffsets,y=xe(i.placement),k=Ui(y),E=[de,_e].indexOf(y)>=0?"height":"width";if(d&&g){var w=function(q,W){return Po(typeof(q=typeof q=="function"?q(Object.assign({},W.rects,{placement:W.placement})):q)!="number"?q:jo(q,Nt))}(a.padding,i),$=Hi(d),L=k==="y"?ce:de,A=k==="y"?ye:_e,D=i.rects.reference[E]+i.rects.reference[k]-g[k]-i.rects.popper[E],O=g[k]-i.rects.reference[k],V=Rn(d),R=V?k==="y"?V.clientHeight||0:V.clientWidth||0:0,X=D/2-O/2,F=w[L],P=R-$[E]-w[A],I=R/2-$[E]/2+X,x=qn(F,I,P),j=k;i.modifiersData[r]=((t={})[j]=x,t.centerOffset=x-I,t)}},effect:function(o){var t=o.state,i=o.options.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r!="string"||(r=t.elements.popper.querySelector(r)))&&Fo(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Dt(o){return o.split("-")[1]}var Vr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ro(o){var t,i=o.popper,r=o.popperRect,a=o.placement,d=o.variation,g=o.offsets,y=o.position,k=o.gpuAcceleration,E=o.adaptive,w=o.roundOffsets,$=o.isFixed,L=g.x,A=L===void 0?0:L,D=g.y,O=D===void 0?0:D,V=typeof w=="function"?w({x:A,y:O}):{x:A,y:O};A=V.x,O=V.y;var R=g.hasOwnProperty("x"),X=g.hasOwnProperty("y"),F=de,P=ce,I=window;if(E){var x=Rn(i),j="clientHeight",q="clientWidth";x===Ce(i)&&qe(x=et(i)).position!=="static"&&y==="absolute"&&(j="scrollHeight",q="scrollWidth"),(a===ce||(a===de||a===_e)&&d===Tt)&&(P=ye,O-=($&&x===I&&I.visualViewport?I.visualViewport.height:x[j])-r.height,O*=k?1:-1),a!==de&&(a!==ce&&a!==ye||d!==Tt)||(F=_e,A-=($&&x===I&&I.visualViewport?I.visualViewport.width:x[q])-r.width,A*=k?1:-1)}var W,Z=Object.assign({position:y},E&&Vr),ke=w===!0?function(Ve,ue){var Ne=Ve.x,Te=Ve.y,G=ue.devicePixelRatio||1;return{x:Bt(Ne*G)/G||0,y:Bt(Te*G)/G||0}}({x:A,y:O},Ce(i)):{x:A,y:O};return A=ke.x,O=ke.y,k?Object.assign({},Z,((W={})[P]=X?"0":"",W[F]=R?"0":"",W.transform=(I.devicePixelRatio||1)<=1?"translate("+A+"px, "+O+"px)":"translate3d("+A+"px, "+O+"px, 0)",W)):Object.assign({},Z,((t={})[P]=X?O+"px":"",t[F]=R?A+"px":"",t.transform="",t))}const Xi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(o){var t=o.state,i=o.options,r=i.gpuAcceleration,a=r===void 0||r,d=i.adaptive,g=d===void 0||d,y=i.roundOffsets,k=y===void 0||y,E={placement:xe(t.placement),variation:Dt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ro(Object.assign({},E,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:g,roundOffsets:k})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ro(Object.assign({},E,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:k})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var mi={passive:!0};const Yi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(o){var t=o.state,i=o.instance,r=o.options,a=r.scroll,d=a===void 0||a,g=r.resize,y=g===void 0||g,k=Ce(t.elements.popper),E=[].concat(t.scrollParents.reference,t.scrollParents.popper);return d&&E.forEach(function(w){w.addEventListener("scroll",i.update,mi)}),y&&k.addEventListener("resize",i.update,mi),function(){d&&E.forEach(function(w){w.removeEventListener("scroll",i.update,mi)}),y&&k.removeEventListener("resize",i.update,mi)}},data:{}};var Mr={left:"right",right:"left",bottom:"top",top:"bottom"};function gi(o){return o.replace(/left|right|bottom|top/g,function(t){return Mr[t]})}var Lr={start:"end",end:"start"};function qo(o){return o.replace(/start|end/g,function(t){return Lr[t]})}function Ki(o){var t=Ce(o);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Gi(o){return Ot(et(o)).left+Ki(o).scrollLeft}function Qi(o){var t=qe(o),i=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+a+r)}function Ho(o){return["html","body","#document"].indexOf(Fe(o))>=0?o.ownerDocument.body:we(o)&&Qi(o)?o:Ho(hi(o))}function Hn(o,t){var i;t===void 0&&(t=[]);var r=Ho(o),a=r===((i=o.ownerDocument)==null?void 0:i.body),d=Ce(r),g=a?[d].concat(d.visualViewport||[],Qi(r)?r:[]):r,y=t.concat(g);return a?y:y.concat(Hn(hi(g)))}function Ji(o){return Object.assign({},o,{left:o.x,top:o.y,right:o.x+o.width,bottom:o.y+o.height})}function Uo(o,t,i){return t===xi?Ji(function(r,a){var d=Ce(r),g=et(r),y=d.visualViewport,k=g.clientWidth,E=g.clientHeight,w=0,$=0;if(y){k=y.width,E=y.height;var L=Io();(L||!L&&a==="fixed")&&(w=y.offsetLeft,$=y.offsetTop)}return{width:k,height:E,x:w+Gi(r),y:$}}(o,i)):at(t)?function(r,a){var d=Ot(r,!1,a==="fixed");return d.top=d.top+r.clientTop,d.left=d.left+r.clientLeft,d.bottom=d.top+r.clientHeight,d.right=d.left+r.clientWidth,d.width=r.clientWidth,d.height=r.clientHeight,d.x=d.left,d.y=d.top,d}(t,i):Ji(function(r){var a,d=et(r),g=Ki(r),y=(a=r.ownerDocument)==null?void 0:a.body,k=ct(d.scrollWidth,d.clientWidth,y?y.scrollWidth:0,y?y.clientWidth:0),E=ct(d.scrollHeight,d.clientHeight,y?y.scrollHeight:0,y?y.clientHeight:0),w=-g.scrollLeft+Gi(r),$=-g.scrollTop;return qe(y||d).direction==="rtl"&&(w+=ct(d.clientWidth,y?y.clientWidth:0)-k),{width:k,height:E,x:w,y:$}}(et(o)))}function Xo(o){var t,i=o.reference,r=o.element,a=o.placement,d=a?xe(a):null,g=a?Dt(a):null,y=i.x+i.width/2-r.width/2,k=i.y+i.height/2-r.height/2;switch(d){case ce:t={x:y,y:i.y-r.height};break;case ye:t={x:y,y:i.y+i.height};break;case _e:t={x:i.x+i.width,y:k};break;case de:t={x:i.x-r.width,y:k};break;default:t={x:i.x,y:i.y}}var E=d?Ui(d):null;if(E!=null){var w=E==="y"?"height":"width";switch(g){case lt:t[E]=t[E]-(i[w]/2-r[w]/2);break;case Tt:t[E]=t[E]+(i[w]/2-r[w]/2)}}return t}function Vt(o,t){t===void 0&&(t={});var i=t,r=i.placement,a=r===void 0?o.placement:r,d=i.strategy,g=d===void 0?o.strategy:d,y=i.boundary,k=y===void 0?wo:y,E=i.rootBoundary,w=E===void 0?xi:E,$=i.elementContext,L=$===void 0?At:$,A=i.altBoundary,D=A!==void 0&&A,O=i.padding,V=O===void 0?0:O,R=Po(typeof V!="number"?V:jo(V,Nt)),X=L===At?So:At,F=o.rects.popper,P=o.elements[D?X:L],I=function(ue,Ne,Te,G){var Pe=Ne==="clippingParents"?function(H){var fe=Hn(hi(H)),Ae=["absolute","fixed"].indexOf(qe(H).position)>=0&&we(H)?Rn(H):H;return at(Ae)?fe.filter(function(nt){return at(nt)&&Fo(nt,Ae)&&Fe(nt)!=="body"}):[]}(ue):[].concat(Ne),je=[].concat(Pe,[Te]),zt=je[0],ie=je.reduce(function(H,fe){var Ae=Uo(ue,fe,G);return H.top=ct(Ae.top,H.top),H.right=pi(Ae.right,H.right),H.bottom=pi(Ae.bottom,H.bottom),H.left=ct(Ae.left,H.left),H},Uo(ue,zt,G));return ie.width=ie.right-ie.left,ie.height=ie.bottom-ie.top,ie.x=ie.left,ie.y=ie.top,ie}(at(P)?P:P.contextElement||et(o.elements.popper),k,w,g),x=Ot(o.elements.reference),j=Xo({reference:x,element:F,placement:a}),q=Ji(Object.assign({},F,j)),W=L===At?q:x,Z={top:I.top-W.top+R.top,bottom:W.bottom-I.bottom+R.bottom,left:I.left-W.left+R.left,right:W.right-I.right+R.right},ke=o.modifiersData.offset;if(L===At&&ke){var Ve=ke[a];Object.keys(Z).forEach(function(ue){var Ne=[_e,ye].indexOf(ue)>=0?1:-1,Te=[ce,ye].indexOf(ue)>=0?"y":"x";Z[ue]+=Ve[Te]*Ne})}return Z}function zr(o,t){t===void 0&&(t={});var i=t,r=i.placement,a=i.boundary,d=i.rootBoundary,g=i.padding,y=i.flipVariations,k=i.allowedAutoPlacements,E=k===void 0?ji:k,w=Dt(r),$=w?y?Pi:Pi.filter(function(D){return Dt(D)===w}):Nt,L=$.filter(function(D){return E.indexOf(D)>=0});L.length===0&&(L=$);var A=L.reduce(function(D,O){return D[O]=Vt(o,{placement:O,boundary:a,rootBoundary:d,padding:g})[xe(O)],D},{});return Object.keys(A).sort(function(D,O){return A[D]-A[O]})}const Yo={name:"flip",enabled:!0,phase:"main",fn:function(o){var t=o.state,i=o.options,r=o.name;if(!t.modifiersData[r]._skip){for(var a=i.mainAxis,d=a===void 0||a,g=i.altAxis,y=g===void 0||g,k=i.fallbackPlacements,E=i.padding,w=i.boundary,$=i.rootBoundary,L=i.altBoundary,A=i.flipVariations,D=A===void 0||A,O=i.allowedAutoPlacements,V=t.options.placement,R=xe(V),X=k||(R!==V&&D?function(H){if(xe(H)===fi)return[];var fe=gi(H);return[qo(H),fe,qo(fe)]}(V):[gi(V)]),F=[V].concat(X).reduce(function(H,fe){return H.concat(xe(fe)===fi?zr(t,{placement:fe,boundary:w,rootBoundary:$,padding:E,flipVariations:D,allowedAutoPlacements:O}):fe)},[]),P=t.rects.reference,I=t.rects.popper,x=new Map,j=!0,q=F[0],W=0;W<F.length;W++){var Z=F[W],ke=xe(Z),Ve=Dt(Z)===lt,ue=[ce,ye].indexOf(ke)>=0,Ne=ue?"width":"height",Te=Vt(t,{placement:Z,boundary:w,rootBoundary:$,altBoundary:L,padding:E}),G=ue?Ve?_e:de:Ve?ye:ce;P[Ne]>I[Ne]&&(G=gi(G));var Pe=gi(G),je=[];if(d&&je.push(Te[ke]<=0),y&&je.push(Te[G]<=0,Te[Pe]<=0),je.every(function(H){return H})){q=Z,j=!1;break}x.set(Z,je)}if(j)for(var zt=function(H){var fe=F.find(function(Ae){var nt=x.get(Ae);if(nt)return nt.slice(0,H).every(function(wi){return wi})});if(fe)return q=fe,"break"},ie=D?3:1;ie>0&&zt(ie)!=="break";ie--);t.placement!==q&&(t.modifiersData[r]._skip=!0,t.placement=q,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ko(o,t,i){return i===void 0&&(i={x:0,y:0}),{top:o.top-t.height-i.y,right:o.right-t.width+i.x,bottom:o.bottom-t.height+i.y,left:o.left-t.width-i.x}}function Go(o){return[ce,_e,ye,de].some(function(t){return o[t]>=0})}const Qo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(o){var t=o.state,i=o.name,r=t.rects.reference,a=t.rects.popper,d=t.modifiersData.preventOverflow,g=Vt(t,{elementContext:"reference"}),y=Vt(t,{altBoundary:!0}),k=Ko(g,r),E=Ko(y,a,d),w=Go(k),$=Go(E);t.modifiersData[i]={referenceClippingOffsets:k,popperEscapeOffsets:E,isReferenceHidden:w,hasPopperEscaped:$},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":w,"data-popper-escaped":$})}},Jo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(o){var t=o.state,i=o.options,r=o.name,a=i.offset,d=a===void 0?[0,0]:a,g=ji.reduce(function(w,$){return w[$]=function(L,A,D){var O=xe(L),V=[de,ce].indexOf(O)>=0?-1:1,R=typeof D=="function"?D(Object.assign({},A,{placement:L})):D,X=R[0],F=R[1];return X=X||0,F=(F||0)*V,[de,_e].indexOf(O)>=0?{x:F,y:X}:{x:X,y:F}}($,t.rects,d),w},{}),y=g[t.placement],k=y.x,E=y.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=k,t.modifiersData.popperOffsets.y+=E),t.modifiersData[r]=g}},Zi={name:"popperOffsets",enabled:!0,phase:"read",fn:function(o){var t=o.state,i=o.name;t.modifiersData[i]=Xo({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},Zo={name:"preventOverflow",enabled:!0,phase:"main",fn:function(o){var t=o.state,i=o.options,r=o.name,a=i.mainAxis,d=a===void 0||a,g=i.altAxis,y=g!==void 0&&g,k=i.boundary,E=i.rootBoundary,w=i.altBoundary,$=i.padding,L=i.tether,A=L===void 0||L,D=i.tetherOffset,O=D===void 0?0:D,V=Vt(t,{boundary:k,rootBoundary:E,padding:$,altBoundary:w}),R=xe(t.placement),X=Dt(t.placement),F=!X,P=Ui(R),I=P==="x"?"y":"x",x=t.modifiersData.popperOffsets,j=t.rects.reference,q=t.rects.popper,W=typeof O=="function"?O(Object.assign({},t.rects,{placement:t.placement})):O,Z=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),ke=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Ve={x:0,y:0};if(x){if(d){var ue,Ne=P==="y"?ce:de,Te=P==="y"?ye:_e,G=P==="y"?"height":"width",Pe=x[P],je=Pe+V[Ne],zt=Pe-V[Te],ie=A?-q[G]/2:0,H=X===lt?j[G]:q[G],fe=X===lt?-q[G]:-j[G],Ae=t.elements.arrow,nt=A&&Ae?Hi(Ae):{width:0,height:0},wi=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},xs=wi[Ne],Ps=wi[Te],Si=qn(0,j[G],nt[G]),ha=F?j[G]/2-ie-Si-xs-Z.mainAxis:H-Si-xs-Z.mainAxis,ma=F?-j[G]/2+ie+Si+Ps+Z.mainAxis:fe+Si+Ps+Z.mainAxis,ho=t.elements.arrow&&Rn(t.elements.arrow),ga=ho?P==="y"?ho.clientTop||0:ho.clientLeft||0:0,js=(ue=ke?.[P])!=null?ue:0,va=Pe+ma-js,Ws=qn(A?pi(je,Pe+ha-js-ga):je,Pe,A?ct(zt,va):zt);x[P]=Ws,Ve[P]=Ws-Pe}if(y){var Rs,ba=P==="x"?ce:de,ya=P==="x"?ye:_e,vt=x[I],Ni=I==="y"?"height":"width",qs=vt+V[ba],Hs=vt-V[ya],mo=[ce,de].indexOf(R)!==-1,Us=(Rs=ke?.[I])!=null?Rs:0,Xs=mo?qs:vt-j[Ni]-q[Ni]-Us+Z.altAxis,Ys=mo?vt+j[Ni]+q[Ni]-Us-Z.altAxis:Hs,Ks=A&&mo?function(_a,Ca,go){var Gs=qn(_a,Ca,go);return Gs>go?go:Gs}(Xs,vt,Ys):qn(A?Xs:qs,vt,A?Ys:Hs);x[I]=Ks,Ve[I]=Ks-vt}t.modifiersData[r]=Ve}},requiresIfExists:["offset"]};function Ir(o,t,i){i===void 0&&(i=!1);var r,a,d=we(t),g=we(t)&&function($){var L=$.getBoundingClientRect(),A=Bt(L.width)/$.offsetWidth||1,D=Bt(L.height)/$.offsetHeight||1;return A!==1||D!==1}(t),y=et(t),k=Ot(o,g,i),E={scrollLeft:0,scrollTop:0},w={x:0,y:0};return(d||!d&&!i)&&((Fe(t)!=="body"||Qi(y))&&(E=(r=t)!==Ce(r)&&we(r)?{scrollLeft:(a=r).scrollLeft,scrollTop:a.scrollTop}:Ki(r)),we(t)?((w=Ot(t,!0)).x+=t.clientLeft,w.y+=t.clientTop):y&&(w.x=Gi(y))),{x:k.left+E.scrollLeft-w.x,y:k.top+E.scrollTop-w.y,width:k.width,height:k.height}}function Fr(o){var t=new Map,i=new Set,r=[];function a(d){i.add(d.name),[].concat(d.requires||[],d.requiresIfExists||[]).forEach(function(g){if(!i.has(g)){var y=t.get(g);y&&a(y)}}),r.push(d)}return o.forEach(function(d){t.set(d.name,d)}),o.forEach(function(d){i.has(d.name)||a(d)}),r}var es={placement:"bottom",modifiers:[],strategy:"absolute"};function ts(){for(var o=arguments.length,t=new Array(o),i=0;i<o;i++)t[i]=arguments[i];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function vi(o){o===void 0&&(o={});var t=o,i=t.defaultModifiers,r=i===void 0?[]:i,a=t.defaultOptions,d=a===void 0?es:a;return function(g,y,k){k===void 0&&(k=d);var E,w,$={placement:"bottom",orderedModifiers:[],options:Object.assign({},es,d),modifiersData:{},elements:{reference:g,popper:y},attributes:{},styles:{}},L=[],A=!1,D={state:$,setOptions:function(V){var R=typeof V=="function"?V($.options):V;O(),$.options=Object.assign({},d,$.options,R),$.scrollParents={reference:at(g)?Hn(g):g.contextElement?Hn(g.contextElement):[],popper:Hn(y)};var X,F,P=function(I){var x=Fr(I);return zo.reduce(function(j,q){return j.concat(x.filter(function(W){return W.phase===q}))},[])}((X=[].concat(r,$.options.modifiers),F=X.reduce(function(I,x){var j=I[x.name];return I[x.name]=j?Object.assign({},j,x,{options:Object.assign({},j.options,x.options),data:Object.assign({},j.data,x.data)}):x,I},{}),Object.keys(F).map(function(I){return F[I]})));return $.orderedModifiers=P.filter(function(I){return I.enabled}),$.orderedModifiers.forEach(function(I){var x=I.name,j=I.options,q=j===void 0?{}:j,W=I.effect;if(typeof W=="function"){var Z=W({state:$,name:x,instance:D,options:q});L.push(Z||function(){})}}),D.update()},forceUpdate:function(){if(!A){var V=$.elements,R=V.reference,X=V.popper;if(ts(R,X)){$.rects={reference:Ir(R,Rn(X),$.options.strategy==="fixed"),popper:Hi(X)},$.reset=!1,$.placement=$.options.placement,$.orderedModifiers.forEach(function(W){return $.modifiersData[W.name]=Object.assign({},W.data)});for(var F=0;F<$.orderedModifiers.length;F++)if($.reset!==!0){var P=$.orderedModifiers[F],I=P.fn,x=P.options,j=x===void 0?{}:x,q=P.name;typeof I=="function"&&($=I({state:$,options:j,name:q,instance:D})||$)}else $.reset=!1,F=-1}}},update:(E=function(){return new Promise(function(V){D.forceUpdate(),V($)})},function(){return w||(w=new Promise(function(V){Promise.resolve().then(function(){w=void 0,V(E())})})),w}),destroy:function(){O(),A=!0}};if(!ts(g,y))return D;function O(){L.forEach(function(V){return V()}),L=[]}return D.setOptions(k).then(function(V){!A&&k.onFirstUpdate&&k.onFirstUpdate(V)}),D}}var xr=vi(),Pr=vi({defaultModifiers:[Yi,Zi,Xi,Ri]}),eo=vi({defaultModifiers:[Yi,Zi,Xi,Ri,Jo,Yo,Zo,Wo,Qo]});const ns=Object.freeze(Object.defineProperty({__proto__:null,afterMain:Do,afterRead:Ao,afterWrite:Lo,applyStyles:Ri,arrow:Wo,auto:fi,basePlacements:Nt,beforeMain:Bo,beforeRead:No,beforeWrite:Vo,bottom:ye,clippingParents:wo,computeStyles:Xi,createPopper:eo,createPopperBase:xr,createPopperLite:Pr,detectOverflow:Vt,end:Tt,eventListeners:Yi,flip:Yo,hide:Qo,left:de,main:Oo,modifierPhases:zo,offset:Jo,placements:ji,popper:At,popperGenerator:vi,popperOffsets:Zi,preventOverflow:Zo,read:To,reference:So,right:_e,start:lt,top:ce,variationPlacements:Pi,viewport:xi,write:Mo},Symbol.toStringTag,{value:"Module"})),is="dropdown",dt=".bs.dropdown",to=".data-api",jr="ArrowUp",os="ArrowDown",Wr=`hide${dt}`,Rr=`hidden${dt}`,qr=`show${dt}`,Hr=`shown${dt}`,ss=`click${dt}${to}`,rs=`keydown${dt}${to}`,Ur=`keyup${dt}${to}`,Mt="show",ut='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Xr=`${ut}.${Mt}`,bi=".dropdown-menu",Yr=he()?"top-end":"top-start",Kr=he()?"top-start":"top-end",Gr=he()?"bottom-end":"bottom-start",Qr=he()?"bottom-start":"bottom-end",Jr=he()?"left-start":"right-start",Zr=he()?"right-start":"left-start",el={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},tl={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class De extends me{constructor(t,i){super(t,i),this._popper=null,this._parent=this._element.parentNode,this._menu=N.next(this._element,bi)[0]||N.prev(this._element,bi)[0]||N.findOne(bi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return el}static get DefaultType(){return tl}static get NAME(){return is}toggle(){return this._isShown()?this.hide():this.show()}show(){if(pe(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!C.trigger(this._element,qr,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const i of[].concat(...document.body.children))C.on(i,"mouseover",Xe);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Mt),this._element.classList.add(Mt),C.trigger(this._element,Hr,t)}}hide(){if(pe(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(!C.trigger(this._element,Wr,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))C.off(i,"mouseover",Xe);this._popper&&this._popper.destroy(),this._menu.classList.remove(Mt),this._element.classList.remove(Mt),this._element.setAttribute("aria-expanded","false"),Be.removeDataAttribute(this._menu,"popper"),C.trigger(this._element,Rr,t),this._element.focus()}}_getConfig(t){if(typeof(t=super._getConfig(t)).reference=="object"&&!S(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${is.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(ns===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:S(this._config.reference)?t=Y(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const i=this._getPopperConfig();this._popper=eo(t,this._menu,i)}_isShown(){return this._menu.classList.contains(Mt)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Jr;if(t.classList.contains("dropstart"))return Zr;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const i=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains("dropup")?i?Kr:Yr:i?Qr:Gr}_detectNavbar(){return this._element.closest(".navbar")!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(i=>Number.parseInt(i,10)):typeof t=="function"?i=>t(i,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")&&(Be.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...oe(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:i}){const r=N.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(a=>ve(a));r.length&&zn(r,i,t===os,!r.includes(i)).focus()}static jQueryInterface(t){return this.each(function(){const i=De.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0)throw new TypeError(`No method named "${t}"`);i[t]()}})}static clearMenus(t){if(t.button===2||t.type==="keyup"&&t.key!=="Tab")return;const i=N.find(Xr);for(const r of i){const a=De.getInstance(r);if(!a||a._config.autoClose===!1)continue;const d=t.composedPath(),g=d.includes(a._menu);if(d.includes(a._element)||a._config.autoClose==="inside"&&!g||a._config.autoClose==="outside"&&g||a._menu.contains(t.target)&&(t.type==="keyup"&&t.key==="Tab"||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const y={relatedTarget:a._element};t.type==="click"&&(y.clickEvent=t),a._completeHide(y)}}static dataApiKeydownHandler(t){const i=/input|textarea/i.test(t.target.tagName),r=t.key==="Escape",a=[jr,os].includes(t.key);if(!a&&!r||i&&!r)return;t.preventDefault();const d=this.matches(ut)?this:N.prev(this,ut)[0]||N.next(this,ut)[0]||N.findOne(ut,t.delegateTarget.parentNode),g=De.getOrCreateInstance(d);if(a)return t.stopPropagation(),g.show(),void g._selectMenuItem(t);g._isShown()&&(t.stopPropagation(),g.hide(),d.focus())}}C.on(document,rs,ut,De.dataApiKeydownHandler),C.on(document,rs,bi,De.dataApiKeydownHandler),C.on(document,ss,De.clearMenus),C.on(document,Ur,De.clearMenus),C.on(document,ss,ut,function(o){o.preventDefault(),De.getOrCreateInstance(this).toggle()}),te(De);const ls="backdrop",as="show",cs=`mousedown.bs.${ls}`,nl={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},il={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ds extends $e{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return nl}static get DefaultType(){return il}static get NAME(){return ls}show(t){if(!this._config.isVisible)return void oe(t);this._append();const i=this._getElement();this._config.isAnimated&&Ye(i),i.classList.add(as),this._emulateAnimation(()=>{oe(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(as),this._emulateAnimation(()=>{this.dispose(),oe(t)})):oe(t)}dispose(){this._isAppended&&(C.off(this._element,cs),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=Y(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),C.on(t,cs,()=>{oe(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Jn(t,this._getElement(),this._config.isAnimated)}}const yi=".bs.focustrap",ol=`focusin${yi}`,sl=`keydown.tab${yi}`,us="backward",rl={autofocus:!0,trapElement:null},ll={autofocus:"boolean",trapElement:"element"};class fs extends $e{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return rl}static get DefaultType(){return ll}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),C.off(document,yi),C.on(document,ol,t=>this._handleFocusin(t)),C.on(document,sl,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,C.off(document,yi))}_handleFocusin(t){const{trapElement:i}=this._config;if(t.target===document||t.target===i||i.contains(t.target))return;const r=N.focusableChildren(i);r.length===0?i.focus():this._lastTabNavDirection===us?r[r.length-1].focus():r[0].focus()}_handleKeydown(t){t.key==="Tab"&&(this._lastTabNavDirection=t.shiftKey?us:"forward")}}const ps=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",hs=".sticky-top",_i="padding-right",ms="margin-right";class no{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,_i,i=>i+t),this._setElementAttributes(ps,_i,i=>i+t),this._setElementAttributes(hs,ms,i=>i-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,_i),this._resetElementAttributes(ps,_i),this._resetElementAttributes(hs,ms)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,i,r){const a=this.getWidth();this._applyManipulationCallback(t,d=>{if(d!==this._element&&window.innerWidth>d.clientWidth+a)return;this._saveInitialAttribute(d,i);const g=window.getComputedStyle(d).getPropertyValue(i);d.style.setProperty(i,`${r(Number.parseFloat(g))}px`)})}_saveInitialAttribute(t,i){const r=t.style.getPropertyValue(i);r&&Be.setDataAttribute(t,i,r)}_resetElementAttributes(t,i){this._applyManipulationCallback(t,r=>{const a=Be.getDataAttribute(r,i);a!==null?(Be.removeDataAttribute(r,i),r.style.setProperty(i,a)):r.style.removeProperty(i)})}_applyManipulationCallback(t,i){if(S(t))i(t);else for(const r of N.find(t,this._element))i(r)}}const Se=".bs.modal",al=`hide${Se}`,cl=`hidePrevented${Se}`,gs=`hidden${Se}`,vs=`show${Se}`,dl=`shown${Se}`,ul=`resize${Se}`,fl=`click.dismiss${Se}`,pl=`mousedown.dismiss${Se}`,hl=`keydown.dismiss${Se}`,ml=`click${Se}.data-api`,bs="modal-open",ys="show",io="modal-static",gl={backdrop:!0,focus:!0,keyboard:!0},vl={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ft extends me{constructor(t,i){super(t,i),this._dialog=N.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new no,this._addEventListeners()}static get Default(){return gl}static get DefaultType(){return vl}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||C.trigger(this._element,vs,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(bs),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){this._isShown&&!this._isTransitioning&&(C.trigger(this._element,al).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ys),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){C.off(window,Se),C.off(this._dialog,Se),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ds({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new fs({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 i=N.findOne(".modal-body",this._dialog);i&&(i.scrollTop=0),Ye(this._element),this._element.classList.add(ys),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,C.trigger(this._element,dl,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){C.on(this._element,hl,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),C.on(window,ul,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),C.on(this._element,pl,t=>{C.one(this._element,fl,i=>{this._element===t.target&&this._element===i.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(bs),this._resetAdjustments(),this._scrollBar.reset(),C.trigger(this._element,gs)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(C.trigger(this._element,cl).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,i=this._element.style.overflowY;i==="hidden"||this._element.classList.contains(io)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(io),this._queueCallback(()=>{this._element.classList.remove(io),this._queueCallback(()=>{this._element.style.overflowY=i},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,i=this._scrollBar.getWidth(),r=i>0;if(r&&!t){const a=he()?"paddingLeft":"paddingRight";this._element.style[a]=`${i}px`}if(!r&&t){const a=he()?"paddingRight":"paddingLeft";this._element.style[a]=`${i}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,i){return this.each(function(){const r=ft.getOrCreateInstance(this,t);if(typeof t=="string"){if(r[t]===void 0)throw new TypeError(`No method named "${t}"`);r[t](i)}})}}C.on(document,ml,'[data-bs-toggle="modal"]',function(o){const t=N.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&o.preventDefault(),C.one(t,vs,r=>{r.defaultPrevented||C.one(t,gs,()=>{ve(this)&&this.focus()})});const i=N.findOne(".modal.show");i&&ft.getInstance(i).hide(),ft.getOrCreateInstance(t).toggle(this)}),st(ft),te(ft);const He=".bs.offcanvas",_s=".data-api",bl=`load${He}${_s}`,Cs="show",ks="showing",$s="hiding",Es=".offcanvas.show",yl=`show${He}`,_l=`shown${He}`,Cl=`hide${He}`,ws=`hidePrevented${He}`,Ss=`hidden${He}`,kl=`resize${He}`,$l=`click${He}${_s}`,El=`keydown.dismiss${He}`,wl={backdrop:!0,keyboard:!0,scroll:!1},Sl={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ue extends me{constructor(t,i){super(t,i),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return wl}static get DefaultType(){return Sl}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||C.trigger(this._element,yl,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new no().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ks),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Cs),this._element.classList.remove(ks),C.trigger(this._element,_l,{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(C.trigger(this._element,Cl).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add($s),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Cs,$s),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new no().reset(),C.trigger(this._element,Ss)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=!!this._config.backdrop;return new ds({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{this._config.backdrop!=="static"?this.hide():C.trigger(this._element,ws)}:null})}_initializeFocusTrap(){return new fs({trapElement:this._element})}_addEventListeners(){C.on(this._element,El,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():C.trigger(this._element,ws))})}static jQueryInterface(t){return this.each(function(){const i=Ue.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t](this)}})}}C.on(document,$l,'[data-bs-toggle="offcanvas"]',function(o){const t=N.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),pe(this))return;C.one(t,Ss,()=>{ve(this)&&this.focus()});const i=N.findOne(Es);i&&i!==t&&Ue.getInstance(i).hide(),Ue.getOrCreateInstance(t).toggle(this)}),C.on(window,bl,()=>{for(const o of N.find(Es))Ue.getOrCreateInstance(o).show()}),C.on(window,kl,()=>{for(const o of N.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(o).position!=="fixed"&&Ue.getOrCreateInstance(o).hide()}),st(Ue),te(Ue);const Ns={"*":["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:[]},Nl=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Tl=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Al=(o,t)=>{const i=o.nodeName.toLowerCase();return t.includes(i)?!Nl.has(i)||!!Tl.test(o.nodeValue):t.filter(r=>r instanceof RegExp).some(r=>r.test(i))},Bl={allowList:Ns,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Ol={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Dl={entry:"(string|element|function|null)",selector:"(string|element)"};class Vl extends $e{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Bl}static get DefaultType(){return Ol}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[a,d]of Object.entries(this._config.content))this._setContent(t,d,a);const i=t.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&i.classList.add(...r.split(" ")),i}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[i,r]of Object.entries(t))super._typeCheckConfig({selector:i,entry:r},Dl)}_setContent(t,i,r){const a=N.findOne(r,t);a&&((i=this._resolvePossibleFunction(i))?S(i)?this._putElementInTemplate(Y(i),a):this._config.html?a.innerHTML=this._maybeSanitize(i):a.textContent=i:a.remove())}_maybeSanitize(t){return this._config.sanitize?function(i,r,a){if(!i.length)return i;if(a&&typeof a=="function")return a(i);const d=new window.DOMParser().parseFromString(i,"text/html"),g=[].concat(...d.body.querySelectorAll("*"));for(const y of g){const k=y.nodeName.toLowerCase();if(!Object.keys(r).includes(k)){y.remove();continue}const E=[].concat(...y.attributes),w=[].concat(r["*"]||[],r[k]||[]);for(const $ of E)Al($,w)||y.removeAttribute($.nodeName)}return d.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return oe(t,[void 0,this])}_putElementInTemplate(t,i){if(this._config.html)return i.innerHTML="",void i.append(t);i.textContent=t.textContent}}const Ml=new Set(["sanitize","allowList","sanitizeFn"]),oo="fade",Ci="show",Ll=".tooltip-inner",Ts=".modal",As="hide.bs.modal",Un="hover",so="focus",ro="click",zl={AUTO:"auto",TOP:"top",RIGHT:he()?"left":"right",BOTTOM:"bottom",LEFT:he()?"right":"left"},Il={allowList:Ns,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"},Fl={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 pt extends me{constructor(t,i){if(ns===void 0)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,i),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 Il}static get DefaultType(){return Fl}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),C.off(this._element.closest(Ts),As,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=C.trigger(this._element,this.constructor.eventName("show")),i=(_t(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!i)return;this._disposePopper();const r=this._getTipElement();this._element.setAttribute("aria-describedby",r.getAttribute("id"));const{container:a}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(a.append(r),C.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(r),r.classList.add(Ci),"ontouchstart"in document.documentElement)for(const d of[].concat(...document.body.children))C.on(d,"mouseover",Xe);this._queueCallback(()=>{C.trigger(this._element,this.constructor.eventName("shown")),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!C.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(Ci),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))C.off(t,"mouseover",Xe);this._activeTrigger[ro]=!1,this._activeTrigger[so]=!1,this._activeTrigger[Un]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),C.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 i=this._getTemplateFactory(t).toHtml();if(!i)return null;i.classList.remove(oo,Ci),i.classList.add(`bs-${this.constructor.NAME}-auto`);const r=(a=>{do a+=Math.floor(1e6*Math.random());while(document.getElementById(a));return a})(this.constructor.NAME).toString();return i.setAttribute("id",r),this._isAnimated()&&i.classList.add(oo),i}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Vl({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Ll]: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(oo)}_isShown(){return this.tip&&this.tip.classList.contains(Ci)}_createPopper(t){const i=oe(this._config.placement,[this,t,this._element]),r=zl[i.toUpperCase()];return eo(this._element,t,this._getPopperConfig(r))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(i=>Number.parseInt(i,10)):typeof t=="function"?i=>t(i,this._element):t}_resolvePossibleFunction(t){return oe(t,[this._element,this._element])}_getPopperConfig(t){const i={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:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...i,...oe(this._config.popperConfig,[void 0,i])}}_setListeners(){const t=this._config.trigger.split(" ");for(const i of t)if(i==="click")C.on(this._element,this.constructor.eventName("click"),this._config.selector,r=>{const a=this._initializeOnDelegatedTarget(r);a._activeTrigger[ro]=!(a._isShown()&&a._activeTrigger[ro]),a.toggle()});else if(i!=="manual"){const r=i===Un?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),a=i===Un?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");C.on(this._element,r,this._config.selector,d=>{const g=this._initializeOnDelegatedTarget(d);g._activeTrigger[d.type==="focusin"?so:Un]=!0,g._enter()}),C.on(this._element,a,this._config.selector,d=>{const g=this._initializeOnDelegatedTarget(d);g._activeTrigger[d.type==="focusout"?so:Un]=g._element.contains(d.relatedTarget),g._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},C.on(this._element.closest(Ts),As,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,i){clearTimeout(this._timeout),this._timeout=setTimeout(t,i)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const i=Be.getDataAttributes(this._element);for(const r of Object.keys(i))Ml.has(r)&&delete i[r];return t={...i,...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:Y(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[i,r]of Object.entries(this._config))this.constructor.Default[i]!==r&&(t[i]=r);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const i=pt.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0)throw new TypeError(`No method named "${t}"`);i[t]()}})}}te(pt);const xl=".popover-header",Pl=".popover-body",jl={...pt.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"},Wl={...pt.DefaultType,content:"(null|string|element|function)"};class ki extends pt{static get Default(){return jl}static get DefaultType(){return Wl}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[xl]:this._getTitle(),[Pl]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const i=ki.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0)throw new TypeError(`No method named "${t}"`);i[t]()}})}}te(ki);const lo=".bs.scrollspy",Rl=`activate${lo}`,Bs=`click${lo}`,ql=`load${lo}.data-api`,Lt="active",ao="[href]",Os=".nav-link",Hl=`${Os}, .nav-item > ${Os}, .list-group-item`,Ul={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Xl={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Xn extends me{constructor(t,i){super(t,i),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 Ul}static get DefaultType(){return Xl}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=Y(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(i=>Number.parseFloat(i))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(C.off(this._config.target,Bs),C.on(this._config.target,Bs,ao,t=>{const i=this._observableSections.get(t.target.hash);if(i){t.preventDefault();const r=this._rootElement||window,a=i.offsetTop-this._element.offsetTop;if(r.scrollTo)return void r.scrollTo({top:a,behavior:"smooth"});r.scrollTop=a}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(i=>this._observerCallback(i),t)}_observerCallback(t){const i=g=>this._targetLinks.get(`#${g.target.id}`),r=g=>{this._previousScrollData.visibleEntryTop=g.target.offsetTop,this._process(i(g))},a=(this._rootElement||document.documentElement).scrollTop,d=a>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=a;for(const g of t){if(!g.isIntersecting){this._activeTarget=null,this._clearActiveClass(i(g));continue}const y=g.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(d&&y){if(r(g),!a)return}else d||y||r(g)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=N.find(ao,this._config.target);for(const i of t){if(!i.hash||pe(i))continue;const r=N.findOne(decodeURI(i.hash),this._element);ve(r)&&(this._targetLinks.set(decodeURI(i.hash),i),this._observableSections.set(i.hash,r))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Lt),this._activateParents(t),C.trigger(this._element,Rl,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))N.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(Lt);else for(const i of N.parents(t,".nav, .list-group"))for(const r of N.prev(i,Hl))r.classList.add(Lt)}_clearActiveClass(t){t.classList.remove(Lt);const i=N.find(`${ao}.${Lt}`,t);for(const r of i)r.classList.remove(Lt)}static jQueryInterface(t){return this.each(function(){const i=Xn.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t]()}})}}C.on(window,ql,()=>{for(const o of N.find('[data-bs-spy="scroll"]'))Xn.getOrCreateInstance(o)}),te(Xn);const ht=".bs.tab",Yl=`hide${ht}`,Kl=`hidden${ht}`,Gl=`show${ht}`,Ql=`shown${ht}`,Jl=`click${ht}`,Zl=`keydown${ht}`,ea=`load${ht}`,ta="ArrowLeft",Ds="ArrowRight",na="ArrowUp",Vs="ArrowDown",co="Home",Ms="End",mt="active",Ls="fade",uo="show",zs=".dropdown-toggle",fo=`:not(${zs})`,Is='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',po=`.nav-link${fo}, .list-group-item${fo}, [role="tab"]${fo}, ${Is}`,ia=`.${mt}[data-bs-toggle="tab"], .${mt}[data-bs-toggle="pill"], .${mt}[data-bs-toggle="list"]`;class gt extends me{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),C.on(this._element,Zl,i=>this._keydown(i)))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const i=this._getActiveElem(),r=i?C.trigger(i,Yl,{relatedTarget:t}):null;C.trigger(t,Gl,{relatedTarget:i}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(i,t),this._activate(t,i))}_activate(t,i){t&&(t.classList.add(mt),this._activate(N.getElementFromSelector(t)),this._queueCallback(()=>{t.getAttribute("role")==="tab"?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),C.trigger(t,Ql,{relatedTarget:i})):t.classList.add(uo)},t,t.classList.contains(Ls)))}_deactivate(t,i){t&&(t.classList.remove(mt),t.blur(),this._deactivate(N.getElementFromSelector(t)),this._queueCallback(()=>{t.getAttribute("role")==="tab"?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),C.trigger(t,Kl,{relatedTarget:i})):t.classList.remove(uo)},t,t.classList.contains(Ls)))}_keydown(t){if(![ta,Ds,na,Vs,co,Ms].includes(t.key))return;t.stopPropagation(),t.preventDefault();const i=this._getChildren().filter(a=>!pe(a));let r;if([co,Ms].includes(t.key))r=i[t.key===co?0:i.length-1];else{const a=[Ds,Vs].includes(t.key);r=zn(i,t.target,a,!0)}r&&(r.focus({preventScroll:!0}),gt.getOrCreateInstance(r).show())}_getChildren(){return N.find(po,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,i){this._setAttributeIfNotExists(t,"role","tablist");for(const r of i)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const i=this._elemIsActive(t),r=this._getOuterElement(t);t.setAttribute("aria-selected",i),r!==t&&this._setAttributeIfNotExists(r,"role","presentation"),i||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const i=N.getElementFromSelector(t);i&&(this._setAttributeIfNotExists(i,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(i,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,i){const r=this._getOuterElement(t);if(!r.classList.contains("dropdown"))return;const a=(d,g)=>{const y=N.findOne(d,r);y&&y.classList.toggle(g,i)};a(zs,mt),a(".dropdown-menu",uo),r.setAttribute("aria-expanded",i)}_setAttributeIfNotExists(t,i,r){t.hasAttribute(i)||t.setAttribute(i,r)}_elemIsActive(t){return t.classList.contains(mt)}_getInnerElement(t){return t.matches(po)?t:N.findOne(po,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each(function(){const i=gt.getOrCreateInstance(this);if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t]()}})}}C.on(document,Jl,Is,function(o){["A","AREA"].includes(this.tagName)&&o.preventDefault(),pe(this)||gt.getOrCreateInstance(this).show()}),C.on(window,ea,()=>{for(const o of N.find(ia))gt.getOrCreateInstance(o)}),te(gt);const tt=".bs.toast",oa=`mouseover${tt}`,sa=`mouseout${tt}`,ra=`focusin${tt}`,la=`focusout${tt}`,aa=`hide${tt}`,ca=`hidden${tt}`,da=`show${tt}`,ua=`shown${tt}`,Fs="hide",$i="show",Ei="showing",fa={animation:"boolean",autohide:"boolean",delay:"number"},pa={animation:!0,autohide:!0,delay:5e3};class Yn extends me{constructor(t,i){super(t,i),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return pa}static get DefaultType(){return fa}static get NAME(){return"toast"}show(){C.trigger(this._element,da).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Fs),Ye(this._element),this._element.classList.add($i,Ei),this._queueCallback(()=>{this._element.classList.remove(Ei),C.trigger(this._element,ua),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(C.trigger(this._element,aa).defaultPrevented||(this._element.classList.add(Ei),this._queueCallback(()=>{this._element.classList.add(Fs),this._element.classList.remove(Ei,$i),C.trigger(this._element,ca)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove($i),super.dispose()}isShown(){return this._element.classList.contains($i)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,i){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=i;break;case"focusin":case"focusout":this._hasKeyboardInteraction=i}if(i)return void this._clearTimeout();const r=t.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){C.on(this._element,oa,t=>this._onInteraction(t,!0)),C.on(this._element,sa,t=>this._onInteraction(t,!1)),C.on(this._element,ra,t=>this._onInteraction(t,!0)),C.on(this._element,la,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const i=Yn.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0)throw new TypeError(`No method named "${t}"`);i[t](this)}})}}return st(Yn),te(Yn),{Alert:rt,Button:Qe,Carousel:ne,Collapse:St,Dropdown:De,Modal:ft,Offcanvas:Ue,Popover:ki,ScrollSpy:Xn,Tab:gt,Toast:Yn,Tooltip:pt}})}(Ai)),Ai.exports}var Oa=Ba();const yo=ka(Oa);function Da(e,s=!0){s?document.getElementById(e)?.scrollIntoView({behavior:"smooth"}):document.getElementById(e)?.scrollIntoView()}let We=null;function On(){We?.hide(),We=null}function _o(e,s){On();const c=document.getElementById(e);if(c){We=new yo.Modal(c,{backdrop:"static"}),We.value=s,We.id=e,We.show();const p=document.querySelector(`#${e} [autofocus]`);p&&p.focus()}}function Bi(e){return yo.Modal.getInstance(document.getElementById(e))?.value}function Va(e){return We?e?We.id===e&&We._isShown:We._isShown:!1}function or(e,s=0,c=25){return e?.slice(s*c,s*c+c)??[]}function Ma(e="#invalid"){document.querySelector(e)?.focus()}function sr(e,s=[]){for(const p of s)p.valid=!0;document.querySelector(`#${e} [autofocus]`)?.focus()}function rr(e,s){e&&(e.modelValue=s,e.valid=!0)}function Co(e){const s=document.querySelector(`#${e}`);return s?(document.querySelectorAll(`#${e} input, #${e} .form-control`).forEach(c=>{c.focus(),c.blur()}),s.checkValidity()===!1||document.querySelector(`#${e} :invalid, #${e} .invalid`)?(ko(e),!1):!0):(console.error("can't find/validate form",e),!1)}async function lr(e){const s=document.getElementById(e);return s?(document.querySelectorAll(`#${e} input, #${e} .form-control`).forEach(c=>{c.focus(),c.blur()}),document.querySelectorAll(`#${e} .ace_editor`).forEach(c=>{c.click()}),new Promise(c=>setTimeout(()=>{if(s.checkValidity()===!1||document.querySelector(`#${e} :invalid, #${e} .invalid`)){ko(e),c(!1);return}c(!0)}))):(console.error("can't find/validate form",e),Promise.resolve(!1))}function La(e){document.querySelector(`#${e} [autofocus]`)?.focus()}function ko(e){document.querySelector(`#${e} :invalid, #${e} .invalid`)?.focus()}function za(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 ar(e){const s=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),c=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${c} ${s}`}function cr(e,s=!1){const[c,p,b]=[(""+e.getUTCHours()).padStart(2,"0"),(""+e.getUTCMinutes()).padStart(2,"0"),(""+e.getUTCSeconds()).padStart(2,"0")];return s?`${c}:${p}:${b}`:`${c}:${p}`}function Ia(e,s=!1){return`${ar(e)} ${cr(e,s)}`}function Fa(e,s,c=!0,p=!1){let b=s.getTime()-e.getTime();p?b+=1:c?b+=1e3:b+=60*1e3;const v=(""+b%1e3).padStart(3,"0");b=Math.floor(b/1e3);const u=(""+b%60).padStart(2,"0");b=Math.floor(b/60);const S=(""+b%60).padStart(2,"0");b=Math.floor(b/60);const Y=(""+b).padStart(2,"0");return p?`${Y}:${S}:${u}.${v}`:c?`${Y}:${S}:${u}`:`${Y}:${S}`}function xa(e){const s=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e);return`${new Intl.DateTimeFormat("en",{month:"short"}).format(e)} ${s}`}function Oi(e,s=0){return e.toLocaleString("en",{minimumFractionDigits:s})}function Pa(e,s,c=2){switch(s){case"EUR":s="€";break;case"USD":s="$";break}return`${s} ${Oi(e/10**c,c)}`}function ja(e,s){return`${Oi(e)} - ${Oi(s)}`}function dr(e){return`**** **** **** ${e.replace(/ /g,"").substr(-4)}`}function Wa(e,s,c=e.ID_FORM){if(c){if(Co(c)&&!e.submitting)return e.submitting=!0,s().finally(()=>{e.submitting=!1})}else if(!e.submitting)return e.submitting=!0,s().finally(()=>{e.submitting=!1});return Promise.resolve()}function Ra(e,s,c=e.ID_FORM){return e.submitting?Promise.resolve():lr(c).then(p=>{if(p)return e.submitting=!0,s().finally(()=>{e.submitting=!1})})}function It(e,s){const c=s.split("."),p=c.shift(),b=e[p];return[void 0,null].includes(b)?b:c.length>0?It(b,c.join(".")):b}function ur(e,s,c="ASC",p=!1){if(!e)return[];const b=typeof e=="function"?[...e()]:[...e],v=(u,S)=>u.localeCompare(S,void 0,{ignorePunctuation:!0});return c==="ASC"?b.sort((u,S)=>(u=It(u,s)??"",S=It(S,s)??"",typeof u=="string"&&typeof S=="string"?p?v(u.toUpperCase(),S.toUpperCase()):v(u,S):u>S?1:u<S?-1:0)):b.sort((u,S)=>(u=It(u,s)??"",S=It(S,s)??"",typeof u=="string"&&typeof S=="string"?p?v(S.toUpperCase(),u.toUpperCase()):v(S,u):u<S?1:u>S?-1:0))}function fr(e,s=0,c="ASC"){return{col:s,order:c,set:function(p,b){const v=this.sort(p,b);this.col=p,this.order=v},get:function(p){return this.col===p?this.order:"NONE"},sorted:[],sorter:e,sort:function(p=this.col,b=this.order){const{sorted:v,sortedOrder:u}=this.sorter(p,b);return this.sorted=v,u}}}function qa(e,s,c=0,p=()=>0,b=()=>Number.MAX_SAFE_INTEGER){return fr((v,u)=>({sorted:or(ur(e,s[v],u),p(),b()),sortedOrder:u}),c)}function Ha(e,s=500,c="none"){clearTimeout(tr.get(c)),tr.set(c,setTimeout(e,s))}const tr=new Map;function Ua(e=3,s=["lorem","ipsum","dolor","sit","amet","consectetur","adipiscing","elit","eiusmod","tempor","incididunt","labore","et","dolore","magna","aliqua"]){let c="";for(let p=0;p<e;p++)c+=" "+s[Math.floor(Math.random()*s.length)];return c.substr(1)}function Xa(e=3,s=["alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","omicorn"]){const c=[];for(let p=0;p<e;p++)c.push(s[Math.floor(Math.random()*s.length)]);return c}function Ya(e){navigator.clipboard.writeText(e)}function Ka(e,s=[],c=[],p=!0){const b=[];for(const v of s)if(typeof v=="function")b.push(v());else if(v){const u=v.shift();b.push(u(...v))}for(const v of c)if(typeof v=="function")b.push(v(!1));else if(v){const u=v.shift();b.push(u(v.shift(),!1))}return p?(e.loading=Promise.all(b).finally(()=>{p&&(e.loading=null)}),e.loading):Promise.all(b)}function Ga(e,s=[],c=[],p=!0){const b=[];for(const v of s)if(typeof v=="function")b.push(v(!0));else if(v){const u=v.shift();b.push(u(!0,...v))}for(const v of c)if(typeof v=="function")b.push(v(!1));else if(v){const u=v.shift();b.push(u(!1,...v))}return p?(e.loading=Promise.all(b).finally(()=>{p&&(e.loading=null)}),e.loading):Promise.all(b)}function Qa(e){return e}function Ja(e){return e}function Za(e){return e}const ec=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:On,abort:function(){this.dirty?_o(this.ID_MODAL,{}):this.$emit("cancel")},emit:function(e){On(),this.$emit(e)}}}),tc={key:0},nc={key:1},ic=["disabled"];function oc(e,s,c,p,b,v){const u=n.resolveComponent("cl-modal"),S=n.resolveComponent("cl-section-main");return n.openBlock(),n.createBlock(S,{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 btn-sm cl-btn-outline-text it-cancel",onClick:s[0]||(s[0]=Y=>e.abort())},[s[4]||(s[4]=n.createElementVNode("i",{class:"fas fa-angle-left"},null,-1)),e.dirty?(n.openBlock(),n.createElementBlock("span",tc,n.toDisplayString(e.cancel),1)):(n.openBlock(),n.createElementBlock("span",nc,n.toDisplayString(e.back),1))])),e.hidden?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:1,type:"button",class:n.normalizeClass(["btn btn-sm cl-btn-outline-primary it-ok",{"cl-btn-spinner":e.spinner}]),disabled:e.disabled||!e.dirty,onClick:s[1]||(s[1]=Y=>e.$emit("ok"))},[n.createElementVNode("span",null,n.toDisplayString(e.ok),1),s[5]||(s[5]=n.createElementVNode("i",{class:"fas fa-angle-right"},null,-1))],10,ic))],2),n.createVNode(u,{id:e.ID_MODAL},{title:n.withCtx(()=>s[6]||(s[6]=[n.createTextVNode(" Unsaved changes ",-1)])),body:n.withCtx(()=>[n.renderSlot(e.$slots,"modal",{},()=>[s[7]||(s[7]=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-btn-outline-text it-cancel",onClick:s[2]||(s[2]=Y=>e.emit("cancel",!0))}," Discard changes ")]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:"btn cl-btn-outline-primary it-ok",onClick:s[3]||(s[3]=Y=>e.clModalHide())}," Continue editing ")]),_:3},8,["id"])]),_:3})}const xt=B(ec,[["render",oc]]);xt.install=e=>{e.component(xt.name??"ClNoName",xt)};const sc=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[s,c]=e.split("=");if(s===this.cookie&&["-mtm","+mtm"].includes(c)){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)}}}),rc=["id"],lc={class:"card-body container"},ac={class:"row"},cc={class:"col-12 col-md-11"},dc={class:"cl-spacing-box text-center"};function uc(e,s,c,p,b,v){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",lc,[n.createElementVNode("div",ac,[s[3]||(s[3]=n.createElementVNode("div",{class:"col-12 col-md-1 d-none d-md-block"},[n.createElementVNode("i",{class:"cl-asset-cookie"})],-1)),n.createElementVNode("div",cc,[n.renderSlot(e.$slots,"default",{},()=>[s[2]||(s[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",dc,[n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-btn-outline-primary it-ok",onClick:s[0]||(s[0]=u=>e.accept())}," Accept "),n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-btn-outline-text it-cancel",onClick:s[1]||(s[1]=u=>e.decline())}," Decline ")])])])])],10,rc)):n.createCommentVNode("",!0)}const Pt=B(sc,[["render",uc]]);Pt.install=e=>{e.component(Pt.name??"ClNoName",Pt)};const Vn={mounted(e,s){let c="";for(const b of["cl-tooltip-primary","cl-tooltip-secondary","cl-tooltip-light","cl-tooltip-dark"])e.classList.contains(b)&&(c+=` ${b}`);const p=new yo.Tooltip(e,{title:s.value,placement:s.arg,html:!0,trigger:"hover",delay:{show:65,hide:0},template:`<div class="tooltip cl-tooltip${c}" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>`});return e.__tooltipInstance=p,e.addEventListener("show.bs.tooltip",function(){document.querySelectorAll(".cl-tooltip").forEach(v=>v.remove())}),p},unmounted(e){const s=e.__tooltipInstance;if(s){typeof s.dispose=="function"&&s.dispose();const c=document.querySelector(".cl-tooltip");c&&c.remove(),delete e.__tooltipInstance}}},$o={mounted(e,s){e.addEventListener("click",function(){const c=typeof s.value=="function"?s.value():s.value;s.value!==""&&navigator.clipboard?.writeText(c),e.classList.add("cl-animation-flash-text"),setTimeout(()=>{e.classList.remove("cl-animation-flash-text")},1500)})}},fc=n.defineComponent({name:"ClCopy",directives:{tooltip:Vn,clipboard:$o},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()}}}),pc={key:0,ref:"content",class:"cl-copy"},hc={ref:"content"};function mc(e,s,c,p,b,v){const u=n.resolveDirective("tooltip"),S=n.resolveDirective("clipboard");return e.unstyled?n.withDirectives((n.openBlock(),n.createElementBlock("span",pc,[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))])),[[u,e.tooltip,"top"],[S,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",hc,[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)),[[u,e.tooltip,"top"],[S,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)),[[u,e.tooltip,"top"],[S,e.contentToCopy]])}const jt=B(fc,[["render",mc]]);jt.install=e=>{e.component(jt.name??"ClNoName",jt)};const gc=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:dr}}),vc=["id"];function bc(e,s,c,p,b,v){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,vc),n.createTextVNode(", "+n.toDisplayString(e.validText)+" ",1),n.createElementVNode("code",null,n.toDisplayString(e.expires),1)],64)}const Wt=B(gc,[["render",bc]]);Wt.install=e=>{e.component(Wt.name??"ClNoName",Wt)};function nr(e){e.preventDefault()}const yc=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}},emits:["file","content"],data(){return{$uid:0,dragging:!1}},mounted(){["dragenter","dragover","dragleave","drop"].forEach(e=>{document.body.addEventListener(e,nr)})},unmounted(){["dragenter","dragover","dragleave","drop"].forEach(e=>{document.body.removeEventListener(e,nr)})},methods:{browse:function(){const e=document.getElementById(`cl-dropzone-file-${this.$uid}`);if(e&&document.createEvent){const s=document.createEvent("MouseEvents");s.initEvent("click",!0,!1),e.dispatchEvent(s)}},browsed:function(){const s=document.getElementById(`cl-dropzone-file-${this.$uid}`).files??[];s.length>0&&this.loadFile(s[0])},mock:function(e){this.$emit("file",e)},loadFile:function(e){const s=new FileReader,c=this.$emit;c("file",e),s.onload=function(p){c("content",p.target?.result)},s.readAsText(e)},onDrop:function(e){e.dataTransfer&&this.loadFile(e.dataTransfer.files[0]),this.dragging=!1},onDrag:function(e){this.dragging=e}}}),_c=["id"],Cc=["id","accept"];function kc(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["cl-spacing-small",e.dragging?"cl-dragging":""]),onDragover:s[6]||(s[6]=u=>e.onDrag(!0)),onDragleave:s[7]||(s[7]=u=>e.onDrag(!1)),onDrop:s[8]||(s[8]=n.withModifiers((...u)=>e.onDrop&&e.onDrop(...u),["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:s[0]||(s[0]=(...u)=>e.browsed&&e.browsed(...u))},null,40,_c)):n.createCommentVNode("",!0),n.createElementVNode("input",{id:`cl-dropzone-file-${e.$uid}`,type:"file",accept:e.accept,class:"cl-dropzone-file",onChange:s[1]||(s[1]=(...u)=>e.browsed&&e.browsed(...u))},null,40,Cc),e.camera?(n.openBlock(),n.createElementBlock("div",{key:1,class:"cl-dropzone",onClick:s[3]||(s[3]=u=>e.browse())},[s[9]||(s[9]=n.createElementVNode("i",{class:"fas fa-camera"},null,-1)),s[10]||(s[10]=n.createTextVNode("Use your ",-1)),n.createElementVNode("a",{href:"#",onClick:s[2]||(s[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:s[5]||(s[5]=u=>e.browse())},[s[11]||(s[11]=n.createElementVNode("i",{class:"fas fa-file-upload"},null,-1)),s[12]||(s[12]=n.createTextVNode("Drop or ",-1)),n.createElementVNode("a",{href:"#",onClick:s[4]||(s[4]=n.withModifiers(()=>{},["prevent"]))},"browse"),n.createTextVNode(" "+n.toDisplayString(e.what)+" "+n.toDisplayString(e.why)+". ",1)])),n.renderSlot(e.$slots,"default")],34)}const Rt=B(yc,[["render",kc]]);Rt.install=e=>{e.component(Rt.name??"ClNoName",Rt)};const $c=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.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)},validateText:function(){const e=Number(this.minlength),s=Number(this.maxlength);this.minlength&&(this.modelValue?.length??0)<e&&this.setInvalid(this.error??`Please enter at least ${e} character`+(e>1?"s.":".")),this.maxlength&&(this.modelValue?.length??0)>s&&this.setInvalid(this.error??`Please enter at most ${s} character`+(e>1?"s.":".")),this.pattern&&!new RegExp(this.pattern,"g").test(this.modelValue)&&this.setInvalid(this.error)},validateNumber:function(){const e=this.modelValue.trim();if(!/^-?[0-9]*$/.test(e.trim())){this.setInvalid("Please enter a number.");return}const s=parseInt(e.trim());if(s.toString()!==e){this.setInvalid("Please enter a number.");return}this.min!==void 0&&this.max!==void 0?(s<parseInt(this.min)||s>parseInt(this.max))&&this.setInvalid(`Please enter a number between ${this.min} and ${this.max}.`):this.min!==void 0?s<parseInt(this.min)&&this.setInvalid(`Please enter a number >= ${this.min}.`):this.max!==void 0&&s>parseInt(this.max)&&this.setInvalid(`Please enter a number <= ${this.max}.`)},validateEMail:function(){/^[^\s@]+@[^\s@]+\.[^\s@]+[^\s@.]$/.test(this.modelValue)||this.setInvalid("Please enter a valid email address.")},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)}}}),Ec=["for"],wc={key:0,class:"required"},Sc=["id","autofocus","disabled","maxlength","minlength","placeholder","required"],Nc=["id","autofocus","disabled","required"],Tc=["id","autofocus","disabled","min","max","maxlength","minlength","pattern","placeholder","required","type"],Ac=["id","for"],Bc={key:1,class:"valid-feedback valid-feedback-none"};function Oc(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.label?(n.openBlock(),n.createElementBlock("label",{key:0,for:e.$uid,class:n.normalizeClass(["form-label",{disabled:e.disabled}])},[n.createTextVNode(n.toDisplayString(e.label),1),e.required?(n.openBlock(),n.createElementBlock("span",wc,"*")):n.createCommentVNode("",!0)],10,Ec)):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":s[0]||(s[0]=u=>e.modelValue=u),autofocus:e.autofocus,class:e.clazz,disabled:e.disabled,maxlength:e.maxlength,minlength:e.minlength,placeholder:e.placeholder,required:e.required,onBlur:s[1]||(s[1]=u=>e.validate(!0)),onChange:s[2]||(s[2]=u=>e.validate()),onInput:s[3]||(s[3]=u=>e.validate())}),null,16,Sc)),[[n.vModelText,e.modelValue]]):e.type==="select"?n.withDirectives((n.openBlock(),n.createElementBlock("select",n.mergeProps({key:2,id:e.$uid,"onUpdate:modelValue":s[4]||(s[4]=u=>e.modelValue=u),class:["form-select",e.clazz],autofocus:e.autofocus,disabled:e.disabled,required:e.required},e.$attrs,{onBlur:s[5]||(s[5]=u=>e.validate(!0)),onChange:s[6]||(s[6]=u=>e.validate())}),[n.renderSlot(e.$slots,"default")],16,Nc)),[[n.vModelSelect,e.modelValue]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",n.mergeProps({key:3,id:e.$uid},e.$attrs,{ref:"input","onUpdate:modelValue":s[7]||(s[7]=u=>e.modelValue=u),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:s[8]||(s[8]=u=>e.validate(!0)),onChange:s[9]||(s[9]=u=>e.validate()),onInput:s[10]||(s[10]=u=>e.validate())}),null,16,Tc)),[[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,Ac)):n.createCommentVNode("",!0),e.nofeedback?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:5},[n.createElementVNode("p",{class:n.normalizeClass(["invalid-feedback",{disabled:e.disabled}])},n.toDisplayString(e.invalidMessage),3),e.help?(n.openBlock(),n.createElementBlock("p",{key:0,class:n.normalizeClass(["valid-feedback",{disabled:e.disabled}])},n.toDisplayString(e.help),3)):(n.openBlock(),n.createElementBlock("p",Bc))],64))],64)}const qt=B($c,[["render",Oc]]);qt.install=e=>{e.component(qt.name??"ClNoName",qt)};const Dc=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()})}}}),Vc=["id","disabled","indeterminate","autofocus"],Mc=["for"];function Lc(e,s,c,p,b,v){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":s[0]||(s[0]=u=>e.modelValue=u),class:"form-check-input",type:"checkbox",disabled:e.disabled,indeterminate:e.indeterminate,autofocus:e.autofocus},e.$attrs,{onChange:s[1]||(s[1]=u=>e.$emit("update:modelValue",e.modelValue))}),null,16,Vc),[[n.vModelCheckbox,e.modelValue]]),n.createElementVNode("label",{class:"form-check-label",for:e.id??e.$uid},[n.renderSlot(e.$slots,"default")],8,Mc)],2)}const Ht=B(Dc,[["render",Lc]]);Ht.install=e=>{e.component(Ht.name??"ClNoName",Ht)};const zc=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."}}}),Ic={key:0,class:"form-label"},Fc={key:0,class:"required"},xc=["id"],Pc={class:"invalid-feedback"},jc={key:1,class:"valid-feedback"};function Wc(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.label?(n.openBlock(),n.createElementBlock("label",Ic,[n.createTextVNode(n.toDisplayString(e.label),1),e.required?(n.openBlock(),n.createElementBlock("span",Fc,"*")):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,xc),n.createElementVNode("p",Pc,n.toDisplayString(e.invalidMessage),1),e.help?(n.openBlock(),n.createElementBlock("p",jc,n.toDisplayString(e.help),1)):n.createCommentVNode("",!0)],64)}const Ut=B(zc,[["render",Wc]]);Ut.install=e=>{e.component(Ut.name??"ClNoName",Ut)};const Rc=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="";return!this.primary&&!this.secondary?e+="cl-hashtag-dark":this.primary?e+="cl-hashtag-primary":this.secondary&&(e+="cl-hashtag-secondary"),e+(this.class?` ${this.class}`:"")}}}),qc={key:0,class:"cl-hashtag-derived"},Hc=["id"];function Uc(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.derived?(n.openBlock(),n.createElementBlock("span",qc)):n.createCommentVNode("",!0),n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,Hc)],64)}const Xt=B(Rc,[["render",Uc]]);Xt.install=e=>{e.component(Xt.name??"ClNoName",Xt)};const Xc=n.defineComponent({name:"ClIconotron",props:{src:{type:String,default:void 0}}}),Yc={class:"container cl-container-iconotron"},Kc={class:"row"},Gc={class:"col-12 col-md-3"},Qc=["src"],Jc={class:"col-12 col-md-9"};function Zc(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("div",Yc,[n.createElementVNode("div",Kc,[n.createElementVNode("div",Gc,[n.createElementVNode("img",{src:e.src,alt:""},null,8,Qc)]),n.createElementVNode("div",Jc,[n.renderSlot(e.$slots,"default")])])])}const Yt=B(Xc,[["render",Zc]]);Yt.install=e=>{e.component(Yt.name??"ClNoName",Yt)};const ed=n.defineComponent({name:"ClInfo",directives:{tooltip:Vn},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 td(e,s,c,p,b,v){const u=n.resolveDirective("tooltip");return e.bottom?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(e.classes)},null,2)),[[u,e.info,"bottom"]]):e.left?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(e.classes)},null,2)),[[u,e.info,"left"]]):e.right?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(e.classes)},null,2)),[[u,e.info,"right"]]):n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:3,class:n.normalizeClass(e.classes)},null,2)),[[u,e.info,"top"]])}const Kt=B(ed,[["render",td]]);Kt.install=e=>{e.component(Kt.name??"ClNoName",Kt)};const nd=n.defineComponent({name:"ClLinkExternal",props:{noicon:{type:Boolean,default:!1}}});function id(e,s,c,p,b,v){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 Gt=B(nd,[["render",id]]);Gt.install=e=>{e.component(Gt.name??"ClNoName",Gt)};const od=`
|
|
5
|
+
*/var Aa=Ai.exports,er;function Ba(){return er||(er=1,function(e,o){(function(c,p){e.exports=p()})(Aa,function(){const c=new Map,p={set(s,t,i){c.has(s)||c.set(s,new Map);const r=c.get(s);r.has(t)||r.size===0?r.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(s,t)=>c.has(s)&&c.get(s).get(t)||null,remove(s,t){if(!c.has(s))return;const i=c.get(s);i.delete(t),i.size===0&&c.delete(s)}},b="transitionend",v=s=>(s&&window.CSS&&window.CSS.escape&&(s=s.replace(/#([^\s"#']+)/g,(t,i)=>`#${CSS.escape(i)}`)),s),u=s=>{s.dispatchEvent(new Event(b))},S=s=>!(!s||typeof s!="object")&&(s.jquery!==void 0&&(s=s[0]),s.nodeType!==void 0),Y=s=>S(s)?s.jquery?s[0]:s:typeof s=="string"&&s.length>0?document.querySelector(v(s)):null,ve=s=>{if(!S(s)||s.getClientRects().length===0)return!1;const t=getComputedStyle(s).getPropertyValue("visibility")==="visible",i=s.closest("details:not([open])");if(!i)return t;if(i!==s){const r=s.closest("summary");if(r&&r.parentNode!==i||r===null)return!1}return t},pe=s=>!s||s.nodeType!==Node.ELEMENT_NODE||!!s.classList.contains("disabled")||(s.disabled!==void 0?s.disabled:s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false"),Ct=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?Ct(s.parentNode):null},Xe=()=>{},Ye=s=>{s.offsetHeight},Ln=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,zn=[],he=()=>document.documentElement.dir==="rtl",te=s=>{var t;t=()=>{const i=Ln();if(i){const r=s.NAME,a=i.fn[r];i.fn[r]=s.jQueryInterface,i.fn[r].Constructor=s,i.fn[r].noConflict=()=>(i.fn[r]=a,s.jQueryInterface)}},document.readyState==="loading"?(zn.length||document.addEventListener("DOMContentLoaded",()=>{for(const i of zn)i()}),zn.push(t)):t()},oe=(s,t=[],i=s)=>typeof s=="function"?s.call(...t):i,Jn=(s,t,i=!0)=>{if(!i)return void oe(s);const r=(g=>{if(!g)return 0;let{transitionDuration:y,transitionDelay:k}=window.getComputedStyle(g);const E=Number.parseFloat(y),w=Number.parseFloat(k);return E||w?(y=y.split(",")[0],k=k.split(",")[0],1e3*(Number.parseFloat(y)+Number.parseFloat(k))):0})(t)+5;let a=!1;const d=({target:g})=>{g===t&&(a=!0,t.removeEventListener(b,d),oe(s))};t.addEventListener(b,d),setTimeout(()=>{a||u(t)},r)},In=(s,t,i,r)=>{const a=s.length;let d=s.indexOf(t);return d===-1?!i&&r?s[a-1]:s[0]:(d+=i?1:-1,r&&(d=(d+a)%a),s[Math.max(0,Math.min(d,a-1))])},Di=/[^.]*(?=\..*)\.|.*/,Zn=/\..*/,Vi=/::\d+$/,Fn={};let ei=1;const xn={mouseenter:"mouseover",mouseleave:"mouseout"},Mi=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 ti(s,t){return t&&`${t}::${ei++}`||s.uidEvent||ei++}function ni(s){const t=ti(s);return s.uidEvent=t,Fn[t]=Fn[t]||{},Fn[t]}function ii(s,t,i=null){return Object.values(s).find(r=>r.callable===t&&r.delegationSelector===i)}function oi(s,t,i){const r=typeof t=="string",a=r?i:t||i;let d=li(s);return Mi.has(d)||(d=s),[r,a,d]}function si(s,t,i,r,a){if(typeof t!="string"||!s)return;let[d,g,y]=oi(t,i,r);t in xn&&(g=(D=>function(O){if(!O.relatedTarget||O.relatedTarget!==O.delegateTarget&&!O.delegateTarget.contains(O.relatedTarget))return D.call(this,O)})(g));const k=ni(s),E=k[y]||(k[y]={}),w=ii(E,g,d?i:null);if(w)return void(w.oneOff=w.oneOff&&a);const $=ti(g,t.replace(Di,"")),L=d?function(A,D,O){return function V(R){const X=A.querySelectorAll(D);for(let{target:F}=R;F&&F!==this;F=F.parentNode)for(const P of X)if(P===F)return Ke(R,{delegateTarget:F}),V.oneOff&&C.off(A,R.type,D,O),O.apply(F,[R])}}(s,i,g):function(A,D){return function O(V){return Ke(V,{delegateTarget:A}),O.oneOff&&C.off(A,V.type,D),D.apply(A,[V])}}(s,g);L.delegationSelector=d?i:null,L.callable=g,L.oneOff=a,L.uidEvent=$,E[$]=L,s.addEventListener(y,L,d)}function ot(s,t,i,r,a){const d=ii(t[i],r,a);d&&(s.removeEventListener(i,d,!!a),delete t[i][d.uidEvent])}function ri(s,t,i,r){const a=t[i]||{};for(const[d,g]of Object.entries(a))d.includes(r)&&ot(s,t,i,g.callable,g.delegationSelector)}function li(s){return s=s.replace(Zn,""),xn[s]||s}const C={on(s,t,i,r){si(s,t,i,r,!1)},one(s,t,i,r){si(s,t,i,r,!0)},off(s,t,i,r){if(typeof t!="string"||!s)return;const[a,d,g]=oi(t,i,r),y=g!==t,k=ni(s),E=k[g]||{},w=t.startsWith(".");if(d===void 0){if(w)for(const $ of Object.keys(k))ri(s,k,$,t.slice(1));for(const[$,L]of Object.entries(E)){const A=$.replace(Vi,"");y&&!t.includes(A)||ot(s,k,g,L.callable,L.delegationSelector)}}else{if(!Object.keys(E).length)return;ot(s,k,g,d,a?i:null)}},trigger(s,t,i){if(typeof t!="string"||!s)return null;const r=Ln();let a=null,d=!0,g=!0,y=!1;t!==li(t)&&r&&(a=r.Event(t,i),r(s).trigger(a),d=!a.isPropagationStopped(),g=!a.isImmediatePropagationStopped(),y=a.isDefaultPrevented());const k=Ke(new Event(t,{bubbles:d,cancelable:!0}),i);return y&&k.preventDefault(),g&&s.dispatchEvent(k),k.defaultPrevented&&a&&a.preventDefault(),k}};function Ke(s,t={}){for(const[i,r]of Object.entries(t))try{s[i]=r}catch{Object.defineProperty(s,i,{configurable:!0,get:()=>r})}return s}function ai(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 Pn(s){return s.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const Be={setDataAttribute(s,t,i){s.setAttribute(`data-bs-${Pn(t)}`,i)},removeDataAttribute(s,t){s.removeAttribute(`data-bs-${Pn(t)}`)},getDataAttributes(s){if(!s)return{};const t={},i=Object.keys(s.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of i){let a=r.replace(/^bs/,"");a=a.charAt(0).toLowerCase()+a.slice(1),t[a]=ai(s.dataset[r])}return t},getDataAttribute:(s,t)=>ai(s.getAttribute(`data-bs-${Pn(t)}`))};class $e{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,i){const r=S(i)?Be.getDataAttribute(i,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...S(i)?Be.getDataAttributes(i):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,i=this.constructor.DefaultType){for(const[a,d]of Object.entries(i)){const g=t[a],y=S(g)?"element":(r=g)==null?`${r}`:Object.prototype.toString.call(r).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(d).test(y))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${a}" provided type "${y}" but expected type "${d}".`)}var r}}class me extends $e{constructor(t,i){super(),(t=Y(t))&&(this._element=t,this._config=this._getConfig(i),p.set(this._element,this.constructor.DATA_KEY,this))}dispose(){p.remove(this._element,this.constructor.DATA_KEY),C.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,i,r=!0){Jn(t,i,r)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return p.get(Y(t),this.DATA_KEY)}static getOrCreateInstance(t,i={}){return this.getInstance(t)||new this(t,typeof i=="object"?i:null)}static get VERSION(){return"5.3.7"}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 kt=s=>{let t=s.getAttribute("data-bs-target");if(!t||t==="#"){let i=s.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&i!=="#"?i.trim():null}return t?t.split(",").map(i=>v(i)).join(","):null},N={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(i=>i.matches(t)),parents(s,t){const i=[];let r=s.parentNode.closest(t);for(;r;)i.push(r),r=r.parentNode.closest(t);return i},prev(s,t){let i=s.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(s,t){let i=s.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(s){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(i=>`${i}:not([tabindex^="-"])`).join(",");return this.find(t,s).filter(i=>!pe(i)&&ve(i))},getSelectorFromElement(s){const t=kt(s);return t&&N.findOne(t)?t:null},getElementFromSelector(s){const t=kt(s);return t?N.findOne(t):null},getMultipleElementsFromSelector(s){const t=kt(s);return t?N.find(t):[]}},st=(s,t="hide")=>{const i=`click.dismiss${s.EVENT_KEY}`,r=s.NAME;C.on(document,i,`[data-bs-dismiss="${r}"]`,function(a){if(["A","AREA"].includes(this.tagName)&&a.preventDefault(),pe(this))return;const d=N.getElementFromSelector(this)||this.closest(`.${r}`);s.getOrCreateInstance(d)[t]()})},jn=".bs.alert",ci=`close${jn}`,Wn=`closed${jn}`;class rt extends me{static get NAME(){return"alert"}close(){if(C.trigger(this._element,ci).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(),C.trigger(this._element,Wn),this.dispose()}static jQueryInterface(t){return this.each(function(){const i=rt.getOrCreateInstance(this);if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t](this)}})}}st(rt,"close"),te(rt);const Ge='[data-bs-toggle="button"]';class Qe extends me{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){const i=Qe.getOrCreateInstance(this);t==="toggle"&&i[t]()})}}C.on(document,"click.bs.button.data-api",Ge,s=>{s.preventDefault();const t=s.target.closest(Ge);Qe.getOrCreateInstance(t).toggle()}),te(Qe);const Re=".bs.swipe",Me=`touchstart${Re}`,Rn=`touchmove${Re}`,Li=`touchend${Re}`,Le=`pointerdown${Re}`,ze=`pointerup${Re}`,se={endCallback:null,leftCallback:null,rightCallback:null},$t={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Je extends $e{constructor(t,i){super(),this._element=t,t&&Je.isSupported()&&(this._config=this._getConfig(i),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return se}static get DefaultType(){return $t}static get NAME(){return"swipe"}dispose(){C.off(this._element,Re)}_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(),oe(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 i=t/this._deltaX;this._deltaX=0,i&&oe(i>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(C.on(this._element,Le,t=>this._start(t)),C.on(this._element,ze,t=>this._end(t)),this._element.classList.add("pointer-event")):(C.on(this._element,Me,t=>this._start(t)),C.on(this._element,Rn,t=>this._move(t)),C.on(this._element,Li,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 Ee=".bs.carousel",le=".data-api",zi="ArrowLeft",di="ArrowRight",m="next",f="prev",h="left",l="right",_=`slide${Ee}`,T=`slid${Ee}`,M=`keydown${Ee}`,z=`mouseenter${Ee}`,K=`mouseleave${Ee}`,U=`dragstart${Ee}`,re=`load${Ee}${le}`,Q=`click${Ee}${le}`,J="carousel",ae="active",Oe=".active",be=".carousel-item",Ie=Oe+be,Et={[zi]:l,[di]:h},Ze={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ee={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ne extends me{constructor(t,i){super(t,i),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=N.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===J&&this.cycle()}static get Default(){return Ze}static get DefaultType(){return ee}static get NAME(){return"carousel"}next(){this._slide(m)}nextWhenVisible(){!document.hidden&&ve(this._element)&&this.next()}prev(){this._slide(f)}pause(){this._isSliding&&u(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?C.one(this._element,T,()=>this.cycle()):this.cycle())}to(t){const i=this._getItems();if(t>i.length-1||t<0)return;if(this._isSliding)return void C.one(this._element,T,()=>this.to(t));const r=this._getItemIndex(this._getActive());if(r===t)return;const a=t>r?m:f;this._slide(a,i[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&C.on(this._element,M,t=>this._keydown(t)),this._config.pause==="hover"&&(C.on(this._element,z,()=>this.pause()),C.on(this._element,K,()=>this._maybeEnableCycle())),this._config.touch&&Je.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const i of N.find(".carousel-item img",this._element))C.on(i,U,r=>r.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(h)),rightCallback:()=>this._slide(this._directionToOrder(l)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new Je(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const i=Et[t.key];i&&(t.preventDefault(),this._slide(this._directionToOrder(i)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const i=N.findOne(Oe,this._indicatorsElement);i.classList.remove(ae),i.removeAttribute("aria-current");const r=N.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);r&&(r.classList.add(ae),r.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const i=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=i||this._config.defaultInterval}_slide(t,i=null){if(this._isSliding)return;const r=this._getActive(),a=t===m,d=i||In(this._getItems(),r,a,this._config.wrap);if(d===r)return;const g=this._getItemIndex(d),y=$=>C.trigger(this._element,$,{relatedTarget:d,direction:this._orderToDirection(t),from:this._getItemIndex(r),to:g});if(y(_).defaultPrevented||!r||!d)return;const k=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(g),this._activeElement=d;const E=a?"carousel-item-start":"carousel-item-end",w=a?"carousel-item-next":"carousel-item-prev";d.classList.add(w),Ye(d),r.classList.add(E),d.classList.add(E),this._queueCallback(()=>{d.classList.remove(E,w),d.classList.add(ae),r.classList.remove(ae,w,E),this._isSliding=!1,y(T)},r,this._isAnimated()),k&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return N.findOne(Ie,this._element)}_getItems(){return N.find(be,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return he()?t===h?f:m:t===h?m:f}_orderToDirection(t){return he()?t===f?h:l:t===f?l:h}static jQueryInterface(t){return this.each(function(){const i=ne.getOrCreateInstance(this,t);if(typeof t!="number"){if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t]()}}else i.to(t)})}}C.on(document,Q,"[data-bs-slide], [data-bs-slide-to]",function(s){const t=N.getElementFromSelector(this);if(!t||!t.classList.contains(J))return;s.preventDefault();const i=ne.getOrCreateInstance(t),r=this.getAttribute("data-bs-slide-to");return r?(i.to(r),void i._maybeEnableCycle()):Be.getDataAttribute(this,"slide")==="next"?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())}),C.on(window,re,()=>{const s=N.find('[data-bs-ride="carousel"]');for(const t of s)ne.getOrCreateInstance(t)}),te(ne);const ge=".bs.collapse",wt=`show${ge}`,wr=`shown${ge}`,Sr=`hide${ge}`,Nr=`hidden${ge}`,Tr=`click${ge}.data-api`,Ii="show",St="collapse",ui="collapsing",Ar=`:scope .${St} .${St}`,Fi='[data-bs-toggle="collapse"]',Br={parent:null,toggle:!0},Or={parent:"(null|element)",toggle:"boolean"};class Nt extends me{constructor(t,i){super(t,i),this._isTransitioning=!1,this._triggerArray=[];const r=N.find(Fi);for(const a of r){const d=N.getSelectorFromElement(a),g=N.find(d).filter(y=>y===this._element);d!==null&&g.length&&this._triggerArray.push(a)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Br}static get DefaultType(){return Or}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(a=>a!==this._element).map(a=>Nt.getOrCreateInstance(a,{toggle:!1}))),t.length&&t[0]._isTransitioning||C.trigger(this._element,wt).defaultPrevented)return;for(const a of t)a.hide();const i=this._getDimension();this._element.classList.remove(St),this._element.classList.add(ui),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ui),this._element.classList.add(St,Ii),this._element.style[i]="",C.trigger(this._element,wr)},this._element,!0),this._element.style[i]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||C.trigger(this._element,Sr).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Ye(this._element),this._element.classList.add(ui),this._element.classList.remove(St,Ii);for(const i of this._triggerArray){const r=N.getElementFromSelector(i);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ui),this._element.classList.add(St),C.trigger(this._element,Nr)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(Ii)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=Y(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Fi);for(const i of t){const r=N.getElementFromSelector(i);r&&this._addAriaAndCollapsedClass([i],this._isShown(r))}}_getFirstLevelChildren(t){const i=N.find(Ar,this._config.parent);return N.find(t,this._config.parent).filter(r=>!i.includes(r))}_addAriaAndCollapsedClass(t,i){if(t.length)for(const r of t)r.classList.toggle("collapsed",!i),r.setAttribute("aria-expanded",i)}static jQueryInterface(t){const i={};return typeof t=="string"&&/show|hide/.test(t)&&(i.toggle=!1),this.each(function(){const r=Nt.getOrCreateInstance(this,i);if(typeof t=="string"){if(r[t]===void 0)throw new TypeError(`No method named "${t}"`);r[t]()}})}}C.on(document,Tr,Fi,function(s){(s.target.tagName==="A"||s.delegateTarget&&s.delegateTarget.tagName==="A")&&s.preventDefault();for(const t of N.getMultipleElementsFromSelector(this))Nt.getOrCreateInstance(t,{toggle:!1}).toggle()}),te(Nt);var ce="top",ye="bottom",_e="right",de="left",fi="auto",Tt=[ce,ye,_e,de],lt="start",At="end",wo="clippingParents",xi="viewport",Bt="popper",So="reference",Pi=Tt.reduce(function(s,t){return s.concat([t+"-"+lt,t+"-"+At])},[]),ji=[].concat(Tt,[fi]).reduce(function(s,t){return s.concat([t,t+"-"+lt,t+"-"+At])},[]),No="beforeRead",To="read",Ao="afterRead",Bo="beforeMain",Oo="main",Do="afterMain",Vo="beforeWrite",Mo="write",Lo="afterWrite",zo=[No,To,Ao,Bo,Oo,Do,Vo,Mo,Lo];function Fe(s){return s?(s.nodeName||"").toLowerCase():null}function Ce(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var t=s.ownerDocument;return t&&t.defaultView||window}return s}function at(s){return s instanceof Ce(s).Element||s instanceof Element}function we(s){return s instanceof Ce(s).HTMLElement||s instanceof HTMLElement}function Wi(s){return typeof ShadowRoot<"u"&&(s instanceof Ce(s).ShadowRoot||s instanceof ShadowRoot)}const Ri={name:"applyStyles",enabled:!0,phase:"write",fn:function(s){var t=s.state;Object.keys(t.elements).forEach(function(i){var r=t.styles[i]||{},a=t.attributes[i]||{},d=t.elements[i];we(d)&&Fe(d)&&(Object.assign(d.style,r),Object.keys(a).forEach(function(g){var y=a[g];y===!1?d.removeAttribute(g):d.setAttribute(g,y===!0?"":y)}))})},effect:function(s){var t=s.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],d=t.attributes[r]||{},g=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:i[r]).reduce(function(y,k){return y[k]="",y},{});we(a)&&Fe(a)&&(Object.assign(a.style,g),Object.keys(d).forEach(function(y){a.removeAttribute(y)}))})}},requires:["computeStyles"]};function xe(s){return s.split("-")[0]}var ct=Math.max,pi=Math.min,Ot=Math.round;function qi(){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 Io(){return!/^((?!chrome|android).)*safari/i.test(qi())}function Dt(s,t,i){t===void 0&&(t=!1),i===void 0&&(i=!1);var r=s.getBoundingClientRect(),a=1,d=1;t&&we(s)&&(a=s.offsetWidth>0&&Ot(r.width)/s.offsetWidth||1,d=s.offsetHeight>0&&Ot(r.height)/s.offsetHeight||1);var g=(at(s)?Ce(s):window).visualViewport,y=!Io()&&i,k=(r.left+(y&&g?g.offsetLeft:0))/a,E=(r.top+(y&&g?g.offsetTop:0))/d,w=r.width/a,$=r.height/d;return{width:w,height:$,top:E,right:k+w,bottom:E+$,left:k,x:k,y:E}}function Hi(s){var t=Dt(s),i=s.offsetWidth,r=s.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:s.offsetLeft,y:s.offsetTop,width:i,height:r}}function Fo(s,t){var i=t.getRootNode&&t.getRootNode();if(s.contains(t))return!0;if(i&&Wi(i)){var r=t;do{if(r&&s.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function qe(s){return Ce(s).getComputedStyle(s)}function Dr(s){return["table","td","th"].indexOf(Fe(s))>=0}function et(s){return((at(s)?s.ownerDocument:s.document)||window.document).documentElement}function hi(s){return Fe(s)==="html"?s:s.assignedSlot||s.parentNode||(Wi(s)?s.host:null)||et(s)}function xo(s){return we(s)&&qe(s).position!=="fixed"?s.offsetParent:null}function qn(s){for(var t=Ce(s),i=xo(s);i&&Dr(i)&&qe(i).position==="static";)i=xo(i);return i&&(Fe(i)==="html"||Fe(i)==="body"&&qe(i).position==="static")?t:i||function(r){var a=/firefox/i.test(qi());if(/Trident/i.test(qi())&&we(r)&&qe(r).position==="fixed")return null;var d=hi(r);for(Wi(d)&&(d=d.host);we(d)&&["html","body"].indexOf(Fe(d))<0;){var g=qe(d);if(g.transform!=="none"||g.perspective!=="none"||g.contain==="paint"||["transform","perspective"].indexOf(g.willChange)!==-1||a&&g.willChange==="filter"||a&&g.filter&&g.filter!=="none")return d;d=d.parentNode}return null}(s)||t}function Ui(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function Hn(s,t,i){return ct(s,pi(t,i))}function Po(s){return Object.assign({},{top:0,right:0,bottom:0,left:0},s)}function jo(s,t){return t.reduce(function(i,r){return i[r]=s,i},{})}const Wo={name:"arrow",enabled:!0,phase:"main",fn:function(s){var t,i=s.state,r=s.name,a=s.options,d=i.elements.arrow,g=i.modifiersData.popperOffsets,y=xe(i.placement),k=Ui(y),E=[de,_e].indexOf(y)>=0?"height":"width";if(d&&g){var w=function(q,W){return Po(typeof(q=typeof q=="function"?q(Object.assign({},W.rects,{placement:W.placement})):q)!="number"?q:jo(q,Tt))}(a.padding,i),$=Hi(d),L=k==="y"?ce:de,A=k==="y"?ye:_e,D=i.rects.reference[E]+i.rects.reference[k]-g[k]-i.rects.popper[E],O=g[k]-i.rects.reference[k],V=qn(d),R=V?k==="y"?V.clientHeight||0:V.clientWidth||0:0,X=D/2-O/2,F=w[L],P=R-$[E]-w[A],I=R/2-$[E]/2+X,x=Hn(F,I,P),j=k;i.modifiersData[r]=((t={})[j]=x,t.centerOffset=x-I,t)}},effect:function(s){var t=s.state,i=s.options.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r!="string"||(r=t.elements.popper.querySelector(r)))&&Fo(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vt(s){return s.split("-")[1]}var Vr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ro(s){var t,i=s.popper,r=s.popperRect,a=s.placement,d=s.variation,g=s.offsets,y=s.position,k=s.gpuAcceleration,E=s.adaptive,w=s.roundOffsets,$=s.isFixed,L=g.x,A=L===void 0?0:L,D=g.y,O=D===void 0?0:D,V=typeof w=="function"?w({x:A,y:O}):{x:A,y:O};A=V.x,O=V.y;var R=g.hasOwnProperty("x"),X=g.hasOwnProperty("y"),F=de,P=ce,I=window;if(E){var x=qn(i),j="clientHeight",q="clientWidth";x===Ce(i)&&qe(x=et(i)).position!=="static"&&y==="absolute"&&(j="scrollHeight",q="scrollWidth"),(a===ce||(a===de||a===_e)&&d===At)&&(P=ye,O-=($&&x===I&&I.visualViewport?I.visualViewport.height:x[j])-r.height,O*=k?1:-1),a!==de&&(a!==ce&&a!==ye||d!==At)||(F=_e,A-=($&&x===I&&I.visualViewport?I.visualViewport.width:x[q])-r.width,A*=k?1:-1)}var W,Z=Object.assign({position:y},E&&Vr),ke=w===!0?function(Ve,ue){var Ne=Ve.x,Te=Ve.y,G=ue.devicePixelRatio||1;return{x:Ot(Ne*G)/G||0,y:Ot(Te*G)/G||0}}({x:A,y:O},Ce(i)):{x:A,y:O};return A=ke.x,O=ke.y,k?Object.assign({},Z,((W={})[P]=X?"0":"",W[F]=R?"0":"",W.transform=(I.devicePixelRatio||1)<=1?"translate("+A+"px, "+O+"px)":"translate3d("+A+"px, "+O+"px, 0)",W)):Object.assign({},Z,((t={})[P]=X?O+"px":"",t[F]=R?A+"px":"",t.transform="",t))}const Xi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(s){var t=s.state,i=s.options,r=i.gpuAcceleration,a=r===void 0||r,d=i.adaptive,g=d===void 0||d,y=i.roundOffsets,k=y===void 0||y,E={placement:xe(t.placement),variation:Vt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ro(Object.assign({},E,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:g,roundOffsets:k})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ro(Object.assign({},E,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:k})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var mi={passive:!0};const Yi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(s){var t=s.state,i=s.instance,r=s.options,a=r.scroll,d=a===void 0||a,g=r.resize,y=g===void 0||g,k=Ce(t.elements.popper),E=[].concat(t.scrollParents.reference,t.scrollParents.popper);return d&&E.forEach(function(w){w.addEventListener("scroll",i.update,mi)}),y&&k.addEventListener("resize",i.update,mi),function(){d&&E.forEach(function(w){w.removeEventListener("scroll",i.update,mi)}),y&&k.removeEventListener("resize",i.update,mi)}},data:{}};var Mr={left:"right",right:"left",bottom:"top",top:"bottom"};function gi(s){return s.replace(/left|right|bottom|top/g,function(t){return Mr[t]})}var Lr={start:"end",end:"start"};function qo(s){return s.replace(/start|end/g,function(t){return Lr[t]})}function Ki(s){var t=Ce(s);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Gi(s){return Dt(et(s)).left+Ki(s).scrollLeft}function Qi(s){var t=qe(s),i=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+a+r)}function Ho(s){return["html","body","#document"].indexOf(Fe(s))>=0?s.ownerDocument.body:we(s)&&Qi(s)?s:Ho(hi(s))}function Un(s,t){var i;t===void 0&&(t=[]);var r=Ho(s),a=r===((i=s.ownerDocument)==null?void 0:i.body),d=Ce(r),g=a?[d].concat(d.visualViewport||[],Qi(r)?r:[]):r,y=t.concat(g);return a?y:y.concat(Un(hi(g)))}function Ji(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function Uo(s,t,i){return t===xi?Ji(function(r,a){var d=Ce(r),g=et(r),y=d.visualViewport,k=g.clientWidth,E=g.clientHeight,w=0,$=0;if(y){k=y.width,E=y.height;var L=Io();(L||!L&&a==="fixed")&&(w=y.offsetLeft,$=y.offsetTop)}return{width:k,height:E,x:w+Gi(r),y:$}}(s,i)):at(t)?function(r,a){var d=Dt(r,!1,a==="fixed");return d.top=d.top+r.clientTop,d.left=d.left+r.clientLeft,d.bottom=d.top+r.clientHeight,d.right=d.left+r.clientWidth,d.width=r.clientWidth,d.height=r.clientHeight,d.x=d.left,d.y=d.top,d}(t,i):Ji(function(r){var a,d=et(r),g=Ki(r),y=(a=r.ownerDocument)==null?void 0:a.body,k=ct(d.scrollWidth,d.clientWidth,y?y.scrollWidth:0,y?y.clientWidth:0),E=ct(d.scrollHeight,d.clientHeight,y?y.scrollHeight:0,y?y.clientHeight:0),w=-g.scrollLeft+Gi(r),$=-g.scrollTop;return qe(y||d).direction==="rtl"&&(w+=ct(d.clientWidth,y?y.clientWidth:0)-k),{width:k,height:E,x:w,y:$}}(et(s)))}function Xo(s){var t,i=s.reference,r=s.element,a=s.placement,d=a?xe(a):null,g=a?Vt(a):null,y=i.x+i.width/2-r.width/2,k=i.y+i.height/2-r.height/2;switch(d){case ce:t={x:y,y:i.y-r.height};break;case ye:t={x:y,y:i.y+i.height};break;case _e:t={x:i.x+i.width,y:k};break;case de:t={x:i.x-r.width,y:k};break;default:t={x:i.x,y:i.y}}var E=d?Ui(d):null;if(E!=null){var w=E==="y"?"height":"width";switch(g){case lt:t[E]=t[E]-(i[w]/2-r[w]/2);break;case At:t[E]=t[E]+(i[w]/2-r[w]/2)}}return t}function Mt(s,t){t===void 0&&(t={});var i=t,r=i.placement,a=r===void 0?s.placement:r,d=i.strategy,g=d===void 0?s.strategy:d,y=i.boundary,k=y===void 0?wo:y,E=i.rootBoundary,w=E===void 0?xi:E,$=i.elementContext,L=$===void 0?Bt:$,A=i.altBoundary,D=A!==void 0&&A,O=i.padding,V=O===void 0?0:O,R=Po(typeof V!="number"?V:jo(V,Tt)),X=L===Bt?So:Bt,F=s.rects.popper,P=s.elements[D?X:L],I=function(ue,Ne,Te,G){var Pe=Ne==="clippingParents"?function(H){var fe=Un(hi(H)),Ae=["absolute","fixed"].indexOf(qe(H).position)>=0&&we(H)?qn(H):H;return at(Ae)?fe.filter(function(nt){return at(nt)&&Fo(nt,Ae)&&Fe(nt)!=="body"}):[]}(ue):[].concat(Ne),je=[].concat(Pe,[Te]),It=je[0],ie=je.reduce(function(H,fe){var Ae=Uo(ue,fe,G);return H.top=ct(Ae.top,H.top),H.right=pi(Ae.right,H.right),H.bottom=pi(Ae.bottom,H.bottom),H.left=ct(Ae.left,H.left),H},Uo(ue,It,G));return ie.width=ie.right-ie.left,ie.height=ie.bottom-ie.top,ie.x=ie.left,ie.y=ie.top,ie}(at(P)?P:P.contextElement||et(s.elements.popper),k,w,g),x=Dt(s.elements.reference),j=Xo({reference:x,element:F,placement:a}),q=Ji(Object.assign({},F,j)),W=L===Bt?q:x,Z={top:I.top-W.top+R.top,bottom:W.bottom-I.bottom+R.bottom,left:I.left-W.left+R.left,right:W.right-I.right+R.right},ke=s.modifiersData.offset;if(L===Bt&&ke){var Ve=ke[a];Object.keys(Z).forEach(function(ue){var Ne=[_e,ye].indexOf(ue)>=0?1:-1,Te=[ce,ye].indexOf(ue)>=0?"y":"x";Z[ue]+=Ve[Te]*Ne})}return Z}function zr(s,t){t===void 0&&(t={});var i=t,r=i.placement,a=i.boundary,d=i.rootBoundary,g=i.padding,y=i.flipVariations,k=i.allowedAutoPlacements,E=k===void 0?ji:k,w=Vt(r),$=w?y?Pi:Pi.filter(function(D){return Vt(D)===w}):Tt,L=$.filter(function(D){return E.indexOf(D)>=0});L.length===0&&(L=$);var A=L.reduce(function(D,O){return D[O]=Mt(s,{placement:O,boundary:a,rootBoundary:d,padding:g})[xe(O)],D},{});return Object.keys(A).sort(function(D,O){return A[D]-A[O]})}const Yo={name:"flip",enabled:!0,phase:"main",fn:function(s){var t=s.state,i=s.options,r=s.name;if(!t.modifiersData[r]._skip){for(var a=i.mainAxis,d=a===void 0||a,g=i.altAxis,y=g===void 0||g,k=i.fallbackPlacements,E=i.padding,w=i.boundary,$=i.rootBoundary,L=i.altBoundary,A=i.flipVariations,D=A===void 0||A,O=i.allowedAutoPlacements,V=t.options.placement,R=xe(V),X=k||(R!==V&&D?function(H){if(xe(H)===fi)return[];var fe=gi(H);return[qo(H),fe,qo(fe)]}(V):[gi(V)]),F=[V].concat(X).reduce(function(H,fe){return H.concat(xe(fe)===fi?zr(t,{placement:fe,boundary:w,rootBoundary:$,padding:E,flipVariations:D,allowedAutoPlacements:O}):fe)},[]),P=t.rects.reference,I=t.rects.popper,x=new Map,j=!0,q=F[0],W=0;W<F.length;W++){var Z=F[W],ke=xe(Z),Ve=Vt(Z)===lt,ue=[ce,ye].indexOf(ke)>=0,Ne=ue?"width":"height",Te=Mt(t,{placement:Z,boundary:w,rootBoundary:$,altBoundary:L,padding:E}),G=ue?Ve?_e:de:Ve?ye:ce;P[Ne]>I[Ne]&&(G=gi(G));var Pe=gi(G),je=[];if(d&&je.push(Te[ke]<=0),y&&je.push(Te[G]<=0,Te[Pe]<=0),je.every(function(H){return H})){q=Z,j=!1;break}x.set(Z,je)}if(j)for(var It=function(H){var fe=F.find(function(Ae){var nt=x.get(Ae);if(nt)return nt.slice(0,H).every(function(wi){return wi})});if(fe)return q=fe,"break"},ie=D?3:1;ie>0&&It(ie)!=="break";ie--);t.placement!==q&&(t.modifiersData[r]._skip=!0,t.placement=q,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ko(s,t,i){return i===void 0&&(i={x:0,y:0}),{top:s.top-t.height-i.y,right:s.right-t.width+i.x,bottom:s.bottom-t.height+i.y,left:s.left-t.width-i.x}}function Go(s){return[ce,_e,ye,de].some(function(t){return s[t]>=0})}const Qo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(s){var t=s.state,i=s.name,r=t.rects.reference,a=t.rects.popper,d=t.modifiersData.preventOverflow,g=Mt(t,{elementContext:"reference"}),y=Mt(t,{altBoundary:!0}),k=Ko(g,r),E=Ko(y,a,d),w=Go(k),$=Go(E);t.modifiersData[i]={referenceClippingOffsets:k,popperEscapeOffsets:E,isReferenceHidden:w,hasPopperEscaped:$},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":w,"data-popper-escaped":$})}},Jo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(s){var t=s.state,i=s.options,r=s.name,a=i.offset,d=a===void 0?[0,0]:a,g=ji.reduce(function(w,$){return w[$]=function(L,A,D){var O=xe(L),V=[de,ce].indexOf(O)>=0?-1:1,R=typeof D=="function"?D(Object.assign({},A,{placement:L})):D,X=R[0],F=R[1];return X=X||0,F=(F||0)*V,[de,_e].indexOf(O)>=0?{x:F,y:X}:{x:X,y:F}}($,t.rects,d),w},{}),y=g[t.placement],k=y.x,E=y.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=k,t.modifiersData.popperOffsets.y+=E),t.modifiersData[r]=g}},Zi={name:"popperOffsets",enabled:!0,phase:"read",fn:function(s){var t=s.state,i=s.name;t.modifiersData[i]=Xo({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},Zo={name:"preventOverflow",enabled:!0,phase:"main",fn:function(s){var t=s.state,i=s.options,r=s.name,a=i.mainAxis,d=a===void 0||a,g=i.altAxis,y=g!==void 0&&g,k=i.boundary,E=i.rootBoundary,w=i.altBoundary,$=i.padding,L=i.tether,A=L===void 0||L,D=i.tetherOffset,O=D===void 0?0:D,V=Mt(t,{boundary:k,rootBoundary:E,padding:$,altBoundary:w}),R=xe(t.placement),X=Vt(t.placement),F=!X,P=Ui(R),I=P==="x"?"y":"x",x=t.modifiersData.popperOffsets,j=t.rects.reference,q=t.rects.popper,W=typeof O=="function"?O(Object.assign({},t.rects,{placement:t.placement})):O,Z=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),ke=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Ve={x:0,y:0};if(x){if(d){var ue,Ne=P==="y"?ce:de,Te=P==="y"?ye:_e,G=P==="y"?"height":"width",Pe=x[P],je=Pe+V[Ne],It=Pe-V[Te],ie=A?-q[G]/2:0,H=X===lt?j[G]:q[G],fe=X===lt?-q[G]:-j[G],Ae=t.elements.arrow,nt=A&&Ae?Hi(Ae):{width:0,height:0},wi=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},xs=wi[Ne],Ps=wi[Te],Si=Hn(0,j[G],nt[G]),ha=F?j[G]/2-ie-Si-xs-Z.mainAxis:H-Si-xs-Z.mainAxis,ma=F?-j[G]/2+ie+Si+Ps+Z.mainAxis:fe+Si+Ps+Z.mainAxis,ho=t.elements.arrow&&qn(t.elements.arrow),ga=ho?P==="y"?ho.clientTop||0:ho.clientLeft||0:0,js=(ue=ke?.[P])!=null?ue:0,va=Pe+ma-js,Ws=Hn(A?pi(je,Pe+ha-js-ga):je,Pe,A?ct(It,va):It);x[P]=Ws,Ve[P]=Ws-Pe}if(y){var Rs,ba=P==="x"?ce:de,ya=P==="x"?ye:_e,vt=x[I],Ni=I==="y"?"height":"width",qs=vt+V[ba],Hs=vt-V[ya],mo=[ce,de].indexOf(R)!==-1,Us=(Rs=ke?.[I])!=null?Rs:0,Xs=mo?qs:vt-j[Ni]-q[Ni]-Us+Z.altAxis,Ys=mo?vt+j[Ni]+q[Ni]-Us-Z.altAxis:Hs,Ks=A&&mo?function(_a,Ca,go){var Gs=Hn(_a,Ca,go);return Gs>go?go:Gs}(Xs,vt,Ys):Hn(A?Xs:qs,vt,A?Ys:Hs);x[I]=Ks,Ve[I]=Ks-vt}t.modifiersData[r]=Ve}},requiresIfExists:["offset"]};function Ir(s,t,i){i===void 0&&(i=!1);var r,a,d=we(t),g=we(t)&&function($){var L=$.getBoundingClientRect(),A=Ot(L.width)/$.offsetWidth||1,D=Ot(L.height)/$.offsetHeight||1;return A!==1||D!==1}(t),y=et(t),k=Dt(s,g,i),E={scrollLeft:0,scrollTop:0},w={x:0,y:0};return(d||!d&&!i)&&((Fe(t)!=="body"||Qi(y))&&(E=(r=t)!==Ce(r)&&we(r)?{scrollLeft:(a=r).scrollLeft,scrollTop:a.scrollTop}:Ki(r)),we(t)?((w=Dt(t,!0)).x+=t.clientLeft,w.y+=t.clientTop):y&&(w.x=Gi(y))),{x:k.left+E.scrollLeft-w.x,y:k.top+E.scrollTop-w.y,width:k.width,height:k.height}}function Fr(s){var t=new Map,i=new Set,r=[];function a(d){i.add(d.name),[].concat(d.requires||[],d.requiresIfExists||[]).forEach(function(g){if(!i.has(g)){var y=t.get(g);y&&a(y)}}),r.push(d)}return s.forEach(function(d){t.set(d.name,d)}),s.forEach(function(d){i.has(d.name)||a(d)}),r}var es={placement:"bottom",modifiers:[],strategy:"absolute"};function ts(){for(var s=arguments.length,t=new Array(s),i=0;i<s;i++)t[i]=arguments[i];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function vi(s){s===void 0&&(s={});var t=s,i=t.defaultModifiers,r=i===void 0?[]:i,a=t.defaultOptions,d=a===void 0?es:a;return function(g,y,k){k===void 0&&(k=d);var E,w,$={placement:"bottom",orderedModifiers:[],options:Object.assign({},es,d),modifiersData:{},elements:{reference:g,popper:y},attributes:{},styles:{}},L=[],A=!1,D={state:$,setOptions:function(V){var R=typeof V=="function"?V($.options):V;O(),$.options=Object.assign({},d,$.options,R),$.scrollParents={reference:at(g)?Un(g):g.contextElement?Un(g.contextElement):[],popper:Un(y)};var X,F,P=function(I){var x=Fr(I);return zo.reduce(function(j,q){return j.concat(x.filter(function(W){return W.phase===q}))},[])}((X=[].concat(r,$.options.modifiers),F=X.reduce(function(I,x){var j=I[x.name];return I[x.name]=j?Object.assign({},j,x,{options:Object.assign({},j.options,x.options),data:Object.assign({},j.data,x.data)}):x,I},{}),Object.keys(F).map(function(I){return F[I]})));return $.orderedModifiers=P.filter(function(I){return I.enabled}),$.orderedModifiers.forEach(function(I){var x=I.name,j=I.options,q=j===void 0?{}:j,W=I.effect;if(typeof W=="function"){var Z=W({state:$,name:x,instance:D,options:q});L.push(Z||function(){})}}),D.update()},forceUpdate:function(){if(!A){var V=$.elements,R=V.reference,X=V.popper;if(ts(R,X)){$.rects={reference:Ir(R,qn(X),$.options.strategy==="fixed"),popper:Hi(X)},$.reset=!1,$.placement=$.options.placement,$.orderedModifiers.forEach(function(W){return $.modifiersData[W.name]=Object.assign({},W.data)});for(var F=0;F<$.orderedModifiers.length;F++)if($.reset!==!0){var P=$.orderedModifiers[F],I=P.fn,x=P.options,j=x===void 0?{}:x,q=P.name;typeof I=="function"&&($=I({state:$,options:j,name:q,instance:D})||$)}else $.reset=!1,F=-1}}},update:(E=function(){return new Promise(function(V){D.forceUpdate(),V($)})},function(){return w||(w=new Promise(function(V){Promise.resolve().then(function(){w=void 0,V(E())})})),w}),destroy:function(){O(),A=!0}};if(!ts(g,y))return D;function O(){L.forEach(function(V){return V()}),L=[]}return D.setOptions(k).then(function(V){!A&&k.onFirstUpdate&&k.onFirstUpdate(V)}),D}}var xr=vi(),Pr=vi({defaultModifiers:[Yi,Zi,Xi,Ri]}),eo=vi({defaultModifiers:[Yi,Zi,Xi,Ri,Jo,Yo,Zo,Wo,Qo]});const ns=Object.freeze(Object.defineProperty({__proto__:null,afterMain:Do,afterRead:Ao,afterWrite:Lo,applyStyles:Ri,arrow:Wo,auto:fi,basePlacements:Tt,beforeMain:Bo,beforeRead:No,beforeWrite:Vo,bottom:ye,clippingParents:wo,computeStyles:Xi,createPopper:eo,createPopperBase:xr,createPopperLite:Pr,detectOverflow:Mt,end:At,eventListeners:Yi,flip:Yo,hide:Qo,left:de,main:Oo,modifierPhases:zo,offset:Jo,placements:ji,popper:Bt,popperGenerator:vi,popperOffsets:Zi,preventOverflow:Zo,read:To,reference:So,right:_e,start:lt,top:ce,variationPlacements:Pi,viewport:xi,write:Mo},Symbol.toStringTag,{value:"Module"})),is="dropdown",dt=".bs.dropdown",to=".data-api",jr="ArrowUp",os="ArrowDown",Wr=`hide${dt}`,Rr=`hidden${dt}`,qr=`show${dt}`,Hr=`shown${dt}`,ss=`click${dt}${to}`,rs=`keydown${dt}${to}`,Ur=`keyup${dt}${to}`,Lt="show",ut='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Xr=`${ut}.${Lt}`,bi=".dropdown-menu",Yr=he()?"top-end":"top-start",Kr=he()?"top-start":"top-end",Gr=he()?"bottom-end":"bottom-start",Qr=he()?"bottom-start":"bottom-end",Jr=he()?"left-start":"right-start",Zr=he()?"right-start":"left-start",el={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},tl={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class De extends me{constructor(t,i){super(t,i),this._popper=null,this._parent=this._element.parentNode,this._menu=N.next(this._element,bi)[0]||N.prev(this._element,bi)[0]||N.findOne(bi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return el}static get DefaultType(){return tl}static get NAME(){return is}toggle(){return this._isShown()?this.hide():this.show()}show(){if(pe(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!C.trigger(this._element,qr,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const i of[].concat(...document.body.children))C.on(i,"mouseover",Xe);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Lt),this._element.classList.add(Lt),C.trigger(this._element,Hr,t)}}hide(){if(pe(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(!C.trigger(this._element,Wr,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))C.off(i,"mouseover",Xe);this._popper&&this._popper.destroy(),this._menu.classList.remove(Lt),this._element.classList.remove(Lt),this._element.setAttribute("aria-expanded","false"),Be.removeDataAttribute(this._menu,"popper"),C.trigger(this._element,Rr,t),this._element.focus()}}_getConfig(t){if(typeof(t=super._getConfig(t)).reference=="object"&&!S(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${is.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(ns===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:S(this._config.reference)?t=Y(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const i=this._getPopperConfig();this._popper=eo(t,this._menu,i)}_isShown(){return this._menu.classList.contains(Lt)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Jr;if(t.classList.contains("dropstart"))return Zr;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const i=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains("dropup")?i?Kr:Yr:i?Qr:Gr}_detectNavbar(){return this._element.closest(".navbar")!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(i=>Number.parseInt(i,10)):typeof t=="function"?i=>t(i,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")&&(Be.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...oe(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:i}){const r=N.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(a=>ve(a));r.length&&In(r,i,t===os,!r.includes(i)).focus()}static jQueryInterface(t){return this.each(function(){const i=De.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0)throw new TypeError(`No method named "${t}"`);i[t]()}})}static clearMenus(t){if(t.button===2||t.type==="keyup"&&t.key!=="Tab")return;const i=N.find(Xr);for(const r of i){const a=De.getInstance(r);if(!a||a._config.autoClose===!1)continue;const d=t.composedPath(),g=d.includes(a._menu);if(d.includes(a._element)||a._config.autoClose==="inside"&&!g||a._config.autoClose==="outside"&&g||a._menu.contains(t.target)&&(t.type==="keyup"&&t.key==="Tab"||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const y={relatedTarget:a._element};t.type==="click"&&(y.clickEvent=t),a._completeHide(y)}}static dataApiKeydownHandler(t){const i=/input|textarea/i.test(t.target.tagName),r=t.key==="Escape",a=[jr,os].includes(t.key);if(!a&&!r||i&&!r)return;t.preventDefault();const d=this.matches(ut)?this:N.prev(this,ut)[0]||N.next(this,ut)[0]||N.findOne(ut,t.delegateTarget.parentNode),g=De.getOrCreateInstance(d);if(a)return t.stopPropagation(),g.show(),void g._selectMenuItem(t);g._isShown()&&(t.stopPropagation(),g.hide(),d.focus())}}C.on(document,rs,ut,De.dataApiKeydownHandler),C.on(document,rs,bi,De.dataApiKeydownHandler),C.on(document,ss,De.clearMenus),C.on(document,Ur,De.clearMenus),C.on(document,ss,ut,function(s){s.preventDefault(),De.getOrCreateInstance(this).toggle()}),te(De);const ls="backdrop",as="show",cs=`mousedown.bs.${ls}`,nl={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},il={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ds extends $e{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return nl}static get DefaultType(){return il}static get NAME(){return ls}show(t){if(!this._config.isVisible)return void oe(t);this._append();const i=this._getElement();this._config.isAnimated&&Ye(i),i.classList.add(as),this._emulateAnimation(()=>{oe(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(as),this._emulateAnimation(()=>{this.dispose(),oe(t)})):oe(t)}dispose(){this._isAppended&&(C.off(this._element,cs),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=Y(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),C.on(t,cs,()=>{oe(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Jn(t,this._getElement(),this._config.isAnimated)}}const yi=".bs.focustrap",ol=`focusin${yi}`,sl=`keydown.tab${yi}`,us="backward",rl={autofocus:!0,trapElement:null},ll={autofocus:"boolean",trapElement:"element"};class fs extends $e{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return rl}static get DefaultType(){return ll}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),C.off(document,yi),C.on(document,ol,t=>this._handleFocusin(t)),C.on(document,sl,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,C.off(document,yi))}_handleFocusin(t){const{trapElement:i}=this._config;if(t.target===document||t.target===i||i.contains(t.target))return;const r=N.focusableChildren(i);r.length===0?i.focus():this._lastTabNavDirection===us?r[r.length-1].focus():r[0].focus()}_handleKeydown(t){t.key==="Tab"&&(this._lastTabNavDirection=t.shiftKey?us:"forward")}}const ps=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",hs=".sticky-top",_i="padding-right",ms="margin-right";class no{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,_i,i=>i+t),this._setElementAttributes(ps,_i,i=>i+t),this._setElementAttributes(hs,ms,i=>i-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,_i),this._resetElementAttributes(ps,_i),this._resetElementAttributes(hs,ms)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,i,r){const a=this.getWidth();this._applyManipulationCallback(t,d=>{if(d!==this._element&&window.innerWidth>d.clientWidth+a)return;this._saveInitialAttribute(d,i);const g=window.getComputedStyle(d).getPropertyValue(i);d.style.setProperty(i,`${r(Number.parseFloat(g))}px`)})}_saveInitialAttribute(t,i){const r=t.style.getPropertyValue(i);r&&Be.setDataAttribute(t,i,r)}_resetElementAttributes(t,i){this._applyManipulationCallback(t,r=>{const a=Be.getDataAttribute(r,i);a!==null?(Be.removeDataAttribute(r,i),r.style.setProperty(i,a)):r.style.removeProperty(i)})}_applyManipulationCallback(t,i){if(S(t))i(t);else for(const r of N.find(t,this._element))i(r)}}const Se=".bs.modal",al=`hide${Se}`,cl=`hidePrevented${Se}`,gs=`hidden${Se}`,vs=`show${Se}`,dl=`shown${Se}`,ul=`resize${Se}`,fl=`click.dismiss${Se}`,pl=`mousedown.dismiss${Se}`,hl=`keydown.dismiss${Se}`,ml=`click${Se}.data-api`,bs="modal-open",ys="show",io="modal-static",gl={backdrop:!0,focus:!0,keyboard:!0},vl={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ft extends me{constructor(t,i){super(t,i),this._dialog=N.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new no,this._addEventListeners()}static get Default(){return gl}static get DefaultType(){return vl}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||C.trigger(this._element,vs,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(bs),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){this._isShown&&!this._isTransitioning&&(C.trigger(this._element,al).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ys),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){C.off(window,Se),C.off(this._dialog,Se),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ds({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new fs({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 i=N.findOne(".modal-body",this._dialog);i&&(i.scrollTop=0),Ye(this._element),this._element.classList.add(ys),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,C.trigger(this._element,dl,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){C.on(this._element,hl,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),C.on(window,ul,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),C.on(this._element,pl,t=>{C.one(this._element,fl,i=>{this._element===t.target&&this._element===i.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(bs),this._resetAdjustments(),this._scrollBar.reset(),C.trigger(this._element,gs)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(C.trigger(this._element,cl).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,i=this._element.style.overflowY;i==="hidden"||this._element.classList.contains(io)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(io),this._queueCallback(()=>{this._element.classList.remove(io),this._queueCallback(()=>{this._element.style.overflowY=i},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,i=this._scrollBar.getWidth(),r=i>0;if(r&&!t){const a=he()?"paddingLeft":"paddingRight";this._element.style[a]=`${i}px`}if(!r&&t){const a=he()?"paddingRight":"paddingLeft";this._element.style[a]=`${i}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,i){return this.each(function(){const r=ft.getOrCreateInstance(this,t);if(typeof t=="string"){if(r[t]===void 0)throw new TypeError(`No method named "${t}"`);r[t](i)}})}}C.on(document,ml,'[data-bs-toggle="modal"]',function(s){const t=N.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&s.preventDefault(),C.one(t,vs,r=>{r.defaultPrevented||C.one(t,gs,()=>{ve(this)&&this.focus()})});const i=N.findOne(".modal.show");i&&ft.getInstance(i).hide(),ft.getOrCreateInstance(t).toggle(this)}),st(ft),te(ft);const He=".bs.offcanvas",_s=".data-api",bl=`load${He}${_s}`,Cs="show",ks="showing",$s="hiding",Es=".offcanvas.show",yl=`show${He}`,_l=`shown${He}`,Cl=`hide${He}`,ws=`hidePrevented${He}`,Ss=`hidden${He}`,kl=`resize${He}`,$l=`click${He}${_s}`,El=`keydown.dismiss${He}`,wl={backdrop:!0,keyboard:!0,scroll:!1},Sl={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ue extends me{constructor(t,i){super(t,i),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return wl}static get DefaultType(){return Sl}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||C.trigger(this._element,yl,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new no().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ks),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Cs),this._element.classList.remove(ks),C.trigger(this._element,_l,{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(C.trigger(this._element,Cl).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add($s),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Cs,$s),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new no().reset(),C.trigger(this._element,Ss)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=!!this._config.backdrop;return new ds({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{this._config.backdrop!=="static"?this.hide():C.trigger(this._element,ws)}:null})}_initializeFocusTrap(){return new fs({trapElement:this._element})}_addEventListeners(){C.on(this._element,El,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():C.trigger(this._element,ws))})}static jQueryInterface(t){return this.each(function(){const i=Ue.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t](this)}})}}C.on(document,$l,'[data-bs-toggle="offcanvas"]',function(s){const t=N.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),pe(this))return;C.one(t,Ss,()=>{ve(this)&&this.focus()});const i=N.findOne(Es);i&&i!==t&&Ue.getInstance(i).hide(),Ue.getOrCreateInstance(t).toggle(this)}),C.on(window,bl,()=>{for(const s of N.find(Es))Ue.getOrCreateInstance(s).show()}),C.on(window,kl,()=>{for(const s of N.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(s).position!=="fixed"&&Ue.getOrCreateInstance(s).hide()}),st(Ue),te(Ue);const Ns={"*":["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:[]},Nl=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Tl=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Al=(s,t)=>{const i=s.nodeName.toLowerCase();return t.includes(i)?!Nl.has(i)||!!Tl.test(s.nodeValue):t.filter(r=>r instanceof RegExp).some(r=>r.test(i))},Bl={allowList:Ns,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Ol={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Dl={entry:"(string|element|function|null)",selector:"(string|element)"};class Vl extends $e{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Bl}static get DefaultType(){return Ol}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[a,d]of Object.entries(this._config.content))this._setContent(t,d,a);const i=t.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&i.classList.add(...r.split(" ")),i}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[i,r]of Object.entries(t))super._typeCheckConfig({selector:i,entry:r},Dl)}_setContent(t,i,r){const a=N.findOne(r,t);a&&((i=this._resolvePossibleFunction(i))?S(i)?this._putElementInTemplate(Y(i),a):this._config.html?a.innerHTML=this._maybeSanitize(i):a.textContent=i:a.remove())}_maybeSanitize(t){return this._config.sanitize?function(i,r,a){if(!i.length)return i;if(a&&typeof a=="function")return a(i);const d=new window.DOMParser().parseFromString(i,"text/html"),g=[].concat(...d.body.querySelectorAll("*"));for(const y of g){const k=y.nodeName.toLowerCase();if(!Object.keys(r).includes(k)){y.remove();continue}const E=[].concat(...y.attributes),w=[].concat(r["*"]||[],r[k]||[]);for(const $ of E)Al($,w)||y.removeAttribute($.nodeName)}return d.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return oe(t,[void 0,this])}_putElementInTemplate(t,i){if(this._config.html)return i.innerHTML="",void i.append(t);i.textContent=t.textContent}}const Ml=new Set(["sanitize","allowList","sanitizeFn"]),oo="fade",Ci="show",Ll=".tooltip-inner",Ts=".modal",As="hide.bs.modal",Xn="hover",so="focus",ro="click",zl={AUTO:"auto",TOP:"top",RIGHT:he()?"left":"right",BOTTOM:"bottom",LEFT:he()?"right":"left"},Il={allowList:Ns,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"},Fl={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 pt extends me{constructor(t,i){if(ns===void 0)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,i),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 Il}static get DefaultType(){return Fl}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),C.off(this._element.closest(Ts),As,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=C.trigger(this._element,this.constructor.eventName("show")),i=(Ct(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!i)return;this._disposePopper();const r=this._getTipElement();this._element.setAttribute("aria-describedby",r.getAttribute("id"));const{container:a}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(a.append(r),C.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(r),r.classList.add(Ci),"ontouchstart"in document.documentElement)for(const d of[].concat(...document.body.children))C.on(d,"mouseover",Xe);this._queueCallback(()=>{C.trigger(this._element,this.constructor.eventName("shown")),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!C.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(Ci),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))C.off(t,"mouseover",Xe);this._activeTrigger[ro]=!1,this._activeTrigger[so]=!1,this._activeTrigger[Xn]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),C.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 i=this._getTemplateFactory(t).toHtml();if(!i)return null;i.classList.remove(oo,Ci),i.classList.add(`bs-${this.constructor.NAME}-auto`);const r=(a=>{do a+=Math.floor(1e6*Math.random());while(document.getElementById(a));return a})(this.constructor.NAME).toString();return i.setAttribute("id",r),this._isAnimated()&&i.classList.add(oo),i}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Vl({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Ll]: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(oo)}_isShown(){return this.tip&&this.tip.classList.contains(Ci)}_createPopper(t){const i=oe(this._config.placement,[this,t,this._element]),r=zl[i.toUpperCase()];return eo(this._element,t,this._getPopperConfig(r))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(i=>Number.parseInt(i,10)):typeof t=="function"?i=>t(i,this._element):t}_resolvePossibleFunction(t){return oe(t,[this._element,this._element])}_getPopperConfig(t){const i={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:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...i,...oe(this._config.popperConfig,[void 0,i])}}_setListeners(){const t=this._config.trigger.split(" ");for(const i of t)if(i==="click")C.on(this._element,this.constructor.eventName("click"),this._config.selector,r=>{const a=this._initializeOnDelegatedTarget(r);a._activeTrigger[ro]=!(a._isShown()&&a._activeTrigger[ro]),a.toggle()});else if(i!=="manual"){const r=i===Xn?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),a=i===Xn?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");C.on(this._element,r,this._config.selector,d=>{const g=this._initializeOnDelegatedTarget(d);g._activeTrigger[d.type==="focusin"?so:Xn]=!0,g._enter()}),C.on(this._element,a,this._config.selector,d=>{const g=this._initializeOnDelegatedTarget(d);g._activeTrigger[d.type==="focusout"?so:Xn]=g._element.contains(d.relatedTarget),g._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},C.on(this._element.closest(Ts),As,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,i){clearTimeout(this._timeout),this._timeout=setTimeout(t,i)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const i=Be.getDataAttributes(this._element);for(const r of Object.keys(i))Ml.has(r)&&delete i[r];return t={...i,...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:Y(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[i,r]of Object.entries(this._config))this.constructor.Default[i]!==r&&(t[i]=r);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const i=pt.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0)throw new TypeError(`No method named "${t}"`);i[t]()}})}}te(pt);const xl=".popover-header",Pl=".popover-body",jl={...pt.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"},Wl={...pt.DefaultType,content:"(null|string|element|function)"};class ki extends pt{static get Default(){return jl}static get DefaultType(){return Wl}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[xl]:this._getTitle(),[Pl]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const i=ki.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0)throw new TypeError(`No method named "${t}"`);i[t]()}})}}te(ki);const lo=".bs.scrollspy",Rl=`activate${lo}`,Bs=`click${lo}`,ql=`load${lo}.data-api`,zt="active",ao="[href]",Os=".nav-link",Hl=`${Os}, .nav-item > ${Os}, .list-group-item`,Ul={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Xl={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Yn extends me{constructor(t,i){super(t,i),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 Ul}static get DefaultType(){return Xl}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=Y(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(i=>Number.parseFloat(i))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(C.off(this._config.target,Bs),C.on(this._config.target,Bs,ao,t=>{const i=this._observableSections.get(t.target.hash);if(i){t.preventDefault();const r=this._rootElement||window,a=i.offsetTop-this._element.offsetTop;if(r.scrollTo)return void r.scrollTo({top:a,behavior:"smooth"});r.scrollTop=a}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(i=>this._observerCallback(i),t)}_observerCallback(t){const i=g=>this._targetLinks.get(`#${g.target.id}`),r=g=>{this._previousScrollData.visibleEntryTop=g.target.offsetTop,this._process(i(g))},a=(this._rootElement||document.documentElement).scrollTop,d=a>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=a;for(const g of t){if(!g.isIntersecting){this._activeTarget=null,this._clearActiveClass(i(g));continue}const y=g.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(d&&y){if(r(g),!a)return}else d||y||r(g)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=N.find(ao,this._config.target);for(const i of t){if(!i.hash||pe(i))continue;const r=N.findOne(decodeURI(i.hash),this._element);ve(r)&&(this._targetLinks.set(decodeURI(i.hash),i),this._observableSections.set(i.hash,r))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(zt),this._activateParents(t),C.trigger(this._element,Rl,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))N.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(zt);else for(const i of N.parents(t,".nav, .list-group"))for(const r of N.prev(i,Hl))r.classList.add(zt)}_clearActiveClass(t){t.classList.remove(zt);const i=N.find(`${ao}.${zt}`,t);for(const r of i)r.classList.remove(zt)}static jQueryInterface(t){return this.each(function(){const i=Yn.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t]()}})}}C.on(window,ql,()=>{for(const s of N.find('[data-bs-spy="scroll"]'))Yn.getOrCreateInstance(s)}),te(Yn);const ht=".bs.tab",Yl=`hide${ht}`,Kl=`hidden${ht}`,Gl=`show${ht}`,Ql=`shown${ht}`,Jl=`click${ht}`,Zl=`keydown${ht}`,ea=`load${ht}`,ta="ArrowLeft",Ds="ArrowRight",na="ArrowUp",Vs="ArrowDown",co="Home",Ms="End",mt="active",Ls="fade",uo="show",zs=".dropdown-toggle",fo=`:not(${zs})`,Is='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',po=`.nav-link${fo}, .list-group-item${fo}, [role="tab"]${fo}, ${Is}`,ia=`.${mt}[data-bs-toggle="tab"], .${mt}[data-bs-toggle="pill"], .${mt}[data-bs-toggle="list"]`;class gt extends me{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),C.on(this._element,Zl,i=>this._keydown(i)))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const i=this._getActiveElem(),r=i?C.trigger(i,Yl,{relatedTarget:t}):null;C.trigger(t,Gl,{relatedTarget:i}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(i,t),this._activate(t,i))}_activate(t,i){t&&(t.classList.add(mt),this._activate(N.getElementFromSelector(t)),this._queueCallback(()=>{t.getAttribute("role")==="tab"?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),C.trigger(t,Ql,{relatedTarget:i})):t.classList.add(uo)},t,t.classList.contains(Ls)))}_deactivate(t,i){t&&(t.classList.remove(mt),t.blur(),this._deactivate(N.getElementFromSelector(t)),this._queueCallback(()=>{t.getAttribute("role")==="tab"?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),C.trigger(t,Kl,{relatedTarget:i})):t.classList.remove(uo)},t,t.classList.contains(Ls)))}_keydown(t){if(![ta,Ds,na,Vs,co,Ms].includes(t.key))return;t.stopPropagation(),t.preventDefault();const i=this._getChildren().filter(a=>!pe(a));let r;if([co,Ms].includes(t.key))r=i[t.key===co?0:i.length-1];else{const a=[Ds,Vs].includes(t.key);r=In(i,t.target,a,!0)}r&&(r.focus({preventScroll:!0}),gt.getOrCreateInstance(r).show())}_getChildren(){return N.find(po,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,i){this._setAttributeIfNotExists(t,"role","tablist");for(const r of i)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const i=this._elemIsActive(t),r=this._getOuterElement(t);t.setAttribute("aria-selected",i),r!==t&&this._setAttributeIfNotExists(r,"role","presentation"),i||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const i=N.getElementFromSelector(t);i&&(this._setAttributeIfNotExists(i,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(i,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,i){const r=this._getOuterElement(t);if(!r.classList.contains("dropdown"))return;const a=(d,g)=>{const y=N.findOne(d,r);y&&y.classList.toggle(g,i)};a(zs,mt),a(".dropdown-menu",uo),r.setAttribute("aria-expanded",i)}_setAttributeIfNotExists(t,i,r){t.hasAttribute(i)||t.setAttribute(i,r)}_elemIsActive(t){return t.classList.contains(mt)}_getInnerElement(t){return t.matches(po)?t:N.findOne(po,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each(function(){const i=gt.getOrCreateInstance(this);if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t]()}})}}C.on(document,Jl,Is,function(s){["A","AREA"].includes(this.tagName)&&s.preventDefault(),pe(this)||gt.getOrCreateInstance(this).show()}),C.on(window,ea,()=>{for(const s of N.find(ia))gt.getOrCreateInstance(s)}),te(gt);const tt=".bs.toast",oa=`mouseover${tt}`,sa=`mouseout${tt}`,ra=`focusin${tt}`,la=`focusout${tt}`,aa=`hide${tt}`,ca=`hidden${tt}`,da=`show${tt}`,ua=`shown${tt}`,Fs="hide",$i="show",Ei="showing",fa={animation:"boolean",autohide:"boolean",delay:"number"},pa={animation:!0,autohide:!0,delay:5e3};class Kn extends me{constructor(t,i){super(t,i),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return pa}static get DefaultType(){return fa}static get NAME(){return"toast"}show(){C.trigger(this._element,da).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Fs),Ye(this._element),this._element.classList.add($i,Ei),this._queueCallback(()=>{this._element.classList.remove(Ei),C.trigger(this._element,ua),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(C.trigger(this._element,aa).defaultPrevented||(this._element.classList.add(Ei),this._queueCallback(()=>{this._element.classList.add(Fs),this._element.classList.remove(Ei,$i),C.trigger(this._element,ca)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove($i),super.dispose()}isShown(){return this._element.classList.contains($i)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,i){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=i;break;case"focusin":case"focusout":this._hasKeyboardInteraction=i}if(i)return void this._clearTimeout();const r=t.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){C.on(this._element,oa,t=>this._onInteraction(t,!0)),C.on(this._element,sa,t=>this._onInteraction(t,!1)),C.on(this._element,ra,t=>this._onInteraction(t,!0)),C.on(this._element,la,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const i=Kn.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0)throw new TypeError(`No method named "${t}"`);i[t](this)}})}}return st(Kn),te(Kn),{Alert:rt,Button:Qe,Carousel:ne,Collapse:Nt,Dropdown:De,Modal:ft,Offcanvas:Ue,Popover:ki,ScrollSpy:Yn,Tab:gt,Toast:Kn,Tooltip:pt}})}(Ai)),Ai.exports}var Oa=Ba();const bo=ka(Oa);function Da(e,o=!0){o?document.getElementById(e)?.scrollIntoView({behavior:"smooth"}):document.getElementById(e)?.scrollIntoView()}let We=null;function Dn(){We?.hide(),We=null}function yo(e,o){Dn();const c=document.getElementById(e);if(c){We=new bo.Modal(c,{backdrop:"static"}),We.value=o,We.id=e,We.show();const p=document.querySelector(`#${e} [autofocus]`);p&&p.focus()}}function Bi(e){return bo.Modal.getInstance(document.getElementById(e))?.value}function Va(e){return We?e?We.id===e&&We._isShown:We._isShown:!1}function or(e,o=0,c=25){return e?.slice(o*c,o*c+c)??[]}function Ma(e="#invalid"){document.querySelector(e)?.focus()}function sr(e,o=[]){for(const p of o)p.valid=!0;document.querySelector(`#${e} [autofocus]`)?.focus()}function rr(e,o){e&&(e.modelValue=o,e.valid=!0)}function _o(e){const o=document.querySelector(`#${e}`);return o?(document.querySelectorAll(`#${e} input, #${e} .form-control`).forEach(c=>{c.focus(),c.blur()}),o.checkValidity()===!1||document.querySelector(`#${e} :invalid, #${e} .invalid`)?(Co(e),!1):!0):(console.error("can't find/validate form",e),!1)}async function lr(e){const o=document.getElementById(e);return o?(document.querySelectorAll(`#${e} input, #${e} .form-control`).forEach(c=>{c.focus(),c.blur()}),document.querySelectorAll(`#${e} .ace_editor`).forEach(c=>{c.click()}),new Promise(c=>setTimeout(()=>{if(o.checkValidity()===!1||document.querySelector(`#${e} :invalid, #${e} .invalid`)){Co(e),c(!1);return}c(!0)}))):(console.error("can't find/validate form",e),Promise.resolve(!1))}function La(e){document.querySelector(`#${e} [autofocus]`)?.focus()}function Co(e){document.querySelector(`#${e} :invalid, #${e} .invalid`)?.focus()}function za(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 ar(e){const o=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),c=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${c} ${o}`}function cr(e,o=!1){const[c,p,b]=[(""+e.getUTCHours()).padStart(2,"0"),(""+e.getUTCMinutes()).padStart(2,"0"),(""+e.getUTCSeconds()).padStart(2,"0")];return o?`${c}:${p}:${b}`:`${c}:${p}`}function Ia(e,o=!1){return`${ar(e)} ${cr(e,o)}`}function Fa(e,o,c=!0,p=!1){let b=o.getTime()-e.getTime();p?b+=1:c?b+=1e3:b+=60*1e3;const v=(""+b%1e3).padStart(3,"0");b=Math.floor(b/1e3);const u=(""+b%60).padStart(2,"0");b=Math.floor(b/60);const S=(""+b%60).padStart(2,"0");b=Math.floor(b/60);const Y=(""+b).padStart(2,"0");return p?`${Y}:${S}:${u}.${v}`:c?`${Y}:${S}:${u}`:`${Y}:${S}`}function xa(e){const o=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e);return`${new Intl.DateTimeFormat("en",{month:"short"}).format(e)} ${o}`}function Oi(e,o=0){return e.toLocaleString("en",{minimumFractionDigits:o})}function Pa(e,o,c=2){switch(o){case"EUR":o="€";break;case"USD":o="$";break}return`${o} ${Oi(e/10**c,c)}`}function ja(e,o){return`${Oi(e)} - ${Oi(o)}`}function dr(e){return`**** **** **** ${e.replace(/ /g,"").substr(-4)}`}function Wa(e,o,c=e.ID_FORM){if(c){if(_o(c)&&!e.submitting)return e.submitting=!0,o().finally(()=>{e.submitting=!1})}else if(!e.submitting)return e.submitting=!0,o().finally(()=>{e.submitting=!1});return Promise.resolve()}function Ra(e,o,c=e.ID_FORM){return e.submitting?Promise.resolve():lr(c).then(p=>{if(p)return e.submitting=!0,o().finally(()=>{e.submitting=!1})})}function Ft(e,o){const c=o.split("."),p=c.shift(),b=e[p];return[void 0,null].includes(b)?b:c.length>0?Ft(b,c.join(".")):b}function ur(e,o,c="ASC",p=!1){if(!e)return[];const b=typeof e=="function"?[...e()]:[...e],v=(u,S)=>u.localeCompare(S,void 0,{ignorePunctuation:!0});return c==="ASC"?b.sort((u,S)=>(u=Ft(u,o)??"",S=Ft(S,o)??"",typeof u=="string"&&typeof S=="string"?p?v(u.toUpperCase(),S.toUpperCase()):v(u,S):u>S?1:u<S?-1:0)):b.sort((u,S)=>(u=Ft(u,o)??"",S=Ft(S,o)??"",typeof u=="string"&&typeof S=="string"?p?v(S.toUpperCase(),u.toUpperCase()):v(S,u):u<S?1:u>S?-1:0))}function fr(e,o=0,c="ASC"){return{col:o,order:c,set:function(p,b){const v=this.sort(p,b);this.col=p,this.order=v},get:function(p){return this.col===p?this.order:"NONE"},sorted:[],sorter:e,sort:function(p=this.col,b=this.order){const{sorted:v,sortedOrder:u}=this.sorter(p,b);return this.sorted=v,u}}}function qa(e,o,c=0,p=()=>0,b=()=>Number.MAX_SAFE_INTEGER){return fr((v,u)=>({sorted:or(ur(e,o[v],u),p(),b()),sortedOrder:u}),c)}function Ha(e,o=500,c="none"){clearTimeout(tr.get(c)),tr.set(c,setTimeout(e,o))}const tr=new Map;function Ua(e=3,o=["lorem","ipsum","dolor","sit","amet","consectetur","adipiscing","elit","eiusmod","tempor","incididunt","labore","et","dolore","magna","aliqua"]){let c="";for(let p=0;p<e;p++)c+=" "+o[Math.floor(Math.random()*o.length)];return c.substr(1)}function Xa(e=3,o=["alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","omicorn"]){const c=[];for(let p=0;p<e;p++)c.push(o[Math.floor(Math.random()*o.length)]);return c}function Ya(e){navigator.clipboard.writeText(e)}function Ka(e,o=[],c=[],p=!0){const b=[];for(const v of o)if(typeof v=="function")b.push(v());else if(v){const u=v.shift();b.push(u(...v))}for(const v of c)if(typeof v=="function")b.push(v(!1));else if(v){const u=v.shift();b.push(u(v.shift(),!1))}return p?(e.loading=Promise.all(b).finally(()=>{p&&(e.loading=null)}),e.loading):Promise.all(b)}function Ga(e,o=[],c=[],p=!0){const b=[];for(const v of o)if(typeof v=="function")b.push(v(!0));else if(v){const u=v.shift();b.push(u(!0,...v))}for(const v of c)if(typeof v=="function")b.push(v(!1));else if(v){const u=v.shift();b.push(u(!1,...v))}return p?(e.loading=Promise.all(b).finally(()=>{p&&(e.loading=null)}),e.loading):Promise.all(b)}function Qa(e){return e}function Ja(e){return e}function Za(e){return e}const ec=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:Dn,abort:function(){this.dirty?yo(this.ID_MODAL,{}):this.$emit("cancel")},emit:function(e){Dn(),this.$emit(e)}}}),tc={key:0},nc={key:1},ic=["disabled"];function oc(e,o,c,p,b,v){const u=n.resolveComponent("cl-modal"),S=n.resolveComponent("cl-section-main");return n.openBlock(),n.createBlock(S,{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 btn-sm cl-btn-outline-text it-cancel",onClick:o[0]||(o[0]=Y=>e.abort())},[o[4]||(o[4]=n.createElementVNode("i",{class:"fas fa-angle-left"},null,-1)),e.dirty?(n.openBlock(),n.createElementBlock("span",tc,n.toDisplayString(e.cancel),1)):(n.openBlock(),n.createElementBlock("span",nc,n.toDisplayString(e.back),1))])),e.hidden?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:1,type:"button",class:n.normalizeClass(["btn btn-sm cl-btn-outline-primary it-ok",{"cl-btn-spinner":e.spinner}]),disabled:e.disabled||!e.dirty,onClick:o[1]||(o[1]=Y=>e.$emit("ok"))},[n.createElementVNode("span",null,n.toDisplayString(e.ok),1),o[5]||(o[5]=n.createElementVNode("i",{class:"fas fa-angle-right"},null,-1))],10,ic))],2),n.createVNode(u,{id:e.ID_MODAL},{title:n.withCtx(()=>o[6]||(o[6]=[n.createTextVNode(" Unsaved changes ",-1)])),body:n.withCtx(()=>[n.renderSlot(e.$slots,"modal",{},()=>[o[7]||(o[7]=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-btn-outline-text it-cancel",onClick:o[2]||(o[2]=Y=>e.emit("cancel",!0))}," Discard changes ")]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:"btn cl-btn-outline-primary it-ok",onClick:o[3]||(o[3]=Y=>e.clModalHide())}," Continue editing ")]),_:3},8,["id"])]),_:3})}const Pt=B(ec,[["render",oc]]);Pt.install=e=>{e.component(Pt.name??"ClNoName",Pt)};const sc=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[o,c]=e.split("=");if(o===this.cookie&&["-mtm","+mtm"].includes(c)){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)}}}),rc=["id"],lc={class:"card-body container"},ac={class:"row"},cc={class:"col-12 col-md-11"},dc={class:"cl-spacing-box text-center"};function uc(e,o,c,p,b,v){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",lc,[n.createElementVNode("div",ac,[o[3]||(o[3]=n.createElementVNode("div",{class:"col-12 col-md-1 d-none d-md-block"},[n.createElementVNode("i",{class:"cl-asset-cookie"})],-1)),n.createElementVNode("div",cc,[n.renderSlot(e.$slots,"default",{},()=>[o[2]||(o[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",dc,[n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-btn-outline-primary it-ok",onClick:o[0]||(o[0]=u=>e.accept())}," Accept "),n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-btn-outline-text it-cancel",onClick:o[1]||(o[1]=u=>e.decline())}," Decline ")])])])])],10,rc)):n.createCommentVNode("",!0)}const jt=B(sc,[["render",uc]]);jt.install=e=>{e.component(jt.name??"ClNoName",jt)};const Mn={mounted(e,o){let c="";for(const b of["cl-tooltip-primary","cl-tooltip-secondary","cl-tooltip-light","cl-tooltip-dark"])e.classList.contains(b)&&(c+=` ${b}`);const p=new bo.Tooltip(e,{title:o.value,placement:o.arg,html:!0,trigger:"hover",delay:{show:65,hide:0},template:`<div class="tooltip cl-tooltip${c}" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>`});return e.__tooltipInstance=p,e.addEventListener("show.bs.tooltip",function(){document.querySelectorAll(".cl-tooltip").forEach(v=>v.remove())}),p},unmounted(e){const o=e.__tooltipInstance;if(o){typeof o.dispose=="function"&&o.dispose();const c=document.querySelector(".cl-tooltip");c&&c.remove(),delete e.__tooltipInstance}}},ko={mounted(e,o){e.addEventListener("click",function(){const c=typeof o.value=="function"?o.value():o.value;o.value!==""&&navigator.clipboard?.writeText(c),e.classList.add("cl-animation-flash-text"),setTimeout(()=>{e.classList.remove("cl-animation-flash-text")},1500)})}},fc=n.defineComponent({name:"ClCopy",directives:{tooltip:Mn,clipboard:ko},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()}}}),pc={key:0,ref:"content",class:"cl-copy"},hc={ref:"content"};function mc(e,o,c,p,b,v){const u=n.resolveDirective("tooltip"),S=n.resolveDirective("clipboard");return e.unstyled?n.withDirectives((n.openBlock(),n.createElementBlock("span",pc,[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))])),[[u,e.tooltip,"top"],[S,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",hc,[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)),[[u,e.tooltip,"top"],[S,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)),[[u,e.tooltip,"top"],[S,e.contentToCopy]])}const Wt=B(fc,[["render",mc]]);Wt.install=e=>{e.component(Wt.name??"ClNoName",Wt)};const gc=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:dr}}),vc=["id"];function bc(e,o,c,p,b,v){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,vc),n.createTextVNode(", "+n.toDisplayString(e.validText)+" ",1),n.createElementVNode("code",null,n.toDisplayString(e.expires),1)],64)}const Rt=B(gc,[["render",bc]]);Rt.install=e=>{e.component(Rt.name??"ClNoName",Rt)};function nr(e){e.preventDefault()}const yc=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}},emits:["file","content"],data(){return{$uid:0,dragging:!1}},mounted(){["dragenter","dragover","dragleave","drop"].forEach(e=>{document.body.addEventListener(e,nr)})},unmounted(){["dragenter","dragover","dragleave","drop"].forEach(e=>{document.body.removeEventListener(e,nr)})},methods:{browse:function(){const e=document.getElementById(`cl-dropzone-file-${this.$uid}`);if(e&&document.createEvent){const o=document.createEvent("MouseEvents");o.initEvent("click",!0,!1),e.dispatchEvent(o)}},browsed:function(){const o=document.getElementById(`cl-dropzone-file-${this.$uid}`).files??[];o.length>0&&this.loadFile(o[0])},mock:function(e){this.$emit("file",e)},loadFile:function(e){const o=new FileReader,c=this.$emit;c("file",e),o.onload=function(p){c("content",p.target?.result)},o.readAsText(e)},onDrop:function(e){e.dataTransfer&&this.loadFile(e.dataTransfer.files[0]),this.dragging=!1},onDrag:function(e){this.dragging=e}}}),_c=["id"],Cc=["id","accept"];function kc(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["cl-spacing-small",e.dragging?"cl-dragging":""]),onDragover:o[6]||(o[6]=u=>e.onDrag(!0)),onDragleave:o[7]||(o[7]=u=>e.onDrag(!1)),onDrop:o[8]||(o[8]=n.withModifiers((...u)=>e.onDrop&&e.onDrop(...u),["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:o[0]||(o[0]=(...u)=>e.browsed&&e.browsed(...u))},null,40,_c)):n.createCommentVNode("",!0),n.createElementVNode("input",{id:`cl-dropzone-file-${e.$uid}`,type:"file",accept:e.accept,class:"cl-dropzone-file",onChange:o[1]||(o[1]=(...u)=>e.browsed&&e.browsed(...u))},null,40,Cc),e.camera?(n.openBlock(),n.createElementBlock("div",{key:1,class:"cl-dropzone",onClick:o[3]||(o[3]=u=>e.browse())},[o[9]||(o[9]=n.createElementVNode("i",{class:"fas fa-camera"},null,-1)),o[10]||(o[10]=n.createTextVNode("Use your ",-1)),n.createElementVNode("a",{href:"#",onClick:o[2]||(o[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:o[5]||(o[5]=u=>e.browse())},[o[11]||(o[11]=n.createElementVNode("i",{class:"fas fa-file-upload"},null,-1)),o[12]||(o[12]=n.createTextVNode("Drop or ",-1)),n.createElementVNode("a",{href:"#",onClick:o[4]||(o[4]=n.withModifiers(()=>{},["prevent"]))},"browse"),n.createTextVNode(" "+n.toDisplayString(e.what)+" "+n.toDisplayString(e.why)+". ",1)])),n.renderSlot(e.$slots,"default")],34)}const qt=B(yc,[["render",kc]]);qt.install=e=>{e.component(qt.name??"ClNoName",qt)};const $c=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.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)},validateText:function(){const e=Number(this.minlength),o=Number(this.maxlength);this.minlength&&(this.modelValue?.length??0)<e&&this.setInvalid(this.error??`Please enter at least ${e} character`+(e>1?"s.":".")),this.maxlength&&(this.modelValue?.length??0)>o&&this.setInvalid(this.error??`Please enter at most ${o} character`+(e>1?"s.":".")),this.pattern&&!new RegExp(this.pattern,"g").test(this.modelValue)&&this.setInvalid(this.error)},validateNumber:function(){const e=this.modelValue.trim();if(!/^-?[0-9]*$/.test(e.trim())){this.setInvalid("Please enter a number.");return}const o=parseInt(e.trim());if(o.toString()!==e){this.setInvalid("Please enter a number.");return}this.min!==void 0&&this.max!==void 0?(o<parseInt(this.min)||o>parseInt(this.max))&&this.setInvalid(`Please enter a number between ${this.min} and ${this.max}.`):this.min!==void 0?o<parseInt(this.min)&&this.setInvalid(`Please enter a number >= ${this.min}.`):this.max!==void 0&&o>parseInt(this.max)&&this.setInvalid(`Please enter a number <= ${this.max}.`)},validateEMail:function(){/^[^\s@]+@[^\s@]+\.[^\s@]+[^\s@.]$/.test(this.modelValue)||this.setInvalid("Please enter a valid email address.")},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)}}}),Ec=["for"],wc={key:0,class:"required"},Sc=["id","autofocus","disabled","maxlength","minlength","placeholder","required"],Nc=["id","autofocus","disabled","required"],Tc=["id","autofocus","disabled","min","max","maxlength","minlength","pattern","placeholder","required","type"],Ac=["id","for"],Bc={key:1,class:"valid-feedback valid-feedback-none"};function Oc(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.label?(n.openBlock(),n.createElementBlock("label",{key:0,for:e.$uid,class:n.normalizeClass(["form-label",{disabled:e.disabled}])},[n.createTextVNode(n.toDisplayString(e.label),1),e.required?(n.openBlock(),n.createElementBlock("span",wc,"*")):n.createCommentVNode("",!0)],10,Ec)):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":o[0]||(o[0]=u=>e.modelValue=u),autofocus:e.autofocus,class:e.clazz,disabled:e.disabled,maxlength:e.maxlength,minlength:e.minlength,placeholder:e.placeholder,required:e.required,onBlur:o[1]||(o[1]=u=>e.validate(!0)),onChange:o[2]||(o[2]=u=>e.validate()),onInput:o[3]||(o[3]=u=>e.validate())}),null,16,Sc)),[[n.vModelText,e.modelValue]]):e.type==="select"?n.withDirectives((n.openBlock(),n.createElementBlock("select",n.mergeProps({key:2,id:e.$uid,"onUpdate:modelValue":o[4]||(o[4]=u=>e.modelValue=u),class:["form-select",e.clazz],autofocus:e.autofocus,disabled:e.disabled,required:e.required},e.$attrs,{onBlur:o[5]||(o[5]=u=>e.validate(!0)),onChange:o[6]||(o[6]=u=>e.validate())}),[n.renderSlot(e.$slots,"default")],16,Nc)),[[n.vModelSelect,e.modelValue]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",n.mergeProps({key:3,id:e.$uid},e.$attrs,{ref:"input","onUpdate:modelValue":o[7]||(o[7]=u=>e.modelValue=u),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:o[8]||(o[8]=u=>e.validate(!0)),onChange:o[9]||(o[9]=u=>e.validate()),onInput:o[10]||(o[10]=u=>e.validate())}),null,16,Tc)),[[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,Ac)):n.createCommentVNode("",!0),e.nofeedback?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:5},[n.createElementVNode("p",{class:n.normalizeClass(["invalid-feedback",{disabled:e.disabled}])},n.toDisplayString(e.invalidMessage),3),e.help?(n.openBlock(),n.createElementBlock("p",{key:0,class:n.normalizeClass(["valid-feedback",{disabled:e.disabled}])},n.toDisplayString(e.help),3)):(n.openBlock(),n.createElementBlock("p",Bc))],64))],64)}const Ht=B($c,[["render",Oc]]);Ht.install=e=>{e.component(Ht.name??"ClNoName",Ht)};const Dc=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()})}}}),Vc=["id","disabled","indeterminate","autofocus"],Mc=["for"];function Lc(e,o,c,p,b,v){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":o[0]||(o[0]=u=>e.modelValue=u),class:"form-check-input",type:"checkbox",disabled:e.disabled,indeterminate:e.indeterminate,autofocus:e.autofocus},e.$attrs,{onChange:o[1]||(o[1]=u=>e.$emit("update:modelValue",e.modelValue))}),null,16,Vc),[[n.vModelCheckbox,e.modelValue]]),n.createElementVNode("label",{class:"form-check-label",for:e.id??e.$uid},[n.renderSlot(e.$slots,"default")],8,Mc)],2)}const Ut=B(Dc,[["render",Lc]]);Ut.install=e=>{e.component(Ut.name??"ClNoName",Ut)};const zc=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."}}}),Ic={key:0,class:"form-label"},Fc={key:0,class:"required"},xc=["id"],Pc={class:"invalid-feedback"},jc={key:1,class:"valid-feedback"};function Wc(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.label?(n.openBlock(),n.createElementBlock("label",Ic,[n.createTextVNode(n.toDisplayString(e.label),1),e.required?(n.openBlock(),n.createElementBlock("span",Fc,"*")):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,xc),n.createElementVNode("p",Pc,n.toDisplayString(e.invalidMessage),1),e.help?(n.openBlock(),n.createElementBlock("p",jc,n.toDisplayString(e.help),1)):n.createCommentVNode("",!0)],64)}const Xt=B(zc,[["render",Wc]]);Xt.install=e=>{e.component(Xt.name??"ClNoName",Xt)};const Rc=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="";return!this.primary&&!this.secondary?e+="cl-hashtag-dark":this.primary?e+="cl-hashtag-primary":this.secondary&&(e+="cl-hashtag-secondary"),e+(this.class?` ${this.class}`:"")}}}),qc={key:0,class:"cl-hashtag-derived"},Hc=["id"];function Uc(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.derived?(n.openBlock(),n.createElementBlock("span",qc)):n.createCommentVNode("",!0),n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,Hc)],64)}const Yt=B(Rc,[["render",Uc]]);Yt.install=e=>{e.component(Yt.name??"ClNoName",Yt)};const Xc=n.defineComponent({name:"ClIconotron",props:{src:{type:String,default:void 0}}}),Yc={class:"container cl-container-iconotron"},Kc={class:"row"},Gc={class:"col-12 col-md-3"},Qc=["src"],Jc={class:"col-12 col-md-9"};function Zc(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("div",Yc,[n.createElementVNode("div",Kc,[n.createElementVNode("div",Gc,[n.createElementVNode("img",{src:e.src,alt:""},null,8,Qc)]),n.createElementVNode("div",Jc,[n.renderSlot(e.$slots,"default")])])])}const Kt=B(Xc,[["render",Zc]]);Kt.install=e=>{e.component(Kt.name??"ClNoName",Kt)};const ed=n.defineComponent({name:"ClInfo",directives:{tooltip:Mn},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 td(e,o,c,p,b,v){const u=n.resolveDirective("tooltip");return e.bottom?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(e.classes)},null,2)),[[u,e.info,"bottom"]]):e.left?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(e.classes)},null,2)),[[u,e.info,"left"]]):e.right?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(e.classes)},null,2)),[[u,e.info,"right"]]):n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:3,class:n.normalizeClass(e.classes)},null,2)),[[u,e.info,"top"]])}const Gt=B(ed,[["render",td]]);Gt.install=e=>{e.component(Gt.name??"ClNoName",Gt)};const nd=n.defineComponent({name:"ClLinkExternal",props:{noicon:{type:Boolean,default:!1}}});function id(e,o,c,p,b,v){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 Qt=B(nd,[["render",id]]);Qt.install=e=>{e.component(Qt.name??"ClNoName",Qt)};const od=`
|
|
6
6
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
|
|
7
7
|
incididunt ut labore et dolore magna aliqua. Sed ullamcorper morbi tincidunt
|
|
8
8
|
ornare massa eget egestas purus viverra. Faucibus in ornare quam viverra orci
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
Congue eu consequat ac felis donec. Aliquam etiam erat velit scelerisque in
|
|
27
27
|
dictum non. Dis parturient montes nascetur ridiculus mus mauris vitae ultricies.
|
|
28
28
|
Morbi quis commodo odio aenean sed adipiscing diam donec adipiscing. Sit amet
|
|
29
|
-
justo donec enim diam.`,rd=n.defineComponent({name:"ClLorem",props:{words:{type:Number,default:10},paragraphs:{type:Number,default:0}},methods:{lorem(e){return((e%2?sd:od).trim().replace(/\s+/g," ").split(" ").splice(0,this.words).join(" ")+".").replace(/\.+/g,".")}}});function ld(e,s,c,p,b,v){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),u=>(n.openBlock(),n.createElementBlock("p",{key:u},n.toDisplayString(e.lorem(u)),1))),128))}const Qt=B(rd,[["render",ld]]);Qt.install=e=>{e.component(Qt.name??"ClNoName",Qt)};const ad=n.defineComponent({name:"ClMailto",props:{to:{type:String,default:"office@castlabs.com"}}}),cd=["href"];function dd(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("a",{class:"cl-a-email",href:`mailto:${e.to}`},n.toDisplayString(e.to),9,cd)}const Jt=B(ad,[["render",dd]]);Jt.install=e=>{e.component(Jt.name??"ClNoName",Jt)};const ud=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)}}}),fd=["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 pd(e,s,c,p,b,v){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:s[0]||(s[0]=u=>e.push())},[n.renderSlot(e.$slots,"default")],10,fd)}const Kn=B(ud,[["render",pd]]);Kn.install=e=>{e.component(Kn.name??"ClNoName",Kn)};const hd=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||""),s=this;e&&(e.addEventListener("hidden.bs.modal",function(){s.onClose&&s.onClose()}),e.addEventListener("show.bs.modal",function(){s.onOpen&&s.onOpen()}))}}),md=["id"],gd={class:"modal-dialog"},vd={class:"modal-content"},bd={class:"modal-header"},yd=["href"],_d=["id"],Cd={key:1,class:"modal-body"},kd={class:"modal-footer"},$d={class:"modal-footer-left cl-spacing-box cl-spacing-none"},Ed={class:"modal-footer-center cl-spacing-box cl-spacing-none"},wd={class:"modal-footer-right cl-spacing-box cl-spacing-none"};function Sd(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("div",{id:e.id,class:n.normalizeClass(`modal ${e.clazz}`),tabindex:"-1","data-bs-backdrop":"static"},[n.createElementVNode("div",gd,[n.createElementVNode("div",vd,[n.createElementVNode("div",bd,[n.renderSlot(e.$slots,"title",{},()=>[s[1]||(s[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."},s[2]||(s[2]=[n.createElementVNode("i",{class:"far fa-question-circle"},null,-1)]),8,yd)):n.createCommentVNode("",!0)]),e.form?(n.openBlock(),n.createElementBlock("form",{key:0,id:`${e.id}-form`,class:"modal-body cl-form container",novalidate:"",onSubmit:s[0]||(s[0]=n.withModifiers(()=>{},["prevent"]))},[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")],40,_d)):(n.openBlock(),n.createElementBlock("div",Cd,[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")])),n.createElementVNode("div",kd,[n.createElementVNode("span",$d,[n.renderSlot(e.$slots,"footer-left")]),n.createElementVNode("span",Ed,[n.renderSlot(e.$slots,"footer")]),n.createElementVNode("span",wd,[n.renderSlot(e.$slots,"footer-right")])])])])],10,md)}const Zt=B(hd,[["render",Sd]]);Zt.install=e=>{e.component(Zt.name??"ClNoName",Zt)};const Nd=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}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},emits:["ok"],methods:{reset:function(){rr(this.$refs.text,""),sr(`${this.id}-form`)},submit:function(){Co(`${this.id}-form`)&&this.$emit("ok")}}});function Td(e,s,c,p,b,v){const u=n.resolveComponent("cl-field"),S=n.resolveComponent("cl-modal");return n.openBlock(),n.createBlock(S,{id:e.id,class:n.normalizeClass(e.clazz),form:"","on-open":e.reset},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),body:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.createElementVNode("p",null,[s[2]||(s[2]=n.createTextVNode(" To confirm your intention, please type ",-1)),n.createElementVNode("code",null,n.toDisplayString(e.text),1),s[3]||(s[3]=n.createTextVNode(" into this text field: ",-1))]),n.createVNode(u,{ref:"text",type:"text",required:"",pattern:`^${e.text}$`,class:"text-center cl-field-monospace it-confirm",autofocus:"",onKeyup:s[0]||(s[0]=n.withKeys(Y=>e.submit(),["enter"]))},null,8,["pattern"])]),"footer-left":n.withCtx(()=>s[4]||(s[4]=[n.createElementVNode("button",{type:"button",class:"btn cl-btn-outline-text it-cancel","data-bs-dismiss":"modal"},[n.createElementVNode("i",{class:"fas fa-angle-left"}),n.createElementVNode("span",null,"Cancel")],-1)])),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:n.normalizeClass(["btn cl-btn-primary it-ok",{"cl-btn-spinner":e.spinner}]),onClick:s[1]||(s[1]=Y=>e.submit())},[n.createElementVNode("span",null,n.toDisplayString(e.ok??e.button),1),s[5]||(s[5]=n.createElementVNode("i",{class:"fas fa-angle-right"},null,-1))],2)]),_:3},8,["id","class","on-open"])}const en=B(Nd,[["render",Td]]);en.install=e=>{e.component(en.name??"ClNoName",en)};const Ad=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},angles:{type:Boolean,default:!0},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,On(),this.$emit("ok",Bi(this.id))},buttonCancel:function(){this.emitted=!0,On(),this.$emit("cancel",Bi(this.id))},opened:function(){this.emitted=!1,this.onOpen&&this.onOpen()},closed:function(){this.emitted||this.$emit("cancel",Bi(this.id)),this.onClose&&this.onClose()}}}),Bd={key:0,class:"fas fa-angle-left"},Od={key:0,class:"fas fa-angle-right"};function Dd(e,s,c,p,b,v){const u=n.resolveComponent("cl-modal");return n.openBlock(),n.createBlock(u,{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-btn-outline-text it-cancel",onClick:s[0]||(s[0]=(...S)=>e.buttonCancel&&e.buttonCancel(...S))},[e.angles?(n.openBlock(),n.createElementBlock("i",Bd)):n.createCommentVNode("",!0),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 it-ok",{"cl-btn-outline-primary":e.angles,"cl-btn-outline-text":!e.angles,"cl-btn-spinner":e.spinner}]),onClick:s[1]||(s[1]=(...S)=>e.buttonOk&&e.buttonOk(...S))},[n.createElementVNode("span",null,n.toDisplayString(e.ok??e.button),1),e.angles?(n.openBlock(),n.createElementBlock("i",Od)):n.createCommentVNode("",!0)],2)]),_:3},8,["id","class","form","on-open","on-close"])}const tn=B(Ad,[["render",Dd]]);tn.install=e=>{e.component(tn.name??"ClNoName",tn)};function pr(){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(s){s.ignore?.()}}else{e.parentNode.classList.remove("cl-nav-side-open");try{localStorage.setItem("sidenavOpen","false")}catch(s){s.ignore?.()}}}function Vd(){ir(Md()),document.querySelectorAll(".cl-nav-drawer a").forEach(e=>{e.addEventListener("click",()=>{if(hr()){ir(!1);try{localStorage.setItem("sidenavOpen","false")}catch(s){s.ignore?.()}}})}),document.getElementById("cl-nav-side")?.addEventListener("change",function(){pr()}),document.querySelectorAll(".cl-nav-drawer details[id]").forEach(e=>{e.addEventListener("toggle",s=>{try{localStorage.setItem(`cl-nav-${e.id}`,s.target.hasAttribute("open"))}catch(c){c.ignore?.()}});try{localStorage.getItem(`cl-nav-${e.id}`)==="true"&&(e.open=!0)}catch(s){s.ignore?.()}}),setTimeout(function(){document.querySelectorAll("body").forEach(e=>{e.classList.add("cl-animate")})},1e3)}function ir(e){const s=document.getElementById("cl-nav-side");s&&(s.checked=e)}function hr(){return Math.max(document?.documentElement?.clientWidth||0,window?.innerWidth||0)<1200}function Md(){const e=localStorage.getItem("sidenavOpen");return e==null?!hr():JSON.parse(e)}const Ld=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(){pr()},setup:function(){this.$nextTick(()=>{Vd()})}}}),zd={class:"cl-nav-side"},Id={class:"cl-nav-drawer"},Fd={"data-simplebar":""};function xd(e,s,c,p,b,v){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:s[0]||(s[0]=(...u)=>e.toggle&&e.toggle(...u))},null,34),n.createElementVNode("nav",zd,[s[1]||(s[1]=n.createElementVNode("label",{class:"cl-nav-backdrop",for:"cl-nav-side"},null,-1)),n.createElementVNode("div",Id,[n.createElementVNode("div",Fd,[n.renderSlot(e.$slots,"default")])])])],64)}const nn=B(Ld,[["render",xd]]);nn.install=e=>{e.component(nn.name??"ClNoName",nn)};const Pd=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"}}}),jd={class:"row"},Wd={class:"col-12 cl-grid-flex-centered"};function Rd(e,s,c,p,b,v){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",jd,[n.createElementVNode("div",Wd,[s[0]||(s[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 on=B(Pd,[["render",Rd]]);on.install=e=>{e.component(on.name??"ClNoName",on)};const qd=n.defineComponent({name:"ClOrg",props:{name:{type:String,default:"No organization"}}}),Hd={class:"cl-org"};function Ud(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("span",Hd,[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")])}const sn=B(qd,[["render",Ud]]);sn.install=e=>{e.component(sn.name??"ClNoName",sn)};const Xd=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}`:""}},methods:{back(){history.go(-1)}}}),Yd={key:0,class:"cl-page-spinner"};function Kd(e,s,c,p,b,v){const u=n.resolveComponent("cl-section-headline"),S=n.resolveComponent("cl-spinner"),Y=n.resolveComponent("cl-section-main");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(u,{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",Yd,[n.createVNode(S)])):e.notFound?n.renderSlot(e.$slots,"notFound",{key:1},()=>[n.createVNode(Y,{fluid:e.$route.meta?.fluid},{default:n.withCtx(()=>[s[2]||(s[2]=n.createElementVNode("p",{class:"cl-p-large"},"Hmm, it seems we can't find what you're looking for.",-1)),s[3]||(s[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 btn-sm cl-btn-outline-text cl-spacing-large",onClick:s[0]||(s[0]=(...ve)=>e.back&&e.back(...ve))},s[1]||(s[1]=[n.createElementVNode("i",{class:"fas fa-angle-left"},null,-1),n.createElementVNode("span",null,"Back",-1)]))]),_:1,__:[2,3]},8,["fluid"])]):n.renderSlot(e.$slots,"default",{key:2})],64)}const rn=B(Xd,[["render",Kd]]);rn.install=e=>{e.component(rn.name??"ClNoName",rn)};function Gd(e,s,c,p){const b=[],v=Math.ceil(e/s);c<1&&(c=1),c>v&&(c=v);for(let u=1;u<=v;u++)(u>=c-p&&u<=c+p||u===1||u===v)&&b.push(u);return{previous:c>1?c-1:null,next:c<v?c+1:null,current:c,pages:b}}const Qd=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}},emits:["page"],computed:{pager:function(){return Gd(this.items,this.pagesize,this.current,this.window)}}}),Jd={key:0,class:"col-12 text-center cl-spacing-medium"},Zd={class:"pagination"},eu={key:0,class:"page-item"},tu={key:1,class:"page-item disabled"},nu={key:0,class:"page-item disabled"},iu=["onClick"],ou={key:2,class:"page-item"},su={key:3,class:"page-item disabled"};function ru(e,s,c,p,b,v){return e.pager?.pages?.length>1?(n.openBlock(),n.createElementBlock("nav",Jd,[n.createElementVNode("ul",Zd,[e.pager.previous?(n.openBlock(),n.createElementBlock("li",eu,[n.createElementVNode("button",{type:"button",class:"page-link",onClick:s[0]||(s[0]=u=>e.$emit("page",e.pager.previous))},"Prev")])):(n.openBlock(),n.createElementBlock("li",tu,"Prev")),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.pager.pages,(u,S)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:u},[S>0&&e.pager.pages[S-1]!==u-1?(n.openBlock(),n.createElementBlock("li",nu," ... ")):n.createCommentVNode("",!0),n.createElementVNode("li",{class:n.normalizeClass(["page-item",{active:u===e.pager.current}])},[n.createElementVNode("button",{class:"page-link",onClick:Y=>e.$emit("page",u)},n.toDisplayString(u),9,iu)],2)],64))),128)),e.pager.next?(n.openBlock(),n.createElementBlock("li",ou,[n.createElementVNode("button",{type:"button",class:"page-link",onClick:s[1]||(s[1]=u=>e.$emit("page",e.pager.next))},"Next")])):(n.openBlock(),n.createElementBlock("li",su,"Next"))])])):n.createCommentVNode("",!0)}const ln=B(Qd,[["render",ru]]);ln.install=e=>{e.component(ln.name??"ClNoName",ln)};const lu=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="";return!this.primary&&!this.secondary?e+="cl-plan-dark":this.primary?e+="cl-plan-primary":this.secondary&&(e+="cl-plan-secondary"),e+(this.class?` ${this.class}`:"")}}}),au={key:0,class:"cl-plan-derived"},cu=["id"];function du(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.derived?(n.openBlock(),n.createElementBlock("span",au)):n.createCommentVNode("",!0),n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,cu)],64)}const an=B(lu,[["render",du]]);an.install=e=>{e.component(an.name??"ClNoName",an)};const uu=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="";return!this.primary&&!this.secondary?e+="cl-role-dark":this.primary?e+="cl-role-primary":this.secondary&&(e+="cl-role-secondary"),e+(this.class?` ${this.class}`:"")}}}),fu={key:0,class:"cl-role-derived"},pu=["id"];function hu(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.derived?(n.openBlock(),n.createElementBlock("span",fu)):n.createCommentVNode("",!0),n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,pu)],64)}const cn=B(uu,[["render",hu]]);cn.install=e=>{e.component(cn.name??"ClNoName",cn)};const mu=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"}}}),gu={class:"cl-section-form cl-section-alternate"},vu=["id"],bu=["disabled"],yu={key:1,class:"col-12"};function _u(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("section",gu,[n.createElementVNode("form",{id:e.id,novalidate:"",class:n.normalizeClass(e.containerClass),onSubmit:s[0]||(s[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",yu,[n.renderSlot(e.$slots,"default")]))],8,bu)],42,vu)])}const dn=B(mu,[["render",_u]]);dn.install=e=>{e.component(dn.name??"ClNoName",dn)};const Cu=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"}}}),ku={class:"cl-section-primary cl-section-headline"},$u={class:"row"},Eu={class:"col-12"},wu={key:0},Su=["href"];function Nu(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("section",ku,[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",$u,[n.createElementVNode("div",Eu,[e.title?(n.openBlock(),n.createElementBlock("h1",wu,[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"},s[0]||(s[0]=[n.createElementVNode("i",{class:"fas fa-question-circle"},null,-1)]),8,Su)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"default")])])],2)])}const un=B(Cu,[["render",Nu]]);un.install=e=>{e.component(un.name??"ClNoName",un)};const Tu=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-regular"},containerClass:function(){return this.isFluid?"container-fluid":"container"}}}),Au={class:"row"},Bu={key:1,class:"col-12"};function Ou(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("section",{class:n.normalizeClass(e.sectionClass)},[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",Au,[e.noCol?n.renderSlot(e.$slots,"default",{key:0}):(n.openBlock(),n.createElementBlock("div",Bu,[n.renderSlot(e.$slots,"default")]))])],2)],2)}const yt=B(Tu,[["render",Ou]]);yt.install=e=>{e.component(yt.name??"ClNoName",yt)};const Du=n.defineComponent({name:"ClSectionMainSide",components:{ClSectionMain:yt},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":"cl-section-regular")}}});function Vu(e,s,c,p,b,v){const u=n.resolveComponent("cl-section-main");return n.openBlock(),n.createBlock(u,{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 fn=B(Du,[["render",Vu]]);fn.install=e=>{e.component(fn.name??"ClNoName",fn)};const Mu=n.defineComponent({name:"ClSpinner",props:{title:{type:String,default:"Loading ..."}}}),Lu={class:"cl-spinner"};function zu(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("div",Lu,[n.createTextVNode(n.toDisplayString(e.title),1),s[0]||(s[0]=n.createElementVNode("i",{class:"fas fa-spinner fa-spin"},null,-1))])}const pn=B(Mu,[["render",zu]]);pn.install=e=>{e.component(pn.name??"ClNoName",pn)};function Iu(e){document.querySelectorAll(`#${e} .cl-resizer`).forEach(s=>{Fu(s)})}let Gn=0,Dn=null;function Fu(e){Gn=0,Dn=null,e.addEventListener("mousedown",xu),document.addEventListener("mousemove",Pu),document.addEventListener("mouseup",ju)}const xu=e=>{e.preventDefault(),Dn=e.target?e.target.parentElement:null,Gn=e.pageX},Pu=e=>{if(Dn!==null){e.preventDefault();const s=e.pageX-Gn;Gn=e.pageX;const c=Wu(Dn),p=e.target?.closest("table")?.id??"unknown";!!document.querySelector(`#${p}.cl-table-nowrap`)?document.querySelectorAll(`#${p} tr th:nth-child(${c-1})`).forEach(v=>{const u=(v.style.maxWidth===""?v.offsetWidth:parseInt(v.style.maxWidth))+s;v.style.width=(u>32?u:32)+"px",v.style.maxWidth=(u>32?u:32)+"px"}):(document.querySelectorAll(`#${p} tr td:nth-child(${c-1})`).forEach(v=>{const u=v.offsetWidth+s;v.style.width=(u>32?u:32)+"px"}),document.querySelectorAll(`#${p} tr td:nth-child(${c})`).forEach(v=>{const u=v.offsetWidth-s;v.style.width=(u>32?u:32)+"px"}))}},ju=e=>{Dn!==null&&(e.preventDefault(),Gn=0,Dn=null)};function Wu(e){let s=0;for(;e;)s++,e=e.previousElementSibling;return s}const Ru=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 s=1;s<=this.show.length;s++)this.show[s-1]||(e+=` cl-table-col-${s}-hide`);return e}},watch:{rows:function(){this.setupResizer()}},mounted(){this.setupResizer()},methods:{setupResizer:function(){this.$nextTick(()=>{Iu(this.$uid)})}}}),qu=["id"],Hu=["id"],Uu={key:0},Xu={key:1},Yu={class:"cl-tr-no-data"},Ku={colspan:"100"},Gu={key:2},Qu={class:"cl-tr-no-data"},Ju={colspan:"100"},Zu={key:3};function ef(e,s,c,p,b,v){const u=n.resolveComponent("cl-spinner"),S=n.resolveComponent("cl-field-check"),Y=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",Uu,[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")])):e.rows===0?(n.openBlock(),n.createElementBlock("tbody",Xu,[n.createElementVNode("tr",Yu,[n.createElementVNode("td",Ku,n.toDisplayString(e.noDataText),1)])])):(n.openBlock(),n.createElementBlock("tbody",Gu,[n.createElementVNode("tr",Qu,[n.createElementVNode("td",Ju,[n.createVNode(u)])])])),e.$slots.footer?(n.openBlock(),n.createElementBlock("tfoot",Zu,[n.createElementVNode("tr",null,[n.renderSlot(e.$slots,"footer")])])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"tfoot")],10,Hu)],8,qu),e.hideCols?(n.openBlock(),n.createBlock(Y,{key:0,id:e.$uid+"-settings",title:"Configure table"},{default:n.withCtx(()=>[s[0]||(s[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,(ve,pe)=>(n.openBlock(),n.createBlock(S,{key:ve,value:e.show[pe],modelValue:e.show[pe],"onUpdate:modelValue":_t=>e.show[pe]=_t},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(ve),1)]),_:2},1032,["value","modelValue","onUpdate:modelValue"]))),128))]),_:1,__:[0]},8,["id"])):n.createCommentVNode("",!0)],64)}const hn=B(Ru,[["render",ef]]);hn.install=e=>{e.component(hn.name??"ClNoName",hn)};const tf=n.defineComponent({name:"ClTableCel",props:{condensed:{type:Boolean,default:!1}}});function nf(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("td",{class:n.normalizeClass(e.condensed?"cl-font-condensed":"")},[n.renderSlot(e.$slots,"default")],2)}const mn=B(tf,[["render",nf]]);mn.install=e=>{e.component(mn.name??"ClNoName",mn)};const of=n.defineComponent({name:"ClTableCelActions",props:{content:{type:String,default:""}}}),sf={class:"cl-td-actions"};function rf(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("td",sf,[n.createTextVNode(n.toDisplayString(e.content),1),n.renderSlot(e.$slots,"default")])}const gn=B(of,[["render",rf]]);gn.install=e=>{e.component(gn.name??"ClNoName",gn)};const lf=n.defineComponent({name:"ClTableCelAudit",directives:{tooltip:Vn},props:{value:{type:String,default:"???"}}}),af={class:"cl-td-audit"},cf={class:"fas fa-info-circle"};function df(e,s,c,p,b,v){const u=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("td",af,[n.withDirectives(n.createElementVNode("i",cf,null,512),[[u,e.value,"left"]])])}const vn=B(lf,[["render",df]]);vn.install=e=>{e.component(vn.name??"ClNoName",vn)};const uf=n.defineComponent({name:"ClTableCelBoolean",props:{value:{type:Boolean,default:!1}}}),ff={class:"cl-td-boolean"};function pf(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("td",ff,[n.createElementVNode("i",{class:n.normalizeClass(`fas ${e.value?"fa-check":"fa-minus"}`)},null,2)])}const bn=B(uf,[["render",pf]]);bn.install=e=>{e.component(bn.name??"ClNoName",bn)};const hf=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)}}}),mf={class:"cl-td-checkbox"},gf={class:"form-check text-center"},vf=["id","disabled"];function bf(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("td",mf,[n.createElementVNode("div",gf,[n.withDirectives(n.createElementVNode("input",{id:e.id??e.$uid,"onUpdate:modelValue":s[0]||(s[0]=u=>e.modelValue=u),class:"form-check-input",type:"checkbox",disabled:e.disabled,onChange:s[1]||(s[1]=u=>e.emitAll())},null,40,vf),[[n.vModelCheckbox,e.modelValue]])])])}const yn=B(hf,[["render",bf]]);yn.install=e=>{e.component(yn.name??"ClNoName",yn)};const yf=n.defineComponent({name:"ClTableCelCode"}),_f={class:"cl-td-code"};function Cf(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("td",_f,[n.renderSlot(e.$slots,"default")])}const _n=B(yf,[["render",Cf]]);_n.install=e=>{e.component(_n.name??"ClNoName",_n)};const kf=n.defineComponent({name:"ClTableCelCurrency",props:{amount:{type:Number,default:0},currency:{type:String,default:"EUR"}}}),$f={class:"cl-td-currency"};function Ef(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("td",$f,n.toDisplayString(e.currency)+" "+n.toDisplayString(e.amount),1)}const Cn=B(kf,[["render",Ef]]);Cn.install=e=>{e.component(Cn.name??"ClNoName",Cn)};const wf=n.defineComponent({name:"ClTableCelDate",props:{value:{type:String,default:void 0}},computed:{content:function(){if(this.value){const e=new Date(this.value),s=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),c=new Intl.DateTimeFormat("en",{month:"2-digit"}).format(e),p=new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e),b=new Intl.DateTimeFormat("en",{hour:"2-digit",hour12:!1}).format(e),v=new Intl.DateTimeFormat("en",{minute:"2-digit"}).format(e);return`${s}-${c}-${p} ${b}:${v}`}return"-"}}}),Sf={class:"cl-td-date"};function Nf(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("td",Sf,n.toDisplayString(e.content),1)}const kn=B(wf,[["render",Nf]]);kn.install=e=>{e.component(kn.name??"ClNoName",kn)};const Tf=n.defineComponent({name:"ClTableCelId",directives:{tooltip:Vn,clipboard:$o},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>"}}}),Af={class:"cl-td-id"};function Bf(e,s,c,p,b,v){const u=n.resolveDirective("tooltip"),S=n.resolveDirective("clipboard");return n.withDirectives((n.openBlock(),n.createElementBlock("td",Af,[n.createTextVNode(n.toDisplayString(e.value),1)])),[[u,e.tooltip,"right"],[S,e.full??e.value]])}const $n=B(Tf,[["render",Bf]]);$n.install=e=>{e.component($n.name??"ClNoName",$n)};const Of=n.defineComponent({name:"ClTableCelLinks",props:{content:{type:String,default:""}}}),Df={class:"cl-td-links"};function Vf(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("td",Df,[n.createTextVNode(n.toDisplayString(e.content),1),n.renderSlot(e.$slots,"default")])}const En=B(Of,[["render",Vf]]);En.install=e=>{e.component(En.name??"ClNoName",En)};const Mf=n.defineComponent({name:"ClTableCelUuid",props:{value:{type:String,default:"00000000-0000-0000-0000-000000000000"}}});function Lf(e,s,c,p,b,v){const u=n.resolveComponent("cl-table-cel-id");return n.openBlock(),n.createBlock(u,{value:e.value.substring(0,8),full:e.value},null,8,["value","full"])}const wn=B(Mf,[["render",Lf]]);wn.install=e=>{e.component(wn.name??"ClNoName",wn)};const zf=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}}}),If={key:0,class:"cl-table-foot-checked"},Ff={class:"cl-td-links",colspan:"100"};function xf(e,s,c,p,b,v){return e.any?(n.openBlock(),n.createElementBlock("tfoot",If,[n.createElementVNode("tr",null,[n.createElementVNode("td",Ff,[s[0]||(s[0]=n.createElementVNode("small",null,[n.createElementVNode("i",{class:"fas fa-share fa-rotate-270 cl-faded"})],-1)),s[1]||(s[1]=n.createTextVNode(" ",-1)),n.renderSlot(e.$slots,"default")])])])):n.createCommentVNode("",!0)}const Sn=B(zf,[["render",xf]]);Sn.install=e=>{e.component(Sn.name??"ClNoName",Sn)};const Pf=n.defineComponent({name:"ClTableHead",directives:{tooltip:Vn},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,s){e!==s&&(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 s=e?.target;for(;s;){if(s.tagName==="TABLE"){_o(`${s.id}-settings`);return}s=s.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")}}}}),jf=["id","width"],Wf={class:"fas fa-cog cl-faded"},Rf={key:0,class:"cl-resizer"},qf={key:1,class:"form-check text-center"},Hf=["indeterminate"],Uf={key:2,class:"cl-resizer"};function Xf(e,s,c,p,b,v){const u=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("th",{id:e.$uid,class:n.normalizeClass(["cl-table-head cl-p-tiny",{"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:s[0]||(s[0]=(...S)=>e.openSettings&&e.openSettings(...S))},[n.withDirectives(n.createElementVNode("i",Wf,null,512),[[u,"Configure table","left"]])]),e.resize?(n.openBlock(),n.createElementBlock("div",Rf)):n.createCommentVNode("",!0)],64)):e.checkbox?(n.openBlock(),n.createElementBlock("div",qf,[n.withDirectives(n.createElementVNode("input",{ref:"checkbox","onUpdate:modelValue":s[1]||(s[1]=S=>e.modelValue=S),class:"form-check-input",type:"checkbox",indeterminate:e.checkState==="SOME",onChange:s[2]||(s[2]=S=>e.check())},null,40,Hf),[[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:s[3]||(s[3]=(...S)=>e.sortCol&&e.sortCol(...S))},[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",Uf)):n.createCommentVNode("",!0)],64))],10,jf)}const Nn=B(Pf,[["render",Xf]]);Nn.install=e=>{e.component(Nn.name??"ClNoName",Nn)};const Yf=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}}}),Kf=["id"];function Gf(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("tr",{id:e.id,class:n.normalizeClass(e.clazz)},[n.renderSlot(e.$slots,"default")],10,Kf)}const Tn=B(Yf,[["render",Gf]]);Tn.install=e=>{e.component(Tn.name??"ClNoName",Tn)};const Qf=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)}}}),Jf={class:"cl-tabs"},Zf=["id","name","checked","onChange"],ep=["for"];function tp(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("div",Jf,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,u=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:u},[e.slotExists(u)?(n.openBlock(),n.createElementBlock("input",{key:0,id:`tabs-${e.$uid}-${u}`,class:n.normalizeClass(`cl-tab-${u}`),type:"radio",name:`tabs-${e.$uid}`,checked:e.index===u-1,onChange:S=>e.emit(u)},null,42,Zf)):n.createCommentVNode("",!0)],64))),128)),n.createElementVNode("ul",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,u=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:u},[e.slotExists(u)?(n.openBlock(),n.createElementBlock("li",{key:0,class:n.normalizeClass(`cl-tab-${u}`)},[n.createElementVNode("label",{for:`tabs-${e.$uid}-${u}`},[n.renderSlot(e.$slots,`tabs-${u}-label`)],8,ep)],2)):n.createCommentVNode("",!0)],64))),128))]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,u=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:u},[e.slotExists(u)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(`cl-tab-${u} cl-tab-content`)},[n.renderSlot(e.$slots,`tabs-${u}-content`)],2)):n.createCommentVNode("",!0)],64))),128))])}const An=B(Qf,[["render",tp]]);An.install=e=>{e.component(An.name??"ClNoName",An)};const np=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{myclass:"badge cl-badge-text "+this.class}},computed:{clazz:function(){return this.class?` ${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())}}}}),ip=["id","checked","disabled"],op=["id","for","disabled"];function sp(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("input",{id:e.$uid,type:"checkbox",class:n.normalizeClass(`cl-toggle-checkbox${e.clazz}`),checked:e.modelValue,disabled:e.enabled?null:!0,onChange:s[0]||(s[0]=u=>e.toggle())},null,42,ip),n.createElementVNode("label",{id:e.id,class:n.normalizeClass(e.myclass),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,op)],64)}const Bn=B(np,[["render",sp]]);Bn.install=e=>{e.component(Bn.name??"ClNoName",Bn)};const rp={install:e=>{let s=0;e.mixin({beforeCreate:function(){let p;const b="uid-"+s++;Object.defineProperties(this,(p={},p.$uid={get:function(){return b}},p))}})}};function lp(){return{ClAlert:Ft,ClBackCancelOk:xt,ClCookieBanner:Pt,ClCopy:jt,ClCreditcardNumber:Wt,ClDropzone:Rt,ClField:qt,ClFieldCheck:Ht,ClFieldGroup:Ut,ClHashtag:Xt,ClIconotron:Yt,ClInfo:Kt,ClLinkExternal:Gt,ClLorem:Qt,ClMailto:Jt,ClModal:Zt,ClModalConfirm:en,ClModalOk:tn,ClNavSide:nn,ClNavTop:on,ClOrg:sn,ClPage:rn,ClPagination:ln,ClPlan:an,ClRole:cn,ClSectionForm:dn,ClSectionHeadline:un,ClSectionMain:yt,ClSectionMainSide:fn,ClSpinner:pn,ClTable:hn,ClTableCel:mn,ClTableCelActions:gn,ClTableCelAudit:vn,ClTableCelBoolean:bn,ClTableCelCheckbox:yn,ClTableCelCode:_n,ClTableCelCurrency:Cn,ClTableCelDate:kn,ClTableCelId:$n,ClTableCelLinks:En,ClTableCelUuid:wn,ClTableFootChecked:Sn,ClTableHead:Nn,ClTableRow:Tn,ClTabs:An,ClToggle:Bn}}function ap(){return[rp]}function Eo(e,s){const c=JSON.parse(JSON.stringify(e));for(const p in s)typeof s[p]=="object"&&!Array.isArray(s[p])?c[p]=Eo(e[p]??{},s[p]):c[p]=s[p];return c}function cp(e,s){return{store:Eo(e,s)}}const mr="✺";let Ti={};function dp(e,s="",c=!1){const p=Ti[s]??it(gr(s));return Object.keys(Ti).length>100&&(Ti={}),Ti[s]=p,bt(c?e.toLowerCase():e,p,c)}function bt(e,s,c){if(typeof s=="string"){const p=s.replaceAll(mr," ");return p[0]==="-"?!bt(e,p.substring(1),c):c?e.includes(p):e.toLowerCase().includes(p.toLowerCase())}else switch(s[0]){case"&":return bt(e,s[1])&&bt(e,s[2]);case"|":return bt(e,s[1])||bt(e,s[2]);default:return!1}}function gr(e){const s=[];let c=!1;for(let u=0;u<e.length;u++)c?e[u]===c?c=!1:s.push([" "].includes(e[u])?mr:e[u]):["'",'"'].includes(e[u])?c=e[u]:s.push(e[u]);const p=s.join("").replace(/\s+/g," ").trim();if(p.length<=0)return"";const b=p.split(" ");if(b.length<=0)return"";const v=[];["NOT","-"].includes(b[0])||v.push(b.shift());for(let u=0;u<b.length;u++)switch(b[u]){case"AND":case"&":case"&&":switch(b[++u]){case"NOT":case"-":b[u+1]&&(v.push("&"),v.push("-"),v.push(b[++u]));break;case void 0:break;default:v.push("&"),v.push(b[u])}break;case"OR":case"|":case"||":switch(b[++u]){case"NOT":case"-":b[u+1]&&(v.push("|"),v.push("-"),v.push(b[++u]));break;case void 0:break;default:v.push("|"),v.push(b[u])}break;case"NOT":case"-":v.push("-"),v.push(b[++u]);break;default:v.push("&"),v.push(b[u])}return` ${v.join(" ")} `.replace(/ - /g," -").trim()}function it(e){const s=e.indexOf(" | ");if(s>=0)return["|",it(e.substring(0,s)),it(e.substring(s+3))];const c=e.indexOf(" & ");if(c>=0)return["&",it(e.substring(0,c)),it(e.substring(c+3))];const p=e.indexOf(" ");return p>=0?["&",it(e.substring(0,p)),it(e.substring(p+1))]:e}const vo={DEV:"DEV",TEST:"TEST",PROD:"PROD"},vr={id:"CP",subtitle:"Access the Content Platform, manage, encode and watermark assets",title:"Content Platform",urlManage:function(){return"#"},sidenav:!1},br={id:"CS",subtitle:"Manage organizations, plans, downloads",title:"Castlabs hub",urlManage:function(e,s){return Qn(e,`https://account.test.cs.castlabs.com/o/${s??""}`,`https://account.castlabs.com/o/${s??""}`)},sidenav:!0},yr={id:"DT",subtitle:"Cloud DRM & CAS licensing",title:"DRMtoday",urlManage:function(e,s){return Qn(e,`https://fe.test.drmtoday.com/dashboard/${s?`${s}/`:""}index`,`https://fe.drmtoday.com/dashboard/${s?`${s}/`:""}index`)},sidenav:!0},_r={id:"DTO",subtitle:"",title:"DRMtoday Onboard (staging)",urlManage:function(){return"#"},sidenav:!1},Cr={id:"DTS",subtitle:"Cloud DRM & CAS licensing",title:"DRMtoday (staging)",urlManage:function(e,s){return Qn(e,`https://fe.test.drmtoday.com/dashboard/${s?`${s}/`:""}index`,`https://fe.staging.drmtoday.com/dashboard/${s?`${s}/`:""}/index`)},sidenav:!1},kr={id:"PP",subtitle:"Cross-platform video players (via Castlabs hub)",title:"PRESTOplay",urlManage:function(){return"https://prestoplay.castlabs.com/manage/"},sidenav:!0},$r={id:"VTK",subtitle:"Cloud encoding, packaging, watermarking",title:"Video Toolkit",urlManage:function(e){return Qn(e,"https://vtks.castlabs.com/","https://vtk.castlabs.com/")},sidenav:!0},Er={id:"WM",subtitle:"Video & image forensic watermarking",title:"STARDUSTmark",urlManage:function(e){return Qn(e,"https://asolonsky.fwm.castlabs.com/","https://watermark.castlabs.com/")},sidenav:!0};function Qn(e=vo.PROD,s,c){return[vo.DEV,vo.TEST].includes(e)?s:c}function up(){return[br,vr,yr,Cr,_r,kr,Er,$r]}const fp={CP:vr,CS:br,DT:yr,DTS:Cr,DTO:_r,PP:kr,WM:Er,VTK:$r},bo={ClAlert:Ft,ClBackCancelOk:xt,ClCookieBanner:Pt,ClCopy:jt,ClCreditcardNumber:Wt,ClDropzone:Rt,ClField:qt,ClFieldCheck:Ht,ClFieldGroup:Ut,ClHashtag:Xt,ClIconotron:Yt,ClInfo:Kt,ClLinkExternal:Gt,ClLorem:Qt,ClMailto:Jt,ClModal:Zt,ClModalConfirm:en,ClModalOk:tn,ClNavSide:nn,ClNavTop:on,ClOrg:sn,ClPage:rn,ClPagination:ln,ClPlan:an,ClRole:cn,ClSectionForm:dn,ClSectionHeadline:un,ClSectionMain:yt,ClSectionMainSide:fn,ClSpinner:pn,ClTable:hn,ClTableCel:mn,ClTableCelActions:gn,ClTableCelAudit:vn,ClTableCelBoolean:bn,ClTableCelCheckbox:yn,ClTableCelCode:_n,ClTableCelCurrency:Cn,ClTableCelDate:kn,ClTableCelId:$n,ClTableCelLinks:En,ClTableCelUuid:wn,ClTableFootChecked:Sn,ClTableHead:Nn,ClTableRow:Tn,ClTabs:An,ClToggle:Bn,ClMockRouterLink:Kn,ClUI:Sa};function pp(e){for(const s in bo)e.component(bo[s].name,bo[s])}exports.ClAlert=Ft;exports.ClBackCancelOk=xt;exports.ClCookieBanner=Pt;exports.ClCopy=jt;exports.ClCreditcardNumber=Wt;exports.ClDropzone=Rt;exports.ClField=qt;exports.ClFieldCheck=Ht;exports.ClFieldGroup=Ut;exports.ClHashtag=Xt;exports.ClIconotron=Yt;exports.ClInfo=Kt;exports.ClLinkExternal=Gt;exports.ClLorem=Qt;exports.ClMailto=Jt;exports.ClMockRouterLink=Kn;exports.ClModal=Zt;exports.ClModalConfirm=en;exports.ClModalOk=tn;exports.ClNavSide=nn;exports.ClNavTop=on;exports.ClOrg=sn;exports.ClPage=rn;exports.ClPagination=ln;exports.ClPlan=an;exports.ClRole=cn;exports.ClSectionForm=dn;exports.ClSectionHeadline=un;exports.ClSectionMain=yt;exports.ClSectionMainSide=fn;exports.ClSpinner=pn;exports.ClTable=hn;exports.ClTableCel=mn;exports.ClTableCelActions=gn;exports.ClTableCelAudit=vn;exports.ClTableCelBoolean=bn;exports.ClTableCelCheckbox=yn;exports.ClTableCelCode=_n;exports.ClTableCelCurrency=Cn;exports.ClTableCelDate=kn;exports.ClTableCelId=$n;exports.ClTableCelLinks=En;exports.ClTableCelUuid=wn;exports.ClTableFootChecked=Sn;exports.ClTableHead=Nn;exports.ClTableRow=Tn;exports.ClTabs=An;exports.ClToggle=Bn;exports.NAV=fp;exports._getProperty=It;exports._sanitize=gr;exports._tokenize=it;exports.castlabsUi=pp;exports.clCopyData=Ya;exports.clDebounce=Ha;exports.clFocus=Ma;exports.clFormAutofocus=La;exports.clFormFieldFocusFirstInvalid=ko;exports.clFormFieldReset=rr;exports.clFormIsValid=Co;exports.clFormIsValidAsync=lr;exports.clFormReset=sr;exports.clFormatAmount=Pa;exports.clFormatCardNumber=dr;exports.clFormatDate=ar;exports.clFormatDateTimeUTC=Ia;exports.clFormatDuration=Fa;exports.clFormatFilesize=za;exports.clFormatNumber=Oi;exports.clFormatPeriod=xa;exports.clFormatRange=ja;exports.clFormatTimeUTC=cr;exports.clGetAllComponents=lp;exports.clGetAllPlugins=ap;exports.clGetServices=up;exports.clMatch=dp;exports.clModalHide=On;exports.clModalIsShown=Va;exports.clModalShow=_o;exports.clModalValue=Bi;exports.clPaginate=or;exports.clPatch=Eo;exports.clPatchStore=cp;exports.clRandomList=Xa;exports.clRandomString=Ua;exports.clRefClField=Qa;exports.clRefClFieldGroup=Ja;exports.clRefHTMLElement=Za;exports.clReload=Ga;exports.clReloadStore=Ka;exports.clScrollToId=Da;exports.clSort=ur;exports.clSynchronizedSubmit=Wa;exports.clSynchronizedSubmitAsync=Ra;exports.clTableSorter=fr;exports.clTableSorterObjects=qa;exports.clVClipboard=$o;exports.clVTooltip=Vn;
|
|
29
|
+
justo donec enim diam.`,rd=n.defineComponent({name:"ClLorem",props:{words:{type:Number,default:10},paragraphs:{type:Number,default:0}},methods:{lorem(e){return((e%2?sd:od).trim().replace(/\s+/g," ").split(" ").splice(0,this.words).join(" ")+".").replace(/\.+/g,".")}}});function ld(e,o,c,p,b,v){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),u=>(n.openBlock(),n.createElementBlock("p",{key:u},n.toDisplayString(e.lorem(u)),1))),128))}const Jt=B(rd,[["render",ld]]);Jt.install=e=>{e.component(Jt.name??"ClNoName",Jt)};const ad=n.defineComponent({name:"ClMailto",props:{to:{type:String,default:"office@castlabs.com"}}}),cd=["href"];function dd(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("a",{class:"cl-a-email",href:`mailto:${e.to}`},n.toDisplayString(e.to),9,cd)}const Zt=B(ad,[["render",dd]]);Zt.install=e=>{e.component(Zt.name??"ClNoName",Zt)};const ud=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)}}}),fd=["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 pd(e,o,c,p,b,v){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:o[0]||(o[0]=u=>e.push())},[n.renderSlot(e.$slots,"default")],10,fd)}const Gn=B(ud,[["render",pd]]);Gn.install=e=>{e.component(Gn.name??"ClNoName",Gn)};const hd=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||""),o=this;e&&(e.addEventListener("hidden.bs.modal",function(){o.onClose&&o.onClose()}),e.addEventListener("show.bs.modal",function(){o.onOpen&&o.onOpen()}))}}),md=["id"],gd={class:"modal-dialog"},vd={class:"modal-content"},bd={class:"modal-header"},yd=["href"],_d=["id"],Cd={key:1,class:"modal-body"},kd={class:"modal-footer"},$d={class:"modal-footer-left cl-spacing-box cl-spacing-none"},Ed={class:"modal-footer-center cl-spacing-box cl-spacing-none"},wd={class:"modal-footer-right cl-spacing-box cl-spacing-none"};function Sd(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("div",{id:e.id,class:n.normalizeClass(`modal ${e.clazz}`),tabindex:"-1","data-bs-backdrop":"static"},[n.createElementVNode("div",gd,[n.createElementVNode("div",vd,[n.createElementVNode("div",bd,[n.renderSlot(e.$slots,"title",{},()=>[o[1]||(o[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."},o[2]||(o[2]=[n.createElementVNode("i",{class:"far fa-question-circle"},null,-1)]),8,yd)):n.createCommentVNode("",!0)]),e.form?(n.openBlock(),n.createElementBlock("form",{key:0,id:`${e.id}-form`,class:"modal-body cl-form container",novalidate:"",onSubmit:o[0]||(o[0]=n.withModifiers(()=>{},["prevent"]))},[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")],40,_d)):(n.openBlock(),n.createElementBlock("div",Cd,[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")])),n.createElementVNode("div",kd,[n.createElementVNode("span",$d,[n.renderSlot(e.$slots,"footer-left")]),n.createElementVNode("span",Ed,[n.renderSlot(e.$slots,"footer")]),n.createElementVNode("span",wd,[n.renderSlot(e.$slots,"footer-right")])])])])],10,md)}const en=B(hd,[["render",Sd]]);en.install=e=>{e.component(en.name??"ClNoName",en)};const Nd=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}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},emits:["ok"],methods:{reset:function(){rr(this.$refs.text,""),sr(`${this.id}-form`)},submit:function(){_o(`${this.id}-form`)&&this.$emit("ok")}}});function Td(e,o,c,p,b,v){const u=n.resolveComponent("cl-field"),S=n.resolveComponent("cl-modal");return n.openBlock(),n.createBlock(S,{id:e.id,class:n.normalizeClass(e.clazz),form:"","on-open":e.reset},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),body:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.createElementVNode("p",null,[o[2]||(o[2]=n.createTextVNode(" To confirm your intention, please type ",-1)),n.createElementVNode("code",null,n.toDisplayString(e.text),1),o[3]||(o[3]=n.createTextVNode(" into this text field: ",-1))]),n.createVNode(u,{ref:"text",type:"text",required:"",pattern:`^${e.text}$`,class:"text-center cl-field-monospace it-confirm",autofocus:"",onKeyup:o[0]||(o[0]=n.withKeys(Y=>e.submit(),["enter"]))},null,8,["pattern"])]),"footer-left":n.withCtx(()=>o[4]||(o[4]=[n.createElementVNode("button",{type:"button",class:"btn cl-btn-outline-text it-cancel","data-bs-dismiss":"modal"},[n.createElementVNode("i",{class:"fas fa-angle-left"}),n.createElementVNode("span",null,"Cancel")],-1)])),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:n.normalizeClass(["btn cl-btn-primary it-ok",{"cl-btn-spinner":e.spinner}]),onClick:o[1]||(o[1]=Y=>e.submit())},[n.createElementVNode("span",null,n.toDisplayString(e.ok??e.button),1),o[5]||(o[5]=n.createElementVNode("i",{class:"fas fa-angle-right"},null,-1))],2)]),_:3},8,["id","class","on-open"])}const tn=B(Nd,[["render",Td]]);tn.install=e=>{e.component(tn.name??"ClNoName",tn)};const Ad=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},angles:{type:Boolean,default:!0},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,Dn(),this.$emit("ok",Bi(this.id))},buttonCancel:function(){this.emitted=!0,Dn(),this.$emit("cancel",Bi(this.id))},opened:function(){this.emitted=!1,this.onOpen&&this.onOpen()},closed:function(){this.emitted||this.$emit("cancel",Bi(this.id)),this.onClose&&this.onClose()}}}),Bd={key:0,class:"fas fa-angle-left"},Od={key:0,class:"fas fa-angle-right"};function Dd(e,o,c,p,b,v){const u=n.resolveComponent("cl-modal");return n.openBlock(),n.createBlock(u,{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-btn-outline-text it-cancel",onClick:o[0]||(o[0]=(...S)=>e.buttonCancel&&e.buttonCancel(...S))},[e.angles?(n.openBlock(),n.createElementBlock("i",Bd)):n.createCommentVNode("",!0),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 it-ok",{"cl-btn-outline-primary":e.angles,"cl-btn-outline-text":!e.angles,"cl-btn-spinner":e.spinner}]),onClick:o[1]||(o[1]=(...S)=>e.buttonOk&&e.buttonOk(...S))},[n.createElementVNode("span",null,n.toDisplayString(e.ok??e.button),1),e.angles?(n.openBlock(),n.createElementBlock("i",Od)):n.createCommentVNode("",!0)],2)]),_:3},8,["id","class","form","on-open","on-close"])}const nn=B(Ad,[["render",Dd]]);nn.install=e=>{e.component(nn.name??"ClNoName",nn)};function pr(){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(o){o.ignore?.()}}else{e.parentNode.classList.remove("cl-nav-side-open");try{localStorage.setItem("sidenavOpen","false")}catch(o){o.ignore?.()}}}function Vd(){ir(Md()),document.querySelectorAll(".cl-nav-drawer a").forEach(e=>{e.addEventListener("click",()=>{if(hr()){ir(!1);try{localStorage.setItem("sidenavOpen","false")}catch(o){o.ignore?.()}}})}),document.getElementById("cl-nav-side")?.addEventListener("change",function(){pr()}),document.querySelectorAll(".cl-nav-drawer details[id]").forEach(e=>{e.addEventListener("toggle",o=>{try{localStorage.setItem(`cl-nav-${e.id}`,o.target.hasAttribute("open"))}catch(c){c.ignore?.()}});try{localStorage.getItem(`cl-nav-${e.id}`)==="true"&&(e.open=!0)}catch(o){o.ignore?.()}}),setTimeout(function(){document.querySelectorAll("body").forEach(e=>{e.classList.add("cl-animate")})},1e3)}function ir(e){const o=document.getElementById("cl-nav-side");o&&(o.checked=e)}function hr(){return Math.max(document?.documentElement?.clientWidth||0,window?.innerWidth||0)<1200}function Md(){const e=localStorage.getItem("sidenavOpen");return e==null?!hr():JSON.parse(e)}const Ld=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(){pr()},setup:function(){this.$nextTick(()=>{Vd()})}}}),zd={class:"cl-nav-side"},Id={class:"cl-nav-drawer"},Fd={"data-simplebar":""};function xd(e,o,c,p,b,v){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:o[0]||(o[0]=(...u)=>e.toggle&&e.toggle(...u))},null,34),n.createElementVNode("nav",zd,[o[1]||(o[1]=n.createElementVNode("label",{class:"cl-nav-backdrop",for:"cl-nav-side"},null,-1)),n.createElementVNode("div",Id,[n.createElementVNode("div",Fd,[n.renderSlot(e.$slots,"default")])])])],64)}const on=B(Ld,[["render",xd]]);on.install=e=>{e.component(on.name??"ClNoName",on)};const Pd=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"}}}),jd={class:"row"},Wd={class:"col-12 cl-grid-flex-centered"};function Rd(e,o,c,p,b,v){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",jd,[n.createElementVNode("div",Wd,[o[0]||(o[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 sn=B(Pd,[["render",Rd]]);sn.install=e=>{e.component(sn.name??"ClNoName",sn)};const qd=n.defineComponent({name:"ClOrg",props:{name:{type:String,default:"No organization"}}}),Hd={class:"cl-org"};function Ud(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("span",Hd,[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")])}const rn=B(qd,[["render",Ud]]);rn.install=e=>{e.component(rn.name??"ClNoName",rn)};const Xd=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}`:""}},methods:{back(){history.go(-1)}}}),Yd={key:0,class:"cl-page-spinner"};function Kd(e,o,c,p,b,v){const u=n.resolveComponent("cl-section-headline"),S=n.resolveComponent("cl-spinner"),Y=n.resolveComponent("cl-section-main");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(u,{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",Yd,[n.createVNode(S)])):e.notFound?n.renderSlot(e.$slots,"notFound",{key:1},()=>[n.createVNode(Y,{fluid:e.$route.meta?.fluid},{default:n.withCtx(()=>[o[2]||(o[2]=n.createElementVNode("p",{class:"cl-p-large"},"Hmm, it seems we can't find what you're looking for.",-1)),o[3]||(o[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 btn-sm cl-btn-outline-text cl-spacing-large",onClick:o[0]||(o[0]=(...ve)=>e.back&&e.back(...ve))},o[1]||(o[1]=[n.createElementVNode("i",{class:"fas fa-angle-left"},null,-1),n.createElementVNode("span",null,"Back",-1)]))]),_:1,__:[2,3]},8,["fluid"])]):n.renderSlot(e.$slots,"default",{key:2})],64)}const ln=B(Xd,[["render",Kd]]);ln.install=e=>{e.component(ln.name??"ClNoName",ln)};function Gd(e,o,c,p){const b=[],v=Math.ceil(e/o);c<1&&(c=1),c>v&&(c=v);for(let u=1;u<=v;u++)(u>=c-p&&u<=c+p||u===1||u===v)&&b.push(u);return{previous:c>1?c-1:null,next:c<v?c+1:null,current:c,pages:b}}const Qd=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}},emits:["page"],computed:{pager:function(){return Gd(this.items,this.pagesize,this.current,this.window)}}}),Jd={key:0,class:"col-12 text-center cl-spacing-medium"},Zd={class:"pagination"},eu={key:0,class:"page-item"},tu={key:1,class:"page-item disabled"},nu={key:0,class:"page-item disabled"},iu=["onClick"],ou={key:2,class:"page-item"},su={key:3,class:"page-item disabled"};function ru(e,o,c,p,b,v){return e.pager?.pages?.length>1?(n.openBlock(),n.createElementBlock("nav",Jd,[n.createElementVNode("ul",Zd,[e.pager.previous?(n.openBlock(),n.createElementBlock("li",eu,[n.createElementVNode("button",{type:"button",class:"page-link",onClick:o[0]||(o[0]=u=>e.$emit("page",e.pager.previous))},"Prev")])):(n.openBlock(),n.createElementBlock("li",tu,"Prev")),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.pager.pages,(u,S)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:u},[S>0&&e.pager.pages[S-1]!==u-1?(n.openBlock(),n.createElementBlock("li",nu," ... ")):n.createCommentVNode("",!0),n.createElementVNode("li",{class:n.normalizeClass(["page-item",{active:u===e.pager.current}])},[n.createElementVNode("button",{class:"page-link",onClick:Y=>e.$emit("page",u)},n.toDisplayString(u),9,iu)],2)],64))),128)),e.pager.next?(n.openBlock(),n.createElementBlock("li",ou,[n.createElementVNode("button",{type:"button",class:"page-link",onClick:o[1]||(o[1]=u=>e.$emit("page",e.pager.next))},"Next")])):(n.openBlock(),n.createElementBlock("li",su,"Next"))])])):n.createCommentVNode("",!0)}const an=B(Qd,[["render",ru]]);an.install=e=>{e.component(an.name??"ClNoName",an)};const lu=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="";return!this.primary&&!this.secondary?e+="cl-plan-dark":this.primary?e+="cl-plan-primary":this.secondary&&(e+="cl-plan-secondary"),e+(this.class?` ${this.class}`:"")}}}),au={key:0,class:"cl-plan-derived"},cu=["id"];function du(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.derived?(n.openBlock(),n.createElementBlock("span",au)):n.createCommentVNode("",!0),n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,cu)],64)}const cn=B(lu,[["render",du]]);cn.install=e=>{e.component(cn.name??"ClNoName",cn)};const uu=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="";return!this.primary&&!this.secondary?e+="cl-role-dark":this.primary?e+="cl-role-primary":this.secondary&&(e+="cl-role-secondary"),e+(this.class?` ${this.class}`:"")}}}),fu={key:0,class:"cl-role-derived"},pu=["id"];function hu(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.derived?(n.openBlock(),n.createElementBlock("span",fu)):n.createCommentVNode("",!0),n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,pu)],64)}const dn=B(uu,[["render",hu]]);dn.install=e=>{e.component(dn.name??"ClNoName",dn)};const mu=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"}}}),gu={class:"cl-section-form cl-section-alternate"},vu=["id"],bu=["disabled"],yu={key:1,class:"col-12"};function _u(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("section",gu,[n.createElementVNode("form",{id:e.id,novalidate:"",class:n.normalizeClass(e.containerClass),onSubmit:o[0]||(o[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",yu,[n.renderSlot(e.$slots,"default")]))],8,bu)],42,vu)])}const un=B(mu,[["render",_u]]);un.install=e=>{e.component(un.name??"ClNoName",un)};const Cu=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"}}}),ku={class:"cl-section-primary cl-section-headline"},$u={class:"row"},Eu={class:"col-12"},wu={key:0},Su=["href"];function Nu(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("section",ku,[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",$u,[n.createElementVNode("div",Eu,[e.title?(n.openBlock(),n.createElementBlock("h1",wu,[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"},o[0]||(o[0]=[n.createElementVNode("i",{class:"fas fa-question-circle"},null,-1)]),8,Su)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"default")])])],2)])}const fn=B(Cu,[["render",Nu]]);fn.install=e=>{e.component(fn.name??"ClNoName",fn)};const Tu=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-regular"},containerClass:function(){return this.isFluid?"container-fluid":"container"}}}),Au={class:"row"},Bu={key:1,class:"col-12"};function Ou(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("section",{class:n.normalizeClass(e.sectionClass)},[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",Au,[e.noCol?n.renderSlot(e.$slots,"default",{key:0}):(n.openBlock(),n.createElementBlock("div",Bu,[n.renderSlot(e.$slots,"default")]))])],2)],2)}const yt=B(Tu,[["render",Ou]]);yt.install=e=>{e.component(yt.name??"ClNoName",yt)};const Du=n.defineComponent({name:"ClSectionMainSide",components:{ClSectionMain:yt},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":"cl-section-regular")}}});function Vu(e,o,c,p,b,v){const u=n.resolveComponent("cl-section-main");return n.openBlock(),n.createBlock(u,{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 pn=B(Du,[["render",Vu]]);pn.install=e=>{e.component(pn.name??"ClNoName",pn)};const Mu=n.defineComponent({name:"ClSpinner",props:{title:{type:String,default:"Loading ..."}}}),Lu={class:"cl-spinner"};function zu(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("div",Lu,[n.createTextVNode(n.toDisplayString(e.title),1),o[0]||(o[0]=n.createElementVNode("i",{class:"fas fa-spinner fa-spin"},null,-1))])}const hn=B(Mu,[["render",zu]]);hn.install=e=>{e.component(hn.name??"ClNoName",hn)};function Iu(e){document.querySelectorAll(`#${e} .cl-resizer`).forEach(o=>{Fu(o)})}let Qn=0,Vn=null;function Fu(e){Qn=0,Vn=null,e.addEventListener("mousedown",xu),document.addEventListener("mousemove",Pu),document.addEventListener("mouseup",ju)}const xu=e=>{e.preventDefault(),Vn=e.target?e.target.parentElement:null,Qn=e.pageX},Pu=e=>{if(Vn!==null){e.preventDefault();const o=e.pageX-Qn;Qn=e.pageX;const c=Wu(Vn),p=e.target?.closest("table")?.id??"unknown";!!document.querySelector(`#${p}.cl-table-nowrap`)?document.querySelectorAll(`#${p} tr th:nth-child(${c-1})`).forEach(v=>{const u=(v.style.maxWidth===""?v.offsetWidth:parseInt(v.style.maxWidth))+o;v.style.width=(u>32?u:32)+"px",v.style.maxWidth=(u>32?u:32)+"px"}):(document.querySelectorAll(`#${p} tr td:nth-child(${c-1})`).forEach(v=>{const u=v.offsetWidth+o;v.style.width=(u>32?u:32)+"px"}),document.querySelectorAll(`#${p} tr td:nth-child(${c})`).forEach(v=>{const u=v.offsetWidth-o;v.style.width=(u>32?u:32)+"px"}))}},ju=e=>{Vn!==null&&(e.preventDefault(),Qn=0,Vn=null)};function Wu(e){let o=0;for(;e;)o++,e=e.previousElementSibling;return o}const Ru=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 o=1;o<=this.show.length;o++)this.show[o-1]||(e+=` cl-table-col-${o}-hide`);return e}},watch:{rows:function(){this.setupResizer()}},mounted(){this.setupResizer()},methods:{setupResizer:function(){this.$nextTick(()=>{Iu(this.$uid)})}}}),qu=["id"],Hu=["id"],Uu={key:0},Xu={key:1},Yu={class:"cl-tr-no-data"},Ku={colspan:"100"},Gu={key:2},Qu={class:"cl-tr-no-data"},Ju={colspan:"100"},Zu={key:3};function ef(e,o,c,p,b,v){const u=n.resolveComponent("cl-spinner"),S=n.resolveComponent("cl-field-check"),Y=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",Uu,[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")])):e.rows===0?(n.openBlock(),n.createElementBlock("tbody",Xu,[n.createElementVNode("tr",Yu,[n.createElementVNode("td",Ku,n.toDisplayString(e.noDataText),1)])])):(n.openBlock(),n.createElementBlock("tbody",Gu,[n.createElementVNode("tr",Qu,[n.createElementVNode("td",Ju,[n.createVNode(u)])])])),e.$slots.footer?(n.openBlock(),n.createElementBlock("tfoot",Zu,[n.createElementVNode("tr",null,[n.renderSlot(e.$slots,"footer")])])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"tfoot")],10,Hu)],8,qu),e.hideCols?(n.openBlock(),n.createBlock(Y,{key:0,id:e.$uid+"-settings",title:"Configure table"},{default:n.withCtx(()=>[o[0]||(o[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,(ve,pe)=>(n.openBlock(),n.createBlock(S,{key:ve,value:e.show[pe],modelValue:e.show[pe],"onUpdate:modelValue":Ct=>e.show[pe]=Ct},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(ve),1)]),_:2},1032,["value","modelValue","onUpdate:modelValue"]))),128))]),_:1,__:[0]},8,["id"])):n.createCommentVNode("",!0)],64)}const mn=B(Ru,[["render",ef]]);mn.install=e=>{e.component(mn.name??"ClNoName",mn)};const tf=n.defineComponent({name:"ClTableCel",props:{condensed:{type:Boolean,default:!1}}});function nf(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("td",{class:n.normalizeClass(e.condensed?"cl-font-condensed":"")},[n.renderSlot(e.$slots,"default")],2)}const gn=B(tf,[["render",nf]]);gn.install=e=>{e.component(gn.name??"ClNoName",gn)};const of=n.defineComponent({name:"ClTableCelActions",props:{content:{type:String,default:""}}}),sf={class:"cl-td-actions"};function rf(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("td",sf,[n.createTextVNode(n.toDisplayString(e.content),1),n.renderSlot(e.$slots,"default")])}const vn=B(of,[["render",rf]]);vn.install=e=>{e.component(vn.name??"ClNoName",vn)};const lf=n.defineComponent({name:"ClTableCelAudit",directives:{tooltip:Mn},props:{value:{type:String,default:"???"}}}),af={class:"cl-td-audit"},cf={class:"fas fa-info-circle"};function df(e,o,c,p,b,v){const u=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("td",af,[n.withDirectives(n.createElementVNode("i",cf,null,512),[[u,e.value,"left"]])])}const bn=B(lf,[["render",df]]);bn.install=e=>{e.component(bn.name??"ClNoName",bn)};const uf=n.defineComponent({name:"ClTableCelBoolean",props:{value:{type:Boolean,default:!1}}}),ff={class:"cl-td-boolean"};function pf(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("td",ff,[n.createElementVNode("i",{class:n.normalizeClass(`fas ${e.value?"fa-check":"fa-minus"}`)},null,2)])}const yn=B(uf,[["render",pf]]);yn.install=e=>{e.component(yn.name??"ClNoName",yn)};const hf=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)}}}),mf={class:"cl-td-checkbox"},gf={class:"form-check text-center"},vf=["id","disabled"];function bf(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("td",mf,[n.createElementVNode("div",gf,[n.withDirectives(n.createElementVNode("input",{id:e.id??e.$uid,"onUpdate:modelValue":o[0]||(o[0]=u=>e.modelValue=u),class:"form-check-input",type:"checkbox",disabled:e.disabled,onChange:o[1]||(o[1]=u=>e.emitAll())},null,40,vf),[[n.vModelCheckbox,e.modelValue]])])])}const _n=B(hf,[["render",bf]]);_n.install=e=>{e.component(_n.name??"ClNoName",_n)};const yf=n.defineComponent({name:"ClTableCelCode"}),_f={class:"cl-td-code"};function Cf(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("td",_f,[n.renderSlot(e.$slots,"default")])}const Cn=B(yf,[["render",Cf]]);Cn.install=e=>{e.component(Cn.name??"ClNoName",Cn)};const kf=n.defineComponent({name:"ClTableCelCurrency",props:{amount:{type:Number,default:0},currency:{type:String,default:"EUR"}}}),$f={class:"cl-td-currency"};function Ef(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("td",$f,n.toDisplayString(e.currency)+" "+n.toDisplayString(e.amount),1)}const kn=B(kf,[["render",Ef]]);kn.install=e=>{e.component(kn.name??"ClNoName",kn)};const wf=n.defineComponent({name:"ClTableCelDate",props:{value:{type:String,default:void 0}},computed:{content:function(){if(this.value){const e=new Date(this.value),o=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),c=new Intl.DateTimeFormat("en",{month:"2-digit"}).format(e),p=new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e),b=new Intl.DateTimeFormat("en",{hour:"2-digit",hour12:!1}).format(e),v=new Intl.DateTimeFormat("en",{minute:"2-digit"}).format(e);return`${o}-${c}-${p} ${b}:${v}`}return"-"}}}),Sf={class:"cl-td-date"};function Nf(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("td",Sf,n.toDisplayString(e.content),1)}const $n=B(wf,[["render",Nf]]);$n.install=e=>{e.component($n.name??"ClNoName",$n)};const Tf=n.defineComponent({name:"ClTableCelId",directives:{tooltip:Mn,clipboard:ko},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>"}}}),Af={class:"cl-td-id"};function Bf(e,o,c,p,b,v){const u=n.resolveDirective("tooltip"),S=n.resolveDirective("clipboard");return n.withDirectives((n.openBlock(),n.createElementBlock("td",Af,[n.createTextVNode(n.toDisplayString(e.value),1)])),[[u,e.tooltip,"right"],[S,e.full??e.value]])}const En=B(Tf,[["render",Bf]]);En.install=e=>{e.component(En.name??"ClNoName",En)};const Of=n.defineComponent({name:"ClTableCelLinks",props:{content:{type:String,default:""}}}),Df={class:"cl-td-links"};function Vf(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("td",Df,[n.createTextVNode(n.toDisplayString(e.content),1),n.renderSlot(e.$slots,"default")])}const wn=B(Of,[["render",Vf]]);wn.install=e=>{e.component(wn.name??"ClNoName",wn)};const Mf=n.defineComponent({name:"ClTableCelUuid",props:{value:{type:String,default:"00000000-0000-0000-0000-000000000000"}}});function Lf(e,o,c,p,b,v){const u=n.resolveComponent("cl-table-cel-id");return n.openBlock(),n.createBlock(u,{value:e.value.substring(0,8),full:e.value},null,8,["value","full"])}const Sn=B(Mf,[["render",Lf]]);Sn.install=e=>{e.component(Sn.name??"ClNoName",Sn)};const zf=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}}}),If={key:0,class:"cl-table-foot-checked"},Ff={class:"cl-td-links",colspan:"100"};function xf(e,o,c,p,b,v){return e.any?(n.openBlock(),n.createElementBlock("tfoot",If,[n.createElementVNode("tr",null,[n.createElementVNode("td",Ff,[o[0]||(o[0]=n.createElementVNode("small",null,[n.createElementVNode("i",{class:"fas fa-share fa-rotate-270 cl-faded"})],-1)),o[1]||(o[1]=n.createTextVNode(" ",-1)),n.renderSlot(e.$slots,"default")])])])):n.createCommentVNode("",!0)}const Nn=B(zf,[["render",xf]]);Nn.install=e=>{e.component(Nn.name??"ClNoName",Nn)};const Pf=n.defineComponent({name:"ClTableHead",directives:{tooltip:Mn},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,o){e!==o&&(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 o=e?.target;for(;o;){if(o.tagName==="TABLE"){yo(`${o.id}-settings`);return}o=o.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")}}}}),jf=["id","width"],Wf={class:"fas fa-cog cl-faded"},Rf={key:0,class:"cl-resizer"},qf={key:1,class:"form-check text-center"},Hf=["indeterminate"],Uf={key:2,class:"cl-resizer"};function Xf(e,o,c,p,b,v){const u=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("th",{id:e.$uid,class:n.normalizeClass(["cl-table-head cl-p-tiny",{"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:o[0]||(o[0]=(...S)=>e.openSettings&&e.openSettings(...S))},[n.withDirectives(n.createElementVNode("i",Wf,null,512),[[u,"Configure table","left"]])]),e.resize?(n.openBlock(),n.createElementBlock("div",Rf)):n.createCommentVNode("",!0)],64)):e.checkbox?(n.openBlock(),n.createElementBlock("div",qf,[n.withDirectives(n.createElementVNode("input",{ref:"checkbox","onUpdate:modelValue":o[1]||(o[1]=S=>e.modelValue=S),class:"form-check-input",type:"checkbox",indeterminate:e.checkState==="SOME",onChange:o[2]||(o[2]=S=>e.check())},null,40,Hf),[[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:o[3]||(o[3]=(...S)=>e.sortCol&&e.sortCol(...S))},[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",Uf)):n.createCommentVNode("",!0)],64))],10,jf)}const Tn=B(Pf,[["render",Xf]]);Tn.install=e=>{e.component(Tn.name??"ClNoName",Tn)};const Yf=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}}}),Kf=["id"];function Gf(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("tr",{id:e.id,class:n.normalizeClass(e.clazz)},[n.renderSlot(e.$slots,"default")],10,Kf)}const An=B(Yf,[["render",Gf]]);An.install=e=>{e.component(An.name??"ClNoName",An)};const Qf=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)}}}),Jf={class:"cl-tabs"},Zf=["id","name","checked","onChange"],ep=["for"];function tp(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("div",Jf,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,u=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:u},[e.slotExists(u)?(n.openBlock(),n.createElementBlock("input",{key:0,id:`tabs-${e.$uid}-${u}`,class:n.normalizeClass(`cl-tab-${u}`),type:"radio",name:`tabs-${e.$uid}`,checked:e.index===u-1,onChange:S=>e.emit(u)},null,42,Zf)):n.createCommentVNode("",!0)],64))),128)),n.createElementVNode("ul",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,u=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:u},[e.slotExists(u)?(n.openBlock(),n.createElementBlock("li",{key:0,class:n.normalizeClass(`cl-tab-${u}`)},[n.createElementVNode("label",{for:`tabs-${e.$uid}-${u}`},[n.renderSlot(e.$slots,`tabs-${u}-label`)],8,ep)],2)):n.createCommentVNode("",!0)],64))),128))]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,u=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:u},[e.slotExists(u)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(`cl-tab-${u} cl-tab-content`)},[n.renderSlot(e.$slots,`tabs-${u}-content`)],2)):n.createCommentVNode("",!0)],64))),128))])}const Bn=B(Qf,[["render",tp]]);Bn.install=e=>{e.component(Bn.name??"ClNoName",Bn)};const np=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{myclass:"badge cl-badge-text "+this.class}},computed:{clazz:function(){return this.class?` ${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())}}}}),ip=["id","checked","disabled"],op=["id","for","disabled"];function sp(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("input",{id:e.$uid,type:"checkbox",class:n.normalizeClass(`cl-toggle-checkbox${e.clazz}`),checked:e.modelValue,disabled:e.enabled?null:!0,onChange:o[0]||(o[0]=u=>e.toggle())},null,42,ip),n.createElementVNode("label",{id:e.id,class:n.normalizeClass(e.myclass),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,op)],64)}const On=B(np,[["render",sp]]);On.install=e=>{e.component(On.name??"ClNoName",On)};const rp={install:e=>{let o=0;e.mixin({beforeCreate:function(){let p;const b="uid-"+o++;Object.defineProperties(this,(p={},p.$uid={get:function(){return b}},p))}})}};function lp(){return{ClAlert:xt,ClBackCancelOk:Pt,ClCookieBanner:jt,ClCopy:Wt,ClCreditcardNumber:Rt,ClDropzone:qt,ClField:Ht,ClFieldCheck:Ut,ClFieldGroup:Xt,ClHashtag:Yt,ClIconotron:Kt,ClInfo:Gt,ClLinkExternal:Qt,ClLorem:Jt,ClMailto:Zt,ClModal:en,ClModalConfirm:tn,ClModalOk:nn,ClNavSide:on,ClNavTop:sn,ClOrg:rn,ClPage:ln,ClPagination:an,ClPlan:cn,ClRole:dn,ClSectionForm:un,ClSectionHeadline:fn,ClSectionMain:yt,ClSectionMainSide:pn,ClSpinner:hn,ClTable:mn,ClTableCel:gn,ClTableCelActions:vn,ClTableCelAudit:bn,ClTableCelBoolean:yn,ClTableCelCheckbox:_n,ClTableCelCode:Cn,ClTableCelCurrency:kn,ClTableCelDate:$n,ClTableCelId:En,ClTableCelLinks:wn,ClTableCelUuid:Sn,ClTableFootChecked:Nn,ClTableHead:Tn,ClTableRow:An,ClTabs:Bn,ClToggle:On}}function ap(){return[rp]}function $o(e,o){const c=JSON.parse(JSON.stringify(e));for(const p in o)typeof o[p]=="object"&&!Array.isArray(o[p])?c[p]=$o(e[p]??{},o[p]):c[p]=o[p];return c}function cp(e,o){return{store:$o(e,o)}}const mr="✺";let Ti={};function dp(e,o="",c=!1){const p=Ti[o]??it(gr(o));return Object.keys(Ti).length>100&&(Ti={}),Ti[o]=p,bt(c?e.toLowerCase():e,p,c)}function bt(e,o,c){if(typeof o=="string"){const p=o.replaceAll(mr," ");return p[0]==="-"?!bt(e,p.substring(1),c):c?e.includes(p):e.toLowerCase().includes(p.toLowerCase())}else switch(o[0]){case"&":return bt(e,o[1])&&bt(e,o[2]);case"|":return bt(e,o[1])||bt(e,o[2]);default:return!1}}function gr(e){const o=[];let c=!1;for(let u=0;u<e.length;u++)c?e[u]===c?c=!1:o.push([" "].includes(e[u])?mr:e[u]):["'",'"'].includes(e[u])?c=e[u]:o.push(e[u]);const p=o.join("").replace(/\s+/g," ").trim();if(p.length<=0)return"";const b=p.split(" ");if(b.length<=0)return"";const v=[];["NOT","-"].includes(b[0])||v.push(b.shift());for(let u=0;u<b.length;u++)switch(b[u]){case"AND":case"&":case"&&":switch(b[++u]){case"NOT":case"-":b[u+1]&&(v.push("&"),v.push("-"),v.push(b[++u]));break;case void 0:break;default:v.push("&"),v.push(b[u])}break;case"OR":case"|":case"||":switch(b[++u]){case"NOT":case"-":b[u+1]&&(v.push("|"),v.push("-"),v.push(b[++u]));break;case void 0:break;default:v.push("|"),v.push(b[u])}break;case"NOT":case"-":v.push("-"),v.push(b[++u]);break;default:v.push("&"),v.push(b[u])}return` ${v.join(" ")} `.replace(/ - /g," -").trim()}function it(e){const o=e.indexOf(" | ");if(o>=0)return["|",it(e.substring(0,o)),it(e.substring(o+3))];const c=e.indexOf(" & ");if(c>=0)return["&",it(e.substring(0,c)),it(e.substring(c+3))];const p=e.indexOf(" ");return p>=0?["&",it(e.substring(0,p)),it(e.substring(p+1))]:e}const _t={DEV:"DEV",TEST:"TEST",PROD:"PROD"},vr={id:"CP",subtitle:"Access the Content Platform, manage, encode and watermark assets",title:"Content Platform",urlManage:function(e,o){return e===_t.PROD?`https://platform.content.castlabs.com/#/o/${o??""}`:`https://platform.content-stag.castlabs.com/#/o/${o??""}`},sidenav:!1},br={id:"CS",subtitle:"Manage organizations, plans, downloads",title:"Castlabs hub",urlManage:function(e,o){return Eo(e,`https://account.test.cs.castlabs.com/o/${o??""}`,`https://account.castlabs.com/o/${o??""}`)},sidenav:!0},yr={id:"DT",subtitle:"Cloud DRM & CAS licensing",title:"DRMtoday",urlManage:function(e,o){return Eo(e,`https://fe.test.drmtoday.com/dashboard/${o?`${o}/`:""}index`,`https://fe.drmtoday.com/dashboard/${o?`${o}/`:""}index`)},sidenav:!0},_r={id:"DTO",subtitle:"",title:"DRMtoday Onboard (staging)",urlManage:function(e,o){return`https://onboard.castlabs.com/o/${o??""}/devices`},sidenav:!1},Cr={id:"DTS",subtitle:"Cloud DRM & CAS licensing",title:"DRMtoday (staging)",urlManage:function(e,o){return Eo(e,`https://fe.test.drmtoday.com/dashboard/${o?`${o}/`:""}index`,`https://fe.staging.drmtoday.com/dashboard/${o?`${o}/`:""}index`)},sidenav:!1},kr={id:"PP",subtitle:"Cross-platform video players (via Castlabs hub)",title:"PRESTOplay",urlManage:function(e,o){return e===_t.PROD?`https://account.castlabs.com/o/${o}/prestoplay`:`https://account.test.cs.castlabs.com/o/${o}/prestoplay`},sidenav:!0},$r={id:"VTK",subtitle:"Cloud encoding, packaging, watermarking",title:"Video Toolkit",urlManage:function(e){return e===_t.PROD?"https://vtk.castlabs.com/":"https://vtks.castlabs.com/"},sidenav:!0},Er={id:"WM",subtitle:"Video & image forensic watermarking",title:"STARDUSTmark",urlManage:function(e,o){return e===_t.PROD?`https://watermark.castlabs.com/#/o/${o}`:`https://demo-stag.fwm.castlabs.com/#/o/${o}`},sidenav:!0};function Eo(e=_t.PROD,o,c){return[_t.DEV,_t.TEST].includes(e)?o:c}function up(){return[br,vr,yr,Cr,_r,kr,Er,$r]}const fp={CP:vr,CS:br,DT:yr,DTS:Cr,DTO:_r,PP:kr,WM:Er,VTK:$r},vo={ClAlert:xt,ClBackCancelOk:Pt,ClCookieBanner:jt,ClCopy:Wt,ClCreditcardNumber:Rt,ClDropzone:qt,ClField:Ht,ClFieldCheck:Ut,ClFieldGroup:Xt,ClHashtag:Yt,ClIconotron:Kt,ClInfo:Gt,ClLinkExternal:Qt,ClLorem:Jt,ClMailto:Zt,ClModal:en,ClModalConfirm:tn,ClModalOk:nn,ClNavSide:on,ClNavTop:sn,ClOrg:rn,ClPage:ln,ClPagination:an,ClPlan:cn,ClRole:dn,ClSectionForm:un,ClSectionHeadline:fn,ClSectionMain:yt,ClSectionMainSide:pn,ClSpinner:hn,ClTable:mn,ClTableCel:gn,ClTableCelActions:vn,ClTableCelAudit:bn,ClTableCelBoolean:yn,ClTableCelCheckbox:_n,ClTableCelCode:Cn,ClTableCelCurrency:kn,ClTableCelDate:$n,ClTableCelId:En,ClTableCelLinks:wn,ClTableCelUuid:Sn,ClTableFootChecked:Nn,ClTableHead:Tn,ClTableRow:An,ClTabs:Bn,ClToggle:On,ClMockRouterLink:Gn,ClUI:Sa};function pp(e){for(const o in vo)e.component(vo[o].name,vo[o])}exports.ClAlert=xt;exports.ClBackCancelOk=Pt;exports.ClCookieBanner=jt;exports.ClCopy=Wt;exports.ClCreditcardNumber=Rt;exports.ClDropzone=qt;exports.ClField=Ht;exports.ClFieldCheck=Ut;exports.ClFieldGroup=Xt;exports.ClHashtag=Yt;exports.ClIconotron=Kt;exports.ClInfo=Gt;exports.ClLinkExternal=Qt;exports.ClLorem=Jt;exports.ClMailto=Zt;exports.ClMockRouterLink=Gn;exports.ClModal=en;exports.ClModalConfirm=tn;exports.ClModalOk=nn;exports.ClNavSide=on;exports.ClNavTop=sn;exports.ClOrg=rn;exports.ClPage=ln;exports.ClPagination=an;exports.ClPlan=cn;exports.ClRole=dn;exports.ClSectionForm=un;exports.ClSectionHeadline=fn;exports.ClSectionMain=yt;exports.ClSectionMainSide=pn;exports.ClSpinner=hn;exports.ClTable=mn;exports.ClTableCel=gn;exports.ClTableCelActions=vn;exports.ClTableCelAudit=bn;exports.ClTableCelBoolean=yn;exports.ClTableCelCheckbox=_n;exports.ClTableCelCode=Cn;exports.ClTableCelCurrency=kn;exports.ClTableCelDate=$n;exports.ClTableCelId=En;exports.ClTableCelLinks=wn;exports.ClTableCelUuid=Sn;exports.ClTableFootChecked=Nn;exports.ClTableHead=Tn;exports.ClTableRow=An;exports.ClTabs=Bn;exports.ClToggle=On;exports.NAV=fp;exports._getProperty=Ft;exports._sanitize=gr;exports._tokenize=it;exports.castlabsUi=pp;exports.clCopyData=Ya;exports.clDebounce=Ha;exports.clFocus=Ma;exports.clFormAutofocus=La;exports.clFormFieldFocusFirstInvalid=Co;exports.clFormFieldReset=rr;exports.clFormIsValid=_o;exports.clFormIsValidAsync=lr;exports.clFormReset=sr;exports.clFormatAmount=Pa;exports.clFormatCardNumber=dr;exports.clFormatDate=ar;exports.clFormatDateTimeUTC=Ia;exports.clFormatDuration=Fa;exports.clFormatFilesize=za;exports.clFormatNumber=Oi;exports.clFormatPeriod=xa;exports.clFormatRange=ja;exports.clFormatTimeUTC=cr;exports.clGetAllComponents=lp;exports.clGetAllPlugins=ap;exports.clGetServices=up;exports.clMatch=dp;exports.clModalHide=Dn;exports.clModalIsShown=Va;exports.clModalShow=yo;exports.clModalValue=Bi;exports.clPaginate=or;exports.clPatch=$o;exports.clPatchStore=cp;exports.clRandomList=Xa;exports.clRandomString=Ua;exports.clRefClField=Qa;exports.clRefClFieldGroup=Ja;exports.clRefHTMLElement=Za;exports.clReload=Ga;exports.clReloadStore=Ka;exports.clScrollToId=Da;exports.clSort=ur;exports.clSynchronizedSubmit=Wa;exports.clSynchronizedSubmitAsync=Ra;exports.clTableSorter=fr;exports.clTableSorterObjects=qa;exports.clVClipboard=ko;exports.clVTooltip=Mn;
|
|
30
30
|
//# sourceMappingURL=castlabs-ui.common.js.map
|