beancount-gs/public/static/js/2.94923eba.chunk.js

1 line
36 KiB
JavaScript

(this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[]).push([[2],{133:function(e,t,n){"use strict";var o=n(43),i=n(3),r=n(45),a=n(46),u=n(131),c=n(47),s=n(48),l=n(0),p=n.n(l),f=n(20),d=n.n(f),h=n(66),m=n(288),v=n(223),g=n(67),b=n(289),w=n(245),y=n(39),O=n.n(y);function x(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var T=n(41),C=n(53),M=n(246),k=n(80);function j(e){var t=e.prefixCls,n=e.motion,o=e.animation,i=e.transitionName;return n||(o?{motionName:"".concat(t,"-").concat(o)}:i?{motionName:i}:null)}function P(e){var t=e.prefixCls,n=e.visible,r=e.zIndex,a=e.mask,u=e.maskMotion,c=e.maskAnimation,s=e.maskTransitionName;if(!a)return null;var p={};return(u||s||c)&&(p=Object(o.a)({motionAppear:!0},j({motion:u,prefixCls:t,transitionName:s,animation:c}))),l.createElement(k.b,Object(i.a)({},p,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return l.createElement("div",{style:{zIndex:r},className:O()("".concat(t,"-mask"),n)})}))}var E,D=n(44),S=n(290);function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e){return(N="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function L(){if(void 0!==E)return E;E="";var e=document.createElement("p").style;for(var t in A)t+"Transform"in e&&(E=t);return E}function W(){return L()?"".concat(L(),"TransitionProperty"):"transitionProperty"}function B(){return L()?"".concat(L(),"Transform"):"transform"}function z(e,t){var n=W();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function F(e,t){var n=B();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var X,Y=/matrix\((.*)\)/,I=/matrix3d\((.*)\)/;function U(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function _(e,t,n){var o=n;if("object"!==N(t))return"undefined"!==typeof o?("number"===typeof o&&(o="".concat(o,"px")),void(e.style[t]=o)):X(e,t);for(var i in t)t.hasOwnProperty(i)&&_(e,i,t[i])}function q(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!==typeof n){var i=e.document;"number"!==typeof(n=i.documentElement[o])&&(n=i.body[o])}return n}function $(e){return q(e)}function J(e){return q(e,!0)}function Z(e){var t=function(e){var t,n,o,i=e.ownerDocument,r=i.body,a=i&&i.documentElement;return n=(t=e.getBoundingClientRect()).left,o=t.top,{left:n-=a.clientLeft||r.clientLeft||0,top:o-=a.clientTop||r.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=$(o),t.top+=J(o),t}function G(e){return null!==e&&void 0!==e&&e==e.window}function K(e){return G(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)$/;function te(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function ne(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function oe(e,t,n){"static"===_(e,"position")&&(e.style.position="relative");var o=-999,i=-999,r=te("left",n),a=te("top",n),u=ne(r),c=ne(a);"left"!==r&&(o=999),"top"!==a&&(i=999);var s,l="",p=Z(e);("left"in t||"top"in t)&&(l=(s=e).style.transitionProperty||s.style[W()]||"",z(e,"none")),"left"in t&&(e.style[u]="",e.style[r]="".concat(o,"px")),"top"in t&&(e.style[c]="",e.style[a]="".concat(i,"px")),U(e);var f=Z(e),d={};for(var h in t)if(t.hasOwnProperty(h)){var m=te(h,n),v="left"===h?o:i,g=p[h]-f[h];d[m]=m===h?v+g:v-g}_(e,d),U(e),("left"in t||"top"in t)&&z(e,l);var b={};for(var w in t)if(t.hasOwnProperty(w)){var y=te(w,n),O=t[w]-p[w];b[y]=w===y?d[y]+O:d[y]-O}_(e,b)}function ie(e,t){var n=Z(e),o=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(B());if(n&&"none"!==n){var o=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(o[12]||o[4],0),y:parseFloat(o[13]||o[5],0)}}return{x:0,y:0}}(e),i={x:o.x,y:o.y};"left"in t&&(i.x=o.x+t.left-n.left),"top"in t&&(i.y=o.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),o=n.getPropertyValue("transform")||n.getPropertyValue(B());if(o&&"none"!==o){var i,r=o.match(Y);r?((i=(r=r[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,i[5]=t.y,F(e,"matrix(".concat(i.join(","),")"))):((i=o.match(I)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,i[13]=t.y,F(e,"matrix3d(".concat(i.join(","),")")))}else F(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,i)}function re(e,t){for(var n=0;n<e.length;n++)t(e[n])}function ae(e){return"border-box"===X(e,"boxSizing")}"undefined"!==typeof window&&(X=window.getComputedStyle?function(e,t,n){var o=n,i="",r=K(e);return(o=o||r.defaultView.getComputedStyle(e,null))&&(i=o.getPropertyValue(t)||o[t]),i}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(Q.test(n)&&!ee.test(t)){var o=e.style,i=o.left,r=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,o.left="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o.left=i,e.runtimeStyle.left=r}return""===n?"auto":n});var ue=["margin","border","padding"];function ce(e,t,n){var o,i={},r=e.style;for(o in t)t.hasOwnProperty(o)&&(i[o]=r[o],r[o]=t[o]);for(o in n.call(e),t)t.hasOwnProperty(o)&&(r[o]=i[o])}function se(e,t,n){var o,i,r,a=0;for(i=0;i<t.length;i++)if(o=t[i])for(r=0;r<n.length;r++){var u=void 0;u="border"===o?"".concat(o).concat(n[r],"Width"):o+n[r],a+=parseFloat(X(e,u))||0}return a}var le={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 pe(e,t,n){var o=n;if(G(e))return"width"===t?le.viewportWidth(e):le.viewportHeight(e);if(9===e.nodeType)return"width"===t?le.docWidth(e):le.docHeight(e);var i="width"===t?["Left","Right"]:["Top","Bottom"],r="width"===t?e.getBoundingClientRect().width:e.getBoundingClientRect().height,a=ae(e),u=0;(null===r||void 0===r||r<=0)&&(r=void 0,(null===(u=X(e,t))||void 0===u||Number(u)<0)&&(u=e.style[t]||0),u=parseFloat(u)||0),void 0===o&&(o=a?1:-1);var c=void 0!==r||a,s=r||u;return-1===o?c?s-se(e,["border","padding"],i):u:c?1===o?s:s+(2===o?-se(e,["border"],i):se(e,["margin"],i)):u+se(e,ue.slice(o),i)}re(["Width","Height"],(function(e){le["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],le["viewport".concat(e)](n))},le["viewport".concat(e)]=function(t){var n="client".concat(e),o=t.document,i=o.body,r=o.documentElement[n];return"CSS1Compat"===o.compatMode&&r||i&&i[n]||r}}));var fe={position:"absolute",visibility:"hidden",display:"block"};function de(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o,i=t[0];return 0!==i.offsetWidth?o=pe.apply(void 0,t):ce(i,fe,(function(){o=pe.apply(void 0,t)})),o}function he(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}re(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);le["outer".concat(t)]=function(t,n){return t&&de(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];le[e]=function(t,o){var i=o;return void 0!==i?t?(ae(t)&&(i+=se(t,["padding","border"],n)),_(t,e,i)):void 0:t&&de(t,e,-1)}}));var me={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:K,offset:function(e,t,n){if("undefined"===typeof t)return Z(e);!function(e,t,n){if(n.ignoreShake){var o=Z(e),i=o.left.toFixed(0),r=o.top.toFixed(0),a=t.left.toFixed(0),u=t.top.toFixed(0);if(i===a&&r===u)return}n.useCssRight||n.useCssBottom?oe(e,t,n):n.useCssTransform&&B()in document.body.style?ie(e,t):oe(e,t,n)}(e,t,n||{})},isWindow:G,each:re,css:_,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:he,getWindowScrollLeft:function(e){return $(e)},getWindowScrollTop:function(e){return J(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)me.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};he(me,le);var ve=me.getParent;function ge(e){if(me.isWindow(e)||9===e.nodeType)return null;var t,n=me.getDocument(e).body,o=me.css(e,"position");if(!("fixed"===o||"absolute"===o))return"html"===e.nodeName.toLowerCase()?null:ve(e);for(t=ve(e);t&&t!==n&&9!==t.nodeType;t=ve(t))if("static"!==(o=me.css(t,"position")))return t;return null}var be=me.getParent;function we(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},o=ge(e),i=me.getDocument(e),r=i.defaultView||i.parentWindow,a=i.body,u=i.documentElement;o;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===o.clientWidth||o===a||o===u||"visible"===me.css(o,"overflow")){if(o===a||o===u)break}else{var c=me.offset(o);c.left+=o.clientLeft,c.top+=o.clientTop,n.top=Math.max(n.top,c.top),n.right=Math.min(n.right,c.left+o.clientWidth),n.bottom=Math.min(n.bottom,c.top+o.clientHeight),n.left=Math.max(n.left,c.left)}o=ge(o)}var s=null;me.isWindow(e)||9===e.nodeType||(s=e.style.position,"absolute"===me.css(e,"position")&&(e.style.position="fixed"));var l=me.getWindowScrollLeft(r),p=me.getWindowScrollTop(r),f=me.viewportWidth(r),d=me.viewportHeight(r),h=u.scrollWidth,m=u.scrollHeight,v=window.getComputedStyle(a);if("hidden"===v.overflowX&&(h=r.innerWidth),"hidden"===v.overflowY&&(m=r.innerHeight),e.style&&(e.style.position=s),t||function(e){if(me.isWindow(e)||9===e.nodeType)return!1;var t=me.getDocument(e),n=t.body,o=null;for(o=be(e);o&&o!==n&&o!==t;o=be(o))if("fixed"===me.css(o,"position"))return!0;return!1}(e))n.left=Math.max(n.left,l),n.top=Math.max(n.top,p),n.right=Math.min(n.right,l+f),n.bottom=Math.min(n.bottom,p+d);else{var g=Math.max(h,l+f);n.right=Math.min(n.right,g);var b=Math.max(m,p+d);n.bottom=Math.min(n.bottom,b)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function ye(e){var t,n,o;if(me.isWindow(e)||9===e.nodeType){var i=me.getWindow(e);t={left:me.getWindowScrollLeft(i),top:me.getWindowScrollTop(i)},n=me.viewportWidth(i),o=me.viewportHeight(i)}else t=me.offset(e),n=me.outerWidth(e),o=me.outerHeight(e);return t.width=n,t.height=o,t}function Oe(e,t){var n=t.charAt(0),o=t.charAt(1),i=e.width,r=e.height,a=e.left,u=e.top;return"c"===n?u+=r/2:"b"===n&&(u+=r),"c"===o?a+=i/2:"r"===o&&(a+=i),{left:a,top:u}}function xe(e,t,n,o,i){var r=Oe(t,n[1]),a=Oe(e,n[0]),u=[a.left-r.left,a.top-r.top];return{left:Math.round(e.left-u[0]+o[0]-i[0]),top:Math.round(e.top-u[1]+o[1]-i[1])}}function Te(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Ce(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function Me(e,t,n){var o=[];return me.each(e,(function(e){o.push(e.replace(t,(function(e){return n[e]})))})),o}function ke(e,t){return e[t]=-e[t],e}function je(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Pe(e,t){e[0]=je(e[0],t.width),e[1]=je(e[1],t.height)}function Ee(e,t,n,o){var i=n.points,r=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,c=n.source||e;r=[].concat(r),a=[].concat(a);var s={},l=0,p=we(c,!(!(u=u||{})||!u.alwaysByViewport)),f=ye(c);Pe(r,f),Pe(a,t);var d=xe(f,t,i,r,a),h=me.merge(f,d);if(p&&(u.adjustX||u.adjustY)&&o){if(u.adjustX&&Te(d,f,p)){var m=Me(i,/[lr]/gi,{l:"r",r:"l"}),v=ke(r,0),g=ke(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(xe(f,t,m,v,g),f,p)||(l=1,i=m,r=v,a=g)}if(u.adjustY&&Ce(d,f,p)){var b=Me(i,/[tb]/gi,{t:"b",b:"t"}),w=ke(r,1),y=ke(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(xe(f,t,b,w,y),f,p)||(l=1,i=b,r=w,a=y)}l&&(d=xe(f,t,i,r,a),me.mix(h,d));var O=Te(d,f,p),x=Ce(d,f,p);if(O||x){var T=i;O&&(T=Me(i,/[lr]/gi,{l:"r",r:"l"})),x&&(T=Me(i,/[tb]/gi,{t:"b",b:"t"})),i=T,r=n.offset||[0,0],a=n.targetOffset||[0,0]}s.adjustX=u.adjustX&&O,s.adjustY=u.adjustY&&x,(s.adjustX||s.adjustY)&&(h=function(e,t,n,o){var i=me.clone(e),r={width:t.width,height:t.height};return o.adjustX&&i.left<n.left&&(i.left=n.left),o.resizeWidth&&i.left>=n.left&&i.left+r.width>n.right&&(r.width-=i.left+r.width-n.right),o.adjustX&&i.left+r.width>n.right&&(i.left=Math.max(n.right-r.width,n.left)),o.adjustY&&i.top<n.top&&(i.top=n.top),o.resizeHeight&&i.top>=n.top&&i.top+r.height>n.bottom&&(r.height-=i.top+r.height-n.bottom),o.adjustY&&i.top+r.height>n.bottom&&(i.top=Math.max(n.bottom-r.height,n.top)),me.mix(i,r)}(d,f,p,s))}return h.width!==f.width&&me.css(c,"width",me.width(c)+h.width-f.width),h.height!==f.height&&me.css(c,"height",me.height(c)+h.height-f.height),me.offset(c,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:i,offset:r,targetOffset:a,overflow:s}}function De(e,t,n){var o=n.target||t;return Ee(e,ye(o),n,!function(e,t){var n=we(e,t),o=ye(e);return!n||o.left+o.width<=n.left||o.top+o.height<=n.top||o.left>=n.right||o.top>=n.bottom}(o,n.overflow&&n.overflow.alwaysByViewport))}De.__getOffsetParent=ge,De.__getVisibleRectForElement=we;var Se=n(291);function Re(e,t){var n=null,o=null;var i=new Se.a((function(e){var i=Object(T.a)(e,1)[0].target;if(document.documentElement.contains(i)){var r=i.getBoundingClientRect(),a=r.width,u=r.height,c=Math.floor(a),s=Math.floor(u);n===c&&o===s||Promise.resolve().then((function(){t({width:c,height:s})})),n=c,o=s}}));return e&&i.observe(e),function(){i.disconnect()}}function He(e){return"function"!==typeof e?null:e()}function Ne(e){return"object"===Object(D.a)(e)&&e?e:null}var Ve=p.a.forwardRef((function(e,t){var n=e.children,o=e.disabled,i=e.target,r=e.align,a=e.onAlign,u=e.monitorWindowResize,c=e.monitorBufferTime,s=void 0===c?0:c,l=p.a.useRef({}),f=p.a.useRef(),d=p.a.Children.only(n),h=p.a.useRef({});h.current.disabled=o,h.current.target=i,h.current.onAlign=a;var v=function(e,t){var n=p.a.useRef(!1),o=p.a.useRef(null);function i(){window.clearTimeout(o.current)}return[function r(a){if(n.current&&!0!==a)i(),o.current=window.setTimeout((function(){n.current=!1,r()}),t);else{if(!1===e())return;n.current=!0,i(),o.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,i()}]}((function(){var e=h.current,t=e.disabled,n=e.target,o=e.onAlign;if(!t&&n){var i,a=f.current,u=He(n),c=Ne(n);l.current.element=u,l.current.point=c;var s=document.activeElement;return u&&Object(S.a)(u)?i=De(a,u,r):c&&(i=function(e,t,n){var o,i,r=me.getDocument(e),a=r.defaultView||r.parentWindow,u=me.getWindowScrollLeft(a),c=me.getWindowScrollTop(a),s=me.viewportWidth(a),l=me.viewportHeight(a),p={left:o="pageX"in t?t.pageX:u+t.clientX,top:i="pageY"in t?t.pageY:c+t.clientY,width:0,height:0},f=o>=0&&o<=u+s&&i>=0&&i<=c+l,d=[n.points[0],"cc"];return Ee(e,p,H(H({},n),{},{points:d}),f)}(a,c,r)),function(e,t){e!==document.activeElement&&Object(m.a)(t,e)&&"function"===typeof e.focus&&e.focus()}(s,a),o&&i&&o(a,i),!0}return!1}),s),w=Object(T.a)(v,2),y=w[0],O=w[1],x=p.a.useRef({cancel:function(){}}),C=p.a.useRef({cancel:function(){}});p.a.useEffect((function(){var e,t,n=He(i),o=Ne(i);f.current!==C.current.element&&(C.current.cancel(),C.current.element=f.current,C.current.cancel=Re(f.current,y)),l.current.element===n&&((e=l.current.point)===(t=o)||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))||(y(),x.current.element!==n&&(x.current.cancel(),x.current.element=n,x.current.cancel=Re(n,y)))})),p.a.useEffect((function(){o?O():y()}),[o]);var M=p.a.useRef(null);return p.a.useEffect((function(){u?M.current||(M.current=Object(b.a)(window,"resize",y)):M.current&&(M.current.remove(),M.current=null)}),[u]),p.a.useEffect((function(){return function(){x.current.cancel(),C.current.cancel(),M.current&&M.current.remove(),O()}}),[]),p.a.useImperativeHandle(t,(function(){return{forceAlign:function(){return y(!0)}}})),p.a.isValidElement(d)&&(d=p.a.cloneElement(d,{ref:Object(g.a)(d.ref,f)})),d}));Ve.displayName="Align";var Ae=Ve,Le=n(242),We=n.n(Le),Be=n(283),ze=["measure","align",null,"motion"],Fe=l.forwardRef((function(e,t){var n=e.visible,r=e.prefixCls,a=e.className,u=e.style,c=e.children,s=e.zIndex,p=e.stretch,f=e.destroyPopupOnHide,d=e.forceRender,m=e.align,v=e.point,g=e.getRootDomNode,b=e.getClassNameFromAlign,w=e.onAlign,y=e.onMouseEnter,x=e.onMouseLeave,C=e.onMouseDown,M=e.onTouchStart,P=Object(l.useRef)(),E=Object(l.useRef)(),D=Object(l.useState)(),S=Object(T.a)(D,2),R=S[0],H=S[1],N=function(e){var t=l.useState({width:0,height:0}),n=Object(T.a)(t,2),o=n[0],i=n[1];return[l.useMemo((function(){var t={};if(e){var n=o.width,i=o.height;-1!==e.indexOf("height")&&i?t.height=i:-1!==e.indexOf("minHeight")&&i&&(t.minHeight=i),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,o]),function(e){i({width:e.offsetWidth,height:e.offsetHeight})}]}(p),V=Object(T.a)(N,2),A=V[0],L=V[1];var W=function(e,t){var n=Object(l.useState)(null),o=Object(T.a)(n,2),i=o[0],r=o[1],a=Object(l.useRef)(),u=Object(l.useRef)(!1);function c(e){u.current||r(e)}function s(){h.a.cancel(a.current)}return Object(l.useEffect)((function(){c("measure")}),[e]),Object(l.useEffect)((function(){switch(i){case"measure":t()}i&&(a.current=Object(h.a)(Object(Be.a)(We.a.mark((function e(){var t,n;return We.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=ze.indexOf(i),(n=ze[t+1])&&-1!==t&&c(n);case 3:case"end":return e.stop()}}),e)})))))}),[i]),Object(l.useEffect)((function(){return function(){u.current=!0,s()}}),[]),[i,function(e){s(),a.current=Object(h.a)((function(){c((function(e){switch(i){case"align":return"motion";case"motion":return"stable"}return e})),null===e||void 0===e||e()}))}]}(n,(function(){p&&L(g())})),B=Object(T.a)(W,2),z=B[0],F=B[1],X=Object(l.useRef)();function Y(){var e;null===(e=P.current)||void 0===e||e.forceAlign()}function I(e,t){if("align"===z){var n=b(t);H(n),R!==n?Promise.resolve().then((function(){Y()})):F((function(){var e;null===(e=X.current)||void 0===e||e.call(X)})),null===w||void 0===w||w(e,t)}}var U=Object(o.a)({},j(e));function _(){return new Promise((function(e){X.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=U[e];U[e]=function(e,n){return F(),null===t||void 0===t?void 0:t(e,n)}})),l.useEffect((function(){U.motionName||"motion"!==z||F()}),[U.motionName,z]),l.useImperativeHandle(t,(function(){return{forceAlign:Y,getElement:function(){return E.current}}}));var q=Object(o.a)(Object(o.a)({},A),{},{zIndex:s,opacity:"motion"!==z&&"stable"!==z&&n?0:void 0,pointerEvents:"stable"===z?void 0:"none"},u),$=!0;!(null===m||void 0===m?void 0:m.points)||"align"!==z&&"stable"!==z||($=!1);var J=c;return l.Children.count(c)>1&&(J=l.createElement("div",{className:"".concat(r,"-content")},c)),l.createElement(k.b,Object(i.a)({visible:n,ref:E,leavedClassName:"".concat(r,"-hidden")},U,{onAppearPrepare:_,onEnterPrepare:_,removeOnLeave:f,forceRender:d}),(function(e,t){var n=e.className,i=e.style,u=O()(r,a,R,n);return l.createElement(Ae,{target:v||g,key:"popup",ref:P,monitorWindowResize:!0,disabled:$,align:m,onAlign:I},l.createElement("div",{ref:t,className:u,onMouseEnter:y,onMouseLeave:x,onMouseDownCapture:C,onTouchStartCapture:M,style:Object(o.a)(Object(o.a)({},i),q)},J))}))}));Fe.displayName="PopupInner";var Xe=Fe,Ye=l.forwardRef((function(e,t){var n=e.prefixCls,r=e.visible,a=e.zIndex,u=e.children,c=e.mobile,s=(c=void 0===c?{}:c).popupClassName,p=c.popupStyle,f=c.popupMotion,d=void 0===f?{}:f,h=c.popupRender,m=l.useRef();l.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var v=Object(o.a)({zIndex:a},p),g=u;return l.Children.count(u)>1&&(g=l.createElement("div",{className:"".concat(n,"-content")},u)),h&&(g=h(g)),l.createElement(k.b,Object(i.a)({visible:r,ref:m,removeOnLeave:!0},d),(function(e,t){var i=e.className,r=e.style,a=O()(n,s,i);return l.createElement("div",{ref:t,className:a,style:Object(o.a)(Object(o.a)({},r),v)},g)}))}));Ye.displayName="MobilePopupInner";var Ie=Ye,Ue=l.forwardRef((function(e,t){var n=e.visible,r=e.mobile,a=Object(C.a)(e,["visible","mobile"]),u=Object(l.useState)(n),c=Object(T.a)(u,2),s=c[0],p=c[1],f=Object(l.useState)(!1),d=Object(T.a)(f,2),h=d[0],m=d[1],v=Object(o.a)(Object(o.a)({},a),{},{visible:s});Object(l.useEffect)((function(){p(n),n&&r&&m(Object(M.a)())}),[n,r]);var g=h?l.createElement(Ie,Object(i.a)({},v,{mobile:r,ref:t})):l.createElement(Xe,Object(i.a)({},v,{ref:t}));return l.createElement("div",null,l.createElement(P,v),g)}));Ue.displayName="Popup";var _e=Ue,qe=l.createContext(null);function $e(){}function Je(){return""}function Ze(e){return e?e.ownerDocument:window.document}var Ge=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];t.a=function(e){var t=function(t){Object(c.a)(p,t);var n=Object(s.a)(p);function p(e){var t,o;return Object(r.a)(this,p),(t=n.call(this,e)).popupRef=l.createRef(),t.triggerRef=l.createRef(),t.onMouseEnter=function(e){var n=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,n,n?null:e)},t.onMouseMove=function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)},t.onMouseLeave=function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(e){var n;e.relatedTarget&&!e.relatedTarget.setTimeout&&Object(m.a)(null===(n=t.popupRef.current)||void 0===n?void 0:n.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()},t.onTouchStart=function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()},t.onBlur=function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(e){if(t.fireEvents("onClick",e),t.focusTime){var n;if(t.preClickTime&&t.preTouchTime?n=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?n=t.preClickTime:t.preTouchTime&&(n=t.preTouchTime),Math.abs(n-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var o=!t.state.popupVisible;(t.isClickToHide()&&!o||o&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)},t.onPopupMouseDown=function(){var e;(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout((function(){t.hasPopupMouseDown=!1}),0),t.context)&&(e=t.context).onPopupMouseDown.apply(e,arguments)},t.onDocumentClick=function(e){if(!t.props.mask||t.props.maskClosable){var n=e.target,o=t.getRootDomNode(),i=t.getPopupDomNode();Object(m.a)(o,n)&&!t.isContextMenuOnly()||Object(m.a)(i,n)||t.hasPopupMouseDown||t.close()}},t.getRootDomNode=function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var n=Object(v.a)(t.triggerRef.current);if(n)return n}catch(o){}return d.a.findDOMNode(Object(u.a)(t))},t.getPopupClassNameFromAlign=function(e){var n=[],o=t.props,i=o.popupPlacement,r=o.builtinPlacements,a=o.prefixCls,u=o.alignPoint,c=o.getPopupClassNameFromAlign;return i&&r&&n.push(function(e,t,n,o){for(var i=n.points,r=Object.keys(e),a=0;a<r.length;a+=1){var u=r[a];if(x(e[u].points,i,o))return"".concat(t,"-placement-").concat(u)}return""}(r,a,e,u)),c&&n.push(c(e)),n.join(" ")},t.getComponent=function(){var e=t.props,n=e.prefixCls,o=e.destroyPopupOnHide,r=e.popupClassName,a=e.onPopupAlign,u=e.popupMotion,c=e.popupAnimation,s=e.popupTransitionName,p=e.popupStyle,f=e.mask,d=e.maskAnimation,h=e.maskTransitionName,m=e.maskMotion,v=e.zIndex,g=e.popup,b=e.stretch,w=e.alignPoint,y=e.mobile,O=e.forceRender,x=t.state,T=x.popupVisible,C=x.point,M=t.getPopupAlign(),k={};return t.isMouseEnterToShow()&&(k.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(k.onMouseLeave=t.onPopupMouseLeave),k.onMouseDown=t.onPopupMouseDown,k.onTouchStart=t.onPopupMouseDown,l.createElement(_e,Object(i.a)({prefixCls:n,destroyPopupOnHide:o,visible:T,point:w&&C,className:r,align:M,onAlign:a,animation:c,getClassNameFromAlign:t.getPopupClassNameFromAlign},k,{stretch:b,getRootDomNode:t.getRootDomNode,style:p,mask:f,zIndex:v,transitionName:s,maskAnimation:d,maskTransitionName:h,maskMotion:m,ref:t.popupRef,motion:u,mobile:y,forceRender:O}),"function"===typeof g?g():g)},t.attachParent=function(e){h.a.cancel(t.attachId);var n,o=t.props,i=o.getPopupContainer,r=o.getDocument,a=t.getRootDomNode();i?(a||0===i.length)&&(n=i(a)):n=r(t.getRootDomNode()).body,n?n.appendChild(e):t.attachId=Object(h.a)((function(){t.attachParent(e)}))},t.getContainer=function(){var e=(0,t.props.getDocument)(t.getRootDomNode()).createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",t.attachParent(e),e},t.setPoint=function(e){t.props.alignPoint&&e&&t.setState({point:{pageX:e.pageX,pageY:e.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown},o="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,t.state={prevPopupVisible:o,popupVisible:o},Ge.forEach((function(e){t["fire".concat(e)]=function(n){t.fireEvents(e,n)}})),t}return Object(a.a)(p,[{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=Object(b.a)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(b.a)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(b.a)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(b.a)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),h.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,i=e.builtinPlacements;return t&&i?function(e,t,n){var i=e[t]||{};return Object(o.a)(Object(o.a)({},i),n)}(i,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,o=this.state.popupVisible;this.clearDelayTimer(),o!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:o}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var o=this,i=1e3*t;if(this.clearDelayTimer(),i){var r=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){o.setPopupVisible(e,r),o.clearDelayTimer()}),i)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var o=this.props[e];o&&o(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,n=this.props,i=n.children,r=n.forceRender,a=n.alignPoint,u=n.className,c=n.autoDestroy,s=l.Children.only(i),p={key:"trigger"};this.isContextMenuToShow()?p.onContextMenu=this.onContextMenu:p.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(p.onClick=this.onClick,p.onMouseDown=this.onMouseDown,p.onTouchStart=this.onTouchStart):(p.onClick=this.createTwoChains("onClick"),p.onMouseDown=this.createTwoChains("onMouseDown"),p.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(p.onMouseEnter=this.onMouseEnter,a&&(p.onMouseMove=this.onMouseMove)):p.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?p.onMouseLeave=this.onMouseLeave:p.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(p.onFocus=this.onFocus,p.onBlur=this.onBlur):(p.onFocus=this.createTwoChains("onFocus"),p.onBlur=this.createTwoChains("onBlur"));var f=O()(s&&s.props&&s.props.className,u);f&&(p.className=f);var d=Object(o.a)({},p);Object(g.c)(s)&&(d.ref=Object(g.a)(this.triggerRef,s.ref));var h,m=l.cloneElement(s,d);return(t||this.popupRef.current||r)&&(h=l.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&c&&(h=null),l.createElement(qe.Provider,{value:this.triggerContextValue},m,h)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,o={};return void 0!==n&&t.popupVisible!==n&&(o.popupVisible=n,o.prevPopupVisible=t.popupVisible),o}}]),p}(l.Component);return t.contextType=qe,t.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Je,getDocument:Ze,onPopupVisibleChange:$e,afterPopupVisibleChange:$e,onPopupAlign:$e,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},t}(w.a)},201:function(e,t,n){"use strict";n.d(t,"b",(function(){return u}));var o=function(){return{height:0,opacity:0}},i=function(e){return{height:e.scrollHeight,opacity:1}},r=function(e,t){return!0===(null===t||void 0===t?void 0:t.deadline)||"height"===t.propertyName},a={motionName:"ant-motion-collapse",onAppearStart:o,onEnterStart:o,onAppearActive:i,onEnterActive:i,onLeaveStart:function(e){return{height:e.offsetHeight}},onLeaveActive:o,onAppearEnd:r,onEnterEnd:r,onLeaveEnd:r,motionDeadline:500},u=function(e,t,n){return void 0!==n?n:"".concat(e,"-").concat(t)};t.a=a},245:function(e,t,n){"use strict";var o=n(0),i=n(20),r=n.n(i),a=n(87),u=Object(o.forwardRef)((function(e,t){var n=e.didUpdate,i=e.getContainer,u=e.children,c=Object(o.useRef)();Object(o.useImperativeHandle)(t,(function(){return{}}));var s=Object(o.useRef)(!1);return!s.current&&Object(a.a)()&&(c.current=i(),s.current=!0),Object(o.useEffect)((function(){null===n||void 0===n||n(e)})),Object(o.useEffect)((function(){return function(){var e,t;null===(e=c.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(c.current)}}),[]),c.current?r.a.createPortal(u,c.current):null}));t.a=u},246:function(e,t,n){"use strict";t.a=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?void 0:e.substr(0,4)))}},288:function(e,t,n){"use strict";function o(e,t){return!!e&&e.contains(t)}n.d(t,"a",(function(){return o}))},289:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(20),i=n.n(o);function r(e,t,n,o){var r=i.a.unstable_batchedUpdates?function(e){i.a.unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,r,o),{remove:function(){e.removeEventListener&&e.removeEventListener(t,r)}}}},290:function(e,t,n){"use strict";t.a=function(e){if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect();if(n.width||n.height)return!0}return!1}}}]);