Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
mattermost
/
client
/
Filename :
3013.5f929a07f848fd3c9ce7.js
back
Copy
"use strict";(self.webpackChunkmattermost_webapp=self.webpackChunkmattermost_webapp||[]).push([[3013],{63013:(e,r,t)=>{t.r(r),t.d(r,{DragDropContext:()=>Ln,Draggable:()=>ci,Droppable:()=>fi,resetServerContext:()=>Tn,useKeyboardSensor:()=>pn,useMouseSensor:()=>cn,useTouchSensor:()=>mn});var n=t(36418),i=t.n(n),o=t(51449),a=t(68102),l=t(27405);function u(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var c="function"==typeof Symbol&&Symbol.observable||"@@observable",d=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+d(),REPLACE:"@@redux/REPLACE"+d(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+d()}};function p(e,r,t){var n;if("function"==typeof r&&"function"==typeof t||"function"==typeof t&&"function"==typeof arguments[3])throw new Error(u(0));if("function"==typeof r&&void 0===t&&(t=r,r=void 0),void 0!==t){if("function"!=typeof t)throw new Error(u(1));return t(p)(e,r)}if("function"!=typeof e)throw new Error(u(2));var i=e,o=r,a=[],l=a,d=!1;function f(){l===a&&(l=a.slice())}function g(){if(d)throw new Error(u(3));return o}function v(e){if("function"!=typeof e)throw new Error(u(4));if(d)throw new Error(u(5));var r=!0;return f(),l.push(e),function(){if(r){if(d)throw new Error(u(6));r=!1,f();var t=l.indexOf(e);l.splice(t,1),a=null}}}function m(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var r=e;null!==Object.getPrototypeOf(r);)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}(e))throw new Error(u(7));if(void 0===e.type)throw new Error(u(8));if(d)throw new Error(u(9));try{d=!0,o=i(o,e)}finally{d=!1}for(var r=a=l,t=0;t<r.length;t++)(0,r[t])();return e}return m({type:s.INIT}),(n={dispatch:m,subscribe:v,getState:g,replaceReducer:function(e){if("function"!=typeof e)throw new Error(u(10));i=e,m({type:s.REPLACE})}})[c]=function(){var e,r=v;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(u(11));function t(){e.next&&e.next(g())}return t(),{unsubscribe:r(t)}}})[c]=function(){return this},e},n}function f(e,r){return function(){return r(e.apply(this,arguments))}}function g(e,r){if("function"==typeof e)return f(e,r);if("object"!=typeof e||null===e)throw new Error(u(16));var t={};for(var n in e){var i=e[n];"function"==typeof i&&(t[n]=f(i,r))}return t}function v(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return 0===r.length?function(e){return e}:1===r.length?r[0]:r.reduce((function(e,r){return function(){return e(r.apply(void 0,arguments))}}))}var m=t(37270);function b(e,r){var t=(0,n.useState)((function(){return{inputs:r,result:e()}}))[0],i=(0,n.useRef)(!0),o=(0,n.useRef)(t),a=i.current||Boolean(r&&o.current.inputs&&function(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}(r,o.current.inputs))?o.current:{inputs:r,result:e()};return(0,n.useEffect)((function(){i.current=!1,o.current=a}),[a]),a.result}var h=b,y=function(e,r){return b((function(){return e}),r)},I=t(56143),x=function(e){var r=e.top,t=e.right,n=e.bottom,i=e.left;return{top:r,right:t,bottom:n,left:i,width:t-i,height:n-r,x:i,y:r,center:{x:(t+i)/2,y:(n+r)/2}}},D=function(e,r){return{top:e.top-r.top,left:e.left-r.left,bottom:e.bottom+r.bottom,right:e.right+r.right}},E=function(e,r){return{top:e.top+r.top,left:e.left+r.left,bottom:e.bottom-r.bottom,right:e.right-r.right}},w={top:0,right:0,bottom:0,left:0},A=function(e){var r=e.borderBox,t=e.margin,n=void 0===t?w:t,i=e.border,o=void 0===i?w:i,a=e.padding,l=void 0===a?w:a,u=x(D(r,n)),c=x(E(r,o)),d=x(E(c,l));return{marginBox:u,borderBox:x(r),paddingBox:c,contentBox:d,margin:n,border:o,padding:l}},C=function(e){var r=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var t=Number(r);return isNaN(t)&&(0,I.A)(!1),t},B=function(e,r){var t,n,i=e.borderBox,o=e.border,a=e.margin,l=e.padding,u=(n=r,{top:(t=i).top+n.y,left:t.left+n.x,bottom:t.bottom+n.y,right:t.right+n.x});return A({borderBox:u,border:o,margin:a,padding:l})},N=function(e,r){return void 0===r&&(r={x:window.pageXOffset,y:window.pageYOffset}),B(e,r)},R=function(e,r){var t={top:C(r.marginTop),right:C(r.marginRight),bottom:C(r.marginBottom),left:C(r.marginLeft)},n={top:C(r.paddingTop),right:C(r.paddingRight),bottom:C(r.paddingBottom),left:C(r.paddingLeft)},i={top:C(r.borderTopWidth),right:C(r.borderRightWidth),bottom:C(r.borderBottomWidth),left:C(r.borderLeftWidth)};return A({borderBox:e,margin:t,padding:n,border:i})},S=function(e){var r=e.getBoundingClientRect(),t=window.getComputedStyle(e);return R(r,t)},P=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function O(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(!((n=e[t])===(i=r[t])||P(n)&&P(i)))return!1;var n,i;return!0}const T=function(e,r){var t;void 0===r&&(r=O);var n,i=[],o=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return o&&t===this&&r(a,i)||(n=e.apply(this,a),o=!0,t=this,i=a),n}},L=function(e){var r=[],t=null,n=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];r=i,t||(t=requestAnimationFrame((function(){t=null,e.apply(void 0,r)})))};return n.cancel=function(){t&&(cancelAnimationFrame(t),t=null)},n};var G=t(40140),M=t.n(G);function _(e,r){}function F(){}function k(e,r,t){var n=r.map((function(r){var n,i,o=(n=t,i=r.options,(0,a.A)({},n,{},i));return e.addEventListener(r.eventName,r.fn,o),function(){e.removeEventListener(r.eventName,r.fn,o)}}));return function(){n.forEach((function(e){e()}))}}_.bind(null,"warn"),_.bind(null,"error");var W=!0,U="Invariant failed";function H(e){this.message=e}function j(e,r){if(!e)throw new H(W?U:U+": "+(r||""))}H.prototype.toString=function(){return this.message};var V=function(e){function r(){for(var r,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(r=e.call.apply(e,[this].concat(n))||this).callbacks=null,r.unbind=F,r.onWindowError=function(e){var t=r.getCallbacks();t.isDragging()&&t.tryAbort(),e.error instanceof H&&e.preventDefault()},r.getCallbacks=function(){if(!r.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return r.callbacks},r.setCallbacks=function(e){r.callbacks=e},r}(0,o.A)(r,e);var t=r.prototype;return t.componentDidMount=function(){this.unbind=k(window,[{eventName:"error",fn:this.onWindowError}])},t.componentDidCatch=function(e){if(!(e instanceof H))throw e;this.setState({})},t.componentWillUnmount=function(){this.unbind()},t.render=function(){return this.props.children(this.setCallbacks)},r}(i().Component),q=function(e){return e+1},z=function(e,r){var t=e.droppableId===r.droppableId,n=q(e.index),i=q(r.index);return t?"\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 "+r.droppableId+"\n in position "+i+"\n "},Y=function(e,r,t){return r.droppableId===t.droppableId?"\n The item "+e+"\n has been combined with "+t.draggableId:"\n The item "+e+"\n in list "+r.droppableId+"\n has been combined with "+t.draggableId+"\n in list "+t.droppableId+"\n "},J=function(e){return"\n The item has returned to its starting position\n of "+q(e.index)+"\n"},X={dragHandleUsageInstructions:"\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",onDragStart:function(e){return"\n You have lifted an item in position "+q(e.source.index)+"\n"},onDragUpdate:function(e){var r=e.destination;if(r)return z(e.source,r);var t=e.combine;return t?Y(e.draggableId,e.source,t):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+J(e.source)+"\n ";var r=e.destination,t=e.combine;return r?"\n You have dropped the item.\n "+z(e.source,r)+"\n ":t?"\n You have dropped the item.\n "+Y(e.draggableId,e.source,t)+"\n ":"\n The item has been dropped while not over a drop area.\n "+J(e.source)+"\n "}},K={x:0,y:0},Q=function(e,r){return{x:e.x+r.x,y:e.y+r.y}},Z=function(e,r){return{x:e.x-r.x,y:e.y-r.y}},$=function(e,r){return e.x===r.x&&e.y===r.y},ee=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},re=function(e,r,t){var n;return void 0===t&&(t=0),(n={})[e]=r,n["x"===e?"y":"x"]=t,n},te=function(e,r){return Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2))},ne=function(e,r){return Math.min.apply(Math,r.map((function(r){return te(e,r)})))},ie=function(e){return function(r){return{x:e(r.x),y:e(r.y)}}},oe=function(e,r){return{top:e.top+r.y,left:e.left+r.x,bottom:e.bottom+r.y,right:e.right+r.x}},ae=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}]},le=function(e,r){return r&&r.shouldClipSubject?function(e,r){var t=x({top:Math.max(r.top,e.top),right:Math.min(r.right,e.right),bottom:Math.min(r.bottom,e.bottom),left:Math.max(r.left,e.left)});return t.width<=0||t.height<=0?null:t}(r.pageMarginBox,e):x(e)},ue=function(e){var r=e.page,t=e.withPlaceholder,n=e.axis,i=e.frame,o=function(e,r){return r?oe(e,r.scroll.diff.displacement):e}(r.marginBox,i),l=function(e,r,t){var n;return t&&t.increasedBy?(0,a.A)({},e,((n={})[r.end]=e[r.end]+t.increasedBy[r.line],n)):e}(o,n,t);return{page:r,withPlaceholder:t,active:le(l,i)}},ce=function(e,r){e.frame||j(!1);var t=e.frame,n=Z(r,t.scroll.initial),i=ee(n),o=(0,a.A)({},t,{scroll:{initial:t.scroll.initial,current:r,diff:{value:n,displacement:i},max:t.scroll.max}}),l=ue({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return(0,a.A)({},e,{frame:o,subject:l})};function de(e){return Object.values?Object.values(e):Object.keys(e).map((function(r){return e[r]}))}function se(e,r){if(e.findIndex)return e.findIndex(r);for(var t=0;t<e.length;t++)if(r(e[t]))return t;return-1}function pe(e,r){if(e.find)return e.find(r);var t=se(e,r);return-1!==t?e[t]:void 0}function fe(e){return Array.prototype.slice.call(e)}var ge=T((function(e){return e.reduce((function(e,r){return e[r.descriptor.id]=r,e}),{})})),ve=T((function(e){return e.reduce((function(e,r){return e[r.descriptor.id]=r,e}),{})})),me=T((function(e){return de(e)})),be=T((function(e){return de(e)})),he=T((function(e,r){var t=be(r).filter((function(r){return e===r.descriptor.droppableId})).sort((function(e,r){return e.descriptor.index-r.descriptor.index}));return t}));function ye(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Ie(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var xe=T((function(e,r){return r.filter((function(r){return r.descriptor.id!==e.descriptor.id}))})),De=function(e,r){return e.descriptor.droppableId===r.descriptor.id},Ee={point:K,value:0},we={invisible:{},visible:{},all:[]},Ae={displaced:we,displacedBy:Ee,at:null},Ce=function(e,r){return function(t){return e<=t&&t<=r}},Be=function(e){var r=Ce(e.top,e.bottom),t=Ce(e.left,e.right);return function(n){if(r(n.top)&&r(n.bottom)&&t(n.left)&&t(n.right))return!0;var i=r(n.top)||r(n.bottom),o=t(n.left)||t(n.right);if(i&&o)return!0;var a=n.top<e.top&&n.bottom>e.bottom,l=n.left<e.left&&n.right>e.right;return!(!a||!l)||a&&o||l&&i}},Ne=function(e){var r=Ce(e.top,e.bottom),t=Ce(e.left,e.right);return function(e){return r(e.top)&&r(e.bottom)&&t(e.left)&&t(e.right)}},Re={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Se={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Pe=function(e){var r=e.target,t=e.destination,n=e.viewport,i=e.withDroppableDisplacement,o=e.isVisibleThroughFrameFn,a=i?function(e,r){var t=r.frame?r.frame.scroll.diff.displacement:K;return oe(e,t)}(r,t):r;return function(e,r,t){return!!r.subject.active&&t(r.subject.active)(e)}(a,t,o)&&function(e,r,t){return t(r)(e)}(a,n,o)},Oe=function(e){return Pe((0,a.A)({},e,{isVisibleThroughFrameFn:Ne}))};function Te(e){var r=e.afterDragging,t=e.destination,n=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,l=e.last;return r.reduce((function(e,r){var u,c=function(e,r){var t=e.page.marginBox,n={top:r.point.y,right:0,bottom:0,left:r.point.x};return x(D(t,n))}(r,n),d=r.descriptor.id;if(e.all.push(d),u={target:c,destination:t,viewport:i,withDroppableDisplacement:!0},!Pe((0,a.A)({},u,{isVisibleThroughFrameFn:Be})))return e.invisible[r.descriptor.id]=!0,e;var s=function(e,r,t){if("boolean"==typeof t)return t;if(!r)return!0;var n=r.invisible,i=r.visible;if(n[e])return!1;var o=i[e];return!o||o.shouldAnimate}(d,l,o),p={draggableId:d,shouldAnimate:s};return e.visible[d]=p,e}),{all:[],visible:{},invisible:{}})}function Le(e){var r=e.insideDestination,t=e.inHomeList,n=e.displacedBy,i=e.destination,o=function(e,r){if(!e.length)return 0;var t=e[e.length-1].descriptor.index;return r.inHomeList?t:t+1}(r,{inHomeList:t});return{displaced:we,displacedBy:n,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function Ge(e){var r=e.draggable,t=e.insideDestination,n=e.destination,i=e.viewport,o=e.displacedBy,a=e.last,l=e.index,u=e.forceShouldAnimate,c=De(r,n);if(null==l)return Le({insideDestination:t,inHomeList:c,displacedBy:o,destination:n});var d=pe(t,(function(e){return e.descriptor.index===l}));if(!d)return Le({insideDestination:t,inHomeList:c,displacedBy:o,destination:n});var s=xe(r,t),p=t.indexOf(d);return{displaced:Te({afterDragging:s.slice(p),destination:n,displacedBy:o,last:a,viewport:i.frame,forceShouldAnimate:u}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:l}}}}function Me(e,r){return Boolean(r.effected[e])}var _e=function(e,r){return r.margin[e.start]+r.borderBox[e.size]/2},Fe=function(e,r,t){return r[e.crossAxisStart]+t.margin[e.crossAxisStart]+t.borderBox[e.crossAxisSize]/2},ke=function(e){var r=e.axis,t=e.moveRelativeTo,n=e.isMoving;return re(r.line,t.marginBox[r.end]+_e(r,n),Fe(r,t.marginBox,n))},We=function(e){var r=e.axis,t=e.moveRelativeTo,n=e.isMoving;return re(r.line,t.marginBox[r.start]-function(e,r){return r.margin[e.end]+r.borderBox[e.size]/2}(r,n),Fe(r,t.marginBox,n))},Ue=function(e,r){var t=e.frame;return t?Q(r,t.scroll.diff.displacement):r},He=function(e){var r=function(e){var r=e.impact,t=e.draggable,n=e.droppable,i=e.draggables,o=e.afterCritical,a=t.page.borderBox.center,l=r.at;return n&&l?"REORDER"===l.type?function(e){var r=e.impact,t=e.draggable,n=e.draggables,i=e.droppable,o=e.afterCritical,a=he(i.descriptor.id,n),l=t.page,u=i.axis;if(!a.length)return function(e){var r=e.axis,t=e.moveInto,n=e.isMoving;return re(r.line,t.contentBox[r.start]+_e(r,n),Fe(r,t.contentBox,n))}({axis:u,moveInto:i.page,isMoving:l});var c=r.displaced,d=r.displacedBy,s=c.all[0];if(s){var p=n[s];if(Me(s,o))return We({axis:u,moveRelativeTo:p.page,isMoving:l});var f=B(p.page,d.point);return We({axis:u,moveRelativeTo:f,isMoving:l})}var g=a[a.length-1];if(g.descriptor.id===t.descriptor.id)return l.borderBox.center;if(Me(g.descriptor.id,o)){var v=B(g.page,ee(o.displacedBy.point));return ke({axis:u,moveRelativeTo:v,isMoving:l})}return ke({axis:u,moveRelativeTo:g.page,isMoving:l})}({impact:r,draggable:t,draggables:i,droppable:n,afterCritical:o}):function(e){var r=e.afterCritical,t=e.impact,n=e.draggables,i=Ie(t);i||j(!1);var o=i.draggableId,a=n[o].page.borderBox.center,l=function(e){var r=e.displaced,t=e.afterCritical,n=e.combineWith,i=e.displacedBy,o=Boolean(r.visible[n]||r.invisible[n]);return Me(n,t)?o?K:ee(i.point):o?i.point:K}({displaced:t.displaced,afterCritical:r,combineWith:o,displacedBy:t.displacedBy});return Q(a,l)}({impact:r,draggables:i,afterCritical:o}):a}(e),t=e.droppable;return t?Ue(t,r):r},je=function(e,r){var t=Z(r,e.scroll.initial),n=ee(t);return{frame:x({top:r.y,bottom:r.y+e.frame.height,left:r.x,right:r.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:r,diff:{value:t,displacement:n}}}};function Ve(e,r){return e.map((function(e){return r[e]}))}var qe=function(e){var r,t,n=e.pageBorderBoxCenter,i=e.draggable,o=(r=e.viewport,t=n,Q(r.scroll.diff.displacement,t)),a=Z(o,i.page.borderBox.center);return Q(i.client.borderBox.center,a)},ze=function(e){var r=e.draggable,t=e.destination,n=e.newPageBorderBoxCenter,i=e.viewport,o=e.withDroppableDisplacement,l=e.onlyOnMainAxis,u=void 0!==l&&l,c=Z(n,r.page.borderBox.center),d={target:oe(r.page.borderBox,c),destination:t,withDroppableDisplacement:o,viewport:i};return u?function(e){return Pe((0,a.A)({},e,{isVisibleThroughFrameFn:(r=e.destination.axis,function(e){var t=Ce(e.top,e.bottom),n=Ce(e.left,e.right);return function(e){return r===Re?t(e.top)&&t(e.bottom):n(e.left)&&n(e.right)}})}));var r}(d):Oe(d)},Ye=function(e){var r=e.isMovingForward,t=e.draggable,n=e.destination,i=e.draggables,o=e.previousImpact,l=e.viewport,u=e.previousPageBorderBoxCenter,c=e.previousClientSelection,d=e.afterCritical;if(!n.isEnabled)return null;var s=he(n.descriptor.id,i),p=De(t,n),f=function(e){var r=e.isMovingForward,t=e.draggable,n=e.destination,i=e.insideDestination,o=e.previousImpact;if(!n.isCombineEnabled)return null;if(!ye(o))return null;function l(e){var r={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return(0,a.A)({},o,{at:r})}var u=o.displaced.all,c=u.length?u[0]:null;if(r)return c?l(c):null;var d=xe(t,i);if(!c)return d.length?l(d[d.length-1].descriptor.id):null;var s=se(d,(function(e){return e.descriptor.id===c}));-1===s&&j(!1);var p=s-1;return p<0?null:l(d[p].descriptor.id)}({isMovingForward:r,draggable:t,destination:n,insideDestination:s,previousImpact:o})||function(e){var r=e.isMovingForward,t=e.isInHomeList,n=e.draggable,i=e.draggables,o=e.destination,a=e.insideDestination,l=e.previousImpact,u=e.viewport,c=e.afterCritical,d=l.at;if(d||j(!1),"REORDER"===d.type){var s=function(e){var r=e.isMovingForward,t=e.isInHomeList,n=e.insideDestination,i=e.location;if(!n.length)return null;var o=i.index,a=r?o+1:o-1,l=n[0].descriptor.index,u=n[n.length-1].descriptor.index;return a<l||a>(t?u:u+1)?null:a}({isMovingForward:r,isInHomeList:t,location:d.destination,insideDestination:a});return null==s?null:Ge({draggable:n,insideDestination:a,destination:o,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:s})}var p=function(e){var r=e.isMovingForward,t=e.draggables,n=e.combine,i=e.afterCritical;if(!e.destination.isCombineEnabled)return null;var o=n.draggableId,a=t[o].descriptor.index;return Me(o,i)?r?a:a-1:r?a+1:a}({isMovingForward:r,destination:o,displaced:l.displaced,draggables:i,combine:d.combine,afterCritical:c});return null==p?null:Ge({draggable:n,insideDestination:a,destination:o,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:p})}({isMovingForward:r,isInHomeList:p,draggable:t,draggables:i,destination:n,insideDestination:s,previousImpact:o,viewport:l,afterCritical:d});if(!f)return null;var g=He({impact:f,draggable:t,droppable:n,draggables:i,afterCritical:d});if(ze({draggable:t,destination:n,newPageBorderBoxCenter:g,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:qe({pageBorderBoxCenter:g,draggable:t,viewport:l}),impact:f,scrollJumpRequest:null};var v=Z(g,u),m=function(e){var r=e.impact,t=e.viewport,n=e.destination,i=e.draggables,o=e.maxScrollChange,l=je(t,Q(t.scroll.current,o)),u=n.frame?ce(n,Q(n.frame.scroll.current,o)):n,c=r.displaced,d=Te({afterDragging:Ve(c.all,i),destination:n,displacedBy:r.displacedBy,viewport:l.frame,last:c,forceShouldAnimate:!1}),s=Te({afterDragging:Ve(c.all,i),destination:u,displacedBy:r.displacedBy,viewport:t.frame,last:c,forceShouldAnimate:!1}),p={},f={},g=[c,d,s];return c.all.forEach((function(e){var r=function(e,r){for(var t=0;t<r.length;t++){var n=r[t].visible[e];if(n)return n}return null}(e,g);r?f[e]=r:p[e]=!0})),(0,a.A)({},r,{displaced:{all:c.all,invisible:p,visible:f}})}({impact:f,viewport:l,destination:n,draggables:i,maxScrollChange:v});return{clientSelection:c,impact:m,scrollJumpRequest:v}},Je=function(e){var r=e.subject.active;return r||j(!1),r},Xe=function(e,r){var t=e.page.borderBox.center;return Me(e.descriptor.id,r)?Z(t,r.displacedBy.point):t},Ke=function(e,r){var t=e.page.borderBox;return Me(e.descriptor.id,r)?oe(t,ee(r.displacedBy.point)):t},Qe=T((function(e,r){var t=r[e.line];return{value:t,point:re(e.line,t)}})),Ze=function(e,r){return(0,a.A)({},e,{scroll:(0,a.A)({},e.scroll,{max:r})})},$e=function(e,r,t){var n=e.frame;De(r,e)&&j(!1),e.subject.withPlaceholder&&j(!1);var i=Qe(e.axis,r.displaceBy).point,o=function(e,r,t){var n=e.axis;if("virtual"===e.descriptor.mode)return re(n.line,r[n.line]);var i=e.subject.page.contentBox[n.size],o=he(e.descriptor.id,t).reduce((function(e,r){return e+r.client.marginBox[n.size]}),0)+r[n.line]-i;return o<=0?null:re(n.line,o)}(e,i,t),l={placeholderSize:i,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n){var u=ue({page:e.subject.page,withPlaceholder:l,axis:e.axis,frame:e.frame});return(0,a.A)({},e,{subject:u})}var c=o?Q(n.scroll.max,o):n.scroll.max,d=Ze(n,c),s=ue({page:e.subject.page,withPlaceholder:l,axis:e.axis,frame:d});return(0,a.A)({},e,{subject:s,frame:d})},er=function(e){var r=e.at;return r?"REORDER"===r.type?r.destination.droppableId:r.combine.droppableId:null},rr=function(e){var r=e.state,t=e.type,n=function(e,r){var t=er(e);return t?r[t]:null}(r.impact,r.dimensions.droppables),i=Boolean(n),o=r.dimensions.droppables[r.critical.droppable.id],a=n||o,l=a.axis.direction,u="vertical"===l&&("MOVE_UP"===t||"MOVE_DOWN"===t)||"horizontal"===l&&("MOVE_LEFT"===t||"MOVE_RIGHT"===t);if(u&&!i)return null;var c="MOVE_DOWN"===t||"MOVE_RIGHT"===t,d=r.dimensions.draggables[r.critical.draggable.id],s=r.current.page.borderBoxCenter,p=r.dimensions,f=p.draggables,g=p.droppables;return u?Ye({isMovingForward:c,previousPageBorderBoxCenter:s,draggable:d,destination:a,draggables:f,viewport:r.viewport,previousClientSelection:r.current.client.selection,previousImpact:r.impact,afterCritical:r.afterCritical}):function(e){var r=e.isMovingForward,t=e.previousPageBorderBoxCenter,n=e.draggable,i=e.isOver,o=e.draggables,a=e.droppables,l=e.viewport,u=e.afterCritical,c=function(e){var r=e.isMovingForward,t=e.pageBorderBoxCenter,n=e.source,i=e.droppables,o=e.viewport,a=n.subject.active;if(!a)return null;var l=n.axis,u=Ce(a[l.start],a[l.end]),c=me(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 Be(o.frame)(Je(e))})).filter((function(e){var t=Je(e);return r?a[l.crossAxisEnd]<t[l.crossAxisEnd]:t[l.crossAxisStart]<a[l.crossAxisStart]})).filter((function(e){var r=Je(e),t=Ce(r[l.start],r[l.end]);return u(r[l.start])||u(r[l.end])||t(a[l.start])||t(a[l.end])})).sort((function(e,t){var n=Je(e)[l.crossAxisStart],i=Je(t)[l.crossAxisStart];return r?n-i:i-n})).filter((function(e,r,t){return Je(e)[l.crossAxisStart]===Je(t[0])[l.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var d=c.filter((function(e){return Ce(Je(e)[l.start],Je(e)[l.end])(t[l.line])}));return 1===d.length?d[0]:d.length>1?d.sort((function(e,r){return Je(e)[l.start]-Je(r)[l.start]}))[0]:c.sort((function(e,r){var n=ne(t,ae(Je(e))),i=ne(t,ae(Je(r)));return n!==i?n-i:Je(e)[l.start]-Je(r)[l.start]}))[0]}({isMovingForward:r,pageBorderBoxCenter:t,source:i,droppables:a,viewport:l});if(!c)return null;var d=he(c.descriptor.id,o),s=function(e){var r=e.pageBorderBoxCenter,t=e.viewport,n=e.destination,i=e.afterCritical,o=e.insideDestination.filter((function(e){return Oe({target:Ke(e,i),destination:n,viewport:t.frame,withDroppableDisplacement:!0})})).sort((function(e,t){var o=te(r,Ue(n,Xe(e,i))),a=te(r,Ue(n,Xe(t,i)));return o<a?-1:a<o?1:e.descriptor.index-t.descriptor.index}));return o[0]||null}({pageBorderBoxCenter:t,viewport:l,destination:c,insideDestination:d,afterCritical:u}),p=function(e){var r=e.previousPageBorderBoxCenter,t=e.moveRelativeTo,n=e.insideDestination,i=e.draggable,o=e.draggables,a=e.destination,l=e.viewport,u=e.afterCritical;if(!t){if(n.length)return null;var c={displaced:we,displacedBy:Ee,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},d=He({impact:c,draggable:i,droppable:a,draggables:o,afterCritical:u}),s=De(i,a)?a:$e(a,i,o);return ze({draggable:i,destination:s,newPageBorderBoxCenter:d,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var p,f=Boolean(r[a.axis.line]<=t.page.borderBox.center[a.axis.line]),g=(p=t.descriptor.index,t.descriptor.id===i.descriptor.id||f?p:p+1);return Ge({draggable:i,insideDestination:n,destination:a,viewport:l,displacedBy:Qe(a.axis,i.displaceBy),last:we,index:g})}({previousPageBorderBoxCenter:t,destination:c,draggable:n,draggables:o,moveRelativeTo:s,insideDestination:d,viewport:l,afterCritical:u});if(!p)return null;var f=He({impact:p,draggable:n,droppable:c,draggables:o,afterCritical:u});return{clientSelection:qe({pageBorderBoxCenter:f,draggable:n,viewport:l}),impact:p,scrollJumpRequest:null}}({isMovingForward:c,previousPageBorderBoxCenter:s,draggable:d,isOver:a,draggables:f,droppables:g,viewport:r.viewport,afterCritical:r.afterCritical})};function tr(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function nr(e){var r=Ce(e.top,e.bottom),t=Ce(e.left,e.right);return function(e){return r(e.y)&&t(e.x)}}var ir=function(e,r){return x(oe(e,r))};function or(e){var r=e.displaced,t=e.id;return Boolean(r.visible[t]||r.invisible[t])}var ar=function(e){var r=e.pageOffset,t=e.draggable,n=e.draggables,i=e.droppables,o=e.previousImpact,a=e.viewport,l=e.afterCritical,u=ir(t.page.borderBox,r),c=function(e){var r=e.pageBorderBox,t=e.draggable,n=e.droppables,i=me(n).filter((function(e){if(!e.isEnabled)return!1;var t,n,i=e.subject.active;if(!i)return!1;if(n=i,!((t=r).left<n.right&&t.right>n.left&&t.top<n.bottom&&t.bottom>n.top))return!1;if(nr(i)(r.center))return!0;var o=e.axis,a=i.center[o.crossAxisLine],l=r[o.crossAxisStart],u=r[o.crossAxisEnd],c=Ce(i[o.crossAxisStart],i[o.crossAxisEnd]),d=c(l),s=c(u);return!d&&!s||(d?l<a:u>a)}));return i.length?1===i.length?i[0].descriptor.id:function(e){var r=e.pageBorderBox,t=e.candidates,n=e.draggable.page.borderBox.center,i=t.map((function(e){var t=e.axis,i=re(e.axis.line,r.center[t.line],e.page.borderBox.center[t.crossAxisLine]);return{id:e.descriptor.id,distance:te(n,i)}})).sort((function(e,r){return r.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:r,draggable:t,candidates:i}):null}({pageBorderBox:u,draggable:t,droppables:i});if(!c)return Ae;var d=i[c],s=he(d.descriptor.id,n),p=function(e,r){var t=e.frame;return t?ir(r,t.scroll.diff.value):r}(d,u);return function(e){var r=e.draggable,t=e.pageBorderBoxWithDroppableScroll,n=e.previousImpact,i=e.destination,o=e.insideDestination,a=e.afterCritical;if(!i.isCombineEnabled)return null;var l=i.axis,u=Qe(i.axis,r.displaceBy),c=u.value,d=t[l.start],s=t[l.end],p=pe(xe(r,o),(function(e){var r=e.descriptor.id,t=e.page.borderBox,i=t[l.size]/4,o=Me(r,a),u=or({displaced:n.displaced,id:r});return o?u?s>t[l.start]+i&&s<t[l.end]-i:d>t[l.start]-c+i&&d<t[l.end]-c-i:u?s>t[l.start]+c+i&&s<t[l.end]+c-i:d>t[l.start]+i&&d<t[l.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:t,previousImpact:o,destination:d,insideDestination:s,afterCritical:l})||function(e){var r=e.pageBorderBoxWithDroppableScroll,t=e.draggable,n=e.destination,i=e.insideDestination,o=e.last,a=e.viewport,l=e.afterCritical,u=n.axis,c=Qe(n.axis,t.displaceBy),d=c.value,s=r[u.start],p=r[u.end],f=function(e){var r=e.draggable,t=e.closest;return t?e.inHomeList&&t.descriptor.index>r.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}({draggable:t,closest:pe(xe(t,i),(function(e){var r=e.descriptor.id,t=e.page.borderBox.center[u.line],n=Me(r,l),i=or({displaced:o,id:r});return n?i?p<=t:s<t-d:i?p<=t+d:s<t})),inHomeList:De(t,n)});return Ge({draggable:t,insideDestination:i,destination:n,viewport:a,last:o,displacedBy:c,index:f})}({pageBorderBoxWithDroppableScroll:p,draggable:t,destination:d,insideDestination:s,last:o.displaced,viewport:a,afterCritical:l})},lr=function(e,r){var t;return(0,a.A)({},e,((t={})[r.descriptor.id]=r,t))},ur=function(e){var r=e.state,t=e.clientSelection,n=e.dimensions,i=e.viewport,o=e.impact,l=e.scrollJumpRequest,u=i||r.viewport,c=n||r.dimensions,d=t||r.current.client.selection,s=Z(d,r.initial.client.selection),p={offset:s,selection:d,borderBoxCenter:Q(r.initial.client.borderBoxCenter,s)},f={selection:Q(p.selection,u.scroll.current),borderBoxCenter:Q(p.borderBoxCenter,u.scroll.current),offset:Q(p.offset,u.scroll.diff.value)},g={client:p,page:f};if("COLLECTING"===r.phase)return(0,a.A)({phase:"COLLECTING"},r,{dimensions:c,viewport:u,current:g});var v=c.draggables[r.critical.draggable.id],m=o||ar({pageOffset:f.offset,draggable:v,draggables:c.draggables,droppables:c.droppables,previousImpact:r.impact,viewport:u,afterCritical:r.afterCritical}),b=function(e){var r=e.draggable,t=e.draggables,n=e.droppables,i=e.impact,o=function(e){var r=e.previousImpact,t=e.impact,n=e.droppables,i=er(r),o=er(t);if(!i)return n;if(i===o)return n;var l=n[i];if(!l.subject.withPlaceholder)return n;var u=function(e){var r=e.subject.withPlaceholder;r||j(!1);var t=e.frame;if(!t){var n=ue({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,a.A)({},e,{subject:n})}var i=r.oldFrameMaxScroll;i||j(!1);var o=Ze(t,i),l=ue({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return(0,a.A)({},e,{subject:l,frame:o})}(l);return lr(n,u)}({previousImpact:e.previousImpact,impact:i,droppables:n}),l=er(i);if(!l)return o;var u=n[l];if(De(r,u))return o;if(u.subject.withPlaceholder)return o;var c=$e(u,r,t);return lr(o,c)}({draggable:v,impact:m,previousImpact:r.impact,draggables:c.draggables,droppables:c.droppables});return(0,a.A)({},r,{current:g,dimensions:{draggables:c.draggables,droppables:b},impact:m,viewport:u,scrollJumpRequest:l||null,forceShouldAnimate:!l&&null})},cr=function(e){var r=e.impact,t=e.viewport,n=e.draggables,i=e.destination,o=e.forceShouldAnimate,l=r.displaced,u=function(e,r){return e.map((function(e){return r[e]}))}(l.all,n),c=Te({afterDragging:u,destination:i,displacedBy:r.displacedBy,viewport:t.frame,forceShouldAnimate:o,last:l});return(0,a.A)({},r,{displaced:c})},dr=function(e){var r=e.impact,t=e.draggable,n=e.droppable,i=e.draggables,o=e.viewport,a=e.afterCritical,l=He({impact:r,draggable:t,draggables:i,droppable:n,afterCritical:a});return qe({pageBorderBoxCenter:l,draggable:t,viewport:o})},sr=function(e){var r=e.state,t=e.dimensions,n=e.viewport;"SNAP"!==r.movementMode&&j(!1);var i=r.impact,o=n||r.viewport,a=t||r.dimensions,l=a.draggables,u=a.droppables,c=l[r.critical.draggable.id],d=er(i);d||j(!1);var s=u[d],p=cr({impact:i,viewport:o,destination:s,draggables:l}),f=dr({impact:p,draggable:c,droppable:s,draggables:l,viewport:o,afterCritical:r.afterCritical});return ur({impact:p,clientSelection:f,state:r,dimensions:a,viewport:o})},pr=function(e){var r=e.draggable,t=e.home,n=e.draggables,i=e.viewport,o=Qe(t.axis,r.displaceBy),a=he(t.descriptor.id,n),l=a.indexOf(r);-1===l&&j(!1);var u,c=a.slice(l+1),d=c.reduce((function(e,r){return e[r.descriptor.id]=!0,e}),{}),s={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:o,effected:d};return{impact:{displaced:Te({afterDragging:c,destination:t,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(u=r.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:s}},fr=function(e){return"SNAP"===e.movementMode},gr=function(e,r,t){var n=function(e,r){return{draggables:e.draggables,droppables:lr(e.droppables,r)}}(e.dimensions,r);return!fr(e)||t?ur({state:e,dimensions:n}):sr({state:e,dimensions:n})};function vr(e){return e.isDragging&&"SNAP"===e.movementMode?(0,a.A)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var mr={phase:"IDLE",completed:null,shouldFlush:!1},br=function(e,r){if(void 0===e&&(e=mr),"FLUSH"===r.type)return(0,a.A)({},mr,{shouldFlush:!0});if("INITIAL_PUBLISH"===r.type){"IDLE"!==e.phase&&j(!1);var t=r.payload,n=t.critical,i=t.clientSelection,o=t.viewport,l=t.dimensions,u=t.movementMode,c=l.draggables[n.draggable.id],d=l.droppables[n.droppable.id],s={selection:i,borderBoxCenter:c.client.borderBox.center,offset:K},p={client:s,page:{selection:Q(s.selection,o.scroll.initial),borderBoxCenter:Q(s.selection,o.scroll.initial),offset:Q(s.selection,o.scroll.diff.value)}},f=me(l.droppables).every((function(e){return!e.isFixedOnPage})),g=pr({draggable:c,home:d,draggables:l.draggables,viewport:o}),v=g.impact;return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:u,dimensions:l,initial:p,current:p,isWindowScrollAllowed:f,impact:v,afterCritical:g.afterCritical,onLiftImpact:v,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===r.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&j(!1),(0,a.A)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===r.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&j(!1),function(e){var r=e.state,t=e.published,n=t.modified.map((function(e){var t=r.dimensions.droppables[e.droppableId];return ce(t,e.scroll)})),i=(0,a.A)({},r.dimensions.droppables,{},ge(n)),o=ve(function(e){var r=e.additions,t=e.updatedDroppables,n=e.viewport,i=n.scroll.diff.value;return r.map((function(e){var r=e.descriptor.droppableId,o=function(e){var r=e.frame;return r||j(!1),r}(t[r]),l=o.scroll.diff.value,u=function(e){var r=e.draggable,t=e.offset,n=e.initialWindowScroll,i=B(r.client,t),o=N(i,n);return(0,a.A)({},r,{placeholder:(0,a.A)({},r.placeholder,{client:i}),client:i,page:o})}({draggable:e,offset:Q(i,l),initialWindowScroll:n.scroll.initial});return u}))}({additions:t.additions,updatedDroppables:i,viewport:r.viewport})),l=(0,a.A)({},r.dimensions.draggables,{},o);t.removals.forEach((function(e){delete l[e]}));var u={droppables:i,draggables:l},c=er(r.impact),d=c?u.droppables[c]:null,s=u.draggables[r.critical.draggable.id],p=u.droppables[r.critical.droppable.id],f=pr({draggable:s,home:p,draggables:l,viewport:r.viewport}),g=f.impact,v=f.afterCritical,m=d&&d.isCombineEnabled?r.impact:g,b=ar({pageOffset:r.current.page.offset,draggable:u.draggables[r.critical.draggable.id],draggables:u.draggables,droppables:u.droppables,previousImpact:m,viewport:r.viewport,afterCritical:v}),h=(0,a.A)({phase:"DRAGGING"},r,{phase:"DRAGGING",impact:b,onLiftImpact:g,dimensions:u,afterCritical:v,forceShouldAnimate:!1});return"COLLECTING"===r.phase?h:(0,a.A)({phase:"DROP_PENDING"},h,{phase:"DROP_PENDING",reason:r.reason,isWaiting:!1})}({state:e,published:r.payload});if("MOVE"===r.type){if("DROP_PENDING"===e.phase)return e;tr(e)||j(!1);var m=r.payload.client;return $(m,e.current.client.selection)?e:ur({state:e,clientSelection:m,impact:fr(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===r.type){if("DROP_PENDING"===e.phase)return vr(e);if("COLLECTING"===e.phase)return vr(e);tr(e)||j(!1);var b=r.payload,h=b.id,y=b.newScroll,I=e.dimensions.droppables[h];if(!I)return e;var x=ce(I,y);return gr(e,x,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===r.type){if("DROP_PENDING"===e.phase)return e;tr(e)||j(!1);var D=r.payload,E=D.id,w=D.isEnabled,A=e.dimensions.droppables[E];A||j(!1),A.isEnabled===w&&j(!1);var C=(0,a.A)({},A,{isEnabled:w});return gr(e,C,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===r.type){if("DROP_PENDING"===e.phase)return e;tr(e)||j(!1);var R=r.payload,S=R.id,P=R.isCombineEnabled,O=e.dimensions.droppables[S];O||j(!1),O.isCombineEnabled===P&&j(!1);var T=(0,a.A)({},O,{isCombineEnabled:P});return gr(e,T,!0)}if("MOVE_BY_WINDOW_SCROLL"===r.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;tr(e)||j(!1),e.isWindowScrollAllowed||j(!1);var L=r.payload.newScroll;if($(e.viewport.scroll.current,L))return vr(e);var G=je(e.viewport,L);return fr(e)?sr({state:e,viewport:G}):ur({state:e,viewport:G})}if("UPDATE_VIEWPORT_MAX_SCROLL"===r.type){if(!tr(e))return e;var M=r.payload.maxScroll;if($(M,e.viewport.scroll.max))return e;var _=(0,a.A)({},e.viewport,{scroll:(0,a.A)({},e.viewport.scroll,{max:M})});return(0,a.A)({phase:"DRAGGING"},e,{viewport:_})}if("MOVE_UP"===r.type||"MOVE_DOWN"===r.type||"MOVE_LEFT"===r.type||"MOVE_RIGHT"===r.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&j(!1);var F=rr({state:e,type:r.type});return F?ur({state:e,impact:F.impact,clientSelection:F.clientSelection,scrollJumpRequest:F.scrollJumpRequest}):e}if("DROP_PENDING"===r.type){var k=r.payload.reason;return"COLLECTING"!==e.phase&&j(!1),(0,a.A)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:k})}if("DROP_ANIMATE"===r.type){var W=r.payload,U=W.completed,H=W.dropDuration,V=W.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&j(!1),{phase:"DROP_ANIMATING",completed:U,dropDuration:H,newHomeClientOffset:V,dimensions:e.dimensions}}return"DROP_COMPLETE"===r.type?{phase:"IDLE",completed:r.payload.completed,shouldFlush:!1}:e},hr=function(e){return{type:"LIFT",payload:e}},yr=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},Ir=function(){return{type:"COLLECTION_STARTING",payload:null}},xr=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},Dr=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},Er=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},wr=function(e){return{type:"MOVE",payload:e}},Ar=function(){return{type:"MOVE_UP",payload:null}},Cr=function(){return{type:"MOVE_DOWN",payload:null}},Br=function(){return{type:"MOVE_RIGHT",payload:null}},Nr=function(){return{type:"MOVE_LEFT",payload:null}},Rr=function(){return{type:"FLUSH",payload:null}},Sr=function(e){return{type:"DROP_COMPLETE",payload:e}},Pr=function(e){return{type:"DROP",payload:e}},Or="cubic-bezier(.2,1,.1,1)",Tr=0,Lr=.7,Gr=.75,Mr="0.2s cubic-bezier(0.2, 0, 0, 1)",_r={fluid:"opacity "+Mr,snap:"transform "+Mr+", opacity "+Mr,drop:function(e){var r=e+"s "+Or;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+Mr,placeholder:"height "+Mr+", width "+Mr+", margin "+Mr},Fr=function(e){return $(e,K)?null:"translate("+e.x+"px, "+e.y+"px)"},kr=Fr,Wr=.33,Ur=.55-Wr,Hr=function(e){var r=e.getState,t=e.dispatch;return function(e){return function(n){if("DROP"===n.type){var i=r(),o=n.payload.reason;if("COLLECTING"!==i.phase){if("IDLE"!==i.phase){"DROP_PENDING"===i.phase&&i.isWaiting&&j(!1),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&j(!1);var l=i.critical,u=i.dimensions,c=u.draggables[i.critical.draggable.id],d=function(e){var r=e.draggables,t=e.reason,n=e.lastImpact,i=e.home,o=e.viewport,l=e.onLiftImpact;return n.at&&"DROP"===t?"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:(0,a.A)({},n,{displaced:we}),didDropInsideDroppable:!0}:{impact:cr({draggables:r,impact:l,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}),s=d.impact,p=d.didDropInsideDroppable,f=p?ye(s):null,g=p?Ie(s):null,v={index:l.draggable.index,droppableId:l.droppable.id},m={draggableId:c.descriptor.id,type:c.descriptor.type,source:v,reason:o,mode:i.movementMode,destination:f,combine:g},b=function(e){var r=e.impact,t=e.draggable,n=e.dimensions,i=e.viewport,o=e.afterCritical,a=n.draggables,l=n.droppables,u=er(r),c=u?l[u]:null,d=l[t.descriptor.droppableId],s=dr({impact:r,draggable:t,draggables:a,afterCritical:o,droppable:c||d,viewport:i});return Z(s,t.client.borderBox.center)}({impact:s,draggable:c,dimensions:u,viewport:i.viewport,afterCritical:i.afterCritical}),h={critical:i.critical,afterCritical:i.afterCritical,result:m,impact:s};if(!$(i.current.client.offset,b)||Boolean(m.combine)){var y=function(e){var r=e.reason,t=te(e.current,e.destination);if(t<=0)return Wr;if(t>=1500)return.55;var n=Wr+Ur*(t/1500);return Number(("CANCEL"===r?.6*n:n).toFixed(2))}({current:i.current.client.offset,destination:b,reason:o});t({type:"DROP_ANIMATE",payload:{newHomeClientOffset:b,dropDuration:y,completed:h}})}else t(Sr({completed:h}))}}else t(function(e){return{type:"DROP_PENDING",payload:e}}({reason:o}))}else e(n)}}},jr=function(){return{x:window.pageXOffset,y:window.pageYOffset}};var Vr=function(e){var r=function(e){var r=e.onWindowScroll,t=L((function(){r(jr())})),n=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(r){r.target!==window&&r.target!==window.document||e()}}}(t),i=F;function o(){return i!==F}return{start:function(){o()&&j(!1),i=k(window,[n])},stop:function(){o()||j(!1),t.cancel(),i(),i=F},isActive:o}}({onWindowScroll:function(r){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:r}})}});return function(e){return function(t){r.isActive()||"INITIAL_PUBLISH"!==t.type||r.start(),r.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(t)&&r.stop(),e(t)}}},qr=function(e,r){r()},zr=function(e,r){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:r}},Yr=function(e,r,t,n){if(e){var i=function(e){var r=!1,t=!1,n=setTimeout((function(){t=!0})),i=function(i){r||t||(r=!0,e(i),clearTimeout(n))};return i.wasCalled=function(){return r},i}(t);e(r,{announce:i}),i.wasCalled()||t(n(r))}else t(n(r))},Jr=function(e,r){var t=function(e,r){var t,n=(t=[],{add:function(e){var r=setTimeout((function(){return function(e){var r=se(t,(function(r){return r.timerId===e}));-1===r&&j(!1),t.splice(r,1)[0].callback()}(r)})),n={timerId:r,callback:e};t.push(n)},flush:function(){if(t.length){var e=[].concat(t);t.length=0,e.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}),i=null,o=function(t){i||j(!1),i=null,qr(0,(function(){return Yr(e().onDragEnd,t,r,X.onDragEnd)}))};return{beforeCapture:function(r,t){i&&j(!1),qr(0,(function(){var n=e().onBeforeCapture;n&&n({draggableId:r,mode:t})}))},beforeStart:function(r,t){i&&j(!1),qr(0,(function(){var n=e().onBeforeDragStart;n&&n(zr(r,t))}))},start:function(t,o){i&&j(!1);var a=zr(t,o);i={mode:o,lastCritical:t,lastLocation:a.source,lastCombine:null},n.add((function(){qr(0,(function(){return Yr(e().onDragStart,a,r,X.onDragStart)}))}))},update:function(t,o){var l=ye(o),u=Ie(o);i||j(!1);var c=!function(e,r){if(e===r)return!0;var t=e.draggable.id===r.draggable.id&&e.draggable.droppableId===r.draggable.droppableId&&e.draggable.type===r.draggable.type&&e.draggable.index===r.draggable.index,n=e.droppable.id===r.droppable.id&&e.droppable.type===r.droppable.type;return t&&n}(t,i.lastCritical);c&&(i.lastCritical=t);var d,s,p=(s=l,!(null==(d=i.lastLocation)&&null==s||null!=d&&null!=s&&d.droppableId===s.droppableId&&d.index===s.index));p&&(i.lastLocation=l);var f=!function(e,r){return null==e&&null==r||null!=e&&null!=r&&e.draggableId===r.draggableId&&e.droppableId===r.droppableId}(i.lastCombine,u);if(f&&(i.lastCombine=u),c||p||f){var g=(0,a.A)({},zr(t,i.mode),{combine:u,destination:l});n.add((function(){qr(0,(function(){return Yr(e().onDragUpdate,g,r,X.onDragUpdate)}))}))}},flush:function(){i||j(!1),n.flush()},drop:o,abort:function(){if(i){var e=(0,a.A)({},zr(i.lastCritical,i.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,r);return function(e){return function(r){return function(n){if("BEFORE_INITIAL_CAPTURE"!==n.type){if("INITIAL_PUBLISH"===n.type){var i=n.payload.critical;return t.beforeStart(i,n.payload.movementMode),r(n),void t.start(i,n.payload.movementMode)}if("DROP_COMPLETE"===n.type){var o=n.payload.completed.result;return t.flush(),r(n),void t.drop(o)}if(r(n),"FLUSH"!==n.type){var a=e.getState();"DRAGGING"===a.phase&&t.update(a.critical,a.impact)}else t.abort()}else t.beforeCapture(n.payload.draggableId,n.payload.movementMode)}}}},Xr=function(e){return function(r){return function(t){if("DROP_ANIMATION_FINISHED"===t.type){var n=e.getState();"DROP_ANIMATING"!==n.phase&&j(!1),e.dispatch(Sr({completed:n.completed}))}else r(t)}}},Kr=function(e){var r=null,t=null;return function(n){return function(i){if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||(t&&(cancelAnimationFrame(t),t=null),r&&(r(),r=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})}};t=requestAnimationFrame((function(){t=null,r=k(window,[o])}))}}}},Qr=function(e){return function(r){return function(t){if(r(t),"PUBLISH_WHILE_DRAGGING"===t.type){var n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(Pr({reason:n.reason})))}}}},Zr=v,$r=function(e){var r,t=e.dimensionMarshal,n=e.focusMarshal,i=e.styleMarshal,o=e.getResponders,a=e.announce,c=e.autoScroller;return p(br,Zr(function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(e){return function(){var t=e.apply(void 0,arguments),n=function(){throw new Error(u(15))},i={getState:t.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=r.map((function(e){return e(i)}));return n=v.apply(void 0,o)(t.dispatch),(0,l.A)((0,l.A)({},t),{},{dispatch:n})}}}((r=i,function(){return function(e){return function(t){"INITIAL_PUBLISH"===t.type&&r.dragging(),"DROP_ANIMATE"===t.type&&r.dropping(t.payload.completed.result.reason),"FLUSH"!==t.type&&"DROP_COMPLETE"!==t.type||r.resting(),e(t)}}}),function(e){return function(){return function(r){return function(t){"DROP_COMPLETE"!==t.type&&"FLUSH"!==t.type&&"DROP_ANIMATE"!==t.type||e.stopPublishing(),r(t)}}}}(t),function(e){return function(r){var t=r.getState,n=r.dispatch;return function(r){return function(i){if("LIFT"===i.type){var o=i.payload,a=o.id,l=o.clientSelection,u=o.movementMode,c=t();"DROP_ANIMATING"===c.phase&&n(Sr({completed:c.completed})),"IDLE"!==t().phase&&j(!1),n(Rr()),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:u}});var d={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===u}},s=e.startPublishing(d),p=s.critical,f=s.dimensions,g=s.viewport;n({type:"INITIAL_PUBLISH",payload:{critical:p,dimensions:f,clientSelection:l,movementMode:u,viewport:g}})}else r(i)}}}}(t),Hr,Xr,Kr,Qr,function(e){return function(r){return function(t){return function(n){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n))return e.stop(),void t(n);if("INITIAL_PUBLISH"===n.type){t(n);var i=r.getState();return"DRAGGING"!==i.phase&&j(!1),void e.start(i)}t(n),e.scroll(r.getState())}}}}(c),Vr,function(e){var r=!1;return function(){return function(t){return function(n){if("INITIAL_PUBLISH"===n.type)return r=!0,e.tryRecordFocus(n.payload.critical.draggable.id),t(n),void e.tryRestoreFocusRecorded();if(t(n),r){if("FLUSH"===n.type)return r=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===n.type){r=!1;var i=n.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(n),Jr(o,a))))},et=function(e){var r=e.scrollHeight,t=e.scrollWidth,n=e.height,i=e.width,o=Z({x:t,y:r},{x:i,y:n});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},rt=function(){var e=document.documentElement;return e||j(!1),e},tt=function(){var e=rt();return et({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function nt(e,r,t){return t.descriptor.id!==r.id&&t.descriptor.type===r.type&&"virtual"===e.droppable.getById(t.descriptor.droppableId).descriptor.mode}var it,ot,at=function(e,r){var t=null,n=function(e){var r=e.registry,t=e.callbacks,n={additions:{},removals:{},modified:{}},i=null,o=function(){i||(t.collectionStarting(),i=requestAnimationFrame((function(){i=null;var e=n,o=e.additions,a=e.removals,l=e.modified,u=Object.keys(o).map((function(e){return r.draggable.getById(e).getDimension(K)})).sort((function(e,r){return e.descriptor.index-r.descriptor.index})),c=Object.keys(l).map((function(e){return{droppableId:e,scroll:r.droppable.getById(e).callbacks.getScrollWhileDragging()}})),d={additions:u,removals:Object.keys(a),modified:c};n={additions:{},removals:{},modified:{}},t.publish(d)})))};return{add:function(e){var r=e.descriptor.id;n.additions[r]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[r]&&delete n.removals[r],o()},remove:function(e){var r=e.descriptor;n.removals[r.id]=!0,n.modified[r.droppableId]=!0,n.additions[r.id]&&delete n.additions[r.id],o()},stop:function(){i&&(cancelAnimationFrame(i),i=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:r.publishWhileDragging,collectionStarting:r.collectionStarting},registry:e}),i=function(r){t||j(!1);var i=t.critical.draggable;"ADDITION"===r.type&&nt(e,i,r.value)&&n.add(r.value),"REMOVAL"===r.type&&nt(e,i,r.value)&&n.remove(r.value)};return{updateDroppableIsEnabled:function(n,i){e.droppable.exists(n)||j(!1),t&&r.updateDroppableIsEnabled({id:n,isEnabled:i})},updateDroppableIsCombineEnabled:function(n,i){t&&(e.droppable.exists(n)||j(!1),r.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:i}))},scrollDroppable:function(r,n){t&&e.droppable.getById(r).callbacks.scroll(n)},updateDroppableScroll:function(n,i){t&&(e.droppable.exists(n)||j(!1),r.updateDroppableScroll({id:n,newScroll:i}))},startPublishing:function(r){t&&j(!1);var n=e.draggable.getById(r.draggableId),o=e.droppable.getById(n.descriptor.droppableId),a={draggable:n.descriptor,droppable:o.descriptor},l=e.subscribe(i);return t={critical:a,unsubscribe:l},function(e){var r,t,n,i,o,a,l,u=e.critical,c=e.scrollOptions,d=e.registry,s=(r=jr(),t=tt(),n=r.y,i=r.x,a=(o=rt()).clientWidth,l=o.clientHeight,{frame:x({top:n,left:i,right:i+a,bottom:n+l}),scroll:{initial:r,current:r,max:t,diff:{value:K,displacement:K}}}),p=s.scroll.current,f=u.droppable,g=d.droppable.getAllByType(f.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(p,c)})),v=d.draggable.getAllByType(u.draggable.type).map((function(e){return e.getDimension(p)}));return{dimensions:{draggables:ve(v),droppables:ge(g)},critical:u,viewport:s}}({critical:a,registry:e,scrollOptions:r.scrollOptions})},stopPublishing:function(){if(t){n.stop();var r=t.critical.droppable;e.droppable.getAllByType(r.type).forEach((function(e){return e.callbacks.dragStopped()})),t.unsubscribe(),t=null}}}},lt=function(e,r){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==r&&"DROP"===e.completed.result.reason},ut=function(e){window.scrollBy(e.x,e.y)},ct=T((function(e){return me(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),dt=function(e){return Math.pow(e,2)},st=function(e){var r=e.startOfRange,t=e.endOfRange,n=e.current,i=t-r;return 0===i?0:(n-r)/i},pt=360,ft=1200,gt=function(e){var r=e.distanceToEdge,t=e.thresholds,n=e.dragStartTime,i=e.shouldUseTimeDampening,o=function(e,r){if(e>r.startScrollingFrom)return 0;if(e<=r.maxScrollValueAt)return 28;if(e===r.startScrollingFrom)return 1;var t=st({startOfRange:r.maxScrollValueAt,endOfRange:r.startScrollingFrom,current:e}),n=28*dt(1-t);return Math.ceil(n)}(r,t);return 0===o?0:i?Math.max(function(e,r){var t=r,n=ft,i=Date.now()-t;if(i>=ft)return e;if(i<pt)return 1;var o=st({startOfRange:pt,endOfRange:n,current:i}),a=e*dt(o);return Math.ceil(a)}(o,n),1):o},vt=function(e){var r=e.container,t=e.distanceToEdges,n=e.dragStartTime,i=e.axis,o=e.shouldUseTimeDampening,a=function(e,r){return{startScrollingFrom:.25*e[r.size],maxScrollValueAt:.05*e[r.size]}}(r,i);return t[i.end]<t[i.start]?gt({distanceToEdge:t[i.end],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o}):-1*gt({distanceToEdge:t[i.start],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o})},mt=ie((function(e){return 0===e?0:e})),bt=function(e){var r=e.dragStartTime,t=e.container,n=e.subject,i=e.center,o=e.shouldUseTimeDampening,a={top:i.y-t.top,right:t.right-i.x,bottom:t.bottom-i.y,left:i.x-t.left},l=vt({container:t,distanceToEdges:a,dragStartTime:r,axis:Re,shouldUseTimeDampening:o}),u=vt({container:t,distanceToEdges:a,dragStartTime:r,axis:Se,shouldUseTimeDampening:o}),c=mt({x:u,y:l});if($(c,K))return null;var d=function(e){var r=e.container,t=e.subject,n=e.proposedScroll,i=t.height>r.height,o=t.width>r.width;return o||i?o&&i?null:{x:o?0:n.x,y:i?0:n.y}:n}({container:t,subject:n,proposedScroll:c});return d?$(d,K)?null:d:null},ht=ie((function(e){return 0===e?0:e>0?1:-1})),yt=(it=function(e,r){return e<0?e:e>r?e-r:0},function(e){var r=e.current,t=e.max,n=e.change,i=Q(r,n),o={x:it(i.x,t.x),y:it(i.y,t.y)};return $(o,K)?null:o}),It=function(e){var r=e.max,t=e.current,n=e.change,i={x:Math.max(t.x,r.x),y:Math.max(t.y,r.y)},o=ht(n),a=yt({max:i,current:t,change:o});return!a||0!==o.x&&0===a.x||0!==o.y&&0===a.y},xt=function(e,r){return It({current:e.scroll.current,max:e.scroll.max,change:r})},Dt=function(e,r){var t=e.frame;return!!t&&It({current:t.scroll.current,max:t.scroll.max,change:r})},Et=function(e){var r=e.state,t=e.dragStartTime,n=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,a=r.current.page.borderBoxCenter,l=r.dimensions.draggables[r.critical.draggable.id].page.marginBox;if(r.isWindowScrollAllowed){var u=function(e){var r=e.viewport,t=e.subject,n=e.center,i=e.shouldUseTimeDampening,o=bt({dragStartTime:e.dragStartTime,container:r.frame,subject:t,center:n,shouldUseTimeDampening:i});return o&&xt(r,o)?o:null}({dragStartTime:t,viewport:r.viewport,subject:l,center:a,shouldUseTimeDampening:n});if(u)return void i(u)}var c=function(e){var r=e.center,t=e.destination,n=e.droppables;if(t){var i=n[t];return i.frame?i:null}var o=function(e,r){var t=pe(ct(r),(function(r){return r.frame||j(!1),nr(r.frame.pageMarginBox)(e)}));return t}(r,n);return o}({center:a,destination:er(r.impact),droppables:r.dimensions.droppables});if(c){var d=function(e){var r=e.droppable,t=e.subject,n=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=r.frame;if(!a)return null;var l=bt({dragStartTime:i,container:a.pageMarginBox,subject:t,center:n,shouldUseTimeDampening:o});return l&&Dt(r,l)?l:null}({dragStartTime:t,droppable:c,subject:l,center:a,shouldUseTimeDampening:n});d&&o(c.descriptor.id,d)}},wt=function(e){var r=e.move,t=e.scrollDroppable,n=e.scrollWindow;return function(e){var i=e.scrollJumpRequest;if(i){var o=er(e.impact);o||j(!1);var a=function(e,r){if(!Dt(e,r))return r;var n=function(e,r){var t=e.frame;return t&&Dt(e,r)?yt({current:t.scroll.current,max:t.scroll.max,change:r}):null}(e,r);if(!n)return t(e.descriptor.id,r),null;var i=Z(r,n);return t(e.descriptor.id,i),Z(r,i)}(e.dimensions.droppables[o],i);if(a){var l=e.viewport,u=function(e,r,t){if(!e)return t;if(!xt(r,t))return t;var i=function(e,r){if(!xt(e,r))return null;var t=e.scroll.max,n=e.scroll.current;return yt({current:n,max:t,change:r})}(r,t);if(!i)return n(t),null;var o=Z(t,i);return n(o),Z(t,o)}(e.isWindowScrollAllowed,l,a);u&&function(e,t){var n=Q(e.current.client.selection,t);r({client:n})}(e,u)}}}},At=function(e){var r=e.scrollDroppable,t=e.scrollWindow,n=e.move,i=function(e){var r=e.scrollDroppable,t=L(e.scrollWindow),n=L(r),i=null,o=function(e){i||j(!1);var r=i,o=r.shouldUseTimeDampening,a=r.dragStartTime;Et({state:e,scrollWindow:t,scrollDroppable:n,dragStartTime:a,shouldUseTimeDampening:o})};return{start:function(e){i&&j(!1);var r=Date.now(),t=!1,n=function(){t=!0};Et({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:n,scrollDroppable:n}),i={dragStartTime:r,shouldUseTimeDampening:t},t&&o(e)},stop:function(){i&&(t.cancel(),n.cancel(),i=null)},scroll:o}}({scrollWindow:t,scrollDroppable:r}),o=wt({move:n,scrollWindow:t,scrollDroppable:r});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&o(e):i.scroll(e))},start:i.start,stop:i.stop}},Ct="data-rbd",Bt={base:ot=Ct+"-drag-handle",draggableId:ot+"-draggable-id",contextId:ot+"-context-id"},Nt=function(){var e=Ct+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Rt=function(){var e=Ct+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),St={contextId:Ct+"-scroll-container-context-id"},Pt=function(e,r){return e.map((function(e){var t=e.styles[r];return t?e.selector+" { "+t+" }":""})).join(" ")},Ot=function(e){var r,t,n,i=(r=e,function(e){return"["+e+'="'+r+'"]'}),o=(t="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:i(Bt.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:t,dragging:"pointer-events: none;",dropAnimating:t}}),a=[(n="\n transition: "+_r.outOfTheWay+";\n ",{selector:i(Nt.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}),o,{selector:i(Rt.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:Pt(a,"always"),resting:Pt(a,"resting"),dragging:Pt(a,"dragging"),dropAnimating:Pt(a,"dropAnimating"),userCancel:Pt(a,"userCancel")}},Tt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect,Lt=function(){var e=document.querySelector("head");return e||j(!1),e},Gt=function(e){var r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.type="text/css",r},Mt=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function _t(e){return e instanceof Mt(e).HTMLElement}function Ft(){var e={draggables:{},droppables:{}},r=[];function t(e){r.length&&r.forEach((function(r){return r(e)}))}function n(r){return e.draggables[r]||null}function i(r){return e.droppables[r]||null}return{draggable:{register:function(r){e.draggables[r.descriptor.id]=r,t({type:"ADDITION",value:r})},update:function(r,t){var n=e.draggables[t.descriptor.id];n&&n.uniqueId===r.uniqueId&&(delete e.draggables[t.descriptor.id],e.draggables[r.descriptor.id]=r)},unregister:function(r){var i=r.descriptor.id,o=n(i);o&&r.uniqueId===o.uniqueId&&(delete e.draggables[i],t({type:"REMOVAL",value:r}))},getById:function(e){var r=n(e);return r||j(!1),r},findById:n,exists:function(e){return Boolean(n(e))},getAllByType:function(r){return de(e.draggables).filter((function(e){return e.descriptor.type===r}))}},droppable:{register:function(r){e.droppables[r.descriptor.id]=r},unregister:function(r){var t=i(r.descriptor.id);t&&r.uniqueId===t.uniqueId&&delete e.droppables[r.descriptor.id]},getById:function(e){var r=i(e);return r||j(!1),r},findById:i,exists:function(e){return Boolean(i(e))},getAllByType:function(r){return de(e.droppables).filter((function(e){return e.descriptor.type===r}))}},subscribe:function(e){return r.push(e),function(){var t=r.indexOf(e);-1!==t&&r.splice(t,1)}},clean:function(){e.draggables={},e.droppables={},r.length=0}}}var kt=i().createContext(null),Wt=function(){var e=document.body;return e||j(!1),e},Ut={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Ht=function(e){return"rbd-announcement-"+e},jt=0,Vt={separator:"::"};function qt(e,r){return void 0===r&&(r=Vt),h((function(){return""+e+r.separator+jt++}),[r.separator,e])}var zt=i().createContext(null);function Yt(e){var r=(0,n.useRef)(e);return(0,n.useEffect)((function(){r.current=e})),r}var Jt,Xt,Kt=27,Qt=32,Zt=37,$t=38,en=39,rn=40,tn=((Jt={})[13]=!0,Jt[9]=!0,Jt),nn=function(e){tn[e.keyCode]&&e.preventDefault()},on=function(){var e="visibilitychange";return"undefined"==typeof document?e:pe([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),an=0,ln=5,un={type:"IDLE"};function cn(e){var r=(0,n.useRef)(un),t=(0,n.useRef)(F),i=h((function(){return{eventName:"mousedown",fn:function(r){if(!r.defaultPrevented&&r.button===an&&!(r.ctrlKey||r.metaKey||r.shiftKey||r.altKey)){var n=e.findClosestDraggableId(r);if(n){var i=e.tryGetLock(n,l,{sourceEvent:r});if(i){r.preventDefault();var o={x:r.clientX,y:r.clientY};t.current(),d(i,o)}}}}}}),[e]),o=h((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(r){if(!r.defaultPrevented){var t=e.findClosestDraggableId(r);if(t){var n=e.findOptionsForDraggable(t);n&&(n.shouldRespectForcePress||e.canGetLock(t)&&r.preventDefault())}}}}}),[e]),a=y((function(){t.current=k(window,[o,i],{passive:!1,capture:!0})}),[o,i]),l=y((function(){"IDLE"!==r.current.type&&(r.current=un,t.current(),a())}),[a]),u=y((function(){var e=r.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),c=y((function(){var e=function(e){var r=e.cancel,t=e.completed,n=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(e){var r=e.button,t=e.clientX,o=e.clientY;if(r===an){var a={x:t,y:o},l=n();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(a);if("PENDING"!==l.type&&j(!1),u=l.point,c=a,Math.abs(c.x-u.x)>=ln||Math.abs(c.y-u.y)>=ln){var u,c;e.preventDefault();var d=l.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}),t()):r()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===n().type&&e.preventDefault(),r()}},{eventName:"keydown",fn:function(e){if("PENDING"!==n().type)return e.keyCode===Kt?(e.preventDefault(),void r()):void nn(e);r()}},{eventName:"resize",fn:r},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===n().type&&r()}},{eventName:"webkitmouseforcedown",fn:function(e){var t=n();"IDLE"===t.type&&j(!1),t.actions.shouldRespectForcePress()?r():e.preventDefault()}},{eventName:on,fn:r}]}({cancel:u,completed:l,getPhase:function(){return r.current},setPhase:function(e){r.current=e}});t.current=k(window,e,{capture:!0,passive:!1})}),[u,l]),d=y((function(e,t){"IDLE"!==r.current.type&&j(!1),r.current={type:"PENDING",point:t,actions:e},c()}),[c]);Tt((function(){return a(),function(){t.current()}}),[a])}function dn(){}var sn=((Xt={})[34]=!0,Xt[33]=!0,Xt[36]=!0,Xt[35]=!0,Xt);function pn(e){var r=(0,n.useRef)(dn),t=h((function(){return{eventName:"keydown",fn:function(t){if(!t.defaultPrevented&&t.keyCode===Qt){var n=e.findClosestDraggableId(t);if(n){var o=e.tryGetLock(n,u,{sourceEvent:t});if(o){t.preventDefault();var a=!0,l=o.snapLift();r.current(),r.current=k(window,function(e,r){function t(){r(),e.cancel()}return[{eventName:"keydown",fn:function(n){return n.keyCode===Kt?(n.preventDefault(),void t()):n.keyCode===Qt?(n.preventDefault(),r(),void e.drop()):n.keyCode===rn?(n.preventDefault(),void e.moveDown()):n.keyCode===$t?(n.preventDefault(),void e.moveUp()):n.keyCode===en?(n.preventDefault(),void e.moveRight()):n.keyCode===Zt?(n.preventDefault(),void e.moveLeft()):void(sn[n.keyCode]?n.preventDefault():nn(n))}},{eventName:"mousedown",fn:t},{eventName:"mouseup",fn:t},{eventName:"click",fn:t},{eventName:"touchstart",fn:t},{eventName:"resize",fn:t},{eventName:"wheel",fn:t,options:{passive:!0}},{eventName:on,fn:t}]}(l,u),{capture:!0,passive:!1})}}}function u(){a||j(!1),a=!1,r.current(),i()}}}}),[e]),i=y((function(){r.current=k(window,[t],{passive:!1,capture:!0})}),[t]);Tt((function(){return i(),function(){r.current()}}),[i])}var fn={type:"IDLE"},gn=120,vn=.15;function mn(e){var r=(0,n.useRef)(fn),t=(0,n.useRef)(F),i=y((function(){return r.current}),[]),o=y((function(e){r.current=e}),[]),a=h((function(){return{eventName:"touchstart",fn:function(r){if(!r.defaultPrevented){var n=e.findClosestDraggableId(r);if(n){var i=e.tryGetLock(n,u,{sourceEvent:r});if(i){var o=r.touches[0],a={x:o.clientX,y:o.clientY};t.current(),p(i,a)}}}}}}),[e]),l=y((function(){t.current=k(window,[a],{capture:!0,passive:!1})}),[a]),u=y((function(){var e=r.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(fn),t.current(),l())}),[l,o]),c=y((function(){var e=r.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[u]),d=y((function(){var e={capture:!0,passive:!1},r={cancel:c,completed:u,getPhase:i},n=k(window,function(e){var r=e.cancel,t=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var t=n();if("DRAGGING"===t.type){t.hasMoved=!0;var i=e.touches[0],o={x:i.clientX,y:i.clientY};e.preventDefault(),t.actions.move(o)}else r()}},{eventName:"touchend",fn:function(e){var i=n();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()):r()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===n().type?(e.preventDefault(),r()):r()}},{eventName:"touchforcechange",fn:function(e){var t=n();"IDLE"===t.type&&j(!1);var i=e.touches[0];if(i&&i.force>=vn){var o=t.actions.shouldRespectForcePress();if("PENDING"!==t.type)return o?t.hasMoved?void e.preventDefault():void r():void e.preventDefault();o&&r()}}},{eventName:on,fn:r}]}(r),e),o=k(window,function(e){var r=e.cancel,t=e.getPhase;return[{eventName:"orientationchange",fn:r},{eventName:"resize",fn:r},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===t().type?(e.keyCode===Kt&&e.preventDefault(),r()):r()}},{eventName:on,fn:r}]}(r),e);t.current=function(){n(),o()}}),[c,i,u]),s=y((function(){var e=i();"PENDING"!==e.type&&j(!1);var r=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:r,hasMoved:!1})}),[i,o]),p=y((function(e,r){"IDLE"!==i().type&&j(!1);var t=setTimeout(s,gn);o({type:"PENDING",point:r,actions:e,longPressTimerId:t}),d()}),[d,i,o,s]);Tt((function(){return l(),function(){t.current();var e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(fn))}}),[i,l,o]),Tt((function(){return k(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}var bn={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function hn(e,r){if(null==r)return!1;if(Boolean(bn[r.tagName.toLowerCase()]))return!0;var t=r.getAttribute("contenteditable");return"true"===t||""===t||r!==e&&hn(e,r.parentElement)}function yn(e,r){var t=r.target;return!!_t(t)&&hn(e,t)}var In=function(e){return x(e.getBoundingClientRect()).center},xn=function(){var e="matches";return"undefined"==typeof document?e:pe([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function Dn(e,r){return null==e?null:e[xn](r)?e:Dn(e.parentElement,r)}function En(e,r){return e.closest?e.closest(r):Dn(e,r)}function wn(e){e.preventDefault()}function An(e){var r=e.expected,t=e.phase,n=e.isLockActive;return e.shouldWarn,!!n()&&r===t}function Cn(e){var r=e.lockAPI,t=e.store,n=e.registry,i=e.draggableId;if(r.isClaimed())return!1;var o=n.draggable.findById(i);return!!o&&!!o.options.isEnabled&&!!lt(t.getState(),i)}var Bn=[cn,pn,mn];function Nn(e){var r=e.contextId,t=e.store,i=e.registry,o=e.customSensors,l=e.enableDefaultSensors,u=[].concat(l?Bn:[],o||[]),c=(0,n.useState)((function(){return function(){var e=null;function r(){e||j(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(r){return r===e},claim:function(r){e&&j(!1);var t={abandon:r};return e=t,t},release:r,tryAbandon:function(){e&&(e.abandon(),r())}}}()}))[0],d=y((function(e,r){e.isDragging&&!r.isDragging&&c.tryAbandon()}),[c]);Tt((function(){var e=t.getState();return t.subscribe((function(){var r=t.getState();d(e,r),e=r}))}),[c,t,d]),Tt((function(){return c.tryAbandon}),[c.tryAbandon]);for(var s=y((function(e){return Cn({lockAPI:c,registry:i,store:t,draggableId:e})}),[c,i,t]),p=y((function(e,n,o){return function(e){var r=e.lockAPI,t=e.contextId,n=e.store,i=e.registry,o=e.draggableId,l=e.forceSensorStop,u=e.sourceEvent;if(!Cn({lockAPI:r,store:n,registry:i,draggableId:o}))return null;var c=i.draggable.getById(o),d=function(e,r){var t="["+Nt.contextId+'="'+e+'"]',n=pe(fe(document.querySelectorAll(t)),(function(e){return e.getAttribute(Nt.id)===r}));return n&&_t(n)?n:null}(t,c.descriptor.id);if(!d)return null;if(u&&!c.options.canDragInteractiveElements&&yn(d,u))return null;var s=r.claim(l||F),p="PRE_DRAG";function f(){return c.options.shouldRespectForcePress}function g(){return r.isActive(s)}var v=function(e,r){An({expected:e,phase:p,isLockActive:g,shouldWarn:!0})&&n.dispatch(r())}.bind(null,"DRAGGING");function m(e){function t(){r.release(),p="COMPLETED"}function i(r,i){if(void 0===i&&(i={shouldBlockNextClick:!1}),e.cleanup(),i.shouldBlockNextClick){var o=k(window,[{eventName:"click",fn:wn,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(o)}t(),n.dispatch(Pr({reason:r}))}return"PRE_DRAG"!==p&&(t(),"PRE_DRAG"!==p&&j(!1)),n.dispatch(hr(e.liftActionArgs)),p="DRAGGING",(0,a.A)({isActive:function(){return An({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 An({expected:"PRE_DRAG",phase:p,isLockActive:g,shouldWarn:!1})},shouldRespectForcePress:f,fluidLift:function(e){var r=L((function(e){v((function(){return wr({client:e})}))})),t=m({liftActionArgs:{id:o,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return r.cancel()},actions:{move:r}});return(0,a.A)({},t,{move:r})},snapLift:function(){var e={moveUp:function(){return v(Ar)},moveRight:function(){return v(Br)},moveDown:function(){return v(Cr)},moveLeft:function(){return v(Nr)}};return m({liftActionArgs:{id:o,clientSelection:In(d),movementMode:"SNAP"},cleanup:F,actions:e})},abort:function(){An({expected:"PRE_DRAG",phase:p,isLockActive:g,shouldWarn:!0})&&r.release()}}}({lockAPI:c,registry:i,contextId:r,store:t,draggableId:e,forceSensorStop:n,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null})}),[r,c,i,t]),f=y((function(e){return function(e,r){var t=function(e,r){var t,n=r.target;if(!((t=n)instanceof Mt(t).Element))return null;var i=function(e){return"["+Bt.contextId+'="'+e+'"]'}(e),o=En(n,i);return o&&_t(o)?o:null}(e,r);return t?t.getAttribute(Bt.draggableId):null}(r,e)}),[r]),g=y((function(e){var r=i.draggable.findById(e);return r?r.options:null}),[i.draggable]),v=y((function(){c.isClaimed()&&(c.tryAbandon(),"IDLE"!==t.getState().phase&&t.dispatch(Rr()))}),[c,t]),m=y(c.isClaimed,[c]),b=h((function(){return{canGetLock:s,tryGetLock:p,findClosestDraggableId:f,findOptionsForDraggable:g,tryReleaseLock:v,isLockClaimed:m}}),[s,p,f,g,v,m]),I=0;I<u.length;I++)u[I](b)}var Rn=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function Sn(e){return e.current||j(!1),e.current}function Pn(e){var r=e.contextId,t=e.setCallbacks,o=e.sensors,l=e.nonce,u=e.dragHandleUsageInstructions,c=(0,n.useRef)(null),d=Yt(e),s=y((function(){return Rn(d.current)}),[d]),p=function(e){var r=h((function(){return Ht(e)}),[e]),t=(0,n.useRef)(null);return(0,n.useEffect)((function(){var e=document.createElement("div");return t.current=e,e.id=r,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,a.A)(e.style,Ut),Wt().appendChild(e),function(){setTimeout((function(){var r=Wt();r.contains(e)&&r.removeChild(e),e===t.current&&(t.current=null)}))}}),[r]),y((function(e){var r=t.current;r&&(r.textContent=e)}),[])}(r),f=function(e){var r=e.contextId,t=e.text,i=qt("hidden-text",{separator:"-"}),o=h((function(){return"rbd-hidden-text-"+(e={contextId:r,uniqueId:i}).contextId+"-"+e.uniqueId;var e}),[i,r]);return(0,n.useEffect)((function(){var e=document.createElement("div");return e.id=o,e.textContent=t,e.style.display="none",Wt().appendChild(e),function(){var r=Wt();r.contains(e)&&r.removeChild(e)}}),[o,t]),o}({contextId:r,text:u}),v=function(e,r){var t=h((function(){return Ot(e)}),[e]),i=(0,n.useRef)(null),o=(0,n.useRef)(null),a=y(T((function(e){var r=o.current;r||j(!1),r.textContent=e})),[]),l=y((function(e){var r=i.current;r||j(!1),r.textContent=e}),[]);Tt((function(){(i.current||o.current)&&j(!1);var n=Gt(r),u=Gt(r);return i.current=n,o.current=u,n.setAttribute(Ct+"-always",e),u.setAttribute(Ct+"-dynamic",e),Lt().appendChild(n),Lt().appendChild(u),l(t.always),a(t.resting),function(){var e=function(e){var r=e.current;r||j(!1),Lt().removeChild(r),e.current=null};e(i),e(o)}}),[r,l,a,t.always,t.resting,e]);var u=y((function(){return a(t.dragging)}),[a,t.dragging]),c=y((function(e){a("DROP"!==e?t.userCancel:t.dropAnimating)}),[a,t.dropAnimating,t.userCancel]),d=y((function(){o.current&&a(t.resting)}),[a,t.resting]);return h((function(){return{dragging:u,dropping:c,resting:d}}),[u,c,d])}(r,l),b=y((function(e){Sn(c).dispatch(e)}),[]),I=h((function(){return g({publishWhileDragging:yr,updateDroppableScroll:xr,updateDroppableIsEnabled:Dr,updateDroppableIsCombineEnabled:Er,collectionStarting:Ir},b)}),[b]),x=function(){var e=h(Ft,[]);return(0,n.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),D=h((function(){return at(x,I)}),[x,I]),E=h((function(){return At((0,a.A)({scrollWindow:ut,scrollDroppable:D.scrollDroppable},g({move:wr},b)))}),[D.scrollDroppable,b]),w=function(e){var r=(0,n.useRef)({}),t=(0,n.useRef)(null),i=(0,n.useRef)(null),o=(0,n.useRef)(!1),a=y((function(e,t){var n={id:e,focus:t};return r.current[e]=n,function(){var t=r.current;t[e]!==n&&delete t[e]}}),[]),l=y((function(r){var t=function(e,r){var t="["+Bt.contextId+'="'+e+'"]',n=fe(document.querySelectorAll(t));if(!n.length)return null;var i=pe(n,(function(e){return e.getAttribute(Bt.draggableId)===r}));return i&&_t(i)?i:null}(e,r);t&&t!==document.activeElement&&t.focus()}),[e]),u=y((function(e,r){t.current===e&&(t.current=r)}),[]),c=y((function(){i.current||o.current&&(i.current=requestAnimationFrame((function(){i.current=null;var e=t.current;e&&l(e)})))}),[l]),d=y((function(e){t.current=null;var r=document.activeElement;r&&r.getAttribute(Bt.draggableId)===e&&(t.current=e)}),[]);return Tt((function(){return o.current=!0,function(){o.current=!1;var e=i.current;e&&cancelAnimationFrame(e)}}),[]),h((function(){return{register:a,tryRecordFocus:d,tryRestoreFocusRecorded:c,tryShiftRecord:u}}),[a,d,c,u])}(r),A=h((function(){return $r({announce:p,autoScroller:E,dimensionMarshal:D,focusMarshal:w,getResponders:s,styleMarshal:v})}),[p,E,D,w,s,v]);c.current=A;var C=y((function(){var e=Sn(c);"IDLE"!==e.getState().phase&&e.dispatch(Rr())}),[]),B=y((function(){var e=Sn(c).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);t(h((function(){return{isDragging:B,tryAbort:C}}),[B,C]));var N=y((function(e){return lt(Sn(c).getState(),e)}),[]),R=y((function(){return tr(Sn(c).getState())}),[]),S=h((function(){return{marshal:D,focus:w,contextId:r,canLift:N,isMovementAllowed:R,dragHandleUsageInstructionsId:f,registry:x}}),[r,D,f,w,N,R,x]);return Nn({contextId:r,store:A,registry:x,customSensors:o,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,n.useEffect)((function(){return C}),[C]),i().createElement(zt.Provider,{value:S},i().createElement(m.Provider,{context:kt,store:A},e.children))}var On=0;function Tn(){On=0,jt=0}function Ln(e){var r=h((function(){return""+On++}),[]),t=e.dragHandleUsageInstructions||X.dragHandleUsageInstructions;return i().createElement(V,null,(function(n){return i().createElement(Pn,{nonce:e.nonce,contextId:r,setCallbacks:n,dragHandleUsageInstructions:t,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var Gn=function(e){return function(r){return e===r}},Mn=Gn("scroll"),_n=Gn("auto"),Fn=(Gn("visible"),function(e,r){return r(e.overflowX)||r(e.overflowY)}),kn=function e(r){return null==r||r===document.body||r===document.documentElement?null:function(e){var r=window.getComputedStyle(e),t={overflowX:r.overflowX,overflowY:r.overflowY};return Fn(t,Mn)||Fn(t,_n)}(r)?r:e(r.parentElement)},Wn=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Un=function e(r){return!!r&&("fixed"===window.getComputedStyle(r).position||e(r.parentElement))},Hn={passive:!1},jn={passive:!0},Vn=function(e){return e.shouldPublishImmediately?Hn:jn};function qn(e){var r=(0,n.useContext)(e);return r||j(!1),r}var zn=function(e){return e&&e.env.closestScrollable||null};function Yn(){}var Jn={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Xn=i().memo((function(e){var r=(0,n.useRef)(null),t=y((function(){r.current&&(clearTimeout(r.current),r.current=null)}),[]),o=e.animate,a=e.onTransitionEnd,l=e.onClose,u=e.contextId,c=(0,n.useState)("open"===e.animate),d=c[0],s=c[1];(0,n.useEffect)((function(){return d?"open"!==o?(t(),s(!1),Yn):r.current?Yn:(r.current=setTimeout((function(){r.current=null,s(!1)})),t):Yn}),[o,d,t]);var p=y((function(e){"height"===e.propertyName&&(a(),"close"===o&&l())}),[o,l,a]),f=function(e){var r=e.isAnimatingOpenOnMount,t=e.placeholder,n=e.animate,i=function(e){var r=e.placeholder;return e.isAnimatingOpenOnMount||"close"===e.animate?Jn:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}}({isAnimatingOpenOnMount:r,placeholder:t,animate:n});return{display:t.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?_r.placeholder:null}}({isAnimatingOpenOnMount:d,animate:e.animate,placeholder:e.placeholder});return i().createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":u,onTransitionEnd:p,ref:e.innerRef})})),Kn=i().createContext(null),Qn=function(e){function r(){for(var r,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(r=e.call.apply(e,[this].concat(n))||this).state={isVisible:Boolean(r.props.on),data:r.props.on,animate:r.props.shouldAnimate&&r.props.on?"open":"none"},r.onClose=function(){"close"===r.state.animate&&r.setState({isVisible:!1})},r}return(0,o.A)(r,e),r.getDerivedStateFromProps=function(e,r){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:r.isVisible?{isVisible:!0,data:r.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},r.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)},r}(i().PureComponent),Zn=function(e,r){return r?_r.drop(r.duration):e?_r.snap:_r.fluid},$n=function(e,r){return e?r?Tr:Lr:null};function ei(e){return"DRAGGING"===e.type?function(e){var r=e.dimension.client,t=e.offset,n=e.combineWith,i=e.dropping,o=Boolean(n),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),l=Boolean(i),u=l?function(e,r){var t=Fr(e);return t?r?t+" scale("+Gr+")":t:null}(t,o):kr(t);return{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:Zn(a,i),transform:u,opacity:$n(o,l),zIndex:l?4500:5e3,pointerEvents:"none"}}(e):{transform:kr((r=e).offset),transition:r.shouldAnimateDisplacement?null:"none"};var r}function ri(e){e.preventDefault()}var ti=function(e,r){return e===r},ni=function(e){var r=e.combine,t=e.destination;return t?t.droppableId:r?r.droppableId:null};function ii(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var oi={mapped:{type:"SECONDARY",offset:K,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:ii(null)}},ai={dropAnimationFinished:function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}}},li=(0,m.connect)((function(){var e,r,t,n=(e=T((function(e,r){return{x:e,y:r}})),r=T((function(e,r,t,n,i){return{isDragging:!0,isClone:r,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:t,combineWith:n,combineTargetFor:null}})),t=T((function(e,t,n,i,o,a,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:o,combineWith:a,mode:t,offset:e,dimension:n,forceShouldAnimate:l,snapshot:r(t,i,o,a,null)}}})),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],l=er(n.impact),u=(d=n.impact).at&&"COMBINE"===d.at.type?d.at.combine.draggableId:null,c=n.forceShouldAnimate;return t(e(o.x,o.y),n.movementMode,a,i.isClone,l,u,c)}var d;if("DROP_ANIMATING"===n.phase){var s=n.completed;if(s.result.draggableId!==i.draggableId)return null;var p=i.isClone,f=n.dimensions.draggables[i.draggableId],g=s.result,v=g.mode,m=ni(g),b=function(e){return e.combine?e.combine.draggableId:null}(g),h={duration:n.dropDuration,curve:Or,moveTo:n.newHomeClientOffset,opacity:b?Tr:null,scale:b?Gr:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:f,dropping:h,draggingOver:m,combineWith:b,mode:v,forceShouldAnimate:null,snapshot:r(v,p,m,b,h)}}}return null}),i=function(){var e=T((function(e,r){return{x:e,y:r}})),r=T(ii),t=T((function(e,t,n){return void 0===t&&(t=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:t,shouldAnimateDisplacement:n,snapshot:r(t)}}})),n=function(e){return e?t(K,e,!0):null},i=function(r,i,o,a){var l=o.displaced.visible[r],u=Boolean(a.inVirtualList&&a.effected[r]),c=Ie(o),d=c&&c.draggableId===r?i:null;if(!l){if(!u)return n(d);if(o.displaced.invisible[r])return null;var s=ee(a.displacedBy.point),p=e(s.x,s.y);return t(p,d,!0)}if(u)return n(d);var f=o.displacedBy.point,g=e(f.x,f.y);return t(g,d,l.shouldAnimate)};return function(e,r){if(e.isDragging)return e.critical.draggable.id===r.draggableId?null:i(r.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var t=e.completed;return t.result.draggableId===r.draggableId?null:i(r.draggableId,t.result.draggableId,t.impact,t.afterCritical)}return null}}();return function(e,r){return n(e,r)||i(e,r)||oi}}),ai,null,{context:kt,areStatePropsEqual:ti})((function(e){var r=(0,n.useRef)(null),t=y((function(e){r.current=e}),[]),i=y((function(){return r.current}),[]),o=qn(zt),a=o.contextId,l=o.dragHandleUsageInstructionsId,u=o.registry,c=qn(Kn),d=c.type,s=c.droppableId,p=h((function(){return{id:e.draggableId,index:e.index,type:d,droppableId:s}}),[e.draggableId,e.index,d,s]),f=e.children,g=e.draggableId,v=e.isEnabled,m=e.shouldRespectForcePress,b=e.canDragInteractiveElements,I=e.isClone,x=e.mapped,D=e.dropAnimationFinished;I||function(e){var r=qt("draggable"),t=e.descriptor,i=e.registry,o=e.getDraggableRef,a=e.canDragInteractiveElements,l=e.shouldRespectForcePress,u=e.isEnabled,c=h((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:l,isEnabled:u}}),[a,u,l]),d=y((function(e){var r=o();return r||j(!1),function(e,r,t){void 0===t&&(t=K);var n=window.getComputedStyle(r),i=r.getBoundingClientRect(),o=R(i,n),a=N(o,t);return{descriptor:e,placeholder:{client:o,tagName:r.tagName.toLowerCase(),display:n.display},displaceBy:{x:o.marginBox.width,y:o.marginBox.height},client:o,page:a}}(t,r,e)}),[t,o]),s=h((function(){return{uniqueId:r,descriptor:t,options:c,getDimension:d}}),[t,d,c,r]),p=(0,n.useRef)(s),f=(0,n.useRef)(!0);Tt((function(){return i.draggable.register(p.current),function(){return i.draggable.unregister(p.current)}}),[i.draggable]),Tt((function(){if(f.current)f.current=!1;else{var e=p.current;p.current=s,i.draggable.update(s,e)}}),[s,i.draggable])}(h((function(){return{descriptor:p,registry:u,getDraggableRef:i,canDragInteractiveElements:b,shouldRespectForcePress:m,isEnabled:v}}),[p,u,i,b,m,v]));var E=h((function(){return v?{tabIndex:0,role:"button","aria-describedby":l,"data-rbd-drag-handle-draggable-id":g,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:ri}:null}),[a,l,g,v]),w=y((function(e){"DRAGGING"===x.type&&x.dropping&&"transform"===e.propertyName&&D()}),[D,x]),A=h((function(){var e=ei(x),r="DRAGGING"===x.type&&x.dropping?w:null;return{innerRef:t,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":g,style:e,onTransitionEnd:r},dragHandleProps:E}}),[a,E,g,x,w,t]),C=h((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(A,x.snapshot,C)}));function ui(e){return qn(Kn).isUsingCloneFor!==e.draggableId||e.isClone?i().createElement(li,e):null}function ci(e){var r="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,t=Boolean(e.disableInteractiveElementBlocking),n=Boolean(e.shouldRespectForcePress);return i().createElement(ui,(0,a.A)({},e,{isClone:!1,isEnabled:r,canDragInteractiveElements:t,shouldRespectForcePress:n}))}var di=function(e,r){return e===r.droppable.type},si=function(e,r){return r.draggables[e.draggable.id]},pi={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||j(!1),document.body}},fi=(0,m.connect)((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r=(0,a.A)({},e,{shouldAnimatePlaceholder:!1}),t=T((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),n=T((function(n,i,o,a,l,u){var c=l.descriptor.id;if(l.descriptor.droppableId===n){var d=u?{render:u,dragging:t(l.descriptor)}:null,s={isDraggingOver:o,draggingOverWith:o?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:s,useClone:d}}if(!i)return r;if(!a)return e;var p={isDraggingOver:o,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}}));return function(t,i){var o=i.droppableId,a=i.type,l=!i.isDropDisabled,u=i.renderClone;if(t.isDragging){var c=t.critical;if(!di(a,c))return r;var d=si(c,t.dimensions),s=er(t.impact)===o;return n(o,l,s,s,d,u)}if("DROP_ANIMATING"===t.phase){var p=t.completed;if(!di(a,p.critical))return r;var f=si(p.critical,t.dimensions);return n(o,l,ni(p.result)===o,er(p.impact)===o,f,u)}if("IDLE"===t.phase&&t.completed&&!t.shouldFlush){var g=t.completed;if(!di(a,g.critical))return r;var v=er(g.impact)===o,m=Boolean(g.impact.at&&"COMBINE"===g.impact.at.type),b=g.critical.droppable.id===o;return v?m?e:r:b?e:r}return r}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:kt,areStatePropsEqual:ti})((function(e){var r=(0,n.useContext)(zt);r||j(!1);var t=r.contextId,o=r.isMovementAllowed,a=(0,n.useRef)(null),l=(0,n.useRef)(null),u=e.children,c=e.droppableId,d=e.type,s=e.mode,p=e.direction,f=e.ignoreContainerClipping,g=e.isDropDisabled,v=e.isCombineEnabled,m=e.snapshot,b=e.useClone,I=e.updateViewportMaxScroll,x=e.getContainerForClone,E=y((function(){return a.current}),[]),w=y((function(e){a.current=e}),[]),C=(y((function(){return l.current}),[]),y((function(e){l.current=e}),[])),B=y((function(){o()&&I({maxScroll:tt()})}),[o,I]);!function(e){var r=(0,n.useRef)(null),t=qn(zt),i=qt("droppable"),o=t.registry,a=t.marshal,l=Yt(e),u=h((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),c=(0,n.useRef)(u),d=h((function(){return T((function(e,t){r.current||j(!1);var n={x:e,y:t};a.updateDroppableScroll(u.id,n)}))}),[u.id,a]),s=y((function(){var e=r.current;return e&&e.env.closestScrollable?Wn(e.env.closestScrollable):K}),[]),p=y((function(){var e=s();d(e.x,e.y)}),[s,d]),f=h((function(){return L(p)}),[p]),g=y((function(){var e=r.current,t=zn(e);e&&t||j(!1),e.scrollOptions.shouldPublishImmediately?p():f()}),[f,p]),v=y((function(e,n){r.current&&j(!1);var i=l.current,o=i.getDroppableRef();o||j(!1);var a=function(e){return{closestScrollable:kn(e),isFixedOnPage:Un(e)}}(o),c={ref:o,descriptor:u,env:a,scrollOptions:n};r.current=c;var d=function(e){var r=e.ref,t=e.descriptor,n=e.env,i=e.windowScroll,o=e.direction,a=e.isDropDisabled,l=e.isCombineEnabled,u=e.shouldClipSubject,c=n.closestScrollable,d=function(e,r){var t=S(e);if(!r)return t;if(e!==r)return t;var n=t.paddingBox.top-r.scrollTop,i=t.paddingBox.left-r.scrollLeft,o=n+r.scrollHeight,a=i+r.scrollWidth,l=D({top:n,right:a,bottom:o,left:i},t.border);return A({borderBox:l,margin:t.margin,border:t.border,padding:t.padding})}(r,c),s=N(d,i),p=function(){if(!c)return null;var e=S(c),r={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:N(e,i),scroll:Wn(c),scrollSize:r,shouldClipSubject:u}}(),f=function(e){var r=e.descriptor,t=e.isEnabled,n=e.isCombineEnabled,i=e.isFixedOnPage,o=e.direction,a=e.client,l=e.page,u=e.closest,c=function(){if(!u)return null;var e=u.scrollSize,r=u.client,t=et({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:r.paddingBox.height,width:r.paddingBox.width});return{pageMarginBox:u.page.marginBox,frameClient:r,scrollSize:e,shouldClipSubject:u.shouldClipSubject,scroll:{initial:u.scroll,current:u.scroll,max:t,diff:{value:K,displacement:K}}}}(),d="vertical"===o?Re:Se;return{descriptor:r,isCombineEnabled:n,isFixedOnPage:i,axis:d,isEnabled:t,client:a,page:l,frame:c,subject:ue({page:l,withPlaceholder:null,axis:d,frame:c})}}({descriptor:t,isEnabled:!a,isCombineEnabled:l,isFixedOnPage:n.isFixedOnPage,direction:o,client:d,page:s,closest:p});return f}({ref:o,descriptor:u,env:a,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),s=a.closestScrollable;return s&&(s.setAttribute(St.contextId,t.contextId),s.addEventListener("scroll",g,Vn(c.scrollOptions))),d}),[t.contextId,u,g,l]),m=y((function(){var e=r.current,t=zn(e);return e&&t||j(!1),Wn(t)}),[]),b=y((function(){var e=r.current;e||j(!1);var t=zn(e);r.current=null,t&&(f.cancel(),t.removeAttribute(St.contextId),t.removeEventListener("scroll",g,Vn(e.scrollOptions)))}),[g,f]),I=y((function(e){var t=r.current;t||j(!1);var n=zn(t);n||j(!1),n.scrollTop+=e.y,n.scrollLeft+=e.x}),[]),x=h((function(){return{getDimensionAndWatchScroll:v,getScrollWhileDragging:m,dragStopped:b,scroll:I}}),[b,v,m,I]),E=h((function(){return{uniqueId:i,descriptor:u,callbacks:x}}),[x,u,i]);Tt((function(){return c.current=E.descriptor,o.droppable.register(E),function(){r.current&&b(),o.droppable.unregister(E)}}),[x,u,b,E,a,o.droppable]),Tt((function(){r.current&&a.updateDroppableIsEnabled(c.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),Tt((function(){r.current&&a.updateDroppableIsCombineEnabled(c.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:c,type:d,mode:s,direction:p,isDropDisabled:g,isCombineEnabled:v,ignoreContainerClipping:f,getDroppableRef:E});var R=i().createElement(Qn,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var r=e.onClose,n=e.data,o=e.animate;return i().createElement(Xn,{placeholder:n,onClose:r,innerRef:C,animate:o,contextId:t,onTransitionEnd:B})})),P=h((function(){return{innerRef:w,placeholder:R,droppableProps:{"data-rbd-droppable-id":c,"data-rbd-droppable-context-id":t}}}),[t,c,R,w]),O=b?b.dragging.draggableId:null,G=h((function(){return{droppableId:c,type:d,isUsingCloneFor:O}}),[c,O,d]);return i().createElement(Kn.Provider,{value:G},u(P,m),function(){if(!b)return null;var e=b.dragging,r=b.render,t=i().createElement(ui,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(t,n){return r(t,n,e)}));return M().createPortal(t,x())}())}));fi.defaultProps=pi},56143:(e,r,t)=>{t.d(r,{A:()=>o});var n=!0,i="Invariant failed";function o(e,r){if(!e){if(n)throw new Error(i);var t="function"==typeof r?r():r,o=t?"".concat(i,": ").concat(t):i;throw new Error(o)}}}}]); //# sourceMappingURL=3013.5f929a07f848fd3c9ce7.js.map