You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
16 KiB
1 line
16 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[57411],{31797:function(e,n,t){"use strict";t.d(n,{Z:function(){return v}});var r=t(59301),o=t(56762),i=t(92343),a=t(92310),c=t.n(a),l=t(36355),s=t(96865);var d=e=>{const{value:n,formatter:t,precision:o,decimalSeparator:i,groupSeparator:a="",prefixCls:c}=e;let l;if("function"==typeof t)l=t(n);else{const e=String(n),t=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(t&&"-"!==e){const e=t[1];let n=t[2]||"0",s=t[4]||"";n=n.replace(/\B(?=(\d{3})+(?!\d))/g,a),"number"==typeof o&&(s=s.padEnd(o,"0").slice(0,o>0?o:0)),s&&(s=`${i}${s}`),l=[r.createElement("span",{key:"int",className:`${c}-content-value-int`},e,n),s&&r.createElement("span",{key:"decimal",className:`${c}-content-value-decimal`},s)]}else l=e}return r.createElement("span",{className:`${c}-content-value`},l)},u=t(17313),p=t(83116),f=t(37613);const g=e=>{const{componentCls:n,marginXXS:t,padding:r,colorTextDescription:o,titleFontSize:i,colorTextHeading:a,contentFontSize:c,fontFamily:l}=e;return{[`${n}`]:Object.assign(Object.assign({},(0,u.Wf)(e)),{[`${n}-title`]:{marginBottom:t,color:o,fontSize:i},[`${n}-skeleton`]:{paddingTop:r},[`${n}-content`]:{color:a,fontSize:c,fontFamily:l,[`${n}-content-value`]:{display:"inline-block",direction:"ltr"},[`${n}-content-prefix, ${n}-content-suffix`]:{display:"inline-block"},[`${n}-content-prefix`]:{marginInlineEnd:t},[`${n}-content-suffix`]:{marginInlineStart:t}}})}};var m=(0,p.Z)("Statistic",(e=>{const n=(0,f.TS)(e,{});return[g(n)]}),(e=>{const{fontSizeHeading3:n,fontSize:t}=e;return{titleFontSize:t,contentFontSize:n}}));var h=e=>{const{prefixCls:n,className:t,rootClassName:o,style:i,valueStyle:a,value:u=0,title:p,valueRender:f,prefix:g,suffix:h,loading:b=!1,onMouseEnter:y,onMouseLeave:$,decimalSeparator:S=".",groupSeparator:v=","}=e,{getPrefixCls:w,direction:C,statistic:k}=r.useContext(l.E_),x=w("statistic",n),[E,I]=m(x),O=r.createElement(d,Object.assign({decimalSeparator:S,groupSeparator:v,prefixCls:x},e,{value:u})),D=c()(x,{[`${x}-rtl`]:"rtl"===C},null==k?void 0:k.className,t,o,I);return E(r.createElement("div",{className:D,style:Object.assign(Object.assign({},null==k?void 0:k.style),i),onMouseEnter:y,onMouseLeave:$},p&&r.createElement("div",{className:`${x}-title`},p),r.createElement(s.Z,{paragraph:!1,loading:b,className:`${x}-skeleton`},r.createElement("div",{style:a,className:`${x}-content`},g&&r.createElement("span",{className:`${x}-content-prefix`},g),f?f(O):O,h&&r.createElement("span",{className:`${x}-content-suffix`},h)))))};const b=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function y(e,n){const{format:t=""}=n,r=new Date(e).getTime(),o=Date.now();return function(e,n){let t=e;const r=/\[[^\]]*]/g,o=(n.match(r)||[]).map((e=>e.slice(1,-1))),i=n.replace(r,"[]"),a=b.reduce(((e,n)=>{let[r,o]=n;if(e.includes(r)){const n=Math.floor(t/o);return t-=n*o,e.replace(new RegExp(`${r}+`,"g"),(e=>{const t=e.length;return n.toString().padStart(t,"0")}))}return e}),i);let c=0;return a.replace(r,(()=>{const e=o[c];return c+=1,e}))}(Math.max(r-o,0),t)}const $=e=>{const{value:n,format:t="HH:mm:ss",onChange:a,onFinish:c}=e,l=(0,o.Z)(),s=r.useRef(null),d=()=>{const e=function(e){return new Date(e).getTime()}(n);e>=Date.now()&&(s.current=setInterval((()=>{l(),null==a||a(e-Date.now()),e<Date.now()&&(null==c||c(),s.current&&(clearInterval(s.current),s.current=null))}),33.333333333333336))};r.useEffect((()=>(d(),()=>{s.current&&(clearInterval(s.current),s.current=null)})),[n]);return r.createElement(h,Object.assign({},e,{valueRender:e=>(0,i.Tm)(e,{title:void 0}),formatter:(e,n)=>y(e,Object.assign(Object.assign({},n),{format:t}))}))};var S=r.memo($);h.Countdown=S;var v=h},78673:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var r=t(42141),o=t(92310),i=t.n(o),a=t(19973),c=t(51060),l=t(8295),s=t(62615),d=t(59301),u=t(71366),p=t(20287),f=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],g=d.forwardRef((function(e,n){var t,r=e.prefixCls,o=void 0===r?"rc-switch":r,g=e.className,m=e.checked,h=e.defaultChecked,b=e.disabled,y=e.loadingIcon,$=e.checkedChildren,S=e.unCheckedChildren,v=e.onClick,w=e.onChange,C=e.onKeyDown,k=(0,s.Z)(e,f),x=(0,u.Z)(!1,{value:m,defaultValue:h}),E=(0,l.Z)(x,2),I=E[0],O=E[1];function D(e,n){var t=I;return b||(O(t=e),null==w||w(t,n)),t}var M=i()(o,g,(t={},(0,c.Z)(t,"".concat(o,"-checked"),I),(0,c.Z)(t,"".concat(o,"-disabled"),b),t));return d.createElement("button",(0,a.Z)({},k,{type:"button",role:"switch","aria-checked":I,disabled:b,className:M,ref:n,onKeyDown:function(e){e.which===p.Z.LEFT?D(!1,e):e.which===p.Z.RIGHT&&D(!0,e),null==C||C(e)},onClick:function(e){var n=D(!I,e);null==v||v(n,e)}}),y,d.createElement("span",{className:"".concat(o,"-inner")},d.createElement("span",{className:"".concat(o,"-inner-checked")},$),d.createElement("span",{className:"".concat(o,"-inner-unchecked")},S)))}));g.displayName="Switch";var m=g,h=t(14088),b=t(36355),y=t(1684),$=t(19716),S=t(64993),v=t(17313),w=t(83116),C=t(37613);const k=e=>{const{componentCls:n,trackHeightSM:t,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:c}=e,l=`${n}-inner`;return{[n]:{[`&${n}-small`]:{minWidth:o,height:t,lineHeight:`${t}px`,[`${n}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c+2*r}px - ${2*a}px)`,marginInlineEnd:`calc(100% - ${c+2*r}px + ${2*a}px)`},[`${l}-unchecked`]:{marginTop:-t,marginInlineStart:0,marginInlineEnd:0}},[`${n}-handle`]:{width:c,height:c},[`${n}-loading-icon`]:{top:(c-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${n}-checked`]:{[`${n}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c+2*r}px + ${2*a}px)`,marginInlineEnd:`calc(-100% + ${c+2*r}px - ${2*a}px)`}},[`${n}-handle`]:{insetInlineStart:`calc(100% - ${c+r}px)`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${n}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},x=e=>{const{componentCls:n,handleSize:t}=e;return{[n]:{[`${n}-loading-icon${e.iconCls}`]:{position:"relative",top:(t-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${n}-checked ${n}-loading-icon`]:{color:e.switchColor}}}},E=e=>{const{componentCls:n,motion:t,trackPadding:r,handleBg:o,handleShadow:i,handleSize:a}=e,c=`${n}-handle`;return{[n]:{[c]:{position:"absolute",top:r,insetInlineStart:r,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:a/2,boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${n}-checked ${c}`]:{insetInlineStart:`calc(100% - ${a+r}px)`},[`&:not(${n}-disabled):active`]:t?{[`${c}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${n}-checked ${c}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},I=e=>{const{componentCls:n,trackHeight:t,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a}=e,c=`${n}-inner`;return{[n]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${a+2*r}px - ${2*i}px)`,marginInlineEnd:`calc(100% - ${a+2*r}px + ${2*i}px)`},[`${c}-unchecked`]:{marginTop:-t,marginInlineStart:0,marginInlineEnd:0}},[`&${n}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${a+2*r}px + ${2*i}px)`,marginInlineEnd:`calc(-100% + ${a+2*r}px - ${2*i}px)`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:2*r,marginInlineEnd:2*-r}},[`&${n}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:2*-r,marginInlineEnd:2*r}}}}}},O=e=>{const{componentCls:n,trackHeight:t,trackMinWidth:r}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,v.Wf)(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:t,lineHeight:`${t}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${n}-disabled)`]:{background:e.colorTextTertiary}}),(0,v.Qy)(e)),{[`&${n}-checked`]:{background:e.switchColor,[`&:hover:not(${n}-disabled)`]:{background:e.colorPrimaryHover}},[`&${n}-loading, &${n}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${n}-rtl`]:{direction:"rtl"}})}};var D=(0,w.Z)("Switch",(e=>{const n=(0,C.TS)(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[O(n),I(n),E(n),x(n),k(n)]}),(e=>{const{fontSize:n,lineHeight:t,controlHeight:r,colorWhite:o}=e,i=n*t,a=r/2,c=i-4,l=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*c+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:o,handleSize:c,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new S.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}})),M=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t};const j=d.forwardRef(((e,n)=>{const{prefixCls:t,size:o,disabled:a,loading:c,className:l,rootClassName:s,style:u}=e,p=M(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:f,direction:g,switch:S}=d.useContext(b.E_),v=d.useContext(y.Z),w=(null!=a?a:v)||c,C=f("switch",t),k=d.createElement("div",{className:`${C}-handle`},c&&d.createElement(r.Z,{className:`${C}-loading-icon`})),[x,E]=D(C),I=(0,$.Z)(o),O=i()(null==S?void 0:S.className,{[`${C}-small`]:"small"===I,[`${C}-loading`]:c,[`${C}-rtl`]:"rtl"===g},l,s,E),j=Object.assign(Object.assign({},null==S?void 0:S.style),u);return x(d.createElement(h.Z,{component:"Switch"},d.createElement(m,Object.assign({},p,{prefixCls:C,className:O,style:j,disabled:w,ref:n,loadingIcon:k}))))}));j.__ANT_SWITCH=!0;var P=j},25769:function(e,n,t){"use strict";var r=t(98040),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,n){var t,i,a,c,l,s,d=!1;n||(n={}),t=n.debug||!1;try{if(a=r(),c=document.createRange(),l=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(r){if(r.stopPropagation(),n.format)if(r.preventDefault(),void 0===r.clipboardData){t&&console.warn("unable to use e.clipboardData"),t&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[n.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(n.format,e);n.onCopy&&(r.preventDefault(),n.onCopy(r.clipboardData))})),document.body.appendChild(s),c.selectNodeContents(s),l.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");d=!0}catch(r){t&&console.error("unable to copy using execCommand: ",r),t&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",e),n.onCopy&&n.onCopy(window.clipboardData),d=!0}catch(r){t&&console.error("unable to copy using clipboardData: ",r),t&&console.error("falling back to prompt"),i=function(e){var n=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,n)}("message"in n?n.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(c):l.removeAllRanges()),s&&document.body.removeChild(s),a()}return d}},83145:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CopyToClipboard=void 0;var r=i(t(59301)),o=i(t(25769));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function l(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function s(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function d(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,n){return!n||"object"!==a(n)&&"function"!=typeof n?f(e):n}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,n){return g=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},g(e,n)}function m(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var h=function(e){function n(){var e,t;s(this,n);for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return m(f(t=u(this,(e=p(n)).call.apply(e,[this].concat(a)))),"onClick",(function(e){var n=t.props,i=n.text,a=n.onCopy,c=n.children,l=n.options,s=r.default.Children.only(c),d=(0,o.default)(i,l);a&&a(i,d),s&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(e)})),t}var t,i,a;return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&g(e,n)}(n,e),t=n,i=[{key:"render",value:function(){var e=this.props,n=(e.text,e.onCopy,e.options,e.children),t=l(e,["text","onCopy","options","children"]),o=r.default.Children.only(n);return r.default.cloneElement(o,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(t,!0).forEach((function(n){m(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(t).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},t,{onClick:this.onClick}))}}],i&&d(t.prototype,i),a&&d(t,a),n}(r.default.PureComponent);n.CopyToClipboard=h,m(h,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(e,n,t){"use strict";var r=t(83145).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},98040:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var n=document.activeElement,t=[],r=0;r<e.rangeCount;r++)t.push(e.getRangeAt(r));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||t.forEach((function(n){e.addRange(n)})),n&&n.focus()}}}}]); |