mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
1 line
69 KiB
JavaScript
Vendored
1 line
69 KiB
JavaScript
Vendored
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2414],{98787:function(t,e,n){n.d(e,{E:function(){return r},Y:function(){return i}});var o=n(93355),r=(0,o.b)("success","processing","error","default","warning"),i=(0,o.b)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},98082:function(t,e,n){var o=n(97685),r=n(67294),i=n(31808);e.Z=function(){var t=r.useState(!1),e=(0,o.Z)(t,2),n=e[0],a=e[1];return r.useEffect(function(){a((0,i.fk)())},[]),n}},33603:function(t,e,n){n.d(e,{mL:function(){return s},q0:function(){return u}});var o=n(93355),r=function(){return{height:0,opacity:0}},i=function(t){return{height:t.scrollHeight,opacity:1}},a=function(t,e){return(null==e?void 0:e.deadline)===!0||"height"===e.propertyName};(0,o.b)("bottomLeft","bottomRight","topLeft","topRight");var u=function(t){return void 0!==t&&("topLeft"===t||"topRight"===t)?"slide-down":"slide-up"},s=function(t,e,n){return void 0!==n?n:"".concat(t,"-").concat(e)};e.ZP={motionName:"ant-motion-collapse",onAppearStart:r,onEnterStart:r,onAppearActive:i,onEnterActive:i,onLeaveStart:function(t){return{height:t?t.offsetHeight:0}},onLeaveActive:r,onAppearEnd:a,onEnterEnd:a,onLeaveEnd:a,motionDeadline:500}},80636:function(t,e,n){n.d(e,{Z:function(){return c}});var o=n(87462),r=n(43159),i={adjustX:1,adjustY:1},a={adjustX:0,adjustY:0},u=[0,0];function s(t){return"boolean"==typeof t?t?i:a:(0,o.Z)((0,o.Z)({},a),t)}function c(t){var e=t.arrowWidth,n=void 0===e?4:e,i=t.horizontalArrowShift,a=void 0===i?16:i,c=t.verticalArrowShift,l=void 0===c?8:c,f=t.autoAdjustOverflow,p=t.arrowPointAtCenter,d={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(a+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(l+n)]},topRight:{points:["br","tc"],offset:[a+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(l+n)]},bottomRight:{points:["tr","bc"],offset:[a+n,4]},rightBottom:{points:["bl","cr"],offset:[4,l+n]},bottomLeft:{points:["tl","bc"],offset:[-(a+n),4]},leftBottom:{points:["br","cl"],offset:[-4,l+n]}};return Object.keys(d).forEach(function(t){d[t]=p?(0,o.Z)((0,o.Z)({},d[t]),{overflow:s(f),targetOffset:u}):(0,o.Z)((0,o.Z)({},r.C[t]),{overflow:s(f)}),d[t].ignoreShake=!0}),d}},24308:function(t,e,n){n.d(e,{c4:function(){return i}});var o=n(4942),r=n(87462),i=["xxl","xl","lg","md","sm","xs"],a={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},u=new Map,s=-1,c={};e.ZP={matchHandlers:{},dispatch:function(t){return c=t,u.forEach(function(t){return t(c)}),u.size>=1},subscribe:function(t){return u.size||this.register(),s+=1,u.set(s,t),t(c),s},unsubscribe:function(t){u.delete(t),u.size||this.unregister()},unregister:function(){var t=this;Object.keys(a).forEach(function(e){var n=a[e],o=t.matchHandlers[n];null==o||o.mql.removeListener(null==o?void 0:o.listener)}),u.clear()},register:function(){var t=this;Object.keys(a).forEach(function(e){var n=a[e],i=function(n){var i=n.matches;t.dispatch((0,r.Z)((0,r.Z)({},c),(0,o.Z)({},e,i)))},u=window.matchMedia(n);u.addListener(i),t.matchHandlers[n]={mql:u,listener:i},i(u)})}}},31808:function(t,e,n){n.d(e,{fk:function(){return a},jD:function(){return i}});var o,r=n(98924),i=function(){return(0,r.Z)()&&window.document.documentElement},a=function(){if(!i())return!1;if(void 0!==o)return o;var t=document.createElement("div");return t.style.display="flex",t.style.flexDirection="column",t.style.rowGap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),o=1===t.scrollHeight,document.body.removeChild(t),o}},99134:function(t,e,n){var o=(0,n(67294).createContext)({});e.Z=o},21584:function(t,e,n){var o=n(4942),r=n(87462),i=n(71002),a=n(94184),u=n.n(a),s=n(67294),c=n(53124),l=n(99134),f=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&0>e.indexOf(o)&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(t);r<o.length;r++)0>e.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]]);return n},p=["xs","sm","md","lg","xl","xxl"],d=s.forwardRef(function(t,e){var n,a=s.useContext(c.E_),d=a.getPrefixCls,h=a.direction,v=s.useContext(l.Z),m=v.gutter,g=v.wrap,y=v.supportFlexGap,b=t.prefixCls,w=t.span,Z=t.order,x=t.offset,C=t.push,E=t.pull,O=t.className,T=t.children,k=t.flex,M=t.style,P=f(t,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),_=d("col",b),S={};p.forEach(function(e){var n,a={},u=t[e];"number"==typeof u?a.span=u:"object"===(0,i.Z)(u)&&(a=u||{}),delete P[e],S=(0,r.Z)((0,r.Z)({},S),(n={},(0,o.Z)(n,"".concat(_,"-").concat(e,"-").concat(a.span),void 0!==a.span),(0,o.Z)(n,"".concat(_,"-").concat(e,"-order-").concat(a.order),a.order||0===a.order),(0,o.Z)(n,"".concat(_,"-").concat(e,"-offset-").concat(a.offset),a.offset||0===a.offset),(0,o.Z)(n,"".concat(_,"-").concat(e,"-push-").concat(a.push),a.push||0===a.push),(0,o.Z)(n,"".concat(_,"-").concat(e,"-pull-").concat(a.pull),a.pull||0===a.pull),(0,o.Z)(n,"".concat(_,"-rtl"),"rtl"===h),n))});var D=u()(_,(n={},(0,o.Z)(n,"".concat(_,"-").concat(w),void 0!==w),(0,o.Z)(n,"".concat(_,"-order-").concat(Z),Z),(0,o.Z)(n,"".concat(_,"-offset-").concat(x),x),(0,o.Z)(n,"".concat(_,"-push-").concat(C),C),(0,o.Z)(n,"".concat(_,"-pull-").concat(E),E),n),O,S),R={};if(m&&m[0]>0){var N=m[0]/2;R.paddingLeft=N,R.paddingRight=N}if(m&&m[1]>0&&!y){var A=m[1]/2;R.paddingTop=A,R.paddingBottom=A}return k&&(R.flex="number"==typeof k?"".concat(k," ").concat(k," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(k)?"0 0 ".concat(k):k,!1!==g||R.minWidth||(R.minWidth=0)),s.createElement("div",(0,r.Z)({},P,{style:(0,r.Z)((0,r.Z)({},R),M),className:D,ref:e}),T)});e.Z=d},92820:function(t,e,n){var o=n(87462),r=n(4942),i=n(71002),a=n(97685),u=n(94184),s=n.n(u),c=n(67294),l=n(53124),f=n(98082),p=n(24308),d=n(93355),h=n(99134),v=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&0>e.indexOf(o)&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(t);r<o.length;r++)0>e.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]]);return n};function m(t,e){var n=c.useState("string"==typeof t?t:""),o=(0,a.Z)(n,2),r=o[0],u=o[1],s=function(){if("string"==typeof t&&u(t),"object"===(0,i.Z)(t))for(var n=0;n<p.c4.length;n++){var o=p.c4[n];if(e[o]){var r=t[o];if(void 0!==r){u(r);return}}}};return c.useEffect(function(){s()},[JSON.stringify(t),e]),r}(0,d.b)("top","middle","bottom","stretch"),(0,d.b)("start","end","center","space-around","space-between","space-evenly");var g=c.forwardRef(function(t,e){var n,u,d=t.prefixCls,g=t.justify,y=t.align,b=t.className,w=t.style,Z=t.children,x=t.gutter,C=void 0===x?0:x,E=t.wrap,O=v(t,["prefixCls","justify","align","className","style","children","gutter","wrap"]),T=c.useContext(l.E_),k=T.getPrefixCls,M=T.direction,P=c.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),_=(0,a.Z)(P,2),S=_[0],D=_[1],R=c.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),N=(0,a.Z)(R,2),A=N[0],L=N[1],j=m(y,A),H=m(g,A),V=(0,f.Z)(),W=c.useRef(C);c.useEffect(function(){var t=p.ZP.subscribe(function(t){L(t);var e=W.current||0;(!Array.isArray(e)&&"object"===(0,i.Z)(e)||Array.isArray(e)&&("object"===(0,i.Z)(e[0])||"object"===(0,i.Z)(e[1])))&&D(t)});return function(){return p.ZP.unsubscribe(t)}},[]);var z=k("row",d),B=(n=[void 0,void 0],(Array.isArray(C)?C:[C,void 0]).forEach(function(t,e){if("object"===(0,i.Z)(t))for(var o=0;o<p.c4.length;o++){var r=p.c4[o];if(S[r]&&void 0!==t[r]){n[e]=t[r];break}}else n[e]=t}),n),I=s()(z,(u={},(0,r.Z)(u,"".concat(z,"-no-wrap"),!1===E),(0,r.Z)(u,"".concat(z,"-").concat(H),H),(0,r.Z)(u,"".concat(z,"-").concat(j),j),(0,r.Z)(u,"".concat(z,"-rtl"),"rtl"===M),u),b),F={},Y=null!=B[0]&&B[0]>0?-(B[0]/2):void 0,X=null!=B[1]&&B[1]>0?-(B[1]/2):void 0;if(Y&&(F.marginLeft=Y,F.marginRight=Y),V){var G=(0,a.Z)(B,2);F.rowGap=G[1]}else X&&(F.marginTop=X,F.marginBottom=X);var q=(0,a.Z)(B,2),U=q[0],$=q[1],Q=c.useMemo(function(){return{gutter:[U,$],wrap:E,supportFlexGap:V}},[U,$,E,V]);return c.createElement(h.Z.Provider,{value:Q},c.createElement("div",(0,o.Z)({},O,{className:I,style:(0,o.Z)((0,o.Z)({},F),w),ref:e}),Z))});e.Z=g},94199:function(t,e,n){var o=n(4942),r=n(97685),i=n(87462),a=n(94184),u=n.n(a),s=n(43763),c=n(21770),l=n(67294),f=n(53124),p=n(98787),d=n(33603),h=n(80636),v=n(96159),m=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&0>e.indexOf(o)&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(t);r<o.length;r++)0>e.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]]);return n},g=function(t,e){var n={},o=(0,i.Z)({},t);return e.forEach(function(e){t&&e in t&&(n[e]=t[e],delete o[e])}),{picked:n,omitted:o}},y=new RegExp("^(".concat(p.Y.join("|"),")(-inverse)?$")),b=l.forwardRef(function(t,e){var n,a,p,b=l.useContext(f.E_),w=b.getPopupContainer,Z=b.getPrefixCls,x=b.direction,C=(0,c.Z)(!1,{value:void 0!==t.open?t.open:t.visible,defaultValue:void 0!==t.defaultOpen?t.defaultOpen:t.defaultVisible}),E=(0,r.Z)(C,2),O=E[0],T=E[1],k=function(){var e=t.title,n=t.overlay;return!e&&!n&&0!==e},M=function(){var e=t.builtinPlacements,n=t.arrowPointAtCenter,o=t.autoAdjustOverflow;return e||(0,h.Z)({arrowPointAtCenter:void 0!==n&&n,autoAdjustOverflow:void 0===o||o})},P=t.getPopupContainer,_=t.placement,S=t.mouseEnterDelay,D=t.mouseLeaveDelay,R=m(t,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay"]),N=t.prefixCls,A=t.openClassName,L=t.getTooltipContainer,j=t.overlayClassName,H=t.color,V=t.overlayInnerStyle,W=t.children,z=Z("tooltip",N),B=Z(),I=O;!("open"in t)&&!("visible"in t)&&k()&&(I=!1);var F=function(t,e){var n=t.type;if((!0===n.__ANT_BUTTON||"button"===t.type)&&t.props.disabled||!0===n.__ANT_SWITCH&&(t.props.disabled||t.props.loading)||!0===n.__ANT_RADIO&&t.props.disabled){var o=g(t.props.style,["position","left","right","top","bottom","float","display","zIndex"]),r=o.picked,a=o.omitted,s=(0,i.Z)((0,i.Z)({display:"inline-block"},r),{cursor:"not-allowed",width:t.props.block?"100%":void 0}),c=(0,i.Z)((0,i.Z)({},a),{pointerEvents:"none"}),f=(0,v.Tm)(t,{style:c,className:null});return l.createElement("span",{style:s,className:u()(t.props.className,"".concat(e,"-disabled-compatible-wrapper"))},f)}return t}((0,v.l$)(W)&&!(0,v.M2)(W)?W:l.createElement("span",null,W),z),Y=F.props,X=Y.className&&"string"!=typeof Y.className?Y.className:u()(Y.className,(0,o.Z)({},A||"".concat(z,"-open"),!0)),G=u()(j,(p={},(0,o.Z)(p,"".concat(z,"-rtl"),"rtl"===x),(0,o.Z)(p,"".concat(z,"-").concat(H),H&&y.test(H)),p)),q=V,U={};return H&&!y.test(H)&&(q=(0,i.Z)((0,i.Z)({},V),{background:H}),U={"--antd-arrow-background-color":H}),l.createElement(s.default,(0,i.Z)({},R,{placement:void 0===_?"top":_,mouseEnterDelay:void 0===S?.1:S,mouseLeaveDelay:void 0===D?.1:D,prefixCls:z,overlayClassName:G,getTooltipContainer:P||L||w,ref:e,builtinPlacements:M(),overlay:(n=t.title,a=t.overlay,0===n?n:a||n||""),visible:I,onVisibleChange:function(e){var n,o;T(!k()&&e),k()||(null===(n=t.onOpenChange)||void 0===n||n.call(t,e),null===(o=t.onVisibleChange)||void 0===o||o.call(t,e))},onPopupAlign:function(t,e){var n=M(),o=Object.keys(n).find(function(t){var o,r;return n[t].points[0]===(null===(o=e.points)||void 0===o?void 0:o[0])&&n[t].points[1]===(null===(r=e.points)||void 0===r?void 0:r[1])});if(o){var r=t.getBoundingClientRect(),i={top:"50%",left:"50%"};/top|Bottom/.test(o)?i.top="".concat(r.height-e.offset[1],"px"):/Top|bottom/.test(o)&&(i.top="".concat(-e.offset[1],"px")),/left|Right/.test(o)?i.left="".concat(r.width-e.offset[0],"px"):/right|Left/.test(o)&&(i.left="".concat(-e.offset[0],"px")),t.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayInnerStyle:q,arrowContent:l.createElement("span",{className:"".concat(z,"-arrow-content"),style:U}),motion:{motionName:(0,d.mL)(B,"zoom-big-fast",t.transitionName),motionDeadline:1e3}}),I?(0,v.Tm)(F,{className:X}):F)});e.Z=b},48555:function(t,e,n){n.r(e),n.d(e,{_rs:function(){return p},default:function(){return Z}});var o=n(87462),r=n(67294),i=n(50344);n(80334);var a=n(1413),u=n(42550),s=n(34203),c=n(91033),l=new Map,f=new c.Z(function(t){t.forEach(function(t){var e,n=t.target;null===(e=l.get(n))||void 0===e||e.forEach(function(t){return t(n)})})}),p=null,d=n(15671),h=n(43144),v=n(32531),m=n(73568),g=function(t){(0,v.Z)(n,t);var e=(0,m.Z)(n);function n(){return(0,d.Z)(this,n),e.apply(this,arguments)}return(0,h.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component),y=r.createContext(null),b=r.forwardRef(function(t,e){var n=t.children,o=t.disabled,i=r.useRef(null),c=r.useRef(null),p=r.useContext(y),d="function"==typeof n,h=d?n(i):n,v=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),m=!d&&r.isValidElement(h)&&(0,u.Yr)(h),b=m?h.ref:null,w=r.useMemo(function(){return(0,u.sQ)(b,i)},[b,i]),Z=function(){return(0,s.Z)(i.current)||(0,s.Z)(c.current)};r.useImperativeHandle(e,function(){return Z()});var x=r.useRef(t);x.current=t;var C=r.useCallback(function(t){var e=x.current,n=e.onResize,o=e.data,r=t.getBoundingClientRect(),i=r.width,u=r.height,s=t.offsetWidth,c=t.offsetHeight,l=Math.floor(i),f=Math.floor(u);if(v.current.width!==l||v.current.height!==f||v.current.offsetWidth!==s||v.current.offsetHeight!==c){var d={width:l,height:f,offsetWidth:s,offsetHeight:c};v.current=d;var h=(0,a.Z)((0,a.Z)({},d),{},{offsetWidth:s===Math.round(i)?i:s,offsetHeight:c===Math.round(u)?u:c});null==p||p(h,t,o),n&&Promise.resolve().then(function(){n(h,t)})}},[]);return r.useEffect(function(){var t=Z();return t&&!o&&(l.has(t)||(l.set(t,new Set),f.observe(t)),l.get(t).add(C)),function(){l.has(t)&&(l.get(t).delete(C),l.get(t).size||(f.unobserve(t),l.delete(t)))}},[i.current,o]),r.createElement(g,{ref:c},m?r.cloneElement(h,{ref:w}):h)}),w=r.forwardRef(function(t,e){var n=t.children;return("function"==typeof n?[n]:(0,i.Z)(n)).map(function(n,i){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return r.createElement(b,(0,o.Z)({},t,{key:a,ref:0===i?e:void 0}),n)})});w.Collection=function(t){var e=t.children,n=t.onBatchResize,o=r.useRef(0),i=r.useRef([]),a=r.useContext(y),u=r.useCallback(function(t,e,r){o.current+=1;var u=o.current;i.current.push({size:t,element:e,data:r}),Promise.resolve().then(function(){u===o.current&&(null==n||n(i.current),i.current=[])}),null==a||a(t,e,r)},[n,a]);return r.createElement(y.Provider,{value:u},e)};var Z=w},43763:function(t,e,n){n.r(e),n.d(e,{Popup:function(){return p},default:function(){return d}});var o=n(87462),r=n(71002),i=n(1413),a=n(45987),u=n(67294),s=n(81263),c=n(43159),l=n(94184),f=n.n(l);function p(t){var e=t.showArrow,n=t.arrowContent,o=t.children,r=t.prefixCls,i=t.id,a=t.overlayInnerStyle,s=t.className,c=t.style;return u.createElement("div",{className:f()("".concat(r,"-content"),s),style:c},!1!==e&&u.createElement("div",{className:"".concat(r,"-arrow"),key:"arrow"},n),u.createElement("div",{className:"".concat(r,"-inner"),id:i,role:"tooltip",style:a},"function"==typeof o?o():o))}var d=(0,u.forwardRef)(function(t,e){var n=t.overlayClassName,l=t.trigger,f=t.mouseEnterDelay,d=t.mouseLeaveDelay,h=t.overlayStyle,v=t.prefixCls,m=void 0===v?"rc-tooltip":v,g=t.children,y=t.onVisibleChange,b=t.afterVisibleChange,w=t.transitionName,Z=t.animation,x=t.motion,C=t.placement,E=t.align,O=t.destroyTooltipOnHide,T=void 0!==O&&O,k=t.defaultVisible,M=t.getTooltipContainer,P=t.overlayInnerStyle,_=t.arrowContent,S=t.overlay,D=t.id,R=t.showArrow,N=(0,a.Z)(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),A=(0,u.useRef)(null);(0,u.useImperativeHandle)(e,function(){return A.current});var L=(0,i.Z)({},N);"visible"in t&&(L.popupVisible=t.visible);var j=!1,H=!1;if("boolean"==typeof T)j=T;else if(T&&"object"===(0,r.Z)(T)){var V=T.keepParent;j=!0===V,H=!1===V}return u.createElement(s.Z,(0,o.Z)({popupClassName:n,prefixCls:m,popup:function(){return u.createElement(p,{showArrow:R,arrowContent:_,key:"content",prefixCls:m,id:D,overlayInnerStyle:P},S)},action:void 0===l?["hover"]:l,builtinPlacements:c.C,popupPlacement:void 0===C?"right":C,ref:A,popupAlign:void 0===E?{}:E,getPopupContainer:M,onPopupVisibleChange:y,afterPopupVisibleChange:b,popupTransitionName:w,popupAnimation:Z,popupMotion:x,defaultPopupVisible:k,destroyPopupOnHide:j,autoDestroy:H,mouseLeaveDelay:void 0===d?.1:d,popupStyle:h,mouseEnterDelay:void 0===f?0:f},L),g)})},43159:function(t,e,n){n.d(e,{C:function(){return i}});var o={adjustX:1,adjustY:1},r=[0,0],i={left:{points:["cr","cl"],overflow:o,offset:[-4,0],targetOffset:r},right:{points:["cl","cr"],overflow:o,offset:[4,0],targetOffset:r},top:{points:["bc","tc"],overflow:o,offset:[0,-4],targetOffset:r},bottom:{points:["tc","bc"],overflow:o,offset:[0,4],targetOffset:r},topLeft:{points:["bl","tl"],overflow:o,offset:[0,-4],targetOffset:r},leftTop:{points:["tr","tl"],overflow:o,offset:[-4,0],targetOffset:r},topRight:{points:["br","tr"],overflow:o,offset:[0,-4],targetOffset:r},rightTop:{points:["tl","tr"],overflow:o,offset:[4,0],targetOffset:r},bottomRight:{points:["tr","br"],overflow:o,offset:[0,4],targetOffset:r},rightBottom:{points:["bl","br"],overflow:o,offset:[4,0],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:o,offset:[0,4],targetOffset:r},leftBottom:{points:["br","bl"],overflow:o,offset:[-4,0],targetOffset:r}}},81263:function(t,e,n){n.d(e,{Z:function(){return tQ}});var o,r,i,a=n(1413),u=n(87462),s=n(15671),c=n(43144),l=n(97326),f=n(32531),p=n(73568),d=n(4942),h=n(67294),v=n(73935),m=n(75164),g=n(94999),y=n(34203),b=n(42550),w=n(64019),Z=n(98924),x=(0,h.forwardRef)(function(t,e){var n=t.didUpdate,o=t.getContainer,r=t.children,i=(0,h.useRef)(),a=(0,h.useRef)();(0,h.useImperativeHandle)(e,function(){return{}});var u=(0,h.useRef)(!1);return!u.current&&(0,Z.Z)()&&(a.current=o(),i.current=a.current.parentNode,u.current=!0),(0,h.useEffect)(function(){null==n||n(t)}),(0,h.useEffect)(function(){return null===a.current.parentNode&&null!==i.current&&i.current.appendChild(a.current),function(){var t,e;null===(t=a.current)||void 0===t||null===(e=t.parentNode)||void 0===e||e.removeChild(a.current)}},[]),a.current?v.createPortal(r,a.current):null}),C=n(94184),E=n.n(C),O=n(97685),T=n(45987),k=n(31131),M=n(82225);function P(t){var e=t.prefixCls,n=t.motion,o=t.animation,r=t.transitionName;return n||(o?{motionName:"".concat(e,"-").concat(o)}:r?{motionName:r}:null)}function _(t){var e=t.prefixCls,n=t.visible,o=t.zIndex,r=t.mask,i=t.maskMotion,s=t.maskAnimation,c=t.maskTransitionName;if(!r)return null;var l={};return(i||c||s)&&(l=(0,a.Z)({motionAppear:!0},P({motion:i,prefixCls:e,transitionName:c,animation:s}))),h.createElement(M.default,(0,u.Z)({},l,{visible:n,removeOnLeave:!0}),function(t){var n=t.className;return h.createElement("div",{style:{zIndex:o},className:E()("".concat(e,"-mask"),n)})})}var S=n(71002);function D(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function R(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D(Object(n),!0).forEach(function(e){var o,r;o=t,r=n[e],e in o?Object.defineProperty(o,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function N(t){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var A={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function L(){if(void 0!==r)return r;r="";var t=document.createElement("p").style;for(var e in A)e+"Transform" in t&&(r=e);return r}function j(){return L()?"".concat(L(),"TransitionProperty"):"transitionProperty"}function H(){return L()?"".concat(L(),"Transform"):"transform"}function V(t,e){var n=j();n&&(t.style[n]=e,"transitionProperty"!==n&&(t.style.transitionProperty=e))}function W(t,e){var n=H();n&&(t.style[n]=e,"transform"!==n&&(t.style.transform=e))}var z=/matrix\((.*)\)/,B=/matrix3d\((.*)\)/,I=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;function F(t){var e=t.style.display;t.style.display="none",t.offsetHeight,t.style.display=e}function Y(t,e,n){var o=n;if("object"===N(e)){for(var r in e)e.hasOwnProperty(r)&&Y(t,r,e[r]);return}if(void 0!==o){"number"==typeof o&&(o="".concat(o,"px")),t.style[e]=o;return}return i(t,e)}function X(t,e){var n=t["page".concat(e?"Y":"X","Offset")],o="scroll".concat(e?"Top":"Left");if("number"!=typeof n){var r=t.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function G(t){var e,n,o,r,i,a,u=(i=(r=t.ownerDocument).body,a=r&&r.documentElement,n=Math.floor((e=t.getBoundingClientRect()).left),o=Math.floor(e.top),{left:n-=a.clientLeft||i.clientLeft||0,top:o-=a.clientTop||i.clientTop||0}),s=t.ownerDocument,c=s.defaultView||s.parentWindow;return u.left+=X(c),u.top+=X(c,!0),u}function q(t){return null!=t&&t==t.window}function U(t){return q(t)?t.document:9===t.nodeType?t:t.ownerDocument}var $=RegExp("^(".concat(I,")(?!px)[a-z%]+$"),"i"),Q=/^(top|right|bottom|left)$/,J="currentStyle",K="runtimeStyle",tt="left";function te(t,e){return"left"===t?e.useCssRight?"right":t:e.useCssBottom?"bottom":t}function tn(t){return"left"===t?"right":"right"===t?"left":"top"===t?"bottom":"bottom"===t?"top":void 0}function to(t,e,n){"static"===Y(t,"position")&&(t.style.position="relative");var o=-999,r=-999,i=te("left",n),a=te("top",n),u=tn(i),s=tn(a);"left"!==i&&(o=999),"top"!==a&&(r=999);var c="",l=G(t);("left"in e||"top"in e)&&(c=t.style.transitionProperty||t.style[j()]||"",V(t,"none")),"left"in e&&(t.style[u]="",t.style[i]="".concat(o,"px")),"top"in e&&(t.style[s]="",t.style[a]="".concat(r,"px")),F(t);var f=G(t),p={};for(var d in e)if(e.hasOwnProperty(d)){var h=te(d,n),v="left"===d?o:r,m=l[d]-f[d];h===d?p[h]=v+m:p[h]=v-m}Y(t,p),F(t),("left"in e||"top"in e)&&V(t,c);var g={};for(var y in e)if(e.hasOwnProperty(y)){var b=te(y,n),w=e[y]-l[y];y===b?g[b]=p[b]+w:g[b]=p[b]-w}Y(t,g)}function tr(t,e){for(var n=0;n<t.length;n++)e(t[n])}function ti(t){return"border-box"===i(t,"boxSizing")}"undefined"!=typeof window&&(i=window.getComputedStyle?function(t,e,n){var o=n,r="",i=U(t);return(o=o||i.defaultView.getComputedStyle(t,null))&&(r=o.getPropertyValue(e)||o[e]),r}:function(t,e){var n=t[J]&&t[J][e];if($.test(n)&&!Q.test(e)){var o=t.style,r=o[tt],i=t[K][tt];t[K][tt]=t[J][tt],o[tt]="fontSize"===e?"1em":n||0,n=o.pixelLeft+"px",o[tt]=r,t[K][tt]=i}return""===n?"auto":n});var ta=["margin","border","padding"];function tu(t,e,n){var o,r,a,u=0;for(r=0;r<e.length;r++)if(o=e[r])for(a=0;a<n.length;a++)u+=parseFloat(i(t,"border"===o?"".concat(o).concat(n[a],"Width"):o+n[a]))||0;return u}var ts={getParent:function(t){var e=t;do e=11===e.nodeType&&e.host?e.host:e.parentNode;while(e&&1!==e.nodeType&&9!==e.nodeType);return e}};function tc(t,e,n){var o=n;if(q(t))return"width"===e?ts.viewportWidth(t):ts.viewportHeight(t);if(9===t.nodeType)return"width"===e?ts.docWidth(t):ts.docHeight(t);var r="width"===e?["Left","Right"]:["Top","Bottom"],a="width"===e?Math.floor(t.getBoundingClientRect().width):Math.floor(t.getBoundingClientRect().height),u=ti(t),s=0;(null==a||a<=0)&&(a=void 0,(null==(s=i(t,e))||0>Number(s))&&(s=t.style[e]||0),s=Math.floor(parseFloat(s))||0),void 0===o&&(o=u?1:-1);var c=void 0!==a||u,l=a||s;return -1===o?c?l-tu(t,["border","padding"],r):s:c?1===o?l:l+(2===o?-tu(t,["border"],r):tu(t,["margin"],r)):s+tu(t,ta.slice(o),r)}tr(["Width","Height"],function(t){ts["doc".concat(t)]=function(e){var n=e.document;return Math.max(n.documentElement["scroll".concat(t)],n.body["scroll".concat(t)],ts["viewport".concat(t)](n))},ts["viewport".concat(t)]=function(e){var n="client".concat(t),o=e.document,r=o.body,i=o.documentElement[n];return"CSS1Compat"===o.compatMode&&i||r&&r[n]||i}});var tl={position:"absolute",visibility:"hidden",display:"block"};function tf(){for(var t,e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];var r=n[0];return 0!==r.offsetWidth?t=tc.apply(void 0,n):function(t,e,n){var o,r={},i=t.style;for(o in e)e.hasOwnProperty(o)&&(r[o]=i[o],i[o]=e[o]);for(o in n.call(t),e)e.hasOwnProperty(o)&&(i[o]=r[o])}(r,tl,function(){t=tc.apply(void 0,n)}),t}function tp(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}tr(["width","height"],function(t){var e=t.charAt(0).toUpperCase()+t.slice(1);ts["outer".concat(e)]=function(e,n){return e&&tf(e,t,n?0:1)};var n="width"===t?["Left","Right"]:["Top","Bottom"];ts[t]=function(e,o){var r=o;return void 0!==r?e?(ti(e)&&(r+=tu(e,["padding","border"],n)),Y(e,t,r)):void 0:e&&tf(e,t,-1)}});var td={getWindow:function(t){if(t&&t.document&&t.setTimeout)return t;var e=t.ownerDocument||t;return e.defaultView||e.parentWindow},getDocument:U,offset:function(t,e,n){if(void 0===e)return G(t);!function(t,e,n){if(n.ignoreShake){var o,r,i,a=G(t),u=a.left.toFixed(0),s=a.top.toFixed(0),c=e.left.toFixed(0),l=e.top.toFixed(0);if(u===c&&s===l)return}n.useCssRight||n.useCssBottom?to(t,e,n):n.useCssTransform&&H() in document.body.style?(o=G(t),i={x:(r=function(t){var e=window.getComputedStyle(t,null),n=e.getPropertyValue("transform")||e.getPropertyValue(H());if(n&&"none"!==n){var o=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(o[12]||o[4],0),y:parseFloat(o[13]||o[5],0)}}return{x:0,y:0}}(t)).x,y:r.y},"left"in e&&(i.x=r.x+e.left-o.left),"top"in e&&(i.y=r.y+e.top-o.top),function(t,e){var n=window.getComputedStyle(t,null),o=n.getPropertyValue("transform")||n.getPropertyValue(H());if(o&&"none"!==o){var r,i=o.match(z);i?((r=(i=i[1]).split(",").map(function(t){return parseFloat(t,10)}))[4]=e.x,r[5]=e.y,W(t,"matrix(".concat(r.join(","),")"))):((r=o.match(B)[1].split(",").map(function(t){return parseFloat(t,10)}))[12]=e.x,r[13]=e.y,W(t,"matrix3d(".concat(r.join(","),")")))}else W(t,"translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) translateZ(0)"))}(t,i)):to(t,e,n)}(t,e,n||{})},isWindow:q,each:tr,css:Y,clone:function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);if(t.overflow)for(e in t)t.hasOwnProperty(e)&&(n.overflow[e]=t.overflow[e]);return n},mix:tp,getWindowScrollLeft:function(t){return X(t)},getWindowScrollTop:function(t){return X(t,!0)},merge:function(){for(var t={},e=0;e<arguments.length;e++)td.mix(t,e<0||arguments.length<=e?void 0:arguments[e]);return t},viewportWidth:0,viewportHeight:0};tp(td,ts);var th=td.getParent;function tv(t){if(td.isWindow(t)||9===t.nodeType)return null;var e,n=td.getDocument(t).body,o=td.css(t,"position");if(!("fixed"===o||"absolute"===o))return"html"===t.nodeName.toLowerCase()?null:th(t);for(e=th(t);e&&e!==n&&9!==e.nodeType;e=th(e))if("static"!==(o=td.css(e,"position")))return e;return null}var tm=td.getParent;function tg(t,e){for(var n={left:0,right:1/0,top:0,bottom:1/0},o=tv(t),r=td.getDocument(t),i=r.defaultView||r.parentWindow,a=r.body,u=r.documentElement;o;){if((-1===navigator.userAgent.indexOf("MSIE")||0!==o.clientWidth)&&o!==a&&o!==u&&"visible"!==td.css(o,"overflow")){var s=td.offset(o);s.left+=o.clientLeft,s.top+=o.clientTop,n.top=Math.max(n.top,s.top),n.right=Math.min(n.right,s.left+o.clientWidth),n.bottom=Math.min(n.bottom,s.top+o.clientHeight),n.left=Math.max(n.left,s.left)}else if(o===a||o===u)break;o=tv(o)}var c=null;td.isWindow(t)||9===t.nodeType||(c=t.style.position,"absolute"!==td.css(t,"position")||(t.style.position="fixed"));var l=td.getWindowScrollLeft(i),f=td.getWindowScrollTop(i),p=td.viewportWidth(i),d=td.viewportHeight(i),h=u.scrollWidth,v=u.scrollHeight,m=window.getComputedStyle(a);if("hidden"===m.overflowX&&(h=i.innerWidth),"hidden"===m.overflowY&&(v=i.innerHeight),t.style&&(t.style.position=c),e||function(t){if(td.isWindow(t)||9===t.nodeType)return!1;var e=td.getDocument(t),n=e.body,o=null;for(o=tm(t);o&&o!==n&&o!==e;o=tm(o))if("fixed"===td.css(o,"position"))return!0;return!1}(t))n.left=Math.max(n.left,l),n.top=Math.max(n.top,f),n.right=Math.min(n.right,l+p),n.bottom=Math.min(n.bottom,f+d);else{var g=Math.max(h,l+p);n.right=Math.min(n.right,g);var y=Math.max(v,f+d);n.bottom=Math.min(n.bottom,y)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function ty(t){if(td.isWindow(t)||9===t.nodeType){var e,n,o,r=td.getWindow(t);e={left:td.getWindowScrollLeft(r),top:td.getWindowScrollTop(r)},n=td.viewportWidth(r),o=td.viewportHeight(r)}else e=td.offset(t),n=td.outerWidth(t),o=td.outerHeight(t);return e.width=n,e.height=o,e}function tb(t,e){var n=e.charAt(0),o=e.charAt(1),r=t.width,i=t.height,a=t.left,u=t.top;return"c"===n?u+=i/2:"b"===n&&(u+=i),"c"===o?a+=r/2:"r"===o&&(a+=r),{left:a,top:u}}function tw(t,e,n,o,r){var i=tb(e,n[1]),a=tb(t,n[0]),u=[a.left-i.left,a.top-i.top];return{left:Math.round(t.left-u[0]+o[0]-r[0]),top:Math.round(t.top-u[1]+o[1]-r[1])}}function tZ(t,e,n){return t.left<n.left||t.left+e.width>n.right}function tx(t,e,n){return t.top<n.top||t.top+e.height>n.bottom}function tC(t,e,n){var o=[];return td.each(t,function(t){o.push(t.replace(e,function(t){return n[t]}))}),o}function tE(t,e){return t[e]=-t[e],t}function tO(t,e){return(/%$/.test(t)?parseInt(t.substring(0,t.length-1),10)/100*e:parseInt(t,10))||0}function tT(t,e){t[0]=tO(t[0],e.width),t[1]=tO(t[1],e.height)}function tk(t,e,n,o){var r=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,s=n.source||t;i=[].concat(i),a=[].concat(a);var c={},l=0,f=tg(s,!!(u=u||{}).alwaysByViewport),p=ty(s);tT(i,p),tT(a,e);var d=tw(p,e,r,i,a),h=td.merge(p,d);if(f&&(u.adjustX||u.adjustY)&&o){if(u.adjustX&&tZ(d,p,f)){var v,m,g,y,b=tC(r,/[lr]/gi,{l:"r",r:"l"}),w=tE(i,0),Z=tE(a,0);(y=tw(p,e,b,w,Z)).left>f.right||y.left+p.width<f.left||(l=1,r=b,i=w,a=Z)}if(u.adjustY&&tx(d,p,f)){var x,C=tC(r,/[tb]/gi,{t:"b",b:"t"}),E=tE(i,1),O=tE(a,1);(x=tw(p,e,C,E,O)).top>f.bottom||x.top+p.height<f.top||(l=1,r=C,i=E,a=O)}l&&(d=tw(p,e,r,i,a),td.mix(h,d));var T=tZ(d,p,f),k=tx(d,p,f);if(T||k){var M=r;T&&(M=tC(r,/[lr]/gi,{l:"r",r:"l"})),k&&(M=tC(r,/[tb]/gi,{t:"b",b:"t"})),r=M,i=n.offset||[0,0],a=n.targetOffset||[0,0]}c.adjustX=u.adjustX&&T,c.adjustY=u.adjustY&&k,(c.adjustX||c.adjustY)&&(v=d,m=td.clone(v),g={width:p.width,height:p.height},c.adjustX&&m.left<f.left&&(m.left=f.left),c.resizeWidth&&m.left>=f.left&&m.left+g.width>f.right&&(g.width-=m.left+g.width-f.right),c.adjustX&&m.left+g.width>f.right&&(m.left=Math.max(f.right-g.width,f.left)),c.adjustY&&m.top<f.top&&(m.top=f.top),c.resizeHeight&&m.top>=f.top&&m.top+g.height>f.bottom&&(g.height-=m.top+g.height-f.bottom),c.adjustY&&m.top+g.height>f.bottom&&(m.top=Math.max(f.bottom-g.height,f.top)),h=td.mix(m,g))}return h.width!==p.width&&td.css(s,"width",td.width(s)+h.width-p.width),h.height!==p.height&&td.css(s,"height",td.height(s)+h.height-p.height),td.offset(s,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:r,offset:i,targetOffset:a,overflow:c}}function tM(t,e,n){var o,r,i=n.target||e,a=ty(i),u=(o=tg(i,n.overflow&&n.overflow.alwaysByViewport),r=ty(i),!!o&&!(r.left+r.width<=o.left)&&!(r.top+r.height<=o.top)&&!(r.left>=o.right)&&!(r.top>=o.bottom));return tk(t,a,n,u)}tM.__getOffsetParent=tv,tM.__getVisibleRectForElement=tg;var tP=n(91881),t_=n(5110),tS=n(8410),tD=function(t,e){var n=h.useRef(!1),o=h.useRef(null);function r(){window.clearTimeout(o.current)}return[function i(a){if(r(),n.current&&!0!==a)o.current=window.setTimeout(function(){n.current=!1,i()},e);else{if(!1===t(a))return;n.current=!0,o.current=window.setTimeout(function(){n.current=!1},e)}},function(){n.current=!1,r()}]},tR=n(91033);function tN(t,e){var n=null,o=null,r=new tR.Z(function(t){var r=(0,O.Z)(t,1)[0].target;if(document.documentElement.contains(r)){var i=r.getBoundingClientRect(),a=i.width,u=i.height,s=Math.floor(a),c=Math.floor(u);(n!==s||o!==c)&&Promise.resolve().then(function(){e({width:s,height:c})}),n=s,o=c}});return t&&r.observe(t),function(){r.disconnect()}}function tA(t){return"function"!=typeof t?null:t()}function tL(t){return"object"===(0,S.Z)(t)&&t?t:null}var tj=h.forwardRef(function(t,e){var n=t.children,o=t.disabled,r=t.target,i=t.align,a=t.onAlign,u=t.monitorWindowResize,s=t.monitorBufferTime,c=h.useRef({}),l=h.useRef(),f=h.Children.only(n),p=h.useRef({});p.current.disabled=o,p.current.target=r,p.current.align=i,p.current.onAlign=a;var d=tD(function(){var t=p.current,e=t.disabled,n=t.target,o=t.align,r=t.onAlign,i=l.current;if(!e&&n&&i){var a,u,s,f,d,h,v,m,y,b,w,Z=tA(n),x=tL(n);c.current.element=Z,c.current.point=x,c.current.align=o;var C=document.activeElement;return Z&&(0,t_.Z)(Z)?w=tM(i,Z,o):x&&(f=(s=td.getDocument(i)).defaultView||s.parentWindow,d=td.getWindowScrollLeft(f),h=td.getWindowScrollTop(f),v=td.viewportWidth(f),m=td.viewportHeight(f),y={left:a="pageX"in x?x.pageX:d+x.clientX,top:u="pageY"in x?x.pageY:h+x.clientY,width:0,height:0},b=[o.points[0],"cc"],w=tk(i,y,R(R({},o),{},{points:b}),a>=0&&a<=d+v&&u>=0&&u<=h+m)),C!==document.activeElement&&(0,g.Z)(i,C)&&"function"==typeof C.focus&&C.focus(),r&&w&&r(i,w),!0}return!1},void 0===s?0:s),v=(0,O.Z)(d,2),m=v[0],y=v[1],Z=h.useState(),x=(0,O.Z)(Z,2),C=x[0],E=x[1],T=h.useState(),k=(0,O.Z)(T,2),M=k[0],P=k[1];return(0,tS.Z)(function(){E(tA(r)),P(tL(r))}),h.useEffect(function(){var t;c.current.element===C&&((t=c.current.point)===M||t&&M&&("pageX"in M&&"pageY"in M?t.pageX===M.pageX&&t.pageY===M.pageY:"clientX"in M&&"clientY"in M&&t.clientX===M.clientX&&t.clientY===M.clientY))&&(0,tP.Z)(c.current.align,i)||m()}),h.useEffect(function(){return tN(l.current,m)},[l.current]),h.useEffect(function(){return tN(C,m)},[C]),h.useEffect(function(){o?y():m()},[o]),h.useEffect(function(){if(u)return(0,w.Z)(window,"resize",m).remove},[u]),h.useEffect(function(){return function(){y()}},[]),h.useImperativeHandle(e,function(){return{forceAlign:function(){return m(!0)}}}),h.isValidElement(f)&&(f=h.cloneElement(f,{ref:(0,b.sQ)(f.ref,l)})),f});tj.displayName="Align";var tH=n(74165),tV=n(15861),tW=n(30470),tz=["measure","alignPre","align",null,"motion"],tB=function(t,e){var n=(0,tW.Z)(null),o=(0,O.Z)(n,2),r=o[0],i=o[1],a=(0,h.useRef)();function u(){m.Z.cancel(a.current)}return(0,h.useEffect)(function(){i("measure",!0)},[t]),(0,h.useEffect)(function(){"measure"===r&&e(),r&&(a.current=(0,m.Z)((0,tV.Z)((0,tH.Z)().mark(function t(){var e,n;return(0,tH.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=tz.indexOf(r),(n=tz[e+1])&&-1!==e&&i(n,!0);case 3:case"end":return t.stop()}},t)}))))},[r]),(0,h.useEffect)(function(){return function(){u()}},[]),[r,function(t){u(),a.current=(0,m.Z)(function(){i(function(t){switch(r){case"align":return"motion";case"motion":return"stable"}return t},!0),null==t||t()})}]},tI=function(t){var e=h.useState({width:0,height:0}),n=(0,O.Z)(e,2),o=n[0],r=n[1];return[h.useMemo(function(){var e={};if(t){var n=o.width,r=o.height;-1!==t.indexOf("height")&&r?e.height=r:-1!==t.indexOf("minHeight")&&r&&(e.minHeight=r),-1!==t.indexOf("width")&&n?e.width=n:-1!==t.indexOf("minWidth")&&n&&(e.minWidth=n)}return e},[t,o]),function(t){var e=t.offsetWidth,n=t.offsetHeight,o=t.getBoundingClientRect(),i=o.width,a=o.height;1>Math.abs(e-i)&&1>Math.abs(n-a)&&(e=i,n=a),r({width:e,height:n})}]},tF=h.forwardRef(function(t,e){var n=t.visible,o=t.prefixCls,r=t.className,i=t.style,s=t.children,c=t.zIndex,l=t.stretch,f=t.destroyPopupOnHide,p=t.forceRender,d=t.align,v=t.point,m=t.getRootDomNode,g=t.getClassNameFromAlign,y=t.onAlign,b=t.onMouseEnter,w=t.onMouseLeave,Z=t.onMouseDown,x=t.onTouchStart,C=t.onClick,T=(0,h.useRef)(),k=(0,h.useRef)(),_=(0,h.useState)(),S=(0,O.Z)(_,2),D=S[0],R=S[1],N=tI(l),A=(0,O.Z)(N,2),L=A[0],j=A[1],H=tB(n,function(){l&&j(m())}),V=(0,O.Z)(H,2),W=V[0],z=V[1],B=(0,h.useState)(0),I=(0,O.Z)(B,2),F=I[0],Y=I[1],X=(0,h.useRef)();function G(){var t;null===(t=T.current)||void 0===t||t.forceAlign()}function q(t,e){var n=g(e);D!==n&&R(n),Y(function(t){return t+1}),"align"===W&&(null==y||y(t,e))}(0,tS.Z)(function(){"alignPre"===W&&Y(0)},[W]),(0,tS.Z)(function(){"align"===W&&(F<3?G():z(function(){var t;null===(t=X.current)||void 0===t||t.call(X)}))},[F]);var U=(0,a.Z)({},P(t));function $(){return new Promise(function(t){X.current=t})}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(t){var e=U[t];U[t]=function(t,n){return z(),null==e?void 0:e(t,n)}}),h.useEffect(function(){U.motionName||"motion"!==W||z()},[U.motionName,W]),h.useImperativeHandle(e,function(){return{forceAlign:G,getElement:function(){return k.current}}});var Q=(0,a.Z)((0,a.Z)({},L),{},{zIndex:c,opacity:"motion"!==W&&"stable"!==W&&n?0:void 0,pointerEvents:n||"stable"===W?void 0:"none"},i),J=!0;null!=d&&d.points&&("align"===W||"stable"===W)&&(J=!1);var K=s;return h.Children.count(s)>1&&(K=h.createElement("div",{className:"".concat(o,"-content")},s)),h.createElement(M.default,(0,u.Z)({visible:n,ref:k,leavedClassName:"".concat(o,"-hidden")},U,{onAppearPrepare:$,onEnterPrepare:$,removeOnLeave:f,forceRender:p}),function(t,e){var n=t.className,i=t.style,u=E()(o,r,D,n);return h.createElement(tj,{target:v||m,key:"popup",ref:T,monitorWindowResize:!0,disabled:J,align:d,onAlign:q},h.createElement("div",{ref:e,className:u,onMouseEnter:b,onMouseLeave:w,onMouseDownCapture:Z,onTouchStartCapture:x,onClick:C,style:(0,a.Z)((0,a.Z)({},i),Q)},K))})});tF.displayName="PopupInner";var tY=h.forwardRef(function(t,e){var n=t.prefixCls,o=t.visible,r=t.zIndex,i=t.children,s=t.mobile,c=(s=void 0===s?{}:s).popupClassName,l=s.popupStyle,f=s.popupMotion,p=s.popupRender,d=t.onClick,v=h.useRef();h.useImperativeHandle(e,function(){return{forceAlign:function(){},getElement:function(){return v.current}}});var m=(0,a.Z)({zIndex:r},l),g=i;return h.Children.count(i)>1&&(g=h.createElement("div",{className:"".concat(n,"-content")},i)),p&&(g=p(g)),h.createElement(M.default,(0,u.Z)({visible:o,ref:v,removeOnLeave:!0},void 0===f?{}:f),function(t,e){var o=t.className,r=t.style,i=E()(n,c,o);return h.createElement("div",{ref:e,className:i,onClick:d,style:(0,a.Z)((0,a.Z)({},r),m)},g)})});tY.displayName="MobilePopupInner";var tX=["visible","mobile"],tG=h.forwardRef(function(t,e){var n=t.visible,o=t.mobile,r=(0,T.Z)(t,tX),i=(0,h.useState)(n),s=(0,O.Z)(i,2),c=s[0],l=s[1],f=(0,h.useState)(!1),p=(0,O.Z)(f,2),d=p[0],v=p[1],m=(0,a.Z)((0,a.Z)({},r),{},{visible:c});(0,h.useEffect)(function(){l(n),n&&o&&v((0,k.Z)())},[n,o]);var g=d?h.createElement(tY,(0,u.Z)({},m,{mobile:o,ref:e})):h.createElement(tF,(0,u.Z)({},m,{ref:e}));return h.createElement("div",null,h.createElement(_,m),g)});tG.displayName="Popup";var tq=h.createContext(null);function tU(){}var t$=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"],tQ=(o=function(t){(0,f.Z)(n,t);var e=(0,p.Z)(n);function n(t){var o,r;return(0,s.Z)(this,n),o=e.call(this,t),(0,d.Z)((0,l.Z)(o),"popupRef",h.createRef()),(0,d.Z)((0,l.Z)(o),"triggerRef",h.createRef()),(0,d.Z)((0,l.Z)(o),"portalContainer",void 0),(0,d.Z)((0,l.Z)(o),"attachId",void 0),(0,d.Z)((0,l.Z)(o),"clickOutsideHandler",void 0),(0,d.Z)((0,l.Z)(o),"touchOutsideHandler",void 0),(0,d.Z)((0,l.Z)(o),"contextMenuOutsideHandler1",void 0),(0,d.Z)((0,l.Z)(o),"contextMenuOutsideHandler2",void 0),(0,d.Z)((0,l.Z)(o),"mouseDownTimeout",void 0),(0,d.Z)((0,l.Z)(o),"focusTime",void 0),(0,d.Z)((0,l.Z)(o),"preClickTime",void 0),(0,d.Z)((0,l.Z)(o),"preTouchTime",void 0),(0,d.Z)((0,l.Z)(o),"delayTimer",void 0),(0,d.Z)((0,l.Z)(o),"hasPopupMouseDown",void 0),(0,d.Z)((0,l.Z)(o),"onMouseEnter",function(t){var e=o.props.mouseEnterDelay;o.fireEvents("onMouseEnter",t),o.delaySetPopupVisible(!0,e,e?null:t)}),(0,d.Z)((0,l.Z)(o),"onMouseMove",function(t){o.fireEvents("onMouseMove",t),o.setPoint(t)}),(0,d.Z)((0,l.Z)(o),"onMouseLeave",function(t){o.fireEvents("onMouseLeave",t),o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)}),(0,d.Z)((0,l.Z)(o),"onPopupMouseEnter",function(){o.clearDelayTimer()}),(0,d.Z)((0,l.Z)(o),"onPopupMouseLeave",function(t){var e;t.relatedTarget&&!t.relatedTarget.setTimeout&&(0,g.Z)(null===(e=o.popupRef.current)||void 0===e?void 0:e.getElement(),t.relatedTarget)||o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)}),(0,d.Z)((0,l.Z)(o),"onFocus",function(t){o.fireEvents("onFocus",t),o.clearDelayTimer(),o.isFocusToShow()&&(o.focusTime=Date.now(),o.delaySetPopupVisible(!0,o.props.focusDelay))}),(0,d.Z)((0,l.Z)(o),"onMouseDown",function(t){o.fireEvents("onMouseDown",t),o.preClickTime=Date.now()}),(0,d.Z)((0,l.Z)(o),"onTouchStart",function(t){o.fireEvents("onTouchStart",t),o.preTouchTime=Date.now()}),(0,d.Z)((0,l.Z)(o),"onBlur",function(t){o.fireEvents("onBlur",t),o.clearDelayTimer(),o.isBlurToHide()&&o.delaySetPopupVisible(!1,o.props.blurDelay)}),(0,d.Z)((0,l.Z)(o),"onContextMenu",function(t){t.preventDefault(),o.fireEvents("onContextMenu",t),o.setPopupVisible(!0,t)}),(0,d.Z)((0,l.Z)(o),"onContextMenuClose",function(){o.isContextMenuToShow()&&o.close()}),(0,d.Z)((0,l.Z)(o),"onClick",function(t){if(o.fireEvents("onClick",t),o.focusTime){var e;if(o.preClickTime&&o.preTouchTime?e=Math.min(o.preClickTime,o.preTouchTime):o.preClickTime?e=o.preClickTime:o.preTouchTime&&(e=o.preTouchTime),20>Math.abs(e-o.focusTime))return;o.focusTime=0}o.preClickTime=0,o.preTouchTime=0,o.isClickToShow()&&(o.isClickToHide()||o.isBlurToHide())&&t&&t.preventDefault&&t.preventDefault();var n=!o.state.popupVisible;(o.isClickToHide()&&!n||n&&o.isClickToShow())&&o.setPopupVisible(!o.state.popupVisible,t)}),(0,d.Z)((0,l.Z)(o),"onPopupMouseDown",function(){if(o.hasPopupMouseDown=!0,clearTimeout(o.mouseDownTimeout),o.mouseDownTimeout=window.setTimeout(function(){o.hasPopupMouseDown=!1},0),o.context){var t;(t=o.context).onPopupMouseDown.apply(t,arguments)}}),(0,d.Z)((0,l.Z)(o),"onDocumentClick",function(t){if(!o.props.mask||o.props.maskClosable){var e=t.target,n=o.getRootDomNode(),r=o.getPopupDomNode();(!(0,g.Z)(n,e)||o.isContextMenuOnly())&&!(0,g.Z)(r,e)&&!o.hasPopupMouseDown&&o.close()}}),(0,d.Z)((0,l.Z)(o),"getRootDomNode",function(){var t=o.props.getTriggerDOMNode;if(t)return t(o.triggerRef.current);try{var e=(0,y.Z)(o.triggerRef.current);if(e)return e}catch(t){}return v.findDOMNode((0,l.Z)(o))}),(0,d.Z)((0,l.Z)(o),"getPopupClassNameFromAlign",function(t){var e=[],n=o.props,r=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,u=n.alignPoint,s=n.getPopupClassNameFromAlign;return r&&i&&e.push(function(t,e,n,o){for(var r=n.points,i=Object.keys(t),a=0;a<i.length;a+=1){var u,s=i[a];if(u=t[s].points,o?u[0]===r[0]:u[0]===r[0]&&u[1]===r[1])return"".concat(e,"-placement-").concat(s)}return""}(i,a,t,u)),s&&e.push(s(t)),e.join(" ")}),(0,d.Z)((0,l.Z)(o),"getComponent",function(){var t=o.props,e=t.prefixCls,n=t.destroyPopupOnHide,r=t.popupClassName,i=t.onPopupAlign,a=t.popupMotion,s=t.popupAnimation,c=t.popupTransitionName,l=t.popupStyle,f=t.mask,p=t.maskAnimation,d=t.maskTransitionName,v=t.maskMotion,m=t.zIndex,g=t.popup,y=t.stretch,b=t.alignPoint,w=t.mobile,Z=t.forceRender,x=t.onPopupClick,C=o.state,E=C.popupVisible,O=C.point,T=o.getPopupAlign(),k={};return o.isMouseEnterToShow()&&(k.onMouseEnter=o.onPopupMouseEnter),o.isMouseLeaveToHide()&&(k.onMouseLeave=o.onPopupMouseLeave),k.onMouseDown=o.onPopupMouseDown,k.onTouchStart=o.onPopupMouseDown,h.createElement(tG,(0,u.Z)({prefixCls:e,destroyPopupOnHide:n,visible:E,point:b&&O,className:r,align:T,onAlign:i,animation:s,getClassNameFromAlign:o.getPopupClassNameFromAlign},k,{stretch:y,getRootDomNode:o.getRootDomNode,style:l,mask:f,zIndex:m,transitionName:c,maskAnimation:p,maskTransitionName:d,maskMotion:v,ref:o.popupRef,motion:a,mobile:w,forceRender:Z,onClick:x}),"function"==typeof g?g():g)}),(0,d.Z)((0,l.Z)(o),"attachParent",function(t){m.Z.cancel(o.attachId);var e,n=o.props,r=n.getPopupContainer,i=n.getDocument,a=o.getRootDomNode();r?(a||0===r.length)&&(e=r(a)):e=i(o.getRootDomNode()).body,e?e.appendChild(t):o.attachId=(0,m.Z)(function(){o.attachParent(t)})}),(0,d.Z)((0,l.Z)(o),"getContainer",function(){if(!o.portalContainer){var t=(0,o.props.getDocument)(o.getRootDomNode()).createElement("div");t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",o.portalContainer=t}return o.attachParent(o.portalContainer),o.portalContainer}),(0,d.Z)((0,l.Z)(o),"setPoint",function(t){o.props.alignPoint&&t&&o.setState({point:{pageX:t.pageX,pageY:t.pageY}})}),(0,d.Z)((0,l.Z)(o),"handlePortalUpdate",function(){o.state.prevPopupVisible!==o.state.popupVisible&&o.props.afterPopupVisibleChange(o.state.popupVisible)}),(0,d.Z)((0,l.Z)(o),"triggerContextValue",{onPopupMouseDown:o.onPopupMouseDown}),r="popupVisible"in t?!!t.popupVisible:!!t.defaultPopupVisible,o.state={prevPopupVisible:r,popupVisible:r},t$.forEach(function(t){o["fire".concat(t)]=function(e){o.fireEvents(t,e)}}),o}return(0,c.Z)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t,e=this.props;if(this.state.popupVisible){!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(t=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,w.Z)(t,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(t=t||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,w.Z)(t,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(t=t||e.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,w.Z)(t,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,w.Z)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),m.Z.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return(null===(t=this.popupRef.current)||void 0===t?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t,e=this.props,n=e.popupPlacement,o=e.popupAlign,r=e.builtinPlacements;return n&&r?(t=r[n]||{},(0,a.Z)((0,a.Z)({},t),o)):o}},{key:"setPopupVisible",value:function(t,e){var n=this.props.alignPoint,o=this.state.popupVisible;this.clearDelayTimer(),o!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:o}),this.props.onPopupVisibleChange(t)),n&&e&&t&&this.setPoint(e)}},{key:"delaySetPopupVisible",value:function(t,e,n){var o=this,r=1e3*e;if(this.clearDelayTimer(),r){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout(function(){o.setPopupVisible(t,i),o.clearDelayTimer()},r)}else this.setPopupVisible(t,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var e=this.props.children.props,n=this.props;return e[t]&&n[t]?this["fire".concat(t)]:e[t]||n[t]}},{key:"isClickToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return -1!==e.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return"contextMenu"===t||1===t.length&&"contextMenu"===t[0]}},{key:"isContextMenuToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return -1!==e.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var t=this.props,e=t.action,n=t.hideAction;return -1!==e.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return -1!==e.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,e=t.action,n=t.hideAction;return -1!==e.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return -1!==e.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var t=this.props,e=t.action,n=t.hideAction;return -1!==e.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;null===(t=this.popupRef.current)||void 0===t||t.forceAlign()}}},{key:"fireEvents",value:function(t,e){var n=this.props.children.props[t];n&&n(e);var o=this.props[t];o&&o(e)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t,e=this.state.popupVisible,n=this.props,o=n.children,r=n.forceRender,i=n.alignPoint,u=n.className,s=n.autoDestroy,c=h.Children.only(o),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 f=E()(c&&c.props&&c.props.className,u);f&&(l.className=f);var p=(0,a.Z)({},l);(0,b.Yr)(c)&&(p.ref=(0,b.sQ)(this.triggerRef,c.ref));var d=h.cloneElement(c,p);return(e||this.popupRef.current||r)&&(t=h.createElement(x,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&s&&(t=null),h.createElement(tq.Provider,{value:this.triggerContextValue},d,t)}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.popupVisible,o={};return void 0!==n&&e.popupVisible!==n&&(o.popupVisible=n,o.prevPopupVisible=e.popupVisible),o}}]),n}(h.Component),(0,d.Z)(o,"contextType",tq),(0,d.Z)(o,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:function(){return""},getDocument:function(t){return t?t.ownerDocument:window.document},onPopupVisibleChange:tU,afterPopupVisibleChange:tU,onPopupAlign:tU,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),o)},64019:function(t,e,n){n.d(e,{Z:function(){return r}});var o=n(73935);function r(t,e,n,r){var i=o.unstable_batchedUpdates?function(t){o.unstable_batchedUpdates(n,t)}:n;return t.addEventListener&&t.addEventListener(e,i,r),{remove:function(){t.removeEventListener&&t.removeEventListener(e,i,r)}}}},5110:function(t,e){e.Z=function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox(),n=e.width,o=e.height;if(n||o)return!0}if(t.getBoundingClientRect){var r=t.getBoundingClientRect(),i=r.width,a=r.height;if(i||a)return!0}}return!1}},66680:function(t,e,n){n.d(e,{Z:function(){return r}});var o=n(67294);function r(t){var e=o.useRef();return e.current=t,o.useCallback(function(){for(var t,n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(t=e.current)||void 0===t?void 0:t.call.apply(t,[e].concat(o))},[])}},8410:function(t,e,n){n.d(e,{o:function(){return i}});var o=n(67294),r=(0,n(98924).Z)()?o.useLayoutEffect:o.useEffect;e.Z=r;var i=function(t,e){var n=o.useRef(!0);r(function(){if(!n.current)return t()},e),r(function(){return n.current=!1,function(){n.current=!0}},[])}},21770:function(t,e,n){n.d(e,{Z:function(){return s}});var o=n(97685),r=n(66680),i=n(8410),a=n(30470);function u(t){return void 0!==t}function s(t,e){var n=e||{},s=n.defaultValue,c=n.value,l=n.onChange,f=n.postState,p=(0,a.Z)(function(){return u(c)?c:u(s)?"function"==typeof s?s():s:"function"==typeof t?t():t}),d=(0,o.Z)(p,2),h=d[0],v=d[1],m=void 0!==c?c:h,g=f?f(m):m,y=(0,r.Z)(l),b=(0,a.Z)([m]),w=(0,o.Z)(b,2),Z=w[0],x=w[1];return(0,i.o)(function(){var t=Z[0];h!==t&&y(h,t)},[Z]),(0,i.o)(function(){u(c)||v(c)},[c]),[g,(0,r.Z)(function(t,e){v(t,e),x([m],e)})]}},91881:function(t,e,n){var o=n(71002),r=n(80334);e.Z=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function t(e,a){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=i.has(e);if((0,r.ZP)(!s,"Warning: There may be circular references"),s)return!1;if(e===a)return!0;if(n&&u>1)return!1;i.add(e);var c=u+1;if(Array.isArray(e)){if(!Array.isArray(a)||e.length!==a.length)return!1;for(var l=0;l<e.length;l++)if(!t(e[l],a[l],c))return!1;return!0}if(e&&a&&"object"===(0,o.Z)(e)&&"object"===(0,o.Z)(a)){var f=Object.keys(e);return f.length===Object.keys(a).length&&f.every(function(n){return t(e[n],a[n],c)})}return!1}(t,e)}},31131:function(t,e){e.Z=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var t=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==t?void 0:t.substr(0,4))}},91033:function(t,e,n){var o=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,o){return t[0]===e&&(n=o,!0)}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),o=this.__entries__[n];return o&&o[1]},e.prototype.set=function(e,n){var o=t(this.__entries__,e);~o?this.__entries__[o][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,o=t(n,e);~o&&n.splice(o,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];t.call(e,r[1],r[0])}},e}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},u=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,c=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,o=!1,r=0;function i(){n&&(n=!1,t()),o&&s()}function u(){a(i)}function s(){var t=Date.now();if(n){if(t-r<2)return;o=!0}else n=!0,o=!1,setTimeout(u,20);r=t}return s}(this.refresh.bind(this),0)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;u.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),l=function(t,e){for(var n=0,o=Object.keys(e);n<o.length;n++){var r=o[n];Object.defineProperty(t,r,{value:e[r],enumerable:!1,writable:!1,configurable:!0})}return t},f=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||i},p=m(0,0,0,0);function d(t){return parseFloat(t)||0}function h(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(e,n){return e+d(t["border-"+n+"-width"])},0)}var v="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof f(t).SVGGraphicsElement}:function(t){return t instanceof f(t).SVGElement&&"function"==typeof t.getBBox};function m(t,e,n,o){return{x:t,y:e,width:n,height:o}}var g=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=m(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=function(t){if(!r)return p;if(v(t)){var e;return m(0,0,(e=t.getBBox()).width,e.height)}return function(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return p;var o=f(t).getComputedStyle(t),r=function(t){for(var e={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=t["padding-"+r];e[r]=d(i)}return e}(o),i=r.left+r.right,a=r.top+r.bottom,u=d(o.width),s=d(o.height);if("border-box"===o.boxSizing&&(Math.round(u+i)!==e&&(u-=h(o,"left","right")+i),Math.round(s+a)!==n&&(s-=h(o,"top","bottom")+a)),t!==f(t).document.documentElement){var c=Math.round(u+i)-e,l=Math.round(s+a)-n;1!==Math.abs(c)&&(u-=c),1!==Math.abs(l)&&(s-=l)}return m(r.left,r.top,u,s)}(t)}(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),y=function(t,e){var n,o,r,i,a,u=(n=e.x,o=e.y,r=e.width,i=e.height,l(a=Object.create(("undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype),{x:n,y:o,width:r,height:i,top:o,right:n+r,bottom:i+o,left:n}),a);l(this,{target:t,contentRect:u})},b=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new o,"function"!=typeof t)throw TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new g(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new y(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),w="undefined"!=typeof WeakMap?new WeakMap:new o,Z=function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),o=new b(e,n,this);w.set(this,o)};["observe","unobserve","disconnect"].forEach(function(t){Z.prototype[t]=function(){var e;return(e=w.get(this))[t].apply(e,arguments)}});var x=void 0!==i.ResizeObserver?i.ResizeObserver:Z;e.Z=x},15861:function(t,e,n){function o(t,e,n,o,r,i,a){try{var u=t[i](a),s=u.value}catch(t){n(t);return}u.done?e(s):Promise.resolve(s).then(o,r)}function r(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function u(t){o(a,r,i,u,s,"next",t)}function s(t){o(a,r,i,u,s,"throw",t)}u(void 0)})}}n.d(e,{Z:function(){return r}})},74165:function(t,e,n){n.d(e,{Z:function(){return r}});var o=n(71002);function r(){r=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function f(t,e,n,o){var r,a,u=Object.create((e&&e.prototype instanceof h?e:h).prototype);return i(u,"_invoke",{value:(r=new O(o||[]),a="suspendedStart",function(e,o){if("executing"===a)throw Error("Generator is already running");if("completed"===a){if("throw"===e)throw o;return k()}for(r.method=e,r.arg=o;;){var i=r.delegate;if(i){var u=function t(e,n){var o=n.method,r=e.iterator[o];if(void 0===r)return n.delegate=null,"throw"===o&&e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+o+"' method")),d;var i=p(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,d;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,d):a:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,d)}(i,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var s=p(t,n,r);if("normal"===s.type){if(a=r.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a="completed",r.method="throw",r.arg=s.arg)}})}),u}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function h(){}function v(){}function m(){}var g={};l(g,u,function(){return this});var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==e&&n.call(b,u)&&(g=b);var w=m.prototype=h.prototype=Object.create(g);function Z(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function x(t,e){var r;i(this,"_invoke",{value:function(i,a){function u(){return new e(function(r,u){!function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==(0,o.Z)(f)&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,u,s)},function(t){r("throw",t,u,s)}):e.resolve(f).then(function(t){l.value=t,u(l)},function(t){return r("throw",t,u,s)})}s(c.arg)}(i,a,r,u)})}return r=r?r.then(u,u):u()}})}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function T(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,r=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:k}}function k(){return{value:void 0,done:!0}}return v.prototype=m,i(w,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:v,configurable:!0}),v.displayName=l(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},Z(x.prototype),l(x.prototype,s,function(){return this}),t.AsyncIterator=x,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new x(f(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then(function(t){return t.done?t.value:a.next()})},Z(w),l(w,c,"Generator"),l(w,u,function(){return this}),l(w,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),n=[];for(var o in e)n.push(o);return n.reverse(),function t(){for(;n.length;){var o=n.pop();if(o in e)return t.value=o,t.done=!1,t}return t.done=!0,t}},t.values=T,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(n,o){return a.type="throw",a.arg=t,e.next=n,o&&(e.method="next",e.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var r=o.arg;E(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}}}]); |