@para-ui/core 4.0.52 → 4.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Button/index.js +2 -2
- package/Cascader/Cascader.d.ts +3 -0
- package/Cascader/index.js +11 -8
- package/ComboSelect/index.js +5 -5
- package/CycleSelector/index.js +2 -2
- package/DatePicker/index.js +2 -2
- package/DynamicMultiBox/index.js +7 -7
- package/DynamicMultiBox/interface.d.ts +1 -1
- package/FieldForm/ErrorList.d.ts +16 -0
- package/FieldForm/FieldFormItem/ItemHolder.d.ts +18 -0
- package/FieldForm/FieldFormItem/MemoInput.d.ts +14 -0
- package/FieldForm/FieldFormItem/StatusProvider.d.ts +20 -0
- package/FieldForm/FieldFormItem/index.d.ts +58 -0
- package/FieldForm/Form.d.ts +36 -0
- package/FieldForm/FormItemInput.d.ts +21 -0
- package/FieldForm/FormItemLabel.d.ts +21 -0
- package/FieldForm/FormList.d.ts +23 -0
- package/FieldForm/context.d.ts +33 -0
- package/FieldForm/hooks/useChildren.d.ts +2 -0
- package/FieldForm/hooks/useDebounce.d.ts +1 -0
- package/FieldForm/hooks/useForm.d.ts +6 -0
- package/FieldForm/hooks/useFormInstance.d.ts +2 -0
- package/FieldForm/hooks/useFormItemStatus.d.ts +9 -0
- package/FieldForm/hooks/useFrameState.d.ts +3 -0
- package/FieldForm/hooks/useItemRef.d.ts +3 -0
- package/FieldForm/index.d.ts +30 -0
- package/FieldForm/index.js +5326 -0
- package/FieldForm/interface.d.ts +2 -0
- package/FieldForm/lang/en_US.d.ts +51 -0
- package/FieldForm/lang/index.d.ts +105 -0
- package/FieldForm/lang/zh_CN.d.ts +51 -0
- package/FieldForm/util.d.ts +21 -0
- package/Form/index.js +6 -6
- package/FormItem/index.js +6 -6
- package/FunctionModal/index.js +2 -2
- package/Image/index.js +5 -55
- package/PopMenu/index.js +2 -2
- package/README.md +15 -0
- package/Result/index.js +2 -2
- package/Selector/index.js +1 -1
- package/SelectorPicker/index.js +1 -1
- package/Switch/index.d.ts +4 -0
- package/Switch/index.js +3 -2
- package/Table/index.js +433 -498
- package/Tag/index.js +2 -2
- package/TextEditor/index.d.ts +2 -0
- package/TextEditor/index.js +27 -6
- package/TimePicker/index.js +2 -2
- package/Tooltip/index.js +26 -27
- package/Transfer/index.d.ts +1 -0
- package/Transfer/index.js +120 -119
- package/Tree/index.js +4 -4
- package/Upload/index.js +9 -7
- package/_verture/{Portal-f9bedb3a.js → Portal-502bb85e.js} +29 -481
- package/_verture/{index-5b0d1c7d.js → index-0a300edb.js} +387 -700
- package/_verture/index-1856bbeb.js +480 -0
- package/_verture/{index-ba8815d0.js → index-320d67c4.js} +2 -2
- package/_verture/{index-887e5e11.js → index-43c653bb.js} +1 -1
- package/_verture/isEqual-30b6f859.js +56 -0
- package/_verture/{slicedToArray-75fa4188.js → slicedToArray-61604a6c.js} +1 -1
- package/_verture/{toConsumableArray-c7a8028f.js → toConsumableArray-599cd94a.js} +1 -1
- package/_verture/useState-f2419d68.js +353 -0
- package/index.d.ts +2 -0
- package/index.js +15 -11
- package/locale/en-US.d.ts +46 -0
- package/locale/index.d.ts +92 -0
- package/locale/index.js +92 -0
- package/locale/zh-CN.d.ts +46 -0
- package/package.json +3 -1
- package/umd/Anchor.js +5 -5
- package/umd/Argv.js +5 -5
- package/umd/AutoBox.js +5 -5
- package/umd/AutoButton.js +6 -6
- package/umd/AutoTips.js +5 -5
- package/umd/Breadcrumbs.js +4 -4
- package/umd/Button.js +5 -5
- package/umd/ButtonGroup.js +6 -6
- package/umd/Cascader.js +5 -5
- package/umd/Checkbox.js +4 -4
- package/umd/CheckboxGroup.js +4 -4
- package/umd/Collapse.js +1 -1
- package/umd/ComboSelect.js +5 -5
- package/umd/CopyText.js +5 -5
- package/umd/CycleSelector.js +5 -5
- package/umd/DatePicker.js +5 -5
- package/umd/Descriptions.js +6 -6
- package/umd/Desktop.js +5 -5
- package/umd/Drawer.js +5 -5
- package/umd/Dropdown.js +4 -4
- package/umd/DynamicMultiBox.js +5 -5
- package/umd/FieldForm.js +43 -0
- package/umd/Form.js +5 -5
- package/umd/FormItem.js +5 -5
- package/umd/FunctionModal.js +5 -5
- package/umd/Help.js +5 -5
- package/umd/Image.js +3 -3
- package/umd/InputCode.js +5 -5
- package/umd/InputLang.js +5 -5
- package/umd/InputNumber.js +4 -4
- package/umd/Label.js +4 -4
- package/umd/Menu.js +4 -4
- package/umd/Modal.js +5 -5
- package/umd/MultiBox.js +6 -6
- package/umd/Notification.js +3 -3
- package/umd/OperateBtn.js +5 -5
- package/umd/PageHeader.js +5 -5
- package/umd/Pagination.js +5 -5
- package/umd/PopConfirm.js +5 -5
- package/umd/PopMenu.js +5 -5
- package/umd/Popover.js +5 -5
- package/umd/QuickReply.js +5 -5
- package/umd/Radio.js +4 -4
- package/umd/RadioGroup.js +4 -4
- package/umd/RangeInput.js +5 -5
- package/umd/Result.js +4 -4
- package/umd/Search.js +5 -5
- package/umd/Select.js +5 -5
- package/umd/SelectInput.js +5 -5
- package/umd/Selector.js +5 -5
- package/umd/SelectorPicker.js +5 -5
- package/umd/SingleBox.js +5 -5
- package/umd/Slider.js +4 -4
- package/umd/Stepper.js +4 -4
- package/umd/Switch.js +4 -4
- package/umd/Table.js +6 -6
- package/umd/Tabs.js +4 -4
- package/umd/Tag.js +5 -5
- package/umd/TextEditor.js +6 -6
- package/umd/TextField.js +5 -5
- package/umd/TimePicker.js +5 -5
- package/umd/Title.js +3 -3
- package/umd/ToggleButton.js +5 -5
- package/umd/Tooltip.js +4 -4
- package/umd/Transfer.js +7 -7
- package/umd/Tree.js +3 -3
- package/umd/Upload.js +5 -5
- package/umd/locale.js +1 -1
- /package/_verture/{modalContext-f68b51a2.js → modalContext-6ac2e323.js} +0 -0
package/umd/PopMenu.js
CHANGED
|
@@ -17,8 +17,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
17
17
|
object-assign
|
|
18
18
|
(c) Sindre Sorhus
|
|
19
19
|
@license MIT
|
|
20
|
-
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var i,a,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var s in i=Object(arguments[u]))n.call(i,s)&&(c[s]=i[s]);if(t){a=t(i);for(var l=0;l<a.length;l++)o.call(i,a[l])&&(c[a[l]]=i[a[l]])}}return c}},44785:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var o=n(64467),r=n(89379),i=n(3453),a=n(82284),c=n(39155),u=n(66588),s=n(8719),l=n(46942),p=n.n(l),f=n(80371),d=n(25931),v=n(25318),m=n(72137),h=n(58515);const y=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,a.A)(e)&&(t=e.transitionSupport);var l=c.forwardRef((function(e,t){var a=e.visible,l=void 0===a||a,y=e.removeOnLeave,b=void 0===y||y,g=e.forceRender,w=e.children,A=e.motionName,O=e.leavedClassName,x=e.eventProps,E=n(e),j=(0,c.useRef)(),P=(0,c.useRef)();var S=(0,v.A)(E,l,(function(){try{return(0,u.A)(j.current||P.current)}catch(e){return null}}),e),C=(0,i.A)(S,4),k=C[0],T=C[1],M=C[2],_=C[3],D=c.useRef(_);_&&(D.current=!0);var N=(0,c.useRef)(t);N.current=t;var R,L=c.useCallback((function(e){j.current=e,(0,s.Xf)(N.current,e)}),[]),z=(0,r.A)((0,r.A)({},x),{},{visible:l});if(w)if(k!==d.SF&&n(e)){var I,H;T===d.px?H="prepare":(0,h.$m)(T)?H="active":T===d.Mv&&(H="start"),R=w((0,r.A)((0,r.A)({},z),{},{className:p()((0,f.by)(A,k),(I={},(0,o.A)(I,(0,f.by)(A,"".concat(k,"-").concat(H)),H),(0,o.A)(I,A,"string"==typeof A),I)),style:M}),L)}else R=_?w((0,r.A)({},z),L):!b&&D.current?w((0,r.A)((0,r.A)({},z),{},{className:O}),L):g?w((0,r.A)((0,r.A)({},z),{},{style:{display:"none"}}),L):null;else R=null;return c.createElement(m.A,{ref:P},R)}));return l.displayName="CSSMotion",l}(f.J1)},97333:(e,t,n)=>{"use strict";var o=n(58168),r=n(80045),i=n(89379),a=n(23029),c=n(92901),u=n(85501),s=n(29426),l=n(39155),p=n(44785),f=n(80371),d=n(29710),v=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.A,n=function(e){(0,u.A)(p,e);var n=(0,s.A)(p);function p(){var e;return(0,a.A)(this,p),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,i.A)((0,i.A)({},e),{},{status:d.e8})}))}}))},e}return(0,c.A)(p,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,i=this.props,a=i.component,c=i.children,u=i.onVisibleChanged,s=(0,r.A)(i,["component","children","onVisibleChanged"]),p=a||l.Fragment,f={};return v.forEach((function(e){f[e]=s[e],delete s[e]})),delete s.keys,l.createElement(p,s,n.map((function(n){var i=n.status,a=(0,r.A)(n,["status"]),s=i===d.bK||i===d.xI;return l.createElement(t,(0,o.A)({},f,{key:a.key,visible:s,eventProps:a,onVisibleChanged:function(t){null==u||u(t,{key:a.key}),t||e.removeKey(a.key)}}),c)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=(0,d.Ss)(n);return{keyEntities:(0,d.y$)(o,r).filter((function(e){var t=o.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==d.e8||e.status!==d.au}))}}}]),p}(l.Component);n.defaultProps={component:"div"}}(f.J1)},72137:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var o=n(23029),r=n(92901),i=n(85501),a=n(29426),c=n(39155);const u=function(e){(0,i.A)(n,e);var t=(0,a.A)(n);function n(){return(0,o.A)(this,n),t.apply(this,arguments)}return(0,r.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component)},85849:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(39155),r=n(80371);const i=function(e){var t=(0,o.useRef)(),n=(0,o.useRef)(e);n.current=e;var i=o.useCallback((function(e){n.current(e)}),[]);function a(e){e&&(e.removeEventListener(r.m8,i),e.removeEventListener(r.Vc,i))}return o.useEffect((function(){return function(){a(t.current)}}),[]),[function(e){t.current&&t.current!==e&&a(t.current),e&&e!==t.current&&(e.addEventListener(r.m8,i),e.addEventListener(r.Vc,i),t.current=e)},a]}},43982:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(39155);const r=(0,n(20998).A)()?o.useLayoutEffect:o.useEffect},84560:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(39155),r=n(25371);const i=function(){var e=o.useRef(null);function t(){r.A.cancel(e.current)}return o.useEffect((function(){return function(){t()}}),[]),[function n(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var a=(0,r.A)((function(){i<=1?o({isCanceled:function(){return a!==e.current}}):n(o,i-1)}));e.current=a},t]}},92659:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(3453),r=n(39155);function i(e){var t=(0,r.useRef)(!1),n=(0,r.useState)(e),i=(0,o.A)(n,2),a=i[0],c=i[1];return(0,r.useEffect)((function(){return function(){t.current=!0}}),[]),[a,function(e){t.current||c(e)}]}},25318:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var o=n(89379),r=n(64467),i=n(3453),a=n(39155),c=n(25931),u=n(92659),s=n(43982),l=n(58515),p=n(85849);function f(e,t,n,f){var d=f.motionEnter,v=void 0===d||d,m=f.motionAppear,h=void 0===m||m,y=f.motionLeave,b=void 0===y||y,g=f.motionDeadline,w=f.motionLeaveImmediately,A=f.onAppearPrepare,O=f.onEnterPrepare,x=f.onLeavePrepare,E=f.onAppearStart,j=f.onEnterStart,P=f.onLeaveStart,S=f.onAppearActive,C=f.onEnterActive,k=f.onLeaveActive,T=f.onAppearEnd,M=f.onEnterEnd,_=f.onLeaveEnd,D=f.onVisibleChanged,N=(0,u.A)(),R=(0,i.A)(N,2),L=R[0],z=R[1],I=(0,u.A)(c.SF),H=(0,i.A)(I,2),V=H[0],B=H[1],F=(0,u.A)(null),W=(0,i.A)(F,2),Y=W[0],X=W[1],U=(0,a.useRef)(!1),q=(0,a.useRef)(null),$=(0,a.useRef)(!1),G=(0,a.useRef)(null);function Z(){return n()||G.current}var K=(0,a.useRef)(!1);function J(e){var t,n=Z();e&&!e.deadline&&e.target!==n||(V===c.Tv&&K.current?t=null==T?void 0:T(n,e):V===c.Wd&&K.current?t=null==M?void 0:M(n,e):V===c.dp&&K.current&&(t=null==_?void 0:_(n,e)),!1===t||$.current||(B(c.SF),X(null)))}var Q=(0,p.A)(J),ee=(0,i.A)(Q,1)[0],te=a.useMemo((function(){var e,t,n;switch(V){case"appear":return e={},(0,r.A)(e,c.px,A),(0,r.A)(e,c.Mv,E),(0,r.A)(e,c.m7,S),e;case"enter":return t={},(0,r.A)(t,c.px,O),(0,r.A)(t,c.Mv,j),(0,r.A)(t,c.m7,C),t;case"leave":return n={},(0,r.A)(n,c.px,x),(0,r.A)(n,c.Mv,P),(0,r.A)(n,c.m7,k),n;default:return{}}}),[V]),ne=(0,l.Ay)(V,(function(e){if(e===c.px){var t=te[c.px];return t?t(Z()):l.es}var n;ie in te&&X((null===(n=te[ie])||void 0===n?void 0:n.call(te,Z(),null))||null);return ie===c.m7&&(ee(Z()),g>0&&(clearTimeout(q.current),q.current=setTimeout((function(){J({deadline:!0})}),g))),l.qB})),oe=(0,i.A)(ne,2),re=oe[0],ie=oe[1],ae=(0,l.$m)(ie);K.current=ae,(0,s.A)((function(){z(t);var n,o=U.current;(U.current=!0,e)&&(!o&&t&&h&&(n=c.Tv),o&&t&&v&&(n=c.Wd),(o&&!t&&b||!o&&w&&!t&&b)&&(n=c.dp),n&&(B(n),re()))}),[t]),(0,a.useEffect)((function(){(V===c.Tv&&!h||V===c.Wd&&!v||V===c.dp&&!b)&&B(c.SF)}),[h,v,b]),(0,a.useEffect)((function(){return function(){clearTimeout(q.current),$.current=!0}}),[]),(0,a.useEffect)((function(){void 0!==L&&V===c.SF&&(null==D||D(L))}),[L,V]);var ce=Y;return te[c.px]&&ie===c.Mv&&(ce=(0,o.A)({transition:"none"},ce)),[V,ie,ce,null!=L?L:t]}},58515:(e,t,n)=>{"use strict";n.d(t,{$m:()=>p,Ay:()=>f,es:()=>s,qB:()=>l});var o=n(3453),r=n(39155),i=n(25931),a=n(43982),c=n(84560),u=[i.px,i.Mv,i.m7,i.Hs],s=!1,l=!0;function p(e){return e===i.m7||e===i.Hs}const f=function(e,t){var n=r.useState(i.cE),l=(0,o.A)(n,2),p=l[0],f=l[1],d=(0,c.A)(),v=(0,o.A)(d,2),m=v[0],h=v[1];return(0,a.A)((function(){if(p!==i.cE&&p!==i.Hs){var e=u.indexOf(p),n=u[e+1],o=t(p);o===s?f(n):m((function(e){function t(){e.isCanceled()||f(n)}!0===o?t():Promise.resolve(o).then(t)}))}}),[e,p]),r.useEffect((function(){return function(){h()}}),[]),[function(){f(i.px)},p]}},30156:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(44785);n(97333);const r=o.A},25931:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>p,Mv:()=>s,SF:()=>o,Tv:()=>r,Wd:()=>i,cE:()=>c,dp:()=>a,m7:()=>l,px:()=>u});var o="none",r="appear",i="enter",a="leave",c="none",u="prepare",s="start",l="active",p="end"},29710:(e,t,n)=>{"use strict";n.d(t,{Ss:()=>l,au:()=>c,bK:()=>i,e8:()=>u,xI:()=>a,y$:()=>p});var o=n(89379),r=n(82284),i="add",a="keep",c="remove",u="removed";function s(e){var t;return t=e&&"object"===(0,r.A)(e)&&"key"in e?e:{key:e},(0,o.A)((0,o.A)({},t),{},{key:String(t.key)})}function l(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(s)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,u=t.length,s=l(e),p=l(t);s.forEach((function(e){for(var t=!1,s=r;s<u;s+=1){var l=p[s];if(l.key===e.key){r<s&&(n=n.concat(p.slice(r,s).map((function(e){return(0,o.A)((0,o.A)({},e),{},{status:i})}))),r=s),n.push((0,o.A)((0,o.A)({},l),{},{status:a})),r+=1,t=!0;break}}t||n.push((0,o.A)((0,o.A)({},e),{},{status:c}))})),r<u&&(n=n.concat(p.slice(r).map((function(e){return(0,o.A)((0,o.A)({},e),{},{status:i})}))));var f={};return n.forEach((function(e){var t=e.key;f[t]=(f[t]||0)+1})),Object.keys(f).filter((function(e){return f[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,o=t.status;return n!==e||o!==c}))).forEach((function(t){t.key===e&&(t.status=a)}))})),n}},80371:(e,t,n)=>{"use strict";n.d(t,{J1:()=>h,Vc:()=>y,by:()=>g,m8:()=>b});var o=n(82284),r=n(20998);function i(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var a,c,u,s=(a=(0,r.A)(),c="undefined"!=typeof window?window:{},u={animationend:i("Animation","AnimationEnd"),transitionend:i("Transition","TransitionEnd")},a&&("AnimationEvent"in c||delete u.animationend.animation,"TransitionEvent"in c||delete u.transitionend.transition),u),l={};if((0,r.A)()){var p=document.createElement("div");l=p.style}var f={};function d(e){if(f[e])return f[e];var t=s[e];if(t)for(var n=Object.keys(t),o=n.length,r=0;r<o;r+=1){var i=n[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i in l)return f[e]=t[i],f[e]}return""}var v=d("animationend"),m=d("transitionend"),h=!(!v||!m),y=v||"animationend",b=m||"transitionend";function g(e,t){return e?"object"===(0,o.A)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}},34307:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var o=n(58168),r=n(82284),i=n(89379),a=n(80045),c=n(39155),u=n(1748),s={adjustX:1,adjustY:1},l=[0,0],p={left:{points:["cr","cl"],overflow:s,offset:[-4,0],targetOffset:l},right:{points:["cl","cr"],overflow:s,offset:[4,0],targetOffset:l},top:{points:["bc","tc"],overflow:s,offset:[0,-4],targetOffset:l},bottom:{points:["tc","bc"],overflow:s,offset:[0,4],targetOffset:l},topLeft:{points:["bl","tl"],overflow:s,offset:[0,-4],targetOffset:l},leftTop:{points:["tr","tl"],overflow:s,offset:[-4,0],targetOffset:l},topRight:{points:["br","tr"],overflow:s,offset:[0,-4],targetOffset:l},rightTop:{points:["tl","tr"],overflow:s,offset:[4,0],targetOffset:l},bottomRight:{points:["tr","br"],overflow:s,offset:[0,4],targetOffset:l},rightBottom:{points:["bl","br"],overflow:s,offset:[4,0],targetOffset:l},bottomLeft:{points:["tl","bl"],overflow:s,offset:[0,4],targetOffset:l},leftBottom:{points:["br","bl"],overflow:s,offset:[-4,0],targetOffset:l}};const f=function(e){var t=e.overlay,n=e.prefixCls,o=e.id,r=e.overlayInnerStyle;return c.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:r},"function"==typeof t?t():t)};var d=function(e,t){var n=e.overlayClassName,s=e.trigger,l=void 0===s?["hover"]:s,d=e.mouseEnterDelay,v=void 0===d?0:d,m=e.mouseLeaveDelay,h=void 0===m?.1:m,y=e.overlayStyle,b=e.prefixCls,g=void 0===b?"rc-tooltip":b,w=e.children,A=e.onVisibleChange,O=e.afterVisibleChange,x=e.transitionName,E=e.animation,j=e.motion,P=e.placement,S=void 0===P?"right":P,C=e.align,k=void 0===C?{}:C,T=e.destroyTooltipOnHide,M=void 0!==T&&T,_=e.defaultVisible,D=e.getTooltipContainer,N=e.overlayInnerStyle,R=(0,a.A)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),L=(0,c.useRef)(null);(0,c.useImperativeHandle)(t,(function(){return L.current}));var z=(0,i.A)({},R);"visible"in e&&(z.popupVisible=e.visible);var I=!1,H=!1;if("boolean"==typeof M)I=M;else if(M&&"object"===(0,r.A)(M)){var V=M.keepParent;I=!0===V,H=!1===V}return c.createElement(u.A,(0,o.A)({popupClassName:n,prefixCls:g,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,o=e.overlay,r=e.id;return[c.createElement("div",{className:"".concat(g,"-arrow"),key:"arrow"},n),c.createElement(f,{key:"content",prefixCls:g,id:r,overlay:o,overlayInnerStyle:N})]},action:l,builtinPlacements:p,popupPlacement:S,ref:L,popupAlign:k,getPopupContainer:D,onPopupVisibleChange:A,afterPopupVisibleChange:O,popupTransitionName:x,popupAnimation:E,popupMotion:j,defaultPopupVisible:_,destroyPopupOnHide:I,autoDestroy:H,mouseLeaveDelay:h,popupStyle:y,mouseEnterDelay:v},z),w)};const v=(0,c.forwardRef)(d)},94934:(e,t)=>{"use strict";t.DD=void 0;var n={adjustX:1,adjustY:1},o=[0,0],r={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:o},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:o},top:{points:["bc","tc"],overflow:n,offset:[0,-4],targetOffset:o},bottom:{points:["tc","bc"],overflow:n,offset:[0,4],targetOffset:o},topLeft:{points:["bl","tl"],overflow:n,offset:[0,-4],targetOffset:o},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:o},topRight:{points:["br","tr"],overflow:n,offset:[0,-4],targetOffset:o},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:o},bottomRight:{points:["tr","br"],overflow:n,offset:[0,4],targetOffset:o},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:o},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,4],targetOffset:o},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:o}};t.DD=r},1748:(e,t,n)=>{"use strict";n.d(t,{A:()=>ut});var o=n(89379),r=n(58168),i=n(23029),a=n(92901),c=n(9417),u=n(85501),s=n(29426),l=n(64467),p=n(39155),f=n.n(p),d=n(69514),v=n.n(d),m=n(25371),h=n(54808),y=n(66588),b=n(8719),g=n(69916),w=n(88822),A=n(46942),O=n.n(A);function x(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var E=n(3453),j=n(80045),P=n(68430),S=n(30156);function C(e){var t=e.prefixCls,n=e.motion,o=e.animation,r=e.transitionName;return n||(o?{motionName:"".concat(t,"-").concat(o)}:r?{motionName:r}:null)}function k(e){var t=e.prefixCls,n=e.visible,i=e.zIndex,a=e.mask,c=e.maskMotion,u=e.maskAnimation,s=e.maskTransitionName;if(!a)return null;var l={};return(c||s||u)&&(l=(0,o.A)({motionAppear:!0},C({motion:c,prefixCls:t,transitionName:s,animation:u}))),p.createElement(S.A,(0,r.A)({},l,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return p.createElement("div",{style:{zIndex:i},className:O()("".concat(t,"-mask"),n)})}))}var T,M=n(82284);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e){return N="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},N(e)}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function z(){if(void 0!==T)return T;T="";var e=document.createElement("p").style;for(var t in L)t+"Transform"in e&&(T=t);return T}function I(){return z()?"".concat(z(),"TransitionProperty"):"transitionProperty"}function H(){return z()?"".concat(z(),"Transform"):"transform"}function V(e,t){var n=I();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function B(e,t){var n=H();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var F,W=/matrix\((.*)\)/,Y=/matrix3d\((.*)\)/;function X(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function U(e,t,n){var o=n;if("object"!==N(t))return void 0!==o?("number"==typeof o&&(o="".concat(o,"px")),void(e.style[t]=o)):F(e,t);for(var r in t)t.hasOwnProperty(r)&&U(e,r,t[r])}function q(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function $(e){return q(e)}function G(e){return q(e,!0)}function Z(e){var t=function(e){var t,n,o,r=e.ownerDocument,i=r.body,a=r&&r.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),o=Math.floor(t.top),{left:n-=a.clientLeft||i.clientLeft||0,top:o-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=$(o),t.top+=G(o),t}function K(e){return null!=e&&e==e.window}function J(e){return K(e)?e.document:9===e.nodeType?e:e.ownerDocument}var Q=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),ee=/^(top|right|bottom|left)$/,te="currentStyle",ne="runtimeStyle",oe="left";function re(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function ie(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function ae(e,t,n){"static"===U(e,"position")&&(e.style.position="relative");var o=-999,r=-999,i=re("left",n),a=re("top",n),c=ie(i),u=ie(a);"left"!==i&&(o=999),"top"!==a&&(r=999);var s,l="",p=Z(e);("left"in t||"top"in t)&&(l=(s=e).style.transitionProperty||s.style[I()]||"",V(e,"none")),"left"in t&&(e.style[c]="",e.style[i]="".concat(o,"px")),"top"in t&&(e.style[u]="",e.style[a]="".concat(r,"px")),X(e);var f=Z(e),d={};for(var v in t)if(t.hasOwnProperty(v)){var m=re(v,n),h="left"===v?o:r,y=p[v]-f[v];d[m]=m===v?h+y:h-y}U(e,d),X(e),("left"in t||"top"in t)&&V(e,l);var b={};for(var g in t)if(t.hasOwnProperty(g)){var w=re(g,n),A=t[g]-p[g];b[w]=g===w?d[w]+A:d[w]-A}U(e,b)}function ce(e,t){var n=Z(e),o=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(H());if(n&&"none"!==n){var o=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(o[12]||o[4],0),y:parseFloat(o[13]||o[5],0)}}return{x:0,y:0}}(e),r={x:o.x,y:o.y};"left"in t&&(r.x=o.x+t.left-n.left),"top"in t&&(r.y=o.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),o=n.getPropertyValue("transform")||n.getPropertyValue(H());if(o&&"none"!==o){var r,i=o.match(W);i?((r=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,r[5]=t.y,B(e,"matrix(".concat(r.join(","),")"))):((r=o.match(Y)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,r[13]=t.y,B(e,"matrix3d(".concat(r.join(","),")")))}else B(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,r)}function ue(e,t){for(var n=0;n<e.length;n++)t(e[n])}function se(e){return"border-box"===F(e,"boxSizing")}"undefined"!=typeof window&&(F=window.getComputedStyle?function(e,t,n){var o=n,r="",i=J(e);return(o=o||i.defaultView.getComputedStyle(e,null))&&(r=o.getPropertyValue(t)||o[t]),r}:function(e,t){var n=e[te]&&e[te][t];if(Q.test(n)&&!ee.test(t)){var o=e.style,r=o[oe],i=e[ne][oe];e[ne][oe]=e[te][oe],o[oe]="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o[oe]=r,e[ne][oe]=i}return""===n?"auto":n});var le=["margin","border","padding"],pe=-1,fe=2,de=1;function ve(e,t,n){var o,r,i,a=0;for(r=0;r<t.length;r++)if(o=t[r])for(i=0;i<n.length;i++){var c=void 0;c="border"===o?"".concat(o).concat(n[i],"Width"):o+n[i],a+=parseFloat(F(e,c))||0}return a}var me={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function he(e,t,n){var o=n;if(K(e))return"width"===t?me.viewportWidth(e):me.viewportHeight(e);if(9===e.nodeType)return"width"===t?me.docWidth(e):me.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=se(e),c=0;(null==i||i<=0)&&(i=void 0,(null==(c=F(e,t))||Number(c)<0)&&(c=e.style[t]||0),c=Math.floor(parseFloat(c))||0),void 0===o&&(o=a?de:pe);var u=void 0!==i||a,s=i||c;return o===pe?u?s-ve(e,["border","padding"],r):c:u?o===de?s:s+(o===fe?-ve(e,["border"],r):ve(e,["margin"],r)):c+ve(e,le.slice(o),r)}ue(["Width","Height"],(function(e){me["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],me["viewport".concat(e)](n))},me["viewport".concat(e)]=function(t){var n="client".concat(e),o=t.document,r=o.body,i=o.documentElement[n];return"CSS1Compat"===o.compatMode&&i||r&&r[n]||i}}));var ye={position:"absolute",visibility:"hidden",display:"block"};function be(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o,r=t[0];return 0!==r.offsetWidth?o=he.apply(void 0,t):function(e,t,n){var o,r={},i=e.style;for(o in t)t.hasOwnProperty(o)&&(r[o]=i[o],i[o]=t[o]);for(o in n.call(e),t)t.hasOwnProperty(o)&&(i[o]=r[o])}(r,ye,(function(){o=he.apply(void 0,t)})),o}function ge(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}ue(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);me["outer".concat(t)]=function(t,n){return t&&be(t,e,n?0:de)};var n="width"===e?["Left","Right"]:["Top","Bottom"];me[e]=function(t,o){var r=o;return void 0!==r?t?(se(t)&&(r+=ve(t,["padding","border"],n)),U(t,e,r)):void 0:t&&be(t,e,pe)}}));var we={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:J,offset:function(e,t,n){if(void 0===t)return Z(e);!function(e,t,n){if(n.ignoreShake){var o=Z(e),r=o.left.toFixed(0),i=o.top.toFixed(0),a=t.left.toFixed(0),c=t.top.toFixed(0);if(r===a&&i===c)return}n.useCssRight||n.useCssBottom?ae(e,t,n):n.useCssTransform&&H()in document.body.style?ce(e,t):ae(e,t,n)}(e,t,n||{})},isWindow:K,each:ue,css:U,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:ge,getWindowScrollLeft:function(e){return $(e)},getWindowScrollTop:function(e){return G(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)we.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};ge(we,me);var Ae=we.getParent;function Oe(e){if(we.isWindow(e)||9===e.nodeType)return null;var t,n=we.getDocument(e).body,o=we.css(e,"position");if(!("fixed"===o||"absolute"===o))return"html"===e.nodeName.toLowerCase()?null:Ae(e);for(t=Ae(e);t&&t!==n&&9!==t.nodeType;t=Ae(t))if("static"!==(o=we.css(t,"position")))return t;return null}var xe=we.getParent;function Ee(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},o=Oe(e),r=we.getDocument(e),i=r.defaultView||r.parentWindow,a=r.body,c=r.documentElement;o;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===o.clientWidth||o===a||o===c||"visible"===we.css(o,"overflow")){if(o===a||o===c)break}else{var u=we.offset(o);u.left+=o.clientLeft,u.top+=o.clientTop,n.top=Math.max(n.top,u.top),n.right=Math.min(n.right,u.left+o.clientWidth),n.bottom=Math.min(n.bottom,u.top+o.clientHeight),n.left=Math.max(n.left,u.left)}o=Oe(o)}var s=null;we.isWindow(e)||9===e.nodeType||(s=e.style.position,"absolute"===we.css(e,"position")&&(e.style.position="fixed"));var l=we.getWindowScrollLeft(i),p=we.getWindowScrollTop(i),f=we.viewportWidth(i),d=we.viewportHeight(i),v=c.scrollWidth,m=c.scrollHeight,h=window.getComputedStyle(a);if("hidden"===h.overflowX&&(v=i.innerWidth),"hidden"===h.overflowY&&(m=i.innerHeight),e.style&&(e.style.position=s),t||function(e){if(we.isWindow(e)||9===e.nodeType)return!1;var t=we.getDocument(e),n=t.body,o=null;for(o=xe(e);o&&o!==n&&o!==t;o=xe(o))if("fixed"===we.css(o,"position"))return!0;return!1}(e))n.left=Math.max(n.left,l),n.top=Math.max(n.top,p),n.right=Math.min(n.right,l+f),n.bottom=Math.min(n.bottom,p+d);else{var y=Math.max(v,l+f);n.right=Math.min(n.right,y);var b=Math.max(m,p+d);n.bottom=Math.min(n.bottom,b)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function je(e){var t,n,o;if(we.isWindow(e)||9===e.nodeType){var r=we.getWindow(e);t={left:we.getWindowScrollLeft(r),top:we.getWindowScrollTop(r)},n=we.viewportWidth(r),o=we.viewportHeight(r)}else t=we.offset(e),n=we.outerWidth(e),o=we.outerHeight(e);return t.width=n,t.height=o,t}function Pe(e,t){var n=t.charAt(0),o=t.charAt(1),r=e.width,i=e.height,a=e.left,c=e.top;return"c"===n?c+=i/2:"b"===n&&(c+=i),"c"===o?a+=r/2:"r"===o&&(a+=r),{left:a,top:c}}function Se(e,t,n,o,r){var i=Pe(t,n[1]),a=Pe(e,n[0]),c=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-c[0]+o[0]-r[0]),top:Math.round(e.top-c[1]+o[1]-r[1])}}function Ce(e,t,n){return e.left<n.left||e.left+t.width>n.right}function ke(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function Te(e,t,n){var o=[];return we.each(e,(function(e){o.push(e.replace(t,(function(e){return n[e]})))})),o}function Me(e,t){return e[t]=-e[t],e}function _e(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function De(e,t){e[0]=_e(e[0],t.width),e[1]=_e(e[1],t.height)}function Ne(e,t,n,o){var r=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],c=n.overflow,u=n.source||e;i=[].concat(i),a=[].concat(a);var s={},l=0,p=Ee(u,!(!(c=c||{})||!c.alwaysByViewport)),f=je(u);De(i,f),De(a,t);var d=Se(f,t,r,i,a),v=we.merge(f,d);if(p&&(c.adjustX||c.adjustY)&&o){if(c.adjustX&&Ce(d,f,p)){var m=Te(r,/[lr]/gi,{l:"r",r:"l"}),h=Me(i,0),y=Me(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Se(f,t,m,h,y),f,p)||(l=1,r=m,i=h,a=y)}if(c.adjustY&&ke(d,f,p)){var b=Te(r,/[tb]/gi,{t:"b",b:"t"}),g=Me(i,1),w=Me(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Se(f,t,b,g,w),f,p)||(l=1,r=b,i=g,a=w)}l&&(d=Se(f,t,r,i,a),we.mix(v,d));var A=Ce(d,f,p),O=ke(d,f,p);if(A||O){var x=r;A&&(x=Te(r,/[lr]/gi,{l:"r",r:"l"})),O&&(x=Te(r,/[tb]/gi,{t:"b",b:"t"})),r=x,i=n.offset||[0,0],a=n.targetOffset||[0,0]}s.adjustX=c.adjustX&&A,s.adjustY=c.adjustY&&O,(s.adjustX||s.adjustY)&&(v=function(e,t,n,o){var r=we.clone(e),i={width:t.width,height:t.height};return o.adjustX&&r.left<n.left&&(r.left=n.left),o.resizeWidth&&r.left>=n.left&&r.left+i.width>n.right&&(i.width-=r.left+i.width-n.right),o.adjustX&&r.left+i.width>n.right&&(r.left=Math.max(n.right-i.width,n.left)),o.adjustY&&r.top<n.top&&(r.top=n.top),o.resizeHeight&&r.top>=n.top&&r.top+i.height>n.bottom&&(i.height-=r.top+i.height-n.bottom),o.adjustY&&r.top+i.height>n.bottom&&(r.top=Math.max(n.bottom-i.height,n.top)),we.mix(r,i)}(d,f,p,s))}return v.width!==f.width&&we.css(u,"width",we.width(u)+v.width-f.width),v.height!==f.height&&we.css(u,"height",we.height(u)+v.height-f.height),we.offset(u,{left:v.left,top:v.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:r,offset:i,targetOffset:a,overflow:s}}function Re(e,t,n){var o=n.target||t,r=je(o),i=!function(e,t){var n=Ee(e,t),o=je(e);return!n||o.left+o.width<=n.left||o.top+o.height<=n.top||o.left>=n.right||o.top>=n.bottom}(o,n.overflow&&n.overflow.alwaysByViewport);return Ne(e,r,n,i)}Re.__getOffsetParent=Oe,Re.__getVisibleRectForElement=Ee;var Le=n(43210),ze=n(42467),Ie=n(30981);var He=n(43591);function Ve(e,t){var n=null,o=null;var r=new He.default((function(e){var r=(0,E.A)(e,1)[0].target;if(document.documentElement.contains(r)){var i=r.getBoundingClientRect(),a=i.width,c=i.height,u=Math.floor(a),s=Math.floor(c);n===u&&o===s||Promise.resolve().then((function(){t({width:u,height:s})})),n=u,o=s}}));return e&&r.observe(e),function(){r.disconnect()}}function Be(e){return"function"!=typeof e?null:e()}function Fe(e){return"object"===(0,M.A)(e)&&e?e:null}var We=function(e,t){var n=e.children,o=e.disabled,r=e.target,i=e.align,a=e.onAlign,c=e.monitorWindowResize,u=e.monitorBufferTime,s=void 0===u?0:u,l=f().useRef({}),p=f().useRef(),d=f().Children.only(n),v=f().useRef({});v.current.disabled=o,v.current.target=r,v.current.align=i,v.current.onAlign=a;var m=function(e,t){var n=f().useRef(!1),o=f().useRef(null);function r(){window.clearTimeout(o.current)}return[function i(a){if(r(),n.current&&!0!==a)o.current=window.setTimeout((function(){n.current=!1,i()}),t);else{if(!1===e(a))return;n.current=!0,o.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,r()}]}((function(){var e=v.current,t=e.disabled,n=e.target,o=e.align,r=e.onAlign,i=p.current;if(!t&&n&&i){var a,c=Be(n),u=Fe(n);l.current.element=c,l.current.point=u,l.current.align=o;var s=document.activeElement;return c&&(0,ze.A)(c)?a=Re(i,c,o):u&&(a=function(e,t,n){var o,r,i=we.getDocument(e),a=i.defaultView||i.parentWindow,c=we.getWindowScrollLeft(a),u=we.getWindowScrollTop(a),s=we.viewportWidth(a),l=we.viewportHeight(a),p={left:o="pageX"in t?t.pageX:c+t.clientX,top:r="pageY"in t?t.pageY:u+t.clientY,width:0,height:0},f=o>=0&&o<=c+s&&r>=0&&r<=u+l,d=[n.points[0],"cc"];return Ne(e,p,D(D({},n),{},{points:d}),f)}(i,u,o)),function(e,t){e!==document.activeElement&&(0,h.A)(t,e)&&"function"==typeof e.focus&&e.focus()}(s,i),r&&a&&r(i,a),!0}return!1}),s),y=(0,E.A)(m,2),w=y[0],A=y[1],O=f().useState(),x=(0,E.A)(O,2),j=x[0],P=x[1],S=f().useState(),C=(0,E.A)(S,2),k=C[0],T=C[1];return(0,Ie.A)((function(){P(Be(r)),T(Fe(r))})),f().useEffect((function(){var e,t;l.current.element===j&&((e=l.current.point)===(t=k)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&(0,Le.A)(l.current.align,i)||w()})),f().useEffect((function(){return Ve(p.current,w)}),[p.current]),f().useEffect((function(){return Ve(j,w)}),[j]),f().useEffect((function(){o?A():w()}),[o]),f().useEffect((function(){if(c)return(0,g.A)(window,"resize",w).remove}),[c]),f().useEffect((function(){return function(){A()}}),[]),f().useImperativeHandle(t,(function(){return{forceAlign:function(){return w(!0)}}})),f().isValidElement(d)&&(d=f().cloneElement(d,{ref:(0,b.K4)(d.ref,p)})),d},Ye=f().forwardRef(We);Ye.displayName="Align";const Xe=Ye;function Ue(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
21
|
-
Ue=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new T(o||[]);return r(a,"_invoke",{value:P(e,n,c)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",m="completed",h={};function y(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var A=Object.getPrototypeOf,O=A&&A(A(_([])));O&&O!==n&&o.call(O,a)&&(w=O);var x=g.prototype=y.prototype=Object.create(w);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(r,i,a,c){var u=p(e[r],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==(0,M.A)(l)&&o.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function P(t,n,o){var r=f;return function(i,a){if(r===v)throw Error("Generator is already running");if(r===m){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var c=o.delegate;if(c){var u=S(c,o);if(u){if(u===h)continue;return u}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===f)throw r=m,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=v;var s=p(t,n,o);if("normal"===s.type){if(r=o.done?m:d,s.arg===h)continue;return{value:s.arg,done:o.done}}"throw"===s.type&&(r=m,o.method="throw",o.arg=s.arg)}}}function S(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),h;var i=p(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,h;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function _(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError((0,M.A)(t)+" is not iterable")}return b.prototype=g,r(x,"constructor",{value:g,configurable:!0}),r(g,"constructor",{value:b,configurable:!0}),b.displayName=s(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},E(j.prototype),s(j.prototype,c,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new j(l(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(x),s(x,u,"Generator"),s(x,a,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=_,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(o,r){return c.type="throw",c.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;k(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:_(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),h}},t}var qe=n(10467),$e=n(1233),Ge=["measure","alignPre","align",null,"motion"];var Ze=p.forwardRef((function(e,t){var n=e.visible,i=e.prefixCls,a=e.className,c=e.style,u=e.children,s=e.zIndex,l=e.stretch,f=e.destroyPopupOnHide,d=e.forceRender,v=e.align,h=e.point,y=e.getRootDomNode,b=e.getClassNameFromAlign,g=e.onAlign,w=e.onMouseEnter,A=e.onMouseLeave,x=e.onMouseDown,j=e.onTouchStart,P=e.onClick,k=(0,p.useRef)(),T=(0,p.useRef)(),M=(0,p.useState)(),_=(0,E.A)(M,2),D=_[0],N=_[1],R=function(e){var t=p.useState({width:0,height:0}),n=(0,E.A)(t,2),o=n[0],r=n[1];return[p.useMemo((function(){var t={};if(e){var n=o.width,r=o.height;-1!==e.indexOf("height")&&r?t.height=r:-1!==e.indexOf("minHeight")&&r&&(t.minHeight=r),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,o]),function(e){var t=e.offsetWidth,n=e.offsetHeight,o=e.getBoundingClientRect(),i=o.width,a=o.height;Math.abs(t-i)<1&&Math.abs(n-a)<1&&(t=i,n=a),r({width:t,height:n})}]}(l),L=(0,E.A)(R,2),z=L[0],I=L[1];var H=function(e,t){var n=(0,$e.A)(null),o=(0,E.A)(n,2),r=o[0],i=o[1],a=(0,p.useRef)();function c(e){i(e,!0)}function u(){m.A.cancel(a.current)}return(0,p.useEffect)((function(){c("measure")}),[e]),(0,p.useEffect)((function(){"measure"===r&&t(),r&&(a.current=(0,m.A)((0,qe.A)(Ue().mark((function e(){var t,n;return Ue().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Ge.indexOf(r),(n=Ge[t+1])&&-1!==t&&c(n);case 3:case"end":return e.stop()}}),e)})))))}),[r]),(0,p.useEffect)((function(){return function(){u()}}),[]),[r,function(e){u(),a.current=(0,m.A)((function(){c((function(e){switch(r){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){l&&I(y())})),V=(0,E.A)(H,2),B=V[0],F=V[1],W=(0,p.useState)(0),Y=(0,E.A)(W,2),X=Y[0],U=Y[1],q=(0,p.useRef)();function $(){var e;null===(e=k.current)||void 0===e||e.forceAlign()}function G(e,t){var n=b(t);D!==n&&N(n),U((function(e){return e+1})),"align"===B&&(null==g||g(e,t))}(0,Ie.A)((function(){"alignPre"===B&&U(0)}),[B]),(0,Ie.A)((function(){"align"===B&&(X<3?$():F((function(){var e;null===(e=q.current)||void 0===e||e.call(q)})))}),[X]);var Z=(0,o.A)({},C(e));function K(){return new Promise((function(e){q.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=Z[e];Z[e]=function(e,n){return F(),null==t?void 0:t(e,n)}})),p.useEffect((function(){Z.motionName||"motion"!==B||F()}),[Z.motionName,B]),p.useImperativeHandle(t,(function(){return{forceAlign:$,getElement:function(){return T.current}}}));var J=(0,o.A)((0,o.A)({},z),{},{zIndex:s,opacity:"motion"!==B&&"stable"!==B&&n?0:void 0,pointerEvents:n||"stable"===B?void 0:"none"},c),Q=!0;null==v||!v.points||"align"!==B&&"stable"!==B||(Q=!1);var ee=u;return p.Children.count(u)>1&&(ee=p.createElement("div",{className:"".concat(i,"-content")},u)),p.createElement(S.A,(0,r.A)({visible:n,ref:T,leavedClassName:"".concat(i,"-hidden")},Z,{onAppearPrepare:K,onEnterPrepare:K,removeOnLeave:f,forceRender:d}),(function(e,t){var n=e.className,r=e.style,c=O()(i,a,D,n);return p.createElement(Xe,{target:h||y,key:"popup",ref:k,monitorWindowResize:!0,disabled:Q,align:v,onAlign:G},p.createElement("div",{ref:t,className:c,onMouseEnter:w,onMouseLeave:A,onMouseDownCapture:x,onTouchStartCapture:j,onClick:P,style:(0,o.A)((0,o.A)({},r),J)},ee))}))}));Ze.displayName="PopupInner";const Ke=Ze;var Je=p.forwardRef((function(e,t){var n=e.prefixCls,i=e.visible,a=e.zIndex,c=e.children,u=e.mobile,s=(u=void 0===u?{}:u).popupClassName,l=u.popupStyle,f=u.popupMotion,d=void 0===f?{}:f,v=u.popupRender,m=e.onClick,h=p.useRef();p.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return h.current}}}));var y=(0,o.A)({zIndex:a},l),b=c;return p.Children.count(c)>1&&(b=p.createElement("div",{className:"".concat(n,"-content")},c)),v&&(b=v(b)),p.createElement(S.A,(0,r.A)({visible:i,ref:h,removeOnLeave:!0},d),(function(e,t){var r=e.className,i=e.style,a=O()(n,s,r);return p.createElement("div",{ref:t,className:a,onClick:m,style:(0,o.A)((0,o.A)({},i),y)},b)}))}));Je.displayName="MobilePopupInner";const Qe=Je;var et=["visible","mobile"],tt=p.forwardRef((function(e,t){var n=e.visible,i=e.mobile,a=(0,j.A)(e,et),c=(0,p.useState)(n),u=(0,E.A)(c,2),s=u[0],l=u[1],f=(0,p.useState)(!1),d=(0,E.A)(f,2),v=d[0],m=d[1],h=(0,o.A)((0,o.A)({},a),{},{visible:s});(0,p.useEffect)((function(){l(n),n&&i&&m((0,P.A)())}),[n,i]);var y=v?p.createElement(Qe,(0,r.A)({},h,{mobile:i,ref:t})):p.createElement(Ke,(0,r.A)({},h,{ref:t}));return p.createElement("div",null,p.createElement(k,h),y)}));tt.displayName="Popup";const nt=tt;const ot=p.createContext(null);function rt(){}function it(){return""}function at(e){return e?e.ownerDocument:window.document}var ct=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const ut=(st=w.A,lt=function(e){(0,u.A)(n,e);var t=(0,s.A)(n);function n(e){var o,a;return(0,i.A)(this,n),o=t.call(this,e),(0,l.A)((0,c.A)(o),"popupRef",p.createRef()),(0,l.A)((0,c.A)(o),"triggerRef",p.createRef()),(0,l.A)((0,c.A)(o),"portalContainer",void 0),(0,l.A)((0,c.A)(o),"attachId",void 0),(0,l.A)((0,c.A)(o),"clickOutsideHandler",void 0),(0,l.A)((0,c.A)(o),"touchOutsideHandler",void 0),(0,l.A)((0,c.A)(o),"contextMenuOutsideHandler1",void 0),(0,l.A)((0,c.A)(o),"contextMenuOutsideHandler2",void 0),(0,l.A)((0,c.A)(o),"mouseDownTimeout",void 0),(0,l.A)((0,c.A)(o),"focusTime",void 0),(0,l.A)((0,c.A)(o),"preClickTime",void 0),(0,l.A)((0,c.A)(o),"preTouchTime",void 0),(0,l.A)((0,c.A)(o),"delayTimer",void 0),(0,l.A)((0,c.A)(o),"hasPopupMouseDown",void 0),(0,l.A)((0,c.A)(o),"onMouseEnter",(function(e){var t=o.props.mouseEnterDelay;o.fireEvents("onMouseEnter",e),o.delaySetPopupVisible(!0,t,t?null:e)})),(0,l.A)((0,c.A)(o),"onMouseMove",(function(e){o.fireEvents("onMouseMove",e),o.setPoint(e)})),(0,l.A)((0,c.A)(o),"onMouseLeave",(function(e){o.fireEvents("onMouseLeave",e),o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)})),(0,l.A)((0,c.A)(o),"onPopupMouseEnter",(function(){o.clearDelayTimer()})),(0,l.A)((0,c.A)(o),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,h.A)(null===(t=o.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)})),(0,l.A)((0,c.A)(o),"onFocus",(function(e){o.fireEvents("onFocus",e),o.clearDelayTimer(),o.isFocusToShow()&&(o.focusTime=Date.now(),o.delaySetPopupVisible(!0,o.props.focusDelay))})),(0,l.A)((0,c.A)(o),"onMouseDown",(function(e){o.fireEvents("onMouseDown",e),o.preClickTime=Date.now()})),(0,l.A)((0,c.A)(o),"onTouchStart",(function(e){o.fireEvents("onTouchStart",e),o.preTouchTime=Date.now()})),(0,l.A)((0,c.A)(o),"onBlur",(function(e){o.fireEvents("onBlur",e),o.clearDelayTimer(),o.isBlurToHide()&&o.delaySetPopupVisible(!1,o.props.blurDelay)})),(0,l.A)((0,c.A)(o),"onContextMenu",(function(e){e.preventDefault(),o.fireEvents("onContextMenu",e),o.setPopupVisible(!0,e)})),(0,l.A)((0,c.A)(o),"onContextMenuClose",(function(){o.isContextMenuToShow()&&o.close()})),(0,l.A)((0,c.A)(o),"onClick",(function(e){if(o.fireEvents("onClick",e),o.focusTime){var t;if(o.preClickTime&&o.preTouchTime?t=Math.min(o.preClickTime,o.preTouchTime):o.preClickTime?t=o.preClickTime:o.preTouchTime&&(t=o.preTouchTime),Math.abs(t-o.focusTime)<20)return;o.focusTime=0}o.preClickTime=0,o.preTouchTime=0,o.isClickToShow()&&(o.isClickToHide()||o.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!o.state.popupVisible;(o.isClickToHide()&&!n||n&&o.isClickToShow())&&o.setPopupVisible(!o.state.popupVisible,e)})),(0,l.A)((0,c.A)(o),"onPopupMouseDown",(function(){var e;o.hasPopupMouseDown=!0,clearTimeout(o.mouseDownTimeout),o.mouseDownTimeout=window.setTimeout((function(){o.hasPopupMouseDown=!1}),0),o.context&&(e=o.context).onPopupMouseDown.apply(e,arguments)})),(0,l.A)((0,c.A)(o),"onDocumentClick",(function(e){if(!o.props.mask||o.props.maskClosable){var t=e.target,n=o.getRootDomNode(),r=o.getPopupDomNode();(0,h.A)(n,t)&&!o.isContextMenuOnly()||(0,h.A)(r,t)||o.hasPopupMouseDown||o.close()}})),(0,l.A)((0,c.A)(o),"getRootDomNode",(function(){var e=o.props.getTriggerDOMNode;if(e)return e(o.triggerRef.current);try{var t=(0,y.A)(o.triggerRef.current);if(t)return t}catch(e){}return v().findDOMNode((0,c.A)(o))})),(0,l.A)((0,c.A)(o),"getPopupClassNameFromAlign",(function(e){var t=[],n=o.props,r=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,c=n.alignPoint,u=n.getPopupClassNameFromAlign;return r&&i&&t.push(function(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var c=i[a];if(x(e[c].points,r,o))return"".concat(t,"-placement-").concat(c)}return""}(i,a,e,c)),u&&t.push(u(e)),t.join(" ")})),(0,l.A)((0,c.A)(o),"getComponent",(function(){var e=o.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,a=e.onPopupAlign,c=e.popupMotion,u=e.popupAnimation,s=e.popupTransitionName,l=e.popupStyle,f=e.mask,d=e.maskAnimation,v=e.maskTransitionName,m=e.maskMotion,h=e.zIndex,y=e.popup,b=e.stretch,g=e.alignPoint,w=e.mobile,A=e.forceRender,O=e.onPopupClick,x=o.state,E=x.popupVisible,j=x.point,P=o.getPopupAlign(),S={};return o.isMouseEnterToShow()&&(S.onMouseEnter=o.onPopupMouseEnter),o.isMouseLeaveToHide()&&(S.onMouseLeave=o.onPopupMouseLeave),S.onMouseDown=o.onPopupMouseDown,S.onTouchStart=o.onPopupMouseDown,p.createElement(nt,(0,r.A)({prefixCls:t,destroyPopupOnHide:n,visible:E,point:g&&j,className:i,align:P,onAlign:a,animation:u,getClassNameFromAlign:o.getPopupClassNameFromAlign},S,{stretch:b,getRootDomNode:o.getRootDomNode,style:l,mask:f,zIndex:h,transitionName:s,maskAnimation:d,maskTransitionName:v,maskMotion:m,ref:o.popupRef,motion:c,mobile:w,forceRender:A,onClick:O}),"function"==typeof y?y():y)})),(0,l.A)((0,c.A)(o),"attachParent",(function(e){m.A.cancel(o.attachId);var t,n=o.props,r=n.getPopupContainer,i=n.getDocument,a=o.getRootDomNode();r?(a||0===r.length)&&(t=r(a)):t=i(o.getRootDomNode()).body,t?t.appendChild(e):o.attachId=(0,m.A)((function(){o.attachParent(e)}))})),(0,l.A)((0,c.A)(o),"getContainer",(function(){if(!o.portalContainer){var e=(0,o.props.getDocument)(o.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",o.portalContainer=e}return o.attachParent(o.portalContainer),o.portalContainer})),(0,l.A)((0,c.A)(o),"setPoint",(function(e){o.props.alignPoint&&e&&o.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,l.A)((0,c.A)(o),"handlePortalUpdate",(function(){o.state.prevPopupVisible!==o.state.popupVisible&&o.props.afterPopupVisibleChange(o.state.popupVisible)})),(0,l.A)((0,c.A)(o),"triggerContextValue",{onPopupMouseDown:o.onPopupMouseDown}),a="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,o.state={prevPopupVisible:a,popupVisible:a},ct.forEach((function(e){o["fire".concat(e)]=function(t){o.fireEvents(e,t)}})),o}return(0,a.A)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,g.A)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,g.A)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,g.A)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,g.A)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),m.A.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,n){var r=e[t]||{};return(0,o.A)((0,o.A)({},r),n)}(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,o=this.state.popupVisible;this.clearDelayTimer(),o!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:o}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var o=this,r=1e3*t;if(this.clearDelayTimer(),r){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){o.setPopupVisible(e,i),o.clearDelayTimer()}),r)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var o=this.props[e];o&&o(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,r=t.forceRender,i=t.alignPoint,a=t.className,c=t.autoDestroy,u=p.Children.only(n),s={key:"trigger"};this.isContextMenuToShow()?s.onContextMenu=this.onContextMenu:s.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(s.onClick=this.onClick,s.onMouseDown=this.onMouseDown,s.onTouchStart=this.onTouchStart):(s.onClick=this.createTwoChains("onClick"),s.onMouseDown=this.createTwoChains("onMouseDown"),s.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(s.onMouseEnter=this.onMouseEnter,i&&(s.onMouseMove=this.onMouseMove)):s.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?s.onMouseLeave=this.onMouseLeave:s.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(s.onFocus=this.onFocus,s.onBlur=this.onBlur):(s.onFocus=this.createTwoChains("onFocus"),s.onBlur=this.createTwoChains("onBlur"));var l=O()(u&&u.props&&u.props.className,a);l&&(s.className=l);var f=(0,o.A)({},s);(0,b.f3)(u)&&(f.ref=(0,b.K4)(this.triggerRef,u.ref));var d,v=p.cloneElement(u,f);return(e||this.popupRef.current||r)&&(d=p.createElement(st,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&c&&(d=null),p.createElement(ot.Provider,{value:this.triggerContextValue},v,d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,o={};return void 0!==n&&t.popupVisible!==n&&(o.popupVisible=n,o.prevPopupVisible=t.popupVisible),o}}]),n}(p.Component),(0,l.A)(lt,"contextType",ot),(0,l.A)(lt,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:it,getDocument:at,onPopupVisibleChange:rt,afterPopupVisibleChange:rt,onPopupAlign:rt,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),lt);var st,lt},69916:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(69514),r=n.n(o);function i(e,t,n,o){var i=r().unstable_batchedUpdates?function(e){r().unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,i,o),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,i,o)}}}},20998:(e,t,n)=>{"use strict";function o(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>o})},54808:(e,t,n)=>{"use strict";function o(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{A:()=>o})},66588:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var o=n(39155),r=n.n(o),i=n(69514),a=n.n(i);function c(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof r().Component?a().findDOMNode(e):null}},42467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,o=t.height;if(n||o)return!0}if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),i=r.width,a=r.height;if(i||a)return!0}}return!1}},88822:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var o=n(39155),r=n(69514),i=n.n(r),a=n(20998);const c=(0,o.forwardRef)((function(e,t){var n=e.didUpdate,r=e.getContainer,c=e.children,u=(0,o.useRef)(),s=(0,o.useRef)();(0,o.useImperativeHandle)(t,(function(){return{}}));var l=(0,o.useRef)(!1);return!l.current&&(0,a.A)()&&(s.current=r(),u.current=s.current.parentNode,l.current=!0),(0,o.useEffect)((function(){null==n||n(e)})),(0,o.useEffect)((function(){return null===s.current.parentNode&&null!==u.current&&u.current.appendChild(s.current),function(){var e;null===(e=s.current)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(s.current)}}),[]),s.current?i().createPortal(c,s.current):null}))},30981:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(39155),r=(0,n(20998).A)()?o.useLayoutEffect:o.useEffect,i=function(e,t){var n=o.useRef(!0);r((function(){return e(n.current)}),t),r((function(){return n.current=!1,function(){n.current=!0}}),[])};const a=i},28104:(e,t,n)=>{"use strict";n(39155)},1233:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(3453),r=n(39155);function i(e){var t=r.useRef(!1),n=r.useState(e),i=(0,o.A)(n,2),a=i[0],c=i[1];return r.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,n){n&&t.current||c(e)}]}},43210:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(82284),r=n(68210);const i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,u=i.has(t);if((0,r.Ay)(!u,"Warning: There may be circular references"),u)return!1;if(t===a)return!0;if(n&&c>1)return!1;i.add(t);var s=c+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],a[l],s))return!1;return!0}if(t&&a&&"object"===(0,o.A)(t)&&"object"===(0,o.A)(a)){var p=Object.keys(t);return p.length===Object.keys(a).length&&p.every((function(n){return e(t[n],a[n],s)}))}return!1}(e,t)}},68430:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}},25371:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=function(e){return+setTimeout(e,16)},r=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(o=function(e){return window.requestAnimationFrame(e)},r=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map;function c(e){a.delete(e)}var u=function(e){var t=i+=1;return function n(r){if(0===r)c(t),e();else{var i=o((function(){n(r-1)}));a.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};u.cancel=function(e){var t=a.get(e);return c(e),r(t)};const s=u},8719:(e,t,n)=>{"use strict";n.d(t,{K4:()=>a,Xf:()=>i,f3:()=>c});var o=n(82284),r=(n(39155),n(44363)),i=(n(28104),function(e,t){"function"==typeof e?e(t):"object"===(0,o.A)(e)&&e&&"current"in e&&(e.current=t)}),a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.filter(Boolean);return o.length<=1?o[0]:function(e){t.forEach((function(t){i(t,e)}))}},c=function(e){var t,n,o=(0,r.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof o||null!==(t=o.prototype)&&void 0!==t&&t.render||o.$$typeof===r.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===r.ForwardRef)}},68210:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var o={},r=[];function i(e,t){}function a(e,t){}function c(e,t,n){t||o[n]||(e(!1,n),o[n]=!0)}function u(e,t){c(i,e,t)}u.preMessage=function(e){r.push(e)},u.resetWarned=function(){o={}},u.noteOnce=function(e,t){c(a,e,t)};const s=u},22799:(e,t)=>{"use strict";var n,o=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");
|
|
20
|
+
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var i,a,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var s in i=Object(arguments[u]))n.call(i,s)&&(c[s]=i[s]);if(t){a=t(i);for(var l=0;l<a.length;l++)o.call(i,a[l])&&(c[a[l]]=i[a[l]])}}return c}},44785:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var o=n(64467),r=n(89379),i=n(3453),a=n(82284),c=n(39155),u=n(66588),s=n(8719),l=n(46942),p=n.n(l),f=n(80371),d=n(25931),v=n(25318),m=n(72137),h=n(58515);const y=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,a.A)(e)&&(t=e.transitionSupport);var l=c.forwardRef((function(e,t){var a=e.visible,l=void 0===a||a,y=e.removeOnLeave,b=void 0===y||y,g=e.forceRender,w=e.children,A=e.motionName,O=e.leavedClassName,x=e.eventProps,E=n(e),j=(0,c.useRef)(),P=(0,c.useRef)();var S=(0,v.A)(E,l,(function(){try{return(0,u.Ay)(j.current||P.current)}catch(e){return null}}),e),C=(0,i.A)(S,4),k=C[0],T=C[1],M=C[2],_=C[3],D=c.useRef(_);_&&(D.current=!0);var N=(0,c.useRef)(t);N.current=t;var R,L=c.useCallback((function(e){j.current=e,(0,s.Xf)(N.current,e)}),[]),z=(0,r.A)((0,r.A)({},x),{},{visible:l});if(w)if(k!==d.SF&&n(e)){var I,V;T===d.px?V="prepare":(0,h.$m)(T)?V="active":T===d.Mv&&(V="start"),R=w((0,r.A)((0,r.A)({},z),{},{className:p()((0,f.by)(A,k),(I={},(0,o.A)(I,(0,f.by)(A,"".concat(k,"-").concat(V)),V),(0,o.A)(I,A,"string"==typeof A),I)),style:M}),L)}else R=_?w((0,r.A)({},z),L):!b&&D.current?w((0,r.A)((0,r.A)({},z),{},{className:O}),L):g?w((0,r.A)((0,r.A)({},z),{},{style:{display:"none"}}),L):null;else R=null;return c.createElement(m.A,{ref:P},R)}));return l.displayName="CSSMotion",l}(f.J1)},97333:(e,t,n)=>{"use strict";var o=n(58168),r=n(80045),i=n(89379),a=n(23029),c=n(92901),u=n(85501),s=n(29426),l=n(39155),p=n(44785),f=n(80371),d=n(29710),v=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.A,n=function(e){(0,u.A)(p,e);var n=(0,s.A)(p);function p(){var e;return(0,a.A)(this,p),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,i.A)((0,i.A)({},e),{},{status:d.e8})}))}}))},e}return(0,c.A)(p,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,i=this.props,a=i.component,c=i.children,u=i.onVisibleChanged,s=(0,r.A)(i,["component","children","onVisibleChanged"]),p=a||l.Fragment,f={};return v.forEach((function(e){f[e]=s[e],delete s[e]})),delete s.keys,l.createElement(p,s,n.map((function(n){var i=n.status,a=(0,r.A)(n,["status"]),s=i===d.bK||i===d.xI;return l.createElement(t,(0,o.A)({},f,{key:a.key,visible:s,eventProps:a,onVisibleChanged:function(t){null==u||u(t,{key:a.key}),t||e.removeKey(a.key)}}),c)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=(0,d.Ss)(n);return{keyEntities:(0,d.y$)(o,r).filter((function(e){var t=o.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==d.e8||e.status!==d.au}))}}}]),p}(l.Component);n.defaultProps={component:"div"}}(f.J1)},72137:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var o=n(23029),r=n(92901),i=n(85501),a=n(29426),c=n(39155);const u=function(e){(0,i.A)(n,e);var t=(0,a.A)(n);function n(){return(0,o.A)(this,n),t.apply(this,arguments)}return(0,r.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component)},85849:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(39155),r=n(80371);const i=function(e){var t=(0,o.useRef)(),n=(0,o.useRef)(e);n.current=e;var i=o.useCallback((function(e){n.current(e)}),[]);function a(e){e&&(e.removeEventListener(r.m8,i),e.removeEventListener(r.Vc,i))}return o.useEffect((function(){return function(){a(t.current)}}),[]),[function(e){t.current&&t.current!==e&&a(t.current),e&&e!==t.current&&(e.addEventListener(r.m8,i),e.addEventListener(r.Vc,i),t.current=e)},a]}},43982:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(39155);const r=(0,n(20998).A)()?o.useLayoutEffect:o.useEffect},84560:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(39155),r=n(25371);const i=function(){var e=o.useRef(null);function t(){r.A.cancel(e.current)}return o.useEffect((function(){return function(){t()}}),[]),[function n(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var a=(0,r.A)((function(){i<=1?o({isCanceled:function(){return a!==e.current}}):n(o,i-1)}));e.current=a},t]}},92659:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(3453),r=n(39155);function i(e){var t=(0,r.useRef)(!1),n=(0,r.useState)(e),i=(0,o.A)(n,2),a=i[0],c=i[1];return(0,r.useEffect)((function(){return function(){t.current=!0}}),[]),[a,function(e){t.current||c(e)}]}},25318:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var o=n(89379),r=n(64467),i=n(3453),a=n(39155),c=n(25931),u=n(92659),s=n(43982),l=n(58515),p=n(85849);function f(e,t,n,f){var d=f.motionEnter,v=void 0===d||d,m=f.motionAppear,h=void 0===m||m,y=f.motionLeave,b=void 0===y||y,g=f.motionDeadline,w=f.motionLeaveImmediately,A=f.onAppearPrepare,O=f.onEnterPrepare,x=f.onLeavePrepare,E=f.onAppearStart,j=f.onEnterStart,P=f.onLeaveStart,S=f.onAppearActive,C=f.onEnterActive,k=f.onLeaveActive,T=f.onAppearEnd,M=f.onEnterEnd,_=f.onLeaveEnd,D=f.onVisibleChanged,N=(0,u.A)(),R=(0,i.A)(N,2),L=R[0],z=R[1],I=(0,u.A)(c.SF),V=(0,i.A)(I,2),H=V[0],B=V[1],F=(0,u.A)(null),W=(0,i.A)(F,2),Y=W[0],X=W[1],U=(0,a.useRef)(!1),q=(0,a.useRef)(null),$=(0,a.useRef)(!1),G=(0,a.useRef)(null);function Z(){return n()||G.current}var K=(0,a.useRef)(!1);function J(e){var t,n=Z();e&&!e.deadline&&e.target!==n||(H===c.Tv&&K.current?t=null==T?void 0:T(n,e):H===c.Wd&&K.current?t=null==M?void 0:M(n,e):H===c.dp&&K.current&&(t=null==_?void 0:_(n,e)),!1===t||$.current||(B(c.SF),X(null)))}var Q=(0,p.A)(J),ee=(0,i.A)(Q,1)[0],te=a.useMemo((function(){var e,t,n;switch(H){case"appear":return e={},(0,r.A)(e,c.px,A),(0,r.A)(e,c.Mv,E),(0,r.A)(e,c.m7,S),e;case"enter":return t={},(0,r.A)(t,c.px,O),(0,r.A)(t,c.Mv,j),(0,r.A)(t,c.m7,C),t;case"leave":return n={},(0,r.A)(n,c.px,x),(0,r.A)(n,c.Mv,P),(0,r.A)(n,c.m7,k),n;default:return{}}}),[H]),ne=(0,l.Ay)(H,(function(e){if(e===c.px){var t=te[c.px];return t?t(Z()):l.es}var n;ie in te&&X((null===(n=te[ie])||void 0===n?void 0:n.call(te,Z(),null))||null);return ie===c.m7&&(ee(Z()),g>0&&(clearTimeout(q.current),q.current=setTimeout((function(){J({deadline:!0})}),g))),l.qB})),oe=(0,i.A)(ne,2),re=oe[0],ie=oe[1],ae=(0,l.$m)(ie);K.current=ae,(0,s.A)((function(){z(t);var n,o=U.current;(U.current=!0,e)&&(!o&&t&&h&&(n=c.Tv),o&&t&&v&&(n=c.Wd),(o&&!t&&b||!o&&w&&!t&&b)&&(n=c.dp),n&&(B(n),re()))}),[t]),(0,a.useEffect)((function(){(H===c.Tv&&!h||H===c.Wd&&!v||H===c.dp&&!b)&&B(c.SF)}),[h,v,b]),(0,a.useEffect)((function(){return function(){clearTimeout(q.current),$.current=!0}}),[]),(0,a.useEffect)((function(){void 0!==L&&H===c.SF&&(null==D||D(L))}),[L,H]);var ce=Y;return te[c.px]&&ie===c.Mv&&(ce=(0,o.A)({transition:"none"},ce)),[H,ie,ce,null!=L?L:t]}},58515:(e,t,n)=>{"use strict";n.d(t,{$m:()=>p,Ay:()=>f,es:()=>s,qB:()=>l});var o=n(3453),r=n(39155),i=n(25931),a=n(43982),c=n(84560),u=[i.px,i.Mv,i.m7,i.Hs],s=!1,l=!0;function p(e){return e===i.m7||e===i.Hs}const f=function(e,t){var n=r.useState(i.cE),l=(0,o.A)(n,2),p=l[0],f=l[1],d=(0,c.A)(),v=(0,o.A)(d,2),m=v[0],h=v[1];return(0,a.A)((function(){if(p!==i.cE&&p!==i.Hs){var e=u.indexOf(p),n=u[e+1],o=t(p);o===s?f(n):m((function(e){function t(){e.isCanceled()||f(n)}!0===o?t():Promise.resolve(o).then(t)}))}}),[e,p]),r.useEffect((function(){return function(){h()}}),[]),[function(){f(i.px)},p]}},30156:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(44785);n(97333);const r=o.A},25931:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>p,Mv:()=>s,SF:()=>o,Tv:()=>r,Wd:()=>i,cE:()=>c,dp:()=>a,m7:()=>l,px:()=>u});var o="none",r="appear",i="enter",a="leave",c="none",u="prepare",s="start",l="active",p="end"},29710:(e,t,n)=>{"use strict";n.d(t,{Ss:()=>l,au:()=>c,bK:()=>i,e8:()=>u,xI:()=>a,y$:()=>p});var o=n(89379),r=n(82284),i="add",a="keep",c="remove",u="removed";function s(e){var t;return t=e&&"object"===(0,r.A)(e)&&"key"in e?e:{key:e},(0,o.A)((0,o.A)({},t),{},{key:String(t.key)})}function l(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(s)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,u=t.length,s=l(e),p=l(t);s.forEach((function(e){for(var t=!1,s=r;s<u;s+=1){var l=p[s];if(l.key===e.key){r<s&&(n=n.concat(p.slice(r,s).map((function(e){return(0,o.A)((0,o.A)({},e),{},{status:i})}))),r=s),n.push((0,o.A)((0,o.A)({},l),{},{status:a})),r+=1,t=!0;break}}t||n.push((0,o.A)((0,o.A)({},e),{},{status:c}))})),r<u&&(n=n.concat(p.slice(r).map((function(e){return(0,o.A)((0,o.A)({},e),{},{status:i})}))));var f={};return n.forEach((function(e){var t=e.key;f[t]=(f[t]||0)+1})),Object.keys(f).filter((function(e){return f[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,o=t.status;return n!==e||o!==c}))).forEach((function(t){t.key===e&&(t.status=a)}))})),n}},80371:(e,t,n)=>{"use strict";n.d(t,{J1:()=>h,Vc:()=>y,by:()=>g,m8:()=>b});var o=n(82284),r=n(20998);function i(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var a,c,u,s=(a=(0,r.A)(),c="undefined"!=typeof window?window:{},u={animationend:i("Animation","AnimationEnd"),transitionend:i("Transition","TransitionEnd")},a&&("AnimationEvent"in c||delete u.animationend.animation,"TransitionEvent"in c||delete u.transitionend.transition),u),l={};if((0,r.A)()){var p=document.createElement("div");l=p.style}var f={};function d(e){if(f[e])return f[e];var t=s[e];if(t)for(var n=Object.keys(t),o=n.length,r=0;r<o;r+=1){var i=n[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i in l)return f[e]=t[i],f[e]}return""}var v=d("animationend"),m=d("transitionend"),h=!(!v||!m),y=v||"animationend",b=m||"transitionend";function g(e,t){return e?"object"===(0,o.A)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}},34307:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var o=n(58168),r=n(82284),i=n(89379),a=n(80045),c=n(39155),u=n(34848),s={adjustX:1,adjustY:1},l=[0,0],p={left:{points:["cr","cl"],overflow:s,offset:[-4,0],targetOffset:l},right:{points:["cl","cr"],overflow:s,offset:[4,0],targetOffset:l},top:{points:["bc","tc"],overflow:s,offset:[0,-4],targetOffset:l},bottom:{points:["tc","bc"],overflow:s,offset:[0,4],targetOffset:l},topLeft:{points:["bl","tl"],overflow:s,offset:[0,-4],targetOffset:l},leftTop:{points:["tr","tl"],overflow:s,offset:[-4,0],targetOffset:l},topRight:{points:["br","tr"],overflow:s,offset:[0,-4],targetOffset:l},rightTop:{points:["tl","tr"],overflow:s,offset:[4,0],targetOffset:l},bottomRight:{points:["tr","br"],overflow:s,offset:[0,4],targetOffset:l},rightBottom:{points:["bl","br"],overflow:s,offset:[4,0],targetOffset:l},bottomLeft:{points:["tl","bl"],overflow:s,offset:[0,4],targetOffset:l},leftBottom:{points:["br","bl"],overflow:s,offset:[-4,0],targetOffset:l}};const f=function(e){var t=e.overlay,n=e.prefixCls,o=e.id,r=e.overlayInnerStyle;return c.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:r},"function"==typeof t?t():t)};var d=function(e,t){var n=e.overlayClassName,s=e.trigger,l=void 0===s?["hover"]:s,d=e.mouseEnterDelay,v=void 0===d?0:d,m=e.mouseLeaveDelay,h=void 0===m?.1:m,y=e.overlayStyle,b=e.prefixCls,g=void 0===b?"rc-tooltip":b,w=e.children,A=e.onVisibleChange,O=e.afterVisibleChange,x=e.transitionName,E=e.animation,j=e.motion,P=e.placement,S=void 0===P?"right":P,C=e.align,k=void 0===C?{}:C,T=e.destroyTooltipOnHide,M=void 0!==T&&T,_=e.defaultVisible,D=e.getTooltipContainer,N=e.overlayInnerStyle,R=(0,a.A)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),L=(0,c.useRef)(null);(0,c.useImperativeHandle)(t,(function(){return L.current}));var z=(0,i.A)({},R);"visible"in e&&(z.popupVisible=e.visible);var I=!1,V=!1;if("boolean"==typeof M)I=M;else if(M&&"object"===(0,r.A)(M)){var H=M.keepParent;I=!0===H,V=!1===H}return c.createElement(u.A,(0,o.A)({popupClassName:n,prefixCls:g,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,o=e.overlay,r=e.id;return[c.createElement("div",{className:"".concat(g,"-arrow"),key:"arrow"},n),c.createElement(f,{key:"content",prefixCls:g,id:r,overlay:o,overlayInnerStyle:N})]},action:l,builtinPlacements:p,popupPlacement:S,ref:L,popupAlign:k,getPopupContainer:D,onPopupVisibleChange:A,afterPopupVisibleChange:O,popupTransitionName:x,popupAnimation:E,popupMotion:j,defaultPopupVisible:_,destroyPopupOnHide:I,autoDestroy:V,mouseLeaveDelay:h,popupStyle:y,mouseEnterDelay:v},z),w)};const v=(0,c.forwardRef)(d)},94934:(e,t)=>{"use strict";t.DD=void 0;var n={adjustX:1,adjustY:1},o=[0,0],r={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:o},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:o},top:{points:["bc","tc"],overflow:n,offset:[0,-4],targetOffset:o},bottom:{points:["tc","bc"],overflow:n,offset:[0,4],targetOffset:o},topLeft:{points:["bl","tl"],overflow:n,offset:[0,-4],targetOffset:o},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:o},topRight:{points:["br","tr"],overflow:n,offset:[0,-4],targetOffset:o},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:o},bottomRight:{points:["tr","br"],overflow:n,offset:[0,4],targetOffset:o},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:o},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,4],targetOffset:o},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:o}};t.DD=r},34848:(e,t,n)=>{"use strict";n.d(t,{A:()=>ut});var o=n(89379),r=n(58168),i=n(23029),a=n(92901),c=n(9417),u=n(85501),s=n(29426),l=n(64467),p=n(39155),f=n.n(p),d=n(69514),v=n.n(d),m=n(25371),h=n(54808),y=n(66588),b=n(8719),g=n(69916),w=n(88822),A=n(46942),O=n.n(A);function x(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var E=n(3453),j=n(80045),P=n(68430),S=n(30156);function C(e){var t=e.prefixCls,n=e.motion,o=e.animation,r=e.transitionName;return n||(o?{motionName:"".concat(t,"-").concat(o)}:r?{motionName:r}:null)}function k(e){var t=e.prefixCls,n=e.visible,i=e.zIndex,a=e.mask,c=e.maskMotion,u=e.maskAnimation,s=e.maskTransitionName;if(!a)return null;var l={};return(c||s||u)&&(l=(0,o.A)({motionAppear:!0},C({motion:c,prefixCls:t,transitionName:s,animation:u}))),p.createElement(S.A,(0,r.A)({},l,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return p.createElement("div",{style:{zIndex:i},className:O()("".concat(t,"-mask"),n)})}))}var T,M=n(82284);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e){return N="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},N(e)}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function z(){if(void 0!==T)return T;T="";var e=document.createElement("p").style;for(var t in L)t+"Transform"in e&&(T=t);return T}function I(){return z()?"".concat(z(),"TransitionProperty"):"transitionProperty"}function V(){return z()?"".concat(z(),"Transform"):"transform"}function H(e,t){var n=I();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function B(e,t){var n=V();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var F,W=/matrix\((.*)\)/,Y=/matrix3d\((.*)\)/;function X(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function U(e,t,n){var o=n;if("object"!==N(t))return void 0!==o?("number"==typeof o&&(o="".concat(o,"px")),void(e.style[t]=o)):F(e,t);for(var r in t)t.hasOwnProperty(r)&&U(e,r,t[r])}function q(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function $(e){return q(e)}function G(e){return q(e,!0)}function Z(e){var t=function(e){var t,n,o,r=e.ownerDocument,i=r.body,a=r&&r.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),o=Math.floor(t.top),{left:n-=a.clientLeft||i.clientLeft||0,top:o-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=$(o),t.top+=G(o),t}function K(e){return null!=e&&e==e.window}function J(e){return K(e)?e.document:9===e.nodeType?e:e.ownerDocument}var Q=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),ee=/^(top|right|bottom|left)$/,te="currentStyle",ne="runtimeStyle",oe="left";function re(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function ie(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function ae(e,t,n){"static"===U(e,"position")&&(e.style.position="relative");var o=-999,r=-999,i=re("left",n),a=re("top",n),c=ie(i),u=ie(a);"left"!==i&&(o=999),"top"!==a&&(r=999);var s,l="",p=Z(e);("left"in t||"top"in t)&&(l=(s=e).style.transitionProperty||s.style[I()]||"",H(e,"none")),"left"in t&&(e.style[c]="",e.style[i]="".concat(o,"px")),"top"in t&&(e.style[u]="",e.style[a]="".concat(r,"px")),X(e);var f=Z(e),d={};for(var v in t)if(t.hasOwnProperty(v)){var m=re(v,n),h="left"===v?o:r,y=p[v]-f[v];d[m]=m===v?h+y:h-y}U(e,d),X(e),("left"in t||"top"in t)&&H(e,l);var b={};for(var g in t)if(t.hasOwnProperty(g)){var w=re(g,n),A=t[g]-p[g];b[w]=g===w?d[w]+A:d[w]-A}U(e,b)}function ce(e,t){var n=Z(e),o=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(V());if(n&&"none"!==n){var o=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(o[12]||o[4],0),y:parseFloat(o[13]||o[5],0)}}return{x:0,y:0}}(e),r={x:o.x,y:o.y};"left"in t&&(r.x=o.x+t.left-n.left),"top"in t&&(r.y=o.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),o=n.getPropertyValue("transform")||n.getPropertyValue(V());if(o&&"none"!==o){var r,i=o.match(W);i?((r=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,r[5]=t.y,B(e,"matrix(".concat(r.join(","),")"))):((r=o.match(Y)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,r[13]=t.y,B(e,"matrix3d(".concat(r.join(","),")")))}else B(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,r)}function ue(e,t){for(var n=0;n<e.length;n++)t(e[n])}function se(e){return"border-box"===F(e,"boxSizing")}"undefined"!=typeof window&&(F=window.getComputedStyle?function(e,t,n){var o=n,r="",i=J(e);return(o=o||i.defaultView.getComputedStyle(e,null))&&(r=o.getPropertyValue(t)||o[t]),r}:function(e,t){var n=e[te]&&e[te][t];if(Q.test(n)&&!ee.test(t)){var o=e.style,r=o[oe],i=e[ne][oe];e[ne][oe]=e[te][oe],o[oe]="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o[oe]=r,e[ne][oe]=i}return""===n?"auto":n});var le=["margin","border","padding"],pe=-1,fe=2,de=1;function ve(e,t,n){var o,r,i,a=0;for(r=0;r<t.length;r++)if(o=t[r])for(i=0;i<n.length;i++){var c=void 0;c="border"===o?"".concat(o).concat(n[i],"Width"):o+n[i],a+=parseFloat(F(e,c))||0}return a}var me={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function he(e,t,n){var o=n;if(K(e))return"width"===t?me.viewportWidth(e):me.viewportHeight(e);if(9===e.nodeType)return"width"===t?me.docWidth(e):me.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=se(e),c=0;(null==i||i<=0)&&(i=void 0,(null==(c=F(e,t))||Number(c)<0)&&(c=e.style[t]||0),c=Math.floor(parseFloat(c))||0),void 0===o&&(o=a?de:pe);var u=void 0!==i||a,s=i||c;return o===pe?u?s-ve(e,["border","padding"],r):c:u?o===de?s:s+(o===fe?-ve(e,["border"],r):ve(e,["margin"],r)):c+ve(e,le.slice(o),r)}ue(["Width","Height"],(function(e){me["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],me["viewport".concat(e)](n))},me["viewport".concat(e)]=function(t){var n="client".concat(e),o=t.document,r=o.body,i=o.documentElement[n];return"CSS1Compat"===o.compatMode&&i||r&&r[n]||i}}));var ye={position:"absolute",visibility:"hidden",display:"block"};function be(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o,r=t[0];return 0!==r.offsetWidth?o=he.apply(void 0,t):function(e,t,n){var o,r={},i=e.style;for(o in t)t.hasOwnProperty(o)&&(r[o]=i[o],i[o]=t[o]);for(o in n.call(e),t)t.hasOwnProperty(o)&&(i[o]=r[o])}(r,ye,(function(){o=he.apply(void 0,t)})),o}function ge(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}ue(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);me["outer".concat(t)]=function(t,n){return t&&be(t,e,n?0:de)};var n="width"===e?["Left","Right"]:["Top","Bottom"];me[e]=function(t,o){var r=o;return void 0!==r?t?(se(t)&&(r+=ve(t,["padding","border"],n)),U(t,e,r)):void 0:t&&be(t,e,pe)}}));var we={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:J,offset:function(e,t,n){if(void 0===t)return Z(e);!function(e,t,n){if(n.ignoreShake){var o=Z(e),r=o.left.toFixed(0),i=o.top.toFixed(0),a=t.left.toFixed(0),c=t.top.toFixed(0);if(r===a&&i===c)return}n.useCssRight||n.useCssBottom?ae(e,t,n):n.useCssTransform&&V()in document.body.style?ce(e,t):ae(e,t,n)}(e,t,n||{})},isWindow:K,each:ue,css:U,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:ge,getWindowScrollLeft:function(e){return $(e)},getWindowScrollTop:function(e){return G(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)we.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};ge(we,me);var Ae=we.getParent;function Oe(e){if(we.isWindow(e)||9===e.nodeType)return null;var t,n=we.getDocument(e).body,o=we.css(e,"position");if(!("fixed"===o||"absolute"===o))return"html"===e.nodeName.toLowerCase()?null:Ae(e);for(t=Ae(e);t&&t!==n&&9!==t.nodeType;t=Ae(t))if("static"!==(o=we.css(t,"position")))return t;return null}var xe=we.getParent;function Ee(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},o=Oe(e),r=we.getDocument(e),i=r.defaultView||r.parentWindow,a=r.body,c=r.documentElement;o;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===o.clientWidth||o===a||o===c||"visible"===we.css(o,"overflow")){if(o===a||o===c)break}else{var u=we.offset(o);u.left+=o.clientLeft,u.top+=o.clientTop,n.top=Math.max(n.top,u.top),n.right=Math.min(n.right,u.left+o.clientWidth),n.bottom=Math.min(n.bottom,u.top+o.clientHeight),n.left=Math.max(n.left,u.left)}o=Oe(o)}var s=null;we.isWindow(e)||9===e.nodeType||(s=e.style.position,"absolute"===we.css(e,"position")&&(e.style.position="fixed"));var l=we.getWindowScrollLeft(i),p=we.getWindowScrollTop(i),f=we.viewportWidth(i),d=we.viewportHeight(i),v=c.scrollWidth,m=c.scrollHeight,h=window.getComputedStyle(a);if("hidden"===h.overflowX&&(v=i.innerWidth),"hidden"===h.overflowY&&(m=i.innerHeight),e.style&&(e.style.position=s),t||function(e){if(we.isWindow(e)||9===e.nodeType)return!1;var t=we.getDocument(e),n=t.body,o=null;for(o=xe(e);o&&o!==n&&o!==t;o=xe(o))if("fixed"===we.css(o,"position"))return!0;return!1}(e))n.left=Math.max(n.left,l),n.top=Math.max(n.top,p),n.right=Math.min(n.right,l+f),n.bottom=Math.min(n.bottom,p+d);else{var y=Math.max(v,l+f);n.right=Math.min(n.right,y);var b=Math.max(m,p+d);n.bottom=Math.min(n.bottom,b)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function je(e){var t,n,o;if(we.isWindow(e)||9===e.nodeType){var r=we.getWindow(e);t={left:we.getWindowScrollLeft(r),top:we.getWindowScrollTop(r)},n=we.viewportWidth(r),o=we.viewportHeight(r)}else t=we.offset(e),n=we.outerWidth(e),o=we.outerHeight(e);return t.width=n,t.height=o,t}function Pe(e,t){var n=t.charAt(0),o=t.charAt(1),r=e.width,i=e.height,a=e.left,c=e.top;return"c"===n?c+=i/2:"b"===n&&(c+=i),"c"===o?a+=r/2:"r"===o&&(a+=r),{left:a,top:c}}function Se(e,t,n,o,r){var i=Pe(t,n[1]),a=Pe(e,n[0]),c=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-c[0]+o[0]-r[0]),top:Math.round(e.top-c[1]+o[1]-r[1])}}function Ce(e,t,n){return e.left<n.left||e.left+t.width>n.right}function ke(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function Te(e,t,n){var o=[];return we.each(e,(function(e){o.push(e.replace(t,(function(e){return n[e]})))})),o}function Me(e,t){return e[t]=-e[t],e}function _e(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function De(e,t){e[0]=_e(e[0],t.width),e[1]=_e(e[1],t.height)}function Ne(e,t,n,o){var r=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],c=n.overflow,u=n.source||e;i=[].concat(i),a=[].concat(a);var s={},l=0,p=Ee(u,!(!(c=c||{})||!c.alwaysByViewport)),f=je(u);De(i,f),De(a,t);var d=Se(f,t,r,i,a),v=we.merge(f,d);if(p&&(c.adjustX||c.adjustY)&&o){if(c.adjustX&&Ce(d,f,p)){var m=Te(r,/[lr]/gi,{l:"r",r:"l"}),h=Me(i,0),y=Me(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Se(f,t,m,h,y),f,p)||(l=1,r=m,i=h,a=y)}if(c.adjustY&&ke(d,f,p)){var b=Te(r,/[tb]/gi,{t:"b",b:"t"}),g=Me(i,1),w=Me(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Se(f,t,b,g,w),f,p)||(l=1,r=b,i=g,a=w)}l&&(d=Se(f,t,r,i,a),we.mix(v,d));var A=Ce(d,f,p),O=ke(d,f,p);if(A||O){var x=r;A&&(x=Te(r,/[lr]/gi,{l:"r",r:"l"})),O&&(x=Te(r,/[tb]/gi,{t:"b",b:"t"})),r=x,i=n.offset||[0,0],a=n.targetOffset||[0,0]}s.adjustX=c.adjustX&&A,s.adjustY=c.adjustY&&O,(s.adjustX||s.adjustY)&&(v=function(e,t,n,o){var r=we.clone(e),i={width:t.width,height:t.height};return o.adjustX&&r.left<n.left&&(r.left=n.left),o.resizeWidth&&r.left>=n.left&&r.left+i.width>n.right&&(i.width-=r.left+i.width-n.right),o.adjustX&&r.left+i.width>n.right&&(r.left=Math.max(n.right-i.width,n.left)),o.adjustY&&r.top<n.top&&(r.top=n.top),o.resizeHeight&&r.top>=n.top&&r.top+i.height>n.bottom&&(i.height-=r.top+i.height-n.bottom),o.adjustY&&r.top+i.height>n.bottom&&(r.top=Math.max(n.bottom-i.height,n.top)),we.mix(r,i)}(d,f,p,s))}return v.width!==f.width&&we.css(u,"width",we.width(u)+v.width-f.width),v.height!==f.height&&we.css(u,"height",we.height(u)+v.height-f.height),we.offset(u,{left:v.left,top:v.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:r,offset:i,targetOffset:a,overflow:s}}function Re(e,t,n){var o=n.target||t,r=je(o),i=!function(e,t){var n=Ee(e,t),o=je(e);return!n||o.left+o.width<=n.left||o.top+o.height<=n.top||o.left>=n.right||o.top>=n.bottom}(o,n.overflow&&n.overflow.alwaysByViewport);return Ne(e,r,n,i)}Re.__getOffsetParent=Oe,Re.__getVisibleRectForElement=Ee;var Le=n(43210),ze=n(42467),Ie=n(30981);var Ve=n(43591);function He(e,t){var n=null,o=null;var r=new Ve.default((function(e){var r=(0,E.A)(e,1)[0].target;if(document.documentElement.contains(r)){var i=r.getBoundingClientRect(),a=i.width,c=i.height,u=Math.floor(a),s=Math.floor(c);n===u&&o===s||Promise.resolve().then((function(){t({width:u,height:s})})),n=u,o=s}}));return e&&r.observe(e),function(){r.disconnect()}}function Be(e){return"function"!=typeof e?null:e()}function Fe(e){return"object"===(0,M.A)(e)&&e?e:null}var We=function(e,t){var n=e.children,o=e.disabled,r=e.target,i=e.align,a=e.onAlign,c=e.monitorWindowResize,u=e.monitorBufferTime,s=void 0===u?0:u,l=f().useRef({}),p=f().useRef(),d=f().Children.only(n),v=f().useRef({});v.current.disabled=o,v.current.target=r,v.current.align=i,v.current.onAlign=a;var m=function(e,t){var n=f().useRef(!1),o=f().useRef(null);function r(){window.clearTimeout(o.current)}return[function i(a){if(r(),n.current&&!0!==a)o.current=window.setTimeout((function(){n.current=!1,i()}),t);else{if(!1===e(a))return;n.current=!0,o.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,r()}]}((function(){var e=v.current,t=e.disabled,n=e.target,o=e.align,r=e.onAlign,i=p.current;if(!t&&n&&i){var a,c=Be(n),u=Fe(n);l.current.element=c,l.current.point=u,l.current.align=o;var s=document.activeElement;return c&&(0,ze.A)(c)?a=Re(i,c,o):u&&(a=function(e,t,n){var o,r,i=we.getDocument(e),a=i.defaultView||i.parentWindow,c=we.getWindowScrollLeft(a),u=we.getWindowScrollTop(a),s=we.viewportWidth(a),l=we.viewportHeight(a),p={left:o="pageX"in t?t.pageX:c+t.clientX,top:r="pageY"in t?t.pageY:u+t.clientY,width:0,height:0},f=o>=0&&o<=c+s&&r>=0&&r<=u+l,d=[n.points[0],"cc"];return Ne(e,p,D(D({},n),{},{points:d}),f)}(i,u,o)),function(e,t){e!==document.activeElement&&(0,h.A)(t,e)&&"function"==typeof e.focus&&e.focus()}(s,i),r&&a&&r(i,a),!0}return!1}),s),y=(0,E.A)(m,2),w=y[0],A=y[1],O=f().useState(),x=(0,E.A)(O,2),j=x[0],P=x[1],S=f().useState(),C=(0,E.A)(S,2),k=C[0],T=C[1];return(0,Ie.A)((function(){P(Be(r)),T(Fe(r))})),f().useEffect((function(){var e,t;l.current.element===j&&((e=l.current.point)===(t=k)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&(0,Le.A)(l.current.align,i)||w()})),f().useEffect((function(){return He(p.current,w)}),[p.current]),f().useEffect((function(){return He(j,w)}),[j]),f().useEffect((function(){o?A():w()}),[o]),f().useEffect((function(){if(c)return(0,g.A)(window,"resize",w).remove}),[c]),f().useEffect((function(){return function(){A()}}),[]),f().useImperativeHandle(t,(function(){return{forceAlign:function(){return w(!0)}}})),f().isValidElement(d)&&(d=f().cloneElement(d,{ref:(0,b.K4)(d.ref,p)})),d},Ye=f().forwardRef(We);Ye.displayName="Align";const Xe=Ye;var Ue=n(90675),qe=n(10467),$e=n(1233),Ge=["measure","alignPre","align",null,"motion"];var Ze=p.forwardRef((function(e,t){var n=e.visible,i=e.prefixCls,a=e.className,c=e.style,u=e.children,s=e.zIndex,l=e.stretch,f=e.destroyPopupOnHide,d=e.forceRender,v=e.align,h=e.point,y=e.getRootDomNode,b=e.getClassNameFromAlign,g=e.onAlign,w=e.onMouseEnter,A=e.onMouseLeave,x=e.onMouseDown,j=e.onTouchStart,P=e.onClick,k=(0,p.useRef)(),T=(0,p.useRef)(),M=(0,p.useState)(),_=(0,E.A)(M,2),D=_[0],N=_[1],R=function(e){var t=p.useState({width:0,height:0}),n=(0,E.A)(t,2),o=n[0],r=n[1];return[p.useMemo((function(){var t={};if(e){var n=o.width,r=o.height;-1!==e.indexOf("height")&&r?t.height=r:-1!==e.indexOf("minHeight")&&r&&(t.minHeight=r),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,o]),function(e){var t=e.offsetWidth,n=e.offsetHeight,o=e.getBoundingClientRect(),i=o.width,a=o.height;Math.abs(t-i)<1&&Math.abs(n-a)<1&&(t=i,n=a),r({width:t,height:n})}]}(l),L=(0,E.A)(R,2),z=L[0],I=L[1];var V=function(e,t){var n=(0,$e.A)(null),o=(0,E.A)(n,2),r=o[0],i=o[1],a=(0,p.useRef)();function c(e){i(e,!0)}function u(){m.A.cancel(a.current)}return(0,p.useEffect)((function(){c("measure")}),[e]),(0,p.useEffect)((function(){"measure"===r&&t(),r&&(a.current=(0,m.A)((0,qe.A)((0,Ue.A)().mark((function e(){var t,n;return(0,Ue.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Ge.indexOf(r),(n=Ge[t+1])&&-1!==t&&c(n);case 3:case"end":return e.stop()}}),e)})))))}),[r]),(0,p.useEffect)((function(){return function(){u()}}),[]),[r,function(e){u(),a.current=(0,m.A)((function(){c((function(e){switch(r){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){l&&I(y())})),H=(0,E.A)(V,2),B=H[0],F=H[1],W=(0,p.useState)(0),Y=(0,E.A)(W,2),X=Y[0],U=Y[1],q=(0,p.useRef)();function $(){var e;null===(e=k.current)||void 0===e||e.forceAlign()}function G(e,t){var n=b(t);D!==n&&N(n),U((function(e){return e+1})),"align"===B&&(null==g||g(e,t))}(0,Ie.A)((function(){"alignPre"===B&&U(0)}),[B]),(0,Ie.A)((function(){"align"===B&&(X<3?$():F((function(){var e;null===(e=q.current)||void 0===e||e.call(q)})))}),[X]);var Z=(0,o.A)({},C(e));function K(){return new Promise((function(e){q.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=Z[e];Z[e]=function(e,n){return F(),null==t?void 0:t(e,n)}})),p.useEffect((function(){Z.motionName||"motion"!==B||F()}),[Z.motionName,B]),p.useImperativeHandle(t,(function(){return{forceAlign:$,getElement:function(){return T.current}}}));var J=(0,o.A)((0,o.A)({},z),{},{zIndex:s,opacity:"motion"!==B&&"stable"!==B&&n?0:void 0,pointerEvents:n||"stable"===B?void 0:"none"},c),Q=!0;null==v||!v.points||"align"!==B&&"stable"!==B||(Q=!1);var ee=u;return p.Children.count(u)>1&&(ee=p.createElement("div",{className:"".concat(i,"-content")},u)),p.createElement(S.A,(0,r.A)({visible:n,ref:T,leavedClassName:"".concat(i,"-hidden")},Z,{onAppearPrepare:K,onEnterPrepare:K,removeOnLeave:f,forceRender:d}),(function(e,t){var n=e.className,r=e.style,c=O()(i,a,D,n);return p.createElement(Xe,{target:h||y,key:"popup",ref:k,monitorWindowResize:!0,disabled:Q,align:v,onAlign:G},p.createElement("div",{ref:t,className:c,onMouseEnter:w,onMouseLeave:A,onMouseDownCapture:x,onTouchStartCapture:j,onClick:P,style:(0,o.A)((0,o.A)({},r),J)},ee))}))}));Ze.displayName="PopupInner";const Ke=Ze;var Je=p.forwardRef((function(e,t){var n=e.prefixCls,i=e.visible,a=e.zIndex,c=e.children,u=e.mobile,s=(u=void 0===u?{}:u).popupClassName,l=u.popupStyle,f=u.popupMotion,d=void 0===f?{}:f,v=u.popupRender,m=e.onClick,h=p.useRef();p.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return h.current}}}));var y=(0,o.A)({zIndex:a},l),b=c;return p.Children.count(c)>1&&(b=p.createElement("div",{className:"".concat(n,"-content")},c)),v&&(b=v(b)),p.createElement(S.A,(0,r.A)({visible:i,ref:h,removeOnLeave:!0},d),(function(e,t){var r=e.className,i=e.style,a=O()(n,s,r);return p.createElement("div",{ref:t,className:a,onClick:m,style:(0,o.A)((0,o.A)({},i),y)},b)}))}));Je.displayName="MobilePopupInner";const Qe=Je;var et=["visible","mobile"],tt=p.forwardRef((function(e,t){var n=e.visible,i=e.mobile,a=(0,j.A)(e,et),c=(0,p.useState)(n),u=(0,E.A)(c,2),s=u[0],l=u[1],f=(0,p.useState)(!1),d=(0,E.A)(f,2),v=d[0],m=d[1],h=(0,o.A)((0,o.A)({},a),{},{visible:s});(0,p.useEffect)((function(){l(n),n&&i&&m((0,P.A)())}),[n,i]);var y=v?p.createElement(Qe,(0,r.A)({},h,{mobile:i,ref:t})):p.createElement(Ke,(0,r.A)({},h,{ref:t}));return p.createElement("div",null,p.createElement(k,h),y)}));tt.displayName="Popup";const nt=tt;const ot=p.createContext(null);function rt(){}function it(){return""}function at(e){return e?e.ownerDocument:window.document}var ct=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const ut=(st=w.A,lt=function(e){(0,u.A)(n,e);var t=(0,s.A)(n);function n(e){var o,a;return(0,i.A)(this,n),o=t.call(this,e),(0,l.A)((0,c.A)(o),"popupRef",p.createRef()),(0,l.A)((0,c.A)(o),"triggerRef",p.createRef()),(0,l.A)((0,c.A)(o),"portalContainer",void 0),(0,l.A)((0,c.A)(o),"attachId",void 0),(0,l.A)((0,c.A)(o),"clickOutsideHandler",void 0),(0,l.A)((0,c.A)(o),"touchOutsideHandler",void 0),(0,l.A)((0,c.A)(o),"contextMenuOutsideHandler1",void 0),(0,l.A)((0,c.A)(o),"contextMenuOutsideHandler2",void 0),(0,l.A)((0,c.A)(o),"mouseDownTimeout",void 0),(0,l.A)((0,c.A)(o),"focusTime",void 0),(0,l.A)((0,c.A)(o),"preClickTime",void 0),(0,l.A)((0,c.A)(o),"preTouchTime",void 0),(0,l.A)((0,c.A)(o),"delayTimer",void 0),(0,l.A)((0,c.A)(o),"hasPopupMouseDown",void 0),(0,l.A)((0,c.A)(o),"onMouseEnter",(function(e){var t=o.props.mouseEnterDelay;o.fireEvents("onMouseEnter",e),o.delaySetPopupVisible(!0,t,t?null:e)})),(0,l.A)((0,c.A)(o),"onMouseMove",(function(e){o.fireEvents("onMouseMove",e),o.setPoint(e)})),(0,l.A)((0,c.A)(o),"onMouseLeave",(function(e){o.fireEvents("onMouseLeave",e),o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)})),(0,l.A)((0,c.A)(o),"onPopupMouseEnter",(function(){o.clearDelayTimer()})),(0,l.A)((0,c.A)(o),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,h.A)(null===(t=o.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)})),(0,l.A)((0,c.A)(o),"onFocus",(function(e){o.fireEvents("onFocus",e),o.clearDelayTimer(),o.isFocusToShow()&&(o.focusTime=Date.now(),o.delaySetPopupVisible(!0,o.props.focusDelay))})),(0,l.A)((0,c.A)(o),"onMouseDown",(function(e){o.fireEvents("onMouseDown",e),o.preClickTime=Date.now()})),(0,l.A)((0,c.A)(o),"onTouchStart",(function(e){o.fireEvents("onTouchStart",e),o.preTouchTime=Date.now()})),(0,l.A)((0,c.A)(o),"onBlur",(function(e){o.fireEvents("onBlur",e),o.clearDelayTimer(),o.isBlurToHide()&&o.delaySetPopupVisible(!1,o.props.blurDelay)})),(0,l.A)((0,c.A)(o),"onContextMenu",(function(e){e.preventDefault(),o.fireEvents("onContextMenu",e),o.setPopupVisible(!0,e)})),(0,l.A)((0,c.A)(o),"onContextMenuClose",(function(){o.isContextMenuToShow()&&o.close()})),(0,l.A)((0,c.A)(o),"onClick",(function(e){if(o.fireEvents("onClick",e),o.focusTime){var t;if(o.preClickTime&&o.preTouchTime?t=Math.min(o.preClickTime,o.preTouchTime):o.preClickTime?t=o.preClickTime:o.preTouchTime&&(t=o.preTouchTime),Math.abs(t-o.focusTime)<20)return;o.focusTime=0}o.preClickTime=0,o.preTouchTime=0,o.isClickToShow()&&(o.isClickToHide()||o.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!o.state.popupVisible;(o.isClickToHide()&&!n||n&&o.isClickToShow())&&o.setPopupVisible(!o.state.popupVisible,e)})),(0,l.A)((0,c.A)(o),"onPopupMouseDown",(function(){var e;o.hasPopupMouseDown=!0,clearTimeout(o.mouseDownTimeout),o.mouseDownTimeout=window.setTimeout((function(){o.hasPopupMouseDown=!1}),0),o.context&&(e=o.context).onPopupMouseDown.apply(e,arguments)})),(0,l.A)((0,c.A)(o),"onDocumentClick",(function(e){if(!o.props.mask||o.props.maskClosable){var t=e.target,n=o.getRootDomNode(),r=o.getPopupDomNode();(0,h.A)(n,t)&&!o.isContextMenuOnly()||(0,h.A)(r,t)||o.hasPopupMouseDown||o.close()}})),(0,l.A)((0,c.A)(o),"getRootDomNode",(function(){var e=o.props.getTriggerDOMNode;if(e)return e(o.triggerRef.current);try{var t=(0,y.Ay)(o.triggerRef.current);if(t)return t}catch(e){}return v().findDOMNode((0,c.A)(o))})),(0,l.A)((0,c.A)(o),"getPopupClassNameFromAlign",(function(e){var t=[],n=o.props,r=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,c=n.alignPoint,u=n.getPopupClassNameFromAlign;return r&&i&&t.push(function(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var c=i[a];if(x(e[c].points,r,o))return"".concat(t,"-placement-").concat(c)}return""}(i,a,e,c)),u&&t.push(u(e)),t.join(" ")})),(0,l.A)((0,c.A)(o),"getComponent",(function(){var e=o.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,a=e.onPopupAlign,c=e.popupMotion,u=e.popupAnimation,s=e.popupTransitionName,l=e.popupStyle,f=e.mask,d=e.maskAnimation,v=e.maskTransitionName,m=e.maskMotion,h=e.zIndex,y=e.popup,b=e.stretch,g=e.alignPoint,w=e.mobile,A=e.forceRender,O=e.onPopupClick,x=o.state,E=x.popupVisible,j=x.point,P=o.getPopupAlign(),S={};return o.isMouseEnterToShow()&&(S.onMouseEnter=o.onPopupMouseEnter),o.isMouseLeaveToHide()&&(S.onMouseLeave=o.onPopupMouseLeave),S.onMouseDown=o.onPopupMouseDown,S.onTouchStart=o.onPopupMouseDown,p.createElement(nt,(0,r.A)({prefixCls:t,destroyPopupOnHide:n,visible:E,point:g&&j,className:i,align:P,onAlign:a,animation:u,getClassNameFromAlign:o.getPopupClassNameFromAlign},S,{stretch:b,getRootDomNode:o.getRootDomNode,style:l,mask:f,zIndex:h,transitionName:s,maskAnimation:d,maskTransitionName:v,maskMotion:m,ref:o.popupRef,motion:c,mobile:w,forceRender:A,onClick:O}),"function"==typeof y?y():y)})),(0,l.A)((0,c.A)(o),"attachParent",(function(e){m.A.cancel(o.attachId);var t,n=o.props,r=n.getPopupContainer,i=n.getDocument,a=o.getRootDomNode();r?(a||0===r.length)&&(t=r(a)):t=i(o.getRootDomNode()).body,t?t.appendChild(e):o.attachId=(0,m.A)((function(){o.attachParent(e)}))})),(0,l.A)((0,c.A)(o),"getContainer",(function(){if(!o.portalContainer){var e=(0,o.props.getDocument)(o.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",o.portalContainer=e}return o.attachParent(o.portalContainer),o.portalContainer})),(0,l.A)((0,c.A)(o),"setPoint",(function(e){o.props.alignPoint&&e&&o.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,l.A)((0,c.A)(o),"handlePortalUpdate",(function(){o.state.prevPopupVisible!==o.state.popupVisible&&o.props.afterPopupVisibleChange(o.state.popupVisible)})),(0,l.A)((0,c.A)(o),"triggerContextValue",{onPopupMouseDown:o.onPopupMouseDown}),a="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,o.state={prevPopupVisible:a,popupVisible:a},ct.forEach((function(e){o["fire".concat(e)]=function(t){o.fireEvents(e,t)}})),o}return(0,a.A)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,g.A)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,g.A)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,g.A)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,g.A)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),m.A.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,n){var r=e[t]||{};return(0,o.A)((0,o.A)({},r),n)}(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,o=this.state.popupVisible;this.clearDelayTimer(),o!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:o}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var o=this,r=1e3*t;if(this.clearDelayTimer(),r){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){o.setPopupVisible(e,i),o.clearDelayTimer()}),r)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var o=this.props[e];o&&o(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,r=t.forceRender,i=t.alignPoint,a=t.className,c=t.autoDestroy,u=p.Children.only(n),s={key:"trigger"};this.isContextMenuToShow()?s.onContextMenu=this.onContextMenu:s.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(s.onClick=this.onClick,s.onMouseDown=this.onMouseDown,s.onTouchStart=this.onTouchStart):(s.onClick=this.createTwoChains("onClick"),s.onMouseDown=this.createTwoChains("onMouseDown"),s.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(s.onMouseEnter=this.onMouseEnter,i&&(s.onMouseMove=this.onMouseMove)):s.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?s.onMouseLeave=this.onMouseLeave:s.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(s.onFocus=this.onFocus,s.onBlur=this.onBlur):(s.onFocus=this.createTwoChains("onFocus"),s.onBlur=this.createTwoChains("onBlur"));var l=O()(u&&u.props&&u.props.className,a);l&&(s.className=l);var f=(0,o.A)({},s);(0,b.f3)(u)&&(f.ref=(0,b.K4)(this.triggerRef,u.ref));var d,v=p.cloneElement(u,f);return(e||this.popupRef.current||r)&&(d=p.createElement(st,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&c&&(d=null),p.createElement(ot.Provider,{value:this.triggerContextValue},v,d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,o={};return void 0!==n&&t.popupVisible!==n&&(o.popupVisible=n,o.prevPopupVisible=t.popupVisible),o}}]),n}(p.Component),(0,l.A)(lt,"contextType",ot),(0,l.A)(lt,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:it,getDocument:at,onPopupVisibleChange:rt,afterPopupVisibleChange:rt,onPopupAlign:rt,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),lt);var st,lt},69916:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(69514),r=n.n(o);function i(e,t,n,o){var i=r().unstable_batchedUpdates?function(e){r().unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,i,o),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,i,o)}}}},20998:(e,t,n)=>{"use strict";function o(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>o})},54808:(e,t,n)=>{"use strict";function o(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{A:()=>o})},66588:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var o=n(82284),r=n(39155),i=n.n(r),a=n(69514),c=n.n(a);function u(e){return e instanceof HTMLElement||e instanceof SVGElement}function s(e){var t,n=function(e){return e&&"object"===(0,o.A)(e)&&u(e.nativeElement)?e.nativeElement:u(e)?e:null}(e);return n||(e instanceof i().Component?null===(t=c().findDOMNode)||void 0===t?void 0:t.call(c(),e):null)}},42467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,o=t.height;if(n||o)return!0}if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),i=r.width,a=r.height;if(i||a)return!0}}return!1}},88822:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var o=n(39155),r=n(69514),i=n.n(r),a=n(20998);const c=(0,o.forwardRef)((function(e,t){var n=e.didUpdate,r=e.getContainer,c=e.children,u=(0,o.useRef)(),s=(0,o.useRef)();(0,o.useImperativeHandle)(t,(function(){return{}}));var l=(0,o.useRef)(!1);return!l.current&&(0,a.A)()&&(s.current=r(),u.current=s.current.parentNode,l.current=!0),(0,o.useEffect)((function(){null==n||n(e)})),(0,o.useEffect)((function(){return null===s.current.parentNode&&null!==u.current&&u.current.appendChild(s.current),function(){var e;null===(e=s.current)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(s.current)}}),[]),s.current?i().createPortal(c,s.current):null}))},30981:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(39155),r=(0,n(20998).A)()?o.useLayoutEffect:o.useEffect,i=function(e,t){var n=o.useRef(!0);r((function(){return e(n.current)}),t),r((function(){return n.current=!1,function(){n.current=!0}}),[])};const a=i},28104:(e,t,n)=>{"use strict";n(39155)},1233:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(3453),r=n(39155);function i(e){var t=r.useRef(!1),n=r.useState(e),i=(0,o.A)(n,2),a=i[0],c=i[1];return r.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,n){n&&t.current||c(e)}]}},43210:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(82284),r=n(68210);const i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,u=i.has(t);if((0,r.Ay)(!u,"Warning: There may be circular references"),u)return!1;if(t===a)return!0;if(n&&c>1)return!1;i.add(t);var s=c+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],a[l],s))return!1;return!0}if(t&&a&&"object"===(0,o.A)(t)&&"object"===(0,o.A)(a)){var p=Object.keys(t);return p.length===Object.keys(a).length&&p.every((function(n){return e(t[n],a[n],s)}))}return!1}(e,t)}},68430:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}},25371:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=function(e){return+setTimeout(e,16)},r=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(o=function(e){return window.requestAnimationFrame(e)},r=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map;function c(e){a.delete(e)}var u=function(e){var t=i+=1;return function n(r){if(0===r)c(t),e();else{var i=o((function(){n(r-1)}));a.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};u.cancel=function(e){var t=a.get(e);return c(e),r(t)};const s=u},8719:(e,t,n)=>{"use strict";n.d(t,{K4:()=>c,Xf:()=>a,f3:()=>u});var o=n(82284),r=n(39155),i=n(44363),a=(n(28104),function(e,t){"function"==typeof e?e(t):"object"===(0,o.A)(e)&&e&&"current"in e&&(e.current=t)}),c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.filter(Boolean);return o.length<=1?o[0]:function(e){t.forEach((function(t){a(t,e)}))}},u=function(e){var t,n,o=(0,i.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof o||null!==(t=o.prototype)&&void 0!==t&&t.render||o.$$typeof===i.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===i.ForwardRef)};function s(e){return(0,r.isValidElement)(e)&&!(0,i.isFragment)(e)}Number(r.version.split(".")[0])},68210:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var o={},r=[];function i(e,t){}function a(e,t){}function c(e,t,n){t||o[n]||(e(!1,n),o[n]=!0)}function u(e,t){c(i,e,t)}u.preMessage=function(e){r.push(e)},u.resetWarned=function(){o={}},u.noteOnce=function(e,t){c(a,e,t)};const s=u},22799:(e,t)=>{"use strict";var n,o=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");
|
|
22
21
|
/**
|
|
23
22
|
* @license React
|
|
24
23
|
* react-is.production.min.js
|
|
@@ -27,7 +26,7 @@ Ue=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Objec
|
|
|
27
26
|
*
|
|
28
27
|
* This source code is licensed under the MIT license found in the
|
|
29
28
|
* LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case i:case c:case a:case f:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case p:case m:case v:case u:return e;default:return t}}case r:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=p,t.isMemo=function(e){return y(e)===v}},44363:(e,t,n)=>{"use strict";e.exports=n(22799)},21020:(e,t,n)=>{"use strict";
|
|
29
|
+
*/function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case i:case c:case a:case f:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case p:case m:case v:case u:return e;default:return t}}case r:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=p,t.isFragment=function(e){return y(e)===i},t.isMemo=function(e){return y(e)===v}},44363:(e,t,n)=>{"use strict";e.exports=n(22799)},21020:(e,t,n)=>{"use strict";
|
|
31
30
|
/** @license React v17.0.2
|
|
32
31
|
* react-jsx-runtime.production.min.js
|
|
33
32
|
*
|
|
@@ -35,9 +34,10 @@ Ue=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Objec
|
|
|
35
34
|
*
|
|
36
35
|
* This source code is licensed under the MIT license found in the
|
|
37
36
|
* LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/n(45228);var o=n(39155),r=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;r=i("react.element"),t.Fragment=i("react.fragment")}var a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var o,i={},s=null,l=null;for(o in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(l=t.ref),t)c.call(t,o)&&!u.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:r,type:e,key:s,ref:l,props:i,_owner:a.current}}t.jsx=s,t.jsxs=s},74848:(e,t,n)=>{"use strict";e.exports=n(21020)},43591:(e,t,n)=>{"use strict";n.d(t,{default:()=>E});var o=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var c=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,s=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function i(){n&&(n=!1,e()),o&&u()}function c(){a(i)}function u(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(c,t);r=e}return u}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;c.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},f=b(0,0,0,0);function d(e){return parseFloat(e)||0}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+d(e["border-"+n+"-width"])}),0)}function m(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var o=p(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=d(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,c=d(o.width),u=d(o.height);if("border-box"===o.boxSizing&&(Math.round(c+i)!==t&&(c-=v(o,"left","right")+i),Math.round(u+a)!==n&&(u-=v(o,"top","bottom")+a)),!function(e){return e===p(e).document.documentElement}(e)){var s=Math.round(c+i)-t,l=Math.round(u+a)-n;1!==Math.abs(s)&&(c-=s),1!==Math.abs(l)&&(u-=l)}return b(r.left,r.top,c,u)}var h="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function y(e){return r?h(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):m(e):f}function b(e,t,n,o){return{x:e,y:t,width:n,height:o}}var g=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=y(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(e,t){var n,o,r,i,a,c,u,s=(o=(n=t).x,r=n.y,i=n.width,a=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(c.prototype),l(u,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),u);l(this,{target:e,contentRect:s})},A=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new o,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new g(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new w(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),O="undefined"!=typeof WeakMap?new WeakMap:new o,x=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),o=new A(t,n,this);O.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){x.prototype[e]=function(){var t;return(t=O.get(this))[e].apply(t,arguments)}}));const E=void 0!==i.ResizeObserver?i.ResizeObserver:x},10458:(e,t,n)=>{var o=n(85072),r=n(16543);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},54497:(e,t,n)=>{var o=n(85072),r=n(45848);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},33803:(e,t,n)=>{var o=n(85072),r=n(85822);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},18026:(e,t,n)=>{var o=n(85072),r=n(11013);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},49603:(e,t,n)=>{var o=n(85072),r=n(62076);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},33981:(e,t,n)=>{var o=n(85072),r=n(96742);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},85072:(e,t,n)=>{"use strict";var o,r=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function c(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},o=[],r=0;r<e.length;r++){var i=e[r],u=t.base?i[0]+t.base:i[0],s=n[u]||0,l="".concat(u," ").concat(s);n[u]=s+1;var p=c(l),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(f)):a.push({identifier:l,updater:h(f,t),references:1}),o.push(l)}return o}function s(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var r=n.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,p=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function f(e,t,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=p(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,n){var o=n.css,r=n.media,i=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var v=null,m=0;function h(e,t){var n,o,r;if(t.singleton){var i=m++;n=v||(v=s(t)),o=f.bind(null,n,i,!1),r=f.bind(null,n,i,!0)}else n=s(t),o=d.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var r=c(n[o]);a[r].references--}for(var i=u(e,t),s=0;s<n.length;s++){var l=c(n[s]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},69004:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var o=n(39155),r=n.n(o),i=n(17234),a=n(14552),c=n(32663);n(10458);n(54497);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){c=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw r}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const l=function(e){var t=e.children,n=e.arrow,u=void 0!==n&&n,l=e.placement,p=void 0===l?"bottom-start":l,f=e.tips,d=void 0===f?"":f,v=e.className,m=void 0===v?"":v,h=e.beyondText,y=void 0===h||h,b=e.interactive,g=void 0===b||b,w=e.tipMaxWidth,A=e.style,O=(0,o.useRef)(),x=(0,o.useRef)(),E=s((0,o.useState)(""),2),j=E[0],P=E[1];(0,o.useEffect)((function(){P(d)}),[d]);var S;return r().createElement(i.default,{arrow:u,title:j,placement:p,interactive:g,boundariesElement:"viewport",overlayClassName:"".concat(a.n,"-auto-tips-tooltip"),maxWidth:w},r().createElement("div",{ref:O,className:(S="".concat(a.n,"-auto-tips"),function(){var e=navigator.userAgent;if(/^((?!chrome|android).)*safari/i.test(e))return!0}()&&(S+=" ".concat(a.n,"-auto-tips-safari")),m&&(S+=" ".concat(m)),S),onMouseOver:function(){var e="",n=O.current,o=n.getBoundingClientRect(),r=x.current.getBoundingClientRect();O.current&&((0,c.isIE)()?o.width>r.width&&(e=d||(y?n.innerText:t)):r.width>o.width&&(e=d||(y?n.innerText:t))),P(e)},style:A},r().createElement("div",{className:"auto-tips-content",ref:x},t)))}},14552:(e,t,n)=>{"use strict";n.d(t,{g:()=>r,n:()=>o});var o="paraui-v4",r="component"},25400:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(39155),r=n.n(o);function i(e){var t,n,o,r,a,c,u,s,l,p=e.parentNode||e.ownerDocument,f=(null==p||null===(t=p.nodeName)||void 0===t?void 0:t.toLowerCase())||"";return["html","body","#document"].includes(f)?null==e||null===(n=e.ownerDocument)||void 0===n?void 0:n.body:(s=p,(null!=(l=window.HTMLElement)&&"undefined"!=typeof Symbol&&l[Symbol.hasInstance]?l[Symbol.hasInstance](s):s instanceof l)&&(o=p,r=window.getComputedStyle(o),a=r.overflow,c=r.overflowX,u=r.overflowY,/auto|scroll|overlay/.test(a+u+c))?p:i(p))}function a(e,t){var n=r().useRef();return r().useEffect((function(){return function(){n.current&&(n.current.style.position="")}}),[]),function(o){var r;if(t)r=t(o)||document.body;else{var a,c,u,s,l=null===(c=e.current)||void 0===c||null===(a=c.getRootDomNode)||void 0===a?void 0:a.call(c);if(l)(r=i(l)).scrollHeight<=r.clientHeight&&(r=document.body);else r=document.body;if("body"!==(null===(u=r.nodeName)||void 0===u?void 0:u.toLowerCase()))"static"===(null===(s=window.getComputedStyle(r))||void 0===s?void 0:s.position)&&(r.style.position="relative");n.current=r}return r}}},91829:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var o=n(39155),r=n.n(o),i=n(17234),a=n(74848),c=n(55307),u=function(e){return(0,a.jsx)(c.A,Object.assign({dataName:"Help",viewBox:"0 0 24 24",path:(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("g",Object.assign({id:"Help",transform:"translate(-140 -499)"},{children:[(0,a.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(140 499)",fill:"none"}),(0,a.jsx)("path",{id:"icon",d:"M0,9.6a9.6,9.6,0,1,1,9.6,9.6A9.611,9.611,0,0,1,0,9.6Zm1.6,0a8,8,0,1,0,8-8A8.01,8.01,0,0,0,1.6,9.6ZM8.4,14a1,1,0,1,1,1,1A1,1,0,0,1,8.4,14Zm.162-2.6A1.643,1.643,0,0,1,8.7,10.66,3.615,3.615,0,0,1,10.264,9.1c.929-.616,1.538-1.07,1.538-1.746a1.748,1.748,0,0,0-.719-1.346A2.048,2.048,0,0,0,9.42,5.573,2.083,2.083,0,0,0,7.667,7.492a.778.778,0,0,1-.806.788.8.8,0,0,1-.792-.793A3.692,3.692,0,0,1,9.037,4.02a3.645,3.645,0,0,1,3.031.73A3.321,3.321,0,0,1,13.4,7.356c0,1.586-1.3,2.449-2.254,3.08a3.557,3.557,0,0,0-.943.758l-.052.13a.806.806,0,0,1-.771.835H9.355A.789.789,0,0,1,8.558,11.4Z",transform:"translate(142.4 501.4)"})]}))})},e))},s=n(20053),l=n(14552);n(33803);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}const d=function(e){var t=e.title,n=void 0===t?"":t,o=e.children,a=e.arrow,c=void 0===a||a,d=e.className,v=e.placement,m=void 0===v?"top-start":v,h=f(e,["title","children","arrow","className","placement"]);return r().createElement(i.default,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){p(e,t,n[t])}))}return e}({title:n,arrow:c,placement:m},h),r().createElement("span",{className:(0,s.A)("".concat(l.n,"-help"),d)},o||r().createElement(u,null)))}},89315:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var o=n(39155),r=n.n(o),i=n(17234),a=n(14552),c=n(25400),u=n(20053);n(49603);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function p(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var f=r().forwardRef((function(e,t){var n=e.title,f=e.content,d=p(e,["title","content"]),v=r().useRef(),m=(0,c.A)(v,e.getPopupContainer);(0,o.useEffect)((function(){t&&("function"==typeof t?t(v.current):t.current=v.current)}),[v.current]);var h="".concat(a.g,"-popover");return r().createElement(i.default,l(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){s(e,t,n[t])}))}return e}({},d),{isPopover:!0,prefixCls:h,overlayClassName:(0,u.A)("".concat(a.n,"-popover"),e.overlayClassName),ref:v,title:function(e){return n||f?r().createElement(r().Fragment,null,n&&r().createElement("div",{className:"".concat(e,"-title")},n),r().createElement("div",{className:"".concat(e,"-inner-content")},f)):null}(h),transitionName:"".concat(a.g,"-popover-zoom-big"),getPopupContainer:m}))}));f.displayName="Popover",f.defaultProps={placement:"bottom",trigger:"click",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrow:!1};const d=f},17234:(e,t,n)=>{"use strict";n.d(t,{default:()=>j});var o=n(39155),r=n.n(o),i=n(34307),a=n(94934),c=n(20053),u=n(14552);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){s(e,t,n[t])}))}return e}function p(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var f={adjustX:1,adjustY:1},d={adjustX:0,adjustY:0};function v(e){return"boolean"==typeof e?e?f:d:l({},d,e)}function m(e){var t=r().isValidElement(e)?e:r().createElement("span",null,e);if("button"===t.type&&t.props.disabled){var n=function(e,t){var n={},o=l({},e);return t.forEach((function(t){e&&t in e&&(n[t]=e[t],delete o[t])})),{picked:n,omitted:o}}(t.props.style,["position","left","right","top","bottom","float","display","zIndex"]),o=n.picked,i=n.omitted,a=p(l({display:"inline-block"},o),{cursor:"not-allowed",width:t.props.block?"100%":null}),s=p(l({},i),{pointerEvents:"none"}),f=r().cloneElement(t,{style:s,className:null});return r().createElement("span",{style:a,className:(0,c.A)(t.props.className,"".concat(u.g,"-tooltip-disabled-compatible-wrapper"))},f)}return t}function h(e){return{"bottom-end":"bottomRight","bottom-start":"bottomLeft","left-end":"leftBottom","left-start":"leftTop","right-end":"rightBottom","right-start":"rightTop","top-end":"topRight","top-start":"topLeft"}[e]||e}var y=n(2842);n(33981);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){g(e,t,n[t])}))}return e}function A(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function O(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){c=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw r}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var E=r().forwardRef((function(e,t){var n,o=x(r().useState(e.defaultVisible),2),s=o[0],f=o[1],d=r().useRef(),b=r().useRef(),g=x(r().useState([0,0]),2),E=g[0],j=g[1];r().useEffect((function(){var t;("visible"in e||"open"in e)&&f(!!(null!==(t=e.visible)&&void 0!==t?t:e.open))}),[null!==(n=e.visible)&&void 0!==n?n:e.open]);var P=function(){var t=e.title;return!t&&0!==t},S=function(){var t=e.builtinPlacements,n=e.autoAdjustOverflow;return t||function(e){var t=e.horizontalArrowShift,n=void 0===t?16:t,o=e.verticalArrowShift,r=void 0===o?8:o,i=e.autoAdjustOverflow,c={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tc"],offset:[-n,-8]},leftTop:{points:["tr","cl"],offset:[-8,-r]},topRight:{points:["br","tc"],offset:[n,-8]},rightTop:{points:["tl","cr"],offset:[8,-r]},bottomRight:{points:["tr","bc"],offset:[n,8]},rightBottom:{points:["bl","cr"],offset:[8,r]},bottomLeft:{points:["tl","bc"],offset:[-n,8]},leftBottom:{points:["br","cl"],offset:[-8,r]}};return Object.keys(c).forEach((function(e){var t,n;c[e]=p(l({},a.DD[e]),{offset:(t=e,n=h(t),{left:{offset:[-8,0]},right:{offset:[8,0]},top:{offset:[0,-8]},bottom:{offset:[0,8]},topLeft:{offset:[0,-8]},leftTop:{offset:[-8,0]},topRight:{offset:[0,-8]},rightTop:{offset:[8,0]},bottomRight:{offset:[0,8]},rightBottom:{offset:[8,0]},bottomLeft:{offset:[0,8]},leftBottom:{offset:[-8,0]}}[n]).offset,overflow:v(i)}),c[e].ignoreShake=!0})),c}({autoAdjustOverflow:n})},C=e.prefixCls,k=void 0===C?"".concat(u.g,"-tooltip"):C,T=e.getPopupContainer,M=e.overlayClassName,_=e.overlayInnerStyle,D=e.overlayStyle,N=e.children,R=e.title,L=e.placement,z=e.isPopover,I=e.followCursor,H=e.maxWidth,V=e.disabled,B=O(e,["prefixCls","getPopupContainer","overlayClassName","overlayInnerStyle","overlayStyle","children","title","placement","isPopover","followCursor","maxWidth","disabled"]),F=s;"visible"in e||"open"in e||!P()||(F=!1);var W=(0,c.A)(!z&&"".concat(u.n,"-tooltip"),M),Y=w({},D);H&&(Y.maxWidth=H);var X={targetOffset:E};return e.offset&&(X.offset=e.offset),r().createElement(i.A,A(w({},B),{prefixCls:k,placement:I?"top":h(L),overlayClassName:W,getTooltipContainer:T,ref:t||b,builtinPlacements:S(),overlay:r().createElement(r().Fragment,null,V&&r().createElement(y.A,{className:"disabled-svg"}),R),visible:F,align:X,onVisibleChange:function(t){var n;("visible"in e||"open"in e||f(!P()&&t),P())||(null===(n=e.onVisibleChange)||void 0===n||n.call(e,t))},onPopupAlign:function(e,t){var n=S(),o=Object.keys(n).find((function(e){return n[e].points[0]===t.points[0]&&n[e].points[1]===t.points[1]}));if(o){var r=e.getBoundingClientRect(),i={top:"50%",left:"50%"};o.indexOf("top")>=0||o.indexOf("Bottom")>=0?i.top="".concat(r.height-t.offset[1],"px"):(o.indexOf("Top")>=0||o.indexOf("bottom")>=0)&&(i.top="".concat(-t.offset[1],"px")),o.indexOf("left")>=0||o.indexOf("Right")>=0?i.left="".concat(r.width-t.offset[0],"px"):(o.indexOf("right")>=0||o.indexOf("Left")>=0)&&(i.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayStyle:Y,overlayInnerStyle:_,arrowContent:null,motion:{motionName:"".concat(u.g,"-tooltip-zoom-big-fast"),motionDeadline:1e3}}),I?r().createElement("div",{style:{display:"inline-block"},ref:d,onMouseMove:function(e){if(d.current){var t,n,o,r,i=(null===(r=b.current)||void 0===r||null===(o=r.popupRef)||void 0===o||null===(n=o.current)||void 0===n||null===(t=n.getElement())||void 0===t?void 0:t.offsetHeight)||0,a=0===i?60:30,c=d.current.getBoundingClientRect(),u=c.x,s=c.y,l=c.width,p=e.clientX-(u+l/2),f=e.clientY-s+i+a;setTimeout((function(){j([-p,-f])}))}}},m(N)):m(N))}));E.displayName="Tooltip",E.defaultProps={placement:"topLeft",mouseEnterDelay:.1,mouseLeaveDelay:.1,autoAdjustOverflow:!0,defaultVisible:!1,followCursor:!1,maxWidth:500};const j=E},32663:e=>{"use strict";e.exports=n},39155:t=>{"use strict";t.exports=e},69514:e=>{"use strict";e.exports=t},46942:(e,t)=>{var n;
|
|
37
|
+
*/n(45228);var o=n(39155),r=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;r=i("react.element"),t.Fragment=i("react.fragment")}var a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var o,i={},s=null,l=null;for(o in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(l=t.ref),t)c.call(t,o)&&!u.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:r,type:e,key:s,ref:l,props:i,_owner:a.current}}t.jsx=s,t.jsxs=s},74848:(e,t,n)=>{"use strict";e.exports=n(21020)},43591:(e,t,n)=>{"use strict";n.d(t,{default:()=>E});var o=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var c=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,s=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function i(){n&&(n=!1,e()),o&&u()}function c(){a(i)}function u(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(c,t);r=e}return u}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;c.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},f=b(0,0,0,0);function d(e){return parseFloat(e)||0}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+d(e["border-"+n+"-width"])}),0)}function m(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var o=p(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=d(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,c=d(o.width),u=d(o.height);if("border-box"===o.boxSizing&&(Math.round(c+i)!==t&&(c-=v(o,"left","right")+i),Math.round(u+a)!==n&&(u-=v(o,"top","bottom")+a)),!function(e){return e===p(e).document.documentElement}(e)){var s=Math.round(c+i)-t,l=Math.round(u+a)-n;1!==Math.abs(s)&&(c-=s),1!==Math.abs(l)&&(u-=l)}return b(r.left,r.top,c,u)}var h="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function y(e){return r?h(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):m(e):f}function b(e,t,n,o){return{x:e,y:t,width:n,height:o}}var g=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=y(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(e,t){var n,o,r,i,a,c,u,s=(o=(n=t).x,r=n.y,i=n.width,a=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(c.prototype),l(u,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),u);l(this,{target:e,contentRect:s})},A=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new o,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new g(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new w(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),O="undefined"!=typeof WeakMap?new WeakMap:new o,x=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),o=new A(t,n,this);O.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){x.prototype[e]=function(){var t;return(t=O.get(this))[e].apply(t,arguments)}}));const E=void 0!==i.ResizeObserver?i.ResizeObserver:x},10458:(e,t,n)=>{var o=n(85072),r=n(16543);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},54497:(e,t,n)=>{var o=n(85072),r=n(45848);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},33803:(e,t,n)=>{var o=n(85072),r=n(85822);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},18026:(e,t,n)=>{var o=n(85072),r=n(11013);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},49603:(e,t,n)=>{var o=n(85072),r=n(62076);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},33981:(e,t,n)=>{var o=n(85072),r=n(96742);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},85072:(e,t,n)=>{"use strict";var o,r=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function c(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},o=[],r=0;r<e.length;r++){var i=e[r],u=t.base?i[0]+t.base:i[0],s=n[u]||0,l="".concat(u," ").concat(s);n[u]=s+1;var p=c(l),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(f)):a.push({identifier:l,updater:h(f,t),references:1}),o.push(l)}return o}function s(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var r=n.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,p=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function f(e,t,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=p(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,n){var o=n.css,r=n.media,i=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var v=null,m=0;function h(e,t){var n,o,r;if(t.singleton){var i=m++;n=v||(v=s(t)),o=f.bind(null,n,i,!1),r=f.bind(null,n,i,!0)}else n=s(t),o=d.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var r=c(n[o]);a[r].references--}for(var i=u(e,t),s=0;s<n.length;s++){var l=c(n[s]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},69004:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var o=n(39155),r=n.n(o),i=n(17234),a=n(14552),c=n(32663);n(10458);n(54497);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){c=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw r}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const l=function(e){var t=e.children,n=e.arrow,u=void 0!==n&&n,l=e.placement,p=void 0===l?"bottom-start":l,f=e.tips,d=void 0===f?"":f,v=e.className,m=void 0===v?"":v,h=e.beyondText,y=void 0===h||h,b=e.interactive,g=void 0===b||b,w=e.tipMaxWidth,A=e.style,O=(0,o.useRef)(),x=(0,o.useRef)(),E=s((0,o.useState)(""),2),j=E[0],P=E[1];(0,o.useEffect)((function(){P(d)}),[d]);var S;return r().createElement(i.default,{arrow:u,title:j,placement:p,interactive:g,boundariesElement:"viewport",overlayClassName:"".concat(a.n,"-auto-tips-tooltip"),maxWidth:w},r().createElement("div",{ref:O,className:(S="".concat(a.n,"-auto-tips"),function(){var e=navigator.userAgent;if(/^((?!chrome|android).)*safari/i.test(e))return!0}()&&(S+=" ".concat(a.n,"-auto-tips-safari")),m&&(S+=" ".concat(m)),S),onMouseOver:function(){var e="",n=O.current,o=n.getBoundingClientRect(),r=x.current.getBoundingClientRect();O.current&&((0,c.isIE)()?o.width>r.width&&(e=d||(y?n.innerText:t)):r.width>o.width&&(e=d||(y?n.innerText:t))),P(e)},style:A},r().createElement("div",{className:"auto-tips-content",ref:x},t)))}},14552:(e,t,n)=>{"use strict";n.d(t,{g:()=>r,n:()=>o});var o="paraui-v4",r="component"},25400:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(39155),r=n.n(o);function i(e){var t,n,o,r,a,c,u,s,l,p=e.parentNode||e.ownerDocument,f=(null==p||null===(t=p.nodeName)||void 0===t?void 0:t.toLowerCase())||"";return["html","body","#document"].includes(f)?null==e||null===(n=e.ownerDocument)||void 0===n?void 0:n.body:(s=p,(null!=(l=window.HTMLElement)&&"undefined"!=typeof Symbol&&l[Symbol.hasInstance]?l[Symbol.hasInstance](s):s instanceof l)&&(o=p,r=window.getComputedStyle(o),a=r.overflow,c=r.overflowX,u=r.overflowY,/auto|scroll|overlay/.test(a+u+c))?p:i(p))}function a(e,t){var n=r().useRef();return r().useEffect((function(){return function(){n.current&&(n.current.style.position="")}}),[]),function(o){var r;if(t)r=t(o)||document.body;else{var a,c,u,s,l=null===(c=e.current)||void 0===c||null===(a=c.getRootDomNode)||void 0===a?void 0:a.call(c);if(l)(r=i(l)).scrollHeight<=r.clientHeight&&(r=document.body);else r=document.body;if("body"!==(null===(u=r.nodeName)||void 0===u?void 0:u.toLowerCase()))"static"===(null===(s=window.getComputedStyle(r))||void 0===s?void 0:s.position)&&(r.style.position="relative");n.current=r}return r}}},91829:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var o=n(39155),r=n.n(o),i=n(17234),a=n(74848),c=n(55307),u=function(e){return(0,a.jsx)(c.A,Object.assign({dataName:"Help",viewBox:"0 0 24 24",path:(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("g",Object.assign({id:"Help",transform:"translate(-140 -499)"},{children:[(0,a.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(140 499)",fill:"none"}),(0,a.jsx)("path",{id:"icon",d:"M0,9.6a9.6,9.6,0,1,1,9.6,9.6A9.611,9.611,0,0,1,0,9.6Zm1.6,0a8,8,0,1,0,8-8A8.01,8.01,0,0,0,1.6,9.6ZM8.4,14a1,1,0,1,1,1,1A1,1,0,0,1,8.4,14Zm.162-2.6A1.643,1.643,0,0,1,8.7,10.66,3.615,3.615,0,0,1,10.264,9.1c.929-.616,1.538-1.07,1.538-1.746a1.748,1.748,0,0,0-.719-1.346A2.048,2.048,0,0,0,9.42,5.573,2.083,2.083,0,0,0,7.667,7.492a.778.778,0,0,1-.806.788.8.8,0,0,1-.792-.793A3.692,3.692,0,0,1,9.037,4.02a3.645,3.645,0,0,1,3.031.73A3.321,3.321,0,0,1,13.4,7.356c0,1.586-1.3,2.449-2.254,3.08a3.557,3.557,0,0,0-.943.758l-.052.13a.806.806,0,0,1-.771.835H9.355A.789.789,0,0,1,8.558,11.4Z",transform:"translate(142.4 501.4)"})]}))})},e))},s=n(20053),l=n(14552);n(33803);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}const d=function(e){var t=e.title,n=void 0===t?"":t,o=e.children,a=e.arrow,c=void 0===a||a,d=e.className,v=e.placement,m=void 0===v?"top-start":v,h=f(e,["title","children","arrow","className","placement"]);return r().createElement(i.default,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){p(e,t,n[t])}))}return e}({title:n,arrow:c,placement:m},h),r().createElement("span",{className:(0,s.A)("".concat(l.n,"-help"),d)},o||r().createElement(u,null)))}},89315:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var o=n(39155),r=n.n(o),i=n(17234),a=n(14552),c=n(25400),u=n(20053);n(49603);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function p(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var f=r().forwardRef((function(e,t){var n=e.title,f=e.content,d=p(e,["title","content"]),v=r().useRef(),m=(0,c.A)(v,e.getPopupContainer);(0,o.useEffect)((function(){t&&("function"==typeof t?t(v.current):t.current=v.current)}),[v.current]);var h="".concat(a.g,"-popover");return r().createElement(i.default,l(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){s(e,t,n[t])}))}return e}({},d),{isPopover:!0,prefixCls:h,overlayClassName:(0,u.A)("".concat(a.n,"-popover"),e.overlayClassName),ref:v,title:function(e){return n||f?r().createElement(r().Fragment,null,n&&r().createElement("div",{className:"".concat(e,"-title")},n),r().createElement("div",{className:"".concat(e,"-inner-content")},f)):null}(h),transitionName:"".concat(a.g,"-popover-zoom-big"),getPopupContainer:m}))}));f.displayName="Popover",f.defaultProps={placement:"bottom",trigger:"click",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrow:!1};const d=f},17234:(e,t,n)=>{"use strict";n.d(t,{default:()=>j});var o=n(39155),r=n.n(o),i=n(34307),a=n(94934),c=n(20053),u=n(14552);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){s(e,t,n[t])}))}return e}function p(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var f={adjustX:1,adjustY:1},d={adjustX:0,adjustY:0};function v(e){return"boolean"==typeof e?e?f:d:l({},d,e)}function m(e){var t=r().isValidElement(e)?e:r().createElement("span",null,e);if("button"===t.type&&t.props.disabled){var n=function(e,t){var n={},o=l({},e);return t.forEach((function(t){e&&t in e&&(n[t]=e[t],delete o[t])})),{picked:n,omitted:o}}(t.props.style,["position","left","right","top","bottom","float","display","zIndex"]),o=n.picked,i=n.omitted,a=p(l({display:"inline-block"},o),{cursor:"not-allowed",width:t.props.block?"100%":null}),s=p(l({},i),{pointerEvents:"none"}),f=r().cloneElement(t,{style:s,className:null});return r().createElement("span",{style:a,className:(0,c.A)(t.props.className,"".concat(u.g,"-tooltip-disabled-compatible-wrapper"))},f)}return t}function h(e){return{"bottom-end":"bottomRight","bottom-start":"bottomLeft","left-end":"leftBottom","left-start":"leftTop","right-end":"rightBottom","right-start":"rightTop","top-end":"topRight","top-start":"topLeft"}[e]||e}var y=n(2842);n(33981);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){g(e,t,n[t])}))}return e}function A(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function O(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){c=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw r}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var E=r().forwardRef((function(e,t){var n,o=x(r().useState(e.defaultVisible),2),s=o[0],f=o[1],d=r().useRef(),b=r().useRef(),g=x(r().useState([0,0]),2),E=g[0],j=g[1];r().useEffect((function(){var t;("visible"in e||"open"in e)&&f(!!(null!==(t=e.visible)&&void 0!==t?t:e.open))}),[null!==(n=e.visible)&&void 0!==n?n:e.open]);var P=function(){var t=e.title;return!t&&0!==t},S=function(){var t=e.builtinPlacements,n=e.autoAdjustOverflow;return t||function(e){var t=e.horizontalArrowShift,n=void 0===t?16:t,o=e.verticalArrowShift,r=void 0===o?8:o,i=e.autoAdjustOverflow,c={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tc"],offset:[-n,-8]},leftTop:{points:["tr","cl"],offset:[-8,-r]},topRight:{points:["br","tc"],offset:[n,-8]},rightTop:{points:["tl","cr"],offset:[8,-r]},bottomRight:{points:["tr","bc"],offset:[n,8]},rightBottom:{points:["bl","cr"],offset:[8,r]},bottomLeft:{points:["tl","bc"],offset:[-n,8]},leftBottom:{points:["br","cl"],offset:[-8,r]}};return Object.keys(c).forEach((function(e){var t,n;c[e]=p(l({},a.DD[e]),{offset:(t=e,n=h(t),{left:{offset:[-8,0]},right:{offset:[8,0]},top:{offset:[0,-8]},bottom:{offset:[0,8]},topLeft:{offset:[0,-8]},leftTop:{offset:[-8,0]},topRight:{offset:[0,-8]},rightTop:{offset:[8,0]},bottomRight:{offset:[0,8]},rightBottom:{offset:[8,0]},bottomLeft:{offset:[0,8]},leftBottom:{offset:[-8,0]}}[n]).offset,overflow:v(i)}),c[e].ignoreShake=!0})),c}({autoAdjustOverflow:n})},C=e.prefixCls,k=void 0===C?"".concat(u.g,"-tooltip"):C,T=e.getPopupContainer,M=e.overlayClassName,_=e.overlayInnerStyle,D=e.overlayStyle,N=e.children,R=e.title,L=e.placement,z=e.isPopover,I=e.followCursor,V=e.maxWidth,H=e.disabled,B=O(e,["prefixCls","getPopupContainer","overlayClassName","overlayInnerStyle","overlayStyle","children","title","placement","isPopover","followCursor","maxWidth","disabled"]),F=s;"visible"in e||"open"in e||!P()||(F=!1);var W=(0,c.A)(!z&&"".concat(u.n,"-tooltip"),M),Y=w({},D);V&&(Y.maxWidth=V);var X={targetOffset:E};return e.offset&&(X.offset=e.offset),r().createElement(i.A,A(w({},B),{prefixCls:k,placement:I?"top":h(L),overlayClassName:W,getTooltipContainer:T,ref:t||b,builtinPlacements:S(),overlay:r().createElement(r().Fragment,null,H&&r().createElement(y.A,{className:"disabled-svg"}),R),visible:F,align:X,onVisibleChange:function(t){var n;("visible"in e||"open"in e||f(!P()&&t),P())||(null===(n=e.onVisibleChange)||void 0===n||n.call(e,t))},onPopupAlign:function(e,t){var n=S(),o=Object.keys(n).find((function(e){return n[e].points[0]===t.points[0]&&n[e].points[1]===t.points[1]}));if(o){var r=e.getBoundingClientRect(),i={top:"50%",left:"50%"};o.indexOf("top")>=0||o.indexOf("Bottom")>=0?i.top="".concat(r.height-t.offset[1],"px"):(o.indexOf("Top")>=0||o.indexOf("bottom")>=0)&&(i.top="".concat(-t.offset[1],"px")),o.indexOf("left")>=0||o.indexOf("Right")>=0?i.left="".concat(r.width-t.offset[0],"px"):(o.indexOf("right")>=0||o.indexOf("Left")>=0)&&(i.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayStyle:Y,overlayInnerStyle:_,arrowContent:null,motion:{motionName:"".concat(u.g,"-tooltip-zoom-big-fast"),motionDeadline:1e3}}),I?r().createElement("div",{style:{display:"inline-block"},ref:d,onMouseMove:function(e){if(d.current){var t,n,o,r,i=(null===(r=b.current)||void 0===r||null===(o=r.popupRef)||void 0===o||null===(n=o.current)||void 0===n||null===(t=n.getElement())||void 0===t?void 0:t.offsetHeight)||0,a=0===i?60:30,c=d.current.getBoundingClientRect(),u=c.x,s=c.y,l=c.width,p=e.clientX-(u+l/2),f=e.clientY-s+i+a;setTimeout((function(){j([-p,-f])}))}}},m(N)):m(N))}));E.displayName="Tooltip",E.defaultProps={placement:"topLeft",mouseEnterDelay:.1,mouseLeaveDelay:.1,autoAdjustOverflow:!0,defaultVisible:!1,followCursor:!1,maxWidth:500};const j=E},32663:e=>{"use strict";e.exports=n},39155:t=>{"use strict";t.exports=e},69514:e=>{"use strict";e.exports=t},46942:(e,t)=>{var n;
|
|
39
38
|
/*!
|
|
40
39
|
Copyright (c) 2018 Jed Watson.
|
|
41
40
|
Licensed under the MIT License (MIT), see
|
|
42
41
|
http://jedwatson.github.io/classnames
|
|
43
|
-
*/!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},43145:(e,t,n)=>{"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}n.d(t,{A:()=>o})},96369:(e,t,n)=>{"use strict";function o(e){if(Array.isArray(e))return e}n.d(t,{A:()=>o})},9417:(e,t,n)=>{"use strict";function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>o})},10467:(e,t,n)=>{"use strict";function o(e,t,n,o,r,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(o,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function c(e){o(a,r,i,c,u,"next",e)}function u(e){o(a,r,i,c,u,"throw",e)}c(void 0)}))}}n.d(t,{A:()=>r})},23029:(e,t,n)=>{"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>o})},92901:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(49922);function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,o.A)(r.key),r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},29426:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(53954),r=n(52176),i=n(56822);function a(e){var t=(0,r.A)();return function(){var n,r=(0,o.A)(e);if(t){var a=(0,o.A)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,i.A)(this,n)}}},64467:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(49922);function r(e,t,n){return(t=(0,o.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},58168:(e,t,n)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(this,arguments)}n.d(t,{A:()=>o})},53954:(e,t,n)=>{"use strict";function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}n.d(t,{A:()=>o})},85501:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(63662);function r(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,o.A)(e,t)}},52176:(e,t,n)=>{"use strict";function o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(o=function(){return!!e})()}n.d(t,{A:()=>o})},6986:(e,t,n)=>{"use strict";function o(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(o=i.call(n)).done)&&(c.push(o.value),c.length!==t);u=!0);}catch(e){s=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return c}}n.d(t,{A:()=>o})},76562:(e,t,n)=>{"use strict";function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>o})},89379:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(64467);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){(0,o.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},80045:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(98587);function r(e,t){if(null==e)return{};var n,r,i=(0,o.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},98587:(e,t,n)=>{"use strict";function o(e,t){if(null==e)return{};var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}n.d(t,{A:()=>o})},56822:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(82284),r=n(9417);function i(e,t){if(t&&("object"===(0,o.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.A)(e)}},63662:(e,t,n)=>{"use strict";function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}n.d(t,{A:()=>o})},3453:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var o=n(96369),r=n(6986),i=n(27800),a=n(76562);function c(e,t){return(0,o.A)(e)||(0,r.A)(e,t)||(0,i.A)(e,t)||(0,a.A)()}},92327:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(82284);function r(e,t){if("object"!=(0,o.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=(0,o.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},49922:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(82284),r=n(92327);function i(e){var t=(0,r.A)(e,"string");return"symbol"==(0,o.A)(t)?t:t+""}},82284:(e,t,n)=>{"use strict";function o(e){return o="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},o(e)}n.d(t,{A:()=>o})},27800:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(43145);function r(e,t){if(e){if("string"==typeof e)return(0,o.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,o.A)(e,t):void 0}}}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={id:e,exports:{}};return o[e](n,n.exports,i),n.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var a={};return(()=>{"use strict";i.r(a),i.d(a,{PopMenu:()=>N,default:()=>R});var e=i(20053),t=i(39155),n=i.n(t),o=i(14552),r=i(89315),c=n().createContext({direction:"left",props:{},handle:{},menuIndex:-1,path:[],value:[],onChange:function(e){},onClick:function(e,t,n){}}),u=c.Provider,s=function(){return n().useContext(c)};function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){c=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw r}}return i}}(e,t)||d(e,t)||function(){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 f(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}i(18026);var v=i(74848),m=i(55307),h=function(e){return(0,v.jsx)(m.A,Object.assign({dataName:"Right",viewBox:"0 0 24 24",path:(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)("g",Object.assign({id:"Right",transform:"translate(-105 -1649)"},{children:[(0,v.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(105 1649)",fill:"none"}),(0,v.jsx)("path",{id:"icon",d:"M.933,17.867a.933.933,0,0,1-.66-1.593l7.34-7.34L.273,1.593A.933.933,0,0,1,1.593.273l8,8a.934.934,0,0,1,0,1.32l-8,8a.93.93,0,0,1-.66.273",transform:"translate(112.067 1652.067)"})]}))})},e))},y=i(69004),b=i(17234),g=i(91829);function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){A(e,t,n[t])}))}return e}function x(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){c=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw r}}return i}}(e,t)||P(e,t)||function(){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 j(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||P(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}const S=function(t){var r=t.title,i=t.children,a=t.disabled,c=s(),u=c.direction,l=c.props,p=c.handle,f=c.menuIndex,d=c.value,v=c.onChange,m=c.path,w=c.onClick,A=E(n().useState(!1),2),P=A[0],S=A[1],C=null==d?void 0:d[f],k=function(t,o){if(t.render)return null==t?void 0:t.render(p);var a=n().createElement(n().Fragment,null,n().createElement(y.default,null,r),t.help&&n().createElement(g.default,{className:"item-help",title:t.help}),i?n().createElement("div",{className:"item-arrow"},n().createElement(h,null)):null);return t.disabled?n().createElement(b.default,{title:t.disabledTip,disabled:t.disabled,className:"pop-menu-item"},n().createElement("div",{className:"pop-menu-item pop-menu-item-disabled"},a)):n().createElement("div",{className:(0,e.A)("pop-menu-item",{"pop-menu-item-select":C===t.name},{"pop-menu-item-hover":P}),onClick:function(){return function(e,t){if(t){p.closeMenu();var n=j(m);n[f]=e.name,v(n),e.onClick&&e.onClick(e.name,e,m),null==w||w(e.name,e,m)}}(t,o)}},a)};return i&&!a?n().createElement(R,x(O({},l),{data:i,placement:"right"===u?"right-start":"left-start",className:(0,e.A)("".concat(o.n,"-pop-menu-item-content"),l.contentClassName),overlayInnerStyle:O({minWidth:"auto"},l.overlayInnerStyle),contentClassName:"item-content",offset:["right"===u?4:-4,-5],path:j(m).concat([t.name]),onVisibleChange:function(e){var t;null===(t=l.onVisibleChange)||void 0===t||t.call(l,e),S(e)}}),k(t,!1)):k(t,!0)};function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const k=function(t){var o=t.list,r=t.className,i=t.style;return n().createElement("div",{className:(0,e.A)("pop-menu-list",r),style:i},o.map((function(e){if(n().isValidElement(e))return e;var t=e;return n().createElement(S,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){C(e,t,n[t])}))}return e}({key:t.name},t))})))};function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){T(e,t,n[t])}))}return e}function _(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function D(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var N=function(i){var a,c,l,d=i.overlayClassName,v=i.data,m=i.children,h=i.menuClassName,y=i.menuStyle,b=i.contentClassName,g=i.contentStyle,w=i.value,A=i.onChange,O=i.onClick,x=i.path,E=D(i,["overlayClassName","data","children","menuClassName","menuStyle","contentClassName","contentStyle","value","onChange","onClick","path"]),j=function(e){var n=p((0,t.useState)(0),2),o=n[0],r=n[1],i=(0,t.useRef)(null);return(0,t.useEffect)((function(){var e,t=(null===(e=i.current)||void 0===e?void 0:e.getBoundingClientRect().width)||0;r(t)}),[i.current].concat(f(e))),{width:o,ref:i}}([m]),P=j.width,S=j.ref,C=n().useRef(),T=s(),N=T.handle,R=T.menuIndex;return n().createElement(u,{value:{menuIndex:R+1,path:x||[],direction:E.direction||"left",props:i,value:w||[],onChange:A||function(){},onClick:O||function(){},handle:{closeMenu:function(){var e,t;void 0===(null==E?void 0:E.visible)&&(null==C||null===(e=C.current)||void 0===e||e.close(),N&&(null==N||null===(t=N.closeMenu)||void 0===t||t.call(N)))}}}},n().createElement(r.default,_(M({},E),{isPopover:!0,ref:C,overlayClassName:(0,e.A)("".concat(o.n,"-pop-menu"),d),overlayInnerStyle:M({minWidth:P},E.overlayInnerStyle),content:(c=[],l={list:[]},v.forEach((function(e){"object"==typeof e&&null!==e&&"list"in e?c.push(e):l.list.push(e)})),(null===(a=l.list)||void 0===a?void 0:a.length)&&c.push(l),n().createElement(n().Fragment,null,c.map((function(t,o){return n().createElement(k,{key:o,direction:E.direction,list:t.list,className:(0,e.A)(h,{"pop-menu-separator":o!==c.length-1}),style:y})})))),placement:E.placement?E.placement:"right"===E.direction?"bottomLeft":"bottomRight"}),n().createElement("div",{ref:S,className:(0,e.A)("".concat(o.n,"-pop-menu-content"),b),style:g},m)))};N.displayName="PopMenu";const R=N})(),a})()));
|
|
42
|
+
*/!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},43145:(e,t,n)=>{"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}n.d(t,{A:()=>o})},96369:(e,t,n)=>{"use strict";function o(e){if(Array.isArray(e))return e}n.d(t,{A:()=>o})},9417:(e,t,n)=>{"use strict";function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>o})},10467:(e,t,n)=>{"use strict";function o(e,t,n,o,r,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(o,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function c(e){o(a,r,i,c,u,"next",e)}function u(e){o(a,r,i,c,u,"throw",e)}c(void 0)}))}}n.d(t,{A:()=>r})},23029:(e,t,n)=>{"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>o})},92901:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(49922);function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,o.A)(r.key),r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},29426:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(53954),r=n(52176),i=n(56822);function a(e){var t=(0,r.A)();return function(){var n,r=(0,o.A)(e);if(t){var a=(0,o.A)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,i.A)(this,n)}}},64467:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(49922);function r(e,t,n){return(t=(0,o.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},58168:(e,t,n)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(this,arguments)}n.d(t,{A:()=>o})},53954:(e,t,n)=>{"use strict";function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}n.d(t,{A:()=>o})},85501:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(63662);function r(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,o.A)(e,t)}},52176:(e,t,n)=>{"use strict";function o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(o=function(){return!!e})()}n.d(t,{A:()=>o})},6986:(e,t,n)=>{"use strict";function o(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(o=i.call(n)).done)&&(c.push(o.value),c.length!==t);u=!0);}catch(e){s=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return c}}n.d(t,{A:()=>o})},76562:(e,t,n)=>{"use strict";function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>o})},89379:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(64467);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){(0,o.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},80045:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(98587);function r(e,t){if(null==e)return{};var n,r,i=(0,o.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},98587:(e,t,n)=>{"use strict";function o(e,t){if(null==e)return{};var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}n.d(t,{A:()=>o})},56822:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(82284),r=n(9417);function i(e,t){if(t&&("object"===(0,o.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.A)(e)}},90675:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(82284);function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
43
|
+
r=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(e){p=function(e,t,n){return e[t]=n}}function f(e,t,n,o){var r=t&&t.prototype instanceof g?t:g,i=Object.create(r.prototype),c=new _(o||[]);return a(i,"_invoke",{value:C(e,n,c)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var v="suspendedStart",m="suspendedYield",h="executing",y="completed",b={};function g(){}function w(){}function A(){}var O={};p(O,u,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(D([])));E&&E!==n&&i.call(E,u)&&(O=E);var j=A.prototype=g.prototype=Object.create(O);function P(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(r,a,c,u){var s=d(e[r],e,a);if("throw"!==s.type){var l=s.arg,p=l.value;return p&&"object"==(0,o.A)(p)&&i.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,c,u)}),(function(e){n("throw",e,c,u)})):t.resolve(p).then((function(e){l.value=e,c(l)}),(function(e){return n("throw",e,c,u)}))}u(s.arg)}var r;a(this,"_invoke",{value:function(e,o){function i(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(i,i):i()}})}function C(t,n,o){var r=v;return function(i,a){if(r===h)throw Error("Generator is already running");if(r===y){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var c=o.delegate;if(c){var u=k(c,o);if(u){if(u===b)continue;return u}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===v)throw r=y,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=h;var s=d(t,n,o);if("normal"===s.type){if(r=o.done?y:m,s.arg===b)continue;return{value:s.arg,done:o.done}}"throw"===s.type&&(r=y,o.method="throw",o.arg=s.arg)}}}function k(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),b;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,b;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError((0,o.A)(t)+" is not iterable")}return w.prototype=A,a(j,"constructor",{value:A,configurable:!0}),a(A,"constructor",{value:w,configurable:!0}),w.displayName=p(A,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,p(e,l,"GeneratorFunction")),e.prototype=Object.create(j),e},t.awrap=function(e){return{__await:e}},P(S.prototype),p(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new S(f(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(j),p(j,l,"Generator"),p(j,u,(function(){return this})),p(j,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=D,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(o,r){return c.type="throw",c.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;M(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:D(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),b}},t}},63662:(e,t,n)=>{"use strict";function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}n.d(t,{A:()=>o})},3453:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var o=n(96369),r=n(6986),i=n(27800),a=n(76562);function c(e,t){return(0,o.A)(e)||(0,r.A)(e,t)||(0,i.A)(e,t)||(0,a.A)()}},92327:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(82284);function r(e,t){if("object"!=(0,o.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=(0,o.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},49922:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(82284),r=n(92327);function i(e){var t=(0,r.A)(e,"string");return"symbol"==(0,o.A)(t)?t:t+""}},82284:(e,t,n)=>{"use strict";function o(e){return o="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},o(e)}n.d(t,{A:()=>o})},27800:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(43145);function r(e,t){if(e){if("string"==typeof e)return(0,o.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,o.A)(e,t):void 0}}}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={id:e,exports:{}};return o[e](n,n.exports,i),n.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var a={};return(()=>{"use strict";i.r(a),i.d(a,{PopMenu:()=>N,default:()=>R});var e=i(20053),t=i(39155),n=i.n(t),o=i(14552),r=i(89315),c=n().createContext({direction:"left",props:{},handle:{},menuIndex:-1,path:[],value:[],onChange:function(e){},onClick:function(e,t,n){}}),u=c.Provider,s=function(){return n().useContext(c)};function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){c=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw r}}return i}}(e,t)||d(e,t)||function(){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 f(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}i(18026);var v=i(74848),m=i(55307),h=function(e){return(0,v.jsx)(m.A,Object.assign({dataName:"Right",viewBox:"0 0 24 24",path:(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)("g",Object.assign({id:"Right",transform:"translate(-105 -1649)"},{children:[(0,v.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(105 1649)",fill:"none"}),(0,v.jsx)("path",{id:"icon",d:"M.933,17.867a.933.933,0,0,1-.66-1.593l7.34-7.34L.273,1.593A.933.933,0,0,1,1.593.273l8,8a.934.934,0,0,1,0,1.32l-8,8a.93.93,0,0,1-.66.273",transform:"translate(112.067 1652.067)"})]}))})},e))},y=i(69004),b=i(17234),g=i(91829);function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){A(e,t,n[t])}))}return e}function x(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){c=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw r}}return i}}(e,t)||P(e,t)||function(){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 j(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||P(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}const S=function(t){var r=t.title,i=t.children,a=t.disabled,c=s(),u=c.direction,l=c.props,p=c.handle,f=c.menuIndex,d=c.value,v=c.onChange,m=c.path,w=c.onClick,A=E(n().useState(!1),2),P=A[0],S=A[1],C=null==d?void 0:d[f],k=function(t,o){if(t.render)return null==t?void 0:t.render(p);var a=n().createElement(n().Fragment,null,n().createElement(y.default,null,r),t.help&&n().createElement(g.default,{className:"item-help",title:t.help}),i?n().createElement("div",{className:"item-arrow"},n().createElement(h,null)):null);return t.disabled?n().createElement(b.default,{title:t.disabledTip,disabled:t.disabled,className:"pop-menu-item"},n().createElement("div",{className:"pop-menu-item pop-menu-item-disabled"},a)):n().createElement("div",{className:(0,e.A)("pop-menu-item",{"pop-menu-item-select":C===t.name},{"pop-menu-item-hover":P}),onClick:function(){return function(e,t){if(t){p.closeMenu();var n=j(m);n[f]=e.name,v(n),e.onClick&&e.onClick(e.name,e,m),null==w||w(e.name,e,m)}}(t,o)}},a)};return i&&!a?n().createElement(R,x(O({},l),{data:i,placement:"right"===u?"right-start":"left-start",className:(0,e.A)("".concat(o.n,"-pop-menu-item-content"),l.contentClassName),overlayInnerStyle:O({minWidth:"auto"},l.overlayInnerStyle),contentClassName:"item-content",offset:["right"===u?4:-4,-5],path:j(m).concat([t.name]),onVisibleChange:function(e){var t;null===(t=l.onVisibleChange)||void 0===t||t.call(l,e),S(e)}}),k(t,!1)):k(t,!0)};function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const k=function(t){var o=t.list,r=t.className,i=t.style;return n().createElement("div",{className:(0,e.A)("pop-menu-list",r),style:i},o.map((function(e){if(n().isValidElement(e))return e;var t=e;return n().createElement(S,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){C(e,t,n[t])}))}return e}({key:t.name},t))})))};function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){T(e,t,n[t])}))}return e}function _(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function D(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var N=function(i){var a,c,l,d=i.overlayClassName,v=i.data,m=i.children,h=i.menuClassName,y=i.menuStyle,b=i.contentClassName,g=i.contentStyle,w=i.value,A=i.onChange,O=i.onClick,x=i.path,E=D(i,["overlayClassName","data","children","menuClassName","menuStyle","contentClassName","contentStyle","value","onChange","onClick","path"]),j=function(e){var n=p((0,t.useState)(0),2),o=n[0],r=n[1],i=(0,t.useRef)(null);return(0,t.useEffect)((function(){var e,t=(null===(e=i.current)||void 0===e?void 0:e.getBoundingClientRect().width)||0;r(t)}),[i.current].concat(f(e))),{width:o,ref:i}}([m]),P=j.width,S=j.ref,C=n().useRef(),T=s(),N=T.handle,R=T.menuIndex;return n().createElement(u,{value:{menuIndex:R+1,path:x||[],direction:E.direction||"left",props:i,value:w||[],onChange:A||function(){},onClick:O||function(){},handle:{closeMenu:function(){var e,t;void 0===(null==E?void 0:E.visible)&&(null==C||null===(e=C.current)||void 0===e||e.close(),N&&(null==N||null===(t=N.closeMenu)||void 0===t||t.call(N)))}}}},n().createElement(r.default,_(M({},E),{isPopover:!0,ref:C,overlayClassName:(0,e.A)("".concat(o.n,"-pop-menu"),d),overlayInnerStyle:M({minWidth:P},E.overlayInnerStyle),content:(c=[],l={list:[]},v.forEach((function(e){"object"==typeof e&&null!==e&&"list"in e?c.push(e):l.list.push(e)})),(null===(a=l.list)||void 0===a?void 0:a.length)&&c.push(l),n().createElement(n().Fragment,null,c.map((function(t,o){return n().createElement(k,{key:o,direction:E.direction,list:t.list,className:(0,e.A)(h,{"pop-menu-separator":o!==c.length-1}),style:y})})))),placement:E.placement?E.placement:"right"===E.direction?"bottomLeft":"bottomRight"}),n().createElement("div",{ref:S,className:(0,e.A)("".concat(o.n,"-pop-menu-content"),b),style:g},m)))};N.displayName="PopMenu";const R=N})(),a})()));
|