1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3667],{22600:function(){},28777:function(r,n,s){"use strict";s.d(n,{I5:function(){return U},Mi:function(){return ea},P1:function(){return R},iR:function(){return eh},jp:function(){return x},sj:function(){return T}});var a=s(67294);function ownKeys(r,n){var s=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),s.push.apply(s,a)}return s}function _objectSpread2(r){for(var n=1;n<arguments.length;n++){var s=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(s),!0).forEach(function(n){_defineProperty(r,n,s[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(s)):ownKeys(Object(s)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(s,n))})}return r}function _classCallCheck(r,n){if(!(r instanceof n))throw TypeError("Cannot call a class as a function")}function _defineProperties(r,n){for(var s=0;s<n.length;s++){var a=n[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}function _createClass(r,n,s){return n&&_defineProperties(r.prototype,n),s&&_defineProperties(r,s),Object.defineProperty(r,"prototype",{writable:!1}),r}function _defineProperty(r,n,s){return n in r?Object.defineProperty(r,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[n]=s,r}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var s=arguments[n];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(r[a]=s[a])}return r}).apply(this,arguments)}function _inherits(r,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),n&&_setPrototypeOf(r,n)}function _getPrototypeOf(r){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function _setPrototypeOf(r,n){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r})(r,n)}function _objectWithoutProperties(r,n){if(null==r)return{};var s,a,o=function(r,n){if(null==r)return{};var s,a,o={},l=Object.keys(r);for(a=0;a<l.length;a++)s=l[a],n.indexOf(s)>=0||(o[s]=r[s]);return o}(r,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);for(a=0;a<l.length;a++)s=l[a],n.indexOf(s)>=0||Object.prototype.propertyIsEnumerable.call(r,s)&&(o[s]=r[s])}return o}function _assertThisInitialized(r){if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function _createSuper(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var s,a=_getPrototypeOf(r);if(n){var o=_getPrototypeOf(this).constructor;s=Reflect.construct(a,arguments,o)}else s=a.apply(this,arguments);return function(r,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(r)}(this,s)}}function _toConsumableArray(r){return function(r){if(Array.isArray(r))return _arrayLikeToArray(r)}(r)||function(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function(r,n){if(r){if("string"==typeof r)return _arrayLikeToArray(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);return"Object"===s&&r.constructor&&(s=r.constructor.name),"Map"===s||"Set"===s?Array.from(r):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?_arrayLikeToArray(r,n):void 0}}(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,n){(null==n||n>r.length)&&(n=r.length);for(var s=0,a=Array(n);s<n;s++)a[s]=r[s];return a}function createCommonjsModule(r,n){return r(n={exports:{}}
1,n.exports),n.exports}function emptyFunction(){}function emptyFunctionWithReset(){}function cn(r){return r.map(function(r){return!1===r?null:r}).join(" ").replace(/\s+/g," ").trim()}function pct(r){return"".concat(r,"%")}function equal(r,n,s){if(r===n)return!0;var a=m[b(r)],o=m[b(n)];return!(!a||a!==o)&&a(r,n,s)}function memoGaurd(r){return function(n,s,a){if(!a)return r(n,s,[]);for(var o,l=a.length;o=a[--l];)if(o[0]===n&&o[1]===s)return!0;return r(n,s,a)}}function getEnumerableProperties(r){var n=[];for(var s in r)"constructor"!==s&&n.push(s);return n}function cloneUnlessOtherwiseSpecified(r,n){return!1!==n.clone&&n.isMergeableObject(r)?deepmerge(Array.isArray(r)?[]:{},r,n):r}function defaultArrayMerge(r,n,s){return r.concat(n).map(function(r){return cloneUnlessOtherwiseSpecified(r,s)})}function deepmerge(r,n,s){(s=s||{}).arrayMerge=s.arrayMerge||defaultArrayMerge,s.isMergeableObject=s.isMergeableObject||isMergeableObject;var a,o,l=Array.isArray(n);return l===Array.isArray(r)?l?s.arrayMerge(r,n,s):(o={},(a=s).isMergeableObject(r)&&Object.keys(r).forEach(function(n){o[n]=cloneUnlessOtherwiseSpecified(r[n],a)}),Object.keys(n).forEach(function(s){a.isMergeableObject(n[s])&&r[s]?o[s]=deepmerge(r[s],n[s],a):o[s]=cloneUnlessOtherwiseSpecified(n[s],a)}),o):cloneUnlessOtherwiseSpecified(n,s)}function WithStore(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return{}},s=function(s){function i(r,s){var a;return _classCallCheck(this,i),(a=o.call(this,r,s)).state=n(_objectSpread2({},s.state)),a.updateStateProps=a.updateStateProps.bind(_assertThisInitialized(a)),a}_inherits(i,s);var o=_createSuper(i);return _createClass(i,[{key:"componentDidMount",value:function(){this.context.subscribe(this.updateStateProps)}},{key:"shouldComponentUpdate",value:function(r,n){return!f(n,this.state)||!f(r,this.props)}},{key:"componentWillUnmount",value:function(){this.context.unsubscribe(this.updateStateProps)}},{key:"updateStateProps",value:function(){this.setState(n(_objectSpread2({},this.context.state)))}},{key:"render",value:function(){var n=this,s=y(this.state,this.props);return a.createElement(r,_extends({ref:function(r){n.instance=r}},s,{carouselStore:{getStoreState:this.context.getStoreState,masterSpinnerError:this.context.masterSpinnerError,masterSpinnerSuccess:this.context.masterSpinnerSuccess,setStoreState:this.context.setStoreState,subscribeMasterSpinner:this.context.subscribeMasterSpinner,unsubscribeAllMasterSpinner:this.context.unsubscribeAllMasterSpinner,unsubscribeMasterSpinner:this.context.unsubscribeMasterSpinner}}),this.props.children)}}]),i}(a.Component);return _defineProperty(s,"contextType",_),_defineProperty(s,"propT
1ypes",{children:d.children}),_defineProperty(s,"defaultProps",{children:null}),s}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function e(r,n,s,a,o,l){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==l){var c=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return r.PropTypes=r,r},o=createCommonjsModule(function(r){r.exports=factoryWithThrowingShims()}),l="loading",c="success",u="error",d={children:o.oneOfType([o.arrayOf(o.node),o.node]),direction:o.oneOf(["forward","backward"]),height:function(r,n){var s=r[n];return"vertical"!==r.orientation||null!==s&&"number"==typeof s?null:Error("Missing required property '".concat(n,"' when orientation is vertical. You must supply a number representing the height in pixels"))},orientation:o.oneOf(["horizontal","vertical"]),isBgImage:function(r,n){return!0===r[n]&&"img"===r.tag?Error("HTML img elements should not have a backgroundImage. Please use ".concat(n," for other block-level HTML tags, like div, a, section, etc...")):null}},boundedRange=function(r){var n=r.min;return Math.min(r.max,Math.max(n,r.x))},p=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],S=function(r){function t(r){var s;return _classCallCheck(this,t),(s=n.call(this,r)).handleOnClick=s.handleOnClick.bind(_assertThisInitialized(s)),s}_inherits(t,r);var n=_createSuper(t);return _createClass(t,[{key:"handleOnClick",value:function(r){var n=this.props,s=n.carouselStore,a=n.currentSlide,o=n.onClick,l=n.step,c=n.infinite,u=n.visibleSlides,d=n.totalSlides-u,p=Math.max(a-l,0);c&&(p=0===a?d:p),s.setStoreState({currentSlide:p,isPlaying:!1},null!==o&&o.call(this,r))}},{key:"render",value:function(){var r=this.props,n=(r.carouselStore,r.className),s=(r.currentSlide,r.disabled,r.onClick,r.step,r.totalSlides,r.visibleSlides,r.infinite),o=_objectWithoutProperties(r,p),l=cn(["buttonBack___1mlaL","carousel__back-button",n]),c=t.setDisabled(this.props.disabled,this.props.currentSlide,s);return a.createElement("button",_extends({type:"button","aria-label":"previous",className:l,onClick:this.handleOnClick,disabled:c},o),this.props.children)}}],[{key:"setDisabled",value:function(r,n,s){return null!==r?r:0===n&&!s}}]),t}(a.Component);_defineProperty(S,"propTypes",{carouselStore:o.object.isRequired,children:d.children.isRequired,className:o.string,currentSlide:o.number.isRequired,disabled:o.bool,onClick:o.func,step:o.number.isRequired,totalSlides:o.number.isRequired,visibleSlides:o.number.isRequired,infinite:o.bool}),_defineProperty(S,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1});var b=createCommonjsModule(function(r,n){var s={}.toString,a="undefined"!=typeof window?window.Node:Function;r.exports=n=function(r){var n=typeof r;if("object"!=n)return n;if("object"==(n=o[s.call(r)]))return r instanceof Map?"map":r instanceof Set?"set":"object";if(n)return n;if(r instanceof a)switch(r.nodeType){case 1:return"element";case 3:return"text-node";case 9:return"document";case 11:return"document-fragment";default:return"dom-node"}};var o=n.types={"[object Function]":"function","[object Date]":"date","[object RegExp]":"regexp","[object Arguments]":"arguments","[object Array]":"array","[object Set]":"set","[object String]":"string","[object Null]":"null","[object Undefined]":"undefined","[object Number]":"number","[object Boolean]":"boolean","[object Object]":"object","[object Map]":"map","[object Text]":"text-node","[object Uint8Array]":"bit-array","[object Uint16Array]":"bit-array","[object Uint32Array]":"bit-array","[object Uint8ClampedArray]":"bit-array","[object Error]":"error","[object FormData]":"form-data","[object File]":"file","[object Blob]":"blob"}}),m=(b.types,{});m.number=function(r,n){return r!=r&&n!=n},m.function=function(r,n,s){return r.toString()===n.toString()&&m.object(r,n,s)&&equal(r.prototype,n.prototype)},m.date=function(r,n){return+r==+n},m.regexp=function(r,n){return r.toString()===n.toString()},m.element=function(r,n){return r.outerHTML===n.outerHTML},m.textnode=function(r,n){return r.textContent===n.textContent},m.arguments=m["bit-array"]=m.array=memoGaurd(function(r,n,s){var a=r.length;if(a!==n.length)return!1;for(s.push([r,n]);a--;)if(!equal(r[a],n[a],s))return!1;return!0}),m.object=memoGaurd(function(r,n,s){if("function"==typeof r.equal)return s.push([r,n]),r.equal(n,s);var a=getEnumerableProperties(r),o=getEnumerableProperties(n),l=a.length;if(l!==o.length)return!1;for(a.sort(),o.sort();l--;)if(a[l]!==o[l])return!1;for(s.push([r,n]),l=a.length;l--;){var c=a[l];if(!equal(r[c],n[c],s))return!1}return!0});var f=equal,isMergeableObject=function(r){var n;return!!r&&"object"==typeof r&&!("[object RegExp]"===(n=Object.prototype.toString.call(r))||"[object Date]"===n||r.$$typeof===g)},g="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;deepmerge.all=function(r,n){if(!Array.isArray(r))throw Error("first argument should be an array");return r.reduce(function(r,s){return deepmerge(r,s,n)},{})};var v,y=deepmerge,_=a.createContext(),deepFreeze=function e(r){return Object.freeze(r),Object.getOwnPropertyNames(r).forEach(function(n){!r.hasOwnProperty(n)||null===r[n]||"object"!=typeof r[n]&&"function"!=typeof r[n]||Object.isFrozen(r[n])||e(r[n])}),r},k={masterSpinnerFinished:!1},O=function(){function e(r){_classCallCheck(this,e),this.state=deepFreeze(y(k,r)),this.subscriptions=[],this.masterSpinnerSubscriptions={}
1,this.setStoreState=this.setStoreState.bind(this),this.getStoreState=this.getStoreState.bind(this),this.subscribe=this.subscribe.bind(this),this.unsubscribe=this.unsubscribe.bind(this),this.updateSubscribers=this.updateSubscribers.bind(this),this.subscribeMasterSpinner=this.subscribeMasterSpinner.bind(this),this.unsubscribeMasterSpinner=this.unsubscribeMasterSpinner.bind(this),this.unsubscribeAllMasterSpinner=this.unsubscribeAllMasterSpinner.bind(this),this.masterSpinnerSuccess=this.masterSpinnerSuccess.bind(this),this.masterSpinnerError=this.masterSpinnerError.bind(this)}return _createClass(e,[{key:"setStoreState",value:function(r,n){this.state=deepFreeze(y(this.state,r)),this.updateSubscribers(n)}},{key:"getStoreState",value:function(){return y({},this.state)}},{key:"subscribe",value:function(r){this.subscriptions.push(r)}},{key:"unsubscribe",value:function(r){var n=this.subscriptions.indexOf(r);-1!==n&&this.subscriptions.splice(n,1)}},{key:"updateSubscribers",value:function(r){this.subscriptions.forEach(function(r){return r()}),"function"==typeof r&&r(this.getStoreState())}},{key:"subscribeMasterSpinner",value:function(r){-1===Object.keys(this.masterSpinnerSubscriptions).indexOf(r)&&(this.masterSpinnerSubscriptions[r]={success:!1,error:!1,complete:!1})}},{key:"unsubscribeMasterSpinner",value:function(r){return -1!==Object.keys(this.masterSpinnerSubscriptions).indexOf(r)&&(this.setMasterSpinnerFinished(),delete this.masterSpinnerSubscriptions[r])}},{key:"unsubscribeAllMasterSpinner",value:function(){this.masterSpinnerSubscriptions={},this.setMasterSpinnerFinished()}},{key:"masterSpinnerSuccess",value:function(r){this.masterSpinnerSubscriptions[r].success=!0,this.masterSpinnerSubscriptions[r].complete=!0,this.setMasterSpinnerFinished()}},{key:"masterSpinnerError",value:function(r){this.masterSpinnerSubscriptions[r].error=!0,this.masterSpinnerSubscriptions[r].complete=!0,this.setMasterSpinnerFinished()}},{key:"setMasterSpinnerFinished",value:function(){this.setStoreState({masterSpinnerFinished:this.isMasterSpinnerFinished()})}},{key:"isMasterSpinnerFinished",value:function(){var r=this;return 0===Object.keys(this.masterSpinnerSubscriptions).filter(function(n){return!0!==r.masterSpinnerSubscriptions[n].complete}).length}}]),e}(),C=["children","className","currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPageScrollLocked","isPlaying","lockOnWindowScroll","naturalSlideHeight","naturalSlideWidth","orientation","playDirection","step","dragStep","tag","totalSlides","touchEnabled","dragEnabled","visibleSlides","infinite","isIntrinsicHeight"],T=(_defineProperty(v=function(r){function t(r){if(_classCallCheck(this,t),a=n.call(this,r),r.isIntrinsicHeight&&"horizontal"!==r.orientation)throw Error('isIntrinsicHeight can only be used in "horizontal" orientation. See Readme for more information.');var s,a,o={currentSlide:r.currentSlide,disableAnimation:r.disableAnimation,disableKeyboard:r.disableKeyboard,hasMasterSpinner:r.hasMasterSpinner,imageErrorCount:0,imageSuccessCount:0,interval:r.interval,isPageScrollLocked:r.isPageScrollLocked,isPlaying:r.isPlaying,lockOnWindowScroll:r.lockOnWindowScroll,masterSpinnerThreshold:0,naturalSlideHeight:r.naturalSlideHeight,naturalSlideWidth:r.naturalSlideWidth,orientation:r.orientation,playDirection:r.playDirection,privateUnDisableAnimation:!1,slideSize:100/r.totalSlides*(s=r.visibleSlides)/s,slideTraySize:100*r.totalSlides/r.visibleSlides,step:r.step,dragStep:r.dragStep,totalSlides:r.totalSlides,touchEnabled:r.touchEnabled,dragEnabled:r.dragEnabled,visibleSlides:r.visibleSlides,infinite:r.infinite,isIntrinsicHeight:r.isIntrinsicHeight};return a.carouselStore=new O(o),a}_inherits(t,r);var n=_createSuper(t);
1return _createClass(t,[{key:"componentDidUpdate",value:function(r){var n,s=this,a={};["currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPlaying","naturalSlideHeight","naturalSlideWidth","lockOnWindowScroll","orientation","playDirection","step","dragStep","totalSlides","touchEnabled","dragEnabled","visibleSlides"].forEach(function(n){r[n]!==s.props[n]&&(a[n]=s.props[n])}),this.props.currentSlide===r.currentSlide||this.props.disableAnimation||(a.disableAnimation=!0,a.privateUnDisableAnimation=!0),this.props.totalSlides===r.totalSlides&&this.props.visibleSlides===r.visibleSlides||(a.slideSize=100/this.props.totalSlides*(n=this.props.visibleSlides)/n,a.slideTraySize=100*this.props.totalSlides/this.props.visibleSlides),this.carouselStore.state.currentSlide>=this.props.totalSlides&&(a.currentSlide=Math.max(this.props.totalSlides-1,0)),Object.keys(a).length>0&&this.carouselStore.setStoreState(a)}},{key:"componentWillUnmount",value:function(){this.carouselStore.unsubscribeAllMasterSpinner()}},{key:"getStore",value:function(){return this.carouselStore}},{key:"render",value:function(){var r=this.props,n=(r.children,r.className,r.currentSlide,r.disableAnimation,r.disableKeyboard,r.hasMasterSpinner,r.interval,r.isPageScrollLocked,r.isPlaying,r.lockOnWindowScroll,r.naturalSlideHeight,r.naturalSlideWidth,r.orientation,r.playDirection,r.step,r.dragStep,r.tag),s=(r.totalSlides,r.touchEnabled,r.dragEnabled,r.visibleSlides,r.infinite,r.isIntrinsicHeight,_objectWithoutProperties(r,C)),o=cn(["carousel",this.props.className]);return a.createElement(n,_extends({className:o},s),a.createElement(_.Provider,{value:this.carouselStore},this.props.children))}}]),t}(a.Component),"propTypes",{children:d.children.isRequired,className:o.string,currentSlide:o.number,disableAnimation:o.bool,disableKeyboard:o.bool,hasMasterSpinner:o.bool,interval:o.number,isPageScrollLocked:o.bool,isPlaying:o.bool,lockOnWindowScroll:o.bool,naturalSlideHeight:o.number.isRequired,naturalSlideWidth:o.number.isRequired,orientation:d.orientation,playDirection:d.direction,step:o.number,dragStep:o.number,tag:o.string,totalSlides:o.number.isRequired,touchEnabled:o.bool,dragEnabled:o.bool,visibleSlides:o.number,infinite:o.bool,isIntrinsicHeight:o.bool}),_defineProperty(v,"defaultProps",{className:null,currentSlide:0,disableAnimation:!1,disableKeyboard:!1,hasMasterSpinner:!1,interval:5e3,isPageScrollLocked:!1,isPlaying:!1,lockOnWindowScroll:!1,orientation:"horizontal",playDirection:"forward",step:1,dragStep:1,tag:"div",touchEnabled:!0,dragEnabled:!0,visibleSlides:1,infinite:!1,isIntrinsicHeight:!1}),v);_.Consumer;var P,w,M,E,N,j,x=WithStore(S,function(r){return{currentSlide:r.currentSlide,step:r.step,totalSlides:r.totalSlides,visibleSlides:r.visibleSlides,infinite:r.infinite}}),D=["carouselStore","className","currentSlide","disabled","onClick","totalSlides"],I=(WithStore((_defineProperty(P=function(r){function t(){var r;return _classCallCheck(this,t),(r=n.call(this)).handleOnClick=r.handleOnClick.bind(_assertThisInitialized(r)),r}_inherits(t,r);var n=_createSuper(t);return _createClass(t,[{key:"handleOnClick",value:function(r){var n=this.props,s=n.carouselStore,a=n.onClick;s.setStoreState({currentSlide:0,isPlaying:!1},null!==a&&a.call(this,r))}},{key:"render",value:function(){var r=this.props,n=(r.carouselStore,r.className),s=r.currentSlide,o=r.disabled,l=(r.onClick,r.totalSlides,_objectWithoutProperties(r,D)),c=cn(["buttonFirst___2rhFr","carousel__first-button",n]);return a.createElement("button",_extends({type:"button","aria-label":"first",className:c,onClick:this.handleOnClick,disabled:null!==o?o:0===s},l),this.props.children)}}]),t}(a.Component),"propTypes",{carouselStore:o.object.isRequired,children:d.children.isRequired,className:o.string,currentSlide:o.number.isRequired,disabled:o.bool,onClick:o.func,totalSlides:o.number.isRequired}),_defineProperty(P,"defaultProps",{className:null,disabled:null,onClick:null}),P),function(r){return{currentSlide:r.currentSlide,totalSlides:r.totalSlides}}),["carouselStore","className","currentSlide","disabled","onClick","totalSlides","visibleSlides"]),A=(WithStore((_defineProperty(w=function(r){function t(){var r;return _classCallCheck(this,t),(r=n.call(this)).handleOnClick=r.handleOnClick.bind(_assertThisInitialized(r)),r}_inherits(t,r);var n=_createSuper(t);return _createClass(t,[{key:"handleOnClick",value:function(r){var n=this.props,s=n.carouselStore,a=n.onClick,o=n.totalSlides,l=n.visibleSlides;s.setStoreState({currentSlide:o-l,isPlaying:!1},null!==a&&a.call(this,r))}},{key:"render",value:function(){var r=this.props,n=(r.carouselStore,r.className),s=r.currentSlide,o=r.disabled,l=(r.onClick,r.totalSlides),c=r.visibleSlides,u=_objectWithoutProperties(r,I),d=cn(["buttonLast___2yuh0","carousel__last-button",n]);return a.createElement("button",_extends({type:"button","aria-label":"last",className:d,onClick:this.handleOnClick,disabled:null!==o?o:s>
1=l-c},u),this.props.children)}}]),t}(a.Component),"propTypes",{carouselStore:o.object.isRequired,children:d.children.isRequired,className:o.string,currentSlide:o.number.isRequired,disabled:o.bool,onClick:o.func,totalSlides:o.number.isRequired,visibleSlides:o.number.isRequired}),_defineProperty(w,"defaultProps",{className:null,disabled:null,onClick:null}),w),function(r){return{currentSlide:r.currentSlide,totalSlides:r.totalSlides,visibleSlides:r.visibleSlides}}),["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"]),R=WithStore((_defineProperty(M=function(r){function t(r){var s;return _classCallCheck(this,t),(s=n.call(this,r)).handleOnClick=s.handleOnClick.bind(_assertThisInitialized(s)),s}_inherits(t,r);var n=_createSuper(t);return _createClass(t,[{key:"handleOnClick",value:function(r){var n=this.props,s=n.currentSlide,a=n.onClick,o=n.step,l=n.carouselStore,c=n.infinite,u=n.totalSlides-n.visibleSlides,d=Math.min(o+s,u);c&&(d=u===s?0:d),l.setStoreState({currentSlide:d,isPlaying:!1},null!==a&&a.call(this,r))}},{key:"render",value:function(){var r=this.props,n=(r.carouselStore,r.className),s=r.currentSlide,o=r.disabled,l=(r.onClick,r.step,r.totalSlides),c=r.visibleSlides,u=r.
1infinite,d=_objectWithoutProperties(r,A),p=cn(["buttonNext___2mOCa","carousel__next-button",n]),S=t.setDisabled(o,s,c,l,u);return a.createElement("button",_extends({type:"button","aria-label":"next",className:p,onClick:this.handleOnClick,disabled:S},d),this.props.children)}}],[{key:"setDisabled",value:function(r,n,s,a,o){return null!==r?r:n>=a-s&&!o}}]),t}(a.PureComponent),"propTypes",{carouselStore:o.object.isRequired,children:d.children.isRequired,className:o.string,currentSlide:o.number.isRequired,disabled:o.bool,onClick:o.func,step:o.number.isRequired,totalSlides:o.number.isRequired,visibleSlides:o.number.isRequired,infinite:o.bool}),_defineProperty(M,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1}),M),function(r){return{currentSlide:r.currentSlide,step:r.step,totalSlides:r.totalSlides,visibleSlides:r.visibleSlides,infinite:r.infinite}}),z=["carouselStore","children","childrenPaused","childrenPlaying","className","isPlaying","onClick"],L=(WithStore((_defineProperty(E=function(r){function t(r){var s;return _classCallCheck(this,t),(s=n.call(this,r)).handleOnClick=s.handleOnClick.bind(_assertThisInitialized(s)),s}_inherits(t,r);var n=_createSuper(t);return _createClass(t,[{key:"handleOnClick",value:function(r){var n=this.props.onClick;this.props.carouselStore.setStoreState({isPlaying:!this.props.isPlaying},null!==n&&n.call(this,r))}},{key:"render",value:function(){var r=this.props,n=(r.carouselStore,r.children,r.childrenPaused),s=r.childrenPlaying,o=r.className,l=r.isPlaying,c=(r.onClick,_objectWithoutProperties(r,z)),u=cn(["buttonNext___3Lm3s","carousel__play-button",o]);return a.createElement("button",_extends({type:"button","aria-label":"play",className:u,onClick:this.handleOnClick},c),l&&s,!l&&n,this.props.children)}}]),t}(a.PureComponent),"propTypes",{carouselStore:o.object.isRequired,children:o.node,childrenPaused:o.node,childrenPlaying:o.node,className:o.string,isPlaying:o.bool.isRequired,onClick:o.func}),_defineProperty(E,"defaultProps",{children:null,childrenPaused:null,childrenPlaying:null,className:null,onClick:null}),E),function(r){return{isPlaying:r.isPlaying}}),{dot:"dot___3c3SI"}),W=["carouselStore","children","className","currentSlide","disabled","onClick","selected","slide","totalSlides","visibleSlides"],q=WithStore((_defineProperty(N=function(r){function t(r){var s;return _classCallCheck(this,t),(s=n.call(this,r)).handleOnClick=s.handleOnClick.bind(_assertThisInitialized(s)),s}_inherits(t,r);var n=_createSuper(t);return _createClass(t,[{key:"handleOnClick",value:function(r){var n=this.props,s=n.carouselStore,a=n.onClick,o=n.slide,l=n.totalSlides,c=n.visibleSlides;s.setStoreState({currentSlide:o>=l-c?l-c:o,isPlaying:!1},null!==a&&a.call(this,r))}},{key:"render",value:function(){var r=this.props,n=(r.carouselStore,r.children,r.className),s=r.currentSlide,o=r.disabled,l=(r.onClick,r.selected),c=r.slide,u=(r.totalSlides,r.visibleSlides),d=_objectWithoutProperties(r,W),p=c>=s&&c<s+u,S="boolean"==typeof l?l:p,b=cn([L.dot,S&&L.dotSelected,"carousel__dot","carousel__dot--".concat(c),S&&"carousel__dot--selected",n]);return a.createElement("button",_extends({"aria-label":"slide dot",type:"button",onClick:this.handleOnClick,className:b,disabled:"boolean"==typeof o?o:!0===p},d),this.props.children)}}]),t}(a.Component),"propTypes",{carouselStore:o.object.isRequired,children:d.children,className:o.string,currentSlide:o.number.isRequired,disabled:o.bool,onClick:o.func,selected:o.bool,slide:o.number.isRequired,totalSlides:o.number.isRequired,visibleSlides:o.number.isRequired}),_defineProperty(N,"defaultProps",{children:null,className:null,disabled:null,onClick:null,selected:null}),N),function(r){return{currentSlide:r.currentSlide,totalSlides:r.totalSlides,visibleSlides:r.visibleSlides}}),F={},H=["renderDots"],B=["carouselStore","children","className","currentSlide","dotNumbers","totalSlides","visibleSlides","disableActiveDots","showAsSelectedForCurrentSlideOnly","renderDots"],U=WithStore((_defineProperty(j=function(r){function t(){return _classCallCheck(this,t),n.apply(this,arguments)}_inherits(t,r);var n=_createSuper(t);return _createClass(t,[{key:"renderDots",value:function(){var r=this.props,n=r.currentSlide,s=r.totalSlides,o=r.visibleSlides,l=r.disableActiveDots,c=r.showAsSelectedForCurrentSlideOnly,u=r.renderDots;if(u){var d=this.props;return d.renderDots,u(_objectWithoutProperties(d,H))}for(var p=[],S=0;S<s;S+=1){var b=S>=n&&S<n+o,m=S===n,f=c?m:b,g=S>=s-o?s-o:S;p.push(a.createElement(q,{key:S,slide:g,selected:f,disabled:!!l&&f},a.createElement("span",{className:cn["carousel__dot-group-dot"]},this.props.dotNumbers&&S+1)))}return p}},{key:"render",value:function(){var r=this.props,n=(r.carouselStore,r.children),s=r.className,o=(r.currentSlide,r.dotNumbers,r.totalSlides,r.visibleSlides,r.disableActiveDots,r.showAsSelectedForCurrentSlideOnly,r.renderDots,_objectWithoutProperties(r,B)),l=cn([F.DotGroup,"carousel__dot-group",s]);return a.createElement("div",_extends({className:l},o),this.renderDots(),n)}}]),t}
1(a.Component),"propTypes",{children:d.children,className:o.string,currentSlide:o.number.isRequired,carouselStore:o.object.isRequired,totalSlides:o.number.isRequired,visibleSlides:o.number.isRequired,dotNumbers:o.bool,disableActiveDots:o.bool,showAsSelectedForCurrentSlideOnly:o.bool,renderDots:o.func}),_defineProperty(j,"defaultProps",{children:null,className:null,dotNumbers:!1,disableActiveDots:!0,showAsSelectedForCurrentSlideOnly:!1,renderDots:null}),j),function(r){return{currentSlide:r.currentSlide,totalSlides:r.totalSlides,visibleSlides:r.visibleSlides}}),Y={image:"image___xtQGH"},V=["src","alt"],Z=["carouselStore","children","className","hasMasterSpinner","isBgImage","onError","onLoad","renderError","renderLoading","style","tag"],X=function(r){function t(r){var s;return _classCallCheck(this,t),(s=n.call(this,r)).state={imageStatus:l},s.handleImageLoad=s.handleImageLoad.bind(_assertThisInitialized(s)),s.handleImageError=s.handleImageError.bind(_assertThisInitialized(s)),s.image=null,s}_inherits(t,r);var n=_createSuper(t);
1return _createClass(t,[{key:"componentDidMount",value:function(){t.subscribeMasterSpinner(this.props),this.initImage()}},{key:"componentDidUpdate",value:function(r){r.src!==this.props.src&&(t.unsubscribeMasterSpinner(r),t.subscribeMasterSpinner(this.props),this.initImage())}},{key:"componentWillUnmount",value:function(){t.unsubscribeMasterSpinner(this.props),this.image.removeEventListener("load",this.handleImageLoad),this.image.removeEventListener("error",this.handleImageError),this.image=null}},{key:"initImage",value:function(){if(this.setState({imageStatus:l}),this.image=document.createElement("img"),this.image.addEventListener("load",this.handleImageLoad,!1),this.image.addEventListener("error",this.handleImageError,!1),this.image.src=this.props.src,this.image.readyState||this.image.complete){var r=this.image.src;this.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",this.image.src=r}}},{key:"handleImageLoad",value:function(r){this.setState({imageStatus:c}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerSuccess(this.props.src),this.props.onLoad&&this.props.onLoad(r)}},{key:"handleImageError",value:function(r){this.setState({imageStatus:u}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerError(this.props.src),this.props.onError&&this.props.onError(r)}},{key:"tempTag",value:function(){return"img"===this.props.tag?"div":this.props.tag}},{key:"customRender",value:function(r){return"function"==typeof this.props[r]?this.props[r]():this.props.children}},{key:"renderLoading",value:function(r){var n=this.tempTag(),s=cn([Y.image,Y.imageLoading,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--loading",this.props.className]);return a.createElement(n,_extends({className:s},r),this.customRender("renderLoading"))}},{key:"renderError",value:function(r){var n=this.tempTag(),s=cn([Y.image,Y.imageError,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--error",this.props.className]);return a.createElement(n,_extends({className:s},r),this.customRender("renderError"))}},{key:"renderSuccess",value:function(r){var n=this.props,s=n.style,o=n.tag,l=cn([Y.image,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--success",this.props.className]),c=_extends({},s),u=r;if("img"!==o){var d=r.src;r.alt,u=_objectWithoutProperties(r,V),c=_extends({},s,{backgroundImage:'url("'.concat(d,'")'),backgroundSize:"cover"})}return a.createElement(o,_extends({className:l,style:c},u),this.props.children)}},{key:"render",value:function(){var r=this.props,n=(r.carouselStore,r.children,r.className,r.hasMasterSpinner,r.isBgImage,r.onError,r.onLoad,r.renderError,r.renderLoading,r.style,r.tag,_objectWithoutProperties(r,Z));switch(this.state.imageStatus){case l:return this.renderLoading(n);case c:return this.renderSuccess(n);case u:return this.renderError(n);default:throw Error("unknown value for this.state.imageStatus")}}}],[{key:"subscribeMasterSpinner",value:function(r){r.hasMasterSpinner&&r.carouselStore.subscribeMasterSpinner(r.src)}},{key:"unsubscribeMasterSpinner",value:function(r){r.hasMasterSpinner&&r.carouselStore.unsubscribeMasterSpinner(r.src)}}]),t}(a.Component);_defineProperty(X,"propTypes",{alt:o.string,carouselStore:o.object.isRequired,children:d.children,className:o.string,hasMasterSpinner:o.bool.isRequired,isBgImage:d.isBgImage,onError:o.func,onLoad:o.func,renderError:o.func,renderLoading:o.func,src:o.string.isRequired,style:o.object,tag:o.string}),_defineProperty(X,"defaultProps",{alt:"",children:null,className:null,isBgImage:!1,onError:null,onLoad:null,renderError:null,renderLoading:null,style:null,tag:"img"});var K,G,Q,$,J=WithStore(X,function(r){return{hasMasterSpinner:r.hasMasterSpinner,orientation:r.orientation}}),ee=["className"],et=(_defineProperty(K=function(r){function t(){return _classCallCheck(this,t),n.apply(this,arguments)}_inherits(t,r);var n=_createSuper(t);return _createClass(t,[{key:"render",value:function(){var r=this.props,n=r.className,s=_objectWithoutProperties(r,ee),o=cn(["spinner___27VUp","carousel__spinner",n]);return a.createElement("div",_extends({className:o},s))}}]),t}
1(a.PureComponent),"propTypes",{className:o.string}),_defineProperty(K,"defaultProps",{className:null}),K),ei={container:"container___2O72F",overlay:"overlay___IV4qY",hover:"hover___MYy31",zoom:"zoom___3kqYk",imageLoadingSpinnerContainer:"imageLoadingSpinnerContainer___3UIPD"},er=["alt","bgImageProps","bgImageTag","carouselStore","className","imageClassName","overlayClassName","isPinchZoomEnabled","spinner","src","srcZoomed","tag"],en=(WithStore((_defineProperty(G=function(r){function t(r){var s;return _classCallCheck(this,t),(s=n.call(this,r)).state={isImageLoading:!0,isImageLoadingError:!0,isHovering:!1,isZooming:!1,x:null,y:null,scale:1},s.tpCache={},s.handleImageComplete=s.handleImageComplete.bind(_assertThisInitialized(s)),s.handleImageLoadError=s.handleImageLoadError.bind(_assertThisInitialized(s)),s.handleOnMouseMove=s.handleOnMouseMove.bind(_assertThisInitialized(s)),s.handleOnMouseOut=s.handleOnMouseOut.bind(_assertThisInitialized(s)),s.handleOnMouseOver=s.handleOnMouseOver.bind(_assertThisInitialized(s)),s.handleOnTouchEnd=s.handleOnTouchEnd.bind(_assertThisInitialized(s)),s.handleOnTouchMove=s.handleOnTouchMove.bind(_assertThisInitialized(s)),s.handleOnTouchStart=s.handleOnTouchStart.bind(_assertThisInitialized(s)),s}_inherits(t,r);var n=_createSuper(t);
1return _createClass(t,[{key:"componentDidUpdate",value:function(r,n){!1===n.isZooming&&!0===this.state.isZooming&&this.props.carouselStore.setStoreState({isPageScrollLocked:!0}),!0===n.isZooming&&!1===this.state.isZooming&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1})}},{key:"handleImageComplete",value:function(r){this.setState({isImageLoading:!1}),this.props&&this.props.onLoad&&this.props.onLoad(r)}},{key:"handleImageLoadError",value:function(r){this.setState({isImageLoadingError:!0,isImageLoading:!1}),this.props&&this.props.onError&&this.props.onError(r)}},{key:"handleOnMouseOver",value:function(){this.state.isZooming||this.setState({isHovering:!0,scale:2})}},{key:"handleOnMouseOut",value:function(){this.state.isZooming||this.setState({isHovering:!1,scale:1})}},{key:"handleOnMouseMove",value:function(r){if(!this.state.isZooming){var n=pct(r.nativeEvent.offsetX/r.target.offsetWidth*100),s=pct(r.nativeEvent.offsetY/r.target.offsetHeight*100);this.setState({x:n,y:s})}}},{key:"handleOnTouchStart",value:function(r){var n=this;this.props.isPinchZoomEnabled&&(_toConsumableArray(r.targetTouches).forEach(function(r){n.tpCache[r.identifier]={clientX:r.clientX,clientY:r.clientY}}),this.setState(function(r){return{isZooming:r.isZooming||Object.keys(n.tpCache).length>1}}))}},{key:"handleOnTouchMove",value:function(r){var n=this;if(this.state.isZooming){r.persist();var s=_toConsumableArray(r.targetTouches).filter(function(r){return n.tpCache[r.identifier]}).slice(0,2);if(2===s.length){r.stopPropagation();var a=r.target.getBoundingClientRect(),o=s[0].identifier,l=s[1].identifier,c={x1:this.tpCache[o].clientX,y1:this.tpCache[o].clientY,x2:this.tpCache[l].clientX,y2:this.tpCache[l].clientY};c.distance=t.distanceBetweenTwoTouches(_objectSpread2({},c));var u=t.midpointBetweenTwoTouches(_objectSpread2({},c));c.cx=u.x,c.cy=u.y;var d={x1:s[0].clientX,y1:s[0].clientY,x2:s[1].clientX,y2:s[1].clientY};d.distance=t.distanceBetweenTwoTouches(_objectSpread2({},d));var p=t.midpointBetweenTwoTouches(_objectSpread2({},d));d.cx=p.x,d.cy=p.y;var S=pct(boundedRange({min:0,max:100,x:(d.cx-a.left)/a.width*100})),b=pct(boundedRange({min:0,max:100,x:(d.cy-a.top)/a.height*100})),h=function(r){return boundedRange({min:1,max:3,x:r.scale+(d.distance-c.distance)/100})};this.setState(function(r){return{isZooming:1!==h(r),scale:h(r),x:S,y:b}})}}}},{key:"handleOnTouchEnd",value:function(r){var n=this;this.props.isPinchZoomEnabled&&(_toConsumableArray(r.changedTouches).forEach(function(r){delete n.tpCache[r.identifier]}),0===Object.keys(this.tpCache).length&&this.setState({isZooming:!1}))}},{key:"renderLoading",value:function(){if(this.state.isImageLoading){var r=this.props.spinner;return a.createElement("div",{className:cn([ei.imageLoadingSpinnerContainer,"carousel__image-loading-spinner-container"])},r&&r(),!r&&a.createElement(et,null))}return null}},{key:"render",value:function(){var r=this.props,n=r.alt,s=r.bgImageProps,o=r.bgImageTag,l=(r.carouselStore,r.className),c=r.imageClassName,u=r.overlayClassName,d=(r.isPinchZoomEnabled,r.spinner,r.src),p=r.srcZoomed,S=r.tag,b=_objectWithoutProperties(r,er),m=cn([ei.container,l]),f=cn([ei.image,"carousel__zoom-image",c]),g=cn([ei.overlay,"carousel__zoom-image-overlay",this.state.isHovering&&ei.hover,this.state.isZooming&&ei.zoom,this.state.isHovering&&"carousel__zoom-image-overlay--hovering",this.state.isZooming&&"carousel__zoom-image-overlay--zooming",u]),v={};return(this.state.isHovering||this.state.isZooming)&&(v.transformOrigin="".concat(this.state.x," ").concat(this.state.y),v.transform="scale(".concat(this.state.scale,")")),a.createElement(S,_extends({className:m},b),a.createElement(J,_extends({alt:n,className:f,tag:o,src:d,onLoad:this.handleImageComplete,onError:this.handleImageLoadError},s)),a.createElement(J,{className:g,tag:"div",src:p||d,style:v,isBgImage:!0,onFocus:this.handleOnMouseOver,onMouseOver:this.handleOnMouseOver,onBlur:this.handleOnMouseOut,onMouseOut:this.handleOnMouseOut,onMouseMove:this.handleOnMouseMove,onTouchStart:this.handleOnTouchStart,onTouchEnd:this.handleOnTouchEnd,onTouchMove:this.handleOnTouchMove}),this.renderLoading())}}],[{key:"midpointBetweenTwoTouches",value:function(r){var n=r.x1,s=r.y1;return{x:(n+r.x2)/2,y:(s+r.y2)/2}}},{key:"distanceBetweenTwoTouches",value:function(r){var n=r.x1,s=r.y1;return Math.sqrt(Math.pow(r.x2-n,2)+Math.pow(r.y2-s,2))}}]),t}
1(a.Component),"propTypes",{alt:o.string,bgImageProps:o.object,bgImageTag:o.string,carouselStore:o.object.isRequired,className:o.string,imageClassName:o.string,overlayClassName:o.string,spinner:o.func,onLoad:o.func,onError:o.func,src:o.string.isRequired,srcZoomed:o.string,tag:o.string,isPinchZoomEnabled:o.bool}),_defineProperty(G,"defaultProps",{alt:void 0,bgImageProps:{},bgImageTag:"div",className:null,imageClassName:null,overlayClassName:null,isPinchZoomEnabled:!0,spinner:null,onLoad:null,onError:null,srcZoomed:null,tag:"div"}),G),function(){return{}}),{slide:"slide___3-Nqo",slideHorizontal:"slideHorizontal___1NzNV",slideInner:"slideInner___2mfX9",focusRing:"focusRing___1airF"}),es=["ariaLabel","carouselStore","children","className","classNameHidden","classNameVisible","currentSlide","index","innerClassName","innerTag","naturalSlideHeight","naturalSlideWidth","onBlur","onFocus","orientation","slideSize","style","tag","totalSlides","visibleSlides","isIntrinsicHeight"],ea=WithStore((_defineProperty(Q=function(r){function t(r){var s;return _classCallCheck(this,t),(s=n.call(this,r)).handleOnFocus=s.handleOnFocus.bind(_assertThisInitialized(s)),s.handleOnBlur=s.handleOnBlur.bind(_assertThisInitialized(s)),s.state={focused:!1},s}_inherits(t,r);var n=_createSuper(t);return _createClass(t,[{key:"isVisible",value:function(){var r=this.props,n=r.currentSlide,s=r.index,a=r.visibleSlides;return s>=n&&s<n+a}},{key:"handleOnFocus",value:function(r){var n=this,s=this.props.onFocus;this.setState({focused:!0},function(){null!==s&&s.call(n,r)})}},{key:"handleOnBlur",value:function(r){var n=this,s=this.props.onBlur;this.setState({focused:!1},function(){null!==s&&s.call(n,r)})}},{key:"renderFocusRing",value:function(){return this.state.focused?a.createElement("div",{className:[en.focusRing,"carousel__slide-focus-ring"].join(" ")}):null}},{key:"render",value:function(){var r=this,n=this.props,s=n.ariaLabel,o=(n.carouselStore,n.children,n.className),l=n.classNameHidden,c=n.classNameVisible,u=(n.currentSlide,n.index,n.innerClassName),d=n.innerTag,p=n.naturalSlideHeight,S=n.naturalSlideWidth,b=(n.onBlur,n.onFocus,n.orientation),m=n.slideSize,f=n.style,g=n.tag,v=n.totalSlides,y=(n.visibleSlides,n.isIntrinsicHeight),_=_objectWithoutProperties(n,es),k={};"horizontal"===b?(k.width=pct(m),k.paddingBottom=pct(100*p/(S*v))):(k.width=pct(100),k.paddingBottom=pct(100*p/S));var O={};y&&("horizontal"===b?k.height="unset":k.width="unset",k.paddingBottom="unset",O.position="unset");var C=_extends({},k,f),T=this.isVisible(),P=cn([en.slide,"horizontal"===b&&en.slideHorizontal,"carousel__slide",this.state.focused&&"carousel__slide--focused",T&&c,T&&"carousel__slide--visible",!T&&l,!T&&"carousel__slide--hidden",o]),w=cn([en.slideInner,"carousel__inner-slide",u]);return a.createElement(g,_extends({ref:function(n){r.tagRef=n},"aria-selected":this.isVisible(),"aria-label":s,role:this.props.role,onFocus:this.handleOnFocus,onBlur:this.handleOnBlur,className:P,style:C},_),a.createElement(d,{ref:function(n){r.innerTagRef=n},className:w,style:O},this.props.children,this.renderFocusRing()))}}]),t}(a.PureComponent),"propTypes",{ariaLabel:o.string,carouselStore:o.object,children:d.children,className:o.string,classNameHidden:o.string,classNameVisible:o.string,currentSlide:o.number.isRequired,index:o.number.isRequired,innerClassName:o.string,innerTag:o.string,naturalSlideHeight:o.number.isRequired,naturalSlideWidth:o.number.isRequired,onBlur:o.func,onFocus:o.func,orientation:d.orientation.isRequired,slideSize:o.number.isRequired,role:o.string,style:o.object,tag:o.string,totalSlides:o.number.isRequired,visibleSlides:o.number.isRequired,isIntrinsicHeight:o.bool}),_defineProperty(Q,"defaultProps",{ariaLabel:"slide",carouselStore:null,children:null,className:null,classNameHidden:null,classNameVisible:null,innerClassName:null,innerTag:"div",onBlur:null,onFocus:null,role:"option",style:{},tag:"div",isIntrinsicHeight:!1}),Q),function(r){return{currentSlide:r.currentSlide,naturalSlideHeight:r.naturalSlideHeight,naturalSlideWidth:r.naturalSlideWidth,orientation:r.orientation,slideSize:r.slideSize,totalSlides:r.totalSlides,visibleSlides:r.visibleSlides,isIntrinsicHeight:r.isIntrinsicHeight}}),eo=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"parents",value:function(r,n){return null===r.parentNode?n:this.parents(r.parentNode,n.concat([r]))}},{key:"scrollParent",value:function(r){for(var n=this.parents(r.parentNode,[]),s=0;s<n.length;s+=1)if(e.scroll(n[s]))return n[s];return document.scrollingElement||document.documentElement}},{key:"getScrollParent",value:function(r){return e.isNodeValid(r)?this.scrollParent(r):null}}],[{key:"style",value:function(r,n){return getComputedStyle(r,null).getPropertyValue(n)}},{key:"overflow",value:function(r){return e.style(r,"overflow")+e.style(r,"overflow-y")+e.style(r,"overflow-x")}},{key:"scroll",value:function(r){return/(auto|scroll)/.test(e.overflow(r))}},{key:"isNodeValid",value:function(r){return r instanceof HTMLElement||r instanceof SVGElement}}]),e}(),el={horizontalSlider:"horizontalSlider___281Ls",touchDisabled:"touchDisabled___2qs4y",verticalSlider:"verticalSlider___34ZFD",verticalTray:"verticalTray___12Key",verticalSlideTrayWrap:"verticalSlideTrayWrap___2nO7o",sliderTray:"sliderTray___-vHFQ",sliderAnimation:"sliderAnimation___300FY",masterSpinnerContainer:"masterSpinnerContainer___1Z6hB"},ec=["ariaLabel","carouselStore","children","className","classNameAnimation","classNameTray","classNameTrayWrap","currentSlide","disableAnimation","disableKeyboard","dragEnabled","hasMasterSpinner","interval","isPageScrollLocked","isPlaying","lockOnWindowScroll","masterSpinnerFinished","moveThreshold","naturalSlideHeight","naturalSlideWidth","onMasterSpinner","orientation","playDirection","privateUnDisableAnimation","slideSize","slideTraySize","spinner","style","totalSlides","touchEnabled","trayProps","trayTag","visibleSlides","isIntrinsicHeight"],eu=["dragStep","step","infinite","preventVerticalScrollOnTouch","preventingVerticalScroll","horizontalPixelThreshold","verticalPixelThreshold"],ed=["className","onClickCapture","onMouseDown","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","ref","style"],eh=WithStore((_defineProperty($=function(r){function t(r){var s;return _classCallCheck(this,t),(s=n.call(this,r)).getSliderRef=s.getSliderRef.bind(_assertThisInitialized(s)),s.handleDocumentScroll=s.handleDocumentScroll.bind(_assertThisInitialized(s)),s.handleOnClickCapture=s.handleOnClickCapture.bind(_assertThisInitialized(s)),s.handleOnKeyDown=s.handleOnKeyDown.bind(_assertThisInitialized(s)),s.handleOnMouseDown=s.handleOnMouseDown.bind(_assertThisInitialized(s)),s.handleOnMouseMove=s.handleOnMouseMove.bind(_assertThisInitialized(s)),s.handleOnMouseUp=s.handleOnMouseUp.bind(_assertThisInitialized(s)),s.handleOnTouchCancel=s.handleOnTouchCancel.bind(_assertThisInitialized(s)),s.handleOnTouchEnd=s.handleOnTouchEnd.bind(_assertThisInitialized(s)),s.handleOnTouchMove=s.handleOnTouchMove.bind(_assertThisInitialized(s)),s.handleOnTouchStart=s.handleOnTouchStart.bind(_assertThisInitialized(s)),s.playBackward=s.playBackward.bind(_assertThisInitialized(s)),s.playForward=s.playForward.bind(_assertThisInitialized(s)),s.callCallback=s.callCallback.bind(_assertThisInitialized(s)),s.blockWindowScroll=s.blockWindowScroll.bind(_assertThisInitialized(s)),s.state={cancelNextClick:!1,deltaX:0,deltaY:0,isBeingMouseDragged:!1,isBeingTouchDragged:!1,preventingVerticalScroll:!1,startX:0,startY:0},s.interval=null,s.isDocumentScrolling=null,s.moveTimer=null,s.originalOverflow=null,s.scrollParent=null,s.scrollStopTimer=null,s}_inherits(t,r);var n=_createSuper(t);
1return _createClass(t,[{key:"componentDidMount",value:function(){this.props.lockOnWindowScroll&&window.addEventListener("scroll",this.handleDocumentScroll,!1),(this.props.touchEnabled||this.props.preventVerticalScrollOnTouch)&&window.addEventListener("touchmove",this.blockWindowScroll,!1),document.documentElement.addEventListener("mouseleave",this.handleOnMouseUp,!1),document.documentElement.addEventListener("mousemove",this.handleOnMouseMove,!1),document.documentElement.addEventListener("mouseup",this.handleOnMouseUp,!1),this.props.isPlaying&&this.play()}},{key:"componentDidUpdate",value:function(r){!r.isPlaying&&this.props.isPlaying&&this.play(),r.isPlaying&&!this.props.isPlaying&&this.stop(),!r.isPageScrollLocked&&this.props.isPageScrollLocked&&this.lockScroll(),r.isPageScrollLocked&&!this.props.isPageScrollLocked&&this.unlockScroll(),!1===r.privateUnDisableAnimation&&!0===this.props.privateUnDisableAnimation&&this.props.carouselStore.setStoreState({privateUnDisableAnimation:!1,disableAnimation:!1})}},{key:"componentWillUnmount",value:function(){document.documentElement.removeEventListener("mouseleave",this.handleOnMouseUp,!1),document.documentElement.removeEventListener("mousemove",this.handleOnMouseMove,!1),document.documentElement.removeEventListener("mouseup",this.handleOnMouseUp,!1),window.removeEventListener("scroll",this.handleDocumentScroll,!1),window.removeEventListener("touchmove",this.blockWindowScroll,!1),this.stop(),window.cancelAnimationFrame.call(window,this.moveTimer),window.clearTimeout(this.scrollStopTimer),this.isDocumentScrolling=null,this.moveTimer=null,this.scrollStopTimer=null}},{key:"getSliderRef",value:function(r){if(this.sliderTrayElement=r,r&&window){var n=r.closest(".carousel");n&&(this.rtl="rtl"===window.getComputedStyle(n,null).getPropertyValue("direction"))}}},{key:"fakeOnDragStart",value:function(r){var n=r.screenX,s=r.screenY,a=r.touchDrag,o=r.mouseDrag;this.props.carouselStore.setStoreState({isPlaying:!1}),window.cancelAnimationFrame.call(window,this.moveTimer),"vertical"===this.props.orientation&&this.props.carouselStore.setStoreState({isPageScrollLocked:!0}),this.setState({isBeingTouchDragged:void 0!==a&&a,isBeingMouseDragged:void 0!==o&&o,startX:n,startY:s})}},{key:"fakeOnDragMove",value:function(r,n){var s=this;window.cancelAnimationFrame.call(window,this.moveTimer),this.moveTimer=window.requestAnimationFrame.call(window,function(){s.setState(function(a){return{deltaX:(r-a.startX)*(s.rtl?-1:1),deltaY:n-a.startY,preventingVerticalScroll:Math.abs(n-a.startY)<=s.props.verticalPixelThreshold&&Math.abs(r-a.startX)>=s.props.horizontalPixelThreshold}})})}},{key:"fakeOnDragEnd",value:function(){window.cancelAnimationFrame.call(window,this.moveTimer),this.computeCurrentSlide(),"vertical"===this.props.orientation&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1}),this.setState({deltaX:0,deltaY:0,isBeingTouchDragged:!1,isBeingMouseDragged:!1}),this.isDocumentScrolling=!this.props.lockOnWindowScroll&&null}},{key:"callCallback",value:function(r,n){var s=this.props.trayProps;s&&"function"==typeof s[r]&&(n.persist(),s[r](n))}},{key:"handleOnMouseDown",value:function(r){if(!this.props.dragEnabled)return void this.callCallback("onMouseDown",r);r.preventDefault(),this.fakeOnDragStart({screenX:r.screenX,screenY:r.screenY,mouseDrag:!0}),this.callCallback("onMouseDown",r)}},{key:"handleOnMouseMove",value:function(r){this.state.isBeingMouseDragged&&(this.setState({cancelNextClick:!0}),r.preventDefault(),this.fakeOnDragMove(r.screenX,r.screenY))}},{key:"handleOnMouseUp",value:function(r){this.state.isBeingMouseDragged&&(r.preventDefault(),this.fakeOnDragEnd())}},{key:"handleOnClickCapture",value:function(r){if(!this.state.cancelNextClick)return void this.callCallback("onClickCapture",r);r.preventDefault(),this.setState({cancelNextClick:!1}),this.callCallback("onClickCapture",r)}},{key:"handleOnTouchStart",value:function(r){if(!this.props.touchEnabled)return void this.callCallback("onTouchStart",r);"vertical"===this.props.orientation&&r.preventDefault();var n=r.targetTouches[0];this.fakeOnDragStart({screenX:n.screenX,screenY:n.screenY,touchDrag:!0}),this.callCallback("onTouchStart",r)}},{key:"handleDocumentScroll",value:function(){var r=this;this.props.touchEnabled&&(this.isDocumentScrolling=!0,window.clearTimeout(this.scrollStopTimer),this.scrollStopTimer=window.setTimeout(function(){r.isDocumentScrolling=!1},66))}},{key:"handleOnTouchMove",value:function(r){if(!this.props.touchEnabled||this.props.lockOnWindowScroll&&this.isDocumentScrolling)return void this.callCallback("onTouchMove",r);var n=r.targetTouches[0];n&&(this.fakeOnDragMove(n.screenX,n.screenY),this.callCallback("onTouchMove",r))}},{key:"forward",value:function(){var r=this.props;return Math.min(r.currentSlide+r.step,r.totalSlides-r.visibleSlides)}},{key:"backward",value:function(){var r=this.props;return Math.max(r.currentSlide-r.step,0)}},{key:"handleOnKeyDown",value:function(r){var n=r.keyCode,s=this.props,a=s.carouselStore,o=s.currentSlide,l=s.disableKeyboard,c=s.totalSlides,u=s.visibleSlides,d={};!0===l||c<=u||(37===n&&(r.preventDefault(),this.focus(),d.currentSlide=Math.max(0,o-1),d.isPlaying=!1),39===n&&(r.preventDefault(),this.focus(),d.currentSlide=Math.min(c-u,o+1),d.isPlaying=!1),a.setStoreState(d))}},{key:"playForward",value:function(){var r=this.props,n=r.carouselStore,s=r.currentSlide;n.setStoreState({currentSlide:this.forward()===s?0:this.forward()})}},{key:"playBackward",value:function(){var r=this.props,n=r.carouselStore,s=r.currentSlide,a=r.totalSlides,o=r.visibleSlides;n.setStoreState({currentSlide:this.backward()===s?a-o:this.backward()})}},{key:"play",value:function(){var r=this.props.playDirection;this.interval=setInterval("forward"===r?this.playForward:this.playBackward,this.props.interval)}},{key:"stop",value:function(){window.clearInterval(this.interval),this.interval=null}},{key:"lockScroll",value:function(){var r=new eo;this.scrollParent=r.getScrollParent(this.sliderTrayElement),this.scrollParent&&(this.originalOverflow=this.originalOverflow||this.scrollParent.style.overflow,this.scrollParent.style.overflow="hidden")}},{key:"unlockScroll",value:function(){this.scrollParent&&(this.scrollParent.style.overflow=this.originalOverflow,this.originalOverflow=null,this.scrollParent=null)}},{key:"blockWindowScroll",value:function(r){this.state.preventingVerticalScroll&&(r.preventDefault(),r.stopImmediatePropagation())}},{key:"computeCurrentSlide",value:function(){var r=t.slideSizeInPx(this.props.orientation,this.sliderTrayElement.clientWidth,this.sliderTrayElement.clientHeight,this.props.totalSlides),n=t.slidesMoved(this.props.moveThreshold,this.props.orientation,this.state.deltaX,this.state.deltaY,r,this.props.dragStep),s=this.props.totalSlides-Math.min(this.props.totalSlides,this.props.visibleSlides),a=boundedRange({min:0,max:s,x:this.props.currentSlide+n});this.props.infinite&&(this.props.currentSlide>=s&&n>0&&(a=0),0===this.props.currentSlide&&n<0&&(a=s)),this.props.carouselStore.setStoreState({currentSlide:a})}},{key:"focus",value:function(){this.sliderElement.focus()}},{key:"handleOnTouchEnd",value:function(r){this.endTouchMove(),this.callCallback("onTouchEnd",r)}},{key:"handleOnTouchCancel",value:function(r){this.endTouchMove(),this.callCallback("onTouchCancel",r)}},{key:"endTouchMove",value:function(){this.props.touchEnabled&&this.fakeOnDragEnd()}},{key:"renderMasterSpinner",value:function(){var r=this.props,n=r.hasMasterSpinner,s=r.masterSpinnerFinished,o=r.spinner;return n&&!s?("function"==typeof this.props.onMasterSpinner&&this.props.onMasterSpinner(),a.createElement("div",{className:cn([el.masterSpinnerContainer,"carousel__master-spinner-container"])},o&&o(),!o&&a.createElement(et,null))):null}},{key:"render",value:function(){var r=this,n=this.props,s=n.ariaLabel,o=(n.carouselStore,
1n.children),l=n.className,c=n.classNameAnimation,u=n.classNameTray,d=n.classNameTrayWrap,p=n.currentSlide,S=n.disableAnimation,b=(n.disableKeyboard,n.dragEnabled,n.hasMasterSpinner,n.interval,n.isPageScrollLocked,n.isPlaying,n.lockOnWindowScroll,n.masterSpinnerFinished,n.moveThreshold,n.naturalSlideHeight),m=n.naturalSlideWidth,f=(n.onMasterSpinner,n.orientation),g=(n.playDirection,n.privateUnDisableAnimation,n.slideSize),v=n.slideTraySize,y=(n.spinner,n.style),_=(n.totalSlides,n.touchEnabled),k=n.trayProps,O=n.trayTag,C=n.visibleSlides,T=n.isIntrinsicHeight,P=_objectWithoutProperties(n,ec),w=_extends({},y),M={};"vertical"===f&&(M.height=0,M.paddingBottom=pct(100*b*C/m),M.width=pct(100));var E={},N=pct(-(g*p*1));(this.state.isBeingTouchDragged||this.state.isBeingMouseDragged||S)&&(E.transition="none"),T&&(E.display="flex",E.alignItems="stretch"),"vertical"===f?(E.transform="translateY(".concat(N,") translateY(").concat(this.state.deltaY,"px)"),E.width=pct(100),E.flexDirection="column"):(E.width=pct(v),E.transform="translateX(".concat(N,") translateX(").concat(this.state.deltaX,"px)"),E.flexDirection="row");var j=cn(["vertical"===f?el.verticalSlider:el.horizontalSlider,!_&&el.touchDisabled,"carousel__slider","vertical"===f?"carousel__slider--vertical":"carousel__slider--horizontal",l]),x=cn([el.sliderTrayWrap,"carousel__slider-tray-wrapper","vertical"===f?el.verticalSlideTrayWrap:el.horizontalTrayWrap,"vertical"===f?"carousel__slider-tray-wrap--vertical":"carousel__slider-tray-wrap--horizontal",d]),D=cn([el.sliderTray,c||el.sliderAnimation,"carousel__slider-tray","vertical"===f?el.verticalTray:el.horizontalTray,"vertical"===f?"carousel__slider-tray--vertical":"carousel__slider-tray--horizontal",u]),I=(P.dragStep,P.step,P.infinite,P.preventVerticalScrollOnTouch,P.preventingVerticalScroll,P.horizontalPixelThreshold,P.verticalPixelThreshold,_objectWithoutProperties(P,eu)),A=(k.className,k.onClickCapture,k.onMouseDown,k.onTouchCancel,k.onTouchEnd,k.onTouchMove,k.onTouchStart,k.ref,k.style,_objectWithoutProperties(k,ed));return a.createElement("div",_extends({ref:function(n){r.sliderElement=n},className:j,"aria-live":"polite","aria-label":s,role:this.props.role,style:w,onKeyDown:this.handleOnKeyDown},I),a.createElement("div",{className:x,style:M},a.createElement(O,_extends({ref:this.getSliderRef,className:D,style:E,onTouchStart:this.handleOnTouchStart,onTouchMove:this.handleOnTouchMove,onTouchEnd:this.handleOnTouchEnd,onTouchCancel:this.handleOnTouchCancel,onMouseDown:this.handleOnMouseDown,onClickCapture:this.handleOnClickCapture},A),o),this.renderMasterSpinner()))}}],[{key:"slideSizeInPx",value:function(r,n,s,a){return("horizontal"===r?n:s)/a}},{key:"slidesMoved",value:function(r,n,s,a,o,l){var c="horizontal"===n?s:a,u=Math.max(Math.abs(c)>=o*r?l:0,Math.abs(Math.round(c/o)));if(c<0)return u;var d=-u;return 0===d?0:d}}]),t}(a.Component),"propTypes",{ariaLabel:o.string,carouselStore:o.object.isRequired,children:o.node.isRequired,className:o.string,classNameAnimation:o.string,classNameTray:o.string,classNameTrayWrap:o.string,currentSlide:o.number.isRequired,disableAnimation:o.bool,disableKeyboard:o.bool,dragEnabled:o.bool.isRequired,dragStep:o.number,hasMasterSpinner:o.bool.isRequired,infinite:o.bool,interval:o.number.isRequired,isPageScrollLocked:o.bool.isRequired,isPlaying:o.bool.isRequired,lockOnWindowScroll:o.bool.isRequired,preventVerticalScrollOnTouch:o.bool,horizontalPixelThreshold:o.number,verticalPixelThreshold:o.number,masterSpinnerFinished:o.bool.isRequired,moveThreshold:o.number,naturalSlideHeight:o.number.isRequired,naturalSlideWidth:o.number.isRequired,onMasterSpinner:o.func,orientation:d.orientation.isRequired,playDirection:d.direction.isRequired,privateUnDisableAnimation:o.bool,role:o.string,slideSize:o.number.isRequired,slideTraySize:o.number.isRequired,spinner:o.func,step:o.number.isRequired,style:o.object,totalSlides:o.number.isRequired,touchEnabled:o.bool.isRequired,trayProps:o.shape({className:o.string,onClickCapture:o.func,onMouseDown:o.func,onTouchCancel:o.func,onTouchEnd:o.func,onTouchMove:o.func,onTouchStart:o.func,ref:o.shape({}),style:o.string}),trayTag:o.string,visibleSlides:o.number,isIntrinsicHeight:o.bool}),_defineProperty($,"defaultProps",{ariaLabel:"slider",className:null,classNameAnimation:null,classNameTray:null,classNameTrayWrap:null,disableAnimation:!1,disableKeyboard:!1,dragStep:1,infinite:!1,preventVerticalScrollOnTouch:!0,horizontalPixelThreshold:15,verticalPixelThreshold:10,moveThreshold:.1,onMasterSpinner:null,privateUnDisableAnimation:!1,role:"listbox",spinner:null,style:{},trayProps:{},trayTag:"div",visibleSlides:1,isIntrinsicHeight:!1}),$),function(r){return{currentSlide:r.currentSlide,disableAnimation:r.disableAnimation,privateUnDisableAnimation:r.privateUnDisableAnimation,disableKeyboard:r.disableKeyboard,dragEnabled:r.dragEnabled,hasMasterSpinner:r.hasMasterSpinner,infinite:r.infinite,interval:r.interval,isPageScrollLocked:r.isPageScrollLocked,isPlaying:r.isPlaying,lockOnWindowScroll:r.lockOnWindowScroll,preventingVerticalScroll:r.preventingVerticalScroll,masterSpinnerFinished:r.masterSpinnerFinished,naturalSlideHeight:r.naturalSlideHeight,naturalSlideWidth:r.naturalSlideWidth,orientation:r.orientation,playDirection:r.playDirection,slideSize:r.slideSize,slideTraySize:r.slideTraySize,step:r.step,dragStep:r.dragStep,totalSlides:r.totalSlides,touchEnabled:r.touchEnabled,visibleSlides:r.visibleSlides,isIntrinsicHeight:r.isIntrinsicHeight}})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.