@castlabs/ui 7.0.5 → 7.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/castlabs-ui.common.js +1 -1
- package/dist/castlabs-ui.css +1 -1
- package/dist/castlabs-ui.umd.js +4 -4
- package/dist/fonts/DM_Mono_300.46aa9818.woff2 +0 -0
- package/dist/fonts/DM_Mono_300italic.d4b24176.woff2 +0 -0
- package/dist/fonts/DM_Mono_400.b9b6ac6a.woff2 +0 -0
- package/dist/fonts/DM_Mono_400italic.edc76b76.woff2 +0 -0
- package/dist/fonts/DM_Mono_500.3f958442.woff2 +0 -0
- package/dist/fonts/DM_Mono_500italic.3c62d36e.woff2 +0 -0
- package/dist/fonts/NonNaturalGroteskInktrap-Bold.229d19af.woff2 +0 -0
- package/dist/fonts/NonNaturalGroteskInktrap-Medium.ae23d3bb.woff2 +0 -0
- package/dist/fonts/NonNaturalGroteskInktrap-Regular.1db788b6.woff2 +0 -0
- package/package.json +1 -1
- package/src/styles/layout/typography.scss +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
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 Ea(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Js={},Zs;function wa(){return Zs||(Zs=1,function(){var e=function(v,f){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,l){h.__proto__=l}||function(h,l){for(var y in l)Object.prototype.hasOwnProperty.call(l,y)&&(h[y]=l[y])},e(v,f)},s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Qs<"u"?Qs:typeof self<"u"?self:{},c=function(v){var f=typeof v;return v!=null&&(f=="object"||f=="function")},p=typeof s=="object"&&s&&s.Object===Object&&s,b=typeof self=="object"&&self&&self.Object===Object&&self,m=p||b||Function("return this")(),u=m,N=function(){return u.Date.now()},U=/\s/,ae=function(v){for(var f=v.length;f--&&U.test(v.charAt(f)););return f},we=/^\s+/,Se=function(v){return v&&v.slice(0,ae(v)+1).replace(we,"")},bt=m.Symbol,nt=bt,Xe=Object.prototype,Jn=Xe.hasOwnProperty,Vn=Xe.toString,ne=nt?nt.toStringTag:void 0,me=function(v){var f=Jn.call(v,ne),h=v[ne];try{v[ne]=void 0;var l=!0}catch{}var y=Vn.call(v);return l&&(f?v[ne]=h:delete v[ne]),y},oe=Object.prototype.toString,Zn=me,Mn=function(v){return oe.call(v)},ei=bt?bt.toStringTag:void 0,Oi=function(v){return v==null?v===void 0?"[object Undefined]":"[object Null]":ei&&ei in Object(v)?Zn(v):Mn(v)},Di=function(v){return v!=null&&typeof v=="object"},zn=Se,Ln=c,ti=function(v){return typeof v=="symbol"||Di(v)&&Oi(v)=="[object Symbol]"},Vi=/^[-+]0x[0-9a-f]+$/i,ni=/^0b[01]+$/i,ii=/^0o[0-7]+$/i,oi=parseInt,si=c,yt=N,_t=function(v){if(typeof v=="number")return v;if(ti(v))return NaN;if(Ln(v)){var f=typeof v.valueOf=="function"?v.valueOf():v;v=Ln(f)?f+"":f}if(typeof v!="string")return v===0?v:+v;v=zn(v);var h=ni.test(v);return h||ii.test(v)?oi(v.slice(2),h?2:8):Vi.test(v)?NaN:+v},Mi=Math.max,ri=Math.min,_=function(v,f,h){var l,y,T,D,L,K,X=0,le=!1,J=!1,ee=!0;if(typeof v!="function")throw new TypeError("Expected a function");function ve(te){var _e=l,de=y;return l=y=void 0,X=te,D=v.apply(de,_e)}function be(te){return X=te,L=setTimeout(Ve,f),le?ve(te):D}function ye(te){var _e=te-K;return K===void 0||_e>=f||_e<0||J&&te-X>=T}function Ve(){var te=yt();if(ye(te))return $t(te);L=setTimeout(Ve,function(_e){var de=f-(_e-K);return J?ri(de,T-(_e-X)):de}(te))}function $t(te){return L=void 0,ee&&l?ve(te):(l=y=void 0,D)}function Qe(){var te=yt(),_e=ye(te);if(l=arguments,y=this,K=te,_e){if(L===void 0)return be(K);if(J)return clearTimeout(L),L=setTimeout(Ve,f),ve(K)}return L===void 0&&(L=setTimeout(Ve,f)),D}return f=_t(f)||0,si(h)&&(le=!!h.leading,T=(J="maxWait"in h)?Mi(_t(h.maxWait)||0,f):T,ee="trailing"in h?!!h.trailing:ee),Qe.cancel=function(){L!==void 0&&clearTimeout(L),X=0,l=K=y=L=void 0},Qe.flush=function(){return L===void 0?D:$t(yt())},Qe},In=_,li=c,Fn=function(v,f,h){var l=!0,y=!0;if(typeof v!="function")throw new TypeError("Expected a function");return li(h)&&(l="leading"in h?!!h.leading:l,y="trailing"in h?!!h.trailing:y),In(v,f,{leading:l,maxWait:f,trailing:y})},se=function(){return se=Object.assign||function(v){for(var f,h=1,l=arguments.length;h<l;h++)for(var y in f=arguments[h])Object.prototype.hasOwnProperty.call(f,y)&&(v[y]=f[y]);return v},se.apply(this,arguments)};function Ye(v){return v&&v.ownerDocument&&v.ownerDocument.defaultView?v.ownerDocument.defaultView:window}function ge(v){return v&&v.ownerDocument?v.ownerDocument:document}var Ct=function(v){return Array.prototype.reduce.call(v,function(f,h){var l=h.name.match(/data-simplebar-(.+)/);if(l){var y=l[1].replace(/\W+(.)/g,function(T,D){return D.toUpperCase()});switch(h.value){case"true":f[y]=!0;break;case"false":f[y]=!1;break;case void 0:f[y]=!0;break;default:f[y]=h.value}}return f},{})};function S(v,f){var h;v&&(h=v.classList).add.apply(h,f.split(" "))}function it(v,f){v&&f.split(" ").forEach(function(h){v.classList.remove(h)})}function Pn(v){return".".concat(v.split(" ").join("."))}var xn=!(typeof window>"u"||!window.document||!window.document.createElement),zi=Object.freeze({__proto__:null,addClasses:S,canUseDOM:xn,classNamesToQuery:Pn,getElementDocument:ge,getElementWindow:Ye,getOptions:Ct,removeClasses:it}),De=null,jn=null;function Ke(){if(De===null){if(typeof document>"u")return De=0;var v=document.body,f=document.createElement("div");f.classList.add("simplebar-hide-scrollbar"),v.appendChild(f);var h=f.getBoundingClientRect().right;v.removeChild(f),De=h}return De}xn&&window.addEventListener("resize",function(){jn!==window.devicePixelRatio&&(jn=window.devicePixelRatio,De=null)});var ce=Ye,Wn=ge,Li=Ct,Le=S,Ie=it,re=Pn,kt=function(){function v(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 y=ce(l.el);l.scrollXTicking||(y.requestAnimationFrame(l.scrollX),l.scrollXTicking=!0),l.scrollYTicking||(y.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(){Ie(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(){Ie(l.el,l.classNames.mouseEntered),l.options.autoHide&&(l.hideScrollbar("x"),l.hideScrollbar("y")),l.isMouseEntering=!1},this._onMouseMove=function(y){l.mouseX=y.clientX,l.mouseY=y.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(y){var T,D;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)&&(D=l.isWithinBounds(l.axis.y.track.rect)),(T||D)&&(y.stopPropagation(),y.type==="pointerdown"&&y.pointerType!=="touch"&&(T&&(l.axis.x.scrollbar.rect=l.axis.x.scrollbar.el.getBoundingClientRect(),l.isWithinBounds(l.axis.x.scrollbar.rect)?l.onDragStart(y,"x"):l.onTrackClick(y,"x")),D&&(l.axis.y.scrollbar.rect=l.axis.y.scrollbar.el.getBoundingClientRect(),l.isWithinBounds(l.axis.y.scrollbar.rect)?l.onDragStart(y,"y"):l.onTrackClick(y,"y")))))},this.drag=function(y){var T,D,L,K,X,le,J,ee,ve,be,ye;if(l.draggedAxis&&l.contentWrapperEl){var Ve=l.axis[l.draggedAxis].track,$t=(D=(T=Ve.rect)===null||T===void 0?void 0:T[l.axis[l.draggedAxis].sizeAttr])!==null&&D!==void 0?D:0,Qe=l.axis[l.draggedAxis].scrollbar,te=(K=(L=l.contentWrapperEl)===null||L===void 0?void 0:L[l.axis[l.draggedAxis].scrollSizeAttr])!==null&&K!==void 0?K:0,_e=parseInt((le=(X=l.elStyles)===null||X===void 0?void 0:X[l.axis[l.draggedAxis].sizeAttr])!==null&&le!==void 0?le:"0px",10);y.preventDefault(),y.stopPropagation();var de=(l.draggedAxis==="y"?y.pageY:y.pageX)-((ee=(J=Ve.rect)===null||J===void 0?void 0:J[l.axis[l.draggedAxis].offsetAttr])!==null&&ee!==void 0?ee:0)-l.axis[l.draggedAxis].dragOffset,Fe=(de=l.draggedAxis==="x"&&l.isRtl?((be=(ve=Ve.rect)===null||ve===void 0?void 0:ve[l.axis[l.draggedAxis].sizeAttr])!==null&&be!==void 0?be:0)-Qe.size-de:de)/($t-Qe.size)*(te-_e);l.draggedAxis==="x"&&l.isRtl&&(Fe=!((ye=v.getRtlHelpers())===null||ye===void 0)&&ye.isScrollingToNegative?-Fe:Fe),l.contentWrapperEl[l.axis[l.draggedAxis].scrollOffsetAttr]=Fe}},this.onEndDrag=function(y){l.isDragging=!1;var T=Wn(l.el),D=ce(l.el);y.preventDefault(),y.stopPropagation(),Ie(l.el,l.classNames.dragging),l.onStopScrolling(),T.removeEventListener("mousemove",l.drag,!0),T.removeEventListener("mouseup",l.onEndDrag,!0),l.removePreventClickId=D.setTimeout(function(){T.removeEventListener("click",l.preventClick,!0),T.removeEventListener("dblclick",l.preventClick,!0),l.removePreventClickId=null})},this.preventClick=function(y){y.preventDefault(),y.stopPropagation()},this.el=f,this.options=se(se({},v.defaultOptions),h),this.classNames=se(se({},v.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=Fn(this._onMouseMove,64),this.onWindowResize=_(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=_(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=_(this._onMouseEntered,this.stopScrollDelay),this.init()}return v.getRtlHelpers=function(){if(v.rtlHelpers)return v.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 y=v.getOffset(h),T=v.getOffset(l);h.scrollLeft=-999;var D=v.getOffset(l);return document.body.removeChild(h),v.rtlHelpers={isScrollOriginAtZero:y.left!==T.left,isScrollingToNegative:T.left!==D.left},v.rtlHelpers},v.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:Ke()}catch{return Ke()}},v.getOffset=function(f){var h=f.getBoundingClientRect(),l=Wn(f),y=ce(f);return{top:h.top+(y.pageYOffset||l.documentElement.scrollTop),left:h.left+(y.pageXOffset||l.documentElement.scrollLeft)}},v.prototype.init=function(){xn&&(this.initDOM(),this.rtlHelpers=v.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},v.prototype.initDOM=function(){var f,h;this.wrapperEl=this.el.querySelector(re(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(re(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(re(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(re(this.classNames.offset)),this.maskEl=this.el.querySelector(re(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,re(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(re(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(re(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(re(this.classNames.track)).concat(re(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(re(this.classNames.track)).concat(re(this.classNames.vertical))),this.axis.x.scrollbar.el=((f=this.axis.x.track.el)===null||f===void 0?void 0:f.querySelector(re(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((h=this.axis.y.track.el)===null||h===void 0?void 0:h.querySelector(re(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))},v.prototype.initListeners=function(){var f,h=this,l=ce(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 y=!1,T=l.ResizeObserver||ResizeObserver;this.resizeObserver=new T(function(){y&&l.requestAnimationFrame(function(){h.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),l.requestAnimationFrame(function(){y=!0})}this.mutationObserver=new l.MutationObserver(function(){l.requestAnimationFrame(function(){h.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},v.prototype.recalculate=function(){if(this.heightAutoObserverEl&&this.contentEl&&this.contentWrapperEl&&this.wrapperEl&&this.placeholderEl){var f=ce(this.el);this.elStyles=f.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var h=this.contentEl.offsetWidth,l=this.heightAutoObserverEl.offsetHeight<=1,y=this.heightAutoObserverEl.offsetWidth<=1||h>0,T=this.contentWrapperEl.offsetWidth,D=this.elStyles.overflowX,L=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=y?"".concat(h||X,"px"):"auto",this.placeholderEl.style.height="".concat(K,"px");var le=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=h!==0&&X>h,this.axis.y.isOverflowing=K>le,this.axis.x.isOverflowing=D!=="hidden"&&this.axis.x.isOverflowing,this.axis.y.isOverflowing=L!=="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,ee=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&X>T-ee,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&K>le-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")}},v.prototype.getScrollbarSize=function(f){var h,l;if(f===void 0&&(f="y"),!this.axis[f].isOverflowing||!this.contentEl)return 0;var y,T=this.contentEl[this.axis[f].scrollSizeAttr],D=(l=(h=this.axis[f].track.el)===null||h===void 0?void 0:h[this.axis[f].offsetSizeAttr])!==null&&l!==void 0?l:0,L=D/T;return y=Math.max(~~(L*D),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(y=Math.min(y,this.options.scrollbarMaxSize)),y},v.prototype.positionScrollbar=function(f){var h,l,y;f===void 0&&(f="y");var T=this.axis[f].scrollbar;if(this.axis[f].isOverflowing&&this.contentWrapperEl&&T.el&&this.elStyles){var D=this.contentWrapperEl[this.axis[f].scrollSizeAttr],L=((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),X=this.contentWrapperEl[this.axis[f].scrollOffsetAttr];X=f==="x"&&this.isRtl&&(!((l=v.getRtlHelpers())===null||l===void 0)&&l.isScrollOriginAtZero)?-X:X,f==="x"&&this.isRtl&&(X=!((y=v.getRtlHelpers())===null||y===void 0)&&y.isScrollingToNegative?X:-X);var le=X/(D-K),J=~~((L-T.size)*le);J=f==="x"&&this.isRtl?-J+(L-T.size):J,T.el.style.transform=f==="x"?"translate3d(".concat(J,"px, 0, 0)"):"translate3d(0, ".concat(J,"px, 0)")}},v.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")},v.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)},v.prototype.hideScrollbar=function(f){f===void 0&&(f="y"),this.isDragging||this.axis[f].isOverflowing&&this.axis[f].scrollbar.isVisible&&(Ie(this.axis[f].scrollbar.el,this.classNames.visible),this.axis[f].scrollbar.isVisible=!1)},v.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")},v.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):Ie(h.scrollbar.el,this.classNames.hover)):(Ie(h.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(f)))},v.prototype.onMouseLeaveForAxis=function(f){f===void 0&&(f="y"),Ie(this.axis[f].track.el,this.classNames.hover),Ie(this.axis[f].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(f)},v.prototype.onDragStart=function(f,h){var l;h===void 0&&(h="y"),this.isDragging=!0;var y=Wn(this.el),T=ce(this.el),D=this.axis[h].scrollbar,L=h==="y"?f.pageY:f.pageX;this.axis[h].dragOffset=L-(((l=D.rect)===null||l===void 0?void 0:l[this.axis[h].offsetAttr])||0),this.draggedAxis=h,Le(this.el,this.classNames.dragging),y.addEventListener("mousemove",this.drag,!0),y.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(y.addEventListener("click",this.preventClick,!0),y.addEventListener("dblclick",this.preventClick,!0)):(T.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},v.prototype.onTrackClick=function(f,h){var l,y,T,D,L=this;h===void 0&&(h="y");var K=this.axis[h];if(this.options.clickOnTrack&&K.scrollbar.el&&this.contentWrapperEl){f.preventDefault();var X=ce(this.el);this.axis[h].scrollbar.rect=K.scrollbar.el.getBoundingClientRect();var le=(y=(l=this.axis[h].scrollbar.rect)===null||l===void 0?void 0:l[this.axis[h].offsetAttr])!==null&&y!==void 0?y:0,J=parseInt((D=(T=this.elStyles)===null||T===void 0?void 0:T[this.axis[h].sizeAttr])!==null&&D!==void 0?D:"0px",10),ee=this.contentWrapperEl[this.axis[h].scrollOffsetAttr],ve=(h==="y"?this.mouseY-le:this.mouseX-le)<0?-1:1,be=ve===-1?ee-J:ee+J,ye=function(){L.contentWrapperEl&&(ve===-1?ee>be&&(ee-=40,L.contentWrapperEl[L.axis[h].scrollOffsetAttr]=ee,X.requestAnimationFrame(ye)):ee<be&&(ee+=40,L.contentWrapperEl[L.axis[h].scrollOffsetAttr]=ee,X.requestAnimationFrame(ye)))};ye()}},v.prototype.getContentElement=function(){return this.contentEl},v.prototype.getScrollElement=function(){return this.contentWrapperEl},v.prototype.removeListeners=function(){var f=ce(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()},v.prototype.unMount=function(){this.removeListeners()},v.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},v.prototype.findChild=function(f,h){var l=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.msMatchesSelector;return Array.prototype.filter.call(f.children,function(y){return l.call(y,h)})[0]},v.rtlHelpers=null,v.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},v.getOptions=Li,v.helpers=zi,v}(),Rn=kt.helpers,Ge=Rn.getOptions,Q=Rn.addClasses,ai=Rn.canUseDOM,ci=function(v){function f(){for(var h=[],l=0;l<arguments.length;l++)h[l]=arguments[l];var y=v.apply(this,h)||this;return f.instances.set(h[0],y),y}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 y(){this.constructor=h}e(h,l),h.prototype=l===null?Object.create(l):(y.prototype=l.prototype,new y)}(f,v),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,Ge(h.attributes))})},f.removeObserver=function(){var h;(h=f.globalObserver)===null||h===void 0||h.disconnect()},f.prototype.initDOM=function(){var h,l,y,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"),Q(this.wrapperEl,this.classNames.wrapper),Q(this.contentWrapperEl,this.classNames.contentWrapper),Q(this.offsetEl,this.classNames.offset),Q(this.maskEl,this.classNames.mask),Q(this.contentEl,this.classNames.contentEl),Q(this.placeholderEl,this.classNames.placeholder),Q(this.heightAutoObserverWrapperEl,this.classNames.heightAutoObserverWrapperEl),Q(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"),(y=this.contentWrapperEl)===null||y===void 0||y.setAttribute("aria-label",this.options.ariaLabel)}if(!this.axis.x.track.el||!this.axis.y.track.el){var D=document.createElement("div"),L=document.createElement("div");Q(D,this.classNames.track),Q(L,this.classNames.scrollbar),D.appendChild(L),this.axis.x.track.el=D.cloneNode(!0),Q(this.axis.x.track.el,this.classNames.horizontal),this.axis.y.track.el=D.cloneNode(!0),Q(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(y){y.nodeType===1&&(y.hasAttribute("data-simplebar")?!f.instances.has(y)&&document.documentElement.contains(y)&&new f(y,Ge(y.attributes)):y.querySelectorAll("[data-simplebar]").forEach(function(T){T.getAttribute("data-simplebar")!=="init"&&!f.instances.has(T)&&document.documentElement.contains(T)&&new f(T,Ge(T.attributes))}))}),l.removedNodes.forEach(function(y){var T;y.nodeType===1&&(y.getAttribute("data-simplebar")==="init"?!document.documentElement.contains(y)&&((T=f.instances.get(y))===null||T===void 0||T.unMount()):Array.prototype.forEach.call(y.querySelectorAll('[data-simplebar="init"]'),function(D){var L;!document.documentElement.contains(D)&&((L=f.instances.get(D))===null||L===void 0||L.unMount())}))})})},f.instances=new WeakMap,f}(kt);return ai&&ci.initHtmlApi(),ci}()),Js}wa();const Sa=n.defineComponent({name:"ClUI",methods:{VITE_APP_VERSION:()=>"7.0.5"}}),B=(e,s)=>{const c=e.__vccOpts||e;for(const[p,b]of s)c[p]=b;return c};function Na(e,s,c,p,b,m){return n.toDisplayString(e.VITE_APP_VERSION())}const Ta=B(Sa,[["render",Na]]),Aa=n.defineComponent({name:"ClAlert",props:{type:{type:String,default:"info"}}});function Ba(e,s,c,p,b,m){return n.openBlock(),n.createElementBlock("p",{class:n.normalizeClass(["alert",`cl-alert-${e.type}`]),role:"alert"},[n.renderSlot(e.$slots,"default")],2)}const It=B(Aa,[["render",Ba]]);It.install=e=>{e.component(It.name??"ClNoName",It)};var Ti={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 Ea(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Js={},Zs;function wa(){return Zs||(Zs=1,function(){var e=function(v,f){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,l){h.__proto__=l}||function(h,l){for(var y in l)Object.prototype.hasOwnProperty.call(l,y)&&(h[y]=l[y])},e(v,f)},s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Qs<"u"?Qs:typeof self<"u"?self:{},c=function(v){var f=typeof v;return v!=null&&(f=="object"||f=="function")},p=typeof s=="object"&&s&&s.Object===Object&&s,b=typeof self=="object"&&self&&self.Object===Object&&self,m=p||b||Function("return this")(),u=m,N=function(){return u.Date.now()},U=/\s/,ae=function(v){for(var f=v.length;f--&&U.test(v.charAt(f)););return f},we=/^\s+/,Se=function(v){return v&&v.slice(0,ae(v)+1).replace(we,"")},bt=m.Symbol,nt=bt,Xe=Object.prototype,Jn=Xe.hasOwnProperty,Vn=Xe.toString,ne=nt?nt.toStringTag:void 0,me=function(v){var f=Jn.call(v,ne),h=v[ne];try{v[ne]=void 0;var l=!0}catch{}var y=Vn.call(v);return l&&(f?v[ne]=h:delete v[ne]),y},oe=Object.prototype.toString,Zn=me,Mn=function(v){return oe.call(v)},ei=bt?bt.toStringTag:void 0,Oi=function(v){return v==null?v===void 0?"[object Undefined]":"[object Null]":ei&&ei in Object(v)?Zn(v):Mn(v)},Di=function(v){return v!=null&&typeof v=="object"},zn=Se,Ln=c,ti=function(v){return typeof v=="symbol"||Di(v)&&Oi(v)=="[object Symbol]"},Vi=/^[-+]0x[0-9a-f]+$/i,ni=/^0b[01]+$/i,ii=/^0o[0-7]+$/i,oi=parseInt,si=c,yt=N,_t=function(v){if(typeof v=="number")return v;if(ti(v))return NaN;if(Ln(v)){var f=typeof v.valueOf=="function"?v.valueOf():v;v=Ln(f)?f+"":f}if(typeof v!="string")return v===0?v:+v;v=zn(v);var h=ni.test(v);return h||ii.test(v)?oi(v.slice(2),h?2:8):Vi.test(v)?NaN:+v},Mi=Math.max,ri=Math.min,_=function(v,f,h){var l,y,T,D,L,K,X=0,le=!1,J=!1,ee=!0;if(typeof v!="function")throw new TypeError("Expected a function");function ve(te){var _e=l,de=y;return l=y=void 0,X=te,D=v.apply(de,_e)}function be(te){return X=te,L=setTimeout(Ve,f),le?ve(te):D}function ye(te){var _e=te-K;return K===void 0||_e>=f||_e<0||J&&te-X>=T}function Ve(){var te=yt();if(ye(te))return $t(te);L=setTimeout(Ve,function(_e){var de=f-(_e-K);return J?ri(de,T-(_e-X)):de}(te))}function $t(te){return L=void 0,ee&&l?ve(te):(l=y=void 0,D)}function Qe(){var te=yt(),_e=ye(te);if(l=arguments,y=this,K=te,_e){if(L===void 0)return be(K);if(J)return clearTimeout(L),L=setTimeout(Ve,f),ve(K)}return L===void 0&&(L=setTimeout(Ve,f)),D}return f=_t(f)||0,si(h)&&(le=!!h.leading,T=(J="maxWait"in h)?Mi(_t(h.maxWait)||0,f):T,ee="trailing"in h?!!h.trailing:ee),Qe.cancel=function(){L!==void 0&&clearTimeout(L),X=0,l=K=y=L=void 0},Qe.flush=function(){return L===void 0?D:$t(yt())},Qe},In=_,li=c,Fn=function(v,f,h){var l=!0,y=!0;if(typeof v!="function")throw new TypeError("Expected a function");return li(h)&&(l="leading"in h?!!h.leading:l,y="trailing"in h?!!h.trailing:y),In(v,f,{leading:l,maxWait:f,trailing:y})},se=function(){return se=Object.assign||function(v){for(var f,h=1,l=arguments.length;h<l;h++)for(var y in f=arguments[h])Object.prototype.hasOwnProperty.call(f,y)&&(v[y]=f[y]);return v},se.apply(this,arguments)};function Ye(v){return v&&v.ownerDocument&&v.ownerDocument.defaultView?v.ownerDocument.defaultView:window}function ge(v){return v&&v.ownerDocument?v.ownerDocument:document}var Ct=function(v){return Array.prototype.reduce.call(v,function(f,h){var l=h.name.match(/data-simplebar-(.+)/);if(l){var y=l[1].replace(/\W+(.)/g,function(T,D){return D.toUpperCase()});switch(h.value){case"true":f[y]=!0;break;case"false":f[y]=!1;break;case void 0:f[y]=!0;break;default:f[y]=h.value}}return f},{})};function S(v,f){var h;v&&(h=v.classList).add.apply(h,f.split(" "))}function it(v,f){v&&f.split(" ").forEach(function(h){v.classList.remove(h)})}function Pn(v){return".".concat(v.split(" ").join("."))}var xn=!(typeof window>"u"||!window.document||!window.document.createElement),zi=Object.freeze({__proto__:null,addClasses:S,canUseDOM:xn,classNamesToQuery:Pn,getElementDocument:ge,getElementWindow:Ye,getOptions:Ct,removeClasses:it}),De=null,jn=null;function Ke(){if(De===null){if(typeof document>"u")return De=0;var v=document.body,f=document.createElement("div");f.classList.add("simplebar-hide-scrollbar"),v.appendChild(f);var h=f.getBoundingClientRect().right;v.removeChild(f),De=h}return De}xn&&window.addEventListener("resize",function(){jn!==window.devicePixelRatio&&(jn=window.devicePixelRatio,De=null)});var ce=Ye,Wn=ge,Li=Ct,Le=S,Ie=it,re=Pn,kt=function(){function v(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 y=ce(l.el);l.scrollXTicking||(y.requestAnimationFrame(l.scrollX),l.scrollXTicking=!0),l.scrollYTicking||(y.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(){Ie(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(){Ie(l.el,l.classNames.mouseEntered),l.options.autoHide&&(l.hideScrollbar("x"),l.hideScrollbar("y")),l.isMouseEntering=!1},this._onMouseMove=function(y){l.mouseX=y.clientX,l.mouseY=y.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(y){var T,D;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)&&(D=l.isWithinBounds(l.axis.y.track.rect)),(T||D)&&(y.stopPropagation(),y.type==="pointerdown"&&y.pointerType!=="touch"&&(T&&(l.axis.x.scrollbar.rect=l.axis.x.scrollbar.el.getBoundingClientRect(),l.isWithinBounds(l.axis.x.scrollbar.rect)?l.onDragStart(y,"x"):l.onTrackClick(y,"x")),D&&(l.axis.y.scrollbar.rect=l.axis.y.scrollbar.el.getBoundingClientRect(),l.isWithinBounds(l.axis.y.scrollbar.rect)?l.onDragStart(y,"y"):l.onTrackClick(y,"y")))))},this.drag=function(y){var T,D,L,K,X,le,J,ee,ve,be,ye;if(l.draggedAxis&&l.contentWrapperEl){var Ve=l.axis[l.draggedAxis].track,$t=(D=(T=Ve.rect)===null||T===void 0?void 0:T[l.axis[l.draggedAxis].sizeAttr])!==null&&D!==void 0?D:0,Qe=l.axis[l.draggedAxis].scrollbar,te=(K=(L=l.contentWrapperEl)===null||L===void 0?void 0:L[l.axis[l.draggedAxis].scrollSizeAttr])!==null&&K!==void 0?K:0,_e=parseInt((le=(X=l.elStyles)===null||X===void 0?void 0:X[l.axis[l.draggedAxis].sizeAttr])!==null&&le!==void 0?le:"0px",10);y.preventDefault(),y.stopPropagation();var de=(l.draggedAxis==="y"?y.pageY:y.pageX)-((ee=(J=Ve.rect)===null||J===void 0?void 0:J[l.axis[l.draggedAxis].offsetAttr])!==null&&ee!==void 0?ee:0)-l.axis[l.draggedAxis].dragOffset,Fe=(de=l.draggedAxis==="x"&&l.isRtl?((be=(ve=Ve.rect)===null||ve===void 0?void 0:ve[l.axis[l.draggedAxis].sizeAttr])!==null&&be!==void 0?be:0)-Qe.size-de:de)/($t-Qe.size)*(te-_e);l.draggedAxis==="x"&&l.isRtl&&(Fe=!((ye=v.getRtlHelpers())===null||ye===void 0)&&ye.isScrollingToNegative?-Fe:Fe),l.contentWrapperEl[l.axis[l.draggedAxis].scrollOffsetAttr]=Fe}},this.onEndDrag=function(y){l.isDragging=!1;var T=Wn(l.el),D=ce(l.el);y.preventDefault(),y.stopPropagation(),Ie(l.el,l.classNames.dragging),l.onStopScrolling(),T.removeEventListener("mousemove",l.drag,!0),T.removeEventListener("mouseup",l.onEndDrag,!0),l.removePreventClickId=D.setTimeout(function(){T.removeEventListener("click",l.preventClick,!0),T.removeEventListener("dblclick",l.preventClick,!0),l.removePreventClickId=null})},this.preventClick=function(y){y.preventDefault(),y.stopPropagation()},this.el=f,this.options=se(se({},v.defaultOptions),h),this.classNames=se(se({},v.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=Fn(this._onMouseMove,64),this.onWindowResize=_(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=_(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=_(this._onMouseEntered,this.stopScrollDelay),this.init()}return v.getRtlHelpers=function(){if(v.rtlHelpers)return v.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 y=v.getOffset(h),T=v.getOffset(l);h.scrollLeft=-999;var D=v.getOffset(l);return document.body.removeChild(h),v.rtlHelpers={isScrollOriginAtZero:y.left!==T.left,isScrollingToNegative:T.left!==D.left},v.rtlHelpers},v.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:Ke()}catch{return Ke()}},v.getOffset=function(f){var h=f.getBoundingClientRect(),l=Wn(f),y=ce(f);return{top:h.top+(y.pageYOffset||l.documentElement.scrollTop),left:h.left+(y.pageXOffset||l.documentElement.scrollLeft)}},v.prototype.init=function(){xn&&(this.initDOM(),this.rtlHelpers=v.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},v.prototype.initDOM=function(){var f,h;this.wrapperEl=this.el.querySelector(re(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(re(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(re(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(re(this.classNames.offset)),this.maskEl=this.el.querySelector(re(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,re(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(re(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(re(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(re(this.classNames.track)).concat(re(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(re(this.classNames.track)).concat(re(this.classNames.vertical))),this.axis.x.scrollbar.el=((f=this.axis.x.track.el)===null||f===void 0?void 0:f.querySelector(re(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((h=this.axis.y.track.el)===null||h===void 0?void 0:h.querySelector(re(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))},v.prototype.initListeners=function(){var f,h=this,l=ce(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 y=!1,T=l.ResizeObserver||ResizeObserver;this.resizeObserver=new T(function(){y&&l.requestAnimationFrame(function(){h.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),l.requestAnimationFrame(function(){y=!0})}this.mutationObserver=new l.MutationObserver(function(){l.requestAnimationFrame(function(){h.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},v.prototype.recalculate=function(){if(this.heightAutoObserverEl&&this.contentEl&&this.contentWrapperEl&&this.wrapperEl&&this.placeholderEl){var f=ce(this.el);this.elStyles=f.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var h=this.contentEl.offsetWidth,l=this.heightAutoObserverEl.offsetHeight<=1,y=this.heightAutoObserverEl.offsetWidth<=1||h>0,T=this.contentWrapperEl.offsetWidth,D=this.elStyles.overflowX,L=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=y?"".concat(h||X,"px"):"auto",this.placeholderEl.style.height="".concat(K,"px");var le=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=h!==0&&X>h,this.axis.y.isOverflowing=K>le,this.axis.x.isOverflowing=D!=="hidden"&&this.axis.x.isOverflowing,this.axis.y.isOverflowing=L!=="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,ee=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&X>T-ee,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&K>le-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")}},v.prototype.getScrollbarSize=function(f){var h,l;if(f===void 0&&(f="y"),!this.axis[f].isOverflowing||!this.contentEl)return 0;var y,T=this.contentEl[this.axis[f].scrollSizeAttr],D=(l=(h=this.axis[f].track.el)===null||h===void 0?void 0:h[this.axis[f].offsetSizeAttr])!==null&&l!==void 0?l:0,L=D/T;return y=Math.max(~~(L*D),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(y=Math.min(y,this.options.scrollbarMaxSize)),y},v.prototype.positionScrollbar=function(f){var h,l,y;f===void 0&&(f="y");var T=this.axis[f].scrollbar;if(this.axis[f].isOverflowing&&this.contentWrapperEl&&T.el&&this.elStyles){var D=this.contentWrapperEl[this.axis[f].scrollSizeAttr],L=((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),X=this.contentWrapperEl[this.axis[f].scrollOffsetAttr];X=f==="x"&&this.isRtl&&(!((l=v.getRtlHelpers())===null||l===void 0)&&l.isScrollOriginAtZero)?-X:X,f==="x"&&this.isRtl&&(X=!((y=v.getRtlHelpers())===null||y===void 0)&&y.isScrollingToNegative?X:-X);var le=X/(D-K),J=~~((L-T.size)*le);J=f==="x"&&this.isRtl?-J+(L-T.size):J,T.el.style.transform=f==="x"?"translate3d(".concat(J,"px, 0, 0)"):"translate3d(0, ".concat(J,"px, 0)")}},v.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")},v.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)},v.prototype.hideScrollbar=function(f){f===void 0&&(f="y"),this.isDragging||this.axis[f].isOverflowing&&this.axis[f].scrollbar.isVisible&&(Ie(this.axis[f].scrollbar.el,this.classNames.visible),this.axis[f].scrollbar.isVisible=!1)},v.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")},v.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):Ie(h.scrollbar.el,this.classNames.hover)):(Ie(h.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(f)))},v.prototype.onMouseLeaveForAxis=function(f){f===void 0&&(f="y"),Ie(this.axis[f].track.el,this.classNames.hover),Ie(this.axis[f].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(f)},v.prototype.onDragStart=function(f,h){var l;h===void 0&&(h="y"),this.isDragging=!0;var y=Wn(this.el),T=ce(this.el),D=this.axis[h].scrollbar,L=h==="y"?f.pageY:f.pageX;this.axis[h].dragOffset=L-(((l=D.rect)===null||l===void 0?void 0:l[this.axis[h].offsetAttr])||0),this.draggedAxis=h,Le(this.el,this.classNames.dragging),y.addEventListener("mousemove",this.drag,!0),y.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(y.addEventListener("click",this.preventClick,!0),y.addEventListener("dblclick",this.preventClick,!0)):(T.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},v.prototype.onTrackClick=function(f,h){var l,y,T,D,L=this;h===void 0&&(h="y");var K=this.axis[h];if(this.options.clickOnTrack&&K.scrollbar.el&&this.contentWrapperEl){f.preventDefault();var X=ce(this.el);this.axis[h].scrollbar.rect=K.scrollbar.el.getBoundingClientRect();var le=(y=(l=this.axis[h].scrollbar.rect)===null||l===void 0?void 0:l[this.axis[h].offsetAttr])!==null&&y!==void 0?y:0,J=parseInt((D=(T=this.elStyles)===null||T===void 0?void 0:T[this.axis[h].sizeAttr])!==null&&D!==void 0?D:"0px",10),ee=this.contentWrapperEl[this.axis[h].scrollOffsetAttr],ve=(h==="y"?this.mouseY-le:this.mouseX-le)<0?-1:1,be=ve===-1?ee-J:ee+J,ye=function(){L.contentWrapperEl&&(ve===-1?ee>be&&(ee-=40,L.contentWrapperEl[L.axis[h].scrollOffsetAttr]=ee,X.requestAnimationFrame(ye)):ee<be&&(ee+=40,L.contentWrapperEl[L.axis[h].scrollOffsetAttr]=ee,X.requestAnimationFrame(ye)))};ye()}},v.prototype.getContentElement=function(){return this.contentEl},v.prototype.getScrollElement=function(){return this.contentWrapperEl},v.prototype.removeListeners=function(){var f=ce(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()},v.prototype.unMount=function(){this.removeListeners()},v.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},v.prototype.findChild=function(f,h){var l=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.msMatchesSelector;return Array.prototype.filter.call(f.children,function(y){return l.call(y,h)})[0]},v.rtlHelpers=null,v.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},v.getOptions=Li,v.helpers=zi,v}(),Rn=kt.helpers,Ge=Rn.getOptions,Q=Rn.addClasses,ai=Rn.canUseDOM,ci=function(v){function f(){for(var h=[],l=0;l<arguments.length;l++)h[l]=arguments[l];var y=v.apply(this,h)||this;return f.instances.set(h[0],y),y}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 y(){this.constructor=h}e(h,l),h.prototype=l===null?Object.create(l):(y.prototype=l.prototype,new y)}(f,v),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,Ge(h.attributes))})},f.removeObserver=function(){var h;(h=f.globalObserver)===null||h===void 0||h.disconnect()},f.prototype.initDOM=function(){var h,l,y,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"),Q(this.wrapperEl,this.classNames.wrapper),Q(this.contentWrapperEl,this.classNames.contentWrapper),Q(this.offsetEl,this.classNames.offset),Q(this.maskEl,this.classNames.mask),Q(this.contentEl,this.classNames.contentEl),Q(this.placeholderEl,this.classNames.placeholder),Q(this.heightAutoObserverWrapperEl,this.classNames.heightAutoObserverWrapperEl),Q(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"),(y=this.contentWrapperEl)===null||y===void 0||y.setAttribute("aria-label",this.options.ariaLabel)}if(!this.axis.x.track.el||!this.axis.y.track.el){var D=document.createElement("div"),L=document.createElement("div");Q(D,this.classNames.track),Q(L,this.classNames.scrollbar),D.appendChild(L),this.axis.x.track.el=D.cloneNode(!0),Q(this.axis.x.track.el,this.classNames.horizontal),this.axis.y.track.el=D.cloneNode(!0),Q(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(y){y.nodeType===1&&(y.hasAttribute("data-simplebar")?!f.instances.has(y)&&document.documentElement.contains(y)&&new f(y,Ge(y.attributes)):y.querySelectorAll("[data-simplebar]").forEach(function(T){T.getAttribute("data-simplebar")!=="init"&&!f.instances.has(T)&&document.documentElement.contains(T)&&new f(T,Ge(T.attributes))}))}),l.removedNodes.forEach(function(y){var T;y.nodeType===1&&(y.getAttribute("data-simplebar")==="init"?!document.documentElement.contains(y)&&((T=f.instances.get(y))===null||T===void 0||T.unMount()):Array.prototype.forEach.call(y.querySelectorAll('[data-simplebar="init"]'),function(D){var L;!document.documentElement.contains(D)&&((L=f.instances.get(D))===null||L===void 0||L.unMount())}))})})},f.instances=new WeakMap,f}(kt);return ai&&ci.initHtmlApi(),ci}()),Js}wa();const Sa=n.defineComponent({name:"ClUI",methods:{VITE_APP_VERSION:()=>"7.0.6"}}),B=(e,s)=>{const c=e.__vccOpts||e;for(const[p,b]of s)c[p]=b;return c};function Na(e,s,c,p,b,m){return n.toDisplayString(e.VITE_APP_VERSION())}const Ta=B(Sa,[["render",Na]]),Aa=n.defineComponent({name:"ClAlert",props:{type:{type:String,default:"info"}}});function Ba(e,s,c,p,b,m){return n.openBlock(),n.createElementBlock("p",{class:n.normalizeClass(["alert",`cl-alert-${e.type}`]),role:"alert"},[n.renderSlot(e.$slots,"default")],2)}const It=B(Aa,[["render",Ba]]);It.install=e=>{e.component(It.name??"ClNoName",It)};var Ti={exports:{}};/*!
|
|
2
2
|
* Bootstrap v5.3.8 (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)
|