1"use strict";(self.webpackChunksibapp=self.webpackChunksibapp||[]).push([[7896],{57896:function(t,e,i){i.d(e,{RQ:function(){return jt},fQ:function(){return Kt},G7:function(){return Ut},hE:function(){return qt}});var n=i(36287),s=i(20782),r=i(1413),o=i(45987),a=i(15671),h=i(43144),u=i(60136),c=i(31129),p=i(47313),l=i(75192),v=i.n(l),g=i(1168),f=i(4942),w=i(27064),d=i(89855),y=i.n(d),S=i(19215),k=i.n(S),x=i(1355),m=function(){function t(e){var i=e.node,n=e.pager,s=e.width,r=e.height;(0,a.Z)(this,t),this.node=i,this.pager=n,this.x=this.y=0,this.setSize(s,r)}return(0,h.Z)(t,[{key:"setSize",value:function(t,e){this.width=t||this.node.offsetWidth,this.height=e||this.node.offsetHeight}},{key:"setPosition",value:function(t){this[this.pager.options.axis]=t}},{key:"getSize",value:function(t){return"width"===t||"height"===t?this[t]:this["x"===this.pager.options.axis?"width":"height"]}},{key:"getPosition",value:function(){return this[this.pager.options.axis]}}]),t}(),_=i(42982);function T(t,e){return(t%e+e)%e}function Z(t,e,i){return Math.min(Math.max(e,t),i)}function b(t){return t.reduce((function(t,e){return t+e}),0)}function C(t){return Math.max.apply(null,t)}var z=["index"],V=i(77108)("transform"),M="undefined"!==typeof window,P=function(t){(0,u.Z)(i,t);var e=(0,c.Z)(i);function i(){return(0,a.Z)(this,i),e.apply(this,arguments)}return(0,h.Z)(i,[{key:"getStyles",value:function(t){var e=this.pager.getPositionValue(t),i=e.x,n=e.y,s=this.pager.getTrackSize(),r=(0,f.Z)({},V,"translate3d(".concat(i,"px, ").concat(n,"px, 0)"));if(s){var o=this.pager.options,a=o.axis,h=o.viewsToShow;r["x"===a?"width":"height"]="auto"===h?s:this.pager.views.length/h*100+"%"}return r}}]),i}(m),E=function(t){(0,u.Z)(i,t);var e=(0,c.Z)(i);function i(t){var n,s=t.index,r=(0,o.Z)(t,z);return(0,a.Z)(this,i),(n=e.call(this,r)).index=s,n.inBounds=!0,n.tabbableChildren=[],n.setCurrent(!1),n.setVisible(!1),n.setTarget(),n.setOrigin(),setTimeout((function(){n.tabbableChildren=y()(n.node),n.setTabbableChildren()})),n}return(0,h.Z)(i,[{key:"setCurrent",value:function(t){this.isCurrent=t}},{key:"setVisible",value:function(t){this.isVisible=t,this.setTabbableChildren()}},{key:"setTabbableChildren",value:function(){for(var t=0;t<this.tabbableChildren.length;t++)this.tabbableChildren[t].tabIndex=this.isCurrent?0:-1}},{key:"setTarget",value:function(){var t=this.pager.options,e=t.align,i=(t.viewsToShow,this.pager.getStartCoords(this.index));e&&(i+=this.pager.getAlignOffset(this)),this.target=i}},{key:"setOrigin",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pager.trackPosition;this.origin=this.target-t}},{key:"getStyles",value:function(){var t=this.pager.options,e=t.axis,i=t.viewsToShow,n=t.infinite,s={};return"x"===e&&(s.display="inline-block",s.verticalAlign="top"),"auto"!==i&&(s["x"===e?"width":"height"]=100/this.pager.views.length+"%"),n&&!this.inBounds&&(s.position="relative",s["y"===e?"top":"left"]=this.getPosition()),(0,r.Z)((0,r.Z)({},s),this.pager.animationBus.getStyles(this))}}]),i}(m),O={viewsToShow:1,viewsToMove:1,align:0,contain:!1,axis:"x",autoSize:!1,animations:[],infinite:!1,instant:!1,swipe:!0,swipeThreshold:.5,flickTimeout:300,accessibility:!0},I=function(){function t(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.Z)(this,t),this.hydrate=function(){e.frame.setSize(),e.track.setSize(),e.views.forEach((function(t){t.setSize(),t.setTarget()})),e.setPositionValue(),e.setViewStyles(),e.emit("hydrated")};var n=(0,w.Z)();this.on=n.on,this.emit=n.emit,this.off=n.off,this.views=[],this.currentIndex=0,this.currentView=null,this.currentTween=0,this.trackPosition=0,this.isSwiping=!1,this.options=(0,r.Z)((0,r.Z)({},O),i),this.animationBus=new(k())({animations:this.options.animations,origin:function(t){return t.origin}}),M&&(this.resizeObserver=new x.Z((function(){e.hydrate()})))}return(0,h.Z)(t,[{key:"setOptions",value:function(t){var e=this.options;this.options=(0,r.Z)((0,r.Z)({},this.options),t),this.animationBus.animations=this.options.animations,e.viewsToShow!==this.options.viewsToShow&&this.emit
1("viewChange",this.getCurrentIndicies())}},{key:"addFrame",value:function(t){this.frame=new m({node:t,pager:this})}},{key:"addTrack",value:function(t){this.track=new P({node:t,pager:this})}},{key:"addView",value:function(t){var e=this.views.length,i=new E({node:t,index:e,pager:this});return this.views.push(i),this.currentView||this.setCurrentView({index:e,suppressEvent:!0}),M&&this.resizeObserver.observe(t),this.emit("viewAdded"),i}},{key:"removeView",value:function(t){this.views=this.views.filter((function(e){return t!==e})),M&&this.resizeObserver.disconnect(t.node),this.emit("viewRemoved")}},{key:"prev",value:function(){this.setCurrentView({direction:-1})}},{key:"next",value:function(){this.setCurrentView({direction:1})}},{key:"setCurrentView",value:function(t){var e=t.direction,i=void 0===e?0:e,n=t.index,s=void 0===n?this.currentIndex:n,r=t.suppressEvent,o=void 0!==r&&r,a=this.options,h=a.viewsToMove,u=a.infinite,c=s+i*h,p=this.currentIndex,l=u?c:Z(c,0,this.views.length-1),v=this.getView(p),g=this.getView(l);this.currentIndex=l,this.currentView=g,v.setCurrent(!1),g.setCurrent(!0);!function(t,e,i){(0,_.Z)(Array(1+e-t)).map((function(e){return i?T(t+e,i):t+e}))}(l,l+h-1,this.views.length);this.views.forEach((function(t,e){t.setVisible(e===l)})),this.setPositionValue(),o||this.emit("viewChange",this.getCurrentIndicies())}},{key:"setPositionValue",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.currentView?this.currentView.target:0;if(!this.isSwiping){var e=this.options,i=e.viewsToShow,n=e.autoSize,s=e.infinite,r=e.contain,o=this.getTrackSize();if(s&&(t-=(Math.floor(this.currentIndex/this.views.length)||0)*o),r){var a="auto"===i&&n||i<=1?0:this.getFrameSize({autoSize:!1});t=Z(t,a-o,0)}}this.trackPosition=t}},{key:"setViewStyles",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=this.options,i=e.infinite,n=e.align,s=(this.getFrameSize(),this.getTrackSize()),r=T(t,-s);this.views.reduce((function(e,o,a){var h=o.getSize(),u=e+h,c=e;return u+h*n<Math.abs(r)?(i&&(c+=s-e),o.inBounds=!1):o.inBounds=!0,o.setPosition(c),o.setOrigin(t),u}),0)}},{key:"getNumericViewsToShow",value:function(){return isNaN(this.options.viewsToShow)?1:this.options.viewsToShow}},{key:"getMaxDimensions",value:function(t){var e=this,i=this.options.axis,n=[],s=[];return t.forEach((function(t){var i=isNaN(t)?t:e.getView(t);n.push(i.getSize("width")),s.push(i.getSize("height"))})),{width:"x"===i?b(n):C(n),height:"y"===i?b(s):C(s)}}},{key:"getCurrentIndicies",value:function(){var t=this.options,e=t.infinite,i=t.contain,n=[],s=isNaN(this.options.viewsToShow)?1:this.options.viewsToShow,r=this.currentIndex,o=this.currentIndex+(s-1);if(i){r=Z(r,0,this.views.length-s),o=Z(o,0,this.views.length-1);for(var a=r;a<=o;a++)n.push(a)}else for(var h=r;h<=o;h++)n.push(e?T(h,this.views.length):Z(h,0,this.views.length-1));return n}},{key:"getFrameSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.autoSize,i=void 0===e?this.options.autoSize:e,n=t.fullSize,s=void 0!==n&&n,r={width:0,height:0};if(this.views.length)if(i){var o=this.getCurrentIndicies();r=this.getMaxDimensions(o)}else this.frame&&(r={width:this.frame.getSize("width"),height:this.frame.getSize("height")});return s?r:r["x"===this.options.axis?"width":"height"]}},{key:"getTrackSize",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?this.views.length:this.views.length-1,i=0;return this.views.slice(0,e).forEach((function(t){i+=t.getSize()})),i}},{key:"getView",value:function(t){return this.views[T(t,this.views.length)]}},{key:"getStartCoords",value:function(t){var e=0;return this.views.slice(0,t).forEach((function(t){e-=t.getSize()})),e}},{key:"getAlignOffset",value:function(t){return(this.getFrameSize({autoSize:!1})-t.getSize())*this.options.align}},{key:"getPositionValue",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.trackPosition,e=this.options,i=e.infinite,n=(e.contain,{x:0,y:0});if(this.currentTween=t,i){var s=this.getTrackSize();t=T(t,-s)||0}
1return this.emit("scroll",{progress:t/this.getTrackSize(!1),position:t}),n[this.options.axis]=t,n}},{key:"resetViewIndex",value:function(){this.setCurrentView({index:T(this.currentIndex,this.views.length),suppressEvent:!0})}}]),t}(),D=I,F=["tag","trackSize"],A=function(t){(0,u.Z)(i,t);var e=(0,c.Z)(i);function i(){var t;(0,a.Z)(this,i);for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];return(t=e.call.apply(e,[this].concat(s)))._viewAdded=!1,t._viewInstance=null,t}return(0,h.Z)(i,[{key:"getChildContext",value:function(){return{view:this._viewInstance}}},{key:"componentDidMount",value:function(){this._viewInstance=this.context.pager.addView((0,g.findDOMNode)(this)),this._viewAdded=!0,this.forceUpdate()}},{key:"componentWillUnmount",value:function(){this.context.pager.removeView(this._viewInstance)}},{key:"render",value:function(){var t=this.context.pager.options,e=(t.viewsToShow,t.axis,this.props),i=e.tag,n=(e.trackSize,(0,o.Z)(e,F)),s=(0,r.Z)({},n.style);return this._viewAdded||(s.visibility="hidden",s.pointerEvents="none"),this._viewInstance&&(s=(0,r.Z)((0,r.Z)({},s),this._viewInstance.getStyles())),(0,p.createElement)(i,(0,r.Z)((0,r.Z)({},n),{},{style:s}))}}]),i}(p.Component);A.contextTypes={pager:v().instanceOf(D)},A.childContextTypes={view:v().any},A.defaultProps={tag:"div"};var W=A,R=function(){function t(e){var i=e.node,n=e.pager,s=e.width,r=e.height;(0,a.Z)(this,t),this.node=i,this.pager=n,this.x=this.y=0,this.setSize(s,r)}return(0,h.Z)(t,[{key:"setSize",value:function(t,e){this.width=t||this.node.offsetWidth,this.height=e||this.node.offsetHeight}},{key:"setPosition",value:function(t){this[this.pager.options.axis]=t}},{key:"getSize",value:function(t){return"width"===t||"height"===t?this[t]:this["x"===this.pager.options.axis?"width":"height"]}},{key:"getPosition",value:function(){return this[this.pager.options.axis]}}]),t}(),N=R;function B(t,e){return(t%e+e)%e}function U(t,e,i){return Math.min(Math.max(e,t),i)}function j(t){return t.reduce((function(t,e){return t+e}),0)}function K(t){return Math.max.apply(null,t)}var q=["index"],H=i(77108)("transform"),L="undefined"!==typeof window,X=function(t){(0,u.Z)(i,t);var e=(0,c.Z)(i);function i(){return(0,a.Z)(this,i),e.apply(this,arguments)}return(0,h.Z)(i,[{key:"getStyles",value:function(t){var e=this.pager.getPositionValue(t),i=e.x,n=e.y,s=this.pager.getTrackSize(),r=(0,f.Z)({},H,"translate3d(".concat(-i,"px, ").concat(n,"px, 0)"));if(s){var o=this.pager.options,a=o.axis,h=o.viewsToShow;r["x"===a?"width":"height"]="auto"===h?s:this.pager.views.length/h*100+"%"}return r}}]),i}(N),Y=function(t){(0,u.Z)(i,t);var e=(0,c.Z)(i);function i(t){var n,s=t.index,r=(0,o.Z)(t,q);return(0,a.Z)(this,i),(n=e.call(this,r)).index=s,n.inBounds=!0,n.tabbableChildren=[],n.setCurrent(!1),n.setVisible(!1),n.setTarget(),n.setOrigin(),setTimeout((function(){n.tabbableChildren=y()(n.node),n.setTabbableChildren()})),n}return(0,h.Z)(i,[{key:"setCurrent",value:function(t){this.isCurrent=t}},{key:"setVisible",value:function(t){this.isVisible=t,this.setTabbableChildren()}},{key:"setTabbableChildren",value:function(){for(var t=0;t<this.tabbableChildren.length;t++)this.tabbableChildren[t].tabIndex=this.isCurrent?0:-1}},{key:"setTarget",value:function(){var t=this.pager.options,e=t.align,i=(t.viewsToShow,this.pager.getStartCoords(this.index));e&&(i+=this.pager.getAlignOffset(this)),this.target=i}},{key:"setOrigin",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pager.trackPosition;this.origin=this.target-t}},{key:"getStyles",value:function(){var t=this.pager.options,e=t.axis,i=t.viewsToShow,n=t.infinite,s={};return"x"===e&&(s.display="inline-block",s.verticalAlign="top"),"auto"!==i&&(s["x"===e?"width":"height"]=100/this.pager.views.length+"%"),n&&!this.inBounds&&(s.position="relative",s["y"===e?"top":"left"]=this.getPosition()),(0,r.Z)((0,r.Z)({},s),this.pager.animationBus.getStyles(this))}}]),i}(N),Q={viewsToShow:1,viewsToMove:1,align:0,contain:!1,axis:"x",autoSize:!1,animations:[],infinite:!1,instant:!1,swipe:!0,swipeThreshold:.5,flickTimeout:300,accessibility:!0},G=function(){function t(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.Z)(this,t),this.hydrate=function(){e.frame.setSize(),e.track.setSize(),e.views.forEach((function(t){t.setSize(),t.setTarget()})),e.setPositionValue(),e.setViewStyles(),e.emit("hydrated")};var n=(0,w.Z)();this.on=n.on,this.emit=n.emit,this.off=n.off,this.views=[],this.currentIndex=0,this.currentView=null,this.currentTween=0,this.trackPosition=0,this.isSwiping=!1,this.options=(0,r.Z)((0,r.Z)({},Q),i),this.animationBus=new(k())({animations:this.options.animations,origin:function(t){return t.origin}}),L&&(this.resizeObserver=new x.Z((function(){e.hydrate()})))}return(0,h.Z)(t,[{key:"setOptions",value:function(t){var e=this.options;this.options=(0,r.Z)((0,r.Z)({},this.options),t),this.animationBus.animations=this.options.animations,e.viewsToShow!==this.options.viewsToShow&&this.emit
1("viewChange",this.getCurrentIndicies())}},{key:"addFrame",value:function(t){this.frame=new N({node:t,pager:this})}},{key:"addTrack",value:function(t){this.track=new X({node:t,pager:this})}},{key:"addView",value:function(t){var e=this.views.length,i=new Y({node:t,index:e,pager:this});return this.views.push(i),this.currentView||this.setCurrentView({index:e,suppressEvent:!0}),L&&this.resizeObserver.observe(t),this.emit("viewAdded"),i}},{key:"removeView",value:function(t){this.views=this.views.filter((function(e){return t!==e})),L&&this.resizeObserver.disconnect(t.node),this.emit("viewRemoved")}},{key:"prev",value:function(){this.setCurrentView({direction:-1})}},{key:"next",value:function(){this.setCurrentView({direction:1})}},{key:"setCurrentView",value:function(t){var e=t.direction,i=void 0===e?0:e,n=t.index,s=void 0===n?this.currentIndex:n,r=t.suppressEvent,o=void 0!==r&&r,a=this.options,h=a.viewsToMove,u=a.infinite,c=s+i*h,p=this.currentIndex,l=u?c:U(c,0,this.views.length-1),v=this.getView(p),g=this.getView(l);this.currentIndex=l,this.currentView=g,v.setCurrent(!1),g.setCurrent(!0);!function(t,e,i){(0,_.Z)(Array(1+e-t)).map((function(e){return i?B(t+e,i):t+e}))}(l,l+h-1,this.views.length);this.views.forEach((function(t,e){t.setVisible(e===l)})),this.setPositionValue(),o||this.emit("viewChange",this.getCurrentIndicies())}},{key:"setPositionValue",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.currentView?this.currentView.target:0;if(!this.isSwiping){var e=this.options,i=e.viewsToShow,n=e.autoSize,s=e.infinite,r=e.contain,o=this.getTrackSize();if(s&&(t-=(Math.floor(this.currentIndex/this.views.length)||0)*o),r){var a="auto"===i&&n||i<=1?0:this.getFrameSize({autoSize:!1});t=U(t,a-o,0)}}this.trackPosition=t}},{key:"setViewStyles",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=this.options,i=e.infinite,n=e.align,s=(this.getFrameSize(),this.getTrackSize()),r=B(t,-s);this.views.reduce((function(e,o,a){var h=o.getSize(),u=e+h,c=e;return u+h*n<Math.abs(r)?(i&&(c+=s-e),o.inBounds=!1):o.inBounds=!0,o.setPosition(c),o.setOrigin(t),u}),0)}},{key:"getNumericViewsToShow",value:function(){return isNaN(this.options.viewsToShow)?1:this.options.viewsToShow}},{key:"getMaxDimensions",value:function(t){var e=this,i=this.options.axis,n=[],s=[];return t.forEach((function(t){var i=isNaN(t)?t:e.getView(t);n.push(i.getSize("width")),s.push(i.getSize("height"))})),{width:"x"===i?j(n):K(n),height:"y"===i?j(s):K(s)}}},{key:"getCurrentIndicies",value:function(){var t=this.options,e=t.infinite,i=t.contain,n=[],s=isNaN(this.options.viewsToShow)?1:this.options.viewsToShow,r=this.currentIndex,o=this.currentIndex+(s-1);if(i){r=U(r,0,this.views.length-s),o=U(o,0,this.views.length-1);for(var a=r;a<=o;a++)n.push(a)}else for(var h=r;h<=o;h++)n.push(e?B(h,this.views.length):U(h,0,this.views.length-1));return n}},{key:"getFrameSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.autoSize,i=void 0===e?this.options.autoSize:e,n=t.fullSize,s=void 0!==n&&n,r={width:0,height:0};if(this.views.length)if(i){var o=this.getCurrentIndicies();r=this.getMaxDimensions(o)}else this.frame&&(r={width:this.frame.getSize("width"),height:this.frame.getSize("height")});return s?r:r["x"===this.options.axis?"width":"height"]}},{key:"getTrackSize",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?this.views.length:this.views.length-1,i=0;return this.views.slice(0,e).forEach((function(t){i+=t.getSize()})),i}},{key:"getView",value:function(t){return this.views[B(t,this.views.length)]}},{key:"getStartCoords",value:function(t){var e=0;return this.views.slice(0,t).forEach((function(t){e-=t.getSize()})),e}},{key:"getAlignOffset",value:function(t){return(this.getFrameSize({autoSize:!1})-t.getSize())*this.options.align}},{key:"getPositionValue",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.trackPosition,e=this.options,i=e.infinite,n=(e.contain,{x:0,y:0});if(this.currentTween=t,i){var s=this.getTrackSize();t=B(t,-s)||0}
1return this.emit("scroll",{progress:t/this.getTrackSize(!1),position:t}),n[this.options.axis]=t,n}},{key:"resetViewIndex",value:function(){this.setCurrentView({index:B(this.currentIndex,this.views.length),suppressEvent:!0})}}]),t}(),J=G,$=["tag","trackSize"],tt=function(t){(0,u.Z)(i,t);var e=(0,c.Z)(i);function i(){var t;(0,a.Z)(this,i);for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];return(t=e.call.apply(e,[this].concat(s)))._viewAdded=!1,t._viewInstance=null,t}return(0,h.Z)(i,[{key:"getChildContext",value:function(){return{view:this._viewInstance}}},{key:"componentDidMount",value:function(){this._viewInstance=this.context.pager.addView((0,g.findDOMNode)(this)),this._viewAdded=!0,this.forceUpdate()}},{key:"componentWillUnmount",value:function(){this.context.pager.removeView(this._viewInstance)}},{key:"render",value:function(){var t=this.context.pager.options,e=(t.viewsToShow,t.axis,this.props),i=e.tag,n=(e.trackSize,(0,o.Z)(e,$)),s=(0,r.Z)({},n.style);return this._viewAdded||(s.visibility="hidden",s.pointerEvents="none"),this._viewInstance&&(s=(0,r.Z)((0,r.Z)({},s),this._viewInstance.getStyles())),(0,p.createElement)(i,(0,r.Z)((0,r.Z)({},n),{},{style:s}))}}]),i}(p.Component);tt.contextTypes={pager:v().instanceOf(J)},tt.childContextTypes={view:v().any},tt.defaultProps={tag:"div"};var et=tt,it=i(66717);function nt(t){return t.touches&&t.touches[0]||t}var st=function(){function t(e){var i=this;(0,a.Z)(this,t),this._onSwipeStart=function(t){var e=nt(t),n=e.pageX,s=e.pageY;i.pager.isSwiping=!0,i._swipeStart={x:n,y:s},i._swipeDiff={x:0,y:0},i._isFlick=!0,setTimeout((function(){i._isFlick=!1}),i.pager.options.flickTimeout),i.pager.emit("swipeStart")},this._onSwipeMove=function(t){if(i.pager.isSwiping){var e=i.pager.options,n=e.swipeThreshold,s=e.axis,r=nt(t),o=r.pageX,a=r.pageY;if(i._trackStart||(i._trackStart=i.pager.currentTween),i._swipeDiff={x:i._swipeStart.x-o,y:i._swipeStart.y-a},i._isSwipe(n)){t.preventDefault(),t.stopPropagation();var h=i._swipeDiff[s],u=i._trackStart-h;i.pager.setPositionValue(u),i.pager.emit("swipeMove")}}},this._onSwipeEnd=function(){var t=i.pager.options,e=t.swipeThreshold,n=t.viewsToMove,s=t.axis,r=(t.infinite,i._isFlick?e:i.pager.currentView.getSize()*n*e);i.pager.isSwiping=!1,i._trackStart=!1,(i._swipeDiff.x||i._swipeDiff.y)&&(i._isSwipe(r)?i._swipeDiff[s]<0?i.pager.prev():i.pager.next():i.pager.setPositionValue()),i.pager.emit("swipeEnd")},this._onSwipePast=function(){i.pager.isSwiping&&i._onSwipeEnd()},this.pager=e,this._trackStart=!1,this._swipeStart=this._swipeDiff={x:0,y:0}}return(0,h.Z)(t,[{key:"_isSwipe",value:function(t){var e=this._swipeDiff,i=e.x,n=e.y;return"x"===this.pager.options.axis?Math.abs(i)>Math.max(t,Math.abs(n)):Math.abs(i)<Math.max(t,Math.abs(n))}},{key:"getEvents",value:function(){var t=this.pager.options.swipe,e={};return!0!==t&&"mouse"!==t||(e.onMouseDown=this._onSwipeStart,e.onMouseMove=this._onSwipeMove,e.onMouseUp=this._onSwipeEnd,e.onMouseLeave=this._onSwipePast),!0!==t&&"touch"!==t||(e.onTouchStart=this._onSwipeStart,e.onTouchMove=this._onSwipeMove,e.onTouchEnd=this._onSwipeEnd),e}}]),t}(),rt=function(){function t(e){var i=this;(0,a.Z)(this,t),this._handleKeyDown=function(t){switch(t.key){case"ArrowUp":case"ArrowLeft":return void i.pager.prev();case"ArrowDown":case"ArrowRight":case" ":return void i.pager.next();case"Home":return void i.pager.setCurrentView({index:0});case"End":return void i.pager.setCurrentView({index:i.pager.views.length-1})}for(var e=Z(i.pager.views.length,0,9),n=1;n<=e;n++)+t.key===n&&i.pager.setCurrentView({index:n-1})},this.pager=e}return(0,h.Z)(t,[{key:"getEvents",value:function(){var t={};return this.pager.options.accessibility&&(t.onKeyDown=this._handleKeyDown),t}}]),t}();function ot(t,e,i){for(var n in e)e.hasOwnProperty(n)&&!i[n]&&(t[n]=e[n]);return t}var at=i(46417),ht={tag:v().any,autoSize:v().oneOf([!0,!1,"width","height"]),accessibility:v().bool,springConfig:v().objectOf(v().number)},ut=function(t){(0,u.Z)(i,t);var e=(0,c.Z)(i);function i(t){var n;return(0,a.Z)(this,i),(n=e.call(this,t))._setFrameSize=function(){var t=n.context.pager.getFrameSize({fullSize:!0});t.width&&t.height&&n.setState(t,(function(){n.state.instant&&n.setState({instant:!1})}
1))},n.state={width:0,height:0,instant:!0},n._hydrate=!1,n}return(0,h.Z)(i,[{key:"componentWillMount",value:function(){var t=this.context.pager,e=this.props,i=e.autoSize,n=e.accessibility;t.setOptions({autoSize:i,accessibility:n}),this._swipe=new st(t),this._keyboard=new rt(t)}},{key:"componentDidMount",value:function(){var t=this.context.pager;t.addFrame((0,g.findDOMNode)(this)),this._setFrameSize(),t.on("viewChange",this._setFrameSize),t.on("hydrated",this._setFrameSize)}},{key:"componentWillReceiveProps",value:function(t){var e=t.autoSize,i=t.accessibility;this.props.autoSize===e&&this.props.accessibility===i||(this.context.pager.setOptions({autoSize:e,accessibility:i}),this._hydrate=!0)}},{key:"componentDidUpdate",value:function(t){this._hydrate&&(this.context.pager.hydrate(),this._hydrate=!1)}},{key:"_getFrameStyle",value:function(){var t=this.props.springConfig,e=this.state,i=e.width,n=e.height,s=e.instant;return{maxWidth:s?i:(0,it.ST)(i,t),height:s?n:(0,it.ST)(n,t)}}},{key:"_renderFrame",value:function(t){this.context.pager;var e=this.props,i=e.tag,n=e.accessibility,s=ot((0,r.Z)((0,r.Z)((0,r.Z)({},this._swipe.getEvents()),this._keyboard.getEvents()),{},{tabIndex:n?0:null}),this.props,ht);return(0,p.createElement)(i,(0,r.Z)((0,r.Z)({},s),{},{style:(0,r.Z)((0,r.Z)({},t),s.style)}))}},{key:"render",value:function(){var t=this,e=this.props.autoSize,i=(this.state.height,{position:"relative",overflow:"hidden"});return e?(0,at.jsx)(it.y_,{style:this._getFrameStyle(),children:function(n){return!0!==e&&"width"!==e||!n.maxWidth||(i.maxWidth=n.maxWidth),!0!==e&&"height"!==e||!n.height||(i.height=n.height),t._renderFrame(i)}}):this._renderFrame(i)}}]),i}(p.Component);ut.contextTypes={pager:v().instanceOf(D)},ut.defaultProps={tag:"div",autoSize:!1,accessibility:!0,springConfig:it.um.noWobble};var ct=ut;function pt(t){return t.touches&&t.touches[0]||t}var lt=function(){function t(e){var i=this;(0,a.Z)(this,t),this._onSwipeStart=function(t){var e=pt(t),n=e.pageX,s=e.pageY;i.pager.isSwiping=!0,i._swipeStart={x:n,y:s},i._swipeDiff={x:0,y:0},i._isFlick=!0,setTimeout((function(){i._isFlick=!1}),i.pager.options.flickTimeout),i.pager.emit("swipeStart")},this._onSwipeMove=function(t){if(i.pager.isSwiping){var e=i.pager.options,n=e.swipeThreshold,s=e.axis,r=pt(t),o=r.pageX,a=r.pageY;if(i._trackStart||(i._trackStart=i.pager.currentTween),i._swipeDiff={x:i._swipeStart.x-o,y:i._swipeStart.y-a},i._isSwipe(n)){t.preventDefault(),t.stopPropagation();var h=i._swipeDiff[s],u=i._trackStart+h;i.pager.setPositionValue(u),i.pager.emit("swipeMove")}}},this._onSwipeEnd=function(){var t=i.pager.options,e=t.swipeThreshold,n=t.viewsToMove,s=t.axis,r=(t.infinite,i._isFlick?e:i.pager.currentView.getSize()*n*e);i.pager.isSwiping=!1,i._trackStart=!1,(i._swipeDiff.x||i._swipeDiff.y)&&(i._isSwipe(r)?i._swipeDiff[s]>0?i.pager.prev():i.pager.next():i.pager.setPositionValue()),i.pager.emit("swipeEnd")},this._onSwipePast=function(){i.pager.isSwiping&&i._onSwipeEnd()},this.pager=e,this._trackStart=!1,this._swipeStart=this._swipeDiff={x:0,y:0}}return(0,h.Z)(t,[{key:"_isSwipe",value:function(t){var e=this._swipeDiff,i=e.x,n=e.y;return"x"===this.pager.options.axis?Math.abs(i)>Math.max(t,Math.abs(n)):Math.abs(i)<Math.max(t,Math.abs(n))}},{key:"getEvents",value:function(){var t=this.pager.options.swipe,e={};return!0!==t&&"mouse"!==t||(e.onMouseDown=this._onSwipeStart,e.onMouseMove=this._onSwipeMove,e.onMouseUp=this._onSwipeEnd,e.onMouseLeave=this._onSwipePast),!0!==t&&"touch"!==t||(e.onTouchStart=this._onSwipeStart,e.onTouchMove=this._onSwipeMove,e.onTouchEnd=this._onSwipeEnd),e}}]),t}(),vt=lt,gt=function(){function t(e){var i=this;(0,a.Z)(this,t),this._handleKeyDown=function(t){switch(t.key){case"ArrowUp":case"ArrowLeft":return void i.pager.prev();case"ArrowDown":case"ArrowRight":case" ":return void i.pager.next();case"Home":return void i.pager.setCurrentView({index:0});case"End":return void i.pager.setCurrentView({index:i.pager.views.length-1})}for(var e=U(i.pager.views.length,0,9),n=1;n<=e;n++)+t.key===n&&i.pager.setCurrentView({index:n-1})},this.pager=e}return(0,h.Z)(t,[{key:"getEvents",value:function(){var t={};return this.pager.options.accessibility&&(t.onKeyDown=this._handleKeyDown),t}}]),t}(),ft=gt;function wt(t,e,i){for(var n in e)e.hasOwnProperty(n)&&!i[n]&&(t[n]=e[n]);return t}var dt={tag:v().any,autoSize:v().oneOf([!0,!1,"width","height"]),accessibility:v().bool,springConfig:v().objectOf(v().number)},yt=function(t){(0,u.Z)(i,t);var e=(0,c.Z)(i);function i(t){var n;return(0,a.Z)(this,i),(n=e.call(this,t))._setFrameSize=function(){var t=n.context.pager.getFrameSize({fullSize:!0});t.width&&t.height&&n.setState(t,(function(){n.state.instant&&n.setState({instant:!1})}
1))},n.state={width:0,height:0,instant:!0},n._hydrate=!1,n}return(0,h.Z)(i,[{key:"componentWillMount",value:function(){var t=this.context.pager,e=this.props,i=e.autoSize,n=e.accessibility;t.setOptions({autoSize:i,accessibility:n}),this._swipe=new vt(t),this._keyboard=new ft(t)}},{key:"componentDidMount",value:function(){var t=this.context.pager;t.addFrame((0,g.findDOMNode)(this)),this._setFrameSize(),t.on("viewChange",this._setFrameSize),t.on("hydrated",this._setFrameSize)}},{key:"componentWillReceiveProps",value:function(t){var e=t.autoSize,i=t.accessibility;this.props.autoSize===e&&this.props.accessibility===i||(this.context.pager.setOptions({autoSize:e,accessibility:i}),this._hydrate=!0)}},{key:"componentDidUpdate",value:function(t){this._hydrate&&(this.context.pager.hydrate(),this._hydrate=!1)}},{key:"_getFrameStyle",value:function(){var t=this.props.springConfig,e=this.state,i=e.width,n=e.height,s=e.instant;return{maxWidth:s?i:(0,it.ST)(i,t),height:s?n:(0,it.ST)(n,t)}}},{key:"_renderFrame",value:function(t){this.context.pager;var e=this.props,i=e.tag,n=e.accessibility,s=wt((0,r.Z)((0,r.Z)((0,r.Z)({},this._swipe.getEvents()),this._keyboard.getEvents()),{},{tabIndex:n?0:null}),this.props,dt);return(0,p.createElement)(i,(0,r.Z)((0,r.Z)({},s),{},{style:(0,r.Z)((0,r.Z)({},t),s.style)}))}},{key:"render",value:function(){var t=this,e=this.props.autoSize,i=(this.state.height,{position:"relative",overflow:"hidden"});return e?(0,at.jsx)(it.y_,{style:this._getFrameStyle(),children:function(n){return!0!==e&&"width"!==e||!n.maxWidth||(i.maxWidth=n.maxWidth),!0!==e&&"height"!==e||!n.height||(i.height=n.height),t._renderFrame(i)}}):this._renderFrame(i)}}]),i}(p.Component);yt.contextTypes={pager:v().instanceOf(J)},yt.defaultProps={tag:"div",autoSize:!1,accessibility:!0,springConfig:it.um.noWobble};var St=yt;function kt(t,e){var i=null;return p.Children.forEach(e,(function(e,n){e.key!==t&&n!==t||(i=n)})),i}var xt=["tag","trackPosition","children"],mt=["tag","onScroll"],_t=function(){return null},Tt={tag:v().any,currentView:v().any,viewsToShow:v().oneOfType([v().number,v().oneOf(["auto"])]),viewsToMove:v().number,align:v().number,contain:v().bool,axis:v().oneOf(["x","y"]),animations:v().array,infinite:v().bool,instant:v().bool,swipe:v().oneOf([!0,!1,"mouse","touch"]),swipeThreshold:v().number,flickTimeout:v().number,springConfig:v().objectOf(v().number),onSwipeStart:v().func,onSwipeMove:v().func,onSwipeEnd:v().func,onScroll:v().func,onViewChange:v().func,onRest:v().func},Zt=function(t){(0,u.Z)(i,t);var e=(0,c.Z)(i);function i(){var t;(0,a.Z)(this,i);for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];return(t=e.call.apply(e,[this].concat(s))).state={x:0,y:0},t}return(0,h.Z)(i,[{key:"componentWillReceiveProps",value:function(t){var e=this,i=t.trackPosition,n=this.context.pager;n.setViewStyles(i),this.props.trackPosition!==i&&requestAnimationFrame((function(){return e.props.onScroll(i/n.getTrackSize(!1)*-1,i)}))}},{key:"_renderViews",value:function(){return p.Children.map(this.props.children,(function(t){return t}))}},{key:"render",value:function(){var t=this.context.pager,e=this.props,i=e.tag,n=e.trackPosition,s=(e.children,(0,o.Z)(e,xt)),a=(0,r.Z)({},s.style);return t.track&&(a=(0,r.Z)((0,r.Z)({},a),t.track.getStyles(n))),(0,p.createElement)(i,(0,r.Z)((0,r.Z)({},s),{},{style:a}),this._renderViews())}}]),i}(p.Component);Zt.contextTypes={pager:v().instanceOf(D)};var bt=function(t){(0,u.Z)(i,t);var e=(0,c.Z)(i);function i(){var t;(0,a.Z)(this,i);for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];return(t=e.call.apply(e,[this].concat(s))).state={instant:!1},t._currentTween=0,t._hydrate=!1,t._handleOnRest=function(){t.props.infinite&&!t.state.instant&&(t.context.pager.resetViewIndex(),t._setValueInstantly(!0,!0)),t.props.onRest()},t}return(0,h.Z)(i,[{key:"componentWillMount",value:function(){this.context.pager.setOptions(this.props)}},{key:"componentDidMount",value:function(){var t=this,e=this.context.pager;e.addTrack((0,g.findDOMNode)(this)),this.scrollTo(kt(this.props.currentView,this.props.children)),e.on("hydrated",(function(){return t._setValueInstantly(!0,!0)})),e.on("swipeMove",(function(){return t._setValueInstantly(!0)})),e.on("swipeEnd",(function(){return t._setValueInstantly(!1)})),e.on("swipeStart",this.props.onSwipeStart),e.on("swipeMove",this.props.onSwipeMove),e.on("swipeEnd",this.props.onSwipeEnd),e.on("viewChange",this.props.onViewChange)}},{key:"componentWillReceiveProps",value:function(t){var e,i,n=t.currentView,s=t.instant,r=t.children;this.props.instant!==s&&this._setValueInstantly(s),void 0!==typeof n&&this.props.currentView!==n&&this.scrollTo(kt(n,r)),e=this.props,i=t,(e.viewsToShow!==i.viewsToShow||e.viewsToMove!==i.viewsToMove||e.align!==i.align||e.axis!==i.axis||e.animations!==i.animations||e.infinite!==i.infinite||e.swipe!==i.swipe||e.swipeThreshold!==i.swipeThreshold||e.flickTimeout!==i.flickTimeout)&&(this.context.pager.setOptions(t),this._hydrate=!0)}},{key:"componentDidUpdate",value:function(t){this._hydrate&&(this.context.pager.hydrate(),this._hydrate=!1)}},{key:"prev",value:function(){this.context.pager.prev()}},{key:"next",value:function(){this.context.pager.next()}},{key:"scrollTo",value:function(t){this.context.pager.setCurrentView({index:t})}},{key:"_setValueInstantly",value:function(t,e){var i=this;this.setState({instant:t},(function(){e&&i.setState({instant:!1})}
1))}},{key:"_getTrackStyle",value:function(){var t=this.context.pager.trackPosition;return this.state.instant||(t=(0,it.ST)(t,this.props.springConfig)),{trackPosition:t}}},{key:"render",value:function(){var t=this.props,e=t.tag,i=t.onScroll,n=(0,o.Z)(t,mt);return(0,at.jsx)(it.y_,{style:this._getTrackStyle(),onRest:this._handleOnRest,children:function(t){var s=t.trackPosition;return(0,p.createElement)(Zt,ot({trackPosition:s,tag:e,onScroll:i},n,Tt))}})}}]),i}(p.Component);bt.defaultProps={tag:"div",currentView:0,viewsToShow:1,viewsToMove:1,align:0,contain:!1,axis:"x",infinite:!1,instant:!1,swipe:!0,swipeThreshold:.5,flickTimeout:300,springConfig:it.um.noWobble,onSwipeStart:_t,onSwipeMove:_t,onSwipeEnd:_t,onScroll:_t,onViewChange:_t,onRest:_t},bt.contextTypes={pager:v().instanceOf(D)};var Ct=bt;function zt(t,e){var i=null;return p.Children.forEach(e,(function(e,n){e.key!==t&&n!==t||(i=n)})),i}var Vt=["tag","trackPosition","children"],Mt=["tag","onScroll"],Pt=function(){return null},Et={tag:v().any,currentView:v().any,viewsToShow:v().oneOfType([v().number,v().oneOf(["auto"])]),viewsToMove:v().number,align:v().number,contain:v().bool,axis:v().oneOf(["x","y"]),animations:v().array,infinite:v().bool,instant:v().bool,swipe:v().oneOf([!0,!1,"mouse","touch"]),swipeThreshold:v().number,flickTimeout:v().number,springConfig:v().objectOf(v().number),onSwipeStart:v().func,onSwipeMove:v().func,onSwipeEnd:v().func,onScroll:v().func,onViewChange:v().func,onRest:v().func},Ot=function(t){(0,u.Z)(i,t);var e=(0,c.Z)(i);function i(){var t;(0,a.Z)(this,i);for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];return(t=e.call.apply(e,[this].concat(s))).state={x:0,y:0},t}return(0,h.Z)(i,[{key:"componentWillReceiveProps",value:function(t){var e=this,i=t.trackPosition,n=this.context.pager;n.setViewStyles(i),this.props.trackPosition!==i&&requestAnimationFrame((function(){e.props.onScroll(i/n.getTrackSize(!1)*-1,i)}))}},{key:"_renderViews",value:function(){return p.Children.map(this.props.children,(function(t){return t}))}},{key:"render",value:function(){var t=this.context.pager,e=this.props,i=e.tag,n=e.trackPosition,s=(e.children,(0,o.Z)(e,Vt)),a=(0,r.Z)({},s.style);return t.track&&(a=(0,r.Z)((0,r.Z)({},a),t.track.getStyles(n))),(0,p.createElement)(i,(0,r.Z)((0,r.Z)({},s),{},{style:a}),this._renderViews())}}]),i}(p.Component);Ot.contextTypes={pager:v().instanceOf(J)};var It=function(t){(0,u.Z)(i,t);var e=(0,c.Z)(i);function i(){var t;(0,a.Z)(this,i);for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];return(t=e.call.apply(e,[this].concat(s))).state={instant:!1},t._currentTween=0,t._hydrate=!1,t._handleOnRest=function(){t.props.infinite&&!t.state.instant&&(t.context.pager.resetViewIndex(),t._setValueInstantly(!0,!0)),t.props.onRest()},t}return(0,h.Z)(i,[{key:"componentWillMount",value:function(){this.context.pager.setOptions(this.props)}},{key:"componentDidMount",value:function(){var t=this,e=this.context.pager;e.addTrack((0,g.findDOMNode)(this)),this.scrollTo(zt(this.props.currentView,this.props.children)),e.on("hydrated",(function(){return t._setValueInstantly(!0,!0)})),e.on("swipeMove",(function(){return t._setValueInstantly(!0)})),e.on("swipeEnd",(function(){return t._setValueInstantly(!1)})),e.on("swipeStart",this.props.onSwipeStart),e.on("swipeMove",this.props.onSwipeMove),e.on("swipeEnd",this.props.onSwipeEnd),e.on("viewChange",this.props.onViewChange)}},{key:"componentWillReceiveProps",value:function(t){var e,i,n=t.currentView,s=t.instant,r=t.children;this.props.instant!==s&&this._setValueInstantly(s),void 0!==typeof n&&this.props.currentView!==n&&this.scrollTo(zt(n,r)),e=this.props,i=t,(e.viewsToShow!==i.viewsToShow||e.viewsToMove!==i.viewsToMove||e.align!==i.align||e.axis!==i.axis||e.animations!==i.animations||e.infinite!==i.infinite||e.swipe!==i.swipe||e.swipeThreshold!==i.swipeThreshold||e.flickTimeout!==i.flickTimeout)&&(this.context.pager.setOptions(t),this._hydrate=!0)}},{key:"componentDidUpdate",value:function(t){this._hydrate&&(this.context.pager.hydrate(),this._hydrate=!1)}},{key:"prev",value:function(){this.context.pager.prev()}},{key:"next",value:function(){this.context.pager.next()}},{key:"scrollTo",value:function(t){this.context.pager.setCurrentView({index:t})}},{key:"_setValueInstantly",value:function(t,e){var i=this;this.setState({instant:t},(function(){e&&i.setState({instant:!1})}
1))}},{key:"_getTrackStyle",value:function(){var t=this.context.pager.trackPosition;return this.state.instant||(t=(0,it.ST)(t,this.props.springConfig)),{trackPosition:t}}},{key:"render",value:function(){var t=this.props,e=t.tag,i=t.onScroll,n=(0,o.Z)(t,Mt);return(0,at.jsx)(it.y_,{style:this._getTrackStyle(),onRest:this._handleOnRest,children:function(t){var s=t.trackPosition;return(0,p.createElement)(Ot,wt({trackPosition:s,tag:e,onScroll:i},n,Et))}})}}]),i}(p.Component);It.defaultProps={tag:"div",currentView:0,viewsToShow:1,viewsToMove:1,align:0,contain:!1,axis:"x",infinite:!1,instant:!1,swipe:!0,swipeThreshold:.5,flickTimeout:300,springConfig:it.um.noWobble,onSwipeStart:Pt,onSwipeMove:Pt,onSwipeEnd:Pt,onScroll:Pt,onViewChange:Pt,onRest:Pt},It.contextTypes={pager:v().instanceOf(J)};var Dt=It,Ft=["tag"],At=function(t){(0,u.Z)(i,t);var e=(0,c.Z)(i);function i(t){var n;(0,a.Z)(this,i),n=e.call(this,t);var s=new D,r=function(){return n.forceUpdate()};return s.on("viewChange",r),s.on("hydrated",r),n._pager=s,n}return(0,h.Z)(i,[{key:"getChildContext",value:function(){return{pager:this._pager}}},{key:"componentDidMount",value:function(){var t=this;requestAnimationFrame((function(){t._pager.hydrate()}))}},{key:"getInstance",value:function(){return this._pager}},{key:"render",value:function(){var t=this.props,e=t.tag,i=(0,o.Z)(t,Ft);return(0,p.createElement)(e,i)}}]),i}(p.Component);At.childContextTypes={pager:v().instanceOf(D)},At.defaultProps={tag:"div"};var Wt=At,Rt=["tag"],Nt=function(t){(0,u.Z)(i,t);var e=(0,c.Z)(i);function i(t){var n;(0,a.Z)(this,i),n=e.call(this,t);var s=new J,r=function(){return n.forceUpdate()};return s.on("viewChange",r),s.on("hydrated",r),n._pager=s,n}return(0,h.Z)(i,[{key:"getChildContext",value:function(){return{pager:this._pager}}},{key:"componentDidMount",value:function(){var t=this;requestAnimationFrame((function(){t._pager.hydrate()}))}},{key:"getInstance",value:function(){return this._pager}},{key:"render",value:function(){var t=this.props,e=t.tag,i=(0,o.Z)(t,Rt);return(0,p.createElement)(e,i)}}]),i}(p.Component);Nt.childContextTypes={pager:v().instanceOf(J)},Nt.defaultProps={tag:"div"};var Bt=Nt,Ut=n.Z.localization.direction===s.zC?et:W,jt=n.Z.localization.direction===s.zC?St:ct,Kt=n.Z.localization.direction===s.zC?Dt:Ct,qt=n.Z.localization.direction===s.zC?Bt:Wt}}]);
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.