Files
ai/charting_library/bundles/29.cdd7f1044cef7f3bb39b.js
2021-09-10 14:56:00 +00:00

4 lines
12 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{ASyk:function(t,e,n){t.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},R5JZ:function(t,e,n){"use strict";function r(t,e,n,r,o){function i(o){if(t>o.timeStamp)return;const i=o.target;void 0!==n&&null!==e&&null!==i&&i.ownerDocument===r&&(e.contains(i)||n(o))}return o.click&&r.addEventListener("click",i,!1),o.mouseDown&&r.addEventListener("mousedown",i,!1),o.touchEnd&&r.addEventListener("touchend",i,!1),o.touchStart&&r.addEventListener("touchstart",i,!1),()=>{r.removeEventListener("click",i,!1),r.removeEventListener("mousedown",i,!1),r.removeEventListener("touchend",i,!1),r.removeEventListener("touchstart",i,!1)}}n.d(e,"a",(function(){return r}))},iR1w:function(t,e,n){"use strict";var r=n("wx14");function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n("JX7q"),a=function(t,e){return t===e};var s=function(t,e){var n;void 0===e&&(e=a);var r,o=[],i=!1,s=function(t,n){return e(t,o[n])};return function(){for(var e=arguments.length,a=new Array(e),l=0;l<e;l++)a[l]=arguments[l];return i&&n===this&&a.length===o.length&&a.every(s)||(r=t.apply(this,a),i=!0,n=this,o=a),r}},l=n("q1tI");n("zLVn");n.d(e,"b",(function(){return x})),n.d(e,"a",(function(){return y}));var c="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function u(t){cancelAnimationFrame(t.id)}function f(t,e){var n=c();var r={id:requestAnimationFrame((function o(){c()-n>=e?t.call(null):r.id=requestAnimationFrame(o)}))};return r}var d=null;function h(t){if(void 0===t&&(t=!1),null===d||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?d="positive-descending":(e.scrollLeft=1,d=0===e.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(e),d}return d}var m=function(t,e){return t};function p(t){var e,n,a=t.getItemOffset,c=t.getEstimatedTotalSize,d=t.getItemSize,p=t.getOffsetForIndexAndAlignment,g=t.getStartIndexForOffset,S=t.getStopIndexForStartIndex,I=t.initInstanceProps,_=t.shouldResetStyleCacheOnItemSizeChange,x=t.validateProps;return n=e=function(t){function e(e){var n;return(n=t.call(this,e)||this)._instanceProps=I(n.props,Object(i.a)(Object(i.a)(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Object(i.a)(Object(i.a)(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=s((function(t,e,r,o){return n.props.onItemsRendered({overscanStartIndex:t,overscanStopIndex:e,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,
n._callOnScroll=s((function(t,e,r){return n.props.onScroll({scrollDirection:t,scrollOffset:e,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(t){var e,r=n.props,o=r.direction,i=r.itemSize,s=r.layout,l=n._getItemStyleCache(_&&i,_&&s,_&&o);if(l.hasOwnProperty(t))e=l[t];else{var c,u=a(n.props,t,n._instanceProps),f=d(n.props,t,n._instanceProps),h="horizontal"===o||"horizontal"===s;l[t]=((c={position:"absolute"})["rtl"===o?"right":"left"]=h?u:0,c.top=h?0:u,c.height=h?"100%":f,c.width=h?f:"100%",e=c)}return e},n._getItemStyleCache=void 0,n._getItemStyleCache=s((function(t,e,n){return{}})),n._onScrollHorizontal=function(t){var e=t.currentTarget,r=e.clientWidth,o=e.scrollLeft,i=e.scrollWidth;n.setState((function(t){if(t.scrollOffset===o)return null;var e=n.props.direction,a=o;if("rtl"===e)switch(h()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:t.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(t){var e=t.currentTarget,r=e.clientHeight,o=e.scrollHeight,i=e.scrollTop;n.setState((function(t){if(t.scrollOffset===i)return null;var e=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(t){var e=n.props.outerRef;n._outerRef=t,"function"==typeof e?e(t):null!=e&&"object"==typeof e&&e.hasOwnProperty("current")&&(e.current=t)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&u(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=f(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}o(e,t),e.getDerivedStateFromProps=function(t,e){return v(t,e),x(t),null};var n=e.prototype;return n.scrollTo=function(t){t=Math.max(0,t),this.setState((function(e){return e.scrollOffset===t?null:{scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},n.scrollToItem=function(t,e){void 0===e&&(e="auto");var n=this.props.itemCount,r=this.state.scrollOffset;t=Math.max(0,Math.min(t,n-1)),this.scrollTo(p(this.props,t,e,r,this._instanceProps))},n.componentDidMount=function(){var t=this.props,e=t.direction,n=t.initialScrollOffset,r=t.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===e||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},n.componentDidUpdate=function(){var t=this.props,e=t.direction,n=t.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===e||"horizontal"===n)if("rtl"===e)switch(h()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o
}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&u(this._resetIsScrollingTimeoutId)},n.render=function(){var t=this.props,e=t.children,n=t.className,o=t.direction,i=t.height,a=t.innerRef,s=t.innerElementType,u=t.innerTagName,f=t.itemCount,d=t.itemData,h=t.itemKey,p=void 0===h?m:h,v=t.layout,g=t.outerElementType,S=t.outerTagName,I=t.style,_=t.useIsScrolling,x=t.width,y=this.state.isScrolling,M="horizontal"===o||"horizontal"===v,O=M?this._onScrollHorizontal:this._onScrollVertical,b=this._getRangeToRender(),w=b[0],z=b[1],C=[];if(f>0)for(var R=w;R<=z;R++)C.push(Object(l.createElement)(e,{data:d,key:p(R,d),index:R,isScrolling:_?y:void 0,style:this._getItemStyle(R)}));var T=c(this.props,this._instanceProps);return Object(l.createElement)(g||S||"div",{className:n,onScroll:O,ref:this._outerRefSetter,style:Object(r.a)({position:"relative",height:i,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},I)},Object(l.createElement)(s||u||"div",{children:C,ref:a,style:{height:M?"100%":T,pointerEvents:y?"none":void 0,width:M?T:"100%"}}))},n._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var t=this._getRangeToRender(),e=t[0],n=t[1],r=t[2],o=t[3];this._callOnItemsRendered(e,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},n._getRangeToRender=function(){var t=this.props,e=t.itemCount,n=t.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,a=r.scrollOffset;if(0===e)return[0,0,0,0];var s=g(this.props,a,this._instanceProps),l=S(this.props,s,a,this._instanceProps),c=o&&"backward"!==i?1:Math.max(1,n),u=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,s-c),Math.max(0,Math.min(e-1,l+u)),s,l]},e}(l.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var v=function(t,e){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,e.instance},g=function(t,e,n){var r=t.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(e>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=e;l++){var c=r(l);o[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=e}return o[e]},S=function(t,e,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=g(t,i,e).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},I=function(t,e,n,r){for(var o=t.itemCount,i=1;n<o&&g(t,n,e).offset<r;)n+=i,i*=2;return S(t,e,Math.min(n,o-1),Math.floor(n/2),r)},_=function(t,e){var n=t.itemCount,r=e.itemMetadataMap,o=e.estimatedItemSize,i=e.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},x=p({getItemOffset:function(t,e,n){return g(t,e,n).offset},getItemSize:function(t,e,n){return n.itemMetadataMap[e].size},getEstimatedTotalSize:_,getOffsetForIndexAndAlignment:function(t,e,n,r,o){
var i=t.direction,a=t.height,s=t.layout,l=t.width,c="horizontal"===i||"horizontal"===s?l:a,u=g(t,e,o),f=_(t,o),d=Math.max(0,Math.min(f-c,u.offset)),h=Math.max(0,u.offset-c+u.size);switch("smart"===n&&(n=r>=h-c&&r<=d+c?"auto":"center"),n){case"start":return d;case"end":return h;case"center":return Math.round(h+(d-h)/2);case"auto":default:return r>=h&&r<=d?r:r<h?h:d}},getStartIndexForOffset:function(t,e,n){return function(t,e,n){var r=e.itemMetadataMap,o=e.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?S(t,e,o,0,n):I(t,e,Math.max(0,o),n)}(t,n,e)},getStopIndexForStartIndex:function(t,e,n,r){for(var o=t.direction,i=t.height,a=t.itemCount,s=t.layout,l=t.width,c="horizontal"===o||"horizontal"===s?l:i,u=g(t,e,r),f=n+c,d=u.offset+u.size,h=e;h<a-1&&d<f;)h++,d+=g(t,h,r).size;return h},initInstanceProps:function(t,e){var n={itemMetadataMap:{},estimatedItemSize:t.estimatedItemSize||50,lastMeasuredIndex:-1};return e.resetAfterIndex=function(t,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,t-1),e._getItemStyleCache(-1),r&&e.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){t.itemSize}}),y=p({getItemOffset:function(t,e){return e*t.itemSize},getItemSize:function(t,e){return t.itemSize},getEstimatedTotalSize:function(t){var e=t.itemCount;return t.itemSize*e},getOffsetForIndexAndAlignment:function(t,e,n,r){var o=t.direction,i=t.height,a=t.itemCount,s=t.itemSize,l=t.layout,c=t.width,u="horizontal"===o||"horizontal"===l?c:i,f=Math.max(0,a*s-u),d=Math.min(f,e*s),h=Math.max(0,e*s-u+s);switch("smart"===n&&(n=r>=h-u&&r<=d+u?"auto":"center"),n){case"start":return d;case"end":return h;case"center":var m=Math.round(h+(d-h)/2);return m<Math.ceil(u/2)?0:m>f+Math.floor(u/2)?f:m;case"auto":default:return r>=h&&r<=d?r:r<h?h:d}},getStartIndexForOffset:function(t,e){var n=t.itemCount,r=t.itemSize;return Math.max(0,Math.min(n-1,Math.floor(e/r)))},getStopIndexForStartIndex:function(t,e,n){var r=t.direction,o=t.height,i=t.itemCount,a=t.itemSize,s=t.layout,l=t.width,c=e*a,u="horizontal"===r||"horizontal"===s?l:o,f=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,e+f-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}})},ijHL:function(t,e,n){"use strict";function r(t){return i(t,a)}function o(t){return i(t,s)}function i(t,e){const n=Object.entries(t).filter(e),r={};for(const[o,i]of n)r[o]=i;return r}function a(t){const[e,n]=t;return 0===e.indexOf("data-")&&"string"==typeof n}function s(t){return 0===t[0].indexOf("aria-")}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}))},uhCe:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("ASyk");const o={SmallHeight:r["small-height-breakpoint"],TabletSmall:r["tablet-small-breakpoint"],TabletNormal:r["tablet-normal-breakpoint"]}}}]);