1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
(this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[]).push([[13],{150:function(e,t,n){var a=n(152).Symbol;e.exports=a},151:function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},152:function(e,t,n){var a=n(171),c="object"==typeof self&&self&&self.Object===Object&&self,r=a||c||Function("return this")();e.exports=r},156:function(e,t,n){"use strict";var a={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=a.F1&&t<=a.F12)return!1;switch(t){case a.ALT:case a.CAPS_LOCK:case a.CONTEXT_MENU:case a.CTRL:case a.DOWN:case a.END:case a.ESC:case a.HOME:case a.INSERT:case a.LEFT:case a.MAC_FF_META:case a.META:case a.NUMLOCK:case a.NUM_CENTER:case a.PAGE_DOWN:case a.PAGE_UP:case a.PAUSE:case a.PRINT_SCREEN:case a.RIGHT:case a.SHIFT:case a.UP:case a.WIN_KEY:case a.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=a.ZERO&&e<=a.NINE)return!0;if(e>=a.NUM_ZERO&&e<=a.NUM_MULTIPLY)return!0;if(e>=a.A&&e<=a.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case a.SPACE:case a.QUESTION_MARK:case a.NUM_PLUS:case a.NUM_MINUS:case a.NUM_PERIOD:case a.NUM_DIVISION:case a.SEMICOLON:case a.DASH:case a.EQUALS:case a.COMMA:case a.PERIOD:case a.SLASH:case a.APOSTROPHE:case a.SINGLE_QUOTE:case a.OPEN_SQUARE_BRACKET:case a.BACKSLASH:case a.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.a=a},160:function(e,t,n){var a=n(172),c=n(151),r=n(161),o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return NaN;if(c(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=c(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=a(e);var n=i.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):o.test(e)?NaN:+e}},161:function(e,t,n){var a=n(174),c=n(177);e.exports=function(e){return"symbol"==typeof e||c(e)&&"[object Symbol]"==a(e)}},169:function(e,t,n){var a=n(151),c=n(170),r=n(160),o=Math.max,i=Math.min;e.exports=function(e,t,n){var s,u,l,f,p,E,d=0,N=!1,O=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=s,a=u;return s=u=void 0,d=t,f=e.apply(a,n)}function b(e){return d=e,p=setTimeout(y,t),N?m(e):f}function S(e){var n=e-E;return void 0===E||n>=t||n<0||O&&e-d>=l}function y(){var e=c();if(S(e))return g(e);p=setTimeout(y,function(e){var n=t-(e-E);return O?i(n,l-(e-d)):n}(e))}function g(e){return p=void 0,v&&s?m(e):(s=u=void 0,f)}function C(){var e=c(),n=S(e);if(s=arguments,u=this,E=e,n){if(void 0===p)return b(E);if(O)return clearTimeout(p),p=setTimeout(y,t),m(E)}return void 0===p&&(p=setTimeout(y,t)),f}return t=r(t)||0,a(n)&&(N=!!n.leading,l=(O="maxWait"in n)?o(r(n.maxWait)||0,t):l,v="trailing"in n?!!n.trailing:v),C.cancel=function(){void 0!==p&&clearTimeout(p),d=0,s=E=u=p=void 0},C.flush=function(){return void 0===p?f:g(c())},C}},170:function(e,t,n){var a=n(152);e.exports=function(){return a.Date.now()}},171:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(116))},172:function(e,t,n){var a=n(173),c=/^\s+/;e.exports=function(e){return e?e.slice(0,a(e)+1).replace(c,""):e}},173:function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},174:function(e,t,n){var a=n(150),c=n(175),r=n(176),o=a?a.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?c(e):r(e)}},175:function(e,t,n){var a=n(150),c=Object.prototype,r=c.hasOwnProperty,o=c.toString,i=a?a.toStringTag:void 0;e.exports=function(e){var t=r.call(e,i),n=e[i];try{e[i]=void 0;var a=!0}catch(s){}var c=o.call(e);return a&&(t?e[i]=n:delete e[i]),c}},176:function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},177:function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},181:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(5),c=n(0);function r(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,s=n.postState,u=c.useState((function(){return void 0!==o?o:void 0!==r?"function"===typeof r?r():r:"function"===typeof e?e():e})),l=Object(a.a)(u,2),f=l[0],p=l[1],E=void 0!==o?o:f;s&&(E=s(E));var d=c.useRef(!0);return c.useEffect((function(){d.current?d.current=!1:void 0===o&&p(o)}),[o]),[E,function(e){p(e),E!==e&&i&&i(e,E)}]}},187:function(e,t,n){"use strict";var a=n(2),c=n(3),r=n(12),o=n(13),i=n(14),s=n(15),u=n(0),l=n(7),f=n.n(l),p=n(90),E=n(169),d=n.n(E),N=n(41),O=n(37),v=n(62),m=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(a=Object.getOwnPropertySymbols(e);c<a.length;c++)t.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(e,a[c])&&(n[a[c]]=e[a[c]])}return n},b=(Object(O.a)("small","default","large"),null);var S=function(e){Object(i.a)(n,e);var t=Object(s.a)(n);function n(e){var o;Object(r.a)(this,n),(o=t.call(this,e)).debouncifyUpdateSpinning=function(e){var t=(e||o.props).delay;t&&(o.cancelExistingSpin(),o.updateSpinning=d()(o.originalUpdateSpinning,t))},o.updateSpinning=function(){var e=o.props.spinning;o.state.spinning!==e&&o.setState({spinning:e})},o.renderSpin=function(e){var t,n=e.direction,r=o.props,i=r.spinPrefixCls,s=r.className,l=r.size,E=r.tip,d=r.wrapperClassName,N=r.style,O=m(r,["spinPrefixCls","className","size","tip","wrapperClassName","style"]),S=o.state.spinning,y=f()(i,(t={},Object(c.a)(t,"".concat(i,"-sm"),"small"===l),Object(c.a)(t,"".concat(i,"-lg"),"large"===l),Object(c.a)(t,"".concat(i,"-spinning"),S),Object(c.a)(t,"".concat(i,"-show-text"),!!E),Object(c.a)(t,"".concat(i,"-rtl"),"rtl"===n),t),s),g=Object(p.a)(O,["spinning","delay","indicator","prefixCls"]),C=u.createElement("div",Object(a.a)({},g,{style:N,className:y,"aria-live":"polite","aria-busy":S}),function(e,t){var n=t.indicator,a="".concat(e,"-dot");return null===n?null:Object(v.b)(n)?Object(v.a)(n,{className:f()(n.props.className,a)}):Object(v.b)(b)?Object(v.a)(b,{className:f()(b.props.className,a)}):u.createElement("span",{className:f()(a,"".concat(e,"-dot-spin"))},u.createElement("i",{className:"".concat(e,"-dot-item")}),u.createElement("i",{className:"".concat(e,"-dot-item")}),u.createElement("i",{className:"".concat(e,"-dot-item")}),u.createElement("i",{className:"".concat(e,"-dot-item")}))}(i,o.props),E?u.createElement("div",{className:"".concat(i,"-text")},E):null);if(o.isNestedPattern()){var T=f()("".concat(i,"-container"),Object(c.a)({},"".concat(i,"-blur"),S));return u.createElement("div",Object(a.a)({},g,{className:f()("".concat(i,"-nested-loading"),d)}),S&&u.createElement("div",{key:"loading"},C),u.createElement("div",{className:T,key:"container"},o.props.children))}return C};var i=e.spinning,s=function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(i,e.delay);return o.state={spinning:i&&!s},o.originalUpdateSpinning=o.updateSpinning,o.debouncifyUpdateSpinning(e),o}return Object(o.a)(n,[{key:"componentDidMount",value:function(){this.updateSpinning()}},{key:"componentDidUpdate",value:function(){this.debouncifyUpdateSpinning(),this.updateSpinning()}},{key:"componentWillUnmount",value:function(){this.cancelExistingSpin()}},{key:"cancelExistingSpin",value:function(){var e=this.updateSpinning;e&&e.cancel&&e.cancel()}},{key:"isNestedPattern",value:function(){return!(!this.props||"undefined"===typeof this.props.children)}},{key:"render",value:function(){return u.createElement(N.a,null,this.renderSpin)}}]),n}(u.Component);S.defaultProps={spinning:!0,size:"default",wrapperClassName:""};var y=function(e){var t=e.prefixCls,n=(0,u.useContext(N.b).getPrefixCls)("spin",t),c=Object(a.a)(Object(a.a)({},e),{spinPrefixCls:n});return u.createElement(S,c)};y.setDefaultIndicator=function(e){b=e},t.a=y},206:function(e,t,n){"use strict";function a(e){return Object.keys(e).reduce((function(t,n){return!n.startsWith("data-")&&!n.startsWith("aria-")&&"role"!==n||n.startsWith("data-__")||(t[n]=e[n]),t}),{})}n.d(t,"a",(function(){return a}))},417:function(e,t,n){"use strict";var a=n(2),c=n(3),r=n(5),o=n(0),i=n(63),s=n(66),u=n(54),l=n(67),f=n(68),p=n(95),E=n(96),d=n(102),N=n(92),O=n(93),v=n(7),m=n.n(v),b=n(41),S=n(206),y=n(12),g=n(13),C=n(14),T=n(15),M=function(e){Object(C.a)(n,e);var t=Object(T.a)(n);function n(){var e;return Object(y.a)(this,n),(e=t.apply(this,arguments)).state={error:void 0,info:{componentStack:""}},e}return Object(g.a)(n,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){var e=this.props,t=e.message,n=e.description,a=e.children,c=this.state,r=c.error,i=c.info,s=i&&i.componentStack?i.componentStack:null,u="undefined"===typeof t?(r||"").toString():t,l="undefined"===typeof n?s:n;return r?o.createElement(A,{type:"error",message:u,description:o.createElement("pre",null,l)}):a}}]),n}(o.Component),U=n(62),j=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(a=Object.getOwnPropertySymbols(e);c<a.length;c++)t.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(e,a[c])&&(n[a[c]]=e[a[c]])}return n},_={success:p.a,info:d.a,error:N.a,warning:E.a},I={success:s.a,info:l.a,error:f.a,warning:u.a},h=function(e){var t,n=e.description,s=e.prefixCls,u=e.message,l=e.banner,f=e.className,p=void 0===f?"":f,E=e.style,d=e.onMouseEnter,N=e.onMouseLeave,v=e.onClick,y=e.afterClose,g=e.showIcon,C=e.closable,T=e.closeText,M=e.closeIcon,h=void 0===M?o.createElement(i.a,null):M,A=e.action,P=j(e,["description","prefixCls","message","banner","className","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),x=o.useState(!1),R=Object(r.a)(x,2),L=R[0],w=R[1],F=o.useRef(),K=o.useContext(b.b),H=K.getPrefixCls,k=K.direction,D=H("alert",s),W=function(e){var t;w(!0),null===(t=P.onClose)||void 0===t||t.call(P,e)},G=!!T||C,Q=function(){var e=P.type;return void 0!==e?e:l?"warning":"info"}(),B=!(!l||void 0!==g)||g,V=m()(D,"".concat(D,"-").concat(Q),(t={},Object(c.a)(t,"".concat(D,"-with-description"),!!n),Object(c.a)(t,"".concat(D,"-no-icon"),!B),Object(c.a)(t,"".concat(D,"-banner"),!!l),Object(c.a)(t,"".concat(D,"-rtl"),"rtl"===k),t),p),Y=Object(S.a)(P);return o.createElement(O.b,{visible:!L,motionName:"".concat(D,"-motion"),motionAppear:!1,motionEnter:!1,onLeaveStart:function(e){return{maxHeight:e.offsetHeight}},onLeaveEnd:y},(function(e){var t=e.className,r=e.style;return o.createElement("div",Object(a.a)({ref:F,"data-show":!L,className:m()(V,t),style:Object(a.a)(Object(a.a)({},E),r),onMouseEnter:d,onMouseLeave:N,onClick:v,role:"alert"},Y),B?function(){var e=P.icon,t=(n?I:_)[Q]||null;return e?Object(U.c)(e,o.createElement("span",{className:"".concat(D,"-icon")},e),(function(){return{className:m()("".concat(D,"-icon"),Object(c.a)({},e.props.className,e.props.className))}})):o.createElement(t,{className:"".concat(D,"-icon")})}():null,o.createElement("div",{className:"".concat(D,"-content")},u?o.createElement("div",{className:"".concat(D,"-message")},u):null,n?o.createElement("div",{className:"".concat(D,"-description")},n):null),A?o.createElement("div",{className:"".concat(D,"-action")},A):null,G?o.createElement("button",{type:"button",onClick:W,className:"".concat(D,"-close-icon"),tabIndex:0},T?o.createElement("span",{className:"".concat(D,"-close-text")},T):h):null)}))};h.ErrorBoundary=M;var A=t.a=h}}]); |