@daoyi/nmtl-ui 2.0.1-beta.8 → 2.0.1-beta.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/lib/components/Autocomplete-b9f7ea2b.js +428 -0
  2. package/lib/components/Autocomplete.js +19 -1
  3. package/lib/components/Avatar.js +53 -1
  4. package/lib/components/BackTop.js +109 -1
  5. package/lib/components/BarChart.js +762 -1
  6. package/lib/components/Breadcrumbs.js +122 -1
  7. package/lib/components/Button-f86bbd40.js +92 -0
  8. package/lib/components/Button.js +6 -1
  9. package/lib/components/Carousel.js +4654 -1
  10. package/lib/components/Checkbox.js +37 -1
  11. package/lib/components/CollapseContent.js +179 -1
  12. package/lib/components/ContactModal-a062b92c.js +12021 -0
  13. package/lib/components/ContactModal.js +22 -3
  14. package/lib/components/Drawer-6d519e05.js +156 -0
  15. package/lib/components/Drawer.js +11 -1
  16. package/lib/components/Dropdown.js +134 -1
  17. package/lib/components/Empty-9a192c2a.js +45 -0
  18. package/lib/components/Empty.js +5 -1
  19. package/lib/components/ExportButton.js +112 -1
  20. package/lib/components/ExtraTools-79c9c400.js +3537 -0
  21. package/lib/components/ExtraTools.js +10 -22
  22. package/lib/components/Filter.js +782 -12
  23. package/lib/components/Footer.js +271 -1
  24. package/lib/components/ForwardLink-5dd46685.js +106 -0
  25. package/lib/components/ForwardLink.js +8 -0
  26. package/lib/components/Header.js +194 -1
  27. package/lib/components/Image.js +61 -1
  28. package/lib/components/Input.js +82 -1
  29. package/lib/components/InputMethod.js +33949 -12
  30. package/lib/components/KeywordSearch-8ee9bf32.js +144 -0
  31. package/lib/components/KeywordSearch.js +21 -1
  32. package/lib/components/KeywordTicker.js +190 -1
  33. package/lib/components/Keywords.js +317 -1
  34. package/lib/components/Loading.js +28 -1
  35. package/lib/components/MUITheme.js +2621 -1
  36. package/lib/components/Modal-c8a92699.js +108 -0
  37. package/lib/components/Modal.js +9 -1
  38. package/lib/components/MoreButton-c01432fd.js +110 -0
  39. package/lib/components/MoreButton.js +6 -1
  40. package/lib/components/Pagination.js +3637 -0
  41. package/lib/components/Radio.js +78 -1
  42. package/lib/components/SNA.js +1691 -22
  43. package/lib/components/Select-eb3c067e.js +115 -0
  44. package/lib/components/Select.js +8 -1
  45. package/lib/components/Spin-1762ce9c.js +75 -0
  46. package/lib/components/Spin.js +6 -1
  47. package/lib/components/Table.js +51 -1
  48. package/lib/components/Tooltip-59ca3c6d.js +70 -0
  49. package/lib/components/Tooltip.js +7 -1
  50. package/lib/components/_commonjsHelpers-70de2c37.js +28 -0
  51. package/lib/components/_rollupPluginBabelHelpers-7eb4ffba.js +142 -0
  52. package/lib/components/createSvgIcon-e95160be.js +576 -0
  53. package/lib/components/dataExport-d55d6fa3.js +92 -0
  54. package/lib/components/debounce-127da66c.js +355 -0
  55. package/lib/components/defaultTheme-ed7746fe.js +1661 -0
  56. package/lib/components/globalConfig.js +175 -0
  57. package/lib/components/hoist-non-react-statics.cjs-3f408ad2.js +105 -0
  58. package/lib/components/index-34fc27f1.js +481 -0
  59. package/lib/components/index-cbd6bca9.js +61 -0
  60. package/lib/components/isObjectLike-e111475d.js +190 -0
  61. package/lib/components/style-inject.es-1f59c1d0.js +28 -1
  62. package/lib/components/toConsumableArray-dbe8af76.js +19 -0
  63. package/lib/components/transform-3a04288b.js +5475 -0
  64. package/lib/components/withTheme-2d778133.js +6 -0
  65. package/lib/index.d.ts +2 -0
  66. package/lib/index.js +2 -0
  67. package/lib/utils/_rollupPluginBabelHelpers-8dd26e1a.js +121 -0
  68. package/lib/utils/arrayMerge.js +4953 -1
  69. package/lib/utils/chunkArray.js +15 -1
  70. package/lib/utils/convert2HtmlEntities.js +42 -1
  71. package/lib/utils/domToImage.js +802 -1
  72. package/lib/utils/downloadGephi.js +106 -1
  73. package/lib/utils/exportXlsx.js +219 -1
  74. package/lib/utils/historyAppendSearch.js +502 -1
  75. package/lib/utils/isDevelopMode.js +5 -1
  76. package/lib/utils/parseYMD.js +36 -1
  77. package/lib/utils/removeDuplicateItem.js +11 -1
  78. package/lib/utils/sendEmail.js +39 -1
  79. package/lib/utils/snaDefine-6a2bcd94.js +5 -0
  80. package/lib/utils/snaDefine.js +1 -1
  81. package/lib/utils/snaPreProcess.js +84 -1
  82. package/package.json +17 -21
  83. package/lib/components/Empty-54b79907.js +0 -1
  84. package/lib/components/KeywordSearch-5a393f12.js +0 -1
  85. package/lib/components/Select-f2441b83.js +0 -1
  86. package/lib/components/_rollupPluginBabelHelpers-1b8c042f.js +0 -1
  87. package/lib/components/_rollupPluginBabelHelpers-ec4e2a53.js +0 -1
  88. package/lib/components/createSvgIcon-62b64929.js +0 -1
  89. package/lib/components/createSvgIcon-e24792d4.js +0 -1
  90. package/lib/components/createTheme-7fffa109.js +0 -1
  91. package/lib/components/dataExport-9fccd4f0.js +0 -1
  92. package/lib/components/debounce-c993109b.js +0 -1
  93. package/lib/components/hoist-non-react-statics.cjs-d6a9befd.js +0 -1
  94. package/lib/components/index-11391ca3.js +0 -7
  95. package/lib/components/index-b2745105.js +0 -7
  96. package/lib/components/isObjectLike-2f1983fe.js +0 -1
  97. package/lib/components/style-inject.es-c875d022.js +0 -1
  98. package/lib/components/transform-0eb2d36e.js +0 -1
  99. package/lib/utils/_commonjsHelpers-e2cda605.js +0 -1
  100. package/lib/utils/_rollupPluginBabelHelpers-928a52ce.js +0 -1
@@ -1 +1,4654 @@
1
- import{c as e,b as t,_ as n}from"./_rollupPluginBabelHelpers-ec4e2a53.js";import r,{forwardRef as i,useRef as o,useImperativeHandle as a}from"react";import{b as s,u as l,a as c,c as u}from"./index-b2745105.js";import d from"prop-types";import{s as f}from"./style-inject.es-1f59c1d0.js";var p=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};t.default=n}));l(p);var h=/^\s+|\s+$/g,v=/^[-+]0x[0-9a-f]+$/i,y=/^0b[01]+$/i,b=/^0o[0-7]+$/i,g=parseInt,m="object"==typeof c&&c&&c.Object===Object&&c,S="object"==typeof self&&self&&self.Object===Object&&self,w=m||S||Function("return this")(),k=Object.prototype.toString,O=Math.max,x=Math.min,T=function(){return w.Date.now()};function _(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function P(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==k.call(e)}(e))return NaN;if(_(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=_(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=y.test(e);return n||b.test(e)?g(e.slice(2),n?2:8):v.test(e)?NaN:+e}var j=function(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function h(e){return c=e,s=setTimeout(y,t),u?p(e):a}function v(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function y(){var e=T();if(v(e))return b(e);s=setTimeout(y,function(e){var n=t-(e-l);return d?x(n,o-(e-c)):n}(e))}function b(e){return s=void 0,f&&r?p(e):(r=i=void 0,a)}function g(){var e=T(),n=v(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return h(l);if(d)return s=setTimeout(y,t),p(l)}return void 0===s&&(s=setTimeout(y,t)),a}return t=P(t)||0,_(n)&&(u=!!n.leading,o=(d="maxWait"in n)?O(P(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),g.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},g.flush=function(){return void 0===s?a:b(T())},g},E=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.clamp=l,t.canUseDOM=t.slidesOnLeft=t.slidesOnRight=t.siblingDirection=t.getTotalSlides=t.getPostClones=t.getPreClones=t.getTrackLeft=t.getTrackAnimateCSS=t.getTrackCSS=t.checkSpecKeys=t.getSlideCount=t.checkNavigable=t.getNavigableIndexes=t.swipeEnd=t.swipeMove=t.swipeStart=t.keyHandler=t.changeSlide=t.slideHandler=t.initializedState=t.extractObject=t.canGoNext=t.getSwipeDirection=t.getHeight=t.getWidth=t.lazySlidesOnRight=t.lazySlidesOnLeft=t.lazyEndIndex=t.lazyStartIndex=t.getRequiredLazySlides=t.getOnDemandLazySlides=t.safePreventDefault=void 0;var n,i=(n=r)&&n.__esModule?n:{default:n};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t,n){return Math.max(t,Math.min(e,n))}var c=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()};t.safePreventDefault=c;var u=function(e){for(var t=[],n=d(e),r=f(e),i=n;i<r;i++)e.lazyLoadedList.indexOf(i)<0&&t.push(i);return t};t.getOnDemandLazySlides=u;t.getRequiredLazySlides=function(e){for(var t=[],n=d(e),r=f(e),i=n;i<r;i++)t.push(i);return t};var d=function(e){return e.currentSlide-p(e)};t.lazyStartIndex=d;var f=function(e){return e.currentSlide+h(e)};t.lazyEndIndex=f;var p=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0};t.lazySlidesOnLeft=p;var h=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow};t.lazySlidesOnRight=h;var v=function(e){return e&&e.offsetWidth||0};t.getWidth=v;var y=function(e){return e&&e.offsetHeight||0};t.getHeight=y;var b=function(e){var t,n,r,i,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(i=Math.round(180*r/Math.PI))<0&&(i=360-Math.abs(i)),i<=45&&i>=0||i<=360&&i>=315?"left":i>=135&&i<=225?"right":!0===o?i>=35&&i<=135?"up":"down":"vertical"};t.getSwipeDirection=b;var g=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t};t.canGoNext=g;t.extractObject=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n};t.initializedState=function(e){var t,n=i.default.Children.count(e.children),r=e.listRef,o=Math.ceil(v(r)),s=e.trackRef&&e.trackRef.node,l=Math.ceil(v(s));if(e.vertical)t=o;else{var c=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(c*=o/100),t=Math.ceil((o-c)/e.slidesToShow)}var d=r&&y(r.querySelector('[data-index="0"]')),f=d*e.slidesToShow,p=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(p=n-1-e.initialSlide);var h=e.lazyLoadedList||[],b=u(a(a({},e),{},{currentSlide:p,lazyLoadedList:h})),g={slideCount:n,slideWidth:t,listWidth:o,trackWidth:l,currentSlide:p,slideHeight:d,listHeight:f,lazyLoadedList:h=h.concat(b)};return null===e.autoplaying&&e.autoplay&&(g.autoplaying="playing"),g};t.slideHandler=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,i=e.infinite,o=e.index,s=e.slideCount,c=e.lazyLoad,d=e.currentSlide,f=e.centerMode,p=e.slidesToScroll,h=e.slidesToShow,v=e.useCSS,y=e.lazyLoadedList;if(t&&n)return{};var b,m,S,w=o,k={},_={},P=i?o:l(o,0,s-1);if(r){if(!i&&(o<0||o>=s))return{};o<0?w=o+s:o>=s&&(w=o-s),c&&y.indexOf(w)<0&&(y=y.concat(w)),k={animating:!0,currentSlide:w,lazyLoadedList:y,targetSlide:w},_={animating:!1,targetSlide:w}}else b=w,w<0?(b=w+s,i?s%p!=0&&(b=s-s%p):b=0):!g(e)&&w>d?w=b=d:f&&w>=s?(w=i?s:s-1,b=i?0:s-1):w>=s&&(b=w-s,i?s%p!=0&&(b=0):b=s-h),!i&&w+h>=s&&(b=s-h),m=T(a(a({},e),{},{slideIndex:w})),S=T(a(a({},e),{},{slideIndex:b})),i||(m===S&&(w=b),m=S),c&&(y=y.concat(u(a(a({},e),{},{currentSlide:w})))),v?(k={animating:!0,currentSlide:b,trackStyle:x(a(a({},e),{},{left:m})),lazyLoadedList:y,targetSlide:P},_={animating:!1,currentSlide:b,trackStyle:O(a(a({},e),{},{left:S})),swipeLeft:null,targetSlide:P}):k={currentSlide:b,trackStyle:O(a(a({},e),{},{left:S})),lazyLoadedList:y,targetSlide:P};return{state:k,nextState:_}};t.changeSlide=function(e,t){var n,r,i,o,s=e.slidesToScroll,l=e.slidesToShow,c=e.slideCount,u=e.currentSlide,d=e.targetSlide,f=e.lazyLoad,p=e.infinite;if(n=c%s!=0?0:(c-u)%s,"previous"===t.message)o=u-(i=0===n?s:l-n),f&&!p&&(o=-1===(r=u-i)?c-1:r),p||(o=d-s);else if("next"===t.message)o=u+(i=0===n?s:n),f&&!p&&(o=(u+s)%c+n),p||(o=d+s);else if("dots"===t.message)o=t.index*t.slidesToScroll;else if("children"===t.message){if(o=t.index,p){var h=E(a(a({},e),{},{targetSlide:o}));o>t.currentSlide&&"left"===h?o-=c:o<t.currentSlide&&"right"===h&&(o+=c)}}else"index"===t.message&&(o=Number(t.index));return o};t.keyHandler=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""};t.swipeStart=function(e,t,n){return"IMG"===e.target.tagName&&c(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}};t.swipeMove=function(e,t){var n=t.scrolling,r=t.animating,i=t.vertical,o=t.swipeToSlide,s=t.verticalSwiping,l=t.rtl,u=t.currentSlide,d=t.edgeFriction,f=t.edgeDragged,p=t.onEdge,h=t.swiped,v=t.swiping,y=t.slideCount,m=t.slidesToScroll,S=t.infinite,w=t.touchObject,k=t.swipeEvent,x=t.listHeight,_=t.listWidth;if(!n){if(r)return c(e);i&&o&&s&&c(e);var P,j={},E=T(t);w.curX=e.touches?e.touches[0].pageX:e.clientX,w.curY=e.touches?e.touches[0].pageY:e.clientY,w.swipeLength=Math.round(Math.sqrt(Math.pow(w.curX-w.startX,2)));var L=Math.round(Math.sqrt(Math.pow(w.curY-w.startY,2)));if(!s&&!v&&L>10)return{scrolling:!0};s&&(w.swipeLength=L);var M=(l?-1:1)*(w.curX>w.startX?1:-1);s&&(M=w.curY>w.startY?1:-1);var C=Math.ceil(y/m),z=b(t.touchObject,s),R=w.swipeLength;return S||(0===u&&("right"===z||"down"===z)||u+1>=C&&("left"===z||"up"===z)||!g(t)&&("left"===z||"up"===z))&&(R=w.swipeLength*d,!1===f&&p&&(p(z),j.edgeDragged=!0)),!h&&k&&(k(z),j.swiped=!0),P=i?E+R*(x/_)*M:l?E-R*M:E+R*M,s&&(P=E+R*M),j=a(a({},j),{},{touchObject:w,swipeLeft:P,trackStyle:O(a(a({},t),{},{left:P}))}),Math.abs(w.curX-w.startX)<.8*Math.abs(w.curY-w.startY)?j:(w.swipeLength>10&&(j.swiping=!0,c(e)),j)}};t.swipeEnd=function(e,t){var n=t.dragging,r=t.swipe,i=t.touchObject,o=t.listWidth,s=t.touchThreshold,l=t.verticalSwiping,u=t.listHeight,d=t.swipeToSlide,f=t.scrolling,p=t.onSwipe,h=t.targetSlide,v=t.currentSlide,y=t.infinite;if(!n)return r&&c(e),{};var g=l?u/s:o/s,m=b(i,l),k={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(f)return k;if(!i.swipeLength)return k;if(i.swipeLength>g){var O,_;c(e),p&&p(m);var P=y?v:h;switch(m){case"left":case"up":_=P+w(t),O=d?S(t,_):_,k.currentDirection=0;break;case"right":case"down":_=P-w(t),O=d?S(t,_):_,k.currentDirection=1;break;default:O=P}k.triggerSlideHandler=O}else{var j=T(t);k.trackStyle=x(a(a({},t),{},{left:j}))}return k};var m=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,i=[];n<t;)i.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return i};t.getNavigableIndexes=m;var S=function(e,t){var n=m(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var i in n){if(t<n[i]){t=r;break}r=n[i]}return t};t.checkNavigable=S;var w=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,r=e.listRef,i=r.querySelectorAll&&r.querySelectorAll(".slick-slide")||[];if(Array.from(i).every((function(r){if(e.vertical){if(r.offsetTop+y(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+v(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),!n)return 0;var o=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-o)||1}return e.slidesToScroll};t.getSlideCount=w;var k=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)};t.checkSpecKeys=k;var O=function(e){var t,n;k(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=j(e)*e.slideWidth;var i={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var o=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";i=a(a({},i),{},{WebkitTransform:o,transform:s,msTransform:l})}else e.vertical?i.top=e.left:i.left=e.left;return e.fade&&(i={opacity:1}),t&&(i.width=t),n&&(i.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?i.marginTop=e.left+"px":i.marginLeft=e.left+"px"),i};t.getTrackCSS=O;var x=function(e){k(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=O(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t};t.getTrackAnimateCSS=x;var T=function(e){if(e.unslick)return 0;k(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,i=e.trackRef,o=e.infinite,a=e.centerMode,s=e.slideCount,l=e.slidesToShow,c=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,f=e.variableWidth,p=e.slideHeight,h=e.fade,v=e.vertical;if(h||1===e.slideCount)return 0;var y=0;if(o?(y=-_(e),s%c!=0&&r+c>s&&(y=-(r>s?l-(r-s):s%c)),a&&(y+=parseInt(l/2))):(s%c!=0&&r+c>s&&(y=l-s%c),a&&(y=parseInt(l/2))),t=v?r*p*-1+y*p:r*u*-1+y*u,!0===f){var b,g=i&&i.node;if(b=r+_(e),t=(n=g&&g.childNodes[b])?-1*n.offsetLeft:0,!0===a){b=o?r+_(e):r,n=g&&g.children[b],t=0;for(var m=0;m<b;m++)t-=g&&g.children[m]&&g.children[m].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(d-n.offsetWidth)/2}}return t};t.getTrackLeft=T;var _=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)};t.getPreClones=_;var P=function(e){return e.unslick||!e.infinite?0:e.slideCount};t.getPostClones=P;var j=function(e){return 1===e.slideCount?1:_(e)+e.slideCount+P(e)};t.getTotalSlides=j;var E=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+L(e)?"left":"right":e.targetSlide<e.currentSlide-M(e)?"right":"left"};t.siblingDirection=E;var L=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,i=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(i)>0&&(o+=1),r&&t%2==0&&(o+=1),o}return r?0:t-1};t.slidesOnRight=L;var M=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,i=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(i)>0&&(o+=1),r||t%2!=0||(o+=1),o}return r?t-1:0};t.slidesOnLeft=M;t.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}}));l(E),E.clamp,E.canUseDOM,E.slidesOnLeft,E.slidesOnRight,E.siblingDirection,E.getTotalSlides,E.getPostClones,E.getPreClones,E.getTrackLeft,E.getTrackAnimateCSS,E.getTrackCSS,E.checkSpecKeys,E.getSlideCount,E.checkNavigable,E.getNavigableIndexes,E.swipeEnd,E.swipeMove,E.swipeStart,E.keyHandler,E.changeSlide,E.slideHandler,E.initializedState,E.extractObject,E.canGoNext,E.getSwipeDirection,E.getHeight,E.getWidth,E.lazySlidesOnRight,E.lazySlidesOnLeft,E.lazyEndIndex,E.lazyStartIndex,E.getRequiredLazySlides,E.getOnDemandLazySlides,E.safePreventDefault;var L=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var n=o(r),i=o(u);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){var t,n,r,i,o;return r=(o=e.rtl?e.slideCount-1-e.index:e.index)<0||o>=e.slideCount,e.centerMode?(i=Math.floor(e.slidesToShow/2),n=(o-e.currentSlide)%e.slideCount==0,o>e.currentSlide-i-1&&o<=e.currentSlide+i&&(t=!0)):t=e.currentSlide<=o&&o<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r,"slick-current":o===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},S=function(e,t){return e.key||t},w=function(e){var t,r=[],o=[],a=[],s=n.default.Children.count(e.children),l=(0,E.lazyStartIndex)(e),c=(0,E.lazyEndIndex)(e);return n.default.Children.forEach(e.children,(function(u,d){var f,p={message:"children",index:d,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};f=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(d)>=0?u:n.default.createElement("div",null);var h=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(b(b({},e),{},{index:d})),v=f.props.className||"",y=m(b(b({},e),{},{index:d}));if(r.push(n.default.cloneElement(f,{key:"original"+S(f,d),"data-index":d,className:(0,i.default)(y,v),tabIndex:"-1","aria-hidden":!y["slick-active"],style:b(b({outline:"none"},f.props.style||{}),h),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})),e.infinite&&!1===e.fade){var g=s-d;g<=(0,E.getPreClones)(e)&&s!==e.slidesToShow&&((t=-g)>=l&&(f=u),y=m(b(b({},e),{},{index:t})),o.push(n.default.cloneElement(f,{key:"precloned"+S(f,t),"data-index":t,tabIndex:"-1",className:(0,i.default)(y,v),"aria-hidden":!y["slick-active"],style:b(b({},f.props.style||{}),h),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}}))),s!==e.slidesToShow&&((t=s+d)<c&&(f=u),y=m(b(b({},e),{},{index:t})),a.push(n.default.cloneElement(f,{key:"postcloned"+S(f,t),"data-index":t,tabIndex:"-1",className:(0,i.default)(y,v),"aria-hidden":!y["slick-active"],style:b(b({},f.props.style||{}),h),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})))}})),e.rtl?o.concat(r,a).reverse():o.concat(r,a)},k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(a,e);var t,r,i,o=f(a);function a(){var e;l(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return g(h(e=o.call.apply(o,[this].concat(n))),"node",null),g(h(e),"handleRef",(function(t){e.node=t})),e}return t=a,(r=[{key:"render",value:function(){var e=w(this.props),t=this.props,r={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return n.default.createElement("div",s({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},r),e)}}])&&c(t.prototype,r),i&&c(t,i),a}(n.default.PureComponent);t.Track=k}));l(L),L.Track;var M=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Dots=void 0;var n=o(r),i=o(u);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(u,e);var t,r,o,a=p(u);function u(){return c(this,u),a.apply(this,arguments)}return t=u,r=[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,r=t.onMouseEnter,o=t.onMouseOver,a=t.onMouseLeave,c=t.infinite,u=t.slidesToScroll,d=t.slidesToShow,f=t.slideCount,p=t.currentSlide,h=(e={slideCount:f,slidesToScroll:u,slidesToShow:d,infinite:c}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,v={onMouseEnter:r,onMouseOver:o,onMouseLeave:a},y=[],b=0;b<h;b++){var g=(b+1)*u-1,m=c?g:(0,E.clamp)(g,0,f-1),S=m-(u-1),w=c?S:(0,E.clamp)(S,0,f-1),k=(0,i.default)({"slick-active":c?p>=w&&p<=m:p===w}),O={message:"dots",index:b,slidesToScroll:u,currentSlide:p},x=this.clickHandler.bind(this,O);y=y.concat(n.default.createElement("li",{key:b,className:k},n.default.cloneElement(this.props.customPaging(b),{onClick:x})))}return n.default.cloneElement(this.props.appendDots(y),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:this.props.dotsClass},v))}}],r&&d(t.prototype,r),o&&d(t,o),u}(n.default.PureComponent);t.Dots=y}));l(M),M.Dots;var C=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.NextArrow=t.PrevArrow=void 0;var n=o(r),i=o(u);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var S=function(e){v(r,e);var t=b(r);function r(){return f(this,r),t.apply(this,arguments)}return h(r,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var r={key:"0","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?n.default.cloneElement(this.props.prevArrow,c(c({},r),o)):n.default.createElement("button",s({key:"0",type:"button"},r)," ","Previous")}}]),r}(n.default.PureComponent);t.PrevArrow=S;var w=function(e){v(r,e);var t=b(r);function r(){return f(this,r),t.apply(this,arguments)}return h(r,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,E.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var r={key:"1","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?n.default.cloneElement(this.props.nextArrow,c(c({},r),o)):n.default.createElement("button",s({key:"1",type:"button"},r)," ","Next")}}]),r}(n.default.PureComponent);t.NextArrow=w}));l(C),C.NextArrow,C.PrevArrow;var z=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),R="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,D="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),H="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(D):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var W=["top","right","bottom","left","width","height","size","weight"],I="undefined"!=typeof MutationObserver,N=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&s()}function a(){H(o)}function s(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){R&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),I?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){R&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;W.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),A=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},q=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||D},X=K(0,0,0,0);function Y(e){return parseFloat(e)||0}function F(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Y(e["border-"+n+"-width"])}),0)}function G(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return X;var r=q(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=Y(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=Y(r.width),l=Y(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=F(r,"left","right")+o),Math.round(l+a)!==n&&(l-=F(r,"top","bottom")+a)),!function(e){return e===q(e).document.documentElement}(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return K(i.left,i.top,s,l)}var U="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof q(e).SVGGraphicsElement}:function(e){return e instanceof q(e).SVGElement&&"function"==typeof e.getBBox};function B(e){return R?U(e)?function(e){var t=e.getBBox();return K(0,0,t.width,t.height)}(e):G(e):X}function K(e,t,n,r){return{x:e,y:t,width:n,height:r}}var V=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=K(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=B(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),$=function(e,t){var n,r,i,o,a,s,l,c=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),A(l,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),l);A(this,{target:e,contentRect:c})},Z=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new z,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof q(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new V(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof q(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new $(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),J="undefined"!=typeof WeakMap?new WeakMap:new z,Q=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=N.getInstance(),r=new Z(t,n,this);J.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Q.prototype[e]=function(){var t;return(t=J.get(this))[e].apply(t,arguments)}}));var ee=void 0!==D.ResizeObserver?D.ResizeObserver:Q,te=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.InnerSlider=void 0;var n=l(r),i=l(p),o=l(j),a=l(u),s=l(ee);function l(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function f(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var i=w(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?S(e):t}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(p,e);var t,r,l,u=g(p);function p(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),k(S(t=u.call(this,e)),"listRefHandler",(function(e){return t.list=e})),k(S(t),"trackRefHandler",(function(e){return t.track=e})),k(S(t),"adaptHeight",(function(){if(t.props.adaptiveHeight&&t.list){var e=t.list.querySelector('[data-index="'.concat(t.state.currentSlide,'"]'));t.list.style.height=(0,E.getHeight)(e)+"px"}})),k(S(t),"componentDidMount",(function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var e=(0,E.getOnDemandLazySlides)(v(v({},t.props),t.state));e.length>0&&(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e))}var n=v({listRef:t.list,trackRef:t.track},t.props);t.updateState(n,!0,(function(){t.adaptHeight(),t.props.autoplay&&t.autoPlay("update")})),"progressive"===t.props.lazyLoad&&(t.lazyLoadTimer=setInterval(t.progressiveLazyLoad,1e3)),t.ro=new s.default((function(){t.state.animating?(t.onWindowResized(!1),t.callbackTimers.push(setTimeout((function(){return t.onWindowResized()}),t.props.speed))):t.onWindowResized()})),t.ro.observe(t.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=t.props.pauseOnFocus?t.onSlideFocus:null,e.onblur=t.props.pauseOnFocus?t.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",t.onWindowResized):window.attachEvent("onresize",t.onWindowResized)})),k(S(t),"componentWillUnmount",(function(){t.animationEndCallback&&clearTimeout(t.animationEndCallback),t.lazyLoadTimer&&clearInterval(t.lazyLoadTimer),t.callbackTimers.length&&(t.callbackTimers.forEach((function(e){return clearTimeout(e)})),t.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",t.onWindowResized):window.detachEvent("onresize",t.onWindowResized),t.autoplayTimer&&clearInterval(t.autoplayTimer),t.ro.disconnect()})),k(S(t),"componentDidUpdate",(function(e){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var r=(0,E.getOnDemandLazySlides)(v(v({},t.props),t.state));r.length>0&&(t.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(r)}})),t.props.onLazyLoad&&t.props.onLazyLoad(r))}t.adaptHeight();var i=v(v({listRef:t.list,trackRef:t.track},t.props),t.state),o=t.didPropsChange(e);o&&t.updateState(i,o,(function(){t.state.currentSlide>=n.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:n.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")}))})),k(S(t),"onWindowResized",(function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,o.default)((function(){return t.resizeWindow(e)}),50),t.debouncedResize()})),k(S(t),"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=Boolean(t.track&&t.track.node);if(n){var r=v(v({listRef:t.list,trackRef:t.track},t.props),t.state);t.updateState(r,e,(function(){t.props.autoplay?t.autoPlay("update"):t.pause("paused")})),t.setState({animating:!1}),clearTimeout(t.animationEndCallback),delete t.animationEndCallback}})),k(S(t),"updateState",(function(e,r,i){var o=(0,E.initializedState)(e);e=v(v(v({},e),o),{},{slideIndex:o.currentSlide});var a=(0,E.getTrackLeft)(e);e=v(v({},e),{},{left:a});var s=(0,E.getTrackCSS)(e);(r||n.default.Children.count(t.props.children)!==n.default.Children.count(e.children))&&(o.trackStyle=s),t.setState(o,i)})),k(S(t),"ssrInit",(function(){if(t.props.variableWidth){var e=0,r=0,i=[],o=(0,E.getPreClones)(v(v(v({},t.props),t.state),{},{slideCount:t.props.children.length})),a=(0,E.getPostClones)(v(v(v({},t.props),t.state),{},{slideCount:t.props.children.length}));t.props.children.forEach((function(t){i.push(t.props.style.width),e+=t.props.style.width}));for(var s=0;s<o;s++)r+=i[i.length-1-s],e+=i[i.length-1-s];for(var l=0;l<a;l++)e+=i[l];for(var c=0;c<t.state.currentSlide;c++)r+=i[c];var u={width:e+"px",left:-r+"px"};if(t.props.centerMode){var d="".concat(i[t.state.currentSlide],"px");u.left="calc(".concat(u.left," + (100% - ").concat(d,") / 2 ) ")}return{trackStyle:u}}var f=n.default.Children.count(t.props.children),p=v(v(v({},t.props),t.state),{},{slideCount:f}),h=(0,E.getPreClones)(p)+(0,E.getPostClones)(p)+f,y=100/t.props.slidesToShow*h,b=100/h,g=-b*((0,E.getPreClones)(p)+t.state.currentSlide)*y/100;return t.props.centerMode&&(g+=(100-b*y/100)/2),{slideWidth:b+"%",trackStyle:{width:y+"%",left:g+"%"}}})),k(S(t),"checkImagesLoad",(function(){var e=t.list&&t.list.querySelectorAll&&t.list.querySelectorAll(".slick-slide img")||[],n=e.length,r=0;Array.prototype.forEach.call(e,(function(e){var i=function(){return++r&&r>=n&&t.onWindowResized()};if(e.onclick){var o=e.onclick;e.onclick=function(){o(),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(t.props.lazyLoad?e.onload=function(){t.adaptHeight(),t.callbackTimers.push(setTimeout(t.onWindowResized,t.props.speed))}:(e.onload=i,e.onerror=function(){i(),t.props.onLazyLoadError&&t.props.onLazyLoadError()}))}))})),k(S(t),"progressiveLazyLoad",(function(){for(var e=[],n=v(v({},t.props),t.state),r=t.state.currentSlide;r<t.state.slideCount+(0,E.getPostClones)(n);r++)if(t.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}for(var i=t.state.currentSlide-1;i>=-(0,E.getPreClones)(n);i--)if(t.state.lazyLoadedList.indexOf(i)<0){e.push(i);break}e.length>0?(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e)):t.lazyLoadTimer&&(clearInterval(t.lazyLoadTimer),delete t.lazyLoadTimer)})),k(S(t),"slideHandler",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.props,i=r.asNavFor,o=r.beforeChange,a=r.onLazyLoad,s=r.speed,l=r.afterChange,c=t.state.currentSlide,u=(0,E.slideHandler)(v(v(v({index:e},t.props),t.state),{},{trackRef:t.track,useCSS:t.props.useCSS&&!n})),d=u.state,p=u.nextState;if(d){o&&o(c,d.currentSlide);var h=d.lazyLoadedList.filter((function(e){return t.state.lazyLoadedList.indexOf(e)<0}));a&&h.length>0&&a(h),!t.props.waitForAnimate&&t.animationEndCallback&&(clearTimeout(t.animationEndCallback),l&&l(c),delete t.animationEndCallback),t.setState(d,(function(){i&&t.asNavForIndex!==e&&(t.asNavForIndex=e,i.innerSlider.slideHandler(e)),p&&(t.animationEndCallback=setTimeout((function(){var e=p.animating,n=f(p,["animating"]);t.setState(n,(function(){t.callbackTimers.push(setTimeout((function(){return t.setState({animating:e})}),10)),l&&l(d.currentSlide),delete t.animationEndCallback}))}),s))}))}})),k(S(t),"changeSlide",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=v(v({},t.props),t.state),i=(0,E.changeSlide)(r,e);if((0===i||i)&&(!0===n?t.slideHandler(i,n):t.slideHandler(i),t.props.autoplay&&t.autoPlay("update"),t.props.focusOnSelect)){var o=t.list.querySelectorAll(".slick-current");o[0]&&o[0].focus()}})),k(S(t),"clickHandler",(function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0})),k(S(t),"keyHandler",(function(e){var n=(0,E.keyHandler)(e,t.props.accessibility,t.props.rtl);""!==n&&t.changeSlide({message:n})})),k(S(t),"selectHandler",(function(e){t.changeSlide(e)})),k(S(t),"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),k(S(t),"enableBodyScroll",(function(){window.ontouchmove=null})),k(S(t),"swipeStart",(function(e){t.props.verticalSwiping&&t.disableBodyScroll();var n=(0,E.swipeStart)(e,t.props.swipe,t.props.draggable);""!==n&&t.setState(n)})),k(S(t),"swipeMove",(function(e){var n=(0,E.swipeMove)(e,v(v(v({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));n&&(n.swiping&&(t.clickable=!1),t.setState(n))})),k(S(t),"swipeEnd",(function(e){var n=(0,E.swipeEnd)(e,v(v(v({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));if(n){var r=n.triggerSlideHandler;delete n.triggerSlideHandler,t.setState(n),void 0!==r&&(t.slideHandler(r),t.props.verticalSwiping&&t.enableBodyScroll())}})),k(S(t),"touchEnd",(function(e){t.swipeEnd(e),t.clickable=!0})),k(S(t),"slickPrev",(function(){t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"previous"})}),0))})),k(S(t),"slickNext",(function(){t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"next"})}),0))})),k(S(t),"slickGoTo",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"index",index:e,currentSlide:t.state.currentSlide},n)}),0))})),k(S(t),"play",(function(){var e;if(t.props.rtl)e=t.state.currentSlide-t.props.slidesToScroll;else{if(!(0,E.canGoNext)(v(v({},t.props),t.state)))return!1;e=t.state.currentSlide+t.props.slidesToScroll}t.slideHandler(e)})),k(S(t),"autoPlay",(function(e){t.autoplayTimer&&clearInterval(t.autoplayTimer);var n=t.state.autoplaying;if("update"===e){if("hovered"===n||"focused"===n||"paused"===n)return}else if("leave"===e){if("paused"===n||"focused"===n)return}else if("blur"===e&&("paused"===n||"hovered"===n))return;t.autoplayTimer=setInterval(t.play,t.props.autoplaySpeed+50),t.setState({autoplaying:"playing"})})),k(S(t),"pause",(function(e){t.autoplayTimer&&(clearInterval(t.autoplayTimer),t.autoplayTimer=null);var n=t.state.autoplaying;"paused"===e?t.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==n&&"playing"!==n||t.setState({autoplaying:"focused"}):"playing"===n&&t.setState({autoplaying:"hovered"})})),k(S(t),"onDotsOver",(function(){return t.props.autoplay&&t.pause("hovered")})),k(S(t),"onDotsLeave",(function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")})),k(S(t),"onTrackOver",(function(){return t.props.autoplay&&t.pause("hovered")})),k(S(t),"onTrackLeave",(function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")})),k(S(t),"onSlideFocus",(function(){return t.props.autoplay&&t.pause("focused")})),k(S(t),"onSlideBlur",(function(){return t.props.autoplay&&"focused"===t.state.autoplaying&&t.autoPlay("blur")})),k(S(t),"render",(function(){var e,r,i,o=(0,a.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),s=v(v({},t.props),t.state),l=(0,E.extractObject)(s,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),c=t.props.pauseOnHover;if(l=v(v({},l),{},{onMouseEnter:c?t.onTrackOver:null,onMouseLeave:c?t.onTrackLeave:null,onMouseOver:c?t.onTrackOver:null,focusOnSelect:t.props.focusOnSelect&&t.clickable?t.selectHandler:null}),!0===t.props.dots&&t.state.slideCount>=t.props.slidesToShow){var u=(0,E.extractObject)(s,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),f=t.props.pauseOnDotsHover;u=v(v({},u),{},{clickHandler:t.changeSlide,onMouseEnter:f?t.onDotsLeave:null,onMouseOver:f?t.onDotsOver:null,onMouseLeave:f?t.onDotsLeave:null}),e=n.default.createElement(M.Dots,u)}var p=(0,E.extractObject)(s,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);p.clickHandler=t.changeSlide,t.props.arrows&&(r=n.default.createElement(C.PrevArrow,p),i=n.default.createElement(C.NextArrow,p));var h=null;t.props.vertical&&(h={height:t.state.listHeight});var y=null;!1===t.props.vertical?!0===t.props.centerMode&&(y={padding:"0px "+t.props.centerPadding}):!0===t.props.centerMode&&(y={padding:t.props.centerPadding+" 0px"});var b=v(v({},h),y),g=t.props.touchMove,m={className:"slick-list",style:b,onClick:t.clickHandler,onMouseDown:g?t.swipeStart:null,onMouseMove:t.state.dragging&&g?t.swipeMove:null,onMouseUp:g?t.swipeEnd:null,onMouseLeave:t.state.dragging&&g?t.swipeEnd:null,onTouchStart:g?t.swipeStart:null,onTouchMove:t.state.dragging&&g?t.swipeMove:null,onTouchEnd:g?t.touchEnd:null,onTouchCancel:t.state.dragging&&g?t.swipeEnd:null,onKeyDown:t.props.accessibility?t.keyHandler:null},S={className:o,dir:"ltr",style:t.props.style};return t.props.unslick&&(m={className:"slick-list"},S={className:o}),n.default.createElement("div",S,t.props.unslick?"":r,n.default.createElement("div",d({ref:t.listRefHandler},m),n.default.createElement(L.Track,d({ref:t.trackRefHandler},l),t.props.children)),t.props.unslick?"":i,t.props.unslick?"":e)})),t.list=null,t.track=null,t.state=v(v({},i.default),{},{currentSlide:t.props.initialSlide,slideCount:n.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var r=t.ssrInit();return t.state=v(v({},t.state),r),t}return t=p,(r=[{key:"didPropsChange",value:function(e){for(var t=!1,r=0,i=Object.keys(this.props);r<i.length;r++){var o=i[r];if(!e.hasOwnProperty(o)){t=!0;break}if("object"!==c(e[o])&&"function"!=typeof e[o]&&e[o]!==this.props[o]){t=!0;break}}return t||n.default.Children.count(this.props.children)!==n.default.Children.count(e.children)}}])&&y(t.prototype,r),l&&y(t,l),p}(n.default.Component);t.InnerSlider=O}));l(te),te.InnerSlider;var ne=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()},re=function(e){var t="",n=Object.keys(e);return n.forEach((function(r,i){var o=e[r];(function(e){return/[height|width]$/.test(e)})(r=ne(r))&&"number"==typeof o&&(o+="px"),t+=!0===o?r:!1===o?"not "+r:"("+r+": "+o+")",i<n.length-1&&(t+=" and ")})),t},ie=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach((function(n,r){t+=re(n),r<e.length-1&&(t+=", ")})),t):re(e)},oe=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r)&&n.__esModule?n:{default:n};var o={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return i.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return i.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0},a=o;t.default=a}));function ae(e){this.options=e,!e.deferSetup&&this.setup()}l(oe),ae.prototype={constructor:ae,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}};var se=ae;var le=function(e){return"function"==typeof e},ce=function(e){return"[object Array]"===Object.prototype.toString.apply(e)},ue=function(e,t){for(var n=0,r=e.length;n<r&&!1!==t(e[n],n);n++);},de=ue;function fe(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}fe.prototype={constuctor:fe,addHandler:function(e){var t=new se(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;de(t,(function(n,r){if(n.equals(e))return n.destroy(),!t.splice(r,1)}))},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){de(this.handlers,(function(e){e.destroy()})),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";de(this.handlers,(function(t){t[e]()}))}};var pe=fe,he=ue,ve=le,ye=ce;function be(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}be.prototype={constructor:be,register:function(e,t,n){var r=this.queries,i=n&&this.browserIsIncapable;return r[e]||(r[e]=new pe(e,i)),ve(t)&&(t={match:t}),ye(t)||(t=[t]),he(t,(function(t){ve(t)&&(t={match:t}),r[e].addHandler(t)})),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}};var ge=new be,me=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r),i=a(ie),o=a(oe);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var i=y(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?v(e):t}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=(0,E.canUseDOM)()&&ge,m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(c,e);var t,r,a,s=p(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),b(v(t=s.call(this,e)),"innerSliderRefHandler",(function(e){return t.innerSlider=e})),b(v(t),"slickPrev",(function(){return t.innerSlider.slickPrev()})),b(v(t),"slickNext",(function(){return t.innerSlider.slickNext()})),b(v(t),"slickGoTo",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.innerSlider.slickGoTo(e,n)})),b(v(t),"slickPause",(function(){return t.innerSlider.pause("paused")})),b(v(t),"slickPlay",(function(){return t.innerSlider.autoPlay("play")})),t.state={breakpoint:null},t._responsiveMediaHandlers=[],t}return t=c,r=[{key:"media",value:function(e,t){g.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,r){var o;o=0===r?(0,i.default)({minWidth:0,maxWidth:n}):(0,i.default)({minWidth:t[r-1]+1,maxWidth:n}),(0,E.canUseDOM)()&&e.media(o,(function(){e.setState({breakpoint:n})}))}));var n=(0,i.default)({minWidth:t.slice(-1)[0]});(0,E.canUseDOM)()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){g.unregister(e.query,e.handler)}))}},{key:"render",value:function(){var e,t,r=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===r.state.breakpoint})))[0].settings?"unslick":u(u(u({},o.default),this.props),t[0].settings):u(u({},o.default),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var i=n.default.Children.toArray(this.props.children);i=i.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var a=[],s=null,c=0;c<i.length;c+=e.rows*e.slidesPerRow){for(var d=[],f=c;f<c+e.rows*e.slidesPerRow;f+=e.slidesPerRow){for(var p=[],h=f;h<f+e.slidesPerRow&&(e.variableWidth&&i[h].props.style&&(s=i[h].props.style.width),!(h>=i.length));h+=1)p.push(n.default.cloneElement(i[h],{key:100*c+10*f+h,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));d.push(n.default.createElement("div",{key:10*c+f},p))}e.variableWidth?a.push(n.default.createElement("div",{key:c,style:{width:s}},d)):a.push(n.default.createElement("div",{key:c},d))}if("unslick"===e){var v="regular slider "+(this.props.className||"");return n.default.createElement("div",{className:v},i)}return a.length<=e.slidesToShow&&(e.unslick=!0),n.default.createElement(te.InnerSlider,l({style:this.props.style,ref:this.innerSliderRefHandler},e),a)}}],r&&d(t.prototype,r),a&&d(t,a),c}(n.default.Component);t.default=m}));l(me);var Se=l(s((function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=((n=me)&&n.__esModule?n:{default:n}).default;t.default=r})));f("/* Slider */\n.slick-slider\n{\n position: relative;\n\n display: block;\n box-sizing: border-box;\n\n -webkit-user-select: none;\n user-select: none;\n\n -webkit-touch-callout: none;\n -khtml-user-select: none;\n touch-action: pan-y;\n -webkit-tap-highlight-color: transparent;\n}\n\n.slick-list\n{\n position: relative;\n\n display: block;\n overflow: hidden;\n\n margin: 0;\n padding: 0;\n}\n.slick-list:focus\n{\n outline: none;\n}\n.slick-list.dragging\n{\n cursor: pointer;\n cursor: hand;\n}\n\n.slick-slider .slick-track,\n.slick-slider .slick-list\n{\n transform: translate3d(0, 0, 0);\n}\n\n.slick-track\n{\n position: relative;\n top: 0;\n left: 0;\n\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n.slick-track:before,\n.slick-track:after\n{\n display: table;\n\n content: '';\n}\n.slick-track:after\n{\n clear: both;\n}\n.slick-loading .slick-track\n{\n visibility: hidden;\n}\n\n.slick-slide\n{\n display: none;\n float: left;\n\n height: 100%;\n min-height: 1px;\n}\n[dir='rtl'] .slick-slide\n{\n float: right;\n}\n.slick-slide img\n{\n display: block;\n}\n.slick-slide.slick-loading img\n{\n display: none;\n}\n.slick-slide.dragging img\n{\n pointer-events: none;\n}\n.slick-initialized .slick-slide\n{\n display: block;\n}\n.slick-loading .slick-slide\n{\n visibility: hidden;\n}\n.slick-vertical .slick-slide\n{\n display: block;\n\n height: auto;\n\n border: 1px solid transparent;\n}\n.slick-arrow.slick-hidden {\n display: none;\n}\n");f("@charset 'UTF-8';\n/* Slider */\n.slick-loading .slick-list\n{\n background: #fff url('./ajax-loader.gif') center center no-repeat;\n}\n\n/* Icons */\n@font-face\n{\n font-family: 'slick';\n font-weight: normal;\n font-style: normal;\n\n src: url('./fonts/slick.eot');\n src: url('./fonts/slick.eot?#iefix') format('embedded-opentype'), url('./fonts/slick.woff') format('woff'), url('./fonts/slick.ttf') format('truetype'), url('./fonts/slick.svg#slick') format('svg');\n}\n/* Arrows */\n.slick-prev,\n.slick-next\n{\n font-size: 0;\n line-height: 0;\n\n position: absolute;\n top: 50%;\n\n display: block;\n\n width: 20px;\n height: 20px;\n padding: 0;\n transform: translate(0, -50%);\n\n cursor: pointer;\n\n color: transparent;\n border: none;\n outline: none;\n background: transparent;\n}\n.slick-prev:hover,\n.slick-prev:focus,\n.slick-next:hover,\n.slick-next:focus\n{\n color: transparent;\n outline: none;\n background: transparent;\n}\n.slick-prev:hover:before,\n.slick-prev:focus:before,\n.slick-next:hover:before,\n.slick-next:focus:before\n{\n opacity: 1;\n}\n.slick-prev.slick-disabled:before,\n.slick-next.slick-disabled:before\n{\n opacity: .25;\n}\n\n.slick-prev:before,\n.slick-next:before\n{\n font-family: 'slick';\n font-size: 20px;\n line-height: 1;\n\n opacity: .75;\n color: white;\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.slick-prev\n{\n left: -25px;\n}\n[dir='rtl'] .slick-prev\n{\n right: -25px;\n left: auto;\n}\n.slick-prev:before\n{\n content: '←';\n}\n[dir='rtl'] .slick-prev:before\n{\n content: '→';\n}\n\n.slick-next\n{\n right: -25px;\n}\n[dir='rtl'] .slick-next\n{\n right: auto;\n left: -25px;\n}\n.slick-next:before\n{\n content: '→';\n}\n[dir='rtl'] .slick-next:before\n{\n content: '←';\n}\n\n/* Dots */\n.slick-dotted.slick-slider\n{\n margin-bottom: 30px;\n}\n\n.slick-dots\n{\n position: absolute;\n bottom: -25px;\n\n display: block;\n\n width: 100%;\n padding: 0;\n margin: 0;\n\n list-style: none;\n\n text-align: center;\n}\n.slick-dots li\n{\n position: relative;\n\n display: inline-block;\n\n width: 20px;\n height: 20px;\n margin: 0 5px;\n padding: 0;\n\n cursor: pointer;\n}\n.slick-dots li button\n{\n font-size: 0;\n line-height: 0;\n\n display: block;\n\n width: 20px;\n height: 20px;\n padding: 5px;\n\n cursor: pointer;\n\n color: transparent;\n border: 0;\n outline: none;\n background: transparent;\n}\n.slick-dots li button:hover,\n.slick-dots li button:focus\n{\n outline: none;\n}\n.slick-dots li button:hover:before,\n.slick-dots li button:focus:before\n{\n opacity: 1;\n}\n.slick-dots li button:before\n{\n font-family: 'slick';\n font-size: 6px;\n line-height: 20px;\n\n position: absolute;\n top: 0;\n left: 0;\n\n width: 20px;\n height: 20px;\n\n content: '•';\n text-align: center;\n\n opacity: .25;\n color: black;\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.slick-dots li.slick-active button:before\n{\n opacity: .75;\n color: black;\n}\n");f(".carousel .slick-arrow {\n display: none !important; }\n");var we=["className","autoplay","children"],ke=i((function(i,s){var l=i.className,c=i.autoplay,d=i.children,f=e(i,we),p=o(null),h=t({dots:!0,fade:!0,infinite:!0,slidesToShow:1,slidesToScroll:1,autoplay:c,speed:500,autoplaySpeed:2e3,cssEase:"linear"},f);return a(s,(function(){return{prev:function(){p.current.slickPrev()},next:function(){p.current.slickNext()}}})),r.createElement(Se,n({className:u("carousel",l),ref:p},h),d)}));ke.defaultProps={className:void 0,autoplay:!1,children:void 0},ke.propTypes={className:d.string,autoplay:d.bool,children:d.arrayOf(d.any)};export{ke as default};
1
+ import { d as _objectWithoutProperties$1, b as _objectSpread2, a as _extends$3 } from './_rollupPluginBabelHelpers-7eb4ffba.js';
2
+ import React__default, { forwardRef, useRef, useImperativeHandle } from 'react';
3
+ import { a as classnames, c as classNames } from './index-cbd6bca9.js';
4
+ import PropTypes from 'prop-types';
5
+ import { c as commonjsGlobal, g as getAugmentedNamespace, a as getDefaultExportFromCjs } from './_commonjsHelpers-70de2c37.js';
6
+ import { s as styleInject } from './style-inject.es-1f59c1d0.js';
7
+
8
+ var lib = {};
9
+
10
+ var slider = {};
11
+
12
+ var innerSlider = {};
13
+
14
+ var initialState = {};
15
+
16
+ (function (exports) {
17
+
18
+ Object.defineProperty(exports, "__esModule", {
19
+ value: true
20
+ });
21
+ exports["default"] = void 0;
22
+ var initialState = {
23
+ animating: false,
24
+ autoplaying: null,
25
+ currentDirection: 0,
26
+ currentLeft: null,
27
+ currentSlide: 0,
28
+ direction: 1,
29
+ dragging: false,
30
+ edgeDragged: false,
31
+ initialized: false,
32
+ lazyLoadedList: [],
33
+ listHeight: null,
34
+ listWidth: null,
35
+ scrolling: false,
36
+ slideCount: null,
37
+ slideHeight: null,
38
+ slideWidth: null,
39
+ swipeLeft: null,
40
+ swiped: false,
41
+ // used by swipeEvent. differentites between touch and swipe.
42
+ swiping: false,
43
+ touchObject: {
44
+ startX: 0,
45
+ startY: 0,
46
+ curX: 0,
47
+ curY: 0
48
+ },
49
+ trackStyle: {},
50
+ trackWidth: 0,
51
+ targetSlide: 0
52
+ };
53
+ var _default = initialState;
54
+ exports["default"] = _default;
55
+ } (initialState));
56
+
57
+ /**
58
+ * lodash (Custom Build) <https://lodash.com/>
59
+ * Build: `lodash modularize exports="npm" -o ./`
60
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
61
+ * Released under MIT license <https://lodash.com/license>
62
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
63
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
64
+ */
65
+
66
+ /** Used as the `TypeError` message for "Functions" methods. */
67
+ var FUNC_ERROR_TEXT = 'Expected a function';
68
+
69
+ /** Used as references for various `Number` constants. */
70
+ var NAN = 0 / 0;
71
+
72
+ /** `Object#toString` result references. */
73
+ var symbolTag = '[object Symbol]';
74
+
75
+ /** Used to match leading and trailing whitespace. */
76
+ var reTrim = /^\s+|\s+$/g;
77
+
78
+ /** Used to detect bad signed hexadecimal string values. */
79
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
80
+
81
+ /** Used to detect binary string values. */
82
+ var reIsBinary = /^0b[01]+$/i;
83
+
84
+ /** Used to detect octal string values. */
85
+ var reIsOctal = /^0o[0-7]+$/i;
86
+
87
+ /** Built-in method references without a dependency on `root`. */
88
+ var freeParseInt = parseInt;
89
+
90
+ /** Detect free variable `global` from Node.js. */
91
+ var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
92
+
93
+ /** Detect free variable `self`. */
94
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
95
+
96
+ /** Used as a reference to the global object. */
97
+ var root = freeGlobal || freeSelf || Function('return this')();
98
+
99
+ /** Used for built-in method references. */
100
+ var objectProto = Object.prototype;
101
+
102
+ /**
103
+ * Used to resolve the
104
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
105
+ * of values.
106
+ */
107
+ var objectToString = objectProto.toString;
108
+
109
+ /* Built-in method references for those with the same name as other `lodash` methods. */
110
+ var nativeMax = Math.max,
111
+ nativeMin = Math.min;
112
+
113
+ /**
114
+ * Gets the timestamp of the number of milliseconds that have elapsed since
115
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
116
+ *
117
+ * @static
118
+ * @memberOf _
119
+ * @since 2.4.0
120
+ * @category Date
121
+ * @returns {number} Returns the timestamp.
122
+ * @example
123
+ *
124
+ * _.defer(function(stamp) {
125
+ * console.log(_.now() - stamp);
126
+ * }, _.now());
127
+ * // => Logs the number of milliseconds it took for the deferred invocation.
128
+ */
129
+ var now = function() {
130
+ return root.Date.now();
131
+ };
132
+
133
+ /**
134
+ * Creates a debounced function that delays invoking `func` until after `wait`
135
+ * milliseconds have elapsed since the last time the debounced function was
136
+ * invoked. The debounced function comes with a `cancel` method to cancel
137
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
138
+ * Provide `options` to indicate whether `func` should be invoked on the
139
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
140
+ * with the last arguments provided to the debounced function. Subsequent
141
+ * calls to the debounced function return the result of the last `func`
142
+ * invocation.
143
+ *
144
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
145
+ * invoked on the trailing edge of the timeout only if the debounced function
146
+ * is invoked more than once during the `wait` timeout.
147
+ *
148
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
149
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
150
+ *
151
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
152
+ * for details over the differences between `_.debounce` and `_.throttle`.
153
+ *
154
+ * @static
155
+ * @memberOf _
156
+ * @since 0.1.0
157
+ * @category Function
158
+ * @param {Function} func The function to debounce.
159
+ * @param {number} [wait=0] The number of milliseconds to delay.
160
+ * @param {Object} [options={}] The options object.
161
+ * @param {boolean} [options.leading=false]
162
+ * Specify invoking on the leading edge of the timeout.
163
+ * @param {number} [options.maxWait]
164
+ * The maximum time `func` is allowed to be delayed before it's invoked.
165
+ * @param {boolean} [options.trailing=true]
166
+ * Specify invoking on the trailing edge of the timeout.
167
+ * @returns {Function} Returns the new debounced function.
168
+ * @example
169
+ *
170
+ * // Avoid costly calculations while the window size is in flux.
171
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
172
+ *
173
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
174
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
175
+ * 'leading': true,
176
+ * 'trailing': false
177
+ * }));
178
+ *
179
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
180
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
181
+ * var source = new EventSource('/stream');
182
+ * jQuery(source).on('message', debounced);
183
+ *
184
+ * // Cancel the trailing debounced invocation.
185
+ * jQuery(window).on('popstate', debounced.cancel);
186
+ */
187
+ function debounce(func, wait, options) {
188
+ var lastArgs,
189
+ lastThis,
190
+ maxWait,
191
+ result,
192
+ timerId,
193
+ lastCallTime,
194
+ lastInvokeTime = 0,
195
+ leading = false,
196
+ maxing = false,
197
+ trailing = true;
198
+
199
+ if (typeof func != 'function') {
200
+ throw new TypeError(FUNC_ERROR_TEXT);
201
+ }
202
+ wait = toNumber(wait) || 0;
203
+ if (isObject(options)) {
204
+ leading = !!options.leading;
205
+ maxing = 'maxWait' in options;
206
+ maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
207
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
208
+ }
209
+
210
+ function invokeFunc(time) {
211
+ var args = lastArgs,
212
+ thisArg = lastThis;
213
+
214
+ lastArgs = lastThis = undefined;
215
+ lastInvokeTime = time;
216
+ result = func.apply(thisArg, args);
217
+ return result;
218
+ }
219
+
220
+ function leadingEdge(time) {
221
+ // Reset any `maxWait` timer.
222
+ lastInvokeTime = time;
223
+ // Start the timer for the trailing edge.
224
+ timerId = setTimeout(timerExpired, wait);
225
+ // Invoke the leading edge.
226
+ return leading ? invokeFunc(time) : result;
227
+ }
228
+
229
+ function remainingWait(time) {
230
+ var timeSinceLastCall = time - lastCallTime,
231
+ timeSinceLastInvoke = time - lastInvokeTime,
232
+ result = wait - timeSinceLastCall;
233
+
234
+ return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
235
+ }
236
+
237
+ function shouldInvoke(time) {
238
+ var timeSinceLastCall = time - lastCallTime,
239
+ timeSinceLastInvoke = time - lastInvokeTime;
240
+
241
+ // Either this is the first call, activity has stopped and we're at the
242
+ // trailing edge, the system time has gone backwards and we're treating
243
+ // it as the trailing edge, or we've hit the `maxWait` limit.
244
+ return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
245
+ (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
246
+ }
247
+
248
+ function timerExpired() {
249
+ var time = now();
250
+ if (shouldInvoke(time)) {
251
+ return trailingEdge(time);
252
+ }
253
+ // Restart the timer.
254
+ timerId = setTimeout(timerExpired, remainingWait(time));
255
+ }
256
+
257
+ function trailingEdge(time) {
258
+ timerId = undefined;
259
+
260
+ // Only invoke if we have `lastArgs` which means `func` has been
261
+ // debounced at least once.
262
+ if (trailing && lastArgs) {
263
+ return invokeFunc(time);
264
+ }
265
+ lastArgs = lastThis = undefined;
266
+ return result;
267
+ }
268
+
269
+ function cancel() {
270
+ if (timerId !== undefined) {
271
+ clearTimeout(timerId);
272
+ }
273
+ lastInvokeTime = 0;
274
+ lastArgs = lastCallTime = lastThis = timerId = undefined;
275
+ }
276
+
277
+ function flush() {
278
+ return timerId === undefined ? result : trailingEdge(now());
279
+ }
280
+
281
+ function debounced() {
282
+ var time = now(),
283
+ isInvoking = shouldInvoke(time);
284
+
285
+ lastArgs = arguments;
286
+ lastThis = this;
287
+ lastCallTime = time;
288
+
289
+ if (isInvoking) {
290
+ if (timerId === undefined) {
291
+ return leadingEdge(lastCallTime);
292
+ }
293
+ if (maxing) {
294
+ // Handle invocations in a tight loop.
295
+ timerId = setTimeout(timerExpired, wait);
296
+ return invokeFunc(lastCallTime);
297
+ }
298
+ }
299
+ if (timerId === undefined) {
300
+ timerId = setTimeout(timerExpired, wait);
301
+ }
302
+ return result;
303
+ }
304
+ debounced.cancel = cancel;
305
+ debounced.flush = flush;
306
+ return debounced;
307
+ }
308
+
309
+ /**
310
+ * Checks if `value` is the
311
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
312
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
313
+ *
314
+ * @static
315
+ * @memberOf _
316
+ * @since 0.1.0
317
+ * @category Lang
318
+ * @param {*} value The value to check.
319
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
320
+ * @example
321
+ *
322
+ * _.isObject({});
323
+ * // => true
324
+ *
325
+ * _.isObject([1, 2, 3]);
326
+ * // => true
327
+ *
328
+ * _.isObject(_.noop);
329
+ * // => true
330
+ *
331
+ * _.isObject(null);
332
+ * // => false
333
+ */
334
+ function isObject(value) {
335
+ var type = typeof value;
336
+ return !!value && (type == 'object' || type == 'function');
337
+ }
338
+
339
+ /**
340
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
341
+ * and has a `typeof` result of "object".
342
+ *
343
+ * @static
344
+ * @memberOf _
345
+ * @since 4.0.0
346
+ * @category Lang
347
+ * @param {*} value The value to check.
348
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
349
+ * @example
350
+ *
351
+ * _.isObjectLike({});
352
+ * // => true
353
+ *
354
+ * _.isObjectLike([1, 2, 3]);
355
+ * // => true
356
+ *
357
+ * _.isObjectLike(_.noop);
358
+ * // => false
359
+ *
360
+ * _.isObjectLike(null);
361
+ * // => false
362
+ */
363
+ function isObjectLike(value) {
364
+ return !!value && typeof value == 'object';
365
+ }
366
+
367
+ /**
368
+ * Checks if `value` is classified as a `Symbol` primitive or object.
369
+ *
370
+ * @static
371
+ * @memberOf _
372
+ * @since 4.0.0
373
+ * @category Lang
374
+ * @param {*} value The value to check.
375
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
376
+ * @example
377
+ *
378
+ * _.isSymbol(Symbol.iterator);
379
+ * // => true
380
+ *
381
+ * _.isSymbol('abc');
382
+ * // => false
383
+ */
384
+ function isSymbol(value) {
385
+ return typeof value == 'symbol' ||
386
+ (isObjectLike(value) && objectToString.call(value) == symbolTag);
387
+ }
388
+
389
+ /**
390
+ * Converts `value` to a number.
391
+ *
392
+ * @static
393
+ * @memberOf _
394
+ * @since 4.0.0
395
+ * @category Lang
396
+ * @param {*} value The value to process.
397
+ * @returns {number} Returns the number.
398
+ * @example
399
+ *
400
+ * _.toNumber(3.2);
401
+ * // => 3.2
402
+ *
403
+ * _.toNumber(Number.MIN_VALUE);
404
+ * // => 5e-324
405
+ *
406
+ * _.toNumber(Infinity);
407
+ * // => Infinity
408
+ *
409
+ * _.toNumber('3.2');
410
+ * // => 3.2
411
+ */
412
+ function toNumber(value) {
413
+ if (typeof value == 'number') {
414
+ return value;
415
+ }
416
+ if (isSymbol(value)) {
417
+ return NAN;
418
+ }
419
+ if (isObject(value)) {
420
+ var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
421
+ value = isObject(other) ? (other + '') : other;
422
+ }
423
+ if (typeof value != 'string') {
424
+ return value === 0 ? value : +value;
425
+ }
426
+ value = value.replace(reTrim, '');
427
+ var isBinary = reIsBinary.test(value);
428
+ return (isBinary || reIsOctal.test(value))
429
+ ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
430
+ : (reIsBadHex.test(value) ? NAN : +value);
431
+ }
432
+
433
+ var lodash_debounce = debounce;
434
+
435
+ var innerSliderUtils = {};
436
+
437
+ Object.defineProperty(innerSliderUtils, "__esModule", {
438
+ value: true
439
+ });
440
+ innerSliderUtils.clamp = clamp;
441
+ innerSliderUtils.canUseDOM = innerSliderUtils.slidesOnLeft = innerSliderUtils.slidesOnRight = innerSliderUtils.siblingDirection = innerSliderUtils.getTotalSlides = innerSliderUtils.getPostClones = innerSliderUtils.getPreClones = innerSliderUtils.getTrackLeft = innerSliderUtils.getTrackAnimateCSS = innerSliderUtils.getTrackCSS = innerSliderUtils.checkSpecKeys = innerSliderUtils.getSlideCount = innerSliderUtils.checkNavigable = innerSliderUtils.getNavigableIndexes = innerSliderUtils.swipeEnd = innerSliderUtils.swipeMove = innerSliderUtils.swipeStart = innerSliderUtils.keyHandler = innerSliderUtils.changeSlide = innerSliderUtils.slideHandler = innerSliderUtils.initializedState = innerSliderUtils.extractObject = innerSliderUtils.canGoNext = innerSliderUtils.getSwipeDirection = innerSliderUtils.getHeight = innerSliderUtils.getWidth = innerSliderUtils.lazySlidesOnRight = innerSliderUtils.lazySlidesOnLeft = innerSliderUtils.lazyEndIndex = innerSliderUtils.lazyStartIndex = innerSliderUtils.getRequiredLazySlides = innerSliderUtils.getOnDemandLazySlides = innerSliderUtils.safePreventDefault = void 0;
442
+
443
+ var _react$4 = _interopRequireDefault$4(React__default);
444
+
445
+ function _interopRequireDefault$4(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
446
+
447
+ function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
448
+
449
+ function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4(Object(source), true).forEach(function (key) { _defineProperty$4(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
450
+
451
+ function _defineProperty$4(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
452
+
453
+ function clamp(number, lowerBound, upperBound) {
454
+ return Math.max(lowerBound, Math.min(number, upperBound));
455
+ }
456
+
457
+ var safePreventDefault = function safePreventDefault(event) {
458
+ var passiveEvents = ["onTouchStart", "onTouchMove", "onWheel"];
459
+
460
+ if (!passiveEvents.includes(event._reactName)) {
461
+ event.preventDefault();
462
+ }
463
+ };
464
+
465
+ innerSliderUtils.safePreventDefault = safePreventDefault;
466
+
467
+ var getOnDemandLazySlides = function getOnDemandLazySlides(spec) {
468
+ var onDemandSlides = [];
469
+ var startIndex = lazyStartIndex(spec);
470
+ var endIndex = lazyEndIndex(spec);
471
+
472
+ for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {
473
+ if (spec.lazyLoadedList.indexOf(slideIndex) < 0) {
474
+ onDemandSlides.push(slideIndex);
475
+ }
476
+ }
477
+
478
+ return onDemandSlides;
479
+ }; // return list of slides that need to be present
480
+
481
+
482
+ innerSliderUtils.getOnDemandLazySlides = getOnDemandLazySlides;
483
+
484
+ var getRequiredLazySlides = function getRequiredLazySlides(spec) {
485
+ var requiredSlides = [];
486
+ var startIndex = lazyStartIndex(spec);
487
+ var endIndex = lazyEndIndex(spec);
488
+
489
+ for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {
490
+ requiredSlides.push(slideIndex);
491
+ }
492
+
493
+ return requiredSlides;
494
+ }; // startIndex that needs to be present
495
+
496
+
497
+ innerSliderUtils.getRequiredLazySlides = getRequiredLazySlides;
498
+
499
+ var lazyStartIndex = function lazyStartIndex(spec) {
500
+ return spec.currentSlide - lazySlidesOnLeft(spec);
501
+ };
502
+
503
+ innerSliderUtils.lazyStartIndex = lazyStartIndex;
504
+
505
+ var lazyEndIndex = function lazyEndIndex(spec) {
506
+ return spec.currentSlide + lazySlidesOnRight(spec);
507
+ };
508
+
509
+ innerSliderUtils.lazyEndIndex = lazyEndIndex;
510
+
511
+ var lazySlidesOnLeft = function lazySlidesOnLeft(spec) {
512
+ return spec.centerMode ? Math.floor(spec.slidesToShow / 2) + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : 0;
513
+ };
514
+
515
+ innerSliderUtils.lazySlidesOnLeft = lazySlidesOnLeft;
516
+
517
+ var lazySlidesOnRight = function lazySlidesOnRight(spec) {
518
+ return spec.centerMode ? Math.floor((spec.slidesToShow - 1) / 2) + 1 + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : spec.slidesToShow;
519
+ }; // get width of an element
520
+
521
+
522
+ innerSliderUtils.lazySlidesOnRight = lazySlidesOnRight;
523
+
524
+ var getWidth = function getWidth(elem) {
525
+ return elem && elem.offsetWidth || 0;
526
+ };
527
+
528
+ innerSliderUtils.getWidth = getWidth;
529
+
530
+ var getHeight = function getHeight(elem) {
531
+ return elem && elem.offsetHeight || 0;
532
+ };
533
+
534
+ innerSliderUtils.getHeight = getHeight;
535
+
536
+ var getSwipeDirection = function getSwipeDirection(touchObject) {
537
+ var verticalSwiping = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
538
+ var xDist, yDist, r, swipeAngle;
539
+ xDist = touchObject.startX - touchObject.curX;
540
+ yDist = touchObject.startY - touchObject.curY;
541
+ r = Math.atan2(yDist, xDist);
542
+ swipeAngle = Math.round(r * 180 / Math.PI);
543
+
544
+ if (swipeAngle < 0) {
545
+ swipeAngle = 360 - Math.abs(swipeAngle);
546
+ }
547
+
548
+ if (swipeAngle <= 45 && swipeAngle >= 0 || swipeAngle <= 360 && swipeAngle >= 315) {
549
+ return "left";
550
+ }
551
+
552
+ if (swipeAngle >= 135 && swipeAngle <= 225) {
553
+ return "right";
554
+ }
555
+
556
+ if (verticalSwiping === true) {
557
+ if (swipeAngle >= 35 && swipeAngle <= 135) {
558
+ return "up";
559
+ } else {
560
+ return "down";
561
+ }
562
+ }
563
+
564
+ return "vertical";
565
+ }; // whether or not we can go next
566
+
567
+
568
+ innerSliderUtils.getSwipeDirection = getSwipeDirection;
569
+
570
+ var canGoNext = function canGoNext(spec) {
571
+ var canGo = true;
572
+
573
+ if (!spec.infinite) {
574
+ if (spec.centerMode && spec.currentSlide >= spec.slideCount - 1) {
575
+ canGo = false;
576
+ } else if (spec.slideCount <= spec.slidesToShow || spec.currentSlide >= spec.slideCount - spec.slidesToShow) {
577
+ canGo = false;
578
+ }
579
+ }
580
+
581
+ return canGo;
582
+ }; // given an object and a list of keys, return new object with given keys
583
+
584
+
585
+ innerSliderUtils.canGoNext = canGoNext;
586
+
587
+ var extractObject = function extractObject(spec, keys) {
588
+ var newObject = {};
589
+ keys.forEach(function (key) {
590
+ return newObject[key] = spec[key];
591
+ });
592
+ return newObject;
593
+ }; // get initialized state
594
+
595
+
596
+ innerSliderUtils.extractObject = extractObject;
597
+
598
+ var initializedState = function initializedState(spec) {
599
+ // spec also contains listRef, trackRef
600
+ var slideCount = _react$4["default"].Children.count(spec.children);
601
+
602
+ var listNode = spec.listRef;
603
+ var listWidth = Math.ceil(getWidth(listNode));
604
+ var trackNode = spec.trackRef && spec.trackRef.node;
605
+ var trackWidth = Math.ceil(getWidth(trackNode));
606
+ var slideWidth;
607
+
608
+ if (!spec.vertical) {
609
+ var centerPaddingAdj = spec.centerMode && parseInt(spec.centerPadding) * 2;
610
+
611
+ if (typeof spec.centerPadding === "string" && spec.centerPadding.slice(-1) === "%") {
612
+ centerPaddingAdj *= listWidth / 100;
613
+ }
614
+
615
+ slideWidth = Math.ceil((listWidth - centerPaddingAdj) / spec.slidesToShow);
616
+ } else {
617
+ slideWidth = listWidth;
618
+ }
619
+
620
+ var slideHeight = listNode && getHeight(listNode.querySelector('[data-index="0"]'));
621
+ var listHeight = slideHeight * spec.slidesToShow;
622
+ var currentSlide = spec.currentSlide === undefined ? spec.initialSlide : spec.currentSlide;
623
+
624
+ if (spec.rtl && spec.currentSlide === undefined) {
625
+ currentSlide = slideCount - 1 - spec.initialSlide;
626
+ }
627
+
628
+ var lazyLoadedList = spec.lazyLoadedList || [];
629
+ var slidesToLoad = getOnDemandLazySlides(_objectSpread$4(_objectSpread$4({}, spec), {}, {
630
+ currentSlide: currentSlide,
631
+ lazyLoadedList: lazyLoadedList
632
+ }));
633
+ lazyLoadedList = lazyLoadedList.concat(slidesToLoad);
634
+ var state = {
635
+ slideCount: slideCount,
636
+ slideWidth: slideWidth,
637
+ listWidth: listWidth,
638
+ trackWidth: trackWidth,
639
+ currentSlide: currentSlide,
640
+ slideHeight: slideHeight,
641
+ listHeight: listHeight,
642
+ lazyLoadedList: lazyLoadedList
643
+ };
644
+
645
+ if (spec.autoplaying === null && spec.autoplay) {
646
+ state["autoplaying"] = "playing";
647
+ }
648
+
649
+ return state;
650
+ };
651
+
652
+ innerSliderUtils.initializedState = initializedState;
653
+
654
+ var slideHandler = function slideHandler(spec) {
655
+ var waitForAnimate = spec.waitForAnimate,
656
+ animating = spec.animating,
657
+ fade = spec.fade,
658
+ infinite = spec.infinite,
659
+ index = spec.index,
660
+ slideCount = spec.slideCount,
661
+ lazyLoad = spec.lazyLoad,
662
+ currentSlide = spec.currentSlide,
663
+ centerMode = spec.centerMode,
664
+ slidesToScroll = spec.slidesToScroll,
665
+ slidesToShow = spec.slidesToShow,
666
+ useCSS = spec.useCSS;
667
+ var lazyLoadedList = spec.lazyLoadedList;
668
+ if (waitForAnimate && animating) return {};
669
+ var animationSlide = index,
670
+ finalSlide,
671
+ animationLeft,
672
+ finalLeft;
673
+ var state = {},
674
+ nextState = {};
675
+ var targetSlide = infinite ? index : clamp(index, 0, slideCount - 1);
676
+
677
+ if (fade) {
678
+ if (!infinite && (index < 0 || index >= slideCount)) return {};
679
+
680
+ if (index < 0) {
681
+ animationSlide = index + slideCount;
682
+ } else if (index >= slideCount) {
683
+ animationSlide = index - slideCount;
684
+ }
685
+
686
+ if (lazyLoad && lazyLoadedList.indexOf(animationSlide) < 0) {
687
+ lazyLoadedList = lazyLoadedList.concat(animationSlide);
688
+ }
689
+
690
+ state = {
691
+ animating: true,
692
+ currentSlide: animationSlide,
693
+ lazyLoadedList: lazyLoadedList,
694
+ targetSlide: animationSlide
695
+ };
696
+ nextState = {
697
+ animating: false,
698
+ targetSlide: animationSlide
699
+ };
700
+ } else {
701
+ finalSlide = animationSlide;
702
+
703
+ if (animationSlide < 0) {
704
+ finalSlide = animationSlide + slideCount;
705
+ if (!infinite) finalSlide = 0;else if (slideCount % slidesToScroll !== 0) finalSlide = slideCount - slideCount % slidesToScroll;
706
+ } else if (!canGoNext(spec) && animationSlide > currentSlide) {
707
+ animationSlide = finalSlide = currentSlide;
708
+ } else if (centerMode && animationSlide >= slideCount) {
709
+ animationSlide = infinite ? slideCount : slideCount - 1;
710
+ finalSlide = infinite ? 0 : slideCount - 1;
711
+ } else if (animationSlide >= slideCount) {
712
+ finalSlide = animationSlide - slideCount;
713
+ if (!infinite) finalSlide = slideCount - slidesToShow;else if (slideCount % slidesToScroll !== 0) finalSlide = 0;
714
+ }
715
+
716
+ if (!infinite && animationSlide + slidesToShow >= slideCount) {
717
+ finalSlide = slideCount - slidesToShow;
718
+ }
719
+
720
+ animationLeft = getTrackLeft(_objectSpread$4(_objectSpread$4({}, spec), {}, {
721
+ slideIndex: animationSlide
722
+ }));
723
+ finalLeft = getTrackLeft(_objectSpread$4(_objectSpread$4({}, spec), {}, {
724
+ slideIndex: finalSlide
725
+ }));
726
+
727
+ if (!infinite) {
728
+ if (animationLeft === finalLeft) animationSlide = finalSlide;
729
+ animationLeft = finalLeft;
730
+ }
731
+
732
+ if (lazyLoad) {
733
+ lazyLoadedList = lazyLoadedList.concat(getOnDemandLazySlides(_objectSpread$4(_objectSpread$4({}, spec), {}, {
734
+ currentSlide: animationSlide
735
+ })));
736
+ }
737
+
738
+ if (!useCSS) {
739
+ state = {
740
+ currentSlide: finalSlide,
741
+ trackStyle: getTrackCSS(_objectSpread$4(_objectSpread$4({}, spec), {}, {
742
+ left: finalLeft
743
+ })),
744
+ lazyLoadedList: lazyLoadedList,
745
+ targetSlide: targetSlide
746
+ };
747
+ } else {
748
+ state = {
749
+ animating: true,
750
+ currentSlide: finalSlide,
751
+ trackStyle: getTrackAnimateCSS(_objectSpread$4(_objectSpread$4({}, spec), {}, {
752
+ left: animationLeft
753
+ })),
754
+ lazyLoadedList: lazyLoadedList,
755
+ targetSlide: targetSlide
756
+ };
757
+ nextState = {
758
+ animating: false,
759
+ currentSlide: finalSlide,
760
+ trackStyle: getTrackCSS(_objectSpread$4(_objectSpread$4({}, spec), {}, {
761
+ left: finalLeft
762
+ })),
763
+ swipeLeft: null,
764
+ targetSlide: targetSlide
765
+ };
766
+ }
767
+ }
768
+
769
+ return {
770
+ state: state,
771
+ nextState: nextState
772
+ };
773
+ };
774
+
775
+ innerSliderUtils.slideHandler = slideHandler;
776
+
777
+ var changeSlide = function changeSlide(spec, options) {
778
+ var indexOffset, previousInt, slideOffset, unevenOffset, targetSlide;
779
+ var slidesToScroll = spec.slidesToScroll,
780
+ slidesToShow = spec.slidesToShow,
781
+ slideCount = spec.slideCount,
782
+ currentSlide = spec.currentSlide,
783
+ previousTargetSlide = spec.targetSlide,
784
+ lazyLoad = spec.lazyLoad,
785
+ infinite = spec.infinite;
786
+ unevenOffset = slideCount % slidesToScroll !== 0;
787
+ indexOffset = unevenOffset ? 0 : (slideCount - currentSlide) % slidesToScroll;
788
+
789
+ if (options.message === "previous") {
790
+ slideOffset = indexOffset === 0 ? slidesToScroll : slidesToShow - indexOffset;
791
+ targetSlide = currentSlide - slideOffset;
792
+
793
+ if (lazyLoad && !infinite) {
794
+ previousInt = currentSlide - slideOffset;
795
+ targetSlide = previousInt === -1 ? slideCount - 1 : previousInt;
796
+ }
797
+
798
+ if (!infinite) {
799
+ targetSlide = previousTargetSlide - slidesToScroll;
800
+ }
801
+ } else if (options.message === "next") {
802
+ slideOffset = indexOffset === 0 ? slidesToScroll : indexOffset;
803
+ targetSlide = currentSlide + slideOffset;
804
+
805
+ if (lazyLoad && !infinite) {
806
+ targetSlide = (currentSlide + slidesToScroll) % slideCount + indexOffset;
807
+ }
808
+
809
+ if (!infinite) {
810
+ targetSlide = previousTargetSlide + slidesToScroll;
811
+ }
812
+ } else if (options.message === "dots") {
813
+ // Click on dots
814
+ targetSlide = options.index * options.slidesToScroll;
815
+ } else if (options.message === "children") {
816
+ // Click on the slides
817
+ targetSlide = options.index;
818
+
819
+ if (infinite) {
820
+ var direction = siblingDirection(_objectSpread$4(_objectSpread$4({}, spec), {}, {
821
+ targetSlide: targetSlide
822
+ }));
823
+
824
+ if (targetSlide > options.currentSlide && direction === "left") {
825
+ targetSlide = targetSlide - slideCount;
826
+ } else if (targetSlide < options.currentSlide && direction === "right") {
827
+ targetSlide = targetSlide + slideCount;
828
+ }
829
+ }
830
+ } else if (options.message === "index") {
831
+ targetSlide = Number(options.index);
832
+ }
833
+
834
+ return targetSlide;
835
+ };
836
+
837
+ innerSliderUtils.changeSlide = changeSlide;
838
+
839
+ var keyHandler = function keyHandler(e, accessibility, rtl) {
840
+ if (e.target.tagName.match("TEXTAREA|INPUT|SELECT") || !accessibility) return "";
841
+ if (e.keyCode === 37) return rtl ? "next" : "previous";
842
+ if (e.keyCode === 39) return rtl ? "previous" : "next";
843
+ return "";
844
+ };
845
+
846
+ innerSliderUtils.keyHandler = keyHandler;
847
+
848
+ var swipeStart = function swipeStart(e, swipe, draggable) {
849
+ e.target.tagName === "IMG" && safePreventDefault(e);
850
+ if (!swipe || !draggable && e.type.indexOf("mouse") !== -1) return "";
851
+ return {
852
+ dragging: true,
853
+ touchObject: {
854
+ startX: e.touches ? e.touches[0].pageX : e.clientX,
855
+ startY: e.touches ? e.touches[0].pageY : e.clientY,
856
+ curX: e.touches ? e.touches[0].pageX : e.clientX,
857
+ curY: e.touches ? e.touches[0].pageY : e.clientY
858
+ }
859
+ };
860
+ };
861
+
862
+ innerSliderUtils.swipeStart = swipeStart;
863
+
864
+ var swipeMove = function swipeMove(e, spec) {
865
+ // spec also contains, trackRef and slideIndex
866
+ var scrolling = spec.scrolling,
867
+ animating = spec.animating,
868
+ vertical = spec.vertical,
869
+ swipeToSlide = spec.swipeToSlide,
870
+ verticalSwiping = spec.verticalSwiping,
871
+ rtl = spec.rtl,
872
+ currentSlide = spec.currentSlide,
873
+ edgeFriction = spec.edgeFriction,
874
+ edgeDragged = spec.edgeDragged,
875
+ onEdge = spec.onEdge,
876
+ swiped = spec.swiped,
877
+ swiping = spec.swiping,
878
+ slideCount = spec.slideCount,
879
+ slidesToScroll = spec.slidesToScroll,
880
+ infinite = spec.infinite,
881
+ touchObject = spec.touchObject,
882
+ swipeEvent = spec.swipeEvent,
883
+ listHeight = spec.listHeight,
884
+ listWidth = spec.listWidth;
885
+ if (scrolling) return;
886
+ if (animating) return safePreventDefault(e);
887
+ if (vertical && swipeToSlide && verticalSwiping) safePreventDefault(e);
888
+ var swipeLeft,
889
+ state = {};
890
+ var curLeft = getTrackLeft(spec);
891
+ touchObject.curX = e.touches ? e.touches[0].pageX : e.clientX;
892
+ touchObject.curY = e.touches ? e.touches[0].pageY : e.clientY;
893
+ touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curX - touchObject.startX, 2)));
894
+ var verticalSwipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curY - touchObject.startY, 2)));
895
+
896
+ if (!verticalSwiping && !swiping && verticalSwipeLength > 10) {
897
+ return {
898
+ scrolling: true
899
+ };
900
+ }
901
+
902
+ if (verticalSwiping) touchObject.swipeLength = verticalSwipeLength;
903
+ var positionOffset = (!rtl ? 1 : -1) * (touchObject.curX > touchObject.startX ? 1 : -1);
904
+ if (verticalSwiping) positionOffset = touchObject.curY > touchObject.startY ? 1 : -1;
905
+ var dotCount = Math.ceil(slideCount / slidesToScroll);
906
+ var swipeDirection = getSwipeDirection(spec.touchObject, verticalSwiping);
907
+ var touchSwipeLength = touchObject.swipeLength;
908
+
909
+ if (!infinite) {
910
+ if (currentSlide === 0 && (swipeDirection === "right" || swipeDirection === "down") || currentSlide + 1 >= dotCount && (swipeDirection === "left" || swipeDirection === "up") || !canGoNext(spec) && (swipeDirection === "left" || swipeDirection === "up")) {
911
+ touchSwipeLength = touchObject.swipeLength * edgeFriction;
912
+
913
+ if (edgeDragged === false && onEdge) {
914
+ onEdge(swipeDirection);
915
+ state["edgeDragged"] = true;
916
+ }
917
+ }
918
+ }
919
+
920
+ if (!swiped && swipeEvent) {
921
+ swipeEvent(swipeDirection);
922
+ state["swiped"] = true;
923
+ }
924
+
925
+ if (!vertical) {
926
+ if (!rtl) {
927
+ swipeLeft = curLeft + touchSwipeLength * positionOffset;
928
+ } else {
929
+ swipeLeft = curLeft - touchSwipeLength * positionOffset;
930
+ }
931
+ } else {
932
+ swipeLeft = curLeft + touchSwipeLength * (listHeight / listWidth) * positionOffset;
933
+ }
934
+
935
+ if (verticalSwiping) {
936
+ swipeLeft = curLeft + touchSwipeLength * positionOffset;
937
+ }
938
+
939
+ state = _objectSpread$4(_objectSpread$4({}, state), {}, {
940
+ touchObject: touchObject,
941
+ swipeLeft: swipeLeft,
942
+ trackStyle: getTrackCSS(_objectSpread$4(_objectSpread$4({}, spec), {}, {
943
+ left: swipeLeft
944
+ }))
945
+ });
946
+
947
+ if (Math.abs(touchObject.curX - touchObject.startX) < Math.abs(touchObject.curY - touchObject.startY) * 0.8) {
948
+ return state;
949
+ }
950
+
951
+ if (touchObject.swipeLength > 10) {
952
+ state["swiping"] = true;
953
+ safePreventDefault(e);
954
+ }
955
+
956
+ return state;
957
+ };
958
+
959
+ innerSliderUtils.swipeMove = swipeMove;
960
+
961
+ var swipeEnd = function swipeEnd(e, spec) {
962
+ var dragging = spec.dragging,
963
+ swipe = spec.swipe,
964
+ touchObject = spec.touchObject,
965
+ listWidth = spec.listWidth,
966
+ touchThreshold = spec.touchThreshold,
967
+ verticalSwiping = spec.verticalSwiping,
968
+ listHeight = spec.listHeight,
969
+ swipeToSlide = spec.swipeToSlide,
970
+ scrolling = spec.scrolling,
971
+ onSwipe = spec.onSwipe,
972
+ targetSlide = spec.targetSlide,
973
+ currentSlide = spec.currentSlide,
974
+ infinite = spec.infinite;
975
+
976
+ if (!dragging) {
977
+ if (swipe) safePreventDefault(e);
978
+ return {};
979
+ }
980
+
981
+ var minSwipe = verticalSwiping ? listHeight / touchThreshold : listWidth / touchThreshold;
982
+ var swipeDirection = getSwipeDirection(touchObject, verticalSwiping); // reset the state of touch related state variables.
983
+
984
+ var state = {
985
+ dragging: false,
986
+ edgeDragged: false,
987
+ scrolling: false,
988
+ swiping: false,
989
+ swiped: false,
990
+ swipeLeft: null,
991
+ touchObject: {}
992
+ };
993
+
994
+ if (scrolling) {
995
+ return state;
996
+ }
997
+
998
+ if (!touchObject.swipeLength) {
999
+ return state;
1000
+ }
1001
+
1002
+ if (touchObject.swipeLength > minSwipe) {
1003
+ safePreventDefault(e);
1004
+
1005
+ if (onSwipe) {
1006
+ onSwipe(swipeDirection);
1007
+ }
1008
+
1009
+ var slideCount, newSlide;
1010
+ var activeSlide = infinite ? currentSlide : targetSlide;
1011
+
1012
+ switch (swipeDirection) {
1013
+ case "left":
1014
+ case "up":
1015
+ newSlide = activeSlide + getSlideCount(spec);
1016
+ slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;
1017
+ state["currentDirection"] = 0;
1018
+ break;
1019
+
1020
+ case "right":
1021
+ case "down":
1022
+ newSlide = activeSlide - getSlideCount(spec);
1023
+ slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;
1024
+ state["currentDirection"] = 1;
1025
+ break;
1026
+
1027
+ default:
1028
+ slideCount = activeSlide;
1029
+ }
1030
+
1031
+ state["triggerSlideHandler"] = slideCount;
1032
+ } else {
1033
+ // Adjust the track back to it's original position.
1034
+ var currentLeft = getTrackLeft(spec);
1035
+ state["trackStyle"] = getTrackAnimateCSS(_objectSpread$4(_objectSpread$4({}, spec), {}, {
1036
+ left: currentLeft
1037
+ }));
1038
+ }
1039
+
1040
+ return state;
1041
+ };
1042
+
1043
+ innerSliderUtils.swipeEnd = swipeEnd;
1044
+
1045
+ var getNavigableIndexes = function getNavigableIndexes(spec) {
1046
+ var max = spec.infinite ? spec.slideCount * 2 : spec.slideCount;
1047
+ var breakpoint = spec.infinite ? spec.slidesToShow * -1 : 0;
1048
+ var counter = spec.infinite ? spec.slidesToShow * -1 : 0;
1049
+ var indexes = [];
1050
+
1051
+ while (breakpoint < max) {
1052
+ indexes.push(breakpoint);
1053
+ breakpoint = counter + spec.slidesToScroll;
1054
+ counter += Math.min(spec.slidesToScroll, spec.slidesToShow);
1055
+ }
1056
+
1057
+ return indexes;
1058
+ };
1059
+
1060
+ innerSliderUtils.getNavigableIndexes = getNavigableIndexes;
1061
+
1062
+ var checkNavigable = function checkNavigable(spec, index) {
1063
+ var navigables = getNavigableIndexes(spec);
1064
+ var prevNavigable = 0;
1065
+
1066
+ if (index > navigables[navigables.length - 1]) {
1067
+ index = navigables[navigables.length - 1];
1068
+ } else {
1069
+ for (var n in navigables) {
1070
+ if (index < navigables[n]) {
1071
+ index = prevNavigable;
1072
+ break;
1073
+ }
1074
+
1075
+ prevNavigable = navigables[n];
1076
+ }
1077
+ }
1078
+
1079
+ return index;
1080
+ };
1081
+
1082
+ innerSliderUtils.checkNavigable = checkNavigable;
1083
+
1084
+ var getSlideCount = function getSlideCount(spec) {
1085
+ var centerOffset = spec.centerMode ? spec.slideWidth * Math.floor(spec.slidesToShow / 2) : 0;
1086
+
1087
+ if (spec.swipeToSlide) {
1088
+ var swipedSlide;
1089
+ var slickList = spec.listRef;
1090
+ var slides = slickList.querySelectorAll && slickList.querySelectorAll(".slick-slide") || [];
1091
+ Array.from(slides).every(function (slide) {
1092
+ if (!spec.vertical) {
1093
+ if (slide.offsetLeft - centerOffset + getWidth(slide) / 2 > spec.swipeLeft * -1) {
1094
+ swipedSlide = slide;
1095
+ return false;
1096
+ }
1097
+ } else {
1098
+ if (slide.offsetTop + getHeight(slide) / 2 > spec.swipeLeft * -1) {
1099
+ swipedSlide = slide;
1100
+ return false;
1101
+ }
1102
+ }
1103
+
1104
+ return true;
1105
+ });
1106
+
1107
+ if (!swipedSlide) {
1108
+ return 0;
1109
+ }
1110
+
1111
+ var currentIndex = spec.rtl === true ? spec.slideCount - spec.currentSlide : spec.currentSlide;
1112
+ var slidesTraversed = Math.abs(swipedSlide.dataset.index - currentIndex) || 1;
1113
+ return slidesTraversed;
1114
+ } else {
1115
+ return spec.slidesToScroll;
1116
+ }
1117
+ };
1118
+
1119
+ innerSliderUtils.getSlideCount = getSlideCount;
1120
+
1121
+ var checkSpecKeys = function checkSpecKeys(spec, keysArray) {
1122
+ return keysArray.reduce(function (value, key) {
1123
+ return value && spec.hasOwnProperty(key);
1124
+ }, true) ? null : console.error("Keys Missing:", spec);
1125
+ };
1126
+
1127
+ innerSliderUtils.checkSpecKeys = checkSpecKeys;
1128
+
1129
+ var getTrackCSS = function getTrackCSS(spec) {
1130
+ checkSpecKeys(spec, ["left", "variableWidth", "slideCount", "slidesToShow", "slideWidth"]);
1131
+ var trackWidth, trackHeight;
1132
+ var trackChildren = spec.slideCount + 2 * spec.slidesToShow;
1133
+
1134
+ if (!spec.vertical) {
1135
+ trackWidth = getTotalSlides(spec) * spec.slideWidth;
1136
+ } else {
1137
+ trackHeight = trackChildren * spec.slideHeight;
1138
+ }
1139
+
1140
+ var style = {
1141
+ opacity: 1,
1142
+ transition: "",
1143
+ WebkitTransition: ""
1144
+ };
1145
+
1146
+ if (spec.useTransform) {
1147
+ var WebkitTransform = !spec.vertical ? "translate3d(" + spec.left + "px, 0px, 0px)" : "translate3d(0px, " + spec.left + "px, 0px)";
1148
+ var transform = !spec.vertical ? "translate3d(" + spec.left + "px, 0px, 0px)" : "translate3d(0px, " + spec.left + "px, 0px)";
1149
+ var msTransform = !spec.vertical ? "translateX(" + spec.left + "px)" : "translateY(" + spec.left + "px)";
1150
+ style = _objectSpread$4(_objectSpread$4({}, style), {}, {
1151
+ WebkitTransform: WebkitTransform,
1152
+ transform: transform,
1153
+ msTransform: msTransform
1154
+ });
1155
+ } else {
1156
+ if (spec.vertical) {
1157
+ style["top"] = spec.left;
1158
+ } else {
1159
+ style["left"] = spec.left;
1160
+ }
1161
+ }
1162
+
1163
+ if (spec.fade) style = {
1164
+ opacity: 1
1165
+ };
1166
+ if (trackWidth) style.width = trackWidth;
1167
+ if (trackHeight) style.height = trackHeight; // Fallback for IE8
1168
+
1169
+ if (window && !window.addEventListener && window.attachEvent) {
1170
+ if (!spec.vertical) {
1171
+ style.marginLeft = spec.left + "px";
1172
+ } else {
1173
+ style.marginTop = spec.left + "px";
1174
+ }
1175
+ }
1176
+
1177
+ return style;
1178
+ };
1179
+
1180
+ innerSliderUtils.getTrackCSS = getTrackCSS;
1181
+
1182
+ var getTrackAnimateCSS = function getTrackAnimateCSS(spec) {
1183
+ checkSpecKeys(spec, ["left", "variableWidth", "slideCount", "slidesToShow", "slideWidth", "speed", "cssEase"]);
1184
+ var style = getTrackCSS(spec); // useCSS is true by default so it can be undefined
1185
+
1186
+ if (spec.useTransform) {
1187
+ style.WebkitTransition = "-webkit-transform " + spec.speed + "ms " + spec.cssEase;
1188
+ style.transition = "transform " + spec.speed + "ms " + spec.cssEase;
1189
+ } else {
1190
+ if (spec.vertical) {
1191
+ style.transition = "top " + spec.speed + "ms " + spec.cssEase;
1192
+ } else {
1193
+ style.transition = "left " + spec.speed + "ms " + spec.cssEase;
1194
+ }
1195
+ }
1196
+
1197
+ return style;
1198
+ };
1199
+
1200
+ innerSliderUtils.getTrackAnimateCSS = getTrackAnimateCSS;
1201
+
1202
+ var getTrackLeft = function getTrackLeft(spec) {
1203
+ if (spec.unslick) {
1204
+ return 0;
1205
+ }
1206
+
1207
+ checkSpecKeys(spec, ["slideIndex", "trackRef", "infinite", "centerMode", "slideCount", "slidesToShow", "slidesToScroll", "slideWidth", "listWidth", "variableWidth", "slideHeight"]);
1208
+ var slideIndex = spec.slideIndex,
1209
+ trackRef = spec.trackRef,
1210
+ infinite = spec.infinite,
1211
+ centerMode = spec.centerMode,
1212
+ slideCount = spec.slideCount,
1213
+ slidesToShow = spec.slidesToShow,
1214
+ slidesToScroll = spec.slidesToScroll,
1215
+ slideWidth = spec.slideWidth,
1216
+ listWidth = spec.listWidth,
1217
+ variableWidth = spec.variableWidth,
1218
+ slideHeight = spec.slideHeight,
1219
+ fade = spec.fade,
1220
+ vertical = spec.vertical;
1221
+ var slideOffset = 0;
1222
+ var targetLeft;
1223
+ var targetSlide;
1224
+ var verticalOffset = 0;
1225
+
1226
+ if (fade || spec.slideCount === 1) {
1227
+ return 0;
1228
+ }
1229
+
1230
+ var slidesToOffset = 0;
1231
+
1232
+ if (infinite) {
1233
+ slidesToOffset = -getPreClones(spec); // bring active slide to the beginning of visual area
1234
+ // if next scroll doesn't have enough children, just reach till the end of original slides instead of shifting slidesToScroll children
1235
+
1236
+ if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) {
1237
+ slidesToOffset = -(slideIndex > slideCount ? slidesToShow - (slideIndex - slideCount) : slideCount % slidesToScroll);
1238
+ } // shift current slide to center of the frame
1239
+
1240
+
1241
+ if (centerMode) {
1242
+ slidesToOffset += parseInt(slidesToShow / 2);
1243
+ }
1244
+ } else {
1245
+ if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) {
1246
+ slidesToOffset = slidesToShow - slideCount % slidesToScroll;
1247
+ }
1248
+
1249
+ if (centerMode) {
1250
+ slidesToOffset = parseInt(slidesToShow / 2);
1251
+ }
1252
+ }
1253
+
1254
+ slideOffset = slidesToOffset * slideWidth;
1255
+ verticalOffset = slidesToOffset * slideHeight;
1256
+
1257
+ if (!vertical) {
1258
+ targetLeft = slideIndex * slideWidth * -1 + slideOffset;
1259
+ } else {
1260
+ targetLeft = slideIndex * slideHeight * -1 + verticalOffset;
1261
+ }
1262
+
1263
+ if (variableWidth === true) {
1264
+ var targetSlideIndex;
1265
+ var trackElem = trackRef && trackRef.node;
1266
+ targetSlideIndex = slideIndex + getPreClones(spec);
1267
+ targetSlide = trackElem && trackElem.childNodes[targetSlideIndex];
1268
+ targetLeft = targetSlide ? targetSlide.offsetLeft * -1 : 0;
1269
+
1270
+ if (centerMode === true) {
1271
+ targetSlideIndex = infinite ? slideIndex + getPreClones(spec) : slideIndex;
1272
+ targetSlide = trackElem && trackElem.children[targetSlideIndex];
1273
+ targetLeft = 0;
1274
+
1275
+ for (var slide = 0; slide < targetSlideIndex; slide++) {
1276
+ targetLeft -= trackElem && trackElem.children[slide] && trackElem.children[slide].offsetWidth;
1277
+ }
1278
+
1279
+ targetLeft -= parseInt(spec.centerPadding);
1280
+ targetLeft += targetSlide && (listWidth - targetSlide.offsetWidth) / 2;
1281
+ }
1282
+ }
1283
+
1284
+ return targetLeft;
1285
+ };
1286
+
1287
+ innerSliderUtils.getTrackLeft = getTrackLeft;
1288
+
1289
+ var getPreClones = function getPreClones(spec) {
1290
+ if (spec.unslick || !spec.infinite) {
1291
+ return 0;
1292
+ }
1293
+
1294
+ if (spec.variableWidth) {
1295
+ return spec.slideCount;
1296
+ }
1297
+
1298
+ return spec.slidesToShow + (spec.centerMode ? 1 : 0);
1299
+ };
1300
+
1301
+ innerSliderUtils.getPreClones = getPreClones;
1302
+
1303
+ var getPostClones = function getPostClones(spec) {
1304
+ if (spec.unslick || !spec.infinite) {
1305
+ return 0;
1306
+ }
1307
+
1308
+ return spec.slideCount;
1309
+ };
1310
+
1311
+ innerSliderUtils.getPostClones = getPostClones;
1312
+
1313
+ var getTotalSlides = function getTotalSlides(spec) {
1314
+ return spec.slideCount === 1 ? 1 : getPreClones(spec) + spec.slideCount + getPostClones(spec);
1315
+ };
1316
+
1317
+ innerSliderUtils.getTotalSlides = getTotalSlides;
1318
+
1319
+ var siblingDirection = function siblingDirection(spec) {
1320
+ if (spec.targetSlide > spec.currentSlide) {
1321
+ if (spec.targetSlide > spec.currentSlide + slidesOnRight(spec)) {
1322
+ return "left";
1323
+ }
1324
+
1325
+ return "right";
1326
+ } else {
1327
+ if (spec.targetSlide < spec.currentSlide - slidesOnLeft(spec)) {
1328
+ return "right";
1329
+ }
1330
+
1331
+ return "left";
1332
+ }
1333
+ };
1334
+
1335
+ innerSliderUtils.siblingDirection = siblingDirection;
1336
+
1337
+ var slidesOnRight = function slidesOnRight(_ref) {
1338
+ var slidesToShow = _ref.slidesToShow,
1339
+ centerMode = _ref.centerMode,
1340
+ rtl = _ref.rtl,
1341
+ centerPadding = _ref.centerPadding;
1342
+
1343
+ // returns no of slides on the right of active slide
1344
+ if (centerMode) {
1345
+ var right = (slidesToShow - 1) / 2 + 1;
1346
+ if (parseInt(centerPadding) > 0) right += 1;
1347
+ if (rtl && slidesToShow % 2 === 0) right += 1;
1348
+ return right;
1349
+ }
1350
+
1351
+ if (rtl) {
1352
+ return 0;
1353
+ }
1354
+
1355
+ return slidesToShow - 1;
1356
+ };
1357
+
1358
+ innerSliderUtils.slidesOnRight = slidesOnRight;
1359
+
1360
+ var slidesOnLeft = function slidesOnLeft(_ref2) {
1361
+ var slidesToShow = _ref2.slidesToShow,
1362
+ centerMode = _ref2.centerMode,
1363
+ rtl = _ref2.rtl,
1364
+ centerPadding = _ref2.centerPadding;
1365
+
1366
+ // returns no of slides on the left of active slide
1367
+ if (centerMode) {
1368
+ var left = (slidesToShow - 1) / 2 + 1;
1369
+ if (parseInt(centerPadding) > 0) left += 1;
1370
+ if (!rtl && slidesToShow % 2 === 0) left += 1;
1371
+ return left;
1372
+ }
1373
+
1374
+ if (rtl) {
1375
+ return slidesToShow - 1;
1376
+ }
1377
+
1378
+ return 0;
1379
+ };
1380
+
1381
+ innerSliderUtils.slidesOnLeft = slidesOnLeft;
1382
+
1383
+ var canUseDOM = function canUseDOM() {
1384
+ return !!(typeof window !== "undefined" && window.document && window.document.createElement);
1385
+ };
1386
+
1387
+ innerSliderUtils.canUseDOM = canUseDOM;
1388
+
1389
+ var track = {};
1390
+
1391
+ Object.defineProperty(track, "__esModule", {
1392
+ value: true
1393
+ });
1394
+ track.Track = void 0;
1395
+
1396
+ var _react$3 = _interopRequireDefault$3(React__default);
1397
+
1398
+ var _classnames$3 = _interopRequireDefault$3(classnames.exports);
1399
+
1400
+ var _innerSliderUtils$3 = innerSliderUtils;
1401
+
1402
+ function _interopRequireDefault$3(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
1403
+
1404
+ function _typeof$3(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$3 = function _typeof(obj) { return typeof obj; }; } else { _typeof$3 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$3(obj); }
1405
+
1406
+ function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
1407
+
1408
+ function _classCallCheck$3(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1409
+
1410
+ function _defineProperties$3(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1411
+
1412
+ function _createClass$3(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$3(Constructor.prototype, protoProps); if (staticProps) _defineProperties$3(Constructor, staticProps); return Constructor; }
1413
+
1414
+ function _inherits$3(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$3(subClass, superClass); }
1415
+
1416
+ function _setPrototypeOf$3(o, p) { _setPrototypeOf$3 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$3(o, p); }
1417
+
1418
+ function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf$3(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$3(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$3(this, result); }; }
1419
+
1420
+ function _possibleConstructorReturn$3(self, call) { if (call && (_typeof$3(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$3(self); }
1421
+
1422
+ function _assertThisInitialized$3(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1423
+
1424
+ function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
1425
+
1426
+ function _getPrototypeOf$3(o) { _getPrototypeOf$3 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$3(o); }
1427
+
1428
+ function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
1429
+
1430
+ function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(Object(source), true).forEach(function (key) { _defineProperty$3(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1431
+
1432
+ function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1433
+
1434
+ // given specifications/props for a slide, fetch all the classes that need to be applied to the slide
1435
+ var getSlideClasses = function getSlideClasses(spec) {
1436
+ var slickActive, slickCenter, slickCloned;
1437
+ var centerOffset, index;
1438
+
1439
+ if (spec.rtl) {
1440
+ index = spec.slideCount - 1 - spec.index;
1441
+ } else {
1442
+ index = spec.index;
1443
+ }
1444
+
1445
+ slickCloned = index < 0 || index >= spec.slideCount;
1446
+
1447
+ if (spec.centerMode) {
1448
+ centerOffset = Math.floor(spec.slidesToShow / 2);
1449
+ slickCenter = (index - spec.currentSlide) % spec.slideCount === 0;
1450
+
1451
+ if (index > spec.currentSlide - centerOffset - 1 && index <= spec.currentSlide + centerOffset) {
1452
+ slickActive = true;
1453
+ }
1454
+ } else {
1455
+ slickActive = spec.currentSlide <= index && index < spec.currentSlide + spec.slidesToShow;
1456
+ }
1457
+
1458
+ var focusedSlide;
1459
+
1460
+ if (spec.targetSlide < 0) {
1461
+ focusedSlide = spec.targetSlide + spec.slideCount;
1462
+ } else if (spec.targetSlide >= spec.slideCount) {
1463
+ focusedSlide = spec.targetSlide - spec.slideCount;
1464
+ } else {
1465
+ focusedSlide = spec.targetSlide;
1466
+ }
1467
+
1468
+ var slickCurrent = index === focusedSlide;
1469
+ return {
1470
+ "slick-slide": true,
1471
+ "slick-active": slickActive,
1472
+ "slick-center": slickCenter,
1473
+ "slick-cloned": slickCloned,
1474
+ "slick-current": slickCurrent // dubious in case of RTL
1475
+
1476
+ };
1477
+ };
1478
+
1479
+ var getSlideStyle = function getSlideStyle(spec) {
1480
+ var style = {};
1481
+
1482
+ if (spec.variableWidth === undefined || spec.variableWidth === false) {
1483
+ style.width = spec.slideWidth;
1484
+ }
1485
+
1486
+ if (spec.fade) {
1487
+ style.position = "relative";
1488
+
1489
+ if (spec.vertical) {
1490
+ style.top = -spec.index * parseInt(spec.slideHeight);
1491
+ } else {
1492
+ style.left = -spec.index * parseInt(spec.slideWidth);
1493
+ }
1494
+
1495
+ style.opacity = spec.currentSlide === spec.index ? 1 : 0;
1496
+
1497
+ if (spec.useCSS) {
1498
+ style.transition = "opacity " + spec.speed + "ms " + spec.cssEase + ", " + "visibility " + spec.speed + "ms " + spec.cssEase;
1499
+ }
1500
+ }
1501
+
1502
+ return style;
1503
+ };
1504
+
1505
+ var getKey = function getKey(child, fallbackKey) {
1506
+ return child.key || fallbackKey;
1507
+ };
1508
+
1509
+ var renderSlides = function renderSlides(spec) {
1510
+ var key;
1511
+ var slides = [];
1512
+ var preCloneSlides = [];
1513
+ var postCloneSlides = [];
1514
+
1515
+ var childrenCount = _react$3["default"].Children.count(spec.children);
1516
+
1517
+ var startIndex = (0, _innerSliderUtils$3.lazyStartIndex)(spec);
1518
+ var endIndex = (0, _innerSliderUtils$3.lazyEndIndex)(spec);
1519
+
1520
+ _react$3["default"].Children.forEach(spec.children, function (elem, index) {
1521
+ var child;
1522
+ var childOnClickOptions = {
1523
+ message: "children",
1524
+ index: index,
1525
+ slidesToScroll: spec.slidesToScroll,
1526
+ currentSlide: spec.currentSlide
1527
+ }; // in case of lazyLoad, whether or not we want to fetch the slide
1528
+
1529
+ if (!spec.lazyLoad || spec.lazyLoad && spec.lazyLoadedList.indexOf(index) >= 0) {
1530
+ child = elem;
1531
+ } else {
1532
+ child = /*#__PURE__*/_react$3["default"].createElement("div", null);
1533
+ }
1534
+
1535
+ var childStyle = getSlideStyle(_objectSpread$3(_objectSpread$3({}, spec), {}, {
1536
+ index: index
1537
+ }));
1538
+ var slideClass = child.props.className || "";
1539
+ var slideClasses = getSlideClasses(_objectSpread$3(_objectSpread$3({}, spec), {}, {
1540
+ index: index
1541
+ })); // push a cloned element of the desired slide
1542
+
1543
+ slides.push( /*#__PURE__*/_react$3["default"].cloneElement(child, {
1544
+ key: "original" + getKey(child, index),
1545
+ "data-index": index,
1546
+ className: (0, _classnames$3["default"])(slideClasses, slideClass),
1547
+ tabIndex: "-1",
1548
+ "aria-hidden": !slideClasses["slick-active"],
1549
+ style: _objectSpread$3(_objectSpread$3({
1550
+ outline: "none"
1551
+ }, child.props.style || {}), childStyle),
1552
+ onClick: function onClick(e) {
1553
+ child.props && child.props.onClick && child.props.onClick(e);
1554
+
1555
+ if (spec.focusOnSelect) {
1556
+ spec.focusOnSelect(childOnClickOptions);
1557
+ }
1558
+ }
1559
+ })); // if slide needs to be precloned or postcloned
1560
+
1561
+ if (spec.infinite && spec.fade === false) {
1562
+ var preCloneNo = childrenCount - index;
1563
+
1564
+ if (preCloneNo <= (0, _innerSliderUtils$3.getPreClones)(spec) && childrenCount !== spec.slidesToShow) {
1565
+ key = -preCloneNo;
1566
+
1567
+ if (key >= startIndex) {
1568
+ child = elem;
1569
+ }
1570
+
1571
+ slideClasses = getSlideClasses(_objectSpread$3(_objectSpread$3({}, spec), {}, {
1572
+ index: key
1573
+ }));
1574
+ preCloneSlides.push( /*#__PURE__*/_react$3["default"].cloneElement(child, {
1575
+ key: "precloned" + getKey(child, key),
1576
+ "data-index": key,
1577
+ tabIndex: "-1",
1578
+ className: (0, _classnames$3["default"])(slideClasses, slideClass),
1579
+ "aria-hidden": !slideClasses["slick-active"],
1580
+ style: _objectSpread$3(_objectSpread$3({}, child.props.style || {}), childStyle),
1581
+ onClick: function onClick(e) {
1582
+ child.props && child.props.onClick && child.props.onClick(e);
1583
+
1584
+ if (spec.focusOnSelect) {
1585
+ spec.focusOnSelect(childOnClickOptions);
1586
+ }
1587
+ }
1588
+ }));
1589
+ }
1590
+
1591
+ if (childrenCount !== spec.slidesToShow) {
1592
+ key = childrenCount + index;
1593
+
1594
+ if (key < endIndex) {
1595
+ child = elem;
1596
+ }
1597
+
1598
+ slideClasses = getSlideClasses(_objectSpread$3(_objectSpread$3({}, spec), {}, {
1599
+ index: key
1600
+ }));
1601
+ postCloneSlides.push( /*#__PURE__*/_react$3["default"].cloneElement(child, {
1602
+ key: "postcloned" + getKey(child, key),
1603
+ "data-index": key,
1604
+ tabIndex: "-1",
1605
+ className: (0, _classnames$3["default"])(slideClasses, slideClass),
1606
+ "aria-hidden": !slideClasses["slick-active"],
1607
+ style: _objectSpread$3(_objectSpread$3({}, child.props.style || {}), childStyle),
1608
+ onClick: function onClick(e) {
1609
+ child.props && child.props.onClick && child.props.onClick(e);
1610
+
1611
+ if (spec.focusOnSelect) {
1612
+ spec.focusOnSelect(childOnClickOptions);
1613
+ }
1614
+ }
1615
+ }));
1616
+ }
1617
+ }
1618
+ });
1619
+
1620
+ if (spec.rtl) {
1621
+ return preCloneSlides.concat(slides, postCloneSlides).reverse();
1622
+ } else {
1623
+ return preCloneSlides.concat(slides, postCloneSlides);
1624
+ }
1625
+ };
1626
+
1627
+ var Track = /*#__PURE__*/function (_React$PureComponent) {
1628
+ _inherits$3(Track, _React$PureComponent);
1629
+
1630
+ var _super = _createSuper$3(Track);
1631
+
1632
+ function Track() {
1633
+ var _this;
1634
+
1635
+ _classCallCheck$3(this, Track);
1636
+
1637
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1638
+ args[_key] = arguments[_key];
1639
+ }
1640
+
1641
+ _this = _super.call.apply(_super, [this].concat(args));
1642
+
1643
+ _defineProperty$3(_assertThisInitialized$3(_this), "node", null);
1644
+
1645
+ _defineProperty$3(_assertThisInitialized$3(_this), "handleRef", function (ref) {
1646
+ _this.node = ref;
1647
+ });
1648
+
1649
+ return _this;
1650
+ }
1651
+
1652
+ _createClass$3(Track, [{
1653
+ key: "render",
1654
+ value: function render() {
1655
+ var slides = renderSlides(this.props);
1656
+ var _this$props = this.props,
1657
+ onMouseEnter = _this$props.onMouseEnter,
1658
+ onMouseOver = _this$props.onMouseOver,
1659
+ onMouseLeave = _this$props.onMouseLeave;
1660
+ var mouseEvents = {
1661
+ onMouseEnter: onMouseEnter,
1662
+ onMouseOver: onMouseOver,
1663
+ onMouseLeave: onMouseLeave
1664
+ };
1665
+ return /*#__PURE__*/_react$3["default"].createElement("div", _extends$2({
1666
+ ref: this.handleRef,
1667
+ className: "slick-track",
1668
+ style: this.props.trackStyle
1669
+ }, mouseEvents), slides);
1670
+ }
1671
+ }]);
1672
+
1673
+ return Track;
1674
+ }(_react$3["default"].PureComponent);
1675
+
1676
+ track.Track = Track;
1677
+
1678
+ var dots = {};
1679
+
1680
+ Object.defineProperty(dots, "__esModule", {
1681
+ value: true
1682
+ });
1683
+ dots.Dots = void 0;
1684
+
1685
+ var _react$2 = _interopRequireDefault$2(React__default);
1686
+
1687
+ var _classnames$2 = _interopRequireDefault$2(classnames.exports);
1688
+
1689
+ var _innerSliderUtils$2 = innerSliderUtils;
1690
+
1691
+ function _interopRequireDefault$2(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
1692
+
1693
+ function _typeof$2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$2 = function _typeof(obj) { return typeof obj; }; } else { _typeof$2 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$2(obj); }
1694
+
1695
+ function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
1696
+
1697
+ function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(Object(source), true).forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1698
+
1699
+ function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1700
+
1701
+ function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1702
+
1703
+ function _defineProperties$2(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1704
+
1705
+ function _createClass$2(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$2(Constructor.prototype, protoProps); if (staticProps) _defineProperties$2(Constructor, staticProps); return Constructor; }
1706
+
1707
+ function _inherits$2(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$2(subClass, superClass); }
1708
+
1709
+ function _setPrototypeOf$2(o, p) { _setPrototypeOf$2 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$2(o, p); }
1710
+
1711
+ function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf$2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$2(this, result); }; }
1712
+
1713
+ function _possibleConstructorReturn$2(self, call) { if (call && (_typeof$2(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$2(self); }
1714
+
1715
+ function _assertThisInitialized$2(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1716
+
1717
+ function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
1718
+
1719
+ function _getPrototypeOf$2(o) { _getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$2(o); }
1720
+
1721
+ var getDotCount = function getDotCount(spec) {
1722
+ var dots;
1723
+
1724
+ if (spec.infinite) {
1725
+ dots = Math.ceil(spec.slideCount / spec.slidesToScroll);
1726
+ } else {
1727
+ dots = Math.ceil((spec.slideCount - spec.slidesToShow) / spec.slidesToScroll) + 1;
1728
+ }
1729
+
1730
+ return dots;
1731
+ };
1732
+
1733
+ var Dots = /*#__PURE__*/function (_React$PureComponent) {
1734
+ _inherits$2(Dots, _React$PureComponent);
1735
+
1736
+ var _super = _createSuper$2(Dots);
1737
+
1738
+ function Dots() {
1739
+ _classCallCheck$2(this, Dots);
1740
+
1741
+ return _super.apply(this, arguments);
1742
+ }
1743
+
1744
+ _createClass$2(Dots, [{
1745
+ key: "clickHandler",
1746
+ value: function clickHandler(options, e) {
1747
+ // In Autoplay the focus stays on clicked button even after transition
1748
+ // to next slide. That only goes away by click somewhere outside
1749
+ e.preventDefault();
1750
+ this.props.clickHandler(options);
1751
+ }
1752
+ }, {
1753
+ key: "render",
1754
+ value: function render() {
1755
+ var _this$props = this.props,
1756
+ onMouseEnter = _this$props.onMouseEnter,
1757
+ onMouseOver = _this$props.onMouseOver,
1758
+ onMouseLeave = _this$props.onMouseLeave,
1759
+ infinite = _this$props.infinite,
1760
+ slidesToScroll = _this$props.slidesToScroll,
1761
+ slidesToShow = _this$props.slidesToShow,
1762
+ slideCount = _this$props.slideCount,
1763
+ currentSlide = _this$props.currentSlide;
1764
+ var dotCount = getDotCount({
1765
+ slideCount: slideCount,
1766
+ slidesToScroll: slidesToScroll,
1767
+ slidesToShow: slidesToShow,
1768
+ infinite: infinite
1769
+ });
1770
+ var mouseEvents = {
1771
+ onMouseEnter: onMouseEnter,
1772
+ onMouseOver: onMouseOver,
1773
+ onMouseLeave: onMouseLeave
1774
+ };
1775
+ var dots = [];
1776
+
1777
+ for (var i = 0; i < dotCount; i++) {
1778
+ var _rightBound = (i + 1) * slidesToScroll - 1;
1779
+
1780
+ var rightBound = infinite ? _rightBound : (0, _innerSliderUtils$2.clamp)(_rightBound, 0, slideCount - 1);
1781
+
1782
+ var _leftBound = rightBound - (slidesToScroll - 1);
1783
+
1784
+ var leftBound = infinite ? _leftBound : (0, _innerSliderUtils$2.clamp)(_leftBound, 0, slideCount - 1);
1785
+ var className = (0, _classnames$2["default"])({
1786
+ "slick-active": infinite ? currentSlide >= leftBound && currentSlide <= rightBound : currentSlide === leftBound
1787
+ });
1788
+ var dotOptions = {
1789
+ message: "dots",
1790
+ index: i,
1791
+ slidesToScroll: slidesToScroll,
1792
+ currentSlide: currentSlide
1793
+ };
1794
+ var onClick = this.clickHandler.bind(this, dotOptions);
1795
+ dots = dots.concat( /*#__PURE__*/_react$2["default"].createElement("li", {
1796
+ key: i,
1797
+ className: className
1798
+ }, /*#__PURE__*/_react$2["default"].cloneElement(this.props.customPaging(i), {
1799
+ onClick: onClick
1800
+ })));
1801
+ }
1802
+
1803
+ return /*#__PURE__*/_react$2["default"].cloneElement(this.props.appendDots(dots), _objectSpread$2({
1804
+ className: this.props.dotsClass
1805
+ }, mouseEvents));
1806
+ }
1807
+ }]);
1808
+
1809
+ return Dots;
1810
+ }(_react$2["default"].PureComponent);
1811
+
1812
+ dots.Dots = Dots;
1813
+
1814
+ var arrows = {};
1815
+
1816
+ Object.defineProperty(arrows, "__esModule", {
1817
+ value: true
1818
+ });
1819
+ arrows.NextArrow = arrows.PrevArrow = void 0;
1820
+
1821
+ var _react$1 = _interopRequireDefault$1(React__default);
1822
+
1823
+ var _classnames$1 = _interopRequireDefault$1(classnames.exports);
1824
+
1825
+ var _innerSliderUtils$1 = innerSliderUtils;
1826
+
1827
+ function _interopRequireDefault$1(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
1828
+
1829
+ function _typeof$1(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
1830
+
1831
+ function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
1832
+
1833
+ function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
1834
+
1835
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1836
+
1837
+ function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1838
+
1839
+ function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1840
+
1841
+ function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1842
+
1843
+ function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
1844
+
1845
+ function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$1(subClass, superClass); }
1846
+
1847
+ function _setPrototypeOf$1(o, p) { _setPrototypeOf$1 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$1(o, p); }
1848
+
1849
+ function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf$1(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$1(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$1(this, result); }; }
1850
+
1851
+ function _possibleConstructorReturn$1(self, call) { if (call && (_typeof$1(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$1(self); }
1852
+
1853
+ function _assertThisInitialized$1(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1854
+
1855
+ function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
1856
+
1857
+ function _getPrototypeOf$1(o) { _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$1(o); }
1858
+
1859
+ var PrevArrow = /*#__PURE__*/function (_React$PureComponent) {
1860
+ _inherits$1(PrevArrow, _React$PureComponent);
1861
+
1862
+ var _super = _createSuper$1(PrevArrow);
1863
+
1864
+ function PrevArrow() {
1865
+ _classCallCheck$1(this, PrevArrow);
1866
+
1867
+ return _super.apply(this, arguments);
1868
+ }
1869
+
1870
+ _createClass$1(PrevArrow, [{
1871
+ key: "clickHandler",
1872
+ value: function clickHandler(options, e) {
1873
+ if (e) {
1874
+ e.preventDefault();
1875
+ }
1876
+
1877
+ this.props.clickHandler(options, e);
1878
+ }
1879
+ }, {
1880
+ key: "render",
1881
+ value: function render() {
1882
+ var prevClasses = {
1883
+ "slick-arrow": true,
1884
+ "slick-prev": true
1885
+ };
1886
+ var prevHandler = this.clickHandler.bind(this, {
1887
+ message: "previous"
1888
+ });
1889
+
1890
+ if (!this.props.infinite && (this.props.currentSlide === 0 || this.props.slideCount <= this.props.slidesToShow)) {
1891
+ prevClasses["slick-disabled"] = true;
1892
+ prevHandler = null;
1893
+ }
1894
+
1895
+ var prevArrowProps = {
1896
+ key: "0",
1897
+ "data-role": "none",
1898
+ className: (0, _classnames$1["default"])(prevClasses),
1899
+ style: {
1900
+ display: "block"
1901
+ },
1902
+ onClick: prevHandler
1903
+ };
1904
+ var customProps = {
1905
+ currentSlide: this.props.currentSlide,
1906
+ slideCount: this.props.slideCount
1907
+ };
1908
+ var prevArrow;
1909
+
1910
+ if (this.props.prevArrow) {
1911
+ prevArrow = /*#__PURE__*/_react$1["default"].cloneElement(this.props.prevArrow, _objectSpread$1(_objectSpread$1({}, prevArrowProps), customProps));
1912
+ } else {
1913
+ prevArrow = /*#__PURE__*/_react$1["default"].createElement("button", _extends$1({
1914
+ key: "0",
1915
+ type: "button"
1916
+ }, prevArrowProps), " ", "Previous");
1917
+ }
1918
+
1919
+ return prevArrow;
1920
+ }
1921
+ }]);
1922
+
1923
+ return PrevArrow;
1924
+ }(_react$1["default"].PureComponent);
1925
+
1926
+ arrows.PrevArrow = PrevArrow;
1927
+
1928
+ var NextArrow = /*#__PURE__*/function (_React$PureComponent2) {
1929
+ _inherits$1(NextArrow, _React$PureComponent2);
1930
+
1931
+ var _super2 = _createSuper$1(NextArrow);
1932
+
1933
+ function NextArrow() {
1934
+ _classCallCheck$1(this, NextArrow);
1935
+
1936
+ return _super2.apply(this, arguments);
1937
+ }
1938
+
1939
+ _createClass$1(NextArrow, [{
1940
+ key: "clickHandler",
1941
+ value: function clickHandler(options, e) {
1942
+ if (e) {
1943
+ e.preventDefault();
1944
+ }
1945
+
1946
+ this.props.clickHandler(options, e);
1947
+ }
1948
+ }, {
1949
+ key: "render",
1950
+ value: function render() {
1951
+ var nextClasses = {
1952
+ "slick-arrow": true,
1953
+ "slick-next": true
1954
+ };
1955
+ var nextHandler = this.clickHandler.bind(this, {
1956
+ message: "next"
1957
+ });
1958
+
1959
+ if (!(0, _innerSliderUtils$1.canGoNext)(this.props)) {
1960
+ nextClasses["slick-disabled"] = true;
1961
+ nextHandler = null;
1962
+ }
1963
+
1964
+ var nextArrowProps = {
1965
+ key: "1",
1966
+ "data-role": "none",
1967
+ className: (0, _classnames$1["default"])(nextClasses),
1968
+ style: {
1969
+ display: "block"
1970
+ },
1971
+ onClick: nextHandler
1972
+ };
1973
+ var customProps = {
1974
+ currentSlide: this.props.currentSlide,
1975
+ slideCount: this.props.slideCount
1976
+ };
1977
+ var nextArrow;
1978
+
1979
+ if (this.props.nextArrow) {
1980
+ nextArrow = /*#__PURE__*/_react$1["default"].cloneElement(this.props.nextArrow, _objectSpread$1(_objectSpread$1({}, nextArrowProps), customProps));
1981
+ } else {
1982
+ nextArrow = /*#__PURE__*/_react$1["default"].createElement("button", _extends$1({
1983
+ key: "1",
1984
+ type: "button"
1985
+ }, nextArrowProps), " ", "Next");
1986
+ }
1987
+
1988
+ return nextArrow;
1989
+ }
1990
+ }]);
1991
+
1992
+ return NextArrow;
1993
+ }(_react$1["default"].PureComponent);
1994
+
1995
+ arrows.NextArrow = NextArrow;
1996
+
1997
+ /**
1998
+ * A collection of shims that provide minimal functionality of the ES6 collections.
1999
+ *
2000
+ * These implementations are not meant to be used outside of the ResizeObserver
2001
+ * modules as they cover only a limited range of use cases.
2002
+ */
2003
+ /* eslint-disable require-jsdoc, valid-jsdoc */
2004
+ var MapShim = (function () {
2005
+ if (typeof Map !== 'undefined') {
2006
+ return Map;
2007
+ }
2008
+ /**
2009
+ * Returns index in provided array that matches the specified key.
2010
+ *
2011
+ * @param {Array<Array>} arr
2012
+ * @param {*} key
2013
+ * @returns {number}
2014
+ */
2015
+ function getIndex(arr, key) {
2016
+ var result = -1;
2017
+ arr.some(function (entry, index) {
2018
+ if (entry[0] === key) {
2019
+ result = index;
2020
+ return true;
2021
+ }
2022
+ return false;
2023
+ });
2024
+ return result;
2025
+ }
2026
+ return /** @class */ (function () {
2027
+ function class_1() {
2028
+ this.__entries__ = [];
2029
+ }
2030
+ Object.defineProperty(class_1.prototype, "size", {
2031
+ /**
2032
+ * @returns {boolean}
2033
+ */
2034
+ get: function () {
2035
+ return this.__entries__.length;
2036
+ },
2037
+ enumerable: true,
2038
+ configurable: true
2039
+ });
2040
+ /**
2041
+ * @param {*} key
2042
+ * @returns {*}
2043
+ */
2044
+ class_1.prototype.get = function (key) {
2045
+ var index = getIndex(this.__entries__, key);
2046
+ var entry = this.__entries__[index];
2047
+ return entry && entry[1];
2048
+ };
2049
+ /**
2050
+ * @param {*} key
2051
+ * @param {*} value
2052
+ * @returns {void}
2053
+ */
2054
+ class_1.prototype.set = function (key, value) {
2055
+ var index = getIndex(this.__entries__, key);
2056
+ if (~index) {
2057
+ this.__entries__[index][1] = value;
2058
+ }
2059
+ else {
2060
+ this.__entries__.push([key, value]);
2061
+ }
2062
+ };
2063
+ /**
2064
+ * @param {*} key
2065
+ * @returns {void}
2066
+ */
2067
+ class_1.prototype.delete = function (key) {
2068
+ var entries = this.__entries__;
2069
+ var index = getIndex(entries, key);
2070
+ if (~index) {
2071
+ entries.splice(index, 1);
2072
+ }
2073
+ };
2074
+ /**
2075
+ * @param {*} key
2076
+ * @returns {void}
2077
+ */
2078
+ class_1.prototype.has = function (key) {
2079
+ return !!~getIndex(this.__entries__, key);
2080
+ };
2081
+ /**
2082
+ * @returns {void}
2083
+ */
2084
+ class_1.prototype.clear = function () {
2085
+ this.__entries__.splice(0);
2086
+ };
2087
+ /**
2088
+ * @param {Function} callback
2089
+ * @param {*} [ctx=null]
2090
+ * @returns {void}
2091
+ */
2092
+ class_1.prototype.forEach = function (callback, ctx) {
2093
+ if (ctx === void 0) { ctx = null; }
2094
+ for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
2095
+ var entry = _a[_i];
2096
+ callback.call(ctx, entry[1], entry[0]);
2097
+ }
2098
+ };
2099
+ return class_1;
2100
+ }());
2101
+ })();
2102
+
2103
+ /**
2104
+ * Detects whether window and document objects are available in current environment.
2105
+ */
2106
+ var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
2107
+
2108
+ // Returns global object of a current environment.
2109
+ var global$1 = (function () {
2110
+ if (typeof global !== 'undefined' && global.Math === Math) {
2111
+ return global;
2112
+ }
2113
+ if (typeof self !== 'undefined' && self.Math === Math) {
2114
+ return self;
2115
+ }
2116
+ if (typeof window !== 'undefined' && window.Math === Math) {
2117
+ return window;
2118
+ }
2119
+ // eslint-disable-next-line no-new-func
2120
+ return Function('return this')();
2121
+ })();
2122
+
2123
+ /**
2124
+ * A shim for the requestAnimationFrame which falls back to the setTimeout if
2125
+ * first one is not supported.
2126
+ *
2127
+ * @returns {number} Requests' identifier.
2128
+ */
2129
+ var requestAnimationFrame$1 = (function () {
2130
+ if (typeof requestAnimationFrame === 'function') {
2131
+ // It's required to use a bounded function because IE sometimes throws
2132
+ // an "Invalid calling object" error if rAF is invoked without the global
2133
+ // object on the left hand side.
2134
+ return requestAnimationFrame.bind(global$1);
2135
+ }
2136
+ return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };
2137
+ })();
2138
+
2139
+ // Defines minimum timeout before adding a trailing call.
2140
+ var trailingTimeout = 2;
2141
+ /**
2142
+ * Creates a wrapper function which ensures that provided callback will be
2143
+ * invoked only once during the specified delay period.
2144
+ *
2145
+ * @param {Function} callback - Function to be invoked after the delay period.
2146
+ * @param {number} delay - Delay after which to invoke callback.
2147
+ * @returns {Function}
2148
+ */
2149
+ function throttle (callback, delay) {
2150
+ var leadingCall = false, trailingCall = false, lastCallTime = 0;
2151
+ /**
2152
+ * Invokes the original callback function and schedules new invocation if
2153
+ * the "proxy" was called during current request.
2154
+ *
2155
+ * @returns {void}
2156
+ */
2157
+ function resolvePending() {
2158
+ if (leadingCall) {
2159
+ leadingCall = false;
2160
+ callback();
2161
+ }
2162
+ if (trailingCall) {
2163
+ proxy();
2164
+ }
2165
+ }
2166
+ /**
2167
+ * Callback invoked after the specified delay. It will further postpone
2168
+ * invocation of the original function delegating it to the
2169
+ * requestAnimationFrame.
2170
+ *
2171
+ * @returns {void}
2172
+ */
2173
+ function timeoutCallback() {
2174
+ requestAnimationFrame$1(resolvePending);
2175
+ }
2176
+ /**
2177
+ * Schedules invocation of the original function.
2178
+ *
2179
+ * @returns {void}
2180
+ */
2181
+ function proxy() {
2182
+ var timeStamp = Date.now();
2183
+ if (leadingCall) {
2184
+ // Reject immediately following calls.
2185
+ if (timeStamp - lastCallTime < trailingTimeout) {
2186
+ return;
2187
+ }
2188
+ // Schedule new call to be in invoked when the pending one is resolved.
2189
+ // This is important for "transitions" which never actually start
2190
+ // immediately so there is a chance that we might miss one if change
2191
+ // happens amids the pending invocation.
2192
+ trailingCall = true;
2193
+ }
2194
+ else {
2195
+ leadingCall = true;
2196
+ trailingCall = false;
2197
+ setTimeout(timeoutCallback, delay);
2198
+ }
2199
+ lastCallTime = timeStamp;
2200
+ }
2201
+ return proxy;
2202
+ }
2203
+
2204
+ // Minimum delay before invoking the update of observers.
2205
+ var REFRESH_DELAY = 20;
2206
+ // A list of substrings of CSS properties used to find transition events that
2207
+ // might affect dimensions of observed elements.
2208
+ var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];
2209
+ // Check if MutationObserver is available.
2210
+ var mutationObserverSupported = typeof MutationObserver !== 'undefined';
2211
+ /**
2212
+ * Singleton controller class which handles updates of ResizeObserver instances.
2213
+ */
2214
+ var ResizeObserverController = /** @class */ (function () {
2215
+ /**
2216
+ * Creates a new instance of ResizeObserverController.
2217
+ *
2218
+ * @private
2219
+ */
2220
+ function ResizeObserverController() {
2221
+ /**
2222
+ * Indicates whether DOM listeners have been added.
2223
+ *
2224
+ * @private {boolean}
2225
+ */
2226
+ this.connected_ = false;
2227
+ /**
2228
+ * Tells that controller has subscribed for Mutation Events.
2229
+ *
2230
+ * @private {boolean}
2231
+ */
2232
+ this.mutationEventsAdded_ = false;
2233
+ /**
2234
+ * Keeps reference to the instance of MutationObserver.
2235
+ *
2236
+ * @private {MutationObserver}
2237
+ */
2238
+ this.mutationsObserver_ = null;
2239
+ /**
2240
+ * A list of connected observers.
2241
+ *
2242
+ * @private {Array<ResizeObserverSPI>}
2243
+ */
2244
+ this.observers_ = [];
2245
+ this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
2246
+ this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
2247
+ }
2248
+ /**
2249
+ * Adds observer to observers list.
2250
+ *
2251
+ * @param {ResizeObserverSPI} observer - Observer to be added.
2252
+ * @returns {void}
2253
+ */
2254
+ ResizeObserverController.prototype.addObserver = function (observer) {
2255
+ if (!~this.observers_.indexOf(observer)) {
2256
+ this.observers_.push(observer);
2257
+ }
2258
+ // Add listeners if they haven't been added yet.
2259
+ if (!this.connected_) {
2260
+ this.connect_();
2261
+ }
2262
+ };
2263
+ /**
2264
+ * Removes observer from observers list.
2265
+ *
2266
+ * @param {ResizeObserverSPI} observer - Observer to be removed.
2267
+ * @returns {void}
2268
+ */
2269
+ ResizeObserverController.prototype.removeObserver = function (observer) {
2270
+ var observers = this.observers_;
2271
+ var index = observers.indexOf(observer);
2272
+ // Remove observer if it's present in registry.
2273
+ if (~index) {
2274
+ observers.splice(index, 1);
2275
+ }
2276
+ // Remove listeners if controller has no connected observers.
2277
+ if (!observers.length && this.connected_) {
2278
+ this.disconnect_();
2279
+ }
2280
+ };
2281
+ /**
2282
+ * Invokes the update of observers. It will continue running updates insofar
2283
+ * it detects changes.
2284
+ *
2285
+ * @returns {void}
2286
+ */
2287
+ ResizeObserverController.prototype.refresh = function () {
2288
+ var changesDetected = this.updateObservers_();
2289
+ // Continue running updates if changes have been detected as there might
2290
+ // be future ones caused by CSS transitions.
2291
+ if (changesDetected) {
2292
+ this.refresh();
2293
+ }
2294
+ };
2295
+ /**
2296
+ * Updates every observer from observers list and notifies them of queued
2297
+ * entries.
2298
+ *
2299
+ * @private
2300
+ * @returns {boolean} Returns "true" if any observer has detected changes in
2301
+ * dimensions of it's elements.
2302
+ */
2303
+ ResizeObserverController.prototype.updateObservers_ = function () {
2304
+ // Collect observers that have active observations.
2305
+ var activeObservers = this.observers_.filter(function (observer) {
2306
+ return observer.gatherActive(), observer.hasActive();
2307
+ });
2308
+ // Deliver notifications in a separate cycle in order to avoid any
2309
+ // collisions between observers, e.g. when multiple instances of
2310
+ // ResizeObserver are tracking the same element and the callback of one
2311
+ // of them changes content dimensions of the observed target. Sometimes
2312
+ // this may result in notifications being blocked for the rest of observers.
2313
+ activeObservers.forEach(function (observer) { return observer.broadcastActive(); });
2314
+ return activeObservers.length > 0;
2315
+ };
2316
+ /**
2317
+ * Initializes DOM listeners.
2318
+ *
2319
+ * @private
2320
+ * @returns {void}
2321
+ */
2322
+ ResizeObserverController.prototype.connect_ = function () {
2323
+ // Do nothing if running in a non-browser environment or if listeners
2324
+ // have been already added.
2325
+ if (!isBrowser || this.connected_) {
2326
+ return;
2327
+ }
2328
+ // Subscription to the "Transitionend" event is used as a workaround for
2329
+ // delayed transitions. This way it's possible to capture at least the
2330
+ // final state of an element.
2331
+ document.addEventListener('transitionend', this.onTransitionEnd_);
2332
+ window.addEventListener('resize', this.refresh);
2333
+ if (mutationObserverSupported) {
2334
+ this.mutationsObserver_ = new MutationObserver(this.refresh);
2335
+ this.mutationsObserver_.observe(document, {
2336
+ attributes: true,
2337
+ childList: true,
2338
+ characterData: true,
2339
+ subtree: true
2340
+ });
2341
+ }
2342
+ else {
2343
+ document.addEventListener('DOMSubtreeModified', this.refresh);
2344
+ this.mutationEventsAdded_ = true;
2345
+ }
2346
+ this.connected_ = true;
2347
+ };
2348
+ /**
2349
+ * Removes DOM listeners.
2350
+ *
2351
+ * @private
2352
+ * @returns {void}
2353
+ */
2354
+ ResizeObserverController.prototype.disconnect_ = function () {
2355
+ // Do nothing if running in a non-browser environment or if listeners
2356
+ // have been already removed.
2357
+ if (!isBrowser || !this.connected_) {
2358
+ return;
2359
+ }
2360
+ document.removeEventListener('transitionend', this.onTransitionEnd_);
2361
+ window.removeEventListener('resize', this.refresh);
2362
+ if (this.mutationsObserver_) {
2363
+ this.mutationsObserver_.disconnect();
2364
+ }
2365
+ if (this.mutationEventsAdded_) {
2366
+ document.removeEventListener('DOMSubtreeModified', this.refresh);
2367
+ }
2368
+ this.mutationsObserver_ = null;
2369
+ this.mutationEventsAdded_ = false;
2370
+ this.connected_ = false;
2371
+ };
2372
+ /**
2373
+ * "Transitionend" event handler.
2374
+ *
2375
+ * @private
2376
+ * @param {TransitionEvent} event
2377
+ * @returns {void}
2378
+ */
2379
+ ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {
2380
+ var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;
2381
+ // Detect whether transition may affect dimensions of an element.
2382
+ var isReflowProperty = transitionKeys.some(function (key) {
2383
+ return !!~propertyName.indexOf(key);
2384
+ });
2385
+ if (isReflowProperty) {
2386
+ this.refresh();
2387
+ }
2388
+ };
2389
+ /**
2390
+ * Returns instance of the ResizeObserverController.
2391
+ *
2392
+ * @returns {ResizeObserverController}
2393
+ */
2394
+ ResizeObserverController.getInstance = function () {
2395
+ if (!this.instance_) {
2396
+ this.instance_ = new ResizeObserverController();
2397
+ }
2398
+ return this.instance_;
2399
+ };
2400
+ /**
2401
+ * Holds reference to the controller's instance.
2402
+ *
2403
+ * @private {ResizeObserverController}
2404
+ */
2405
+ ResizeObserverController.instance_ = null;
2406
+ return ResizeObserverController;
2407
+ }());
2408
+
2409
+ /**
2410
+ * Defines non-writable/enumerable properties of the provided target object.
2411
+ *
2412
+ * @param {Object} target - Object for which to define properties.
2413
+ * @param {Object} props - Properties to be defined.
2414
+ * @returns {Object} Target object.
2415
+ */
2416
+ var defineConfigurable = (function (target, props) {
2417
+ for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
2418
+ var key = _a[_i];
2419
+ Object.defineProperty(target, key, {
2420
+ value: props[key],
2421
+ enumerable: false,
2422
+ writable: false,
2423
+ configurable: true
2424
+ });
2425
+ }
2426
+ return target;
2427
+ });
2428
+
2429
+ /**
2430
+ * Returns the global object associated with provided element.
2431
+ *
2432
+ * @param {Object} target
2433
+ * @returns {Object}
2434
+ */
2435
+ var getWindowOf = (function (target) {
2436
+ // Assume that the element is an instance of Node, which means that it
2437
+ // has the "ownerDocument" property from which we can retrieve a
2438
+ // corresponding global object.
2439
+ var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
2440
+ // Return the local global object if it's not possible extract one from
2441
+ // provided element.
2442
+ return ownerGlobal || global$1;
2443
+ });
2444
+
2445
+ // Placeholder of an empty content rectangle.
2446
+ var emptyRect = createRectInit(0, 0, 0, 0);
2447
+ /**
2448
+ * Converts provided string to a number.
2449
+ *
2450
+ * @param {number|string} value
2451
+ * @returns {number}
2452
+ */
2453
+ function toFloat(value) {
2454
+ return parseFloat(value) || 0;
2455
+ }
2456
+ /**
2457
+ * Extracts borders size from provided styles.
2458
+ *
2459
+ * @param {CSSStyleDeclaration} styles
2460
+ * @param {...string} positions - Borders positions (top, right, ...)
2461
+ * @returns {number}
2462
+ */
2463
+ function getBordersSize(styles) {
2464
+ var positions = [];
2465
+ for (var _i = 1; _i < arguments.length; _i++) {
2466
+ positions[_i - 1] = arguments[_i];
2467
+ }
2468
+ return positions.reduce(function (size, position) {
2469
+ var value = styles['border-' + position + '-width'];
2470
+ return size + toFloat(value);
2471
+ }, 0);
2472
+ }
2473
+ /**
2474
+ * Extracts paddings sizes from provided styles.
2475
+ *
2476
+ * @param {CSSStyleDeclaration} styles
2477
+ * @returns {Object} Paddings box.
2478
+ */
2479
+ function getPaddings(styles) {
2480
+ var positions = ['top', 'right', 'bottom', 'left'];
2481
+ var paddings = {};
2482
+ for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
2483
+ var position = positions_1[_i];
2484
+ var value = styles['padding-' + position];
2485
+ paddings[position] = toFloat(value);
2486
+ }
2487
+ return paddings;
2488
+ }
2489
+ /**
2490
+ * Calculates content rectangle of provided SVG element.
2491
+ *
2492
+ * @param {SVGGraphicsElement} target - Element content rectangle of which needs
2493
+ * to be calculated.
2494
+ * @returns {DOMRectInit}
2495
+ */
2496
+ function getSVGContentRect(target) {
2497
+ var bbox = target.getBBox();
2498
+ return createRectInit(0, 0, bbox.width, bbox.height);
2499
+ }
2500
+ /**
2501
+ * Calculates content rectangle of provided HTMLElement.
2502
+ *
2503
+ * @param {HTMLElement} target - Element for which to calculate the content rectangle.
2504
+ * @returns {DOMRectInit}
2505
+ */
2506
+ function getHTMLElementContentRect(target) {
2507
+ // Client width & height properties can't be
2508
+ // used exclusively as they provide rounded values.
2509
+ var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
2510
+ // By this condition we can catch all non-replaced inline, hidden and
2511
+ // detached elements. Though elements with width & height properties less
2512
+ // than 0.5 will be discarded as well.
2513
+ //
2514
+ // Without it we would need to implement separate methods for each of
2515
+ // those cases and it's not possible to perform a precise and performance
2516
+ // effective test for hidden elements. E.g. even jQuery's ':visible' filter
2517
+ // gives wrong results for elements with width & height less than 0.5.
2518
+ if (!clientWidth && !clientHeight) {
2519
+ return emptyRect;
2520
+ }
2521
+ var styles = getWindowOf(target).getComputedStyle(target);
2522
+ var paddings = getPaddings(styles);
2523
+ var horizPad = paddings.left + paddings.right;
2524
+ var vertPad = paddings.top + paddings.bottom;
2525
+ // Computed styles of width & height are being used because they are the
2526
+ // only dimensions available to JS that contain non-rounded values. It could
2527
+ // be possible to utilize the getBoundingClientRect if only it's data wasn't
2528
+ // affected by CSS transformations let alone paddings, borders and scroll bars.
2529
+ var width = toFloat(styles.width), height = toFloat(styles.height);
2530
+ // Width & height include paddings and borders when the 'border-box' box
2531
+ // model is applied (except for IE).
2532
+ if (styles.boxSizing === 'border-box') {
2533
+ // Following conditions are required to handle Internet Explorer which
2534
+ // doesn't include paddings and borders to computed CSS dimensions.
2535
+ //
2536
+ // We can say that if CSS dimensions + paddings are equal to the "client"
2537
+ // properties then it's either IE, and thus we don't need to subtract
2538
+ // anything, or an element merely doesn't have paddings/borders styles.
2539
+ if (Math.round(width + horizPad) !== clientWidth) {
2540
+ width -= getBordersSize(styles, 'left', 'right') + horizPad;
2541
+ }
2542
+ if (Math.round(height + vertPad) !== clientHeight) {
2543
+ height -= getBordersSize(styles, 'top', 'bottom') + vertPad;
2544
+ }
2545
+ }
2546
+ // Following steps can't be applied to the document's root element as its
2547
+ // client[Width/Height] properties represent viewport area of the window.
2548
+ // Besides, it's as well not necessary as the <html> itself neither has
2549
+ // rendered scroll bars nor it can be clipped.
2550
+ if (!isDocumentElement(target)) {
2551
+ // In some browsers (only in Firefox, actually) CSS width & height
2552
+ // include scroll bars size which can be removed at this step as scroll
2553
+ // bars are the only difference between rounded dimensions + paddings
2554
+ // and "client" properties, though that is not always true in Chrome.
2555
+ var vertScrollbar = Math.round(width + horizPad) - clientWidth;
2556
+ var horizScrollbar = Math.round(height + vertPad) - clientHeight;
2557
+ // Chrome has a rather weird rounding of "client" properties.
2558
+ // E.g. for an element with content width of 314.2px it sometimes gives
2559
+ // the client width of 315px and for the width of 314.7px it may give
2560
+ // 314px. And it doesn't happen all the time. So just ignore this delta
2561
+ // as a non-relevant.
2562
+ if (Math.abs(vertScrollbar) !== 1) {
2563
+ width -= vertScrollbar;
2564
+ }
2565
+ if (Math.abs(horizScrollbar) !== 1) {
2566
+ height -= horizScrollbar;
2567
+ }
2568
+ }
2569
+ return createRectInit(paddings.left, paddings.top, width, height);
2570
+ }
2571
+ /**
2572
+ * Checks whether provided element is an instance of the SVGGraphicsElement.
2573
+ *
2574
+ * @param {Element} target - Element to be checked.
2575
+ * @returns {boolean}
2576
+ */
2577
+ var isSVGGraphicsElement = (function () {
2578
+ // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
2579
+ // interface.
2580
+ if (typeof SVGGraphicsElement !== 'undefined') {
2581
+ return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };
2582
+ }
2583
+ // If it's so, then check that element is at least an instance of the
2584
+ // SVGElement and that it has the "getBBox" method.
2585
+ // eslint-disable-next-line no-extra-parens
2586
+ return function (target) { return (target instanceof getWindowOf(target).SVGElement &&
2587
+ typeof target.getBBox === 'function'); };
2588
+ })();
2589
+ /**
2590
+ * Checks whether provided element is a document element (<html>).
2591
+ *
2592
+ * @param {Element} target - Element to be checked.
2593
+ * @returns {boolean}
2594
+ */
2595
+ function isDocumentElement(target) {
2596
+ return target === getWindowOf(target).document.documentElement;
2597
+ }
2598
+ /**
2599
+ * Calculates an appropriate content rectangle for provided html or svg element.
2600
+ *
2601
+ * @param {Element} target - Element content rectangle of which needs to be calculated.
2602
+ * @returns {DOMRectInit}
2603
+ */
2604
+ function getContentRect(target) {
2605
+ if (!isBrowser) {
2606
+ return emptyRect;
2607
+ }
2608
+ if (isSVGGraphicsElement(target)) {
2609
+ return getSVGContentRect(target);
2610
+ }
2611
+ return getHTMLElementContentRect(target);
2612
+ }
2613
+ /**
2614
+ * Creates rectangle with an interface of the DOMRectReadOnly.
2615
+ * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
2616
+ *
2617
+ * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
2618
+ * @returns {DOMRectReadOnly}
2619
+ */
2620
+ function createReadOnlyRect(_a) {
2621
+ var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
2622
+ // If DOMRectReadOnly is available use it as a prototype for the rectangle.
2623
+ var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;
2624
+ var rect = Object.create(Constr.prototype);
2625
+ // Rectangle's properties are not writable and non-enumerable.
2626
+ defineConfigurable(rect, {
2627
+ x: x, y: y, width: width, height: height,
2628
+ top: y,
2629
+ right: x + width,
2630
+ bottom: height + y,
2631
+ left: x
2632
+ });
2633
+ return rect;
2634
+ }
2635
+ /**
2636
+ * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
2637
+ * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
2638
+ *
2639
+ * @param {number} x - X coordinate.
2640
+ * @param {number} y - Y coordinate.
2641
+ * @param {number} width - Rectangle's width.
2642
+ * @param {number} height - Rectangle's height.
2643
+ * @returns {DOMRectInit}
2644
+ */
2645
+ function createRectInit(x, y, width, height) {
2646
+ return { x: x, y: y, width: width, height: height };
2647
+ }
2648
+
2649
+ /**
2650
+ * Class that is responsible for computations of the content rectangle of
2651
+ * provided DOM element and for keeping track of it's changes.
2652
+ */
2653
+ var ResizeObservation = /** @class */ (function () {
2654
+ /**
2655
+ * Creates an instance of ResizeObservation.
2656
+ *
2657
+ * @param {Element} target - Element to be observed.
2658
+ */
2659
+ function ResizeObservation(target) {
2660
+ /**
2661
+ * Broadcasted width of content rectangle.
2662
+ *
2663
+ * @type {number}
2664
+ */
2665
+ this.broadcastWidth = 0;
2666
+ /**
2667
+ * Broadcasted height of content rectangle.
2668
+ *
2669
+ * @type {number}
2670
+ */
2671
+ this.broadcastHeight = 0;
2672
+ /**
2673
+ * Reference to the last observed content rectangle.
2674
+ *
2675
+ * @private {DOMRectInit}
2676
+ */
2677
+ this.contentRect_ = createRectInit(0, 0, 0, 0);
2678
+ this.target = target;
2679
+ }
2680
+ /**
2681
+ * Updates content rectangle and tells whether it's width or height properties
2682
+ * have changed since the last broadcast.
2683
+ *
2684
+ * @returns {boolean}
2685
+ */
2686
+ ResizeObservation.prototype.isActive = function () {
2687
+ var rect = getContentRect(this.target);
2688
+ this.contentRect_ = rect;
2689
+ return (rect.width !== this.broadcastWidth ||
2690
+ rect.height !== this.broadcastHeight);
2691
+ };
2692
+ /**
2693
+ * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
2694
+ * from the corresponding properties of the last observed content rectangle.
2695
+ *
2696
+ * @returns {DOMRectInit} Last observed content rectangle.
2697
+ */
2698
+ ResizeObservation.prototype.broadcastRect = function () {
2699
+ var rect = this.contentRect_;
2700
+ this.broadcastWidth = rect.width;
2701
+ this.broadcastHeight = rect.height;
2702
+ return rect;
2703
+ };
2704
+ return ResizeObservation;
2705
+ }());
2706
+
2707
+ var ResizeObserverEntry = /** @class */ (function () {
2708
+ /**
2709
+ * Creates an instance of ResizeObserverEntry.
2710
+ *
2711
+ * @param {Element} target - Element that is being observed.
2712
+ * @param {DOMRectInit} rectInit - Data of the element's content rectangle.
2713
+ */
2714
+ function ResizeObserverEntry(target, rectInit) {
2715
+ var contentRect = createReadOnlyRect(rectInit);
2716
+ // According to the specification following properties are not writable
2717
+ // and are also not enumerable in the native implementation.
2718
+ //
2719
+ // Property accessors are not being used as they'd require to define a
2720
+ // private WeakMap storage which may cause memory leaks in browsers that
2721
+ // don't support this type of collections.
2722
+ defineConfigurable(this, { target: target, contentRect: contentRect });
2723
+ }
2724
+ return ResizeObserverEntry;
2725
+ }());
2726
+
2727
+ var ResizeObserverSPI = /** @class */ (function () {
2728
+ /**
2729
+ * Creates a new instance of ResizeObserver.
2730
+ *
2731
+ * @param {ResizeObserverCallback} callback - Callback function that is invoked
2732
+ * when one of the observed elements changes it's content dimensions.
2733
+ * @param {ResizeObserverController} controller - Controller instance which
2734
+ * is responsible for the updates of observer.
2735
+ * @param {ResizeObserver} callbackCtx - Reference to the public
2736
+ * ResizeObserver instance which will be passed to callback function.
2737
+ */
2738
+ function ResizeObserverSPI(callback, controller, callbackCtx) {
2739
+ /**
2740
+ * Collection of resize observations that have detected changes in dimensions
2741
+ * of elements.
2742
+ *
2743
+ * @private {Array<ResizeObservation>}
2744
+ */
2745
+ this.activeObservations_ = [];
2746
+ /**
2747
+ * Registry of the ResizeObservation instances.
2748
+ *
2749
+ * @private {Map<Element, ResizeObservation>}
2750
+ */
2751
+ this.observations_ = new MapShim();
2752
+ if (typeof callback !== 'function') {
2753
+ throw new TypeError('The callback provided as parameter 1 is not a function.');
2754
+ }
2755
+ this.callback_ = callback;
2756
+ this.controller_ = controller;
2757
+ this.callbackCtx_ = callbackCtx;
2758
+ }
2759
+ /**
2760
+ * Starts observing provided element.
2761
+ *
2762
+ * @param {Element} target - Element to be observed.
2763
+ * @returns {void}
2764
+ */
2765
+ ResizeObserverSPI.prototype.observe = function (target) {
2766
+ if (!arguments.length) {
2767
+ throw new TypeError('1 argument required, but only 0 present.');
2768
+ }
2769
+ // Do nothing if current environment doesn't have the Element interface.
2770
+ if (typeof Element === 'undefined' || !(Element instanceof Object)) {
2771
+ return;
2772
+ }
2773
+ if (!(target instanceof getWindowOf(target).Element)) {
2774
+ throw new TypeError('parameter 1 is not of type "Element".');
2775
+ }
2776
+ var observations = this.observations_;
2777
+ // Do nothing if element is already being observed.
2778
+ if (observations.has(target)) {
2779
+ return;
2780
+ }
2781
+ observations.set(target, new ResizeObservation(target));
2782
+ this.controller_.addObserver(this);
2783
+ // Force the update of observations.
2784
+ this.controller_.refresh();
2785
+ };
2786
+ /**
2787
+ * Stops observing provided element.
2788
+ *
2789
+ * @param {Element} target - Element to stop observing.
2790
+ * @returns {void}
2791
+ */
2792
+ ResizeObserverSPI.prototype.unobserve = function (target) {
2793
+ if (!arguments.length) {
2794
+ throw new TypeError('1 argument required, but only 0 present.');
2795
+ }
2796
+ // Do nothing if current environment doesn't have the Element interface.
2797
+ if (typeof Element === 'undefined' || !(Element instanceof Object)) {
2798
+ return;
2799
+ }
2800
+ if (!(target instanceof getWindowOf(target).Element)) {
2801
+ throw new TypeError('parameter 1 is not of type "Element".');
2802
+ }
2803
+ var observations = this.observations_;
2804
+ // Do nothing if element is not being observed.
2805
+ if (!observations.has(target)) {
2806
+ return;
2807
+ }
2808
+ observations.delete(target);
2809
+ if (!observations.size) {
2810
+ this.controller_.removeObserver(this);
2811
+ }
2812
+ };
2813
+ /**
2814
+ * Stops observing all elements.
2815
+ *
2816
+ * @returns {void}
2817
+ */
2818
+ ResizeObserverSPI.prototype.disconnect = function () {
2819
+ this.clearActive();
2820
+ this.observations_.clear();
2821
+ this.controller_.removeObserver(this);
2822
+ };
2823
+ /**
2824
+ * Collects observation instances the associated element of which has changed
2825
+ * it's content rectangle.
2826
+ *
2827
+ * @returns {void}
2828
+ */
2829
+ ResizeObserverSPI.prototype.gatherActive = function () {
2830
+ var _this = this;
2831
+ this.clearActive();
2832
+ this.observations_.forEach(function (observation) {
2833
+ if (observation.isActive()) {
2834
+ _this.activeObservations_.push(observation);
2835
+ }
2836
+ });
2837
+ };
2838
+ /**
2839
+ * Invokes initial callback function with a list of ResizeObserverEntry
2840
+ * instances collected from active resize observations.
2841
+ *
2842
+ * @returns {void}
2843
+ */
2844
+ ResizeObserverSPI.prototype.broadcastActive = function () {
2845
+ // Do nothing if observer doesn't have active observations.
2846
+ if (!this.hasActive()) {
2847
+ return;
2848
+ }
2849
+ var ctx = this.callbackCtx_;
2850
+ // Create ResizeObserverEntry instance for every active observation.
2851
+ var entries = this.activeObservations_.map(function (observation) {
2852
+ return new ResizeObserverEntry(observation.target, observation.broadcastRect());
2853
+ });
2854
+ this.callback_.call(ctx, entries, ctx);
2855
+ this.clearActive();
2856
+ };
2857
+ /**
2858
+ * Clears the collection of active observations.
2859
+ *
2860
+ * @returns {void}
2861
+ */
2862
+ ResizeObserverSPI.prototype.clearActive = function () {
2863
+ this.activeObservations_.splice(0);
2864
+ };
2865
+ /**
2866
+ * Tells whether observer has active observations.
2867
+ *
2868
+ * @returns {boolean}
2869
+ */
2870
+ ResizeObserverSPI.prototype.hasActive = function () {
2871
+ return this.activeObservations_.length > 0;
2872
+ };
2873
+ return ResizeObserverSPI;
2874
+ }());
2875
+
2876
+ // Registry of internal observers. If WeakMap is not available use current shim
2877
+ // for the Map collection as it has all required methods and because WeakMap
2878
+ // can't be fully polyfilled anyway.
2879
+ var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
2880
+ /**
2881
+ * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
2882
+ * exposing only those methods and properties that are defined in the spec.
2883
+ */
2884
+ var ResizeObserver = /** @class */ (function () {
2885
+ /**
2886
+ * Creates a new instance of ResizeObserver.
2887
+ *
2888
+ * @param {ResizeObserverCallback} callback - Callback that is invoked when
2889
+ * dimensions of the observed elements change.
2890
+ */
2891
+ function ResizeObserver(callback) {
2892
+ if (!(this instanceof ResizeObserver)) {
2893
+ throw new TypeError('Cannot call a class as a function.');
2894
+ }
2895
+ if (!arguments.length) {
2896
+ throw new TypeError('1 argument required, but only 0 present.');
2897
+ }
2898
+ var controller = ResizeObserverController.getInstance();
2899
+ var observer = new ResizeObserverSPI(callback, controller, this);
2900
+ observers.set(this, observer);
2901
+ }
2902
+ return ResizeObserver;
2903
+ }());
2904
+ // Expose public methods of ResizeObserver.
2905
+ [
2906
+ 'observe',
2907
+ 'unobserve',
2908
+ 'disconnect'
2909
+ ].forEach(function (method) {
2910
+ ResizeObserver.prototype[method] = function () {
2911
+ var _a;
2912
+ return (_a = observers.get(this))[method].apply(_a, arguments);
2913
+ };
2914
+ });
2915
+
2916
+ var index = (function () {
2917
+ // Export existing implementation if available.
2918
+ if (typeof global$1.ResizeObserver !== 'undefined') {
2919
+ return global$1.ResizeObserver;
2920
+ }
2921
+ return ResizeObserver;
2922
+ })();
2923
+
2924
+ var ResizeObserver_es = /*#__PURE__*/Object.freeze({
2925
+ __proto__: null,
2926
+ 'default': index
2927
+ });
2928
+
2929
+ var require$$8 = /*@__PURE__*/getAugmentedNamespace(ResizeObserver_es);
2930
+
2931
+ Object.defineProperty(innerSlider, "__esModule", {
2932
+ value: true
2933
+ });
2934
+ innerSlider.InnerSlider = void 0;
2935
+
2936
+ var _react = _interopRequireDefault(React__default);
2937
+
2938
+ var _initialState = _interopRequireDefault(initialState);
2939
+
2940
+ var _lodash = _interopRequireDefault(lodash_debounce);
2941
+
2942
+ var _classnames = _interopRequireDefault(classnames.exports);
2943
+
2944
+ var _innerSliderUtils = innerSliderUtils;
2945
+
2946
+ var _track = track;
2947
+
2948
+ var _dots = dots;
2949
+
2950
+ var _arrows = arrows;
2951
+
2952
+ var _resizeObserverPolyfill = _interopRequireDefault(require$$8);
2953
+
2954
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
2955
+
2956
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
2957
+
2958
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2959
+
2960
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
2961
+
2962
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2963
+
2964
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
2965
+
2966
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
2967
+
2968
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2969
+
2970
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2971
+
2972
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
2973
+
2974
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
2975
+
2976
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
2977
+
2978
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
2979
+
2980
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
2981
+
2982
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2983
+
2984
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
2985
+
2986
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
2987
+
2988
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2989
+
2990
+ var InnerSlider = /*#__PURE__*/function (_React$Component) {
2991
+ _inherits(InnerSlider, _React$Component);
2992
+
2993
+ var _super = _createSuper(InnerSlider);
2994
+
2995
+ function InnerSlider(props) {
2996
+ var _this;
2997
+
2998
+ _classCallCheck(this, InnerSlider);
2999
+
3000
+ _this = _super.call(this, props);
3001
+
3002
+ _defineProperty(_assertThisInitialized(_this), "listRefHandler", function (ref) {
3003
+ return _this.list = ref;
3004
+ });
3005
+
3006
+ _defineProperty(_assertThisInitialized(_this), "trackRefHandler", function (ref) {
3007
+ return _this.track = ref;
3008
+ });
3009
+
3010
+ _defineProperty(_assertThisInitialized(_this), "adaptHeight", function () {
3011
+ if (_this.props.adaptiveHeight && _this.list) {
3012
+ var elem = _this.list.querySelector("[data-index=\"".concat(_this.state.currentSlide, "\"]"));
3013
+
3014
+ _this.list.style.height = (0, _innerSliderUtils.getHeight)(elem) + "px";
3015
+ }
3016
+ });
3017
+
3018
+ _defineProperty(_assertThisInitialized(_this), "componentDidMount", function () {
3019
+ _this.props.onInit && _this.props.onInit();
3020
+
3021
+ if (_this.props.lazyLoad) {
3022
+ var slidesToLoad = (0, _innerSliderUtils.getOnDemandLazySlides)(_objectSpread(_objectSpread({}, _this.props), _this.state));
3023
+
3024
+ if (slidesToLoad.length > 0) {
3025
+ _this.setState(function (prevState) {
3026
+ return {
3027
+ lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad)
3028
+ };
3029
+ });
3030
+
3031
+ if (_this.props.onLazyLoad) {
3032
+ _this.props.onLazyLoad(slidesToLoad);
3033
+ }
3034
+ }
3035
+ }
3036
+
3037
+ var spec = _objectSpread({
3038
+ listRef: _this.list,
3039
+ trackRef: _this.track
3040
+ }, _this.props);
3041
+
3042
+ _this.updateState(spec, true, function () {
3043
+ _this.adaptHeight();
3044
+
3045
+ _this.props.autoplay && _this.autoPlay("update");
3046
+ });
3047
+
3048
+ if (_this.props.lazyLoad === "progressive") {
3049
+ _this.lazyLoadTimer = setInterval(_this.progressiveLazyLoad, 1000);
3050
+ }
3051
+
3052
+ _this.ro = new _resizeObserverPolyfill["default"](function () {
3053
+ if (_this.state.animating) {
3054
+ _this.onWindowResized(false); // don't set trackStyle hence don't break animation
3055
+
3056
+
3057
+ _this.callbackTimers.push(setTimeout(function () {
3058
+ return _this.onWindowResized();
3059
+ }, _this.props.speed));
3060
+ } else {
3061
+ _this.onWindowResized();
3062
+ }
3063
+ });
3064
+
3065
+ _this.ro.observe(_this.list);
3066
+
3067
+ document.querySelectorAll && Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"), function (slide) {
3068
+ slide.onfocus = _this.props.pauseOnFocus ? _this.onSlideFocus : null;
3069
+ slide.onblur = _this.props.pauseOnFocus ? _this.onSlideBlur : null;
3070
+ });
3071
+
3072
+ if (window.addEventListener) {
3073
+ window.addEventListener("resize", _this.onWindowResized);
3074
+ } else {
3075
+ window.attachEvent("onresize", _this.onWindowResized);
3076
+ }
3077
+ });
3078
+
3079
+ _defineProperty(_assertThisInitialized(_this), "componentWillUnmount", function () {
3080
+ if (_this.animationEndCallback) {
3081
+ clearTimeout(_this.animationEndCallback);
3082
+ }
3083
+
3084
+ if (_this.lazyLoadTimer) {
3085
+ clearInterval(_this.lazyLoadTimer);
3086
+ }
3087
+
3088
+ if (_this.callbackTimers.length) {
3089
+ _this.callbackTimers.forEach(function (timer) {
3090
+ return clearTimeout(timer);
3091
+ });
3092
+
3093
+ _this.callbackTimers = [];
3094
+ }
3095
+
3096
+ if (window.addEventListener) {
3097
+ window.removeEventListener("resize", _this.onWindowResized);
3098
+ } else {
3099
+ window.detachEvent("onresize", _this.onWindowResized);
3100
+ }
3101
+
3102
+ if (_this.autoplayTimer) {
3103
+ clearInterval(_this.autoplayTimer);
3104
+ }
3105
+
3106
+ _this.ro.disconnect();
3107
+ });
3108
+
3109
+ _defineProperty(_assertThisInitialized(_this), "componentDidUpdate", function (prevProps) {
3110
+ _this.checkImagesLoad();
3111
+
3112
+ _this.props.onReInit && _this.props.onReInit();
3113
+
3114
+ if (_this.props.lazyLoad) {
3115
+ var slidesToLoad = (0, _innerSliderUtils.getOnDemandLazySlides)(_objectSpread(_objectSpread({}, _this.props), _this.state));
3116
+
3117
+ if (slidesToLoad.length > 0) {
3118
+ _this.setState(function (prevState) {
3119
+ return {
3120
+ lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad)
3121
+ };
3122
+ });
3123
+
3124
+ if (_this.props.onLazyLoad) {
3125
+ _this.props.onLazyLoad(slidesToLoad);
3126
+ }
3127
+ }
3128
+ } // if (this.props.onLazyLoad) {
3129
+ // this.props.onLazyLoad([leftMostSlide])
3130
+ // }
3131
+
3132
+
3133
+ _this.adaptHeight();
3134
+
3135
+ var spec = _objectSpread(_objectSpread({
3136
+ listRef: _this.list,
3137
+ trackRef: _this.track
3138
+ }, _this.props), _this.state);
3139
+
3140
+ var setTrackStyle = _this.didPropsChange(prevProps);
3141
+
3142
+ setTrackStyle && _this.updateState(spec, setTrackStyle, function () {
3143
+ if (_this.state.currentSlide >= _react["default"].Children.count(_this.props.children)) {
3144
+ _this.changeSlide({
3145
+ message: "index",
3146
+ index: _react["default"].Children.count(_this.props.children) - _this.props.slidesToShow,
3147
+ currentSlide: _this.state.currentSlide
3148
+ });
3149
+ }
3150
+
3151
+ if (_this.props.autoplay) {
3152
+ _this.autoPlay("update");
3153
+ } else {
3154
+ _this.pause("paused");
3155
+ }
3156
+ });
3157
+ });
3158
+
3159
+ _defineProperty(_assertThisInitialized(_this), "onWindowResized", function (setTrackStyle) {
3160
+ if (_this.debouncedResize) _this.debouncedResize.cancel();
3161
+ _this.debouncedResize = (0, _lodash["default"])(function () {
3162
+ return _this.resizeWindow(setTrackStyle);
3163
+ }, 50);
3164
+
3165
+ _this.debouncedResize();
3166
+ });
3167
+
3168
+ _defineProperty(_assertThisInitialized(_this), "resizeWindow", function () {
3169
+ var setTrackStyle = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
3170
+ var isTrackMounted = Boolean(_this.track && _this.track.node); // prevent warning: setting state on unmounted component (server side rendering)
3171
+
3172
+ if (!isTrackMounted) return;
3173
+
3174
+ var spec = _objectSpread(_objectSpread({
3175
+ listRef: _this.list,
3176
+ trackRef: _this.track
3177
+ }, _this.props), _this.state);
3178
+
3179
+ _this.updateState(spec, setTrackStyle, function () {
3180
+ if (_this.props.autoplay) _this.autoPlay("update");else _this.pause("paused");
3181
+ }); // animating state should be cleared while resizing, otherwise autoplay stops working
3182
+
3183
+
3184
+ _this.setState({
3185
+ animating: false
3186
+ });
3187
+
3188
+ clearTimeout(_this.animationEndCallback);
3189
+ delete _this.animationEndCallback;
3190
+ });
3191
+
3192
+ _defineProperty(_assertThisInitialized(_this), "updateState", function (spec, setTrackStyle, callback) {
3193
+ var updatedState = (0, _innerSliderUtils.initializedState)(spec);
3194
+ spec = _objectSpread(_objectSpread(_objectSpread({}, spec), updatedState), {}, {
3195
+ slideIndex: updatedState.currentSlide
3196
+ });
3197
+ var targetLeft = (0, _innerSliderUtils.getTrackLeft)(spec);
3198
+ spec = _objectSpread(_objectSpread({}, spec), {}, {
3199
+ left: targetLeft
3200
+ });
3201
+ var trackStyle = (0, _innerSliderUtils.getTrackCSS)(spec);
3202
+
3203
+ if (setTrackStyle || _react["default"].Children.count(_this.props.children) !== _react["default"].Children.count(spec.children)) {
3204
+ updatedState["trackStyle"] = trackStyle;
3205
+ }
3206
+
3207
+ _this.setState(updatedState, callback);
3208
+ });
3209
+
3210
+ _defineProperty(_assertThisInitialized(_this), "ssrInit", function () {
3211
+ if (_this.props.variableWidth) {
3212
+ var _trackWidth = 0,
3213
+ _trackLeft = 0;
3214
+ var childrenWidths = [];
3215
+ var preClones = (0, _innerSliderUtils.getPreClones)(_objectSpread(_objectSpread(_objectSpread({}, _this.props), _this.state), {}, {
3216
+ slideCount: _this.props.children.length
3217
+ }));
3218
+ var postClones = (0, _innerSliderUtils.getPostClones)(_objectSpread(_objectSpread(_objectSpread({}, _this.props), _this.state), {}, {
3219
+ slideCount: _this.props.children.length
3220
+ }));
3221
+
3222
+ _this.props.children.forEach(function (child) {
3223
+ childrenWidths.push(child.props.style.width);
3224
+ _trackWidth += child.props.style.width;
3225
+ });
3226
+
3227
+ for (var i = 0; i < preClones; i++) {
3228
+ _trackLeft += childrenWidths[childrenWidths.length - 1 - i];
3229
+ _trackWidth += childrenWidths[childrenWidths.length - 1 - i];
3230
+ }
3231
+
3232
+ for (var _i = 0; _i < postClones; _i++) {
3233
+ _trackWidth += childrenWidths[_i];
3234
+ }
3235
+
3236
+ for (var _i2 = 0; _i2 < _this.state.currentSlide; _i2++) {
3237
+ _trackLeft += childrenWidths[_i2];
3238
+ }
3239
+
3240
+ var _trackStyle = {
3241
+ width: _trackWidth + "px",
3242
+ left: -_trackLeft + "px"
3243
+ };
3244
+
3245
+ if (_this.props.centerMode) {
3246
+ var currentWidth = "".concat(childrenWidths[_this.state.currentSlide], "px");
3247
+ _trackStyle.left = "calc(".concat(_trackStyle.left, " + (100% - ").concat(currentWidth, ") / 2 ) ");
3248
+ }
3249
+
3250
+ return {
3251
+ trackStyle: _trackStyle
3252
+ };
3253
+ }
3254
+
3255
+ var childrenCount = _react["default"].Children.count(_this.props.children);
3256
+
3257
+ var spec = _objectSpread(_objectSpread(_objectSpread({}, _this.props), _this.state), {}, {
3258
+ slideCount: childrenCount
3259
+ });
3260
+
3261
+ var slideCount = (0, _innerSliderUtils.getPreClones)(spec) + (0, _innerSliderUtils.getPostClones)(spec) + childrenCount;
3262
+ var trackWidth = 100 / _this.props.slidesToShow * slideCount;
3263
+ var slideWidth = 100 / slideCount;
3264
+ var trackLeft = -slideWidth * ((0, _innerSliderUtils.getPreClones)(spec) + _this.state.currentSlide) * trackWidth / 100;
3265
+
3266
+ if (_this.props.centerMode) {
3267
+ trackLeft += (100 - slideWidth * trackWidth / 100) / 2;
3268
+ }
3269
+
3270
+ var trackStyle = {
3271
+ width: trackWidth + "%",
3272
+ left: trackLeft + "%"
3273
+ };
3274
+ return {
3275
+ slideWidth: slideWidth + "%",
3276
+ trackStyle: trackStyle
3277
+ };
3278
+ });
3279
+
3280
+ _defineProperty(_assertThisInitialized(_this), "checkImagesLoad", function () {
3281
+ var images = _this.list && _this.list.querySelectorAll && _this.list.querySelectorAll(".slick-slide img") || [];
3282
+ var imagesCount = images.length,
3283
+ loadedCount = 0;
3284
+ Array.prototype.forEach.call(images, function (image) {
3285
+ var handler = function handler() {
3286
+ return ++loadedCount && loadedCount >= imagesCount && _this.onWindowResized();
3287
+ };
3288
+
3289
+ if (!image.onclick) {
3290
+ image.onclick = function () {
3291
+ return image.parentNode.focus();
3292
+ };
3293
+ } else {
3294
+ var prevClickHandler = image.onclick;
3295
+
3296
+ image.onclick = function () {
3297
+ prevClickHandler();
3298
+ image.parentNode.focus();
3299
+ };
3300
+ }
3301
+
3302
+ if (!image.onload) {
3303
+ if (_this.props.lazyLoad) {
3304
+ image.onload = function () {
3305
+ _this.adaptHeight();
3306
+
3307
+ _this.callbackTimers.push(setTimeout(_this.onWindowResized, _this.props.speed));
3308
+ };
3309
+ } else {
3310
+ image.onload = handler;
3311
+
3312
+ image.onerror = function () {
3313
+ handler();
3314
+ _this.props.onLazyLoadError && _this.props.onLazyLoadError();
3315
+ };
3316
+ }
3317
+ }
3318
+ });
3319
+ });
3320
+
3321
+ _defineProperty(_assertThisInitialized(_this), "progressiveLazyLoad", function () {
3322
+ var slidesToLoad = [];
3323
+
3324
+ var spec = _objectSpread(_objectSpread({}, _this.props), _this.state);
3325
+
3326
+ for (var index = _this.state.currentSlide; index < _this.state.slideCount + (0, _innerSliderUtils.getPostClones)(spec); index++) {
3327
+ if (_this.state.lazyLoadedList.indexOf(index) < 0) {
3328
+ slidesToLoad.push(index);
3329
+ break;
3330
+ }
3331
+ }
3332
+
3333
+ for (var _index = _this.state.currentSlide - 1; _index >= -(0, _innerSliderUtils.getPreClones)(spec); _index--) {
3334
+ if (_this.state.lazyLoadedList.indexOf(_index) < 0) {
3335
+ slidesToLoad.push(_index);
3336
+ break;
3337
+ }
3338
+ }
3339
+
3340
+ if (slidesToLoad.length > 0) {
3341
+ _this.setState(function (state) {
3342
+ return {
3343
+ lazyLoadedList: state.lazyLoadedList.concat(slidesToLoad)
3344
+ };
3345
+ });
3346
+
3347
+ if (_this.props.onLazyLoad) {
3348
+ _this.props.onLazyLoad(slidesToLoad);
3349
+ }
3350
+ } else {
3351
+ if (_this.lazyLoadTimer) {
3352
+ clearInterval(_this.lazyLoadTimer);
3353
+ delete _this.lazyLoadTimer;
3354
+ }
3355
+ }
3356
+ });
3357
+
3358
+ _defineProperty(_assertThisInitialized(_this), "slideHandler", function (index) {
3359
+ var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
3360
+ var _this$props = _this.props,
3361
+ asNavFor = _this$props.asNavFor,
3362
+ beforeChange = _this$props.beforeChange,
3363
+ onLazyLoad = _this$props.onLazyLoad,
3364
+ speed = _this$props.speed,
3365
+ afterChange = _this$props.afterChange; // capture currentslide before state is updated
3366
+
3367
+ var currentSlide = _this.state.currentSlide;
3368
+
3369
+ var _slideHandler = (0, _innerSliderUtils.slideHandler)(_objectSpread(_objectSpread(_objectSpread({
3370
+ index: index
3371
+ }, _this.props), _this.state), {}, {
3372
+ trackRef: _this.track,
3373
+ useCSS: _this.props.useCSS && !dontAnimate
3374
+ })),
3375
+ state = _slideHandler.state,
3376
+ nextState = _slideHandler.nextState;
3377
+
3378
+ if (!state) return;
3379
+ beforeChange && beforeChange(currentSlide, state.currentSlide);
3380
+ var slidesToLoad = state.lazyLoadedList.filter(function (value) {
3381
+ return _this.state.lazyLoadedList.indexOf(value) < 0;
3382
+ });
3383
+ onLazyLoad && slidesToLoad.length > 0 && onLazyLoad(slidesToLoad);
3384
+
3385
+ if (!_this.props.waitForAnimate && _this.animationEndCallback) {
3386
+ clearTimeout(_this.animationEndCallback);
3387
+ afterChange && afterChange(currentSlide);
3388
+ delete _this.animationEndCallback;
3389
+ }
3390
+
3391
+ _this.setState(state, function () {
3392
+ // asNavForIndex check is to avoid recursive calls of slideHandler in waitForAnimate=false mode
3393
+ if (asNavFor && _this.asNavForIndex !== index) {
3394
+ _this.asNavForIndex = index;
3395
+ asNavFor.innerSlider.slideHandler(index);
3396
+ }
3397
+
3398
+ if (!nextState) return;
3399
+ _this.animationEndCallback = setTimeout(function () {
3400
+ var animating = nextState.animating,
3401
+ firstBatch = _objectWithoutProperties(nextState, ["animating"]);
3402
+
3403
+ _this.setState(firstBatch, function () {
3404
+ _this.callbackTimers.push(setTimeout(function () {
3405
+ return _this.setState({
3406
+ animating: animating
3407
+ });
3408
+ }, 10));
3409
+
3410
+ afterChange && afterChange(state.currentSlide);
3411
+ delete _this.animationEndCallback;
3412
+ });
3413
+ }, speed);
3414
+ });
3415
+ });
3416
+
3417
+ _defineProperty(_assertThisInitialized(_this), "changeSlide", function (options) {
3418
+ var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
3419
+
3420
+ var spec = _objectSpread(_objectSpread({}, _this.props), _this.state);
3421
+
3422
+ var targetSlide = (0, _innerSliderUtils.changeSlide)(spec, options);
3423
+ if (targetSlide !== 0 && !targetSlide) return;
3424
+
3425
+ if (dontAnimate === true) {
3426
+ _this.slideHandler(targetSlide, dontAnimate);
3427
+ } else {
3428
+ _this.slideHandler(targetSlide);
3429
+ }
3430
+
3431
+ _this.props.autoplay && _this.autoPlay("update");
3432
+
3433
+ if (_this.props.focusOnSelect) {
3434
+ var nodes = _this.list.querySelectorAll(".slick-current");
3435
+
3436
+ nodes[0] && nodes[0].focus();
3437
+ }
3438
+ });
3439
+
3440
+ _defineProperty(_assertThisInitialized(_this), "clickHandler", function (e) {
3441
+ if (_this.clickable === false) {
3442
+ e.stopPropagation();
3443
+ e.preventDefault();
3444
+ }
3445
+
3446
+ _this.clickable = true;
3447
+ });
3448
+
3449
+ _defineProperty(_assertThisInitialized(_this), "keyHandler", function (e) {
3450
+ var dir = (0, _innerSliderUtils.keyHandler)(e, _this.props.accessibility, _this.props.rtl);
3451
+ dir !== "" && _this.changeSlide({
3452
+ message: dir
3453
+ });
3454
+ });
3455
+
3456
+ _defineProperty(_assertThisInitialized(_this), "selectHandler", function (options) {
3457
+ _this.changeSlide(options);
3458
+ });
3459
+
3460
+ _defineProperty(_assertThisInitialized(_this), "disableBodyScroll", function () {
3461
+ var preventDefault = function preventDefault(e) {
3462
+ e = e || window.event;
3463
+ if (e.preventDefault) e.preventDefault();
3464
+ e.returnValue = false;
3465
+ };
3466
+
3467
+ window.ontouchmove = preventDefault;
3468
+ });
3469
+
3470
+ _defineProperty(_assertThisInitialized(_this), "enableBodyScroll", function () {
3471
+ window.ontouchmove = null;
3472
+ });
3473
+
3474
+ _defineProperty(_assertThisInitialized(_this), "swipeStart", function (e) {
3475
+ if (_this.props.verticalSwiping) {
3476
+ _this.disableBodyScroll();
3477
+ }
3478
+
3479
+ var state = (0, _innerSliderUtils.swipeStart)(e, _this.props.swipe, _this.props.draggable);
3480
+ state !== "" && _this.setState(state);
3481
+ });
3482
+
3483
+ _defineProperty(_assertThisInitialized(_this), "swipeMove", function (e) {
3484
+ var state = (0, _innerSliderUtils.swipeMove)(e, _objectSpread(_objectSpread(_objectSpread({}, _this.props), _this.state), {}, {
3485
+ trackRef: _this.track,
3486
+ listRef: _this.list,
3487
+ slideIndex: _this.state.currentSlide
3488
+ }));
3489
+ if (!state) return;
3490
+
3491
+ if (state["swiping"]) {
3492
+ _this.clickable = false;
3493
+ }
3494
+
3495
+ _this.setState(state);
3496
+ });
3497
+
3498
+ _defineProperty(_assertThisInitialized(_this), "swipeEnd", function (e) {
3499
+ var state = (0, _innerSliderUtils.swipeEnd)(e, _objectSpread(_objectSpread(_objectSpread({}, _this.props), _this.state), {}, {
3500
+ trackRef: _this.track,
3501
+ listRef: _this.list,
3502
+ slideIndex: _this.state.currentSlide
3503
+ }));
3504
+ if (!state) return;
3505
+ var triggerSlideHandler = state["triggerSlideHandler"];
3506
+ delete state["triggerSlideHandler"];
3507
+
3508
+ _this.setState(state);
3509
+
3510
+ if (triggerSlideHandler === undefined) return;
3511
+
3512
+ _this.slideHandler(triggerSlideHandler);
3513
+
3514
+ if (_this.props.verticalSwiping) {
3515
+ _this.enableBodyScroll();
3516
+ }
3517
+ });
3518
+
3519
+ _defineProperty(_assertThisInitialized(_this), "touchEnd", function (e) {
3520
+ _this.swipeEnd(e);
3521
+
3522
+ _this.clickable = true;
3523
+ });
3524
+
3525
+ _defineProperty(_assertThisInitialized(_this), "slickPrev", function () {
3526
+ // this and fellow methods are wrapped in setTimeout
3527
+ // to make sure initialize setState has happened before
3528
+ // any of such methods are called
3529
+ _this.callbackTimers.push(setTimeout(function () {
3530
+ return _this.changeSlide({
3531
+ message: "previous"
3532
+ });
3533
+ }, 0));
3534
+ });
3535
+
3536
+ _defineProperty(_assertThisInitialized(_this), "slickNext", function () {
3537
+ _this.callbackTimers.push(setTimeout(function () {
3538
+ return _this.changeSlide({
3539
+ message: "next"
3540
+ });
3541
+ }, 0));
3542
+ });
3543
+
3544
+ _defineProperty(_assertThisInitialized(_this), "slickGoTo", function (slide) {
3545
+ var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
3546
+ slide = Number(slide);
3547
+ if (isNaN(slide)) return "";
3548
+
3549
+ _this.callbackTimers.push(setTimeout(function () {
3550
+ return _this.changeSlide({
3551
+ message: "index",
3552
+ index: slide,
3553
+ currentSlide: _this.state.currentSlide
3554
+ }, dontAnimate);
3555
+ }, 0));
3556
+ });
3557
+
3558
+ _defineProperty(_assertThisInitialized(_this), "play", function () {
3559
+ var nextIndex;
3560
+
3561
+ if (_this.props.rtl) {
3562
+ nextIndex = _this.state.currentSlide - _this.props.slidesToScroll;
3563
+ } else {
3564
+ if ((0, _innerSliderUtils.canGoNext)(_objectSpread(_objectSpread({}, _this.props), _this.state))) {
3565
+ nextIndex = _this.state.currentSlide + _this.props.slidesToScroll;
3566
+ } else {
3567
+ return false;
3568
+ }
3569
+ }
3570
+
3571
+ _this.slideHandler(nextIndex);
3572
+ });
3573
+
3574
+ _defineProperty(_assertThisInitialized(_this), "autoPlay", function (playType) {
3575
+ if (_this.autoplayTimer) {
3576
+ clearInterval(_this.autoplayTimer);
3577
+ }
3578
+
3579
+ var autoplaying = _this.state.autoplaying;
3580
+
3581
+ if (playType === "update") {
3582
+ if (autoplaying === "hovered" || autoplaying === "focused" || autoplaying === "paused") {
3583
+ return;
3584
+ }
3585
+ } else if (playType === "leave") {
3586
+ if (autoplaying === "paused" || autoplaying === "focused") {
3587
+ return;
3588
+ }
3589
+ } else if (playType === "blur") {
3590
+ if (autoplaying === "paused" || autoplaying === "hovered") {
3591
+ return;
3592
+ }
3593
+ }
3594
+
3595
+ _this.autoplayTimer = setInterval(_this.play, _this.props.autoplaySpeed + 50);
3596
+
3597
+ _this.setState({
3598
+ autoplaying: "playing"
3599
+ });
3600
+ });
3601
+
3602
+ _defineProperty(_assertThisInitialized(_this), "pause", function (pauseType) {
3603
+ if (_this.autoplayTimer) {
3604
+ clearInterval(_this.autoplayTimer);
3605
+ _this.autoplayTimer = null;
3606
+ }
3607
+
3608
+ var autoplaying = _this.state.autoplaying;
3609
+
3610
+ if (pauseType === "paused") {
3611
+ _this.setState({
3612
+ autoplaying: "paused"
3613
+ });
3614
+ } else if (pauseType === "focused") {
3615
+ if (autoplaying === "hovered" || autoplaying === "playing") {
3616
+ _this.setState({
3617
+ autoplaying: "focused"
3618
+ });
3619
+ }
3620
+ } else {
3621
+ // pauseType is 'hovered'
3622
+ if (autoplaying === "playing") {
3623
+ _this.setState({
3624
+ autoplaying: "hovered"
3625
+ });
3626
+ }
3627
+ }
3628
+ });
3629
+
3630
+ _defineProperty(_assertThisInitialized(_this), "onDotsOver", function () {
3631
+ return _this.props.autoplay && _this.pause("hovered");
3632
+ });
3633
+
3634
+ _defineProperty(_assertThisInitialized(_this), "onDotsLeave", function () {
3635
+ return _this.props.autoplay && _this.state.autoplaying === "hovered" && _this.autoPlay("leave");
3636
+ });
3637
+
3638
+ _defineProperty(_assertThisInitialized(_this), "onTrackOver", function () {
3639
+ return _this.props.autoplay && _this.pause("hovered");
3640
+ });
3641
+
3642
+ _defineProperty(_assertThisInitialized(_this), "onTrackLeave", function () {
3643
+ return _this.props.autoplay && _this.state.autoplaying === "hovered" && _this.autoPlay("leave");
3644
+ });
3645
+
3646
+ _defineProperty(_assertThisInitialized(_this), "onSlideFocus", function () {
3647
+ return _this.props.autoplay && _this.pause("focused");
3648
+ });
3649
+
3650
+ _defineProperty(_assertThisInitialized(_this), "onSlideBlur", function () {
3651
+ return _this.props.autoplay && _this.state.autoplaying === "focused" && _this.autoPlay("blur");
3652
+ });
3653
+
3654
+ _defineProperty(_assertThisInitialized(_this), "render", function () {
3655
+ var className = (0, _classnames["default"])("slick-slider", _this.props.className, {
3656
+ "slick-vertical": _this.props.vertical,
3657
+ "slick-initialized": true
3658
+ });
3659
+
3660
+ var spec = _objectSpread(_objectSpread({}, _this.props), _this.state);
3661
+
3662
+ var trackProps = (0, _innerSliderUtils.extractObject)(spec, ["fade", "cssEase", "speed", "infinite", "centerMode", "focusOnSelect", "currentSlide", "lazyLoad", "lazyLoadedList", "rtl", "slideWidth", "slideHeight", "listHeight", "vertical", "slidesToShow", "slidesToScroll", "slideCount", "trackStyle", "variableWidth", "unslick", "centerPadding", "targetSlide", "useCSS"]);
3663
+ var pauseOnHover = _this.props.pauseOnHover;
3664
+ trackProps = _objectSpread(_objectSpread({}, trackProps), {}, {
3665
+ onMouseEnter: pauseOnHover ? _this.onTrackOver : null,
3666
+ onMouseLeave: pauseOnHover ? _this.onTrackLeave : null,
3667
+ onMouseOver: pauseOnHover ? _this.onTrackOver : null,
3668
+ focusOnSelect: _this.props.focusOnSelect && _this.clickable ? _this.selectHandler : null
3669
+ });
3670
+ var dots;
3671
+
3672
+ if (_this.props.dots === true && _this.state.slideCount >= _this.props.slidesToShow) {
3673
+ var dotProps = (0, _innerSliderUtils.extractObject)(spec, ["dotsClass", "slideCount", "slidesToShow", "currentSlide", "slidesToScroll", "clickHandler", "children", "customPaging", "infinite", "appendDots"]);
3674
+ var pauseOnDotsHover = _this.props.pauseOnDotsHover;
3675
+ dotProps = _objectSpread(_objectSpread({}, dotProps), {}, {
3676
+ clickHandler: _this.changeSlide,
3677
+ onMouseEnter: pauseOnDotsHover ? _this.onDotsLeave : null,
3678
+ onMouseOver: pauseOnDotsHover ? _this.onDotsOver : null,
3679
+ onMouseLeave: pauseOnDotsHover ? _this.onDotsLeave : null
3680
+ });
3681
+ dots = /*#__PURE__*/_react["default"].createElement(_dots.Dots, dotProps);
3682
+ }
3683
+
3684
+ var prevArrow, nextArrow;
3685
+ var arrowProps = (0, _innerSliderUtils.extractObject)(spec, ["infinite", "centerMode", "currentSlide", "slideCount", "slidesToShow", "prevArrow", "nextArrow"]);
3686
+ arrowProps.clickHandler = _this.changeSlide;
3687
+
3688
+ if (_this.props.arrows) {
3689
+ prevArrow = /*#__PURE__*/_react["default"].createElement(_arrows.PrevArrow, arrowProps);
3690
+ nextArrow = /*#__PURE__*/_react["default"].createElement(_arrows.NextArrow, arrowProps);
3691
+ }
3692
+
3693
+ var verticalHeightStyle = null;
3694
+
3695
+ if (_this.props.vertical) {
3696
+ verticalHeightStyle = {
3697
+ height: _this.state.listHeight
3698
+ };
3699
+ }
3700
+
3701
+ var centerPaddingStyle = null;
3702
+
3703
+ if (_this.props.vertical === false) {
3704
+ if (_this.props.centerMode === true) {
3705
+ centerPaddingStyle = {
3706
+ padding: "0px " + _this.props.centerPadding
3707
+ };
3708
+ }
3709
+ } else {
3710
+ if (_this.props.centerMode === true) {
3711
+ centerPaddingStyle = {
3712
+ padding: _this.props.centerPadding + " 0px"
3713
+ };
3714
+ }
3715
+ }
3716
+
3717
+ var listStyle = _objectSpread(_objectSpread({}, verticalHeightStyle), centerPaddingStyle);
3718
+
3719
+ var touchMove = _this.props.touchMove;
3720
+ var listProps = {
3721
+ className: "slick-list",
3722
+ style: listStyle,
3723
+ onClick: _this.clickHandler,
3724
+ onMouseDown: touchMove ? _this.swipeStart : null,
3725
+ onMouseMove: _this.state.dragging && touchMove ? _this.swipeMove : null,
3726
+ onMouseUp: touchMove ? _this.swipeEnd : null,
3727
+ onMouseLeave: _this.state.dragging && touchMove ? _this.swipeEnd : null,
3728
+ onTouchStart: touchMove ? _this.swipeStart : null,
3729
+ onTouchMove: _this.state.dragging && touchMove ? _this.swipeMove : null,
3730
+ onTouchEnd: touchMove ? _this.touchEnd : null,
3731
+ onTouchCancel: _this.state.dragging && touchMove ? _this.swipeEnd : null,
3732
+ onKeyDown: _this.props.accessibility ? _this.keyHandler : null
3733
+ };
3734
+ var innerSliderProps = {
3735
+ className: className,
3736
+ dir: "ltr",
3737
+ style: _this.props.style
3738
+ };
3739
+
3740
+ if (_this.props.unslick) {
3741
+ listProps = {
3742
+ className: "slick-list"
3743
+ };
3744
+ innerSliderProps = {
3745
+ className: className
3746
+ };
3747
+ }
3748
+
3749
+ return /*#__PURE__*/_react["default"].createElement("div", innerSliderProps, !_this.props.unslick ? prevArrow : "", /*#__PURE__*/_react["default"].createElement("div", _extends({
3750
+ ref: _this.listRefHandler
3751
+ }, listProps), /*#__PURE__*/_react["default"].createElement(_track.Track, _extends({
3752
+ ref: _this.trackRefHandler
3753
+ }, trackProps), _this.props.children)), !_this.props.unslick ? nextArrow : "", !_this.props.unslick ? dots : "");
3754
+ });
3755
+
3756
+ _this.list = null;
3757
+ _this.track = null;
3758
+ _this.state = _objectSpread(_objectSpread({}, _initialState["default"]), {}, {
3759
+ currentSlide: _this.props.initialSlide,
3760
+ slideCount: _react["default"].Children.count(_this.props.children)
3761
+ });
3762
+ _this.callbackTimers = [];
3763
+ _this.clickable = true;
3764
+ _this.debouncedResize = null;
3765
+
3766
+ var ssrState = _this.ssrInit();
3767
+
3768
+ _this.state = _objectSpread(_objectSpread({}, _this.state), ssrState);
3769
+ return _this;
3770
+ }
3771
+
3772
+ _createClass(InnerSlider, [{
3773
+ key: "didPropsChange",
3774
+ value: function didPropsChange(prevProps) {
3775
+ var setTrackStyle = false;
3776
+
3777
+ for (var _i3 = 0, _Object$keys = Object.keys(this.props); _i3 < _Object$keys.length; _i3++) {
3778
+ var key = _Object$keys[_i3];
3779
+
3780
+ if (!prevProps.hasOwnProperty(key)) {
3781
+ setTrackStyle = true;
3782
+ break;
3783
+ }
3784
+
3785
+ if (_typeof(prevProps[key]) === "object" || typeof prevProps[key] === "function") {
3786
+ continue;
3787
+ }
3788
+
3789
+ if (prevProps[key] !== this.props[key]) {
3790
+ setTrackStyle = true;
3791
+ break;
3792
+ }
3793
+ }
3794
+
3795
+ return setTrackStyle || _react["default"].Children.count(this.props.children) !== _react["default"].Children.count(prevProps.children);
3796
+ }
3797
+ }]);
3798
+
3799
+ return InnerSlider;
3800
+ }(_react["default"].Component);
3801
+
3802
+ innerSlider.InnerSlider = InnerSlider;
3803
+
3804
+ var camel2hyphen$1 = function (str) {
3805
+ return str
3806
+ .replace(/[A-Z]/g, function (match) {
3807
+ return '-' + match.toLowerCase();
3808
+ })
3809
+ .toLowerCase();
3810
+ };
3811
+
3812
+ var camel2hyphen_1 = camel2hyphen$1;
3813
+
3814
+ var camel2hyphen = camel2hyphen_1;
3815
+
3816
+ var isDimension = function (feature) {
3817
+ var re = /[height|width]$/;
3818
+ return re.test(feature);
3819
+ };
3820
+
3821
+ var obj2mq = function (obj) {
3822
+ var mq = '';
3823
+ var features = Object.keys(obj);
3824
+ features.forEach(function (feature, index) {
3825
+ var value = obj[feature];
3826
+ feature = camel2hyphen(feature);
3827
+ // Add px to dimension features
3828
+ if (isDimension(feature) && typeof value === 'number') {
3829
+ value = value + 'px';
3830
+ }
3831
+ if (value === true) {
3832
+ mq += feature;
3833
+ } else if (value === false) {
3834
+ mq += 'not ' + feature;
3835
+ } else {
3836
+ mq += '(' + feature + ': ' + value + ')';
3837
+ }
3838
+ if (index < features.length-1) {
3839
+ mq += ' and ';
3840
+ }
3841
+ });
3842
+ return mq;
3843
+ };
3844
+
3845
+ var json2mq = function (query) {
3846
+ var mq = '';
3847
+ if (typeof query === 'string') {
3848
+ return query;
3849
+ }
3850
+ // Handling array of media queries
3851
+ if (query instanceof Array) {
3852
+ query.forEach(function (q, index) {
3853
+ mq += obj2mq(q);
3854
+ if (index < query.length-1) {
3855
+ mq += ', ';
3856
+ }
3857
+ });
3858
+ return mq;
3859
+ }
3860
+ // Handling single media query
3861
+ return obj2mq(query);
3862
+ };
3863
+
3864
+ var json2mq_1 = json2mq;
3865
+
3866
+ var defaultProps = {};
3867
+
3868
+ (function (exports) {
3869
+
3870
+ Object.defineProperty(exports, "__esModule", {
3871
+ value: true
3872
+ });
3873
+ exports["default"] = void 0;
3874
+
3875
+ var _react = _interopRequireDefault(React__default);
3876
+
3877
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
3878
+
3879
+ var defaultProps = {
3880
+ accessibility: true,
3881
+ adaptiveHeight: false,
3882
+ afterChange: null,
3883
+ appendDots: function appendDots(dots) {
3884
+ return /*#__PURE__*/_react["default"].createElement("ul", {
3885
+ style: {
3886
+ display: "block"
3887
+ }
3888
+ }, dots);
3889
+ },
3890
+ arrows: true,
3891
+ autoplay: false,
3892
+ autoplaySpeed: 3000,
3893
+ beforeChange: null,
3894
+ centerMode: false,
3895
+ centerPadding: "50px",
3896
+ className: "",
3897
+ cssEase: "ease",
3898
+ customPaging: function customPaging(i) {
3899
+ return /*#__PURE__*/_react["default"].createElement("button", null, i + 1);
3900
+ },
3901
+ dots: false,
3902
+ dotsClass: "slick-dots",
3903
+ draggable: true,
3904
+ easing: "linear",
3905
+ edgeFriction: 0.35,
3906
+ fade: false,
3907
+ focusOnSelect: false,
3908
+ infinite: true,
3909
+ initialSlide: 0,
3910
+ lazyLoad: null,
3911
+ nextArrow: null,
3912
+ onEdge: null,
3913
+ onInit: null,
3914
+ onLazyLoadError: null,
3915
+ onReInit: null,
3916
+ pauseOnDotsHover: false,
3917
+ pauseOnFocus: false,
3918
+ pauseOnHover: true,
3919
+ prevArrow: null,
3920
+ responsive: null,
3921
+ rows: 1,
3922
+ rtl: false,
3923
+ slide: "div",
3924
+ slidesPerRow: 1,
3925
+ slidesToScroll: 1,
3926
+ slidesToShow: 1,
3927
+ speed: 500,
3928
+ swipe: true,
3929
+ swipeEvent: null,
3930
+ swipeToSlide: false,
3931
+ touchMove: true,
3932
+ touchThreshold: 5,
3933
+ useCSS: true,
3934
+ useTransform: true,
3935
+ variableWidth: false,
3936
+ vertical: false,
3937
+ waitForAnimate: true
3938
+ };
3939
+ var _default = defaultProps;
3940
+ exports["default"] = _default;
3941
+ } (defaultProps));
3942
+
3943
+ /**
3944
+ * Delegate to handle a media query being matched and unmatched.
3945
+ *
3946
+ * @param {object} options
3947
+ * @param {function} options.match callback for when the media query is matched
3948
+ * @param {function} [options.unmatch] callback for when the media query is unmatched
3949
+ * @param {function} [options.setup] one-time callback triggered the first time a query is matched
3950
+ * @param {boolean} [options.deferSetup=false] should the setup callback be run immediately, rather than first time query is matched?
3951
+ * @constructor
3952
+ */
3953
+
3954
+ var QueryHandler_1;
3955
+ var hasRequiredQueryHandler;
3956
+
3957
+ function requireQueryHandler () {
3958
+ if (hasRequiredQueryHandler) return QueryHandler_1;
3959
+ hasRequiredQueryHandler = 1;
3960
+ function QueryHandler(options) {
3961
+ this.options = options;
3962
+ !options.deferSetup && this.setup();
3963
+ }
3964
+
3965
+ QueryHandler.prototype = {
3966
+
3967
+ constructor : QueryHandler,
3968
+
3969
+ /**
3970
+ * coordinates setup of the handler
3971
+ *
3972
+ * @function
3973
+ */
3974
+ setup : function() {
3975
+ if(this.options.setup) {
3976
+ this.options.setup();
3977
+ }
3978
+ this.initialised = true;
3979
+ },
3980
+
3981
+ /**
3982
+ * coordinates setup and triggering of the handler
3983
+ *
3984
+ * @function
3985
+ */
3986
+ on : function() {
3987
+ !this.initialised && this.setup();
3988
+ this.options.match && this.options.match();
3989
+ },
3990
+
3991
+ /**
3992
+ * coordinates the unmatch event for the handler
3993
+ *
3994
+ * @function
3995
+ */
3996
+ off : function() {
3997
+ this.options.unmatch && this.options.unmatch();
3998
+ },
3999
+
4000
+ /**
4001
+ * called when a handler is to be destroyed.
4002
+ * delegates to the destroy or unmatch callbacks, depending on availability.
4003
+ *
4004
+ * @function
4005
+ */
4006
+ destroy : function() {
4007
+ this.options.destroy ? this.options.destroy() : this.off();
4008
+ },
4009
+
4010
+ /**
4011
+ * determines equality by reference.
4012
+ * if object is supplied compare options, if function, compare match callback
4013
+ *
4014
+ * @function
4015
+ * @param {object || function} [target] the target for comparison
4016
+ */
4017
+ equals : function(target) {
4018
+ return this.options === target || this.options.match === target;
4019
+ }
4020
+
4021
+ };
4022
+
4023
+ QueryHandler_1 = QueryHandler;
4024
+ return QueryHandler_1;
4025
+ }
4026
+
4027
+ /**
4028
+ * Helper function for iterating over a collection
4029
+ *
4030
+ * @param collection
4031
+ * @param fn
4032
+ */
4033
+
4034
+ var Util;
4035
+ var hasRequiredUtil;
4036
+
4037
+ function requireUtil () {
4038
+ if (hasRequiredUtil) return Util;
4039
+ hasRequiredUtil = 1;
4040
+ function each(collection, fn) {
4041
+ var i = 0,
4042
+ length = collection.length,
4043
+ cont;
4044
+
4045
+ for(i; i < length; i++) {
4046
+ cont = fn(collection[i], i);
4047
+ if(cont === false) {
4048
+ break; //allow early exit
4049
+ }
4050
+ }
4051
+ }
4052
+
4053
+ /**
4054
+ * Helper function for determining whether target object is an array
4055
+ *
4056
+ * @param target the object under test
4057
+ * @return {Boolean} true if array, false otherwise
4058
+ */
4059
+ function isArray(target) {
4060
+ return Object.prototype.toString.apply(target) === '[object Array]';
4061
+ }
4062
+
4063
+ /**
4064
+ * Helper function for determining whether target object is a function
4065
+ *
4066
+ * @param target the object under test
4067
+ * @return {Boolean} true if function, false otherwise
4068
+ */
4069
+ function isFunction(target) {
4070
+ return typeof target === 'function';
4071
+ }
4072
+
4073
+ Util = {
4074
+ isFunction : isFunction,
4075
+ isArray : isArray,
4076
+ each : each
4077
+ };
4078
+ return Util;
4079
+ }
4080
+
4081
+ var MediaQuery_1;
4082
+ var hasRequiredMediaQuery;
4083
+
4084
+ function requireMediaQuery () {
4085
+ if (hasRequiredMediaQuery) return MediaQuery_1;
4086
+ hasRequiredMediaQuery = 1;
4087
+ var QueryHandler = requireQueryHandler();
4088
+ var each = requireUtil().each;
4089
+
4090
+ /**
4091
+ * Represents a single media query, manages it's state and registered handlers for this query
4092
+ *
4093
+ * @constructor
4094
+ * @param {string} query the media query string
4095
+ * @param {boolean} [isUnconditional=false] whether the media query should run regardless of whether the conditions are met. Primarily for helping older browsers deal with mobile-first design
4096
+ */
4097
+ function MediaQuery(query, isUnconditional) {
4098
+ this.query = query;
4099
+ this.isUnconditional = isUnconditional;
4100
+ this.handlers = [];
4101
+ this.mql = window.matchMedia(query);
4102
+
4103
+ var self = this;
4104
+ this.listener = function(mql) {
4105
+ // Chrome passes an MediaQueryListEvent object, while other browsers pass MediaQueryList directly
4106
+ self.mql = mql.currentTarget || mql;
4107
+ self.assess();
4108
+ };
4109
+ this.mql.addListener(this.listener);
4110
+ }
4111
+
4112
+ MediaQuery.prototype = {
4113
+
4114
+ constuctor : MediaQuery,
4115
+
4116
+ /**
4117
+ * add a handler for this query, triggering if already active
4118
+ *
4119
+ * @param {object} handler
4120
+ * @param {function} handler.match callback for when query is activated
4121
+ * @param {function} [handler.unmatch] callback for when query is deactivated
4122
+ * @param {function} [handler.setup] callback for immediate execution when a query handler is registered
4123
+ * @param {boolean} [handler.deferSetup=false] should the setup callback be deferred until the first time the handler is matched?
4124
+ */
4125
+ addHandler : function(handler) {
4126
+ var qh = new QueryHandler(handler);
4127
+ this.handlers.push(qh);
4128
+
4129
+ this.matches() && qh.on();
4130
+ },
4131
+
4132
+ /**
4133
+ * removes the given handler from the collection, and calls it's destroy methods
4134
+ *
4135
+ * @param {object || function} handler the handler to remove
4136
+ */
4137
+ removeHandler : function(handler) {
4138
+ var handlers = this.handlers;
4139
+ each(handlers, function(h, i) {
4140
+ if(h.equals(handler)) {
4141
+ h.destroy();
4142
+ return !handlers.splice(i,1); //remove from array and exit each early
4143
+ }
4144
+ });
4145
+ },
4146
+
4147
+ /**
4148
+ * Determine whether the media query should be considered a match
4149
+ *
4150
+ * @return {Boolean} true if media query can be considered a match, false otherwise
4151
+ */
4152
+ matches : function() {
4153
+ return this.mql.matches || this.isUnconditional;
4154
+ },
4155
+
4156
+ /**
4157
+ * Clears all handlers and unbinds events
4158
+ */
4159
+ clear : function() {
4160
+ each(this.handlers, function(handler) {
4161
+ handler.destroy();
4162
+ });
4163
+ this.mql.removeListener(this.listener);
4164
+ this.handlers.length = 0; //clear array
4165
+ },
4166
+
4167
+ /*
4168
+ * Assesses the query, turning on all handlers if it matches, turning them off if it doesn't match
4169
+ */
4170
+ assess : function() {
4171
+ var action = this.matches() ? 'on' : 'off';
4172
+
4173
+ each(this.handlers, function(handler) {
4174
+ handler[action]();
4175
+ });
4176
+ }
4177
+ };
4178
+
4179
+ MediaQuery_1 = MediaQuery;
4180
+ return MediaQuery_1;
4181
+ }
4182
+
4183
+ var MediaQueryDispatch_1;
4184
+ var hasRequiredMediaQueryDispatch;
4185
+
4186
+ function requireMediaQueryDispatch () {
4187
+ if (hasRequiredMediaQueryDispatch) return MediaQueryDispatch_1;
4188
+ hasRequiredMediaQueryDispatch = 1;
4189
+ var MediaQuery = requireMediaQuery();
4190
+ var Util = requireUtil();
4191
+ var each = Util.each;
4192
+ var isFunction = Util.isFunction;
4193
+ var isArray = Util.isArray;
4194
+
4195
+ /**
4196
+ * Allows for registration of query handlers.
4197
+ * Manages the query handler's state and is responsible for wiring up browser events
4198
+ *
4199
+ * @constructor
4200
+ */
4201
+ function MediaQueryDispatch () {
4202
+ if(!window.matchMedia) {
4203
+ throw new Error('matchMedia not present, legacy browsers require a polyfill');
4204
+ }
4205
+
4206
+ this.queries = {};
4207
+ this.browserIsIncapable = !window.matchMedia('only all').matches;
4208
+ }
4209
+
4210
+ MediaQueryDispatch.prototype = {
4211
+
4212
+ constructor : MediaQueryDispatch,
4213
+
4214
+ /**
4215
+ * Registers a handler for the given media query
4216
+ *
4217
+ * @param {string} q the media query
4218
+ * @param {object || Array || Function} options either a single query handler object, a function, or an array of query handlers
4219
+ * @param {function} options.match fired when query matched
4220
+ * @param {function} [options.unmatch] fired when a query is no longer matched
4221
+ * @param {function} [options.setup] fired when handler first triggered
4222
+ * @param {boolean} [options.deferSetup=false] whether setup should be run immediately or deferred until query is first matched
4223
+ * @param {boolean} [shouldDegrade=false] whether this particular media query should always run on incapable browsers
4224
+ */
4225
+ register : function(q, options, shouldDegrade) {
4226
+ var queries = this.queries,
4227
+ isUnconditional = shouldDegrade && this.browserIsIncapable;
4228
+
4229
+ if(!queries[q]) {
4230
+ queries[q] = new MediaQuery(q, isUnconditional);
4231
+ }
4232
+
4233
+ //normalise to object in an array
4234
+ if(isFunction(options)) {
4235
+ options = { match : options };
4236
+ }
4237
+ if(!isArray(options)) {
4238
+ options = [options];
4239
+ }
4240
+ each(options, function(handler) {
4241
+ if (isFunction(handler)) {
4242
+ handler = { match : handler };
4243
+ }
4244
+ queries[q].addHandler(handler);
4245
+ });
4246
+
4247
+ return this;
4248
+ },
4249
+
4250
+ /**
4251
+ * unregisters a query and all it's handlers, or a specific handler for a query
4252
+ *
4253
+ * @param {string} q the media query to target
4254
+ * @param {object || function} [handler] specific handler to unregister
4255
+ */
4256
+ unregister : function(q, handler) {
4257
+ var query = this.queries[q];
4258
+
4259
+ if(query) {
4260
+ if(handler) {
4261
+ query.removeHandler(handler);
4262
+ }
4263
+ else {
4264
+ query.clear();
4265
+ delete this.queries[q];
4266
+ }
4267
+ }
4268
+
4269
+ return this;
4270
+ }
4271
+ };
4272
+
4273
+ MediaQueryDispatch_1 = MediaQueryDispatch;
4274
+ return MediaQueryDispatch_1;
4275
+ }
4276
+
4277
+ var src;
4278
+ var hasRequiredSrc;
4279
+
4280
+ function requireSrc () {
4281
+ if (hasRequiredSrc) return src;
4282
+ hasRequiredSrc = 1;
4283
+ var MediaQueryDispatch = requireMediaQueryDispatch();
4284
+ src = new MediaQueryDispatch();
4285
+ return src;
4286
+ }
4287
+
4288
+ (function (exports) {
4289
+
4290
+ Object.defineProperty(exports, "__esModule", {
4291
+ value: true
4292
+ });
4293
+ exports["default"] = void 0;
4294
+
4295
+ var _react = _interopRequireDefault(React__default);
4296
+
4297
+ var _innerSlider = innerSlider;
4298
+
4299
+ var _json2mq = _interopRequireDefault(json2mq_1);
4300
+
4301
+ var _defaultProps = _interopRequireDefault(defaultProps);
4302
+
4303
+ var _innerSliderUtils = innerSliderUtils;
4304
+
4305
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
4306
+
4307
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4308
+
4309
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4310
+
4311
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
4312
+
4313
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
4314
+
4315
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4316
+
4317
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
4318
+
4319
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4320
+
4321
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
4322
+
4323
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
4324
+
4325
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
4326
+
4327
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4328
+
4329
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4330
+
4331
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
4332
+
4333
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4334
+
4335
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4336
+
4337
+ var enquire = (0, _innerSliderUtils.canUseDOM)() && requireSrc();
4338
+
4339
+ var Slider = /*#__PURE__*/function (_React$Component) {
4340
+ _inherits(Slider, _React$Component);
4341
+
4342
+ var _super = _createSuper(Slider);
4343
+
4344
+ function Slider(props) {
4345
+ var _this;
4346
+
4347
+ _classCallCheck(this, Slider);
4348
+
4349
+ _this = _super.call(this, props);
4350
+
4351
+ _defineProperty(_assertThisInitialized(_this), "innerSliderRefHandler", function (ref) {
4352
+ return _this.innerSlider = ref;
4353
+ });
4354
+
4355
+ _defineProperty(_assertThisInitialized(_this), "slickPrev", function () {
4356
+ return _this.innerSlider.slickPrev();
4357
+ });
4358
+
4359
+ _defineProperty(_assertThisInitialized(_this), "slickNext", function () {
4360
+ return _this.innerSlider.slickNext();
4361
+ });
4362
+
4363
+ _defineProperty(_assertThisInitialized(_this), "slickGoTo", function (slide) {
4364
+ var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
4365
+ return _this.innerSlider.slickGoTo(slide, dontAnimate);
4366
+ });
4367
+
4368
+ _defineProperty(_assertThisInitialized(_this), "slickPause", function () {
4369
+ return _this.innerSlider.pause("paused");
4370
+ });
4371
+
4372
+ _defineProperty(_assertThisInitialized(_this), "slickPlay", function () {
4373
+ return _this.innerSlider.autoPlay("play");
4374
+ });
4375
+
4376
+ _this.state = {
4377
+ breakpoint: null
4378
+ };
4379
+ _this._responsiveMediaHandlers = [];
4380
+ return _this;
4381
+ }
4382
+
4383
+ _createClass(Slider, [{
4384
+ key: "media",
4385
+ value: function media(query, handler) {
4386
+ // javascript handler for css media query
4387
+ enquire.register(query, handler);
4388
+
4389
+ this._responsiveMediaHandlers.push({
4390
+ query: query,
4391
+ handler: handler
4392
+ });
4393
+ } // handles responsive breakpoints
4394
+
4395
+ }, {
4396
+ key: "componentDidMount",
4397
+ value: function componentDidMount() {
4398
+ var _this2 = this;
4399
+
4400
+ // performance monitoring
4401
+ //if ("production" !== 'production') {
4402
+ //const { whyDidYouUpdate } = require('why-did-you-update')
4403
+ //whyDidYouUpdate(React)
4404
+ //}
4405
+ if (this.props.responsive) {
4406
+ var breakpoints = this.props.responsive.map(function (breakpt) {
4407
+ return breakpt.breakpoint;
4408
+ }); // sort them in increasing order of their numerical value
4409
+
4410
+ breakpoints.sort(function (x, y) {
4411
+ return x - y;
4412
+ });
4413
+ breakpoints.forEach(function (breakpoint, index) {
4414
+ // media query for each breakpoint
4415
+ var bQuery;
4416
+
4417
+ if (index === 0) {
4418
+ bQuery = (0, _json2mq["default"])({
4419
+ minWidth: 0,
4420
+ maxWidth: breakpoint
4421
+ });
4422
+ } else {
4423
+ bQuery = (0, _json2mq["default"])({
4424
+ minWidth: breakpoints[index - 1] + 1,
4425
+ maxWidth: breakpoint
4426
+ });
4427
+ } // when not using server side rendering
4428
+
4429
+
4430
+ (0, _innerSliderUtils.canUseDOM)() && _this2.media(bQuery, function () {
4431
+ _this2.setState({
4432
+ breakpoint: breakpoint
4433
+ });
4434
+ });
4435
+ }); // Register media query for full screen. Need to support resize from small to large
4436
+ // convert javascript object to media query string
4437
+
4438
+ var query = (0, _json2mq["default"])({
4439
+ minWidth: breakpoints.slice(-1)[0]
4440
+ });
4441
+ (0, _innerSliderUtils.canUseDOM)() && this.media(query, function () {
4442
+ _this2.setState({
4443
+ breakpoint: null
4444
+ });
4445
+ });
4446
+ }
4447
+ }
4448
+ }, {
4449
+ key: "componentWillUnmount",
4450
+ value: function componentWillUnmount() {
4451
+ this._responsiveMediaHandlers.forEach(function (obj) {
4452
+ enquire.unregister(obj.query, obj.handler);
4453
+ });
4454
+ }
4455
+ }, {
4456
+ key: "render",
4457
+ value: function render() {
4458
+ var _this3 = this;
4459
+
4460
+ var settings;
4461
+ var newProps;
4462
+
4463
+ if (this.state.breakpoint) {
4464
+ newProps = this.props.responsive.filter(function (resp) {
4465
+ return resp.breakpoint === _this3.state.breakpoint;
4466
+ });
4467
+ settings = newProps[0].settings === "unslick" ? "unslick" : _objectSpread(_objectSpread(_objectSpread({}, _defaultProps["default"]), this.props), newProps[0].settings);
4468
+ } else {
4469
+ settings = _objectSpread(_objectSpread({}, _defaultProps["default"]), this.props);
4470
+ } // force scrolling by one if centerMode is on
4471
+
4472
+
4473
+ if (settings.centerMode) {
4474
+ if (settings.slidesToScroll > 1 && "production" !== "production") {
4475
+ console.warn("slidesToScroll should be equal to 1 in centerMode, you are using ".concat(settings.slidesToScroll));
4476
+ }
4477
+
4478
+ settings.slidesToScroll = 1;
4479
+ } // force showing one slide and scrolling by one if the fade mode is on
4480
+
4481
+
4482
+ if (settings.fade) {
4483
+ if (settings.slidesToShow > 1 && "production" !== "production") {
4484
+ console.warn("slidesToShow should be equal to 1 when fade is true, you're using ".concat(settings.slidesToShow));
4485
+ }
4486
+
4487
+ if (settings.slidesToScroll > 1 && "production" !== "production") {
4488
+ console.warn("slidesToScroll should be equal to 1 when fade is true, you're using ".concat(settings.slidesToScroll));
4489
+ }
4490
+
4491
+ settings.slidesToShow = 1;
4492
+ settings.slidesToScroll = 1;
4493
+ } // makes sure that children is an array, even when there is only 1 child
4494
+
4495
+
4496
+ var children = _react["default"].Children.toArray(this.props.children); // Children may contain false or null, so we should filter them
4497
+ // children may also contain string filled with spaces (in certain cases where we use jsx strings)
4498
+
4499
+
4500
+ children = children.filter(function (child) {
4501
+ if (typeof child === "string") {
4502
+ return !!child.trim();
4503
+ }
4504
+
4505
+ return !!child;
4506
+ }); // rows and slidesPerRow logic is handled here
4507
+
4508
+ if (settings.variableWidth && (settings.rows > 1 || settings.slidesPerRow > 1)) {
4509
+ console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1");
4510
+ settings.variableWidth = false;
4511
+ }
4512
+
4513
+ var newChildren = [];
4514
+ var currentWidth = null;
4515
+
4516
+ for (var i = 0; i < children.length; i += settings.rows * settings.slidesPerRow) {
4517
+ var newSlide = [];
4518
+
4519
+ for (var j = i; j < i + settings.rows * settings.slidesPerRow; j += settings.slidesPerRow) {
4520
+ var row = [];
4521
+
4522
+ for (var k = j; k < j + settings.slidesPerRow; k += 1) {
4523
+ if (settings.variableWidth && children[k].props.style) {
4524
+ currentWidth = children[k].props.style.width;
4525
+ }
4526
+
4527
+ if (k >= children.length) break;
4528
+ row.push( /*#__PURE__*/_react["default"].cloneElement(children[k], {
4529
+ key: 100 * i + 10 * j + k,
4530
+ tabIndex: -1,
4531
+ style: {
4532
+ width: "".concat(100 / settings.slidesPerRow, "%"),
4533
+ display: "inline-block"
4534
+ }
4535
+ }));
4536
+ }
4537
+
4538
+ newSlide.push( /*#__PURE__*/_react["default"].createElement("div", {
4539
+ key: 10 * i + j
4540
+ }, row));
4541
+ }
4542
+
4543
+ if (settings.variableWidth) {
4544
+ newChildren.push( /*#__PURE__*/_react["default"].createElement("div", {
4545
+ key: i,
4546
+ style: {
4547
+ width: currentWidth
4548
+ }
4549
+ }, newSlide));
4550
+ } else {
4551
+ newChildren.push( /*#__PURE__*/_react["default"].createElement("div", {
4552
+ key: i
4553
+ }, newSlide));
4554
+ }
4555
+ }
4556
+
4557
+ if (settings === "unslick") {
4558
+ var className = "regular slider " + (this.props.className || "");
4559
+ return /*#__PURE__*/_react["default"].createElement("div", {
4560
+ className: className
4561
+ }, children);
4562
+ } else if (newChildren.length <= settings.slidesToShow) {
4563
+ settings.unslick = true;
4564
+ }
4565
+
4566
+ return /*#__PURE__*/_react["default"].createElement(_innerSlider.InnerSlider, _extends({
4567
+ style: this.props.style,
4568
+ ref: this.innerSliderRefHandler
4569
+ }, settings), newChildren);
4570
+ }
4571
+ }]);
4572
+
4573
+ return Slider;
4574
+ }(_react["default"].Component);
4575
+
4576
+ exports["default"] = Slider;
4577
+ } (slider));
4578
+
4579
+ (function (exports) {
4580
+
4581
+ Object.defineProperty(exports, "__esModule", {
4582
+ value: true
4583
+ });
4584
+ exports["default"] = void 0;
4585
+
4586
+ var _slider = _interopRequireDefault(slider);
4587
+
4588
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
4589
+
4590
+ var _default = _slider["default"];
4591
+ exports["default"] = _default;
4592
+ } (lib));
4593
+
4594
+ var Slider = /*@__PURE__*/getDefaultExportFromCjs(lib);
4595
+
4596
+ var css_248z$2 = "/* Slider */\n.slick-slider\n{\n position: relative;\n\n display: block;\n box-sizing: border-box;\n\n -webkit-user-select: none;\n user-select: none;\n\n -webkit-touch-callout: none;\n -khtml-user-select: none;\n touch-action: pan-y;\n -webkit-tap-highlight-color: transparent;\n}\n\n.slick-list\n{\n position: relative;\n\n display: block;\n overflow: hidden;\n\n margin: 0;\n padding: 0;\n}\n.slick-list:focus\n{\n outline: none;\n}\n.slick-list.dragging\n{\n cursor: pointer;\n cursor: hand;\n}\n\n.slick-slider .slick-track,\n.slick-slider .slick-list\n{\n transform: translate3d(0, 0, 0);\n}\n\n.slick-track\n{\n position: relative;\n top: 0;\n left: 0;\n\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n.slick-track:before,\n.slick-track:after\n{\n display: table;\n\n content: '';\n}\n.slick-track:after\n{\n clear: both;\n}\n.slick-loading .slick-track\n{\n visibility: hidden;\n}\n\n.slick-slide\n{\n display: none;\n float: left;\n\n height: 100%;\n min-height: 1px;\n}\n[dir='rtl'] .slick-slide\n{\n float: right;\n}\n.slick-slide img\n{\n display: block;\n}\n.slick-slide.slick-loading img\n{\n display: none;\n}\n.slick-slide.dragging img\n{\n pointer-events: none;\n}\n.slick-initialized .slick-slide\n{\n display: block;\n}\n.slick-loading .slick-slide\n{\n visibility: hidden;\n}\n.slick-vertical .slick-slide\n{\n display: block;\n\n height: auto;\n\n border: 1px solid transparent;\n}\n.slick-arrow.slick-hidden {\n display: none;\n}\n";
4597
+ styleInject(css_248z$2);
4598
+
4599
+ var css_248z$1 = "@charset 'UTF-8';\n/* Slider */\n.slick-loading .slick-list\n{\n background: #fff url('./ajax-loader.gif') center center no-repeat;\n}\n\n/* Icons */\n@font-face\n{\n font-family: 'slick';\n font-weight: normal;\n font-style: normal;\n\n src: url('./fonts/slick.eot');\n src: url('./fonts/slick.eot?#iefix') format('embedded-opentype'), url('./fonts/slick.woff') format('woff'), url('./fonts/slick.ttf') format('truetype'), url('./fonts/slick.svg#slick') format('svg');\n}\n/* Arrows */\n.slick-prev,\n.slick-next\n{\n font-size: 0;\n line-height: 0;\n\n position: absolute;\n top: 50%;\n\n display: block;\n\n width: 20px;\n height: 20px;\n padding: 0;\n transform: translate(0, -50%);\n\n cursor: pointer;\n\n color: transparent;\n border: none;\n outline: none;\n background: transparent;\n}\n.slick-prev:hover,\n.slick-prev:focus,\n.slick-next:hover,\n.slick-next:focus\n{\n color: transparent;\n outline: none;\n background: transparent;\n}\n.slick-prev:hover:before,\n.slick-prev:focus:before,\n.slick-next:hover:before,\n.slick-next:focus:before\n{\n opacity: 1;\n}\n.slick-prev.slick-disabled:before,\n.slick-next.slick-disabled:before\n{\n opacity: .25;\n}\n\n.slick-prev:before,\n.slick-next:before\n{\n font-family: 'slick';\n font-size: 20px;\n line-height: 1;\n\n opacity: .75;\n color: white;\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.slick-prev\n{\n left: -25px;\n}\n[dir='rtl'] .slick-prev\n{\n right: -25px;\n left: auto;\n}\n.slick-prev:before\n{\n content: '←';\n}\n[dir='rtl'] .slick-prev:before\n{\n content: '→';\n}\n\n.slick-next\n{\n right: -25px;\n}\n[dir='rtl'] .slick-next\n{\n right: auto;\n left: -25px;\n}\n.slick-next:before\n{\n content: '→';\n}\n[dir='rtl'] .slick-next:before\n{\n content: '←';\n}\n\n/* Dots */\n.slick-dotted.slick-slider\n{\n margin-bottom: 30px;\n}\n\n.slick-dots\n{\n position: absolute;\n bottom: -25px;\n\n display: block;\n\n width: 100%;\n padding: 0;\n margin: 0;\n\n list-style: none;\n\n text-align: center;\n}\n.slick-dots li\n{\n position: relative;\n\n display: inline-block;\n\n width: 20px;\n height: 20px;\n margin: 0 5px;\n padding: 0;\n\n cursor: pointer;\n}\n.slick-dots li button\n{\n font-size: 0;\n line-height: 0;\n\n display: block;\n\n width: 20px;\n height: 20px;\n padding: 5px;\n\n cursor: pointer;\n\n color: transparent;\n border: 0;\n outline: none;\n background: transparent;\n}\n.slick-dots li button:hover,\n.slick-dots li button:focus\n{\n outline: none;\n}\n.slick-dots li button:hover:before,\n.slick-dots li button:focus:before\n{\n opacity: 1;\n}\n.slick-dots li button:before\n{\n font-family: 'slick';\n font-size: 6px;\n line-height: 20px;\n\n position: absolute;\n top: 0;\n left: 0;\n\n width: 20px;\n height: 20px;\n\n content: '•';\n text-align: center;\n\n opacity: .25;\n color: black;\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.slick-dots li.slick-active button:before\n{\n opacity: .75;\n color: black;\n}\n";
4600
+ styleInject(css_248z$1);
4601
+
4602
+ var css_248z = ".carousel .slick-arrow {\n display: none !important; }\n";
4603
+ styleInject(css_248z);
4604
+
4605
+ var _excluded = ["className", "autoplay", "children"];
4606
+ var Carousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
4607
+ var className = _ref.className,
4608
+ autoplay = _ref.autoplay,
4609
+ children = _ref.children,
4610
+ props = _objectWithoutProperties$1(_ref, _excluded);
4611
+ var sliderRef = useRef(null);
4612
+ var settings = _objectSpread2({
4613
+ dots: true,
4614
+ fade: true,
4615
+ infinite: true,
4616
+ slidesToShow: 1,
4617
+ slidesToScroll: 1,
4618
+ autoplay: autoplay,
4619
+ speed: 500,
4620
+ autoplaySpeed: 2000,
4621
+ cssEase: 'linear'
4622
+ }, props);
4623
+ useImperativeHandle(ref, function () {
4624
+ return {
4625
+ prev: function prev() {
4626
+ sliderRef.current.slickPrev();
4627
+ },
4628
+ next: function next() {
4629
+ sliderRef.current.slickNext();
4630
+ }
4631
+ };
4632
+ });
4633
+ return /*#__PURE__*/React__default.createElement(Slider, _extends$3({
4634
+ className: classNames('carousel', className),
4635
+ ref: sliderRef
4636
+ }, settings), children);
4637
+ });
4638
+ Carousel.defaultProps = {
4639
+ className: undefined,
4640
+ autoplay: false,
4641
+ children: undefined
4642
+ };
4643
+
4644
+ /* Write props detail information and 'npm run updateStory' will help you generate stories's argTypes */
4645
+ Carousel.propTypes = {
4646
+ /** Css Name */
4647
+ className: PropTypes.string,
4648
+ /** 自動撥放 */
4649
+ autoplay: PropTypes.bool,
4650
+ /** 子元件 */
4651
+ children: PropTypes.arrayOf(PropTypes.any)
4652
+ };
4653
+
4654
+ export { Carousel as default };