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
25 KiB
1 line
25 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[12878,74324,94184],{56762:function(e,t,o){"use strict";o.d(t,{Z:function(){return r}});var n=o(59301);function r(){const[,e]=n.useReducer((e=>e+1),0);return e}},24905:function(e,t,o){"use strict";o.d(t,{Z:function(){return $}});var n=o(92310),r=o.n(n),a=o(5630),l=o(59301),i=o(36355),c=o(1684),s=o(32441);var u=l.createContext(null),d=o(98447),p=o(14088),f=o(4572),b=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o};const m=(e,t)=>{var o;const{prefixCls:n,className:m,rootClassName:g,children:v,indeterminate:y=!1,style:h,onMouseEnter:C,onMouseLeave:O,skipGroup:w=!1,disabled:x}=e,$=b(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:S,direction:k,checkbox:E}=l.useContext(i.E_),P=l.useContext(u),{isFormItemInput:j}=l.useContext(s.aM),I=l.useContext(c.Z),N=null!==(o=(null==P?void 0:P.disabled)||x)&&void 0!==o?o:I,D=l.useRef($.value);l.useEffect((()=>{null==P||P.registerValue($.value)}),[]),l.useEffect((()=>{if(!w)return $.value!==D.current&&(null==P||P.cancelValue(D.current),null==P||P.registerValue($.value),D.current=$.value),()=>null==P?void 0:P.cancelValue($.value)}),[$.value]);const T=S("checkbox",n),[M,Z]=(0,d.ZP)(T),R=Object.assign({},$);P&&!w&&(R.onChange=function(){$.onChange&&$.onChange.apply($,arguments),P.toggleOption&&P.toggleOption({label:v,value:$.value})},R.name=P.name,R.checked=P.value.includes($.value));const _=r()(`${T}-wrapper`,{[`${T}-rtl`]:"rtl"===k,[`${T}-wrapper-checked`]:R.checked,[`${T}-wrapper-disabled`]:N,[`${T}-wrapper-in-form-item`]:j},null==E?void 0:E.className,m,g,Z),B=r()({[`${T}-indeterminate`]:y},f.A,Z),z=y?"mixed":void 0;return M(l.createElement(p.Z,{component:"Checkbox",disabled:N},l.createElement("label",{className:_,style:Object.assign(Object.assign({},null==E?void 0:E.style),h),onMouseEnter:C,onMouseLeave:O},l.createElement(a.Z,Object.assign({"aria-checked":z},R,{prefixCls:T,className:B,disabled:N,ref:t})),void 0!==v&&l.createElement("span",null,v))))};var g=l.forwardRef(m),v=o(26390),y=o(55405),h=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o};const C=(e,t)=>{const{defaultValue:o,children:n,options:a=[],prefixCls:c,className:s,rootClassName:p,style:f,onChange:b}=e,m=h(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:C,direction:O}=l.useContext(i.E_),[w,x]=l.useState(m.value||o||[]),[$,S]=l.useState([]);l.useEffect((()=>{"value"in m&&x(m.value||[])}),[m.value]);const k=l.useMemo((()=>a.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[a]),E=C("checkbox",c),P=`${E}-group`,[j,I]=(0,d.ZP)(E),N=(0,y.Z)(m,["value","disabled"]),D=a.length?k.map((e=>l.createElement(g,{prefixCls:E,key:e.value.toString(),disabled:"disabled"in e?e.disabled:m.disabled,value:e.value,checked:w.includes(e.value),onChange:e.onChange,className:`${P}-item`,style:e.style,title:e.title},e.label))):n,T={toggleOption:e=>{const t=w.indexOf(e.value),o=(0,v.Z)(w);-1===t?o.push(e.value):o.splice(t,1),"value"in m||x(o),null==b||b(o.filter((e=>$.includes(e))).sort(((e,t)=>k.findIndex((t=>t.value===e))-k.findIndex((e=>e.value===t)))))},value:w,disabled:m.disabled,name:m.name,registerValue:e=>{S((t=>[].concat((0,v.Z)(t),[e])))},cancelValue:e=>{S((t=>t.filter((t=>t!==e))))}},M=r()(P,{[`${P}-rtl`]:"rtl"===O},s,p,I);return j(l.createElement("div",Object.assign({className:M,style:f},N,{ref:t}),l.createElement(u.Provider,{value:T},D)))},O=l.forwardRef(C);var w=l.memo(O);const x=g;x.Group=w,x.__ANT_CHECKBOX=!0;var $=x},98447:function(e,t,o){"use strict";o.d(t,{C2:function(){return i}});var n=o(17313),r=o(37613),a=o(83116);const l=e=>{const{checkboxCls:t}=e,o=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},(0,n.Wf)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[o]:Object.assign(Object.assign({},(0,n.Wf)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${o}`]:{marginInlineStart:0},[`&${o}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},(0,n.Wf)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},(0,n.oN)(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${o}:not(${o}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${o}:not(${o}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${o}-checked:not(${o}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${o}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function i(e,t){const o=(0,r.TS)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[l(o)]}t.ZP=(0,a.Z)("Checkbox",((e,t)=>{let{prefixCls:o}=t;return[i(o,e)]}))},57809:function(e,t,o){"use strict";var n=o(92310),r=o.n(n),a=o(77861),l=o(55405),i=o(59301),c=o(53487),s=o(62892),u=o(19080),d=o(36355),p=o(1684),f=o(93891),b=o(19716),m=o(32441),g=o(33234),v=o(14154),y=o(58582),h=o(84443),C=o(66339),O=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o};const w="SECRET_COMBOBOX_MODE_DO_NOT_USE",x=(e,t)=>{var o,{prefixCls:n,bordered:c=!0,className:x,rootClassName:$,getPopupContainer:S,popupClassName:k,dropdownClassName:E,listHeight:P=256,placement:j,listItemHeight:I=24,size:N,disabled:D,notFoundContent:T,status:M,builtinPlacements:Z,dropdownMatchSelectWidth:R,popupMatchSelectWidth:_,direction:B,style:z,allowClear:A}=e,F=O(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:W,getPrefixCls:H,renderEmpty:L,direction:V,virtual:X,popupMatchSelectWidth:U,popupOverflow:G,select:Y}=i.useContext(d.E_),Q=H("select",n),K=H(),q=null!=B?B:V,{compactSize:J,compactItemClassnames:ee}=(0,g.ri)(Q,q),[te,oe]=(0,v.Z)(Q),ne=i.useMemo((()=>{const{mode:e}=F;if("combobox"!==e)return e===w?"combobox":e}),[F.mode]),re="multiple"===ne||"tags"===ne,ae=(0,h.Z)(F.suffixIcon,F.showArrow),le=null!==(o=null!=_?_:R)&&void 0!==o?o:U,{status:ie,hasFeedback:ce,isFormItemInput:se,feedbackIcon:ue}=i.useContext(m.aM),de=(0,u.F)(ie,M);let pe;pe=void 0!==T?T:"combobox"===ne?null:(null==L?void 0:L("Select"))||i.createElement(f.Z,{componentName:"Select"});const{suffixIcon:fe,itemIcon:be,removeIcon:me,clearIcon:ge}=(0,C.Z)(Object.assign(Object.assign({},F),{multiple:re,hasFeedback:ce,feedbackIcon:ue,showSuffixIcon:ae,prefixCls:Q,showArrow:F.showArrow,componentName:"Select"})),ve=!0===A?{clearIcon:ge}:A,ye=(0,l.Z)(F,["suffixIcon","itemIcon"]),he=r()(k||E,{[`${Q}-dropdown-${q}`]:"rtl"===q},$,oe),Ce=(0,b.Z)((e=>{var t;return null!==(t=null!=N?N:J)&&void 0!==t?t:e})),Oe=i.useContext(p.Z),we=null!=D?D:Oe,xe=r()({[`${Q}-lg`]:"large"===Ce,[`${Q}-sm`]:"small"===Ce,[`${Q}-rtl`]:"rtl"===q,[`${Q}-borderless`]:!c,[`${Q}-in-form-item`]:se},(0,u.Z)(Q,de,ce),ee,null==Y?void 0:Y.className,x,$,oe),$e=i.useMemo((()=>void 0!==j?j:"rtl"===q?"bottomRight":"bottomLeft"),[j,q]),Se=(0,y.Z)(Z,G);return te(i.createElement(a.ZP,Object.assign({ref:t,virtual:X,showSearch:null==Y?void 0:Y.showSearch},ye,{style:Object.assign(Object.assign({},null==Y?void 0:Y.style),z),dropdownMatchSelectWidth:le,builtinPlacements:Se,transitionName:(0,s.m)(K,"slide-up",F.transitionName),listHeight:P,listItemHeight:I,mode:ne,prefixCls:Q,placement:$e,direction:q,suffixIcon:fe,menuItemSelectedIcon:be,removeIcon:me,allowClear:ve,notFoundContent:pe,className:xe,getPopupContainer:S||W,dropdownClassName:he,disabled:we})))};const $=i.forwardRef(x),S=(0,c.Z)($);$.SECRET_COMBOBOX_MODE_DO_NOT_USE=w,$.Option=a.Wx,$.OptGroup=a.Xo,$._InternalPanelDoNotUseOrYouWillBeFired=S,t.default=$},8378:function(e,t){"use strict";t.Z=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})},12563:function(e,t,o){"use strict";o.d(t,{Z:function(){return k}});var n=o(59301),r=o(51638),a=o(92310),l=o.n(a),i=o(36785),c=o(47729),s=o(14088),u=o(36355),d=o(17313),p=o(37613),f=o(83116);const b=e=>{const{lineWidth:t,fontSizeIcon:o}=e,n=e.fontSizeSM,r=e.lineHeightSM*n+"px";return(0,p.TS)(e,{tagFontSize:n,tagLineHeight:r,tagIconSize:o-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},m=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var g=(0,f.Z)("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:o,tagPaddingHorizontal:n,componentCls:r}=e,a=n-o,l=t-o;return{[r]:Object.assign(Object.assign({},(0,d.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${r}-close-icon`]:{marginInlineStart:l,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(b(e))),m),v=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o};var y=e=>{const{prefixCls:t,style:o,className:r,checked:a,onChange:i,onClick:c}=e,s=v(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:d,tag:p}=n.useContext(u.E_),f=d("tag",t),[b,m]=g(f),y=l()(f,`${f}-checkable`,{[`${f}-checkable-checked`]:a},null==p?void 0:p.className,r,m);return b(n.createElement("span",Object.assign({},s,{style:Object.assign(Object.assign({},o),null==p?void 0:p.style),className:y,onClick:e=>{null==i||i(!a),null==c||c(e)}})))},h=o(45157);var C=(0,f.b)(["Tag","preset"],(e=>(e=>(0,h.Z)(e,((t,o)=>{let{textColor:n,lightBorderColor:r,lightColor:a,darkColor:l}=o;return{[`${e.componentCls}-${t}`]:{color:n,background:a,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(b(e))),m);const O=(e,t,o)=>{const n="string"!=typeof(r=o)?r:r.charAt(0).toUpperCase()+r.slice(1);var r;return{[`${e.componentCls}-${t}`]:{color:e[`color${o}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var w=(0,f.b)(["Tag","status"],(e=>{const t=b(e);return[O(t,"success","Success"),O(t,"processing","Info"),O(t,"error","Error"),O(t,"warning","Warning")]}),m),x=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o};const $=(e,t)=>{const{prefixCls:o,className:a,rootClassName:d,style:p,children:f,icon:b,color:m,onClose:v,closeIcon:y,closable:h,bordered:O=!0}=e,$=x(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:S,direction:k,tag:E}=n.useContext(u.E_),[P,j]=n.useState(!0);n.useEffect((()=>{"visible"in $&&j($.visible)}),[$.visible]);const I=(0,i.o2)(m),N=(0,i.yT)(m),D=I||N,T=Object.assign(Object.assign({backgroundColor:m&&!D?m:void 0},null==E?void 0:E.style),p),M=S("tag",o),[Z,R]=g(M),_=l()(M,null==E?void 0:E.className,{[`${M}-${m}`]:D,[`${M}-has-color`]:m&&!D,[`${M}-hidden`]:!P,[`${M}-rtl`]:"rtl"===k,[`${M}-borderless`]:!O},a,d,R),B=e=>{e.stopPropagation(),null==v||v(e),e.defaultPrevented||j(!1)},[,z]=(0,c.Z)(h,y,(e=>null===e?n.createElement(r.Z,{className:`${M}-close-icon`,onClick:B}):n.createElement("span",{className:`${M}-close-icon`,onClick:B},e)),null,!1),A="function"==typeof $.onClick||f&&"a"===f.type,F=b||null,W=F?n.createElement(n.Fragment,null,F,f&&n.createElement("span",null,f)):f,H=n.createElement("span",Object.assign({},$,{ref:t,className:_,style:T}),W,z,I&&n.createElement(C,{key:"preset",prefixCls:M}),N&&n.createElement(w,{key:"status",prefixCls:M}));return Z(A?n.createElement(s.Z,{component:"Tag"},H):H)},S=n.forwardRef($);S.CheckableTag=y;var k=S},25769:function(e,t,o){"use strict";var n=o(98040),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var o,a,l,i,c,s,u=!1;t||(t={}),o=t.debug||!1;try{if(l=n(),i=document.createRange(),c=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(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=r[t.format]||r.default;window.clipboardData.setData(a,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(s),i.selectNodeContents(s),c.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(n){o&&console.error("unable to copy using execCommand: ",n),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(n){o&&console.error("unable to copy using clipboardData: ",n),o&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(i):c.removeAllRanges()),s&&document.body.removeChild(s),l()}return u}},31561:function(e,t,o){"use strict";o.d(t,{Z:function(){return w}});var n=o(5891),r=o(80962),a=o(29043),l=o(19149),i=o(35593),c=o(92310),s=o.n(c),u=o(25629),d=o(59301),p=o(20287),f=o(71783),b=p.Z.ESC,m=p.Z.TAB;var g=(0,d.forwardRef)((function(e,t){var o=e.overlay,n=e.arrow,r=e.prefixCls,a=(0,d.useMemo)((function(){return"function"==typeof o?o():o}),[o]),l=(0,u.sQ)(t,null==a?void 0:a.ref);return d.createElement(d.Fragment,null,n&&d.createElement("div",{className:"".concat(r,"-arrow")}),d.cloneElement(a,{ref:(0,u.Yr)(a)?l:void 0}))})),v={adjustX:1,adjustY:1},y=[0,0],h={topLeft:{points:["bl","tl"],overflow:v,offset:[0,-4],targetOffset:y},top:{points:["bc","tc"],overflow:v,offset:[0,-4],targetOffset:y},topRight:{points:["br","tr"],overflow:v,offset:[0,-4],targetOffset:y},bottomLeft:{points:["tl","bl"],overflow:v,offset:[0,4],targetOffset:y},bottom:{points:["tc","bc"],overflow:v,offset:[0,4],targetOffset:y},bottomRight:{points:["tr","br"],overflow:v,offset:[0,4],targetOffset:y}},C=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function O(e,t){var o,c=e.arrow,p=void 0!==c&&c,v=e.prefixCls,y=void 0===v?"rc-dropdown":v,O=e.transitionName,w=e.animation,x=e.align,$=e.placement,S=void 0===$?"bottomLeft":$,k=e.placements,E=void 0===k?h:k,P=e.getPopupContainer,j=e.showAction,I=e.hideAction,N=e.overlayClassName,D=e.overlayStyle,T=e.visible,M=e.trigger,Z=void 0===M?["hover"]:M,R=e.autoFocus,_=e.overlay,B=e.children,z=e.onVisibleChange,A=(0,l.Z)(e,C),F=d.useState(),W=(0,a.Z)(F,2),H=W[0],L=W[1],V="visible"in e?T:H,X=d.useRef(null),U=d.useRef(null),G=d.useRef(null);d.useImperativeHandle(t,(function(){return X.current}));var Y=function(e){L(e),null==z||z(e)};!function(e){var t=e.visible,o=e.triggerRef,n=e.onVisibleChange,r=e.autoFocus,a=e.overlayRef,l=d.useRef(!1),i=function(){var e,r;t&&(null===(e=o.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==n||n(!1))},c=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),l.current=!0,0))},s=function(e){switch(e.keyCode){case b:i();break;case m:var t=!1;l.current||(t=c()),t?e.preventDefault():i()}};d.useEffect((function(){return t?(window.addEventListener("keydown",s),r&&(0,f.Z)(c,3),function(){window.removeEventListener("keydown",s),l.current=!1}):function(){l.current=!1}}),[t])}({visible:V,triggerRef:G,onVisibleChange:Y,autoFocus:R,overlayRef:U});var Q,K,q,J=function(){return d.createElement(g,{ref:U,overlay:_,prefixCls:y,arrow:p})},ee=d.cloneElement(B,{className:s()(null===(o=B.props)||void 0===o?void 0:o.className,V&&(Q=e.openClassName,void 0!==Q?Q:"".concat(y,"-open"))),ref:(0,u.Yr)(B)?(0,u.sQ)(G,B.ref):void 0}),te=I;return te||-1===Z.indexOf("contextMenu")||(te=["click"]),d.createElement(i.Z,(0,n.Z)({builtinPlacements:E},A,{prefixCls:y,ref:X,popupClassName:s()(N,(0,r.Z)({},"".concat(y,"-show-arrow"),p)),popupStyle:D,action:Z,showAction:j,hideAction:te,popupPlacement:S,popupAlign:x,popupTransitionName:O,popupAnimation:w,popupVisible:V,stretch:(K=e.minOverlayWidthMatchTrigger,q=e.alignPoint,("minOverlayWidthMatchTrigger"in e?K:!q)?"minWidth":""),popup:"function"==typeof _?J:J(),onPopupVisibleChange:Y,onPopupClick:function(t){var o=e.onOverlayClick;L(!1),o&&o(t)},getPopupContainer:P}),ee)}var w=d.forwardRef(O)},83145:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var n=a(o(59301)),r=a(o(25769));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="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},l(e)}function i(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function c(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},a=Object.keys(e);for(n=0;n<a.length;n++)o=a[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)o=a[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?f(e):t}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 b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function m(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var g=function(e){function t(){var e,o;s(this,t);for(var a=arguments.length,l=new Array(a),i=0;i<a;i++)l[i]=arguments[i];return m(f(o=d(this,(e=p(t)).call.apply(e,[this].concat(l)))),"onClick",(function(e){var t=o.props,a=t.text,l=t.onCopy,i=t.children,c=t.options,s=n.default.Children.only(i),u=(0,r.default)(a,c);l&&l(a,u),s&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(e)})),o}var o,a,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(t,e),o=t,a=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),o=c(e,["text","onCopy","options","children"]),r=n.default.Children.only(t);return n.default.cloneElement(r,function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?i(o,!0).forEach((function(t){m(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):i(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},o,{onClick:this.onClick}))}}],a&&u(o.prototype,a),l&&u(o,l),t}(n.default.PureComponent);t.CopyToClipboard=g,m(g,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(e,t,o){"use strict";var n=o(83145).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},98040:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,o=[],n=0;n<e.rangeCount;n++)o.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||o.forEach((function(t){e.addRange(t)})),t&&t.focus()}}}}]); |