1
0
Fork 0
web2019/static/js/react-beautiful-dnd.min.js

2 lines
113 KiB
JavaScript

!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react-dom"],r):r((e=e||self).ReactBeautifulDnd={},e.React,e.ReactDOM)}(this,function(e,Re,r){"use strict";var W="default"in Re?Re.default:Re;function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e,r){return e(r={exports:{}},r.exports),r.exports}var g=n(function(e){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)}),v=n(function(e){var r=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=r)}),b=(v.version,function(n,o,e){if(function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!")}(n),void 0===o)return n;switch(e){case 1:return function(e){return n.call(o,e)};case 2:return function(e,r){return n.call(o,e,r)};case 3:return function(e,r,t){return n.call(o,e,r,t)}}return function(){return n.apply(o,arguments)}}),o=function(e){return"object"==typeof e?null!==e:"function"==typeof e},a=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e},i=function(e){try{return!!e()}catch(e){return!0}},c=!i(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),u=g.document,l=o(u)&&o(u.createElement),s=function(e){return l?u.createElement(e):{}},d=!c&&!i(function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}),p=Object.defineProperty,f={f:c?Object.defineProperty:function(e,r,t){if(a(e),r=function(e,r){if(!o(e))return e;var t,n;if(r&&"function"==typeof(t=e.toString)&&!o(n=t.call(e)))return n;if("function"==typeof(t=e.valueOf)&&!o(n=t.call(e)))return n;if(!r&&"function"==typeof(t=e.toString)&&!o(n=t.call(e)))return n;throw TypeError("Can't convert object to primitive value")}(r,!0),a(t),d)try{return p(e,r,t)}catch(e){}if("get"in t||"set"in t)throw TypeError("Accessors not supported!");return"value"in t&&(e[r]=t.value),e}},h=c?function(e,r,t){return f.f(e,r,{enumerable:!((n=1)&n),configurable:!(2&n),writable:!(4&n),value:t});var n}:function(e,r,t){return e[r]=t,e},m={}.hasOwnProperty,y=function(e,r){return m.call(e,r)},x="prototype",w=function(e,r,t){var n,o,i,a=e&w.F,c=e&w.G,u=e&w.S,l=e&w.P,s=e&w.B,d=e&w.W,p=c?v:v[r]||(v[r]={}),f=p[x],m=c?g:u?g[r]:(g[r]||{})[x];for(n in c&&(t=r),t)(o=!a&&m&&void 0!==m[n])&&y(p,n)||(i=o?m[n]:t[n],p[n]=c&&"function"!=typeof m[n]?t[n]:s&&o?b(i,g):d&&m[n]==i?function(n){var e=function(e,r,t){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(e);case 2:return new n(e,r)}return new n(e,r,t)}return n.apply(this,arguments)};return e[x]=n[x],e}(i):l&&"function"==typeof i?b(Function.call,i):i,l&&((p.virtual||(p.virtual={}))[n]=i,e&w.R&&f&&!f[n]&&h(f,n,i)))};w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128;var D,S=w,C={}.toString,E=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==(r=e,C.call(r).slice(8,-1))?e.split(""):Object(e);var r},I=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},P=function(e){return E(I(e))},O=Math.ceil,M=Math.floor,R=function(e){return isNaN(e=+e)?0:(0<e?M:O)(e)},B=Math.min,A=Math.max,L=Math.min,N=n(function(e){var r="__core-js_shared__",t=g[r]||(g[r]={});(e.exports=function(e,r){return t[e]||(t[e]=void 0!==r?r:{})})("versions",[]).push({version:v.version,mode:"pure",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),T=0,_=Math.random(),F=N("keys"),j=function(e){return F[e]||(F[e]="Symbol(".concat(void 0===(r=e)?"":r,")_",(++T+_).toString(36)));var r},G=(D=!1,function(e,r,t){var n,o,i,a,c=P(e),u=0<(n=c.length)?B(R(n),9007199254740991):0,l=(i=u,(o=R(o=t))<0?A(o+i,0):L(o,i));if(D&&r!=r){for(;l<u;)if((a=c[l++])!=a)return!0}else for(;l<u;l++)if((D||l in c)&&c[l]===r)return D||l||0;return!D&&-1}),k=j("IE_PROTO"),U="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),z=Object.keys||function(e){return function(e,r){var t,n=P(e),o=0,i=[];for(t in n)t!=k&&y(n,t)&&i.push(t);for(;r.length>o;)y(n,t=r[o++])&&(~G(i,t)||i.push(t));return i}(e,U)},V={f:Object.getOwnPropertySymbols},$={f:{}.propertyIsEnumerable},H=function(e){return Object(I(e))},q=Object.assign,Y=!q||i(function(){var e={},r={},t=Symbol(),n="abcdefghijklmnopqrst";return e[t]=7,n.split("").forEach(function(e){r[e]=e}),7!=q({},e)[t]||Object.keys(q({},r)).join("")!=n})?function(e,r){for(var t=H(e),n=arguments.length,o=1,i=V.f,a=$.f;o<n;)for(var c,u=E(arguments[o++]),l=i?z(u).concat(i(u)):z(u),s=l.length,d=0;d<s;)a.call(u,c=l[d++])&&(t[c]=u[c]);return t}:q;S(S.S+S.F,"Object",{assign:Y});var K=v.Object.assign;function X(){return(X=K||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function J(e,r){var t=Re.useState(function(){return{inputs:r,result:e()}})[0],n=Re.useRef(t),o=Boolean(r&&n.current.inputs&&function(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}(r,n.current.inputs))?n.current:{inputs:r,result:e()};return Re.useEffect(function(){n.current=o},[o]),o.result}var Be=J,Ae=function(e,r){return J(function(){return e},r)},Q=c?Object.defineProperties:function(e,r){a(e);for(var t,n=z(r),o=n.length,i=0;i<o;)f.f(e,t=n[i++],r[t]);return e},Z=g.document,ee=Z&&Z.documentElement,re=j("IE_PROTO"),te=function(){},ne="prototype",oe=function(){var e,r=s("iframe"),t=U.length;for(r.style.display="none",ee.appendChild(r),r.src="javascript:",(e=r.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),oe=e.F;t--;)delete oe[ne][U[t]];return oe()},ie=Object.create||function(e,r){var t;return null!==e?(te[ne]=a(e),t=new te,te[ne]=null,t[re]=e):t=oe(),void 0===r?t:Q(t,r)};S(S.S,"Object",{create:ie});var ae=v.Object,ce=function(e,r){return ae.create(e,r)};function ue(e,r){e.prototype=ce(r.prototype),(e.prototype.constructor=e).__proto__=r}function le(e){return-1!==e.message.indexOf("Invariant failed")}var se,de=function(o){function e(){for(var r,e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(r=o.call.apply(o,[this].concat(t))||this).onError=void 0,r.setOnError=function(e){r.onError=e},r.onFatalError=function(e){r.onError&&r.onError(),le(e)&&r.setState({})},r}ue(e,o);var r=e.prototype;return r.componentDidMount=function(){window.addEventListener("error",this.onFatalError)},r.componentWillUnmount=function(){window.removeEventListener("error",this.onFatalError)},r.componentDidCatch=function(e){if(this.onFatalError(e),!le(e))throw e},r.render=function(){return this.props.children(this.setOnError)},e}(W.Component),pe="Invariant failed";function Le(e,r){if(!e)throw new Error(pe)}se="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")();var fe,me,ge=("function"==typeof(me=se.Symbol)?me.observable?fe=me.observable:(fe=me("observable"),me.observable=fe):fe="@@observable",fe),ve=function(){return Math.random().toString(36).substring(7).split("").join(".")},be={INIT:"@@redux/INIT"+ve(),REPLACE:"@@redux/REPLACE"+ve(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ve()}};function he(e,r,t){var n;if("function"==typeof r&&"function"==typeof t||"function"==typeof t&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function");if("function"==typeof r&&void 0===t&&(t=r,r=void 0),void 0!==t){if("function"!=typeof t)throw new Error("Expected the enhancer to be a function.");return t(he)(e,r)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,i=r,a=[],c=a,u=!1;function l(){c===a&&(c=a.slice())}function s(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function d(r){if("function"!=typeof r)throw new Error("Expected the listener to be a function.");if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return l(),c.push(r),function(){if(t){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,l();var e=c.indexOf(r);c.splice(e,1)}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var r=e;null!==Object.getPrototypeOf(r);)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,i=o(i,e)}finally{u=!1}for(var r=a=c,t=0;t<r.length;t++){(0,r[t])()}return e}return p({type:be.INIT}),(n={dispatch:p,subscribe:d,getState:s,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,p({type:be.REPLACE})}})[ge]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function r(){e.next&&e.next(s())}return r(),{unsubscribe:t(r)}}})[ge]=function(){return this},e},n}function ye(e,r){return function(){return r(e.apply(this,arguments))}}function xe(e,r){if("function"==typeof e)return ye(e,r);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var t=Object.keys(e),n={},o=0;o<t.length;o++){var i=t[o],a=e[i];"function"==typeof a&&(n[i]=ye(a,r))}return n}function we(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return 0===r.length?function(e){return e}:1===r.length?r[0]:r.reduce(function(e,r){return function(){return e(r.apply(void 0,arguments))}})}function De(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return function(o){return function(){var e=o.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},t={getState:e.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=i.map(function(e){return e(t)});return function(o){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},r=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),r.forEach(function(e){var r,t,n;r=o,n=i[t=e],t in r?Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[t]=n})}return o}({},e,{dispatch:r=we.apply(void 0,n)(e.dispatch)})}}}var Se=n(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,o=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,c=t?Symbol.for("react.profiler"):60114,u=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,d=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116;function v(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case n:switch(e=e.type){case s:case d:case i:case c:case a:case f:return e;default:switch(e=e&&e.$$typeof){case l:case p:case u:return e;default:return r}}case g:case m:case o:return r}}}function b(e){return v(e)===d}r.typeOf=v,r.AsyncMode=s,r.ConcurrentMode=d,r.ContextConsumer=l,r.ContextProvider=u,r.Element=n,r.ForwardRef=p,r.Fragment=i,r.Lazy=g,r.Memo=m,r.Portal=o,r.Profiler=c,r.StrictMode=a,r.Suspense=f,r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===c||e===a||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===p)},r.isAsyncMode=function(e){return b(e)||v(e)===s},r.isConcurrentMode=b,r.isContextConsumer=function(e){return v(e)===l},r.isContextProvider=function(e){return v(e)===u},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},r.isForwardRef=function(e){return v(e)===p},r.isFragment=function(e){return v(e)===i},r.isLazy=function(e){return v(e)===g},r.isMemo=function(e){return v(e)===m},r.isPortal=function(e){return v(e)===o},r.isProfiler=function(e){return v(e)===c},r.isStrictMode=function(e){return v(e)===a},r.isSuspense=function(e){return v(e)===f}});t(Se);Se.typeOf,Se.AsyncMode,Se.ConcurrentMode,Se.ContextConsumer,Se.ContextProvider,Se.Element,Se.ForwardRef,Se.Fragment,Se.Lazy,Se.Memo,Se.Portal,Se.Profiler,Se.StrictMode,Se.Suspense,Se.isValidElementType,Se.isAsyncMode,Se.isConcurrentMode,Se.isContextConsumer,Se.isContextProvider,Se.isElement,Se.isForwardRef,Se.isFragment,Se.isLazy,Se.isMemo,Se.isPortal,Se.isProfiler,Se.isStrictMode,Se.isSuspense;var Ce=n(function(e,r){});t(Ce);Ce.typeOf,Ce.AsyncMode,Ce.ConcurrentMode,Ce.ContextConsumer,Ce.ContextProvider,Ce.Element,Ce.ForwardRef,Ce.Fragment,Ce.Lazy,Ce.Memo,Ce.Portal,Ce.Profiler,Ce.StrictMode,Ce.Suspense,Ce.isValidElementType,Ce.isAsyncMode,Ce.isConcurrentMode,Ce.isContextConsumer,Ce.isContextProvider,Ce.isElement,Ce.isForwardRef,Ce.isFragment,Ce.isLazy,Ce.isMemo,Ce.isPortal,Ce.isProfiler,Ce.isStrictMode,Ce.isSuspense,n(function(e){e.exports=Se});var Ee=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable;(function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map(function(e){return r[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}})()&&Object.assign,Function.call.bind(Object.prototype.hasOwnProperty);function Oe(){}function Me(){}Me.resetWarningCache=Oe;var Ne=n(function(e){e.exports=function(){function e(e,r,t,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=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 a.name="Invariant Violation",a}}function r(){return e}var t={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:Me,resetWarningCache:Oe};return t.PropTypes=t}()}),Te=W.createContext(null);var _e=function(e){e()},Fe={notify:function(){}};function je(){var e=_e,t=[],n=[];return{clear:function(){t=n=null},notify:function(){var r=t=n;e(function(){for(var e=0;e<r.length;e++)r[e]()})},get:function(){return n},subscribe:function(e){var r=!0;return n===t&&(n=t.slice()),n.push(e),function(){r&&null!==t&&(r=!1,n===t&&(n=t.slice()),n.splice(n.indexOf(e),1))}}}}var Ge=function(){function e(e,r){this.store=e,this.parentSub=r,this.unsubscribe=null,this.listeners=Fe,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var r=e.prototype;return r.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},r.notifyNestedSubs=function(){this.listeners.notify()},r.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},r.isSubscribed=function(){return Boolean(this.unsubscribe)},r.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=je())},r.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=Fe)},e}(),We=function(o){var e,r;function t(e){var r;r=o.call(this,e)||this;var t=e.store;r.notifySubscribers=r.notifySubscribers.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));var n=new Ge(t);return n.onStateChange=r.notifySubscribers,r.state={store:t,subscription:n},r.previousState=t.getState(),r}r=o,(e=t).prototype=Object.create(r.prototype),(e.prototype.constructor=e).__proto__=r;var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this.state.subscription.trySubscribe(),this.previousState!==this.props.store.getState()&&this.state.subscription.notifyNestedSubs()},n.componentWillUnmount=function(){this.unsubscribe&&this.unsubscribe(),this.state.subscription.tryUnsubscribe(),this._isMounted=!1},n.componentDidUpdate=function(e){if(this.props.store!==e.store){this.state.subscription.tryUnsubscribe();var r=new Ge(this.props.store);r.onStateChange=this.notifySubscribers,this.setState({store:this.props.store,subscription:r})}},n.notifySubscribers=function(){this.state.subscription.notifyNestedSubs()},n.render=function(){var e=this.props.context||Te;return W.createElement(e.Provider,{value:this.state},this.props.children)},t}(Re.Component);function ke(){return(ke=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function Ue(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],0<=r.indexOf(t)||(o[t]=e[t]);return o}We.propTypes={store:Ne.shape({subscribe:Ne.func.isRequired,dispatch:Ne.func.isRequired,getState:Ne.func.isRequired}),context:Ne.object,children:Ne.any};var ze=n(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,o=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,c=t?Symbol.for("react.profiler"):60114,u=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,d=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116;function v(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case n:switch(e=e.type){case s:case d:case i:case c:case a:case f:return e;default:switch(e=e&&e.$$typeof){case l:case p:case u:return e;default:return r}}case g:case m:case o:return r}}}function b(e){return v(e)===d}r.typeOf=v,r.AsyncMode=s,r.ConcurrentMode=d,r.ContextConsumer=l,r.ContextProvider=u,r.Element=n,r.ForwardRef=p,r.Fragment=i,r.Lazy=g,r.Memo=m,r.Portal=o,r.Profiler=c,r.StrictMode=a,r.Suspense=f,r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===c||e===a||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===p)},r.isAsyncMode=function(e){return b(e)||v(e)===s},r.isConcurrentMode=b,r.isContextConsumer=function(e){return v(e)===l},r.isContextProvider=function(e){return v(e)===u},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},r.isForwardRef=function(e){return v(e)===p},r.isFragment=function(e){return v(e)===i},r.isLazy=function(e){return v(e)===g},r.isMemo=function(e){return v(e)===m},r.isPortal=function(e){return v(e)===o},r.isProfiler=function(e){return v(e)===c},r.isStrictMode=function(e){return v(e)===a},r.isSuspense=function(e){return v(e)===f}});t(ze);ze.typeOf,ze.AsyncMode,ze.ConcurrentMode,ze.ContextConsumer,ze.ContextProvider,ze.Element,ze.ForwardRef,ze.Fragment,ze.Lazy,ze.Memo,ze.Portal,ze.Profiler,ze.StrictMode,ze.Suspense,ze.isValidElementType,ze.isAsyncMode,ze.isConcurrentMode,ze.isContextConsumer,ze.isContextProvider,ze.isElement,ze.isForwardRef,ze.isFragment,ze.isLazy,ze.isMemo,ze.isPortal,ze.isProfiler,ze.isStrictMode,ze.isSuspense;var Ve=n(function(e,r){});t(Ve);Ve.typeOf,Ve.AsyncMode,Ve.ConcurrentMode,Ve.ContextConsumer,Ve.ContextProvider,Ve.Element,Ve.ForwardRef,Ve.Fragment,Ve.Lazy,Ve.Memo,Ve.Portal,Ve.Profiler,Ve.StrictMode,Ve.Suspense,Ve.isValidElementType,Ve.isAsyncMode,Ve.isConcurrentMode,Ve.isContextConsumer,Ve.isContextProvider,Ve.isElement,Ve.isForwardRef,Ve.isFragment,Ve.isLazy,Ve.isMemo,Ve.isPortal,Ve.isProfiler,Ve.isStrictMode,Ve.isSuspense;var $e=n(function(e){e.exports=ze}),He={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},qe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ye={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ke={};function Xe(e){return $e.isMemo(e)?Ye:Ke[e.$$typeof]||He}Ke[$e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var Je=Object.defineProperty,Qe=Object.getOwnPropertyNames,Ze=Object.getOwnPropertySymbols,er=Object.getOwnPropertyDescriptor,rr=Object.getPrototypeOf,tr=Object.prototype;var nr=function e(r,t,n){if("string"==typeof t)return r;if(tr){var o=rr(t);o&&o!==tr&&e(r,o,n)}var i=Qe(t);Ze&&(i=i.concat(Ze(t)));for(var a=Xe(r),c=Xe(t),u=0;u<i.length;++u){var l=i[u];if(!(qe[l]||n&&n[l]||c&&c[l]||a&&a[l])){var s=er(t,l);try{Je(r,l,s)}catch(e){}}}return r},or=function(e,r,t,n,o,i,a,c){if(!e){var u;if(void 0===r)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[t,n,o,i,a,c],s=0;(u=new Error(r.replace(/%s/g,function(){return l[s++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}},ir=n(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,o=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,c=t?Symbol.for("react.profiler"):60114,u=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,d=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116;function v(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case n:switch(e=e.type){case s:case d:case i:case c:case a:case f:return e;default:switch(e=e&&e.$$typeof){case l:case p:case u:return e;default:return r}}case g:case m:case o:return r}}}function b(e){return v(e)===d}r.typeOf=v,r.AsyncMode=s,r.ConcurrentMode=d,r.ContextConsumer=l,r.ContextProvider=u,r.Element=n,r.ForwardRef=p,r.Fragment=i,r.Lazy=g,r.Memo=m,r.Portal=o,r.Profiler=c,r.StrictMode=a,r.Suspense=f,r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===c||e===a||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===p)},r.isAsyncMode=function(e){return b(e)||v(e)===s},r.isConcurrentMode=b,r.isContextConsumer=function(e){return v(e)===l},r.isContextProvider=function(e){return v(e)===u},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},r.isForwardRef=function(e){return v(e)===p},r.isFragment=function(e){return v(e)===i},r.isLazy=function(e){return v(e)===g},r.isMemo=function(e){return v(e)===m},r.isPortal=function(e){return v(e)===o},r.isProfiler=function(e){return v(e)===c},r.isStrictMode=function(e){return v(e)===a},r.isSuspense=function(e){return v(e)===f}});t(ir);ir.typeOf,ir.AsyncMode,ir.ConcurrentMode,ir.ContextConsumer,ir.ContextProvider,ir.Element,ir.ForwardRef,ir.Fragment,ir.Lazy,ir.Memo,ir.Portal,ir.Profiler,ir.StrictMode,ir.Suspense,ir.isValidElementType,ir.isAsyncMode,ir.isConcurrentMode,ir.isContextConsumer,ir.isContextProvider,ir.isElement,ir.isForwardRef,ir.isFragment,ir.isLazy,ir.isMemo,ir.isPortal,ir.isProfiler,ir.isStrictMode,ir.isSuspense;var ar=n(function(e,r){});t(ar);ar.typeOf,ar.AsyncMode,ar.ConcurrentMode,ar.ContextConsumer,ar.ContextProvider,ar.Element,ar.ForwardRef,ar.Fragment,ar.Lazy,ar.Memo,ar.Portal,ar.Profiler,ar.StrictMode,ar.Suspense,ar.isValidElementType,ar.isAsyncMode,ar.isConcurrentMode,ar.isContextConsumer,ar.isContextProvider,ar.isElement,ar.isForwardRef,ar.isFragment,ar.isLazy,ar.isMemo,ar.isPortal,ar.isProfiler,ar.isStrictMode,ar.isSuspense;var cr=n(function(e){e.exports=ir}),ur=(cr.isValidElementType,cr.isContextConsumer),lr=[],sr=[null,null];function dr(e,r){var t=e[1];return[r.payload,t+1]}var pr=function(){return[null,0]},fr="undefined"!=typeof window?Re.useLayoutEffect:Re.useEffect;function mr(O,e){void 0===e&&(e={});var r=e,t=r.getDisplayName,i=void 0===t?function(e){return"ConnectAdvanced("+e+")"}:t,n=r.methodName,a=void 0===n?"connectAdvanced":n,o=r.renderCountProp,c=void 0===o?void 0:o,u=r.shouldHandleStateChanges,M=void 0===u||u,l=r.storeKey,s=void 0===l?"store":l,d=r.withRef,p=void 0!==d&&d,f=r.forwardRef,m=void 0!==f&&f,g=r.context,v=void 0===g?Te:g,b=Ue(r,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]);or(void 0===c,"renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension"),or(!p,"withRef is removed. To access the wrapped instance, use a ref on the connected component");or("store"===s,"storeKey has been removed and does not do anything. To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: <Provider context={MyContext}><ConnectedComponent context={MyContext} /></Provider>. You may also pass a {context : MyContext} option to connect");var R=v;return function(C){var e=C.displayName||C.name||"Component",E=i(e),I=ke({},b,{getDisplayName:i,methodName:a,renderCountProp:c,shouldHandleStateChanges:M,storeKey:s,displayName:E,wrappedComponentName:e,WrappedComponent:C}),r=b.pure;var P=r?Re.useMemo:function(e){return e()};function t(e){var r=Re.useMemo(function(){return[e.context,e.forwardedRef,Ue(e,["context","forwardedRef"])]},[e]),t=r[0],n=r[1],o=r[2],i=Re.useMemo(function(){return t&&t.Consumer&&ur(W.createElement(t.Consumer,null))?t:R},[t,R]),a=Re.useContext(i),c=Boolean(e.store),u=Boolean(a)&&Boolean(a.store);or(c||u,'Could not find "store" in the context of "'+E+'". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to '+E+" in connect options.");var l=e.store||a.store,s=Re.useMemo(function(){return O(l.dispatch,I)},[l]),d=Re.useMemo(function(){if(!M)return sr;var e=new Ge(l,c?null:a.subscription),r=e.notifyNestedSubs.bind(e);return[e,r]},[l,c,a]),p=d[0],f=d[1],m=Re.useMemo(function(){return c?a:ke({},a,{subscription:p})},[c,a,p]),g=Re.useReducer(dr,lr,pr),v=g[0][0],b=g[1];if(v&&v.error)throw v.error;var h=Re.useRef(),y=Re.useRef(o),x=Re.useRef(),w=Re.useRef(!1),D=P(function(){return x.current&&o===y.current?x.current:s(l.getState(),o)},[l,v,o]);fr(function(){y.current=o,h.current=D,w.current=!1,x.current&&(x.current=null,f())}),fr(function(){if(M){var n=!1,o=null,e=function(){if(!n){var e,r,t=l.getState();try{e=s(t,y.current)}catch(e){o=r=e}r||(o=null),e===h.current?w.current||f():(h.current=e,x.current=e,w.current=!0,b({type:"STORE_UPDATED",payload:{latestStoreState:t,error:r}}))}};p.onStateChange=e,p.trySubscribe(),e();return function(){if(n=!0,p.tryUnsubscribe(),o)throw o}}},[l,p,s]);var S=Re.useMemo(function(){return W.createElement(C,ke({},D,{ref:n}))},[n,C,D]);return Re.useMemo(function(){return M?W.createElement(i.Provider,{value:m},S):S},[i,S,m])}var n=r?W.memo(t):t;if(n.WrappedComponent=C,n.displayName=E,m){var o=W.forwardRef(function(e,r){return W.createElement(n,ke({},e,{forwardedRef:r}))});return o.displayName=E,o.WrappedComponent=C,nr(o,C)}return nr(n,C)}}var gr=Object.prototype.hasOwnProperty;function vr(e,r){return e===r?0!==e||0!==r||1/e==1/r:e!=e&&r!=r}function br(e,r){if(vr(e,r))return!0;if("object"!=typeof e||null===e||"object"!=typeof r||null===r)return!1;var t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(var o=0;o<t.length;o++)if(!gr.call(r,t[o])||!vr(e[t[o]],r[t[o]]))return!1;return!0}function hr(o){return function(e,r){var t=o(e,r);function n(){return t}return n.dependsOnOwnProps=!1,n}}function yr(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function xr(o,e){return function(e,r){r.displayName;var n=function(e,r){return n.dependsOnOwnProps?n.mapToProps(e,r):n.mapToProps(e)};return n.dependsOnOwnProps=!0,n.mapToProps=function(e,r){n.mapToProps=o,n.dependsOnOwnProps=yr(o);var t=n(e,r);return"function"==typeof t&&(n.mapToProps=t,n.dependsOnOwnProps=yr(t),t=n(e,r)),t},n}}var wr=[function(e){return"function"==typeof e?xr(e):void 0},function(e){return e?void 0:hr(function(e){return{dispatch:e}})},function(r){return r&&"object"==typeof r?hr(function(e){return xe(r,e)}):void 0}];var Dr=[function(e){return"function"==typeof e?xr(e):void 0},function(e){return e?void 0:hr(function(){return{}})}];function Sr(e,r,t){return ke({},t,e,r)}var Cr=[function(e){return"function"==typeof e?(u=e,function(e,r){r.displayName;var o,i=r.pure,a=r.areMergedPropsEqual,c=!1;return function(e,r,t){var n=u(e,r,t);return c?i&&a(n,o)||(o=n):(c=!0,o=n),o}}):void 0;var u},function(e){return e?void 0:function(){return Sr}}];function Er(t,n,o,i){return function(e,r){return o(t(e,r),n(i,r),r)}}function Ir(a,c,u,l,e){var s,d,p,f,m,g=e.areStatesEqual,v=e.areOwnPropsEqual,b=e.areStatePropsEqual,t=!1;function n(e,r){var t,n,o=!v(r,d),i=!g(e,s);return s=e,d=r,o&&i?(p=a(s,d),c.dependsOnOwnProps&&(f=c(l,d)),m=u(p,f,d)):o?(a.dependsOnOwnProps&&(p=a(s,d)),c.dependsOnOwnProps&&(f=c(l,d)),m=u(p,f,d)):(i&&(t=a(s,d),n=!b(t,p),p=t,n&&(m=u(p,f,d))),m)}return function(e,r){return t?n(e,r):(p=a(s=e,d=r),f=c(l,d),m=u(p,f,d),t=!0,m)}}function Pr(e,r){var t=r.initMapStateToProps,n=r.initMapDispatchToProps,o=r.initMergeProps,i=Ue(r,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=t(e,i),c=n(e,i),u=o(e,i);return(i.pure?Ir:Er)(a,c,u,e,i)}function Or(t,e,n){for(var r=e.length-1;0<=r;r--){var o=e[r](t);if(o)return o}return function(e,r){throw new Error("Invalid value of type "+typeof t+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function Mr(e,r){return e===r}var Rr,Br,Ar,Lr,Nr,Tr,_r,Fr,jr,Gr,Wr,kr,Ur,zr=(Ar=(Br=void 0===Rr?{}:Rr).connectHOC,Lr=void 0===Ar?mr:Ar,Nr=Br.mapStateToPropsFactories,Tr=void 0===Nr?Dr:Nr,_r=Br.mapDispatchToPropsFactories,Fr=void 0===_r?wr:_r,jr=Br.mergePropsFactories,Gr=void 0===jr?Cr:jr,Wr=Br.selectorFactory,kr=void 0===Wr?Pr:Wr,function(e,r,t,n){void 0===n&&(n={});var o=n,i=o.pure,a=void 0===i||i,c=o.areStatesEqual,u=void 0===c?Mr:c,l=o.areOwnPropsEqual,s=void 0===l?br:l,d=o.areStatePropsEqual,p=void 0===d?br:d,f=o.areMergedPropsEqual,m=void 0===f?br:f,g=Ue(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),v=Or(e,Tr,"mapStateToProps"),b=Or(r,Fr,"mapDispatchToProps"),h=Or(t,Gr,"mergeProps");return Lr(kr,ke({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:v,initMapDispatchToProps:b,initMergeProps:h,pure:a,areStatesEqual:u,areOwnPropsEqual:s,areStatePropsEqual:p,areMergedPropsEqual:m},g))});Ur=r.unstable_batchedUpdates,_e=Ur;var Vr={x:0,y:0},$r=function(e,r){return{x:e.x+r.x,y:e.y+r.y}},Hr=function(e,r){return{x:e.x-r.x,y:e.y-r.y}},qr=function(e,r){return e.x===r.x&&e.y===r.y},Yr=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Kr=function(e,r,t){var n;return void 0===t&&(t=0),(n={})[e]=r,n["x"===e?"y":"x"]=t,n},Xr=function(e,r){return Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2))},Jr=function(r,e){return Math.min.apply(Math,e.map(function(e){return Xr(r,e)}))},Qr=function(r){return function(e){return{x:r(e.x),y:r(e.y)}}},Zr=function(e){var r=e.top,t=e.right,n=e.bottom,o=e.left;return{top:r,right:t,bottom:n,left:o,width:t-o,height:n-r,x:o,y:r,center:{x:(t+o)/2,y:(n+r)/2}}},et=function(e,r){return{top:e.top-r.top,left:e.left-r.left,bottom:e.bottom+r.bottom,right:e.right+r.right}},rt=function(e,r){return{top:e.top+r.top,left:e.left+r.left,bottom:e.bottom-r.bottom,right:e.right-r.right}},tt={top:0,right:0,bottom:0,left:0},nt=function(e){var r=e.borderBox,t=e.margin,n=void 0===t?tt:t,o=e.border,i=void 0===o?tt:o,a=e.padding,c=void 0===a?tt:a,u=Zr(et(r,n)),l=Zr(rt(r,i)),s=Zr(rt(l,c));return{marginBox:u,borderBox:Zr(r),paddingBox:l,contentBox:s,margin:n,border:i,padding:c}},ot=function(e){var r=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var t=Number(r);return isNaN(t)&&Le(!1),t},it=function(e,r){var t,n,o=e.borderBox,i=e.border,a=e.margin,c=e.padding,u=(n=r,{top:(t=o).top+n.y,left:t.left+n.x,bottom:t.bottom+n.y,right:t.right+n.x});return nt({borderBox:u,border:i,margin:a,padding:c})},at=function(e,r){return void 0===r&&(r={x:window.pageXOffset,y:window.pageYOffset}),it(e,r)},ct=function(e,r){var t={top:ot(r.marginTop),right:ot(r.marginRight),bottom:ot(r.marginBottom),left:ot(r.marginLeft)},n={top:ot(r.paddingTop),right:ot(r.paddingRight),bottom:ot(r.paddingBottom),left:ot(r.paddingLeft)},o={top:ot(r.borderTopWidth),right:ot(r.borderRightWidth),bottom:ot(r.borderBottomWidth),left:ot(r.borderLeftWidth)};return nt({borderBox:e,margin:t,padding:n,border:o})},ut=function(e){var r=e.getBoundingClientRect(),t=window.getComputedStyle(e);return ct(r,t)},lt=function(e,r){return{top:e.top+r.y,left:e.left+r.x,bottom:e.bottom+r.y,right:e.right+r.x}},st=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},dt=function(e,r){return r&&r.shouldClipSubject?(t=r.pageMarginBox,n=e,(o=Zr({top:Math.max(n.top,t.top),right:Math.min(n.right,t.right),bottom:Math.min(n.bottom,t.bottom),left:Math.max(n.left,t.left)})).width<=0||o.height<=0?null:o):Zr(e);var t,n,o},pt=function(e){var r,t,n,o,i,a,c=e.page,u=e.withPlaceholder,l=e.axis,s=e.frame,d=(r=c.marginBox,(t=s)?lt(r,t.scroll.diff.displacement):r),p=(n=d,o=l,(i=u)&&i.increasedBy?X({},n,((a={})[o.end]=n[o.end]+i.increasedBy[o.line],a)):n);return{page:c,withPlaceholder:u,active:dt(p,s)}},ft=function(e,r){e.frame||Le(!1);var t=e.frame,n=Hr(r,t.scroll.initial),o=Yr(n),i=X({},t,{scroll:{initial:t.scroll.initial,current:r,diff:{value:n,displacement:o},max:t.scroll.max}});return X({},e,{frame:i,subject:pt({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i})})},mt=function(e){var r=e.merge,t=e.destination;return t?t.droppableId:r?r.combine.droppableId:null};function gt(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}function vt(n,o){var i;void 0===o&&(o=gt);var a,c=[],u=!1;return function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return u&&i===this&&o(r,c)||(a=n.apply(this,r),u=!0,i=this,c=r),a}}var bt,ht=$.f,yt=(bt=!1,function(e){for(var r,t=P(e),n=z(t),o=n.length,i=0,a=[];i<o;)ht.call(t,r=n[i++])&&a.push(bt?[r,t[r]]:t[r]);return a});S(S.S,"Object",{values:function(e){return yt(e)}});var xt=v.Object.values;function wt(e){return xt(e)}function Dt(e,r){if(e.findIndex)return e.findIndex(r);for(var t=0;t<e.length;t++)if(r(e[t]))return t;return-1}function St(e,r){if(e.find)return e.find(r);var t=Dt(e,r);return-1!==t?e[t]:void 0}var Ct=vt(function(e){return e.reduce(function(e,r){return e[r.descriptor.id]=r,e},{})}),Et=vt(function(e){return e.reduce(function(e,r){return e[r.descriptor.id]=r,e},{})}),It=vt(function(e){return wt(e)}),Pt=vt(function(e){return wt(e)}),Ot=function(r,t){return function(e){return r<=e&&e<=t}},Mt=function(e){var r=Ot(e.top,e.bottom),t=Ot(e.left,e.right);return function(e){return r(e.y)&&r(e.y)&&t(e.x)&&t(e.x)}},Rt=vt(function(r,e){return Pt(e).filter(function(e){return r===e.descriptor.droppableId}).sort(function(e,r){return e.descriptor.index-r.descriptor.index})}),Bt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},At={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Lt=function(e,r){return e===Bt?"down"===r.vertical:"right"===r.horizontal},Nt=function(e,r){return Boolean(r.wasDisplaced[e])},Tt=function(e){var r=e.displaced,t=e.onLift,n=e.combineWith,o=e.displacedBy,i=Boolean(r[n]);return Nt(n,t)?i?Vr:Yr(o.point):i?o.point:Vr},_t=function(e,r,t){return t?e!==t.combine.draggableId?r:t.whenEntered:r},Ft=function(e){var b=e.pageBorderBoxCenterWithDroppableScrollChange,r=e.previousImpact,t=e.destination,n=e.insideDestinationWithoutDraggable,h=e.userDirection,y=e.onLift;if(!t.isCombineEnabled)return null;var x=t.axis,w=r.movement.map,D=r.movement.displacedBy,S=r.merge,o=St(n,function(e){var r,t,n,o,i,a,c,u,l,s,d,p,f,m,g=e.descriptor.id,v=Tt({displaced:w,onLift:y,combineWith:g,displacedBy:D});return r={id:g,currentCenter:b,axis:x,borderBox:e.page.borderBox,displaceBy:v,currentUserDirection:h,oldMerge:S},t=r.id,n=r.currentCenter,o=r.axis,i=r.borderBox,a=r.displaceBy,c=r.currentUserDirection,u=r.oldMerge,l=i[o.start]+a[o.line],s=i[o.end]+a[o.line],d=.666*i[o.size],p=_t(t,c,u),f=Lt(o,p),m=n[o.line],f?Ot(l,l+d)(m):Ot(s-d,s)(m)});return o?X({},r,{destination:null,merge:{whenEntered:_t(o.descriptor.id,h,S),combine:{draggableId:o.descriptor.id,droppableId:t.descriptor.id}}}):null},jt=function(i){var a=Ot(i.top,i.bottom),c=Ot(i.left,i.right);return function(e){if(a(e.top)&&a(e.bottom)&&c(e.left)&&c(e.right))return!0;var r=a(e.top)||a(e.bottom),t=c(e.left)||c(e.right);if(r&&t)return!0;var n=e.top<i.top&&e.bottom>i.bottom,o=e.left<i.left&&e.right>i.right;return!(!n||!o)||(n&&t||o&&r)}},Gt=function(e){var r=Ot(e.top,e.bottom),t=Ot(e.left,e.right);return function(e){return r(e.top)&&r(e.bottom)&&t(e.left)&&t(e.right)}},Wt=function(e){var r,t,n,o,i,a,c,u=e.target,l=e.destination,s=e.viewport,d=e.withDroppableDisplacement,p=e.isVisibleThroughFrameFn,f=d?(r=u,n=(t=l).frame?t.frame.scroll.diff.displacement:Vr,lt(r,n)):u;return i=f,c=p,!!(a=l).subject.active&&c(a.subject.active)(i)&&(o=f,p(s)(o))},kt=function(e){return Wt(X({},e,{isVisibleThroughFrameFn:Gt}))},Ut=function(e){return Wt(X({},e,{isVisibleThroughFrameFn:(n=e.destination.axis,function(e){var r=Ot(e.top,e.bottom),t=Ot(e.left,e.right);return function(e){return n===Bt?r(e.top)&&r(e.bottom):t(e.left)&&t(e.right)}})}));var n},zt=function(e){var r,t,n,o=e.draggable,i=e.destination,a=e.previousImpact,c=e.viewport,u=e.onLift,l=e.forceShouldAnimate,s=o.descriptor.id,d=a.movement.map,p=function(e,r){var t=e.page.marginBox;if(!Nt(e.descriptor.id,r))return t;var n={top:r.displacedBy.point.y,right:0,bottom:0,left:r.displacedBy.point.x};return Zr(et(t,n))}(o,u),f=Wt(X({},{target:p,destination:i,viewport:c,withDroppableDisplacement:!0},{isVisibleThroughFrameFn:jt}));return{draggableId:s,isVisible:f,shouldAnimate:(r=l,t=f,n=d[s],"boolean"==typeof r?r:!!t&&(!n||n.shouldAnimate))}},Vt=vt(function(e){return e.reduce(function(e,r){return e[r.draggableId]=r,e},{})}),$t=vt(function(e,r){var t=r[e.line];return{value:t,point:Kr(e.line,t)}}),Ht={displaced:[],map:{},displacedBy:{point:Vr,value:0}},qt={movement:Ht,destination:null,merge:null},Yt=vt(function(r,e){return e.filter(function(e){return e.descriptor.id!==r.descriptor.id})}),Kt=function(e){var r,t,n,o,i=e.pageBorderBoxCenter,a=e.draggable,c=e.draggables,u=e.droppables,l=e.previousImpact,s=e.viewport,d=e.userDirection,p=e.onLift,f=(t=(r={target:i,droppables:u}).target,n=r.droppables,(o=St(It(n),function(e){if(!e.isEnabled)return!1;var r=e.subject.active;return!!r&&Mt(r)(t)}))?o.descriptor.id:null);if(!f)return qt;var m,g,v,b,h,y,x,w,D,S,C,E,I,P,O,M,R,B,A=u[f],L=Rt(A.descriptor.id,c),N=Yt(a,L),T=(m=i,(g=A.frame)?$r(m,g.scroll.diff.value):m),_=Ft({pageBorderBoxCenterWithDroppableScrollChange:T,previousImpact:l,destination:A,insideDestinationWithoutDraggable:N,userDirection:d,onLift:p});return _||(b=(v={pageBorderBoxCenterWithDroppableScrollChange:T,destination:A,draggable:a,insideDestinationWithoutDraggable:N,previousImpact:l,viewport:s,userDirection:d,onLift:p}).pageBorderBoxCenterWithDroppableScrollChange,h=v.draggable,y=v.destination,x=v.insideDestinationWithoutDraggable,w=v.previousImpact,D=v.viewport,S=v.userDirection,C=v.onLift,E=y.axis,I=Lt(y.axis,S),P=$t(y.axis,h.displaceBy),O=b[E.line],M=P.value,R=x.filter(function(e){var r=e.page.borderBox,t=r[E.start],n=r[E.end],o=Nt(e.descriptor.id,C);return I?o?O<t:O<t+M:o?O<=n-M:O<=n}).map(function(e){return zt({draggable:e,destination:y,previousImpact:w,viewport:D.frame,onLift:C})}),B=x.length-R.length,{movement:{displacedBy:P,displaced:R,map:Vt(R)},destination:{droppableId:y.descriptor.id,index:B},merge:null})},Xt=function(e){var r,t=e.draggable,n=e.home,o=e.draggables,i=e.viewport,a=$t(n.axis,t.displaceBy),c=Rt(n.descriptor.id,o).slice(t.descriptor.index+1),u={displacedBy:a,wasDisplaced:c.reduce(function(e,r){return e[r.descriptor.id]=!0,e},{})},l=c.map(function(e){return zt({draggable:e,destination:n,previousImpact:qt,viewport:i.frame,forceShouldAnimate:!1,onLift:u})});return{impact:{movement:{displaced:l,map:Vt(l),displacedBy:a},destination:(r=t.descriptor,{index:r.index,droppableId:r.droppableId}),merge:null},onLift:u}},Jt=function(e){var r=e.draggable,t=e.offset,n=e.initialWindowScroll,o=it(r.client,t),i=at(o,n);return X({},r,{placeholder:X({},r.placeholder,{client:o}),client:o,page:i})},Qt=function(e){var r,s,t,d,p,f,m,n,o,i,a,c,u,l,g,v,b,h,y=e.updatedDroppables,x=e.criticalId,w=e.existing,D=e.additions,S=e.removals,C=e.viewport,E=(s=(r={droppables:y,existing:w,additions:D,removals:S,viewport:C}).existing,t=r.droppables,d=r.additions,p=r.removals,f=r.viewport,m={},It(t).forEach(function(r){var n=r.axis,o=Rt(r.descriptor.id,s),i={},a=function(e,r){var t=i[e];i[e]=t?{indexChange:t.indexChange+r.indexChange,offset:$r(t.offset,r.offset)}:r},c=Et(p.map(function(e){var r=s[e];return r||Le(!1),r}).filter(function(e){return e.descriptor.droppableId===r.descriptor.id})),e=o.filter(function(e,r){if(!Boolean(c[e.descriptor.id]))return!0;var t=Yr(Kr(n.line,e.displaceBy[n.line]));return o.slice(r).forEach(function(e){c[e.descriptor.id]||a(e.descriptor.id,{indexChange:-1,offset:t})}),!1}),t=d.filter(function(e){return e.descriptor.droppableId===r.descriptor.id}),u=e.slice(0);t.forEach(function(e){u.splice(e.descriptor.index,0,e)});var l=Et(t);u.forEach(function(e,r){if(Boolean(l[e.descriptor.id])){var t=Kr(n.line,e.client.marginBox[n.size]);u.slice(r).forEach(function(e){l[e.descriptor.id]||a(e.descriptor.id,{indexChange:1,offset:t})})}}),u.forEach(function(e){if(!l[e.descriptor.id]){var r=i[e.descriptor.id];if(r){var t=Jt({draggable:e,offset:r.offset,initialWindowScroll:f.scroll.initial}),n=e.descriptor.index+r.indexChange,o=X({},t,{descriptor:X({},e.descriptor,{index:n})});m[t.descriptor.id]=o}}})}),X({},s,m)),I=E[x],P=y[I.descriptor.droppableId],O=(o=(n={additions:D,updatedDroppables:y,viewport:C}).additions,i=n.updatedDroppables,a=n.viewport,c=a.scroll.diff.value,o.map(function(e){var r=e.descriptor.droppableId,t=i[r].frame;t||Le(!1);var n=t.scroll.diff.value,o=$r(c,n);return Jt({draggable:e,offset:o,initialWindowScroll:a.scroll.initial})})),M=(l=(u={additions:O,dragging:I,home:P,viewport:C}).additions,g=u.dragging,v=u.home,b=u.viewport,h=$t(v.axis,g.displaceBy),l.map(function(e){return e.descriptor.droppableId!==v.descriptor.id?e:e.descriptor.index<g.descriptor.index?e:Jt({draggable:e,offset:h.point,initialWindowScroll:b.scroll.initial})})),R=X({},E,Et(M));return S.forEach(function(e){delete R[e]}),R},Zt=function(e){var r=e.scrollHeight,t=e.scrollWidth,n=e.height,o=e.width,i=Hr({x:t,y:r},{x:o,y:n});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},en=function(e){var r=e.descriptor,t=e.isEnabled,n=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,c=e.page,u=e.closest,l=function(){if(!u)return null;var e=u.scrollSize,r=u.client,t=Zt({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:r.paddingBox.height,width:r.paddingBox.width});return{pageMarginBox:u.page.marginBox,frameClient:r,scrollSize:e,shouldClipSubject:u.shouldClipSubject,scroll:{initial:u.scroll,current:u.scroll,max:t,diff:{value:Vr,displacement:Vr}}}}(),s="vertical"===i?Bt:At;return{descriptor:r,isCombineEnabled:n,isFixedOnPage:o,axis:s,isEnabled:t,client:a,page:c,frame:l,subject:pt({page:c,withPlaceholder:null,axis:s,frame:l})}},rn=function(e,r){return e.descriptor.droppableId===r.descriptor.id},tn=function(e,r){return X({},e,{scroll:X({},e.scroll,{max:r})})},nn=function(e,r,t){var n=e.frame;rn(r,e)&&Le(!1),e.subject.withPlaceholder&&Le(!1);var o,i,a,c,u,l,s=$t(e.axis,r.displaceBy).point,d=(i=s,a=t,c=(o=e).axis,u=o.subject.page.contentBox[c.size],(l=Rt(o.descriptor.id,a).reduce(function(e,r){return e+r.client.marginBox[c.size]},0)+i[c.line]-u)<=0?null:Kr(c.line,l)),p={placeholderSize:s,increasedBy:d,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n)return X({},e,{subject:pt({page:e.subject.page,withPlaceholder:p,axis:e.axis,frame:e.frame})});var f=d?$r(n.scroll.max,d):n.scroll.max,m=tn(n,f);return X({},e,{subject:pt({page:e.subject.page,withPlaceholder:p,axis:e.axis,frame:m}),frame:m})},on=function(e){var r=e.subject.withPlaceholder;r||Le(!1);var t=e.frame;if(!t)return X({},e,{subject:pt({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var n=r.oldFrameMaxScroll;n||Le(!1);var o=tn(t,n);return X({},e,{subject:pt({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null}),frame:o})},an=function(e){var r=e.frame;return r||Le(!1),r},cn=function(e,r){var t;return X({},e,((t={})[r.descriptor.id]=r,t))},un=function(e){var r=e.draggable,t=e.draggables,n=e.droppables,o=e.previousImpact,i=e.impact,a=function(e){var r=e.previousImpact,t=e.impact,n=e.droppables,o=mt(r),i=mt(t);if(!o)return n;if(o===i)return n;var a=n[o];if(!a.subject.withPlaceholder)return n;var c=on(a);return cn(n,c)}({previousImpact:o,impact:i,droppables:n}),c=mt(i);if(!c)return a;var u=n[c];if(rn(r,u))return a;if(u.subject.withPlaceholder)return a;var l=nn(u,r,t);return cn(a,l)},ln=function(e){var r,t,n,o,i,a,c,u,l,s,d,p,f,m,g,v=e.state,b=e.published,h=function(e){var r=e.modified,p=e.existing,f=e.viewport;if(!r.length)return p;var t=r.map(function(e){var r=p[e.descriptor.id];r||Le(!1);var t,n,o=Boolean(r.subject.withPlaceholder)?on(r):r,i=o.client,a=e.client,c=an(o),u=an(e),l=nt({borderBox:(o.axis,t=i.borderBox,n=a.borderBox,{top:t.top,left:t.left,right:t.left+n.width,bottom:t.top+n.height}),margin:i.margin,border:i.border,padding:i.padding}),s={client:c.frameClient,page:at(c.frameClient,f.scroll.initial),shouldClipSubject:c.shouldClipSubject,scrollSize:u.scrollSize,scroll:c.scroll.initial},d=en({descriptor:e.descriptor,isEnabled:e.isEnabled,isCombineEnabled:e.isCombineEnabled,isFixedOnPage:e.isFixedOnPage,direction:e.axis.direction,client:l,page:at(l,f.scroll.initial),closest:s});return ft(d,u.scroll.current)});return X({},p,Ct(t))}({modified:b.modified,existing:v.dimensions.droppables,viewport:v.viewport}),y=Qt({updatedDroppables:h,criticalId:v.critical.draggable.id,existing:v.dimensions.draggables,additions:b.additions,removals:b.removals,viewport:v.viewport}),x={draggable:y[v.critical.draggable.id].descriptor,droppable:h[v.critical.droppable.id].descriptor},w=v.dimensions.draggables[x.draggable.id],D=y[x.draggable.id],S={draggables:y,droppables:un({draggable:D,draggables:y,droppables:h,previousImpact:v.impact,impact:v.impact})},C=(n={initial:v.initial,current:v.current,oldClientBorderBoxCenter:w.client.borderBox.center,newClientBorderBoxCenter:D.client.borderBox.center,viewport:v.viewport},l=n.initial,s=n.current,d=n.oldClientBorderBoxCenter,p=n.newClientBorderBoxCenter,f=n.viewport,m=Hr(p,d),g={client:o={selection:$r(l.client.selection,m),borderBoxCenter:p,offset:Vr},page:{selection:$r(o.selection,f.scroll.initial),borderBoxCenter:$r(o.selection,f.scroll.initial)}},{current:(i=Yr(m),a=$r(s.client.offset,i),c={selection:$r(g.client.selection,a),borderBoxCenter:$r(g.client.borderBoxCenter,a),offset:a},u={selection:$r(c.selection,f.scroll.current),borderBoxCenter:$r(c.borderBoxCenter,f.scroll.current)},qr(s.client.borderBoxCenter,c.borderBoxCenter)||Le(!1),{client:c,page:u}),initial:g}),E=C.initial,I=C.current,P=Xt({draggable:D,home:S.droppables[x.droppable.id],draggables:S.draggables,viewport:v.viewport}),O=P.impact,M=P.onLift,R=function(e){var r=e.movement.displaced;if(!r.length)return e;var t=r.map(function(e){return e.isVisible&&e.shouldAnimate?X({},e,{shouldAnimate:!1}):e});return X({},e,{movement:X({},e.movement,{displaced:t,map:Vt(t)})})}(Kt({pageBorderBoxCenter:I.page.borderBoxCenter,draggable:D,draggables:S.draggables,droppables:S.droppables,previousImpact:O,viewport:v.viewport,userDirection:v.userDirection,onLift:M}));Boolean("SNAP"===v.movementMode&&!mt(R))&&Le(!1);var B=X({phase:"DRAGGING"},v,((r={}).phase="DRAGGING",r.critical=x,r.current=I,r.initial=E,r.impact=R,r.dimensions=S,r.onLift=M,r.onLiftImpact=O,r.forceShouldAnimate=!1,r));return"COLLECTING"===v.phase?B:X({phase:"DROP_PENDING"},B,((t={}).phase="DROP_PENDING",t.reason=v.reason,t.isWaiting=!1,t))},sn={vertical:"down",horizontal:"right"},dn={vertical:"up",horizontal:"left"},pn=function(e){var n=e.isMovingForward,r=e.isInHomeList,o=e.draggable,t=e.draggables,i=e.destination,a=e.insideDestination,c=e.previousImpact,u=e.onLift,l=c.destination?function(e){var r=e.isMovingForward,t=e.isInHomeList,n=e.draggable,o=e.insideDestination,i=e.location,a=o.slice(),c=i.index;!t&&a.splice(i.index,0,n);var u=r?c+1:c-1;return u<0?null:u>a.length-1?null:{proposedIndex:u,modifyDisplacement:!0}}({isMovingForward:n,isInHomeList:r,draggable:o,location:c.destination,insideDestination:a}):c.merge?function(e){var r=e.isMovingForward,t=e.destination,n=e.previousImpact,o=e.draggables,i=e.merge,a=e.onLift;if(!t.isCombineEnabled)return null;var c=n.movement,u=i.combine.draggableId,l=o[u].descriptor.index;return Nt(u,a)?c.map[u]?r?{proposedIndex:l,modifyDisplacement:!0}:{proposedIndex:l-1,modifyDisplacement:!1}:r?{proposedIndex:l,modifyDisplacement:!1}:{proposedIndex:l-1,modifyDisplacement:!0}:Boolean(c.map[u])?r?{proposedIndex:l+1,modifyDisplacement:!0}:{proposedIndex:l,modifyDisplacement:!1}:r?{proposedIndex:l+1,modifyDisplacement:!1}:{proposedIndex:l,modifyDisplacement:!0}}({isMovingForward:n,destination:i,previousImpact:c,draggables:t,merge:c.merge,onLift:u}):null;if(null==l)return null;var s=l.proposedIndex,d=l.modifyDisplacement,p=$t(i.axis,o.displaceBy),f=function(){var e=c.movement.displaced;if(!d)return e;if(n)return e.slice(1);var r,t=Yt(o,a)[s];return r=e,[{draggableId:t.descriptor.id,isVisible:!0,shouldAnimate:!0}].concat(r)}();return{movement:{displacedBy:p,displaced:f,map:Vt(f)},destination:{droppableId:i.descriptor.id,index:s},merge:null}},fn=function(e,r){return r.margin[e.start]+r.borderBox[e.size]/2},mn=function(e,r,t){return r[e.crossAxisStart]+t.margin[e.crossAxisStart]+t.borderBox[e.crossAxisSize]/2},gn=function(e){var r=e.axis,t=e.moveRelativeTo,n=e.isMoving;return Kr(r.line,t.marginBox[r.end]+fn(r,n),mn(r,t.marginBox,n))},vn=function(e){var r,t,n=e.axis,o=e.moveRelativeTo,i=e.isMoving;return Kr(n.line,o.marginBox[n.start]-(r=n,(t=i).margin[r.end]+t.borderBox[r.size]/2),mn(n,o.marginBox,i))},bn=function(e){var r,t,n,o,i=e.movement,a=e.draggable,c=e.draggables,u=e.droppable,l=e.onLift,s=Rt(u.descriptor.id,c),d=a.page,p=u.axis;if(!s.length)return r={axis:p,moveInto:u.page,isMoving:d},t=r.axis,n=r.moveInto,o=r.isMoving,Kr(t.line,n.contentBox[t.start]+fn(t,o),mn(t,n.contentBox,o));var f=i.displaced,m=i.displacedBy;if(f.length){var g=c[f[0].draggableId];if(Nt(g.descriptor.id,l))return vn({axis:p,moveRelativeTo:g.page,isMoving:d});var v=it(g.page,m.point);return vn({axis:p,moveRelativeTo:v,isMoving:d})}var b=s[s.length-1];if(b.descriptor.id===a.descriptor.id)return d.borderBox.center;if(Nt(b.descriptor.id,l)){var h=it(b.page,Yr(l.displacedBy.point));return gn({axis:p,moveRelativeTo:h,isMoving:d})}return gn({axis:p,moveRelativeTo:b.page,isMoving:d})},hn=function(e,r){var t=e.frame;return t?$r(r,t.scroll.diff.displacement):r},yn=function(e){var r,t,n,o,i,a,c,u,l=e.impact,s=e.draggable,d=e.droppable,p=e.draggables,f=e.onLift,m=l.merge,g=l.destination,v=s.page.borderBox.center;return d?g?bn({movement:l.movement,draggable:s,draggables:p,droppable:d,onLift:f}):m?(r={movement:l.movement,combine:m.combine,draggables:p,onLift:f},t=r.combine,n=r.onLift,o=r.movement,i=r.draggables,a=t.draggableId,c=i[a].page.borderBox.center,u=Tt({displaced:o.map,onLift:n,combineWith:a,displacedBy:o.displacedBy}),$r(c,u)):v:v},xn=function(e){var r=yn(e),t=e.droppable;return t?hn(t,r):r},wn=function(e,r){var t=Hr(r,e.scroll.initial),n=Yr(t);return{frame:Zr({top:r.y,bottom:r.y+e.frame.height,left:r.x,right:r.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:r,diff:{value:t,displacement:n}}}},Dn=function(e,r){return X({},e,{movement:X({},e.movement,{displaced:r,map:Vt(r)})})},Sn=function(e){var r,t=e.pageBorderBoxCenter,n=e.draggable,o=e.viewport,i=(r=t,$r(o.scroll.diff.displacement,r)),a=Hr(i,n.page.borderBox.center);return $r(n.client.borderBox.center,a)},Cn=function(e){var r=e.draggable,t=e.destination,n=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,a=e.onlyOnMainAxis,c=void 0!==a&&a,u=Hr(n,r.page.borderBox.center),l={target:lt(r.page.borderBox,u),destination:t,withDroppableDisplacement:i,viewport:o};return c?Ut(l):kt(l)},En=function(e){var r=e.isMovingForward,t=e.draggable,n=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,c=e.previousPageBorderBoxCenter,u=e.previousClientSelection,l=e.onLift;if(!n.isEnabled)return null;var s=Rt(n.descriptor.id,o),d=rn(t,n),p=function(e){var r=e.isMovingForward,t=e.isInHomeList,n=e.draggable,o=e.destination,i=e.insideDestination,a=e.previousImpact;if(!o.isCombineEnabled)return null;if(a.merge)return null;var c=a.destination;c||Le(!1);var u,l=c.index,s=(u=i.slice(),t&&u.splice(n.descriptor.index,1),u.splice(c.index,0,n),u),d=r?l+1:l-1;if(d<0)return null;if(d>s.length-1)return null;var p=s[d];p===n&&Le(!1);var f={whenEntered:r?sn:dn,combine:{draggableId:p.descriptor.id,droppableId:o.descriptor.id}};return{movement:a.movement,destination:null,merge:f}}({isInHomeList:d,isMovingForward:r,draggable:t,destination:n,insideDestination:s,previousImpact:i})||pn({isMovingForward:r,isInHomeList:d,draggable:t,draggables:o,destination:n,insideDestination:s,previousImpact:i,onLift:l});if(!p)return null;var f=xn({impact:p,draggable:t,droppable:n,draggables:o,onLift:l});if(Cn({draggable:t,destination:n,newPageBorderBoxCenter:f,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Sn({pageBorderBoxCenter:f,draggable:t,viewport:a}),impact:p,scrollJumpRequest:null};var m,g,v,b,h,y,x,w,D,S,C,E=Hr(f,c);return{clientSelection:u,impact:(g=(m={impact:p,viewport:a,destination:n,draggables:o,maxScrollChange:E,onLift:l}).impact,v=m.viewport,b=m.destination,h=m.draggables,y=m.maxScrollChange,x=m.onLift,w=g.movement.displaced,D=wn(v,$r(v.scroll.current,y)),S=b.frame?ft(b,$r(b.frame.scroll.current,y)):b,C=w.map(function(e){if(e.isVisible)return e;var r=h[e.draggableId],t=zt({draggable:r,destination:b,previousImpact:g,viewport:D.frame,onLift:x,forceShouldAnimate:!1});if(t.isVisible)return t;var n=zt({draggable:r,destination:S,previousImpact:g,viewport:v.frame,onLift:x,forceShouldAnimate:!1});return n.isVisible?n:e}),Dn(g,C)),scrollJumpRequest:E}},In=function(e){var r=e.subject.active;return r||Le(!1),r},Pn=function(e,r){var t=e.page.borderBox.center;return Nt(e.descriptor.id,r)?Hr(t,r.displacedBy.point):t},On=function(e){var o=e.pageBorderBoxCenter,i=e.viewport,a=e.destination,r=e.insideDestination,c=e.onLift;return r.filter(function(e){return kt({target:(r=e,t=c,n=r.page.borderBox,Nt(r.descriptor.id,t)?lt(n,Yr(t.displacedBy.point)):n),destination:a,viewport:i.frame,withDroppableDisplacement:!0});var r,t,n}).sort(function(e,r){var t=Xr(o,hn(a,Pn(e,c))),n=Xr(o,hn(a,Pn(r,c)));return t<n?-1:n<t?1:e.descriptor.index-r.descriptor.index})[0]||null},Mn=function(e){var r=e.isMovingForward,t=e.previousPageBorderBoxCenter,n=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,c=e.previousImpact,u=e.viewport,l=e.onLift,s=function(e){var o=e.isMovingForward,i=e.pageBorderBoxCenter,r=e.source,t=e.droppables,n=e.viewport,a=r.subject.active;if(!a)return null;var c=r.axis,u=Ot(a[c.start],a[c.end]),l=It(t).filter(function(e){return e!==r}).filter(function(e){return e.isEnabled}).filter(function(e){return Boolean(e.subject.active)}).filter(function(e){return jt(n.frame)(In(e))}).filter(function(e){var r=In(e);return o?a[c.crossAxisEnd]<r[c.crossAxisEnd]:r[c.crossAxisStart]<a[c.crossAxisStart]}).filter(function(e){var r=In(e),t=Ot(r[c.start],r[c.end]);return u(r[c.start])||u(r[c.end])||t(a[c.start])||t(a[c.end])}).sort(function(e,r){var t=In(e)[c.crossAxisStart],n=In(r)[c.crossAxisStart];return o?t-n:n-t}).filter(function(e,r,t){return In(e)[c.crossAxisStart]===In(t[0])[c.crossAxisStart]});if(!l.length)return null;if(1===l.length)return l[0];var s=l.filter(function(e){return Ot(In(e)[c.start],In(e)[c.end])(i[c.line])});return 1===s.length?s[0]:1<s.length?s.sort(function(e,r){return In(e)[c.start]-In(r)[c.start]})[0]:l.sort(function(e,r){var t=Jr(i,st(In(e))),n=Jr(i,st(In(r)));return t!==n?t-n:In(e)[c.start]-In(r)[c.start]})[0]}({isMovingForward:r,pageBorderBoxCenter:t,source:o,droppables:a,viewport:u});if(!s)return null;var d=Rt(s.descriptor.id,i),p=function(e){var r=e.previousPageBorderBoxCenter,t=e.moveRelativeTo,n=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,c=e.previousImpact,u=e.viewport,l=e.onLift;if(!t){if(n.length)return null;var s={movement:Ht,destination:{droppableId:a.descriptor.id,index:0},merge:null},d=xn({impact:s,draggable:o,droppable:a,draggables:i,onLift:l}),p=rn(o,a)?a:nn(a,o,i);return Cn({draggable:o,destination:p,newPageBorderBoxCenter:d,viewport:u.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?s:null}var f=Boolean(r[a.axis.line]<t.page.borderBox.center[a.axis.line]),m=n.indexOf(t);-1===m&&Le(!1);var g=t.descriptor.id===o.descriptor.id?m:f?m:m+1,v=Yt(o,n).slice(g).map(function(e){return zt({draggable:e,destination:a,viewport:u.frame,previousImpact:c,onLift:l})});return{movement:{displacedBy:$t(a.axis,o.displaceBy),displaced:v,map:Vt(v)},destination:{droppableId:a.descriptor.id,index:g},merge:null}}({previousPageBorderBoxCenter:t,destination:s,draggable:n,draggables:i,moveRelativeTo:On({pageBorderBoxCenter:t,viewport:u,destination:s,insideDestination:d,onLift:l}),insideDestination:d,previousImpact:c,viewport:u,onLift:l});if(!p)return null;var f=xn({impact:p,draggable:n,droppable:s,draggables:i,onLift:l});return{clientSelection:Sn({pageBorderBoxCenter:f,draggable:n,viewport:u}),impact:p,scrollJumpRequest:null}},Rn=function(e){var r,t,n,o=e.state,i=e.type,a=(r=o.impact,t=o.dimensions.droppables,(n=mt(r))?t[n]:null),c=Boolean(a),u=o.dimensions.droppables[o.critical.droppable.id],l=a||u,s=l.axis.direction,d="vertical"===s&&("MOVE_UP"===i||"MOVE_DOWN"===i)||"horizontal"===s&&("MOVE_LEFT"===i||"MOVE_RIGHT"===i);if(d&&!c)return null;var p="MOVE_DOWN"===i||"MOVE_RIGHT"===i,f=o.dimensions.draggables[o.critical.draggable.id],m=o.current.page.borderBoxCenter,g=o.dimensions,v=g.draggables,b=g.droppables;return d?En({isMovingForward:p,previousPageBorderBoxCenter:m,draggable:f,destination:l,draggables:v,viewport:o.viewport,previousClientSelection:o.current.client.selection,previousImpact:o.impact,onLift:o.onLift}):Mn({isMovingForward:p,previousPageBorderBoxCenter:m,draggable:f,isOver:l,draggables:v,droppables:b,previousImpact:o.impact,viewport:o.viewport,onLift:o.onLift})};function Bn(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}var An,Ln,Nn,Tn,_n=function(e){var r,t,n,o,i,a,c,u,l=e.state,s=e.clientSelection,d=e.dimensions,p=e.viewport,f=e.impact,m=e.scrollJumpRequest,g=p||l.viewport,v=g.scroll.current,b=d||l.dimensions,h=s||l.current.client.selection,y=Hr(h,l.initial.client.selection),x={offset:y,selection:h,borderBoxCenter:$r(l.initial.client.borderBoxCenter,y)},w={selection:$r(x.selection,v),borderBoxCenter:$r(x.borderBoxCenter,v)},D={client:x,page:w},S=(r=l.userDirection,t=l.current.page.borderBoxCenter,n=D.page.borderBoxCenter,u=Hr(n,t),{horizontal:(a=r.horizontal,c=u.x,0===c?a:0<c?"right":"left"),vertical:(o=r.vertical,i=u.y,0===i?o:0<i?"down":"up")});if("COLLECTING"===l.phase)return X({phase:"COLLECTING"},l,{dimensions:b,viewport:g,current:D,userDirection:S});var C=b.draggables[l.critical.draggable.id],E=f||Kt({pageBorderBoxCenter:w.borderBoxCenter,draggable:C,draggables:b.draggables,droppables:b.droppables,previousImpact:l.impact,viewport:g,userDirection:S,onLift:l.onLift}),I=un({draggable:C,impact:E,previousImpact:l.impact,draggables:b.draggables,droppables:b.droppables});return X({},l,{current:D,userDirection:S,dimensions:{draggables:b.draggables,droppables:I},impact:E,viewport:g,scrollJumpRequest:m||null,forceShouldAnimate:!m&&null})},Fn=function(e){var r=e.impact,t=e.viewport,n=e.destination,o=e.draggables,i=e.onLift,a=e.forceShouldAnimate,c=r.movement.displaced.map(function(e){return zt({draggable:o[e.draggableId],destination:n,previousImpact:r,viewport:t.frame,onLift:i,forceShouldAnimate:a})});return Dn(r,c)},jn=function(e){var r=e.impact,t=e.draggable,n=e.droppable,o=e.draggables,i=e.viewport,a=e.onLift,c=xn({impact:r,draggable:t,draggables:o,droppable:n,onLift:a});return Sn({pageBorderBoxCenter:c,draggable:t,viewport:i})},Gn=function(e){var r=e.state,t=e.dimensions,n=e.viewport;"SNAP"!==r.movementMode&&Le(!1);var o=r.impact,i=n||r.viewport,a=t||r.dimensions,c=a.draggables,u=a.droppables,l=c[r.critical.draggable.id],s=mt(o);s||Le(!1);var d=u[s],p=Fn({impact:o,viewport:i,destination:d,draggables:c,onLift:r.onLift}),f=jn({impact:p,draggable:l,droppable:d,draggables:c,viewport:i,onLift:r.onLift});return _n({impact:p,clientSelection:f,state:r,dimensions:a,viewport:i})},Wn=function(e){return"SNAP"===e.movementMode},kn=function(e,r,t){var n,o,i=(n=e.dimensions,o=r,{draggables:n.draggables,droppables:cn(n.droppables,o)});return!Wn(e)||t?_n({state:e,dimensions:i}):Gn({state:e,dimensions:i})},Un={phase:"IDLE",completed:null,shouldFlush:!1},zn=function(e,r){if(void 0===e&&(e=Un),"CLEAN"===r.type)return X({},Un,{shouldFlush:r.payload.shouldFlush});if("INITIAL_PUBLISH"===r.type){"IDLE"!==e.phase&&Le(!1);var t=r.payload,n=t.critical,o=t.clientSelection,i=t.viewport,a=t.dimensions,c=t.movementMode,u=a.draggables[n.draggable.id],l=a.droppables[n.droppable.id],s={selection:o,borderBoxCenter:u.client.borderBox.center,offset:Vr},d={client:s,page:{selection:$r(s.selection,i.scroll.initial),borderBoxCenter:$r(s.selection,i.scroll.initial)}},p=It(a.droppables).every(function(e){return!e.isFixedOnPage}),f=Xt({draggable:u,home:l,draggables:a.draggables,viewport:i}),m=f.impact;return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:c,dimensions:a,initial:d,current:d,isWindowScrollAllowed:p,impact:m,onLift:f.onLift,onLiftImpact:m,viewport:i,userDirection:sn,scrollJumpRequest:null,forceShouldAnimate:null}}var g;if("COLLECTION_STARTING"===r.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&Le(!1),X({phase:"COLLECTING"},e,((g={}).phase="COLLECTING",g)));if("PUBLISH_WHILE_DRAGGING"===r.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&Le(!1),ln({state:e,published:r.payload});if("MOVE"===r.type){if("DROP_PENDING"===e.phase)return e;Bn(e)||Le(!1);var v=r.payload.client;return qr(v,e.current.client.selection)?e:_n({state:e,clientSelection:v,impact:Wn(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===r.type){if("DROP_PENDING"===e.phase)return e;if("COLLECTING"===e.phase)return e;Bn(e)||Le(!1);var b=r.payload,h=b.id,y=b.offset,x=e.dimensions.droppables[h];if(!x)return e;var w=ft(x,y);return kn(e,w,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===r.type){if("DROP_PENDING"===e.phase)return e;Bn(e)||Le(!1);var D=r.payload,S=D.id,C=D.isEnabled,E=e.dimensions.droppables[S];E||Le(!1),E.isEnabled===C&&Le(!1);var I=X({},E,{isEnabled:C});return kn(e,I,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===r.type){if("DROP_PENDING"===e.phase)return e;Bn(e)||Le(!1);var P=r.payload,O=P.id,M=P.isCombineEnabled,R=e.dimensions.droppables[O];R||Le(!1),R.isCombineEnabled===M&&Le(!1);var B=X({},R,{isCombineEnabled:M});return kn(e,B,!0)}if("MOVE_BY_WINDOW_SCROLL"===r.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Bn(e)||Le(!1),e.isWindowScrollAllowed||Le(!1);var A=r.payload.newScroll;if(qr(e.viewport.scroll.current,A))return e;var L=wn(e.viewport,A);return Wn(e)?Gn({state:e,viewport:L}):_n({state:e,viewport:L})}if("UPDATE_VIEWPORT_MAX_SCROLL"===r.type){if(!Bn(e))return e;var N=r.payload.maxScroll;return qr(N,e.viewport.scroll.max)?e:X({phase:"DRAGGING"},e,{viewport:X({},e.viewport,{scroll:X({},e.viewport.scroll,{max:N})})})}if("MOVE_UP"===r.type||"MOVE_DOWN"===r.type||"MOVE_LEFT"===r.type||"MOVE_RIGHT"===r.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&Le(!1);var T=Rn({state:e,type:r.type});return T?_n({state:e,impact:T.impact,clientSelection:T.clientSelection,scrollJumpRequest:T.scrollJumpRequest}):e}if("DROP_PENDING"===r.type){var _,F=r.payload.reason;return"COLLECTING"!==e.phase&&Le(!1),X({phase:"DROP_PENDING"},e,((_={}).phase="DROP_PENDING",_.isWaiting=!0,_.reason=F,_))}if("DROP_ANIMATE"===r.type){var j=r.payload,G=j.completed,W=j.dropDuration,k=j.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&Le(!1),{phase:"DROP_ANIMATING",dimensions:e.dimensions,completed:G,dropDuration:W,newHomeClientOffset:k}}if("DROP_COMPLETE"!==r.type)return e;var U=r.payload;return{phase:"IDLE",completed:U.completed,shouldFlush:U.shouldFlush}},Vn=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},$n=function(){return{type:"COLLECTION_STARTING",payload:null}},Hn=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},qn=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},Yn=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},Kn=function(e){return{type:"MOVE",payload:e}},Xn=function(e){return void 0===e&&(e={shouldFlush:!1}),{type:"CLEAN",payload:e}},Jn=function(e){return{type:"DROP_COMPLETE",payload:e}},Qn=function(e){return{type:"DROP",payload:e}},Zn="cubic-bezier(.2,1,.1,1)",eo={drop:0,combining:.7},ro={drop:.75},to=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",no={fluid:"opacity "+to,snap:"transform "+to+", opacity "+to,drop:function(e){var r=e+"s "+Zn;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+to,placeholder:"height "+to+", width "+to+", margin "+to},oo=function(e){return qr(e,Vr)?null:"translate("+e.x+"px, "+e.y+"px)"},io={moveTo:oo,drop:function(e,r){var t=oo(e);return t?r?t+" scale("+ro.drop+")":t:null}},ao=.33,co=.55,uo=co-ao,lo=function(e){var W=e.getState,k=e.dispatch;return function(G){return function(e){if("DROP"===e.type){var r=W(),t=e.payload.reason;if("COLLECTING"!==r.phase){if("IDLE"!==r.phase){"DROP_PENDING"===r.phase&&r.isWaiting&&Le(!1),"DRAGGING"!==r.phase&&"DROP_PENDING"!==r.phase&&Le(!1);var n,o,i,a,c,u,l,s,d,p,f,m,g,v,b,h,y,x,w,D,S,C,E,I=r.critical,P=r.dimensions,O=(n={reason:t,lastImpact:r.impact,onLift:r.onLift,onLiftImpact:r.onLiftImpact,home:r.dimensions.droppables[r.critical.droppable.id],viewport:r.viewport,draggables:r.dimensions.draggables},o=n.reason,i=n.lastImpact,a=n.home,c=n.viewport,u=n.draggables,l=n.onLiftImpact,s=n.onLift,(d="DROP"===o&&Boolean(mt(i)))?i.destination?{impact:i,didDropInsideDroppable:d}:{impact:X({},i,{movement:Ht}),didDropInsideDroppable:d}:{impact:Fn({impact:l,destination:a,viewport:c,draggables:u,onLift:s,forceShouldAnimate:!0}),didDropInsideDroppable:d}),M=O.impact,R=O.didDropInsideDroppable,B=P.draggables[r.critical.draggable.id],A=R?M.destination:null,L=R&&M.merge?M.merge.combine:null,N={index:I.draggable.index,droppableId:I.droppable.id},T={draggableId:B.descriptor.id,type:B.descriptor.type,source:N,reason:t,mode:r.movementMode,destination:A,combine:L},_=(p={impact:M,draggable:B,dimensions:P,viewport:r.viewport,onLift:r.onLift},f=p.impact,m=p.draggable,g=p.dimensions,v=p.viewport,b=p.onLift,h=g.draggables,y=g.droppables,x=mt(f),w=x?y[x]:null,D=y[m.descriptor.droppableId],S=jn({impact:f,draggable:m,draggables:h,onLift:b,droppable:w||D,viewport:v}),C=Hr(S,m.client.borderBox.center),(E=f.merge)&&Nt(E.combine.draggableId,b)?Hr(C,b.displacedBy.point):C),F={critical:r.critical,result:T,impact:M};if(!qr(r.current.client.offset,_)||Boolean(T.combine)){var j=function(e){var r=e.current,t=e.destination,n=e.reason,o=Xr(r,t);if(o<=0)return ao;if(1500<=o)return co;var i=ao+uo*(o/1500);return Number(("CANCEL"===n?.6*i:i).toFixed(2))}({current:r.current.client.offset,destination:_,reason:t});k({type:"DROP_ANIMATE",payload:{newHomeClientOffset:_,dropDuration:j,completed:F}})}else k(Jn({completed:F,shouldFlush:!1}))}}else k({type:"DROP_PENDING",payload:{reason:t}})}else G(e)}}},so=function(e){return e+1},po=function(e,r){var t=e.droppableId===r.droppableId,n=so(e.index),o=so(r.index);return t?"\n You have moved the item from position "+n+"\n to position "+o+"\n ":"\n You have moved the item from position "+n+"\n in list "+e.droppableId+"\n to list "+r.droppableId+"\n in position "+o+"\n "},fo=function(e,r,t){return r.droppableId===t.droppableId?"\n The item "+e+"\n has been combined with "+t.draggableId:"\n The item "+e+"\n in list "+r.droppableId+"\n has been combined with "+t.draggableId+"\n in list "+t.droppableId+"\n "},mo=function(e){return"\n The item has returned to its starting position\n of "+so(e.index)+"\n"},go=function(e){return"\n You have lifted an item in position "+so(e.source.index)+".\n Use the arrow keys to move, space bar to drop, and escape to cancel.\n"},vo=function(e){var r=e.destination;if(r)return po(e.source,r);var t=e.combine;return t?fo(e.draggableId,e.source,t):"You are over an area that cannot be dropped on"},bo=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+mo(e.source)+"\n ";var r=e.destination,t=e.combine;return r?"\n You have dropped the item.\n "+po(e.source,r)+"\n ":t?"\n You have dropped the item.\n "+fo(e.draggableId,e.source,t)+"\n ":"\n The item has been dropped while not over a drop area.\n "+mo(e.source)+"\n "},ho=function(){var n=[];return{add:function(e){var t=setTimeout(function(){return r=t,-1===(e=Dt(n,function(e){return e.timerId===r}))&&Le(!1),void n.splice(e,1)[0].callback();var r,e}),r={timerId:t,callback:e};n.push(r)},flush:function(){if(n.length){var e=[].concat(n);n.length=0,e.forEach(function(e){clearTimeout(e.timerId),e.callback()})}}}},yo=function(e,r){r()},xo=function(e,r){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:r}},wo=function(e,r,t,n){if(e){var o,i,a,c,u,l=(o=t,a=i=!1,c=setTimeout(function(){a=!0}),(u=function(e){i||a||(i=!0,o(e),clearTimeout(c))}).wasCalled=function(){return i},u);e(r,{announce:l}),l.wasCalled()||t(n(r))}else t(n(r))},Do=function(e,r){var p,f,m,g,t,a=(p=e,f=r,m=ho(),g=null,{beforeStart:function(r,t){g&&Le(!1),yo(0,function(){var e=p().onBeforeDragStart;e&&e(xo(r,t))})},start:function(e,r){g&&Le(!1);var t=xo(e,r);g={mode:r,lastCritical:e,lastLocation:t.source,lastCombine:null},m.add(function(){yo(0,function(){return wo(p().onDragStart,t,f,go)})})},update:function(e,r){var t=r.destination,n=r.merge?r.merge.combine:null;g||Le(!1);var o=!function(e,r){if(e===r)return!0;var t=e.draggable.id===r.draggable.id&&e.draggable.droppableId===r.draggable.droppableId&&e.draggable.type===r.draggable.type&&e.draggable.index===r.draggable.index,n=e.droppable.id===r.droppable.id&&e.droppable.type===r.droppable.type;return t&&n}(e,g.lastCritical);o&&(g.lastCritical=e);var i,a,c=(i=g.lastLocation,a=t,!(null==i&&null==a||null!=i&&null!=a&&i.droppableId===a.droppableId&&i.index===a.index));c&&(g.lastLocation=t);var u,l,s=(u=g.lastCombine,l=n,!(null==u&&null==l||null!=u&&null!=l&&u.draggableId===l.draggableId&&u.droppableId===l.droppableId));if(s&&(g.lastCombine=n),o||c||s){var d=X({},xo(e,g.mode),{combine:n,destination:t});m.add(function(){yo(0,function(){return wo(p().onDragUpdate,d,f,vo)})})}},flush:function(){g||Le(!1),m.flush()},drop:t=function(e){g||Le(!1),g=null,yo(0,function(){return wo(p().onDragEnd,e,f,bo)})},abort:function(){if(g){var e=X({},xo(g.lastCritical,g.mode),{combine:null,destination:null,reason:"CANCEL"});t(e)}}});return function(i){return function(o){return function(e){if("INITIAL_PUBLISH"===e.type){var r=e.payload.critical;return a.beforeStart(r,e.payload.movementMode),o(e),void a.start(r,e.payload.movementMode)}if("DROP_COMPLETE"===e.type){var t=e.payload.completed.result;return a.flush(),o(e),void a.drop(t)}if(o(e),"CLEAN"!==e.type){var n=i.getState();"DRAGGING"===n.phase&&a.update(n.critical,n.impact)}else a.abort()}}}},So=function(n){return function(t){return function(e){if("DROP_ANIMATION_FINISHED"===e.type){var r=n.getState();"DROP_ANIMATING"!==r.phase&&Le(!1),n.dispatch(Jn({completed:r.completed,shouldFlush:!1}))}else t(e)}}},Co=function(n){return function(t){return function(e){if(t(e),"PUBLISH_WHILE_DRAGGING"===e.type){var r=n.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||n.dispatch(Qn({reason:r.reason})))}}}},Eo=we,Io=function(e){var i,m,t,n,r=e.dimensionMarshal,o=e.styleMarshal,a=e.getResponders,c=e.announce,u=e.autoScroller;return he(zn,Eo(De((n=o,function(){return function(r){return function(e){"INITIAL_PUBLISH"===e.type&&n.dragging(),"DROP_ANIMATE"===e.type&&n.dropping(e.payload.completed.result.reason),"CLEAN"!==e.type&&"DROP_COMPLETE"!==e.type||n.resting(),r(e)}}}),(t=r,function(){return function(r){return function(e){"DROP_COMPLETE"!==e.type&&"CLEAN"!==e.type&&"DROP_ANIMATE"!==e.type||t.stopPublishing(),r(e)}}}),(m=r,function(e){var p=e.getState,f=e.dispatch;return function(d){return function(e){if("LIFT"===e.type){var r=e.payload,t=r.id,n=r.clientSelection,o=r.movementMode,i=p();"DROP_ANIMATING"===i.phase&&f(Jn({completed:i.completed,shouldFlush:!0})),"IDLE"!==p().phase&&Le(!1);var a={draggableId:t,scrollOptions:{shouldPublishImmediately:"SNAP"===o}},c=m.startPublishing(a),u=c.critical,l=c.dimensions,s=c.viewport;f({type:"INITIAL_PUBLISH",payload:{critical:u,dimensions:l,clientSelection:n,movementMode:o,viewport:s}})}else d(e)}}}),lo,So,Co,(i=u,function(o){return function(n){return function(e){if("DROP_COMPLETE"===(r=e).type||"DROP_ANIMATE"===r.type||"CLEAN"===r.type)return i.stop(),void n(e);var r;if("COLLECTION_STARTING"===e.type)return i.cancelPending(),void n(e);if("INITIAL_PUBLISH"===e.type){n(e);var t=o.getState();return"DRAGGING"!==t.phase&&Le(!1),void i.start(t)}n(e),i.scroll(o.getState())}}}),Do(a,c))))};An="keys",Ln=function(){return function(e){return z(H(e))}},Nn=(v.Object||{})[An]||Object[An],(Tn={})[An]=Ln(Nn),S(S.S+S.F*i(function(){Nn(1)}),"Object",Tn);var Po=v.Object.keys,Oo=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Mo=function(){var e=document.documentElement;return e||Le(!1),e},Ro=function(){var e=Mo();return Zt({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Bo=function(e){var r,t,n,o,i,a,c,u=e.critical,l=e.scrollOptions,s=e.entries,d=(r=Oo(),t=Ro(),n=r.y,o=r.x,i=Mo(),a=i.clientWidth,c=i.clientHeight,{frame:Zr({top:n,left:o,right:o+a,bottom:n+c}),scroll:{initial:r,current:r,max:t,diff:{value:Vr,displacement:Vr}}}),p=d.scroll.current,f=u.droppable,m=wt(s.droppables).filter(function(e){return e.descriptor.type===f.type}).map(function(e){return e.callbacks.getDimensionAndWatchScroll(p,l)}),g=wt(s.draggables).filter(function(e){return e.descriptor.type===u.draggable.type}).map(function(e){return e.getDimension(p)});return{dimensions:{draggables:Et(g),droppables:Ct(m)},critical:u,viewport:d}},Ao=function(e,r){e.critical.draggable.type!==r.type&&Le(!1)},Lo=function(t){var e,l,s,r,d,p,n,i={droppables:{},draggables:{}},o=null,a=(e={callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting,getCritical:function(){return o||Le(!1),o.critical}},getEntries:function(){return i}},l=e.getEntries,s=e.callbacks,r=function(){},d={additions:{},removals:{},modified:{}},p=null,n=function(){r(),p||(p=requestAnimationFrame(function(){p=null,s.collectionStarting();var n=s.getCritical(),o=l(),e=d,r=e.additions,t=e.removals,i=e.modified,a=Po(r).map(function(e){return o.draggables[e].getDimension(Vr)}).sort(function(e,r){return e.descriptor.index-r.descriptor.index}),c=Po(i).map(function(e){var r=o.droppables[e];r||Le(!1);var t={withoutPlaceholder:!(r.descriptor.id===n.droppable.id)};return r.callbacks.recollect(t)}),u={additions:a,removals:Po(t),modified:c};d={additions:{},removals:{},modified:{}},s.publish(u)}))},{add:function(e){d.additions[e.id]=e,d.modified[e.droppableId]=!0,d.removals[e.id]&&delete d.removals[e.id],n()},remove:function(e){d.removals[e.id]=e,d.modified[e.droppableId]=!0,d.additions[e.id]&&delete d.additions[e.id],n()},stop:function(){p&&(cancelAnimationFrame(p),p=null,d={additions:{},removals:{},modified:{}})}});return{registerDraggable:function(e,r){var t={descriptor:e,getDimension:r};i.draggables[e.id]=t,o&&(Ao(o,e),a.add(e))},updateDraggable:function(e,r,t){var n=i.draggables[e.id];n||Le(!1),n.descriptor===e&&delete i.draggables[e.id];var o={descriptor:r,getDimension:t};i.draggables[r.id]=o},unregisterDraggable:function(e){var r=i.draggables[e.id];r||Le(!1),r.descriptor===e&&(delete i.draggables[e.id],o&&(o.critical.draggable.id===e.id&&Le(!1),Ao(o,e),a.remove(e)))},registerDroppable:function(e,r){var t=e.id;i.droppables[t]={descriptor:e,callbacks:r},o&&Le(!1)},unregisterDroppable:function(e){var r=i.droppables[e.id];r||Le(!1),r.descriptor===e&&(delete i.droppables[e.id],o&&Le(!1))},updateDroppableIsEnabled:function(e,r){i.droppables[e]||Le(!1),o&&t.updateDroppableIsEnabled({id:e,isEnabled:r})},updateDroppableIsCombineEnabled:function(e,r){i.droppables[e]||Le(!1),o&&t.updateDroppableIsCombineEnabled({id:e,isCombineEnabled:r})},scrollDroppable:function(e,r){var t=i.droppables[e];t||Le(!1),o&&t.callbacks.scroll(r)},updateDroppableScroll:function(e,r){i.droppables[e]||Le(!1),o&&t.updateDroppableScroll({id:e,offset:r})},startPublishing:function(e){o&&Le(!1);var r=i.draggables[e.draggableId];r||Le(!1);var t=i.droppables[r.descriptor.droppableId];t||Le(!1);var n={draggable:r.descriptor,droppable:t.descriptor};return o={critical:n},Bo({critical:n,entries:i,scrollOptions:e.scrollOptions})},stopPublishing:function(){if(o){a.stop();var r=o.critical.droppable;wt(i.droppables).filter(function(e){return e.descriptor.type===r.type}).forEach(function(e){return e.callbacks.dragStopped()}),o=null}}}},No=function(e,r){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==r&&"DROP"===e.completed.result.reason)},To=function(e){window.scrollBy(e.x,e.y)};S(S.S,"Date",{now:function(){return(new Date).getTime()}});var _o,Fo=v.Date.now,jo=function(n){var o=[],i=null,e=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];o=r,i||(i=requestAnimationFrame(function(){i=null,n.apply(void 0,o)}))};return e.cancel=function(){i&&(cancelAnimationFrame(i),i=null)},e},Go=vt(function(e){return It(e).filter(function(e){return!!e.isEnabled&&!!e.frame})}),Wo=function(e){var r,t=e.center,n=e.destination,o=e.droppables;if(n){var i=o[n];return i.frame?i:null}return r=t,St(Go(o),function(e){return e.frame||Le(!1),Mt(e.frame.pageMarginBox)(r)})},ko=.25,Uo=.05,zo=28,Vo=function(e){return Math.pow(e,2)},$o={stopDampeningAt:1200,accelerateAt:360},Ho=function(e){var r=e.startOfRange,t=e.endOfRange,n=e.current,o=t-r;return 0===o?0:(n-r)/o},qo=$o.accelerateAt,Yo=$o.stopDampeningAt,Ko=function(e){var r=e.distanceToEdge,t=e.thresholds,n=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,r){if(e>r.startScrollingFrom)return 0;if(e<=r.maxScrollValueAt)return zo;if(e===r.startScrollingFrom)return 1;var t=Ho({startOfRange:r.maxScrollValueAt,endOfRange:r.startScrollingFrom,current:e}),n=zo*Vo(1-t);return Math.ceil(n)}(r,t);return 0===i?0:o?Math.max(function(e,r){var t=r,n=Yo,o=Fo()-t;if(Yo<=o)return e;if(o<qo)return 1;var i=Ho({startOfRange:qo,endOfRange:n,current:o}),a=e*Vo(i);return Math.ceil(a)}(i,n),1):i},Xo=function(e){var r,t,n=e.container,o=e.distanceToEdges,i=e.dragStartTime,a=e.axis,c=e.shouldUseTimeDampening,u={startScrollingFrom:(r=n)[(t=a).size]*ko,maxScrollValueAt:r[t.size]*Uo};return o[a.end]<o[a.start]?Ko({distanceToEdge:o[a.end],thresholds:u,dragStartTime:i,shouldUseTimeDampening:c}):-1*Ko({distanceToEdge:o[a.start],thresholds:u,dragStartTime:i,shouldUseTimeDampening:c})},Jo=Qr(function(e){return 0===e?0:e}),Qo=function(e){var r=e.dragStartTime,t=e.container,n=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-t.top,right:t.right-o.x,bottom:t.bottom-o.y,left:o.x-t.left},c=Xo({container:t,distanceToEdges:a,dragStartTime:r,axis:Bt,shouldUseTimeDampening:i}),u=Xo({container:t,distanceToEdges:a,dragStartTime:r,axis:At,shouldUseTimeDampening:i}),l=Jo({x:u,y:c});if(qr(l,Vr))return null;var s,d,p,f,m,g,v=(d=(s={container:t,subject:n,proposedScroll:l}).container,p=s.subject,f=s.proposedScroll,m=p.height>d.height,(g=p.width>d.width)||m?g&&m?null:{x:g?0:f.x,y:m?0:f.y}:f);return v?qr(v,Vr)?null:v:null},Zo=Qr(function(e){return 0===e?0:0<e?1:-1}),ei=(_o=function(e,r){return e<0?e:r<e?e-r:0},function(e){var r=e.current,t=e.max,n=e.change,o=$r(r,n),i={x:_o(o.x,t.x),y:_o(o.y,t.y)};return qr(i,Vr)?null:i}),ri=function(e){var r=e.max,t=e.current,n=e.change,o={x:Math.max(t.x,r.x),y:Math.max(t.y,r.y)},i=Zo(n),a=ei({max:o,current:t,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},ti=function(e,r){return ri({current:e.scroll.current,max:e.scroll.max,change:r})},ni=function(e,r){var t=e.frame;return!!t&&ri({current:t.scroll.current,max:t.scroll.max,change:r})},oi=function(e){var r,t,n,o,i,a,c,u=e.state,l=e.dragStartTime,s=e.shouldUseTimeDampening,d=e.scrollWindow,p=e.scrollDroppable,f=u.current.page.borderBoxCenter,m=u.dimensions.draggables[u.critical.draggable.id].page.marginBox;if(u.isWindowScrollAllowed){var g=u.viewport,v=(t=(r={dragStartTime:l,viewport:g,subject:m,center:f,shouldUseTimeDampening:s}).viewport,n=r.subject,o=r.center,i=r.dragStartTime,a=r.shouldUseTimeDampening,(c=Qo({dragStartTime:i,container:t.frame,subject:n,center:o,shouldUseTimeDampening:a}))&&ti(t,c)?c:null);if(v)return void d(v)}var b=Wo({center:f,destination:mt(u.impact),droppables:u.dimensions.droppables});if(b){var h=function(e){var r=e.droppable,t=e.subject,n=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=r.frame;if(!a)return null;var c=Qo({dragStartTime:o,container:a.pageMarginBox,subject:t,center:n,shouldUseTimeDampening:i});return c&&ni(r,c)?c:null}({dragStartTime:l,droppable:b,subject:m,center:f,shouldUseTimeDampening:s});h&&p(b.descriptor.id,h)}},ii=function(e){var u=e.move,c=e.scrollDroppable,i=e.scrollWindow,l=function(e,r){if(!ni(e,r))return r;var t,n,o,i=(n=r,(o=(t=e).frame)&&ni(t,n)?ei({current:o.scroll.current,max:o.scroll.max,change:n}):null);if(!i)return c(e.descriptor.id,r),null;var a=Hr(r,i);return c(e.descriptor.id,a),Hr(r,a)},s=function(e,r,t){if(!e)return t;if(!ti(r,t))return t;var n=function(e,r){if(!ti(e,r))return null;var t=e.scroll.max,n=e.scroll.current;return ei({current:n,max:t,change:r})}(r,t);if(!n)return i(t),null;var o=Hr(t,n);return i(o),Hr(t,o)};return function(e){var r=e.scrollJumpRequest;if(r){var t=mt(e.impact);t||Le(!1);var n=l(e.dimensions.droppables[t],r);if(n){var o,i,a=e.viewport,c=s(e.isWindowScrollAllowed,a,n);c&&(o=c,i=$r(e.current.client.selection,o),u({client:i}))}}}},ai=function(e){var r,t,n,o,i,a,c,u,l=e.scrollDroppable,s=e.scrollWindow,d=e.move,p=(t=(r={scrollWindow:s,scrollDroppable:l}).scrollWindow,n=r.scrollDroppable,o=jo(t),i=jo(n),a=null,{start:function(e){a&&Le(!1);var r=Fo(),t=!1,n=function(){t=!0};oi({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:n,scrollDroppable:n}),a={dragStartTime:r,shouldUseTimeDampening:t},t&&c(e)},stop:function(){a&&(u(),a=null)},cancelPending:u=function(){a||Le(!1),o.cancel(),i.cancel()},scroll:c=function(e){a||Le(!1);var r=a,t=r.shouldUseTimeDampening,n=r.dragStartTime;oi({state:e,scrollWindow:o,scrollDroppable:i,dragStartTime:n,shouldUseTimeDampening:t})}}),f=ii({move:d,scrollWindow:s,scrollDroppable:l});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&f(e):p.scroll(e))},cancelPending:p.cancelPending,start:p.start,stop:p.stop}},ci="data-react-beautiful-dnd",ui=ci+"-drag-handle",li=ci+"-draggable",si=ci+"-droppable",di=function(e,t){return e.map(function(e){var r=e.styles[t];return r?e.selector+" { "+r+" }":""}).join(" ")},pi=function(e){var r,t,n,o=(r=e,function(e){return"["+e+'="'+r+'"]'}),i=(t="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(ui),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:t,dragging:"pointer-events: none;",dropAnimating:t}}),a=[(n="\n transition: "+no.outOfTheWay+";\n ",{selector:o(li),styles:{dragging:n,dropAnimating:n,userCancel:n}}),i,{selector:o(si),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:di(a,"always"),resting:di(a,"resting"),dragging:di(a,"dragging"),dropAnimating:di(a,"dropAnimating"),userCancel:di(a,"userCancel")}},fi="undefined"!=typeof window?Re.useLayoutEffect:Re.useEffect,mi=function(){var e=document.querySelector("head");return e||Le(!1),e},gi=function(){var e=document.createElement("style");return e.type="text/css",e};var vi=W.createContext(null),bi=function(){var e=document.body;return e||Le(!1),e},hi={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},yi=function(e){return"react-beautiful-dnd-announcement-"+e};var xi=W.createContext(null);function wi(e){var r=Re.useRef(e);return Re.useEffect(function(){r.current=e}),r}var Di=function(e){return{onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function Si(e){return e.current||Le(!1),e.current}function Ci(e){var r=e.uniqueId,t=e.setOnError,n=Re.useRef(null);Re.useEffect(function(){},[]);var o,i,a,c=wi(e),u=Ae(function(){return Di(c.current)},[c]),l=(i=Be(function(){return yi(o)},[o=r]),a=Re.useRef(null),Re.useEffect(function(){a.current&&Le(!1);var e=document.createElement("div");return(a.current=e).id=i,e.setAttribute("aria-live","assertive"),e.setAttribute("role","log"),e.setAttribute("aria-atomic","true"),K(e.style,hi),bi().appendChild(e),function(){var e=a.current;e||Le(!1),bi().removeChild(e),a.current=null}},[i]),Ae(function(e){var r=a.current;r&&(r.textContent=e)},[])),s=function(e){var t=Be(function(){return""+e},[e]),n=Be(function(){return pi(t)},[t]),o=Re.useRef(null),i=Re.useRef(null),a=Ae(vt(function(e){var r=i.current;r||Le(!1),r.textContent=e}),[]),c=Ae(function(e){var r=o.current;r||Le(!1),r.textContent=e},[]);fi(function(){(o.current||i.current)&&Le(!1);var e=gi(),r=gi();return o.current=e,i.current=r,e.setAttribute(ci+"-always",t),r.setAttribute(ci+"-dynamic",t),mi().appendChild(e),mi().appendChild(r),c(n.always),a(n.resting),function(){var e=function(e){var r=e.current;r||Le(!1),mi().removeChild(r),e.current=null};e(o),e(i)}},[c,a,n.always,n.resting,t]);var r=Ae(function(){return a(n.dragging)},[a,n.dragging]),u=Ae(function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)},[a,n.dropAnimating,n.userCancel]),l=Ae(function(){i.current&&a(n.resting)},[a,n.resting]);return Be(function(){return{dragging:r,dropping:u,resting:l,styleContext:t}},[r,u,l,t])}(r),d=Ae(function(e){Si(n).dispatch(e)},[]),p=Be(function(){return xe({publishWhileDragging:Vn,updateDroppableScroll:Hn,updateDroppableIsEnabled:qn,updateDroppableIsCombineEnabled:Yn,collectionStarting:$n},d)},[d]),f=Be(function(){return Lo(p)},[p]),m=Be(function(){return ai(X({scrollWindow:To,scrollDroppable:f.scrollDroppable},xe({move:Kn},d)))},[f.scrollDroppable,d]),g=Be(function(){return Io({dimensionMarshal:f,styleMarshal:s,announce:l,autoScroller:m,getResponders:u})},[l,m,f,u,s]);n.current=g;var v=Ae(function(){var e=Si(n);"IDLE"!==e.getState().phase&&e.dispatch(Xn({shouldFlush:!0}))},[]);t(v);var b=Ae(function(e){return No(Si(n).getState(),e)},[]),h=Ae(function(){return Bn(Si(n).getState())},[]),y=Be(function(){return{marshal:f,style:s.styleContext,canLift:b,isMovementAllowed:h}},[f,b,h,s.styleContext]);return Re.useEffect(function(){return v},[v]),W.createElement(xi.Provider,{value:y},W.createElement(We,{context:vi,store:g},e.children))}var Ei=0;var Ii=function(r){return function(e){return r===e}},Pi=Ii("scroll"),Oi=Ii("auto"),Mi=(Ii("visible"),function(e,r){return r(e.overflowX)||r(e.overflowY)}),Ri=function(e){var r=window.getComputedStyle(e),t={overflowX:r.overflowX,overflowY:r.overflowY};return Mi(t,Pi)||Mi(t,Oi)},Bi=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Ai=function(e){return{closestScrollable:function e(r){return null==r?null:r===document.body?null:r===document.documentElement?null:Ri(r)?r:e(r.parentElement)}(e),isFixedOnPage:function e(r){return!!r&&("fixed"===window.getComputedStyle(r).position||e(r.parentElement))}(e)}},Li=function(e){var r=e.ref,t=e.descriptor,n=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,c=e.isCombineEnabled,u=e.shouldClipSubject,l=n.closestScrollable,s=function(e,r){var t=ut(e);if(!r)return t;if(e!==r)return t;var n=t.paddingBox.top-r.scrollTop,o=t.paddingBox.left-r.scrollLeft,i=n+r.scrollHeight,a=o+r.scrollWidth,c=et({top:n,right:a,bottom:i,left:o},t.border);return nt({borderBox:c,margin:t.margin,border:t.border,padding:t.padding})}(r,l),d=at(s,o),p=function(){if(!l)return null;var e=ut(l),r={scrollHeight:l.scrollHeight,scrollWidth:l.scrollWidth};return{client:e,page:at(e,o),scroll:Bi(l),scrollSize:r,shouldClipSubject:u}}();return en({descriptor:t,isEnabled:!a,isCombineEnabled:c,isFixedOnPage:n.isFixedOnPage,direction:i,client:s,page:d,closest:p})};var Ni={passive:!1},Ti={passive:!0},_i=function(e){return e.shouldPublishImmediately?Ni:Ti};function Fi(e){var r=Re.useContext(e);return r||Le(!1),r}var ji=function(e){return e&&e.env.closestScrollable||null};function Gi(){}var Wi={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},ki=function(e){var r,t,n,o,i=e.isAnimatingOpenOnMount,a=e.placeholder,c=e.animate,u=(t=(r={isAnimatingOpenOnMount:i,placeholder:a,animate:c}).isAnimatingOpenOnMount,n=r.placeholder,o=r.animate,t?Wi:"close"===o?Wi:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin});return{display:a.display,boxSizing:"border-box",width:u.width,height:u.height,marginTop:u.margin.top,marginRight:u.margin.right,marginBottom:u.margin.bottom,marginLeft:u.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:no.placeholder}};var Ui=W.memo(function(e){var r=Re.useRef(null),t=Ae(function(){r.current&&(clearTimeout(r.current),r.current=null)},[]),n=e.animate,o=e.onTransitionEnd,i=e.onClose,a=e.styleContext,c=Re.useState("open"===e.animate),u=c[0],l=c[1];Re.useEffect(function(){return u?"open"!==n?(t(),l(!1),Gi):r.current?Gi:(r.current=setTimeout(function(){r.current=null,l(!1)}),t):Gi},[n,u,t]);var s=Ae(function(e){"height"===e.propertyName&&(o(),"close"===n&&i())},[n,i,o]),d=ki({isAnimatingOpenOnMount:u,animate:e.animate,placeholder:e.placeholder});return W.createElement(e.placeholder.tagName,{style:d,"data-react-beautiful-dnd-placeholder":a,onTransitionEnd:s,ref:e.innerRef})}),zi=W.createContext(null),Vi=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};var $i=function(o){function e(){for(var e,r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return(e=o.call.apply(o,[this].concat(t))||this).state={isVisible:Boolean(e.props.on),data:e.props.on,animate:e.props.shouldAnimate&&e.props.on?"open":"none"},e.onClose=function(){"close"===e.state.animate&&e.setState({isVisible:!1})},e}return ue(e,o),e.getDerivedStateFromProps=function(e,r){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:r.isVisible?{isVisible:!0,data:r.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},e.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},e}(W.PureComponent);var Hi=function(e,r){return e===r},qi=function(e){var r=e.combine,t=e.destination;return t?t.droppableId:r?r.droppableId:null},Yi=function(e,r){return e===r.droppable.type},Ki=function(e,r){return r.draggables[e.draggable.id]},Xi=zr(function(){var m={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null}},g=X({},m,{shouldAnimatePlaceholder:!1}),v=vt(function(e,r,t,n){return t.descriptor.droppableId===e?{placeholder:t.placeholder,shouldAnimatePlaceholder:!1,snapshot:n}:r?{placeholder:t.placeholder,shouldAnimatePlaceholder:!0,snapshot:n}:m}),b=vt(function(e,r,t){var n=t.descriptor.id;return{isDraggingOver:r,draggingOverWith:r?n:null,draggingFromThisWith:t.descriptor.droppableId===e?n:null}});return function(e,r){var t=r.droppableId,n=r.type;if(e.isDragging){var o=e.critical;if(!Yi(n,o))return m;var i=Ki(o,e.dimensions),a=mt(e.impact)===t,c=b(t,a,i);return v(t,a,i,c)}if("DROP_ANIMATING"===e.phase){var u=e.completed;if(!Yi(n,u.critical))return m;var l=Ki(u.critical,e.dimensions),s=b(t,qi(u.result)===t,l);return v(t,mt(u.impact)===t,l,s)}if("IDLE"===e.phase&&!e.completed&&e.shouldFlush)return g;if("IDLE"===e.phase&&e.completed){var d=e.completed;if(!Yi(n,d.critical))return m;var p=mt(d.impact)===t,f=Boolean(d.impact.merge);return e.shouldFlush?g:p?f?m:g:m}return m}},{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:vi,pure:!0,areStatePropsEqual:Hi})(function(e){var r=Re.useContext(xi);r||Le(!1);var t,c,n,u,l,o,i,a,s,d,p,f,m,g,v,b,h=r.style,y=r.isMovementAllowed,x=Re.useRef(null),w=Re.useRef(null),D=e.children,S=e.droppableId,C=e.type,E=e.direction,I=e.ignoreContainerClipping,P=e.isDropDisabled,O=e.isCombineEnabled,M=e.snapshot,R=e.updateViewportMaxScroll,B=Ae(function(){return x.current},[]),A=Ae(function(){return w.current},[]),L=Ae(function(e){x.current=e},[]),N=Ae(function(e){w.current=e},[]),T=Ae(function(){y()&&R({maxScroll:Ro()})},[y,R]);t={droppableId:S,type:C,direction:E,isDropDisabled:P,isCombineEnabled:O,ignoreContainerClipping:I,getDroppableRef:B,getPlaceholderRef:A},c=Re.useRef(null),n=Fi(xi).marshal,u=wi(t),l=Be(function(){return{id:t.droppableId,type:t.type}},[t.droppableId,t.type]),o=Re.useRef(l),i=Be(function(){return vt(function(e,r){c.current||Le(!1);var t={x:e,y:r};n.updateDroppableScroll(l.id,t)})},[l.id,n]),a=Ae(function(){var e=c.current;return e&&e.env.closestScrollable?Bi(e.env.closestScrollable):Vr},[]),s=Ae(function(){var e=a();i(e.x,e.y)},[a,i]),d=Be(function(){return jo(s)},[s]),p=Ae(function(){var e=c.current,r=ji(e);e&&r||Le(!1),e.scrollOptions.shouldPublishImmediately?s():d()},[d,s]),f=Ae(function(e,r){c.current&&Le(!1);var t=u.current,n=t.getDroppableRef();n||Le(!1);var o=Ai(n),i={ref:n,descriptor:l,env:o,scrollOptions:r};c.current=i;var a=Li({ref:n,descriptor:l,env:o,windowScroll:e,direction:t.direction,isDropDisabled:t.isDropDisabled,isCombineEnabled:t.isCombineEnabled,shouldClipSubject:!t.ignoreContainerClipping});return o.closestScrollable&&o.closestScrollable.addEventListener("scroll",p,_i(i.scrollOptions)),a},[l,p,u]),m=Ae(function(e){var r=c.current,t=ji(r);r&&t||Le(!1);var n=u.current,o=function(){return Li({ref:r.ref,descriptor:r.descriptor,env:r.env,windowScroll:Vr,direction:n.direction,isDropDisabled:n.isDropDisabled,isCombineEnabled:n.isCombineEnabled,shouldClipSubject:!n.ignoreContainerClipping})};return e.withoutPlaceholder?function(e,r){if(!e)return r();var t=e.style.display;e.style.display="none";var n=r();return e.style.display=t,n}(n.getPlaceholderRef(),o):o()},[u]),g=Ae(function(){var e=c.current;e||Le(!1);var r=ji(e);c.current=null,r&&(d.cancel(),r.removeEventListener("scroll",p,_i(e.scrollOptions)))},[p,d]),v=Ae(function(e){var r=c.current;r||Le(!1);var t=ji(r);t||Le(!1),t.scrollTop+=e.y,t.scrollLeft+=e.x},[]),b=Be(function(){return{getDimensionAndWatchScroll:f,recollect:m,dragStopped:g,scroll:v}},[g,f,m,v]),fi(function(){return o.current=l,n.registerDroppable(l,b),function(){c.current&&g(),n.unregisterDroppable(l)}},[b,l,g,n]),fi(function(){c.current&&n.updateDroppableIsEnabled(o.current.id,!t.isDropDisabled)},[t.isDropDisabled,n]),fi(function(){c.current&&n.updateDroppableIsCombineEnabled(o.current.id,t.isCombineEnabled)},[t.isCombineEnabled,n]);var _,F=W.createElement($i,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},function(e){var r=e.onClose,t=e.data,n=e.animate;return W.createElement(Ui,{placeholder:t,onClose:r,innerRef:N,animate:n,styleContext:h,onTransitionEnd:T})}),j=Be(function(){return{innerRef:L,placeholder:F,droppableProps:{"data-react-beautiful-dnd-droppable":h}}},[F,L,h]),G=Be(function(){return{droppableId:S,type:C}},[S,C]);return _={props:e,getDroppableRef:function(){return x.current},getPlaceholderRef:function(){return w.current}},_.getDroppableRef,_.getPlaceholderRef,Re.useEffect(function(){}),W.createElement(zi.Provider,{value:G},D(j,M))});Xi.defaultProps={type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1};var Ji={dragging:5e3,dropAnimating:4500},Qi=function(e,r){return r?no.drop(r.duration):e?no.snap:no.fluid},Zi=function(e,r){return e?r?eo.drop:eo.combining:null},ea=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode};function ra(e){return"DRAGGING"===e.type?(n=(t=e).dimension.client,o=t.offset,i=t.combineWith,a=t.dropping,c=Boolean(i),u=ea(t),l=Boolean(a),s=l?io.drop(o,c):io.moveTo(o),{position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:Qi(u,a),transform:s,opacity:Zi(c,l),zIndex:l?Ji.dropAnimating:Ji.dragging,pointerEvents:"none"}):(r=e,{transform:io.moveTo(r.offset),transition:r.shouldAnimateDisplacement?null:"none"});var r,t,n,o,i,a,c,u,l,s}var ta,na,oa=function(){var e=!1;return{handle:function(){e&&Le(!1),e=!0},isHandled:function(){return e},reset:function(){e=!1}}},ia=function(e,r){return X({},e,r)},aa=function(t,e,n){e.forEach(function(e){var r=ia(n,e.options);t.addEventListener(e.eventName,e.fn,r)})},ca=function(t,e,n){e.forEach(function(e){var r=ia(n,e.options);t.removeEventListener(e.eventName,e.fn,r)})},ua=function(n){var r=vt(function(e,r){var t={x:e,y:r};n.onMove(t)}),e=jo(function(e){return r(e.x,e.y)}),t=jo(n.onMoveUp),o=jo(n.onMoveDown),i=jo(n.onMoveRight),a=jo(n.onMoveLeft),c=jo(n.onWindowScroll);return{move:e,moveUp:t,moveDown:o,moveRight:i,moveLeft:a,windowScrollMove:c,cancel:function(){e.cancel(),t.cancel(),o.cancel(),i.cancel(),a.cancel(),c.cancel()}}},la=27,sa=32,da=37,pa=38,fa=39,ma=40,ga=(ta="visibilitychange","undefined"==typeof document?ta:St([ta,"ms"+ta,"webkit"+ta,"moz"+ta,"o"+ta],function(e){return"on"+e in document})||ta),va={capture:!0},ba=function(e){var r=!1,t=function(){r&&(r=!1,ca(e(),n,va))},n=[{eventName:"click",fn:function(e){e.preventDefault(),t()}},{eventName:"mousedown",fn:t},{eventName:"touchstart",fn:t}];return{preventNext:function(){r&&t(),r||(r=!0,aa(e(),n,va))},abort:t}},ha=function(e,r){return 5<=Math.abs(r.x-e.x)||5<=Math.abs(r.y-e.y)},ya=((na={})[13]=!0,na[9]=!0,na),xa=function(e){ya[e.keyCode]&&e.preventDefault()},wa=0,Da=function(){},Sa=oa();function Ca(e){return e instanceof Vi(e).Element}var Ea,Ia={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0},Pa=function(e,r){if(r)return!0;var t=e.target,n=e.currentTarget;return!Ca(t)||!Ca(n)||!function e(r,t){if(null==t)return!1;if(Boolean(Ia[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==r&&e(r,t.parentElement)}(n,t)},Oa=function(e){return Zr(e.getBoundingClientRect()).center},Ma=((Ea={})[34]=!0,Ea[33]=!0,Ea[36]=!0,Ea[35]=!0,Ea);function Ra(){}var Ba=120,Aa=.15,La=oa(),Na=function(){};var Ta="["+ui+"]",_a=function(e){var r;r=e,Boolean(Vi(r).SVGElement)&&r instanceof Vi(r).SVGElement&&Le(!1)},Fa=function(e){if(e.hasAttribute(ui))return _a(e),e;var r,t=e.querySelector(Ta);return _a(e),t||Le(!1),(r=t)instanceof Vi(r).HTMLElement||Le(!1),t};var ja,Ga,Wa,ka,Ua=null,za={capture:!0},Va=(ja=!1,Ga=function(){ja&&(ja=!1,window.removeEventListener("focus",Wa,za))},Wa=function(){Ga(),Ua=null},(ka=function(){ja||(ja=!0,window.addEventListener("focus",Wa,za))}).cancel=function(){return Ga()},ka),$a={retain:function(e){Ua=e,Va()},tryRestoreFocus:function(e,r){if(Ua&&e===Ua){Ua=null,Va.cancel();var t=Fa(r);t&&t.focus()}}};function Ha(){}function qa(e){e.preventDefault()}function Ya(e){var r,t,n,o=Re.useRef(null),i=Ae(function(e){o.current&&Le(!1),o.current={abort:e}},[]),a=Ae(function(){o.current||Le(!1),o.current=null},[]),c=Ae(function(){o.current||Le(!1),o.current.abort()},[]),u=Fi(xi),l=u.canLift,s=u.style,d=e.isDragging,p=e.isEnabled,f=e.draggableId,m=e.callbacks,g=e.getDraggableRef,v=e.getShouldRespectForcePress,b=e.canDragInteractiveElements,h=wi(e);t=(r={isEnabled:p,getDraggableRef:g}).isEnabled,n=r.getDraggableRef,Re.useEffect(function(){},[n,t]);var y,x,w,D,S,C,E,I,P,O,M,R,B,A,L,N,T,_,F,j,G,W,k,U,z,V,$,H,q,Y,K,X,J,Q,Z,ee,re,te,ne,oe,ie,ae,ce,ue,le,se,de,pe,fe,me,ge,ve,be,he,ye=Ae(function(){return Vi(g())},[g]),xe=Ae(function(e){return!!p&&(!o.current&&(!!l(f)&&Pa(e,b)))},[b,l,f,p]),we=function(e){var n=Re.useRef(!1),o=wi(e),i=e.getDraggableRef,r=Ae(function(){n.current=!0},[]),t=Ae(function(){n.current=!1},[]);fi(function(){var e=o.current;if(!e.isEnabled)return Ha;var r=i();r||Le(!1);var t=Fa(r);return $a.tryRestoreFocus(e.draggableId,t),function(){var e=o.current;e.isEnabled&&n.current&&(e.isDragging||e.isDropAnimating)&&$a.retain(e.draggableId)}},[i,o]);var a=Re.useRef(null);return fi(function(){if(a.current){var e=i();e&&e!==a.current&&n.current&&o.current.isEnabled&&Fa(e).focus()}}),fi(function(){a.current=i()}),{onBlur:t,onFocus:r}}(e),De=we.onBlur,Se=we.onFocus,Ce=Be(function(){return{callbacks:m,getDraggableRef:g,getWindow:ye,canStartCapturing:xe,onCaptureStart:i,onCaptureEnd:a,getShouldRespectForcePress:v}},[m,g,ye,xe,i,a,v]),Ee=(x=(y=Ce).canStartCapturing,w=y.getWindow,D=y.callbacks,S=y.onCaptureStart,C=y.onCaptureEnd,E=Re.useRef(null),I=Re.useRef(!1),P=Re.useRef(Da),O=Ae(function(){return Boolean(E.current||I.current)},[]),M=Be(function(){return O()&&Le(!1),ua(D)},[D,O]),R=Be(function(){return ba(w)},[w]),B=Ae(function(){if(O()){M.cancel(),P.current();var e=I.current;Sa.reset(),e&&R.preventNext(),E.current=null,I.current=!1,C()}},[O,C,R,M]),A=Ae(function(){var e=I.current;B(),e&&D.onCancel()},[D,B]),L=Ae(function(){I.current&&Le(!1);var e=E.current;e||Le(!1),E.current=null,I.current=!0,D.onLift({clientSelection:e,movementMode:"FLUID"})},[D]),N=Be(function(){return O()&&Le(!1),[{eventName:"mousemove",fn:function(e){var r=e.button,t=e.clientX,n=e.clientY;if(r===wa){var o={x:t,y:n};if(I.current)return e.preventDefault(),void M.move(o);var i=E.current;i||(B(),Le(!1)),ha(i,o)&&(e.preventDefault(),L())}}},{eventName:"mouseup",fn:function(e){var r=I.current;B(),r&&(e.preventDefault(),D.onDrop())}},{eventName:"mousedown",fn:function(e){I.current&&e.preventDefault(),A()}},{eventName:"keydown",fn:function(e){if(!E.current)return e.keyCode===la?(e.preventDefault(),void A()):void xa(e);B()}},{eventName:"resize",fn:A},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.currentTarget===w()&&(E.current?B():M.windowScrollMove())}},{eventName:"webkitmouseforcedown",fn:function(){A()}},{eventName:ga,fn:A}]},[O,A,L,M,B,D,w]),T=Ae(function(){var e=w(),r={capture:!0};P.current=function(){return ca(e,N,r)},aa(e,N,r)},[w,N]),_=Ae(function(e){E.current&&Le(!1),E.current=e,S(B),T()},[T,S,B]),Ae(function(e){if(!Sa.isHandled()&&(O()&&Le(!1),x(e)&&e.button===wa&&!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey))){Sa.handle(),e.preventDefault();var r={x:e.clientX,y:e.clientY};_(r)}},[x,O,_])),Ie=Be(function(){return{callbacks:m,getDraggableRef:g,getWindow:ye,canStartCapturing:xe,onCaptureStart:i,onCaptureEnd:a}},[m,xe,g,ye,a,i]),Pe=(j=(F=Ie).canStartCapturing,G=F.getWindow,W=F.callbacks,k=F.onCaptureStart,U=F.onCaptureEnd,z=F.getDraggableRef,V=Re.useRef(!1),$=Re.useRef(Ra),H=Ae(function(){return V.current},[]),q=Be(function(){return H()&&Le(!1),ua(W)},[W,H]),Y=Ae(function(){H()&&(q.cancel(),$.current(),V.current=!1,U())},[H,U,q]),K=Ae(function(){var e=V.current;Y(),e&&W.onCancel()},[W,Y]),X=Be(function(){return H()&&Le(!1),[{eventName:"mousedown",fn:K},{eventName:"mouseup",fn:K},{eventName:"click",fn:K},{eventName:"touchstart",fn:K},{eventName:"resize",fn:K},{eventName:"wheel",fn:K,options:{passive:!0}},{eventName:"scroll",options:{capture:!1},fn:function(e){e.currentTarget===G()&&W.onWindowScroll()}},{eventName:ga,fn:K}]},[W,K,H,G]),J=Ae(function(){var e=G(),r={capture:!0};$.current=function(){return ca(e,X,r)},aa(e,X,r)},[G,X]),Q=Ae(function(){V.current&&Le(!1);var e=z();e||Le(!1),V.current=!0,k(Y),J();var r=Oa(e);W.onLift({clientSelection:r,movementMode:"SNAP"})},[J,W,z,k,Y]),Ae(function(e){return H()?e.keyCode===la?(e.preventDefault(),void K()):e.keyCode===sa?(e.preventDefault(),Y(),void W.onDrop()):e.keyCode===ma?(e.preventDefault(),void q.moveDown()):e.keyCode===pa?(e.preventDefault(),void q.moveUp()):e.keyCode===fa?(e.preventDefault(),void q.moveRight()):e.keyCode===da?(e.preventDefault(),void q.moveLeft()):void(Ma[e.keyCode]?e.preventDefault():xa(e)):!e.defaultPrevented&&j(e)&&e.keyCode===sa?(e.preventDefault(),void Q()):void 0},[W,j,K,H,q,Q,Y])),Oe=Be(function(){return{callbacks:m,getDraggableRef:g,getWindow:ye,canStartCapturing:xe,getShouldRespectForcePress:v,onCaptureStart:i,onCaptureEnd:a}},[m,g,ye,xe,v,i,a]),Me=(ee=(Z=Oe).callbacks,re=Z.getWindow,te=Z.canStartCapturing,ne=Z.getShouldRespectForcePress,oe=Z.onCaptureStart,ie=Z.onCaptureEnd,ae=Re.useRef(null),ce=Re.useRef(!1),ue=Re.useRef(!1),le=Re.useRef(Na),se=Ae(function(){return Boolean(ae.current||ce.current)},[]),de=Be(function(){return ba(re)},[re]),pe=Be(function(){return se()&&Le(!1),ua(ee)},[ee,se]),fe=Ae(function(){if(se()){if(pe.cancel(),le.current(),La.reset(),ue.current=!1,ie(),ce.current)return de.preventNext(),void(ce.current=!1);var e=ae.current;e||Le(!1),clearTimeout(e.longPressTimerId),ae.current=null}},[se,ie,de,pe]),me=Ae(function(){var e=ce.current;fe(),e&&ee.onCancel()},[ee,fe]),ge=Be(function(){return se()&&Le(!1),[{eventName:"touchmove",options:{passive:!1,capture:!1},fn:function(e){if(ce.current){ue.current||(ue.current=!0);var r=e.touches[0];if(r){var t={x:r.clientX,y:r.clientY};e.preventDefault(),pe.move(t)}}else fe()}},{eventName:"touchend",fn:function(e){ce.current?(e.preventDefault(),fe(),ee.onDrop()):fe()}},{eventName:"touchcancel",fn:function(e){ce.current?(e.preventDefault(),me()):fe()}},{eventName:"touchstart",fn:me},{eventName:"orientationchange",fn:me},{eventName:"resize",fn:me},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ae.current?fe():pe.windowScrollMove()}},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){ce.current&&e.keyCode===la&&e.preventDefault(),me()}},{eventName:"touchforcechange",fn:function(e){if(e.touches[0].force>=Aa){var r=ne();if(!ae.current)return r?ue.current?void e.preventDefault():void me():void e.preventDefault();r&&me()}}},{eventName:ga,fn:me}]},[ee,me,se,ne,pe,fe]),ve=Ae(function(){var e=re(),r={capture:!0};le.current=function(){return ca(e,ge,r)},aa(e,ge,r)},[re,ge]),be=Ae(function(){var e=ae.current;e||Le(!1),ce.current=!0,ae.current=null,ue.current=!1,ee.onLift({clientSelection:e.point,movementMode:"FLUID"})},[ee]),he=Ae(function(e){ae.current&&Le(!1);var r=e.touches[0],t={point:{x:r.clientX,y:r.clientY},longPressTimerId:setTimeout(be,Ba)};ae.current=t,oe(fe),ve()},[ve,oe,be,fe]),fi(function(){return aa(window,[{eventName:"touchmove",fn:Na,options:{capture:!1,passive:!1}}])},[]),function(e){La.isHandled()||(se()&&Le(!1),te(e)&&(La.handle(),he(e)))});return fi(function(){return function(){o.current&&(c(),h.current.isDragging&&h.current.callbacks.onCancel())}},[]),!p&&o.current&&(c(),h.current.isDragging&&m.onCancel()),fi(function(){!d&&o.current&&c()},[c,d]),Be(function(){return p?{onMouseDown:Ee,onKeyDown:Pe,onTouchStart:Me,onFocus:Se,onBlur:De,tabIndex:0,"data-react-beautiful-dnd-drag-handle":s,"aria-roledescription":"Draggable item. Press space bar to lift",draggable:!1,onDragStart:qa}:null},[p,De,Se,Pe,Ee,Me,s])}function Ka(e){var r=e.draggableId,t=e.index,n=e.getDraggableRef,o=Fi(xi).marshal,i=Fi(zi),a=i.droppableId,c=i.type,u=Be(function(){return{id:r,droppableId:a,type:c,index:t}},[r,a,t,c]),l=Re.useRef(u),s=Ae(function(e){var r=l.current,t=n();return t||Le(!1),function(e,r,t){void 0===t&&(t=Vr);var n=window.getComputedStyle(r),o=r.getBoundingClientRect(),i=ct(o,n),a=at(i,t);return{descriptor:e,placeholder:{client:i,tagName:r.tagName.toLowerCase(),display:n.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(r,t,e)},[n]);fi(function(){return o.registerDraggable(l.current,s),function(){return o.unregisterDraggable(l.current)}},[s,o]),fi(function(){if(l.current!==u){var e=l.current;l.current=u,o.updateDraggable(e,u,s)}},[u,s,o])}var Xa=Math.floor;S(S.S,"Number",{isInteger:function(e){return!o(e)&&isFinite(e)&&Xa(e)===e}});v.Number.isInteger;var Ja=zr(function(){var b=vt(function(e,r,t,n){return{isDragging:!0,isDropAnimating:Boolean(n),dropAnimation:n,mode:e,draggingOver:r,combineWith:t,combineTargetFor:null}}),n=vt(function(e){return{isDragging:!1,isDropAnimating:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}),t={mapped:{type:"SECONDARY",offset:Vr,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:n(null)}},h=vt(function(e,r){return{x:e,y:r}}),y=vt(function(e,r,t,n,o,i){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:n,combineWith:o,mode:r,offset:e,dimension:t,forceShouldAnimate:i,snapshot:b(r,n,o,null)}}}),l=vt(function(e,r,t){return void 0===r&&(r=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:r,shouldAnimateDisplacement:t,snapshot:n(r)}}}),o=function(e,r,t){var n=t.movement.map[e],o=t.movement,i=t.merge,a=Boolean(i&&i.combine.draggableId===e),c=o.displacedBy.point,u=h(c.x,c.y);return a?l(n?u:Vr,r,!n||n.shouldAnimate):n&&n.isVisible?l(u,null,n.shouldAnimate):null};return function(e,r){return function(e,r){if(e.isDragging){if(e.critical.draggable.id!==r.draggableId)return null;var t=e.current.client.offset,n=e.dimensions.draggables[r.draggableId],o=e.movementMode,i=mt(e.impact),a=(u=e.impact).merge?u.merge.combine.draggableId:null,c=e.forceShouldAnimate;return y(h(t.x,t.y),o,n,i,a,c)}var u,l;if("DROP_ANIMATING"!==e.phase)return null;var s=e.completed;if(s.result.draggableId!==r.draggableId)return null;var d=e.dimensions.draggables[r.draggableId],p=s.result,f=p.mode,m=qi(p),g=(l=p).combine?l.combine.draggableId:null,v={duration:e.dropDuration,curve:Zn,moveTo:e.newHomeClientOffset,opacity:g?eo.drop:null,scale:g?ro.drop:null};return{mapped:{type:"DRAGGING",offset:e.newHomeClientOffset,dimension:d,dropping:v,draggingOver:m,combineWith:g,mode:f,forceShouldAnimate:null,snapshot:b(f,m,g,v)}}}(e,r)||function(e,r){if(e.isDragging)return e.critical.draggable.id===r.draggableId?null:o(r.draggableId,e.critical.draggable.id,e.impact);if("DROP_ANIMATING"!==e.phase)return null;var t=e.completed;return t.result.draggableId===r.draggableId?null:o(r.draggableId,t.result.draggableId,t.impact)}(e,r)||t}},{lift:function(e){return{type:"LIFT",payload:e}},move:Kn,moveUp:function(){return{type:"MOVE_UP",payload:null}},moveDown:function(){return{type:"MOVE_DOWN",payload:null}},moveLeft:function(){return{type:"MOVE_LEFT",payload:null}},moveRight:function(){return{type:"MOVE_RIGHT",payload:null}},moveByWindowScroll:function(e){return{type:"MOVE_BY_WINDOW_SCROLL",payload:e}},drop:Qn,dropAnimationFinished:function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}}},null,{context:vi,pure:!0,areStatePropsEqual:Hi})(function(e){var n=Re.useRef(null),t=Ae(function(e){n.current=e},[]),r=Ae(function(){return n.current},[]),o=Fi(xi);Re.useEffect(function(){});var i=e.children,a=e.draggableId,c=e.isDragDisabled,u=e.shouldRespectForcePress,l=e.disableInteractiveElementBlocking,s=e.index,d=e.mapped,p=e.moveUp,f=e.move,m=e.drop,g=e.moveDown,v=e.moveRight,b=e.moveLeft,h=e.moveByWindowScroll,y=e.lift,x=e.dropAnimationFinished;Ka(Be(function(){return{draggableId:a,index:s,getDraggableRef:r}},[a,r,s]));var w=Ae(function(e){n.current||Le(!1),c&&Le(!1);var r=e.clientSelection,t=e.movementMode;y({id:a,clientSelection:r,movementMode:t})},[a,c,y]),D=Ae(function(){return u},[u]),S=Be(function(){return{onLift:w,onMove:function(e){return f({client:e})},onDrop:function(){return m({reason:"DROP"})},onCancel:function(){return m({reason:"CANCEL"})},onMoveUp:p,onMoveDown:g,onMoveRight:v,onMoveLeft:b,onWindowScroll:function(){return h({newScroll:Oo()})}}},[m,f,h,g,b,v,p,w]),C="DRAGGING"===d.type,E="DRAGGING"===d.type&&Boolean(d.dropping),I=Ya(Be(function(){return{draggableId:a,isDragging:C,isDropAnimating:E,isEnabled:!c,callbacks:S,getDraggableRef:r,canDragInteractiveElements:l,getShouldRespectForcePress:D}},[S,l,a,r,D,c,C,E])),P=Ae(function(e){"DRAGGING"===d.type&&d.dropping&&"transform"===e.propertyName&&x()},[x,d]);return i(Be(function(){var e=ra(d),r="DRAGGING"===d.type&&d.dropping?P:null;return{innerRef:t,draggableProps:{"data-react-beautiful-dnd-draggable":o.style,style:e,onTransitionEnd:r},dragHandleProps:I}},[o.style,I,d,P,t]),d.snapshot)});Ja.defaultProps={isDragDisabled:!1,disableInteractiveElementBlocking:!1,shouldRespectForcePress:!1},e.DragDropContext=function(r){var t=Be(function(){return Ei++},[]);return W.createElement(de,null,function(e){return W.createElement(Ci,X({setOnError:e,uniqueId:t},r),r.children)})},e.Draggable=Ja,e.Droppable=Xi,e.resetServerContext=function(){Ei=0},Object.defineProperty(e,"__esModule",{value:!0})});