"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9301],{29301:function(t,e,n){n.d(e,{Z:function(){return w}});var r=n(96663),i=n(71062),o=n(11592);n(48736);var s=n(44127),c=n(20135),u=n(76846),a=n(8654),h=i.createContext(null),f=n(76374),d=new Map,l=new f.default(function(t){t.forEach(function(t){var e,n=t.target;null===(e=d.get(n))||void 0===e||e.forEach(function(t){return t(n)})})}),v=n(52884),p=n(95727),_=n(65711),b=n(85745),m=function(t){(0,_.Z)(n,t);var e=(0,b.Z)(n);function n(){return(0,v.Z)(this,n),e.apply(this,arguments)}return(0,p.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(i.Component),g=i.forwardRef(function(t,e){var n=t.children,r=t.disabled,o=i.useRef(null),f=i.useRef(null),v=i.useContext(h),p="function"==typeof n,_=p?n(o):n,b=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),g=!p&&i.isValidElement(_)&&(0,a.Yr)(_),y=g?(0,a.C4)(_):null,w=(0,a.x1)(y,o),E=function(){var t;return(0,u.ZP)(o.current)||(o.current&&"object"===(0,c.Z)(o.current)?(0,u.ZP)(null===(t=o.current)||void 0===t?void 0:t.nativeElement):null)||(0,u.ZP)(f.current)};i.useImperativeHandle(e,function(){return E()});var O=i.useRef(t);O.current=t;var M=i.useCallback(function(t){var e=O.current,n=e.onResize,r=e.data,i=t.getBoundingClientRect(),o=i.width,c=i.height,u=t.offsetWidth,a=t.offsetHeight,h=Math.floor(o),f=Math.floor(c);if(b.current.width!==h||b.current.height!==f||b.current.offsetWidth!==u||b.current.offsetHeight!==a){var d={width:h,height:f,offsetWidth:u,offsetHeight:a};b.current=d;var l=(0,s.Z)((0,s.Z)({},d),{},{offsetWidth:u===Math.round(o)?o:u,offsetHeight:a===Math.round(c)?c:a});null==v||v(l,t,r),n&&Promise.resolve().then(function(){n(l,t)})}},[]);return i.useEffect(function(){var t,e,n=E();return n&&!r&&(t=n,e=M,d.has(t)||(d.set(t,new Set),l.observe(t)),d.get(t).add(e)),function(){var t,e;d.has(n)&&(d.get(n).delete(M),d.get(n).size||(l.unobserve(n),d.delete(n)))}},[o.current,r]),i.createElement(m,{ref:f},g?i.cloneElement(_,{ref:w}):_)}),y=i.forwardRef(function(t,e){var n,s=t.children;return("function"==typeof s?[s]:(0,o.Z)(s)).map(function(n,o){var s=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return i.createElement(g,(0,r.Z)({},t,{key:s,ref:0===o?e:void 0}),n)})});y.Collection=function(t){var e=t.children,n=t.onBatchResize,r=i.useRef(0),o=i.useRef([]),s=i.useContext(h),c=i.useCallback(function(t,e,i){r.current+=1;var c=r.current;o.current.push({size:t,element:e,data:i}),Promise.resolve().then(function(){c===r.current&&(null==n||n(o.current),o.current=[])}),null==s||s(t,e,i)},[n,s]);return i.createElement(h.Provider,{value:c},e)};var w=y},76374:function(t,e,n){n.r(e);var r=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,r){return t[0]===e&&(n=r,!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),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,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,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=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")(),s="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},c=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,a=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,r=!1,i=0;function o(){n&&(n=!1,t()),r&&u()}function c(){s(o)}function u(){var t=Date.now();if(n){if(t-i<2)return;r=!0}else n=!0,r=!1,setTimeout(c,20);i=t}return u}(this.refresh.bind(this),20)}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(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){i&&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;c.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}(),h=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},f=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||o},d=_(0,0,0,0);function l(t){return parseFloat(t)||0}function v(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(e,n){return e+l(t["border-"+n+"-width"])},0)}var p="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof f(t).SVGGraphicsElement}:function(t){return t instanceof f(t).SVGElement&&"function"==typeof t.getBBox};function _(t,e,n,r){return{x:t,y:e,width:n,height:r}}var b=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=_(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=function(t){if(!i)return d;if(p(t)){var e,n;return _(0,0,(n=t.getBBox()).width,n.height)}return function(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return d;var r,i=f(t).getComputedStyle(t),o=function t(e){for(var n={},r=0,i=["top","right","bottom","left"];r<i.length;r++){var o=i[r],s=e["padding-"+o];n[o]=l(s)}return n}(i),s=o.left+o.right,c=o.top+o.bottom,u=l(i.width),a=l(i.height);if("border-box"===i.boxSizing&&(Math.round(u+s)!==e&&(u-=v(i,"left","right")+s),Math.round(a+c)!==n&&(a-=v(i,"top","bottom")+c)),r=t,r!==f(r).document.documentElement){var h=Math.round(u+s)-e,p=Math.round(a+c)-n;1!==Math.abs(h)&&(u-=h),1!==Math.abs(p)&&(a-=p)}return _(o.left,o.top,u,a)}(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}(),m=function(t,e){var n,r,i,o,s,c,u=(r=e.x,i=e.y,o=e.width,s=e.height,c=Object.create(("undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype),h(c,{x:r,y:i,width:o,height:s,top:i,right:r+o,bottom:s+i,left:r}),c);h(this,{target:t,contentRect:u})},g=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new r,"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 b(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 m(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}(),y="undefined"!=typeof WeakMap?new WeakMap:new r,w=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=a.getInstance(),r=new g(e,n,this);y.set(this,r)};["observe","unobserve","disconnect"].forEach(function(t){w.prototype[t]=function(){var e;return(e=y.get(this))[t].apply(e,arguments)}});var E=void 0!==o.ResizeObserver?o.ResizeObserver:w;e.default=E}}]);