text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports["rc-dialog"]=t(require("react"),require("react-dom")):e["rc-dialog"]=t(e.React,e.ReactDOM)}("undefined"!=typeof self?self:this,function(e,t){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=21)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";var o={isAppearSupported:function(e){return e.transitionName&&e.transitionAppear||e.animation.appear},isEnterSupported:function(e){return e.transitionName&&e.transitionEnter||e.animation.enter},isLeaveSupported:function(e){return e.transitionName&&e.transitionLeave||e.animation.leave},allowAppearCallback:function(e){return e.transitionAppear||e.animation.appear},allowEnterCallback:function(e){return e.transitionEnter||e.animation.enter},allowLeaveCallback:function(e){return e.transitionLeave||e.animation.leave}};t.a=o},function(e,t,n){"use strict";function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.element,o=void 0===n?document.body:n,r={},i=Object.keys(e);return i.forEach(function(e){r[e]=o.style[e]}),i.forEach(function(t){o.style[t]=e[t]}),r}t.a=o},function(e,t,n){"use strict";e.exports=n(5)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=(n.n(o),n(6)),i=n(16),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};t.default=function(e){var t=e.visible,n=e.getContainer,c=e.forceRender;return!1===n?o.createElement(r.a,a({},e,{getOpenCount:function(){return 2}})):o.createElement(i.a,{visible:t,forceRender:c,getContainer:n},function(t){return o.createElement(r.a,a({},e,t))})}},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],o="scroll"+(t?"Top":"Left");if("number"!=typeof n){var r=e.document;n=r.documentElement[o],"number"!=typeof n&&(n=r.body[o])}return n}function c(e,t){var n=e.style;["Webkit","Moz","Ms","ms"].forEach(function(e){n[e+"TransformOrigin"]=t}),n.transformOrigin=t}function s(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow;return n.left+=a(r),n.top+=a(r,!0),n}var u=n(0),l=(n.n(u),n(1)),f=(n.n(l),n(7)),p=n(8),d=n(9),m=n(15),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},v=0,h=function(e){function t(n){o(this,t);var i=r(this,e.call(this,n));return i.inTransition=!1,i.onAnimateLeave=function(){var e=i.props,t=e.afterClose,n=e.getOpenCount;i.wrap&&(i.wrap.style.display="none"),i.inTransition=!1,n()||i.switchScrollingEffect(),t&&t()},i.onDialogMouseDown=function(){i.dialogMouseDown=!0},i.onMaskMouseUp=function(){i.dialogMouseDown&&(i.timeoutId=setTimeout(function(){i.dialogMouseDown=!1},0))},i.onMaskClick=function(e){Date.now()-i.openTime<300||e.target!==e.currentTarget||i.dialogMouseDown||i.close(e)},i.onKeyDown=function(e){var t=i.props;if(t.keyboard&&e.keyCode===f.a.ESC)return e.stopPropagation(),void i.close(e);if(t.visible&&e.keyCode===f.a.TAB){var n=document.activeElement,o=i.sentinelStart;e.shiftKey?n===o&&i.sentinelEnd.focus():n===i.sentinelEnd&&o.focus()}},i.getDialogElement=function(){var e=i.props,t=e.closable,n=e.prefixCls,o={};void 0!==e.width&&(o.width=e.width),void 0!==e.height&&(o.height=e.height);var r=void 0;e.footer&&(r=u.createElement("div",{className:n+"-footer",ref:i.saveRef("footer")},e.footer));var a=void 0;e.title&&(a=u.createElement("div",{className:n+"-header",ref:i.saveRef("header")},u.createElement("div",{className:n+"-title",id:i.titleId},e.title)));var c=void 0;t&&(c=u.createElement("button",{type:"button",onClick:i.close,"aria-label":"Close",className:n+"-close"},e.closeIcon||u.createElement("span",{className:n+"-close-x"})));var s=y({},e.style,o),l={width:0,height:0,overflow:"hidden",outline:"none"},f=i.getTransitionName(),p=u.createElement(m.a,{key:"dialog-element",role:"document",ref:i.saveRef("dialog"),style:s,className:n+" "+(e.className||""),visible:e.visible,forceRender:e.forceRender,onMouseDown:i.onDialogMouseDown},u.createElement("div",{tabIndex:0,ref:i.saveRef("sentinelStart"),style:l,"aria-hidden":"true"}),u.createElement("div",{className:n+"-content"},c,a,u.createElement("div",y({className:n+"-body",style:e.bodyStyle,ref:i.saveRef("body")},e.bodyProps),e.children),r),u.createElement("div",{tabIndex:0,ref:i.saveRef("sentinelEnd"),style:l,"aria-hidden":"true"}));return u.createElement(d.a,{key:"dialog",showProp:"visible",onLeave:i.onAnimateLeave,transitionName:f,component:"",transitionAppear:!0},e.visible||!e.destroyOnClose?p:null)},i.getZIndexStyle=function(){var e={},t=i.props;return void 0!==t.zIndex&&(e.zIndex=t.zIndex),e},i.getWrapStyle=function(){return y({},i.getZIndexStyle(),i.props.wrapStyle)},i.getMaskStyle=function(){return y({},i.getZIndexStyle(),i.props.maskStyle)},i.getMaskElement=function(){var e=i.props,t=void 0;if(e.mask){var n=i.getMaskTransitionName();t=u.createElement(m.a,y({style:i.getMaskStyle(),key:"mask",className:e.prefixCls+"-mask",hiddenClassName:e.prefixCls+"-mask-hidden",visible:e.visible},e.maskProps)),n&&(t=u.createElement(d.a,{key:"mask",showProp:"visible",transitionAppear:!0,component:"",transitionName:n},t))}return t},i.getMaskTransitionName=function(){var e=i.props,t=e.maskTransitionName,n=e.maskAnimation;return!t&&n&&(t=e.prefixCls+"-"+n),t},i.getTransitionName=function(){var e=i.props,t=e.transitionName,n=e.animation;return!t&&n&&(t=e.prefixCls+"-"+n),t},i.close=function(e){var t=i.props.onClose;t&&t(e)},i.saveRef=function(e){return function(t){i[e]=t}},i.titleId="rcDialogTitle"+v++,i.switchScrollingEffect=n.switchScrollingEffect||function(){},i}return i(t,e),t.prototype.componentDidMount=function(){this.componentDidUpdate({}),(this.props.forceRender||!1===this.props.getContainer&&!this.props.visible)&&this.wrap&&(this.wrap.style.display="none")},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.visible,o=t.mask,r=t.focusTriggerAfterClose,i=this.props.mousePosition;if(n){if(!e.visible){this.openTime=Date.now(),this.switchScrollingEffect(),this.tryFocus();var a=l.findDOMNode(this.dialog);if(i){var u=s(a);c(a,i.x-u.left+"px "+(i.y-u.top)+"px")}else c(a,"")}}else if(e.visible&&(this.inTransition=!0,o&&this.lastOutSideFocusNode&&r)){try{this.lastOutSideFocusNode.focus()}catch(e){this.lastOutSideFocusNode=null}this.lastOutSideFocusNode=null}},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visible,n=e.getOpenCount;!t&&!this.inTransition||n()||this.switchScrollingEffect(),clearTimeout(this.timeoutId)},t.prototype.tryFocus=function(){Object(p.a)(this.wrap,document.activeElement)||(this.lastOutSideFocusNode=document.activeElement,this.sentinelStart.focus())},t.prototype.render=function(){var e=this.props,t=e.prefixCls,n=e.maskClosable,o=this.getWrapStyle();return e.visible&&(o.display=null),u.createElement("div",{className:t+"-root"},this.getMaskElement(),u.createElement("div",y({tabIndex:-1,onKeyDown:this.onKeyDown,className:t+"-wrap "+(e.wrapClassName||""),ref:this.saveRef("wrap"),onClick:n?this.onMaskClick:null,onMouseUp:n?this.onMaskMouseUp:null,role:"dialog","aria-labelledby":e.title?this.titleId:null,style:o},e.wrapProps),this.getDialogElement()))},t}(u.Component);t.a=h,h.defaultProps={className:"",mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",focusTriggerAfterClose:!0}},function(e,t,n){"use strict";var o={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>=o.F1&&t<=o.F12)return!1;switch(t){case o.ALT:case o.CAPS_LOCK:case o.CONTEXT_MENU:case o.CTRL:case o.DOWN:case o.END:case o.ESC:case o.HOME:case o.INSERT:case o.LEFT:case o.MAC_FF_META:case o.META:case o.NUMLOCK:case o.NUM_CENTER:case o.PAGE_DOWN:case o.PAGE_UP:case o.PAUSE:case o.PRINT_SCREEN:case o.RIGHT:case o.SHIFT:case o.UP:case o.WIN_KEY:case o.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=o.ZERO&&e<=o.NINE)return!0;if(e>=o.NUM_ZERO&&e<=o.NUM_MULTIPLY)return!0;if(e>=o.A&&e<=o.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case o.SPACE:case o.QUESTION_MARK:case o.NUM_PLUS:case o.NUM_MINUS:case o.NUM_PERIOD:case o.NUM_DIVISION:case o.SEMICOLON:case o.DASH:case o.EQUALS:case o.COMMA:case o.PERIOD:case o.SLASH:case o.APOSTROPHE:case o.SINGLE_QUOTE:case o.OPEN_SQUARE_BRACKET:case o.BACKSLASH:case o.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.a=o},function(e,t,n){"use strict";function o(e,t){for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}t.a=o},function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function c(e){var t=e.children;return l.a.isValidElement(t)&&!t.key?l.a.cloneElement(t,{key:h}):t}function s(){}var u=n(0),l=n.n(u),f=n(10),p=n(11),d=n(12),m=n(2),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},v=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),h="rc_animate_"+Date.now(),b=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return E.call(n),n.currentlyAnimatingKeys={},n.keysToEnter=[],n.keysToLeave=[],n.state={children:Object(p.e)(c(e))},n.childrenRefs={},n}return a(t,e),v(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.showProp,n=this.state.children;t&&(n=n.filter(function(e){return!!e.props[t]})),n.forEach(function(t){t&&e.performAppear(t.key)})}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.nextProps=e;var n=Object(p.e)(c(e)),r=this.props;r.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach(function(e){t.stop(e)});var i=r.showProp,a=this.currentlyAnimatingKeys,s=r.exclusive?Object(p.e)(c(r)):this.state.children,u=[];i?(s.forEach(function(e){var t=e&&Object(p.a)(n,e.key),r=void 0;(r=t&&t.props[i]||!e.props[i]?t:l.a.cloneElement(t||e,o({},i,!0)))&&u.push(r)}),n.forEach(function(e){e&&Object(p.a)(s,e.key)||u.push(e)})):u=Object(p.d)(s,n),this.setState({children:u}),n.forEach(function(e){var n=e&&e.key;if(!e||!a[n]){var o=e&&Object(p.a)(s,n);if(i){var r=e.props[i];if(o){!Object(p.b)(s,n,i)&&r&&t.keysToEnter.push(n)}else r&&t.keysToEnter.push(n)}else o||t.keysToEnter.push(n)}}),s.forEach(function(e){var o=e&&e.key;if(!e||!a[o]){var r=e&&Object(p.a)(n,o);if(i){var c=e.props[i];if(r){!Object(p.b)(n,o,i)&&c&&t.keysToLeave.push(o)}else c&&t.keysToLeave.push(o)}else r||t.keysToLeave.push(o)}})}},{key:"componentDidUpdate",value:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(e,t){var n=this.props.showProp;return n?Object(p.b)(e,t,n):Object(p.a)(e,t)}},{key:"stop",value:function(e){delete this.currentlyAnimatingKeys[e];var t=this.childrenRefs[e];t&&t.stop()}},{key:"render",value:function(){var e=this,t=this.props;this.nextProps=t;var n=this.state.children,o=null;n&&(o=n.map(function(n){if(null===n||void 0===n)return n;if(!n.key)throw new Error("must set key for <rc-animate> children");return l.a.createElement(d.a,{key:n.key,ref:function(t){e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)}));var r=t.component;if(r){var i=t;return"string"==typeof r&&(i=y({className:t.className,style:t.style},t.componentProps)),l.a.createElement(r,i,o)}return o[0]||null}}]),t}(l.a.Component);b.isAnimate=!0,b.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:s,onEnter:s,onLeave:s,onAppear:s};var E=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var o=e.props;if(delete e.currentlyAnimatingKeys[t],!o.exclusive||o===e.nextProps){var r=Object(p.e)(c(o));e.isValidChildByKey(r,t)?"appear"===n?m.a.allowAppearCallback(o)&&(o.onAppear(t),o.onEnd(t,!0)):m.a.allowEnterCallback(o)&&(o.onEnter(t),o.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var o=Object(p.e)(c(n));if(e.isValidChildByKey(o,t))e.performEnter(t);else{var r=function(){m.a.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};Object(p.c)(e.state.children,o,n.showProp)?r():e.setState({children:o},r)}}}};t.a=Object(f.a)(b)},function(e,t,n){"use strict";var o=n(0),r=n.n(o),i=function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");return"function"!=typeof t.componentWillReceiveProps?e:r.a.Profiler?(t.UNSAFE_componentWillReceiveProps=t.componentWillReceiveProps,delete t.componentWillReceiveProps,e):e};t.a=i},function(e,t,n){"use strict";function o(e){var t=[];return u.a.Children.forEach(e,function(e){t.push(e)}),t}function r(e,t){var n=null;return e&&e.forEach(function(e){n||e&&e.key===t&&(n=e)}),n}function i(e,t,n){var o=null;return e&&e.forEach(function(e){if(e&&e.key===t&&e.props[n]){if(o)throw new Error("two child with same key for <rc-animate> children");o=e}}),o}function a(e,t,n){var o=e.length===t.length;return o&&e.forEach(function(e,r){var i=t[r];e&&i&&(e&&!i||!e&&i?o=!1:e.key!==i.key?o=!1:n&&e.props[n]!==i.props[n]&&(o=!1))}),o}function c(e,t){var n=[],o={},i=[];return e.forEach(function(e){e&&r(t,e.key)?i.length&&(o[e.key]=i,i=[]):i.push(e)}),t.forEach(function(e){e&&Object.prototype.hasOwnProperty.call(o,e.key)&&(n=n.concat(o[e.key])),n.push(e)}),n=n.concat(i)}t.e=o,t.a=r,t.b=i,t.c=a,t.d=c;var s=n(0),u=n.n(s)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),l=n(13),f=n(2),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),d={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},m=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),p(t,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(e){f.a.isEnterSupported(this.props)?this.transition("enter",e):e()}},{key:"componentWillAppear",value:function(e){f.a.isAppearSupported(this.props)?this.transition("appear",e):e()}},{key:"componentWillLeave",value:function(e){f.a.isLeaveSupported(this.props)?this.transition("leave",e):e()}},{key:"transition",value:function(e,t){var n=this,o=u.a.findDOMNode(this),r=this.props,i=r.transitionName,a="object"==typeof i;this.stop();var c=function(){n.stopper=null,t()};if((l.b||!r.animation[e])&&i&&r[d[e]]){var s=a?i[e]:i+"-"+e,f=s+"-active";a&&i[e+"Active"]&&(f=i[e+"Active"]),this.stopper=Object(l.a)(o,{name:s,active:f},c)}else this.stopper=r.animation[e](o,c)}},{key:"stop",value:function(){var e=this.stopper;e&&(this.stopper=null,e.stop())}},{key:"render",value:function(){return this.props.children}}]),t}(c.a.Component);t.a=m},function(e,t,n){"use strict";function o(e,t){for(var n=window.getComputedStyle(e,null),o="",r=0;r<l.length&&!(o=n.getPropertyValue(l[r]+t));r++);return o}function r(e){if(s){var t=parseFloat(o(e,"transition-delay"))||0,n=parseFloat(o(e,"transition-duration"))||0,r=parseFloat(o(e,"animation-delay"))||0,i=parseFloat(o(e,"animation-duration"))||0,a=Math.max(n+t,i+r);e.rcEndAnimTimeout=setTimeout(function(){e.rcEndAnimTimeout=null,e.rcEndListener&&e.rcEndListener()},1e3*a+200)}}function i(e){e.rcEndAnimTimeout&&(clearTimeout(e.rcEndAnimTimeout),e.rcEndAnimTimeout=null)}n.d(t,"b",function(){return s});var a=n(14),c="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},s=0!==a.a.endEvents.length,u=["Webkit","Moz","O","ms"],l=["-webkit-","-moz-","-o-","ms-",""],f=function(e,t,n){var o="object"===(void 0===t?"undefined":c(t)),s=o?t.name:t,u=o?t.active:t+"-active",l=n,f=void 0,p=void 0;return n&&"[object Object]"===Object.prototype.toString.call(n)&&(l=n.end,f=n.start,p=n.active),e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),i(e),e.classList.remove(s),e.classList.remove(u),a.a.removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,l&&l())},a.a.addEndEventListener(e,e.rcEndListener),f&&f(),e.classList.add(s),e.rcAnimTimeout=setTimeout(function(){e.rcAnimTimeout=null,e.classList.add(u),p&&setTimeout(p,0),r(e)},30),{stop:function(){e.rcEndListener&&e.rcEndListener()}}};f.style=function(e,t,n){e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),i(e),a.a.removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,n&&n())},a.a.addEndEventListener(e,e.rcEndListener),e.rcAnimTimeout=setTimeout(function(){for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);e.rcAnimTimeout=null,r(e)},0)},f.setTransition=function(e,t,n){var o=t,r=n;void 0===n&&(r=o,o=""),o=o||"",u.forEach(function(t){e.style[t+"Transition"+o]=r})},f.isCssAnimationSupported=s,t.a=f},function(e,t,n){"use strict";function o(e,t,n){e.addEventListener(t,n,!1)}function r(e,t,n){e.removeEventListener(t,n,!1)}var i={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},a={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},c=[],s=[];"undefined"!=typeof window&&"undefined"!=typeof document&&function(){function e(e,t){for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];for(var i in r)if(i in n){t.push(r[i]);break}}}var t=document.createElement("div"),n=t.style;"AnimationEvent"in window||(delete i.animationstart.animation,delete a.animationend.animation),"TransitionEvent"in window||(delete i.transitionstart.transition,delete a.transitionend.transition),e(i,c),e(a,s)}();var u={startEvents:c,addStartEventListener:function(e,t){if(0===c.length)return void window.setTimeout(t,0);c.forEach(function(n){o(e,n,t)})},removeStartEventListener:function(e,t){0!==c.length&&c.forEach(function(n){r(e,n,t)})},endEvents:s,addEndEventListener:function(e,t){if(0===s.length)return void window.setTimeout(t,0);s.forEach(function(n){o(e,n,t)})},removeEndEventListener:function(e,t){0!==s.length&&s.forEach(function(n){r(e,n,t)})}};t.a=u},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=(n.n(a),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}),s=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]]);return n},u=function(e){function t(){return o(this,t),r(this,e.apply(this,arguments))}return i(t,e),t.prototype.shouldComponentUpdate=function(e){return!!e.forceRender||(!!e.hiddenClassName||!!e.visible)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.hiddenClassName,o=e.visible,r=(e.forceRender,s(e,["className","hiddenClassName","visible","forceRender"])),i=t;return n&&!o&&(i+=" "+n),a.createElement("div",c({},r,{className:i}))},t}(a.Component);t.a=u},function(e,t,n){"use strict";function o(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 r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=m();return function(){var n,o=y(e);if(t){var r=y(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==v(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e){"@babel/helpers - typeof";return(v="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)}var h=n(0),b=n.n(h),E=n(1),O=n.n(E),g=n(17),w=n(18),C=n(19),S=n(3),T=0,N=!("undefined"!=typeof window&&window.document&&window.document.createElement),_="createPortal"in O.a,A={},k=function(e){if(N)return null;if(e){if("string"==typeof e)return document.querySelectorAll(e)[0];if("function"==typeof e)return e();if("object"===v(e)&&e instanceof window.HTMLElement)return e}return document.body},P=function(e){function t(e){var o;a(this,t),o=n.call(this,e),o.getContainer=function(){if(N)return null;if(!o.container){o.container=document.createElement("div");var e=k(o.props.getContainer);e&&e.appendChild(o.container)}return o.setWrapperClassName(),o.container},o.setWrapperClassName=function(){var e=o.props.wrapperClassName;o.container&&e&&e!==o.container.className&&(o.container.className=e)},o.savePortal=function(e){o._component=e},o.removeCurrentContainer=function(e){o.container=null,o._component=null,_||(e?o.renderComponent({afterClose:o.removeContainer,onClose:function(){},visible:!1}):o.removeContainer())},o.switchScrollingEffect=function(){1!==T||Object.keys(A).length?T||(Object(S.a)(A),A={},Object(C.a)(!0)):(Object(C.a)(),A=Object(S.a)({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"}))};var r=e.visible,i=e.getContainer;return N||k(i)!==document.body||(T=r?T+1:T),o.state={_self:d(o)},o}u(t,e);var n=f(t);return s(t,[{key:"componentDidUpdate",value:function(){this.setWrapperClassName()}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.visible,n=e.getContainer;N||k(n)!==document.body||(T=t&&T?T-1:T),this.removeCurrentContainer(t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.forceRender,i=t.visible,a=null,c={getOpenCount:function(){return T},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect};return _?((o||i||this._component)&&(a=b.a.createElement(w.a,{getContainer:this.getContainer,ref:this.savePortal},n(c))),a):b.a.createElement(g.a,{parent:this,visible:i,autoDestroy:!1,getComponent:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(r(r(r({},t),c),{},{ref:e.savePortal}))},getContainer:this.getContainer,forceRender:o},function(t){var n=t.renderComponent,o=t.removeContainer;return e.renderComponent=n,e.removeContainer=o,null})}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t._self,r=e.visible,i=e.getContainer;if(n){var a=n.visible,c=n.getContainer;r===a||N||k(i)!==document.body||(T=r&&!a?T+1:T-1);("function"==typeof i&&"function"==typeof c?i.toString()!==c.toString():i!==c)&&o.removeCurrentContainer(!1)}return{prevProps:e}}}]),t}(b.a.Component);t.a=P},function(e,t,n){"use strict";function o(e){"@babel/helpers - typeof";return(o="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 r(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 o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=p();return function(){var n,o=d(e);if(t){var r=d(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",function(){return b});var m=n(0),y=n.n(m),v=n(1),h=n.n(v),b=function(e){function t(){var e;r(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=n.call.apply(n,[this].concat(i)),e.removeContainer=function(){e.container&&(h.a.unmountComponentAtNode(e.container),e.container.parentNode.removeChild(e.container),e.container=null)},e.renderComponent=function(t,n){var o=e.props,r=o.visible,i=o.getComponent,a=o.forceRender,c=o.getContainer,s=o.parent;(r||s._component||a)&&(e.container||(e.container=c()),h.a.unstable_renderSubtreeIntoContainer(s,i(t),e.container,function(){n&&n.call(this)}))},e}c(t,e);var n=u(t);return a(t,[{key:"componentDidMount",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentDidUpdate",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentWillUnmount",value:function(){this.props.autoDestroy&&this.removeContainer()}},{key:"render",value:function(){return this.props.children({renderComponent:this.renderComponent,removeContainer:this.removeContainer})}}]),t}(y.a.Component);b.defaultProps={autoMount:!0,autoDestroy:!0,forceRender:!1}},function(e,t,n){"use strict";function o(e){"@babel/helpers - typeof";return(o="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 r(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 o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=p();return function(){var n,o=d(e);if(t){var r=d(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",function(){return b});var m=n(0),y=n.n(m),v=n(1),h=n.n(v),b=function(e){function t(){return r(this,t),n.apply(this,arguments)}c(t,e);var n=u(t);return a(t,[{key:"componentDidMount",value:function(){this.createContainer()}},{key:"componentDidUpdate",value:function(e){var t=this.props.didUpdate;t&&t(e)}},{key:"componentWillUnmount",value:function(){this.removeContainer()}},{key:"createContainer",value:function(){this._container=this.props.getContainer(),this.forceUpdate()}},{key:"removeContainer",value:function(){this._container&&this._container.parentNode.removeChild(this._container)}},{key:"render",value:function(){return this._container?h.a.createPortal(this.props.children,this._container):null}}]),t}(y.a.Component)},function(e,t,n){"use strict";function o(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var r=n(20),i=n(3),a={};t.a=function(e){if(o()||e){var t=new RegExp("".concat("ant-scrolling-effect"),"g"),n=document.body.className;if(e){if(!t.test(n))return;return Object(i.a)(a),a={},void(document.body.className=n.replace(t,"").trim())}var c=Object(r.a)();if(c&&(a=Object(i.a)({position:"relative",width:"calc(100% - ".concat(c,"px)")}),!t.test(n))){var s="".concat(n," ").concat("ant-scrolling-effect");document.body.className=s.trim()}}}},function(e,t,n){"use strict";function o(e){if("undefined"==typeof document)return 0;if(e||void 0===r){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),o=n.style;o.position="absolute",o.top=0,o.left=0,o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var i=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),r=i-a}return r}t.a=o;var r},function(e,t,n){n(4),e.exports=n(22)},function(e,t){}]).default});