@para-ui/core 4.0.19-aplha5 → 4.0.19-aplha6
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 +2 -3
- 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 +326 -3
- package/SelectorPicker/index.js +1 -2
- 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 +409 -626
- package/_verture/{index-42bdcb41.js → index-c77ccb98.js} +1 -1
- package/_verture/{index-4e2bdd78.js → index-f59b0bc0.js} +1 -1
- package/_verture/{modalContext-00cfd490.js → modalContext-c8cc3107.js} +1 -1
- package/_verture/tslib.es6-55ed4bd2.js +38 -0
- package/index.js +5 -7
- package/package.json +1 -2
- 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 +5 -5
- 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/index-8ac46bd9.js +0 -327
- package/_verture/tslib.es6-fe0d4b4e.js +0 -43
- /package/_verture/{index-96ca38ae.js → index-543781c9.js} +0 -0
package/umd/TextEditor.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 t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,u=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var l in i=Object(arguments[s]))n.call(i,l)&&(u[l]=i[l]);if(t){a=t(i);for(var c=0;c<a.length;c++)r.call(i,a[c])&&(u[a[c]]=i[a[c]])}}return u}},44785:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(64467),o=n(89379),i=n(3453),a=n(82284),u=n(39155),s=n(66588),l=n(8719),c=n(46942),f=n.n(c),d=n(80371),p=n(25931),h=n(25318),v=n(72137),g=n(58515);const y=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,a.A)(e)&&(t=e.transitionSupport);var c=u.forwardRef((function(e,t){var a=e.visible,c=void 0===a||a,y=e.removeOnLeave,m=void 0===y||y,b=e.forceRender,w=e.children,x=e.motionName,E=e.leavedClassName,S=e.eventProps,C=n(e),A=(0,u.useRef)(),D=(0,u.useRef)();var O=(0,h.A)(C,c,(function(){try{return(0,s.A)(A.current||D.current)}catch(e){return null}}),e),k=(0,i.A)(O,4),T=k[0],B=k[1],_=k[2],P=k[3],F=u.useRef(P);P&&(F.current=!0);var j=(0,u.useRef)(t);j.current=t;var N,I=u.useCallback((function(e){A.current=e,(0,l.Xf)(j.current,e)}),[]),L=(0,o.A)((0,o.A)({},S),{},{visible:c});if(w)if(T!==p.SF&&n(e)){var R,M;B===p.px?M="prepare":(0,g.$m)(B)?M="active":B===p.Mv&&(M="start"),N=w((0,o.A)((0,o.A)({},L),{},{className:f()((0,d.by)(x,T),(R={},(0,r.A)(R,(0,d.by)(x,"".concat(T,"-").concat(M)),M),(0,r.A)(R,x,"string"==typeof x),R)),style:_}),I)}else N=P?w((0,o.A)({},L),I):!m&&F.current?w((0,o.A)((0,o.A)({},L),{},{className:E}),I):b?w((0,o.A)((0,o.A)({},L),{},{style:{display:"none"}}),I):null;else N=null;return u.createElement(v.A,{ref:D},N)}));return c.displayName="CSSMotion",c}(d.J1)},97333:(e,t,n)=>{"use strict";var r=n(58168),o=n(80045),i=n(89379),a=n(23029),u=n(92901),s=n(85501),l=n(29426),c=n(39155),f=n(44785),d=n(80371),p=n(29710),h=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.A,n=function(e){(0,s.A)(f,e);var n=(0,l.A)(f);function f(){var e;return(0,a.A)(this,f),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,i.A)((0,i.A)({},e),{},{status:p.e8})}))}}))},e}return(0,u.A)(f,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,i=this.props,a=i.component,u=i.children,s=i.onVisibleChanged,l=(0,o.A)(i,["component","children","onVisibleChanged"]),f=a||c.Fragment,d={};return h.forEach((function(e){d[e]=l[e],delete l[e]})),delete l.keys,c.createElement(f,l,n.map((function(n){var i=n.status,a=(0,o.A)(n,["status"]),l=i===p.bK||i===p.xI;return c.createElement(t,(0,r.A)({},d,{key:a.key,visible:l,eventProps:a,onVisibleChanged:function(t){null==s||s(t,{key:a.key}),t||e.removeKey(a.key)}}),u)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=(0,p.Ss)(n);return{keyEntities:(0,p.y$)(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==p.e8||e.status!==p.au}))}}}]),f}(c.Component);n.defaultProps={component:"div"}}(d.J1)},72137:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(23029),o=n(92901),i=n(85501),a=n(29426),u=n(39155);const s=function(e){(0,i.A)(n,e);var t=(0,a.A)(n);function n(){return(0,r.A)(this,n),t.apply(this,arguments)}return(0,o.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component)},85849:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(39155),o=n(80371);const i=function(e){var t=(0,r.useRef)(),n=(0,r.useRef)(e);n.current=e;var i=r.useCallback((function(e){n.current(e)}),[]);function a(e){e&&(e.removeEventListener(o.m8,i),e.removeEventListener(o.Vc,i))}return r.useEffect((function(){return function(){a(t.current)}}),[]),[function(e){t.current&&t.current!==e&&a(t.current),e&&e!==t.current&&(e.addEventListener(o.m8,i),e.addEventListener(o.Vc,i),t.current=e)},a]}},43982:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(39155);const o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect},84560:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(39155),o=n(25371);const i=function(){var e=r.useRef(null);function t(){o.A.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var a=(0,o.A)((function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)}));e.current=a},t]}},92659:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3453),o=n(39155);function i(e){var t=(0,o.useRef)(!1),n=(0,o.useState)(e),i=(0,r.A)(n,2),a=i[0],u=i[1];return(0,o.useEffect)((function(){return function(){t.current=!0}}),[]),[a,function(e){t.current||u(e)}]}},25318:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(89379),o=n(64467),i=n(3453),a=n(39155),u=n(25931),s=n(92659),l=n(43982),c=n(58515),f=n(85849);function d(e,t,n,d){var p=d.motionEnter,h=void 0===p||p,v=d.motionAppear,g=void 0===v||v,y=d.motionLeave,m=void 0===y||y,b=d.motionDeadline,w=d.motionLeaveImmediately,x=d.onAppearPrepare,E=d.onEnterPrepare,S=d.onLeavePrepare,C=d.onAppearStart,A=d.onEnterStart,D=d.onLeaveStart,O=d.onAppearActive,k=d.onEnterActive,T=d.onLeaveActive,B=d.onAppearEnd,_=d.onEnterEnd,P=d.onLeaveEnd,F=d.onVisibleChanged,j=(0,s.A)(),N=(0,i.A)(j,2),I=N[0],L=N[1],R=(0,s.A)(u.SF),M=(0,i.A)(R,2),z=M[0],H=M[1],$=(0,s.A)(null),V=(0,i.A)($,2),U=V[0],W=V[1],G=(0,a.useRef)(!1),q=(0,a.useRef)(null),K=(0,a.useRef)(!1),Y=(0,a.useRef)(null);function X(){return n()||Y.current}var Z=(0,a.useRef)(!1);function J(e){var t,n=X();e&&!e.deadline&&e.target!==n||(z===u.Tv&&Z.current?t=null==B?void 0:B(n,e):z===u.Wd&&Z.current?t=null==_?void 0:_(n,e):z===u.dp&&Z.current&&(t=null==P?void 0:P(n,e)),!1===t||K.current||(H(u.SF),W(null)))}var Q=(0,f.A)(J),ee=(0,i.A)(Q,1)[0],te=a.useMemo((function(){var e,t,n;switch(z){case"appear":return e={},(0,o.A)(e,u.px,x),(0,o.A)(e,u.Mv,C),(0,o.A)(e,u.m7,O),e;case"enter":return t={},(0,o.A)(t,u.px,E),(0,o.A)(t,u.Mv,A),(0,o.A)(t,u.m7,k),t;case"leave":return n={},(0,o.A)(n,u.px,S),(0,o.A)(n,u.Mv,D),(0,o.A)(n,u.m7,T),n;default:return{}}}),[z]),ne=(0,c.Ay)(z,(function(e){if(e===u.px){var t=te[u.px];return t?t(X()):c.es}var n;ie in te&&W((null===(n=te[ie])||void 0===n?void 0:n.call(te,X(),null))||null);return ie===u.m7&&(ee(X()),b>0&&(clearTimeout(q.current),q.current=setTimeout((function(){J({deadline:!0})}),b))),c.qB})),re=(0,i.A)(ne,2),oe=re[0],ie=re[1],ae=(0,c.$m)(ie);Z.current=ae,(0,l.A)((function(){L(t);var n,r=G.current;(G.current=!0,e)&&(!r&&t&&g&&(n=u.Tv),r&&t&&h&&(n=u.Wd),(r&&!t&&m||!r&&w&&!t&&m)&&(n=u.dp),n&&(H(n),oe()))}),[t]),(0,a.useEffect)((function(){(z===u.Tv&&!g||z===u.Wd&&!h||z===u.dp&&!m)&&H(u.SF)}),[g,h,m]),(0,a.useEffect)((function(){return function(){clearTimeout(q.current),K.current=!0}}),[]),(0,a.useEffect)((function(){void 0!==I&&z===u.SF&&(null==F||F(I))}),[I,z]);var ue=U;return te[u.px]&&ie===u.Mv&&(ue=(0,r.A)({transition:"none"},ue)),[z,ie,ue,null!=I?I:t]}},58515:(e,t,n)=>{"use strict";n.d(t,{$m:()=>f,Ay:()=>d,es:()=>l,qB:()=>c});var r=n(3453),o=n(39155),i=n(25931),a=n(43982),u=n(84560),s=[i.px,i.Mv,i.m7,i.Hs],l=!1,c=!0;function f(e){return e===i.m7||e===i.Hs}const d=function(e,t){var n=o.useState(i.cE),c=(0,r.A)(n,2),f=c[0],d=c[1],p=(0,u.A)(),h=(0,r.A)(p,2),v=h[0],g=h[1];return(0,a.A)((function(){if(f!==i.cE&&f!==i.Hs){var e=s.indexOf(f),n=s[e+1],r=t(f);r===l?d(n):v((function(e){function t(){e.isCanceled()||d(n)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,f]),o.useEffect((function(){return function(){g()}}),[]),[function(){d(i.px)},f]}},30156:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(44785);n(97333);const o=r.A},25931:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>f,Mv:()=>l,SF:()=>r,Tv:()=>o,Wd:()=>i,cE:()=>u,dp:()=>a,m7:()=>c,px:()=>s});var r="none",o="appear",i="enter",a="leave",u="none",s="prepare",l="start",c="active",f="end"},29710:(e,t,n)=>{"use strict";n.d(t,{Ss:()=>c,au:()=>u,bK:()=>i,e8:()=>s,xI:()=>a,y$:()=>f});var r=n(89379),o=n(82284),i="add",a="keep",u="remove",s="removed";function l(e){var t;return t=e&&"object"===(0,o.A)(e)&&"key"in e?e:{key:e},(0,r.A)((0,r.A)({},t),{},{key:String(t.key)})}function c(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(l)}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,s=t.length,l=c(e),f=c(t);l.forEach((function(e){for(var t=!1,l=o;l<s;l+=1){var c=f[l];if(c.key===e.key){o<l&&(n=n.concat(f.slice(o,l).map((function(e){return(0,r.A)((0,r.A)({},e),{},{status:i})}))),o=l),n.push((0,r.A)((0,r.A)({},c),{},{status:a})),o+=1,t=!0;break}}t||n.push((0,r.A)((0,r.A)({},e),{},{status:u}))})),o<s&&(n=n.concat(f.slice(o).map((function(e){return(0,r.A)((0,r.A)({},e),{},{status:i})}))));var d={};return n.forEach((function(e){var t=e.key;d[t]=(d[t]||0)+1})),Object.keys(d).filter((function(e){return d[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==u}))).forEach((function(t){t.key===e&&(t.status=a)}))})),n}},80371:(e,t,n)=>{"use strict";n.d(t,{J1:()=>g,Vc:()=>y,by:()=>b,m8:()=>m});var r=n(82284),o=n(20998);function i(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var a,u,s,l=(a=(0,o.A)(),u="undefined"!=typeof window?window:{},s={animationend:i("Animation","AnimationEnd"),transitionend:i("Transition","TransitionEnd")},a&&("AnimationEvent"in u||delete s.animationend.animation,"TransitionEvent"in u||delete s.transitionend.transition),s),c={};if((0,o.A)()){var f=document.createElement("div");c=f.style}var d={};function p(e){if(d[e])return d[e];var t=l[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in c)return d[e]=t[i],d[e]}return""}var h=p("animationend"),v=p("transitionend"),g=!(!h||!v),y=h||"animationend",m=v||"transitionend";function b(e,t){return e?"object"===(0,r.A)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}},34307:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(58168),o=n(82284),i=n(89379),a=n(80045),u=n(39155),s=n(37397),l={adjustX:1,adjustY:1},c=[0,0],f={left:{points:["cr","cl"],overflow:l,offset:[-4,0],targetOffset:c},right:{points:["cl","cr"],overflow:l,offset:[4,0],targetOffset:c},top:{points:["bc","tc"],overflow:l,offset:[0,-4],targetOffset:c},bottom:{points:["tc","bc"],overflow:l,offset:[0,4],targetOffset:c},topLeft:{points:["bl","tl"],overflow:l,offset:[0,-4],targetOffset:c},leftTop:{points:["tr","tl"],overflow:l,offset:[-4,0],targetOffset:c},topRight:{points:["br","tr"],overflow:l,offset:[0,-4],targetOffset:c},rightTop:{points:["tl","tr"],overflow:l,offset:[4,0],targetOffset:c},bottomRight:{points:["tr","br"],overflow:l,offset:[0,4],targetOffset:c},rightBottom:{points:["bl","br"],overflow:l,offset:[4,0],targetOffset:c},bottomLeft:{points:["tl","bl"],overflow:l,offset:[0,4],targetOffset:c},leftBottom:{points:["br","bl"],overflow:l,offset:[-4,0],targetOffset:c}};const d=function(e){var t=e.overlay,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle;return u.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t)};var p=function(e,t){var n=e.overlayClassName,l=e.trigger,c=void 0===l?["hover"]:l,p=e.mouseEnterDelay,h=void 0===p?0:p,v=e.mouseLeaveDelay,g=void 0===v?.1:v,y=e.overlayStyle,m=e.prefixCls,b=void 0===m?"rc-tooltip":m,w=e.children,x=e.onVisibleChange,E=e.afterVisibleChange,S=e.transitionName,C=e.animation,A=e.motion,D=e.placement,O=void 0===D?"right":D,k=e.align,T=void 0===k?{}:k,B=e.destroyTooltipOnHide,_=void 0!==B&&B,P=e.defaultVisible,F=e.getTooltipContainer,j=e.overlayInnerStyle,N=(0,a.A)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),I=(0,u.useRef)(null);(0,u.useImperativeHandle)(t,(function(){return I.current}));var L=(0,i.A)({},N);"visible"in e&&(L.popupVisible=e.visible);var R=!1,M=!1;if("boolean"==typeof _)R=_;else if(_&&"object"===(0,o.A)(_)){var z=_.keepParent;R=!0===z,M=!1===z}return u.createElement(s.A,(0,r.A)({popupClassName:n,prefixCls:b,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,r=e.overlay,o=e.id;return[u.createElement("div",{className:"".concat(b,"-arrow"),key:"arrow"},n),u.createElement(d,{key:"content",prefixCls:b,id:o,overlay:r,overlayInnerStyle:j})]},action:c,builtinPlacements:f,popupPlacement:O,ref:I,popupAlign:T,getPopupContainer:F,onPopupVisibleChange:x,afterPopupVisibleChange:E,popupTransitionName:S,popupAnimation:C,popupMotion:A,defaultPopupVisible:P,destroyPopupOnHide:R,autoDestroy:M,mouseLeaveDelay:g,popupStyle:y,mouseEnterDelay:h},L),w)};const h=(0,u.forwardRef)(p)},94934:(e,t)=>{"use strict";t.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}};t.DD=o},37397:(e,t,n)=>{"use strict";n.d(t,{A:()=>st});var r=n(89379),o=n(58168),i=n(23029),a=n(92901),u=n(9417),s=n(85501),l=n(29426),c=n(64467),f=n(39155),d=n.n(f),p=n(69514),h=n.n(p),v=n(25371),g=n(54808),y=n(66588),m=n(8719),b=n(69916),w=n(88822),x=n(46942),E=n.n(x);function S(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var C=n(3453),A=n(80045),D=n(68430),O=n(30156);function k(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function T(e){var t=e.prefixCls,n=e.visible,i=e.zIndex,a=e.mask,u=e.maskMotion,s=e.maskAnimation,l=e.maskTransitionName;if(!a)return null;var c={};return(u||l||s)&&(c=(0,r.A)({motionAppear:!0},k({motion:u,prefixCls:t,transitionName:l,animation:s}))),f.createElement(O.A,(0,o.A)({},c,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return f.createElement("div",{style:{zIndex:i},className:E()("".concat(t,"-mask"),n)})}))}var B,_=n(82284);function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function L(){if(void 0!==B)return B;B="";var e=document.createElement("p").style;for(var t in I)t+"Transform"in e&&(B=t);return B}function R(){return L()?"".concat(L(),"TransitionProperty"):"transitionProperty"}function M(){return L()?"".concat(L(),"Transform"):"transform"}function z(e,t){var n=R();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function H(e,t){var n=M();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var $,V=/matrix\((.*)\)/,U=/matrix3d\((.*)\)/;function W(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function G(e,t,n){var r=n;if("object"!==j(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):$(e,t);for(var o in t)t.hasOwnProperty(o)&&G(e,o,t[o])}function q(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function K(e){return q(e)}function Y(e){return q(e,!0)}function X(e){var t=function(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=K(r),t.top+=Y(r),t}function Z(e){return null!=e&&e==e.window}function J(e){return Z(e)?e.document:9===e.nodeType?e:e.ownerDocument}var Q=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),ee=/^(top|right|bottom|left)$/,te="currentStyle",ne="runtimeStyle",re="left";function oe(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function ie(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function ae(e,t,n){"static"===G(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=oe("left",n),a=oe("top",n),u=ie(i),s=ie(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var l,c="",f=X(e);("left"in t||"top"in t)&&(c=(l=e).style.transitionProperty||l.style[R()]||"",z(e,"none")),"left"in t&&(e.style[u]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[s]="",e.style[a]="".concat(o,"px")),W(e);var d=X(e),p={};for(var h in t)if(t.hasOwnProperty(h)){var v=oe(h,n),g="left"===h?r:o,y=f[h]-d[h];p[v]=v===h?g+y:g-y}G(e,p),W(e),("left"in t||"top"in t)&&z(e,c);var m={};for(var b in t)if(t.hasOwnProperty(b)){var w=oe(b,n),x=t[b]-f[b];m[w]=b===w?p[w]+x:p[w]-x}G(e,m)}function ue(e,t){var n=X(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(M());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}}(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(M());if(r&&"none"!==r){var o,i=r.match(V);i?((o=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,H(e,"matrix(".concat(o.join(","),")"))):((o=r.match(U)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,H(e,"matrix3d(".concat(o.join(","),")")))}else H(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function se(e,t){for(var n=0;n<e.length;n++)t(e[n])}function le(e){return"border-box"===$(e,"boxSizing")}"undefined"!=typeof window&&($=window.getComputedStyle?function(e,t,n){var r=n,o="",i=J(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e[te]&&e[te][t];if(Q.test(n)&&!ee.test(t)){var r=e.style,o=r[re],i=e[ne][re];e[ne][re]=e[te][re],r[re]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[re]=o,e[ne][re]=i}return""===n?"auto":n});var ce=["margin","border","padding"],fe=-1,de=2,pe=1;function he(e,t,n){var r,o,i,a=0;for(o=0;o<t.length;o++)if(r=t[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($(e,u))||0}return a}var ve={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function ge(e,t,n){var r=n;if(Z(e))return"width"===t?ve.viewportWidth(e):ve.viewportHeight(e);if(9===e.nodeType)return"width"===t?ve.docWidth(e):ve.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=le(e),u=0;(null==i||i<=0)&&(i=void 0,(null==(u=$(e,t))||Number(u)<0)&&(u=e.style[t]||0),u=Math.floor(parseFloat(u))||0),void 0===r&&(r=a?pe:fe);var s=void 0!==i||a,l=i||u;return r===fe?s?l-he(e,["border","padding"],o):u:s?r===pe?l:l+(r===de?-he(e,["border"],o):he(e,["margin"],o)):u+he(e,ce.slice(r),o)}se(["Width","Height"],(function(e){ve["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],ve["viewport".concat(e)](n))},ve["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var ye={position:"absolute",visibility:"hidden",display:"block"};function me(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=ge.apply(void 0,t):function(e,t,n){var r,o={},i=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=i[r],i[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(i[r]=o[r])}(o,ye,(function(){r=ge.apply(void 0,t)})),r}function be(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}se(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);ve["outer".concat(t)]=function(t,n){return t&&me(t,e,n?0:pe)};var n="width"===e?["Left","Right"]:["Top","Bottom"];ve[e]=function(t,r){var o=r;return void 0!==o?t?(le(t)&&(o+=he(t,["padding","border"],n)),G(t,e,o)):void 0:t&&me(t,e,fe)}}));var we={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:J,offset:function(e,t,n){if(void 0===t)return X(e);!function(e,t,n){if(n.ignoreShake){var r=X(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),u=t.top.toFixed(0);if(o===a&&i===u)return}n.useCssRight||n.useCssBottom?ae(e,t,n):n.useCssTransform&&M()in document.body.style?ue(e,t):ae(e,t,n)}(e,t,n||{})},isWindow:Z,each:se,css:G,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:be,getWindowScrollLeft:function(e){return K(e)},getWindowScrollTop:function(e){return Y(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)we.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};be(we,ve);var xe=we.getParent;function Ee(e){if(we.isWindow(e)||9===e.nodeType)return null;var t,n=we.getDocument(e).body,r=we.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:xe(e);for(t=xe(e);t&&t!==n&&9!==t.nodeType;t=xe(t))if("static"!==(r=we.css(t,"position")))return t;return null}var Se=we.getParent;function Ce(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=Ee(e),o=we.getDocument(e),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"===we.css(r,"overflow")){if(r===a||r===u)break}else{var s=we.offset(r);s.left+=r.clientLeft,s.top+=r.clientTop,n.top=Math.max(n.top,s.top),n.right=Math.min(n.right,s.left+r.clientWidth),n.bottom=Math.min(n.bottom,s.top+r.clientHeight),n.left=Math.max(n.left,s.left)}r=Ee(r)}var l=null;we.isWindow(e)||9===e.nodeType||(l=e.style.position,"absolute"===we.css(e,"position")&&(e.style.position="fixed"));var c=we.getWindowScrollLeft(i),f=we.getWindowScrollTop(i),d=we.viewportWidth(i),p=we.viewportHeight(i),h=u.scrollWidth,v=u.scrollHeight,g=window.getComputedStyle(a);if("hidden"===g.overflowX&&(h=i.innerWidth),"hidden"===g.overflowY&&(v=i.innerHeight),e.style&&(e.style.position=l),t||function(e){if(we.isWindow(e)||9===e.nodeType)return!1;var t=we.getDocument(e),n=t.body,r=null;for(r=Se(e);r&&r!==n&&r!==t;r=Se(r))if("fixed"===we.css(r,"position"))return!0;return!1}(e))n.left=Math.max(n.left,c),n.top=Math.max(n.top,f),n.right=Math.min(n.right,c+d),n.bottom=Math.min(n.bottom,f+p);else{var y=Math.max(h,c+d);n.right=Math.min(n.right,y);var m=Math.max(v,f+p);n.bottom=Math.min(n.bottom,m)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Ae(e){var t,n,r;if(we.isWindow(e)||9===e.nodeType){var o=we.getWindow(e);t={left:we.getWindowScrollLeft(o),top:we.getWindowScrollTop(o)},n=we.viewportWidth(o),r=we.viewportHeight(o)}else t=we.offset(e),n=we.outerWidth(e),r=we.outerHeight(e);return t.width=n,t.height=r,t}function De(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,u=e.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 Oe(e,t,n,r,o){var i=De(t,n[1]),a=De(e,n[0]),u=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-u[0]+r[0]-o[0]),top:Math.round(e.top-u[1]+r[1]-o[1])}}function ke(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Te(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function Be(e,t,n){var r=[];return we.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function _e(e,t){return e[t]=-e[t],e}function Pe(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Fe(e,t){e[0]=Pe(e[0],t.width),e[1]=Pe(e[1],t.height)}function je(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,s=n.source||e;i=[].concat(i),a=[].concat(a);var l={},c=0,f=Ce(s,!(!(u=u||{})||!u.alwaysByViewport)),d=Ae(s);Fe(i,d),Fe(a,t);var p=Oe(d,t,o,i,a),h=we.merge(d,p);if(f&&(u.adjustX||u.adjustY)&&r){if(u.adjustX&&ke(p,d,f)){var v=Be(o,/[lr]/gi,{l:"r",r:"l"}),g=_e(i,0),y=_e(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Oe(d,t,v,g,y),d,f)||(c=1,o=v,i=g,a=y)}if(u.adjustY&&Te(p,d,f)){var m=Be(o,/[tb]/gi,{t:"b",b:"t"}),b=_e(i,1),w=_e(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Oe(d,t,m,b,w),d,f)||(c=1,o=m,i=b,a=w)}c&&(p=Oe(d,t,o,i,a),we.mix(h,p));var x=ke(p,d,f),E=Te(p,d,f);if(x||E){var S=o;x&&(S=Be(o,/[lr]/gi,{l:"r",r:"l"})),E&&(S=Be(o,/[tb]/gi,{t:"b",b:"t"})),o=S,i=n.offset||[0,0],a=n.targetOffset||[0,0]}l.adjustX=u.adjustX&&x,l.adjustY=u.adjustY&&E,(l.adjustX||l.adjustY)&&(h=function(e,t,n,r){var o=we.clone(e),i={width:t.width,height:t.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)),we.mix(o,i)}(p,d,f,l))}return h.width!==d.width&&we.css(s,"width",we.width(s)+h.width-d.width),h.height!==d.height&&we.css(s,"height",we.height(s)+h.height-d.height),we.offset(s,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:l}}function Ne(e,t,n){var r=n.target||t,o=Ae(r),i=!function(e,t){var n=Ce(e,t),r=Ae(e);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 je(e,o,n,i)}Ne.__getOffsetParent=Ee,Ne.__getVisibleRectForElement=Ce;var Ie=n(43210),Le=n(42467),Re=n(30981);var Me=n(43591);function ze(e,t){var n=null,r=null;var o=new Me.default((function(e){var o=(0,C.A)(e,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,u=i.height,s=Math.floor(a),l=Math.floor(u);n===s&&r===l||Promise.resolve().then((function(){t({width:s,height:l})})),n=s,r=l}}));return e&&o.observe(e),function(){o.disconnect()}}function He(e){return"function"!=typeof e?null:e()}function $e(e){return"object"===(0,_.A)(e)&&e?e:null}var Ve=function(e,t){var n=e.children,r=e.disabled,o=e.target,i=e.align,a=e.onAlign,u=e.monitorWindowResize,s=e.monitorBufferTime,l=void 0===s?0:s,c=d().useRef({}),f=d().useRef(),p=d().Children.only(n),h=d().useRef({});h.current.disabled=r,h.current.target=o,h.current.align=i,h.current.onAlign=a;var v=function(e,t){var n=d().useRef(!1),r=d().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()}),t);else{if(!1===e(a))return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,o()}]}((function(){var e=h.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign,i=f.current;if(!t&&n&&i){var a,u=He(n),s=$e(n);c.current.element=u,c.current.point=s,c.current.align=r;var l=document.activeElement;return u&&(0,Le.A)(u)?a=Ne(i,u,r):s&&(a=function(e,t,n){var r,o,i=we.getDocument(e),a=i.defaultView||i.parentWindow,u=we.getWindowScrollLeft(a),s=we.getWindowScrollTop(a),l=we.viewportWidth(a),c=we.viewportHeight(a),f={left:r="pageX"in t?t.pageX:u+t.clientX,top:o="pageY"in t?t.pageY:s+t.clientY,width:0,height:0},d=r>=0&&r<=u+l&&o>=0&&o<=s+c,p=[n.points[0],"cc"];return je(e,f,F(F({},n),{},{points:p}),d)}(i,s,r)),function(e,t){e!==document.activeElement&&(0,g.A)(t,e)&&"function"==typeof e.focus&&e.focus()}(l,i),o&&a&&o(i,a),!0}return!1}),l),y=(0,C.A)(v,2),w=y[0],x=y[1],E=d().useState(),S=(0,C.A)(E,2),A=S[0],D=S[1],O=d().useState(),k=(0,C.A)(O,2),T=k[0],B=k[1];return(0,Re.A)((function(){D(He(o)),B($e(o))})),d().useEffect((function(){var e,t;c.current.element===A&&((e=c.current.point)===(t=T)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&(0,Ie.A)(c.current.align,i)||w()})),d().useEffect((function(){return ze(f.current,w)}),[f.current]),d().useEffect((function(){return ze(A,w)}),[A]),d().useEffect((function(){r?x():w()}),[r]),d().useEffect((function(){if(u)return(0,b.A)(window,"resize",w).remove}),[u]),d().useEffect((function(){return function(){x()}}),[]),d().useImperativeHandle(t,(function(){return{forceAlign:function(){return w(!0)}}})),d().isValidElement(p)&&(p=d().cloneElement(p,{ref:(0,m.K4)(p.ref,f)})),p},Ue=d().forwardRef(Ve);Ue.displayName="Align";const We=Ue;function Ge(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
21
|
-
Ge=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),u=new B(r||[]);return o(a,"_invoke",{value:D(e,n,u)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",g={};function y(){}function m(){}function b(){}var w={};l(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(P([])));E&&E!==n&&r.call(E,a)&&(w=E);var S=b.prototype=y.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(o,i,a,u){var s=f(e[o],e,i);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==(0,_.A)(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):t.resolve(c).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function D(t,n,r){var o=d;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var s=O(u,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(t,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function O(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError((0,_.A)(t)+" is not iterable")}return m.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=l(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},C(A.prototype),l(A.prototype,u,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new A(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(S),l(S,s,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=P,B.prototype={constructor:B,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return u.type="throw",u.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!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 s=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}var qe=n(10467),Ke=n(1233),Ye=["measure","alignPre","align",null,"motion"];var Xe=f.forwardRef((function(e,t){var n=e.visible,i=e.prefixCls,a=e.className,u=e.style,s=e.children,l=e.zIndex,c=e.stretch,d=e.destroyPopupOnHide,p=e.forceRender,h=e.align,g=e.point,y=e.getRootDomNode,m=e.getClassNameFromAlign,b=e.onAlign,w=e.onMouseEnter,x=e.onMouseLeave,S=e.onMouseDown,A=e.onTouchStart,D=e.onClick,T=(0,f.useRef)(),B=(0,f.useRef)(),_=(0,f.useState)(),P=(0,C.A)(_,2),F=P[0],j=P[1],N=function(e){var t=f.useState({width:0,height:0}),n=(0,C.A)(t,2),r=n[0],o=n[1];return[f.useMemo((function(){var t={};if(e){var n=r.width,o=r.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,r]),function(e){var t=e.offsetWidth,n=e.offsetHeight,r=e.getBoundingClientRect(),i=r.width,a=r.height;Math.abs(t-i)<1&&Math.abs(n-a)<1&&(t=i,n=a),o({width:t,height:n})}]}(c),I=(0,C.A)(N,2),L=I[0],R=I[1];var M=function(e,t){var n=(0,Ke.A)(null),r=(0,C.A)(n,2),o=r[0],i=r[1],a=(0,f.useRef)();function u(e){i(e,!0)}function s(){v.A.cancel(a.current)}return(0,f.useEffect)((function(){u("measure")}),[e]),(0,f.useEffect)((function(){"measure"===o&&t(),o&&(a.current=(0,v.A)((0,qe.A)(Ge().mark((function e(){var t,n;return Ge().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Ye.indexOf(o),(n=Ye[t+1])&&-1!==t&&u(n);case 3:case"end":return e.stop()}}),e)})))))}),[o]),(0,f.useEffect)((function(){return function(){s()}}),[]),[o,function(e){s(),a.current=(0,v.A)((function(){u((function(e){switch(o){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){c&&R(y())})),z=(0,C.A)(M,2),H=z[0],$=z[1],V=(0,f.useState)(0),U=(0,C.A)(V,2),W=U[0],G=U[1],q=(0,f.useRef)();function K(){var e;null===(e=T.current)||void 0===e||e.forceAlign()}function Y(e,t){var n=m(t);F!==n&&j(n),G((function(e){return e+1})),"align"===H&&(null==b||b(e,t))}(0,Re.A)((function(){"alignPre"===H&&G(0)}),[H]),(0,Re.A)((function(){"align"===H&&(W<3?K():$((function(){var e;null===(e=q.current)||void 0===e||e.call(q)})))}),[W]);var X=(0,r.A)({},k(e));function Z(){return new Promise((function(e){q.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=X[e];X[e]=function(e,n){return $(),null==t?void 0:t(e,n)}})),f.useEffect((function(){X.motionName||"motion"!==H||$()}),[X.motionName,H]),f.useImperativeHandle(t,(function(){return{forceAlign:K,getElement:function(){return B.current}}}));var J=(0,r.A)((0,r.A)({},L),{},{zIndex:l,opacity:"motion"!==H&&"stable"!==H&&n?0:void 0,pointerEvents:n||"stable"===H?void 0:"none"},u),Q=!0;null==h||!h.points||"align"!==H&&"stable"!==H||(Q=!1);var ee=s;return f.Children.count(s)>1&&(ee=f.createElement("div",{className:"".concat(i,"-content")},s)),f.createElement(O.A,(0,o.A)({visible:n,ref:B,leavedClassName:"".concat(i,"-hidden")},X,{onAppearPrepare:Z,onEnterPrepare:Z,removeOnLeave:d,forceRender:p}),(function(e,t){var n=e.className,o=e.style,u=E()(i,a,F,n);return f.createElement(We,{target:g||y,key:"popup",ref:T,monitorWindowResize:!0,disabled:Q,align:h,onAlign:Y},f.createElement("div",{ref:t,className:u,onMouseEnter:w,onMouseLeave:x,onMouseDownCapture:S,onTouchStartCapture:A,onClick:D,style:(0,r.A)((0,r.A)({},o),J)},ee))}))}));Xe.displayName="PopupInner";const Ze=Xe;var Je=f.forwardRef((function(e,t){var n=e.prefixCls,i=e.visible,a=e.zIndex,u=e.children,s=e.mobile,l=(s=void 0===s?{}:s).popupClassName,c=s.popupStyle,d=s.popupMotion,p=void 0===d?{}:d,h=s.popupRender,v=e.onClick,g=f.useRef();f.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return g.current}}}));var y=(0,r.A)({zIndex:a},c),m=u;return f.Children.count(u)>1&&(m=f.createElement("div",{className:"".concat(n,"-content")},u)),h&&(m=h(m)),f.createElement(O.A,(0,o.A)({visible:i,ref:g,removeOnLeave:!0},p),(function(e,t){var o=e.className,i=e.style,a=E()(n,l,o);return f.createElement("div",{ref:t,className:a,onClick:v,style:(0,r.A)((0,r.A)({},i),y)},m)}))}));Je.displayName="MobilePopupInner";const Qe=Je;var et=["visible","mobile"],tt=f.forwardRef((function(e,t){var n=e.visible,i=e.mobile,a=(0,A.A)(e,et),u=(0,f.useState)(n),s=(0,C.A)(u,2),l=s[0],c=s[1],d=(0,f.useState)(!1),p=(0,C.A)(d,2),h=p[0],v=p[1],g=(0,r.A)((0,r.A)({},a),{},{visible:l});(0,f.useEffect)((function(){c(n),n&&i&&v((0,D.A)())}),[n,i]);var y=h?f.createElement(Qe,(0,o.A)({},g,{mobile:i,ref:t})):f.createElement(Ze,(0,o.A)({},g,{ref:t}));return f.createElement("div",null,f.createElement(T,g),y)}));tt.displayName="Popup";const nt=tt;const rt=f.createContext(null);function ot(){}function it(){return""}function at(e){return e?e.ownerDocument:window.document}var ut=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const st=(lt=w.A,ct=function(e){(0,s.A)(n,e);var t=(0,l.A)(n);function n(e){var r,a;return(0,i.A)(this,n),r=t.call(this,e),(0,c.A)((0,u.A)(r),"popupRef",f.createRef()),(0,c.A)((0,u.A)(r),"triggerRef",f.createRef()),(0,c.A)((0,u.A)(r),"portalContainer",void 0),(0,c.A)((0,u.A)(r),"attachId",void 0),(0,c.A)((0,u.A)(r),"clickOutsideHandler",void 0),(0,c.A)((0,u.A)(r),"touchOutsideHandler",void 0),(0,c.A)((0,u.A)(r),"contextMenuOutsideHandler1",void 0),(0,c.A)((0,u.A)(r),"contextMenuOutsideHandler2",void 0),(0,c.A)((0,u.A)(r),"mouseDownTimeout",void 0),(0,c.A)((0,u.A)(r),"focusTime",void 0),(0,c.A)((0,u.A)(r),"preClickTime",void 0),(0,c.A)((0,u.A)(r),"preTouchTime",void 0),(0,c.A)((0,u.A)(r),"delayTimer",void 0),(0,c.A)((0,u.A)(r),"hasPopupMouseDown",void 0),(0,c.A)((0,u.A)(r),"onMouseEnter",(function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)})),(0,c.A)((0,u.A)(r),"onMouseMove",(function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)})),(0,c.A)((0,u.A)(r),"onMouseLeave",(function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,c.A)((0,u.A)(r),"onPopupMouseEnter",(function(){r.clearDelayTimer()})),(0,c.A)((0,u.A)(r),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,g.A)(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,c.A)((0,u.A)(r),"onFocus",(function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))})),(0,c.A)((0,u.A)(r),"onMouseDown",(function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()})),(0,c.A)((0,u.A)(r),"onTouchStart",(function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()})),(0,c.A)((0,u.A)(r),"onBlur",(function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)})),(0,c.A)((0,u.A)(r),"onContextMenu",(function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)})),(0,c.A)((0,u.A)(r),"onContextMenuClose",(function(){r.isContextMenuToShow()&&r.close()})),(0,c.A)((0,u.A)(r),"onClick",(function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)})),(0,c.A)((0,u.A)(r),"onPopupMouseDown",(function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)})),(0,c.A)((0,u.A)(r),"onDocumentClick",(function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),o=r.getPopupDomNode();(0,g.A)(n,t)&&!r.isContextMenuOnly()||(0,g.A)(o,t)||r.hasPopupMouseDown||r.close()}})),(0,c.A)((0,u.A)(r),"getRootDomNode",(function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=(0,y.A)(r.triggerRef.current);if(t)return t}catch(e){}return h().findDOMNode((0,u.A)(r))})),(0,c.A)((0,u.A)(r),"getPopupClassNameFromAlign",(function(e){var t=[],n=r.props,o=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,u=n.alignPoint,s=n.getPopupClassNameFromAlign;return o&&i&&t.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var u=i[a];if(S(e[u].points,o,r))return"".concat(t,"-placement-").concat(u)}return""}(i,a,e,u)),s&&t.push(s(e)),t.join(" ")})),(0,c.A)((0,u.A)(r),"getComponent",(function(){var e=r.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,a=e.onPopupAlign,u=e.popupMotion,s=e.popupAnimation,l=e.popupTransitionName,c=e.popupStyle,d=e.mask,p=e.maskAnimation,h=e.maskTransitionName,v=e.maskMotion,g=e.zIndex,y=e.popup,m=e.stretch,b=e.alignPoint,w=e.mobile,x=e.forceRender,E=e.onPopupClick,S=r.state,C=S.popupVisible,A=S.point,D=r.getPopupAlign(),O={};return r.isMouseEnterToShow()&&(O.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(O.onMouseLeave=r.onPopupMouseLeave),O.onMouseDown=r.onPopupMouseDown,O.onTouchStart=r.onPopupMouseDown,f.createElement(nt,(0,o.A)({prefixCls:t,destroyPopupOnHide:n,visible:C,point:b&&A,className:i,align:D,onAlign:a,animation:s,getClassNameFromAlign:r.getPopupClassNameFromAlign},O,{stretch:m,getRootDomNode:r.getRootDomNode,style:c,mask:d,zIndex:g,transitionName:l,maskAnimation:p,maskTransitionName:h,maskMotion:v,ref:r.popupRef,motion:u,mobile:w,forceRender:x,onClick:E}),"function"==typeof y?y():y)})),(0,c.A)((0,u.A)(r),"attachParent",(function(e){v.A.cancel(r.attachId);var t,n=r.props,o=n.getPopupContainer,i=n.getDocument,a=r.getRootDomNode();o?(a||0===o.length)&&(t=o(a)):t=i(r.getRootDomNode()).body,t?t.appendChild(e):r.attachId=(0,v.A)((function(){r.attachParent(e)}))})),(0,c.A)((0,u.A)(r),"getContainer",(function(){if(!r.portalContainer){var e=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",r.portalContainer=e}return r.attachParent(r.portalContainer),r.portalContainer})),(0,c.A)((0,u.A)(r),"setPoint",(function(e){r.props.alignPoint&&e&&r.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,c.A)((0,u.A)(r),"handlePortalUpdate",(function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)})),(0,c.A)((0,u.A)(r),"triggerContextValue",{onPopupMouseDown:r.onPopupMouseDown}),a="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,r.state={prevPopupVisible:a,popupVisible:a},ut.forEach((function(e){r["fire".concat(e)]=function(t){r.fireEvents(e,t)}})),r}return(0,a.A)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,b.A)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,b.A)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,b.A)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,b.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 e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,n){var o=e[t]||{};return(0,r.A)((0,r.A)({},o),n)}(o,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,o=t.forceRender,i=t.alignPoint,a=t.className,u=t.autoDestroy,s=f.Children.only(n),l={key:"trigger"};this.isContextMenuToShow()?l.onContextMenu=this.onContextMenu:l.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(l.onClick=this.onClick,l.onMouseDown=this.onMouseDown,l.onTouchStart=this.onTouchStart):(l.onClick=this.createTwoChains("onClick"),l.onMouseDown=this.createTwoChains("onMouseDown"),l.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(l.onMouseEnter=this.onMouseEnter,i&&(l.onMouseMove=this.onMouseMove)):l.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?l.onMouseLeave=this.onMouseLeave:l.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(l.onFocus=this.onFocus,l.onBlur=this.onBlur):(l.onFocus=this.createTwoChains("onFocus"),l.onBlur=this.createTwoChains("onBlur"));var c=E()(s&&s.props&&s.props.className,a);c&&(l.className=c);var d=(0,r.A)({},l);(0,m.f3)(s)&&(d.ref=(0,m.K4)(this.triggerRef,s.ref));var p,h=f.cloneElement(s,d);return(e||this.popupRef.current||o)&&(p=f.createElement(lt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&u&&(p=null),f.createElement(rt.Provider,{value:this.triggerContextValue},h,p)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),n}(f.Component),(0,c.A)(ct,"contextType",rt),(0,c.A)(ct,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:it,getDocument:at,onPopupVisibleChange:ot,afterPopupVisibleChange:ot,onPopupAlign:ot,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),ct);var lt,ct},69916:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(69514),o=n.n(r);function i(e,t,n,r){var i=o().unstable_batchedUpdates?function(e){o().unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}},20998:(e,t,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>r})},54808:(e,t,n)=>{"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{A:()=>r})},66588:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(39155),o=n.n(r),i=n(69514),a=n.n(i);function u(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof o().Component?a().findDOMNode(e):null}},42467:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},88822:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(39155),o=n(69514),i=n.n(o),a=n(20998);const u=(0,r.forwardRef)((function(e,t){var n=e.didUpdate,o=e.getContainer,u=e.children,s=(0,r.useRef)(),l=(0,r.useRef)();(0,r.useImperativeHandle)(t,(function(){return{}}));var c=(0,r.useRef)(!1);return!c.current&&(0,a.A)()&&(l.current=o(),s.current=l.current.parentNode,c.current=!0),(0,r.useEffect)((function(){null==n||n(e)})),(0,r.useEffect)((function(){return null===l.current.parentNode&&null!==s.current&&s.current.appendChild(l.current),function(){var e;null===(e=l.current)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(l.current)}}),[]),l.current?i().createPortal(u,l.current):null}))},30981:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(39155),o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect,i=function(e,t){var n=r.useRef(!0);o((function(){return e(n.current)}),t),o((function(){return n.current=!1,function(){n.current=!0}}),[])};const a=i},28104:(e,t,n)=>{"use strict";n(39155)},1233:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3453),o=n(39155);function i(e){var t=o.useRef(!1),n=o.useState(e),i=(0,r.A)(n,2),a=i[0],u=i[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,n){n&&t.current||u(e)}]}},43210:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284),o=n(68210);const i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=i.has(t);if((0,o.Ay)(!s,"Warning: There may be circular references"),s)return!1;if(t===a)return!0;if(n&&u>1)return!1;i.add(t);var l=u+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],a[c],l))return!1;return!0}if(t&&a&&"object"===(0,r.A)(t)&&"object"===(0,r.A)(a)){var f=Object.keys(t);return f.length===Object.keys(a).length&&f.every((function(n){return e(t[n],a[n],l)}))}return!1}(e,t)}},68430:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}},25371:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map;function u(e){a.delete(e)}var s=function(e){var t=i+=1;return function n(o){if(0===o)u(t),e();else{var i=r((function(){n(o-1)}));a.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};s.cancel=function(e){var t=a.get(e);return u(e),o(t)};const l=s},8719:(e,t,n)=>{"use strict";n.d(t,{K4:()=>a,Xf:()=>i,f3:()=>u});var r=n(82284),o=(n(39155),n(66351));n(28104);function i(e,t){"function"==typeof e?e(t):"object"===(0,r.A)(e)&&e&&"current"in e&&(e.current=t)}function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){i(t,e)}))}}function u(e){var t,n,r=(0,o.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===o.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===o.ForwardRef)}},68210:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l});var r={},o=[];function i(e,t){}function a(e,t){}function u(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function s(e,t){u(i,e,t)}s.preMessage=function(e){o.push(e)},s.resetWarned=function(){r={}},s.noteOnce=function(e,t){u(a,e,t)};const l=s},57787:(e,t)=>{"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"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");
|
|
20
|
+
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,u=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var l in i=Object(arguments[s]))n.call(i,l)&&(u[l]=i[l]);if(t){a=t(i);for(var c=0;c<a.length;c++)r.call(i,a[c])&&(u[a[c]]=i[a[c]])}}return u}},44785:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(64467),o=n(89379),i=n(3453),a=n(82284),u=n(39155),s=n(66588),l=n(8719),c=n(46942),f=n.n(c),d=n(80371),p=n(25931),h=n(25318),v=n(72137),g=n(58515);const y=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,a.A)(e)&&(t=e.transitionSupport);var c=u.forwardRef((function(e,t){var a=e.visible,c=void 0===a||a,y=e.removeOnLeave,m=void 0===y||y,b=e.forceRender,w=e.children,x=e.motionName,E=e.leavedClassName,S=e.eventProps,C=n(e),A=(0,u.useRef)(),D=(0,u.useRef)();var O=(0,h.A)(C,c,(function(){try{return(0,s.A)(A.current||D.current)}catch(e){return null}}),e),k=(0,i.A)(O,4),T=k[0],B=k[1],_=k[2],P=k[3],F=u.useRef(P);P&&(F.current=!0);var j=(0,u.useRef)(t);j.current=t;var N,I=u.useCallback((function(e){A.current=e,(0,l.Xf)(j.current,e)}),[]),L=(0,o.A)((0,o.A)({},S),{},{visible:c});if(w)if(T!==p.SF&&n(e)){var R,M;B===p.px?M="prepare":(0,g.$m)(B)?M="active":B===p.Mv&&(M="start"),N=w((0,o.A)((0,o.A)({},L),{},{className:f()((0,d.by)(x,T),(R={},(0,r.A)(R,(0,d.by)(x,"".concat(T,"-").concat(M)),M),(0,r.A)(R,x,"string"==typeof x),R)),style:_}),I)}else N=P?w((0,o.A)({},L),I):!m&&F.current?w((0,o.A)((0,o.A)({},L),{},{className:E}),I):b?w((0,o.A)((0,o.A)({},L),{},{style:{display:"none"}}),I):null;else N=null;return u.createElement(v.A,{ref:D},N)}));return c.displayName="CSSMotion",c}(d.J1)},97333:(e,t,n)=>{"use strict";var r=n(58168),o=n(80045),i=n(89379),a=n(23029),u=n(92901),s=n(85501),l=n(29426),c=n(39155),f=n(44785),d=n(80371),p=n(29710),h=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.A,n=function(e){(0,s.A)(f,e);var n=(0,l.A)(f);function f(){var e;return(0,a.A)(this,f),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,i.A)((0,i.A)({},e),{},{status:p.e8})}))}}))},e}return(0,u.A)(f,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,i=this.props,a=i.component,u=i.children,s=i.onVisibleChanged,l=(0,o.A)(i,["component","children","onVisibleChanged"]),f=a||c.Fragment,d={};return h.forEach((function(e){d[e]=l[e],delete l[e]})),delete l.keys,c.createElement(f,l,n.map((function(n){var i=n.status,a=(0,o.A)(n,["status"]),l=i===p.bK||i===p.xI;return c.createElement(t,(0,r.A)({},d,{key:a.key,visible:l,eventProps:a,onVisibleChanged:function(t){null==s||s(t,{key:a.key}),t||e.removeKey(a.key)}}),u)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=(0,p.Ss)(n);return{keyEntities:(0,p.y$)(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==p.e8||e.status!==p.au}))}}}]),f}(c.Component);n.defaultProps={component:"div"}}(d.J1)},72137:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(23029),o=n(92901),i=n(85501),a=n(29426),u=n(39155);const s=function(e){(0,i.A)(n,e);var t=(0,a.A)(n);function n(){return(0,r.A)(this,n),t.apply(this,arguments)}return(0,o.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component)},85849:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(39155),o=n(80371);const i=function(e){var t=(0,r.useRef)(),n=(0,r.useRef)(e);n.current=e;var i=r.useCallback((function(e){n.current(e)}),[]);function a(e){e&&(e.removeEventListener(o.m8,i),e.removeEventListener(o.Vc,i))}return r.useEffect((function(){return function(){a(t.current)}}),[]),[function(e){t.current&&t.current!==e&&a(t.current),e&&e!==t.current&&(e.addEventListener(o.m8,i),e.addEventListener(o.Vc,i),t.current=e)},a]}},43982:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(39155);const o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect},84560:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(39155),o=n(25371);const i=function(){var e=r.useRef(null);function t(){o.A.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var a=(0,o.A)((function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)}));e.current=a},t]}},92659:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3453),o=n(39155);function i(e){var t=(0,o.useRef)(!1),n=(0,o.useState)(e),i=(0,r.A)(n,2),a=i[0],u=i[1];return(0,o.useEffect)((function(){return function(){t.current=!0}}),[]),[a,function(e){t.current||u(e)}]}},25318:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(89379),o=n(64467),i=n(3453),a=n(39155),u=n(25931),s=n(92659),l=n(43982),c=n(58515),f=n(85849);function d(e,t,n,d){var p=d.motionEnter,h=void 0===p||p,v=d.motionAppear,g=void 0===v||v,y=d.motionLeave,m=void 0===y||y,b=d.motionDeadline,w=d.motionLeaveImmediately,x=d.onAppearPrepare,E=d.onEnterPrepare,S=d.onLeavePrepare,C=d.onAppearStart,A=d.onEnterStart,D=d.onLeaveStart,O=d.onAppearActive,k=d.onEnterActive,T=d.onLeaveActive,B=d.onAppearEnd,_=d.onEnterEnd,P=d.onLeaveEnd,F=d.onVisibleChanged,j=(0,s.A)(),N=(0,i.A)(j,2),I=N[0],L=N[1],R=(0,s.A)(u.SF),M=(0,i.A)(R,2),z=M[0],H=M[1],$=(0,s.A)(null),V=(0,i.A)($,2),U=V[0],W=V[1],G=(0,a.useRef)(!1),q=(0,a.useRef)(null),K=(0,a.useRef)(!1),Y=(0,a.useRef)(null);function X(){return n()||Y.current}var Z=(0,a.useRef)(!1);function J(e){var t,n=X();e&&!e.deadline&&e.target!==n||(z===u.Tv&&Z.current?t=null==B?void 0:B(n,e):z===u.Wd&&Z.current?t=null==_?void 0:_(n,e):z===u.dp&&Z.current&&(t=null==P?void 0:P(n,e)),!1===t||K.current||(H(u.SF),W(null)))}var Q=(0,f.A)(J),ee=(0,i.A)(Q,1)[0],te=a.useMemo((function(){var e,t,n;switch(z){case"appear":return e={},(0,o.A)(e,u.px,x),(0,o.A)(e,u.Mv,C),(0,o.A)(e,u.m7,O),e;case"enter":return t={},(0,o.A)(t,u.px,E),(0,o.A)(t,u.Mv,A),(0,o.A)(t,u.m7,k),t;case"leave":return n={},(0,o.A)(n,u.px,S),(0,o.A)(n,u.Mv,D),(0,o.A)(n,u.m7,T),n;default:return{}}}),[z]),ne=(0,c.Ay)(z,(function(e){if(e===u.px){var t=te[u.px];return t?t(X()):c.es}var n;ie in te&&W((null===(n=te[ie])||void 0===n?void 0:n.call(te,X(),null))||null);return ie===u.m7&&(ee(X()),b>0&&(clearTimeout(q.current),q.current=setTimeout((function(){J({deadline:!0})}),b))),c.qB})),re=(0,i.A)(ne,2),oe=re[0],ie=re[1],ae=(0,c.$m)(ie);Z.current=ae,(0,l.A)((function(){L(t);var n,r=G.current;(G.current=!0,e)&&(!r&&t&&g&&(n=u.Tv),r&&t&&h&&(n=u.Wd),(r&&!t&&m||!r&&w&&!t&&m)&&(n=u.dp),n&&(H(n),oe()))}),[t]),(0,a.useEffect)((function(){(z===u.Tv&&!g||z===u.Wd&&!h||z===u.dp&&!m)&&H(u.SF)}),[g,h,m]),(0,a.useEffect)((function(){return function(){clearTimeout(q.current),K.current=!0}}),[]),(0,a.useEffect)((function(){void 0!==I&&z===u.SF&&(null==F||F(I))}),[I,z]);var ue=U;return te[u.px]&&ie===u.Mv&&(ue=(0,r.A)({transition:"none"},ue)),[z,ie,ue,null!=I?I:t]}},58515:(e,t,n)=>{"use strict";n.d(t,{$m:()=>f,Ay:()=>d,es:()=>l,qB:()=>c});var r=n(3453),o=n(39155),i=n(25931),a=n(43982),u=n(84560),s=[i.px,i.Mv,i.m7,i.Hs],l=!1,c=!0;function f(e){return e===i.m7||e===i.Hs}const d=function(e,t){var n=o.useState(i.cE),c=(0,r.A)(n,2),f=c[0],d=c[1],p=(0,u.A)(),h=(0,r.A)(p,2),v=h[0],g=h[1];return(0,a.A)((function(){if(f!==i.cE&&f!==i.Hs){var e=s.indexOf(f),n=s[e+1],r=t(f);r===l?d(n):v((function(e){function t(){e.isCanceled()||d(n)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,f]),o.useEffect((function(){return function(){g()}}),[]),[function(){d(i.px)},f]}},30156:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(44785);n(97333);const o=r.A},25931:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>f,Mv:()=>l,SF:()=>r,Tv:()=>o,Wd:()=>i,cE:()=>u,dp:()=>a,m7:()=>c,px:()=>s});var r="none",o="appear",i="enter",a="leave",u="none",s="prepare",l="start",c="active",f="end"},29710:(e,t,n)=>{"use strict";n.d(t,{Ss:()=>c,au:()=>u,bK:()=>i,e8:()=>s,xI:()=>a,y$:()=>f});var r=n(89379),o=n(82284),i="add",a="keep",u="remove",s="removed";function l(e){var t;return t=e&&"object"===(0,o.A)(e)&&"key"in e?e:{key:e},(0,r.A)((0,r.A)({},t),{},{key:String(t.key)})}function c(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(l)}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,s=t.length,l=c(e),f=c(t);l.forEach((function(e){for(var t=!1,l=o;l<s;l+=1){var c=f[l];if(c.key===e.key){o<l&&(n=n.concat(f.slice(o,l).map((function(e){return(0,r.A)((0,r.A)({},e),{},{status:i})}))),o=l),n.push((0,r.A)((0,r.A)({},c),{},{status:a})),o+=1,t=!0;break}}t||n.push((0,r.A)((0,r.A)({},e),{},{status:u}))})),o<s&&(n=n.concat(f.slice(o).map((function(e){return(0,r.A)((0,r.A)({},e),{},{status:i})}))));var d={};return n.forEach((function(e){var t=e.key;d[t]=(d[t]||0)+1})),Object.keys(d).filter((function(e){return d[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==u}))).forEach((function(t){t.key===e&&(t.status=a)}))})),n}},80371:(e,t,n)=>{"use strict";n.d(t,{J1:()=>g,Vc:()=>y,by:()=>b,m8:()=>m});var r=n(82284),o=n(20998);function i(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var a,u,s,l=(a=(0,o.A)(),u="undefined"!=typeof window?window:{},s={animationend:i("Animation","AnimationEnd"),transitionend:i("Transition","TransitionEnd")},a&&("AnimationEvent"in u||delete s.animationend.animation,"TransitionEvent"in u||delete s.transitionend.transition),s),c={};if((0,o.A)()){var f=document.createElement("div");c=f.style}var d={};function p(e){if(d[e])return d[e];var t=l[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in c)return d[e]=t[i],d[e]}return""}var h=p("animationend"),v=p("transitionend"),g=!(!h||!v),y=h||"animationend",m=v||"transitionend";function b(e,t){return e?"object"===(0,r.A)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}},34307:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(58168),o=n(82284),i=n(89379),a=n(80045),u=n(39155),s=n(1748),l={adjustX:1,adjustY:1},c=[0,0],f={left:{points:["cr","cl"],overflow:l,offset:[-4,0],targetOffset:c},right:{points:["cl","cr"],overflow:l,offset:[4,0],targetOffset:c},top:{points:["bc","tc"],overflow:l,offset:[0,-4],targetOffset:c},bottom:{points:["tc","bc"],overflow:l,offset:[0,4],targetOffset:c},topLeft:{points:["bl","tl"],overflow:l,offset:[0,-4],targetOffset:c},leftTop:{points:["tr","tl"],overflow:l,offset:[-4,0],targetOffset:c},topRight:{points:["br","tr"],overflow:l,offset:[0,-4],targetOffset:c},rightTop:{points:["tl","tr"],overflow:l,offset:[4,0],targetOffset:c},bottomRight:{points:["tr","br"],overflow:l,offset:[0,4],targetOffset:c},rightBottom:{points:["bl","br"],overflow:l,offset:[4,0],targetOffset:c},bottomLeft:{points:["tl","bl"],overflow:l,offset:[0,4],targetOffset:c},leftBottom:{points:["br","bl"],overflow:l,offset:[-4,0],targetOffset:c}};const d=function(e){var t=e.overlay,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle;return u.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t)};var p=function(e,t){var n=e.overlayClassName,l=e.trigger,c=void 0===l?["hover"]:l,p=e.mouseEnterDelay,h=void 0===p?0:p,v=e.mouseLeaveDelay,g=void 0===v?.1:v,y=e.overlayStyle,m=e.prefixCls,b=void 0===m?"rc-tooltip":m,w=e.children,x=e.onVisibleChange,E=e.afterVisibleChange,S=e.transitionName,C=e.animation,A=e.motion,D=e.placement,O=void 0===D?"right":D,k=e.align,T=void 0===k?{}:k,B=e.destroyTooltipOnHide,_=void 0!==B&&B,P=e.defaultVisible,F=e.getTooltipContainer,j=e.overlayInnerStyle,N=(0,a.A)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),I=(0,u.useRef)(null);(0,u.useImperativeHandle)(t,(function(){return I.current}));var L=(0,i.A)({},N);"visible"in e&&(L.popupVisible=e.visible);var R=!1,M=!1;if("boolean"==typeof _)R=_;else if(_&&"object"===(0,o.A)(_)){var z=_.keepParent;R=!0===z,M=!1===z}return u.createElement(s.A,(0,r.A)({popupClassName:n,prefixCls:b,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,r=e.overlay,o=e.id;return[u.createElement("div",{className:"".concat(b,"-arrow"),key:"arrow"},n),u.createElement(d,{key:"content",prefixCls:b,id:o,overlay:r,overlayInnerStyle:j})]},action:c,builtinPlacements:f,popupPlacement:O,ref:I,popupAlign:T,getPopupContainer:F,onPopupVisibleChange:x,afterPopupVisibleChange:E,popupTransitionName:S,popupAnimation:C,popupMotion:A,defaultPopupVisible:P,destroyPopupOnHide:R,autoDestroy:M,mouseLeaveDelay:g,popupStyle:y,mouseEnterDelay:h},L),w)};const h=(0,u.forwardRef)(p)},94934:(e,t)=>{"use strict";t.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}};t.DD=o},1748:(e,t,n)=>{"use strict";n.d(t,{A:()=>st});var r=n(89379),o=n(58168),i=n(23029),a=n(92901),u=n(9417),s=n(85501),l=n(29426),c=n(64467),f=n(39155),d=n.n(f),p=n(69514),h=n.n(p),v=n(25371),g=n(54808),y=n(66588),m=n(8719),b=n(69916),w=n(88822),x=n(46942),E=n.n(x);function S(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var C=n(3453),A=n(80045),D=n(68430),O=n(30156);function k(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function T(e){var t=e.prefixCls,n=e.visible,i=e.zIndex,a=e.mask,u=e.maskMotion,s=e.maskAnimation,l=e.maskTransitionName;if(!a)return null;var c={};return(u||l||s)&&(c=(0,r.A)({motionAppear:!0},k({motion:u,prefixCls:t,transitionName:l,animation:s}))),f.createElement(O.A,(0,o.A)({},c,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return f.createElement("div",{style:{zIndex:i},className:E()("".concat(t,"-mask"),n)})}))}var B,_=n(82284);function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function L(){if(void 0!==B)return B;B="";var e=document.createElement("p").style;for(var t in I)t+"Transform"in e&&(B=t);return B}function R(){return L()?"".concat(L(),"TransitionProperty"):"transitionProperty"}function M(){return L()?"".concat(L(),"Transform"):"transform"}function z(e,t){var n=R();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function H(e,t){var n=M();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var $,V=/matrix\((.*)\)/,U=/matrix3d\((.*)\)/;function W(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function G(e,t,n){var r=n;if("object"!==j(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):$(e,t);for(var o in t)t.hasOwnProperty(o)&&G(e,o,t[o])}function q(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function K(e){return q(e)}function Y(e){return q(e,!0)}function X(e){var t=function(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=K(r),t.top+=Y(r),t}function Z(e){return null!=e&&e==e.window}function J(e){return Z(e)?e.document:9===e.nodeType?e:e.ownerDocument}var Q=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),ee=/^(top|right|bottom|left)$/,te="currentStyle",ne="runtimeStyle",re="left";function oe(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function ie(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function ae(e,t,n){"static"===G(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=oe("left",n),a=oe("top",n),u=ie(i),s=ie(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var l,c="",f=X(e);("left"in t||"top"in t)&&(c=(l=e).style.transitionProperty||l.style[R()]||"",z(e,"none")),"left"in t&&(e.style[u]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[s]="",e.style[a]="".concat(o,"px")),W(e);var d=X(e),p={};for(var h in t)if(t.hasOwnProperty(h)){var v=oe(h,n),g="left"===h?r:o,y=f[h]-d[h];p[v]=v===h?g+y:g-y}G(e,p),W(e),("left"in t||"top"in t)&&z(e,c);var m={};for(var b in t)if(t.hasOwnProperty(b)){var w=oe(b,n),x=t[b]-f[b];m[w]=b===w?p[w]+x:p[w]-x}G(e,m)}function ue(e,t){var n=X(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(M());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}}(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(M());if(r&&"none"!==r){var o,i=r.match(V);i?((o=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,H(e,"matrix(".concat(o.join(","),")"))):((o=r.match(U)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,H(e,"matrix3d(".concat(o.join(","),")")))}else H(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function se(e,t){for(var n=0;n<e.length;n++)t(e[n])}function le(e){return"border-box"===$(e,"boxSizing")}"undefined"!=typeof window&&($=window.getComputedStyle?function(e,t,n){var r=n,o="",i=J(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e[te]&&e[te][t];if(Q.test(n)&&!ee.test(t)){var r=e.style,o=r[re],i=e[ne][re];e[ne][re]=e[te][re],r[re]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[re]=o,e[ne][re]=i}return""===n?"auto":n});var ce=["margin","border","padding"],fe=-1,de=2,pe=1;function he(e,t,n){var r,o,i,a=0;for(o=0;o<t.length;o++)if(r=t[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($(e,u))||0}return a}var ve={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function ge(e,t,n){var r=n;if(Z(e))return"width"===t?ve.viewportWidth(e):ve.viewportHeight(e);if(9===e.nodeType)return"width"===t?ve.docWidth(e):ve.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=le(e),u=0;(null==i||i<=0)&&(i=void 0,(null==(u=$(e,t))||Number(u)<0)&&(u=e.style[t]||0),u=Math.floor(parseFloat(u))||0),void 0===r&&(r=a?pe:fe);var s=void 0!==i||a,l=i||u;return r===fe?s?l-he(e,["border","padding"],o):u:s?r===pe?l:l+(r===de?-he(e,["border"],o):he(e,["margin"],o)):u+he(e,ce.slice(r),o)}se(["Width","Height"],(function(e){ve["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],ve["viewport".concat(e)](n))},ve["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var ye={position:"absolute",visibility:"hidden",display:"block"};function me(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=ge.apply(void 0,t):function(e,t,n){var r,o={},i=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=i[r],i[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(i[r]=o[r])}(o,ye,(function(){r=ge.apply(void 0,t)})),r}function be(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}se(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);ve["outer".concat(t)]=function(t,n){return t&&me(t,e,n?0:pe)};var n="width"===e?["Left","Right"]:["Top","Bottom"];ve[e]=function(t,r){var o=r;return void 0!==o?t?(le(t)&&(o+=he(t,["padding","border"],n)),G(t,e,o)):void 0:t&&me(t,e,fe)}}));var we={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:J,offset:function(e,t,n){if(void 0===t)return X(e);!function(e,t,n){if(n.ignoreShake){var r=X(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),u=t.top.toFixed(0);if(o===a&&i===u)return}n.useCssRight||n.useCssBottom?ae(e,t,n):n.useCssTransform&&M()in document.body.style?ue(e,t):ae(e,t,n)}(e,t,n||{})},isWindow:Z,each:se,css:G,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:be,getWindowScrollLeft:function(e){return K(e)},getWindowScrollTop:function(e){return Y(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)we.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};be(we,ve);var xe=we.getParent;function Ee(e){if(we.isWindow(e)||9===e.nodeType)return null;var t,n=we.getDocument(e).body,r=we.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:xe(e);for(t=xe(e);t&&t!==n&&9!==t.nodeType;t=xe(t))if("static"!==(r=we.css(t,"position")))return t;return null}var Se=we.getParent;function Ce(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=Ee(e),o=we.getDocument(e),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"===we.css(r,"overflow")){if(r===a||r===u)break}else{var s=we.offset(r);s.left+=r.clientLeft,s.top+=r.clientTop,n.top=Math.max(n.top,s.top),n.right=Math.min(n.right,s.left+r.clientWidth),n.bottom=Math.min(n.bottom,s.top+r.clientHeight),n.left=Math.max(n.left,s.left)}r=Ee(r)}var l=null;we.isWindow(e)||9===e.nodeType||(l=e.style.position,"absolute"===we.css(e,"position")&&(e.style.position="fixed"));var c=we.getWindowScrollLeft(i),f=we.getWindowScrollTop(i),d=we.viewportWidth(i),p=we.viewportHeight(i),h=u.scrollWidth,v=u.scrollHeight,g=window.getComputedStyle(a);if("hidden"===g.overflowX&&(h=i.innerWidth),"hidden"===g.overflowY&&(v=i.innerHeight),e.style&&(e.style.position=l),t||function(e){if(we.isWindow(e)||9===e.nodeType)return!1;var t=we.getDocument(e),n=t.body,r=null;for(r=Se(e);r&&r!==n&&r!==t;r=Se(r))if("fixed"===we.css(r,"position"))return!0;return!1}(e))n.left=Math.max(n.left,c),n.top=Math.max(n.top,f),n.right=Math.min(n.right,c+d),n.bottom=Math.min(n.bottom,f+p);else{var y=Math.max(h,c+d);n.right=Math.min(n.right,y);var m=Math.max(v,f+p);n.bottom=Math.min(n.bottom,m)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Ae(e){var t,n,r;if(we.isWindow(e)||9===e.nodeType){var o=we.getWindow(e);t={left:we.getWindowScrollLeft(o),top:we.getWindowScrollTop(o)},n=we.viewportWidth(o),r=we.viewportHeight(o)}else t=we.offset(e),n=we.outerWidth(e),r=we.outerHeight(e);return t.width=n,t.height=r,t}function De(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,u=e.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 Oe(e,t,n,r,o){var i=De(t,n[1]),a=De(e,n[0]),u=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-u[0]+r[0]-o[0]),top:Math.round(e.top-u[1]+r[1]-o[1])}}function ke(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Te(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function Be(e,t,n){var r=[];return we.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function _e(e,t){return e[t]=-e[t],e}function Pe(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Fe(e,t){e[0]=Pe(e[0],t.width),e[1]=Pe(e[1],t.height)}function je(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,s=n.source||e;i=[].concat(i),a=[].concat(a);var l={},c=0,f=Ce(s,!(!(u=u||{})||!u.alwaysByViewport)),d=Ae(s);Fe(i,d),Fe(a,t);var p=Oe(d,t,o,i,a),h=we.merge(d,p);if(f&&(u.adjustX||u.adjustY)&&r){if(u.adjustX&&ke(p,d,f)){var v=Be(o,/[lr]/gi,{l:"r",r:"l"}),g=_e(i,0),y=_e(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Oe(d,t,v,g,y),d,f)||(c=1,o=v,i=g,a=y)}if(u.adjustY&&Te(p,d,f)){var m=Be(o,/[tb]/gi,{t:"b",b:"t"}),b=_e(i,1),w=_e(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Oe(d,t,m,b,w),d,f)||(c=1,o=m,i=b,a=w)}c&&(p=Oe(d,t,o,i,a),we.mix(h,p));var x=ke(p,d,f),E=Te(p,d,f);if(x||E){var S=o;x&&(S=Be(o,/[lr]/gi,{l:"r",r:"l"})),E&&(S=Be(o,/[tb]/gi,{t:"b",b:"t"})),o=S,i=n.offset||[0,0],a=n.targetOffset||[0,0]}l.adjustX=u.adjustX&&x,l.adjustY=u.adjustY&&E,(l.adjustX||l.adjustY)&&(h=function(e,t,n,r){var o=we.clone(e),i={width:t.width,height:t.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)),we.mix(o,i)}(p,d,f,l))}return h.width!==d.width&&we.css(s,"width",we.width(s)+h.width-d.width),h.height!==d.height&&we.css(s,"height",we.height(s)+h.height-d.height),we.offset(s,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:l}}function Ne(e,t,n){var r=n.target||t,o=Ae(r),i=!function(e,t){var n=Ce(e,t),r=Ae(e);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 je(e,o,n,i)}Ne.__getOffsetParent=Ee,Ne.__getVisibleRectForElement=Ce;var Ie=n(43210),Le=n(42467),Re=n(30981);var Me=n(43591);function ze(e,t){var n=null,r=null;var o=new Me.default((function(e){var o=(0,C.A)(e,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,u=i.height,s=Math.floor(a),l=Math.floor(u);n===s&&r===l||Promise.resolve().then((function(){t({width:s,height:l})})),n=s,r=l}}));return e&&o.observe(e),function(){o.disconnect()}}function He(e){return"function"!=typeof e?null:e()}function $e(e){return"object"===(0,_.A)(e)&&e?e:null}var Ve=function(e,t){var n=e.children,r=e.disabled,o=e.target,i=e.align,a=e.onAlign,u=e.monitorWindowResize,s=e.monitorBufferTime,l=void 0===s?0:s,c=d().useRef({}),f=d().useRef(),p=d().Children.only(n),h=d().useRef({});h.current.disabled=r,h.current.target=o,h.current.align=i,h.current.onAlign=a;var v=function(e,t){var n=d().useRef(!1),r=d().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()}),t);else{if(!1===e(a))return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,o()}]}((function(){var e=h.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign,i=f.current;if(!t&&n&&i){var a,u=He(n),s=$e(n);c.current.element=u,c.current.point=s,c.current.align=r;var l=document.activeElement;return u&&(0,Le.A)(u)?a=Ne(i,u,r):s&&(a=function(e,t,n){var r,o,i=we.getDocument(e),a=i.defaultView||i.parentWindow,u=we.getWindowScrollLeft(a),s=we.getWindowScrollTop(a),l=we.viewportWidth(a),c=we.viewportHeight(a),f={left:r="pageX"in t?t.pageX:u+t.clientX,top:o="pageY"in t?t.pageY:s+t.clientY,width:0,height:0},d=r>=0&&r<=u+l&&o>=0&&o<=s+c,p=[n.points[0],"cc"];return je(e,f,F(F({},n),{},{points:p}),d)}(i,s,r)),function(e,t){e!==document.activeElement&&(0,g.A)(t,e)&&"function"==typeof e.focus&&e.focus()}(l,i),o&&a&&o(i,a),!0}return!1}),l),y=(0,C.A)(v,2),w=y[0],x=y[1],E=d().useState(),S=(0,C.A)(E,2),A=S[0],D=S[1],O=d().useState(),k=(0,C.A)(O,2),T=k[0],B=k[1];return(0,Re.A)((function(){D(He(o)),B($e(o))})),d().useEffect((function(){var e,t;c.current.element===A&&((e=c.current.point)===(t=T)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&(0,Ie.A)(c.current.align,i)||w()})),d().useEffect((function(){return ze(f.current,w)}),[f.current]),d().useEffect((function(){return ze(A,w)}),[A]),d().useEffect((function(){r?x():w()}),[r]),d().useEffect((function(){if(u)return(0,b.A)(window,"resize",w).remove}),[u]),d().useEffect((function(){return function(){x()}}),[]),d().useImperativeHandle(t,(function(){return{forceAlign:function(){return w(!0)}}})),d().isValidElement(p)&&(p=d().cloneElement(p,{ref:(0,m.K4)(p.ref,f)})),p},Ue=d().forwardRef(Ve);Ue.displayName="Align";const We=Ue;function Ge(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
21
|
+
Ge=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),u=new B(r||[]);return o(a,"_invoke",{value:D(e,n,u)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",g={};function y(){}function m(){}function b(){}var w={};l(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(P([])));E&&E!==n&&r.call(E,a)&&(w=E);var S=b.prototype=y.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(o,i,a,u){var s=f(e[o],e,i);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==(0,_.A)(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):t.resolve(c).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function D(t,n,r){var o=d;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var s=O(u,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(t,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function O(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError((0,_.A)(t)+" is not iterable")}return m.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=l(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},C(A.prototype),l(A.prototype,u,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new A(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(S),l(S,s,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=P,B.prototype={constructor:B,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return u.type="throw",u.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!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 s=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}var qe=n(10467),Ke=n(1233),Ye=["measure","alignPre","align",null,"motion"];var Xe=f.forwardRef((function(e,t){var n=e.visible,i=e.prefixCls,a=e.className,u=e.style,s=e.children,l=e.zIndex,c=e.stretch,d=e.destroyPopupOnHide,p=e.forceRender,h=e.align,g=e.point,y=e.getRootDomNode,m=e.getClassNameFromAlign,b=e.onAlign,w=e.onMouseEnter,x=e.onMouseLeave,S=e.onMouseDown,A=e.onTouchStart,D=e.onClick,T=(0,f.useRef)(),B=(0,f.useRef)(),_=(0,f.useState)(),P=(0,C.A)(_,2),F=P[0],j=P[1],N=function(e){var t=f.useState({width:0,height:0}),n=(0,C.A)(t,2),r=n[0],o=n[1];return[f.useMemo((function(){var t={};if(e){var n=r.width,o=r.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,r]),function(e){var t=e.offsetWidth,n=e.offsetHeight,r=e.getBoundingClientRect(),i=r.width,a=r.height;Math.abs(t-i)<1&&Math.abs(n-a)<1&&(t=i,n=a),o({width:t,height:n})}]}(c),I=(0,C.A)(N,2),L=I[0],R=I[1];var M=function(e,t){var n=(0,Ke.A)(null),r=(0,C.A)(n,2),o=r[0],i=r[1],a=(0,f.useRef)();function u(e){i(e,!0)}function s(){v.A.cancel(a.current)}return(0,f.useEffect)((function(){u("measure")}),[e]),(0,f.useEffect)((function(){"measure"===o&&t(),o&&(a.current=(0,v.A)((0,qe.A)(Ge().mark((function e(){var t,n;return Ge().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Ye.indexOf(o),(n=Ye[t+1])&&-1!==t&&u(n);case 3:case"end":return e.stop()}}),e)})))))}),[o]),(0,f.useEffect)((function(){return function(){s()}}),[]),[o,function(e){s(),a.current=(0,v.A)((function(){u((function(e){switch(o){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){c&&R(y())})),z=(0,C.A)(M,2),H=z[0],$=z[1],V=(0,f.useState)(0),U=(0,C.A)(V,2),W=U[0],G=U[1],q=(0,f.useRef)();function K(){var e;null===(e=T.current)||void 0===e||e.forceAlign()}function Y(e,t){var n=m(t);F!==n&&j(n),G((function(e){return e+1})),"align"===H&&(null==b||b(e,t))}(0,Re.A)((function(){"alignPre"===H&&G(0)}),[H]),(0,Re.A)((function(){"align"===H&&(W<3?K():$((function(){var e;null===(e=q.current)||void 0===e||e.call(q)})))}),[W]);var X=(0,r.A)({},k(e));function Z(){return new Promise((function(e){q.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=X[e];X[e]=function(e,n){return $(),null==t?void 0:t(e,n)}})),f.useEffect((function(){X.motionName||"motion"!==H||$()}),[X.motionName,H]),f.useImperativeHandle(t,(function(){return{forceAlign:K,getElement:function(){return B.current}}}));var J=(0,r.A)((0,r.A)({},L),{},{zIndex:l,opacity:"motion"!==H&&"stable"!==H&&n?0:void 0,pointerEvents:n||"stable"===H?void 0:"none"},u),Q=!0;null==h||!h.points||"align"!==H&&"stable"!==H||(Q=!1);var ee=s;return f.Children.count(s)>1&&(ee=f.createElement("div",{className:"".concat(i,"-content")},s)),f.createElement(O.A,(0,o.A)({visible:n,ref:B,leavedClassName:"".concat(i,"-hidden")},X,{onAppearPrepare:Z,onEnterPrepare:Z,removeOnLeave:d,forceRender:p}),(function(e,t){var n=e.className,o=e.style,u=E()(i,a,F,n);return f.createElement(We,{target:g||y,key:"popup",ref:T,monitorWindowResize:!0,disabled:Q,align:h,onAlign:Y},f.createElement("div",{ref:t,className:u,onMouseEnter:w,onMouseLeave:x,onMouseDownCapture:S,onTouchStartCapture:A,onClick:D,style:(0,r.A)((0,r.A)({},o),J)},ee))}))}));Xe.displayName="PopupInner";const Ze=Xe;var Je=f.forwardRef((function(e,t){var n=e.prefixCls,i=e.visible,a=e.zIndex,u=e.children,s=e.mobile,l=(s=void 0===s?{}:s).popupClassName,c=s.popupStyle,d=s.popupMotion,p=void 0===d?{}:d,h=s.popupRender,v=e.onClick,g=f.useRef();f.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return g.current}}}));var y=(0,r.A)({zIndex:a},c),m=u;return f.Children.count(u)>1&&(m=f.createElement("div",{className:"".concat(n,"-content")},u)),h&&(m=h(m)),f.createElement(O.A,(0,o.A)({visible:i,ref:g,removeOnLeave:!0},p),(function(e,t){var o=e.className,i=e.style,a=E()(n,l,o);return f.createElement("div",{ref:t,className:a,onClick:v,style:(0,r.A)((0,r.A)({},i),y)},m)}))}));Je.displayName="MobilePopupInner";const Qe=Je;var et=["visible","mobile"],tt=f.forwardRef((function(e,t){var n=e.visible,i=e.mobile,a=(0,A.A)(e,et),u=(0,f.useState)(n),s=(0,C.A)(u,2),l=s[0],c=s[1],d=(0,f.useState)(!1),p=(0,C.A)(d,2),h=p[0],v=p[1],g=(0,r.A)((0,r.A)({},a),{},{visible:l});(0,f.useEffect)((function(){c(n),n&&i&&v((0,D.A)())}),[n,i]);var y=h?f.createElement(Qe,(0,o.A)({},g,{mobile:i,ref:t})):f.createElement(Ze,(0,o.A)({},g,{ref:t}));return f.createElement("div",null,f.createElement(T,g),y)}));tt.displayName="Popup";const nt=tt;const rt=f.createContext(null);function ot(){}function it(){return""}function at(e){return e?e.ownerDocument:window.document}var ut=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const st=(lt=w.A,ct=function(e){(0,s.A)(n,e);var t=(0,l.A)(n);function n(e){var r,a;return(0,i.A)(this,n),r=t.call(this,e),(0,c.A)((0,u.A)(r),"popupRef",f.createRef()),(0,c.A)((0,u.A)(r),"triggerRef",f.createRef()),(0,c.A)((0,u.A)(r),"portalContainer",void 0),(0,c.A)((0,u.A)(r),"attachId",void 0),(0,c.A)((0,u.A)(r),"clickOutsideHandler",void 0),(0,c.A)((0,u.A)(r),"touchOutsideHandler",void 0),(0,c.A)((0,u.A)(r),"contextMenuOutsideHandler1",void 0),(0,c.A)((0,u.A)(r),"contextMenuOutsideHandler2",void 0),(0,c.A)((0,u.A)(r),"mouseDownTimeout",void 0),(0,c.A)((0,u.A)(r),"focusTime",void 0),(0,c.A)((0,u.A)(r),"preClickTime",void 0),(0,c.A)((0,u.A)(r),"preTouchTime",void 0),(0,c.A)((0,u.A)(r),"delayTimer",void 0),(0,c.A)((0,u.A)(r),"hasPopupMouseDown",void 0),(0,c.A)((0,u.A)(r),"onMouseEnter",(function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)})),(0,c.A)((0,u.A)(r),"onMouseMove",(function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)})),(0,c.A)((0,u.A)(r),"onMouseLeave",(function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,c.A)((0,u.A)(r),"onPopupMouseEnter",(function(){r.clearDelayTimer()})),(0,c.A)((0,u.A)(r),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,g.A)(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,c.A)((0,u.A)(r),"onFocus",(function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))})),(0,c.A)((0,u.A)(r),"onMouseDown",(function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()})),(0,c.A)((0,u.A)(r),"onTouchStart",(function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()})),(0,c.A)((0,u.A)(r),"onBlur",(function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)})),(0,c.A)((0,u.A)(r),"onContextMenu",(function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)})),(0,c.A)((0,u.A)(r),"onContextMenuClose",(function(){r.isContextMenuToShow()&&r.close()})),(0,c.A)((0,u.A)(r),"onClick",(function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)})),(0,c.A)((0,u.A)(r),"onPopupMouseDown",(function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)})),(0,c.A)((0,u.A)(r),"onDocumentClick",(function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),o=r.getPopupDomNode();(0,g.A)(n,t)&&!r.isContextMenuOnly()||(0,g.A)(o,t)||r.hasPopupMouseDown||r.close()}})),(0,c.A)((0,u.A)(r),"getRootDomNode",(function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=(0,y.A)(r.triggerRef.current);if(t)return t}catch(e){}return h().findDOMNode((0,u.A)(r))})),(0,c.A)((0,u.A)(r),"getPopupClassNameFromAlign",(function(e){var t=[],n=r.props,o=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,u=n.alignPoint,s=n.getPopupClassNameFromAlign;return o&&i&&t.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var u=i[a];if(S(e[u].points,o,r))return"".concat(t,"-placement-").concat(u)}return""}(i,a,e,u)),s&&t.push(s(e)),t.join(" ")})),(0,c.A)((0,u.A)(r),"getComponent",(function(){var e=r.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,a=e.onPopupAlign,u=e.popupMotion,s=e.popupAnimation,l=e.popupTransitionName,c=e.popupStyle,d=e.mask,p=e.maskAnimation,h=e.maskTransitionName,v=e.maskMotion,g=e.zIndex,y=e.popup,m=e.stretch,b=e.alignPoint,w=e.mobile,x=e.forceRender,E=e.onPopupClick,S=r.state,C=S.popupVisible,A=S.point,D=r.getPopupAlign(),O={};return r.isMouseEnterToShow()&&(O.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(O.onMouseLeave=r.onPopupMouseLeave),O.onMouseDown=r.onPopupMouseDown,O.onTouchStart=r.onPopupMouseDown,f.createElement(nt,(0,o.A)({prefixCls:t,destroyPopupOnHide:n,visible:C,point:b&&A,className:i,align:D,onAlign:a,animation:s,getClassNameFromAlign:r.getPopupClassNameFromAlign},O,{stretch:m,getRootDomNode:r.getRootDomNode,style:c,mask:d,zIndex:g,transitionName:l,maskAnimation:p,maskTransitionName:h,maskMotion:v,ref:r.popupRef,motion:u,mobile:w,forceRender:x,onClick:E}),"function"==typeof y?y():y)})),(0,c.A)((0,u.A)(r),"attachParent",(function(e){v.A.cancel(r.attachId);var t,n=r.props,o=n.getPopupContainer,i=n.getDocument,a=r.getRootDomNode();o?(a||0===o.length)&&(t=o(a)):t=i(r.getRootDomNode()).body,t?t.appendChild(e):r.attachId=(0,v.A)((function(){r.attachParent(e)}))})),(0,c.A)((0,u.A)(r),"getContainer",(function(){if(!r.portalContainer){var e=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",r.portalContainer=e}return r.attachParent(r.portalContainer),r.portalContainer})),(0,c.A)((0,u.A)(r),"setPoint",(function(e){r.props.alignPoint&&e&&r.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,c.A)((0,u.A)(r),"handlePortalUpdate",(function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)})),(0,c.A)((0,u.A)(r),"triggerContextValue",{onPopupMouseDown:r.onPopupMouseDown}),a="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,r.state={prevPopupVisible:a,popupVisible:a},ut.forEach((function(e){r["fire".concat(e)]=function(t){r.fireEvents(e,t)}})),r}return(0,a.A)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,b.A)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,b.A)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,b.A)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,b.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 e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,n){var o=e[t]||{};return(0,r.A)((0,r.A)({},o),n)}(o,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,o=t.forceRender,i=t.alignPoint,a=t.className,u=t.autoDestroy,s=f.Children.only(n),l={key:"trigger"};this.isContextMenuToShow()?l.onContextMenu=this.onContextMenu:l.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(l.onClick=this.onClick,l.onMouseDown=this.onMouseDown,l.onTouchStart=this.onTouchStart):(l.onClick=this.createTwoChains("onClick"),l.onMouseDown=this.createTwoChains("onMouseDown"),l.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(l.onMouseEnter=this.onMouseEnter,i&&(l.onMouseMove=this.onMouseMove)):l.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?l.onMouseLeave=this.onMouseLeave:l.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(l.onFocus=this.onFocus,l.onBlur=this.onBlur):(l.onFocus=this.createTwoChains("onFocus"),l.onBlur=this.createTwoChains("onBlur"));var c=E()(s&&s.props&&s.props.className,a);c&&(l.className=c);var d=(0,r.A)({},l);(0,m.f3)(s)&&(d.ref=(0,m.K4)(this.triggerRef,s.ref));var p,h=f.cloneElement(s,d);return(e||this.popupRef.current||o)&&(p=f.createElement(lt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&u&&(p=null),f.createElement(rt.Provider,{value:this.triggerContextValue},h,p)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),n}(f.Component),(0,c.A)(ct,"contextType",rt),(0,c.A)(ct,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:it,getDocument:at,onPopupVisibleChange:ot,afterPopupVisibleChange:ot,onPopupAlign:ot,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),ct);var lt,ct},69916:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(69514),o=n.n(r);function i(e,t,n,r){var i=o().unstable_batchedUpdates?function(e){o().unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}},20998:(e,t,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>r})},54808:(e,t,n)=>{"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{A:()=>r})},66588:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(39155),o=n.n(r),i=n(69514),a=n.n(i);function u(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof o().Component?a().findDOMNode(e):null}},42467:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},88822:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(39155),o=n(69514),i=n.n(o),a=n(20998);const u=(0,r.forwardRef)((function(e,t){var n=e.didUpdate,o=e.getContainer,u=e.children,s=(0,r.useRef)(),l=(0,r.useRef)();(0,r.useImperativeHandle)(t,(function(){return{}}));var c=(0,r.useRef)(!1);return!c.current&&(0,a.A)()&&(l.current=o(),s.current=l.current.parentNode,c.current=!0),(0,r.useEffect)((function(){null==n||n(e)})),(0,r.useEffect)((function(){return null===l.current.parentNode&&null!==s.current&&s.current.appendChild(l.current),function(){var e;null===(e=l.current)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(l.current)}}),[]),l.current?i().createPortal(u,l.current):null}))},30981:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(39155),o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect,i=function(e,t){var n=r.useRef(!0);o((function(){return e(n.current)}),t),o((function(){return n.current=!1,function(){n.current=!0}}),[])};const a=i},28104:(e,t,n)=>{"use strict";n(39155)},1233:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3453),o=n(39155);function i(e){var t=o.useRef(!1),n=o.useState(e),i=(0,r.A)(n,2),a=i[0],u=i[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,n){n&&t.current||u(e)}]}},43210:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284),o=n(68210);const i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=i.has(t);if((0,o.Ay)(!s,"Warning: There may be circular references"),s)return!1;if(t===a)return!0;if(n&&u>1)return!1;i.add(t);var l=u+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],a[c],l))return!1;return!0}if(t&&a&&"object"===(0,r.A)(t)&&"object"===(0,r.A)(a)){var f=Object.keys(t);return f.length===Object.keys(a).length&&f.every((function(n){return e(t[n],a[n],l)}))}return!1}(e,t)}},68430:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}},25371:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map;function u(e){a.delete(e)}var s=function(e){var t=i+=1;return function n(o){if(0===o)u(t),e();else{var i=r((function(){n(o-1)}));a.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};s.cancel=function(e){var t=a.get(e);return u(e),o(t)};const l=s},8719:(e,t,n)=>{"use strict";n.d(t,{K4:()=>a,Xf:()=>i,f3:()=>u});var r=n(82284),o=(n(39155),n(44363));n(28104);function i(e,t){"function"==typeof e?e(t):"object"===(0,r.A)(e)&&e&&"current"in e&&(e.current=t)}function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){i(t,e)}))}}function u(e){var t,n,r=(0,o.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===o.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===o.ForwardRef)}},68210:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l});var r={},o=[];function i(e,t){}function a(e,t){}function u(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function s(e,t){u(i,e,t)}s.preMessage=function(e){o.push(e)},s.resetWarned=function(){r={}},s.noteOnce=function(e,t){u(a,e,t)};const l=s},22799:(e,t)=>{"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"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");
|
|
22
22
|
/**
|
|
23
23
|
* @license React
|
|
24
24
|
* react-is.production.min.js
|
|
@@ -27,7 +27,7 @@ Ge=function(){return t};var e,t={},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 y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case u:case a:case d:case p:return e;default:switch(e=e&&e.$$typeof){case c:case l:case f:case v:case h:case s:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=f,t.isMemo=function(e){return y(e)===h}},
|
|
30
|
+
*/function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case u:case a:case d:case p:return e;default:switch(e=e&&e.$$typeof){case c:case l:case f:case v:case h:case s:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=f,t.isMemo=function(e){return y(e)===h}},44363:(e,t,n)=>{"use strict";e.exports=n(22799)},21020:(e,t,n)=>{"use strict";
|
|
31
31
|
/** @license React v17.0.2
|
|
32
32
|
* react-jsx-runtime.production.min.js
|
|
33
33
|
*
|