@auraxy/react-table
Version:
React table
9 lines (8 loc) • 176 kB
JavaScript
/**
* Bundle of @auraxy/react-table
* Generated: 2021-01-28
* Version: 2.4.7
* License: MIT
* Author: 2611541504@qq.com
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):(e=e||self).TableExtendReactTable=t(e.React,e.ReactDOM)}(this,function($,l){"use strict";var K="default"in $?$.default:$;function t(t,e){var n,o=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)),o}function J(o){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?t(Object(r),!0).forEach(function(e){var t,n;t=o,e=r[n=e],n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))})}return o}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function n(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function Q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],o=!0,r=!1,i=void 0;try{for(var l,s=e[Symbol.iterator]();!(o=(l=s.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}}(e,t)||n(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,t){return e(t={exports:{}},t.exports),t.exports}var Z=r(function(e){function l(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"==o||"number"==o)e.push(n);else if(Array.isArray(n)&&n.length){var r=l.apply(null,n);r&&e.push(r)}else if("object"==o)for(var i in n)s.call(n,i)&&n[i]&&e.push(i)}}return e.join(" ")}var s;s={}.hasOwnProperty,e.exports?(l.default=l,e.exports=l):window.classNames=l}),i="function"==typeof Symbol&&Symbol.for,s=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,c=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,d=i?Symbol.for("react.profiler"):60114,h=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,p=i?Symbol.for("react.async_mode"):60111,m=i?Symbol.for("react.concurrent_mode"):60111,g=i?Symbol.for("react.forward_ref"):60112,v=i?Symbol.for("react.suspense"):60113,y=i?Symbol.for("react.suspense_list"):60120,S=i?Symbol.for("react.memo"):60115,b=i?Symbol.for("react.lazy"):60116,_=i?Symbol.for("react.block"):60121,w=i?Symbol.for("react.fundamental"):60117,R=i?Symbol.for("react.responder"):60118,C=i?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case s:switch(e=e.type){case p:case m:case c:case d:case u:case v:return e;default:switch(e=e&&e.$$typeof){case f:case g:case b:case S:case h:return e;default:return t}}case a:return t}}}function T(e){return x(e)===m}var O={AsyncMode:p,ConcurrentMode:m,ContextConsumer:f,ContextProvider:h,Element:s,ForwardRef:g,Fragment:c,Lazy:b,Memo:S,Portal:a,Profiler:d,StrictMode:u,Suspense:v,isAsyncMode:function(e){return T(e)||x(e)===p},isConcurrentMode:T,isContextConsumer:function(e){return x(e)===f},isContextProvider:function(e){return x(e)===h},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},isForwardRef:function(e){return x(e)===g},isFragment:function(e){return x(e)===c},isLazy:function(e){return x(e)===b},isMemo:function(e){return x(e)===S},isPortal:function(e){return x(e)===a},isProfiler:function(e){return x(e)===d},isStrictMode:function(e){return x(e)===u},isSuspense:function(e){return x(e)===v},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===c||e===m||e===d||e===u||e===v||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===S||e.$$typeof===h||e.$$typeof===f||e.$$typeof===g||e.$$typeof===w||e.$$typeof===R||e.$$typeof===C||e.$$typeof===_)},typeOf:x},I=r(function(e,t){function n(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:var n=e.type;switch(n){case h:case f:case s:case c:case a:case m:return n;default:var o=n&&n.$$typeof;switch(o){case d:case p:case y:case v:case u:return o;default:return t}}case l:return t}}}function o(e){return n(e)===f}var r,i,l,s,a,c,u,d,h,f,p,m,g,v,y,S,b,_,w,R,C,x,T,O,I,z,E,P,M,k,L;"production"!==process.env.NODE_ENV&&(r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,l=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,d=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,g=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,S=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119,R=f,C=d,x=u,T=i,O=p,I=s,z=y,E=v,P=l,M=c,k=a,r=m,L=!1,t.AsyncMode=h,t.ConcurrentMode=R,t.ContextConsumer=C,t.ContextProvider=x,t.Element=T,t.ForwardRef=O,t.Fragment=I,t.Lazy=z,t.Memo=E,t.Portal=P,t.Profiler=M,t.StrictMode=k,t.Suspense=r,t.isAsyncMode=function(e){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),o(e)||n(e)===h},t.isConcurrentMode=o,t.isContextConsumer=function(e){return n(e)===d},t.isContextProvider=function(e){return n(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return n(e)===p},t.isFragment=function(e){return n(e)===s},t.isLazy=function(e){return n(e)===y},t.isMemo=function(e){return n(e)===v},t.isPortal=function(e){return n(e)===l},t.isProfiler=function(e){return n(e)===c},t.isStrictMode=function(e){return n(e)===a},t.isSuspense=function(e){return n(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===f||e===c||e===a||e===m||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===v||e.$$typeof===u||e.$$typeof===d||e.$$typeof===p||e.$$typeof===b||e.$$typeof===_||e.$$typeof===w||e.$$typeof===S)},t.typeOf=n)}),z=(I.AsyncMode,I.ConcurrentMode,I.ContextConsumer,I.ContextProvider,I.Element,I.ForwardRef,I.Fragment,I.Lazy,I.Memo,I.Portal,I.Profiler,I.StrictMode,I.Suspense,I.isAsyncMode,I.isConcurrentMode,I.isContextConsumer,I.isContextProvider,I.isElement,I.isForwardRef,I.isFragment,I.isLazy,I.isMemo,I.isPortal,I.isProfiler,I.isStrictMode,I.isSuspense,I.isValidElementType,I.typeOf,r(function(e){"production"===process.env.NODE_ENV?e.exports=O:e.exports=I})),E=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var k,L,N,A=function(){try{if(!Object.assign)return;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},o)).join("")?void 0:1}catch(e){return}}()?Object.assign:function(e,t){for(var n,o,r=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var l in n=Object(arguments[i]))P.call(n,l)&&(r[l]=n[l]);if(E){o=E(n);for(var s=0;s<o.length;s++)M.call(n,o[s])&&(r[o[s]]=n[o[s]])}}return r},D="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",q=function(){};function W(e,t,n,o,r){if("production"!==process.env.NODE_ENV)for(var i in e)if(N(e,i)){var l,s;try{if("function"!=typeof e[i]){var a=Error((o||"React class")+": "+n+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.");throw a.name="Invariant Violation",a}l=e[i](t,i,o,n,null,k)}catch(e){l=e}!l||l instanceof Error||q((o||"React class")+": type specification of "+n+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof l+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),l instanceof Error&&!(l.message in L)&&(L[l.message]=!0,s=r?r():"",q("Failed "+n+" type: "+l.message+(null!=s?s:"")))}}"production"!==process.env.NODE_ENV&&(k=D,L={},N=Function.call.bind(Object.prototype.hasOwnProperty),q=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),W.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(L={})};var H=W,G=Function.call.bind(Object.prototype.hasOwnProperty),j=function(){};function F(){return null}"production"!==process.env.NODE_ENV&&(j=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}});function Y(i,d){var l="function"==typeof Symbol&&Symbol.iterator,s="@@iterator",h="<<anonymous>>",e={array:t("array"),bool:t("boolean"),func:t("function"),number:t("number"),object:t("object"),string:t("string"),symbol:t("symbol"),any:n(F),arrayOf:function(a){return n(function(e,t,n,o,r){if("function"!=typeof a)return new f("Property `"+r+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var i=e[t];if(!Array.isArray(i))return new f("Invalid "+o+" `"+r+"` of type `"+u(i)+"` supplied to `"+n+"`, expected an array.");for(var l=0;l<i.length;l++){var s=a(i,l,n,o,r+"["+l+"]",D);if(s instanceof Error)return s}return null})},element:n(function(e,t,n,o,r){return t=e[t],i(t)?null:new f("Invalid "+o+" `"+r+"` of type `"+u(t)+"` supplied to `"+n+"`, expected a single ReactElement.")}),elementType:n(function(e,t,n,o,r){return t=e[t],z.isValidElementType(t)?null:new f("Invalid "+o+" `"+r+"` of type `"+u(t)+"` supplied to `"+n+"`, expected a single ReactElement type.")}),instanceOf:function(l){return n(function(e,t,n,o,r){if(e[t]instanceof l)return null;var i=l.name||h;return new f("Invalid "+o+" `"+r+"` of type `"+((t=e[t]).constructor&&t.constructor.name?t.constructor.name:h)+"` supplied to `"+n+"`, expected instance of `"+i+"`.")})},node:n(function(e,t,n,o,r){return a(e[t])?null:new f("Invalid "+o+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(a){return n(function(e,t,n,o,r){if("function"!=typeof a)return new f("Property `"+r+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var i,l=e[t];if("object"!==(t=u(l)))return new f("Invalid "+o+" `"+r+"` of type `"+t+"` supplied to `"+n+"`, expected an object.");for(i in l)if(G(l,i)){var s=a(l,i,n,o,r+"."+i,D);if(s instanceof Error)return s}return null})},oneOf:function(s){if(Array.isArray(s))return n(function(e,t,n,o,r){for(var i=e[t],l=0;l<s.length;l++)if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(i,s[l]))return null;t=JSON.stringify(s,function(e,t){return"symbol"===c(t)?String(t):t});return new f("Invalid "+o+" `"+r+"` of value `"+String(i)+"` supplied to `"+n+"`, expected one of "+t+".")});"production"!==process.env.NODE_ENV&&j(1<arguments.length?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array.");return F},oneOfType:function(l){if(!Array.isArray(l))return"production"!==process.env.NODE_ENV&&j("Invalid argument supplied to oneOfType, expected an instance of array."),F;for(var e=0;e<l.length;e++){var t=l[e];if("function"!=typeof t)return j("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+function(e){var t=c(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}(t)+" at index "+e+"."),F}return n(function(e,t,n,o,r){for(var i=0;i<l.length;i++)if(null==(0,l[i])(e,t,n,o,r,D))return null;return new f("Invalid "+o+" `"+r+"` supplied to `"+n+"`.")})},shape:function(a){return n(function(e,t,n,o,r){var i,l=e[t];if("object"!==(t=u(l)))return new f("Invalid "+o+" `"+r+"` of type `"+t+"` supplied to `"+n+"`, expected `object`.");for(i in a){var s=a[i];if(s){s=s(l,i,n,o,r+"."+i,D);if(s)return s}}return null})},exact:function(c){return n(function(e,t,n,o,r){var i,l=e[t],s=u(l);if("object"!==s)return new f("Invalid "+o+" `"+r+"` of type `"+s+"` supplied to `"+n+"`, expected `object`.");for(i in A({},e[t],c)){var a=c[i];if(!a)return new f("Invalid "+o+" `"+r+"` key `"+i+"` supplied to `"+n+"`.\nBad object: "+JSON.stringify(e[t],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(c),null," "));a=a(l,i,n,o,r+"."+i,D);if(a)return a}return null})}};function f(e){this.message=e,this.stack=""}function n(a){var c,u;function e(e,t,n,o,r,i,l){if(o=o||h,i=i||n,l!==D){if(d){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}"production"===process.env.NODE_ENV||"undefined"==typeof console||!c[s=o+":"+n]&&u<3&&(j("You are manually calling a React.PropTypes validation function for the `"+i+"` prop on `"+o+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),c[s]=!0,u++)}return null==t[n]?e?null===t[n]?new f("The "+r+" `"+i+"` is marked as required in `"+o+"`, but its value is `null`."):new f("The "+r+" `"+i+"` is marked as required in `"+o+"`, but its value is `undefined`."):null:a(t,n,o,r,i)}"production"!==process.env.NODE_ENV&&(c={},u=0);var t=e.bind(null,!1);return t.isRequired=e.bind(null,!0),t}function t(l){return n(function(e,t,n,o,r,i){return u(t=e[t])===l?null:new f("Invalid "+o+" `"+r+"` of type `"+c(t)+"` supplied to `"+n+"`, expected `"+l+"`.")})}function a(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(a);if(null===e||i(e))return!0;var t=function(e){if("function"==typeof(e=e&&(l&&e[l]||e[s])))return e}(e);if(!t)return!1;var n,o=t.call(e);if(t!==e.entries){for(;!(n=o.next()).done;)if(!a(n.value))return!1}else for(;!(n=o.next()).done;){var r=n.value;if(r&&!a(r[1]))return!1}return!0;default:return!1}}function u(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":(e=e,"symbol"===t||e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)?"symbol":t)}function c(e){if(null==e)return""+e;var t=u(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}return f.prototype=Error.prototype,e.checkPropTypes=H,e.resetWarningCache=H.resetWarningCache,e.PropTypes=e}function V(){}function X(){}X.resetWarningCache=V;var U=r(function(e){function t(e,t,n,o,r,i){if(i!==D){i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function n(){return t}"production"!==process.env.NODE_ENV?e.exports=Y(z.isElement,!0):e.exports=(e={array:t.isRequired=t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:X,resetWarningCache:V}).PropTypes=e});function B(e){return getComputedStyle(e)}function ee(e,t){for(var n in t){var o=t[n];"number"==typeof o&&(o+="px"),e.style[n]=o}return e}function te(e){var t=document.createElement("div");return t.className=e,t}var ne="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function oe(e,t){if(!ne)throw new Error("No element matching method supported");return ne.call(e,t)}function re(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function ie(e,t){return Array.prototype.filter.call(e.children,function(e){return oe(e,t)})}var le={main:"ps",rtl:"ps__rtl",element:{thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}}},se={x:null,y:null};function ae(e,t){var n=e.element.classList,e=le.state.scrolling(t);n.contains(e)?clearTimeout(se[t]):n.add(e)}function ce(e,t){se[t]=setTimeout(function(){return e.isAlive&&e.element.classList.remove(le.state.scrolling(t))},e.settings.scrollingThreshold)}function ue(e){this.element=e,this.handlers={}}var de={isEmpty:{configurable:!0}};ue.prototype.bind=function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},ue.prototype.unbind=function(t,n){var o=this;this.handlers[t]=this.handlers[t].filter(function(e){return!(!n||e===n)||(o.element.removeEventListener(t,e,!1),!1)})},ue.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},de.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return 0===t.handlers[e].length})},Object.defineProperties(ue.prototype,de);function he(){this.eventElements=[]}function fe(e){if("function"==typeof window.CustomEvent)return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function pe(e,t,n,o,r){var i,l,s,a,c,u;if(void 0===o&&(o=!0),void 0===r&&(r=!1),"top"===t)u=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==t)throw new Error("A proper axis should be provided");u=["contentWidth","containerWidth","scrollLeft","x","left","right"]}i=e,l=n,a=o,c=r,t=(s=u)[0],e=s[1],n=s[2],o=s[3],r=s[4],u=s[5],void 0===a&&(a=!0),void 0===c&&(c=!1),s=i.element,i.reach[o]=null,s[n]<1&&(i.reach[o]="start"),s[n]>i[t]-i[e]-1&&(i.reach[o]="end"),l&&(s.dispatchEvent(fe("ps-scroll-"+o)),l<0?s.dispatchEvent(fe("ps-scroll-"+r)):0<l&&s.dispatchEvent(fe("ps-scroll-"+u)),a&&function(e,t){ae(e,t),ce(e,t)}(i,o)),i.reach[o]&&(l||c)&&s.dispatchEvent(fe("ps-"+o+"-reach-"+i.reach[o]))}function me(e){return parseInt(e,10)||0}he.prototype.eventElement=function(t){var e=this.eventElements.filter(function(e){return e.element===t})[0];return e||(e=new ue(t),this.eventElements.push(e)),e},he.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)},he.prototype.unbind=function(e,t,n){e=this.eventElement(e);e.unbind(t,n),e.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(e),1)},he.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]},he.prototype.once=function(e,t,n){var o=this.eventElement(e),r=function(e){o.unbind(t,r),n(e)};o.bind(t,r)};var ge={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&0<window.navigator.maxTouchPoints||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function ve(e){var t,n,o=e.element,r=Math.floor(o.scrollTop),i=o.getBoundingClientRect();e.containerWidth=Math.ceil(i.width),e.containerHeight=Math.ceil(i.height),e.contentWidth=o.scrollWidth,e.contentHeight=o.scrollHeight,o.contains(e.scrollbarXRail)||(ie(o,le.element.rail("x")).forEach(re),o.appendChild(e.scrollbarXRail)),o.contains(e.scrollbarYRail)||(ie(o,le.element.rail("y")).forEach(re),o.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset<e.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=ye(e,me(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=me((e.negativeScrollAdjustment+o.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=ye(e,me(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=me(r*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),t=o,i={width:(n=e).railXWidth},r=Math.floor(t.scrollTop),n.isRtl?i.left=n.negativeScrollAdjustment+t.scrollLeft+n.containerWidth-n.contentWidth:i.left=t.scrollLeft,n.isScrollbarXUsingBottom?i.bottom=n.scrollbarXBottom-r:i.top=n.scrollbarXTop+r,ee(n.scrollbarXRail,i),r={top:r,height:n.railYHeight},n.isScrollbarYUsingRight?n.isRtl?r.right=n.contentWidth-(n.negativeScrollAdjustment+t.scrollLeft)-n.scrollbarYRight-n.scrollbarYOuterWidth-9:r.right=n.scrollbarYRight-t.scrollLeft:n.isRtl?r.left=n.negativeScrollAdjustment+t.scrollLeft+2*n.containerWidth-n.contentWidth-n.scrollbarYLeft-n.scrollbarYOuterWidth:r.left=n.scrollbarYLeft+t.scrollLeft,ee(n.scrollbarYRail,r),ee(n.scrollbarX,{left:n.scrollbarXLeft,width:n.scrollbarXWidth-n.railBorderXWidth}),ee(n.scrollbarY,{top:n.scrollbarYTop,height:n.scrollbarYHeight-n.railBorderYWidth}),e.scrollbarXActive?o.classList.add(le.state.active("x")):(o.classList.remove(le.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,o.scrollLeft=!0===e.isRtl?e.contentWidth:0),e.scrollbarYActive?o.classList.add(le.state.active("y")):(o.classList.remove(le.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,o.scrollTop=0)}function ye(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function Se(n,e){var o=e[0],r=e[1],i=e[2],l=e[3],t=e[4],s=e[5],a=e[6],c=e[7],u=e[8],d=n.element,h=null,f=null,p=null;function m(e){e.touches&&e.touches[0]&&(e[i]=e.touches[0].pageY),d[a]=h+p*(e[i]-f),ae(n,c),ve(n),e.stopPropagation(),e.preventDefault()}function g(){ce(n,c),n[u].classList.remove(le.state.clicking),n.event.unbind(n.ownerDocument,"mousemove",m)}function v(e,t){h=d[a],t&&e.touches&&(e[i]=e.touches[0].pageY),f=e[i],p=(n[r]-n[o])/(n[l]-n[s]),t?n.event.bind(n.ownerDocument,"touchmove",m):(n.event.bind(n.ownerDocument,"mousemove",m),n.event.once(n.ownerDocument,"mouseup",g),e.preventDefault()),n[u].classList.add(le.state.clicking),e.stopPropagation()}n.event.bind(n[t],"mousedown",function(e){v(e)}),n.event.bind(n[t],"touchstart",function(e){v(e,!0)})}function be(e,t){var n,o=this;if(void 0===t&&(t={}),"string"==typeof e&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(n in(this.element=e).classList.add(le.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},t)this.settings[n]=t[n];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var r,i=function(){return e.classList.add(le.state.focus)},l=function(){return e.classList.remove(le.state.focus)};this.isRtl="rtl"===B(e).direction,!0===this.isRtl&&e.classList.add(le.rtl),this.isNegativeScroll=(r=e.scrollLeft,e.scrollLeft=-1,s=e.scrollLeft<0,e.scrollLeft=r,s),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new he,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=te(le.element.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=te(le.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",i),this.event.bind(this.scrollbarX,"blur",l),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var s=B(this.scrollbarXRail);this.scrollbarXBottom=parseInt(s.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=me(s.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=me(s.borderLeftWidth)+me(s.borderRightWidth),ee(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=me(s.marginLeft)+me(s.marginRight),ee(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=te(le.element.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=te(le.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",i),this.event.bind(this.scrollbarY,"blur",l),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null,i=B(this.scrollbarYRail),this.scrollbarYRight=parseInt(i.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=me(i.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?me((l=B(l=this.scrollbarY)).width)+me(l.paddingLeft)+me(l.paddingRight)+me(l.borderLeftWidth)+me(l.borderRightWidth):null,this.railBorderYWidth=me(i.borderTopWidth)+me(i.borderBottomWidth),ee(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=me(i.marginTop)+me(i.marginBottom),ee(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(e){return _e[e](o)}),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",function(e){return o.onScroll(e)}),ve(this)}var _e={"click-rail":function(n){n.element,n.event.bind(n.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),n.event.bind(n.scrollbarYRail,"mousedown",function(e){var t=e.pageY-window.pageYOffset-n.scrollbarYRail.getBoundingClientRect().top>n.scrollbarYTop?1:-1;n.element.scrollTop+=t*n.containerHeight,ve(n),e.stopPropagation()}),n.event.bind(n.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),n.event.bind(n.scrollbarXRail,"mousedown",function(e){var t=e.pageX-window.pageXOffset-n.scrollbarXRail.getBoundingClientRect().left>n.scrollbarXLeft?1:-1;n.element.scrollLeft+=t*n.containerWidth,ve(n),e.stopPropagation()})},"drag-thumb":function(e){Se(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Se(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(i){var l=i.element;i.event.bind(i.ownerDocument,"keydown",function(e){if(!(e.isDefaultPrevented&&e.isDefaultPrevented()||e.defaultPrevented)&&(oe(l,":hover")||oe(i.scrollbarX,":focus")||oe(i.scrollbarY,":focus"))){var t,n=document.activeElement||i.ownerDocument.activeElement;if(n){if("IFRAME"===n.tagName)n=n.contentDocument.activeElement;else for(;n.shadowRoot;)n=n.shadowRoot.activeElement;if(oe(t=n,"input,[contenteditable]")||oe(t,"select,[contenteditable]")||oe(t,"textarea,[contenteditable]")||oe(t,"button,[contenteditable]"))return}var o=0,r=0;switch(e.which){case 37:o=e.metaKey?-i.contentWidth:e.altKey?-i.containerWidth:-30;break;case 38:r=e.metaKey?i.contentHeight:e.altKey?i.containerHeight:30;break;case 39:o=e.metaKey?i.contentWidth:e.altKey?i.containerWidth:30;break;case 40:r=e.metaKey?-i.contentHeight:e.altKey?-i.containerHeight:-30;break;case 32:r=e.shiftKey?i.containerHeight:-i.containerHeight;break;case 33:r=i.containerHeight;break;case 34:r=-i.containerHeight;break;case 36:r=i.contentHeight;break;case 35:r=-i.contentHeight;break;default:return}i.settings.suppressScrollX&&0!==o||i.settings.suppressScrollY&&0!==r||(l.scrollTop-=r,l.scrollLeft+=o,ve(i),function(e,t){var n=Math.floor(l.scrollTop);if(0===e){if(!i.scrollbarYActive)return;if(0===n&&0<t||n>=i.contentHeight-i.containerHeight&&t<0)return!i.settings.wheelPropagation}if(n=l.scrollLeft,0===t){if(!i.scrollbarXActive)return;if(0===n&&e<0||n>=i.contentWidth-i.containerWidth&&0<e)return!i.settings.wheelPropagation}return 1}(o,r)&&e.preventDefault())}})},wheel:function(a){var c=a.element;function e(e){var t,n,o,r,i=(o=(n=e).deltaX,r=-1*n.deltaY,void 0!==o&&void 0!==r||(o=-1*n.wheelDeltaX/6,r=n.wheelDeltaY/6),n.deltaMode&&1===n.deltaMode&&(o*=10,r*=10),o!=o&&r!=r&&(o=0,r=n.wheelDelta),n.shiftKey?[-r,-o]:[o,r]),l=i[0],s=i[1];!function(e,t,n){if(!ge.isWebKit&&c.querySelector("select:focus"))return 1;if(c.contains(e))for(var o=e;o&&o!==c;){if(o.classList.contains(le.element.consuming))return 1;var r=B(o);if(n&&r.overflowY.match(/(scroll|auto)/)){var i=o.scrollHeight-o.clientHeight;if(0<i&&(0<o.scrollTop&&n<0||o.scrollTop<i&&0<n))return 1}if(t&&r.overflowX.match(/(scroll|auto)/)){r=o.scrollWidth-o.clientWidth;if(0<r&&(0<o.scrollLeft&&t<0||o.scrollLeft<r&&0<t))return 1}o=o.parentNode}}(e.target,l,s)&&(t=!1,a.settings.useBothWheelAxes?a.scrollbarYActive&&!a.scrollbarXActive?(s?c.scrollTop-=s*a.settings.wheelSpeed:c.scrollTop+=l*a.settings.wheelSpeed,t=!0):a.scrollbarXActive&&!a.scrollbarYActive&&(l?c.scrollLeft+=l*a.settings.wheelSpeed:c.scrollLeft-=s*a.settings.wheelSpeed,t=!0):(c.scrollTop-=s*a.settings.wheelSpeed,c.scrollLeft+=l*a.settings.wheelSpeed),ve(a),(t=t||(n=l,o=s,r=Math.floor(c.scrollTop),i=0===c.scrollTop,l=r+c.offsetHeight===c.scrollHeight,s=0===c.scrollLeft,r=c.scrollLeft+c.offsetWidth===c.scrollWidth,!(r=Math.abs(o)>Math.abs(n)?i||l:s||r)||!a.settings.wheelPropagation))&&!e.ctrlKey&&(e.stopPropagation(),e.preventDefault()))}void 0!==window.onwheel?a.event.bind(c,"wheel",e):void 0!==window.onmousewheel&&a.event.bind(c,"mousewheel",e)},touch:function(l){var s,i,a,c,t;function u(e,t){s.scrollTop-=t,s.scrollLeft-=e,ve(l)}function d(e){return e.targetTouches?e.targetTouches[0]:e}function h(e){return(!e.pointerType||"pen"!==e.pointerType||0!==e.buttons)&&(e.targetTouches&&1===e.targetTouches.length||!(!e.pointerType||"mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE))}function e(e){h(e)&&(e=d(e),i.pageX=e.pageX,i.pageY=e.pageY,a=(new Date).getTime(),null!==t&&clearInterval(t))}function n(e){var t,n,o,r;h(e)&&(t=(r={pageX:(o=d(e)).pageX,pageY:o.pageY}).pageX-i.pageX,n=r.pageY-i.pageY,function(e,t,n){if(s.contains(e))for(var o=e;o&&o!==s;){if(o.classList.contains(le.element.consuming))return 1;var r=B(o);if(n&&r.overflowY.match(/(scroll|auto)/)){var i=o.scrollHeight-o.clientHeight;if(0<i&&(0<o.scrollTop&&n<0||o.scrollTop<i&&0<n))return 1}if(t&&r.overflowX.match(/(scroll|auto)/)){r=o.scrollWidth-o.clientWidth;if(0<r&&(0<o.scrollLeft&&t<0||o.scrollLeft<r&&0<t))return 1}o=o.parentNode}}(e.target,t,n)||(u(t,n),i=r,0<(r=(o=(new Date).getTime())-a)&&(c.x=t/r,c.y=n/r,a=o),function(e,t){var n=Math.floor(s.scrollTop),o=s.scrollLeft,r=Math.abs(e),i=Math.abs(t);if(r<i){if(t<0&&n===l.contentHeight-l.containerHeight||0<t&&0===n)return 0===window.scrollY&&0<t&&ge.isChrome}else if(i<r&&(e<0&&o===l.contentWidth-l.containerWidth||0<e&&0===o))return 1;return 1}(t,n)&&e.preventDefault()))}function o(){l.settings.swipeEasing&&(clearInterval(t),t=setInterval(function(){l.isInitialized||!c.x&&!c.y||Math.abs(c.x)<.01&&Math.abs(c.y)<.01?clearInterval(t):(u(30*c.x,30*c.y),c.x*=.8,c.y*=.8)},10))}(ge.supportsTouch||ge.supportsIePointer)&&(s=l.element,i={},a=0,c={},t=null,ge.supportsTouch?(l.event.bind(s,"touchstart",e),l.event.bind(s,"touchmove",n),l.event.bind(s,"touchend",o)):ge.supportsIePointer&&(window.PointerEvent?(l.event.bind(s,"pointerdown",e),l.event.bind(s,"pointermove",n),l.event.bind(s,"pointerup",o)):window.MSPointerEvent&&(l.event.bind(s,"MSPointerDown",e),l.event.bind(s,"MSPointerMove",n),l.event.bind(s,"MSPointerUp",o))))}};be.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,ee(this.scrollbarXRail,{display:"block"}),ee(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=me(B(this.scrollbarXRail).marginLeft)+me(B(this.scrollbarXRail).marginRight),this.railYMarginHeight=me(B(this.scrollbarYRail).marginTop)+me(B(this.scrollbarYRail).marginBottom),ee(this.scrollbarXRail,{display:"none"}),ee(this.scrollbarYRail,{display:"none"}),ve(this),pe(this,"top",0,!1,!0),pe(this,"left",0,!1,!0),ee(this.scrollbarXRail,{display:""}),ee(this.scrollbarYRail,{display:""}))},be.prototype.onScroll=function(e){this.isAlive&&(ve(this),pe(this,"top",this.element.scrollTop-this.lastScrollTop),pe(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},be.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),re(this.scrollbarX),re(this.scrollbarY),re(this.scrollbarXRail),re(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},be.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(" ")};var we=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,o=arguments[t];for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},n=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=s(K),l=s(be);function s(e){return e&&e.__esModule?e:{default:e}}var a={"ps-scroll-y":"onScrollY","ps-scroll-x":"onScrollX","ps-scroll-up":"onScrollUp","ps-scroll-down":"onScrollDown","ps-scroll-left":"onScrollLeft","ps-scroll-right":"onScrollRight","ps-y-reach-start":"onYReachStart","ps-y-reach-end":"onYReachEnd","ps-x-reach-start":"onXReachStart","ps-x-reach-end":"onXReachEnd"};Object.freeze(a);(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)})(c,K.Component),n(c,[{key:"componentDidMount",value:function(){this.props.option&&console.warn('react-perfect-scrollbar: the "option" prop has been deprecated in favor of "options"'),this._ps=new l.default(this._container,this.props.options||this.props.option),this._updateEventHook(),this._updateClassName()}},{key:"componentDidUpdate",value:function(e){this._updateEventHook(e),this.updateScroll(),e.className!==this.props.className&&this._updateClassName()}},{key:"componentWillUnmount",value:function(){var n=this;Object.keys(this._handlerByEvent).forEach(function(e){var t=n._handlerByEvent[e];t&&n._container.removeEventListener(e,t,!1)}),this._handlerByEvent={},this._ps.destroy(),this._ps=null}},{key:"_updateEventHook",value:function(){var r=this,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};Object.keys(a).forEach(function(e){var t,n=r.props[a[e]],o=i[a[e]];n!==o&&(o&&(t=r._handlerByEvent[e],r._container.removeEventListener(e,t,!1),r._handlerByEvent[e]=null),n&&(t=function(){return n(r._container)},r._container.addEventListener(e,t,!1),r._handlerByEvent[e]=t))})}},{key:"_updateClassName",value:function(){var e=this.props.className,t=this._container.className.split(" ").filter(function(e){return e.match(/^ps([-_].+|)$/)}).join(" ");this._container&&(this._container.className="scrollbar-container"+(e?" "+e:"")+(t?" "+t:""))}},{key:"updateScroll",value:function(){this.props.onSync(this._ps)}},{key:"handleRef",value:function(e){this._container=e,this.props.containerRef(e)}},{key:"render",value:function(){var e=this.props,t=(e.className,e.style),n=(e.option,e.options,e.containerRef,e.onScrollY,e.onScrollX,e.onScrollUp,e.onScrollDown,e.onScrollLeft,e.onScrollRight,e.onYReachStart,e.onYReachEnd,e.onXReachStart,e.onXReachEnd,e.component),o=(e.onSync,e.children),e=function(e,t){var n,o={};for(n in e)0<=t.indexOf(n)||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}(e,["className","style","option","options","containerRef","onScrollY","onScrollX","onScrollUp","onScrollDown","onScrollLeft","onScrollRight","onYReachStart","onYReachEnd","onXReachStart","onXReachEnd","component","onSync","children"]);return i.default.createElement(n,r({style:t,ref:this.handleRef},e),o)}}]),n=c;function c(e){!function(e){if(!(e instanceof c))throw new TypeError("Cannot call a class as a function")}(this);e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,e));return e.handleRef=e.handleRef.bind(e),e._handlerByEvent={},e}(t.default=n).defaultProps={className:"",style:void 0,option:void 0,options:void 0,containerRef:function(){},onScrollY:void 0,onScrollX:void 0,onScrollUp:void 0,onScrollDown:void 0,onScrollLeft:void 0,onScrollRight:void 0,onYReachStart:void 0,onYReachEnd:void 0,onXReachStart:void 0,onXReachEnd:void 0,onSync:function(e){return e.update()},component:"div"},n.propTypes={children:U.PropTypes.node.isRequired,className:U.PropTypes.string,style:U.PropTypes.object,option:U.PropTypes.object,options:U.PropTypes.object,containerRef:U.PropTypes.func,onScrollY:U.PropTypes.func,onScrollX:U.PropTypes.func,onScrollUp:U.PropTypes.func,onScrollDown:U.PropTypes.func,onScrollLeft:U.PropTypes.func,onScrollRight:U.PropTypes.func,onYReachStart:U.PropTypes.func,onYReachEnd:U.PropTypes.func,onXReachStart:U.PropTypes.func,onXReachEnd:U.PropTypes.func,onSync:U.PropTypes.func,component:U.PropTypes.string},e.exports=t.default});e(we);var Re=e(r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,o=(n=we)&&n.__esModule?n:{default:n};t.default=o.default,e.exports=t.default}));var Ce=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};function xe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var Te=function(e,t,n){return t&&xe(e.prototype,t),n&&xe(e,n),e},Oe=r(function(t){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(e){return typeof e}:t.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.exports=n});var Ie=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};var ze=function(e,t){return!t||"object"!==Oe(t)&&"function"!=typeof t?Ie(e):t},Ee=r(function(t){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}t.exports=n}),Pe=r(function(n){function o(e,t){return n.exports=o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}n.exports=o});var Me=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pe(e,t)};var ke=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e};function Le(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function Ne(t){this.setState(function(e){return null!=(e=this.constructor.getDerivedStateFromProps(t,e))?e:null}.bind(this))}function Ae(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function De(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,o=null,r=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?o="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(o="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?r="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(r="UNSAFE_componentWillUpdate"),null!==n||null!==o||null!==r){var i=e.displayName||e.name,l="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==o?"\n "+o:"")+(null!==r?"\n "+r:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=Le,t.componentWillReceiveProps=Ne),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=Ae;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,n)}}return e}Ae.__suppressDeprecationWarning=Ne.__suppressDeprecationWarning=Le.__suppressDeprecationWarning=!0;var qe=r(function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,o=arguments[t];for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},t.apply(this,arguments)}e.exports=t});function We(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,o,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(o=e(t[n]))&&(r&&(r+=" "),r+=o);else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}(e))&&(o&&(o+=" "),o+=t);return o}function He(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,l=e.nextCellSize,s=e.nextScrollToIndex,a=e.scrollToIndex,e=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof l||n===l)||(o(r),0<=a&&a===s&&e())}var Ge=function(e,t){if(null==e)return{};for(var n,o={},r=Object.keys(e),i=0;i<r.length;i++)n=r[i],0<=t.indexOf(n)||(o[n]=e[n]);return o};var je=function(e,t){if(null==e)return{};var n,o=Ge(e,t);if(Object.getOwnPropertySymbols)for(var r=Object.getOwnPropertySymbols(e),i=0;i<r.length;i++)n=r[i],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o},Fe=("production"===process.env.NODE_ENV||(U.number.isRequired,U.number.isRequired),"production"===process.env.NODE_ENV||(U.number.isRequired,U.bool.isRequired,U.bool.isRequired,U.string.isRequired,U.object.isRequired,U.number.isRequired,U.object.isRequired),"production"===process.env.NODE_ENV?null:U.func),Ye=("production"===process.env.NODE_ENV||U.objectOf(U.node.isRequired),"production"===process.env.NODE_ENV||U.objectOf(U.object.isRequired),"production"===process.env.NODE_ENV||(U.objectOf(U.node.isRequired).isRequired,U.func.isRequired,U.number.isRequired,U.number.isRequired,U.object,U.number.isRequired,U.bool.isRequired,U.bool.isRequired,U.object.isRequired,U.number.isRequired,U.number.isRequired,U.number.isRequired,U.number.isRequired,U.objectOf(U.object.isRequired).isRequired,U.number.isRequired,U.object.isRequired,U.object.isRequired),"production"===process.env.NODE_ENV?null:U.func),Ve=("production"===process.env.NODE_ENV||U.func,"production"===process.env.NODE_ENV?null:U.oneOfType([U.func,U.number])),Xe="production"===process.env.NODE_ENV?null:U.func,Ue=("production"===process.env.NODE_ENV||(U.number.isRequired,U.number.isRequired,U.number.isRequired,U.number.isRequired,U.number.isRequired,U.number.isRequired),"production"===process.env.NODE_ENV||(U.bool.isRequired,U.bool.isRequired,U.number.isRequired),"production"===process.env.NODE_ENV||(U.number.isRequired,U.number.isRequired,U.number.isRequired,U.number.isRequired,U.number.isRequired,U.number.isRequired,U.number.isRequired,U.number.isRequired),"production"===process.env.NODE_ENV||(U.oneOf(["horizontal","vertical"]).isRequired,U.oneOf([-1,1]).isRequired,U.number.isRequired,U.number.isRequired,U.number.isRequired,U.number.isRequired),"production"===process.env.NODE_ENV||(U.number.isRequired,U.number.isRequired),"production"===process.env.NODE_ENV?null:U.func),Be="production"===process.env.NODE_ENV?null:U.oneOf(["auto","end","start","center"]),$e=("production"===process.env.NODE_ENV||(U.number,U.number),function(){function o(e){var t=e.cellCount,n=e.cellSizeGetter,e=e.estimatedCellSize;Ce(this,o),ke(this,"_cellSizeAndPositionData",{}),ke(this,"_lastMeasuredIndex",-1),ke(this,"_lastBatchedIndex",-1),ke(this,"_cellCount",void 0),ke(this,"_cellSizeGetter",void 0),ke(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=t,this._estimatedCellSize=e}return Te(o,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,n=e.estimatedCellSize,e=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=n,this._cellSizeGetter=e}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell ".concat(o," of value ").concat(r));null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return 0<=this._lastMeasuredIndex?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,t=void 0===t?"auto":t,n=e.containerSize,o=e.currentOffset,e=e.targetIndex;if(n<=0)return 0;var r,i=this.getSizeAndPositionOfCell(e),l=i.offset,s=l-n+i.size;switch(t){case"start":r=l;break;case"end":r=s;break;case"center":r=l-(n-i.size)/2;break;default:r=Math.max(s,Math.min(l,o))}t=this.getTotalSize();return Math.max(0,Math.min(t-n,r))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};for(var o=n+t,e=this._findNearestCell(n),t=this.getSizeAndPositionOfCell(e),n=t.offset+t.size,r=e;n<o&&r<this._cellCount-1;)r++,n+=this.getSizeAndPositionOfCell(r).size;return{start:e,stop:r}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,n){for(;t<=e;){var o=t+Math.floor((e-t)/2),r=this.getSizeAndPositionOfCell(o).offset;if(r===n)return o;r<n?t=o+1:n<r&&(e=o-1)}return 0<t?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var n=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=n,n*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLast