Cube('pandav:/com/counterV2/1.0.6/Counter.jsx',['pandav:/npm/react/17.0.2','pandav:/com/tween-animation/1.0.0','pandav:/npm/lodash/4.6.1','pandav:/com/cube-chart/0.0.1/TextOverflow'],function(a,b,c){var d=Math.abs;function e(a,b){return k(a)||j(a,b)||g(a,b)||f()}function f(){throw new TypeError('Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}function g(a,b){if(a){if('string'==typeof a)return h(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return'Object'===c&&a.constructor&&(c=a.constructor.name),'Map'===c||'Set'===c?Array.from(a):'Arguments'===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?h(a,b):void 0}}function h(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c<b;c++)d[c]=a[c];return d}function j(b,c){var d=null==b?null:'undefined'!=typeof Symbol&&b[Symbol.iterator]||b['@@iterator'];if(null!=d){var g,h,j,k,l=[],a=!0,m=!1;try{if(j=(d=d.call(b)).next,0===c){if(Object(d)!==d)return;a=!1}else for(;!(a=(g=j.call(d)).done)&&(l.push(g.value),l.length!==c);a=!0);}catch(a){m=!0,h=a}finally{try{if(!a&&null!=d.return&&(k=d.return(),Object(k)!==k))return}finally{if(m)throw h}}return l}}function k(a){if(Array.isArray(a))return a}var l=c('pandav:/npm/react/17.0.2'),m=c('pandav:/com/tween-animation/1.0.0'),n=c('pandav:/npm/lodash/4.6.1'),i=c('pandav:/com/cube-chart/0.0.1/TextOverflow'),o=function(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,e=a.toFixed(c),f=e.split('.'),g=f[0],h=f[1];0<d&&g.length<d&&(g=Array(d-g.length+1).join(0)+g);var i=[],j=h?h.split(''):void 0,k=g.split('');return k.forEach(function(a,c){!(g.length-c-1)||(g.length-c-1)%b?i.push(a):(i.push(a),i.push('\u5206\u9694\u7B26'))}),{intArray:i,pointArray:j}},p=function(a){for(var b=a.config,c=a.value,d=a.preValue,e=b.prefixConfig,f=b.numberConfig,g=b.suffixConfig,h=f.dataRangConfig,j=null,k=0;k<h.length;k++){var m=null===h[k].valueRange.min?-1/0:+h[k].valueRange.min,n=null===h[k].valueRange.max?1/0:+h[k].valueRange.max;if(c>=m&&c<n){j=h[k].textStyle;break}}var o=e.numberStyle?j:e.textStyle,p=g.numberStyle?j:g.textStyle;return l.createElement('div',{style:{display:'flex'}},o&&e.support&&!!e.content&&l.createElement('span',{style:{display:'inline-flex',alignItems:'center',color:o.color,fontSize:o.fontSize,fontFamily:o.fontFamily,letterSpacing:o.letterSpacing,fontWeight:o.fontWeight,fontStyle:o.italic,transform:'translate('.concat(e.offsetConfig.x,'px, ').concat(e.offsetConfig.y,'px)')}},l.createElement('span',null,e.content)),l.createElement(q,{config:f,value:c,preValue:d.current}),p&&g.support&&!!g.content&&l.createElement('span',{style:{display:'inline-flex',alignItems:'center',color:p.color,fontSize:p.fontSize,fontFamily:p.fontFamily,letterSpacing:p.letterSpacing,fontWeight:p.fontWeight,fontStyle:p.italic,textShadow:g.shadow.show?''.concat(g.shadow.hShadow,'px ').concat(g.shadow.vShadow,'px ').concat(g.shadow.blur,'px ').concat(g.shadow.color):'none',transform:'translate('.concat(g.offsetConfig.x,'px, ').concat(g.offsetConfig.y,'px)')}},l.createElement('span',null,g.content)))},q=function(a){var b=Math.floor,c=a.config,e=a.value,f=a.preValue,g=c.animationConfig,h=c.formateConfig,i=h.splitConfig,j=h.decimalConfig,k=h.zeroize,m=null;return'none'===g.animationType&&(m=o(d(e),i.show?i.splitCount:1/0,j.count,b(k))),'none'===g.animationType&&m?l.createElement(t,{value:e,config:c,currentValue:e,showValue:m}):'scroll'===g.animationType?l.createElement(u,{value:e,preValue:f,config:c}):l.createElement(v,{value:e,preValue:f,config:c})},r=l.memo(function(a){var b=a.symbol,c=a.config,d={image:c.positiveImage,offsetConfig:c.positiveOffsetConfig,sizeConfig:c.positiveSizeConfig};return'+'!==b&&(d='-'===b?{image:c.negativeImage,offsetConfig:c.negativeOffsetConfig,sizeConfig:c.negativeSizeConfig}:{image:c.equalImage,offsetConfig:c.equalOffsetConfig,sizeConfig:c.equalSizeConfig}),c.show||'-'===b?l.createElement('div',{style:{display:'inline-block',background:c.show&&d.image?'url('.concat(d.image,')  0% 0% / 100% 100% no-repeat'):'none',width:c.show&&d.image?d.sizeConfig.width:'auto',height:c.show&&d.image?d.sizeConfig.height:'100%',transform:c.show?'translate('.concat(d.image?d.offsetConfig.x:0,'px, ').concat(d.image?d.offsetConfig.y:0,'px)'):'none'}},c.show&&d.image?'':b):null}),s=l.memo(function(a){var b=a.value,c=a.sizeConfig,d=a.animationConfig,f=l.useState(0),g=e(f,2),h=g[0],i=g[1],j=l.useRef(0),k=l.useRef(null),n=l.useRef(null);l.useEffect(function(){o()},[b,c.height]),l.useEffect(function(){j.current=b},[b]);var o=function(){var b={value:0};p(),k.current=m.createAnimation(),n.current=k.current.startAnimation(Object.assign({},b)),n.current.set(b),n.current=n.current.to({value:+a.value},1e3*d.time,Animation.Linear,1),n.current.onUpdate(function(a){i(a.value)})},p=function(){n.current&&n.current.destroy(),k.current&&k.current.endAnimation(),n.current=null,k.current=null};return l.createElement('div',{style:{position:'absolute',left:0,top:0,display:'inline-block',width:c.width,transform:'translate('.concat(0,'px, ',h*-c.height,'px)')}},[0,1,2,3,4,5,6,7,8,9].map(function(a){return l.createElement('div',{key:a,style:{width:c.width,height:c.height,display:'inline-flex',justifyContent:'center',lineHeight:''.concat(c.height,'px')}},a)}))}),t=function(a){for(var b=a.config,c=a.value,d=a.currentValue,e=a.showValue,f=b.dataRangConfig,g=b.formateConfig,h=b.backgroundConfig,j=b.formateSymbol,k=b.animationConfig,m=b.layoutConfig,n=g.decimalConfig,o=g.splitConfig,p=e.intArray,q=e.pointArray,t=m.sizeConfig,u=m.spacingConfig,v=m.fixWidthSwitch,w=m.fixWidth,x=null,y=0;y<f.length;y++){var z=null===f[y].valueRange.min?-1/0:+f[y].valueRange.min,A=null===f[y].valueRange.max?1/0:+f[y].valueRange.max;if(c>=z&&c<A){x=f[y];break}}return x?l.createElement('div',{style:{display:'inline-flex',alignItems:'center',color:x.textStyle.color,fontSize:x.textStyle.fontSize,fontFamily:x.textStyle.fontFamily,fontWeight:x.textStyle.fontWeight,fontStyle:x.textStyle.italic,textShadow:x.shadowConfig.show?''.concat(x.shadowConfig.textShadow.hShadow,'px ').concat(x.shadowConfig.textShadow.vShadow,'px ').concat(x.shadowConfig.textShadow.blur,'px ').concat(x.shadowConfig.textShadow.color):'none'}},l.createElement(r,{symbol:0<d?'+':0>d?'-':'',config:j}),l.createElement('div',{style:{display:'inline-flex',alignItems:'center',justifyContent:v?'space-between':'flex-start',minWidth:v?w:'auto'}},p.map(function(a,b){return console.log('object :>> ',a),l.createElement('span',{key:'int_'+(p.length-b),style:{position:'relative',display:'inline-flex',justifyContent:'center',fontFamily:'\u5206\u9694\u7B26'===a&&'default'!=o.style?o.fontFamily:'inherit',width:'\u5206\u9694\u7B26'!==a&&t.width?t.width:'auto',height:'\u5206\u9694\u7B26'!==a&&t.height?t.height:'auto',lineHeight:t.height?''.concat(t.height,'px'):'unset',marginRight:'\u5206\u9694\u7B26'===a?o.spacingConfig.right:u.right,marginLeft:'\u5206\u9694\u7B26'===a?o.spacingConfig.left:u.left,background:'\u5206\u9694\u7B26'!==a&&h.show&&h.url?'url(\''.concat(h.url,'\') 0% 0% / 100% 100% no-repeat'):'none',overflowY:'scroll'===k.animationType?'hidden':'none'}},'\u5206\u9694\u7B26'===a?'default'!=u.style&&u.separator?u.separator:',':'scroll'===k.animationType?l.createElement(s,{value:a,sizeConfig:t,animationConfig:k}):a)})),q&&l.createElement('span',{style:{display:'inline-block',fontSize:'default'===n.style?'inherit':n.fontSize,marginRight:n.pointSpacingConfig.right,marginLeft:n.pointSpacingConfig.left+('default'===n.style?0:n.offsetConfig.x),transform:'translateY('.concat('default'===n.style?0:n.offsetConfig.y,'px)'),height:t.height?t.height:'auto',lineHeight:t.height?''.concat(t.height,'px'):'unset'}},'.'),q&&q.map(function(a,b){return l.createElement('span',{key:'point_'+b,style:{position:'relative',display:'inline-flex',justifyContent:'center',fontSize:'default'===n.style?'inherit':n.fontSize,marginRight:'default'===n.style?u.right:n.numberSpacingConfig.right,marginLeft:'default'===n.style?u.left:n.numberSpacingConfig.left,width:t.width?t.width:'auto',height:t.height?t.height:'auto',lineHeight:t.height?''.concat(t.height,'px'):'unset',background:h.show&&h.url?'url(\''.concat(h.url,'\') 0% 0% / 100% 100% no-repeat'):'none',overflowY:'scroll'===k.animationType?'hidden':'none'}},'scroll'===k.animationType?l.createElement(s,{value:a,sizeConfig:t,animationConfig:k}):l.createElement('span',{style:{transform:'translateY('.concat('default'===n.style?0:n.offsetConfig.y,'px)')}},a))})):null},u=l.memo(function(a){var b=a.value,c=a.config,f=c.animationConfig,g=c.formateConfig,h=g.decimalConfig,i=g.splitConfig,j=g.zeroize,k=l.useRef(0),m=l.useRef(0),n=l.useRef(!1),p=l.useState(0),q=e(p,2),r=q[0],s=q[1],u=l.useRef(null),v=function(){w();var a=f.simulateGetDataTimes;m.current+=1,s(function(c){return c+(b-c)/a}),1<a&&(u.current=setInterval(function(){k.current+=1,s(function(c){return c+(b-c)/(a-k.current+1)}),k.current>=a&&(k.current=0,w())},1e3*(f.simulateGetDataInterval/(a-1))))},w=function(){k.current=0,u.current&&clearInterval(u.current),u.current=null};l.useEffect(function(){return!n.current&&f.simulateGetData?v():s(b),function(){w()}},[b,JSON.stringify(f)]),l.useEffect(function(){n.current=!1,s(.5*b),f.simulateGetData?v():s(b)},[]);var x=o(d(r),i.show?i.splitCount:1/0,h.count,j);return l.createElement(t,{value:r,config:c,showValue:x})}),v=l.memo(function(a){var b=a.value,c=a.config,f=c.animationConfig,g=c.formateConfig,h=g.decimalConfig,i=g.splitConfig,j=g.zeroize,k=l.useRef(0),n=l.useRef(0),p=l.useRef(0),q=l.useRef(0),r=l.useRef(0),s=l.useState(0),u=e(s,2),v=u[0],w=u[1],x=l.useRef(!1),y=l.useRef(null),z=l.useRef(null),A=function(){D(),w(function(a){return k.current=a,a})},B=function(a){p.current=setInterval(function(){k.current=b*f.startPercent,w(k.current),C(a)},1e3*f.animationInterval)},C=function(a){var b={value:q.current?q.current:k.current};D(),y.current=m.createAnimation(),z.current=y.current.startAnimation(Object.assign({},b)),z.current.set(b),z.current=z.current.to({value:a},1e3*f.time,Animation.Linear,1),z.current.onUpdate(function(a){w(a.value)})},D=function(){z.current&&z.current.destroy(),y.current&&y.current.endAnimation(),z.current=null,y.current=null},E=function(){n.current&&clearInterval(n.current);var a=f.simulateGetDataTimes;r.current+=1;var c=k.current+(b-k.current)/a;C(c),q.current=c,1<a&&(n.current=setInterval(function(){r.current+=1;var c=(b-k.current)/(a-r.current+1);C(k.current+c),q.current=c+k.current,r.current>=a&&(r.current=0,q.current=0,clearInterval(n.current))},1e3*(f.simulateGetDataInterval/(a-1))))},F=function(){w(function(a){return k.current=a,a}),r.current=0,n.current&&clearInterval(n.current),n.current=null,p.current&&clearInterval(p.current),p.current=null};l.useEffect(function(){return x.current||(k.current=b*f.startPercent,f.simulateGetData?E():(C(b),f.animationInterval&&B(b))),function(){A(),F()}},[b,JSON.stringify(f)]);var G=o(d(v),i.show?i.splitCount:1/0,h.count,j);return l.createElement(t,{value:b,config:c,currentValue:v,showValue:G})});return a.exports=function(a){var b=a.config,c=b.countConfig,d=b.globleConfig,e=b.interaction,f=a.data,g=a.emit,h=d.titlePostion,j=d.alignment,k=d.titleConfig,m=k.textOverflow,o=k.speed,q=k.shadow,r=q.color,s=q.vShadow,t=q.hShadow,u=q.blur,v=l.useRef(0),w=f&&f[0]?n.assign(n.assign({},f[0]),{},{suffix:f[0].suffix,prefix:f[0].prefix,value:f[0].value&&!isNaN(+f[0].value)?+f[0].value:0}):{value:0};l.useEffect(function(){v.current=w?w.value:0});var x={左对齐:'\u6807\u9898\u5728\u4E0A'===h||'\u6807\u9898\u5728\u4E0B'===h?'center':'\u6807\u9898\u5728\u5DE6'===h?'flex-start':'flex-end',右对齐:'\u6807\u9898\u5728\u4E0A'===h||'\u6807\u9898\u5728\u4E0B'===h?'center':'\u6807\u9898\u5728\u5DE6'===h?'flex-end':'flex-start',居中:'center',两边对齐:'\u6807\u9898\u5728\u4E0A'===h||'\u6807\u9898\u5728\u4E0B'===h?'center':'space-between'},y={左对齐:'\u6807\u9898\u5728\u4E0A'===h||'\u6807\u9898\u5728\u4E0B'===h?'flex-start':'center',右对齐:'\u6807\u9898\u5728\u4E0A'===h||'\u6807\u9898\u5728\u4E0B'===h?'flex-end':'center',居中:'center',两边对齐:'center'};return l.createElement('div',{style:{width:'100%',height:'100%',display:'flex',flexDirection:{标题在上:'column',标题在下:'column-reverse',标题在左:'row',标题在右:'row-reverse'}[h],justifyContent:x[j],alignItems:y[j]},onClick:function(a){f&&f[0]&&g(a,f[0])}('click')},k.show&&l.createElement(i,{type:m,speed:o,value:w&&w.name?w.name:k.name,style:n.assign(n.assign(n.assign({},k.textStyle),{},{width:'\u6807\u9898\u5728\u5DE6'==h||'\u6807\u9898\u5728\u53F3'==h?'auto':'100%',flexBasis:'content',fontWeight:k.textStyle.fontWeight,fontStyle:k.textStyle.italic,transform:'translate('.concat(k.offsetConfig.x,'px, ').concat(k.offsetConfig.y,'px)')},'marquee'==m?{display:'flex',justifyContent:y[j]}:{textAlign:{左对齐:'left',居中对齐:'center',右对齐:'right',两边对齐:'left'}[j]}),{},{filter:'drop-shadow('.concat(t,'px ').concat(s,'px ').concat(u,'px ').concat(r,')')})}),l.createElement(p,{config:c,value:w.value,preValue:v}))},a.exports});