beancount-gs/public/static/js/16.2ad77b34.chunk.js

2 lines
38 KiB
JavaScript
Raw Normal View History

2022-07-26 14:30:48 +00:00
/*! For license information please see 16.2ad77b34.chunk.js.LICENSE.txt */
(this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[]).push([[16],{208:function(e,t,n){"use strict";var r=n(2),o=n(7),a=n(0);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){return(f="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 d(e,t){if(t&&("object"===f(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}var m=function(e){return+setTimeout(e,16)},v=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(m=function(e){return window.requestAnimationFrame(e)},v=function(e){return window.cancelAnimationFrame(e)});var h=0,y=new Map;function b(e){y.delete(e)}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=h+=1;function r(t){if(0===t)b(n),e();else{var o=m((function(){r(t-1)}));y.set(n,o)}}return r(t),n}g.cancel=function(e){var t=y.get(e);return b(t),v(t)};var E=n(25),O=n.n(E);function C(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}var w,N=Object(a.forwardRef)((function(e,t){var n=e.didUpdate,r=e.getContainer,o=e.children,c=Object(a.useRef)(),i=Object(a.useRef)();Object(a.useImperativeHandle)(t,(function(){return{}}));var u=Object(a.useRef)(!1);return!u.current&&C()&&(i.current=r(),c.current=i.current.parentNode,u.current=!0),Object(a.useEffect)((function(){null===n||void 0===n||n(e)})),Object(a.useEffect)((function(){return null===i.current.parentNode&&null!==c.current&&c.current.appendChild(i.current),function(){var e,t;null===(e=i.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(i.current)}}),[]),i.current?O.a.createPortal(o,i.current):null}));function j(e){if("undefined"===typeof document)return 0;if(e||void 0===w){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;o===a&&(a=n.clientWidth),document.body.removeChild(n),w=o-a}return w}var T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return{};var n=t.element,r=void 0===n?document.body:n,o={},a=Object.keys(e);return a.forEach((function(e){o[e]=r.style[e]})),a.forEach((function(t){r.style[t]=e[t]})),o};var k={},x=function(e){if(document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth||e){var t="ant-scrolling-effect",n=new RegExp("".concat(t),"g"),r=document.body.className;if(e){if(!n.test(r))return;return T(k),k={},voi