@para-ui/core 4.0.19-aplha4 → 4.0.19-aplha5
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/AutoBox/index.js +1 -1
- package/AutoTips/index.js +1 -1
- package/Breadcrumbs/index.js +1 -1
- package/Button/index.js +1 -1
- package/ButtonGroup/index.js +1 -1
- package/Carousel/index.js +1 -1
- package/Cascader/index.js +3 -3
- package/Checkbox/index.js +1 -1
- package/CheckboxGroup/index.js +1 -1
- package/ComboSelect/index.js +2 -2
- package/CopyText/index.js +1 -1
- package/CycleSelector/index.js +1 -1
- package/DatePicker/index.js +1 -1
- package/Descriptions/index.js +1 -1
- package/Desktop/index.js +1 -1
- package/DragVerify/index.js +1 -1
- package/Drawer/index.js +1 -1
- package/DynamicMultiBox/index.js +2 -2
- package/Form/index.js +3 -3
- package/FormItem/index.js +3 -3
- package/FunctionModal/index.js +3 -3
- package/Help/index.js +1 -1
- package/InputLang/index.js +1 -1
- package/InputNumber/index.js +1 -1
- package/Label/index.js +1 -1
- package/Menu/index.js +1 -1
- package/Modal/index.js +1 -1
- package/MultiBox/index.js +1 -1
- package/OperateBtn/index.js +1 -1
- package/PageHeader/index.js +1 -1
- package/Pagination/index.js +1 -1
- package/PopConfirm/index.js +1 -1
- package/PopMenu/index.js +1 -1
- package/Popover/index.js +1 -1
- package/Progress/index.js +1 -1
- package/QuickReply/index.js +1 -1
- package/Radio/index.js +1 -1
- package/RadioGroup/index.js +1 -1
- package/Search/index.js +1 -1
- package/Select/index.js +1 -1
- package/SelectInput/index.js +1 -1
- package/Selector/index.js +1 -1
- package/SelectorPicker/index.js +1 -1
- package/SingleBox/index.js +1 -1
- package/Slider/index.js +1 -1
- package/Stepper/index.js +1 -1
- package/Switch/index.js +1 -1
- package/Table/index.js +1 -1
- package/Tabs/index.js +1 -1
- package/Tag/index.js +1 -1
- package/TextEditor/index.js +1 -1
- package/TextField/index.js +1 -1
- package/TimePicker/index.js +1 -1
- package/Timeline/index.js +1 -1
- package/Title/index.js +1 -1
- package/ToggleButton/index.js +1 -1
- package/Tooltip/index.js +1 -1
- package/Transfer/index.js +1 -1
- package/Tree/index.js +3 -3
- package/Upload/index.js +1 -1
- package/_verture/{index-c77ccb98.js → index-42bdcb41.js} +1 -1
- package/_verture/{index-f59b0bc0.js → index-4e2bdd78.js} +1 -1
- package/_verture/{modalContext-c8cc3107.js → modalContext-00cfd490.js} +1 -1
- package/_verture/tslib.es6-fe0d4b4e.js +43 -0
- package/index.js +5 -5
- package/package.json +4 -4
- package/umd/AutoBox.js +3 -3
- package/umd/AutoTips.js +3 -3
- package/umd/Breadcrumbs.js +3 -3
- package/umd/Button.js +4 -4
- package/umd/ButtonGroup.js +4 -4
- package/umd/Cascader.js +4 -4
- package/umd/Checkbox.js +3 -3
- package/umd/CheckboxGroup.js +3 -3
- package/umd/Collapse.js +3 -3
- package/umd/ComboSelect.js +4 -4
- package/umd/CopyText.js +4 -4
- package/umd/CycleSelector.js +4 -4
- package/umd/DatePicker.js +5 -5
- package/umd/Descriptions.js +4 -4
- package/umd/Desktop.js +4 -4
- package/umd/Drawer.js +4 -4
- package/umd/Dropdown.js +4 -4
- package/umd/DynamicMultiBox.js +4 -4
- package/umd/Form.js +4 -4
- package/umd/FormItem.js +4 -4
- package/umd/FunctionModal.js +4 -4
- package/umd/Help.js +3 -3
- package/umd/InputLang.js +4 -4
- package/umd/InputNumber.js +3 -3
- package/umd/Label.js +3 -3
- package/umd/Menu.js +3 -3
- package/umd/Modal.js +4 -4
- package/umd/MultiBox.js +4 -4
- package/umd/Notification.js +3 -3
- package/umd/OperateBtn.js +4 -4
- package/umd/PageHeader.js +4 -4
- package/umd/Pagination.js +4 -4
- package/umd/PopConfirm.js +4 -4
- package/umd/PopMenu.js +3 -3
- package/umd/Popover.js +3 -3
- package/umd/QuickReply.js +4 -4
- package/umd/Radio.js +3 -3
- package/umd/RadioGroup.js +3 -3
- package/umd/Search.js +4 -4
- package/umd/Select.js +4 -4
- package/umd/SelectInput.js +4 -4
- package/umd/Selector.js +4 -4
- package/umd/SelectorPicker.js +4 -4
- package/umd/SingleBox.js +4 -4
- package/umd/Slider.js +3 -3
- package/umd/Stepper.js +4 -4
- package/umd/Switch.js +3 -3
- package/umd/Table.js +4 -4
- package/umd/Tabs.js +5 -5
- package/umd/Tag.js +3 -3
- package/umd/TextEditor.js +3 -3
- package/umd/TextField.js +4 -4
- package/umd/TimePicker.js +4 -4
- package/umd/Title.js +4 -4
- package/umd/ToggleButton.js +4 -4
- package/umd/Tooltip.js +3 -3
- package/umd/Transfer.js +4 -4
- package/umd/Tree.js +4 -4
- package/umd/Upload.js +4 -4
- package/_verture/tslib.es6-55ed4bd2.js +0 -38
- /package/_verture/{index-543781c9.js → index-96ca38ae.js} +0 -0
package/umd/InputNumber.js
CHANGED
|
@@ -17,8 +17,8 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
17
17
|
object-assign
|
|
18
18
|
(c) Sindre Sorhus
|
|
19
19
|
@license MIT
|
|
20
|
-
*/var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,o){for(var i,a,u=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),c=1;c<arguments.length;c++){for(var s in i=Object(arguments[c]))n.call(i,s)&&(u[s]=i[s]);if(e){a=e(i);for(var l=0;l<a.length;l++)r.call(i,a[l])&&(u[a[l]]=i[a[l]])}}return u}},44785:(t,e,n)=>{"use strict";n.d(e,{A:()=>b});var r=n(64467),o=n(89379),i=n(3453),a=n(82284),u=n(39155),c=n(66588),s=n(8719),l=n(46942),p=n.n(l),f=n(80371),d=n(25931),m=n(25318),v=n(72137),h=n(58515);const b=function(t){var e=t;function n(t){return!(!t.motionName||!e)}"object"===(0,a.A)(t)&&(e=t.transitionSupport);var l=u.forwardRef((function(t,e){var a=t.visible,l=void 0===a||a,b=t.removeOnLeave,g=void 0===b||b,y=t.forceRender,w=t.children,A=t.motionName,O=t.leavedClassName,E=t.eventProps,x=n(t),S=(0,u.useRef)(),N=(0,u.useRef)();var T=(0,m.A)(x,l,(function(){try{return(0,c.A)(S.current||N.current)}catch(t){return null}}),t),C=(0,i.A)(T,4),M=C[0],P=C[1],j=C[2],k=C[3],_=u.useRef(k);k&&(_.current=!0);var R=(0,u.useRef)(e);R.current=e;var D,L=u.useCallback((function(t){S.current=t,(0,s.Xf)(R.current,t)}),[]),I=(0,o.A)((0,o.A)({},E),{},{visible:l});if(w)if(M!==d.SF&&n(t)){var H,F;P===d.px?F="prepare":(0,h.$m)(P)?F="active":P===d.Mv&&(F="start"),D=w((0,o.A)((0,o.A)({},I),{},{className:p()((0,f.by)(A,M),(H={},(0,r.A)(H,(0,f.by)(A,"".concat(M,"-").concat(F)),F),(0,r.A)(H,A,"string"==typeof A),H)),style:j}),L)}else D=k?w((0,o.A)({},I),L):!g&&_.current?w((0,o.A)((0,o.A)({},I),{},{className:O}),L):y?w((0,o.A)((0,o.A)({},I),{},{style:{display:"none"}}),L):null;else D=null;return u.createElement(v.A,{ref:N},D)}));return l.displayName="CSSMotion",l}(f.J1)},97333:(t,e,n)=>{"use strict";var r=n(58168),o=n(80045),i=n(89379),a=n(23029),u=n(92901),c=n(85501),s=n(29426),l=n(39155),p=n(44785),f=n(80371),d=n(29710),m=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.A,n=function(t){(0,c.A)(p,t);var n=(0,s.A)(p);function p(){var t;return(0,a.A)(this,p),(t=n.apply(this,arguments)).state={keyEntities:[]},t.removeKey=function(e){t.setState((function(t){return{keyEntities:t.keyEntities.map((function(t){return t.key!==e?t:(0,i.A)((0,i.A)({},t),{},{status:d.e8})}))}}))},t}return(0,u.A)(p,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,i=this.props,a=i.component,u=i.children,c=i.onVisibleChanged,s=(0,o.A)(i,["component","children","onVisibleChanged"]),p=a||l.Fragment,f={};return m.forEach((function(t){f[t]=s[t],delete s[t]})),delete s.keys,l.createElement(p,s,n.map((function(n){var i=n.status,a=(0,o.A)(n,["status"]),s=i===d.bK||i===d.xI;return l.createElement(e,(0,r.A)({},f,{key:a.key,visible:s,eventProps:a,onVisibleChanged:function(e){null==c||c(e,{key:a.key}),e||t.removeKey(a.key)}}),u)})))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.keys,r=e.keyEntities,o=(0,d.Ss)(n);return{keyEntities:(0,d.y$)(r,o).filter((function(t){var e=r.find((function(e){var n=e.key;return t.key===n}));return!e||e.status!==d.e8||t.status!==d.au}))}}}]),p}(l.Component);n.defaultProps={component:"div"}}(f.J1)},72137:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(23029),o=n(92901),i=n(85501),a=n(29426),u=n(39155);const c=function(t){(0,i.A)(n,t);var e=(0,a.A)(n);function n(){return(0,r.A)(this,n),e.apply(this,arguments)}return(0,o.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component)},85849:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(39155),o=n(80371);const i=function(t){var e=(0,r.useRef)(),n=(0,r.useRef)(t);n.current=t;var i=r.useCallback((function(t){n.current(t)}),[]);function a(t){t&&(t.removeEventListener(o.m8,i),t.removeEventListener(o.Vc,i))}return r.useEffect((function(){return function(){a(e.current)}}),[]),[function(t){e.current&&e.current!==t&&a(e.current),t&&t!==e.current&&(t.addEventListener(o.m8,i),t.addEventListener(o.Vc,i),e.current=t)},a]}},43982:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(39155);const o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect},84560:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(39155),o=n(25371);const i=function(){var t=r.useRef(null);function e(){o.A.cancel(t.current)}return r.useEffect((function(){return function(){e()}}),[]),[function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;e();var a=(0,o.A)((function(){i<=1?r({isCanceled:function(){return a!==t.current}}):n(r,i-1)}));t.current=a},e]}},92659:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(3453),o=n(39155);function i(t){var e=(0,o.useRef)(!1),n=(0,o.useState)(t),i=(0,r.A)(n,2),a=i[0],u=i[1];return(0,o.useEffect)((function(){return function(){e.current=!0}}),[]),[a,function(t){e.current||u(t)}]}},25318:(t,e,n)=>{"use strict";n.d(e,{A:()=>f});var r=n(89379),o=n(64467),i=n(3453),a=n(39155),u=n(25931),c=n(92659),s=n(43982),l=n(58515),p=n(85849);function f(t,e,n,f){var d=f.motionEnter,m=void 0===d||d,v=f.motionAppear,h=void 0===v||v,b=f.motionLeave,g=void 0===b||b,y=f.motionDeadline,w=f.motionLeaveImmediately,A=f.onAppearPrepare,O=f.onEnterPrepare,E=f.onLeavePrepare,x=f.onAppearStart,S=f.onEnterStart,N=f.onLeaveStart,T=f.onAppearActive,C=f.onEnterActive,M=f.onLeaveActive,P=f.onAppearEnd,j=f.onEnterEnd,k=f.onLeaveEnd,_=f.onVisibleChanged,R=(0,c.A)(),D=(0,i.A)(R,2),L=D[0],I=D[1],H=(0,c.A)(u.SF),F=(0,i.A)(H,2),V=F[0],B=F[1],z=(0,c.A)(null),U=(0,i.A)(z,2),W=U[0],Y=U[1],q=(0,a.useRef)(!1),X=(0,a.useRef)(null),K=(0,a.useRef)(!1),G=(0,a.useRef)(null);function $(){return n()||G.current}var Z=(0,a.useRef)(!1);function Q(t){var e,n=$();t&&!t.deadline&&t.target!==n||(V===u.Tv&&Z.current?e=null==P?void 0:P(n,t):V===u.Wd&&Z.current?e=null==j?void 0:j(n,t):V===u.dp&&Z.current&&(e=null==k?void 0:k(n,t)),!1===e||K.current||(B(u.SF),Y(null)))}var J=(0,p.A)(Q),tt=(0,i.A)(J,1)[0],et=a.useMemo((function(){var t,e,n;switch(V){case"appear":return t={},(0,o.A)(t,u.px,A),(0,o.A)(t,u.Mv,x),(0,o.A)(t,u.m7,T),t;case"enter":return e={},(0,o.A)(e,u.px,O),(0,o.A)(e,u.Mv,S),(0,o.A)(e,u.m7,C),e;case"leave":return n={},(0,o.A)(n,u.px,E),(0,o.A)(n,u.Mv,N),(0,o.A)(n,u.m7,M),n;default:return{}}}),[V]),nt=(0,l.Ay)(V,(function(t){if(t===u.px){var e=et[u.px];return e?e($()):l.es}var n;it in et&&Y((null===(n=et[it])||void 0===n?void 0:n.call(et,$(),null))||null);return it===u.m7&&(tt($()),y>0&&(clearTimeout(X.current),X.current=setTimeout((function(){Q({deadline:!0})}),y))),l.qB})),rt=(0,i.A)(nt,2),ot=rt[0],it=rt[1],at=(0,l.$m)(it);Z.current=at,(0,s.A)((function(){I(e);var n,r=q.current;(q.current=!0,t)&&(!r&&e&&h&&(n=u.Tv),r&&e&&m&&(n=u.Wd),(r&&!e&&g||!r&&w&&!e&&g)&&(n=u.dp),n&&(B(n),ot()))}),[e]),(0,a.useEffect)((function(){(V===u.Tv&&!h||V===u.Wd&&!m||V===u.dp&&!g)&&B(u.SF)}),[h,m,g]),(0,a.useEffect)((function(){return function(){clearTimeout(X.current),K.current=!0}}),[]),(0,a.useEffect)((function(){void 0!==L&&V===u.SF&&(null==_||_(L))}),[L,V]);var ut=W;return et[u.px]&&it===u.Mv&&(ut=(0,r.A)({transition:"none"},ut)),[V,it,ut,null!=L?L:e]}},58515:(t,e,n)=>{"use strict";n.d(e,{$m:()=>p,Ay:()=>f,es:()=>s,qB:()=>l});var r=n(3453),o=n(39155),i=n(25931),a=n(43982),u=n(84560),c=[i.px,i.Mv,i.m7,i.Hs],s=!1,l=!0;function p(t){return t===i.m7||t===i.Hs}const f=function(t,e){var n=o.useState(i.cE),l=(0,r.A)(n,2),p=l[0],f=l[1],d=(0,u.A)(),m=(0,r.A)(d,2),v=m[0],h=m[1];return(0,a.A)((function(){if(p!==i.cE&&p!==i.Hs){var t=c.indexOf(p),n=c[t+1],r=e(p);r===s?f(n):v((function(t){function e(){t.isCanceled()||f(n)}!0===r?e():Promise.resolve(r).then(e)}))}}),[t,p]),o.useEffect((function(){return function(){h()}}),[]),[function(){f(i.px)},p]}},30156:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(44785);n(97333);const o=r.A},25931:(t,e,n)=>{"use strict";n.d(e,{Hs:()=>p,Mv:()=>s,SF:()=>r,Tv:()=>o,Wd:()=>i,cE:()=>u,dp:()=>a,m7:()=>l,px:()=>c});var r="none",o="appear",i="enter",a="leave",u="none",c="prepare",s="start",l="active",p="end"},29710:(t,e,n)=>{"use strict";n.d(e,{Ss:()=>l,au:()=>u,bK:()=>i,e8:()=>c,xI:()=>a,y$:()=>p});var r=n(89379),o=n(82284),i="add",a="keep",u="remove",c="removed";function s(t){var e;return e=t&&"object"===(0,o.A)(t)&&"key"in t?t:{key:t},(0,r.A)((0,r.A)({},e),{},{key:String(e.key)})}function l(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(s)}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,c=e.length,s=l(t),p=l(e);s.forEach((function(t){for(var e=!1,s=o;s<c;s+=1){var l=p[s];if(l.key===t.key){o<s&&(n=n.concat(p.slice(o,s).map((function(t){return(0,r.A)((0,r.A)({},t),{},{status:i})}))),o=s),n.push((0,r.A)((0,r.A)({},l),{},{status:a})),o+=1,e=!0;break}}e||n.push((0,r.A)((0,r.A)({},t),{},{status:u}))})),o<c&&(n=n.concat(p.slice(o).map((function(t){return(0,r.A)((0,r.A)({},t),{},{status:i})}))));var f={};return n.forEach((function(t){var e=t.key;f[e]=(f[e]||0)+1})),Object.keys(f).filter((function(t){return f[t]>1})).forEach((function(t){(n=n.filter((function(e){var n=e.key,r=e.status;return n!==t||r!==u}))).forEach((function(e){e.key===t&&(e.status=a)}))})),n}},80371:(t,e,n)=>{"use strict";n.d(e,{J1:()=>h,Vc:()=>b,by:()=>y,m8:()=>g});var r=n(82284),o=n(20998);function i(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit".concat(t)]="webkit".concat(e),n["Moz".concat(t)]="moz".concat(e),n["ms".concat(t)]="MS".concat(e),n["O".concat(t)]="o".concat(e.toLowerCase()),n}var a,u,c,s=(a=(0,o.A)(),u="undefined"!=typeof window?window:{},c={animationend:i("Animation","AnimationEnd"),transitionend:i("Transition","TransitionEnd")},a&&("AnimationEvent"in u||delete c.animationend.animation,"TransitionEvent"in u||delete c.transitionend.transition),c),l={};if((0,o.A)()){var p=document.createElement("div");l=p.style}var f={};function d(t){if(f[t])return f[t];var e=s[t];if(e)for(var n=Object.keys(e),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(e,i)&&i in l)return f[t]=e[i],f[t]}return""}var m=d("animationend"),v=d("transitionend"),h=!(!m||!v),b=m||"animationend",g=v||"transitionend";function y(t,e){return t?"object"===(0,r.A)(t)?t[e.replace(/-\w/g,(function(t){return t[1].toUpperCase()}))]:"".concat(t,"-").concat(e):null}},34307:(t,e,n)=>{"use strict";n.d(e,{A:()=>m});var r=n(58168),o=n(82284),i=n(89379),a=n(80045),u=n(39155),c=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(t){var e=t.overlay,n=t.prefixCls,r=t.id,o=t.overlayInnerStyle;return u.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof e?e():e)};var d=function(t,e){var n=t.overlayClassName,s=t.trigger,l=void 0===s?["hover"]:s,d=t.mouseEnterDelay,m=void 0===d?0:d,v=t.mouseLeaveDelay,h=void 0===v?.1:v,b=t.overlayStyle,g=t.prefixCls,y=void 0===g?"rc-tooltip":g,w=t.children,A=t.onVisibleChange,O=t.afterVisibleChange,E=t.transitionName,x=t.animation,S=t.motion,N=t.placement,T=void 0===N?"right":N,C=t.align,M=void 0===C?{}:C,P=t.destroyTooltipOnHide,j=void 0!==P&&P,k=t.defaultVisible,_=t.getTooltipContainer,R=t.overlayInnerStyle,D=(0,a.A)(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),L=(0,u.useRef)(null);(0,u.useImperativeHandle)(e,(function(){return L.current}));var I=(0,i.A)({},D);"visible"in t&&(I.popupVisible=t.visible);var H=!1,F=!1;if("boolean"==typeof j)H=j;else if(j&&"object"===(0,o.A)(j)){var V=j.keepParent;H=!0===V,F=!1===V}return u.createElement(c.A,(0,r.A)({popupClassName:n,prefixCls:y,popup:function(){var e=t.arrowContent,n=void 0===e?null:e,r=t.overlay,o=t.id;return[u.createElement("div",{className:"".concat(y,"-arrow"),key:"arrow"},n),u.createElement(f,{key:"content",prefixCls:y,id:o,overlay:r,overlayInnerStyle:R})]},action:l,builtinPlacements:p,popupPlacement:T,ref:L,popupAlign:M,getPopupContainer:_,onPopupVisibleChange:A,afterPopupVisibleChange:O,popupTransitionName:E,popupAnimation:x,popupMotion:S,defaultPopupVisible:k,destroyPopupOnHide:H,autoDestroy:F,mouseLeaveDelay:h,popupStyle:b,mouseEnterDelay:m},I),w)};const m=(0,u.forwardRef)(d)},94934:(t,e)=>{"use strict";e.DD=void 0;var n={adjustX:1,adjustY:1},r=[0,0],o={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:r},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:r},top:{points:["bc","tc"],overflow:n,offset:[0,-4],targetOffset:r},bottom:{points:["tc","bc"],overflow:n,offset:[0,4],targetOffset:r},topLeft:{points:["bl","tl"],overflow:n,offset:[0,-4],targetOffset:r},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:r},topRight:{points:["br","tr"],overflow:n,offset:[0,-4],targetOffset:r},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:r},bottomRight:{points:["tr","br"],overflow:n,offset:[0,4],targetOffset:r},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,4],targetOffset:r},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:r}};e.DD=o},1748:(t,e,n)=>{"use strict";n.d(e,{A:()=>ce});var r=n(89379),o=n(58168),i=n(23029),a=n(92901),u=n(9417),c=n(85501),s=n(29426),l=n(64467),p=n(39155),f=n.n(p),d=n(69514),m=n.n(d),v=n(25371),h=n(54808),b=n(66588),g=n(8719),y=n(69916),w=n(88822),A=n(46942),O=n.n(A);function E(t,e,n){return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}var x=n(3453),S=n(80045),N=n(68430),T=n(30156);function C(t){var e=t.prefixCls,n=t.motion,r=t.animation,o=t.transitionName;return n||(r?{motionName:"".concat(e,"-").concat(r)}:o?{motionName:o}:null)}function M(t){var e=t.prefixCls,n=t.visible,i=t.zIndex,a=t.mask,u=t.maskMotion,c=t.maskAnimation,s=t.maskTransitionName;if(!a)return null;var l={};return(u||s||c)&&(l=(0,r.A)({motionAppear:!0},C({motion:u,prefixCls:e,transitionName:s,animation:c}))),p.createElement(T.A,(0,o.A)({},l,{visible:n,removeOnLeave:!0}),(function(t){var n=t.className;return p.createElement("div",{style:{zIndex:i},className:O()("".concat(e,"-mask"),n)})}))}var P,j=n(82284);function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?k(Object(n),!0).forEach((function(e){D(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function R(t){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R(t)}function D(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var L={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function I(){if(void 0!==P)return P;P="";var t=document.createElement("p").style;for(var e in L)e+"Transform"in t&&(P=e);return P}function H(){return I()?"".concat(I(),"TransitionProperty"):"transitionProperty"}function F(){return I()?"".concat(I(),"Transform"):"transform"}function V(t,e){var n=H();n&&(t.style[n]=e,"transitionProperty"!==n&&(t.style.transitionProperty=e))}function B(t,e){var n=F();n&&(t.style[n]=e,"transform"!==n&&(t.style.transform=e))}var z,U=/matrix\((.*)\)/,W=/matrix3d\((.*)\)/;function Y(t){var e=t.style.display;t.style.display="none",t.offsetHeight,t.style.display=e}function q(t,e,n){var r=n;if("object"!==R(e))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(t.style[e]=r)):z(t,e);for(var o in e)e.hasOwnProperty(o)&&q(t,o,e[o])}function X(t,e){var n=t["page".concat(e?"Y":"X","Offset")],r="scroll".concat(e?"Top":"Left");if("number"!=typeof n){var o=t.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function K(t){return X(t)}function G(t){return X(t,!0)}function $(t){var e=function(t){var e,n,r,o=t.ownerDocument,i=o.body,a=o&&o.documentElement;return e=t.getBoundingClientRect(),n=Math.floor(e.left),r=Math.floor(e.top),{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(t),n=t.ownerDocument,r=n.defaultView||n.parentWindow;return e.left+=K(r),e.top+=G(r),e}function Z(t){return null!=t&&t==t.window}function Q(t){return Z(t)?t.document:9===t.nodeType?t:t.ownerDocument}var J=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),tt=/^(top|right|bottom|left)$/,et="currentStyle",nt="runtimeStyle",rt="left";function ot(t,e){return"left"===t?e.useCssRight?"right":t:e.useCssBottom?"bottom":t}function it(t){return"left"===t?"right":"right"===t?"left":"top"===t?"bottom":"bottom"===t?"top":void 0}function at(t,e,n){"static"===q(t,"position")&&(t.style.position="relative");var r=-999,o=-999,i=ot("left",n),a=ot("top",n),u=it(i),c=it(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var s,l="",p=$(t);("left"in e||"top"in e)&&(l=(s=t).style.transitionProperty||s.style[H()]||"",V(t,"none")),"left"in e&&(t.style[u]="",t.style[i]="".concat(r,"px")),"top"in e&&(t.style[c]="",t.style[a]="".concat(o,"px")),Y(t);var f=$(t),d={};for(var m in e)if(e.hasOwnProperty(m)){var v=ot(m,n),h="left"===m?r:o,b=p[m]-f[m];d[v]=v===m?h+b:h-b}q(t,d),Y(t),("left"in e||"top"in e)&&V(t,l);var g={};for(var y in e)if(e.hasOwnProperty(y)){var w=ot(y,n),A=e[y]-p[y];g[w]=y===w?d[w]+A:d[w]-A}q(t,g)}function ut(t,e){var n=$(t),r=function(t){var e=window.getComputedStyle(t,null),n=e.getPropertyValue("transform")||e.getPropertyValue(F());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(t),o={x:r.x,y:r.y};"left"in e&&(o.x=r.x+e.left-n.left),"top"in e&&(o.y=r.y+e.top-n.top),function(t,e){var n=window.getComputedStyle(t,null),r=n.getPropertyValue("transform")||n.getPropertyValue(F());if(r&&"none"!==r){var o,i=r.match(U);i?((o=(i=i[1]).split(",").map((function(t){return parseFloat(t,10)})))[4]=e.x,o[5]=e.y,B(t,"matrix(".concat(o.join(","),")"))):((o=r.match(W)[1].split(",").map((function(t){return parseFloat(t,10)})))[12]=e.x,o[13]=e.y,B(t,"matrix3d(".concat(o.join(","),")")))}else B(t,"translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) translateZ(0)"))}(t,o)}function ct(t,e){for(var n=0;n<t.length;n++)e(t[n])}function st(t){return"border-box"===z(t,"boxSizing")}"undefined"!=typeof window&&(z=window.getComputedStyle?function(t,e,n){var r=n,o="",i=Q(t);return(r=r||i.defaultView.getComputedStyle(t,null))&&(o=r.getPropertyValue(e)||r[e]),o}:function(t,e){var n=t[et]&&t[et][e];if(J.test(n)&&!tt.test(e)){var r=t.style,o=r[rt],i=t[nt][rt];t[nt][rt]=t[et][rt],r[rt]="fontSize"===e?"1em":n||0,n=r.pixelLeft+"px",r[rt]=o,t[nt][rt]=i}return""===n?"auto":n});var lt=["margin","border","padding"],pt=-1,ft=2,dt=1;function mt(t,e,n){var r,o,i,a=0;for(o=0;o<e.length;o++)if(r=e[o])for(i=0;i<n.length;i++){var u=void 0;u="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(z(t,u))||0}return a}var vt={getParent:function(t){var e=t;do{e=11===e.nodeType&&e.host?e.host:e.parentNode}while(e&&1!==e.nodeType&&9!==e.nodeType);return e}};function ht(t,e,n){var r=n;if(Z(t))return"width"===e?vt.viewportWidth(t):vt.viewportHeight(t);if(9===t.nodeType)return"width"===e?vt.docWidth(t):vt.docHeight(t);var o="width"===e?["Left","Right"]:["Top","Bottom"],i="width"===e?Math.floor(t.getBoundingClientRect().width):Math.floor(t.getBoundingClientRect().height),a=st(t),u=0;(null==i||i<=0)&&(i=void 0,(null==(u=z(t,e))||Number(u)<0)&&(u=t.style[e]||0),u=Math.floor(parseFloat(u))||0),void 0===r&&(r=a?dt:pt);var c=void 0!==i||a,s=i||u;return r===pt?c?s-mt(t,["border","padding"],o):u:c?r===dt?s:s+(r===ft?-mt(t,["border"],o):mt(t,["margin"],o)):u+mt(t,lt.slice(r),o)}ct(["Width","Height"],(function(t){vt["doc".concat(t)]=function(e){var n=e.document;return Math.max(n.documentElement["scroll".concat(t)],n.body["scroll".concat(t)],vt["viewport".concat(t)](n))},vt["viewport".concat(t)]=function(e){var n="client".concat(t),r=e.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var bt={position:"absolute",visibility:"hidden",display:"block"};function gt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,o=e[0];return 0!==o.offsetWidth?r=ht.apply(void 0,e):function(t,e,n){var r,o={},i=t.style;for(r in e)e.hasOwnProperty(r)&&(o[r]=i[r],i[r]=e[r]);for(r in n.call(t),e)e.hasOwnProperty(r)&&(i[r]=o[r])}(o,bt,(function(){r=ht.apply(void 0,e)})),r}function yt(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}ct(["width","height"],(function(t){var e=t.charAt(0).toUpperCase()+t.slice(1);vt["outer".concat(e)]=function(e,n){return e&>(e,t,n?0:dt)};var n="width"===t?["Left","Right"]:["Top","Bottom"];vt[t]=function(e,r){var o=r;return void 0!==o?e?(st(e)&&(o+=mt(e,["padding","border"],n)),q(e,t,o)):void 0:e&>(e,t,pt)}}));var wt={getWindow:function(t){if(t&&t.document&&t.setTimeout)return t;var e=t.ownerDocument||t;return e.defaultView||e.parentWindow},getDocument:Q,offset:function(t,e,n){if(void 0===e)return $(t);!function(t,e,n){if(n.ignoreShake){var r=$(t),o=r.left.toFixed(0),i=r.top.toFixed(0),a=e.left.toFixed(0),u=e.top.toFixed(0);if(o===a&&i===u)return}n.useCssRight||n.useCssBottom?at(t,e,n):n.useCssTransform&&F()in document.body.style?ut(t,e):at(t,e,n)}(t,e,n||{})},isWindow:Z,each:ct,css:q,clone:function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);if(t.overflow)for(e in t)t.hasOwnProperty(e)&&(n.overflow[e]=t.overflow[e]);return n},mix:yt,getWindowScrollLeft:function(t){return K(t)},getWindowScrollTop:function(t){return G(t)},merge:function(){for(var t={},e=0;e<arguments.length;e++)wt.mix(t,e<0||arguments.length<=e?void 0:arguments[e]);return t},viewportWidth:0,viewportHeight:0};yt(wt,vt);var At=wt.getParent;function Ot(t){if(wt.isWindow(t)||9===t.nodeType)return null;var e,n=wt.getDocument(t).body,r=wt.css(t,"position");if(!("fixed"===r||"absolute"===r))return"html"===t.nodeName.toLowerCase()?null:At(t);for(e=At(t);e&&e!==n&&9!==e.nodeType;e=At(e))if("static"!==(r=wt.css(e,"position")))return e;return null}var Et=wt.getParent;function xt(t,e){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=Ot(t),o=wt.getDocument(t),i=o.defaultView||o.parentWindow,a=o.body,u=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===u||"visible"===wt.css(r,"overflow")){if(r===a||r===u)break}else{var c=wt.offset(r);c.left+=r.clientLeft,c.top+=r.clientTop,n.top=Math.max(n.top,c.top),n.right=Math.min(n.right,c.left+r.clientWidth),n.bottom=Math.min(n.bottom,c.top+r.clientHeight),n.left=Math.max(n.left,c.left)}r=Ot(r)}var s=null;wt.isWindow(t)||9===t.nodeType||(s=t.style.position,"absolute"===wt.css(t,"position")&&(t.style.position="fixed"));var l=wt.getWindowScrollLeft(i),p=wt.getWindowScrollTop(i),f=wt.viewportWidth(i),d=wt.viewportHeight(i),m=u.scrollWidth,v=u.scrollHeight,h=window.getComputedStyle(a);if("hidden"===h.overflowX&&(m=i.innerWidth),"hidden"===h.overflowY&&(v=i.innerHeight),t.style&&(t.style.position=s),e||function(t){if(wt.isWindow(t)||9===t.nodeType)return!1;var e=wt.getDocument(t),n=e.body,r=null;for(r=Et(t);r&&r!==n&&r!==e;r=Et(r))if("fixed"===wt.css(r,"position"))return!0;return!1}(t))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 b=Math.max(m,l+f);n.right=Math.min(n.right,b);var g=Math.max(v,p+d);n.bottom=Math.min(n.bottom,g)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function St(t){var e,n,r;if(wt.isWindow(t)||9===t.nodeType){var o=wt.getWindow(t);e={left:wt.getWindowScrollLeft(o),top:wt.getWindowScrollTop(o)},n=wt.viewportWidth(o),r=wt.viewportHeight(o)}else e=wt.offset(t),n=wt.outerWidth(t),r=wt.outerHeight(t);return e.width=n,e.height=r,e}function Nt(t,e){var n=e.charAt(0),r=e.charAt(1),o=t.width,i=t.height,a=t.left,u=t.top;return"c"===n?u+=i/2:"b"===n&&(u+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:u}}function Tt(t,e,n,r,o){var i=Nt(e,n[1]),a=Nt(t,n[0]),u=[a.left-i.left,a.top-i.top];return{left:Math.round(t.left-u[0]+r[0]-o[0]),top:Math.round(t.top-u[1]+r[1]-o[1])}}function Ct(t,e,n){return t.left<n.left||t.left+e.width>n.right}function Mt(t,e,n){return t.top<n.top||t.top+e.height>n.bottom}function Pt(t,e,n){var r=[];return wt.each(t,(function(t){r.push(t.replace(e,(function(t){return n[t]})))})),r}function jt(t,e){return t[e]=-t[e],t}function kt(t,e){return(/%$/.test(t)?parseInt(t.substring(0,t.length-1),10)/100*e:parseInt(t,10))||0}function _t(t,e){t[0]=kt(t[0],e.width),t[1]=kt(t[1],e.height)}function Rt(t,e,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,c=n.source||t;i=[].concat(i),a=[].concat(a);var s={},l=0,p=xt(c,!(!(u=u||{})||!u.alwaysByViewport)),f=St(c);_t(i,f),_t(a,e);var d=Tt(f,e,o,i,a),m=wt.merge(f,d);if(p&&(u.adjustX||u.adjustY)&&r){if(u.adjustX&&Ct(d,f,p)){var v=Pt(o,/[lr]/gi,{l:"r",r:"l"}),h=jt(i,0),b=jt(a,0);(function(t,e,n){return t.left>n.right||t.left+e.width<n.left})(Tt(f,e,v,h,b),f,p)||(l=1,o=v,i=h,a=b)}if(u.adjustY&&Mt(d,f,p)){var g=Pt(o,/[tb]/gi,{t:"b",b:"t"}),y=jt(i,1),w=jt(a,1);(function(t,e,n){return t.top>n.bottom||t.top+e.height<n.top})(Tt(f,e,g,y,w),f,p)||(l=1,o=g,i=y,a=w)}l&&(d=Tt(f,e,o,i,a),wt.mix(m,d));var A=Ct(d,f,p),O=Mt(d,f,p);if(A||O){var E=o;A&&(E=Pt(o,/[lr]/gi,{l:"r",r:"l"})),O&&(E=Pt(o,/[tb]/gi,{t:"b",b:"t"})),o=E,i=n.offset||[0,0],a=n.targetOffset||[0,0]}s.adjustX=u.adjustX&&A,s.adjustY=u.adjustY&&O,(s.adjustX||s.adjustY)&&(m=function(t,e,n,r){var o=wt.clone(t),i={width:e.width,height:e.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),wt.mix(o,i)}(d,f,p,s))}return m.width!==f.width&&wt.css(c,"width",wt.width(c)+m.width-f.width),m.height!==f.height&&wt.css(c,"height",wt.height(c)+m.height-f.height),wt.offset(c,{left:m.left,top:m.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:s}}function Dt(t,e,n){var r=n.target||e,o=St(r),i=!function(t,e){var n=xt(t,e),r=St(t);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return Rt(t,o,n,i)}Dt.__getOffsetParent=Ot,Dt.__getVisibleRectForElement=xt;var Lt=n(43210),It=n(42467),Ht=n(30981);var Ft=n(43591);function Vt(t,e){var n=null,r=null;var o=new Ft.default((function(t){var o=(0,x.A)(t,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,u=i.height,c=Math.floor(a),s=Math.floor(u);n===c&&r===s||Promise.resolve().then((function(){e({width:c,height:s})})),n=c,r=s}}));return t&&o.observe(t),function(){o.disconnect()}}function Bt(t){return"function"!=typeof t?null:t()}function zt(t){return"object"===(0,j.A)(t)&&t?t:null}var Ut=function(t,e){var n=t.children,r=t.disabled,o=t.target,i=t.align,a=t.onAlign,u=t.monitorWindowResize,c=t.monitorBufferTime,s=void 0===c?0:c,l=f().useRef({}),p=f().useRef(),d=f().Children.only(n),m=f().useRef({});m.current.disabled=r,m.current.target=o,m.current.align=i,m.current.onAlign=a;var v=function(t,e){var n=f().useRef(!1),r=f().useRef(null);function o(){window.clearTimeout(r.current)}return[function i(a){if(o(),n.current&&!0!==a)r.current=window.setTimeout((function(){n.current=!1,i()}),e);else{if(!1===t(a))return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),e)}},function(){n.current=!1,o()}]}((function(){var t=m.current,e=t.disabled,n=t.target,r=t.align,o=t.onAlign,i=p.current;if(!e&&n&&i){var a,u=Bt(n),c=zt(n);l.current.element=u,l.current.point=c,l.current.align=r;var s=document.activeElement;return u&&(0,It.A)(u)?a=Dt(i,u,r):c&&(a=function(t,e,n){var r,o,i=wt.getDocument(t),a=i.defaultView||i.parentWindow,u=wt.getWindowScrollLeft(a),c=wt.getWindowScrollTop(a),s=wt.viewportWidth(a),l=wt.viewportHeight(a),p={left:r="pageX"in e?e.pageX:u+e.clientX,top:o="pageY"in e?e.pageY:c+e.clientY,width:0,height:0},f=r>=0&&r<=u+s&&o>=0&&o<=c+l,d=[n.points[0],"cc"];return Rt(t,p,_(_({},n),{},{points:d}),f)}(i,c,r)),function(t,e){t!==document.activeElement&&(0,h.A)(e,t)&&"function"==typeof t.focus&&t.focus()}(s,i),o&&a&&o(i,a),!0}return!1}),s),b=(0,x.A)(v,2),w=b[0],A=b[1],O=f().useState(),E=(0,x.A)(O,2),S=E[0],N=E[1],T=f().useState(),C=(0,x.A)(T,2),M=C[0],P=C[1];return(0,Ht.A)((function(){N(Bt(o)),P(zt(o))})),f().useEffect((function(){var t,e;l.current.element===S&&((t=l.current.point)===(e=M)||t&&e&&("pageX"in e&&"pageY"in e?t.pageX===e.pageX&&t.pageY===e.pageY:"clientX"in e&&"clientY"in e&&t.clientX===e.clientX&&t.clientY===e.clientY))&&(0,Lt.A)(l.current.align,i)||w()})),f().useEffect((function(){return Vt(p.current,w)}),[p.current]),f().useEffect((function(){return Vt(S,w)}),[S]),f().useEffect((function(){r?A():w()}),[r]),f().useEffect((function(){if(u)return(0,y.A)(window,"resize",w).remove}),[u]),f().useEffect((function(){return function(){A()}}),[]),f().useImperativeHandle(e,(function(){return{forceAlign:function(){return w(!0)}}})),f().isValidElement(d)&&(d=f().cloneElement(d,{ref:(0,g.K4)(d.ref,p)})),d},Wt=f().forwardRef(Ut);Wt.displayName="Align";const Yt=Wt;function qt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
21
|
-
qt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),u=new P(r||[]);return o(a,"_invoke",{value:N(t,n,u)}),a}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",m="executing",v="completed",h={};function b(){}function g(){}function y(){}var w={};s(w,a,(function(){return this}));var A=Object.getPrototypeOf,O=A&&A(A(k([])));O&&O!==n&&r.call(O,a)&&(w=O);var E=y.prototype=b.prototype=Object.create(w);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,u){var c=p(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==(0,j.A)(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function N(e,n,r){var o=f;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var c=T(u,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=p(e,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=p(o,e.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[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function k(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError((0,j.A)(e)+" is not iterable")}return g.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:g,configurable:!0}),g.displayName=s(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},x(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(E),s(E,c,"Generator"),s(E,a,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=k,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){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(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}var Xt=n(10467),Kt=n(1233),Gt=["measure","alignPre","align",null,"motion"];var $t=p.forwardRef((function(t,e){var n=t.visible,i=t.prefixCls,a=t.className,u=t.style,c=t.children,s=t.zIndex,l=t.stretch,f=t.destroyPopupOnHide,d=t.forceRender,m=t.align,h=t.point,b=t.getRootDomNode,g=t.getClassNameFromAlign,y=t.onAlign,w=t.onMouseEnter,A=t.onMouseLeave,E=t.onMouseDown,S=t.onTouchStart,N=t.onClick,M=(0,p.useRef)(),P=(0,p.useRef)(),j=(0,p.useState)(),k=(0,x.A)(j,2),_=k[0],R=k[1],D=function(t){var e=p.useState({width:0,height:0}),n=(0,x.A)(e,2),r=n[0],o=n[1];return[p.useMemo((function(){var e={};if(t){var n=r.width,o=r.height;-1!==t.indexOf("height")&&o?e.height=o:-1!==t.indexOf("minHeight")&&o&&(e.minHeight=o),-1!==t.indexOf("width")&&n?e.width=n:-1!==t.indexOf("minWidth")&&n&&(e.minWidth=n)}return e}),[t,r]),function(t){var e=t.offsetWidth,n=t.offsetHeight,r=t.getBoundingClientRect(),i=r.width,a=r.height;Math.abs(e-i)<1&&Math.abs(n-a)<1&&(e=i,n=a),o({width:e,height:n})}]}(l),L=(0,x.A)(D,2),I=L[0],H=L[1];var F=function(t,e){var n=(0,Kt.A)(null),r=(0,x.A)(n,2),o=r[0],i=r[1],a=(0,p.useRef)();function u(t){i(t,!0)}function c(){v.A.cancel(a.current)}return(0,p.useEffect)((function(){u("measure")}),[t]),(0,p.useEffect)((function(){"measure"===o&&e(),o&&(a.current=(0,v.A)((0,Xt.A)(qt().mark((function t(){var e,n;return qt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Gt.indexOf(o),(n=Gt[e+1])&&-1!==e&&u(n);case 3:case"end":return t.stop()}}),t)})))))}),[o]),(0,p.useEffect)((function(){return function(){c()}}),[]),[o,function(t){c(),a.current=(0,v.A)((function(){u((function(t){switch(o){case"align":return"motion";case"motion":return"stable"}return t})),null==t||t()}))}]}(n,(function(){l&&H(b())})),V=(0,x.A)(F,2),B=V[0],z=V[1],U=(0,p.useState)(0),W=(0,x.A)(U,2),Y=W[0],q=W[1],X=(0,p.useRef)();function K(){var t;null===(t=M.current)||void 0===t||t.forceAlign()}function G(t,e){var n=g(e);_!==n&&R(n),q((function(t){return t+1})),"align"===B&&(null==y||y(t,e))}(0,Ht.A)((function(){"alignPre"===B&&q(0)}),[B]),(0,Ht.A)((function(){"align"===B&&(Y<3?K():z((function(){var t;null===(t=X.current)||void 0===t||t.call(X)})))}),[Y]);var $=(0,r.A)({},C(t));function Z(){return new Promise((function(t){X.current=t}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(t){var e=$[t];$[t]=function(t,n){return z(),null==e?void 0:e(t,n)}})),p.useEffect((function(){$.motionName||"motion"!==B||z()}),[$.motionName,B]),p.useImperativeHandle(e,(function(){return{forceAlign:K,getElement:function(){return P.current}}}));var Q=(0,r.A)((0,r.A)({},I),{},{zIndex:s,opacity:"motion"!==B&&"stable"!==B&&n?0:void 0,pointerEvents:n||"stable"===B?void 0:"none"},u),J=!0;null==m||!m.points||"align"!==B&&"stable"!==B||(J=!1);var tt=c;return p.Children.count(c)>1&&(tt=p.createElement("div",{className:"".concat(i,"-content")},c)),p.createElement(T.A,(0,o.A)({visible:n,ref:P,leavedClassName:"".concat(i,"-hidden")},$,{onAppearPrepare:Z,onEnterPrepare:Z,removeOnLeave:f,forceRender:d}),(function(t,e){var n=t.className,o=t.style,u=O()(i,a,_,n);return p.createElement(Yt,{target:h||b,key:"popup",ref:M,monitorWindowResize:!0,disabled:J,align:m,onAlign:G},p.createElement("div",{ref:e,className:u,onMouseEnter:w,onMouseLeave:A,onMouseDownCapture:E,onTouchStartCapture:S,onClick:N,style:(0,r.A)((0,r.A)({},o),Q)},tt))}))}));$t.displayName="PopupInner";const Zt=$t;var Qt=p.forwardRef((function(t,e){var n=t.prefixCls,i=t.visible,a=t.zIndex,u=t.children,c=t.mobile,s=(c=void 0===c?{}:c).popupClassName,l=c.popupStyle,f=c.popupMotion,d=void 0===f?{}:f,m=c.popupRender,v=t.onClick,h=p.useRef();p.useImperativeHandle(e,(function(){return{forceAlign:function(){},getElement:function(){return h.current}}}));var b=(0,r.A)({zIndex:a},l),g=u;return p.Children.count(u)>1&&(g=p.createElement("div",{className:"".concat(n,"-content")},u)),m&&(g=m(g)),p.createElement(T.A,(0,o.A)({visible:i,ref:h,removeOnLeave:!0},d),(function(t,e){var o=t.className,i=t.style,a=O()(n,s,o);return p.createElement("div",{ref:e,className:a,onClick:v,style:(0,r.A)((0,r.A)({},i),b)},g)}))}));Qt.displayName="MobilePopupInner";const Jt=Qt;var te=["visible","mobile"],ee=p.forwardRef((function(t,e){var n=t.visible,i=t.mobile,a=(0,S.A)(t,te),u=(0,p.useState)(n),c=(0,x.A)(u,2),s=c[0],l=c[1],f=(0,p.useState)(!1),d=(0,x.A)(f,2),m=d[0],v=d[1],h=(0,r.A)((0,r.A)({},a),{},{visible:s});(0,p.useEffect)((function(){l(n),n&&i&&v((0,N.A)())}),[n,i]);var b=m?p.createElement(Jt,(0,o.A)({},h,{mobile:i,ref:e})):p.createElement(Zt,(0,o.A)({},h,{ref:e}));return p.createElement("div",null,p.createElement(M,h),b)}));ee.displayName="Popup";const ne=ee;const re=p.createContext(null);function oe(){}function ie(){return""}function ae(t){return t?t.ownerDocument:window.document}var ue=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const ce=(se=w.A,le=function(t){(0,c.A)(n,t);var e=(0,s.A)(n);function n(t){var r,a;return(0,i.A)(this,n),r=e.call(this,t),(0,l.A)((0,u.A)(r),"popupRef",p.createRef()),(0,l.A)((0,u.A)(r),"triggerRef",p.createRef()),(0,l.A)((0,u.A)(r),"portalContainer",void 0),(0,l.A)((0,u.A)(r),"attachId",void 0),(0,l.A)((0,u.A)(r),"clickOutsideHandler",void 0),(0,l.A)((0,u.A)(r),"touchOutsideHandler",void 0),(0,l.A)((0,u.A)(r),"contextMenuOutsideHandler1",void 0),(0,l.A)((0,u.A)(r),"contextMenuOutsideHandler2",void 0),(0,l.A)((0,u.A)(r),"mouseDownTimeout",void 0),(0,l.A)((0,u.A)(r),"focusTime",void 0),(0,l.A)((0,u.A)(r),"preClickTime",void 0),(0,l.A)((0,u.A)(r),"preTouchTime",void 0),(0,l.A)((0,u.A)(r),"delayTimer",void 0),(0,l.A)((0,u.A)(r),"hasPopupMouseDown",void 0),(0,l.A)((0,u.A)(r),"onMouseEnter",(function(t){var e=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",t),r.delaySetPopupVisible(!0,e,e?null:t)})),(0,l.A)((0,u.A)(r),"onMouseMove",(function(t){r.fireEvents("onMouseMove",t),r.setPoint(t)})),(0,l.A)((0,u.A)(r),"onMouseLeave",(function(t){r.fireEvents("onMouseLeave",t),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,l.A)((0,u.A)(r),"onPopupMouseEnter",(function(){r.clearDelayTimer()})),(0,l.A)((0,u.A)(r),"onPopupMouseLeave",(function(t){var e;t.relatedTarget&&!t.relatedTarget.setTimeout&&(0,h.A)(null===(e=r.popupRef.current)||void 0===e?void 0:e.getElement(),t.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,l.A)((0,u.A)(r),"onFocus",(function(t){r.fireEvents("onFocus",t),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))})),(0,l.A)((0,u.A)(r),"onMouseDown",(function(t){r.fireEvents("onMouseDown",t),r.preClickTime=Date.now()})),(0,l.A)((0,u.A)(r),"onTouchStart",(function(t){r.fireEvents("onTouchStart",t),r.preTouchTime=Date.now()})),(0,l.A)((0,u.A)(r),"onBlur",(function(t){r.fireEvents("onBlur",t),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)})),(0,l.A)((0,u.A)(r),"onContextMenu",(function(t){t.preventDefault(),r.fireEvents("onContextMenu",t),r.setPopupVisible(!0,t)})),(0,l.A)((0,u.A)(r),"onContextMenuClose",(function(){r.isContextMenuToShow()&&r.close()})),(0,l.A)((0,u.A)(r),"onClick",(function(t){if(r.fireEvents("onClick",t),r.focusTime){var e;if(r.preClickTime&&r.preTouchTime?e=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?e=r.preClickTime:r.preTouchTime&&(e=r.preTouchTime),Math.abs(e-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&t&&t.preventDefault&&t.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,t)})),(0,l.A)((0,u.A)(r),"onPopupMouseDown",(function(){var t;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(t=r.context).onPopupMouseDown.apply(t,arguments)})),(0,l.A)((0,u.A)(r),"onDocumentClick",(function(t){if(!r.props.mask||r.props.maskClosable){var e=t.target,n=r.getRootDomNode(),o=r.getPopupDomNode();(0,h.A)(n,e)&&!r.isContextMenuOnly()||(0,h.A)(o,e)||r.hasPopupMouseDown||r.close()}})),(0,l.A)((0,u.A)(r),"getRootDomNode",(function(){var t=r.props.getTriggerDOMNode;if(t)return t(r.triggerRef.current);try{var e=(0,b.A)(r.triggerRef.current);if(e)return e}catch(t){}return m().findDOMNode((0,u.A)(r))})),(0,l.A)((0,u.A)(r),"getPopupClassNameFromAlign",(function(t){var e=[],n=r.props,o=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,u=n.alignPoint,c=n.getPopupClassNameFromAlign;return o&&i&&e.push(function(t,e,n,r){for(var o=n.points,i=Object.keys(t),a=0;a<i.length;a+=1){var u=i[a];if(E(t[u].points,o,r))return"".concat(e,"-placement-").concat(u)}return""}(i,a,t,u)),c&&e.push(c(t)),e.join(" ")})),(0,l.A)((0,u.A)(r),"getComponent",(function(){var t=r.props,e=t.prefixCls,n=t.destroyPopupOnHide,i=t.popupClassName,a=t.onPopupAlign,u=t.popupMotion,c=t.popupAnimation,s=t.popupTransitionName,l=t.popupStyle,f=t.mask,d=t.maskAnimation,m=t.maskTransitionName,v=t.maskMotion,h=t.zIndex,b=t.popup,g=t.stretch,y=t.alignPoint,w=t.mobile,A=t.forceRender,O=t.onPopupClick,E=r.state,x=E.popupVisible,S=E.point,N=r.getPopupAlign(),T={};return r.isMouseEnterToShow()&&(T.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(T.onMouseLeave=r.onPopupMouseLeave),T.onMouseDown=r.onPopupMouseDown,T.onTouchStart=r.onPopupMouseDown,p.createElement(ne,(0,o.A)({prefixCls:e,destroyPopupOnHide:n,visible:x,point:y&&S,className:i,align:N,onAlign:a,animation:c,getClassNameFromAlign:r.getPopupClassNameFromAlign},T,{stretch:g,getRootDomNode:r.getRootDomNode,style:l,mask:f,zIndex:h,transitionName:s,maskAnimation:d,maskTransitionName:m,maskMotion:v,ref:r.popupRef,motion:u,mobile:w,forceRender:A,onClick:O}),"function"==typeof b?b():b)})),(0,l.A)((0,u.A)(r),"attachParent",(function(t){v.A.cancel(r.attachId);var e,n=r.props,o=n.getPopupContainer,i=n.getDocument,a=r.getRootDomNode();o?(a||0===o.length)&&(e=o(a)):e=i(r.getRootDomNode()).body,e?e.appendChild(t):r.attachId=(0,v.A)((function(){r.attachParent(t)}))})),(0,l.A)((0,u.A)(r),"getContainer",(function(){if(!r.portalContainer){var t=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",r.portalContainer=t}return r.attachParent(r.portalContainer),r.portalContainer})),(0,l.A)((0,u.A)(r),"setPoint",(function(t){r.props.alignPoint&&t&&r.setState({point:{pageX:t.pageX,pageY:t.pageY}})})),(0,l.A)((0,u.A)(r),"handlePortalUpdate",(function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)})),(0,l.A)((0,u.A)(r),"triggerContextValue",{onPopupMouseDown:r.onPopupMouseDown}),a="popupVisible"in t?!!t.popupVisible:!!t.defaultPopupVisible,r.state={prevPopupVisible:a,popupVisible:a},ue.forEach((function(t){r["fire".concat(t)]=function(e){r.fireEvents(t,e)}})),r}return(0,a.A)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t,e=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(t=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,y.A)(t,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(t=t||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,y.A)(t,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(t=t||e.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,y.A)(t,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,y.A)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),v.A.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return(null===(t=this.popupRef.current)||void 0===t?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,e=t.popupPlacement,n=t.popupAlign,o=t.builtinPlacements;return e&&o?function(t,e,n){var o=t[e]||{};return(0,r.A)((0,r.A)({},o),n)}(o,e,n):n}},{key:"setPopupVisible",value:function(t,e){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:r}),this.props.onPopupVisibleChange(t)),n&&e&&t&&this.setPoint(e)}},{key:"delaySetPopupVisible",value:function(t,e,n){var r=this,o=1e3*e;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(t,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(t,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(t){var e=this.props.children.props,n=this.props;return e[t]&&n[t]?this["fire".concat(t)]:e[t]||n[t]}},{key:"isClickToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return"contextMenu"===t||1===t.length&&"contextMenu"===t[0]}},{key:"isContextMenuToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var t=this.props,e=t.action,n=t.hideAction;return-1!==e.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,e=t.action,n=t.hideAction;return-1!==e.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var t=this.props,e=t.action,n=t.hideAction;return-1!==e.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var t;this.state.popupVisible&&(null===(t=this.popupRef.current)||void 0===t||t.forceAlign())}},{key:"fireEvents",value:function(t,e){var n=this.props.children.props[t];n&&n(e);var r=this.props[t];r&&r(e)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,e=this.props,n=e.children,o=e.forceRender,i=e.alignPoint,a=e.className,u=e.autoDestroy,c=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()(c&&c.props&&c.props.className,a);l&&(s.className=l);var f=(0,r.A)({},s);(0,g.f3)(c)&&(f.ref=(0,g.K4)(this.triggerRef,c.ref));var d,m=p.cloneElement(c,f);return(t||this.popupRef.current||o)&&(d=p.createElement(se,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&u&&(d=null),p.createElement(re.Provider,{value:this.triggerContextValue},m,d)}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.popupVisible,r={};return void 0!==n&&e.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=e.popupVisible),r}}]),n}(p.Component),(0,l.A)(le,"contextType",re),(0,l.A)(le,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:ie,getDocument:ae,onPopupVisibleChange:oe,afterPopupVisibleChange:oe,onPopupAlign:oe,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),le);var se,le},69916:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(69514),o=n.n(r);function i(t,e,n,r){var i=o().unstable_batchedUpdates?function(t){o().unstable_batchedUpdates(n,t)}:n;return null!=t&&t.addEventListener&&t.addEventListener(e,i,r),{remove:function(){null!=t&&t.removeEventListener&&t.removeEventListener(e,i,r)}}}},20998:(t,e,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(e,{A:()=>r})},54808:(t,e,n)=>{"use strict";function r(t,e){if(!t)return!1;if(t.contains)return t.contains(e);for(var n=e;n;){if(n===t)return!0;n=n.parentNode}return!1}n.d(e,{A:()=>r})},66588:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(39155),o=n.n(r),i=n(69514),a=n.n(i);function u(t){return function(t){return t instanceof HTMLElement||t instanceof SVGElement}(t)?t:t instanceof o().Component?a().findDOMNode(t):null}},42467:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox(),n=e.width,r=e.height;if(n||r)return!0}if(t.getBoundingClientRect){var o=t.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},16928:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var e=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||e>=r.F1&&e<=r.F12)return!1;switch(e){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=r.ZERO&&t<=r.NINE)return!0;if(t>=r.NUM_ZERO&&t<=r.NUM_MULTIPLY)return!0;if(t>=r.A&&t<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===t)return!0;switch(t){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const o=r},88822:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(39155),o=n(69514),i=n.n(o),a=n(20998);const u=(0,r.forwardRef)((function(t,e){var n=t.didUpdate,o=t.getContainer,u=t.children,c=(0,r.useRef)(),s=(0,r.useRef)();(0,r.useImperativeHandle)(e,(function(){return{}}));var l=(0,r.useRef)(!1);return!l.current&&(0,a.A)()&&(s.current=o(),c.current=s.current.parentNode,l.current=!0),(0,r.useEffect)((function(){null==n||n(t)})),(0,r.useEffect)((function(){return null===s.current.parentNode&&null!==c.current&&c.current.appendChild(s.current),function(){var t;null===(t=s.current)||void 0===t||null===(t=t.parentNode)||void 0===t||t.removeChild(s.current)}}),[]),s.current?i().createPortal(u,s.current):null}))},30981:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(39155),o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect,i=function(t,e){var n=r.useRef(!0);o((function(){return t(n.current)}),e),o((function(){return n.current=!1,function(){n.current=!0}}),[])};const a=i},28104:(t,e,n)=>{"use strict";n(39155)},1233:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(3453),o=n(39155);function i(t){var e=o.useRef(!1),n=o.useState(t),i=(0,r.A)(n,2),a=i[0],u=i[1];return o.useEffect((function(){return e.current=!1,function(){e.current=!0}}),[]),[a,function(t,n){n&&e.current||u(t)}]}},43210:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(82284),o=n(68210);const i=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function t(e,a){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=i.has(e);if((0,o.Ay)(!c,"Warning: There may be circular references"),c)return!1;if(e===a)return!0;if(n&&u>1)return!1;i.add(e);var s=u+1;if(Array.isArray(e)){if(!Array.isArray(a)||e.length!==a.length)return!1;for(var l=0;l<e.length;l++)if(!t(e[l],a[l],s))return!1;return!0}if(e&&a&&"object"===(0,r.A)(e)&&"object"===(0,r.A)(a)){var p=Object.keys(e);return p.length===Object.keys(a).length&&p.every((function(n){return t(e[n],a[n],s)}))}return!1}(t,e)}},68430:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var t=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(t)||/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==t?void 0:t.substr(0,4))}},25371:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=function(t){return+setTimeout(t,16)},o=function(t){return clearTimeout(t)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(t){return window.requestAnimationFrame(t)},o=function(t){return window.cancelAnimationFrame(t)});var i=0,a=new Map;function u(t){a.delete(t)}var c=function(t){var e=i+=1;return function n(o){if(0===o)u(e),t();else{var i=r((function(){n(o-1)}));a.set(e,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),e};c.cancel=function(t){var e=a.get(t);return u(t),o(e)};const s=c},8719:(t,e,n)=>{"use strict";n.d(e,{K4:()=>a,Xf:()=>i,f3:()=>u});var r=n(82284),o=(n(39155),n(44363));n(28104);function i(t,e){"function"==typeof t?t(e):"object"===(0,r.A)(t)&&t&&"current"in t&&(t.current=e)}function a(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.filter((function(t){return t}));return r.length<=1?r[0]:function(t){e.forEach((function(e){i(e,t)}))}}function u(t){var e,n,r=(0,o.isMemo)(t)?t.type.type:t.type;return!!("function"!=typeof r||null!==(e=r.prototype)&&void 0!==e&&e.render||r.$$typeof===o.ForwardRef)&&!!("function"!=typeof t||null!==(n=t.prototype)&&void 0!==n&&n.render||t.$$typeof===o.ForwardRef)}},68210:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>s});var r={},o=[];function i(t,e){}function a(t,e){}function u(t,e,n){e||r[n]||(t(!1,n),r[n]=!0)}function c(t,e){u(i,t,e)}c.preMessage=function(t){o.push(t)},c.resetWarned=function(){r={}},c.noteOnce=function(t,e){u(a,t,e)};const s=c},22799:(t,e)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=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"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");
|
|
20
|
+
*/var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,o){for(var i,a,u=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),c=1;c<arguments.length;c++){for(var s in i=Object(arguments[c]))n.call(i,s)&&(u[s]=i[s]);if(e){a=e(i);for(var l=0;l<a.length;l++)r.call(i,a[l])&&(u[a[l]]=i[a[l]])}}return u}},44785:(t,e,n)=>{"use strict";n.d(e,{A:()=>b});var r=n(64467),o=n(89379),i=n(3453),a=n(82284),u=n(39155),c=n(66588),s=n(8719),l=n(46942),p=n.n(l),f=n(80371),d=n(25931),m=n(25318),v=n(72137),h=n(58515);const b=function(t){var e=t;function n(t){return!(!t.motionName||!e)}"object"===(0,a.A)(t)&&(e=t.transitionSupport);var l=u.forwardRef((function(t,e){var a=t.visible,l=void 0===a||a,b=t.removeOnLeave,g=void 0===b||b,y=t.forceRender,w=t.children,A=t.motionName,O=t.leavedClassName,E=t.eventProps,x=n(t),S=(0,u.useRef)(),N=(0,u.useRef)();var T=(0,m.A)(x,l,(function(){try{return(0,c.A)(S.current||N.current)}catch(t){return null}}),t),C=(0,i.A)(T,4),M=C[0],P=C[1],j=C[2],k=C[3],_=u.useRef(k);k&&(_.current=!0);var R=(0,u.useRef)(e);R.current=e;var D,L=u.useCallback((function(t){S.current=t,(0,s.Xf)(R.current,t)}),[]),I=(0,o.A)((0,o.A)({},E),{},{visible:l});if(w)if(M!==d.SF&&n(t)){var H,F;P===d.px?F="prepare":(0,h.$m)(P)?F="active":P===d.Mv&&(F="start"),D=w((0,o.A)((0,o.A)({},I),{},{className:p()((0,f.by)(A,M),(H={},(0,r.A)(H,(0,f.by)(A,"".concat(M,"-").concat(F)),F),(0,r.A)(H,A,"string"==typeof A),H)),style:j}),L)}else D=k?w((0,o.A)({},I),L):!g&&_.current?w((0,o.A)((0,o.A)({},I),{},{className:O}),L):y?w((0,o.A)((0,o.A)({},I),{},{style:{display:"none"}}),L):null;else D=null;return u.createElement(v.A,{ref:N},D)}));return l.displayName="CSSMotion",l}(f.J1)},97333:(t,e,n)=>{"use strict";var r=n(58168),o=n(80045),i=n(89379),a=n(23029),u=n(92901),c=n(85501),s=n(29426),l=n(39155),p=n(44785),f=n(80371),d=n(29710),m=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.A,n=function(t){(0,c.A)(p,t);var n=(0,s.A)(p);function p(){var t;return(0,a.A)(this,p),(t=n.apply(this,arguments)).state={keyEntities:[]},t.removeKey=function(e){t.setState((function(t){return{keyEntities:t.keyEntities.map((function(t){return t.key!==e?t:(0,i.A)((0,i.A)({},t),{},{status:d.e8})}))}}))},t}return(0,u.A)(p,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,i=this.props,a=i.component,u=i.children,c=i.onVisibleChanged,s=(0,o.A)(i,["component","children","onVisibleChanged"]),p=a||l.Fragment,f={};return m.forEach((function(t){f[t]=s[t],delete s[t]})),delete s.keys,l.createElement(p,s,n.map((function(n){var i=n.status,a=(0,o.A)(n,["status"]),s=i===d.bK||i===d.xI;return l.createElement(e,(0,r.A)({},f,{key:a.key,visible:s,eventProps:a,onVisibleChanged:function(e){null==c||c(e,{key:a.key}),e||t.removeKey(a.key)}}),u)})))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.keys,r=e.keyEntities,o=(0,d.Ss)(n);return{keyEntities:(0,d.y$)(r,o).filter((function(t){var e=r.find((function(e){var n=e.key;return t.key===n}));return!e||e.status!==d.e8||t.status!==d.au}))}}}]),p}(l.Component);n.defaultProps={component:"div"}}(f.J1)},72137:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(23029),o=n(92901),i=n(85501),a=n(29426),u=n(39155);const c=function(t){(0,i.A)(n,t);var e=(0,a.A)(n);function n(){return(0,r.A)(this,n),e.apply(this,arguments)}return(0,o.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component)},85849:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(39155),o=n(80371);const i=function(t){var e=(0,r.useRef)(),n=(0,r.useRef)(t);n.current=t;var i=r.useCallback((function(t){n.current(t)}),[]);function a(t){t&&(t.removeEventListener(o.m8,i),t.removeEventListener(o.Vc,i))}return r.useEffect((function(){return function(){a(e.current)}}),[]),[function(t){e.current&&e.current!==t&&a(e.current),t&&t!==e.current&&(t.addEventListener(o.m8,i),t.addEventListener(o.Vc,i),e.current=t)},a]}},43982:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(39155);const o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect},84560:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(39155),o=n(25371);const i=function(){var t=r.useRef(null);function e(){o.A.cancel(t.current)}return r.useEffect((function(){return function(){e()}}),[]),[function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;e();var a=(0,o.A)((function(){i<=1?r({isCanceled:function(){return a!==t.current}}):n(r,i-1)}));t.current=a},e]}},92659:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(3453),o=n(39155);function i(t){var e=(0,o.useRef)(!1),n=(0,o.useState)(t),i=(0,r.A)(n,2),a=i[0],u=i[1];return(0,o.useEffect)((function(){return function(){e.current=!0}}),[]),[a,function(t){e.current||u(t)}]}},25318:(t,e,n)=>{"use strict";n.d(e,{A:()=>f});var r=n(89379),o=n(64467),i=n(3453),a=n(39155),u=n(25931),c=n(92659),s=n(43982),l=n(58515),p=n(85849);function f(t,e,n,f){var d=f.motionEnter,m=void 0===d||d,v=f.motionAppear,h=void 0===v||v,b=f.motionLeave,g=void 0===b||b,y=f.motionDeadline,w=f.motionLeaveImmediately,A=f.onAppearPrepare,O=f.onEnterPrepare,E=f.onLeavePrepare,x=f.onAppearStart,S=f.onEnterStart,N=f.onLeaveStart,T=f.onAppearActive,C=f.onEnterActive,M=f.onLeaveActive,P=f.onAppearEnd,j=f.onEnterEnd,k=f.onLeaveEnd,_=f.onVisibleChanged,R=(0,c.A)(),D=(0,i.A)(R,2),L=D[0],I=D[1],H=(0,c.A)(u.SF),F=(0,i.A)(H,2),V=F[0],B=F[1],z=(0,c.A)(null),U=(0,i.A)(z,2),W=U[0],Y=U[1],q=(0,a.useRef)(!1),X=(0,a.useRef)(null),K=(0,a.useRef)(!1),G=(0,a.useRef)(null);function $(){return n()||G.current}var Z=(0,a.useRef)(!1);function Q(t){var e,n=$();t&&!t.deadline&&t.target!==n||(V===u.Tv&&Z.current?e=null==P?void 0:P(n,t):V===u.Wd&&Z.current?e=null==j?void 0:j(n,t):V===u.dp&&Z.current&&(e=null==k?void 0:k(n,t)),!1===e||K.current||(B(u.SF),Y(null)))}var J=(0,p.A)(Q),tt=(0,i.A)(J,1)[0],et=a.useMemo((function(){var t,e,n;switch(V){case"appear":return t={},(0,o.A)(t,u.px,A),(0,o.A)(t,u.Mv,x),(0,o.A)(t,u.m7,T),t;case"enter":return e={},(0,o.A)(e,u.px,O),(0,o.A)(e,u.Mv,S),(0,o.A)(e,u.m7,C),e;case"leave":return n={},(0,o.A)(n,u.px,E),(0,o.A)(n,u.Mv,N),(0,o.A)(n,u.m7,M),n;default:return{}}}),[V]),nt=(0,l.Ay)(V,(function(t){if(t===u.px){var e=et[u.px];return e?e($()):l.es}var n;it in et&&Y((null===(n=et[it])||void 0===n?void 0:n.call(et,$(),null))||null);return it===u.m7&&(tt($()),y>0&&(clearTimeout(X.current),X.current=setTimeout((function(){Q({deadline:!0})}),y))),l.qB})),rt=(0,i.A)(nt,2),ot=rt[0],it=rt[1],at=(0,l.$m)(it);Z.current=at,(0,s.A)((function(){I(e);var n,r=q.current;(q.current=!0,t)&&(!r&&e&&h&&(n=u.Tv),r&&e&&m&&(n=u.Wd),(r&&!e&&g||!r&&w&&!e&&g)&&(n=u.dp),n&&(B(n),ot()))}),[e]),(0,a.useEffect)((function(){(V===u.Tv&&!h||V===u.Wd&&!m||V===u.dp&&!g)&&B(u.SF)}),[h,m,g]),(0,a.useEffect)((function(){return function(){clearTimeout(X.current),K.current=!0}}),[]),(0,a.useEffect)((function(){void 0!==L&&V===u.SF&&(null==_||_(L))}),[L,V]);var ut=W;return et[u.px]&&it===u.Mv&&(ut=(0,r.A)({transition:"none"},ut)),[V,it,ut,null!=L?L:e]}},58515:(t,e,n)=>{"use strict";n.d(e,{$m:()=>p,Ay:()=>f,es:()=>s,qB:()=>l});var r=n(3453),o=n(39155),i=n(25931),a=n(43982),u=n(84560),c=[i.px,i.Mv,i.m7,i.Hs],s=!1,l=!0;function p(t){return t===i.m7||t===i.Hs}const f=function(t,e){var n=o.useState(i.cE),l=(0,r.A)(n,2),p=l[0],f=l[1],d=(0,u.A)(),m=(0,r.A)(d,2),v=m[0],h=m[1];return(0,a.A)((function(){if(p!==i.cE&&p!==i.Hs){var t=c.indexOf(p),n=c[t+1],r=e(p);r===s?f(n):v((function(t){function e(){t.isCanceled()||f(n)}!0===r?e():Promise.resolve(r).then(e)}))}}),[t,p]),o.useEffect((function(){return function(){h()}}),[]),[function(){f(i.px)},p]}},30156:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(44785);n(97333);const o=r.A},25931:(t,e,n)=>{"use strict";n.d(e,{Hs:()=>p,Mv:()=>s,SF:()=>r,Tv:()=>o,Wd:()=>i,cE:()=>u,dp:()=>a,m7:()=>l,px:()=>c});var r="none",o="appear",i="enter",a="leave",u="none",c="prepare",s="start",l="active",p="end"},29710:(t,e,n)=>{"use strict";n.d(e,{Ss:()=>l,au:()=>u,bK:()=>i,e8:()=>c,xI:()=>a,y$:()=>p});var r=n(89379),o=n(82284),i="add",a="keep",u="remove",c="removed";function s(t){var e;return e=t&&"object"===(0,o.A)(t)&&"key"in t?t:{key:t},(0,r.A)((0,r.A)({},e),{},{key:String(e.key)})}function l(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(s)}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,c=e.length,s=l(t),p=l(e);s.forEach((function(t){for(var e=!1,s=o;s<c;s+=1){var l=p[s];if(l.key===t.key){o<s&&(n=n.concat(p.slice(o,s).map((function(t){return(0,r.A)((0,r.A)({},t),{},{status:i})}))),o=s),n.push((0,r.A)((0,r.A)({},l),{},{status:a})),o+=1,e=!0;break}}e||n.push((0,r.A)((0,r.A)({},t),{},{status:u}))})),o<c&&(n=n.concat(p.slice(o).map((function(t){return(0,r.A)((0,r.A)({},t),{},{status:i})}))));var f={};return n.forEach((function(t){var e=t.key;f[e]=(f[e]||0)+1})),Object.keys(f).filter((function(t){return f[t]>1})).forEach((function(t){(n=n.filter((function(e){var n=e.key,r=e.status;return n!==t||r!==u}))).forEach((function(e){e.key===t&&(e.status=a)}))})),n}},80371:(t,e,n)=>{"use strict";n.d(e,{J1:()=>h,Vc:()=>b,by:()=>y,m8:()=>g});var r=n(82284),o=n(20998);function i(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit".concat(t)]="webkit".concat(e),n["Moz".concat(t)]="moz".concat(e),n["ms".concat(t)]="MS".concat(e),n["O".concat(t)]="o".concat(e.toLowerCase()),n}var a,u,c,s=(a=(0,o.A)(),u="undefined"!=typeof window?window:{},c={animationend:i("Animation","AnimationEnd"),transitionend:i("Transition","TransitionEnd")},a&&("AnimationEvent"in u||delete c.animationend.animation,"TransitionEvent"in u||delete c.transitionend.transition),c),l={};if((0,o.A)()){var p=document.createElement("div");l=p.style}var f={};function d(t){if(f[t])return f[t];var e=s[t];if(e)for(var n=Object.keys(e),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(e,i)&&i in l)return f[t]=e[i],f[t]}return""}var m=d("animationend"),v=d("transitionend"),h=!(!m||!v),b=m||"animationend",g=v||"transitionend";function y(t,e){return t?"object"===(0,r.A)(t)?t[e.replace(/-\w/g,(function(t){return t[1].toUpperCase()}))]:"".concat(t,"-").concat(e):null}},34307:(t,e,n)=>{"use strict";n.d(e,{A:()=>m});var r=n(58168),o=n(82284),i=n(89379),a=n(80045),u=n(39155),c=n(37397),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(t){var e=t.overlay,n=t.prefixCls,r=t.id,o=t.overlayInnerStyle;return u.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof e?e():e)};var d=function(t,e){var n=t.overlayClassName,s=t.trigger,l=void 0===s?["hover"]:s,d=t.mouseEnterDelay,m=void 0===d?0:d,v=t.mouseLeaveDelay,h=void 0===v?.1:v,b=t.overlayStyle,g=t.prefixCls,y=void 0===g?"rc-tooltip":g,w=t.children,A=t.onVisibleChange,O=t.afterVisibleChange,E=t.transitionName,x=t.animation,S=t.motion,N=t.placement,T=void 0===N?"right":N,C=t.align,M=void 0===C?{}:C,P=t.destroyTooltipOnHide,j=void 0!==P&&P,k=t.defaultVisible,_=t.getTooltipContainer,R=t.overlayInnerStyle,D=(0,a.A)(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),L=(0,u.useRef)(null);(0,u.useImperativeHandle)(e,(function(){return L.current}));var I=(0,i.A)({},D);"visible"in t&&(I.popupVisible=t.visible);var H=!1,F=!1;if("boolean"==typeof j)H=j;else if(j&&"object"===(0,o.A)(j)){var V=j.keepParent;H=!0===V,F=!1===V}return u.createElement(c.A,(0,r.A)({popupClassName:n,prefixCls:y,popup:function(){var e=t.arrowContent,n=void 0===e?null:e,r=t.overlay,o=t.id;return[u.createElement("div",{className:"".concat(y,"-arrow"),key:"arrow"},n),u.createElement(f,{key:"content",prefixCls:y,id:o,overlay:r,overlayInnerStyle:R})]},action:l,builtinPlacements:p,popupPlacement:T,ref:L,popupAlign:M,getPopupContainer:_,onPopupVisibleChange:A,afterPopupVisibleChange:O,popupTransitionName:E,popupAnimation:x,popupMotion:S,defaultPopupVisible:k,destroyPopupOnHide:H,autoDestroy:F,mouseLeaveDelay:h,popupStyle:b,mouseEnterDelay:m},I),w)};const m=(0,u.forwardRef)(d)},94934:(t,e)=>{"use strict";e.DD=void 0;var n={adjustX:1,adjustY:1},r=[0,0],o={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:r},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:r},top:{points:["bc","tc"],overflow:n,offset:[0,-4],targetOffset:r},bottom:{points:["tc","bc"],overflow:n,offset:[0,4],targetOffset:r},topLeft:{points:["bl","tl"],overflow:n,offset:[0,-4],targetOffset:r},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:r},topRight:{points:["br","tr"],overflow:n,offset:[0,-4],targetOffset:r},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:r},bottomRight:{points:["tr","br"],overflow:n,offset:[0,4],targetOffset:r},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,4],targetOffset:r},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:r}};e.DD=o},37397:(t,e,n)=>{"use strict";n.d(e,{A:()=>ce});var r=n(89379),o=n(58168),i=n(23029),a=n(92901),u=n(9417),c=n(85501),s=n(29426),l=n(64467),p=n(39155),f=n.n(p),d=n(69514),m=n.n(d),v=n(25371),h=n(54808),b=n(66588),g=n(8719),y=n(69916),w=n(88822),A=n(46942),O=n.n(A);function E(t,e,n){return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}var x=n(3453),S=n(80045),N=n(68430),T=n(30156);function C(t){var e=t.prefixCls,n=t.motion,r=t.animation,o=t.transitionName;return n||(r?{motionName:"".concat(e,"-").concat(r)}:o?{motionName:o}:null)}function M(t){var e=t.prefixCls,n=t.visible,i=t.zIndex,a=t.mask,u=t.maskMotion,c=t.maskAnimation,s=t.maskTransitionName;if(!a)return null;var l={};return(u||s||c)&&(l=(0,r.A)({motionAppear:!0},C({motion:u,prefixCls:e,transitionName:s,animation:c}))),p.createElement(T.A,(0,o.A)({},l,{visible:n,removeOnLeave:!0}),(function(t){var n=t.className;return p.createElement("div",{style:{zIndex:i},className:O()("".concat(e,"-mask"),n)})}))}var P,j=n(82284);function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?k(Object(n),!0).forEach((function(e){D(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function R(t){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R(t)}function D(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var L={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function I(){if(void 0!==P)return P;P="";var t=document.createElement("p").style;for(var e in L)e+"Transform"in t&&(P=e);return P}function H(){return I()?"".concat(I(),"TransitionProperty"):"transitionProperty"}function F(){return I()?"".concat(I(),"Transform"):"transform"}function V(t,e){var n=H();n&&(t.style[n]=e,"transitionProperty"!==n&&(t.style.transitionProperty=e))}function B(t,e){var n=F();n&&(t.style[n]=e,"transform"!==n&&(t.style.transform=e))}var z,U=/matrix\((.*)\)/,W=/matrix3d\((.*)\)/;function Y(t){var e=t.style.display;t.style.display="none",t.offsetHeight,t.style.display=e}function q(t,e,n){var r=n;if("object"!==R(e))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(t.style[e]=r)):z(t,e);for(var o in e)e.hasOwnProperty(o)&&q(t,o,e[o])}function X(t,e){var n=t["page".concat(e?"Y":"X","Offset")],r="scroll".concat(e?"Top":"Left");if("number"!=typeof n){var o=t.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function K(t){return X(t)}function G(t){return X(t,!0)}function $(t){var e=function(t){var e,n,r,o=t.ownerDocument,i=o.body,a=o&&o.documentElement;return e=t.getBoundingClientRect(),n=Math.floor(e.left),r=Math.floor(e.top),{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(t),n=t.ownerDocument,r=n.defaultView||n.parentWindow;return e.left+=K(r),e.top+=G(r),e}function Z(t){return null!=t&&t==t.window}function Q(t){return Z(t)?t.document:9===t.nodeType?t:t.ownerDocument}var J=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),tt=/^(top|right|bottom|left)$/,et="currentStyle",nt="runtimeStyle",rt="left";function ot(t,e){return"left"===t?e.useCssRight?"right":t:e.useCssBottom?"bottom":t}function it(t){return"left"===t?"right":"right"===t?"left":"top"===t?"bottom":"bottom"===t?"top":void 0}function at(t,e,n){"static"===q(t,"position")&&(t.style.position="relative");var r=-999,o=-999,i=ot("left",n),a=ot("top",n),u=it(i),c=it(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var s,l="",p=$(t);("left"in e||"top"in e)&&(l=(s=t).style.transitionProperty||s.style[H()]||"",V(t,"none")),"left"in e&&(t.style[u]="",t.style[i]="".concat(r,"px")),"top"in e&&(t.style[c]="",t.style[a]="".concat(o,"px")),Y(t);var f=$(t),d={};for(var m in e)if(e.hasOwnProperty(m)){var v=ot(m,n),h="left"===m?r:o,b=p[m]-f[m];d[v]=v===m?h+b:h-b}q(t,d),Y(t),("left"in e||"top"in e)&&V(t,l);var g={};for(var y in e)if(e.hasOwnProperty(y)){var w=ot(y,n),A=e[y]-p[y];g[w]=y===w?d[w]+A:d[w]-A}q(t,g)}function ut(t,e){var n=$(t),r=function(t){var e=window.getComputedStyle(t,null),n=e.getPropertyValue("transform")||e.getPropertyValue(F());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(t),o={x:r.x,y:r.y};"left"in e&&(o.x=r.x+e.left-n.left),"top"in e&&(o.y=r.y+e.top-n.top),function(t,e){var n=window.getComputedStyle(t,null),r=n.getPropertyValue("transform")||n.getPropertyValue(F());if(r&&"none"!==r){var o,i=r.match(U);i?((o=(i=i[1]).split(",").map((function(t){return parseFloat(t,10)})))[4]=e.x,o[5]=e.y,B(t,"matrix(".concat(o.join(","),")"))):((o=r.match(W)[1].split(",").map((function(t){return parseFloat(t,10)})))[12]=e.x,o[13]=e.y,B(t,"matrix3d(".concat(o.join(","),")")))}else B(t,"translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) translateZ(0)"))}(t,o)}function ct(t,e){for(var n=0;n<t.length;n++)e(t[n])}function st(t){return"border-box"===z(t,"boxSizing")}"undefined"!=typeof window&&(z=window.getComputedStyle?function(t,e,n){var r=n,o="",i=Q(t);return(r=r||i.defaultView.getComputedStyle(t,null))&&(o=r.getPropertyValue(e)||r[e]),o}:function(t,e){var n=t[et]&&t[et][e];if(J.test(n)&&!tt.test(e)){var r=t.style,o=r[rt],i=t[nt][rt];t[nt][rt]=t[et][rt],r[rt]="fontSize"===e?"1em":n||0,n=r.pixelLeft+"px",r[rt]=o,t[nt][rt]=i}return""===n?"auto":n});var lt=["margin","border","padding"],pt=-1,ft=2,dt=1;function mt(t,e,n){var r,o,i,a=0;for(o=0;o<e.length;o++)if(r=e[o])for(i=0;i<n.length;i++){var u=void 0;u="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(z(t,u))||0}return a}var vt={getParent:function(t){var e=t;do{e=11===e.nodeType&&e.host?e.host:e.parentNode}while(e&&1!==e.nodeType&&9!==e.nodeType);return e}};function ht(t,e,n){var r=n;if(Z(t))return"width"===e?vt.viewportWidth(t):vt.viewportHeight(t);if(9===t.nodeType)return"width"===e?vt.docWidth(t):vt.docHeight(t);var o="width"===e?["Left","Right"]:["Top","Bottom"],i="width"===e?Math.floor(t.getBoundingClientRect().width):Math.floor(t.getBoundingClientRect().height),a=st(t),u=0;(null==i||i<=0)&&(i=void 0,(null==(u=z(t,e))||Number(u)<0)&&(u=t.style[e]||0),u=Math.floor(parseFloat(u))||0),void 0===r&&(r=a?dt:pt);var c=void 0!==i||a,s=i||u;return r===pt?c?s-mt(t,["border","padding"],o):u:c?r===dt?s:s+(r===ft?-mt(t,["border"],o):mt(t,["margin"],o)):u+mt(t,lt.slice(r),o)}ct(["Width","Height"],(function(t){vt["doc".concat(t)]=function(e){var n=e.document;return Math.max(n.documentElement["scroll".concat(t)],n.body["scroll".concat(t)],vt["viewport".concat(t)](n))},vt["viewport".concat(t)]=function(e){var n="client".concat(t),r=e.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var bt={position:"absolute",visibility:"hidden",display:"block"};function gt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,o=e[0];return 0!==o.offsetWidth?r=ht.apply(void 0,e):function(t,e,n){var r,o={},i=t.style;for(r in e)e.hasOwnProperty(r)&&(o[r]=i[r],i[r]=e[r]);for(r in n.call(t),e)e.hasOwnProperty(r)&&(i[r]=o[r])}(o,bt,(function(){r=ht.apply(void 0,e)})),r}function yt(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}ct(["width","height"],(function(t){var e=t.charAt(0).toUpperCase()+t.slice(1);vt["outer".concat(e)]=function(e,n){return e&>(e,t,n?0:dt)};var n="width"===t?["Left","Right"]:["Top","Bottom"];vt[t]=function(e,r){var o=r;return void 0!==o?e?(st(e)&&(o+=mt(e,["padding","border"],n)),q(e,t,o)):void 0:e&>(e,t,pt)}}));var wt={getWindow:function(t){if(t&&t.document&&t.setTimeout)return t;var e=t.ownerDocument||t;return e.defaultView||e.parentWindow},getDocument:Q,offset:function(t,e,n){if(void 0===e)return $(t);!function(t,e,n){if(n.ignoreShake){var r=$(t),o=r.left.toFixed(0),i=r.top.toFixed(0),a=e.left.toFixed(0),u=e.top.toFixed(0);if(o===a&&i===u)return}n.useCssRight||n.useCssBottom?at(t,e,n):n.useCssTransform&&F()in document.body.style?ut(t,e):at(t,e,n)}(t,e,n||{})},isWindow:Z,each:ct,css:q,clone:function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);if(t.overflow)for(e in t)t.hasOwnProperty(e)&&(n.overflow[e]=t.overflow[e]);return n},mix:yt,getWindowScrollLeft:function(t){return K(t)},getWindowScrollTop:function(t){return G(t)},merge:function(){for(var t={},e=0;e<arguments.length;e++)wt.mix(t,e<0||arguments.length<=e?void 0:arguments[e]);return t},viewportWidth:0,viewportHeight:0};yt(wt,vt);var At=wt.getParent;function Ot(t){if(wt.isWindow(t)||9===t.nodeType)return null;var e,n=wt.getDocument(t).body,r=wt.css(t,"position");if(!("fixed"===r||"absolute"===r))return"html"===t.nodeName.toLowerCase()?null:At(t);for(e=At(t);e&&e!==n&&9!==e.nodeType;e=At(e))if("static"!==(r=wt.css(e,"position")))return e;return null}var Et=wt.getParent;function xt(t,e){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=Ot(t),o=wt.getDocument(t),i=o.defaultView||o.parentWindow,a=o.body,u=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===u||"visible"===wt.css(r,"overflow")){if(r===a||r===u)break}else{var c=wt.offset(r);c.left+=r.clientLeft,c.top+=r.clientTop,n.top=Math.max(n.top,c.top),n.right=Math.min(n.right,c.left+r.clientWidth),n.bottom=Math.min(n.bottom,c.top+r.clientHeight),n.left=Math.max(n.left,c.left)}r=Ot(r)}var s=null;wt.isWindow(t)||9===t.nodeType||(s=t.style.position,"absolute"===wt.css(t,"position")&&(t.style.position="fixed"));var l=wt.getWindowScrollLeft(i),p=wt.getWindowScrollTop(i),f=wt.viewportWidth(i),d=wt.viewportHeight(i),m=u.scrollWidth,v=u.scrollHeight,h=window.getComputedStyle(a);if("hidden"===h.overflowX&&(m=i.innerWidth),"hidden"===h.overflowY&&(v=i.innerHeight),t.style&&(t.style.position=s),e||function(t){if(wt.isWindow(t)||9===t.nodeType)return!1;var e=wt.getDocument(t),n=e.body,r=null;for(r=Et(t);r&&r!==n&&r!==e;r=Et(r))if("fixed"===wt.css(r,"position"))return!0;return!1}(t))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 b=Math.max(m,l+f);n.right=Math.min(n.right,b);var g=Math.max(v,p+d);n.bottom=Math.min(n.bottom,g)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function St(t){var e,n,r;if(wt.isWindow(t)||9===t.nodeType){var o=wt.getWindow(t);e={left:wt.getWindowScrollLeft(o),top:wt.getWindowScrollTop(o)},n=wt.viewportWidth(o),r=wt.viewportHeight(o)}else e=wt.offset(t),n=wt.outerWidth(t),r=wt.outerHeight(t);return e.width=n,e.height=r,e}function Nt(t,e){var n=e.charAt(0),r=e.charAt(1),o=t.width,i=t.height,a=t.left,u=t.top;return"c"===n?u+=i/2:"b"===n&&(u+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:u}}function Tt(t,e,n,r,o){var i=Nt(e,n[1]),a=Nt(t,n[0]),u=[a.left-i.left,a.top-i.top];return{left:Math.round(t.left-u[0]+r[0]-o[0]),top:Math.round(t.top-u[1]+r[1]-o[1])}}function Ct(t,e,n){return t.left<n.left||t.left+e.width>n.right}function Mt(t,e,n){return t.top<n.top||t.top+e.height>n.bottom}function Pt(t,e,n){var r=[];return wt.each(t,(function(t){r.push(t.replace(e,(function(t){return n[t]})))})),r}function jt(t,e){return t[e]=-t[e],t}function kt(t,e){return(/%$/.test(t)?parseInt(t.substring(0,t.length-1),10)/100*e:parseInt(t,10))||0}function _t(t,e){t[0]=kt(t[0],e.width),t[1]=kt(t[1],e.height)}function Rt(t,e,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,c=n.source||t;i=[].concat(i),a=[].concat(a);var s={},l=0,p=xt(c,!(!(u=u||{})||!u.alwaysByViewport)),f=St(c);_t(i,f),_t(a,e);var d=Tt(f,e,o,i,a),m=wt.merge(f,d);if(p&&(u.adjustX||u.adjustY)&&r){if(u.adjustX&&Ct(d,f,p)){var v=Pt(o,/[lr]/gi,{l:"r",r:"l"}),h=jt(i,0),b=jt(a,0);(function(t,e,n){return t.left>n.right||t.left+e.width<n.left})(Tt(f,e,v,h,b),f,p)||(l=1,o=v,i=h,a=b)}if(u.adjustY&&Mt(d,f,p)){var g=Pt(o,/[tb]/gi,{t:"b",b:"t"}),y=jt(i,1),w=jt(a,1);(function(t,e,n){return t.top>n.bottom||t.top+e.height<n.top})(Tt(f,e,g,y,w),f,p)||(l=1,o=g,i=y,a=w)}l&&(d=Tt(f,e,o,i,a),wt.mix(m,d));var A=Ct(d,f,p),O=Mt(d,f,p);if(A||O){var E=o;A&&(E=Pt(o,/[lr]/gi,{l:"r",r:"l"})),O&&(E=Pt(o,/[tb]/gi,{t:"b",b:"t"})),o=E,i=n.offset||[0,0],a=n.targetOffset||[0,0]}s.adjustX=u.adjustX&&A,s.adjustY=u.adjustY&&O,(s.adjustX||s.adjustY)&&(m=function(t,e,n,r){var o=wt.clone(t),i={width:e.width,height:e.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),wt.mix(o,i)}(d,f,p,s))}return m.width!==f.width&&wt.css(c,"width",wt.width(c)+m.width-f.width),m.height!==f.height&&wt.css(c,"height",wt.height(c)+m.height-f.height),wt.offset(c,{left:m.left,top:m.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:s}}function Dt(t,e,n){var r=n.target||e,o=St(r),i=!function(t,e){var n=xt(t,e),r=St(t);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return Rt(t,o,n,i)}Dt.__getOffsetParent=Ot,Dt.__getVisibleRectForElement=xt;var Lt=n(43210),It=n(42467),Ht=n(30981);var Ft=n(43591);function Vt(t,e){var n=null,r=null;var o=new Ft.default((function(t){var o=(0,x.A)(t,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,u=i.height,c=Math.floor(a),s=Math.floor(u);n===c&&r===s||Promise.resolve().then((function(){e({width:c,height:s})})),n=c,r=s}}));return t&&o.observe(t),function(){o.disconnect()}}function Bt(t){return"function"!=typeof t?null:t()}function zt(t){return"object"===(0,j.A)(t)&&t?t:null}var Ut=function(t,e){var n=t.children,r=t.disabled,o=t.target,i=t.align,a=t.onAlign,u=t.monitorWindowResize,c=t.monitorBufferTime,s=void 0===c?0:c,l=f().useRef({}),p=f().useRef(),d=f().Children.only(n),m=f().useRef({});m.current.disabled=r,m.current.target=o,m.current.align=i,m.current.onAlign=a;var v=function(t,e){var n=f().useRef(!1),r=f().useRef(null);function o(){window.clearTimeout(r.current)}return[function i(a){if(o(),n.current&&!0!==a)r.current=window.setTimeout((function(){n.current=!1,i()}),e);else{if(!1===t(a))return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),e)}},function(){n.current=!1,o()}]}((function(){var t=m.current,e=t.disabled,n=t.target,r=t.align,o=t.onAlign,i=p.current;if(!e&&n&&i){var a,u=Bt(n),c=zt(n);l.current.element=u,l.current.point=c,l.current.align=r;var s=document.activeElement;return u&&(0,It.A)(u)?a=Dt(i,u,r):c&&(a=function(t,e,n){var r,o,i=wt.getDocument(t),a=i.defaultView||i.parentWindow,u=wt.getWindowScrollLeft(a),c=wt.getWindowScrollTop(a),s=wt.viewportWidth(a),l=wt.viewportHeight(a),p={left:r="pageX"in e?e.pageX:u+e.clientX,top:o="pageY"in e?e.pageY:c+e.clientY,width:0,height:0},f=r>=0&&r<=u+s&&o>=0&&o<=c+l,d=[n.points[0],"cc"];return Rt(t,p,_(_({},n),{},{points:d}),f)}(i,c,r)),function(t,e){t!==document.activeElement&&(0,h.A)(e,t)&&"function"==typeof t.focus&&t.focus()}(s,i),o&&a&&o(i,a),!0}return!1}),s),b=(0,x.A)(v,2),w=b[0],A=b[1],O=f().useState(),E=(0,x.A)(O,2),S=E[0],N=E[1],T=f().useState(),C=(0,x.A)(T,2),M=C[0],P=C[1];return(0,Ht.A)((function(){N(Bt(o)),P(zt(o))})),f().useEffect((function(){var t,e;l.current.element===S&&((t=l.current.point)===(e=M)||t&&e&&("pageX"in e&&"pageY"in e?t.pageX===e.pageX&&t.pageY===e.pageY:"clientX"in e&&"clientY"in e&&t.clientX===e.clientX&&t.clientY===e.clientY))&&(0,Lt.A)(l.current.align,i)||w()})),f().useEffect((function(){return Vt(p.current,w)}),[p.current]),f().useEffect((function(){return Vt(S,w)}),[S]),f().useEffect((function(){r?A():w()}),[r]),f().useEffect((function(){if(u)return(0,y.A)(window,"resize",w).remove}),[u]),f().useEffect((function(){return function(){A()}}),[]),f().useImperativeHandle(e,(function(){return{forceAlign:function(){return w(!0)}}})),f().isValidElement(d)&&(d=f().cloneElement(d,{ref:(0,g.K4)(d.ref,p)})),d},Wt=f().forwardRef(Ut);Wt.displayName="Align";const Yt=Wt;function qt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
21
|
+
qt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),u=new P(r||[]);return o(a,"_invoke",{value:N(t,n,u)}),a}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",m="executing",v="completed",h={};function b(){}function g(){}function y(){}var w={};s(w,a,(function(){return this}));var A=Object.getPrototypeOf,O=A&&A(A(k([])));O&&O!==n&&r.call(O,a)&&(w=O);var E=y.prototype=b.prototype=Object.create(w);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,u){var c=p(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==(0,j.A)(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function N(e,n,r){var o=f;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var c=T(u,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=p(e,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=p(o,e.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[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function k(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError((0,j.A)(e)+" is not iterable")}return g.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:g,configurable:!0}),g.displayName=s(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},x(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(E),s(E,c,"Generator"),s(E,a,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=k,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){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(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}var Xt=n(10467),Kt=n(1233),Gt=["measure","alignPre","align",null,"motion"];var $t=p.forwardRef((function(t,e){var n=t.visible,i=t.prefixCls,a=t.className,u=t.style,c=t.children,s=t.zIndex,l=t.stretch,f=t.destroyPopupOnHide,d=t.forceRender,m=t.align,h=t.point,b=t.getRootDomNode,g=t.getClassNameFromAlign,y=t.onAlign,w=t.onMouseEnter,A=t.onMouseLeave,E=t.onMouseDown,S=t.onTouchStart,N=t.onClick,M=(0,p.useRef)(),P=(0,p.useRef)(),j=(0,p.useState)(),k=(0,x.A)(j,2),_=k[0],R=k[1],D=function(t){var e=p.useState({width:0,height:0}),n=(0,x.A)(e,2),r=n[0],o=n[1];return[p.useMemo((function(){var e={};if(t){var n=r.width,o=r.height;-1!==t.indexOf("height")&&o?e.height=o:-1!==t.indexOf("minHeight")&&o&&(e.minHeight=o),-1!==t.indexOf("width")&&n?e.width=n:-1!==t.indexOf("minWidth")&&n&&(e.minWidth=n)}return e}),[t,r]),function(t){var e=t.offsetWidth,n=t.offsetHeight,r=t.getBoundingClientRect(),i=r.width,a=r.height;Math.abs(e-i)<1&&Math.abs(n-a)<1&&(e=i,n=a),o({width:e,height:n})}]}(l),L=(0,x.A)(D,2),I=L[0],H=L[1];var F=function(t,e){var n=(0,Kt.A)(null),r=(0,x.A)(n,2),o=r[0],i=r[1],a=(0,p.useRef)();function u(t){i(t,!0)}function c(){v.A.cancel(a.current)}return(0,p.useEffect)((function(){u("measure")}),[t]),(0,p.useEffect)((function(){"measure"===o&&e(),o&&(a.current=(0,v.A)((0,Xt.A)(qt().mark((function t(){var e,n;return qt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Gt.indexOf(o),(n=Gt[e+1])&&-1!==e&&u(n);case 3:case"end":return t.stop()}}),t)})))))}),[o]),(0,p.useEffect)((function(){return function(){c()}}),[]),[o,function(t){c(),a.current=(0,v.A)((function(){u((function(t){switch(o){case"align":return"motion";case"motion":return"stable"}return t})),null==t||t()}))}]}(n,(function(){l&&H(b())})),V=(0,x.A)(F,2),B=V[0],z=V[1],U=(0,p.useState)(0),W=(0,x.A)(U,2),Y=W[0],q=W[1],X=(0,p.useRef)();function K(){var t;null===(t=M.current)||void 0===t||t.forceAlign()}function G(t,e){var n=g(e);_!==n&&R(n),q((function(t){return t+1})),"align"===B&&(null==y||y(t,e))}(0,Ht.A)((function(){"alignPre"===B&&q(0)}),[B]),(0,Ht.A)((function(){"align"===B&&(Y<3?K():z((function(){var t;null===(t=X.current)||void 0===t||t.call(X)})))}),[Y]);var $=(0,r.A)({},C(t));function Z(){return new Promise((function(t){X.current=t}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(t){var e=$[t];$[t]=function(t,n){return z(),null==e?void 0:e(t,n)}})),p.useEffect((function(){$.motionName||"motion"!==B||z()}),[$.motionName,B]),p.useImperativeHandle(e,(function(){return{forceAlign:K,getElement:function(){return P.current}}}));var Q=(0,r.A)((0,r.A)({},I),{},{zIndex:s,opacity:"motion"!==B&&"stable"!==B&&n?0:void 0,pointerEvents:n||"stable"===B?void 0:"none"},u),J=!0;null==m||!m.points||"align"!==B&&"stable"!==B||(J=!1);var tt=c;return p.Children.count(c)>1&&(tt=p.createElement("div",{className:"".concat(i,"-content")},c)),p.createElement(T.A,(0,o.A)({visible:n,ref:P,leavedClassName:"".concat(i,"-hidden")},$,{onAppearPrepare:Z,onEnterPrepare:Z,removeOnLeave:f,forceRender:d}),(function(t,e){var n=t.className,o=t.style,u=O()(i,a,_,n);return p.createElement(Yt,{target:h||b,key:"popup",ref:M,monitorWindowResize:!0,disabled:J,align:m,onAlign:G},p.createElement("div",{ref:e,className:u,onMouseEnter:w,onMouseLeave:A,onMouseDownCapture:E,onTouchStartCapture:S,onClick:N,style:(0,r.A)((0,r.A)({},o),Q)},tt))}))}));$t.displayName="PopupInner";const Zt=$t;var Qt=p.forwardRef((function(t,e){var n=t.prefixCls,i=t.visible,a=t.zIndex,u=t.children,c=t.mobile,s=(c=void 0===c?{}:c).popupClassName,l=c.popupStyle,f=c.popupMotion,d=void 0===f?{}:f,m=c.popupRender,v=t.onClick,h=p.useRef();p.useImperativeHandle(e,(function(){return{forceAlign:function(){},getElement:function(){return h.current}}}));var b=(0,r.A)({zIndex:a},l),g=u;return p.Children.count(u)>1&&(g=p.createElement("div",{className:"".concat(n,"-content")},u)),m&&(g=m(g)),p.createElement(T.A,(0,o.A)({visible:i,ref:h,removeOnLeave:!0},d),(function(t,e){var o=t.className,i=t.style,a=O()(n,s,o);return p.createElement("div",{ref:e,className:a,onClick:v,style:(0,r.A)((0,r.A)({},i),b)},g)}))}));Qt.displayName="MobilePopupInner";const Jt=Qt;var te=["visible","mobile"],ee=p.forwardRef((function(t,e){var n=t.visible,i=t.mobile,a=(0,S.A)(t,te),u=(0,p.useState)(n),c=(0,x.A)(u,2),s=c[0],l=c[1],f=(0,p.useState)(!1),d=(0,x.A)(f,2),m=d[0],v=d[1],h=(0,r.A)((0,r.A)({},a),{},{visible:s});(0,p.useEffect)((function(){l(n),n&&i&&v((0,N.A)())}),[n,i]);var b=m?p.createElement(Jt,(0,o.A)({},h,{mobile:i,ref:e})):p.createElement(Zt,(0,o.A)({},h,{ref:e}));return p.createElement("div",null,p.createElement(M,h),b)}));ee.displayName="Popup";const ne=ee;const re=p.createContext(null);function oe(){}function ie(){return""}function ae(t){return t?t.ownerDocument:window.document}var ue=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const ce=(se=w.A,le=function(t){(0,c.A)(n,t);var e=(0,s.A)(n);function n(t){var r,a;return(0,i.A)(this,n),r=e.call(this,t),(0,l.A)((0,u.A)(r),"popupRef",p.createRef()),(0,l.A)((0,u.A)(r),"triggerRef",p.createRef()),(0,l.A)((0,u.A)(r),"portalContainer",void 0),(0,l.A)((0,u.A)(r),"attachId",void 0),(0,l.A)((0,u.A)(r),"clickOutsideHandler",void 0),(0,l.A)((0,u.A)(r),"touchOutsideHandler",void 0),(0,l.A)((0,u.A)(r),"contextMenuOutsideHandler1",void 0),(0,l.A)((0,u.A)(r),"contextMenuOutsideHandler2",void 0),(0,l.A)((0,u.A)(r),"mouseDownTimeout",void 0),(0,l.A)((0,u.A)(r),"focusTime",void 0),(0,l.A)((0,u.A)(r),"preClickTime",void 0),(0,l.A)((0,u.A)(r),"preTouchTime",void 0),(0,l.A)((0,u.A)(r),"delayTimer",void 0),(0,l.A)((0,u.A)(r),"hasPopupMouseDown",void 0),(0,l.A)((0,u.A)(r),"onMouseEnter",(function(t){var e=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",t),r.delaySetPopupVisible(!0,e,e?null:t)})),(0,l.A)((0,u.A)(r),"onMouseMove",(function(t){r.fireEvents("onMouseMove",t),r.setPoint(t)})),(0,l.A)((0,u.A)(r),"onMouseLeave",(function(t){r.fireEvents("onMouseLeave",t),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,l.A)((0,u.A)(r),"onPopupMouseEnter",(function(){r.clearDelayTimer()})),(0,l.A)((0,u.A)(r),"onPopupMouseLeave",(function(t){var e;t.relatedTarget&&!t.relatedTarget.setTimeout&&(0,h.A)(null===(e=r.popupRef.current)||void 0===e?void 0:e.getElement(),t.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,l.A)((0,u.A)(r),"onFocus",(function(t){r.fireEvents("onFocus",t),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))})),(0,l.A)((0,u.A)(r),"onMouseDown",(function(t){r.fireEvents("onMouseDown",t),r.preClickTime=Date.now()})),(0,l.A)((0,u.A)(r),"onTouchStart",(function(t){r.fireEvents("onTouchStart",t),r.preTouchTime=Date.now()})),(0,l.A)((0,u.A)(r),"onBlur",(function(t){r.fireEvents("onBlur",t),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)})),(0,l.A)((0,u.A)(r),"onContextMenu",(function(t){t.preventDefault(),r.fireEvents("onContextMenu",t),r.setPopupVisible(!0,t)})),(0,l.A)((0,u.A)(r),"onContextMenuClose",(function(){r.isContextMenuToShow()&&r.close()})),(0,l.A)((0,u.A)(r),"onClick",(function(t){if(r.fireEvents("onClick",t),r.focusTime){var e;if(r.preClickTime&&r.preTouchTime?e=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?e=r.preClickTime:r.preTouchTime&&(e=r.preTouchTime),Math.abs(e-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&t&&t.preventDefault&&t.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,t)})),(0,l.A)((0,u.A)(r),"onPopupMouseDown",(function(){var t;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(t=r.context).onPopupMouseDown.apply(t,arguments)})),(0,l.A)((0,u.A)(r),"onDocumentClick",(function(t){if(!r.props.mask||r.props.maskClosable){var e=t.target,n=r.getRootDomNode(),o=r.getPopupDomNode();(0,h.A)(n,e)&&!r.isContextMenuOnly()||(0,h.A)(o,e)||r.hasPopupMouseDown||r.close()}})),(0,l.A)((0,u.A)(r),"getRootDomNode",(function(){var t=r.props.getTriggerDOMNode;if(t)return t(r.triggerRef.current);try{var e=(0,b.A)(r.triggerRef.current);if(e)return e}catch(t){}return m().findDOMNode((0,u.A)(r))})),(0,l.A)((0,u.A)(r),"getPopupClassNameFromAlign",(function(t){var e=[],n=r.props,o=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,u=n.alignPoint,c=n.getPopupClassNameFromAlign;return o&&i&&e.push(function(t,e,n,r){for(var o=n.points,i=Object.keys(t),a=0;a<i.length;a+=1){var u=i[a];if(E(t[u].points,o,r))return"".concat(e,"-placement-").concat(u)}return""}(i,a,t,u)),c&&e.push(c(t)),e.join(" ")})),(0,l.A)((0,u.A)(r),"getComponent",(function(){var t=r.props,e=t.prefixCls,n=t.destroyPopupOnHide,i=t.popupClassName,a=t.onPopupAlign,u=t.popupMotion,c=t.popupAnimation,s=t.popupTransitionName,l=t.popupStyle,f=t.mask,d=t.maskAnimation,m=t.maskTransitionName,v=t.maskMotion,h=t.zIndex,b=t.popup,g=t.stretch,y=t.alignPoint,w=t.mobile,A=t.forceRender,O=t.onPopupClick,E=r.state,x=E.popupVisible,S=E.point,N=r.getPopupAlign(),T={};return r.isMouseEnterToShow()&&(T.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(T.onMouseLeave=r.onPopupMouseLeave),T.onMouseDown=r.onPopupMouseDown,T.onTouchStart=r.onPopupMouseDown,p.createElement(ne,(0,o.A)({prefixCls:e,destroyPopupOnHide:n,visible:x,point:y&&S,className:i,align:N,onAlign:a,animation:c,getClassNameFromAlign:r.getPopupClassNameFromAlign},T,{stretch:g,getRootDomNode:r.getRootDomNode,style:l,mask:f,zIndex:h,transitionName:s,maskAnimation:d,maskTransitionName:m,maskMotion:v,ref:r.popupRef,motion:u,mobile:w,forceRender:A,onClick:O}),"function"==typeof b?b():b)})),(0,l.A)((0,u.A)(r),"attachParent",(function(t){v.A.cancel(r.attachId);var e,n=r.props,o=n.getPopupContainer,i=n.getDocument,a=r.getRootDomNode();o?(a||0===o.length)&&(e=o(a)):e=i(r.getRootDomNode()).body,e?e.appendChild(t):r.attachId=(0,v.A)((function(){r.attachParent(t)}))})),(0,l.A)((0,u.A)(r),"getContainer",(function(){if(!r.portalContainer){var t=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",r.portalContainer=t}return r.attachParent(r.portalContainer),r.portalContainer})),(0,l.A)((0,u.A)(r),"setPoint",(function(t){r.props.alignPoint&&t&&r.setState({point:{pageX:t.pageX,pageY:t.pageY}})})),(0,l.A)((0,u.A)(r),"handlePortalUpdate",(function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)})),(0,l.A)((0,u.A)(r),"triggerContextValue",{onPopupMouseDown:r.onPopupMouseDown}),a="popupVisible"in t?!!t.popupVisible:!!t.defaultPopupVisible,r.state={prevPopupVisible:a,popupVisible:a},ue.forEach((function(t){r["fire".concat(t)]=function(e){r.fireEvents(t,e)}})),r}return(0,a.A)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t,e=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(t=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,y.A)(t,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(t=t||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,y.A)(t,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(t=t||e.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,y.A)(t,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,y.A)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),v.A.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return(null===(t=this.popupRef.current)||void 0===t?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,e=t.popupPlacement,n=t.popupAlign,o=t.builtinPlacements;return e&&o?function(t,e,n){var o=t[e]||{};return(0,r.A)((0,r.A)({},o),n)}(o,e,n):n}},{key:"setPopupVisible",value:function(t,e){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:r}),this.props.onPopupVisibleChange(t)),n&&e&&t&&this.setPoint(e)}},{key:"delaySetPopupVisible",value:function(t,e,n){var r=this,o=1e3*e;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(t,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(t,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(t){var e=this.props.children.props,n=this.props;return e[t]&&n[t]?this["fire".concat(t)]:e[t]||n[t]}},{key:"isClickToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return"contextMenu"===t||1===t.length&&"contextMenu"===t[0]}},{key:"isContextMenuToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var t=this.props,e=t.action,n=t.hideAction;return-1!==e.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,e=t.action,n=t.hideAction;return-1!==e.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var t=this.props,e=t.action,n=t.hideAction;return-1!==e.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var t;this.state.popupVisible&&(null===(t=this.popupRef.current)||void 0===t||t.forceAlign())}},{key:"fireEvents",value:function(t,e){var n=this.props.children.props[t];n&&n(e);var r=this.props[t];r&&r(e)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,e=this.props,n=e.children,o=e.forceRender,i=e.alignPoint,a=e.className,u=e.autoDestroy,c=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()(c&&c.props&&c.props.className,a);l&&(s.className=l);var f=(0,r.A)({},s);(0,g.f3)(c)&&(f.ref=(0,g.K4)(this.triggerRef,c.ref));var d,m=p.cloneElement(c,f);return(t||this.popupRef.current||o)&&(d=p.createElement(se,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&u&&(d=null),p.createElement(re.Provider,{value:this.triggerContextValue},m,d)}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.popupVisible,r={};return void 0!==n&&e.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=e.popupVisible),r}}]),n}(p.Component),(0,l.A)(le,"contextType",re),(0,l.A)(le,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:ie,getDocument:ae,onPopupVisibleChange:oe,afterPopupVisibleChange:oe,onPopupAlign:oe,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),le);var se,le},69916:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(69514),o=n.n(r);function i(t,e,n,r){var i=o().unstable_batchedUpdates?function(t){o().unstable_batchedUpdates(n,t)}:n;return null!=t&&t.addEventListener&&t.addEventListener(e,i,r),{remove:function(){null!=t&&t.removeEventListener&&t.removeEventListener(e,i,r)}}}},20998:(t,e,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(e,{A:()=>r})},54808:(t,e,n)=>{"use strict";function r(t,e){if(!t)return!1;if(t.contains)return t.contains(e);for(var n=e;n;){if(n===t)return!0;n=n.parentNode}return!1}n.d(e,{A:()=>r})},66588:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(39155),o=n.n(r),i=n(69514),a=n.n(i);function u(t){return function(t){return t instanceof HTMLElement||t instanceof SVGElement}(t)?t:t instanceof o().Component?a().findDOMNode(t):null}},42467:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox(),n=e.width,r=e.height;if(n||r)return!0}if(t.getBoundingClientRect){var o=t.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},16928:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var e=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||e>=r.F1&&e<=r.F12)return!1;switch(e){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=r.ZERO&&t<=r.NINE)return!0;if(t>=r.NUM_ZERO&&t<=r.NUM_MULTIPLY)return!0;if(t>=r.A&&t<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===t)return!0;switch(t){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const o=r},88822:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(39155),o=n(69514),i=n.n(o),a=n(20998);const u=(0,r.forwardRef)((function(t,e){var n=t.didUpdate,o=t.getContainer,u=t.children,c=(0,r.useRef)(),s=(0,r.useRef)();(0,r.useImperativeHandle)(e,(function(){return{}}));var l=(0,r.useRef)(!1);return!l.current&&(0,a.A)()&&(s.current=o(),c.current=s.current.parentNode,l.current=!0),(0,r.useEffect)((function(){null==n||n(t)})),(0,r.useEffect)((function(){return null===s.current.parentNode&&null!==c.current&&c.current.appendChild(s.current),function(){var t;null===(t=s.current)||void 0===t||null===(t=t.parentNode)||void 0===t||t.removeChild(s.current)}}),[]),s.current?i().createPortal(u,s.current):null}))},30981:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(39155),o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect,i=function(t,e){var n=r.useRef(!0);o((function(){return t(n.current)}),e),o((function(){return n.current=!1,function(){n.current=!0}}),[])};const a=i},28104:(t,e,n)=>{"use strict";n(39155)},1233:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(3453),o=n(39155);function i(t){var e=o.useRef(!1),n=o.useState(t),i=(0,r.A)(n,2),a=i[0],u=i[1];return o.useEffect((function(){return e.current=!1,function(){e.current=!0}}),[]),[a,function(t,n){n&&e.current||u(t)}]}},43210:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(82284),o=n(68210);const i=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function t(e,a){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=i.has(e);if((0,o.Ay)(!c,"Warning: There may be circular references"),c)return!1;if(e===a)return!0;if(n&&u>1)return!1;i.add(e);var s=u+1;if(Array.isArray(e)){if(!Array.isArray(a)||e.length!==a.length)return!1;for(var l=0;l<e.length;l++)if(!t(e[l],a[l],s))return!1;return!0}if(e&&a&&"object"===(0,r.A)(e)&&"object"===(0,r.A)(a)){var p=Object.keys(e);return p.length===Object.keys(a).length&&p.every((function(n){return t(e[n],a[n],s)}))}return!1}(t,e)}},68430:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var t=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(t)||/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==t?void 0:t.substr(0,4))}},25371:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=function(t){return+setTimeout(t,16)},o=function(t){return clearTimeout(t)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(t){return window.requestAnimationFrame(t)},o=function(t){return window.cancelAnimationFrame(t)});var i=0,a=new Map;function u(t){a.delete(t)}var c=function(t){var e=i+=1;return function n(o){if(0===o)u(e),t();else{var i=r((function(){n(o-1)}));a.set(e,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),e};c.cancel=function(t){var e=a.get(t);return u(t),o(e)};const s=c},8719:(t,e,n)=>{"use strict";n.d(e,{K4:()=>a,Xf:()=>i,f3:()=>u});var r=n(82284),o=(n(39155),n(66351));n(28104);function i(t,e){"function"==typeof t?t(e):"object"===(0,r.A)(t)&&t&&"current"in t&&(t.current=e)}function a(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.filter((function(t){return t}));return r.length<=1?r[0]:function(t){e.forEach((function(e){i(e,t)}))}}function u(t){var e,n,r=(0,o.isMemo)(t)?t.type.type:t.type;return!!("function"!=typeof r||null!==(e=r.prototype)&&void 0!==e&&e.render||r.$$typeof===o.ForwardRef)&&!!("function"!=typeof t||null!==(n=t.prototype)&&void 0!==n&&n.render||t.$$typeof===o.ForwardRef)}},68210:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>s});var r={},o=[];function i(t,e){}function a(t,e){}function u(t,e,n){e||r[n]||(t(!1,n),r[n]=!0)}function c(t,e){u(i,t,e)}c.preMessage=function(t){o.push(t)},c.resetWarned=function(){r={}},c.noteOnce=function(t,e){u(a,t,e)};const s=c},57787:(t,e)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=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"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");
|
|
22
22
|
/**
|
|
23
23
|
* @license React
|
|
24
24
|
* react-is.production.min.js
|
|
@@ -27,7 +27,7 @@ qt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Objec
|
|
|
27
27
|
*
|
|
28
28
|
* This source code is licensed under the MIT license found in the
|
|
29
29
|
* LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/function b(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case i:case u:case a:case f:case d:return t;default:switch(t=t&&t.$$typeof){case l:case s:case p:case v:case m:case c:return t;default:return e}}case o:return e}}}n=Symbol.for("react.module.reference"),e.ForwardRef=p,e.isMemo=function(t){return b(t)===m}},
|
|
30
|
+
*/function b(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case i:case u:case a:case f:case d:return t;default:switch(t=t&&t.$$typeof){case l:case s:case p:case v:case m:case c:return t;default:return e}}case o:return e}}}n=Symbol.for("react.module.reference"),e.ForwardRef=p,e.isMemo=function(t){return b(t)===m}},66351:(t,e,n)=>{"use strict";t.exports=n(57787)},21020:(t,e,n)=>{"use strict";
|
|
31
31
|
/** @license React v17.0.2
|
|
32
32
|
* react-jsx-runtime.production.min.js
|
|
33
33
|
*
|