@plone/volto 15.3.0 → 15.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +47 -1
  2. package/dist/assets.json +1 -1
  3. package/dist/chunks.json +70 -70
  4. package/dist/loadable-stats.json +158 -158
  5. package/dist/public/static/css/{14.a04d758b.chunk.css → 14.28a992d7.chunk.css} +2 -2
  6. package/dist/public/static/css/{client.4f2ad45a.chunk.css → client.d1eef743.chunk.css} +2 -2
  7. package/dist/public/static/js/{14.a04d758b.chunk.js → 14.28a992d7.chunk.js} +2 -2
  8. package/dist/public/static/js/{14.a04d758b.chunk.js.LICENSE.txt → 14.28a992d7.chunk.js.LICENSE.txt} +0 -0
  9. package/dist/public/static/js/{19.61ef8815.chunk.js → 18.8304f096.chunk.js} +3 -3
  10. package/dist/public/static/js/{19.61ef8815.chunk.js.LICENSE.txt → 18.8304f096.chunk.js.LICENSE.txt} +0 -0
  11. package/dist/public/static/js/{20.6b37f925.chunk.js → 19.11da9600.chunk.js} +2 -2
  12. package/dist/public/static/js/{21.8704b265.chunk.js → 20.8d540d9e.chunk.js} +2 -2
  13. package/dist/public/static/js/{22.5a2b56ff.chunk.js → 21.5eb5dd94.chunk.js} +2 -2
  14. package/dist/public/static/js/{23.a53c8d7b.chunk.js → 22.df7a39a6.chunk.js} +2 -2
  15. package/dist/public/static/js/{24.d44c620a.chunk.js → 23.d81c9266.chunk.js} +2 -2
  16. package/dist/public/static/js/{25.455376b6.chunk.js → 24.b937f292.chunk.js} +2 -2
  17. package/dist/public/static/js/{26.a821045d.chunk.js → 25.4ca4d9bb.chunk.js} +2 -2
  18. package/dist/public/static/js/{27.efbb318a.chunk.js → 26.2923056d.chunk.js} +2 -2
  19. package/dist/public/static/js/27.ce5e05d3.chunk.js +2 -0
  20. package/dist/public/static/js/{29.690d4b54.chunk.js → 28.6e152244.chunk.js} +2 -2
  21. package/dist/public/static/js/{30.5f174f94.chunk.js → 29.3311f523.chunk.js} +2 -2
  22. package/dist/public/static/js/{31.4a7cf109.chunk.js → 30.5813bed0.chunk.js} +2 -2
  23. package/dist/public/static/js/{32.2247dcf7.chunk.js → 31.ea75f89f.chunk.js} +2 -2
  24. package/dist/public/static/js/{33.87874f33.chunk.js → 32.93231c42.chunk.js} +2 -2
  25. package/dist/public/static/js/{34.aec37d56.chunk.js → 33.a7d2c488.chunk.js} +3 -3
  26. package/dist/public/static/js/{34.aec37d56.chunk.js.LICENSE.txt → 33.a7d2c488.chunk.js.LICENSE.txt} +0 -0
  27. package/dist/public/static/js/{35.73887e02.chunk.js → 34.54f44477.chunk.js} +3 -3
  28. package/dist/public/static/js/{35.73887e02.chunk.js.LICENSE.txt → 34.54f44477.chunk.js.LICENSE.txt} +0 -0
  29. package/dist/public/static/js/{36.19d2e05a.chunk.js → 35.14d24902.chunk.js} +3 -3
  30. package/dist/public/static/js/{36.19d2e05a.chunk.js.LICENSE.txt → 35.14d24902.chunk.js.LICENSE.txt} +0 -0
  31. package/dist/public/static/js/{37.96925a5f.chunk.js → 36.9224daf8.chunk.js} +3 -3
  32. package/dist/public/static/js/{37.96925a5f.chunk.js.LICENSE.txt → 36.9224daf8.chunk.js.LICENSE.txt} +0 -0
  33. package/dist/public/static/js/{38.701a2e85.chunk.js → 37.fba4ef54.chunk.js} +2 -2
  34. package/dist/public/static/js/38.e3318f33.chunk.js +2 -0
  35. package/dist/public/static/js/client.d1eef743.chunk.js +2 -0
  36. package/dist/public/static/js/{runtime~client.5ca655c6.js → runtime~client.99af7cc8.js} +2 -2
  37. package/dist/server.js +1 -1
  38. package/locales/it/LC_MESSAGES/volto.po +5 -5
  39. package/locales/it.json +1 -1
  40. package/package-why.json +71 -0
  41. package/package.json +4 -3
  42. package/src/components/manage/Blocks/HTML/Edit.jsx +1 -1
  43. package/src/components/manage/Blocks/Image/Edit.jsx +1 -1
  44. package/src/components/manage/Blocks/Image/ImageSidebar.jsx +3 -3
  45. package/src/components/manage/Blocks/LeadImage/LeadImageSidebar.jsx +2 -2
  46. package/src/components/manage/Blocks/Video/VideoSidebar.jsx +11 -4
  47. package/src/components/manage/Contents/Contents.jsx +1 -1
  48. package/src/components/manage/Form/Field.jsx +2 -5
  49. package/src/components/manage/Form/Field.test.jsx +27 -0
  50. package/src/components/manage/Sidebar/ObjectBrowserBody.jsx +4 -4
  51. package/src/components/manage/Widgets/ObjectBrowserWidget.jsx +15 -9
  52. package/src/components/manage/Widgets/ObjectBrowserWidget.stories.js +24 -0
  53. package/src/components/theme/Navigation/ContextNavigation.jsx +24 -18
  54. package/src/helpers/Utils/Utils.js +6 -5
  55. package/src/helpers/Utils/Utils.test.js +6 -0
  56. package/src/start-server.js +5 -1
  57. package/theme/themes/pastanaga/extras/contents.less +13 -0
  58. package/dist/public/static/js/18.0f0b1dfa.chunk.js +0 -2
  59. package/dist/public/static/js/28.b4840d60.chunk.js +0 -2
  60. package/dist/public/static/js/client.4f2ad45a.chunk.js +0 -2
@@ -1,3 +1,3 @@
1
- /*! For license information please see 19.61ef8815.chunk.js.LICENSE.txt */
2
- (window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[19],{SLVX:function(e,t,r){"use strict";function n(e){var t,r=e.Symbol;return"function"===typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}r.d(t,"a",(function(){return n}))},WTs4:function(e,t,r){"use strict";e.exports=r("b3li")},Wwog:function(e,t,r){"use strict";function n(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}t.a=function(e,t){var r;void 0===t&&(t=n);var i,o=[],a=!1;return function(){for(var n=[],c=0;c<arguments.length;c++)n[c]=arguments[c];return a&&r===this&&t(n,o)||(i=e.apply(this,n),a=!0,r=this,o=n),i}}},b3li:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"===typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,c=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,d=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,g=n?Symbol.for("react.suspense"):60113,b=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,h=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function I(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case p:case a:case u:case c:case g:return e;default:switch(e=e&&e.$$typeof){case s:case f:case m:case v:case l:return e;default:return t}}case o:return t}}}function D(e){return I(e)===p}t.typeOf=I,t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=s,t.ContextProvider=l,t.Element=i,t.ForwardRef=f,t.Fragment=a,t.Lazy=m,t.Memo=v,t.Portal=o,t.Profiler=u,t.StrictMode=c,t.Suspense=g,t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===p||e===u||e===c||e===g||e===b||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===l||e.$$typeof===s||e.$$typeof===f||e.$$typeof===h||e.$$typeof===y||e.$$typeof===x)},t.isAsyncMode=function(e){return D(e)||I(e)===d},t.isConcurrentMode=D,t.isContextConsumer=function(e){return I(e)===s},t.isContextProvider=function(e){return I(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return I(e)===f},t.isFragment=function(e){return I(e)===a},t.isLazy=function(e){return I(e)===m},t.isMemo=function(e){return I(e)===v},t.isPortal=function(e){return I(e)===o},t.isProfiler=function(e){return I(e)===u},t.isStrictMode=function(e){return I(e)===c},t.isSuspense=function(e){return I(e)===g}},bCCX:function(e,t,r){"use strict";(function(e,n){var i,o=r("SLVX");i="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:n;var a=Object(o.a)(i);t.a=a}).call(this,r("RLDh"),r("lM3E")(e))},ngQI:function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropContext",(function(){return Di})),r.d(t,"Draggable",(function(){return no})),r.d(t,"Droppable",(function(){return co})),r.d(t,"resetServerContext",(function(){return Ii}));var n=r("q1tI"),i=r.n(n),o=r("dI71"),a=r("wx14"),c=r("bCCX"),u=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function s(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function d(e,t,r){var n;if("function"===typeof t&&"function"===typeof r||"function"===typeof r&&"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 t&&"undefined"===typeof r&&(r=t,t=void 0),"undefined"!==typeof r){if("function"!==typeof r)throw new Error("Expected the enhancer to be a function.");return r(d)(e,t)}if("function"!==typeof e)throw new Error("Expected the reducer to be a function.");var i=e,o=t,a=[],u=a,p=!1;function f(){u===a&&(u=a.slice())}function g(){if(p)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 o}function b(e){if("function"!==typeof e)throw new Error("Expected the listener to be a function.");if(p)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#subscribelistener for more details.");var t=!0;return f(),u.push(e),function(){if(t){if(p)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,f();var r=u.indexOf(e);u.splice(r,1),a=null}}}function v(e){if(!s(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,o=i(o,e)}finally{p=!1}for(var t=a=u,r=0;r<t.length;r++){(0,t[r])()}return e}function m(e){if("function"!==typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,v({type:l.REPLACE})}function h(){var e,t=b;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(g())}return r(),{unsubscribe:t(r)}}})[c.a]=function(){return this},e}return v({type:l.INIT}),(n={dispatch:v,subscribe:b,getState:g,replaceReducer:m})[c.a]=h,n}function p(e,t){return function(){return t(e.apply(this,arguments))}}function f(e,t){if("function"===typeof e)return p(e,t);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"?');var r={};for(var n in e){var i=e[n];"function"===typeof i&&(r[n]=p(i,t))}return r}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(r,!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}r("17x9");var h=i.a.createContext(null);var y=function(e){e()},x={notify:function(){}};function I(){var e=y,t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],r=t;r;)e.push(r),r=r.next;return e},subscribe:function(e){var n=!0,i=r={callback:e,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){n&&null!==t&&(n=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var D=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=x,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=I())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=x)},e}();var O=function(e){var t=e.store,r=e.context,o=e.children,a=Object(n.useMemo)((function(){var e=new D(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),c=Object(n.useMemo)((function(){return t.getState()}),[t]);Object(n.useEffect)((function(){var e=a.subscription;return e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,c]);var u=r||h;return i.a.createElement(u.Provider,{value:a},o)},w=r("zLVn"),E=r("2mql"),C=r.n(E),S=r("WTs4"),A="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?n.useLayoutEffect:n.useEffect,P=[],N=[null,null];function R(e,t){var r=e[1];return[t.payload,r+1]}function B(e,t,r){A((function(){return e.apply(void 0,t)}),r)}function T(e,t,r,n,i,o,a){e.current=n,t.current=i,r.current=!1,o.current&&(o.current=null,a())}function j(e,t,r,n,i,o,a,c,u,l){if(e){var s=!1,d=null,p=function(){if(!s){var e,r,p=t.getState();try{e=n(p,i.current)}catch(f){r=f,d=f}r||(d=null),e===o.current?a.current||u():(o.current=e,c.current=e,a.current=!0,l({type:"STORE_UPDATED",payload:{error:r}}))}};r.onStateChange=p,r.trySubscribe(),p();return function(){if(s=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}}var L=function(){return[null,0]};function M(e,t){void 0===t&&(t={});var r=t,o=r.getDisplayName,c=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,u=r.methodName,l=void 0===u?"connectAdvanced":u,s=r.renderCountProp,d=void 0===s?void 0:s,p=r.shouldHandleStateChanges,f=void 0===p||p,g=r.storeKey,b=void 0===g?"store":g,v=(r.withRef,r.forwardRef),m=void 0!==v&&v,y=r.context,x=void 0===y?h:y,I=Object(w.a)(r,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),O=x;return function(t){var r=t.displayName||t.name||"Component",o=c(r),u=Object(a.a)({},I,{getDisplayName:c,methodName:l,renderCountProp:d,shouldHandleStateChanges:f,storeKey:b,displayName:o,wrappedComponentName:r,WrappedComponent:t}),s=I.pure;var p=s?n.useMemo:function(e){return e()};function g(r){var o=Object(n.useMemo)((function(){var e=r.forwardedRef,t=Object(w.a)(r,["forwardedRef"]);return[r.context,e,t]}),[r]),c=o[0],l=o[1],s=o[2],d=Object(n.useMemo)((function(){return c&&c.Consumer&&Object(S.isContextConsumer)(i.a.createElement(c.Consumer,null))?c:O}),[c,O]),g=Object(n.useContext)(d),b=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch);Boolean(g)&&Boolean(g.store);var v=b?r.store:g.store,m=Object(n.useMemo)((function(){return function(t){return e(t.dispatch,u)}(v)}),[v]),h=Object(n.useMemo)((function(){if(!f)return N;var e=new D(v,b?null:g.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[v,b,g]),y=h[0],x=h[1],I=Object(n.useMemo)((function(){return b?g:Object(a.a)({},g,{subscription:y})}),[b,g,y]),E=Object(n.useReducer)(R,P,L),C=E[0][0],A=E[1];if(C&&C.error)throw C.error;var M=Object(n.useRef)(),G=Object(n.useRef)(s),_=Object(n.useRef)(),F=Object(n.useRef)(!1),W=p((function(){return _.current&&s===G.current?_.current:m(v.getState(),s)}),[v,C,s]);B(T,[G,M,F,s,W,_,x]),B(j,[f,v,y,m,G,M,F,_,x,A],[v,y,m]);var k=Object(n.useMemo)((function(){return i.a.createElement(t,Object(a.a)({},W,{ref:l}))}),[l,t,W]);return Object(n.useMemo)((function(){return f?i.a.createElement(d.Provider,{value:I},k):k}),[d,k,I])}var v=s?i.a.memo(g):g;if(v.WrappedComponent=t,v.displayName=o,m){var h=i.a.forwardRef((function(e,t){return i.a.createElement(v,Object(a.a)({},e,{forwardedRef:t}))}));return h.displayName=o,h.WrappedComponent=t,C()(h,t)}return C()(v,t)}}function G(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function _(e,t){if(G(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!G(e[r[i]],t[r[i]]))return!1;return!0}function F(e){return function(t,r){var n=e(t,r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function W(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function k(e,t){return function(t,r){r.displayName;var n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=W(e);var i=n(t,r);return"function"===typeof i&&(n.mapToProps=i,n.dependsOnOwnProps=W(i),i=n(t,r)),i},n}}var U=[function(e){return"function"===typeof e?k(e):void 0},function(e){return e?void 0:F((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?F((function(t){return f(e,t)})):void 0}];var H=[function(e){return"function"===typeof e?k(e):void 0},function(e){return e?void 0:F((function(){return{}}))}];function q(e,t,r){return Object(a.a)({},r,{},e,{},t)}var V=[function(e){return"function"===typeof e?function(e){return function(t,r){r.displayName;var n,i=r.pure,o=r.areMergedPropsEqual,a=!1;return function(t,r,c){var u=e(t,r,c);return a?i&&o(u,n)||(n=u):(a=!0,n=u),n}}}(e):void 0},function(e){return e?void 0:function(){return q}}];function z(e,t,r,n){return function(i,o){return r(e(i,o),t(n,o),o)}}function Y(e,t,r,n,i){var o,a,c,u,l,s=i.areStatesEqual,d=i.areOwnPropsEqual,p=i.areStatePropsEqual,f=!1;function g(i,f){var g=!d(f,a),b=!s(i,o);return o=i,a=f,g&&b?(c=e(o,a),t.dependsOnOwnProps&&(u=t(n,a)),l=r(c,u,a)):g?(e.dependsOnOwnProps&&(c=e(o,a)),t.dependsOnOwnProps&&(u=t(n,a)),l=r(c,u,a)):b?function(){var t=e(o,a),n=!p(t,c);return c=t,n&&(l=r(c,u,a)),l}():l}return function(i,s){return f?g(i,s):(c=e(o=i,a=s),u=t(n,a),l=r(c,u,a),f=!0,l)}}function $(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,i=t.initMergeProps,o=Object(w.a)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=r(e,o),c=n(e,o),u=i(e,o);return(o.pure?Y:z)(a,c,u,e,o)}function X(e,t,r){for(var n=t.length-1;n>=0;n--){var i=t[n](e);if(i)return i}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function J(e,t){return e===t}function K(e){var t=void 0===e?{}:e,r=t.connectHOC,n=void 0===r?M:r,i=t.mapStateToPropsFactories,o=void 0===i?H:i,c=t.mapDispatchToPropsFactories,u=void 0===c?U:c,l=t.mergePropsFactories,s=void 0===l?V:l,d=t.selectorFactory,p=void 0===d?$:d;return function(e,t,r,i){void 0===i&&(i={});var c=i,l=c.pure,d=void 0===l||l,f=c.areStatesEqual,g=void 0===f?J:f,b=c.areOwnPropsEqual,v=void 0===b?_:b,m=c.areStatePropsEqual,h=void 0===m?_:m,y=c.areMergedPropsEqual,x=void 0===y?_:y,I=Object(w.a)(c,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),D=X(e,o,"mapStateToProps"),O=X(t,u,"mapDispatchToProps"),E=X(r,s,"mergeProps");return n(p,Object(a.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:D,initMapDispatchToProps:O,initMergeProps:E,pure:d,areStatesEqual:g,areOwnPropsEqual:v,areStatePropsEqual:h,areMergedPropsEqual:x},I))}}var Q=K();var Z,ee=r("i8i4"),te=r.n(ee);function re(e,t){var r=Object(n.useState)((function(){return{inputs:t,result:e()}}))[0],i=Object(n.useRef)(r),o=Boolean(t&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,i.current.inputs))?i.current:{inputs:t,result:e()};return Object(n.useEffect)((function(){i.current=o}),[o]),o.result}Z=ee.unstable_batchedUpdates,y=Z;var ne=re,ie=function(e,t){return re((function(){return e}),t)},oe=r("9R94"),ae=function(e){var t=e.top,r=e.right,n=e.bottom,i=e.left;return{top:t,right:r,bottom:n,left:i,width:r-i,height:n-t,x:i,y:t,center:{x:(r+i)/2,y:(n+t)/2}}},ce=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},ue=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},le={top:0,right:0,bottom:0,left:0},se=function(e){var t=e.borderBox,r=e.margin,n=void 0===r?le:r,i=e.border,o=void 0===i?le:i,a=e.padding,c=void 0===a?le:a,u=ae(ce(t,n)),l=ae(ue(t,o)),s=ae(ue(l,c));return{marginBox:u,borderBox:ae(t),paddingBox:l,contentBox:s,margin:n,border:o,padding:c}},de=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var r=Number(t);return isNaN(r)&&Object(oe.a)(!1),r},pe=function(e,t){var r,n,i=e.borderBox,o=e.border,a=e.margin,c=e.padding,u=(n=t,{top:(r=i).top+n.y,left:r.left+n.x,bottom:r.bottom+n.y,right:r.right+n.x});return se({borderBox:u,border:o,margin:a,padding:c})},fe=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),pe(e,t)},ge=function(e,t){var r={top:de(t.marginTop),right:de(t.marginRight),bottom:de(t.marginBottom),left:de(t.marginLeft)},n={top:de(t.paddingTop),right:de(t.paddingRight),bottom:de(t.paddingBottom),left:de(t.paddingLeft)},i={top:de(t.borderTopWidth),right:de(t.borderRightWidth),bottom:de(t.borderBottomWidth),left:de(t.borderLeftWidth)};return se({borderBox:e,margin:r,padding:n,border:i})},be=function(e){var t=e.getBoundingClientRect(),r=window.getComputedStyle(e);return ge(t,r)},ve=r("Wwog"),me=function(e){var t=[],r=null,n=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];t=i,r||(r=requestAnimationFrame((function(){r=null,e.apply(void 0,t)})))};return n.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},n};function he(e,t){}he.bind(null,"warn"),he.bind(null,"error");function ye(){}function xe(e,t,r){var n=t.map((function(t){var n,i,o=(n=r,i=t.options,Object(a.a)({},n,{},i));return e.addEventListener(t.eventName,t.fn,o),function(){e.removeEventListener(t.eventName,t.fn,o)}}));return function(){n.forEach((function(e){e()}))}}function Ie(e){this.message=e}function De(e,t){if(!e)throw new Ie("Invariant failed")}Ie.prototype.toString=function(){return this.message};var Oe=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).callbacks=null,t.unbind=ye,t.onWindowError=function(e){var r=t.getCallbacks();r.isDragging()&&r.tryAbort(),e.error instanceof Ie&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}Object(o.a)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.unbind=xe(window,[{eventName:"error",fn:this.onWindowError}])},r.componentWillUnmount=function(){this.unbind()},r.componentDidCatch=function(e){if(!(e instanceof Ie))throw e;this.setState({})},r.render=function(){return this.props.children(this.setCallbacks)},t}(i.a.Component),we=function(e){return e+1},Ee=function(e,t){var r=e.droppableId===t.droppableId,n=we(e.index),i=we(t.index);return r?"\n You have moved the item from position "+n+"\n to position "+i+"\n ":"\n You have moved the item from position "+n+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+i+"\n "},Ce=function(e,t,r){return t.droppableId===r.droppableId?"\n The item "+e+"\n has been combined with "+r.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+r.draggableId+"\n in list "+r.droppableId+"\n "},Se=function(e){return"\n The item has returned to its starting position\n of "+we(e.index)+"\n"},Ae="\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",Pe=function(e){return"\n You have lifted an item in position "+we(e.source.index)+"\n"},Ne=function(e){var t=e.destination;if(t)return Ee(e.source,t);var r=e.combine;return r?Ce(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},Re=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+Se(e.source)+"\n ";var t=e.destination,r=e.combine;return t?"\n You have dropped the item.\n "+Ee(e.source,t)+"\n ":r?"\n You have dropped the item.\n "+Ce(e.draggableId,e.source,r)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Se(e.source)+"\n "},Be={x:0,y:0},Te=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},je=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Le=function(e,t){return e.x===t.x&&e.y===t.y},Me=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Ge=function(e,t,r){var n;return void 0===r&&(r=0),(n={})[e]=t,n["x"===e?"y":"x"]=r,n},_e=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Fe=function(e,t){return Math.min.apply(Math,t.map((function(t){return _e(e,t)})))},We=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},ke=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Ue=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}]},He=function(e,t){return t&&t.shouldClipSubject?function(e,t){var r=ae({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r}(t.pageMarginBox,e):ae(e)},qe=function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,i=e.frame,o=function(e,t,r){var n;return r&&r.increasedBy?Object(a.a)({},e,((n={})[t.end]=e[t.end]+r.increasedBy[t.line],n)):e}(function(e,t){return t?ke(e,t.scroll.diff.displacement):e}(t.marginBox,i),n,r);return{page:t,withPlaceholder:r,active:He(o,i)}},Ve=function(e,t){e.frame||De(!1);var r=e.frame,n=je(t,r.scroll.initial),i=Me(n),o=Object(a.a)({},r,{scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:i},max:r.scroll.max}}),c=qe({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return Object(a.a)({},e,{frame:o,subject:c})};function ze(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function Ye(e,t){if(e.findIndex)return e.findIndex(t);for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}function $e(e,t){if(e.find)return e.find(t);var r=Ye(e,t);return-1!==r?e[r]:void 0}function Xe(e){return Array.prototype.slice.call(e)}var Je=Object(ve.a)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Ke=Object(ve.a)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Qe=Object(ve.a)((function(e){return ze(e)})),Ze=Object(ve.a)((function(e){return ze(e)})),et=Object(ve.a)((function(e,t){return Ze(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}))}));function tt(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function rt(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var nt=Object(ve.a)((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),it=function(e,t){return e.descriptor.droppableId===t.descriptor.id},ot={point:Be,value:0},at={invisible:{},visible:{},all:[]},ct={displaced:at,displacedBy:ot,at:null},ut=function(e,t){return function(r){return e<=r&&r<=t}},lt=function(e){var t=ut(e.top,e.bottom),r=ut(e.left,e.right);return function(n){if(t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right))return!0;var i=t(n.top)||t(n.bottom),o=r(n.left)||r(n.right);if(i&&o)return!0;var a=n.top<e.top&&n.bottom>e.bottom,c=n.left<e.left&&n.right>e.right;return!(!a||!c)||(a&&o||c&&i)}},st=function(e){var t=ut(e.top,e.bottom),r=ut(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&r(e.left)&&r(e.right)}},dt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},pt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},ft=function(e){var t=e.target,r=e.destination,n=e.viewport,i=e.withDroppableDisplacement,o=e.isVisibleThroughFrameFn,a=i?function(e,t){var r=t.frame?t.frame.scroll.diff.displacement:Be;return ke(e,r)}(t,r):t;return function(e,t,r){return!!t.subject.active&&r(t.subject.active)(e)}(a,r,o)&&function(e,t,r){return r(t)(e)}(a,n,o)},gt=function(e){return ft(Object(a.a)({},e,{isVisibleThroughFrameFn:lt}))},bt=function(e){return ft(Object(a.a)({},e,{isVisibleThroughFrameFn:st}))};function vt(e){var t=e.afterDragging,r=e.destination,n=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var c=function(e,t){var r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return ae(ce(r,n))}(t,n),u=t.descriptor.id;if(e.all.push(u),!gt({target:c,destination:r,viewport:i,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var l={draggableId:u,shouldAnimate:function(e,t,r){if("boolean"===typeof r)return r;if(!t)return!0;var n=t.invisible,i=t.visible;if(n[e])return!1;var o=i[e];return!o||o.shouldAnimate}(u,a,o)};return e.visible[u]=l,e}),{all:[],visible:{},invisible:{}})}function mt(e){var t=e.insideDestination,r=e.inHomeList,n=e.displacedBy,i=e.destination,o=function(e,t){if(!e.length)return 0;var r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}(t,{inHomeList:r});return{displaced:at,displacedBy:n,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function ht(e){var t=e.draggable,r=e.insideDestination,n=e.destination,i=e.viewport,o=e.displacedBy,a=e.last,c=e.index,u=e.forceShouldAnimate,l=it(t,n);if(null==c)return mt({insideDestination:r,inHomeList:l,displacedBy:o,destination:n});var s=$e(r,(function(e){return e.descriptor.index===c}));if(!s)return mt({insideDestination:r,inHomeList:l,displacedBy:o,destination:n});var d=nt(t,r),p=r.indexOf(s);return{displaced:vt({afterDragging:d.slice(p),destination:n,displacedBy:o,last:a,viewport:i.frame,forceShouldAnimate:u}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:c}}}}function yt(e,t){return Boolean(t.effected[e])}var xt=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.draggable,i=e.draggables,o=e.destination,a=e.insideDestination,c=e.previousImpact,u=e.viewport,l=e.afterCritical,s=c.at;if(s||De(!1),"REORDER"===s.type){var d=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.insideDestination,i=e.location;if(!n.length)return null;var o=i.index,a=t?o+1:o-1,c=n[0].descriptor.index,u=n[n.length-1].descriptor.index;return a<c||a>(r?u:u+1)?null:a}({isMovingForward:t,isInHomeList:r,location:s.destination,insideDestination:a});return null==d?null:ht({draggable:n,insideDestination:a,destination:o,viewport:u,last:c.displaced,displacedBy:c.displacedBy,index:d})}var p=function(e){var t=e.isMovingForward,r=e.destination,n=e.draggables,i=e.combine,o=e.afterCritical;if(!r.isCombineEnabled)return null;var a=i.draggableId,c=n[a].descriptor.index;return yt(a,o)?t?c:c-1:t?c+1:c}({isMovingForward:t,destination:o,displaced:c.displaced,draggables:i,combine:s.combine,afterCritical:l});return null==p?null:ht({draggable:n,insideDestination:a,destination:o,viewport:u,last:c.displaced,displacedBy:c.displacedBy,index:p})},It=function(e){var t=e.afterCritical,r=e.impact,n=e.draggables,i=rt(r);i||De(!1);var o=i.draggableId,a=n[o].page.borderBox.center,c=function(e){var t=e.displaced,r=e.afterCritical,n=e.combineWith,i=e.displacedBy,o=Boolean(t.visible[n]||t.invisible[n]);return yt(n,r)?o?Be:Me(i.point):o?i.point:Be}({displaced:r.displaced,afterCritical:t,combineWith:o,displacedBy:r.displacedBy});return Te(a,c)},Dt=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},Ot=function(e,t,r){return t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2},wt=function(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return Ge(t.line,r.marginBox[t.end]+Dt(t,n),Ot(t,r.marginBox,n))},Et=function(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return Ge(t.line,r.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,n),Ot(t,r.marginBox,n))},Ct=function(e){var t=e.impact,r=e.draggable,n=e.draggables,i=e.droppable,o=e.afterCritical,a=et(i.descriptor.id,n),c=r.page,u=i.axis;if(!a.length)return function(e){var t=e.axis,r=e.moveInto,n=e.isMoving;return Ge(t.line,r.contentBox[t.start]+Dt(t,n),Ot(t,r.contentBox,n))}({axis:u,moveInto:i.page,isMoving:c});var l=t.displaced,s=t.displacedBy,d=l.all[0];if(d){var p=n[d];if(yt(d,o))return Et({axis:u,moveRelativeTo:p.page,isMoving:c});var f=pe(p.page,s.point);return Et({axis:u,moveRelativeTo:f,isMoving:c})}var g=a[a.length-1];if(g.descriptor.id===r.descriptor.id)return c.borderBox.center;if(yt(g.descriptor.id,o)){var b=pe(g.page,Me(o.displacedBy.point));return wt({axis:u,moveRelativeTo:b,isMoving:c})}return wt({axis:u,moveRelativeTo:g.page,isMoving:c})},St=function(e,t){var r=e.frame;return r?Te(t,r.scroll.diff.displacement):t},At=function(e){var t=function(e){var t=e.impact,r=e.draggable,n=e.droppable,i=e.draggables,o=e.afterCritical,a=r.page.borderBox.center,c=t.at;return n&&c?"REORDER"===c.type?Ct({impact:t,draggable:r,draggables:i,droppable:n,afterCritical:o}):It({impact:t,draggables:i,afterCritical:o}):a}(e),r=e.droppable;return r?St(r,t):t},Pt=function(e,t){var r=je(t,e.scroll.initial),n=Me(r);return{frame:ae({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}}};function Nt(e,t){return e.map((function(e){return t[e]}))}var Rt=function(e){var t=e.pageBorderBoxCenter,r=e.draggable,n=function(e,t){return Te(e.scroll.diff.displacement,t)}(e.viewport,t),i=je(n,r.page.borderBox.center);return Te(r.client.borderBox.center,i)},Bt=function(e){var t=e.draggable,r=e.destination,n=e.newPageBorderBoxCenter,i=e.viewport,o=e.withDroppableDisplacement,c=e.onlyOnMainAxis,u=void 0!==c&&c,l=je(n,t.page.borderBox.center),s={target:ke(t.page.borderBox,l),destination:r,withDroppableDisplacement:o,viewport:i};return u?function(e){return ft(Object(a.a)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var r=ut(e.top,e.bottom),n=ut(e.left,e.right);return function(e){return t===dt?r(e.top)&&r(e.bottom):n(e.left)&&n(e.right)}})}));var t}(s):bt(s)},Tt=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,i=e.draggables,o=e.previousImpact,c=e.viewport,u=e.previousPageBorderBoxCenter,l=e.previousClientSelection,s=e.afterCritical;if(!n.isEnabled)return null;var d=et(n.descriptor.id,i),p=it(r,n),f=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,i=e.insideDestination,o=e.previousImpact;if(!n.isCombineEnabled)return null;if(!tt(o))return null;function c(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return Object(a.a)({},o,{at:t})}var u=o.displaced.all,l=u.length?u[0]:null;if(t)return l?c(l):null;var s=nt(r,i);if(!l)return s.length?c(s[s.length-1].descriptor.id):null;var d=Ye(s,(function(e){return e.descriptor.id===l}));-1===d&&De(!1);var p=d-1;return p<0?null:c(s[p].descriptor.id)}({isMovingForward:t,draggable:r,destination:n,insideDestination:d,previousImpact:o})||xt({isMovingForward:t,isInHomeList:p,draggable:r,draggables:i,destination:n,insideDestination:d,previousImpact:o,viewport:c,afterCritical:s});if(!f)return null;var g=At({impact:f,draggable:r,droppable:n,draggables:i,afterCritical:s});if(Bt({draggable:r,destination:n,newPageBorderBoxCenter:g,viewport:c.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Rt({pageBorderBoxCenter:g,draggable:r,viewport:c}),impact:f,scrollJumpRequest:null};var b=je(g,u);return{clientSelection:l,impact:function(e){var t=e.impact,r=e.viewport,n=e.destination,i=e.draggables,o=e.maxScrollChange,c=Pt(r,Te(r.scroll.current,o)),u=n.frame?Ve(n,Te(n.frame.scroll.current,o)):n,l=t.displaced,s=vt({afterDragging:Nt(l.all,i),destination:n,displacedBy:t.displacedBy,viewport:c.frame,last:l,forceShouldAnimate:!1}),d=vt({afterDragging:Nt(l.all,i),destination:u,displacedBy:t.displacedBy,viewport:r.frame,last:l,forceShouldAnimate:!1}),p={},f={},g=[l,s,d];return l.all.forEach((function(e){var t=function(e,t){for(var r=0;r<t.length;r++){var n=t[r].visible[e];if(n)return n}return null}(e,g);t?f[e]=t:p[e]=!0})),Object(a.a)({},t,{displaced:{all:l.all,invisible:p,visible:f}})}({impact:f,viewport:c,destination:n,draggables:i,maxScrollChange:b}),scrollJumpRequest:b}},jt=function(e){var t=e.subject.active;return t||De(!1),t},Lt=function(e,t){var r=e.page.borderBox.center;return yt(e.descriptor.id,t)?je(r,t.displacedBy.point):r},Mt=function(e,t){var r=e.page.borderBox;return yt(e.descriptor.id,t)?ke(r,Me(t.displacedBy.point)):r},Gt=Object(ve.a)((function(e,t){var r=t[e.line];return{value:r,point:Ge(e.line,r)}})),_t=function(e,t){return Object(a.a)({},e,{scroll:Object(a.a)({},e.scroll,{max:t})})},Ft=function(e,t,r){var n=e.frame;it(t,e)&&De(!1),e.subject.withPlaceholder&&De(!1);var i=Gt(e.axis,t.displaceBy).point,o=function(e,t,r){var n=e.axis;if("virtual"===e.descriptor.mode)return Ge(n.line,t[n.line]);var i=e.subject.page.contentBox[n.size],o=et(e.descriptor.id,r).reduce((function(e,t){return e+t.client.marginBox[n.size]}),0)+t[n.line]-i;return o<=0?null:Ge(n.line,o)}(e,i,r),c={placeholderSize:i,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n){var u=qe({page:e.subject.page,withPlaceholder:c,axis:e.axis,frame:e.frame});return Object(a.a)({},e,{subject:u})}var l=o?Te(n.scroll.max,o):n.scroll.max,s=_t(n,l),d=qe({page:e.subject.page,withPlaceholder:c,axis:e.axis,frame:s});return Object(a.a)({},e,{subject:d,frame:s})},Wt=function(e){var t=e.isMovingForward,r=e.previousPageBorderBoxCenter,n=e.draggable,i=e.isOver,o=e.draggables,a=e.droppables,c=e.viewport,u=e.afterCritical,l=function(e){var t=e.isMovingForward,r=e.pageBorderBoxCenter,n=e.source,i=e.droppables,o=e.viewport,a=n.subject.active;if(!a)return null;var c=n.axis,u=ut(a[c.start],a[c.end]),l=Qe(i).filter((function(e){return e!==n})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return lt(o.frame)(jt(e))})).filter((function(e){var r=jt(e);return t?a[c.crossAxisEnd]<r[c.crossAxisEnd]:r[c.crossAxisStart]<a[c.crossAxisStart]})).filter((function(e){var t=jt(e),r=ut(t[c.start],t[c.end]);return u(t[c.start])||u(t[c.end])||r(a[c.start])||r(a[c.end])})).sort((function(e,r){var n=jt(e)[c.crossAxisStart],i=jt(r)[c.crossAxisStart];return t?n-i:i-n})).filter((function(e,t,r){return jt(e)[c.crossAxisStart]===jt(r[0])[c.crossAxisStart]}));if(!l.length)return null;if(1===l.length)return l[0];var s=l.filter((function(e){return ut(jt(e)[c.start],jt(e)[c.end])(r[c.line])}));return 1===s.length?s[0]:s.length>1?s.sort((function(e,t){return jt(e)[c.start]-jt(t)[c.start]}))[0]:l.sort((function(e,t){var n=Fe(r,Ue(jt(e))),i=Fe(r,Ue(jt(t)));return n!==i?n-i:jt(e)[c.start]-jt(t)[c.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:r,source:i,droppables:a,viewport:c});if(!l)return null;var s=et(l.descriptor.id,o),d=function(e){var t=e.previousPageBorderBoxCenter,r=e.moveRelativeTo,n=e.insideDestination,i=e.draggable,o=e.draggables,a=e.destination,c=e.viewport,u=e.afterCritical;if(!r){if(n.length)return null;var l={displaced:at,displacedBy:ot,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},s=At({impact:l,draggable:i,droppable:a,draggables:o,afterCritical:u}),d=it(i,a)?a:Ft(a,i,o);return Bt({draggable:i,destination:d,newPageBorderBoxCenter:s,viewport:c.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?l:null}var p=Boolean(t[a.axis.line]<=r.page.borderBox.center[a.axis.line]),f=function(){var e=r.descriptor.index;return r.descriptor.id===i.descriptor.id||p?e:e+1}(),g=Gt(a.axis,i.displaceBy);return ht({draggable:i,insideDestination:n,destination:a,viewport:c,displacedBy:g,last:at,index:f})}({previousPageBorderBoxCenter:r,destination:l,draggable:n,draggables:o,moveRelativeTo:function(e){var t=e.pageBorderBoxCenter,r=e.viewport,n=e.destination,i=e.insideDestination,o=e.afterCritical;return i.filter((function(e){return bt({target:Mt(e,o),destination:n,viewport:r.frame,withDroppableDisplacement:!0})})).sort((function(e,r){var i=_e(t,St(n,Lt(e,o))),a=_e(t,St(n,Lt(r,o)));return i<a?-1:a<i?1:e.descriptor.index-r.descriptor.index}))[0]||null}({pageBorderBoxCenter:r,viewport:c,destination:l,insideDestination:s,afterCritical:u}),insideDestination:s,viewport:c,afterCritical:u});if(!d)return null;var p=At({impact:d,draggable:n,droppable:l,draggables:o,afterCritical:u});return{clientSelection:Rt({pageBorderBoxCenter:p,draggable:n,viewport:c}),impact:d,scrollJumpRequest:null}},kt=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Ut=function(e){var t=e.state,r=e.type,n=function(e,t){var r=kt(e);return r?t[r]:null}(t.impact,t.dimensions.droppables),i=Boolean(n),o=t.dimensions.droppables[t.critical.droppable.id],a=n||o,c=a.axis.direction,u="vertical"===c&&("MOVE_UP"===r||"MOVE_DOWN"===r)||"horizontal"===c&&("MOVE_LEFT"===r||"MOVE_RIGHT"===r);if(u&&!i)return null;var l="MOVE_DOWN"===r||"MOVE_RIGHT"===r,s=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,p=t.dimensions,f=p.draggables,g=p.droppables;return u?Tt({isMovingForward:l,previousPageBorderBoxCenter:d,draggable:s,destination:a,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Wt({isMovingForward:l,previousPageBorderBoxCenter:d,draggable:s,isOver:a,draggables:f,droppables:g,viewport:t.viewport,afterCritical:t.afterCritical})};function Ht(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function qt(e){var t=ut(e.top,e.bottom),r=ut(e.left,e.right);return function(e){return t(e.y)&&r(e.x)}}function Vt(e){var t=e.pageBorderBox,r=e.draggable,n=e.droppables,i=Qe(n).filter((function(e){if(!e.isEnabled)return!1;var r,n,i=e.subject.active;if(!i)return!1;if(n=i,!((r=t).left<n.right&&r.right>n.left&&r.top<n.bottom&&r.bottom>n.top))return!1;if(qt(i)(t.center))return!0;var o=e.axis,a=i.center[o.crossAxisLine],c=t[o.crossAxisStart],u=t[o.crossAxisEnd],l=ut(i[o.crossAxisStart],i[o.crossAxisEnd]),s=l(c),d=l(u);return!s&&!d||(s?c<a:u>a)}));return i.length?1===i.length?i[0].descriptor.id:function(e){var t=e.pageBorderBox,r=e.draggable,n=e.candidates,i=r.page.borderBox.center,o=n.map((function(e){var r=e.axis,n=Ge(e.axis.line,t.center[r.line],e.page.borderBox.center[r.crossAxisLine]);return{id:e.descriptor.id,distance:_e(i,n)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:r,candidates:i}):null}var zt=function(e,t){return ae(ke(e,t))};function Yt(e){var t=e.displaced,r=e.id;return Boolean(t.visible[r]||t.invisible[r])}var $t=function(e){var t=e.pageOffset,r=e.draggable,n=e.draggables,i=e.droppables,o=e.previousImpact,a=e.viewport,c=e.afterCritical,u=zt(r.page.borderBox,t),l=Vt({pageBorderBox:u,draggable:r,droppables:i});if(!l)return ct;var s=i[l],d=et(s.descriptor.id,n),p=function(e,t){var r=e.frame;return r?zt(t,r.scroll.diff.value):t}(s,u);return function(e){var t=e.draggable,r=e.pageBorderBoxWithDroppableScroll,n=e.previousImpact,i=e.destination,o=e.insideDestination,a=e.afterCritical;if(!i.isCombineEnabled)return null;var c=i.axis,u=Gt(i.axis,t.displaceBy),l=u.value,s=r[c.start],d=r[c.end],p=$e(nt(t,o),(function(e){var t=e.descriptor.id,r=e.page.borderBox,i=r[c.size]/4,o=yt(t,a),u=Yt({displaced:n.displaced,id:t});return o?u?d>r[c.start]+i&&d<r[c.end]-i:s>r[c.start]-l+i&&s<r[c.end]-l-i:u?d>r[c.start]+l+i&&d<r[c.end]+l-i:s>r[c.start]+i&&s<r[c.end]-i}));return p?{displacedBy:u,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:i.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:p,draggable:r,previousImpact:o,destination:s,insideDestination:d,afterCritical:c})||function(e){var t=e.pageBorderBoxWithDroppableScroll,r=e.draggable,n=e.destination,i=e.insideDestination,o=e.last,a=e.viewport,c=e.afterCritical,u=n.axis,l=Gt(n.axis,r.displaceBy),s=l.value,d=t[u.start],p=t[u.end],f=function(e){var t=e.draggable,r=e.closest,n=e.inHomeList;return r?n&&r.descriptor.index>t.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}({draggable:r,closest:$e(nt(r,i),(function(e){var t=e.descriptor.id,r=e.page.borderBox.center[u.line],n=yt(t,c),i=Yt({displaced:o,id:t});return n?i?p<=r:d<r-s:i?p<=r+s:d<r})),inHomeList:it(r,n)});return ht({draggable:r,insideDestination:i,destination:n,viewport:a,last:o,displacedBy:l,index:f})}({pageBorderBoxWithDroppableScroll:p,draggable:r,destination:s,insideDestination:d,last:o.displaced,viewport:a,afterCritical:c})},Xt=function(e,t){var r;return Object(a.a)({},e,((r={})[t.descriptor.id]=t,r))},Jt=function(e){var t=e.previousImpact,r=e.impact,n=e.droppables,i=kt(t),o=kt(r);if(!i)return n;if(i===o)return n;var c=n[i];if(!c.subject.withPlaceholder)return n;var u=function(e){var t=e.subject.withPlaceholder;t||De(!1);var r=e.frame;if(!r){var n=qe({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return Object(a.a)({},e,{subject:n})}var i=t.oldFrameMaxScroll;i||De(!1);var o=_t(r,i),c=qe({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return Object(a.a)({},e,{subject:c,frame:o})}(c);return Xt(n,u)},Kt=function(e){var t=e.state,r=e.clientSelection,n=e.dimensions,i=e.viewport,o=e.impact,c=e.scrollJumpRequest,u=i||t.viewport,l=n||t.dimensions,s=r||t.current.client.selection,d=je(s,t.initial.client.selection),p={offset:d,selection:s,borderBoxCenter:Te(t.initial.client.borderBoxCenter,d)},f={selection:Te(p.selection,u.scroll.current),borderBoxCenter:Te(p.borderBoxCenter,u.scroll.current),offset:Te(p.offset,u.scroll.diff.value)},g={client:p,page:f};if("COLLECTING"===t.phase)return Object(a.a)({phase:"COLLECTING"},t,{dimensions:l,viewport:u,current:g});var b=l.draggables[t.critical.draggable.id],v=o||$t({pageOffset:f.offset,draggable:b,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:u,afterCritical:t.afterCritical}),m=function(e){var t=e.draggable,r=e.draggables,n=e.droppables,i=e.previousImpact,o=e.impact,a=Jt({previousImpact:i,impact:o,droppables:n}),c=kt(o);if(!c)return a;var u=n[c];if(it(t,u))return a;if(u.subject.withPlaceholder)return a;var l=Ft(u,t,r);return Xt(a,l)}({draggable:b,impact:v,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return Object(a.a)({},t,{current:g,dimensions:{draggables:l.draggables,droppables:m},impact:v,viewport:u,scrollJumpRequest:c||null,forceShouldAnimate:!c&&null})};var Qt=function(e){var t=e.impact,r=e.viewport,n=e.draggables,i=e.destination,o=e.forceShouldAnimate,c=t.displaced,u=vt({afterDragging:function(e,t){return e.map((function(e){return t[e]}))}(c.all,n),destination:i,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:o,last:c});return Object(a.a)({},t,{displaced:u})},Zt=function(e){var t=e.impact,r=e.draggable,n=e.droppable,i=e.draggables,o=e.viewport,a=e.afterCritical,c=At({impact:t,draggable:r,draggables:i,droppable:n,afterCritical:a});return Rt({pageBorderBoxCenter:c,draggable:r,viewport:o})},er=function(e){var t=e.state,r=e.dimensions,n=e.viewport;"SNAP"!==t.movementMode&&De(!1);var i=t.impact,o=n||t.viewport,a=r||t.dimensions,c=a.draggables,u=a.droppables,l=c[t.critical.draggable.id],s=kt(i);s||De(!1);var d=u[s],p=Qt({impact:i,viewport:o,destination:d,draggables:c}),f=Zt({impact:p,draggable:l,droppable:d,draggables:c,viewport:o,afterCritical:t.afterCritical});return Kt({impact:p,clientSelection:f,state:t,dimensions:a,viewport:o})},tr=function(e){var t=e.draggable,r=e.home,n=e.draggables,i=e.viewport,o=Gt(r.axis,t.displaceBy),a=et(r.descriptor.id,n),c=a.indexOf(t);-1===c&&De(!1);var u,l=a.slice(c+1),s=l.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===r.descriptor.mode,displacedBy:o,effected:s};return{impact:{displaced:vt({afterDragging:l,destination:r,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(u=t.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:d}},rr=function(e){0},nr=function(e){0},ir=function(e){var t=e.additions,r=e.updatedDroppables,n=e.viewport,i=n.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,o=function(e){var t=e.frame;return t||De(!1),t}(r[t]).scroll.diff.value;return function(e){var t=e.draggable,r=e.offset,n=e.initialWindowScroll,i=pe(t.client,r),o=fe(i,n);return Object(a.a)({},t,{placeholder:Object(a.a)({},t.placeholder,{client:i}),client:i,page:o})}({draggable:e,offset:Te(i,o),initialWindowScroll:n.scroll.initial})}))},or=function(e){return"SNAP"===e.movementMode},ar=function(e,t,r){var n=function(e,t){return{draggables:e.draggables,droppables:Xt(e.droppables,t)}}(e.dimensions,t);return!or(e)||r?Kt({state:e,dimensions:n}):er({state:e,dimensions:n})};function cr(e){return e.isDragging&&"SNAP"===e.movementMode?Object(a.a)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var ur={phase:"IDLE",completed:null,shouldFlush:!1},lr=function(e,t){if(void 0===e&&(e=ur),"FLUSH"===t.type)return Object(a.a)({},ur,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&De(!1);var r=t.payload,n=r.critical,i=r.clientSelection,o=r.viewport,c=r.dimensions,u=r.movementMode,l=c.draggables[n.draggable.id],s=c.droppables[n.droppable.id],d={selection:i,borderBoxCenter:l.client.borderBox.center,offset:Be},p={client:d,page:{selection:Te(d.selection,o.scroll.initial),borderBoxCenter:Te(d.selection,o.scroll.initial),offset:Te(d.selection,o.scroll.diff.value)}},f=Qe(c.droppables).every((function(e){return!e.isFixedOnPage})),g=tr({draggable:l,home:s,draggables:c.draggables,viewport:o}),b=g.impact;return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:u,dimensions:c,initial:p,current:p,isWindowScrollAllowed:f,impact:b,afterCritical:g.afterCritical,onLiftImpact:b,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&De(!1),Object(a.a)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&De(!1),function(e){var t=e.state,r=e.published;rr();var n=r.modified.map((function(e){var r=t.dimensions.droppables[e.droppableId];return Ve(r,e.scroll)})),i=Object(a.a)({},t.dimensions.droppables,{},Je(n)),o=Ke(ir({additions:r.additions,updatedDroppables:i,viewport:t.viewport})),c=Object(a.a)({},t.dimensions.draggables,{},o);r.removals.forEach((function(e){delete c[e]}));var u={droppables:i,draggables:c},l=kt(t.impact),s=l?u.droppables[l]:null,d=u.draggables[t.critical.draggable.id],p=u.droppables[t.critical.droppable.id],f=tr({draggable:d,home:p,draggables:c,viewport:t.viewport}),g=f.impact,b=f.afterCritical,v=s&&s.isCombineEnabled?t.impact:g,m=$t({pageOffset:t.current.page.offset,draggable:u.draggables[t.critical.draggable.id],draggables:u.draggables,droppables:u.droppables,previousImpact:v,viewport:t.viewport,afterCritical:b});nr();var h=Object(a.a)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:m,onLiftImpact:g,dimensions:u,afterCritical:b,forceShouldAnimate:!1});return"COLLECTING"===t.phase?h:Object(a.a)({phase:"DROP_PENDING"},h,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Ht(e)||De(!1);var v=t.payload.client;return Le(v,e.current.client.selection)?e:Kt({state:e,clientSelection:v,impact:or(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return cr(e);if("COLLECTING"===e.phase)return cr(e);Ht(e)||De(!1);var m=t.payload,h=m.id,y=m.newScroll,x=e.dimensions.droppables[h];if(!x)return e;var I=Ve(x,y);return ar(e,I,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Ht(e)||De(!1);var D=t.payload,O=D.id,w=D.isEnabled,E=e.dimensions.droppables[O];E||De(!1),E.isEnabled===w&&De(!1);var C=Object(a.a)({},E,{isEnabled:w});return ar(e,C,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Ht(e)||De(!1);var S=t.payload,A=S.id,P=S.isCombineEnabled,N=e.dimensions.droppables[A];N||De(!1),N.isCombineEnabled===P&&De(!1);var R=Object(a.a)({},N,{isCombineEnabled:P});return ar(e,R,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Ht(e)||De(!1),e.isWindowScrollAllowed||De(!1);var B=t.payload.newScroll;if(Le(e.viewport.scroll.current,B))return cr(e);var T=Pt(e.viewport,B);return or(e)?er({state:e,viewport:T}):Kt({state:e,viewport:T})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Ht(e))return e;var j=t.payload.maxScroll;if(Le(j,e.viewport.scroll.max))return e;var L=Object(a.a)({},e.viewport,{scroll:Object(a.a)({},e.viewport.scroll,{max:j})});return Object(a.a)({phase:"DRAGGING"},e,{viewport:L})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&De(!1);var M=Ut({state:e,type:t.type});return M?Kt({state:e,impact:M.impact,clientSelection:M.clientSelection,scrollJumpRequest:M.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var G=t.payload.reason;return"COLLECTING"!==e.phase&&De(!1),Object(a.a)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:G})}if("DROP_ANIMATE"===t.type){var _=t.payload,F=_.completed,W=_.dropDuration,k=_.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&De(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:W,newHomeClientOffset:k,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},sr=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},dr=function(){return{type:"COLLECTION_STARTING",payload:null}},pr=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},fr=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},gr=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},br=function(e){return{type:"MOVE",payload:e}},vr=function(){return{type:"MOVE_UP",payload:null}},mr=function(){return{type:"MOVE_DOWN",payload:null}},hr=function(){return{type:"MOVE_RIGHT",payload:null}},yr=function(){return{type:"MOVE_LEFT",payload:null}},xr=function(e){return{type:"DROP_COMPLETE",payload:e}},Ir=function(e){return{type:"DROP",payload:e}},Dr=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var Or="cubic-bezier(.2,1,.1,1)",wr={drop:0,combining:.7},Er={drop:.75},Cr=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",Sr={fluid:"opacity "+Cr,snap:"transform "+Cr+", opacity "+Cr,drop:function(e){var t=e+"s "+Or;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+Cr,placeholder:"height "+Cr+", width "+Cr+", margin "+Cr},Ar=function(e){return Le(e,Be)?null:"translate("+e.x+"px, "+e.y+"px)"},Pr=Ar,Nr=function(e,t){var r=Ar(e);return r?t?r+" scale("+Er.drop+")":r:null},Rr=.33,Br=.55,Tr=Br-Rr,jr=function(e){var t=e.getState,r=e.dispatch;return function(e){return function(n){if("DROP"===n.type){var i=t(),o=n.payload.reason;if("COLLECTING"!==i.phase){if("IDLE"!==i.phase){"DROP_PENDING"===i.phase&&i.isWaiting&&De(!1),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&De(!1);var c=i.critical,u=i.dimensions,l=u.draggables[i.critical.draggable.id],s=function(e){var t=e.draggables,r=e.reason,n=e.lastImpact,i=e.home,o=e.viewport,c=e.onLiftImpact;return n.at&&"DROP"===r?"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:Object(a.a)({},n,{displaced:at}),didDropInsideDroppable:!0}:{impact:Qt({draggables:t,impact:c,destination:i,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),d=s.impact,p=s.didDropInsideDroppable,f=p?tt(d):null,g=p?rt(d):null,b={index:c.draggable.index,droppableId:c.droppable.id},v={draggableId:l.descriptor.id,type:l.descriptor.type,source:b,reason:o,mode:i.movementMode,destination:f,combine:g},m=function(e){var t=e.impact,r=e.draggable,n=e.dimensions,i=e.viewport,o=e.afterCritical,a=n.draggables,c=n.droppables,u=kt(t),l=u?c[u]:null,s=c[r.descriptor.droppableId],d=Zt({impact:t,draggable:r,draggables:a,afterCritical:o,droppable:l||s,viewport:i});return je(d,r.client.borderBox.center)}({impact:d,draggable:l,dimensions:u,viewport:i.viewport,afterCritical:i.afterCritical}),h={critical:i.critical,afterCritical:i.afterCritical,result:v,impact:d};if(!Le(i.current.client.offset,m)||Boolean(v.combine)){var y=function(e){var t=e.current,r=e.destination,n=e.reason,i=_e(t,r);if(i<=0)return Rr;if(i>=1500)return Br;var o=Rr+Tr*(i/1500);return Number(("CANCEL"===n?.6*o:o).toFixed(2))}({current:i.current.client.offset,destination:m,reason:o});r(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:m,dropDuration:y,completed:h}))}else r(xr({completed:h}))}}else r(function(e){return{type:"DROP_PENDING",payload:e}}({reason:o}))}else e(n)}}},Lr=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Mr(e){var t=e.onWindowScroll;var r,n=me((function(){t(Lr())})),i=(r=n,{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.target!==window&&e.target!==window.document||r()}}),o=ye;function a(){return o!==ye}return{start:function(){a()&&De(!1),o=xe(window,[i])},stop:function(){a()||De(!1),n.cancel(),o(),o=ye},isActive:a}}var Gr=function(e){var t=Mr({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(r){t.isActive()||"INITIAL_PUBLISH"!==r.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r)&&t.stop(),e(r)}}},_r=function(){var e=[];return{add:function(t){var r=setTimeout((function(){return function(t){var r=Ye(e,(function(e){return e.timerId===t}));-1===r&&De(!1),e.splice(r,1)[0].callback()}(r)})),n={timerId:r,callback:t};e.push(n)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Fr=function(e,t){rr(),t(),nr()},Wr=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},kr=function(e,t,r,n){if(e){var i=function(e){var t=!1,r=!1,n=setTimeout((function(){r=!0})),i=function(i){t||r||(t=!0,e(i),clearTimeout(n))};return i.wasCalled=function(){return t},i}(r);e(t,{announce:i}),i.wasCalled()||r(n(t))}else r(n(t))},Ur=function(e,t){var r=function(e,t){var r=_r(),n=null,i=function(r){n||De(!1),n=null,Fr(0,(function(){return kr(e().onDragEnd,r,t,Re)}))};return{beforeCapture:function(t,r){n&&De(!1),Fr(0,(function(){var n=e().onBeforeCapture;n&&n({draggableId:t,mode:r})}))},beforeStart:function(t,r){n&&De(!1),Fr(0,(function(){var n=e().onBeforeDragStart;n&&n(Wr(t,r))}))},start:function(i,o){n&&De(!1);var a=Wr(i,o);n={mode:o,lastCritical:i,lastLocation:a.source,lastCombine:null},r.add((function(){Fr(0,(function(){return kr(e().onDragStart,a,t,Pe)}))}))},update:function(i,o){var c=tt(o),u=rt(o);n||De(!1);var l=!function(e,t){if(e===t)return!0;var r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,n=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&n}(i,n.lastCritical);l&&(n.lastCritical=i);var s,d,p=(s=n.lastLocation,d=c,!(null==s&&null==d||null!=s&&null!=d&&s.droppableId===d.droppableId&&s.index===d.index));p&&(n.lastLocation=c);var f=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&(e.draggableId===t.draggableId&&e.droppableId===t.droppableId)}(n.lastCombine,u);if(f&&(n.lastCombine=u),l||p||f){var g=Object(a.a)({},Wr(i,n.mode),{combine:u,destination:c});r.add((function(){Fr(0,(function(){return kr(e().onDragUpdate,g,t,Ne)}))}))}},flush:function(){n||De(!1),r.flush()},drop:i,abort:function(){if(n){var e=Object(a.a)({},Wr(n.lastCritical,n.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,t);return function(e){return function(t){return function(n){if("BEFORE_INITIAL_CAPTURE"!==n.type){if("INITIAL_PUBLISH"===n.type){var i=n.payload.critical;return r.beforeStart(i,n.payload.movementMode),t(n),void r.start(i,n.payload.movementMode)}if("DROP_COMPLETE"===n.type){var o=n.payload.completed.result;return r.flush(),t(n),void r.drop(o)}if(t(n),"FLUSH"!==n.type){var a=e.getState();"DRAGGING"===a.phase&&r.update(a.critical,a.impact)}else r.abort()}else r.beforeCapture(n.payload.draggableId,n.payload.movementMode)}}}},Hr=function(e){return function(t){return function(r){if("DROP_ANIMATION_FINISHED"===r.type){var n=e.getState();"DROP_ANIMATING"!==n.phase&&De(!1),e.dispatch(xr({completed:n.completed}))}else t(r)}}},qr=function(e){var t=null,r=null;return function(n){return function(i){if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||(r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)),n(i),"DROP_ANIMATE"===i.type){var o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};r=requestAnimationFrame((function(){r=null,t=xe(window,[o])}))}}}},Vr=function(e){return function(t){return function(r){if(t(r),"PUBLISH_WHILE_DRAGGING"===r.type){var n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(Ir({reason:n.reason})))}}}},zr=m,Yr=function(e){var t,r=e.dimensionMarshal,n=e.focusMarshal,i=e.styleMarshal,o=e.getResponders,a=e.announce,c=e.autoScroller;return d(lr,zr(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return v({},r,{dispatch:n=m.apply(void 0,o)(r.dispatch)})}}}((t=i,function(){return function(e){return function(r){"INITIAL_PUBLISH"===r.type&&t.dragging(),"DROP_ANIMATE"===r.type&&t.dropping(r.payload.completed.result.reason),"FLUSH"!==r.type&&"DROP_COMPLETE"!==r.type||t.resting(),e(r)}}}),function(e){return function(){return function(t){return function(r){"DROP_COMPLETE"!==r.type&&"FLUSH"!==r.type&&"DROP_ANIMATE"!==r.type||e.stopPublishing(),t(r)}}}}(r),function(e){return function(t){var r=t.getState,n=t.dispatch;return function(t){return function(i){if("LIFT"===i.type){var o=i.payload,a=o.id,c=o.clientSelection,u=o.movementMode,l=r();"DROP_ANIMATING"===l.phase&&n(xr({completed:l.completed})),"IDLE"!==r().phase&&De(!1),n({type:"FLUSH",payload:null}),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:u}});var s={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===u}},d=e.startPublishing(s),p=d.critical,f=d.dimensions,g=d.viewport;n(function(e){return{type:"INITIAL_PUBLISH",payload:e}}({critical:p,dimensions:f,clientSelection:c,movementMode:u,viewport:g}))}else t(i)}}}}(r),jr,Hr,qr,Vr,function(e){return function(t){return function(r){return function(n){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n))return e.stop(),void r(n);if("INITIAL_PUBLISH"===n.type){r(n);var i=t.getState();return"DRAGGING"!==i.phase&&De(!1),void e.start(i)}r(n),e.scroll(t.getState())}}}}(c),Gr,function(e){var t=!1;return function(){return function(r){return function(n){if("INITIAL_PUBLISH"===n.type)return t=!0,e.tryRecordFocus(n.payload.critical.draggable.id),r(n),void e.tryRestoreFocusRecorded();if(r(n),t){if("FLUSH"===n.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===n.type){t=!1;var i=n.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(n),Ur(o,a))))};var $r=function(e){var t=e.scrollHeight,r=e.scrollWidth,n=e.height,i=e.width,o=je({x:r,y:t},{x:i,y:n});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},Xr=function(){var e=document.documentElement;return e||De(!1),e},Jr=function(){var e=Xr();return $r({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Kr=function(e){var t=e.critical,r=e.scrollOptions,n=e.registry;rr();var i=function(){var e=Lr(),t=Jr(),r=e.y,n=e.x,i=Xr(),o=i.clientWidth,a=i.clientHeight;return{frame:ae({top:r,left:n,right:n+o,bottom:r+a}),scroll:{initial:e,current:e,max:t,diff:{value:Be,displacement:Be}}}}(),o=i.scroll.current,a=t.droppable,c=n.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(o,r)})),u=n.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(o)})),l={draggables:Ke(u),droppables:Je(c)};return nr(),{dimensions:l,critical:t,viewport:i}};function Qr(e,t,r){return r.descriptor.id!==t.id&&(r.descriptor.type===t.type&&"virtual"===e.droppable.getById(r.descriptor.droppableId).descriptor.mode)}var Zr=function(e,t){var r=null,n=function(e){var t=e.registry,r=e.callbacks,n={additions:{},removals:{},modified:{}},i=null,o=function(){i||(r.collectionStarting(),i=requestAnimationFrame((function(){i=null,rr();var e=n,o=e.additions,a=e.removals,c=e.modified,u=Object.keys(o).map((function(e){return t.draggable.getById(e).getDimension(Be)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),l=Object.keys(c).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),s={additions:u,removals:Object.keys(a),modified:l};n={additions:{},removals:{},modified:{}},nr(),r.publish(s)})))};return{add:function(e){var t=e.descriptor.id;n.additions[t]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[t]&&delete n.removals[t],o()},remove:function(e){var t=e.descriptor;n.removals[t.id]=!0,n.modified[t.droppableId]=!0,n.additions[t.id]&&delete n.additions[t.id],o()},stop:function(){i&&(cancelAnimationFrame(i),i=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(t){r||De(!1);var i=r.critical.draggable;"ADDITION"===t.type&&Qr(e,i,t.value)&&n.add(t.value),"REMOVAL"===t.type&&Qr(e,i,t.value)&&n.remove(t.value)};return{updateDroppableIsEnabled:function(n,i){e.droppable.exists(n)||De(!1),r&&t.updateDroppableIsEnabled({id:n,isEnabled:i})},updateDroppableIsCombineEnabled:function(n,i){r&&(e.droppable.exists(n)||De(!1),t.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:i}))},scrollDroppable:function(t,n){r&&e.droppable.getById(t).callbacks.scroll(n)},updateDroppableScroll:function(n,i){r&&(e.droppable.exists(n)||De(!1),t.updateDroppableScroll({id:n,newScroll:i}))},startPublishing:function(t){r&&De(!1);var n=e.draggable.getById(t.draggableId),o=e.droppable.getById(n.descriptor.droppableId),a={draggable:n.descriptor,droppable:o.descriptor},c=e.subscribe(i);return r={critical:a,unsubscribe:c},Kr({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(r){n.stop();var t=r.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),r.unsubscribe(),r=null}}}},en=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},tn=function(e){window.scrollBy(e.x,e.y)},rn=Object(ve.a)((function(e){return Qe(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),nn=function(e){var t=e.center,r=e.destination,n=e.droppables;if(r){var i=n[r];return i.frame?i:null}return function(e,t){return $e(rn(t),(function(t){return t.frame||De(!1),qt(t.frame.pageMarginBox)(e)}))}(t,n)},on=.25,an=.05,cn=28,un=function(e){return Math.pow(e,2)},ln={stopDampeningAt:1200,accelerateAt:360},sn=function(e){var t=e.startOfRange,r=e.endOfRange,n=e.current,i=r-t;return 0===i?0:(n-t)/i},dn=ln.accelerateAt,pn=ln.stopDampeningAt,fn=function(e){var t=e.distanceToEdge,r=e.thresholds,n=e.dragStartTime,i=e.shouldUseTimeDampening,o=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return cn;if(e===t.startScrollingFrom)return 1;var r=sn({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),n=cn*un(1-r);return Math.ceil(n)}(t,r);return 0===o?0:i?Math.max(function(e,t){var r=t,n=pn,i=Date.now()-r;if(i>=pn)return e;if(i<dn)return 1;var o=sn({startOfRange:dn,endOfRange:n,current:i}),a=e*un(o);return Math.ceil(a)}(o,n),1):o},gn=function(e){var t=e.container,r=e.distanceToEdges,n=e.dragStartTime,i=e.axis,o=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*on,maxScrollValueAt:e[t.size]*an}}(t,i);return r[i.end]<r[i.start]?fn({distanceToEdge:r[i.end],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o}):-1*fn({distanceToEdge:r[i.start],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o})},bn=We((function(e){return 0===e?0:e})),vn=function(e){var t=e.dragStartTime,r=e.container,n=e.subject,i=e.center,o=e.shouldUseTimeDampening,a={top:i.y-r.top,right:r.right-i.x,bottom:r.bottom-i.y,left:i.x-r.left},c=gn({container:r,distanceToEdges:a,dragStartTime:t,axis:dt,shouldUseTimeDampening:o}),u=gn({container:r,distanceToEdges:a,dragStartTime:t,axis:pt,shouldUseTimeDampening:o}),l=bn({x:u,y:c});if(Le(l,Be))return null;var s=function(e){var t=e.container,r=e.subject,n=e.proposedScroll,i=r.height>t.height,o=r.width>t.width;return o||i?o&&i?null:{x:o?0:n.x,y:i?0:n.y}:n}({container:r,subject:n,proposedScroll:l});return s?Le(s,Be)?null:s:null},mn=We((function(e){return 0===e?0:e>0?1:-1})),hn=function(){var e=function(e,t){return e<0?e:e>t?e-t:0};return function(t){var r=t.current,n=t.max,i=t.change,o=Te(r,i),a={x:e(o.x,n.x),y:e(o.y,n.y)};return Le(a,Be)?null:a}}(),yn=function(e){var t=e.max,r=e.current,n=e.change,i={x:Math.max(r.x,t.x),y:Math.max(r.y,t.y)},o=mn(n),a=hn({max:i,current:r,change:o});return!a||(0!==o.x&&0===a.x||0!==o.y&&0===a.y)},xn=function(e,t){return yn({current:e.scroll.current,max:e.scroll.max,change:t})},In=function(e,t){var r=e.frame;return!!r&&yn({current:r.scroll.current,max:r.scroll.max,change:t})},Dn=function(e){var t=e.state,r=e.dragStartTime,n=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,a=t.current.page.borderBoxCenter,c=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var u=function(e){var t=e.viewport,r=e.subject,n=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=vn({dragStartTime:i,container:t.frame,subject:r,center:n,shouldUseTimeDampening:o});return a&&xn(t,a)?a:null}({dragStartTime:r,viewport:t.viewport,subject:c,center:a,shouldUseTimeDampening:n});if(u)return void i(u)}var l=nn({center:a,destination:kt(t.impact),droppables:t.dimensions.droppables});if(l){var s=function(e){var t=e.droppable,r=e.subject,n=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var c=vn({dragStartTime:i,container:a.pageMarginBox,subject:r,center:n,shouldUseTimeDampening:o});return c&&In(t,c)?c:null}({dragStartTime:r,droppable:l,subject:c,center:a,shouldUseTimeDampening:n});s&&o(l.descriptor.id,s)}},On=function(e){var t=e.move,r=e.scrollDroppable,n=e.scrollWindow,i=function(e,t){if(!In(e,t))return t;var n=function(e,t){var r=e.frame;return r&&In(e,t)?hn({current:r.scroll.current,max:r.scroll.max,change:t}):null}(e,t);if(!n)return r(e.descriptor.id,t),null;var i=je(t,n);return r(e.descriptor.id,i),je(t,i)},o=function(e,t,r){if(!e)return r;if(!xn(t,r))return r;var i=function(e,t){if(!xn(e,t))return null;var r=e.scroll.max,n=e.scroll.current;return hn({current:n,max:r,change:t})}(t,r);if(!i)return n(r),null;var o=je(r,i);return n(o),je(r,o)};return function(e){var r=e.scrollJumpRequest;if(r){var n=kt(e.impact);n||De(!1);var a=i(e.dimensions.droppables[n],r);if(a){var c=e.viewport,u=o(e.isWindowScrollAllowed,c,a);u&&function(e,r){var n=Te(e.current.client.selection,r);t({client:n})}(e,u)}}}},wn=function(e){var t=e.scrollDroppable,r=e.scrollWindow,n=e.move,i=function(e){var t=e.scrollWindow,r=e.scrollDroppable,n=me(t),i=me(r),o=null,a=function(e){o||De(!1);var t=o,r=t.shouldUseTimeDampening,a=t.dragStartTime;Dn({state:e,scrollWindow:n,scrollDroppable:i,dragStartTime:a,shouldUseTimeDampening:r})};return{start:function(e){rr(),o&&De(!1);var t=Date.now(),r=!1,n=function(){r=!0};Dn({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:n,scrollDroppable:n}),o={dragStartTime:t,shouldUseTimeDampening:r},nr(),r&&a(e)},stop:function(){o&&(n.cancel(),i.cancel(),o=null)},scroll:a}}({scrollWindow:r,scrollDroppable:t}),o=On({move:n,scrollWindow:r,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&o(e):i.scroll(e))},start:i.start,stop:i.stop}},En=function(){var e="data-rbd-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),Cn=function(){var e="data-rbd-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Sn=function(){var e="data-rbd-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),An={contextId:"data-rbd-scroll-container-context-id"},Pn=function(e,t){return e.map((function(e){var r=e.styles[t];return r?e.selector+" { "+r+" }":""})).join(" ")},Nn="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?n.useLayoutEffect:n.useEffect,Rn=function(){var e=document.querySelector("head");return e||De(!1),e},Bn=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function Tn(e,t){var r=ne((function(){return function(e){var t,r=(t=e,function(e){return"["+e+'="'+t+'"]'}),n=function(){var e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:r(En.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}}(),i=[function(){var e="\n transition: "+Sr.outOfTheWay+";\n ";return{selector:r(Cn.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),n,{selector:r(Sn.contextId),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:Pn(i,"always"),resting:Pn(i,"resting"),dragging:Pn(i,"dragging"),dropAnimating:Pn(i,"dropAnimating"),userCancel:Pn(i,"userCancel")}}(e)}),[e]),i=Object(n.useRef)(null),o=Object(n.useRef)(null),a=ie(Object(ve.a)((function(e){var t=o.current;t||De(!1),t.textContent=e})),[]),c=ie((function(e){var t=i.current;t||De(!1),t.textContent=e}),[]);Nn((function(){(i.current||o.current)&&De(!1);var n=Bn(t),u=Bn(t);return i.current=n,o.current=u,n.setAttribute("data-rbd-always",e),u.setAttribute("data-rbd-dynamic",e),Rn().appendChild(n),Rn().appendChild(u),c(r.always),a(r.resting),function(){var e=function(e){var t=e.current;t||De(!1),Rn().removeChild(t),e.current=null};e(i),e(o)}}),[t,c,a,r.always,r.resting,e]);var u=ie((function(){return a(r.dragging)}),[a,r.dragging]),l=ie((function(e){a("DROP"!==e?r.userCancel:r.dropAnimating)}),[a,r.dropAnimating,r.userCancel]),s=ie((function(){o.current&&a(r.resting)}),[a,r.resting]);return ne((function(){return{dragging:u,dropping:l,resting:s}}),[u,l,s])}var jn=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Ln(e){return e instanceof jn(e).HTMLElement}function Mn(e,t){var r="["+En.contextId+'="'+e+'"]',n=Xe(document.querySelectorAll(r));if(!n.length)return null;var i=$e(n,(function(e){return e.getAttribute(En.draggableId)===t}));return i&&Ln(i)?i:null}function Gn(){var e={draggables:{},droppables:{}},t=[];function r(e){t.length&&t.forEach((function(t){return t(e)}))}function n(t){return e.draggables[t]||null}function i(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,r({type:"ADDITION",value:t})},update:function(t,r){var n=e.draggables[r.descriptor.id];n&&n.uniqueId===t.uniqueId&&(delete e.draggables[r.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var i=t.descriptor.id,o=n(i);o&&t.uniqueId===o.uniqueId&&(delete e.draggables[i],r({type:"REMOVAL",value:t}))},getById:function(e){var t=n(e);return t||De(!1),t},findById:n,exists:function(e){return Boolean(n(e))},getAllByType:function(t){return ze(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var r=i(t.descriptor.id);r&&t.uniqueId===r.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=i(e);return t||De(!1),t},findById:i,exists:function(e){return Boolean(i(e))},getAllByType:function(t){return ze(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var r=t.indexOf(e);-1!==r&&t.splice(r,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var _n=i.a.createContext(null),Fn=function(){var e=document.body;return e||De(!1),e},Wn={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var kn=0,Un={separator:"::"};function Hn(e,t){return void 0===t&&(t=Un),ne((function(){return""+e+t.separator+kn++}),[t.separator,e])}var qn=i.a.createContext(null);function Vn(e){0}function zn(e,t){Vn()}function Yn(){zn()}function $n(e){var t=Object(n.useRef)(e);return Object(n.useEffect)((function(){t.current=e})),t}var Xn,Jn=((Xn={})[13]=!0,Xn[9]=!0,Xn),Kn=function(e){Jn[e.keyCode]&&e.preventDefault()},Qn=function(){var e="visibilitychange";return"undefined"===typeof document?e:$e([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var Zn,ei={type:"IDLE"};function ti(e){var t=e.cancel,r=e.completed,n=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,r=e.clientX,o=e.clientY;if(0===t){var a={x:r,y:o},c=n();if("DRAGGING"===c.type)return e.preventDefault(),void c.actions.move(a);"PENDING"!==c.type&&De(!1);var u=c.point;if(l=u,s=a,Math.abs(s.x-l.x)>=5||Math.abs(s.y-l.y)>=5){var l,s;e.preventDefault();var d=c.actions.fluidLift(a);i({type:"DRAGGING",actions:d})}}}},{eventName:"mouseup",fn:function(e){var i=n();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===n().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==n().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Kn(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===n().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var r=n();"IDLE"===r.type&&De(!1),r.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Qn,fn:t}]}function ri(){}var ni=((Zn={})[34]=!0,Zn[33]=!0,Zn[36]=!0,Zn[35]=!0,Zn);function ii(e,t){function r(){t(),e.cancel()}return[{eventName:"keydown",fn:function(n){return 27===n.keyCode?(n.preventDefault(),void r()):32===n.keyCode?(n.preventDefault(),t(),void e.drop()):40===n.keyCode?(n.preventDefault(),void e.moveDown()):38===n.keyCode?(n.preventDefault(),void e.moveUp()):39===n.keyCode?(n.preventDefault(),void e.moveRight()):37===n.keyCode?(n.preventDefault(),void e.moveLeft()):void(ni[n.keyCode]?n.preventDefault():Kn(n))}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:Qn,fn:r}]}var oi={type:"IDLE"};var ai={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function ci(e,t){var r=t.target;return!!Ln(r)&&function e(t,r){if(null==r)return!1;if(Boolean(ai[r.tagName.toLowerCase()]))return!0;var n=r.getAttribute("contenteditable");return"true"===n||""===n||r!==t&&e(t,r.parentElement)}(e,r)}var ui=function(e){return ae(e.getBoundingClientRect()).center};var li="undefined"===typeof document?"matches":$e(["matches","msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||"matches";function si(e,t){return e.closest?e.closest(t):function e(t,r){return null==t?null:t[li](r)?t:e(t.parentElement,r)}(e,t)}function di(e,t){var r,n=t.target;if(!((r=n)instanceof jn(r).Element))return null;var i=si(n,function(e){return"["+En.contextId+'="'+e+'"]'}(e));return i&&Ln(i)?i:null}function pi(e){e.preventDefault()}function fi(e){var t=e.expected,r=e.phase,n=e.isLockActive;e.shouldWarn;return!!n()&&t===r}function gi(e){var t=e.lockAPI,r=e.store,n=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var o=n.draggable.findById(i);return!!o&&(!!o.options.isEnabled&&!!en(r.getState(),i))}function bi(e){var t=e.lockAPI,r=e.contextId,n=e.store,i=e.registry,o=e.draggableId,c=e.forceSensorStop,u=e.sourceEvent;if(!gi({lockAPI:t,store:n,registry:i,draggableId:o}))return null;var l=i.draggable.getById(o),s=function(e,t){var r="["+Cn.contextId+'="'+e+'"]',n=$e(Xe(document.querySelectorAll(r)),(function(e){return e.getAttribute(Cn.id)===t}));return n&&Ln(n)?n:null}(r,l.descriptor.id);if(!s)return null;if(u&&!l.options.canDragInteractiveElements&&ci(s,u))return null;var d=t.claim(c||ye),p="PRE_DRAG";function f(){return l.options.shouldRespectForcePress}function g(){return t.isActive(d)}var b=function(e,t){fi({expected:e,phase:p,isLockActive:g,shouldWarn:!0})&&n.dispatch(t())}.bind(null,"DRAGGING");function v(e){function r(){t.release(),p="COMPLETED"}function i(t,i){if(void 0===i&&(i={shouldBlockNextClick:!1}),e.cleanup(),i.shouldBlockNextClick){var o=xe(window,[{eventName:"click",fn:pi,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(o)}r(),n.dispatch(Ir({reason:t}))}return"PRE_DRAG"!==p&&(r(),"PRE_DRAG"!==p&&De(!1)),n.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),p="DRAGGING",Object(a.a)({isActive:function(){return fi({expected:"DRAGGING",phase:p,isLockActive:g,shouldWarn:!1})},shouldRespectForcePress:f,drop:function(e){return i("DROP",e)},cancel:function(e){return i("CANCEL",e)}},e.actions)}return{isActive:function(){return fi({expected:"PRE_DRAG",phase:p,isLockActive:g,shouldWarn:!1})},shouldRespectForcePress:f,fluidLift:function(e){var t=me((function(e){b((function(){return br({client:e})}))})),r=v({liftActionArgs:{id:o,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return Object(a.a)({},r,{move:t})},snapLift:function(){var e={moveUp:function(){return b(vr)},moveRight:function(){return b(hr)},moveDown:function(){return b(mr)},moveLeft:function(){return b(yr)}};return v({liftActionArgs:{id:o,clientSelection:ui(s),movementMode:"SNAP"},cleanup:ye,actions:e})},abort:function(){fi({expected:"PRE_DRAG",phase:p,isLockActive:g,shouldWarn:!0})&&t.release()}}}var vi=[function(e){var t=Object(n.useRef)(ei),r=Object(n.useRef)(ye),i=ne((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var n=e.findClosestDraggableId(t);if(n){var i=e.tryGetLock(n,c,{sourceEvent:t});if(i){t.preventDefault();var o={x:t.clientX,y:t.clientY};r.current(),s(i,o)}}}}}}),[e]),o=ne((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var n=e.findOptionsForDraggable(r);n&&(n.shouldRespectForcePress||e.canGetLock(r)&&t.preventDefault())}}}}}),[e]),a=ie((function(){r.current=xe(window,[o,i],{passive:!1,capture:!0})}),[o,i]),c=ie((function(){"IDLE"!==t.current.type&&(t.current=ei,r.current(),a())}),[a]),u=ie((function(){var e=t.current;c(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[c]),l=ie((function(){var e=ti({cancel:u,completed:c,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});r.current=xe(window,e,{capture:!0,passive:!1})}),[u,c]),s=ie((function(e,r){"IDLE"!==t.current.type&&De(!1),t.current={type:"PENDING",point:r,actions:e},l()}),[l]);Nn((function(){return a(),function(){r.current()}}),[a])},function(e){var t=Object(n.useRef)(ri),r=ne((function(){return{eventName:"keydown",fn:function(r){if(!r.defaultPrevented&&32===r.keyCode){var n=e.findClosestDraggableId(r);if(n){var o=e.tryGetLock(n,u,{sourceEvent:r});if(o){r.preventDefault();var a=!0,c=o.snapLift();t.current(),t.current=xe(window,ii(c,u),{capture:!0,passive:!1})}}}function u(){a||De(!1),a=!1,t.current(),i()}}}}),[e]),i=ie((function(){t.current=xe(window,[r],{passive:!1,capture:!0})}),[r]);Nn((function(){return i(),function(){t.current()}}),[i])},function(e){var t=Object(n.useRef)(oi),r=Object(n.useRef)(ye),i=ie((function(){return t.current}),[]),o=ie((function(e){t.current=e}),[]),a=ne((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var i=e.tryGetLock(n,u,{sourceEvent:t});if(i){var o=t.touches[0],a={x:o.clientX,y:o.clientY};r.current(),p(i,a)}}}}}}),[e]),c=ie((function(){r.current=xe(window,[a],{capture:!0,passive:!1})}),[a]),u=ie((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(oi),r.current(),c())}),[c,o]),l=ie((function(){var e=t.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[u]),s=ie((function(){var e={capture:!0,passive:!1},t={cancel:l,completed:u,getPhase:i},n=xe(window,function(e){var t=e.cancel,r=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var r=n();if("DRAGGING"===r.type){r.hasMoved=!0;var i=e.touches[0],o={x:i.clientX,y:i.clientY};e.preventDefault(),r.actions.move(o)}else t()}},{eventName:"touchend",fn:function(e){var i=n();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===n().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var r=n();"IDLE"===r.type&&De(!1);var i=e.touches[0];if(i&&i.force>=.15){var o=r.actions.shouldRespectForcePress();if("PENDING"!==r.type)return o?r.hasMoved?void e.preventDefault():void t():void e.preventDefault();o&&t()}}},{eventName:Qn,fn:t}]}(t),e),o=xe(window,function(e){var t=e.cancel,r=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===r().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Qn,fn:t}]}(t),e);r.current=function(){n(),o()}}),[l,i,u]),d=ie((function(){var e=i();"PENDING"!==e.type&&De(!1);var t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})}),[i,o]),p=ie((function(e,t){"IDLE"!==i().type&&De(!1);var r=setTimeout(d,120);o({type:"PENDING",point:t,actions:e,longPressTimerId:r}),s()}),[s,i,o,d]);Nn((function(){return c(),function(){r.current();var e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(oi))}}),[i,c,o]),Nn((function(){return xe(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function mi(e){var t=e.contextId,r=e.store,i=e.registry,o=e.customSensors,a=e.enableDefaultSensors,c=[].concat(a?vi:[],o||[]),u=Object(n.useState)((function(){return function(){var e=null;function t(){e||De(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&De(!1);var r={abandon:t};return e=r,r},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],l=ie((function(e,t){e.isDragging&&!t.isDragging&&u.tryAbandon()}),[u]);Nn((function(){var e=r.getState();return r.subscribe((function(){var t=r.getState();l(e,t),e=t}))}),[u,r,l]),Nn((function(){return u.tryAbandon}),[u.tryAbandon]);var s=ie((function(e){return gi({lockAPI:u,registry:i,store:r,draggableId:e})}),[u,i,r]),d=ie((function(e,n,o){return bi({lockAPI:u,registry:i,contextId:t,store:r,draggableId:e,forceSensorStop:n,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null})}),[t,u,i,r]),p=ie((function(e){return function(e,t){var r=di(e,t);return r?r.getAttribute(En.draggableId):null}(t,e)}),[t]),f=ie((function(e){var t=i.draggable.findById(e);return t?t.options:null}),[i.draggable]),g=ie((function(){u.isClaimed()&&(u.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch({type:"FLUSH",payload:null}))}),[u,r]),b=ie(u.isClaimed,[u]),v=ne((function(){return{canGetLock:s,tryGetLock:d,findClosestDraggableId:p,findOptionsForDraggable:f,tryReleaseLock:g,isLockClaimed:b}}),[s,d,p,f,g,b]);Vn();for(var m=0;m<c.length;m++)c[m](v)}function hi(e){return e.current||De(!1),e.current}function yi(e){var t=e.contextId,r=e.setCallbacks,o=e.sensors,c=e.nonce,u=e.dragHandleUsageInstructions,l=Object(n.useRef)(null);Yn();var s=$n(e),d=ie((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(s.current)}),[s]),p=function(e){var t=ne((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),r=Object(n.useRef)(null);return Object(n.useEffect)((function(){var e=document.createElement("div");return r.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),Object(a.a)(e.style,Wn),Fn().appendChild(e),function(){setTimeout((function(){var t=Fn();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[t]),ie((function(e){var t=r.current;t&&(t.textContent=e)}),[])}(t),g=function(e){var t=e.contextId,r=e.text,i=Hn("hidden-text",{separator:"-"}),o=ne((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:i}).contextId+"-"+e.uniqueId;var e}),[i,t]);return Object(n.useEffect)((function(){var e=document.createElement("div");return e.id=o,e.textContent=r,e.style.display="none",Fn().appendChild(e),function(){var t=Fn();t.contains(e)&&t.removeChild(e)}}),[o,r]),o}({contextId:t,text:u}),b=Tn(t,c),v=ie((function(e){hi(l).dispatch(e)}),[]),m=ne((function(){return f({publishWhileDragging:sr,updateDroppableScroll:pr,updateDroppableIsEnabled:fr,updateDroppableIsCombineEnabled:gr,collectionStarting:dr},v)}),[v]),h=function(){var e=ne(Gn,[]);return Object(n.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),y=ne((function(){return Zr(h,m)}),[h,m]),x=ne((function(){return wn(Object(a.a)({scrollWindow:tn,scrollDroppable:y.scrollDroppable},f({move:br},v)))}),[y.scrollDroppable,v]),I=function(e){var t=Object(n.useRef)({}),r=Object(n.useRef)(null),i=Object(n.useRef)(null),o=Object(n.useRef)(!1),a=ie((function(e,r){var n={id:e,focus:r};return t.current[e]=n,function(){var r=t.current;r[e]!==n&&delete r[e]}}),[]),c=ie((function(t){var r=Mn(e,t);r&&r!==document.activeElement&&r.focus()}),[e]),u=ie((function(e,t){r.current===e&&(r.current=t)}),[]),l=ie((function(){i.current||o.current&&(i.current=requestAnimationFrame((function(){i.current=null;var e=r.current;e&&c(e)})))}),[c]),s=ie((function(e){r.current=null;var t=document.activeElement;t&&t.getAttribute(En.draggableId)===e&&(r.current=e)}),[]);return Nn((function(){return o.current=!0,function(){o.current=!1;var e=i.current;e&&cancelAnimationFrame(e)}}),[]),ne((function(){return{register:a,tryRecordFocus:s,tryRestoreFocusRecorded:l,tryShiftRecord:u}}),[a,s,l,u])}(t),D=ne((function(){return Yr({announce:p,autoScroller:x,dimensionMarshal:y,focusMarshal:I,getResponders:d,styleMarshal:b})}),[p,x,y,I,d,b]);l.current=D;var w=ie((function(){var e=hi(l);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),E=ie((function(){var e=hi(l).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);r(ne((function(){return{isDragging:E,tryAbort:w}}),[E,w]));var C=ie((function(e){return en(hi(l).getState(),e)}),[]),S=ie((function(){return Ht(hi(l).getState())}),[]),A=ne((function(){return{marshal:y,focus:I,contextId:t,canLift:C,isMovementAllowed:S,dragHandleUsageInstructionsId:g,registry:h}}),[t,y,g,I,C,S,h]);return mi({contextId:t,store:D,registry:h,customSensors:o,enableDefaultSensors:!1!==e.enableDefaultSensors}),Object(n.useEffect)((function(){return w}),[w]),i.a.createElement(qn.Provider,{value:A},i.a.createElement(O,{context:_n,store:D},e.children))}var xi=0;function Ii(){xi=0,kn=0}function Di(e){var t=ne((function(){return""+xi++}),[]),r=e.dragHandleUsageInstructions||Ae;return i.a.createElement(Oe,null,(function(n){return i.a.createElement(yi,{nonce:e.nonce,contextId:t,setCallbacks:n,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var Oi=function(e){return function(t){return e===t}},wi=Oi("scroll"),Ei=Oi("auto"),Ci=(Oi("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),Si=function(e){var t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return Ci(r,wi)||Ci(r,Ei)},Ai=function e(t){return null==t||t===document.body||t===document.documentElement?null:Si(t)?t:e(t.parentElement)},Pi=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Ni=function(e){return{closestScrollable:Ai(e),isFixedOnPage:function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))}(e)}},Ri=function(e){var t=e.ref,r=e.descriptor,n=e.env,i=e.windowScroll,o=e.direction,a=e.isDropDisabled,c=e.isCombineEnabled,u=e.shouldClipSubject,l=n.closestScrollable,s=function(e,t){var r=be(e);if(!t)return r;if(e!==t)return r;var n=r.paddingBox.top-t.scrollTop,i=r.paddingBox.left-t.scrollLeft,o=n+t.scrollHeight,a=i+t.scrollWidth,c=ce({top:n,right:a,bottom:o,left:i},r.border);return se({borderBox:c,margin:r.margin,border:r.border,padding:r.padding})}(t,l),d=fe(s,i),p=function(){if(!l)return null;var e=be(l),t={scrollHeight:l.scrollHeight,scrollWidth:l.scrollWidth};return{client:e,page:fe(e,i),scroll:Pi(l),scrollSize:t,shouldClipSubject:u}}();return function(e){var t=e.descriptor,r=e.isEnabled,n=e.isCombineEnabled,i=e.isFixedOnPage,o=e.direction,a=e.client,c=e.page,u=e.closest,l=function(){if(!u)return null;var e=u.scrollSize,t=u.client,r=$r({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:u.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:u.shouldClipSubject,scroll:{initial:u.scroll,current:u.scroll,max:r,diff:{value:Be,displacement:Be}}}}(),s="vertical"===o?dt:pt;return{descriptor:t,isCombineEnabled:n,isFixedOnPage:i,axis:s,isEnabled:r,client:a,page:c,frame:l,subject:qe({page:c,withPlaceholder:null,axis:s,frame:l})}}({descriptor:r,isEnabled:!a,isCombineEnabled:c,isFixedOnPage:n.isFixedOnPage,direction:o,client:s,page:d,closest:p})},Bi={passive:!1},Ti={passive:!0},ji=function(e){return e.shouldPublishImmediately?Bi:Ti};function Li(e){var t=Object(n.useContext)(e);return t||De(!1),t}var Mi=function(e){return e&&e.env.closestScrollable||null};function Gi(){}var _i={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Fi=function(e){var t=e.isAnimatingOpenOnMount,r=e.placeholder,n=e.animate,i=function(e){var t=e.isAnimatingOpenOnMount,r=e.placeholder,n=e.animate;return t||"close"===n?_i:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}}({isAnimatingOpenOnMount:t,placeholder:r,animate:n});return{display:r.display,boxSizing:"border-box",width:i.width,height:i.height,marginTop:i.margin.top,marginRight:i.margin.right,marginBottom:i.margin.bottom,marginLeft:i.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==n?Sr.placeholder:null}};var Wi=i.a.memo((function(e){var t=Object(n.useRef)(null),r=ie((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),o=e.animate,a=e.onTransitionEnd,c=e.onClose,u=e.contextId,l=Object(n.useState)("open"===e.animate),s=l[0],d=l[1];Object(n.useEffect)((function(){return s?"open"!==o?(r(),d(!1),Gi):t.current?Gi:(t.current=setTimeout((function(){t.current=null,d(!1)})),r):Gi}),[o,s,r]);var p=ie((function(e){"height"===e.propertyName&&(a(),"close"===o&&c())}),[o,c,a]),f=Fi({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return i.a.createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":u,onTransitionEnd:p,ref:e.innerRef})})),ki=i.a.createContext(null);var Ui=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return Object(o.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.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)},t}(i.a.PureComponent),Hi=5e3,qi=4500,Vi=function(e,t){return t?Sr.drop(t.duration):e?Sr.snap:Sr.fluid},zi=function(e,t){return e?t?wr.drop:wr.combining:null};function Yi(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,r=e.offset,n=e.combineWith,i=e.dropping,o=Boolean(n),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),c=Boolean(i),u=c?Nr(r,o):Pr(r);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Vi(a,i),transform:u,opacity:zi(o,c),zIndex:c?qi:Hi,pointerEvents:"none"}}(e):{transform:Pr((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function $i(e){var t=Hn("draggable"),r=e.descriptor,i=e.registry,o=e.getDraggableRef,a=e.canDragInteractiveElements,c=e.shouldRespectForcePress,u=e.isEnabled,l=ne((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:c,isEnabled:u}}),[a,u,c]),s=ie((function(e){var t=o();return t||De(!1),function(e,t,r){void 0===r&&(r=Be);var n=window.getComputedStyle(t),i=t.getBoundingClientRect(),o=ge(i,n),a=fe(o,r);return{descriptor:e,placeholder:{client:o,tagName:t.tagName.toLowerCase(),display:n.display},displaceBy:{x:o.marginBox.width,y:o.marginBox.height},client:o,page:a}}(r,t,e)}),[r,o]),d=ne((function(){return{uniqueId:t,descriptor:r,options:l,getDimension:s}}),[r,s,l,t]),p=Object(n.useRef)(d),f=Object(n.useRef)(!0);Nn((function(){return i.draggable.register(p.current),function(){return i.draggable.unregister(p.current)}}),[i.draggable]),Nn((function(){if(f.current)f.current=!1;else{var e=p.current;p.current=d,i.draggable.update(d,e)}}),[d,i.draggable])}function Xi(e,t,r){zn()}function Ji(e){e.preventDefault()}var Ki=function(e,t){return e===t},Qi=function(e){var t=e.combine,r=e.destination;return r?r.droppableId:t?t.droppableId:null};function Zi(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var eo={mapped:{type:"SECONDARY",offset:Be,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Zi(null)}};var to=Q((function(){var e=function(){var e=Object(ve.a)((function(e,t){return{x:e,y:t}})),t=Object(ve.a)((function(e,t,r,n,i){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:r,combineWith:n,combineTargetFor:null}})),r=Object(ve.a)((function(e,r,n,i,o,a,c){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:o,combineWith:a,mode:r,offset:e,dimension:n,forceShouldAnimate:c,snapshot:t(r,i,o,a,null)}}}));return function(n,i){if(n.isDragging){if(n.critical.draggable.id!==i.draggableId)return null;var o=n.current.client.offset,a=n.dimensions.draggables[i.draggableId],c=kt(n.impact),u=(s=n.impact).at&&"COMBINE"===s.at.type?s.at.combine.draggableId:null,l=n.forceShouldAnimate;return r(e(o.x,o.y),n.movementMode,a,i.isClone,c,u,l)}var s;if("DROP_ANIMATING"===n.phase){var d=n.completed;if(d.result.draggableId!==i.draggableId)return null;var p=i.isClone,f=n.dimensions.draggables[i.draggableId],g=d.result,b=g.mode,v=Qi(g),m=function(e){return e.combine?e.combine.draggableId:null}(g),h={duration:n.dropDuration,curve:Or,moveTo:n.newHomeClientOffset,opacity:m?wr.drop:null,scale:m?Er.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:f,dropping:h,draggingOver:v,combineWith:m,mode:b,forceShouldAnimate:null,snapshot:t(b,p,v,m,h)}}}return null}}(),t=function(){var e=Object(ve.a)((function(e,t){return{x:e,y:t}})),t=Object(ve.a)(Zi),r=Object(ve.a)((function(e,r,n){return void 0===r&&(r=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:r,shouldAnimateDisplacement:n,snapshot:t(r)}}})),n=function(e){return e?r(Be,e,!0):null},i=function(t,i,o,a){var c=o.displaced.visible[t],u=Boolean(a.inVirtualList&&a.effected[t]),l=rt(o),s=l&&l.draggableId===t?i:null;if(!c){if(!u)return n(s);if(o.displaced.invisible[t])return null;var d=Me(a.displacedBy.point),p=e(d.x,d.y);return r(p,s,!0)}if(u)return n(s);var f=o.displacedBy.point,g=e(f.x,f.y);return r(g,s,c.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:i(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var r=e.completed;return r.result.draggableId===t.draggableId?null:i(t.draggableId,r.result.draggableId,r.impact,r.afterCritical)}return null}}();return function(r,n){return e(r,n)||t(r,n)||eo}}),{dropAnimationFinished:Dr},null,{context:_n,pure:!0,areStatePropsEqual:Ki})((function(e){var t=Object(n.useRef)(null),r=ie((function(e){t.current=e}),[]),i=ie((function(){return t.current}),[]),o=Li(qn),a=o.contextId,c=o.dragHandleUsageInstructionsId,u=o.registry,l=Li(ki),s=l.type,d=l.droppableId,p=ne((function(){return{id:e.draggableId,index:e.index,type:s,droppableId:d}}),[e.draggableId,e.index,s,d]),f=e.children,g=e.draggableId,b=e.isEnabled,v=e.shouldRespectForcePress,m=e.canDragInteractiveElements,h=e.isClone,y=e.mapped,x=e.dropAnimationFinished;Xi(),Vn(),h||$i(ne((function(){return{descriptor:p,registry:u,getDraggableRef:i,canDragInteractiveElements:m,shouldRespectForcePress:v,isEnabled:b}}),[p,u,i,m,v,b]));var I=ne((function(){return b?{tabIndex:0,role:"button","aria-describedby":c,"data-rbd-drag-handle-draggable-id":g,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:Ji}:null}),[a,c,g,b]),D=ie((function(e){"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&x()}),[x,y]),O=ne((function(){var e=Yi(y),t="DRAGGING"===y.type&&y.dropping?D:null;return{innerRef:r,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":g,style:e,onTransitionEnd:t},dragHandleProps:I}}),[a,I,g,y,D,r]),w=ne((function(){return{draggableId:p.id,type:p.type,source:{index:p.index,droppableId:p.droppableId}}}),[p.droppableId,p.id,p.index,p.type]);return f(O,y.snapshot,w)}));function ro(e){return Li(ki).isUsingCloneFor!==e.draggableId||e.isClone?i.a.createElement(to,e):null}function no(e){var t="boolean"!==typeof e.isDragDisabled||!e.isDragDisabled,r=Boolean(e.disableInteractiveElementBlocking),n=Boolean(e.shouldRespectForcePress);return i.a.createElement(ro,Object(a.a)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n}))}var io=function(e,t){return e===t.droppable.type},oo=function(e,t){return t.draggables[e.draggable.id]};var ao={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||De(!1),document.body}},co=Q((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=Object(a.a)({},e,{shouldAnimatePlaceholder:!1}),r=Object(ve.a)((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),n=Object(ve.a)((function(n,i,o,a,c,u){var l=c.descriptor.id;if(c.descriptor.droppableId===n){var s=u?{render:u,dragging:r(c.descriptor)}:null,d={isDraggingOver:o,draggingOverWith:o?l:null,draggingFromThisWith:l,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:s}}if(!i)return t;if(!a)return e;var p={isDraggingOver:o,draggingOverWith:l,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}}));return function(r,i){var o=i.droppableId,a=i.type,c=!i.isDropDisabled,u=i.renderClone;if(r.isDragging){var l=r.critical;if(!io(a,l))return t;var s=oo(l,r.dimensions),d=kt(r.impact)===o;return n(o,c,d,d,s,u)}if("DROP_ANIMATING"===r.phase){var p=r.completed;if(!io(a,p.critical))return t;var f=oo(p.critical,r.dimensions);return n(o,c,Qi(p.result)===o,kt(p.impact)===o,f,u)}if("IDLE"===r.phase&&r.completed&&!r.shouldFlush){var g=r.completed;if(!io(a,g.critical))return t;var b=kt(g.impact)===o,v=Boolean(g.impact.at&&"COMBINE"===g.impact.at.type),m=g.critical.droppable.id===o;return b?v?e:t:m?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:_n,pure:!0,areStatePropsEqual:Ki})((function(e){var t=Object(n.useContext)(qn);t||De(!1);var r=t.contextId,o=t.isMovementAllowed,a=Object(n.useRef)(null),c=Object(n.useRef)(null),u=e.children,l=e.droppableId,s=e.type,d=e.mode,p=e.direction,f=e.ignoreContainerClipping,g=e.isDropDisabled,b=e.isCombineEnabled,v=e.snapshot,m=e.useClone,h=e.updateViewportMaxScroll,y=e.getContainerForClone,x=ie((function(){return a.current}),[]),I=ie((function(e){a.current=e}),[]),D=(ie((function(){return c.current}),[]),ie((function(e){c.current=e}),[]));zn();var O=ie((function(){o()&&h({maxScroll:Jr()})}),[o,h]);!function(e){var t=Object(n.useRef)(null),r=Li(qn),i=Hn("droppable"),o=r.registry,a=r.marshal,c=$n(e),u=ne((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),l=Object(n.useRef)(u),s=ne((function(){return Object(ve.a)((function(e,r){t.current||De(!1);var n={x:e,y:r};a.updateDroppableScroll(u.id,n)}))}),[u.id,a]),d=ie((function(){var e=t.current;return e&&e.env.closestScrollable?Pi(e.env.closestScrollable):Be}),[]),p=ie((function(){var e=d();s(e.x,e.y)}),[d,s]),f=ne((function(){return me(p)}),[p]),g=ie((function(){var e=t.current,r=Mi(e);e&&r||De(!1),e.scrollOptions.shouldPublishImmediately?p():f()}),[f,p]),b=ie((function(e,n){t.current&&De(!1);var i=c.current,o=i.getDroppableRef();o||De(!1);var a=Ni(o),l={ref:o,descriptor:u,env:a,scrollOptions:n};t.current=l;var s=Ri({ref:o,descriptor:u,env:a,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),d=a.closestScrollable;return d&&(d.setAttribute(An.contextId,r.contextId),d.addEventListener("scroll",g,ji(l.scrollOptions))),s}),[r.contextId,u,g,c]),v=ie((function(){var e=t.current,r=Mi(e);return e&&r||De(!1),Pi(r)}),[]),m=ie((function(){var e=t.current;e||De(!1);var r=Mi(e);t.current=null,r&&(f.cancel(),r.removeAttribute(An.contextId),r.removeEventListener("scroll",g,ji(e.scrollOptions)))}),[g,f]),h=ie((function(e){var r=t.current;r||De(!1);var n=Mi(r);n||De(!1),n.scrollTop+=e.y,n.scrollLeft+=e.x}),[]),y=ne((function(){return{getDimensionAndWatchScroll:b,getScrollWhileDragging:v,dragStopped:m,scroll:h}}),[m,b,v,h]),x=ne((function(){return{uniqueId:i,descriptor:u,callbacks:y}}),[y,u,i]);Nn((function(){return l.current=x.descriptor,o.droppable.register(x),function(){t.current&&m(),o.droppable.unregister(x)}}),[y,u,m,x,a,o.droppable]),Nn((function(){t.current&&a.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),Nn((function(){t.current&&a.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:l,type:s,mode:d,direction:p,isDropDisabled:g,isCombineEnabled:b,ignoreContainerClipping:f,getDroppableRef:x});var w=i.a.createElement(Ui,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,n=e.data,o=e.animate;return i.a.createElement(Wi,{placeholder:n,onClose:t,innerRef:D,animate:o,contextId:r,onTransitionEnd:O})})),E=ne((function(){return{innerRef:I,placeholder:w,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":r}}}),[r,l,w,I]),C=m?m.dragging.draggableId:null,S=ne((function(){return{droppableId:l,type:s,isUsingCloneFor:C}}),[l,C,s]);return i.a.createElement(ki.Provider,{value:S},u(E,v),function(){if(!m)return null;var e=m.dragging,t=m.render,r=i.a.createElement(ro,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(r,n){return t(r,n,e)}));return te.a.createPortal(r,y())}())}));co.defaultProps=ao}}]);
3
- //# sourceMappingURL=19.61ef8815.chunk.js.map
1
+ /*! For license information please see 18.8304f096.chunk.js.LICENSE.txt */
2
+ (window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[18],{SLVX:function(e,t,r){"use strict";function n(e){var t,r=e.Symbol;return"function"===typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}r.d(t,"a",(function(){return n}))},WTs4:function(e,t,r){"use strict";e.exports=r("b3li")},Wwog:function(e,t,r){"use strict";function n(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}t.a=function(e,t){var r;void 0===t&&(t=n);var i,o=[],a=!1;return function(){for(var n=[],c=0;c<arguments.length;c++)n[c]=arguments[c];return a&&r===this&&t(n,o)||(i=e.apply(this,n),a=!0,r=this,o=n),i}}},b3li:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"===typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,c=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,d=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,g=n?Symbol.for("react.suspense"):60113,b=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,h=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function I(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case p:case a:case u:case c:case g:return e;default:switch(e=e&&e.$$typeof){case s:case f:case m:case v:case l:return e;default:return t}}case o:return t}}}function D(e){return I(e)===p}t.typeOf=I,t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=s,t.ContextProvider=l,t.Element=i,t.ForwardRef=f,t.Fragment=a,t.Lazy=m,t.Memo=v,t.Portal=o,t.Profiler=u,t.StrictMode=c,t.Suspense=g,t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===p||e===u||e===c||e===g||e===b||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===l||e.$$typeof===s||e.$$typeof===f||e.$$typeof===h||e.$$typeof===y||e.$$typeof===x)},t.isAsyncMode=function(e){return D(e)||I(e)===d},t.isConcurrentMode=D,t.isContextConsumer=function(e){return I(e)===s},t.isContextProvider=function(e){return I(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return I(e)===f},t.isFragment=function(e){return I(e)===a},t.isLazy=function(e){return I(e)===m},t.isMemo=function(e){return I(e)===v},t.isPortal=function(e){return I(e)===o},t.isProfiler=function(e){return I(e)===u},t.isStrictMode=function(e){return I(e)===c},t.isSuspense=function(e){return I(e)===g}},bCCX:function(e,t,r){"use strict";(function(e,n){var i,o=r("SLVX");i="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:n;var a=Object(o.a)(i);t.a=a}).call(this,r("RLDh"),r("lM3E")(e))},ngQI:function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropContext",(function(){return Di})),r.d(t,"Draggable",(function(){return no})),r.d(t,"Droppable",(function(){return co})),r.d(t,"resetServerContext",(function(){return Ii}));var n=r("q1tI"),i=r.n(n),o=r("dI71"),a=r("wx14"),c=r("bCCX"),u=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function s(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function d(e,t,r){var n;if("function"===typeof t&&"function"===typeof r||"function"===typeof r&&"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 t&&"undefined"===typeof r&&(r=t,t=void 0),"undefined"!==typeof r){if("function"!==typeof r)throw new Error("Expected the enhancer to be a function.");return r(d)(e,t)}if("function"!==typeof e)throw new Error("Expected the reducer to be a function.");var i=e,o=t,a=[],u=a,p=!1;function f(){u===a&&(u=a.slice())}function g(){if(p)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 o}function b(e){if("function"!==typeof e)throw new Error("Expected the listener to be a function.");if(p)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#subscribelistener for more details.");var t=!0;return f(),u.push(e),function(){if(t){if(p)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,f();var r=u.indexOf(e);u.splice(r,1),a=null}}}function v(e){if(!s(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,o=i(o,e)}finally{p=!1}for(var t=a=u,r=0;r<t.length;r++){(0,t[r])()}return e}function m(e){if("function"!==typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,v({type:l.REPLACE})}function h(){var e,t=b;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(g())}return r(),{unsubscribe:t(r)}}})[c.a]=function(){return this},e}return v({type:l.INIT}),(n={dispatch:v,subscribe:b,getState:g,replaceReducer:m})[c.a]=h,n}function p(e,t){return function(){return t(e.apply(this,arguments))}}function f(e,t){if("function"===typeof e)return p(e,t);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"?');var r={};for(var n in e){var i=e[n];"function"===typeof i&&(r[n]=p(i,t))}return r}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(r,!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}r("17x9");var h=i.a.createContext(null);var y=function(e){e()},x={notify:function(){}};function I(){var e=y,t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],r=t;r;)e.push(r),r=r.next;return e},subscribe:function(e){var n=!0,i=r={callback:e,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){n&&null!==t&&(n=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var D=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=x,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=I())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=x)},e}();var O=function(e){var t=e.store,r=e.context,o=e.children,a=Object(n.useMemo)((function(){var e=new D(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),c=Object(n.useMemo)((function(){return t.getState()}),[t]);Object(n.useEffect)((function(){var e=a.subscription;return e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,c]);var u=r||h;return i.a.createElement(u.Provider,{value:a},o)},w=r("zLVn"),E=r("2mql"),C=r.n(E),S=r("WTs4"),A="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?n.useLayoutEffect:n.useEffect,P=[],N=[null,null];function R(e,t){var r=e[1];return[t.payload,r+1]}function B(e,t,r){A((function(){return e.apply(void 0,t)}),r)}function T(e,t,r,n,i,o,a){e.current=n,t.current=i,r.current=!1,o.current&&(o.current=null,a())}function j(e,t,r,n,i,o,a,c,u,l){if(e){var s=!1,d=null,p=function(){if(!s){var e,r,p=t.getState();try{e=n(p,i.current)}catch(f){r=f,d=f}r||(d=null),e===o.current?a.current||u():(o.current=e,c.current=e,a.current=!0,l({type:"STORE_UPDATED",payload:{error:r}}))}};r.onStateChange=p,r.trySubscribe(),p();return function(){if(s=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}}var L=function(){return[null,0]};function M(e,t){void 0===t&&(t={});var r=t,o=r.getDisplayName,c=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,u=r.methodName,l=void 0===u?"connectAdvanced":u,s=r.renderCountProp,d=void 0===s?void 0:s,p=r.shouldHandleStateChanges,f=void 0===p||p,g=r.storeKey,b=void 0===g?"store":g,v=(r.withRef,r.forwardRef),m=void 0!==v&&v,y=r.context,x=void 0===y?h:y,I=Object(w.a)(r,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),O=x;return function(t){var r=t.displayName||t.name||"Component",o=c(r),u=Object(a.a)({},I,{getDisplayName:c,methodName:l,renderCountProp:d,shouldHandleStateChanges:f,storeKey:b,displayName:o,wrappedComponentName:r,WrappedComponent:t}),s=I.pure;var p=s?n.useMemo:function(e){return e()};function g(r){var o=Object(n.useMemo)((function(){var e=r.forwardedRef,t=Object(w.a)(r,["forwardedRef"]);return[r.context,e,t]}),[r]),c=o[0],l=o[1],s=o[2],d=Object(n.useMemo)((function(){return c&&c.Consumer&&Object(S.isContextConsumer)(i.a.createElement(c.Consumer,null))?c:O}),[c,O]),g=Object(n.useContext)(d),b=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch);Boolean(g)&&Boolean(g.store);var v=b?r.store:g.store,m=Object(n.useMemo)((function(){return function(t){return e(t.dispatch,u)}(v)}),[v]),h=Object(n.useMemo)((function(){if(!f)return N;var e=new D(v,b?null:g.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[v,b,g]),y=h[0],x=h[1],I=Object(n.useMemo)((function(){return b?g:Object(a.a)({},g,{subscription:y})}),[b,g,y]),E=Object(n.useReducer)(R,P,L),C=E[0][0],A=E[1];if(C&&C.error)throw C.error;var M=Object(n.useRef)(),G=Object(n.useRef)(s),_=Object(n.useRef)(),F=Object(n.useRef)(!1),W=p((function(){return _.current&&s===G.current?_.current:m(v.getState(),s)}),[v,C,s]);B(T,[G,M,F,s,W,_,x]),B(j,[f,v,y,m,G,M,F,_,x,A],[v,y,m]);var k=Object(n.useMemo)((function(){return i.a.createElement(t,Object(a.a)({},W,{ref:l}))}),[l,t,W]);return Object(n.useMemo)((function(){return f?i.a.createElement(d.Provider,{value:I},k):k}),[d,k,I])}var v=s?i.a.memo(g):g;if(v.WrappedComponent=t,v.displayName=o,m){var h=i.a.forwardRef((function(e,t){return i.a.createElement(v,Object(a.a)({},e,{forwardedRef:t}))}));return h.displayName=o,h.WrappedComponent=t,C()(h,t)}return C()(v,t)}}function G(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function _(e,t){if(G(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!G(e[r[i]],t[r[i]]))return!1;return!0}function F(e){return function(t,r){var n=e(t,r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function W(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function k(e,t){return function(t,r){r.displayName;var n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=W(e);var i=n(t,r);return"function"===typeof i&&(n.mapToProps=i,n.dependsOnOwnProps=W(i),i=n(t,r)),i},n}}var U=[function(e){return"function"===typeof e?k(e):void 0},function(e){return e?void 0:F((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?F((function(t){return f(e,t)})):void 0}];var H=[function(e){return"function"===typeof e?k(e):void 0},function(e){return e?void 0:F((function(){return{}}))}];function q(e,t,r){return Object(a.a)({},r,{},e,{},t)}var V=[function(e){return"function"===typeof e?function(e){return function(t,r){r.displayName;var n,i=r.pure,o=r.areMergedPropsEqual,a=!1;return function(t,r,c){var u=e(t,r,c);return a?i&&o(u,n)||(n=u):(a=!0,n=u),n}}}(e):void 0},function(e){return e?void 0:function(){return q}}];function z(e,t,r,n){return function(i,o){return r(e(i,o),t(n,o),o)}}function Y(e,t,r,n,i){var o,a,c,u,l,s=i.areStatesEqual,d=i.areOwnPropsEqual,p=i.areStatePropsEqual,f=!1;function g(i,f){var g=!d(f,a),b=!s(i,o);return o=i,a=f,g&&b?(c=e(o,a),t.dependsOnOwnProps&&(u=t(n,a)),l=r(c,u,a)):g?(e.dependsOnOwnProps&&(c=e(o,a)),t.dependsOnOwnProps&&(u=t(n,a)),l=r(c,u,a)):b?function(){var t=e(o,a),n=!p(t,c);return c=t,n&&(l=r(c,u,a)),l}():l}return function(i,s){return f?g(i,s):(c=e(o=i,a=s),u=t(n,a),l=r(c,u,a),f=!0,l)}}function $(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,i=t.initMergeProps,o=Object(w.a)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=r(e,o),c=n(e,o),u=i(e,o);return(o.pure?Y:z)(a,c,u,e,o)}function X(e,t,r){for(var n=t.length-1;n>=0;n--){var i=t[n](e);if(i)return i}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function J(e,t){return e===t}function K(e){var t=void 0===e?{}:e,r=t.connectHOC,n=void 0===r?M:r,i=t.mapStateToPropsFactories,o=void 0===i?H:i,c=t.mapDispatchToPropsFactories,u=void 0===c?U:c,l=t.mergePropsFactories,s=void 0===l?V:l,d=t.selectorFactory,p=void 0===d?$:d;return function(e,t,r,i){void 0===i&&(i={});var c=i,l=c.pure,d=void 0===l||l,f=c.areStatesEqual,g=void 0===f?J:f,b=c.areOwnPropsEqual,v=void 0===b?_:b,m=c.areStatePropsEqual,h=void 0===m?_:m,y=c.areMergedPropsEqual,x=void 0===y?_:y,I=Object(w.a)(c,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),D=X(e,o,"mapStateToProps"),O=X(t,u,"mapDispatchToProps"),E=X(r,s,"mergeProps");return n(p,Object(a.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:D,initMapDispatchToProps:O,initMergeProps:E,pure:d,areStatesEqual:g,areOwnPropsEqual:v,areStatePropsEqual:h,areMergedPropsEqual:x},I))}}var Q=K();var Z,ee=r("i8i4"),te=r.n(ee);function re(e,t){var r=Object(n.useState)((function(){return{inputs:t,result:e()}}))[0],i=Object(n.useRef)(r),o=Boolean(t&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,i.current.inputs))?i.current:{inputs:t,result:e()};return Object(n.useEffect)((function(){i.current=o}),[o]),o.result}Z=ee.unstable_batchedUpdates,y=Z;var ne=re,ie=function(e,t){return re((function(){return e}),t)},oe=r("9R94"),ae=function(e){var t=e.top,r=e.right,n=e.bottom,i=e.left;return{top:t,right:r,bottom:n,left:i,width:r-i,height:n-t,x:i,y:t,center:{x:(r+i)/2,y:(n+t)/2}}},ce=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},ue=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},le={top:0,right:0,bottom:0,left:0},se=function(e){var t=e.borderBox,r=e.margin,n=void 0===r?le:r,i=e.border,o=void 0===i?le:i,a=e.padding,c=void 0===a?le:a,u=ae(ce(t,n)),l=ae(ue(t,o)),s=ae(ue(l,c));return{marginBox:u,borderBox:ae(t),paddingBox:l,contentBox:s,margin:n,border:o,padding:c}},de=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var r=Number(t);return isNaN(r)&&Object(oe.a)(!1),r},pe=function(e,t){var r,n,i=e.borderBox,o=e.border,a=e.margin,c=e.padding,u=(n=t,{top:(r=i).top+n.y,left:r.left+n.x,bottom:r.bottom+n.y,right:r.right+n.x});return se({borderBox:u,border:o,margin:a,padding:c})},fe=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),pe(e,t)},ge=function(e,t){var r={top:de(t.marginTop),right:de(t.marginRight),bottom:de(t.marginBottom),left:de(t.marginLeft)},n={top:de(t.paddingTop),right:de(t.paddingRight),bottom:de(t.paddingBottom),left:de(t.paddingLeft)},i={top:de(t.borderTopWidth),right:de(t.borderRightWidth),bottom:de(t.borderBottomWidth),left:de(t.borderLeftWidth)};return se({borderBox:e,margin:r,padding:n,border:i})},be=function(e){var t=e.getBoundingClientRect(),r=window.getComputedStyle(e);return ge(t,r)},ve=r("Wwog"),me=function(e){var t=[],r=null,n=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];t=i,r||(r=requestAnimationFrame((function(){r=null,e.apply(void 0,t)})))};return n.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},n};function he(e,t){}he.bind(null,"warn"),he.bind(null,"error");function ye(){}function xe(e,t,r){var n=t.map((function(t){var n,i,o=(n=r,i=t.options,Object(a.a)({},n,{},i));return e.addEventListener(t.eventName,t.fn,o),function(){e.removeEventListener(t.eventName,t.fn,o)}}));return function(){n.forEach((function(e){e()}))}}function Ie(e){this.message=e}function De(e,t){if(!e)throw new Ie("Invariant failed")}Ie.prototype.toString=function(){return this.message};var Oe=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).callbacks=null,t.unbind=ye,t.onWindowError=function(e){var r=t.getCallbacks();r.isDragging()&&r.tryAbort(),e.error instanceof Ie&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}Object(o.a)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.unbind=xe(window,[{eventName:"error",fn:this.onWindowError}])},r.componentWillUnmount=function(){this.unbind()},r.componentDidCatch=function(e){if(!(e instanceof Ie))throw e;this.setState({})},r.render=function(){return this.props.children(this.setCallbacks)},t}(i.a.Component),we=function(e){return e+1},Ee=function(e,t){var r=e.droppableId===t.droppableId,n=we(e.index),i=we(t.index);return r?"\n You have moved the item from position "+n+"\n to position "+i+"\n ":"\n You have moved the item from position "+n+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+i+"\n "},Ce=function(e,t,r){return t.droppableId===r.droppableId?"\n The item "+e+"\n has been combined with "+r.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+r.draggableId+"\n in list "+r.droppableId+"\n "},Se=function(e){return"\n The item has returned to its starting position\n of "+we(e.index)+"\n"},Ae="\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",Pe=function(e){return"\n You have lifted an item in position "+we(e.source.index)+"\n"},Ne=function(e){var t=e.destination;if(t)return Ee(e.source,t);var r=e.combine;return r?Ce(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},Re=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+Se(e.source)+"\n ";var t=e.destination,r=e.combine;return t?"\n You have dropped the item.\n "+Ee(e.source,t)+"\n ":r?"\n You have dropped the item.\n "+Ce(e.draggableId,e.source,r)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Se(e.source)+"\n "},Be={x:0,y:0},Te=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},je=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Le=function(e,t){return e.x===t.x&&e.y===t.y},Me=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Ge=function(e,t,r){var n;return void 0===r&&(r=0),(n={})[e]=t,n["x"===e?"y":"x"]=r,n},_e=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Fe=function(e,t){return Math.min.apply(Math,t.map((function(t){return _e(e,t)})))},We=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},ke=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Ue=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}]},He=function(e,t){return t&&t.shouldClipSubject?function(e,t){var r=ae({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r}(t.pageMarginBox,e):ae(e)},qe=function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,i=e.frame,o=function(e,t,r){var n;return r&&r.increasedBy?Object(a.a)({},e,((n={})[t.end]=e[t.end]+r.increasedBy[t.line],n)):e}(function(e,t){return t?ke(e,t.scroll.diff.displacement):e}(t.marginBox,i),n,r);return{page:t,withPlaceholder:r,active:He(o,i)}},Ve=function(e,t){e.frame||De(!1);var r=e.frame,n=je(t,r.scroll.initial),i=Me(n),o=Object(a.a)({},r,{scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:i},max:r.scroll.max}}),c=qe({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return Object(a.a)({},e,{frame:o,subject:c})};function ze(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function Ye(e,t){if(e.findIndex)return e.findIndex(t);for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}function $e(e,t){if(e.find)return e.find(t);var r=Ye(e,t);return-1!==r?e[r]:void 0}function Xe(e){return Array.prototype.slice.call(e)}var Je=Object(ve.a)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Ke=Object(ve.a)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Qe=Object(ve.a)((function(e){return ze(e)})),Ze=Object(ve.a)((function(e){return ze(e)})),et=Object(ve.a)((function(e,t){return Ze(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}))}));function tt(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function rt(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var nt=Object(ve.a)((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),it=function(e,t){return e.descriptor.droppableId===t.descriptor.id},ot={point:Be,value:0},at={invisible:{},visible:{},all:[]},ct={displaced:at,displacedBy:ot,at:null},ut=function(e,t){return function(r){return e<=r&&r<=t}},lt=function(e){var t=ut(e.top,e.bottom),r=ut(e.left,e.right);return function(n){if(t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right))return!0;var i=t(n.top)||t(n.bottom),o=r(n.left)||r(n.right);if(i&&o)return!0;var a=n.top<e.top&&n.bottom>e.bottom,c=n.left<e.left&&n.right>e.right;return!(!a||!c)||(a&&o||c&&i)}},st=function(e){var t=ut(e.top,e.bottom),r=ut(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&r(e.left)&&r(e.right)}},dt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},pt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},ft=function(e){var t=e.target,r=e.destination,n=e.viewport,i=e.withDroppableDisplacement,o=e.isVisibleThroughFrameFn,a=i?function(e,t){var r=t.frame?t.frame.scroll.diff.displacement:Be;return ke(e,r)}(t,r):t;return function(e,t,r){return!!t.subject.active&&r(t.subject.active)(e)}(a,r,o)&&function(e,t,r){return r(t)(e)}(a,n,o)},gt=function(e){return ft(Object(a.a)({},e,{isVisibleThroughFrameFn:lt}))},bt=function(e){return ft(Object(a.a)({},e,{isVisibleThroughFrameFn:st}))};function vt(e){var t=e.afterDragging,r=e.destination,n=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var c=function(e,t){var r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return ae(ce(r,n))}(t,n),u=t.descriptor.id;if(e.all.push(u),!gt({target:c,destination:r,viewport:i,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var l={draggableId:u,shouldAnimate:function(e,t,r){if("boolean"===typeof r)return r;if(!t)return!0;var n=t.invisible,i=t.visible;if(n[e])return!1;var o=i[e];return!o||o.shouldAnimate}(u,a,o)};return e.visible[u]=l,e}),{all:[],visible:{},invisible:{}})}function mt(e){var t=e.insideDestination,r=e.inHomeList,n=e.displacedBy,i=e.destination,o=function(e,t){if(!e.length)return 0;var r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}(t,{inHomeList:r});return{displaced:at,displacedBy:n,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function ht(e){var t=e.draggable,r=e.insideDestination,n=e.destination,i=e.viewport,o=e.displacedBy,a=e.last,c=e.index,u=e.forceShouldAnimate,l=it(t,n);if(null==c)return mt({insideDestination:r,inHomeList:l,displacedBy:o,destination:n});var s=$e(r,(function(e){return e.descriptor.index===c}));if(!s)return mt({insideDestination:r,inHomeList:l,displacedBy:o,destination:n});var d=nt(t,r),p=r.indexOf(s);return{displaced:vt({afterDragging:d.slice(p),destination:n,displacedBy:o,last:a,viewport:i.frame,forceShouldAnimate:u}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:c}}}}function yt(e,t){return Boolean(t.effected[e])}var xt=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.draggable,i=e.draggables,o=e.destination,a=e.insideDestination,c=e.previousImpact,u=e.viewport,l=e.afterCritical,s=c.at;if(s||De(!1),"REORDER"===s.type){var d=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.insideDestination,i=e.location;if(!n.length)return null;var o=i.index,a=t?o+1:o-1,c=n[0].descriptor.index,u=n[n.length-1].descriptor.index;return a<c||a>(r?u:u+1)?null:a}({isMovingForward:t,isInHomeList:r,location:s.destination,insideDestination:a});return null==d?null:ht({draggable:n,insideDestination:a,destination:o,viewport:u,last:c.displaced,displacedBy:c.displacedBy,index:d})}var p=function(e){var t=e.isMovingForward,r=e.destination,n=e.draggables,i=e.combine,o=e.afterCritical;if(!r.isCombineEnabled)return null;var a=i.draggableId,c=n[a].descriptor.index;return yt(a,o)?t?c:c-1:t?c+1:c}({isMovingForward:t,destination:o,displaced:c.displaced,draggables:i,combine:s.combine,afterCritical:l});return null==p?null:ht({draggable:n,insideDestination:a,destination:o,viewport:u,last:c.displaced,displacedBy:c.displacedBy,index:p})},It=function(e){var t=e.afterCritical,r=e.impact,n=e.draggables,i=rt(r);i||De(!1);var o=i.draggableId,a=n[o].page.borderBox.center,c=function(e){var t=e.displaced,r=e.afterCritical,n=e.combineWith,i=e.displacedBy,o=Boolean(t.visible[n]||t.invisible[n]);return yt(n,r)?o?Be:Me(i.point):o?i.point:Be}({displaced:r.displaced,afterCritical:t,combineWith:o,displacedBy:r.displacedBy});return Te(a,c)},Dt=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},Ot=function(e,t,r){return t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2},wt=function(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return Ge(t.line,r.marginBox[t.end]+Dt(t,n),Ot(t,r.marginBox,n))},Et=function(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return Ge(t.line,r.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,n),Ot(t,r.marginBox,n))},Ct=function(e){var t=e.impact,r=e.draggable,n=e.draggables,i=e.droppable,o=e.afterCritical,a=et(i.descriptor.id,n),c=r.page,u=i.axis;if(!a.length)return function(e){var t=e.axis,r=e.moveInto,n=e.isMoving;return Ge(t.line,r.contentBox[t.start]+Dt(t,n),Ot(t,r.contentBox,n))}({axis:u,moveInto:i.page,isMoving:c});var l=t.displaced,s=t.displacedBy,d=l.all[0];if(d){var p=n[d];if(yt(d,o))return Et({axis:u,moveRelativeTo:p.page,isMoving:c});var f=pe(p.page,s.point);return Et({axis:u,moveRelativeTo:f,isMoving:c})}var g=a[a.length-1];if(g.descriptor.id===r.descriptor.id)return c.borderBox.center;if(yt(g.descriptor.id,o)){var b=pe(g.page,Me(o.displacedBy.point));return wt({axis:u,moveRelativeTo:b,isMoving:c})}return wt({axis:u,moveRelativeTo:g.page,isMoving:c})},St=function(e,t){var r=e.frame;return r?Te(t,r.scroll.diff.displacement):t},At=function(e){var t=function(e){var t=e.impact,r=e.draggable,n=e.droppable,i=e.draggables,o=e.afterCritical,a=r.page.borderBox.center,c=t.at;return n&&c?"REORDER"===c.type?Ct({impact:t,draggable:r,draggables:i,droppable:n,afterCritical:o}):It({impact:t,draggables:i,afterCritical:o}):a}(e),r=e.droppable;return r?St(r,t):t},Pt=function(e,t){var r=je(t,e.scroll.initial),n=Me(r);return{frame:ae({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}}};function Nt(e,t){return e.map((function(e){return t[e]}))}var Rt=function(e){var t=e.pageBorderBoxCenter,r=e.draggable,n=function(e,t){return Te(e.scroll.diff.displacement,t)}(e.viewport,t),i=je(n,r.page.borderBox.center);return Te(r.client.borderBox.center,i)},Bt=function(e){var t=e.draggable,r=e.destination,n=e.newPageBorderBoxCenter,i=e.viewport,o=e.withDroppableDisplacement,c=e.onlyOnMainAxis,u=void 0!==c&&c,l=je(n,t.page.borderBox.center),s={target:ke(t.page.borderBox,l),destination:r,withDroppableDisplacement:o,viewport:i};return u?function(e){return ft(Object(a.a)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var r=ut(e.top,e.bottom),n=ut(e.left,e.right);return function(e){return t===dt?r(e.top)&&r(e.bottom):n(e.left)&&n(e.right)}})}));var t}(s):bt(s)},Tt=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,i=e.draggables,o=e.previousImpact,c=e.viewport,u=e.previousPageBorderBoxCenter,l=e.previousClientSelection,s=e.afterCritical;if(!n.isEnabled)return null;var d=et(n.descriptor.id,i),p=it(r,n),f=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,i=e.insideDestination,o=e.previousImpact;if(!n.isCombineEnabled)return null;if(!tt(o))return null;function c(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return Object(a.a)({},o,{at:t})}var u=o.displaced.all,l=u.length?u[0]:null;if(t)return l?c(l):null;var s=nt(r,i);if(!l)return s.length?c(s[s.length-1].descriptor.id):null;var d=Ye(s,(function(e){return e.descriptor.id===l}));-1===d&&De(!1);var p=d-1;return p<0?null:c(s[p].descriptor.id)}({isMovingForward:t,draggable:r,destination:n,insideDestination:d,previousImpact:o})||xt({isMovingForward:t,isInHomeList:p,draggable:r,draggables:i,destination:n,insideDestination:d,previousImpact:o,viewport:c,afterCritical:s});if(!f)return null;var g=At({impact:f,draggable:r,droppable:n,draggables:i,afterCritical:s});if(Bt({draggable:r,destination:n,newPageBorderBoxCenter:g,viewport:c.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Rt({pageBorderBoxCenter:g,draggable:r,viewport:c}),impact:f,scrollJumpRequest:null};var b=je(g,u);return{clientSelection:l,impact:function(e){var t=e.impact,r=e.viewport,n=e.destination,i=e.draggables,o=e.maxScrollChange,c=Pt(r,Te(r.scroll.current,o)),u=n.frame?Ve(n,Te(n.frame.scroll.current,o)):n,l=t.displaced,s=vt({afterDragging:Nt(l.all,i),destination:n,displacedBy:t.displacedBy,viewport:c.frame,last:l,forceShouldAnimate:!1}),d=vt({afterDragging:Nt(l.all,i),destination:u,displacedBy:t.displacedBy,viewport:r.frame,last:l,forceShouldAnimate:!1}),p={},f={},g=[l,s,d];return l.all.forEach((function(e){var t=function(e,t){for(var r=0;r<t.length;r++){var n=t[r].visible[e];if(n)return n}return null}(e,g);t?f[e]=t:p[e]=!0})),Object(a.a)({},t,{displaced:{all:l.all,invisible:p,visible:f}})}({impact:f,viewport:c,destination:n,draggables:i,maxScrollChange:b}),scrollJumpRequest:b}},jt=function(e){var t=e.subject.active;return t||De(!1),t},Lt=function(e,t){var r=e.page.borderBox.center;return yt(e.descriptor.id,t)?je(r,t.displacedBy.point):r},Mt=function(e,t){var r=e.page.borderBox;return yt(e.descriptor.id,t)?ke(r,Me(t.displacedBy.point)):r},Gt=Object(ve.a)((function(e,t){var r=t[e.line];return{value:r,point:Ge(e.line,r)}})),_t=function(e,t){return Object(a.a)({},e,{scroll:Object(a.a)({},e.scroll,{max:t})})},Ft=function(e,t,r){var n=e.frame;it(t,e)&&De(!1),e.subject.withPlaceholder&&De(!1);var i=Gt(e.axis,t.displaceBy).point,o=function(e,t,r){var n=e.axis;if("virtual"===e.descriptor.mode)return Ge(n.line,t[n.line]);var i=e.subject.page.contentBox[n.size],o=et(e.descriptor.id,r).reduce((function(e,t){return e+t.client.marginBox[n.size]}),0)+t[n.line]-i;return o<=0?null:Ge(n.line,o)}(e,i,r),c={placeholderSize:i,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n){var u=qe({page:e.subject.page,withPlaceholder:c,axis:e.axis,frame:e.frame});return Object(a.a)({},e,{subject:u})}var l=o?Te(n.scroll.max,o):n.scroll.max,s=_t(n,l),d=qe({page:e.subject.page,withPlaceholder:c,axis:e.axis,frame:s});return Object(a.a)({},e,{subject:d,frame:s})},Wt=function(e){var t=e.isMovingForward,r=e.previousPageBorderBoxCenter,n=e.draggable,i=e.isOver,o=e.draggables,a=e.droppables,c=e.viewport,u=e.afterCritical,l=function(e){var t=e.isMovingForward,r=e.pageBorderBoxCenter,n=e.source,i=e.droppables,o=e.viewport,a=n.subject.active;if(!a)return null;var c=n.axis,u=ut(a[c.start],a[c.end]),l=Qe(i).filter((function(e){return e!==n})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return lt(o.frame)(jt(e))})).filter((function(e){var r=jt(e);return t?a[c.crossAxisEnd]<r[c.crossAxisEnd]:r[c.crossAxisStart]<a[c.crossAxisStart]})).filter((function(e){var t=jt(e),r=ut(t[c.start],t[c.end]);return u(t[c.start])||u(t[c.end])||r(a[c.start])||r(a[c.end])})).sort((function(e,r){var n=jt(e)[c.crossAxisStart],i=jt(r)[c.crossAxisStart];return t?n-i:i-n})).filter((function(e,t,r){return jt(e)[c.crossAxisStart]===jt(r[0])[c.crossAxisStart]}));if(!l.length)return null;if(1===l.length)return l[0];var s=l.filter((function(e){return ut(jt(e)[c.start],jt(e)[c.end])(r[c.line])}));return 1===s.length?s[0]:s.length>1?s.sort((function(e,t){return jt(e)[c.start]-jt(t)[c.start]}))[0]:l.sort((function(e,t){var n=Fe(r,Ue(jt(e))),i=Fe(r,Ue(jt(t)));return n!==i?n-i:jt(e)[c.start]-jt(t)[c.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:r,source:i,droppables:a,viewport:c});if(!l)return null;var s=et(l.descriptor.id,o),d=function(e){var t=e.previousPageBorderBoxCenter,r=e.moveRelativeTo,n=e.insideDestination,i=e.draggable,o=e.draggables,a=e.destination,c=e.viewport,u=e.afterCritical;if(!r){if(n.length)return null;var l={displaced:at,displacedBy:ot,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},s=At({impact:l,draggable:i,droppable:a,draggables:o,afterCritical:u}),d=it(i,a)?a:Ft(a,i,o);return Bt({draggable:i,destination:d,newPageBorderBoxCenter:s,viewport:c.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?l:null}var p=Boolean(t[a.axis.line]<=r.page.borderBox.center[a.axis.line]),f=function(){var e=r.descriptor.index;return r.descriptor.id===i.descriptor.id||p?e:e+1}(),g=Gt(a.axis,i.displaceBy);return ht({draggable:i,insideDestination:n,destination:a,viewport:c,displacedBy:g,last:at,index:f})}({previousPageBorderBoxCenter:r,destination:l,draggable:n,draggables:o,moveRelativeTo:function(e){var t=e.pageBorderBoxCenter,r=e.viewport,n=e.destination,i=e.insideDestination,o=e.afterCritical;return i.filter((function(e){return bt({target:Mt(e,o),destination:n,viewport:r.frame,withDroppableDisplacement:!0})})).sort((function(e,r){var i=_e(t,St(n,Lt(e,o))),a=_e(t,St(n,Lt(r,o)));return i<a?-1:a<i?1:e.descriptor.index-r.descriptor.index}))[0]||null}({pageBorderBoxCenter:r,viewport:c,destination:l,insideDestination:s,afterCritical:u}),insideDestination:s,viewport:c,afterCritical:u});if(!d)return null;var p=At({impact:d,draggable:n,droppable:l,draggables:o,afterCritical:u});return{clientSelection:Rt({pageBorderBoxCenter:p,draggable:n,viewport:c}),impact:d,scrollJumpRequest:null}},kt=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Ut=function(e){var t=e.state,r=e.type,n=function(e,t){var r=kt(e);return r?t[r]:null}(t.impact,t.dimensions.droppables),i=Boolean(n),o=t.dimensions.droppables[t.critical.droppable.id],a=n||o,c=a.axis.direction,u="vertical"===c&&("MOVE_UP"===r||"MOVE_DOWN"===r)||"horizontal"===c&&("MOVE_LEFT"===r||"MOVE_RIGHT"===r);if(u&&!i)return null;var l="MOVE_DOWN"===r||"MOVE_RIGHT"===r,s=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,p=t.dimensions,f=p.draggables,g=p.droppables;return u?Tt({isMovingForward:l,previousPageBorderBoxCenter:d,draggable:s,destination:a,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Wt({isMovingForward:l,previousPageBorderBoxCenter:d,draggable:s,isOver:a,draggables:f,droppables:g,viewport:t.viewport,afterCritical:t.afterCritical})};function Ht(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function qt(e){var t=ut(e.top,e.bottom),r=ut(e.left,e.right);return function(e){return t(e.y)&&r(e.x)}}function Vt(e){var t=e.pageBorderBox,r=e.draggable,n=e.droppables,i=Qe(n).filter((function(e){if(!e.isEnabled)return!1;var r,n,i=e.subject.active;if(!i)return!1;if(n=i,!((r=t).left<n.right&&r.right>n.left&&r.top<n.bottom&&r.bottom>n.top))return!1;if(qt(i)(t.center))return!0;var o=e.axis,a=i.center[o.crossAxisLine],c=t[o.crossAxisStart],u=t[o.crossAxisEnd],l=ut(i[o.crossAxisStart],i[o.crossAxisEnd]),s=l(c),d=l(u);return!s&&!d||(s?c<a:u>a)}));return i.length?1===i.length?i[0].descriptor.id:function(e){var t=e.pageBorderBox,r=e.draggable,n=e.candidates,i=r.page.borderBox.center,o=n.map((function(e){var r=e.axis,n=Ge(e.axis.line,t.center[r.line],e.page.borderBox.center[r.crossAxisLine]);return{id:e.descriptor.id,distance:_e(i,n)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:r,candidates:i}):null}var zt=function(e,t){return ae(ke(e,t))};function Yt(e){var t=e.displaced,r=e.id;return Boolean(t.visible[r]||t.invisible[r])}var $t=function(e){var t=e.pageOffset,r=e.draggable,n=e.draggables,i=e.droppables,o=e.previousImpact,a=e.viewport,c=e.afterCritical,u=zt(r.page.borderBox,t),l=Vt({pageBorderBox:u,draggable:r,droppables:i});if(!l)return ct;var s=i[l],d=et(s.descriptor.id,n),p=function(e,t){var r=e.frame;return r?zt(t,r.scroll.diff.value):t}(s,u);return function(e){var t=e.draggable,r=e.pageBorderBoxWithDroppableScroll,n=e.previousImpact,i=e.destination,o=e.insideDestination,a=e.afterCritical;if(!i.isCombineEnabled)return null;var c=i.axis,u=Gt(i.axis,t.displaceBy),l=u.value,s=r[c.start],d=r[c.end],p=$e(nt(t,o),(function(e){var t=e.descriptor.id,r=e.page.borderBox,i=r[c.size]/4,o=yt(t,a),u=Yt({displaced:n.displaced,id:t});return o?u?d>r[c.start]+i&&d<r[c.end]-i:s>r[c.start]-l+i&&s<r[c.end]-l-i:u?d>r[c.start]+l+i&&d<r[c.end]+l-i:s>r[c.start]+i&&s<r[c.end]-i}));return p?{displacedBy:u,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:i.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:p,draggable:r,previousImpact:o,destination:s,insideDestination:d,afterCritical:c})||function(e){var t=e.pageBorderBoxWithDroppableScroll,r=e.draggable,n=e.destination,i=e.insideDestination,o=e.last,a=e.viewport,c=e.afterCritical,u=n.axis,l=Gt(n.axis,r.displaceBy),s=l.value,d=t[u.start],p=t[u.end],f=function(e){var t=e.draggable,r=e.closest,n=e.inHomeList;return r?n&&r.descriptor.index>t.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}({draggable:r,closest:$e(nt(r,i),(function(e){var t=e.descriptor.id,r=e.page.borderBox.center[u.line],n=yt(t,c),i=Yt({displaced:o,id:t});return n?i?p<=r:d<r-s:i?p<=r+s:d<r})),inHomeList:it(r,n)});return ht({draggable:r,insideDestination:i,destination:n,viewport:a,last:o,displacedBy:l,index:f})}({pageBorderBoxWithDroppableScroll:p,draggable:r,destination:s,insideDestination:d,last:o.displaced,viewport:a,afterCritical:c})},Xt=function(e,t){var r;return Object(a.a)({},e,((r={})[t.descriptor.id]=t,r))},Jt=function(e){var t=e.previousImpact,r=e.impact,n=e.droppables,i=kt(t),o=kt(r);if(!i)return n;if(i===o)return n;var c=n[i];if(!c.subject.withPlaceholder)return n;var u=function(e){var t=e.subject.withPlaceholder;t||De(!1);var r=e.frame;if(!r){var n=qe({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return Object(a.a)({},e,{subject:n})}var i=t.oldFrameMaxScroll;i||De(!1);var o=_t(r,i),c=qe({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return Object(a.a)({},e,{subject:c,frame:o})}(c);return Xt(n,u)},Kt=function(e){var t=e.state,r=e.clientSelection,n=e.dimensions,i=e.viewport,o=e.impact,c=e.scrollJumpRequest,u=i||t.viewport,l=n||t.dimensions,s=r||t.current.client.selection,d=je(s,t.initial.client.selection),p={offset:d,selection:s,borderBoxCenter:Te(t.initial.client.borderBoxCenter,d)},f={selection:Te(p.selection,u.scroll.current),borderBoxCenter:Te(p.borderBoxCenter,u.scroll.current),offset:Te(p.offset,u.scroll.diff.value)},g={client:p,page:f};if("COLLECTING"===t.phase)return Object(a.a)({phase:"COLLECTING"},t,{dimensions:l,viewport:u,current:g});var b=l.draggables[t.critical.draggable.id],v=o||$t({pageOffset:f.offset,draggable:b,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:u,afterCritical:t.afterCritical}),m=function(e){var t=e.draggable,r=e.draggables,n=e.droppables,i=e.previousImpact,o=e.impact,a=Jt({previousImpact:i,impact:o,droppables:n}),c=kt(o);if(!c)return a;var u=n[c];if(it(t,u))return a;if(u.subject.withPlaceholder)return a;var l=Ft(u,t,r);return Xt(a,l)}({draggable:b,impact:v,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return Object(a.a)({},t,{current:g,dimensions:{draggables:l.draggables,droppables:m},impact:v,viewport:u,scrollJumpRequest:c||null,forceShouldAnimate:!c&&null})};var Qt=function(e){var t=e.impact,r=e.viewport,n=e.draggables,i=e.destination,o=e.forceShouldAnimate,c=t.displaced,u=vt({afterDragging:function(e,t){return e.map((function(e){return t[e]}))}(c.all,n),destination:i,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:o,last:c});return Object(a.a)({},t,{displaced:u})},Zt=function(e){var t=e.impact,r=e.draggable,n=e.droppable,i=e.draggables,o=e.viewport,a=e.afterCritical,c=At({impact:t,draggable:r,draggables:i,droppable:n,afterCritical:a});return Rt({pageBorderBoxCenter:c,draggable:r,viewport:o})},er=function(e){var t=e.state,r=e.dimensions,n=e.viewport;"SNAP"!==t.movementMode&&De(!1);var i=t.impact,o=n||t.viewport,a=r||t.dimensions,c=a.draggables,u=a.droppables,l=c[t.critical.draggable.id],s=kt(i);s||De(!1);var d=u[s],p=Qt({impact:i,viewport:o,destination:d,draggables:c}),f=Zt({impact:p,draggable:l,droppable:d,draggables:c,viewport:o,afterCritical:t.afterCritical});return Kt({impact:p,clientSelection:f,state:t,dimensions:a,viewport:o})},tr=function(e){var t=e.draggable,r=e.home,n=e.draggables,i=e.viewport,o=Gt(r.axis,t.displaceBy),a=et(r.descriptor.id,n),c=a.indexOf(t);-1===c&&De(!1);var u,l=a.slice(c+1),s=l.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===r.descriptor.mode,displacedBy:o,effected:s};return{impact:{displaced:vt({afterDragging:l,destination:r,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(u=t.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:d}},rr=function(e){0},nr=function(e){0},ir=function(e){var t=e.additions,r=e.updatedDroppables,n=e.viewport,i=n.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,o=function(e){var t=e.frame;return t||De(!1),t}(r[t]).scroll.diff.value;return function(e){var t=e.draggable,r=e.offset,n=e.initialWindowScroll,i=pe(t.client,r),o=fe(i,n);return Object(a.a)({},t,{placeholder:Object(a.a)({},t.placeholder,{client:i}),client:i,page:o})}({draggable:e,offset:Te(i,o),initialWindowScroll:n.scroll.initial})}))},or=function(e){return"SNAP"===e.movementMode},ar=function(e,t,r){var n=function(e,t){return{draggables:e.draggables,droppables:Xt(e.droppables,t)}}(e.dimensions,t);return!or(e)||r?Kt({state:e,dimensions:n}):er({state:e,dimensions:n})};function cr(e){return e.isDragging&&"SNAP"===e.movementMode?Object(a.a)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var ur={phase:"IDLE",completed:null,shouldFlush:!1},lr=function(e,t){if(void 0===e&&(e=ur),"FLUSH"===t.type)return Object(a.a)({},ur,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&De(!1);var r=t.payload,n=r.critical,i=r.clientSelection,o=r.viewport,c=r.dimensions,u=r.movementMode,l=c.draggables[n.draggable.id],s=c.droppables[n.droppable.id],d={selection:i,borderBoxCenter:l.client.borderBox.center,offset:Be},p={client:d,page:{selection:Te(d.selection,o.scroll.initial),borderBoxCenter:Te(d.selection,o.scroll.initial),offset:Te(d.selection,o.scroll.diff.value)}},f=Qe(c.droppables).every((function(e){return!e.isFixedOnPage})),g=tr({draggable:l,home:s,draggables:c.draggables,viewport:o}),b=g.impact;return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:u,dimensions:c,initial:p,current:p,isWindowScrollAllowed:f,impact:b,afterCritical:g.afterCritical,onLiftImpact:b,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&De(!1),Object(a.a)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&De(!1),function(e){var t=e.state,r=e.published;rr();var n=r.modified.map((function(e){var r=t.dimensions.droppables[e.droppableId];return Ve(r,e.scroll)})),i=Object(a.a)({},t.dimensions.droppables,{},Je(n)),o=Ke(ir({additions:r.additions,updatedDroppables:i,viewport:t.viewport})),c=Object(a.a)({},t.dimensions.draggables,{},o);r.removals.forEach((function(e){delete c[e]}));var u={droppables:i,draggables:c},l=kt(t.impact),s=l?u.droppables[l]:null,d=u.draggables[t.critical.draggable.id],p=u.droppables[t.critical.droppable.id],f=tr({draggable:d,home:p,draggables:c,viewport:t.viewport}),g=f.impact,b=f.afterCritical,v=s&&s.isCombineEnabled?t.impact:g,m=$t({pageOffset:t.current.page.offset,draggable:u.draggables[t.critical.draggable.id],draggables:u.draggables,droppables:u.droppables,previousImpact:v,viewport:t.viewport,afterCritical:b});nr();var h=Object(a.a)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:m,onLiftImpact:g,dimensions:u,afterCritical:b,forceShouldAnimate:!1});return"COLLECTING"===t.phase?h:Object(a.a)({phase:"DROP_PENDING"},h,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Ht(e)||De(!1);var v=t.payload.client;return Le(v,e.current.client.selection)?e:Kt({state:e,clientSelection:v,impact:or(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return cr(e);if("COLLECTING"===e.phase)return cr(e);Ht(e)||De(!1);var m=t.payload,h=m.id,y=m.newScroll,x=e.dimensions.droppables[h];if(!x)return e;var I=Ve(x,y);return ar(e,I,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Ht(e)||De(!1);var D=t.payload,O=D.id,w=D.isEnabled,E=e.dimensions.droppables[O];E||De(!1),E.isEnabled===w&&De(!1);var C=Object(a.a)({},E,{isEnabled:w});return ar(e,C,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Ht(e)||De(!1);var S=t.payload,A=S.id,P=S.isCombineEnabled,N=e.dimensions.droppables[A];N||De(!1),N.isCombineEnabled===P&&De(!1);var R=Object(a.a)({},N,{isCombineEnabled:P});return ar(e,R,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Ht(e)||De(!1),e.isWindowScrollAllowed||De(!1);var B=t.payload.newScroll;if(Le(e.viewport.scroll.current,B))return cr(e);var T=Pt(e.viewport,B);return or(e)?er({state:e,viewport:T}):Kt({state:e,viewport:T})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Ht(e))return e;var j=t.payload.maxScroll;if(Le(j,e.viewport.scroll.max))return e;var L=Object(a.a)({},e.viewport,{scroll:Object(a.a)({},e.viewport.scroll,{max:j})});return Object(a.a)({phase:"DRAGGING"},e,{viewport:L})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&De(!1);var M=Ut({state:e,type:t.type});return M?Kt({state:e,impact:M.impact,clientSelection:M.clientSelection,scrollJumpRequest:M.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var G=t.payload.reason;return"COLLECTING"!==e.phase&&De(!1),Object(a.a)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:G})}if("DROP_ANIMATE"===t.type){var _=t.payload,F=_.completed,W=_.dropDuration,k=_.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&De(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:W,newHomeClientOffset:k,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},sr=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},dr=function(){return{type:"COLLECTION_STARTING",payload:null}},pr=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},fr=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},gr=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},br=function(e){return{type:"MOVE",payload:e}},vr=function(){return{type:"MOVE_UP",payload:null}},mr=function(){return{type:"MOVE_DOWN",payload:null}},hr=function(){return{type:"MOVE_RIGHT",payload:null}},yr=function(){return{type:"MOVE_LEFT",payload:null}},xr=function(e){return{type:"DROP_COMPLETE",payload:e}},Ir=function(e){return{type:"DROP",payload:e}},Dr=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var Or="cubic-bezier(.2,1,.1,1)",wr={drop:0,combining:.7},Er={drop:.75},Cr=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",Sr={fluid:"opacity "+Cr,snap:"transform "+Cr+", opacity "+Cr,drop:function(e){var t=e+"s "+Or;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+Cr,placeholder:"height "+Cr+", width "+Cr+", margin "+Cr},Ar=function(e){return Le(e,Be)?null:"translate("+e.x+"px, "+e.y+"px)"},Pr=Ar,Nr=function(e,t){var r=Ar(e);return r?t?r+" scale("+Er.drop+")":r:null},Rr=.33,Br=.55,Tr=Br-Rr,jr=function(e){var t=e.getState,r=e.dispatch;return function(e){return function(n){if("DROP"===n.type){var i=t(),o=n.payload.reason;if("COLLECTING"!==i.phase){if("IDLE"!==i.phase){"DROP_PENDING"===i.phase&&i.isWaiting&&De(!1),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&De(!1);var c=i.critical,u=i.dimensions,l=u.draggables[i.critical.draggable.id],s=function(e){var t=e.draggables,r=e.reason,n=e.lastImpact,i=e.home,o=e.viewport,c=e.onLiftImpact;return n.at&&"DROP"===r?"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:Object(a.a)({},n,{displaced:at}),didDropInsideDroppable:!0}:{impact:Qt({draggables:t,impact:c,destination:i,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),d=s.impact,p=s.didDropInsideDroppable,f=p?tt(d):null,g=p?rt(d):null,b={index:c.draggable.index,droppableId:c.droppable.id},v={draggableId:l.descriptor.id,type:l.descriptor.type,source:b,reason:o,mode:i.movementMode,destination:f,combine:g},m=function(e){var t=e.impact,r=e.draggable,n=e.dimensions,i=e.viewport,o=e.afterCritical,a=n.draggables,c=n.droppables,u=kt(t),l=u?c[u]:null,s=c[r.descriptor.droppableId],d=Zt({impact:t,draggable:r,draggables:a,afterCritical:o,droppable:l||s,viewport:i});return je(d,r.client.borderBox.center)}({impact:d,draggable:l,dimensions:u,viewport:i.viewport,afterCritical:i.afterCritical}),h={critical:i.critical,afterCritical:i.afterCritical,result:v,impact:d};if(!Le(i.current.client.offset,m)||Boolean(v.combine)){var y=function(e){var t=e.current,r=e.destination,n=e.reason,i=_e(t,r);if(i<=0)return Rr;if(i>=1500)return Br;var o=Rr+Tr*(i/1500);return Number(("CANCEL"===n?.6*o:o).toFixed(2))}({current:i.current.client.offset,destination:m,reason:o});r(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:m,dropDuration:y,completed:h}))}else r(xr({completed:h}))}}else r(function(e){return{type:"DROP_PENDING",payload:e}}({reason:o}))}else e(n)}}},Lr=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Mr(e){var t=e.onWindowScroll;var r,n=me((function(){t(Lr())})),i=(r=n,{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.target!==window&&e.target!==window.document||r()}}),o=ye;function a(){return o!==ye}return{start:function(){a()&&De(!1),o=xe(window,[i])},stop:function(){a()||De(!1),n.cancel(),o(),o=ye},isActive:a}}var Gr=function(e){var t=Mr({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(r){t.isActive()||"INITIAL_PUBLISH"!==r.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r)&&t.stop(),e(r)}}},_r=function(){var e=[];return{add:function(t){var r=setTimeout((function(){return function(t){var r=Ye(e,(function(e){return e.timerId===t}));-1===r&&De(!1),e.splice(r,1)[0].callback()}(r)})),n={timerId:r,callback:t};e.push(n)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Fr=function(e,t){rr(),t(),nr()},Wr=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},kr=function(e,t,r,n){if(e){var i=function(e){var t=!1,r=!1,n=setTimeout((function(){r=!0})),i=function(i){t||r||(t=!0,e(i),clearTimeout(n))};return i.wasCalled=function(){return t},i}(r);e(t,{announce:i}),i.wasCalled()||r(n(t))}else r(n(t))},Ur=function(e,t){var r=function(e,t){var r=_r(),n=null,i=function(r){n||De(!1),n=null,Fr(0,(function(){return kr(e().onDragEnd,r,t,Re)}))};return{beforeCapture:function(t,r){n&&De(!1),Fr(0,(function(){var n=e().onBeforeCapture;n&&n({draggableId:t,mode:r})}))},beforeStart:function(t,r){n&&De(!1),Fr(0,(function(){var n=e().onBeforeDragStart;n&&n(Wr(t,r))}))},start:function(i,o){n&&De(!1);var a=Wr(i,o);n={mode:o,lastCritical:i,lastLocation:a.source,lastCombine:null},r.add((function(){Fr(0,(function(){return kr(e().onDragStart,a,t,Pe)}))}))},update:function(i,o){var c=tt(o),u=rt(o);n||De(!1);var l=!function(e,t){if(e===t)return!0;var r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,n=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&n}(i,n.lastCritical);l&&(n.lastCritical=i);var s,d,p=(s=n.lastLocation,d=c,!(null==s&&null==d||null!=s&&null!=d&&s.droppableId===d.droppableId&&s.index===d.index));p&&(n.lastLocation=c);var f=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&(e.draggableId===t.draggableId&&e.droppableId===t.droppableId)}(n.lastCombine,u);if(f&&(n.lastCombine=u),l||p||f){var g=Object(a.a)({},Wr(i,n.mode),{combine:u,destination:c});r.add((function(){Fr(0,(function(){return kr(e().onDragUpdate,g,t,Ne)}))}))}},flush:function(){n||De(!1),r.flush()},drop:i,abort:function(){if(n){var e=Object(a.a)({},Wr(n.lastCritical,n.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,t);return function(e){return function(t){return function(n){if("BEFORE_INITIAL_CAPTURE"!==n.type){if("INITIAL_PUBLISH"===n.type){var i=n.payload.critical;return r.beforeStart(i,n.payload.movementMode),t(n),void r.start(i,n.payload.movementMode)}if("DROP_COMPLETE"===n.type){var o=n.payload.completed.result;return r.flush(),t(n),void r.drop(o)}if(t(n),"FLUSH"!==n.type){var a=e.getState();"DRAGGING"===a.phase&&r.update(a.critical,a.impact)}else r.abort()}else r.beforeCapture(n.payload.draggableId,n.payload.movementMode)}}}},Hr=function(e){return function(t){return function(r){if("DROP_ANIMATION_FINISHED"===r.type){var n=e.getState();"DROP_ANIMATING"!==n.phase&&De(!1),e.dispatch(xr({completed:n.completed}))}else t(r)}}},qr=function(e){var t=null,r=null;return function(n){return function(i){if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||(r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)),n(i),"DROP_ANIMATE"===i.type){var o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};r=requestAnimationFrame((function(){r=null,t=xe(window,[o])}))}}}},Vr=function(e){return function(t){return function(r){if(t(r),"PUBLISH_WHILE_DRAGGING"===r.type){var n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(Ir({reason:n.reason})))}}}},zr=m,Yr=function(e){var t,r=e.dimensionMarshal,n=e.focusMarshal,i=e.styleMarshal,o=e.getResponders,a=e.announce,c=e.autoScroller;return d(lr,zr(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return v({},r,{dispatch:n=m.apply(void 0,o)(r.dispatch)})}}}((t=i,function(){return function(e){return function(r){"INITIAL_PUBLISH"===r.type&&t.dragging(),"DROP_ANIMATE"===r.type&&t.dropping(r.payload.completed.result.reason),"FLUSH"!==r.type&&"DROP_COMPLETE"!==r.type||t.resting(),e(r)}}}),function(e){return function(){return function(t){return function(r){"DROP_COMPLETE"!==r.type&&"FLUSH"!==r.type&&"DROP_ANIMATE"!==r.type||e.stopPublishing(),t(r)}}}}(r),function(e){return function(t){var r=t.getState,n=t.dispatch;return function(t){return function(i){if("LIFT"===i.type){var o=i.payload,a=o.id,c=o.clientSelection,u=o.movementMode,l=r();"DROP_ANIMATING"===l.phase&&n(xr({completed:l.completed})),"IDLE"!==r().phase&&De(!1),n({type:"FLUSH",payload:null}),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:u}});var s={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===u}},d=e.startPublishing(s),p=d.critical,f=d.dimensions,g=d.viewport;n(function(e){return{type:"INITIAL_PUBLISH",payload:e}}({critical:p,dimensions:f,clientSelection:c,movementMode:u,viewport:g}))}else t(i)}}}}(r),jr,Hr,qr,Vr,function(e){return function(t){return function(r){return function(n){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n))return e.stop(),void r(n);if("INITIAL_PUBLISH"===n.type){r(n);var i=t.getState();return"DRAGGING"!==i.phase&&De(!1),void e.start(i)}r(n),e.scroll(t.getState())}}}}(c),Gr,function(e){var t=!1;return function(){return function(r){return function(n){if("INITIAL_PUBLISH"===n.type)return t=!0,e.tryRecordFocus(n.payload.critical.draggable.id),r(n),void e.tryRestoreFocusRecorded();if(r(n),t){if("FLUSH"===n.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===n.type){t=!1;var i=n.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(n),Ur(o,a))))};var $r=function(e){var t=e.scrollHeight,r=e.scrollWidth,n=e.height,i=e.width,o=je({x:r,y:t},{x:i,y:n});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},Xr=function(){var e=document.documentElement;return e||De(!1),e},Jr=function(){var e=Xr();return $r({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Kr=function(e){var t=e.critical,r=e.scrollOptions,n=e.registry;rr();var i=function(){var e=Lr(),t=Jr(),r=e.y,n=e.x,i=Xr(),o=i.clientWidth,a=i.clientHeight;return{frame:ae({top:r,left:n,right:n+o,bottom:r+a}),scroll:{initial:e,current:e,max:t,diff:{value:Be,displacement:Be}}}}(),o=i.scroll.current,a=t.droppable,c=n.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(o,r)})),u=n.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(o)})),l={draggables:Ke(u),droppables:Je(c)};return nr(),{dimensions:l,critical:t,viewport:i}};function Qr(e,t,r){return r.descriptor.id!==t.id&&(r.descriptor.type===t.type&&"virtual"===e.droppable.getById(r.descriptor.droppableId).descriptor.mode)}var Zr=function(e,t){var r=null,n=function(e){var t=e.registry,r=e.callbacks,n={additions:{},removals:{},modified:{}},i=null,o=function(){i||(r.collectionStarting(),i=requestAnimationFrame((function(){i=null,rr();var e=n,o=e.additions,a=e.removals,c=e.modified,u=Object.keys(o).map((function(e){return t.draggable.getById(e).getDimension(Be)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),l=Object.keys(c).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),s={additions:u,removals:Object.keys(a),modified:l};n={additions:{},removals:{},modified:{}},nr(),r.publish(s)})))};return{add:function(e){var t=e.descriptor.id;n.additions[t]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[t]&&delete n.removals[t],o()},remove:function(e){var t=e.descriptor;n.removals[t.id]=!0,n.modified[t.droppableId]=!0,n.additions[t.id]&&delete n.additions[t.id],o()},stop:function(){i&&(cancelAnimationFrame(i),i=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(t){r||De(!1);var i=r.critical.draggable;"ADDITION"===t.type&&Qr(e,i,t.value)&&n.add(t.value),"REMOVAL"===t.type&&Qr(e,i,t.value)&&n.remove(t.value)};return{updateDroppableIsEnabled:function(n,i){e.droppable.exists(n)||De(!1),r&&t.updateDroppableIsEnabled({id:n,isEnabled:i})},updateDroppableIsCombineEnabled:function(n,i){r&&(e.droppable.exists(n)||De(!1),t.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:i}))},scrollDroppable:function(t,n){r&&e.droppable.getById(t).callbacks.scroll(n)},updateDroppableScroll:function(n,i){r&&(e.droppable.exists(n)||De(!1),t.updateDroppableScroll({id:n,newScroll:i}))},startPublishing:function(t){r&&De(!1);var n=e.draggable.getById(t.draggableId),o=e.droppable.getById(n.descriptor.droppableId),a={draggable:n.descriptor,droppable:o.descriptor},c=e.subscribe(i);return r={critical:a,unsubscribe:c},Kr({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(r){n.stop();var t=r.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),r.unsubscribe(),r=null}}}},en=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},tn=function(e){window.scrollBy(e.x,e.y)},rn=Object(ve.a)((function(e){return Qe(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),nn=function(e){var t=e.center,r=e.destination,n=e.droppables;if(r){var i=n[r];return i.frame?i:null}return function(e,t){return $e(rn(t),(function(t){return t.frame||De(!1),qt(t.frame.pageMarginBox)(e)}))}(t,n)},on=.25,an=.05,cn=28,un=function(e){return Math.pow(e,2)},ln={stopDampeningAt:1200,accelerateAt:360},sn=function(e){var t=e.startOfRange,r=e.endOfRange,n=e.current,i=r-t;return 0===i?0:(n-t)/i},dn=ln.accelerateAt,pn=ln.stopDampeningAt,fn=function(e){var t=e.distanceToEdge,r=e.thresholds,n=e.dragStartTime,i=e.shouldUseTimeDampening,o=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return cn;if(e===t.startScrollingFrom)return 1;var r=sn({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),n=cn*un(1-r);return Math.ceil(n)}(t,r);return 0===o?0:i?Math.max(function(e,t){var r=t,n=pn,i=Date.now()-r;if(i>=pn)return e;if(i<dn)return 1;var o=sn({startOfRange:dn,endOfRange:n,current:i}),a=e*un(o);return Math.ceil(a)}(o,n),1):o},gn=function(e){var t=e.container,r=e.distanceToEdges,n=e.dragStartTime,i=e.axis,o=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*on,maxScrollValueAt:e[t.size]*an}}(t,i);return r[i.end]<r[i.start]?fn({distanceToEdge:r[i.end],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o}):-1*fn({distanceToEdge:r[i.start],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o})},bn=We((function(e){return 0===e?0:e})),vn=function(e){var t=e.dragStartTime,r=e.container,n=e.subject,i=e.center,o=e.shouldUseTimeDampening,a={top:i.y-r.top,right:r.right-i.x,bottom:r.bottom-i.y,left:i.x-r.left},c=gn({container:r,distanceToEdges:a,dragStartTime:t,axis:dt,shouldUseTimeDampening:o}),u=gn({container:r,distanceToEdges:a,dragStartTime:t,axis:pt,shouldUseTimeDampening:o}),l=bn({x:u,y:c});if(Le(l,Be))return null;var s=function(e){var t=e.container,r=e.subject,n=e.proposedScroll,i=r.height>t.height,o=r.width>t.width;return o||i?o&&i?null:{x:o?0:n.x,y:i?0:n.y}:n}({container:r,subject:n,proposedScroll:l});return s?Le(s,Be)?null:s:null},mn=We((function(e){return 0===e?0:e>0?1:-1})),hn=function(){var e=function(e,t){return e<0?e:e>t?e-t:0};return function(t){var r=t.current,n=t.max,i=t.change,o=Te(r,i),a={x:e(o.x,n.x),y:e(o.y,n.y)};return Le(a,Be)?null:a}}(),yn=function(e){var t=e.max,r=e.current,n=e.change,i={x:Math.max(r.x,t.x),y:Math.max(r.y,t.y)},o=mn(n),a=hn({max:i,current:r,change:o});return!a||(0!==o.x&&0===a.x||0!==o.y&&0===a.y)},xn=function(e,t){return yn({current:e.scroll.current,max:e.scroll.max,change:t})},In=function(e,t){var r=e.frame;return!!r&&yn({current:r.scroll.current,max:r.scroll.max,change:t})},Dn=function(e){var t=e.state,r=e.dragStartTime,n=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,a=t.current.page.borderBoxCenter,c=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var u=function(e){var t=e.viewport,r=e.subject,n=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=vn({dragStartTime:i,container:t.frame,subject:r,center:n,shouldUseTimeDampening:o});return a&&xn(t,a)?a:null}({dragStartTime:r,viewport:t.viewport,subject:c,center:a,shouldUseTimeDampening:n});if(u)return void i(u)}var l=nn({center:a,destination:kt(t.impact),droppables:t.dimensions.droppables});if(l){var s=function(e){var t=e.droppable,r=e.subject,n=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var c=vn({dragStartTime:i,container:a.pageMarginBox,subject:r,center:n,shouldUseTimeDampening:o});return c&&In(t,c)?c:null}({dragStartTime:r,droppable:l,subject:c,center:a,shouldUseTimeDampening:n});s&&o(l.descriptor.id,s)}},On=function(e){var t=e.move,r=e.scrollDroppable,n=e.scrollWindow,i=function(e,t){if(!In(e,t))return t;var n=function(e,t){var r=e.frame;return r&&In(e,t)?hn({current:r.scroll.current,max:r.scroll.max,change:t}):null}(e,t);if(!n)return r(e.descriptor.id,t),null;var i=je(t,n);return r(e.descriptor.id,i),je(t,i)},o=function(e,t,r){if(!e)return r;if(!xn(t,r))return r;var i=function(e,t){if(!xn(e,t))return null;var r=e.scroll.max,n=e.scroll.current;return hn({current:n,max:r,change:t})}(t,r);if(!i)return n(r),null;var o=je(r,i);return n(o),je(r,o)};return function(e){var r=e.scrollJumpRequest;if(r){var n=kt(e.impact);n||De(!1);var a=i(e.dimensions.droppables[n],r);if(a){var c=e.viewport,u=o(e.isWindowScrollAllowed,c,a);u&&function(e,r){var n=Te(e.current.client.selection,r);t({client:n})}(e,u)}}}},wn=function(e){var t=e.scrollDroppable,r=e.scrollWindow,n=e.move,i=function(e){var t=e.scrollWindow,r=e.scrollDroppable,n=me(t),i=me(r),o=null,a=function(e){o||De(!1);var t=o,r=t.shouldUseTimeDampening,a=t.dragStartTime;Dn({state:e,scrollWindow:n,scrollDroppable:i,dragStartTime:a,shouldUseTimeDampening:r})};return{start:function(e){rr(),o&&De(!1);var t=Date.now(),r=!1,n=function(){r=!0};Dn({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:n,scrollDroppable:n}),o={dragStartTime:t,shouldUseTimeDampening:r},nr(),r&&a(e)},stop:function(){o&&(n.cancel(),i.cancel(),o=null)},scroll:a}}({scrollWindow:r,scrollDroppable:t}),o=On({move:n,scrollWindow:r,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&o(e):i.scroll(e))},start:i.start,stop:i.stop}},En=function(){var e="data-rbd-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),Cn=function(){var e="data-rbd-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Sn=function(){var e="data-rbd-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),An={contextId:"data-rbd-scroll-container-context-id"},Pn=function(e,t){return e.map((function(e){var r=e.styles[t];return r?e.selector+" { "+r+" }":""})).join(" ")},Nn="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?n.useLayoutEffect:n.useEffect,Rn=function(){var e=document.querySelector("head");return e||De(!1),e},Bn=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function Tn(e,t){var r=ne((function(){return function(e){var t,r=(t=e,function(e){return"["+e+'="'+t+'"]'}),n=function(){var e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:r(En.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}}(),i=[function(){var e="\n transition: "+Sr.outOfTheWay+";\n ";return{selector:r(Cn.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),n,{selector:r(Sn.contextId),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:Pn(i,"always"),resting:Pn(i,"resting"),dragging:Pn(i,"dragging"),dropAnimating:Pn(i,"dropAnimating"),userCancel:Pn(i,"userCancel")}}(e)}),[e]),i=Object(n.useRef)(null),o=Object(n.useRef)(null),a=ie(Object(ve.a)((function(e){var t=o.current;t||De(!1),t.textContent=e})),[]),c=ie((function(e){var t=i.current;t||De(!1),t.textContent=e}),[]);Nn((function(){(i.current||o.current)&&De(!1);var n=Bn(t),u=Bn(t);return i.current=n,o.current=u,n.setAttribute("data-rbd-always",e),u.setAttribute("data-rbd-dynamic",e),Rn().appendChild(n),Rn().appendChild(u),c(r.always),a(r.resting),function(){var e=function(e){var t=e.current;t||De(!1),Rn().removeChild(t),e.current=null};e(i),e(o)}}),[t,c,a,r.always,r.resting,e]);var u=ie((function(){return a(r.dragging)}),[a,r.dragging]),l=ie((function(e){a("DROP"!==e?r.userCancel:r.dropAnimating)}),[a,r.dropAnimating,r.userCancel]),s=ie((function(){o.current&&a(r.resting)}),[a,r.resting]);return ne((function(){return{dragging:u,dropping:l,resting:s}}),[u,l,s])}var jn=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Ln(e){return e instanceof jn(e).HTMLElement}function Mn(e,t){var r="["+En.contextId+'="'+e+'"]',n=Xe(document.querySelectorAll(r));if(!n.length)return null;var i=$e(n,(function(e){return e.getAttribute(En.draggableId)===t}));return i&&Ln(i)?i:null}function Gn(){var e={draggables:{},droppables:{}},t=[];function r(e){t.length&&t.forEach((function(t){return t(e)}))}function n(t){return e.draggables[t]||null}function i(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,r({type:"ADDITION",value:t})},update:function(t,r){var n=e.draggables[r.descriptor.id];n&&n.uniqueId===t.uniqueId&&(delete e.draggables[r.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var i=t.descriptor.id,o=n(i);o&&t.uniqueId===o.uniqueId&&(delete e.draggables[i],r({type:"REMOVAL",value:t}))},getById:function(e){var t=n(e);return t||De(!1),t},findById:n,exists:function(e){return Boolean(n(e))},getAllByType:function(t){return ze(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var r=i(t.descriptor.id);r&&t.uniqueId===r.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=i(e);return t||De(!1),t},findById:i,exists:function(e){return Boolean(i(e))},getAllByType:function(t){return ze(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var r=t.indexOf(e);-1!==r&&t.splice(r,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var _n=i.a.createContext(null),Fn=function(){var e=document.body;return e||De(!1),e},Wn={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var kn=0,Un={separator:"::"};function Hn(e,t){return void 0===t&&(t=Un),ne((function(){return""+e+t.separator+kn++}),[t.separator,e])}var qn=i.a.createContext(null);function Vn(e){0}function zn(e,t){Vn()}function Yn(){zn()}function $n(e){var t=Object(n.useRef)(e);return Object(n.useEffect)((function(){t.current=e})),t}var Xn,Jn=((Xn={})[13]=!0,Xn[9]=!0,Xn),Kn=function(e){Jn[e.keyCode]&&e.preventDefault()},Qn=function(){var e="visibilitychange";return"undefined"===typeof document?e:$e([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var Zn,ei={type:"IDLE"};function ti(e){var t=e.cancel,r=e.completed,n=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,r=e.clientX,o=e.clientY;if(0===t){var a={x:r,y:o},c=n();if("DRAGGING"===c.type)return e.preventDefault(),void c.actions.move(a);"PENDING"!==c.type&&De(!1);var u=c.point;if(l=u,s=a,Math.abs(s.x-l.x)>=5||Math.abs(s.y-l.y)>=5){var l,s;e.preventDefault();var d=c.actions.fluidLift(a);i({type:"DRAGGING",actions:d})}}}},{eventName:"mouseup",fn:function(e){var i=n();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===n().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==n().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Kn(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===n().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var r=n();"IDLE"===r.type&&De(!1),r.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Qn,fn:t}]}function ri(){}var ni=((Zn={})[34]=!0,Zn[33]=!0,Zn[36]=!0,Zn[35]=!0,Zn);function ii(e,t){function r(){t(),e.cancel()}return[{eventName:"keydown",fn:function(n){return 27===n.keyCode?(n.preventDefault(),void r()):32===n.keyCode?(n.preventDefault(),t(),void e.drop()):40===n.keyCode?(n.preventDefault(),void e.moveDown()):38===n.keyCode?(n.preventDefault(),void e.moveUp()):39===n.keyCode?(n.preventDefault(),void e.moveRight()):37===n.keyCode?(n.preventDefault(),void e.moveLeft()):void(ni[n.keyCode]?n.preventDefault():Kn(n))}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:Qn,fn:r}]}var oi={type:"IDLE"};var ai={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function ci(e,t){var r=t.target;return!!Ln(r)&&function e(t,r){if(null==r)return!1;if(Boolean(ai[r.tagName.toLowerCase()]))return!0;var n=r.getAttribute("contenteditable");return"true"===n||""===n||r!==t&&e(t,r.parentElement)}(e,r)}var ui=function(e){return ae(e.getBoundingClientRect()).center};var li="undefined"===typeof document?"matches":$e(["matches","msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||"matches";function si(e,t){return e.closest?e.closest(t):function e(t,r){return null==t?null:t[li](r)?t:e(t.parentElement,r)}(e,t)}function di(e,t){var r,n=t.target;if(!((r=n)instanceof jn(r).Element))return null;var i=si(n,function(e){return"["+En.contextId+'="'+e+'"]'}(e));return i&&Ln(i)?i:null}function pi(e){e.preventDefault()}function fi(e){var t=e.expected,r=e.phase,n=e.isLockActive;e.shouldWarn;return!!n()&&t===r}function gi(e){var t=e.lockAPI,r=e.store,n=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var o=n.draggable.findById(i);return!!o&&(!!o.options.isEnabled&&!!en(r.getState(),i))}function bi(e){var t=e.lockAPI,r=e.contextId,n=e.store,i=e.registry,o=e.draggableId,c=e.forceSensorStop,u=e.sourceEvent;if(!gi({lockAPI:t,store:n,registry:i,draggableId:o}))return null;var l=i.draggable.getById(o),s=function(e,t){var r="["+Cn.contextId+'="'+e+'"]',n=$e(Xe(document.querySelectorAll(r)),(function(e){return e.getAttribute(Cn.id)===t}));return n&&Ln(n)?n:null}(r,l.descriptor.id);if(!s)return null;if(u&&!l.options.canDragInteractiveElements&&ci(s,u))return null;var d=t.claim(c||ye),p="PRE_DRAG";function f(){return l.options.shouldRespectForcePress}function g(){return t.isActive(d)}var b=function(e,t){fi({expected:e,phase:p,isLockActive:g,shouldWarn:!0})&&n.dispatch(t())}.bind(null,"DRAGGING");function v(e){function r(){t.release(),p="COMPLETED"}function i(t,i){if(void 0===i&&(i={shouldBlockNextClick:!1}),e.cleanup(),i.shouldBlockNextClick){var o=xe(window,[{eventName:"click",fn:pi,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(o)}r(),n.dispatch(Ir({reason:t}))}return"PRE_DRAG"!==p&&(r(),"PRE_DRAG"!==p&&De(!1)),n.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),p="DRAGGING",Object(a.a)({isActive:function(){return fi({expected:"DRAGGING",phase:p,isLockActive:g,shouldWarn:!1})},shouldRespectForcePress:f,drop:function(e){return i("DROP",e)},cancel:function(e){return i("CANCEL",e)}},e.actions)}return{isActive:function(){return fi({expected:"PRE_DRAG",phase:p,isLockActive:g,shouldWarn:!1})},shouldRespectForcePress:f,fluidLift:function(e){var t=me((function(e){b((function(){return br({client:e})}))})),r=v({liftActionArgs:{id:o,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return Object(a.a)({},r,{move:t})},snapLift:function(){var e={moveUp:function(){return b(vr)},moveRight:function(){return b(hr)},moveDown:function(){return b(mr)},moveLeft:function(){return b(yr)}};return v({liftActionArgs:{id:o,clientSelection:ui(s),movementMode:"SNAP"},cleanup:ye,actions:e})},abort:function(){fi({expected:"PRE_DRAG",phase:p,isLockActive:g,shouldWarn:!0})&&t.release()}}}var vi=[function(e){var t=Object(n.useRef)(ei),r=Object(n.useRef)(ye),i=ne((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var n=e.findClosestDraggableId(t);if(n){var i=e.tryGetLock(n,c,{sourceEvent:t});if(i){t.preventDefault();var o={x:t.clientX,y:t.clientY};r.current(),s(i,o)}}}}}}),[e]),o=ne((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var n=e.findOptionsForDraggable(r);n&&(n.shouldRespectForcePress||e.canGetLock(r)&&t.preventDefault())}}}}}),[e]),a=ie((function(){r.current=xe(window,[o,i],{passive:!1,capture:!0})}),[o,i]),c=ie((function(){"IDLE"!==t.current.type&&(t.current=ei,r.current(),a())}),[a]),u=ie((function(){var e=t.current;c(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[c]),l=ie((function(){var e=ti({cancel:u,completed:c,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});r.current=xe(window,e,{capture:!0,passive:!1})}),[u,c]),s=ie((function(e,r){"IDLE"!==t.current.type&&De(!1),t.current={type:"PENDING",point:r,actions:e},l()}),[l]);Nn((function(){return a(),function(){r.current()}}),[a])},function(e){var t=Object(n.useRef)(ri),r=ne((function(){return{eventName:"keydown",fn:function(r){if(!r.defaultPrevented&&32===r.keyCode){var n=e.findClosestDraggableId(r);if(n){var o=e.tryGetLock(n,u,{sourceEvent:r});if(o){r.preventDefault();var a=!0,c=o.snapLift();t.current(),t.current=xe(window,ii(c,u),{capture:!0,passive:!1})}}}function u(){a||De(!1),a=!1,t.current(),i()}}}}),[e]),i=ie((function(){t.current=xe(window,[r],{passive:!1,capture:!0})}),[r]);Nn((function(){return i(),function(){t.current()}}),[i])},function(e){var t=Object(n.useRef)(oi),r=Object(n.useRef)(ye),i=ie((function(){return t.current}),[]),o=ie((function(e){t.current=e}),[]),a=ne((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var i=e.tryGetLock(n,u,{sourceEvent:t});if(i){var o=t.touches[0],a={x:o.clientX,y:o.clientY};r.current(),p(i,a)}}}}}}),[e]),c=ie((function(){r.current=xe(window,[a],{capture:!0,passive:!1})}),[a]),u=ie((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(oi),r.current(),c())}),[c,o]),l=ie((function(){var e=t.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[u]),s=ie((function(){var e={capture:!0,passive:!1},t={cancel:l,completed:u,getPhase:i},n=xe(window,function(e){var t=e.cancel,r=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var r=n();if("DRAGGING"===r.type){r.hasMoved=!0;var i=e.touches[0],o={x:i.clientX,y:i.clientY};e.preventDefault(),r.actions.move(o)}else t()}},{eventName:"touchend",fn:function(e){var i=n();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===n().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var r=n();"IDLE"===r.type&&De(!1);var i=e.touches[0];if(i&&i.force>=.15){var o=r.actions.shouldRespectForcePress();if("PENDING"!==r.type)return o?r.hasMoved?void e.preventDefault():void t():void e.preventDefault();o&&t()}}},{eventName:Qn,fn:t}]}(t),e),o=xe(window,function(e){var t=e.cancel,r=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===r().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Qn,fn:t}]}(t),e);r.current=function(){n(),o()}}),[l,i,u]),d=ie((function(){var e=i();"PENDING"!==e.type&&De(!1);var t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})}),[i,o]),p=ie((function(e,t){"IDLE"!==i().type&&De(!1);var r=setTimeout(d,120);o({type:"PENDING",point:t,actions:e,longPressTimerId:r}),s()}),[s,i,o,d]);Nn((function(){return c(),function(){r.current();var e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(oi))}}),[i,c,o]),Nn((function(){return xe(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function mi(e){var t=e.contextId,r=e.store,i=e.registry,o=e.customSensors,a=e.enableDefaultSensors,c=[].concat(a?vi:[],o||[]),u=Object(n.useState)((function(){return function(){var e=null;function t(){e||De(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&De(!1);var r={abandon:t};return e=r,r},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],l=ie((function(e,t){e.isDragging&&!t.isDragging&&u.tryAbandon()}),[u]);Nn((function(){var e=r.getState();return r.subscribe((function(){var t=r.getState();l(e,t),e=t}))}),[u,r,l]),Nn((function(){return u.tryAbandon}),[u.tryAbandon]);var s=ie((function(e){return gi({lockAPI:u,registry:i,store:r,draggableId:e})}),[u,i,r]),d=ie((function(e,n,o){return bi({lockAPI:u,registry:i,contextId:t,store:r,draggableId:e,forceSensorStop:n,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null})}),[t,u,i,r]),p=ie((function(e){return function(e,t){var r=di(e,t);return r?r.getAttribute(En.draggableId):null}(t,e)}),[t]),f=ie((function(e){var t=i.draggable.findById(e);return t?t.options:null}),[i.draggable]),g=ie((function(){u.isClaimed()&&(u.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch({type:"FLUSH",payload:null}))}),[u,r]),b=ie(u.isClaimed,[u]),v=ne((function(){return{canGetLock:s,tryGetLock:d,findClosestDraggableId:p,findOptionsForDraggable:f,tryReleaseLock:g,isLockClaimed:b}}),[s,d,p,f,g,b]);Vn();for(var m=0;m<c.length;m++)c[m](v)}function hi(e){return e.current||De(!1),e.current}function yi(e){var t=e.contextId,r=e.setCallbacks,o=e.sensors,c=e.nonce,u=e.dragHandleUsageInstructions,l=Object(n.useRef)(null);Yn();var s=$n(e),d=ie((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(s.current)}),[s]),p=function(e){var t=ne((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),r=Object(n.useRef)(null);return Object(n.useEffect)((function(){var e=document.createElement("div");return r.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),Object(a.a)(e.style,Wn),Fn().appendChild(e),function(){setTimeout((function(){var t=Fn();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[t]),ie((function(e){var t=r.current;t&&(t.textContent=e)}),[])}(t),g=function(e){var t=e.contextId,r=e.text,i=Hn("hidden-text",{separator:"-"}),o=ne((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:i}).contextId+"-"+e.uniqueId;var e}),[i,t]);return Object(n.useEffect)((function(){var e=document.createElement("div");return e.id=o,e.textContent=r,e.style.display="none",Fn().appendChild(e),function(){var t=Fn();t.contains(e)&&t.removeChild(e)}}),[o,r]),o}({contextId:t,text:u}),b=Tn(t,c),v=ie((function(e){hi(l).dispatch(e)}),[]),m=ne((function(){return f({publishWhileDragging:sr,updateDroppableScroll:pr,updateDroppableIsEnabled:fr,updateDroppableIsCombineEnabled:gr,collectionStarting:dr},v)}),[v]),h=function(){var e=ne(Gn,[]);return Object(n.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),y=ne((function(){return Zr(h,m)}),[h,m]),x=ne((function(){return wn(Object(a.a)({scrollWindow:tn,scrollDroppable:y.scrollDroppable},f({move:br},v)))}),[y.scrollDroppable,v]),I=function(e){var t=Object(n.useRef)({}),r=Object(n.useRef)(null),i=Object(n.useRef)(null),o=Object(n.useRef)(!1),a=ie((function(e,r){var n={id:e,focus:r};return t.current[e]=n,function(){var r=t.current;r[e]!==n&&delete r[e]}}),[]),c=ie((function(t){var r=Mn(e,t);r&&r!==document.activeElement&&r.focus()}),[e]),u=ie((function(e,t){r.current===e&&(r.current=t)}),[]),l=ie((function(){i.current||o.current&&(i.current=requestAnimationFrame((function(){i.current=null;var e=r.current;e&&c(e)})))}),[c]),s=ie((function(e){r.current=null;var t=document.activeElement;t&&t.getAttribute(En.draggableId)===e&&(r.current=e)}),[]);return Nn((function(){return o.current=!0,function(){o.current=!1;var e=i.current;e&&cancelAnimationFrame(e)}}),[]),ne((function(){return{register:a,tryRecordFocus:s,tryRestoreFocusRecorded:l,tryShiftRecord:u}}),[a,s,l,u])}(t),D=ne((function(){return Yr({announce:p,autoScroller:x,dimensionMarshal:y,focusMarshal:I,getResponders:d,styleMarshal:b})}),[p,x,y,I,d,b]);l.current=D;var w=ie((function(){var e=hi(l);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),E=ie((function(){var e=hi(l).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);r(ne((function(){return{isDragging:E,tryAbort:w}}),[E,w]));var C=ie((function(e){return en(hi(l).getState(),e)}),[]),S=ie((function(){return Ht(hi(l).getState())}),[]),A=ne((function(){return{marshal:y,focus:I,contextId:t,canLift:C,isMovementAllowed:S,dragHandleUsageInstructionsId:g,registry:h}}),[t,y,g,I,C,S,h]);return mi({contextId:t,store:D,registry:h,customSensors:o,enableDefaultSensors:!1!==e.enableDefaultSensors}),Object(n.useEffect)((function(){return w}),[w]),i.a.createElement(qn.Provider,{value:A},i.a.createElement(O,{context:_n,store:D},e.children))}var xi=0;function Ii(){xi=0,kn=0}function Di(e){var t=ne((function(){return""+xi++}),[]),r=e.dragHandleUsageInstructions||Ae;return i.a.createElement(Oe,null,(function(n){return i.a.createElement(yi,{nonce:e.nonce,contextId:t,setCallbacks:n,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var Oi=function(e){return function(t){return e===t}},wi=Oi("scroll"),Ei=Oi("auto"),Ci=(Oi("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),Si=function(e){var t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return Ci(r,wi)||Ci(r,Ei)},Ai=function e(t){return null==t||t===document.body||t===document.documentElement?null:Si(t)?t:e(t.parentElement)},Pi=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Ni=function(e){return{closestScrollable:Ai(e),isFixedOnPage:function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))}(e)}},Ri=function(e){var t=e.ref,r=e.descriptor,n=e.env,i=e.windowScroll,o=e.direction,a=e.isDropDisabled,c=e.isCombineEnabled,u=e.shouldClipSubject,l=n.closestScrollable,s=function(e,t){var r=be(e);if(!t)return r;if(e!==t)return r;var n=r.paddingBox.top-t.scrollTop,i=r.paddingBox.left-t.scrollLeft,o=n+t.scrollHeight,a=i+t.scrollWidth,c=ce({top:n,right:a,bottom:o,left:i},r.border);return se({borderBox:c,margin:r.margin,border:r.border,padding:r.padding})}(t,l),d=fe(s,i),p=function(){if(!l)return null;var e=be(l),t={scrollHeight:l.scrollHeight,scrollWidth:l.scrollWidth};return{client:e,page:fe(e,i),scroll:Pi(l),scrollSize:t,shouldClipSubject:u}}();return function(e){var t=e.descriptor,r=e.isEnabled,n=e.isCombineEnabled,i=e.isFixedOnPage,o=e.direction,a=e.client,c=e.page,u=e.closest,l=function(){if(!u)return null;var e=u.scrollSize,t=u.client,r=$r({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:u.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:u.shouldClipSubject,scroll:{initial:u.scroll,current:u.scroll,max:r,diff:{value:Be,displacement:Be}}}}(),s="vertical"===o?dt:pt;return{descriptor:t,isCombineEnabled:n,isFixedOnPage:i,axis:s,isEnabled:r,client:a,page:c,frame:l,subject:qe({page:c,withPlaceholder:null,axis:s,frame:l})}}({descriptor:r,isEnabled:!a,isCombineEnabled:c,isFixedOnPage:n.isFixedOnPage,direction:o,client:s,page:d,closest:p})},Bi={passive:!1},Ti={passive:!0},ji=function(e){return e.shouldPublishImmediately?Bi:Ti};function Li(e){var t=Object(n.useContext)(e);return t||De(!1),t}var Mi=function(e){return e&&e.env.closestScrollable||null};function Gi(){}var _i={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Fi=function(e){var t=e.isAnimatingOpenOnMount,r=e.placeholder,n=e.animate,i=function(e){var t=e.isAnimatingOpenOnMount,r=e.placeholder,n=e.animate;return t||"close"===n?_i:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}}({isAnimatingOpenOnMount:t,placeholder:r,animate:n});return{display:r.display,boxSizing:"border-box",width:i.width,height:i.height,marginTop:i.margin.top,marginRight:i.margin.right,marginBottom:i.margin.bottom,marginLeft:i.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==n?Sr.placeholder:null}};var Wi=i.a.memo((function(e){var t=Object(n.useRef)(null),r=ie((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),o=e.animate,a=e.onTransitionEnd,c=e.onClose,u=e.contextId,l=Object(n.useState)("open"===e.animate),s=l[0],d=l[1];Object(n.useEffect)((function(){return s?"open"!==o?(r(),d(!1),Gi):t.current?Gi:(t.current=setTimeout((function(){t.current=null,d(!1)})),r):Gi}),[o,s,r]);var p=ie((function(e){"height"===e.propertyName&&(a(),"close"===o&&c())}),[o,c,a]),f=Fi({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return i.a.createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":u,onTransitionEnd:p,ref:e.innerRef})})),ki=i.a.createContext(null);var Ui=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return Object(o.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.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)},t}(i.a.PureComponent),Hi=5e3,qi=4500,Vi=function(e,t){return t?Sr.drop(t.duration):e?Sr.snap:Sr.fluid},zi=function(e,t){return e?t?wr.drop:wr.combining:null};function Yi(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,r=e.offset,n=e.combineWith,i=e.dropping,o=Boolean(n),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),c=Boolean(i),u=c?Nr(r,o):Pr(r);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Vi(a,i),transform:u,opacity:zi(o,c),zIndex:c?qi:Hi,pointerEvents:"none"}}(e):{transform:Pr((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function $i(e){var t=Hn("draggable"),r=e.descriptor,i=e.registry,o=e.getDraggableRef,a=e.canDragInteractiveElements,c=e.shouldRespectForcePress,u=e.isEnabled,l=ne((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:c,isEnabled:u}}),[a,u,c]),s=ie((function(e){var t=o();return t||De(!1),function(e,t,r){void 0===r&&(r=Be);var n=window.getComputedStyle(t),i=t.getBoundingClientRect(),o=ge(i,n),a=fe(o,r);return{descriptor:e,placeholder:{client:o,tagName:t.tagName.toLowerCase(),display:n.display},displaceBy:{x:o.marginBox.width,y:o.marginBox.height},client:o,page:a}}(r,t,e)}),[r,o]),d=ne((function(){return{uniqueId:t,descriptor:r,options:l,getDimension:s}}),[r,s,l,t]),p=Object(n.useRef)(d),f=Object(n.useRef)(!0);Nn((function(){return i.draggable.register(p.current),function(){return i.draggable.unregister(p.current)}}),[i.draggable]),Nn((function(){if(f.current)f.current=!1;else{var e=p.current;p.current=d,i.draggable.update(d,e)}}),[d,i.draggable])}function Xi(e,t,r){zn()}function Ji(e){e.preventDefault()}var Ki=function(e,t){return e===t},Qi=function(e){var t=e.combine,r=e.destination;return r?r.droppableId:t?t.droppableId:null};function Zi(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var eo={mapped:{type:"SECONDARY",offset:Be,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Zi(null)}};var to=Q((function(){var e=function(){var e=Object(ve.a)((function(e,t){return{x:e,y:t}})),t=Object(ve.a)((function(e,t,r,n,i){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:r,combineWith:n,combineTargetFor:null}})),r=Object(ve.a)((function(e,r,n,i,o,a,c){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:o,combineWith:a,mode:r,offset:e,dimension:n,forceShouldAnimate:c,snapshot:t(r,i,o,a,null)}}}));return function(n,i){if(n.isDragging){if(n.critical.draggable.id!==i.draggableId)return null;var o=n.current.client.offset,a=n.dimensions.draggables[i.draggableId],c=kt(n.impact),u=(s=n.impact).at&&"COMBINE"===s.at.type?s.at.combine.draggableId:null,l=n.forceShouldAnimate;return r(e(o.x,o.y),n.movementMode,a,i.isClone,c,u,l)}var s;if("DROP_ANIMATING"===n.phase){var d=n.completed;if(d.result.draggableId!==i.draggableId)return null;var p=i.isClone,f=n.dimensions.draggables[i.draggableId],g=d.result,b=g.mode,v=Qi(g),m=function(e){return e.combine?e.combine.draggableId:null}(g),h={duration:n.dropDuration,curve:Or,moveTo:n.newHomeClientOffset,opacity:m?wr.drop:null,scale:m?Er.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:f,dropping:h,draggingOver:v,combineWith:m,mode:b,forceShouldAnimate:null,snapshot:t(b,p,v,m,h)}}}return null}}(),t=function(){var e=Object(ve.a)((function(e,t){return{x:e,y:t}})),t=Object(ve.a)(Zi),r=Object(ve.a)((function(e,r,n){return void 0===r&&(r=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:r,shouldAnimateDisplacement:n,snapshot:t(r)}}})),n=function(e){return e?r(Be,e,!0):null},i=function(t,i,o,a){var c=o.displaced.visible[t],u=Boolean(a.inVirtualList&&a.effected[t]),l=rt(o),s=l&&l.draggableId===t?i:null;if(!c){if(!u)return n(s);if(o.displaced.invisible[t])return null;var d=Me(a.displacedBy.point),p=e(d.x,d.y);return r(p,s,!0)}if(u)return n(s);var f=o.displacedBy.point,g=e(f.x,f.y);return r(g,s,c.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:i(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var r=e.completed;return r.result.draggableId===t.draggableId?null:i(t.draggableId,r.result.draggableId,r.impact,r.afterCritical)}return null}}();return function(r,n){return e(r,n)||t(r,n)||eo}}),{dropAnimationFinished:Dr},null,{context:_n,pure:!0,areStatePropsEqual:Ki})((function(e){var t=Object(n.useRef)(null),r=ie((function(e){t.current=e}),[]),i=ie((function(){return t.current}),[]),o=Li(qn),a=o.contextId,c=o.dragHandleUsageInstructionsId,u=o.registry,l=Li(ki),s=l.type,d=l.droppableId,p=ne((function(){return{id:e.draggableId,index:e.index,type:s,droppableId:d}}),[e.draggableId,e.index,s,d]),f=e.children,g=e.draggableId,b=e.isEnabled,v=e.shouldRespectForcePress,m=e.canDragInteractiveElements,h=e.isClone,y=e.mapped,x=e.dropAnimationFinished;Xi(),Vn(),h||$i(ne((function(){return{descriptor:p,registry:u,getDraggableRef:i,canDragInteractiveElements:m,shouldRespectForcePress:v,isEnabled:b}}),[p,u,i,m,v,b]));var I=ne((function(){return b?{tabIndex:0,role:"button","aria-describedby":c,"data-rbd-drag-handle-draggable-id":g,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:Ji}:null}),[a,c,g,b]),D=ie((function(e){"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&x()}),[x,y]),O=ne((function(){var e=Yi(y),t="DRAGGING"===y.type&&y.dropping?D:null;return{innerRef:r,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":g,style:e,onTransitionEnd:t},dragHandleProps:I}}),[a,I,g,y,D,r]),w=ne((function(){return{draggableId:p.id,type:p.type,source:{index:p.index,droppableId:p.droppableId}}}),[p.droppableId,p.id,p.index,p.type]);return f(O,y.snapshot,w)}));function ro(e){return Li(ki).isUsingCloneFor!==e.draggableId||e.isClone?i.a.createElement(to,e):null}function no(e){var t="boolean"!==typeof e.isDragDisabled||!e.isDragDisabled,r=Boolean(e.disableInteractiveElementBlocking),n=Boolean(e.shouldRespectForcePress);return i.a.createElement(ro,Object(a.a)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n}))}var io=function(e,t){return e===t.droppable.type},oo=function(e,t){return t.draggables[e.draggable.id]};var ao={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||De(!1),document.body}},co=Q((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=Object(a.a)({},e,{shouldAnimatePlaceholder:!1}),r=Object(ve.a)((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),n=Object(ve.a)((function(n,i,o,a,c,u){var l=c.descriptor.id;if(c.descriptor.droppableId===n){var s=u?{render:u,dragging:r(c.descriptor)}:null,d={isDraggingOver:o,draggingOverWith:o?l:null,draggingFromThisWith:l,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:s}}if(!i)return t;if(!a)return e;var p={isDraggingOver:o,draggingOverWith:l,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}}));return function(r,i){var o=i.droppableId,a=i.type,c=!i.isDropDisabled,u=i.renderClone;if(r.isDragging){var l=r.critical;if(!io(a,l))return t;var s=oo(l,r.dimensions),d=kt(r.impact)===o;return n(o,c,d,d,s,u)}if("DROP_ANIMATING"===r.phase){var p=r.completed;if(!io(a,p.critical))return t;var f=oo(p.critical,r.dimensions);return n(o,c,Qi(p.result)===o,kt(p.impact)===o,f,u)}if("IDLE"===r.phase&&r.completed&&!r.shouldFlush){var g=r.completed;if(!io(a,g.critical))return t;var b=kt(g.impact)===o,v=Boolean(g.impact.at&&"COMBINE"===g.impact.at.type),m=g.critical.droppable.id===o;return b?v?e:t:m?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:_n,pure:!0,areStatePropsEqual:Ki})((function(e){var t=Object(n.useContext)(qn);t||De(!1);var r=t.contextId,o=t.isMovementAllowed,a=Object(n.useRef)(null),c=Object(n.useRef)(null),u=e.children,l=e.droppableId,s=e.type,d=e.mode,p=e.direction,f=e.ignoreContainerClipping,g=e.isDropDisabled,b=e.isCombineEnabled,v=e.snapshot,m=e.useClone,h=e.updateViewportMaxScroll,y=e.getContainerForClone,x=ie((function(){return a.current}),[]),I=ie((function(e){a.current=e}),[]),D=(ie((function(){return c.current}),[]),ie((function(e){c.current=e}),[]));zn();var O=ie((function(){o()&&h({maxScroll:Jr()})}),[o,h]);!function(e){var t=Object(n.useRef)(null),r=Li(qn),i=Hn("droppable"),o=r.registry,a=r.marshal,c=$n(e),u=ne((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),l=Object(n.useRef)(u),s=ne((function(){return Object(ve.a)((function(e,r){t.current||De(!1);var n={x:e,y:r};a.updateDroppableScroll(u.id,n)}))}),[u.id,a]),d=ie((function(){var e=t.current;return e&&e.env.closestScrollable?Pi(e.env.closestScrollable):Be}),[]),p=ie((function(){var e=d();s(e.x,e.y)}),[d,s]),f=ne((function(){return me(p)}),[p]),g=ie((function(){var e=t.current,r=Mi(e);e&&r||De(!1),e.scrollOptions.shouldPublishImmediately?p():f()}),[f,p]),b=ie((function(e,n){t.current&&De(!1);var i=c.current,o=i.getDroppableRef();o||De(!1);var a=Ni(o),l={ref:o,descriptor:u,env:a,scrollOptions:n};t.current=l;var s=Ri({ref:o,descriptor:u,env:a,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),d=a.closestScrollable;return d&&(d.setAttribute(An.contextId,r.contextId),d.addEventListener("scroll",g,ji(l.scrollOptions))),s}),[r.contextId,u,g,c]),v=ie((function(){var e=t.current,r=Mi(e);return e&&r||De(!1),Pi(r)}),[]),m=ie((function(){var e=t.current;e||De(!1);var r=Mi(e);t.current=null,r&&(f.cancel(),r.removeAttribute(An.contextId),r.removeEventListener("scroll",g,ji(e.scrollOptions)))}),[g,f]),h=ie((function(e){var r=t.current;r||De(!1);var n=Mi(r);n||De(!1),n.scrollTop+=e.y,n.scrollLeft+=e.x}),[]),y=ne((function(){return{getDimensionAndWatchScroll:b,getScrollWhileDragging:v,dragStopped:m,scroll:h}}),[m,b,v,h]),x=ne((function(){return{uniqueId:i,descriptor:u,callbacks:y}}),[y,u,i]);Nn((function(){return l.current=x.descriptor,o.droppable.register(x),function(){t.current&&m(),o.droppable.unregister(x)}}),[y,u,m,x,a,o.droppable]),Nn((function(){t.current&&a.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),Nn((function(){t.current&&a.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:l,type:s,mode:d,direction:p,isDropDisabled:g,isCombineEnabled:b,ignoreContainerClipping:f,getDroppableRef:x});var w=i.a.createElement(Ui,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,n=e.data,o=e.animate;return i.a.createElement(Wi,{placeholder:n,onClose:t,innerRef:D,animate:o,contextId:r,onTransitionEnd:O})})),E=ne((function(){return{innerRef:I,placeholder:w,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":r}}}),[r,l,w,I]),C=m?m.dragging.draggableId:null,S=ne((function(){return{droppableId:l,type:s,isUsingCloneFor:C}}),[l,C,s]);return i.a.createElement(ki.Provider,{value:S},u(E,v),function(){if(!m)return null;var e=m.dragging,t=m.render,r=i.a.createElement(ro,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(r,n){return t(r,n,e)}));return te.a.createPortal(r,y())}())}));co.defaultProps=ao}}]);
3
+ //# sourceMappingURL=18.8304f096.chunk.js.map