PageSourceSearch

https://exhibitors.iaa-transportation.com/static/js/9879.59133305.js

js iaa-transportation.com collected 2026-09-24 09:04:41 UTC 24,521 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkvirtual_guide=self.webpackChunkvirtual_guide||[]).push([[9879],{48510:()=>{},52642:(e,t,n)=>{n.d(t,{Ay:()=>q});var a=n(89510),r=n(91806),o=n(65288),s=n(62230),i=n(70261),l=n(15669),u=n(67529),c=n(86520);const d=function(e){var t,n,r=e.className,o=e.included,s=e.vertical,i=e.style,u=e.length,d=e.offset,h=e.reverse;u<0&&(h=!h,u=Math.abs(u),d=100-d);var v=s?(t={},(0,c.A)(t,h?"top":"bottom","".concat(d,"%")),(0,c.A)(t,h?"bottom":"top","auto"),(0,c.A)(t,"height","".concat(u,"%")),t):(n={},(0,c.A)(n,h?"right":"left","".concat(d,"%")),(0,c.A)(n,h?"left":"right","auto"),(0,c.A)(n,"width","".concat(u,"%")),n),f=(0,a.A)((0,a.A)({},i),v);return o?l.createElement("div",{className:r,style:f}):null};var h=n(71229),v=n(14792),f=n(34950),p=n(98216),m=n(86749),g=n(12321),y=n(63059),A=n.n(y);const k=function(e){var t=e.prefixCls,n=e.vertical,r=e.reverse,o=e.marks,s=e.dots,i=e.step,d=e.included,h=e.lowerBound,v=e.upperBound,f=e.max,p=e.min,m=e.dotStyle,g=e.activeDotStyle,y=f-p,k=function(e,t,n,a,r,o){(0,u.Ay)(!n||a>0,"`Slider[step]` should be a positive number in order to make Slider[dots] work.");var s=Object.keys(t).map(parseFloat).sort(function(e,t){return e-t});if(n&&a)for(var i=r;i<=o;i+=a)-1===s.indexOf(i)&&s.push(i);return s}(0,o,s,i,p,f).map(function(e){var o,s="".concat(Math.abs(e-p)/y*100,"%"),i=!d&&e===v||d&&e<=v&&e>=h,u=n?(0,a.A)((0,a.A)({},m),{},(0,c.A)({},r?"top":"bottom",s)):(0,a.A)((0,a.A)({},m),{},(0,c.A)({},r?"right":"left",s));i&&(u=(0,a.A)((0,a.A)({},u),g));var f=A()((o={},(0,c.A)(o,"".concat(t,"-dot"),!0),(0,c.A)(o,"".concat(t,"-dot-active"),i),(0,c.A)(o,"".concat(t,"-dot-reverse"),r),o));return l.createElement("span",{className:f,style:u,key:e})});return l.createElement("div",{className:"".concat(t,"-step")},k)};var b=n(34851);const x=function(e){var t=e.className,n=e.vertical,r=e.reverse,o=e.marks,s=e.included,i=e.upperBound,u=e.lowerBound,d=e.max,h=e.min,v=e.onClickLabel,f=Object.keys(o),p=d-h,m=f.map(parseFloat).sort(function(e,t){return e-t}).map(function(e){var d,f=o[e],m="object"===(0,b.A)(f)&&!l.isValidElement(f),g=m?f.label:f;if(!g&&0!==g)return null;var y=!s&&e===i||s&&e<=i&&e>=u,k=A()((d={},(0,c.A)(d,"".concat(t,"-text"),!0),(0,c.A)(d,"".concat(t,"-text-active"),y),d)),x=(0,c.A)({marginBottom:"-50%"},r?"top":"bottom","".concat((e-h)/p*100,"%")),M=(0,c.A)({transform:"translateX(".concat(r?"50%":"-50%",")"),msTransform:"translateX(".concat(r?"50%":"-50%",")")},r?"right":"left","".concat((e-h)/p*100,"%")),C=n?x:M,S=m?(0,a.A)((0,a.A)({},C),f.style):C;return l.createElement("span",{className:k,style:S,key:e,onMouseDown:function(t){return v(t,e)},onTouchStart:function(t){return v(t,e)}},g)});return l.createElement("div",{className:t},m)};var M=function(e){(0,s.A)(n,e);var t=(0,i.A)(n);function n(){var e;return(0,r.A)(this,n),(e=t.apply(this,arguments)).state={clickFocused:!1},e.setHandleRef=function(t){e.handle=t},e.handleMouseUp=function(){document.activeElement===e.handle&&e.setClickFocus(!0)},e.handleMouseDown=function(t){t.preventDefault(),e.focus()},e.handleBlur=function(){e.setClickFocus(!1)},e.handleKeyDown=function(){e.setClickFocus(!1)},e}return(0,o.A)(n,[{key:"componentDidMount",value:function(){this.onMouseUpListener=(0,g.A)(document,"mouseup",this.handleMouseUp)}},{key:"componentWillUnmount",value:function(){this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"setClickFocus",value:function(e){this.setState({clickFocused:e})}},{key:"clickFocus",value:function(){this.setClickFocus(!0),this.focus()}},{key:"focus",value:function(){this.handle.focus()}},{key:"blur",value:function(){this.handle.blur()}},{key:"render",value:function(){var e,t,n,r=this.props,o=r.prefixCls,s=r.vertical,i=r.reverse,u=r.offset,d=r.style,f=r.disabled,p=r.min,m=r.max,g=r.value,y=r.tabIndex,k=r.ariaLabel,b=r.ariaLabelledBy,x=r.ariaValueTextFormatter,M=(0,v.A)(r,["prefixCls","vertical","reverse","offset","style","disabled","min","max","value","tabIndex","ariaLabel","ariaLabelledBy","ariaValueTextFormatter"]),C=A()(this.props.className,(0,c.A)({},"".concat(o,"-handle-click-focused"),this.state.clickFocused)),S=s?(e={},(0,c.A)(e,i?"top":"bottom","".concat(u,"%")),(0,c.A)(e,i?"bottom":"top","auto"),(0,c.A)(e,"transform",i?null:"translateY(+50%)"),e):(t={},(0,c.A)(t,i?"right":"left","".concat(u,"%")),(0,c.A)(t,i?"left":"right","auto"),(0,c.A)(t,"transform","translateX(".concat(i?"+":"-","50%)")),t),B=(0,a.A)((0,a.A)({},d),S),T=y||0;return(f||null===y)&&(T=null),x&&(n=x(g)),l.createElement("div",(0,h.A)({ref:this.setHandleRef,tabIndex:T},M,{className:C,style:B,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,role:"slider","aria-valuemin":p,"aria-valuemax":m,"aria-valuenow":g,"aria-disabled":!!f,"aria-label":k,"aria-labelledby":b,"aria-valuetext":n}))}}]),n}(l.Component),C=n(9076),S=n(61679);function B(e,t){try{return Object.keys(t).some(function(n){return e.target===(0,C.findDOMNode)(t[n])})}catch(n){return!1}}function T(e,t){var n=t.min,a=t.max;return e<n||e>a}function E(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function w(e,t){var n=t.marks,a=t.step,r=t.min,o=t.max,s=Object.keys(n).map(parseFloat);if(null!==a){var i=Math.pow(10,L(a)),l=Math.floor((o*i-r*i)/(a*i)),u=Math.min((e-r)/a,l),c=Math.round(u)*a+r;s.push(c)}var d=s.map(function(t){return Math.abs(e-t)});return s[d.indexOf(Math.min.apply(Math,(0,f.A)(d)))]}function L(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function V(e,t){return e?t.clientY:t.pageX}function D(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function F(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function O(e,t){var n=t.max,a=t.min;return e<=a?a:e>
1=n?n:e}function P(e,t){var n=t.step,a=isFinite(w(e,t))?w(e,t):0;return null===n?a:parseFloat(a.toFixed(L(n)))}function H(e){e.stopPropagation(),e.preventDefault()}function N(e,t,n){var a="increase",r="decrease",o=a;switch(e.keyCode){case S.A.UP:o=t&&n?r:a;break;case S.A.RIGHT:o=!t&&n?r:a;break;case S.A.DOWN:o=t&&n?a:r;break;case S.A.LEFT:o=!t&&n?a:r;break;case S.A.END:return function(e,t){return t.max};case S.A.HOME:return function(e,t){return t.min};case S.A.PAGE_UP:return function(e,t){return e+2*t.step};case S.A.PAGE_DOWN:return function(e,t){return e-2*t.step};default:return}return function(e,t){return function(e,t,n){var a={increase:function(e,t){return e+t},decrease:function(e,t){return e-t}},r=a[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),o=Object.keys(n.marks)[r];return n.step?a[e](t,n.step):Object.keys(n.marks).length&&n.marks[o]?n.marks[o]:t}(o,e,t)}}function R(){}function U(e){var t;return(t=function(e){(0,s.A)(n,e);var t=(0,i.A)(n);function n(e){var a;(0,r.A)(this,n),(a=t.call(this,e)).onDown=function(e,t){var n=t,r=a.props,o=r.draggableTrack,s=r.vertical,i=a.state.bounds,l=o&&a.positionGetValue&&a.positionGetValue(n)||[],u=B(e,a.handlesRefs);if(a.dragTrack=o&&i.length>=2&&!u&&!l.map(function(e,t){var n=!!t||e>=i[t];return t===l.length-1?e<=i[t]:n}).some(function(e){return!e}),a.dragTrack)a.dragOffset=n,a.startBounds=(0,f.A)(i);else{if(u){var c=F(s,e.target);a.dragOffset=n-c,n=c}else a.dragOffset=0;a.onStart(n)}},a.onMouseDown=function(e){if(0===e.button){a.removeDocumentEvents();var t=V(a.props.vertical,e);a.onDown(e,t),a.addDocumentMouseEvents()}},a.onTouchStart=function(e){if(!E(e)){var t=D(a.props.vertical,e);a.onDown(e,t),a.addDocumentTouchEvents(),H(e)}},a.onFocus=function(e){var t=a.props,n=t.onFocus,r=t.vertical;if(B(e,a.handlesRefs)&&!a.dragTrack){var o=F(r,e.target);a.dragOffset=0,a.onStart(o),H(e),n&&n(e)}},a.onBlur=function(e){var t=a.props.onBlur;a.dragTrack||a.onEnd(),t&&t(e)},a.onMouseUp=function(){a.handlesRefs[a.prevMovedHandleIndex]&&a.handlesRefs[a.prevMovedHandleIndex].clickFocus()},a.onMouseMove=function(e){if(a.sliderRef){var t=V(a.props.vertical,e);a.onMove(e,t-a.dragOffset,a.dragTrack,a.startBounds)}else a.onEnd()},a.onTouchMove=function(e){if(!E(e)&&a.sliderRef){var t=D(a.props.vertical,e);a.onMove(e,t-a.dragOffset,a.dragTrack,a.startBounds)}else a.onEnd()},a.onKeyDown=function(e){a.sliderRef&&B(e,a.handlesRefs)&&a.onKeyboard(e)},a.onClickMarkLabel=function(e,t){e.stopPropagation(),a.onChange({value:t}),a.setState({value:t},function(){return a.onEnd(!0)})},a.saveSlider=function(e){a.sliderRef=e};var o=e.step,s=e.max,i=e.min,l=!isFinite(s-i)||(s-i)%o===0;return(0,u.Ay)(!o||Math.floor(o)!==o||l,"Slider[max] - Slider[min] (".concat(s-i,") should be a multiple of Slider[step] (").concat(o,")")),a.handlesRefs={},a}return(0,o.A)(n,[{key:"componentDidMount",value:function(){this.document=this.sliderRef&&this.sliderRef.ownerDocument;var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"componentWillUnmount",value:function(){(0,p.A)((0,m.A)(n.prototype),"componentWillUnmount",this)&&(0,p.A)((0,m.A)(n.prototype),"componentWillUnmount",this).call(this),this.removeDocumentEvents()}},{key:"getSliderStart",value:function(){var e=this.sliderRef,t=this.props,n=t.vertical,a=t.reverse,r=e.getBoundingClientRect();return n?a?r.bottom:r.top:window.pageXOffset+(a?r.right:r.left)}},{key:"getSliderLength",value:function(){var e=this.sliderRef;if(!e)return 0;var t=e.getBoundingClientRect();return this.props.vertical?t.height:t.width}},{key:"addDocumentTouchEvents",value:function(){this.onTouchMoveListener=(0,g.A)(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=(0,g.A)(this.document,"touchend",this.onEnd)}},{key:"addDocumentMouseEvents",value:function(){this.onMouseMoveListener=(0,g.A)(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=(0,g.A)(this.document,"mouseup",this.onEnd)}},{key:"removeDocumentEvents",value:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"focus",value:function(){var e;this.props.disabled||null===(e=this.handlesRefs[0])||void 0===e||e.focus()}},{key:"blur",value:function(){var e=this;
1this.props.disabled||Object.keys(this.handlesRefs).forEach(function(t){var n,a;null===(n=e.handlesRefs[t])||void 0===n||null===(a=n.blur)||void 0===a||a.call(n)})}},{key:"calcValue",value:function(e){var t=this.props,n=t.vertical,a=t.min,r=t.max,o=Math.abs(Math.max(e,0)/this.getSliderLength());return n?(1-o)*(r-a)+a:o*(r-a)+a}},{key:"calcValueByPos",value:function(e){var t=(this.props.reverse?-1:1)*(e-this.getSliderStart());return this.trimAlignValue(this.calcValue(t))}},{key:"calcOffset",value:function(e){var t=this.props,n=t.min,a=(e-n)/(t.max-n);return Math.max(0,100*a)}},{key:"saveHandle",value:function(e,t){this.handlesRefs[e]=t}},{key:"render",value:function(){var e,t=this.props,r=t.prefixCls,o=t.className,s=t.marks,i=t.dots,u=t.step,d=t.included,h=t.disabled,v=t.vertical,f=t.reverse,g=t.min,y=t.max,b=t.children,M=t.maximumTrackStyle,C=t.style,S=t.railStyle,B=t.dotStyle,T=t.activeDotStyle,E=(0,p.A)((0,m.A)(n.prototype),"render",this).call(this),w=E.tracks,L=E.handles,V=A()(r,(e={},(0,c.A)(e,"".concat(r,"-with-marks"),Object.keys(s).length),(0,c.A)(e,"".concat(r,"-disabled"),h),(0,c.A)(e,"".concat(r,"-vertical"),v),(0,c.A)(e,o,o),e));return l.createElement("div",{ref:this.saveSlider,className:V,onTouchStart:h?R:this.onTouchStart,onMouseDown:h?R:this.onMouseDown,onMouseUp:h?R:this.onMouseUp,onKeyDown:h?R:this.onKeyDown,onFocus:h?R:this.onFocus,onBlur:h?R:this.onBlur,style:C},l.createElement("div",{className:"".concat(r,"-rail"),style:(0,a.A)((0,a.A)({},M),S)}),w,l.createElement(k,{prefixCls:r,vertical:v,reverse:f,marks:s,dots:i,step:u,included:d,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:y,min:g,dotStyle:B,activeDotStyle:T}),L,l.createElement(x,{className:"".concat(r,"-mark"),onClickLabel:h?R:this.onClickMarkLabel,vertical:v,marks:s,included:d,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:y,min:g,reverse:f}),b)}}]),n}(e)).displayName="ComponentEnhancer(".concat(e.displayName,")"),t.defaultProps=(0,a.A)((0,a.A)({},e.defaultProps),{},{prefixCls:"rc-slider",className:"",min:0,max:100,step:1,marks:{},handle:function(e){var t=e.index,n=(0,v.A)(e,["index"]);return delete n.dragging,null===n.value?null:l.createElement(M,(0,h.A)({},n,{key:t}))},onBeforeChange:R,onChange:R,onAfterChange:R,included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),t}const I=U(function(e){(0,s.A)(n,e);var t=(0,i.A)(n);function n(e){var a;(0,r.A)(this,n),(a=t.call(this,e)).positionGetValue=function(e){return[]},a.onEnd=function(e){var t=a.state.dragging;a.removeDocumentEvents(),(t||e)&&a.props.onAfterChange(a.getValue()),a.setState({dragging:!1})};var o=void 0!==e.defaultValue?e.defaultValue:e.min,s=void 0!==e.value?e.value:o;return a.state={value:a.trimAlignValue(s),dragging:!1},(0,u.Ay)(!("minimumTrackStyle"in e),"minimumTrackStyle will be deprecated, please use trackStyle instead."),(0,u.Ay)(!("maximumTrackStyle"in e),"maximumTrackStyle will be deprecated, please use railStyle instead."),a}return(0,o.A)(n,[{key:"calcValueByPos",value:function(e){return 0}},{key:"calcOffset",value:function(e){return 0}},{key:"saveHandle",value:function(e,t){}},{key:"removeDocumentEvents",value:function(){}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,a=n.min,r=n.max,o=n.value,s=n.onChange;if("min"in this.props||"max"in this.props){var i=void 0!==o?o:t.value,l=this.trimAlignValue(i,this.props);l!==t.value&&(this.setState({value:l}),a===e.min&&r===e.max||!T(i,this.props)||s(l))}}},{key:"onChange",value:function(e){var t=this.props,n=!("value"in t),r=e.value>this.props.max?(0,a.A)((0,a.A)({},e),{},{value:this.props.max}):e;n&&this.setState(r);var o=r.value;t.onChange(o)}},{key:"onStart",value:function(e){this.setState({dragging:!0});var t=this.props,n=this.getValue();t.onBeforeChange(n);var a=this.calcValueByPos(e);this.startValue=a,this.startPosition=e,a!==n&&(this.prevMovedHandleIndex=0,this.onChange({value:a}))}},{key:"onMove",value:function(e,t){H(e);var n=this.state.value,a=this.calcValueByPos(t);a!==n&&this.onChange({value:a})}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,a=N(e,t.vertical,n);if(a){H(e);var r=this.state.value,o=a(r,this.props),s=this.trimAlignValue(o);if(s===r)return;this.onChange({value:s}),this.props.onAfterChange(s),this.onEnd()}}},{key:"getValue",value:function(){return this.state.value}},{key:"getLowerBound",value:function(){var e=this.props.startPoint||this.props.min;return this.state.value>e?e:this.state.value}},{key:"getUpperBound",value:function(){return this.state.value<this.props.startPoint?this.props.startPoint:this.state.value}},{key:"trimAlignValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;var n=(0,a.A)((0,a.A)({},this.props),t);return P(O(e,n),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.vertical,o=t.included,s=t.disabled,i=t.minimumTrackStyle,u=t.trackStyle,c=t.handleStyle,h=t.tabIndex,v=t.ariaLabelForHandle,f=t.ariaLabelledByForHandle,p=t.ariaValueTextFormatterForHandle,m=t.min,g=t.max,y=t.startPoint,A=t.reverse,k=t.handle,b=this.state,x=b.value,M=b.dragging,C=this.calcOffset(x),S=k({className:"".concat(n,"-handle"),prefixCls:n,vertical:r,offset:C,value:x,dragging:
1M,disabled:s,min:m,max:g,reverse:A,index:0,tabIndex:h,ariaLabel:v,ariaLabelledBy:f,ariaValueTextFormatter:p,style:c[0]||c,ref:function(t){return e.saveHandle(0,t)}}),B=void 0!==y?this.calcOffset(y):0,T=u[0]||u;return{tracks:l.createElement(d,{className:"".concat(n,"-track"),vertical:r,included:o,offset:B,reverse:A,length:C-B,style:(0,a.A)((0,a.A)({},i),T)}),handles:S}}}]),n}(l.Component));var G=function(e){var t=e.value,n=e.handle,a=e.bounds,r=e.props,o=r.allowCross,s=r.pushable,i=Number(s),l=O(t,r),u=l;return o||null==n||void 0===a||(n>0&&l<=a[n-1]+i&&(u=a[n-1]+i),n<a.length-1&&l>=a[n+1]-i&&(u=a[n+1]-i)),P(u,r)},j=function(e){(0,s.A)(n,e);var t=(0,i.A)(n);function n(e){var a;(0,r.A)(this,n),(a=t.call(this,e)).positionGetValue=function(e){var t=a.getValue(),n=a.calcValueByPos(e),r=a.getClosestBound(n),o=a.getBoundNeedMoving(n,r);if(n===t[o])return null;var s=(0,f.A)(t);return s[o]=n,s},a.onEnd=function(e){var t=a.state.handle;a.removeDocumentEvents(),t||(a.dragTrack=!1),(null!==t||e)&&a.props.onAfterChange(a.getValue()),a.setState({handle:null})};var o=e.count,s=e.min,i=e.max,l=Array.apply(void 0,(0,f.A)(Array(o+1))).map(function(){return s}),u="defaultValue"in e?e.defaultValue:l,c=(void 0!==e.value?e.value:u).map(function(t,n){return G({value:t,handle:n,props:e})}),d=c[0]===i?0:c.length-1;return a.state={handle:null,recent:d,bounds:c},a}return(0,o.A)(n,[{key:"calcValueByPos",value:function(e){return 0}},{key:"getSliderLength",value:function(){return 0}},{key:"calcOffset",value:function(e){return 0}},{key:"saveHandle",value:function(e,t){}},{key:"removeDocumentEvents",value:function(){}},{key:"componentDidUpdate",value:function(e,t){var n=this,a=this.props,r=a.onChange,o=a.value,s=a.min,i=a.max;if(("min"in this.props||"max"in this.props)&&(s!==e.min||i!==e.max)){var l=o||t.bounds;if(l.some(function(e){return T(e,n.props)}))r(l.map(function(e){return O(e,n.props)}))}}},{key:"onChange",value:function(e){var t=this.props;if(!("value"in t))this.setState(e);else{var n={};["handle","recent"].forEach(function(t){void 0!==e[t]&&(n[t]=e[t])}),Object.keys(n).length&&this.setState(n)}var r=(0,a.A)((0,a.A)({},this.state),e).bounds;
vendor: 4,307 bytes, line 1
1t.onChange(r)}},{key:"onStart",value:function(e){var t=this.props,n=this.state,a=this.getValue();t.onBeforeChange(a);var r=this.calcValueByPos(e);this.startValue=r,this.startPosition=e;var o=this.getClosestBound(r);if(this.prevMovedHandleIndex=this.getBoundNeedMoving(r,o),this.setState({handle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex}),r!==a[this.prevMovedHandleIndex]){var s=(0,f.A)(n.bounds);s[this.prevMovedHandleIndex]=r,this.onChange({bounds:s})}}},{key:"onMove",value:function(e,t,n,a){H(e);var r=this.state,o=this.props,s=o.max||100,i=o.min||0;if(n){var l=o.vertical?-t:t;l=o.reverse?-l:l;var u=s-Math.max.apply(Math,(0,f.A)(a)),c=i-Math.min.apply(Math,(0,f.A)(a)),d=Math.min(Math.max(l/(this.getSliderLength()/(s-i)),c),u),h=a.map(function(e){return Math.floor(Math.max(Math.min(e+d,s),i))});r.bounds.map(function(e,t){return e===h[t]}).some(function(e){return!e})&&this.onChange({bounds:h})}else{var v=this.calcValueByPos(t);v!==r.bounds[r.handle]&&this.moveTo(v)}}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,a=N(e,t.vertical,n);if(a){H(e);var r=this.state,o=this.props,s=r.bounds,i=r.handle,l=s[null===i?r.recent:i],u=a(l,o),c=G({value:u,handle:i,bounds:r.bounds,props:o});if(c===l)return;this.moveTo(c,!0)}}},{key:"getValue",value:function(){return this.state.bounds}},{key:"getClosestBound",value:function(e){for(var t=this.state.bounds,n=0,a=1;a<t.length-1;a+=1)e>=t[a]&&(n=a);return Math.abs(t[n+1]-e)<Math.abs(t[n]-e)&&(n+=1),n}},{key:"getBoundNeedMoving",value:function(e,t){var n=this.state,a=n.bounds,r=n.recent,o=t,s=a[t+1]===a[t];return s&&a[r]===a[t]&&(o=r),s&&e!==a[t+1]&&(o=e<a[t+1]?t:t+1),o}},{key:"getLowerBound",value:function(){return this.state.bounds[0]}},{key:"getUpperBound",value:function(){var e=this.state.bounds;return e[e.length-1]}},{key:"getPoints",value:function(){var e=this.props,t=e.marks,n=e.step,r=e.min,o=e.max,s=this.internalPointsCache;if(!s||s.marks!==t||s.step!==n){var i=(0,a.A)({},t);if(null!==n)for(var l=r;l<=o;l+=n)i[l]=l;var u=Object.keys(i).map(parseFloat);u.sort(function(e,t){return e-t}),this.internalPointsCache={marks:t,step:n,points:u}}return this.internalPointsCache.points}},{key:"moveTo",value:function(e,t){var n=this,a=this.state,r=this.props,o=(0,f.A)(a.bounds),s=null===a.handle?a.recent:a.handle;o[s]=e;var i=s;!1!==r.pushable?this.pushSurroundingHandles(o,i):r.allowCross&&(o.sort(function(e,t){return e-t}),i=o.indexOf(e)),this.onChange({recent:i,handle:i,bounds:o}),t&&(this.props.onAfterChange(o),this.setState({},function(){n.handlesRefs[i].focus()}),this.onEnd())}},{key:"pushSurroundingHandles",value:function(e,t){var n=e[t],a=this.props.pushable,r=Number(a),o=0;if(e[t+1]-n<r&&(o=1),n-e[t-1]<r&&(o=-1),0!==o){var s=t+o,i=o*(e[s]-n);this.pushHandle(e,s,o,r-i)||(e[t]=e[s]-o*r)}}},{key:"pushHandle",value:function(e,t,n,a){for(var r=e[t],o=e[t];n*(o-r)<a;){if(!this.pushHandleOnePoint(e,t,n))return e[t]=r,!1;o=e[t]}return!0}},{key:"pushHandleOnePoint",value:function(e,t,n){var a=this.getPoints(),r=a.indexOf(e[t])+n;if(r>=a.length||r<0)return!1;var o=t+n,s=a[r],i=this.props.pushable,l=Number(i),u=n*(e[o]-s);return!!this.pushHandle(e,o,n,l-u)&&(e[t]=s,!0)}},{key:"trimAlignValue",value:function(e){var t=this.state,n=t.handle,a=t.bounds;return G({value:e,handle:n,bounds:a,props:this.props})}},{key:"render",value:function(){var e=this,t=this.state,n=t.handle,a=t.bounds,r=this.props,o=r.prefixCls,s=r.vertical,i=r.included,u=r.disabled,h=r.min,v=r.max,f=r.reverse,p=r.handle,m=r.trackStyle,g=r.handleStyle,y=r.tabIndex,k=r.ariaLabelGroupForHandles,b=r.ariaLabelledByGroupForHandles,x=r.ariaValueTextFormatterGroupForHandles,M=a.map(function(t){return e.calcOffset(t)}),C="".concat(o,"-handle"),S=a.map(function(t,a){var r,i=y[a]||0;(u||null===y[a])&&(i=null);var l=n===a;return p({className:A()((r={},(0,c.A)(r,C,!0),(0,c.A)(r,"".concat(C,"-").concat(a+1),!0),(0,c.A)(r,"".concat(C,"-dragging"),l),r)),prefixCls:o,vertical:s,dragging:l,offset:M[a],value:t,index:a,tabIndex:i,min:h,max:v,reverse:f,disabled:u,style:g[a],ref:function(t){return e.saveHandle(a,t)},ariaLabel:k[a],ariaLabelledBy:b[a],ariaValueTextFormatter:x[a]})});return{tracks:a.slice(0,-1).map(function(e,t){var n,a=t+1,r=A()((n={},(0,c.A)(n,"".concat(o,"-track"),!0),(0,c.A)(n,"".concat(o,"-track-").concat(a),!0),n)
1);return l.createElement(d,{className:r,vertical:s,reverse:f,included:i,offset:M[a-1],length:M[a]-M[a-1],style:m[t],key:a})}),handles:S}}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(!("value"in e||"min"in e||"max"in e))return null;var n=e.value||t.bounds,r=n.map(function(n,a){return G({value:n,handle:a,bounds:t.bounds,props:e})});if(t.bounds.length===r.length){if(r.every(function(e,n){return e===t.bounds[n]}))return null}else r=n.map(function(t,n){return G({value:t,handle:n,props:e})});return(0,a.A)((0,a.A)({},t),{},{bounds:r})}}]),n}(l.Component);j.displayName="Range",j.defaultProps={count:1,allowCross:!0,pushable:!1,draggableTrack:!1,tabIndex:[],ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]};const K=U(j);var W=n(17575),X=n(11536),_=n(11700);const Y=l.forwardRef(function(e,t){var n=e.visible,a=e.overlay,r=l.useRef(null),o=(0,X.K4)(t,r),s=l.useRef(null);function i(){_.A.cancel(s.current)}return l.useEffect(function(){return n?s.current=(0,_.A)(function(){var e;null===(e=r.current)||void 0===e||e.forcePopupAlign()}):i(),i},[n,a]),l.createElement(W.A,(0,h.A)({ref:o},e))});var J=I;J.Range=K,J.Handle=M,J.createSliderWithTooltip=function(e){var t;return(t=function(t){(0,s.A)(u,t);var n=(0,i.A)(u);function u(){var e;return(0,r.A)(this,u),(e=n.apply(this,arguments)).state={visibles:{}},e.handleTooltipVisibleChange=function(t,n){e.setState(function(e){return{visibles:(0,a.A)((0,a.A)({},e.visibles),{},(0,c.A)({},t,n))}})},e.handleWithTooltip=function(t){var n,r=t.value,o=t.dragging,s=t.index,i=t.disabled,u=(0,v.A)(t,["value","dragging","index","disabled"]),c=e.props,d=c.tipFormatter,f=c.tipProps,p=c.handleStyle,m=c.getTooltipContainer,g=f.prefixCls,y=void 0===g?"rc-slider-tooltip":g,A=f.overlay,k=void 0===A?d(r):A,b=f.placement,x=void 0===b?"top":b,C=f.visible,S=void 0!==C&&C,B=(0,v.A)(f,["prefixCls","overlay","placement","visible"]);return n=Array.isArray(p)?p[s]||p[0]:p,l.createElement(Y,(0,h.A)({},B,{getTooltipContainer:m,prefixCls:y,overlay:k,placement:x,visible:!i&&(e.state.visibles[s]||o)||S,key:s}),l.createElement(M,(0,h.A)({},u,{style:(0,a.A)({},n),value:r,onMouseEnter:function(){return e.handleTooltipVisibleChange(s,!0)},onMouseLeave:function(){return e.handleTooltipVisibleChange(s,!1)}})))},e}return(0,o.A)(u,[{key:"render",value:function(){return l.createElement(e,(0,h.A)({},this.props,{handle:this.handleWithTooltip}))}}]),u}(l.Component)).defaultProps={tipFormatter:function(e){return e},handleStyle:[{}],tipProps:{},getTooltipContainer:function(e){return e.parentNode}},t};const q=J}}]);

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.