react-dnd
Version:
Drag and Drop for React
1 lines • 67.3 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactDnD=e(require("react")):t.ReactDnD=e(t.React)}(window,function(t){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=149)}([function(t,e,r){"use strict";t.exports=function(t,e,r,n,o,i,a,u){if(!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,o,i,a,u],f=0;(s=new Error(e.replace(/%s/g,function(){return c[f++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){var n=r(16),o=r(62),i=r(3),a="[object Object]",u=Function.prototype,s=Object.prototype,c=u.toString,f=s.hasOwnProperty,d=c.call(Object);t.exports=function(t){if(!i(t)||n(t)!=a)return!1;var e=o(t);if(null===e)return!0;var r=f.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==d}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(e,r){e.exports=t},function(t,e){t.exports=function(t,e,r,n){var o=r?r.call(n,t,e):void 0;if(void 0!==o)return!!o;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(e),s=0;s<i.length;s++){var c=i[s];if(!u(c))return!1;var f=t[c],d=e[c];if(!1===(o=r?r.call(n,f,d,c):void 0)||void 0===o&&f!==d)return!1}return!0}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n]}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ADD_SOURCE="dnd-core/ADD_SOURCE",e.ADD_TARGET="dnd-core/ADD_TARGET",e.REMOVE_SOURCE="dnd-core/REMOVE_SOURCE",e.REMOVE_TARGET="dnd-core/REMOVE_TARGET",e.addSource=function(t){return{type:e.ADD_SOURCE,payload:{sourceId:t}}},e.addTarget=function(t){return{type:e.ADD_TARGET,payload:{targetId:t}}},e.removeSource=function(t){return{type:e.REMOVE_SOURCE,payload:{sourceId:t}}},e.removeTarget=function(t){return{type:e.REMOVE_TARGET,payload:{targetId:t}}}},function(t,e,r){"use strict";var n=this&&this.__assign||Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=o(r(0)),a=o(r(1)),u=o(r(24)),s=o(r(40));e.BEGIN_DRAG="dnd-core/BEGIN_DRAG",e.PUBLISH_DRAG_SOURCE="dnd-core/PUBLISH_DRAG_SOURCE",e.HOVER="dnd-core/HOVER",e.DROP="dnd-core/DROP",e.END_DRAG="dnd-core/END_DRAG",e.default=function(t){return{beginDrag:function(r,n){void 0===r&&(r=[]);var o=void 0===n?{publishSource:!0}:n,a=o.publishSource,s=o.clientOffset,c=o.getSourceClientOffset,f=t.getMonitor(),d=t.getRegistry();i.default(!f.isDragging(),"Cannot call beginDrag while dragging.");for(var l=0,p=r;l<p.length;l++){var h=p[l];i.default(d.getSource(h),"Expected sourceIds to be registered.")}for(var g=null,v=r.length-1;v>=0;v--)if(f.canDragSource(r[v])){g=r[v];break}if(null!==g){var y=null;s&&(i.default("function"==typeof c,"When clientOffset is provided, getSourceClientOffset must be a function."),y=c(g));var b=d.getSource(g).beginDrag(f,g);i.default(u.default(b),"Item must be an object."),d.pinSource(g);var _=d.getSourceType(g);return{type:e.BEGIN_DRAG,payload:{itemType:_,item:b,sourceId:g,clientOffset:s||null,sourceClientOffset:y||null,isSourcePublic:!!a}}}},publishDragSource:function(){if(t.getMonitor().isDragging())return{type:e.PUBLISH_DRAG_SOURCE}},hover:function(r,n){var o=(void 0===n?{}:n).clientOffset;i.default(a.default(r),"Expected targetIds to be an array.");var u=r.slice(0),c=t.getMonitor(),f=t.getRegistry();i.default(c.isDragging(),"Cannot call hover while not dragging."),i.default(!c.didDrop(),"Cannot call hover after drop.");for(var d=0;d<u.length;d++){var l=u[d];i.default(u.lastIndexOf(l)===d,"Expected targetIds to be unique in the passed array.");var p=f.getTarget(l);i.default(p,"Expected targetIds to be registered.")}var h=c.getItemType();for(d=u.length-1;d>=0;d--){l=u[d];var g=f.getTargetType(l);s.default(g,h)||u.splice(d,1)}for(var v=0,y=u;v<y.length;v++)l=y[v],(p=f.getTarget(l)).hover(c,l);return{type:e.HOVER,payload:{targetIds:u,clientOffset:o||null}}},drop:function(r){void 0===r&&(r={});var o=t.getMonitor(),a=t.getRegistry();i.default(o.isDragging(),"Cannot call drop while not dragging."),i.default(!o.didDrop(),"Cannot call drop twice during one drag operation.");var s=o.getTargetIds().filter(o.canDropOnTarget,o);s.reverse(),s.forEach(function(s,c){var f=a.getTarget(s).drop(o,s);i.default(void 0===f||u.default(f),"Drop result must either be an object or undefined."),void 0===f&&(f=0===c?{}:o.getDropResult());var d={type:e.DROP,payload:{dropResult:n({},r,f)}};t.dispatch(d)})},endDrag:function(){var r=t.getMonitor(),n=t.getRegistry();i.default(r.isDragging(),"Cannot call endDrag while not dragging.");var o=r.getSourceId();return n.getSource(o,!0).endDrag(r,o),n.unpinSource(),{type:e.END_DRAG}}}}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},function(t,e,r){var n=r(112);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},function(t,e,r){var n=r(118);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){var n=r(130),o=r(126);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},function(t,e,r){var n=r(12)(Object,"create");t.exports=n},function(t,e,r){var n=r(139),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},function(t,e,r){var n=r(14).Symbol;t.exports=n},function(t,e,r){var n=r(15),o=r(138),i=r(137),a="[object Null]",u="[object Undefined]",s=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?u:a:s&&s in Object(t)?o(t):i(t)}},function(t,e,r){t.exports=function(){"use strict";var t={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},e={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r=Object.defineProperty,n=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols,i=Object.getOwnPropertyDescriptor,a=Object.getPrototypeOf,u=a&&a(Object);return function s(c,f,d){if("string"!=typeof f){if(u){var l=a(f);l&&l!==u&&s(c,l,d)}var p=n(f);o&&(p=p.concat(o(f)));for(var h=0;h<p.length;++h){var g=p[h];if(!(t[g]||e[g]||d&&d[g])){var v=i(f,g);try{r(c,g,v)}catch(t){}}}return c}return c}}()},function(t,e,r){var n=r(89),o=r(3);t.exports=function(t){return o(t)&&n(t)}},function(t,e,r){var n=r(36),o=r(96),i=r(94);t.exports=function(t,e){return i(o(t,e,n),t+"")}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e){t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},function(t,e,r){var n=r(100);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},function(t,e,r){var n=r(41),o=r(102),i=r(101);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,r){var n=r(16),o=r(24),i="[object AsyncFunction]",a="[object Function]",u="[object GeneratorFunction]",s="[object Proxy]";t.exports=function(t){if(!o(t))return!1;var e=n(t);return e==a||e==u||e==i||e==s}},function(t,e,r){var n=r(16),o=r(3),i="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||o(t)&&n(t)==i}},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u,s=a(r(4)),c=r(43),f=a(r(0)),d=a(r(17)),l=a(r(6));function p(t,e){return{dragDropManager:c.createDragDropManager(t,e)}}e.Consumer=(u=s.default.createContext({dragDropManager:void 0})).Consumer,e.Provider=u.Provider,e.createChildContext=p,e.DragDropContextProvider=function(t){var r=t.backend,n=t.context,o=t.children,i=p(r,n);return s.default.createElement(e.Provider,{value:i},o)},e.DragDropContext=function(t,r){l.default("DragDropContext","backend",t);var n=p(t,r);return function(t){var r=t.displayName||t.name||"Component",a=function(a){function u(){return null!==a&&a.apply(this,arguments)||this}return o(u,a),u.prototype.getDecoratedComponentInstance=function(){return f.default(this.child,"In order to access an instance of the decorated component it can not be a stateless component."),this.child},u.prototype.getManager=function(){return n.dragDropManager},u.prototype.render=function(){var r=this;return s.default.createElement(e.Provider,{value:n},s.default.createElement(t,i({},this.props,{ref:function(t){return r.child=t}})))},u.DecoratedComponent=t,u.displayName="DragDropContext("+r+")",u}(s.default.Component);return d.default(a,t)}}},function(t,e,r){"use strict";(function(t,n){var o,i=r(44);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:n;var a=Object(i.a)(o);e.a=a}).call(this,r(27),r(145)(t))},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(1));e.default=function t(e,r){return"string"==typeof e||"symbol"==typeof e||!!r&&o.default(e)&&e.every(function(e){return t(e,!1)})}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(4),i=n(r(51));function a(t){return function(e,r){if(void 0===e&&(e=null),void 0===r&&(r=null),o.isValidElement(e)){var n=e;!function(t){if("string"!=typeof t.type){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors.You can either wrap "+e+" into a <div>, or turn it into a drag source or a drop target itself.")}}(n);var a=r?function(e){return t(e,r)}:t;return i.default(n,a)}t(e,r)}}e.default=function(t){var e={};return Object.keys(t).forEach(function(r){var n=a(t[r]);e[r]=function(){return n}}),e}},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=a(r(4)),c=(u(r(2)),u(r(0))),f=u(r(17)),d=r(28),l=u(r(5)),p=r(59);e.default=function(t){var e=t.DecoratedComponent,r=t.createHandler,n=t.createMonitor,a=t.createConnector,u=t.registerHandler,h=t.containerDisplayName,g=t.getType,v=t.collect,y=t.options.arePropsEqual,b=void 0===y?l.default:y,_=e.displayName||e.name||"Component",m=function(t){function f(e){var r=t.call(this,e)||this;return r.isCurrentlyMounted=!1,r.handleChange=r.handleChange.bind(r),r.handleChildRef=r.handleChildRef.bind(r),r.disposable=new p.SerialDisposable,r.receiveProps(e),r.dispose(),r}return o(f,t),f.prototype.getHandlerId=function(){return this.handlerId},f.prototype.getDecoratedComponentInstance=function(){return this.decoratedComponentInstance},f.prototype.shouldComponentUpdate=function(t,e){return!b(t,this.props)||!l.default(e,this.state)},f.prototype.componentDidMount=function(){this.isCurrentlyMounted=!0,this.disposable=new p.SerialDisposable,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()},f.prototype.componentDidUpdate=function(t){b(this.props,t)||(this.receiveProps(this.props),this.handleChange())},f.prototype.componentWillUnmount=function(){this.dispose(),this.isCurrentlyMounted=!1},f.prototype.receiveProps=function(t){this.handler&&(this.handler.receiveProps(t),this.receiveType(g(t)))},f.prototype.receiveType=function(t){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&t!==this.currentType){this.currentType=t;var e=u(t,this.handler,this.manager),r=e.handlerId,n=e.unregister;this.handlerId=r,this.handlerMonitor.receiveHandlerId(r),this.handlerConnector.receiveHandlerId(r);var o=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[r]});this.disposable.setDisposable(new p.CompositeDisposable(new p.Disposable(o),new p.Disposable(n)))}},f.prototype.handleChange=function(){if(this.isCurrentlyMounted){var t=this.getCurrentState();l.default(t,this.state)||this.setState(t)}},f.prototype.dispose=function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)},f.prototype.handleChildRef=function(t){this.handler&&(this.decoratedComponentInstance=t,this.handler.receiveComponent(t))},f.prototype.getCurrentState=function(){return this.handlerConnector?v(this.handlerConnector.hooks,this.handlerMonitor):{}},f.prototype.render=function(){var t=this;return s.createElement(d.Consumer,null,function(r){var n=r.dragDropManager;return void 0===n?null:(t.receiveDragDropManager(n),t.isCurrentlyMounted?s.createElement(e,i({},t.props,t.state,{ref:t.handleChildRef})):null)})},f.prototype.receiveDragDropManager=function(t){void 0===this.manager&&(this.manager=t,c.default("object"==typeof t,"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",_,_),this.handlerMonitor=n(t),this.handlerConnector=a(t.getBackend()),this.handler=r(this.handlerMonitor))},f.DecoratedComponent=e,f.displayName=h+"("+_+")",f}(s.Component);return f.default(m,e)}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(74));e.NONE=[],e.ALL=[],e.areDirty=function(t,r){return t!==e.NONE&&(t===e.ALL||void 0===r||o.default(r,t).length>0)}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,r){var n=r(23),o=r(22),i=r(21),a=r(9),u=r(37),s=r(20),c=200;t.exports=function(t,e,r,f){var d=-1,l=o,p=!0,h=t.length,g=[],v=e.length;if(!h)return g;r&&(e=a(e,u(r))),f?(l=i,p=!1):e.length>=c&&(l=s,p=!1,e=new n(e));t:for(;++d<h;){var y=t[d],b=null==r?y:r(y);if(y=f||0!==y?y:0,p&&b==b){for(var _=v;_--;)if(e[_]===b)continue t;g.push(y)}else l(e,b,f)||g.push(y)}return g}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.strictEquality=function(t,e){return t===e},e.areCoordsEqual=function(t,e){return!t&&!e||!(!t||!e)&&t.x===e.x&&t.y===e.y},e.areArraysEqual=function(t,r,n){if(void 0===n&&(n=e.strictEquality),t.length!==r.length)return!1;for(var o=0;o<t.length;++o)if(!n(t[o],r[o]))return!1;return!0}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(1));e.default=function(t,e){return null===e?null===t:o.default(t)?t.some(function(t){return t===e}):t===e}},function(t,e,r){var n=r(133),o=r(113),i=r(111),a=r(110),u=r(109);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"}(e.HandlerRole||(e.HandlerRole={}))},function(t,e,r){"use strict";function n(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0}),n(r(42)),n(r(148))},function(t,e,r){"use strict";function n(t){var e,r=t.Symbol;return"function"==typeof r?r.observable?e=r.observable:(e=r("observable"),r.observable=e):e="@@observable",e}r.d(e,"a",function(){return n})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(43);e.XYCoord=n.XYCoord},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(31)),i=n(r(5));e.default=function(t){var e,r,n,a;function u(){a&&(a(),a=void 0),e&&r&&(a=t.connectDropTarget(e,r,n))}return{receiveHandlerId:function(t){t!==e&&(e=t,u())},hooks:o.default({dropTarget:function(t,e){t===r&&i.default(e,n)||(r=t,n=e,u())}})}}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(0)),i=!1,a=function(){function t(t){this.internalMonitor=t.getMonitor()}return t.prototype.receiveHandlerId=function(t){this.targetId=t},t.prototype.canDrop=function(){o.default(!i,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target-monitor.html");try{return i=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{i=!1}},t.prototype.isOver=function(t){return this.internalMonitor.isOverTarget(this.targetId,t)},t.prototype.getItemType=function(){return this.internalMonitor.getItemType()},t.prototype.getItem=function(){return this.internalMonitor.getItem()},t.prototype.getDropResult=function(){return this.internalMonitor.getDropResult()},t.prototype.didDrop=function(){return this.internalMonitor.didDrop()},t.prototype.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.prototype.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.prototype.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.prototype.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.prototype.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}();e.TargetMonitor=a,e.default=function(t){return new a(t)}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(0)),i=(n(r(2)),["canDrop","hover","drop"]);e.default=function(t){Object.keys(t).forEach(function(e){o.default(i.indexOf(e)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',i.join(", "),e),o.default("function"==typeof t[e],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html",e,e,t[e])});var e=function(){function e(t){this.monitor=t,this.props=null,this.component=null}return e.prototype.receiveProps=function(t){this.props=t},e.prototype.receiveMonitor=function(t){this.monitor=t},e.prototype.receiveComponent=function(t){this.component=t},e.prototype.canDrop=function(){return!t.canDrop||t.canDrop(this.props,this.monitor)},e.prototype.hover=function(){t.hover&&t.hover(this.props,this.monitor,this.component)},e.prototype.drop=function(){if(t.drop)return t.drop(this.props,this.monitor,this.component)},e}();return function(t){return new e(t)}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){var n=r.getRegistry(),o=n.addTarget(t,e);return{handlerId:o,unregister:function(){n.removeTarget(o)}}}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(0)),i=n(r(2)),a=n(r(6)),u=n(r(32)),s=n(r(49)),c=n(r(48)),f=n(r(47)),d=n(r(46)),l=n(r(30));e.default=function(t,e,r,n){void 0===n&&(n={}),a.default("DropTarget","type, spec, collect[, options]",t,e,r,n);var p=t;"function"!=typeof t&&(o.default(l.default(t,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',t),p=function(){return t}),o.default(i.default(e),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',e);var h=c.default(e);return o.default("function"==typeof r,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',r),o.default(i.default(n),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',r),function(t){return u.default({containerDisplayName:"DropTarget",createHandler:h,registerHandler:s.default,createMonitor:f.default,createConnector:d.default,DecoratedComponent:t,getType:p,collect:r,options:n})}}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(0)),i=r(4);e.default=function(t,e){var r=t.ref;return o.default("string"!=typeof r,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),r?i.cloneElement(t,{ref:function(t){e(t),r&&r(t)}}):i.cloneElement(t,{ref:e})}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(31)),i=n(r(5));e.default=function(t){var e,r,n,a,u,s,c;function f(){a&&(a(),a=void 0),e&&r&&(a=t.connectDragSource(e,r,n))}function d(){c&&(c(),c=void 0),e&&u&&(c=t.connectDragPreview(e,u,s))}return{receiveHandlerId:function(t){t!==e&&(e=t,f(),d())},hooks:o.default({dragSource:function(t,e){t===r&&i.default(e,n)||(r=t,n=e,f())},dragPreview:function(t,e){t===u&&i.default(e,s)||(u=t,s=e,d())}})}}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(0)),i=!1,a=!1,u=function(){function t(t){this.internalMonitor=t.getMonitor()}return t.prototype.receiveHandlerId=function(t){this.sourceId=t},t.prototype.canDrag=function(){o.default(!i,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html");try{return i=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{i=!1}},t.prototype.isDragging=function(){o.default(!a,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html");try{return a=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{a=!1}},t.prototype.subscribeToStateChange=function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)},t.prototype.isDraggingSource=function(t){return this.internalMonitor.isDraggingSource(t)},t.prototype.isOverTarget=function(t,e){return this.internalMonitor.isOverTarget(t,e)},t.prototype.getTargetIds=function(){return this.internalMonitor.getTargetIds()},t.prototype.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},t.prototype.getSourceId=function(){return this.internalMonitor.getSourceId()},t.prototype.subscribeToOffsetChange=function(t){return this.internalMonitor.subscribeToOffsetChange(t)},t.prototype.canDragSource=function(t){return this.internalMonitor.canDragSource(t)},t.prototype.canDropOnTarget=function(t){return this.internalMonitor.canDropOnTarget(t)},t.prototype.getItemType=function(){return this.internalMonitor.getItemType()},t.prototype.getItem=function(){return this.internalMonitor.getItem()},t.prototype.getDropResult=function(){return this.internalMonitor.getDropResult()},t.prototype.didDrop=function(){return this.internalMonitor.didDrop()},t.prototype.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.prototype.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.prototype.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.prototype.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.prototype.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}();e.default=function(t){return new u(t)}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(0)),i=(n(r(2)),["canDrag","beginDrag","isDragging","endDrag"]),a=["beginDrag"];e.default=function(t){Object.keys(t).forEach(function(e){o.default(i.indexOf(e)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',i.join(", "),e),o.default("function"==typeof t[e],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",e,e,t[e])}),a.forEach(function(e){o.default("function"==typeof t[e],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",e,e,t[e])});var e=function(){function e(t){this.monitor=t,this.receiveComponent=this.receiveComponent.bind(this),this.beginDrag=this.beginDrag.bind(this)}return e.prototype.receiveProps=function(t){this.props=t},e.prototype.receiveComponent=function(t){this.component=t},e.prototype.canDrag=function(){return!!this.props&&(!t.canDrag||t.canDrag(this.props,this.monitor))},e.prototype.isDragging=function(e,r){return!!this.props&&(t.isDragging?t.isDragging(this.props,this.monitor):r===e.getSourceId())},e.prototype.beginDrag=function(){if(this.props&&this.component)return t.beginDrag(this.props,this.monitor,this.component)},e.prototype.endDrag=function(){this.props&&this.component&&t.endDrag&&t.endDrag(this.props,this.monitor,this.component)},e}();return function(t){return new e(t)}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){var n=r.getRegistry(),o=n.addSource(t,e);return{handlerId:o,unregister:function(){n.removeSource(o)}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.isDisposed=!1,this.disposables=t}return t.prototype.add=function(t){this.isDisposed?t.dispose():this.disposables.push(t)},t.prototype.remove=function(t){var e=!1;if(!this.isDisposed){var r=this.disposables.indexOf(t);-1!==r&&(e=!0,this.disposables.splice(r,1),t.dispose())}return e},t.prototype.clear=function(){if(!this.isDisposed){for(var t=this.disposables.length,e=new Array(t),r=0;r<t;r++)e[r]=this.disposables[r];this.disposables=[];for(r=0;r<t;r++)e[r].dispose()}},t.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;for(var t=this.disposables.length,e=new Array(t),r=0;r<t;r++)e[r]=this.disposables[r];this.disposables=[];for(r=0;r<t;r++)e[r].dispose()}},t}();e.CompositeDisposable=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.isDisposed=!1}return t.prototype.getDisposable=function(){return this.current},t.prototype.setDisposable=function(t){var e=this.isDisposed;if(!e){var r=this.current;this.current=t,r&&r.dispose()}e&&t&&t.dispose()},t.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var t=this.current;this.current=void 0,t&&t.dispose()}},t}();e.SerialDisposable=n},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(25)),i=n(r(35)),a=function(){function t(t){this.isDisposed=!1,this.action=o.default(t)?t:i.default}return t.isDisposable=function(t){return t&&o.default(t.dispose)},t._fixup=function(e){return t.isDisposable(e)?e:t.empty},t.create=function(e){return new t(e)},t.prototype.dispose=function(){this.isDisposed||(this.action(),this.isDisposed=!0)},t.empty={dispose:i.default},t}();e.Disposable=a},function(t,e,r){"use strict";function n(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0}),n(r(58)),n(r(57)),n(r(56))},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(0)),i=n(r(2)),a=n(r(6)),u=n(r(32)),s=n(r(55)),c=n(r(54)),f=n(r(53)),d=n(r(52)),l=n(r(30));e.default=function(t,e,r,n){void 0===n&&(n={}),a.default("DragSource","type, spec, collect[, options]",t,e,r,n);var p=t;"function"!=typeof t&&(o.default(l.default(t),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',t),p=function(){return t}),o.default(i.default(e),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',e);var h=c.default(e);return o.default("function"==typeof r,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',r),o.default(i.default(n),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',r),function(t){return u.default({containerDisplayName:"DragSource",createHandler:h,registerHandler:s.default,createMonitor:f.default,createConnector:d.default,DecoratedComponent:t,getType:p,collect:r,options:n})}}},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(61)(Object.getPrototypeOf,Object);t.exports=n},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=a(r(4)),s=a(r(17)),c=a(r(2)),f=a(r(0)),d=a(r(6)),l=r(28),p=a(r(5));e.default=function(t,e){return void 0===e&&(e={}),d.default("DragLayer","collect[, options]",t,e),f.default("function"==typeof t,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html",t),f.default(c.default(e),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html',e),function(r){var n=e.arePropsEqual,a=void 0===n?p.default:n,c=r.displayName||r.name||"Component",d=function(e){function n(t){var r=e.call(this,t)||this;return r.isCurrentlyMounted=!1,r.handleChange=r.handleChange.bind(r),r}return o(n,e),Object.defineProperty(n.prototype,"DecoratedComponent",{get:function(){return r},enumerable:!0,configurable:!0}),n.prototype.getDecoratedComponentInstance=function(){return f.default(this.child,"In order to access an instance of the decorated component it can not be a stateless component."),this.child},n.prototype.shouldComponentUpdate=function(t,e){return!a(t,this.props)||!p.default(e,this.state)},n.prototype.componentDidMount=function(){this.isCurrentlyMounted=!0,this.handleChange()},n.prototype.componentWillUnmount=function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)},n.prototype.render=function(){var t=this;return u.default.createElement(l.Consumer,null,function(e){var n=e.dragDropManager;return void 0===n?null:(t.receiveDragDropManager(n),t.isCurrentlyMounted?u.default.createElement(r,i({},t.props,t.state,{ref:function(e){t.child=e}})):null)})},n.prototype.receiveDragDropManager=function(t){if(void 0===this.manager){this.manager=t,f.default("object"==typeof t,"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",c,c);var e=this.manager.getMonitor();this.unsubscribeFromOffsetChange=e.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=e.subscribeToStateChange(this.handleChange)}},n.prototype.handleChange=function(){if(this.isCurrentlyMounted){var t=this.getCurrentState();p.default(t,this.state)||this.setState(t)}},n.prototype.getCurrentState=function(){if(!this.manager)return{};var e=this.manager.getMonitor();return t(e,this.props)},n.displayName="DragLayer("+c+")",n}(u.default.Component);return s.default(d,r)}}},function(t,e,r){"use strict";(function(e){function r(t){o.length||(n(),!0),o[o.length]=t}t.exports=r;var n,o=[],i=0,a=1024;function u(){for(;i<o.length;){var t=i;if(i+=1,o[t].call(),i>a){for(var e=0,r=o.length-i;e<r;e++)o[e]=o[e+i];o.length-=i,i=0}}o.length=0,i=0,!1}var s,c,f,d=void 0!==e?e:self,l=d.MutationObserver||d.WebKitMutationObserver;function p(t){return function(){var e=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(e),clearInterval(r),t()}}}"function"==typeof l?(s=1,c=new l(u),f=document.createTextNode(""),c.observe(f,{characterData:!0}),n=function(){s=-s,f.data=s}):n=p(u),r.requestFlush=n,r.makeRequestCallFromTimer=p}).call(this,r(27))},function(t,e,r){"use strict";var n=r(64),o=[],i=[],a=n.makeRequestCallFromTimer(function(){if(i.length)throw i.shift()});function u(t){var e;(e=o.length?o.pop():new s).task=t,n(e)}function s(){this.task=null}t.exports=u,s.prototype.call=function(){try{this.task.call()}catch(t){u.onerror?u.onerror(t):(i.push(t),a())}finally{this.task=null,o[o.length]=this}}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(0)),i=n(r(1));e.validateSourceContract=function(t){o.default("function"==typeof t.canDrag,"Expected canDrag to be a function."),o.default("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),o.default("function"==typeof t.endDrag,"Expected endDrag to be a function.")},e.validateTargetContract=function(t){o.default("function"==typeof t.canDrop,"Expected canDrop to be a function."),o.default("function"==typeof t.hover,"Expected hover to be a function."),o.default("function"==typeof t.drop,"Expected beginDrag to be a function.")},e.validateType=function t(e,r){r&&i.default(e)?e.forEach(function(e){return t(e,!1)}):o.default("string"==typeof e||"symbol"==typeof e,r?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=0;e.default=function(){return n++}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(0)),i=r(7),a=n(r(67)),u=r(42),s=r(66),c=n(r(65));function f(t){switch(t[0]){case"S":return u.HandlerRole.SOURCE;case"T":return u.HandlerRole.TARGET;default:o.default(!1,"Cannot parse handler ID: "+t)}}function d(t,e){var r=t.entries(),n=!1;do{var o=r.next(),i=o.done,a=o.value;a[0];if(a[1]===e)return!0;n=i}while(!n);return!1}var l=function(){function t(t){this.store=t,this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null}return t.prototype.addSource=function(t,e){s.validateType(t),s.validateSourceContract(e);var r=this.addHandler(u.HandlerRole.SOURCE,t,e);return this.store.dispatch(i.addSource(r)),r},t.prototype.addTarget=function(t,e){s.validateType(t,!0),s.validateTargetContract(e);var r=this.addHandler(u.HandlerRole.TARGET,t,e);return this.store.dispatch(i.addTarget(r)),r},t.prototype.containsHandler=function(t){return d(this.dragSources,t)||d(this.dropTargets,t)},t.prototype.getSource=function(t,e){return void 0===e&&(e=!1),o.default(this.isSourceId(t),"Expected a valid source ID."),e&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)},t.prototype.getTarget=function(t){return o.default(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)},t.prototype.getSourceType=function(t){return o.default(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)},t.prototype.getTargetType=function(t){return o.default(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)},t.prototype.isSourceId=function(t){return f(t)===u.HandlerRole.SOURCE},t.prototype.isTargetId=function(t){return f(t)===u.HandlerRole.TARGET},t.prototype.removeSource=function(t){var e=this;o.default(this.getSource(t),"Expected an existing source."),this.store.dispatch(i.removeSource(t)),c.default(function(){e.dragSources.delete(t),e.types.delete(t)})},t.prototype.removeTarget=function(t){o.default(this.getTarget(t),"Expected an existing target."),this.store.dispatch(i.removeTarget(t)),this.dropTargets.delete(t),this.types.delete(t)},t.prototype.pinSource=function(t){var e=this.getSource(t);o.default(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e},t.prototype.unpinSource=function(){o.default(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null},t.prototype.addHandler=function(t,e,r){var n=function(t){var e=a.default().toString();switch(t){case u.HandlerRole.SOURCE:return"S"+e;case u.HandlerRole.TARGET:return"T"+e;default:throw new Error("Unknown Handler Role: "+t)}}(t);return this.types.set(n,e),t===u.HandlerRole.SOURCE?this.dragSources.set(n,r):t===u.HandlerRole.TARGET&&this.dropTargets.set(n,r),n},t}();e.default=l},function(t,e,r){"use strict";function n(t,e){return{x:t.x+e.x,y:t.y+e.y}}function o(t,e){return{x:t.x-e.x,y:t.y-e.y}}Object.defineProperty(e,"__esModule",{value:!0}),e.add=n,e.subtract=o,e.getSourceClientOffset=function(t){var e=t.clientOffset,r=t.initialClientOffset,i=t.initialSourceClientOffset;return e&&r&&i?o(n(e,i),r):null},e.getDifferenceFromInitialOffset=function(t){var e=t.clientOffset,r=t.initialClientOffset;return e&&r?o(e,r):null}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(0)),i=n(r(1)),a=n(r(40)),u=r(69),s=r(33),c=function(){function t(t,e){this.store=t,this.registry=e}return t.prototype.subscribeToStateChange=function(t,e){var r=this;void 0===e&&(e={handlerIds:void 0});var n=e.handlerIds;o.default("function"==typeof t,"listener must be a function."),o.default(void 0===n||i.default(n),"handlerIds, when specified, must be an array of strings.");var a=this.store.getState().stateId;return this.store.subscribe(function(){var e=r.store.getState(),o=e.stateId;try{o===a||o===a+1&&!s.areDirty(e.dirtyHandlerIds,n)||t()}finally{a=o}})},t.prototype.subscribeToOffsetChange=function(t){var e=this;o.default("function"==typeof t,"listener must be a function.");var r=this.store.getState().dragOffset;return this.store.subscribe(function(){var n=e.store.getState().dragOffset;n!==r&&(r=n,t())})},t.prototype.canDragSource=function(t){var e=this.registry.getSource(t);return o.default(e,"Expected to find a valid source."),!this.isDragging()&&e.canDrag(this,t)},t.prototype.canDropOnTarget=function(t){var e=this.registry.getTarget(t);if(o.default(e,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var r=this.registry.getTargetType(t),n=this.getItemType();return a.default(r,n)&&e.canDrop(this,t)},t.prototype.isDragging=function(){return Boolean(this.getItemType())},t.prototype.isDraggingSource=function(t){var e=this.registry.getSource(t,!0);return o.default(e,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(t)===this.getItemType()&&e.isDragging(this,t))},t.prototype.isOverTarget=function(t,e){void 0===e&&(e={shallow:!1});var r=e.shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(t),o=this.getItemType();if(o&&!a.default(n,o))return!1;var i=this.getTargetIds();if(!i.length)return!1;var u=i.indexOf(t);return r?u===i.length-1:u>-1},t.prototype.getItemType=function(){return this.store.getState().dragOperation.itemType},t.prototype.getItem=function(){return this.store.getState().dragOperation.item},t.prototype.getSourceId=function(){return this.store.getState().dragOperation.sourceId},t.prototype.getTargetIds=function(){return this.store.getState().dragOperation.targetIds},t.prototype.getDropResult=function(){return this.store.getState().dragOperation.dropResult},t.prototype.didDrop=function(){return this.store.getState().dragOperation.didDrop},t.prototype.isSourcePublic=function(){return this.store.getState().dragOperation.isSourcePublic},t.prototype.getInitialClientOffset=function(){return this.store.getState().dragOffset.initialClientOffset},t.prototype.getInitialSourceClientOffset=function(){return this.store.getState().dragOffset.initialSourceClientOffset},t.prototype.getClientOffset=function(){return this.store.getState().dragOffset.clientOffset},t.prototype.getSourceClientOffset=function(){return u.getSourceClientOffset(this.store.getState().dragOffset)},t.prototype.getDifferenceFromInitialOffset=function(){return u.getDifferenceFromInitialOffset(this.store.getState().dragOffset)},t}();e.default=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return void 0===t&&(t=0),t+1}},function(t,e,r){var n=r(18);t.exports=function(t){return n(t)?t:[]}},function(t,e,r){var n=r(23),o=r(22),i=r(21),a=r(9),u=r(37),s=r(20),c=Math.min;t.exports=function(t,e,r){for(var f=r?i:o,d=t[0].length,l=t.length,p=l,h=Array(l),g=1/0,v=[];p--;){var y=t[p];p&&e&&(y=a(y,u(e))),g=c(y.length,g),h[p]=!r&&(e||d>=120&&y.length>=120)?new n(p&&y):void 0}y=t[0];var b=-1,_=h[0];t:for(;++b<d&&v.length<g;){var m=y[b],O=e?e(m):m;if(m=r||0!==m?m:0,!(_?s(_,O):f(v,O,r))){for(p=l;--p;){var D=h[p];if(!(D?s(D,O):f(t[p],O,r)))continue t}_&&_.push(O),v.push(m)}}return v}},function(t,e,r){var n=r(9),o=r(73),i=r(19),a=r(72),u=i(function(t){var e=n(t,a);return e.length&&e[0]===t[0]?o(e):[]});t.exports=u},function(t,e,r){var n=r(12)(r(14),"Set");t.exports=n},function(t,e,r){var n=r(75),o=r(35),i=r(34),a=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=a},function(t,e,r){var n=r(23),o=r(22),i=r(21),a=r(20),u=r(76),s=r(34),c=200;t.exports=function(t,e,r){var f=-1,d=o,l=t.length,p=!0,h=[],g=h;if(r)p=!1,d=i;else if(l>=c){var v=e?null:u(t);if(v)return s(v);p=!1,d=a,g=new n}else g=e?[]:h;t:for(;++f<l;){var y=t[f],b=e?e(y):y;if(y=r||0!==y?y:0,p&&b==b){for(var _=g.length;_--;)if(g[_]===b)continue t;e&&g.push(b),h.push(y)}else d(g,b,r)||(g!==h&&g.push(b),h.push(y))}return h}},function(t,e,r){var n=r(16),o=r(3),i="[object Arguments]";t.exports=function(t){return o(t)&&n(t)==i}},function(t,e,r){var n=r(78),o=r(3),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=s},function(t,e,r){var n=r(15),o=r(79),i=r(1),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},function(t,e,r){var n=r(81),o=r(80);t.exports=function t(e,r,i,a,u){var s=-1,c=e.length;for(i||(i=o),u||(u=[]);++s<c;){var f=e[s];r>0&&i(f)?r>1?t(f,r-1,i,a,u):n(u,f):a||(u[u.length]=f)}return u}},function(t,e,r){var n=r(38),o=r(82),i=r(77);t.exports=function(t,e,r){var a=t.length;if(a<2)return a?i(t[0]):[];for(var u=-1,s=Array(a);++u<a;)for(var c=t[u],f=-1;++f<a;)f!=u&&(s[u]=n(s[u]||c,t[f],e,r));return i(o(s,1),e,r)}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}},function(t,e,r){var n=r(84),o=r(19),i=r(83),a=r(18),u=o(function(t){return i(n(t,a))});t.exports=u},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(85)),i=r(8),a=r(7),u=r(39),s=r(33);e.default=function(t,e){switch(void 0===t&&(t=s.NONE),e.type){case i.HOVER:break;case a.ADD_SOURCE:case a.ADD_TARGET:case a.REMOVE_TARGET:case a.REMOVE_SOURCE:return s.NONE;case i.BEGIN_DRAG:case i.PUBLISH_DRAG_SOURCE:case i.END_DRAG:case i.DROP:default:return s.ALL}var r=e.payload,n=r.targetIds,c=void 0===n?[]:n,f=r.prevTargetIds,d=void 0===f?[]:f,l=o.default(c,d);if(!(l.length>0)&&u.areArraysEqual(c,d))return s.NONE;var p=d[d.length-1],h=c[c.length-1];return p!==h&&(p&&l.push(p),h&&l.push(h)),l}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(7);e.default=function(t,e){switch(void 0===t&&(t=0),e.type){case n.ADD_SOURCE:case n.ADD_TARGET:return t+1;case n.REMOVE_SOURCE:case n.REMOVE_TARGET:return t-1;default:return t}}},function(t,e){var r=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}},function(t,e,r){var n=r(25),o=r(88);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},function(t,e){var r=800,n=16,o=Date.now;t.exports=function(t){var e=0,i=0;return function(){var a=o(),u=n-(a-i);if(i=a,u>0){if(++e>=r)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,r){var n=r(12),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e,r){var n=r(92),o=r(91),i=r(36),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},function(t,e,r){var n=r(93),o=r(90)(n);t.exports=o},function(t,e){t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},function(t,e,r){var n=r(95),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),s=Array(u);++a<u;)s[a]=i[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=i[a];return c[e]=r(s),n(t,this,c)}}},function(t,e){t.exports=function(t,e,r