Socket
Socket
Sign inDemoInstall

react-pannable

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-pannable - npm Package Compare versions

Comparing version 3.3.0 to 3.3.1

2

dist/react-pannable.min.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e=e||self).ReactPannable={},e.React)}(this,(function(e,t){"use strict";var n="default"in t?t.default:t;function i(){return(i=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function r(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;o.length>i;i++)0>t.indexOf(n=o[i])&&(r[n]=e[n]);return r}var o=0,a={target:null,startPoint:null,movePoint:null,moveTime:null,translation:null,velocity:null,interval:null};function l(e,t){switch(t.type){case"disable":case"end":return function(e,t){return e.target?a:e}(e);case"track":return function(e,t){return{target:t.target,startPoint:t.point,movePoint:t.point,moveTime:t.now,translation:null,velocity:null,interval:null}}(0,t);case"move":return function(e,t){var n=e.target,i=e.startPoint,r=e.movePoint,l=e.moveTime,c=e.translation,u=t.point,s=t.now,d=t.shouldStart;if(!n)return e;var f=s-l,h={x:u.x-i.x,y:u.y-i.y},p={x:(u.x-r.x)/f,y:(u.y-r.y)/f};if(c)return{target:n,startPoint:i,movePoint:u,moveTime:s,translation:h,velocity:p,interval:f};if(o>=Math.sqrt(Math.pow(h.x,2)+Math.pow(h.y,2)))return{target:n,startPoint:i,movePoint:u,moveTime:s,translation:null,velocity:null,interval:null};if(!d({target:n,translation:h,velocity:p,interval:f}))return a;return{target:n,startPoint:u,movePoint:u,moveTime:s,translation:{x:0,y:0},velocity:p,interval:f}}(e,t);default:return e}}var c="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function u(e){var n=t.useRef(e);return t.useEffect((function(){n.current=e})),n}var s={create:function(e){var t=e.transformTranslate,n=e.userSelect,i=r(e,["transformTranslate","userSelect"]);return t&&function(e,t){t.transform="translate3d("+e.x+"px, "+e.y+"px, 0)",t.WebkitTransform="translate3d("+e.x+"px, "+e.y+"px, 0)",t.msTransform="translate("+e.x+"px, "+e.y+"px)"}(t,i),n&&function(e,t){t.userSelect=e,t.WebkitUserSelect=e,t.msUserSelect=e}(n,i),i}},d=function(){},f=function(){};void 0!==typeof window&&(d=window.addEventListener,f=window.removeEventListener);function h(e){var o=e.enabled,h=e.shouldStart,p=e.onStart,v=e.onMove,y=e.onEnd,m=e.onCancel,g=e.children,w=r(e,["enabled","shouldStart","onStart","onMove","onEnd","onCancel","children"]),x=t.useReducer(l,a),b=x[0],E=x[1],S=u(b),C=t.useRef(null),I=t.useRef({touchSupported:!1});I.current.state=b,I.current.shouldStart=h;var z=b.target,T=b.translation,M=b.velocity,O=b.interval,R=S.current;c((function(){function e(e,t){E({type:"track",target:e,point:t,now:(new Date).getTime()})}function t(t){if(I.current.touchSupported=!0,t.touches&&1===t.touches.length){var n=t.touches[0];e(n.target,{x:n.pageX,y:n.pageY})}}function n(e){I.current.state.translation&&e.preventDefault()}function i(t){I.current.touchSupported||e(t.target,{x:t.pageX,y:t.pageY})}if(o){var r=C.current;if(!r.addEventListener)return;return r.addEventListener("touchstart",t,!1),r.addEventListener("touchmove",n,!1),r.addEventListener("mousedown",i,!1),function(){r.removeEventListener("touchstart",t,!1),r.removeEventListener("touchmove",n,!1),r.removeEventListener("mousedown",i,!1)}}}),[o]),c((function(){function e(e){E({type:"move",point:e,now:(new Date).getTime(),shouldStart:I.current.shouldStart})}function t(){E({type:"end"})}function n(t){var n=t.touches[0];I.current.state.translation&&t.preventDefault(),e({x:n.pageX,y:n.pageY})}function i(e){I.current.state.translation&&e.preventDefault(),t()}function r(t){t.preventDefault(),e({x:t.pageX,y:t.pageY})}function o(e){e.preventDefault(),t()}if(z)return I.current.touchSupported?(z.addEventListener("touchmove",n,!1),z.addEventListener("touchend",i,!1),z.addEventListener("touchcancel",i,!1),function(){z.removeEventListener("touchmove",n,!1),z.removeEventListener("touchend",i,!1),z.removeEventListener("touchcancel",i,!1)}):(d("mousemove",r,!1),d("mouseup",o,!1),function(){f("mousemove",r,!1),f("mouseup",o,!1)})}),[z]),c((function(){if(R.translation!==T)if(T){var e={target:z,translation:T,velocity:M,interval:O};R.translation?v(e):p(e)}else if(R.translation){var t={target:R.target,translation:R.translation,velocity:R.velocity,interval:R.interval};o?y(t):m(t)}})),t.useMemo((function(){o||E({type:"disable"})}),[o]);var k={};T&&Object.assign(k,s.create({touchAction:"none",pointerEvents:"none",userSelect:"none"})),w.style&&Object.assign(k,w.style),w.style=k;var L="function"==typeof g?g(b):g;return n.createElement("div",i({},w,{ref:C}),L)}function p(e,t){return e(t={exports:{}},t.exports),t.exports}h.defaultProps={enabled:!0,shouldStart:function(){return!0},onStart:function(){},onMove:function(){},onEnd:function(){},onCancel:function(){}};var v=p((function(e){(e.exports={}).forEach=function(e,t){for(var n=0;e.length>n;n++){var i=t(e[n]);if(i)return i}}})),y=p((function(e){var t=e.exports={};t.isIE=function(e){return(-1!==(t=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/"))&&(!e||e===function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0]);return e>4?e:void 0}());var t},t.isLegacyOpera=function(){return!!window.opera}})),m=p((function(e){(e.exports={}).getOption=function(e,t,n){var i=e[t];if(null==i&&void 0!==n)return n;return i}})),g=function(e){var t=(e=e||{}).reporter,n=m.getOption(e,"async",!0),i=m.getOption(e,"auto",!0);i&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var r,o=w(),a=!1;function l(){for(a=!0;o.size();){var e=o;o=w(),e.process()}a=!1}function c(){r=setTimeout(l,0)}return{add:function(e,t){!a&&i&&n&&0===o.size()&&c(),o.add(e,t)},force:function(e){a||(void 0===e&&(e=n),r&&(clearTimeout(r),r=null),e?c():l())}}};function w(){var e={},t=0,n=0,i=0;return{add:function(r,o){o||(o=r,r=0),r>n?n=r:i>r&&(i=r),e[r]||(e[r]=[]),e[r].push(o),t++},process:function(){for(var t=i;n>=t;t++)for(var r=e[t],o=0;r.length>o;o++){(0,r[o])()}},size:function(){return t}}}var x="_erd";function b(e){return e[x]}var E={initState:function(e){return e[x]={},b(e)},getState:b,cleanState:function(e){delete e[x]}},S=v.forEach,C=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,i=e.stateHandler.getState,r=e.idHandler;if(!n)throw Error("Missing required dependency: batchProcessor");if(!t)throw Error("Missing required dependency: reporter.");var o=function(){var e=document.createElement("div");e.style.cssText="position: absolute; width: 1000px; height: 1000px; visibility: hidden; margin: 0; padding: 0;";var t=document.createElement("div");t.style.cssText="position: absolute; width: 500px; height: 500px; overflow: scroll; visibility: none; top: -1500px; left: -1500px; visibility: hidden; margin: 0; padding: 0;",t.appendChild(e),document.body.insertBefore(t,document.body.firstChild);var n=500-t.clientWidth,i=500-t.clientHeight;return document.body.removeChild(t),{width:n,height:i}}(),a="erd_scroll_detection_container";function l(e,n,i){if(e.addEventListener)e.addEventListener(n,i);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,i)}}function c(e,n,i){if(e.removeEventListener)e.removeEventListener(n,i);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,i)}}function u(e){return i(e).container.childNodes[0].childNodes[0].childNodes[0]}function s(e){return i(e).container.childNodes[0].childNodes[0].childNodes[1]}return function(e,t){if(!document.getElementById(e)){var n=t+"_animation",i="/* Created by the element-resize-detector library. */\n";i+="."+t+" > div::-webkit-scrollbar { display: none; }\n\n",i+="."+(t+"_animation_active")+" { -webkit-animation-duration: 0.1s; animation-duration: 0.1s; -webkit-animation-name: "+n+"; animation-name: "+n+"; }\n",i+="@-webkit-keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(t,n){n=n||function(e){document.head.appendChild(e)};var i=document.createElement("style");i.innerHTML=t,i.id=e,n(i)}(i+="@keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}("erd_scroll_detection_scrollbar_style",a),{makeDetectable:function(e,c,d){function f(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(r.get(c),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var i=0;n.length>i;i++)t.log(n[i])}}function h(e){var t=i(e).container.childNodes[0],n=window.getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function p(){var e=window.getComputedStyle(c),t={};return t.position=e.position,t.width=c.offsetWidth,t.height=c.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function v(){if(f("storeStyle invoked."),i(c)){var e=p();i(c).style=e}else f("Aborting because element has been uninstalled")}function y(e,t,n){i(e).lastWidth=t,i(e).lastHeight=n}function m(){return 2*o.width+1}function g(){return 2*o.height+1}function w(e){return e+10+m()}function x(e){return e+10+g()}function b(e,t,n){var i=u(e),r=s(e),o=w(t),a=x(n),l=function(e){return 2*e+m()}(t),c=function(e){return 2*e+g()}(n);i.scrollLeft=o,i.scrollTop=a,r.scrollLeft=l,r.scrollTop=c}function E(){var e=i(c).container;if(!e){(e=document.createElement("div")).className=a,e.style.cssText="visibility: hidden; display: inline; width: 0px; height: 0px; z-index: -1; overflow: hidden; margin: 0; padding: 0;",i(c).container=e,function(e){e.className+=" "+a+"_animation_active"}(e),c.appendChild(e);var t=function(){i(c).onRendered&&i(c).onRendered()};l(e,"animationstart",t),i(c).onAnimationStart=t}return e}function C(){if(f("Injecting elements"),i(c)){!function(){var e=i(c).style;if("static"===e.position){c.style.position="relative";var n=function(e,t,n,i){var r=n[i];"auto"!==r&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(r)&&(e.warn("An element that is positioned static has style."+i+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",t),t.style[i]=0)};n(t,c,e,"top"),n(t,c,e,"right"),n(t,c,e,"bottom"),n(t,c,e,"left")}}();var e=i(c).container;e||(e=E());var n,r,u,s,d=o.width,h=o.height,p="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; "+("left: "+(n=(n=-(1+d))?n+"px":"0")+"; top: "+(r=(r=-(1+h))?r+"px":"0")+"; right: "+(s=(s=-d)?s+"px":"0")+"; bottom: "+(u=(u=-h)?u+"px":"0")+";"),v=document.createElement("div"),y=document.createElement("div"),m=document.createElement("div"),g=document.createElement("div"),w=document.createElement("div"),x=document.createElement("div");v.dir="ltr",v.style.cssText="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; width: 100%; height: 100%; left: 0px; top: 0px;",v.className=a,y.className=a,y.style.cssText=p,m.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",g.style.cssText="position: absolute; left: 0; top: 0;",w.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",x.style.cssText="position: absolute; width: 200%; height: 200%;",m.appendChild(g),w.appendChild(x),y.appendChild(m),y.appendChild(w),v.appendChild(y),e.appendChild(v),l(m,"scroll",b),l(w,"scroll",S),i(c).onExpandScroll=b,i(c).onShrinkScroll=S}else f("Aborting because element has been uninstalled");function b(){i(c).onExpand&&i(c).onExpand()}function S(){i(c).onShrink&&i(c).onShrink()}}function I(){function o(e,t,n){var i=function(e){return u(e).childNodes[0]}(e),r=w(t),o=x(n);i.style.width=r+"px",i.style.height=o+"px"}function a(a){var u=c.offsetWidth,s=c.offsetHeight;f("Storing current size",u,s),y(c,u,s),n.add(0,(function(){if(i(c))if(l()){if(e.debug)c.offsetWidth===u&&c.offsetHeight===s||t.warn(r.get(c),"Scroll: Size changed before updating detector elements.");o(c,u,s)}else f("Aborting because element container has not been initialized");else f("Aborting because element has been uninstalled")})),n.add(1,(function(){i(c)?l()?b(c,u,s):f("Aborting because element container has not been initialized"):f("Aborting because element has been uninstalled")})),a&&n.add(2,(function(){i(c)?l()?a():f("Aborting because element container has not been initialized"):f("Aborting because element has been uninstalled")}))}function l(){return!!i(c).container}function d(){f("notifyListenersIfNeeded invoked");var e=i(c);return void 0===i(c).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?f("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?f("Not notifying: Size already notified"):(f("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void S(i(c).listeners,(function(e){e(c)})))}function p(){if(f("Scroll detected."),h(c))f("Scroll event fired while unrendered. Ignoring...");else{var e=c.offsetWidth,t=c.offsetHeight;e!==i(c).lastWidth||t!==i(c).lastHeight?(f("Element size changed."),a(d)):f("Element size has not changed ("+e+"x"+t+").")}}if(f("registerListenersAndPositionElements invoked."),i(c)){i(c).onRendered=function(){if(f("startanimation triggered."),h(c))f("Ignoring since element is still unrendered...");else{f("Element rendered.");var e=u(c),t=s(c);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(f("Scrollbars out of sync. Updating detector elements..."),a(d))}},i(c).onExpand=p,i(c).onShrink=p;var v=i(c).style;o(c,v.width,v.height)}else f("Aborting because element has been uninstalled")}function z(){if(f("finalizeDomMutation invoked."),i(c)){var e=i(c).style;y(c,e.width,e.height),b(c,e.width,e.height)}else f("Aborting because element has been uninstalled")}function T(){d(c)}function M(){var e;f("Installing..."),i(c).listeners=[],e=p(),i(c).startSize={width:e.width,height:e.height},f("Element start size",i(c).startSize),n.add(0,v),n.add(1,C),n.add(2,I),n.add(3,z),n.add(4,T)}d||(d=c,c=e,e=null),e=e||{},f("Making detectable..."),!function(e){return!function(e){return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)}(e)||null===window.getComputedStyle(e)}(c)?M():(f("Element is detached"),E(),f("Waiting until element is attached..."),i(c).onRendered=function(){f("Element is now attached"),M()})},addListener:function(e,t){if(!i(e).listeners.push)throw Error("Cannot add listener to an element that is not detectable.");i(e).listeners.push(t)},uninstall:function(e){var t=i(e);t&&(t.onExpandScroll&&c(u(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&c(s(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&c(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))}}},I=v.forEach;function z(e){return Array.isArray(e)||void 0!==e.length}function T(e){if(Array.isArray(e))return e;var t=[];return I(e,(function(e){t.push(e)})),t}function M(e){return e&&1===e.nodeType}function O(e,t,n){var i=e[t];return null==i&&void 0!==n?n:i}var R=null;"undefined"!=typeof window&&(R=function(e){var t,n;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var i=function(e){var t=e.idGenerator,n=e.stateHandler.getState;return{get:function(e){var t=n(e);return t&&void 0!==t.id?t.id:null},set:function(e){var i=n(e);if(!i)throw Error("setId required the element to have a resize detection state.");var r=t.generate();return i.id=r,r}}}({idGenerator:(n=1,{generate:function(){return n++}}),stateHandler:E});t=i}var r=e.reporter;r||(r=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var i=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;arguments.length>n;n++)e(arguments[n])}};i(n,"log"),i(n,"warn"),i(n,"error")}return n}(!1===r));var o=O(e,"batchProcessor",g({reporter:r})),a={};a.callOnAdd=!!O(e,"callOnAdd",!0),a.debug=!!O(e,"debug",!1);var l,c=function(e){var t={};function n(n){var i=e.get(n);return void 0===i?[]:t[i]||[]}return{get:n,add:function(n,i){var r=e.get(n);t[r]||(t[r]=[]),t[r].push(i)},removeListener:function(e,t){for(var i=n(e),r=0,o=i.length;o>r;++r)if(i[r]===t){i.splice(r,1);break}},removeAllListeners:function(e){var t=n(e);t&&(t.length=0)}}}(t),u=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var n=t(e);return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}({stateHandler:E}),s=O(e,"strategy","object"),d={reporter:r,batchProcessor:o,stateHandler:E,idHandler:t};if("scroll"===s&&(y.isLegacyOpera()?(r.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),s="object"):y.isIE(9)&&(r.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),s="object")),"scroll"===s)l=C(d);else{if("object"!==s)throw Error("Invalid strategy name: "+s);l=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,i=e.stateHandler.getState;if(!t)throw Error("Missing required dependency: reporter.");function r(e){return i(e).object}return{makeDetectable:function(e,r,o){o||(o=r,r=e,e=null),e=e||{},y.isIE(8)?o(r):function(e,r){var o="display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; padding: 0; margin: 0; opacity: 0; z-index: -1000; pointer-events: none;",a=!1,l=window.getComputedStyle(e),c=e.offsetWidth,u=e.offsetHeight;function s(){function n(){if("static"===l.position){e.style.position="relative";var n=function(e,t,n,i){var r=n[i];"auto"!==r&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(r)&&(e.warn("An element that is positioned static has style."+i+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",t),t.style[i]=0)};n(t,e,l,"top"),n(t,e,l,"right"),n(t,e,l,"bottom"),n(t,e,l,"left")}}""!==l.position&&(n(),a=!0);var c=document.createElement("object");c.style.cssText=o,c.tabIndex=-1,c.type="text/html",c.setAttribute("aria-hidden","true"),c.onload=function(){a||n(),function e(t,n){t.contentDocument?n(t.contentDocument):setTimeout((function(){e(t,n)}),100)}(this,(function(t){r(e)}))},y.isIE()||(c.data="about:blank"),e.appendChild(c),i(e).object=c,y.isIE()&&(c.data="about:blank")}i(e).startSize={width:c,height:u},n?n.add(s):s()}(r,o)},addListener:function(e,t){if(!r(e))throw Error("Element is not detectable by this strategy.");function n(){t(e)}y.isIE(8)?(i(e).object={proxy:n},e.attachEvent("onresize",n)):r(e).contentDocument.defaultView.addEventListener("resize",n)},uninstall:function(e){y.isIE(8)?e.detachEvent("onresize",i(e).object.proxy):e.removeChild(r(e)),delete i(e).object}}}(d)}var f={};return{listenTo:function(e,n,i){function o(e){var t=c.get(e);I(t,(function(t){t(e)}))}function s(e,t,n){c.add(t,n),e&&n(t)}if(i||(i=n,n=e,e={}),!n)throw Error("At least one element required.");if(!i)throw Error("Listener required.");if(M(n))n=[n];else{if(!z(n))return r.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=T(n)}var d=0,h=O(e,"callOnAdd",a.callOnAdd),p=O(e,"onReady",(function(){})),v=O(e,"debug",a.debug);I(n,(function(e){E.getState(e)||(E.initState(e),t.set(e));var a=t.get(e);if(v&&r.log("Attaching listener to element",a,e),!u.isDetectable(e))return v&&r.log(a,"Not detectable."),u.isBusy(e)?(v&&r.log(a,"System busy making it detectable"),s(h,e,i),f[a]=f[a]||[],void f[a].push((function(){++d===n.length&&p()}))):(v&&r.log(a,"Making detectable..."),u.markBusy(e,!0),l.makeDetectable({debug:v},e,(function(e){if(v&&r.log(a,"onElementDetectable"),E.getState(e)){u.markAsDetectable(e),u.markBusy(e,!1),l.addListener(e,o),s(h,e,i);var t=E.getState(e);if(t&&t.startSize)t.startSize.width===e.offsetWidth&&t.startSize.height===e.offsetHeight||o(e);f[a]&&I(f[a],(function(e){e()}))}else v&&r.log(a,"Element uninstalled before being detectable.");delete f[a],++d===n.length&&p()})));v&&r.log(a,"Already detecable, adding listener."),s(h,e,i),d++})),d===n.length&&p()},removeListener:c.removeListener,removeAllListeners:c.removeAllListeners,uninstall:function(e){if(!e)return r.error("At least one element is required.");if(M(e))e=[e];else{if(!z(e))return r.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=T(e)}I(e,(function(e){c.removeAllListeners(e),l.uninstall(e),E.cleanState(e)}))}}}({strategy:"scroll"}));var k=R;function L(e){var t=0,n=0;if("undefined"!=typeof window&&(t=e.offsetWidth,n=e.offsetHeight,window.getComputedStyle)){var i=window.getComputedStyle(e)||{};i.paddingLeft&&(t-=parseInt(i.paddingLeft,10)),i.paddingRight&&(t-=parseInt(i.paddingRight,10)),i.borderLeftWidth&&(t-=parseInt(i.borderLeftWidth,10)),i.borderRightWidth&&(t-=parseInt(i.borderRightWidth,10)),i.paddingTop&&(n-=parseInt(i.paddingTop,10)),i.paddingBottom&&(n-=parseInt(i.paddingBottom,10)),i.borderTopWidth&&(n-=parseInt(i.borderTopWidth,10)),i.borderBottomWidth&&(n-=parseInt(i.borderBottomWidth,10))}return{width:t,height:n}}function P(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)}function H(e){return!isNaN(parseFloat(e))&&isFinite(e)}function A(e){var o=e.width,a=e.height,l=e.onResize,s=e.children,d=r(e,["width","height","onResize","children"]),f=t.useState(null),h=f[0],p=f[1],v=u(h),y=t.useRef(null),m=v.current,g=t.useCallback((function(){var e=L(y.current);p((function(t){return P(t,e)?t:e}))}),[]);c((function(){m!==h&&h&&l(h),h||g()})),c((function(){if((!H(o)||!H(a))&&k){var e=y.current;return k.listenTo(e,(function(){return g()})),function(){return k.uninstall(e)}}}),[o,a]),t.useMemo((function(){var e=null;H(o)&&H(a)&&(e={width:o,height:a}),p((function(t){return P(t,e)?t:e}))}),[o,a]);var w=null;h&&(w="function"==typeof s?s(h):s);var x={width:H(o)?o:"100%",height:H(a)?a:"100%"};return d.style&&Object.assign(x,d.style),d.style=x,n.createElement("div",i({},d,{ref:y}),w)}A.defaultProps={width:null,height:null,onResize:function(){}};var W=function(){},D=function(){};if("undefined"!=typeof window){W=window.requestAnimationFrame,D=window.cancelAnimationFrame;for(var j=["ms","moz","webkit","o"],N=0,B=0;4>B&&!W;++B)W=window[j[B]+"RequestAnimationFrame"],D=window[j[B]+"CancelAnimationFrame"]||window[j[B]+"CancelRequestAnimationFrame"];W||(W=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-N)),i=window.setTimeout((function(){e(t+n)}),n);return N=t+n,i},D=function(e){clearTimeout(e)})}function V(e,t){var n=t.x,i=t.y,r=Math.sqrt(n*n+i*i);return 0===r?{x:0,y:0}:{x:e*(n/r),y:e*(i/r)}}function _(e,t,n,i){if(i){var r="y"===i?["y","height"]:["x","width"],o=r[0];if(!e[o])return 0;var a=0>e[o]?-1:1;return a*Math.min(a*e[o],Math.sqrt(2*(.5*t[r[1]])*a*n[o]))}"object"!=typeof n&&(n=V(n,e));var l={x:_(e,t,n,"x"),y:_(e,t,n,"y")};return l.x===e.x&&l.y===e.y?e:l}function q(e,t,n,i,r,o){if(o){var a="y"===o?["y","height"]:["x","width"],l=a[0],c=a[1],u=t[c],s=Math.min(u-n[c],0),d=e[l];return i&&u>0&&(s=u*Math.ceil(s/u)),d>0?d=0:s>d?d=s:!r&&i&&u>0&&(d=u*Math.round(d/u)),d}var f={x:q(e,t,n,i,r,"x"),y:q(e,t,n,i,r,"y")};return f.x===e.x&&f.y===e.y?e:f}function F(e,t,n,i,r,o){if(o){var a="y"===o?["y","height"]:["x","width"],l=a[0],c=a[1],u=e[l];if(i&&n[c]>0){var s=u/n[c];u=n[c]*(s=t[l]>.5?Math.ceil(s):-.5>t[l]?Math.floor(s):Math.round(s))}else r[l]&&(u+=.5*t[l]*(t[l]/r[l]));return u}return"object"!=typeof r&&(r=V(r,t)),{x:F(e,t,n,i,r,"x"),y:F(e,t,n,i,r,"y")}}function X(e,t,n,i){var r=(new Date).getTime(),o=0;if(!t)return{endOffset:e,rate:t,duration:o,startTime:r};var a,l={x:e.x-n.x,y:e.y-n.y},c=Math.sqrt(Math.pow(l.x,2)+Math.pow(l.y,2));if(c){var u=Math.sqrt(.5*Math.pow(a=(i.x*l.x+i.y*l.y)/c,2)+t*c),s=(u-a)/t;0>s&&(u=a,s=0),o=s+u/t}else a=Math.sqrt(Math.pow(i.x,2)+Math.pow(i.y,2)),o=(Math.sqrt(2)+1)*a/t;return{endOffset:e,rate:t,duration:o,startTime:r,points:{x:[n.x,n.x+i.x*(o/3),e.x,e.x],y:[n.y,n.y+i.y*(o/3),e.y,e.y]}}}var Y=.025,G=.0025,U={size:{width:0,height:0},contentSize:{width:0,height:0},contentOffset:{x:0,y:0},contentVelocity:{x:0,y:0},drag:null,deceleration:null,options:[!1,!1,!0,!0],pannable:a};function J(e,t){return function(e,t){var n=e.size,r=e.contentSize,o=e.contentOffset,a=e.contentVelocity,l=e.drag,c=e.deceleration,u=e.options,s=u[0],d=u[2],f=u[3],h=Y;if(c){var p=c.endOffset;if(p!==q(p,n,r,s,!0)&&o!==q(o,n,r,s,!0)){var v=a;return d||(v.x=0),f||(v.y=0),c.rate!==h&&(v=_(v,n,h),p=F(o,v,n,s,h)),p=q(p,n,r,s,!0),i({},e,{contentVelocity:v,drag:null,deceleration:X(p,h,o,v)})}}else if(!l){var y=q(o,n,r,s);if(o!==y){var m=F(y,{x:0,y:0},n,s,h);return i({},e,{drag:null,deceleration:X(m,h,o,a)})}}return e}(function(e,t){switch(t.type){case"setPannable":return function(e,t){return i({},e,{pannable:t.value})}(e,t);case"setOptions":return function(e,t){return i({},e,{options:t.value})}(e,t);case"setSize":return function(e,t){return i({},e,{size:t.value})}(e,t);case"setContentSize":return function(e,t){return i({},e,{contentSize:t.value})}(e,t);case"dragStart":return function(e,t){var n=e.contentOffset,r=e.pannable.velocity,o={x:1,y:1};e.options[1]&&(Math.abs(r.x)>Math.abs(r.y)?o.y=0:o.x=0);return i({},e,{contentVelocity:{x:o.x*r.x,y:o.y*r.y},drag:{direction:o,startOffset:n},deceleration:null})}(e);case"dragMove":return function(e,t){var n=e.contentOffset,r=e.drag,o=e.options,a=e.pannable,l=a.translation,c=a.interval,u=function e(t,n,i,r,o){if(o){var a="y"===o?["y","height","width"]:["x","width","height"],l=a[0],c=a[1],u=a[2],s=t[l],d=Math.min(i[c]-r[c],0),f=.5*Math.min(i[c],i[u]);return s>0?n[l]?f*(1-f/(f+s)):0:d>s?n[l]?d-f*(1-f/(f-s+d)):d:s}var h={x:e(t,n,i,r,"x"),y:e(t,n,i,r,"y")};return h.x===t.x&&h.y===t.y?t:h}({x:r.startOffset.x+r.direction.x*l.x,y:r.startOffset.y+r.direction.y*l.y},{x:o[2],y:o[3]},e.size,e.contentSize);return i({},e,{contentOffset:u,contentVelocity:{x:(u.x-n.x)/c,y:(u.y-n.y)/c}})}(e);case"dragEnd":return function(e,t){var n=e.size,r=e.contentOffset,o=e.options[0],a=G,l=e.contentVelocity;o&&(l=_(l,n,a=Y));var c=F(r,l,n,o,a);return i({},e,{contentVelocity:l,drag:null,deceleration:X(c,a,r,l)})}(e);case"dragCancel":return function(e,t){var n=e.contentOffset,r=e.contentVelocity,o=Y,a=F(e.drag.startOffset,{x:0,y:0},e.size,e.options[0],o);return i({},e,{drag:null,deceleration:X(a,o,n,r)})}(e);case"decelerate":return function(e,t){var n=e.deceleration,r=t.now;if(!n)return e;var o=function e(t,n,r){var o=t.duration,a=t.endOffset,l=1;if(o>0&&(l=(n-t.startTime)/o),r){var c,u=("y"===r?["y"]:["x"])[0],s=t.points[u],d=s[0],f=s[1],h=s[2],p=s[3],v=d-3*(d-f)*l+3*(d-2*f+h)*Math.pow(l,2)-(d-3*f+3*h-p)*Math.pow(l,3),y=(-3*(d-f)+6*(d-2*f+h)*l-3*(d-3*f+3*h-p)*Math.pow(l,2))/o;return(c={})[u+"Offset"]=v,c[u+"Velocity"]=y,c}if(0>l||l>=1)return{offset:a,velocity:{x:0,y:0},didEnd:!0};var m=i({},e(t,n,"x"),{},e(t,n,"y"));return{offset:{x:m.xOffset,y:m.yOffset},velocity:{x:m.xVelocity,y:m.yVelocity},didEnd:!1}}(n,r);return i({},e,{contentOffset:o.offset,contentVelocity:o.velocity,drag:null,deceleration:o.didEnd?null:n})}(e,t);case"scrollTo":return K(e,t);case"scrollToRect":return function(e,t){var n=t.animated,i=function e(t,n,i,r,o){if(o){var a="y"===o?["y","height"]:["x","width"],l=a[0],c=a[1],u=-t[l],s=r[c]-t[c];if("auto"===n[l]){var d=0>s?-1:1;u+=d*Math.max(0,Math.min(d*(i[l]-u),d*s))}else"start"===n[l]?n[l]=0:"center"===n[l]?n[l]=.5:"end"===n[l]&&(n[l]=1),("number"!=typeof n[l]||isNaN(n[l]))&&(n[l]=.5),u+=n[l]*s;return u}"object"!=typeof n&&(n={x:n,y:n});return{x:e(t,n,i,r,"x"),y:e(t,n,i,r,"y")}}(t.rect,t.align,e.contentOffset,e.size);return K(e,{type:"scrollTo",offset:i,animated:n})}(e,t);default:return e}}(e,t))}function K(e,t){var n=e.contentOffset,r=e.contentVelocity,o=t.point,a=e.drag,l=e.deceleration,c=t.offset,u=void 0===c?{x:0,y:0}:c,s=t.animated;return o&&(u={x:-o.x,y:-o.y}),u.x===n.x&&u.y===n.y?e:(a&&(s=!1),s?i({},e,{deceleration:X(F(u,{x:0,y:0},e.size,e.options[0],Y),Y,n,r)}):(a?a=i({},a,{startOffset:{x:a.startOffset.x+u.x-n.x,y:a.startOffset.y+u.y-n.y}}):l=l?X({x:l.endOffset.x+u.x-n.x,y:l.endOffset.y+u.y-n.y},l.rate,u,r):X(u),i({},e,{contentOffset:u,drag:a,deceleration:l})))}var Q=n.createContext({visibleRect:null,resizeContent:function(){}});function Z(e){var o=e.width,a=e.height,l=e.children,s=r(e,["width","height","children"]),d=t.useState(null),f=d[0],h=d[1],p=u(f),v=t.useContext(Q),y=t.useRef(null),m=p.current,g=t.useCallback((function(){}),[]),w=t.useCallback((function(){return y.current}),[]),x=t.useCallback((function(){var e=L(y.current);h((function(t){return P(t,e)?t:e}))}),[]);c((function(){m!==f&&f&&v.resizeContent(f),f||x()})),t.useMemo((function(){var e=null;H(o)&&H(a)&&(e={width:o,height:a}),h((function(t){return P(t,e)?t:e}))}),[o,a]);var b="function"==typeof l?l(f,{getResizeNode:w,calculateSize:x}):l,E={position:"relative"},S={position:"absolute"};return H(o)&&(S.width=o),H(a)&&(S.height=a),b=n.createElement("div",{ref:y,style:S},b),f?(E.width=f.width,E.height=f.height):b=n.createElement("div",{style:{position:"absolute"}},b),s.style&&Object.assign(E,s.style),s.style=E,n.createElement(Q.Provider,{value:i({},v,{resizeContent:g})},n.createElement("div",s,b))}Z.defaultProps={width:null,height:null},Z.PadContent=!0;var $=i({},Z.defaultProps);function ee(e){var i=e.width,r=e.height,o=e.children,a=t.useState(null),l=a[0],c=a[1],u=t.useRef({});return t.useEffect((function(){if(!H(i)||!H(r)){var e=u.current,t=e.calculateSize;if(l){var n=(0,e.getResizeNode)();return k.listenTo(n,(function(){t()})),function(){k.uninstall(n)}}}}),[i,r,l]),n.createElement(Z,e,(function(e,t){return u.current=t,l!==e&&c(e),"function"==typeof o?o(e,t):o}))}ee.defaultProps=$,ee.PadContent=!0;var te=i({width:0,height:0,pagingEnabled:!1,directionalLockEnabled:!1,alwaysBounceX:!0,alwaysBounceY:!0,onScroll:function(){},onDragStart:function(){},onDragEnd:function(){},onDecelerationStart:function(){},onDecelerationEnd:function(){},onContentResize:function(){},renderBackground:function(){return null},renderOverlay:function(){return null},scrollTo:null,scrollToRect:null},h.defaultProps);function ne(e){var o=e.width,a=e.height,l=e.pagingEnabled,d=e.directionalLockEnabled,f=e.alwaysBounceX,p=e.alwaysBounceY,v=e.onScroll,y=e.onDragStart,m=e.onDragEnd,g=e.onDecelerationStart,w=e.onDecelerationEnd,x=e.onContentResize,b=e.renderBackground,E=e.renderOverlay,S=e.scrollTo,C=e.scrollToRect,I=e.children,z=r(e,["width","height","pagingEnabled","directionalLockEnabled","alwaysBounceX","alwaysBounceY","onScroll","onDragStart","onDragEnd","onDecelerationStart","onDecelerationEnd","onContentResize","renderBackground","renderOverlay","scrollTo","scrollToRect","children"]),T=z.enabled,M=z.shouldStart,O=t.useReducer(J,U),R=O[0],k=O[1],L=u(R),H=R.size,A=R.contentSize,j=R.contentOffset,N=R.drag,B=R.deceleration,V=R.pannable,_={size:H,contentSize:A,contentOffset:j,contentVelocity:R.contentVelocity,dragging:!!N,decelerating:!!B},q=L.current,F=t.useCallback((function(e){P(A,e)||k({type:"setContentSize",value:e})}),[A]),X=t.useCallback((function(e){return!(d&&!function(e,t,n){var i=Math.abs(e.x)>Math.abs(e.y)?"width":"height";return n[i]>t[i]}(e.velocity,H,A))&&M(e)}),[M,d,H,A]);c((function(){q.pannable.translation!==V.translation&&(V.translation?k(q.pannable.translation?{type:"dragMove"}:{type:"dragStart"}):q.pannable.translation&&k(T?{type:"dragEnd"}:{type:"dragCancel"})),q.contentSize!==A&&x(A),q.contentOffset!==j&&v(_),q.drag!==N&&(q.drag?N||m(_):y(_)),q.deceleration!==B&&(q.deceleration?B||w(_):g(_))})),c((function(){if(R.deceleration){var e=W((function(){k({type:"decelerate",now:(new Date).getTime()})}));return function(){D(e)}}}),[R]),t.useMemo((function(){k({type:"setSize",value:{width:o,height:a}})}),[o,a]),t.useMemo((function(){k({type:"setOptions",value:[l,d,f,p]})}),[l,d,f,p]),t.useMemo((function(){S&&k(i({type:"scrollTo"},S))}),[S]),t.useMemo((function(){C&&k(i({type:"scrollToRect"},C))}),[C]),z.shouldStart=X;var Y={overflow:"hidden",position:"relative",width:H.width,height:H.height};return z.style&&Object.assign(Y,z.style),z.style=Y,n.createElement(h,z,(function(e){var i;return V!==e&&k({type:"setPannable",value:e}),n.createElement(Q.Provider,{value:{visibleRect:{x:-j.x,y:-j.y,width:H.width,height:H.height},resizeContent:F}},null==(i=b(_))?null:n.createElement("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0}},i),function(){var e=s.create({position:"absolute",width:A.width,height:A.height,transformTranslate:j,willChange:"transform"}),i="function"==typeof I?I(R):I;return t.isValidElement(i)&&i.type.PadContent?(i.props.style&&Object.assign(e,i.props.style),i=t.cloneElement(i,{style:e,ref:i.ref})):i=n.createElement(ee,{style:e},i),i}(),E(_))}))}function ie(e,t,n){if(!t)return t;if(n){var r,o="y"===n?["y","height"]:["x","width"],a=o[0],l=o[1];return(r={})[a]=t[a]-e[a],r[l]=t[l],r}return i({},ie(e,t,"x"),{},ie(e,t,"y"))}function re(e,t,n){if(!t)return!0;if(n){var i="y"===n?["y","height"]:["x","width"],r=i[0],o=i[1];return e[r]+e[o]>=t[r]-.25*t[o]&&t[r]+1.25*t[o]>=e[r]}return re(e,t,"x")&&re(e,t,"y")}function oe(){}ne.defaultProps=te;function ae(e){var o=e.width,a=e.height,l=e.direction,s=e.rowSpacing,d=e.columnSpacing,f=e.itemWidth,h=e.itemHeight,p=e.itemCount,v=e.renderItem,y=e.children,m=r(e,["width","height","direction","rowSpacing","columnSpacing","itemWidth","itemHeight","itemCount","renderItem","children"]),g=t.useMemo((function(){return function(e){var t,n,i=e.itemCount,r={width:e.itemWidth,height:e.itemHeight},o={row:e.rowSpacing,column:e.columnSpacing},a="x"===e.direction?["y","x","height","width","column","row"]:["x","y","width","height","row","column"],l=a[0],c=a[1],u=a[2],s=a[3],d=a[4],f=a[5],h={width:e.width,height:e.height}[u],p=0,v=0,y=0,m=[];"number"!=typeof h?(y=i,0===r[u]?h=0:(h=i*r[u],i>1&&(h+=(i-1)*o[f]))):0===r[u]?y=i:(y=1,h>r[u]&&(y+=Math.floor((h-r[u])/(r[u]+o[f]))));y>0&&(v=Math.ceil(i/y));for(var g=0;v>g;g++){g>0&&(p+=o[d]);for(var w=0;y>w;w++){var x,b,E=w+g*y,S=0;if(y>1&&(S+=Math.round(w*((h-r[u])/(y-1)))),E>=i)break;m.push(((b={rect:(x={},x[l]=S,x[c]=p,x[u]=r[u],x[s]=r[s],x)})[d+"Index"]=g,b[f+"Index"]=w,b.itemIndex=E,b))}p+=r[s]}return{size:(t={},t[u]=h,t[s]=p,t),count:(n={},n[d]=v,n[f]=y,n),layoutList:m}}({direction:l,width:o,height:a,rowSpacing:s,columnSpacing:d,itemCount:p,itemWidth:f,itemHeight:h})}),[l,o,a,s,d,p,f,h]),w=u(g),x=t.useContext(Q),b=g.size,E=g.layoutList,S=w.current,C=t.useCallback((function(){}),[]);c((function(){x.resizeContent(b)}),[]),c((function(){P(S.size,b)||x.resizeContent(b)}));var I={position:"relative"};b&&(I.width=b.width,I.height=b.height),m.style&&Object.assign(I,m.style),m.style=I;var z=E.map((function(e){return function(e){var r=e.rect,o=e.itemIndex,a=e.visibleRect,l=e.needsRender,c=e.Item,u=!1,s=v(e),d="GridContent_"+o,f={position:"absolute",left:r.x,top:r.y,width:r.width,height:r.height};return t.isValidElement(s)&&s.type===c&&(void 0!==s.props.forceRender&&(u=s.props.forceRender),s.key&&(d=s.key),s=s.props.children),l||u?(t.isValidElement(s)?(s.props.style&&Object.assign(f,s.props.style),s=t.cloneElement(s,{style:f,ref:s.ref})):s=n.createElement("div",{style:f},s),n.createElement(Q.Provider,{key:d,value:i({},x,{visibleRect:a,resizeContent:C})},s)):null}(i({},e,{visibleRect:ie(e.rect,x.visibleRect),needsRender:re(e.rect,x.visibleRect),Item:oe}))}));return"function"==typeof y&&y(g),n.createElement("div",m,z)}function le(){}ae.defaultProps={width:null,height:null,direction:"y",rowSpacing:0,columnSpacing:0,itemWidth:0,itemHeight:0,itemCount:0,renderItem:function(){return null}},ae.PadContent=!0;function ce(e){var o=e.width,a=e.height,l=e.direction,s=e.spacing,d=e.estimatedItemWidth,f=e.estimatedItemHeight,h=e.itemCount,p=e.renderItem,v=e.children,y=r(e,["width","height","direction","spacing","estimatedItemWidth","estimatedItemHeight","itemCount","renderItem","children"]),m=t.useContext(Q),g=t.useState([]),w=g[0],x=g[1],b=t.useState({}),E=b[0],S=b[1],C=t.useMemo((function(){return function(e,t,n){var i,r=e.direction,o=e.spacing,a=e.itemCount,l=e.estimatedItemWidth,c=e.estimatedItemHeight,u={width:e.width,height:e.height},s="x"===r?["y","x","height","width"]:["x","y","width","height"],d=s[0],f=s[1],h=s[2],p=s[3],v=0,y=0,m=[],g={},w=[r,u[h]].join();H(u[h])&&(g[h]=u[h]);for(var x=0;a>x;x++){var b,E=t[x]||null,S=n[E]||null,C=((b={})[d]=0,b[f]=y,b);S?Object.assign(C,S):(C[h]=void 0!==g[h]?g[h]:"function"==typeof l?l(x):l,C[p]="function"==typeof c?c(x):c),m.push({rect:C,itemIndex:x,itemHash:E,itemSize:S}),C[p]>0&&(y+=C[p],a-1>x&&(y+=o)),C[h]>v&&(v=C[h])}return{size:(i={},i[h]=v,i[p]=y,i),fixed:g,layoutList:m,type:w}}({width:o,height:a,direction:l,spacing:s,itemCount:h,estimatedItemWidth:d,estimatedItemHeight:f},w,E)}),[o,a,l,s,h,d,f,w,E]),I=u(C).current,z=[];c((function(){m.resizeContent(C.size)}),[]),c((function(){P(I.size,C.size)||m.resizeContent(C.size),I.type!==C.type&&S({})}));var T={position:"relative"};C.size&&(T.width=C.size.width,T.height=C.size.height),y.style&&Object.assign(T,y.style),y.style=T;var M=C.layoutList.map((function(e){return function(e){var r,o=e.rect,a=e.itemIndex,l=e.itemSize,c=e.visibleRect,u=e.needsRender,s=e.Item,d=!1,f=p(e),h="ListContent_"+a,v={position:"absolute",left:o.x,top:o.y,width:o.width,height:o.height};t.isValidElement(f)&&f.type===s&&(void 0!==f.props.forceRender&&(d=f.props.forceRender),f.key&&(h=f.key),void 0!==f.props.hash&&(r=f.props.hash),f=f.props.children),void 0===r&&(r=h);var y=!u&&!d;if(l||-1===z.indexOf(r)||(y=!0),z[a]=r,y)return null;var g,w={};return H(C.fixed.width)&&(w.width=C.fixed.width),H(C.fixed.height)&&(w.height=C.fixed.height),t.isValidElement(f)&&f.type.PadContent?(f.props.style&&Object.assign(v,f.props.style),H(f.props.width)&&(w.width=f.props.width),H(f.props.height)&&(w.height=f.props.height),f=t.cloneElement(f,i({},w,{style:v,ref:f.ref}))):(l&&Object.assign(w,l),f=n.createElement(Z,i({},w,{style:v}),f)),n.createElement(Q.Provider,{key:h,value:i({},m,{visibleRect:c,resizeContent:(g=r,function(e){S((function(t){var n;return P(t[g],e)?t:i({},t,((n={})[g]=e,n))}))})})},f)}(i({},e,{visibleRect:ie(e.rect,m.visibleRect),needsRender:re(e.rect,m.visibleRect),Item:le}))}));return function(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var n=0;e.length>n;n++)if(e[n]!==t[n])return!1;return!0}(w,z)||x(z),"function"==typeof v&&v(C),n.createElement("div",y,M)}ce.defaultProps={width:null,height:null,direction:"y",spacing:0,estimatedItemWidth:0,estimatedItemHeight:0,itemCount:0,renderItem:function(){return null}},ce.PadContent=!0;var ue={mouseEntered:!1,loopCount:1,loopOffset:0,loopWidth:0,scrollTo:null,options:["x",!0],pad:U};function se(e,t){switch(t.type){case"setMouseEntered":return function(e,t){return i({},e,{mouseEntered:t.value})}(e,t);case"setPad":return function(e,t){var n=i({},e,{pad:t.value});return n=de(n=function(e,t){var n,r=e.loopCount,o=e.loopOffset,a=e.options,l=a[0],c=e.pad,u=c.contentOffset,s=c.size,d=c.contentSize;if(a[1]){var f=function(e,t,n,i,r){var o;if(1===i)return[e,0];var a="y"===r?["height","y","x"]:["width","x","y"],l=a[0],c=a[1],u=a[2],s=n[l],d=t[l],f=s/i,h=.5*(s-f-d),p=0,v=d-s,y=e[c],m=0;if(p-=h,y>=(v+=h)&&p>=y)return[e,0];v>y?m=Math.floor((p-y)/f):y>p&&(m=-Math.floor((y-v)/f));return[(o={},o[c]=y+=f*m,o[u]=e[u],o),m]}(u,s,d,r,l),h=f[0],p=f[1];u!==h&&((n=n||i({},e)).loopOffset=o+p,n.scrollTo={offset:h,animated:!1})}return n||e}(n))}(e,t);case"setOptions":return function(e,t){var n=i({},e,{options:t.value});return n=de(n)}(e,t);case"setScrollTo":return function(e,t){return i({},e,{scrollTo:t.value})}(e,t);case"playNext":return function(e,t){var n=e.pad,r=function(e,t,n,i,r){var o,a="y"===r?["height","y","x"]:["width","x","y"],l=a[0],c=a[1],u=a[2],s=t[l],d=Math.min(s-n[l],0),f=e[c];i&&s>0&&(d=s*Math.ceil(d/s));f=f>d?Math.max(d,f-s):0;return(o={})[c]=f,o[u]=e[u],o}(n.contentOffset,n.size,n.contentSize,n.pagingEnabled,e.options[0]);return i({},e,{scrollTo:{offset:r,animated:!0}})}(e);default:return e}}function de(e,t){var n=e.options,r=e.pad;return i({},e,{},function(e,t,n,i,r){var o="y"===r?"height":"width",a=e[o],l=t[o],c=l/n;if(!i||0===l||0===a)return{loopCount:1,loopOffset:0,loopWidth:c};return{loopCount:2+Math.floor(a/c),loopWidth:c}}(r.size,r.contentSize,e.loopCount,n[1],n[0]))}var fe=i({direction:"x",loop:!0,autoplayEnabled:!0,autoplayInterval:5e3},ne.defaultProps,{pagingEnabled:!0,directionalLockEnabled:!0});function he(e){var i=e.direction,o=e.loop,a=e.autoplayEnabled,l=e.autoplayInterval,c=e.children,u=r(e,["direction","loop","autoplayEnabled","autoplayInterval","children"]),s=u.scrollTo,d=u.onMouseEnter,f=u.onMouseLeave,h=t.useReducer(se,ue),p=h[0],v=h[1],y=p.mouseEntered,m=p.loopCount,g=p.loopOffset,w=p.scrollTo,x=p.pad,b=t.useCallback((function(e){v({type:"setMouseEntered",value:!0}),d&&d(e)}),[d]),E=t.useCallback((function(e){v({type:"setMouseEntered",value:!1}),f&&f(e)}),[f]);return t.useEffect((function(){if(a&&!y&&!x.drag&&!x.deceleration){var e=setTimeout((function(){v({type:"playNext"})}),l);return function(){clearTimeout(e)}}}),[a,l,y,x.drag,x.deceleration]),t.useMemo((function(){v({type:"setOptions",value:[i,o]})}),[o,i]),t.useMemo((function(){v({type:"setScrollTo",value:s})}),[s]),u.scrollTo=w,"x"===i?u.alwaysBounceY=!1:u.alwaysBounceX=!1,a&&(u.onMouseEnter=b,u.onMouseLeave=E),n.createElement(ne,u,(function(e){x!==e&&v({type:"setPad",value:e});var t="function"==typeof c?c(p):c;return n.createElement(ce,{direction:i,itemCount:m,renderItem:function(e){return n.createElement(e.Item,{key:e.itemIndex+g,hash:"Player_loop"},t)}})}))}var pe={activeIndex:0,itemCount:0,scrollTo:null,player:ue};function ve(e,t){switch(t.type){case"setPlayer":return function(e,t){var n=t.value,r=n.options[0],o=n.pad,a=o.contentOffset,l=o.size,c=o.contentSize,u=function(e,t,n){var i=e["y"===n?"height":"width"],r=0;i>0&&(r=Math.ceil(t/i));return r}(l,n.loopWidth,r),s=0;if(u>0){var d=function(e,t,n,i){var r="y"===i?["height","y"]:["width","x"],o=r[0],a=r[1],l=t[o],c=0;if(l>0){c=Math.round(-Math.max(Math.min(l-n[o],0),Math.min(e[a],0))/l)}return c}(a,l,c,r);s=d%u}return i({},e,{player:n,itemCount:u,activeIndex:s})}(e,t);case"setScrollTo":return function(e,t){return i({},e,{scrollTo:t.value})}(e,t);case"scrollToIndex":return function(e,t){var n=e.activeIndex,r=e.player.options[0],o=e.player.pad,a=o.contentOffset,l=o.size,c=t.animated,u=t.index;if(0===e.itemCount)return e;"function"==typeof u&&(u=u(e));if(u===n)return e;var s=function(e,t,n,i){var r,o="y"===i?["height","y","x"]:["width","x","y"],a=o[1],l=o[2];return(r={})[a]=t[a]-e*n[o[0]],r[l]=t[l],r}(u-n,a,l,r);return i({},e,{scrollTo:{offset:s,animated:c}})}(e,t);default:return e}}var ye=i({itemCount:0,renderItem:function(){return null},onActiveIndexChange:function(){},scrollToIndex:null},he.defaultProps=fe);function me(e){var o=e.itemCount,a=e.renderItem,l=e.onActiveIndexChange,s=e.scrollToIndex,d=e.children,f=r(e,["itemCount","renderItem","onActiveIndexChange","scrollToIndex","children"]),h=f.width,p=f.height,v=f.direction,y=f.scrollTo,m=f.renderOverlay,g=t.useReducer(ve,pe),w=g[0],x=g[1],b=u(w),E=w.activeIndex,S=w.scrollTo,C=w.player,I={activeIndex:E,itemCount:w.itemCount},z=b.current;return c((function(){z.activeIndex!==E&&l(I)})),t.useMemo((function(){x({type:"setScrollTo",value:y})}),[y]),t.useMemo((function(){s&&x(i({type:"scrollToIndex"},s))}),[s]),f.scrollTo=S,f.renderOverlay=function(e){var i="function"==typeof d?d(w):d;return n.createElement(t.Fragment,null,m(e),i)},n.createElement(he,f,(function(e){return C!==e&&x({type:"setPlayer",value:e}),n.createElement(ae,{width:h,height:p,itemWidth:h,itemHeight:p,direction:v,itemCount:o,renderItem:a})}))}me.defaultProps=ye;var ge={scrollToRect:null,scrolling:!1,pad:U};function we(e,t){switch(t.type){case"setPad":return function(e,t){return i({},e,{pad:t.value})}(e,t);case"setScrollToRect":return function(e,t){return i({},e,{scrollToRect:t.value})}(e,t);case"scrollToIndex":return function(e,t){var n=t.list,r=t.index,o=void 0===r?0:r,a=n.box,l=n.body,c={x:0,y:0,width:0,height:0};a&&(c=a.layoutList[1].rect);if(l){var u=l.layoutList[o];u&&(c={x:c.x+u.rect.x,y:c.y+u.rect.y,width:u.rect.width,height:u.rect.height})}return i({},e,{scrollToRect:{rect:c,align:t.align,animated:t.animated},scrolling:!0})}(e,t);case"endScrolling":return function(e,t){return i({},e,{scrolling:!1})}(e);default:return e}}var xe=i({direction:"y",spacing:0,itemCount:0,estimatedItemWidth:0,estimatedItemHeight:0,renderItem:function(){return null},renderHeader:function(){return null},renderFooter:function(){return null},scrollToIndex:null},ne.defaultProps,{directionalLockEnabled:!0});function be(e){var o=e.direction,a=e.spacing,l=e.itemCount,s=e.estimatedItemWidth,d=e.estimatedItemHeight,f=e.renderItem,h=e.renderHeader,p=e.renderFooter,v=e.scrollToIndex,y=e.children,m=r(e,["direction","spacing","itemCount","estimatedItemWidth","estimatedItemHeight","renderItem","renderHeader","renderFooter","scrollToIndex","children"]),g=m.width,w=m.height,x=m.scrollToRect,b=t.useReducer(we,ge),E=b[0],S=b[1],C=u(E),I=t.useRef({}),z=E.scrollToRect,T=E.scrolling,M=E.pad,O=C.current;return c((function(){O.pad.contentSize!==M.contentSize&&T&&v&&S(i({type:"scrollToIndex"},v,{list:I.current}))})),t.useEffect((function(){O.pad.deceleration!==M.deceleration&&!M.deceleration&&T&&S({type:"endScrolling"})})),t.useMemo((function(){S({type:"setScrollToRect",value:x})}),[x]),t.useMemo((function(){v&&S(i({type:"scrollToIndex"},v,{list:I.current}))}),[v]),m.scrollToRect=z,"x"===o?m.alwaysBounceY=!1:m.alwaysBounceX=!1,"function"==typeof y&&y(E),n.createElement(ne,m,(function(e){M!==e&&S({type:"setPad",value:e});var t={width:g,height:w,direction:o,itemCount:3,renderItem:function(e){var t=e.itemIndex,i=e.Item;return 0===t?h(e):2===t?p(e):n.createElement(i,{hash:"Infinite_body",forceRender:!0},n.createElement(ce,{width:g,height:w,direction:o,spacing:a,itemCount:l,estimatedItemWidth:s,estimatedItemHeight:d,renderItem:f},(function(e){I.current.body=e})))}};return n.createElement(ce,t,(function(e){I.current.box=e}))}))}be.defaultProps=xe,e.AutoResizing=A,e.Carousel=me,e.GeneralContent=ee,e.GridContent=ae,e.Infinite=be,e.ItemContent=Z,e.ListContent=ce,e.Pad=ne,e.PadContext=Q,e.Pannable=h,e.Player=he,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e=e||self).ReactPannable={},e.React)}(this,(function(e,t){"use strict";var n="default"in t?t.default:t;function i(){return(i=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function r(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;o.length>i;i++)0>t.indexOf(n=o[i])&&(r[n]=e[n]);return r}var o={target:null,startPoint:null,movePoint:null,moveTime:null,translation:null,velocity:null,interval:null};function a(e,t){switch(t.type){case"disable":case"end":return function(e,t){return e.target?o:e}(e);case"track":return function(e,t){return{target:t.target,startPoint:t.point,movePoint:t.point,moveTime:t.now,translation:null,velocity:null,interval:null}}(0,t);case"move":return function(e,t){var n=e.target,i=e.startPoint,r=e.movePoint,a=e.moveTime,l=e.translation,c=t.point,u=t.now,s=t.shouldStart;if(!n)return e;var d=u-a,f={x:c.x-i.x,y:c.y-i.y},h={x:(c.x-r.x)/d,y:(c.y-r.y)/d};if(l)return{target:n,startPoint:i,movePoint:c,moveTime:u,translation:f,velocity:h,interval:d};if(0>=Math.sqrt(Math.pow(f.x,2)+Math.pow(f.y,2)))return{target:n,startPoint:i,movePoint:c,moveTime:u,translation:null,velocity:null,interval:null};if(!s({target:n,translation:f,velocity:h,interval:d}))return o;return{target:n,startPoint:c,movePoint:c,moveTime:u,translation:{x:0,y:0},velocity:h,interval:d}}(e,t);default:return e}}var l="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function c(e){var n=t.useRef(e);return t.useEffect((function(){n.current=e})),n}var u={create:function(e){var t=e.transformTranslate,n=e.userSelect,i=r(e,["transformTranslate","userSelect"]);return t&&function(e,t){t.transform="translate3d("+e.x+"px, "+e.y+"px, 0)",t.WebkitTransform="translate3d("+e.x+"px, "+e.y+"px, 0)",t.msTransform="translate("+e.x+"px, "+e.y+"px)"}(t,i),n&&function(e,t){t.userSelect=e,t.WebkitUserSelect=e,t.msUserSelect=e}(n,i),i}},s=function(){},d=function(){};void 0!==typeof window&&(s=window.addEventListener,d=window.removeEventListener);function f(e){var f=e.enabled,h=e.shouldStart,p=e.onStart,v=e.onMove,y=e.onEnd,m=e.onCancel,g=e.children,w=r(e,["enabled","shouldStart","onStart","onMove","onEnd","onCancel","children"]),x=t.useReducer(a,o),b=x[0],E=x[1],S=c(b),C=t.useRef(null),I=t.useRef({touchSupported:!1});I.current.state=b,I.current.shouldStart=h;var z=b.target,T=b.translation,M=b.velocity,O=b.interval,R=S.current;l((function(){function e(e,t){E({type:"track",target:e,point:t,now:(new Date).getTime()})}function t(t){if(I.current.touchSupported=!0,t.touches&&1===t.touches.length){var n=t.touches[0];e(n.target,{x:n.pageX,y:n.pageY})}}function n(e){I.current.state.translation&&e.preventDefault()}function i(t){I.current.touchSupported||e(t.target,{x:t.pageX,y:t.pageY})}if(f){var r=C.current;if(!r.addEventListener)return;return r.addEventListener("touchstart",t,!1),r.addEventListener("touchmove",n,!1),r.addEventListener("mousedown",i,!1),function(){r.removeEventListener("touchstart",t,!1),r.removeEventListener("touchmove",n,!1),r.removeEventListener("mousedown",i,!1)}}}),[f]),l((function(){function e(e){E({type:"move",point:e,now:(new Date).getTime(),shouldStart:I.current.shouldStart})}function t(){E({type:"end"})}function n(t){var n=t.touches[0];I.current.state.translation&&t.preventDefault(),e({x:n.pageX,y:n.pageY})}function i(e){I.current.state.translation&&e.preventDefault(),t()}function r(t){t.preventDefault(),e({x:t.pageX,y:t.pageY})}function o(e){e.preventDefault(),t()}if(z)return I.current.touchSupported?(z.addEventListener("touchmove",n,!1),z.addEventListener("touchend",i,!1),z.addEventListener("touchcancel",i,!1),function(){z.removeEventListener("touchmove",n,!1),z.removeEventListener("touchend",i,!1),z.removeEventListener("touchcancel",i,!1)}):(s("mousemove",r,!1),s("mouseup",o,!1),function(){d("mousemove",r,!1),d("mouseup",o,!1)})}),[z]),l((function(){if(R.translation!==T)if(T){var e={target:z,translation:T,velocity:M,interval:O};R.translation?v(e):p(e)}else if(R.translation){var t={target:R.target,translation:R.translation,velocity:R.velocity,interval:R.interval};f?y(t):m(t)}})),t.useMemo((function(){f||E({type:"disable"})}),[f]);var k={};T&&Object.assign(k,u.create({touchAction:"none",pointerEvents:"none",userSelect:"none"})),w.style&&Object.assign(k,w.style),w.style=k;var L="function"==typeof g?g(b):g;return n.createElement("div",i({},w,{ref:C}),L)}function h(e,t){return e(t={exports:{}},t.exports),t.exports}f.defaultProps={enabled:!0,shouldStart:function(){return!0},onStart:function(){},onMove:function(){},onEnd:function(){},onCancel:function(){}};var p=h((function(e){(e.exports={}).forEach=function(e,t){for(var n=0;e.length>n;n++){var i=t(e[n]);if(i)return i}}})),v=h((function(e){var t=e.exports={};t.isIE=function(e){return(-1!==(t=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/"))&&(!e||e===function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0]);return e>4?e:void 0}());var t},t.isLegacyOpera=function(){return!!window.opera}})),y=h((function(e){(e.exports={}).getOption=function(e,t,n){var i=e[t];if(null==i&&void 0!==n)return n;return i}})),m=function(e){var t=(e=e||{}).reporter,n=y.getOption(e,"async",!0),i=y.getOption(e,"auto",!0);i&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var r,o=g(),a=!1;function l(){for(a=!0;o.size();){var e=o;o=g(),e.process()}a=!1}function c(){r=setTimeout(l,0)}return{add:function(e,t){!a&&i&&n&&0===o.size()&&c(),o.add(e,t)},force:function(e){a||(void 0===e&&(e=n),r&&(clearTimeout(r),r=null),e?c():l())}}};function g(){var e={},t=0,n=0,i=0;return{add:function(r,o){o||(o=r,r=0),r>n?n=r:i>r&&(i=r),e[r]||(e[r]=[]),e[r].push(o),t++},process:function(){for(var t=i;n>=t;t++)for(var r=e[t],o=0;r.length>o;o++){(0,r[o])()}},size:function(){return t}}}function w(e){return e._erd}var x={initState:function(e){return e._erd={},w(e)},getState:w,cleanState:function(e){delete e._erd}},b=p.forEach,E=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,i=e.stateHandler.getState,r=e.idHandler;if(!n)throw Error("Missing required dependency: batchProcessor");if(!t)throw Error("Missing required dependency: reporter.");var o=function(){var e=document.createElement("div");e.style.cssText="position: absolute; width: 1000px; height: 1000px; visibility: hidden; margin: 0; padding: 0;";var t=document.createElement("div");t.style.cssText="position: absolute; width: 500px; height: 500px; overflow: scroll; visibility: none; top: -1500px; left: -1500px; visibility: hidden; margin: 0; padding: 0;",t.appendChild(e),document.body.insertBefore(t,document.body.firstChild);var n=500-t.clientWidth,i=500-t.clientHeight;return document.body.removeChild(t),{width:n,height:i}}();function a(e,n,i){if(e.addEventListener)e.addEventListener(n,i);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,i)}}function l(e,n,i){if(e.removeEventListener)e.removeEventListener(n,i);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,i)}}function c(e){return i(e).container.childNodes[0].childNodes[0].childNodes[0]}function u(e){return i(e).container.childNodes[0].childNodes[0].childNodes[1]}return function(e,t){if(!document.getElementById(e)){var n=t+"_animation",i="/* Created by the element-resize-detector library. */\n";i+="."+t+" > div::-webkit-scrollbar { display: none; }\n\n",i+="."+(t+"_animation_active")+" { -webkit-animation-duration: 0.1s; animation-duration: 0.1s; -webkit-animation-name: "+n+"; animation-name: "+n+"; }\n",i+="@-webkit-keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(t,n){n=n||function(e){document.head.appendChild(e)};var i=document.createElement("style");i.innerHTML=t,i.id=e,n(i)}(i+="@keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}("erd_scroll_detection_scrollbar_style","erd_scroll_detection_container"),{makeDetectable:function(e,l,s){function d(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(r.get(l),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var i=0;n.length>i;i++)t.log(n[i])}}function f(e){var t=i(e).container.childNodes[0],n=window.getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function h(){var e=window.getComputedStyle(l),t={};return t.position=e.position,t.width=l.offsetWidth,t.height=l.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function p(){if(d("storeStyle invoked."),i(l)){var e=h();i(l).style=e}else d("Aborting because element has been uninstalled")}function v(e,t,n){i(e).lastWidth=t,i(e).lastHeight=n}function y(){return 2*o.width+1}function m(){return 2*o.height+1}function g(e){return e+10+y()}function w(e){return e+10+m()}function x(e,t,n){var i=c(e),r=u(e),o=g(t),a=w(n),l=function(e){return 2*e+y()}(t),s=function(e){return 2*e+m()}(n);i.scrollLeft=o,i.scrollTop=a,r.scrollLeft=l,r.scrollTop=s}function E(){var e=i(l).container;if(!e){(e=document.createElement("div")).className="erd_scroll_detection_container",e.style.cssText="visibility: hidden; display: inline; width: 0px; height: 0px; z-index: -1; overflow: hidden; margin: 0; padding: 0;",i(l).container=e,function(e){e.className+=" erd_scroll_detection_container_animation_active"}(e),l.appendChild(e);var t=function(){i(l).onRendered&&i(l).onRendered()};a(e,"animationstart",t),i(l).onAnimationStart=t}return e}function S(){if(d("Injecting elements"),i(l)){!function(){var e=i(l).style;if("static"===e.position){l.style.position="relative";var n=function(e,t,n,i){var r=n[i];"auto"!==r&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(r)&&(e.warn("An element that is positioned static has style."+i+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",t),t.style[i]=0)};n(t,l,e,"top"),n(t,l,e,"right"),n(t,l,e,"bottom"),n(t,l,e,"left")}}();var e=i(l).container;e||(e=E());var n,r,c,u,s=o.width,f=o.height,h="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; "+("left: "+(n=(n=-(1+s))?n+"px":"0")+"; top: "+(r=(r=-(1+f))?r+"px":"0")+"; right: "+(u=(u=-s)?u+"px":"0")+"; bottom: "+(c=(c=-f)?c+"px":"0")+";"),p=document.createElement("div"),v=document.createElement("div"),y=document.createElement("div"),m=document.createElement("div"),g=document.createElement("div"),w=document.createElement("div");p.dir="ltr",p.style.cssText="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; width: 100%; height: 100%; left: 0px; top: 0px;",p.className="erd_scroll_detection_container",v.className="erd_scroll_detection_container",v.style.cssText=h,y.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",m.style.cssText="position: absolute; left: 0; top: 0;",g.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",w.style.cssText="position: absolute; width: 200%; height: 200%;",y.appendChild(m),g.appendChild(w),v.appendChild(y),v.appendChild(g),p.appendChild(v),e.appendChild(p),a(y,"scroll",x),a(g,"scroll",b),i(l).onExpandScroll=x,i(l).onShrinkScroll=b}else d("Aborting because element has been uninstalled");function x(){i(l).onExpand&&i(l).onExpand()}function b(){i(l).onShrink&&i(l).onShrink()}}function C(){function o(e,t,n){var i=function(e){return c(e).childNodes[0]}(e),r=g(t),o=w(n);i.style.width=r+"px",i.style.height=o+"px"}function a(a){var c=l.offsetWidth,u=l.offsetHeight;d("Storing current size",c,u),v(l,c,u),n.add(0,(function(){if(i(l))if(s()){if(e.debug)l.offsetWidth===c&&l.offsetHeight===u||t.warn(r.get(l),"Scroll: Size changed before updating detector elements.");o(l,c,u)}else d("Aborting because element container has not been initialized");else d("Aborting because element has been uninstalled")})),n.add(1,(function(){i(l)?s()?x(l,c,u):d("Aborting because element container has not been initialized"):d("Aborting because element has been uninstalled")})),a&&n.add(2,(function(){i(l)?s()?a():d("Aborting because element container has not been initialized"):d("Aborting because element has been uninstalled")}))}function s(){return!!i(l).container}function h(){d("notifyListenersIfNeeded invoked");var e=i(l);return void 0===i(l).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?d("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?d("Not notifying: Size already notified"):(d("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void b(i(l).listeners,(function(e){e(l)})))}function p(){if(d("Scroll detected."),f(l))d("Scroll event fired while unrendered. Ignoring...");else{var e=l.offsetWidth,t=l.offsetHeight;e!==i(l).lastWidth||t!==i(l).lastHeight?(d("Element size changed."),a(h)):d("Element size has not changed ("+e+"x"+t+").")}}if(d("registerListenersAndPositionElements invoked."),i(l)){i(l).onRendered=function(){if(d("startanimation triggered."),f(l))d("Ignoring since element is still unrendered...");else{d("Element rendered.");var e=c(l),t=u(l);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(d("Scrollbars out of sync. Updating detector elements..."),a(h))}},i(l).onExpand=p,i(l).onShrink=p;var y=i(l).style;o(l,y.width,y.height)}else d("Aborting because element has been uninstalled")}function I(){if(d("finalizeDomMutation invoked."),i(l)){var e=i(l).style;v(l,e.width,e.height),x(l,e.width,e.height)}else d("Aborting because element has been uninstalled")}function z(){s(l)}function T(){var e;d("Installing..."),i(l).listeners=[],e=h(),i(l).startSize={width:e.width,height:e.height},d("Element start size",i(l).startSize),n.add(0,p),n.add(1,S),n.add(2,C),n.add(3,I),n.add(4,z)}s||(s=l,l=e,e=null),e=e||{},d("Making detectable..."),!function(e){return!function(e){return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)}(e)||null===window.getComputedStyle(e)}(l)?T():(d("Element is detached"),E(),d("Waiting until element is attached..."),i(l).onRendered=function(){d("Element is now attached"),T()})},addListener:function(e,t){if(!i(e).listeners.push)throw Error("Cannot add listener to an element that is not detectable.");i(e).listeners.push(t)},uninstall:function(e){var t=i(e);t&&(t.onExpandScroll&&l(c(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&l(u(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&l(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))}}},S=p.forEach;function C(e){return Array.isArray(e)||void 0!==e.length}function I(e){if(Array.isArray(e))return e;var t=[];return S(e,(function(e){t.push(e)})),t}function z(e){return e&&1===e.nodeType}function T(e,t,n){var i=e[t];return null==i&&void 0!==n?n:i}var M=null;"undefined"!=typeof window&&(M=function(e){var t,n;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var i=function(e){var t=e.idGenerator,n=e.stateHandler.getState;return{get:function(e){var t=n(e);return t&&void 0!==t.id?t.id:null},set:function(e){var i=n(e);if(!i)throw Error("setId required the element to have a resize detection state.");var r=t.generate();return i.id=r,r}}}({idGenerator:(n=1,{generate:function(){return n++}}),stateHandler:x});t=i}var r=e.reporter;r||(r=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var i=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;arguments.length>n;n++)e(arguments[n])}};i(n,"log"),i(n,"warn"),i(n,"error")}return n}(!1===r));var o=T(e,"batchProcessor",m({reporter:r})),a={};a.callOnAdd=!!T(e,"callOnAdd",!0),a.debug=!!T(e,"debug",!1);var l,c=function(e){var t={};function n(n){var i=e.get(n);return void 0===i?[]:t[i]||[]}return{get:n,add:function(n,i){var r=e.get(n);t[r]||(t[r]=[]),t[r].push(i)},removeListener:function(e,t){for(var i=n(e),r=0,o=i.length;o>r;++r)if(i[r]===t){i.splice(r,1);break}},removeAllListeners:function(e){var t=n(e);t&&(t.length=0)}}}(t),u=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var n=t(e);return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}({stateHandler:x}),s=T(e,"strategy","object"),d={reporter:r,batchProcessor:o,stateHandler:x,idHandler:t};if("scroll"===s&&(v.isLegacyOpera()?(r.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),s="object"):v.isIE(9)&&(r.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),s="object")),"scroll"===s)l=E(d);else{if("object"!==s)throw Error("Invalid strategy name: "+s);l=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,i=e.stateHandler.getState;if(!t)throw Error("Missing required dependency: reporter.");function r(e){return i(e).object}return{makeDetectable:function(e,r,o){o||(o=r,r=e,e=null),e=e||{},v.isIE(8)?o(r):function(e,r){var o=!1,a=window.getComputedStyle(e),l=e.offsetWidth,c=e.offsetHeight;function u(){function n(){if("static"===a.position){e.style.position="relative";var n=function(e,t,n,i){var r=n[i];"auto"!==r&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(r)&&(e.warn("An element that is positioned static has style."+i+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",t),t.style[i]=0)};n(t,e,a,"top"),n(t,e,a,"right"),n(t,e,a,"bottom"),n(t,e,a,"left")}}""!==a.position&&(n(),o=!0);var l=document.createElement("object");l.style.cssText="display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; padding: 0; margin: 0; opacity: 0; z-index: -1000; pointer-events: none;",l.tabIndex=-1,l.type="text/html",l.setAttribute("aria-hidden","true"),l.onload=function(){o||n(),function e(t,n){t.contentDocument?n(t.contentDocument):setTimeout((function(){e(t,n)}),100)}(this,(function(t){r(e)}))},v.isIE()||(l.data="about:blank"),e.appendChild(l),i(e).object=l,v.isIE()&&(l.data="about:blank")}i(e).startSize={width:l,height:c},n?n.add(u):u()}(r,o)},addListener:function(e,t){if(!r(e))throw Error("Element is not detectable by this strategy.");function n(){t(e)}v.isIE(8)?(i(e).object={proxy:n},e.attachEvent("onresize",n)):r(e).contentDocument.defaultView.addEventListener("resize",n)},uninstall:function(e){v.isIE(8)?e.detachEvent("onresize",i(e).object.proxy):e.removeChild(r(e)),delete i(e).object}}}(d)}var f={};return{listenTo:function(e,n,i){function o(e){var t=c.get(e);S(t,(function(t){t(e)}))}function s(e,t,n){c.add(t,n),e&&n(t)}if(i||(i=n,n=e,e={}),!n)throw Error("At least one element required.");if(!i)throw Error("Listener required.");if(z(n))n=[n];else{if(!C(n))return r.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=I(n)}var d=0,h=T(e,"callOnAdd",a.callOnAdd),p=T(e,"onReady",(function(){})),v=T(e,"debug",a.debug);S(n,(function(e){x.getState(e)||(x.initState(e),t.set(e));var a=t.get(e);if(v&&r.log("Attaching listener to element",a,e),!u.isDetectable(e))return v&&r.log(a,"Not detectable."),u.isBusy(e)?(v&&r.log(a,"System busy making it detectable"),s(h,e,i),f[a]=f[a]||[],void f[a].push((function(){++d===n.length&&p()}))):(v&&r.log(a,"Making detectable..."),u.markBusy(e,!0),l.makeDetectable({debug:v},e,(function(e){if(v&&r.log(a,"onElementDetectable"),x.getState(e)){u.markAsDetectable(e),u.markBusy(e,!1),l.addListener(e,o),s(h,e,i);var t=x.getState(e);if(t&&t.startSize)t.startSize.width===e.offsetWidth&&t.startSize.height===e.offsetHeight||o(e);f[a]&&S(f[a],(function(e){e()}))}else v&&r.log(a,"Element uninstalled before being detectable.");delete f[a],++d===n.length&&p()})));v&&r.log(a,"Already detecable, adding listener."),s(h,e,i),d++})),d===n.length&&p()},removeListener:c.removeListener,removeAllListeners:c.removeAllListeners,uninstall:function(e){if(!e)return r.error("At least one element is required.");if(z(e))e=[e];else{if(!C(e))return r.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=I(e)}S(e,(function(e){c.removeAllListeners(e),l.uninstall(e),x.cleanState(e)}))}}}({strategy:"scroll"}));var O=M;function R(e){var t=0,n=0;if("undefined"!=typeof window&&(t=e.offsetWidth,n=e.offsetHeight,window.getComputedStyle)){var i=window.getComputedStyle(e)||{};i.paddingLeft&&(t-=parseInt(i.paddingLeft,10)),i.paddingRight&&(t-=parseInt(i.paddingRight,10)),i.borderLeftWidth&&(t-=parseInt(i.borderLeftWidth,10)),i.borderRightWidth&&(t-=parseInt(i.borderRightWidth,10)),i.paddingTop&&(n-=parseInt(i.paddingTop,10)),i.paddingBottom&&(n-=parseInt(i.paddingBottom,10)),i.borderTopWidth&&(n-=parseInt(i.borderTopWidth,10)),i.borderBottomWidth&&(n-=parseInt(i.borderBottomWidth,10))}return{width:t,height:n}}function k(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)}function L(e){return!isNaN(parseFloat(e))&&isFinite(e)}function P(e){var o=e.width,a=e.height,u=e.onResize,s=e.children,d=r(e,["width","height","onResize","children"]),f=t.useState(null),h=f[0],p=f[1],v=c(h),y=t.useRef(null),m=v.current,g=t.useCallback((function(){var e=R(y.current);p((function(t){return k(t,e)?t:e}))}),[]);l((function(){m!==h&&h&&u(h),h||g()})),l((function(){if((!L(o)||!L(a))&&O){var e=y.current;return O.listenTo(e,(function(){return g()})),function(){return O.uninstall(e)}}}),[o,a]),t.useMemo((function(){var e=null;L(o)&&L(a)&&(e={width:o,height:a}),p((function(t){return k(t,e)?t:e}))}),[o,a]);var w=null;h&&(w="function"==typeof s?s(h):s);var x={width:L(o)?o:"100%",height:L(a)?a:"100%"};return d.style&&Object.assign(x,d.style),d.style=x,n.createElement("div",i({},d,{ref:y}),w)}P.defaultProps={width:null,height:null,onResize:function(){}};var H=function(){},A=function(){};if("undefined"!=typeof window){H=window.requestAnimationFrame,A=window.cancelAnimationFrame;for(var W=["ms","moz","webkit","o"],D=0,j=0;4>j&&!H;++j)H=window[W[j]+"RequestAnimationFrame"],A=window[W[j]+"CancelAnimationFrame"]||window[W[j]+"CancelRequestAnimationFrame"];H||(H=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-D)),i=window.setTimeout((function(){e(t+n)}),n);return D=t+n,i},A=function(e){clearTimeout(e)})}function _(e,t){var n=t.x,i=t.y,r=Math.sqrt(n*n+i*i);return 0===r?{x:0,y:0}:{x:e*(n/r),y:e*(i/r)}}function N(e,t,n,i){if(i){var r="y"===i?["y","height"]:["x","width"],o=r[0];if(!e[o])return 0;var a=0>e[o]?-1:1;return a*Math.min(a*e[o],Math.sqrt(2*(.5*t[r[1]])*a*n[o]))}"object"!=typeof n&&(n=_(n,e));var l={x:N(e,t,n,"x"),y:N(e,t,n,"y")};return l.x===e.x&&l.y===e.y?e:l}function B(e,t,n,i,r,o){if(o){var a="y"===o?["y","height"]:["x","width"],l=a[0],c=a[1],u=t[c],s=Math.min(u-n[c],0),d=e[l];return i&&u>0&&(s=u*Math.ceil(s/u)),d>0?d=0:s>d?d=s:!r&&i&&u>0&&(d=u*Math.round(d/u)),d}var f={x:B(e,t,n,i,r,"x"),y:B(e,t,n,i,r,"y")};return f.x===e.x&&f.y===e.y?e:f}function V(e,t,n,i,r,o){if(o){var a="y"===o?["y","height"]:["x","width"],l=a[0],c=a[1],u=e[l];if(i&&n[c]>0){var s=u/n[c];u=n[c]*(s=t[l]>.5?Math.ceil(s):-.5>t[l]?Math.floor(s):Math.round(s))}else r[l]&&(u+=.5*t[l]*(t[l]/r[l]));return u}return"object"!=typeof r&&(r=_(r,t)),{x:V(e,t,n,i,r,"x"),y:V(e,t,n,i,r,"y")}}function q(e,t,n,i){var r=(new Date).getTime(),o=0;if(!t)return{endOffset:e,rate:t,duration:o,startTime:r};var a,l={x:e.x-n.x,y:e.y-n.y},c=Math.sqrt(Math.pow(l.x,2)+Math.pow(l.y,2));if(c){var u=Math.sqrt(.5*Math.pow(a=(i.x*l.x+i.y*l.y)/c,2)+t*c),s=(u-a)/t;0>s&&(u=a,s=0),o=s+u/t}else a=Math.sqrt(Math.pow(i.x,2)+Math.pow(i.y,2)),o=(Math.sqrt(2)+1)*a/t;return{endOffset:e,rate:t,duration:o,startTime:r,points:{x:[n.x,n.x+i.x*(o/3),e.x,e.x],y:[n.y,n.y+i.y*(o/3),e.y,e.y]}}}var F={size:{width:0,height:0},contentSize:{width:0,height:0},contentOffset:{x:0,y:0},contentVelocity:{x:0,y:0},drag:null,deceleration:null,options:[!1,!1,!0,!0],pannable:o};function X(e,t){return function(e,t){var n=e.size,r=e.contentSize,o=e.contentOffset,a=e.contentVelocity,l=e.drag,c=e.deceleration,u=e.options,s=u[0],d=u[2],f=u[3];if(c){var h=c.endOffset;if(h!==B(h,n,r,s,!0)&&o!==B(o,n,r,s,!0)){var p=a;return d||(p.x=0),f||(p.y=0),.025!==c.rate&&(p=N(p,n,.025),h=V(o,p,n,s,.025)),h=B(h,n,r,s,!0),i({},e,{contentVelocity:p,drag:null,deceleration:q(h,.025,o,p)})}}else if(!l){var v=B(o,n,r,s);if(o!==v){var y=V(v,{x:0,y:0},n,s,.025);return i({},e,{drag:null,deceleration:q(y,.025,o,a)})}}return e}(function(e,t){switch(t.type){case"setPannable":return function(e,t){return i({},e,{pannable:t.value})}(e,t);case"setOptions":return function(e,t){return i({},e,{options:t.value})}(e,t);case"setSize":return function(e,t){return i({},e,{size:t.value})}(e,t);case"setContentSize":return function(e,t){return i({},e,{contentSize:t.value})}(e,t);case"dragStart":return function(e,t){var n=e.contentOffset,r=e.pannable.velocity,o={x:1,y:1};e.options[1]&&(Math.abs(r.x)>Math.abs(r.y)?o.y=0:o.x=0);return i({},e,{contentVelocity:{x:o.x*r.x,y:o.y*r.y},drag:{direction:o,startOffset:n},deceleration:null})}(e);case"dragMove":return function(e,t){var n=e.contentOffset,r=e.drag,o=e.options,a=e.pannable,l=a.translation,c=a.interval,u=function e(t,n,i,r,o){if(o){var a="y"===o?["y","height","width"]:["x","width","height"],l=a[0],c=a[1],u=a[2],s=t[l],d=Math.min(i[c]-r[c],0),f=.5*Math.min(i[c],i[u]);return s>0?n[l]?f*(1-f/(f+s)):0:d>s?n[l]?d-f*(1-f/(f-s+d)):d:s}var h={x:e(t,n,i,r,"x"),y:e(t,n,i,r,"y")};return h.x===t.x&&h.y===t.y?t:h}({x:r.startOffset.x+r.direction.x*l.x,y:r.startOffset.y+r.direction.y*l.y},{x:o[2],y:o[3]},e.size,e.contentSize);return i({},e,{contentOffset:u,contentVelocity:{x:(u.x-n.x)/c,y:(u.y-n.y)/c}})}(e);case"dragEnd":return function(e,t){var n=e.size,r=e.contentOffset,o=e.options[0],a=.0025,l=e.contentVelocity;o&&(l=N(l,n,a=.025));var c=V(r,l,n,o,a);return i({},e,{contentVelocity:l,drag:null,deceleration:q(c,a,r,l)})}(e);case"dragCancel":return function(e,t){var n=e.contentOffset,r=e.contentVelocity,o=V(e.drag.startOffset,{x:0,y:0},e.size,e.options[0],.025);return i({},e,{drag:null,deceleration:q(o,.025,n,r)})}(e);case"decelerate":return function(e,t){var n=e.deceleration,r=t.now;if(!n)return e;var o=function e(t,n,r){var o=t.duration,a=t.endOffset,l=1;if(o>0&&(l=(n-t.startTime)/o),r){var c,u=("y"===r?["y"]:["x"])[0],s=t.points[u],d=s[0],f=s[1],h=s[2],p=s[3],v=d-3*(d-f)*l+3*(d-2*f+h)*Math.pow(l,2)-(d-3*f+3*h-p)*Math.pow(l,3),y=(-3*(d-f)+6*(d-2*f+h)*l-3*(d-3*f+3*h-p)*Math.pow(l,2))/o;return(c={})[u+"Offset"]=v,c[u+"Velocity"]=y,c}if(0>l||l>=1)return{offset:a,velocity:{x:0,y:0},didEnd:!0};var m=i({},e(t,n,"x"),{},e(t,n,"y"));return{offset:{x:m.xOffset,y:m.yOffset},velocity:{x:m.xVelocity,y:m.yVelocity},didEnd:!1}}(n,r);return i({},e,{contentOffset:o.offset,contentVelocity:o.velocity,drag:null,deceleration:o.didEnd?null:n})}(e,t);case"scrollTo":return Y(e,t);case"scrollToRect":return function(e,t){var n=t.animated,i=function e(t,n,i,r,o){if(o){var a="y"===o?["y","height"]:["x","width"],l=a[0],c=a[1],u=-t[l],s=r[c]-t[c];if("auto"===n[l]){var d=0>s?-1:1;u+=d*Math.max(0,Math.min(d*(i[l]-u),d*s))}else"start"===n[l]?n[l]=0:"center"===n[l]?n[l]=.5:"end"===n[l]&&(n[l]=1),("number"!=typeof n[l]||isNaN(n[l]))&&(n[l]=.5),u+=n[l]*s;return u}"object"!=typeof n&&(n={x:n,y:n});return{x:e(t,n,i,r,"x"),y:e(t,n,i,r,"y")}}(t.rect,t.align,e.contentOffset,e.size);return Y(e,{type:"scrollTo",offset:i,animated:n})}(e,t);default:return e}}(e,t))}function Y(e,t){var n=e.contentOffset,r=e.contentVelocity,o=t.point,a=e.drag,l=e.deceleration,c=t.offset,u=void 0===c?{x:0,y:0}:c,s=t.animated;return o&&(u={x:-o.x,y:-o.y}),u.x===n.x&&u.y===n.y?e:(a&&(s=!1),s?i({},e,{deceleration:q(V(u,{x:0,y:0},e.size,e.options[0],.025),.025,n,r)}):(a?a=i({},a,{startOffset:{x:a.startOffset.x+u.x-n.x,y:a.startOffset.y+u.y-n.y}}):l=l?q({x:l.endOffset.x+u.x-n.x,y:l.endOffset.y+u.y-n.y},l.rate,u,r):q(u),i({},e,{contentOffset:u,drag:a,deceleration:l})))}var G=n.createContext({visibleRect:null,resizeContent:function(){}});function U(e){var o=e.width,a=e.height,u=e.children,s=r(e,["width","height","children"]),d=t.useState(null),f=d[0],h=d[1],p=c(f),v=t.useContext(G),y=t.useRef(null),m=p.current,g=t.useCallback((function(){}),[]),w=t.useCallback((function(){return y.current}),[]),x=t.useCallback((function(){var e=R(y.current);h((function(t){return k(t,e)?t:e}))}),[]);l((function(){m!==f&&f&&v.resizeContent(f),f||x()})),t.useMemo((function(){var e=null;L(o)&&L(a)&&(e={width:o,height:a}),h((function(t){return k(t,e)?t:e}))}),[o,a]);var b="function"==typeof u?u(f,{getResizeNode:w,calculateSize:x}):u,E={position:"relative"},S={position:"absolute"};return L(o)&&(S.width=o),L(a)&&(S.height=a),b=n.createElement("div",{ref:y,style:S},b),f?(E.width=f.width,E.height=f.height):b=n.createElement("div",{style:{position:"absolute"}},b),s.style&&Object.assign(E,s.style),s.style=E,n.createElement(G.Provider,{value:i({},v,{resizeContent:g})},n.createElement("div",s,b))}U.defaultProps={width:null,height:null},U.PadContent=!0;var J=i({},U.defaultProps);function K(e){var i=e.width,r=e.height,o=e.children,a=t.useState(null),l=a[0],c=a[1],u=t.useRef({});return t.useEffect((function(){if(!L(i)||!L(r)){var e=u.current,t=e.calculateSize;if(l){var n=(0,e.getResizeNode)();return O.listenTo(n,(function(){t()})),function(){O.uninstall(n)}}}}),[i,r,l]),n.createElement(U,e,(function(e,t){return u.current=t,l!==e&&c(e),"function"==typeof o?o(e,t):o}))}K.defaultProps=J,K.PadContent=!0;var Q=i({width:0,height:0,pagingEnabled:!1,directionalLockEnabled:!1,alwaysBounceX:!0,alwaysBounceY:!0,onScroll:function(){},onDragStart:function(){},onDragEnd:function(){},onDecelerationStart:function(){},onDecelerationEnd:function(){},onContentResize:function(){},renderBackground:function(){return null},renderOverlay:function(){return null},scrollTo:null,scrollToRect:null},f.defaultProps);function Z(e){var o=e.width,a=e.height,s=e.pagingEnabled,d=e.directionalLockEnabled,h=e.alwaysBounceX,p=e.alwaysBounceY,v=e.onScroll,y=e.onDragStart,m=e.onDragEnd,g=e.onDecelerationStart,w=e.onDecelerationEnd,x=e.onContentResize,b=e.renderBackground,E=e.renderOverlay,S=e.scrollTo,C=e.scrollToRect,I=e.children,z=r(e,["width","height","pagingEnabled","directionalLockEnabled","alwaysBounceX","alwaysBounceY","onScroll","onDragStart","onDragEnd","onDecelerationStart","onDecelerationEnd","onContentResize","renderBackground","renderOverlay","scrollTo","scrollToRect","children"]),T=z.enabled,M=z.shouldStart,O=t.useReducer(X,F),R=O[0],L=O[1],P=c(R),W=R.size,D=R.contentSize,j=R.contentOffset,_=R.drag,N=R.deceleration,B=R.pannable,V={size:W,contentSize:D,contentOffset:j,contentVelocity:R.contentVelocity,dragging:!!_,decelerating:!!N},q=P.current,Y=t.useCallback((function(e){k(D,e)||L({type:"setContentSize",value:e})}),[D]),U=t.useCallback((function(e){return!(d&&!function(e,t,n){var i=Math.abs(e.x)>Math.abs(e.y)?"width":"height";return n[i]>t[i]}(e.velocity,W,D))&&M(e)}),[M,d,W,D]);l((function(){q.pannable.translation!==B.translation&&(B.translation?L(q.pannable.translation?{type:"dragMove"}:{type:"dragStart"}):q.pannable.translation&&L(T?{type:"dragEnd"}:{type:"dragCancel"})),q.contentSize!==D&&x(D),q.contentOffset!==j&&v(V),q.drag!==_&&(q.drag?_||m(V):y(V)),q.deceleration!==N&&(q.deceleration?N||w(V):g(V))})),l((function(){if(R.deceleration){var e=H((function(){L({type:"decelerate",now:(new Date).getTime()})}));return function(){A(e)}}}),[R]),t.useMemo((function(){L({type:"setSize",value:{width:o,height:a}})}),[o,a]),t.useMemo((function(){L({type:"setOptions",value:[s,d,h,p]})}),[s,d,h,p]),t.useMemo((function(){S&&L(i({type:"scrollTo"},S))}),[S]),t.useMemo((function(){C&&L(i({type:"scrollToRect"},C))}),[C]),z.shouldStart=U;var J={overflow:"hidden",position:"relative",width:W.width,height:W.height};return z.style&&Object.assign(J,z.style),z.style=J,n.createElement(f,z,(function(e){var i;return B!==e&&L({type:"setPannable",value:e}),n.createElement(G.Provider,{value:{visibleRect:{x:-j.x,y:-j.y,width:W.width,height:W.height},resizeContent:Y}},null==(i=b(V))?null:n.createElement("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0}},i),function(){var e=u.create({position:"absolute",width:D.width,height:D.height,transformTranslate:j,willChange:"transform"}),i="function"==typeof I?I(R):I;return t.isValidElement(i)&&i.type.PadContent?(i.props.style&&Object.assign(e,i.props.style),i=t.cloneElement(i,{style:e,ref:i.ref})):i=n.createElement(K,{style:e},i),i}(),E(V))}))}function $(e,t,n){if(!t)return t;if(n){var r,o="y"===n?["y","height"]:["x","width"],a=o[0],l=o[1];return(r={})[a]=t[a]-e[a],r[l]=t[l],r}return i({},$(e,t,"x"),{},$(e,t,"y"))}function ee(e,t,n){if(!t)return!0;if(n){var i="y"===n?["y","height"]:["x","width"],r=i[0],o=i[1];return e[r]+e[o]>=t[r]-.25*t[o]&&t[r]+1.25*t[o]>=e[r]}return ee(e,t,"x")&&ee(e,t,"y")}function te(){}Z.defaultProps=Q;function ne(e){var o=e.width,a=e.height,u=e.direction,s=e.rowSpacing,d=e.columnSpacing,f=e.itemWidth,h=e.itemHeight,p=e.itemCount,v=e.renderItem,y=e.children,m=r(e,["width","height","direction","rowSpacing","columnSpacing","itemWidth","itemHeight","itemCount","renderItem","children"]),g=t.useMemo((function(){return function(e){var t,n,i=e.itemCount,r={width:e.itemWidth,height:e.itemHeight},o={row:e.rowSpacing,column:e.columnSpacing},a="x"===e.direction?["y","x","height","width","column","row"]:["x","y","width","height","row","column"],l=a[0],c=a[1],u=a[2],s=a[3],d=a[4],f=a[5],h={width:e.width,height:e.height}[u],p=0,v=0,y=0,m=[];"number"!=typeof h?(y=i,0===r[u]?h=0:(h=i*r[u],i>1&&(h+=(i-1)*o[f]))):0===r[u]?y=i:(y=1,h>r[u]&&(y+=Math.floor((h-r[u])/(r[u]+o[f]))));y>0&&(v=Math.ceil(i/y));for(var g=0;v>g;g++){g>0&&(p+=o[d]);for(var w=0;y>w;w++){var x,b,E=w+g*y,S=0;if(y>1&&(S+=Math.round(w*((h-r[u])/(y-1)))),E>=i)break;m.push(((b={rect:(x={},x[l]=S,x[c]=p,x[u]=r[u],x[s]=r[s],x)})[d+"Index"]=g,b[f+"Index"]=w,b.itemIndex=E,b))}p+=r[s]}return{size:(t={},t[u]=h,t[s]=p,t),count:(n={},n[d]=v,n[f]=y,n),layoutList:m}}({direction:u,width:o,height:a,rowSpacing:s,columnSpacing:d,itemCount:p,itemWidth:f,itemHeight:h})}),[u,o,a,s,d,p,f,h]),w=c(g),x=t.useContext(G),b=g.size,E=g.layoutList,S=w.current,C=t.useCallback((function(){}),[]);l((function(){x.resizeContent(b)}),[]),l((function(){k(S.size,b)||x.resizeContent(b)}));var I={position:"relative"};b&&(I.width=b.width,I.height=b.height),m.style&&Object.assign(I,m.style),m.style=I;var z=E.map((function(e){return function(e){var r=e.rect,o=e.itemIndex,a=e.visibleRect,l=e.needsRender,c=e.Item,u=!1,s=v(e),d="GridContent_"+o,f={position:"absolute",left:r.x,top:r.y,width:r.width,height:r.height};return t.isValidElement(s)&&s.type===c&&(void 0!==s.props.forceRender&&(u=s.props.forceRender),s.key&&(d=s.key),s=s.props.children),l||u?(t.isValidElement(s)?(s.props.style&&Object.assign(f,s.props.style),s=t.cloneElement(s,{style:f,ref:s.ref})):s=n.createElement("div",{style:f},s),n.createElement(G.Provider,{key:d,value:i({},x,{visibleRect:a,resizeContent:C})},s)):null}(i({},e,{visibleRect:$(e.rect,x.visibleRect),needsRender:ee(e.rect,x.visibleRect),Item:te}))}));return"function"==typeof y&&y(g),n.createElement("div",m,z)}function ie(){}ne.defaultProps={width:null,height:null,direction:"y",rowSpacing:0,columnSpacing:0,itemWidth:0,itemHeight:0,itemCount:0,renderItem:function(){return null}},ne.PadContent=!0;function re(e){var o=e.width,a=e.height,u=e.direction,s=e.spacing,d=e.estimatedItemWidth,f=e.estimatedItemHeight,h=e.itemCount,p=e.renderItem,v=e.children,y=r(e,["width","height","direction","spacing","estimatedItemWidth","estimatedItemHeight","itemCount","renderItem","children"]),m=t.useContext(G),g=t.useState([]),w=g[0],x=g[1],b=t.useState({}),E=b[0],S=b[1],C=t.useMemo((function(){return function(e,t,n){var i,r=e.direction,o=e.spacing,a=e.itemCount,l=e.estimatedItemWidth,c=e.estimatedItemHeight,u={width:e.width,height:e.height},s="x"===r?["y","x","height","width"]:["x","y","width","height"],d=s[0],f=s[1],h=s[2],p=s[3],v=0,y=0,m=[],g={},w=[r,u[h]].join();L(u[h])&&(g[h]=u[h]);for(var x=0;a>x;x++){var b,E=t[x]||null,S=n[E]||null,C=((b={})[d]=0,b[f]=y,b);S?Object.assign(C,S):(C[h]=void 0!==g[h]?g[h]:"function"==typeof l?l(x):l,C[p]="function"==typeof c?c(x):c),m.push({rect:C,itemIndex:x,itemHash:E,itemSize:S}),C[p]>0&&(y+=C[p],a-1>x&&(y+=o)),C[h]>v&&(v=C[h])}return{size:(i={},i[h]=v,i[p]=y,i),fixed:g,layoutList:m,type:w}}({width:o,height:a,direction:u,spacing:s,itemCount:h,estimatedItemWidth:d,estimatedItemHeight:f},w,E)}),[o,a,u,s,h,d,f,w,E]),I=c(C).current,z=[];l((function(){m.resizeContent(C.size)}),[]),l((function(){k(I.size,C.size)||m.resizeContent(C.size),I.type!==C.type&&S({})}));var T={position:"relative"};C.size&&(T.width=C.size.width,T.height=C.size.height),y.style&&Object.assign(T,y.style),y.style=T;var M=C.layoutList.map((function(e){return function(e){var r,o=e.rect,a=e.itemIndex,l=e.itemSize,c=e.visibleRect,u=e.needsRender,s=e.Item,d=!1,f=p(e),h="ListContent_"+a,v={position:"absolute",left:o.x,top:o.y,width:o.width,height:o.height};t.isValidElement(f)&&f.type===s&&(void 0!==f.props.forceRender&&(d=f.props.forceRender),f.key&&(h=f.key),void 0!==f.props.hash&&(r=f.props.hash),f=f.props.children),void 0===r&&(r=h);var y=!u&&!d;if(l||-1===z.indexOf(r)||(y=!0),z[a]=r,y)return null;var g,w={};return L(C.fixed.width)&&(w.width=C.fixed.width),L(C.fixed.height)&&(w.height=C.fixed.height),t.isValidElement(f)&&f.type.PadContent?(f.props.style&&Object.assign(v,f.props.style),L(f.props.width)&&(w.width=f.props.width),L(f.props.height)&&(w.height=f.props.height),f=t.cloneElement(f,i({},w,{style:v,ref:f.ref}))):(l&&Object.assign(w,l),f=n.createElement(U,i({},w,{style:v}),f)),n.createElement(G.Provider,{key:h,value:i({},m,{visibleRect:c,resizeContent:(g=r,function(e){S((function(t){var n;return k(t[g],e)?t:i({},t,((n={})[g]=e,n))}))})})},f)}(i({},e,{visibleRect:$(e.rect,m.visibleRect),needsRender:ee(e.rect,m.visibleRect),Item:ie}))}));return function(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var n=0;e.length>n;n++)if(e[n]!==t[n])return!1;return!0}(w,z)||x(z),"function"==typeof v&&v(C),n.createElement("div",y,M)}re.defaultProps={width:null,height:null,direction:"y",spacing:0,estimatedItemWidth:0,estimatedItemHeight:0,itemCount:0,renderItem:function(){return null}},re.PadContent=!0;var oe={mouseEntered:!1,loopCount:1,loopOffset:0,loopWidth:0,scrollTo:null,options:["x",!0],pad:F};function ae(e,t){switch(t.type){case"setMouseEntered":return function(e,t){return i({},e,{mouseEntered:t.value})}(e,t);case"setPad":return function(e,t){var n=i({},e,{pad:t.value});return n=le(n=function(e,t){var n,r=e.loopCount,o=e.loopOffset,a=e.options,l=a[0],c=e.pad,u=c.contentOffset,s=c.size,d=c.contentSize;if(a[1]){var f=function(e,t,n,i,r){var o;if(1===i)return[e,0];var a="y"===r?["height","y","x"]:["width","x","y"],l=a[0],c=a[1],u=a[2],s=n[l],d=t[l],f=s/i,h=.5*(s-f-d),p=0,v=d-s,y=e[c],m=0;if(p-=h,y>=(v+=h)&&p>=y)return[e,0];v>y?m=Math.floor((p-y)/f):y>p&&(m=-Math.floor((y-v)/f));return[(o={},o[c]=y+=f*m,o[u]=e[u],o),m]}(u,s,d,r,l),h=f[0],p=f[1];u!==h&&((n=n||i({},e)).loopOffset=o+p,n.scrollTo={offset:h,animated:!1})}return n||e}(n))}(e,t);case"setOptions":return function(e,t){var n=i({},e,{options:t.value});return n=le(n)}(e,t);case"setScrollTo":return function(e,t){return i({},e,{scrollTo:t.value})}(e,t);case"playNext":return function(e,t){var n=e.pad,r=function(e,t,n,i,r){var o,a="y"===r?["height","y","x"]:["width","x","y"],l=a[0],c=a[1],u=a[2],s=t[l],d=Math.min(s-n[l],0),f=e[c];i&&s>0&&(d=s*Math.ceil(d/s));f=f>d?Math.max(d,f-s):0;return(o={})[c]=f,o[u]=e[u],o}(n.contentOffset,n.size,n.contentSize,n.pagingEnabled,e.options[0]);return i({},e,{scrollTo:{offset:r,animated:!0}})}(e);default:return e}}function le(e,t){var n=e.options,r=e.pad;return i({},e,{},function(e,t,n,i,r){var o="y"===r?"height":"width",a=e[o],l=t[o],c=l/n;if(!i||0===l||0===a)return{loopCount:1,loopOffset:0,loopWidth:c};return{loopCount:2+Math.floor(a/c),loopWidth:c}}(r.size,r.contentSize,e.loopCount,n[1],n[0]))}var ce=i({direction:"x",loop:!0,autoplayEnabled:!0,autoplayInterval:5e3},Z.defaultProps,{pagingEnabled:!0,directionalLockEnabled:!0});function ue(e){var i=e.direction,o=e.loop,a=e.autoplayEnabled,l=e.autoplayInterval,c=e.children,u=r(e,["direction","loop","autoplayEnabled","autoplayInterval","children"]),s=u.scrollTo,d=u.onMouseEnter,f=u.onMouseLeave,h=t.useReducer(ae,oe),p=h[0],v=h[1],y=p.mouseEntered,m=p.loopCount,g=p.loopOffset,w=p.scrollTo,x=p.pad,b=t.useCallback((function(e){v({type:"setMouseEntered",value:!0}),d&&d(e)}),[d]),E=t.useCallback((function(e){v({type:"setMouseEntered",value:!1}),f&&f(e)}),[f]);return t.useEffect((function(){if(a&&!y&&!x.drag&&!x.deceleration){var e=setTimeout((function(){v({type:"playNext"})}),l);return function(){clearTimeout(e)}}}),[a,l,y,x.drag,x.deceleration]),t.useMemo((function(){v({type:"setOptions",value:[i,o]})}),[o,i]),t.useMemo((function(){v({type:"setScrollTo",value:s})}),[s]),u.scrollTo=w,"x"===i?u.alwaysBounceY=!1:u.alwaysBounceX=!1,a&&(u.onMouseEnter=b,u.onMouseLeave=E),n.createElement(Z,u,(function(e){x!==e&&v({type:"setPad",value:e});var t="function"==typeof c?c(p):c;return n.createElement(re,{direction:i,itemCount:m,renderItem:function(e){return n.createElement(e.Item,{key:e.itemIndex+g,hash:"Player_loop"},t)}})}))}var se={activeIndex:0,itemCount:0,scrollTo:null,player:oe};function de(e,t){switch(t.type){case"setPlayer":return function(e,t){var n=t.value,r=n.options[0],o=n.pad,a=o.contentOffset,l=o.size,c=o.contentSize,u=function(e,t,n){var i=e["y"===n?"height":"width"],r=0;i>0&&(r=Math.ceil(t/i));return r}(l,n.loopWidth,r),s=0;if(u>0){var d=function(e,t,n,i){var r="y"===i?["height","y"]:["width","x"],o=r[0],a=r[1],l=t[o],c=0;if(l>0){c=Math.round(-Math.max(Math.min(l-n[o],0),Math.min(e[a],0))/l)}return c}(a,l,c,r);s=d%u}return i({},e,{player:n,itemCount:u,activeIndex:s})}(e,t);case"setScrollTo":return function(e,t){return i({},e,{scrollTo:t.value})}(e,t);case"scrollToIndex":return function(e,t){var n=e.activeIndex,r=e.player.options[0],o=e.player.pad,a=o.contentOffset,l=o.size,c=t.animated,u=t.index;if(0===e.itemCount)return e;"function"==typeof u&&(u=u(e));if(u===n)return e;var s=function(e,t,n,i){var r,o="y"===i?["height","y","x"]:["width","x","y"],a=o[1],l=o[2];return(r={})[a]=t[a]-e*n[o[0]],r[l]=t[l],r}(u-n,a,l,r);return i({},e,{scrollTo:{offset:s,animated:c}})}(e,t);default:return e}}var fe=i({itemCount:0,renderItem:function(){return null},onActiveIndexChange:function(){},scrollToIndex:null},ue.defaultProps=ce);function he(e){var o=e.itemCount,a=e.renderItem,u=e.onActiveIndexChange,s=e.scrollToIndex,d=e.children,f=r(e,["itemCount","renderItem","onActiveIndexChange","scrollToIndex","children"]),h=f.width,p=f.height,v=f.direction,y=f.scrollTo,m=f.renderOverlay,g=t.useReducer(de,se),w=g[0],x=g[1],b=c(w),E=w.activeIndex,S=w.scrollTo,C=w.player,I={activeIndex:E,itemCount:w.itemCount},z=b.current;return l((function(){z.activeIndex!==E&&u(I)})),t.useMemo((function(){x({type:"setScrollTo",value:y})}),[y]),t.useMemo((function(){s&&x(i({type:"scrollToIndex"},s))}),[s]),f.scrollTo=S,f.renderOverlay=function(e){var i="function"==typeof d?d(w):d;return n.createElement(t.Fragment,null,m(e),i)},n.createElement(ue,f,(function(e){return C!==e&&x({type:"setPlayer",value:e}),n.createElement(ne,{width:h,height:p,itemWidth:h,itemHeight:p,direction:v,itemCount:o,renderItem:a})}))}he.defaultProps=fe;var pe={scrollToRect:null,scrolling:!1,pad:F};function ve(e,t){switch(t.type){case"setPad":return function(e,t){return i({},e,{pad:t.value})}(e,t);case"setScrollToRect":return function(e,t){return i({},e,{scrollToRect:t.value})}(e,t);case"scrollToIndex":return function(e,t){var n=t.list,r=t.index,o=void 0===r?0:r,a=n.box,l=n.body,c={x:0,y:0,width:0,height:0};a&&(c=a.layoutList[1].rect);if(l){var u=l.layoutList[o];u&&(c={x:c.x+u.rect.x,y:c.y+u.rect.y,width:u.rect.width,height:u.rect.height})}return i({},e,{scrollToRect:{rect:c,align:t.align,animated:t.animated},scrolling:!0})}(e,t);case"endScrolling":return function(e,t){return i({},e,{scrolling:!1})}(e);default:return e}}var ye=i({direction:"y",spacing:0,itemCount:0,estimatedItemWidth:0,estimatedItemHeight:0,renderItem:function(){return null},renderHeader:function(){return null},renderFooter:function(){return null},scrollToIndex:null},Z.defaultProps,{directionalLockEnabled:!0});function me(e){var o=e.direction,a=e.spacing,u=e.itemCount,s=e.estimatedItemWidth,d=e.estimatedItemHeight,f=e.renderItem,h=e.renderHeader,p=e.renderFooter,v=e.scrollToIndex,y=e.children,m=r(e,["direction","spacing","itemCount","estimatedItemWidth","estimatedItemHeight","renderItem","renderHeader","renderFooter","scrollToIndex","children"]),g=m.width,w=m.height,x=m.scrollToRect,b=t.useReducer(ve,pe),E=b[0],S=b[1],C=c(E),I=t.useRef({}),z=E.scrollToRect,T=E.scrolling,M=E.pad,O=C.current;return l((function(){O.pad.contentSize!==M.contentSize&&T&&v&&S(i({type:"scrollToIndex"},v,{list:I.current}))})),t.useEffect((function(){O.pad.deceleration!==M.deceleration&&!M.deceleration&&T&&S({type:"endScrolling"})})),t.useMemo((function(){S({type:"setScrollToRect",value:x})}),[x]),t.useMemo((function(){v&&S(i({type:"scrollToIndex"},v,{list:I.current}))}),[v]),m.scrollToRect=z,"x"===o?m.alwaysBounceY=!1:m.alwaysBounceX=!1,"function"==typeof y&&y(E),n.createElement(Z,m,(function(e){M!==e&&S({type:"setPad",value:e});var t={width:g,height:w,direction:o,itemCount:3,renderItem:function(e){var t=e.itemIndex,i=e.Item;return 0===t?h(e):2===t?p(e):n.createElement(i,{hash:"Infinite_body",forceRender:!0},n.createElement(re,{width:g,height:w,direction:o,spacing:a,itemCount:u,estimatedItemWidth:s,estimatedItemHeight:d,renderItem:f},(function(e){I.current.body=e})))}};return n.createElement(re,t,(function(e){I.current.box=e}))}))}me.defaultProps=ye,e.AutoResizing=P,e.Carousel=he,e.GeneralContent=K,e.GridContent=ne,e.Infinite=me,e.ItemContent=U,e.ListContent=re,e.Pad=Z,e.PadContext=G,e.Pannable=f,e.Player=ue,Object.defineProperty(e,"__esModule",{value:!0})}));
{
"name": "react-pannable",
"version": "3.3.0",
"version": "3.3.1",
"description": "Flexible and Customizable Layouts for Scrolling Content with React",

@@ -66,35 +66,35 @@ "keywords": [

"dependencies": {
"element-resize-detector": "1.1.15"
"element-resize-detector": "1.2.1"
},
"devDependencies": {
"@babel/cli": "^7.7.7",
"@babel/core": "^7.7.7",
"@babel/plugin-proposal-object-rest-spread": "^7.7.7",
"@babel/plugin-transform-react-jsx": "^7.7.7",
"@babel/plugin-transform-runtime": "^7.7.6",
"@babel/preset-env": "^7.7.7",
"@typescript-eslint/eslint-plugin": "^2.12.0",
"@typescript-eslint/parser": "^2.12.0",
"babel-eslint": "^10.0.3",
"babel-jest": "^24.9.0",
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.6",
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
"@babel/plugin-transform-react-jsx": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.8.6",
"@typescript-eslint/eslint-plugin": "^2.21.0",
"@typescript-eslint/parser": "^2.21.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^25.1.0",
"coveralls": "^3.0.9",
"eslint": "^6.7.2",
"eslint-config-react-app": "^5.1.0",
"eslint": "^6.8.0",
"eslint-config-react-app": "^5.2.0",
"eslint-plugin-flowtype": "^3.13.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.17.0",
"eslint-plugin-react": "^7.18.3",
"eslint-plugin-react-hooks": "^1.7.0",
"jest": "^24.9.0",
"jest": "^25.1.0",
"react": "^16.8.3",
"react-test-renderer": "^16.8.3",
"rimraf": "^3.0.0",
"rollup": "^1.27.13",
"rimraf": "^3.0.2",
"rollup": "^1.32.0",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-replace": "^2.2.0",
"@rollup/plugin-commonjs": "^11.0.2",
"@rollup/plugin-node-resolve": "^7.1.1",
"@rollup/plugin-replace": "^2.3.1",
"rollup-plugin-terser": "^5.1.3",
"typescript": "^3.7.3"
"typescript": "^3.8.3"
}
}

@@ -51,2 +51,4 @@ # react-pannable

- [Layout with Grid Content](https://n43.github.io/react-pannable/?path=/story/pad--layout-with-grid-content)
- [Layout with List Content](https://n43.github.io/react-pannable/?path=/story/pad--layout-with-list-content)
- [Layout with Multiple Nested Content](https://n43.github.io/react-pannable/?path=/story/pad--layout-with-multiple-nested-content)

@@ -53,0 +55,0 @@ Some `Pannable` demos

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