Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

2 lignes
26 KiB

  1. "use strict";(self["webpackChunkLightAble"]=self["webpackChunkLightAble"]||[]).push([[907],{3007:function(e,t,i){function s(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}i.d(t,{A:function(){return Ae}});var r=s,l="object"==typeof global&&global&&global.Object===Object&&global,o=l,n="object"==typeof self&&self&&self.Object===Object&&self,a=o||n||Function("return this")(),c=a,h=function(){return c.Date.now()},u=h,d=/\s/;function p(e){var t=e.length;while(t--&&d.test(e.charAt(t)));return t}var v=p,f=/^\s+/;function b(e){return e?e.slice(0,v(e)+1).replace(f,""):e}var g=b,m=c.Symbol,x=m,y=Object.prototype,E=y.hasOwnProperty,S=y.toString,w=x?x.toStringTag:void 0;function O(e){var t=E.call(e,w),i=e[w];try{e[w]=void 0;var s=!0}catch(l){}var r=S.call(e);return s&&(t?e[w]=i:delete e[w]),r}var k=O,A=Object.prototype,W=A.toString;function z(e){return W.call(e)}var M=z,N="[object Null]",L="[object Undefined]",C=x?x.toStringTag:void 0;function T(e){return null==e?void 0===e?L:N:C&&C in Object(e)?k(e):M(e)}var R=T;function V(e){return null!=e&&"object"==typeof e}var D=V,H="[object Symbol]";function B(e){return"symbol"==typeof e||D(e)&&R(e)==H}var j=B,I=NaN,P=/^[-+]0x[0-9a-f]+$/i,X=/^0b[01]+$/i,Y=/^0o[0-7]+$/i,q=parseInt;function F(e){if("number"==typeof e)return e;if(j(e))return I;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=g(e);var i=X.test(e);return i||Y.test(e)?q(e.slice(2),i?2:8):P.test(e)?I:+e}var $=F,_="Expected a function",U=Math.max,Q=Math.min;function Z(e,t,i){var s,l,o,n,a,c,h=0,d=!1,p=!1,v=!0;if("function"!=typeof e)throw new TypeError(_);function f(t){var i=s,r=l;return s=l=void 0,h=t,n=e.apply(r,i),n}function b(e){return h=e,a=setTimeout(x,t),d?f(e):n}function g(e){var i=e-c,s=e-h,r=t-i;return p?Q(r,o-s):r}function m(e){var i=e-c,s=e-h;return void 0===c||i>=t||i<0||p&&s>=o}function x(){var e=u();if(m(e))return y(e);a=setTimeout(x,g(e))}function y(e){return a=void 0,v&&s?f(e):(s=l=void 0,n)}function E(){void 0!==a&&clearTimeout(a),h=0,s=c=l=a=void 0}function S(){return void 0===a?n:y(u())}function w(){var e=u(),i=m(e);if(s=arguments,l=this,c=e,i){if(void 0===a)return b(c);if(p)return clearTimeout(a),a=setTimeout(x,t),f(c)}return void 0===a&&(a=setTimeout(x,t)),n}return t=$(t)||0,r(i)&&(d=!!i.leading,p="maxWait"in i,o=p?U($(i.maxWait)||0,t):o,v="trailing"in i?!!i.trailing:v),w.cancel=E,w.flush=S,w}var J=Z,G="Expected a function";function K(e,t,i){var s=!0,l=!0;if("function"!=typeof e)throw new TypeError(G);return r(i)&&(s="leading"in i?!!i.leading:s,l="trailing"in i?!!i.trailing:l),J(e,t,{leading:s,maxWait:t,trailing:l})}var ee=K,te=function(){return te=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++)for(var r in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},te.apply(this,arguments)};function ie(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}function se(e){return e&&e.ownerDocument?e.ownerDocument:document}var re=function(e){var t={},i=Array.prototype.reduce.call(e,(function(e,t){var i=t.name.match(/data-simplebar-(.+)/);if(i){var s=i[1].replace(/\W+(.)/g,(function(e,t){return t.toUpperCase()}));switch(t.value){case"true":e[s]=!0;break;case"false":e[s]=!1;break;case void 0:e[s]=!0;break;default:e[s]=t.value}}return e}),t);return i};function le(e,t){var i;e&&(i=e.classList).add.apply(i,t.split(" "))}function oe(e,t){e&&t.split(" ").forEach((function(t){e.classList.remove(t)}))}function ne(e){return".".concat(e.split(" ").join("."))}var ae=!("undefined"===typeof window||!window.document||!window.document.createElement),ce=Object.freeze({__proto__:null,addClasses:le,canUseDOM:ae,classNamesToQuery:ne,getElementDocument:se,getElementWindow:ie,getOptions:re,removeClasses:oe}),he=null,ue=null;function de(){if(null===he){if("undefined"===typeof document)return he=0,he;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var i=t.getBoundingClientRect().right;e.removeChild(t),he=i}return he}ae&&window.addEventListener("resize",(function(){ue!==window.devicePixelRatio&&(ue=window.devicePixelRatio,he=null)}));var pe=ie,ve=se,fe=re,be=le,ge=oe,me=ne,xe=function(){function e(t,i){void 0===i&&(i={});var s=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 e=pe(s.el);s.scrollXTicking||(e.requestAnimationFrame(s.scrollX),s.scrollXTicking=!0),s.scrollYTicking||(e.requestAnimationFrame(s.scrollY),s.scrollYTicking=!0),s.isScrolling||(s.isScrolling=!0,be(s.el,s.classNames.scrolling)),s.showScrollbar("x"),s.showScrollbar("y"),s.onStopScrolling()},this.scrollX=function(){s.axis.x.isOverflowing&&s.positionScrollbar("x"),s.scrollXTicking=!1},this.scrollY=function(){s.axis.y.isOverflowing&&s.positionScrollbar("y"),s.scrollYTicking=!1},this._onStopScrolling=function(){ge(s.el,s.classNames.scrolling),s.options.autoHide&&(s.hideScrollbar("x"),s.hideScrollbar("y")),s.isScrolling=!1},this.onMouseEnter=function(){s.isMouseEntering||(be(s.el,s.classNames.mouseEntered),s.showScrollbar("x"),s.showScrollbar("y"),s.isMouseEntering=!0),s.onMouseEntered()},this._onMouseEntered=function(){ge(s.el,s.classNames.mouseEntered),s.options.autoHide&&(s.hideScrollbar("x"),s.hideScrollbar("y")),s.isMouseEntering=!1},this._onMouseMove=function(e){s.mouseX=e.clientX,s.mouseY=e.clientY,(s.axis.x.isOverflowing||s.axis.x.forceVisible)&&s.onMouseMoveForAxis("x"),(s.axis.y.isOverflowing||s.axis.y.forceVisible)&&s.onMouseMoveForAxis("y")},this.onMouseLeave=function(){s.onMouseMove.cancel(),(s.axis.x.isOverflowing||s.axis.x.forceVisible)&&s.onMouseLeaveForAxis("x"),(s.axis.y.isOverflowing||s.axis.y.forceVisible)&&s.onMouseLeaveForAxis("y"),s.mouseX=-1,s.mouseY=-1},this._onWindowResize=function(){s.scrollbarWidth=s.getScrollbarWidth(),s.hideNativeScrollbar()},this.onPointerEvent=function(e){var t,i;s.axis.x.track.el&&s.axis.y.track.el&&s.axis.x.scrollbar.el&&s.axis.y.scrollbar.el&&(s.axis.x.track.rect=s.axis.x.track.el.getBoundingClientRect(),s.axis.y.track.rect=s.axis.y.track.el.getBoundingClientRect(),(s.axis.x.isOverflowing||s.axis.x.forceVisible)&&(t=s.isWithinBounds(s.axis.x.track.rect)),(s.axis.y.isOverflowing||s.axis.y.forceVisible)&&(i=s.isWithinBounds(s.axis.y.track.rect)),(t||i)&&(e.stopPropagation(),"pointerdown"===e.type&&"touch"!==e.pointerType&&(t&&(s.axis.x.scrollbar.rect=s.axis.x.scrollbar.el.getBoundingClientRect(),s.isWithinBounds(s.axis.x.scrollbar.rect)?s.onDragStart(e,"x"):s.onTrackClick(e,"x")),i&&(s.axis.y.scrollbar.rect=s.axis.y.scrollbar.el.getBoundingClientRect(),s.isWithinBounds(s.axis.y.scrollbar.rect)?s.onDragStart(e,"y"):s.onTrackClick(e,"y")))))},this.drag=function(t){var i,r,l,o,n,a,c,h,u,d,p;if(s.draggedAxis&&s.contentWrapperEl){var v,f=s.axis[s.draggedAxis].track,b=null!==(r=null===(i=f.rect)||void 0===i?void 0:i[s.axis[s.draggedAxis].sizeAttr])&&void 0!==r?r:0,g=s.axis[s.draggedAxis].scrollbar,m=null!==(o=null===(l=s.contentWrapperEl)||void 0===l?void 0:l[s.axis[s.draggedAxis].scrollSizeAttr])&&void 0!==o?o:0,x=parseInt(null!==(a=null===(n=s.elStyles)||void 0===n?void 0:n[s.axis[s.draggedAxis].sizeAttr])&&void 0!==a?a:"0px",10);t.preventDefault(),t.stopPropagation(),v="y"===s.draggedAxis?t.pageY:t.pageX;var y=v-(null!==(h=null===(c=f.rect)||void 0===c?void 0:c[s.axis[s.draggedAxis].offsetAttr])&&void 0!==h?h:0)-s.axis[s.draggedAxis].dragOffset;y="x"===s.draggedAxis&&s.isRtl?(null!==(d=null===(u=f.rect)||void 0===u?void 0:u[s.axis[s.draggedAxis].sizeAttr])&&void 0!==d?d:0)-g.size-y:y;var E=y/(b-g.size),S=E*(m-x);"x"===s.draggedAxis&&s.isRtl&&(S=(null===(p=e.getRtlHelpers())||void 0===p?void 0:p.isScrollingToNegative)?-S:S),s.contentWrapperEl[s.axis[s.draggedAxis].scrollOffsetAttr]=S}},this.onEndDrag=function(e){s.isDragging=!1;var t=ve(s.el),i=pe(s.el);e.preventDefault(),e.stopPropagation(),ge(s.el,s.classNames.dragging),s.onStopScrolling(),t.removeEventListener("mousemove",s.drag,!0),t.removeEventListener("mouseup",s.onEndDrag,!0),s.removePreventClickId=i.setTimeout((function(){t.removeEventListener("click",s.preventClick,!0),t.removeEventListener("dblclick",s.preventClick,!0),s.removePreventClickId=null}))},this.preventClick=function(e){e.preventDefault(),e.stopPropagation()},this.el=t,this.options=te(te({},e.defaultOptions),i),this.classNames=te(te({},e.defaultOptions.classNames),i.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}}},"object"!==typeof this.el||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=ee(this._onMouseMove,64),this.onWindowResize=J(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=J(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=J(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var i=t.firstElementChild,s=null===i||void 0===i?void 0:i.firstElementChild;if(!s)return null;document.body.appendChild(i),i.scrollLeft=0;var r=e.getOffset(i),l=e.getOffset(s);i.scrollLeft=-999;var o=e.getOffset(s);return document.body.removeChild(i),e.rtlHelpers={isScrollOriginAtZero:r.left!==l.left,isScrollingToNegative:l.left!==o.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:de()}catch(e){return de()}},e.getOffset=function(e){var t=e.getBoundingClientRect(),i=ve(e),s=pe(e);return{top:t.top+(s.pageYOffset||i.documentElement.scrollTop),left:t.left+(s.pageXOffset||i.documentElement.scrollLeft)}},e.prototype.init=function(){ae&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var e,t;this.wrapperEl=this.el.querySelector(me(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(me(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(me(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(me(this.classNames.offset)),this.maskEl=this.el.querySelector(me(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,me(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(me(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(me(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(me(this.classNames.track)).concat(me(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(me(this.classNames.track)).concat(me(this.classNames.vertical))),this.axis.x.scrollbar.el=(null===(e=this.axis.x.track.el)||void 0===e?void 0:e.querySelector(me(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=(null===(t=this.axis.y.track.el)||void 0===t?void 0:t.querySelector(me(this.classNames.scrollbar)))||null,this.options.autoHide||(be(this.axis.x.scrollbar.el,this.classNames.visible),be(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var e,t=this,i=pe(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),null===(e=this.contentWrapperEl)||void 0===e||e.addEventListener("scroll",this.onScroll),i.addEventListener("resize",this.onWindowResize),this.contentEl){if(window.ResizeObserver){var s=!1,r=i.ResizeObserver||ResizeObserver;this.resizeObserver=new r((function(){s&&i.requestAnimationFrame((function(){t.recalculate()}))})),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),i.requestAnimationFrame((function(){s=!0}))}this.mutationObserver=new i.MutationObserver((function(){i.requestAnimationFrame((function(){t.recalculate()}))})),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(this.heightAutoObserverEl&&this.contentEl&&this.contentWrapperEl&&this.wrapperEl&&this.placeholderEl){var e=pe(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var t=this.contentEl.offsetWidth,i=this.heightAutoObserverEl.offsetHeight<=1,s=this.heightAutoObserverEl.offsetWidth<=1||t>0,r=this.contentWrapperEl.offsetWidth,l=this.elStyles.overflowX,o=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 n=this.contentEl.scrollHeight,a=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=i?"auto":"100%",this.placeholderEl.style.width=s?"".concat(t||a,"px"):"auto",this.placeholderEl.style.height="".concat(n,"px");var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=0!==t&&a>t,this.axis.y.isOverflowing=n>c,this.axis.x.isOverflowing="hidden"!==l&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==o&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var h=this.axis.x.isOverflowing?this.scrollbarWidth:0,u=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&a>r-u,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&n>c-h,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(e){var t,i;if(void 0===e&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var s,r=this.contentEl[this.axis[e].scrollSizeAttr],l=null!==(i=null===(t=this.axis[e].track.el)||void 0===t?void 0:t[this.axis[e].offsetSizeAttr])&&void 0!==i?i:0,o=l/r;return s=Math.max(~~(o*l),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(s=Math.min(s,this.options.scrollbarMaxSize)),s},e.prototype.positionScrollbar=function(t){var i,s,r;void 0===t&&(t="y");var l=this.axis[t].scrollbar;if(this.axis[t].isOverflowing&&this.contentWrapperEl&&l.el&&this.elStyles){var o=this.contentWrapperEl[this.axis[t].scrollSizeAttr],n=(null===(i=this.axis[t].track.el)||void 0===i?void 0:i[this.axis[t].offsetSizeAttr])||0,a=parseInt(this.elStyles[this.axis[t].sizeAttr],10),c=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];c="x"===t&&this.isRtl&&(null===(s=e.getRtlHelpers())||void 0===s?void 0:s.isScrollOriginAtZero)?-c:c,"x"===t&&this.isRtl&&(c=(null===(r=e.getRtlHelpers())||void 0===r?void 0:r.isScrollingToNegative)?c:-c);var h=c/(o-a),u=~~((n-l.size)*h);u="x"===t&&this.isRtl?-u+(n-l.size):u,l.el.style.transform="x"===t?"translate3d(".concat(u,"px, 0, 0)"):"translate3d(0, ".concat(u,"px, 0)")}},e.prototype.toggleTrackVisibility=function(e){void 0===e&&(e="y");var t=this.axis[e].track.el,i=this.axis[e].scrollbar.el;t&&i&&this.contentWrapperEl&&(this.axis[e].isOverflowing||this.axis[e].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?i.style.display="block":i.style.display="none")},e.prototype.showScrollbar=function(e){void 0===e&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(be(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(e){void 0===e&&(e="y"),this.isDragging||this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(ge(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(e){void 0===e&&(e="y");var t=this.axis[e];t.track.el&&t.scrollbar.el&&(t.track.rect=t.track.el.getBoundingClientRect(),t.scrollbar.rect=t.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(t.track.rect)?(this.showScrollbar(e),be(t.track.el,this.classNames.hover),this.isWithinBounds(t.scrollbar.rect)?be(t.scrollbar.el,this.classNames.hover):ge(t.scrollbar.el,this.classNames.hover)):(ge(t.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},e.prototype.onMouseLeaveForAxis=function(e){void 0===e&&(e="y"),ge(this.axis[e].track.el,this.classNames.hover),ge(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},e.prototype.onDragStart=function(e,t){var i;void 0===t&&(t="y"),this.isDragging=!0;var s=ve(this.el),r=pe(this.el),l=this.axis[t].scrollbar,o="y"===t?e.pageY:e.pageX;this.axis[t].dragOffset=o-((null===(i=l.rect)||void 0===i?void 0:i[this.axis[t].offsetAttr])||0),this.draggedAxis=t,be(this.el,this.classNames.dragging),s.addEventListener("mousemove",this.drag,!0),s.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(s.addEventListener("click",this.preventClick,!0),s.addEventListener("dblclick",this.preventClick,!0)):(r.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(e,t){var i,s,r,l,o=this;void 0===t&&(t="y");var n=this.axis[t];if(this.options.clickOnTrack&&n.scrollbar.el&&this.contentWrapperEl){e.preventDefault();var a=pe(this.el);this.axis[t].scrollbar.rect=n.scrollbar.el.getBoundingClientRect();var c=this.axis[t].scrollbar,h=null!==(s=null===(i=c.rect)||void 0===i?void 0:i[this.axis[t].offsetAttr])&&void 0!==s?s:0,u=parseInt(null!==(l=null===(r=this.elStyles)||void 0===r?void 0:r[this.axis[t].sizeAttr])&&void 0!==l?l:"0px",10),d=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],p="y"===t?this.mouseY-h:this.mouseX-h,v=p<0?-1:1,f=-1===v?d-u:d+u,b=40,g=function(){o.contentWrapperEl&&(-1===v?d>f&&(d-=b,o.contentWrapperEl[o.axis[t].scrollOffsetAttr]=d,a.requestAnimationFrame(g)):d<f&&(d+=b,o.contentWrapperEl[o.axis[t].scrollOffsetAttr]=d,a.requestAnimationFrame(g)))};g()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var e=pe(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),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},e.prototype.findChild=function(e,t){var i=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,(function(e){return i.call(e,t)}))[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=fe,e.helpers=ce,e}(),ye=!0;var Ee,Se=i(6768),we=function(){return we=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++)for(var r in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},we.apply(this,arguments)},Oe={beforeUnmount:ye?"beforeUnmount":"beforeDestroy",unmount:ye?"unmount":"destroy"};function ke(e){var t,i=e.h,s=e.emit,r=e.slots,l=e.props,o=function(e){return s("scroll",e)},n=we(we({},xe.defaultOptions.classNames),l.classNames);return i("div",we({ref:"element"},ye?{"data-simplebar":"init"}:{attrs:{"data-simplebar":"init"}}),[i("div",{class:n.wrapper},[i("div",{class:n.heightAutoObserverWrapperEl},[i("div",{class:n.heightAutoObserverEl})]),i("div",{class:n.mask},[i("div",{class:n.offset},[i("div",we(we({},ye?{onScroll:o,class:n.contentWrapper,tabIndex:l.tabIndex||xe.defaultOptions.tabIndex,role:"region","aria-label":l.ariaLabel||xe.defaultOptions.ariaLabel}:{attrs:{class:n.contentWrapper,tabIndex:l.tabIndex||xe.defaultOptions.tabIndex,role:"region","aria-label":l.ariaLabel||xe.defaultOptions.ariaLabel},on:{scroll:o}}),{ref:"scrollElement"}),[i("div",{class:n.contentEl,ref:"contentElement"},null===(t=r["default"])||void 0===t?void 0:t.call(r))])])]),i("div",{class:n.placeholder})]),i("div",{class:"".concat(n.track," simplebar-horizontal")},[i("div",{class:n.scrollbar})]),i("div",{class:"".concat(n.track," simplebar-vertical")},[i("div",{class:n.scrollbar})])])}var Ae=(0,Se.pM)((Ee={name:"simplebar-vue",props:{autoHide:{type:Boolean,default:void 0},classNames:Object,forceVisible:{type:[Boolean,String],validator:function(e){return"boolean"===typeof e||"x"===e||"y"===e},default:void 0},ariaLabel:String,tabIndex:Number,direction:{type:String,validator:function(e){return"ltr"===e||"rtl"===e}},timeout:Number,clickOnTrack:{type:Boolean,default:void 0},scrollbarMinSize:Number,scrollbarMaxSize:Number},emits:["scroll"],data:function(){return{}},mounted:function(){for(var e=xe.getOptions(this.$refs.element.attributes),t=0,i=Object.entries(this.$props);t<i.length;t++){var s=i[t],r=s[0],l=s[1];void 0!=l&&"function"!==typeof l&&(e[r]=l)}this.SimpleBar=new xe(this.$refs.element,e),this.scrollElement=this.$refs.scrollElement,this.contentElement=this.$refs.contentElement}},Ee[Oe.beforeUnmount]=function(){var e;null===(e=this.SimpleBar)||void 0===e||e.unMount(),this.SimpleBar=void 0},Ee.methods={recalculate:function(){var e;null===(e=this.SimpleBar)||void 0===e||e.recalculate()}},Ee.render=function(e){var t=this;return ke({h:"function"===typeof e?e:Se.h,emit:function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.$emit.apply(t,e)},slots:ye?this.$slots:this.$scopedSlots,props:this.$props})},Ee))},3301:function(e,t,i){i.d(t,{QJ:function(){return r},lR:function(){return l}});var s=i(782);(0,s.aH)("auth",{currentUser:e=>e.currentUser}),(0,s.L8)("auth",["loggedIn"]);const r={...(0,s.aH)("layout",{layoutType:e=>e.layoutType,sidebarSize:e=>e.sidebarSize,layoutWidth:e=>e.layoutWidth,topbar:e=>e.topbar,mode:e=>e.mode,position:e=>e.position,sidebarView:e=>e.sidebarView,sidebarColor:e=>e.sidebarColor,sidebarCaption:e=>e.sidebarCaption,color:e=>e.color,direction:e=>e.direction,sidebarImage:e=>e.sidebarImage,layoutTheme:e=>e.layoutTheme,preloader:e=>e.preloader})},l=(0,s.i0)("layout",["changeLayoutType","changeTopbar","changeMode","changePosition","changeSidebarView","changeSidebarColor","changeSidebarCaption","changeColor","changeDirection","changeThemes"])}}]);
  2. //# sourceMappingURL=907.c743a8c4.js.map