rc-drawer
Advanced tools
Comparing version 1.10.1 to 2.0.0-beta.0
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports["rc-drawer"]=e(require("react"),require("react-dom")):t["rc-drawer"]=e(t.React,t.ReactDOM)}("undefined"!=typeof self?self:this,function(t,e){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=49)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(10),o=n(31),i=n(17),a=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(0),o=n(1),i=n(30),a=n(6),s=n(4),c=function(t,e,n){var u,f,l,p=t&c.F,d=t&c.G,h=t&c.S,m=t&c.P,y=t&c.B,v=t&c.W,b=d?o:o[e]||(o[e]={}),g=b.prototype,E=d?r:h?r[e]:(r[e]||{}).prototype;d&&(n=e);for(u in n)(f=!p&&E&&void 0!==E[u])&&s(b,u)||(l=f?E[u]:n[u],b[u]=d&&"function"!=typeof E[u]?n[u]:y&&f?i(l,r):v&&E[u]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):m&&"function"==typeof l?i(Function.call,l):l,m&&((b.virtual||(b.virtual={}))[u]=l,t&c.R&&g&&!g[u]&&a(g,u,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(3),o=n(12);t.exports=n(2)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(34),o=n(18);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(21)("wks"),o=n(15),i=n(0).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(7);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(33),o=n(22);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){t.exports=!0},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(7);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(21)("keys"),o=n(15);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o=n(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(14)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(18);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports={}},function(t,e,n){var r=n(10),o=n(71),i=n(22),a=n(20)("IE_PROTO"),s=function(){},c=function(){var t,e=n(32)("iframe"),r=i.length;for(e.style.display="none",n(72).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(3).f,o=n(4),i=n(9)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){e.f=n(9)},function(t,e,n){var r=n(0),o=n(1),i=n(14),a=n(28),s=n(3).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(57);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){t.exports=!n(2)&&!n(11)(function(){return 7!=Object.defineProperty(n(32)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(7),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(4),o=n(8),i=n(59)(!1),a=n(20)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;e.length>c;)r(s,n=e[c++])&&(~i(u,n)||u.push(n));return u}},function(t,e,n){var r=n(35);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){t.exports={default:n(63),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(36),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){"use strict";e.__esModule=!0;var r=n(40),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(66),i=r(o),a=n(78),s=r(a),c="function"==typeof s.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===c(i.default)?function(t){return void 0===t?"undefined":c(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":c(t)}},function(t,e,n){"use strict";var r=n(14),o=n(5),i=n(42),a=n(6),s=n(25),c=n(70),u=n(27),f=n(73),l=n(9)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,m,y,v){c(n,e,h);var b,g,E,O=function(t){if(!p&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",C="values"==m,S=!1,T=t.prototype,w=T[l]||T["@@iterator"]||m&&T[m],M=w||O(m),N=m?C?O("entries"):M:void 0,x="Array"==e?T.entries||w:w;if(x&&(E=f(x.call(new t)))!==Object.prototype&&E.next&&(u(E,_,!0),r||"function"==typeof E[l]||a(E,l,d)),C&&w&&"values"!==w.name&&(S=!0,M=function(){return w.call(this)}),r&&!v||!p&&!S&&T[l]||a(T,l,M),s[e]=M,s[_]=d,m)if(b={values:C?M:O("values"),keys:y?M:O("keys"),entries:N},v)for(g in b)g in T||i(T,g,b[g]);else o(o.P+o.F*(p||S),e,b);return b}},function(t,e,n){t.exports=n(6)},function(t,e,n){var r=n(33),o=n(22).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(16),o=n(12),i=n(8),a=n(17),s=n(4),c=n(31),u=Object.getOwnPropertyDescriptor;e.f=n(2)?u:function(t,e){if(t=i(t),e=a(e,!0),c)try{return u(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(88),i=r(o),a=n(92),s=r(a),c=n(40),u=r(c);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,u.default)(e)));t.prototype=(0,s.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(i.default?(0,i.default)(t,e):t.__proto__=e)}},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){t.exports=n(95)()},function(t,e,n){n(50),t.exports=n(51)},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(52);e.default=r.a},function(t,e,n){"use strict";var r=n(53),o=n.n(r),i=n(62),a=n.n(i),s=n(65),c=n.n(s),u=n(37),f=n.n(u),l=n(38),p=n.n(l),d=n(39),h=n.n(d),m=n(45),y=n.n(m),v=n(46),b=n.n(v),g=n(47),E=n.n(g),O=n(48),_=n.n(O),C=n(97),S=n.n(C),T=n(98),w=n(99),M=n(100),N=n(101),x="createPortal"in E.a,P={},k=!("undefined"!=typeof window&&window.document&&window.document.createElement),A=function(t){function e(t){f()(this,e);var n=h()(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));j.call(n),n.levelDom=[],n.contentDom=null,n.maskDom=null,n.handlerDom=null,n.firstEnter=t.firstEnter,n.timeout=null,n.drawerId=Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()))).toString(16);var r=void 0!==t.open?t.open:!!t.defaultOpen;return P[n.drawerId]=r,n.state={open:r},n}return y()(e,t),p()(e,[{key:"componentDidMount",value:function(){if(!k){var t=!1;window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return t=!0,null}})),this.passive=!!t&&{passive:!1}}var e=this.getOpen();(this.props.handler||e||this.firstEnter)&&(this.getDefault(this.props),e&&(this.isOpenChange=!0),this.forceUpdate())}},{key:"componentWillReceiveProps",value:function(t){var e=this,n=t.open,r=t.placement,o=t.getContainer;if(void 0!==n&&n!==this.props.open){this.isOpenChange=!0;var i="function"==typeof o&&"function"==typeof this.props.getContainer?this.props.getContainer()===o():this.props.getContainer===o;this.container&&i||this.getDefault(t);var a=n&&!this.props.open;this.setState({open:n},function(){e.domFocus(a)})}r!==this.props.placement&&(this.contentDom=null),this.props.level!==t.level&&this.getParentAndLevelDom(t)}},{key:"componentDidUpdate",value:function(){!this.firstEnter&&this.container&&(this.forceUpdate(),this.firstEnter=!0)}},{key:"componentWillUnmount",value:function(){delete P[this.drawerId],delete this.isOpenChange,this.container&&(this.state.open&&this.setLevelDomTransform(!1,!0),document.body.style.overflow="",this.props.getContainer&&this.container.parentNode.removeChild(this.container)),this.firstEnter=!1,clearTimeout(this.timeout),this.renderComponent&&!x&&this.renderComponent({afterClose:this.removeContainer,onClose:function(){},visible:!1})}},{key:"render",value:function(){var t=this,e=this.props,n=e.getContainer,r=e.wrapperClassName,o=this.getOpen();P[this.drawerId]=o?this.container:o;var i=this.getChildToRender(!!this.firstEnter&&o);return n?this.container&&(o||this.firstEnter)?x?E.a.createPortal(i,this.container):b.a.createElement(T.a,{parent:this,visible:!0,autoMount:!0,autoDestroy:!1,getComponent:function(){return i},getContainer:this.getContainer},function(e){var n=e.renderComponent,r=e.removeContainer;return t.renderComponent=n,t.removeContainer=r,null}):null:b.a.createElement("div",{className:r,ref:function(e){t.props.getContainer||(t.container=e)}},i)}}]),e}(b.a.PureComponent);A.propTypes={wrapperClassName:_.a.string,className:_.a.string,children:_.a.node,style:_.a.object,width:_.a.any,height:_.a.any,defaultOpen:_.a.bool,firstEnter:_.a.bool,open:_.a.bool,prefixCls:_.a.string,placement:_.a.string,level:_.a.oneOfType([_.a.string,_.a.array]),levelMove:_.a.oneOfType([_.a.number,_.a.func,_.a.array]),ease:_.a.string,duration:_.a.string,getContainer:_.a.oneOfType([_.a.string,_.a.func,_.a.object,_.a.bool]),handler:_.a.any,onChange:_.a.func,afterVisibleChange:_.a.func,onMaskClick:_.a.func,onHandleClick:_.a.func,showMask:_.a.bool,maskStyle:_.a.object,keyboard:_.a.bool},A.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:b.a.createElement("div",{className:"drawer-handle"},b.a.createElement("i",{className:"drawer-handle-icon"})),firstEnter:!1,showMask:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0};var j=function(){var t=this;this.onMaskTouchEnd=function(e){var n=t.props.onMaskClick;n&&n(e),t.onTouchEnd(e,!0)},this.onIconTouchEnd=function(e){var n=t.props.onHandleClick;n&&n(e),t.onTouchEnd(e)},this.onTouchEnd=function(e,n){if(void 0===t.props.open){var r=n||t.state.open;t.isOpenChange=!0,t.setState({open:!r},function(){t.domFocus(!r)})}},this.onKeyDown=function(e){if(e.keyCode===M.a.ESC){var n=t.props,r=n.onMaskClick,o=n.onHandleClick;e.stopPropagation();var i=o||r;i?i(e):t.onTouchEnd(e,!0)}},this.onWrapperTransitionEnd=function(e){if(e.target===t.contentWrapper&&e.propertyName.match(/transform$/)){t.dom.style.transition="",!t.state.open&&t.getCurrentDrawerSome()&&(document.body.style.overflowX="",t.maskDom&&(t.maskDom.style.left="",t.maskDom.style.width=""));(0,t.props.afterVisibleChange)(t.state.open)}},this.getDefault=function(e){t.getParentAndLevelDom(e),(e.getContainer||e.parent)&&(t.container=t.defaultGetContainer())},this.getCurrentDrawerSome=function(){return!Object.keys(P).some(function(t){return P[t]})},this.getContainer=function(){return t.container},this.getParentAndLevelDom=function(e){if(!k){var n=e.level,r=e.getContainer;if(t.levelDom=[],r){if("string"==typeof r){var o=document.querySelectorAll(r)[0];t.parent=o}"function"==typeof r&&(t.parent=r()),"object"==typeof r&&r instanceof window.HTMLElement&&(t.parent=r)}if(!r&&t.container&&(t.parent=t.container.parentNode),"all"===n){Array.prototype.slice.call(t.parent.children).forEach(function(e){"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&"LINK"!==e.nodeName&&e!==t.container&&t.levelDom.push(e)})}else n&&Object(N.b)(n).forEach(function(e){document.querySelectorAll(e).forEach(function(e){t.levelDom.push(e)})})}},this.setLevelDomTransform=function(e,n,r,o){var i=t.props,a=i.placement,s=i.levelMove,c=i.duration,u=i.ease,f=i.onChange,l=i.getContainer,p=i.showMask;if(!k){var d=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(w.a)(1):0;if(t.levelDom.forEach(function(i){if(t.isOpenChange||n){i.style.transition="transform "+c+" "+u,Object(N.a)(i,N.f,t.transitionEnd);var f=e?o:0;if(s){var l=Object(N.e)(s,{target:i,open:e});f=e?l[0]:l[1]||0}var h="number"==typeof f?f+"px":f,m="left"===a||"top"===a?h:"-"+h,y="left"===a||"top"===a?"-":"+";m=p&&("left"===a||"right"===a)&&d?"calc("+m+" "+y+" "+d+"px)":m,i.style.transform=f?r+"("+m+")":"",i.style.msTransform=f?r+"("+m+")":""}}),"body"===l&&p){var h=["touchstart"],m=[document.body,t.maskDom,t.handlerDom,t.contentDom],y="width "+c+" "+u,v="transform "+c+" "+u;if(e&&"hidden"!==document.body.style.overflow){if(document.body.style.overflow="hidden",document.body.style.touchAction="none",d){switch(document.body.style.position="relative",document.body.style.width="calc(100% - "+d+"px)",t.dom.style.transition="none",a){case"right":t.dom.style.transform="translateX(-"+d+"px)",t.dom.style.msTransform="translateX(-"+d+"px)";break;case"top":case"bottom":t.dom.style.width="calc(100% - "+d+"px)",t.dom.style.transform="translateZ(0)"}clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.dom.style.transition=v+","+y,t.dom.style.width="",t.dom.style.transform="",t.dom.style.msTransform=""})}m.forEach(function(e,n){e&&Object(N.a)(e,h[n]||"touchmove",n?t.removeMoveHandler:t.removeStartHandler,t.passive)})}else if(t.getCurrentDrawerSome()){if(document.body.style.overflow="",document.body.style.touchAction="",(t.isOpenChange||n)&&d){document.body.style.position="",document.body.style.width="",N.g&&(document.body.style.overflowX="hidden"),t.dom.style.transition="none";var b=void 0;switch(a){case"right":t.dom.style.transform="translateX("+d+"px)",t.dom.style.msTransform="translateX("+d+"px)",t.dom.style.width="100%",y="width 0s "+u+" "+c,t.maskDom&&(t.maskDom.style.left="-"+d+"px",t.maskDom.style.width="calc(100% + "+d+"px)");break;case"top":case"bottom":t.dom.style.width="calc(100% + "+d+"px)",t.dom.style.height="100%",t.dom.style.transform="translateZ(0)",b="height 0s "+u+" "+c}clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.dom.style.transition=v+","+(b?b+",":"")+y,t.dom.style.transform="",t.dom.style.msTransform="",t.dom.style.width="",t.dom.style.height=""})}m.forEach(function(e,n){e&&Object(N.d)(e,h[n]||"touchmove",n?t.removeMoveHandler:t.removeStartHandler,t.passive)})}}}t.isOpenChange&&t.firstEnter&&(f(e),t.isOpenChange=!1)},this.getChildToRender=function(e){var n,r=t.props,i=(r.wrapperClassName,r.className),s=r.children,u=r.style,f=r.width,l=r.height,p=(r.defaultOpen,r.firstEnter,r.open,r.prefixCls),d=r.placement,h=(r.level,r.levelMove,r.ease,r.duration,r.getContainer,r.handler),m=(r.onChange,r.afterVisibleChange,r.onMaskClick,r.onHandleClick,r.showMask),y=r.maskStyle,v=r.keyboard,g=c()(r,["wrapperClassName","className","children","style","width","height","defaultOpen","firstEnter","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","onMaskClick","onHandleClick","showMask","maskStyle","keyboard"]),E=S()(p,(n={},a()(n,p+"-"+d,!0),a()(n,p+"-open",e),a()(n,i,!!i),a()(n,"no-mask",!m),n)),O=t.isOpenChange,_="left"===d||"right"===d,C="translate"+(_?"X":"Y"),T="left"===d||"top"===d?"-100%":"100%",w=e?"":C+"("+T+")";if(void 0===O||O){var M=t.contentDom?t.contentDom.getBoundingClientRect()[_?"width":"height"]:0,x=(_?f:l)||M;t.setLevelDomTransform(e,!1,C,x)}var P=h&&b.a.cloneElement(h,{onClick:function(e){h.props.onClick&&h.props.onClick(),t.onIconTouchEnd(e)},ref:function(e){t.handlerDom=e}});return b.a.createElement("div",o()({},g,{tabIndex:-1,className:E,style:u,ref:function(e){t.dom=e},onKeyDown:e&&v?t.onKeyDown:null,onTransitionEnd:t.onWrapperTransitionEnd}),m&&b.a.createElement("div",{className:p+"-mask",onClick:t.onMaskTouchEnd,style:y,ref:function(e){t.maskDom=e}}),b.a.createElement("div",{className:p+"-content-wrapper",style:{transform:w,msTransform:w,width:Object(N.c)(f)?f+"px":f,height:Object(N.c)(l)?l+"px":l},ref:function(e){t.contentWrapper=e}},b.a.createElement("div",{className:p+"-content",ref:function(e){t.contentDom=e},onTouchStart:e&&m?t.removeStartHandler:null,onTouchMove:e&&m?t.removeMoveHandler:null},s),P))},this.getOpen=function(){return void 0!==t.props.open?t.props.open:t.state.open},this.getTouchParentScroll=function(e,n,r,o){if(!n||n===document)return!1;if(n===e.parentNode)return!0;var i=Math.max(Math.abs(r),Math.abs(o))===Math.abs(o),a=Math.max(Math.abs(r),Math.abs(o))===Math.abs(r),s=n.scrollHeight-n.clientHeight,c=n.scrollWidth-n.clientWidth,u=n.scrollTop,f=n.scrollLeft;n.scrollTop+=1,n.scrollLeft+=1;var l=n.scrollTop,p=n.scrollLeft;return n.scrollTop-=1,n.scrollLeft-=1,!((!i||s&&l-u&&(!s||!(n.scrollTop>=s&&o<0||n.scrollTop<=0&&o>0)))&&(!a||c&&p-f&&(!c||!(n.scrollLeft>=c&&r<0||n.scrollLeft<=0&&r>0))))&&t.getTouchParentScroll(e,n.parentNode,r,o)},this.domFocus=function(e){t.dom&&e&&t.dom.focus()},this.removeStartHandler=function(e){e.touches.length>1||(t.startPos={x:e.touches[0].clientX,y:e.touches[0].clientY})},this.removeMoveHandler=function(e){if(!(e.changedTouches.length>1)){var n=e.currentTarget,r=e.changedTouches[0].clientX-t.startPos.x,o=e.changedTouches[0].clientY-t.startPos.y;(n===t.maskDom||n===t.handlerDom||n===t.contentDom&&t.getTouchParentScroll(n,e.target,r,o))&&e.preventDefault()}},this.transitionEnd=function(e){Object(N.d)(e.target,N.f,t.transitionEnd),e.target.style.transition=""},this.defaultGetContainer=function(){if(k)return null;var e=document.createElement("div");return t.parent.appendChild(e),t.props.wrapperClassName&&(e.className=t.props.wrapperClassName),e}};e.a=A},function(t,e,n){"use strict";e.__esModule=!0;var r=n(54),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){t.exports={default:n(55),__esModule:!0}},function(t,e,n){n(56),t.exports=n(1).Object.assign},function(t,e,n){var r=n(5);r(r.S+r.F,"Object",{assign:n(58)})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=n(2),o=n(13),i=n(23),a=n(16),s=n(24),c=n(34),u=Object.assign;t.exports=!u||n(11)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=s(t),u=arguments.length,f=1,l=i.f,p=a.f;u>f;)for(var d,h=c(arguments[f++]),m=l?o(h).concat(l(h)):o(h),y=m.length,v=0;y>v;)d=m[v++],r&&!p.call(h,d)||(n[d]=h[d]);return n}:u},function(t,e,n){var r=n(8),o=n(60),i=n(61);t.exports=function(t){return function(e,n,a){var s,c=r(e),u=o(c.length),f=i(a,u);if(t&&n!=n){for(;u>f;)if((s=c[f++])!=s)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(19),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(19),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(36),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e,n){return e in t?(0,o.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){n(64);var r=n(1).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(5);r(r.S+r.F*!n(2),"Object",{defineProperty:n(3).f})},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}},function(t,e,n){t.exports={default:n(67),__esModule:!0}},function(t,e,n){n(68),n(74),t.exports=n(28).f("iterator")},function(t,e,n){"use strict";var r=n(69)(!0);n(41)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(19),o=n(18);t.exports=function(t){return function(e,n){var i,a,s=String(o(e)),c=r(n),u=s.length;return c<0||c>=u?t?"":void 0:(i=s.charCodeAt(c),i<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):i:t?s.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},function(t,e,n){"use strict";var r=n(26),o=n(12),i=n(27),a={};n(6)(a,n(9)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(3),o=n(10),i=n(13);t.exports=n(2)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),s=a.length,c=0;s>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(24),i=n(20)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){n(75);for(var r=n(0),o=n(6),i=n(25),a=n(9)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var u=s[c],f=r[u],l=f&&f.prototype;l&&!l[a]&&o(l,a,u),i[u]=i.Array}},function(t,e,n){"use strict";var r=n(76),o=n(77),i=n(25),a=n(8);t.exports=n(41)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(79),__esModule:!0}},function(t,e,n){n(80),n(85),n(86),n(87),t.exports=n(1).Symbol},function(t,e,n){"use strict";var r=n(0),o=n(4),i=n(2),a=n(5),s=n(42),c=n(81).KEY,u=n(11),f=n(21),l=n(27),p=n(15),d=n(9),h=n(28),m=n(29),y=n(82),v=n(83),b=n(10),g=n(7),E=n(24),O=n(8),_=n(17),C=n(12),S=n(26),T=n(84),w=n(44),M=n(23),N=n(3),x=n(13),P=w.f,k=N.f,A=T.f,j=r.Symbol,D=r.JSON,L=D&&D.stringify,I=d("_hidden"),R=d("toPrimitive"),U={}.propertyIsEnumerable,F=f("symbol-registry"),H=f("symbols"),W=f("op-symbols"),K=Object.prototype,G="function"==typeof j&&!!M.f,V=r.QObject,B=!V||!V.prototype||!V.prototype.findChild,X=i&&u(function(){return 7!=S(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(K,e);r&&delete K[e],k(t,e,n),r&&t!==K&&k(K,e,r)}:k,Y=function(t){var e=H[t]=S(j.prototype);return e._k=t,e},q=G&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},Q=function(t,e,n){return t===K&&Q(W,e,n),b(t),e=_(e,!0),b(n),o(H,e)?(n.enumerable?(o(t,I)&&t[I][e]&&(t[I][e]=!1),n=S(n,{enumerable:C(0,!1)})):(o(t,I)||k(t,I,C(1,{})),t[I][e]=!0),X(t,e,n)):k(t,e,n)},Z=function(t,e){b(t);for(var n,r=y(e=O(e)),o=0,i=r.length;i>o;)Q(t,n=r[o++],e[n]);return t},z=function(t,e){return void 0===e?S(t):Z(S(t),e)},J=function(t){var e=U.call(this,t=_(t,!0));return!(this===K&&o(H,t)&&!o(W,t))&&(!(e||!o(this,t)||!o(H,t)||o(this,I)&&this[I][t])||e)},$=function(t,e){if(t=O(t),e=_(e,!0),t!==K||!o(H,e)||o(W,e)){var n=P(t,e);return!n||!o(H,e)||o(t,I)&&t[I][e]||(n.enumerable=!0),n}},tt=function(t){for(var e,n=A(O(t)),r=[],i=0;n.length>i;)o(H,e=n[i++])||e==I||e==c||r.push(e);return r},et=function(t){for(var e,n=t===K,r=A(n?W:O(t)),i=[],a=0;r.length>a;)!o(H,e=r[a++])||n&&!o(K,e)||i.push(H[e]);return i};G||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===K&&e.call(W,n),o(this,I)&&o(this[I],t)&&(this[I][t]=!1),X(this,t,C(1,n))};return i&&B&&X(K,t,{configurable:!0,set:e}),Y(t)},s(j.prototype,"toString",function(){return this._k}),w.f=$,N.f=Q,n(43).f=T.f=tt,n(16).f=J,M.f=et,i&&!n(14)&&s(K,"propertyIsEnumerable",J,!0),h.f=function(t){return Y(d(t))}),a(a.G+a.W+a.F*!G,{Symbol:j});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)d(nt[rt++]);for(var ot=x(d.store),it=0;ot.length>it;)m(ot[it++]);a(a.S+a.F*!G,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=j(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!G,"Object",{create:z,defineProperty:Q,defineProperties:Z,getOwnPropertyDescriptor:$,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=u(function(){M.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return M.f(E(t))}}),D&&a(a.S+a.F*(!G||u(function(){var t=j();return"[null]"!=L([t])||"{}"!=L({a:t})||"{}"!=L(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(g(e)||void 0!==t)&&!q(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!q(e))return e}),r[1]=e,L.apply(D,r)}}),j.prototype[R]||n(6)(j.prototype,R,j.prototype.valueOf),l(j,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(15)("meta"),o=n(7),i=n(4),a=n(3).f,s=0,c=Object.isExtensible||function(){return!0},u=!n(11)(function(){return c(Object.preventExtensions({}))}),f=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[r].w},d=function(t){return u&&h.NEED&&c(t)&&!i(t,r)&&f(t),t},h=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},function(t,e,n){var r=n(13),o=n(23),i=n(16);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,s=n(t),c=i.f,u=0;s.length>u;)c.call(t,a=s[u++])&&e.push(a);return e}},function(t,e,n){var r=n(35);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(8),o=n(43).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?s(t):o(r(t))}},function(t,e){},function(t,e,n){n(29)("asyncIterator")},function(t,e,n){n(29)("observable")},function(t,e,n){t.exports={default:n(89),__esModule:!0}},function(t,e,n){n(90),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){var r=n(5);r(r.S,"Object",{setPrototypeOf:n(91).set})},function(t,e,n){var r=n(7),o=n(10),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(30)(Function.call,n(44).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){t.exports={default:n(93),__esModule:!0}},function(t,e,n){n(94);var r=n(1).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(5);r(r.S,"Object",{create:n(26)})},function(t,e,n){"use strict";function r(){}function o(){}var i=n(96);o.resetWarningCache=r,t.exports=function(){function t(t,e,n,r,o,a){if(a!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){var r,o;!function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var a=n.apply(null,r);a&&t.push(a)}else if("object"===o)for(var s in r)i.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}var i={}.hasOwnProperty;void 0!==t&&t.exports?(n.default=n,t.exports=n):(r=[],void 0!==(o=function(){return n}.apply(e,r))&&(t.exports=o))}()},function(t,e,n){"use strict";var r=n(37),o=n.n(r),i=n(38),a=n.n(i),s=n(39),c=n.n(s),u=n(45),f=n.n(u),l=n(46),p=n.n(l),d=n(47),h=n.n(d),m=n(48),y=n.n(m),v=function(t){function e(){var t,n,r,i;o()(this,e);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return n=r=c()(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(s))),r.removeContainer=function(){r.container&&(h.a.unmountComponentAtNode(r.container),r.container.parentNode.removeChild(r.container),r.container=null)},r.renderComponent=function(t,e){var n=r.props,o=n.visible,i=n.getComponent,a=n.forceRender,s=n.getContainer,c=n.parent;(o||c._component||a)&&(r.container||(r.container=s()),h.a.unstable_renderSubtreeIntoContainer(c,i(t),r.container,function(){e&&e.call(this)}))},i=n,c()(r,i)}return f()(e,t),a()(e,[{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})}}]),e}(p.a.Component);v.propTypes={autoMount:y.a.bool,autoDestroy:y.a.bool,visible:y.a.bool,forceRender:y.a.bool,parent:y.a.any,getComponent:y.a.func.isRequired,getContainer:y.a.func.isRequired,children:y.a.func.isRequired},v.defaultProps={autoMount:!0,autoDestroy:!0,forceRender:!1},e.a=v},function(t,e,n){"use strict";function r(t){if(t||void 0===o){var e=document.createElement("div");e.style.width="100%",e.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(e),document.body.appendChild(n);var i=e.offsetWidth;n.style.overflow="scroll";var a=e.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),o=i-a}return o}e.a=r;var o=void 0},function(t,e,n){"use strict";var r={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};r.isTextModifyingKeyEvent=function(t){var e=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||e>=r.F1&&e<=r.F12)return!1;switch(e){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},r.isCharacterKey=function(t){if(t>=r.ZERO&&t<=r.NINE)return!0;if(t>=r.NUM_ZERO&&t<=r.NUM_MULTIPLY)return!0;if(t>=r.A&&t<=r.Z)return!0;if(-1!==window.navigation.userAgent.indexOf("WebKit")&&0===t)return!0;switch(t){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},e.a=r},function(t,e,n){"use strict";function r(t){return Array.isArray(t)?t:[t]}function o(t,e,n,r){t.addEventListener?t.addEventListener(e,n,r):t.attachEvent&&t.attachEvent("on"+e,n)}function i(t,e,n,r){t.removeEventListener?t.removeEventListener(e,n,r):t.attachEvent&&t.detachEvent("on"+e,n)}function a(t,e){var n=void 0;return n="function"==typeof t?t(e):t,Array.isArray(n)?2===n.length?n:[n[0],n[1]]:[n]}e.b=r,n.d(e,"g",function(){return c}),n.d(e,"f",function(){return u}),e.a=o,e.d=i,e.e=a,n.d(e,"c",function(){return f});var s={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},c=Object.keys(s).filter(function(t){if("undefined"==typeof document)return!1;var e=document.getElementsByTagName("html")[0];return t in(e?e.style:{})})[0],u=s[c],f=function(t){return!isNaN(parseFloat(t))&&isFinite(t)}}]).default}); | ||
!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-drawer"]=t(require("react"),require("react-dom")):e["rc-drawer"]=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=52)}([function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(e,t,n){e.exports=!n(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(10),r=n(41),i=n(23),a=Object.defineProperty;t.f=n(2)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),r)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var o=n(0),r=n(1),i=n(40),a=n(6),c=n(4),s=function(e,t,n){var u,l,f,p=e&s.F,d=e&s.G,v=e&s.S,h=e&s.P,m=e&s.B,y=e&s.W,b=d?r:r[t]||(r[t]={}),g=b.prototype,_=d?o:v?o[t]:(o[t]||{}).prototype;d&&(n=t);for(u in n)(l=!p&&_&&void 0!==_[u])&&c(b,u)||(f=l?_[u]:n[u],b[u]=d&&"function"!=typeof _[u]?n[u]:m&&l?i(f,o):y&&_[u]==f?function(e){var t=function(t,n,o){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):h&&"function"==typeof f?i(Function.call,f):f,h&&((b.virtual||(b.virtual={}))[u]=f,e&s.R&&g&&!g[u]&&a(g,u,f)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){var o=n(3),r=n(17);e.exports=n(2)?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var o=n(44),r=n(24);e.exports=function(e){return o(r(e))}},function(e,t,n){var o=n(27)("wks"),r=n(20),i=n(0).Symbol,a="function"==typeof i;(e.exports=function(e){return o[e]||(o[e]=a&&i[e]||(a?i:r)("Symbol."+e))}).store=o},function(e,t,n){var o=n(7);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(46),r=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=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),(0,r.default)(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}()},function(e,t,n){"use strict";t.__esModule=!0;var o=n(31),r=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,r.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(88),i=o(r),a=n(92),c=o(a),s=n(31),u=o(s);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,u.default)(t)));e.prototype=(0,c.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},function(t,n){t.exports=e},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(43),r=n(28);e.exports=Object.keys||function(e){return o(e,r)}},function(e,t){e.exports=!0},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";t.__esModule=!0;var o=n(56),r=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r.default||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}},function(e,t,n){var o=n(7);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(27)("keys"),r=n(20);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(1),r=n(0),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:n(19)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(24);e.exports=function(e){return Object(o(e))}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(66),i=o(r),a=n(78),c=o(a),s="function"==typeof c.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof c.default&&e.constructor===c.default&&e!==c.default.prototype?"symbol":typeof e};t.default="function"==typeof c.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof c.default&&e.constructor===c.default&&e!==c.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){e.exports={}},function(e,t,n){var o=n(10),r=n(71),i=n(28),a=n(26)("IE_PROTO"),c=function(){},s=function(){var e,t=n(42)("iframe"),o=i.length;for(t.style.display="none",n(72).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),s=e.F;o--;)delete s.prototype[i[o]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(c.prototype=o(e),n=new c,c.prototype=null,n[a]=e):n=s(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(3).f,r=n(4),i=n(9)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){t.f=n(9)},function(e,t,n){var o=n(0),r=n(1),i=n(19),a=n(35),c=n(3).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||c(t,e,{value:a.f(e)})}},function(e,n){e.exports=t},function(e,t,n){e.exports=n(96)()},function(e,t,n){"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function r(e){function t(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}this.setState(t.bind(this))}function i(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,c=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?c="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(c="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==c){var s=e.displayName||e.name,u="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==c?"\n "+c:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,o)}}return e}n.d(t,"a",function(){return a}),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,n){var o=n(59);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){e.exports=!n(2)&&!n(11)(function(){return 7!=Object.defineProperty(n(42)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(7),r=n(0).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){var o=n(4),r=n(8),i=n(61)(!1),a=n(26)("IE_PROTO");e.exports=function(e,t){var n,c=r(e),s=0,u=[];for(n in c)n!=a&&o(c,n)&&u.push(n);for(;t.length>s;)o(c,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){var o=n(45);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){e.exports={default:n(64),__esModule:!0}},function(e,t,n){"use strict";var o=n(19),r=n(5),i=n(48),a=n(6),c=n(32),s=n(70),u=n(34),l=n(73),f=n(9)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,v,h,m,y){s(n,t,v);var b,g,_,E=function(e){if(!p&&e in w)return w[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},O=t+" Iterator",S="values"==h,C=!1,w=e.prototype,N=w[f]||w["@@iterator"]||h&&w[h],M=N||E(h),P=h?S?E("entries"):M:void 0,T="Array"==t?w.entries||N:N;if(T&&(_=l(T.call(new e)))!==Object.prototype&&_.next&&(u(_,O,!0),o||"function"==typeof _[f]||a(_,f,d)),S&&N&&"values"!==N.name&&(C=!0,M=function(){return N.call(this)}),o&&!y||!p&&!C&&w[f]||a(w,f,M),c[t]=M,c[O]=d,h)if(b={values:S?M:E("values"),keys:m?M:E("keys"),entries:P},y)for(g in b)g in w||i(w,g,b[g]);else r(r.P+r.F*(p||C),t,b);return b}},function(e,t,n){e.exports=n(6)},function(e,t,n){var o=n(43),r=n(28).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(21),r=n(17),i=n(8),a=n(23),c=n(4),s=n(41),u=Object.getOwnPropertyDescriptor;t.f=n(2)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(c(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t,n){"use strict";function o(e){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=void 0},function(e,t,n){n(53),e.exports=n(54)},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(55);t.default=o.a},function(e,t,n){"use strict";var o=n(22),r=n.n(o),i=n(12),a=n.n(i),c=n(13),s=n.n(c),u=n(14),l=n.n(u),f=n(15),p=n.n(f),d=n(95),v=n(16),h=(n.n(v),n(39)),m=n(100),y=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&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n},b=function(e){function t(e){a()(this,t);var n=l()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onHandleClick=function(e){var t=n.props,o=t.onHandleClick,r=t.open;if(o&&o(e),void 0===r){var i=n.state.open;n.setState({open:!i})}},n.onClose=function(e){var t=n.props,o=t.onClose,r=t.open;o&&o(e),void 0===r&&n.setState({open:!1})};var o=void 0!==e.open?e.open:!!e.defaultOpen;return n.state={open:o},"onMaskClick"in e&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),n}return p()(t,e),s()(t,[{key:"render",value:function(){var e=this,t=this.props,n=(t.defaultOpen,t.getContainer),o=t.wrapperClassName,i=t.forceRender,a=t.handler,c=y(t,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),s=this.state.open;if(!n)return v.createElement("div",{className:o,ref:function(t){e.dom=t}},v.createElement(m.a,r()({},c,{open:s,handler:a,getContainer:function(){return e.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var u=!!a||i;return v.createElement(d.a,{visible:s,forceRender:u,getContainer:n,wrapperClassName:o},function(t){var n=t.openCount,o=t.getContainer;return v.createElement(m.a,r()({},c,{openCount:n,open:s,getContainer:o,handler:a,onClose:e.onClose,onHandleClick:e.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o={prevProps:e};return void 0!==n&&e.open!==n.open&&(o.open=e.open),o}}]),t}(v.Component);b.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:v.createElement("div",{className:"drawer-handle"},v.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1},t.a=Object(h.a)(b)},function(e,t,n){e.exports={default:n(57),__esModule:!0}},function(e,t,n){n(58),e.exports=n(1).Object.assign},function(e,t,n){var o=n(5);o(o.S+o.F,"Object",{assign:n(60)})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var o=n(2),r=n(18),i=n(29),a=n(21),c=n(30),s=n(44),u=Object.assign;e.exports=!u||n(11)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=o})?function(e,t){for(var n=c(e),u=arguments.length,l=1,f=i.f,p=a.f;u>l;)for(var d,v=s(arguments[l++]),h=f?r(v).concat(f(v)):r(v),m=h.length,y=0;m>y;)d=h[y++],o&&!p.call(v,d)||(n[d]=v[d]);return n}:u},function(e,t,n){var o=n(8),r=n(62),i=n(63);e.exports=function(e){return function(t,n,a){var c,s=o(t),u=r(s.length),l=i(a,u);if(e&&n!=n){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var o=n(25),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){var o=n(25),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){n(65);var o=n(1).Object;e.exports=function(e,t,n){return o.defineProperty(e,t,n)}},function(e,t,n){var o=n(5);o(o.S+o.F*!n(2),"Object",{defineProperty:n(3).f})},function(e,t,n){e.exports={default:n(67),__esModule:!0}},function(e,t,n){n(68),n(74),e.exports=n(35).f("iterator")},function(e,t,n){"use strict";var o=n(69)(!0);n(47)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var o=n(25),r=n(24);e.exports=function(e){return function(t,n){var i,a,c=String(r(t)),s=o(n),u=c.length;return s<0||s>=u?e?"":void 0:(i=c.charCodeAt(s),i<55296||i>56319||s+1===u||(a=c.charCodeAt(s+1))<56320||a>57343?e?c.charAt(s):i:e?c.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){"use strict";var o=n(33),r=n(17),i=n(34),a={};n(6)(a,n(9)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var o=n(3),r=n(10),i=n(18);e.exports=n(2)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),c=a.length,s=0;c>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(0).document;e.exports=o&&o.documentElement},function(e,t,n){var o=n(4),r=n(30),i=n(26)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){n(75);for(var o=n(0),r=n(6),i=n(32),a=n(9)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<c.length;s++){var u=c[s],l=o[u],f=l&&l.prototype;f&&!f[a]&&r(f,a,u),i[u]=i.Array}},function(e,t,n){"use strict";var o=n(76),r=n(77),i=n(32),a=n(8);e.exports=n(47)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(79),__esModule:!0}},function(e,t,n){n(80),n(85),n(86),n(87),e.exports=n(1).Symbol},function(e,t,n){"use strict";var o=n(0),r=n(4),i=n(2),a=n(5),c=n(48),s=n(81).KEY,u=n(11),l=n(27),f=n(34),p=n(20),d=n(9),v=n(35),h=n(36),m=n(82),y=n(83),b=n(10),g=n(7),_=n(30),E=n(8),O=n(23),S=n(17),C=n(33),w=n(84),N=n(50),M=n(29),P=n(3),T=n(18),x=N.f,k=P.f,j=w.f,D=o.Symbol,A=o.JSON,U=A&&A.stringify,L=d("_hidden"),R=d("toPrimitive"),I={}.propertyIsEnumerable,F=l("symbol-registry"),W=l("symbols"),H=l("op-symbols"),K=Object.prototype,B="function"==typeof D&&!!M.f,G=o.QObject,V=!G||!G.prototype||!G.prototype.findChild,q=i&&u(function(){return 7!=C(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=x(K,t);o&&delete K[t],k(e,t,n),o&&e!==K&&k(K,t,o)}:k,Y=function(e){var t=W[e]=C(D.prototype);return t._k=e,t},Q=B&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},X=function(e,t,n){return e===K&&X(H,t,n),b(e),t=O(t,!0),b(n),r(W,t)?(n.enumerable?(r(e,L)&&e[L][t]&&(e[L][t]=!1),n=C(n,{enumerable:S(0,!1)})):(r(e,L)||k(e,L,S(1,{})),e[L][t]=!0),q(e,t,n)):k(e,t,n)},z=function(e,t){b(e);for(var n,o=m(t=E(t)),r=0,i=o.length;i>r;)X(e,n=o[r++],t[n]);return e},Z=function(e,t){return void 0===t?C(e):z(C(e),t)},J=function(e){var t=I.call(this,e=O(e,!0));return!(this===K&&r(W,e)&&!r(H,e))&&(!(t||!r(this,e)||!r(W,e)||r(this,L)&&this[L][e])||t)},$=function(e,t){if(e=E(e),t=O(t,!0),e!==K||!r(W,t)||r(H,t)){var n=x(e,t);return!n||!r(W,t)||r(e,L)&&e[L][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=j(E(e)),o=[],i=0;n.length>i;)r(W,t=n[i++])||t==L||t==s||o.push(t);return o},te=function(e){for(var t,n=e===K,o=j(n?H:E(e)),i=[],a=0;o.length>a;)!r(W,t=o[a++])||n&&!r(K,t)||i.push(W[t]);return i};B||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===K&&t.call(H,n),r(this,L)&&r(this[L],e)&&(this[L][e]=!1),q(this,e,S(1,n))};return i&&V&&q(K,e,{configurable:!0,set:t}),Y(e)},c(D.prototype,"toString",function(){return this._k}),N.f=$,P.f=X,n(49).f=w.f=ee,n(21).f=J,M.f=te,i&&!n(19)&&c(K,"propertyIsEnumerable",J,!0),v.f=function(e){return Y(d(e))}),a(a.G+a.W+a.F*!B,{Symbol:D});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),oe=0;ne.length>oe;)d(ne[oe++]);for(var re=T(d.store),ie=0;re.length>ie;)h(re[ie++]);a(a.S+a.F*!B,"Symbol",{for:function(e){return r(F,e+="")?F[e]:F[e]=D(e)},keyFor:function(e){if(!Q(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!B,"Object",{create:Z,defineProperty:X,defineProperties:z,getOwnPropertyDescriptor:$,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=u(function(){M.f(1)});a(a.S+a.F*ae,"Object",{getOwnPropertySymbols:function(e){return M.f(_(e))}}),A&&a(a.S+a.F*(!B||u(function(){var e=D();return"[null]"!=U([e])||"{}"!=U({a:e})||"{}"!=U(Object(e))})),"JSON",{stringify:function(e){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=t=o[1],(g(t)||void 0!==e)&&!Q(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Q(t))return t}),o[1]=t,U.apply(A,o)}}),D.prototype[R]||n(6)(D.prototype,R,D.prototype.valueOf),f(D,"Symbol"),f(Math,"Math",!0),f(o.JSON,"JSON",!0)},function(e,t,n){var o=n(20)("meta"),r=n(7),i=n(4),a=n(3).f,c=0,s=Object.isExtensible||function(){return!0},u=!n(11)(function(){return s(Object.preventExtensions({}))}),l=function(e){a(e,o,{value:{i:"O"+ ++c,w:{}}})},f=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";l(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;l(e)}return e[o].w},d=function(e){return u&&v.NEED&&s(e)&&!i(e,o)&&l(e),e},v=e.exports={KEY:o,NEED:!1,fastKey:f,getWeak:p,onFreeze:d}},function(e,t,n){var o=n(18),r=n(29),i=n(21);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,c=n(e),s=i.f,u=0;c.length>u;)s.call(e,a=c[u++])&&t.push(a);return t}},function(e,t,n){var o=n(45);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){var o=n(8),r=n(49).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?c(e):r(o(e))}},function(e,t){},function(e,t,n){n(36)("asyncIterator")},function(e,t,n){n(36)("observable")},function(e,t,n){e.exports={default:n(89),__esModule:!0}},function(e,t,n){n(90),e.exports=n(1).Object.setPrototypeOf},function(e,t,n){var o=n(5);o(o.S,"Object",{setPrototypeOf:n(91).set})},function(e,t,n){var o=n(7),r=n(10),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(40)(Function.call,n(50).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){e.exports={default:n(93),__esModule:!0}},function(e,t,n){n(94);var o=n(1).Object;e.exports=function(e,t){return o.create(e,t)}},function(e,t,n){var o=n(5);o(o.S,"Object",{create:n(33)})},function(e,t,n){"use strict";var o=n(22),r=n.n(o),i=n(31),a=n.n(i),c=n(12),s=n.n(c),u=n(13),l=n.n(u),f=n(14),p=n.n(f),d=n(15),v=n.n(d),h=n(16),m=n.n(h),y=n(37),b=n.n(y),g=n(38),_=n.n(g),E=n(39),O=n(98),S=n(99),C=0,w=!("undefined"!=typeof window&&window.document&&window.document.createElement),N="createPortal"in b.a,M=function(e){function t(e){s()(this,t);var n=p()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.getParent=function(){var e=n.props.getContainer;if(e){if("string"==typeof e)return document.querySelectorAll(e)[0];if("function"==typeof e)return e();if("object"===(void 0===e?"undefined":a()(e))&&e instanceof window.HTMLElement)return e}return document.body},n.getContainer=function(){if(w)return null;if(!n.container){n.container=document.createElement("div");n.getParent().appendChild(n.container)}return n.setWrapperClassName(),n.container},n.setWrapperClassName=function(){var e=n.props.wrapperClassName;n.container&&e&&e!==n.container.className&&(n.container.className=e)},n.savePortal=function(e){n._component=e};var o=e.visible;return C=o?C+1:C,n.state={},n}return v()(t,e),l()(t,[{key:"shouldComponentUpdate",value:function(e){var t=e.visible,n=e.forceRender;return!!(this.props.visible||t||this.props.forceRender||n)}},{key:"componentDidUpdate",value:function(){this.setWrapperClassName()}},{key:"componentWillUnmount",value:function(){var e=this.props.visible;this.container=null,this._component=null,C=e&&C?C-1:C,N||(e?this.renderComponent({afterClose:this.removeContainer,onClose:function(){},visible:!1}):this.removeContainer())}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.forceRender,i=t.visible,a=null,c={openCount:C,getContainer:this.getContainer};return N?((o||i||this._component)&&(a=m.a.createElement(S.a,{getContainer:this.getContainer,ref:this.savePortal},n(c))),a):m.a.createElement(O.a,{parent:this,visible:i,autoDestroy:!1,getComponent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(r()({},e,c))},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.visible,o=e.visible;return void 0!==n&&o!==n&&(C=o&&!n?C+1:C-1),{visible:o}}}]),t}(m.a.Component);M.propTypes={wrapperClassName:_.a.string,forceRender:_.a.bool,getContainer:_.a.any,children:_.a.func,visible:_.a.bool},t.a=Object(E.a)(M)},function(e,t,n){"use strict";function o(){}function r(){}var i=n(97);r.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,r,a){if(a!==i){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var o=n(12),r=n.n(o),i=n(13),a=n.n(i),c=n(14),s=n.n(c),u=n(15),l=n.n(u),f=n(16),p=n.n(f),d=n(37),v=n.n(d),h=n(38),m=n.n(h),y=function(e){function t(){var e,n,o,i;r()(this,t);for(var a=arguments.length,c=Array(a),u=0;u<a;u++)c[u]=arguments[u];return n=o=s()(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),o.removeContainer=function(){o.container&&(v.a.unmountComponentAtNode(o.container),o.container.parentNode.removeChild(o.container),o.container=null)},o.renderComponent=function(e,t){var n=o.props,r=n.visible,i=n.getComponent,a=n.forceRender,c=n.getContainer,s=n.parent;(r||s._component||a)&&(o.container||(o.container=c()),v.a.unstable_renderSubtreeIntoContainer(s,i(e),o.container,function(){t&&t.call(this)}))},i=n,s()(o,i)}return l()(t,e),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}(p.a.Component);y.propTypes={autoMount:m.a.bool,autoDestroy:m.a.bool,visible:m.a.bool,forceRender:m.a.bool,parent:m.a.any,getComponent:m.a.func.isRequired,getContainer:m.a.func.isRequired,children:m.a.func.isRequired},y.defaultProps={autoMount:!0,autoDestroy:!0,forceRender:!1},t.a=y},function(e,t,n){"use strict";var o=n(12),r=n.n(o),i=n(13),a=n.n(i),c=n(14),s=n.n(c),u=n(15),l=n.n(u),f=n(16),p=n.n(f),d=n(37),v=n.n(d),h=n(38),m=n.n(h),y=function(e){function t(){return r()(this,t),s()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l()(t,e),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?v.a.createPortal(this.props.children,this._container):null}}]),t}(p.a.Component);y.propTypes={getContainer:m.a.func.isRequired,children:m.a.node.isRequired,didUpdate:m.a.func},t.a=y},function(e,t,n){"use strict";var o=n(22),r=n.n(o),i=n(101),a=n.n(i),c=n(12),s=n.n(c),u=n(13),l=n.n(u),f=n(14),p=n.n(f),d=n(15),v=n.n(d),h=n(102),m=n.n(h),y=n(51),b=n(103),g=n(104),_=n(16),E=(n.n(_),n(39)),O=n(105),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&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n},C={},w=function(e){function t(e){s()(this,t);var n=p()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.domFocus=function(){n.dom&&n.dom.focus()},n.removeStartHandler=function(e){e.touches.length>1||(n.startPos={x:e.touches[0].clientX,y:e.touches[0].clientY})},n.removeMoveHandler=function(e){if(!(e.changedTouches.length>1)){var t=e.currentTarget,o=e.changedTouches[0].clientX-n.startPos.x,r=e.changedTouches[0].clientY-n.startPos.y;(t===n.maskDom||t===n.handlerDom||t===n.contentDom&&Object(O.c)(t,e.target,o,r))&&e.preventDefault()}},n.transitionEnd=function(e){var t=e.target;Object(O.e)(t,O.g,n.transitionEnd),t.style.transition=""},n.onKeyDown=function(e){if(e.keyCode===b.a.ESC){var t=n.props.onClose;e.stopPropagation(),t&&t(e)}},n.onWrapperTransitionEnd=function(e){var t=n.props,o=t.open,r=t.afterVisibleChange;e.target===n.contentWrapper&&e.propertyName.match(/transform$/)&&(n.dom.style.transition="",!o&&n.getCurrentDrawerSome()&&(document.body.style.overflowX="",n.maskDom&&(n.maskDom.style.left="",n.maskDom.style.width="")),r&&r(!!o))},n.openLevelTransition=function(){var e=n.props,t=e.open,o=e.width,r=e.height,i=n.getHorizontalBoolAndPlacementName(),a=i.isHorizontal,c=i.placementName,s=n.contentDom?n.contentDom.getBoundingClientRect()[a?"width":"height"]:0,u=(a?o:r)||s;n.setLevelDomTransform(t,c,u)},n.setLevelDomTransform=function(e,t,o){var r=n.props,i=r.placement,a=r.levelMove,c=r.duration,s=r.ease,u=r.onChange,l=r.showMask;if(!O.i){var f=Object(y.a)(!0);n.levelDom.forEach(function(r){r.style.transition="transform "+c+" "+s,Object(O.a)(r,O.g,n.transitionEnd);var u=e?o:0;if(a){var p=Object(O.f)(a,{target:r,open:e});u=e?p[0]:p[1]||0}var d="number"==typeof u?u+"px":u,v="left"===i||"top"===i?d:"-"+d;v=l&&"right"===i&&f?"calc("+v+" + "+f+"px)":v,r.style.transform=u?t+"("+v+")":""}),n.setScrollingEffect(f)}u&&u(e)},n.setScrollingEffect=function(e){var t=n.props,o=t.openCount,r=t.getContainer,i=t.showMask,a=r&&r();if(a&&a.parentNode===document.body&&i){var c=["touchstart"],s=[document.body,n.maskDom,n.handlerDom,n.contentDom];open&&"hidden"!==document.body.style.overflow?(e&&n.addScrollingEffect(e),document.body.style.overflow="hidden",document.body.style.touchAction="none",s.forEach(function(e,t){e&&Object(O.a)(e,c[t]||"touchmove",t?n.removeMoveHandler:n.removeStartHandler,n.passive)})):n.getCurrentDrawerSome()&&(o||(document.body.style.overflow="",document.body.style.touchAction=""),e&&n.remScrollingEffect(e),s.forEach(function(e,t){e&&Object(O.e)(e,c[t]||"touchmove",t?n.removeMoveHandler:n.removeStartHandler,n.passive)}))}},n.addScrollingEffect=function(e){var t=n.props,o=t.placement,r=t.duration,i=t.ease,a="width "+r+" "+i,c="transform "+r+" "+i;switch(Object(g.a)(),n.dom.style.transition="none",o){case"right":n.dom.style.transform="translateX(-"+e+"px)";break;case"top":case"bottom":n.dom.style.width="calc(100% - "+e+"px)",n.dom.style.transform="translateZ(0)"}clearTimeout(n.timeout),n.timeout=setTimeout(function(){n.dom.style.transition=c+","+a,n.dom.style.width="",n.dom.style.transform=""})},n.remScrollingEffect=function(e){var t=n.props,o=t.placement,r=t.duration,i=t.ease;Object(g.a)(!0),O.h&&(document.body.style.overflowX="hidden"),n.dom.style.transition="none";var a=void 0,c="width "+r+" "+i,s="transform "+r+" "+i;switch(o){case"right":n.dom.style.transform="translateX("+e+"px)",n.dom.style.width="100%",c="width 0s "+i+" "+r,n.maskDom&&(n.maskDom.style.left="-"+e+"px",n.maskDom.style.width="calc(100% + "+e+"px)");break;case"top":case"bottom":n.dom.style.width="calc(100% + "+e+"px)",n.dom.style.height="100%",n.dom.style.transform="translateZ(0)",a="height 0s "+i+" "+r}clearTimeout(n.timeout),n.timeout=setTimeout(function(){n.dom.style.transition=s+","+(a?a+",":"")+c,n.dom.style.transform="",n.dom.style.width="",n.dom.style.height=""})},n.getCurrentDrawerSome=function(){return!Object.keys(C).some(function(e){return C[e]})},n.getLevelDom=function(e){var t=e.level,o=e.getContainer;if(!O.i){var r=o&&o(),i=r?r.parentNode:null;if(n.levelDom=[],"all"===t){(i?Array.prototype.slice.call(i.children):[]).forEach(function(e){"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&"LINK"!==e.nodeName&&e!==r&&n.levelDom.push(e)})}else t&&Object(O.b)(t).forEach(function(e){document.querySelectorAll(e).forEach(function(e){n.levelDom.push(e)})})}},n.getHorizontalBoolAndPlacementName=function(){var e=n.props.placement,t="left"===e||"right"===e;return{isHorizontal:t,placementName:"translate"+(t?"X":"Y")}},n.state={self:n},n}return v()(t,e),l()(t,[{key:"componentDidMount",value:function(){var e=this;if(!O.i){var t=!1;window.addEventListener("test",function(){},Object.defineProperty({},"passive",{get:function(){return t=!0,null}})),this.passive=!!t&&{passive:!1}}var n=this.props.open;this.drawerId="drawer_id_"+Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()).toString())).toString(16),this.getLevelDom(this.props),n&&(C[this.drawerId]=n,this.openLevelTransition(),this.forceUpdate(function(){e.domFocus()}))}},{key:"componentDidUpdate",value:function(e){var t=this.props.open;t!==e.open&&(t&&this.domFocus(),C[this.drawerId]=!!t,this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.openCount;e.open&&this.setLevelDomTransform(!1),t||(document.body.style.overflow=""),delete C[this.drawerId],clearTimeout(this.timeout)}},{key:"render",value:function(){var e,t=this,n=this.props,o=n.className,i=n.children,c=n.style,s=n.width,u=n.height,l=(n.defaultOpen,n.open),f=n.prefixCls,p=n.placement,d=(n.level,n.levelMove,n.ease,n.duration,n.getContainer,n.handler),v=(n.onChange,n.afterVisibleChange,n.showMask),h=n.maskClosable,y=n.maskStyle,b=n.onClose,g=n.onHandleClick,E=n.keyboard,C=(n.openCount,S(n,["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","openCount"])),w=!!this.dom&&l,N=m()(f,(e={},a()(e,f+"-"+p,!0),a()(e,f+"-open",w),a()(e,o||"",!!o),a()(e,"no-mask",!v),e)),M=this.getHorizontalBoolAndPlacementName(),P=M.placementName,T="left"===p||"top"===p?"-100%":"100%",x=w?"":P+"("+T+")",k=d&&_.cloneElement(d,{onClick:function(e){d.props.onClick&&d.props.onClick(),g&&g(e)},ref:function(e){t.handlerDom=e}});return _.createElement("div",r()({},C,{tabIndex:-1,className:N,style:c,ref:function(e){t.dom=e},onKeyDown:w&&E?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),v&&_.createElement("div",{className:f+"-mask",onClick:h?b:void 0,style:y,ref:function(e){t.maskDom=e},role:"drawer-mask"}),_.createElement("div",{className:f+"-content-wrapper",style:{transform:x,msTransform:x,width:Object(O.d)(s)?s+"px":s,height:Object(O.d)(u)?u+"px":u},ref:function(e){t.contentWrapper=e}},_.createElement("div",{className:f+"-content",ref:function(e){t.contentDom=e},onTouchStart:w&&v?this.removeStartHandler:void 0,onTouchMove:w&&v?this.removeMoveHandler:void 0},i),k))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.self,r={prevProps:e};if(void 0!==n){var i=e.placement,a=e.level;i!==n.placement&&(o.contentDom=null),a!==n.level&&o.getLevelDom(e)}return r}}]),t}(_.Component);t.a=Object(E.a)(w)},function(e,t,n){"use strict";t.__esModule=!0;var o=n(46),r=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=function(e,t,n){return t in e?(0,r.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var o,r;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var r=typeof o;if("string"===r||"number"===r)e.push(o);else if(Array.isArray(o)&&o.length){var a=n.apply(null,o);a&&e.push(a)}else if("object"===r)for(var c in o)i.call(o,c)&&o[c]&&e.push(c)}}return e.join(" ")}var i={}.hasOwnProperty;void 0!==e&&e.exports?(n.default=n,e.exports=n):(o=[],void 0!==(r=function(){return n}.apply(t,o))&&(e.exports=r))}()},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};o.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}},o.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.navigation.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";var o=n(51);t.a=function(e){if(e)return document.body.style.position="",void(document.body.style.width="");var t=Object(o.a)();t&&(document.body.style.position="relative",document.body.style.width="calc(100% - "+t+"px)")}},function(e,t,n){"use strict";function o(e){return Array.isArray(e)?e:[e]}function r(e,t,n,o){e.addEventListener?e.addEventListener(t,n,o):e.attachEvent&&e.attachEvent("on"+t,n)}function i(e,t,n,o){e.removeEventListener?e.removeEventListener(t,n,o):e.attachEvent&&e.detachEvent("on"+t,n)}function a(e,t){var n=void 0;return n="function"==typeof e?e(t):e,Array.isArray(n)?2===n.length?n:[n[0],n[1]]:[n]}t.b=o,n.d(t,"h",function(){return s}),n.d(t,"g",function(){return u}),t.a=r,t.e=i,t.f=a,n.d(t,"d",function(){return l}),n.d(t,"i",function(){return f}),n.d(t,"c",function(){return p});var c={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},s=Object.keys(c).filter(function(e){if("undefined"==typeof document)return!1;var t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})})[0],u=c[s],l=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},f=!("undefined"!=typeof window&&window.document&&window.document.createElement),p=function e(t,n,o,r){if(!n||n===document||n instanceof Document)return!1;if(n===t.parentNode)return!0;var i=Math.max(Math.abs(o),Math.abs(r))===Math.abs(r),a=Math.max(Math.abs(o),Math.abs(r))===Math.abs(o),c=n.scrollHeight-n.clientHeight,s=n.scrollWidth-n.clientWidth,u=n.scrollTop,l=n.scrollLeft;n.scrollTop+=1,n.scrollLeft+=1;var f=n.scrollTop,p=n.scrollLeft;return n.scrollTop-=1,n.scrollLeft-=1,!((!i||c&&f-u&&(!c||!(n.scrollTop>=c&&r<0||n.scrollTop<=0&&r>0)))&&(!a||s&&p-l&&(!s||!(n.scrollLeft>=s&&o<0||n.scrollLeft<=0&&o>0))))&&e(t,n.parentNode,o,r)}}]).default}); |
// export this package's api | ||
import Drawer from './Drawer'; | ||
import Drawer from './DrawerWrapper'; | ||
export default Drawer; |
111
es/utils.js
export function dataToArray(vars) { | ||
if (Array.isArray(vars)) { | ||
return vars; | ||
} | ||
return [vars]; | ||
if (Array.isArray(vars)) { | ||
return vars; | ||
} | ||
return [vars]; | ||
} | ||
var transitionEndObject = { | ||
transition: 'transitionend', | ||
WebkitTransition: 'webkitTransitionEnd', | ||
MozTransition: 'transitionend', | ||
OTransition: 'oTransitionEnd otransitionend' | ||
transition: 'transitionend', | ||
WebkitTransition: 'webkitTransitionEnd', | ||
MozTransition: 'transitionend', | ||
OTransition: 'oTransitionEnd otransitionend' | ||
}; | ||
export var transitionStr = Object.keys(transitionEndObject).filter(function (key) { | ||
if (typeof document === 'undefined') { | ||
return false; | ||
} | ||
var html = document.getElementsByTagName('html')[0]; | ||
return key in (html ? html.style : {}); | ||
if (typeof document === 'undefined') { | ||
return false; | ||
} | ||
var html = document.getElementsByTagName('html')[0]; | ||
return key in (html ? html.style : {}); | ||
})[0]; | ||
export var transitionEnd = transitionEndObject[transitionStr]; | ||
export function addEventListener(target, eventType, callback, options) { | ||
if (target.addEventListener) { | ||
target.addEventListener(eventType, callback, options); | ||
} else if (target.attachEvent) { | ||
target.attachEvent('on' + eventType, callback); | ||
} | ||
if (target.addEventListener) { | ||
target.addEventListener(eventType, callback, options); | ||
} else if (target.attachEvent) { | ||
// tslint:disable-line | ||
target.attachEvent('on' + eventType, callback); // tslint:disable-line | ||
} | ||
} | ||
export function removeEventListener(target, eventType, callback, options) { | ||
if (target.removeEventListener) { | ||
target.removeEventListener(eventType, callback, options); | ||
} else if (target.attachEvent) { | ||
target.detachEvent('on' + eventType, callback); | ||
} | ||
if (target.removeEventListener) { | ||
target.removeEventListener(eventType, callback, options); | ||
} else if (target.attachEvent) { | ||
// tslint:disable-line | ||
target.detachEvent('on' + eventType, callback); // tslint:disable-line | ||
} | ||
} | ||
export function transformArguments(arg, cb) { | ||
var result = void 0; | ||
if (typeof arg === 'function') { | ||
result = arg(cb); | ||
} else { | ||
result = arg; | ||
} | ||
if (Array.isArray(result)) { | ||
if (result.length === 2) { | ||
return result; | ||
var result = void 0; | ||
if (typeof arg === 'function') { | ||
result = arg(cb); | ||
} else { | ||
result = arg; | ||
} | ||
return [result[0], result[1]]; | ||
} | ||
return [result]; | ||
if (Array.isArray(result)) { | ||
if (result.length === 2) { | ||
return result; | ||
} | ||
return [result[0], result[1]]; | ||
} | ||
return [result]; | ||
} | ||
export var isNumeric = function isNumeric(value) { | ||
return !isNaN(parseFloat(value)) && isFinite(value); // eslint-disable-line | ||
return !isNaN(parseFloat(value)) && isFinite(value); | ||
}; | ||
export var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement); | ||
export var getTouchParentScroll = function getTouchParentScroll(root, currentTarget, differX, differY) { | ||
if (!currentTarget || currentTarget === document || currentTarget instanceof Document) { | ||
return false; | ||
} | ||
// root 为 drawer-content 设定了 overflow, 判断为 root 的 parent 时结束滚动; | ||
if (currentTarget === root.parentNode) { | ||
return true; | ||
} | ||
var isY = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differY); | ||
var isX = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differX); | ||
var scrollY = currentTarget.scrollHeight - currentTarget.clientHeight; | ||
var scrollX = currentTarget.scrollWidth - currentTarget.clientWidth; | ||
/** | ||
* <div style="height: 300px"> | ||
* <div style="height: 900px"></div> | ||
* </div> | ||
* 在没设定 overflow: auto 或 scroll 时,currentTarget 里获取不到 scrollTop 或 scrollLeft, | ||
* 预先用 scrollTo 来滚动,如果取出的值跟滚动前取出不同,则 currnetTarget 被设定了 overflow; 否则就是上面这种。 | ||
*/ | ||
var t = currentTarget.scrollTop; | ||
var l = currentTarget.scrollLeft; | ||
currentTarget.scrollTop += 1; | ||
currentTarget.scrollLeft += 1; | ||
var currentT = currentTarget.scrollTop; | ||
var currentL = currentTarget.scrollLeft; | ||
currentTarget.scrollTop -= 1; | ||
currentTarget.scrollLeft -= 1; | ||
if (isY && (!scrollY || !(currentT - t) || scrollY && (currentTarget.scrollTop >= scrollY && differY < 0 || currentTarget.scrollTop <= 0 && differY > 0)) || isX && (!scrollX || !(currentL - l) || scrollX && (currentTarget.scrollLeft >= scrollX && differX < 0 || currentTarget.scrollLeft <= 0 && differX > 0))) { | ||
return getTouchParentScroll(root, currentTarget.parentNode, differX, differY); // tslint:disable-line | ||
} | ||
return false; | ||
}; |
@@ -7,10 +7,10 @@ 'use strict'; | ||
var _Drawer = require('./Drawer'); | ||
var _DrawerWrapper = require('./DrawerWrapper'); | ||
var _Drawer2 = _interopRequireDefault(_Drawer); | ||
var _DrawerWrapper2 = _interopRequireDefault(_DrawerWrapper); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
exports['default'] = _Drawer2['default']; // export this package's api | ||
exports['default'] = _DrawerWrapper2['default']; // export this package's api | ||
module.exports = exports['default']; |
113
lib/utils.js
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
value: true | ||
}); | ||
@@ -11,56 +11,87 @@ exports.dataToArray = dataToArray; | ||
function dataToArray(vars) { | ||
if (Array.isArray(vars)) { | ||
return vars; | ||
} | ||
return [vars]; | ||
if (Array.isArray(vars)) { | ||
return vars; | ||
} | ||
return [vars]; | ||
} | ||
var transitionEndObject = { | ||
transition: 'transitionend', | ||
WebkitTransition: 'webkitTransitionEnd', | ||
MozTransition: 'transitionend', | ||
OTransition: 'oTransitionEnd otransitionend' | ||
transition: 'transitionend', | ||
WebkitTransition: 'webkitTransitionEnd', | ||
MozTransition: 'transitionend', | ||
OTransition: 'oTransitionEnd otransitionend' | ||
}; | ||
var transitionStr = exports.transitionStr = Object.keys(transitionEndObject).filter(function (key) { | ||
if (typeof document === 'undefined') { | ||
return false; | ||
} | ||
var html = document.getElementsByTagName('html')[0]; | ||
return key in (html ? html.style : {}); | ||
if (typeof document === 'undefined') { | ||
return false; | ||
} | ||
var html = document.getElementsByTagName('html')[0]; | ||
return key in (html ? html.style : {}); | ||
})[0]; | ||
var transitionEnd = exports.transitionEnd = transitionEndObject[transitionStr]; | ||
function addEventListener(target, eventType, callback, options) { | ||
if (target.addEventListener) { | ||
target.addEventListener(eventType, callback, options); | ||
} else if (target.attachEvent) { | ||
target.attachEvent('on' + eventType, callback); | ||
} | ||
if (target.addEventListener) { | ||
target.addEventListener(eventType, callback, options); | ||
} else if (target.attachEvent) { | ||
// tslint:disable-line | ||
target.attachEvent('on' + eventType, callback); // tslint:disable-line | ||
} | ||
} | ||
function removeEventListener(target, eventType, callback, options) { | ||
if (target.removeEventListener) { | ||
target.removeEventListener(eventType, callback, options); | ||
} else if (target.attachEvent) { | ||
target.detachEvent('on' + eventType, callback); | ||
} | ||
if (target.removeEventListener) { | ||
target.removeEventListener(eventType, callback, options); | ||
} else if (target.attachEvent) { | ||
// tslint:disable-line | ||
target.detachEvent('on' + eventType, callback); // tslint:disable-line | ||
} | ||
} | ||
function transformArguments(arg, cb) { | ||
var result = void 0; | ||
if (typeof arg === 'function') { | ||
result = arg(cb); | ||
} else { | ||
result = arg; | ||
} | ||
if (Array.isArray(result)) { | ||
if (result.length === 2) { | ||
return result; | ||
var result = void 0; | ||
if (typeof arg === 'function') { | ||
result = arg(cb); | ||
} else { | ||
result = arg; | ||
} | ||
return [result[0], result[1]]; | ||
} | ||
return [result]; | ||
if (Array.isArray(result)) { | ||
if (result.length === 2) { | ||
return result; | ||
} | ||
return [result[0], result[1]]; | ||
} | ||
return [result]; | ||
} | ||
var isNumeric = exports.isNumeric = function isNumeric(value) { | ||
return !isNaN(parseFloat(value)) && isFinite(value); // eslint-disable-line | ||
return !isNaN(parseFloat(value)) && isFinite(value); | ||
}; | ||
var windowIsUndefined = exports.windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement); | ||
var getTouchParentScroll = exports.getTouchParentScroll = function getTouchParentScroll(root, currentTarget, differX, differY) { | ||
if (!currentTarget || currentTarget === document || currentTarget instanceof Document) { | ||
return false; | ||
} | ||
// root 为 drawer-content 设定了 overflow, 判断为 root 的 parent 时结束滚动; | ||
if (currentTarget === root.parentNode) { | ||
return true; | ||
} | ||
var isY = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differY); | ||
var isX = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differX); | ||
var scrollY = currentTarget.scrollHeight - currentTarget.clientHeight; | ||
var scrollX = currentTarget.scrollWidth - currentTarget.clientWidth; | ||
/** | ||
* <div style="height: 300px"> | ||
* <div style="height: 900px"></div> | ||
* </div> | ||
* 在没设定 overflow: auto 或 scroll 时,currentTarget 里获取不到 scrollTop 或 scrollLeft, | ||
* 预先用 scrollTo 来滚动,如果取出的值跟滚动前取出不同,则 currnetTarget 被设定了 overflow; 否则就是上面这种。 | ||
*/ | ||
var t = currentTarget.scrollTop; | ||
var l = currentTarget.scrollLeft; | ||
currentTarget.scrollTop += 1; | ||
currentTarget.scrollLeft += 1; | ||
var currentT = currentTarget.scrollTop; | ||
var currentL = currentTarget.scrollLeft; | ||
currentTarget.scrollTop -= 1; | ||
currentTarget.scrollLeft -= 1; | ||
if (isY && (!scrollY || !(currentT - t) || scrollY && (currentTarget.scrollTop >= scrollY && differY < 0 || currentTarget.scrollTop <= 0 && differY > 0)) || isX && (!scrollX || !(currentL - l) || scrollX && (currentTarget.scrollLeft >= scrollX && differX < 0 || currentTarget.scrollLeft <= 0 && differX > 0))) { | ||
return getTouchParentScroll(root, currentTarget.parentNode, differX, differY); // tslint:disable-line | ||
} | ||
return false; | ||
}; |
{ | ||
"name": "rc-drawer", | ||
"version": "1.10.1", | ||
"version": "2.0.0-beta.0", | ||
"description": "drawer component for react", | ||
@@ -30,4 +30,3 @@ "keywords": [ | ||
"dist", | ||
"es", | ||
"index.d.ts" | ||
"es" | ||
], | ||
@@ -37,2 +36,3 @@ "licenses": "MIT", | ||
"module": "./es/index", | ||
"typings": "./lib/index.d.ts", | ||
"config": { | ||
@@ -43,3 +43,3 @@ "port": 8009, | ||
"./assets/index.less", | ||
"./src/index.js" | ||
"./src/index.ts" | ||
] | ||
@@ -59,7 +59,14 @@ } | ||
"test": "jest", | ||
"pretter":"rc-tools run prettier", | ||
"pretter": "rc-tools run prettier", | ||
"coverage": "jest --coverage" | ||
}, | ||
"devDependencies": { | ||
"@babel/plugin-transform-typescript": "~7.4.5", | ||
"@types/classnames": "^2.2.5", | ||
"@types/enzyme": "^2.8.6", | ||
"@types/enzyme-to-json": "^1.5.0", | ||
"@types/jest": "^23.1.5", | ||
"@types/react": "^16.0.0", | ||
"@types/react-dom": "^16.0.0", | ||
"@types/react-lifecycles-compat": "^3.0.1", | ||
"antd": "^3.10.0", | ||
@@ -71,3 +78,3 @@ "core-js": "^2.5.1", | ||
"expect.js": "0.3.x", | ||
"jest": "^23.1.0", | ||
"jest": "^23.6.0", | ||
"pre-commit": "1.x", | ||
@@ -77,3 +84,5 @@ "raf": "^3.4.0", | ||
"react": "^16.0.0", | ||
"react-dom": "^16.0.0" | ||
"react-dom": "^16.0.0", | ||
"ts-jest": "^23.10.5", | ||
"typescript": "^3.5.2" | ||
}, | ||
@@ -86,21 +95,30 @@ "precommit": [ | ||
"classnames": "^2.2.5", | ||
"prop-types": "^15.5.0", | ||
"rc-util": "^4.5.1" | ||
"rc-util": "^4.7.0", | ||
"react-lifecycles-compat": "^3.0.4" | ||
}, | ||
"jest": { | ||
"testURL": "http://localhost/", | ||
"testMatch": [ | ||
"**/__tests__/**/*.ts?(x)", | ||
"**/?(*.)(spec|test).ts?(x)" | ||
], | ||
"setupFiles": [ | ||
"./tests/setup.js" | ||
"./tests/setup.ts" | ||
], | ||
"collectCoverageFrom": [ | ||
"src/**/*" | ||
"src/**/*.{ts,tsx}" | ||
], | ||
"coverageDirectory": "./coverage/", | ||
"snapshotSerializers": [ | ||
"enzyme-to-json/serializer" | ||
], | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"tsx", | ||
"js" | ||
], | ||
"transform": { | ||
"\\.tsx?$": "./node_modules/rc-tools/scripts/jestPreprocessor.js", | ||
"\\.jsx?$": "./node_modules/rc-tools/scripts/jestPreprocessor.js" | ||
} | ||
}, | ||
"types": "index.d.ts" | ||
} | ||
} |
@@ -66,6 +66,7 @@ # rc-drawer | ||
| showMask | boolean | true | mask is show | | ||
| maskClosable | boolean | true | Clicking on the mask (area outside the Drawer) to close the Drawer or not. | | ||
| maskStyle | object | null | mask style | | ||
| onChange | func | null | change callback(open) | | ||
| afterVisibleChange | func | null | transition end callback(open) | | ||
| onMaskClick | func | null | mask close click function | | ||
| onClose | func | null | close click function | | ||
| onHandleClick | func | nul | handle icon click function | | ||
@@ -72,0 +73,0 @@ | keyboard | Boolean | true | Whether support press esc to close | |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
536317
32
6689
81
22
2
- Removedprop-types@^15.5.0
Updatedrc-util@^4.7.0