1 line
65 KiB
JavaScript
1 line
65 KiB
JavaScript
!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-tree"]=t(require("react"),require("react-dom")):e["rc-tree"]=t(e.React,e.ReactDOM)}("undefined"!=typeof self?self:this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},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=65)}([function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(34)("wks"),o=n(25),a=n(2).Symbol,i="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=i&&a[e]||(i?a:o)("Symbol."+e))}).store=r},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,n){var r=n(9),o=n(44),a=n(29),i=Object.defineProperty;t.f=n(5)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)try{return i(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,n){var r=n(2),o=n(0),a=n(28),i=n(8),c=n(6),u=function(e,t,n){var s,l,f,d=e&u.F,p=e&u.G,v=e&u.S,h=e&u.P,y=e&u.B,m=e&u.W,g=p?o:o[t]||(o[t]={}),b=g.prototype,E=p?r:v?r[t]:(r[t]||{}).prototype;p&&(n=t);for(s in n)(l=!d&&E&&void 0!==E[s])&&c(g,s)||(f=l?E[s]:n[s],g[s]=p&&"function"!=typeof E[s]?n[s]:y&&l?a(f,r):m&&E[s]==f?function(e){var t=function(t,n,r){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,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):h&&"function"==typeof f?a(Function.call,f):f,h&&((g.virtual||(g.virtual={}))[s]=f,e&u.R&&b&&!b[s]&&i(b,s,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){e.exports=!n(14)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(t,n){t.exports=e},function(e,t,n){var r=n(3),o=n(15);e.exports=n(5)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(10);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(47),o=n(31);e.exports=function(e){return r(o(e))}},function(e,t,n){e.exports=n(106)()},function(e,t,n){"use strict";t.__esModule=!0;var r=n(69),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=o.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},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 r=n(49),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){"use strict";t.__esModule=!0;var r=n(50),o=function(e){return e&&e.__esModule?e:{default:e}}(r);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,o.default)(t))&&"function"!=typeof t?e:t}},function(e,t){e.exports={}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(99),a=r(o),i=n(103),c=r(i),u=n(50),s=r(u);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,s.default)(t)));e.prototype=(0,c.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(a.default?(0,a.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";function r(e){var t=[];return a.a.Children.forEach(e,function(e){t.push(e)}),t}t.a=r;var o=n(7),a=n.n(o)},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function o(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 a(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(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,i=null,c=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?c="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(c="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==c){var u=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(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=r,t.componentWillReceiveProps=o),"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=a;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,r)}}return e}n.d(t,"a",function(){return i}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},function(e,t,n){var r=n(46),o=n(35);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports=!0},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r,o;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var i=n.apply(null,r);i&&e.push(i)}else if("object"===o)for(var c in r)a.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}var a={}.hasOwnProperty;void 0!==e&&e.exports?(n.default=n,e.exports=n):(r=[],void 0!==(o=function(){return n}.apply(t,r))&&(e.exports=o))}()},function(e,t,n){var r=n(72);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(10);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},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,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(34)("keys"),o=n(25);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(0),o=n(2),a=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(24)?"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 r=n(31);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(49),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t,n){return t in e?(0,o.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(9),o=n(82),a=n(35),i=n(33)("IE_PROTO"),c=function(){},u=function(){var e,t=n(45)("iframe"),r=a.length;for(t.style.display="none",n(83).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[a[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(c.prototype=r(e),n=new c,c.prototype=null,n[i]=e):n=u(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(3).f,o=n(6),a=n(1)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t,n){t.f=n(1)},function(e,t,n){var r=n(2),o=n(0),a=n(24),i=n(41),c=n(3).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=a?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||c(t,e,{value:i.f(e)})}},function(e,t,n){"use strict";function r(e,t){for(var n=window.getComputedStyle(e,null),r="",o=0;o<d.length&&!(r=n.getPropertyValue(d[o]+t));o++);return r}function o(e,t){return parseFloat(r(e,t))}function a(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function i(e){if(h[e])return h[e];var t=p[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in v)return h[e]=t[a],h[e]}return""}function c(e,t){var n=Object(l.a)(e),r=Object(l.a)(t);if(1===n.length&&1===r.length&&n[0].key===r[0].key)return r;var o=[],a={},i=[];return n.forEach(function(e){e&&r.some(function(t){return t.key===e.key})?i.length&&(a[e.key]=i,i=[]):i.push(e)}),r.forEach(function(e){e&&a[e.key]&&(o=o.concat(a[e.key])),o.push(e)}),o=o.concat(i)}function u(e,t){var n={};return t.forEach(function(t){t in e&&(n[t]=e[t])}),n}function s(e,t){if(!e)return null;if("object"==typeof e){return e[t.replace(/-\w/g,function(e){return e[1].toUpperCase()})]}return e+"-"+t}t.c=o,n.d(t,"a",function(){return y}),n.d(t,"g",function(){return m}),n.d(t,"f",function(){return g}),t.e=c,t.b=u,t.d=s;var l=n(21),f=n(126),d=(n.n(f),["-webkit-","-moz-","-o-","ms-",""]),p=function(e,t){var n={animationend:a("Animation","AnimationEnd"),transitionend:a("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(f.canUseDOM,"undefined"!=typeof window?window:{}),v={};f.canUseDOM&&(v=document.createElement("div").style);var h={},y=i("animationend"),m=i("transitionend"),g=!(!y||!m)},function(e,t,n){e.exports=!n(5)&&!n(14)(function(){return 7!=Object.defineProperty(n(45)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(10),o=n(2).document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r=n(6),o=n(11),a=n(74)(!1),i=n(33)("IE_PROTO");e.exports=function(e,t){var n,c=o(e),u=0,s=[];for(n in c)n!=i&&r(c,n)&&s.push(n);for(;t.length>u;)r(c,n=t[u++])&&(~a(s,n)||s.push(n));return s}},function(e,t,n){var r=n(30);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(32),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){e.exports={default:n(76),__esModule:!0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(78),a=r(o),i=n(89),c=r(i),u="function"==typeof c.default&&"symbol"==typeof a.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"===u(a.default)?function(e){return void 0===e?"undefined":u(e)}:function(e){return e&&"function"==typeof c.default&&e.constructor===c.default&&e!==c.default.prototype?"symbol":void 0===e?"undefined":u(e)}},function(e,t,n){"use strict";var r=n(80)(!0);n(52)(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=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var r=n(24),o=n(4),a=n(53),i=n(8),c=n(19),u=n(81),s=n(40),l=n(84),f=n(1)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,v,h,y,m){u(n,t,v);var g,b,E,x=function(e){if(!d&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},O=t+" Iterator",k="values"==h,N=!1,S=e.prototype,w=S[f]||S["@@iterator"]||h&&S[h],j=w||x(h),T=h?k?x("entries"):j:void 0,D="Array"==t?S.entries||w:w;if(D&&(E=l(D.call(new e)))!==Object.prototype&&E.next&&(s(E,O,!0),r||"function"==typeof E[f]||i(E,f,p)),k&&w&&"values"!==w.name&&(N=!0,j=function(){return w.call(this)}),r&&!m||!d&&!N&&S[f]||i(S,f,j),c[t]=j,c[O]=p,h)if(g={values:k?j:x("values"),keys:y?j:x("keys"),entries:T},m)for(b in g)b in S||a(S,b,g[b]);else o(o.P+o.F*(d||N),t,g);return g}},function(e,t,n){e.exports=n(8)},function(e,t,n){var r=n(46),o=n(35).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(26),o=n(15),a=n(11),i=n(29),c=n(6),u=n(44),s=Object.getOwnPropertyDescriptor;t.f=n(5)?s:function(e,t){if(e=a(e),t=i(t,!0),u)try{return s(e,t)}catch(e){}if(c(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return u});var r=n(13),o=n.n(r),a=n(12),i=n.n(a),c={rcTree:i.a.shape({root:i.a.object,prefixCls:i.a.string,selectable:i.a.bool,showIcon:i.a.bool,icon:i.a.oneOfType([i.a.node,i.a.func]),draggable:i.a.bool,checkable:i.a.oneOfType([i.a.bool,i.a.node]),checkStrictly:i.a.bool,disabled:i.a.bool,openTransitionName:i.a.string,openAnimation:i.a.oneOfType([i.a.string,i.a.object]),loadData:i.a.func,filterTreeNode:i.a.func,renderTreeNode:i.a.func,isKeyChecked:i.a.func,onNodeClick:i.a.func,onNodeDoubleClick:i.a.func,onNodeExpand:i.a.func,onNodeSelect:i.a.func,onNodeCheck:i.a.func,onNodeMouseEnter:i.a.func,onNodeMouseLeave:i.a.func,onNodeContextMenu:i.a.func,onNodeDragStart:i.a.func,onNodeDragEnter:i.a.func,onNodeDragOver:i.a.func,onNodeDragLeave:i.a.func,onNodeDragEnd:i.a.func,onNodeDrop:i.a.func})},u=o()({},c,{rcTreeNode:i.a.shape({onUpCheckConduct:i.a.func})})},function(e,t,n){"use strict";function r(){L||(L=!0,D()(!1,"Tree only accept TreeNode as children."))}function o(e,t){var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function a(e,t){var n=e.slice();return-1===n.indexOf(t)&&n.push(t),n}function i(e){return e.split("-")}function c(e,t){return e+"-"+t}function u(e){return e&&e.type&&e.type.isTreeNode}function s(e){return Object(j.a)(e).filter(u)}function l(e){var t=e.props||{},n=t.disabled,r=t.disableCheckbox;return!(!n&&!r)}function f(e,t){function n(r,o,a){var i=r?r.props.children:e,u=r?c(a.pos,o):0,l=s(i);if(r){var f={node:r,index:o,pos:u,key:r.key||u,parentPos:a.node?a.pos:null};t(f)}S.Children.forEach(l,function(e,t){n(e,t,{node:r,pos:u})})}n(null)}function d(e,t){var n=Object(j.a)(e).map(t);return 1===n.length?n[0]:n}function p(e,t){var n=t.props,r=n.eventKey,o=n.pos,a=[];return f(e,function(e){var t=e.key;a.push(t)}),a.push(r||o),a}function v(e,t){var n=e.clientY,r=t.selectHandle.getBoundingClientRect(),o=r.top,a=r.bottom,i=r.height,c=Math.max(i*C,K);return n<=o+c?-1:n>=a-c?1:0}function h(e,t){if(e){return t.multiple?e.slice():e.length?[e[0]]:e}}function y(e){return e?e.map(function(e){return String(e)}):e}function m(e,t){if(!e)return[];var n=t||{},r=n.processProps,o=void 0===r?P:r;return(Array.isArray(e)?e:[e]).map(function(e){var n=e.children,r=N()(e,["children"]),a=m(n,t);return w.a.createElement(_.a,o(r),a)})}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,a={},i={},c={posEntities:a,keyEntities:i};return n&&(c=n(c)||c),f(e,function(e){var t=e.node,n=e.index,o=e.pos,u=e.key,s=e.parentPos,l={node:t,index:n,key:u,pos:o};a[o]=l,i[u]=l,l.parent=a[s],l.parent&&(l.parent.children=l.parent.children||[],l.parent.children.push(l)),r&&r(l,c)}),o&&o(c),c}function b(e){if(!e)return null;var t=void 0;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!=typeof e)return D()(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t.checkedKeys=y(t.checkedKeys),t.halfCheckedKeys=y(t.halfCheckedKeys),t}function E(e,t,n){function r(e){if(c[e]!==t){var o=n[e];if(o){var a=o.children,i=o.parent;if(!l(o.node)){var s=!0,f=!1;(a||[]).filter(function(e){return!l(e.node)}).forEach(function(e){var t=e.key,n=c[t],r=u[t];(n||r)&&(f=!0),n||(s=!1)}),c[e]=!!t&&s,u[e]=f,i&&r(i.key)}}}}function o(e){if(c[e]!==t){var r=n[e];if(r){var a=r.children;l(r.node)||(c[e]=t,(a||[]).forEach(function(e){o(e.key)}))}}}function a(e){var a=n[e];if(!a)return void D()(!1,"'"+e+"' does not exist in the tree.");var i=a.children,u=a.parent,s=a.node;c[e]=t,l(s)||((i||[]).filter(function(e){return!l(e.node)}).forEach(function(e){o(e.key)}),u&&r(u.key))}var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c={},u={};(i.checkedKeys||[]).forEach(function(e){c[e]=!0}),(i.halfCheckedKeys||[]).forEach(function(e){u[e]=!0}),(e||[]).forEach(function(e){a(e)});var s=[],f=[];return Object.keys(c).forEach(function(e){c[e]&&s.push(e)}),Object.keys(u).forEach(function(e){!c[e]&&u[e]&&f.push(e)}),{checkedKeys:s,halfCheckedKeys:f}}function x(e,t){function n(e){if(!r[e]){var o=t[e];if(o){r[e]=!0;var a=o.parent;l(o.node)||a&&n(a.key)}}}var r={};return(e||[]).forEach(function(e){n(e)}),Object.keys(r)}function O(e){return Object.keys(e).reduce(function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)||(t[n]=e[n]),t},{})}t.p=r,t.b=o,t.a=a,t.o=i,t.l=c,t.k=s,t.m=d,t.j=p,t.c=v,t.d=h,t.g=m,t.h=g,t.n=b,t.e=E,t.f=x,t.i=O;var k=n(59),N=n.n(k),S=n(7),w=n.n(S),j=n(21),T=n(56),D=n.n(T),_=n(60),C=.25,K=2,L=!1,P=function(e){return e}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){"use strict";var r=n(38),o=n.n(r),a=n(59),i=n.n(a),c=n(13),u=n.n(c),s=n(16),l=n.n(s),f=n(17),d=n.n(f),p=n(18),v=n.n(p),h=n(20),y=n.n(h),m=n(7),g=n.n(m),b=n(12),E=n.n(b),x=n(27),O=n.n(x),k=n(108),N=n(21),S=n(22),w=n(57),j=n(58),T=function(e){function t(e){l()(this,t);var n=v()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return D.call(n),n.state={dragNodeHighlight:!1},n}return y()(t,e),d()(t,[{key:"getChildContext",value:function(){return u()({},this.context,{rcTreeNode:{}})}},{key:"componentDidMount",value:function(){var e=this.props.eventKey,t=this.context.rcTree.registerTreeNode;this.syncLoadData(this.props),t(e,this)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"componentWillUnmount",value:function(){var e=this.props.eventKey;(0,this.context.rcTree.registerTreeNode)(e,null)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.context.rcTree.selectable;return"boolean"==typeof e?e:t}},{key:"render",value:function(){var e,t=this.props.loading,n=this.props,r=n.className,a=n.style,c=n.dragOver,s=n.dragOverGapTop,l=n.dragOverGapBottom,f=n.isLeaf,d=n.expanded,p=n.selected,v=n.checked,h=n.halfChecked,y=i()(n,["className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","expanded","selected","checked","halfChecked"]),m=this.context.rcTree,b=m.prefixCls,E=m.filterTreeNode,x=m.draggable,k=this.isDisabled(),N=Object(j.i)(y);return g.a.createElement("li",u()({className:O()(r,(e={},o()(e,b+"-treenode-disabled",k),o()(e,b+"-treenode-switcher-"+(d?"open":"close"),!f),o()(e,b+"-treenode-checkbox-checked",v),o()(e,b+"-treenode-checkbox-indeterminate",h),o()(e,b+"-treenode-selected",p),o()(e,b+"-treenode-loading",t),o()(e,"drag-over",!k&&c),o()(e,"drag-over-gap-top",!k&&s),o()(e,"drag-over-gap-bottom",!k&&l),o()(e,"filter-node",E&&E(this)),e)),style:a,role:"treeitem",onDragEnter:x?this.onDragEnter:void 0,onDragOver:x?this.onDragOver:void 0,onDragLeave:x?this.onDragLeave:void 0,onDrop:x?this.onDrop:void 0,onDragEnd:x?this.onDragEnd:void 0},N),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector(),this.renderChildren())}}]),t}(g.a.Component);T.propTypes={eventKey:E.a.string,prefixCls:E.a.string,className:E.a.string,style:E.a.object,root:E.a.object,onSelect:E.a.func,expanded:E.a.bool,selected:E.a.bool,checked:E.a.bool,loaded:E.a.bool,loading:E.a.bool,halfChecked:E.a.bool,children:E.a.node,title:E.a.node,pos:E.a.string,dragOver:E.a.bool,dragOverGapTop:E.a.bool,dragOverGapBottom:E.a.bool,isLeaf:E.a.bool,selectable:E.a.bool,disabled:E.a.bool,disableCheckbox:E.a.bool,icon:E.a.oneOfType([E.a.node,E.a.func]),switcherIcon:E.a.oneOfType([E.a.node,E.a.func])},T.contextTypes=w.a,T.childContextTypes=w.a,T.defaultProps={title:"---"};var D=function(){var e=this;this.onSelectorClick=function(t){(0,e.context.rcTree.onNodeClick)(t,e),e.isSelectable()?e.onSelect(t):e.onCheck(t)},this.onSelectorDoubleClick=function(t){(0,e.context.rcTree.onNodeDoubleClick)(t,e)},this.onSelect=function(t){if(!e.isDisabled()){var n=e.context.rcTree.onNodeSelect;t.preventDefault(),n(t,e)}},this.onCheck=function(t){if(!e.isDisabled()){var n=e.props,r=n.disableCheckbox,o=n.checked,a=e.context.rcTree,i=a.checkable,c=a.onNodeCheck;if(i&&!r){t.preventDefault();c(t,e,!o)}}},this.onMouseEnter=function(t){(0,e.context.rcTree.onNodeMouseEnter)(t,e)},this.onMouseLeave=function(t){(0,e.context.rcTree.onNodeMouseLeave)(t,e)},this.onContextMenu=function(t){(0,e.context.rcTree.onNodeContextMenu)(t,e)},this.onDragStart=function(t){var n=e.context.rcTree.onNodeDragStart;t.stopPropagation(),e.setState({dragNodeHighlight:!0}),n(t,e);try{t.dataTransfer.setData("text/plain","")}catch(e){}},this.onDragEnter=function(t){var n=e.context.rcTree.onNodeDragEnter;t.preventDefault(),t.stopPropagation(),n(t,e)},this.onDragOver=function(t){var n=e.context.rcTree.onNodeDragOver;t.preventDefault(),t.stopPropagation(),n(t,e)},this.onDragLeave=function(t){var n=e.context.rcTree.onNodeDragLeave;t.stopPropagation(),n(t,e)},this.onDragEnd=function(t){var n=e.context.rcTree.onNodeDragEnd;t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,e)},this.onDrop=function(t){var n=e.context.rcTree.onNodeDrop;t.preventDefault(),t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,e)},this.onExpand=function(t){(0,e.context.rcTree.onNodeExpand)(t,e)},this.setSelectHandle=function(t){e.selectHandle=t},this.getNodeChildren=function(){var t=e.props.children,n=Object(N.a)(t).filter(function(e){return e}),r=Object(j.k)(n);return n.length!==r.length&&Object(j.p)(),r},this.getNodeState=function(){var t=e.props.expanded;return e.isLeaf()?null:t?"open":"close"},this.isLeaf=function(){var t=e.props,n=t.isLeaf,r=t.loaded,o=e.context.rcTree.loadData,a=0!==e.getNodeChildren().length;return!1!==n&&(n||!o&&!a||o&&r&&!a)},this.isDisabled=function(){var t=e.props.disabled,n=e.context.rcTree.disabled;return!1!==t&&!(!n&&!t)},this.syncLoadData=function(t){var n=t.expanded,r=t.loading,o=t.loaded,a=e.context.rcTree,i=a.loadData,c=a.onNodeLoad;if(!r&&i&&n&&!e.isLeaf()){0!==e.getNodeChildren().length||o||c(e)}},this.renderSwitcher=function(){var t=e.props,n=t.expanded,r=t.switcherIcon,o=e.context.rcTree,a=o.prefixCls,i=o.switcherIcon,c=r||i;if(e.isLeaf())return g.a.createElement("span",{className:O()(a+"-switcher",a+"-switcher-noop")},"function"==typeof c?c(u()({},e.props,{isLeaf:!0})):c);var s=O()(a+"-switcher",a+"-switcher_"+(n?"open":"close"));return g.a.createElement("span",{onClick:e.onExpand,className:s},"function"==typeof c?c(u()({},e.props,{isLeaf:!1})):c)},this.renderCheckbox=function(){var t=e.props,n=t.checked,r=t.halfChecked,o=t.disableCheckbox,a=e.context.rcTree,i=a.prefixCls,c=a.checkable,u=e.isDisabled();if(!c)return null;var s="boolean"!=typeof c?c:null;return g.a.createElement("span",{className:O()(i+"-checkbox",n&&i+"-checkbox-checked",!n&&r&&i+"-checkbox-indeterminate",(u||o)&&i+"-checkbox-disabled"),onClick:e.onCheck},s)},this.renderIcon=function(){var t=e.props.loading,n=e.context.rcTree.prefixCls;return g.a.createElement("span",{className:O()(n+"-iconEle",n+"-icon__"+(e.getNodeState()||"docu"),t&&n+"-icon_loading")})},this.renderSelector=function(){var t=e.state.dragNodeHighlight,n=e.props,r=n.title,o=n.selected,a=n.icon,i=n.loading,c=e.context.rcTree,s=c.prefixCls,l=c.showIcon,f=c.icon,d=c.draggable,p=c.loadData,v=e.isDisabled(),h=s+"-node-content-wrapper",y=void 0;if(l){var m=a||f;y=m?g.a.createElement("span",{className:O()(s+"-iconEle",s+"-icon__customize")},"function"==typeof m?g.a.createElement(m,u()({},e.props)):m):e.renderIcon()}else p&&i&&(y=e.renderIcon());var b=g.a.createElement("span",{className:s+"-title"},r);return g.a.createElement("span",{ref:e.setSelectHandle,title:"string"==typeof r?r:"",className:O()(""+h,h+"-"+(e.getNodeState()||"normal"),!v&&(o||t)&&s+"-node-selected",!v&&d&&"draggable"),draggable:!v&&d||void 0,"aria-grabbed":!v&&d||void 0,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onContextMenu:e.onContextMenu,onClick:e.onSelectorClick,onDoubleClick:e.onSelectorDoubleClick,onDragStart:d?e.onDragStart:void 0},y,b)},this.renderChildren=function(){var t=e.props,n=t.expanded,r=t.pos,o=e.context.rcTree,a=o.prefixCls,i=o.openTransitionName,c=o.openAnimation,s=o.renderTreeNode,l={};i?l.transitionName=i:"object"==typeof c&&(l.animation=u()({},c));var f=e.getNodeChildren();if(0===f.length)return null;var d=void 0;return n&&(d=g.a.createElement("ul",{className:O()(a+"-child-tree",n&&a+"-child-tree-open"),"data-expanded":n,role:"group"},Object(j.m)(f,function(e,t){return s(e,t,r)}))),g.a.createElement(k.a,u()({},l,{showProp:"data-expanded",component:""}),d)}};T.isTreeNode=1,Object(S.a)(T),t.a=T},function(e,t,n){"use strict";var r=n(112),o=n.n(r),a=n(16),i=n.n(a),c=n(17),u=n.n(c),s=n(18),l=n.n(s),f=n(20),d=n.n(f),p=n(7),v=n.n(p),h=n(62),y=n.n(h),m=n(12),g=n.n(m),b=n(22),E=n(27),x=n.n(E),O=n(122),k=n.n(O),N=n(64),S=n.n(N),w=n(43),j=["appeared","show","exclusive","children","animation"];t.a=function(e){var t=function(t){function n(){i()(this,n);var t=l()(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.state={child:null,eventQueue:[],eventActive:!1},t.onDomUpdated=function(){function n(){if(e){var t=Object(w.d)(a,""+f);if(t&&p.add(t),r){var n=Object(w.d)(a,f+"-active");n&&p.add(n)}}}var r=t.state.eventActive,o=t.props,a=o.transitionName,i=o.animation,c=o.onChildLeaved,u=o.animateKey,s=t.getDomElement();if(s){e&&t.$prevEle!==s&&(t.cleanDomEvent(),t.$prevEle=s,t.$prevEle.addEventListener(w.a,t.onMotionEnd),t.$prevEle.addEventListener(w.g,t.onMotionEnd));var l=t.getCurrentEvent();if(l.empty)return void("leave"===l.lastEventType&&c(u));var f=l.eventType,d=l.restQueue,p=k()(s);if(t.currentEvent&&t.currentEvent.type===f)return void n();if(clearTimeout(t.timeout),t.currentEvent&&t.currentEvent.animateObj&&t.currentEvent.animateObj.stop&&t.currentEvent.animateObj.stop(),t.currentEvent){var v=Object(w.d)(a,""+t.currentEvent.type),h=Object(w.d)(a,t.currentEvent.type+"-active");v&&p.remove(v),h&&p.remove(h)}t.currentEvent={type:f};var y=(i||{})[f];y?(t.currentEvent.animateObj=y(s,function(){t.onMotionEnd({target:s})}),t.currentEvent&&t.currentEvent.animateObj||t.nextEvent(d)):e?(n(),r||S()(function(){t.currentEvent&&t.currentEvent.type===f&&!t._destroy&&t.setState({eventActive:!0},function(){var e=Object(w.c)(s,"transition-delay")||0,n=Object(w.c)(s,"transition-duration")||0,r=Object(w.c)(s,"animation-delay")||0,o=Object(w.c)(s,"animation-duration")||0,a=Math.max(n+e,o+r);a>=0&&(t.timeout=setTimeout(function(){t.onMotionEnd({target:s})},1e3*a))})})):t.onMotionEnd({target:s})}},t.onMotionEnd=function(n){var r=n.target,o=t.props,a=o.transitionName,i=o.onChildLeaved,c=o.animateKey,u=o.onAppear,s=o.onEnter,l=o.onLeave,f=o.onEnd,d=t.getCurrentEvent();if(!d.empty){clearTimeout(t.timeout);var p=d.restQueue,v=t.getDomElement();if(t.currentEvent&&v===r){if(t.currentEvent.animateObj&&t.currentEvent.animateObj.stop&&t.currentEvent.animateObj.stop(),e&&t.currentEvent){var h=Object(w.d)(a,t.currentEvent.type),y=Object(w.d)(a,t.currentEvent.type+"-active"),m=k()(v);h&&m.remove(h),y&&m.remove(y)}t.currentEvent&&"leave"===t.currentEvent.type&&i(c),t.currentEvent&&!p.length&&("appear"===t.currentEvent.type&&u?u(c):"enter"===t.currentEvent.type&&s?s(c):"leave"===t.currentEvent.type&&l&&l(c),f&&f(c,"leave"!==t.currentEvent.type)),t.currentEvent=null,t.nextEvent(p)}}},t.getDomElement=function(){return t._destroy?null:y.a.findDOMNode(t)},t.getCurrentEvent=function(){function e(e){return"appear"===e&&(u||i.appear)||"enter"===e&&(s||i.enter)||"leave"===e&&(l||i.leave)}var n=t.state.eventQueue,r=void 0===n?[]:n,a=t.props,i=a.animation,c=a.exclusive,u=a.transitionAppear,s=a.transitionEnter,l=a.transitionLeave,f=null;if(c){var d=r[r.length-1];e(d)&&(f={eventType:d,restQueue:[]})}else for(var p=r.slice();p.length;){var v=p,h=o()(v),y=h[0],m=h.slice(1);if(e(y)){f={eventType:y,restQueue:m};break}p=m}return f||(f={empty:!0,lastEventType:r[r.length-1]}),f},t.nextEvent=function(e){t._destroy||t.setState({eventQueue:e,eventActive:!1})},t.cleanDomEvent=function(){t.$prevEle&&e&&(t.$prevEle.removeEventListener(w.a,t.onMotionEnd),t.$prevEle.removeEventListener(w.g,t.onMotionEnd))},t.$prevEle=null,t.currentEvent=null,t.timeout=null,t}return d()(n,t),u()(n,[{key:"componentDidMount",value:function(){this.onDomUpdated()}},{key:"componentDidUpdate",value:function(){this.onDomUpdated()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),this._destroy=!0,this.cleanDomEvent()}},{key:"render",value:function(){var t=this.state,n=t.child,r=t.eventActive,o=this.props,a=o.showProp,i=o.transitionName,c=n.props||{},u=c.className,s=this.getCurrentEvent(),l=e&&this.currentEvent?x()(u,Object(w.d)(i,this.currentEvent.type),r&&Object(w.d)(i,this.currentEvent.type+"-active")):u,f=!0;f=!(!e||!(!s.empty||this.currentEvent&&this.currentEvent.animateObj))||n.props[a];var d={className:l};return a&&(d[a]=f),v.a.cloneElement(n,d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){function n(t,n){return a[t]!==e[t]&&(n&&n(e[t]),!0)}function r(e){var n=c.eventQueue||t.eventQueue.slice(),r=n.indexOf(e);-1!==r&&(n=n.slice(0,r)),n.push(e),c.eventQueue=n}var o=t.prevProps,a=void 0===o?{}:o,i=e.appeared,c={prevProps:Object(w.b)(e,j)};return n("children",function(e){c.child=e}),n("appeared",function(e){e&&r("appear")}),n("show",function(e){i||r(e?"enter":"leave")}),c}}]),n}(v.a.Component);return t.propTypes={transitionName:g.a.oneOfType([g.a.string,g.a.object]),transitionAppear:g.a.bool,transitionEnter:g.a.bool,transitionLeave:g.a.bool,exclusive:g.a.bool,appeared:g.a.bool,showProp:g.a.string,animateKey:g.a.any,animation:g.a.object,onChildLeaved:g.a.func,onEnd:g.a.func,onAppear:g.a.func,onEnter:g.a.func,onLeave:g.a.func},Object(b.a)(t),t}(w.f)},function(e,n){e.exports=t},function(e,t){e.exports=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},function(e,t,n){(function(t){for(var r=n(124),o="undefined"==typeof window?t:window,a=["moz","webkit"],i="AnimationFrame",c=o["request"+i],u=o["cancel"+i]||o["cancelRequest"+i],s=0;!c&&s<a.length;s++)c=o[a[s]+"Request"+i],u=o[a[s]+"Cancel"+i]||o[a[s]+"CancelRequest"+i];if(!c||!u){var l=0,f=0,d=[];c=function(e){if(0===d.length){var t=r(),n=Math.max(0,1e3/60-(t-l));l=n+t,setTimeout(function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return d.push({handle:++f,callback:e,cancelled:!1}),f},u=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}e.exports=function(e){return c.call(o,e)},e.exports.cancel=function(){u.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=c,e.cancelAnimationFrame=u}}).call(t,n(123))},function(e,t,n){n(66),e.exports=n(67)},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(68),o=n(60);n.d(t,"TreeNode",function(){return o.a}),r.a.TreeNode=o.a,t.default=r.a},function(e,t,n){"use strict";var r=n(13),o=n.n(r),a=n(38),i=n.n(a),c=n(16),u=n.n(c),s=n(17),l=n.n(s),f=n(18),d=n.n(f),p=n(20),v=n.n(p),h=n(7),y=n.n(h),m=n(12),g=n.n(m),b=n(27),E=n.n(b),x=n(56),O=n.n(x),k=n(21),N=n(22),S=n(57),w=n(58),j=function(e){function t(e){u()(this,t);var n=d()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onNodeDragStart=function(e,t){var r=n.state.expandedKeys,o=n.props.onDragStart,a=t.props,i=a.eventKey,c=a.children;n.dragNode=t,n.setState({dragNodesKeys:Object(w.j)(c,t),expandedKeys:Object(w.b)(r,i)}),o&&o({event:e,node:t})},n.onNodeDragEnter=function(e,t){var r=n.state.expandedKeys,o=n.props.onDragEnter,a=t.props,i=a.pos,c=a.eventKey;if(n.dragNode){var u=Object(w.c)(e,t);if(n.dragNode.props.eventKey===c&&0===u)return void n.setState({dragOverNodeKey:"",dropPosition:null});setTimeout(function(){n.setState({dragOverNodeKey:c,dropPosition:u}),n.delayedDragEnterLogic||(n.delayedDragEnterLogic={}),Object.keys(n.delayedDragEnterLogic).forEach(function(e){clearTimeout(n.delayedDragEnterLogic[e])}),n.delayedDragEnterLogic[i]=setTimeout(function(){var a=Object(w.a)(r,c);"expandedKeys"in n.props||n.setState({expandedKeys:a}),o&&o({event:e,node:t,expandedKeys:a})},400)},0)}},n.onNodeDragOver=function(e,t){var r=n.props.onDragOver,o=t.props.eventKey;if(n.dragNode&&o===n.state.dragOverNodeKey){var a=Object(w.c)(e,t);if(a===n.state.dropPosition)return;n.setState({dropPosition:a})}r&&r({event:e,node:t})},n.onNodeDragLeave=function(e,t){var r=n.props.onDragLeave;n.setState({dragOverNodeKey:""}),r&&r({event:e,node:t})},n.onNodeDragEnd=function(e,t){var r=n.props.onDragEnd;n.setState({dragOverNodeKey:""}),r&&r({event:e,node:t}),n.dragNode=null},n.onNodeDrop=function(e,t){var r=n.state,o=r.dragNodesKeys,a=void 0===o?[]:o,i=r.dropPosition,c=n.props.onDrop,u=t.props,s=u.eventKey,l=u.pos;if(n.setState({dragOverNodeKey:""}),-1!==a.indexOf(s))return void O()(!1,"Can not drop to dragNode(include it's children node)");var f=Object(w.o)(l),d={event:e,node:t,dragNode:n.dragNode,dragNodesKeys:a.slice(),dropPosition:i+Number(f[f.length-1])};0!==i&&(d.dropToGap=!0),c&&c(d),n.dragNode=null},n.onNodeClick=function(e,t){var r=n.props.onClick;r&&r(e,t)},n.onNodeDoubleClick=function(e,t){var r=n.props.onDoubleClick;r&&r(e,t)},n.onNodeSelect=function(e,t){var r=n.state.selectedKeys,o=n.state.keyEntities,a=n.props,i=a.onSelect,c=a.multiple,u=t.props,s=u.selected,l=u.eventKey,f=!s;r=f?c?Object(w.a)(r,l):[l]:Object(w.b)(r,l);var d=r.map(function(e){var t=o[e];return t?t.node:null}).filter(function(e){return e});if(n.setUncontrolledState({selectedKeys:r}),i){i(r,{event:"select",selected:f,node:t,selectedNodes:d,nativeEvent:e.nativeEvent})}},n.onNodeCheck=function(e,t,r){var o=n.state,a=o.keyEntities,i=o.checkedKeys,c=o.halfCheckedKeys,u=n.props,s=u.checkStrictly,l=u.onCheck,f=t.props.eventKey,d=void 0,p={event:"check",node:t,checked:r,nativeEvent:e.nativeEvent};if(s){var v=r?Object(w.a)(i,f):Object(w.b)(i,f);d={checked:v,halfChecked:Object(w.b)(c,f)},p.checkedNodes=v.map(function(e){return a[e]}).filter(function(e){return e}).map(function(e){return e.node}),n.setUncontrolledState({checkedKeys:v})}else{var h=Object(w.e)([f],r,a,{checkedKeys:i,halfCheckedKeys:c}),y=h.checkedKeys,m=h.halfCheckedKeys;d=y,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=m,y.forEach(function(e){var t=a[e];if(t){var n=t.node,r=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}}),n.setUncontrolledState({checkedKeys:y,halfCheckedKeys:m})}l&&l(d,p)},n.onNodeLoad=function(e){return new Promise(function(t){n.setState(function(r){var o=r.loadedKeys,a=void 0===o?[]:o,i=r.loadingKeys,c=void 0===i?[]:i,u=n.props,s=u.loadData,l=u.onLoad,f=e.props.eventKey;return s&&-1===a.indexOf(f)&&-1===c.indexOf(f)?(s(e).then(function(){var r=Object(w.a)(n.state.loadedKeys,f),o=Object(w.b)(n.state.loadingKeys,f);l&&l(r,{event:"load",node:e}),n.setUncontrolledState({loadedKeys:r}),n.setState({loadingKeys:o}),t()}),{loadingKeys:Object(w.a)(c,f)}):{}})})},n.onNodeExpand=function(e,t){var r=n.state.expandedKeys,o=n.props,a=o.onExpand,i=o.loadData,c=t.props,u=c.eventKey,s=c.expanded,l=r.indexOf(u),f=!s;if(O()(s&&-1!==l||!s&&-1===l,"Expand state not sync with index check"),r=f?Object(w.a)(r,u):Object(w.b)(r,u),n.setUncontrolledState({expandedKeys:r}),a&&a(r,{node:t,expanded:f,nativeEvent:e.nativeEvent}),f&&i){var d=n.onNodeLoad(t);return d?d.then(function(){n.setUncontrolledState({expandedKeys:r})}):null}return null},n.onNodeMouseEnter=function(e,t){var r=n.props.onMouseEnter;r&&r({event:e,node:t})},n.onNodeMouseLeave=function(e,t){var r=n.props.onMouseLeave;r&&r({event:e,node:t})},n.onNodeContextMenu=function(e,t){var r=n.props.onRightClick;r&&(e.preventDefault(),r({event:e,node:t}))},n.setUncontrolledState=function(e){var t=!1,r={};Object.keys(e).forEach(function(o){o in n.props||(t=!0,r[o]=e[o])}),t&&n.setState(r)},n.registerTreeNode=function(e,t){t?n.domTreeNodes[e]=t:delete n.domTreeNodes[e]},n.isKeyChecked=function(e){var t=n.state.checkedKeys;return-1!==(void 0===t?[]:t).indexOf(e)},n.renderTreeNode=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=n.state,a=o.keyEntities,i=o.expandedKeys,c=void 0===i?[]:i,u=o.selectedKeys,s=void 0===u?[]:u,l=o.halfCheckedKeys,f=void 0===l?[]:l,d=o.loadedKeys,p=void 0===d?[]:d,v=o.loadingKeys,h=void 0===v?[]:v,m=o.dragOverNodeKey,g=o.dropPosition,b=Object(w.l)(r,t),E=e.key||b;return a[E]?y.a.cloneElement(e,{key:E,eventKey:E,expanded:-1!==c.indexOf(E),selected:-1!==s.indexOf(E),loaded:-1!==p.indexOf(E),loading:-1!==h.indexOf(E),checked:n.isKeyChecked(E),halfChecked:-1!==f.indexOf(E),pos:b,dragOver:m===E&&0===g,dragOverGapTop:m===E&&-1===g,dragOverGapBottom:m===E&&1===g}):(Object(w.p)(),null)},n.state={posEntities:{},keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],treeNode:[]},n.domTreeNodes={},n}return v()(t,e),l()(t,[{key:"getChildContext",value:function(){var e=this.props,t=e.prefixCls,n=e.selectable,r=e.showIcon,o=e.icon,a=e.draggable,i=e.checkable,c=e.checkStrictly,u=e.disabled,s=e.loadData,l=e.filterTreeNode,f=e.openTransitionName,d=e.openAnimation;return{rcTree:{prefixCls:t,selectable:n,showIcon:r,icon:o,switcherIcon:e.switcherIcon,draggable:a,checkable:i,checkStrictly:c,disabled:u,openTransitionName:f,openAnimation:d,loadData:s,filterTreeNode:l,renderTreeNode:this.renderTreeNode,isKeyChecked:this.isKeyChecked,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop,registerTreeNode:this.registerTreeNode}}}},{key:"render",value:function(){var e=this,t=this.state.treeNode,n=this.props,r=n.prefixCls,a=n.className,c=n.focusable,u=n.style,s=n.showLine,l=n.tabIndex,f=void 0===l?0:l,d=Object(w.i)(this.props);return c&&(d.tabIndex=f,d.onKeyDown=this.onKeyDown),y.a.createElement("ul",o()({},d,{className:E()(r,a,i()({},r+"-show-line",s)),style:u,role:"tree",unselectable:"on"}),Object(w.m)(t,function(t,n){return e.renderTreeNode(t,n)}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){function n(t){return!r&&t in e||r&&r[t]!==e[t]}var r=t.prevProps,o={prevProps:e},a=null;if(n("treeData")?a=Object(w.g)(e.treeData):n("children")&&(a=Object(k.a)(e.children)),a){o.treeNode=a;var i=Object(w.h)(a);o.posEntities=i.posEntities,o.keyEntities=i.keyEntities}var c=o.keyEntities||t.keyEntities;if(n("expandedKeys")||r&&n("autoExpandParent")?o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?Object(w.f)(e.expandedKeys,c):e.expandedKeys:!r&&e.defaultExpandAll?o.expandedKeys=Object.keys(c):!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Object(w.f)(e.defaultExpandedKeys,c):e.defaultExpandedKeys),e.selectable&&(n("selectedKeys")?o.selectedKeys=Object(w.d)(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=Object(w.d)(e.defaultSelectedKeys,e))),e.checkable){var u=void 0;if(n("checkedKeys")?u=Object(w.n)(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?u=Object(w.n)(e.defaultCheckedKeys)||{}:a&&(u=Object(w.n)(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),u){var s=u,l=s.checkedKeys,f=void 0===l?[]:l,d=s.halfCheckedKeys,p=void 0===d?[]:d;if(!e.checkStrictly){var v=Object(w.e)(f,!0,c);f=v.checkedKeys,p=v.halfCheckedKeys}o.checkedKeys=f,o.halfCheckedKeys=p}}return n("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),t}(y.a.Component);j.propTypes={prefixCls:g.a.string,className:g.a.string,style:g.a.object,tabIndex:g.a.oneOfType([g.a.string,g.a.number]),children:g.a.any,treeData:g.a.array,showLine:g.a.bool,showIcon:g.a.bool,icon:g.a.oneOfType([g.a.node,g.a.func]),focusable:g.a.bool,selectable:g.a.bool,disabled:g.a.bool,multiple:g.a.bool,checkable:g.a.oneOfType([g.a.bool,g.a.node]),checkStrictly:g.a.bool,draggable:g.a.bool,defaultExpandParent:g.a.bool,autoExpandParent:g.a.bool,defaultExpandAll:g.a.bool,defaultExpandedKeys:g.a.arrayOf(g.a.string),expandedKeys:g.a.arrayOf(g.a.string),defaultCheckedKeys:g.a.arrayOf(g.a.string),checkedKeys:g.a.oneOfType([g.a.arrayOf(g.a.oneOfType([g.a.string,g.a.number])),g.a.object]),defaultSelectedKeys:g.a.arrayOf(g.a.string),selectedKeys:g.a.arrayOf(g.a.string),onClick:g.a.func,onDoubleClick:g.a.func,onExpand:g.a.func,onCheck:g.a.func,onSelect:g.a.func,onLoad:g.a.func,loadData:g.a.func,loadedKeys:g.a.arrayOf(g.a.string),onMouseEnter:g.a.func,onMouseLeave:g.a.func,onRightClick:g.a.func,onDragStart:g.a.func,onDragEnter:g.a.func,onDragOver:g.a.func,onDragLeave:g.a.func,onDragEnd:g.a.func,onDrop:g.a.func,filterTreeNode:g.a.func,openTransitionName:g.a.string,openAnimation:g.a.oneOfType([g.a.string,g.a.object]),switcherIcon:g.a.oneOfType([g.a.node,g.a.func])},j.childContextTypes=S.b,j.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},Object(N.a)(j),t.a=j},function(e,t,n){e.exports={default:n(70),__esModule:!0}},function(e,t,n){n(71),e.exports=n(0).Object.assign},function(e,t,n){var r=n(4);r(r.S+r.F,"Object",{assign:n(73)})},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 r=n(23),o=n(36),a=n(26),i=n(37),c=n(47),u=Object.assign;e.exports=!u||n(14)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n=i(e),u=arguments.length,s=1,l=o.f,f=a.f;u>s;)for(var d,p=c(arguments[s++]),v=l?r(p).concat(l(p)):r(p),h=v.length,y=0;h>y;)f.call(p,d=v[y++])&&(n[d]=p[d]);return n}:u},function(e,t,n){var r=n(11),o=n(48),a=n(75);e.exports=function(e){return function(t,n,i){var c,u=r(t),s=o(u.length),l=a(i,s);if(e&&n!=n){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(32),o=Math.max,a=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):a(e,t)}},function(e,t,n){n(77);var r=n(0).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(4);r(r.S+r.F*!n(5),"Object",{defineProperty:n(3).f})},function(e,t,n){e.exports={default:n(79),__esModule:!0}},function(e,t,n){n(51),n(85),e.exports=n(41).f("iterator")},function(e,t,n){var r=n(32),o=n(31);e.exports=function(e){return function(t,n){var a,i,c=String(o(t)),u=r(n),s=c.length;return u<0||u>=s?e?"":void 0:(a=c.charCodeAt(u),a<55296||a>56319||u+1===s||(i=c.charCodeAt(u+1))<56320||i>57343?e?c.charAt(u):a:e?c.slice(u,u+2):i-56320+(a-55296<<10)+65536)}}},function(e,t,n){"use strict";var r=n(39),o=n(15),a=n(40),i={};n(8)(i,n(1)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(i,{next:o(1,n)}),a(e,t+" Iterator")}},function(e,t,n){var r=n(3),o=n(9),a=n(23);e.exports=n(5)?Object.defineProperties:function(e,t){o(e);for(var n,i=a(t),c=i.length,u=0;c>u;)r.f(e,n=i[u++],t[n]);return e}},function(e,t,n){var r=n(2).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(6),o=n(37),a=n(33)("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},function(e,t,n){n(86);for(var r=n(2),o=n(8),a=n(19),i=n(1)("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(","),u=0;u<c.length;u++){var s=c[u],l=r[s],f=l&&l.prototype;f&&!f[i]&&o(f,i,s),a[s]=a.Array}},function(e,t,n){"use strict";var r=n(87),o=n(88),a=n(19),i=n(11);e.exports=n(52)(Array,"Array",function(e,t){this._t=i(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,o(1)):"keys"==t?o(0,n):"values"==t?o(0,e[n]):o(0,[n,e[n]])},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("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(90),__esModule:!0}},function(e,t,n){n(91),n(96),n(97),n(98),e.exports=n(0).Symbol},function(e,t,n){"use strict";var r=n(2),o=n(6),a=n(5),i=n(4),c=n(53),u=n(92).KEY,s=n(14),l=n(34),f=n(40),d=n(25),p=n(1),v=n(41),h=n(42),y=n(93),m=n(94),g=n(9),b=n(10),E=n(11),x=n(29),O=n(15),k=n(39),N=n(95),S=n(55),w=n(3),j=n(23),T=S.f,D=w.f,_=N.f,C=r.Symbol,K=r.JSON,L=K&&K.stringify,P=p("_hidden"),M=p("toPrimitive"),A={}.propertyIsEnumerable,F=l("symbol-registry"),U=l("symbols"),I=l("op-symbols"),R=Object.prototype,W="function"==typeof C,G=r.QObject,B=!G||!G.prototype||!G.prototype.findChild,H=a&&s(function(){return 7!=k(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=T(R,t);r&&delete R[t],D(e,t,n),r&&e!==R&&D(R,t,r)}:D,$=function(e){var t=U[e]=k(C.prototype);return t._k=e,t},q=W&&"symbol"==typeof C.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof C},Q=function(e,t,n){return e===R&&Q(I,t,n),g(e),t=x(t,!0),g(n),o(U,t)?(n.enumerable?(o(e,P)&&e[P][t]&&(e[P][t]=!1),n=k(n,{enumerable:O(0,!1)})):(o(e,P)||D(e,P,O(1,{})),e[P][t]=!0),H(e,t,n)):D(e,t,n)},V=function(e,t){g(e);for(var n,r=y(t=E(t)),o=0,a=r.length;a>o;)Q(e,n=r[o++],t[n]);return e},z=function(e,t){return void 0===t?k(e):V(k(e),t)},J=function(e){var t=A.call(this,e=x(e,!0));return!(this===R&&o(U,e)&&!o(I,e))&&(!(t||!o(this,e)||!o(U,e)||o(this,P)&&this[P][e])||t)},Y=function(e,t){if(e=E(e),t=x(t,!0),e!==R||!o(U,t)||o(I,t)){var n=T(e,t);return!n||!o(U,t)||o(e,P)&&e[P][t]||(n.enumerable=!0),n}},X=function(e){for(var t,n=_(E(e)),r=[],a=0;n.length>a;)o(U,t=n[a++])||t==P||t==u||r.push(t);return r},Z=function(e){for(var t,n=e===R,r=_(n?I:E(e)),a=[],i=0;r.length>i;)!o(U,t=r[i++])||n&&!o(R,t)||a.push(U[t]);return a};W||(C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===R&&t.call(I,n),o(this,P)&&o(this[P],e)&&(this[P][e]=!1),H(this,e,O(1,n))};return a&&B&&H(R,e,{configurable:!0,set:t}),$(e)},c(C.prototype,"toString",function(){return this._k}),S.f=Y,w.f=Q,n(54).f=N.f=X,n(26).f=J,n(36).f=Z,a&&!n(24)&&c(R,"propertyIsEnumerable",J,!0),v.f=function(e){return $(p(e))}),i(i.G+i.W+i.F*!W,{Symbol:C});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)p(ee[te++]);for(var ne=j(p.store),re=0;ne.length>re;)h(ne[re++]);i(i.S+i.F*!W,"Symbol",{for:function(e){return o(F,e+="")?F[e]:F[e]=C(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(){B=!0},useSimple:function(){B=!1}}),i(i.S+i.F*!W,"Object",{create:z,defineProperty:Q,defineProperties:V,getOwnPropertyDescriptor:Y,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),K&&i(i.S+i.F*(!W||s(function(){var e=C();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(b(t)||void 0!==e)&&!q(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!q(t))return t}),r[1]=t,L.apply(K,r)}}),C.prototype[M]||n(8)(C.prototype,M,C.prototype.valueOf),f(C,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){var r=n(25)("meta"),o=n(10),a=n(6),i=n(3).f,c=0,u=Object.isExtensible||function(){return!0},s=!n(14)(function(){return u(Object.preventExtensions({}))}),l=function(e){i(e,r,{value:{i:"O"+ ++c,w:{}}})},f=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].i},d=function(e,t){if(!a(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].w},p=function(e){return s&&v.NEED&&u(e)&&!a(e,r)&&l(e),e},v=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:p}},function(e,t,n){var r=n(23),o=n(36),a=n(26);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var i,c=n(e),u=a.f,s=0;c.length>s;)u.call(e,i=c[s++])&&t.push(i);return t}},function(e,t,n){var r=n(30);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(11),o=n(54).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(e){try{return o(e)}catch(e){return i.slice()}};e.exports.f=function(e){return i&&"[object Window]"==a.call(e)?c(e):o(r(e))}},function(e,t){},function(e,t,n){n(42)("asyncIterator")},function(e,t,n){n(42)("observable")},function(e,t,n){e.exports={default:n(100),__esModule:!0}},function(e,t,n){n(101),e.exports=n(0).Object.setPrototypeOf},function(e,t,n){var r=n(4);r(r.S,"Object",{setPrototypeOf:n(102).set})},function(e,t,n){var r=n(10),o=n(9),a=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(28)(Function.call,n(55).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:a}},function(e,t,n){e.exports={default:n(104),__esModule:!0}},function(e,t,n){n(105);var r=n(0).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){var r=n(4);r(r.S,"Object",{create:n(39)})},function(e,t,n){"use strict";function r(){}function o(){}var a=n(107);o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==a){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:o,resetWarningCache:r};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 r=n(109);n(61),n(127);t.a=r.a},function(e,t,n){"use strict";var r=n(13),o=n.n(r),a=n(16),i=n.n(a),c=n(17),u=n.n(c),s=n(18),l=n.n(s),f=n(20),d=n.n(f),p=n(7),v=n.n(p),h=n(12),y=n.n(h),m=n(22),g=n(21),b=n(110),E=n.n(b),x=n(61),O=n(43),k="rc_animate_"+Date.now(),N=["children"];t.a=function(e){var t=function(t){function n(){var e,t,r,o;i()(this,n);for(var a=arguments.length,c=Array(a),u=0;u<a;u++)c[u]=arguments[u];return t=r=l()(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(c))),r.state={appeared:!0,mergedChildren:[]},r.onChildLeaved=function(e){if(!r.hasChild(e)){var t=r.state.mergedChildren;r.setState({mergedChildren:t.filter(function(t){return t.key!==e})})}},r.hasChild=function(e){var t=r.props.children;return Object(g.a)(t).some(function(t){return t&&t.key===e})},o=t,l()(r,o)}return d()(n,t),u()(n,[{key:"componentDidMount",value:function(){this.state.appeared=!1}},{key:"render",value:function(){var t=this,n=this.state,r=n.appeared,a=n.mergedChildren,i=this.props,c=i.component,u=i.componentProps,s=i.className,l=i.style,f=i.showProp,d=a.map(function(n){if(a.length>1&&!n.key)return E()(!1,"must set key for <rc-animate> children"),null;var i=!0;t.hasChild(n.key)?f&&(i=n.props[f]):i=!1;var c=n.key||k;return v.a.createElement(e,o()({},t.props,{appeared:r,show:i,className:n.props.className,style:n.props.style,key:c,animateKey:n.key,onChildLeaved:t.onChildLeaved}),n)});if(c){var p=this.props;return"string"==typeof c&&(p=o()({className:s,style:l},u)),v.a.createElement(c,p,d)}return d[0]||null}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=void 0===n?{}:n,o={prevProps:Object(O.b)(e,N)},a=e.showProp;return function(t,n){r[t]!==e[t]&&n(e[t])}("children",function(e){var n=Object(g.a)(e).filter(function(e){return e}),r=t.mergedChildren.filter(function(e){return!(n.every(function(t){return t.key!==e.key})&&a&&!e.props[a])});o.mergedChildren=Object(O.e)(r,n)}),o}}]),n}(v.a.Component);return t.isAnimate=!0,t.propTypes={component:y.a.any,componentProps:y.a.object,animation:y.a.object,transitionName:y.a.oneOfType([y.a.string,y.a.object]),transitionEnter:y.a.bool,transitionAppear:y.a.bool,exclusive:y.a.bool,transitionLeave:y.a.bool,onEnd:y.a.func,onEnter:y.a.func,onLeave:y.a.func,onAppear:y.a.func,showProp:y.a.string,children:y.a.node,style:y.a.object,className:y.a.string},t.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1},Object(m.a)(t),t}(x.a)},function(e,t,n){"use strict";var r=n(111),o=r;e.exports=o},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";t.__esModule=!0;var r=n(113),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e){return Array.isArray(e)?e:(0,o.default)(e)}},function(e,t,n){e.exports={default:n(114),__esModule:!0}},function(e,t,n){n(51),n(115),e.exports=n(0).Array.from},function(e,t,n){"use strict";var r=n(28),o=n(4),a=n(37),i=n(116),c=n(117),u=n(48),s=n(118),l=n(119);o(o.S+o.F*!n(121)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,f,d=a(e),p="function"==typeof this?this:Array,v=arguments.length,h=v>1?arguments[1]:void 0,y=void 0!==h,m=0,g=l(d);if(y&&(h=r(h,v>2?arguments[2]:void 0,2)),void 0==g||p==Array&&c(g))for(t=u(d.length),n=new p(t);t>m;m++)s(n,m,y?h(d[m],m):d[m]);else for(f=g.call(d),n=new p;!(o=f.next()).done;m++)s(n,m,y?i(f,h,[o.value,m],!0):o.value);return n.length=m,n}})},function(e,t,n){var r=n(9);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw void 0!==a&&r(a.call(e)),t}}},function(e,t,n){var r=n(19),o=n(1)("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[o]===e)}},function(e,t,n){"use strict";var r=n(3),o=n(15);e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){var r=n(120),o=n(1)("iterator"),a=n(19);e.exports=n(0).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||a[r(e)]}},function(e,t,n){var r=n(30),o=n(1)("toStringTag"),a="Arguments"==r(function(){return arguments}()),i=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,c;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=i(t=Object(e),o))?n:a?r(t):"Object"==(c=r(t))&&"function"==typeof t.callee?"Arguments":c}},function(e,t,n){var r=n(1)("iterator"),o=!1;try{var a=[7][r]();a.return=function(){o=!0},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var a=[7],i=a[r]();i.next=function(){return{done:n=!0}},a[r]=function(){return i},e(a)}catch(e){}return n}},function(e,t,n){function r(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}try{var o=n(63)}catch(e){var o=n(63)}var a=/\s+/,i=Object.prototype.toString;e.exports=function(e){return new r(e)},r.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array();return~o(t,e)||t.push(e),this.el.className=t.join(" "),this},r.prototype.remove=function(e){if("[object RegExp]"==i.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=o(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},r.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},r.prototype.toggle=function(e,t){return this.list?(void 0!==t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this):(void 0!==t?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this)},r.prototype.array=function(){var e=this.el.getAttribute("class")||"",t=e.replace(/^\s+|\s+$/g,""),n=t.split(a);return""===n[0]&&n.shift(),n},r.prototype.has=r.prototype.contains=function(e){return this.list?this.list.contains(e):!!~o(this.array(),e)}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(t){(function(){var n,r,o,a,i,c;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:void 0!==t&&null!==t&&t.hrtime?(e.exports=function(){return(n()-i)/1e6},r=t.hrtime,n=function(){var e;return e=r(),1e9*e[0]+e[1]},a=n(),c=1e9*t.uptime(),i=a-c):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(t,n(125))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function a(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function i(){h&&p&&(h=!1,p.length?v=p.concat(v):y=-1,v.length&&c())}function c(){if(!h){var e=o(i);h=!0;for(var t=v.length;t;){for(p=v,v=[];++y<t;)p&&p[y].run();y=-1,t=v.length}p=null,h=!1,a(e)}}function u(e,t){this.fun=e,this.array=t}function s(){}var l,f,d=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var p,v=[],h=!1,y=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];v.push(new u(e,t)),1!==v.length||h||o(c)},u.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=s,d.addListener=s,d.once=s,d.off=s,d.removeListener=s,d.removeAllListeners=s,d.emit=s,d.prependListener=s,d.prependOnceListener=s,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=o},function(e,t,n){"use strict";var r=n(38),o=n.n(r),a=n(13),i=n.n(a),c=n(16),u=n.n(c),s=n(17),l=n.n(s),f=n(18),d=n.n(f),p=n(20),v=n.n(p),h=n(7),y=n.n(h),m=n(62),g=n.n(m),b=n(12),E=n.n(b),x=n(22),O=n(27),k=n.n(O),N=n(64),S=n.n(N),w=n(43),j="none",T="appear",D="enter",_="leave";!function(e){var t=function(t){function n(){u()(this,n);var t=d()(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.onDomUpdate=function(){var n=t.state,r=n.status,o=n.newStatus,a=t.props,i=a.onAppearStart,c=a.onEnterStart,u=a.onLeaveStart,s=a.onAppearActive,l=a.onEnterActive,f=a.onLeaveActive,d=a.motionAppear,p=a.motionEnter,v=a.motionLeave;if(e){var h=g.a.findDOMNode(t);t.$ele!==h&&(t.removeEventListener(t.$ele),t.addEventListener(h),t.$ele=h),o&&r===T&&d?t.updateStatus(i,null,null,function(){t.updateActiveStatus(s,T)}):o&&r===D&&p?t.updateStatus(c,null,null,function(){t.updateActiveStatus(l,D)}):o&&r===_&&v&&t.updateStatus(u,null,null,function(){t.updateActiveStatus(f,_)})}},t.onMotionEnd=function(e){var n=t.state,r=n.status,o=n.statusActive,a=t.props,i=a.onAppearEnd,c=a.onEnterEnd,u=a.onLeaveEnd;r===T&&o?t.updateStatus(i,{status:j},e):r===D&&o?t.updateStatus(c,{status:j},e):r===_&&o&&t.updateStatus(u,{status:j},e)},t.addEventListener=function(e){e&&(e.addEventListener(w.g,t.onMotionEnd),e.addEventListener(w.a,t.onMotionEnd))},t.removeEventListener=function(e){e&&(e.removeEventListener(w.g,t.onMotionEnd),e.removeEventListener(w.a,t.onMotionEnd))},t.updateStatus=function(e,n,r,o){var a=e?e(g.a.findDOMNode(t),r):null;if(!1!==a&&!t._destroyed){var c=void 0;o&&(c=function(){t.nextFrame(o)}),t.setState(i()({statusStyle:"object"==typeof a?a:null,newStatus:!1},n),c)}},t.updateActiveStatus=function(e,n){t.nextFrame(function(){t.state.status===n&&t.updateStatus(e,{statusActive:!0})})},t.nextFrame=function(e){t.cancelNextFrame(),t.raf=S()(e)},t.cancelNextFrame=function(){t.raf&&(S.a.cancel(t.raf),t.raf=null)},t.state={status:j,statusActive:!1,newStatus:!1,statusStyle:null},t.$ele=null,t.raf=null,t}return v()(n,t),l()(n,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this._destroyed=!0,this.removeEventListener(this.$ele),this.cancelNextFrame()}},{key:"render",value:function(){var t,n=this.state,r=n.status,a=n.statusActive,i=n.statusStyle,c=this.props,u=c.children,s=c.motionName,l=c.visible;return u?r!==j&&e?u({className:k()((t={},o()(t,Object(w.d)(s,r),r!==j),o()(t,Object(w.d)(s,r+"-active"),r!==j&&a),o()(t,s,"string"==typeof s),t)),style:i}):l?u({}):null:null}}],[{key:"getDerivedStateFromProps",value:function(t,n){var r=n.prevProps;if(!e)return{};var o=t.visible,a=t.motionAppear,i=t.motionEnter,c=t.motionLeave,u=t.motionLeaveImmediately,s={prevProps:t};return!r&&o&&a&&(s.status=T,s.statusActive=!1,s.newStatus=!0),r&&!r.visible&&o&&i&&(s.status=D,s.statusActive=!1,s.newStatus=!0),(r&&r.visible&&!o&&c||!r&&u&&!o&&c)&&(s.status=_,s.statusActive=!1,s.newStatus=!0),s}}]),n}(y.a.Component);t.propTypes={visible:E.a.bool,children:E.a.func,motionName:E.a.oneOfType([E.a.string,E.a.object]),motionAppear:E.a.bool,motionEnter:E.a.bool,motionLeave:E.a.bool,motionLeaveImmediately:E.a.bool,onAppearStart:E.a.func,onAppearActive:E.a.func,onAppearEnd:E.a.func,onEnterStart:E.a.func,onEnterActive:E.a.func,onEnterEnd:E.a.func,onLeaveStart:E.a.func,onLeaveActive:E.a.func,onLeaveEnd:E.a.func},t.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0},Object(x.a)(t)}(w.f)}]).default}); |