@castlabs/ui 5.4.2 → 5.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");var Ks=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ka(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Gs={},Qs;function $a(){return Qs||(Qs=1,function(){var t=function(m,u){return t=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[_])},t(m,u)},s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Ks<"u"?Ks:typeof self<"u"?self:{},a=function(m){var u=typeof m;return m!=null&&(u=="object"||u=="function")},p=typeof s=="object"&&s&&s.Object===Object&&s,v=typeof self=="object"&&self&&self.Object===Object&&self,b=p||v||Function("return this")(),f=b,S=function(){return f.Date.now()},P=/\s/,se=function(m){for(var u=m.length;u--&&P.test(m.charAt(u)););return u},le=/^\s+/,ct=function(m){return m&&m.slice(0,se(m)+1).replace(le,"")},Be=b.Symbol,De=Be,Ke=Object.prototype,Ge=Ke.hasOwnProperty,re=Ke.toString,Q=De?De.toStringTag:void 0,ne=function(m){var u=Ge.call(m,Q),h=m[Q];try{m[Q]=void 0;var l=!0}catch{}var _=re.call(m);return l&&(u?m[Q]=h:delete m[Q]),_},dt=Object.prototype.toString,Qe=ne,Mt=function(m){return dt.call(m)},ut=Be?Be.toStringTag:void 0,Lt=function(m){return m==null?m===void 0?"[object Undefined]":"[object Null]":ut&&ut in Object(m)?Qe(m):Mt(m)},Je=function(m){return m!=null&&typeof m=="object"},pt=ct,Ze=a,zt=function(m){return typeof m=="symbol"||Je(m)&&Lt(m)=="[object Symbol]"},ft=/^[-+]0x[0-9a-f]+$/i,ht=/^0b[01]+$/i,mt=/^0o[0-7]+$/i,gt=parseInt,Yn=a,vt=S,ai=function(m){if(typeof m=="number")return m;if(zt(m))return NaN;if(Ze(m)){var u=typeof m.valueOf=="function"?m.valueOf():m;m=Ze(u)?u+"":u}if(typeof m!="string")return m===0?m:+m;m=pt(m);var h=ht.test(m);return h||mt.test(m)?gt(m.slice(2),h?2:8):ft.test(m)?NaN:+m},ci=Math.max,C=Math.min,et=function(m,u,h){var l,_,A,M,z,K,X=0,ce=!1,J=!1,Z=!0;if(typeof m!="function")throw new TypeError("Expected a function");function ue(te){var ie=l,ve=_;return l=_=void 0,X=te,M=m.apply(ve,ie)}function Me(te){return X=te,z=setTimeout(Pe,u),ce?ue(te):M}function be(te){var ie=te-K;return K===void 0||ie>=u||ie<0||J&&te-X>=A}function Pe(){var te=vt();if(be(te))return Ft(te);z=setTimeout(Pe,function(ie){var ve=u-(ie-K);return J?C(ve,A-(ie-X)):ve}(te))}function Ft(te){return z=void 0,Z&&l?ue(te):(l=_=void 0,M)}function ot(){var te=vt(),ie=be(te);if(l=arguments,_=this,K=te,ie){if(z===void 0)return Me(K);if(J)return clearTimeout(z),z=setTimeout(Pe,u),ue(K)}return z===void 0&&(z=setTimeout(Pe,u)),M}return u=ai(u)||0,Yn(h)&&(ce=!!h.leading,A=(J="maxWait"in h)?ci(ai(h.maxWait)||0,u):A,Z="trailing"in h?!!h.trailing:Z),ot.cancel=function(){z!==void 0&&clearTimeout(z),X=0,l=K=_=z=void 0},ot.flush=function(){return z===void 0?M:Ft(vt())},ot},di=et,Kn=a,Ve=function(m,u,h){var l=!0,_=!0;if(typeof m!="function")throw new TypeError("Expected a function");return Kn(h)&&(l="leading"in h?!!h.leading:l,_="trailing"in h?!!h.trailing:_),di(m,u,{leading:l,maxWait:u,trailing:_})},$e=function(){return $e=Object.assign||function(m){for(var u,h=1,l=arguments.length;h<l;h++)for(var _ in u=arguments[h])Object.prototype.hasOwnProperty.call(u,_)&&(m[_]=u[_]);return m},$e.apply(this,arguments)};function ge(m){return m&&m.ownerDocument&&m.ownerDocument.defaultView?m.ownerDocument.defaultView:window}function It(m){return m&&m.ownerDocument?m.ownerDocument:document}var N=function(m){return Array.prototype.reduce.call(m,function(u,h){var l=h.name.match(/data-simplebar-(.+)/);if(l){var _=l[1].replace(/\W+(.)/g,function(A,M){return M.toUpperCase()});switch(h.value){case"true":u[_]=!0;break;case"false":u[_]=!1;break;case void 0:u[_]=!0;break;default:u[_]=h.value}}return u},{})};function bt(m,u){var h;m&&(h=m.classList).add.apply(h,u.split(" "))}function Gn(m,u){m&&u.split(" ").forEach(function(h){m.classList.remove(h)})}function ui(m){return".".concat(m.split(" ").join("."))}var Qn=!(typeof window>"u"||!window.document||!window.document.createElement),yt=Object.freeze({__proto__:null,addClasses:bt,canUseDOM:Qn,classNamesToQuery:ui,getElementDocument:It,getElementWindow:ge,getOptions:N,removeClasses:Gn}),tt=null,nt=null;function He(){if(tt===null){if(typeof document>"u")return tt=0;var m=document.body,u=document.createElement("div");u.classList.add("simplebar-hide-scrollbar"),m.appendChild(u);var h=u.getBoundingClientRect().right;m.removeChild(u),tt=h}return tt}Qn&&window.addEventListener("resize",function(){nt!==window.devicePixelRatio&&(nt=window.devicePixelRatio,tt=null)});var Ie=ge,Jn=It,Li=N,xe=bt,Fe=Gn,ae=ui,xt=function(){function m(u,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 _=Ie(l.el);l.scrollXTicking||(_.requestAnimationFrame(l.scrollX),l.scrollXTicking=!0),l.scrollYTicking||(_.requestAnimationFrame(l.scrollY),l.scrollYTicking=!0),l.isScrolling||(l.isScrolling=!0,xe(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(){Fe(l.el,l.classNames.scrolling),l.options.autoHide&&(l.hideScrollbar("x"),l.hideScrollbar("y")),l.isScrolling=!1},this.onMouseEnter=function(){l.isMouseEntering||(xe(l.el,l.classNames.mouseEntered),l.showScrollbar("x"),l.showScrollbar("y"),l.isMouseEntering=!0),l.onMouseEntered()},this._onMouseEntered=function(){Fe(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 A,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)&&(A=l.isWithinBounds(l.axis.x.track.rect)),(l.axis.y.isOverflowing||l.axis.y.forceVisible)&&(M=l.isWithinBounds(l.axis.y.track.rect)),(A||M)&&(_.stopPropagation(),_.type==="pointerdown"&&_.pointerType!=="touch"&&(A&&(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 A,M,z,K,X,ce,J,Z,ue,Me,be;if(l.draggedAxis&&l.contentWrapperEl){var Pe=l.axis[l.draggedAxis].track,Ft=(M=(A=Pe.rect)===null||A===void 0?void 0:A[l.axis[l.draggedAxis].sizeAttr])!==null&&M!==void 0?M:0,ot=l.axis[l.draggedAxis].scrollbar,te=(K=(z=l.contentWrapperEl)===null||z===void 0?void 0:z[l.axis[l.draggedAxis].scrollSizeAttr])!==null&&K!==void 0?K:0,ie=parseInt((ce=(X=l.elStyles)===null||X===void 0?void 0:X[l.axis[l.draggedAxis].sizeAttr])!==null&&ce!==void 0?ce:"0px",10);_.preventDefault(),_.stopPropagation();var ve=(l.draggedAxis==="y"?_.pageY:_.pageX)-((Z=(J=Pe.rect)===null||J===void 0?void 0:J[l.axis[l.draggedAxis].offsetAttr])!==null&&Z!==void 0?Z:0)-l.axis[l.draggedAxis].dragOffset,Pt=(ve=l.draggedAxis==="x"&&l.isRtl?((Me=(ue=Pe.rect)===null||ue===void 0?void 0:ue[l.axis[l.draggedAxis].sizeAttr])!==null&&Me!==void 0?Me:0)-ot.size-ve:ve)/(Ft-ot.size)*(te-ie);l.draggedAxis==="x"&&l.isRtl&&(Pt=!((be=m.getRtlHelpers())===null||be===void 0)&&be.isScrollingToNegative?-Pt:Pt),l.contentWrapperEl[l.axis[l.draggedAxis].scrollOffsetAttr]=Pt}},this.onEndDrag=function(_){l.isDragging=!1;var A=Jn(l.el),M=Ie(l.el);_.preventDefault(),_.stopPropagation(),Fe(l.el,l.classNames.dragging),l.onStopScrolling(),A.removeEventListener("mousemove",l.drag,!0),A.removeEventListener("mouseup",l.onEndDrag,!0),l.removePreventClickId=M.setTimeout(function(){A.removeEventListener("click",l.preventClick,!0),A.removeEventListener("dblclick",l.preventClick,!0),l.removePreventClickId=null})},this.preventClick=function(_){_.preventDefault(),_.stopPropagation()},this.el=u,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=Ve(this._onMouseMove,64),this.onWindowResize=et(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=et(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=et(this._onMouseEntered,this.stopScrollDelay),this.init()}return m.getRtlHelpers=function(){if(m.rtlHelpers)return m.rtlHelpers;var u=document.createElement("div");u.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var h=u.firstElementChild,l=h==null?void 0:h.firstElementChild;if(!l)return null;document.body.appendChild(h),h.scrollLeft=0;var _=m.getOffset(h),A=m.getOffset(l);h.scrollLeft=-999;var M=m.getOffset(l);return document.body.removeChild(h),m.rtlHelpers={isScrollOriginAtZero:_.left!==A.left,isScrollingToNegative:A.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:He()}catch{return He()}},m.getOffset=function(u){var h=u.getBoundingClientRect(),l=Jn(u),_=Ie(u);return{top:h.top+(_.pageYOffset||l.documentElement.scrollTop),left:h.left+(_.pageXOffset||l.documentElement.scrollLeft)}},m.prototype.init=function(){Qn&&(this.initDOM(),this.rtlHelpers=m.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},m.prototype.initDOM=function(){var u,h;this.wrapperEl=this.el.querySelector(ae(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(ae(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(ae(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(ae(this.classNames.offset)),this.maskEl=this.el.querySelector(ae(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,ae(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(ae(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(ae(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(ae(this.classNames.track)).concat(ae(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(ae(this.classNames.track)).concat(ae(this.classNames.vertical))),this.axis.x.scrollbar.el=((u=this.axis.x.track.el)===null||u===void 0?void 0:u.querySelector(ae(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((h=this.axis.y.track.el)===null||h===void 0?void 0:h.querySelector(ae(this.classNames.scrollbar)))||null,this.options.autoHide||(xe(this.axis.x.scrollbar.el,this.classNames.visible),xe(this.axis.y.scrollbar.el,this.classNames.visible))},m.prototype.initListeners=function(){var u,h=this,l=Ie(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),(u=this.contentWrapperEl)===null||u===void 0||u.addEventListener("scroll",this.onScroll),l.addEventListener("resize",this.onWindowResize),this.contentEl){if(window.ResizeObserver){var _=!1,A=l.ResizeObserver||ResizeObserver;this.resizeObserver=new A(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 u=Ie(this.el);this.elStyles=u.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,A=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,X=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=l?"auto":"100%",this.placeholderEl.style.width=_?"".concat(h||X,"px"):"auto",this.placeholderEl.style.height="".concat(K,"px");var ce=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=h!==0&&X>h,this.axis.y.isOverflowing=K>ce,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 J=this.axis.x.isOverflowing?this.scrollbarWidth:0,Z=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&X>A-Z,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&K>ce-J,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(u){var h,l;if(u===void 0&&(u="y"),!this.axis[u].isOverflowing||!this.contentEl)return 0;var _,A=this.contentEl[this.axis[u].scrollSizeAttr],M=(l=(h=this.axis[u].track.el)===null||h===void 0?void 0:h[this.axis[u].offsetSizeAttr])!==null&&l!==void 0?l:0,z=M/A;return _=Math.max(~~(z*M),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(_=Math.min(_,this.options.scrollbarMaxSize)),_},m.prototype.positionScrollbar=function(u){var h,l,_;u===void 0&&(u="y");var A=this.axis[u].scrollbar;if(this.axis[u].isOverflowing&&this.contentWrapperEl&&A.el&&this.elStyles){var M=this.contentWrapperEl[this.axis[u].scrollSizeAttr],z=((h=this.axis[u].track.el)===null||h===void 0?void 0:h[this.axis[u].offsetSizeAttr])||0,K=parseInt(this.elStyles[this.axis[u].sizeAttr],10),X=this.contentWrapperEl[this.axis[u].scrollOffsetAttr];X=u==="x"&&this.isRtl&&(!((l=m.getRtlHelpers())===null||l===void 0)&&l.isScrollOriginAtZero)?-X:X,u==="x"&&this.isRtl&&(X=!((_=m.getRtlHelpers())===null||_===void 0)&&_.isScrollingToNegative?X:-X);var ce=X/(M-K),J=~~((z-A.size)*ce);J=u==="x"&&this.isRtl?-J+(z-A.size):J,A.el.style.transform=u==="x"?"translate3d(".concat(J,"px, 0, 0)"):"translate3d(0, ".concat(J,"px, 0)")}},m.prototype.toggleTrackVisibility=function(u){u===void 0&&(u="y");var h=this.axis[u].track.el,l=this.axis[u].scrollbar.el;h&&l&&this.contentWrapperEl&&(this.axis[u].isOverflowing||this.axis[u].forceVisible?(h.style.visibility="visible",this.contentWrapperEl.style[this.axis[u].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(u))):(h.style.visibility="hidden",this.contentWrapperEl.style[this.axis[u].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(u))),this.axis[u].isOverflowing?l.style.display="block":l.style.display="none")},m.prototype.showScrollbar=function(u){u===void 0&&(u="y"),this.axis[u].isOverflowing&&!this.axis[u].scrollbar.isVisible&&(xe(this.axis[u].scrollbar.el,this.classNames.visible),this.axis[u].scrollbar.isVisible=!0)},m.prototype.hideScrollbar=function(u){u===void 0&&(u="y"),this.isDragging||this.axis[u].isOverflowing&&this.axis[u].scrollbar.isVisible&&(Fe(this.axis[u].scrollbar.el,this.classNames.visible),this.axis[u].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(u){u===void 0&&(u="y");var h=this.axis[u];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(u),xe(h.track.el,this.classNames.hover),this.isWithinBounds(h.scrollbar.rect)?xe(h.scrollbar.el,this.classNames.hover):Fe(h.scrollbar.el,this.classNames.hover)):(Fe(h.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(u)))},m.prototype.onMouseLeaveForAxis=function(u){u===void 0&&(u="y"),Fe(this.axis[u].track.el,this.classNames.hover),Fe(this.axis[u].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(u)},m.prototype.onDragStart=function(u,h){var l;h===void 0&&(h="y"),this.isDragging=!0;var _=Jn(this.el),A=Ie(this.el),M=this.axis[h].scrollbar,z=h==="y"?u.pageY:u.pageX;this.axis[h].dragOffset=z-(((l=M.rect)===null||l===void 0?void 0:l[this.axis[h].offsetAttr])||0),this.draggedAxis=h,xe(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)):(A.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},m.prototype.onTrackClick=function(u,h){var l,_,A,M,z=this;h===void 0&&(h="y");var K=this.axis[h];if(this.options.clickOnTrack&&K.scrollbar.el&&this.contentWrapperEl){u.preventDefault();var X=Ie(this.el);this.axis[h].scrollbar.rect=K.scrollbar.el.getBoundingClientRect();var ce=(_=(l=this.axis[h].scrollbar.rect)===null||l===void 0?void 0:l[this.axis[h].offsetAttr])!==null&&_!==void 0?_:0,J=parseInt((M=(A=this.elStyles)===null||A===void 0?void 0:A[this.axis[h].sizeAttr])!==null&&M!==void 0?M:"0px",10),Z=this.contentWrapperEl[this.axis[h].scrollOffsetAttr],ue=(h==="y"?this.mouseY-ce:this.mouseX-ce)<0?-1:1,Me=ue===-1?Z-J:Z+J,be=function(){z.contentWrapperEl&&(ue===-1?Z>Me&&(Z-=40,z.contentWrapperEl[z.axis[h].scrollOffsetAttr]=Z,X.requestAnimationFrame(be)):Z<Me&&(Z+=40,z.contentWrapperEl[z.axis[h].scrollOffsetAttr]=Z,X.requestAnimationFrame(be)))};be()}},m.prototype.getContentElement=function(){return this.contentEl},m.prototype.getScrollElement=function(){return this.contentWrapperEl},m.prototype.removeListeners=function(){var u=Ie(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),u.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(u){return this.mouseX>=u.left&&this.mouseX<=u.left+u.width&&this.mouseY>=u.top&&this.mouseY<=u.top+u.height},m.prototype.findChild=function(u,h){var l=u.matches||u.webkitMatchesSelector||u.mozMatchesSelector||u.msMatchesSelector;return Array.prototype.filter.call(u.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=yt,m}(),it=xt.helpers,Ee=it.getOptions,de=it.addClasses,zi=it.canUseDOM,pi=function(m){function u(){for(var h=[],l=0;l<arguments.length;l++)h[l]=arguments[l];var _=m.apply(this,h)||this;return u.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}t(h,l),h.prototype=l===null?Object.create(l):(_.prototype=l.prototype,new _)}(u,m),u.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"||u.instances.has(h)||new u(h,Ee(h.attributes))})},u.removeObserver=function(){var h;(h=u.globalObserver)===null||h===void 0||h.disconnect()},u.prototype.initDOM=function(){var h,l,_,A=this;if(!Array.prototype.filter.call(this.el.children,function(K){return K.classList.contains(A.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"),de(this.wrapperEl,this.classNames.wrapper),de(this.contentWrapperEl,this.classNames.contentWrapper),de(this.offsetEl,this.classNames.offset),de(this.maskEl,this.classNames.mask),de(this.contentEl,this.classNames.contentEl),de(this.placeholderEl,this.classNames.placeholder),de(this.heightAutoObserverWrapperEl,this.classNames.heightAutoObserverWrapperEl),de(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");de(M,this.classNames.track),de(z,this.classNames.scrollbar),M.appendChild(z),this.axis.x.track.el=M.cloneNode(!0),de(this.axis.x.track.el,this.classNames.horizontal),this.axis.y.track.el=M.cloneNode(!0),de(this.axis.y.track.el,this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}xt.prototype.initDOM.call(this),this.el.setAttribute("data-simplebar","init")},u.prototype.unMount=function(){xt.prototype.unMount.call(this),u.instances.delete(this.el)},u.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),typeof MutationObserver<"u"&&(this.globalObserver=new MutationObserver(u.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))},u.handleMutations=function(h){h.forEach(function(l){l.addedNodes.forEach(function(_){_.nodeType===1&&(_.hasAttribute("data-simplebar")?!u.instances.has(_)&&document.documentElement.contains(_)&&new u(_,Ee(_.attributes)):_.querySelectorAll("[data-simplebar]").forEach(function(A){A.getAttribute("data-simplebar")!=="init"&&!u.instances.has(A)&&document.documentElement.contains(A)&&new u(A,Ee(A.attributes))}))}),l.removedNodes.forEach(function(_){var A;_.nodeType===1&&(_.getAttribute("data-simplebar")==="init"?!document.documentElement.contains(_)&&((A=u.instances.get(_))===null||A===void 0||A.unMount()):Array.prototype.forEach.call(_.querySelectorAll('[data-simplebar="init"]'),function(M){var z;!document.documentElement.contains(M)&&((z=u.instances.get(M))===null||z===void 0||z.unMount())}))})})},u.instances=new WeakMap,u}(xt);return zi&&pi.initHtmlApi(),pi}()),Gs}$a();const Ea=n.defineComponent({name:"ClUI",methods:{VITE_APP_VERSION:()=>"5.4.2"}}),O=(t,s)=>{const a=t.__vccOpts||t;for(const[p,v]of s)a[p]=v;return a};function wa(t,s,a,p,v,b){return n.toDisplayString(t.VITE_APP_VERSION())}const Sa=O(Ea,[["render",wa]]),Na=n.defineComponent({name:"ClAlert",props:{type:{type:String,default:"info"}}});function Aa(t,s,a,p,v,b){return n.openBlock(),n.createElementBlock("p",{class:n.normalizeClass(["alert",`cl-alert-${t.type}`]),role:"alert"},[n.renderSlot(t.$slots,"default")],2)}const en=O(Na,[["render",Aa]]);en.install=t=>{t.component(en.name??"ClNoName",en)};var Di={exports:{}};/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");var Ks=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ka(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Gs={},Qs;function $a(){return Qs||(Qs=1,function(){var t=function(m,u){return t=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[_])},t(m,u)},s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Ks<"u"?Ks:typeof self<"u"?self:{},a=function(m){var u=typeof m;return m!=null&&(u=="object"||u=="function")},p=typeof s=="object"&&s&&s.Object===Object&&s,v=typeof self=="object"&&self&&self.Object===Object&&self,b=p||v||Function("return this")(),f=b,S=function(){return f.Date.now()},P=/\s/,se=function(m){for(var u=m.length;u--&&P.test(m.charAt(u)););return u},le=/^\s+/,ct=function(m){return m&&m.slice(0,se(m)+1).replace(le,"")},Be=b.Symbol,De=Be,Ke=Object.prototype,Ge=Ke.hasOwnProperty,re=Ke.toString,Q=De?De.toStringTag:void 0,ne=function(m){var u=Ge.call(m,Q),h=m[Q];try{m[Q]=void 0;var l=!0}catch{}var _=re.call(m);return l&&(u?m[Q]=h:delete m[Q]),_},dt=Object.prototype.toString,Qe=ne,Mt=function(m){return dt.call(m)},ut=Be?Be.toStringTag:void 0,Lt=function(m){return m==null?m===void 0?"[object Undefined]":"[object Null]":ut&&ut in Object(m)?Qe(m):Mt(m)},Je=function(m){return m!=null&&typeof m=="object"},pt=ct,Ze=a,zt=function(m){return typeof m=="symbol"||Je(m)&&Lt(m)=="[object Symbol]"},ft=/^[-+]0x[0-9a-f]+$/i,ht=/^0b[01]+$/i,mt=/^0o[0-7]+$/i,gt=parseInt,Yn=a,vt=S,ai=function(m){if(typeof m=="number")return m;if(zt(m))return NaN;if(Ze(m)){var u=typeof m.valueOf=="function"?m.valueOf():m;m=Ze(u)?u+"":u}if(typeof m!="string")return m===0?m:+m;m=pt(m);var h=ht.test(m);return h||mt.test(m)?gt(m.slice(2),h?2:8):ft.test(m)?NaN:+m},ci=Math.max,C=Math.min,et=function(m,u,h){var l,_,A,M,z,K,X=0,ce=!1,J=!1,Z=!0;if(typeof m!="function")throw new TypeError("Expected a function");function ue(te){var ie=l,ve=_;return l=_=void 0,X=te,M=m.apply(ve,ie)}function Me(te){return X=te,z=setTimeout(Pe,u),ce?ue(te):M}function be(te){var ie=te-K;return K===void 0||ie>=u||ie<0||J&&te-X>=A}function Pe(){var te=vt();if(be(te))return Ft(te);z=setTimeout(Pe,function(ie){var ve=u-(ie-K);return J?C(ve,A-(ie-X)):ve}(te))}function Ft(te){return z=void 0,Z&&l?ue(te):(l=_=void 0,M)}function ot(){var te=vt(),ie=be(te);if(l=arguments,_=this,K=te,ie){if(z===void 0)return Me(K);if(J)return clearTimeout(z),z=setTimeout(Pe,u),ue(K)}return z===void 0&&(z=setTimeout(Pe,u)),M}return u=ai(u)||0,Yn(h)&&(ce=!!h.leading,A=(J="maxWait"in h)?ci(ai(h.maxWait)||0,u):A,Z="trailing"in h?!!h.trailing:Z),ot.cancel=function(){z!==void 0&&clearTimeout(z),X=0,l=K=_=z=void 0},ot.flush=function(){return z===void 0?M:Ft(vt())},ot},di=et,Kn=a,Ve=function(m,u,h){var l=!0,_=!0;if(typeof m!="function")throw new TypeError("Expected a function");return Kn(h)&&(l="leading"in h?!!h.leading:l,_="trailing"in h?!!h.trailing:_),di(m,u,{leading:l,maxWait:u,trailing:_})},$e=function(){return $e=Object.assign||function(m){for(var u,h=1,l=arguments.length;h<l;h++)for(var _ in u=arguments[h])Object.prototype.hasOwnProperty.call(u,_)&&(m[_]=u[_]);return m},$e.apply(this,arguments)};function ge(m){return m&&m.ownerDocument&&m.ownerDocument.defaultView?m.ownerDocument.defaultView:window}function It(m){return m&&m.ownerDocument?m.ownerDocument:document}var N=function(m){return Array.prototype.reduce.call(m,function(u,h){var l=h.name.match(/data-simplebar-(.+)/);if(l){var _=l[1].replace(/\W+(.)/g,function(A,M){return M.toUpperCase()});switch(h.value){case"true":u[_]=!0;break;case"false":u[_]=!1;break;case void 0:u[_]=!0;break;default:u[_]=h.value}}return u},{})};function bt(m,u){var h;m&&(h=m.classList).add.apply(h,u.split(" "))}function Gn(m,u){m&&u.split(" ").forEach(function(h){m.classList.remove(h)})}function ui(m){return".".concat(m.split(" ").join("."))}var Qn=!(typeof window>"u"||!window.document||!window.document.createElement),yt=Object.freeze({__proto__:null,addClasses:bt,canUseDOM:Qn,classNamesToQuery:ui,getElementDocument:It,getElementWindow:ge,getOptions:N,removeClasses:Gn}),tt=null,nt=null;function He(){if(tt===null){if(typeof document>"u")return tt=0;var m=document.body,u=document.createElement("div");u.classList.add("simplebar-hide-scrollbar"),m.appendChild(u);var h=u.getBoundingClientRect().right;m.removeChild(u),tt=h}return tt}Qn&&window.addEventListener("resize",function(){nt!==window.devicePixelRatio&&(nt=window.devicePixelRatio,tt=null)});var Ie=ge,Jn=It,Li=N,xe=bt,Fe=Gn,ae=ui,xt=function(){function m(u,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 _=Ie(l.el);l.scrollXTicking||(_.requestAnimationFrame(l.scrollX),l.scrollXTicking=!0),l.scrollYTicking||(_.requestAnimationFrame(l.scrollY),l.scrollYTicking=!0),l.isScrolling||(l.isScrolling=!0,xe(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(){Fe(l.el,l.classNames.scrolling),l.options.autoHide&&(l.hideScrollbar("x"),l.hideScrollbar("y")),l.isScrolling=!1},this.onMouseEnter=function(){l.isMouseEntering||(xe(l.el,l.classNames.mouseEntered),l.showScrollbar("x"),l.showScrollbar("y"),l.isMouseEntering=!0),l.onMouseEntered()},this._onMouseEntered=function(){Fe(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 A,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)&&(A=l.isWithinBounds(l.axis.x.track.rect)),(l.axis.y.isOverflowing||l.axis.y.forceVisible)&&(M=l.isWithinBounds(l.axis.y.track.rect)),(A||M)&&(_.stopPropagation(),_.type==="pointerdown"&&_.pointerType!=="touch"&&(A&&(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 A,M,z,K,X,ce,J,Z,ue,Me,be;if(l.draggedAxis&&l.contentWrapperEl){var Pe=l.axis[l.draggedAxis].track,Ft=(M=(A=Pe.rect)===null||A===void 0?void 0:A[l.axis[l.draggedAxis].sizeAttr])!==null&&M!==void 0?M:0,ot=l.axis[l.draggedAxis].scrollbar,te=(K=(z=l.contentWrapperEl)===null||z===void 0?void 0:z[l.axis[l.draggedAxis].scrollSizeAttr])!==null&&K!==void 0?K:0,ie=parseInt((ce=(X=l.elStyles)===null||X===void 0?void 0:X[l.axis[l.draggedAxis].sizeAttr])!==null&&ce!==void 0?ce:"0px",10);_.preventDefault(),_.stopPropagation();var ve=(l.draggedAxis==="y"?_.pageY:_.pageX)-((Z=(J=Pe.rect)===null||J===void 0?void 0:J[l.axis[l.draggedAxis].offsetAttr])!==null&&Z!==void 0?Z:0)-l.axis[l.draggedAxis].dragOffset,Pt=(ve=l.draggedAxis==="x"&&l.isRtl?((Me=(ue=Pe.rect)===null||ue===void 0?void 0:ue[l.axis[l.draggedAxis].sizeAttr])!==null&&Me!==void 0?Me:0)-ot.size-ve:ve)/(Ft-ot.size)*(te-ie);l.draggedAxis==="x"&&l.isRtl&&(Pt=!((be=m.getRtlHelpers())===null||be===void 0)&&be.isScrollingToNegative?-Pt:Pt),l.contentWrapperEl[l.axis[l.draggedAxis].scrollOffsetAttr]=Pt}},this.onEndDrag=function(_){l.isDragging=!1;var A=Jn(l.el),M=Ie(l.el);_.preventDefault(),_.stopPropagation(),Fe(l.el,l.classNames.dragging),l.onStopScrolling(),A.removeEventListener("mousemove",l.drag,!0),A.removeEventListener("mouseup",l.onEndDrag,!0),l.removePreventClickId=M.setTimeout(function(){A.removeEventListener("click",l.preventClick,!0),A.removeEventListener("dblclick",l.preventClick,!0),l.removePreventClickId=null})},this.preventClick=function(_){_.preventDefault(),_.stopPropagation()},this.el=u,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=Ve(this._onMouseMove,64),this.onWindowResize=et(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=et(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=et(this._onMouseEntered,this.stopScrollDelay),this.init()}return m.getRtlHelpers=function(){if(m.rtlHelpers)return m.rtlHelpers;var u=document.createElement("div");u.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var h=u.firstElementChild,l=h==null?void 0:h.firstElementChild;if(!l)return null;document.body.appendChild(h),h.scrollLeft=0;var _=m.getOffset(h),A=m.getOffset(l);h.scrollLeft=-999;var M=m.getOffset(l);return document.body.removeChild(h),m.rtlHelpers={isScrollOriginAtZero:_.left!==A.left,isScrollingToNegative:A.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:He()}catch{return He()}},m.getOffset=function(u){var h=u.getBoundingClientRect(),l=Jn(u),_=Ie(u);return{top:h.top+(_.pageYOffset||l.documentElement.scrollTop),left:h.left+(_.pageXOffset||l.documentElement.scrollLeft)}},m.prototype.init=function(){Qn&&(this.initDOM(),this.rtlHelpers=m.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},m.prototype.initDOM=function(){var u,h;this.wrapperEl=this.el.querySelector(ae(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(ae(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(ae(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(ae(this.classNames.offset)),this.maskEl=this.el.querySelector(ae(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,ae(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(ae(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(ae(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(ae(this.classNames.track)).concat(ae(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(ae(this.classNames.track)).concat(ae(this.classNames.vertical))),this.axis.x.scrollbar.el=((u=this.axis.x.track.el)===null||u===void 0?void 0:u.querySelector(ae(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((h=this.axis.y.track.el)===null||h===void 0?void 0:h.querySelector(ae(this.classNames.scrollbar)))||null,this.options.autoHide||(xe(this.axis.x.scrollbar.el,this.classNames.visible),xe(this.axis.y.scrollbar.el,this.classNames.visible))},m.prototype.initListeners=function(){var u,h=this,l=Ie(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),(u=this.contentWrapperEl)===null||u===void 0||u.addEventListener("scroll",this.onScroll),l.addEventListener("resize",this.onWindowResize),this.contentEl){if(window.ResizeObserver){var _=!1,A=l.ResizeObserver||ResizeObserver;this.resizeObserver=new A(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 u=Ie(this.el);this.elStyles=u.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,A=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,X=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=l?"auto":"100%",this.placeholderEl.style.width=_?"".concat(h||X,"px"):"auto",this.placeholderEl.style.height="".concat(K,"px");var ce=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=h!==0&&X>h,this.axis.y.isOverflowing=K>ce,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 J=this.axis.x.isOverflowing?this.scrollbarWidth:0,Z=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&X>A-Z,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&K>ce-J,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(u){var h,l;if(u===void 0&&(u="y"),!this.axis[u].isOverflowing||!this.contentEl)return 0;var _,A=this.contentEl[this.axis[u].scrollSizeAttr],M=(l=(h=this.axis[u].track.el)===null||h===void 0?void 0:h[this.axis[u].offsetSizeAttr])!==null&&l!==void 0?l:0,z=M/A;return _=Math.max(~~(z*M),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(_=Math.min(_,this.options.scrollbarMaxSize)),_},m.prototype.positionScrollbar=function(u){var h,l,_;u===void 0&&(u="y");var A=this.axis[u].scrollbar;if(this.axis[u].isOverflowing&&this.contentWrapperEl&&A.el&&this.elStyles){var M=this.contentWrapperEl[this.axis[u].scrollSizeAttr],z=((h=this.axis[u].track.el)===null||h===void 0?void 0:h[this.axis[u].offsetSizeAttr])||0,K=parseInt(this.elStyles[this.axis[u].sizeAttr],10),X=this.contentWrapperEl[this.axis[u].scrollOffsetAttr];X=u==="x"&&this.isRtl&&(!((l=m.getRtlHelpers())===null||l===void 0)&&l.isScrollOriginAtZero)?-X:X,u==="x"&&this.isRtl&&(X=!((_=m.getRtlHelpers())===null||_===void 0)&&_.isScrollingToNegative?X:-X);var ce=X/(M-K),J=~~((z-A.size)*ce);J=u==="x"&&this.isRtl?-J+(z-A.size):J,A.el.style.transform=u==="x"?"translate3d(".concat(J,"px, 0, 0)"):"translate3d(0, ".concat(J,"px, 0)")}},m.prototype.toggleTrackVisibility=function(u){u===void 0&&(u="y");var h=this.axis[u].track.el,l=this.axis[u].scrollbar.el;h&&l&&this.contentWrapperEl&&(this.axis[u].isOverflowing||this.axis[u].forceVisible?(h.style.visibility="visible",this.contentWrapperEl.style[this.axis[u].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(u))):(h.style.visibility="hidden",this.contentWrapperEl.style[this.axis[u].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(u))),this.axis[u].isOverflowing?l.style.display="block":l.style.display="none")},m.prototype.showScrollbar=function(u){u===void 0&&(u="y"),this.axis[u].isOverflowing&&!this.axis[u].scrollbar.isVisible&&(xe(this.axis[u].scrollbar.el,this.classNames.visible),this.axis[u].scrollbar.isVisible=!0)},m.prototype.hideScrollbar=function(u){u===void 0&&(u="y"),this.isDragging||this.axis[u].isOverflowing&&this.axis[u].scrollbar.isVisible&&(Fe(this.axis[u].scrollbar.el,this.classNames.visible),this.axis[u].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(u){u===void 0&&(u="y");var h=this.axis[u];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(u),xe(h.track.el,this.classNames.hover),this.isWithinBounds(h.scrollbar.rect)?xe(h.scrollbar.el,this.classNames.hover):Fe(h.scrollbar.el,this.classNames.hover)):(Fe(h.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(u)))},m.prototype.onMouseLeaveForAxis=function(u){u===void 0&&(u="y"),Fe(this.axis[u].track.el,this.classNames.hover),Fe(this.axis[u].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(u)},m.prototype.onDragStart=function(u,h){var l;h===void 0&&(h="y"),this.isDragging=!0;var _=Jn(this.el),A=Ie(this.el),M=this.axis[h].scrollbar,z=h==="y"?u.pageY:u.pageX;this.axis[h].dragOffset=z-(((l=M.rect)===null||l===void 0?void 0:l[this.axis[h].offsetAttr])||0),this.draggedAxis=h,xe(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)):(A.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},m.prototype.onTrackClick=function(u,h){var l,_,A,M,z=this;h===void 0&&(h="y");var K=this.axis[h];if(this.options.clickOnTrack&&K.scrollbar.el&&this.contentWrapperEl){u.preventDefault();var X=Ie(this.el);this.axis[h].scrollbar.rect=K.scrollbar.el.getBoundingClientRect();var ce=(_=(l=this.axis[h].scrollbar.rect)===null||l===void 0?void 0:l[this.axis[h].offsetAttr])!==null&&_!==void 0?_:0,J=parseInt((M=(A=this.elStyles)===null||A===void 0?void 0:A[this.axis[h].sizeAttr])!==null&&M!==void 0?M:"0px",10),Z=this.contentWrapperEl[this.axis[h].scrollOffsetAttr],ue=(h==="y"?this.mouseY-ce:this.mouseX-ce)<0?-1:1,Me=ue===-1?Z-J:Z+J,be=function(){z.contentWrapperEl&&(ue===-1?Z>Me&&(Z-=40,z.contentWrapperEl[z.axis[h].scrollOffsetAttr]=Z,X.requestAnimationFrame(be)):Z<Me&&(Z+=40,z.contentWrapperEl[z.axis[h].scrollOffsetAttr]=Z,X.requestAnimationFrame(be)))};be()}},m.prototype.getContentElement=function(){return this.contentEl},m.prototype.getScrollElement=function(){return this.contentWrapperEl},m.prototype.removeListeners=function(){var u=Ie(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),u.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(u){return this.mouseX>=u.left&&this.mouseX<=u.left+u.width&&this.mouseY>=u.top&&this.mouseY<=u.top+u.height},m.prototype.findChild=function(u,h){var l=u.matches||u.webkitMatchesSelector||u.mozMatchesSelector||u.msMatchesSelector;return Array.prototype.filter.call(u.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=yt,m}(),it=xt.helpers,Ee=it.getOptions,de=it.addClasses,zi=it.canUseDOM,pi=function(m){function u(){for(var h=[],l=0;l<arguments.length;l++)h[l]=arguments[l];var _=m.apply(this,h)||this;return u.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}t(h,l),h.prototype=l===null?Object.create(l):(_.prototype=l.prototype,new _)}(u,m),u.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"||u.instances.has(h)||new u(h,Ee(h.attributes))})},u.removeObserver=function(){var h;(h=u.globalObserver)===null||h===void 0||h.disconnect()},u.prototype.initDOM=function(){var h,l,_,A=this;if(!Array.prototype.filter.call(this.el.children,function(K){return K.classList.contains(A.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"),de(this.wrapperEl,this.classNames.wrapper),de(this.contentWrapperEl,this.classNames.contentWrapper),de(this.offsetEl,this.classNames.offset),de(this.maskEl,this.classNames.mask),de(this.contentEl,this.classNames.contentEl),de(this.placeholderEl,this.classNames.placeholder),de(this.heightAutoObserverWrapperEl,this.classNames.heightAutoObserverWrapperEl),de(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");de(M,this.classNames.track),de(z,this.classNames.scrollbar),M.appendChild(z),this.axis.x.track.el=M.cloneNode(!0),de(this.axis.x.track.el,this.classNames.horizontal),this.axis.y.track.el=M.cloneNode(!0),de(this.axis.y.track.el,this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}xt.prototype.initDOM.call(this),this.el.setAttribute("data-simplebar","init")},u.prototype.unMount=function(){xt.prototype.unMount.call(this),u.instances.delete(this.el)},u.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),typeof MutationObserver<"u"&&(this.globalObserver=new MutationObserver(u.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))},u.handleMutations=function(h){h.forEach(function(l){l.addedNodes.forEach(function(_){_.nodeType===1&&(_.hasAttribute("data-simplebar")?!u.instances.has(_)&&document.documentElement.contains(_)&&new u(_,Ee(_.attributes)):_.querySelectorAll("[data-simplebar]").forEach(function(A){A.getAttribute("data-simplebar")!=="init"&&!u.instances.has(A)&&document.documentElement.contains(A)&&new u(A,Ee(A.attributes))}))}),l.removedNodes.forEach(function(_){var A;_.nodeType===1&&(_.getAttribute("data-simplebar")==="init"?!document.documentElement.contains(_)&&((A=u.instances.get(_))===null||A===void 0||A.unMount()):Array.prototype.forEach.call(_.querySelectorAll('[data-simplebar="init"]'),function(M){var z;!document.documentElement.contains(M)&&((z=u.instances.get(M))===null||z===void 0||z.unMount())}))})})},u.instances=new WeakMap,u}(xt);return zi&&pi.initHtmlApi(),pi}()),Gs}$a();const Ea=n.defineComponent({name:"ClUI",methods:{VITE_APP_VERSION:()=>"5.4.4"}}),O=(t,s)=>{const a=t.__vccOpts||t;for(const[p,v]of s)a[p]=v;return a};function wa(t,s,a,p,v,b){return n.toDisplayString(t.VITE_APP_VERSION())}const Sa=O(Ea,[["render",wa]]),Na=n.defineComponent({name:"ClAlert",props:{type:{type:String,default:"info"}}});function Aa(t,s,a,p,v,b){return n.openBlock(),n.createElementBlock("p",{class:n.normalizeClass(["alert",`cl-alert-${t.type}`]),role:"alert"},[n.renderSlot(t.$slots,"default")],2)}const en=O(Na,[["render",Aa]]);en.install=t=>{t.component(en.name??"ClNoName",en)};var Di={exports:{}};/*!
2
2
  * Bootstrap v5.3.5 (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)