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
39 KiB
1 line
39 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[41224,43428],{80205:function(e,t,n){n.d(t,{Z:function(){return s}});var o=n(5891),r=n(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},i=n(88853),l=function(e,t){return r.createElement(i.Z,(0,o.Z)({},e,{ref:t,icon:a}))};var s=r.forwardRef(l)},27666:function(e,t,n){var o=n(26390),r=n(62829);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,o.Z)(n))},a=function(){if(null==t){for(var e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];t=(0,r.Z)(n(o))}};return a.cancel=()=>{r.Z.cancel(t),t=null},a}},88522:function(e,t,n){var o=n(92310),r=n.n(o),a=n(10572),i=n(84445),l=n(59301),s=n(53487),c=n(92343),d=n(36355),u=n(57809);const{Option:h}=u.default;function f(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const m=(e,t)=>{const{prefixCls:n,className:o,popupClassName:s,dropdownClassName:m,children:p,dataSource:g}=e,v=(0,a.Z)(p);let E;1===v.length&&(0,c.l$)(v[0])&&!f(v[0])&&([E]=v);const C=E?()=>E:void 0;let w;w=v.length&&f(v[0])?p:g?g.map((e=>{if((0,c.l$)(e))return e;switch(typeof e){case"string":return l.createElement(h,{key:e,value:e},e);case"object":{const{value:t}=e;return l.createElement(h,{key:t,value:t},e.text)}default:return}})):[];const{getPrefixCls:b}=l.useContext(d.E_),x=b("select",n);return l.createElement(u.default,Object.assign({ref:t,suffixIcon:null},(0,i.Z)(e,["dataSource","dropdownClassName"]),{prefixCls:x,popupClassName:s||m,className:r()(`${x}-auto-complete`,o),mode:u.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:C}),w)},p=l.forwardRef(m),g=(0,s.Z)(p);p.Option=h,p._InternalPanelDoNotUseOrYouWillBeFired=g,t.Z=p},77808:function(e,t,n){n.d(t,{Z:function(){return M}});var o=n(5891),r=n(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},i=n(88853),l=function(e,t){return r.createElement(i.Z,(0,o.Z)({},e,{ref:t,icon:a}))};var s=r.forwardRef(l),c=n(92310),d=n.n(c),u=n(59464),h=n(84445),f=n(13845),m=n(92343),p=n(68031),g=n(27666),v=n(36355),E=n(83116),C=n(37613),w=n(17313);const b=e=>{const{componentCls:t,backTopFontSize:n,backTopSize:o,zIndexPopup:r}=e;return{[t]:Object.assign(Object.assign({},(0,w.Wf)(e)),{position:"fixed",insetInlineEnd:e.backTopInlineEnd,insetBlockEnd:e.backTopBlockEnd,zIndex:r,width:40,height:40,cursor:"pointer","&:empty":{display:"none"},[`${t}-content`]:{width:o,height:o,overflow:"hidden",color:e.backTopColor,textAlign:"center",backgroundColor:e.backTopBackground,borderRadius:o,transition:`all ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.backTopHoverBackground,transition:`all ${e.motionDurationMid}`}},[`${t}-icon`]:{fontSize:n,lineHeight:`${o}px`}})}},x=e=>{const{componentCls:t}=e;return{[`@media (max-width: ${e.screenMD}px)`]:{[t]:{insetInlineEnd:e.backTopInlineEndMD}},[`@media (max-width: ${e.screenXS}px)`]:{[t]:{insetInlineEnd:e.backTopInlineEndXS}}}};var y=(0,E.Z)("BackTop",(e=>{const{fontSizeHeading3:t,colorTextDescription:n,colorTextLightSolid:o,colorText:r,controlHeightLG:a}=e,i=(0,C.TS)(e,{backTopBackground:n,backTopColor:o,backTopHoverBackground:r,backTopFontSize:t,backTopSize:a,backTopBlockEnd:1.25*a,backTopInlineEnd:2.5*a,backTopInlineEndMD:1.5*a,backTopInlineEndXS:.5*a});return[b(i),x(i)]}),(e=>({zIndexPopup:e.zIndexBase+10})));var M=e=>{const{prefixCls:t,className:n,rootClassName:o,visibilityHeight:a=400,target:i,onClick:l,duration:c=450}=e,[E,C]=r.useState(0===a),w=r.useRef(null),b=()=>w.current&&w.current.ownerDocument?w.current.ownerDocument:window,x=(0,g.Z)((e=>{const t=(0,f.Z)(e.target,!0);C(t>=a)}));r.useEffect((()=>{const e=(i||b)();return x({target:e}),null==e||e.addEventListener("scroll",x),()=>{x.cancel(),null==e||e.removeEventListener("scroll",x)}}),[i]);const{getPrefixCls:M,direction:S}=r.useContext(v.E_),k=M("back-top",t),N=M(),[$,R]=y(k),I=d()(R,k,{[`${k}-rtl`]:"rtl"===S},n,o),O=(0,h.Z)(e,["prefixCls","className","rootClassName","children","visibilityHeight","target"]),P=r.createElement("div",{className:`${k}-content`},r.createElement("div",{className:`${k}-icon`},r.createElement(s,null)));return $(r.createElement("div",Object.assign({},O,{className:I,onClick:e=>{(0,p.Z)(0,{getContainer:i||b,duration:c}),null==l||l(e)},ref:w}),r.createElement(u.default,{visible:E,motionName:`${N}-fade`},(t=>{let{className:n}=t;return(0,m.Tm)(e.children||P,(e=>{let{className:t}=e;return{className:d()(n,t)}}))}))))}},28103:function(e,t,n){n.d(t,{Z:function(){return f}});var o=n(92310),r=n.n(o),a=n(59301),i=n(36355),l=n(17313),s=n(83116),c=n(37613);const d=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:r,textPaddingInline:a,orientationMargin:i,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,l.Wf)(e)),{borderBlockStart:`${r}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*i+"%"},"&::after":{width:100-100*i+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*i+"%"},"&::after":{width:100*i+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var u=(0,s.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};var f=e=>{const{getPrefixCls:t,direction:n,divider:o}=a.useContext(i.E_),{prefixCls:l,type:s="horizontal",orientation:c="center",orientationMargin:d,className:f,rootClassName:m,children:p,dashed:g,plain:v,style:E}=e,C=h(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),w=t("divider",l),[b,x]=u(w),y=c.length>0?`-${c}`:c,M=!!p,S="left"===c&&null!=d,k="right"===c&&null!=d,N=r()(w,null==o?void 0:o.className,x,`${w}-${s}`,{[`${w}-with-text`]:M,[`${w}-with-text${y}`]:M,[`${w}-dashed`]:!!g,[`${w}-plain`]:!!v,[`${w}-rtl`]:"rtl"===n,[`${w}-no-default-orientation-margin-left`]:S,[`${w}-no-default-orientation-margin-right`]:k},f,m),$=a.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),R=Object.assign(Object.assign({},S&&{marginLeft:$}),k&&{marginRight:$});return b(a.createElement("div",Object.assign({className:N,style:Object.assign(Object.assign({},null==o?void 0:o.style),E)},C,{role:"separator"}),p&&"vertical"!==s&&a.createElement("span",{className:`${w}-inner-text`,style:R},p)))}},43428:function(e,t,n){n.d(t,{Z:function(){return H}});var o=n(92310),r=n.n(o),a=n(57259),i=n(29043),l=n(43403),s=n(60982),c=n(59301),d=c.createContext(null),u=c.createContext({}),h=d,f=n(80962),m=n(5891),p=n(59464),g=n(13981),v=n(99995),E=n(73270);var C=function(e){var t=e.prefixCls,n=e.className,o=e.style,i=e.children,l=e.containerRef,s=e.id,d={onMouseEnter:e.onMouseEnter,onMouseOver:e.onMouseOver,onMouseLeave:e.onMouseLeave,onClick:e.onClick,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp},h=c.useContext(u).panel,f=(0,E.useComposeRef)(h,l);return c.createElement(c.Fragment,null,c.createElement("div",(0,m.Z)({id:s,className:r()("".concat(t,"-content"),n),style:(0,a.Z)({},o),"aria-modal":"true",role:"dialog",ref:f},d),i))},w=n(95036);function b(e){return"string"==typeof e&&String(Number(e))===e?((0,w.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var x={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function y(e,t){var n,o,l,s,d=e.prefixCls,u=e.open,E=e.placement,w=e.inline,y=e.push,M=e.forceRender,S=e.autoFocus,k=e.keyboard,N=e.rootClassName,$=e.rootStyle,R=e.zIndex,I=e.className,O=e.id,P=e.style,z=e.motion,A=e.width,T=e.height,D=e.children,B=e.contentWrapperStyle,_=e.mask,Z=e.maskClosable,L=e.maskMotion,H=e.maskClassName,F=e.maskStyle,j=e.afterOpenChange,U=e.onClose,W=e.onMouseEnter,Y=e.onMouseOver,X=e.onMouseLeave,Q=e.onClick,K=e.onKeyDown,V=e.onKeyUp,G=c.useRef(),J=c.useRef(),q=c.useRef();c.useImperativeHandle(t,(function(){return G.current}));c.useEffect((function(){var e;u&&S&&(null===(e=G.current)||void 0===e||e.focus({preventScroll:!0}))}),[u]);var ee=c.useState(!1),te=(0,i.Z)(ee,2),ne=te[0],oe=te[1],re=c.useContext(h),ae=null!==(n=null!==(o=null===(l=!1===y?{distance:0}:!0===y?{}:y||{})||void 0===l?void 0:l.distance)&&void 0!==o?o:null==re?void 0:re.pushDistance)&&void 0!==n?n:180,ie=c.useMemo((function(){return{pushDistance:ae,push:function(){oe(!0)},pull:function(){oe(!1)}}}),[ae]);c.useEffect((function(){var e,t;u?null==re||null===(e=re.push)||void 0===e||e.call(re):null==re||null===(t=re.pull)||void 0===t||t.call(re)}),[u]),c.useEffect((function(){return function(){var e;null==re||null===(e=re.pull)||void 0===e||e.call(re)}}),[]);var le=_&&c.createElement(p.default,(0,m.Z)({key:"mask"},L,{visible:u}),(function(e,t){var n=e.className,o=e.style;return c.createElement("div",{className:r()("".concat(d,"-mask"),n,H),style:(0,a.Z)((0,a.Z)({},o),F),onClick:Z&&u?U:void 0,ref:t})})),se="function"==typeof z?z(E):z,ce={};if(ne&&ae)switch(E){case"top":ce.transform="translateY(".concat(ae,"px)");break;case"bottom":ce.transform="translateY(".concat(-ae,"px)");break;case"left":ce.transform="translateX(".concat(ae,"px)");break;default:ce.transform="translateX(".concat(-ae,"px)")}"left"===E||"right"===E?ce.width=b(A):ce.height=b(T);var de={onMouseEnter:W,onMouseOver:Y,onMouseLeave:X,onClick:Q,onKeyDown:K,onKeyUp:V},ue=c.createElement(p.default,(0,m.Z)({key:"panel"},se,{visible:u,forceRender:M,onVisibleChanged:function(e){null==j||j(e)},removeOnLeave:!1,leavedClassName:"".concat(d,"-content-wrapper-hidden")}),(function(t,n){var o=t.className,i=t.style;return c.createElement("div",(0,m.Z)({className:r()("".concat(d,"-content-wrapper"),o),style:(0,a.Z)((0,a.Z)((0,a.Z)({},ce),i),B)},(0,v.Z)(e,{data:!0})),c.createElement(C,(0,m.Z)({id:O,containerRef:n,prefixCls:d,className:I,style:P},de),D))})),he=(0,a.Z)({},$);return R&&(he.zIndex=R),c.createElement(h.Provider,{value:ie},c.createElement("div",{className:r()(d,"".concat(d,"-").concat(E),N,(s={},(0,f.Z)(s,"".concat(d,"-open"),u),(0,f.Z)(s,"".concat(d,"-inline"),w),s)),style:he,tabIndex:-1,ref:G,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case g.Z.TAB:var o;if(t===g.Z.TAB)if(n||document.activeElement!==q.current){if(n&&document.activeElement===J.current){var r;null===(r=q.current)||void 0===r||r.focus({preventScroll:!0})}}else null===(o=J.current)||void 0===o||o.focus({preventScroll:!0});break;case g.Z.ESC:U&&k&&(e.stopPropagation(),U(e))}}},le,c.createElement("div",{tabIndex:0,ref:J,style:x,"aria-hidden":"true","data-sentinel":"start"}),ue,c.createElement("div",{tabIndex:0,ref:q,style:x,"aria-hidden":"true","data-sentinel":"end"})))}var M=c.forwardRef(y);var S=function(e){var t=e.open,n=void 0!==t&&t,o=e.prefixCls,r=void 0===o?"rc-drawer":o,d=e.placement,h=void 0===d?"right":d,f=e.autoFocus,m=void 0===f||f,p=e.keyboard,g=void 0===p||p,v=e.width,E=void 0===v?378:v,C=e.mask,w=void 0===C||C,b=e.maskClosable,x=void 0===b||b,y=e.getContainer,S=e.forceRender,k=e.afterOpenChange,N=e.destroyOnClose,$=e.onMouseEnter,R=e.onMouseOver,I=e.onMouseLeave,O=e.onClick,P=e.onKeyDown,z=e.onKeyUp,A=e.panelRef,T=c.useState(!1),D=(0,i.Z)(T,2),B=D[0],_=D[1];var Z=c.useState(!1),L=(0,i.Z)(Z,2),H=L[0],F=L[1];(0,s.Z)((function(){F(!0)}),[]);var j=!!H&&n,U=c.useRef(),W=c.useRef();(0,s.Z)((function(){j&&(W.current=document.activeElement)}),[j]);var Y=c.useMemo((function(){return{panel:A}}),[A]);if(!S&&!B&&!j&&N)return null;var X={onMouseEnter:$,onMouseOver:R,onMouseLeave:I,onClick:O,onKeyDown:P,onKeyUp:z},Q=(0,a.Z)((0,a.Z)({},e),{},{open:j,prefixCls:r,placement:h,autoFocus:m,keyboard:g,width:E,mask:w,maskClosable:x,inline:!1===y,afterOpenChange:function(e){var t,n;(_(e),null==k||k(e),e||!W.current||null!==(t=U.current)&&void 0!==t&&t.contains(W.current))||(null===(n=W.current)||void 0===n||n.focus({preventScroll:!0}))},ref:U},X);return c.createElement(u.Provider,{value:Y},c.createElement(l.Z,{open:j||S||B,autoDestroy:!1,getContainer:y,autoLock:w&&(j||B)},c.createElement(M,Q)))},k=n(62892),N=n(36355),$=n(32441),R=n(47729);var I=e=>{const{prefixCls:t,title:n,footer:o,extra:a,closeIcon:i,closable:l,onClose:s,headerStyle:d,drawerStyle:u,bodyStyle:h,footerStyle:f,children:m}=e,p=c.useCallback((e=>c.createElement("button",{type:"button",onClick:s,"aria-label":"Close",className:`${t}-close`},e)),[s]),[g,v]=(0,R.Z)(l,i,p,void 0,!0),E=c.useMemo((()=>n||g?c.createElement("div",{style:d,className:r()(`${t}-header`,{[`${t}-header-close-only`]:g&&!n&&!a})},c.createElement("div",{className:`${t}-header-title`},v,n&&c.createElement("div",{className:`${t}-title`},n)),a&&c.createElement("div",{className:`${t}-extra`},a)):null),[g,v,a,d,t,n]),C=c.useMemo((()=>{if(!o)return null;const e=`${t}-footer`;return c.createElement("div",{className:e,style:f},o)}),[o,f,t]);return c.createElement("div",{className:`${t}-wrapper-body`,style:u},E,c.createElement("div",{className:`${t}-body`,style:h},m),C)},O=n(33234),P=n(83116),z=n(37613);var A=e=>{const{componentCls:t,motionDurationSlow:n}=e,o={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const T=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:o,colorBgElevated:r,motionDurationSlow:a,motionDurationMid:i,padding:l,paddingLG:s,fontSizeLG:c,lineHeightLG:d,lineWidth:u,lineType:h,colorSplit:f,marginSM:m,colorIcon:p,colorIconHover:g,colorText:v,fontWeightStrong:E,footerPaddingBlock:C,footerPaddingInline:w}=e,b=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:r,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:o,pointerEvents:"auto"},[b]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${b}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${b}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${b}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${b}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:r,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${l}px ${s}px`,fontSize:c,lineHeight:d,borderBottom:`${u}px ${h} ${f}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:m,color:p,fontWeight:E,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${i}`,textRendering:"auto","&:focus, &:hover":{color:g,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:v,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:d},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:s,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${C}px ${w}px`,borderTop:`${u}px ${h} ${f}`},"&-rtl":{direction:"rtl"}}}};var D=(0,P.Z)("Drawer",(e=>{const t=(0,z.TS)(e,{});return[T(t),A(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}))),B=n(11575),_=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Z={distance:180},L=e=>{const{rootClassName:t,width:n,height:o,size:a="default",mask:i=!0,push:l=Z,open:s,afterOpenChange:d,onClose:u,prefixCls:h,getContainer:f,style:m,className:p,visible:g,afterVisibleChange:v}=e,E=_(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:C,getPrefixCls:w,direction:b,drawer:x}=c.useContext(N.E_),y=w("drawer",h),[M,R]=D(y),P=void 0===f&&C?()=>C(document.body):f,z=r()({"no-mask":!i,[`${y}-rtl`]:"rtl"===b},t,R);const A=c.useMemo((()=>null!=n?n:"large"===a?736:378),[n,a]),T=c.useMemo((()=>null!=o?o:"large"===a?736:378),[o,a]),L={motionName:(0,k.m)(y,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},H=(0,B.H)();return M(c.createElement(O.BR,null,c.createElement($.Ux,{status:!0,override:!0},c.createElement(S,Object.assign({prefixCls:y,onClose:u,maskMotion:L,motion:e=>({motionName:(0,k.m)(y,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},E,{open:null!=s?s:g,mask:i,push:l,width:A,height:T,style:Object.assign(Object.assign({},null==x?void 0:x.style),m),className:r()(null==x?void 0:x.className,p),rootClassName:z,getContainer:P,afterOpenChange:null!=d?d:v,panelRef:H}),c.createElement(I,Object.assign({prefixCls:y},E,{onClose:u}))))))};L._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:o,placement:a="right"}=e,i=_(e,["prefixCls","style","className","placement"]),{getPrefixCls:l}=c.useContext(N.E_),s=l("drawer",t),[d,u]=D(s),h=r()(s,`${s}-pure`,`${s}-${a}`,u,o);return d(c.createElement("div",{className:h,style:n},c.createElement(I,Object.assign({prefixCls:s},i))))};var H=L},44e3:function(e,t,n){var o=n(84966),r=n(99580);const a=o.ZP;a.Header=o.h4,a.Footer=o.$_,a.Content=o.VY,a.Sider=r.Z,t.Z=a},12780:function(e,t,n){n.d(t,{Z:function(){return H}});var o=n(59301),r=n(5891),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},i=n(88853),l=function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))};var s,c=o.forwardRef(l),d=n(92310),u=n.n(d),h=Object.defineProperty,f=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,g=(e,t,n)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))m.call(t,n)&&g(e,n,t[n]);if(f)for(var n of f(t))p.call(t,n)&&g(e,n,t[n]);return e},E=(e,t)=>{var n={};for(var o in e)m.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&f)for(var o of f(e))t.indexOf(o)<0&&p.call(e,o)&&(n[o]=e[o]);return n};(e=>{const t=class{constructor(e,n,o,r){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(r<-1||r>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const l=this.addEccAndInterleave(o);if(this.drawCodewords(l),-1==r){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(r=t,e=n),this.applyMask(t)}}a(0<=r&&r<=7),this.mask=r,this.applyMask(r),this.drawFormatBits(r),this.isFunction=[]}static encodeText(n,o){const r=e.QrSegment.makeSegments(n);return t.encodeSegments(r,o)}static encodeBinary(n,o){const r=e.QrSegment.makeBytes(n);return t.encodeSegments([r],o)}static encodeSegments(e,n,r=1,i=40,s=-1,c=!0){if(!(t.MIN_VERSION<=r&&r<=i&&i<=t.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");let d,u;for(d=r;;d++){const o=8*t.getNumDataCodewords(d,n),r=l.getTotalBits(e,d);if(r<=o){u=r;break}if(d>=i)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&u<=8*t.getNumDataCodewords(d,e)&&(n=e);let h=[];for(const t of e){o(t.mode.modeBits,4,h),o(t.numChars,t.mode.numCharCountBits(d),h);for(const e of t.getData())h.push(e)}a(h.length==u);const f=8*t.getNumDataCodewords(d,n);a(h.length<=f),o(0,Math.min(4,f-h.length),h),o(0,(8-h.length%8)%8,h),a(h.length%8==0);for(let e=236;h.length<f;e^=253)o(e,8,h);let m=[];for(;8*m.length<h.length;)m.push(0);return h.forEach(((e,t)=>m[t>>>3]|=e<<7-(7&t))),new t(d,n,m,s)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let o=0;o<t;o++)0==n&&0==o||0==n&&o==t-1||n==t-1&&0==o||this.drawAlignmentPattern(e[n],e[o]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const o=21522^(t<<10|n);a(o>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(o,e));this.setFunctionModule(8,7,r(o,6)),this.setFunctionModule(8,8,r(o,7)),this.setFunctionModule(7,8,r(o,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(o,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(o,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(o,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const n=r(t,e),o=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(o,a,n),this.setFunctionModule(a,o,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let o=-4;o<=4;o++){const r=Math.max(Math.abs(o),Math.abs(n)),a=e+o,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=r&&4!=r)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let o=-2;o<=2;o++)this.setFunctionModule(e+o,t+n,1!=Math.max(Math.abs(o),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,o=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,o))throw new RangeError("Invalid argument");const r=t.NUM_ERROR_CORRECTION_BLOCKS[o.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[o.ordinal][n],l=Math.floor(t.getNumRawDataModules(n)/8),s=r-l%r,c=Math.floor(l/r);let d=[];const u=t.reedSolomonComputeDivisor(i);for(let n=0,o=0;n<r;n++){let r=e.slice(o,o+c-i+(n<s?0:1));o+=r.length;const a=t.reedSolomonComputeRemainder(r,u);n<s&&r.push(0),d.push(r.concat(a))}let h=[];for(let e=0;e<d[0].length;e++)d.forEach(((t,n)=>{(e!=c-i||n>=s)&&h.push(t[e])}));return a(h.length==l),h}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let o=0;o<this.size;o++)for(let a=0;a<2;a++){const i=t-a,l=0==(t+1&2)?this.size-1-o:o;!this.isFunction[l][i]&&n<8*e.length&&(this.modules[l][i]=r(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let o;switch(e){case 0:o=(n+t)%2==0;break;case 1:o=t%2==0;break;case 2:o=n%3==0;break;case 3:o=(n+t)%3==0;break;case 4:o=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:o=n*t%2+n*t%3==0;break;case 6:o=(n*t%2+n*t%3)%2==0;break;case 7:o=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&o&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let o=!1,r=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==o?(r++,5==r?e+=t.PENALTY_N1:r>5&&e++):(this.finderPenaltyAddHistory(r,a),o||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),o=this.modules[n][i],r=1);e+=this.finderPenaltyTerminateAndCount(o,r,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let o=!1,r=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==o?(r++,5==r?e+=t.PENALTY_N1:r>5&&e++):(this.finderPenaltyAddHistory(r,a),o||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),o=this.modules[i][n],r=1);e+=this.finderPenaltyTerminateAndCount(o,r,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let o=0;o<this.size-1;o++){const r=this.modules[n][o];r==this.modules[n][o+1]&&r==this.modules[n+1][o]&&r==this.modules[n+1][o+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const o=this.size*this.size,r=Math.ceil(Math.abs(20*n-10*o)/o)-1;return a(0<=r&&r<=9),e+=r*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let o=this.size-7;n.length<e;o-=t)n.splice(1,0,o);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let o=1;for(let r=0;r<e;r++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],o),e+1<n.length&&(n[e]^=n[e+1]);o=t.reedSolomonMultiply(o,2)}return n}static reedSolomonComputeRemainder(e,n){let o=n.map((e=>0));for(const r of e){const e=r^o.shift();o.push(0),n.forEach(((n,r)=>o[r]^=t.reedSolomonMultiply(n,e)))}return o}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let o=7;o>=0;o--)n=n<<1^285*(n>>>7),n^=(t>>>o&1)*e;return a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function o(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let o=t-1;o>=0;o--)n.push(e>>>o&1)}function r(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const i=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)o(n,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const r=Math.min(e.length-n,3);o(parseInt(e.substr(n,r),10),3*r+1,t),n+=r}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let r=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));r+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),o(r,11,n)}return t<e.length&&o(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new i(i.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)o(e,8,t);else if(e<16384)o(2,2,t),o(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");o(6,3,t),o(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const o of e){const e=o.mode.numCharCountBits(t);if(o.numChars>=1<<e)return 1/0;n+=4+e+o.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let l=i;l.NUMERIC_REGEX=/^[0-9]*$/,l.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,l.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=l})(s||(s={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(s||(s={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(s||(s={}));var C=s,w={L:C.QrCode.Ecc.LOW,M:C.QrCode.Ecc.MEDIUM,Q:C.QrCode.Ecc.QUARTILE,H:C.QrCode.Ecc.HIGH},b=128,x="L",y="#FFFFFF",M="#000000",S=!1;function k(e,t=0){const n=[];return e.forEach((function(e,o){let r=null;e.forEach((function(a,i){if(!a&&null!==r)return n.push(`M${r+t} ${o+t}h${i-r}v1H${r+t}z`),void(r=null);if(i!==e.length-1)a&&null===r&&(r=i);else{if(!a)return;null===r?n.push(`M${i+t},${o+t} h1v1H${i+t}z`):n.push(`M${r+t},${o+t} h${i+1-r}v1H${r+t}z`)}}))})),n.join("")}function N(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function $(e,t,n,o){if(null==o)return null;const r=n?4:0,a=e.length+2*r,i=Math.floor(.1*t),l=a/t,s=(o.width||i)*l,c=(o.height||i)*l,d=null==o.x?e.length/2-s/2:o.x*l,u=null==o.y?e.length/2-c/2:o.y*l;let h=null;if(o.excavate){let e=Math.floor(d),t=Math.floor(u);h={x:e,y:t,w:Math.ceil(s+d-e),h:Math.ceil(c+u-t)}}return{x:d,y:u,h:c,w:s,excavation:h}}var R=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function I(e){const t=e,{value:n,size:r=b,level:a=x,bgColor:i=y,fgColor:l=M,includeMargin:s=S,style:c,imageSettings:d}=t,u=E(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),h=null==d?void 0:d.src,f=o.useRef(null),m=o.useRef(null),[p,g]=o.useState(!1);o.useEffect((()=>{if(null!=f.current){const e=f.current,t=e.getContext("2d");if(!t)return;let o=C.QrCode.encodeText(n,w[a]).getModules();const c=s?4:0,u=o.length+2*c,h=$(o,r,s,d),p=m.current,g=null!=h&&null!==p&&p.complete&&0!==p.naturalHeight&&0!==p.naturalWidth;g&&null!=h.excavation&&(o=N(o,h.excavation));const v=window.devicePixelRatio||1;e.height=e.width=r*v;const E=r/u*v;t.scale(E,E),t.fillStyle=i,t.fillRect(0,0,u,u),t.fillStyle=l,R?t.fill(new Path2D(k(o,c))):o.forEach((function(e,n){e.forEach((function(e,o){e&&t.fillRect(o+c,n+c,1,1)}))})),g&&t.drawImage(p,h.x+c,h.y+c,h.w,h.h)}})),o.useEffect((()=>{g(!1)}),[h]);const I=v({height:r,width:r},c);let O=null;return null!=h&&(O=o.createElement("img",{src:h,key:h,style:{display:"none"},onLoad:()=>{g(!0)},ref:m})),o.createElement(o.Fragment,null,o.createElement("canvas",v({style:I,height:r,width:r,ref:f},u)),O)}function O(e){const t=e,{value:n,size:r=b,level:a=x,bgColor:i=y,fgColor:l=M,includeMargin:s=S,imageSettings:c}=t,d=E(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let u=C.QrCode.encodeText(n,w[a]).getModules();const h=s?4:0,f=u.length+2*h,m=$(u,r,s,c);let p=null;null!=c&&null!=m&&(null!=m.excavation&&(u=N(u,m.excavation)),p=o.createElement("image",{xlinkHref:c.src,height:m.h,width:m.w,x:m.x+h,y:m.y+h,preserveAspectRatio:"none"}));const g=k(u,h);return o.createElement("svg",v({height:r,width:r,viewBox:`0 0 ${f} ${f}`},d),o.createElement("path",{fill:i,d:`M0,0 h${f}v${f}H0z`,shapeRendering:"crispEdges"}),o.createElement("path",{fill:l,d:g,shapeRendering:"crispEdges"}),p)}var P=n(3113),z=n(36355),A=n(9763),T=n(71418),D=n(88088),B=n(17313),_=n(83116),Z=n(37613);var L=(0,_.Z)("QRCode",(e=>(e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign({},(0,B.Wf)(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,position:"relative",width:"100%",height:"100%",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired`]:{color:e.QRCodeExpiredTextColor}},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent"}}})((0,Z.TS)(e,{QRCodeExpiredTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"}))));var H=e=>{const[,t]=(0,D.Z)(),{value:n,type:r="canvas",icon:a="",size:i=160,iconSize:l=40,color:s=t.colorText,errorLevel:d="M",status:h="active",bordered:f=!0,onRefresh:m,style:p,className:g,rootClassName:v,prefixCls:E,bgColor:C="transparent"}=e,{getPrefixCls:w}=(0,o.useContext)(z.E_),b=w("qrcode",E),[x,y]=L(b),M={src:a,x:void 0,y:void 0,height:l,width:l,excavate:!0},S={value:n,size:i-2*(t.paddingSM+t.lineWidth),level:d,bgColor:C,fgColor:s,imageSettings:a?M:void 0},[k]=(0,A.Z)("QRCode");if(!n)return null;const N=u()(b,g,v,y,{[`${b}-borderless`]:!f});return x(o.createElement("div",{style:Object.assign(Object.assign({},p),{width:i,height:i,backgroundColor:C}),className:N},"active"!==h&&o.createElement("div",{className:`${b}-mask`},"loading"===h&&o.createElement(T.Z,null),"expired"===h&&o.createElement(o.Fragment,null,o.createElement("p",{className:`${b}-expired`},null==k?void 0:k.expired),m&&o.createElement(P.ZP,{type:"link",icon:o.createElement(c,null),onClick:m},null==k?void 0:k.refresh))),"canvas"===r?o.createElement(I,Object.assign({},S)):o.createElement(O,Object.assign({},S))))}}}]); |