Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simplebar

Package Overview
Dependencies
Maintainers
2
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simplebar - npm Package Compare versions

Comparing version 4.0.0-alpha.2 to 4.0.0-alpha.3

18

dist/simplebar.esm.js
/**
* SimpleBar.js - v4.0.0-alpha.2
* SimpleBar.js - v4.0.0-alpha.3
* Scrollbars, simpler.

@@ -436,2 +436,3 @@ * https://grsmto.github.io/simplebar/

this.isRtl = this.elStyles.direction === 'rtl';
this.resizeWrapperEl.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);

@@ -441,13 +442,12 @@ this.contentEl.style.height = isHeightAuto ? 'auto' : '100%'; // Determine placeholder size

this.placeholderEl.style.width = isWidthAuto ? "".concat(this.resizeWrapperEl.clientWidth, "px") : 'auto';
this.placeholderEl.style.height = "".concat(this.resizeWrapperEl.scrollHeight, "px");
this.resizeWrapperEl.style.padding = "".concat(this.elStyles.paddingTop, " ").concat(this.elStyles.paddingRight, " ").concat(this.elStyles.paddingBottom, " ").concat(this.elStyles.paddingLeft); // Set isOverflowing to false if scrollbar is not necessary (content is shorter than offset)
this.placeholderEl.style.height = "".concat(this.resizeWrapperEl.scrollHeight, "px"); // Set isOverflowing to false if scrollbar is not necessary (content is shorter than offset)
this.axis.x.isOverflowing = this.contentEl.scrollWidth > this.contentEl.clientWidth;
this.axis.y.isOverflowing = this.contentEl.scrollHeight > this.contentEl.clientHeight;
this.hideNativeScrollbar();
this.axis.x.track.rect = this.axis.x.track.el.getBoundingClientRect();
this.axis.y.track.rect = this.axis.y.track.el.getBoundingClientRect(); // Set isOverflowing to false if user explicitely set hidden overflow
this.axis.y.isOverflowing = this.contentEl.scrollHeight > this.contentEl.clientHeight; // Set isOverflowing to false if user explicitely set hidden overflow
this.axis.x.isOverflowing = this.elStyles.overflowX === 'hidden' ? false : this.axis.x.isOverflowing;
this.axis.y.isOverflowing = this.elStyles.overflowY === 'hidden' ? false : this.axis.y.isOverflowing;
this.hideNativeScrollbar();
this.axis.x.track.rect = this.axis.x.track.el.getBoundingClientRect();
this.axis.y.track.rect = this.axis.y.track.el.getBoundingClientRect();
this.axis.x.forceVisible = this.options.forceVisible === 'x' || this.options.forceVisible === true;

@@ -535,4 +535,4 @@ this.axis.y.forceVisible = this.options.forceVisible === 'y' || this.options.forceVisible === true;

var paddingDirection = [this.isRtl ? 'paddingLeft' : 'paddingRight'];
this.contentEl.style[paddingDirection] = (this.axis.y.isOverflowing || this.axis.y.forceVisible) && "".concat(this.minScrollbarWidth, "px");
this.contentEl.style.paddingBottom = (this.axis.x.isOverflowing || this.axis.x.forceVisible) && "".concat(this.minScrollbarWidth, "px");
this.contentEl.style[paddingDirection] = this.axis.y.isOverflowing || this.axis.y.forceVisible ? "".concat(this.minScrollbarWidth, "px") : 0;
this.contentEl.style.paddingBottom = this.axis.x.isOverflowing || this.axis.x.forceVisible ? "".concat(this.minScrollbarWidth, "px") : 0;
}

@@ -539,0 +539,0 @@ }

/**
* SimpleBar.js - v4.0.0-alpha.2
* SimpleBar.js - v4.0.0-alpha.3
* Scrollbars, simpler.

@@ -10,2 +10,2 @@ * https://grsmto.github.io/simplebar/

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).SimpleBar=e()}(this,function(){"use strict";var t,e=function(t){return"object"==typeof t?null!==t:"function"==typeof t},i=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t},r=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},n=function(t){return Object(r(t))},s=Math.ceil,o=Math.floor,a=function(t){return isNaN(t=+t)?0:(t>0?o:s)(t)},l=Math.min,c=function(t){return t>0?l(a(t),9007199254740991):0},u=(t=!0,function(e,i){var n,s,o=String(r(e)),l=a(i),c=o.length;return l<0||l>=c?t?"":void 0:(n=o.charCodeAt(l))<55296||n>56319||l+1===c||(s=o.charCodeAt(l+1))<56320||s>57343?t?o.charAt(l):n:t?o.slice(l,l+2):s-56320+(n-55296<<10)+65536}),h=function(t,e,i){return e+(i?u(t,e).length:1)},f={}.toString,d=function(t){return f.call(t).slice(8,-1)},p="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(t,e){return t(e={exports:{}},e.exports),e.exports}var y,b,g=v(function(t){var e=t.exports={version:"2.6.2"};"number"==typeof __e&&(__e=e)}),m=(g.version,v(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)})),x=v(function(t){var e=m["__core-js_shared__"]||(m["__core-js_shared__"]={});(t.exports=function(t,i){return e[t]||(e[t]=void 0!==i?i:{})})("versions",[]).push({version:g.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),E=0,w=Math.random(),_=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++E+w).toString(36))},O=v(function(t){var e=x("wks"),i=m.Symbol,r="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=r&&i[t]||(r?i:_)("Symbol."+t))}).store=e}),S=O("toStringTag"),k="Arguments"==d(function(){return arguments}()),A=RegExp.prototype.exec,L=function(t,e){var i,r,n,s,o=t.exec;if("function"==typeof o){var a=o.call(t,e);if("object"!=typeof a)throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==(void 0===(i=t)?"Undefined":null===i?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(r=Object(i),S))?n:k?d(r):"Object"==(s=d(r))&&"function"==typeof r.callee?"Arguments":s))throw new TypeError("RegExp#exec called on incompatible receiver");return A.call(t,e)},M=RegExp.prototype.exec,T=String.prototype.replace,j=M,R=(y=/a/,b=/b*/g,M.call(y,"a"),M.call(b,"a"),0!==y.lastIndex||0!==b.lastIndex),z=void 0!==/()??/.exec("")[1];(R||z)&&(j=function(t){var e,r,n,s,o=this;return z&&(r=new RegExp("^"+o.source+"$(?!\\s)",function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}.call(o))),R&&(e=o.lastIndex),n=M.call(o,t),R&&n&&(o.lastIndex=o.global?n.index+n[0].length:e),z&&n&&n.length>1&&T.call(n[0],r,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)}),n});var W=j,N=function(t){try{return!!t()}catch(t){return!0}},C=!N(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),V=m.document,D=e(V)&&e(V.createElement),B=function(t){return D?V.createElement(t):{}},P=!C&&!N(function(){return 7!=Object.defineProperty(B("div"),"a",{get:function(){return 7}}).a}),F=Object.defineProperty,I={f:C?Object.defineProperty:function(t,r,n){if(i(t),r=function(t,i){if(!e(t))return t;var r,n;if(i&&"function"==typeof(r=t.toString)&&!e(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!e(n=r.call(t)))return n;if(!i&&"function"==typeof(r=t.toString)&&!e(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}(r,!0),i(n),P)try{return F(t,r,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[r]=n.value),t}},H=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},q=C?function(t,e,i){return I.f(t,e,H(1,i))}:function(t,e,i){return t[e]=i,t},$={}.hasOwnProperty,X=function(t,e){return $.call(t,e)},Y=v(function(t){var e=_("src"),i=Function.toString,r=(""+i).split("toString");g.inspectSource=function(t){return i.call(t)},(t.exports=function(t,i,n,s){var o="function"==typeof n;o&&(X(n,"name")||q(n,"name",i)),t[i]!==n&&(o&&(X(n,e)||q(n,e,t[i]?""+t[i]:r.join(String(i)))),t===m?t[i]=n:s?t[i]?t[i]=n:q(t,i,n):(delete t[i],q(t,i,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[e]||i.call(this)})}),G=function(t,e,i){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,r){return t.call(e,i,r)};case 3:return function(i,r,n){return t.call(e,i,r,n)}}return function(){return t.apply(e,arguments)}},U=function(t,e,i){var r,n,s,o,a=t&U.F,l=t&U.G,c=t&U.S,u=t&U.P,h=t&U.B,f=l?m:c?m[e]||(m[e]={}):(m[e]||{}).prototype,d=l?g:g[e]||(g[e]={}),p=d.prototype||(d.prototype={});for(r in l&&(i=e),i)s=((n=!a&&f&&void 0!==f[r])?f:i)[r],o=h&&n?G(s,m):u&&"function"==typeof s?G(Function.call,s):s,f&&Y(f,r,s,t&U.U),d[r]!=s&&q(d,r,o),u&&p[r]!=s&&(p[r]=s)};m.core=g,U.F=1,U.G=2,U.S=4,U.P=8,U.B=16,U.W=32,U.U=64,U.R=128;var J=U;J({target:"RegExp",proto:!0,forced:W!==/./.exec},{exec:W});var K=O("species"),Q=!N(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),Z=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}(),tt=function(t,e,i){var n=O(t),s=!N(function(){var e={};return e[n]=function(){return 7},7!=""[t](e)}),o=s?!N(function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[K]=function(){return i}),i[n](""),!e}):void 0;if(!s||!o||"replace"===t&&!Q||"split"===t&&!Z){var a=/./[n],l=i(r,n,""[t],function(t,e,i,r,n){return e.exec===W?s&&!n?{done:!0,value:a.call(e,i,r)}:{done:!0,value:t.call(i,e,r)}:{done:!1}}),c=l[0],u=l[1];Y(String.prototype,t,c),q(RegExp.prototype,n,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}},et=Math.max,it=Math.min,rt=Math.floor,nt=/\$([$&`']|\d\d?|<[^>]*>)/g,st=/\$([$&`']|\d\d?)/g;tt("replace",2,function(t,e,r,s){return[function(i,n){var s=t(this),o=null==i?void 0:i[e];return void 0!==o?o.call(i,s,n):r.call(String(s),i,n)},function(t,e){var n=s(r,t,this,e);if(n.done)return n.value;var l=i(t),u=String(this),f="function"==typeof e;f||(e=String(e));var d=l.global;if(d){var p=l.unicode;l.lastIndex=0}for(var v=[];;){var y=L(l,u);if(null===y)break;if(v.push(y),!d)break;""===String(y[0])&&(l.lastIndex=h(u,c(l.lastIndex),p))}for(var b,g="",m=0,x=0;x<v.length;x++){y=v[x];for(var E=String(y[0]),w=et(it(a(y.index),u.length),0),_=[],O=1;O<y.length;O++)_.push(void 0===(b=y[O])?b:String(b));var S=y.groups;if(f){var k=[E].concat(_,w,u);void 0!==S&&k.push(S);var A=String(e.apply(void 0,k))}else A=o(E,u,w,_,S,e);w>=m&&(g+=u.slice(m,w)+A,m=w+E.length)}return g+u.slice(m)}];function o(t,e,i,s,o,a){var l=i+t.length,c=s.length,u=st;return void 0!==o&&(o=n(o),u=nt),r.call(a,u,function(r,n){var a;switch(n.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(l);case"<":a=o[n.slice(1,-1)];break;default:var u=+n;if(0===u)return r;if(u>c){var h=rt(u/10);return 0===h?r:h<=c?void 0===s[h-1]?n.charAt(1):s[h-1]+n.charAt(1):r}a=s[u-1]}return void 0===a?"":a})}});var ot=I.f,at=Function.prototype,lt=/^\s*function ([^ (]*)/;"name"in at||C&&ot(at,"name",{configurable:!0,get:function(){try{return(""+this).match(lt)[1]}catch(t){return""}}}),tt("match",1,function(t,e,r,n){return[function(i){var r=t(this),n=null==i?void 0:i[e];return void 0!==n?n.call(i,r):new RegExp(i)[e](String(r))},function(t){var e=n(r,t,this);if(e.done)return e.value;var s=i(t),o=String(this);if(!s.global)return L(s,o);var a=s.unicode;s.lastIndex=0;for(var l,u=[],f=0;null!==(l=L(s,o));){var d=String(l[0]);u[f]=d,""===d&&(s.lastIndex=h(o,c(s.lastIndex),a)),f++}return 0===f?null:u}]});var ct=O("unscopables"),ut=Array.prototype;null==ut[ct]&&q(ut,ct,{});var ht,ft=function(t){ut[ct][t]=!0},dt=function(t,e){return{value:e,done:!!t}},pt={},vt=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==d(t)?t.split(""):Object(t)},yt=function(t){return vt(r(t))},bt=Math.max,gt=Math.min,mt=x("keys"),xt=function(t){return mt[t]||(mt[t]=_(t))},Et=(ht=!1,function(t,e,i){var r,n=yt(t),s=c(n.length),o=function(t,e){return(t=a(t))<0?bt(t+e,0):gt(t,e)}(i,s);if(ht&&e!=e){for(;s>o;)if((r=n[o++])!=r)return!0}else for(;s>o;o++)if((ht||o in n)&&n[o]===e)return ht||o||0;return!ht&&-1}),wt=xt("IE_PROTO"),_t="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Ot=Object.keys||function(t){return function(t,e){var i,r=yt(t),n=0,s=[];for(i in r)i!=wt&&X(r,i)&&s.push(i);for(;e.length>n;)X(r,i=e[n++])&&(~Et(s,i)||s.push(i));return s}(t,_t)},St=C?Object.defineProperties:function(t,e){i(t);for(var r,n=Ot(e),s=n.length,o=0;s>o;)I.f(t,r=n[o++],e[r]);return t},kt=m.document,At=kt&&kt.documentElement,Lt=xt("IE_PROTO"),Mt=function(){},Tt=function(){var t,e=B("iframe"),i=_t.length;for(e.style.display="none",At.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),Tt=t.F;i--;)delete Tt.prototype[_t[i]];return Tt()},jt=Object.create||function(t,e){var r;return null!==t?(Mt.prototype=i(t),r=new Mt,Mt.prototype=null,r[Lt]=t):r=Tt(),void 0===e?r:St(r,e)},Rt=I.f,zt=O("toStringTag"),Wt=function(t,e,i){t&&!X(t=i?t:t.prototype,zt)&&Rt(t,zt,{configurable:!0,value:e})},Nt={};q(Nt,O("iterator"),function(){return this});var Ct=function(t,e,i){t.prototype=jt(Nt,{next:H(1,i)}),Wt(t,e+" Iterator")},Vt=xt("IE_PROTO"),Dt=Object.prototype,Bt=Object.getPrototypeOf||function(t){return t=n(t),X(t,Vt)?t[Vt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Dt:null},Pt=O("iterator"),Ft=!([].keys&&"next"in[].keys()),It=function(){return this},Ht=function(t,e,i,r,n,s,o){Ct(i,e,r);var a,l,c,u=function(t){if(!Ft&&t in p)return p[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},h=e+" Iterator",f="values"==n,d=!1,p=t.prototype,v=p[Pt]||p["@@iterator"]||n&&p[n],y=v||u(n),b=n?f?u("entries"):y:void 0,g="Array"==e&&p.entries||v;if(g&&(c=Bt(g.call(new t)))!==Object.prototype&&c.next&&(Wt(c,h,!0),"function"!=typeof c[Pt]&&q(c,Pt,It)),f&&v&&"values"!==v.name&&(d=!0,y=function(){return v.call(this)}),(Ft||d||!p[Pt])&&q(p,Pt,y),pt[e]=y,pt[h]=It,n)if(a={values:f?y:u("values"),keys:s?y:u("keys"),entries:b},o)for(l in a)l in p||Y(p,l,a[l]);else J(J.P+J.F*(Ft||d),e,a);return a}(Array,"Array",function(t,e){this._t=yt(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,dt(1)):dt(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])},"values");pt.Arguments=pt.Array,ft("keys"),ft("values"),ft("entries");for(var qt=O("iterator"),$t=O("toStringTag"),Xt=pt.Array,Yt={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},Gt=Ot(Yt),Ut=0;Ut<Gt.length;Ut++){var Jt,Kt=Gt[Ut],Qt=Yt[Kt],Zt=m[Kt],te=Zt&&Zt.prototype;if(te&&(te[qt]||q(te,qt,Xt),te[$t]||q(te,$t,Kt),pt[Kt]=Xt,Qt))for(Jt in Ht)te[Jt]||Y(te,Jt,Ht[Jt],!0)}function ee(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ie(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function re(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},r=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable}))),r.forEach(function(e){ie(t,e,i[e])})}return t}var ne=v(function(t,e){t.exports=function(){if("undefined"==typeof document)return 0;var t,e=document.body,i=document.createElement("div"),r=i.style;return r.position="absolute",r.top=r.left="-9999px",r.width=r.height="100px",r.overflow="scroll",e.appendChild(i),t=i.offsetWidth-i.clientWidth,e.removeChild(i),t}}),se="Expected a function",oe=NaN,ae="[object Symbol]",le=/^\s+|\s+$/g,ce=/^[-+]0x[0-9a-f]+$/i,ue=/^0b[01]+$/i,he=/^0o[0-7]+$/i,fe=parseInt,de="object"==typeof p&&p&&p.Object===Object&&p,pe="object"==typeof self&&self&&self.Object===Object&&self,ve=de||pe||Function("return this")(),ye=Object.prototype.toString,be=Math.max,ge=Math.min,me=function(){return ve.Date.now()};function xe(t,e,i){var r,n,s,o,a,l,c=0,u=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError(se);function d(e){var i=r,s=n;return r=n=void 0,c=e,o=t.apply(s,i)}function p(t){var i=t-l;return void 0===l||i>=e||i<0||h&&t-c>=s}function v(){var t=me();if(p(t))return y(t);a=setTimeout(v,function(t){var i=e-(t-l);return h?ge(i,s-(t-c)):i}(t))}function y(t){return a=void 0,f&&r?d(t):(r=n=void 0,o)}function b(){var t=me(),i=p(t);if(r=arguments,n=this,l=t,i){if(void 0===a)return function(t){return c=t,a=setTimeout(v,e),u?d(t):o}(l);if(h)return a=setTimeout(v,e),d(l)}return void 0===a&&(a=setTimeout(v,e)),o}return e=we(e)||0,Ee(i)&&(u=!!i.leading,s=(h="maxWait"in i)?be(we(i.maxWait)||0,e):s,f="trailing"in i?!!i.trailing:f),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=l=n=a=void 0},b.flush=function(){return void 0===a?o:y(me())},b}function Ee(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function we(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&ye.call(t)==ae}(t))return oe;if(Ee(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ee(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(le,"");var i=ue.test(t);return i||he.test(t)?fe(t.slice(2),i?2:8):ce.test(t)?oe:+t}var _e=function(t,e,i){var r=!0,n=!0;if("function"!=typeof t)throw new TypeError(se);return Ee(i)&&(r="leading"in i?!!i.leading:r,n="trailing"in i?!!i.trailing:n),xe(t,e,{leading:r,maxWait:e,trailing:n})},Oe="Expected a function",Se=NaN,ke="[object Symbol]",Ae=/^\s+|\s+$/g,Le=/^[-+]0x[0-9a-f]+$/i,Me=/^0b[01]+$/i,Te=/^0o[0-7]+$/i,je=parseInt,Re="object"==typeof p&&p&&p.Object===Object&&p,ze="object"==typeof self&&self&&self.Object===Object&&self,We=Re||ze||Function("return this")(),Ne=Object.prototype.toString,Ce=Math.max,Ve=Math.min,De=function(){return We.Date.now()};function Be(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Pe(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&Ne.call(t)==ke}(t))return Se;if(Be(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Be(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Ae,"");var i=Me.test(t);return i||Te.test(t)?je(t.slice(2),i?2:8):Le.test(t)?Se:+t}var Fe=function(t,e,i){var r,n,s,o,a,l,c=0,u=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError(Oe);function d(e){var i=r,s=n;return r=n=void 0,c=e,o=t.apply(s,i)}function p(t){var i=t-l;return void 0===l||i>=e||i<0||h&&t-c>=s}function v(){var t=De();if(p(t))return y(t);a=setTimeout(v,function(t){var i=e-(t-l);return h?Ve(i,s-(t-c)):i}(t))}function y(t){return a=void 0,f&&r?d(t):(r=n=void 0,o)}function b(){var t=De(),i=p(t);if(r=arguments,n=this,l=t,i){if(void 0===a)return function(t){return c=t,a=setTimeout(v,e),u?d(t):o}(l);if(h)return a=setTimeout(v,e),d(l)}return void 0===a&&(a=setTimeout(v,e)),o}return e=Pe(e)||0,Be(i)&&(u=!!i.leading,s=(h="maxWait"in i)?Ce(Pe(i.maxWait)||0,e):s,f="trailing"in i?!!i.trailing:f),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=l=n=a=void 0},b.flush=function(){return void 0===a?o:y(De())},b},Ie="Expected a function",He="__lodash_hash_undefined__",qe="[object Function]",$e="[object GeneratorFunction]",Xe=/^\[object .+?Constructor\]$/,Ye="object"==typeof p&&p&&p.Object===Object&&p,Ge="object"==typeof self&&self&&self.Object===Object&&self,Ue=Ye||Ge||Function("return this")();var Je,Ke=Array.prototype,Qe=Function.prototype,Ze=Object.prototype,ti=Ue["__core-js_shared__"],ei=(Je=/[^.]+$/.exec(ti&&ti.keys&&ti.keys.IE_PROTO||""))?"Symbol(src)_1."+Je:"",ii=Qe.toString,ri=Ze.hasOwnProperty,ni=Ze.toString,si=RegExp("^"+ii.call(ri).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oi=Ke.splice,ai=vi(Ue,"Map"),li=vi(Object,"create");function ci(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}function ui(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}function hi(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}function fi(t,e){for(var i,r,n=t.length;n--;)if((i=t[n][0])===(r=e)||i!=i&&r!=r)return n;return-1}function di(t){return!(!bi(t)||(e=t,ei&&ei in e))&&(function(t){var e=bi(t)?ni.call(t):"";return e==qe||e==$e}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?si:Xe).test(function(t){if(null!=t){try{return ii.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function pi(t,e){var i,r,n=t.__data__;return("string"==(r=typeof(i=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?n["string"==typeof e?"string":"hash"]:n.map}function vi(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return di(i)?i:void 0}function yi(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(Ie);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],s=i.cache;if(s.has(n))return s.get(n);var o=t.apply(this,r);return i.cache=s.set(n,o),o};return i.cache=new(yi.Cache||hi),i}function bi(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}ci.prototype.clear=function(){this.__data__=li?li(null):{}},ci.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},ci.prototype.get=function(t){var e=this.__data__;if(li){var i=e[t];return i===He?void 0:i}return ri.call(e,t)?e[t]:void 0},ci.prototype.has=function(t){var e=this.__data__;return li?void 0!==e[t]:ri.call(e,t)},ci.prototype.set=function(t,e){return this.__data__[t]=li&&void 0===e?He:e,this},ui.prototype.clear=function(){this.__data__=[]},ui.prototype.delete=function(t){var e=this.__data__,i=fi(e,t);return!(i<0||(i==e.length-1?e.pop():oi.call(e,i,1),0))},ui.prototype.get=function(t){var e=this.__data__,i=fi(e,t);return i<0?void 0:e[i][1]},ui.prototype.has=function(t){return fi(this.__data__,t)>-1},ui.prototype.set=function(t,e){var i=this.__data__,r=fi(i,t);return r<0?i.push([t,e]):i[r][1]=e,this},hi.prototype.clear=function(){this.__data__={hash:new ci,map:new(ai||ui),string:new ci}},hi.prototype.delete=function(t){return pi(this,t).delete(t)},hi.prototype.get=function(t){return pi(this,t).get(t)},hi.prototype.has=function(t){return pi(this,t).has(t)},hi.prototype.set=function(t,e){return pi(this,t).set(t,e),this},yi.Cache=hi;var gi=yi,mi=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some(function(t,r){return t[0]===e&&(i=r,!0)}),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),r=this.__entries__[i];return r&&r[1]},e.prototype.set=function(e,i){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,r=t(i,e);~r&&i.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,r=this.__entries__;i<r.length;i++){var n=r[i];t.call(e,n[1],n[0])}},e}()}(),xi="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Ei="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),wi="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Ei):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},_i=2;var Oi=20,Si=["top","right","bottom","left","width","height","size","weight"],ki="undefined"!=typeof MutationObserver,Ai=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var i=!1,r=!1,n=0;function s(){i&&(i=!1,t()),r&&a()}function o(){wi(s)}function a(){var t=Date.now();if(i){if(t-n<_i)return;r=!0}else i=!0,r=!1,setTimeout(o,e);n=t}return a}(this.refresh.bind(this),Oi)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,i=e.indexOf(t);~i&&e.splice(i,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},t.prototype.connect_=function(){xi&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ki?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){xi&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;Si.some(function(t){return!!~i.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Li=function(t,e){for(var i=0,r=Object.keys(e);i<r.length;i++){var n=r[i];Object.defineProperty(t,n,{value:e[n],enumerable:!1,writable:!1,configurable:!0})}return t},Mi=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||Ei},Ti=Ci(0,0,0,0);function ji(t){return parseFloat(t)||0}function Ri(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return e.reduce(function(e,i){return e+ji(t["border-"+i+"-width"])},0)}function zi(t){var e=t.clientWidth,i=t.clientHeight;if(!e&&!i)return Ti;var r=Mi(t).getComputedStyle(t),n=function(t){for(var e={},i=0,r=["top","right","bottom","left"];i<r.length;i++){var n=r[i],s=t["padding-"+n];e[n]=ji(s)}return e}(r),s=n.left+n.right,o=n.top+n.bottom,a=ji(r.width),l=ji(r.height);if("border-box"===r.boxSizing&&(Math.round(a+s)!==e&&(a-=Ri(r,"left","right")+s),Math.round(l+o)!==i&&(l-=Ri(r,"top","bottom")+o)),!function(t){return t===Mi(t).document.documentElement}(t)){var c=Math.round(a+s)-e,u=Math.round(l+o)-i;1!==Math.abs(c)&&(a-=c),1!==Math.abs(u)&&(l-=u)}return Ci(n.left,n.top,a,l)}var Wi="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof Mi(t).SVGGraphicsElement}:function(t){return t instanceof Mi(t).SVGElement&&"function"==typeof t.getBBox};function Ni(t){return xi?Wi(t)?function(t){var e=t.getBBox();return Ci(0,0,e.width,e.height)}(t):zi(t):Ti}function Ci(t,e,i,r){return{x:t,y:e,width:i,height:r}}var Vi=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ci(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=Ni(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),Di=function(){return function(t,e){var i,r,n,s,o,a,l,c=(r=(i=e).x,n=i.y,s=i.width,o=i.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(a.prototype),Li(l,{x:r,y:n,width:s,height:o,top:n,right:r+s,bottom:o+n,left:r}),l);Li(this,{target:t,contentRect:c})}}(),Bi=function(){function t(t,e,i){if(this.activeObservations_=[],this.observations_=new mi,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=i}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Mi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new Vi(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Mi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new Di(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),Pi="undefined"!=typeof WeakMap?new WeakMap:new mi,Fi=function(){return function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=Ai.getInstance(),r=new Bi(e,i,this);Pi.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(t){Fi.prototype[t]=function(){var e;return(e=Pi.get(this))[t].apply(e,arguments)}});var Ii=void 0!==Ei.ResizeObserver?Ei.ResizeObserver:Fi,Hi=!("undefined"==typeof window||!window.document||!window.document.createElement),qi=function(){function t(e,i){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.onScroll=function(){r.scrollXTicking||(window.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(window.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0)},this.scrollX=function(){r.axis.x.isOverflowing&&(r.showScrollbar("x"),r.positionScrollbar("x")),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&(r.showScrollbar("y"),r.positionScrollbar("y")),r.scrollYTicking=!1},this.onMouseEnter=function(){r.showScrollbar("x"),r.showScrollbar("y")},this.onMouseMove=function(t){r.mouseX=t.clientX,r.mouseY=t.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this.onWindowResize=function(){r.scrollbarWidth=ne(),r.hideNativeScrollbar()},this.hideScrollbars=function(){r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.track.rect)||(r.axis.y.scrollbar.el.classList.remove(r.classNames.visible),r.axis.y.isVisible=!1),r.isWithinBounds(r.axis.x.track.rect)||(r.axis.x.scrollbar.el.classList.remove(r.classNames.visible),r.axis.x.isVisible=!1)},this.onPointerEvent=function(t){var e,i;r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(i=r.isWithinBounds(r.axis.x.scrollbar.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(e=r.isWithinBounds(r.axis.y.scrollbar.rect)),(e||i)&&(t.preventDefault(),t.stopPropagation(),"mousedown"===t.type&&(e&&r.onDragStart(t,"y"),i&&r.onDragStart(t,"x")))},this.drag=function(e){var i=r.axis[r.draggedAxis].track,n=i.rect[r.axis[r.draggedAxis].sizeAttr],s=r.axis[r.draggedAxis].scrollbar;e.preventDefault(),e.stopPropagation();var o=(("y"===r.draggedAxis?e.pageY:e.pageX)-i.rect[r.axis[r.draggedAxis].offsetAttr]-r.axis[r.draggedAxis].dragOffset)/i.rect[r.axis[r.draggedAxis].sizeAttr]*r.contentEl[r.axis[r.draggedAxis].scrollSizeAttr];"x"===r.draggedAxis&&(o=r.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?o-(n+s.size):o,o=r.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-o:o),r.contentEl[r.axis[r.draggedAxis].scrollOffsetAttr]=o},this.onEndDrag=function(t){t.preventDefault(),t.stopPropagation(),r.el.classList.remove(r.classNames.dragging),document.removeEventListener("mousemove",r.drag),document.removeEventListener("mouseup",r.onEndDrag)},this.el=e,this.flashTimeout,this.resizeWrapperEl,this.contentEl,this.offsetEl,this.maskEl,this.globalObserver,this.mutationObserver,this.resizeObserver,this.scrollbarWidth,this.minScrollbarWidth=20,this.options=re({},t.defaultOptions,i),this.classNames=re({},t.defaultOptions.classNames,this.options.classNames),this.isRtl,this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.el.SimpleBar||(this.recalculate=_e(this.recalculate.bind(this),64),this.onMouseMove=_e(this.onMouseMove.bind(this),64),this.hideScrollbars=Fe(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=Fe(this.onWindowResize.bind(this),64,{leading:!0}),t.getRtlHelpers=gi(t.getRtlHelpers),this.getContentElement=this.getScrollElement,this.init())}var e,i,r;return e=t,r=[{key:"getRtlHelpers",value:function(){var e=document.createElement("div");e.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var i=e.firstElementChild;document.body.appendChild(i);var r=i.firstElementChild;i.scrollLeft=0;var n=t.getOffset(i),s=t.getOffset(r);i.scrollLeft=999;var o=t.getOffset(r);return{isRtlScrollingInverted:n.left!==s.left&&s.left-o.left!=0,isRtlScrollbarInverted:n.left!==s.left}}},{key:"initHtmlApi",value:function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(function(e){e.forEach(function(e){Array.prototype.forEach.call(e.addedNodes,function(e){1===e.nodeType&&(e.dataset.simplebar?!e.SimpleBar&&new t(e,t.getElOptions(e)):Array.prototype.forEach.call(e.querySelectorAll("[data-simplebar]"),function(e){!e.SimpleBar&&new t(e,t.getElOptions(e))}))}),Array.prototype.forEach.call(e.removedNodes,function(t){1===t.nodeType&&(t.dataset.simplebar&&"init"!==t.dataset.simplebar?t.SimpleBar&&t.SimpleBar.unMount():Array.prototype.forEach.call(t.querySelectorAll("[data-simplebar]"),function(t){t.SimpleBar&&t.SimpleBar.unMount()}))})})}),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))}},{key:"getElOptions",value:function(t){return Array.prototype.reduce.call(t.attributes,function(t,e){var i=e.name.match(/data-simplebar-(.+)/);if(i){var r=i[1].replace(/\W+(.)/g,function(t,e){return e.toUpperCase()});switch(e.value){case"true":t[r]=!0;break;case"false":t[r]=!1;break;case void 0:t[r]=!0;break;default:t[r]=e.value}}return t},{})}},{key:"removeObserver",value:function(){this.globalObserver.disconnect()}},{key:"initDOMLoadedElements",value:function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(e){e.SimpleBar||new t(e,t.getElOptions(e))})}},{key:"getOffset",value:function(t){var e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft)}}}],(i=[{key:"init",value:function(){this.el.SimpleBar=this,Hi&&(this.initDOM(),this.scrollbarWidth=ne(),this.recalculate(),this.initListeners())}},{key:"initDOM",value:function(){var t=this;if(Array.prototype.filter.call(this.el.children,function(e){return e.classList.contains(t.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector(".".concat(this.classNames.wrapper)),this.contentEl=this.el.querySelector(".".concat(this.classNames.content)),this.offsetEl=this.el.querySelector(".".concat(this.classNames.offset)),this.maskEl=this.el.querySelector(".".concat(this.classNames.mask)),this.resizeWrapperEl=this.el.querySelector(".".concat(this.classNames.resizeWrapper)),this.placeholderEl=this.el.querySelector(".".concat(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(".".concat(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(".".concat(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.el.querySelector(".".concat(this.classNames.track,".").concat(this.classNames.horizontal)),this.axis.y.track.el=this.el.querySelector(".".concat(this.classNames.track,".").concat(this.classNames.vertical));else{for(this.wrapperEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.resizeWrapperEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentEl.classList.add(this.classNames.content),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.resizeWrapperEl.classList.add(this.classNames.resizeWrapper),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.resizeWrapperEl.appendChild(this.el.firstChild);this.contentEl.appendChild(this.resizeWrapperEl),this.offsetEl.appendChild(this.contentEl),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)}if(!this.axis.x.track.el||!this.axis.y.track.el){var e=document.createElement("div"),i=document.createElement("div");e.classList.add(this.classNames.track),i.classList.add(this.classNames.scrollbar),e.appendChild(i),this.axis.x.track.el=e.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=e.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector(".".concat(this.classNames.scrollbar)),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector(".".concat(this.classNames.scrollbar)),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")}},{key:"initListeners",value:function(){var t=this;this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick","touchstart","touchend","touchmove"].forEach(function(e){t.el.addEventListener(e,t.onPointerEvent,!0)}),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentEl.addEventListener("scroll",this.onScroll),window.addEventListener("resize",this.onWindowResize),this.resizeObserver=new Ii(this.recalculate),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.resizeWrapperEl)}},{key:"recalculate",value:function(){var t=this.heightAutoObserverEl.offsetHeight<=1,e=this.heightAutoObserverEl.offsetWidth<=1;this.elStyles=window.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction,this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft),this.contentEl.style.height=t?"auto":"100%",this.placeholderEl.style.width=e?"".concat(this.resizeWrapperEl.clientWidth,"px"):"auto",this.placeholderEl.style.height="".concat(this.resizeWrapperEl.scrollHeight,"px"),this.resizeWrapperEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.axis.x.isOverflowing=this.contentEl.scrollWidth>this.contentEl.clientWidth,this.axis.y.isOverflowing=this.contentEl.scrollHeight>this.contentEl.clientHeight,this.hideNativeScrollbar(),this.axis.x.track.rect=this.axis.x.track.el.getBoundingClientRect(),this.axis.y.track.rect=this.axis.y.track.el.getBoundingClientRect(),this.axis.x.isOverflowing="hidden"!==this.elStyles.overflowX&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==this.elStyles.overflowY&&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.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px"),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")}},{key:"getScrollbarSize",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",i=this.scrollbarWidth?this.contentEl[this.axis[e].scrollSizeAttr]:this.contentEl[this.axis[e].scrollSizeAttr]-this.minScrollbarWidth,r=this.axis[e].track.rect[this.axis[e].sizeAttr];if(this.axis[e].isOverflowing){var n=r/i;return t=Math.max(~~(n*r),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(t=Math.min(t,this.options.scrollbarMaxSize)),t}}},{key:"positionScrollbar",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",i=this.contentEl[this.axis[e].scrollSizeAttr],r=this.axis[e].track.rect[this.axis[e].sizeAttr],n=parseInt(this.elStyles[this.axis[e].sizeAttr],10),s=this.axis[e].scrollbar,o=this.contentEl[this.axis[e].scrollOffsetAttr],a=(o="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-o:o)/(i-n),l=~~((r-s.size)*a);l="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?l+(r-s.size):l,s.el.style.transform="x"===e?"translate3d(".concat(l,"px, 0, 0)"):"translate3d(0, ".concat(l,"px, 0)")}},{key:"toggleTrackVisibility",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",e=this.axis[t].track.el,i=this.axis[t].scrollbar.el;this.axis[t].isOverflowing||this.axis[t].forceVisible?(e.style.visibility="visible",this.contentEl.style[this.axis[t].overflowAttr]="scroll"):(e.style.visibility="hidden",this.contentEl.style[this.axis[t].overflowAttr]="hidden"),this.axis[t].isOverflowing?i.style.display="block":i.style.display="none"}},{key:"hideNativeScrollbar",value:function(){if(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth||this.minScrollbarWidth,"px"):0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth||this.minScrollbarWidth,"px"):0,!this.scrollbarWidth){var t=[this.isRtl?"paddingLeft":"paddingRight"];this.contentEl.style[t]=(this.axis.y.isOverflowing||this.axis.y.forceVisible)&&"".concat(this.minScrollbarWidth,"px"),this.contentEl.style.paddingBottom=(this.axis.x.isOverflowing||this.axis.x.forceVisible)&&"".concat(this.minScrollbarWidth,"px")}}},{key:"onMouseMoveForAxis",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.axis[t].track.rect=this.axis[t].track.el.getBoundingClientRect(),this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[t].scrollbar.rect)?this.axis[t].scrollbar.el.classList.add(this.classNames.hover):this.axis[t].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[t].track.rect)?(this.showScrollbar(t),this.axis[t].track.el.classList.add(this.classNames.hover)):this.axis[t].track.el.classList.remove(this.classNames.hover)}},{key:"onMouseLeaveForAxis",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.axis[t].track.el.classList.remove(this.classNames.hover),this.axis[t].scrollbar.el.classList.remove(this.classNames.hover)}},{key:"showScrollbar",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",e=this.axis[t].scrollbar.el;this.axis[t].isVisible||(e.classList.add(this.classNames.visible),this.axis[t].isVisible=!0),this.options.autoHide&&this.hideScrollbars()}},{key:"onDragStart",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",i=this.axis[e].scrollbar.el,r="y"===e?t.pageY:t.pageX;this.axis[e].dragOffset=r-i.getBoundingClientRect()[this.axis[e].offsetAttr],this.draggedAxis=e,this.el.classList.add(this.classNames.dragging),document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.onEndDrag)}},{key:"getScrollElement",value:function(){return this.contentEl}},{key:"removeListeners",value:function(){var t=this;this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick","touchstart","touchend","touchmove"].forEach(function(e){t.el.removeEventListener(e,t.onPointerEvent)}),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentEl.removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()}},{key:"unMount",value:function(){this.removeListeners(),this.el.SimpleBar=null}},{key:"isChildNode",value:function(t){return null!==t&&(t===this.el||this.isChildNode(t.parentNode))}},{key:"isWithinBounds",value:function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height}}])&&ee(e.prototype,i),r&&ee(e,r),t}();return qi.defaultOptions={autoHide:!0,forceVisible:!1,classNames:{resizeWrapper:"simplebar-resize-wrapper",content:"simplebar-content",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"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},Hi&&qi.initHtmlApi(),qi});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).SimpleBar=e()}(this,function(){"use strict";var t,e=function(t){return"object"==typeof t?null!==t:"function"==typeof t},i=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t},r=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},n=function(t){return Object(r(t))},s=Math.ceil,o=Math.floor,a=function(t){return isNaN(t=+t)?0:(t>0?o:s)(t)},l=Math.min,c=function(t){return t>0?l(a(t),9007199254740991):0},u=(t=!0,function(e,i){var n,s,o=String(r(e)),l=a(i),c=o.length;return l<0||l>=c?t?"":void 0:(n=o.charCodeAt(l))<55296||n>56319||l+1===c||(s=o.charCodeAt(l+1))<56320||s>57343?t?o.charAt(l):n:t?o.slice(l,l+2):s-56320+(n-55296<<10)+65536}),h=function(t,e,i){return e+(i?u(t,e).length:1)},f={}.toString,d=function(t){return f.call(t).slice(8,-1)},p="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(t,e){return t(e={exports:{}},e.exports),e.exports}var y,b,g=v(function(t){var e=t.exports={version:"2.6.2"};"number"==typeof __e&&(__e=e)}),m=(g.version,v(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)})),x=v(function(t){var e=m["__core-js_shared__"]||(m["__core-js_shared__"]={});(t.exports=function(t,i){return e[t]||(e[t]=void 0!==i?i:{})})("versions",[]).push({version:g.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),E=0,w=Math.random(),_=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++E+w).toString(36))},O=v(function(t){var e=x("wks"),i=m.Symbol,r="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=r&&i[t]||(r?i:_)("Symbol."+t))}).store=e}),S=O("toStringTag"),k="Arguments"==d(function(){return arguments}()),A=RegExp.prototype.exec,L=function(t,e){var i,r,n,s,o=t.exec;if("function"==typeof o){var a=o.call(t,e);if("object"!=typeof a)throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==(void 0===(i=t)?"Undefined":null===i?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(r=Object(i),S))?n:k?d(r):"Object"==(s=d(r))&&"function"==typeof r.callee?"Arguments":s))throw new TypeError("RegExp#exec called on incompatible receiver");return A.call(t,e)},M=RegExp.prototype.exec,T=String.prototype.replace,j=M,R=(y=/a/,b=/b*/g,M.call(y,"a"),M.call(b,"a"),0!==y.lastIndex||0!==b.lastIndex),z=void 0!==/()??/.exec("")[1];(R||z)&&(j=function(t){var e,r,n,s,o=this;return z&&(r=new RegExp("^"+o.source+"$(?!\\s)",function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}.call(o))),R&&(e=o.lastIndex),n=M.call(o,t),R&&n&&(o.lastIndex=o.global?n.index+n[0].length:e),z&&n&&n.length>1&&T.call(n[0],r,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)}),n});var W=j,N=function(t){try{return!!t()}catch(t){return!0}},C=!N(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),V=m.document,D=e(V)&&e(V.createElement),B=function(t){return D?V.createElement(t):{}},P=!C&&!N(function(){return 7!=Object.defineProperty(B("div"),"a",{get:function(){return 7}}).a}),F=Object.defineProperty,I={f:C?Object.defineProperty:function(t,r,n){if(i(t),r=function(t,i){if(!e(t))return t;var r,n;if(i&&"function"==typeof(r=t.toString)&&!e(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!e(n=r.call(t)))return n;if(!i&&"function"==typeof(r=t.toString)&&!e(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}(r,!0),i(n),P)try{return F(t,r,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[r]=n.value),t}},H=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},q=C?function(t,e,i){return I.f(t,e,H(1,i))}:function(t,e,i){return t[e]=i,t},$={}.hasOwnProperty,X=function(t,e){return $.call(t,e)},Y=v(function(t){var e=_("src"),i=Function.toString,r=(""+i).split("toString");g.inspectSource=function(t){return i.call(t)},(t.exports=function(t,i,n,s){var o="function"==typeof n;o&&(X(n,"name")||q(n,"name",i)),t[i]!==n&&(o&&(X(n,e)||q(n,e,t[i]?""+t[i]:r.join(String(i)))),t===m?t[i]=n:s?t[i]?t[i]=n:q(t,i,n):(delete t[i],q(t,i,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[e]||i.call(this)})}),G=function(t,e,i){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,r){return t.call(e,i,r)};case 3:return function(i,r,n){return t.call(e,i,r,n)}}return function(){return t.apply(e,arguments)}},U=function(t,e,i){var r,n,s,o,a=t&U.F,l=t&U.G,c=t&U.S,u=t&U.P,h=t&U.B,f=l?m:c?m[e]||(m[e]={}):(m[e]||{}).prototype,d=l?g:g[e]||(g[e]={}),p=d.prototype||(d.prototype={});for(r in l&&(i=e),i)s=((n=!a&&f&&void 0!==f[r])?f:i)[r],o=h&&n?G(s,m):u&&"function"==typeof s?G(Function.call,s):s,f&&Y(f,r,s,t&U.U),d[r]!=s&&q(d,r,o),u&&p[r]!=s&&(p[r]=s)};m.core=g,U.F=1,U.G=2,U.S=4,U.P=8,U.B=16,U.W=32,U.U=64,U.R=128;var J=U;J({target:"RegExp",proto:!0,forced:W!==/./.exec},{exec:W});var K=O("species"),Q=!N(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),Z=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}(),tt=function(t,e,i){var n=O(t),s=!N(function(){var e={};return e[n]=function(){return 7},7!=""[t](e)}),o=s?!N(function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[K]=function(){return i}),i[n](""),!e}):void 0;if(!s||!o||"replace"===t&&!Q||"split"===t&&!Z){var a=/./[n],l=i(r,n,""[t],function(t,e,i,r,n){return e.exec===W?s&&!n?{done:!0,value:a.call(e,i,r)}:{done:!0,value:t.call(i,e,r)}:{done:!1}}),c=l[0],u=l[1];Y(String.prototype,t,c),q(RegExp.prototype,n,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}},et=Math.max,it=Math.min,rt=Math.floor,nt=/\$([$&`']|\d\d?|<[^>]*>)/g,st=/\$([$&`']|\d\d?)/g;tt("replace",2,function(t,e,r,s){return[function(i,n){var s=t(this),o=null==i?void 0:i[e];return void 0!==o?o.call(i,s,n):r.call(String(s),i,n)},function(t,e){var n=s(r,t,this,e);if(n.done)return n.value;var l=i(t),u=String(this),f="function"==typeof e;f||(e=String(e));var d=l.global;if(d){var p=l.unicode;l.lastIndex=0}for(var v=[];;){var y=L(l,u);if(null===y)break;if(v.push(y),!d)break;""===String(y[0])&&(l.lastIndex=h(u,c(l.lastIndex),p))}for(var b,g="",m=0,x=0;x<v.length;x++){y=v[x];for(var E=String(y[0]),w=et(it(a(y.index),u.length),0),_=[],O=1;O<y.length;O++)_.push(void 0===(b=y[O])?b:String(b));var S=y.groups;if(f){var k=[E].concat(_,w,u);void 0!==S&&k.push(S);var A=String(e.apply(void 0,k))}else A=o(E,u,w,_,S,e);w>=m&&(g+=u.slice(m,w)+A,m=w+E.length)}return g+u.slice(m)}];function o(t,e,i,s,o,a){var l=i+t.length,c=s.length,u=st;return void 0!==o&&(o=n(o),u=nt),r.call(a,u,function(r,n){var a;switch(n.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(l);case"<":a=o[n.slice(1,-1)];break;default:var u=+n;if(0===u)return r;if(u>c){var h=rt(u/10);return 0===h?r:h<=c?void 0===s[h-1]?n.charAt(1):s[h-1]+n.charAt(1):r}a=s[u-1]}return void 0===a?"":a})}});var ot=I.f,at=Function.prototype,lt=/^\s*function ([^ (]*)/;"name"in at||C&&ot(at,"name",{configurable:!0,get:function(){try{return(""+this).match(lt)[1]}catch(t){return""}}}),tt("match",1,function(t,e,r,n){return[function(i){var r=t(this),n=null==i?void 0:i[e];return void 0!==n?n.call(i,r):new RegExp(i)[e](String(r))},function(t){var e=n(r,t,this);if(e.done)return e.value;var s=i(t),o=String(this);if(!s.global)return L(s,o);var a=s.unicode;s.lastIndex=0;for(var l,u=[],f=0;null!==(l=L(s,o));){var d=String(l[0]);u[f]=d,""===d&&(s.lastIndex=h(o,c(s.lastIndex),a)),f++}return 0===f?null:u}]});var ct=O("unscopables"),ut=Array.prototype;null==ut[ct]&&q(ut,ct,{});var ht,ft=function(t){ut[ct][t]=!0},dt=function(t,e){return{value:e,done:!!t}},pt={},vt=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==d(t)?t.split(""):Object(t)},yt=function(t){return vt(r(t))},bt=Math.max,gt=Math.min,mt=x("keys"),xt=function(t){return mt[t]||(mt[t]=_(t))},Et=(ht=!1,function(t,e,i){var r,n=yt(t),s=c(n.length),o=function(t,e){return(t=a(t))<0?bt(t+e,0):gt(t,e)}(i,s);if(ht&&e!=e){for(;s>o;)if((r=n[o++])!=r)return!0}else for(;s>o;o++)if((ht||o in n)&&n[o]===e)return ht||o||0;return!ht&&-1}),wt=xt("IE_PROTO"),_t="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Ot=Object.keys||function(t){return function(t,e){var i,r=yt(t),n=0,s=[];for(i in r)i!=wt&&X(r,i)&&s.push(i);for(;e.length>n;)X(r,i=e[n++])&&(~Et(s,i)||s.push(i));return s}(t,_t)},St=C?Object.defineProperties:function(t,e){i(t);for(var r,n=Ot(e),s=n.length,o=0;s>o;)I.f(t,r=n[o++],e[r]);return t},kt=m.document,At=kt&&kt.documentElement,Lt=xt("IE_PROTO"),Mt=function(){},Tt=function(){var t,e=B("iframe"),i=_t.length;for(e.style.display="none",At.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),Tt=t.F;i--;)delete Tt.prototype[_t[i]];return Tt()},jt=Object.create||function(t,e){var r;return null!==t?(Mt.prototype=i(t),r=new Mt,Mt.prototype=null,r[Lt]=t):r=Tt(),void 0===e?r:St(r,e)},Rt=I.f,zt=O("toStringTag"),Wt=function(t,e,i){t&&!X(t=i?t:t.prototype,zt)&&Rt(t,zt,{configurable:!0,value:e})},Nt={};q(Nt,O("iterator"),function(){return this});var Ct=function(t,e,i){t.prototype=jt(Nt,{next:H(1,i)}),Wt(t,e+" Iterator")},Vt=xt("IE_PROTO"),Dt=Object.prototype,Bt=Object.getPrototypeOf||function(t){return t=n(t),X(t,Vt)?t[Vt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Dt:null},Pt=O("iterator"),Ft=!([].keys&&"next"in[].keys()),It=function(){return this},Ht=function(t,e,i,r,n,s,o){Ct(i,e,r);var a,l,c,u=function(t){if(!Ft&&t in p)return p[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},h=e+" Iterator",f="values"==n,d=!1,p=t.prototype,v=p[Pt]||p["@@iterator"]||n&&p[n],y=v||u(n),b=n?f?u("entries"):y:void 0,g="Array"==e&&p.entries||v;if(g&&(c=Bt(g.call(new t)))!==Object.prototype&&c.next&&(Wt(c,h,!0),"function"!=typeof c[Pt]&&q(c,Pt,It)),f&&v&&"values"!==v.name&&(d=!0,y=function(){return v.call(this)}),(Ft||d||!p[Pt])&&q(p,Pt,y),pt[e]=y,pt[h]=It,n)if(a={values:f?y:u("values"),keys:s?y:u("keys"),entries:b},o)for(l in a)l in p||Y(p,l,a[l]);else J(J.P+J.F*(Ft||d),e,a);return a}(Array,"Array",function(t,e){this._t=yt(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,dt(1)):dt(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])},"values");pt.Arguments=pt.Array,ft("keys"),ft("values"),ft("entries");for(var qt=O("iterator"),$t=O("toStringTag"),Xt=pt.Array,Yt={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},Gt=Ot(Yt),Ut=0;Ut<Gt.length;Ut++){var Jt,Kt=Gt[Ut],Qt=Yt[Kt],Zt=m[Kt],te=Zt&&Zt.prototype;if(te&&(te[qt]||q(te,qt,Xt),te[$t]||q(te,$t,Kt),pt[Kt]=Xt,Qt))for(Jt in Ht)te[Jt]||Y(te,Jt,Ht[Jt],!0)}function ee(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ie(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function re(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},r=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable}))),r.forEach(function(e){ie(t,e,i[e])})}return t}var ne=v(function(t,e){t.exports=function(){if("undefined"==typeof document)return 0;var t,e=document.body,i=document.createElement("div"),r=i.style;return r.position="absolute",r.top=r.left="-9999px",r.width=r.height="100px",r.overflow="scroll",e.appendChild(i),t=i.offsetWidth-i.clientWidth,e.removeChild(i),t}}),se="Expected a function",oe=NaN,ae="[object Symbol]",le=/^\s+|\s+$/g,ce=/^[-+]0x[0-9a-f]+$/i,ue=/^0b[01]+$/i,he=/^0o[0-7]+$/i,fe=parseInt,de="object"==typeof p&&p&&p.Object===Object&&p,pe="object"==typeof self&&self&&self.Object===Object&&self,ve=de||pe||Function("return this")(),ye=Object.prototype.toString,be=Math.max,ge=Math.min,me=function(){return ve.Date.now()};function xe(t,e,i){var r,n,s,o,a,l,c=0,u=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError(se);function d(e){var i=r,s=n;return r=n=void 0,c=e,o=t.apply(s,i)}function p(t){var i=t-l;return void 0===l||i>=e||i<0||h&&t-c>=s}function v(){var t=me();if(p(t))return y(t);a=setTimeout(v,function(t){var i=e-(t-l);return h?ge(i,s-(t-c)):i}(t))}function y(t){return a=void 0,f&&r?d(t):(r=n=void 0,o)}function b(){var t=me(),i=p(t);if(r=arguments,n=this,l=t,i){if(void 0===a)return function(t){return c=t,a=setTimeout(v,e),u?d(t):o}(l);if(h)return a=setTimeout(v,e),d(l)}return void 0===a&&(a=setTimeout(v,e)),o}return e=we(e)||0,Ee(i)&&(u=!!i.leading,s=(h="maxWait"in i)?be(we(i.maxWait)||0,e):s,f="trailing"in i?!!i.trailing:f),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=l=n=a=void 0},b.flush=function(){return void 0===a?o:y(me())},b}function Ee(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function we(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&ye.call(t)==ae}(t))return oe;if(Ee(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ee(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(le,"");var i=ue.test(t);return i||he.test(t)?fe(t.slice(2),i?2:8):ce.test(t)?oe:+t}var _e=function(t,e,i){var r=!0,n=!0;if("function"!=typeof t)throw new TypeError(se);return Ee(i)&&(r="leading"in i?!!i.leading:r,n="trailing"in i?!!i.trailing:n),xe(t,e,{leading:r,maxWait:e,trailing:n})},Oe="Expected a function",Se=NaN,ke="[object Symbol]",Ae=/^\s+|\s+$/g,Le=/^[-+]0x[0-9a-f]+$/i,Me=/^0b[01]+$/i,Te=/^0o[0-7]+$/i,je=parseInt,Re="object"==typeof p&&p&&p.Object===Object&&p,ze="object"==typeof self&&self&&self.Object===Object&&self,We=Re||ze||Function("return this")(),Ne=Object.prototype.toString,Ce=Math.max,Ve=Math.min,De=function(){return We.Date.now()};function Be(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Pe(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&Ne.call(t)==ke}(t))return Se;if(Be(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Be(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Ae,"");var i=Me.test(t);return i||Te.test(t)?je(t.slice(2),i?2:8):Le.test(t)?Se:+t}var Fe=function(t,e,i){var r,n,s,o,a,l,c=0,u=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError(Oe);function d(e){var i=r,s=n;return r=n=void 0,c=e,o=t.apply(s,i)}function p(t){var i=t-l;return void 0===l||i>=e||i<0||h&&t-c>=s}function v(){var t=De();if(p(t))return y(t);a=setTimeout(v,function(t){var i=e-(t-l);return h?Ve(i,s-(t-c)):i}(t))}function y(t){return a=void 0,f&&r?d(t):(r=n=void 0,o)}function b(){var t=De(),i=p(t);if(r=arguments,n=this,l=t,i){if(void 0===a)return function(t){return c=t,a=setTimeout(v,e),u?d(t):o}(l);if(h)return a=setTimeout(v,e),d(l)}return void 0===a&&(a=setTimeout(v,e)),o}return e=Pe(e)||0,Be(i)&&(u=!!i.leading,s=(h="maxWait"in i)?Ce(Pe(i.maxWait)||0,e):s,f="trailing"in i?!!i.trailing:f),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=l=n=a=void 0},b.flush=function(){return void 0===a?o:y(De())},b},Ie="Expected a function",He="__lodash_hash_undefined__",qe="[object Function]",$e="[object GeneratorFunction]",Xe=/^\[object .+?Constructor\]$/,Ye="object"==typeof p&&p&&p.Object===Object&&p,Ge="object"==typeof self&&self&&self.Object===Object&&self,Ue=Ye||Ge||Function("return this")();var Je,Ke=Array.prototype,Qe=Function.prototype,Ze=Object.prototype,ti=Ue["__core-js_shared__"],ei=(Je=/[^.]+$/.exec(ti&&ti.keys&&ti.keys.IE_PROTO||""))?"Symbol(src)_1."+Je:"",ii=Qe.toString,ri=Ze.hasOwnProperty,ni=Ze.toString,si=RegExp("^"+ii.call(ri).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oi=Ke.splice,ai=vi(Ue,"Map"),li=vi(Object,"create");function ci(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}function ui(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}function hi(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}function fi(t,e){for(var i,r,n=t.length;n--;)if((i=t[n][0])===(r=e)||i!=i&&r!=r)return n;return-1}function di(t){return!(!bi(t)||(e=t,ei&&ei in e))&&(function(t){var e=bi(t)?ni.call(t):"";return e==qe||e==$e}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?si:Xe).test(function(t){if(null!=t){try{return ii.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function pi(t,e){var i,r,n=t.__data__;return("string"==(r=typeof(i=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?n["string"==typeof e?"string":"hash"]:n.map}function vi(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return di(i)?i:void 0}function yi(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(Ie);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],s=i.cache;if(s.has(n))return s.get(n);var o=t.apply(this,r);return i.cache=s.set(n,o),o};return i.cache=new(yi.Cache||hi),i}function bi(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}ci.prototype.clear=function(){this.__data__=li?li(null):{}},ci.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},ci.prototype.get=function(t){var e=this.__data__;if(li){var i=e[t];return i===He?void 0:i}return ri.call(e,t)?e[t]:void 0},ci.prototype.has=function(t){var e=this.__data__;return li?void 0!==e[t]:ri.call(e,t)},ci.prototype.set=function(t,e){return this.__data__[t]=li&&void 0===e?He:e,this},ui.prototype.clear=function(){this.__data__=[]},ui.prototype.delete=function(t){var e=this.__data__,i=fi(e,t);return!(i<0||(i==e.length-1?e.pop():oi.call(e,i,1),0))},ui.prototype.get=function(t){var e=this.__data__,i=fi(e,t);return i<0?void 0:e[i][1]},ui.prototype.has=function(t){return fi(this.__data__,t)>-1},ui.prototype.set=function(t,e){var i=this.__data__,r=fi(i,t);return r<0?i.push([t,e]):i[r][1]=e,this},hi.prototype.clear=function(){this.__data__={hash:new ci,map:new(ai||ui),string:new ci}},hi.prototype.delete=function(t){return pi(this,t).delete(t)},hi.prototype.get=function(t){return pi(this,t).get(t)},hi.prototype.has=function(t){return pi(this,t).has(t)},hi.prototype.set=function(t,e){return pi(this,t).set(t,e),this},yi.Cache=hi;var gi=yi,mi=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some(function(t,r){return t[0]===e&&(i=r,!0)}),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),r=this.__entries__[i];return r&&r[1]},e.prototype.set=function(e,i){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,r=t(i,e);~r&&i.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,r=this.__entries__;i<r.length;i++){var n=r[i];t.call(e,n[1],n[0])}},e}()}(),xi="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Ei="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),wi="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Ei):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},_i=2;var Oi=20,Si=["top","right","bottom","left","width","height","size","weight"],ki="undefined"!=typeof MutationObserver,Ai=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var i=!1,r=!1,n=0;function s(){i&&(i=!1,t()),r&&a()}function o(){wi(s)}function a(){var t=Date.now();if(i){if(t-n<_i)return;r=!0}else i=!0,r=!1,setTimeout(o,e);n=t}return a}(this.refresh.bind(this),Oi)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,i=e.indexOf(t);~i&&e.splice(i,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},t.prototype.connect_=function(){xi&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ki?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){xi&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;Si.some(function(t){return!!~i.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Li=function(t,e){for(var i=0,r=Object.keys(e);i<r.length;i++){var n=r[i];Object.defineProperty(t,n,{value:e[n],enumerable:!1,writable:!1,configurable:!0})}return t},Mi=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||Ei},Ti=Ci(0,0,0,0);function ji(t){return parseFloat(t)||0}function Ri(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return e.reduce(function(e,i){return e+ji(t["border-"+i+"-width"])},0)}function zi(t){var e=t.clientWidth,i=t.clientHeight;if(!e&&!i)return Ti;var r=Mi(t).getComputedStyle(t),n=function(t){for(var e={},i=0,r=["top","right","bottom","left"];i<r.length;i++){var n=r[i],s=t["padding-"+n];e[n]=ji(s)}return e}(r),s=n.left+n.right,o=n.top+n.bottom,a=ji(r.width),l=ji(r.height);if("border-box"===r.boxSizing&&(Math.round(a+s)!==e&&(a-=Ri(r,"left","right")+s),Math.round(l+o)!==i&&(l-=Ri(r,"top","bottom")+o)),!function(t){return t===Mi(t).document.documentElement}(t)){var c=Math.round(a+s)-e,u=Math.round(l+o)-i;1!==Math.abs(c)&&(a-=c),1!==Math.abs(u)&&(l-=u)}return Ci(n.left,n.top,a,l)}var Wi="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof Mi(t).SVGGraphicsElement}:function(t){return t instanceof Mi(t).SVGElement&&"function"==typeof t.getBBox};function Ni(t){return xi?Wi(t)?function(t){var e=t.getBBox();return Ci(0,0,e.width,e.height)}(t):zi(t):Ti}function Ci(t,e,i,r){return{x:t,y:e,width:i,height:r}}var Vi=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ci(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=Ni(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),Di=function(){return function(t,e){var i,r,n,s,o,a,l,c=(r=(i=e).x,n=i.y,s=i.width,o=i.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(a.prototype),Li(l,{x:r,y:n,width:s,height:o,top:n,right:r+s,bottom:o+n,left:r}),l);Li(this,{target:t,contentRect:c})}}(),Bi=function(){function t(t,e,i){if(this.activeObservations_=[],this.observations_=new mi,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=i}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Mi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new Vi(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Mi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new Di(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),Pi="undefined"!=typeof WeakMap?new WeakMap:new mi,Fi=function(){return function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=Ai.getInstance(),r=new Bi(e,i,this);Pi.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(t){Fi.prototype[t]=function(){var e;return(e=Pi.get(this))[t].apply(e,arguments)}});var Ii=void 0!==Ei.ResizeObserver?Ei.ResizeObserver:Fi,Hi=!("undefined"==typeof window||!window.document||!window.document.createElement),qi=function(){function t(e,i){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.onScroll=function(){r.scrollXTicking||(window.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(window.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0)},this.scrollX=function(){r.axis.x.isOverflowing&&(r.showScrollbar("x"),r.positionScrollbar("x")),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&(r.showScrollbar("y"),r.positionScrollbar("y")),r.scrollYTicking=!1},this.onMouseEnter=function(){r.showScrollbar("x"),r.showScrollbar("y")},this.onMouseMove=function(t){r.mouseX=t.clientX,r.mouseY=t.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this.onWindowResize=function(){r.scrollbarWidth=ne(),r.hideNativeScrollbar()},this.hideScrollbars=function(){r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.track.rect)||(r.axis.y.scrollbar.el.classList.remove(r.classNames.visible),r.axis.y.isVisible=!1),r.isWithinBounds(r.axis.x.track.rect)||(r.axis.x.scrollbar.el.classList.remove(r.classNames.visible),r.axis.x.isVisible=!1)},this.onPointerEvent=function(t){var e,i;r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(i=r.isWithinBounds(r.axis.x.scrollbar.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(e=r.isWithinBounds(r.axis.y.scrollbar.rect)),(e||i)&&(t.preventDefault(),t.stopPropagation(),"mousedown"===t.type&&(e&&r.onDragStart(t,"y"),i&&r.onDragStart(t,"x")))},this.drag=function(e){var i=r.axis[r.draggedAxis].track,n=i.rect[r.axis[r.draggedAxis].sizeAttr],s=r.axis[r.draggedAxis].scrollbar;e.preventDefault(),e.stopPropagation();var o=(("y"===r.draggedAxis?e.pageY:e.pageX)-i.rect[r.axis[r.draggedAxis].offsetAttr]-r.axis[r.draggedAxis].dragOffset)/i.rect[r.axis[r.draggedAxis].sizeAttr]*r.contentEl[r.axis[r.draggedAxis].scrollSizeAttr];"x"===r.draggedAxis&&(o=r.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?o-(n+s.size):o,o=r.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-o:o),r.contentEl[r.axis[r.draggedAxis].scrollOffsetAttr]=o},this.onEndDrag=function(t){t.preventDefault(),t.stopPropagation(),r.el.classList.remove(r.classNames.dragging),document.removeEventListener("mousemove",r.drag),document.removeEventListener("mouseup",r.onEndDrag)},this.el=e,this.flashTimeout,this.resizeWrapperEl,this.contentEl,this.offsetEl,this.maskEl,this.globalObserver,this.mutationObserver,this.resizeObserver,this.scrollbarWidth,this.minScrollbarWidth=20,this.options=re({},t.defaultOptions,i),this.classNames=re({},t.defaultOptions.classNames,this.options.classNames),this.isRtl,this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.el.SimpleBar||(this.recalculate=_e(this.recalculate.bind(this),64),this.onMouseMove=_e(this.onMouseMove.bind(this),64),this.hideScrollbars=Fe(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=Fe(this.onWindowResize.bind(this),64,{leading:!0}),t.getRtlHelpers=gi(t.getRtlHelpers),this.getContentElement=this.getScrollElement,this.init())}var e,i,r;return e=t,r=[{key:"getRtlHelpers",value:function(){var e=document.createElement("div");e.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var i=e.firstElementChild;document.body.appendChild(i);var r=i.firstElementChild;i.scrollLeft=0;var n=t.getOffset(i),s=t.getOffset(r);i.scrollLeft=999;var o=t.getOffset(r);return{isRtlScrollingInverted:n.left!==s.left&&s.left-o.left!=0,isRtlScrollbarInverted:n.left!==s.left}}},{key:"initHtmlApi",value:function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(function(e){e.forEach(function(e){Array.prototype.forEach.call(e.addedNodes,function(e){1===e.nodeType&&(e.dataset.simplebar?!e.SimpleBar&&new t(e,t.getElOptions(e)):Array.prototype.forEach.call(e.querySelectorAll("[data-simplebar]"),function(e){!e.SimpleBar&&new t(e,t.getElOptions(e))}))}),Array.prototype.forEach.call(e.removedNodes,function(t){1===t.nodeType&&(t.dataset.simplebar&&"init"!==t.dataset.simplebar?t.SimpleBar&&t.SimpleBar.unMount():Array.prototype.forEach.call(t.querySelectorAll("[data-simplebar]"),function(t){t.SimpleBar&&t.SimpleBar.unMount()}))})})}),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))}},{key:"getElOptions",value:function(t){return Array.prototype.reduce.call(t.attributes,function(t,e){var i=e.name.match(/data-simplebar-(.+)/);if(i){var r=i[1].replace(/\W+(.)/g,function(t,e){return e.toUpperCase()});switch(e.value){case"true":t[r]=!0;break;case"false":t[r]=!1;break;case void 0:t[r]=!0;break;default:t[r]=e.value}}return t},{})}},{key:"removeObserver",value:function(){this.globalObserver.disconnect()}},{key:"initDOMLoadedElements",value:function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(e){e.SimpleBar||new t(e,t.getElOptions(e))})}},{key:"getOffset",value:function(t){var e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft)}}}],(i=[{key:"init",value:function(){this.el.SimpleBar=this,Hi&&(this.initDOM(),this.scrollbarWidth=ne(),this.recalculate(),this.initListeners())}},{key:"initDOM",value:function(){var t=this;if(Array.prototype.filter.call(this.el.children,function(e){return e.classList.contains(t.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector(".".concat(this.classNames.wrapper)),this.contentEl=this.el.querySelector(".".concat(this.classNames.content)),this.offsetEl=this.el.querySelector(".".concat(this.classNames.offset)),this.maskEl=this.el.querySelector(".".concat(this.classNames.mask)),this.resizeWrapperEl=this.el.querySelector(".".concat(this.classNames.resizeWrapper)),this.placeholderEl=this.el.querySelector(".".concat(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(".".concat(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(".".concat(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.el.querySelector(".".concat(this.classNames.track,".").concat(this.classNames.horizontal)),this.axis.y.track.el=this.el.querySelector(".".concat(this.classNames.track,".").concat(this.classNames.vertical));else{for(this.wrapperEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.resizeWrapperEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentEl.classList.add(this.classNames.content),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.resizeWrapperEl.classList.add(this.classNames.resizeWrapper),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.resizeWrapperEl.appendChild(this.el.firstChild);this.contentEl.appendChild(this.resizeWrapperEl),this.offsetEl.appendChild(this.contentEl),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)}if(!this.axis.x.track.el||!this.axis.y.track.el){var e=document.createElement("div"),i=document.createElement("div");e.classList.add(this.classNames.track),i.classList.add(this.classNames.scrollbar),e.appendChild(i),this.axis.x.track.el=e.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=e.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector(".".concat(this.classNames.scrollbar)),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector(".".concat(this.classNames.scrollbar)),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")}},{key:"initListeners",value:function(){var t=this;this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick","touchstart","touchend","touchmove"].forEach(function(e){t.el.addEventListener(e,t.onPointerEvent,!0)}),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentEl.addEventListener("scroll",this.onScroll),window.addEventListener("resize",this.onWindowResize),this.resizeObserver=new Ii(this.recalculate),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.resizeWrapperEl)}},{key:"recalculate",value:function(){var t=this.heightAutoObserverEl.offsetHeight<=1,e=this.heightAutoObserverEl.offsetWidth<=1;this.elStyles=window.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction,this.resizeWrapperEl.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),this.contentEl.style.height=t?"auto":"100%",this.placeholderEl.style.width=e?"".concat(this.resizeWrapperEl.clientWidth,"px"):"auto",this.placeholderEl.style.height="".concat(this.resizeWrapperEl.scrollHeight,"px"),this.axis.x.isOverflowing=this.contentEl.scrollWidth>this.contentEl.clientWidth,this.axis.y.isOverflowing=this.contentEl.scrollHeight>this.contentEl.clientHeight,this.axis.x.isOverflowing="hidden"!==this.elStyles.overflowX&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==this.elStyles.overflowY&&this.axis.y.isOverflowing,this.hideNativeScrollbar(),this.axis.x.track.rect=this.axis.x.track.el.getBoundingClientRect(),this.axis.y.track.rect=this.axis.y.track.el.getBoundingClientRect(),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.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px"),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")}},{key:"getScrollbarSize",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",i=this.scrollbarWidth?this.contentEl[this.axis[e].scrollSizeAttr]:this.contentEl[this.axis[e].scrollSizeAttr]-this.minScrollbarWidth,r=this.axis[e].track.rect[this.axis[e].sizeAttr];if(this.axis[e].isOverflowing){var n=r/i;return t=Math.max(~~(n*r),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(t=Math.min(t,this.options.scrollbarMaxSize)),t}}},{key:"positionScrollbar",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",i=this.contentEl[this.axis[e].scrollSizeAttr],r=this.axis[e].track.rect[this.axis[e].sizeAttr],n=parseInt(this.elStyles[this.axis[e].sizeAttr],10),s=this.axis[e].scrollbar,o=this.contentEl[this.axis[e].scrollOffsetAttr],a=(o="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-o:o)/(i-n),l=~~((r-s.size)*a);l="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?l+(r-s.size):l,s.el.style.transform="x"===e?"translate3d(".concat(l,"px, 0, 0)"):"translate3d(0, ".concat(l,"px, 0)")}},{key:"toggleTrackVisibility",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",e=this.axis[t].track.el,i=this.axis[t].scrollbar.el;this.axis[t].isOverflowing||this.axis[t].forceVisible?(e.style.visibility="visible",this.contentEl.style[this.axis[t].overflowAttr]="scroll"):(e.style.visibility="hidden",this.contentEl.style[this.axis[t].overflowAttr]="hidden"),this.axis[t].isOverflowing?i.style.display="block":i.style.display="none"}},{key:"hideNativeScrollbar",value:function(){if(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth||this.minScrollbarWidth,"px"):0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth||this.minScrollbarWidth,"px"):0,!this.scrollbarWidth){var t=[this.isRtl?"paddingLeft":"paddingRight"];this.contentEl.style[t]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"".concat(this.minScrollbarWidth,"px"):0,this.contentEl.style.paddingBottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"".concat(this.minScrollbarWidth,"px"):0}}},{key:"onMouseMoveForAxis",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.axis[t].track.rect=this.axis[t].track.el.getBoundingClientRect(),this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[t].scrollbar.rect)?this.axis[t].scrollbar.el.classList.add(this.classNames.hover):this.axis[t].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[t].track.rect)?(this.showScrollbar(t),this.axis[t].track.el.classList.add(this.classNames.hover)):this.axis[t].track.el.classList.remove(this.classNames.hover)}},{key:"onMouseLeaveForAxis",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.axis[t].track.el.classList.remove(this.classNames.hover),this.axis[t].scrollbar.el.classList.remove(this.classNames.hover)}},{key:"showScrollbar",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",e=this.axis[t].scrollbar.el;this.axis[t].isVisible||(e.classList.add(this.classNames.visible),this.axis[t].isVisible=!0),this.options.autoHide&&this.hideScrollbars()}},{key:"onDragStart",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",i=this.axis[e].scrollbar.el,r="y"===e?t.pageY:t.pageX;this.axis[e].dragOffset=r-i.getBoundingClientRect()[this.axis[e].offsetAttr],this.draggedAxis=e,this.el.classList.add(this.classNames.dragging),document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.onEndDrag)}},{key:"getScrollElement",value:function(){return this.contentEl}},{key:"removeListeners",value:function(){var t=this;this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick","touchstart","touchend","touchmove"].forEach(function(e){t.el.removeEventListener(e,t.onPointerEvent)}),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentEl.removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()}},{key:"unMount",value:function(){this.removeListeners(),this.el.SimpleBar=null}},{key:"isChildNode",value:function(t){return null!==t&&(t===this.el||this.isChildNode(t.parentNode))}},{key:"isWithinBounds",value:function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height}}])&&ee(e.prototype,i),r&&ee(e,r),t}();return qi.defaultOptions={autoHide:!0,forceVisible:!1,classNames:{resizeWrapper:"simplebar-resize-wrapper",content:"simplebar-content",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"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},Hi&&qi.initHtmlApi(),qi});
{
"version": "4.0.0-alpha.2",
"version": "4.0.0-alpha.3",
"name": "simplebar",

@@ -41,3 +41,3 @@ "title": "SimpleBar.js",

},
"gitHead": "c1bd10aba383c5d105bd910a91725c59340d8887"
"gitHead": "1b07a3eba67a3d7cca2893fbbbd560088526a249"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc